PR python/17372 - Python hangs when displaying help()
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2014-10-29 Pedro Alves <palves@redhat.com>
2
3 PR python/17372
4 * event-top.c (change_line_handler): Call
5 gdb_rl_callback_handler_remove instead of
6 rl_callback_handler_remove.
7 (callback_handler_installed): New global.
8 (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
9 (gdb_rl_callback_handler_reinstall): New functions.
10 (display_gdb_prompt): Call gdb_rl_callback_handler_remove and
11 gdb_rl_callback_handler_install instead of
12 rl_callback_handler_remove and rl_callback_handler_install.
13 (gdb_disable_readline): Call gdb_rl_callback_handler_remove
14 instead of rl_callback_handler_remove.
15 * event-top.h (gdb_rl_callback_handler_remove)
16 (gdb_rl_callback_handler_install)
17 (gdb_rl_callback_handler_reinstall): New declarations.
18 * infrun.c (reinstall_readline_callback_handler_cleanup): New
19 cleanup function.
20 (fetch_inferior_event): Install it.
21 * top.c (gdb_readline_wrapper_line) Call
22 gdb_rl_callback_handler_remove instead of
23 rl_callback_handler_remove.
24 (gdb_readline_wrapper_cleanup): Don't call
25 rl_callback_handler_install.
26
27 2014-10-29 Pedro Alves <palves@redhat.com>
28
29 * event-top.c (command_line_handler): Clear the first byte of
30 linebuffer, when it is first allocated.
31
32 2014-10-29 Pedro Alves <palves@redhat.com>
33
34 * tui/tui.c (tui_rl_switch_mode): Wrap tui_enable/tui_disable in
35 TRY_CATCH.
36
37 2014-10-29 Pedro Alves <palves@redhat.com>
38
39 PR tui/16138
40 PR tui/17519
41 * tui/tui-interp.c (tui_is_toplevel): Delete global.
42 (tui_allowed_p): Delete function.
43 * tui/tui.c: Include "interps.h".
44 (tui_enable): Don't use tui_allowed_p. Error out here with
45 detailed error messages if the TUI is the top level interpreter,
46 or if output is not a terminal. Use newterm instead of initscr,
47 and error out if initializing the terminal fails. Also error out if
48 the terminal doesn't support cursor addressing.
49 * tui/tui.h (tui_allowed_p): Delete declaration.
50
51 2014-10-29 Joel Brobecker <brobecker@adacore.com>
52
53 * arm-tdep.c (arm_skip_stack_protector): Return early if
54 address loaded by first "ldr" instruction does not have
55 a corresponding minimal symbol. Update comment.
56
57 2014-10-29 Yao Qi <yao@codesourcery.com>
58
59 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
60 loaded address correctly of ldr instruction.
61
62 2014-10-28 Pedro Alves <palves@redhat.com>
63
64 PR gdb/12623
65 * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
66 field.
67 * infrun.c (resume) <stepping breakpoint instruction>: Set the
68 thread's stepped_breakpoint field. Skip if reverse debugging.
69 Add comment.
70 (init_thread_stepping_state, handle_signal_stop): Clear the
71 thread's stepped_breakpoint field.
72
73 2014-10-27 Pedro Alves <palves@redhat.com>
74
75 * remote.c (remote_thread_alive): New, factored out from ...
76 (remote_thread_alive): ... this.
77 (remote_update_thread_list): Bail out before deleting threads if
78 the target returned an empty list, and, the current thread has a
79 magic/fake ptid.
80
81 2014-10-27 Pedro Alves <palves@redhat.com>
82
83 * infrun.c (handle_signal_stop): Also skip handlers when a random
84 signal arrives while handling a "stepi" or a "nexti". Set the
85 thread's 'step_after_step_resume_breakpoint' flag.
86
87 2014-10-27 Luis Machado <lgustavo@codesourcery.com>
88
89 * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
90 (arm_record_ld_st_imm_offset): Reimplement to cover all
91 load/store cases for ARM opcode 010.
92 (arm_record_ld_st_multiple): Reimplement to cover all
93 load/store cases for ARM opcode 100.
94
95 2014-10-26 Doug Evans <xdje42@gmail.com>
96
97 * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
98
99 2014-10-26 Doug Evans <xdje42@gmail.com>
100
101 * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
102 parameter "kind" to "block_index".
103 * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
104 "block_index".
105 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
106
107 2014-10-26 Doug Evans <xdje42@gmail.com>
108
109 * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
110
111 2014-10-26 Doug Evans <xdje42@gmail.com>
112
113 * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
114 obstack_alloc.
115
116 2014-10-26 Doug Evans <xdje42@gmail.com>
117
118 * parser-defs.h (block_found): Move decl from here ...
119 * symtab.h (block_found): ... to here.
120
121 2014-10-26 Doug Evans <xdje42@gmail.com>
122
123 * symtab.h (struct field_of_this_result): Fix typo in comment.
124 (lookup_symbol_in_language): Move function comment here.
125 (lookup_symbol): Improve function comment.
126 (basic_lookup_symbol_nonlocal): Ditto.
127 (lookup_symbol_static, lookup_symbol_global): Ditto.
128 (lookup_symbol_aux_block): Ditto.
129 (lookup_language_this): Add function comment.
130 (lookup_static_symbol_aux): Explicitly mark as extern. Improve
131 function comment.
132 (lookup_block_symbol): Improve function comment.
133 (lookup_struct): Fix capitalization in function comment.
134 (lookup_transparent_type): Add function comment.
135 (lookup_global_symbol_from_objfile): Explicitly mark as extern.
136 Improve function comment.
137 (lookup_objfile_from_block): Add function comment.
138 * symtab.c (lookup_symbol_in_language): Update function comment.
139 (lookup_symbol, lookup_language_this): Ditto.
140 (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
141 (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
142 (basic_lookup_symbol_nonlocal): Ditto.
143 (lookup_symbol_static, lookup_symbol_global): Ditto.
144 (lookup_transparent_type, lookup_block_symbol): Ditto.
145
146 2014-10-25 Doug Evans <xdje42@gmail.com>
147
148 * symtab.c (types_info): Delete forward decl.
149 (functions_info, variables_info, sources_info): Ditto.
150 (_initialize_symtab): Rewrite forward decl to use
151 initialize_file_ftype.
152
153 2014-10-25 Doug Evans <xdje42@gmail.com>
154
155 * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
156
157 2014-10-25 Doug Evans <xdje42@gmail.com>
158
159 * dwarf2read.c (process_structure_scope): Remove second (nested) copy
160 of local var child_die.
161
162 2014-10-24 Don Breazeal <donb@codesourcery.com>
163
164 * infrun.c (follow_fork_inferior): Update fork message printing
165 to use target_terminal_ours_for_output instead of
166 target_terminal_ours, to use _() for all format strings, to print
167 "vfork" instead of "fork" for vforks, and to add a detach message.
168 (handle_vfork_child_exec_or_exit): Update message printing to use
169 target_terminal_ours_for_output instead of target_terminal_ours, to
170 use _() for all format strings, and to fix some formatting.
171
172 2014-10-24 Pedro Alves <palves@redhat.com>
173
174 * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
175 * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
176 * config/vax/vax.mh: Delete.
177 * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
178 obsolete configurations section.
179 * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
180 * vax-nat.c: Delete file.
181
182 2014-10-24 Pedro Alves <palves@redhat.com>
183
184 * NEWS (Removed targets): Add OS/arch column.
185
186 2014-10-24 Siva Chandra Reddy <sivachandra@google.com>
187
188 * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
189 on the arg type of a constructor only if it is of reference type.
190
191 2014-10-23 Sandra Loosemore <sandra@codesourcery.com>
192
193 * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
194 accessors and constants from nios2 opcodes update.
195 (nios2_get_next_pc): Likewise.
196
197 2014-10-19 Doug Evans <xdje42@gmail.com>
198
199 * gdbthread.h (set_running): Fix comment.
200 (set_executing, finish_thread_state): Fix comment.
201
202 2014-10-18 Doug Evans <xdje42@gmail.com>
203
204 * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
205
206 2014-10-17 Doug Evans <dje@google.com>
207
208 * NEWS: Mention new event gdb.clear_objfiles.
209 * python/py-event.h (emit_clear_objfiles_event): Clear
210 * python/py-events.h (events_object): New member clear_objfiles.
211 * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
212 event.
213 * python/py-inferior.c (python_new_objfile): If objfile is NULL,
214 emit clear_objfiles event.
215 * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
216 function.
217 (emit_clear_objfiles_event): New function.
218 (clear_objfiles): New event.
219 * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
220 Declare.
221 * python/python.c (_initialize_python): Call
222 gdbpy_initialize_clear_objfiles_event.
223
224 2014-10-17 Doug Evans <dje@google.com>
225
226 * NEWS: Mention new gdb.Objfile.progspace attribute.
227 * python/py-objfile.c (objfpy_get_progspace): New function.
228 (objfile_getset): New entry for "progspace".
229
230 2014-10-17 Pedro Alves <palves@redhat.com>
231
232 PR gdb/17471
233 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
234 returns a copy of the input.
235 (run_command_1, continue_command, step_1, jump_command)
236 (signal_command, until_command, advance_command, finish_command)
237 (attach_command): Adjust and install a cleanup to free the
238 stripped args.
239
240 2014-10-17 Pedro Alves <palves@redhat.com>
241
242 PR gdb/17300
243 * infcmd.c (continue_1): If continuing all threads in the
244 foreground, make sure the inferior's terminal settings are put in
245 effect.
246
247 2014-10-17 Pedro Alves <palves@redhat.com>
248
249 PR gdb/17472
250 * annotate.c (annotate_breakpoints_invalid): Use
251 target_terminal_our_for_output instead of target_terminal_ours.
252 Give back the terminal to the target.
253 (annotate_frames_invalid): Likewise.
254
255 2014-10-17 Pedro Alves <palves@redhat.com>
256
257 * target.c (enum terminal_state): New enum.
258 (terminal_state): New global.
259 (target_terminal_init): New function.
260 (target_terminal_inferior): Skip if inferior already owns the
261 terminal.
262 (target_terminal_ours, target_terminal_ours_for_output): New
263 functions.
264 * target.h (target_terminal_init): Convert to function prototype.
265 (target_terminal_ours_for_output): Convert to function prototype
266 and tweak comment.
267 (target_terminal_ours): Convert to function prototype and tweak
268 comment.
269 * windows-nat.c (do_initial_windows_stuff): Call
270 target_terminal_init instead of child_terminal_init_with_pgrp.
271
272 2014-10-17 Pedro Alves <palves@redhat.com>
273
274 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
275 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
276 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
277 solib-osf.c.
278 * NEWS: Mention that support for alpha*-*-osf* has been removed.
279 * ada-lang.h [__alpha__ && __osf__]
280 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
281 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
282 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
283 GDB_OSABI_OSF1.
284 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
285 files.
286 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
287 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
288 * configure: Regenerate.
289 * configure.ac: Remove references to osf.
290 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
291 section. Remove all other references to osf.
292 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
293 Remove all other references to osf.
294 * dec-thread.c: Delete file.
295 * defs.h (GDB_OSABI_OSF1): Delete.
296 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
297 defined.
298 * osabi.c (gdb_osabi_names): Delete "OSF/1".
299 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
300 Delete code.
301 (unconditionally_kill_inferior)
302 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
303 * solib-osf.c: Delete file.
304
305 2014-10-17 Pedro Alves <palves@redhat.com>
306
307 * remote.c (clear_threads_listing_context): Move higher up, out of
308 the HAVE_LIBEXPAT guard.
309
310 2014-10-16 Tristan Gingold <gingold@adacore.com>
311
312 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
313 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
314 on amd64.
315
316 2014-10-15 Pedro Alves <palves@redhat.com>
317
318 * dec-thread.c (dec_thread_count_gdb_threads)
319 (dec_thread_add_gdb_thread): Delete.
320 (dec_thread_update_thread_list): Delete.
321 (dec_thread_find_new_threads): Rename to ...
322 (dec_thread_update_thread_list): ... this. Delete GDB-size
323 threads that are no longer found in dec_thread_list.
324 (resync_thread_list): Delete.
325 (dec_thread_wait): Call dec_thread_update_thread_list instead of
326 resync_thread_list.
327
328 2014-10-15 Pedro Alves <palves@redhat.com>
329
330 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
331 * remote.c (remote_update_thread_list): Skip calling prune_threads
332 if any thread listing method is supported, and instead walk over
333 the set of remote threads listed, deleting those that are not
334 found in GDB's thread list.
335
336 2014-10-15 Pedro Alves <palves@redhat.com>
337
338 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
339 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
340 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
341 (bsd_uthread_target): Adjust.
342 * corelow.c (core_open): Adjust.
343 * dec-thread.c (dec_thread_find_new_threads): Update comment.
344 (dec_thread_update_thread_list): New function.
345 (init_dec_thread_ops): Adjust.
346 * gdbthread.h (prune_threads): New declaration.
347 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
348 (thread_db_update_thread_list): ... this. Call prune_threads.
349 (init_thread_db_ops): Adjust.
350 * nto-procfs.c (procfs_find_new_threads): Rename to ...
351 (procfs_update_thread_list): ... this. Call prune_threads.
352 (procfs_attach, procfs_create_inferior, init_procfs_targets):
353 Adjust.
354 * obsd-nat.c (obsd_find_new_threads): Rename to ...
355 (obsd_update_thread_list): ... this. Call prune_threads.
356 (obsd_add_target): Adjust.
357 * procfs.c (procfs_target): Adjust.
358 (procfs_notice_thread): Update comment.
359 (procfs_find_new_threads): Rename to ...
360 (procfs_update_thread_list): ... this. Call prune_threads.
361 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
362 comment.
363 (ravenscar_wait): Adjust.
364 (ravenscar_find_new_threads): Rename to ...
365 (ravenscar_update_thread_list): ... this. Call prune_threads.
366 (init_ravenscar_thread_ops): Adjust.
367 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
368 (record_btrace_update_thread_list): ... this. Adjust comment.
369 (init_record_btrace_ops): Adjust.
370 * remote.c (remote_threads_info): Rename to ...
371 (remote_update_thread_list): ... this. Call prune_threads.
372 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
373 Adjust.
374 * sol-thread.c (check_for_thread_db): Adjust.
375 (sol_find_new_threads_callback): Rename to ...
376 (sol_update_thread_list_callback): ... this.
377 (sol_find_new_threads): Rename to ...
378 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
379 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
380 * target-delegates.c: Regenerate.
381 * target.c (target_find_new_threads): Rename to ...
382 (target_update_thread_list): ... this.
383 * target.h (struct target_ops): Rename to_find_new_threads field
384 to to_update_thread_list.
385 (target_find_new_threads): Rename to ...
386 (target_update_thread_list): ... this.
387 * thread.c (prune_threads): Make extern.
388 (update_thread_list): Adjust.
389
390 2014-10-15 Pedro Alves <palves@redhat.com>
391
392 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
393 Add describing comment. Return -1 if the qL packet is not
394 supported.
395 (struct thread_item, thread_item_t): Move higher up in
396 the file. Add comments.
397 (struct threads_parsing_context): Move higher up in
398 the file, add comments, and remote to ...
399 (struct threads_listing_context): ... this.
400 (remote_newthread_step): Don't add the thread to GDB's thread
401 database here. Instead push it to the thread_listing_context
402 list.
403 (remote_find_new_threads): Rename to ...
404 (remote_get_threads_with_ql): ... this. Add target_ops and
405 targets_listing_context parameters. Pass down context.
406 (start_thread): Adjust.
407 (clear_threads_parsing_context): Rename to ...
408 (clear_threads_listing_context): ... this.
409 (remote_get_threads_with_qxfer): New, with parts salvaged from old
410 remote_threads_info.
411 (remote_get_threads_with_qthreadinfo): Ditto.
412 (remote_threads_info): Reimplement.
413
414 2014-10-15 Pedro Alves <palves@redhat.com>
415
416 * infrun.c (resume): Don't force displaced-stepping for all
417 single-steps on software single-stepping archs.
418
419 2014-10-15 Pedro Alves <palves@redhat.com>
420
421 * breakpoint.c (single_step_breakpoints): Delete global.
422 (insert_single_step_breakpoint): Adjust to store the breakpoint
423 pointer in the current thread.
424 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
425 (cancel_single_step_breakpoints): Delete functions.
426 (breakpoint_has_location_inserted_here): Make extern.
427 (single_step_breakpoint_inserted_here_p): Adjust to walk the
428 breakpoint list.
429 * breakpoint.h (breakpoint_has_location_inserted_here): New
430 declaration.
431 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
432 (cancel_single_step_breakpoints): Remove declarations.
433 * gdbthread.h (struct thread_control_state)
434 <single_step_breakpoints>: New field.
435 (delete_single_step_breakpoints)
436 (thread_has_single_step_breakpoints_set)
437 (thread_has_single_step_breakpoint_here): New declarations.
438 * infrun.c (follow_exec): Also clear the single-step breakpoints.
439 (singlestep_breakpoints_inserted_p, singlestep_ptid)
440 (singlestep_pc): Delete globals.
441 (infrun_thread_ptid_changed): Remove references to removed
442 globals.
443 (resume_cleanups): Delete the current thread's single-step
444 breakpoints.
445 (maybe_software_singlestep): Remove references to removed globals.
446 (resume): Adjust to use thread_has_single_step_breakpoints_set and
447 delete_single_step_breakpoints.
448 (init_wait_for_inferior): Remove references to removed globals.
449 (delete_thread_infrun_breakpoints): Delete the thread's
450 single-step breakpoints too.
451 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
452 single-step breakpoints here.
453 (delete_stopped_threads_single_step_breakpoints): New function.
454 (adjust_pc_after_break): Adjust to use
455 thread_has_single_step_breakpoints_set.
456 (handle_inferior_event): Remove references to removed globals.
457 Use delete_stopped_threads_single_step_breakpoints.
458 (handle_signal_stop): Adjust to per-thread single-step
459 breakpoints. Swap test order to do cheaper tests first.
460 (switch_back_to_stepped_thread): Extend debug output. Remove
461 references to removed globals.
462 * record-full.c (record_full_wait_1): Adjust to per-thread
463 single-step breakpoints.
464 * thread.c (delete_single_step_breakpoints)
465 (thread_has_single_step_breakpoints_set)
466 (thread_has_single_step_breakpoint_here): New functions.
467 (clear_thread_inferior_resources): Also delete the thread's
468 single-step breakpoints.
469
470 2014-10-15 Pedro Alves <palves@redhat.com>
471
472 * thread.c (delete_thread_breakpoint): New function.
473 (delete_step_resume_breakpoint)
474 (delete_exception_resume_breakpoint): Use it.
475 (delete_at_next_stop): New function.
476 (clear_thread_inferior_resources): Use delete_at_next_stop.
477
478 2014-10-15 Pedro Alves <palves@redhat.com>
479
480 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
481 (breakpoint_inserted_here_p): ... here. Remove special case for
482 software single-step breakpoints.
483 (find_non_raw_software_breakpoint_inserted_here): Inline ...
484 (software_breakpoint_inserted_here_p): ... here. Remove special
485 case for software single-step breakpoints.
486 (bp_target_info_copy_insertion_state)
487 (deprecated_insert_raw_breakpoint)
488 (deprecated_remove_raw_breakpoint): Delete functions.
489 * breakpoint.h (deprecated_insert_raw_breakpoint)
490 (deprecated_remove_raw_breakpoint): Remove declarations.
491
492 2014-10-15 Pedro Alves <palves@redhat.com>
493
494 PR breakpoints/9649
495 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
496 Delete array globals.
497 (single_step_breakpoints): New global.
498 (breakpoint_xfer_memory): Remove special handling for single-step
499 breakpoints.
500 (update_breakpoints_after_exec): Delete bp_single_step
501 breakpoints.
502 (detach_breakpoints): Remove special handling for single-step
503 breakpoints.
504 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
505 (bpstat_stop_status): Add comment.
506 (bpstat_what, bptype_string, print_one_breakpoint_location)
507 (adjust_breakpoint_address, init_bp_location): Handle
508 bp_single_step.
509 (new_single_step_breakpoint): New function.
510 (set_momentary_breakpoint, bkpt_remove_location): Remove special
511 handling for single-step breakpoints.
512 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
513 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
514 Rewrite.
515 (detach_single_step_breakpoints, find_single_step_breakpoint):
516 Delete functions.
517 (breakpoint_has_location_inserted_here): New function.
518 (single_step_breakpoint_inserted_here_p): Rewrite.
519 * breakpoint.h: Remove FIXME.
520 (enum bptype) <bp_single_step>: New enum value.
521 (insert_single_step_breakpoint): Update comment.
522 * infrun.c (resume_cleanups)
523 (delete_step_thread_step_resume_breakpoint): Remove single-step
524 breakpoints.
525 (fetch_inferior_event): Install a cleanup that removes infrun
526 breakpoints.
527 (switch_back_to_stepped_thread) <expect thread advanced also>:
528 Clear step-over info.
529
530 2014-10-15 Pedro Alves <palves@redhat.com>
531
532 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
533 (delete_thread_infrun_breakpoints): New function, with parts
534 salvaged from delete_step_resume_breakpoint_callback.
535 (delete_step_thread_step_resume_breakpoint): Delete.
536 (for_each_just_stopped_thread_callback_func): New typedef.
537 (for_each_just_stopped_thread): New function.
538 (delete_just_stopped_threads_infrun_breakpoints): New function.
539 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
540 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
541 ... this. Adjust.
542 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
543
544 2014-10-15 Pedro Alves <palves@redhat.com>
545
546 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
547 trying to step past a non-steppable watchpoint.
548 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
549 field.
550 * infrun.c (struct step_over_info): Add new field
551 'nonsteppable_watchpoint_p' and adjust comments.
552 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
553 Adjust.
554 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
555 (stepping_past_nonsteppable_watchpoint): New function.
556 (step_over_info_valid_p): Also return true if stepping past a
557 nonsteppable watchpoint.
558 (proceed): Adjust call to set_step_over_info. Remove reference to
559 init_infwait_state.
560 (init_wait_for_inferior): Remove reference to init_infwait_state.
561 (waiton_ptid): Delete global.
562 (struct execution_control_state)
563 <stepped_after_stopped_by_watchpoint>: Delete field.
564 (wait_for_inferior, fetch_inferior_event): Always pass
565 minus_one_ptid to target_wait.
566 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
567 field.
568 (init_infwait_state): Delete function.
569 (handle_inferior_event): Remove infwait_state handling.
570 (handle_signal_stop) <watchpoints handling>: Adjust after
571 stepped_after_stopped_by_watchpoint removal. Don't remove
572 breakpoints here nor set infwait_state. Set the thread's
573 stepping_over_watchpoint flag, and call keep_going instead.
574 (keep_going): Handle stepping_over_watchpoint. Adjust
575 set_step_over_info calls.
576 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
577 function.
578
579 2014-10-15 Pedro Alves <palves@redhat.com>
580
581 * infrun.c (step_over_info_valid_p): New function.
582 (resume): Use step_over_info_valid_p instead of checking the
583 threads's trap_expected flag.
584
585 2014-10-15 Doug Evans <dje@google.com>
586 Walfred Tedeschi <walfred.tedeschi@intel.com>
587
588 PR python/17364
589 * python/lib/gdb/__init__.py (packages): Add "printer".
590 * python/lib/gdb/command/bound_registers.py: Moved to ...
591 * python/lib/gdb/printer/bound_registers.py: ... here.
592 Add printer to global set of builtin printers. Rename printer from
593 "bound" to "mpx_bound128".
594 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
595 registered as global "builtin" printer.
596 (add_builtin_pretty_printer): New function.
597 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
598 gdb/printer/__init__.py.
599
600 2014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
601
602 * Makefile.in (SFILES): Remove d-support.c.
603 (COMMON_OBS): Remove d-support.o.
604 * d-lang.h (d_parse_symbol): Remove declaration.
605 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
606 * d-support.c: Remove file.
607
608 2014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
609
610 * gdb/infrun.c (process_event_stop_test): Apply
611 gdbarch_addr_bits_remove to longjmp resume address.
612
613 2014-10-15 Pedro Alves <palves@redhat.com>
614
615 * regformats/microblaze.dat: Delete file.
616
617 2014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
618
619 * features/Makefile (microblaze-expedite): Replace pc with rpc.
620 * regformats/microblaze-with-stack-protect.dat: Regenerate.
621
622 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
623
624 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
625 as non-trivial.
626
627 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
628
629 PR c++/13403
630 PR c++/15154
631 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
632 with qualified args.
633
634 2014-10-14 Joel Brobecker <brobecker@adacore.com>
635
636 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
637 of the case where the second operand is a pointer.
638 <BINOP_SUB>: Likewise.
639
640 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
641
642 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
643 only if it is not NULL.
644 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
645 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
646 (struct probe_ops) <clear_semaphore>: Likewise.
647 * tracepoint.c (start_tracing): Call set_semaphore only if it is
648 not NULL.
649 (stop_tracing): Likewise, for clear_semaphore.
650
651 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
652
653 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
654 using language_c, instead of current_language.
655
656 2014-10-13 Doug Evans <dje@google.com>
657
658 * python/py-objfile.c (objfpy_initialize): New function.
659 (objfpy_new, objfile_to_objfile_object): Call it.
660 * python/py-progspace.c (pspy_initialize): New function.
661 (pspy_new, pspace_to_pspace_object): Call it.
662
663 2014-10-13 Miroslav Franc <mfranc@redhat.com>
664 Jan Kratochvil <jan.kratochvil@redhat.com>
665
666 Fix "save breakpoints" for "catch" command.
667 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
668 newline.
669
670 2014-10-12 Miroslav Franc <mfranc@redhat.com>
671
672 Fix "save breakpoints" for "disable $bpnum" command.
673 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
674
675 2014-10-10 Pedro Alves <palves@redhat.com>
676
677 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
678 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
679 (HFILES_NO_SRCDIR): Remove solib-irix.h.
680 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
681 and been removed.
682 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
683 * configure.ac: Remove references to IRIX.
684 * configure.host: Add *-*-irix* to the obsolete hosts section.
685 Remove all other references to irix.
686 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
687 Delete files.
688
689 2014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
690
691 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
692 isn't valid, release the tdesc arch data and return NULL.
693
694 2014-10-10 Pedro Alves <palves@redhat.com>
695
696 * linux-tdep.c: Include observer.h.
697 (linux_inferior_data): New global.
698 (struct linux_info): New structure.
699 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
700 (get_linux_inferior_data): New functions.
701 (linux_vsyscall_range): Rename to ...
702 (linux_vsyscall_range_raw): ... this.
703 (linux_vsyscall_range): New function; handles caching.
704 (_initialize_linux_tdep): Register linux_inferior_data. Install
705 inferior_exit and inferior_appeared observers.
706
707 2014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
708 Pedro Alves <palves@redhat.com>
709
710 PR symtab/14466
711 * solib-svr4.c (svr4_read_so_list): Rename to ...
712 (svr4_current_sos_1): ... this and change the function comment.
713 (svr4_current_sos): New function.
714
715 2014-10-10 Pedro Alves <palves@redhat.com>
716
717 * arch-utils.c (default_vsyscall_range): New function.
718 * arch-utils.h (default_vsyscall_range): New declaration.
719 * gdbarch.sh (vsyscall_range): New hook.
720 * gdbarch.h, gdbarch.c: Regenerate.
721 * linux-tdep.c (linux_vsyscall_range): New function.
722 (linux_init_abi): Install linux_vsyscall_range as
723 vsyscall_range gdbarch hook.
724 * memrange.c (address_in_mem_range): New function.
725 * memrange.h (address_in_mem_range): New declaration.
726 * symfile-mem.c (find_vdso_size): Delete function.
727 (add_vsyscall_page): Use gdbarch_vsyscall_range.
728
729 2014-10-10 Pedro Alves <palves@redhat.com>
730
731 * infrun.c (normal_stop): Fix typo in comment.
732
733 2014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
734
735 PR tdep/9390
736 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
737 typo when using logical AND to determine instruction type.
738
739 2014-10-09 Yao Qi <yao@codesourcery.com>
740
741 * infrun.c (handle_signal_stop): Remove local variable
742 'printed'.
743
744 2014-10-08 Stan Shebs <stan@codesourcery.com>
745
746 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
747
748 2014-10-08 Gary Benson <gbenson@redhat.com>
749
750 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
751
752 2014-10-08 Gary Benson <gbenson@redhat.com>
753
754 * common/common-defs.h: Include common-exceptions.h.
755 * exceptions.h: Do not include common-exceptions.h.
756
757 2014-10-08 Gary Benson <gbenson@redhat.com>
758
759 * common/common-defs.h: Include cleanups.h.
760 * common/common-exceptions.c: Do not include cleanups.h.
761 * utils.h: Likewise.
762
763 2014-10-08 Gary Benson <gbenson@redhat.com>
764
765 * ada-lang.c: Do not include exceptions.h.
766 * ada-valprint.c: Likewise.
767 * amd64-tdep.c: Likewise.
768 * auto-load.c: Likewise.
769 * block.c: Likewise.
770 * break-catch-throw.c: Likewise.
771 * breakpoint.c: Likewise.
772 * btrace.c: Likewise.
773 * c-lang.c: Likewise.
774 * cli/cli-cmds.c: Likewise.
775 * cli/cli-interp.c: Likewise.
776 * cli/cli-script.c: Likewise.
777 * completer.c: Likewise.
778 * corefile.c: Likewise.
779 * corelow.c: Likewise.
780 * cp-abi.c: Likewise.
781 * cp-support.c: Likewise.
782 * cp-valprint.c: Likewise.
783 * darwin-nat.c: Likewise.
784 * dwarf2-frame-tailcall.c: Likewise.
785 * dwarf2-frame.c: Likewise.
786 * dwarf2loc.c: Likewise.
787 * dwarf2read.c: Likewise.
788 * eval.c: Likewise.
789 * event-loop.c: Likewise.
790 * event-top.c: Likewise.
791 * f-valprint.c: Likewise.
792 * frame-unwind.c: Likewise.
793 * frame.c: Likewise.
794 * gdbtypes.c: Likewise.
795 * gnu-v2-abi.c: Likewise.
796 * gnu-v3-abi.c: Likewise.
797 * guile/scm-auto-load.c: Likewise.
798 * guile/scm-breakpoint.c: Likewise.
799 * guile/scm-cmd.c: Likewise.
800 * guile/scm-frame.c: Likewise.
801 * guile/scm-lazy-string.c: Likewise.
802 * guile/scm-param.c: Likewise.
803 * guile/scm-symbol.c: Likewise.
804 * guile/scm-type.c: Likewise.
805 * hppa-hpux-tdep.c: Likewise.
806 * i386-tdep.c: Likewise.
807 * inf-loop.c: Likewise.
808 * infcall.c: Likewise.
809 * infcmd.c: Likewise.
810 * infrun.c: Likewise.
811 * interps.c: Likewise.
812 * interps.h: Likewise.
813 * jit.c: Likewise.
814 * linespec.c: Likewise.
815 * linux-nat.c: Likewise.
816 * linux-thread-db.c: Likewise.
817 * m32r-rom.c: Likewise.
818 * main.c: Likewise.
819 * memory-map.c: Likewise.
820 * mi/mi-cmd-break.c: Likewise.
821 * mi/mi-cmd-stack.c: Likewise.
822 * mi/mi-interp.c: Likewise.
823 * mi/mi-main.c: Likewise.
824 * monitor.c: Likewise.
825 * nto-procfs.c: Likewise.
826 * objc-lang.c: Likewise.
827 * p-valprint.c: Likewise.
828 * parse.c: Likewise.
829 * ppc-linux-tdep.c: Likewise.
830 * printcmd.c: Likewise.
831 * probe.c: Likewise.
832 * python/py-auto-load.c: Likewise.
833 * python/py-breakpoint.c: Likewise.
834 * python/py-cmd.c: Likewise.
835 * python/py-finishbreakpoint.c: Likewise.
836 * python/py-frame.c: Likewise.
837 * python/py-framefilter.c: Likewise.
838 * python/py-function.c: Likewise.
839 * python/py-gdb-readline.c: Likewise.
840 * python/py-inferior.c: Likewise.
841 * python/py-infthread.c: Likewise.
842 * python/py-lazy-string.c: Likewise.
843 * python/py-linetable.c: Likewise.
844 * python/py-param.c: Likewise.
845 * python/py-prettyprint.c: Likewise.
846 * python/py-symbol.c: Likewise.
847 * python/py-type.c: Likewise.
848 * python/py-value.c: Likewise.
849 * python/python-internal.h: Likewise.
850 * python/python.c: Likewise.
851 * record-btrace.c: Likewise.
852 * record-full.c: Likewise.
853 * regcache.c: Likewise.
854 * remote-fileio.c: Likewise.
855 * remote-mips.c: Likewise.
856 * remote.c: Likewise.
857 * rs6000-aix-tdep.c: Likewise.
858 * rs6000-nat.c: Likewise.
859 * skip.c: Likewise.
860 * solib-darwin.c: Likewise.
861 * solib-dsbt.c: Likewise.
862 * solib-frv.c: Likewise.
863 * solib-ia64-hpux.c: Likewise.
864 * solib-spu.c: Likewise.
865 * solib-svr4.c: Likewise.
866 * solib.c: Likewise.
867 * spu-tdep.c: Likewise.
868 * stack.c: Likewise.
869 * stap-probe.c: Likewise.
870 * symfile-mem.c: Likewise.
871 * symmisc.c: Likewise.
872 * target.c: Likewise.
873 * thread.c: Likewise.
874 * top.c: Likewise.
875 * tracepoint.c: Likewise.
876 * tui/tui-interp.c: Likewise.
877 * typeprint.c: Likewise.
878 * utils.c: Likewise.
879 * valarith.c: Likewise.
880 * valops.c: Likewise.
881 * valprint.c: Likewise.
882 * value.c: Likewise.
883 * varobj.c: Likewise.
884 * windows-nat.c: Likewise.
885 * xml-support.c: Likewise.
886
887 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
888
889 * mips-tdep.c (add_offset_16): Rewrite to implement what the
890 name implies.
891 (extended_mips16_next_pc): Update accordingly.
892
893 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
894
895 * mips-tdep.c (mips16_instruction_is_compact_branch): New
896 function.
897 (micromips_instruction_is_compact_branch): Likewise.
898 (mips16_scan_prologue): Terminate scanning upon seeing a branch
899 or a compact jump, reaching a jump delay slot, or seeing a
900 second non-prologue instruction.
901 (micromips_scan_prologue): Also terminate scanning upon seeing a
902 compact branch or jump, or reaching a branch or jump delay slot.
903 (mips32_scan_prologue): Terminate scanning upon reaching a branch
904 or jump delay slot, or seeing a second non-prologue instruction.
905 (mips32_instruction_has_delay_slot): Retain instruction
906 examination code only, update arguments accordingly and move
907 instruction fetch pieces to...
908 (mips32_insn_at_pc_has_delay_slot): ... this new function.
909 (micromips_instruction_has_delay_slot): Likewise and to...
910 (micromips_insn_at_pc_has_delay_slot): ... this new function.
911 (mips16_instruction_has_delay_slot): Likewise and to...
912 (mips16_insn_at_pc_has_delay_slot): ... this new function.
913 (mips_single_step_through_delay): Update accordingly.
914 (mips_adjust_breakpoint_address): Likewise.
915
916 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
917
918 * mips-tdep.c (micromips_instruction_has_delay_slot): When
919 !mustbe32 also return 1 for 32-bit instructions.
920 (mips16_instruction_has_delay_slot): Likewise. Add an
921 explanatory comment.
922
923 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
924
925 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
926 symbols special.
927
928 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
929
930 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
931 update comments.
932 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
933 for the breakpoint's address. Don't preinitialize `placed_size'.
934 (insert_bp_location): Set `reqstd_address' rather than
935 `placed_address'.
936 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
937 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
938 address.
939 (bkpt_remove_location): Likewise.
940 (deprecated_insert_raw_breakpoint): Likewise.
941 (deprecated_remove_raw_breakpoint): Likewise.
942 (find_single_step_breakpoint): Likewise.
943 * mem-break.c (default_memory_insert_breakpoint): Use
944 `reqstd_address' for the breakpoint's address. Don't set
945 `placed_address' or `placed_size' if breakpoint contents couldn't
946 have been determined.
947 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
948 the breakpoint's address.
949 (remote_insert_hw_breakpoint): Likewise. Don't set
950 `placed_address' or `placed_size' if breakpoint couldn't have been
951 set.
952 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
953 `reqstd_address' for the breakpoint's address.
954 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
955 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
956 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
957 * microblaze-linux-tdep.c
958 (microblaze_linux_memory_remove_breakpoint): Likewise.
959 * monitor.c (monitor_insert_breakpoint): Likewise.
960 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
961 (procfs_insert_hw_breakpoint): Likewise.
962 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
963 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
964 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
965 * remote-mips.c (mips_insert_breakpoint): Likewise.
966 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
967
968 2014-10-03 Luis Machado <lgustavo@codesourcery.com>
969
970 * valops.c (value_assign): Check for bit field assignments
971 before calling architecture-specific register value
972 conversion functions.
973
974 2014-10-03 Pierre Muller <muller@sourceware.org>
975
976 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
977
978 2014-10-02 Pedro Alves <palves@redhat.com>
979
980 * breakpoint.c (breakpoints_should_be_inserted_now): Use
981 threads_are_executing.
982 * breakpoint.h (breakpoints_should_be_inserted_now): Add
983 describing comment.
984 * gdbthread.h (threads_are_executing): Declare.
985 (handle_signal_stop) <random signals>: Don't print about the
986 signal here if stopping.
987 (end_stepping_range): Don't notify observers here.
988 (normal_stop): Update the thread list. If stopped by a random
989 signal or a stepping range ended, notify observers.
990 * thread.c (threads_executing): New global.
991 (init_thread_list): Clear 'threads_executing'.
992 (set_executing): Set or clear 'threads_executing'.
993 (threads_are_executing): New function.
994 (update_threads_executing): New function.
995 (update_thread_list): Use it.
996
997 2014-10-02 Pedro Alves <palves@redhat.com>
998
999 PR breakpoints/17431
1000 * breakpoint.c (update_breakpoints_after_exec): Don't create
1001 overlay, longjmp, std terminate nor exception breakpoints here.
1002
1003 2014-10-02 Pedro Alves <palves@redhat.com>
1004
1005 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
1006 Adjust comments.
1007 * inferior.c (find_inferior_for_program_space): Give preference to
1008 the current inferior.
1009 * inferior.h (find_inferior_for_program_space): Update comment.
1010 * progspace.c (switch_to_program_space_and_thread): Prefer the
1011 current inferior if it's bound to the program space requested. If
1012 the inferior found doesn't have a PID yet, don't bother looking up
1013 a thread.
1014 * progspace.h (switch_to_program_space_and_thread): Adjust
1015 comment.
1016 * thread.c (any_thread_of_process, any_live_thread_of_process):
1017 Give preference to the current thread.
1018
1019 2014-10-01 Pedro Alves <palves@redhat.com>
1020
1021 * breakpoint.c (insert_bp_location): Error out if inserting a
1022 software breakpoint at a read-only address.
1023 * target.c (memory_xfer_check_region): New function, factored out
1024 from ...
1025 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
1026 ULONGEST.
1027 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
1028 against the memory region attributes.
1029
1030 2014-10-01 Simon Marchi <simon.marchi@ericsson.com>
1031
1032 * NEWS: Announce new exit-code field in -list-thread-groups
1033 output.
1034 * inferior.c (exit_inferior_1): Don't clear exit code.
1035 (inferior_appeared): Clear exit code.
1036 * mi/mi-main.c (print_one_inferior): Add printing of the exit
1037 code.
1038
1039 2014-10-01 Pedro Alves <palves@redhat.com>
1040
1041 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
1042 GENERATED" along with emacs/vi read-only markers.
1043 * regformats/aarch64.dat: Regenerate.
1044 * regformats/arm-with-iwmmxt.dat: Regenerate.
1045 * regformats/arm-with-neon.dat: Regenerate.
1046 * regformats/arm-with-vfpv2.dat: Regenerate.
1047 * regformats/arm-with-vfpv3.dat: Regenerate.
1048 * regformats/i386/amd64-avx-linux.dat: Regenerate.
1049 * regformats/i386/amd64-avx.dat: Regenerate.
1050 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
1051 * regformats/i386/amd64-avx512.dat: Regenerate.
1052 * regformats/i386/amd64-linux.dat: Regenerate.
1053 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
1054 * regformats/i386/amd64-mpx.dat: Regenerate.
1055 * regformats/i386/amd64.dat: Regenerate.
1056 * regformats/i386/i386-avx-linux.dat: Regenerate.
1057 * regformats/i386/i386-avx.dat: Regenerate.
1058 * regformats/i386/i386-avx512-linux.dat: Regenerate.
1059 * regformats/i386/i386-avx512.dat: Regenerate.
1060 * regformats/i386/i386-linux.dat: Regenerate.
1061 * regformats/i386/i386-mmx-linux.dat: Regenerate.
1062 * regformats/i386/i386-mmx.dat: Regenerate.
1063 * regformats/i386/i386-mpx-linux.dat: Regenerate.
1064 * regformats/i386/i386-mpx.dat: Regenerate.
1065 * regformats/i386/i386.dat: Regenerate.
1066 * regformats/i386/x32-avx-linux.dat: Regenerate.
1067 * regformats/i386/x32-avx.dat: Regenerate.
1068 * regformats/i386/x32-avx512-linux.dat: Regenerate.
1069 * regformats/i386/x32-avx512.dat: Regenerate.
1070 * regformats/i386/x32-linux.dat: Regenerate.
1071 * regformats/i386/x32.dat: Regenerate.
1072 * regformats/microblaze-with-stack-protect.dat: Regenerate.
1073 * regformats/mips-dsp-linux.dat: Regenerate.
1074 * regformats/mips-linux.dat: Regenerate.
1075 * regformats/mips64-dsp-linux.dat: Regenerate.
1076 * regformats/mips64-linux.dat: Regenerate.
1077 * regformats/nios2-linux.dat: Regenerate.
1078 * regformats/rs6000/powerpc-32.dat: Regenerate.
1079 * regformats/rs6000/powerpc-32l.dat: Regenerate.
1080 * regformats/rs6000/powerpc-64l.dat: Regenerate.
1081 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
1082 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
1083 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
1084 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
1085 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
1086 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
1087 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
1088 * regformats/s390-linux32.dat: Regenerate.
1089 * regformats/s390-linux32v1.dat: Regenerate.
1090 * regformats/s390-linux32v2.dat: Regenerate.
1091 * regformats/s390-linux64.dat: Regenerate.
1092 * regformats/s390-linux64v1.dat: Regenerate.
1093 * regformats/s390-linux64v2.dat: Regenerate.
1094 * regformats/s390-te-linux64.dat: Regenerate.
1095 * regformats/s390x-linux64.dat: Regenerate.
1096 * regformats/s390x-linux64v1.dat: Regenerate.
1097 * regformats/s390x-linux64v2.dat: Regenerate.
1098 * regformats/s390x-te-linux64.dat: Regenerate.
1099 * regformats/tic6x-c62x-linux.dat: Regenerate.
1100 * regformats/tic6x-c62x.dat: Regenerate.
1101 * regformats/tic6x-c64x-linux.dat: Regenerate.
1102 * regformats/tic6x-c64x.dat: Regenerate.
1103 * regformats/tic6x-c64xp-linux.dat: Regenerate.
1104 * regformats/tic6x-c64xp.dat: Regenerate.
1105
1106 2014-10-01 Pedro Alves <palves@redhat.com>
1107
1108 * features/Makefile: Update comments.
1109 (XMLTOC): List all xml files we build C files from.
1110 (clean-cfiles): New rule.
1111
1112 2014-10-01 Pedro Alves <palves@redhat.com>
1113
1114 * features/i386/amd64-avx512-linux.c: Regenerate.
1115 * features/i386/amd64-avx512.c: Regenerate.
1116 * features/i386/x32-avx512-linux.c: Regenerate.
1117 * features/i386/x32-avx512.c: Regenerate.
1118
1119 2014-10-01 Pedro Alves <palves@redhat.com>
1120
1121 * features/Makefile (WHICH): Remove arm-with-m,
1122 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
1123
1124 2014-10-01 Pedro Alves <palves@redhat.com>
1125
1126 * features/Makefile (clean): New rule.
1127
1128 2014-10-01 Pedro Alves <palves@redhat.com>
1129
1130 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
1131 (zmm14h): Add missing end quotes.
1132
1133 2014-10-01 Pedro Alves <palves@redhat.com>
1134
1135 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
1136 * features/aarch64.c: Regenerate.
1137
1138 2014-09-30 Don Breazeal <donb@codesourcery.com>
1139
1140 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
1141 code so as to work with follow_fork_inferior.
1142 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
1143 (inf_ttrace_create_inferior): Remove reference to
1144 inf_ttrace_vfork_ppid.
1145 (inf_ttrace_attach): Ditto.
1146 (inf_ttrace_detach): Ditto.
1147 (inf_ttrace_kill): Use current_inferior instead of
1148 inf_ttrace_vfork_ppid.
1149 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
1150 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
1151 inferior away from the parent.
1152 * infrun.c (follow_fork): Call follow_fork_inferior instead of
1153 target_follow_fork.
1154 (follow_fork_inferior): New function.
1155 (follow_inferior_reset_breakpoints): Make function static.
1156 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
1157 * linux-nat.c (linux_child_follow_fork): Move target-independent
1158 code to infrun.c:follow_fork_inferior.
1159
1160 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1161
1162 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
1163 * gdbarch.c: Regenerate.
1164 * gdbarch.h: Likewise.
1165 * corelow.c (sniff_core_bfd): Drop presence check for deleted
1166 gdbarch method 'regset_from_core_section'.
1167 (get_core_register_section): Remove handling for the case that
1168 regset == NULL and regset_from_core_section is defined.
1169 (get_core_registers): Drop check for deleted method.
1170 * procfs.c (procfs_do_thread_registers): Adjust comment.
1171
1172 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1173
1174 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
1175 (linux_nat_make_corefile_notes): Remove.
1176 (linux_target_install_ops): Do not set target method
1177 'make_corefile_notes'.
1178 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
1179 Remove field.
1180 (linux_corefile_thread_callback): Instead of args->collect, call
1181 linux_collect_thread_registers.
1182 (linux_make_corefile_notes): Remove 'collect' parameter. Return
1183 NULL unless there is a regset iterator.
1184 (linux_make_corefile_notes_1): Remove.
1185 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
1186 by linux_make_corefile_notes.
1187 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
1188
1189 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1190
1191 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
1192 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
1193 Remove.
1194 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
1195
1196 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1197
1198 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
1199 (xtensa_iterate_over_regset_sections): New.
1200 (xtensa_gdbarch_init): Adjust gdbarch initialization.
1201
1202 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1203
1204 * vax-tdep.c (vax_regset_from_core_section): Remove.
1205 (vax_iterate_over_regset_sections): New.
1206 (vax_gdbarch_init): Adjust gdbarch initialization.
1207
1208 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1209
1210 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
1211 (tilegx_regset_from_core_section): Remove.
1212 (tilegx_iterate_over_regset_sections): New.
1213 (tilegx_linux_init_abi): Adjust gdbarch initialization.
1214
1215 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1216
1217 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
1218 (sparc_iterate_over_regset_sections): New.
1219 (sparc32_gdbarch_init): Adjust gdbarch initialization.
1220 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
1221 targets.
1222 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
1223 (sparc64fbsd_init_abi): Call fbsd_init_abi.
1224 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
1225 target method 'make_corefile_notes'.
1226
1227 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1228
1229 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
1230 'sizeof_gregset' and 'sizeof_fpregset'.
1231 * sh-tdep.c (sh_regset_from_core_section): Remove.
1232 (sh_iterate_over_regset_sections): New.
1233 (sh_gdbarch_init): Adjust gdbarch initialization.
1234 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
1235 sizeof_fpregset.
1236 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
1237 'sizeof_gregset'.
1238
1239 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1240
1241 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
1242 (score7_linux_iterate_over_regset_sections): New.
1243 (score_gdbarch_init): Adjust gdbarch initialization.
1244
1245 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1246
1247 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
1248 FreeBSD targets.
1249 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
1250 method 'make_corefile_notes'.
1251 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
1252 (ppcfbsd_regset_from_core_section): Remove.
1253 (ppcfbsd_iterate_over_regset_sections): New.
1254 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
1255 initialization.
1256 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
1257 (ppcnbsd_iterate_over_regset_sections): New.
1258 (ppcnbsd_init_abi): Adjust.
1259 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
1260 (ppcobsd_iterate_over_regset_sections): New.
1261 (ppcobsd_init_abi): Adjust.
1262 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
1263 (rs6000_aix_iterate_over_regset_sections): New.
1264 (rs6000_aix_init_osabi): Adjust.
1265
1266 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1267
1268 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
1269 (nios2_regset_from_core_section): Remove.
1270 (nios2_iterate_over_regset_sections): New.
1271 (nios2_linux_init_abi): Adjust gdbarch initialization.
1272
1273 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1274
1275 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
1276 (am33_iterate_over_regset_sections): New.
1277 (am33_linux_init_osabi): Adjust gdbarch initialization.
1278
1279 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1280
1281 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
1282 (mips_linux_iterate_over_regset_sections): New.
1283 (mips_linux_init_abi): Adjust gdbarch initialization.
1284 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
1285 (mips64obsd_iterate_over_regset_sections): New.
1286 (mips64obsd_init_abi): Adjust.
1287 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
1288 (mipsnbsd_iterate_over_regset_sections): New.
1289 (mipsnbsd_init_abi): Adjust.
1290
1291 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1292
1293 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
1294 (m88k_iterate_over_regset_sections): New.
1295 (m88k_gdbarch_init): Adjust gdbarch initialization.
1296
1297 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1298
1299 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
1300 (ia64_linux_iterate_over_regset_sections): New.
1301 (ia64_linux_init_abi): Adjust gdbarch initialization.
1302
1303 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1304
1305 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
1306 (m68kbsd_iterate_over_regset_sections): New.
1307 (m68kbsd_init_abi): Adjust gdbarch initialization.
1308 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
1309 (m68k_linux_iterate_over_regset_sections): New.
1310 (m68k_linux_init_abi): Adjust gdbarch initialization.
1311
1312 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1313
1314 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
1315 (m32r_linux_regset_from_core_section): Remove.
1316 (m32r_linux_iterate_over_regset_sections): New.
1317 (m32r_linux_init_abi): Adjust gdbarch initialization.
1318
1319 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1320
1321 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
1322 (amd64obsd_iterate_over_regset_sections): New.
1323 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
1324 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
1325 Remove.
1326 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
1327 regset_from_core_section initialization.
1328 * i386-tdep.c (i386_regset_from_core_section): Remove.
1329 (i386_iterate_over_regset_sections): New.
1330 (i386_gdbarch_init): Adjust gdbarch initialization.
1331 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
1332 (i386_iterate_over_regset_sections): New prototype.
1333 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
1334 Remove.
1335 (i386obsd_aout_iterate_over_regset_sections): New.
1336 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
1337 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
1338 targets.
1339 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
1340 (amd64fbsd_init_abi): Call fbsd_init_abi.
1341 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
1342 (i386fbsd4_init_abi): Call fbsd_init_abi.
1343 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
1344 target method 'make_corefile_notes'.
1345 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
1346
1347 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1348
1349 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
1350 (hppa_hpux_iterate_over_regset_sections): New.
1351 (hppa_hpux_init_abi): Adjust gdbarch initialization.
1352 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
1353 (hppa_linux_iterate_over_regset_sections): New.
1354 (hppa_linux_init_abi): Adjust.
1355 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
1356 (hppanbsd_iterate_over_regset_sections): New.
1357 (hppanbsd_init_abi): Adjust.
1358 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
1359 (hppaobsd_iterate_over_regset_sections): New.
1360 (hppaobsd_init_abi): Adjust.
1361
1362 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1363
1364 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
1365 (frv_linux_iterate_over_regset_sections): New.
1366 (frv_linux_init_abi): Adjust gdbarch initialization.
1367
1368 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1369
1370 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
1371 (armbsd_iterate_over_regset_sections): New prototype.
1372 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
1373 (armbsd_iterate_over_regset_sections): New.
1374 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
1375 initialization.
1376
1377 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1378
1379 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
1380 (alpha_linux_iterate_over_regset_sections): New.
1381 (alpha_linux_init_abi): Adjust gdbarch initialization.
1382 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
1383 prototype.
1384 (alphanbsd_iterate_over_regset_sections): New prototype.
1385
1386 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1387
1388 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
1389 Remove.
1390 (aarch64_linux_iterate_over_regset_sections): New.
1391 (aarch64_linux_init_abi): Adjust gdbarch initialization.
1392
1393 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1394
1395 * fbsd-tdep.c: New file.
1396 * fbsd-tdep.h: New file.
1397 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
1398 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
1399 (ALLDEPFILES): Add fbsd-tdep.c.
1400
1401 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1402
1403 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
1404 parameter.
1405 * gdbarch.h: Regenerate.
1406 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
1407 iterator.
1408 (get_core_register_section): Add parameter 'regset' and use it, if
1409 set. Add parameter 'min_size' and verify the bfd section size
1410 against it.
1411 (get_core_registers_cb): Add parameter 'regset' and pass it to
1412 get_core_register section. For the "standard" register sections
1413 ".reg" and ".reg2", set an appropriate default for human_name.
1414 (get_core_registers): Don't abort when the gdbarch has an iterator
1415 but no regset_from_core_section. Add NULL/0 for parameters
1416 'regset'/'min_size' in calls to get_core_register_section.
1417 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
1418 'regset' and use it instead of calling the
1419 regset_from_core_section gdbarch method.
1420 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
1421 * i386-tdep.c (i386_supply_xstateregset)
1422 (i386_collect_xstateregset, i386_xstateregset): Moved to
1423 i386-linux-tdep.c.
1424 (i386_regset_from_core_section): Drop handling for .reg-xfp and
1425 .reg-xstate.
1426 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
1427 core file support only if the regset iterator hasn't been set.
1428 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
1429 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
1430 Moved from i386-tdep.c and renamed to *_linux*.
1431 (i386_linux_iterate_over_regset_sections): Add regset parameter to
1432 each callback invocation. Allow any .reg-xstate size when reading
1433 from a core file.
1434 * amd64-tdep.c (amd64_supply_xstateregset)
1435 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
1436 amd64-linux-tdep.c.
1437 (amd64_regset_from_core_section): Remove.
1438 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
1439 install an amd64-specific regset_from_core_section gdbarch method.
1440 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
1441 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
1442 Moved from amd64-tdep.c and renamed to *_linux*.
1443 (amd64_linux_iterate_over_regset_sections): Add regset parameter
1444 to each callback invocation. Allow any .reg-xstate size when
1445 reading from a core file.
1446 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
1447 (arm_linux_iterate_over_regset_sections): Add regset parameter to
1448 each callback invocation.
1449 (arm_linux_init_abi): No longer set the regset_from_core_section
1450 gdbarch method.
1451 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
1452 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
1453 each callback invocation.
1454 (ppc_linux_init_abi): No longer set the regset_from_core_section
1455 gdbarch method.
1456 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
1457 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
1458 (s390_regset_from_core_section): Remove.
1459 (s390_iterate_over_regset_sections): Add regset parameter to each
1460 callback invocation.
1461 (s390_gdbarch_init): No longer set the regset_from_core_section
1462 gdbarch method. Drop initialization of deleted tdep fields.
1463
1464 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1465
1466 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
1467 (amd64_linux_iterate_over_regset_sections): New.
1468 (amd64_linux_init_abi_common): Don't install the regset section
1469 list, but the new iterator in gdbarch.
1470 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
1471 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
1472 (arm_linux_iterate_over_regset_sections): ...here. New function.
1473 (arm_linux_init_abi): Set iterator instead of section list.
1474 * corelow.c (get_core_registers_cb): New function, logic moved
1475 from...
1476 (get_core_registers): ...loop body here. Use new iterator method
1477 instead of walking through the regset section list.
1478 * gdbarch.sh: Remove 'core_regset_sections'. New method
1479 'iterate_over_regset_sections'. New typedef
1480 'iterate_over_regset_sections_cb'.
1481 * gdbarch.c: Regenerate.
1482 * gdbarch.h: Likewise.
1483 * i386-linux-tdep.c (i386_linux_regset_sections)
1484 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
1485 Remove.
1486 (i386_linux_iterate_over_regset_sections): New.
1487 (i386_linux_init_abi): Don't choose a regset section list, but
1488 install new iterator in gdbarch.
1489 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
1490 (linux_collect_regset_section_cb): New function, logic moved
1491 from...
1492 (linux_collect_thread_registers): ...loop body here. Use iterator
1493 method instead of walking through list.
1494 (linux_make_corefile_notes_1): Check for presence of iterator
1495 method instead of regset section list.
1496 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
1497 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
1498 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
1499 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
1500 (ppc_linux_iterate_over_regset_sections): ...here. New function.
1501 (ppc_linux_init_abi): Don't choose from above regset section
1502 lists, but install new iterator in gdbarch.
1503 * regset.h (struct core_regset_section): Remove.
1504 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
1505 have_linux_v1, have_linux_v2, and have_tdb.
1506 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
1507 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
1508 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
1509 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
1510 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
1511 (s390_iterate_over_regset_sections): ...here. New function. Use
1512 new tdep fields.
1513 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
1514 regset section lists, but install new iterator.
1515
1516 2014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1517
1518 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
1519
1520 2014-09-26 Simon Marchi <simon.marchi@ericsson.com>
1521
1522 * progspace.c (print_program_space): Don't prune program spaces
1523 before printing them.
1524
1525 2014-09-25 Pedro Alves <palves@redhat.com>
1526
1527 * infrun.c (user_visible_resume_ptid): Don't check
1528 singlestep_breakpoints_inserted_p.
1529
1530 2014-09-25 Pedro Alves <palves@redhat.com>
1531
1532 * breakpoint.c (should_be_inserted): Add debug output.
1533
1534 2014-09-25 Pedro Alves <palves@redhat.com>
1535
1536 * infrun.c (stepping_past_instruction_at)
1537 (clear_exit_convenience_vars): Point at infrun.h instead of
1538 inferior.h.
1539 (handle_signal_stop): Fix typo.
1540
1541 2014-09-24 Yao Qi <yao@codesourcery.com>
1542
1543 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
1544 bitmask.
1545
1546 2014-09-22 Gary Benson <gbenson@redhat.com>
1547
1548 * target.c (target_stop): Updated comment.
1549
1550 2014-09-22 Gary Benson <gbenson@redhat.com>
1551
1552 * target/target.h (target_stop_ptid): Renamed as...
1553 (target_stop_and_wait): New function. Updated comment.
1554 All uses updated.
1555 (target_continue_ptid): Renamed as...
1556 (target_continue_no_signal): New function. Updated comment.
1557 All uses updated.
1558
1559 2014-09-22 Pedro Alves <palves@redhat.com>
1560
1561 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
1562 and "auto" merged.
1563 * breakpoint.c (enum ugll_insert_mode): New enum.
1564 (always_inserted_mode): Now a plain boolean.
1565 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
1566 (breakpoints_always_inserted_mode): Delete.
1567 (breakpoints_should_be_inserted_now): New function.
1568 (insert_breakpoints): Pass UGLL_INSERT to
1569 update_global_location_list instead of calling
1570 insert_breakpoint_locations manually.
1571 (create_solib_event_breakpoint_1): New, factored out from ...
1572 (create_solib_event_breakpoint): ... this.
1573 (create_and_insert_solib_event_breakpoint): Use
1574 create_solib_event_breakpoint_1 instead of calling
1575 insert_breakpoint_locations manually.
1576 (update_global_location_list): Change parameter type from boolean
1577 to enum ugll_insert_mode. All callers adjusted. Adjust to use
1578 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
1579 (update_global_location_list_nothrow): Change parameter type from
1580 boolean to enum ugll_insert_mode.
1581 (_initialize_breakpoint): "breakpoint always-inserted" option is
1582 now a boolean command. Update help text.
1583 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
1584 (breakpoints_should_be_inserted_now): New declaration.
1585 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
1586 Remove breakpoints_always_inserted_mode check.
1587 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
1588 * remote.c (remote_start_remote): Likewise.
1589
1590 2014-09-22 Pedro Alves <palves@redhat.com>
1591
1592 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
1593 (insert_breakpoints): Don't call insert_breakpoint_locations here.
1594 Instead, pass UGLL_INSERT to update_global_location_list.
1595 (update_global_location_list): Change parameter type from boolean
1596 to enum ugll_insert_mode. All callers adjusted. Adjust to use
1597 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
1598 (create_solib_event_breakpoint_1): New, factored out from ...
1599 (create_solib_event_breakpoint): ... this.
1600 (create_and_insert_solib_event_breakpoint): Use
1601 create_solib_event_breakpoint_1 instead of calling
1602 insert_breakpoint_locations manually.
1603 (update_global_location_list): Handle UGLL_INSERT.
1604
1605 2014-09-22 Pedro Alves <palves@redhat.com>
1606
1607 * breakpoint.c (enum ugll_insert_mode): New enum.
1608 (update_global_location_list)
1609 (update_global_location_list_nothrow): Change parameter type from
1610 boolean to enum ugll_insert_mode. All callers adjusted.
1611
1612 2014-09-19 Joel Brobecker <brobecker@adacore.com>
1613
1614 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
1615 SystemTap support in GDB.
1616
1617 2014-09-19 Don Breazeal <donb@codesourcery.com>
1618
1619 * linux-nat.c (linux_handle_extended_wait): Call
1620 linux_ptrace_get_extended_event.
1621 (wait_lwp): Call linux_is_extended_waitstatus.
1622 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
1623 and linux_is_extended_waitstatus.
1624 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
1625 linux_ptrace_get_extended_event.
1626 (linux_ptrace_get_extended_event): New function.
1627 (linux_is_extended_waitstatus): New function.
1628 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
1629 (linux_is_extended_waitstatus): New declarations.
1630
1631 2014-09-19 Yao Qi <yao@codesourcery.com>
1632
1633 * dwarf2read.c (dwarf_decode_lines): Update declaration.
1634 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
1635 comments. Callers update.
1636 (dwarf_decode_lines): Likewise.
1637 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
1638 comments. Skip the line table if 'lowpc' is greater than
1639 'address'. Don't check
1640 dwarf2_per_objfile->has_section_at_zero.
1641
1642 2014-09-18 Doug Evans <dje@google.com>
1643
1644 * NEWS: Mention new "producer" attribute of gdb.Symtab.
1645 * python/py-symtab.c (stpy_get_producer): New function.
1646 (symtab_object_getset): Add "producer" attribute.
1647
1648 2014-09-17 Ulrich Weigand  <uweigand@de.ibm.com>
1649
1650 PR gdb/17384
1651 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
1652 (do_captured_read_memory_integer): Remove.
1653 (safe_read_memory_integer): Use target_read_memory directly instead
1654 of catching errors in do_captured_read_memory_integer.
1655
1656 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
1657
1658 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
1659 not gdb/doc.
1660
1661 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1662
1663 * objc-lang.c (find_implementation_from_class): Remove dead code.
1664
1665 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1666
1667 PR cli/7233
1668 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
1669 "fprintf_unfiltered (gdb_stdlog...)".
1670
1671 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
1672
1673 PR breakpoints/12526
1674 * breakpoint.h (struct watchpoint): New fields val_bitpos and
1675 val_bitsize.
1676 * breakpoint.c (watch_command_1): Use these fields to retain
1677 bitfield information.
1678 (extract_bitfield_from_watchpoint_value): New function.
1679 (watchpoint_check): Use it.
1680 (update_watchpoint): Use it. Optimize the address and length of a
1681 HW watchpoint pointing to a bitfield.
1682 * value.h (unpack_value_bitfield): New prototype.
1683 * value.c (unpack_value_bitfield): Make extern.
1684
1685 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
1686
1687 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
1688 x86-dregs.o.
1689 * gnu-nat.c (inf_threads): New function.
1690 * gnu-nat.h (inf_threads_ftype): New typedef.
1691 (inf_threads): New declaration.
1692 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
1693 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
1694 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
1695 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
1696 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
1697 (i386_gnu_dr_get_control): New functions.
1698 (reg_addr): New structure.
1699 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
1700 i386 debugging register hooks.
1701 * NEWS: Mention this.
1702
1703 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1704
1705 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
1706 vector data transfer instructions.
1707 (arm_record_coproc_data_proc): Updated.
1708
1709 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1710
1711 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
1712 arm_record_exreg_ld_st_insn.
1713 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
1714 load/store insns.
1715
1716 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1717
1718 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
1719 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
1720 processing instructions.
1721
1722 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1723
1724 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
1725 for advance SIMD struct ld/st insn.
1726 (thumb2_record_decode_insn_handler): Replace stub handler with
1727 thumb2_record_asimd_struct_ld_st.
1728
1729 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1730
1731 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
1732 for asimd, vfp and coprocessor insns.
1733 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
1734 and coprocessor insns.
1735 (thumb2_record_coproc_insn): New function.
1736 (thumb2_record_decode_insn_handler): Update coprocessor insns record
1737 handlers.
1738 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
1739 opcode 110 insns.
1740
1741 2014-09-13 Doug Evans <xdje42@gmail.com>
1742
1743 * NEWS: Mention new "queue-signal" command.
1744 * infcmd.c (queue_signal_command): New function.
1745 (_initialize_infcmd): Add new queue-signal command.
1746
1747 2014-09-13 Doug Evans <xdje42@gmail.com>
1748
1749 * linux-nat.c (wait_lwp): Add debugging printf.
1750 (linux_nat_wait_1): Ditto.
1751
1752 2014-09-12 Pedro Alves <palves@redhat.com>
1753
1754 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
1755 (create_and_insert_solib_event_breakpoint): New functions.
1756 * breakpoint.h (create_and_insert_solib_event_breakpoint)
1757 (remove_solib_event_breakpoints_at_next_stop): New declarations.
1758 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
1759 (remove_dbx_link_breakpoint): Delete function.
1760 (insert_dbx_link_bpt_in_file): Use
1761 create_and_insert_solib_event_breakpoint instead of
1762 deprecated_insert_raw_breakpoint.
1763 (procfs_wait): Don't check whether we hit __dbx_link here.
1764 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
1765 here.
1766 * solib-irix.c (base_breakpoint): Delete global.
1767 (disable_break): Delete function.
1768 (enable_break): Use create_solib_event_breakpoint
1769 instead of deprecated_insert_raw_breakpoint.
1770 (irix_solib_handle_event): New function.
1771 (irix_solib_create_inferior_hook): Don't run the target or disable
1772 the mapping-complete breakpoint here.
1773 (_initialize_irix_solib): Install irix_solib_handle_event as
1774 so_ops->handle_event hook.
1775
1776 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1777 Ulrich Weigand  <uweigand@de.ibm.com>
1778
1779 PR tdep/17379
1780 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
1781 instead of read_memory_unsigned_integer.
1782
1783 2014-09-12 Gary Benson <gbenson@redhat.com>
1784
1785 * nat/linux-waitpid.c: Include common-defs.h.
1786 [GDBSERVER]: Add FIXME comment.
1787 [!GDBSERVER]: Don't include defs.h or signal.h.
1788 (linux_debug) [!GDBSERVER]: Remove empty block.
1789
1790 2014-09-12 Gary Benson <gbenson@redhat.com>
1791
1792 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
1793 Don't include defs.h or server.h.
1794
1795 2014-09-12 Gary Benson <gbenson@redhat.com>
1796
1797 * nat/linux-btrace.c: Include common-defs.h.
1798 Don't include defs.h, server.h or gdbthread.h.
1799 * nat/linux-btrace.h (struct target_ops): New forward declaration.
1800
1801 2014-09-12 Gary Benson <gbenson@redhat.com>
1802
1803 * common/agent.c: Include common-defs.h.
1804 Don't include defs.h or server.h.
1805 * common/buffer.c: Likewise.
1806 * common/common-debug.c: Likewise.
1807 * common/common-utils.c: Likewise.
1808 * common/errors.c: Likewise.
1809 * common/filestuff.c: Likewise.
1810 * common/format.c: Likewise.
1811 * common/gdb_vecs.c: Likewise.
1812 * common/print-utils.c: Likewise.
1813 * common/ptid.c: Likewise.
1814 * common/rsp-low.c: Likewise.
1815 * common/signals.c: Likewise.
1816 * common/vec.c: Likewise.
1817 * common/xml-utils.c: Likewise.
1818 * nat/linux-osdata.c: Likewise.
1819 * nat/linux-procfs.c: Likewise.
1820 * nat/linux-ptrace.c: Likewise.
1821 * nat/mips-linux-watch.c: Likewise.
1822 * target/waitstatus.c: Likewise.
1823
1824 2014-09-12 Tom Tromey <tromey@redhat.com>
1825 Gary Benson <gbenson@redhat.com>
1826
1827 * common/common-regcache.h: New file.
1828 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
1829 * regcache.h: Include common-regcache.h.
1830 (regcache_read_pc): Don't declare.
1831 * regcache.c (get_thread_regcache_for_ptid): New function.
1832 * nat/linux-btrace.c: Don't include regcache.h.
1833 Include common-regcache.h.
1834 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
1835
1836 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
1837
1838 * regcache.h (struct regset): Declare.
1839
1840 2014-09-11 Pedro Alves <palves@redhat.com>
1841
1842 PR gdb/17347
1843 * main.c: Include "infrun.h".
1844 (catch_command_errors, catch_command_errors_const): Wait for the
1845 foreground command to complete.
1846 * top.c (maybe_wait_sync_command_done): New function, factored out
1847 from ...
1848 (maybe_wait_sync_command_done): ... here.
1849 * top.h (maybe_wait_sync_command_done): New declaration.
1850
1851 2014-09-11 Tom Tromey <tromey@redhat.com>
1852 Gary Benson <gbenson@redhat.com>
1853
1854 * common/symbol.h: New file.
1855 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
1856 * minsyms.c (find_minimal_symbol_address): New function.
1857 * common/agent.c: Include common/symbol.h.
1858 [!GDBSERVER]: Don't include objfiles.h.
1859 (agent_look_up_symbols): Use find_minimal_symbol_address.
1860
1861 2014-09-11 Gary Benson <gbenson@redhat.com>
1862
1863 * target/target.h (target_stop_ptid, target_continue_ptid):
1864 Declare.
1865 * target.c (target_stop_ptid, target_continue_ptid): New
1866 functions.
1867 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
1868 (agent_run_command): Always use target_stop_ptid and
1869 target_continue_ptid.
1870
1871 2014-09-11 Tom Tromey <tromey@redhat.com>
1872 Gary Benson <gbenson@redhat.com>
1873
1874 * target/target.h: New file.
1875 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
1876 * target.h: Include target/target.h.
1877 (target_read_memory, target_write_memory): Don't declare.
1878 * target.c (target_read_uint32): New function.
1879 * common/agent.c: Include target/target.h.
1880 [!GDBSERVER]: Don't include target.h.
1881 (helper_thread_id): Type changed to uint32_t.
1882 (agent_get_helper_thread_id): Use target_read_uint32.
1883 (agent_run_command): Always use target_read_memory and
1884 target_write_memory.
1885 (agent_capability): Type changed to uint32_t.
1886 (agent_capability_check): Use target_read_uint32.
1887
1888 2014-09-11 Gary Benson <gbenson@redhat.com>
1889
1890 * common/common-debug.h (show_debug_regs): Declare.
1891 * common/common-debug.c (show_debug_regs): Define.
1892 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
1893 all uses with show_debug_regs. Replace all uses that considered
1894 debug_hw_points as a multi-value integer with straight boolean
1895 uses.
1896 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
1897 with show_debug_regs.
1898 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
1899 all uses with show_debug_regs.
1900 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
1901 uses with show_debug_regs.
1902
1903 2014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
1904
1905 * findvar.c (address_from_register): Handle targets requiring
1906 a special conversion routine even for plain pointer types.
1907
1908 2014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
1909
1910 * rs6000-nat.c (exec_one_dummy_insn): Remove.
1911 (store_register): Do not call exec_one_dummy_insn.
1912
1913 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1914
1915 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
1916 dereference it first. Use value_enclosing_type instead of
1917 value_type.
1918 (ada_array_length): Likewise.
1919
1920 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1921
1922 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
1923 Adjust function implementation and documentation accordingly.
1924 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
1925 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
1926 Update call to ada_value_ptr_subscript.
1927
1928 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1929
1930 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
1931 instead of VAL's type.
1932
1933 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1934
1935 * amd64-linux-nat.c: Add <sys/uio.h> #include.
1936
1937 2014-09-09 Doug Evans <xdje42@gmail.com>
1938
1939 PR guile/17367
1940 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
1941 last parameter to pkg-config, not first.
1942 * configure.ac: Pass --with-guile provided pkg-config path to
1943 GDB_GUILE_PROGRAM_NAMES.
1944 * configure: Regenerate.
1945
1946 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
1947
1948 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
1949 Bertazi".
1950
1951 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
1952
1953 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
1954 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
1955 the list of sections determining GDB_OSABI_IRIX.
1956
1957 2014-09-09 James Hogan <james.hogan@imgtec.com>
1958
1959 * MAINTAINERS (Write After Approval): Add "James Hogan".
1960
1961 2014-09-09 James Hogan <james.hogan@imgtec.com>
1962
1963 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
1964
1965 2014-09-09 Joel Brobecker <brobecker@adacore.com>
1966
1967 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
1968
1969 2014-09-08 Doug Evans <xdje42@gmail.com>
1970
1971 PR 17247
1972 * guile.c: #include <signal.h>.
1973 (_initialize_guile): Block SIGCHLD while initializing Guile.
1974
1975 Replaces the following, which is reverted.
1976
1977 2014-07-26 Doug Evans <xdje42@gmail.com>
1978
1979 PR 17185
1980 * configure.ac: Add check for header gc/gc.h.
1981 Add check for function setenv.
1982 * configure: Regenerate.
1983 * config.in: Regenerate.
1984 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1985
1986 2014-09-08 Doug Evans <xdje42@gmail.com>
1987
1988 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
1989 with named constant. Fix style of pointer comparison.
1990 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
1991
1992 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
1993
1994 PR gdb/17035
1995 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
1996 decide whether we display the command on "show user".
1997 * cli/cli-script.c (show_user_1): Only verify cmdlines after
1998 printing command name.
1999 * cli/cli-decode.h (cli_user_command_p): Declare new function.
2000 * cli/cli-decode.c (cli_user_command_p): Create helper function
2001 to verify whether cmd_list_element is a user-defined command.
2002
2003 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2004
2005 PR python/17355
2006 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
2007 Fix goto out of TRY_CATCH.
2008
2009 2014-09-06 Doug Evans <xdje42@gmail.com>
2010 Tom Tromey <tromey@redhat.com>
2011
2012 PR 15276
2013 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
2014 $_any_caller_matches.
2015 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
2016 * python/lib/gdb/function/caller_is.py: New file.
2017
2018 2014-09-06 Doug Evans <xdje42@gmail.com>
2019
2020 * infcmd.c (program_info): Fix typo.
2021
2022 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
2023
2024 PR gdb/17235
2025 * stap-probe.c (stap_parse_single_operand): Delete unused variable
2026 'number'. New variable 'has_digit'. Rewrite code to deal with
2027 subexpressions on SDT probes.
2028
2029 2014-09-04 Pedro Alves <palves@redhat.com>
2030
2031 * c-exp.y (parse_number): Skip handling base-switching prefixes if
2032 the input is only one character long.
2033
2034 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
2035
2036 PR fortran/17237
2037 * f-valprint.c (f_val_print): Specify the correct print option to
2038 use when printing integer values.
2039
2040 2014-09-04 Gary Benson <gbenson@redhat.com>
2041
2042 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
2043 Remove code to cope with LWPs wrapped as PIDs.
2044 Add assertions to ensure no wrapped LWPs are passed.
2045
2046 2014-09-04 Pedro Alves <palves@redhat.com>
2047
2048 * value.c (value_ranges_copy_adjusted): New function, factored out
2049 from ...
2050 (value_contents_copy_raw): ... here.
2051 (unpack_value_bits_as_long_1): Rename back to ...
2052 (unpack_bits_as_long): ... this. Remove 'original_value' and
2053 'result' parameters. Change return type to LONGEST.
2054 (unpack_value_bits_as_long): Delete.
2055 (unpack_value_field_as_long_1): Delete.
2056 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
2057 (unpack_value_bitfield): New function.
2058 (value_field_bitfield): Reimplement using unpack_value_bitfield.
2059 (value_fetch_lazy): Use unpack_value_bitfield.
2060 * value.h (unpack_value_bits_as_long): Delete declaration.
2061
2062 2014-09-03 Sasha Smundak <asmundak@google.com>
2063
2064 * python/py-frame.c (frapy_read_register): New function.
2065
2066 2014-09-03 James Hogan <james.hogan@imgtec.com>
2067
2068 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
2069 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
2070
2071 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
2072
2073 PR python/16699
2074 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
2075 function.
2076 (add_cmd): Set "completer_handle_brkchars" to NULL.
2077 * cli/cli-decode.h (struct cmd_list_element)
2078 <completer_handle_brkchars>: New field.
2079 * command.h (completer_ftype_void): New typedef.
2080 (set_cmd_completer_handle_brkchars): New prototype.
2081 * completer.c (set_gdb_completion_word_break_characters): New
2082 function.
2083 (complete_line_internal): Call "completer_handle_brkchars"
2084 callback from command.
2085 * completer.h: Include "command.h".
2086 (set_gdb_completion_word_break_characters): New prototype.
2087 * python/py-cmd.c (cmdpy_completer_helper): New function.
2088 (cmdpy_completer_handle_brkchars): New function.
2089 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
2090 (cmdpy_init): Set completer_handle_brkchars to
2091 cmdpy_completer_handle_brkchars.
2092
2093 2014-09-03 Gary Benson <gbenson@redhat.com>
2094
2095 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
2096 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
2097 Loop conditions changed to equivalent form.
2098 (struct x86_debug_reg_state): Updated dr_ref_count comment.
2099 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
2100 ALL_DEBUG_ADDRESS_REGISTERS.
2101
2102 2014-09-03 Joel Brobecker <brobecker@adacore.com>
2103
2104 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
2105 description fix.
2106
2107 2014-09-02 Doug Evans <dje@google.com>
2108
2109 * typeprint.c (find_global_typedef): Fix comment.
2110
2111 2014-09-02 Gary Benson <gbenson@redhat.com>
2112
2113 * i386-nat.h: Renamed as...
2114 * x86-nat.h: New file. All type, function and variable name
2115 prefixes changed from "i386_" to "x86_". All references updated.
2116 * i386-nat.c: Renamed as...
2117 * x86-nat.c: New file. All type, function and variable name
2118 prefixes changed from "i386_" to "x86_". All references updated.
2119 * common/i386-xstate.h: Renamed as...
2120 * common/x86-xstate.h: New file. All type, function and variable
2121 name prefixes changed from "i386_" to "x86_". All references
2122 updated.
2123 * nat/i386-cpuid.h: Renamed as...
2124 * nat/x86-cpuid.h: New file. All type, function and variable name
2125 prefixes changed from "i386_" to "x86_". All references updated.
2126 * nat/i386-gcc-cpuid.h: Renamed as...
2127 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
2128 name prefixes changed from "i386_" to "x86_". All references
2129 updated.
2130 * nat/i386-dregs.h: Renamed as...
2131 * nat/x86-dregs.h: New file. All type, function and variable name
2132 prefixes changed from "i386_" to "x86_". All references updated.
2133 * nat/i386-dregs.c: Renamed as...
2134 * nat/x86-dregs.c: New file. All type, function and variable name
2135 prefixes changed from "i386_" to "x86_". All references updated.
2136
2137 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
2138
2139 * varobj.c (_initialize_varobj): Move to the end of file.
2140
2141 2014-08-29 Gary Benson <gbenson@redhat.com>
2142
2143 * common/common-exceptions.h: New file.
2144 * common/common-exceptions.c: Likewise.
2145 * Makefile.in (SFILES): Add common/common-exceptions.c.
2146 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
2147 (COMMON_OBS): Add common-exceptions.o.
2148 (common-exceptions.o): New rule.
2149 * exceptions.h (common-exceptions.h): Include.
2150 (gdb_setjmp.h): Do not include.
2151 (return_reason): Moved to common-exceptions.h.
2152 (enum return_reason): Likewise.
2153 (RETURN_MASK): Likewise.
2154 (typedef return_mask): Likewise.
2155 (enum errors): Likewise.
2156 (struct gdb_exception): Likewise.
2157 (exceptions_state_mc_init): Likewise.
2158 (exceptions_state_mc_action_iter): Likewise.
2159 (exceptions_state_mc_action_iter_1): Likewise.
2160 (TRY_CATCH): Likewise.
2161 (throw_exception): Likewise.
2162 (throw_verror): Likewise.
2163 (throw_vquit): Likewise.
2164 (throw_error): Likewise.
2165 (throw_quit): Likewise.
2166 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
2167 (enum catcher_action): Likewise.
2168 (struct catcher): Likewise.
2169 (current_catcher): Likewise.
2170 (catcher_list_size): Likewise.
2171 (exceptions_state_mc_init): Likewise.
2172 (catcher_pop): Likewise.
2173 (exceptions_state_mc): Likewise.
2174 (exceptions_state_mc_action_iter): Likewise.
2175 (exceptions_state_mc_action_iter_1): Likewise.
2176 (throw_exception): Likewise.
2177 (exception_messages): Likewise.
2178 (exception_messages_size): Likewise.
2179 (throw_it): Likewise.
2180 (throw_verror): Likewise.
2181 (throw_vquit): Likewise.
2182 (throw_error): Likewise.
2183 (throw_quit): Likewise.
2184 (prepare_to_throw_exception): New function.
2185
2186 2014-08-29 Gary Benson <gbenson@redhat.com>
2187
2188 * common/gdb_setjmp.h: New file.
2189 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
2190 * configure.ac: Move sigsetjmp check...
2191 * common/common.m4: ...here.
2192 * configure: Regenerate.
2193 * cp-support.c (SIGJMP_BUF): Delete.
2194 (SIGSETJMP): Likewise.
2195 (SIGLONGJMP): Likewise.
2196 * exceptions.h (gdb_setjmp.h): Include.
2197 (setjmp.h): Do not include.
2198 (EXCEPTIONS_SIGJMP_BUF): Delete.
2199 (EXCEPTIONS_SIGSETJMP): Likewise.
2200 (EXCEPTIONS_SIGLONGJMP): Likewise.
2201 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
2202 from gdb_setjmp.h.
2203 * exceptions.c: Likewise.
2204
2205 2014-08-29 Gary Benson <gbenson@redhat.com>
2206
2207 * cleanups.h: Moved to...
2208 * common/cleanups.h: New file.
2209 * cleanups.c: Moved to...
2210 * common/cleanups.c: New file. Include common-defs.h and
2211 cleanups.h. Do not include defs.h.
2212 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
2213 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
2214 (cleanups.o): New rule.
2215
2216 2014-08-29 Gary Benson <gbenson@redhat.com>
2217
2218 * common/errors.h (internal_warning): New declaration.
2219 (internal_vwarning): Likewise.
2220 * common/errors.c (internal_warning): New function.
2221 * utils.h (internal_warning): Don't declare.
2222 (internal_vwarning): Likewise.
2223 * utils.c (internal_warning): Removed.
2224
2225 2014-08-29 Gary Benson <gbenson@redhat.com>
2226
2227 * main.c (captured_main): Use warning during startup.
2228 Prefix startup warning messages with command name.
2229
2230 2014-08-29 Gary Benson <gbenson@redhat.com>
2231
2232 * main.c (captured_main): Handle usage errors with error.
2233
2234 2014-08-29 Gary Benson <gbenson@redhat.com>
2235
2236 * go32-nat.c (go32_create_inferior): Replace a fprintf/
2237 exit pair with a call to error. Wrap the message with _().
2238
2239 2014-08-29 Gary Benson <gbenson@redhat.com>
2240
2241 * main.c (captured_main): Replace a fprintf/exit
2242 pair with a call to error. Wrap the message with _().
2243
2244 2014-08-29 Gary Benson <gbenson@redhat.com>
2245
2246 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
2247 pairs with calls to error. Wrap the message with _().
2248
2249 2014-08-29 Gary Benson <gbenson@redhat.com>
2250
2251 * utils.c (vwarning): Protect calls to target_terminal_ours
2252 and wrap_here.
2253
2254 2014-08-29 Gary Benson <gbenson@redhat.com>
2255
2256 * exceptions.c (print_flush): Protect calls to
2257 target_terminal_ours and wrap_here.
2258
2259 2014-08-29 Gary Benson <gbenson@redhat.com>
2260
2261 * utils.h (filtered_printing_initialized): New declaration.
2262 * utils.c (abort_with_message): New function.
2263 (internal_vproblem): Use abort_with_message for first level
2264 recursive internal problems, and if gdb_stderr is not set up.
2265 Protect calls to target_terminal_ours, begin_line and query.
2266
2267 2014-08-28 Doug Evans <dje@google.com>
2268
2269 * symtab.c (in_prologue): Move definition to better spot.
2270 (skip_prologue_using_sal): Ditto.
2271
2272 2014-08-28 Doug Evans <dje@google.com>
2273
2274 * symtab.c (find_function_start_sal): Move definition to better spot.
2275
2276 2014-08-28 Yao Qi <yao@codesourcery.com>
2277
2278 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
2279 found_stack_adjust in forward scan. Remove condition check
2280 on found_stack_adjust which is always true. Indent the code.
2281
2282 2014-08-28 Yao Qi <yao@codesourcery.com>
2283
2284 * dwarf2read.c (dwarf_decode_lines): Update declaration.
2285 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
2286 (dwarf_decode_lines): Remove argument
2287 want_line_info. Remove condition check on want_line_info.
2288 Callers update.
2289
2290 2014-08-27 Doug Evans <dje@google.com>
2291
2292 * dwarf2read.c (dwarf_record_line): Fix typo.
2293
2294 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
2295
2296 * target.h (struct target_ops::to_terminal_save_ours): Remove
2297 declaration.
2298 (target_terminal_save_ours): Remove macro.
2299 * target-delegates.c: Regenerate.
2300 * inf-child.c (inf_child_target): Don't set the nonexistent
2301 field to_terminal_save_ours.
2302 * inferior.h (child_terminal_save_ours): Remove declaration.
2303 * terminal.h (gdb_save_tty_state): New declaration.
2304 * inflow.c (child_terminal_save_ours): Rename to ...
2305 (gdb_save_tty_state): ... this.
2306 * tui/tui.c: Include terminal.h.
2307 (tui_enable): Use gdb_save_tty_state instead of
2308 target_terminal_save_ours.
2309 (tui_disable): Likewise.
2310
2311 2014-08-25 Doug Evans <dje@google.com>
2312
2313 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
2314 Pass NULL instead of 0 for context pointer.
2315
2316 2014-08-25 Yao Qi <yao@codesourcery.com>
2317
2318 * dwarf2read.c: Fix grammatical error.
2319
2320 2014-08-24 Yao Qi <yao@codesourcery.com>
2321
2322 * dwarf2read.c (scan_partial_symbols): Update comments.
2323 Rename argument 'need_pc' with 'set_addrmap'.
2324 (add_partial_namespace): Rename argument 'need_pc' with
2325 'set_addrmap'.
2326 (add_partial_module): Likewise.
2327 (add_partial_subprogram): Likewise. Update comments.
2328 (dwarf2_name): Fix typo.
2329
2330 2014-08-22 Doug Evans <dje@google.com>
2331
2332 PR 17276
2333 * dwarf2read.c (dwarf_record_line_p): New function.
2334 (dwarf_decode_lines_1): Ignore subsequent line number entries
2335 for the same line if any entry had a non-zero discriminator.
2336
2337 2014-08-22 Doug Evans <dje@google.com>
2338
2339 * buildsym.h (record_line_ftype): New typedef.
2340 (record_line): Use it.
2341 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
2342 (dwarf_decode_lines_1): Call them.
2343
2344 2014-08-22 Yao Qi <yao@codesourcery.com>
2345
2346 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
2347 (ctf_end): Remove code.
2348
2349 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2350
2351 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
2352 (linux_make_corefile_notes): call update_thread_list, protected against
2353 exceptions.
2354
2355 2014-08-21 Pedro Alves <palves@redhat.com>
2356
2357 * infcmd.c (attach_command): Remove comment.
2358
2359 2014-08-21 Bin Cheng <bin.cheng@arm.com>
2360
2361 * aarch64-linux-nat.c (dr_changed_t): Change the type from
2362 unsigned LONGEST to ULONGEST.
2363
2364 2014-08-20 Pedro Alves <palves@redhat.com>
2365
2366 * Makefile.in (check-read1): New rule.
2367
2368 2014-08-20 Joel Brobecker <brobecker@adacore.com>
2369
2370 * value.c (value_from_contents_and_address): Strip resolved_type's
2371 typedef layers before checking its TYPE_DATA_LOCATION.
2372
2373 2014-08-20 Pedro Alves <palves@redhat.com>
2374
2375 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
2376
2377 2014-08-20 Yao Qi <yao@codesourcery.com>
2378
2379 * amd64-tdep.c (amd64_classify): Add a blank line after the
2380 example. Move "*/" to a new line.
2381 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
2382 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
2383 * dwarf2read.c (psymtab_include_file_name): Likewise.
2384
2385 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
2386 Pedro Alves <palves@redhat.com>
2387
2388 PR symtab/14604
2389 PR symtab/14605
2390 * ada-lang.c (coerce_unspec_val_to_type): Use
2391 value_contents_copy_raw.
2392 * ada-valprint.c (val_print_packed_array_elements): Adjust.
2393 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
2394 * cp-valprint.c (cp_print_value_fields): Let the common printing
2395 code handle optimized out values.
2396 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
2397 * d-valprint.c (dynamic_array_type): Use
2398 value_bits_any_optimized_out.
2399 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
2400 check_any_valid fields.
2401 (check_pieced_value_bits): Delete and inline ...
2402 (check_pieced_synthetic_pointer): ... here.
2403 (check_pieced_value_validity): Delete.
2404 (check_pieced_value_invalid): Delete.
2405 (pieced_value_funcs): Remove check_validity and check_any_valid
2406 fields.
2407 (read_pieced_value): Use mark_value_bits_optimized_out.
2408 (write_pieced_value): Switch to use
2409 mark_value_bytes_optimized_out.
2410 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
2411 of assuming the whole value is optimized out.
2412 * findvar.c (read_frame_register_value): Remove special handling
2413 of optimized out registers.
2414 (value_from_register): Use mark_value_bytes_optimized_out.
2415 * frame-unwind.c (frame_unwind_got_optimized): Use
2416 mark_value_bytes_optimized_out.
2417 * jv-valprint.c (java_value_print): Adjust.
2418 (java_print_value_fields): Let the common printing code handle
2419 optimized out values.
2420 * mips-tdep.c (mips_print_register): Remove special handling of
2421 optimized out registers.
2422 * opencl-lang.c (lval_func_check_validity): Delete.
2423 (lval_func_check_any_valid): Delete.
2424 (opencl_value_funcs): Remove check_validity and check_any_valid
2425 fields.
2426 * p-valprint.c (pascal_object_print_value_fields): Let the common
2427 printing code handle optimized out values.
2428 * stack.c (read_frame_arg): Remove special handling of optimized
2429 out values. Fetch both VAL and ENTRYVAL before comparing
2430 contents. Adjust to value_available_contents_eq rename.
2431 * valprint.c (valprint_check_validity)
2432 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
2433 (val_print_array_elements): Adjust.
2434 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
2435 (value_bits_any_optimized_out): New function.
2436 (value_entirely_covered_by_range_vector): New function, factored
2437 out from value_entirely_unavailable.
2438 (value_entirely_unavailable): Reimplement.
2439 (value_entirely_optimized_out): New function.
2440 (insert_into_bit_range_vector): New function, factored out from
2441 mark_value_bits_unavailable.
2442 (mark_value_bits_unavailable): Reimplement.
2443 (struct ranges_and_idx): New struct.
2444 (find_first_range_overlap_and_match): New function, factored out
2445 from value_available_contents_bits_eq.
2446 (value_available_contents_bits_eq): Rename to ...
2447 (value_contents_bits_eq): ... this. Check both unavailable
2448 contents and optimized out contents.
2449 (value_available_contents_eq): Rename to ...
2450 (value_contents_eq): ... this.
2451 (allocate_value_lazy): Remove reference to the old optimized_out
2452 boolean.
2453 (allocate_optimized_out_value): Use
2454 mark_value_bytes_optimized_out.
2455 (require_not_optimized_out): Adjust to check whether the
2456 optimized_out vec is empty.
2457 (ranges_copy_adjusted): New function, factored out from
2458 value_contents_copy_raw.
2459 (value_contents_copy_raw): Also copy the optimized out ranges.
2460 Assert the destination ranges aren't optimized out.
2461 (value_contents_copy): Update comment, remove call to
2462 require_not_optimized_out.
2463 (value_contents_equal): Adjust to check whether the optimized_out
2464 vec is empty.
2465 (set_value_optimized_out, value_optimized_out_const): Delete.
2466 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
2467 New functions.
2468 (value_entirely_optimized_out, value_bits_valid): Delete.
2469 (value_copy): Take a VEC copy of the 'optimized_out' field.
2470 (value_primitive_field): Remove special handling of optimized out.
2471 (value_fetch_lazy): Assert that lazy values have no unavailable
2472 regions. Use value_bits_any_optimized_out. Remove some special
2473 handling for optimized out values.
2474 * value.h: Add intro comment about <optimized out> and
2475 <unavailable>.
2476 (struct lval_funcs): Remove check_validity and check_any_valid
2477 fields.
2478 (set_value_optimized_out, value_optimized_out_const): Remove.
2479 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
2480 New declarations.
2481 (value_bits_any_optimized_out): New declaration.
2482 (value_bits_valid): Delete declaration.
2483 (value_available_contents_eq): Rename to ...
2484 (value_contents_eq): ... this, and extend comments.
2485
2486 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2487
2488 Fix -fsanitize=address on unreadable inferior strings.
2489 * valprint.c (val_print_string): Fix access before BUFFER.
2490
2491 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
2492
2493 * target.c (target_struct_size): Remove.
2494 (target_struct_allocsize): Remove.
2495 (DEFAULT_ALLOCSIZE): Remove.
2496 (target_ops_p): New typedef.
2497 (DEF_VEC_P (target_ops_p)): New vector type.
2498 (target_structs): Change type to VEC (target_ops_p).
2499 (add_target_with_completer): Replace "push" code by VEC_safe_push.
2500 (find_default_run_target): Rewrite for loop following changes to
2501 target_structs.
2502
2503 2014-08-19 Joel Brobecker <brobecker@adacore.com>
2504
2505 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
2506 Adjust code accordingly. Adjust function description comment.
2507
2508 2014-08-19 Yao Qi <yao@codesourcery.com>
2509
2510 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
2511 types.
2512
2513 2014-08-19 Alan Modra <amodra@gmail.com>
2514
2515 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
2516 * config.in: Regenerate.
2517 * configure: Regenerate.
2518
2519 2014-08-19 Tom Tromey <tromey@redhat.com>
2520 Gary Benson <gbenson@redhat.com>
2521
2522 * common/common-debug.h: New file.
2523 * common/common-debug.c: Likewise.
2524 * debug.c: Likewise.
2525 * Makefile.in (SFILES): Add common/common-debug.c.
2526 (HFILES_NO_SRCDIR): Add common/common-debug.h.
2527 (COMMON_OBS): Add common-debug.o and debug.o.
2528 (common-debug.o): New rule.
2529 * common/common-defs.h: Include common-debug.h.
2530 * common/agent.c (debug_agent_printf): New function.
2531 (DEBUG_AGENT): Redefine.
2532 * nat/i386-dregs.c (debug_printf): Undefine.
2533
2534 2014-08-19 Gary Benson <gbenson@redhat.com>
2535
2536 * common/common-defs.h: Include print-utils.h.
2537 * utils.h: Do not include print-utils.h.
2538
2539 2014-08-19 Tom Tromey <tromey@redhat.com>
2540 Gary Benson <gbenson@redhat.com>
2541
2542 * common/common-types.h: New file.
2543 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
2544 * common/common-defs.h: Include common-types.h.
2545 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
2546 (ULONGEST): Remove.
2547
2548 2014-08-19 Tom Tromey <tromey@redhat.com>
2549 Gary Benson <gbenson@redhat.com>
2550
2551 * common/errors.h: New file.
2552 * common/errors.c: Likewise.
2553 * Makefile.in (SFILES): Add common/errors.c.
2554 (HFILES_NO_SRCDIR): Add common/errors.h.
2555 (COMMON_OBS): Add errors.o.
2556 (errors.o): New rule.
2557 * common/common-defs.h: Include errors.h.
2558 * utils.h (perror_with_name, error, verror, warning, vwarning):
2559 Don't declare.
2560 * common/common-utils.h: (malloc_failure, internal_error):
2561 Likewise.
2562
2563 2014-08-19 Gary Benson <gbenson@redhat.com>
2564
2565 * utils.c (internal_vproblem): Always print the message.
2566
2567 2014-08-18 Doug Evans <dje@google.com>
2568
2569 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
2570
2571 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2572
2573 * ada-typeprint.c (type_is_full_subrange_of_target_type):
2574 Return 0 if TYPE is dynamic.
2575 (print_range): Add handling of dynamic ranges.
2576
2577 2014-08-18 Keven Boell <keven.boell@intel.com>
2578 Joel Brobecker <brobecker@adacore.com>
2579
2580 * gdbtypes.h (struct main_type): Add field "data_location".
2581 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
2582 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
2583 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
2584 a dynamic data location.
2585 (resolve_dynamic_type): Add DW_AT_data_location handling.
2586 (copy_recursive, copy_type): Copy the data_location information
2587 when present.
2588 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
2589 * value.c (value_from_contents_and_address): Add
2590 DW_AT_data_location handling.
2591
2592 2014-08-18 Keven Boell <keven.boell@intel.com>
2593 Joel Brobecker <brobecker@adacore.com>
2594
2595 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
2596 field "get_object_address".
2597 * dwarf2expr.c (execute_stack_op): Add handling for
2598 DW_OP_push_object_address.
2599 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
2600 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
2601 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
2602 (dwarf_expr_get_obj_addr): New function.
2603 (dwarf_expr_ctx_funcs): Add get_object_address field.
2604 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
2605 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
2606 (dwarf2_evaluate_property): Add parameter "address". Use it.
2607 (needs_get_obj_addr): New function.
2608 (needs_frame_ctx_funcs): Add get_object_address field.
2609 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
2610 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
2611 (resolve_dynamic_array): Likewise.
2612
2613 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2614
2615 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
2616 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
2617 fixed value for records and unions for which some GNAT encodings
2618 are present.
2619
2620 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2621
2622 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
2623 rewrite to avoid "else if" and "else" constructs. Should be
2624 a no-op in practice.
2625
2626 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2627
2628 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
2629 of lexical block.
2630
2631 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
2632
2633 PR c++/17132
2634 * eval.c: Update all calls to find_overload_match.
2635 * valarith.c: Likewise.
2636 (value_user_defined_cpp_op, value_user_defined_op): New
2637 argument NOSIDE. Update all callers.
2638 * valops.c (find_overload_match): New argument NOSIDE.
2639 * value.h (find_overload_match): Update signature.
2640
2641 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
2642
2643 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
2644 'items' methods instead of 'iteritems' method on dictionaries.
2645
2646 2014-08-15 Doug Evans <dje@google.com>
2647
2648 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
2649 closer to use.
2650
2651 2014-08-15 Doug Evans <dje@google.com>
2652
2653 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
2654
2655 2014-08-15 Doug Evans <dje@google.com>
2656
2657 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
2658
2659 2014-08-15 Doug Evans <dje@google.com>
2660
2661 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
2662 unused.
2663
2664 2014-08-15 Eli Zaretskii <eliz@gnu.org>
2665
2666 * dcache.h: Include target.h, to avoid compile time warnings.
2667
2668 2014-08-15 Joel Brobecker <brobecker@adacore.com>
2669
2670 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
2671 frame_info" partial declaration.
2672 * gdbarch.h: Regenerate.
2673
2674 2014-08-15 Yao Qi <yao@codesourcery.com>
2675
2676 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
2677 Add parameter 'decode_for_pst_p'. Callers update.
2678
2679 2014-08-13 Yao Qi <yao@codesourcery.com>
2680
2681 PR build/17104
2682 * configure.ac: Use local variable 'pos'.
2683 * configure: Regenerated.
2684
2685 2014-08-11 Doug Evans <dje@google.com>
2686
2687 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
2688 message, it is redundant with "Reading symbols from ..." message.
2689
2690 2014-08-10 Doug Evans <xdje42@gmail.com>
2691
2692 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
2693
2694 2014-08-09 Yao Qi <yao@codesourcery.com>
2695
2696 PR remote/9053
2697 * remote.c (remote_xfer_partial): Remove dead code.
2698
2699 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2700
2701 * ia64-linux-tdep.c: Include "regset.h".
2702 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
2703 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
2704 (ia64_linux_supply_fpregset): New function.
2705 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
2706 (ia64_linux_regset_from_core_section): New function.
2707 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
2708 method.
2709
2710 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2711
2712 * m68klinux-tdep.c: Include "regset.h".
2713 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
2714 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
2715 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
2716 (m68k_linux_regset_from_core_section): New function.
2717 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
2718 method.
2719
2720 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2721
2722 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
2723 function. Move logic to...
2724 (tilegx_linux_regmap): ... this new register map.
2725 (tilegx_linux_regset): Refer to register map, replace supply
2726 method by regcache_supply_regset, and add collect method.
2727 * tilegx-tdep.h (enum tilegx_regnum): New enum value
2728 TILEGX_FIRST_EASY_REGNUM.
2729
2730 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2731
2732 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
2733 that calls regcache_supply_regset and handles the EPC register
2734 separately. Move main logic to...
2735 (score7_linux_gregmap): ... this new register map.
2736 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
2737 (score7_linux_gregset): Refer to register map. Add collect method.
2738 (score7_linux_regset_from_core_section): Replace
2739 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
2740 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
2741 (struct regset): Delete unused forward declaraction.
2742 (struct pt_regs): Delete structure definition.
2743 (elf_gregset_t): Delete typedef.
2744
2745 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2746
2747 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
2748 (nios2_core_regset): Add collect method.
2749
2750 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2751
2752 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
2753 platform-independent and don't write to read-only input buffer.
2754 (m32r_linux_collect_gregset): New function.
2755 (m32r_linux_gregset): Add collect method.
2756
2757 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2758
2759 * hppa-linux-tdep.c (greg_map): Rename to...
2760 (hppa_linux_gregmap): ... this. Also convert to
2761 regcache_map_entry format.
2762 (hppa_linux_supply_regset): Delete function.
2763 (hppa_linux_supply_fpregset): Delete function. Move logic to...
2764 (hppa_linux_fpregmap): ... this new register map.
2765 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
2766 register map, replace supply method by regcache_supply_regset, and
2767 add collect method regcache_collect_regset.
2768
2769 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2770
2771 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
2772 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
2773 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
2774 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
2775 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
2776 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
2777 (frv_linux_supply_gregset): Replace main logic by call to
2778 regcache_supply_regset, but keep clearing gr32-gr63.
2779 (frv_linux_supply_fpregset): Delete function.
2780 (frv_linux_gregset): Refer to appropriate register map and add
2781 regcache_collect_regset as the collect method.
2782 (frv_linux_fpregset): Likewise. Also exchange the supply method
2783 by regcache_supply_regset.
2784
2785 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2786
2787 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
2788 by call to alpha_supply_int_regs.
2789 (alpha_linux_collect_gregset): New function.
2790 (alpha_linux_supply_fpregset): Replace logic by call to
2791 alpha_supply_fp_regs.
2792 (alpha_linux_collect_fpregset): New function.
2793 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
2794
2795 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2796
2797 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
2798 by call to regcache_collect_regset.
2799 (supply_gregset, supply_fpregset): Call regcache_supply_regset
2800 instead of aarch64_linux_supply_gregset/_fpregset.
2801 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
2802 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
2803 header file instead.
2804 (aarch64_linux_supply_gregset, supply_gregset_from_core)
2805 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
2806 functions. Move logic to ...
2807 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
2808 register maps.
2809 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
2810 refer to new register maps, replace *_regset_from_core by
2811 regcache_supply_regset, and also use regcache_collect_regset.
2812 * aarch64-linux-tdep.h: Include "regset.h".
2813 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
2814 Delete prototypes.
2815 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
2816 macros, moved from C source file.
2817 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
2818 variable declarations.
2819
2820 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2821
2822 * s390-linux-nat.c: Include "regset.h".
2823 (regmap_gregset): Delete macro.
2824 (s390_64_regmap_gregset): New register map for
2825 regcache_supply/_collect_regset.
2826 (s390_64_gregset): New regset.
2827 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
2828 (regmap_fpregset): Delete macro.
2829 (s390_native_supply, s390_native_collect): Delete functions.
2830 (supply_gregset, fill_gregset): Replace s390-specific regmap
2831 handling by a call to regcache_supply/_collect_regset.
2832 (supply_fpregset, fill_fpregset): Call regcache_supply/
2833 _collect_regset instead of s390_native_supply/_collect.
2834 (fetch_regset, store_regset): Likewise. Also change the last
2835 parameter to a regset instead of a regmap.
2836 (s390_linux_fetch_inferior_registers)
2837 (390_linux_store_inferior_registers): Adjust last parameter in
2838 calls to fetch_regset and store_regset.
2839 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
2840 (s390_gregmap): ... this. Also make static const and convert to
2841 regcache_map_entry format.
2842 (s390x_regmap_gregset): Delete.
2843 (s390_regmap_fpregset): Rename to...
2844 (s390_fpregmap): ... this. Make static const and convert to
2845 regcache_map_entry format.
2846 (s390_regmap_upper, s390_regmap_last_break)
2847 (s390x_regmap_last_break, s390_regmap_system_call)
2848 (s390_regmap_tdb): Likewise.
2849 (s390_supply_regset, s390_collect_regset): Remove functions.
2850 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
2851 s390_supply_regset.
2852 (s390_gregset, s390_fpregset, s390_upper_regset)
2853 (s390_last_break_regset, s390x_last_break_regset)
2854 (s390_system_call_regset, s390_tdb_regset): Make global and
2855 replace s390_supply/_collect_regset by regcache_supply/
2856 _collect_regset.
2857 (s390x_gregset): Delete.
2858 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
2859 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
2860 (s390_regmap_fpregset, s390_regmap_last_break)
2861 (s390x_regmap_last_break, s390_regmap_system_call)
2862 (s390_regmap_tdb): Delete global variable declarations.
2863 (s390_gregset, s390_fpregset, s390_last_break_regset)
2864 (s390x_last_break_regset, s390_system_call_regset)
2865 (s390_tdb_regset): New global variable declarations.
2866
2867 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2868
2869 * regcache.c: Include "regset.h".
2870 (regcache_transfer_regset): New local function.
2871 (regcache_supply_regset, regcache_collect_regset): New functions.
2872 * regcache.h (struct regcache_map_entry): New structure.
2873 (REGCACHE_MAP_SKIP): New enum value.
2874 (regcache_supply_regset, regcache_collect_regset): New prototypes.
2875
2876 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2877
2878 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
2879 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
2880 (ppc_linux_collect_gregset ): Likewise.
2881 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
2882 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
2883 (ppc_collect_vrregset): Likewise.
2884 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
2885 Likewise.
2886
2887 2014-08-07 Yao Qi <yao@codesourcery.com>
2888
2889 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
2890 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
2891 * remote.c (remote_read_bytes): Likewise.
2892
2893 2014-08-07 Yao Qi <yao@codesourcery.com>
2894
2895 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
2896
2897 2014-08-07 Yao Qi <yao@codesourcery.com>
2898
2899 PR remote/17230
2900 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
2901 TARGET_XFER_OK instead of 0.
2902
2903 2014-08-07 Gary Benson <gbenson@redhat.com>
2904
2905 * common/common-defs.h: Include errno.h.
2906 * defs.h: Do not include errno.h.
2907 * ada-typeprint.c: Likewise.
2908 * c-typeprint.c: Likewise.
2909 * core-regset.c: Likewise.
2910 * corefile.c: Likewise.
2911 * corelow.c: Likewise.
2912 * event-loop.c: Likewise.
2913 * f-typeprint.c: Likewise.
2914 * gnu-nat.c: Likewise.
2915 * go32-nat.c: Likewise.
2916 * i386gnu-nat.c: Likewise.
2917 * m2-typeprint.c: Likewise.
2918 * nat/linux-btrace.c: Likewise.
2919 * p-typeprint.c: Likewise.
2920 * procfs.c: Likewise.
2921 * remote-sim.c: Likewise.
2922 * rs6000-nat.c: Likewise.
2923 * target.c: Likewise.
2924 * typeprint.c: Likewise.
2925 * ui-file.c: Likewise.
2926 * valops.c: Likewise.
2927 * valprint.c: Likewise.
2928
2929 2014-08-07 Gary Benson <gbenson@redhat.com>
2930
2931 * common/common-defs.h: Include string.h.
2932 * aarch64-tdep.c: Do not include string.h.
2933 * ada-exp.y: Likewise.
2934 * ada-lang.c: Likewise.
2935 * ada-lex.l: Likewise.
2936 * ada-typeprint.c: Likewise.
2937 * ada-valprint.c: Likewise.
2938 * aix-thread.c: Likewise.
2939 * alpha-linux-tdep.c: Likewise.
2940 * alpha-mdebug-tdep.c: Likewise.
2941 * alpha-nat.c: Likewise.
2942 * alpha-osf1-tdep.c: Likewise.
2943 * alpha-tdep.c: Likewise.
2944 * alphanbsd-tdep.c: Likewise.
2945 * amd64-dicos-tdep.c: Likewise.
2946 * amd64-linux-tdep.c: Likewise.
2947 * amd64-nat.c: Likewise.
2948 * amd64-sol2-tdep.c: Likewise.
2949 * amd64fbsd-tdep.c: Likewise.
2950 * amd64obsd-tdep.c: Likewise.
2951 * arch-utils.c: Likewise.
2952 * arm-linux-nat.c: Likewise.
2953 * arm-linux-tdep.c: Likewise.
2954 * arm-tdep.c: Likewise.
2955 * arm-wince-tdep.c: Likewise.
2956 * armbsd-tdep.c: Likewise.
2957 * armnbsd-nat.c: Likewise.
2958 * armnbsd-tdep.c: Likewise.
2959 * armobsd-tdep.c: Likewise.
2960 * avr-tdep.c: Likewise.
2961 * ax-gdb.c: Likewise.
2962 * ax-general.c: Likewise.
2963 * bcache.c: Likewise.
2964 * bfin-tdep.c: Likewise.
2965 * breakpoint.c: Likewise.
2966 * build-id.c: Likewise.
2967 * buildsym.c: Likewise.
2968 * c-exp.y: Likewise.
2969 * c-lang.c: Likewise.
2970 * c-typeprint.c: Likewise.
2971 * c-valprint.c: Likewise.
2972 * charset.c: Likewise.
2973 * cli-out.c: Likewise.
2974 * cli/cli-cmds.c: Likewise.
2975 * cli/cli-decode.c: Likewise.
2976 * cli/cli-dump.c: Likewise.
2977 * cli/cli-interp.c: Likewise.
2978 * cli/cli-logging.c: Likewise.
2979 * cli/cli-script.c: Likewise.
2980 * cli/cli-setshow.c: Likewise.
2981 * cli/cli-utils.c: Likewise.
2982 * coffread.c: Likewise.
2983 * common/agent.c: Likewise.
2984 * common/buffer.c: Likewise.
2985 * common/buffer.h: Likewise.
2986 * common/common-utils.c: Likewise.
2987 * common/filestuff.c: Likewise.
2988 * common/filestuff.c: Likewise.
2989 * common/format.c: Likewise.
2990 * common/print-utils.c: Likewise.
2991 * common/rsp-low.c: Likewise.
2992 * common/signals.c: Likewise.
2993 * common/vec.h: Likewise.
2994 * common/xml-utils.c: Likewise.
2995 * core-regset.c: Likewise.
2996 * corefile.c: Likewise.
2997 * corelow.c: Likewise.
2998 * cp-abi.c: Likewise.
2999 * cp-name-parser.y: Likewise.
3000 * cp-support.c: Likewise.
3001 * cp-valprint.c: Likewise.
3002 * cris-tdep.c: Likewise.
3003 * d-exp.y: Likewise.
3004 * darwin-nat.c: Likewise.
3005 * dbxread.c: Likewise.
3006 * dcache.c: Likewise.
3007 * demangle.c: Likewise.
3008 * dicos-tdep.c: Likewise.
3009 * disasm.c: Likewise.
3010 * doublest.c: Likewise.
3011 * dsrec.c: Likewise.
3012 * dummy-frame.c: Likewise.
3013 * dwarf2-frame.c: Likewise.
3014 * dwarf2loc.c: Likewise.
3015 * dwarf2read.c: Likewise.
3016 * elfread.c: Likewise.
3017 * environ.c: Likewise.
3018 * eval.c: Likewise.
3019 * event-loop.c: Likewise.
3020 * exceptions.c: Likewise.
3021 * exec.c: Likewise.
3022 * expprint.c: Likewise.
3023 * f-exp.y: Likewise.
3024 * f-lang.c: Likewise.
3025 * f-typeprint.c: Likewise.
3026 * f-valprint.c: Likewise.
3027 * fbsd-nat.c: Likewise.
3028 * findcmd.c: Likewise.
3029 * findvar.c: Likewise.
3030 * fork-child.c: Likewise.
3031 * frame.c: Likewise.
3032 * frv-linux-tdep.c: Likewise.
3033 * frv-tdep.c: Likewise.
3034 * gdb.c: Likewise.
3035 * gdb_bfd.c: Likewise.
3036 * gdbarch.c: Likewise.
3037 * gdbarch.sh: Likewise.
3038 * gdbtypes.c: Likewise.
3039 * gnu-nat.c: Likewise.
3040 * gnu-v2-abi.c: Likewise.
3041 * gnu-v3-abi.c: Likewise.
3042 * go-exp.y: Likewise.
3043 * go-lang.c: Likewise.
3044 * go32-nat.c: Likewise.
3045 * guile/guile.c: Likewise.
3046 * guile/scm-auto-load.c: Likewise.
3047 * hppa-hpux-tdep.c: Likewise.
3048 * hppa-linux-nat.c: Likewise.
3049 * hppanbsd-tdep.c: Likewise.
3050 * hppaobsd-tdep.c: Likewise.
3051 * i386-cygwin-tdep.c: Likewise.
3052 * i386-dicos-tdep.c: Likewise.
3053 * i386-linux-tdep.c: Likewise.
3054 * i386-nto-tdep.c: Likewise.
3055 * i386-sol2-tdep.c: Likewise.
3056 * i386-tdep.c: Likewise.
3057 * i386bsd-tdep.c: Likewise.
3058 * i386gnu-nat.c: Likewise.
3059 * i386nbsd-tdep.c: Likewise.
3060 * i386obsd-tdep.c: Likewise.
3061 * i387-tdep.c: Likewise.
3062 * ia64-libunwind-tdep.c: Likewise.
3063 * ia64-linux-nat.c: Likewise.
3064 * inf-child.c: Likewise.
3065 * inf-ptrace.c: Likewise.
3066 * inf-ttrace.c: Likewise.
3067 * infcall.c: Likewise.
3068 * infcmd.c: Likewise.
3069 * inflow.c: Likewise.
3070 * infrun.c: Likewise.
3071 * interps.c: Likewise.
3072 * iq2000-tdep.c: Likewise.
3073 * irix5-nat.c: Likewise.
3074 * jv-exp.y: Likewise.
3075 * jv-lang.c: Likewise.
3076 * jv-typeprint.c: Likewise.
3077 * jv-valprint.c: Likewise.
3078 * language.c: Likewise.
3079 * linux-fork.c: Likewise.
3080 * linux-nat.c: Likewise.
3081 * lm32-tdep.c: Likewise.
3082 * m2-exp.y: Likewise.
3083 * m2-typeprint.c: Likewise.
3084 * m32c-tdep.c: Likewise.
3085 * m32r-linux-nat.c: Likewise.
3086 * m32r-linux-tdep.c: Likewise.
3087 * m32r-rom.c: Likewise.
3088 * m32r-tdep.c: Likewise.
3089 * m68hc11-tdep.c: Likewise.
3090 * m68k-tdep.c: Likewise.
3091 * m68kbsd-tdep.c: Likewise.
3092 * m68klinux-nat.c: Likewise.
3093 * m68klinux-tdep.c: Likewise.
3094 * m88k-tdep.c: Likewise.
3095 * machoread.c: Likewise.
3096 * macrocmd.c: Likewise.
3097 * main.c: Likewise.
3098 * mdebugread.c: Likewise.
3099 * mem-break.c: Likewise.
3100 * memattr.c: Likewise.
3101 * memory-map.c: Likewise.
3102 * mep-tdep.c: Likewise.
3103 * mi/mi-cmd-break.c: Likewise.
3104 * mi/mi-cmd-disas.c: Likewise.
3105 * mi/mi-cmd-env.c: Likewise.
3106 * mi/mi-cmd-stack.c: Likewise.
3107 * mi/mi-cmd-var.c: Likewise.
3108 * mi/mi-cmds.c: Likewise.
3109 * mi/mi-console.c: Likewise.
3110 * mi/mi-getopt.c: Likewise.
3111 * mi/mi-interp.c: Likewise.
3112 * mi/mi-main.c: Likewise.
3113 * mi/mi-parse.c: Likewise.
3114 * microblaze-rom.c: Likewise.
3115 * microblaze-tdep.c: Likewise.
3116 * mingw-hdep.c: Likewise.
3117 * minidebug.c: Likewise.
3118 * minsyms.c: Likewise.
3119 * mips-irix-tdep.c: Likewise.
3120 * mips-linux-tdep.c: Likewise.
3121 * mips-tdep.c: Likewise.
3122 * mips64obsd-tdep.c: Likewise.
3123 * mipsnbsd-tdep.c: Likewise.
3124 * mipsread.c: Likewise.
3125 * mn10300-linux-tdep.c: Likewise.
3126 * mn10300-tdep.c: Likewise.
3127 * monitor.c: Likewise.
3128 * moxie-tdep.c: Likewise.
3129 * mt-tdep.c: Likewise.
3130 * nat/linux-btrace.c: Likewise.
3131 * nat/linux-osdata.c: Likewise.
3132 * nat/linux-procfs.c: Likewise.
3133 * nat/linux-ptrace.c: Likewise.
3134 * nat/linux-waitpid.c: Likewise.
3135 * nbsd-tdep.c: Likewise.
3136 * nios2-linux-tdep.c: Likewise.
3137 * nto-procfs.c: Likewise.
3138 * nto-tdep.c: Likewise.
3139 * objc-lang.c: Likewise.
3140 * objfiles.c: Likewise.
3141 * opencl-lang.c: Likewise.
3142 * osabi.c: Likewise.
3143 * osdata.c: Likewise.
3144 * p-exp.y: Likewise.
3145 * p-lang.c: Likewise.
3146 * p-typeprint.c: Likewise.
3147 * parse.c: Likewise.
3148 * posix-hdep.c: Likewise.
3149 * ppc-linux-nat.c: Likewise.
3150 * ppc-sysv-tdep.c: Likewise.
3151 * ppcfbsd-tdep.c: Likewise.
3152 * ppcnbsd-tdep.c: Likewise.
3153 * ppcobsd-tdep.c: Likewise.
3154 * printcmd.c: Likewise.
3155 * procfs.c: Likewise.
3156 * prologue-value.c: Likewise.
3157 * python/py-auto-load.c: Likewise.
3158 * python/py-gdb-readline.c: Likewise.
3159 * ravenscar-thread.c: Likewise.
3160 * regcache.c: Likewise.
3161 * registry.c: Likewise.
3162 * remote-fileio.c: Likewise.
3163 * remote-m32r-sdi.c: Likewise.
3164 * remote-mips.c: Likewise.
3165 * remote-notif.c: Likewise.
3166 * remote-sim.c: Likewise.
3167 * remote.c: Likewise.
3168 * reverse.c: Likewise.
3169 * rs6000-aix-tdep.c: Likewise.
3170 * ser-base.c: Likewise.
3171 * ser-go32.c: Likewise.
3172 * ser-mingw.c: Likewise.
3173 * ser-pipe.c: Likewise.
3174 * ser-tcp.c: Likewise.
3175 * ser-unix.c: Likewise.
3176 * serial.c: Likewise.
3177 * sh-tdep.c: Likewise.
3178 * sh64-tdep.c: Likewise.
3179 * shnbsd-tdep.c: Likewise.
3180 * skip.c: Likewise.
3181 * sol-thread.c: Likewise.
3182 * solib-dsbt.c: Likewise.
3183 * solib-frv.c: Likewise.
3184 * solib-osf.c: Likewise.
3185 * solib-som.c: Likewise.
3186 * solib-spu.c: Likewise.
3187 * solib-target.c: Likewise.
3188 * solib.c: Likewise.
3189 * somread.c: Likewise.
3190 * source.c: Likewise.
3191 * sparc-nat.c: Likewise.
3192 * sparc-sol2-tdep.c: Likewise.
3193 * sparc-tdep.c: Likewise.
3194 * sparc64-tdep.c: Likewise.
3195 * sparc64fbsd-tdep.c: Likewise.
3196 * sparc64nbsd-tdep.c: Likewise.
3197 * sparcnbsd-tdep.c: Likewise.
3198 * spu-linux-nat.c: Likewise.
3199 * spu-multiarch.c: Likewise.
3200 * spu-tdep.c: Likewise.
3201 * stabsread.c: Likewise.
3202 * stack.c: Likewise.
3203 * std-regs.c: Likewise.
3204 * symfile.c: Likewise.
3205 * symmisc.c: Likewise.
3206 * symtab.c: Likewise.
3207 * target.c: Likewise.
3208 * thread.c: Likewise.
3209 * tilegx-linux-nat.c: Likewise.
3210 * tilegx-tdep.c: Likewise.
3211 * top.c: Likewise.
3212 * tracepoint.c: Likewise.
3213 * tui/tui-command.c: Likewise.
3214 * tui/tui-data.c: Likewise.
3215 * tui/tui-disasm.c: Likewise.
3216 * tui/tui-file.c: Likewise.
3217 * tui/tui-layout.c: Likewise.
3218 * tui/tui-out.c: Likewise.
3219 * tui/tui-regs.c: Likewise.
3220 * tui/tui-source.c: Likewise.
3221 * tui/tui-stack.c: Likewise.
3222 * tui/tui-win.c: Likewise.
3223 * tui/tui-windata.c: Likewise.
3224 * tui/tui-winsource.c: Likewise.
3225 * typeprint.c: Likewise.
3226 * ui-file.c: Likewise.
3227 * ui-out.c: Likewise.
3228 * user-regs.c: Likewise.
3229 * utils.c: Likewise.
3230 * v850-tdep.c: Likewise.
3231 * valarith.c: Likewise.
3232 * valops.c: Likewise.
3233 * valprint.c: Likewise.
3234 * value.c: Likewise.
3235 * varobj.c: Likewise.
3236 * vax-tdep.c: Likewise.
3237 * vaxnbsd-tdep.c: Likewise.
3238 * vaxobsd-tdep.c: Likewise.
3239 * windows-nat.c: Likewise.
3240 * xcoffread.c: Likewise.
3241 * xml-support.c: Likewise.
3242 * xstormy16-tdep.c: Likewise.
3243 * xtensa-linux-nat.c: Likewise.
3244
3245 2014-08-07 Gary Benson <gbenson@redhat.com>
3246
3247 * common/common-defs.h: Include gdb_assert.h.
3248 * aarch64-tdep.c: Do not include gdb_assert.h.
3249 * addrmap.c: Likewise.
3250 * aix-thread.c: Likewise.
3251 * alpha-linux-tdep.c: Likewise.
3252 * alpha-mdebug-tdep.c: Likewise.
3253 * alphanbsd-tdep.c: Likewise.
3254 * amd64-nat.c: Likewise.
3255 * amd64-tdep.c: Likewise.
3256 * amd64bsd-nat.c: Likewise.
3257 * amd64fbsd-nat.c: Likewise.
3258 * amd64fbsd-tdep.c: Likewise.
3259 * amd64nbsd-nat.c: Likewise.
3260 * amd64nbsd-tdep.c: Likewise.
3261 * amd64obsd-nat.c: Likewise.
3262 * amd64obsd-tdep.c: Likewise.
3263 * arch-utils.c: Likewise.
3264 * arm-tdep.c: Likewise.
3265 * armbsd-tdep.c: Likewise.
3266 * auxv.c: Likewise.
3267 * bcache.c: Likewise.
3268 * bfin-tdep.c: Likewise.
3269 * blockframe.c: Likewise.
3270 * breakpoint.c: Likewise.
3271 * bsd-kvm.c: Likewise.
3272 * bsd-uthread.c: Likewise.
3273 * buildsym.c: Likewise.
3274 * c-exp.y: Likewise.
3275 * c-lang.c: Likewise.
3276 * charset.c: Likewise.
3277 * cleanups.c: Likewise.
3278 * cli-out.c: Likewise.
3279 * cli/cli-decode.c: Likewise.
3280 * cli/cli-dump.c: Likewise.
3281 * cli/cli-logging.c: Likewise.
3282 * cli/cli-script.c: Likewise.
3283 * cli/cli-utils.c: Likewise.
3284 * coffread.c: Likewise.
3285 * common/common-utils.c: Likewise.
3286 * common/queue.h: Likewise.
3287 * common/signals.c: Likewise.
3288 * common/vec.h: Likewise.
3289 * complaints.c: Likewise.
3290 * completer.c: Likewise.
3291 * corelow.c: Likewise.
3292 * cp-abi.c: Likewise.
3293 * cp-name-parser.y: Likewise.
3294 * cp-namespace.c: Likewise.
3295 * cp-support.c: Likewise.
3296 * cris-tdep.c: Likewise.
3297 * dbxread.c: Likewise.
3298 * dictionary.c: Likewise.
3299 * doublest.c: Likewise.
3300 * dsrec.c: Likewise.
3301 * dummy-frame.c: Likewise.
3302 * dwarf2-frame-tailcall.c: Likewise.
3303 * dwarf2-frame.c: Likewise.
3304 * dwarf2expr.c: Likewise.
3305 * dwarf2loc.c: Likewise.
3306 * dwarf2read.c: Likewise.
3307 * eval.c: Likewise.
3308 * event-loop.c: Likewise.
3309 * exceptions.c: Likewise.
3310 * expprint.c: Likewise.
3311 * f-valprint.c: Likewise.
3312 * fbsd-nat.c: Likewise.
3313 * findvar.c: Likewise.
3314 * frame-unwind.c: Likewise.
3315 * frame.c: Likewise.
3316 * frv-tdep.c: Likewise.
3317 * gcore.c: Likewise.
3318 * gdb-dlfcn.c: Likewise.
3319 * gdb_bfd.c: Likewise.
3320 * gdbarch.c: Likewise.
3321 * gdbarch.sh: Likewise.
3322 * gdbtypes.c: Likewise.
3323 * gnu-nat.c: Likewise.
3324 * gnu-v3-abi.c: Likewise.
3325 * go-lang.c: Likewise.
3326 * guile/scm-exception.c: Likewise.
3327 * guile/scm-gsmob.c: Likewise.
3328 * guile/scm-lazy-string.c: Likewise.
3329 * guile/scm-math.c: Likewise.
3330 * guile/scm-pretty-print.c: Likewise.
3331 * guile/scm-safe-call.c: Likewise.
3332 * guile/scm-utils.c: Likewise.
3333 * guile/scm-value.c: Likewise.
3334 * h8300-tdep.c: Likewise.
3335 * hppa-hpux-nat.c: Likewise.
3336 * hppa-tdep.c: Likewise.
3337 * hppanbsd-tdep.c: Likewise.
3338 * hppaobsd-tdep.c: Likewise.
3339 * i386-darwin-nat.c: Likewise.
3340 * i386-darwin-tdep.c: Likewise.
3341 * i386-nto-tdep.c: Likewise.
3342 * i386-tdep.c: Likewise.
3343 * i386bsd-nat.c: Likewise.
3344 * i386fbsd-tdep.c: Likewise.
3345 * i386gnu-nat.c: Likewise.
3346 * i386nbsd-tdep.c: Likewise.
3347 * i386obsd-tdep.c: Likewise.
3348 * i387-tdep.c: Likewise.
3349 * ia64-libunwind-tdep.c: Likewise.
3350 * ia64-tdep.c: Likewise.
3351 * inf-ptrace.c: Likewise.
3352 * inf-ttrace.c: Likewise.
3353 * infcall.c: Likewise.
3354 * infcmd.c: Likewise.
3355 * infrun.c: Likewise.
3356 * inline-frame.c: Likewise.
3357 * interps.c: Likewise.
3358 * jv-lang.c: Likewise.
3359 * jv-typeprint.c: Likewise.
3360 * linux-fork.c: Likewise.
3361 * linux-nat.c: Likewise.
3362 * linux-thread-db.c: Likewise.
3363 * m32c-tdep.c: Likewise.
3364 * m32r-linux-nat.c: Likewise.
3365 * m32r-tdep.c: Likewise.
3366 * m68k-tdep.c: Likewise.
3367 * m68kbsd-nat.c: Likewise.
3368 * m68kbsd-tdep.c: Likewise.
3369 * m88k-tdep.c: Likewise.
3370 * machoread.c: Likewise.
3371 * macroexp.c: Likewise.
3372 * macrotab.c: Likewise.
3373 * maint.c: Likewise.
3374 * mdebugread.c: Likewise.
3375 * memory-map.c: Likewise.
3376 * mep-tdep.c: Likewise.
3377 * mi/mi-common.c: Likewise.
3378 * microblaze-tdep.c: Likewise.
3379 * mingw-hdep.c: Likewise.
3380 * mips-linux-nat.c: Likewise.
3381 * mips-linux-tdep.c: Likewise.
3382 * mips-tdep.c: Likewise.
3383 * mips64obsd-tdep.c: Likewise.
3384 * mipsnbsd-tdep.c: Likewise.
3385 * mn10300-linux-tdep.c: Likewise.
3386 * mn10300-tdep.c: Likewise.
3387 * moxie-tdep.c: Likewise.
3388 * mt-tdep.c: Likewise.
3389 * nat/linux-btrace.c: Likewise.
3390 * nat/linux-osdata.c: Likewise.
3391 * nat/linux-ptrace.c: Likewise.
3392 * nat/mips-linux-watch.c: Likewise.
3393 * nios2-linux-tdep.c: Likewise.
3394 * nios2-tdep.c: Likewise.
3395 * objc-lang.c: Likewise.
3396 * objfiles.c: Likewise.
3397 * obsd-nat.c: Likewise.
3398 * opencl-lang.c: Likewise.
3399 * osabi.c: Likewise.
3400 * parse.c: Likewise.
3401 * ppc-linux-nat.c: Likewise.
3402 * ppc-sysv-tdep.c: Likewise.
3403 * ppcfbsd-nat.c: Likewise.
3404 * ppcfbsd-tdep.c: Likewise.
3405 * ppcnbsd-nat.c: Likewise.
3406 * ppcnbsd-tdep.c: Likewise.
3407 * ppcobsd-nat.c: Likewise.
3408 * ppcobsd-tdep.c: Likewise.
3409 * printcmd.c: Likewise.
3410 * procfs.c: Likewise.
3411 * prologue-value.c: Likewise.
3412 * psymtab.c: Likewise.
3413 * python/py-lazy-string.c: Likewise.
3414 * python/py-value.c: Likewise.
3415 * regcache.c: Likewise.
3416 * reggroups.c: Likewise.
3417 * registry.c: Likewise.
3418 * remote-sim.c: Likewise.
3419 * remote.c: Likewise.
3420 * rs6000-aix-tdep.c: Likewise.
3421 * rs6000-tdep.c: Likewise.
3422 * s390-linux-tdep.c: Likewise.
3423 * score-tdep.c: Likewise.
3424 * ser-base.c: Likewise.
3425 * ser-mingw.c: Likewise.
3426 * sh-tdep.c: Likewise.
3427 * sh64-tdep.c: Likewise.
3428 * solib-darwin.c: Likewise.
3429 * solib-spu.c: Likewise.
3430 * solib-svr4.c: Likewise.
3431 * source.c: Likewise.
3432 * sparc-nat.c: Likewise.
3433 * sparc-sol2-tdep.c: Likewise.
3434 * sparc-tdep.c: Likewise.
3435 * sparc64-sol2-tdep.c: Likewise.
3436 * sparc64-tdep.c: Likewise.
3437 * sparc64fbsd-tdep.c: Likewise.
3438 * sparc64nbsd-tdep.c: Likewise.
3439 * sparc64obsd-tdep.c: Likewise.
3440 * sparcnbsd-tdep.c: Likewise.
3441 * sparcobsd-tdep.c: Likewise.
3442 * spu-multiarch.c: Likewise.
3443 * spu-tdep.c: Likewise.
3444 * stabsread.c: Likewise.
3445 * stack.c: Likewise.
3446 * symfile.c: Likewise.
3447 * symtab.c: Likewise.
3448 * target-descriptions.c: Likewise.
3449 * target-memory.c: Likewise.
3450 * target.c: Likewise.
3451 * tic6x-linux-tdep.c: Likewise.
3452 * tic6x-tdep.c: Likewise.
3453 * tilegx-linux-nat.c: Likewise.
3454 * tilegx-tdep.c: Likewise.
3455 * top.c: Likewise.
3456 * tramp-frame.c: Likewise.
3457 * tui/tui-out.c: Likewise.
3458 * tui/tui-winsource.c: Likewise.
3459 * ui-out.c: Likewise.
3460 * user-regs.c: Likewise.
3461 * utils.c: Likewise.
3462 * v850-tdep.c: Likewise.
3463 * valops.c: Likewise.
3464 * value.c: Likewise.
3465 * varobj.c: Likewise.
3466 * vax-nat.c: Likewise.
3467 * xml-syscall.c: Likewise.
3468 * xml-tdesc.c: Likewise.
3469 * xstormy16-tdep.c: Likewise.
3470 * xtensa-linux-nat.c: Likewise.
3471 * xtensa-tdep.c: Likewise.
3472
3473 2014-08-07 Gary Benson <gbenson@redhat.com>
3474
3475 * common/common-defs.h: Include common-utils.h.
3476 * defs.h: Do not include common-utils.h.
3477 * common/gdb_assert.h: Likewise.
3478 * darwin-nat.h: Likewise.
3479 * nat/linux-btrace.c: Likewise.
3480 * target/waitstatus.h: Likewise.
3481
3482 2014-08-07 Gary Benson <gbenson@redhat.com>
3483
3484 * common/common-defs.h: Include ptid.h.
3485 * defs.h: Do not include ptid.h.
3486 * inferior.h: Likewise.
3487 * infrun.h: Likewise.
3488 * nat/linux-btrace.h: Likewise.
3489 * nat/linux-osdata.h: Likewise.
3490 * target/waitstatus.h: Likewise.
3491
3492 2014-08-07 Gary Benson <gbenson@redhat.com>
3493
3494 * common/common-defs.h: Include gdb_locale.h.
3495 * defs.h: Do not include gdb_locale.h.
3496
3497 2014-08-07 Gary Benson <gbenson@redhat.com>
3498
3499 * common/common-defs.h: Include gdb/signals.h.
3500 * defs.h: Do not include gdb/signals.h.
3501
3502 2014-08-07 Gary Benson <gbenson@redhat.com>
3503
3504 * common/common-defs.h: Include pathmax.h.
3505 * defs.h: Do not include pathmax.h.
3506
3507 2014-08-07 Gary Benson <gbenson@redhat.com>
3508
3509 * common/common-defs.h: Include libiberty.h.
3510 * defs.h: Do not include libiberty.h.
3511 * common/queue.h: Likewise.
3512 * cp-name-parser.y: Likewise.
3513 * mi/mi-cmd-catch.c: Likewise.
3514 * python/python.c: Likewise.
3515
3516 2014-08-07 Gary Benson <gbenson@redhat.com>
3517
3518 * common/common-defs.h: Include ansidecl.h.
3519 * defs.h: Do not include ansidecl.h.
3520 * common/buffer.h: Likewise.
3521 * common/common-utils.h: Likewise.
3522
3523 2014-08-07 Gary Benson <gbenson@redhat.com>
3524
3525 * common/common-defs.h: Include stddef.h.
3526 * defs.h: Do not include stddef.h.
3527 * common/common-utils.h: Likewise.
3528 * amd64fbsd-nat.c: Likewise.
3529 * bcache.c: Likewise.
3530 * charset.c: Likewise.
3531 * common/buffer.h: Likewise.
3532 * common/vec.h: Likewise.
3533 * i386bsd-nat.c: Likewise.
3534 * nat/linux-btrace.h: Likewise.
3535 * ppcfbsd-nat.c: Likewise.
3536 * ppcnbsd-tdep.h: Likewise.
3537 * ppcobsd-nat.c: Likewise.
3538 * ppcobsd-tdep.h: Likewise.
3539 * python/py-gdb-readline.c: Likewise.
3540
3541 2014-08-07 Gary Benson <gbenson@redhat.com>
3542
3543 * common/common-defs.h: Include stdarg.h.
3544 * defs.h: Do not include stdarg.h.
3545 * ada-lang.c: Likewise.
3546 * common/common-utils.h: Likewise.
3547 * guile/scm-string.c: Likewise.
3548 * guile/scm-utils.c: Likewise.
3549 * m32c-tdep.c: Likewise.
3550
3551 2014-08-07 Gary Benson <gbenson@redhat.com>
3552
3553 * common/common-defs.h: Include stdlib.h.
3554 * defs.h: Do not include stdlib.h.
3555 * addrmap.c: Likewise.
3556 * bcache.c: Likewise.
3557 * common/buffer.c: Likewise.
3558 * common/common-utils.c: Likewise.
3559 * cp-name-parser.y: Likewise.
3560 * go32-nat.c: Likewise.
3561 * mn10300-linux-tdep.c: Likewise.
3562 * nat/linux-osdata.c: Likewise.
3563 * tui/tui.c: Likewise.
3564 * windows-nat.c: Likewise.
3565
3566 2014-08-07 Gary Benson <gbenson@redhat.com>
3567
3568 * common/common-defs.h: Include stdio.h.
3569 * defs.h: Do not include stdio.h.
3570 * ada-lang.c: Likewise.
3571 * common/buffer.c: Likewise.
3572 * common/common-utils.c: Likewise.
3573 * cp-name-parser.y: Likewise.
3574 * gnu-nat.c: Likewise.
3575 * go32-nat.c: Likewise.
3576 * i386gnu-nat.c: Likewise.
3577 * proc-api.c: Likewise.
3578 * proc-events.c: Likewise.
3579 * proc-flags.c: Likewise.
3580 * proc-why.c: Likewise.
3581 * python/python-internal.h: Likewise.
3582 * target-memory.c: Likewise.
3583 * tui/tui-io.c: Likewise.
3584 * tui/tui.c: Likewise.
3585
3586 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
3587
3588 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
3589 (scan_dyntag_auxv): Same.
3590
3591 2014-08-06 Yao Qi <yao@codesourcery.com>
3592
3593 * amd64-linux-nat.c: Remove duplicated include
3594 "x86-linux-nat.h".
3595 * i386-linux-nat.c: Likewise.
3596
3597 2014-08-06 Yao Qi <yao@codesourcery.com>
3598
3599 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
3600 operand" with "Special opcode" in comments.
3601
3602 2014-08-05 Gary Benson <gbenson@redhat.com>
3603
3604 * interps.c (initialize_interps): Remove prototype.
3605 (interpreter_initialized): Remove static global.
3606 (interp_add): Do not call initialize_interps.
3607 (initialize_interps): Remove function.
3608
3609 2014-08-05 Gary Benson <gbenson@redhat.com>
3610
3611 * utils.c (vwarning): Remove spurious va_end.
3612
3613 2014-08-05 Alan Modra <amodra@gmail.com>
3614
3615 * charset.c (convert_between_encodings): Cast result of obstack_base.
3616 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
3617 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
3618 (read_unwind_info): Use size_t for some locals.
3619 * jit.c (finalize_symtab): Likewise.
3620 * utils.c (hashtab_obstack_allocate): Likewise.
3621 * symmisc.c (print_objfile_statistics): Update format strings.
3622
3623 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3624
3625 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
3626 (Changes in GDB 7.8): ... here.
3627
3628 2014-08-04 Tom Tromey <tromey@redhat.com>
3629
3630 * target.c (set_targetdebug): New function.
3631 (initialize_targets): Pass set_targetdebug when creating "set
3632 debug target".
3633
3634 2014-08-01 Joel Brobecker <brobecker@adacore.com>
3635
3636 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
3637 if detecting a variable-sized field that is not the last field.
3638 Fix struct type length computation.
3639
3640 2014-08-01 Joel Brobecker <brobecker@adacore.com>
3641
3642 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3643 Add debug trace.
3644
3645 2014-08-01 Joel Brobecker <brobecker@adacore.com>
3646
3647 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3648 Remove "+ 8" offset in computation of CHAIN_VMA.
3649
3650 2014-07-31 Doug Evans <dje@google.com>
3651
3652 * inflow.c (child_terminal_inferior): Add comment.
3653 (child_terminal_ours_for_output): Add comment.
3654 (child_terminal_ours): Add comment.
3655 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
3656 (linux_nat_terminal_ours): Add comment.
3657
3658 2014-07-31 Gary Benson <gbenson@redhat.com>
3659
3660 * common/btrace-common.h: Do not include defs.h or server.h.
3661 * nat/mips-linux-watch.h: Likewise.
3662 * gdb-dlfcn.h: Do not include defs.h.
3663 * tracefile.h: Likewise.
3664
3665 2014-07-30 Roland McGrath <mcgrathr@google.com>
3666
3667 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
3668
3669 2014-07-30 Tom Tromey <tromey@redhat.com>
3670
3671 * bsd-kvm.c (bsd_kvm_open): Constify.
3672 * corelow.c (core_open): Constify.
3673 * ctf.c (ctf_open): Constify.
3674 * dbug-rom.c (dbug_open): Constify.
3675 * exec.c (exec_open): Constify.
3676 * m32r-rom.c (m32r_open, mon2000_open): Constify.
3677 * microblaze-rom.c (picobug_open): Constify.
3678 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
3679 Constify.
3680 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
3681 * record-btrace.c (record_btrace_open): Constify.
3682 * record-full.c (record_full_core_open_1, record_full_open_1)
3683 (record_full_open): Constify.
3684 * remote-m32r-sdi.c (m32r_open): Constify.
3685 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
3686 (rockhopper_open, lsi_open): Constify.
3687 * remote-sim.c (gdbsim_open): Constify.
3688 * remote.c (remote_open, extended_remote_open, remote_open_1):
3689 Constify.
3690 * target.h (struct target_ops) <to_open>: Make "arg" const.
3691 * tracefile-tfile.c (tfile_open): Constify.
3692
3693 2014-07-30 Tom Tromey <tromey@redhat.com>
3694
3695 * breakpoint.c (map_breakpoint_numbers): Update.
3696 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
3697 (get_number_const): New function.
3698 (get_number): Rewrite using get_number_const.
3699 (init_number_or_range): Make "string" const.
3700 (number_is_in_list): Make "list" const.
3701 * cli/cli-utils.h (get_number_const): Declare.
3702 (struct get_number_or_range_state) <string, end_ptr>: Now const.
3703 (init_number_or_range, number_is_in_list): Update.
3704 * printcmd.c (map_display_numbers): Update.
3705 * value.c (value_from_history_ref): Constify.
3706 * value.h (value_from_history_ref): Update.
3707
3708 2014-07-30 Tom Tromey <tromey@redhat.com>
3709
3710 * corefile.c (hook_type, call_extra_exec_file_hooks)
3711 (specify_exec_file_hook): Constify.
3712 * exec.c (exec_file_attach): Make "filename" const.
3713 * gdbcore.h (deprecated_exec_file_display_hook)
3714 (specify_exec_file_hook, exec_file_attach): Constify.
3715 * main.c (captured_main): Use catch_command_errors_const.
3716
3717 2014-07-30 Tom Tromey <tromey@redhat.com>
3718
3719 * target.c (open_target): New function.
3720 (add_target_with_completer, add_deprecated_target_alias): Use
3721 set_cmd_sfunc, set_cmd_context.
3722 (debug_to_open): Remove.
3723 (setup_target_debug): Update.
3724
3725 2014-07-30 Yao Qi <yao@codesourcery.com>
3726
3727 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
3728 comments.
3729 * parse.c (exp_iterate): Update comments.
3730
3731 2014-07-30 Gary Benson <gbenson@redhat.com>
3732
3733 * common/common-defs.h: New file.
3734 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
3735 * defs.h: Include common-defs.h.
3736 Do not include config.h or build-gnulib/config.h.
3737
3738 2014-07-30 Gary Benson <gbenson@redhat.com>
3739
3740 * common/common-utils.h: Do not include config.h.
3741 * nat/linux-btrace.h: Likewise.
3742
3743 2014-07-30 Gary Benson <gbenson@redhat.com>
3744
3745 * btrace.c: Include defs.h.
3746 * common/ptid.c: Include defs.h or server.h as appropriate.
3747 * nat/mips-linux-watch.c: Likewise.
3748
3749 2014-07-29 Tom Tromey <tromey@redhat.com>
3750
3751 * target.c (target_is_pushed): Simplify.
3752
3753 2014-07-29 Joel Brobecker <brobecker@adacore.com>
3754
3755 GDB 7.8 released.
3756
3757 2014-07-29 Yao Qi <yao@codesourcery.com>
3758
3759 PR gdb/17206
3760 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
3761
3762 2014-07-28 Doug Evans <xdje42@gmail.com>
3763
3764 PR guile/17203
3765 * guile/scm-param.c (pascm_parameter_defined_p): New function.
3766 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
3767 parameters.
3768
3769 2014-07-28 Will Newton <will.newton@linaro.org>
3770
3771 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
3772 (THUMB2_SET_R7_SIGRETURN2): Likewise.
3773 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
3774 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
3775 (THUMB2_EABI_SYSCALL): Likewise.
3776 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
3777 struct tramp_frame.
3778 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
3779 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
3780
3781 2014-07-27 Doug Evans <xdje42@gmail.com>
3782
3783 * guile/scm-param.c (pascm_print_param_smob): Fix output.
3784
3785 2014-07-27 Doug Evans <xdje42@gmail.com>
3786
3787 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
3788
3789 2014-07-26 Ludovic Courtès <ludo@gnu.org>
3790 Doug Evans <xdje42@gmail.com>
3791
3792 PR guile/17146
3793 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
3794 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
3795 * configure.ac: Try to use guild to compile an scm file, if it fails
3796 then disable guile support.
3797 * configure: Regenerate.
3798 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
3799 GUILE_FILE_LIST.
3800 (GUILE_COMPILED_FILES): New variable.
3801 (GUILE_FILES) Update.
3802 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
3803 (stamp-guile): Compile scm files.
3804 * guile/guile.c (boot_guile_support): New function.
3805 (standard_throw_args_p): New function.
3806 (print_standard_throw_error, print_throw_error): New functions.
3807 (handle_boot_error): New function.
3808 (initialize_scheme_side): Rewrite to call boot_guile_support.
3809 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
3810 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
3811
3812 2014-07-26 Ludovic Courtès <ludo@gnu.org>
3813 Doug Evans <xdje42@gmail.com>
3814
3815 PR guile/17146
3816 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
3817 * guile/lib/gdb/support.scm: New file.
3818 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
3819 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
3820 All uses updated.
3821 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
3822 All uses updated.
3823 (%assert-type): Ditto, and renamed to assert-type.
3824 (%exception-print-style): Delete.
3825
3826 2014-07-26 Doug Evans <xdje42@gmail.com>
3827
3828 PR build/17105
3829 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
3830 * configure: Regenerate.
3831 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
3832 PYTHON_FILES.
3833 (PYTHON_FILES): New variable.
3834 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
3835 (GUILE_FILES): New variable.
3836 (stamp-python, install-python, uninstall-python): Handle empty
3837 file list.
3838 (stamp-guile, install-guile, uninstall-guile): Ditto.
3839
3840 2014-07-26 Doug Evans <xdje42@gmail.com>
3841
3842 PR guile/17177
3843 * guile/lib/gdb.scm (pretty-printers): Export.
3844 (set-pretty-printers!): Export.
3845 * guile/lib/gdb/printing.scm (gdb module): Update.
3846 (prepend-pretty-printer!, append-pretty-printer!): Update.
3847 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
3848 (pretty_printer_list_var): Delete.
3849 (pretty_printer_list): New static global.
3850 (gdbscm_pretty_printers): New function.
3851 (gdbscm_set_pretty_printers_x): New function.
3852 (ppscm_find_pretty_printer_from_gdb): Update.
3853 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
3854 (gdbscm_initialize_pretty_printers): Update.
3855
3856 2014-07-26 Doug Evans <xdje42@gmail.com>
3857
3858 PR 17185
3859 * configure.ac: Add check for header gc/gc.h.
3860 Add check for function setenv.
3861 * configure: Regenerate.
3862 * config.in: Regenerate.
3863 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
3864
3865 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
3866
3867 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
3868 variation in gdbarch matching.
3869
3870 2014-07-25 Tom Tromey <tromey@redhat.com>
3871
3872 * exec.c (using_exec_ops): Remove.
3873 (exec_close_1): Update. Remove extraneous block, reindent.
3874 (add_target_sections): Use target_is_pushed.
3875
3876 2014-07-25 Pedro Alves <palves@redhat.com>
3877
3878 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
3879 * monitor.c (monitor_create_inferior): Likewise.
3880 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
3881 * remote-sim.c (gdbsim_create_inferior): Likewise.
3882 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
3883 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
3884 * windows-nat.c (do_initial_windows_stuff): Likewise.
3885
3886 2014-07-25 Pedro Alves <palves@redhat.com>
3887
3888 * NEWS: Mention signal passing and "signal" command changes.
3889 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
3890 comment.
3891 * breakpoint.c (until_break_command): Adjust clear_proceed_status
3892 call.
3893 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
3894 * infcmd.c (proceed_thread_callback, continue_1, step_once)
3895 (jump_command): Adjust clear_proceed_status call.
3896 (signal_command): Warn if other thread that are resumed have
3897 signals that will be delivered. Adjust clear_proceed_status call.
3898 (until_next_command, finish_command)
3899 (proceed_after_attach_callback, attach_command_post_wait)
3900 (attach_command): Adjust clear_proceed_status call.
3901 * infrun.c (proceed_after_vfork_done): Likewise.
3902 (proceed_after_attach_callback): Adjust comment.
3903 (clear_proceed_status_thread): Clear stop_signal if not in pass
3904 state.
3905 (clear_proceed_status_callback): Delete.
3906 (clear_proceed_status): New 'step' parameter. Only clear the
3907 proceed status of threads the command being prepared is about to
3908 resume.
3909 (proceed): If passed in an explicit signal, override stop_signal
3910 with it. Don't pass the last stop signal to the thread we're
3911 resuming.
3912 (init_wait_for_inferior): Adjust clear_proceed_status call.
3913 (switch_back_to_stepped_thread): Clear the signal if it should not
3914 be passed.
3915 * infrun.h (clear_proceed_status): New 'step' parameter.
3916 (user_visible_resume_ptid): Add comment.
3917 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
3918 signal is in pass state.
3919 * remote.c (append_pending_thread_resumptions): Likewise.
3920 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
3921
3922 2014-07-25 Tom Tromey <tromey@redhat.com>
3923
3924 * target.h (target_stopped_data_address)
3925 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
3926 parentheses.
3927
3928 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
3929
3930 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
3931 comments.
3932 (avr_pointer_to_address): Likewise.
3933
3934 2014-07-24 Tom Tromey <tromey@redhat.com>
3935
3936 * monitor.c (compile_pattern): Update.
3937 * target.h (struct target_ops) <to_shortname, to_longname,
3938 to_doc>: Now const.
3939
3940 2014-07-24 Tom Tromey <tromey@redhat.com>
3941
3942 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
3943 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
3944 (add_info_alias, add_com): Make "doc" const.
3945 (print_doc_line): Make "str" const.
3946 (delete_cmd): Update.
3947 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
3948 (print_doc_line): Update.
3949 * cli/cli-script.c (document_command): Update.
3950 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
3951 (add_com, add_info, add_info_alias): Update.
3952 * guile/scm-cmd.c (cmdscm_destroyer): Update.
3953 * python/py-cmd.c (cmdpy_destroyer): Update.
3954
3955 2014-07-24 Tom Tromey <tromey@redhat.com>
3956
3957 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
3958 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
3959 (help_cmd_list): Constify.
3960 (lookup_cmd): Update.
3961 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
3962 const.
3963 (help_cmd_list, apropos_cmd): Update.
3964 * cli/cli-script.c (show_user): Update.
3965 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
3966 * cli/cli-setshow.h (cmd_show_list): Update.
3967 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
3968 (cmd_show_list): Update.
3969 * guile/scm-cmd.c (cmdscm_destroyer): Update.
3970 * python/py-cmd.c (cmdpy_destroyer): Update.
3971
3972 2014-07-24 Tom Tromey <tromey@redhat.com>
3973
3974 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
3975 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
3976 const.
3977 * command.h (deprecate_cmd): Update.
3978 * maint.c (maintenance_do_deprecate): Add casts.
3979
3980 2014-07-24 Tom Tromey <tromey@redhat.com>
3981
3982 * cli/cli-decode.c (help_cmd): Make parameter "const".
3983 * cli/cli-decode.h (help_cmd): Update.
3984
3985 2014-07-24 Tom Tromey <tromey@redhat.com>
3986
3987 * stack.c (up_silently_base, down_silently_base): Make argument
3988 const.
3989
3990 2014-07-24 Tom Tromey <tromey@redhat.com>
3991
3992 * solib.c (solib_add): Make "pattern" const.
3993 * solib.h (solib_add): Update.
3994
3995 2014-07-24 Tom Tromey <tromey@redhat.com>
3996
3997 * remote.c (remote_serial_open, print_packet, putpkt)
3998 (putpkt_binary): Constify.
3999 * remote.h (putpkt): Update.
4000
4001 2014-07-24 Tom Tromey <tromey@redhat.com>
4002
4003 * monitor.c (monitor_open): Make "args" const.
4004 * monitor.h (monitor_open): Update.
4005
4006 2014-07-24 Tom Tromey <tromey@redhat.com>
4007
4008 * maint.c (match_bfd_flags): Make "string" const.
4009 (print_bfd_section_info): Remove casts.
4010 (print_objfile_section_info): Make "string" const.
4011
4012 2014-07-24 Tom Tromey <tromey@redhat.com>
4013
4014 * inf-child.c (inf_child_open_target): Make "arg" const.
4015 * inf-child.h (inf_child_open_target): Update.
4016
4017 2014-07-24 Tom Tromey <tromey@redhat.com>
4018
4019 * environ.c (unset_in_environ): Make "var" const.
4020 * environ.h (unset_in_environ): Update.
4021
4022 2014-07-24 Tom Tromey <tromey@redhat.com>
4023
4024 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
4025 Make "cmd" const.
4026 (scan_filename_with_cleanup): Likewise.
4027 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
4028 Make arguments const.
4029 (restore_command): Update.
4030
4031 2014-07-24 Pedro Alves <palves@redhat.com>
4032
4033 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
4034
4035 2014-07-24 Tom Tromey <tromey@redhat.com>
4036 Gary Benson <gbenson@redhat.com>
4037
4038 * nat/linux-ptrace.c (additional_flags): New global.
4039 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
4040 additional_flags; don't check GDBSERVER.
4041 (linux_ptrace_set_additional_flags): New function.
4042 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
4043 Declare.
4044 * linux-nat.c (_initialize_linux_nat): Call
4045 linux_ptrace_set_additional_flags.
4046
4047 2014-07-24 Tom Tromey <tromey@redhat.com>
4048
4049 * make-target-delegates (munge_type, write_debugmethod): New
4050 functions.
4051 (debug_names): New global.
4052 ($TARGET_DEBUG_PRINTER): New global.
4053 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
4054 name.
4055 Write debug methods. Generate init_debug_target.
4056 * target-debug.h: New file.
4057 * target-delegates.c: Rebuild.
4058 * target.c: Include target-debug.h.
4059 (debug_target): Hoist definition.
4060 (target_kill, target_get_section_table, target_memory_map)
4061 (target_flash_erase, target_flash_done, target_detach)
4062 (target_disconnect, target_wait, target_resume)
4063 (target_pass_signals, target_program_signals, target_follow_fork)
4064 (target_mourn_inferior, target_search_memory)
4065 (target_thread_address_space, target_close)
4066 (target_find_new_threads, target_core_of_thread)
4067 (target_verify_memory, target_insert_mask_watchpoint)
4068 (target_remove_mask_watchpoint): Remove targetdebug code.
4069 (debug_to_post_attach, debug_to_prepare_to_store)
4070 (debug_to_files_info, debug_to_insert_breakpoint)
4071 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
4072 (debug_to_region_ok_for_hw_watchpoint)
4073 (debug_to_can_accel_watchpoint_condition)
4074 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
4075 (debug_to_watchpoint_addr_within_range)
4076 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
4077 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
4078 (debug_to_terminal_init, debug_to_terminal_inferior)
4079 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
4080 (debug_to_terminal_save_ours, debug_to_terminal_info)
4081 (debug_to_load, debug_to_post_startup_inferior)
4082 (debug_to_insert_fork_catchpoint)
4083 (debug_to_remove_fork_catchpoint)
4084 (debug_to_insert_vfork_catchpoint)
4085 (debug_to_remove_vfork_catchpoint)
4086 (debug_to_insert_exec_catchpoint)
4087 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
4088 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
4089 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
4090 (setup_target_debug): Call init_debug_target.
4091 * target.h (TARGET_DEBUG_PRINTER): New macro.
4092 (struct target_ops) <to_resume, to_wait, to_pass_signals,
4093 to_program_signals>: Use TARGET_DEBUG_PRINTER.
4094
4095 2014-07-24 Gary Benson <gbenson@redhat.com>
4096
4097 * exceptions.h (throw_vfatal): Renamed to...
4098 (throw_vquit): New declaration.
4099 (throw_quit): Likewise.
4100 * exceptions.c (throw_vfatal): Renamed to...
4101 (throw_vquit): New function.
4102 (throw_quit): Likewise.
4103 (throw_error): Call throw_verror rather than throw_it.
4104 * utils.h (vfatal): Removed.
4105 (fatal): Likewise.
4106 * utils.c (vfatal): Removed.
4107 (fatal): Likewise.
4108 (internal_verror): Replaced call to fatal with call to throw_quit.
4109 (quit): Replaced calls to fatal with calls to throw_quit.
4110
4111 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
4112
4113 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
4114 target_read_code.
4115
4116 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
4117
4118 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
4119 less than zero in conditional expression.
4120
4121 2014-07-23 Tom Tromey <tromey@redhat.com>
4122
4123 * make-target-delegates ($ARGS_PART): Match trailing close paren.
4124 ($INTRO_PART): Don't match whitespace.
4125 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
4126 argument matching.
4127 ($METHOD): Add $METHOD_TRAILER.
4128 (trim): Rewrite.
4129 (scan_target_h): New sub.
4130 Change main loop not to collect state.
4131 * target-delegates.c: Rebuild.
4132
4133 2014-07-23 Gary Benson <gbenson@redhat.com>
4134
4135 * cp-support.c (gdb_demangle): Fix build on systems without
4136 sigaltstack.
4137
4138 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4139
4140 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
4141 for reference entry value target data value.
4142
4143 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4144
4145 * stack.c (read_frame_arg): Verify value_optimized_out before calling
4146 value_available_contents_eq.
4147
4148 2014-07-22 Pedro Alves <palves@redhat.com>
4149
4150 * value.c (allocate_optimized_out_value): Don't mark value as
4151 non-lazy.
4152
4153 2014-07-22 Jiong Wang <jiong.wang@arm.com>
4154
4155 * MAINTAINERS (Write After Approval): Update my email address.
4156
4157 2014-07-20 Doug Evans <dje@google.com>
4158
4159 PR server/17147
4160 * remote.c (putpkt_binary): Add text to error message.
4161
4162 2014-07-20 Yao Qi <yao@codesourcery.com>
4163
4164 * eval.c: Remove "Chill" from comments.
4165 * gdbtypes.h: Likewise.
4166 * symtab.h: Likewise.
4167
4168 2014-07-20 Yao Qi <yao@codesourcery.com>
4169
4170 * std-operator.def: Update comments to TERNOP_SLICE.
4171
4172 2014-07-20 Yao Qi <yao@codesourcery.com>
4173
4174 * std-operator.def: Remove BINOP_RANGE.
4175 * breakpoint.c (watchpoint_exp_is_const): Update.
4176 * expprint.c (dump_subexp_body_standard): Likewise.
4177 * eval.c (init_array_element): Remove dead code.
4178 (evaluate_subexp_standard): Likewise.
4179
4180 2014-07-20 Yao Qi <yao@codesourcery.com>
4181
4182 * std-operator.def: Remove BINOP_IN.
4183 * breakpoint.c (watchpoint_exp_is_const): Update.
4184 * eval.c (evaluate_subexp_standard): Likewise.
4185 * expprint.c (dump_subexp_body_standard): Likewise.
4186
4187 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
4188
4189 * microblaze-tdep.c (microblaze_register_names): Add
4190 the rshr and rslr register names.
4191 (microblaze_gdbarch_init): Use of tdesc_has_registers.
4192 Use of tdesc_find_feature. Use of tdesc_data_alloc.
4193 Use of tdesc_numbered_register. Use of
4194 microblaze_register_g_packet_guesses. Use of
4195 tdesc_use_registers. Use of set_gdbarch_register_type.
4196 (microblaze_register_g_packet_guesses): New.
4197 * microblaze-tdep.h (microblaze_reg_num): Add
4198 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
4199 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
4200 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
4201 * features/microblaze-core.xml: New file.
4202 * features/microblaze-stack-protect.xml: New file.
4203 * features/microblaze-with-stack-protect.c: New file.
4204 * features/microblaze-with-stack-protect.xml: New file.
4205 * features/microblaze.xml: New file.
4206 * features/microblaze.c: New file.
4207 * features/Makefile (microblaze-with-stack-protect): Add
4208 microblaze-with-stack-protect microblaze and microblaze-expedite.
4209 * regformats/microblaze-with-stack-protect.dat: New file.
4210 * regformats/microblaze.dat: New file.
4211 * doc/gdb.texinfo (MicroBlaze Features): Added.
4212
4213 2014-07-18 Tom Tromey <tromey@redhat.com>
4214
4215 * exec.c (exec_ops): Now static.
4216 * exec.h (exec_ops): Don't declare.
4217
4218 2014-07-18 Tom Tromey <tromey@redhat.com>
4219
4220 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
4221 to find_target_beneath.
4222 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
4223 find_target_beneath.
4224 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
4225
4226 2014-07-18 Tom Tromey <tromey@redhat.com>
4227
4228 PR gdb/17130:
4229 * utils.c (quit): Use target_supports_terminal_ours.
4230 * target.h (target_supports_terminal_ours): Declare.
4231 * target.c (target_supports_delete_record): Don't check
4232 to_delete_record against NULL.
4233 (target_supports_terminal_ours): New function.
4234
4235 2014-07-18 Tom Tromey <tromey@redhat.com>
4236
4237 PR gdb/17130:
4238 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
4239 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
4240 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
4241 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
4242 * windows-nat.c (windows_xfer_partial): Always delegate.
4243 * record-btrace.c (record_btrace_xfer_partial): Simplify
4244 delegation.
4245 (record_btrace_fetch_registers, record_btrace_store_registers)
4246 (record_btrace_prepare_to_store, record_btrace_resume)
4247 (record_btrace_wait, record_btrace_find_new_threads)
4248 (record_btrace_thread_alive): Likewise.
4249 * procfs.c (procfs_xfer_partial): Always delegate.
4250 * corelow.c (core_xfer_partial): Always delegate.
4251 * sol-thread.c (sol_find_new_threads): Simplify delegation.
4252
4253 2014-07-18 Tom Tromey <tromey@redhat.com>
4254
4255 * exec.c (exec_make_note_section): Move earlier.
4256
4257 2014-07-17 Doug Evans <dje@google.com>
4258
4259 PR gdb/17170
4260 * maint.c (count_symtabs_and_blocks): Handle NULL
4261 current_program_space.
4262 (report_command_stats): Check global enabled flag in addition to
4263 recorded enabled flag.
4264 (make_command_stats_cleanup): Handle msg_type == 0, startup.
4265
4266 2014-07-16 Pedro Alves <palves@redhat.com>
4267
4268 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
4269
4270 2014-07-16 Tom Tromey <tromey@redhat.com>
4271
4272 * target.h (struct target_ops) <to_delete_record>: Reformat
4273 comment.
4274
4275 2014-07-16 Tom Tromey <tromey@redhat.com>
4276
4277 * target-delegates.c: Rebuild.
4278
4279 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
4280
4281 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
4282 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
4283 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
4284 (avr_pointer_to_address): Likewise.
4285 (avr_address_class_type_flags): New function.
4286 (avr_address_class_type_flags_to_name): Likewise.
4287 (avr_address_class_name_to_type_flags): Likewise.
4288 (avr_gdbarch_init): Set address_class_type_flags,
4289 address_class_type_flags_to_name and
4290 address_class_name_to_type_flags.
4291
4292 2014-07-15 Pedro Alves <palves@redhat.com>
4293
4294 * linux-nat.c (kill_callback): Save errno and work with saved
4295 copy.
4296
4297 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
4298
4299 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
4300
4301 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4302
4303 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
4304 breakpoint support correctly.
4305
4306 2014-07-14 Pedro Alves <palves@redhat.com>
4307
4308 * utils.c (prompt_for_continue): Call target_terminal_ours.
4309
4310 2014-07-14 Pedro Alves <palves@redhat.com>
4311
4312 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
4313 catch_errors. Don't re-enable stdin or notify observers where,
4314 and rethrow error.
4315 (fetch_inferior_event_wrapper): Delete.
4316
4317 2014-07-14 Pedro Alves <palves@redhat.com>
4318
4319 PR gdb/17072
4320 * top.c: Include "inf-loop.h".
4321 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
4322 field.
4323 (gdb_readline_wrapper_cleanup): Make the target async again, if it
4324 was async before.
4325 (gdb_readline_wrapper): Store whether the target is async, and
4326 make it sync.
4327
4328 2014-07-14 Pedro Alves <palves@redhat.com>
4329
4330 PR gdb/17072
4331 * top.c (gdb_readline_wrapper_line): Tweak comment.
4332 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
4333 the input handler callback.
4334
4335 2014-07-14 Pedro Alves <palves@redhat.com>
4336
4337 PR gdb/17072
4338 * main.c: Include event-top.h.
4339 (handle_command_errors): New function.
4340 (catch_command_errors, catch_command_errors_const): Use it.
4341
4342 2014-07-14 Pedro Alves <palves@redhat.com>
4343
4344 * exceptions.c (catch_command_errors, catch_command_errors_const):
4345 Moved to main.c.
4346 * exceptions.h (catch_command_errors_ftype)
4347 (catch_command_errors_const_ftype): Moved to main.c.
4348 (catch_command_errors, catch_command_errors_const): Delete
4349 declarations.
4350 * main.c (catch_command_errors_ftype)
4351 (catch_command_errors_const_ftype): Moved here from exceptions.h.
4352 (catch_command_errors, catch_command_errors_const)): Moved here
4353 from exceptions.c and make static.
4354
4355 2014-07-14 Pedro Alves <palves@redhat.com>
4356
4357 * exceptions.c (print_any_exception): Delete.
4358 (catch_exceptions_with_msg): Use exception_print instead of
4359 print_any_exception.
4360 (catch_errors): Use exception_fprintf instead of
4361 print_any_exception.
4362 (catch_command_errors, catch_command_errors_const): Use
4363 exception_print instead of print_any_exception.
4364
4365 2014-07-14 Pedro Alves <palves@redhat.com>
4366
4367 * infcall.c (run_inferior_call): Set 'sync_execution' while
4368 running the inferior call.
4369
4370 2014-07-14 Pedro Alves <palves@redhat.com>
4371
4372 * value.c (value_contents_equal): Delete function.
4373 * value.h (value_contents_equal): Delete declaration.
4374
4375 2014-07-14 Tom Tromey <tromey@redhat.com>
4376
4377 PR exp/17106:
4378 * gdbtypes.c (is_dynamic_type_internal): New function, from
4379 is_dynamic_type.
4380 (is_dynamic_type): Rewrite.
4381 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
4382 (resolve_dynamic_struct): Likewise.
4383 (resolve_dynamic_type_internal): New function, from
4384 resolve_dynamic_type.
4385 (resolve_dynamic_type): Rewrite.
4386
4387 2014-07-14 Tom Tromey <tromey@redhat.com>
4388
4389 * target.c (target_require_runnable): Also check record_stratum.
4390 Update comment.
4391
4392 2014-07-11 Yao Qi <yao@codesourcery.com>
4393
4394 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
4395 thumb_instruction_restores_sp return true.
4396
4397 2014-07-11 Yao Qi <yao@codesourcery.com>
4398
4399 * arm-tdep.c (thumb_instruction_restores_sp): New function.
4400 (thumb_in_function_epilogue_p): Call
4401 thumb_instruction_restores_sp.
4402
4403 2014-07-11 Yao Qi <yao@codesourcery.com>
4404
4405 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
4406 'add sp, #imm'.
4407 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
4408
4409 2014-07-11 Gary Benson <gbenson@redhat.com>
4410
4411 * amd64-linux-nat.c (gdbcore.h): Remove include.
4412 (regset.h): Likewise.
4413 (nat/linux-btrace.h): Likewise.
4414 (btrace.h): Likewise.
4415 (gdb_assert.h): Likewise.
4416 (string.h): Likewise.
4417 (sys/uio.h): Likewise.
4418 (sys/debugreg.h): Likewise.
4419 (sys/syscall.h): Likewise.
4420 (sys/procfs.h): Likewise.
4421 (sys/user.h): Likewise.
4422 (asm/ptrace.h): Likewise.
4423 (i386-nat.h): Likewise.
4424 * i386-linux-nat.c (i386-nat.h): Likewise.
4425 (regset.h): Likewise.
4426 (target.h): Likewise.
4427 (linux-nat.h): Likewise.
4428 (nat/linux-btrace.h): Likewise.
4429 (btrace.h): Likewise.
4430 (gdb_assert.h): Likewise.
4431 (string.h): Likewise.
4432 (sys/uio.h): Likewise.
4433 (sys/user.h): Likewise.
4434 (sys/procfs.h): Likewise.
4435 (sys/reg.h): Likewise.
4436 (sys/debugreg.h): Likewise.
4437 (ORIG_EAX): Remove definition.
4438
4439 2014-07-11 Gary Benson <gbenson@redhat.com>
4440
4441 * i386-linux-nat.h: New file.
4442 * x86-linux-nat.h: Likewise.
4443 * x86-linux-nat.c: Likewise.
4444 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
4445 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
4446 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4447 * amd64-linux-nat.c (x86-linux-nat.h): New include.
4448 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
4449 (PTRACE_SETREGSET): Likewise.
4450 (arch_lwp_info): Now in x86-linux-nat.c.
4451 (have_ptrace_getregset): Now in x86-linux-nat.h.
4452 (x86_linux_dr_get): Now in x86-linux-nat.c.
4453 (x86_linux_dr_set): Likewise.
4454 (x86_linux_dr_get_addr): Likewise.
4455 (x86_linux_dr_get_control): Likewise.
4456 (x86_linux_dr_get_status): Likewise.
4457 (update_debug_registers_callback): Likewise.
4458 (x86_linux_dr_set_control): Likewise.
4459 (x86_linux_dr_set_addr): Likewise.
4460 (x86_linux_prepare_to_resume): Likewise.
4461 (x86_linux_new_thread): Likewise.
4462 (x86_linux_new_fork): Likewise.
4463 (x86_linux_get_thread_area): Likewise.
4464 (super_post_startup_inferior): Likewise.
4465 (x86_linux_child_post_startup_inferior): Likewise.
4466 (AMD64_LINUX_USER64_CS): Likewise.
4467 (AMD64_LINUX_X32_DS): Likewise.
4468 (x86_linux_read_description): Likewise.
4469 (x86_linux_enable_btrace): Likewise.
4470 (x86_linux_disable_btrace): Likewise.
4471 (x86_linux_teardown_btrace): Likewise.
4472 (x86_linux_read_btrace): Likewise.
4473 (x86_linux_create_target): Likewise.
4474 (x86_linux_add_target): Likewise.
4475 * i386-linux-nat.c (x86-linux-nat.h): New include.
4476 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
4477 (PTRACE_SETREGSET): Likewise.
4478 (arch_lwp_info): Now in x86-linux-nat.c.
4479 (have_ptrace_getregset): Now in x86-linux-nat.h.
4480 (x86_linux_dr_get): Now in x86-linux-nat.c.
4481 (x86_linux_dr_set): Likewise.
4482 (x86_linux_dr_get_addr): Likewise.
4483 (x86_linux_dr_get_control): Likewise.
4484 (x86_linux_dr_get_status): Likewise.
4485 (update_debug_registers_callback): Likewise.
4486 (x86_linux_dr_set_control): Likewise.
4487 (x86_linux_dr_set_addr): Likewise.
4488 (x86_linux_prepare_to_resume): Likewise.
4489 (x86_linux_new_thread): Likewise.
4490 (x86_linux_new_fork): Likewise.
4491 (x86_linux_get_thread_area): Likewise.
4492 (super_post_startup_inferior): Likewise.
4493 (x86_linux_child_post_startup_inferior): Likewise.
4494 (AMD64_LINUX_USER64_CS): Likewise.
4495 (AMD64_LINUX_X32_DS): Likewise.
4496 (x86_linux_read_description): Likewise.
4497 (x86_linux_enable_btrace): Likewise.
4498 (x86_linux_disable_btrace): Likewise.
4499 (x86_linux_teardown_btrace): Likewise.
4500 (x86_linux_read_btrace): Likewise.
4501 (x86_linux_create_target): Likewise.
4502 (x86_linux_add_target): Likewise.
4503
4504 2014-07-11 Gary Benson <gbenson@redhat.com>
4505
4506 * amd64-linux-nat.c: Comment and whitespace changes.
4507 * i386-linux-nat.c: Comment and whitespace changes.
4508
4509 2014-07-11 Gary Benson <gbenson@redhat.com>
4510
4511 * amd64-linux-nat.c (x86_linux_create_target): New function.
4512 (x86_linux_add_target): Likewise.
4513 (_initialize_amd64_linux_nat): Delegate to the above new functions.
4514 * i386-linux-nat.c (x86_linux_create_target): New function.
4515 (x86_linux_add_target): Likewise.
4516 (_initialize_i386_linux_nat): Delegate to the above new functions.
4517
4518 2014-07-11 Gary Benson <gbenson@redhat.com>
4519
4520 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
4521 (ps_get_thread_area): Delegate to the above in 32-bit mode.
4522 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
4523 (ps_get_thread_area): Delegate to the above.
4524
4525 2014-07-11 Gary Benson <gbenson@redhat.com>
4526
4527 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
4528 x86_linux_read_description. All uses updated. amd64-specific
4529 code conditionalized. Conditionalized i386-specific code added.
4530 Redundant cast removed.
4531 * i386-linux-nat.c (i386_linux_read_description): Renamed to
4532 x86_linux_read_description. All uses updated. i386-specific
4533 code conditionalized. Conditionalized amd64-specific code added.
4534 One sizeof replaced with the actual type it is describing.
4535
4536 2014-07-11 Gary Benson <gbenson@redhat.com>
4537
4538 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
4539 x86_linux_dr_get. All uses updated.
4540 (amd64_linux_dr_set): Renamed to
4541 x86_linux_dr_set. All uses updated.
4542 (amd64_linux_dr_get_addr): Renamed to
4543 x86_linux_dr_get_addr. All uses updated.
4544 (amd64_linux_dr_get_control): Renamed to
4545 x86_linux_dr_get_control. All uses updated.
4546 (amd64_linux_dr_get_status): Renamed to
4547 x86_linux_dr_get_status. All uses updated.
4548 (amd64_linux_dr_set_control): Renamed to
4549 x86_linux_dr_set_control. All uses updated.
4550 (amd64_linux_dr_set_addr): Renamed to
4551 x86_linux_dr_set_addr. All uses updated.
4552 (amd64_linux_prepare_to_resume): Renamed to
4553 x86_linux_prepare_to_resume. All uses updated.
4554 (amd64_linux_new_thread): Renamed to
4555 x86_linux_new_thread. All uses updated.
4556 (amd64_linux_new_fork): Renamed to
4557 x86_linux_new_fork. All uses updated.
4558 (amd64_linux_child_post_startup_inferior): Renamed to
4559 x86_linux_child_post_startup_inferior. All uses updated.
4560 (amd64_linux_enable_btrace): Renamed to
4561 x86_linux_enable_btrace. All uses updated.
4562 (amd64_linux_disable_btrace): Renamed to
4563 x86_linux_disable_btrace. All uses updated.
4564 (amd64_linux_teardown_btrace): Renamed to
4565 x86_linux_teardown_btrace. All uses updated.
4566 (amd64_linux_read_btrace): Renamed to
4567 x86_linux_read_btrace. All uses updated.
4568 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
4569 x86_linux_dr_get. All uses updated.
4570 (i386_linux_dr_set): Renamed to
4571 x86_linux_dr_set. All uses updated.
4572 (i386_linux_dr_get_addr): Renamed to
4573 x86_linux_dr_get_addr. All uses updated.
4574 (i386_linux_dr_get_control): Renamed to
4575 x86_linux_dr_get_control. All uses updated.
4576 (i386_linux_dr_get_status): Renamed to
4577 x86_linux_dr_get_status. All uses updated.
4578 (i386_linux_dr_set_control): Renamed to
4579 x86_linux_dr_set_control. All uses updated.
4580 (i386_linux_dr_set_addr): Renamed to
4581 x86_linux_dr_set_addr. All uses updated.
4582 (i386_linux_prepare_to_resume): Renamed to
4583 x86_linux_prepare_to_resume. All uses updated.
4584 (i386_linux_new_thread): Renamed to
4585 x86_linux_new_thread. All uses updated.
4586 (i386_linux_new_fork): Renamed to
4587 x86_linux_new_fork. All uses updated.
4588 (i386_linux_child_post_startup_inferior): Renamed to
4589 x86_linux_child_post_startup_inferior. All uses updated.
4590 (i386_linux_enable_btrace): Renamed to
4591 x86_linux_enable_btrace. All uses updated.
4592 (i386_linux_disable_btrace): Renamed to
4593 x86_linux_disable_btrace. All uses updated.
4594 (i386_linux_teardown_btrace): Renamed to
4595 x86_linux_teardown_btrace. All uses updated.
4596 (i386_linux_read_btrace): Renamed to
4597 x86_linux_read_btrace. All uses updated.
4598
4599 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
4600
4601 * remote.c (extended_remote_post_attach): New function.
4602 (init_extended_remote_ops): Install it as to_post_attach method.
4603
4604 2014-07-09 Pedro Alves <palves@redhat.com>
4605
4606 * infcmd.c (attach_command_post_wait): Don't call
4607 target_terminal_inferior here.
4608 (attach_command): Call it here instead.
4609
4610 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4611
4612 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
4613 field.
4614 * c-varobj.c (c_is_path_expr_parent): New function, moved core
4615 from varobj.c, with additional checks.
4616 (c_varobj_ops): Fill in is_path_expr_parent field.
4617 (cplus_varobj_ops): Fill in is_path_expr_parent field.
4618 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
4619 field.
4620 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
4621 ops method.
4622 (varobj_default_is_path_expr_parent): New function.
4623 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
4624 (varobj_default_is_path_expr_parent): Declare new function.
4625
4626 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
4627
4628 * infcmd.c (finish_backward): Turn internal error into normal error.
4629
4630 2014-07-07 Pedro Alves <palves@redhat.com>
4631
4632 PR gdb/17096
4633 * remote.c (async_handle_remote_sigint)
4634 (async_handle_remote_sigint_twice): Call
4635 gdb_call_async_signal_handler instead of
4636 mark_async_signal_handler.
4637
4638 2014-07-07 Tom Tromey <tromey@redhat.com>
4639
4640 * target-delegates.c: Rebuild.
4641 * target.c (target_info_record): Remove.
4642 * record.c (info_record_command): Unconditionally call
4643 to_info_record.
4644 * target.h (struct target_ops) <to_info_record>: Use
4645 TARGET_DEFAULT_IGNORE.
4646 (target_info_record): Remove.
4647
4648 2014-07-07 Tom Tromey <tromey@redhat.com>
4649
4650 * target.h (struct target_ops) <to_get_thread_local_address>: Use
4651 TARGET_DEFAULT_NORETURN.
4652 * target.c (generic_tls_error): New function.
4653 (target_translate_tls_address): Don't search target stack.
4654 * target-delegates.c: Rebuild.
4655 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
4656 stack.
4657 * linux-thread-db.c (thread_db_get_thread_local_address):
4658 Unconditionally call beneath target.
4659
4660 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
4661
4662 * cli/cli-logging.c (pop_output_files): Assign targerr to
4663 gdb_stdtargerr.
4664
4665 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
4666
4667 * MAINTAINERS (Write After Approval): Update my email address.
4668
4669 2014-07-02 Gary Benson <gbenson@redhat.com>
4670
4671 * proc-service.c (ps_xfer_memory): Update comment.
4672 (ps_pstop): Remove unused function.
4673 (ps_pcontinue): Likewise.
4674 (ps_lstop): Likewise.
4675 (ps_lcontinue): Likewise.
4676 (ps_lgetxregsize): Likewise.
4677 (ps_lgetxregs): Likewise.
4678 (ps_lsetxregs): Likewise.
4679 (ps_plog): Likewise.
4680 (ps_ptread): Likewise.
4681 (ps_ptwrite): Likewise.
4682
4683 2014-07-01 Mark Wielaard <mjw@redhat.com>
4684
4685 * dwarf2read.c (add_array_cv_type): New function.
4686 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
4687 (read_tag_volatile_type): Likewise.
4688
4689 2014-07-01 Tom Tromey <tromey@redhat.com>
4690
4691 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
4692 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
4693 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
4694 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
4695 * command.h (cmd_cfunc_ftype): Move earlier.
4696 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
4697 (add_com, add_info): Use cmd_cfunc_ftype.
4698
4699 2014-06-30 Tom Tromey <tromey@redhat.com>
4700
4701 * symtab.c (operator_chars): Make parameters and return type
4702 const.
4703 (file_matches): Make "files" const.
4704 (struct search_symbols_data) <files>: Now const.
4705 (search_symbols): Make "regexp" and "files" parameters const.
4706 Update.
4707 (symtab_symbol_info): Remove cast.
4708 (rbreak_command): Update.
4709 * symtab.h (search_symbols): Update.
4710
4711 2014-06-27 Yao Qi <yao@codesourcery.com>
4712
4713 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
4714 Change parameter type to 'struct thread_info *'. Caller
4715 updated.
4716 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
4717 Update declaration.
4718 * dummy-frame.c (struct dummy_frame_id): New.
4719 (dummy_frame_id_eq): New function.
4720 (struct dummy_frame) <id>: Change its type to 'struct
4721 dummy_frame_id'.
4722 (dummy_frame_push): Add parameter ptid and save it in
4723 dummy_frame_id.
4724 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
4725 inferior_ptid.
4726 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
4727 to inferior_ptid.
4728 (lookup_dummy_frame): Change parameter type to 'struct
4729 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
4730 instead of frame_id_eq.
4731 (dummy_frame_pop): Add parameter ptid. Callers updated.
4732 Update comments. Compose dummy_frame_id and pass it to
4733 lookup_dummy_frame.
4734 (dummy_frame_discard): Add parameter ptid.
4735 (dummy_frame_sniffer): Compose dummy_frame_id and call
4736 dummy_frame_id_eq instead of frame_id_eq.
4737 (fprint_dummy_frames): Print ptid.
4738 * dummy-frame.h: Remove comments.
4739 (dummy_frame_push): Add ptid in declaration.
4740 (dummy_frame_pop, dummy_frame_discard): Likewise.
4741
4742 2014-06-26 Tom Tromey <tromey@redhat.com>
4743
4744 * cli/cli-cmds.c (error_no_arg): Make "why" const.
4745 * command.h (error_no_arg): Update.
4746
4747 2014-06-26 Tom Tromey <tromey@redhat.com>
4748
4749 * cli/cli-setshow.c (do_set_command): Make "arg" const.
4750 (do_show_command): Make "arg" const.
4751 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
4752
4753 2014-06-26 Tom Tromey <tromey@redhat.com>
4754
4755 * record-full.c (record_full_get_bookmark): Make "args" const.
4756 (record_full_goto_bookmark): Make "raw_bookmark" const.
4757 * record.c (record_goto): New function.
4758 (cmd_record_goto): Use it. Now static.
4759 * record.h (record_goto): Declare.
4760 (cmd_record_goto): Remove declaration.
4761 * target-delegates.c: Rebuild.
4762 * target.h (struct target_ops) <to_get_bookmark,
4763 to_goto_bookmark>: Make parameter const.
4764
4765 2014-06-26 Tom Tromey <tromey@redhat.com>
4766
4767 * defs.h (generic_load): Update.
4768 * m32r-rom.c (m32r_load_gen): Make "filename" const.
4769 * monitor.c (monitor_load): Make "args" const.
4770 * remote-m32r-sdi.c (m32r_load): Make "args" const.
4771 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
4772 const.
4773 (mips_load): Make "file" const.
4774 * remote-sim.c (gdbsim_load): Make "args" const.
4775 * remote.c (remote_load): Make "name" const.
4776 * symfile.c (generic_load): Make "args" const.
4777 * target-delegates.c: Rebuild.
4778 * target.c (target_load): Make "arg" const.
4779 (debug_to_load): Make "args" const.
4780 * target.h (struct target_ops) <to_load>: Make parameter const.
4781 (target_load): Update.
4782
4783 2014-06-26 Tom Tromey <tromey@redhat.com>
4784
4785 PR symtab/16902:
4786 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
4787 (dwarf2_physname, read_partial_die)
4788 (guess_partial_die_structure_name, fixup_partial_die)
4789 (guess_full_die_structure_name, anonymous_struct_prefix)
4790 (dwarf2_name): Use per-BFD obstack.
4791
4792 2014-06-26 Yao Qi <yao@codesourcery.com>
4793
4794 * dummy-frame.c (dummy_frame_sniffer): Move local variables
4795 dummyframe and this_id into inner block below.
4796
4797 2014-06-26 Yao Qi <yao@codesourcery.com>
4798
4799 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
4800 with "signal_pass[0]" in the initialization of signal_pass.
4801
4802 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4803
4804 * record-btrace.c (record_btrace_generating_corefile)
4805 (record_btrace_prepare_to_generate_core)
4806 (record_btrace_done_generating_core): New.
4807 (record_btrace_xfer_partial, record_btrace_fetch_registers)
4808 (record_btrace_store_registers, record_btrace_prepare_to_store):
4809 Forward request when generating a core file.
4810 (record_btrace_open): Set record_btrace_generating_corefile to zero.
4811 (init_record_btrace_ops): Set to_prepare_to_generate_core and
4812 to_done_generating_core.
4813
4814 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4815
4816 * target.h (target_ops) <to_prepare_to_generate_core>
4817 <to_done_generating_core>: New.
4818 (target_prepare_to_generate_core, target_done_generating_core): New.
4819 * target.c (target_prepare_to_generate_core)
4820 (target_done_generating_core): New.
4821 * target-delegates.c: Regenerate.
4822 * gcore.c: (write_gcore_file): Rename to ...
4823 (write_gcore_file_1): ...this.
4824 (write_gcore_file): Call target_prepare_to_generate_core
4825 and target_done_generating_core.
4826
4827 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4828
4829 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
4830 * gcore.c (write_gcore_file): Free memory returned from
4831 make_corefile_notes.
4832 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
4833 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
4834
4835 2014-06-24 Yao Qi <yao@codesourcery.com>
4836
4837 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
4838 (arm_linux_init_abi): Set skip_trampoline_code with
4839 gdbarch_skip_trampoline_code instead of
4840 find_solib_trampoline_target.
4841
4842 2014-06-24 Yao Qi <yao@codesourcery.com>
4843
4844 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
4845 arm_skip_bx_reg returns non-zero.
4846
4847 2014-06-24 Yao Qi <yao@codesourcery.com>
4848
4849 * arm-tdep.c (arm_skip_bx_reg): New function.
4850 (arm_skip_stub): Call arm_skip_bx_reg.
4851
4852 2014-06-23 Don Breazeal <donb@codesourcery.com>
4853
4854 * MAINTAINERS: Add myself as write-after-approval maintainer.
4855
4856 2014-06-23 Pedro Alves <palves@redhat.com>
4857
4858 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
4859 DR_CONTROL before setting DR0..DR3.
4860 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
4861 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
4862 bits of DR_CONTROL related to the debug register slot being
4863 disabled. If all slots are vacant, clear local slowdown as well,
4864 and assert DR_CONTROL is 0.
4865
4866 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
4867
4868 * python/lib/gdb/command/xmethods.py
4869 (get_method_matchers_in_loci): Lookup xmethod matchers in the
4870 current progspace only if the string "progspace" matches LOCUS_RE.
4871
4872 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4873
4874 Fix --with-system-readline with readline-6.3 patch 5.
4875 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
4876 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
4877 types.
4878
4879 2014-06-20 Tom Tromey <tromey@redhat.com>
4880
4881 * dwarf2read.c (dw2_get_real_path): Use correct type in
4882 OBSTACK_CALLOC.
4883 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
4884
4885 2014-06-20 Gary Benson <gbenson@redhat.com>
4886
4887 * common/gdb_thread_db.h: Moved to nat. All includes updated.
4888 * common/glibc_thread_db.h: Likewise.
4889 * common/i386-cpuid.h: Likewise.
4890 * common/i386-gcc-cpuid.h: Likewise.
4891 * common/linux-btrace.h: Likewise.
4892 * common/linux-osdata.h: Likewise.
4893 * common/linux-procfs.h: Likewise.
4894 * common/linux-ptrace.h: Likewise.
4895 * common/mips-linux-watch.h: Likewise.
4896 * common/linux-btrace.c: Moved to nat.
4897 * common/linux-osdata.c: Likewise.
4898 * common/linux-procfs.c: Likewise.
4899 * common/linux-ptrace.c: Likewise.
4900 * common/mips-linux-watch.c: Likewise.
4901 * nat/gdb_thread_db.h: Moved from common.
4902 * nat/glibc_thread_db.h: Likewise.
4903 * nat/i386-cpuid.h: Likewise.
4904 * nat/i386-gcc-cpuid.h: Likewise.
4905 * nat/linux-btrace.c: Likewise.
4906 * nat/linux-btrace.h: Likewise.
4907 * nat/linux-osdata.c: Likewise.
4908 * nat/linux-osdata.h: Likewise.
4909 * nat/linux-procfs.c: Likewise.
4910 * nat/linux-procfs.h: Likewise.
4911 * nat/linux-ptrace.c: Likewise.
4912 * nat/linux-ptrace.h: Likewise.
4913 * nat/mips-linux-watch.c: Likewise.
4914 * nat/mips-linux-watch.h: Likewise.
4915 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
4916 (object file files): Reordered.
4917 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
4918 of glibc_thread_db.h.
4919
4920 2014-06-20 Gary Benson <gbenson@redhat.com>
4921
4922 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
4923 (i386_dr_low_type): Moved to nat/i386-dregs.h.
4924 (i386_dr_low): Likewise.
4925 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
4926 (i386_dr_low_set_addr): Likewise.
4927 (i386_dr_low_get_addr): Likewise.
4928 (i386_dr_low_can_set_control): Likewise.
4929 (i386_dr_low_set_control): Likewise.
4930 (i386_dr_low_get_control): Likewise.
4931 (i386_dr_low_get_status): Likewise.
4932 (i386_get_debug_register_length): Likewise.
4933 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
4934 (i386_dr_low): Likewise.
4935 * nat/i386-dregs.c (i386-low.h): Remove include.
4936 (i386-nat.h): Likewise.
4937 (nat/i386-dregs.h): New include.
4938 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
4939 (i386_dr_low_set_addr): Likewise.
4940 (i386_dr_low_get_addr): Likewise.
4941 (i386_dr_low_can_set_control): Likewise.
4942 (i386_dr_low_set_control): Likewise.
4943 (i386_dr_low_get_control): Likewise.
4944 (i386_dr_low_get_status): Likewise.
4945 (i386_get_debug_register_length): Likewise.
4946 (debug_hw_points): Likewise.
4947
4948 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
4949
4950 * Makefile.in (SFILES): Add d-exp.y.
4951 (YYFILES): Add d-exp.c.
4952 (YYOBJ): Add d-exp.o.
4953 (local-maintainer-clean): Delete d-exp.c.
4954 * d-exp.y: New file.
4955 * d-lang.h (d_parse): New declaration.
4956 (d_error): New declaration.
4957 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
4958 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
4959 PREC_ORDER operators.
4960 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
4961
4962 2014-06-19 Yao Qi <yao@codesourcery.com>
4963
4964 * gdbthread.h (any_running): Remove the declaration.
4965 * thread.c (any_running): Remove.
4966
4967 2014-06-19 Yao Qi <yao@codesourcery.com>
4968
4969 * gdbthread.h (struct thread_info) <state>: Change its type to
4970 'enum thread_state'. Update comments.
4971
4972 2014-06-19 Pedro Alves <palves@redhat.com>
4973
4974 * gdbthread.h (ALL_THREADS): Delete.
4975 (ALL_NON_EXITED_THREADS): New macro.
4976 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
4977 instead of ALL_THREADS.
4978 * infrun.c (find_thread_needs_step_over)
4979 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
4980 instead of ALL_THREADS.
4981 * record-btrace.c (record_btrace_open)
4982 (record_btrace_stop_recording, record_btrace_close)
4983 (record_btrace_is_replaying, record_btrace_resume)
4984 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
4985 * remote.c (append_pending_thread_resumptions): Likewise.
4986 * thread.c (thread_apply_all_command): Likewise.
4987
4988 2014-06-19 Gary Benson <gbenson@redhat.com>
4989
4990 * i386-nat.c (i386_stopped_by_watchpoint):
4991 Use i386_dr_stopped_by_watchpoint.
4992 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
4993 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
4994
4995 2014-06-19 Gary Benson <gbenson@redhat.com>
4996
4997 * nat/i386-dregs.c: New file.
4998 * Makefile.in (i386-dregs.o): New rule.
4999 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
5000 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
5001 * config/i386/darwin.mh (NATDEPFILES): Likewise.
5002 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
5003 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
5004 * config/i386/go32.mh (NATDEPFILES): Likewise.
5005 * config/i386/linux.mh (NATDEPFILES): Likewise.
5006 * config/i386/linux64.mh (NATDEPFILES): Likewise.
5007 * config/i386/mingw.mh (NATDEPFILES): Likewise.
5008 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
5009 * i386-nat.h (debug_hw_points): New declaration.
5010 * i386-nat.c (breakpoint.h): Remove include.
5011 (command.h): Likewise.
5012 (target.h): Likewise.
5013 (gdb_assert.h): Likewise.
5014 (debug_hw_points): Made nonstatic.
5015 (debug_printf): Now in i386-dregs.c.
5016 (TARGET_HAS_DR_LEN_8): Likewise.
5017 (DR_CONTROL_SHIFT): Likewise.
5018 (DR_CONTROL_SIZE): Likewise.
5019 (DR_RW_EXECUTE): Likewise.
5020 (DR_RW_WRITE): Likewise.
5021 (DR_RW_READ): Likewise.
5022 (DR_RW_IORW): Likewise.
5023 (DR_LEN_1): Likewise.
5024 (DR_LEN_2): Likewise.
5025 (DR_LEN_4): Likewise.
5026 (DR_LEN_8): Likewise.
5027 (DR_LOCAL_ENABLE_SHIFT): Likewise.
5028 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
5029 (DR_ENABLE_SIZE): Likewise.
5030 (DR_LOCAL_SLOWDOWN): Likewise.
5031 (DR_GLOBAL_SLOWDOWN): Likewise.
5032 (DR_CONTROL_RESERVED): Likewise.
5033 (I386_DR_CONTROL_MASK): Likewise.
5034 (I386_DR_VACANT): Likewise.
5035 (I386_DR_LOCAL_ENABLE): Likewise.
5036 (I386_DR_GLOBAL_ENABLE): Likewise.
5037 (I386_DR_DISABLE): Likewise.
5038 (I386_DR_SET_RW_LEN): Likewise.
5039 (I386_DR_GET_RW_LEN): Likewise.
5040 (I386_DR_WATCH_HIT): Likewise.
5041 (i386_wp_op_t): Likewise.
5042 (i386_show_dr): Likewise.
5043 (i386_length_and_rw_bits): Likewise.
5044 (i386_insert_aligned_watchpoint): Likewise.
5045 (i386_remove_aligned_watchpoint): Likewise.
5046 (i386_handle_nonaligned_watchpoint): Likewise.
5047 (i386_update_inferior_debug_regs): Likewise.
5048 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
5049 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
5050 (i386_region_ok_for_watchpoint):
5051 Use i386_dr_region_ok_for_watchpoint.
5052 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
5053
5054 2014-06-19 Gary Benson <gbenson@redhat.com>
5055
5056 * i386-nat.c (i386_insert_hw_breakpoint): Use
5057 i386_insert_watchpoint.
5058 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
5059
5060 2014-06-19 Gary Benson <gbenson@redhat.com>
5061
5062 * i386-nat.c (i386_dr_show): Renamed to
5063 i386_show_dr and made static. All uses updated.
5064 (i386_dr_length_and_rw_bits): Renamed to
5065 i386_length_and_rw_bits and made static.
5066 All uses updated.
5067 (i386_dr_insert_aligned_watchpoint): Renamed to
5068 i386_insert_aligned_watchpoint and made static.
5069 All uses updated.
5070 (i386_dr_remove_aligned_watchpoint): Renamed to
5071 i386_remove_aligned_watchpoint and made static.
5072 All uses updated.
5073 (i386_dr_update_inferior_debug_regs): Renamed to
5074 i386_update_inferior_debug_regs and made static.
5075 All uses updated.
5076 * nat/i386-dregs.h (i386_dr_show): Removed.
5077 (i386_dr_length_and_rw_bits): Likewise.
5078 (i386_dr_insert_aligned_watchpoint): Likewise.
5079 (i386_dr_remove_aligned_watchpoint): Likewise.
5080 (i386_dr_update_inferior_debug_regs): Likewise.
5081
5082 2014-06-19 Gary Benson <gbenson@redhat.com>
5083
5084 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
5085 * configure: Regenerate.
5086 * config.in: Likewise.
5087 * main.c (signal.h): New include.
5088 (setup_alternate_signal_stack): New function.
5089 (captured_main): Call the above.
5090 * cp-support.c (signal.h): New include.
5091 (catch_demangler_crashes): New flag.
5092 (SIGJMP_BUF): New define.
5093 (SIGSETJMP): Likewise.
5094 (SIGLONGJMP): Likewise.
5095 (gdb_demangle_jmp_buf): New static global.
5096 (gdb_demangle_attempt_core_dump): Likewise.
5097 (gdb_demangle_signal_handler): New function.
5098 (gdb_demangle): If catch_demangler_crashes is set, install the
5099 above signal handler before calling bfd_demangle, and restore
5100 the original signal handler afterwards. Display the offending
5101 symbol and call demangler_warning the first time a segmentation
5102 fault is caught.
5103 (_initialize_cp_support): New maint set/show command.
5104
5105 2014-06-19 Gary Benson <gbenson@redhat.com>
5106
5107 * utils.h (resource_limit_kind): New enum.
5108 (can_dump_core): New declaration.
5109 (warn_cant_dump_core): Likewise.
5110 (dump_core): Likewise.
5111 * utils.c (dump_core): Made nonstatic. Added new
5112 parameter "limit_kind".
5113 (can_dump_core): Made nonstatic. Moved printing code to...
5114 (warn_cant_dump_core): New function.
5115 (can_dump_core_warn): Likewise.
5116 (internal_vproblem): Replace calls to can_dump_core with
5117 calls to can_dump_core_warn. Supply new argument to each.
5118
5119 2014-06-19 Gary Benson <gbenson@redhat.com>
5120
5121 * utils.h (demangler_vwarning): New declaration.
5122 (demangler_warning): Likewise.
5123 * utils.c (struct internal_problem)
5124 <user_settable_should_quit>: New field.
5125 <user_settable_should_dump_core>: Likewise
5126 (internal_error_problem): Add values for above new fields.
5127 (internal_warning_problem): Likewise.
5128 (demangler_warning_problem): New static global.
5129 (demangler_vwarning): New function.
5130 (demangler_warning): Likewise.
5131 (add_internal_problem_command): Selectively add commands.
5132 (_initialize_utils): New internal problem command.
5133 * maint.c (maintenance_demangler_warning): New function.
5134 (_initialize_maint_cmds): New command.
5135
5136 2014-06-18 Tom Tromey <tromey@redhat.com>
5137
5138 * f-valprint.c (info_common_command_for_block): Update.
5139 * symtab.h (struct general_symbol_info) <common_block>: Now
5140 const.
5141
5142 2014-06-18 Tom Tromey <tromey@redhat.com>
5143
5144 * symtab.h (struct symtab) <blockvector>: Now const.
5145 * ada-lang.c (ada_add_global_exceptions): Update.
5146 * buildsym.c (augment_type_symtab): Update.
5147 * dwarf2read.c (dw2_lookup_symbol): Update.
5148 * jit.c (finalize_symtab): Update.
5149 * jv-lang.c (add_class_symtab_symbol): Update.
5150 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
5151 Update.
5152 * objfiles.c (objfile_relocate1): Update.
5153 * psymtab.c (lookup_symbol_aux_psymtabs)
5154 (maintenance_check_psymtabs): Update.
5155 * python/py-symtab.c (stpy_global_block, stpy_static_block):
5156 Update.
5157 * spu-tdep.c (spu_catch_start): Update.
5158 * symmisc.c (dump_symtab_1): Update.
5159 * symtab.c (lookup_global_symbol_from_objfile)
5160 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
5161 (basic_lookup_transparent_type_quick)
5162 (basic_lookup_transparent_type, find_pc_sect_symtab)
5163 (find_pc_sect_line, search_symbols): Update.
5164 * block.c (find_block_in_blockvector): Make "bl" const.
5165 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
5166 const.
5167 (blockvector_contains_pc): Make "bv" const.
5168 (block_for_pc_sect): Update.
5169 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
5170 (blockvector_contains_pc): Update.
5171 * breakpoint.c (resolve_sal_pc): Update.
5172 * inline-frame.c (block_starting_point_at): Update.
5173
5174 2014-06-18 Tom Tromey <tromey@redhat.com>
5175
5176 * completer.c (complete_line): Make "line_buffer" const.
5177 * completer.h (complete_line): Update.
5178
5179 2014-06-18 Tom Tromey <tromey@redhat.com>
5180
5181 * symtab.c (add_macro_name): Remove unneeded cast.
5182
5183 2014-06-18 Tom Tromey <tromey@redhat.com>
5184
5185 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
5186 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
5187
5188 2014-06-18 Tom Tromey <tromey@redhat.com>
5189
5190 * probe.c (info_probes_for_ops): Make "arg" const.
5191 * probe.h (info_probes_for_ops): Update.
5192
5193 2014-06-18 Tom Tromey <tromey@redhat.com>
5194
5195 * varobj.c (varobj_create): Update.
5196 * valops.c (value_of_this): Update.
5197 * tracepoint.c (add_local_symbols, scope_info): Update.
5198 * symtab.h (struct general_symbol_info) <block>: Now const.
5199 * symtab.c (skip_prologue_sal)
5200 (default_make_symbol_completion_list_break_on)
5201 (skip_prologue_using_sal): Update.
5202 * stack.h (iterate_over_block_locals)
5203 (iterate_over_block_local_vars): Update.
5204 * stack.c (print_frame_args): Update.
5205 (iterate_over_block_locals, iterate_over_block_local_vars): Make
5206 parameter const.
5207 (get_selected_block): Make return type const.
5208 * python/py-frame.c (frapy_block): Update.
5209 * python/py-block.c (gdbpy_block_for_pc): Update.
5210 * p-exp.y (%union) <bval>: Now const.
5211 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
5212 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
5213 * m2-exp.y (%union) <bval>: Now const.
5214 * linespec.c (get_current_search_block): Make return type const.
5215 (create_sals_line_offset, find_label_symbols): Update.
5216 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
5217 Update.
5218 (block_starting_point_at): Make "block" const.
5219 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
5220 (check_exception_resume): Update.
5221 * guile/scm-frame.c (gdbscm_frame_block): Update.
5222 * guile/scm-block.c (gdbscm_lookup_block): Update.
5223 * frame.h (get_frame_block): Update.
5224 (get_selected_block): Make return type const.
5225 * frame.c (frame_id_inner): Update.
5226 * f-valprint.c (info_common_command_for_block)
5227 (info_common_command): Update.
5228 * dwarf2loc.c (dwarf2_find_location_expression)
5229 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
5230 (locexpr_describe_location_piece): Update.
5231 * c-exp.y (%union) <bval>: Now const.
5232 * breakpoint.c (resolve_sal_pc): Update.
5233 * blockframe.c (get_frame_block):Make return type const.
5234 (get_pc_function_start, get_frame_function, find_pc_sect_function)
5235 (block_innermost_frame): Update.
5236 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
5237 (block_for_pc, block_for_pc_sect): Update.
5238 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
5239 'pblock' const.
5240 (block_for_pc_sect, block_for_pc): Make return type const.
5241 * ax-gdb.c (gen_expr): Update.
5242 * alpha-mdebug-tdep.c (find_proc_desc): Update.
5243 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
5244 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
5245 (ada_read_var_value): Update.
5246 * ada-exp.y (struct name_info) <block>: Now const.
5247 (%union): Likewise.
5248 (block_lookup): Constify.
5249
5250 2014-06-18 Gary Benson <gbenson@redhat.com>
5251
5252 * nat/i386-dregs.h: New file.
5253 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
5254 * i386-nat.h (i386-dregs.h): New include.
5255 (DR_FIRSTADDR): Now in i386-dregs.h.
5256 (DR_LASTADDR): Likewise.
5257 (DR_NADDR): Likewise.
5258 (DR_STATUS): Likewise.
5259 (DR_CONTROL): Likewise.
5260 (i386_debug_reg_state): Likewise.
5261 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
5262
5263 2014-06-18 Don Breazeal <donb@codesourcery.com>
5264
5265 * breakpoint.c (set_longjmp_breakpoint): Call
5266 momentary_breakpoint_from_master with additional argument.
5267 (set_longjmp_breakpoint_for_call_dummy): Call
5268 momentary_breakpoint_from_master with additional argument.
5269 (set_std_terminate_breakpoint): Call
5270 momentary_breakpoint_from_master with additional argument.
5271 (momentary_breakpoint_from_master): Add argument to function
5272 definition and use it to initialize structure member flag.
5273 (clone_momentary_breakpoint): Call
5274 momentary_breakpoint_from_master with additional argument.
5275 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
5276 member flags set in momentary_breakpoint_from_master.
5277
5278 2014-06-18 Gary Benson <gbenson@redhat.com>
5279
5280 * i386-nat.c (i386_show_dr): Renamed to
5281 i386_dr_show and made nonstatic. All uses updated.
5282 (i386_length_and_rw_bits): Renamed to
5283 i386_dr_length_and_rw_bits and made nonstatic.
5284 All uses updated.
5285 (i386_insert_aligned_watchpoint): Renamed to
5286 i386_dr_insert_aligned_watchpoint and made nonstatic.
5287 All uses updated.
5288 (i386_remove_aligned_watchpoint): Renamed to
5289 i386_dr_remove_aligned_watchpoint and made nonstatic.
5290 All uses updated.
5291 (i386_update_inferior_debug_regs): Renamed to
5292 i386_dr_update_inferior_debug_regs and made nonstatic.
5293 All uses updated.
5294
5295 2014-06-18 Gary Benson <gbenson@redhat.com>
5296
5297 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
5298 (i386_dr_low_can_set_control): Likewise.
5299 (i386_dr_low_set_addr): Likewise.
5300 (i386_dr_low_set_control): Likewise.
5301 (i386_dr_low_get_addr): Likewise.
5302 (i386_dr_low_get_status): Likewise.
5303 (i386_dr_low_get_control): Likewise.
5304 (i386_insert_aligned_watchpoint): Use new macros.
5305 (i386_update_inferior_debug_regs): Likewise.
5306 (i386_stopped_data_address): Likewise.
5307
5308 2014-06-18 Gary Benson <gbenson@redhat.com>
5309
5310 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
5311 New parameter. All uses updated.
5312
5313 2014-06-18 Gary Benson <gbenson@redhat.com>
5314
5315 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
5316 All uses updated.
5317
5318 2014-06-18 Gary Benson <gbenson@redhat.com>
5319
5320 * i386-nat.c (debug_printf): New macro.
5321 (i386_get_debug_register_length): Likewise.
5322 (TARGET_HAS_DR_LEN_8): Use above macro.
5323 (i386_show_dr): Use debug_printf instead of puts_unfiltered
5324 and printf_unfiltered. Use phex to format values.
5325
5326 2014-06-18 Gary Benson <gbenson@redhat.com>
5327
5328 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
5329 Make const.
5330
5331 2014-06-18 Gary Benson <gbenson@redhat.com>
5332
5333 * i386-nat.c: Comment changes.
5334
5335 2014-06-18 Gary Benson <gbenson@redhat.com>
5336
5337 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
5338
5339 2014-06-18 Gary Benson <gbenson@redhat.com>
5340
5341 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
5342 (i386_insert_aligned_watchpoint): Likewise.
5343 (i386_remove_aligned_watchpoint): Likewise.
5344 (i386_handle_nonaligned_watchpoint): Likewise.
5345
5346 2014-06-18 Gary Benson <gbenson@redhat.com>
5347
5348 * i386-nat.c: Whitespace changes.
5349
5350 2014-06-17 Samuel Bronson <naesten@gmail.com>
5351
5352 * MAINTAINERS: Update Roland McGrath's email address.
5353 Thanks to Sergio Durigan Junior for pointing out that he left
5354 Red Hat a while ago, and giving me a current address.
5355
5356 2014-06-17 Tom Tromey <tromey@redhat.com>
5357
5358 * utils.h (savestring): Remove declaration.
5359
5360 2014-06-17 Tom Tromey <tromey@redhat.com>
5361
5362 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
5363
5364 2014-06-16 Keith Seitz <keiths@redhat.com>
5365
5366 PR mi/15863
5367 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
5368 to update the varobj if inferior_ptid is null_ptid.
5369
5370 2014-06-16 Tom Tromey <tromey@redhat.com>
5371
5372 * target.h (struct target_ops) <to_info_proc>: Make parameter
5373 const.
5374 (target_info_proc): Update.
5375 * target.c (target_info_proc): Make "args" const.
5376 * procfs.c (procfs_info_proc): Update.
5377 * linux-tdep.c (linux_info_proc): Update.
5378 (linux_core_info_proc_mappings): Make "args" const.
5379 (linux_core_info_proc): Update.
5380 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
5381 * gdbarch.c: Rebuild.
5382 * gdbarch.h: Rebuild.
5383 * corelow.c (core_info_proc): Update.
5384
5385 2014-06-16 Tom Tromey <tromey@redhat.com>
5386
5387 * target.h (struct target_ops) <to_disconnect>: Make parameter
5388 const.
5389 (target_disconnect): Update.
5390 * target.c (target_disconnect): Make "args" const.
5391 * target-delegates.c: Rebuild.
5392 * remote.c (remote_disconnect): Update.
5393 * record.h (record_disconnect): Update.
5394 * record.c (record_disconnect): Update.
5395 * inf-child.c (inf_child_disconnect): Update.
5396
5397 2014-06-16 Tom Tromey <tromey@redhat.com>
5398
5399 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
5400 * target.c (debug_to_rcmd, default_rcmd): Update.
5401 * target-delegates.c: Rebuild.
5402 * remote.c (remote_rcmd): Update.
5403 * monitor.c (monitor_rcmd): Update.
5404
5405 2014-06-16 Pedro Alves <palves@redhat.com>
5406
5407 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
5408 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
5409 have OBJF_SHARED set.
5410 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
5411 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
5412 instead of OBJF_USERLOADED.
5413 * objfiles.h (OBJF_SHARED): Update comment.
5414 (userloaded_objfile_contains_address_p): Rename to ...
5415 (shared_objfile_contains_address_p): ... this, and update
5416 comments.
5417 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
5418 new objfile.
5419 (remove_symbol_file_command): Skip objfiles that don't have
5420 OBJF_SHARED set.
5421
5422 2014-06-16 Tom Tromey <tromey@redhat.com>
5423
5424 * minsyms.h (prim_record_minimal_symbol)
5425 (prim_record_minimal_symbol_and_info): Update comments.
5426
5427 2014-06-14 Eli Zaretskii <eliz@gnu.org>
5428
5429 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
5430 or --without-guile, according to how GDB was built.
5431
5432 2014-06-13 Tom Tromey <tromey@redhat.com>
5433
5434 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
5435 to help_list.
5436 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
5437 to help_list.
5438 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
5439 help_list.
5440 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
5441 help_list.Pass all_commands, not -1, to help_list.
5442 * cli/cli-dump.c (dump_command, append_command)
5443 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
5444 (binary_dump_command, binary_append_command): Pass all_commands,
5445 not -1, to help_list.
5446 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
5447 -1, to help_list.
5448 * valprint.c (set_print, set_print_raw): Pass all_commands, not
5449 -1, to help_list.
5450 * typeprint.c (set_print_type): Pass all_commands, not -1, to
5451 help_list.
5452 * top.c (set_history): Pass all_commands, not -1, to help_list.
5453 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
5454 all_commands, not -1, to help_list.
5455 * symfile.c (overlay_command): Pass all_commands, not -1, to
5456 help_list.
5457 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
5458 help_list.
5459 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
5460 help_list.
5461 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
5462 -1, to help_list.
5463 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
5464 not -1, to help_list.
5465 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
5466 not -1, to help_list.
5467 * maint.c (maintenance_command, maintenance_info_command)
5468 (maintenance_print_command, maintenance_set_cmd): Pass
5469 all_commands, not -1, to help_list.
5470 * macrocmd.c (macro_command): Pass all_commands, not -1, to
5471 help_list.
5472 * language.c (set_check): Pass all_commands, not -1, to help_list.
5473 * infcmd.c (unset_command): Pass all_commands, not -1, to
5474 help_list.
5475 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
5476 help_list.
5477 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
5478 help_list.
5479 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
5480 help_list.
5481 * breakpoint.c (save_command): Pass all_commands, not -1, to
5482 help_list.
5483 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
5484 all_commands, not -1, to help_list.
5485
5486 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
5487
5488 * regcache.c (struct register_to_invalidate): New structure.
5489 (do_register_invalidate, make_cleanup_regcache_invalidate): New
5490 functions.
5491 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
5492
5493 2014-06-12 Yao Qi <yao@codesourcery.com>
5494
5495 * varobj.c (varobj_get_num_children): Call
5496 varobj_is_dynamic_p.
5497 (varobj_list_children): Likewise.
5498 (varobj_update): Likewise. Update comments.
5499
5500 2014-06-12 Yao Qi <yao@codesourcery.com>
5501
5502 * varobj.c (varobj_pretty_printed_p): Rename to ...
5503 (varobj_is_dynamic_p): ... this. New function.
5504 * varobj.h (varobj_pretty_printed_p): Remove declaration.
5505 (varobj_is_dynamic_p): Declare.
5506 * mi/mi-cmd-var.c (print_varobj): All callers updated.
5507 (mi_print_value_p, varobj_update_one): Likewise.
5508
5509 2014-06-12 Pedro Alves <pedro@codesourcery.com>
5510 Yao Qi <yao@codesourcery.com>
5511
5512 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
5513 (varobj_get_iterator): Wrap up code for pretty-printer by
5514 "#if HAVE_PYTHON" and "#endif".
5515 (update_dynamic_varobj_children): Likewise.
5516
5517 2014-06-12 Pedro Alves <pedro@codesourcery.com>
5518 Yao Qi <yao@codesourcery.com>
5519
5520 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
5521 gdb_python_initialized is false. Move some code from varobj.c.
5522 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
5523 * varobj.c: Move "varobj-iter.h" inclusion earlier.
5524 (struct varobj_item): Moved to varobj-iter.h".
5525 (varobj_clear_saved_item): New function.
5526 (update_dynamic_varobj_children): Move python-related code to
5527 py-varobj.c.
5528 (free_variable): Call varobj_clear_saved_item and
5529 varobj_iter_delete.
5530
5531 2014-06-12 Pedro Alves <pedro@codesourcery.com>
5532 Yao Qi <yao@codesourcery.com>
5533
5534 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
5535 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
5536 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
5537 (py-varobj.o): New rule.
5538 * python/py-varobj.c: New file.
5539 * python/python-internal.h (py_varobj_get_iterator): Declare.
5540 * varobj-iter.h: New file.
5541 * varobj.c: Include "varobj-iter.h"
5542 (struct varobj) <child_iter>: Change its type from "PyObject *"
5543 to "struct varobj_iter *".
5544 <saved_item>: Likewise.
5545 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
5546 [HAVE_PYTHON] (varobj_get_iterator): New function.
5547 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
5548 python-specific code to python/py-varobj.c.
5549 (install_visualizer): Call varobj_iter_delete instead of
5550 Py_XDECREF.
5551 * varobj.h (varobj_ensure_python_env): Declare.
5552
5553 2014-06-12 Yao Qi <yao@codesourcery.com>
5554
5555 * varobj.c (struct varobj_item): New structure.
5556 (create_child_with_value): Update declaration.
5557 (varobj_add_child): Replace arguments 'name' and 'value' with
5558 'item'. All callers updated.
5559 (install_dynamic_child): Likewise.
5560 (update_dynamic_varobj_children): Likewise.
5561 (varobj_add_child): Likewise.
5562 (create_child_with_value): Likewise.
5563
5564 2014-06-11 Joel Brobecker <brobecker@adacore.com>
5565
5566 * NEWS: Create a new section for the next release branch.
5567 Rename the section of the current branch, now that it has
5568 been cut.
5569
5570 2014-06-11 Joel Brobecker <brobecker@adacore.com>
5571
5572 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
5573 * version.in: Bump version to 7.8.50.DATE-cvs.
5574
5575 2014-06-11 Pedro Alves <palves@redhat.com>
5576
5577 PR remote/17028
5578 * ser-mingw.c (net_windows_socket_check_pending): New function.
5579 (net_windows_select_thread): Ignore spurious wakeups. Use
5580 net_windows_socket_check_pending.
5581 (net_windows_wait_handle): Check for pending events with
5582 ioctlsocket, through net_windows_socket_check_pending, instead of
5583 checking the socket's event.
5584
5585 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
5586
5587 * python/python-internal.h (gdb_PyObject_GetAttrString)
5588 (gdb_PyObject_HasAttrString): New inline function definitions.
5589 * py-value.c (get_field_flag): Remove the now unnecessary cast to
5590 char * of the second argument to PyObject_GetAttrString.
5591
5592 2014-06-10 Joel Brobecker <brobecker@adacore.com>
5593
5594 * serial.c (serial_write): Fix index of character to be printed
5595 in call to serial_logchar when serial debug traces are enabled.
5596
5597 2014-06-10 Joel Brobecker <brobecker@adacore.com>
5598
5599 * gdbtypes (resolve_dynamic_range): Add function description.
5600
5601 2014-06-09 Pedro Alves <palves@redhat.com>
5602
5603 * linux-nat.c (linux_child_follow_fork): Initialize status with
5604 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
5605 inner block. Only pass the signal to PTRACE_DETACH if in pass
5606 state.
5607
5608 2014-06-09 Gary Benson <gbenson@redhat.com>
5609
5610 * common/signals.c (gdb_signal_from_host): Reorder to separate
5611 the always-available ANSI-standard signals from the signals that
5612 require checking.
5613 (do_gdb_signal_to_host): Likewise.
5614 * proc-events.c (signal_table): Likewise.
5615
5616 2014-06-08 Hui Zhu <hui@codesourcery.com>
5617
5618 * common/linux-ptrace.c (linux_disable_event_reporting): New
5619 function.
5620 * common/linux-ptrace.h (linux_disable_event_reporting): New
5621 declaration.
5622 * linux-nat.c (linux_child_follow_fork): Do a single step before
5623 detach.
5624
5625 2014-06-07 Keith Seitz <keiths@redhat.com>
5626
5627 Revert:
5628 PR c++/16253
5629 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5630 from symbol_matches_domain in symtab.c. All local callers
5631 of symbol_matches_domain updated.
5632 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5633 search STRUCT_DOMAIN.
5634 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5635 independently. standard_lookup will do that automatically.
5636 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5637 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5638 (cp_lookup_symbol_in_namespace): Likewise.
5639 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5640 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5641 may return a STRUCT_DOMAIN match.
5642 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5643 * cp-support.c: Include language.h.
5644 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5645 VAR_DOMAIN.
5646 * psymtab.c (match_partial_symbol): Compare the requested
5647 domain with the symbol's domain directly.
5648 (lookup_partial_symbol): Likewise.
5649 * symtab.c (lookup_symbol_in_language): Explain when/why
5650 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5651 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5652 appropriate languages.
5653 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5654 and moved to ada-lang.c
5655 (lookup_block_symbol): Explain that this function only returns
5656 symbol matching the requested DOMAIN.
5657 Compare the requested domain with the symbol's domain directly.
5658 (iterate_over_symbols): Compare the requested domain with the
5659 symbol's domain directly.
5660 * symtab.h (symbol_matches_domain): Remove.
5661
5662 2014-06-06 Doug Evans <xdje42@gmail.com>
5663
5664 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
5665 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
5666 (gdbscm_guile_version_is_at_least): Declare.
5667 (gdbscm_scm_string_to_int): Declare.
5668 * guile/guile.c (gdbscm_guile_major_version): New global.
5669 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
5670 (guile_datadir): New static global.
5671 (gdbscm_guile_data_directory): New function.
5672 (initialize_scheme_side): Update.
5673 (misc_guile_functions): Add guile-data-directory.
5674 (initialize_gdb_module): Fetch guile version number.
5675 * guile/lib/gdb.scm: Remove call to add-to-load-path.
5676 * guile/lib/gdb/init.scm (%initialize!): Ditto.
5677 * guile/lib/gdb/boot.scm: Use guile-data-directory.
5678 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
5679 comments.
5680 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
5681 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
5682 * guile/scm-value.c (gdbscm_value_to_string): Only call
5683 scm_port_conversion_strategy if Guile version >= 2.0.6.
5684
5685 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
5686
5687 * main.c (print_gdb_help): Add -q and --silent.
5688
5689 2014-06-06 Gary Benson <gbenson@redhat.com>
5690
5691 * common/signals.c: Remove preprocessor conditionals for
5692 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
5693 SIGSEGV and SIGTERM.
5694 * proc-events.c: Likewise.
5695
5696 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
5697
5698 * symfile.c (symfile_free_objfile): Remove restriction to
5699 OBJF_USERLOADED.
5700 * symfile-mem.c (symbol_file_add_from_memory): Call
5701 add_target_sections_of_objfile.
5702
5703 2014-06-05 Ludovic Courtès <ludo@gnu.org>
5704
5705 * guile/scm-value.c (gdbscm_history_append_x): Use
5706 'vlscm_get_value_smob_arg_unsafe' instead of
5707 'vlscm_scm_to_value'.
5708
5709 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
5710
5711 PR mi/15806
5712 * utils.c (printchar): Don't escape at all if quoter is NUL.
5713 Update function documentation to clarify effect of parameter
5714 QUOTER.
5715 * remote.c (escape_buffer): Pass '\\' as the quoter to
5716 fputstrn_unfiltered.
5717 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
5718 generate the output.
5719 (mi_solib_unloaded): Same.
5720
5721 2014-06-05 Joel Brobecker <brobecker@adacore.com>
5722
5723 * development.sh: Delete.
5724 * Makefile.in (config.status): Adjust dependency on development.sh.
5725 * configure.ac: Adjust development.sh source call.
5726 * configure: Regenerate.
5727
5728 2014-06-04 Doug Evans <xdje42@gmail.com>
5729
5730 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
5731 is_scheme_bkpt, spec.
5732 (bpscm_make_breakpoint_smob): Initialize new members.
5733 (gdbscm_create_breakpoint_x): Split into two ...
5734 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
5735 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
5736 (scheme_function breakpoint_functions): Update.
5737 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
5738 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
5739 register-breakpoint!.
5740
5741 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
5742
5743 PR server/17023
5744 * mem-break.c (z_type_supported): Return zero if
5745 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
5746
5747 2014-06-04 Tom Tromey <tromey@redhat.com>
5748
5749 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
5750 value_from_contents_and_address_unresolved.
5751 (ada_template_to_fixed_record_type_1): Likewise.
5752 (ada_which_variant_applies): Likewise.
5753 * value.h (value_from_contents_and_address_unresolved): Declare.
5754 * value.c (value_from_contents_and_address_unresolved): New
5755 function.
5756 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
5757 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
5758 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
5759
5760 2014-06-04 Tom Tromey <tromey@redhat.com>
5761
5762 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
5763
5764 2014-06-04 Tom Tromey <tromey@redhat.com>
5765
5766 * procfs.c (procfs_attach): Make "args" const.
5767 * windows-nat.c (windows_attach): Make "args" const.
5768 * nto-procfs.c (procfs_attach): Make "args" const.
5769 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
5770 * go32-nat.c (go32_attach): Make "args" const.
5771 * gnu-nat.c (gnu_attach): Make "args" const.
5772 * darwin-nat.c (darwin_attach): Make "args" const.
5773 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
5774 * linux-nat.c (linux_nat_attach): Make "args" const.
5775 * remote.c (extended_remote_attach_1, extended_remote_attach):
5776 Make "args" const.
5777 * target.h (struct target_ops) <to_attach>: Make "args" const.
5778 (find_default_attach): Likewise.
5779 * utils.c (parse_pid_to_attach): Make "args" const.
5780 * utils.h (parse_pid_to_attach): Update.
5781
5782 2014-06-04 Tom Tromey <tromey@redhat.com>
5783
5784 * target-delegates.c: Rebuild.
5785 * target.c (default_thread_address_space): New function.
5786 (target_thread_address_space): Simplify.
5787 * target.h (struct target_ops) <to_thread_address_space>: Add
5788 TARGET_DEFAULT_FUNC.
5789
5790 2014-06-04 Doug Evans <xdje42@gmail.com>
5791
5792 * guile/scm-type.c (type_smob): Remove duplicate typedef.
5793
5794 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
5795
5796 * record-btrace.c: Include event-loop.h and inf-loop.h.
5797 (record_btrace_resume_exec_dir)
5798 (record_btrace_async_inferior_event_handler)
5799 (record_btrace_handle_async_inferior_event): New.
5800 (record_btrace_open): Create async event handler.
5801 (record_btrace_close): Delete async event handler.
5802 (record_btrace_resume): Set record_btrace_resume_exec_dir,
5803 Mark async event handler.
5804 (record_btrace_execution_direction): New.
5805 (init_record_btrace_ops): Initialize to_execution_direction.
5806
5807 2014-06-03 Doug Evans <xdje42@gmail.com>
5808
5809 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
5810 (gdbscm_make_parameter): Ditto.
5811
5812 2014-06-03 Doug Evans <dje@google.com>
5813
5814 * exec.c (exec_close_1): Call clear_section_table instead of
5815 resize_section_table.
5816 (clear_section_table): New function.
5817 (resize_section_table): Make static. Rename arg num_added to
5818 adjustment.
5819 * exec.h (clear_section_table): Declare.
5820 (resize_section_table): Delete.
5821 * progspace.c (release_program_space): Call clear_section_table
5822 instead of resize_section_table.
5823
5824 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5825
5826 * NEWS (Python Scripting): Add entry about the new xmethods
5827 feature.
5828
5829 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5830
5831 * python/py-xmethods.c: New file.
5832 * python/py-objfile.c (objfile_object): New field 'xmethods'.
5833 (objfpy_dealloc): XDECREF on the new xmethods field.
5834 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
5835 field.
5836 (objfpy_get_xmethods): New function.
5837 (objfile_getset): New entry 'xmethods'.
5838 * python/py-progspace.c (pspace_object): New field 'xmethods'.
5839 (pspy_dealloc): XDECREF on the new xmethods field.
5840 (pspy_new, pspace_to_pspace_object): Initialize xmethods
5841 field.
5842 (pspy_get_xmethods): New function.
5843 (pspace_getset): New entry 'xmethods'.
5844 * python/python-internal.h: Add declarations for new functions.
5845 * python/python.c (_initialize_python): Invoke
5846 gdbpy_initialize_xmethods.
5847 * python/lib/gdb/__init__.py (xmethods): New
5848 attribute.
5849 * python/lib/gdb/xmethod.py: New file.
5850 * python/lib/gdb/command/xmethods.py: New file.
5851
5852 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5853
5854 * eval.c (evaluate_subexp_standard): Call the xmethod if the
5855 best match method returned by find_overload_match is an xmethod.
5856 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
5857 the best matching operator returned by find_overload_match is an
5858 xmethod.
5859 * valops.c: #include "extension.h".
5860 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
5861 Return void. The list of matching source methods is returned in
5862 "fn_list" and a vector of matching debug method workers is
5863 returned in "xm_worker_vec". Update all callers.
5864 (value_find_oload_method_list): Likewise.
5865 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
5866 non-NULL, then the index of the best matching method in this
5867 vector is returned. Update all callers.
5868 (find_overload_match): Include xmethods while performing overload
5869 resolution.
5870
5871 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5872
5873 * defs.h (enum lval_type): New enumerator "lval_xcallable".
5874 * extension-priv.h (struct extension_language_ops): Add the
5875 xmethod interface.
5876 * extension.c (new_xmethod_worker, clone_xmethod_worker,
5877 get_matching_xmethod_workers, get_xmethod_argtypes,
5878 invoke_xmethod, free_xmethod_worker,
5879 free_xmethod_worker_vec): New functions.
5880 * extension.h: #include "common/vec.h".
5881 New function declarations.
5882 (struct xmethod_worker): New struct.
5883 (VEC (xmethod_worker_ptr)): New vector type.
5884 (xmethod_worker_ptr): New typedef.
5885 (xmethod_worker_vec): Likewise.
5886 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
5887 builtin_type.
5888 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
5889 (struct builtin_type): New field "xmethod".
5890 * valarith.c (value_ptradd): Assert that the value argument is not
5891 lval_xcallable.
5892 * valops.c (value_must_coerce_to_target): Return 0 for
5893 lval_xcallable values.
5894 * value.c (struct value): New field XM_WORKER in the field
5895 LOCATION.
5896 (value_address, value_raw_address): Return 0 for lval_xcallable
5897 values.
5898 (set_value_address): Assert that the value is not an
5899 lval_xcallable.
5900 (value_free): Free the associated xmethod worker when freeing
5901 lval_xcallable values.
5902 (set_value_component_location): Assert that the WHOLE value is not
5903 lval_xcallable.
5904 (value_of_xmethod, call_xmethod): New functions.
5905 * value.h: Declare "struct xmethod_worker".
5906 Declare new functions value_of_xmethod, call_xmethod.
5907
5908 2014-06-03 Joel Brobecker <brobecker@adacore.com>
5909 Pedro Alves <palves@redhat.com>
5910
5911 PR breakpoints/17000
5912 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
5913 New function, extracted from software_breakpoint_inserted_here_p.
5914 (software_breakpoint_inserted_here_p): Replace factored out code
5915 by call to find_non_raw_software_breakpoint_inserted_here.
5916 (bp_target_info_copy_insertion_state): New function.
5917 (bkpt_insert_location): Handle the case of a single-step
5918 breakpoint already inserted at the same address.
5919 (bkpt_remove_location): Handle the case of a single-step
5920 breakpoint still inserted at the same address.
5921 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
5922 breakpoint already inserted at the same address.
5923 (deprecated_remove_raw_breakpoint): Handle the case of a
5924 non-raw breakpoint still inserted at the same address.
5925 (find_single_step_breakpoint): New function, extracted from
5926 single_step_breakpoint_inserted_here_p.
5927 (find_single_step_breakpoint): New function,
5928 factored out from single_step_breakpoint_inserted_here_p.
5929 (single_step_breakpoint_inserted_here_p): Reimplement.
5930
5931 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
5932
5933 Pushed by Joel Brobecker <brobecker@adacore.com>
5934 * source.c (show_substitute_path_command): Fix display of matching
5935 substitution rules.
5936
5937 2014-06-03 Gary Benson <gbenson@redhat.com>
5938
5939 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
5940
5941 2014-06-02 Doug Evans <xdje42@gmail.com>
5942
5943 Add parameter support for Guile.
5944 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
5945 (SUBDIR_GUILE_SRCS): Add scm-param.c.
5946 (scm-param.o): New rule.
5947 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
5948 (gdbscm_misc_error): Declare.
5949 (gdbscm_canonicalize_command_name): Declare.
5950 (gdbscm_scm_to_host_string): Declare.
5951 (gdbscm_scm_from_host_string): Declare.
5952 (gdbscm_initialize_parameters): Declare.
5953 * guile/guile.c (initialize_gdb_module): Call
5954 gdbscm_initialize_parameters.
5955 * guile/lib/gdb.scm: Export parameter symbols.
5956 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
5957 cmdscm_canonicalize_name and made public. All callers updated.
5958 * guile/scm-exception.c (gdbscm_misc_error): New function.
5959 * guile/scm-param.c: New file.
5960 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
5961 (gdbscm_scm_to_host_string): New function.
5962 (gdbscm_scm_from_host_string): New function.
5963 * scm-utils.c (gdbscm_gc_dup_argv): New function.
5964
5965 2014-06-02 Doug Evans <xdje42@gmail.com>
5966
5967 Add command support for Guile.
5968 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
5969 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
5970 (scm-cmd.o): New rule.
5971 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
5972 (gdbscm_user_error_p): Declare.
5973 (gdbscm_parse_command_name): Declare.
5974 (gdbscm_valid_command_class_p): Declare.
5975 (gdbscm_initialize_commands): Declare.
5976 * guile/guile.c (initialize_gdb_module): Call
5977 gdbscm_initialize_commands.
5978 * guile/lib/gdb.scm: Export command symbols.
5979 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
5980 (throw-user-error): New function.
5981 * guile/scm-cmd.c: New file.
5982 * guile/scm-exception.c (user_error_symbol): New static global.
5983 (gdbscm_user_error_p): New function.
5984 (gdbscm_initialize_exceptions): Set user_error_symbol.
5985 * scm-utils.c (gdbscm_gc_xstrdup): New function.
5986
5987 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
5988
5989 * top.c (command_loop): Handle comments here...
5990 (command_line_input): ... not here.
5991
5992 2014-06-02 Doug Evans <xdje42@gmail.com>
5993
5994 Add progspace support for Guile.
5995 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
5996 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
5997 (scm-progspace.o): New rule.
5998 * guile/guile-internal.h (pspace_smob): New typedef.
5999 (psscm_pspace_smob_pretty_printers): Declare.
6000 (psscm_pspace_smob_from_pspace): Declare.
6001 (psscm_scm_from_pspace): Declare.
6002 * guile/guile.c (initialize_gdb_module): Call
6003 gdbscm_initialize_pspaces.
6004 * guile/lib/gdb.scm: Export progspace symbols.
6005 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
6006 support.
6007 (append-pretty-printer!): Ditto.
6008 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
6009 Implement.
6010 * guile/scm-progspace.c: New file.
6011
6012 2014-06-03 Alan Modra <amodra@gmail.com>
6013
6014 * ppc64-tdep.c (ppc64_standard_linkage8): New.
6015 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
6016
6017 2014-06-02 Doug Evans <dje@google.com>
6018
6019 Add support for skeletonless type units.
6020 * dwarf2read.c (struct dwarf2_per_objfile): New member
6021 n_allocated_type_units.
6022 (struct dwarf2_per_objfile) <tu_stats>: New member
6023 nr_all_type_units_reallocs.
6024 (create_signatured_type_table_from_index): Initialize
6025 n_allocated_type_units
6026 (create_all_type_units): Ditto.
6027 (add_type_unit): Move up in file. New arg slot.
6028 All callers updated. Increase space for all_type_units more
6029 efficiently.
6030 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
6031 (lookup_dwo_signatured_type): Handle skeletonless TUs.
6032 (lookup_dwp_signatured_type): Ditto.
6033 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
6034 All callers updated.
6035 (build_type_psymtabs_1): Leave type_unit_groups as
6036 NULL if no TUs present.
6037 (print_tu_stats): New function.
6038 (process_skeletonless_type_unit): New function.
6039 (process_dwo_file_for_skeletonless_type_units): New
6040 function.
6041 (process_skeletonless_type_units): New function.
6042 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
6043 Call print tu_stats if debugging enabled.
6044
6045 2014-06-02 Pedro Alves <palves@redhat.com>
6046
6047 * breakpoint.c (build_target_command_list): Don't build a command
6048 list if we have any duplicate location that isn't a dprintf.
6049
6050 2014-06-02 Pedro Alves <palves@redhat.com>
6051
6052 * breakpoint.c (dprintf_breakpoint_hit): New function.
6053 (initialize_breakpoint_ops): Install it as dprintf's
6054 breakpoint_hit method.
6055
6056 2014-06-02 Joel Brobecker <brobecker@adacore.com>
6057
6058 * source.c (substitute_path_rule_matches): Simplify using
6059 filename_ncmp instead of FILENAME_CMP.
6060
6061 2014-06-02 Joel Brobecker <brobecker@adacore.com>
6062
6063 * source.c (substitute_path_rule_matches): Remove trailing spaces.
6064
6065 2014-06-01 Ludovic Courtès <ludo@gnu.org>
6066
6067 * configure.ac: When Guile is available, check for the
6068 availability of 'scm_new_smob'.
6069 * configure, config.h.in: Regenerate.
6070 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
6071 function.
6072
6073 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
6074
6075 * frame.c (struct frame_info): Add stop_string field.
6076 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
6077 (get_prev_frame_always): Old content moved into
6078 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
6079 TRY_CATCH, handle MEMORY_ERROR exceptions.
6080 (frame_stop_reason_string): New function definition.
6081 * frame.h (unwind_stop_reason_to_string): Extend comment to
6082 mention frame_stop_reason_string.
6083 (frame_stop_reason_string): New function declaration.
6084 * stack.c (frame_info): Switch to frame_stop_reason_string.
6085 (backtrace_command_1): Switch to frame_stop_reason_string.
6086 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
6087 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
6088 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
6089
6090 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
6091
6092 * frame.c (frame_stop_reason_string): Rename to ...
6093 (unwind_stop_reason_to_string): this.
6094 * frame.h (frame_stop_reason_string): Rename to ...
6095 (unwind_stop_reason_to_string): this.
6096 * stack.c (frame_info): Update call to frame_stop_reason_string.
6097 (backtrace_command_1): Likewise.
6098 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
6099 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
6100
6101 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
6102
6103 * frame.c (remove_prev_frame): New function.
6104 (get_prev_frame_if_no_cycle): Create / discard cleanup using
6105 remove_prev_frame.
6106
6107 2014-05-29 Pedro Alves <palves@redhat.com>
6108
6109 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
6110 and make it const. When a single-step decays to a continue,
6111 clear 'step', not 'hw_step'. Pass whether the caller wanted
6112 to step to user_visible_resume_ptid, not what we ask the
6113 target to do.
6114
6115 2014-05-29 Pedro Alves <palves@redhat.com>
6116
6117 * infrun.c (process_event_stop_test, handle_step_into_function)
6118 (handle_step_into_function_backward): Adjust.
6119 Don't set the even thread's stop_step and call stop_waiting before
6120 calling end_stepping_range. Instead do that ...
6121 (end_stepping_range): ... here. Take an ecs pointer parameter.
6122
6123 2014-05-29 Pedro Alves <palves@redhat.com>
6124
6125 * infrun.c (stop_stepping): Rename to ...
6126 (stop_waiting): ... this.
6127 (proceed): Update comment.
6128 (process_event_stop_test, handle_inferior_event)
6129 (handle_signal_stop, handle_step_into_function)
6130 (handle_step_into_function_backward): Update.
6131
6132 2014-05-29 Pedro Alves <palves@redhat.com>
6133
6134 * infcall.c (run_inferior_call): Don't check whether the current
6135 thread is running after the proceed call.
6136
6137 2014-05-29 Pedro Alves <palves@redhat.com>
6138 Tom Tromey <tromey@redhat.com>
6139
6140 * NEWS: Mention "maint set target-async", "set mi-async", and that
6141 background execution commands are now always available.
6142 * target.h (target_async_permitted): Update comment.
6143 * target.c (target_async_permitted, target_async_permitted_1):
6144 Default to 1.
6145 (set_target_async_command): Rename to ...
6146 (maint_set_target_async_command): ... this.
6147 (show_target_async_command): Rename to ...
6148 (maint_show_target_async_command): ... this.
6149 (_initialize_target): Adjust.
6150 * infcmd.c (prepare_execution_command): Make extern.
6151 * inferior.h (prepare_execution_command): Declare.
6152 * infrun.c (set_observer_mode): Leave target async alone.
6153 * mi/mi-interp.c (mi_interpreter_init): Install
6154 mi_on_sync_execution_done as sync_execution_done observer.
6155 (mi_on_sync_execution_done): New function.
6156 (mi_execute_command_input_handler): Don't print the prompt if we
6157 just started a synchronous command with an async target.
6158 (mi_on_resume): Check sync_execution before printing prompt.
6159 * mi/mi-main.h (mi_async_p): Declare.
6160 * mi/mi-main.c: Include gdbcmd.h.
6161 (mi_async_p): New function.
6162 (mi_async, mi_async_1): New globals.
6163 (set_mi_async_command, show_mi_async_command, mi_async): New
6164 functions.
6165 (exec_continue): Call prepare_execution_command.
6166 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
6167 (mi_execute_async_cli_command): Use mi_async_p.
6168 (_initialize_mi_main): Install "set mi-async". Make
6169 "target-async" a deprecated alias.
6170
6171 2014-05-29 Pedro Alves <palves@redhat.com>
6172
6173 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
6174 (_initialize_cli_interp): Adjust.
6175 * event-loop.c: Include "observer.h".
6176 (start_event_loop): Notify 'command_error' observers instead of
6177 calling display_gdb_prompt. Remove FIXME comment.
6178 * event-top.c (display_gdb_prompt): Remove call into the
6179 interpreters.
6180 * inf-loop.c: Include "observer.h".
6181 (inferior_event_handler): Notify 'command_error' observers instead
6182 of calling display_gdb_prompt.
6183 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
6184 observers instead of calling display_gdb_prompt.
6185 * interps.c (interp_set): Don't call display_gdb_prompt.
6186 (current_interp_display_prompt_p): Delete.
6187 * interps.h (interp_prompt_p): Delete declaration.
6188 (interp_prompt_p_ftype): Delete.
6189 (struct interp_procs) <prompt_proc_p>: Delete field.
6190 (current_interp_display_prompt_p): Delete declaration.
6191 * mi-interp.c (mi_interpreter_prompt_p): Delete.
6192 (_initialize_mi_interp): Adjust.
6193 * tui-interp.c (tui_init): Install 'sync_execution_done' and
6194 'command_error' observers.
6195 (tui_on_sync_execution_done, tui_on_command_error): New
6196 functions.
6197 (tui_display_prompt_p): Delete.
6198 (_initialize_tui_interp): Adjust.
6199
6200 2014-05-29 Pedro Alves <palves@redhat.com>
6201
6202 PR gdb/13860
6203 * cli/cli-interp.c: Include infrun.h and observer.h.
6204 (cli_uiout, cli_interp): New globals.
6205 (cli_on_signal_received, cli_on_end_stepping_range)
6206 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
6207 functions.
6208 (cli_interpreter_init): Install them as 'end_stepping_range',
6209 'signal_received' 'signal_exited', 'exited' and 'no_history'
6210 observers.
6211 (_initialize_cli_interp): Remove cli_interp local.
6212 * infrun.c (handle_inferior_event): Call the several stop reason
6213 observers instead of printing the stop reason directly.
6214 (end_stepping_range): New function.
6215 (print_end_stepping_range_reason, print_signal_exited_reason)
6216 (print_exited_reason, print_signal_received_reason)
6217 (print_no_history_reason): Make static, and add an uiout
6218 parameter. Print to that instead of to CURRENT_UIOUT.
6219 * infrun.h (print_end_stepping_range_reason)
6220 (print_signal_exited_reason, print_exited_reason)
6221 (print_signal_received_reason print_no_history_reason): New
6222 declarations.
6223 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
6224 'mi_uiout'.
6225 <cli_uiout>: New field.
6226 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
6227 uiout for CLI output. Install 'signal_received',
6228 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
6229 observers.
6230 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
6231 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
6232 (mi_on_no_history): New functions.
6233 (ui_out_free_cleanup): Delete function.
6234 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
6235 instead use the one already stored in the MI interpreter data.
6236 (mi_ui_out): Adjust.
6237 * tui/tui-interp.c: Include infrun.h and observer.h.
6238 (tui_interp): New global.
6239 (tui_on_signal_received, tui_on_end_stepping_range)
6240 (tui_on_signal_exited, tui_on_exited)
6241 (tui_on_no_history): New functions.
6242 (tui_init): Install them as 'end_stepping_range',
6243 'signal_received' 'signal_exited', 'exited' and 'no_history'
6244 observers.
6245 (_initialize_tui_interp): Delete tui_interp local.
6246
6247 2014-05-29 Pedro Alves <palves@redhat.com>
6248
6249 PR gdb/15713
6250 * linux-nat.c (linux_nat_resume_callback): Rename the second
6251 parameter to 'except'. Skip LP if it points to EXCEPT.
6252 (linux_nat_resume): Don't mark the event lwp as not stopped
6253 before resuming sibling lwps. Instead ask
6254 linux_nat_resume_callback to skip the event lwp. Mark it as not
6255 stopped after actually resuming it.
6256 (linux_handle_syscall_trap): Mark the lwp as not stopped after
6257 resuming it.
6258 (wait_lwp): Mark the lwp as stopped here.
6259 (stop_wait_callback): Mark the lwp as not stopped right after
6260 resuming it. Don't mark lwps as stopped here.
6261 (linux_nat_filter_event): Mark the lwp as stopped earlier.
6262 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
6263
6264 2014-05-29 Pedro Alves <palves@redhat.com>
6265
6266 PR PR15693
6267 * infrun.c (resume): Determine how much to resume depending on
6268 whether the caller wanted a step, not whether we can hardware step
6269 the target. Mark all threads that we intend to run as running,
6270 unless we're calling an inferior function.
6271 (normal_stop): If the thread is running an infcall, don't finish
6272 thread state.
6273 * target.c (target_resume): Don't mark threads as running here.
6274
6275 2014-05-28 Joel Brobecker <brobecker@adacore.com>
6276
6277 * serial.c (_initialize_serial): Remove support for
6278 the "set remotebaud" and "show remotebaud" commands.
6279 * NEWS: Add entry documenting the removal of that command.
6280
6281 2014-05-28 Yao Qi <yao@codesourcery.com>
6282
6283 * charset.c: Fix typo in comments.
6284
6285 2014-05-27 Gary Benson <gbenson@redhat.com>
6286
6287 * utils.c (internal_vproblem): Prompt for a bug report.
6288
6289 2014-05-26 Andy Wingo <wingo@igalia.com>
6290
6291 * guile/scm-arch.c (arscm_mark_arch_smob):
6292 * guile/scm-block.c (bkscm_mark_block_smob)
6293 (bkscm_mark_block_syms_progress_smob):
6294 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
6295 * guile/scm-exception.c (exscm_mark_exception_smob):
6296 * guile/scm-frame.c (frscm_mark_frame_smob):
6297 * guile/scm-iterator.c (itscm_mark_iterator_smob):
6298 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
6299 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
6300 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
6301 (ppscm_mark_pretty_printer_worker_smob):
6302 * guile/scm-symbol.c (syscm_mark_symbol_smob):
6303 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
6304 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
6305 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
6306 mark functions.
6307 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
6308 function.
6309
6310 2014-05-26 Andy Wingo <wingo@igalia.com>
6311 Doug Evans <xdje42@gmail.com>
6312
6313 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
6314 empty_base_class. All uses updated.
6315 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
6316 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
6317 Adapt all callers.
6318 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
6319 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
6320 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
6321 (gdbscm_gsmob_has_property_p, add_property_name)
6322 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
6323 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
6324 (gdb-object-has-property?, gdb-object-properties): Remove.
6325 (gdb-object-kind): Renamed from gsmob-kind.
6326
6327 2014-05-26 Andy Wingo <wingo@igalia.com>
6328
6329 * configure.ac (try_guile_versions): Allow building with guile 2.2.
6330 * configure: Regenerate.
6331
6332 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
6333
6334 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
6335
6336 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
6337
6338 * record-btrace.c (record_btrace_allow_memory_access): Remove.
6339 (replay_memory_access_read_only, replay_memory_access_read_write)
6340 (replay_memory_access_types, replay_memory_access)
6341 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
6342 (cmd_set_record_btrace, cmd_show_record_btrace)
6343 (cmd_show_replay_memory_access): New.
6344 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
6345 (record_btrace_remove_breakpoint): Replace
6346 record_btrace_allow_memory_access with replay_memory_access.
6347 (_initialize_record_btrace): Add commands.
6348 * NEWS: Announce it.
6349
6350 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6351
6352 * aarch64-linux-nat.c (asm/ptrace.h): Include.
6353
6354 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6355
6356 * MAINTAINERS (Write After Approval): Move self back from
6357 paper trail.
6358
6359 2014-05-22 Pedro Alves <palves@redhat.com>
6360
6361 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
6362 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
6363 (disable_randomization, enum exec_direction_kind)
6364 (execution_direction, stop_registers, start_remote)
6365 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
6366 (wait_for_inferior, normal_stop, get_last_target_status)
6367 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
6368 (insert_step_resume_breakpoint_at_sal)
6369 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
6370 (set_step_info, print_stop_event, signal_stop_state)
6371 (signal_print_state, signal_pass_state, signal_stop_update)
6372 (signal_print_update, signal_pass_update)
6373 (update_signals_program_target, clear_exit_convenience_vars)
6374 (displaced_step_dump_bytes, update_observer_mode)
6375 (signal_catch_update, gdb_signal_from_command): Move
6376 declarations ...
6377 * infrun.h: ... to this new file.
6378 * amd64-tdep.c: Include infrun.h.
6379 * annotate.c: Include infrun.h.
6380 * arch-utils.c: Include infrun.h.
6381 * arm-linux-tdep.c: Include infrun.h.
6382 * arm-tdep.c: Include infrun.h.
6383 * break-catch-sig.c: Include infrun.h.
6384 * breakpoint.c: Include infrun.h.
6385 * common/agent.c: Include infrun.h instead of inferior.h.
6386 * corelow.c: Include infrun.h.
6387 * event-top.c: Include infrun.h.
6388 * go32-nat.c: Include infrun.h.
6389 * i386-tdep.c: Include infrun.h.
6390 * inf-loop.c: Include infrun.h.
6391 * infcall.c: Include infrun.h.
6392 * infcmd.c: Include infrun.h.
6393 * infrun.c: Include infrun.h.
6394 * linux-fork.c: Include infrun.h.
6395 * linux-nat.c: Include infrun.h.
6396 * linux-thread-db.c: Include infrun.h.
6397 * monitor.c: Include infrun.h.
6398 * nto-tdep.c: Include infrun.h.
6399 * procfs.c: Include infrun.h.
6400 * record-btrace.c: Include infrun.h.
6401 * record-full.c: Include infrun.h.
6402 * remote-m32r-sdi.c: Include infrun.h.
6403 * remote-mips.c: Include infrun.h.
6404 * remote-notif.c: Include infrun.h.
6405 * remote-sim.c: Include infrun.h.
6406 * remote.c: Include infrun.h.
6407 * reverse.c: Include infrun.h.
6408 * rs6000-tdep.c: Include infrun.h.
6409 * s390-linux-tdep.c: Include infrun.h.
6410 * solib-irix.c: Include infrun.h.
6411 * solib-osf.c: Include infrun.h.
6412 * solib-svr4.c: Include infrun.h.
6413 * target.c: Include infrun.h.
6414 * top.c: Include infrun.h.
6415 * windows-nat.c: Include infrun.h.
6416 * mi/mi-interp.c: Include infrun.h.
6417 * mi/mi-main.c: Include infrun.h.
6418 * python/py-threadevent.c: Include infrun.h.
6419
6420 2014-05-22 Pedro Alves <palves@redhat.com>
6421
6422 * infrun.c (handle_inferior_event): Store the exit code for
6423 --return-child-result here, instead of ...
6424 (print_exited_reason): ... here.
6425
6426 2014-05-21 Pedro Alves <palves@redhat.com>
6427
6428 PR gdb/13860
6429 * gdbthread.h (struct thread_control_state): New field
6430 `command_interp'.
6431 * infrun.c (follow_fork): Copy the new thread control field to the
6432 child fork thread.
6433 (clear_proceed_status_thread): Clear the new thread control field.
6434 (proceed): Set the new thread control field.
6435 * interps.h (command_interp): Declare.
6436 * interps.c (command_interpreter): New global.
6437 (command_interp): New function.
6438 (interp_exec): Set `command_interpreter' while here.
6439 * cli-out.c (cli_uiout_dtor): New function.
6440 (cli_ui_out_impl): Install it.
6441 * mi/mi-interp.c: Include cli-out.h.
6442 (mi_cmd_interpreter_exec): Add comment.
6443 (restore_current_uiout_cleanup): New function.
6444 (ui_out_free_cleanup): New function.
6445 (mi_on_normal_stop): If finishing an execution command started by
6446 a CLI command, or any kind of breakpoint-like event triggered,
6447 print the stop event to the output (CLI) stream.
6448 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
6449
6450 2014-05-21 Pedro Alves <palves@redhat.com>
6451
6452 * cli/cli-cmds.c (list_command): Handle the first "list" after the
6453 current source line having changed.
6454 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
6455 * infrun.c (normal_stop): Adjust call to
6456 set_current_sal_from_frame.
6457 * source.c (clear_lines_listed_range): New function.
6458 (set_current_source_symtab_and_line, identify_source_line): Clear
6459 the lines listed range.
6460 (line_info): Handle the first "info line" after the current source
6461 line having changed.
6462 * stack.c (print_stack_frame): Remove center handling.
6463 (set_current_sal_from_frame): Remove 'center' parameter. Don't
6464 center sal.line.
6465
6466 2014-05-21 Pedro Alves <palves@redhat.com>
6467
6468 * inf-child.c (inf_child_mourn_inferior): New function.
6469 * inf-child.h (inf_child_mourn_inferior): New declaration.
6470 * darwin-nat.c (darwin_mourn_inferior): Use
6471 inf_child_mourn_inferior.
6472 * gnu-nat.c (gnu_mourn_inferior): Likewise.
6473 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
6474 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
6475 * nto-procfs.c (procfs_mourn_inferior): Likewise.
6476 * windows-nat.c (windows_mourn_inferior): Likewise.
6477
6478 2014-05-21 Doug Evans <xdje42@gmail.com>
6479
6480 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
6481
6482 2014-05-21 Doug Evans <xdje42@gmail.com>
6483
6484 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
6485 (gdbscm_out_of_range_error): Ditto.
6486 (gdbscm_memory_error): Ditto.
6487 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
6488 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
6489 (gdbscm_out_of_range_error): Update.
6490 (gdbscm_memory_error): Update.
6491 (gdbscm_scm_to_target_string_unsafe): Delete.
6492
6493 2014-05-21 Pedro Alves <palves@redhat.com>
6494
6495 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
6496 globals.
6497 (inf_child_open_target): New function.
6498 (inf_child_open): Use inf_child_open_target to push the target
6499 instead of erroring out.
6500 (inf_child_disconnect, inf_child_close)
6501 (inf_child_maybe_unpush_target): New functions.
6502 (inf_child_target): Install inf_child_disconnect and
6503 inf_child_close. Store a pointer to the returned object.
6504 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
6505 declarations.
6506 * target.c (auto_connect_native_target): New global.
6507 (show_default_run_target): New function.
6508 (find_default_run_target): Return NULL if automatically connecting
6509 to the native target is disabled.
6510 (_initialize_target): Install set/show auto-connect-native-target.
6511 * NEWS: Mention "set auto-connect-native-target", and "target
6512 native".
6513 * linux-nat.c (super_close): New global.
6514 (linux_nat_close): Call super_close.
6515 (linux_nat_add_target): Store a pointer to the base class's
6516 to_close method.
6517 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
6518 inf_child_maybe_unpush.
6519 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
6520 already pushed.
6521 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
6522 the inferior. Use inf_child_maybe_unpush_target.
6523 (inf_ttrace_attach): Don't push the target if it is already
6524 pushed.
6525 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
6526 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
6527 after mourning the inferior. Use inf_child_maybe_unpush_target.
6528 (darwin_attach_pid): Don't push the target if it is already
6529 pushed.
6530 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
6531 mourning the inferior. Use inf_child_maybe_unpush_target.
6532 (gnu_detach): Use inf_child_maybe_unpush_target.
6533 * go32-nat.c (go32_create_inferior): Don't push the target if it
6534 is already pushed.
6535 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
6536 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
6537 (procfs_open): Rename to ...
6538 (procfs_open_1): ... this. Add target_ops parameter. Adjust
6539 comments. Can target_preopen before changing node. Call
6540 inf_child_open_target to push the target explicitly.
6541 (procfs_attach): Don't push the target if it is already pushed.
6542 (procfs_detach): Use inf_child_maybe_unpush_target.
6543 (procfs_create_inferior): Don't push the target if it is already
6544 pushed.
6545 (nto_native_ops): New global.
6546 (procfs_open): Reimplement.
6547 (procfs_native_open): New function.
6548 (init_procfs_targets): Install procfs_native_open as to_open of
6549 "target native". Store a pointer to the "native" target in
6550 nto_native_ops.
6551 * procfs.c (procfs_attach): Don't push the target if it is already
6552 pushed.
6553 (procfs_detach): Use inf_child_maybe_unpush_target.
6554 (procfs_mourn_inferior): Only unpush the target after mourning the
6555 inferior. Use inf_child_maybe_unpush_target.
6556 (procfs_init_inferior): Don't push the target if it is already
6557 pushed.
6558 * windows-nat.c (do_initial_windows_stuff): Don't push the target
6559 if it is already pushed.
6560
6561 2014-05-21 Pedro Alves <palves@redhat.com>
6562
6563 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
6564 and "procfs" targets are now called "native" instead.
6565
6566 2014-05-21 Pedro Alves <palves@redhat.com>
6567
6568 * go32-nat.c (go32_open): Delete.
6569 (go32_target): Don't override the to_open method.
6570
6571 2014-05-21 Pedro Alves <palves@redhat.com>
6572
6573 * nto-procfs.c (procfs_can_run): New function.
6574 (nto_procfs_ops): New global.
6575 (init_procfs_targets): New, based on procfs_target. Install
6576 "target native" in addition to "target procfs".
6577 (_initialize_procfs): Call init_procfs_targets instead of adding
6578 the target here.
6579
6580 2014-05-21 Pedro Alves <palves@redhat.com>
6581
6582 * windows-nat.c (windows_target): Don't override to_shortname,
6583 to_longname or to_doc.
6584
6585 2014-05-21 Pedro Alves <palves@redhat.com>
6586
6587 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
6588 to_doc.
6589
6590 2014-05-21 Pedro Alves <palves@redhat.com>
6591
6592 * darwin-nat.c (_initialize_darwin_inferior): Don't override
6593 to_shortname, to_longname or to_doc.
6594
6595 2014-05-21 Pedro Alves <palves@redhat.com>
6596
6597 * go32-nat.c (go32_target): Don't override to_shortname,
6598 to_longname or to_doc.
6599
6600 2014-05-21 Pedro Alves <palves@redhat.com>
6601
6602 * inf-child.c (inf_child_open): Remove mention of "child".
6603 (inf_child_target): Rename target to "native" instead of "child".
6604
6605 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6606
6607 * Makefile.in (SFILES): Delete "regset.c".
6608 (COMMON_OBS): Delete "regset.o".
6609 * regset.c: Remove.
6610 * regset.h (regset_alloc): Delete prototype.
6611
6612 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6613
6614 * sparc-linux-tdep.c (sparc32_linux_gregset)
6615 (sparc32_linux_fpregset): New static regset structures.
6616 (sparc32_linux_init_abi): Drop dynamic regset allocations.
6617 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
6618 'fpregset' fields.
6619 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
6620 (sparc64_linux_fpregset): New static regset structures.
6621 (sparc64_linux_init_abi): Drop dynamic regset allocations.
6622 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
6623 New static regset structures.
6624 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
6625 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
6626 New static regset structures.
6627 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
6628 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
6629 New static regset structures.
6630 (sparc64obsd_init_abi): Drop dynamic regset allocations.
6631 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
6632 New static regset structures.
6633 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
6634
6635 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6636
6637 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
6638 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
6639 register maps ("regmaps") from "*regset" to "*regmap". Do this
6640 for all regmap types and variables.
6641 * sparc-linux-tdep.c (sparc32_linux_step_trap)
6642 (sparc32_linux_supply_core_gregset)
6643 (sparc32_linux_collect_core_gregset)
6644 (sparc32_linux_supply_core_fpregset)
6645 (sparc32_linux_collect_core_fpregset): Likewise.
6646 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
6647 (sparc_gregmap, sparc_fpregmap): ... these.
6648 (sparc_supply_gregset, sparc_collect_gregset)
6649 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6650 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
6651 (_initialize_sparc_nat): Rename regmaps.
6652 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
6653 (sparc_gregmap, sparc_fpregmap): ... these.
6654 (sparc_supply_gregset, sparc_collect_gregset)
6655 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6656 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
6657 Rename macros to...
6658 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
6659 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
6660 Likewise.
6661 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
6662 Rename to...
6663 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
6664 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
6665 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
6666 regmaps.
6667 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6668 (sparc32_bsd_fpregset): Rename to...
6669 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6670 (sparc32_bsd_fpregmap): ... these.
6671 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
6672 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6673 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
6674 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
6675 (struct sparc_gregmap, struct sparc_fpregmap)
6676 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6677 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
6678 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
6679 (sparc32_supply_regset, sparc32_collect_gregset)
6680 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
6681 prototypes.
6682 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
6683 (sparc64_linux_ptrace_gregmap): ... this.
6684 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
6685 (_initialize_sparc64_linux_nat): Rename regmaps.
6686 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
6687 (sparc64_linux_core_gregmap): ... this.
6688 (sparc64_linux_supply_core_gregset)
6689 (sparc64_linux_collect_core_gregset)
6690 (sparc64_linux_supply_core_fpregset)
6691 (sparc64_linux_collect_core_fpregset): Rename regmaps.
6692 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
6693 (sparc64_sol2_fpregset): Rename to...
6694 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
6695 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
6696 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
6697 regmaps.
6698 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
6699 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
6700 (sparc64_bsd_fpregset): Rename to...
6701 (struct sparc_gregmap, sparc64_sol2_gregmap)
6702 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
6703 (sparc64_bsd_fpregmap): ... these.
6704 (sparc64_supply_gregset, sparc64_collect_gregset)
6705 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
6706 prototypes.
6707 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
6708 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
6709 (sparc64fbsd_gregmap): ... this.
6710 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
6711 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
6712 Rename regmaps.
6713 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
6714 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
6715 (sparc64nbsd_collect_fpregset): Likewise.
6716 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
6717 (sparc64nbsd_gregmap): ... this.
6718 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
6719 regmaps.
6720 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
6721 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
6722 (sparc64obsd_gregmap): ... this.
6723 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
6724 regmaps.
6725 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
6726 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
6727 (sparc32nbsd_gregmap): ... this.
6728 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
6729 regmaps.
6730
6731 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6732
6733 * score-tdep.c (score7_linux_gregset): New static regset
6734 structure.
6735 (score7_linux_regset_from_core_section): Remove dynamic regset
6736 allocation.
6737 (score_gdbarch_init): Drop allocation of tdep structure.
6738 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
6739
6740 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6741
6742 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
6743 regset structures.
6744 (am33_regset_from_core_section): Remove dynamic regset
6745 allocations.
6746
6747 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6748
6749 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
6750 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
6751 structures.
6752 (mips_linux_regset_from_core_section): Remove dynamic regset
6753 allocations.
6754 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6755 'gregset64', 'fpregset', and 'fpregset64'.
6756 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
6757 deleted tdep fields.
6758
6759 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6760
6761 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
6762 regset structures.
6763 (amd64_regset_from_core_section): Remove dynamic regset
6764 allocations.
6765 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
6766 structure.
6767 (amd64obsd_regset_from_core_section): Remove dynamic regset
6768 allocation.
6769 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
6770 Likewise.
6771 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
6772 x86-common regset supply function.
6773 * i386-tdep.c (i386_collect_gregset): Make static.
6774 (i386_gregset): New global regset structure.
6775 (i386_fpregset, i386_xstateregset): New static regset structures.
6776 (i386_regset_from_core_section): Remove dynamic regset
6777 allocations.
6778 (i386_gdbarch_init): Remove initialization of tdep fields
6779 'gregset', 'fpregset', and 'xstateregset'.
6780 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6781 'fpregset', and 'xstateregset'.
6782 (i386_collect_gregset): Remove prototype.
6783 (i386_gregset): New declaration.
6784 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
6785 structure.
6786 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
6787 allocation.
6788
6789 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6790
6791 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
6792 (arm_linux_vfpregset): New static regset structures.
6793 (arm_linux_regset_from_core_section): Remove dynamic allocation of
6794 regset structures.
6795 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
6796 and 'vfpregset' fields.
6797
6798 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6799
6800 * aarch64-linux-tdep.c (aarch64_linux_gregset)
6801 (aarch64_linux_fpregset): New static regset structures.
6802 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
6803 of regset structures.
6804 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
6805 'fpregset' fields.
6806
6807 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6808
6809 * regset.h (struct regset): Remove gdbarch field.
6810 * regset.c (regset_alloc): Drop initialization of gdbarch field.
6811 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6812 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
6813 Likewise.
6814 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
6815 (ppc32_linux_fpregset, ppc32_linux_vrregset)
6816 (ppc32_linux_vsxregset): Likewise.
6817 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
6818 via the regcache instead of the regset.
6819 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
6820 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
6821 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
6822 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
6823 Likewise.
6824
6825 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6826
6827 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
6828 Constify structures.
6829 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
6830 (alphanbsd_aout_gregset): Likewise.
6831 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
6832 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
6833 Likewise.
6834 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
6835 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
6836 Likewise.
6837 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
6838 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
6839 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
6840 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
6841 * m88k-tdep.c (m88k_gregset): Likewise.
6842 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
6843 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
6844 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6845 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
6846 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
6847 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
6848 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
6849 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
6850 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
6851 Likewise.
6852 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
6853 * sh-tdep.h (sh_corefile_gregset): Likewise.
6854 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
6855 * vax-tdep.c (vax_gregset): Likewise.
6856
6857 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6858
6859 Fix TLS access for -static -pthread.
6860 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
6861 (try_thread_db_load_1): Initialize it.
6862 (thread_db_get_thread_local_address): Call it if LM is zero.
6863 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
6864 * target.h (struct target_ops) (to_get_thread_local_address): Add
6865 load_module_addr comment.
6866
6867 2014-05-21 Pedro Alves <palves@redhat.com>
6868
6869 * dcache.c (dcache_read_memory_partial): If reading the cache line
6870 fails, fallback to reading just the memory the caller wanted.
6871
6872 2014-05-20 Doug Evans <dje@google.com>
6873
6874 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
6875 instead of get_current_arch.
6876
6877 2014-05-20 Pedro Alves <palves@redhat.com>
6878
6879 * NEWS: Mention that compare-sections now works with all targets.
6880
6881 * remote.c (PACKET_qCRC): New enum value.
6882 (remote_verify_memory): Don't send qCRC if the target has no
6883 execution. Use packet_support/packet_ok. If the target doesn't
6884 support the qCRC packet, fallback to a deep memory copy.
6885 (compare_sections_command): Say "target image" instead of "remote
6886 executable".
6887 (_initialize_remote): Add PACKET_qCRC to the list of config
6888 packets that have no associated command. Extend comment.
6889 * target.c (simple_verify_memory, default_verify_memory): New
6890 function.
6891 * target.h (struct target_ops) <to_verify_memory>: Default to
6892 default_verify_memory.
6893 (simple_verify_memory): New declaration.
6894 * target-delegates.c: Regenerate.
6895
6896 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
6897
6898 * record-btrace.c (record_btrace_step_thread): Check for empty history.
6899
6900 2014-05-20 Hui Zhu <hui@codesourcery.com>
6901 Yao Qi <yao@codesourcery.com>
6902
6903 PR backtrace/16558
6904 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
6905 and change address of sp and pc.
6906
6907 2014-05-19 Tom Tromey <tromey@redhat.com>
6908
6909 * gdbtypes.c (rank_function): Use XNEWVEC.
6910 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
6911
6912 2014-05-19 Doug Evans <dje@google.com>
6913
6914 * dwarf2read.c (build_type_psymtabs_1): Renamed from
6915 build_type_unit_groups and moved closer to only caller. Remove
6916 arguments. All references updated. Remove outdated .gdb_index
6917 comment.
6918 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
6919 build_type_psymtabs_1.
6920
6921 2014-05-19 Doug Evans <dje@google.com>
6922
6923 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
6924 n_type_unit_groups, all_type_unit_groups. All uses removed.
6925 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
6926 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
6927 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
6928 (add_type_unit_group_to_table): Delete.
6929
6930 2014-05-19 Doug Evans <dje@google.com>
6931
6932 * eval.c (evaluate_subexp_standard): Add some comments.
6933
6934 2014-05-17 Doug Evans <xdje42@gmail.com>
6935
6936 * progspace.c (remove_program_space): Delete, unused.
6937 * progspace.h (remove_program_space): Ditto.
6938
6939 2014-05-17 Doug Evans <xdje42@gmail.com>
6940
6941 * inferior.c (prune_inferiors): Fix comment.
6942 (remove_inferior_command): Call prune_program_spaces.
6943
6944 2014-05-16 Doug Evans <dje@google.com>
6945
6946 New command line option -D.
6947 * NEWS: Mention it.
6948 * main.c (set_gdb_data_directory): New function.
6949 (captured_main): Recognize -D. Flag error for --data-directory "".
6950 Call set_gdb_data_directory.
6951 (print_gdb_help): Print --data-directory, -D.
6952 * main.h (set_gdb_data_directory): Declare.
6953 * top.c (staged_gdb_datadir): New static global.
6954 (set_gdb_datadir): Call set_gdb_data_directory
6955 (show_gdb_datadir): New function.
6956 (init_main): Update init of data-directory parameter.
6957
6958 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
6959
6960 Import the "dirfd" gnulib module.
6961 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
6962 * gnulib/aclocal.m4: Update.
6963 * gnulib/config.in: Update.
6964 * gnulib/configure: Update.
6965 * gnulib/import/Makefile.am: Update.
6966 * gnulib/import/Makefile.in: Update.
6967 * gnulib/import/dirfd.c: New.
6968 * gnulib/import/m4/dirfd.m4: New.
6969 * gnulib/import/m4/gnulib-cache.m4: Update.
6970 * gnulib/import/m4/gnulib-comp.m4: Update.
6971
6972 2014-05-16 Pierre Muller <muller@sourceware.org>
6973 Yao Qi <yao@codesourcery.com>
6974
6975 * valprint.c (print_wchar): Move the code on checking whether
6976 W is a printable wide char to the default branch of switch
6977 statement below. Call wchar_printable instead of gdb_iswprint.
6978
6979 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
6980
6981 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
6982 ldr.w and ldrd instructions.
6983
6984 2014-05-15 Doug Evans <dje@google.com>
6985
6986 * dwarf2read.c (read_structure_type): Delete outdated comments.
6987
6988 2014-05-14 Tom Tromey <tromey@redhat.com>
6989
6990 * macrocmd.c (print_macro_definition): Reindent.
6991
6992 2014-05-13 Doug Evans <xdje42@gmail.com>
6993
6994 * python/py-cmd.c (cmdpy_completer): Add comment.
6995 (completers): Make const.
6996
6997 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
6998
6999 * infrun.c (resume): Remove should_resume (unused). Move up
7000 declaration of resume_ptid.
7001
7002 2014-05-13 Tom Tromey <tromey@redhat.com>
7003
7004 * language.h (unop_type_check): Remove.
7005 (binop_type_check): Don't declare.
7006
7007 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
7008
7009 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
7010 call to regcache_raw_collect.
7011
7012 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
7013
7014 * mi/mi-console.c (mi_console_raw_packet): Use the value from
7015 mi_console->quote as the quoting character.
7016
7017 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
7018
7019 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
7020
7021 2014-04-29 Tom Tromey <tromey@redhat.com>
7022
7023 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
7024 "show debug varobj".
7025
7026 2014-05-07 Kyle McMartin <kyle@redhat.com>
7027
7028 Pushed by Joel Brobecker <brobecker@adacore.com>.
7029 * aarch64-tdep.c (aarch64_software_single_step): New function.
7030 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
7031 with aarch64_software_single_step.
7032
7033 2014-05-05 Joel Brobecker <brobecker@adacore.com>
7034
7035 GDB 7.7.1 released.
7036
7037 2014-05-05 Keith Seitz <keiths@redhat.com>
7038
7039 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
7040 variable or history value is successfully parsed.
7041
7042 2014-05-05 Yao Qi <yao@codesourcery.com>
7043 Pedro Alves <palves@redhat.com>
7044
7045 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
7046 address of blocks that intersects the requested range. Trim
7047 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
7048 sections.
7049 * ctf.c (ctf_xfer_partial): Likewise.
7050
7051 2014-05-05 Yao Qi <yao@codesourcery.com>
7052
7053 * printcmd.c (display_command): Remove the check to
7054 target_has_execution.
7055
7056 2014-05-03 Mark Kettenis <kettenis@gnu.org>
7057
7058 * ppcobsd-nat.c: Include "obsd-nat.h".
7059 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
7060 add_target.
7061 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
7062
7063 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
7064
7065 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
7066 and 16-bit signed and unsigned arguments. Update comment.
7067 (stap_parse_probe_arguments): Extend code to handle such
7068 arguments. Use warning instead of complaint to notify about
7069 unrecognized bitness.
7070
7071 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
7072
7073 PR breakpoints/16889
7074 * stap-probe.c (stap_parse_probe_arguments): Simplify
7075 check for non-prefixed probes (i.e., probes whose
7076 arguments do not start with "N@"). Always set the
7077 argument type to a sane value.
7078
7079 2014-05-01 David Taylor <dtaylor@emc.com>
7080
7081 * remote.c (compare_sections_command): Add -r option to compare
7082 all loadable read-only sections.
7083
7084 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
7085
7086 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
7087 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
7088 Update all callers.
7089 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
7090 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
7091 Remove unused CORE_ADDR argument. Update all callers.
7092
7093 2014-04-29 Pedro Alves <palves@redhat.com>
7094
7095 * remote.c (struct packet_config) <detect>: Extend comment.
7096 (add_packet_config_cmd): Don't set the config's detect or support
7097 fields here.
7098 (init_all_packet_configs): Also initialize the config's 'detect'
7099 field.
7100 (reset_all_packet_configs_support): New function.
7101 (remote_open_1): Call reset_all_packet_configs_support instead of
7102 init_all_packet_configs.
7103 (_initialize_remote): Initialize all packet configs. Assert that
7104 all packets have an associated command, except a few known
7105 outliers.
7106
7107 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7108
7109 * dwarf2read.c (read_subrange_type): Handle dynamic
7110 DW_AT_lower_bound attributes.
7111
7112 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7113
7114 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
7115 dynamic bounds before computing its upper bound.
7116 (ada_discrete_type_low_bound): Same as above with the lower bound.
7117
7118 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7119
7120 * dwarf2read.c (is_dynamic_type): Return true for dynamic
7121 range types. Adjust the array handling implementation to
7122 take advantage of this change.
7123 (resolve_dynamic_range): New function, mostly extracted from
7124 resolve_dynamic_bounds.
7125 (resolve_dynamic_array): New function, mostly extracted from
7126 resolve_dynamic_bounds.
7127 (resolve_dynamic_bounds): Delete.
7128 (resolve_dynamic_type): Reimplement. Add handling of
7129 TYPE_CODE_RANGE types.
7130
7131 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7132
7133 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
7134 handling of parallel ___XA types.
7135
7136 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7137
7138 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
7139 unnecessary second call to static_unwrap_type.
7140
7141 2014-04-27 Hui Zhu <hui@codesourcery.com>
7142
7143 * stack.c (print_frame_info): Call do_gdb_disassembly with
7144 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
7145
7146 2014-04-26 Doug Evans <xdje42@gmail.com>
7147
7148 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
7149
7150 2014-04-25 Pedro Alves <palves@redhat.com>
7151
7152 PR server/16255
7153 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
7154 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
7155 and newline from built string.
7156 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
7157 (linux_ptrace_attach_fail_reason): ... this.
7158 * linux-nat.c (linux_nat_attach): Adjust to use
7159 linux_ptrace_attach_fail_reason.
7160
7161 2014-04-25 Pedro Alves <palves@redhat.com>
7162
7163 * remote.c (struct remote_state): Remove multi_process_aware,
7164 non_stop_aware, cond_tracepoints, cond_breakpoints,
7165 breakpoint_commands, fast_tracepoints, static_tracepoints,
7166 install_in_trace, disconnected_tracing,
7167 enable_disable_tracepoints, string_tracing, and
7168 augmented_libraries_svr4_read fields.
7169 (remote_multi_process_p): Move further below in the file.
7170 (struct packet_config): Add comments.
7171 (update_packet_config): Delete function.
7172 (show_packet_config_cmd): Use packet_config_support.
7173 (add_packet_config_cmd): Use NULL as set callback.
7174 (packet_ok): "set remote foo-packet"-style commands no longer
7175 change config->supported -- adjust.
7176 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
7177 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
7178 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
7179 (PACKET_QNonStop, PACKET_multiprocess_feature)
7180 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
7181 (PACKET_DisconnectedTracing_feature)
7182 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
7183 (set_remote_protocol_packet_cmd): Delete function.
7184 (packet_config_support, packet_support): New functions.
7185 (set_remote_protocol_Z_packet_cmd): Don't call
7186 update_packet_config.
7187 (remote_query_attached, remote_pass_signals)
7188 (remote_program_signals, remote_threads_info)
7189 (remote_threads_extra_info, remote_start_remote): Use
7190 packet_support.
7191 (remote_start_remote): Use packet_config_support and
7192 packet_support.
7193 (init_all_packet_configs): Set all packets to unknown support,
7194 instead of calling update_packet_config.
7195 (remote_check_symbols): Use packet_support.
7196 (remote_supported_packet): Unconditionally set the packet config's
7197 support status.
7198 (remote_multi_process_feature, remote_non_stop_feature)
7199 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
7200 (remote_breakpoint_commands_feature)
7201 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
7202 (remote_install_in_trace_feature)
7203 (remote_disconnected_tracing_feature)
7204 (remote_enable_disable_tracepoint_feature)
7205 (remote_string_tracing_feature)
7206 (remote_augmented_libraries_svr4_read_feature): Delete functions.
7207 (remote_protocol_features): Adjust to use remote_supported_packet
7208 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
7209 "ConditionalTracepoints", "ConditionalBreakpoints",
7210 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
7211 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
7212 "EnableDisableTracepoints", and "tracenz".
7213 (remote_query_supported): Use packet_support.
7214 (remote_open_1): Adjust.
7215 (extended_remote_attach_1): Use packet_support. Switch on the
7216 result of packet_ok instead of checking whether the packet ended
7217 up disabled.
7218 (remote_vcont_resume): Use packet_support.
7219 (remote_resume, remote_stop_ns, fetch_register_using_p)
7220 (remote_prepare_to_store, store_register_using_P)
7221 (check_binary_download, remote_write_bytes): Use packet_support.
7222 (remote_vkill): Use packet_support. Switch on the result of
7223 packet_ok instead of checking whether the packet ended up
7224 disabled.
7225 (extended_remote_supports_disable_randomization): Use
7226 packet_support.
7227 (extended_remote_run): Switch on the result of packet_ok instead
7228 of checking whether the packet ended up disabled.
7229 (remote_insert_breakpoint, remote_remove_breakpoint)
7230 (remote_insert_watchpoint, remote_remove_watchpoint)
7231 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
7232 packet_support.
7233 (remote_search_memory): Use packet_config_support.
7234 (remote_get_thread_local_address, remote_get_tib_address)
7235 (remote_hostio_send_command, remote_can_execute_reverse): Use
7236 packet_support.
7237 (remote_supports_cond_tracepoints)
7238 (remote_supports_cond_breakpoints)
7239 (remote_supports_fast_tracepoints)
7240 (remote_supports_static_tracepoints)
7241 (remote_supports_install_in_trace)
7242 (remote_supports_enable_disable_tracepoint)
7243 (remote_supports_string_tracing)
7244 (remote_can_run_breakpoint_commands): Rewrite, checking whether
7245 the packet config says the feature is enabled or disabled.
7246 (remote_download_tracepoint, remote_trace_set_readonly_regions)
7247 (remote_get_trace_status): Use packet_support.
7248 (remote_set_disconnected_tracing): Adjust to check whether the
7249 feature is enabled with packet_support.
7250 (remote_set_trace_buffer_size, remote_use_agent)
7251 (remote_can_use_agent, remote_supports_btrace): Use
7252 packet_support.
7253 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
7254 Use packet_config_support.
7255 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
7256 the packet config says the feature is enabled or disabled.
7257 (set_range_stepping): Use packet_support.
7258
7259 2014-04-25 Tom Tromey <tromey@redhat.com>
7260
7261 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
7262 argument.
7263
7264 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
7265
7266 * NEWS: Mention support for C99 variable length arrays.
7267
7268 2014-04-24 Joel Brobecker <brobecker@adacore.com>
7269
7270 * ada-lang.c (standard_exc): Expand introductory comment.
7271
7272 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
7273 Walfred Tedeschi <walfred.tedeschi@intel.com>
7274
7275 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
7276 AVX512 registers.
7277 (amd64_linux_read_description): Add code to handle AVX512 xstate
7278 mask and return respective tdesc.
7279 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
7280 and features/i386/x32-avx512-linux.c.
7281 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
7282 (amd64_linux_core_read_description): Add code to handle AVX512
7283 xstate mask and return respective tdesc.
7284 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
7285 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
7286 calculation.
7287 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
7288 (tdesc_amd64_avx512_linux): New prototype.
7289 (tdesc_x32_avx512_linux): Likewise.
7290 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
7291 features/i386/x32-avx512.c.
7292 (amd64_ymm_avx512_names): New register names for pseudo
7293 registers YMM16-31.
7294 (amd64_ymmh_avx512_names): New register names for raw registers
7295 YMMH16-31.
7296 (amd64_k_names): New register names for K registers.
7297 (amd64_zmmh_names): New register names for ZMM raw registers.
7298 (amd64_zmm_names): New registers names for ZMM pseudo registers.
7299 (amd64_xmm_avx512_names): New register names for XMM16-31
7300 registers.
7301 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
7302 registers.
7303 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
7304 if feature is present.
7305 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
7306 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
7307 (AMD64_NUM_REGS): Adjust to new number of registers.
7308 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
7309 registers supplied via XSTATE by AVX512 registers.
7310 (i386_linux_read_description): Add case for AVX512.
7311 * i386-linux-tdep.c: Include i386-avx512-linux.c.
7312 (i386_linux_gregset_reg_offset): Add AVX512 registers.
7313 (i386_linux_core_read_description): Add case for AVX512.
7314 (i386_linux_init_abi): Install supported register note section
7315 for AVX512.
7316 (_initialize_i386_linux_tdep): Add call to tdesc init function for
7317 AVX512.
7318 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
7319 registers to be number of zmm7h + 1.
7320 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
7321 * i386-tdep.c: Include features/i386/i386-avx512.c.
7322 (i386_zmm_names): Add ZMM pseudo register names array.
7323 (i386_zmmh_names): Add ZMM raw register names array.
7324 (i386_k_names): Add K raw register names array.
7325 (num_lower_zmm_regs): Add constant for the number of lower ZMM
7326 registers. AVX512 has 16 more ZMM registers than there are YMM
7327 registers.
7328 (i386_zmmh_regnum_p): Add function to look up register number of
7329 ZMM raw registers.
7330 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
7331 (i386_k_regnum_p): Likewise for K raw registers.
7332 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
7333 registers added by AVX512.
7334 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
7335 registers added by AVX512.
7336 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
7337 added by AVX512.
7338 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
7339 (i386_pseudo_register_name): Add ZMM pseudo registers.
7340 (i386_zmm_type): Construct and return vector registers type for ZMM
7341 registers.
7342 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
7343 ZMM0-31 pseudo registers and K registers.
7344 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
7345 and YMM16-31 registers from register cache.
7346 (i386_pseudo_register_write): Add code to write K, ZMM and
7347 YMM16-31 registers.
7348 (i386_register_reggroup_p): Add code to include/exclude AVX512
7349 registers in/from respective register groups.
7350 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
7351 registers if feature is present in xcr0.
7352 (i386_gdbarch_init): Add code to initialize AVX512 feature
7353 variables in tdep structure, wire in pseudo registers and call
7354 initialize_tdesc_i386_avx512.
7355 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
7356 variables.
7357 (i386_regnum): Add AVX512 registers.
7358 (I386_SSE_NUM_REGS): New define for number of SSE registers.
7359 (I386_AVX_NUM_REGS): Likewise for AVX registers.
7360 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
7361 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
7362 512 bits wide.
7363 (i386_xmm_avx512_regnum_p): New prototype for register look up.
7364 (i386_ymm_avx512_regnum_p): Likewise.
7365 (i386_k_regnum_p): Likewise.
7366 (i386_zmm_regnum_p): Likewise.
7367 (i386_zmmh_regnum_p): Likewise.
7368 * i387-tdep.c : Update year in copyright notice.
7369 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
7370 XSAVE buffer.
7371 (XSAVE_YMM_AVX512_ADDR): New macro.
7372 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
7373 XSAVE buffer.
7374 (XSAVE_XMM_AVX512_ADDR): New macro.
7375 (xsave_avx512_k_offset): New table for K register offsets in
7376 XSAVE buffer.
7377 (XSAVE_AVX512_K_ADDR): New macro.
7378 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
7379 in XSAVE buffer.
7380 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
7381 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
7382 buffer.
7383 (i387_collect_xsave): Add code to collect AVX512 registers from
7384 XSAVE buffer.
7385 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
7386 of XMM16-31 registers.
7387 (I387_NUM_K_REGS): New define for number of K registers.
7388 (I387_K0_REGNUM): New define for K0 register number.
7389 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
7390 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
7391 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
7392 registers.
7393 (I387_YMM16H_REGNUM): New define for YMM16H register number.
7394 (I387_XMM16_REGNUM): New define for XMM16 register number.
7395 (I387_YMM0_REGNUM): New define for YMM0 register number.
7396 (I387_KEND_REGNUM): New define for last K register number.
7397 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
7398 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
7399 number.
7400 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
7401 number.
7402 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
7403 size.
7404 * features/Makefile: Add AVX512 related files.
7405 * features/i386/32bit-avx512.xml: New file.
7406 * features/i386/64bit-avx512.xml: Likewise.
7407 * features/i386/amd64-avx512-linux.c: Likewise.
7408 * features/i386/amd64-avx512-linux.xml: Likewise.
7409 * features/i386/amd64-avx512.c: Likewise.
7410 * features/i386/amd64-avx512.xml: Likewise.
7411 * features/i386/i386-avx512-linux.c: Likewise.
7412 * features/i386/i386-avx512-linux.xml: Likewise.
7413 * features/i386/i386-avx512.c: Likewise.
7414 * features/i386/i386-avx512.xml: Likewise.
7415 * features/i386/x32-avx512-linux.c: Likewise.
7416 * features/i386/x32-avx512-linux.xml: Likewise.
7417 * features/i386/x32-avx512.c: Likewise.
7418 * features/i386/x32-avx512.xml: Likewise.
7419 * regformats/i386/amd64-avx512-linux.dat: New file.
7420 * regformats/i386/amd64-avx512.dat: Likewise.
7421 * regformats/i386/i386-avx512-linux.dat: Likewise.
7422 * regformats/i386/i386-avx512.dat: Likewise.
7423 * regformats/i386/x32-avx512-linux.dat: Likewise.
7424 * regformats/i386/x32-avx512.dat: Likewise.
7425 * NEWS: Add note about new support for AVX512.
7426
7427
7428 2014-04-23 Pedro Alves <palves@redhat.com>
7429
7430 * breakpoint.c (insert_bp_location): Tolerate errors if the
7431 breakpoint is set in a user-loaded objfile.
7432 (remove_breakpoint_1): Likewise. Also tolerate errors if the
7433 location is marked shlib_disabled. If the breakpoint is set in a
7434 user-loaded objfile is a GDB-side memory breakpoint, validate it
7435 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
7436 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
7437 flag.
7438 * mem-break.c (memory_validate_breakpoint): New function.
7439 * objfiles.c (userloaded_objfile_contains_address_p): New
7440 function.
7441 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
7442 * target.h (memory_validate_breakpoint): New declaration.
7443
7444 2014-04-23 Pedro Alves <palves@redhat.com>
7445
7446 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
7447 the breakpoint is set in a shared library, only suppress
7448 errors for software breakpoints, not hardware breakpoints.
7449
7450 2014-04-22 Pedro Alves <palves@redhat.com>
7451
7452 * infrun.c (schedlock_applies): New function, factored out from
7453 find_thread_needs_step_over.
7454 (find_thread_needs_step_over): Use it.
7455 (switch_back_to_stepped_thread): Always clear trap_expected if the
7456 step over is finished. Return early if scheduler locking applies.
7457 Look for the stepping thread and a potential step-over thread with
7458 a single loop.
7459 (currently_stepping_or_nexting_callback): Delete.
7460
7461 2014-04-22 Nick Clifton <nickc@redhat.com>
7462
7463 * NEWS: Mention that ARM sim now supports tracing.
7464
7465 2014-04-22 Yao Qi <yao@codesourcery.com>
7466
7467 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
7468 to ...
7469 * tracefile.c (tracefile_fetch_registers): ... it. New
7470 function.
7471 * tracefile.h (tracefile_fetch_registers): Declare.
7472 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
7473 tracefile_fetch_registers.
7474
7475 2014-04-19 Eli Zaretskii <eliz@gnu.org>
7476
7477 PR gdb/14018
7478 * windows-nat.c (thread_rec): Don't display a warning when
7479 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
7480 fails for any reason, set th->suspended to -1, so that we don't
7481 try to resume such a thread. Also, don't return NULL in these
7482 cases, to avoid completely ruin the session due to "PC register is
7483 not available" error.
7484 (do_windows_fetch_inferior_registers): Check errors in
7485 GetThreadContext call.
7486 (windows_continue): Accept an additional argument KILLED; if not
7487 zero, ignore errors in the SetThreadContext call, since the
7488 inferior was killed and is shutting down.
7489 (windows_resume, get_windows_debug_event)
7490 (windows_create_inferior, windows_mourn_inferior)
7491 (windows_kill_inferior): All callers of windows_continue changed
7492 to adjust to its new calling sequence.
7493
7494 2014-04-19 Yao Qi <yao@codesourcery.com>
7495
7496 * ctf.c (ctf_open): Call post_create_inferior.
7497
7498 2014-04-19 Yao Qi <yao@codesourcery.com>
7499
7500 * ctf.c (handle_id): New static variable.
7501 (ctf_open_dir): Get handle_id from bt_context_add_trace return
7502 value. Get the declaration of event "register" and get length
7503 of field "contents".
7504
7505 2014-04-19 Yao Qi <yao@codesourcery.com>
7506
7507 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
7508
7509 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
7510
7511 * valops.c (oload_method_static): Remove unnecessary argument
7512 METHOD. Update all callers.
7513
7514 2014-04-18 Pedro alves <palves@redhat.com>
7515 Tom Tromey <tromey@redhat.com>
7516
7517 PR backtrace/15558
7518 * frame.c (get_prev_frame_1): Rename to ...
7519 (get_prev_frame_always): ... this, and make extern. Adjust.
7520 (skip_artificial_frames): Use get_prev_frame_always.
7521 (frame_unwind_caller_id, frame_pop, get_prev_frame)
7522 (get_frame_unwind_stop_reason): Adjust to rename.
7523 * frame.h (get_prev_frame_always): Declare.
7524 * inline-frame.c: Include frame.h.
7525 (inline_frame_this_id): Use get_prev_frame_always.
7526
7527 2014-04-18 Tristan Gingold <gingold@adacore.com>
7528
7529 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
7530 code by using bfd_mach_o_get_base_address.
7531
7532 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
7533
7534 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
7535 (spu_ax_pseudo_register_collect): New function.
7536 (spu_ax_pseudo_register_push_stack): Likewise.
7537 (spu_dwarf_reg_to_regnum): Likewise.
7538 (spu_gdbarch_init): Install them. Append DWARF unwinders.
7539
7540 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
7541
7542 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
7543 Replace FRAME argument with FRAME_ID.
7544 * gdbarch.c, gdbarch.h: Regenerate.
7545 * findvar.c (default_value_from_register): Add GDBARCH argument;
7546 replace FRAME by FRAME_ID. No longer call get_frame_id.
7547 (value_from_register): Update call to gdbarch_value_from_register.
7548 * value.h (default_value_from_register): Update prototype.
7549 * s390-linux-tdep.c (s390_value_from_register): Update interface
7550 and call to default_value_from_register.
7551 * spu-tdep.c (spu_value_from_register): Likewise.
7552
7553 * findvar.c (address_from_register): Remove TYPE argument.
7554 Do not call value_from_register; use gdbarch_value_from_register
7555 with null_frame_id instead.
7556 * value.h (address_from_register): Update prototype.
7557 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
7558 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
7559 address_from_register interface change.
7560
7561 2014-04-17 Yao Qi <yao@codesourcery.com>
7562
7563 * gdbtypes.h: Update comments to link to types and macros'
7564 definitions.
7565
7566 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
7567
7568 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
7569
7570 2014-04-16 Keith Seitz <keiths@redhat.com>
7571
7572 PR gdb/15827
7573 * dwarf2read.c (skip_one_die): Check that all relative-offset
7574 sibling DIEs fall within range of the current reader's buffer.
7575 (read_partial_die): Likewise.
7576
7577 2014-04-16 Keith Seitz <keiths@redhat.com>
7578
7579 PR c++/16597
7580 * cp-namespace.c (lookup_symbol_file): If the type name of
7581 `this' is NULL, return immediately.
7582
7583 2014-04-14 Keith Seitz <keiths@redhat.com>
7584
7585 PR c++/16253
7586 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
7587 from symbol_matches_domain in symtab.c. All local callers
7588 of symbol_matches_domain updated.
7589 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
7590 search STRUCT_DOMAIN.
7591 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
7592 independently. standard_lookup will do that automatically.
7593 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
7594 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7595 (cp_lookup_symbol_in_namespace): Likewise.
7596 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
7597 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
7598 may return a STRUCT_DOMAIN match.
7599 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
7600 * cp-support.c: Include language.h.
7601 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
7602 VAR_DOMAIN.
7603 * psymtab.c (match_partial_symbol): Compare the requested
7604 domain with the symbol's domain directly.
7605 (lookup_partial_symbol): Likewise.
7606 * symtab.c (lookup_symbol_in_language): Explain when/why
7607 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7608 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
7609 appropriate languages.
7610 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
7611 and moved to ada-lang.c
7612 (lookup_block_symbol): Explain that this function only returns
7613 symbol matching the requested DOMAIN.
7614 Compare the requested domain with the symbol's domain directly.
7615 (iterate_over_symbols): Compare the requested domain with the
7616 symbol's domain directly.
7617 * symtab.h (symbol_matches_domain): Remove.
7618
7619 2014-04-14 Tom Tromey <tromey@redhat.com>
7620
7621 PR c++/15246:
7622 * c-exp.y (type_aggregate_p): New function.
7623 (qualified_name, classify_inner_name): Use it.
7624 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
7625 and TYPE_TARGET_TYPE of an enum type.
7626 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
7627 an enum type.
7628 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
7629 handle TYPE_DECLARED_CLASS.
7630 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
7631 types.
7632 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
7633 * valops.c (enum_constant_from_type): New function.
7634 (value_aggregate_elt): Use it.
7635 * cp-namespace.c (cp_lookup_nested_symbol): Handle
7636 TYPE_CODE_ENUM.
7637
7638 2014-04-14 Tom Tromey <tromey@redhat.com>
7639
7640 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
7641 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
7642 const.
7643 * value.h (value_aggregate_elt): Update.
7644
7645 2014-04-14 Tom Tromey <tromey@redhat.com>
7646
7647 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
7648
7649 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7650
7651 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7652 (evaluate_subexp_standard): Pass noside argument.
7653 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7654 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7655 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7656 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7657 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7658
7659 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7660
7661 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7662 points to a constant blob.
7663
7664 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7665
7666 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7667 property and store it as the high bound and flag the range accordingly.
7668 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7669 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7670 * gdbtypes.h (enum range_flags): New enum.
7671 (struct range_bounds): Add flags member.
7672
7673 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7674
7675 * c-typeprint.c (c_type_print_varspec_suffix): Added
7676 check for not yet resolved high bound. If unresolved, print
7677 "variable length" string to the console instead of random
7678 length.
7679
7680 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7681
7682 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
7683 value.
7684 (ada_template_to_fixed_record_type_1): Likewise.
7685 (ada_to_fixed_type_1): Likewise.
7686 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7687 (cp_print_value): Likewise.
7688 * d-valprint.c (dynamic_array_type): Likewise.
7689 * findvar.c (address_of_variable): Likewise.
7690 * jv-valprint.c (java_value_print): Likewise.
7691 * valops.c (value_ind): Likewise.
7692 * value.c (coerce_ref): Likewise.
7693
7694 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7695
7696 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7697 value and retrieve the dynamic type size.
7698
7699 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7700
7701 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7702 passed to sizeof is dynamic evaluate the argument to compute the length.
7703
7704 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7705 Joel Brobecker <brobecker@adacore.com>
7706
7707 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7708 (dwarf2_evaluate_property): New function.
7709 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7710 * dwarf2read.c (attr_to_dynamic_prop): New function.
7711 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7712 attribute.
7713 * gdbtypes.c: Include dwarf2loc.h.
7714 (is_dynamic_type): New function.
7715 (resolve_dynamic_type): New function.
7716 (resolve_dynamic_bounds): New function.
7717 (get_type_length): New function.
7718 (check_typedef): Use get_type_length to compute type length.
7719 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7720 (TYPE_LOW_BOUND_KIND): New macro.
7721 (is_dynamic_type): New function prototype.
7722 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7723 to resolve dynamic properties of the type. Update comment.
7724 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7725
7726 2014-04-14 Richard Henderson <rth@redhat.com>
7727
7728 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
7729
7730 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
7731 Doug Evans <xdje42@gmail.com>
7732
7733 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
7734 dereference TYPE_CODE_REF values.
7735
7736 2014-04-11 Joel Brobecker <brobecker@adacore.com>
7737
7738 Revert the following changes due to regressions:
7739
7740 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7741 (dwarf2_evaluate_property): New function.
7742 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7743 * dwarf2read.c (attr_to_dynamic_prop): New function.
7744 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7745 attribute.
7746 * gdbtypes.c: Include dwarf2loc.h.
7747 (is_dynamic_type): New function.
7748 (resolve_dynamic_type): New function.
7749 (resolve_dynamic_bounds): New function.
7750 (get_type_length): New function.
7751 (check_typedef): Use get_type_length to compute type length.
7752 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7753 (TYPE_LOW_BOUND_KIND): New macro.
7754 (is_dynamic_type): New function prototype.
7755 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7756 to resolve dynamic properties of the type. Update comment.
7757 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7758
7759 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7760 passed to sizeof is dynamic evaluate the argument to compute the length.
7761
7762 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7763 value and retrieve the dynamic type size.
7764
7765 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7766 (ada_template_to_fixed_record_type_1): Likewise.
7767 (ada_to_fixed_type_1): Likewise.
7768 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7769 (cp_print_value): Likewise.
7770 * d-valprint.c (dynamic_array_type): Likewise.
7771 * eval.c (evaluate_subexp_with_coercion): Likewise.
7772 * findvar.c (address_of_variable): Likewise.
7773 * jv-valprint.c (java_value_print): Likewise.
7774 * valops.c (value_ind): Likewise.
7775 * value.c (coerce_ref): Likewise.
7776
7777 * c-typeprint.c (c_type_print_varspec_suffix): Added
7778 check for not yet resolved high bound. If unresolved, print
7779 "variable length" string to the console instead of random
7780 length.
7781
7782 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7783 property and store it as the high bound and flag the range accordingly.
7784 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7785 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7786 * gdbtypes.h (enum range_flags): New enum.
7787 (struct range_bounds): Add flags member.
7788
7789 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7790 points to a constant blob.
7791
7792 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7793 (evaluate_subexp_standard): Pass noside argument.
7794 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7795 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7796 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7797 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7798 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7799
7800 2014-04-11 Keith Seitz <keiths@redhat.com>
7801
7802 PR c++/16675
7803 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
7804 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
7805 reference types.
7806
7807 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7808
7809 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7810 (evaluate_subexp_standard): Pass noside argument.
7811 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7812 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7813 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7814 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7815 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7816
7817 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7818
7819 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7820 points to a constant blob.
7821
7822 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7823
7824 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7825 property and store it as the high bound and flag the range accordingly.
7826 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7827 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7828 * gdbtypes.h (enum range_flags): New enum.
7829 (struct range_bounds): Add flags member.
7830
7831 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7832
7833 * c-typeprint.c (c_type_print_varspec_suffix): Added
7834 check for not yet resolved high bound. If unresolved, print
7835 "variable length" string to the console instead of random
7836 length.
7837
7838 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7839
7840 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7841 (ada_template_to_fixed_record_type_1): Likewise.
7842 (ada_to_fixed_type_1): Likewise.
7843 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7844 (cp_print_value): Likewise.
7845 * d-valprint.c (dynamic_array_type): Likewise.
7846 * eval.c (evaluate_subexp_with_coercion): Likewise.
7847 * findvar.c (address_of_variable): Likewise.
7848 * jv-valprint.c (java_value_print): Likewise.
7849 * valops.c (value_ind): Likewise.
7850 * value.c (coerce_ref): Likewise.
7851
7852 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7853
7854 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7855 value and retrieve the dynamic type size.
7856
7857 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7858
7859 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7860 passed to sizeof is dynamic evaluate the argument to compute the length.
7861
7862 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7863
7864 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7865 (dwarf2_evaluate_property): New function.
7866 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7867 * dwarf2read.c (attr_to_dynamic_prop): New function.
7868 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7869 attribute.
7870 * gdbtypes.c: Include dwarf2loc.h.
7871 (is_dynamic_type): New function.
7872 (resolve_dynamic_type): New function.
7873 (resolve_dynamic_bounds): New function.
7874 (get_type_length): New function.
7875 (check_typedef): Use get_type_length to compute type length.
7876 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7877 (TYPE_LOW_BOUND_KIND): New macro.
7878 (is_dynamic_type): New function prototype.
7879 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7880 to resolve dynamic properties of the type. Update comment.
7881 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7882
7883 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7884
7885 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
7886 declaring high/low bounds and change uses accordingly. Call
7887 create_range_type instead of create_static_range_type.
7888 * gdbtypes.c (create_range_type): New function.
7889 (create_range_type): Convert bounds into struct bound_prop and pass
7890 them to create_range_type.
7891 * gdbtypes.h (struct bound_prop): New struct.
7892 (create_range_type): New function prototype.
7893 (struct range_bounds): Use struct bound_prop instead of LONGEST for
7894 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
7895 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
7896 part of the bound.
7897 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
7898
7899 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7900
7901 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
7902 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
7903 * ada-lang.c: All uses of create_range_type updated.
7904 * coffread.c: All uses of create_range_type updated.
7905 * dwarf2read.c: All uses of create_range_type updated.
7906 * f-exp.y: All uses of create_range_type updated.
7907 * m2-valprint.c: All uses of create_range_type updated.
7908 * mdebugread.c: All uses of create_range_type updated.
7909 * stabsread.c: All uses of create_range_type updated.
7910 * valops.c: All uses of create_range_type updated.
7911 * valprint.c: All uses of create_range_type updated.
7912
7913 2014-04-10 Pedro Alves <palves@redhat.com>
7914
7915 * breakpoint.c (single_step_breakpoints)
7916 (single_step_gdbarch): Move up in the file.
7917 (one_breakpoint_xfer_memory): New function, factored out from ...
7918 (breakpoint_xfer_memory): ... here. Also process single-step
7919 breakpoints.
7920
7921 2014-04-09 Tristan Gingold <gingold@adacore.com>
7922
7923 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
7924 comments.
7925 (darwin_decode_exception_message): Free port only after use.
7926
7927 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
7928
7929 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
7930 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
7931 when setting the size of call_length.
7932
7933 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
7934
7935 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
7936 dereference TYPE_CODE_REF values.
7937
7938 2014-04-07 Joel Brobecker <brobecker@adacore.com>
7939
7940 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
7941 end of warning message.
7942
7943 2014-04-03 Doug Evans <dje@google.com>
7944
7945 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
7946 of stub_comp_unit_die, stub_comp_dir is non-NULL.
7947
7948 2014-04-02 Alan Modra <amodra@gmail.com>
7949
7950 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
7951 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
7952 (struct symbol_file_add_from_memory_args): Add size field.
7953 (find_vdso_size): New function.
7954 (add_vsyscall_page): Attempt to find vdso size.
7955
7956 2014-04-01 Doug Evans <dje@google.com>
7957
7958 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
7959
7960 2014-04-01 Tristan Gingold <gingold@adacore.com>
7961
7962 * darwin-nat.c (darwin_encode_reply): Add prototype.
7963 (darwin_decode_exception_message): Reply to unknown inferiors.
7964 (darwin_decode_message): Handle message by id. Ignore message
7965 to unknown inferior.
7966 (darwin_wait): Discard unknown messages, add debug trace.
7967
7968 2014-03-31 Doug Evans <dje@google.com>
7969
7970 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
7971 comp_dir_string.
7972
7973 2014-03-31 Doug Evans <dje@google.com>
7974
7975 New option "set print symbol-loading".
7976 * NEWS: Mention it.
7977 * solib.c (solib_read_symbols): Only print symbol loading messages
7978 if requested.
7979 (solib_add): If symbol loading is in "brief" mode, notify user
7980 symbols are being loaded.
7981 (reload_shared_libraries_1): Ditto.
7982 * symfile.c (print_symbol_loading_off): New static global.
7983 (print_symbol_loading_brief): New static global.
7984 (print_symbol_loading_full): New static global.
7985 (print_symbol_loading_enums): New static global.
7986 (print_symbol_loading): New static global.
7987 (print_symbol_loading_p): New function.
7988 (symbol_file_add_with_addrs): Only print symbol loading messages
7989 if requested.
7990 (_initialize_symfile): Register "print symbol-loading" set/show
7991 command.
7992 * symfile.h (print_symbol_loading_p): Declare.
7993
7994 2014-03-30 Doug Evans <xdje42@gmail.com>
7995
7996 * infrun.c (set_last_target_status): New function.
7997 (handle_inferior_event): Call it.
7998
7999 2014-03-30 Doug Evans <xdje42@gmail.com>
8000
8001 * inferior.h (enum stop_kind): Improve comment.
8002
8003 2014-03-28 Joel Brobecker <brobecker@adacore.com>
8004
8005 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
8006 a reference, strip the reference layer before calling
8007 the lang_ops value_has_mutated callback.
8008
8009 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
8010
8011 Remove some globals from our parser.
8012 * language.c (unk_lang_parser): Add "struct parser_state"
8013 argument.
8014 * language.h (struct language_defn) <la_parser>: Likewise.
8015 * parse.c (expout, expout_size, expout_ptr): Remove variables.
8016 (initialize_expout): Add "struct parser_state" argument.
8017 Rewrite function to use the parser state.
8018 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
8019 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
8020 write_exp_elt_longcst, write_exp_elt_dblcst,
8021 write_exp_elt_decfloatcst, write_exp_elt_type,
8022 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
8023 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
8024 write_dollar_variable): Likewise.
8025 (parse_exp_in_context_1): Use parser state.
8026 (insert_type_address_space): Add "struct parser_state" argument.
8027 Use parser state.
8028 (increase_expout_size): New function.
8029 * parser-defs.h: Forward declare "struct language_defn" and
8030 "struct parser_state".
8031 (expout, expout_size, expout_ptr): Remove extern declarations.
8032 (parse_gdbarch, parse_language): Rewrite macro declarations to
8033 accept the parser state.
8034 (struct parser_state): New struct.
8035 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
8036 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
8037 write_exp_elt_decfloatcst, write_exp_elt_type,
8038 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
8039 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
8040 write_exp_msymbol, write_dollar_variable,
8041 mark_struct_expression, insert_type_address_space): Add "struct
8042 parser_state" argument.
8043 (increase_expout_size): New function.
8044 * utils.c (do_clear_parser_state): New function.
8045 (make_cleanup_clear_parser_state): Likewise.
8046 * utils.h (make_cleanup_clear_parser_state): New function
8047 prototype.
8048 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
8049 Update calls to write_exp* in order to pass the parser state.
8050 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
8051 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
8052 (i386_stap_parse_special_token_three_arg_disp): Likewise.
8053 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
8054 * stap-probe.c (stap_parse_register_operand): Likewise.
8055 (stap_parse_single_operand): Likewise.
8056 (stap_parse_argument_1): Likewise.
8057 (stap_parse_argument): Use parser state.
8058 * stap-probe.h: Include "parser-defs.h".
8059 (struct stap_parse_info) <pstate>: New field.
8060 * c-exp.y (parse_type): Rewrite to use parser state.
8061 (yyparse): Redefine to c_parse_internal.
8062 (pstate): New global variable.
8063 (parse_number): Add "struct parser_state" argument.
8064 (write_destructor_name): Likewise.
8065 (type_exp): Update calls to write_exp* and similars in order to
8066 use parser state.
8067 (exp1, exp, variable, qualified_name, space_identifier,
8068 typename, typebase): Likewise.
8069 (write_destructor_name, parse_number, lex_one_token,
8070 classify_name, classify_inner_name, c_parse): Add "struct
8071 parser_state" argument. Update function to use parser state.
8072 * c-lang.h: Forward declare "struct parser_state".
8073 (c_parse): Add "struct parser_state" argument.
8074 * ada-exp.y (parse_type): Rewrite macro to use parser state.
8075 (yyparse): Redefine macro to ada_parse_internal.
8076 (pstate): New variable.
8077 (write_int, write_object_renaming, write_var_or_type,
8078 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
8079 type_int, type_long, type_long_long, type_float, type_double,
8080 type_long_double, type_char, type_boolean, type_system_address):
8081 Add "struct parser_state" argument.
8082 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
8083 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
8084 var_or_type, aggregate, aggregate_component_list,
8085 positional_list, others, component_group,
8086 component_associations): Update calls to write_exp* and similar
8087 functions in order to use parser state.
8088 (ada_parse, write_var_from_sym, write_int,
8089 write_exp_op_with_string, write_object_renaming,
8090 find_primitive_type, write_selectors, write_ambiguous_var,
8091 write_var_or_type, write_name_assoc, type_int, type_long,
8092 type_long_long, type_float, type_double, type_long_double,
8093 type_char, type_boolean, type_system_address): Add "struct
8094 parser_state" argument. Adjust function to use parser state.
8095 * ada-lang.c (parse): Likewise.
8096 * ada-lang.h: Forward declare "struct parser_state".
8097 (ada_parse): Add "struct parser_state" argument.
8098 * ada-lex.l (processInt, processReal): Likewise. Adjust all
8099 calls to both functions.
8100 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
8101 parser state.
8102 (yyparse): Redefine macro to f_parse_internal.
8103 (pstate): New variable.
8104 (parse_number): Add "struct parser_state" argument.
8105 (type_exp, exp, subrange, typebase): Update calls to write_exp*
8106 and similars in order to use parser state.
8107 (parse_number): Adjust code to use parser state.
8108 (yylex): Likewise.
8109 (f_parse): New function.
8110 * f-lang.h: Forward declare "struct parser_state".
8111 (f_parse): Add "struct parser_state" argument.
8112 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
8113 parser state.
8114 (yyparse): Redefine macro for java_parse_internal.
8115 (pstate): New variable.
8116 (push_expression_name, push_expression_name, insert_exp): Add
8117 "struct parser_state" argument.
8118 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
8119 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
8120 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
8121 PostIncrementExpression, PostDecrementExpression,
8122 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
8123 UnaryExpressionNotPlusMinus, CastExpression,
8124 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
8125 RelationalExpression, EqualityExpression, AndExpression,
8126 ExclusiveOrExpression, InclusiveOrExpression,
8127 ConditionalAndExpression, ConditionalOrExpression,
8128 ConditionalExpression, Assignment, LeftHandSide): Update
8129 calls to write_exp* and similars in order to use parser state.
8130 (parse_number): Ajust code to use parser state.
8131 (yylex): Likewise.
8132 (java_parse): New function.
8133 (push_variable): Add "struct parser_state" argument. Adjust
8134 code to user parser state.
8135 (push_fieldnames, push_qualified_expression_name,
8136 push_expression_name, insert_exp): Likewise.
8137 * jv-lang.h: Forward declare "struct parser_state".
8138 (java_parse): Add "struct parser_state" argument.
8139 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
8140 parser state.
8141 (yyparse): Redefine macro to m2_parse_internal.
8142 (pstate): New variable.
8143 (type_exp, exp, fblock, variable, type): Update calls to
8144 write_exp* and similars to use parser state.
8145 (yylex): Likewise.
8146 (m2_parse): New function.
8147 * m2-lang.h: Forward declare "struct parser_state".
8148 (m2_parse): Add "struct parser_state" argument.
8149 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
8150 * objc-lang.h: Forward declare "struct parser_state".
8151 (end_msglist): Add "struct parser_state" argument.
8152 * p-exp.y (parse_type): Rewrite macro to use parser state.
8153 (yyparse): Redefine macro to pascal_parse_internal.
8154 (pstate): New variable.
8155 (parse_number): Add "struct parser_state" argument.
8156 (type_exp, exp1, exp, qualified_name, variable): Update calls to
8157 write_exp* and similars in order to use parser state.
8158 (parse_number, yylex): Adjust code to use parser state.
8159 (pascal_parse): New function.
8160 * p-lang.h: Forward declare "struct parser_state".
8161 (pascal_parse): Add "struct parser_state" argument.
8162 * go-exp.y (parse_type): Rewrite macro to use parser state.
8163 (yyparse): Redefine macro to go_parse_internal.
8164 (pstate): New variable.
8165 (parse_number): Add "struct parser_state" argument.
8166 (type_exp, exp1, exp, variable, type): Update calls to
8167 write_exp* and similars in order to use parser state.
8168 (parse_number, lex_one_token, classify_name, yylex): Adjust code
8169 to use parser state.
8170 (go_parse): Likewise.
8171 * go-lang.h: Forward declare "struct parser_state".
8172 (go_parse): Add "struct parser_state" argument.
8173
8174 2014-03-27 Doug Evans <dje@google.com>
8175
8176 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
8177
8178 2014-03-27 Doug Evans <dje@google.com>
8179
8180 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
8181 Remove argument abbrev_section. All callers updated.
8182
8183 2014-03-27 Doug Evans <dje@google.com>
8184
8185 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
8186 addr_base, ranges_base.
8187
8188 2014-03-26 Keith Seitz <keiths@redhat.com>
8189
8190 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
8191 types, not VAR_DOMAIN.
8192
8193 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
8194
8195 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
8196 "ra" registers.
8197 * features/nios2-linux.c: Regenerated.
8198 * features/nios2.c: Regenerated.
8199
8200 2014-03-25 Pedro Alves <palves@redhat.com>
8201
8202 * cli/cli-script.c (script_from_file): Force the interpreter to
8203 sync mode.
8204
8205 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
8206
8207 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
8208 small stack allocation.
8209
8210 2014-03-24 Tristan Gingold <gingold@adacore.com>
8211
8212 * darwin-nat.c (exc_server): Remove unused prototype.
8213 (darwin_dump_message): Correctly display data on x86_64.
8214 (darwin_encode_reply): Fix style.
8215 Add comments and fix indentation.
8216
8217 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
8218
8219 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
8220
8221 2014-03-22 Doug Evans <xdje42@gmail.com>
8222
8223 * infcmd.c: Whitespace fixes.
8224 (interrupt_command): Merge two function comments into one.
8225
8226 2014-03-22 Doug Evans <xdje42@gmail.com>
8227
8228 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
8229 All uses updated.
8230
8231 2014-03-22 Yao Qi <yao@codesourcery.com>
8232
8233 * remote.c (target_read_live_memory): Remove.
8234 (memory_xfer_live_readonly_partial): Rename it to
8235 remote_xfer_live_readonly_partial. Remove argument 'object'.
8236 All callers updated. Call remote_read_bytes_1
8237 instead of target_read_live_memory.
8238 * tracepoint.c (set_traceframe_number): Remove.
8239 (make_cleanup_restore_traceframe_number): Likewise .
8240 * tracepoint.h (set_traceframe_number): Remove declaration.
8241 (make_cleanup_restore_traceframe_number): Likewise.
8242
8243 2014-03-22 Yao Qi <yao@codesourcery.com>
8244
8245 * remote.c (remote_read_bytes): Move code on reading from the
8246 remote stub to ...
8247 (remote_read_bytes_1): ... here. New function.
8248
8249 2014-03-22 Yao Qi <yao@codesourcery.com>
8250
8251 * ctf.c (ctf_xfer_partial): Check the return value of
8252 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
8253 return TARGET_XFER_UNAVAILABLE.
8254 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8255 * target.c (target_read_live_memory): Move it to remote.c.
8256 (memory_xfer_live_readonly_partial): Likewise.
8257 (memory_xfer_partial_1): Move some code to remote_read_bytes.
8258 * remote.c (target_read_live_memory): Moved from target.c.
8259 (memory_xfer_live_readonly_partial): Likewise.
8260 (remote_read_bytes): Factored out from
8261 memory_xfer_partial_1.
8262
8263 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
8264
8265 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
8266 NULL pointer.
8267
8268 2014-03-21 Pedro Alves <palves@redhat.com>
8269
8270 * infrun.c (normal_stop): Extend comment.
8271
8272 2014-03-21 Hui Zhu <hui@codesourcery.com>
8273 Pedro Alves <palves@redhat.com>
8274
8275 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
8276 static buffer.
8277 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
8278 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
8279 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
8280
8281 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
8282
8283 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
8284 `z' formatted output modifier.
8285
8286 2014-03-20 Tom Tromey <tromey@redhat.com>
8287 Sergio Durigan Junior <sergiodj@redhat.com>
8288
8289 * probe.c (parse_probes): Turn assert into an ordinary error.
8290 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
8291 exceptions when parsing probes. Rearrange the code for clarity.
8292
8293 2014-03-20 Tom Tromey <tromey@redhat.com>
8294
8295 PR gdb/14135
8296 * top.c (execute_command): Only dispatch events if the command
8297 started the target.
8298
8299 2014-03-20 Tom Tromey <tromey@redhat.com>
8300
8301 PR cli/15718
8302 * infcall.c: Include event-top.h.
8303 (run_inferior_call): Call async_disable_stdin if needed.
8304
8305 2014-03-20 Pedro Alves <palves@redhat.com>
8306
8307 * infrun.c (prepare_to_proceed): Delete.
8308 (thread_still_needs_step_over): New function.
8309 (find_thread_needs_step_over): New function.
8310 (proceed): If the current thread needs a step-over, set its
8311 steping_over_breakpoint flag. Adjust to use
8312 find_thread_needs_step_over instead of prepare_to_proceed.
8313 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
8314 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
8315 breakpoint.
8316 (switch_back_to_stepped_thread): Step over breakpoints of all
8317 threads not the stepping thread, before switching back to the
8318 stepping thread.
8319
8320 2014-03-20 Pedro Alves <palves@redhat.com>
8321
8322 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
8323 extern.
8324 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
8325 * infrun.c (saved_singlestep_ptid)
8326 (stepping_past_singlestep_breakpoint): Delete.
8327 (resume): Remove stepping_past_singlestep_breakpoint handling.
8328 (proceed): Store the prev_pc of the stepping thread too.
8329 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
8330 singlestep_pc.
8331 (enum infwait_states): Delete infwait_thread_hop_state.
8332 (struct execution_control_state) <hit_singlestep_breakpoint>: New
8333 field.
8334 (handle_inferior_event): Adjust.
8335 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
8336 handling and the thread-hop code. Before removing single-step
8337 breakpoints, check whether the thread hit a single-step breakpoint
8338 of another thread. If it did, the trap is not a random signal.
8339 (switch_back_to_stepped_thread): If the event thread hit a
8340 single-step breakpoint, unblock it before switching to the
8341 stepping thread. Handle the case of the stepped thread having
8342 advanced already.
8343 (keep_going): Handle the case of the current thread moving past a
8344 single-step breakpoint.
8345
8346 2014-03-20 Pedro Alves <palves@redhat.com>
8347
8348 PR breakpoints/7143
8349 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
8350 are being stepped over.
8351 (breakpoint_address_match): Make extern.
8352 * breakpoint.h (breakpoint_address_match): New declaration.
8353 * inferior.h (stepping_past_instruction_at): New declaration.
8354 * infrun.c (struct step_over_info): New type.
8355 (step_over_info): New global.
8356 (set_step_over_info, clear_step_over_info)
8357 (stepping_past_instruction_at): New functions.
8358 (handle_inferior_event): Clear the step-over info when
8359 trap_expected is cleared.
8360 (resume): Remove now stale comment.
8361 (clear_proceed_status): Clear step-over info.
8362 (proceed): Adjust step-over handling to set or clear the step-over
8363 info instead of removing all breakpoints.
8364 (handle_signal_stop): When setting up a thread-hop, don't remove
8365 breakpoints here.
8366 (stop_stepping): Clear step-over info.
8367 (keep_going): Adjust step-over handling to set or clear step-over
8368 info and then always inserting breakpoints, instead of removing
8369 all breakpoints when stepping over one.
8370
8371 2014-03-20 Pedro Alves <palves@redhat.com>
8372
8373 * infrun.c (previous_inferior_ptid): Adjust comment.
8374 (deferred_step_ptid): Delete.
8375 (infrun_thread_ptid_changed, prepare_to_proceed)
8376 (init_wait_for_inferior): Adjust.
8377 (handle_signal_stop): Delete deferred_step_ptid handling.
8378
8379 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
8380
8381 PR gdb/15358
8382 * defs.h (sync_quit_force_run): New declaration.
8383 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
8384 * event-top.c (async_sigterm_handler): New declaration.
8385 (async_sigterm_token): New variable.
8386 (async_init_signals): Create also async_sigterm_token.
8387 (async_sigterm_handler): New function.
8388 (sync_quit_force_run): New variable.
8389 (handle_sigterm): Replace quit_force call by other calls.
8390 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
8391
8392 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
8393
8394 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
8395 offset into SPE pseudo registers.
8396
8397 2014-03-18 Pedro Alves <palves@redhat.com>
8398
8399 PR gdb/13860
8400 * inferior.h (print_stop_event): Declare.
8401 * infrun.c (print_stop_event): New, factored out from ...
8402 (normal_stop): ... this.
8403 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
8404 of bpstat_print/print_stack_frame.
8405
8406 2014-03-17 Tom Tromey <tromey@redhat.com>
8407
8408 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
8409
8410 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
8411
8412 * ada-lang.c (decode_constrained_packed_array): Perform a
8413 minimal coercion for reference with coerce_ref instead of
8414 ada_coerce_ref.
8415
8416 2014-03-17 Tristan Gingold <gingold@adacore.com>
8417
8418 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
8419 (darwin_solib_create_inferior_hook): Emit a warning if version
8420 is unhandled.
8421
8422 2014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
8423
8424 * python/py-value.c (get_field_flag): Cast flag_name argument to
8425 PyObject_GetAttrString to support Python 2.4.
8426
8427 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8428
8429 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
8430 (Global Maintainers): Remove Jan Kratochvil.
8431
8432 2014-03-14 Pedro Alves <palves@redhat.com>
8433
8434 * inferior.h (terminal_ours_for_output): Rename to ...
8435 (child_terminal_ours_for_output): ... this.
8436 (terminal_save_ours): Rename to ...
8437 (child_terminal_save_ours): ... this.
8438 (terminal_ours): Rename to ...
8439 (child_terminal_ours): ... this.
8440 (terminal_inferior): Rename to ...
8441 (child_terminal_inferior): ... this.
8442 (terminal_init_inferior): Rename to ...
8443 (child_terminal_init_inferior): ... this.
8444 (terminal_init_inferior_with_pgrp): Rename to ...
8445 (child_terminal_init_inferior_with_pgrp): ... this.
8446 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
8447 (child_terminal_init_with_pgrp): ... this.
8448 (terminal_save_ours): Rename to ...
8449 (child_terminal_save_ours): ... this.
8450 (terminal_init_inferior): Rename to ...
8451 (child_terminal_init): ... this. Adjust.
8452 (terminal_inferior): Rename to ...
8453 (child_terminal_inferior): ... this.
8454 (terminal_ours_for_output): Rename to ...
8455 (child_terminal_ours_for_output): ... this. Adjust.
8456 (terminal_ours): Rename to ...
8457 (child_terminal_ours): ... this.
8458 (terminal_ours_1): Rename to ...
8459 (child_terminal_ours_1): ... this. Adjust.
8460 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
8461 * windows-nat.c (do_initial_windows_stuff): Adjust.
8462 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
8463 (gnu_terminal_init): ... this. Adjust.
8464 (gnu_target): Adjust.
8465 * inf-child.c (inf_child_target): Adjust.
8466
8467 2014-03-13 Doug Evans <xdje42@gmail.com>
8468
8469 PR guile/16612
8470 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
8471 new eq?-hashtab.
8472
8473 2014-03-13 Doug Evans <xdje42@gmail.com>
8474
8475 * value.c (record_latest_value): Call release_value_or_incref
8476 instead of release_value.
8477
8478 2014-03-13 Pedro Alves <palves@redhat.com>
8479
8480 * procfs.c (procfs_target): Don't override to_shortname,
8481 to_longname or to_doc.
8482
8483 2014-03-13 Pedro Alves <palves@redhat.com>
8484
8485 * inf-child.c (inf_child_open, inf_child_target): Don't mention
8486 Unix in user visible strings.
8487
8488 2014-03-12 Stan Shebs <stan@codesourcery.com>
8489
8490 * gdbtypes.h: Annotate comments for Doxygen, add a page
8491 block comment with some general info.
8492
8493 2014-03-12 Pedro Alves <palves@redhat.com>
8494
8495 * infcmd.c (prepare_execution_command): New function, factored out
8496 from several execution commands.
8497 (run_command_1, continue_command, step_1, jump_command)
8498 (signal_command, until_command, advance_command, finish_command)
8499 (attach_command): Use prepare_execution_command.
8500
8501 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
8502
8503 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
8504 (MAX_BPTS): Define.
8505 (MAX_WPTS): Define.
8506 (struct arm_linux_thread_points): Removed.
8507 (struct arm_linux_process_info): New.
8508 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
8509 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
8510 (arm_linux_find_breakpoints_by_tid): Removed.
8511 (struct arch_lwp_info): New.
8512 (arm_linux_find_process_pid): New functions.
8513 (arm_linux_add_process): New functions.
8514 (arm_linux_process_info_get): New functions.
8515 (arm_linux_forget_process): New function.
8516 (arm_linux_get_debug_reg_state): New function.
8517 (struct update_registers_data): New.
8518 (update_registers_callback): New function.
8519 (arm_linux_insert_hw_breakpoint1): Updated.
8520 (arm_linux_remove_hw_breakpoint1): Updated.
8521 (arm_linux_insert_hw_breakpoint): Updated.
8522 (arm_linux_remove_hw_breakpoint): Updated.
8523 (arm_linux_insert_watchpoint): Updated.
8524 (arm_linux_remove_watchpoint): Updated.
8525 (arm_linux_new_thread): Updated.
8526 (arm_linux_prepare_to_resume): New function.
8527 (arm_linux_new_fork): New function.
8528 (_initialize_arm_linux_nat): Updated.
8529
8530 2014-03-12 Pedro Alves <palves@redhat.com>
8531
8532 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
8533
8534 2014-03-12 Tom Tromey <tromey@redhat.com>
8535
8536 * inf-child.c (return_zero): New function.
8537 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
8538 * aix-thread.c (aix_thread_inferior_created): New function.
8539 (aix_thread_attach): Remove.
8540 (init_aix_thread_ops): Don't set to_attach.
8541 (_initialize_aix_thread): Register inferior_created observer.
8542 * corelow.c (init_core_ops): Don't set to_attach or
8543 to_create_inferior.
8544 * exec.c (init_exec_ops): Don't set to_attach or
8545 to_create_inferior.
8546 * infcmd.c (run_command_1): Use find_run_target. Make direct
8547 target calls.
8548 (attach_command): Use find_attach_target. Make direct target
8549 calls.
8550 * record-btrace.c (init_record_btrace_ops): Don't set
8551 to_create_inferior.
8552 * record-full.c (record_full_can_async_p, record_full_is_async_p):
8553 Remove.
8554 (init_record_full_ops, init_record_full_core_ops): Update. Don't
8555 set to_create_inferior.
8556 * target.c (complete_target_initialization): Add assertion.
8557 (target_create_inferior): Remove.
8558 (find_default_attach, find_default_create_inferior): Remove.
8559 (find_attach_target, find_run_target): New functions.
8560 (find_default_is_async_p, find_default_can_async_p)
8561 (target_supports_non_stop, target_attach): Remove.
8562 (init_dummy_target): Don't set to_create_inferior or
8563 to_supports_non_stop.
8564 * target.h (struct target_ops) <to_attach>: Add comment. Remove
8565 TARGET_DEFAULT_FUNC.
8566 <to_create_inferior>: Add comment.
8567 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
8568 TARGET_DEFAULT_RETURN.
8569 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
8570 (find_attach_target, find_run_target): Declare.
8571 (target_create_inferior): Remove.
8572 (target_has_execution_1): Update comment.
8573 (target_supports_non_stop): Remove.
8574 * target-delegates.c: Rebuild.
8575
8576 2014-03-12 Pedro Alves <palves@redhat.com>
8577
8578 * inf-child.h: Update comment to not mention Unix.
8579
8580 2014-03-12 Pedro Alves <palves@redhat.com>
8581
8582 * inf-child.c: Update top comment to not mention Unix. Add
8583 generic comment describing how this target is meant to be used.
8584 (inf_child_post_attach, inf_child_post_startup_inferior)
8585 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
8586 Unix in comment.
8587
8588 2014-03-12 Pedro Alves <palves@redhat.com>
8589
8590 * nto-procfs.c: Include inf-child.h.
8591 (procfs_ops): Delete global.
8592 (procfs_can_run): Delete method.
8593 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
8594 target pointer instead of referencing procfs_ops.
8595 (procfs_prepare_to_store): Delete.
8596 (init_procfs_ops): Delete function.
8597 (procfs_target): New function, based on init_procfs_ops, but
8598 inherit inf_child_target.
8599 (_initialize_procfs): Use procfs_target.
8600
8601 2014-03-12 Pedro Alves <palves@redhat.com>
8602
8603 * windows-nat.c: Include inf-child.h.
8604 (windows_ops): Delete global.
8605 (windows_open, windows_prepare_to_store, windows_can_run): Delete
8606 methods.
8607 (init_windows_ops): Delete function.
8608 (windows_target): New function, based on init_windows_ops, but
8609 inherit inf_child_target.
8610 (_initialize_windows_nat): Use windows_target. Install x86
8611 specific target methods here.
8612
8613 2014-03-10 Doug Evans <xdje42@gmail.com>
8614
8615 * guile/guile.c (call_initialize_gdb_module): New function.
8616 (initialize_guile): Replace call to scm_init_guile with call to
8617 scm_with_guile.
8618
8619 2014-03-10 Joel Brobecker <brobecker@adacore.com>
8620
8621 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
8622 in call to TYPE_CODE macro.
8623
8624 2014-03-10 Jerome Guitton <guitton@adacore.com>
8625
8626 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
8627 Resolve tagged types to full view.
8628
8629 2014-03-10 Hui Zhu <hui@codesourcery.com>
8630
8631 * target.h (target_insert_breakpoint): Remove "hardware" from its
8632 comments.
8633
8634 2014-03-07 Doug Evans <dje@google.com>
8635
8636 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
8637
8638 2014-03-07 Doug Evans <dje@google.com>
8639
8640 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
8641 Remove unused local comp_dir_attr. Assert exactly one of
8642 stub_comp_unit_die, stub_comp_dir is non-NULL.
8643
8644 2014-03-07 Joel Brobecker <brobecker@adacore.com>
8645
8646 * target.h (complete_target_initialization, add_target):
8647 Add comment.
8648
8649 2014-03-07 Pedro Alves <palves@redhat.com>
8650
8651 * go32-nat.c: Include inf-child.h.
8652 (go32_ops): Delete global.
8653 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
8654 Delete methods.
8655 (go32_create_inferior): Push the passed in target pointer instead
8656 of referencing go32_ops.
8657 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
8658 (go32_target): New function, based on init_go32_ops, but inherit
8659 inf_child_target.
8660 (_initialize_go32_nat): Use go32_target. Move parts of
8661 init_go32_ops here.
8662
8663 2014-03-06 Joel Brobecker <brobecker@adacore.com>
8664
8665 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
8666 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
8667 SYMBOL_VALUE_ADDRESS.
8668 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
8669
8670 2014-03-06 Yao Qi <yao@codesourcery.com>
8671
8672 * breakpoint.c (get_tracepoint_by_number): Remove argument
8673 optional_p. All callers updated. Adjust comments. Update
8674 output message.
8675 * breakpoint.h (get_tracepoint_by_number): Update declaration.
8676
8677 2014-03-06 Yao Qi <yao@codesourcery.com>
8678
8679 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
8680 early if get_number returns zero. Use 'p' instead of 'args'.
8681
8682 2014-03-06 Yao Qi <yao@codesourcery.com>
8683
8684 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
8685 message.
8686
8687 2014-03-06 Yao Qi <yao@codesourcery.com>
8688
8689 PR breakpoints/16508
8690 * tracepoint.c (check_trace_running): New function.
8691 (trace_find_command): Move code to check_trace_running and
8692 call check_trace_running.
8693 (trace_find_pc_command): Likewise.
8694 (trace_find_tracepoint_command): Likewise.
8695 (trace_find_line_command): Likewise.
8696 (trace_find_range_command): Likewise.
8697 * tracepoint.h (check_trace_running): Likewise.
8698 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
8699
8700 2014-03-06 Yao Qi <yao@codesourcery.com>
8701
8702 * target.h (struct target_ops) <to_traceframe_info>: Use
8703 TARGET_DEFAULT_NORETURN (tcomplain ()).
8704 * target-delegates.c: Regenerated.
8705
8706 2014-03-05 Pedro Alves <palves@redhat.com>
8707
8708 PR gdb/16575
8709 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
8710 void. Update comment.
8711 (dcache_xfer_memory): Delete.
8712 (dcache_read_memory_partial): New, based on the read bits of
8713 dcache_xfer_memory.
8714 (dcache_update): Add status parameter. Use ULONGEST for len, and
8715 adjust. Discard cache lines if the reason for the update was
8716 error.
8717 * dcache.h (dcache_xfer_memory): Delete declaration.
8718 (dcache_read_memory_partial): New declaration.
8719 (dcache_update): Update prototype.
8720 * target.c (raw_memory_xfer_partial): Update the dcache here.
8721 (memory_xfer_partial_1): Don't handle dcache writes here.
8722
8723 2014-03-05 Mike Frysinger <vapier@gentoo.org>
8724
8725 * remote-sim.c (gdbsim_load): Add const to prog.
8726
8727 2014-03-03 Tom Tromey <tromey@redhat.com>
8728
8729 * elfread.c (probe_key): Change to bfd_data.
8730 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
8731 now per-BFD, not per-objfile.
8732 * stap-probe.c (stap_probe_destroy): Update comment.
8733 (handle_stap_probe): Allocate on the per-BFD obstack.
8734
8735 2014-03-03 Tom Tromey <tromey@redhat.com>
8736
8737 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
8738 * breakpoint.c (create_longjmp_master_breakpoint): Use
8739 get_probe_address.
8740 (add_location_to_breakpoint, bkpt_probe_insert_location)
8741 (bkpt_probe_remove_location): Update.
8742 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
8743 * elfread.c (elf_symfile_relocate_probe): Remove.
8744 (elf_probe_fns): Update.
8745 (insert_exception_resume_breakpoint): Change type of "probe"
8746 parameter to bound_probe.
8747 (check_exception_resume): Update.
8748 * objfiles.c (objfile_relocate1): Don't relocate probes.
8749 * probe.c (bound_probe_s): New typedef.
8750 (parse_probes): Use get_probe_address. Set sal's objfile.
8751 (find_probe_by_pc): Return a bound_probe.
8752 (collect_probes): Return a VEC(bound_probe_s).
8753 (compare_probes): Update.
8754 (gen_ui_out_table_header_info): Change type of "probes"
8755 parameter. Update.
8756 (info_probes_for_ops): Update.
8757 (get_probe_address): New function.
8758 (probe_safe_evaluate_at_pc): Update.
8759 * probe.h (struct probe_ops) <get_probe_address>: New field.
8760 <set_semaphore, clear_semaphore>: Add objfile parameter.
8761 (struct probe) <objfile>: Remove field.
8762 <arch>: New field.
8763 <address>: Update comment.
8764 (struct bound_probe): New.
8765 (find_probe_by_pc): Return a bound_probe.
8766 (get_probe_address): Declare.
8767 * solib-svr4.c (struct probe_and_action) <address>: New field.
8768 (hash_probe_and_action, equal_probe_and_action): Update.
8769 (register_solib_event_probe): Add address parameter.
8770 (solib_event_probe_at): Update.
8771 (svr4_create_probe_breakpoints): Add objfile parameter. Use
8772 get_probe_address.
8773 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
8774 (stap_get_probe_address): New function.
8775 (stap_can_evaluate_probe_arguments, compute_probe_arg)
8776 (compile_probe_arg): Update.
8777 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
8778 address.
8779 (handle_stap_probe): Don't relocate the probe.
8780 (stap_relocate): Remove.
8781 (stap_gen_info_probes_table_values): Update.
8782 (stap_probe_ops): Remove stap_relocate.
8783 * symfile-debug.c (debug_sym_relocate_probe): Remove.
8784 (debug_sym_probe_fns): Update.
8785 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
8786 * symtab.c (init_sal): Use memset.
8787 * symtab.h (struct symtab_and_line) <objfile>: New field.
8788 * tracepoint.c (start_tracing, stop_tracing): Update.
8789
8790 2014-03-03 Tom Tromey <tromey@redhat.com>
8791
8792 * probe.h (parse_probes, find_probe_by_pc)
8793 (find_probes_in_objfile): Fix comments.
8794
8795 2014-03-02 Doug Evans <xdje42@gmail.com>
8796
8797 * infrun.c (handle_signal_stop): Replace test for
8798 TARGET_WAITKIND_STOPPED with an assert.
8799
8800 2014-03-02 Doug Evans <xdje42@gmail.com>
8801
8802 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
8803
8804 2014-03-02 Doug Evans <xdje42@gmail.com>
8805
8806 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
8807
8808 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8809
8810 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
8811
8812 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8813
8814 * i386obsd-nat.c: Include "obsd-nat.h".
8815 (_initialize_i386obsd_nat): Call obsd_add_target instead of
8816 add_target.
8817 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8818
8819 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8820
8821 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
8822
8823 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8824
8825 * mips64obsd-nat.c: Include "obsd-nath".
8826 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
8827 add_target
8828 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8829
8830 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8831
8832 * amd64obsd-nat.c: Include "obsd-nat,h.
8833 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
8834 add_target.
8835 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8836
8837 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
8838
8839 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
8840 (find_overload_match): Update call to find_oload_champ.
8841 (find_oload_champ_namespace_loop): Likewise
8842
8843 2014-02-28 Mark Kettenis <kettenis@gnu.org>
8844
8845 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
8846
8847 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
8848 * config/sparc/obsd64.mh: New file.
8849 * sparc64obsd-nat.c: New file.
8850
8851 * obsd-nat.h: New file.
8852 * obsd-nat.c: New file.
8853 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
8854 (ALLDEPFILES): Add obsd-nat.c.
8855
8856 2014-02-28 Tom Tromey <tromey@redhat.com>
8857
8858 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
8859 * cli-out.h (cli_ui_out_impl): Now const.
8860 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
8861 * ui-out.c (struct ui_out) <impl>: Now const.
8862 (default_ui_out_impl): Now const.
8863 (ui_out_new): Make 'impl' parameter const.
8864 * ui-out.h (ui_out_new): Update.
8865
8866 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8867
8868 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
8869
8870 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8871
8872 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
8873
8874 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
8875
8876 Additional PR 8882 fix.
8877 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
8878
8879 2014-02-27 Pedro Alves <palves@redhat.com>
8880
8881 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
8882 isn't set.
8883
8884 2014-02-27 Pedro Alves <palves@redhat.com>
8885
8886 PR 12702
8887 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
8888 * nat/linux-waitpid.c: Include string.h.
8889 (status_to_str): Moved here and made extern.
8890 * nat/linux-waitpid.h (status_to_str): New declaration.
8891
8892 2014-02-27 Hui Zhu <hui@codesourcery.com>
8893
8894 PR 12702
8895 * infrun.c (ptid_match): Move ...
8896 * common/ptid.c (ptid_match): ... here.
8897 * inferior.h (ptid_match): Move ...
8898 * common/ptid.h (ptid_match): ... here.
8899
8900 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8901
8902 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
8903 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
8904 gdb_target_obs.
8905
8906 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8907
8908 * obsd-tdep.c (obsd_auxv_parse): New function.
8909 (obsd_init_abi): Set auxv_parse.
8910
8911 * gdbarch.sh (auxv_parse): New.
8912 * gdbarch.h: Regenerated.
8913 * gdbarch.c: Regenerated.
8914 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
8915
8916 2014-02-26 Ludovic Courtès <ludo@gnu.org>
8917
8918 * guile/scm-value.c (gdbscm_history_append_x): New function.
8919 (value_functions): Add it.
8920
8921 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8922
8923 * dwarf2read.c (attr_value_as_address): New function.
8924 (dwarf2_find_base_address, read_call_site_scope): Use
8925 attr_value_as_address in place of DW_ADDR.
8926 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
8927 the low and high addresses. Slight rework of the handling
8928 of the high pc being a constant form, and limit it to
8929 DWARF verson 4 or higher.
8930 (dwarf2_record_block_ranges): Likewise.
8931 (read_partial_die): Likewise.
8932 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
8933
8934 2014-02-26 Tom Tromey <tromey@redhat.com>
8935
8936 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
8937
8938 2014-02-26 Tom Tromey <tromey@redhat.com>
8939
8940 * elfread.c (elf_read_minimal_symbols): Return early if
8941 minimal symbols have already been read. Add "ei" parameter.
8942 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
8943 * minsyms.c (prim_record_minimal_symbol_full): Update.
8944 * objfiles.h (struct objstats) <n_minsyms>: Move...
8945 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
8946 * symmisc.c (print_objfile_statistics): Update.
8947
8948 2014-02-26 Tom Tromey <tromey@redhat.com>
8949
8950 * elfread.c (elf_read_minimal_symbols): New function, from
8951 elf_symfile_read.
8952 (elf_symfile_read): Call it.
8953
8954 2014-02-26 Tom Tromey <tromey@redhat.com>
8955
8956 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
8957 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
8958 (lookup_minimal_symbol_solib_trampoline)
8959 (lookup_minimal_symbol_by_pc_section_1)
8960 (lookup_minimal_symbol_and_objfile): Update.
8961 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
8962 Don't allocate a minimal symbol if minsyms have already been read.
8963 (build_minimal_symbol_hash_tables): Update.
8964 (install_minimal_symbols): Do nothing if minsyms already read.
8965 Use the per-BFD obstack.
8966 (terminate_minimal_symbol_table): Use the per-BFD obstack.
8967 * objfiles.c (allocate_objfile): Call
8968 terminate_minimal_symbol_table later.
8969 (have_minimal_symbols): Update.
8970 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
8971 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
8972 Move from struct objfile.
8973 <minsyms_read>: New field.
8974 (struct objfile) <msymbols, minimal_symbol_count,
8975 msymbol_hash, msymbol_demangled_hash>: Move.
8976 (ALL_OBJFILE_MSYMBOLS): Update.
8977 * symfile.c (read_symbols): Set minsyms_read.
8978 (reread_symbols): Update.
8979 * symmisc.c (dump_objfile, dump_msymbols): Update.
8980
8981 2014-02-26 Tom Tromey <tromey@redhat.com>
8982
8983 * minsyms.c (msymbols_sort): Remove.
8984 * minsyms.h (msymbols_sort): Remove.
8985 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
8986 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
8987 * elfread.c (elf_symtab_read): Don't add section offsets.
8988 * xcoffread.c (record_minimal_symbol): Don't add section offset
8989 to minimal symbol address.
8990 * somread.c (text_offset, data_offset): Remove.
8991 (som_symtab_read): Don't add section offsets to minimal symbol
8992 addresses.
8993 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
8994 Don't add section offsets to minimal symbols.
8995 * coffread.c (coff_symtab_read): Don't add section offsets
8996 to minimal symbol addresses.
8997 * machoread.c (macho_symtab_add_minsym): Don't add section offset
8998 to minimal symbol addresses.
8999 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
9000 section offset to minimal symbol addresses.
9001 * mdebugread.c (parse_partial_symbols): Don't add section
9002 offset to minimal symbol addresses.
9003 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
9004 offset to minimal symbol addresses.
9005
9006 2014-02-26 Tom Tromey <tromey@redhat.com>
9007
9008 * ada-lang.c (ada_main_name): Update.
9009 (ada_add_standard_exceptions): Update.
9010 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
9011 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9012 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
9013 * auxv.c (ld_so_xfer_auxv): Update.
9014 * avr-tdep.c (avr_scan_prologue): Update.
9015 * ax-gdb.c (gen_var_ref): Update.
9016 * blockframe.c (get_pc_function_start)
9017 (find_pc_partial_function_gnu_ifunc): Update.
9018 * breakpoint.c (create_overlay_event_breakpoint)
9019 (create_longjmp_master_breakpoint)
9020 (create_std_terminate_master_breakpoint)
9021 (create_exception_master_breakpoint): Update.
9022 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9023 * c-valprint.c (c_val_print): Update.
9024 * coff-pe-read.c (add_pe_forwarded_sym): Update.
9025 * common/agent.c (agent_look_up_symbols): Update.
9026 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
9027 * dwarf2loc.c (call_site_to_target_addr): Update.
9028 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
9029 * elfread.c (elf_gnu_ifunc_record_cache)
9030 (elf_gnu_ifunc_resolve_by_got): Update.
9031 * findvar.c (default_read_var_value): Update.
9032 * frame.c (inside_main_func): Update.
9033 * frv-tdep.c (frv_frame_this_id): Update.
9034 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9035 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
9036 Update.
9037 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
9038 (hppa_hpux_find_dummy_bpaddr): Update.
9039 * hppa-tdep.c (hppa_symbol_address): Update.
9040 * infcmd.c (until_next_command): Update.
9041 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
9042 Update.
9043 * linespec.c (minsym_found, add_minsym): Update.
9044 * linux-nat.c (get_signo): Update.
9045 * linux-thread-db.c (inferior_has_bug): Update.
9046 * m32c-tdep.c (m32c_return_value)
9047 (m32c_m16c_address_to_pointer): Update.
9048 * m32r-tdep.c (m32r_frame_this_id): Update.
9049 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9050 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9051 * maint.c (maintenance_translate_address): Update.
9052 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
9053 (frob_address): New function.
9054 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
9055 frob_address. Rename parameter to "pc_in".
9056 (compare_minimal_symbols, compact_minimal_symbols): Use raw
9057 addresses.
9058 (find_solib_trampoline_target, minimal_symbol_upper_bound):
9059 Update.
9060 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9061 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
9062 * objc-lang.c (find_objc_msgsend): Update.
9063 * objfiles.c (objfile_relocate1): Update.
9064 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9065 * p-valprint.c (pascal_val_print): Update.
9066 * parse.c (write_exp_msymbol): Update.
9067 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
9068 (ppc_elfv2_skip_entrypoint): Update.
9069 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9070 * printcmd.c (build_address_symbolic, msym_info)
9071 (address_info): Update.
9072 * proc-service.c (ps_pglobal_lookup): Update.
9073 * psymtab.c (find_pc_sect_psymtab_closer)
9074 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
9075 Change msymbol parameter to bound_minimal_symbol.
9076 * ravenscar-thread.c (get_running_thread_id): Update.
9077 * remote.c (remote_check_symbols): Update.
9078 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
9079 address.
9080 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9081 * solib-dsbt.c (lm_base): Update.
9082 * solib-frv.c (lm_base, main_got): Update.
9083 * solib-irix.c (locate_base): Update.
9084 * solib-som.c (som_solib_create_inferior_hook)
9085 (link_map_start): Update.
9086 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
9087 * solib-svr4.c (elf_locate_base, enable_break): Update.
9088 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
9089 (flush_ea_cache): Update.
9090 * stabsread.c (define_symbol, scan_file_globals): Update.
9091 * stack.c (find_frame_funname): Update.
9092 * symfile-debug.c (debug_qf_expand_symtabs_matching)
9093 (debug_qf_find_pc_sect_symtab): Update.
9094 * symfile.c (simple_read_overlay_table)
9095 (simple_overlay_update): Update.
9096 * symfile.h (struct quick_symbol_functions)
9097 <find_pc_sect_symtab>: Change type of msymbol to
9098 bound_minimal_symbol.
9099 * symmisc.c (dump_msymbols): Update.
9100 * symtab.c (find_pc_sect_symtab_via_partial)
9101 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
9102 (search_symbols, print_msymbol_info): Update.
9103 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
9104 (MSYMBOL_VALUE_ADDRESS): Redefine.
9105 (BMSYMBOL_VALUE_ADDRESS): New macro.
9106 * tracepoint.c (scope_info): Update.
9107 * tui/tui-disasm.c (tui_find_disassembly_address)
9108 (tui_get_begin_asm_address): Update.
9109 * valops.c (find_function_in_inferior): Update.
9110 * value.c (value_static_field, value_fn_field): Update.
9111
9112 2014-02-26 Tom Tromey <tromey@redhat.com>
9113
9114 * ada-lang.c (ada_update_initial_language): Update.
9115 (ada_main_name, ada_has_this_exception_support): Update.
9116 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
9117 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9118 * arm-tdep.c (arm_skip_stub): Update.
9119 * auxv.c (ld_so_xfer_auxv): Update.
9120 * avr-tdep.c (avr_scan_prologue): Update.
9121 * ax-gdb.c (gen_var_ref): Update.
9122 * breakpoint.c (struct breakpoint_objfile_data)
9123 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
9124 type to bound_minimal_symbol.
9125 (create_overlay_event_breakpoint)
9126 (create_longjmp_master_breakpoint)
9127 (create_std_terminate_master_breakpoint)
9128 (create_exception_master_breakpoint): Update.
9129 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9130 * c-exp.y (classify_name): Update.
9131 * coffread.c (coff_symfile_read): Update.
9132 * common/agent.c (agent_look_up_symbols): Update.
9133 * d-lang.c (d_main_name): Update.
9134 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
9135 * dec-thread.c (enable_dec_thread): Update.
9136 * dwarf2loc.c (call_site_to_target_addr): Update.
9137 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
9138 * eval.c (evaluate_subexp_standard): Update.
9139 * findvar.c (struct minsym_lookup_data) <result>: Change type
9140 to bound_minimal_symbol.
9141 <objfile>: Remove.
9142 (minsym_lookup_iterator_cb, default_read_var_value): Update.
9143 * frame.c (inside_main_func): Update.
9144 * frv-tdep.c (frv_frame_this_id): Update.
9145 * gcore.c (call_target_sbrk): Update.
9146 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9147 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
9148 Update.
9149 * go-lang.c (go_main_name): Update.
9150 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
9151 (hppa_hpux_find_import_stub_for_addr): Update.
9152 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
9153 Update. Change return type.
9154 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
9155 type.
9156 * jit.c (jit_breakpoint_re_set_internal): Update.
9157 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
9158 Update.
9159 * linux-nat.c (get_signo): Update.
9160 * linux-thread-db.c (inferior_has_bug): Update
9161 * m32c-tdep.c (m32c_return_value)
9162 (m32c_m16c_address_to_pointer): Update.
9163 * m32r-tdep.c (m32r_frame_this_id): Update.
9164 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9165 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9166 * minsyms.c (lookup_minimal_symbol_internal): Rename to
9167 lookup_minimal_symbol. Change return type.
9168 (lookup_minimal_symbol): Remove.
9169 (lookup_bound_minimal_symbol): Update.
9170 (lookup_minimal_symbol_text): Change return type.
9171 (lookup_minimal_symbol_solib_trampoline): Change return type.
9172 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
9173 (lookup_minimal_symbol_solib_trampoline): Change return type.
9174 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9175 * objc-lang.c (lookup_objc_class, lookup_child_selector)
9176 (value_nsstring, find_imps): Update.
9177 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9178 * p-lang.c (pascal_main_name): Update.
9179 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
9180 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9181 * proc-service.c (ps_pglobal_lookup): Update.
9182 * ravenscar-thread.c (get_running_thread_msymbol): Change
9183 return type.
9184 (has_ravenscar_runtime, get_running_thread_id): Update.
9185 * remote.c (remote_check_symbols): Update.
9186 * sol-thread.c (ps_pglobal_lookup): Update.
9187 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9188 * solib-dsbt.c (lm_base): Update.
9189 * solib-frv.c (lm_base, frv_relocate_section_addresses):
9190 Update.
9191 * solib-irix.c (locate_base): Update.
9192 * solib-som.c (som_solib_create_inferior_hook)
9193 (som_solib_desire_dynamic_linker_symbols, link_map_start):
9194 Update.
9195 * solib-spu.c (spu_enable_break): Update.
9196 * solib-svr4.c (elf_locate_base, enable_break): Update.
9197 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
9198 (flush_ea_cache): Update.
9199 * stabsread.c (define_symbol): Update.
9200 * symfile.c (simple_read_overlay_table): Update.
9201 * symtab.c (find_pc_sect_line): Update.
9202 * tracepoint.c (scope_info): Update.
9203 * tui-disasm.c (tui_get_begin_asm_address): Update.
9204 * value.c (value_static_field): Update.
9205
9206 2014-02-26 Tom Tromey <tromey@redhat.com>
9207
9208 * minsyms.c (prim_record_minimal_symbol_full): Use
9209 SET_MSYMBOL_VALUE_ADDRESS.
9210 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
9211 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
9212 SET_MSYMBOL_VALUE_ADDRESS.
9213 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
9214 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
9215
9216 2014-02-26 Tom Tromey <tromey@redhat.com>
9217
9218 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
9219 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
9220 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
9221 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
9222 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
9223 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
9224 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
9225 * ada-lang.c (ada_main_name): Update.
9226 (ada_lookup_simple_minsym): Update.
9227 (ada_make_symbol_completion_list): Update.
9228 (ada_add_standard_exceptions): Update.
9229 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
9230 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9231 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
9232 * arm-tdep.c (skip_prologue_function): Update.
9233 (arm_skip_stack_protector, arm_skip_stub): Update.
9234 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
9235 (arm_wince_skip_main_prologue): Update.
9236 * auxv.c (ld_so_xfer_auxv): Update.
9237 * avr-tdep.c (avr_scan_prologue): Update.
9238 * ax-gdb.c (gen_var_ref): Update.
9239 * block.c (call_site_for_pc): Update.
9240 * blockframe.c (get_pc_function_start): Update.
9241 (find_pc_partial_function_gnu_ifunc): Update.
9242 * breakpoint.c (create_overlay_event_breakpoint): Update.
9243 (create_longjmp_master_breakpoint): Update.
9244 (create_std_terminate_master_breakpoint): Update.
9245 (create_exception_master_breakpoint): Update.
9246 (resolve_sal_pc): Update.
9247 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9248 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
9249 Update.
9250 * c-valprint.c (c_val_print): Update.
9251 * coff-pe-read.c (add_pe_forwarded_sym): Update.
9252 * coffread.c (coff_symfile_read): Update.
9253 * common/agent.c (agent_look_up_symbols): Update.
9254 * dbxread.c (find_stab_function_addr): Update.
9255 (end_psymtab): Update.
9256 * dwarf2loc.c (call_site_to_target_addr): Update.
9257 (func_verify_no_selftailcall): Update.
9258 (tailcall_dump): Update.
9259 (call_site_find_chain_1): Update.
9260 (dwarf_expr_reg_to_entry_parameter): Update.
9261 * elfread.c (elf_gnu_ifunc_record_cache): Update.
9262 (elf_gnu_ifunc_resolve_by_got): Update.
9263 * f-valprint.c (info_common_command): Update.
9264 * findvar.c (read_var_value): Update.
9265 * frame.c (get_prev_frame_1): Update.
9266 (inside_main_func): Update.
9267 * frv-tdep.c (frv_skip_main_prologue): Update.
9268 (frv_frame_this_id): Update.
9269 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9270 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
9271 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
9272 (gnuv3_skip_trampoline): Update.
9273 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
9274 (hppa64_hpux_in_solib_call_trampoline): Update.
9275 (hppa_hpux_skip_trampoline_code): Update.
9276 (hppa64_hpux_search_dummy_call_sequence): Update.
9277 (hppa_hpux_find_import_stub_for_addr): Update.
9278 (hppa_hpux_find_dummy_bpaddr): Update.
9279 * hppa-tdep.c (hppa_symbol_address)
9280 (hppa_lookup_stub_minimal_symbol): Update.
9281 * i386-tdep.c (i386_skip_main_prologue): Update.
9282 (i386_pe_skip_trampoline_code): Update.
9283 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
9284 * infcall.c (get_function_name): Update.
9285 * infcmd.c (until_next_command): Update.
9286 * jit.c (jit_breakpoint_re_set_internal): Update.
9287 (jit_inferior_init): Update.
9288 * linespec.c (minsym_found): Update.
9289 (add_minsym): Update.
9290 * linux-fork.c (info_checkpoints_command): Update.
9291 * linux-nat.c (get_signo): Update.
9292 * linux-thread-db.c (inferior_has_bug): Update.
9293 * m32c-tdep.c (m32c_return_value): Update.
9294 (m32c_m16c_address_to_pointer): Update.
9295 (m32c_m16c_pointer_to_address): Update.
9296 * m32r-tdep.c (m32r_frame_this_id): Update.
9297 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9298 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9299 * maint.c (maintenance_translate_address): Update.
9300 * minsyms.c (add_minsym_to_hash_table): Update.
9301 (add_minsym_to_demangled_hash_table): Update.
9302 (msymbol_objfile): Update.
9303 (lookup_minimal_symbol): Update.
9304 (iterate_over_minimal_symbols): Update.
9305 (lookup_minimal_symbol_text): Update.
9306 (lookup_minimal_symbol_by_pc_name): Update.
9307 (lookup_minimal_symbol_solib_trampoline): Update.
9308 (lookup_minimal_symbol_by_pc_section_1): Update.
9309 (lookup_minimal_symbol_and_objfile): Update.
9310 (prim_record_minimal_symbol_full): Update.
9311 (compare_minimal_symbols): Update.
9312 (compact_minimal_symbols): Update.
9313 (build_minimal_symbol_hash_tables): Update.
9314 (install_minimal_symbols): Update.
9315 (terminate_minimal_symbol_table): Update.
9316 (find_solib_trampoline_target): Update.
9317 (minimal_symbol_upper_bound): Update.
9318 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9319 * mips-tdep.c (mips_stub_frame_sniffer): Update.
9320 (mips_skip_pic_trampoline_code): Update.
9321 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
9322 * objc-lang.c (selectors_info): Update.
9323 (classes_info): Update.
9324 (find_methods): Update.
9325 (find_imps): Update.
9326 (find_objc_msgsend): Update.
9327 * objfiles.c (objfile_relocate1): Update.
9328 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
9329 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9330 * p-valprint.c (pascal_val_print): Update.
9331 * parse.c (write_exp_msymbol): Update.
9332 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
9333 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
9334 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9335 * printcmd.c (build_address_symbolic): Update.
9336 (sym_info): Update.
9337 (address_info): Update.
9338 * proc-service.c (ps_pglobal_lookup): Update.
9339 * psymtab.c (find_pc_sect_psymtab_closer): Update.
9340 (find_pc_sect_psymtab): Update.
9341 * python/py-framefilter.c (py_print_frame): Update.
9342 * ravenscar-thread.c (get_running_thread_id): Update.
9343 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
9344 Update.
9345 * remote.c (remote_check_symbols): Update.
9346 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
9347 (rs6000_skip_trampoline_code): Update.
9348 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
9349 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9350 * solib-dsbt.c (lm_base): Update.
9351 * solib-frv.c (lm_base): Update.
9352 (main_got): Update.
9353 * solib-irix.c (locate_base): Update.
9354 * solib-som.c (som_solib_create_inferior_hook): Update.
9355 (som_solib_desire_dynamic_linker_symbols): Update.
9356 (link_map_start): Update.
9357 * solib-spu.c (spu_enable_break): Update.
9358 (ocl_enable_break): Update.
9359 * solib-svr4.c (elf_locate_base): Update.
9360 (enable_break): Update.
9361 * spu-tdep.c (spu_get_overlay_table): Update.
9362 (spu_catch_start): Update.
9363 (flush_ea_cache): Update.
9364 * stabsread.c (define_symbol): Update.
9365 (scan_file_globals): Update.
9366 * stack.c (find_frame_funname): Update.
9367 (frame_info): Update.
9368 * symfile.c (simple_read_overlay_table): Update.
9369 (simple_overlay_update): Update.
9370 * symmisc.c (dump_msymbols): Update.
9371 * symtab.c (fixup_section): Update.
9372 (find_pc_sect_line): Update.
9373 (skip_prologue_sal): Update.
9374 (search_symbols): Update.
9375 (print_msymbol_info): Update.
9376 (rbreak_command): Update.
9377 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
9378 (completion_list_objc_symbol): Update.
9379 (default_make_symbol_completion_list_break_on): Update.
9380 * tracepoint.c (scope_info): Update.
9381 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
9382 (tui_get_begin_asm_address): Update.
9383 * valops.c (find_function_in_inferior): Update.
9384 * value.c (value_static_field): Update.
9385 (value_fn_field): Update.
9386
9387 2014-02-26 Tom Tromey <tromey@redhat.com>
9388
9389 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
9390 bound minimal symbols. Move code that knows about minsym
9391 table layout...
9392 * minsyms.c (minimal_symbol_upper_bound): ... here. New
9393 function.
9394 * minsyms.h (minimal_symbol_upper_bound): Declare.
9395 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
9396 minimal_symbol_upper_bound.
9397
9398 2014-02-27 Joel Brobecker <brobecker@adacore.com>
9399
9400 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
9401 Use the type's name if its basic type does not have a tag.
9402
9403 2014-02-27 Joel Brobecker <brobecker@adacore.com>
9404
9405 * dwarf2read.c (read_subrange_type): Add comment.
9406
9407 2014-02-27 Joel Brobecker <brobecker@adacore.com>
9408
9409 * dwarf2read.c (update_enumeration_type_from_children): New
9410 function, mostly extracted from process_structure_scope.
9411 (read_enumeration_type): Call update_enumeration_type_from_children.
9412 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
9413 and flag_flag_enum fields.
9414
9415 2014-02-26 Pedro Alves <palves@redhat.com>
9416
9417 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
9418 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
9419 to_xfer_partial method.
9420
9421 2014-02-26 Pedro Alves <palves@redhat.com>
9422
9423 * target.c (complete_target_initialization): Don't install
9424 default_xfer_partial as to_xfer_partial hook.
9425 (nomemory): Delete.
9426 (update_current_target): Don't INHERIT nor de_fault
9427 deprecated_xfer_memory. Delete de_fault macro.
9428 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
9429 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
9430 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
9431 field.
9432
9433 2014-02-26 Pedro Alves <palves@redhat.com>
9434
9435 * go32-nat.c (my_write_child): New function.
9436 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
9437 (go32_xfer_partial): New function.
9438 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
9439 Instead install a to_xfer_partial hook.
9440
9441 2014-02-26 Pedro Alves <palves@redhat.com>
9442
9443 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
9444 to_xfer_partial helper. Rewrite.
9445 (procfs_xfer_partial): New function.
9446 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
9447 Install a to_xfer_partial hook.
9448
9449 2014-02-26 Pedro Alves <palves@redhat.com>
9450
9451 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
9452 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
9453 (m32r_xfer_partial): New function.
9454 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
9455 Install a to_xfer_partial hook.
9456
9457 2014-02-26 Pedro Alves <palves@redhat.com>
9458
9459 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
9460 helper.
9461 (mips_xfer_partial): New function.
9462 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
9463 hook. Install a to_xfer_partial hook.
9464
9465 2014-02-26 Joel Brobecker <brobecker@adacore.com>
9466
9467 * gdbtypes.h (create_array_type_with_stride): Add declaration.
9468 * gdbtypes.c (create_array_type_with_stride): New function,
9469 renaming create_array_type, but with an added parameter
9470 called "bit_stride".
9471 (create_array_type): Re-implement using
9472 create_array_type_with_stride.
9473 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
9474 and DW_AT_bit_stride attributes.
9475
9476 2014-02-26 Pedro Alves <palves@redhat.com>
9477
9478 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
9479 task-specific breakpoints.
9480
9481 2014-02-25 Pedro Alves <palves@redhat.com>
9482
9483 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
9484 handling of object == TARGET_OBJECT_UNWIND_TABLE.
9485
9486 2014-02-25 Stan Shebs <stan@codesourcery.com>
9487
9488 * defs.h: Annotate comments for Doxygen.
9489
9490 2014-02-25 Tom Tromey <tromey@redhat.com>
9491
9492 * target.h (target_ignore): Don't declare.
9493 * target.c (target_ignore): Remove.
9494
9495 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
9496
9497 PR gdb/16626
9498 * auto-load.c (auto_load_objfile_script_1): Change filename to
9499 debugfile.
9500
9501 2014-02-25 Joel Brobecker <brobecker@adacore.com>
9502
9503 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
9504 documentation. Adjust prototype to match the target_ops
9505 to_xfer_partial method. Adjust implementation accordingly.
9506
9507 2014-02-25 Hui Zhu <hui@codesourcery.com>
9508
9509 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
9510 to_traceframe_info.
9511
9512 2014-02-25 Kevin Buettner <kevinb@redhat.com>
9513
9514 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
9515 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
9516 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
9517 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
9518 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
9519 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
9520 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
9521 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
9522 New constants.
9523 (rl78_register_type): Use a data pointer type for SP and
9524 new pseudo registers mentioned above. Use a 16 bit integer
9525 type for all other register pairs.
9526 (rl78_register_name, rl78_g10_register_name): Update for
9527 new pseudo registers.
9528 (rl78_pseudo_register_read): Likewise.
9529 (rl78_pseudo_register_write): Likewise.
9530 (rl78_dwarf_reg_to_regnum): Return register numbers representing
9531 to the newly added pseudo registers.
9532
9533 2014-02-24 Doug Evans <dje@google.com>
9534
9535 * value.c (record_latest_value): Fix comment.
9536 * printcmd.c (print_command_1): Remove code to handle -1 return from
9537 record_latest_value.
9538
9539 2014-02-24 Pedro Alves <palves@redhat.com>
9540
9541 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
9542 deprecated_xfer_memory hook.
9543 (procfs_xfer_partial): Call procfs_xfer_memory instead
9544 of the deprecated_xfer_memory target hook.
9545 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
9546 helper.
9547
9548 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
9549
9550 * windows-nat.c (windows_xfer_shared_libraries): Return
9551 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
9552 requested object is TARGET_OBJECT_LIBRARIES.
9553
9554 2014-02-24 Yao Qi <yao@codesourcery.com>
9555
9556 * target.h (enum target_xfer_status)
9557 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
9558 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
9559 explicitly. New.
9560 * corefile.c (memory_error_message): User updated.
9561 * exec.c (section_table_read_available_memory): Likewise.
9562 * record-btrace.c (record_btrace_xfer_partial): Likewise.
9563 * target.c (target_xfer_status_to_string): Likewise.
9564 (raw_memory_xfer_partial): Likewise.
9565 (memory_xfer_partial_1, target_xfer_partial): Likewise.
9566 * valops.c (read_value_memory): Likewise.
9567 * exec.h: Update comments.
9568
9569 2014-02-24 Yao Qi <yao@codesourcery.com>
9570
9571 * target.c (target_xfer_status_to_string): Rename argument err
9572 to status.
9573 * target.h (target_xfer_status_to_string): Update declaration.
9574 Replace target_xfer_error_to_string with
9575 target_xfer_status_to_string in comment.
9576
9577 2014-02-24 Yao Qi <yao@codesourcery.com>
9578
9579 * mips-linux-nat.c (super_close): Update its type.
9580 (mips_linux_close): Pass 'self' to super_close.
9581
9582 2014-02-24 Yao Qi <yao@codesourcery.com>
9583
9584 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
9585 * corefile.c (read_memory): Adjusted.
9586 * target.c (target_write_with_progress): Adjusted.
9587
9588 2014-02-23 Yao Qi <yao@codesourcery.com>
9589
9590 Revert two patches:
9591
9592 2013-10-25 Yao Qi <yao@codesourcery.com>
9593
9594 * remote.c (remote_traceframe_info): Return early if
9595 traceframe is not selected.
9596
9597 2013-07-19 Yao Qi <yao@codesourcery.com>
9598
9599 * target.c (update_current_target): Change the default action
9600 of 'to_traceframe_info' from tcomplain to return_zero.
9601 * target.h (struct target_ops) <to_traceframe_info>: Add more
9602 comments.
9603
9604 2014-02-23 Yao Qi <yao@codesourcery.com>
9605
9606 * valops.c (read_value_memory): Rewrite it. Call
9607 target_xfer_partial in a loop.
9608 * exec.h (section_table_available_memory): Remove declaration.
9609 Move comments to ...
9610 * exec.c (section_table_available_memory): ... here. Make it
9611 static.
9612
9613 2014-02-23 Yao Qi <yao@codesourcery.com>
9614
9615 * exec.c (section_table_read_available_memory): New function.
9616 * exec.h (section_table_read_available_memory): Declare.
9617 * ctf.c (ctf_xfer_partial): Call
9618 section_table_read_available_memory.
9619 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9620
9621 2014-02-23 Yao Qi <yao@codesourcery.com>
9622
9623 * ctf.c (ctf_xfer_partial): Move code to ...
9624 * exec.c (exec_read_partial_read_only): ... it. New function.
9625 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9626 * tracefile.c: Include "exec.h".
9627 * exec.h (exec_read_partial_read_only): Declare.
9628
9629 2014-02-23 Yao Qi <yao@codesourcery.com>
9630
9631 * tracefile-tfile.c (tfile_has_all_memory): Remove.
9632 (tfile_has_memory): Remove.
9633 (init_tfile_ops): Don't set fields to_has_all_memory and
9634 to_has_memory of tfile_ops.
9635 * tracefile.c (tracefile_has_all_memory): New function.
9636 (tracefile_has_memory): New function.
9637 (init_tracefile_ops): Initialize fields to_has_all_memory and
9638 to_has_memory of 'ops'.
9639
9640 2014-02-23 Yao Qi <yao@codesourcery.com>
9641
9642 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
9643 (ctf_thread_alive, ctf_get_trace_status): Remove.
9644 (init_ctf_ops): Don't set some fields of ctf_ops. Call
9645 init_tracefile_ops.
9646 * tracefile-tfile.c (tfile_get_trace_status): Remove.
9647 (tfile_has_stack, tfile_has_registers): Remove.
9648 (tfile_thread_alive): Remove.
9649 (init_tfile_ops): Don't set some fields of tfile_ops. Call
9650 init_tracefile_ops.
9651 * tracefile.c (tracefile_has_stack): New function.
9652 (tracefile_has_registers): New function.
9653 (tracefile_thread_alive): New function.
9654 (tracefile_get_trace_status): New function.
9655 (init_tracefile_ops): New function.
9656 * tracefile.h (init_tracefile_ops): Declare.
9657
9658 2014-02-23 Yao Qi <yao@codesourcery.com>
9659
9660 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
9661 (O_LARGEFILE): Likewise.
9662 (tfile_ops): Likewise.
9663 (TRACE_HEADER_SIZE): Likewise.
9664 (trace_fd, trace_frames_offset, cur_offset): Likewise.
9665 (cur_data_size): Likewise.
9666 (tfile_read, tfile_open, tfile_interp_line): Likewise.
9667 (tfile_close, tfile_files_info): Likewise.
9668 (tfile_get_trace_status): Likewise.
9669 (tfile_get_tracepoint_status): Likewise.
9670 (tfile_get_traceframe_address): Likewise.
9671 (tfile_trace_find, match_blocktype): Likewise.
9672 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
9673 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
9674 (tfile_get_trace_state_variable_value): Likewise.
9675 (tfile_has_all_memory, tfile_has_memory): Likewise.
9676 (tfile_has_stack, tfile_has_registers): Likewise.
9677 (tfile_thread_alive, build_traceframe_info): Likewise.
9678 (tfile_traceframe_info, init_tfile_ops): Likewise.
9679 (_initialize_tracepoint): Don't call init_tfile_ops
9680 and add_target_with_completer.
9681 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
9682 exec.h, completer.h and filenames.h.
9683 (_initialize_tracefile_tfile): New function.
9684
9685 2014-02-23 Yao Qi <yao@codesourcery.com>
9686
9687 * Makefile.in (REMOTE_OBS): Append tracefile.o and
9688 tracefile-tfile.o.
9689 (HFILES_NO_SRCDIR): Add tracefile.h.
9690 * ctf.c: Include "tracefile.h".
9691 * tracefile.h: New file.
9692 * tracefile.c: New file
9693 * tracefile-tfile.c: New file.
9694 * tracepoint.c: Include "tracefile.h".
9695 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
9696 (stop_reason_names): Add const.
9697 (trace_file_writer_xfree): Move it to tracefile.c.
9698 (trace_save, trace_save_command, trace_save_tfile): Likewise.
9699 (trace_save_ctf): Likewise.
9700 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
9701 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
9702 (tfile_write_header, tfile_write_regblock_type): Likewise.
9703 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
9704 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
9705 (tfile_write_raw_data, tfile_end): Likewise.
9706 (tfile_trace_file_writer_new): Likewise.
9707 (free_uploaded_tp): Make it extern.
9708 (free_uploaded_tsv): Make it extern.
9709 (_initialize_tracepoint): Move code to register command 'tsave'
9710 to tracefile.c.
9711 * tracepoint.h (stop_reason_names): Declare.
9712 (struct trace_frame_write_ops): Move it to tracefile.h.
9713 (struct trace_file_write_ops): Likewise.
9714 (struct trace_file_writer): Likewise.
9715 (free_uploaded_tsvs, free_uploaded_tps): Declare.
9716
9717 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9718
9719 PR gdb/16594
9720 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
9721 process name.
9722 (get_cores_used_by_process): New parameter num_cores, use it.
9723 (linux_xfer_osdata_processes): Pass num_cores to it.
9724 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
9725 process name.
9726
9727 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
9728
9729 * target.c (memory_xfer_partial): Fix length arg in call to
9730 breakpoint_xfer_memory.
9731
9732 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9733
9734 PR tdep/16397
9735 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
9736 number comes after the + or - signs. Adjust length of register
9737 name to be extracted.
9738
9739 2014-02-20 Tom Tromey <tromey@redhat.com>
9740
9741 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
9742 (ada_varobj_ops): Mark "extern".
9743
9744 2014-02-20 Tom Tromey <tromey@redhat.com>
9745
9746 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
9747
9748 2014-02-20 Doug Evans <xdje42@gmail.com>
9749
9750 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
9751 All callers updated.
9752 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
9753 All callers updated.
9754 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
9755 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
9756
9757 2014-02-20 lin zuojian <manjian2006@gmail.com>
9758 Joel Brobecker <brobecker@adacore.com>
9759 Doug Evans <xdje42@gmail.com>
9760
9761 PR symtab/16581
9762 * dwarf2read.c (struct die_info): New member in_process.
9763 (reset_die_in_process): New function.
9764 (process_die): Set it at the start, reset when returning.
9765 (inherit_abstract_dies): Only call process_die if origin_child_die
9766 not already being processed.
9767
9768 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9769
9770 * windows-nat.c (handle_unload_dll): Add function documentation.
9771 (do_initial_windows_stuff): Add comment explaining why we wait
9772 until after inferior initialization has finished before
9773 processing all DLLs.
9774
9775 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9776
9777 * windows-nat.c (get_module_name): Delete.
9778 (windows_get_exec_module_filename): New function, mostly
9779 inspired from get_module_name.
9780 (windows_pid_to_exec_file): Replace call to get_module_name
9781 by call to windows_get_exec_module_filename.
9782
9783 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9784
9785 * windows-nat.c (handle_load_dll): Rewrite this function's
9786 introductory comment. Remove code using get_module_name
9787 to get the DLL's name.
9788
9789 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9790
9791 * windows-nat.c (get_windows_debug_event): Ignore
9792 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
9793 if windows_initialization_done == 0.
9794 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
9795 Adjust implementation to always load all DLLs.
9796 (do_initial_windows_stuff): Replace call to
9797 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
9798
9799 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9800
9801 * windows-nat.c (_initialize_windows_nat): Deprecate the
9802 "dll-symbols" command. Turn the "add-shared-symbol-files"
9803 and "assf" aliases into commands, and deprecate them as well.
9804 * NEWS: Add entry explaining that "dll-symbols" and its two
9805 aliases are now deprecated.
9806
9807 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9808
9809 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
9810 new-line in debug string. Remove trailing spaces.
9811
9812 2014-02-19 Stan Shebs <stan@codesourcery.com>
9813
9814 * darwin-nat.c (darwin_xfer_partial): Fix return type.
9815
9816 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
9817
9818 * NEWS: Add entry for the new feature
9819 * python/py-value.c (valpy_binop): Call value_x_binop for struct
9820 and class values.
9821
9822 2014-02-19 Stan Shebs <stan@codesourcery.com>
9823
9824 * MAINTAINERS: List Yao Qi as nios2 maintainer.
9825
9826 2014-02-19 Pedro Alves <palves@redhat.com>
9827
9828 * common/ptid.h (struct ptid): Mention that process_stratum
9829 targets should prefer ptid.lwp.
9830
9831 2014-02-19 Pedro Alves <palves@redhat.com>
9832
9833 * remote.c (remote_thread_alive, write_ptid, read_ptid)
9834 (read_ptid, remote_newthread_step, remote_threads_extra_info)
9835 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
9836 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
9837 store remote thread ids rather than ptid.tid.
9838 (_initialize_remote): Adjust.
9839
9840 2014-02-19 Tom Tromey <tromey@redhat.com>
9841
9842 * target.c (target_get_unwinder): Rewrite.
9843 (target_get_tailcall_unwinder): Rewrite.
9844 * record-btrace.c (record_btrace_to_get_unwinder): New function.
9845 (record_btrace_to_get_tailcall_unwinder): New function.
9846 (init_record_btrace_ops): Update.
9847 * target.h (struct target_ops) <to_get_unwinder,
9848 to_get_tailcall_unwinder>: Now function pointers. Use
9849 TARGET_DEFAULT_RETURN.
9850
9851 2014-02-19 Tom Tromey <tromey@redhat.com>
9852
9853 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
9854 argument.
9855 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
9856
9857 2014-02-19 Tom Tromey <tromey@redhat.com>
9858
9859 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
9860 directly.
9861 * target-delegates.c: Rebuild.
9862 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
9863 TARGET_DEFAULT_FUNC.
9864 * target.c (default_target_decr_pc_after_break): Rename from
9865 forward_target_decr_pc_after_break. Simplify.
9866 (target_decr_pc_after_break): Rely on delegation.
9867
9868 2014-02-19 Tom Tromey <tromey@redhat.com>
9869
9870 * target.c (update_current_target): Do not INHERIT to_doc or
9871 to_magic. Do not de_fault to_open or to_close.
9872
9873 2014-02-19 Tom Tromey <tromey@redhat.com>
9874
9875 * gcore.h (objfile_find_memory_regions): Declare.
9876 * gcore.c (objfile_find_memory_regions): No longer static. Add
9877 "self" argument.
9878 (_initialize_gcore): Don't call exec_set_find_memory_regions.
9879 * exec.c: Include gcore.h.
9880 (exec_set_find_memory_regions): Remove.
9881 (exec_find_memory_regions): Remove.
9882 (exec_do_find_memory_regions): Remove.
9883 (init_exec_ops): Update.
9884 * defs.h (exec_set_find_memory_regions): Remove.
9885
9886 2014-02-19 Tom Tromey <tromey@redhat.com>
9887
9888 * target-delegates.c: Rebuild.
9889 * target.h (struct target_ops) <to_extra_thread_info,
9890 to_thread_name, to_pid_to_exec_file, to_get_section_table,
9891 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
9892 not 0, in TARGET_DEFAULT_RETURN.
9893
9894 2014-02-19 Tom Tromey <tromey@redhat.com>
9895
9896 * target.c (complete_target_initialization): Remove casts. Use
9897 return_zero_has_execution.
9898 (return_zero): Add "ignore" argument.
9899 (return_zero_has_execution): New function.
9900 (init_dummy_target): Remove casts. Use
9901 return_zero_has_execution.
9902
9903 2014-02-19 Tom Tromey <tromey@redhat.com>
9904
9905 * target.c (update_current_target): Update comments. Do not
9906 INHERIT to_stratum.
9907
9908 2014-02-19 Tom Tromey <tromey@redhat.com>
9909
9910 * arm-linux-nat.c (arm_linux_read_description): Delegate when
9911 needed.
9912 * corelow.c (core_read_description): Delegate when needed.
9913 * remote.c (remote_read_description): Delegate when needed.
9914 * target-delegates.c: Rebuild.
9915 * target.c (target_read_description): Rewrite.
9916 * target.h (struct target_ops) <to_read_description>: Update
9917 comment. Use TARGET_DEFAULT_RETURN.
9918
9919 2014-02-19 Tom Tromey <tromey@redhat.com>
9920
9921 * target-delegates.c: Rebuild.
9922 * target.c (update_current_target): Don't inherit or default
9923 to_can_run.
9924 (find_default_run_target): Check against delegate_can_run.
9925 * target.h (struct target_ops) <to_can_run>: Use
9926 TARGET_DEFAULT_RETURN.
9927
9928 2014-02-19 Tom Tromey <tromey@redhat.com>
9929
9930 * target-delegates.c: Rebuild.
9931 * target.c (target_disconnect): Unconditionally delegate.
9932 * target.h (struct target_ops) <to_disconnect>: Use
9933 TARGET_DEFAULT_NORETURN.
9934
9935 2014-02-19 Tom Tromey <tromey@redhat.com>
9936
9937 * record.c (record_stop): Unconditionally delegate.
9938 * target-delegates.c: Rebuild.
9939 * target.c (target_stop_recording): Unconditionally delegate.
9940 * target.h (struct target_ops) <to_stop_recording>: Use
9941 TARGET_DEFAULT_IGNORE.
9942
9943 2014-02-19 Tom Tromey <tromey@redhat.com>
9944
9945 * target-delegates.c: Rebuild.
9946 * target.c (target_enable_btrace): Unconditionally delegate.
9947 * target.h (struct target_ops) <to_enable_btrace>: Use
9948 TARGET_DEFAULT_NORETURN.
9949
9950 2014-02-19 Tom Tromey <tromey@redhat.com>
9951
9952 * target-delegates.c: Rebuild.
9953 * target.c (target_read_btrace): Unconditionally delegate.
9954 * target.h (struct target_ops) <to_read_btrace>: Use
9955 TARGET_DEFAULT_NORETURN.
9956
9957 2014-02-19 Tom Tromey <tromey@redhat.com>
9958
9959 * target-delegates.c: Rebuild.
9960 * target.c (target_teardown_btrace): Unconditionally delegate.
9961 * target.h (struct target_ops) <to_teardown_btrace>: Use
9962 TARGET_DEFAULT_NORETURN.
9963
9964 2014-02-19 Tom Tromey <tromey@redhat.com>
9965
9966 * target-delegates.c: Rebuild.
9967 * target.c (target_disable_btrace): Unconditionally delegate.
9968 * target.h (struct target_ops) <to_disable_btrace>: Use
9969 TARGET_DEFAULT_NORETURN.
9970
9971 2014-02-19 Tom Tromey <tromey@redhat.com>
9972
9973 * target-delegates.c: Rebuild.
9974 * target.c (default_search_memory): New function.
9975 (simple_search_memory): Update comment.
9976 (target_search_memory): Unconditionally delegate.
9977 * target.h (struct target_ops) <to_search_memory>: Use
9978 TARGET_DEFAULT_FUNC.
9979
9980 2014-02-19 Tom Tromey <tromey@redhat.com>
9981
9982 * auxv.c (default_auxv_parse): No longer static.
9983 (target_auxv_parse): Unconditionally delegate.
9984 * auxv.h (default_auxv_parse): Declare.
9985 * target-delegates.c: Rebuild.
9986 * target.c: Include auxv.h.
9987 * target.h (struct target_ops) <to_auxv_parse>: Use
9988 TARGET_DEFAULT_FUNC.
9989
9990 2014-02-19 Tom Tromey <tromey@redhat.com>
9991
9992 * target-delegates.c: Rebuild.
9993 * target.c (target_memory_map): Unconditionally delegate.
9994 * target.h (struct target_ops) <to_memory_map>: Use
9995 TARGET_DEFAULT_RETURN.
9996
9997 2014-02-19 Tom Tromey <tromey@redhat.com>
9998
9999 * target-delegates.c: Rebuild.
10000 * target.c (target_thread_alive): Unconditionally delegate.
10001 * target.h (struct target_ops) <to_thread_alive>: Use
10002 TARGET_DEFAULT_RETURN.
10003
10004 2014-02-19 Tom Tromey <tromey@redhat.com>
10005
10006 * target-delegates.c: Rebuild.
10007 * target.c (target_save_record): Unconditionally delegate.
10008 * target.h (struct target_ops) <to_save_record>: Use
10009 TARGET_DEFAULT_NORETURN.
10010
10011 2014-02-19 Tom Tromey <tromey@redhat.com>
10012
10013 * target-delegates.c: Rebuild.
10014 * target.c (target_delete_record): Unconditionally delegate.
10015 * target.h (struct target_ops) <to_delete_record>: Use
10016 TARGET_DEFAULT_NORETURN.
10017
10018 2014-02-19 Tom Tromey <tromey@redhat.com>
10019
10020 * target-delegates.c: Rebuild.
10021 * target.c (target_record_is_replaying): Unconditionally
10022 delegate.
10023 * target.h (struct target_ops) <to_record_is_replaying>: Use
10024 TARGET_DEFAULT_RETURN.
10025
10026 2014-02-19 Tom Tromey <tromey@redhat.com>
10027
10028 * target-delegates.c: Rebuild.
10029 * target.c (target_goto_record_begin): Unconditionally delegate.
10030 * target.h (struct target_ops) <to_goto_record_begin>: Use
10031 TARGET_DEFAULT_NORETURN.
10032
10033 2014-02-19 Tom Tromey <tromey@redhat.com>
10034
10035 * target-delegates.c: Rebuild.
10036 * target.c (target_goto_record_end): Unconditionally delegate.
10037 * target.h (struct target_ops) <to_goto_record_end>: Use
10038 TARGET_DEFAULT_NORETURN.
10039
10040 2014-02-19 Tom Tromey <tromey@redhat.com>
10041
10042 * target-delegates.c: Rebuild.
10043 * target.c (target_goto_record): Unconditionally delegate.
10044 * target.h (struct target_ops) <to_goto_record>: Use
10045 TARGET_DEFAULT_NORETURN.
10046
10047 2014-02-19 Tom Tromey <tromey@redhat.com>
10048
10049 * target-delegates.c: Rebuild.
10050 * target.c (target_insn_history): Unconditionally delegate.
10051 * target.h (struct target_ops) <to_insn_history>: Use
10052 TARGET_DEFAULT_NORETURN.
10053
10054 2014-02-19 Tom Tromey <tromey@redhat.com>
10055
10056 * target-delegates.c: Rebuild.
10057 * target.c (target_insn_history_from): Unconditionally delegate.
10058 * target.h (struct target_ops) <to_insn_history_from>: Use
10059 TARGET_DEFAULT_NORETURN.
10060
10061 2014-02-19 Tom Tromey <tromey@redhat.com>
10062
10063 * target-delegates.c: Rebuild.
10064 * target.c (target_insn_history_range): Unconditionally delegate.
10065 * target.h (struct target_ops) <to_insn_history_range>: Use
10066 TARGET_DEFAULT_NORETURN.
10067
10068 2014-02-19 Tom Tromey <tromey@redhat.com>
10069
10070 * target-delegates.c: Rebuild.
10071 * target.c (target_call_history): Unconditionally delegate.
10072 * target.h (struct target_ops) <to_call_history>: Use
10073 TARGET_DEFAULT_NORETURN.
10074
10075 2014-02-19 Tom Tromey <tromey@redhat.com>
10076
10077 * target-delegates.c: Rebuild.
10078 * target.c (target_call_history_from): Unconditionally delegate.
10079 * target.h (struct target_ops) <to_call_history_from>: Use
10080 TARGET_DEFAULT_NORETURN.
10081
10082 2014-02-19 Tom Tromey <tromey@redhat.com>
10083
10084 * target-delegates.c: Rebuild.
10085 * target.c (target_call_history_range): Unconditionally delegate.
10086 * target.h (struct target_ops) <to_call_history_range>: Use
10087 TARGET_DEFAULT_NORETURN.
10088
10089 2014-02-19 Tom Tromey <tromey@redhat.com>
10090
10091 * target-delegates.c: Rebuild.
10092 * target.c (target_verify_memory): Unconditionally delegate.
10093 * target.h (struct target_ops) <to_verify_memory>: Use
10094 TARGET_DEFAULT_NORETURN.
10095
10096 2014-02-19 Tom Tromey <tromey@redhat.com>
10097
10098 * target-delegates.c: Rebuild.
10099 * target.c (target_core_of_thread): Unconditionally delegate.
10100 * target.h (struct target_ops) <to_core_of_thread>: Use
10101 TARGET_DEFAULT_RETURN.
10102
10103 2014-02-19 Tom Tromey <tromey@redhat.com>
10104
10105 * target-delegates.c: Rebuild.
10106 * target.c (target_flash_done): Unconditionally delegate.
10107 * target.h (struct target_ops) <to_flash_done>: Use
10108 TARGET_DEFAULT_NORETURN.
10109
10110 2014-02-19 Tom Tromey <tromey@redhat.com>
10111
10112 * target-delegates.c: Rebuild.
10113 * target.c (target_flash_erase): Unconditionally delegate.
10114 * target.h (struct target_ops) <to_flash_erase>: Use
10115 TARGET_DEFAULT_NORETURN.
10116
10117 2014-02-19 Tom Tromey <tromey@redhat.com>
10118
10119 * target-delegates.c: Rebuild.
10120 * target.c (target_get_section_table): Unconditionally delegate.
10121 * target.h (struct target_ops) <to_get_section_table>: Use
10122 TARGET_DEFAULT_RETURN.
10123
10124 2014-02-19 Tom Tromey <tromey@redhat.com>
10125
10126 * target-delegates.c: Rebuild.
10127 * target.c (target_pid_to_str): Unconditionally delegate.
10128 (init_dummy_target): Don't initialize to_pid_to_str.
10129 (default_pid_to_str): Rename from dummy_pid_to_str.
10130 * target.h (struct target_ops) <to_pid_to_str>: Use
10131 TARGET_DEFAULT_FUNC.
10132
10133 2014-02-19 Tom Tromey <tromey@redhat.com>
10134
10135 * target-delegates.c: Rebuild.
10136 * target.c (target_find_new_threads): Unconditionally delegate.
10137 * target.h (struct target_ops) <to_find_new_threads>: Use
10138 TARGET_DEFAULT_RETURN.
10139
10140 2014-02-19 Tom Tromey <tromey@redhat.com>
10141
10142 * target-delegates.c: Rebuild.
10143 * target.c (target_program_signals): Unconditionally delegate.
10144 * target.h (struct target_ops) <to_program_signals>: Use
10145 TARGET_DEFAULT_IGNORE.
10146
10147 2014-02-19 Tom Tromey <tromey@redhat.com>
10148
10149 * target-delegates.c: Rebuild.
10150 * target.c (target_pass_signals): Unconditionally delegate.
10151 * target.h (struct target_ops) <to_pass_signals>: Use
10152 TARGET_DEFAULT_IGNORE.
10153
10154 2014-02-19 Tom Tromey <tromey@redhat.com>
10155
10156 * target-delegates.c: Rebuild.
10157 * target.c (default_mourn_inferior): New function.
10158 (target_mourn_inferior): Unconditionally delegate.
10159 * target.h (struct target_ops) <to_mourn_inferior>: Use
10160 TARGET_DEFAULT_FUNC.
10161
10162 2014-02-19 Tom Tromey <tromey@redhat.com>
10163
10164 * target-delegates.c: Rebuild.
10165 * target.c (default_follow_fork): New function.
10166 (target_follow_fork): Unconditionally delegate.
10167 * target.h (struct target_ops) <to_follow_fork>: Use
10168 TARGET_DEFAULT_FUNC.
10169
10170 2014-02-19 Tom Tromey <tromey@redhat.com>
10171
10172 * target-delegates.c: Rebuild.
10173 * target.c (target_kill): Unconditionally delegate.
10174 * target.h (struct target_ops) <to_kill>: Use
10175 TARGET_DEFAULT_NORETURN.
10176
10177 2014-02-19 Tom Tromey <tromey@redhat.com>
10178
10179 * target-delegates.c: Rebuild.
10180 * target.c (target_masked_watch_num_registers): Unconditionally
10181 delegate.
10182 * target.h (struct target_ops) <to_masked_watch_num_registers>:
10183 Use TARGET_DEFAULT_RETURN.
10184
10185 2014-02-19 Tom Tromey <tromey@redhat.com>
10186
10187 * target-delegates.c: Rebuild.
10188 * target.c (target_remove_mask_watchpoint): Unconditionally
10189 delegate.
10190 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
10191 TARGET_DEFAULT_RETURN.
10192
10193 2014-02-19 Tom Tromey <tromey@redhat.com>
10194
10195 * target-delegates.c: Rebuild.
10196 * target.c (target_insert_mask_watchpoint): Unconditionally
10197 delegate.
10198 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
10199 TARGET_DEFAULT_RETURN.
10200
10201 2014-02-19 Tom Tromey <tromey@redhat.com>
10202
10203 * target-delegates.c: Rebuild.
10204 * target.c (target_ranged_break_num_registers): Unconditionally
10205 delegate.
10206 * target.h (struct target_ops) <to_ranged_break_num_registers>:
10207 Use TARGET_DEFAULT_RETURN.
10208
10209 2014-02-19 Tom Tromey <tromey@redhat.com>
10210
10211 * target-delegates.c: Rebuild.
10212 * target.c (target_fetch_registers): Unconditionally delegate.
10213 * target.h (struct target_ops) <to_fetch_registers>: Use
10214 TARGET_DEFAULT_NORETURN.
10215
10216 2014-02-19 Tom Tromey <tromey@redhat.com>
10217
10218 * target-delegates.c: Rebuild.
10219 * target.c (update_current_target): Don't inherit or default
10220 to_stop.
10221 * target.h (struct target_ops) <to_stop>: Use
10222 TARGET_DEFAULT_IGNORE.
10223
10224 2014-02-19 Tom Tromey <tromey@redhat.com>
10225
10226 * target-delegates.c: Rebuild.
10227 * target.c (update_current_target): Don't inherit or default
10228 to_can_run_breakpoint_commands.
10229 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
10230 Use TARGET_DEFAULT_RETURN.
10231
10232 2014-02-19 Tom Tromey <tromey@redhat.com>
10233
10234 * target-delegates.c: Rebuild.
10235 * target.c (update_current_target): Don't inherit or default
10236 to_supports_evaluation_of_breakpoint_conditions.
10237 * target.h (struct target_ops)
10238 <to_supports_evaluation_of_breakpoint_conditions>: Use
10239 TARGET_DEFAULT_RETURN.
10240
10241 2014-02-19 Tom Tromey <tromey@redhat.com>
10242
10243 * target-delegates.c: Rebuild.
10244 * target.c (update_current_target): Don't inherit or default
10245 to_augmented_libraries_svr4_read.
10246 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
10247 Use TARGET_DEFAULT_RETURN.
10248
10249 2014-02-19 Tom Tromey <tromey@redhat.com>
10250
10251 * target-delegates.c: Rebuild.
10252 * target.c (update_current_target): Don't inherit or default
10253 to_can_use_agent.
10254 * target.h (struct target_ops) <to_can_use_agent>: Use
10255 TARGET_DEFAULT_RETURN.
10256
10257 2014-02-19 Tom Tromey <tromey@redhat.com>
10258
10259 * target-delegates.c: Rebuild.
10260 * target.c (update_current_target): Don't inherit or default
10261 to_use_agent.
10262 * target.h (struct target_ops) <to_use_agent>: Use
10263 TARGET_DEFAULT_NORETURN.
10264
10265 2014-02-19 Tom Tromey <tromey@redhat.com>
10266
10267 * target-delegates.c: Rebuild.
10268 * target.c (update_current_target): Don't inherit or default
10269 to_traceframe_info.
10270 (return_null): Remove.
10271 * target.h (struct target_ops) <to_traceframe_info>: Use
10272 TARGET_DEFAULT_RETURN.
10273
10274 2014-02-19 Tom Tromey <tromey@redhat.com>
10275
10276 * target-delegates.c: Rebuild.
10277 * target.c (update_current_target): Don't inherit or default
10278 to_static_tracepoint_markers_by_strid.
10279 * target.h (struct target_ops)
10280 <to_static_tracepoint_markers_by_strid>: Use
10281 TARGET_DEFAULT_NORETURN.
10282
10283 2014-02-19 Tom Tromey <tromey@redhat.com>
10284
10285 * target-delegates.c: Rebuild.
10286 * target.c (update_current_target): Don't inherit or default
10287 to_static_tracepoint_marker_at.
10288 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
10289 Use TARGET_DEFAULT_RETURN.
10290
10291 2014-02-19 Tom Tromey <tromey@redhat.com>
10292
10293 * target-delegates.c: Rebuild.
10294 * target.c (update_current_target): Don't inherit or default
10295 to_set_permissions.
10296 * target.h (struct target_ops) <to_set_permissions>: Use
10297 TARGET_DEFAULT_IGNORE.
10298
10299 2014-02-19 Tom Tromey <tromey@redhat.com>
10300
10301 * target-delegates.c: Rebuild.
10302 * target.c (update_current_target): Don't inherit or default
10303 to_get_tib_address.
10304 * target.h (struct target_ops) <to_get_tib_address>: Use
10305 TARGET_DEFAULT_NORETURN.
10306
10307 2014-02-19 Tom Tromey <tromey@redhat.com>
10308
10309 * target-delegates.c: Rebuild.
10310 * target.c (update_current_target): Don't inherit or default
10311 to_set_trace_notes.
10312 * target.h (struct target_ops) <to_set_trace_notes>: Use
10313 TARGET_DEFAULT_RETURN.
10314
10315 2014-02-19 Tom Tromey <tromey@redhat.com>
10316
10317 * target-delegates.c: Rebuild.
10318 * target.c (update_current_target): Don't initialize
10319 to_set_trace_buffer_size.
10320 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
10321 TARGET_DEFAULT_IGNORE.
10322
10323 2014-02-19 Tom Tromey <tromey@redhat.com>
10324
10325 * target-delegates.c: Rebuild.
10326 * target.c (update_current_target): Don't inherit or default
10327 to_set_circular_trace_buffer.
10328 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
10329 TARGET_DEFAULT_IGNORE.
10330
10331 2014-02-19 Tom Tromey <tromey@redhat.com>
10332
10333 * target-delegates.c: Rebuild.
10334 * target.c (update_current_target): Don't inherit or default
10335 to_set_disconnected_tracing.
10336 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
10337 TARGET_DEFAULT_IGNORE.
10338
10339 2014-02-19 Tom Tromey <tromey@redhat.com>
10340
10341 * target-delegates.c: Rebuild.
10342 * target.c (update_current_target): Don't inherit or default
10343 to_get_min_fast_tracepoint_insn_len.
10344 (return_minus_one): Remove.
10345 * target.h (struct target_ops)
10346 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
10347
10348 2014-02-19 Tom Tromey <tromey@redhat.com>
10349
10350 * target-delegates.c: Rebuild.
10351 * target.c (update_current_target): Don't inherit or default
10352 to_get_raw_trace_data.
10353 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
10354 TARGET_DEFAULT_NORETURN.
10355
10356 2014-02-19 Tom Tromey <tromey@redhat.com>
10357
10358 * target-delegates.c: Rebuild.
10359 * target.c (update_current_target): Don't inherit or default
10360 to_upload_trace_state_variables.
10361 * target.h (struct target_ops) <to_upload_trace_state_variables>:
10362 Use TARGET_DEFAULT_RETURN.
10363
10364 2014-02-19 Tom Tromey <tromey@redhat.com>
10365
10366 * target-delegates.c: Rebuild.
10367 * target.c (update_current_target): Don't inherit or default
10368 to_upload_tracepoints.
10369 * target.h (struct target_ops) <to_upload_tracepoints>: Use
10370 TARGET_DEFAULT_RETURN.
10371
10372 2014-02-19 Tom Tromey <tromey@redhat.com>
10373
10374 * target-delegates.c: Rebuild.
10375 * target.c (update_current_target): Don't inherit or default
10376 to_save_trace_data.
10377 * target.h (struct target_ops) <to_save_trace_data>: Use
10378 TARGET_DEFAULT_NORETURN.
10379
10380 2014-02-19 Tom Tromey <tromey@redhat.com>
10381
10382 * target-delegates.c: Rebuild.
10383 * target.c (update_current_target): Don't inherit or default
10384 to_get_trace_state_variable_value.
10385 * target.h (struct target_ops)
10386 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
10387
10388 2014-02-19 Tom Tromey <tromey@redhat.com>
10389
10390 * target-delegates.c: Rebuild.
10391 * target.c (update_current_target): Don't inherit or default
10392 to_trace_find.
10393 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
10394
10395 2014-02-19 Tom Tromey <tromey@redhat.com>
10396
10397 * target-delegates.c: Rebuild.
10398 * target.c (update_current_target): Don't inherit or default
10399 to_trace_stop.
10400 * target.h (struct target_ops) <to_trace_stop>: Use
10401 TARGET_DEFAULT_NORETURN.
10402
10403 2014-02-19 Tom Tromey <tromey@redhat.com>
10404
10405 * target-delegates.c: Rebuild.
10406 * target.c (update_current_target): Don't inherit or default
10407 to_get_tracepoint_status.
10408 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
10409 TARGET_DEFAULT_NORETURN.
10410
10411 2014-02-19 Tom Tromey <tromey@redhat.com>
10412
10413 * target-delegates.c: Rebuild.
10414 * target.c (update_current_target): Don't inherit or default
10415 to_get_trace_status.
10416 * target.h (struct target_ops) <to_get_trace_status>: Use
10417 TARGET_DEFAULT_RETURN.
10418
10419 2014-02-19 Tom Tromey <tromey@redhat.com>
10420
10421 * target-delegates.c: Rebuild.
10422 * target.c (update_current_target): Don't inherit or default
10423 to_trace_start.
10424 * target.h (struct target_ops) <to_trace_start>: Use
10425 TARGET_DEFAULT_NORETURN.
10426
10427 2014-02-19 Tom Tromey <tromey@redhat.com>
10428
10429 * target-delegates.c: Rebuild.
10430 * target.c (update_current_target): Don't inherit or default
10431 to_trace_set_readonly_regions.
10432 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
10433 Use TARGET_DEFAULT_NORETURN.
10434
10435 2014-02-19 Tom Tromey <tromey@redhat.com>
10436
10437 * target-delegates.c: Rebuild.
10438 * target.c (update_current_target): Don't inherit or default
10439 to_disable_tracepoint.
10440 * target.h (struct target_ops) <to_disable_tracepoint>: Use
10441 TARGET_DEFAULT_NORETURN.
10442
10443 2014-02-19 Tom Tromey <tromey@redhat.com>
10444
10445 * target-delegates.c: Rebuild.
10446 * target.c (update_current_target): Don't inherit or default
10447 to_enable_tracepoint.
10448 * target.h (struct target_ops) <to_enable_tracepoint>: Use
10449 TARGET_DEFAULT_NORETURN.
10450
10451 2014-02-19 Tom Tromey <tromey@redhat.com>
10452
10453 * target-delegates.c: Rebuild.
10454 * target.c (update_current_target): Don't inherit or default
10455 to_download_trace_state_variable.
10456 * target.h (struct target_ops) <to_download_trace_state_variable>:
10457 Use TARGET_DEFAULT_NORETURN.
10458
10459 2014-02-19 Tom Tromey <tromey@redhat.com>
10460
10461 * target-delegates.c: Rebuild.
10462 * target.c (update_current_target): Don't inherit or default
10463 to_can_download_tracepoint.
10464 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
10465 TARGET_DEFAULT_RETURN.
10466
10467 2014-02-19 Tom Tromey <tromey@redhat.com>
10468
10469 * target-delegates.c: Rebuild.
10470 * target.c (update_current_target): Don't inherit or default
10471 to_download_tracepoint.
10472 * target.h (struct target_ops) <to_download_tracepoint>: Use
10473 TARGET_DEFAULT_NORETURN.
10474
10475 2014-02-19 Tom Tromey <tromey@redhat.com>
10476
10477 * target-delegates.c: Rebuild.
10478 * target.c (update_current_target): Don't inherit or default
10479 to_trace_init.
10480 * target.h (struct target_ops) <to_trace_init>: Use
10481 TARGET_DEFAULT_RETURN.
10482
10483 2014-02-19 Tom Tromey <tromey@redhat.com>
10484
10485 * target-delegates.c: Rebuild.
10486 * target.c (update_current_target): Don't inherit or default
10487 to_supports_string_tracing.
10488 * target.h (struct target_ops) <to_supports_string_tracing>: Use
10489 TARGET_DEFAULT_RETURN.
10490
10491 2014-02-19 Tom Tromey <tromey@redhat.com>
10492
10493 * target-delegates.c: Rebuild.
10494 * target.c (update_current_target): Don't inherit or default
10495 to_supports_enable_disable_tracepoint.
10496 * target.h (struct target_ops)
10497 <to_supports_enable_disable_tracepoint>: Use
10498 TARGET_DEFAULT_RETURN.
10499
10500 2014-02-19 Tom Tromey <tromey@redhat.com>
10501
10502 * target-delegates.c: Rebuild.
10503 * target.c (update_current_target): Don't inherit or default
10504 to_supports_multi_process.
10505 * target.h (struct target_ops) <to_supports_multi_process>: Use
10506 TARGET_DEFAULT_RETURN.
10507
10508 2014-02-19 Tom Tromey <tromey@redhat.com>
10509
10510 * target-delegates.c: Rebuild.
10511 * target.c (update_current_target): Don't inherit or default
10512 to_get_ada_task_ptid.
10513 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
10514 TARGET_DEFAULT_FUNC.
10515
10516 2014-02-19 Tom Tromey <tromey@redhat.com>
10517
10518 * target-delegates.c: Rebuild.
10519 * target.c (update_current_target): Don't inherit or default
10520 to_thread_architecture.
10521 * target.h (struct target_ops) <to_thread_architecture>: Use
10522 TARGET_DEFAULT_FUNC.
10523
10524 2014-02-19 Tom Tromey <tromey@redhat.com>
10525
10526 * target-delegates.c: Rebuild.
10527 * target.c (update_current_target): Don't inherit or default
10528 to_execution_direction.
10529 * target.h (struct target_ops) <to_execution_direction>: Use
10530 TARGET_DEFAULT_FUNC.
10531
10532 2014-02-19 Tom Tromey <tromey@redhat.com>
10533
10534 * target-delegates.c: Rebuild.
10535 * target.c (update_current_target): Don't inherit or default
10536 to_can_execute_reverse.
10537 * target.h (struct target_ops) <to_can_execute_reverse>: Use
10538 TARGET_DEFAULT_RETURN.
10539 (target_can_execute_reverse): Unconditionally delegate.
10540
10541 2014-02-19 Tom Tromey <tromey@redhat.com>
10542
10543 * target-delegates.c: Rebuild.
10544 * target.c (update_current_target): Don't inherit or default
10545 to_goto_bookmark.
10546 (dummy_goto_bookmark): Remove.
10547 (init_dummy_target): Don't inherit or default to_goto_bookmark.
10548 * target.h (struct target_ops) <to_goto_bookmark>: Use
10549 TARGET_DEFAULT_NORETURN.
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_get_bookmark.
10556 (dummy_get_bookmark): Remove.
10557 (init_dummy_target): Don't inherit or default to_get_bookmark.
10558 * target.h (struct target_ops) <to_get_bookmark>: Use
10559 TARGET_DEFAULT_NORETURN
10560
10561 2014-02-19 Tom Tromey <tromey@redhat.com>
10562
10563 * target-delegates.c: Rebuild.
10564 * target.c (update_current_target): Don't inherit or default
10565 to_make_corefile_notes.
10566 (init_dummy_target): Don't initialize to_make_corefile_notes.
10567 * target.h (struct target_ops) <to_make_corefile_notes>: Use
10568 TARGET_DEFAULT_FUNC.
10569
10570 2014-02-19 Tom Tromey <tromey@redhat.com>
10571
10572 * target-delegates.c: Rebuild.
10573 * target.c (update_current_target): Don't inherit or default
10574 to_find_memory_regions.
10575 (init_dummy_target): Don't initialize to_find_memory_regions.
10576 * target.h (struct target_ops) <to_find_memory_regions>: Use
10577 TARGET_DEFAULT_FUNC.
10578
10579 2014-02-19 Tom Tromey <tromey@redhat.com>
10580
10581 * target-delegates.c: Rebuild.
10582 * target.c (update_current_target): Don't inherit or default
10583 to_log_command.
10584 * target.h (struct target_ops) <to_log_command>: Use
10585 TARGET_DEFAULT_IGNORE.
10586 (target_log_command): Unconditionally delegate.
10587
10588 2014-02-19 Tom Tromey <tromey@redhat.com>
10589
10590 * target-delegates.c: Rebuild.
10591 * target.c (update_current_target): Don't inherit or default
10592 to_pid_to_exec_file.
10593 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
10594 TARGET_DEFAULT_RETURN.
10595
10596 2014-02-19 Tom Tromey <tromey@redhat.com>
10597
10598 * target-delegates.c: Rebuild.
10599 * target.c (update_current_target): Don't inherit or default
10600 to_thread_name.
10601 (target_thread_name): Unconditionally delegate.
10602 * target.h (struct target_ops) <to_thread_name>: Use
10603 TARGET_DEFAULT_RETURN.
10604
10605 2014-02-19 Tom Tromey <tromey@redhat.com>
10606
10607 * target-delegates.c: Rebuild.
10608 * target.c (update_current_target): Don't inherit or default
10609 to_extra_thread_info.
10610 * target.h (struct target_ops) <to_extra_thread_info>: Use
10611 TARGET_DEFAULT_RETURN.
10612
10613 2014-02-19 Tom Tromey <tromey@redhat.com>
10614
10615 * target-delegates.c: Rebuild.
10616 * target.c (update_current_target): Don't inherit or default
10617 to_has_exited.
10618 * target.h (struct target_ops) <to_has_exited>: Use
10619 TARGET_DEFAULT_RETURN..
10620
10621 2014-02-19 Tom Tromey <tromey@redhat.com>
10622
10623 * target-delegates.c: Rebuild.
10624 * target.c (update_current_target): Don't inherit or default
10625 to_set_syscall_catchpoint.
10626 (return_one): Remove.
10627 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
10628 TARGET_DEFAULT_RETURN.
10629
10630 2014-02-19 Tom Tromey <tromey@redhat.com>
10631
10632 * target-delegates.c: Rebuild.
10633 * target.c (update_current_target): Don't inherit or default
10634 to_insert_exec_catchpoint.
10635 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
10636 TARGET_DEFAULT_RETURN.
10637
10638 2014-01-08 Tom Tromey <tromey@redhat.com>
10639
10640 * target-delegates.c: Rebuild.
10641 * target.c (update_current_target): Don't inherit or default
10642 to_insert_exec_catchpoint.
10643 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
10644 TARGET_DEFAULT_RETURN.
10645
10646 2014-02-19 Tom Tromey <tromey@redhat.com>
10647
10648 * target-delegates.c: Rebuild.
10649 * target.c (update_current_target): Don't inherit or default
10650 to_remove_vfork_catchpoint.
10651 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
10652 TARGET_DEFAULT_RETURN.
10653
10654 2014-02-19 Tom Tromey <tromey@redhat.com>
10655
10656 * target-delegates.c: Rebuild.
10657 * target.c (update_current_target): Don't inherit or default
10658 to_insert_vfork_catchpoint.
10659 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
10660 TARGET_DEFAULT_RETURN.
10661
10662 2014-02-19 Tom Tromey <tromey@redhat.com>
10663
10664 * target-delegates.c: Rebuild.
10665 * target.c (update_current_target): Don't inherit or default
10666 to_remove_fork_catchpoint.
10667 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
10668 TARGET_DEFAULT_RETURN.
10669
10670 2014-02-19 Tom Tromey <tromey@redhat.com>
10671
10672 * target-delegates.c: Rebuild.
10673 * target.c (update_current_target): Don't inherit or default
10674 to_insert_fork_catchpoint.
10675 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
10676 TARGET_DEFAULT_RETURN.
10677
10678 2014-02-19 Tom Tromey <tromey@redhat.com>
10679
10680 * target-delegates.c: Rebuild.
10681 * target.c (update_current_target): Don't inherit or default
10682 to_post_startup_inferior.
10683 * target.h (struct target_ops) <to_post_startup_inferior>: Use
10684 TARGET_DEFAULT_IGNORE.
10685
10686 2014-02-19 Tom Tromey <tromey@redhat.com>
10687
10688 * target-delegates.c: Rebuild.
10689 * target.c (update_current_target): Don't inherit or default
10690 to_load.
10691 * target.h (struct target_ops) <to_load>: Use
10692 TARGET_DEFAULT_NORETURN.
10693
10694 2014-02-19 Tom Tromey <tromey@redhat.com>
10695
10696 * target-delegates.c: Rebuild.
10697 * target.c (update_current_target): Don't inherit or default
10698 to_terminal_info.
10699 * target.h (struct target_ops) <to_terminal_info>: Use
10700 TARGET_DEFAULT_FUNC.
10701
10702 2014-02-19 Tom Tromey <tromey@redhat.com>
10703
10704 * target-delegates.c: Rebuild.
10705 * target.c (update_current_target): Don't inherit or default
10706 to_terminal_save_ours.
10707 * target.h (struct target_ops) <to_terminal_save_ours>: Use
10708 TARGET_DEFAULT_IGNORE.
10709
10710 2014-02-19 Tom Tromey <tromey@redhat.com>
10711
10712 * target-delegates.c: Rebuild.
10713 * target.c (update_current_target): Don't inherit or default
10714 to_terminal_ours.
10715 * target.h (struct target_ops) <to_terminal_ours>: Use
10716 TARGET_DEFAULT_IGNORE.
10717
10718 2014-02-19 Tom Tromey <tromey@redhat.com>
10719
10720 * target-delegates.c: Rebuild.
10721 * target.c (update_current_target): Don't inherit or default
10722 to_terminal_ours_for_output.
10723 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
10724 TARGET_DEFAULT_IGNORE.
10725
10726 2014-02-19 Tom Tromey <tromey@redhat.com>
10727
10728 * target-delegates.c: Rebuild.
10729 * target.c (update_current_target): Don't inherit or default
10730 to_terminal_inferior.
10731 * target.h (struct target_ops) <to_terminal_inferior>: Use
10732 TARGET_DEFAULT_IGNORE.
10733
10734 2014-02-19 Tom Tromey <tromey@redhat.com>
10735
10736 * target-delegates.c: Rebuild.
10737 * target.c (update_current_target): Don't inherit or default
10738 to_terminal_init.
10739 * target.h (struct target_ops) <to_terminal_init>: Use
10740 TARGET_DEFAULT_IGNORE.
10741
10742 2014-02-19 Tom Tromey <tromey@redhat.com>
10743
10744 * target-delegates.c: Rebuild.
10745 * target.c (update_current_target): Don't inherit or default
10746 to_can_accel_watchpoint_condition.
10747 * target.h (struct target_ops)
10748 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
10749
10750 2014-02-19 Tom Tromey <tromey@redhat.com>
10751
10752 * target-delegates.c: Rebuild.
10753 * target.c (update_current_target): Don't inherit or default
10754 to_region_ok_for_hw_watchpoint.
10755 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10756 Use TARGET_DEFAULT_FUNC.
10757
10758 2014-02-19 Tom Tromey <tromey@redhat.com>
10759
10760 * target-delegates.c: Rebuild.
10761 * target.c (update_current_target): Don't inherit or default
10762 to_watchpoint_addr_within_range.
10763 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
10764 Use TARGET_DEFAULT_FUNC.
10765
10766 2014-02-19 Tom Tromey <tromey@redhat.com>
10767
10768 * target-delegates.c: Rebuild.
10769 * target.c (update_current_target): Don't inherit or default
10770 to_remove_watchpoint.
10771 * target.h (struct target_ops) <to_remove_watchpoint>: Use
10772 TARGET_DEFAULT_NORETURN.
10773
10774 2014-02-19 Tom Tromey <tromey@redhat.com>
10775
10776 * target-delegates.c: Rebuild.
10777 * target.c (update_current_target): Don't inherit or default
10778 to_insert_watchpoint.
10779 * target.h (struct target_ops) <to_insert_watchpoint>: Use
10780 TARGET_DEFAULT_RETURN.
10781
10782 2014-02-19 Tom Tromey <tromey@redhat.com>
10783
10784 * target-delegates.c: Rebuild.
10785 * target.c (update_current_target): Don't inherit or default
10786 to_remove_hw_breakpoint.
10787 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
10788 TARGET_DEFAULT_RETURN.
10789
10790 2014-02-19 Tom Tromey <tromey@redhat.com>
10791
10792 * target-delegates.c: Rebuild.
10793 * target.c (update_current_target): Don't inherit or default
10794 to_insert_hw_breakpoint.
10795 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
10796 TARGET_DEFAULT_RETURN.
10797
10798 2014-02-19 Tom Tromey <tromey@redhat.com>
10799
10800 * target-delegates.c: Rebuild.
10801 * target.c (update_current_target): Don't inherit or default
10802 to_can_use_hw_breakpoint.
10803 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
10804 TARGET_DEFAULT_RETURN.
10805
10806 2014-02-19 Tom Tromey <tromey@redhat.com>
10807
10808 * target-delegates.c: Rebuild.
10809 * target.c (update_current_target): Don't inherit or default
10810 to_files_info.
10811 * target.h (struct target_ops) <to_files_info>: Use
10812 TARGET_DEFAULT_IGNORE.
10813
10814 2014-02-19 Tom Tromey <tromey@redhat.com>
10815
10816 * target-delegates.c: Rebuild.
10817 * target.c (update_current_target): Don't inherit or default
10818 to_store.
10819 * target.h (struct target_ops) <to_store>: Use
10820 TARGET_DEFAULT_NORETURN.
10821
10822 2014-02-19 Tom Tromey <tromey@redhat.com>
10823
10824 * target-delegates.c: Rebuild.
10825 * target.c (update_current_target): Don't inherit or default
10826 to_post_attach.
10827 * target.h (struct target_ops) <to_post_attach>: Use
10828 TARGET_DEFAULT_IGNORE.
10829
10830 2014-02-19 Tom Tromey <tromey@redhat.com>
10831
10832 * target-delegates.c: Rebuild.
10833 * target.c (update_current_target): Don't inherit or default
10834 to_rcmd.
10835 (default_rcmd): New function.
10836 (do_monitor_command): Unconditionally delegate.
10837 * target.h (struct target_ops) <to_rmcd>: Use
10838 TARGET_DEFAULT_FUNC.
10839
10840 2014-02-19 Tom Tromey <tromey@redhat.com>
10841
10842 * target-delegates.c: Rebuild.
10843 * target.c (init_dummy_target): Don't initialize to_attach.
10844 (target_attach): Unconditionally delegate.
10845 * target.h (struct target_ops) <to_attach>: Use
10846 TARGET_DEFAULT_FUNC.
10847
10848 2014-02-19 Tom Tromey <tromey@redhat.com>
10849
10850 * target-delegates.c: Rebuild.
10851 * target.c (target_detach): Unconditionally delegate.
10852 (init_dummy_target): Don't initialize to_detach.
10853 * target.h (struct target_ops) <to_detach>: Use
10854 TARGET_DEFAULT_IGNORE.
10855
10856 2014-02-19 Tom Tromey <tromey@redhat.com>
10857
10858 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
10859 Add argument.
10860 (target_augmented_libraries_svr4_read): Add argument.
10861 * target.c (update_current_target): Update.
10862 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
10863 argument.
10864
10865 2014-02-19 Tom Tromey <tromey@redhat.com>
10866
10867 * target.h (struct target_ops) <to_call_history_range>: Add
10868 argument.
10869 * target.c (target_call_history_range): Add argument.
10870 * record-btrace.c (record_btrace_call_history_range): Add 'self'
10871 argument.
10872 (record_btrace_call_history_from): Update.
10873
10874 2014-02-19 Tom Tromey <tromey@redhat.com>
10875
10876 * target.h (struct target_ops) <to_call_history_from>: Add
10877 argument.
10878 * target.c (target_call_history_from): Add argument.
10879 * record-btrace.c (record_btrace_call_history_from): Add 'self'
10880 argument.
10881
10882 2014-02-19 Tom Tromey <tromey@redhat.com>
10883
10884 * target.h (struct target_ops) <to_call_history>: Add argument.
10885 * target.c (target_call_history): Add argument.
10886 * record-btrace.c (record_btrace_call_history): Add 'self'
10887 argument.
10888
10889 2014-02-19 Tom Tromey <tromey@redhat.com>
10890
10891 * target.h (struct target_ops) <to_insn_history_range>: Add
10892 argument.
10893 * target.c (target_insn_history_range): Add argument.
10894 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
10895 argument.
10896 (record_btrace_insn_history_from): Update.
10897
10898 2014-02-19 Tom Tromey <tromey@redhat.com>
10899
10900 * target.h (struct target_ops) <to_insn_history_from>: Add
10901 argument.
10902 * target.c (target_insn_history_from): Add argument.
10903 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
10904 argument.
10905
10906 2014-02-19 Tom Tromey <tromey@redhat.com>
10907
10908 * target.h (struct target_ops) <to_insn_history>: Add argument.
10909 * target.c (target_insn_history): Add argument.
10910 * record-btrace.c (record_btrace_insn_history): Add 'self'
10911 argument.
10912
10913 2014-02-19 Tom Tromey <tromey@redhat.com>
10914
10915 * target.h (struct target_ops) <to_goto_record>: Add argument.
10916 * target.c (target_goto_record): Add argument.
10917 * record-full.c (record_full_goto): Add 'self' argument.
10918 * record-btrace.c (record_btrace_goto): Add 'self' argument.
10919
10920 2014-02-19 Tom Tromey <tromey@redhat.com>
10921
10922 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
10923 * target.c (target_goto_record_end): Add argument.
10924 * record-full.c (record_full_goto_end): Add 'self' argument.
10925 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
10926
10927 2014-02-19 Tom Tromey <tromey@redhat.com>
10928
10929 * target.h (struct target_ops) <to_goto_record_begin>: Add
10930 argument.
10931 * target.c (target_goto_record_begin): Add argument.
10932 * record-full.c (record_full_goto_begin): Add 'self' argument.
10933 * record-btrace.c (record_btrace_goto_begin): Add 'self'
10934 argument.
10935
10936 2014-02-19 Tom Tromey <tromey@redhat.com>
10937
10938 * target.h (struct target_ops) <to_record_is_replaying>: Add
10939 argument.
10940 * target.c (target_record_is_replaying): Add argument.
10941 * record-full.c (record_full_is_replaying): Add 'self' argument.
10942 * record-btrace.c (record_btrace_is_replaying): Add 'self'
10943 argument.
10944 (record_btrace_xfer_partial, record_btrace_store_registers)
10945 (record_btrace_prepare_to_store, record_btrace_resume)
10946 (record_btrace_wait, record_btrace_decr_pc_after_break)
10947 (record_btrace_find_new_threads, record_btrace_thread_alive):
10948 Update.
10949
10950 2014-02-19 Tom Tromey <tromey@redhat.com>
10951
10952 * target.h (struct target_ops) <to_delete_record>: Add argument.
10953 * target.c (target_delete_record): Add argument.
10954 * record-full.c (record_full_delete): Add 'self' argument.
10955
10956 2014-02-19 Tom Tromey <tromey@redhat.com>
10957
10958 * target.h (struct target_ops) <to_save_record>: Add argument.
10959 * target.c (target_save_record): Add argument.
10960 * record-full.c (record_full_save): Add 'self' argument.
10961 (record_full_save): Add 'self' argument.
10962
10963 2014-02-19 Tom Tromey <tromey@redhat.com>
10964
10965 * target.h (struct target_ops) <to_info_record>: Add argument.
10966 * target.c (target_info_record): Add argument.
10967 * record.c (info_record_command): Add argument.
10968 * record-full.c (record_full_info): Add 'self' argument.
10969 * record-btrace.c (record_btrace_info): Add 'self' argument.
10970
10971 2014-02-19 Tom Tromey <tromey@redhat.com>
10972
10973 * target.h (struct target_ops) <to_stop_recording>: Add argument.
10974 * target.c (target_stop_recording): Add argument.
10975 * record.c (record_stop): Add argument.
10976 * record-btrace.c (record_btrace_stop_recording): Add 'self'
10977 argument.
10978
10979 2014-02-19 Tom Tromey <tromey@redhat.com>
10980
10981 * target.h (struct target_ops) <to_read_btrace>: Add argument.
10982 * target.c (struct target_ops) <to_read_btrace>: Add argument.
10983 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
10984 argument.
10985 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
10986 (_initialize_amd64_linux_nat): Use it.
10987 * i386-linux-nat.c (i386_linux_read_btrace): New function.
10988 (_initialize_i386_linux_nat): Use it.
10989
10990 2014-02-19 Tom Tromey <tromey@redhat.com>
10991
10992 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
10993 * target.c (target_teardown_btrace): Add argument.
10994 * remote.c (remote_teardown_btrace): Add 'self' argument.
10995 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
10996 argument.
10997 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
10998 argument.
10999
11000 2014-02-19 Tom Tromey <tromey@redhat.com>
11001
11002 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
11003 * target.c (target_disable_btrace): Add argument.
11004 * remote.c (remote_disable_btrace): Add 'self' argument.
11005 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
11006 argument.
11007 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
11008 argument.
11009
11010 2014-02-19 Tom Tromey <tromey@redhat.com>
11011
11012 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
11013 * target.c (target_enable_btrace): Add argument.
11014 * remote.c (remote_enable_btrace): Add 'self' argument.
11015 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
11016 argument.
11017 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
11018 argument.
11019
11020 2014-02-19 Tom Tromey <tromey@redhat.com>
11021
11022 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
11023 (target_can_use_agent): Add argument.
11024 * target.c (update_current_target): Update.
11025 * remote.c (remote_can_use_agent): Add 'self' argument.
11026 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
11027
11028 2014-02-19 Tom Tromey <tromey@redhat.com>
11029
11030 * target.h (struct target_ops) <to_use_agent>: Add argument.
11031 (target_use_agent): Add argument.
11032 * target.c (update_current_target): Update.
11033 * remote.c (remote_use_agent): Add 'self' argument.
11034 * inf-child.c (inf_child_use_agent): Add 'self' argument.
11035
11036 2014-02-19 Tom Tromey <tromey@redhat.com>
11037
11038 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
11039 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
11040 (target_traceframe_info): Add argument.
11041 * target.c (update_current_target): Update.
11042 * remote.c (remote_traceframe_info): Add 'self' argument.
11043 * ctf.c (ctf_traceframe_info): Add 'self' argument.
11044
11045 2014-02-19 Tom Tromey <tromey@redhat.com>
11046
11047 * target.h (target_static_tracepoint_markers_by_strid): Add
11048 argument.
11049 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
11050 'self' argument.
11051 * target.c (update_current_target): Update.
11052 * remote.c (struct target_ops)
11053 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
11054 * linux-nat.c (struct target_ops)
11055 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
11056
11057 2014-02-19 Tom Tromey <tromey@redhat.com>
11058
11059 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
11060 Add argument.
11061 (target_static_tracepoint_marker_at): Add argument.
11062 * target.c (update_current_target): Update.
11063 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
11064 argument.
11065
11066 2014-02-19 Tom Tromey <tromey@redhat.com>
11067
11068 * target.h (struct target_ops) <to_set_permissions>: Add argument.
11069 (target_set_permissions): Add argument.
11070 * target.c (update_current_target): Update.
11071 * remote.c (remote_set_permissions): Add 'self' argument.
11072 (remote_start_remote): Update.
11073
11074 2014-02-19 Tom Tromey <tromey@redhat.com>
11075
11076 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
11077 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
11078 (target_get_tib_address): Add argument.
11079 * target.c (update_current_target): Update.
11080 * remote.c (remote_get_tib_address): Add 'self' argument.
11081
11082 2014-02-19 Tom Tromey <tromey@redhat.com>
11083
11084 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
11085 (target_set_trace_notes): Add argument.
11086 * target.c (update_current_target): Update.
11087 * remote.c (remote_set_trace_notes): Add 'self' argument.
11088
11089 2014-02-19 Tom Tromey <tromey@redhat.com>
11090
11091 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
11092 argument.
11093 (target_set_trace_buffer_size): Add argument.
11094 * target.c (update_current_target): Update.
11095 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
11096
11097 2014-02-19 Tom Tromey <tromey@redhat.com>
11098
11099 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
11100 argument.
11101 (target_set_circular_trace_buffer): Add argument.
11102 * target.c (update_current_target): Update.
11103 * remote.c (remote_set_circular_trace_buffer): Add 'self'
11104 argument.
11105
11106 2014-02-19 Tom Tromey <tromey@redhat.com>
11107
11108 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
11109 argument.
11110 (target_set_disconnected_tracing): Add argument.
11111 * target.c (update_current_target): Update.
11112 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
11113
11114 2014-02-19 Tom Tromey <tromey@redhat.com>
11115
11116 * target.h (struct target_ops)
11117 <to_get_min_fast_tracepoint_insn_len>: Add argument.
11118 (target_get_min_fast_tracepoint_insn_len): Add argument.
11119 * target.c (update_current_target): Update.
11120 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
11121 argument.
11122
11123 2014-02-19 Tom Tromey <tromey@redhat.com>
11124
11125 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
11126 argument.
11127 (target_get_raw_trace_data): Add argument.
11128 * target.c (update_current_target): Update.
11129 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
11130
11131 2014-02-19 Tom Tromey <tromey@redhat.com>
11132
11133 * target.h (struct target_ops) <to_upload_trace_state_variables>:
11134 Add argument.
11135 (target_upload_trace_state_variables): Add argument.
11136 * target.c (update_current_target): Update.
11137 * remote.c (remote_upload_trace_state_variables): Add 'self'
11138 argument.
11139 (remote_start_remote): Update.
11140
11141 2014-02-19 Tom Tromey <tromey@redhat.com>
11142
11143 * target.h (struct target_ops) <to_upload_tracepoints>: Add
11144 argument.
11145 (target_upload_tracepoints): Add argument.
11146 * target.c (update_current_target): Update.
11147 * remote.c (remote_upload_tracepoints): Add 'self' argument.
11148 (remote_start_remote): Update.
11149
11150 2014-02-19 Tom Tromey <tromey@redhat.com>
11151
11152 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
11153 (target_save_trace_data): Add argument.
11154 * target.c (update_current_target): Update.
11155 * remote.c (remote_save_trace_data): Add 'self' argument.
11156
11157 2014-02-19 Tom Tromey <tromey@redhat.com>
11158
11159 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
11160 argument.
11161 * target.h (struct target_ops)
11162 <to_get_trace_state_variable_value>: Add argument.
11163 (target_get_trace_state_variable_value): Add argument.
11164 * target.c (update_current_target): Update.
11165 * remote.c (remote_get_trace_state_variable_value): Add 'self'
11166 argument.
11167 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
11168
11169 2014-02-19 Tom Tromey <tromey@redhat.com>
11170
11171 * tracepoint.c (tfile_trace_find): Add 'self' argument.
11172 * target.h (struct target_ops) <to_trace_find>: Add argument.
11173 (target_trace_find): Add argument.
11174 * target.c (update_current_target): Update.
11175 * remote.c (remote_trace_find): Add 'self' argument.
11176 * ctf.c (ctf_trace_find): Add 'self' argument.
11177
11178 2014-02-19 Tom Tromey <tromey@redhat.com>
11179
11180 * target.h (struct target_ops) <to_trace_stop>: Add argument.
11181 (target_trace_stop): Add argument.
11182 * target.c (update_current_target): Update.
11183 * remote.c (remote_trace_stop): Add 'self' argument.
11184
11185 2014-02-19 Tom Tromey <tromey@redhat.com>
11186
11187 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
11188 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
11189 argument.
11190 (target_get_tracepoint_status): Add argument.
11191 * target.c (update_current_target): Update.
11192 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
11193
11194 2014-02-19 Tom Tromey <tromey@redhat.com>
11195
11196 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
11197 * target.h (struct target_ops) <to_get_trace_status>: Add
11198 argument.
11199 (target_get_trace_status): Add argument.
11200 * target.c (update_current_target): Update.
11201 * remote.c (remote_get_trace_status): Add 'self' argument.
11202 (remote_start_remote, remote_can_download_tracepoint): Update.
11203 * ctf.c (ctf_get_trace_status): Add 'self' argument.
11204
11205 2014-02-19 Tom Tromey <tromey@redhat.com>
11206
11207 * target.h (struct target_ops) <to_trace_start>: Add argument.
11208 (target_trace_start): Add argument.
11209 * target.c (update_current_target): Update.
11210 * remote.c (remote_trace_start): Add 'self' argument.
11211
11212 2014-02-19 Tom Tromey <tromey@redhat.com>
11213
11214 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
11215 Add argument.
11216 (target_trace_set_readonly_regions): Add argument.
11217 * target.c (update_current_target): Update.
11218 * remote.c (remote_trace_set_readonly_regions): Add 'self'
11219 argument.
11220
11221 2014-02-19 Tom Tromey <tromey@redhat.com>
11222
11223 * target.h (struct target_ops) <to_disable_tracepoint>: Add
11224 argument.
11225 (target_disable_tracepoint): Add argument.
11226 * target.c (update_current_target): Update.
11227 * remote.c (remote_disable_tracepoint): Add 'self' argument.
11228
11229 2014-02-19 Tom Tromey <tromey@redhat.com>
11230
11231 * target.h (struct target_ops) <to_enable_tracepoint>: Add
11232 argument.
11233 (target_enable_tracepoint): Add argument.
11234 * target.c (update_current_target): Update.
11235 * remote.c (remote_enable_tracepoint): Add 'self' argument.
11236
11237 2014-02-19 Tom Tromey <tromey@redhat.com>
11238
11239 * target.h (struct target_ops) <to_download_trace_state_variable>:
11240 Add argument.
11241 (target_download_trace_state_variable): Add argument.
11242 * target.c (update_current_target): Update.
11243 * remote.c (remote_download_trace_state_variable): Add 'self'
11244 argument.
11245
11246 2014-02-19 Tom Tromey <tromey@redhat.com>
11247
11248 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
11249 argument.
11250 (target_can_download_tracepoint): Add argument.
11251 * target.c (update_current_target): Update.
11252 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
11253
11254 2014-02-19 Tom Tromey <tromey@redhat.com>
11255
11256 * target.h (struct target_ops) <to_download_tracepoint>: Add
11257 argument.
11258 (target_download_tracepoint): Add argument.
11259 * target.c (update_current_target): Update.
11260 * remote.c (remote_download_tracepoint): Add 'self' argument.
11261
11262 2014-02-19 Tom Tromey <tromey@redhat.com>
11263
11264 * target.h (struct target_ops) <to_trace_init>: Add argument.
11265 (target_trace_init): Add argument.
11266 * target.c (update_current_target): Update.
11267 * remote.c (remote_trace_init): Add 'self' argument.
11268
11269 2014-02-19 Tom Tromey <tromey@redhat.com>
11270
11271 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
11272 * target.c (target_fileio_readlink): Add argument.
11273 * remote.c (remote_hostio_readlink): Add 'self' argument.
11274 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
11275
11276 2014-02-19 Tom Tromey <tromey@redhat.com>
11277
11278 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
11279 * target.c (target_fileio_unlink): Add argument.
11280 * remote.c (remote_hostio_unlink): Add 'self' argument.
11281 (remote_file_delete): Update.
11282 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
11283
11284 2014-02-19 Tom Tromey <tromey@redhat.com>
11285
11286 * target.h (struct target_ops) <to_fileio_close>: Add argument.
11287 * target.c (target_fileio_close): Add argument.
11288 * remote.c (remote_hostio_close): Add 'self' argument.
11289 (remote_hostio_close_cleanup): Update.
11290 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
11291 Update.
11292 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
11293
11294 2014-02-19 Tom Tromey <tromey@redhat.com>
11295
11296 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
11297 * target.c (target_fileio_pread): Add argument.
11298 * remote.c (remote_hostio_pread): Add 'self' argument.
11299 (remote_bfd_iovec_pread, remote_file_get): Update.
11300 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
11301
11302 2014-02-19 Tom Tromey <tromey@redhat.com>
11303
11304 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
11305 * target.c (target_fileio_pwrite): Add argument.
11306 * remote.c (remote_hostio_pwrite): Add 'self' argument.
11307 (remote_file_put): Update.
11308 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
11309
11310 2014-02-19 Tom Tromey <tromey@redhat.com>
11311
11312 * target.h (struct target_ops) <to_fileio_open>: Add argument.
11313 * target.c (target_fileio_open): Add argument.
11314 * remote.c (remote_hostio_open): Add 'self' argument.
11315 (remote_bfd_iovec_open): Add 'self' argument.
11316 (remote_file_put): Add 'self' argument.
11317 (remote_file_get): Add 'self' argument.
11318 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
11319
11320 2014-02-19 Tom Tromey <tromey@redhat.com>
11321
11322 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
11323 Add argument.
11324 (target_can_run_breakpoint_commands): Add argument.
11325 * target.c (update_current_target): Update.
11326 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
11327 argument.
11328 (remote_insert_breakpoint): Add 'self' argument.
11329 (remote_insert_hw_breakpoint): Add 'self' argument.
11330 (remote_can_run_breakpoint_commands): Add 'self' argument.
11331
11332 2014-02-19 Tom Tromey <tromey@redhat.com>
11333
11334 * target.h (struct target_ops)
11335 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
11336 (target_supports_evaluation_of_breakpoint_conditions): Add
11337 argument.
11338 * target.c (update_current_target): Update.
11339 * remote.c (remote_supports_cond_breakpoints): Add 'self'
11340 argument.
11341 (remote_insert_breakpoint): Add 'self' argument.
11342 (remote_insert_hw_breakpoint): Add 'self' argument.
11343 (remote_supports_cond_breakpoints): Add 'self' argument.
11344
11345 2014-02-19 Tom Tromey <tromey@redhat.com>
11346
11347 * target.h (struct target_ops) <to_supports_string_tracing>: Add
11348 argument.
11349 (target_supports_string_tracing): Add argument.
11350 * target.c (update_current_target): Update.
11351 * remote.c (remote_supports_string_tracing): Add 'self' argument.
11352
11353 2014-02-19 Tom Tromey <tromey@redhat.com>
11354
11355 * target.h (struct target_ops)
11356 <to_supports_disable_randomization>: Add argument.
11357 * target.c (find_default_supports_disable_randomization): Add
11358 argument.
11359 (target_supports_disable_randomization): Add argument.
11360 (find_default_supports_disable_randomization): Add 'self'
11361 argument.
11362 * remote.c (extended_remote_supports_disable_randomization): Add
11363 'self' argument.
11364 (remote_supports_disable_randomization): Add 'self' argument.
11365 (extended_remote_create_inferior): Update.
11366 * linux-nat.c (linux_nat_supports_disable_randomization): Add
11367 'self' argument.
11368
11369 2014-02-19 Tom Tromey <tromey@redhat.com>
11370
11371 * target.h (struct target_ops)
11372 <to_supports_enable_disable_tracepoint>: Add argument.
11373 (target_supports_enable_disable_tracepoint): Add argument.
11374 * target.c (update_current_target): Update.
11375 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
11376 argument.
11377
11378 2014-02-19 Tom Tromey <tromey@redhat.com>
11379
11380 * target.h (struct target_ops) <to_supports_multi_process>: Add
11381 argument.
11382 (target_supports_multi_process): Add argument.
11383 * target.c (update_current_target): Update.
11384 * remote.c (remote_supports_multi_process): Add 'self' argument.
11385 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
11386 argument.
11387 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
11388 argument.
11389
11390 2014-02-19 Tom Tromey <tromey@redhat.com>
11391
11392 * target.h (struct target_ops) <to_execution_direction>: Add
11393 argument.
11394 (target_execution_direction): Add argument.
11395 * target.c (default_execution_direction): Add 'self' argument.
11396 * record-full.c (record_full_execution_direction): Add 'self'
11397 argument.
11398
11399 2014-02-19 Tom Tromey <tromey@redhat.com>
11400
11401 * target.h (struct target_ops) <to_can_execute_reverse>: Add
11402 argument.
11403 (target_can_execute_reverse): Add argument.
11404 * remote.c (remote_can_execute_reverse): Add 'self' argument.
11405 * record-full.c (record_full_can_execute_reverse): Add 'self'
11406 argument.
11407 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
11408 argument.
11409
11410 2014-02-19 Tom Tromey <tromey@redhat.com>
11411
11412 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
11413 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
11414 argument.
11415 (target_get_ada_task_ptid): Add argument.
11416 * target.c (update_current_target): Update.
11417 (default_get_ada_task_ptid): Add 'self' argument.
11418 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
11419 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
11420 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
11421 argument.
11422 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
11423 argument.
11424 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
11425 argument.
11426 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
11427 argument.
11428 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
11429 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
11430 argument.
11431
11432 2014-02-19 Tom Tromey <tromey@redhat.com>
11433
11434 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
11435 (target_goto_bookmark): Add argument.
11436 * target.c (dummy_goto_bookmark): Add 'self' argument.
11437 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
11438
11439 2014-02-19 Tom Tromey <tromey@redhat.com>
11440
11441 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
11442 (target_get_bookmark): Add argument.
11443 * target.c (dummy_get_bookmark): Add 'self' argument.
11444 * record-full.c (record_full_get_bookmark): Add 'self' argument.
11445
11446 2014-02-19 Tom Tromey <tromey@redhat.com>
11447
11448 * target.h (struct target_ops) <to_make_corefile_notes>: Add
11449 argument.
11450 (target_make_corefile_notes): Add argument.
11451 * target.c (dummy_make_corefile_notes): Add 'self' argument.
11452 * procfs.c (procfs_make_note_section): Add 'self' argument.
11453 (procfs_make_note_section): Add 'self' argument.
11454 (procfs_make_note_section): Add 'self' argument.
11455 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
11456 argument.
11457 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
11458 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
11459 * exec.c (exec_make_note_section): Add 'self' argument.
11460 (exec_make_note_section): Add 'self' argument.
11461
11462 2014-02-19 Tom Tromey <tromey@redhat.com>
11463
11464 * target.h (struct target_ops) <to_find_memory_regions>: Add
11465 argument.
11466 (target_find_memory_regions): Add argument.
11467 * target.c (dummy_find_memory_regions): Add 'self' argument.
11468 * procfs.c (proc_find_memory_regions): Add 'self' argument.
11469 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
11470 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
11471 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
11472 * exec. (exec_do_find_memory_regions): New global.
11473 (exec_set_find_memory_regions): Rewrite.
11474 (exec_find_memory_regions): New function.
11475 (init_exec_ops): Use exec_find_memory_regions.
11476
11477 2014-02-19 Tom Tromey <tromey@redhat.com>
11478
11479 * target.h (struct target_ops) <to_supports_non_stop>: Add
11480 argument.
11481 * target.c (find_default_supports_non_stop): Add argument.
11482 (target_supports_non_stop): Add argument.
11483 (find_default_supports_non_stop): Add 'self' argument.
11484 * remote.c (remote_supports_non_stop): Add 'self' argument.
11485 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
11486
11487 2014-02-19 Tom Tromey <tromey@redhat.com>
11488
11489 * target.h (struct target_ops) <to_log_command>: Add argument.
11490 (target_log_command): Add argument.
11491 * serial.h (serial_log_command): Add 'self' argument.
11492 * serial.c (serial_log_command): Add 'self' argument.
11493
11494 2014-02-19 Tom Tromey <tromey@redhat.com>
11495
11496 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
11497 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
11498 argument.
11499 (target_pid_to_exec_file): Add argument.
11500 * target.c (debug_to_pid_to_exec_file): Add argument.
11501 (update_current_target): Update.
11502 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
11503 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
11504 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
11505 (linux_handle_extended_wait): Update.
11506 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
11507 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
11508 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
11509 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
11510
11511 2014-02-19 Tom Tromey <tromey@redhat.com>
11512
11513 * target.h (struct target_ops) <to_rcmd>: Add argument.
11514 (target_rcmd): Add argument.
11515 * target.c (debug_to_rcmd): Add argument.
11516 (update_current_target, do_monitor_command): Update.
11517 * remote.c (remote_rcmd): Add 'self' argument.
11518 * monitor.c (monitor_rcmd): Add 'self' argument.
11519
11520 2014-02-19 Tom Tromey <tromey@redhat.com>
11521
11522 * windows-nat.c (windows_stop): Add 'self' argument.
11523 * target.h (struct target_ops) <to_stop>: Add argument.
11524 * target.c (target_stop): Add argument.
11525 (debug_to_stop): Add argument.
11526 (update_current_target): Update.
11527 * remote.c (remote_stop): Add 'self' argument.
11528 * remote-sim.c (gdbsim_stop): Add 'self' argument.
11529 (gdbsim_cntrl_c): Update.
11530 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
11531 * procfs.c (procfs_stop): Add 'self' argument.
11532 * nto-procfs.c (procfs_stop): Add 'self' argument.
11533 * monitor.c (monitor_stop): Add 'self' argument.
11534 (monitor_open): Update.
11535 * linux-nat.c (linux_nat_stop): Add argument.
11536 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
11537 * gnu-nat.c (gnu_stop): Add 'self' argument.
11538 * darwin-nat.c (darwin_stop): Add 'self' argument.
11539
11540 2014-02-19 Tom Tromey <tromey@redhat.com>
11541
11542 * target.h (struct target_ops) <to_thread_name>: Add argument.
11543 * target.c (target_thread_name): Add argument.
11544 (update_current_target): Update.
11545 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
11546
11547 2014-02-19 Tom Tromey <tromey@redhat.com>
11548
11549 * target.h (struct target_ops) <to_extra_thread_info>: Add
11550 argument.
11551 (target_extra_thread_info): Add argument.
11552 * target.c (update_current_target): Update.
11553 * remote.c (remote_threads_extra_info): Add 'self' argument.
11554 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
11555 argument.
11556 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
11557 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
11558 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
11559 argument.
11560 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
11561 argument.
11562 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
11563 argument.
11564 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
11565 argument.
11566
11567 2014-02-19 Tom Tromey <tromey@redhat.com>
11568
11569 * target.h (struct target_ops) <to_program_signals>: Add argument.
11570 * target.c (target_program_signals): Add argument.
11571 * remote.c (remote_program_signals): Add 'self' argument.
11572
11573 2014-02-19 Tom Tromey <tromey@redhat.com>
11574
11575 * target.h (struct target_ops) <to_pass_signals>: Add argument.
11576 * target.c (target_pass_signals): Add argument.
11577 * remote.c (remote_pass_signals): Add 'self' argument.
11578 (remote_start_remote): Update.
11579 * procfs.c (procfs_pass_signals): Add 'self' argument.
11580 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
11581 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
11582 (linux_nat_create_inferior, linux_nat_attach): Update.
11583
11584 2014-02-19 Tom Tromey <tromey@redhat.com>
11585
11586 * windows-nat.c (windows_can_run): Add 'self' argument.
11587 * target.h (struct target_ops) <to_can_run>: Add argument.
11588 (target_can_run): Add argument.
11589 * target.c (debug_to_can_run): Add argument.
11590 (update_current_target): Update.
11591 * nto-procfs.c (procfs_can_run): Add 'self' argument.
11592 * inf-child.c (inf_child_can_run): Add 'self' argument.
11593 * go32-nat.c (go32_can_run): Add 'self' argument.
11594
11595 2014-02-19 Tom Tromey <tromey@redhat.com>
11596
11597 * target.h (struct target_ops) <to_has_exited>: Add argument.
11598 (target_has_exited): Add argument.
11599 * target.c (debug_to_has_exited): Add argument.
11600 (update_current_target): Update.
11601
11602 2014-02-19 Tom Tromey <tromey@redhat.com>
11603
11604 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
11605 argument.
11606 (target_set_syscall_catchpoint): Add argument.
11607 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
11608 argument.
11609 * target.c (update_current_target): Update.
11610
11611 2014-02-19 Tom Tromey <tromey@redhat.com>
11612
11613 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
11614 argument.
11615 (target_remove_exec_catchpoint): Add argument.
11616 * target.c (debug_to_remove_exec_catchpoint): Add argument.
11617 (update_current_target): Update.
11618 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
11619 argument.
11620
11621 2014-02-19 Tom Tromey <tromey@redhat.com>
11622
11623 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
11624 argument.
11625 (target_insert_exec_catchpoint): Add argument.
11626 * target.c (debug_to_insert_exec_catchpoint): Add argument.
11627 (update_current_target): Update.
11628 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
11629 argument.
11630
11631 2014-02-19 Tom Tromey <tromey@redhat.com>
11632
11633 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
11634 argument.
11635 (target_remove_vfork_catchpoint): Add argument.
11636 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
11637 (update_current_target): Update.
11638 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
11639 argument.
11640
11641 2014-02-19 Tom Tromey <tromey@redhat.com>
11642
11643 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
11644 argument.
11645 (target_insert_vfork_catchpoint): Add argument.
11646 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
11647 (update_current_target): Update.
11648 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
11649 argument.
11650
11651 2014-02-19 Tom Tromey <tromey@redhat.com>
11652
11653 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
11654 argument.
11655 (target_remove_fork_catchpoint): Add argument.
11656 * target.c (debug_to_remove_fork_catchpoint): Add argument.
11657 (update_current_target): Update.
11658 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
11659 argument.
11660
11661 2014-02-19 Tom Tromey <tromey@redhat.com>
11662
11663 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
11664 argument.
11665 (target_insert_fork_catchpoint): Add argument.
11666 * target.c (debug_to_insert_fork_catchpoint): Add argument.
11667 (update_current_target): Update.
11668 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
11669 argument.
11670
11671 2014-02-19 Tom Tromey <tromey@redhat.com>
11672
11673 * target.h (struct target_ops) <to_post_startup_inferior>: Add
11674 argument.
11675 (target_post_startup_inferior): Add argument.
11676 * target.c (debug_to_post_startup_inferior): Add argument.
11677 (update_current_target): Update.
11678 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
11679 argument.
11680 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
11681 argument.
11682 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
11683 argument.
11684 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
11685 argument.
11686 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
11687 'self' argument.
11688 (super_post_startup_inferior): Likewise.
11689 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
11690 'self' argument.
11691 (super_post_startup_inferior): Likewise.
11692 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
11693 Add 'self' argument.
11694 (super_post_startup_inferior): Likewise.
11695
11696 2014-02-19 Tom Tromey <tromey@redhat.com>
11697
11698 * target.h (struct target_ops) <to_load>: Add argument.
11699 * target.c (target_load): Add argument.
11700 (debug_to_load): Add argument.
11701 (update_current_target): Update.
11702 * remote.c (remote_load): Add 'self' argument.
11703 * remote-sim.c (gdbsim_load): Add 'self' argument.
11704 * remote-mips.c (mips_load): Add 'self' argument.
11705 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
11706 * monitor.c (monitor_load): Add 'self' argument.
11707 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
11708
11709 2014-02-19 Tom Tromey <tromey@redhat.com>
11710
11711 * target.h (struct target_ops) <to_terminal_info>: Add argument.
11712 (target_terminal_info): Add argument.
11713 * target.c (debug_to_terminal_info): Add argument.
11714 (default_terminal_info): Likewise.
11715 * inflow.c (child_terminal_info): Add 'self' argument.
11716 * inferior.h (child_terminal_info): Add 'self' argument.
11717 * go32-nat.c (go32_terminal_info): Add 'self' argument.
11718
11719 2014-02-19 Tom Tromey <tromey@redhat.com>
11720
11721 * target.h (struct target_ops) <to_terminal_save_ours>: Add
11722 argument.
11723 (target_terminal_save_ours): Add argument.
11724 * target.c (debug_to_terminal_save_ours): Add argument.
11725 (update_current_target): Update.
11726 * inflow.c (terminal_save_ours): Add 'self' argument.
11727 * inferior.h (terminal_save_ours): Add 'self' argument.
11728
11729 2014-02-19 Tom Tromey <tromey@redhat.com>
11730
11731 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
11732 (target_terminal_ours): Add argument.
11733 * target.c (debug_to_terminal_ours): Add argument.
11734 (update_current_target): Update.
11735 * remote.c (remote_terminal_ours): Add 'self' argument.
11736 (remote_close): Update.
11737 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
11738 * inflow.c (terminal_ours): Add 'self' argument.
11739 * inferior.h (terminal_ours): Add 'self' argument.
11740 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11741
11742 2014-02-19 Pedro Alves <palves@redhat.com>
11743 Tom Tromey <tromey@redhat.com>
11744
11745 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
11746 argument.
11747 (target_terminal_ours_for_output): Add argument.
11748 * target.c (debug_to_terminal_ours_for_output): Add argument.
11749 (update_current_target): Update.
11750 * inflow.c (terminal_ours_for_output): Add 'self' argument.
11751 * inferior.h (terminal_ours_for_output): Add 'self' argument.
11752 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11753
11754 2014-02-19 Tom Tromey <tromey@redhat.com>
11755
11756 * target.h (struct target_ops) <to_terminal_inferior>: Add
11757 argument.
11758 * target.c (target_terminal_inferior): Add argument.
11759 (update_current_target): Update.
11760 * remote.c (remote_terminal_inferior): Add 'self' argument.
11761 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
11762 * inflow.c (terminal_inferior): Add 'self' argument.
11763 * inferior.h (terminal_inferior): Add 'self' argument.
11764 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
11765 (go32_terminal_inferior): Add 'self' argument.
11766
11767 2014-02-19 Tom Tromey <tromey@redhat.com>
11768
11769 * target.h (struct target_ops) <to_terminal_init>: Add argument.
11770 (target_terminal_init): Add argument.
11771 * target.c (debug_to_terminal_init): Add argument.
11772 (update_current_target): Update.
11773 * inflow.c (terminal_init_inferior): Add 'self' argument.
11774 * inferior.h (terminal_init_inferior): Add 'self' argument.
11775 * go32-nat.c (go32_terminal_init): Add 'self' argument.
11776 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
11777
11778 2014-02-19 Tom Tromey <tromey@redhat.com>
11779
11780 * target.h (struct target_ops)
11781 <to_can_accel_watchpoint_condition>: Add argument.
11782 (target_can_accel_watchpoint_condition): Add argument.
11783 * target.c (debug_to_can_accel_watchpoint_condition): Add
11784 argument.
11785 (update_current_target): Update.
11786 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
11787 'self' argument.
11788
11789 2014-02-19 Tom Tromey <tromey@redhat.com>
11790
11791 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11792 Add argument.
11793 (target_region_ok_for_hw_watchpoint): Add argument.
11794 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
11795 (default_region_ok_for_hw_watchpoint): Add argument.
11796 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
11797 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
11798 argument.
11799 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
11800 argument.
11801 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
11802 argument.
11803 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
11804 'self' argument.
11805 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
11806 'self' argument.
11807 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
11808 'self' argument.
11809 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
11810 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
11811 'self' argument.
11812 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
11813 Add 'self' argument.
11814
11815 2014-02-19 Tom Tromey <tromey@redhat.com>
11816
11817 * target.h (struct target_ops) <to_insert_watchpoint>: Add
11818 argument.
11819 (target_insert_watchpoint): Add argument.
11820 * target.c (debug_to_insert_watchpoint): Add argument.
11821 (update_current_target): Update.
11822 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
11823 * remote.c (remote_insert_watchpoint): Add 'self' argument.
11824 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
11825 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
11826 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
11827 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
11828 argument.
11829 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
11830 (procfs_insert_hw_watchpoint): Add 'self' argument.
11831 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
11832 argument.
11833 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
11834 argument.
11835 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
11836 argument.
11837 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
11838 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
11839 argument.
11840 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
11841 'self' argument.
11842
11843 2014-02-19 Tom Tromey <tromey@redhat.com>
11844
11845 * target.h (struct target_ops) <to_remove_watchpoint>: Add
11846 argument.
11847 (target_remove_watchpoint): Add argument.
11848 * target.c (debug_to_remove_watchpoint): Add argument.
11849 (update_current_target): Update.
11850 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
11851 * remote.c (remote_remove_watchpoint): Add 'self' argument.
11852 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
11853 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
11854 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
11855 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
11856 argument.
11857 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
11858 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
11859 argument.
11860 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
11861 argument.
11862 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
11863 argument.
11864 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
11865 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
11866 argument.
11867 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
11868 'self' argument.
11869
11870 2014-02-19 Tom Tromey <tromey@redhat.com>
11871
11872 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
11873 argument.
11874 (target_remove_hw_breakpoint): Add argument.
11875 * target.c (debug_to_remove_hw_breakpoint): Add argument.
11876 (update_current_target): Update.
11877 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
11878 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
11879 argument.
11880 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
11881 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
11882 argument.
11883 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
11884 'self' argument.
11885
11886 2014-02-19 Tom Tromey <tromey@redhat.com>
11887
11888 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
11889 argument.
11890 (target_insert_hw_breakpoint): Add argument.
11891 * target.c (debug_to_insert_hw_breakpoint): Add argument.
11892 (update_current_target): Update.
11893 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
11894 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
11895 argument.
11896 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
11897 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
11898 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
11899 argument.
11900 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
11901 'self' argument.
11902
11903 2014-02-19 Tom Tromey <tromey@redhat.com>
11904
11905 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
11906 argument.
11907 (target_can_use_hardware_watchpoint): Add argument.
11908 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
11909 (update_current_target): Update.
11910 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
11911 argument.
11912 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
11913 argument.
11914 * remote.c (remote_check_watch_resources): Add 'self' argument.
11915 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
11916 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
11917 argument.
11918 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
11919 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
11920 argument.
11921 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
11922 argument.
11923 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
11924 argument.
11925 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
11926 argument.
11927 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
11928 argument.
11929 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
11930 argument.
11931 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
11932 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
11933 argument.
11934 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
11935 'self' argument.
11936
11937 2014-02-19 Tom Tromey <tromey@redhat.com>
11938
11939 * target.h (struct target_ops) <to_post_attach>: Add argument.
11940 (target_post_attach): Add argument.
11941 * target.c (debug_to_post_attach): Add argument.
11942 (update_current_target): Update.
11943 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
11944 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
11945 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
11946 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
11947 * inf-child.c (inf_child_post_attach): Add 'self' argument.
11948
11949 2014-02-19 Tom Tromey <tromey@redhat.com>
11950
11951 * windows-nat.c (windows_close): Add 'self' argument.
11952 * tracepoint.c (tfile_close): Add 'self' argument.
11953 * target.h (struct target_ops) <to_close>: Add argument.
11954 * target.c (target_close): Add argument.
11955 (update_current_target): Update.
11956 * remote.c (remote_close): Add 'self' argument.
11957 * remote-sim.c (gdbsim_close): Add 'self' argument.
11958 * remote-mips.c (mips_close): Add 'self' argument.
11959 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
11960 * record-full.c (record_full_close): Add 'self' argument.
11961 * record-btrace.c (record_btrace_close): Add 'self' argument.
11962 * monitor.h (monitor_close): Add 'self' argument.
11963 * monitor.c (monitor_close): Add 'self' argument.
11964 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
11965 * linux-nat.c (linux_nat_close): Add argument.
11966 * go32-nat.c (go32_close): Add 'self' argument.
11967 * exec.c (exec_close_1): Add 'self' argument.
11968 * ctf.c (ctf_close): Add 'self' argument.
11969 * corelow.c (core_close): Add 'self' argument.
11970 (core_close_cleanup): Update.
11971 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
11972 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
11973
11974 2014-02-19 Tom Tromey <tromey@redhat.com>
11975
11976 * remote.c (remote_load): New function.
11977 (init_remote_ops): Use it.
11978
11979 2014-02-19 Tom Tromey <tromey@redhat.com>
11980
11981 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
11982 argument.
11983 * common/linux-btrace.h (linux_supports_btrace): Update.
11984 * remote.c (remote_supports_btrace): Add "self" argument.
11985 * target-delegates.c: Rebuild.
11986 * target.c (target_supports_btrace): Remove.
11987 * target.h (struct target_ops) <to_supports_btrace>: Add
11988 target_ops argument.
11989 (target_supports_btrace): New define.
11990
11991 2014-02-19 Tom Tromey <tromey@redhat.com>
11992
11993 * record-full.c (record_full_beneath_to_resume_ops)
11994 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
11995 (record_full_beneath_to_wait)
11996 (record_full_beneath_to_store_registers_ops)
11997 (record_full_beneath_to_store_registers)
11998 (record_full_beneath_to_xfer_partial_ops)
11999 (record_full_beneath_to_xfer_partial)
12000 (record_full_beneath_to_insert_breakpoint_ops)
12001 (record_full_beneath_to_insert_breakpoint)
12002 (record_full_beneath_to_remove_breakpoint_ops)
12003 (record_full_beneath_to_remove_breakpoint)
12004 (record_full_beneath_to_stopped_by_watchpoint)
12005 (record_full_beneath_to_stopped_data_address)
12006 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
12007 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
12008 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
12009 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
12010 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
12011 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
12012 (tmp_to_stopped_data_address, tmp_to_async): Remove.
12013 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
12014 (record_full_resume, record_full_wait_1)
12015 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
12016 (record_full_store_registers, record_full_xfer_partial)
12017 (record_full_insert_breakpoint, record_full_remove_breakpoint)
12018 (record_full_async, record_full_core_xfer_partial): Use target
12019 delegation.
12020 * target-delegates.c: Rebuild.
12021 * target.c (current_xfer_partial): Remove.
12022 (update_current_target): Do not INHERIT or de_fault
12023 to_insert_breakpoint, to_remove_breakpoint,
12024 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
12025 to_is_async_p, to_async. Do not set to_xfer_partial field.
12026 (default_xfer_partial): Simplify.
12027 (current_xfer_partial): Remove.
12028 (target_wait, target_resume): Simplify.
12029 (find_default_can_async_p, find_default_is_async_p): Update.
12030 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
12031 to_xfer_partial, to_stopped_by_watchpoint,
12032 to_stopped_data_address.
12033 (target_store_registers): Simplify.
12034 (forward_target_remove_breakpoint)
12035 (forward_target_insert_breakpoint): Remove.
12036 (target_remove_breakpoint, target_insert_breakpoint)
12037 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
12038 * target.h (struct target_ops) <to_resume, to_wait,
12039 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
12040 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
12041 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
12042 markup.
12043 (forward_target_remove_breakpoint)
12044 (forward_target_insert_breakpoint): Remove.
12045 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
12046 directly.
12047 (record_btrace_insert_breakpoint): Delegate directly.
12048
12049 2014-02-19 Tom Tromey <tromey@redhat.com>
12050
12051 PR build/7701:
12052 * target-delegates.c: New file.
12053 * target.c: Include target-delegates.c.
12054 (init_dummy_target): Call install_dummy_methods.
12055 (complete_target_initialization): Call install_delegators.
12056 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
12057 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
12058 * make-target-delegates: New file.
12059
12060 2014-02-19 Tom Tromey <tromey@redhat.com>
12061
12062 * record.c (find_record_target): Use find_target_at.
12063 * target.c (find_target_at): New function.
12064 * target.h (find_target_at): Declare.
12065
12066 2014-02-19 Tom Tromey <tromey@redhat.com>
12067
12068 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
12069 Add 'ops' argument.
12070 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
12071 'ops' argument.
12072 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
12073 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
12074 'ops' argument.
12075 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
12076 argument.
12077 * linux-nat.c (save_sigtrap): Update.
12078 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
12079 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
12080 (linux_nat_close): Update.
12081 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
12082 argument.
12083 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
12084 argument.
12085 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
12086 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
12087 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
12088 (tmp_to_async): Add 'ops' argument.
12089 (record_full_stopped_by_watchpoint, record_full_async)
12090 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
12091 argument.
12092 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
12093 (m32r_stopped_by_watchpoint): Add 'ops' argument.
12094 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
12095 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
12096 (remote_is_async_p, remote_async): Add 'ops' argument.
12097 (remote_stopped_data_address): Update.
12098 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
12099 * target.c (update_current_target)
12100 (find_default_can_async_p, find_default_is_async_p): Update.
12101 (init_dummy_target): Update.
12102 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
12103 * target.h (struct target_ops) <to_stopped_by_watchpoint,
12104 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
12105 (target_can_async_p, target_is_async_p, target_async)
12106 (target_stopped_by_watchpoint): Update.
12107
12108 2014-02-19 Yao Qi <yao@codesourcery.com>
12109
12110 PR gdb/16220
12111 * gdbarch.sh: Remove startup_gdbarch.
12112 * gdbarch.c: Regenerated.
12113 * gdbarch.h: Likewise.
12114
12115 2014-02-17 Kevin Buettner <kevinb@redhat.com>
12116
12117 * rl78-tdep.c (rl78_g10_register_name): New function.
12118 (rl78_return_value): Add g10 support.
12119 (rl78_gdbarch_init): Register rl78_g10_register_name for the
12120 g10.
12121
12122 2014-02-17 Doug Evans <xdje42@gmail.com>
12123
12124 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
12125 (SUBDIR_GUILE_SRCS): Ditto.
12126 (scm-gsmob.o): Ditto.
12127
12128 2014-02-17 Yao Qi <yao@codesourcery.com>
12129
12130 * gnu-nat.c (ILL_RPC): Declare defined function.
12131
12132 2014-02-17 Yao Qi <yao@codesourcery.com>
12133
12134 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
12135 mach_msg_type_number_t.
12136 (gnu_write_inferior): Likewise.
12137
12138 2014-02-17 Yao Qi <yao@codesourcery.com>
12139
12140 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
12141 in format string.
12142 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
12143 (inf_validate_procs, inf_signal): Likewise.
12144 (S_exception_raise_request): Likewise.
12145 (do_mach_notify_dead_name): Likewise.
12146 (steal_exc_port): Likewise.
12147 (gnu_read_inferior): Change 'copy_count''s type to
12148 mach_msg_type_number_t.
12149 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
12150 format string.
12151
12152 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
12153
12154 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
12155 flag. Adjust all users; in particular...
12156 (gnu_wait): ..., don't decrement its value in here...
12157 (gnu_create_inferior): ..., and instead set the flag in here,
12158 around the startup_inferior call, and call that one with
12159 START_INFERIOR_TRAPS_EXPECTED.
12160
12161 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
12162 (ILL_RPC): ... new macro.
12163 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
12164 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
12165 (do_mach_notify_send_once, S_proc_setmsgport_reply)
12166 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
12167 functions with ILL_RPC macro.
12168 (S_proc_pid2task_reply, S_proc_task2pid_reply)
12169 (S_proc_task2proc_reply, S_proc_proc2task_reply)
12170 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
12171 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
12172 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
12173 (S_proc_getlogin_reply, S_proc_getsid_reply)
12174 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
12175 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
12176 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
12177 (S_proc_getnports_reply, S_proc_is_important_reply)
12178 (S_proc_get_code_reply): New stub functions, generated with
12179 ILL_RPC macro.
12180
12181 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
12182 collected the type check structures.
12183
12184 * reply_mig_hack.awk: Don't expect to see the auto keyword.
12185
12186 2014-02-14 Doug Evans <dje@google.com>
12187
12188 * target.c (target_write_partial): Fix result type.
12189
12190 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
12191
12192 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
12193 the proper offsets to access fpregset_t.
12194
12195 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
12196
12197 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
12198 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
12199 * h8300-tdep.c (setmachinelist): Remove global.
12200 * hppa-tdep.c (hppa_sigtramp): Remove global.
12201 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
12202 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
12203 * ravenscar-thread.c (update_target_observer): Remove global.
12204 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
12205
12206 2014-02-12 Tom Tromey <tromey@redhat.com>
12207
12208 * common/rsp-low.c: Update comments.
12209 * common/rsp-low.h: Update comments.
12210
12211 2014-02-12 Tom Tromey <tromey@redhat.com>
12212
12213 * common/rsp-low.c (convert_ascii_to_int): Remove.
12214 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
12215
12216 2014-02-12 Tom Tromey <tromey@redhat.com>
12217
12218 * common/rsp-low.h (unhexify): Don't declare.
12219 * common/rsp-low.c (unhexify): Remove.
12220
12221 2014-02-12 Tom Tromey <tromey@redhat.com>
12222
12223 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
12224 * common/rsp-low.c (convert_int_to_ascii): Remove.
12225
12226 2014-02-12 Tom Tromey <tromey@redhat.com>
12227
12228 * common/rsp-low.h (hexify): Don't declare.
12229 * common/rsp-low.c (hexify): Remove.
12230
12231 2014-02-12 Tom Tromey <tromey@redhat.com>
12232
12233 * common/rsp-low.c (hexify): Never take strlen of argument.
12234
12235 2014-02-12 Tom Tromey <tromey@redhat.com>
12236
12237 * common/rsp-low.c (bin2hex): Never take strlen of argument.
12238 * remote.c (extended_remote_run, remote_rcmd)
12239 (remote_download_trace_state_variable, remote_save_trace_data)
12240 (remote_set_trace_notes): Update.
12241 * tracepoint.c (encode_source_string, tfile_write_status)
12242 (tfile_write_uploaded_tsv): Update.
12243
12244 2014-02-12 Tom Tromey <tromey@redhat.com>
12245
12246 * tracepoint.c: Include rsp-low.h.
12247 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
12248 * remote.c: Include rsp-low.h.
12249 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
12250 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
12251 (remote_unescape_input): Move to common/rsp-low.c.
12252 * common/rsp-low.h: New file.
12253 * common/rsp-low.c: New file.
12254 * Makefile.in (SFILES): Add common/rsp-low.c.
12255 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
12256 (COMMON_OBS): Add rsp-low.o.
12257 (rsp-low.o): New target.
12258
12259 2014-02-12 Tom Tromey <tromey@redhat.com>
12260
12261 * utils.h: Include print-utils.h.
12262 (host_address_to_string, plongest, pulongest, phex, phex_nz)
12263 (int_string, core_addr_to_string, core_addr_to_string_nz)
12264 (hex_string, hex_string_custom): Don't declare.
12265 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
12266 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
12267 (hex_string_custom, int_string, core_addr_to_string)
12268 (core_addr_to_string_nz, host_address_to_string): Move to
12269 common/print-utils.c.
12270 * common/print-utils.h: New file.
12271 * common/print-utils.c: New file
12272 * Makefile.in (SFILES): Add common/print-utils.c.
12273 (HFILES_NO_SRCDIR): Add common/print-utils.h.
12274 (COMMON_OBS): Add print-utils.o.
12275 (print-utils.o): New target.
12276
12277 2014-02-12 Tom Tromey <tromey@redhat.com>
12278
12279 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
12280
12281 2014-02-12 Mark Kettenis <kettenis@gnu.org>
12282
12283 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
12284
12285 2014-02-12 Mark Kettenis <kettenis@gnu.org>
12286
12287 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
12288 if a PT_IO ptrace request returns sucessfully but indicates that 0
12289 bytes were transferred.
12290
12291 2014-02-12 Pedro Alves <palves@redhat.com>
12292 Kevin Buettner <kevinb@redhat.com>
12293
12294 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
12295 TYPE_INSTANCE_FLAG_CODE_SPACE.
12296
12297 2014-02-12 Pedro Alves <palves@redhat.com>
12298
12299 * h8300-tdep.c (pseudo_from_raw_register)
12300 (raw_from_pseudo_register): New functions.
12301 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
12302 them.
12303
12304 2014-02-12 Pedro Alves <palves@redhat.com>
12305
12306 * h8300-tdep.c (h8300_register_sim_regno): New function.
12307 (h8300_gdbarch_init): Install h8300_register_sim_regno as
12308 gdbarch_register_sim_regno hook.
12309
12310 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
12311
12312 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
12313
12314 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
12315
12316 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
12317
12318 2014-02-12 Mark Kettenis <kettenis@gnu.org>
12319
12320 * obsd-tdep.h (obsd_init_abi): New prototype.
12321 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
12322 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
12323 (obsd_init_abi): New functions.
12324 * i386obsd-tdep.c: Include "obsd-tdep.h".
12325 (i386obsd_init_abi): Call obsd_init_abi.
12326 * amd64obsd-tdep.c: Include "obsd-tdep.h".
12327 (amd64obsd_init_abi): Call obsd_init_abi.
12328 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
12329 obsd-tdep.c to gdb_target_obs.
12330
12331 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
12332
12333 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
12334 double float arguments to 16-byte in the argument slots.
12335
12336 2014-02-11 Doug Evans <xdje42@gmail.com>
12337
12338 * configure.ac: Don't crash if pkg-config is not found and guile
12339 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
12340 in guile checks.
12341 * configure: Regenerate.
12342
12343 2014-02-11 Yao Qi <yao@codesourcery.com>
12344
12345 * aix-thread.c (aix_thread_xfer_partial): Update comments.
12346 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
12347 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
12348 * gnu-nat.c (gnu_xfer_memory): Likewise.
12349 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
12350 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12351 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12352 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12353
12354 2014-02-11 Yao Qi <yao@codesourcery.com>
12355
12356 * target.h (enum target_xfer_error): Rename to ...
12357 (enum target_xfer_status): ... it. New. All users updated.
12358 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
12359 New.
12360 (TARGET_XFER_STATUS_ERROR_P): New macro.
12361 (target_xfer_error_to_string): Remove declaration.
12362 (target_xfer_status_to_string): Declare.
12363 (target_xfer_partial_ftype): Adjust it.
12364 (struct target_ops) <to_xfer_partial>: Return
12365 target_xfer_status. Add argument xfered_len. Update
12366 comments.
12367 * target.c (target_xfer_error_to_string): Rename to ...
12368 (target_xfer_status_to_string): ... it. New. All callers
12369 updated.
12370 (target_read_live_memory): Likewise. Call target_xfer_partial
12371 instead of target_read.
12372 (memory_xfer_live_readonly_partial): Return
12373 target_xfer_status. Add argument xfered_len.
12374 (raw_memory_xfer_partial): Likewise.
12375 (memory_xfer_partial_1): Likewise.
12376 (memory_xfer_partial): Likewise.
12377 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
12378 properly. Update debug message.
12379 (default_xfer_partial, current_xfer_partial): Likewise.
12380 (target_write_partial): Likewise.
12381 (target_read_partial): Likewise. All callers updated.
12382 (read_whatever_is_readable): Likewise.
12383 (target_write_with_progress): Likewise.
12384 (target_read_alloc_1): Likewise.
12385
12386 * aix-thread.c (aix_thread_xfer_partial): Likewise.
12387 * auxv.c (procfs_xfer_auxv): Likewise.
12388 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
12389 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12390 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12391 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
12392 * corefile.c (read_memory): Adjust.
12393 * corelow.c (core_xfer_partial): Likewise.
12394 * ctf.c (ctf_xfer_partial): Likewise.
12395 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
12396 updated.
12397 (darwin_xfer_partial): Likewise.
12398 * exec.c (section_table_xfer_memory_partial): Likewise. All
12399 callers updated.
12400 (exec_xfer_partial): Likewise.
12401 * exec.h (section_table_xfer_memory_partial): Update
12402 declaration.
12403 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
12404 negative.
12405 (gnu_xfer_partial): Likewise.
12406 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
12407 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
12408 (ia64_hpux_xfer_solib_got): Likewise.
12409 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
12410 type of 'partial_len' to ULONGEST.
12411 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
12412 * linux-nat.c (linux_xfer_siginfo ): Likewise.
12413 (linux_nat_xfer_partial): Likewise.
12414 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
12415 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
12416 * monitor.c (monitor_xfer_memory): Likewise.
12417 (monitor_xfer_partial): Likewise.
12418 * procfs.c (procfs_xfer_partial): Likewise.
12419 * record-btrace.c (record_btrace_xfer_partial): Likewise.
12420 * record-full.c (record_full_xfer_partial): Likewise.
12421 (record_full_core_xfer_partial): Likewise.
12422 * remote-sim.c (gdbsim_xfer_memory): Likewise.
12423 (gdbsim_xfer_partial): Likewise.
12424 * remote.c (remote_write_bytes_aux): Likewise. All callers
12425 updated.
12426 (remote_write_bytes, remote_read_bytes): Likewise. All
12427 callers updated.
12428 (remote_flash_erase): Likewise. All callers updated.
12429 (remote_write_qxfer): Likewise. All callers updated.
12430 (remote_read_qxfer): Likewise. All callers updated.
12431 (remote_xfer_partial): Likewise.
12432 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12433 (rs6000_xfer_shared_libraries): Likewise.
12434 * sol-thread.c (sol_thread_xfer_partial): Likewise.
12435 (sol_thread_xfer_partial): Likewise.
12436 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12437 (sparc_xfer_partial): Likewise.
12438 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
12439 updated.
12440 (spu_xfer_partial): Likewise.
12441 * spu-multiarch.c (spu_xfer_partial): Likewise.
12442 * tracepoint.c (tfile_xfer_partial): Likewise.
12443 * windows-nat.c (windows_xfer_memory): Likewise.
12444 (windows_xfer_shared_libraries): Likewise.
12445 (windows_xfer_partial): Likewise.
12446 * valprint.c: Replace 'target_xfer_error' with
12447 'target_xfer_status' in comments.
12448
12449 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
12450
12451 Checked in by Joel Brobecker <brobecker@adacore.com>.
12452 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
12453
12454 2014-02-11 Joel Brobecker <brobecker@adacore.com>
12455
12456 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
12457 function parameters.
12458
12459 2014-02-10 Will Newton <will.newton@linaro.org>
12460
12461 * elfread.c (elf_rel_plt_read): Look for a .got section if
12462 looking up .got.plt fails.
12463 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
12464 on address passed to elf_gnu_ifunc_record_cache.
12465 (elf_gnu_ifunc_resolve_addr): Likewise.
12466 (elf_gnu_ifunc_resolver_return_stop): Likewise.
12467
12468 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
12469
12470 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
12471 (X_RETTURN): New macro.
12472 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
12473
12474 * sparc64-tdep.c (sparc64_init_abi): Hook
12475 sparc_in_function_epilogue_p.
12476
12477 2014-02-10 Gary Benson <gbenson@redhat.com>
12478
12479 * symfile-debug.c (debug_qf_expand_symtabs_matching):
12480 Rename name_matcher to symbol_matcher.
12481
12482 2014-02-10 Gary Benson <gbenson@redhat.com>
12483
12484 * symfile-debug.c (debug_qf_expand_symtabs_matching):
12485 Use expand_symtabs_file_matcher_ftype and
12486 expand_symtabs_symbol_matcher_ftype.
12487
12488 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12489
12490 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
12491 (struct ada_symbol_cache): New.
12492 (ada_free_symbol_cache): Forward declare.
12493 (struct ada_pspace_data): New.
12494 (ada_pspace_data_handle): New static global.
12495 (get_ada_pspace_data, ada_pspace_data_cleanup)
12496 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
12497 (cache_space, cache): Delete, now folded inside struct
12498 ada_pspace_data.
12499 (ada_get_symbol_cache): New function.
12500 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
12501 implementation.
12502 (_initialize_ada_language): Remove initialization of cache_space.
12503 Move call to observer_attach_inferior_exit up, grouping it
12504 with the other observer registrations inside this function.
12505 Rename command to be more general. Add call to
12506 register_program_space_data_with_cleanup.
12507
12508 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12509
12510 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
12511 ada_new_objfile_observer.
12512 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
12513 (_initialize_tasks): Update uses of ada_new_objfile_observer
12514 and ada_tasks_normal_stop_observer.
12515
12516 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12517
12518 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
12519 returned by the 'Length attribute to integer.
12520
12521 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12522
12523 * ada-lang.c (_initialize_ada_language): Initialize
12524 cache_space obstack.
12525
12526 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12527
12528 * ada-lang.c (HASH_SIZE): New macro.
12529 (struct cache_entry): New type.
12530 (cache_space, cache): New static globals.
12531 (ada_clear_symbol_cache, find_entry): New functions.
12532 (lookup_cached_symbol, cache_symbol): Implement.
12533 (ada_new_objfile_observer, ada_free_objfile_observer): New.
12534 (_initialize_ada_language): Attach ada_new_objfile_observer
12535 and ada_free_objfile_observer.
12536
12537 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12538
12539 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
12540 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
12541 struct block * parameter.
12542 (ada_lookup_symbol_list_worker): Constify local variable "block".
12543 Remove cast which is no longer necessary.
12544
12545 2014-02-10 Doug Evans <xdje42@gmail.com>
12546
12547 Add Guile as an extension language.
12548 * NEWS: Mention Guile scripting.
12549 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
12550 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
12551 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
12552 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
12553 (CLIBS): Add GUILE_LIBS.
12554 (install-guile): New rule.
12555 (guile.o): New rule.
12556 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
12557 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
12558 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
12559 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
12560 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
12561 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
12562 (scm-type.o, scm-utils.o, scm-value.o): New rules.
12563 * configure.ac: New option --with-guile.
12564 * configure: Regenerate.
12565 * config.in: Regenerate.
12566 * auto-load.c: Remove #include "python/python.h". Add #include
12567 "gdb/section-scripts.h".
12568 (source_section_scripts): Handle Guile scripts.
12569 (_initialize_auto_load): Add name of Guile objfile script to
12570 scripts-directory help text.
12571 * breakpoint.c (condition_command): Tweak comment to include Scheme.
12572 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
12573 (struct breakpoint): New member scm_bp_object.
12574 * defs.h (enum command_control_type): New value guile_control.
12575 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
12576 "extension.h".
12577 (show_user): Update comment.
12578 (_initialize_cli_cmds): Update help text for "show user". Update help
12579 text for max-user-call-depth.
12580 * cli/cli-script.c: Remove #include "python/python.h". Add #include
12581 "extension.h".
12582 (multi_line_command_p): Add guile_control.
12583 (print_command_lines): Handle guile_control.
12584 (execute_control_command, recurse_read_control_structure): Ditto.
12585 (process_next_line): Recognize "guile" commands.
12586 * disasm.c (gdb_disassemble_info): Make non-static.
12587 * disasm.h: #include "dis-asm.h".
12588 (struct gdbarch): Add forward decl.
12589 (gdb_disassemble_info): Declare.
12590 * extension.c: #include "guile/guile.h".
12591 (extension_languages): Add guile.
12592 (get_ext_lang_defn): Handle EXT_LANG_GDB.
12593 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
12594 * gdbtypes.c (get_unsigned_type_max): New function.
12595 (get_signed_type_minmax): New function.
12596 * gdbtypes.h (get_unsigned_type_max): Declare.
12597 (get_signed_type_minmax): Declare.
12598 * guile/README: New file.
12599 * guile/guile-internal.h: New file.
12600 * guile/guile.c: New file.
12601 * guile/guile.h: New file.
12602 * guile/scm-arch.c: New file.
12603 * guile/scm-auto-load.c: New file.
12604 * guile/scm-block.c: New file.
12605 * guile/scm-breakpoint.c: New file.
12606 * guile/scm-disasm.c: New file.
12607 * guile/scm-exception.c: New file.
12608 * guile/scm-frame.c: New file.
12609 * guile/scm-gsmob.c: New file.
12610 * guile/scm-iterator.c: New file.
12611 * guile/scm-lazy-string.c: New file.
12612 * guile/scm-math.c: New file.
12613 * guile/scm-objfile.c: New file.
12614 * guile/scm-ports.c: New file.
12615 * guile/scm-pretty-print.c: New file.
12616 * guile/scm-safe-call.c: New file.
12617 * guile/scm-string.c: New file.
12618 * guile/scm-symbol.c: New file.
12619 * guile/scm-symtab.c: New file.
12620 * guile/scm-type.c: New file.
12621 * guile/scm-utils.c: New file.
12622 * guile/scm-value.c: New file.
12623 * guile/lib/gdb.scm: New file.
12624 * guile/lib/gdb/boot.scm: New file.
12625 * guile/lib/gdb/experimental.scm: New file.
12626 * guile/lib/gdb/init.scm: New file.
12627 * guile/lib/gdb/iterator.scm: New file.
12628 * guile/lib/gdb/printing.scm: New file.
12629 * guile/lib/gdb/types.scm: New file.
12630 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
12631 (VPATH): Add $(GUILE_SRCDIR).
12632 (GUILE_DIR): New variable.
12633 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
12634 (all): Add stamp-guile dependency.
12635 (stamp-guile): New rule.
12636 (clean-guile, install-guile, uninstall-guile): New rules.
12637 (install-only): Add install-guile dependency.
12638 (uninstall): Add uninstall-guile dependency.
12639 (clean): Add clean-guile dependency.
12640
12641 2014-02-09 Doug Evans <xdje42@gmail.com>
12642
12643 Revert this patch (which I approved, mea culpa).
12644
12645 2014-02-08 Mark Kettenis <kettenis@gnu.org>
12646
12647 * Makefile.in (all-lib): Remove.
12648 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12649
12650 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
12651
12652 Fix Python stack corruption.
12653 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
12654 gdb_py_longest.
12655
12656 2014-02-08 Mark Kettenis <kettenis@gnu.org>
12657
12658 * Makefile.in (all-lib): Remove.
12659 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12660
12661 2014-02-07 Doug Evans <dje@google.com>
12662
12663 * extension-priv.h (extension_language_script_ops): Add comment.
12664 (extension_language_ops): Add comment.
12665 (active_ext_lang_state): Fix typo in comment.
12666
12667 2014-02-07 Pedro Alves <palves@redhat.com>
12668
12669 PR breakpoints/16292
12670 * infrun.c (handle_signal_stop) <signal arrives while stepping
12671 over a breakpoint>: Switch back to the stepping thread.
12672
12673 2014-02-07 Yao Qi <yao@codesourcery.com>
12674
12675 * target.c (target_xfer_partial): Return zero if LEN is zero.
12676
12677 2014-02-07 Yao Qi <yao@codesourcery.com>
12678
12679 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
12680 (ld_so_xfer_auxv): Likewise.
12681 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12682 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12683 * corelow.c (core_xfer_partial): Likewise.
12684 * ctf.c (ctf_xfer_partial): Likewise.
12685 * darwin-nat.c (darwin_read_dyld_info): Likewise.
12686 (darwin_xfer_partial): Likewise.
12687 * exec.c (exec_xfer_partial): Likewise.
12688 * gnu-nat.c (gnu_xfer_partial): Likewise.
12689 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
12690 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
12691 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
12692 * linux-nat.c (linux_xfer_siginfo): Likewise.
12693 (linux_proc_xfer_spu): Likewise.
12694 * procfs.c (procfs_xfer_partial): Likewise.
12695 * record-full.c (record_full_xfer_partial): Likewise.
12696 (record_full_core_xfer_partial): Likewise.
12697 * remote-sim.c (gdbsim_xfer_partial): Likewise.
12698 * remote.c (remote_write_qxfer): Likewise.
12699 (remote_write_qxfer, remote_read_qxfer): Likewise.
12700 (remote_xfer_partial): Likewise.
12701 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12702 (rs6000_xfer_shared_libraries): Likewise.
12703 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12704 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12705 (spu_xfer_partial): Likewise.
12706 * target.c (memory_xfer_partial_1): Likewise.
12707 * tracepoint.c (tfile_xfer_partial): Likewise.
12708 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
12709 (windows_xfer_partial): Likewise.
12710
12711 2014-02-07 Yao Qi <yao@codesourcery.com>
12712
12713 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
12714 comments.
12715 (core_xfer_shared_libraries_aix): Likewise.
12716 * gdbarch.c, gdbarch.h: Regenerated.
12717 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
12718 ULONGEST. Change 'len_avail' type to ULONGEST.
12719 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12720 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12721 declaration.
12722 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
12723
12724 2014-02-07 Yao Qi <yao@codesourcery.com>
12725
12726 * corefile.c (memory_error): Get 'exception' from ERR and pass
12727 'exception' to throw_error.
12728
12729 2014-02-06 Doug Evans <xdje42@gmail.com>
12730
12731 * configure.ac (libpython checking): Remove all but python.o from
12732 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
12733 * configure: Regenerate.
12734
12735 * Makefile.in (SFILES): Add extension.c.
12736 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
12737 (COMMON_OBS): Add extension.o.
12738 * extension.h: New file.
12739 * extension-priv.h: New file.
12740 * extension.c: New file.
12741
12742 * python/python-internal.h: #include "extension.h".
12743 (gdbpy_auto_load_enabled): Declare.
12744 (gdbpy_apply_val_pretty_printer): Declare.
12745 (gdbpy_apply_frame_filter): Declare.
12746 (gdbpy_preserve_values): Declare.
12747 (gdbpy_breakpoint_cond_says_stop): Declare.
12748 (gdbpy_breakpoint_has_cond): Declare.
12749 (void source_python_script_for_objfile): Delete.
12750 * python/python.c: #include "extension-priv.h".
12751 Delete inclusion of "observer.h".
12752 (extension_language_python): Moved here and renamed from
12753 script_language_python in py-auto-load.c.
12754 Redefined to be of type extension_language_defn.
12755 (python_extension_script_ops): New global.
12756 (python_extension_ops): New global.
12757 (struct python_env): New member previous_active.
12758 (restore_python_env): Call restore_active_ext_lang.
12759 (ensure_python_env): Call set_active_ext_lang.
12760 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
12761 New arg extlang.
12762 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
12763 New arg extlang.
12764 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
12765 New arg extlang.
12766 (gdbpy_eval_from_control_command): Renamed from
12767 eval_python_from_control_command, made static. New arg extlang.
12768 (gdbpy_source_script) Renamed from source_python_script, made static.
12769 New arg extlang.
12770 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
12771 result to int. New arg extlang.
12772 (gdbpy_source_objfile_script): Renamed from
12773 source_python_script_for_objfile, made static. New arg extlang.
12774 (gdbpy_start_type_printers): Renamed from start_type_printers, made
12775 static. New args extlang, extlang_printers. Change result type to
12776 "void".
12777 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
12778 static. New arg extlang. Rename arg printers to extlang_printers
12779 and change type to ext_lang_type_printers *.
12780 (gdbpy_free_type_printers): Renamed from free_type_printers, made
12781 static. Replace argument arg with extlang, extlang_printers.
12782 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
12783 (!HAVE_PYTHON, source_python_script): Delete.
12784 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
12785 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
12786 (!HAVE_PYTHON, start_type_printers): Delete.
12787 (!HAVE_PYTHON, apply_type_printers): Delete.
12788 (!HAVE_PYTHON, free_type_printers): Delete.
12789 (_initialize_python): Delete call to observer_attach_before_prompt.
12790 (finalize_python): Set/restore active extension language.
12791 (gdbpy_finish_initialization) Renamed from
12792 finish_python_initialization, made static. New arg extlang.
12793 (gdbpy_initialized): New function.
12794 * python/python.h: #include "extension.h". Delete #include
12795 "value.h", "mi/mi-cmds.h".
12796 (extension_language_python): Declare.
12797 (GDBPY_AUTO_FILE_NAME): Delete.
12798 (enum py_bt_status): Moved to extension.h and renamed to
12799 ext_lang_bt_status.
12800 (enum frame_filter_flags): Moved to extension.h.
12801 (enum py_frame_args): Moved to extension.h and renamed to
12802 ext_lang_frame_args.
12803 (finish_python_initialization): Delete.
12804 (eval_python_from_control_command): Delete.
12805 (source_python_script): Delete.
12806 (apply_val_pretty_printer): Delete.
12807 (apply_frame_filter): Delete.
12808 (preserve_python_values): Delete.
12809 (gdbpy_script_language_defn): Delete.
12810 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
12811 (start_type_printers, apply_type_printers, free_type_printers): Delete.
12812
12813 * auto-load.c: #include "extension.h".
12814 (GDB_AUTO_FILE_NAME): Delete.
12815 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
12816 (script_language_gdb): Delete, moved to extension.c and renamed to
12817 extension_language_gdb.
12818 (source_gdb_script_for_objfile): Delete.
12819 (auto_load_pspace_info): New member unsupported_script_warning_printed.
12820 (loaded_script): Change type of language member to
12821 struct extension_language_defn *.
12822 (init_loaded_scripts_info): Initialize
12823 unsupported_script_warning_printed.
12824 (maybe_add_script): Make static. Change type of language arg to
12825 struct extension_language_defn *.
12826 (clear_section_scripts): Reset unsupported_script_warning_printed.
12827 (auto_load_objfile_script_1): Rewrite to use extension language API.
12828 (auto_load_objfile_script): Make public. Remove support-compiled-in
12829 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
12830 (source_section_scripts): Rewrite to use extension language API.
12831 (load_auto_scripts_for_objfile): Rewrite to use
12832 auto_load_scripts_for_objfile.
12833 (collect_matching_scripts_data): Change type of language member to
12834 struct extension_language_defn *.
12835 (auto_load_info_scripts): Change type of language arg to
12836 struct extension_language_defn *.
12837 (unsupported_script_warning_print): New function.
12838 (script_not_found_warning_print): Make static.
12839 (_initialize_auto_load): Rewrite construction of scripts-directory
12840 help.
12841 * auto-load.h (struct objfile): Add forward decl.
12842 (struct script_language): Delete.
12843 (struct auto_load_pspace_info): Add forward decl.
12844 (struct extension_language_defn): Add forward decl.
12845 (maybe_add_script): Delete.
12846 (auto_load_objfile_script): Declare.
12847 (script_not_found_warning_print): Delete.
12848 (auto_load_info_scripts): Update prototype.
12849 (auto_load_gdb_scripts_enabled): Declare.
12850 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
12851 auto_load_python_scripts_enabled and made public.
12852 (script_language_python): Delete, moved to python.c.
12853 (gdbpy_script_language_defn): Delete.
12854 (info_auto_load_python_scripts): Update to use
12855 extension_language_python.
12856
12857 * breakpoint.c (condition_command): Replace call to
12858 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
12859 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
12860 with call to breakpoint_ext_lang_cond_says_stop.
12861 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
12862 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
12863 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
12864 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
12865 New arg slang.
12866 (local_setattro): Print name of extension language with existing
12867 stop condition.
12868
12869 * valprint.c (val_print, value_print): Update to call
12870 apply_ext_lang_val_pretty_printer.
12871 * cp-valprint.c (cp_print_value): Update call to
12872 apply_ext_lang_val_pretty_printer.
12873 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
12874 (gdbpy_apply_val_pretty_printer): Renamed from
12875 apply_val_pretty_printer. New arg extlang.
12876 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
12877
12878 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
12879 extension language API.
12880 * cli/cli-script.c (execute_control_command): Update to call
12881 eval_ext_lang_from_control_command.
12882
12883 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
12884 enum ext_lang_bt_status values. Update call to
12885 apply_ext_lang_frame_filter.
12886 (mi_cmd_stack_list_locals): Ditto.
12887 (mi_cmd_stack_list_args): Ditto.
12888 (mi_cmd_stack_list_variables): Ditto.
12889 * mi/mi-main.c: Delete #include "python/python-internal.h".
12890 Add #include "extension.h".
12891 (mi_cmd_list_features): Replace reference to python internal variable
12892 gdb_python_initialized with call to ext_lang_initialized_p.
12893
12894 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
12895 Update to use enum ext_lang_frame_args. Update to call
12896 apply_ext_lang_frame_filter.
12897 * python/py-framefilter.c (extract_sym): Update to use enum
12898 ext_lang_bt_status.
12899 (extract_value, py_print_type, py_print_value): Ditto.
12900 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
12901 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
12902 (py_print_frame): Ditto.
12903 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
12904 New arg extlang. Update to use enum ext_lang_bt_status.
12905
12906 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
12907 finish_python_initialization. Replace with call to
12908 finish_ext_lang_initialization.
12909
12910 * typeprint.c (do_free_global_table): Update to call
12911 free_ext_lang_type_printers.
12912 (create_global_typedef_table): Update to call
12913 start_ext_lang_type_printers.
12914 (find_global_typedef): Update to call apply_ext_lang_type_printers.
12915 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
12916 (type_print_options): Change type of global_printers from "void *"
12917 to "struct ext_lang_type_printers *".
12918
12919 * value.c (preserve_values): Update to call preserve_ext_lang_values.
12920 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
12921 (gdbpy_preserve_values): Renamed from preserve_python_values.
12922 New arg extlang.
12923 (!HAVE_PYTHON, preserve_python_values): Delete.
12924
12925 * utils.c (quit_flag): Delete, moved to extension.c.
12926 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
12927 extension.c.
12928
12929 * eval.c: Delete #include "python/python.h".
12930 * main.c: Delete #include "python/python.h".
12931
12932 * defs.h: Update comment.
12933
12934 2014-02-06 Joel Brobecker <brobecker@adacore.com>
12935
12936 GDB 7.7 released.
12937
12938 2014-02-05 Mark Kettenis <kettenis@gnu.org>
12939
12940 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
12941 defined.
12942
12943 2014-02-05 Yao Qi <yao@codesourcery.com>
12944
12945 * remote.c (remote_pass_signals): Remove local 'buf' and use
12946 rs->buf.
12947 (remote_program_signals): Likewise.
12948
12949 2014-02-05 Yao Qi <yao@codesourcery.com>
12950
12951 * ctf.c: Include "inferior.h" and "gdbthread.h".
12952 (CTF_PID): A new macro.
12953 (ctf_open): Call inferior_appeared and add_thread_silent.
12954 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
12955 (ctf_thread_alive): New function.
12956 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
12957
12958 2014-02-05 Yao Qi <yao@codesourcery.com>
12959
12960 Revert this patch:
12961
12962 2013-05-24 Yao Qi <yao@codesourcery.com>
12963
12964 * tracepoint.c (TFILE_PID): Remove.
12965 (tfile_open): Don't add thread and inferior.
12966 (tfile_close): Don't set 'inferior_ptid'. Don't call
12967 exit_inferior_silent.
12968 (tfile_thread_alive): Remove.
12969 (init_tfile_ops): Don't set field 'to_thread_alive' of
12970 tfile_ops.
12971
12972 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
12973
12974 * remote.c (remote_start_remote): Call remote_check_symbols even
12975 if only symbol-file (not file) has been given.
12976
12977 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12978
12979 * gdbarch.sh (skip_entrypoint): New callback.
12980 * gdbarch.c, gdbarch.h: Regenerate.
12981 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
12982 * infrun.c (fill_in_stop_func): Likewise.
12983 * ppc-linux-tdep.c: Include "elf/ppc64.h".
12984 (ppc_elfv2_elf_make_msymbol_special): New function.
12985 (ppc_elfv2_skip_entrypoint): Likewise.
12986 (ppc_linux_init_abi): Install them for ELFv2.
12987
12988 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12989
12990 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
12991 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
12992 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
12993 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
12994 structures returned in GPRs.
12995
12996 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12997
12998 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
12999 offset to the stack parameter list for the ELFv2 ABI.
13000
13001 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13002
13003 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
13004 set_gdbarch_convert_from_func_ptr_addr and
13005 set_gdbarch_elf_make_msymbol_special for ELFv1.
13006 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
13007 function descriptors on ELFv1.
13008 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
13009 set up r12 at function entry.
13010
13011 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13012
13013 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
13014 (struct gdbarch_tdep): New member elf_abi.
13015
13016 * rs6000-tdep.c: Include "elf/ppc64.h".
13017 (rs6000_gdbarch_init): Detect ELF ABI version.
13018
13019 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13020
13021 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
13022 within a register pair holding a DFP 128-bit value on little-endian.
13023 (ppc64_sysv_abi_return_value_base): Likewise.
13024 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
13025 (dfp_pseudo_register_write): Likewise.
13026
13027 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13028
13029 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
13030 offset on little-endian when passing _Decimal32.
13031 (ppc64_sysv_abi_return_value_base): Likewise for return values.
13032
13033 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13034
13035 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
13036 of the overlapped FP register within the VSX register on little-
13037 endian platforms.
13038 (efpr_pseudo_register_write): Likewise.
13039
13040 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13041
13042 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
13043 offset on little-endian when passing small structures.
13044
13045 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13046
13047 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
13048 (struct ppc64_sysv_argpos): New data structure.
13049 (ppc64_sysv_abi_push_float): Remove.
13050 (ppc64_sysv_abi_push_val): New function.
13051 (ppc64_sysv_abi_push_integer): Likewise.
13052 (ppc64_sysv_abi_push_freg): Likewise.
13053 (ppc64_sysv_abi_push_vreg): Likewise.
13054 (ppc64_sysv_abi_push_param): Likewise.
13055 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
13056 (ppc64_sysv_abi_return_value_base): New function.
13057 (ppc64_sysv_abi_return_value): Refactor to use it.
13058
13059 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13060
13061 * NEWS: Document new target powerpc64le-*-linux*.
13062
13063 2014-02-04 Mark Kettenis <kettenis@gnu.org>
13064
13065 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
13066 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
13067 core dumps.
13068 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
13069 register set used in ELF core dumps. Add floating-point register set.
13070
13071 2014-02-03 Kevin Buettner <kevinb@redhat.com>
13072
13073 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
13074 dwarf2_to_gdb[] table using symbolic constants. Adjust
13075 penultimate entry from number representing the PC register
13076 to symbolic constant representing the MDR register. Add
13077 constant for the PC register to the end of the table.
13078
13079 2014-02-03 Mark Kettenis <kettenis@gnu.org>
13080
13081 * bsd-kvm.c: Include <sys/param.h>
13082
13083 2014-02-03 Mark Kettenis <kettenis@gnu.org>
13084
13085 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
13086
13087 2014-01-31 Joel Brobecker <brobecker@adacore.com>
13088
13089 * ada-lang.h (clear_ada_sym_cache): Delete.
13090
13091 2014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
13092
13093 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
13094
13095 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
13096
13097 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
13098 the sigreturn register save area only if the syscall is
13099 sigreturn.
13100
13101 2014-01-29 Joel Brobecker <brobecker@adacore.com>
13102
13103 * valops.c (value_slice): Minor reformatting.
13104
13105 2014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
13106
13107 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
13108
13109 2014-01-28 Joel Brobecker <brobecker@adacore.com>
13110
13111 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
13112 New static globals.
13113 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
13114 (ada_ignore_descriptive_types_p): New static global.
13115 (find_parallel_type_by_descriptive_type): Return immediately
13116 if ada_ignore_descriptive_types_p is set.
13117 (_initialize_ada_language): Register new commands "maintenance
13118 set ada", "maintenance show ada", "maintenance set ada
13119 ignore-descriptive-types" and "maintenance show ada
13120 ignore-descriptive-types".
13121 * NEWS: Add entry for new "maint ada set/show
13122 ignore-descriptive-types" commands.
13123
13124 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
13125
13126 * record-btrace.c (record_btrace_close): Call btrace_teardown
13127 for all threads.
13128
13129 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13130
13131 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
13132 "ui-out.h".
13133
13134 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13135
13136 * ada-typeprint (type_is_full_subrange_of_target_type):
13137 New function.
13138 (print_range): Add parameter bounds_prefered_p. If not set,
13139 try printing range types using the name of their base type.
13140 (print_range_type): Add parameter bounds_prefered_p.
13141 Use it in call to print_range.
13142 (print_array_type, ada_print_type): Update calls to print_range
13143 and print_range_type.
13144
13145 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13146
13147 * ada-typeprint.c (print_array_type, print_choices, print_range)
13148 (print_range_bound, print_dynamic_range_bound, print_range_type):
13149 Remove declaration.
13150
13151 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13152
13153 * ada-typeprint.c (print_range): Add missing empty line
13154 after local declaration.
13155
13156 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13157
13158 * ada-valprint.c (print_optional_low_bound): Get index_type's
13159 target type for as long as it is a TYPE_CODE_RANGE.
13160
13161 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13162
13163 * procfs.c (procfs_make_note_section): Remove assertion and
13164 associated comment.
13165
13166 2014-01-24 Yao Qi <yao@codesourcery.com>
13167
13168 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
13169 * corelow.c (get_core_siginfo): Likewise.
13170
13171 2014-01-24 Yao Qi <yao@codesourcery.com>
13172
13173 * remote.c (remote_write_bytes_aux): Change type of 'len' to
13174 ULONGEST. Don't check 'len' is negative.
13175 (remote_write_bytes): Change type of 'len' to ULONGEST.
13176
13177 2014-01-23 Tom Tromey <tromey@redhat.com>
13178
13179 PR python/16485:
13180 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
13181 Handle exception from frame.block.
13182 (FrameVars.fetch_frame_locals): Likewise.
13183
13184 2014-01-23 Tom Tromey <tromey@redhat.com>
13185
13186 PR python/16487:
13187 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
13188 on a NULL pointer. Move "goto error" to correct place.
13189
13190 2014-01-23 Tom Tromey <tromey@redhat.com>
13191
13192 PR python/16491:
13193 * python/py-framefilter.c (apply_frame_filter): Call
13194 ensure_python_env after computing gdbarch.
13195
13196 2014-01-23 Yao Qi <yao@codesourcery.com>
13197
13198 * target.c (raw_memory_xfer_partial): Change argument type
13199 from void * to gdb_byte *.
13200 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
13201
13202 2014-01-22 Doug Evans <dje@google.com>
13203
13204 New gdbserver option --debug-format=timestamp.
13205 * NEWS: Mention it.
13206
13207 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
13208
13209 * syscalls/s390x-linux.xml: New file.
13210 * syscalls/s390-linux.xml: New file.
13211 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
13212 (XML_SYSCALL_FILENAME_S390X): Likewise.
13213 (op_svc): New enum value for SVC opcode.
13214 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
13215 (s390_linux_get_syscall_number): New function.
13216 (s390_gdbarch_init): Register '*get_syscall_number' and the
13217 syscall xml file name.
13218 * data-directory/Makefile.in (SYSCALLS_FILES): Add
13219 "s390-linux.xml" and "s390x-linux.xml".
13220 * NEWS: Announce new feature.
13221
13222 2014-01-22 Baruch Siach <baruch@tkos.co.il>
13223
13224 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
13225
13226 2014-01-22 Pedro Alves <palves@redhat.com>
13227
13228 * xtensa-config.c: Include defs.h.
13229
13230 2014-01-22 Joel Brobecker <brobecker@adacore.com>
13231
13232 * common/common-utils.h: Add "ARI:" comment beside __func__
13233 reference.
13234
13235 2014-01-22 Joel Brobecker <brobecker@adacore.com>
13236
13237 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
13238 documentation a bit.
13239
13240 2014-01-21 Roland McGrath <mcgrathr@google.com>
13241
13242 * configure.ac: Call AM_PROG_INSTALL_STRIP.
13243 * configure: Regenerate.
13244 * aclocal.m4: Regenerate.
13245 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
13246 New substituted variables.
13247 (install-strip): New target.
13248 (INSTALL_SCRIPT): New substituted variable.
13249 (FLAGS_TO_PASS): Add it.
13250 (install-only): Use $(INSTALL_SCRIPT) rather than
13251 $(INSTALL_PROGRAM) for gcore.
13252
13253 2014-01-20 Tom Tromey <tromey@redhat.com>
13254
13255 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
13256 together.
13257
13258 2014-01-20 Tom Tromey <tromey@redhat.com>
13259
13260 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
13261 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
13262 (deprecated_cmd_warning, complete_on_cmdlist): Update.
13263 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
13264 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
13265 (struct cmd_list_element) <flags>: Remove.
13266 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
13267 doc_allocated>: New fields.
13268 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
13269 bitfields.
13270 * maint.c (maintenance_do_deprecate): Update.
13271 * top.c (execute_command): Update.
13272
13273 2014-01-20 Baruch Siach <baruch@tkos.co.il>
13274
13275 * xtensa-linux-nat.c: Include asm/ptrace.h.
13276
13277 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13278
13279 * Makefile.in (SFILES): Add d-support.c.
13280 (COMMON_OBS): Add d-support.o.
13281 * d-lang.h (d_parse_symbol): Add comment, now defined in
13282 d-support.c.
13283 * d-lang.c (parse_call_convention)
13284 (parse_attributes, parse_function_types)
13285 (parse_function_args, parse_type, parse_identifier)
13286 (call_convention_p, d_parse_symbol): Move functions to ...
13287 * d-support.c: ... New file.
13288
13289 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13290
13291 * d-lang.h (d_parse_symbol): Add declaration.
13292 * d-lang.c (extract_identifiers)
13293 (extract_type_info): Remove functions.
13294 (parse_call_convention, parse_attributes)
13295 (parse_function_types, parse_function_args)
13296 (parse_type, parse_identifier, call_convention_p)
13297 (d_parse_symbol): New functions.
13298 (d_demangle): Use d_parse_symbol to demangle D symbols.
13299
13300 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13301
13302 * d-lang.h (struct builtin_d_type): New data type.
13303 (builtin_d_type): Add declaration.
13304 * d-lang.c (d_language_arch_info, build_d_types)
13305 (builtin_d_type): New functions.
13306 (enum d_primitive_types): New data type.
13307 (d_language_defn): Change c_language_arch_info to
13308 d_language_arch_info.
13309 (d_type_data): New static variable.
13310 (_initialize_d_language): Initialize d_type_data.
13311
13312 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13313
13314 * d-lang.h (d_main_name): Add declaration.
13315 * d-lang.c (d_main_name): New function.
13316 * symtab.c (find_main_name): Add call to d_main_name.
13317
13318 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13319
13320 * d-lang.c (d_language_defn): Change macro_expansion_c to
13321 macro_expansion_no.
13322
13323 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13324
13325 * MAINTAINERS: Add myself as a write-after-approval maintainer.
13326
13327 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
13328
13329 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
13330 gdb_exception" declaration.
13331 * remote.c (getpkt_or_notif_sane): Likewise.
13332
13333 2014-01-17 Doug Evans <dje@google.com>
13334
13335 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
13336 function, contents of dirnames_to_char_ptr_vec_append moved here.
13337 (delim_string_to_char_ptr_vec): New function.
13338 (dirnames_to_char_ptr_vec_append): Rewrite.
13339 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
13340
13341 2014-01-17 Doug Evans <dje@google.com>
13342
13343 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
13344 and moved here ...
13345 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
13346 #include "common-utils.h".
13347 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
13348 * common/vec.h (VEC_ASSERT_PASS): Update.
13349 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
13350 (MACH_CHECK_ERROR): Update.
13351
13352 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
13353
13354 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
13355 comments.
13356 * gdbarch.h: Regenerate.
13357
13358 2014-01-16 Tom Tromey <tromey@redhat.com>
13359
13360 * value.c (struct value) <regnum>: Move earlier.
13361
13362 2014-01-16 Tom Tromey <tromey@redhat.com>
13363
13364 * remote.c (extended_remote_create_inferior): Rename from
13365 extended_remote_create_inferior_1. Add "ops" argument. Remove
13366 old implementation.
13367
13368 2014-01-16 Pedro Alves <palves@redhat.com>
13369
13370 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
13371 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
13372 the backchain.
13373
13374 2014-01-16 Doug Evans <dje@google.com>
13375
13376 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
13377
13378 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13379
13380 * btrace.h (btrace_thread_flag): New.
13381 (struct btrace_thread_info) <flags>: New.
13382 * record-btrace.c (record_btrace_resume_thread)
13383 (record_btrace_find_thread_to_move, btrace_step_no_history)
13384 (btrace_step_stopped, record_btrace_start_replaying)
13385 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
13386 (record_btrace_find_resume_thread): New.
13387 (record_btrace_resume, record_btrace_wait): Extend.
13388 (record_btrace_can_execute_reverse): New.
13389 (record_btrace_open): Fail in non-stop mode.
13390 (record_btrace_set_replay): Split into this, ...
13391 (record_btrace_stop_replaying): ... this, ...
13392 (record_btrace_clear_histories): ... and this.
13393 (init_record_btrace_ops): Init to_can_execute_reverse.
13394 * NEWS: Announce it.
13395
13396 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13397
13398 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
13399 (forward_target_decr_pc_after_break)
13400 (target_decr_pc_after_break): New.
13401 * target.c (forward_target_decr_pc_after_break)
13402 (target_decr_pc_after_break): New.
13403 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
13404 instead of gdbarch_decr_pc_after_break.
13405 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
13406 instead of gdbarch_decr_pc_after_break.
13407 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
13408 instead of gdbarch_decr_pc_after_break.
13409 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
13410 instead of gdbarch_decr_pc_after_break.
13411 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
13412 instead of gdbarch_decr_pc_after_break.
13413 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
13414 instead of gdbarch_decr_pc_after_break.
13415
13416 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13417
13418 * btrace.c: Include regcache.h.
13419 (btrace_add_pc): New.
13420 (btrace_enable): Call btrace_add_pc.
13421 (btrace_is_empty): New.
13422 * btrace.h (btrace_is_empty): New.
13423 * record-btrace.c (require_btrace, record_btrace_info): Call
13424 btrace_is_empty.
13425
13426 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13427
13428 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
13429 Support delta reads.
13430 (linux_disable_btrace): Change return type.
13431 * common/linux-btrace.h (linux_read_btrace): Change parameters
13432 and return type to allow error reporting. Update users.
13433 (linux_disable_btrace): Change return type. Update users.
13434 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
13435 New.
13436 (btrace_error): New.
13437 (btrace_block) <begin>: Comment on BEGIN == 0.
13438 * btrace.c (btrace_compute_ftrace): Start from the end of
13439 the current trace.
13440 (btrace_stitch_trace, btrace_clear_history): New.
13441 (btrace_fetch): Read delta trace, return if replaying.
13442 (btrace_clear): Move clear history code to btrace_clear_history.
13443 (parse_xml_btrace): Throw an error if parsing failed.
13444 * target.h (struct target_ops) <to_read_btrace>: Change parameters
13445 and return type to allow error reporting.
13446 (target_read_btrace): Change parameters and return type to allow
13447 error reporting.
13448 * target.c (target_read_btrace): Update.
13449 * remote.c (remote_read_btrace): Support delta reads. Pass
13450 errors on.
13451 * NEWS: Announce it.
13452
13453 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13454
13455 * record.h (record_btrace_frame_unwind)
13456 (record_btrace_tailcall_frame_unwind): New declarations.
13457 * dwarf2-frame: Include record.h
13458 (dwarf2_frame_cfa): Throw an error for btrace frames.
13459 * record-btrace.c: Include hashtab.h.
13460 (btrace_get_bfun_name): New.
13461 (btrace_call_history): Call btrace_get_bfun_name.
13462 (struct btrace_frame_cache): New.
13463 (bfcache): New.
13464 (bfcache_hash, bfcache_eq, bfcache_new): New.
13465 (btrace_get_frame_function): New.
13466 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
13467 (record_btrace_frame_this_id): Compute own id.
13468 (record_btrace_frame_prev_register): Provide PC, throw_error
13469 for all other registers.
13470 (record_btrace_frame_sniffer): Detect btrace frames.
13471 (record_btrace_tailcall_frame_sniffer): New.
13472 (record_btrace_frame_dealloc_cache): New.
13473 (record_btrace_frame_unwind): Add new functions.
13474 (record_btrace_tailcall_frame_unwind): New.
13475 (_initialize_record_btrace): Allocate cache.
13476 * btrace.c (btrace_clear): Call reinit_frame_cache.
13477 * NEWS: Announce it.
13478
13479 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13480
13481 * record-btrace.c (record_btrace_set_replay)
13482 (record_btrace_goto_begin, record_btrace_goto_end)
13483 (record_btrace_goto): New.
13484 (init_record_btrace_ops): Initialize them.
13485 * NEWS: Announce it.
13486
13487 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13488
13489 * record-btrace.c (record_btrace_find_new_threads)
13490 (record_btrace_thread_alive): New.
13491 (init_record_btrace_ops): Initialize to_find_new_threads and
13492 to_thread_alive.
13493
13494 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13495
13496 * record-btrace.c (record_btrace_resume): New.
13497 (record_btrace_wait): New.
13498 (init_record_btrace_ops): Initialize to_wait and to_resume.
13499
13500 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13501
13502 * record-btrace.c (record_btrace_xfer_partial)
13503 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
13504 (record_btrace_allow_memory_access): New.
13505 (init_record_btrace_ops): Initialize new methods.
13506 * target.c (raw_memory_xfer_partial): Bail out if target reports
13507 that this memory is not available.
13508
13509 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13510
13511 * target.h (target_ops) <to_insert_breakpoint>
13512 <to_remove_breakpoint>: Add target_ops parameter.
13513 (forward_target_insert_breakpoint): New.
13514 (forward_target_remove_breakpoint): New.
13515 (memory_remove_breakpoint, memory_insert_breakpoint):
13516 Add target_ops parameter.
13517 * target.c (target_insert_breakpoint): Split into this and ...
13518 (forward_target_insert_breakpoint): ... this.
13519 (target_remove_breakpoint): Split into this and ...
13520 (forward_target_remove_breakpoint): ... this.
13521 (debug_to_insert_breakpoint): Add target_ops parameter.
13522 Call forward_target_insert_breakpoint.
13523 (debug_to_remove_breakpoint): Add target_ops parameter.
13524 Call forward_target_remove_breakpoint.
13525 (update_current_target): Do not inherit or default to_insert_breakpoint
13526 and to_remove_breakpoint.
13527 * corelow.c (ignore): Add target_ops parameter.
13528 * exec.c (ignore): Add target_ops parameter.
13529 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
13530 Add target_ops parameter.
13531 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
13532 Add target_ops parameter.
13533 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
13534 Add target_ops parameter.
13535 * record-full.c (record_full_beneath_to_insert_breakpoint)
13536 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
13537 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
13538 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
13539 (record_full_core_remove_breakpoint): Add target_ops parameter.
13540 Update users.
13541 (record_full_beneath_to_insert_breakpoint_ops)
13542 (record_full_beneath_to_remove_breakpoint_ops)
13543 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
13544 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
13545 tmp_to_remove_breakpoint_ops,
13546 record_full_beneath_to_insert_breakpoint_ops, and
13547 record_full_beneath_to_remove_breakpoint_ops.
13548 * remote-m32r-sdi.c (m32r_insert_breakpoint)
13549 (m32r_remove_breakpoint): Add target_ops parameter.
13550 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
13551 Add target_ops parameter.
13552 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
13553 Add target_ops parameter.
13554
13555 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13556 Markus Metzger <markus.t.metzger@intel.com>
13557
13558 * record-btrace.c: Include frame-unwind.h.
13559 (record_btrace_frame_unwind_stop_reason)
13560 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
13561 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
13562 New.
13563 (init_record_btrace_ops): Install it.
13564
13565 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13566
13567 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
13568 get_prev_frame_1.
13569
13570 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13571
13572 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
13573 earlier.
13574
13575 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13576
13577 * frame-unwind.c: Include target.h.
13578 (frame_unwind_try_unwinder): New function with code from ...
13579 (frame_unwind_find_by_frame): ... here. New variable
13580 unwinder_from_target, call also target_get_unwinder)
13581 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
13582 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
13583 * target.h (struct target_ops): New fields to_get_unwinder and
13584 to_get_tailcall_unwinder.
13585 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
13586
13587 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13588
13589 * record-btrace.c (record_btrace_fetch_registers)
13590 (record_btrace_store_registers)
13591 (record_btrace_to_prepare_to_store): New.
13592 (init_record_btrace_ops): Add the above.
13593
13594 2014-01-16 Tom Tromey <tromey@redhat.com>
13595
13596 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
13597 * target.h (struct target_ops) <to_prepare_to_store>: Add
13598 argument.
13599 (target_prepare_to_store): Add argument.
13600 * target.c (debug_to_prepare_to_store): Add argument.
13601 (update_current_target): Update.
13602 * remote.c (remote_prepare_to_store): Add 'self' argument.
13603 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
13604 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
13605 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
13606 * record-full.c (record_full_core_prepare_to_store): Add 'self'
13607 argument.
13608 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
13609 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
13610 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
13611 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
13612 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
13613
13614 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13615
13616 * btrace.h (replay) <replay>: New.
13617 (btrace_is_replaying): New.
13618 * btrace.c (btrace_clear): Free replay iterator.
13619 (btrace_is_replaying): New.
13620 * record-btrace.c (record_btrace_is_replaying): New.
13621 (record_btrace_info): Print insn number if replaying.
13622 (record_btrace_insn_history): Start at replay position.
13623 (record_btrace_call_history): Start at replay position.
13624 (init_record_btrace_ops): Init to_record_is_replaying.
13625
13626 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13627
13628 * record-btrace.c (record_btrace_insn_history_range): Include
13629 end.
13630 (record_btrace_insn_history_from): Adjust range.
13631 (record_btrace_call_history_range): Include
13632 end.
13633 (record_btrace_call_history_from): Adjust range.
13634 * NEWS: Announce changes.
13635
13636 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13637
13638 * record.h (enum record_print_flag)
13639 <record_print_indent_calls>: New.
13640 * record.c (get_call_history_modifiers): Recognize /c modifier.
13641 (_initialize_record): Document /c modifier.
13642 * record-btrace.c (btrace_call_history): Add btinfo parameter.
13643 Reorder fields. Optionally indent the function name. Update
13644 all users.
13645 * NEWS: Announce changes.
13646
13647 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13648
13649 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
13650
13651 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13652
13653 * btrace.c (ftrace_new_function): Start counting at one.
13654 * record-btrace.c (record_btrace_info): Adjust number of calls
13655 and insns.
13656 * NEWS: Announce it.
13657
13658 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13659
13660 * record-btrace.c (btrace_call_history_insn_range): Print
13661 insn range as [begin, end].
13662
13663 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13664
13665 * btrace.h (struct btrace_func_link): New.
13666 (enum btrace_function_flag): New.
13667 (struct btrace_inst): Rename to ...
13668 (struct btrace_insn): ...this. Update all users.
13669 (struct btrace_func) <ibegin, iend>: Remove.
13670 (struct btrace_func_link): New.
13671 (struct btrace_func): Rename to ...
13672 (struct btrace_function): ...this. Update all users.
13673 (struct btrace_function) <segment, flow, up, insn, insn_offset)
13674 (number, level, flags>: New.
13675 (struct btrace_insn_iterator): Rename to ...
13676 (struct btrace_insn_history): ...this.
13677 Update all users.
13678 (struct btrace_insn_iterator, btrace_call_iterator): New.
13679 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
13680 (struct btrace_target_info) <begin, end, level>
13681 <insn_history, call_history>: New.
13682 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13683 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13684 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13685 (btrace_call_number, btrace_call_begin, btrace_call_end)
13686 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13687 (btrace_find_function_by_number, btrace_set_insn_history)
13688 (btrace_set_call_history): New.
13689 * btrace.c (btrace_init_insn_iterator)
13690 (btrace_init_func_iterator, compute_itrace): Remove.
13691 (ftrace_print_function_name, ftrace_print_filename)
13692 (ftrace_skip_file): Change
13693 parameter to const.
13694 (ftrace_init_func): Remove.
13695 (ftrace_debug): Use new btrace_function fields.
13696 (ftrace_function_switched): Also consider gaining and
13697 losing symbol information).
13698 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
13699 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
13700 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
13701 New.
13702 (ftrace_new_function): Move. Remove debug print.
13703 (ftrace_update_lines, ftrace_update_insns): New.
13704 (ftrace_update_function): Check for call, ret, and jump.
13705 (compute_ftrace): Renamed to ...
13706 (btrace_compute_ftrace): ...this. Rewritten to compute call
13707 stack.
13708 (btrace_fetch, btrace_clear): Updated.
13709 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13710 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13711 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13712 (btrace_call_number, btrace_call_begin, btrace_call_end)
13713 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13714 (btrace_find_function_by_number, btrace_set_insn_history)
13715 (btrace_set_call_history): New.
13716 * record-btrace.c (require_btrace): Use new btrace thread
13717 info fields.
13718 (record_btrace_info, btrace_insn_history)
13719 (record_btrace_insn_history, record_btrace_insn_history_range):
13720 Use new btrace thread info fields and new iterator.
13721 (btrace_func_history_src_line): Rename to ...
13722 (btrace_call_history_src_line): ...this. Use new btrace
13723 thread info fields.
13724 (btrace_func_history): Rename to ...
13725 (btrace_call_history): ...this. Use new btrace thread info
13726 fields and new iterator.
13727 (record_btrace_call_history, record_btrace_call_history_range):
13728 Use new btrace thread info fields and new iterator.
13729
13730 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13731
13732 * frame.h (frame_id_build_unavailable_stack_special): New.
13733 * frame.c (frame_id_build_unavailable_stack_special): New.
13734
13735 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13736
13737 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
13738 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
13739 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
13740 to gdbarch.
13741 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
13742 (i386_insn_is_jump, i386_jmp_p): New.
13743 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
13744 insn_is_jump to gdbarch.
13745 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
13746 * gdbarch.h: Regenerated.
13747 * gdbarch.c: Regenerated.
13748 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
13749 (default_insn_is_jump): New.
13750 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
13751 (default_insn_is_jump): New.
13752
13753 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13754
13755 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
13756 Change to ...
13757 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
13758 (btrace_read_type) <btrace_read_new>: Change to ...
13759 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
13760
13761 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13762
13763 * common/linux-btrace.c (linux_read_btrace): Free trace from
13764 previous iteration.
13765
13766 2014-01-15 Doug Evans <dje@google.com>
13767
13768 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
13769 uint32_t.
13770
13771 2014-01-15 Tom Tromey <tromey@redhat.com>
13772
13773 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
13774 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
13775 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
13776 (set_objfile_main_name): New function.
13777 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
13778 language_of_main>: New fields.
13779 (set_objfile_main_name): Declare.
13780 * symtab.c (find_main_name): Loop over objfiles to find the main
13781 name and language.
13782 (set_main_name): Now static.
13783 (get_main_info): Add comment.
13784 * symtab.h (set_main_name): Don't declare.
13785
13786 2014-01-15 Tom Tromey <tromey@redhat.com>
13787
13788 * symtab.c (main_progspace_key): New global.
13789 (struct main_info): New.
13790 (name_of_main, language_of_main): Remove.
13791 (get_main_info, main_info_cleanup): New function.
13792 (set_main_name, main_name, main_language): Use get_main_info.
13793 (_initialize_symtab): Initialize main_progspace_key.
13794
13795 2014-01-15 Tom Tromey <tromey@redhat.com>
13796
13797 * dbxread.c (process_one_symbol): Update.
13798 * dwarf2read.c (read_partial_die): Update.
13799 * symfile.c (set_initial_language): Call main_language.
13800 * symtab.c (language_of_main): Now static.
13801 (set_main_name): Add 'lang' parameter.
13802 (find_main_name): Update.
13803 (main_language): New function.
13804 (symtab_observer_executable_changed): Update.
13805 * symtab.h (set_main_name): Update.
13806 (language_of_main): Remove.
13807 (main_language): Declare.
13808
13809 2014-01-15 Tom Tromey <tromey@redhat.com>
13810
13811 * symfile.c (init_entry_point_info): Use new "initialized" field.
13812 Update.
13813 * objfiles.h (struct entry_point) <initialized>: New field.
13814 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
13815 (struct objfile) <ei>: ...here. Remove.
13816 * objfiles.c (entry_point_address_query): Update.
13817
13818 2014-01-15 Tom Tromey <tromey@redhat.com>
13819
13820 * objfiles.c (entry_point_address_query): Relocate entry point
13821 address.
13822 (objfile_relocate1): Do not relocate entry point address.
13823 * objfiles.h (struct entry_info) <entry_point>: Update comment.
13824 <the_bfd_section_index>: New field.
13825 * symfile.c (init_entry_point_info): Find the entry point's
13826 section.
13827
13828 2014-01-15 Tom Tromey <tromey@redhat.com>
13829
13830 * solib-frv.c (enable_break): Use entry_point_address_query.
13831
13832 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13833
13834 * NEWS: Add note on improved process record-replay on
13835 arm*-linux* targets.
13836
13837 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13838
13839 * arm-tdep.c (enum arm_record_result): New enum.
13840 (arm_record_unsupported_insn): New function.
13841 (arm_record_coproc_data_proc): Removed.
13842 (thumb2_record_ld_st_multiple): New function.
13843 (thumb2_record_ld_st_dual_ex_tbb): New function.
13844 (thumb2_record_data_proc_sreg_mimm): New function.
13845 (thumb2_record_ps_dest_generic): New function.
13846 (thumb2_record_branch_misc_cntrl): New function.
13847 (thumb2_record_str_single_data): New function.
13848 (thumb2_record_ld_mem_hints): New function.
13849 (thumb2_record_ld_word): New function.
13850 (thumb2_record_lmul_lmla_div): New function.
13851 (thumb2_record_decode_insn_handler): New function.
13852 (decode_insn): Add thumb32 instruction handlers.
13853
13854 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13855
13856 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
13857 (struct arm_linux_record_tdep): Declare.
13858 (arm_canonicalize_syscall): New function.
13859 (arm_all_but_pc_registers_record): New function.
13860 (arm_linux_syscall_record): New function.
13861 (arm_linux_init_abi): Add syscall recording constructs.
13862 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
13863 decoding. (arm_record_coproc_data_proc): Update arm syscall
13864 decoding.
13865 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
13866 <arm_syscall_record>: New field.
13867 * configure.tgt (arm*-*-linux*): Add linux-record.o to
13868 gdb_target_obs.
13869
13870 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13871
13872 * arm-tdep.c (thumb_record_misc): Update to use sp as base
13873 register for push instruction recording.
13874
13875 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13876
13877 * arm-tdep.c (thumb_record_misc): Update to correct logical
13878 error while recording ldm, ldmia and pop instructions.
13879
13880 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13881
13882 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
13883
13884 2014-01-15 Pedro Alves <palves@redhat.com>
13885
13886 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
13887 (go32_resume, go32_fetch_registers, store_register)
13888 (go32_store_registers, go32_prepare_to_store)
13889 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
13890 (go32_create_inferior, go32_can_run, go32_terminal_init)
13891 (go32_terminal_inferior, go32_terminal_ours): Delete forward
13892 declarations.
13893
13894 2014-01-15 Tom Tromey <tromey@redhat.com>
13895
13896 * target.h (async_callback_ftype): New typedef.
13897 (struct target_ops) <to_async>: Use it.
13898
13899 2014-01-15 Joel Brobecker <brobecker@adacore.com>
13900
13901 * python/py-value.c (get_field_type): Remove unnecessary curly
13902 braces for single-statement if block.
13903
13904 2014-01-15 Joel Brobecker <brobecker@adacore.com>
13905
13906 * python/py-type.c (convert_field): Add missing empty line
13907 after declarations.
13908
13909 2014-01-14 Doug Evans <dje@google.com>
13910
13911 * symfile.h (expand_symtabs_matching): Renamed from
13912 expand_partial_symbol_names. Update prototype.
13913 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
13914 * symfile.c (expand_symtabs_matching): Renamed from
13915 expand_partial_symbol_names. New args file_matcher, kind.
13916 Rename arg fun to symbol_matcher.
13917 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
13918 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
13919 ada_expand_partial_symbol_name.
13920 (ada_make_symbol_completion_list): Update to call
13921 expand_symtabs_matching.
13922 (ada_add_global_exceptions): Call expand_symtabs_matching.
13923 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
13924 call map_symbol_filenames.
13925 * symtab.c (sources_info): Update to call map_symbol_filenames.
13926 (search_symbols): Call expand_symtabs_matching.
13927 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
13928 (default_make_symbol_completion_list_break_on): Update to call
13929 expand_symtabs_matching.
13930 (make_source_files_completion_list): Update to call
13931 map_symbol_filenames.
13932
13933 2014-01-14 Doug Evans <dje@google.com>
13934
13935 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
13936 (expand_symtabs_symbol_matcher_ftype): New typedef.
13937 (quick_symbol_functions.expand_symtabs_matching): Update to use.
13938 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13939 * symfile.c (expand_partial_symbol_names): Update to use
13940 expand_symtabs_symbol_matcher_ftype.
13941 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
13942 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13943 Arg name_matcher renamed to symbol_matcher.
13944 * psymtab.c (recursively_search_psymtabs): Update to use
13945 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
13946 sym_matcher.
13947 (expand_symtabs_matching_via_partial): Update to use
13948 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13949 Arg name_matcher renamed to symbol_matcher.
13950
13951 2014-01-14 Doug Evans <dje@google.com>
13952
13953 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
13954 (map_partial_symbol_filenames): Ditto.
13955 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
13956 (map_partial_symbol_filenames): Ditto.
13957 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
13958 (map_partial_symbol_filenames): Ditto.
13959 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
13960 (map_partial_symbol_filenames): Ditto.
13961 * symtab.c: Delete #include "psymtab.h".
13962
13963 2014-01-14 Pedro Alves <palves@redhat.com>
13964 Tom Tromey <tromey@redhat.com>
13965
13966 * infrun.c (use_displaced_stepping): Use find_record_target
13967 instead of RECORD_IS_USED.
13968 (adjust_pc_after_break): Use record_full_is_used instead of
13969 RECORD_IS_USED.
13970 * record-btrace.c (record_btrace_open): Call record_preopen
13971 instead of checking RECORD_IS_USED.
13972 * record-full.c (record_full_shortname)
13973 (record_full_core_shortname): New globals.
13974 (record_full_is_used): New function.
13975 (find_full_open): Call record_preopen instead of checking
13976 RECORD_IS_USED.
13977 (init_record_full_ops): Set the target's shortname to
13978 record_full_shortname.
13979 (init_record_full_core_ops): Set the target's shortname to
13980 record_full_core_shortname.
13981 * record-full.h (record_full_is_used): Declare.
13982 * record.c (find_record_target): Make extern.
13983 (record_preopen): New function.
13984 * record.h (RECORD_IS_USED): Delete macro.
13985 (find_record_target, record_preopen): Declare functions.
13986
13987 2014-01-14 Yao Qi <yao@codesourcery.com>
13988
13989 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
13990 'len''s type to ULONGEST.
13991 (core_xfer_shared_libraries_aix): Likewise.
13992 * gdbarch.c, gdbarch.h: Regenerated.
13993 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
13994 Change type of 'len' to ULONGEST.
13995 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13996 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
13997
13998 2014-01-14 Yao Qi <yao@codesourcery.com>
13999
14000 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
14001 type of 'len' to ULONGEST.
14002 (linux_xfer_osdata_processgroups): Likewise.
14003 (linux_xfer_osdata_threads): Likewise.
14004 (linux_xfer_osdata_fds): Likewise.
14005 (linux_xfer_osdata_isockets): Likewise.
14006 (linux_xfer_osdata_shm): Likewise.
14007 (linux_xfer_osdata_sem): Likewise.
14008 (linux_xfer_osdata_msg): Likewise.
14009 (linux_common_xfer_osdata): Likewise.
14010 (struct osdata_type) <getter>: Likewise.
14011 * common/linux-osdata.h (linux_common_xfer_osdata): Update
14012 the declaration.
14013
14014 2014-01-14 Yao Qi <yao@codesourcery.com>
14015
14016 * target.h (target_xfer_partial_ftype): Update.
14017 (struct target_ops) <to_xfer_partial>: Change 'len' type to
14018 ULONGEST.
14019 * aix-thread.c (aix_thread_xfer_partial): Change type of
14020 argument 'len' to ULONGEST.
14021 * auxv.c (procfs_xfer_auxv): Likewise.
14022 (ld_so_xfer_auxv): Likewise.
14023 (memory_xfer_auxv): Likewise.
14024 * bfd-target.c (target_bfd_xfer_partial): Likewise.
14025 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
14026 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
14027 * corelow.c (core_xfer_partial): Likewise.
14028 * ctf.c (ctf_xfer_partial): Likewise.
14029 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
14030 '%u'.
14031 (darwin_read_dyld_info): Likewise.
14032 (darwin_xfer_partial): Likewise.
14033 * exec.c (section_table_xfer_memory_partial): Likewise.
14034 (exec_xfer_partial): Likewise.
14035 * exec.h (section_table_xfer_memory_partial): Update
14036 declaration.
14037 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
14038 instead of plongest.
14039 (gnu_xfer_partial): Likewise.
14040 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
14041 (ia64_hpux_xfer_solib_got): Likewise.
14042 (ia64_hpux_xfer_partial): Likewise.
14043 * ia64-linux-nat.c (ia64_linux_xfer_partial):
14044 * inf-ptrace.c (inf_ptrace_xfer_partial):
14045 * inf-ttrace.c (inf_ttrace_xfer_partial):
14046 * linux-nat.c (linux_xfer_siginfo): Likewise.
14047 (linux_nat_xfer_partial): Likewise.
14048 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
14049 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
14050 * monitor.c (monitor_xfer_memory): Likewise.
14051 (monitor_xfer_partial): Likewise.
14052 * procfs.c (procfs_xfer_partial): Likewise.
14053 * record-full.c (record_full_xfer_partial): Likewise.
14054 (record_full_core_xfer_partial): Likewise.
14055 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
14056 instead of plongest.
14057 (gdbsim_xfer_partial): Likewise.
14058 * remote.c (remote_xfer_partial): Likewise.
14059 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14060 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
14061 declaration.
14062 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14063 (rs6000_xfer_shared_libraries): Likewise.
14064 * sol-thread.c (sol_thread_xfer_partial): Likewise.
14065 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14066 (sparc_xfer_partial): Likewise.
14067 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
14068 (spu_xfer_partial): Likewise.
14069 * spu-multiarch.c (spu_xfer_partial): Likewise.
14070 * target.c (target_read_live_memory): Likewise.
14071 (memory_xfer_live_readonly_partial): Likewise.
14072 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
14073 (target_xfer_partial, default_xfer_partial): Likewise.
14074 (current_xfer_partial): Likewise.
14075 * tracepoint.c (tfile_xfer_partial): Likewise.
14076 * windows-nat.c (windows_xfer_memory): Likewise. Call
14077 pulongest instead of plongest.
14078 (windows_xfer_partial): Likewise.
14079 (windows_xfer_shared_libraries): Likewise.
14080
14081 2014-01-14 Yao Qi <yao@codesourcery.com>
14082
14083 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
14084 target_xfer_partial_ftype.
14085
14086 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
14087
14088 PR python/15464
14089 PR python/16113
14090 * valops.c (value_struct_elt_bitpos): New function
14091 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
14092 object to 'None' if the field name is an empty string ("").
14093 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
14094 attribute to look for a field when 'name' is 'None'.
14095 (get_field_type): New function
14096
14097 2014-01-13 Doug Evans <dje@google.com>
14098
14099 PR symtab/16426
14100 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
14101 (try_open_dwop_file): Ditto.
14102 * gdb_bfd.c: #include "vec.h".
14103 (bfdp): New typedef.
14104 (struct gdb_bfd_data): New member included_bfds.
14105 (gdb_bfd_unref): Unref all included bfds.
14106 (gdb_bfd_record_inclusion): New function.
14107 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
14108
14109 2014-01-13 Tom Tromey <tromey@redhat.com>
14110
14111 * gdbcore.h (deprecated_core_resize_section_table): Remove.
14112
14113 2014-01-13 Tom Tromey <tromey@redhat.com>
14114
14115 * defs.h (use_windows): Remove.
14116 * gdb.c (main): Update.
14117 * main.c (captured_main, gdb_main): Update.
14118 * main.h (struct captured_main_args) <use_windows>: Remove.
14119 * top.c (use_windows): Remove.
14120
14121 2014-01-13 Tom Tromey <tromey@redhat.com>
14122
14123 * defs.h (deprecated_flush_hook): Remove.
14124
14125 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
14126
14127 PR threads/16216
14128 * linux-thread-db.c (try_thread_db_load): Add parameter
14129 check_auto_load_safe. Move here the file_is_auto_load_safe call.
14130 (try_thread_db_load_from_pdir_1): Move it there from here.
14131 (try_thread_db_load_from_sdir): Update caller.
14132 (try_thread_db_load_from_dir): Move it there from here.
14133
14134 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
14135
14136 * regformats/regdat.sh: Always rewrite the register file.
14137
14138 2014-01-13 Pedro Alves <palves@redhat.com>
14139
14140 * Makefile.in (CHECK_HEADERS): New variable.
14141 (check-headers:): New rule.
14142
14143 2014-01-13 Tom Tromey <tromey@redhat.com>
14144
14145 * cli/cli-setshow.c (do_set_command): Update.
14146 * defs.h (deprecated_set_hook): Remove.
14147 * top.c (deprecated_set_hook): Remove.
14148
14149 2014-01-13 Pedro Alves <palves@redhat.com>
14150
14151 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
14152 the tracepoint if the PC is a pseudo-register.
14153
14154 2014-01-13 Tom Tromey <tromey@redhat.com>
14155
14156 * defs.h (XCALLOC): Remove.
14157 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
14158 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
14159 * dwarf2loc.c (allocate_piece_closure): Likewise.
14160 * elfread.c (elf_symfile_segments): Likewise.
14161 (elf_symfile_segments): Likewise.
14162 * gdbtypes.c (copy_type_recursive): Likewise.
14163 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
14164 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
14165 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
14166 XCALLOC.
14167 * mt-tdep.c (mt_gdbarch_init): Likewise.
14168 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
14169 XCALLOC.
14170 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
14171 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
14172 * registry.c (registry_alloc_data): Likewise.
14173 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
14174 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
14175 * serial.c (serial_fdopen_ops): Likewise.
14176 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
14177 XCALLOC.
14178 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
14179 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
14180 not XCALLOC.
14181
14182 2014-01-13 Tom Tromey <tromey@redhat.com>
14183
14184 * defs.h (XMALLOC): Remove.
14185 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
14186 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
14187 * cli-out.c (struct ui_out *): Likewise.
14188 * cli/cli-dump.c (add_dump_command): Likewise.
14189 (add_dump_command): Likewise.
14190 * complaints.c (get_complaints): Likewise.
14191 (find_complaint): Likewise.
14192 * dwarf2-frame.c (execute_cfa_program): Likewise.
14193 * dwarf2read.c (abbrev_table_read_table): Likewise.
14194 * gdbarch.sh: Likewise.
14195 * gdbarch.c: Rebuild.
14196 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
14197 * interps.c (interp_new): Likewise.
14198 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
14199 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
14200 * mi/mi-console.c (mi_console_file_new): Likewise.
14201 * mi/mi-interp.c (mi_interpreter_init): Likewise.
14202 * mi/mi-out.c (mi_out_new): Likewise.
14203 * mi/mi-parse.c (mi_parse): Likewise.
14204 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
14205 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
14206 * observer.c (xalloc_observer_list_node): Likewise.
14207 * regcache.c (regcache_xmalloc_1): Likewise.
14208 * reggroups.c (reggroup_new): Likewise.
14209 (_initialize_reggroup): Likewise.
14210 * registry.c (register_data_with_cleanup): Likewise.
14211 * remote.c (remote_notif_stop_alloc_reply): Likewise.
14212 * ser-base.c (serial_ttystate): Likewise.
14213 * ser-mingw.c (make_pipe_state): Likewise.
14214 * ser-pipe.c (pipe_open): Likewise.
14215 * serial.c (serial_open): Likewise.
14216 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
14217 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
14218 (tui_alloc_win_info): Likewise.
14219 (tui_add_content_elements): Likewise.
14220 * tui/tui-file.c (tui_file_new): Likewise.
14221 * tui/tui-out.c (tui_out_new): Likewise.
14222 * ui-file.c (mem_file_new): Likewise.
14223 * ui-out.c (push_level): Likewise.
14224 (make_cleanup_ui_out_end): Likewise.
14225 (append_header_to_list): Likewise.
14226 (ui_out_new): Likewise.
14227 * user-regs.c (user_reg_add_builtin): Likewise.
14228
14229 2014-01-13 Tom Tromey <tromey@redhat.com>
14230
14231 * defs.h (XZALLOC): Remove.
14232 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
14233 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
14234 (get_ada_tasks_inferior_data): Likewise.
14235 * auto-load.c (get_auto_load_pspace_data): Likewise.
14236 * auxv.c (get_auxv_inferior_data): Likewise.
14237 * bfd-target.c (target_bfd_reopen): Likewise.
14238 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
14239 (deprecated_insert_raw_breakpoint): Likewise.
14240 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
14241 * corelow.c (core_open): Likewise.
14242 * darwin-nat.c (darwin_check_new_threads): Likewise.
14243 (darwin_attach_pid): Likewise.
14244 * dummy-frame.c (dummy_frame_push): Likewise.
14245 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
14246 * dwarf2loc.c (allocate_piece_closure): Likewise.
14247 * elfread.c (elf_symfile_segments): Likewise.
14248 * eval.c (ptrmath_type_p): Likewise.
14249 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
14250 * gdbtypes.c (alloc_type_arch): Likewise.
14251 (alloc_type_instance): Likewise.
14252 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
14253 * inf-child.c (inf_child_can_use_agent): Likewise.
14254 * inflow.c (get_inflow_inferior_data): Likewise.
14255 * infrun.c (save_infcall_suspend_state): Likewise.
14256 * jit.c (jit_reader_load): Likewise.
14257 (get_jit_objfile_data): Likewise.
14258 (get_jit_program_space_data): Likewise.
14259 (jit_object_open_impl): Likewise.
14260 (jit_symtab_open_impl): Likewise.
14261 (jit_block_open_impl): Likewise.
14262 (jit_frame_sniffer): Likewise.
14263 * linux-fork.c (add_fork): Likewise.
14264 * maint.c (make_command_stats_cleanup): Likewise.
14265 * objfiles.c (get_objfile_pspace_data): Likewise.
14266 * opencl-lang.c (struct lval_closure): Likewise.
14267 * osdata.c (osdata_start_osdata): Likewise.
14268 * progspace.c (new_address_space): Likewise.
14269 (add_program_space): Likewise.
14270 * remote-sim.c (get_sim_inferior_data): Likewise.
14271 * sh-tdep.c (sh_gdbarch_init): Likewise.
14272 * skip.c (Ignore): Likewise.
14273 (skip_delete_command): Likewise.
14274 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
14275 (library_list_start_library): Likewise.
14276 (solib_aix_current_sos): Likewise.
14277 * solib-darwin.c (get_darwin_info): Likewise.
14278 (darwin_current_sos): Likewise.
14279 * solib-dsbt.c (get_dsbt_info): Likewise.
14280 * solib-ia64-hpux.c (new_so_list): Likewise.
14281 (ia64_hpux_get_solib_linkage_addr): Likewise.
14282 * solib-spu.c (append_ocl_sos): Likewise.
14283 (spu_current_sos): Likewise.
14284 * solib-svr4.c (get_svr4_info): Likewise.
14285 (svr4_keep_data_in_core): Likewise.
14286 (library_list_start_library): Likewise.
14287 (svr4_default_sos): Likewise.
14288 (svr4_read_so_list): Likewise.
14289 * solib-target.c (library_list_start_library): Likewise.
14290 (solib_target_current_sos): Likewise.
14291 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
14292 * symfile-debug.c (install_symfile_debug_logging): Likewise.
14293 * symfile.c (default_symfile_segments): Likewise.
14294 * target-descriptions.c (tdesc_data_init): Likewise.
14295 (tdesc_create_reg): Likewise.
14296 (struct tdesc_type *): Likewise.
14297 (tdesc_create_vector): Likewise.
14298 (tdesc_set_struct_size): Likewise.
14299 (struct tdesc_type *): Likewise.
14300 (tdesc_free_feature): Likewise.
14301 (tdesc_create_feature): Likewise.
14302 * windows-nat.c (windows_add_thread): Likewise.
14303 (windows_make_so): Likewise.
14304 * xml-support.c (gdb_xml_body_text): Likewise.
14305 (gdb_xml_create_parser_and_cleanup): Likewise.
14306 (xml_process_xincludes): Likewise.
14307 * xml-syscall.c (allocate_syscalls_info): Likewise.
14308 (syscall_create_syscall_desc): Likewise.
14309
14310 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
14311
14312 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
14313 function, with code from i386_stap_parse_special_token.
14314 (i386_stap_parse_special_token_three_arg_disp): Likewise.
14315 (i386_stap_parse_special_token): Move code to the two functions
14316 above; simplify it.
14317
14318 2014-01-09 Pedro Alves <palves@redhat.com>
14319 Hui Zhu <hui@codesourcery.com>
14320
14321 PR gdb/16101
14322 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
14323 bp_err_string. Don't mark the location shlib_disabled if the
14324 error thrown wasn't a generic or memory error. Catch errors
14325 thrown while inserting breakpoints in overlayed code. Output
14326 error message of software breakpoints.
14327 * remote.c (remote_insert_breakpoint): If this breakpoint has
14328 target-side commands but this stub doesn't support Z0 packets,
14329 throw NOT_SUPPORTED_ERROR error.
14330 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
14331 * target.h (target_insert_breakpoint): Extend comment.
14332 (target_insert_hw_breakpoint): Add comment.
14333
14334 2014-01-08 Pedro Alves <palves@redhat.com>
14335
14336 * remote.c (remote_add_thread): Add threads silently if starting
14337 up.
14338 (remote_notice_new_inferior): If in all-stop, and starting up,
14339 don't call notice_new_inferior.
14340 (get_current_thread): New function, factored out from ...
14341 (add_current_inferior_and_thread): ... this. Adjust.
14342 (remote_start_remote) <all-stop>: Fetch the thread list. If we
14343 found any thread, then select the remote's current thread as GDB's
14344 current thread too.
14345
14346 2014-01-08 Joel Brobecker <brobecker@adacore.com>
14347
14348 * NEWS: Create a new section for the next release branch.
14349 Rename the section of the current branch, now that it has
14350 been cut.
14351
14352 2014-01-08 Joel Brobecker <brobecker@adacore.com>
14353
14354 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
14355 * version.in: Bump version to 7.7.50.DATE-cvs.
14356
14357 2014-01-08 Yao Qi <yao@codesourcery.com>
14358
14359 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
14360 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
14361 (spu_xfer_partial): Cast 'buf' to 'const char *'.
14362
14363 2014-01-08 Yao Qi <yao@codesourcery.com>
14364
14365 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
14366 return value of bfd_get_filename to symbol_file_add_from_bfd.
14367
14368 2014-01-08 Pierre Muller <muller@sourceware.org>
14369
14370 Fix PR16201.
14371 * coff-pe-read.c (struct read_pe_section_data): Add index field.
14372 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
14373 to prim_record_mininal_symbol_and_info.
14374 (add_pe_forwarded_sym): Use known section number of forwarded symbol
14375 in call to prim_record_minimal_symbol_and_info.
14376 (read_pe_exported_syms): Set index field of section_data.
14377
14378 2014-01-07 Andrew Pinski <apinski@cavium.com>
14379
14380 * features/aarch64-core.xml (cpsr): Change to be 64bit.
14381 * features/aarch64.c: Regenerate.
14382
14383 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
14384
14385 * target.c (return_null): Define.
14386 (update_current_target): Use it instead of return_zero for
14387 functions that return a pointer.
14388
14389 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
14390
14391 * source.c (add_path): Fix check for duplicated paths in the previously
14392 included paths.
14393
14394 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
14395
14396 * ada-lang.c: Remove duplicated include statements.
14397 * alphabsd-nat.c: Ditto.
14398 * amd64-darwin-tdep.c: Ditto.
14399 * amd64fbsd-nat.c: Ditto.
14400 * auto-load.c: Ditto.
14401 * ax-gdb.c: Ditto.
14402 * breakpoint.c: Ditto.
14403 * dbxread.c: Ditto.
14404 * fork-child.c: Ditto.
14405 * gdb_usleep.c: Ditto.
14406 * i386-darwin-tdep.c: Ditto.
14407 * i386fbsd-nat.c: Ditto.
14408 * infcmd.c: Ditto.
14409 * inferior.c: Ditto.
14410 * jv-lang.c: Ditto.
14411 * linux-nat.c: Ditto.
14412 * linux-tdep.c: Ditto.
14413 * m68kbsd-nat.c: Ditto.
14414 * m68klinux-nat.c: Ditto.
14415 * microblaze-tdep.c: Ditto.
14416 * mips-linux-tdep.c: Ditto.
14417 * mn10300-tdep.c: Ditto.
14418 * nto-tdep.c: Ditto.
14419 * opencl-lang.c: Ditto.
14420 * osdata.c: Ditto.
14421 * printcmd.c: Ditto.
14422 * regcache.c: Ditto.
14423 * remote-m32r-sdi.c: Ditto.
14424 * remote.c: Ditto.
14425 * symfile.c: Ditto.
14426 * symtab.c: Ditto.
14427 * tilegx-linux-nat.c: Ditto.
14428 * tilegx-tdep.c: Ditto.
14429 * tracepoint.c: Ditto.
14430 * valops.c: Ditto.
14431 * vaxbsd-nat.c: Ditto.
14432 * windows-nat.c: Ditto.
14433 * xtensa-tdep.c: Ditto.
14434
14435 2014-01-07 Yao Qi <yao@codesourcery.com>
14436
14437 * spu-linux-nat.c (_initialize_spu_nat): Declare.
14438
14439 2014-01-07 Yao Qi <yao@codesourcery.com>
14440 Joel Brobecker <brobecker@adacore.com>
14441
14442 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
14443 (pdc_write_regs): Likewise.
14444 (fetch_regs_kernel_thread): Likewise.
14445 (store_regs_kernel_thread): Likewise.
14446
14447 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14448
14449 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
14450 tagged type objects to their actual type.
14451
14452 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14453
14454 * ada-valprint.c (print_field_values): Add "language" parameter.
14455 Update calls to print_field_values and print_variant_part.
14456 Pass new parameter "language" in call to val_print instead
14457 of "current_language". Replace call to ada_val_print by call
14458 to val_print.
14459 (print_variant_part): Add "language" parameter.
14460 (ada_val_print_struct_union): Update call to print_field_values.
14461
14462 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14463
14464 * ada-valprint.c (ui_memcpy): Delete.
14465 (ada_print_floating): Update documentation. Add empty line
14466 between between function documentation and implementation.
14467 Delete variable "buffer". Use ui_file_xstrdup in place of
14468 ui_file_put. Minor adjustments following this change.
14469
14470 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14471
14472 * ada-valprint.c (ada_val_print_string): New function,
14473 extracted from ada_val_print_array.
14474 (ada_val_print_array): Replace extracted code by call
14475 to ada_val_print_string followed by a return. Move
14476 "else" branch to the function's top block.
14477
14478 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14479
14480 * ada-valprint.c (ada_val_print_array): Move implementation
14481 down. Rename parameter "offset" and "val" into "offset_aligned"
14482 and "original_value" respectively. Add parameter "offset".
14483
14484 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14485
14486 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
14487 re-organizing the code. Change the "???" message printed
14488 when target type is a TYPE_CODE_UNDEF into
14489 "<ref to undefined type>".
14490
14491 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14492
14493 * ada-valprint.c (print_record): Delete, implementation inlined...
14494 (ada_val_print_struct_union): ... here. Remove call to
14495 ada_check_typedef in inlined implementation.
14496
14497 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14498
14499 * ada-valprint.c (ada_val_print_gnat_array): New function,
14500 extracted from ada_val_print_1;
14501 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
14502 (ada_val_print_flt, ada_val_print_struct_union)
14503 (ada_val_print_ref): Likewise.
14504 (ada_val_print_1): Delete variables i and elttype.
14505 Replace extracted-out code by call to corresponding
14506 new functions.
14507
14508 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14509
14510 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
14511
14512 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14513
14514 * ada-valprint.c (ada_val_print_1): Replace calls to
14515 ada_val_print_1 by calls to val_print.
14516
14517 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14518
14519 * ada-valprint.c (ada_val_print_1): Add parameter "language".
14520 Update calls to self accordingly. Replace calls to c_val_print
14521 by calls to val_print.
14522
14523 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14524
14525 * ada-valprint.c (print_record): Delete declaration.
14526 (adjust_type_signedness, ada_val_print_1): Likewise.
14527 (ada_val_print): Move function implementation down.
14528 (print_variant_part, print_field_values, print_record):
14529 Move function implementation up.
14530
14531 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14532
14533 * python/py-type.c (typy_get_name): New function.
14534 (type_object_getset): Add entry for attribute "name".
14535 * NEWS: Add entry mentioning this new attribute.
14536
14537 2014-01-07 Yao Qi <yao@codesourcery.com>
14538
14539 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
14540 statement.
14541
14542 2014-01-07 Yao Qi <yao@codesourcery.com>
14543
14544 * gnu-nat.c (info_port_rights): Add qualifier const to
14545 argument args.
14546
14547 2014-01-07 Yao Qi <yao@codesourcery.com>
14548
14549 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
14550
14551 2014-01-07 Yao Qi <yao@codesourcery.com>
14552
14553 * gnu-nat.c (make_inf) Update declaration.
14554 (make_inf): Make it static.
14555 (inf_set_traced): Likewise.
14556 (inf_port_to_thread, inf_task_died_status): Likewise.
14557
14558 2014-01-07 Yao Qi <yao@codesourcery.com>
14559
14560 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
14561
14562 2014-01-07 Yao Qi <yao@codesourcery.com>
14563
14564 * gnu-nat.c (_initialize_gnu_nat): Declare.
14565
14566 2014-01-07 Yao Qi <yao@codesourcery.com>
14567
14568 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
14569 'enum bfd_endian'.
14570 (struct gdbarch_info) <byte_order>: Change type to
14571 'enum bfd_endian'.
14572 <byte_order_for_code>: Likewise.
14573 * gdbarch.c, gdbarch.h: Regenerated.
14574
14575 2014-01-06 Sasha Smundak <asmundak@google.com>
14576
14577 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
14578
14579 2014-01-06 Tom Tromey <tromey@redhat.com>
14580
14581 * doublest.c (convert_doublest_to_floatformat): Use const, not
14582 CONST.
14583 * somread.c (som_symtab_read): Likewise.
14584
14585 2014-01-07 Hui Zhu <hui@codesourcery.com>
14586
14587 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
14588 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
14589 (gdb_bfd_fopen): Ditto.
14590 (gdb_bfd_openr): Ditto.
14591 (gdb_bfd_openw): Ditto.
14592 (gdb_bfd_openr_iovec): Ditto.
14593 (gdb_bfd_fdopenr): Ditto.
14594 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
14595 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
14596 with xstrdup.
14597 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
14598 with xstrdup.
14599 * symfile-mem.c (symbol_file_add_from_memory): Removed
14600 gdb_bfd_stash_filename.
14601
14602 2014-01-03 Doug Evans <dje@google.com>
14603
14604 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
14605 output.
14606
14607 2014-01-01 Joel Brobecker <brobecker@adacore.com>
14608
14609 Update year range in copyright notice of all files.
14610
14611 2014-01-01 Joel Brobecker <brobecker@adacore.com>
14612
14613 * top.c (print_gdb_version): Set copyright year to 2014.
14614
14615 2014-01-01 Joel Brobecker <brobecker@adacore.com>
14616
14617 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
14618
14619 For older changes see ChangeLog-2013.
14620 \f
14621 Local Variables:
14622 mode: change-log
14623 left-margin: 8
14624 fill-column: 74
14625 version-control: never
14626 coding: utf-8
14627 End:
This page took 0.403952 seconds and 4 git commands to generate.