symtab.c (lookup_symbol_aux_local): Fix typo in comment.
[binutils-gdb.git] / gdb / ChangeLog
1 2014-10-26 Doug Evans <xdje42@gmail.com>
2
3 * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
4
5 2014-10-26 Doug Evans <xdje42@gmail.com>
6
7 * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
8 parameter "kind" to "block_index".
9 * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
10 "block_index".
11 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
12
13 2014-10-26 Doug Evans <xdje42@gmail.com>
14
15 * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
16
17 2014-10-26 Doug Evans <xdje42@gmail.com>
18
19 * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
20 obstack_alloc.
21
22 2014-10-26 Doug Evans <xdje42@gmail.com>
23
24 * parser-defs.h (block_found): Move decl from here ...
25 * symtab.h (block_found): ... to here.
26
27 2014-10-26 Doug Evans <xdje42@gmail.com>
28
29 * symtab.h (struct field_of_this_result): Fix typo in comment.
30 (lookup_symbol_in_language): Move function comment here.
31 (lookup_symbol): Improve function comment.
32 (basic_lookup_symbol_nonlocal): Ditto.
33 (lookup_symbol_static, lookup_symbol_global): Ditto.
34 (lookup_symbol_aux_block): Ditto.
35 (lookup_language_this): Add function comment.
36 (lookup_static_symbol_aux): Explicitly mark as extern. Improve
37 function comment.
38 (lookup_block_symbol): Improve function comment.
39 (lookup_struct): Fix capitalization in function comment.
40 (lookup_transparent_type): Add function comment.
41 (lookup_global_symbol_from_objfile): Explicitly mark as extern.
42 Improve function comment.
43 (lookup_objfile_from_block): Add function comment.
44 * symtab.c (lookup_symbol_in_language): Update function comment.
45 (lookup_symbol, lookup_language_this): Ditto.
46 (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
47 (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
48 (basic_lookup_symbol_nonlocal): Ditto.
49 (lookup_symbol_static, lookup_symbol_global): Ditto.
50 (lookup_transparent_type, lookup_block_symbol): Ditto.
51
52 2014-10-25 Doug Evans <xdje42@gmail.com>
53
54 * symtab.c (types_info): Delete forward decl.
55 (functions_info, variables_info, sources_info): Ditto.
56 (_initialize_symtab): Rewrite forward decl to use
57 initialize_file_ftype.
58
59 2014-10-25 Doug Evans <xdje42@gmail.com>
60
61 * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
62
63 2014-10-25 Doug Evans <xdje42@gmail.com>
64
65 * dwarf2read.c (process_structure_scope): Remove second (nested) copy
66 of local var child_die.
67
68 2014-10-24 Don Breazeal <donb@codesourcery.com>
69
70 * infrun.c (follow_fork_inferior): Update fork message printing
71 to use target_terminal_ours_for_output instead of
72 target_terminal_ours, to use _() for all format strings, to print
73 "vfork" instead of "fork" for vforks, and to add a detach message.
74 (handle_vfork_child_exec_or_exit): Update message printing to use
75 target_terminal_ours_for_output instead of target_terminal_ours, to
76 use _() for all format strings, and to fix some formatting.
77
78 2014-10-24 Pedro Alves <palves@redhat.com>
79
80 * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
81 * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
82 * config/vax/vax.mh: Delete.
83 * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
84 obsolete configurations section.
85 * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
86 * vax-nat.c: Delete file.
87
88 2014-10-24 Pedro Alves <palves@redhat.com>
89
90 * NEWS (Removed targets): Add OS/arch column.
91
92 2014-10-24 Siva Chandra Reddy <sivachandra@google.com>
93
94 * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
95 on the arg type of a constructor only if it is of reference type.
96
97 2014-10-23 Sandra Loosemore <sandra@codesourcery.com>
98
99 * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
100 accessors and constants from nios2 opcodes update.
101 (nios2_get_next_pc): Likewise.
102
103 2014-10-19 Doug Evans <xdje42@gmail.com>
104
105 * gdbthread.h (set_running): Fix comment.
106 (set_executing, finish_thread_state): Fix comment.
107
108 2014-10-18 Doug Evans <xdje42@gmail.com>
109
110 * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
111
112 2014-10-17 Doug Evans <dje@google.com>
113
114 * NEWS: Mention new event gdb.clear_objfiles.
115 * python/py-event.h (emit_clear_objfiles_event): Clear
116 * python/py-events.h (events_object): New member clear_objfiles.
117 * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
118 event.
119 * python/py-inferior.c (python_new_objfile): If objfile is NULL,
120 emit clear_objfiles event.
121 * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
122 function.
123 (emit_clear_objfiles_event): New function.
124 (clear_objfiles): New event.
125 * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
126 Declare.
127 * python/python.c (_initialize_python): Call
128 gdbpy_initialize_clear_objfiles_event.
129
130 2014-10-17 Doug Evans <dje@google.com>
131
132 * NEWS: Mention new gdb.Objfile.progspace attribute.
133 * python/py-objfile.c (objfpy_get_progspace): New function.
134 (objfile_getset): New entry for "progspace".
135
136 2014-10-17 Pedro Alves <palves@redhat.com>
137
138 PR gdb/17471
139 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
140 returns a copy of the input.
141 (run_command_1, continue_command, step_1, jump_command)
142 (signal_command, until_command, advance_command, finish_command)
143 (attach_command): Adjust and install a cleanup to free the
144 stripped args.
145
146 2014-10-17 Pedro Alves <palves@redhat.com>
147
148 PR gdb/17300
149 * infcmd.c (continue_1): If continuing all threads in the
150 foreground, make sure the inferior's terminal settings are put in
151 effect.
152
153 2014-10-17 Pedro Alves <palves@redhat.com>
154
155 PR gdb/17472
156 * annotate.c (annotate_breakpoints_invalid): Use
157 target_terminal_our_for_output instead of target_terminal_ours.
158 Give back the terminal to the target.
159 (annotate_frames_invalid): Likewise.
160
161 2014-10-17 Pedro Alves <palves@redhat.com>
162
163 * target.c (enum terminal_state): New enum.
164 (terminal_state): New global.
165 (target_terminal_init): New function.
166 (target_terminal_inferior): Skip if inferior already owns the
167 terminal.
168 (target_terminal_ours, target_terminal_ours_for_output): New
169 functions.
170 * target.h (target_terminal_init): Convert to function prototype.
171 (target_terminal_ours_for_output): Convert to function prototype
172 and tweak comment.
173 (target_terminal_ours): Convert to function prototype and tweak
174 comment.
175 * windows-nat.c (do_initial_windows_stuff): Call
176 target_terminal_init instead of child_terminal_init_with_pgrp.
177
178 2014-10-17 Pedro Alves <palves@redhat.com>
179
180 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
181 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
182 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
183 solib-osf.c.
184 * NEWS: Mention that support for alpha*-*-osf* has been removed.
185 * ada-lang.h [__alpha__ && __osf__]
186 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
187 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
188 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
189 GDB_OSABI_OSF1.
190 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
191 files.
192 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
193 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
194 * configure: Regenerate.
195 * configure.ac: Remove references to osf.
196 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
197 section. Remove all other references to osf.
198 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
199 Remove all other references to osf.
200 * dec-thread.c: Delete file.
201 * defs.h (GDB_OSABI_OSF1): Delete.
202 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
203 defined.
204 * osabi.c (gdb_osabi_names): Delete "OSF/1".
205 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
206 Delete code.
207 (unconditionally_kill_inferior)
208 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
209 * solib-osf.c: Delete file.
210
211 2014-10-17 Pedro Alves <palves@redhat.com>
212
213 * remote.c (clear_threads_listing_context): Move higher up, out of
214 the HAVE_LIBEXPAT guard.
215
216 2014-10-16 Tristan Gingold <gingold@adacore.com>
217
218 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
219 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
220 on amd64.
221
222 2014-10-15 Pedro Alves <palves@redhat.com>
223
224 * dec-thread.c (dec_thread_count_gdb_threads)
225 (dec_thread_add_gdb_thread): Delete.
226 (dec_thread_update_thread_list): Delete.
227 (dec_thread_find_new_threads): Rename to ...
228 (dec_thread_update_thread_list): ... this. Delete GDB-size
229 threads that are no longer found in dec_thread_list.
230 (resync_thread_list): Delete.
231 (dec_thread_wait): Call dec_thread_update_thread_list instead of
232 resync_thread_list.
233
234 2014-10-15 Pedro Alves <palves@redhat.com>
235
236 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
237 * remote.c (remote_update_thread_list): Skip calling prune_threads
238 if any thread listing method is supported, and instead walk over
239 the set of remote threads listed, deleting those that are not
240 found in GDB's thread list.
241
242 2014-10-15 Pedro Alves <palves@redhat.com>
243
244 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
245 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
246 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
247 (bsd_uthread_target): Adjust.
248 * corelow.c (core_open): Adjust.
249 * dec-thread.c (dec_thread_find_new_threads): Update comment.
250 (dec_thread_update_thread_list): New function.
251 (init_dec_thread_ops): Adjust.
252 * gdbthread.h (prune_threads): New declaration.
253 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
254 (thread_db_update_thread_list): ... this. Call prune_threads.
255 (init_thread_db_ops): Adjust.
256 * nto-procfs.c (procfs_find_new_threads): Rename to ...
257 (procfs_update_thread_list): ... this. Call prune_threads.
258 (procfs_attach, procfs_create_inferior, init_procfs_targets):
259 Adjust.
260 * obsd-nat.c (obsd_find_new_threads): Rename to ...
261 (obsd_update_thread_list): ... this. Call prune_threads.
262 (obsd_add_target): Adjust.
263 * procfs.c (procfs_target): Adjust.
264 (procfs_notice_thread): Update comment.
265 (procfs_find_new_threads): Rename to ...
266 (procfs_update_thread_list): ... this. Call prune_threads.
267 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
268 comment.
269 (ravenscar_wait): Adjust.
270 (ravenscar_find_new_threads): Rename to ...
271 (ravenscar_update_thread_list): ... this. Call prune_threads.
272 (init_ravenscar_thread_ops): Adjust.
273 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
274 (record_btrace_update_thread_list): ... this. Adjust comment.
275 (init_record_btrace_ops): Adjust.
276 * remote.c (remote_threads_info): Rename to ...
277 (remote_update_thread_list): ... this. Call prune_threads.
278 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
279 Adjust.
280 * sol-thread.c (check_for_thread_db): Adjust.
281 (sol_find_new_threads_callback): Rename to ...
282 (sol_update_thread_list_callback): ... this.
283 (sol_find_new_threads): Rename to ...
284 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
285 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
286 * target-delegates.c: Regenerate.
287 * target.c (target_find_new_threads): Rename to ...
288 (target_update_thread_list): ... this.
289 * target.h (struct target_ops): Rename to_find_new_threads field
290 to to_update_thread_list.
291 (target_find_new_threads): Rename to ...
292 (target_update_thread_list): ... this.
293 * thread.c (prune_threads): Make extern.
294 (update_thread_list): Adjust.
295
296 2014-10-15 Pedro Alves <palves@redhat.com>
297
298 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
299 Add describing comment. Return -1 if the qL packet is not
300 supported.
301 (struct thread_item, thread_item_t): Move higher up in
302 the file. Add comments.
303 (struct threads_parsing_context): Move higher up in
304 the file, add comments, and remote to ...
305 (struct threads_listing_context): ... this.
306 (remote_newthread_step): Don't add the thread to GDB's thread
307 database here. Instead push it to the thread_listing_context
308 list.
309 (remote_find_new_threads): Rename to ...
310 (remote_get_threads_with_ql): ... this. Add target_ops and
311 targets_listing_context parameters. Pass down context.
312 (start_thread): Adjust.
313 (clear_threads_parsing_context): Rename to ...
314 (clear_threads_listing_context): ... this.
315 (remote_get_threads_with_qxfer): New, with parts salvaged from old
316 remote_threads_info.
317 (remote_get_threads_with_qthreadinfo): Ditto.
318 (remote_threads_info): Reimplement.
319
320 2014-10-15 Pedro Alves <palves@redhat.com>
321
322 * infrun.c (resume): Don't force displaced-stepping for all
323 single-steps on software single-stepping archs.
324
325 2014-10-15 Pedro Alves <palves@redhat.com>
326
327 * breakpoint.c (single_step_breakpoints): Delete global.
328 (insert_single_step_breakpoint): Adjust to store the breakpoint
329 pointer in the current thread.
330 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
331 (cancel_single_step_breakpoints): Delete functions.
332 (breakpoint_has_location_inserted_here): Make extern.
333 (single_step_breakpoint_inserted_here_p): Adjust to walk the
334 breakpoint list.
335 * breakpoint.h (breakpoint_has_location_inserted_here): New
336 declaration.
337 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
338 (cancel_single_step_breakpoints): Remove declarations.
339 * gdbthread.h (struct thread_control_state)
340 <single_step_breakpoints>: New field.
341 (delete_single_step_breakpoints)
342 (thread_has_single_step_breakpoints_set)
343 (thread_has_single_step_breakpoint_here): New declarations.
344 * infrun.c (follow_exec): Also clear the single-step breakpoints.
345 (singlestep_breakpoints_inserted_p, singlestep_ptid)
346 (singlestep_pc): Delete globals.
347 (infrun_thread_ptid_changed): Remove references to removed
348 globals.
349 (resume_cleanups): Delete the current thread's single-step
350 breakpoints.
351 (maybe_software_singlestep): Remove references to removed globals.
352 (resume): Adjust to use thread_has_single_step_breakpoints_set and
353 delete_single_step_breakpoints.
354 (init_wait_for_inferior): Remove references to removed globals.
355 (delete_thread_infrun_breakpoints): Delete the thread's
356 single-step breakpoints too.
357 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
358 single-step breakpoints here.
359 (delete_stopped_threads_single_step_breakpoints): New function.
360 (adjust_pc_after_break): Adjust to use
361 thread_has_single_step_breakpoints_set.
362 (handle_inferior_event): Remove references to removed globals.
363 Use delete_stopped_threads_single_step_breakpoints.
364 (handle_signal_stop): Adjust to per-thread single-step
365 breakpoints. Swap test order to do cheaper tests first.
366 (switch_back_to_stepped_thread): Extend debug output. Remove
367 references to removed globals.
368 * record-full.c (record_full_wait_1): Adjust to per-thread
369 single-step breakpoints.
370 * thread.c (delete_single_step_breakpoints)
371 (thread_has_single_step_breakpoints_set)
372 (thread_has_single_step_breakpoint_here): New functions.
373 (clear_thread_inferior_resources): Also delete the thread's
374 single-step breakpoints.
375
376 2014-10-15 Pedro Alves <palves@redhat.com>
377
378 * thread.c (delete_thread_breakpoint): New function.
379 (delete_step_resume_breakpoint)
380 (delete_exception_resume_breakpoint): Use it.
381 (delete_at_next_stop): New function.
382 (clear_thread_inferior_resources): Use delete_at_next_stop.
383
384 2014-10-15 Pedro Alves <palves@redhat.com>
385
386 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
387 (breakpoint_inserted_here_p): ... here. Remove special case for
388 software single-step breakpoints.
389 (find_non_raw_software_breakpoint_inserted_here): Inline ...
390 (software_breakpoint_inserted_here_p): ... here. Remove special
391 case for software single-step breakpoints.
392 (bp_target_info_copy_insertion_state)
393 (deprecated_insert_raw_breakpoint)
394 (deprecated_remove_raw_breakpoint): Delete functions.
395 * breakpoint.h (deprecated_insert_raw_breakpoint)
396 (deprecated_remove_raw_breakpoint): Remove declarations.
397
398 2014-10-15 Pedro Alves <palves@redhat.com>
399
400 PR breakpoints/9649
401 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
402 Delete array globals.
403 (single_step_breakpoints): New global.
404 (breakpoint_xfer_memory): Remove special handling for single-step
405 breakpoints.
406 (update_breakpoints_after_exec): Delete bp_single_step
407 breakpoints.
408 (detach_breakpoints): Remove special handling for single-step
409 breakpoints.
410 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
411 (bpstat_stop_status): Add comment.
412 (bpstat_what, bptype_string, print_one_breakpoint_location)
413 (adjust_breakpoint_address, init_bp_location): Handle
414 bp_single_step.
415 (new_single_step_breakpoint): New function.
416 (set_momentary_breakpoint, bkpt_remove_location): Remove special
417 handling for single-step breakpoints.
418 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
419 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
420 Rewrite.
421 (detach_single_step_breakpoints, find_single_step_breakpoint):
422 Delete functions.
423 (breakpoint_has_location_inserted_here): New function.
424 (single_step_breakpoint_inserted_here_p): Rewrite.
425 * breakpoint.h: Remove FIXME.
426 (enum bptype) <bp_single_step>: New enum value.
427 (insert_single_step_breakpoint): Update comment.
428 * infrun.c (resume_cleanups)
429 (delete_step_thread_step_resume_breakpoint): Remove single-step
430 breakpoints.
431 (fetch_inferior_event): Install a cleanup that removes infrun
432 breakpoints.
433 (switch_back_to_stepped_thread) <expect thread advanced also>:
434 Clear step-over info.
435
436 2014-10-15 Pedro Alves <palves@redhat.com>
437
438 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
439 (delete_thread_infrun_breakpoints): New function, with parts
440 salvaged from delete_step_resume_breakpoint_callback.
441 (delete_step_thread_step_resume_breakpoint): Delete.
442 (for_each_just_stopped_thread_callback_func): New typedef.
443 (for_each_just_stopped_thread): New function.
444 (delete_just_stopped_threads_infrun_breakpoints): New function.
445 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
446 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
447 ... this. Adjust.
448 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
449
450 2014-10-15 Pedro Alves <palves@redhat.com>
451
452 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
453 trying to step past a non-steppable watchpoint.
454 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
455 field.
456 * infrun.c (struct step_over_info): Add new field
457 'nonsteppable_watchpoint_p' and adjust comments.
458 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
459 Adjust.
460 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
461 (stepping_past_nonsteppable_watchpoint): New function.
462 (step_over_info_valid_p): Also return true if stepping past a
463 nonsteppable watchpoint.
464 (proceed): Adjust call to set_step_over_info. Remove reference to
465 init_infwait_state.
466 (init_wait_for_inferior): Remove reference to init_infwait_state.
467 (waiton_ptid): Delete global.
468 (struct execution_control_state)
469 <stepped_after_stopped_by_watchpoint>: Delete field.
470 (wait_for_inferior, fetch_inferior_event): Always pass
471 minus_one_ptid to target_wait.
472 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
473 field.
474 (init_infwait_state): Delete function.
475 (handle_inferior_event): Remove infwait_state handling.
476 (handle_signal_stop) <watchpoints handling>: Adjust after
477 stepped_after_stopped_by_watchpoint removal. Don't remove
478 breakpoints here nor set infwait_state. Set the thread's
479 stepping_over_watchpoint flag, and call keep_going instead.
480 (keep_going): Handle stepping_over_watchpoint. Adjust
481 set_step_over_info calls.
482 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
483 function.
484
485 2014-10-15 Pedro Alves <palves@redhat.com>
486
487 * infrun.c (step_over_info_valid_p): New function.
488 (resume): Use step_over_info_valid_p instead of checking the
489 threads's trap_expected flag.
490
491 2014-10-15 Doug Evans <dje@google.com>
492 Walfred Tedeschi <walfred.tedeschi@intel.com>
493
494 PR python/17364
495 * python/lib/gdb/__init__.py (packages): Add "printer".
496 * python/lib/gdb/command/bound_registers.py: Moved to ...
497 * python/lib/gdb/printer/bound_registers.py: ... here.
498 Add printer to global set of builtin printers. Rename printer from
499 "bound" to "mpx_bound128".
500 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
501 registered as global "builtin" printer.
502 (add_builtin_pretty_printer): New function.
503 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
504 gdb/printer/__init__.py.
505
506 2014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
507
508 * Makefile.in (SFILES): Remove d-support.c.
509 (COMMON_OBS): Remove d-support.o.
510 * d-lang.h (d_parse_symbol): Remove declaration.
511 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
512 * d-support.c: Remove file.
513
514 2014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
515
516 * gdb/infrun.c (process_event_stop_test): Apply
517 gdbarch_addr_bits_remove to longjmp resume address.
518
519 2014-10-15 Pedro Alves <palves@redhat.com>
520
521 * regformats/microblaze.dat: Delete file.
522
523 2014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
524
525 * features/Makefile (microblaze-expedite): Replace pc with rpc.
526 * regformats/microblaze-with-stack-protect.dat: Regenerate.
527
528 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
529
530 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
531 as non-trivial.
532
533 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
534
535 PR c++/13403
536 PR c++/15154
537 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
538 with qualified args.
539
540 2014-10-14 Joel Brobecker <brobecker@adacore.com>
541
542 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
543 of the case where the second operand is a pointer.
544 <BINOP_SUB>: Likewise.
545
546 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
547
548 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
549 only if it is not NULL.
550 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
551 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
552 (struct probe_ops) <clear_semaphore>: Likewise.
553 * tracepoint.c (start_tracing): Call set_semaphore only if it is
554 not NULL.
555 (stop_tracing): Likewise, for clear_semaphore.
556
557 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
558
559 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
560 using language_c, instead of current_language.
561
562 2014-10-13 Doug Evans <dje@google.com>
563
564 * python/py-objfile.c (objfpy_initialize): New function.
565 (objfpy_new, objfile_to_objfile_object): Call it.
566 * python/py-progspace.c (pspy_initialize): New function.
567 (pspy_new, pspace_to_pspace_object): Call it.
568
569 2014-10-13 Miroslav Franc <mfranc@redhat.com>
570 Jan Kratochvil <jan.kratochvil@redhat.com>
571
572 Fix "save breakpoints" for "catch" command.
573 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
574 newline.
575
576 2014-10-12 Miroslav Franc <mfranc@redhat.com>
577
578 Fix "save breakpoints" for "disable $bpnum" command.
579 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
580
581 2014-10-10 Pedro Alves <palves@redhat.com>
582
583 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
584 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
585 (HFILES_NO_SRCDIR): Remove solib-irix.h.
586 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
587 and been removed.
588 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
589 * configure.ac: Remove references to IRIX.
590 * configure.host: Add *-*-irix* to the obsolete hosts section.
591 Remove all other references to irix.
592 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
593 Delete files.
594
595 2014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
596
597 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
598 isn't valid, release the tdesc arch data and return NULL.
599
600 2014-10-10 Pedro Alves <palves@redhat.com>
601
602 * linux-tdep.c: Include observer.h.
603 (linux_inferior_data): New global.
604 (struct linux_info): New structure.
605 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
606 (get_linux_inferior_data): New functions.
607 (linux_vsyscall_range): Rename to ...
608 (linux_vsyscall_range_raw): ... this.
609 (linux_vsyscall_range): New function; handles caching.
610 (_initialize_linux_tdep): Register linux_inferior_data. Install
611 inferior_exit and inferior_appeared observers.
612
613 2014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
614 Pedro Alves <palves@redhat.com>
615
616 PR symtab/14466
617 * solib-svr4.c (svr4_read_so_list): Rename to ...
618 (svr4_current_sos_1): ... this and change the function comment.
619 (svr4_current_sos): New function.
620
621 2014-10-10 Pedro Alves <palves@redhat.com>
622
623 * arch-utils.c (default_vsyscall_range): New function.
624 * arch-utils.h (default_vsyscall_range): New declaration.
625 * gdbarch.sh (vsyscall_range): New hook.
626 * gdbarch.h, gdbarch.c: Regenerate.
627 * linux-tdep.c (linux_vsyscall_range): New function.
628 (linux_init_abi): Install linux_vsyscall_range as
629 vsyscall_range gdbarch hook.
630 * memrange.c (address_in_mem_range): New function.
631 * memrange.h (address_in_mem_range): New declaration.
632 * symfile-mem.c (find_vdso_size): Delete function.
633 (add_vsyscall_page): Use gdbarch_vsyscall_range.
634
635 2014-10-10 Pedro Alves <palves@redhat.com>
636
637 * infrun.c (normal_stop): Fix typo in comment.
638
639 2014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
640
641 PR tdep/9390
642 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
643 typo when using logical AND to determine instruction type.
644
645 2014-10-09 Yao Qi <yao@codesourcery.com>
646
647 * infrun.c (handle_signal_stop): Remove local variable
648 'printed'.
649
650 2014-10-08 Stan Shebs <stan@codesourcery.com>
651
652 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
653
654 2014-10-08 Gary Benson <gbenson@redhat.com>
655
656 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
657
658 2014-10-08 Gary Benson <gbenson@redhat.com>
659
660 * common/common-defs.h: Include common-exceptions.h.
661 * exceptions.h: Do not include common-exceptions.h.
662
663 2014-10-08 Gary Benson <gbenson@redhat.com>
664
665 * common/common-defs.h: Include cleanups.h.
666 * common/common-exceptions.c: Do not include cleanups.h.
667 * utils.h: Likewise.
668
669 2014-10-08 Gary Benson <gbenson@redhat.com>
670
671 * ada-lang.c: Do not include exceptions.h.
672 * ada-valprint.c: Likewise.
673 * amd64-tdep.c: Likewise.
674 * auto-load.c: Likewise.
675 * block.c: Likewise.
676 * break-catch-throw.c: Likewise.
677 * breakpoint.c: Likewise.
678 * btrace.c: Likewise.
679 * c-lang.c: Likewise.
680 * cli/cli-cmds.c: Likewise.
681 * cli/cli-interp.c: Likewise.
682 * cli/cli-script.c: Likewise.
683 * completer.c: Likewise.
684 * corefile.c: Likewise.
685 * corelow.c: Likewise.
686 * cp-abi.c: Likewise.
687 * cp-support.c: Likewise.
688 * cp-valprint.c: Likewise.
689 * darwin-nat.c: Likewise.
690 * dwarf2-frame-tailcall.c: Likewise.
691 * dwarf2-frame.c: Likewise.
692 * dwarf2loc.c: Likewise.
693 * dwarf2read.c: Likewise.
694 * eval.c: Likewise.
695 * event-loop.c: Likewise.
696 * event-top.c: Likewise.
697 * f-valprint.c: Likewise.
698 * frame-unwind.c: Likewise.
699 * frame.c: Likewise.
700 * gdbtypes.c: Likewise.
701 * gnu-v2-abi.c: Likewise.
702 * gnu-v3-abi.c: Likewise.
703 * guile/scm-auto-load.c: Likewise.
704 * guile/scm-breakpoint.c: Likewise.
705 * guile/scm-cmd.c: Likewise.
706 * guile/scm-frame.c: Likewise.
707 * guile/scm-lazy-string.c: Likewise.
708 * guile/scm-param.c: Likewise.
709 * guile/scm-symbol.c: Likewise.
710 * guile/scm-type.c: Likewise.
711 * hppa-hpux-tdep.c: Likewise.
712 * i386-tdep.c: Likewise.
713 * inf-loop.c: Likewise.
714 * infcall.c: Likewise.
715 * infcmd.c: Likewise.
716 * infrun.c: Likewise.
717 * interps.c: Likewise.
718 * interps.h: Likewise.
719 * jit.c: Likewise.
720 * linespec.c: Likewise.
721 * linux-nat.c: Likewise.
722 * linux-thread-db.c: Likewise.
723 * m32r-rom.c: Likewise.
724 * main.c: Likewise.
725 * memory-map.c: Likewise.
726 * mi/mi-cmd-break.c: Likewise.
727 * mi/mi-cmd-stack.c: Likewise.
728 * mi/mi-interp.c: Likewise.
729 * mi/mi-main.c: Likewise.
730 * monitor.c: Likewise.
731 * nto-procfs.c: Likewise.
732 * objc-lang.c: Likewise.
733 * p-valprint.c: Likewise.
734 * parse.c: Likewise.
735 * ppc-linux-tdep.c: Likewise.
736 * printcmd.c: Likewise.
737 * probe.c: Likewise.
738 * python/py-auto-load.c: Likewise.
739 * python/py-breakpoint.c: Likewise.
740 * python/py-cmd.c: Likewise.
741 * python/py-finishbreakpoint.c: Likewise.
742 * python/py-frame.c: Likewise.
743 * python/py-framefilter.c: Likewise.
744 * python/py-function.c: Likewise.
745 * python/py-gdb-readline.c: Likewise.
746 * python/py-inferior.c: Likewise.
747 * python/py-infthread.c: Likewise.
748 * python/py-lazy-string.c: Likewise.
749 * python/py-linetable.c: Likewise.
750 * python/py-param.c: Likewise.
751 * python/py-prettyprint.c: Likewise.
752 * python/py-symbol.c: Likewise.
753 * python/py-type.c: Likewise.
754 * python/py-value.c: Likewise.
755 * python/python-internal.h: Likewise.
756 * python/python.c: Likewise.
757 * record-btrace.c: Likewise.
758 * record-full.c: Likewise.
759 * regcache.c: Likewise.
760 * remote-fileio.c: Likewise.
761 * remote-mips.c: Likewise.
762 * remote.c: Likewise.
763 * rs6000-aix-tdep.c: Likewise.
764 * rs6000-nat.c: Likewise.
765 * skip.c: Likewise.
766 * solib-darwin.c: Likewise.
767 * solib-dsbt.c: Likewise.
768 * solib-frv.c: Likewise.
769 * solib-ia64-hpux.c: Likewise.
770 * solib-spu.c: Likewise.
771 * solib-svr4.c: Likewise.
772 * solib.c: Likewise.
773 * spu-tdep.c: Likewise.
774 * stack.c: Likewise.
775 * stap-probe.c: Likewise.
776 * symfile-mem.c: Likewise.
777 * symmisc.c: Likewise.
778 * target.c: Likewise.
779 * thread.c: Likewise.
780 * top.c: Likewise.
781 * tracepoint.c: Likewise.
782 * tui/tui-interp.c: Likewise.
783 * typeprint.c: Likewise.
784 * utils.c: Likewise.
785 * valarith.c: Likewise.
786 * valops.c: Likewise.
787 * valprint.c: Likewise.
788 * value.c: Likewise.
789 * varobj.c: Likewise.
790 * windows-nat.c: Likewise.
791 * xml-support.c: Likewise.
792
793 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
794
795 * mips-tdep.c (add_offset_16): Rewrite to implement what the
796 name implies.
797 (extended_mips16_next_pc): Update accordingly.
798
799 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
800
801 * mips-tdep.c (mips16_instruction_is_compact_branch): New
802 function.
803 (micromips_instruction_is_compact_branch): Likewise.
804 (mips16_scan_prologue): Terminate scanning upon seeing a branch
805 or a compact jump, reaching a jump delay slot, or seeing a
806 second non-prologue instruction.
807 (micromips_scan_prologue): Also terminate scanning upon seeing a
808 compact branch or jump, or reaching a branch or jump delay slot.
809 (mips32_scan_prologue): Terminate scanning upon reaching a branch
810 or jump delay slot, or seeing a second non-prologue instruction.
811 (mips32_instruction_has_delay_slot): Retain instruction
812 examination code only, update arguments accordingly and move
813 instruction fetch pieces to...
814 (mips32_insn_at_pc_has_delay_slot): ... this new function.
815 (micromips_instruction_has_delay_slot): Likewise and to...
816 (micromips_insn_at_pc_has_delay_slot): ... this new function.
817 (mips16_instruction_has_delay_slot): Likewise and to...
818 (mips16_insn_at_pc_has_delay_slot): ... this new function.
819 (mips_single_step_through_delay): Update accordingly.
820 (mips_adjust_breakpoint_address): Likewise.
821
822 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
823
824 * mips-tdep.c (micromips_instruction_has_delay_slot): When
825 !mustbe32 also return 1 for 32-bit instructions.
826 (mips16_instruction_has_delay_slot): Likewise. Add an
827 explanatory comment.
828
829 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
830
831 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
832 symbols special.
833
834 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
835
836 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
837 update comments.
838 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
839 for the breakpoint's address. Don't preinitialize `placed_size'.
840 (insert_bp_location): Set `reqstd_address' rather than
841 `placed_address'.
842 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
843 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
844 address.
845 (bkpt_remove_location): Likewise.
846 (deprecated_insert_raw_breakpoint): Likewise.
847 (deprecated_remove_raw_breakpoint): Likewise.
848 (find_single_step_breakpoint): Likewise.
849 * mem-break.c (default_memory_insert_breakpoint): Use
850 `reqstd_address' for the breakpoint's address. Don't set
851 `placed_address' or `placed_size' if breakpoint contents couldn't
852 have been determined.
853 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
854 the breakpoint's address.
855 (remote_insert_hw_breakpoint): Likewise. Don't set
856 `placed_address' or `placed_size' if breakpoint couldn't have been
857 set.
858 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
859 `reqstd_address' for the breakpoint's address.
860 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
861 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
862 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
863 * microblaze-linux-tdep.c
864 (microblaze_linux_memory_remove_breakpoint): Likewise.
865 * monitor.c (monitor_insert_breakpoint): Likewise.
866 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
867 (procfs_insert_hw_breakpoint): Likewise.
868 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
869 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
870 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
871 * remote-mips.c (mips_insert_breakpoint): Likewise.
872 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
873
874 2014-10-03 Luis Machado <lgustavo@codesourcery.com>
875
876 * valops.c (value_assign): Check for bit field assignments
877 before calling architecture-specific register value
878 conversion functions.
879
880 2014-10-03 Pierre Muller <muller@sourceware.org>
881
882 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
883
884 2014-10-02 Pedro Alves <palves@redhat.com>
885
886 * breakpoint.c (breakpoints_should_be_inserted_now): Use
887 threads_are_executing.
888 * breakpoint.h (breakpoints_should_be_inserted_now): Add
889 describing comment.
890 * gdbthread.h (threads_are_executing): Declare.
891 (handle_signal_stop) <random signals>: Don't print about the
892 signal here if stopping.
893 (end_stepping_range): Don't notify observers here.
894 (normal_stop): Update the thread list. If stopped by a random
895 signal or a stepping range ended, notify observers.
896 * thread.c (threads_executing): New global.
897 (init_thread_list): Clear 'threads_executing'.
898 (set_executing): Set or clear 'threads_executing'.
899 (threads_are_executing): New function.
900 (update_threads_executing): New function.
901 (update_thread_list): Use it.
902
903 2014-10-02 Pedro Alves <palves@redhat.com>
904
905 PR breakpoints/17431
906 * breakpoint.c (update_breakpoints_after_exec): Don't create
907 overlay, longjmp, std terminate nor exception breakpoints here.
908
909 2014-10-02 Pedro Alves <palves@redhat.com>
910
911 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
912 Adjust comments.
913 * inferior.c (find_inferior_for_program_space): Give preference to
914 the current inferior.
915 * inferior.h (find_inferior_for_program_space): Update comment.
916 * progspace.c (switch_to_program_space_and_thread): Prefer the
917 current inferior if it's bound to the program space requested. If
918 the inferior found doesn't have a PID yet, don't bother looking up
919 a thread.
920 * progspace.h (switch_to_program_space_and_thread): Adjust
921 comment.
922 * thread.c (any_thread_of_process, any_live_thread_of_process):
923 Give preference to the current thread.
924
925 2014-10-01 Pedro Alves <palves@redhat.com>
926
927 * breakpoint.c (insert_bp_location): Error out if inserting a
928 software breakpoint at a read-only address.
929 * target.c (memory_xfer_check_region): New function, factored out
930 from ...
931 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
932 ULONGEST.
933 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
934 against the memory region attributes.
935
936 2014-10-01 Simon Marchi <simon.marchi@ericsson.com>
937
938 * NEWS: Announce new exit-code field in -list-thread-groups
939 output.
940 * inferior.c (exit_inferior_1): Don't clear exit code.
941 (inferior_appeared): Clear exit code.
942 * mi/mi-main.c (print_one_inferior): Add printing of the exit
943 code.
944
945 2014-10-01 Pedro Alves <palves@redhat.com>
946
947 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
948 GENERATED" along with emacs/vi read-only markers.
949 * regformats/aarch64.dat: Regenerate.
950 * regformats/arm-with-iwmmxt.dat: Regenerate.
951 * regformats/arm-with-neon.dat: Regenerate.
952 * regformats/arm-with-vfpv2.dat: Regenerate.
953 * regformats/arm-with-vfpv3.dat: Regenerate.
954 * regformats/i386/amd64-avx-linux.dat: Regenerate.
955 * regformats/i386/amd64-avx.dat: Regenerate.
956 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
957 * regformats/i386/amd64-avx512.dat: Regenerate.
958 * regformats/i386/amd64-linux.dat: Regenerate.
959 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
960 * regformats/i386/amd64-mpx.dat: Regenerate.
961 * regformats/i386/amd64.dat: Regenerate.
962 * regformats/i386/i386-avx-linux.dat: Regenerate.
963 * regformats/i386/i386-avx.dat: Regenerate.
964 * regformats/i386/i386-avx512-linux.dat: Regenerate.
965 * regformats/i386/i386-avx512.dat: Regenerate.
966 * regformats/i386/i386-linux.dat: Regenerate.
967 * regformats/i386/i386-mmx-linux.dat: Regenerate.
968 * regformats/i386/i386-mmx.dat: Regenerate.
969 * regformats/i386/i386-mpx-linux.dat: Regenerate.
970 * regformats/i386/i386-mpx.dat: Regenerate.
971 * regformats/i386/i386.dat: Regenerate.
972 * regformats/i386/x32-avx-linux.dat: Regenerate.
973 * regformats/i386/x32-avx.dat: Regenerate.
974 * regformats/i386/x32-avx512-linux.dat: Regenerate.
975 * regformats/i386/x32-avx512.dat: Regenerate.
976 * regformats/i386/x32-linux.dat: Regenerate.
977 * regformats/i386/x32.dat: Regenerate.
978 * regformats/microblaze-with-stack-protect.dat: Regenerate.
979 * regformats/mips-dsp-linux.dat: Regenerate.
980 * regformats/mips-linux.dat: Regenerate.
981 * regformats/mips64-dsp-linux.dat: Regenerate.
982 * regformats/mips64-linux.dat: Regenerate.
983 * regformats/nios2-linux.dat: Regenerate.
984 * regformats/rs6000/powerpc-32.dat: Regenerate.
985 * regformats/rs6000/powerpc-32l.dat: Regenerate.
986 * regformats/rs6000/powerpc-64l.dat: Regenerate.
987 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
988 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
989 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
990 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
991 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
992 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
993 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
994 * regformats/s390-linux32.dat: Regenerate.
995 * regformats/s390-linux32v1.dat: Regenerate.
996 * regformats/s390-linux32v2.dat: Regenerate.
997 * regformats/s390-linux64.dat: Regenerate.
998 * regformats/s390-linux64v1.dat: Regenerate.
999 * regformats/s390-linux64v2.dat: Regenerate.
1000 * regformats/s390-te-linux64.dat: Regenerate.
1001 * regformats/s390x-linux64.dat: Regenerate.
1002 * regformats/s390x-linux64v1.dat: Regenerate.
1003 * regformats/s390x-linux64v2.dat: Regenerate.
1004 * regformats/s390x-te-linux64.dat: Regenerate.
1005 * regformats/tic6x-c62x-linux.dat: Regenerate.
1006 * regformats/tic6x-c62x.dat: Regenerate.
1007 * regformats/tic6x-c64x-linux.dat: Regenerate.
1008 * regformats/tic6x-c64x.dat: Regenerate.
1009 * regformats/tic6x-c64xp-linux.dat: Regenerate.
1010 * regformats/tic6x-c64xp.dat: Regenerate.
1011
1012 2014-10-01 Pedro Alves <palves@redhat.com>
1013
1014 * features/Makefile: Update comments.
1015 (XMLTOC): List all xml files we build C files from.
1016 (clean-cfiles): New rule.
1017
1018 2014-10-01 Pedro Alves <palves@redhat.com>
1019
1020 * features/i386/amd64-avx512-linux.c: Regenerate.
1021 * features/i386/amd64-avx512.c: Regenerate.
1022 * features/i386/x32-avx512-linux.c: Regenerate.
1023 * features/i386/x32-avx512.c: Regenerate.
1024
1025 2014-10-01 Pedro Alves <palves@redhat.com>
1026
1027 * features/Makefile (WHICH): Remove arm-with-m,
1028 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
1029
1030 2014-10-01 Pedro Alves <palves@redhat.com>
1031
1032 * features/Makefile (clean): New rule.
1033
1034 2014-10-01 Pedro Alves <palves@redhat.com>
1035
1036 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
1037 (zmm14h): Add missing end quotes.
1038
1039 2014-10-01 Pedro Alves <palves@redhat.com>
1040
1041 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
1042 * features/aarch64.c: Regenerate.
1043
1044 2014-09-30 Don Breazeal <donb@codesourcery.com>
1045
1046 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
1047 code so as to work with follow_fork_inferior.
1048 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
1049 (inf_ttrace_create_inferior): Remove reference to
1050 inf_ttrace_vfork_ppid.
1051 (inf_ttrace_attach): Ditto.
1052 (inf_ttrace_detach): Ditto.
1053 (inf_ttrace_kill): Use current_inferior instead of
1054 inf_ttrace_vfork_ppid.
1055 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
1056 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
1057 inferior away from the parent.
1058 * infrun.c (follow_fork): Call follow_fork_inferior instead of
1059 target_follow_fork.
1060 (follow_fork_inferior): New function.
1061 (follow_inferior_reset_breakpoints): Make function static.
1062 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
1063 * linux-nat.c (linux_child_follow_fork): Move target-independent
1064 code to infrun.c:follow_fork_inferior.
1065
1066 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1067
1068 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
1069 * gdbarch.c: Regenerate.
1070 * gdbarch.h: Likewise.
1071 * corelow.c (sniff_core_bfd): Drop presence check for deleted
1072 gdbarch method 'regset_from_core_section'.
1073 (get_core_register_section): Remove handling for the case that
1074 regset == NULL and regset_from_core_section is defined.
1075 (get_core_registers): Drop check for deleted method.
1076 * procfs.c (procfs_do_thread_registers): Adjust comment.
1077
1078 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1079
1080 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
1081 (linux_nat_make_corefile_notes): Remove.
1082 (linux_target_install_ops): Do not set target method
1083 'make_corefile_notes'.
1084 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
1085 Remove field.
1086 (linux_corefile_thread_callback): Instead of args->collect, call
1087 linux_collect_thread_registers.
1088 (linux_make_corefile_notes): Remove 'collect' parameter. Return
1089 NULL unless there is a regset iterator.
1090 (linux_make_corefile_notes_1): Remove.
1091 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
1092 by linux_make_corefile_notes.
1093 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
1094
1095 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1096
1097 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
1098 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
1099 Remove.
1100 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
1101
1102 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1103
1104 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
1105 (xtensa_iterate_over_regset_sections): New.
1106 (xtensa_gdbarch_init): Adjust gdbarch initialization.
1107
1108 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1109
1110 * vax-tdep.c (vax_regset_from_core_section): Remove.
1111 (vax_iterate_over_regset_sections): New.
1112 (vax_gdbarch_init): Adjust gdbarch initialization.
1113
1114 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1115
1116 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
1117 (tilegx_regset_from_core_section): Remove.
1118 (tilegx_iterate_over_regset_sections): New.
1119 (tilegx_linux_init_abi): Adjust gdbarch initialization.
1120
1121 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1122
1123 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
1124 (sparc_iterate_over_regset_sections): New.
1125 (sparc32_gdbarch_init): Adjust gdbarch initialization.
1126 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
1127 targets.
1128 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
1129 (sparc64fbsd_init_abi): Call fbsd_init_abi.
1130 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
1131 target method 'make_corefile_notes'.
1132
1133 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1134
1135 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
1136 'sizeof_gregset' and 'sizeof_fpregset'.
1137 * sh-tdep.c (sh_regset_from_core_section): Remove.
1138 (sh_iterate_over_regset_sections): New.
1139 (sh_gdbarch_init): Adjust gdbarch initialization.
1140 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
1141 sizeof_fpregset.
1142 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
1143 'sizeof_gregset'.
1144
1145 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1146
1147 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
1148 (score7_linux_iterate_over_regset_sections): New.
1149 (score_gdbarch_init): Adjust gdbarch initialization.
1150
1151 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1152
1153 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
1154 FreeBSD targets.
1155 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
1156 method 'make_corefile_notes'.
1157 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
1158 (ppcfbsd_regset_from_core_section): Remove.
1159 (ppcfbsd_iterate_over_regset_sections): New.
1160 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
1161 initialization.
1162 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
1163 (ppcnbsd_iterate_over_regset_sections): New.
1164 (ppcnbsd_init_abi): Adjust.
1165 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
1166 (ppcobsd_iterate_over_regset_sections): New.
1167 (ppcobsd_init_abi): Adjust.
1168 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
1169 (rs6000_aix_iterate_over_regset_sections): New.
1170 (rs6000_aix_init_osabi): Adjust.
1171
1172 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1173
1174 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
1175 (nios2_regset_from_core_section): Remove.
1176 (nios2_iterate_over_regset_sections): New.
1177 (nios2_linux_init_abi): Adjust gdbarch initialization.
1178
1179 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1180
1181 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
1182 (am33_iterate_over_regset_sections): New.
1183 (am33_linux_init_osabi): Adjust gdbarch initialization.
1184
1185 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1186
1187 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
1188 (mips_linux_iterate_over_regset_sections): New.
1189 (mips_linux_init_abi): Adjust gdbarch initialization.
1190 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
1191 (mips64obsd_iterate_over_regset_sections): New.
1192 (mips64obsd_init_abi): Adjust.
1193 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
1194 (mipsnbsd_iterate_over_regset_sections): New.
1195 (mipsnbsd_init_abi): Adjust.
1196
1197 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1198
1199 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
1200 (m88k_iterate_over_regset_sections): New.
1201 (m88k_gdbarch_init): Adjust gdbarch initialization.
1202
1203 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1204
1205 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
1206 (ia64_linux_iterate_over_regset_sections): New.
1207 (ia64_linux_init_abi): Adjust gdbarch initialization.
1208
1209 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1210
1211 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
1212 (m68kbsd_iterate_over_regset_sections): New.
1213 (m68kbsd_init_abi): Adjust gdbarch initialization.
1214 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
1215 (m68k_linux_iterate_over_regset_sections): New.
1216 (m68k_linux_init_abi): Adjust gdbarch initialization.
1217
1218 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1219
1220 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
1221 (m32r_linux_regset_from_core_section): Remove.
1222 (m32r_linux_iterate_over_regset_sections): New.
1223 (m32r_linux_init_abi): Adjust gdbarch initialization.
1224
1225 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1226
1227 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
1228 (amd64obsd_iterate_over_regset_sections): New.
1229 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
1230 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
1231 Remove.
1232 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
1233 regset_from_core_section initialization.
1234 * i386-tdep.c (i386_regset_from_core_section): Remove.
1235 (i386_iterate_over_regset_sections): New.
1236 (i386_gdbarch_init): Adjust gdbarch initialization.
1237 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
1238 (i386_iterate_over_regset_sections): New prototype.
1239 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
1240 Remove.
1241 (i386obsd_aout_iterate_over_regset_sections): New.
1242 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
1243 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
1244 targets.
1245 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
1246 (amd64fbsd_init_abi): Call fbsd_init_abi.
1247 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
1248 (i386fbsd4_init_abi): Call fbsd_init_abi.
1249 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
1250 target method 'make_corefile_notes'.
1251 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
1252
1253 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1254
1255 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
1256 (hppa_hpux_iterate_over_regset_sections): New.
1257 (hppa_hpux_init_abi): Adjust gdbarch initialization.
1258 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
1259 (hppa_linux_iterate_over_regset_sections): New.
1260 (hppa_linux_init_abi): Adjust.
1261 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
1262 (hppanbsd_iterate_over_regset_sections): New.
1263 (hppanbsd_init_abi): Adjust.
1264 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
1265 (hppaobsd_iterate_over_regset_sections): New.
1266 (hppaobsd_init_abi): Adjust.
1267
1268 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1269
1270 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
1271 (frv_linux_iterate_over_regset_sections): New.
1272 (frv_linux_init_abi): Adjust gdbarch initialization.
1273
1274 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1275
1276 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
1277 (armbsd_iterate_over_regset_sections): New prototype.
1278 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
1279 (armbsd_iterate_over_regset_sections): New.
1280 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
1281 initialization.
1282
1283 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1284
1285 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
1286 (alpha_linux_iterate_over_regset_sections): New.
1287 (alpha_linux_init_abi): Adjust gdbarch initialization.
1288 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
1289 prototype.
1290 (alphanbsd_iterate_over_regset_sections): New prototype.
1291
1292 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1293
1294 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
1295 Remove.
1296 (aarch64_linux_iterate_over_regset_sections): New.
1297 (aarch64_linux_init_abi): Adjust gdbarch initialization.
1298
1299 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1300
1301 * fbsd-tdep.c: New file.
1302 * fbsd-tdep.h: New file.
1303 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
1304 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
1305 (ALLDEPFILES): Add fbsd-tdep.c.
1306
1307 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1308
1309 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
1310 parameter.
1311 * gdbarch.h: Regenerate.
1312 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
1313 iterator.
1314 (get_core_register_section): Add parameter 'regset' and use it, if
1315 set. Add parameter 'min_size' and verify the bfd section size
1316 against it.
1317 (get_core_registers_cb): Add parameter 'regset' and pass it to
1318 get_core_register section. For the "standard" register sections
1319 ".reg" and ".reg2", set an appropriate default for human_name.
1320 (get_core_registers): Don't abort when the gdbarch has an iterator
1321 but no regset_from_core_section. Add NULL/0 for parameters
1322 'regset'/'min_size' in calls to get_core_register_section.
1323 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
1324 'regset' and use it instead of calling the
1325 regset_from_core_section gdbarch method.
1326 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
1327 * i386-tdep.c (i386_supply_xstateregset)
1328 (i386_collect_xstateregset, i386_xstateregset): Moved to
1329 i386-linux-tdep.c.
1330 (i386_regset_from_core_section): Drop handling for .reg-xfp and
1331 .reg-xstate.
1332 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
1333 core file support only if the regset iterator hasn't been set.
1334 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
1335 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
1336 Moved from i386-tdep.c and renamed to *_linux*.
1337 (i386_linux_iterate_over_regset_sections): Add regset parameter to
1338 each callback invocation. Allow any .reg-xstate size when reading
1339 from a core file.
1340 * amd64-tdep.c (amd64_supply_xstateregset)
1341 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
1342 amd64-linux-tdep.c.
1343 (amd64_regset_from_core_section): Remove.
1344 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
1345 install an amd64-specific regset_from_core_section gdbarch method.
1346 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
1347 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
1348 Moved from amd64-tdep.c and renamed to *_linux*.
1349 (amd64_linux_iterate_over_regset_sections): Add regset parameter
1350 to each callback invocation. Allow any .reg-xstate size when
1351 reading from a core file.
1352 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
1353 (arm_linux_iterate_over_regset_sections): Add regset parameter to
1354 each callback invocation.
1355 (arm_linux_init_abi): No longer set the regset_from_core_section
1356 gdbarch method.
1357 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
1358 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
1359 each callback invocation.
1360 (ppc_linux_init_abi): No longer set the regset_from_core_section
1361 gdbarch method.
1362 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
1363 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
1364 (s390_regset_from_core_section): Remove.
1365 (s390_iterate_over_regset_sections): Add regset parameter to each
1366 callback invocation.
1367 (s390_gdbarch_init): No longer set the regset_from_core_section
1368 gdbarch method. Drop initialization of deleted tdep fields.
1369
1370 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1371
1372 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
1373 (amd64_linux_iterate_over_regset_sections): New.
1374 (amd64_linux_init_abi_common): Don't install the regset section
1375 list, but the new iterator in gdbarch.
1376 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
1377 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
1378 (arm_linux_iterate_over_regset_sections): ...here. New function.
1379 (arm_linux_init_abi): Set iterator instead of section list.
1380 * corelow.c (get_core_registers_cb): New function, logic moved
1381 from...
1382 (get_core_registers): ...loop body here. Use new iterator method
1383 instead of walking through the regset section list.
1384 * gdbarch.sh: Remove 'core_regset_sections'. New method
1385 'iterate_over_regset_sections'. New typedef
1386 'iterate_over_regset_sections_cb'.
1387 * gdbarch.c: Regenerate.
1388 * gdbarch.h: Likewise.
1389 * i386-linux-tdep.c (i386_linux_regset_sections)
1390 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
1391 Remove.
1392 (i386_linux_iterate_over_regset_sections): New.
1393 (i386_linux_init_abi): Don't choose a regset section list, but
1394 install new iterator in gdbarch.
1395 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
1396 (linux_collect_regset_section_cb): New function, logic moved
1397 from...
1398 (linux_collect_thread_registers): ...loop body here. Use iterator
1399 method instead of walking through list.
1400 (linux_make_corefile_notes_1): Check for presence of iterator
1401 method instead of regset section list.
1402 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
1403 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
1404 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
1405 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
1406 (ppc_linux_iterate_over_regset_sections): ...here. New function.
1407 (ppc_linux_init_abi): Don't choose from above regset section
1408 lists, but install new iterator in gdbarch.
1409 * regset.h (struct core_regset_section): Remove.
1410 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
1411 have_linux_v1, have_linux_v2, and have_tdb.
1412 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
1413 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
1414 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
1415 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
1416 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
1417 (s390_iterate_over_regset_sections): ...here. New function. Use
1418 new tdep fields.
1419 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
1420 regset section lists, but install new iterator.
1421
1422 2014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1423
1424 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
1425
1426 2014-09-26 Simon Marchi <simon.marchi@ericsson.com>
1427
1428 * progspace.c (print_program_space): Don't prune program spaces
1429 before printing them.
1430
1431 2014-09-25 Pedro Alves <palves@redhat.com>
1432
1433 * infrun.c (user_visible_resume_ptid): Don't check
1434 singlestep_breakpoints_inserted_p.
1435
1436 2014-09-25 Pedro Alves <palves@redhat.com>
1437
1438 * breakpoint.c (should_be_inserted): Add debug output.
1439
1440 2014-09-25 Pedro Alves <palves@redhat.com>
1441
1442 * infrun.c (stepping_past_instruction_at)
1443 (clear_exit_convenience_vars): Point at infrun.h instead of
1444 inferior.h.
1445 (handle_signal_stop): Fix typo.
1446
1447 2014-09-24 Yao Qi <yao@codesourcery.com>
1448
1449 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
1450 bitmask.
1451
1452 2014-09-22 Gary Benson <gbenson@redhat.com>
1453
1454 * target.c (target_stop): Updated comment.
1455
1456 2014-09-22 Gary Benson <gbenson@redhat.com>
1457
1458 * target/target.h (target_stop_ptid): Renamed as...
1459 (target_stop_and_wait): New function. Updated comment.
1460 All uses updated.
1461 (target_continue_ptid): Renamed as...
1462 (target_continue_no_signal): New function. Updated comment.
1463 All uses updated.
1464
1465 2014-09-22 Pedro Alves <palves@redhat.com>
1466
1467 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
1468 and "auto" merged.
1469 * breakpoint.c (enum ugll_insert_mode): New enum.
1470 (always_inserted_mode): Now a plain boolean.
1471 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
1472 (breakpoints_always_inserted_mode): Delete.
1473 (breakpoints_should_be_inserted_now): New function.
1474 (insert_breakpoints): Pass UGLL_INSERT to
1475 update_global_location_list instead of calling
1476 insert_breakpoint_locations manually.
1477 (create_solib_event_breakpoint_1): New, factored out from ...
1478 (create_solib_event_breakpoint): ... this.
1479 (create_and_insert_solib_event_breakpoint): Use
1480 create_solib_event_breakpoint_1 instead of calling
1481 insert_breakpoint_locations manually.
1482 (update_global_location_list): Change parameter type from boolean
1483 to enum ugll_insert_mode. All callers adjusted. Adjust to use
1484 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
1485 (update_global_location_list_nothrow): Change parameter type from
1486 boolean to enum ugll_insert_mode.
1487 (_initialize_breakpoint): "breakpoint always-inserted" option is
1488 now a boolean command. Update help text.
1489 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
1490 (breakpoints_should_be_inserted_now): New declaration.
1491 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
1492 Remove breakpoints_always_inserted_mode check.
1493 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
1494 * remote.c (remote_start_remote): Likewise.
1495
1496 2014-09-22 Pedro Alves <palves@redhat.com>
1497
1498 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
1499 (insert_breakpoints): Don't call insert_breakpoint_locations here.
1500 Instead, pass UGLL_INSERT to update_global_location_list.
1501 (update_global_location_list): Change parameter type from boolean
1502 to enum ugll_insert_mode. All callers adjusted. Adjust to use
1503 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
1504 (create_solib_event_breakpoint_1): New, factored out from ...
1505 (create_solib_event_breakpoint): ... this.
1506 (create_and_insert_solib_event_breakpoint): Use
1507 create_solib_event_breakpoint_1 instead of calling
1508 insert_breakpoint_locations manually.
1509 (update_global_location_list): Handle UGLL_INSERT.
1510
1511 2014-09-22 Pedro Alves <palves@redhat.com>
1512
1513 * breakpoint.c (enum ugll_insert_mode): New enum.
1514 (update_global_location_list)
1515 (update_global_location_list_nothrow): Change parameter type from
1516 boolean to enum ugll_insert_mode. All callers adjusted.
1517
1518 2014-09-19 Joel Brobecker <brobecker@adacore.com>
1519
1520 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
1521 SystemTap support in GDB.
1522
1523 2014-09-19 Don Breazeal <donb@codesourcery.com>
1524
1525 * linux-nat.c (linux_handle_extended_wait): Call
1526 linux_ptrace_get_extended_event.
1527 (wait_lwp): Call linux_is_extended_waitstatus.
1528 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
1529 and linux_is_extended_waitstatus.
1530 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
1531 linux_ptrace_get_extended_event.
1532 (linux_ptrace_get_extended_event): New function.
1533 (linux_is_extended_waitstatus): New function.
1534 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
1535 (linux_is_extended_waitstatus): New declarations.
1536
1537 2014-09-19 Yao Qi <yao@codesourcery.com>
1538
1539 * dwarf2read.c (dwarf_decode_lines): Update declaration.
1540 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
1541 comments. Callers update.
1542 (dwarf_decode_lines): Likewise.
1543 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
1544 comments. Skip the line table if 'lowpc' is greater than
1545 'address'. Don't check
1546 dwarf2_per_objfile->has_section_at_zero.
1547
1548 2014-09-18 Doug Evans <dje@google.com>
1549
1550 * NEWS: Mention new "producer" attribute of gdb.Symtab.
1551 * python/py-symtab.c (stpy_get_producer): New function.
1552 (symtab_object_getset): Add "producer" attribute.
1553
1554 2014-09-17 Ulrich Weigand  <uweigand@de.ibm.com>
1555
1556 PR gdb/17384
1557 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
1558 (do_captured_read_memory_integer): Remove.
1559 (safe_read_memory_integer): Use target_read_memory directly instead
1560 of catching errors in do_captured_read_memory_integer.
1561
1562 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
1563
1564 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
1565 not gdb/doc.
1566
1567 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1568
1569 * objc-lang.c (find_implementation_from_class): Remove dead code.
1570
1571 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1572
1573 PR cli/7233
1574 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
1575 "fprintf_unfiltered (gdb_stdlog...)".
1576
1577 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
1578
1579 PR breakpoints/12526
1580 * breakpoint.h (struct watchpoint): New fields val_bitpos and
1581 val_bitsize.
1582 * breakpoint.c (watch_command_1): Use these fields to retain
1583 bitfield information.
1584 (extract_bitfield_from_watchpoint_value): New function.
1585 (watchpoint_check): Use it.
1586 (update_watchpoint): Use it. Optimize the address and length of a
1587 HW watchpoint pointing to a bitfield.
1588 * value.h (unpack_value_bitfield): New prototype.
1589 * value.c (unpack_value_bitfield): Make extern.
1590
1591 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
1592
1593 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
1594 x86-dregs.o.
1595 * gnu-nat.c (inf_threads): New function.
1596 * gnu-nat.h (inf_threads_ftype): New typedef.
1597 (inf_threads): New declaration.
1598 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
1599 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
1600 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
1601 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
1602 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
1603 (i386_gnu_dr_get_control): New functions.
1604 (reg_addr): New structure.
1605 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
1606 i386 debugging register hooks.
1607 * NEWS: Mention this.
1608
1609 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1610
1611 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
1612 vector data transfer instructions.
1613 (arm_record_coproc_data_proc): Updated.
1614
1615 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1616
1617 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
1618 arm_record_exreg_ld_st_insn.
1619 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
1620 load/store insns.
1621
1622 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1623
1624 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
1625 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
1626 processing instructions.
1627
1628 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1629
1630 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
1631 for advance SIMD struct ld/st insn.
1632 (thumb2_record_decode_insn_handler): Replace stub handler with
1633 thumb2_record_asimd_struct_ld_st.
1634
1635 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1636
1637 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
1638 for asimd, vfp and coprocessor insns.
1639 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
1640 and coprocessor insns.
1641 (thumb2_record_coproc_insn): New function.
1642 (thumb2_record_decode_insn_handler): Update coprocessor insns record
1643 handlers.
1644 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
1645 opcode 110 insns.
1646
1647 2014-09-13 Doug Evans <xdje42@gmail.com>
1648
1649 * NEWS: Mention new "queue-signal" command.
1650 * infcmd.c (queue_signal_command): New function.
1651 (_initialize_infcmd): Add new queue-signal command.
1652
1653 2014-09-13 Doug Evans <xdje42@gmail.com>
1654
1655 * linux-nat.c (wait_lwp): Add debugging printf.
1656 (linux_nat_wait_1): Ditto.
1657
1658 2014-09-12 Pedro Alves <palves@redhat.com>
1659
1660 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
1661 (create_and_insert_solib_event_breakpoint): New functions.
1662 * breakpoint.h (create_and_insert_solib_event_breakpoint)
1663 (remove_solib_event_breakpoints_at_next_stop): New declarations.
1664 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
1665 (remove_dbx_link_breakpoint): Delete function.
1666 (insert_dbx_link_bpt_in_file): Use
1667 create_and_insert_solib_event_breakpoint instead of
1668 deprecated_insert_raw_breakpoint.
1669 (procfs_wait): Don't check whether we hit __dbx_link here.
1670 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
1671 here.
1672 * solib-irix.c (base_breakpoint): Delete global.
1673 (disable_break): Delete function.
1674 (enable_break): Use create_solib_event_breakpoint
1675 instead of deprecated_insert_raw_breakpoint.
1676 (irix_solib_handle_event): New function.
1677 (irix_solib_create_inferior_hook): Don't run the target or disable
1678 the mapping-complete breakpoint here.
1679 (_initialize_irix_solib): Install irix_solib_handle_event as
1680 so_ops->handle_event hook.
1681
1682 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1683 Ulrich Weigand  <uweigand@de.ibm.com>
1684
1685 PR tdep/17379
1686 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
1687 instead of read_memory_unsigned_integer.
1688
1689 2014-09-12 Gary Benson <gbenson@redhat.com>
1690
1691 * nat/linux-waitpid.c: Include common-defs.h.
1692 [GDBSERVER]: Add FIXME comment.
1693 [!GDBSERVER]: Don't include defs.h or signal.h.
1694 (linux_debug) [!GDBSERVER]: Remove empty block.
1695
1696 2014-09-12 Gary Benson <gbenson@redhat.com>
1697
1698 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
1699 Don't include defs.h or server.h.
1700
1701 2014-09-12 Gary Benson <gbenson@redhat.com>
1702
1703 * nat/linux-btrace.c: Include common-defs.h.
1704 Don't include defs.h, server.h or gdbthread.h.
1705 * nat/linux-btrace.h (struct target_ops): New forward declaration.
1706
1707 2014-09-12 Gary Benson <gbenson@redhat.com>
1708
1709 * common/agent.c: Include common-defs.h.
1710 Don't include defs.h or server.h.
1711 * common/buffer.c: Likewise.
1712 * common/common-debug.c: Likewise.
1713 * common/common-utils.c: Likewise.
1714 * common/errors.c: Likewise.
1715 * common/filestuff.c: Likewise.
1716 * common/format.c: Likewise.
1717 * common/gdb_vecs.c: Likewise.
1718 * common/print-utils.c: Likewise.
1719 * common/ptid.c: Likewise.
1720 * common/rsp-low.c: Likewise.
1721 * common/signals.c: Likewise.
1722 * common/vec.c: Likewise.
1723 * common/xml-utils.c: Likewise.
1724 * nat/linux-osdata.c: Likewise.
1725 * nat/linux-procfs.c: Likewise.
1726 * nat/linux-ptrace.c: Likewise.
1727 * nat/mips-linux-watch.c: Likewise.
1728 * target/waitstatus.c: Likewise.
1729
1730 2014-09-12 Tom Tromey <tromey@redhat.com>
1731 Gary Benson <gbenson@redhat.com>
1732
1733 * common/common-regcache.h: New file.
1734 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
1735 * regcache.h: Include common-regcache.h.
1736 (regcache_read_pc): Don't declare.
1737 * regcache.c (get_thread_regcache_for_ptid): New function.
1738 * nat/linux-btrace.c: Don't include regcache.h.
1739 Include common-regcache.h.
1740 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
1741
1742 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
1743
1744 * regcache.h (struct regset): Declare.
1745
1746 2014-09-11 Pedro Alves <palves@redhat.com>
1747
1748 PR gdb/17347
1749 * main.c: Include "infrun.h".
1750 (catch_command_errors, catch_command_errors_const): Wait for the
1751 foreground command to complete.
1752 * top.c (maybe_wait_sync_command_done): New function, factored out
1753 from ...
1754 (maybe_wait_sync_command_done): ... here.
1755 * top.h (maybe_wait_sync_command_done): New declaration.
1756
1757 2014-09-11 Tom Tromey <tromey@redhat.com>
1758 Gary Benson <gbenson@redhat.com>
1759
1760 * common/symbol.h: New file.
1761 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
1762 * minsyms.c (find_minimal_symbol_address): New function.
1763 * common/agent.c: Include common/symbol.h.
1764 [!GDBSERVER]: Don't include objfiles.h.
1765 (agent_look_up_symbols): Use find_minimal_symbol_address.
1766
1767 2014-09-11 Gary Benson <gbenson@redhat.com>
1768
1769 * target/target.h (target_stop_ptid, target_continue_ptid):
1770 Declare.
1771 * target.c (target_stop_ptid, target_continue_ptid): New
1772 functions.
1773 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
1774 (agent_run_command): Always use target_stop_ptid and
1775 target_continue_ptid.
1776
1777 2014-09-11 Tom Tromey <tromey@redhat.com>
1778 Gary Benson <gbenson@redhat.com>
1779
1780 * target/target.h: New file.
1781 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
1782 * target.h: Include target/target.h.
1783 (target_read_memory, target_write_memory): Don't declare.
1784 * target.c (target_read_uint32): New function.
1785 * common/agent.c: Include target/target.h.
1786 [!GDBSERVER]: Don't include target.h.
1787 (helper_thread_id): Type changed to uint32_t.
1788 (agent_get_helper_thread_id): Use target_read_uint32.
1789 (agent_run_command): Always use target_read_memory and
1790 target_write_memory.
1791 (agent_capability): Type changed to uint32_t.
1792 (agent_capability_check): Use target_read_uint32.
1793
1794 2014-09-11 Gary Benson <gbenson@redhat.com>
1795
1796 * common/common-debug.h (show_debug_regs): Declare.
1797 * common/common-debug.c (show_debug_regs): Define.
1798 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
1799 all uses with show_debug_regs. Replace all uses that considered
1800 debug_hw_points as a multi-value integer with straight boolean
1801 uses.
1802 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
1803 with show_debug_regs.
1804 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
1805 all uses with show_debug_regs.
1806 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
1807 uses with show_debug_regs.
1808
1809 2014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
1810
1811 * findvar.c (address_from_register): Handle targets requiring
1812 a special conversion routine even for plain pointer types.
1813
1814 2014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
1815
1816 * rs6000-nat.c (exec_one_dummy_insn): Remove.
1817 (store_register): Do not call exec_one_dummy_insn.
1818
1819 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1820
1821 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
1822 dereference it first. Use value_enclosing_type instead of
1823 value_type.
1824 (ada_array_length): Likewise.
1825
1826 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1827
1828 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
1829 Adjust function implementation and documentation accordingly.
1830 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
1831 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
1832 Update call to ada_value_ptr_subscript.
1833
1834 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1835
1836 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
1837 instead of VAL's type.
1838
1839 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1840
1841 * amd64-linux-nat.c: Add <sys/uio.h> #include.
1842
1843 2014-09-09 Doug Evans <xdje42@gmail.com>
1844
1845 PR guile/17367
1846 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
1847 last parameter to pkg-config, not first.
1848 * configure.ac: Pass --with-guile provided pkg-config path to
1849 GDB_GUILE_PROGRAM_NAMES.
1850 * configure: Regenerate.
1851
1852 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
1853
1854 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
1855 Bertazi".
1856
1857 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
1858
1859 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
1860 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
1861 the list of sections determining GDB_OSABI_IRIX.
1862
1863 2014-09-09 James Hogan <james.hogan@imgtec.com>
1864
1865 * MAINTAINERS (Write After Approval): Add "James Hogan".
1866
1867 2014-09-09 James Hogan <james.hogan@imgtec.com>
1868
1869 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
1870
1871 2014-09-09 Joel Brobecker <brobecker@adacore.com>
1872
1873 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
1874
1875 2014-09-08 Doug Evans <xdje42@gmail.com>
1876
1877 PR 17247
1878 * guile.c: #include <signal.h>.
1879 (_initialize_guile): Block SIGCHLD while initializing Guile.
1880
1881 Replaces the following, which is reverted.
1882
1883 2014-07-26 Doug Evans <xdje42@gmail.com>
1884
1885 PR 17185
1886 * configure.ac: Add check for header gc/gc.h.
1887 Add check for function setenv.
1888 * configure: Regenerate.
1889 * config.in: Regenerate.
1890 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1891
1892 2014-09-08 Doug Evans <xdje42@gmail.com>
1893
1894 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
1895 with named constant. Fix style of pointer comparison.
1896 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
1897
1898 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
1899
1900 PR gdb/17035
1901 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
1902 decide whether we display the command on "show user".
1903 * cli/cli-script.c (show_user_1): Only verify cmdlines after
1904 printing command name.
1905 * cli/cli-decode.h (cli_user_command_p): Declare new function.
1906 * cli/cli-decode.c (cli_user_command_p): Create helper function
1907 to verify whether cmd_list_element is a user-defined command.
1908
1909 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1910
1911 PR python/17355
1912 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
1913 Fix goto out of TRY_CATCH.
1914
1915 2014-09-06 Doug Evans <xdje42@gmail.com>
1916 Tom Tromey <tromey@redhat.com>
1917
1918 PR 15276
1919 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
1920 $_any_caller_matches.
1921 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
1922 * python/lib/gdb/function/caller_is.py: New file.
1923
1924 2014-09-06 Doug Evans <xdje42@gmail.com>
1925
1926 * infcmd.c (program_info): Fix typo.
1927
1928 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
1929
1930 PR gdb/17235
1931 * stap-probe.c (stap_parse_single_operand): Delete unused variable
1932 'number'. New variable 'has_digit'. Rewrite code to deal with
1933 subexpressions on SDT probes.
1934
1935 2014-09-04 Pedro Alves <palves@redhat.com>
1936
1937 * c-exp.y (parse_number): Skip handling base-switching prefixes if
1938 the input is only one character long.
1939
1940 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
1941
1942 PR fortran/17237
1943 * f-valprint.c (f_val_print): Specify the correct print option to
1944 use when printing integer values.
1945
1946 2014-09-04 Gary Benson <gbenson@redhat.com>
1947
1948 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
1949 Remove code to cope with LWPs wrapped as PIDs.
1950 Add assertions to ensure no wrapped LWPs are passed.
1951
1952 2014-09-04 Pedro Alves <palves@redhat.com>
1953
1954 * value.c (value_ranges_copy_adjusted): New function, factored out
1955 from ...
1956 (value_contents_copy_raw): ... here.
1957 (unpack_value_bits_as_long_1): Rename back to ...
1958 (unpack_bits_as_long): ... this. Remove 'original_value' and
1959 'result' parameters. Change return type to LONGEST.
1960 (unpack_value_bits_as_long): Delete.
1961 (unpack_value_field_as_long_1): Delete.
1962 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
1963 (unpack_value_bitfield): New function.
1964 (value_field_bitfield): Reimplement using unpack_value_bitfield.
1965 (value_fetch_lazy): Use unpack_value_bitfield.
1966 * value.h (unpack_value_bits_as_long): Delete declaration.
1967
1968 2014-09-03 Sasha Smundak <asmundak@google.com>
1969
1970 * python/py-frame.c (frapy_read_register): New function.
1971
1972 2014-09-03 James Hogan <james.hogan@imgtec.com>
1973
1974 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
1975 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
1976
1977 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
1978
1979 PR python/16699
1980 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
1981 function.
1982 (add_cmd): Set "completer_handle_brkchars" to NULL.
1983 * cli/cli-decode.h (struct cmd_list_element)
1984 <completer_handle_brkchars>: New field.
1985 * command.h (completer_ftype_void): New typedef.
1986 (set_cmd_completer_handle_brkchars): New prototype.
1987 * completer.c (set_gdb_completion_word_break_characters): New
1988 function.
1989 (complete_line_internal): Call "completer_handle_brkchars"
1990 callback from command.
1991 * completer.h: Include "command.h".
1992 (set_gdb_completion_word_break_characters): New prototype.
1993 * python/py-cmd.c (cmdpy_completer_helper): New function.
1994 (cmdpy_completer_handle_brkchars): New function.
1995 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
1996 (cmdpy_init): Set completer_handle_brkchars to
1997 cmdpy_completer_handle_brkchars.
1998
1999 2014-09-03 Gary Benson <gbenson@redhat.com>
2000
2001 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
2002 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
2003 Loop conditions changed to equivalent form.
2004 (struct x86_debug_reg_state): Updated dr_ref_count comment.
2005 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
2006 ALL_DEBUG_ADDRESS_REGISTERS.
2007
2008 2014-09-03 Joel Brobecker <brobecker@adacore.com>
2009
2010 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
2011 description fix.
2012
2013 2014-09-02 Doug Evans <dje@google.com>
2014
2015 * typeprint.c (find_global_typedef): Fix comment.
2016
2017 2014-09-02 Gary Benson <gbenson@redhat.com>
2018
2019 * i386-nat.h: Renamed as...
2020 * x86-nat.h: New file. All type, function and variable name
2021 prefixes changed from "i386_" to "x86_". All references updated.
2022 * i386-nat.c: Renamed as...
2023 * x86-nat.c: New file. All type, function and variable name
2024 prefixes changed from "i386_" to "x86_". All references updated.
2025 * common/i386-xstate.h: Renamed as...
2026 * common/x86-xstate.h: New file. All type, function and variable
2027 name prefixes changed from "i386_" to "x86_". All references
2028 updated.
2029 * nat/i386-cpuid.h: Renamed as...
2030 * nat/x86-cpuid.h: New file. All type, function and variable name
2031 prefixes changed from "i386_" to "x86_". All references updated.
2032 * nat/i386-gcc-cpuid.h: Renamed as...
2033 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
2034 name prefixes changed from "i386_" to "x86_". All references
2035 updated.
2036 * nat/i386-dregs.h: Renamed as...
2037 * nat/x86-dregs.h: New file. All type, function and variable name
2038 prefixes changed from "i386_" to "x86_". All references updated.
2039 * nat/i386-dregs.c: Renamed as...
2040 * nat/x86-dregs.c: New file. All type, function and variable name
2041 prefixes changed from "i386_" to "x86_". All references updated.
2042
2043 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
2044
2045 * varobj.c (_initialize_varobj): Move to the end of file.
2046
2047 2014-08-29 Gary Benson <gbenson@redhat.com>
2048
2049 * common/common-exceptions.h: New file.
2050 * common/common-exceptions.c: Likewise.
2051 * Makefile.in (SFILES): Add common/common-exceptions.c.
2052 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
2053 (COMMON_OBS): Add common-exceptions.o.
2054 (common-exceptions.o): New rule.
2055 * exceptions.h (common-exceptions.h): Include.
2056 (gdb_setjmp.h): Do not include.
2057 (return_reason): Moved to common-exceptions.h.
2058 (enum return_reason): Likewise.
2059 (RETURN_MASK): Likewise.
2060 (typedef return_mask): Likewise.
2061 (enum errors): Likewise.
2062 (struct gdb_exception): Likewise.
2063 (exceptions_state_mc_init): Likewise.
2064 (exceptions_state_mc_action_iter): Likewise.
2065 (exceptions_state_mc_action_iter_1): Likewise.
2066 (TRY_CATCH): Likewise.
2067 (throw_exception): Likewise.
2068 (throw_verror): Likewise.
2069 (throw_vquit): Likewise.
2070 (throw_error): Likewise.
2071 (throw_quit): Likewise.
2072 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
2073 (enum catcher_action): Likewise.
2074 (struct catcher): Likewise.
2075 (current_catcher): Likewise.
2076 (catcher_list_size): Likewise.
2077 (exceptions_state_mc_init): Likewise.
2078 (catcher_pop): Likewise.
2079 (exceptions_state_mc): Likewise.
2080 (exceptions_state_mc_action_iter): Likewise.
2081 (exceptions_state_mc_action_iter_1): Likewise.
2082 (throw_exception): Likewise.
2083 (exception_messages): Likewise.
2084 (exception_messages_size): Likewise.
2085 (throw_it): Likewise.
2086 (throw_verror): Likewise.
2087 (throw_vquit): Likewise.
2088 (throw_error): Likewise.
2089 (throw_quit): Likewise.
2090 (prepare_to_throw_exception): New function.
2091
2092 2014-08-29 Gary Benson <gbenson@redhat.com>
2093
2094 * common/gdb_setjmp.h: New file.
2095 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
2096 * configure.ac: Move sigsetjmp check...
2097 * common/common.m4: ...here.
2098 * configure: Regenerate.
2099 * cp-support.c (SIGJMP_BUF): Delete.
2100 (SIGSETJMP): Likewise.
2101 (SIGLONGJMP): Likewise.
2102 * exceptions.h (gdb_setjmp.h): Include.
2103 (setjmp.h): Do not include.
2104 (EXCEPTIONS_SIGJMP_BUF): Delete.
2105 (EXCEPTIONS_SIGSETJMP): Likewise.
2106 (EXCEPTIONS_SIGLONGJMP): Likewise.
2107 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
2108 from gdb_setjmp.h.
2109 * exceptions.c: Likewise.
2110
2111 2014-08-29 Gary Benson <gbenson@redhat.com>
2112
2113 * cleanups.h: Moved to...
2114 * common/cleanups.h: New file.
2115 * cleanups.c: Moved to...
2116 * common/cleanups.c: New file. Include common-defs.h and
2117 cleanups.h. Do not include defs.h.
2118 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
2119 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
2120 (cleanups.o): New rule.
2121
2122 2014-08-29 Gary Benson <gbenson@redhat.com>
2123
2124 * common/errors.h (internal_warning): New declaration.
2125 (internal_vwarning): Likewise.
2126 * common/errors.c (internal_warning): New function.
2127 * utils.h (internal_warning): Don't declare.
2128 (internal_vwarning): Likewise.
2129 * utils.c (internal_warning): Removed.
2130
2131 2014-08-29 Gary Benson <gbenson@redhat.com>
2132
2133 * main.c (captured_main): Use warning during startup.
2134 Prefix startup warning messages with command name.
2135
2136 2014-08-29 Gary Benson <gbenson@redhat.com>
2137
2138 * main.c (captured_main): Handle usage errors with error.
2139
2140 2014-08-29 Gary Benson <gbenson@redhat.com>
2141
2142 * go32-nat.c (go32_create_inferior): Replace a fprintf/
2143 exit pair with a call to error. Wrap the message with _().
2144
2145 2014-08-29 Gary Benson <gbenson@redhat.com>
2146
2147 * main.c (captured_main): Replace a fprintf/exit
2148 pair with a call to error. Wrap the message with _().
2149
2150 2014-08-29 Gary Benson <gbenson@redhat.com>
2151
2152 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
2153 pairs with calls to error. Wrap the message with _().
2154
2155 2014-08-29 Gary Benson <gbenson@redhat.com>
2156
2157 * utils.c (vwarning): Protect calls to target_terminal_ours
2158 and wrap_here.
2159
2160 2014-08-29 Gary Benson <gbenson@redhat.com>
2161
2162 * exceptions.c (print_flush): Protect calls to
2163 target_terminal_ours and wrap_here.
2164
2165 2014-08-29 Gary Benson <gbenson@redhat.com>
2166
2167 * utils.h (filtered_printing_initialized): New declaration.
2168 * utils.c (abort_with_message): New function.
2169 (internal_vproblem): Use abort_with_message for first level
2170 recursive internal problems, and if gdb_stderr is not set up.
2171 Protect calls to target_terminal_ours, begin_line and query.
2172
2173 2014-08-28 Doug Evans <dje@google.com>
2174
2175 * symtab.c (in_prologue): Move definition to better spot.
2176 (skip_prologue_using_sal): Ditto.
2177
2178 2014-08-28 Doug Evans <dje@google.com>
2179
2180 * symtab.c (find_function_start_sal): Move definition to better spot.
2181
2182 2014-08-28 Yao Qi <yao@codesourcery.com>
2183
2184 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
2185 found_stack_adjust in forward scan. Remove condition check
2186 on found_stack_adjust which is always true. Indent the code.
2187
2188 2014-08-28 Yao Qi <yao@codesourcery.com>
2189
2190 * dwarf2read.c (dwarf_decode_lines): Update declaration.
2191 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
2192 (dwarf_decode_lines): Remove argument
2193 want_line_info. Remove condition check on want_line_info.
2194 Callers update.
2195
2196 2014-08-27 Doug Evans <dje@google.com>
2197
2198 * dwarf2read.c (dwarf_record_line): Fix typo.
2199
2200 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
2201
2202 * target.h (struct target_ops::to_terminal_save_ours): Remove
2203 declaration.
2204 (target_terminal_save_ours): Remove macro.
2205 * target-delegates.c: Regenerate.
2206 * inf-child.c (inf_child_target): Don't set the nonexistent
2207 field to_terminal_save_ours.
2208 * inferior.h (child_terminal_save_ours): Remove declaration.
2209 * terminal.h (gdb_save_tty_state): New declaration.
2210 * inflow.c (child_terminal_save_ours): Rename to ...
2211 (gdb_save_tty_state): ... this.
2212 * tui/tui.c: Include terminal.h.
2213 (tui_enable): Use gdb_save_tty_state instead of
2214 target_terminal_save_ours.
2215 (tui_disable): Likewise.
2216
2217 2014-08-25 Doug Evans <dje@google.com>
2218
2219 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
2220 Pass NULL instead of 0 for context pointer.
2221
2222 2014-08-25 Yao Qi <yao@codesourcery.com>
2223
2224 * dwarf2read.c: Fix grammatical error.
2225
2226 2014-08-24 Yao Qi <yao@codesourcery.com>
2227
2228 * dwarf2read.c (scan_partial_symbols): Update comments.
2229 Rename argument 'need_pc' with 'set_addrmap'.
2230 (add_partial_namespace): Rename argument 'need_pc' with
2231 'set_addrmap'.
2232 (add_partial_module): Likewise.
2233 (add_partial_subprogram): Likewise. Update comments.
2234 (dwarf2_name): Fix typo.
2235
2236 2014-08-22 Doug Evans <dje@google.com>
2237
2238 PR 17276
2239 * dwarf2read.c (dwarf_record_line_p): New function.
2240 (dwarf_decode_lines_1): Ignore subsequent line number entries
2241 for the same line if any entry had a non-zero discriminator.
2242
2243 2014-08-22 Doug Evans <dje@google.com>
2244
2245 * buildsym.h (record_line_ftype): New typedef.
2246 (record_line): Use it.
2247 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
2248 (dwarf_decode_lines_1): Call them.
2249
2250 2014-08-22 Yao Qi <yao@codesourcery.com>
2251
2252 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
2253 (ctf_end): Remove code.
2254
2255 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2256
2257 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
2258 (linux_make_corefile_notes): call update_thread_list, protected against
2259 exceptions.
2260
2261 2014-08-21 Pedro Alves <palves@redhat.com>
2262
2263 * infcmd.c (attach_command): Remove comment.
2264
2265 2014-08-21 Bin Cheng <bin.cheng@arm.com>
2266
2267 * aarch64-linux-nat.c (dr_changed_t): Change the type from
2268 unsigned LONGEST to ULONGEST.
2269
2270 2014-08-20 Pedro Alves <palves@redhat.com>
2271
2272 * Makefile.in (check-read1): New rule.
2273
2274 2014-08-20 Joel Brobecker <brobecker@adacore.com>
2275
2276 * value.c (value_from_contents_and_address): Strip resolved_type's
2277 typedef layers before checking its TYPE_DATA_LOCATION.
2278
2279 2014-08-20 Pedro Alves <palves@redhat.com>
2280
2281 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
2282
2283 2014-08-20 Yao Qi <yao@codesourcery.com>
2284
2285 * amd64-tdep.c (amd64_classify): Add a blank line after the
2286 example. Move "*/" to a new line.
2287 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
2288 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
2289 * dwarf2read.c (psymtab_include_file_name): Likewise.
2290
2291 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
2292 Pedro Alves <palves@redhat.com>
2293
2294 PR symtab/14604
2295 PR symtab/14605
2296 * ada-lang.c (coerce_unspec_val_to_type): Use
2297 value_contents_copy_raw.
2298 * ada-valprint.c (val_print_packed_array_elements): Adjust.
2299 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
2300 * cp-valprint.c (cp_print_value_fields): Let the common printing
2301 code handle optimized out values.
2302 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
2303 * d-valprint.c (dynamic_array_type): Use
2304 value_bits_any_optimized_out.
2305 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
2306 check_any_valid fields.
2307 (check_pieced_value_bits): Delete and inline ...
2308 (check_pieced_synthetic_pointer): ... here.
2309 (check_pieced_value_validity): Delete.
2310 (check_pieced_value_invalid): Delete.
2311 (pieced_value_funcs): Remove check_validity and check_any_valid
2312 fields.
2313 (read_pieced_value): Use mark_value_bits_optimized_out.
2314 (write_pieced_value): Switch to use
2315 mark_value_bytes_optimized_out.
2316 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
2317 of assuming the whole value is optimized out.
2318 * findvar.c (read_frame_register_value): Remove special handling
2319 of optimized out registers.
2320 (value_from_register): Use mark_value_bytes_optimized_out.
2321 * frame-unwind.c (frame_unwind_got_optimized): Use
2322 mark_value_bytes_optimized_out.
2323 * jv-valprint.c (java_value_print): Adjust.
2324 (java_print_value_fields): Let the common printing code handle
2325 optimized out values.
2326 * mips-tdep.c (mips_print_register): Remove special handling of
2327 optimized out registers.
2328 * opencl-lang.c (lval_func_check_validity): Delete.
2329 (lval_func_check_any_valid): Delete.
2330 (opencl_value_funcs): Remove check_validity and check_any_valid
2331 fields.
2332 * p-valprint.c (pascal_object_print_value_fields): Let the common
2333 printing code handle optimized out values.
2334 * stack.c (read_frame_arg): Remove special handling of optimized
2335 out values. Fetch both VAL and ENTRYVAL before comparing
2336 contents. Adjust to value_available_contents_eq rename.
2337 * valprint.c (valprint_check_validity)
2338 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
2339 (val_print_array_elements): Adjust.
2340 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
2341 (value_bits_any_optimized_out): New function.
2342 (value_entirely_covered_by_range_vector): New function, factored
2343 out from value_entirely_unavailable.
2344 (value_entirely_unavailable): Reimplement.
2345 (value_entirely_optimized_out): New function.
2346 (insert_into_bit_range_vector): New function, factored out from
2347 mark_value_bits_unavailable.
2348 (mark_value_bits_unavailable): Reimplement.
2349 (struct ranges_and_idx): New struct.
2350 (find_first_range_overlap_and_match): New function, factored out
2351 from value_available_contents_bits_eq.
2352 (value_available_contents_bits_eq): Rename to ...
2353 (value_contents_bits_eq): ... this. Check both unavailable
2354 contents and optimized out contents.
2355 (value_available_contents_eq): Rename to ...
2356 (value_contents_eq): ... this.
2357 (allocate_value_lazy): Remove reference to the old optimized_out
2358 boolean.
2359 (allocate_optimized_out_value): Use
2360 mark_value_bytes_optimized_out.
2361 (require_not_optimized_out): Adjust to check whether the
2362 optimized_out vec is empty.
2363 (ranges_copy_adjusted): New function, factored out from
2364 value_contents_copy_raw.
2365 (value_contents_copy_raw): Also copy the optimized out ranges.
2366 Assert the destination ranges aren't optimized out.
2367 (value_contents_copy): Update comment, remove call to
2368 require_not_optimized_out.
2369 (value_contents_equal): Adjust to check whether the optimized_out
2370 vec is empty.
2371 (set_value_optimized_out, value_optimized_out_const): Delete.
2372 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
2373 New functions.
2374 (value_entirely_optimized_out, value_bits_valid): Delete.
2375 (value_copy): Take a VEC copy of the 'optimized_out' field.
2376 (value_primitive_field): Remove special handling of optimized out.
2377 (value_fetch_lazy): Assert that lazy values have no unavailable
2378 regions. Use value_bits_any_optimized_out. Remove some special
2379 handling for optimized out values.
2380 * value.h: Add intro comment about <optimized out> and
2381 <unavailable>.
2382 (struct lval_funcs): Remove check_validity and check_any_valid
2383 fields.
2384 (set_value_optimized_out, value_optimized_out_const): Remove.
2385 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
2386 New declarations.
2387 (value_bits_any_optimized_out): New declaration.
2388 (value_bits_valid): Delete declaration.
2389 (value_available_contents_eq): Rename to ...
2390 (value_contents_eq): ... this, and extend comments.
2391
2392 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2393
2394 Fix -fsanitize=address on unreadable inferior strings.
2395 * valprint.c (val_print_string): Fix access before BUFFER.
2396
2397 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
2398
2399 * target.c (target_struct_size): Remove.
2400 (target_struct_allocsize): Remove.
2401 (DEFAULT_ALLOCSIZE): Remove.
2402 (target_ops_p): New typedef.
2403 (DEF_VEC_P (target_ops_p)): New vector type.
2404 (target_structs): Change type to VEC (target_ops_p).
2405 (add_target_with_completer): Replace "push" code by VEC_safe_push.
2406 (find_default_run_target): Rewrite for loop following changes to
2407 target_structs.
2408
2409 2014-08-19 Joel Brobecker <brobecker@adacore.com>
2410
2411 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
2412 Adjust code accordingly. Adjust function description comment.
2413
2414 2014-08-19 Yao Qi <yao@codesourcery.com>
2415
2416 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
2417 types.
2418
2419 2014-08-19 Alan Modra <amodra@gmail.com>
2420
2421 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
2422 * config.in: Regenerate.
2423 * configure: Regenerate.
2424
2425 2014-08-19 Tom Tromey <tromey@redhat.com>
2426 Gary Benson <gbenson@redhat.com>
2427
2428 * common/common-debug.h: New file.
2429 * common/common-debug.c: Likewise.
2430 * debug.c: Likewise.
2431 * Makefile.in (SFILES): Add common/common-debug.c.
2432 (HFILES_NO_SRCDIR): Add common/common-debug.h.
2433 (COMMON_OBS): Add common-debug.o and debug.o.
2434 (common-debug.o): New rule.
2435 * common/common-defs.h: Include common-debug.h.
2436 * common/agent.c (debug_agent_printf): New function.
2437 (DEBUG_AGENT): Redefine.
2438 * nat/i386-dregs.c (debug_printf): Undefine.
2439
2440 2014-08-19 Gary Benson <gbenson@redhat.com>
2441
2442 * common/common-defs.h: Include print-utils.h.
2443 * utils.h: Do not include print-utils.h.
2444
2445 2014-08-19 Tom Tromey <tromey@redhat.com>
2446 Gary Benson <gbenson@redhat.com>
2447
2448 * common/common-types.h: New file.
2449 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
2450 * common/common-defs.h: Include common-types.h.
2451 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
2452 (ULONGEST): Remove.
2453
2454 2014-08-19 Tom Tromey <tromey@redhat.com>
2455 Gary Benson <gbenson@redhat.com>
2456
2457 * common/errors.h: New file.
2458 * common/errors.c: Likewise.
2459 * Makefile.in (SFILES): Add common/errors.c.
2460 (HFILES_NO_SRCDIR): Add common/errors.h.
2461 (COMMON_OBS): Add errors.o.
2462 (errors.o): New rule.
2463 * common/common-defs.h: Include errors.h.
2464 * utils.h (perror_with_name, error, verror, warning, vwarning):
2465 Don't declare.
2466 * common/common-utils.h: (malloc_failure, internal_error):
2467 Likewise.
2468
2469 2014-08-19 Gary Benson <gbenson@redhat.com>
2470
2471 * utils.c (internal_vproblem): Always print the message.
2472
2473 2014-08-18 Doug Evans <dje@google.com>
2474
2475 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
2476
2477 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2478
2479 * ada-typeprint.c (type_is_full_subrange_of_target_type):
2480 Return 0 if TYPE is dynamic.
2481 (print_range): Add handling of dynamic ranges.
2482
2483 2014-08-18 Keven Boell <keven.boell@intel.com>
2484 Joel Brobecker <brobecker@adacore.com>
2485
2486 * gdbtypes.h (struct main_type): Add field "data_location".
2487 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
2488 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
2489 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
2490 a dynamic data location.
2491 (resolve_dynamic_type): Add DW_AT_data_location handling.
2492 (copy_recursive, copy_type): Copy the data_location information
2493 when present.
2494 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
2495 * value.c (value_from_contents_and_address): Add
2496 DW_AT_data_location handling.
2497
2498 2014-08-18 Keven Boell <keven.boell@intel.com>
2499 Joel Brobecker <brobecker@adacore.com>
2500
2501 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
2502 field "get_object_address".
2503 * dwarf2expr.c (execute_stack_op): Add handling for
2504 DW_OP_push_object_address.
2505 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
2506 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
2507 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
2508 (dwarf_expr_get_obj_addr): New function.
2509 (dwarf_expr_ctx_funcs): Add get_object_address field.
2510 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
2511 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
2512 (dwarf2_evaluate_property): Add parameter "address". Use it.
2513 (needs_get_obj_addr): New function.
2514 (needs_frame_ctx_funcs): Add get_object_address field.
2515 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
2516 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
2517 (resolve_dynamic_array): Likewise.
2518
2519 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2520
2521 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
2522 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
2523 fixed value for records and unions for which some GNAT encodings
2524 are present.
2525
2526 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2527
2528 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
2529 rewrite to avoid "else if" and "else" constructs. Should be
2530 a no-op in practice.
2531
2532 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2533
2534 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
2535 of lexical block.
2536
2537 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
2538
2539 PR c++/17132
2540 * eval.c: Update all calls to find_overload_match.
2541 * valarith.c: Likewise.
2542 (value_user_defined_cpp_op, value_user_defined_op): New
2543 argument NOSIDE. Update all callers.
2544 * valops.c (find_overload_match): New argument NOSIDE.
2545 * value.h (find_overload_match): Update signature.
2546
2547 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
2548
2549 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
2550 'items' methods instead of 'iteritems' method on dictionaries.
2551
2552 2014-08-15 Doug Evans <dje@google.com>
2553
2554 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
2555 closer to use.
2556
2557 2014-08-15 Doug Evans <dje@google.com>
2558
2559 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
2560
2561 2014-08-15 Doug Evans <dje@google.com>
2562
2563 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
2564
2565 2014-08-15 Doug Evans <dje@google.com>
2566
2567 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
2568 unused.
2569
2570 2014-08-15 Eli Zaretskii <eliz@gnu.org>
2571
2572 * dcache.h: Include target.h, to avoid compile time warnings.
2573
2574 2014-08-15 Joel Brobecker <brobecker@adacore.com>
2575
2576 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
2577 frame_info" partial declaration.
2578 * gdbarch.h: Regenerate.
2579
2580 2014-08-15 Yao Qi <yao@codesourcery.com>
2581
2582 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
2583 Add parameter 'decode_for_pst_p'. Callers update.
2584
2585 2014-08-13 Yao Qi <yao@codesourcery.com>
2586
2587 PR build/17104
2588 * configure.ac: Use local variable 'pos'.
2589 * configure: Regenerated.
2590
2591 2014-08-11 Doug Evans <dje@google.com>
2592
2593 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
2594 message, it is redundant with "Reading symbols from ..." message.
2595
2596 2014-08-10 Doug Evans <xdje42@gmail.com>
2597
2598 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
2599
2600 2014-08-09 Yao Qi <yao@codesourcery.com>
2601
2602 PR remote/9053
2603 * remote.c (remote_xfer_partial): Remove dead code.
2604
2605 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2606
2607 * ia64-linux-tdep.c: Include "regset.h".
2608 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
2609 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
2610 (ia64_linux_supply_fpregset): New function.
2611 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
2612 (ia64_linux_regset_from_core_section): New function.
2613 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
2614 method.
2615
2616 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2617
2618 * m68klinux-tdep.c: Include "regset.h".
2619 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
2620 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
2621 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
2622 (m68k_linux_regset_from_core_section): New function.
2623 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
2624 method.
2625
2626 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2627
2628 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
2629 function. Move logic to...
2630 (tilegx_linux_regmap): ... this new register map.
2631 (tilegx_linux_regset): Refer to register map, replace supply
2632 method by regcache_supply_regset, and add collect method.
2633 * tilegx-tdep.h (enum tilegx_regnum): New enum value
2634 TILEGX_FIRST_EASY_REGNUM.
2635
2636 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2637
2638 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
2639 that calls regcache_supply_regset and handles the EPC register
2640 separately. Move main logic to...
2641 (score7_linux_gregmap): ... this new register map.
2642 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
2643 (score7_linux_gregset): Refer to register map. Add collect method.
2644 (score7_linux_regset_from_core_section): Replace
2645 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
2646 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
2647 (struct regset): Delete unused forward declaraction.
2648 (struct pt_regs): Delete structure definition.
2649 (elf_gregset_t): Delete typedef.
2650
2651 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2652
2653 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
2654 (nios2_core_regset): Add collect method.
2655
2656 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2657
2658 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
2659 platform-independent and don't write to read-only input buffer.
2660 (m32r_linux_collect_gregset): New function.
2661 (m32r_linux_gregset): Add collect method.
2662
2663 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2664
2665 * hppa-linux-tdep.c (greg_map): Rename to...
2666 (hppa_linux_gregmap): ... this. Also convert to
2667 regcache_map_entry format.
2668 (hppa_linux_supply_regset): Delete function.
2669 (hppa_linux_supply_fpregset): Delete function. Move logic to...
2670 (hppa_linux_fpregmap): ... this new register map.
2671 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
2672 register map, replace supply method by regcache_supply_regset, and
2673 add collect method regcache_collect_regset.
2674
2675 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2676
2677 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
2678 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
2679 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
2680 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
2681 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
2682 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
2683 (frv_linux_supply_gregset): Replace main logic by call to
2684 regcache_supply_regset, but keep clearing gr32-gr63.
2685 (frv_linux_supply_fpregset): Delete function.
2686 (frv_linux_gregset): Refer to appropriate register map and add
2687 regcache_collect_regset as the collect method.
2688 (frv_linux_fpregset): Likewise. Also exchange the supply method
2689 by regcache_supply_regset.
2690
2691 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2692
2693 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
2694 by call to alpha_supply_int_regs.
2695 (alpha_linux_collect_gregset): New function.
2696 (alpha_linux_supply_fpregset): Replace logic by call to
2697 alpha_supply_fp_regs.
2698 (alpha_linux_collect_fpregset): New function.
2699 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
2700
2701 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2702
2703 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
2704 by call to regcache_collect_regset.
2705 (supply_gregset, supply_fpregset): Call regcache_supply_regset
2706 instead of aarch64_linux_supply_gregset/_fpregset.
2707 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
2708 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
2709 header file instead.
2710 (aarch64_linux_supply_gregset, supply_gregset_from_core)
2711 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
2712 functions. Move logic to ...
2713 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
2714 register maps.
2715 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
2716 refer to new register maps, replace *_regset_from_core by
2717 regcache_supply_regset, and also use regcache_collect_regset.
2718 * aarch64-linux-tdep.h: Include "regset.h".
2719 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
2720 Delete prototypes.
2721 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
2722 macros, moved from C source file.
2723 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
2724 variable declarations.
2725
2726 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2727
2728 * s390-linux-nat.c: Include "regset.h".
2729 (regmap_gregset): Delete macro.
2730 (s390_64_regmap_gregset): New register map for
2731 regcache_supply/_collect_regset.
2732 (s390_64_gregset): New regset.
2733 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
2734 (regmap_fpregset): Delete macro.
2735 (s390_native_supply, s390_native_collect): Delete functions.
2736 (supply_gregset, fill_gregset): Replace s390-specific regmap
2737 handling by a call to regcache_supply/_collect_regset.
2738 (supply_fpregset, fill_fpregset): Call regcache_supply/
2739 _collect_regset instead of s390_native_supply/_collect.
2740 (fetch_regset, store_regset): Likewise. Also change the last
2741 parameter to a regset instead of a regmap.
2742 (s390_linux_fetch_inferior_registers)
2743 (390_linux_store_inferior_registers): Adjust last parameter in
2744 calls to fetch_regset and store_regset.
2745 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
2746 (s390_gregmap): ... this. Also make static const and convert to
2747 regcache_map_entry format.
2748 (s390x_regmap_gregset): Delete.
2749 (s390_regmap_fpregset): Rename to...
2750 (s390_fpregmap): ... this. Make static const and convert to
2751 regcache_map_entry format.
2752 (s390_regmap_upper, s390_regmap_last_break)
2753 (s390x_regmap_last_break, s390_regmap_system_call)
2754 (s390_regmap_tdb): Likewise.
2755 (s390_supply_regset, s390_collect_regset): Remove functions.
2756 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
2757 s390_supply_regset.
2758 (s390_gregset, s390_fpregset, s390_upper_regset)
2759 (s390_last_break_regset, s390x_last_break_regset)
2760 (s390_system_call_regset, s390_tdb_regset): Make global and
2761 replace s390_supply/_collect_regset by regcache_supply/
2762 _collect_regset.
2763 (s390x_gregset): Delete.
2764 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
2765 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
2766 (s390_regmap_fpregset, s390_regmap_last_break)
2767 (s390x_regmap_last_break, s390_regmap_system_call)
2768 (s390_regmap_tdb): Delete global variable declarations.
2769 (s390_gregset, s390_fpregset, s390_last_break_regset)
2770 (s390x_last_break_regset, s390_system_call_regset)
2771 (s390_tdb_regset): New global variable declarations.
2772
2773 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2774
2775 * regcache.c: Include "regset.h".
2776 (regcache_transfer_regset): New local function.
2777 (regcache_supply_regset, regcache_collect_regset): New functions.
2778 * regcache.h (struct regcache_map_entry): New structure.
2779 (REGCACHE_MAP_SKIP): New enum value.
2780 (regcache_supply_regset, regcache_collect_regset): New prototypes.
2781
2782 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2783
2784 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
2785 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
2786 (ppc_linux_collect_gregset ): Likewise.
2787 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
2788 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
2789 (ppc_collect_vrregset): Likewise.
2790 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
2791 Likewise.
2792
2793 2014-08-07 Yao Qi <yao@codesourcery.com>
2794
2795 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
2796 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
2797 * remote.c (remote_read_bytes): Likewise.
2798
2799 2014-08-07 Yao Qi <yao@codesourcery.com>
2800
2801 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
2802
2803 2014-08-07 Yao Qi <yao@codesourcery.com>
2804
2805 PR remote/17230
2806 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
2807 TARGET_XFER_OK instead of 0.
2808
2809 2014-08-07 Gary Benson <gbenson@redhat.com>
2810
2811 * common/common-defs.h: Include errno.h.
2812 * defs.h: Do not include errno.h.
2813 * ada-typeprint.c: Likewise.
2814 * c-typeprint.c: Likewise.
2815 * core-regset.c: Likewise.
2816 * corefile.c: Likewise.
2817 * corelow.c: Likewise.
2818 * event-loop.c: Likewise.
2819 * f-typeprint.c: Likewise.
2820 * gnu-nat.c: Likewise.
2821 * go32-nat.c: Likewise.
2822 * i386gnu-nat.c: Likewise.
2823 * m2-typeprint.c: Likewise.
2824 * nat/linux-btrace.c: Likewise.
2825 * p-typeprint.c: Likewise.
2826 * procfs.c: Likewise.
2827 * remote-sim.c: Likewise.
2828 * rs6000-nat.c: Likewise.
2829 * target.c: Likewise.
2830 * typeprint.c: Likewise.
2831 * ui-file.c: Likewise.
2832 * valops.c: Likewise.
2833 * valprint.c: Likewise.
2834
2835 2014-08-07 Gary Benson <gbenson@redhat.com>
2836
2837 * common/common-defs.h: Include string.h.
2838 * aarch64-tdep.c: Do not include string.h.
2839 * ada-exp.y: Likewise.
2840 * ada-lang.c: Likewise.
2841 * ada-lex.l: Likewise.
2842 * ada-typeprint.c: Likewise.
2843 * ada-valprint.c: Likewise.
2844 * aix-thread.c: Likewise.
2845 * alpha-linux-tdep.c: Likewise.
2846 * alpha-mdebug-tdep.c: Likewise.
2847 * alpha-nat.c: Likewise.
2848 * alpha-osf1-tdep.c: Likewise.
2849 * alpha-tdep.c: Likewise.
2850 * alphanbsd-tdep.c: Likewise.
2851 * amd64-dicos-tdep.c: Likewise.
2852 * amd64-linux-tdep.c: Likewise.
2853 * amd64-nat.c: Likewise.
2854 * amd64-sol2-tdep.c: Likewise.
2855 * amd64fbsd-tdep.c: Likewise.
2856 * amd64obsd-tdep.c: Likewise.
2857 * arch-utils.c: Likewise.
2858 * arm-linux-nat.c: Likewise.
2859 * arm-linux-tdep.c: Likewise.
2860 * arm-tdep.c: Likewise.
2861 * arm-wince-tdep.c: Likewise.
2862 * armbsd-tdep.c: Likewise.
2863 * armnbsd-nat.c: Likewise.
2864 * armnbsd-tdep.c: Likewise.
2865 * armobsd-tdep.c: Likewise.
2866 * avr-tdep.c: Likewise.
2867 * ax-gdb.c: Likewise.
2868 * ax-general.c: Likewise.
2869 * bcache.c: Likewise.
2870 * bfin-tdep.c: Likewise.
2871 * breakpoint.c: Likewise.
2872 * build-id.c: Likewise.
2873 * buildsym.c: Likewise.
2874 * c-exp.y: Likewise.
2875 * c-lang.c: Likewise.
2876 * c-typeprint.c: Likewise.
2877 * c-valprint.c: Likewise.
2878 * charset.c: Likewise.
2879 * cli-out.c: Likewise.
2880 * cli/cli-cmds.c: Likewise.
2881 * cli/cli-decode.c: Likewise.
2882 * cli/cli-dump.c: Likewise.
2883 * cli/cli-interp.c: Likewise.
2884 * cli/cli-logging.c: Likewise.
2885 * cli/cli-script.c: Likewise.
2886 * cli/cli-setshow.c: Likewise.
2887 * cli/cli-utils.c: Likewise.
2888 * coffread.c: Likewise.
2889 * common/agent.c: Likewise.
2890 * common/buffer.c: Likewise.
2891 * common/buffer.h: Likewise.
2892 * common/common-utils.c: Likewise.
2893 * common/filestuff.c: Likewise.
2894 * common/filestuff.c: Likewise.
2895 * common/format.c: Likewise.
2896 * common/print-utils.c: Likewise.
2897 * common/rsp-low.c: Likewise.
2898 * common/signals.c: Likewise.
2899 * common/vec.h: Likewise.
2900 * common/xml-utils.c: Likewise.
2901 * core-regset.c: Likewise.
2902 * corefile.c: Likewise.
2903 * corelow.c: Likewise.
2904 * cp-abi.c: Likewise.
2905 * cp-name-parser.y: Likewise.
2906 * cp-support.c: Likewise.
2907 * cp-valprint.c: Likewise.
2908 * cris-tdep.c: Likewise.
2909 * d-exp.y: Likewise.
2910 * darwin-nat.c: Likewise.
2911 * dbxread.c: Likewise.
2912 * dcache.c: Likewise.
2913 * demangle.c: Likewise.
2914 * dicos-tdep.c: Likewise.
2915 * disasm.c: Likewise.
2916 * doublest.c: Likewise.
2917 * dsrec.c: Likewise.
2918 * dummy-frame.c: Likewise.
2919 * dwarf2-frame.c: Likewise.
2920 * dwarf2loc.c: Likewise.
2921 * dwarf2read.c: Likewise.
2922 * elfread.c: Likewise.
2923 * environ.c: Likewise.
2924 * eval.c: Likewise.
2925 * event-loop.c: Likewise.
2926 * exceptions.c: Likewise.
2927 * exec.c: Likewise.
2928 * expprint.c: Likewise.
2929 * f-exp.y: Likewise.
2930 * f-lang.c: Likewise.
2931 * f-typeprint.c: Likewise.
2932 * f-valprint.c: Likewise.
2933 * fbsd-nat.c: Likewise.
2934 * findcmd.c: Likewise.
2935 * findvar.c: Likewise.
2936 * fork-child.c: Likewise.
2937 * frame.c: Likewise.
2938 * frv-linux-tdep.c: Likewise.
2939 * frv-tdep.c: Likewise.
2940 * gdb.c: Likewise.
2941 * gdb_bfd.c: Likewise.
2942 * gdbarch.c: Likewise.
2943 * gdbarch.sh: Likewise.
2944 * gdbtypes.c: Likewise.
2945 * gnu-nat.c: Likewise.
2946 * gnu-v2-abi.c: Likewise.
2947 * gnu-v3-abi.c: Likewise.
2948 * go-exp.y: Likewise.
2949 * go-lang.c: Likewise.
2950 * go32-nat.c: Likewise.
2951 * guile/guile.c: Likewise.
2952 * guile/scm-auto-load.c: Likewise.
2953 * hppa-hpux-tdep.c: Likewise.
2954 * hppa-linux-nat.c: Likewise.
2955 * hppanbsd-tdep.c: Likewise.
2956 * hppaobsd-tdep.c: Likewise.
2957 * i386-cygwin-tdep.c: Likewise.
2958 * i386-dicos-tdep.c: Likewise.
2959 * i386-linux-tdep.c: Likewise.
2960 * i386-nto-tdep.c: Likewise.
2961 * i386-sol2-tdep.c: Likewise.
2962 * i386-tdep.c: Likewise.
2963 * i386bsd-tdep.c: Likewise.
2964 * i386gnu-nat.c: Likewise.
2965 * i386nbsd-tdep.c: Likewise.
2966 * i386obsd-tdep.c: Likewise.
2967 * i387-tdep.c: Likewise.
2968 * ia64-libunwind-tdep.c: Likewise.
2969 * ia64-linux-nat.c: Likewise.
2970 * inf-child.c: Likewise.
2971 * inf-ptrace.c: Likewise.
2972 * inf-ttrace.c: Likewise.
2973 * infcall.c: Likewise.
2974 * infcmd.c: Likewise.
2975 * inflow.c: Likewise.
2976 * infrun.c: Likewise.
2977 * interps.c: Likewise.
2978 * iq2000-tdep.c: Likewise.
2979 * irix5-nat.c: Likewise.
2980 * jv-exp.y: Likewise.
2981 * jv-lang.c: Likewise.
2982 * jv-typeprint.c: Likewise.
2983 * jv-valprint.c: Likewise.
2984 * language.c: Likewise.
2985 * linux-fork.c: Likewise.
2986 * linux-nat.c: Likewise.
2987 * lm32-tdep.c: Likewise.
2988 * m2-exp.y: Likewise.
2989 * m2-typeprint.c: Likewise.
2990 * m32c-tdep.c: Likewise.
2991 * m32r-linux-nat.c: Likewise.
2992 * m32r-linux-tdep.c: Likewise.
2993 * m32r-rom.c: Likewise.
2994 * m32r-tdep.c: Likewise.
2995 * m68hc11-tdep.c: Likewise.
2996 * m68k-tdep.c: Likewise.
2997 * m68kbsd-tdep.c: Likewise.
2998 * m68klinux-nat.c: Likewise.
2999 * m68klinux-tdep.c: Likewise.
3000 * m88k-tdep.c: Likewise.
3001 * machoread.c: Likewise.
3002 * macrocmd.c: Likewise.
3003 * main.c: Likewise.
3004 * mdebugread.c: Likewise.
3005 * mem-break.c: Likewise.
3006 * memattr.c: Likewise.
3007 * memory-map.c: Likewise.
3008 * mep-tdep.c: Likewise.
3009 * mi/mi-cmd-break.c: Likewise.
3010 * mi/mi-cmd-disas.c: Likewise.
3011 * mi/mi-cmd-env.c: Likewise.
3012 * mi/mi-cmd-stack.c: Likewise.
3013 * mi/mi-cmd-var.c: Likewise.
3014 * mi/mi-cmds.c: Likewise.
3015 * mi/mi-console.c: Likewise.
3016 * mi/mi-getopt.c: Likewise.
3017 * mi/mi-interp.c: Likewise.
3018 * mi/mi-main.c: Likewise.
3019 * mi/mi-parse.c: Likewise.
3020 * microblaze-rom.c: Likewise.
3021 * microblaze-tdep.c: Likewise.
3022 * mingw-hdep.c: Likewise.
3023 * minidebug.c: Likewise.
3024 * minsyms.c: Likewise.
3025 * mips-irix-tdep.c: Likewise.
3026 * mips-linux-tdep.c: Likewise.
3027 * mips-tdep.c: Likewise.
3028 * mips64obsd-tdep.c: Likewise.
3029 * mipsnbsd-tdep.c: Likewise.
3030 * mipsread.c: Likewise.
3031 * mn10300-linux-tdep.c: Likewise.
3032 * mn10300-tdep.c: Likewise.
3033 * monitor.c: Likewise.
3034 * moxie-tdep.c: Likewise.
3035 * mt-tdep.c: Likewise.
3036 * nat/linux-btrace.c: Likewise.
3037 * nat/linux-osdata.c: Likewise.
3038 * nat/linux-procfs.c: Likewise.
3039 * nat/linux-ptrace.c: Likewise.
3040 * nat/linux-waitpid.c: Likewise.
3041 * nbsd-tdep.c: Likewise.
3042 * nios2-linux-tdep.c: Likewise.
3043 * nto-procfs.c: Likewise.
3044 * nto-tdep.c: Likewise.
3045 * objc-lang.c: Likewise.
3046 * objfiles.c: Likewise.
3047 * opencl-lang.c: Likewise.
3048 * osabi.c: Likewise.
3049 * osdata.c: Likewise.
3050 * p-exp.y: Likewise.
3051 * p-lang.c: Likewise.
3052 * p-typeprint.c: Likewise.
3053 * parse.c: Likewise.
3054 * posix-hdep.c: Likewise.
3055 * ppc-linux-nat.c: Likewise.
3056 * ppc-sysv-tdep.c: Likewise.
3057 * ppcfbsd-tdep.c: Likewise.
3058 * ppcnbsd-tdep.c: Likewise.
3059 * ppcobsd-tdep.c: Likewise.
3060 * printcmd.c: Likewise.
3061 * procfs.c: Likewise.
3062 * prologue-value.c: Likewise.
3063 * python/py-auto-load.c: Likewise.
3064 * python/py-gdb-readline.c: Likewise.
3065 * ravenscar-thread.c: Likewise.
3066 * regcache.c: Likewise.
3067 * registry.c: Likewise.
3068 * remote-fileio.c: Likewise.
3069 * remote-m32r-sdi.c: Likewise.
3070 * remote-mips.c: Likewise.
3071 * remote-notif.c: Likewise.
3072 * remote-sim.c: Likewise.
3073 * remote.c: Likewise.
3074 * reverse.c: Likewise.
3075 * rs6000-aix-tdep.c: Likewise.
3076 * ser-base.c: Likewise.
3077 * ser-go32.c: Likewise.
3078 * ser-mingw.c: Likewise.
3079 * ser-pipe.c: Likewise.
3080 * ser-tcp.c: Likewise.
3081 * ser-unix.c: Likewise.
3082 * serial.c: Likewise.
3083 * sh-tdep.c: Likewise.
3084 * sh64-tdep.c: Likewise.
3085 * shnbsd-tdep.c: Likewise.
3086 * skip.c: Likewise.
3087 * sol-thread.c: Likewise.
3088 * solib-dsbt.c: Likewise.
3089 * solib-frv.c: Likewise.
3090 * solib-osf.c: Likewise.
3091 * solib-som.c: Likewise.
3092 * solib-spu.c: Likewise.
3093 * solib-target.c: Likewise.
3094 * solib.c: Likewise.
3095 * somread.c: Likewise.
3096 * source.c: Likewise.
3097 * sparc-nat.c: Likewise.
3098 * sparc-sol2-tdep.c: Likewise.
3099 * sparc-tdep.c: Likewise.
3100 * sparc64-tdep.c: Likewise.
3101 * sparc64fbsd-tdep.c: Likewise.
3102 * sparc64nbsd-tdep.c: Likewise.
3103 * sparcnbsd-tdep.c: Likewise.
3104 * spu-linux-nat.c: Likewise.
3105 * spu-multiarch.c: Likewise.
3106 * spu-tdep.c: Likewise.
3107 * stabsread.c: Likewise.
3108 * stack.c: Likewise.
3109 * std-regs.c: Likewise.
3110 * symfile.c: Likewise.
3111 * symmisc.c: Likewise.
3112 * symtab.c: Likewise.
3113 * target.c: Likewise.
3114 * thread.c: Likewise.
3115 * tilegx-linux-nat.c: Likewise.
3116 * tilegx-tdep.c: Likewise.
3117 * top.c: Likewise.
3118 * tracepoint.c: Likewise.
3119 * tui/tui-command.c: Likewise.
3120 * tui/tui-data.c: Likewise.
3121 * tui/tui-disasm.c: Likewise.
3122 * tui/tui-file.c: Likewise.
3123 * tui/tui-layout.c: Likewise.
3124 * tui/tui-out.c: Likewise.
3125 * tui/tui-regs.c: Likewise.
3126 * tui/tui-source.c: Likewise.
3127 * tui/tui-stack.c: Likewise.
3128 * tui/tui-win.c: Likewise.
3129 * tui/tui-windata.c: Likewise.
3130 * tui/tui-winsource.c: Likewise.
3131 * typeprint.c: Likewise.
3132 * ui-file.c: Likewise.
3133 * ui-out.c: Likewise.
3134 * user-regs.c: Likewise.
3135 * utils.c: Likewise.
3136 * v850-tdep.c: Likewise.
3137 * valarith.c: Likewise.
3138 * valops.c: Likewise.
3139 * valprint.c: Likewise.
3140 * value.c: Likewise.
3141 * varobj.c: Likewise.
3142 * vax-tdep.c: Likewise.
3143 * vaxnbsd-tdep.c: Likewise.
3144 * vaxobsd-tdep.c: Likewise.
3145 * windows-nat.c: Likewise.
3146 * xcoffread.c: Likewise.
3147 * xml-support.c: Likewise.
3148 * xstormy16-tdep.c: Likewise.
3149 * xtensa-linux-nat.c: Likewise.
3150
3151 2014-08-07 Gary Benson <gbenson@redhat.com>
3152
3153 * common/common-defs.h: Include gdb_assert.h.
3154 * aarch64-tdep.c: Do not include gdb_assert.h.
3155 * addrmap.c: Likewise.
3156 * aix-thread.c: Likewise.
3157 * alpha-linux-tdep.c: Likewise.
3158 * alpha-mdebug-tdep.c: Likewise.
3159 * alphanbsd-tdep.c: Likewise.
3160 * amd64-nat.c: Likewise.
3161 * amd64-tdep.c: Likewise.
3162 * amd64bsd-nat.c: Likewise.
3163 * amd64fbsd-nat.c: Likewise.
3164 * amd64fbsd-tdep.c: Likewise.
3165 * amd64nbsd-nat.c: Likewise.
3166 * amd64nbsd-tdep.c: Likewise.
3167 * amd64obsd-nat.c: Likewise.
3168 * amd64obsd-tdep.c: Likewise.
3169 * arch-utils.c: Likewise.
3170 * arm-tdep.c: Likewise.
3171 * armbsd-tdep.c: Likewise.
3172 * auxv.c: Likewise.
3173 * bcache.c: Likewise.
3174 * bfin-tdep.c: Likewise.
3175 * blockframe.c: Likewise.
3176 * breakpoint.c: Likewise.
3177 * bsd-kvm.c: Likewise.
3178 * bsd-uthread.c: Likewise.
3179 * buildsym.c: Likewise.
3180 * c-exp.y: Likewise.
3181 * c-lang.c: Likewise.
3182 * charset.c: Likewise.
3183 * cleanups.c: Likewise.
3184 * cli-out.c: Likewise.
3185 * cli/cli-decode.c: Likewise.
3186 * cli/cli-dump.c: Likewise.
3187 * cli/cli-logging.c: Likewise.
3188 * cli/cli-script.c: Likewise.
3189 * cli/cli-utils.c: Likewise.
3190 * coffread.c: Likewise.
3191 * common/common-utils.c: Likewise.
3192 * common/queue.h: Likewise.
3193 * common/signals.c: Likewise.
3194 * common/vec.h: Likewise.
3195 * complaints.c: Likewise.
3196 * completer.c: Likewise.
3197 * corelow.c: Likewise.
3198 * cp-abi.c: Likewise.
3199 * cp-name-parser.y: Likewise.
3200 * cp-namespace.c: Likewise.
3201 * cp-support.c: Likewise.
3202 * cris-tdep.c: Likewise.
3203 * dbxread.c: Likewise.
3204 * dictionary.c: Likewise.
3205 * doublest.c: Likewise.
3206 * dsrec.c: Likewise.
3207 * dummy-frame.c: Likewise.
3208 * dwarf2-frame-tailcall.c: Likewise.
3209 * dwarf2-frame.c: Likewise.
3210 * dwarf2expr.c: Likewise.
3211 * dwarf2loc.c: Likewise.
3212 * dwarf2read.c: Likewise.
3213 * eval.c: Likewise.
3214 * event-loop.c: Likewise.
3215 * exceptions.c: Likewise.
3216 * expprint.c: Likewise.
3217 * f-valprint.c: Likewise.
3218 * fbsd-nat.c: Likewise.
3219 * findvar.c: Likewise.
3220 * frame-unwind.c: Likewise.
3221 * frame.c: Likewise.
3222 * frv-tdep.c: Likewise.
3223 * gcore.c: Likewise.
3224 * gdb-dlfcn.c: Likewise.
3225 * gdb_bfd.c: Likewise.
3226 * gdbarch.c: Likewise.
3227 * gdbarch.sh: Likewise.
3228 * gdbtypes.c: Likewise.
3229 * gnu-nat.c: Likewise.
3230 * gnu-v3-abi.c: Likewise.
3231 * go-lang.c: Likewise.
3232 * guile/scm-exception.c: Likewise.
3233 * guile/scm-gsmob.c: Likewise.
3234 * guile/scm-lazy-string.c: Likewise.
3235 * guile/scm-math.c: Likewise.
3236 * guile/scm-pretty-print.c: Likewise.
3237 * guile/scm-safe-call.c: Likewise.
3238 * guile/scm-utils.c: Likewise.
3239 * guile/scm-value.c: Likewise.
3240 * h8300-tdep.c: Likewise.
3241 * hppa-hpux-nat.c: Likewise.
3242 * hppa-tdep.c: Likewise.
3243 * hppanbsd-tdep.c: Likewise.
3244 * hppaobsd-tdep.c: Likewise.
3245 * i386-darwin-nat.c: Likewise.
3246 * i386-darwin-tdep.c: Likewise.
3247 * i386-nto-tdep.c: Likewise.
3248 * i386-tdep.c: Likewise.
3249 * i386bsd-nat.c: Likewise.
3250 * i386fbsd-tdep.c: Likewise.
3251 * i386gnu-nat.c: Likewise.
3252 * i386nbsd-tdep.c: Likewise.
3253 * i386obsd-tdep.c: Likewise.
3254 * i387-tdep.c: Likewise.
3255 * ia64-libunwind-tdep.c: Likewise.
3256 * ia64-tdep.c: Likewise.
3257 * inf-ptrace.c: Likewise.
3258 * inf-ttrace.c: Likewise.
3259 * infcall.c: Likewise.
3260 * infcmd.c: Likewise.
3261 * infrun.c: Likewise.
3262 * inline-frame.c: Likewise.
3263 * interps.c: Likewise.
3264 * jv-lang.c: Likewise.
3265 * jv-typeprint.c: Likewise.
3266 * linux-fork.c: Likewise.
3267 * linux-nat.c: Likewise.
3268 * linux-thread-db.c: Likewise.
3269 * m32c-tdep.c: Likewise.
3270 * m32r-linux-nat.c: Likewise.
3271 * m32r-tdep.c: Likewise.
3272 * m68k-tdep.c: Likewise.
3273 * m68kbsd-nat.c: Likewise.
3274 * m68kbsd-tdep.c: Likewise.
3275 * m88k-tdep.c: Likewise.
3276 * machoread.c: Likewise.
3277 * macroexp.c: Likewise.
3278 * macrotab.c: Likewise.
3279 * maint.c: Likewise.
3280 * mdebugread.c: Likewise.
3281 * memory-map.c: Likewise.
3282 * mep-tdep.c: Likewise.
3283 * mi/mi-common.c: Likewise.
3284 * microblaze-tdep.c: Likewise.
3285 * mingw-hdep.c: Likewise.
3286 * mips-linux-nat.c: Likewise.
3287 * mips-linux-tdep.c: Likewise.
3288 * mips-tdep.c: Likewise.
3289 * mips64obsd-tdep.c: Likewise.
3290 * mipsnbsd-tdep.c: Likewise.
3291 * mn10300-linux-tdep.c: Likewise.
3292 * mn10300-tdep.c: Likewise.
3293 * moxie-tdep.c: Likewise.
3294 * mt-tdep.c: Likewise.
3295 * nat/linux-btrace.c: Likewise.
3296 * nat/linux-osdata.c: Likewise.
3297 * nat/linux-ptrace.c: Likewise.
3298 * nat/mips-linux-watch.c: Likewise.
3299 * nios2-linux-tdep.c: Likewise.
3300 * nios2-tdep.c: Likewise.
3301 * objc-lang.c: Likewise.
3302 * objfiles.c: Likewise.
3303 * obsd-nat.c: Likewise.
3304 * opencl-lang.c: Likewise.
3305 * osabi.c: Likewise.
3306 * parse.c: Likewise.
3307 * ppc-linux-nat.c: Likewise.
3308 * ppc-sysv-tdep.c: Likewise.
3309 * ppcfbsd-nat.c: Likewise.
3310 * ppcfbsd-tdep.c: Likewise.
3311 * ppcnbsd-nat.c: Likewise.
3312 * ppcnbsd-tdep.c: Likewise.
3313 * ppcobsd-nat.c: Likewise.
3314 * ppcobsd-tdep.c: Likewise.
3315 * printcmd.c: Likewise.
3316 * procfs.c: Likewise.
3317 * prologue-value.c: Likewise.
3318 * psymtab.c: Likewise.
3319 * python/py-lazy-string.c: Likewise.
3320 * python/py-value.c: Likewise.
3321 * regcache.c: Likewise.
3322 * reggroups.c: Likewise.
3323 * registry.c: Likewise.
3324 * remote-sim.c: Likewise.
3325 * remote.c: Likewise.
3326 * rs6000-aix-tdep.c: Likewise.
3327 * rs6000-tdep.c: Likewise.
3328 * s390-linux-tdep.c: Likewise.
3329 * score-tdep.c: Likewise.
3330 * ser-base.c: Likewise.
3331 * ser-mingw.c: Likewise.
3332 * sh-tdep.c: Likewise.
3333 * sh64-tdep.c: Likewise.
3334 * solib-darwin.c: Likewise.
3335 * solib-spu.c: Likewise.
3336 * solib-svr4.c: Likewise.
3337 * source.c: Likewise.
3338 * sparc-nat.c: Likewise.
3339 * sparc-sol2-tdep.c: Likewise.
3340 * sparc-tdep.c: Likewise.
3341 * sparc64-sol2-tdep.c: Likewise.
3342 * sparc64-tdep.c: Likewise.
3343 * sparc64fbsd-tdep.c: Likewise.
3344 * sparc64nbsd-tdep.c: Likewise.
3345 * sparc64obsd-tdep.c: Likewise.
3346 * sparcnbsd-tdep.c: Likewise.
3347 * sparcobsd-tdep.c: Likewise.
3348 * spu-multiarch.c: Likewise.
3349 * spu-tdep.c: Likewise.
3350 * stabsread.c: Likewise.
3351 * stack.c: Likewise.
3352 * symfile.c: Likewise.
3353 * symtab.c: Likewise.
3354 * target-descriptions.c: Likewise.
3355 * target-memory.c: Likewise.
3356 * target.c: Likewise.
3357 * tic6x-linux-tdep.c: Likewise.
3358 * tic6x-tdep.c: Likewise.
3359 * tilegx-linux-nat.c: Likewise.
3360 * tilegx-tdep.c: Likewise.
3361 * top.c: Likewise.
3362 * tramp-frame.c: Likewise.
3363 * tui/tui-out.c: Likewise.
3364 * tui/tui-winsource.c: Likewise.
3365 * ui-out.c: Likewise.
3366 * user-regs.c: Likewise.
3367 * utils.c: Likewise.
3368 * v850-tdep.c: Likewise.
3369 * valops.c: Likewise.
3370 * value.c: Likewise.
3371 * varobj.c: Likewise.
3372 * vax-nat.c: Likewise.
3373 * xml-syscall.c: Likewise.
3374 * xml-tdesc.c: Likewise.
3375 * xstormy16-tdep.c: Likewise.
3376 * xtensa-linux-nat.c: Likewise.
3377 * xtensa-tdep.c: Likewise.
3378
3379 2014-08-07 Gary Benson <gbenson@redhat.com>
3380
3381 * common/common-defs.h: Include common-utils.h.
3382 * defs.h: Do not include common-utils.h.
3383 * common/gdb_assert.h: Likewise.
3384 * darwin-nat.h: Likewise.
3385 * nat/linux-btrace.c: Likewise.
3386 * target/waitstatus.h: Likewise.
3387
3388 2014-08-07 Gary Benson <gbenson@redhat.com>
3389
3390 * common/common-defs.h: Include ptid.h.
3391 * defs.h: Do not include ptid.h.
3392 * inferior.h: Likewise.
3393 * infrun.h: Likewise.
3394 * nat/linux-btrace.h: Likewise.
3395 * nat/linux-osdata.h: Likewise.
3396 * target/waitstatus.h: Likewise.
3397
3398 2014-08-07 Gary Benson <gbenson@redhat.com>
3399
3400 * common/common-defs.h: Include gdb_locale.h.
3401 * defs.h: Do not include gdb_locale.h.
3402
3403 2014-08-07 Gary Benson <gbenson@redhat.com>
3404
3405 * common/common-defs.h: Include gdb/signals.h.
3406 * defs.h: Do not include gdb/signals.h.
3407
3408 2014-08-07 Gary Benson <gbenson@redhat.com>
3409
3410 * common/common-defs.h: Include pathmax.h.
3411 * defs.h: Do not include pathmax.h.
3412
3413 2014-08-07 Gary Benson <gbenson@redhat.com>
3414
3415 * common/common-defs.h: Include libiberty.h.
3416 * defs.h: Do not include libiberty.h.
3417 * common/queue.h: Likewise.
3418 * cp-name-parser.y: Likewise.
3419 * mi/mi-cmd-catch.c: Likewise.
3420 * python/python.c: Likewise.
3421
3422 2014-08-07 Gary Benson <gbenson@redhat.com>
3423
3424 * common/common-defs.h: Include ansidecl.h.
3425 * defs.h: Do not include ansidecl.h.
3426 * common/buffer.h: Likewise.
3427 * common/common-utils.h: Likewise.
3428
3429 2014-08-07 Gary Benson <gbenson@redhat.com>
3430
3431 * common/common-defs.h: Include stddef.h.
3432 * defs.h: Do not include stddef.h.
3433 * common/common-utils.h: Likewise.
3434 * amd64fbsd-nat.c: Likewise.
3435 * bcache.c: Likewise.
3436 * charset.c: Likewise.
3437 * common/buffer.h: Likewise.
3438 * common/vec.h: Likewise.
3439 * i386bsd-nat.c: Likewise.
3440 * nat/linux-btrace.h: Likewise.
3441 * ppcfbsd-nat.c: Likewise.
3442 * ppcnbsd-tdep.h: Likewise.
3443 * ppcobsd-nat.c: Likewise.
3444 * ppcobsd-tdep.h: Likewise.
3445 * python/py-gdb-readline.c: Likewise.
3446
3447 2014-08-07 Gary Benson <gbenson@redhat.com>
3448
3449 * common/common-defs.h: Include stdarg.h.
3450 * defs.h: Do not include stdarg.h.
3451 * ada-lang.c: Likewise.
3452 * common/common-utils.h: Likewise.
3453 * guile/scm-string.c: Likewise.
3454 * guile/scm-utils.c: Likewise.
3455 * m32c-tdep.c: Likewise.
3456
3457 2014-08-07 Gary Benson <gbenson@redhat.com>
3458
3459 * common/common-defs.h: Include stdlib.h.
3460 * defs.h: Do not include stdlib.h.
3461 * addrmap.c: Likewise.
3462 * bcache.c: Likewise.
3463 * common/buffer.c: Likewise.
3464 * common/common-utils.c: Likewise.
3465 * cp-name-parser.y: Likewise.
3466 * go32-nat.c: Likewise.
3467 * mn10300-linux-tdep.c: Likewise.
3468 * nat/linux-osdata.c: Likewise.
3469 * tui/tui.c: Likewise.
3470 * windows-nat.c: Likewise.
3471
3472 2014-08-07 Gary Benson <gbenson@redhat.com>
3473
3474 * common/common-defs.h: Include stdio.h.
3475 * defs.h: Do not include stdio.h.
3476 * ada-lang.c: Likewise.
3477 * common/buffer.c: Likewise.
3478 * common/common-utils.c: Likewise.
3479 * cp-name-parser.y: Likewise.
3480 * gnu-nat.c: Likewise.
3481 * go32-nat.c: Likewise.
3482 * i386gnu-nat.c: Likewise.
3483 * proc-api.c: Likewise.
3484 * proc-events.c: Likewise.
3485 * proc-flags.c: Likewise.
3486 * proc-why.c: Likewise.
3487 * python/python-internal.h: Likewise.
3488 * target-memory.c: Likewise.
3489 * tui/tui-io.c: Likewise.
3490 * tui/tui.c: Likewise.
3491
3492 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
3493
3494 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
3495 (scan_dyntag_auxv): Same.
3496
3497 2014-08-06 Yao Qi <yao@codesourcery.com>
3498
3499 * amd64-linux-nat.c: Remove duplicated include
3500 "x86-linux-nat.h".
3501 * i386-linux-nat.c: Likewise.
3502
3503 2014-08-06 Yao Qi <yao@codesourcery.com>
3504
3505 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
3506 operand" with "Special opcode" in comments.
3507
3508 2014-08-05 Gary Benson <gbenson@redhat.com>
3509
3510 * interps.c (initialize_interps): Remove prototype.
3511 (interpreter_initialized): Remove static global.
3512 (interp_add): Do not call initialize_interps.
3513 (initialize_interps): Remove function.
3514
3515 2014-08-05 Gary Benson <gbenson@redhat.com>
3516
3517 * utils.c (vwarning): Remove spurious va_end.
3518
3519 2014-08-05 Alan Modra <amodra@gmail.com>
3520
3521 * charset.c (convert_between_encodings): Cast result of obstack_base.
3522 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
3523 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
3524 (read_unwind_info): Use size_t for some locals.
3525 * jit.c (finalize_symtab): Likewise.
3526 * utils.c (hashtab_obstack_allocate): Likewise.
3527 * symmisc.c (print_objfile_statistics): Update format strings.
3528
3529 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3530
3531 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
3532 (Changes in GDB 7.8): ... here.
3533
3534 2014-08-04 Tom Tromey <tromey@redhat.com>
3535
3536 * target.c (set_targetdebug): New function.
3537 (initialize_targets): Pass set_targetdebug when creating "set
3538 debug target".
3539
3540 2014-08-01 Joel Brobecker <brobecker@adacore.com>
3541
3542 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
3543 if detecting a variable-sized field that is not the last field.
3544 Fix struct type length computation.
3545
3546 2014-08-01 Joel Brobecker <brobecker@adacore.com>
3547
3548 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3549 Add debug trace.
3550
3551 2014-08-01 Joel Brobecker <brobecker@adacore.com>
3552
3553 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3554 Remove "+ 8" offset in computation of CHAIN_VMA.
3555
3556 2014-07-31 Doug Evans <dje@google.com>
3557
3558 * inflow.c (child_terminal_inferior): Add comment.
3559 (child_terminal_ours_for_output): Add comment.
3560 (child_terminal_ours): Add comment.
3561 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
3562 (linux_nat_terminal_ours): Add comment.
3563
3564 2014-07-31 Gary Benson <gbenson@redhat.com>
3565
3566 * common/btrace-common.h: Do not include defs.h or server.h.
3567 * nat/mips-linux-watch.h: Likewise.
3568 * gdb-dlfcn.h: Do not include defs.h.
3569 * tracefile.h: Likewise.
3570
3571 2014-07-30 Roland McGrath <mcgrathr@google.com>
3572
3573 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
3574
3575 2014-07-30 Tom Tromey <tromey@redhat.com>
3576
3577 * bsd-kvm.c (bsd_kvm_open): Constify.
3578 * corelow.c (core_open): Constify.
3579 * ctf.c (ctf_open): Constify.
3580 * dbug-rom.c (dbug_open): Constify.
3581 * exec.c (exec_open): Constify.
3582 * m32r-rom.c (m32r_open, mon2000_open): Constify.
3583 * microblaze-rom.c (picobug_open): Constify.
3584 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
3585 Constify.
3586 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
3587 * record-btrace.c (record_btrace_open): Constify.
3588 * record-full.c (record_full_core_open_1, record_full_open_1)
3589 (record_full_open): Constify.
3590 * remote-m32r-sdi.c (m32r_open): Constify.
3591 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
3592 (rockhopper_open, lsi_open): Constify.
3593 * remote-sim.c (gdbsim_open): Constify.
3594 * remote.c (remote_open, extended_remote_open, remote_open_1):
3595 Constify.
3596 * target.h (struct target_ops) <to_open>: Make "arg" const.
3597 * tracefile-tfile.c (tfile_open): Constify.
3598
3599 2014-07-30 Tom Tromey <tromey@redhat.com>
3600
3601 * breakpoint.c (map_breakpoint_numbers): Update.
3602 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
3603 (get_number_const): New function.
3604 (get_number): Rewrite using get_number_const.
3605 (init_number_or_range): Make "string" const.
3606 (number_is_in_list): Make "list" const.
3607 * cli/cli-utils.h (get_number_const): Declare.
3608 (struct get_number_or_range_state) <string, end_ptr>: Now const.
3609 (init_number_or_range, number_is_in_list): Update.
3610 * printcmd.c (map_display_numbers): Update.
3611 * value.c (value_from_history_ref): Constify.
3612 * value.h (value_from_history_ref): Update.
3613
3614 2014-07-30 Tom Tromey <tromey@redhat.com>
3615
3616 * corefile.c (hook_type, call_extra_exec_file_hooks)
3617 (specify_exec_file_hook): Constify.
3618 * exec.c (exec_file_attach): Make "filename" const.
3619 * gdbcore.h (deprecated_exec_file_display_hook)
3620 (specify_exec_file_hook, exec_file_attach): Constify.
3621 * main.c (captured_main): Use catch_command_errors_const.
3622
3623 2014-07-30 Tom Tromey <tromey@redhat.com>
3624
3625 * target.c (open_target): New function.
3626 (add_target_with_completer, add_deprecated_target_alias): Use
3627 set_cmd_sfunc, set_cmd_context.
3628 (debug_to_open): Remove.
3629 (setup_target_debug): Update.
3630
3631 2014-07-30 Yao Qi <yao@codesourcery.com>
3632
3633 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
3634 comments.
3635 * parse.c (exp_iterate): Update comments.
3636
3637 2014-07-30 Gary Benson <gbenson@redhat.com>
3638
3639 * common/common-defs.h: New file.
3640 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
3641 * defs.h: Include common-defs.h.
3642 Do not include config.h or build-gnulib/config.h.
3643
3644 2014-07-30 Gary Benson <gbenson@redhat.com>
3645
3646 * common/common-utils.h: Do not include config.h.
3647 * nat/linux-btrace.h: Likewise.
3648
3649 2014-07-30 Gary Benson <gbenson@redhat.com>
3650
3651 * btrace.c: Include defs.h.
3652 * common/ptid.c: Include defs.h or server.h as appropriate.
3653 * nat/mips-linux-watch.c: Likewise.
3654
3655 2014-07-29 Tom Tromey <tromey@redhat.com>
3656
3657 * target.c (target_is_pushed): Simplify.
3658
3659 2014-07-29 Joel Brobecker <brobecker@adacore.com>
3660
3661 GDB 7.8 released.
3662
3663 2014-07-29 Yao Qi <yao@codesourcery.com>
3664
3665 PR gdb/17206
3666 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
3667
3668 2014-07-28 Doug Evans <xdje42@gmail.com>
3669
3670 PR guile/17203
3671 * guile/scm-param.c (pascm_parameter_defined_p): New function.
3672 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
3673 parameters.
3674
3675 2014-07-28 Will Newton <will.newton@linaro.org>
3676
3677 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
3678 (THUMB2_SET_R7_SIGRETURN2): Likewise.
3679 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
3680 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
3681 (THUMB2_EABI_SYSCALL): Likewise.
3682 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
3683 struct tramp_frame.
3684 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
3685 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
3686
3687 2014-07-27 Doug Evans <xdje42@gmail.com>
3688
3689 * guile/scm-param.c (pascm_print_param_smob): Fix output.
3690
3691 2014-07-27 Doug Evans <xdje42@gmail.com>
3692
3693 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
3694
3695 2014-07-26 Ludovic Courtès <ludo@gnu.org>
3696 Doug Evans <xdje42@gmail.com>
3697
3698 PR guile/17146
3699 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
3700 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
3701 * configure.ac: Try to use guild to compile an scm file, if it fails
3702 then disable guile support.
3703 * configure: Regenerate.
3704 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
3705 GUILE_FILE_LIST.
3706 (GUILE_COMPILED_FILES): New variable.
3707 (GUILE_FILES) Update.
3708 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
3709 (stamp-guile): Compile scm files.
3710 * guile/guile.c (boot_guile_support): New function.
3711 (standard_throw_args_p): New function.
3712 (print_standard_throw_error, print_throw_error): New functions.
3713 (handle_boot_error): New function.
3714 (initialize_scheme_side): Rewrite to call boot_guile_support.
3715 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
3716 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
3717
3718 2014-07-26 Ludovic Courtès <ludo@gnu.org>
3719 Doug Evans <xdje42@gmail.com>
3720
3721 PR guile/17146
3722 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
3723 * guile/lib/gdb/support.scm: New file.
3724 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
3725 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
3726 All uses updated.
3727 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
3728 All uses updated.
3729 (%assert-type): Ditto, and renamed to assert-type.
3730 (%exception-print-style): Delete.
3731
3732 2014-07-26 Doug Evans <xdje42@gmail.com>
3733
3734 PR build/17105
3735 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
3736 * configure: Regenerate.
3737 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
3738 PYTHON_FILES.
3739 (PYTHON_FILES): New variable.
3740 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
3741 (GUILE_FILES): New variable.
3742 (stamp-python, install-python, uninstall-python): Handle empty
3743 file list.
3744 (stamp-guile, install-guile, uninstall-guile): Ditto.
3745
3746 2014-07-26 Doug Evans <xdje42@gmail.com>
3747
3748 PR guile/17177
3749 * guile/lib/gdb.scm (pretty-printers): Export.
3750 (set-pretty-printers!): Export.
3751 * guile/lib/gdb/printing.scm (gdb module): Update.
3752 (prepend-pretty-printer!, append-pretty-printer!): Update.
3753 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
3754 (pretty_printer_list_var): Delete.
3755 (pretty_printer_list): New static global.
3756 (gdbscm_pretty_printers): New function.
3757 (gdbscm_set_pretty_printers_x): New function.
3758 (ppscm_find_pretty_printer_from_gdb): Update.
3759 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
3760 (gdbscm_initialize_pretty_printers): Update.
3761
3762 2014-07-26 Doug Evans <xdje42@gmail.com>
3763
3764 PR 17185
3765 * configure.ac: Add check for header gc/gc.h.
3766 Add check for function setenv.
3767 * configure: Regenerate.
3768 * config.in: Regenerate.
3769 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
3770
3771 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
3772
3773 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
3774 variation in gdbarch matching.
3775
3776 2014-07-25 Tom Tromey <tromey@redhat.com>
3777
3778 * exec.c (using_exec_ops): Remove.
3779 (exec_close_1): Update. Remove extraneous block, reindent.
3780 (add_target_sections): Use target_is_pushed.
3781
3782 2014-07-25 Pedro Alves <palves@redhat.com>
3783
3784 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
3785 * monitor.c (monitor_create_inferior): Likewise.
3786 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
3787 * remote-sim.c (gdbsim_create_inferior): Likewise.
3788 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
3789 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
3790 * windows-nat.c (do_initial_windows_stuff): Likewise.
3791
3792 2014-07-25 Pedro Alves <palves@redhat.com>
3793
3794 * NEWS: Mention signal passing and "signal" command changes.
3795 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
3796 comment.
3797 * breakpoint.c (until_break_command): Adjust clear_proceed_status
3798 call.
3799 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
3800 * infcmd.c (proceed_thread_callback, continue_1, step_once)
3801 (jump_command): Adjust clear_proceed_status call.
3802 (signal_command): Warn if other thread that are resumed have
3803 signals that will be delivered. Adjust clear_proceed_status call.
3804 (until_next_command, finish_command)
3805 (proceed_after_attach_callback, attach_command_post_wait)
3806 (attach_command): Adjust clear_proceed_status call.
3807 * infrun.c (proceed_after_vfork_done): Likewise.
3808 (proceed_after_attach_callback): Adjust comment.
3809 (clear_proceed_status_thread): Clear stop_signal if not in pass
3810 state.
3811 (clear_proceed_status_callback): Delete.
3812 (clear_proceed_status): New 'step' parameter. Only clear the
3813 proceed status of threads the command being prepared is about to
3814 resume.
3815 (proceed): If passed in an explicit signal, override stop_signal
3816 with it. Don't pass the last stop signal to the thread we're
3817 resuming.
3818 (init_wait_for_inferior): Adjust clear_proceed_status call.
3819 (switch_back_to_stepped_thread): Clear the signal if it should not
3820 be passed.
3821 * infrun.h (clear_proceed_status): New 'step' parameter.
3822 (user_visible_resume_ptid): Add comment.
3823 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
3824 signal is in pass state.
3825 * remote.c (append_pending_thread_resumptions): Likewise.
3826 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
3827
3828 2014-07-25 Tom Tromey <tromey@redhat.com>
3829
3830 * target.h (target_stopped_data_address)
3831 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
3832 parentheses.
3833
3834 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
3835
3836 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
3837 comments.
3838 (avr_pointer_to_address): Likewise.
3839
3840 2014-07-24 Tom Tromey <tromey@redhat.com>
3841
3842 * monitor.c (compile_pattern): Update.
3843 * target.h (struct target_ops) <to_shortname, to_longname,
3844 to_doc>: Now const.
3845
3846 2014-07-24 Tom Tromey <tromey@redhat.com>
3847
3848 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
3849 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
3850 (add_info_alias, add_com): Make "doc" const.
3851 (print_doc_line): Make "str" const.
3852 (delete_cmd): Update.
3853 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
3854 (print_doc_line): Update.
3855 * cli/cli-script.c (document_command): Update.
3856 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
3857 (add_com, add_info, add_info_alias): Update.
3858 * guile/scm-cmd.c (cmdscm_destroyer): Update.
3859 * python/py-cmd.c (cmdpy_destroyer): Update.
3860
3861 2014-07-24 Tom Tromey <tromey@redhat.com>
3862
3863 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
3864 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
3865 (help_cmd_list): Constify.
3866 (lookup_cmd): Update.
3867 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
3868 const.
3869 (help_cmd_list, apropos_cmd): Update.
3870 * cli/cli-script.c (show_user): Update.
3871 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
3872 * cli/cli-setshow.h (cmd_show_list): Update.
3873 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
3874 (cmd_show_list): Update.
3875 * guile/scm-cmd.c (cmdscm_destroyer): Update.
3876 * python/py-cmd.c (cmdpy_destroyer): Update.
3877
3878 2014-07-24 Tom Tromey <tromey@redhat.com>
3879
3880 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
3881 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
3882 const.
3883 * command.h (deprecate_cmd): Update.
3884 * maint.c (maintenance_do_deprecate): Add casts.
3885
3886 2014-07-24 Tom Tromey <tromey@redhat.com>
3887
3888 * cli/cli-decode.c (help_cmd): Make parameter "const".
3889 * cli/cli-decode.h (help_cmd): Update.
3890
3891 2014-07-24 Tom Tromey <tromey@redhat.com>
3892
3893 * stack.c (up_silently_base, down_silently_base): Make argument
3894 const.
3895
3896 2014-07-24 Tom Tromey <tromey@redhat.com>
3897
3898 * solib.c (solib_add): Make "pattern" const.
3899 * solib.h (solib_add): Update.
3900
3901 2014-07-24 Tom Tromey <tromey@redhat.com>
3902
3903 * remote.c (remote_serial_open, print_packet, putpkt)
3904 (putpkt_binary): Constify.
3905 * remote.h (putpkt): Update.
3906
3907 2014-07-24 Tom Tromey <tromey@redhat.com>
3908
3909 * monitor.c (monitor_open): Make "args" const.
3910 * monitor.h (monitor_open): Update.
3911
3912 2014-07-24 Tom Tromey <tromey@redhat.com>
3913
3914 * maint.c (match_bfd_flags): Make "string" const.
3915 (print_bfd_section_info): Remove casts.
3916 (print_objfile_section_info): Make "string" const.
3917
3918 2014-07-24 Tom Tromey <tromey@redhat.com>
3919
3920 * inf-child.c (inf_child_open_target): Make "arg" const.
3921 * inf-child.h (inf_child_open_target): Update.
3922
3923 2014-07-24 Tom Tromey <tromey@redhat.com>
3924
3925 * environ.c (unset_in_environ): Make "var" const.
3926 * environ.h (unset_in_environ): Update.
3927
3928 2014-07-24 Tom Tromey <tromey@redhat.com>
3929
3930 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
3931 Make "cmd" const.
3932 (scan_filename_with_cleanup): Likewise.
3933 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
3934 Make arguments const.
3935 (restore_command): Update.
3936
3937 2014-07-24 Pedro Alves <palves@redhat.com>
3938
3939 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
3940
3941 2014-07-24 Tom Tromey <tromey@redhat.com>
3942 Gary Benson <gbenson@redhat.com>
3943
3944 * nat/linux-ptrace.c (additional_flags): New global.
3945 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
3946 additional_flags; don't check GDBSERVER.
3947 (linux_ptrace_set_additional_flags): New function.
3948 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
3949 Declare.
3950 * linux-nat.c (_initialize_linux_nat): Call
3951 linux_ptrace_set_additional_flags.
3952
3953 2014-07-24 Tom Tromey <tromey@redhat.com>
3954
3955 * make-target-delegates (munge_type, write_debugmethod): New
3956 functions.
3957 (debug_names): New global.
3958 ($TARGET_DEBUG_PRINTER): New global.
3959 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
3960 name.
3961 Write debug methods. Generate init_debug_target.
3962 * target-debug.h: New file.
3963 * target-delegates.c: Rebuild.
3964 * target.c: Include target-debug.h.
3965 (debug_target): Hoist definition.
3966 (target_kill, target_get_section_table, target_memory_map)
3967 (target_flash_erase, target_flash_done, target_detach)
3968 (target_disconnect, target_wait, target_resume)
3969 (target_pass_signals, target_program_signals, target_follow_fork)
3970 (target_mourn_inferior, target_search_memory)
3971 (target_thread_address_space, target_close)
3972 (target_find_new_threads, target_core_of_thread)
3973 (target_verify_memory, target_insert_mask_watchpoint)
3974 (target_remove_mask_watchpoint): Remove targetdebug code.
3975 (debug_to_post_attach, debug_to_prepare_to_store)
3976 (debug_to_files_info, debug_to_insert_breakpoint)
3977 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
3978 (debug_to_region_ok_for_hw_watchpoint)
3979 (debug_to_can_accel_watchpoint_condition)
3980 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
3981 (debug_to_watchpoint_addr_within_range)
3982 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
3983 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
3984 (debug_to_terminal_init, debug_to_terminal_inferior)
3985 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
3986 (debug_to_terminal_save_ours, debug_to_terminal_info)
3987 (debug_to_load, debug_to_post_startup_inferior)
3988 (debug_to_insert_fork_catchpoint)
3989 (debug_to_remove_fork_catchpoint)
3990 (debug_to_insert_vfork_catchpoint)
3991 (debug_to_remove_vfork_catchpoint)
3992 (debug_to_insert_exec_catchpoint)
3993 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
3994 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
3995 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
3996 (setup_target_debug): Call init_debug_target.
3997 * target.h (TARGET_DEBUG_PRINTER): New macro.
3998 (struct target_ops) <to_resume, to_wait, to_pass_signals,
3999 to_program_signals>: Use TARGET_DEBUG_PRINTER.
4000
4001 2014-07-24 Gary Benson <gbenson@redhat.com>
4002
4003 * exceptions.h (throw_vfatal): Renamed to...
4004 (throw_vquit): New declaration.
4005 (throw_quit): Likewise.
4006 * exceptions.c (throw_vfatal): Renamed to...
4007 (throw_vquit): New function.
4008 (throw_quit): Likewise.
4009 (throw_error): Call throw_verror rather than throw_it.
4010 * utils.h (vfatal): Removed.
4011 (fatal): Likewise.
4012 * utils.c (vfatal): Removed.
4013 (fatal): Likewise.
4014 (internal_verror): Replaced call to fatal with call to throw_quit.
4015 (quit): Replaced calls to fatal with calls to throw_quit.
4016
4017 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
4018
4019 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
4020 target_read_code.
4021
4022 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
4023
4024 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
4025 less than zero in conditional expression.
4026
4027 2014-07-23 Tom Tromey <tromey@redhat.com>
4028
4029 * make-target-delegates ($ARGS_PART): Match trailing close paren.
4030 ($INTRO_PART): Don't match whitespace.
4031 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
4032 argument matching.
4033 ($METHOD): Add $METHOD_TRAILER.
4034 (trim): Rewrite.
4035 (scan_target_h): New sub.
4036 Change main loop not to collect state.
4037 * target-delegates.c: Rebuild.
4038
4039 2014-07-23 Gary Benson <gbenson@redhat.com>
4040
4041 * cp-support.c (gdb_demangle): Fix build on systems without
4042 sigaltstack.
4043
4044 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4045
4046 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
4047 for reference entry value target data value.
4048
4049 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4050
4051 * stack.c (read_frame_arg): Verify value_optimized_out before calling
4052 value_available_contents_eq.
4053
4054 2014-07-22 Pedro Alves <palves@redhat.com>
4055
4056 * value.c (allocate_optimized_out_value): Don't mark value as
4057 non-lazy.
4058
4059 2014-07-22 Jiong Wang <jiong.wang@arm.com>
4060
4061 * MAINTAINERS (Write After Approval): Update my email address.
4062
4063 2014-07-20 Doug Evans <dje@google.com>
4064
4065 PR server/17147
4066 * remote.c (putpkt_binary): Add text to error message.
4067
4068 2014-07-20 Yao Qi <yao@codesourcery.com>
4069
4070 * eval.c: Remove "Chill" from comments.
4071 * gdbtypes.h: Likewise.
4072 * symtab.h: Likewise.
4073
4074 2014-07-20 Yao Qi <yao@codesourcery.com>
4075
4076 * std-operator.def: Update comments to TERNOP_SLICE.
4077
4078 2014-07-20 Yao Qi <yao@codesourcery.com>
4079
4080 * std-operator.def: Remove BINOP_RANGE.
4081 * breakpoint.c (watchpoint_exp_is_const): Update.
4082 * expprint.c (dump_subexp_body_standard): Likewise.
4083 * eval.c (init_array_element): Remove dead code.
4084 (evaluate_subexp_standard): Likewise.
4085
4086 2014-07-20 Yao Qi <yao@codesourcery.com>
4087
4088 * std-operator.def: Remove BINOP_IN.
4089 * breakpoint.c (watchpoint_exp_is_const): Update.
4090 * eval.c (evaluate_subexp_standard): Likewise.
4091 * expprint.c (dump_subexp_body_standard): Likewise.
4092
4093 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
4094
4095 * microblaze-tdep.c (microblaze_register_names): Add
4096 the rshr and rslr register names.
4097 (microblaze_gdbarch_init): Use of tdesc_has_registers.
4098 Use of tdesc_find_feature. Use of tdesc_data_alloc.
4099 Use of tdesc_numbered_register. Use of
4100 microblaze_register_g_packet_guesses. Use of
4101 tdesc_use_registers. Use of set_gdbarch_register_type.
4102 (microblaze_register_g_packet_guesses): New.
4103 * microblaze-tdep.h (microblaze_reg_num): Add
4104 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
4105 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
4106 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
4107 * features/microblaze-core.xml: New file.
4108 * features/microblaze-stack-protect.xml: New file.
4109 * features/microblaze-with-stack-protect.c: New file.
4110 * features/microblaze-with-stack-protect.xml: New file.
4111 * features/microblaze.xml: New file.
4112 * features/microblaze.c: New file.
4113 * features/Makefile (microblaze-with-stack-protect): Add
4114 microblaze-with-stack-protect microblaze and microblaze-expedite.
4115 * regformats/microblaze-with-stack-protect.dat: New file.
4116 * regformats/microblaze.dat: New file.
4117 * doc/gdb.texinfo (MicroBlaze Features): Added.
4118
4119 2014-07-18 Tom Tromey <tromey@redhat.com>
4120
4121 * exec.c (exec_ops): Now static.
4122 * exec.h (exec_ops): Don't declare.
4123
4124 2014-07-18 Tom Tromey <tromey@redhat.com>
4125
4126 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
4127 to find_target_beneath.
4128 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
4129 find_target_beneath.
4130 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
4131
4132 2014-07-18 Tom Tromey <tromey@redhat.com>
4133
4134 PR gdb/17130:
4135 * utils.c (quit): Use target_supports_terminal_ours.
4136 * target.h (target_supports_terminal_ours): Declare.
4137 * target.c (target_supports_delete_record): Don't check
4138 to_delete_record against NULL.
4139 (target_supports_terminal_ours): New function.
4140
4141 2014-07-18 Tom Tromey <tromey@redhat.com>
4142
4143 PR gdb/17130:
4144 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
4145 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
4146 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
4147 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
4148 * windows-nat.c (windows_xfer_partial): Always delegate.
4149 * record-btrace.c (record_btrace_xfer_partial): Simplify
4150 delegation.
4151 (record_btrace_fetch_registers, record_btrace_store_registers)
4152 (record_btrace_prepare_to_store, record_btrace_resume)
4153 (record_btrace_wait, record_btrace_find_new_threads)
4154 (record_btrace_thread_alive): Likewise.
4155 * procfs.c (procfs_xfer_partial): Always delegate.
4156 * corelow.c (core_xfer_partial): Always delegate.
4157 * sol-thread.c (sol_find_new_threads): Simplify delegation.
4158
4159 2014-07-18 Tom Tromey <tromey@redhat.com>
4160
4161 * exec.c (exec_make_note_section): Move earlier.
4162
4163 2014-07-17 Doug Evans <dje@google.com>
4164
4165 PR gdb/17170
4166 * maint.c (count_symtabs_and_blocks): Handle NULL
4167 current_program_space.
4168 (report_command_stats): Check global enabled flag in addition to
4169 recorded enabled flag.
4170 (make_command_stats_cleanup): Handle msg_type == 0, startup.
4171
4172 2014-07-16 Pedro Alves <palves@redhat.com>
4173
4174 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
4175
4176 2014-07-16 Tom Tromey <tromey@redhat.com>
4177
4178 * target.h (struct target_ops) <to_delete_record>: Reformat
4179 comment.
4180
4181 2014-07-16 Tom Tromey <tromey@redhat.com>
4182
4183 * target-delegates.c: Rebuild.
4184
4185 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
4186
4187 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
4188 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
4189 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
4190 (avr_pointer_to_address): Likewise.
4191 (avr_address_class_type_flags): New function.
4192 (avr_address_class_type_flags_to_name): Likewise.
4193 (avr_address_class_name_to_type_flags): Likewise.
4194 (avr_gdbarch_init): Set address_class_type_flags,
4195 address_class_type_flags_to_name and
4196 address_class_name_to_type_flags.
4197
4198 2014-07-15 Pedro Alves <palves@redhat.com>
4199
4200 * linux-nat.c (kill_callback): Save errno and work with saved
4201 copy.
4202
4203 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
4204
4205 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
4206
4207 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4208
4209 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
4210 breakpoint support correctly.
4211
4212 2014-07-14 Pedro Alves <palves@redhat.com>
4213
4214 * utils.c (prompt_for_continue): Call target_terminal_ours.
4215
4216 2014-07-14 Pedro Alves <palves@redhat.com>
4217
4218 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
4219 catch_errors. Don't re-enable stdin or notify observers where,
4220 and rethrow error.
4221 (fetch_inferior_event_wrapper): Delete.
4222
4223 2014-07-14 Pedro Alves <palves@redhat.com>
4224
4225 PR gdb/17072
4226 * top.c: Include "inf-loop.h".
4227 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
4228 field.
4229 (gdb_readline_wrapper_cleanup): Make the target async again, if it
4230 was async before.
4231 (gdb_readline_wrapper): Store whether the target is async, and
4232 make it sync.
4233
4234 2014-07-14 Pedro Alves <palves@redhat.com>
4235
4236 PR gdb/17072
4237 * top.c (gdb_readline_wrapper_line): Tweak comment.
4238 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
4239 the input handler callback.
4240
4241 2014-07-14 Pedro Alves <palves@redhat.com>
4242
4243 PR gdb/17072
4244 * main.c: Include event-top.h.
4245 (handle_command_errors): New function.
4246 (catch_command_errors, catch_command_errors_const): Use it.
4247
4248 2014-07-14 Pedro Alves <palves@redhat.com>
4249
4250 * exceptions.c (catch_command_errors, catch_command_errors_const):
4251 Moved to main.c.
4252 * exceptions.h (catch_command_errors_ftype)
4253 (catch_command_errors_const_ftype): Moved to main.c.
4254 (catch_command_errors, catch_command_errors_const): Delete
4255 declarations.
4256 * main.c (catch_command_errors_ftype)
4257 (catch_command_errors_const_ftype): Moved here from exceptions.h.
4258 (catch_command_errors, catch_command_errors_const)): Moved here
4259 from exceptions.c and make static.
4260
4261 2014-07-14 Pedro Alves <palves@redhat.com>
4262
4263 * exceptions.c (print_any_exception): Delete.
4264 (catch_exceptions_with_msg): Use exception_print instead of
4265 print_any_exception.
4266 (catch_errors): Use exception_fprintf instead of
4267 print_any_exception.
4268 (catch_command_errors, catch_command_errors_const): Use
4269 exception_print instead of print_any_exception.
4270
4271 2014-07-14 Pedro Alves <palves@redhat.com>
4272
4273 * infcall.c (run_inferior_call): Set 'sync_execution' while
4274 running the inferior call.
4275
4276 2014-07-14 Pedro Alves <palves@redhat.com>
4277
4278 * value.c (value_contents_equal): Delete function.
4279 * value.h (value_contents_equal): Delete declaration.
4280
4281 2014-07-14 Tom Tromey <tromey@redhat.com>
4282
4283 PR exp/17106:
4284 * gdbtypes.c (is_dynamic_type_internal): New function, from
4285 is_dynamic_type.
4286 (is_dynamic_type): Rewrite.
4287 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
4288 (resolve_dynamic_struct): Likewise.
4289 (resolve_dynamic_type_internal): New function, from
4290 resolve_dynamic_type.
4291 (resolve_dynamic_type): Rewrite.
4292
4293 2014-07-14 Tom Tromey <tromey@redhat.com>
4294
4295 * target.c (target_require_runnable): Also check record_stratum.
4296 Update comment.
4297
4298 2014-07-11 Yao Qi <yao@codesourcery.com>
4299
4300 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
4301 thumb_instruction_restores_sp return true.
4302
4303 2014-07-11 Yao Qi <yao@codesourcery.com>
4304
4305 * arm-tdep.c (thumb_instruction_restores_sp): New function.
4306 (thumb_in_function_epilogue_p): Call
4307 thumb_instruction_restores_sp.
4308
4309 2014-07-11 Yao Qi <yao@codesourcery.com>
4310
4311 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
4312 'add sp, #imm'.
4313 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
4314
4315 2014-07-11 Gary Benson <gbenson@redhat.com>
4316
4317 * amd64-linux-nat.c (gdbcore.h): Remove include.
4318 (regset.h): Likewise.
4319 (nat/linux-btrace.h): Likewise.
4320 (btrace.h): Likewise.
4321 (gdb_assert.h): Likewise.
4322 (string.h): Likewise.
4323 (sys/uio.h): Likewise.
4324 (sys/debugreg.h): Likewise.
4325 (sys/syscall.h): Likewise.
4326 (sys/procfs.h): Likewise.
4327 (sys/user.h): Likewise.
4328 (asm/ptrace.h): Likewise.
4329 (i386-nat.h): Likewise.
4330 * i386-linux-nat.c (i386-nat.h): Likewise.
4331 (regset.h): Likewise.
4332 (target.h): Likewise.
4333 (linux-nat.h): Likewise.
4334 (nat/linux-btrace.h): Likewise.
4335 (btrace.h): Likewise.
4336 (gdb_assert.h): Likewise.
4337 (string.h): Likewise.
4338 (sys/uio.h): Likewise.
4339 (sys/user.h): Likewise.
4340 (sys/procfs.h): Likewise.
4341 (sys/reg.h): Likewise.
4342 (sys/debugreg.h): Likewise.
4343 (ORIG_EAX): Remove definition.
4344
4345 2014-07-11 Gary Benson <gbenson@redhat.com>
4346
4347 * i386-linux-nat.h: New file.
4348 * x86-linux-nat.h: Likewise.
4349 * x86-linux-nat.c: Likewise.
4350 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
4351 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
4352 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4353 * amd64-linux-nat.c (x86-linux-nat.h): New include.
4354 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
4355 (PTRACE_SETREGSET): Likewise.
4356 (arch_lwp_info): Now in x86-linux-nat.c.
4357 (have_ptrace_getregset): Now in x86-linux-nat.h.
4358 (x86_linux_dr_get): Now in x86-linux-nat.c.
4359 (x86_linux_dr_set): Likewise.
4360 (x86_linux_dr_get_addr): Likewise.
4361 (x86_linux_dr_get_control): Likewise.
4362 (x86_linux_dr_get_status): Likewise.
4363 (update_debug_registers_callback): Likewise.
4364 (x86_linux_dr_set_control): Likewise.
4365 (x86_linux_dr_set_addr): Likewise.
4366 (x86_linux_prepare_to_resume): Likewise.
4367 (x86_linux_new_thread): Likewise.
4368 (x86_linux_new_fork): Likewise.
4369 (x86_linux_get_thread_area): Likewise.
4370 (super_post_startup_inferior): Likewise.
4371 (x86_linux_child_post_startup_inferior): Likewise.
4372 (AMD64_LINUX_USER64_CS): Likewise.
4373 (AMD64_LINUX_X32_DS): Likewise.
4374 (x86_linux_read_description): Likewise.
4375 (x86_linux_enable_btrace): Likewise.
4376 (x86_linux_disable_btrace): Likewise.
4377 (x86_linux_teardown_btrace): Likewise.
4378 (x86_linux_read_btrace): Likewise.
4379 (x86_linux_create_target): Likewise.
4380 (x86_linux_add_target): Likewise.
4381 * i386-linux-nat.c (x86-linux-nat.h): New include.
4382 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
4383 (PTRACE_SETREGSET): Likewise.
4384 (arch_lwp_info): Now in x86-linux-nat.c.
4385 (have_ptrace_getregset): Now in x86-linux-nat.h.
4386 (x86_linux_dr_get): Now in x86-linux-nat.c.
4387 (x86_linux_dr_set): Likewise.
4388 (x86_linux_dr_get_addr): Likewise.
4389 (x86_linux_dr_get_control): Likewise.
4390 (x86_linux_dr_get_status): Likewise.
4391 (update_debug_registers_callback): Likewise.
4392 (x86_linux_dr_set_control): Likewise.
4393 (x86_linux_dr_set_addr): Likewise.
4394 (x86_linux_prepare_to_resume): Likewise.
4395 (x86_linux_new_thread): Likewise.
4396 (x86_linux_new_fork): Likewise.
4397 (x86_linux_get_thread_area): Likewise.
4398 (super_post_startup_inferior): Likewise.
4399 (x86_linux_child_post_startup_inferior): Likewise.
4400 (AMD64_LINUX_USER64_CS): Likewise.
4401 (AMD64_LINUX_X32_DS): Likewise.
4402 (x86_linux_read_description): Likewise.
4403 (x86_linux_enable_btrace): Likewise.
4404 (x86_linux_disable_btrace): Likewise.
4405 (x86_linux_teardown_btrace): Likewise.
4406 (x86_linux_read_btrace): Likewise.
4407 (x86_linux_create_target): Likewise.
4408 (x86_linux_add_target): Likewise.
4409
4410 2014-07-11 Gary Benson <gbenson@redhat.com>
4411
4412 * amd64-linux-nat.c: Comment and whitespace changes.
4413 * i386-linux-nat.c: Comment and whitespace changes.
4414
4415 2014-07-11 Gary Benson <gbenson@redhat.com>
4416
4417 * amd64-linux-nat.c (x86_linux_create_target): New function.
4418 (x86_linux_add_target): Likewise.
4419 (_initialize_amd64_linux_nat): Delegate to the above new functions.
4420 * i386-linux-nat.c (x86_linux_create_target): New function.
4421 (x86_linux_add_target): Likewise.
4422 (_initialize_i386_linux_nat): Delegate to the above new functions.
4423
4424 2014-07-11 Gary Benson <gbenson@redhat.com>
4425
4426 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
4427 (ps_get_thread_area): Delegate to the above in 32-bit mode.
4428 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
4429 (ps_get_thread_area): Delegate to the above.
4430
4431 2014-07-11 Gary Benson <gbenson@redhat.com>
4432
4433 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
4434 x86_linux_read_description. All uses updated. amd64-specific
4435 code conditionalized. Conditionalized i386-specific code added.
4436 Redundant cast removed.
4437 * i386-linux-nat.c (i386_linux_read_description): Renamed to
4438 x86_linux_read_description. All uses updated. i386-specific
4439 code conditionalized. Conditionalized amd64-specific code added.
4440 One sizeof replaced with the actual type it is describing.
4441
4442 2014-07-11 Gary Benson <gbenson@redhat.com>
4443
4444 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
4445 x86_linux_dr_get. All uses updated.
4446 (amd64_linux_dr_set): Renamed to
4447 x86_linux_dr_set. All uses updated.
4448 (amd64_linux_dr_get_addr): Renamed to
4449 x86_linux_dr_get_addr. All uses updated.
4450 (amd64_linux_dr_get_control): Renamed to
4451 x86_linux_dr_get_control. All uses updated.
4452 (amd64_linux_dr_get_status): Renamed to
4453 x86_linux_dr_get_status. All uses updated.
4454 (amd64_linux_dr_set_control): Renamed to
4455 x86_linux_dr_set_control. All uses updated.
4456 (amd64_linux_dr_set_addr): Renamed to
4457 x86_linux_dr_set_addr. All uses updated.
4458 (amd64_linux_prepare_to_resume): Renamed to
4459 x86_linux_prepare_to_resume. All uses updated.
4460 (amd64_linux_new_thread): Renamed to
4461 x86_linux_new_thread. All uses updated.
4462 (amd64_linux_new_fork): Renamed to
4463 x86_linux_new_fork. All uses updated.
4464 (amd64_linux_child_post_startup_inferior): Renamed to
4465 x86_linux_child_post_startup_inferior. All uses updated.
4466 (amd64_linux_enable_btrace): Renamed to
4467 x86_linux_enable_btrace. All uses updated.
4468 (amd64_linux_disable_btrace): Renamed to
4469 x86_linux_disable_btrace. All uses updated.
4470 (amd64_linux_teardown_btrace): Renamed to
4471 x86_linux_teardown_btrace. All uses updated.
4472 (amd64_linux_read_btrace): Renamed to
4473 x86_linux_read_btrace. All uses updated.
4474 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
4475 x86_linux_dr_get. All uses updated.
4476 (i386_linux_dr_set): Renamed to
4477 x86_linux_dr_set. All uses updated.
4478 (i386_linux_dr_get_addr): Renamed to
4479 x86_linux_dr_get_addr. All uses updated.
4480 (i386_linux_dr_get_control): Renamed to
4481 x86_linux_dr_get_control. All uses updated.
4482 (i386_linux_dr_get_status): Renamed to
4483 x86_linux_dr_get_status. All uses updated.
4484 (i386_linux_dr_set_control): Renamed to
4485 x86_linux_dr_set_control. All uses updated.
4486 (i386_linux_dr_set_addr): Renamed to
4487 x86_linux_dr_set_addr. All uses updated.
4488 (i386_linux_prepare_to_resume): Renamed to
4489 x86_linux_prepare_to_resume. All uses updated.
4490 (i386_linux_new_thread): Renamed to
4491 x86_linux_new_thread. All uses updated.
4492 (i386_linux_new_fork): Renamed to
4493 x86_linux_new_fork. All uses updated.
4494 (i386_linux_child_post_startup_inferior): Renamed to
4495 x86_linux_child_post_startup_inferior. All uses updated.
4496 (i386_linux_enable_btrace): Renamed to
4497 x86_linux_enable_btrace. All uses updated.
4498 (i386_linux_disable_btrace): Renamed to
4499 x86_linux_disable_btrace. All uses updated.
4500 (i386_linux_teardown_btrace): Renamed to
4501 x86_linux_teardown_btrace. All uses updated.
4502 (i386_linux_read_btrace): Renamed to
4503 x86_linux_read_btrace. All uses updated.
4504
4505 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
4506
4507 * remote.c (extended_remote_post_attach): New function.
4508 (init_extended_remote_ops): Install it as to_post_attach method.
4509
4510 2014-07-09 Pedro Alves <palves@redhat.com>
4511
4512 * infcmd.c (attach_command_post_wait): Don't call
4513 target_terminal_inferior here.
4514 (attach_command): Call it here instead.
4515
4516 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4517
4518 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
4519 field.
4520 * c-varobj.c (c_is_path_expr_parent): New function, moved core
4521 from varobj.c, with additional checks.
4522 (c_varobj_ops): Fill in is_path_expr_parent field.
4523 (cplus_varobj_ops): Fill in is_path_expr_parent field.
4524 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
4525 field.
4526 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
4527 ops method.
4528 (varobj_default_is_path_expr_parent): New function.
4529 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
4530 (varobj_default_is_path_expr_parent): Declare new function.
4531
4532 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
4533
4534 * infcmd.c (finish_backward): Turn internal error into normal error.
4535
4536 2014-07-07 Pedro Alves <palves@redhat.com>
4537
4538 PR gdb/17096
4539 * remote.c (async_handle_remote_sigint)
4540 (async_handle_remote_sigint_twice): Call
4541 gdb_call_async_signal_handler instead of
4542 mark_async_signal_handler.
4543
4544 2014-07-07 Tom Tromey <tromey@redhat.com>
4545
4546 * target-delegates.c: Rebuild.
4547 * target.c (target_info_record): Remove.
4548 * record.c (info_record_command): Unconditionally call
4549 to_info_record.
4550 * target.h (struct target_ops) <to_info_record>: Use
4551 TARGET_DEFAULT_IGNORE.
4552 (target_info_record): Remove.
4553
4554 2014-07-07 Tom Tromey <tromey@redhat.com>
4555
4556 * target.h (struct target_ops) <to_get_thread_local_address>: Use
4557 TARGET_DEFAULT_NORETURN.
4558 * target.c (generic_tls_error): New function.
4559 (target_translate_tls_address): Don't search target stack.
4560 * target-delegates.c: Rebuild.
4561 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
4562 stack.
4563 * linux-thread-db.c (thread_db_get_thread_local_address):
4564 Unconditionally call beneath target.
4565
4566 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
4567
4568 * cli/cli-logging.c (pop_output_files): Assign targerr to
4569 gdb_stdtargerr.
4570
4571 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
4572
4573 * MAINTAINERS (Write After Approval): Update my email address.
4574
4575 2014-07-02 Gary Benson <gbenson@redhat.com>
4576
4577 * proc-service.c (ps_xfer_memory): Update comment.
4578 (ps_pstop): Remove unused function.
4579 (ps_pcontinue): Likewise.
4580 (ps_lstop): Likewise.
4581 (ps_lcontinue): Likewise.
4582 (ps_lgetxregsize): Likewise.
4583 (ps_lgetxregs): Likewise.
4584 (ps_lsetxregs): Likewise.
4585 (ps_plog): Likewise.
4586 (ps_ptread): Likewise.
4587 (ps_ptwrite): Likewise.
4588
4589 2014-07-01 Mark Wielaard <mjw@redhat.com>
4590
4591 * dwarf2read.c (add_array_cv_type): New function.
4592 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
4593 (read_tag_volatile_type): Likewise.
4594
4595 2014-07-01 Tom Tromey <tromey@redhat.com>
4596
4597 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
4598 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
4599 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
4600 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
4601 * command.h (cmd_cfunc_ftype): Move earlier.
4602 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
4603 (add_com, add_info): Use cmd_cfunc_ftype.
4604
4605 2014-06-30 Tom Tromey <tromey@redhat.com>
4606
4607 * symtab.c (operator_chars): Make parameters and return type
4608 const.
4609 (file_matches): Make "files" const.
4610 (struct search_symbols_data) <files>: Now const.
4611 (search_symbols): Make "regexp" and "files" parameters const.
4612 Update.
4613 (symtab_symbol_info): Remove cast.
4614 (rbreak_command): Update.
4615 * symtab.h (search_symbols): Update.
4616
4617 2014-06-27 Yao Qi <yao@codesourcery.com>
4618
4619 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
4620 Change parameter type to 'struct thread_info *'. Caller
4621 updated.
4622 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
4623 Update declaration.
4624 * dummy-frame.c (struct dummy_frame_id): New.
4625 (dummy_frame_id_eq): New function.
4626 (struct dummy_frame) <id>: Change its type to 'struct
4627 dummy_frame_id'.
4628 (dummy_frame_push): Add parameter ptid and save it in
4629 dummy_frame_id.
4630 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
4631 inferior_ptid.
4632 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
4633 to inferior_ptid.
4634 (lookup_dummy_frame): Change parameter type to 'struct
4635 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
4636 instead of frame_id_eq.
4637 (dummy_frame_pop): Add parameter ptid. Callers updated.
4638 Update comments. Compose dummy_frame_id and pass it to
4639 lookup_dummy_frame.
4640 (dummy_frame_discard): Add parameter ptid.
4641 (dummy_frame_sniffer): Compose dummy_frame_id and call
4642 dummy_frame_id_eq instead of frame_id_eq.
4643 (fprint_dummy_frames): Print ptid.
4644 * dummy-frame.h: Remove comments.
4645 (dummy_frame_push): Add ptid in declaration.
4646 (dummy_frame_pop, dummy_frame_discard): Likewise.
4647
4648 2014-06-26 Tom Tromey <tromey@redhat.com>
4649
4650 * cli/cli-cmds.c (error_no_arg): Make "why" const.
4651 * command.h (error_no_arg): Update.
4652
4653 2014-06-26 Tom Tromey <tromey@redhat.com>
4654
4655 * cli/cli-setshow.c (do_set_command): Make "arg" const.
4656 (do_show_command): Make "arg" const.
4657 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
4658
4659 2014-06-26 Tom Tromey <tromey@redhat.com>
4660
4661 * record-full.c (record_full_get_bookmark): Make "args" const.
4662 (record_full_goto_bookmark): Make "raw_bookmark" const.
4663 * record.c (record_goto): New function.
4664 (cmd_record_goto): Use it. Now static.
4665 * record.h (record_goto): Declare.
4666 (cmd_record_goto): Remove declaration.
4667 * target-delegates.c: Rebuild.
4668 * target.h (struct target_ops) <to_get_bookmark,
4669 to_goto_bookmark>: Make parameter const.
4670
4671 2014-06-26 Tom Tromey <tromey@redhat.com>
4672
4673 * defs.h (generic_load): Update.
4674 * m32r-rom.c (m32r_load_gen): Make "filename" const.
4675 * monitor.c (monitor_load): Make "args" const.
4676 * remote-m32r-sdi.c (m32r_load): Make "args" const.
4677 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
4678 const.
4679 (mips_load): Make "file" const.
4680 * remote-sim.c (gdbsim_load): Make "args" const.
4681 * remote.c (remote_load): Make "name" const.
4682 * symfile.c (generic_load): Make "args" const.
4683 * target-delegates.c: Rebuild.
4684 * target.c (target_load): Make "arg" const.
4685 (debug_to_load): Make "args" const.
4686 * target.h (struct target_ops) <to_load>: Make parameter const.
4687 (target_load): Update.
4688
4689 2014-06-26 Tom Tromey <tromey@redhat.com>
4690
4691 PR symtab/16902:
4692 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
4693 (dwarf2_physname, read_partial_die)
4694 (guess_partial_die_structure_name, fixup_partial_die)
4695 (guess_full_die_structure_name, anonymous_struct_prefix)
4696 (dwarf2_name): Use per-BFD obstack.
4697
4698 2014-06-26 Yao Qi <yao@codesourcery.com>
4699
4700 * dummy-frame.c (dummy_frame_sniffer): Move local variables
4701 dummyframe and this_id into inner block below.
4702
4703 2014-06-26 Yao Qi <yao@codesourcery.com>
4704
4705 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
4706 with "signal_pass[0]" in the initialization of signal_pass.
4707
4708 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4709
4710 * record-btrace.c (record_btrace_generating_corefile)
4711 (record_btrace_prepare_to_generate_core)
4712 (record_btrace_done_generating_core): New.
4713 (record_btrace_xfer_partial, record_btrace_fetch_registers)
4714 (record_btrace_store_registers, record_btrace_prepare_to_store):
4715 Forward request when generating a core file.
4716 (record_btrace_open): Set record_btrace_generating_corefile to zero.
4717 (init_record_btrace_ops): Set to_prepare_to_generate_core and
4718 to_done_generating_core.
4719
4720 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4721
4722 * target.h (target_ops) <to_prepare_to_generate_core>
4723 <to_done_generating_core>: New.
4724 (target_prepare_to_generate_core, target_done_generating_core): New.
4725 * target.c (target_prepare_to_generate_core)
4726 (target_done_generating_core): New.
4727 * target-delegates.c: Regenerate.
4728 * gcore.c: (write_gcore_file): Rename to ...
4729 (write_gcore_file_1): ...this.
4730 (write_gcore_file): Call target_prepare_to_generate_core
4731 and target_done_generating_core.
4732
4733 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4734
4735 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
4736 * gcore.c (write_gcore_file): Free memory returned from
4737 make_corefile_notes.
4738 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
4739 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
4740
4741 2014-06-24 Yao Qi <yao@codesourcery.com>
4742
4743 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
4744 (arm_linux_init_abi): Set skip_trampoline_code with
4745 gdbarch_skip_trampoline_code instead of
4746 find_solib_trampoline_target.
4747
4748 2014-06-24 Yao Qi <yao@codesourcery.com>
4749
4750 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
4751 arm_skip_bx_reg returns non-zero.
4752
4753 2014-06-24 Yao Qi <yao@codesourcery.com>
4754
4755 * arm-tdep.c (arm_skip_bx_reg): New function.
4756 (arm_skip_stub): Call arm_skip_bx_reg.
4757
4758 2014-06-23 Don Breazeal <donb@codesourcery.com>
4759
4760 * MAINTAINERS: Add myself as write-after-approval maintainer.
4761
4762 2014-06-23 Pedro Alves <palves@redhat.com>
4763
4764 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
4765 DR_CONTROL before setting DR0..DR3.
4766 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
4767 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
4768 bits of DR_CONTROL related to the debug register slot being
4769 disabled. If all slots are vacant, clear local slowdown as well,
4770 and assert DR_CONTROL is 0.
4771
4772 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
4773
4774 * python/lib/gdb/command/xmethods.py
4775 (get_method_matchers_in_loci): Lookup xmethod matchers in the
4776 current progspace only if the string "progspace" matches LOCUS_RE.
4777
4778 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4779
4780 Fix --with-system-readline with readline-6.3 patch 5.
4781 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
4782 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
4783 types.
4784
4785 2014-06-20 Tom Tromey <tromey@redhat.com>
4786
4787 * dwarf2read.c (dw2_get_real_path): Use correct type in
4788 OBSTACK_CALLOC.
4789 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
4790
4791 2014-06-20 Gary Benson <gbenson@redhat.com>
4792
4793 * common/gdb_thread_db.h: Moved to nat. All includes updated.
4794 * common/glibc_thread_db.h: Likewise.
4795 * common/i386-cpuid.h: Likewise.
4796 * common/i386-gcc-cpuid.h: Likewise.
4797 * common/linux-btrace.h: Likewise.
4798 * common/linux-osdata.h: Likewise.
4799 * common/linux-procfs.h: Likewise.
4800 * common/linux-ptrace.h: Likewise.
4801 * common/mips-linux-watch.h: Likewise.
4802 * common/linux-btrace.c: Moved to nat.
4803 * common/linux-osdata.c: Likewise.
4804 * common/linux-procfs.c: Likewise.
4805 * common/linux-ptrace.c: Likewise.
4806 * common/mips-linux-watch.c: Likewise.
4807 * nat/gdb_thread_db.h: Moved from common.
4808 * nat/glibc_thread_db.h: Likewise.
4809 * nat/i386-cpuid.h: Likewise.
4810 * nat/i386-gcc-cpuid.h: Likewise.
4811 * nat/linux-btrace.c: Likewise.
4812 * nat/linux-btrace.h: Likewise.
4813 * nat/linux-osdata.c: Likewise.
4814 * nat/linux-osdata.h: Likewise.
4815 * nat/linux-procfs.c: Likewise.
4816 * nat/linux-procfs.h: Likewise.
4817 * nat/linux-ptrace.c: Likewise.
4818 * nat/linux-ptrace.h: Likewise.
4819 * nat/mips-linux-watch.c: Likewise.
4820 * nat/mips-linux-watch.h: Likewise.
4821 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
4822 (object file files): Reordered.
4823 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
4824 of glibc_thread_db.h.
4825
4826 2014-06-20 Gary Benson <gbenson@redhat.com>
4827
4828 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
4829 (i386_dr_low_type): Moved to nat/i386-dregs.h.
4830 (i386_dr_low): Likewise.
4831 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
4832 (i386_dr_low_set_addr): Likewise.
4833 (i386_dr_low_get_addr): Likewise.
4834 (i386_dr_low_can_set_control): Likewise.
4835 (i386_dr_low_set_control): Likewise.
4836 (i386_dr_low_get_control): Likewise.
4837 (i386_dr_low_get_status): Likewise.
4838 (i386_get_debug_register_length): Likewise.
4839 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
4840 (i386_dr_low): Likewise.
4841 * nat/i386-dregs.c (i386-low.h): Remove include.
4842 (i386-nat.h): Likewise.
4843 (nat/i386-dregs.h): New include.
4844 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
4845 (i386_dr_low_set_addr): Likewise.
4846 (i386_dr_low_get_addr): Likewise.
4847 (i386_dr_low_can_set_control): Likewise.
4848 (i386_dr_low_set_control): Likewise.
4849 (i386_dr_low_get_control): Likewise.
4850 (i386_dr_low_get_status): Likewise.
4851 (i386_get_debug_register_length): Likewise.
4852 (debug_hw_points): Likewise.
4853
4854 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
4855
4856 * Makefile.in (SFILES): Add d-exp.y.
4857 (YYFILES): Add d-exp.c.
4858 (YYOBJ): Add d-exp.o.
4859 (local-maintainer-clean): Delete d-exp.c.
4860 * d-exp.y: New file.
4861 * d-lang.h (d_parse): New declaration.
4862 (d_error): New declaration.
4863 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
4864 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
4865 PREC_ORDER operators.
4866 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
4867
4868 2014-06-19 Yao Qi <yao@codesourcery.com>
4869
4870 * gdbthread.h (any_running): Remove the declaration.
4871 * thread.c (any_running): Remove.
4872
4873 2014-06-19 Yao Qi <yao@codesourcery.com>
4874
4875 * gdbthread.h (struct thread_info) <state>: Change its type to
4876 'enum thread_state'. Update comments.
4877
4878 2014-06-19 Pedro Alves <palves@redhat.com>
4879
4880 * gdbthread.h (ALL_THREADS): Delete.
4881 (ALL_NON_EXITED_THREADS): New macro.
4882 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
4883 instead of ALL_THREADS.
4884 * infrun.c (find_thread_needs_step_over)
4885 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
4886 instead of ALL_THREADS.
4887 * record-btrace.c (record_btrace_open)
4888 (record_btrace_stop_recording, record_btrace_close)
4889 (record_btrace_is_replaying, record_btrace_resume)
4890 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
4891 * remote.c (append_pending_thread_resumptions): Likewise.
4892 * thread.c (thread_apply_all_command): Likewise.
4893
4894 2014-06-19 Gary Benson <gbenson@redhat.com>
4895
4896 * i386-nat.c (i386_stopped_by_watchpoint):
4897 Use i386_dr_stopped_by_watchpoint.
4898 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
4899 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
4900
4901 2014-06-19 Gary Benson <gbenson@redhat.com>
4902
4903 * nat/i386-dregs.c: New file.
4904 * Makefile.in (i386-dregs.o): New rule.
4905 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
4906 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
4907 * config/i386/darwin.mh (NATDEPFILES): Likewise.
4908 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
4909 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
4910 * config/i386/go32.mh (NATDEPFILES): Likewise.
4911 * config/i386/linux.mh (NATDEPFILES): Likewise.
4912 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4913 * config/i386/mingw.mh (NATDEPFILES): Likewise.
4914 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
4915 * i386-nat.h (debug_hw_points): New declaration.
4916 * i386-nat.c (breakpoint.h): Remove include.
4917 (command.h): Likewise.
4918 (target.h): Likewise.
4919 (gdb_assert.h): Likewise.
4920 (debug_hw_points): Made nonstatic.
4921 (debug_printf): Now in i386-dregs.c.
4922 (TARGET_HAS_DR_LEN_8): Likewise.
4923 (DR_CONTROL_SHIFT): Likewise.
4924 (DR_CONTROL_SIZE): Likewise.
4925 (DR_RW_EXECUTE): Likewise.
4926 (DR_RW_WRITE): Likewise.
4927 (DR_RW_READ): Likewise.
4928 (DR_RW_IORW): Likewise.
4929 (DR_LEN_1): Likewise.
4930 (DR_LEN_2): Likewise.
4931 (DR_LEN_4): Likewise.
4932 (DR_LEN_8): Likewise.
4933 (DR_LOCAL_ENABLE_SHIFT): Likewise.
4934 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
4935 (DR_ENABLE_SIZE): Likewise.
4936 (DR_LOCAL_SLOWDOWN): Likewise.
4937 (DR_GLOBAL_SLOWDOWN): Likewise.
4938 (DR_CONTROL_RESERVED): Likewise.
4939 (I386_DR_CONTROL_MASK): Likewise.
4940 (I386_DR_VACANT): Likewise.
4941 (I386_DR_LOCAL_ENABLE): Likewise.
4942 (I386_DR_GLOBAL_ENABLE): Likewise.
4943 (I386_DR_DISABLE): Likewise.
4944 (I386_DR_SET_RW_LEN): Likewise.
4945 (I386_DR_GET_RW_LEN): Likewise.
4946 (I386_DR_WATCH_HIT): Likewise.
4947 (i386_wp_op_t): Likewise.
4948 (i386_show_dr): Likewise.
4949 (i386_length_and_rw_bits): Likewise.
4950 (i386_insert_aligned_watchpoint): Likewise.
4951 (i386_remove_aligned_watchpoint): Likewise.
4952 (i386_handle_nonaligned_watchpoint): Likewise.
4953 (i386_update_inferior_debug_regs): Likewise.
4954 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
4955 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
4956 (i386_region_ok_for_watchpoint):
4957 Use i386_dr_region_ok_for_watchpoint.
4958 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
4959
4960 2014-06-19 Gary Benson <gbenson@redhat.com>
4961
4962 * i386-nat.c (i386_insert_hw_breakpoint): Use
4963 i386_insert_watchpoint.
4964 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
4965
4966 2014-06-19 Gary Benson <gbenson@redhat.com>
4967
4968 * i386-nat.c (i386_dr_show): Renamed to
4969 i386_show_dr and made static. All uses updated.
4970 (i386_dr_length_and_rw_bits): Renamed to
4971 i386_length_and_rw_bits and made static.
4972 All uses updated.
4973 (i386_dr_insert_aligned_watchpoint): Renamed to
4974 i386_insert_aligned_watchpoint and made static.
4975 All uses updated.
4976 (i386_dr_remove_aligned_watchpoint): Renamed to
4977 i386_remove_aligned_watchpoint and made static.
4978 All uses updated.
4979 (i386_dr_update_inferior_debug_regs): Renamed to
4980 i386_update_inferior_debug_regs and made static.
4981 All uses updated.
4982 * nat/i386-dregs.h (i386_dr_show): Removed.
4983 (i386_dr_length_and_rw_bits): Likewise.
4984 (i386_dr_insert_aligned_watchpoint): Likewise.
4985 (i386_dr_remove_aligned_watchpoint): Likewise.
4986 (i386_dr_update_inferior_debug_regs): Likewise.
4987
4988 2014-06-19 Gary Benson <gbenson@redhat.com>
4989
4990 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
4991 * configure: Regenerate.
4992 * config.in: Likewise.
4993 * main.c (signal.h): New include.
4994 (setup_alternate_signal_stack): New function.
4995 (captured_main): Call the above.
4996 * cp-support.c (signal.h): New include.
4997 (catch_demangler_crashes): New flag.
4998 (SIGJMP_BUF): New define.
4999 (SIGSETJMP): Likewise.
5000 (SIGLONGJMP): Likewise.
5001 (gdb_demangle_jmp_buf): New static global.
5002 (gdb_demangle_attempt_core_dump): Likewise.
5003 (gdb_demangle_signal_handler): New function.
5004 (gdb_demangle): If catch_demangler_crashes is set, install the
5005 above signal handler before calling bfd_demangle, and restore
5006 the original signal handler afterwards. Display the offending
5007 symbol and call demangler_warning the first time a segmentation
5008 fault is caught.
5009 (_initialize_cp_support): New maint set/show command.
5010
5011 2014-06-19 Gary Benson <gbenson@redhat.com>
5012
5013 * utils.h (resource_limit_kind): New enum.
5014 (can_dump_core): New declaration.
5015 (warn_cant_dump_core): Likewise.
5016 (dump_core): Likewise.
5017 * utils.c (dump_core): Made nonstatic. Added new
5018 parameter "limit_kind".
5019 (can_dump_core): Made nonstatic. Moved printing code to...
5020 (warn_cant_dump_core): New function.
5021 (can_dump_core_warn): Likewise.
5022 (internal_vproblem): Replace calls to can_dump_core with
5023 calls to can_dump_core_warn. Supply new argument to each.
5024
5025 2014-06-19 Gary Benson <gbenson@redhat.com>
5026
5027 * utils.h (demangler_vwarning): New declaration.
5028 (demangler_warning): Likewise.
5029 * utils.c (struct internal_problem)
5030 <user_settable_should_quit>: New field.
5031 <user_settable_should_dump_core>: Likewise
5032 (internal_error_problem): Add values for above new fields.
5033 (internal_warning_problem): Likewise.
5034 (demangler_warning_problem): New static global.
5035 (demangler_vwarning): New function.
5036 (demangler_warning): Likewise.
5037 (add_internal_problem_command): Selectively add commands.
5038 (_initialize_utils): New internal problem command.
5039 * maint.c (maintenance_demangler_warning): New function.
5040 (_initialize_maint_cmds): New command.
5041
5042 2014-06-18 Tom Tromey <tromey@redhat.com>
5043
5044 * f-valprint.c (info_common_command_for_block): Update.
5045 * symtab.h (struct general_symbol_info) <common_block>: Now
5046 const.
5047
5048 2014-06-18 Tom Tromey <tromey@redhat.com>
5049
5050 * symtab.h (struct symtab) <blockvector>: Now const.
5051 * ada-lang.c (ada_add_global_exceptions): Update.
5052 * buildsym.c (augment_type_symtab): Update.
5053 * dwarf2read.c (dw2_lookup_symbol): Update.
5054 * jit.c (finalize_symtab): Update.
5055 * jv-lang.c (add_class_symtab_symbol): Update.
5056 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
5057 Update.
5058 * objfiles.c (objfile_relocate1): Update.
5059 * psymtab.c (lookup_symbol_aux_psymtabs)
5060 (maintenance_check_psymtabs): Update.
5061 * python/py-symtab.c (stpy_global_block, stpy_static_block):
5062 Update.
5063 * spu-tdep.c (spu_catch_start): Update.
5064 * symmisc.c (dump_symtab_1): Update.
5065 * symtab.c (lookup_global_symbol_from_objfile)
5066 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
5067 (basic_lookup_transparent_type_quick)
5068 (basic_lookup_transparent_type, find_pc_sect_symtab)
5069 (find_pc_sect_line, search_symbols): Update.
5070 * block.c (find_block_in_blockvector): Make "bl" const.
5071 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
5072 const.
5073 (blockvector_contains_pc): Make "bv" const.
5074 (block_for_pc_sect): Update.
5075 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
5076 (blockvector_contains_pc): Update.
5077 * breakpoint.c (resolve_sal_pc): Update.
5078 * inline-frame.c (block_starting_point_at): Update.
5079
5080 2014-06-18 Tom Tromey <tromey@redhat.com>
5081
5082 * completer.c (complete_line): Make "line_buffer" const.
5083 * completer.h (complete_line): Update.
5084
5085 2014-06-18 Tom Tromey <tromey@redhat.com>
5086
5087 * symtab.c (add_macro_name): Remove unneeded cast.
5088
5089 2014-06-18 Tom Tromey <tromey@redhat.com>
5090
5091 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
5092 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
5093
5094 2014-06-18 Tom Tromey <tromey@redhat.com>
5095
5096 * probe.c (info_probes_for_ops): Make "arg" const.
5097 * probe.h (info_probes_for_ops): Update.
5098
5099 2014-06-18 Tom Tromey <tromey@redhat.com>
5100
5101 * varobj.c (varobj_create): Update.
5102 * valops.c (value_of_this): Update.
5103 * tracepoint.c (add_local_symbols, scope_info): Update.
5104 * symtab.h (struct general_symbol_info) <block>: Now const.
5105 * symtab.c (skip_prologue_sal)
5106 (default_make_symbol_completion_list_break_on)
5107 (skip_prologue_using_sal): Update.
5108 * stack.h (iterate_over_block_locals)
5109 (iterate_over_block_local_vars): Update.
5110 * stack.c (print_frame_args): Update.
5111 (iterate_over_block_locals, iterate_over_block_local_vars): Make
5112 parameter const.
5113 (get_selected_block): Make return type const.
5114 * python/py-frame.c (frapy_block): Update.
5115 * python/py-block.c (gdbpy_block_for_pc): Update.
5116 * p-exp.y (%union) <bval>: Now const.
5117 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
5118 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
5119 * m2-exp.y (%union) <bval>: Now const.
5120 * linespec.c (get_current_search_block): Make return type const.
5121 (create_sals_line_offset, find_label_symbols): Update.
5122 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
5123 Update.
5124 (block_starting_point_at): Make "block" const.
5125 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
5126 (check_exception_resume): Update.
5127 * guile/scm-frame.c (gdbscm_frame_block): Update.
5128 * guile/scm-block.c (gdbscm_lookup_block): Update.
5129 * frame.h (get_frame_block): Update.
5130 (get_selected_block): Make return type const.
5131 * frame.c (frame_id_inner): Update.
5132 * f-valprint.c (info_common_command_for_block)
5133 (info_common_command): Update.
5134 * dwarf2loc.c (dwarf2_find_location_expression)
5135 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
5136 (locexpr_describe_location_piece): Update.
5137 * c-exp.y (%union) <bval>: Now const.
5138 * breakpoint.c (resolve_sal_pc): Update.
5139 * blockframe.c (get_frame_block):Make return type const.
5140 (get_pc_function_start, get_frame_function, find_pc_sect_function)
5141 (block_innermost_frame): Update.
5142 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
5143 (block_for_pc, block_for_pc_sect): Update.
5144 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
5145 'pblock' const.
5146 (block_for_pc_sect, block_for_pc): Make return type const.
5147 * ax-gdb.c (gen_expr): Update.
5148 * alpha-mdebug-tdep.c (find_proc_desc): Update.
5149 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
5150 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
5151 (ada_read_var_value): Update.
5152 * ada-exp.y (struct name_info) <block>: Now const.
5153 (%union): Likewise.
5154 (block_lookup): Constify.
5155
5156 2014-06-18 Gary Benson <gbenson@redhat.com>
5157
5158 * nat/i386-dregs.h: New file.
5159 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
5160 * i386-nat.h (i386-dregs.h): New include.
5161 (DR_FIRSTADDR): Now in i386-dregs.h.
5162 (DR_LASTADDR): Likewise.
5163 (DR_NADDR): Likewise.
5164 (DR_STATUS): Likewise.
5165 (DR_CONTROL): Likewise.
5166 (i386_debug_reg_state): Likewise.
5167 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
5168
5169 2014-06-18 Don Breazeal <donb@codesourcery.com>
5170
5171 * breakpoint.c (set_longjmp_breakpoint): Call
5172 momentary_breakpoint_from_master with additional argument.
5173 (set_longjmp_breakpoint_for_call_dummy): Call
5174 momentary_breakpoint_from_master with additional argument.
5175 (set_std_terminate_breakpoint): Call
5176 momentary_breakpoint_from_master with additional argument.
5177 (momentary_breakpoint_from_master): Add argument to function
5178 definition and use it to initialize structure member flag.
5179 (clone_momentary_breakpoint): Call
5180 momentary_breakpoint_from_master with additional argument.
5181 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
5182 member flags set in momentary_breakpoint_from_master.
5183
5184 2014-06-18 Gary Benson <gbenson@redhat.com>
5185
5186 * i386-nat.c (i386_show_dr): Renamed to
5187 i386_dr_show and made nonstatic. All uses updated.
5188 (i386_length_and_rw_bits): Renamed to
5189 i386_dr_length_and_rw_bits and made nonstatic.
5190 All uses updated.
5191 (i386_insert_aligned_watchpoint): Renamed to
5192 i386_dr_insert_aligned_watchpoint and made nonstatic.
5193 All uses updated.
5194 (i386_remove_aligned_watchpoint): Renamed to
5195 i386_dr_remove_aligned_watchpoint and made nonstatic.
5196 All uses updated.
5197 (i386_update_inferior_debug_regs): Renamed to
5198 i386_dr_update_inferior_debug_regs and made nonstatic.
5199 All uses updated.
5200
5201 2014-06-18 Gary Benson <gbenson@redhat.com>
5202
5203 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
5204 (i386_dr_low_can_set_control): Likewise.
5205 (i386_dr_low_set_addr): Likewise.
5206 (i386_dr_low_set_control): Likewise.
5207 (i386_dr_low_get_addr): Likewise.
5208 (i386_dr_low_get_status): Likewise.
5209 (i386_dr_low_get_control): Likewise.
5210 (i386_insert_aligned_watchpoint): Use new macros.
5211 (i386_update_inferior_debug_regs): Likewise.
5212 (i386_stopped_data_address): Likewise.
5213
5214 2014-06-18 Gary Benson <gbenson@redhat.com>
5215
5216 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
5217 New parameter. All uses updated.
5218
5219 2014-06-18 Gary Benson <gbenson@redhat.com>
5220
5221 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
5222 All uses updated.
5223
5224 2014-06-18 Gary Benson <gbenson@redhat.com>
5225
5226 * i386-nat.c (debug_printf): New macro.
5227 (i386_get_debug_register_length): Likewise.
5228 (TARGET_HAS_DR_LEN_8): Use above macro.
5229 (i386_show_dr): Use debug_printf instead of puts_unfiltered
5230 and printf_unfiltered. Use phex to format values.
5231
5232 2014-06-18 Gary Benson <gbenson@redhat.com>
5233
5234 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
5235 Make const.
5236
5237 2014-06-18 Gary Benson <gbenson@redhat.com>
5238
5239 * i386-nat.c: Comment changes.
5240
5241 2014-06-18 Gary Benson <gbenson@redhat.com>
5242
5243 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
5244
5245 2014-06-18 Gary Benson <gbenson@redhat.com>
5246
5247 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
5248 (i386_insert_aligned_watchpoint): Likewise.
5249 (i386_remove_aligned_watchpoint): Likewise.
5250 (i386_handle_nonaligned_watchpoint): Likewise.
5251
5252 2014-06-18 Gary Benson <gbenson@redhat.com>
5253
5254 * i386-nat.c: Whitespace changes.
5255
5256 2014-06-17 Samuel Bronson <naesten@gmail.com>
5257
5258 * MAINTAINERS: Update Roland McGrath's email address.
5259 Thanks to Sergio Durigan Junior for pointing out that he left
5260 Red Hat a while ago, and giving me a current address.
5261
5262 2014-06-17 Tom Tromey <tromey@redhat.com>
5263
5264 * utils.h (savestring): Remove declaration.
5265
5266 2014-06-17 Tom Tromey <tromey@redhat.com>
5267
5268 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
5269
5270 2014-06-16 Keith Seitz <keiths@redhat.com>
5271
5272 PR mi/15863
5273 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
5274 to update the varobj if inferior_ptid is null_ptid.
5275
5276 2014-06-16 Tom Tromey <tromey@redhat.com>
5277
5278 * target.h (struct target_ops) <to_info_proc>: Make parameter
5279 const.
5280 (target_info_proc): Update.
5281 * target.c (target_info_proc): Make "args" const.
5282 * procfs.c (procfs_info_proc): Update.
5283 * linux-tdep.c (linux_info_proc): Update.
5284 (linux_core_info_proc_mappings): Make "args" const.
5285 (linux_core_info_proc): Update.
5286 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
5287 * gdbarch.c: Rebuild.
5288 * gdbarch.h: Rebuild.
5289 * corelow.c (core_info_proc): Update.
5290
5291 2014-06-16 Tom Tromey <tromey@redhat.com>
5292
5293 * target.h (struct target_ops) <to_disconnect>: Make parameter
5294 const.
5295 (target_disconnect): Update.
5296 * target.c (target_disconnect): Make "args" const.
5297 * target-delegates.c: Rebuild.
5298 * remote.c (remote_disconnect): Update.
5299 * record.h (record_disconnect): Update.
5300 * record.c (record_disconnect): Update.
5301 * inf-child.c (inf_child_disconnect): Update.
5302
5303 2014-06-16 Tom Tromey <tromey@redhat.com>
5304
5305 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
5306 * target.c (debug_to_rcmd, default_rcmd): Update.
5307 * target-delegates.c: Rebuild.
5308 * remote.c (remote_rcmd): Update.
5309 * monitor.c (monitor_rcmd): Update.
5310
5311 2014-06-16 Pedro Alves <palves@redhat.com>
5312
5313 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
5314 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
5315 have OBJF_SHARED set.
5316 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
5317 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
5318 instead of OBJF_USERLOADED.
5319 * objfiles.h (OBJF_SHARED): Update comment.
5320 (userloaded_objfile_contains_address_p): Rename to ...
5321 (shared_objfile_contains_address_p): ... this, and update
5322 comments.
5323 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
5324 new objfile.
5325 (remove_symbol_file_command): Skip objfiles that don't have
5326 OBJF_SHARED set.
5327
5328 2014-06-16 Tom Tromey <tromey@redhat.com>
5329
5330 * minsyms.h (prim_record_minimal_symbol)
5331 (prim_record_minimal_symbol_and_info): Update comments.
5332
5333 2014-06-14 Eli Zaretskii <eliz@gnu.org>
5334
5335 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
5336 or --without-guile, according to how GDB was built.
5337
5338 2014-06-13 Tom Tromey <tromey@redhat.com>
5339
5340 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
5341 to help_list.
5342 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
5343 to help_list.
5344 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
5345 help_list.
5346 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
5347 help_list.Pass all_commands, not -1, to help_list.
5348 * cli/cli-dump.c (dump_command, append_command)
5349 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
5350 (binary_dump_command, binary_append_command): Pass all_commands,
5351 not -1, to help_list.
5352 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
5353 -1, to help_list.
5354 * valprint.c (set_print, set_print_raw): Pass all_commands, not
5355 -1, to help_list.
5356 * typeprint.c (set_print_type): Pass all_commands, not -1, to
5357 help_list.
5358 * top.c (set_history): Pass all_commands, not -1, to help_list.
5359 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
5360 all_commands, not -1, to help_list.
5361 * symfile.c (overlay_command): Pass all_commands, not -1, to
5362 help_list.
5363 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
5364 help_list.
5365 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
5366 help_list.
5367 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
5368 -1, to help_list.
5369 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
5370 not -1, to help_list.
5371 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
5372 not -1, to help_list.
5373 * maint.c (maintenance_command, maintenance_info_command)
5374 (maintenance_print_command, maintenance_set_cmd): Pass
5375 all_commands, not -1, to help_list.
5376 * macrocmd.c (macro_command): Pass all_commands, not -1, to
5377 help_list.
5378 * language.c (set_check): Pass all_commands, not -1, to help_list.
5379 * infcmd.c (unset_command): Pass all_commands, not -1, to
5380 help_list.
5381 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
5382 help_list.
5383 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
5384 help_list.
5385 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
5386 help_list.
5387 * breakpoint.c (save_command): Pass all_commands, not -1, to
5388 help_list.
5389 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
5390 all_commands, not -1, to help_list.
5391
5392 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
5393
5394 * regcache.c (struct register_to_invalidate): New structure.
5395 (do_register_invalidate, make_cleanup_regcache_invalidate): New
5396 functions.
5397 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
5398
5399 2014-06-12 Yao Qi <yao@codesourcery.com>
5400
5401 * varobj.c (varobj_get_num_children): Call
5402 varobj_is_dynamic_p.
5403 (varobj_list_children): Likewise.
5404 (varobj_update): Likewise. Update comments.
5405
5406 2014-06-12 Yao Qi <yao@codesourcery.com>
5407
5408 * varobj.c (varobj_pretty_printed_p): Rename to ...
5409 (varobj_is_dynamic_p): ... this. New function.
5410 * varobj.h (varobj_pretty_printed_p): Remove declaration.
5411 (varobj_is_dynamic_p): Declare.
5412 * mi/mi-cmd-var.c (print_varobj): All callers updated.
5413 (mi_print_value_p, varobj_update_one): Likewise.
5414
5415 2014-06-12 Pedro Alves <pedro@codesourcery.com>
5416 Yao Qi <yao@codesourcery.com>
5417
5418 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
5419 (varobj_get_iterator): Wrap up code for pretty-printer by
5420 "#if HAVE_PYTHON" and "#endif".
5421 (update_dynamic_varobj_children): Likewise.
5422
5423 2014-06-12 Pedro Alves <pedro@codesourcery.com>
5424 Yao Qi <yao@codesourcery.com>
5425
5426 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
5427 gdb_python_initialized is false. Move some code from varobj.c.
5428 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
5429 * varobj.c: Move "varobj-iter.h" inclusion earlier.
5430 (struct varobj_item): Moved to varobj-iter.h".
5431 (varobj_clear_saved_item): New function.
5432 (update_dynamic_varobj_children): Move python-related code to
5433 py-varobj.c.
5434 (free_variable): Call varobj_clear_saved_item and
5435 varobj_iter_delete.
5436
5437 2014-06-12 Pedro Alves <pedro@codesourcery.com>
5438 Yao Qi <yao@codesourcery.com>
5439
5440 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
5441 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
5442 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
5443 (py-varobj.o): New rule.
5444 * python/py-varobj.c: New file.
5445 * python/python-internal.h (py_varobj_get_iterator): Declare.
5446 * varobj-iter.h: New file.
5447 * varobj.c: Include "varobj-iter.h"
5448 (struct varobj) <child_iter>: Change its type from "PyObject *"
5449 to "struct varobj_iter *".
5450 <saved_item>: Likewise.
5451 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
5452 [HAVE_PYTHON] (varobj_get_iterator): New function.
5453 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
5454 python-specific code to python/py-varobj.c.
5455 (install_visualizer): Call varobj_iter_delete instead of
5456 Py_XDECREF.
5457 * varobj.h (varobj_ensure_python_env): Declare.
5458
5459 2014-06-12 Yao Qi <yao@codesourcery.com>
5460
5461 * varobj.c (struct varobj_item): New structure.
5462 (create_child_with_value): Update declaration.
5463 (varobj_add_child): Replace arguments 'name' and 'value' with
5464 'item'. All callers updated.
5465 (install_dynamic_child): Likewise.
5466 (update_dynamic_varobj_children): Likewise.
5467 (varobj_add_child): Likewise.
5468 (create_child_with_value): Likewise.
5469
5470 2014-06-11 Joel Brobecker <brobecker@adacore.com>
5471
5472 * NEWS: Create a new section for the next release branch.
5473 Rename the section of the current branch, now that it has
5474 been cut.
5475
5476 2014-06-11 Joel Brobecker <brobecker@adacore.com>
5477
5478 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
5479 * version.in: Bump version to 7.8.50.DATE-cvs.
5480
5481 2014-06-11 Pedro Alves <palves@redhat.com>
5482
5483 PR remote/17028
5484 * ser-mingw.c (net_windows_socket_check_pending): New function.
5485 (net_windows_select_thread): Ignore spurious wakeups. Use
5486 net_windows_socket_check_pending.
5487 (net_windows_wait_handle): Check for pending events with
5488 ioctlsocket, through net_windows_socket_check_pending, instead of
5489 checking the socket's event.
5490
5491 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
5492
5493 * python/python-internal.h (gdb_PyObject_GetAttrString)
5494 (gdb_PyObject_HasAttrString): New inline function definitions.
5495 * py-value.c (get_field_flag): Remove the now unnecessary cast to
5496 char * of the second argument to PyObject_GetAttrString.
5497
5498 2014-06-10 Joel Brobecker <brobecker@adacore.com>
5499
5500 * serial.c (serial_write): Fix index of character to be printed
5501 in call to serial_logchar when serial debug traces are enabled.
5502
5503 2014-06-10 Joel Brobecker <brobecker@adacore.com>
5504
5505 * gdbtypes (resolve_dynamic_range): Add function description.
5506
5507 2014-06-09 Pedro Alves <palves@redhat.com>
5508
5509 * linux-nat.c (linux_child_follow_fork): Initialize status with
5510 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
5511 inner block. Only pass the signal to PTRACE_DETACH if in pass
5512 state.
5513
5514 2014-06-09 Gary Benson <gbenson@redhat.com>
5515
5516 * common/signals.c (gdb_signal_from_host): Reorder to separate
5517 the always-available ANSI-standard signals from the signals that
5518 require checking.
5519 (do_gdb_signal_to_host): Likewise.
5520 * proc-events.c (signal_table): Likewise.
5521
5522 2014-06-08 Hui Zhu <hui@codesourcery.com>
5523
5524 * common/linux-ptrace.c (linux_disable_event_reporting): New
5525 function.
5526 * common/linux-ptrace.h (linux_disable_event_reporting): New
5527 declaration.
5528 * linux-nat.c (linux_child_follow_fork): Do a single step before
5529 detach.
5530
5531 2014-06-07 Keith Seitz <keiths@redhat.com>
5532
5533 Revert:
5534 PR c++/16253
5535 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5536 from symbol_matches_domain in symtab.c. All local callers
5537 of symbol_matches_domain updated.
5538 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5539 search STRUCT_DOMAIN.
5540 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5541 independently. standard_lookup will do that automatically.
5542 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5543 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5544 (cp_lookup_symbol_in_namespace): Likewise.
5545 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5546 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5547 may return a STRUCT_DOMAIN match.
5548 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5549 * cp-support.c: Include language.h.
5550 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5551 VAR_DOMAIN.
5552 * psymtab.c (match_partial_symbol): Compare the requested
5553 domain with the symbol's domain directly.
5554 (lookup_partial_symbol): Likewise.
5555 * symtab.c (lookup_symbol_in_language): Explain when/why
5556 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5557 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5558 appropriate languages.
5559 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5560 and moved to ada-lang.c
5561 (lookup_block_symbol): Explain that this function only returns
5562 symbol matching the requested DOMAIN.
5563 Compare the requested domain with the symbol's domain directly.
5564 (iterate_over_symbols): Compare the requested domain with the
5565 symbol's domain directly.
5566 * symtab.h (symbol_matches_domain): Remove.
5567
5568 2014-06-06 Doug Evans <xdje42@gmail.com>
5569
5570 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
5571 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
5572 (gdbscm_guile_version_is_at_least): Declare.
5573 (gdbscm_scm_string_to_int): Declare.
5574 * guile/guile.c (gdbscm_guile_major_version): New global.
5575 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
5576 (guile_datadir): New static global.
5577 (gdbscm_guile_data_directory): New function.
5578 (initialize_scheme_side): Update.
5579 (misc_guile_functions): Add guile-data-directory.
5580 (initialize_gdb_module): Fetch guile version number.
5581 * guile/lib/gdb.scm: Remove call to add-to-load-path.
5582 * guile/lib/gdb/init.scm (%initialize!): Ditto.
5583 * guile/lib/gdb/boot.scm: Use guile-data-directory.
5584 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
5585 comments.
5586 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
5587 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
5588 * guile/scm-value.c (gdbscm_value_to_string): Only call
5589 scm_port_conversion_strategy if Guile version >= 2.0.6.
5590
5591 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
5592
5593 * main.c (print_gdb_help): Add -q and --silent.
5594
5595 2014-06-06 Gary Benson <gbenson@redhat.com>
5596
5597 * common/signals.c: Remove preprocessor conditionals for
5598 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
5599 SIGSEGV and SIGTERM.
5600 * proc-events.c: Likewise.
5601
5602 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
5603
5604 * symfile.c (symfile_free_objfile): Remove restriction to
5605 OBJF_USERLOADED.
5606 * symfile-mem.c (symbol_file_add_from_memory): Call
5607 add_target_sections_of_objfile.
5608
5609 2014-06-05 Ludovic Courtès <ludo@gnu.org>
5610
5611 * guile/scm-value.c (gdbscm_history_append_x): Use
5612 'vlscm_get_value_smob_arg_unsafe' instead of
5613 'vlscm_scm_to_value'.
5614
5615 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
5616
5617 PR mi/15806
5618 * utils.c (printchar): Don't escape at all if quoter is NUL.
5619 Update function documentation to clarify effect of parameter
5620 QUOTER.
5621 * remote.c (escape_buffer): Pass '\\' as the quoter to
5622 fputstrn_unfiltered.
5623 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
5624 generate the output.
5625 (mi_solib_unloaded): Same.
5626
5627 2014-06-05 Joel Brobecker <brobecker@adacore.com>
5628
5629 * development.sh: Delete.
5630 * Makefile.in (config.status): Adjust dependency on development.sh.
5631 * configure.ac: Adjust development.sh source call.
5632 * configure: Regenerate.
5633
5634 2014-06-04 Doug Evans <xdje42@gmail.com>
5635
5636 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
5637 is_scheme_bkpt, spec.
5638 (bpscm_make_breakpoint_smob): Initialize new members.
5639 (gdbscm_create_breakpoint_x): Split into two ...
5640 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
5641 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
5642 (scheme_function breakpoint_functions): Update.
5643 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
5644 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
5645 register-breakpoint!.
5646
5647 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
5648
5649 PR server/17023
5650 * mem-break.c (z_type_supported): Return zero if
5651 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
5652
5653 2014-06-04 Tom Tromey <tromey@redhat.com>
5654
5655 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
5656 value_from_contents_and_address_unresolved.
5657 (ada_template_to_fixed_record_type_1): Likewise.
5658 (ada_which_variant_applies): Likewise.
5659 * value.h (value_from_contents_and_address_unresolved): Declare.
5660 * value.c (value_from_contents_and_address_unresolved): New
5661 function.
5662 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
5663 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
5664 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
5665
5666 2014-06-04 Tom Tromey <tromey@redhat.com>
5667
5668 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
5669
5670 2014-06-04 Tom Tromey <tromey@redhat.com>
5671
5672 * procfs.c (procfs_attach): Make "args" const.
5673 * windows-nat.c (windows_attach): Make "args" const.
5674 * nto-procfs.c (procfs_attach): Make "args" const.
5675 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
5676 * go32-nat.c (go32_attach): Make "args" const.
5677 * gnu-nat.c (gnu_attach): Make "args" const.
5678 * darwin-nat.c (darwin_attach): Make "args" const.
5679 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
5680 * linux-nat.c (linux_nat_attach): Make "args" const.
5681 * remote.c (extended_remote_attach_1, extended_remote_attach):
5682 Make "args" const.
5683 * target.h (struct target_ops) <to_attach>: Make "args" const.
5684 (find_default_attach): Likewise.
5685 * utils.c (parse_pid_to_attach): Make "args" const.
5686 * utils.h (parse_pid_to_attach): Update.
5687
5688 2014-06-04 Tom Tromey <tromey@redhat.com>
5689
5690 * target-delegates.c: Rebuild.
5691 * target.c (default_thread_address_space): New function.
5692 (target_thread_address_space): Simplify.
5693 * target.h (struct target_ops) <to_thread_address_space>: Add
5694 TARGET_DEFAULT_FUNC.
5695
5696 2014-06-04 Doug Evans <xdje42@gmail.com>
5697
5698 * guile/scm-type.c (type_smob): Remove duplicate typedef.
5699
5700 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
5701
5702 * record-btrace.c: Include event-loop.h and inf-loop.h.
5703 (record_btrace_resume_exec_dir)
5704 (record_btrace_async_inferior_event_handler)
5705 (record_btrace_handle_async_inferior_event): New.
5706 (record_btrace_open): Create async event handler.
5707 (record_btrace_close): Delete async event handler.
5708 (record_btrace_resume): Set record_btrace_resume_exec_dir,
5709 Mark async event handler.
5710 (record_btrace_execution_direction): New.
5711 (init_record_btrace_ops): Initialize to_execution_direction.
5712
5713 2014-06-03 Doug Evans <xdje42@gmail.com>
5714
5715 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
5716 (gdbscm_make_parameter): Ditto.
5717
5718 2014-06-03 Doug Evans <dje@google.com>
5719
5720 * exec.c (exec_close_1): Call clear_section_table instead of
5721 resize_section_table.
5722 (clear_section_table): New function.
5723 (resize_section_table): Make static. Rename arg num_added to
5724 adjustment.
5725 * exec.h (clear_section_table): Declare.
5726 (resize_section_table): Delete.
5727 * progspace.c (release_program_space): Call clear_section_table
5728 instead of resize_section_table.
5729
5730 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5731
5732 * NEWS (Python Scripting): Add entry about the new xmethods
5733 feature.
5734
5735 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5736
5737 * python/py-xmethods.c: New file.
5738 * python/py-objfile.c (objfile_object): New field 'xmethods'.
5739 (objfpy_dealloc): XDECREF on the new xmethods field.
5740 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
5741 field.
5742 (objfpy_get_xmethods): New function.
5743 (objfile_getset): New entry 'xmethods'.
5744 * python/py-progspace.c (pspace_object): New field 'xmethods'.
5745 (pspy_dealloc): XDECREF on the new xmethods field.
5746 (pspy_new, pspace_to_pspace_object): Initialize xmethods
5747 field.
5748 (pspy_get_xmethods): New function.
5749 (pspace_getset): New entry 'xmethods'.
5750 * python/python-internal.h: Add declarations for new functions.
5751 * python/python.c (_initialize_python): Invoke
5752 gdbpy_initialize_xmethods.
5753 * python/lib/gdb/__init__.py (xmethods): New
5754 attribute.
5755 * python/lib/gdb/xmethod.py: New file.
5756 * python/lib/gdb/command/xmethods.py: New file.
5757
5758 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5759
5760 * eval.c (evaluate_subexp_standard): Call the xmethod if the
5761 best match method returned by find_overload_match is an xmethod.
5762 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
5763 the best matching operator returned by find_overload_match is an
5764 xmethod.
5765 * valops.c: #include "extension.h".
5766 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
5767 Return void. The list of matching source methods is returned in
5768 "fn_list" and a vector of matching debug method workers is
5769 returned in "xm_worker_vec". Update all callers.
5770 (value_find_oload_method_list): Likewise.
5771 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
5772 non-NULL, then the index of the best matching method in this
5773 vector is returned. Update all callers.
5774 (find_overload_match): Include xmethods while performing overload
5775 resolution.
5776
5777 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5778
5779 * defs.h (enum lval_type): New enumerator "lval_xcallable".
5780 * extension-priv.h (struct extension_language_ops): Add the
5781 xmethod interface.
5782 * extension.c (new_xmethod_worker, clone_xmethod_worker,
5783 get_matching_xmethod_workers, get_xmethod_argtypes,
5784 invoke_xmethod, free_xmethod_worker,
5785 free_xmethod_worker_vec): New functions.
5786 * extension.h: #include "common/vec.h".
5787 New function declarations.
5788 (struct xmethod_worker): New struct.
5789 (VEC (xmethod_worker_ptr)): New vector type.
5790 (xmethod_worker_ptr): New typedef.
5791 (xmethod_worker_vec): Likewise.
5792 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
5793 builtin_type.
5794 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
5795 (struct builtin_type): New field "xmethod".
5796 * valarith.c (value_ptradd): Assert that the value argument is not
5797 lval_xcallable.
5798 * valops.c (value_must_coerce_to_target): Return 0 for
5799 lval_xcallable values.
5800 * value.c (struct value): New field XM_WORKER in the field
5801 LOCATION.
5802 (value_address, value_raw_address): Return 0 for lval_xcallable
5803 values.
5804 (set_value_address): Assert that the value is not an
5805 lval_xcallable.
5806 (value_free): Free the associated xmethod worker when freeing
5807 lval_xcallable values.
5808 (set_value_component_location): Assert that the WHOLE value is not
5809 lval_xcallable.
5810 (value_of_xmethod, call_xmethod): New functions.
5811 * value.h: Declare "struct xmethod_worker".
5812 Declare new functions value_of_xmethod, call_xmethod.
5813
5814 2014-06-03 Joel Brobecker <brobecker@adacore.com>
5815 Pedro Alves <palves@redhat.com>
5816
5817 PR breakpoints/17000
5818 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
5819 New function, extracted from software_breakpoint_inserted_here_p.
5820 (software_breakpoint_inserted_here_p): Replace factored out code
5821 by call to find_non_raw_software_breakpoint_inserted_here.
5822 (bp_target_info_copy_insertion_state): New function.
5823 (bkpt_insert_location): Handle the case of a single-step
5824 breakpoint already inserted at the same address.
5825 (bkpt_remove_location): Handle the case of a single-step
5826 breakpoint still inserted at the same address.
5827 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
5828 breakpoint already inserted at the same address.
5829 (deprecated_remove_raw_breakpoint): Handle the case of a
5830 non-raw breakpoint still inserted at the same address.
5831 (find_single_step_breakpoint): New function, extracted from
5832 single_step_breakpoint_inserted_here_p.
5833 (find_single_step_breakpoint): New function,
5834 factored out from single_step_breakpoint_inserted_here_p.
5835 (single_step_breakpoint_inserted_here_p): Reimplement.
5836
5837 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
5838
5839 Pushed by Joel Brobecker <brobecker@adacore.com>
5840 * source.c (show_substitute_path_command): Fix display of matching
5841 substitution rules.
5842
5843 2014-06-03 Gary Benson <gbenson@redhat.com>
5844
5845 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
5846
5847 2014-06-02 Doug Evans <xdje42@gmail.com>
5848
5849 Add parameter support for Guile.
5850 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
5851 (SUBDIR_GUILE_SRCS): Add scm-param.c.
5852 (scm-param.o): New rule.
5853 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
5854 (gdbscm_misc_error): Declare.
5855 (gdbscm_canonicalize_command_name): Declare.
5856 (gdbscm_scm_to_host_string): Declare.
5857 (gdbscm_scm_from_host_string): Declare.
5858 (gdbscm_initialize_parameters): Declare.
5859 * guile/guile.c (initialize_gdb_module): Call
5860 gdbscm_initialize_parameters.
5861 * guile/lib/gdb.scm: Export parameter symbols.
5862 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
5863 cmdscm_canonicalize_name and made public. All callers updated.
5864 * guile/scm-exception.c (gdbscm_misc_error): New function.
5865 * guile/scm-param.c: New file.
5866 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
5867 (gdbscm_scm_to_host_string): New function.
5868 (gdbscm_scm_from_host_string): New function.
5869 * scm-utils.c (gdbscm_gc_dup_argv): New function.
5870
5871 2014-06-02 Doug Evans <xdje42@gmail.com>
5872
5873 Add command support for Guile.
5874 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
5875 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
5876 (scm-cmd.o): New rule.
5877 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
5878 (gdbscm_user_error_p): Declare.
5879 (gdbscm_parse_command_name): Declare.
5880 (gdbscm_valid_command_class_p): Declare.
5881 (gdbscm_initialize_commands): Declare.
5882 * guile/guile.c (initialize_gdb_module): Call
5883 gdbscm_initialize_commands.
5884 * guile/lib/gdb.scm: Export command symbols.
5885 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
5886 (throw-user-error): New function.
5887 * guile/scm-cmd.c: New file.
5888 * guile/scm-exception.c (user_error_symbol): New static global.
5889 (gdbscm_user_error_p): New function.
5890 (gdbscm_initialize_exceptions): Set user_error_symbol.
5891 * scm-utils.c (gdbscm_gc_xstrdup): New function.
5892
5893 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
5894
5895 * top.c (command_loop): Handle comments here...
5896 (command_line_input): ... not here.
5897
5898 2014-06-02 Doug Evans <xdje42@gmail.com>
5899
5900 Add progspace support for Guile.
5901 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
5902 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
5903 (scm-progspace.o): New rule.
5904 * guile/guile-internal.h (pspace_smob): New typedef.
5905 (psscm_pspace_smob_pretty_printers): Declare.
5906 (psscm_pspace_smob_from_pspace): Declare.
5907 (psscm_scm_from_pspace): Declare.
5908 * guile/guile.c (initialize_gdb_module): Call
5909 gdbscm_initialize_pspaces.
5910 * guile/lib/gdb.scm: Export progspace symbols.
5911 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
5912 support.
5913 (append-pretty-printer!): Ditto.
5914 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
5915 Implement.
5916 * guile/scm-progspace.c: New file.
5917
5918 2014-06-03 Alan Modra <amodra@gmail.com>
5919
5920 * ppc64-tdep.c (ppc64_standard_linkage8): New.
5921 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
5922
5923 2014-06-02 Doug Evans <dje@google.com>
5924
5925 Add support for skeletonless type units.
5926 * dwarf2read.c (struct dwarf2_per_objfile): New member
5927 n_allocated_type_units.
5928 (struct dwarf2_per_objfile) <tu_stats>: New member
5929 nr_all_type_units_reallocs.
5930 (create_signatured_type_table_from_index): Initialize
5931 n_allocated_type_units
5932 (create_all_type_units): Ditto.
5933 (add_type_unit): Move up in file. New arg slot.
5934 All callers updated. Increase space for all_type_units more
5935 efficiently.
5936 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
5937 (lookup_dwo_signatured_type): Handle skeletonless TUs.
5938 (lookup_dwp_signatured_type): Ditto.
5939 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
5940 All callers updated.
5941 (build_type_psymtabs_1): Leave type_unit_groups as
5942 NULL if no TUs present.
5943 (print_tu_stats): New function.
5944 (process_skeletonless_type_unit): New function.
5945 (process_dwo_file_for_skeletonless_type_units): New
5946 function.
5947 (process_skeletonless_type_units): New function.
5948 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
5949 Call print tu_stats if debugging enabled.
5950
5951 2014-06-02 Pedro Alves <palves@redhat.com>
5952
5953 * breakpoint.c (build_target_command_list): Don't build a command
5954 list if we have any duplicate location that isn't a dprintf.
5955
5956 2014-06-02 Pedro Alves <palves@redhat.com>
5957
5958 * breakpoint.c (dprintf_breakpoint_hit): New function.
5959 (initialize_breakpoint_ops): Install it as dprintf's
5960 breakpoint_hit method.
5961
5962 2014-06-02 Joel Brobecker <brobecker@adacore.com>
5963
5964 * source.c (substitute_path_rule_matches): Simplify using
5965 filename_ncmp instead of FILENAME_CMP.
5966
5967 2014-06-02 Joel Brobecker <brobecker@adacore.com>
5968
5969 * source.c (substitute_path_rule_matches): Remove trailing spaces.
5970
5971 2014-06-01 Ludovic Courtès <ludo@gnu.org>
5972
5973 * configure.ac: When Guile is available, check for the
5974 availability of 'scm_new_smob'.
5975 * configure, config.h.in: Regenerate.
5976 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
5977 function.
5978
5979 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
5980
5981 * frame.c (struct frame_info): Add stop_string field.
5982 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
5983 (get_prev_frame_always): Old content moved into
5984 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
5985 TRY_CATCH, handle MEMORY_ERROR exceptions.
5986 (frame_stop_reason_string): New function definition.
5987 * frame.h (unwind_stop_reason_to_string): Extend comment to
5988 mention frame_stop_reason_string.
5989 (frame_stop_reason_string): New function declaration.
5990 * stack.c (frame_info): Switch to frame_stop_reason_string.
5991 (backtrace_command_1): Switch to frame_stop_reason_string.
5992 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
5993 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
5994 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
5995
5996 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
5997
5998 * frame.c (frame_stop_reason_string): Rename to ...
5999 (unwind_stop_reason_to_string): this.
6000 * frame.h (frame_stop_reason_string): Rename to ...
6001 (unwind_stop_reason_to_string): this.
6002 * stack.c (frame_info): Update call to frame_stop_reason_string.
6003 (backtrace_command_1): Likewise.
6004 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
6005 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
6006
6007 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
6008
6009 * frame.c (remove_prev_frame): New function.
6010 (get_prev_frame_if_no_cycle): Create / discard cleanup using
6011 remove_prev_frame.
6012
6013 2014-05-29 Pedro Alves <palves@redhat.com>
6014
6015 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
6016 and make it const. When a single-step decays to a continue,
6017 clear 'step', not 'hw_step'. Pass whether the caller wanted
6018 to step to user_visible_resume_ptid, not what we ask the
6019 target to do.
6020
6021 2014-05-29 Pedro Alves <palves@redhat.com>
6022
6023 * infrun.c (process_event_stop_test, handle_step_into_function)
6024 (handle_step_into_function_backward): Adjust.
6025 Don't set the even thread's stop_step and call stop_waiting before
6026 calling end_stepping_range. Instead do that ...
6027 (end_stepping_range): ... here. Take an ecs pointer parameter.
6028
6029 2014-05-29 Pedro Alves <palves@redhat.com>
6030
6031 * infrun.c (stop_stepping): Rename to ...
6032 (stop_waiting): ... this.
6033 (proceed): Update comment.
6034 (process_event_stop_test, handle_inferior_event)
6035 (handle_signal_stop, handle_step_into_function)
6036 (handle_step_into_function_backward): Update.
6037
6038 2014-05-29 Pedro Alves <palves@redhat.com>
6039
6040 * infcall.c (run_inferior_call): Don't check whether the current
6041 thread is running after the proceed call.
6042
6043 2014-05-29 Pedro Alves <palves@redhat.com>
6044 Tom Tromey <tromey@redhat.com>
6045
6046 * NEWS: Mention "maint set target-async", "set mi-async", and that
6047 background execution commands are now always available.
6048 * target.h (target_async_permitted): Update comment.
6049 * target.c (target_async_permitted, target_async_permitted_1):
6050 Default to 1.
6051 (set_target_async_command): Rename to ...
6052 (maint_set_target_async_command): ... this.
6053 (show_target_async_command): Rename to ...
6054 (maint_show_target_async_command): ... this.
6055 (_initialize_target): Adjust.
6056 * infcmd.c (prepare_execution_command): Make extern.
6057 * inferior.h (prepare_execution_command): Declare.
6058 * infrun.c (set_observer_mode): Leave target async alone.
6059 * mi/mi-interp.c (mi_interpreter_init): Install
6060 mi_on_sync_execution_done as sync_execution_done observer.
6061 (mi_on_sync_execution_done): New function.
6062 (mi_execute_command_input_handler): Don't print the prompt if we
6063 just started a synchronous command with an async target.
6064 (mi_on_resume): Check sync_execution before printing prompt.
6065 * mi/mi-main.h (mi_async_p): Declare.
6066 * mi/mi-main.c: Include gdbcmd.h.
6067 (mi_async_p): New function.
6068 (mi_async, mi_async_1): New globals.
6069 (set_mi_async_command, show_mi_async_command, mi_async): New
6070 functions.
6071 (exec_continue): Call prepare_execution_command.
6072 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
6073 (mi_execute_async_cli_command): Use mi_async_p.
6074 (_initialize_mi_main): Install "set mi-async". Make
6075 "target-async" a deprecated alias.
6076
6077 2014-05-29 Pedro Alves <palves@redhat.com>
6078
6079 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
6080 (_initialize_cli_interp): Adjust.
6081 * event-loop.c: Include "observer.h".
6082 (start_event_loop): Notify 'command_error' observers instead of
6083 calling display_gdb_prompt. Remove FIXME comment.
6084 * event-top.c (display_gdb_prompt): Remove call into the
6085 interpreters.
6086 * inf-loop.c: Include "observer.h".
6087 (inferior_event_handler): Notify 'command_error' observers instead
6088 of calling display_gdb_prompt.
6089 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
6090 observers instead of calling display_gdb_prompt.
6091 * interps.c (interp_set): Don't call display_gdb_prompt.
6092 (current_interp_display_prompt_p): Delete.
6093 * interps.h (interp_prompt_p): Delete declaration.
6094 (interp_prompt_p_ftype): Delete.
6095 (struct interp_procs) <prompt_proc_p>: Delete field.
6096 (current_interp_display_prompt_p): Delete declaration.
6097 * mi-interp.c (mi_interpreter_prompt_p): Delete.
6098 (_initialize_mi_interp): Adjust.
6099 * tui-interp.c (tui_init): Install 'sync_execution_done' and
6100 'command_error' observers.
6101 (tui_on_sync_execution_done, tui_on_command_error): New
6102 functions.
6103 (tui_display_prompt_p): Delete.
6104 (_initialize_tui_interp): Adjust.
6105
6106 2014-05-29 Pedro Alves <palves@redhat.com>
6107
6108 PR gdb/13860
6109 * cli/cli-interp.c: Include infrun.h and observer.h.
6110 (cli_uiout, cli_interp): New globals.
6111 (cli_on_signal_received, cli_on_end_stepping_range)
6112 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
6113 functions.
6114 (cli_interpreter_init): Install them as 'end_stepping_range',
6115 'signal_received' 'signal_exited', 'exited' and 'no_history'
6116 observers.
6117 (_initialize_cli_interp): Remove cli_interp local.
6118 * infrun.c (handle_inferior_event): Call the several stop reason
6119 observers instead of printing the stop reason directly.
6120 (end_stepping_range): New function.
6121 (print_end_stepping_range_reason, print_signal_exited_reason)
6122 (print_exited_reason, print_signal_received_reason)
6123 (print_no_history_reason): Make static, and add an uiout
6124 parameter. Print to that instead of to CURRENT_UIOUT.
6125 * infrun.h (print_end_stepping_range_reason)
6126 (print_signal_exited_reason, print_exited_reason)
6127 (print_signal_received_reason print_no_history_reason): New
6128 declarations.
6129 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
6130 'mi_uiout'.
6131 <cli_uiout>: New field.
6132 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
6133 uiout for CLI output. Install 'signal_received',
6134 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
6135 observers.
6136 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
6137 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
6138 (mi_on_no_history): New functions.
6139 (ui_out_free_cleanup): Delete function.
6140 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
6141 instead use the one already stored in the MI interpreter data.
6142 (mi_ui_out): Adjust.
6143 * tui/tui-interp.c: Include infrun.h and observer.h.
6144 (tui_interp): New global.
6145 (tui_on_signal_received, tui_on_end_stepping_range)
6146 (tui_on_signal_exited, tui_on_exited)
6147 (tui_on_no_history): New functions.
6148 (tui_init): Install them as 'end_stepping_range',
6149 'signal_received' 'signal_exited', 'exited' and 'no_history'
6150 observers.
6151 (_initialize_tui_interp): Delete tui_interp local.
6152
6153 2014-05-29 Pedro Alves <palves@redhat.com>
6154
6155 PR gdb/15713
6156 * linux-nat.c (linux_nat_resume_callback): Rename the second
6157 parameter to 'except'. Skip LP if it points to EXCEPT.
6158 (linux_nat_resume): Don't mark the event lwp as not stopped
6159 before resuming sibling lwps. Instead ask
6160 linux_nat_resume_callback to skip the event lwp. Mark it as not
6161 stopped after actually resuming it.
6162 (linux_handle_syscall_trap): Mark the lwp as not stopped after
6163 resuming it.
6164 (wait_lwp): Mark the lwp as stopped here.
6165 (stop_wait_callback): Mark the lwp as not stopped right after
6166 resuming it. Don't mark lwps as stopped here.
6167 (linux_nat_filter_event): Mark the lwp as stopped earlier.
6168 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
6169
6170 2014-05-29 Pedro Alves <palves@redhat.com>
6171
6172 PR PR15693
6173 * infrun.c (resume): Determine how much to resume depending on
6174 whether the caller wanted a step, not whether we can hardware step
6175 the target. Mark all threads that we intend to run as running,
6176 unless we're calling an inferior function.
6177 (normal_stop): If the thread is running an infcall, don't finish
6178 thread state.
6179 * target.c (target_resume): Don't mark threads as running here.
6180
6181 2014-05-28 Joel Brobecker <brobecker@adacore.com>
6182
6183 * serial.c (_initialize_serial): Remove support for
6184 the "set remotebaud" and "show remotebaud" commands.
6185 * NEWS: Add entry documenting the removal of that command.
6186
6187 2014-05-28 Yao Qi <yao@codesourcery.com>
6188
6189 * charset.c: Fix typo in comments.
6190
6191 2014-05-27 Gary Benson <gbenson@redhat.com>
6192
6193 * utils.c (internal_vproblem): Prompt for a bug report.
6194
6195 2014-05-26 Andy Wingo <wingo@igalia.com>
6196
6197 * guile/scm-arch.c (arscm_mark_arch_smob):
6198 * guile/scm-block.c (bkscm_mark_block_smob)
6199 (bkscm_mark_block_syms_progress_smob):
6200 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
6201 * guile/scm-exception.c (exscm_mark_exception_smob):
6202 * guile/scm-frame.c (frscm_mark_frame_smob):
6203 * guile/scm-iterator.c (itscm_mark_iterator_smob):
6204 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
6205 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
6206 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
6207 (ppscm_mark_pretty_printer_worker_smob):
6208 * guile/scm-symbol.c (syscm_mark_symbol_smob):
6209 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
6210 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
6211 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
6212 mark functions.
6213 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
6214 function.
6215
6216 2014-05-26 Andy Wingo <wingo@igalia.com>
6217 Doug Evans <xdje42@gmail.com>
6218
6219 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
6220 empty_base_class. All uses updated.
6221 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
6222 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
6223 Adapt all callers.
6224 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
6225 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
6226 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
6227 (gdbscm_gsmob_has_property_p, add_property_name)
6228 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
6229 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
6230 (gdb-object-has-property?, gdb-object-properties): Remove.
6231 (gdb-object-kind): Renamed from gsmob-kind.
6232
6233 2014-05-26 Andy Wingo <wingo@igalia.com>
6234
6235 * configure.ac (try_guile_versions): Allow building with guile 2.2.
6236 * configure: Regenerate.
6237
6238 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
6239
6240 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
6241
6242 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
6243
6244 * record-btrace.c (record_btrace_allow_memory_access): Remove.
6245 (replay_memory_access_read_only, replay_memory_access_read_write)
6246 (replay_memory_access_types, replay_memory_access)
6247 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
6248 (cmd_set_record_btrace, cmd_show_record_btrace)
6249 (cmd_show_replay_memory_access): New.
6250 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
6251 (record_btrace_remove_breakpoint): Replace
6252 record_btrace_allow_memory_access with replay_memory_access.
6253 (_initialize_record_btrace): Add commands.
6254 * NEWS: Announce it.
6255
6256 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6257
6258 * aarch64-linux-nat.c (asm/ptrace.h): Include.
6259
6260 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6261
6262 * MAINTAINERS (Write After Approval): Move self back from
6263 paper trail.
6264
6265 2014-05-22 Pedro Alves <palves@redhat.com>
6266
6267 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
6268 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
6269 (disable_randomization, enum exec_direction_kind)
6270 (execution_direction, stop_registers, start_remote)
6271 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
6272 (wait_for_inferior, normal_stop, get_last_target_status)
6273 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
6274 (insert_step_resume_breakpoint_at_sal)
6275 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
6276 (set_step_info, print_stop_event, signal_stop_state)
6277 (signal_print_state, signal_pass_state, signal_stop_update)
6278 (signal_print_update, signal_pass_update)
6279 (update_signals_program_target, clear_exit_convenience_vars)
6280 (displaced_step_dump_bytes, update_observer_mode)
6281 (signal_catch_update, gdb_signal_from_command): Move
6282 declarations ...
6283 * infrun.h: ... to this new file.
6284 * amd64-tdep.c: Include infrun.h.
6285 * annotate.c: Include infrun.h.
6286 * arch-utils.c: Include infrun.h.
6287 * arm-linux-tdep.c: Include infrun.h.
6288 * arm-tdep.c: Include infrun.h.
6289 * break-catch-sig.c: Include infrun.h.
6290 * breakpoint.c: Include infrun.h.
6291 * common/agent.c: Include infrun.h instead of inferior.h.
6292 * corelow.c: Include infrun.h.
6293 * event-top.c: Include infrun.h.
6294 * go32-nat.c: Include infrun.h.
6295 * i386-tdep.c: Include infrun.h.
6296 * inf-loop.c: Include infrun.h.
6297 * infcall.c: Include infrun.h.
6298 * infcmd.c: Include infrun.h.
6299 * infrun.c: Include infrun.h.
6300 * linux-fork.c: Include infrun.h.
6301 * linux-nat.c: Include infrun.h.
6302 * linux-thread-db.c: Include infrun.h.
6303 * monitor.c: Include infrun.h.
6304 * nto-tdep.c: Include infrun.h.
6305 * procfs.c: Include infrun.h.
6306 * record-btrace.c: Include infrun.h.
6307 * record-full.c: Include infrun.h.
6308 * remote-m32r-sdi.c: Include infrun.h.
6309 * remote-mips.c: Include infrun.h.
6310 * remote-notif.c: Include infrun.h.
6311 * remote-sim.c: Include infrun.h.
6312 * remote.c: Include infrun.h.
6313 * reverse.c: Include infrun.h.
6314 * rs6000-tdep.c: Include infrun.h.
6315 * s390-linux-tdep.c: Include infrun.h.
6316 * solib-irix.c: Include infrun.h.
6317 * solib-osf.c: Include infrun.h.
6318 * solib-svr4.c: Include infrun.h.
6319 * target.c: Include infrun.h.
6320 * top.c: Include infrun.h.
6321 * windows-nat.c: Include infrun.h.
6322 * mi/mi-interp.c: Include infrun.h.
6323 * mi/mi-main.c: Include infrun.h.
6324 * python/py-threadevent.c: Include infrun.h.
6325
6326 2014-05-22 Pedro Alves <palves@redhat.com>
6327
6328 * infrun.c (handle_inferior_event): Store the exit code for
6329 --return-child-result here, instead of ...
6330 (print_exited_reason): ... here.
6331
6332 2014-05-21 Pedro Alves <palves@redhat.com>
6333
6334 PR gdb/13860
6335 * gdbthread.h (struct thread_control_state): New field
6336 `command_interp'.
6337 * infrun.c (follow_fork): Copy the new thread control field to the
6338 child fork thread.
6339 (clear_proceed_status_thread): Clear the new thread control field.
6340 (proceed): Set the new thread control field.
6341 * interps.h (command_interp): Declare.
6342 * interps.c (command_interpreter): New global.
6343 (command_interp): New function.
6344 (interp_exec): Set `command_interpreter' while here.
6345 * cli-out.c (cli_uiout_dtor): New function.
6346 (cli_ui_out_impl): Install it.
6347 * mi/mi-interp.c: Include cli-out.h.
6348 (mi_cmd_interpreter_exec): Add comment.
6349 (restore_current_uiout_cleanup): New function.
6350 (ui_out_free_cleanup): New function.
6351 (mi_on_normal_stop): If finishing an execution command started by
6352 a CLI command, or any kind of breakpoint-like event triggered,
6353 print the stop event to the output (CLI) stream.
6354 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
6355
6356 2014-05-21 Pedro Alves <palves@redhat.com>
6357
6358 * cli/cli-cmds.c (list_command): Handle the first "list" after the
6359 current source line having changed.
6360 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
6361 * infrun.c (normal_stop): Adjust call to
6362 set_current_sal_from_frame.
6363 * source.c (clear_lines_listed_range): New function.
6364 (set_current_source_symtab_and_line, identify_source_line): Clear
6365 the lines listed range.
6366 (line_info): Handle the first "info line" after the current source
6367 line having changed.
6368 * stack.c (print_stack_frame): Remove center handling.
6369 (set_current_sal_from_frame): Remove 'center' parameter. Don't
6370 center sal.line.
6371
6372 2014-05-21 Pedro Alves <palves@redhat.com>
6373
6374 * inf-child.c (inf_child_mourn_inferior): New function.
6375 * inf-child.h (inf_child_mourn_inferior): New declaration.
6376 * darwin-nat.c (darwin_mourn_inferior): Use
6377 inf_child_mourn_inferior.
6378 * gnu-nat.c (gnu_mourn_inferior): Likewise.
6379 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
6380 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
6381 * nto-procfs.c (procfs_mourn_inferior): Likewise.
6382 * windows-nat.c (windows_mourn_inferior): Likewise.
6383
6384 2014-05-21 Doug Evans <xdje42@gmail.com>
6385
6386 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
6387
6388 2014-05-21 Doug Evans <xdje42@gmail.com>
6389
6390 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
6391 (gdbscm_out_of_range_error): Ditto.
6392 (gdbscm_memory_error): Ditto.
6393 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
6394 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
6395 (gdbscm_out_of_range_error): Update.
6396 (gdbscm_memory_error): Update.
6397 (gdbscm_scm_to_target_string_unsafe): Delete.
6398
6399 2014-05-21 Pedro Alves <palves@redhat.com>
6400
6401 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
6402 globals.
6403 (inf_child_open_target): New function.
6404 (inf_child_open): Use inf_child_open_target to push the target
6405 instead of erroring out.
6406 (inf_child_disconnect, inf_child_close)
6407 (inf_child_maybe_unpush_target): New functions.
6408 (inf_child_target): Install inf_child_disconnect and
6409 inf_child_close. Store a pointer to the returned object.
6410 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
6411 declarations.
6412 * target.c (auto_connect_native_target): New global.
6413 (show_default_run_target): New function.
6414 (find_default_run_target): Return NULL if automatically connecting
6415 to the native target is disabled.
6416 (_initialize_target): Install set/show auto-connect-native-target.
6417 * NEWS: Mention "set auto-connect-native-target", and "target
6418 native".
6419 * linux-nat.c (super_close): New global.
6420 (linux_nat_close): Call super_close.
6421 (linux_nat_add_target): Store a pointer to the base class's
6422 to_close method.
6423 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
6424 inf_child_maybe_unpush.
6425 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
6426 already pushed.
6427 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
6428 the inferior. Use inf_child_maybe_unpush_target.
6429 (inf_ttrace_attach): Don't push the target if it is already
6430 pushed.
6431 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
6432 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
6433 after mourning the inferior. Use inf_child_maybe_unpush_target.
6434 (darwin_attach_pid): Don't push the target if it is already
6435 pushed.
6436 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
6437 mourning the inferior. Use inf_child_maybe_unpush_target.
6438 (gnu_detach): Use inf_child_maybe_unpush_target.
6439 * go32-nat.c (go32_create_inferior): Don't push the target if it
6440 is already pushed.
6441 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
6442 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
6443 (procfs_open): Rename to ...
6444 (procfs_open_1): ... this. Add target_ops parameter. Adjust
6445 comments. Can target_preopen before changing node. Call
6446 inf_child_open_target to push the target explicitly.
6447 (procfs_attach): Don't push the target if it is already pushed.
6448 (procfs_detach): Use inf_child_maybe_unpush_target.
6449 (procfs_create_inferior): Don't push the target if it is already
6450 pushed.
6451 (nto_native_ops): New global.
6452 (procfs_open): Reimplement.
6453 (procfs_native_open): New function.
6454 (init_procfs_targets): Install procfs_native_open as to_open of
6455 "target native". Store a pointer to the "native" target in
6456 nto_native_ops.
6457 * procfs.c (procfs_attach): Don't push the target if it is already
6458 pushed.
6459 (procfs_detach): Use inf_child_maybe_unpush_target.
6460 (procfs_mourn_inferior): Only unpush the target after mourning the
6461 inferior. Use inf_child_maybe_unpush_target.
6462 (procfs_init_inferior): Don't push the target if it is already
6463 pushed.
6464 * windows-nat.c (do_initial_windows_stuff): Don't push the target
6465 if it is already pushed.
6466
6467 2014-05-21 Pedro Alves <palves@redhat.com>
6468
6469 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
6470 and "procfs" targets are now called "native" instead.
6471
6472 2014-05-21 Pedro Alves <palves@redhat.com>
6473
6474 * go32-nat.c (go32_open): Delete.
6475 (go32_target): Don't override the to_open method.
6476
6477 2014-05-21 Pedro Alves <palves@redhat.com>
6478
6479 * nto-procfs.c (procfs_can_run): New function.
6480 (nto_procfs_ops): New global.
6481 (init_procfs_targets): New, based on procfs_target. Install
6482 "target native" in addition to "target procfs".
6483 (_initialize_procfs): Call init_procfs_targets instead of adding
6484 the target here.
6485
6486 2014-05-21 Pedro Alves <palves@redhat.com>
6487
6488 * windows-nat.c (windows_target): Don't override to_shortname,
6489 to_longname or to_doc.
6490
6491 2014-05-21 Pedro Alves <palves@redhat.com>
6492
6493 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
6494 to_doc.
6495
6496 2014-05-21 Pedro Alves <palves@redhat.com>
6497
6498 * darwin-nat.c (_initialize_darwin_inferior): Don't override
6499 to_shortname, to_longname or to_doc.
6500
6501 2014-05-21 Pedro Alves <palves@redhat.com>
6502
6503 * go32-nat.c (go32_target): Don't override to_shortname,
6504 to_longname or to_doc.
6505
6506 2014-05-21 Pedro Alves <palves@redhat.com>
6507
6508 * inf-child.c (inf_child_open): Remove mention of "child".
6509 (inf_child_target): Rename target to "native" instead of "child".
6510
6511 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6512
6513 * Makefile.in (SFILES): Delete "regset.c".
6514 (COMMON_OBS): Delete "regset.o".
6515 * regset.c: Remove.
6516 * regset.h (regset_alloc): Delete prototype.
6517
6518 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6519
6520 * sparc-linux-tdep.c (sparc32_linux_gregset)
6521 (sparc32_linux_fpregset): New static regset structures.
6522 (sparc32_linux_init_abi): Drop dynamic regset allocations.
6523 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
6524 'fpregset' fields.
6525 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
6526 (sparc64_linux_fpregset): New static regset structures.
6527 (sparc64_linux_init_abi): Drop dynamic regset allocations.
6528 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
6529 New static regset structures.
6530 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
6531 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
6532 New static regset structures.
6533 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
6534 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
6535 New static regset structures.
6536 (sparc64obsd_init_abi): Drop dynamic regset allocations.
6537 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
6538 New static regset structures.
6539 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
6540
6541 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6542
6543 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
6544 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
6545 register maps ("regmaps") from "*regset" to "*regmap". Do this
6546 for all regmap types and variables.
6547 * sparc-linux-tdep.c (sparc32_linux_step_trap)
6548 (sparc32_linux_supply_core_gregset)
6549 (sparc32_linux_collect_core_gregset)
6550 (sparc32_linux_supply_core_fpregset)
6551 (sparc32_linux_collect_core_fpregset): Likewise.
6552 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
6553 (sparc_gregmap, sparc_fpregmap): ... these.
6554 (sparc_supply_gregset, sparc_collect_gregset)
6555 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6556 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
6557 (_initialize_sparc_nat): Rename regmaps.
6558 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
6559 (sparc_gregmap, sparc_fpregmap): ... these.
6560 (sparc_supply_gregset, sparc_collect_gregset)
6561 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6562 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
6563 Rename macros to...
6564 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
6565 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
6566 Likewise.
6567 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
6568 Rename to...
6569 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
6570 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
6571 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
6572 regmaps.
6573 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6574 (sparc32_bsd_fpregset): Rename to...
6575 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6576 (sparc32_bsd_fpregmap): ... these.
6577 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
6578 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6579 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
6580 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
6581 (struct sparc_gregmap, struct sparc_fpregmap)
6582 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6583 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
6584 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
6585 (sparc32_supply_regset, sparc32_collect_gregset)
6586 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
6587 prototypes.
6588 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
6589 (sparc64_linux_ptrace_gregmap): ... this.
6590 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
6591 (_initialize_sparc64_linux_nat): Rename regmaps.
6592 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
6593 (sparc64_linux_core_gregmap): ... this.
6594 (sparc64_linux_supply_core_gregset)
6595 (sparc64_linux_collect_core_gregset)
6596 (sparc64_linux_supply_core_fpregset)
6597 (sparc64_linux_collect_core_fpregset): Rename regmaps.
6598 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
6599 (sparc64_sol2_fpregset): Rename to...
6600 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
6601 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
6602 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
6603 regmaps.
6604 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
6605 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
6606 (sparc64_bsd_fpregset): Rename to...
6607 (struct sparc_gregmap, sparc64_sol2_gregmap)
6608 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
6609 (sparc64_bsd_fpregmap): ... these.
6610 (sparc64_supply_gregset, sparc64_collect_gregset)
6611 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
6612 prototypes.
6613 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
6614 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
6615 (sparc64fbsd_gregmap): ... this.
6616 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
6617 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
6618 Rename regmaps.
6619 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
6620 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
6621 (sparc64nbsd_collect_fpregset): Likewise.
6622 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
6623 (sparc64nbsd_gregmap): ... this.
6624 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
6625 regmaps.
6626 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
6627 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
6628 (sparc64obsd_gregmap): ... this.
6629 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
6630 regmaps.
6631 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
6632 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
6633 (sparc32nbsd_gregmap): ... this.
6634 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
6635 regmaps.
6636
6637 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6638
6639 * score-tdep.c (score7_linux_gregset): New static regset
6640 structure.
6641 (score7_linux_regset_from_core_section): Remove dynamic regset
6642 allocation.
6643 (score_gdbarch_init): Drop allocation of tdep structure.
6644 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
6645
6646 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6647
6648 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
6649 regset structures.
6650 (am33_regset_from_core_section): Remove dynamic regset
6651 allocations.
6652
6653 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6654
6655 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
6656 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
6657 structures.
6658 (mips_linux_regset_from_core_section): Remove dynamic regset
6659 allocations.
6660 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6661 'gregset64', 'fpregset', and 'fpregset64'.
6662 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
6663 deleted tdep fields.
6664
6665 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6666
6667 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
6668 regset structures.
6669 (amd64_regset_from_core_section): Remove dynamic regset
6670 allocations.
6671 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
6672 structure.
6673 (amd64obsd_regset_from_core_section): Remove dynamic regset
6674 allocation.
6675 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
6676 Likewise.
6677 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
6678 x86-common regset supply function.
6679 * i386-tdep.c (i386_collect_gregset): Make static.
6680 (i386_gregset): New global regset structure.
6681 (i386_fpregset, i386_xstateregset): New static regset structures.
6682 (i386_regset_from_core_section): Remove dynamic regset
6683 allocations.
6684 (i386_gdbarch_init): Remove initialization of tdep fields
6685 'gregset', 'fpregset', and 'xstateregset'.
6686 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6687 'fpregset', and 'xstateregset'.
6688 (i386_collect_gregset): Remove prototype.
6689 (i386_gregset): New declaration.
6690 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
6691 structure.
6692 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
6693 allocation.
6694
6695 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6696
6697 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
6698 (arm_linux_vfpregset): New static regset structures.
6699 (arm_linux_regset_from_core_section): Remove dynamic allocation of
6700 regset structures.
6701 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
6702 and 'vfpregset' fields.
6703
6704 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6705
6706 * aarch64-linux-tdep.c (aarch64_linux_gregset)
6707 (aarch64_linux_fpregset): New static regset structures.
6708 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
6709 of regset structures.
6710 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
6711 'fpregset' fields.
6712
6713 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6714
6715 * regset.h (struct regset): Remove gdbarch field.
6716 * regset.c (regset_alloc): Drop initialization of gdbarch field.
6717 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6718 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
6719 Likewise.
6720 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
6721 (ppc32_linux_fpregset, ppc32_linux_vrregset)
6722 (ppc32_linux_vsxregset): Likewise.
6723 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
6724 via the regcache instead of the regset.
6725 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
6726 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
6727 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
6728 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
6729 Likewise.
6730
6731 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6732
6733 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
6734 Constify structures.
6735 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
6736 (alphanbsd_aout_gregset): Likewise.
6737 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
6738 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
6739 Likewise.
6740 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
6741 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
6742 Likewise.
6743 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
6744 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
6745 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
6746 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
6747 * m88k-tdep.c (m88k_gregset): Likewise.
6748 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
6749 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
6750 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6751 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
6752 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
6753 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
6754 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
6755 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
6756 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
6757 Likewise.
6758 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
6759 * sh-tdep.h (sh_corefile_gregset): Likewise.
6760 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
6761 * vax-tdep.c (vax_gregset): Likewise.
6762
6763 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6764
6765 Fix TLS access for -static -pthread.
6766 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
6767 (try_thread_db_load_1): Initialize it.
6768 (thread_db_get_thread_local_address): Call it if LM is zero.
6769 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
6770 * target.h (struct target_ops) (to_get_thread_local_address): Add
6771 load_module_addr comment.
6772
6773 2014-05-21 Pedro Alves <palves@redhat.com>
6774
6775 * dcache.c (dcache_read_memory_partial): If reading the cache line
6776 fails, fallback to reading just the memory the caller wanted.
6777
6778 2014-05-20 Doug Evans <dje@google.com>
6779
6780 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
6781 instead of get_current_arch.
6782
6783 2014-05-20 Pedro Alves <palves@redhat.com>
6784
6785 * NEWS: Mention that compare-sections now works with all targets.
6786
6787 * remote.c (PACKET_qCRC): New enum value.
6788 (remote_verify_memory): Don't send qCRC if the target has no
6789 execution. Use packet_support/packet_ok. If the target doesn't
6790 support the qCRC packet, fallback to a deep memory copy.
6791 (compare_sections_command): Say "target image" instead of "remote
6792 executable".
6793 (_initialize_remote): Add PACKET_qCRC to the list of config
6794 packets that have no associated command. Extend comment.
6795 * target.c (simple_verify_memory, default_verify_memory): New
6796 function.
6797 * target.h (struct target_ops) <to_verify_memory>: Default to
6798 default_verify_memory.
6799 (simple_verify_memory): New declaration.
6800 * target-delegates.c: Regenerate.
6801
6802 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
6803
6804 * record-btrace.c (record_btrace_step_thread): Check for empty history.
6805
6806 2014-05-20 Hui Zhu <hui@codesourcery.com>
6807 Yao Qi <yao@codesourcery.com>
6808
6809 PR backtrace/16558
6810 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
6811 and change address of sp and pc.
6812
6813 2014-05-19 Tom Tromey <tromey@redhat.com>
6814
6815 * gdbtypes.c (rank_function): Use XNEWVEC.
6816 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
6817
6818 2014-05-19 Doug Evans <dje@google.com>
6819
6820 * dwarf2read.c (build_type_psymtabs_1): Renamed from
6821 build_type_unit_groups and moved closer to only caller. Remove
6822 arguments. All references updated. Remove outdated .gdb_index
6823 comment.
6824 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
6825 build_type_psymtabs_1.
6826
6827 2014-05-19 Doug Evans <dje@google.com>
6828
6829 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
6830 n_type_unit_groups, all_type_unit_groups. All uses removed.
6831 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
6832 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
6833 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
6834 (add_type_unit_group_to_table): Delete.
6835
6836 2014-05-19 Doug Evans <dje@google.com>
6837
6838 * eval.c (evaluate_subexp_standard): Add some comments.
6839
6840 2014-05-17 Doug Evans <xdje42@gmail.com>
6841
6842 * progspace.c (remove_program_space): Delete, unused.
6843 * progspace.h (remove_program_space): Ditto.
6844
6845 2014-05-17 Doug Evans <xdje42@gmail.com>
6846
6847 * inferior.c (prune_inferiors): Fix comment.
6848 (remove_inferior_command): Call prune_program_spaces.
6849
6850 2014-05-16 Doug Evans <dje@google.com>
6851
6852 New command line option -D.
6853 * NEWS: Mention it.
6854 * main.c (set_gdb_data_directory): New function.
6855 (captured_main): Recognize -D. Flag error for --data-directory "".
6856 Call set_gdb_data_directory.
6857 (print_gdb_help): Print --data-directory, -D.
6858 * main.h (set_gdb_data_directory): Declare.
6859 * top.c (staged_gdb_datadir): New static global.
6860 (set_gdb_datadir): Call set_gdb_data_directory
6861 (show_gdb_datadir): New function.
6862 (init_main): Update init of data-directory parameter.
6863
6864 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
6865
6866 Import the "dirfd" gnulib module.
6867 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
6868 * gnulib/aclocal.m4: Update.
6869 * gnulib/config.in: Update.
6870 * gnulib/configure: Update.
6871 * gnulib/import/Makefile.am: Update.
6872 * gnulib/import/Makefile.in: Update.
6873 * gnulib/import/dirfd.c: New.
6874 * gnulib/import/m4/dirfd.m4: New.
6875 * gnulib/import/m4/gnulib-cache.m4: Update.
6876 * gnulib/import/m4/gnulib-comp.m4: Update.
6877
6878 2014-05-16 Pierre Muller <muller@sourceware.org>
6879 Yao Qi <yao@codesourcery.com>
6880
6881 * valprint.c (print_wchar): Move the code on checking whether
6882 W is a printable wide char to the default branch of switch
6883 statement below. Call wchar_printable instead of gdb_iswprint.
6884
6885 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
6886
6887 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
6888 ldr.w and ldrd instructions.
6889
6890 2014-05-15 Doug Evans <dje@google.com>
6891
6892 * dwarf2read.c (read_structure_type): Delete outdated comments.
6893
6894 2014-05-14 Tom Tromey <tromey@redhat.com>
6895
6896 * macrocmd.c (print_macro_definition): Reindent.
6897
6898 2014-05-13 Doug Evans <xdje42@gmail.com>
6899
6900 * python/py-cmd.c (cmdpy_completer): Add comment.
6901 (completers): Make const.
6902
6903 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
6904
6905 * infrun.c (resume): Remove should_resume (unused). Move up
6906 declaration of resume_ptid.
6907
6908 2014-05-13 Tom Tromey <tromey@redhat.com>
6909
6910 * language.h (unop_type_check): Remove.
6911 (binop_type_check): Don't declare.
6912
6913 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
6914
6915 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
6916 call to regcache_raw_collect.
6917
6918 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
6919
6920 * mi/mi-console.c (mi_console_raw_packet): Use the value from
6921 mi_console->quote as the quoting character.
6922
6923 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
6924
6925 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
6926
6927 2014-04-29 Tom Tromey <tromey@redhat.com>
6928
6929 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
6930 "show debug varobj".
6931
6932 2014-05-07 Kyle McMartin <kyle@redhat.com>
6933
6934 Pushed by Joel Brobecker <brobecker@adacore.com>.
6935 * aarch64-tdep.c (aarch64_software_single_step): New function.
6936 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
6937 with aarch64_software_single_step.
6938
6939 2014-05-05 Joel Brobecker <brobecker@adacore.com>
6940
6941 GDB 7.7.1 released.
6942
6943 2014-05-05 Keith Seitz <keiths@redhat.com>
6944
6945 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
6946 variable or history value is successfully parsed.
6947
6948 2014-05-05 Yao Qi <yao@codesourcery.com>
6949 Pedro Alves <palves@redhat.com>
6950
6951 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
6952 address of blocks that intersects the requested range. Trim
6953 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
6954 sections.
6955 * ctf.c (ctf_xfer_partial): Likewise.
6956
6957 2014-05-05 Yao Qi <yao@codesourcery.com>
6958
6959 * printcmd.c (display_command): Remove the check to
6960 target_has_execution.
6961
6962 2014-05-03 Mark Kettenis <kettenis@gnu.org>
6963
6964 * ppcobsd-nat.c: Include "obsd-nat.h".
6965 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
6966 add_target.
6967 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
6968
6969 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
6970
6971 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
6972 and 16-bit signed and unsigned arguments. Update comment.
6973 (stap_parse_probe_arguments): Extend code to handle such
6974 arguments. Use warning instead of complaint to notify about
6975 unrecognized bitness.
6976
6977 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
6978
6979 PR breakpoints/16889
6980 * stap-probe.c (stap_parse_probe_arguments): Simplify
6981 check for non-prefixed probes (i.e., probes whose
6982 arguments do not start with "N@"). Always set the
6983 argument type to a sane value.
6984
6985 2014-05-01 David Taylor <dtaylor@emc.com>
6986
6987 * remote.c (compare_sections_command): Add -r option to compare
6988 all loadable read-only sections.
6989
6990 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
6991
6992 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
6993 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
6994 Update all callers.
6995 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
6996 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
6997 Remove unused CORE_ADDR argument. Update all callers.
6998
6999 2014-04-29 Pedro Alves <palves@redhat.com>
7000
7001 * remote.c (struct packet_config) <detect>: Extend comment.
7002 (add_packet_config_cmd): Don't set the config's detect or support
7003 fields here.
7004 (init_all_packet_configs): Also initialize the config's 'detect'
7005 field.
7006 (reset_all_packet_configs_support): New function.
7007 (remote_open_1): Call reset_all_packet_configs_support instead of
7008 init_all_packet_configs.
7009 (_initialize_remote): Initialize all packet configs. Assert that
7010 all packets have an associated command, except a few known
7011 outliers.
7012
7013 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7014
7015 * dwarf2read.c (read_subrange_type): Handle dynamic
7016 DW_AT_lower_bound attributes.
7017
7018 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7019
7020 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
7021 dynamic bounds before computing its upper bound.
7022 (ada_discrete_type_low_bound): Same as above with the lower bound.
7023
7024 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7025
7026 * dwarf2read.c (is_dynamic_type): Return true for dynamic
7027 range types. Adjust the array handling implementation to
7028 take advantage of this change.
7029 (resolve_dynamic_range): New function, mostly extracted from
7030 resolve_dynamic_bounds.
7031 (resolve_dynamic_array): New function, mostly extracted from
7032 resolve_dynamic_bounds.
7033 (resolve_dynamic_bounds): Delete.
7034 (resolve_dynamic_type): Reimplement. Add handling of
7035 TYPE_CODE_RANGE types.
7036
7037 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7038
7039 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
7040 handling of parallel ___XA types.
7041
7042 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7043
7044 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
7045 unnecessary second call to static_unwrap_type.
7046
7047 2014-04-27 Hui Zhu <hui@codesourcery.com>
7048
7049 * stack.c (print_frame_info): Call do_gdb_disassembly with
7050 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
7051
7052 2014-04-26 Doug Evans <xdje42@gmail.com>
7053
7054 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
7055
7056 2014-04-25 Pedro Alves <palves@redhat.com>
7057
7058 PR server/16255
7059 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
7060 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
7061 and newline from built string.
7062 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
7063 (linux_ptrace_attach_fail_reason): ... this.
7064 * linux-nat.c (linux_nat_attach): Adjust to use
7065 linux_ptrace_attach_fail_reason.
7066
7067 2014-04-25 Pedro Alves <palves@redhat.com>
7068
7069 * remote.c (struct remote_state): Remove multi_process_aware,
7070 non_stop_aware, cond_tracepoints, cond_breakpoints,
7071 breakpoint_commands, fast_tracepoints, static_tracepoints,
7072 install_in_trace, disconnected_tracing,
7073 enable_disable_tracepoints, string_tracing, and
7074 augmented_libraries_svr4_read fields.
7075 (remote_multi_process_p): Move further below in the file.
7076 (struct packet_config): Add comments.
7077 (update_packet_config): Delete function.
7078 (show_packet_config_cmd): Use packet_config_support.
7079 (add_packet_config_cmd): Use NULL as set callback.
7080 (packet_ok): "set remote foo-packet"-style commands no longer
7081 change config->supported -- adjust.
7082 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
7083 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
7084 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
7085 (PACKET_QNonStop, PACKET_multiprocess_feature)
7086 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
7087 (PACKET_DisconnectedTracing_feature)
7088 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
7089 (set_remote_protocol_packet_cmd): Delete function.
7090 (packet_config_support, packet_support): New functions.
7091 (set_remote_protocol_Z_packet_cmd): Don't call
7092 update_packet_config.
7093 (remote_query_attached, remote_pass_signals)
7094 (remote_program_signals, remote_threads_info)
7095 (remote_threads_extra_info, remote_start_remote): Use
7096 packet_support.
7097 (remote_start_remote): Use packet_config_support and
7098 packet_support.
7099 (init_all_packet_configs): Set all packets to unknown support,
7100 instead of calling update_packet_config.
7101 (remote_check_symbols): Use packet_support.
7102 (remote_supported_packet): Unconditionally set the packet config's
7103 support status.
7104 (remote_multi_process_feature, remote_non_stop_feature)
7105 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
7106 (remote_breakpoint_commands_feature)
7107 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
7108 (remote_install_in_trace_feature)
7109 (remote_disconnected_tracing_feature)
7110 (remote_enable_disable_tracepoint_feature)
7111 (remote_string_tracing_feature)
7112 (remote_augmented_libraries_svr4_read_feature): Delete functions.
7113 (remote_protocol_features): Adjust to use remote_supported_packet
7114 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
7115 "ConditionalTracepoints", "ConditionalBreakpoints",
7116 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
7117 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
7118 "EnableDisableTracepoints", and "tracenz".
7119 (remote_query_supported): Use packet_support.
7120 (remote_open_1): Adjust.
7121 (extended_remote_attach_1): Use packet_support. Switch on the
7122 result of packet_ok instead of checking whether the packet ended
7123 up disabled.
7124 (remote_vcont_resume): Use packet_support.
7125 (remote_resume, remote_stop_ns, fetch_register_using_p)
7126 (remote_prepare_to_store, store_register_using_P)
7127 (check_binary_download, remote_write_bytes): Use packet_support.
7128 (remote_vkill): Use packet_support. Switch on the result of
7129 packet_ok instead of checking whether the packet ended up
7130 disabled.
7131 (extended_remote_supports_disable_randomization): Use
7132 packet_support.
7133 (extended_remote_run): Switch on the result of packet_ok instead
7134 of checking whether the packet ended up disabled.
7135 (remote_insert_breakpoint, remote_remove_breakpoint)
7136 (remote_insert_watchpoint, remote_remove_watchpoint)
7137 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
7138 packet_support.
7139 (remote_search_memory): Use packet_config_support.
7140 (remote_get_thread_local_address, remote_get_tib_address)
7141 (remote_hostio_send_command, remote_can_execute_reverse): Use
7142 packet_support.
7143 (remote_supports_cond_tracepoints)
7144 (remote_supports_cond_breakpoints)
7145 (remote_supports_fast_tracepoints)
7146 (remote_supports_static_tracepoints)
7147 (remote_supports_install_in_trace)
7148 (remote_supports_enable_disable_tracepoint)
7149 (remote_supports_string_tracing)
7150 (remote_can_run_breakpoint_commands): Rewrite, checking whether
7151 the packet config says the feature is enabled or disabled.
7152 (remote_download_tracepoint, remote_trace_set_readonly_regions)
7153 (remote_get_trace_status): Use packet_support.
7154 (remote_set_disconnected_tracing): Adjust to check whether the
7155 feature is enabled with packet_support.
7156 (remote_set_trace_buffer_size, remote_use_agent)
7157 (remote_can_use_agent, remote_supports_btrace): Use
7158 packet_support.
7159 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
7160 Use packet_config_support.
7161 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
7162 the packet config says the feature is enabled or disabled.
7163 (set_range_stepping): Use packet_support.
7164
7165 2014-04-25 Tom Tromey <tromey@redhat.com>
7166
7167 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
7168 argument.
7169
7170 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
7171
7172 * NEWS: Mention support for C99 variable length arrays.
7173
7174 2014-04-24 Joel Brobecker <brobecker@adacore.com>
7175
7176 * ada-lang.c (standard_exc): Expand introductory comment.
7177
7178 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
7179 Walfred Tedeschi <walfred.tedeschi@intel.com>
7180
7181 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
7182 AVX512 registers.
7183 (amd64_linux_read_description): Add code to handle AVX512 xstate
7184 mask and return respective tdesc.
7185 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
7186 and features/i386/x32-avx512-linux.c.
7187 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
7188 (amd64_linux_core_read_description): Add code to handle AVX512
7189 xstate mask and return respective tdesc.
7190 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
7191 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
7192 calculation.
7193 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
7194 (tdesc_amd64_avx512_linux): New prototype.
7195 (tdesc_x32_avx512_linux): Likewise.
7196 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
7197 features/i386/x32-avx512.c.
7198 (amd64_ymm_avx512_names): New register names for pseudo
7199 registers YMM16-31.
7200 (amd64_ymmh_avx512_names): New register names for raw registers
7201 YMMH16-31.
7202 (amd64_k_names): New register names for K registers.
7203 (amd64_zmmh_names): New register names for ZMM raw registers.
7204 (amd64_zmm_names): New registers names for ZMM pseudo registers.
7205 (amd64_xmm_avx512_names): New register names for XMM16-31
7206 registers.
7207 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
7208 registers.
7209 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
7210 if feature is present.
7211 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
7212 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
7213 (AMD64_NUM_REGS): Adjust to new number of registers.
7214 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
7215 registers supplied via XSTATE by AVX512 registers.
7216 (i386_linux_read_description): Add case for AVX512.
7217 * i386-linux-tdep.c: Include i386-avx512-linux.c.
7218 (i386_linux_gregset_reg_offset): Add AVX512 registers.
7219 (i386_linux_core_read_description): Add case for AVX512.
7220 (i386_linux_init_abi): Install supported register note section
7221 for AVX512.
7222 (_initialize_i386_linux_tdep): Add call to tdesc init function for
7223 AVX512.
7224 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
7225 registers to be number of zmm7h + 1.
7226 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
7227 * i386-tdep.c: Include features/i386/i386-avx512.c.
7228 (i386_zmm_names): Add ZMM pseudo register names array.
7229 (i386_zmmh_names): Add ZMM raw register names array.
7230 (i386_k_names): Add K raw register names array.
7231 (num_lower_zmm_regs): Add constant for the number of lower ZMM
7232 registers. AVX512 has 16 more ZMM registers than there are YMM
7233 registers.
7234 (i386_zmmh_regnum_p): Add function to look up register number of
7235 ZMM raw registers.
7236 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
7237 (i386_k_regnum_p): Likewise for K raw registers.
7238 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
7239 registers added by AVX512.
7240 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
7241 registers added by AVX512.
7242 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
7243 added by AVX512.
7244 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
7245 (i386_pseudo_register_name): Add ZMM pseudo registers.
7246 (i386_zmm_type): Construct and return vector registers type for ZMM
7247 registers.
7248 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
7249 ZMM0-31 pseudo registers and K registers.
7250 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
7251 and YMM16-31 registers from register cache.
7252 (i386_pseudo_register_write): Add code to write K, ZMM and
7253 YMM16-31 registers.
7254 (i386_register_reggroup_p): Add code to include/exclude AVX512
7255 registers in/from respective register groups.
7256 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
7257 registers if feature is present in xcr0.
7258 (i386_gdbarch_init): Add code to initialize AVX512 feature
7259 variables in tdep structure, wire in pseudo registers and call
7260 initialize_tdesc_i386_avx512.
7261 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
7262 variables.
7263 (i386_regnum): Add AVX512 registers.
7264 (I386_SSE_NUM_REGS): New define for number of SSE registers.
7265 (I386_AVX_NUM_REGS): Likewise for AVX registers.
7266 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
7267 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
7268 512 bits wide.
7269 (i386_xmm_avx512_regnum_p): New prototype for register look up.
7270 (i386_ymm_avx512_regnum_p): Likewise.
7271 (i386_k_regnum_p): Likewise.
7272 (i386_zmm_regnum_p): Likewise.
7273 (i386_zmmh_regnum_p): Likewise.
7274 * i387-tdep.c : Update year in copyright notice.
7275 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
7276 XSAVE buffer.
7277 (XSAVE_YMM_AVX512_ADDR): New macro.
7278 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
7279 XSAVE buffer.
7280 (XSAVE_XMM_AVX512_ADDR): New macro.
7281 (xsave_avx512_k_offset): New table for K register offsets in
7282 XSAVE buffer.
7283 (XSAVE_AVX512_K_ADDR): New macro.
7284 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
7285 in XSAVE buffer.
7286 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
7287 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
7288 buffer.
7289 (i387_collect_xsave): Add code to collect AVX512 registers from
7290 XSAVE buffer.
7291 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
7292 of XMM16-31 registers.
7293 (I387_NUM_K_REGS): New define for number of K registers.
7294 (I387_K0_REGNUM): New define for K0 register number.
7295 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
7296 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
7297 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
7298 registers.
7299 (I387_YMM16H_REGNUM): New define for YMM16H register number.
7300 (I387_XMM16_REGNUM): New define for XMM16 register number.
7301 (I387_YMM0_REGNUM): New define for YMM0 register number.
7302 (I387_KEND_REGNUM): New define for last K register number.
7303 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
7304 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
7305 number.
7306 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
7307 number.
7308 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
7309 size.
7310 * features/Makefile: Add AVX512 related files.
7311 * features/i386/32bit-avx512.xml: New file.
7312 * features/i386/64bit-avx512.xml: Likewise.
7313 * features/i386/amd64-avx512-linux.c: Likewise.
7314 * features/i386/amd64-avx512-linux.xml: Likewise.
7315 * features/i386/amd64-avx512.c: Likewise.
7316 * features/i386/amd64-avx512.xml: Likewise.
7317 * features/i386/i386-avx512-linux.c: Likewise.
7318 * features/i386/i386-avx512-linux.xml: Likewise.
7319 * features/i386/i386-avx512.c: Likewise.
7320 * features/i386/i386-avx512.xml: Likewise.
7321 * features/i386/x32-avx512-linux.c: Likewise.
7322 * features/i386/x32-avx512-linux.xml: Likewise.
7323 * features/i386/x32-avx512.c: Likewise.
7324 * features/i386/x32-avx512.xml: Likewise.
7325 * regformats/i386/amd64-avx512-linux.dat: New file.
7326 * regformats/i386/amd64-avx512.dat: Likewise.
7327 * regformats/i386/i386-avx512-linux.dat: Likewise.
7328 * regformats/i386/i386-avx512.dat: Likewise.
7329 * regformats/i386/x32-avx512-linux.dat: Likewise.
7330 * regformats/i386/x32-avx512.dat: Likewise.
7331 * NEWS: Add note about new support for AVX512.
7332
7333
7334 2014-04-23 Pedro Alves <palves@redhat.com>
7335
7336 * breakpoint.c (insert_bp_location): Tolerate errors if the
7337 breakpoint is set in a user-loaded objfile.
7338 (remove_breakpoint_1): Likewise. Also tolerate errors if the
7339 location is marked shlib_disabled. If the breakpoint is set in a
7340 user-loaded objfile is a GDB-side memory breakpoint, validate it
7341 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
7342 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
7343 flag.
7344 * mem-break.c (memory_validate_breakpoint): New function.
7345 * objfiles.c (userloaded_objfile_contains_address_p): New
7346 function.
7347 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
7348 * target.h (memory_validate_breakpoint): New declaration.
7349
7350 2014-04-23 Pedro Alves <palves@redhat.com>
7351
7352 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
7353 the breakpoint is set in a shared library, only suppress
7354 errors for software breakpoints, not hardware breakpoints.
7355
7356 2014-04-22 Pedro Alves <palves@redhat.com>
7357
7358 * infrun.c (schedlock_applies): New function, factored out from
7359 find_thread_needs_step_over.
7360 (find_thread_needs_step_over): Use it.
7361 (switch_back_to_stepped_thread): Always clear trap_expected if the
7362 step over is finished. Return early if scheduler locking applies.
7363 Look for the stepping thread and a potential step-over thread with
7364 a single loop.
7365 (currently_stepping_or_nexting_callback): Delete.
7366
7367 2014-04-22 Nick Clifton <nickc@redhat.com>
7368
7369 * NEWS: Mention that ARM sim now supports tracing.
7370
7371 2014-04-22 Yao Qi <yao@codesourcery.com>
7372
7373 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
7374 to ...
7375 * tracefile.c (tracefile_fetch_registers): ... it. New
7376 function.
7377 * tracefile.h (tracefile_fetch_registers): Declare.
7378 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
7379 tracefile_fetch_registers.
7380
7381 2014-04-19 Eli Zaretskii <eliz@gnu.org>
7382
7383 PR gdb/14018
7384 * windows-nat.c (thread_rec): Don't display a warning when
7385 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
7386 fails for any reason, set th->suspended to -1, so that we don't
7387 try to resume such a thread. Also, don't return NULL in these
7388 cases, to avoid completely ruin the session due to "PC register is
7389 not available" error.
7390 (do_windows_fetch_inferior_registers): Check errors in
7391 GetThreadContext call.
7392 (windows_continue): Accept an additional argument KILLED; if not
7393 zero, ignore errors in the SetThreadContext call, since the
7394 inferior was killed and is shutting down.
7395 (windows_resume, get_windows_debug_event)
7396 (windows_create_inferior, windows_mourn_inferior)
7397 (windows_kill_inferior): All callers of windows_continue changed
7398 to adjust to its new calling sequence.
7399
7400 2014-04-19 Yao Qi <yao@codesourcery.com>
7401
7402 * ctf.c (ctf_open): Call post_create_inferior.
7403
7404 2014-04-19 Yao Qi <yao@codesourcery.com>
7405
7406 * ctf.c (handle_id): New static variable.
7407 (ctf_open_dir): Get handle_id from bt_context_add_trace return
7408 value. Get the declaration of event "register" and get length
7409 of field "contents".
7410
7411 2014-04-19 Yao Qi <yao@codesourcery.com>
7412
7413 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
7414
7415 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
7416
7417 * valops.c (oload_method_static): Remove unnecessary argument
7418 METHOD. Update all callers.
7419
7420 2014-04-18 Pedro alves <palves@redhat.com>
7421 Tom Tromey <tromey@redhat.com>
7422
7423 PR backtrace/15558
7424 * frame.c (get_prev_frame_1): Rename to ...
7425 (get_prev_frame_always): ... this, and make extern. Adjust.
7426 (skip_artificial_frames): Use get_prev_frame_always.
7427 (frame_unwind_caller_id, frame_pop, get_prev_frame)
7428 (get_frame_unwind_stop_reason): Adjust to rename.
7429 * frame.h (get_prev_frame_always): Declare.
7430 * inline-frame.c: Include frame.h.
7431 (inline_frame_this_id): Use get_prev_frame_always.
7432
7433 2014-04-18 Tristan Gingold <gingold@adacore.com>
7434
7435 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
7436 code by using bfd_mach_o_get_base_address.
7437
7438 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
7439
7440 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
7441 (spu_ax_pseudo_register_collect): New function.
7442 (spu_ax_pseudo_register_push_stack): Likewise.
7443 (spu_dwarf_reg_to_regnum): Likewise.
7444 (spu_gdbarch_init): Install them. Append DWARF unwinders.
7445
7446 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
7447
7448 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
7449 Replace FRAME argument with FRAME_ID.
7450 * gdbarch.c, gdbarch.h: Regenerate.
7451 * findvar.c (default_value_from_register): Add GDBARCH argument;
7452 replace FRAME by FRAME_ID. No longer call get_frame_id.
7453 (value_from_register): Update call to gdbarch_value_from_register.
7454 * value.h (default_value_from_register): Update prototype.
7455 * s390-linux-tdep.c (s390_value_from_register): Update interface
7456 and call to default_value_from_register.
7457 * spu-tdep.c (spu_value_from_register): Likewise.
7458
7459 * findvar.c (address_from_register): Remove TYPE argument.
7460 Do not call value_from_register; use gdbarch_value_from_register
7461 with null_frame_id instead.
7462 * value.h (address_from_register): Update prototype.
7463 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
7464 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
7465 address_from_register interface change.
7466
7467 2014-04-17 Yao Qi <yao@codesourcery.com>
7468
7469 * gdbtypes.h: Update comments to link to types and macros'
7470 definitions.
7471
7472 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
7473
7474 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
7475
7476 2014-04-16 Keith Seitz <keiths@redhat.com>
7477
7478 PR gdb/15827
7479 * dwarf2read.c (skip_one_die): Check that all relative-offset
7480 sibling DIEs fall within range of the current reader's buffer.
7481 (read_partial_die): Likewise.
7482
7483 2014-04-16 Keith Seitz <keiths@redhat.com>
7484
7485 PR c++/16597
7486 * cp-namespace.c (lookup_symbol_file): If the type name of
7487 `this' is NULL, return immediately.
7488
7489 2014-04-14 Keith Seitz <keiths@redhat.com>
7490
7491 PR c++/16253
7492 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
7493 from symbol_matches_domain in symtab.c. All local callers
7494 of symbol_matches_domain updated.
7495 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
7496 search STRUCT_DOMAIN.
7497 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
7498 independently. standard_lookup will do that automatically.
7499 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
7500 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7501 (cp_lookup_symbol_in_namespace): Likewise.
7502 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
7503 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
7504 may return a STRUCT_DOMAIN match.
7505 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
7506 * cp-support.c: Include language.h.
7507 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
7508 VAR_DOMAIN.
7509 * psymtab.c (match_partial_symbol): Compare the requested
7510 domain with the symbol's domain directly.
7511 (lookup_partial_symbol): Likewise.
7512 * symtab.c (lookup_symbol_in_language): Explain when/why
7513 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7514 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
7515 appropriate languages.
7516 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
7517 and moved to ada-lang.c
7518 (lookup_block_symbol): Explain that this function only returns
7519 symbol matching the requested DOMAIN.
7520 Compare the requested domain with the symbol's domain directly.
7521 (iterate_over_symbols): Compare the requested domain with the
7522 symbol's domain directly.
7523 * symtab.h (symbol_matches_domain): Remove.
7524
7525 2014-04-14 Tom Tromey <tromey@redhat.com>
7526
7527 PR c++/15246:
7528 * c-exp.y (type_aggregate_p): New function.
7529 (qualified_name, classify_inner_name): Use it.
7530 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
7531 and TYPE_TARGET_TYPE of an enum type.
7532 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
7533 an enum type.
7534 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
7535 handle TYPE_DECLARED_CLASS.
7536 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
7537 types.
7538 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
7539 * valops.c (enum_constant_from_type): New function.
7540 (value_aggregate_elt): Use it.
7541 * cp-namespace.c (cp_lookup_nested_symbol): Handle
7542 TYPE_CODE_ENUM.
7543
7544 2014-04-14 Tom Tromey <tromey@redhat.com>
7545
7546 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
7547 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
7548 const.
7549 * value.h (value_aggregate_elt): Update.
7550
7551 2014-04-14 Tom Tromey <tromey@redhat.com>
7552
7553 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
7554
7555 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7556
7557 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7558 (evaluate_subexp_standard): Pass noside argument.
7559 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7560 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7561 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7562 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7563 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7564
7565 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7566
7567 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7568 points to a constant blob.
7569
7570 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7571
7572 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7573 property and store it as the high bound and flag the range accordingly.
7574 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7575 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7576 * gdbtypes.h (enum range_flags): New enum.
7577 (struct range_bounds): Add flags member.
7578
7579 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7580
7581 * c-typeprint.c (c_type_print_varspec_suffix): Added
7582 check for not yet resolved high bound. If unresolved, print
7583 "variable length" string to the console instead of random
7584 length.
7585
7586 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7587
7588 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
7589 value.
7590 (ada_template_to_fixed_record_type_1): Likewise.
7591 (ada_to_fixed_type_1): Likewise.
7592 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7593 (cp_print_value): Likewise.
7594 * d-valprint.c (dynamic_array_type): Likewise.
7595 * findvar.c (address_of_variable): Likewise.
7596 * jv-valprint.c (java_value_print): Likewise.
7597 * valops.c (value_ind): Likewise.
7598 * value.c (coerce_ref): Likewise.
7599
7600 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7601
7602 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7603 value and retrieve the dynamic type size.
7604
7605 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7606
7607 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7608 passed to sizeof is dynamic evaluate the argument to compute the length.
7609
7610 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7611 Joel Brobecker <brobecker@adacore.com>
7612
7613 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7614 (dwarf2_evaluate_property): New function.
7615 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7616 * dwarf2read.c (attr_to_dynamic_prop): New function.
7617 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7618 attribute.
7619 * gdbtypes.c: Include dwarf2loc.h.
7620 (is_dynamic_type): New function.
7621 (resolve_dynamic_type): New function.
7622 (resolve_dynamic_bounds): New function.
7623 (get_type_length): New function.
7624 (check_typedef): Use get_type_length to compute type length.
7625 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7626 (TYPE_LOW_BOUND_KIND): New macro.
7627 (is_dynamic_type): New function prototype.
7628 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7629 to resolve dynamic properties of the type. Update comment.
7630 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7631
7632 2014-04-14 Richard Henderson <rth@redhat.com>
7633
7634 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
7635
7636 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
7637 Doug Evans <xdje42@gmail.com>
7638
7639 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
7640 dereference TYPE_CODE_REF values.
7641
7642 2014-04-11 Joel Brobecker <brobecker@adacore.com>
7643
7644 Revert the following changes due to regressions:
7645
7646 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7647 (dwarf2_evaluate_property): New function.
7648 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7649 * dwarf2read.c (attr_to_dynamic_prop): New function.
7650 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7651 attribute.
7652 * gdbtypes.c: Include dwarf2loc.h.
7653 (is_dynamic_type): New function.
7654 (resolve_dynamic_type): New function.
7655 (resolve_dynamic_bounds): New function.
7656 (get_type_length): New function.
7657 (check_typedef): Use get_type_length to compute type length.
7658 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7659 (TYPE_LOW_BOUND_KIND): New macro.
7660 (is_dynamic_type): New function prototype.
7661 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7662 to resolve dynamic properties of the type. Update comment.
7663 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7664
7665 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7666 passed to sizeof is dynamic evaluate the argument to compute the length.
7667
7668 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7669 value and retrieve the dynamic type size.
7670
7671 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7672 (ada_template_to_fixed_record_type_1): Likewise.
7673 (ada_to_fixed_type_1): Likewise.
7674 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7675 (cp_print_value): Likewise.
7676 * d-valprint.c (dynamic_array_type): Likewise.
7677 * eval.c (evaluate_subexp_with_coercion): Likewise.
7678 * findvar.c (address_of_variable): Likewise.
7679 * jv-valprint.c (java_value_print): Likewise.
7680 * valops.c (value_ind): Likewise.
7681 * value.c (coerce_ref): Likewise.
7682
7683 * c-typeprint.c (c_type_print_varspec_suffix): Added
7684 check for not yet resolved high bound. If unresolved, print
7685 "variable length" string to the console instead of random
7686 length.
7687
7688 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7689 property and store it as the high bound and flag the range accordingly.
7690 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7691 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7692 * gdbtypes.h (enum range_flags): New enum.
7693 (struct range_bounds): Add flags member.
7694
7695 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7696 points to a constant blob.
7697
7698 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7699 (evaluate_subexp_standard): Pass noside argument.
7700 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7701 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7702 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7703 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7704 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7705
7706 2014-04-11 Keith Seitz <keiths@redhat.com>
7707
7708 PR c++/16675
7709 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
7710 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
7711 reference types.
7712
7713 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7714
7715 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7716 (evaluate_subexp_standard): Pass noside argument.
7717 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7718 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7719 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7720 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7721 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7722
7723 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7724
7725 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7726 points to a constant blob.
7727
7728 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7729
7730 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7731 property and store it as the high bound and flag the range accordingly.
7732 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7733 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7734 * gdbtypes.h (enum range_flags): New enum.
7735 (struct range_bounds): Add flags member.
7736
7737 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7738
7739 * c-typeprint.c (c_type_print_varspec_suffix): Added
7740 check for not yet resolved high bound. If unresolved, print
7741 "variable length" string to the console instead of random
7742 length.
7743
7744 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7745
7746 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7747 (ada_template_to_fixed_record_type_1): Likewise.
7748 (ada_to_fixed_type_1): Likewise.
7749 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7750 (cp_print_value): Likewise.
7751 * d-valprint.c (dynamic_array_type): Likewise.
7752 * eval.c (evaluate_subexp_with_coercion): Likewise.
7753 * findvar.c (address_of_variable): Likewise.
7754 * jv-valprint.c (java_value_print): Likewise.
7755 * valops.c (value_ind): Likewise.
7756 * value.c (coerce_ref): Likewise.
7757
7758 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7759
7760 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7761 value and retrieve the dynamic type size.
7762
7763 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7764
7765 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7766 passed to sizeof is dynamic evaluate the argument to compute the length.
7767
7768 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7769
7770 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7771 (dwarf2_evaluate_property): New function.
7772 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7773 * dwarf2read.c (attr_to_dynamic_prop): New function.
7774 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7775 attribute.
7776 * gdbtypes.c: Include dwarf2loc.h.
7777 (is_dynamic_type): New function.
7778 (resolve_dynamic_type): New function.
7779 (resolve_dynamic_bounds): New function.
7780 (get_type_length): New function.
7781 (check_typedef): Use get_type_length to compute type length.
7782 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7783 (TYPE_LOW_BOUND_KIND): New macro.
7784 (is_dynamic_type): New function prototype.
7785 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7786 to resolve dynamic properties of the type. Update comment.
7787 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7788
7789 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7790
7791 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
7792 declaring high/low bounds and change uses accordingly. Call
7793 create_range_type instead of create_static_range_type.
7794 * gdbtypes.c (create_range_type): New function.
7795 (create_range_type): Convert bounds into struct bound_prop and pass
7796 them to create_range_type.
7797 * gdbtypes.h (struct bound_prop): New struct.
7798 (create_range_type): New function prototype.
7799 (struct range_bounds): Use struct bound_prop instead of LONGEST for
7800 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
7801 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
7802 part of the bound.
7803 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
7804
7805 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7806
7807 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
7808 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
7809 * ada-lang.c: All uses of create_range_type updated.
7810 * coffread.c: All uses of create_range_type updated.
7811 * dwarf2read.c: All uses of create_range_type updated.
7812 * f-exp.y: All uses of create_range_type updated.
7813 * m2-valprint.c: All uses of create_range_type updated.
7814 * mdebugread.c: All uses of create_range_type updated.
7815 * stabsread.c: All uses of create_range_type updated.
7816 * valops.c: All uses of create_range_type updated.
7817 * valprint.c: All uses of create_range_type updated.
7818
7819 2014-04-10 Pedro Alves <palves@redhat.com>
7820
7821 * breakpoint.c (single_step_breakpoints)
7822 (single_step_gdbarch): Move up in the file.
7823 (one_breakpoint_xfer_memory): New function, factored out from ...
7824 (breakpoint_xfer_memory): ... here. Also process single-step
7825 breakpoints.
7826
7827 2014-04-09 Tristan Gingold <gingold@adacore.com>
7828
7829 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
7830 comments.
7831 (darwin_decode_exception_message): Free port only after use.
7832
7833 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
7834
7835 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
7836 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
7837 when setting the size of call_length.
7838
7839 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
7840
7841 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
7842 dereference TYPE_CODE_REF values.
7843
7844 2014-04-07 Joel Brobecker <brobecker@adacore.com>
7845
7846 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
7847 end of warning message.
7848
7849 2014-04-03 Doug Evans <dje@google.com>
7850
7851 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
7852 of stub_comp_unit_die, stub_comp_dir is non-NULL.
7853
7854 2014-04-02 Alan Modra <amodra@gmail.com>
7855
7856 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
7857 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
7858 (struct symbol_file_add_from_memory_args): Add size field.
7859 (find_vdso_size): New function.
7860 (add_vsyscall_page): Attempt to find vdso size.
7861
7862 2014-04-01 Doug Evans <dje@google.com>
7863
7864 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
7865
7866 2014-04-01 Tristan Gingold <gingold@adacore.com>
7867
7868 * darwin-nat.c (darwin_encode_reply): Add prototype.
7869 (darwin_decode_exception_message): Reply to unknown inferiors.
7870 (darwin_decode_message): Handle message by id. Ignore message
7871 to unknown inferior.
7872 (darwin_wait): Discard unknown messages, add debug trace.
7873
7874 2014-03-31 Doug Evans <dje@google.com>
7875
7876 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
7877 comp_dir_string.
7878
7879 2014-03-31 Doug Evans <dje@google.com>
7880
7881 New option "set print symbol-loading".
7882 * NEWS: Mention it.
7883 * solib.c (solib_read_symbols): Only print symbol loading messages
7884 if requested.
7885 (solib_add): If symbol loading is in "brief" mode, notify user
7886 symbols are being loaded.
7887 (reload_shared_libraries_1): Ditto.
7888 * symfile.c (print_symbol_loading_off): New static global.
7889 (print_symbol_loading_brief): New static global.
7890 (print_symbol_loading_full): New static global.
7891 (print_symbol_loading_enums): New static global.
7892 (print_symbol_loading): New static global.
7893 (print_symbol_loading_p): New function.
7894 (symbol_file_add_with_addrs): Only print symbol loading messages
7895 if requested.
7896 (_initialize_symfile): Register "print symbol-loading" set/show
7897 command.
7898 * symfile.h (print_symbol_loading_p): Declare.
7899
7900 2014-03-30 Doug Evans <xdje42@gmail.com>
7901
7902 * infrun.c (set_last_target_status): New function.
7903 (handle_inferior_event): Call it.
7904
7905 2014-03-30 Doug Evans <xdje42@gmail.com>
7906
7907 * inferior.h (enum stop_kind): Improve comment.
7908
7909 2014-03-28 Joel Brobecker <brobecker@adacore.com>
7910
7911 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
7912 a reference, strip the reference layer before calling
7913 the lang_ops value_has_mutated callback.
7914
7915 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
7916
7917 Remove some globals from our parser.
7918 * language.c (unk_lang_parser): Add "struct parser_state"
7919 argument.
7920 * language.h (struct language_defn) <la_parser>: Likewise.
7921 * parse.c (expout, expout_size, expout_ptr): Remove variables.
7922 (initialize_expout): Add "struct parser_state" argument.
7923 Rewrite function to use the parser state.
7924 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
7925 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
7926 write_exp_elt_longcst, write_exp_elt_dblcst,
7927 write_exp_elt_decfloatcst, write_exp_elt_type,
7928 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
7929 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
7930 write_dollar_variable): Likewise.
7931 (parse_exp_in_context_1): Use parser state.
7932 (insert_type_address_space): Add "struct parser_state" argument.
7933 Use parser state.
7934 (increase_expout_size): New function.
7935 * parser-defs.h: Forward declare "struct language_defn" and
7936 "struct parser_state".
7937 (expout, expout_size, expout_ptr): Remove extern declarations.
7938 (parse_gdbarch, parse_language): Rewrite macro declarations to
7939 accept the parser state.
7940 (struct parser_state): New struct.
7941 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
7942 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
7943 write_exp_elt_decfloatcst, write_exp_elt_type,
7944 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
7945 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
7946 write_exp_msymbol, write_dollar_variable,
7947 mark_struct_expression, insert_type_address_space): Add "struct
7948 parser_state" argument.
7949 (increase_expout_size): New function.
7950 * utils.c (do_clear_parser_state): New function.
7951 (make_cleanup_clear_parser_state): Likewise.
7952 * utils.h (make_cleanup_clear_parser_state): New function
7953 prototype.
7954 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
7955 Update calls to write_exp* in order to pass the parser state.
7956 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
7957 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
7958 (i386_stap_parse_special_token_three_arg_disp): Likewise.
7959 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
7960 * stap-probe.c (stap_parse_register_operand): Likewise.
7961 (stap_parse_single_operand): Likewise.
7962 (stap_parse_argument_1): Likewise.
7963 (stap_parse_argument): Use parser state.
7964 * stap-probe.h: Include "parser-defs.h".
7965 (struct stap_parse_info) <pstate>: New field.
7966 * c-exp.y (parse_type): Rewrite to use parser state.
7967 (yyparse): Redefine to c_parse_internal.
7968 (pstate): New global variable.
7969 (parse_number): Add "struct parser_state" argument.
7970 (write_destructor_name): Likewise.
7971 (type_exp): Update calls to write_exp* and similars in order to
7972 use parser state.
7973 (exp1, exp, variable, qualified_name, space_identifier,
7974 typename, typebase): Likewise.
7975 (write_destructor_name, parse_number, lex_one_token,
7976 classify_name, classify_inner_name, c_parse): Add "struct
7977 parser_state" argument. Update function to use parser state.
7978 * c-lang.h: Forward declare "struct parser_state".
7979 (c_parse): Add "struct parser_state" argument.
7980 * ada-exp.y (parse_type): Rewrite macro to use parser state.
7981 (yyparse): Redefine macro to ada_parse_internal.
7982 (pstate): New variable.
7983 (write_int, write_object_renaming, write_var_or_type,
7984 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
7985 type_int, type_long, type_long_long, type_float, type_double,
7986 type_long_double, type_char, type_boolean, type_system_address):
7987 Add "struct parser_state" argument.
7988 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
7989 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
7990 var_or_type, aggregate, aggregate_component_list,
7991 positional_list, others, component_group,
7992 component_associations): Update calls to write_exp* and similar
7993 functions in order to use parser state.
7994 (ada_parse, write_var_from_sym, write_int,
7995 write_exp_op_with_string, write_object_renaming,
7996 find_primitive_type, write_selectors, write_ambiguous_var,
7997 write_var_or_type, write_name_assoc, type_int, type_long,
7998 type_long_long, type_float, type_double, type_long_double,
7999 type_char, type_boolean, type_system_address): Add "struct
8000 parser_state" argument. Adjust function to use parser state.
8001 * ada-lang.c (parse): Likewise.
8002 * ada-lang.h: Forward declare "struct parser_state".
8003 (ada_parse): Add "struct parser_state" argument.
8004 * ada-lex.l (processInt, processReal): Likewise. Adjust all
8005 calls to both functions.
8006 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
8007 parser state.
8008 (yyparse): Redefine macro to f_parse_internal.
8009 (pstate): New variable.
8010 (parse_number): Add "struct parser_state" argument.
8011 (type_exp, exp, subrange, typebase): Update calls to write_exp*
8012 and similars in order to use parser state.
8013 (parse_number): Adjust code to use parser state.
8014 (yylex): Likewise.
8015 (f_parse): New function.
8016 * f-lang.h: Forward declare "struct parser_state".
8017 (f_parse): Add "struct parser_state" argument.
8018 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
8019 parser state.
8020 (yyparse): Redefine macro for java_parse_internal.
8021 (pstate): New variable.
8022 (push_expression_name, push_expression_name, insert_exp): Add
8023 "struct parser_state" argument.
8024 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
8025 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
8026 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
8027 PostIncrementExpression, PostDecrementExpression,
8028 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
8029 UnaryExpressionNotPlusMinus, CastExpression,
8030 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
8031 RelationalExpression, EqualityExpression, AndExpression,
8032 ExclusiveOrExpression, InclusiveOrExpression,
8033 ConditionalAndExpression, ConditionalOrExpression,
8034 ConditionalExpression, Assignment, LeftHandSide): Update
8035 calls to write_exp* and similars in order to use parser state.
8036 (parse_number): Ajust code to use parser state.
8037 (yylex): Likewise.
8038 (java_parse): New function.
8039 (push_variable): Add "struct parser_state" argument. Adjust
8040 code to user parser state.
8041 (push_fieldnames, push_qualified_expression_name,
8042 push_expression_name, insert_exp): Likewise.
8043 * jv-lang.h: Forward declare "struct parser_state".
8044 (java_parse): Add "struct parser_state" argument.
8045 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
8046 parser state.
8047 (yyparse): Redefine macro to m2_parse_internal.
8048 (pstate): New variable.
8049 (type_exp, exp, fblock, variable, type): Update calls to
8050 write_exp* and similars to use parser state.
8051 (yylex): Likewise.
8052 (m2_parse): New function.
8053 * m2-lang.h: Forward declare "struct parser_state".
8054 (m2_parse): Add "struct parser_state" argument.
8055 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
8056 * objc-lang.h: Forward declare "struct parser_state".
8057 (end_msglist): Add "struct parser_state" argument.
8058 * p-exp.y (parse_type): Rewrite macro to use parser state.
8059 (yyparse): Redefine macro to pascal_parse_internal.
8060 (pstate): New variable.
8061 (parse_number): Add "struct parser_state" argument.
8062 (type_exp, exp1, exp, qualified_name, variable): Update calls to
8063 write_exp* and similars in order to use parser state.
8064 (parse_number, yylex): Adjust code to use parser state.
8065 (pascal_parse): New function.
8066 * p-lang.h: Forward declare "struct parser_state".
8067 (pascal_parse): Add "struct parser_state" argument.
8068 * go-exp.y (parse_type): Rewrite macro to use parser state.
8069 (yyparse): Redefine macro to go_parse_internal.
8070 (pstate): New variable.
8071 (parse_number): Add "struct parser_state" argument.
8072 (type_exp, exp1, exp, variable, type): Update calls to
8073 write_exp* and similars in order to use parser state.
8074 (parse_number, lex_one_token, classify_name, yylex): Adjust code
8075 to use parser state.
8076 (go_parse): Likewise.
8077 * go-lang.h: Forward declare "struct parser_state".
8078 (go_parse): Add "struct parser_state" argument.
8079
8080 2014-03-27 Doug Evans <dje@google.com>
8081
8082 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
8083
8084 2014-03-27 Doug Evans <dje@google.com>
8085
8086 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
8087 Remove argument abbrev_section. All callers updated.
8088
8089 2014-03-27 Doug Evans <dje@google.com>
8090
8091 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
8092 addr_base, ranges_base.
8093
8094 2014-03-26 Keith Seitz <keiths@redhat.com>
8095
8096 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
8097 types, not VAR_DOMAIN.
8098
8099 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
8100
8101 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
8102 "ra" registers.
8103 * features/nios2-linux.c: Regenerated.
8104 * features/nios2.c: Regenerated.
8105
8106 2014-03-25 Pedro Alves <palves@redhat.com>
8107
8108 * cli/cli-script.c (script_from_file): Force the interpreter to
8109 sync mode.
8110
8111 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
8112
8113 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
8114 small stack allocation.
8115
8116 2014-03-24 Tristan Gingold <gingold@adacore.com>
8117
8118 * darwin-nat.c (exc_server): Remove unused prototype.
8119 (darwin_dump_message): Correctly display data on x86_64.
8120 (darwin_encode_reply): Fix style.
8121 Add comments and fix indentation.
8122
8123 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
8124
8125 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
8126
8127 2014-03-22 Doug Evans <xdje42@gmail.com>
8128
8129 * infcmd.c: Whitespace fixes.
8130 (interrupt_command): Merge two function comments into one.
8131
8132 2014-03-22 Doug Evans <xdje42@gmail.com>
8133
8134 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
8135 All uses updated.
8136
8137 2014-03-22 Yao Qi <yao@codesourcery.com>
8138
8139 * remote.c (target_read_live_memory): Remove.
8140 (memory_xfer_live_readonly_partial): Rename it to
8141 remote_xfer_live_readonly_partial. Remove argument 'object'.
8142 All callers updated. Call remote_read_bytes_1
8143 instead of target_read_live_memory.
8144 * tracepoint.c (set_traceframe_number): Remove.
8145 (make_cleanup_restore_traceframe_number): Likewise .
8146 * tracepoint.h (set_traceframe_number): Remove declaration.
8147 (make_cleanup_restore_traceframe_number): Likewise.
8148
8149 2014-03-22 Yao Qi <yao@codesourcery.com>
8150
8151 * remote.c (remote_read_bytes): Move code on reading from the
8152 remote stub to ...
8153 (remote_read_bytes_1): ... here. New function.
8154
8155 2014-03-22 Yao Qi <yao@codesourcery.com>
8156
8157 * ctf.c (ctf_xfer_partial): Check the return value of
8158 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
8159 return TARGET_XFER_UNAVAILABLE.
8160 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8161 * target.c (target_read_live_memory): Move it to remote.c.
8162 (memory_xfer_live_readonly_partial): Likewise.
8163 (memory_xfer_partial_1): Move some code to remote_read_bytes.
8164 * remote.c (target_read_live_memory): Moved from target.c.
8165 (memory_xfer_live_readonly_partial): Likewise.
8166 (remote_read_bytes): Factored out from
8167 memory_xfer_partial_1.
8168
8169 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
8170
8171 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
8172 NULL pointer.
8173
8174 2014-03-21 Pedro Alves <palves@redhat.com>
8175
8176 * infrun.c (normal_stop): Extend comment.
8177
8178 2014-03-21 Hui Zhu <hui@codesourcery.com>
8179 Pedro Alves <palves@redhat.com>
8180
8181 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
8182 static buffer.
8183 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
8184 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
8185 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
8186
8187 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
8188
8189 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
8190 `z' formatted output modifier.
8191
8192 2014-03-20 Tom Tromey <tromey@redhat.com>
8193 Sergio Durigan Junior <sergiodj@redhat.com>
8194
8195 * probe.c (parse_probes): Turn assert into an ordinary error.
8196 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
8197 exceptions when parsing probes. Rearrange the code for clarity.
8198
8199 2014-03-20 Tom Tromey <tromey@redhat.com>
8200
8201 PR gdb/14135
8202 * top.c (execute_command): Only dispatch events if the command
8203 started the target.
8204
8205 2014-03-20 Tom Tromey <tromey@redhat.com>
8206
8207 PR cli/15718
8208 * infcall.c: Include event-top.h.
8209 (run_inferior_call): Call async_disable_stdin if needed.
8210
8211 2014-03-20 Pedro Alves <palves@redhat.com>
8212
8213 * infrun.c (prepare_to_proceed): Delete.
8214 (thread_still_needs_step_over): New function.
8215 (find_thread_needs_step_over): New function.
8216 (proceed): If the current thread needs a step-over, set its
8217 steping_over_breakpoint flag. Adjust to use
8218 find_thread_needs_step_over instead of prepare_to_proceed.
8219 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
8220 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
8221 breakpoint.
8222 (switch_back_to_stepped_thread): Step over breakpoints of all
8223 threads not the stepping thread, before switching back to the
8224 stepping thread.
8225
8226 2014-03-20 Pedro Alves <palves@redhat.com>
8227
8228 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
8229 extern.
8230 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
8231 * infrun.c (saved_singlestep_ptid)
8232 (stepping_past_singlestep_breakpoint): Delete.
8233 (resume): Remove stepping_past_singlestep_breakpoint handling.
8234 (proceed): Store the prev_pc of the stepping thread too.
8235 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
8236 singlestep_pc.
8237 (enum infwait_states): Delete infwait_thread_hop_state.
8238 (struct execution_control_state) <hit_singlestep_breakpoint>: New
8239 field.
8240 (handle_inferior_event): Adjust.
8241 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
8242 handling and the thread-hop code. Before removing single-step
8243 breakpoints, check whether the thread hit a single-step breakpoint
8244 of another thread. If it did, the trap is not a random signal.
8245 (switch_back_to_stepped_thread): If the event thread hit a
8246 single-step breakpoint, unblock it before switching to the
8247 stepping thread. Handle the case of the stepped thread having
8248 advanced already.
8249 (keep_going): Handle the case of the current thread moving past a
8250 single-step breakpoint.
8251
8252 2014-03-20 Pedro Alves <palves@redhat.com>
8253
8254 PR breakpoints/7143
8255 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
8256 are being stepped over.
8257 (breakpoint_address_match): Make extern.
8258 * breakpoint.h (breakpoint_address_match): New declaration.
8259 * inferior.h (stepping_past_instruction_at): New declaration.
8260 * infrun.c (struct step_over_info): New type.
8261 (step_over_info): New global.
8262 (set_step_over_info, clear_step_over_info)
8263 (stepping_past_instruction_at): New functions.
8264 (handle_inferior_event): Clear the step-over info when
8265 trap_expected is cleared.
8266 (resume): Remove now stale comment.
8267 (clear_proceed_status): Clear step-over info.
8268 (proceed): Adjust step-over handling to set or clear the step-over
8269 info instead of removing all breakpoints.
8270 (handle_signal_stop): When setting up a thread-hop, don't remove
8271 breakpoints here.
8272 (stop_stepping): Clear step-over info.
8273 (keep_going): Adjust step-over handling to set or clear step-over
8274 info and then always inserting breakpoints, instead of removing
8275 all breakpoints when stepping over one.
8276
8277 2014-03-20 Pedro Alves <palves@redhat.com>
8278
8279 * infrun.c (previous_inferior_ptid): Adjust comment.
8280 (deferred_step_ptid): Delete.
8281 (infrun_thread_ptid_changed, prepare_to_proceed)
8282 (init_wait_for_inferior): Adjust.
8283 (handle_signal_stop): Delete deferred_step_ptid handling.
8284
8285 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
8286
8287 PR gdb/15358
8288 * defs.h (sync_quit_force_run): New declaration.
8289 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
8290 * event-top.c (async_sigterm_handler): New declaration.
8291 (async_sigterm_token): New variable.
8292 (async_init_signals): Create also async_sigterm_token.
8293 (async_sigterm_handler): New function.
8294 (sync_quit_force_run): New variable.
8295 (handle_sigterm): Replace quit_force call by other calls.
8296 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
8297
8298 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
8299
8300 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
8301 offset into SPE pseudo registers.
8302
8303 2014-03-18 Pedro Alves <palves@redhat.com>
8304
8305 PR gdb/13860
8306 * inferior.h (print_stop_event): Declare.
8307 * infrun.c (print_stop_event): New, factored out from ...
8308 (normal_stop): ... this.
8309 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
8310 of bpstat_print/print_stack_frame.
8311
8312 2014-03-17 Tom Tromey <tromey@redhat.com>
8313
8314 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
8315
8316 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
8317
8318 * ada-lang.c (decode_constrained_packed_array): Perform a
8319 minimal coercion for reference with coerce_ref instead of
8320 ada_coerce_ref.
8321
8322 2014-03-17 Tristan Gingold <gingold@adacore.com>
8323
8324 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
8325 (darwin_solib_create_inferior_hook): Emit a warning if version
8326 is unhandled.
8327
8328 2014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
8329
8330 * python/py-value.c (get_field_flag): Cast flag_name argument to
8331 PyObject_GetAttrString to support Python 2.4.
8332
8333 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8334
8335 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
8336 (Global Maintainers): Remove Jan Kratochvil.
8337
8338 2014-03-14 Pedro Alves <palves@redhat.com>
8339
8340 * inferior.h (terminal_ours_for_output): Rename to ...
8341 (child_terminal_ours_for_output): ... this.
8342 (terminal_save_ours): Rename to ...
8343 (child_terminal_save_ours): ... this.
8344 (terminal_ours): Rename to ...
8345 (child_terminal_ours): ... this.
8346 (terminal_inferior): Rename to ...
8347 (child_terminal_inferior): ... this.
8348 (terminal_init_inferior): Rename to ...
8349 (child_terminal_init_inferior): ... this.
8350 (terminal_init_inferior_with_pgrp): Rename to ...
8351 (child_terminal_init_inferior_with_pgrp): ... this.
8352 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
8353 (child_terminal_init_with_pgrp): ... this.
8354 (terminal_save_ours): Rename to ...
8355 (child_terminal_save_ours): ... this.
8356 (terminal_init_inferior): Rename to ...
8357 (child_terminal_init): ... this. Adjust.
8358 (terminal_inferior): Rename to ...
8359 (child_terminal_inferior): ... this.
8360 (terminal_ours_for_output): Rename to ...
8361 (child_terminal_ours_for_output): ... this. Adjust.
8362 (terminal_ours): Rename to ...
8363 (child_terminal_ours): ... this.
8364 (terminal_ours_1): Rename to ...
8365 (child_terminal_ours_1): ... this. Adjust.
8366 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
8367 * windows-nat.c (do_initial_windows_stuff): Adjust.
8368 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
8369 (gnu_terminal_init): ... this. Adjust.
8370 (gnu_target): Adjust.
8371 * inf-child.c (inf_child_target): Adjust.
8372
8373 2014-03-13 Doug Evans <xdje42@gmail.com>
8374
8375 PR guile/16612
8376 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
8377 new eq?-hashtab.
8378
8379 2014-03-13 Doug Evans <xdje42@gmail.com>
8380
8381 * value.c (record_latest_value): Call release_value_or_incref
8382 instead of release_value.
8383
8384 2014-03-13 Pedro Alves <palves@redhat.com>
8385
8386 * procfs.c (procfs_target): Don't override to_shortname,
8387 to_longname or to_doc.
8388
8389 2014-03-13 Pedro Alves <palves@redhat.com>
8390
8391 * inf-child.c (inf_child_open, inf_child_target): Don't mention
8392 Unix in user visible strings.
8393
8394 2014-03-12 Stan Shebs <stan@codesourcery.com>
8395
8396 * gdbtypes.h: Annotate comments for Doxygen, add a page
8397 block comment with some general info.
8398
8399 2014-03-12 Pedro Alves <palves@redhat.com>
8400
8401 * infcmd.c (prepare_execution_command): New function, factored out
8402 from several execution commands.
8403 (run_command_1, continue_command, step_1, jump_command)
8404 (signal_command, until_command, advance_command, finish_command)
8405 (attach_command): Use prepare_execution_command.
8406
8407 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
8408
8409 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
8410 (MAX_BPTS): Define.
8411 (MAX_WPTS): Define.
8412 (struct arm_linux_thread_points): Removed.
8413 (struct arm_linux_process_info): New.
8414 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
8415 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
8416 (arm_linux_find_breakpoints_by_tid): Removed.
8417 (struct arch_lwp_info): New.
8418 (arm_linux_find_process_pid): New functions.
8419 (arm_linux_add_process): New functions.
8420 (arm_linux_process_info_get): New functions.
8421 (arm_linux_forget_process): New function.
8422 (arm_linux_get_debug_reg_state): New function.
8423 (struct update_registers_data): New.
8424 (update_registers_callback): New function.
8425 (arm_linux_insert_hw_breakpoint1): Updated.
8426 (arm_linux_remove_hw_breakpoint1): Updated.
8427 (arm_linux_insert_hw_breakpoint): Updated.
8428 (arm_linux_remove_hw_breakpoint): Updated.
8429 (arm_linux_insert_watchpoint): Updated.
8430 (arm_linux_remove_watchpoint): Updated.
8431 (arm_linux_new_thread): Updated.
8432 (arm_linux_prepare_to_resume): New function.
8433 (arm_linux_new_fork): New function.
8434 (_initialize_arm_linux_nat): Updated.
8435
8436 2014-03-12 Pedro Alves <palves@redhat.com>
8437
8438 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
8439
8440 2014-03-12 Tom Tromey <tromey@redhat.com>
8441
8442 * inf-child.c (return_zero): New function.
8443 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
8444 * aix-thread.c (aix_thread_inferior_created): New function.
8445 (aix_thread_attach): Remove.
8446 (init_aix_thread_ops): Don't set to_attach.
8447 (_initialize_aix_thread): Register inferior_created observer.
8448 * corelow.c (init_core_ops): Don't set to_attach or
8449 to_create_inferior.
8450 * exec.c (init_exec_ops): Don't set to_attach or
8451 to_create_inferior.
8452 * infcmd.c (run_command_1): Use find_run_target. Make direct
8453 target calls.
8454 (attach_command): Use find_attach_target. Make direct target
8455 calls.
8456 * record-btrace.c (init_record_btrace_ops): Don't set
8457 to_create_inferior.
8458 * record-full.c (record_full_can_async_p, record_full_is_async_p):
8459 Remove.
8460 (init_record_full_ops, init_record_full_core_ops): Update. Don't
8461 set to_create_inferior.
8462 * target.c (complete_target_initialization): Add assertion.
8463 (target_create_inferior): Remove.
8464 (find_default_attach, find_default_create_inferior): Remove.
8465 (find_attach_target, find_run_target): New functions.
8466 (find_default_is_async_p, find_default_can_async_p)
8467 (target_supports_non_stop, target_attach): Remove.
8468 (init_dummy_target): Don't set to_create_inferior or
8469 to_supports_non_stop.
8470 * target.h (struct target_ops) <to_attach>: Add comment. Remove
8471 TARGET_DEFAULT_FUNC.
8472 <to_create_inferior>: Add comment.
8473 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
8474 TARGET_DEFAULT_RETURN.
8475 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
8476 (find_attach_target, find_run_target): Declare.
8477 (target_create_inferior): Remove.
8478 (target_has_execution_1): Update comment.
8479 (target_supports_non_stop): Remove.
8480 * target-delegates.c: Rebuild.
8481
8482 2014-03-12 Pedro Alves <palves@redhat.com>
8483
8484 * inf-child.h: Update comment to not mention Unix.
8485
8486 2014-03-12 Pedro Alves <palves@redhat.com>
8487
8488 * inf-child.c: Update top comment to not mention Unix. Add
8489 generic comment describing how this target is meant to be used.
8490 (inf_child_post_attach, inf_child_post_startup_inferior)
8491 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
8492 Unix in comment.
8493
8494 2014-03-12 Pedro Alves <palves@redhat.com>
8495
8496 * nto-procfs.c: Include inf-child.h.
8497 (procfs_ops): Delete global.
8498 (procfs_can_run): Delete method.
8499 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
8500 target pointer instead of referencing procfs_ops.
8501 (procfs_prepare_to_store): Delete.
8502 (init_procfs_ops): Delete function.
8503 (procfs_target): New function, based on init_procfs_ops, but
8504 inherit inf_child_target.
8505 (_initialize_procfs): Use procfs_target.
8506
8507 2014-03-12 Pedro Alves <palves@redhat.com>
8508
8509 * windows-nat.c: Include inf-child.h.
8510 (windows_ops): Delete global.
8511 (windows_open, windows_prepare_to_store, windows_can_run): Delete
8512 methods.
8513 (init_windows_ops): Delete function.
8514 (windows_target): New function, based on init_windows_ops, but
8515 inherit inf_child_target.
8516 (_initialize_windows_nat): Use windows_target. Install x86
8517 specific target methods here.
8518
8519 2014-03-10 Doug Evans <xdje42@gmail.com>
8520
8521 * guile/guile.c (call_initialize_gdb_module): New function.
8522 (initialize_guile): Replace call to scm_init_guile with call to
8523 scm_with_guile.
8524
8525 2014-03-10 Joel Brobecker <brobecker@adacore.com>
8526
8527 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
8528 in call to TYPE_CODE macro.
8529
8530 2014-03-10 Jerome Guitton <guitton@adacore.com>
8531
8532 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
8533 Resolve tagged types to full view.
8534
8535 2014-03-10 Hui Zhu <hui@codesourcery.com>
8536
8537 * target.h (target_insert_breakpoint): Remove "hardware" from its
8538 comments.
8539
8540 2014-03-07 Doug Evans <dje@google.com>
8541
8542 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
8543
8544 2014-03-07 Doug Evans <dje@google.com>
8545
8546 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
8547 Remove unused local comp_dir_attr. Assert exactly one of
8548 stub_comp_unit_die, stub_comp_dir is non-NULL.
8549
8550 2014-03-07 Joel Brobecker <brobecker@adacore.com>
8551
8552 * target.h (complete_target_initialization, add_target):
8553 Add comment.
8554
8555 2014-03-07 Pedro Alves <palves@redhat.com>
8556
8557 * go32-nat.c: Include inf-child.h.
8558 (go32_ops): Delete global.
8559 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
8560 Delete methods.
8561 (go32_create_inferior): Push the passed in target pointer instead
8562 of referencing go32_ops.
8563 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
8564 (go32_target): New function, based on init_go32_ops, but inherit
8565 inf_child_target.
8566 (_initialize_go32_nat): Use go32_target. Move parts of
8567 init_go32_ops here.
8568
8569 2014-03-06 Joel Brobecker <brobecker@adacore.com>
8570
8571 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
8572 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
8573 SYMBOL_VALUE_ADDRESS.
8574 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
8575
8576 2014-03-06 Yao Qi <yao@codesourcery.com>
8577
8578 * breakpoint.c (get_tracepoint_by_number): Remove argument
8579 optional_p. All callers updated. Adjust comments. Update
8580 output message.
8581 * breakpoint.h (get_tracepoint_by_number): Update declaration.
8582
8583 2014-03-06 Yao Qi <yao@codesourcery.com>
8584
8585 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
8586 early if get_number returns zero. Use 'p' instead of 'args'.
8587
8588 2014-03-06 Yao Qi <yao@codesourcery.com>
8589
8590 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
8591 message.
8592
8593 2014-03-06 Yao Qi <yao@codesourcery.com>
8594
8595 PR breakpoints/16508
8596 * tracepoint.c (check_trace_running): New function.
8597 (trace_find_command): Move code to check_trace_running and
8598 call check_trace_running.
8599 (trace_find_pc_command): Likewise.
8600 (trace_find_tracepoint_command): Likewise.
8601 (trace_find_line_command): Likewise.
8602 (trace_find_range_command): Likewise.
8603 * tracepoint.h (check_trace_running): Likewise.
8604 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
8605
8606 2014-03-06 Yao Qi <yao@codesourcery.com>
8607
8608 * target.h (struct target_ops) <to_traceframe_info>: Use
8609 TARGET_DEFAULT_NORETURN (tcomplain ()).
8610 * target-delegates.c: Regenerated.
8611
8612 2014-03-05 Pedro Alves <palves@redhat.com>
8613
8614 PR gdb/16575
8615 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
8616 void. Update comment.
8617 (dcache_xfer_memory): Delete.
8618 (dcache_read_memory_partial): New, based on the read bits of
8619 dcache_xfer_memory.
8620 (dcache_update): Add status parameter. Use ULONGEST for len, and
8621 adjust. Discard cache lines if the reason for the update was
8622 error.
8623 * dcache.h (dcache_xfer_memory): Delete declaration.
8624 (dcache_read_memory_partial): New declaration.
8625 (dcache_update): Update prototype.
8626 * target.c (raw_memory_xfer_partial): Update the dcache here.
8627 (memory_xfer_partial_1): Don't handle dcache writes here.
8628
8629 2014-03-05 Mike Frysinger <vapier@gentoo.org>
8630
8631 * remote-sim.c (gdbsim_load): Add const to prog.
8632
8633 2014-03-03 Tom Tromey <tromey@redhat.com>
8634
8635 * elfread.c (probe_key): Change to bfd_data.
8636 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
8637 now per-BFD, not per-objfile.
8638 * stap-probe.c (stap_probe_destroy): Update comment.
8639 (handle_stap_probe): Allocate on the per-BFD obstack.
8640
8641 2014-03-03 Tom Tromey <tromey@redhat.com>
8642
8643 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
8644 * breakpoint.c (create_longjmp_master_breakpoint): Use
8645 get_probe_address.
8646 (add_location_to_breakpoint, bkpt_probe_insert_location)
8647 (bkpt_probe_remove_location): Update.
8648 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
8649 * elfread.c (elf_symfile_relocate_probe): Remove.
8650 (elf_probe_fns): Update.
8651 (insert_exception_resume_breakpoint): Change type of "probe"
8652 parameter to bound_probe.
8653 (check_exception_resume): Update.
8654 * objfiles.c (objfile_relocate1): Don't relocate probes.
8655 * probe.c (bound_probe_s): New typedef.
8656 (parse_probes): Use get_probe_address. Set sal's objfile.
8657 (find_probe_by_pc): Return a bound_probe.
8658 (collect_probes): Return a VEC(bound_probe_s).
8659 (compare_probes): Update.
8660 (gen_ui_out_table_header_info): Change type of "probes"
8661 parameter. Update.
8662 (info_probes_for_ops): Update.
8663 (get_probe_address): New function.
8664 (probe_safe_evaluate_at_pc): Update.
8665 * probe.h (struct probe_ops) <get_probe_address>: New field.
8666 <set_semaphore, clear_semaphore>: Add objfile parameter.
8667 (struct probe) <objfile>: Remove field.
8668 <arch>: New field.
8669 <address>: Update comment.
8670 (struct bound_probe): New.
8671 (find_probe_by_pc): Return a bound_probe.
8672 (get_probe_address): Declare.
8673 * solib-svr4.c (struct probe_and_action) <address>: New field.
8674 (hash_probe_and_action, equal_probe_and_action): Update.
8675 (register_solib_event_probe): Add address parameter.
8676 (solib_event_probe_at): Update.
8677 (svr4_create_probe_breakpoints): Add objfile parameter. Use
8678 get_probe_address.
8679 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
8680 (stap_get_probe_address): New function.
8681 (stap_can_evaluate_probe_arguments, compute_probe_arg)
8682 (compile_probe_arg): Update.
8683 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
8684 address.
8685 (handle_stap_probe): Don't relocate the probe.
8686 (stap_relocate): Remove.
8687 (stap_gen_info_probes_table_values): Update.
8688 (stap_probe_ops): Remove stap_relocate.
8689 * symfile-debug.c (debug_sym_relocate_probe): Remove.
8690 (debug_sym_probe_fns): Update.
8691 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
8692 * symtab.c (init_sal): Use memset.
8693 * symtab.h (struct symtab_and_line) <objfile>: New field.
8694 * tracepoint.c (start_tracing, stop_tracing): Update.
8695
8696 2014-03-03 Tom Tromey <tromey@redhat.com>
8697
8698 * probe.h (parse_probes, find_probe_by_pc)
8699 (find_probes_in_objfile): Fix comments.
8700
8701 2014-03-02 Doug Evans <xdje42@gmail.com>
8702
8703 * infrun.c (handle_signal_stop): Replace test for
8704 TARGET_WAITKIND_STOPPED with an assert.
8705
8706 2014-03-02 Doug Evans <xdje42@gmail.com>
8707
8708 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
8709
8710 2014-03-02 Doug Evans <xdje42@gmail.com>
8711
8712 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
8713
8714 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8715
8716 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
8717
8718 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8719
8720 * i386obsd-nat.c: Include "obsd-nat.h".
8721 (_initialize_i386obsd_nat): Call obsd_add_target instead of
8722 add_target.
8723 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8724
8725 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8726
8727 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
8728
8729 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8730
8731 * mips64obsd-nat.c: Include "obsd-nath".
8732 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
8733 add_target
8734 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8735
8736 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8737
8738 * amd64obsd-nat.c: Include "obsd-nat,h.
8739 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
8740 add_target.
8741 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8742
8743 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
8744
8745 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
8746 (find_overload_match): Update call to find_oload_champ.
8747 (find_oload_champ_namespace_loop): Likewise
8748
8749 2014-02-28 Mark Kettenis <kettenis@gnu.org>
8750
8751 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
8752
8753 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
8754 * config/sparc/obsd64.mh: New file.
8755 * sparc64obsd-nat.c: New file.
8756
8757 * obsd-nat.h: New file.
8758 * obsd-nat.c: New file.
8759 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
8760 (ALLDEPFILES): Add obsd-nat.c.
8761
8762 2014-02-28 Tom Tromey <tromey@redhat.com>
8763
8764 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
8765 * cli-out.h (cli_ui_out_impl): Now const.
8766 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
8767 * ui-out.c (struct ui_out) <impl>: Now const.
8768 (default_ui_out_impl): Now const.
8769 (ui_out_new): Make 'impl' parameter const.
8770 * ui-out.h (ui_out_new): Update.
8771
8772 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8773
8774 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
8775
8776 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8777
8778 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
8779
8780 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
8781
8782 Additional PR 8882 fix.
8783 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
8784
8785 2014-02-27 Pedro Alves <palves@redhat.com>
8786
8787 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
8788 isn't set.
8789
8790 2014-02-27 Pedro Alves <palves@redhat.com>
8791
8792 PR 12702
8793 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
8794 * nat/linux-waitpid.c: Include string.h.
8795 (status_to_str): Moved here and made extern.
8796 * nat/linux-waitpid.h (status_to_str): New declaration.
8797
8798 2014-02-27 Hui Zhu <hui@codesourcery.com>
8799
8800 PR 12702
8801 * infrun.c (ptid_match): Move ...
8802 * common/ptid.c (ptid_match): ... here.
8803 * inferior.h (ptid_match): Move ...
8804 * common/ptid.h (ptid_match): ... here.
8805
8806 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8807
8808 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
8809 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
8810 gdb_target_obs.
8811
8812 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8813
8814 * obsd-tdep.c (obsd_auxv_parse): New function.
8815 (obsd_init_abi): Set auxv_parse.
8816
8817 * gdbarch.sh (auxv_parse): New.
8818 * gdbarch.h: Regenerated.
8819 * gdbarch.c: Regenerated.
8820 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
8821
8822 2014-02-26 Ludovic Courtès <ludo@gnu.org>
8823
8824 * guile/scm-value.c (gdbscm_history_append_x): New function.
8825 (value_functions): Add it.
8826
8827 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8828
8829 * dwarf2read.c (attr_value_as_address): New function.
8830 (dwarf2_find_base_address, read_call_site_scope): Use
8831 attr_value_as_address in place of DW_ADDR.
8832 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
8833 the low and high addresses. Slight rework of the handling
8834 of the high pc being a constant form, and limit it to
8835 DWARF verson 4 or higher.
8836 (dwarf2_record_block_ranges): Likewise.
8837 (read_partial_die): Likewise.
8838 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
8839
8840 2014-02-26 Tom Tromey <tromey@redhat.com>
8841
8842 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
8843
8844 2014-02-26 Tom Tromey <tromey@redhat.com>
8845
8846 * elfread.c (elf_read_minimal_symbols): Return early if
8847 minimal symbols have already been read. Add "ei" parameter.
8848 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
8849 * minsyms.c (prim_record_minimal_symbol_full): Update.
8850 * objfiles.h (struct objstats) <n_minsyms>: Move...
8851 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
8852 * symmisc.c (print_objfile_statistics): Update.
8853
8854 2014-02-26 Tom Tromey <tromey@redhat.com>
8855
8856 * elfread.c (elf_read_minimal_symbols): New function, from
8857 elf_symfile_read.
8858 (elf_symfile_read): Call it.
8859
8860 2014-02-26 Tom Tromey <tromey@redhat.com>
8861
8862 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
8863 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
8864 (lookup_minimal_symbol_solib_trampoline)
8865 (lookup_minimal_symbol_by_pc_section_1)
8866 (lookup_minimal_symbol_and_objfile): Update.
8867 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
8868 Don't allocate a minimal symbol if minsyms have already been read.
8869 (build_minimal_symbol_hash_tables): Update.
8870 (install_minimal_symbols): Do nothing if minsyms already read.
8871 Use the per-BFD obstack.
8872 (terminate_minimal_symbol_table): Use the per-BFD obstack.
8873 * objfiles.c (allocate_objfile): Call
8874 terminate_minimal_symbol_table later.
8875 (have_minimal_symbols): Update.
8876 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
8877 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
8878 Move from struct objfile.
8879 <minsyms_read>: New field.
8880 (struct objfile) <msymbols, minimal_symbol_count,
8881 msymbol_hash, msymbol_demangled_hash>: Move.
8882 (ALL_OBJFILE_MSYMBOLS): Update.
8883 * symfile.c (read_symbols): Set minsyms_read.
8884 (reread_symbols): Update.
8885 * symmisc.c (dump_objfile, dump_msymbols): Update.
8886
8887 2014-02-26 Tom Tromey <tromey@redhat.com>
8888
8889 * minsyms.c (msymbols_sort): Remove.
8890 * minsyms.h (msymbols_sort): Remove.
8891 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
8892 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
8893 * elfread.c (elf_symtab_read): Don't add section offsets.
8894 * xcoffread.c (record_minimal_symbol): Don't add section offset
8895 to minimal symbol address.
8896 * somread.c (text_offset, data_offset): Remove.
8897 (som_symtab_read): Don't add section offsets to minimal symbol
8898 addresses.
8899 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
8900 Don't add section offsets to minimal symbols.
8901 * coffread.c (coff_symtab_read): Don't add section offsets
8902 to minimal symbol addresses.
8903 * machoread.c (macho_symtab_add_minsym): Don't add section offset
8904 to minimal symbol addresses.
8905 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
8906 section offset to minimal symbol addresses.
8907 * mdebugread.c (parse_partial_symbols): Don't add section
8908 offset to minimal symbol addresses.
8909 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
8910 offset to minimal symbol addresses.
8911
8912 2014-02-26 Tom Tromey <tromey@redhat.com>
8913
8914 * ada-lang.c (ada_main_name): Update.
8915 (ada_add_standard_exceptions): Update.
8916 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
8917 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8918 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
8919 * auxv.c (ld_so_xfer_auxv): Update.
8920 * avr-tdep.c (avr_scan_prologue): Update.
8921 * ax-gdb.c (gen_var_ref): Update.
8922 * blockframe.c (get_pc_function_start)
8923 (find_pc_partial_function_gnu_ifunc): Update.
8924 * breakpoint.c (create_overlay_event_breakpoint)
8925 (create_longjmp_master_breakpoint)
8926 (create_std_terminate_master_breakpoint)
8927 (create_exception_master_breakpoint): Update.
8928 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8929 * c-valprint.c (c_val_print): Update.
8930 * coff-pe-read.c (add_pe_forwarded_sym): Update.
8931 * common/agent.c (agent_look_up_symbols): Update.
8932 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
8933 * dwarf2loc.c (call_site_to_target_addr): Update.
8934 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
8935 * elfread.c (elf_gnu_ifunc_record_cache)
8936 (elf_gnu_ifunc_resolve_by_got): Update.
8937 * findvar.c (default_read_var_value): Update.
8938 * frame.c (inside_main_func): Update.
8939 * frv-tdep.c (frv_frame_this_id): Update.
8940 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8941 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
8942 Update.
8943 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
8944 (hppa_hpux_find_dummy_bpaddr): Update.
8945 * hppa-tdep.c (hppa_symbol_address): Update.
8946 * infcmd.c (until_next_command): Update.
8947 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
8948 Update.
8949 * linespec.c (minsym_found, add_minsym): Update.
8950 * linux-nat.c (get_signo): Update.
8951 * linux-thread-db.c (inferior_has_bug): Update.
8952 * m32c-tdep.c (m32c_return_value)
8953 (m32c_m16c_address_to_pointer): Update.
8954 * m32r-tdep.c (m32r_frame_this_id): Update.
8955 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8956 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8957 * maint.c (maintenance_translate_address): Update.
8958 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
8959 (frob_address): New function.
8960 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
8961 frob_address. Rename parameter to "pc_in".
8962 (compare_minimal_symbols, compact_minimal_symbols): Use raw
8963 addresses.
8964 (find_solib_trampoline_target, minimal_symbol_upper_bound):
8965 Update.
8966 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8967 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
8968 * objc-lang.c (find_objc_msgsend): Update.
8969 * objfiles.c (objfile_relocate1): Update.
8970 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8971 * p-valprint.c (pascal_val_print): Update.
8972 * parse.c (write_exp_msymbol): Update.
8973 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
8974 (ppc_elfv2_skip_entrypoint): Update.
8975 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8976 * printcmd.c (build_address_symbolic, msym_info)
8977 (address_info): Update.
8978 * proc-service.c (ps_pglobal_lookup): Update.
8979 * psymtab.c (find_pc_sect_psymtab_closer)
8980 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
8981 Change msymbol parameter to bound_minimal_symbol.
8982 * ravenscar-thread.c (get_running_thread_id): Update.
8983 * remote.c (remote_check_symbols): Update.
8984 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
8985 address.
8986 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8987 * solib-dsbt.c (lm_base): Update.
8988 * solib-frv.c (lm_base, main_got): Update.
8989 * solib-irix.c (locate_base): Update.
8990 * solib-som.c (som_solib_create_inferior_hook)
8991 (link_map_start): Update.
8992 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
8993 * solib-svr4.c (elf_locate_base, enable_break): Update.
8994 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
8995 (flush_ea_cache): Update.
8996 * stabsread.c (define_symbol, scan_file_globals): Update.
8997 * stack.c (find_frame_funname): Update.
8998 * symfile-debug.c (debug_qf_expand_symtabs_matching)
8999 (debug_qf_find_pc_sect_symtab): Update.
9000 * symfile.c (simple_read_overlay_table)
9001 (simple_overlay_update): Update.
9002 * symfile.h (struct quick_symbol_functions)
9003 <find_pc_sect_symtab>: Change type of msymbol to
9004 bound_minimal_symbol.
9005 * symmisc.c (dump_msymbols): Update.
9006 * symtab.c (find_pc_sect_symtab_via_partial)
9007 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
9008 (search_symbols, print_msymbol_info): Update.
9009 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
9010 (MSYMBOL_VALUE_ADDRESS): Redefine.
9011 (BMSYMBOL_VALUE_ADDRESS): New macro.
9012 * tracepoint.c (scope_info): Update.
9013 * tui/tui-disasm.c (tui_find_disassembly_address)
9014 (tui_get_begin_asm_address): Update.
9015 * valops.c (find_function_in_inferior): Update.
9016 * value.c (value_static_field, value_fn_field): Update.
9017
9018 2014-02-26 Tom Tromey <tromey@redhat.com>
9019
9020 * ada-lang.c (ada_update_initial_language): Update.
9021 (ada_main_name, ada_has_this_exception_support): Update.
9022 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
9023 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9024 * arm-tdep.c (arm_skip_stub): Update.
9025 * auxv.c (ld_so_xfer_auxv): Update.
9026 * avr-tdep.c (avr_scan_prologue): Update.
9027 * ax-gdb.c (gen_var_ref): Update.
9028 * breakpoint.c (struct breakpoint_objfile_data)
9029 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
9030 type to bound_minimal_symbol.
9031 (create_overlay_event_breakpoint)
9032 (create_longjmp_master_breakpoint)
9033 (create_std_terminate_master_breakpoint)
9034 (create_exception_master_breakpoint): Update.
9035 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9036 * c-exp.y (classify_name): Update.
9037 * coffread.c (coff_symfile_read): Update.
9038 * common/agent.c (agent_look_up_symbols): Update.
9039 * d-lang.c (d_main_name): Update.
9040 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
9041 * dec-thread.c (enable_dec_thread): Update.
9042 * dwarf2loc.c (call_site_to_target_addr): Update.
9043 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
9044 * eval.c (evaluate_subexp_standard): Update.
9045 * findvar.c (struct minsym_lookup_data) <result>: Change type
9046 to bound_minimal_symbol.
9047 <objfile>: Remove.
9048 (minsym_lookup_iterator_cb, default_read_var_value): Update.
9049 * frame.c (inside_main_func): Update.
9050 * frv-tdep.c (frv_frame_this_id): Update.
9051 * gcore.c (call_target_sbrk): Update.
9052 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9053 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
9054 Update.
9055 * go-lang.c (go_main_name): Update.
9056 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
9057 (hppa_hpux_find_import_stub_for_addr): Update.
9058 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
9059 Update. Change return type.
9060 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
9061 type.
9062 * jit.c (jit_breakpoint_re_set_internal): Update.
9063 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
9064 Update.
9065 * linux-nat.c (get_signo): Update.
9066 * linux-thread-db.c (inferior_has_bug): Update
9067 * m32c-tdep.c (m32c_return_value)
9068 (m32c_m16c_address_to_pointer): Update.
9069 * m32r-tdep.c (m32r_frame_this_id): Update.
9070 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9071 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9072 * minsyms.c (lookup_minimal_symbol_internal): Rename to
9073 lookup_minimal_symbol. Change return type.
9074 (lookup_minimal_symbol): Remove.
9075 (lookup_bound_minimal_symbol): Update.
9076 (lookup_minimal_symbol_text): Change return type.
9077 (lookup_minimal_symbol_solib_trampoline): Change return type.
9078 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
9079 (lookup_minimal_symbol_solib_trampoline): Change return type.
9080 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9081 * objc-lang.c (lookup_objc_class, lookup_child_selector)
9082 (value_nsstring, find_imps): Update.
9083 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9084 * p-lang.c (pascal_main_name): Update.
9085 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
9086 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9087 * proc-service.c (ps_pglobal_lookup): Update.
9088 * ravenscar-thread.c (get_running_thread_msymbol): Change
9089 return type.
9090 (has_ravenscar_runtime, get_running_thread_id): Update.
9091 * remote.c (remote_check_symbols): Update.
9092 * sol-thread.c (ps_pglobal_lookup): Update.
9093 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9094 * solib-dsbt.c (lm_base): Update.
9095 * solib-frv.c (lm_base, frv_relocate_section_addresses):
9096 Update.
9097 * solib-irix.c (locate_base): Update.
9098 * solib-som.c (som_solib_create_inferior_hook)
9099 (som_solib_desire_dynamic_linker_symbols, link_map_start):
9100 Update.
9101 * solib-spu.c (spu_enable_break): Update.
9102 * solib-svr4.c (elf_locate_base, enable_break): Update.
9103 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
9104 (flush_ea_cache): Update.
9105 * stabsread.c (define_symbol): Update.
9106 * symfile.c (simple_read_overlay_table): Update.
9107 * symtab.c (find_pc_sect_line): Update.
9108 * tracepoint.c (scope_info): Update.
9109 * tui-disasm.c (tui_get_begin_asm_address): Update.
9110 * value.c (value_static_field): Update.
9111
9112 2014-02-26 Tom Tromey <tromey@redhat.com>
9113
9114 * minsyms.c (prim_record_minimal_symbol_full): Use
9115 SET_MSYMBOL_VALUE_ADDRESS.
9116 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
9117 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
9118 SET_MSYMBOL_VALUE_ADDRESS.
9119 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
9120 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
9121
9122 2014-02-26 Tom Tromey <tromey@redhat.com>
9123
9124 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
9125 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
9126 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
9127 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
9128 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
9129 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
9130 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
9131 * ada-lang.c (ada_main_name): Update.
9132 (ada_lookup_simple_minsym): Update.
9133 (ada_make_symbol_completion_list): Update.
9134 (ada_add_standard_exceptions): Update.
9135 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
9136 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9137 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
9138 * arm-tdep.c (skip_prologue_function): Update.
9139 (arm_skip_stack_protector, arm_skip_stub): Update.
9140 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
9141 (arm_wince_skip_main_prologue): Update.
9142 * auxv.c (ld_so_xfer_auxv): Update.
9143 * avr-tdep.c (avr_scan_prologue): Update.
9144 * ax-gdb.c (gen_var_ref): Update.
9145 * block.c (call_site_for_pc): Update.
9146 * blockframe.c (get_pc_function_start): Update.
9147 (find_pc_partial_function_gnu_ifunc): Update.
9148 * breakpoint.c (create_overlay_event_breakpoint): Update.
9149 (create_longjmp_master_breakpoint): Update.
9150 (create_std_terminate_master_breakpoint): Update.
9151 (create_exception_master_breakpoint): Update.
9152 (resolve_sal_pc): Update.
9153 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9154 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
9155 Update.
9156 * c-valprint.c (c_val_print): Update.
9157 * coff-pe-read.c (add_pe_forwarded_sym): Update.
9158 * coffread.c (coff_symfile_read): Update.
9159 * common/agent.c (agent_look_up_symbols): Update.
9160 * dbxread.c (find_stab_function_addr): Update.
9161 (end_psymtab): Update.
9162 * dwarf2loc.c (call_site_to_target_addr): Update.
9163 (func_verify_no_selftailcall): Update.
9164 (tailcall_dump): Update.
9165 (call_site_find_chain_1): Update.
9166 (dwarf_expr_reg_to_entry_parameter): Update.
9167 * elfread.c (elf_gnu_ifunc_record_cache): Update.
9168 (elf_gnu_ifunc_resolve_by_got): Update.
9169 * f-valprint.c (info_common_command): Update.
9170 * findvar.c (read_var_value): Update.
9171 * frame.c (get_prev_frame_1): Update.
9172 (inside_main_func): Update.
9173 * frv-tdep.c (frv_skip_main_prologue): Update.
9174 (frv_frame_this_id): Update.
9175 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9176 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
9177 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
9178 (gnuv3_skip_trampoline): Update.
9179 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
9180 (hppa64_hpux_in_solib_call_trampoline): Update.
9181 (hppa_hpux_skip_trampoline_code): Update.
9182 (hppa64_hpux_search_dummy_call_sequence): Update.
9183 (hppa_hpux_find_import_stub_for_addr): Update.
9184 (hppa_hpux_find_dummy_bpaddr): Update.
9185 * hppa-tdep.c (hppa_symbol_address)
9186 (hppa_lookup_stub_minimal_symbol): Update.
9187 * i386-tdep.c (i386_skip_main_prologue): Update.
9188 (i386_pe_skip_trampoline_code): Update.
9189 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
9190 * infcall.c (get_function_name): Update.
9191 * infcmd.c (until_next_command): Update.
9192 * jit.c (jit_breakpoint_re_set_internal): Update.
9193 (jit_inferior_init): Update.
9194 * linespec.c (minsym_found): Update.
9195 (add_minsym): Update.
9196 * linux-fork.c (info_checkpoints_command): Update.
9197 * linux-nat.c (get_signo): Update.
9198 * linux-thread-db.c (inferior_has_bug): Update.
9199 * m32c-tdep.c (m32c_return_value): Update.
9200 (m32c_m16c_address_to_pointer): Update.
9201 (m32c_m16c_pointer_to_address): Update.
9202 * m32r-tdep.c (m32r_frame_this_id): Update.
9203 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9204 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9205 * maint.c (maintenance_translate_address): Update.
9206 * minsyms.c (add_minsym_to_hash_table): Update.
9207 (add_minsym_to_demangled_hash_table): Update.
9208 (msymbol_objfile): Update.
9209 (lookup_minimal_symbol): Update.
9210 (iterate_over_minimal_symbols): Update.
9211 (lookup_minimal_symbol_text): Update.
9212 (lookup_minimal_symbol_by_pc_name): Update.
9213 (lookup_minimal_symbol_solib_trampoline): Update.
9214 (lookup_minimal_symbol_by_pc_section_1): Update.
9215 (lookup_minimal_symbol_and_objfile): Update.
9216 (prim_record_minimal_symbol_full): Update.
9217 (compare_minimal_symbols): Update.
9218 (compact_minimal_symbols): Update.
9219 (build_minimal_symbol_hash_tables): Update.
9220 (install_minimal_symbols): Update.
9221 (terminate_minimal_symbol_table): Update.
9222 (find_solib_trampoline_target): Update.
9223 (minimal_symbol_upper_bound): Update.
9224 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9225 * mips-tdep.c (mips_stub_frame_sniffer): Update.
9226 (mips_skip_pic_trampoline_code): Update.
9227 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
9228 * objc-lang.c (selectors_info): Update.
9229 (classes_info): Update.
9230 (find_methods): Update.
9231 (find_imps): Update.
9232 (find_objc_msgsend): Update.
9233 * objfiles.c (objfile_relocate1): Update.
9234 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
9235 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9236 * p-valprint.c (pascal_val_print): Update.
9237 * parse.c (write_exp_msymbol): Update.
9238 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
9239 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
9240 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9241 * printcmd.c (build_address_symbolic): Update.
9242 (sym_info): Update.
9243 (address_info): Update.
9244 * proc-service.c (ps_pglobal_lookup): Update.
9245 * psymtab.c (find_pc_sect_psymtab_closer): Update.
9246 (find_pc_sect_psymtab): Update.
9247 * python/py-framefilter.c (py_print_frame): Update.
9248 * ravenscar-thread.c (get_running_thread_id): Update.
9249 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
9250 Update.
9251 * remote.c (remote_check_symbols): Update.
9252 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
9253 (rs6000_skip_trampoline_code): Update.
9254 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
9255 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9256 * solib-dsbt.c (lm_base): Update.
9257 * solib-frv.c (lm_base): Update.
9258 (main_got): Update.
9259 * solib-irix.c (locate_base): Update.
9260 * solib-som.c (som_solib_create_inferior_hook): Update.
9261 (som_solib_desire_dynamic_linker_symbols): Update.
9262 (link_map_start): Update.
9263 * solib-spu.c (spu_enable_break): Update.
9264 (ocl_enable_break): Update.
9265 * solib-svr4.c (elf_locate_base): Update.
9266 (enable_break): Update.
9267 * spu-tdep.c (spu_get_overlay_table): Update.
9268 (spu_catch_start): Update.
9269 (flush_ea_cache): Update.
9270 * stabsread.c (define_symbol): Update.
9271 (scan_file_globals): Update.
9272 * stack.c (find_frame_funname): Update.
9273 (frame_info): Update.
9274 * symfile.c (simple_read_overlay_table): Update.
9275 (simple_overlay_update): Update.
9276 * symmisc.c (dump_msymbols): Update.
9277 * symtab.c (fixup_section): Update.
9278 (find_pc_sect_line): Update.
9279 (skip_prologue_sal): Update.
9280 (search_symbols): Update.
9281 (print_msymbol_info): Update.
9282 (rbreak_command): Update.
9283 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
9284 (completion_list_objc_symbol): Update.
9285 (default_make_symbol_completion_list_break_on): Update.
9286 * tracepoint.c (scope_info): Update.
9287 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
9288 (tui_get_begin_asm_address): Update.
9289 * valops.c (find_function_in_inferior): Update.
9290 * value.c (value_static_field): Update.
9291 (value_fn_field): Update.
9292
9293 2014-02-26 Tom Tromey <tromey@redhat.com>
9294
9295 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
9296 bound minimal symbols. Move code that knows about minsym
9297 table layout...
9298 * minsyms.c (minimal_symbol_upper_bound): ... here. New
9299 function.
9300 * minsyms.h (minimal_symbol_upper_bound): Declare.
9301 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
9302 minimal_symbol_upper_bound.
9303
9304 2014-02-27 Joel Brobecker <brobecker@adacore.com>
9305
9306 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
9307 Use the type's name if its basic type does not have a tag.
9308
9309 2014-02-27 Joel Brobecker <brobecker@adacore.com>
9310
9311 * dwarf2read.c (read_subrange_type): Add comment.
9312
9313 2014-02-27 Joel Brobecker <brobecker@adacore.com>
9314
9315 * dwarf2read.c (update_enumeration_type_from_children): New
9316 function, mostly extracted from process_structure_scope.
9317 (read_enumeration_type): Call update_enumeration_type_from_children.
9318 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
9319 and flag_flag_enum fields.
9320
9321 2014-02-26 Pedro Alves <palves@redhat.com>
9322
9323 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
9324 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
9325 to_xfer_partial method.
9326
9327 2014-02-26 Pedro Alves <palves@redhat.com>
9328
9329 * target.c (complete_target_initialization): Don't install
9330 default_xfer_partial as to_xfer_partial hook.
9331 (nomemory): Delete.
9332 (update_current_target): Don't INHERIT nor de_fault
9333 deprecated_xfer_memory. Delete de_fault macro.
9334 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
9335 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
9336 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
9337 field.
9338
9339 2014-02-26 Pedro Alves <palves@redhat.com>
9340
9341 * go32-nat.c (my_write_child): New function.
9342 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
9343 (go32_xfer_partial): New function.
9344 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
9345 Instead install a to_xfer_partial hook.
9346
9347 2014-02-26 Pedro Alves <palves@redhat.com>
9348
9349 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
9350 to_xfer_partial helper. Rewrite.
9351 (procfs_xfer_partial): New function.
9352 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
9353 Install a to_xfer_partial hook.
9354
9355 2014-02-26 Pedro Alves <palves@redhat.com>
9356
9357 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
9358 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
9359 (m32r_xfer_partial): New function.
9360 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
9361 Install a to_xfer_partial hook.
9362
9363 2014-02-26 Pedro Alves <palves@redhat.com>
9364
9365 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
9366 helper.
9367 (mips_xfer_partial): New function.
9368 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
9369 hook. Install a to_xfer_partial hook.
9370
9371 2014-02-26 Joel Brobecker <brobecker@adacore.com>
9372
9373 * gdbtypes.h (create_array_type_with_stride): Add declaration.
9374 * gdbtypes.c (create_array_type_with_stride): New function,
9375 renaming create_array_type, but with an added parameter
9376 called "bit_stride".
9377 (create_array_type): Re-implement using
9378 create_array_type_with_stride.
9379 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
9380 and DW_AT_bit_stride attributes.
9381
9382 2014-02-26 Pedro Alves <palves@redhat.com>
9383
9384 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
9385 task-specific breakpoints.
9386
9387 2014-02-25 Pedro Alves <palves@redhat.com>
9388
9389 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
9390 handling of object == TARGET_OBJECT_UNWIND_TABLE.
9391
9392 2014-02-25 Stan Shebs <stan@codesourcery.com>
9393
9394 * defs.h: Annotate comments for Doxygen.
9395
9396 2014-02-25 Tom Tromey <tromey@redhat.com>
9397
9398 * target.h (target_ignore): Don't declare.
9399 * target.c (target_ignore): Remove.
9400
9401 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
9402
9403 PR gdb/16626
9404 * auto-load.c (auto_load_objfile_script_1): Change filename to
9405 debugfile.
9406
9407 2014-02-25 Joel Brobecker <brobecker@adacore.com>
9408
9409 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
9410 documentation. Adjust prototype to match the target_ops
9411 to_xfer_partial method. Adjust implementation accordingly.
9412
9413 2014-02-25 Hui Zhu <hui@codesourcery.com>
9414
9415 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
9416 to_traceframe_info.
9417
9418 2014-02-25 Kevin Buettner <kevinb@redhat.com>
9419
9420 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
9421 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
9422 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
9423 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
9424 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
9425 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
9426 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
9427 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
9428 New constants.
9429 (rl78_register_type): Use a data pointer type for SP and
9430 new pseudo registers mentioned above. Use a 16 bit integer
9431 type for all other register pairs.
9432 (rl78_register_name, rl78_g10_register_name): Update for
9433 new pseudo registers.
9434 (rl78_pseudo_register_read): Likewise.
9435 (rl78_pseudo_register_write): Likewise.
9436 (rl78_dwarf_reg_to_regnum): Return register numbers representing
9437 to the newly added pseudo registers.
9438
9439 2014-02-24 Doug Evans <dje@google.com>
9440
9441 * value.c (record_latest_value): Fix comment.
9442 * printcmd.c (print_command_1): Remove code to handle -1 return from
9443 record_latest_value.
9444
9445 2014-02-24 Pedro Alves <palves@redhat.com>
9446
9447 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
9448 deprecated_xfer_memory hook.
9449 (procfs_xfer_partial): Call procfs_xfer_memory instead
9450 of the deprecated_xfer_memory target hook.
9451 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
9452 helper.
9453
9454 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
9455
9456 * windows-nat.c (windows_xfer_shared_libraries): Return
9457 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
9458 requested object is TARGET_OBJECT_LIBRARIES.
9459
9460 2014-02-24 Yao Qi <yao@codesourcery.com>
9461
9462 * target.h (enum target_xfer_status)
9463 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
9464 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
9465 explicitly. New.
9466 * corefile.c (memory_error_message): User updated.
9467 * exec.c (section_table_read_available_memory): Likewise.
9468 * record-btrace.c (record_btrace_xfer_partial): Likewise.
9469 * target.c (target_xfer_status_to_string): Likewise.
9470 (raw_memory_xfer_partial): Likewise.
9471 (memory_xfer_partial_1, target_xfer_partial): Likewise.
9472 * valops.c (read_value_memory): Likewise.
9473 * exec.h: Update comments.
9474
9475 2014-02-24 Yao Qi <yao@codesourcery.com>
9476
9477 * target.c (target_xfer_status_to_string): Rename argument err
9478 to status.
9479 * target.h (target_xfer_status_to_string): Update declaration.
9480 Replace target_xfer_error_to_string with
9481 target_xfer_status_to_string in comment.
9482
9483 2014-02-24 Yao Qi <yao@codesourcery.com>
9484
9485 * mips-linux-nat.c (super_close): Update its type.
9486 (mips_linux_close): Pass 'self' to super_close.
9487
9488 2014-02-24 Yao Qi <yao@codesourcery.com>
9489
9490 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
9491 * corefile.c (read_memory): Adjusted.
9492 * target.c (target_write_with_progress): Adjusted.
9493
9494 2014-02-23 Yao Qi <yao@codesourcery.com>
9495
9496 Revert two patches:
9497
9498 2013-10-25 Yao Qi <yao@codesourcery.com>
9499
9500 * remote.c (remote_traceframe_info): Return early if
9501 traceframe is not selected.
9502
9503 2013-07-19 Yao Qi <yao@codesourcery.com>
9504
9505 * target.c (update_current_target): Change the default action
9506 of 'to_traceframe_info' from tcomplain to return_zero.
9507 * target.h (struct target_ops) <to_traceframe_info>: Add more
9508 comments.
9509
9510 2014-02-23 Yao Qi <yao@codesourcery.com>
9511
9512 * valops.c (read_value_memory): Rewrite it. Call
9513 target_xfer_partial in a loop.
9514 * exec.h (section_table_available_memory): Remove declaration.
9515 Move comments to ...
9516 * exec.c (section_table_available_memory): ... here. Make it
9517 static.
9518
9519 2014-02-23 Yao Qi <yao@codesourcery.com>
9520
9521 * exec.c (section_table_read_available_memory): New function.
9522 * exec.h (section_table_read_available_memory): Declare.
9523 * ctf.c (ctf_xfer_partial): Call
9524 section_table_read_available_memory.
9525 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9526
9527 2014-02-23 Yao Qi <yao@codesourcery.com>
9528
9529 * ctf.c (ctf_xfer_partial): Move code to ...
9530 * exec.c (exec_read_partial_read_only): ... it. New function.
9531 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9532 * tracefile.c: Include "exec.h".
9533 * exec.h (exec_read_partial_read_only): Declare.
9534
9535 2014-02-23 Yao Qi <yao@codesourcery.com>
9536
9537 * tracefile-tfile.c (tfile_has_all_memory): Remove.
9538 (tfile_has_memory): Remove.
9539 (init_tfile_ops): Don't set fields to_has_all_memory and
9540 to_has_memory of tfile_ops.
9541 * tracefile.c (tracefile_has_all_memory): New function.
9542 (tracefile_has_memory): New function.
9543 (init_tracefile_ops): Initialize fields to_has_all_memory and
9544 to_has_memory of 'ops'.
9545
9546 2014-02-23 Yao Qi <yao@codesourcery.com>
9547
9548 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
9549 (ctf_thread_alive, ctf_get_trace_status): Remove.
9550 (init_ctf_ops): Don't set some fields of ctf_ops. Call
9551 init_tracefile_ops.
9552 * tracefile-tfile.c (tfile_get_trace_status): Remove.
9553 (tfile_has_stack, tfile_has_registers): Remove.
9554 (tfile_thread_alive): Remove.
9555 (init_tfile_ops): Don't set some fields of tfile_ops. Call
9556 init_tracefile_ops.
9557 * tracefile.c (tracefile_has_stack): New function.
9558 (tracefile_has_registers): New function.
9559 (tracefile_thread_alive): New function.
9560 (tracefile_get_trace_status): New function.
9561 (init_tracefile_ops): New function.
9562 * tracefile.h (init_tracefile_ops): Declare.
9563
9564 2014-02-23 Yao Qi <yao@codesourcery.com>
9565
9566 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
9567 (O_LARGEFILE): Likewise.
9568 (tfile_ops): Likewise.
9569 (TRACE_HEADER_SIZE): Likewise.
9570 (trace_fd, trace_frames_offset, cur_offset): Likewise.
9571 (cur_data_size): Likewise.
9572 (tfile_read, tfile_open, tfile_interp_line): Likewise.
9573 (tfile_close, tfile_files_info): Likewise.
9574 (tfile_get_trace_status): Likewise.
9575 (tfile_get_tracepoint_status): Likewise.
9576 (tfile_get_traceframe_address): Likewise.
9577 (tfile_trace_find, match_blocktype): Likewise.
9578 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
9579 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
9580 (tfile_get_trace_state_variable_value): Likewise.
9581 (tfile_has_all_memory, tfile_has_memory): Likewise.
9582 (tfile_has_stack, tfile_has_registers): Likewise.
9583 (tfile_thread_alive, build_traceframe_info): Likewise.
9584 (tfile_traceframe_info, init_tfile_ops): Likewise.
9585 (_initialize_tracepoint): Don't call init_tfile_ops
9586 and add_target_with_completer.
9587 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
9588 exec.h, completer.h and filenames.h.
9589 (_initialize_tracefile_tfile): New function.
9590
9591 2014-02-23 Yao Qi <yao@codesourcery.com>
9592
9593 * Makefile.in (REMOTE_OBS): Append tracefile.o and
9594 tracefile-tfile.o.
9595 (HFILES_NO_SRCDIR): Add tracefile.h.
9596 * ctf.c: Include "tracefile.h".
9597 * tracefile.h: New file.
9598 * tracefile.c: New file
9599 * tracefile-tfile.c: New file.
9600 * tracepoint.c: Include "tracefile.h".
9601 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
9602 (stop_reason_names): Add const.
9603 (trace_file_writer_xfree): Move it to tracefile.c.
9604 (trace_save, trace_save_command, trace_save_tfile): Likewise.
9605 (trace_save_ctf): Likewise.
9606 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
9607 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
9608 (tfile_write_header, tfile_write_regblock_type): Likewise.
9609 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
9610 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
9611 (tfile_write_raw_data, tfile_end): Likewise.
9612 (tfile_trace_file_writer_new): Likewise.
9613 (free_uploaded_tp): Make it extern.
9614 (free_uploaded_tsv): Make it extern.
9615 (_initialize_tracepoint): Move code to register command 'tsave'
9616 to tracefile.c.
9617 * tracepoint.h (stop_reason_names): Declare.
9618 (struct trace_frame_write_ops): Move it to tracefile.h.
9619 (struct trace_file_write_ops): Likewise.
9620 (struct trace_file_writer): Likewise.
9621 (free_uploaded_tsvs, free_uploaded_tps): Declare.
9622
9623 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9624
9625 PR gdb/16594
9626 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
9627 process name.
9628 (get_cores_used_by_process): New parameter num_cores, use it.
9629 (linux_xfer_osdata_processes): Pass num_cores to it.
9630 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
9631 process name.
9632
9633 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
9634
9635 * target.c (memory_xfer_partial): Fix length arg in call to
9636 breakpoint_xfer_memory.
9637
9638 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9639
9640 PR tdep/16397
9641 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
9642 number comes after the + or - signs. Adjust length of register
9643 name to be extracted.
9644
9645 2014-02-20 Tom Tromey <tromey@redhat.com>
9646
9647 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
9648 (ada_varobj_ops): Mark "extern".
9649
9650 2014-02-20 Tom Tromey <tromey@redhat.com>
9651
9652 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
9653
9654 2014-02-20 Doug Evans <xdje42@gmail.com>
9655
9656 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
9657 All callers updated.
9658 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
9659 All callers updated.
9660 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
9661 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
9662
9663 2014-02-20 lin zuojian <manjian2006@gmail.com>
9664 Joel Brobecker <brobecker@adacore.com>
9665 Doug Evans <xdje42@gmail.com>
9666
9667 PR symtab/16581
9668 * dwarf2read.c (struct die_info): New member in_process.
9669 (reset_die_in_process): New function.
9670 (process_die): Set it at the start, reset when returning.
9671 (inherit_abstract_dies): Only call process_die if origin_child_die
9672 not already being processed.
9673
9674 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9675
9676 * windows-nat.c (handle_unload_dll): Add function documentation.
9677 (do_initial_windows_stuff): Add comment explaining why we wait
9678 until after inferior initialization has finished before
9679 processing all DLLs.
9680
9681 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9682
9683 * windows-nat.c (get_module_name): Delete.
9684 (windows_get_exec_module_filename): New function, mostly
9685 inspired from get_module_name.
9686 (windows_pid_to_exec_file): Replace call to get_module_name
9687 by call to windows_get_exec_module_filename.
9688
9689 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9690
9691 * windows-nat.c (handle_load_dll): Rewrite this function's
9692 introductory comment. Remove code using get_module_name
9693 to get the DLL's name.
9694
9695 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9696
9697 * windows-nat.c (get_windows_debug_event): Ignore
9698 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
9699 if windows_initialization_done == 0.
9700 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
9701 Adjust implementation to always load all DLLs.
9702 (do_initial_windows_stuff): Replace call to
9703 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
9704
9705 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9706
9707 * windows-nat.c (_initialize_windows_nat): Deprecate the
9708 "dll-symbols" command. Turn the "add-shared-symbol-files"
9709 and "assf" aliases into commands, and deprecate them as well.
9710 * NEWS: Add entry explaining that "dll-symbols" and its two
9711 aliases are now deprecated.
9712
9713 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9714
9715 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
9716 new-line in debug string. Remove trailing spaces.
9717
9718 2014-02-19 Stan Shebs <stan@codesourcery.com>
9719
9720 * darwin-nat.c (darwin_xfer_partial): Fix return type.
9721
9722 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
9723
9724 * NEWS: Add entry for the new feature
9725 * python/py-value.c (valpy_binop): Call value_x_binop for struct
9726 and class values.
9727
9728 2014-02-19 Stan Shebs <stan@codesourcery.com>
9729
9730 * MAINTAINERS: List Yao Qi as nios2 maintainer.
9731
9732 2014-02-19 Pedro Alves <palves@redhat.com>
9733
9734 * common/ptid.h (struct ptid): Mention that process_stratum
9735 targets should prefer ptid.lwp.
9736
9737 2014-02-19 Pedro Alves <palves@redhat.com>
9738
9739 * remote.c (remote_thread_alive, write_ptid, read_ptid)
9740 (read_ptid, remote_newthread_step, remote_threads_extra_info)
9741 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
9742 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
9743 store remote thread ids rather than ptid.tid.
9744 (_initialize_remote): Adjust.
9745
9746 2014-02-19 Tom Tromey <tromey@redhat.com>
9747
9748 * target.c (target_get_unwinder): Rewrite.
9749 (target_get_tailcall_unwinder): Rewrite.
9750 * record-btrace.c (record_btrace_to_get_unwinder): New function.
9751 (record_btrace_to_get_tailcall_unwinder): New function.
9752 (init_record_btrace_ops): Update.
9753 * target.h (struct target_ops) <to_get_unwinder,
9754 to_get_tailcall_unwinder>: Now function pointers. Use
9755 TARGET_DEFAULT_RETURN.
9756
9757 2014-02-19 Tom Tromey <tromey@redhat.com>
9758
9759 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
9760 argument.
9761 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
9762
9763 2014-02-19 Tom Tromey <tromey@redhat.com>
9764
9765 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
9766 directly.
9767 * target-delegates.c: Rebuild.
9768 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
9769 TARGET_DEFAULT_FUNC.
9770 * target.c (default_target_decr_pc_after_break): Rename from
9771 forward_target_decr_pc_after_break. Simplify.
9772 (target_decr_pc_after_break): Rely on delegation.
9773
9774 2014-02-19 Tom Tromey <tromey@redhat.com>
9775
9776 * target.c (update_current_target): Do not INHERIT to_doc or
9777 to_magic. Do not de_fault to_open or to_close.
9778
9779 2014-02-19 Tom Tromey <tromey@redhat.com>
9780
9781 * gcore.h (objfile_find_memory_regions): Declare.
9782 * gcore.c (objfile_find_memory_regions): No longer static. Add
9783 "self" argument.
9784 (_initialize_gcore): Don't call exec_set_find_memory_regions.
9785 * exec.c: Include gcore.h.
9786 (exec_set_find_memory_regions): Remove.
9787 (exec_find_memory_regions): Remove.
9788 (exec_do_find_memory_regions): Remove.
9789 (init_exec_ops): Update.
9790 * defs.h (exec_set_find_memory_regions): Remove.
9791
9792 2014-02-19 Tom Tromey <tromey@redhat.com>
9793
9794 * target-delegates.c: Rebuild.
9795 * target.h (struct target_ops) <to_extra_thread_info,
9796 to_thread_name, to_pid_to_exec_file, to_get_section_table,
9797 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
9798 not 0, in TARGET_DEFAULT_RETURN.
9799
9800 2014-02-19 Tom Tromey <tromey@redhat.com>
9801
9802 * target.c (complete_target_initialization): Remove casts. Use
9803 return_zero_has_execution.
9804 (return_zero): Add "ignore" argument.
9805 (return_zero_has_execution): New function.
9806 (init_dummy_target): Remove casts. Use
9807 return_zero_has_execution.
9808
9809 2014-02-19 Tom Tromey <tromey@redhat.com>
9810
9811 * target.c (update_current_target): Update comments. Do not
9812 INHERIT to_stratum.
9813
9814 2014-02-19 Tom Tromey <tromey@redhat.com>
9815
9816 * arm-linux-nat.c (arm_linux_read_description): Delegate when
9817 needed.
9818 * corelow.c (core_read_description): Delegate when needed.
9819 * remote.c (remote_read_description): Delegate when needed.
9820 * target-delegates.c: Rebuild.
9821 * target.c (target_read_description): Rewrite.
9822 * target.h (struct target_ops) <to_read_description>: Update
9823 comment. Use TARGET_DEFAULT_RETURN.
9824
9825 2014-02-19 Tom Tromey <tromey@redhat.com>
9826
9827 * target-delegates.c: Rebuild.
9828 * target.c (update_current_target): Don't inherit or default
9829 to_can_run.
9830 (find_default_run_target): Check against delegate_can_run.
9831 * target.h (struct target_ops) <to_can_run>: Use
9832 TARGET_DEFAULT_RETURN.
9833
9834 2014-02-19 Tom Tromey <tromey@redhat.com>
9835
9836 * target-delegates.c: Rebuild.
9837 * target.c (target_disconnect): Unconditionally delegate.
9838 * target.h (struct target_ops) <to_disconnect>: Use
9839 TARGET_DEFAULT_NORETURN.
9840
9841 2014-02-19 Tom Tromey <tromey@redhat.com>
9842
9843 * record.c (record_stop): Unconditionally delegate.
9844 * target-delegates.c: Rebuild.
9845 * target.c (target_stop_recording): Unconditionally delegate.
9846 * target.h (struct target_ops) <to_stop_recording>: Use
9847 TARGET_DEFAULT_IGNORE.
9848
9849 2014-02-19 Tom Tromey <tromey@redhat.com>
9850
9851 * target-delegates.c: Rebuild.
9852 * target.c (target_enable_btrace): Unconditionally delegate.
9853 * target.h (struct target_ops) <to_enable_btrace>: Use
9854 TARGET_DEFAULT_NORETURN.
9855
9856 2014-02-19 Tom Tromey <tromey@redhat.com>
9857
9858 * target-delegates.c: Rebuild.
9859 * target.c (target_read_btrace): Unconditionally delegate.
9860 * target.h (struct target_ops) <to_read_btrace>: Use
9861 TARGET_DEFAULT_NORETURN.
9862
9863 2014-02-19 Tom Tromey <tromey@redhat.com>
9864
9865 * target-delegates.c: Rebuild.
9866 * target.c (target_teardown_btrace): Unconditionally delegate.
9867 * target.h (struct target_ops) <to_teardown_btrace>: Use
9868 TARGET_DEFAULT_NORETURN.
9869
9870 2014-02-19 Tom Tromey <tromey@redhat.com>
9871
9872 * target-delegates.c: Rebuild.
9873 * target.c (target_disable_btrace): Unconditionally delegate.
9874 * target.h (struct target_ops) <to_disable_btrace>: Use
9875 TARGET_DEFAULT_NORETURN.
9876
9877 2014-02-19 Tom Tromey <tromey@redhat.com>
9878
9879 * target-delegates.c: Rebuild.
9880 * target.c (default_search_memory): New function.
9881 (simple_search_memory): Update comment.
9882 (target_search_memory): Unconditionally delegate.
9883 * target.h (struct target_ops) <to_search_memory>: Use
9884 TARGET_DEFAULT_FUNC.
9885
9886 2014-02-19 Tom Tromey <tromey@redhat.com>
9887
9888 * auxv.c (default_auxv_parse): No longer static.
9889 (target_auxv_parse): Unconditionally delegate.
9890 * auxv.h (default_auxv_parse): Declare.
9891 * target-delegates.c: Rebuild.
9892 * target.c: Include auxv.h.
9893 * target.h (struct target_ops) <to_auxv_parse>: Use
9894 TARGET_DEFAULT_FUNC.
9895
9896 2014-02-19 Tom Tromey <tromey@redhat.com>
9897
9898 * target-delegates.c: Rebuild.
9899 * target.c (target_memory_map): Unconditionally delegate.
9900 * target.h (struct target_ops) <to_memory_map>: Use
9901 TARGET_DEFAULT_RETURN.
9902
9903 2014-02-19 Tom Tromey <tromey@redhat.com>
9904
9905 * target-delegates.c: Rebuild.
9906 * target.c (target_thread_alive): Unconditionally delegate.
9907 * target.h (struct target_ops) <to_thread_alive>: Use
9908 TARGET_DEFAULT_RETURN.
9909
9910 2014-02-19 Tom Tromey <tromey@redhat.com>
9911
9912 * target-delegates.c: Rebuild.
9913 * target.c (target_save_record): Unconditionally delegate.
9914 * target.h (struct target_ops) <to_save_record>: Use
9915 TARGET_DEFAULT_NORETURN.
9916
9917 2014-02-19 Tom Tromey <tromey@redhat.com>
9918
9919 * target-delegates.c: Rebuild.
9920 * target.c (target_delete_record): Unconditionally delegate.
9921 * target.h (struct target_ops) <to_delete_record>: Use
9922 TARGET_DEFAULT_NORETURN.
9923
9924 2014-02-19 Tom Tromey <tromey@redhat.com>
9925
9926 * target-delegates.c: Rebuild.
9927 * target.c (target_record_is_replaying): Unconditionally
9928 delegate.
9929 * target.h (struct target_ops) <to_record_is_replaying>: Use
9930 TARGET_DEFAULT_RETURN.
9931
9932 2014-02-19 Tom Tromey <tromey@redhat.com>
9933
9934 * target-delegates.c: Rebuild.
9935 * target.c (target_goto_record_begin): Unconditionally delegate.
9936 * target.h (struct target_ops) <to_goto_record_begin>: Use
9937 TARGET_DEFAULT_NORETURN.
9938
9939 2014-02-19 Tom Tromey <tromey@redhat.com>
9940
9941 * target-delegates.c: Rebuild.
9942 * target.c (target_goto_record_end): Unconditionally delegate.
9943 * target.h (struct target_ops) <to_goto_record_end>: Use
9944 TARGET_DEFAULT_NORETURN.
9945
9946 2014-02-19 Tom Tromey <tromey@redhat.com>
9947
9948 * target-delegates.c: Rebuild.
9949 * target.c (target_goto_record): Unconditionally delegate.
9950 * target.h (struct target_ops) <to_goto_record>: Use
9951 TARGET_DEFAULT_NORETURN.
9952
9953 2014-02-19 Tom Tromey <tromey@redhat.com>
9954
9955 * target-delegates.c: Rebuild.
9956 * target.c (target_insn_history): Unconditionally delegate.
9957 * target.h (struct target_ops) <to_insn_history>: Use
9958 TARGET_DEFAULT_NORETURN.
9959
9960 2014-02-19 Tom Tromey <tromey@redhat.com>
9961
9962 * target-delegates.c: Rebuild.
9963 * target.c (target_insn_history_from): Unconditionally delegate.
9964 * target.h (struct target_ops) <to_insn_history_from>: Use
9965 TARGET_DEFAULT_NORETURN.
9966
9967 2014-02-19 Tom Tromey <tromey@redhat.com>
9968
9969 * target-delegates.c: Rebuild.
9970 * target.c (target_insn_history_range): Unconditionally delegate.
9971 * target.h (struct target_ops) <to_insn_history_range>: Use
9972 TARGET_DEFAULT_NORETURN.
9973
9974 2014-02-19 Tom Tromey <tromey@redhat.com>
9975
9976 * target-delegates.c: Rebuild.
9977 * target.c (target_call_history): Unconditionally delegate.
9978 * target.h (struct target_ops) <to_call_history>: Use
9979 TARGET_DEFAULT_NORETURN.
9980
9981 2014-02-19 Tom Tromey <tromey@redhat.com>
9982
9983 * target-delegates.c: Rebuild.
9984 * target.c (target_call_history_from): Unconditionally delegate.
9985 * target.h (struct target_ops) <to_call_history_from>: Use
9986 TARGET_DEFAULT_NORETURN.
9987
9988 2014-02-19 Tom Tromey <tromey@redhat.com>
9989
9990 * target-delegates.c: Rebuild.
9991 * target.c (target_call_history_range): Unconditionally delegate.
9992 * target.h (struct target_ops) <to_call_history_range>: Use
9993 TARGET_DEFAULT_NORETURN.
9994
9995 2014-02-19 Tom Tromey <tromey@redhat.com>
9996
9997 * target-delegates.c: Rebuild.
9998 * target.c (target_verify_memory): Unconditionally delegate.
9999 * target.h (struct target_ops) <to_verify_memory>: Use
10000 TARGET_DEFAULT_NORETURN.
10001
10002 2014-02-19 Tom Tromey <tromey@redhat.com>
10003
10004 * target-delegates.c: Rebuild.
10005 * target.c (target_core_of_thread): Unconditionally delegate.
10006 * target.h (struct target_ops) <to_core_of_thread>: Use
10007 TARGET_DEFAULT_RETURN.
10008
10009 2014-02-19 Tom Tromey <tromey@redhat.com>
10010
10011 * target-delegates.c: Rebuild.
10012 * target.c (target_flash_done): Unconditionally delegate.
10013 * target.h (struct target_ops) <to_flash_done>: Use
10014 TARGET_DEFAULT_NORETURN.
10015
10016 2014-02-19 Tom Tromey <tromey@redhat.com>
10017
10018 * target-delegates.c: Rebuild.
10019 * target.c (target_flash_erase): Unconditionally delegate.
10020 * target.h (struct target_ops) <to_flash_erase>: Use
10021 TARGET_DEFAULT_NORETURN.
10022
10023 2014-02-19 Tom Tromey <tromey@redhat.com>
10024
10025 * target-delegates.c: Rebuild.
10026 * target.c (target_get_section_table): Unconditionally delegate.
10027 * target.h (struct target_ops) <to_get_section_table>: Use
10028 TARGET_DEFAULT_RETURN.
10029
10030 2014-02-19 Tom Tromey <tromey@redhat.com>
10031
10032 * target-delegates.c: Rebuild.
10033 * target.c (target_pid_to_str): Unconditionally delegate.
10034 (init_dummy_target): Don't initialize to_pid_to_str.
10035 (default_pid_to_str): Rename from dummy_pid_to_str.
10036 * target.h (struct target_ops) <to_pid_to_str>: Use
10037 TARGET_DEFAULT_FUNC.
10038
10039 2014-02-19 Tom Tromey <tromey@redhat.com>
10040
10041 * target-delegates.c: Rebuild.
10042 * target.c (target_find_new_threads): Unconditionally delegate.
10043 * target.h (struct target_ops) <to_find_new_threads>: Use
10044 TARGET_DEFAULT_RETURN.
10045
10046 2014-02-19 Tom Tromey <tromey@redhat.com>
10047
10048 * target-delegates.c: Rebuild.
10049 * target.c (target_program_signals): Unconditionally delegate.
10050 * target.h (struct target_ops) <to_program_signals>: Use
10051 TARGET_DEFAULT_IGNORE.
10052
10053 2014-02-19 Tom Tromey <tromey@redhat.com>
10054
10055 * target-delegates.c: Rebuild.
10056 * target.c (target_pass_signals): Unconditionally delegate.
10057 * target.h (struct target_ops) <to_pass_signals>: Use
10058 TARGET_DEFAULT_IGNORE.
10059
10060 2014-02-19 Tom Tromey <tromey@redhat.com>
10061
10062 * target-delegates.c: Rebuild.
10063 * target.c (default_mourn_inferior): New function.
10064 (target_mourn_inferior): Unconditionally delegate.
10065 * target.h (struct target_ops) <to_mourn_inferior>: Use
10066 TARGET_DEFAULT_FUNC.
10067
10068 2014-02-19 Tom Tromey <tromey@redhat.com>
10069
10070 * target-delegates.c: Rebuild.
10071 * target.c (default_follow_fork): New function.
10072 (target_follow_fork): Unconditionally delegate.
10073 * target.h (struct target_ops) <to_follow_fork>: Use
10074 TARGET_DEFAULT_FUNC.
10075
10076 2014-02-19 Tom Tromey <tromey@redhat.com>
10077
10078 * target-delegates.c: Rebuild.
10079 * target.c (target_kill): Unconditionally delegate.
10080 * target.h (struct target_ops) <to_kill>: Use
10081 TARGET_DEFAULT_NORETURN.
10082
10083 2014-02-19 Tom Tromey <tromey@redhat.com>
10084
10085 * target-delegates.c: Rebuild.
10086 * target.c (target_masked_watch_num_registers): Unconditionally
10087 delegate.
10088 * target.h (struct target_ops) <to_masked_watch_num_registers>:
10089 Use TARGET_DEFAULT_RETURN.
10090
10091 2014-02-19 Tom Tromey <tromey@redhat.com>
10092
10093 * target-delegates.c: Rebuild.
10094 * target.c (target_remove_mask_watchpoint): Unconditionally
10095 delegate.
10096 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
10097 TARGET_DEFAULT_RETURN.
10098
10099 2014-02-19 Tom Tromey <tromey@redhat.com>
10100
10101 * target-delegates.c: Rebuild.
10102 * target.c (target_insert_mask_watchpoint): Unconditionally
10103 delegate.
10104 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
10105 TARGET_DEFAULT_RETURN.
10106
10107 2014-02-19 Tom Tromey <tromey@redhat.com>
10108
10109 * target-delegates.c: Rebuild.
10110 * target.c (target_ranged_break_num_registers): Unconditionally
10111 delegate.
10112 * target.h (struct target_ops) <to_ranged_break_num_registers>:
10113 Use TARGET_DEFAULT_RETURN.
10114
10115 2014-02-19 Tom Tromey <tromey@redhat.com>
10116
10117 * target-delegates.c: Rebuild.
10118 * target.c (target_fetch_registers): Unconditionally delegate.
10119 * target.h (struct target_ops) <to_fetch_registers>: Use
10120 TARGET_DEFAULT_NORETURN.
10121
10122 2014-02-19 Tom Tromey <tromey@redhat.com>
10123
10124 * target-delegates.c: Rebuild.
10125 * target.c (update_current_target): Don't inherit or default
10126 to_stop.
10127 * target.h (struct target_ops) <to_stop>: Use
10128 TARGET_DEFAULT_IGNORE.
10129
10130 2014-02-19 Tom Tromey <tromey@redhat.com>
10131
10132 * target-delegates.c: Rebuild.
10133 * target.c (update_current_target): Don't inherit or default
10134 to_can_run_breakpoint_commands.
10135 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
10136 Use TARGET_DEFAULT_RETURN.
10137
10138 2014-02-19 Tom Tromey <tromey@redhat.com>
10139
10140 * target-delegates.c: Rebuild.
10141 * target.c (update_current_target): Don't inherit or default
10142 to_supports_evaluation_of_breakpoint_conditions.
10143 * target.h (struct target_ops)
10144 <to_supports_evaluation_of_breakpoint_conditions>: Use
10145 TARGET_DEFAULT_RETURN.
10146
10147 2014-02-19 Tom Tromey <tromey@redhat.com>
10148
10149 * target-delegates.c: Rebuild.
10150 * target.c (update_current_target): Don't inherit or default
10151 to_augmented_libraries_svr4_read.
10152 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
10153 Use TARGET_DEFAULT_RETURN.
10154
10155 2014-02-19 Tom Tromey <tromey@redhat.com>
10156
10157 * target-delegates.c: Rebuild.
10158 * target.c (update_current_target): Don't inherit or default
10159 to_can_use_agent.
10160 * target.h (struct target_ops) <to_can_use_agent>: Use
10161 TARGET_DEFAULT_RETURN.
10162
10163 2014-02-19 Tom Tromey <tromey@redhat.com>
10164
10165 * target-delegates.c: Rebuild.
10166 * target.c (update_current_target): Don't inherit or default
10167 to_use_agent.
10168 * target.h (struct target_ops) <to_use_agent>: Use
10169 TARGET_DEFAULT_NORETURN.
10170
10171 2014-02-19 Tom Tromey <tromey@redhat.com>
10172
10173 * target-delegates.c: Rebuild.
10174 * target.c (update_current_target): Don't inherit or default
10175 to_traceframe_info.
10176 (return_null): Remove.
10177 * target.h (struct target_ops) <to_traceframe_info>: Use
10178 TARGET_DEFAULT_RETURN.
10179
10180 2014-02-19 Tom Tromey <tromey@redhat.com>
10181
10182 * target-delegates.c: Rebuild.
10183 * target.c (update_current_target): Don't inherit or default
10184 to_static_tracepoint_markers_by_strid.
10185 * target.h (struct target_ops)
10186 <to_static_tracepoint_markers_by_strid>: Use
10187 TARGET_DEFAULT_NORETURN.
10188
10189 2014-02-19 Tom Tromey <tromey@redhat.com>
10190
10191 * target-delegates.c: Rebuild.
10192 * target.c (update_current_target): Don't inherit or default
10193 to_static_tracepoint_marker_at.
10194 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
10195 Use TARGET_DEFAULT_RETURN.
10196
10197 2014-02-19 Tom Tromey <tromey@redhat.com>
10198
10199 * target-delegates.c: Rebuild.
10200 * target.c (update_current_target): Don't inherit or default
10201 to_set_permissions.
10202 * target.h (struct target_ops) <to_set_permissions>: Use
10203 TARGET_DEFAULT_IGNORE.
10204
10205 2014-02-19 Tom Tromey <tromey@redhat.com>
10206
10207 * target-delegates.c: Rebuild.
10208 * target.c (update_current_target): Don't inherit or default
10209 to_get_tib_address.
10210 * target.h (struct target_ops) <to_get_tib_address>: Use
10211 TARGET_DEFAULT_NORETURN.
10212
10213 2014-02-19 Tom Tromey <tromey@redhat.com>
10214
10215 * target-delegates.c: Rebuild.
10216 * target.c (update_current_target): Don't inherit or default
10217 to_set_trace_notes.
10218 * target.h (struct target_ops) <to_set_trace_notes>: Use
10219 TARGET_DEFAULT_RETURN.
10220
10221 2014-02-19 Tom Tromey <tromey@redhat.com>
10222
10223 * target-delegates.c: Rebuild.
10224 * target.c (update_current_target): Don't initialize
10225 to_set_trace_buffer_size.
10226 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
10227 TARGET_DEFAULT_IGNORE.
10228
10229 2014-02-19 Tom Tromey <tromey@redhat.com>
10230
10231 * target-delegates.c: Rebuild.
10232 * target.c (update_current_target): Don't inherit or default
10233 to_set_circular_trace_buffer.
10234 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
10235 TARGET_DEFAULT_IGNORE.
10236
10237 2014-02-19 Tom Tromey <tromey@redhat.com>
10238
10239 * target-delegates.c: Rebuild.
10240 * target.c (update_current_target): Don't inherit or default
10241 to_set_disconnected_tracing.
10242 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
10243 TARGET_DEFAULT_IGNORE.
10244
10245 2014-02-19 Tom Tromey <tromey@redhat.com>
10246
10247 * target-delegates.c: Rebuild.
10248 * target.c (update_current_target): Don't inherit or default
10249 to_get_min_fast_tracepoint_insn_len.
10250 (return_minus_one): Remove.
10251 * target.h (struct target_ops)
10252 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
10253
10254 2014-02-19 Tom Tromey <tromey@redhat.com>
10255
10256 * target-delegates.c: Rebuild.
10257 * target.c (update_current_target): Don't inherit or default
10258 to_get_raw_trace_data.
10259 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
10260 TARGET_DEFAULT_NORETURN.
10261
10262 2014-02-19 Tom Tromey <tromey@redhat.com>
10263
10264 * target-delegates.c: Rebuild.
10265 * target.c (update_current_target): Don't inherit or default
10266 to_upload_trace_state_variables.
10267 * target.h (struct target_ops) <to_upload_trace_state_variables>:
10268 Use TARGET_DEFAULT_RETURN.
10269
10270 2014-02-19 Tom Tromey <tromey@redhat.com>
10271
10272 * target-delegates.c: Rebuild.
10273 * target.c (update_current_target): Don't inherit or default
10274 to_upload_tracepoints.
10275 * target.h (struct target_ops) <to_upload_tracepoints>: Use
10276 TARGET_DEFAULT_RETURN.
10277
10278 2014-02-19 Tom Tromey <tromey@redhat.com>
10279
10280 * target-delegates.c: Rebuild.
10281 * target.c (update_current_target): Don't inherit or default
10282 to_save_trace_data.
10283 * target.h (struct target_ops) <to_save_trace_data>: Use
10284 TARGET_DEFAULT_NORETURN.
10285
10286 2014-02-19 Tom Tromey <tromey@redhat.com>
10287
10288 * target-delegates.c: Rebuild.
10289 * target.c (update_current_target): Don't inherit or default
10290 to_get_trace_state_variable_value.
10291 * target.h (struct target_ops)
10292 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
10293
10294 2014-02-19 Tom Tromey <tromey@redhat.com>
10295
10296 * target-delegates.c: Rebuild.
10297 * target.c (update_current_target): Don't inherit or default
10298 to_trace_find.
10299 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
10300
10301 2014-02-19 Tom Tromey <tromey@redhat.com>
10302
10303 * target-delegates.c: Rebuild.
10304 * target.c (update_current_target): Don't inherit or default
10305 to_trace_stop.
10306 * target.h (struct target_ops) <to_trace_stop>: Use
10307 TARGET_DEFAULT_NORETURN.
10308
10309 2014-02-19 Tom Tromey <tromey@redhat.com>
10310
10311 * target-delegates.c: Rebuild.
10312 * target.c (update_current_target): Don't inherit or default
10313 to_get_tracepoint_status.
10314 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
10315 TARGET_DEFAULT_NORETURN.
10316
10317 2014-02-19 Tom Tromey <tromey@redhat.com>
10318
10319 * target-delegates.c: Rebuild.
10320 * target.c (update_current_target): Don't inherit or default
10321 to_get_trace_status.
10322 * target.h (struct target_ops) <to_get_trace_status>: Use
10323 TARGET_DEFAULT_RETURN.
10324
10325 2014-02-19 Tom Tromey <tromey@redhat.com>
10326
10327 * target-delegates.c: Rebuild.
10328 * target.c (update_current_target): Don't inherit or default
10329 to_trace_start.
10330 * target.h (struct target_ops) <to_trace_start>: Use
10331 TARGET_DEFAULT_NORETURN.
10332
10333 2014-02-19 Tom Tromey <tromey@redhat.com>
10334
10335 * target-delegates.c: Rebuild.
10336 * target.c (update_current_target): Don't inherit or default
10337 to_trace_set_readonly_regions.
10338 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
10339 Use TARGET_DEFAULT_NORETURN.
10340
10341 2014-02-19 Tom Tromey <tromey@redhat.com>
10342
10343 * target-delegates.c: Rebuild.
10344 * target.c (update_current_target): Don't inherit or default
10345 to_disable_tracepoint.
10346 * target.h (struct target_ops) <to_disable_tracepoint>: Use
10347 TARGET_DEFAULT_NORETURN.
10348
10349 2014-02-19 Tom Tromey <tromey@redhat.com>
10350
10351 * target-delegates.c: Rebuild.
10352 * target.c (update_current_target): Don't inherit or default
10353 to_enable_tracepoint.
10354 * target.h (struct target_ops) <to_enable_tracepoint>: Use
10355 TARGET_DEFAULT_NORETURN.
10356
10357 2014-02-19 Tom Tromey <tromey@redhat.com>
10358
10359 * target-delegates.c: Rebuild.
10360 * target.c (update_current_target): Don't inherit or default
10361 to_download_trace_state_variable.
10362 * target.h (struct target_ops) <to_download_trace_state_variable>:
10363 Use TARGET_DEFAULT_NORETURN.
10364
10365 2014-02-19 Tom Tromey <tromey@redhat.com>
10366
10367 * target-delegates.c: Rebuild.
10368 * target.c (update_current_target): Don't inherit or default
10369 to_can_download_tracepoint.
10370 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
10371 TARGET_DEFAULT_RETURN.
10372
10373 2014-02-19 Tom Tromey <tromey@redhat.com>
10374
10375 * target-delegates.c: Rebuild.
10376 * target.c (update_current_target): Don't inherit or default
10377 to_download_tracepoint.
10378 * target.h (struct target_ops) <to_download_tracepoint>: Use
10379 TARGET_DEFAULT_NORETURN.
10380
10381 2014-02-19 Tom Tromey <tromey@redhat.com>
10382
10383 * target-delegates.c: Rebuild.
10384 * target.c (update_current_target): Don't inherit or default
10385 to_trace_init.
10386 * target.h (struct target_ops) <to_trace_init>: Use
10387 TARGET_DEFAULT_RETURN.
10388
10389 2014-02-19 Tom Tromey <tromey@redhat.com>
10390
10391 * target-delegates.c: Rebuild.
10392 * target.c (update_current_target): Don't inherit or default
10393 to_supports_string_tracing.
10394 * target.h (struct target_ops) <to_supports_string_tracing>: Use
10395 TARGET_DEFAULT_RETURN.
10396
10397 2014-02-19 Tom Tromey <tromey@redhat.com>
10398
10399 * target-delegates.c: Rebuild.
10400 * target.c (update_current_target): Don't inherit or default
10401 to_supports_enable_disable_tracepoint.
10402 * target.h (struct target_ops)
10403 <to_supports_enable_disable_tracepoint>: Use
10404 TARGET_DEFAULT_RETURN.
10405
10406 2014-02-19 Tom Tromey <tromey@redhat.com>
10407
10408 * target-delegates.c: Rebuild.
10409 * target.c (update_current_target): Don't inherit or default
10410 to_supports_multi_process.
10411 * target.h (struct target_ops) <to_supports_multi_process>: Use
10412 TARGET_DEFAULT_RETURN.
10413
10414 2014-02-19 Tom Tromey <tromey@redhat.com>
10415
10416 * target-delegates.c: Rebuild.
10417 * target.c (update_current_target): Don't inherit or default
10418 to_get_ada_task_ptid.
10419 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
10420 TARGET_DEFAULT_FUNC.
10421
10422 2014-02-19 Tom Tromey <tromey@redhat.com>
10423
10424 * target-delegates.c: Rebuild.
10425 * target.c (update_current_target): Don't inherit or default
10426 to_thread_architecture.
10427 * target.h (struct target_ops) <to_thread_architecture>: Use
10428 TARGET_DEFAULT_FUNC.
10429
10430 2014-02-19 Tom Tromey <tromey@redhat.com>
10431
10432 * target-delegates.c: Rebuild.
10433 * target.c (update_current_target): Don't inherit or default
10434 to_execution_direction.
10435 * target.h (struct target_ops) <to_execution_direction>: Use
10436 TARGET_DEFAULT_FUNC.
10437
10438 2014-02-19 Tom Tromey <tromey@redhat.com>
10439
10440 * target-delegates.c: Rebuild.
10441 * target.c (update_current_target): Don't inherit or default
10442 to_can_execute_reverse.
10443 * target.h (struct target_ops) <to_can_execute_reverse>: Use
10444 TARGET_DEFAULT_RETURN.
10445 (target_can_execute_reverse): Unconditionally delegate.
10446
10447 2014-02-19 Tom Tromey <tromey@redhat.com>
10448
10449 * target-delegates.c: Rebuild.
10450 * target.c (update_current_target): Don't inherit or default
10451 to_goto_bookmark.
10452 (dummy_goto_bookmark): Remove.
10453 (init_dummy_target): Don't inherit or default to_goto_bookmark.
10454 * target.h (struct target_ops) <to_goto_bookmark>: Use
10455 TARGET_DEFAULT_NORETURN.
10456
10457 2014-02-19 Tom Tromey <tromey@redhat.com>
10458
10459 * target-delegates.c: Rebuild.
10460 * target.c (update_current_target): Don't inherit or default
10461 to_get_bookmark.
10462 (dummy_get_bookmark): Remove.
10463 (init_dummy_target): Don't inherit or default to_get_bookmark.
10464 * target.h (struct target_ops) <to_get_bookmark>: Use
10465 TARGET_DEFAULT_NORETURN
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_make_corefile_notes.
10472 (init_dummy_target): Don't initialize to_make_corefile_notes.
10473 * target.h (struct target_ops) <to_make_corefile_notes>: Use
10474 TARGET_DEFAULT_FUNC.
10475
10476 2014-02-19 Tom Tromey <tromey@redhat.com>
10477
10478 * target-delegates.c: Rebuild.
10479 * target.c (update_current_target): Don't inherit or default
10480 to_find_memory_regions.
10481 (init_dummy_target): Don't initialize to_find_memory_regions.
10482 * target.h (struct target_ops) <to_find_memory_regions>: Use
10483 TARGET_DEFAULT_FUNC.
10484
10485 2014-02-19 Tom Tromey <tromey@redhat.com>
10486
10487 * target-delegates.c: Rebuild.
10488 * target.c (update_current_target): Don't inherit or default
10489 to_log_command.
10490 * target.h (struct target_ops) <to_log_command>: Use
10491 TARGET_DEFAULT_IGNORE.
10492 (target_log_command): Unconditionally delegate.
10493
10494 2014-02-19 Tom Tromey <tromey@redhat.com>
10495
10496 * target-delegates.c: Rebuild.
10497 * target.c (update_current_target): Don't inherit or default
10498 to_pid_to_exec_file.
10499 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
10500 TARGET_DEFAULT_RETURN.
10501
10502 2014-02-19 Tom Tromey <tromey@redhat.com>
10503
10504 * target-delegates.c: Rebuild.
10505 * target.c (update_current_target): Don't inherit or default
10506 to_thread_name.
10507 (target_thread_name): Unconditionally delegate.
10508 * target.h (struct target_ops) <to_thread_name>: Use
10509 TARGET_DEFAULT_RETURN.
10510
10511 2014-02-19 Tom Tromey <tromey@redhat.com>
10512
10513 * target-delegates.c: Rebuild.
10514 * target.c (update_current_target): Don't inherit or default
10515 to_extra_thread_info.
10516 * target.h (struct target_ops) <to_extra_thread_info>: Use
10517 TARGET_DEFAULT_RETURN.
10518
10519 2014-02-19 Tom Tromey <tromey@redhat.com>
10520
10521 * target-delegates.c: Rebuild.
10522 * target.c (update_current_target): Don't inherit or default
10523 to_has_exited.
10524 * target.h (struct target_ops) <to_has_exited>: Use
10525 TARGET_DEFAULT_RETURN..
10526
10527 2014-02-19 Tom Tromey <tromey@redhat.com>
10528
10529 * target-delegates.c: Rebuild.
10530 * target.c (update_current_target): Don't inherit or default
10531 to_set_syscall_catchpoint.
10532 (return_one): Remove.
10533 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
10534 TARGET_DEFAULT_RETURN.
10535
10536 2014-02-19 Tom Tromey <tromey@redhat.com>
10537
10538 * target-delegates.c: Rebuild.
10539 * target.c (update_current_target): Don't inherit or default
10540 to_insert_exec_catchpoint.
10541 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
10542 TARGET_DEFAULT_RETURN.
10543
10544 2014-01-08 Tom Tromey <tromey@redhat.com>
10545
10546 * target-delegates.c: Rebuild.
10547 * target.c (update_current_target): Don't inherit or default
10548 to_insert_exec_catchpoint.
10549 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
10550 TARGET_DEFAULT_RETURN.
10551
10552 2014-02-19 Tom Tromey <tromey@redhat.com>
10553
10554 * target-delegates.c: Rebuild.
10555 * target.c (update_current_target): Don't inherit or default
10556 to_remove_vfork_catchpoint.
10557 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
10558 TARGET_DEFAULT_RETURN.
10559
10560 2014-02-19 Tom Tromey <tromey@redhat.com>
10561
10562 * target-delegates.c: Rebuild.
10563 * target.c (update_current_target): Don't inherit or default
10564 to_insert_vfork_catchpoint.
10565 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
10566 TARGET_DEFAULT_RETURN.
10567
10568 2014-02-19 Tom Tromey <tromey@redhat.com>
10569
10570 * target-delegates.c: Rebuild.
10571 * target.c (update_current_target): Don't inherit or default
10572 to_remove_fork_catchpoint.
10573 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
10574 TARGET_DEFAULT_RETURN.
10575
10576 2014-02-19 Tom Tromey <tromey@redhat.com>
10577
10578 * target-delegates.c: Rebuild.
10579 * target.c (update_current_target): Don't inherit or default
10580 to_insert_fork_catchpoint.
10581 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
10582 TARGET_DEFAULT_RETURN.
10583
10584 2014-02-19 Tom Tromey <tromey@redhat.com>
10585
10586 * target-delegates.c: Rebuild.
10587 * target.c (update_current_target): Don't inherit or default
10588 to_post_startup_inferior.
10589 * target.h (struct target_ops) <to_post_startup_inferior>: Use
10590 TARGET_DEFAULT_IGNORE.
10591
10592 2014-02-19 Tom Tromey <tromey@redhat.com>
10593
10594 * target-delegates.c: Rebuild.
10595 * target.c (update_current_target): Don't inherit or default
10596 to_load.
10597 * target.h (struct target_ops) <to_load>: Use
10598 TARGET_DEFAULT_NORETURN.
10599
10600 2014-02-19 Tom Tromey <tromey@redhat.com>
10601
10602 * target-delegates.c: Rebuild.
10603 * target.c (update_current_target): Don't inherit or default
10604 to_terminal_info.
10605 * target.h (struct target_ops) <to_terminal_info>: Use
10606 TARGET_DEFAULT_FUNC.
10607
10608 2014-02-19 Tom Tromey <tromey@redhat.com>
10609
10610 * target-delegates.c: Rebuild.
10611 * target.c (update_current_target): Don't inherit or default
10612 to_terminal_save_ours.
10613 * target.h (struct target_ops) <to_terminal_save_ours>: Use
10614 TARGET_DEFAULT_IGNORE.
10615
10616 2014-02-19 Tom Tromey <tromey@redhat.com>
10617
10618 * target-delegates.c: Rebuild.
10619 * target.c (update_current_target): Don't inherit or default
10620 to_terminal_ours.
10621 * target.h (struct target_ops) <to_terminal_ours>: Use
10622 TARGET_DEFAULT_IGNORE.
10623
10624 2014-02-19 Tom Tromey <tromey@redhat.com>
10625
10626 * target-delegates.c: Rebuild.
10627 * target.c (update_current_target): Don't inherit or default
10628 to_terminal_ours_for_output.
10629 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
10630 TARGET_DEFAULT_IGNORE.
10631
10632 2014-02-19 Tom Tromey <tromey@redhat.com>
10633
10634 * target-delegates.c: Rebuild.
10635 * target.c (update_current_target): Don't inherit or default
10636 to_terminal_inferior.
10637 * target.h (struct target_ops) <to_terminal_inferior>: Use
10638 TARGET_DEFAULT_IGNORE.
10639
10640 2014-02-19 Tom Tromey <tromey@redhat.com>
10641
10642 * target-delegates.c: Rebuild.
10643 * target.c (update_current_target): Don't inherit or default
10644 to_terminal_init.
10645 * target.h (struct target_ops) <to_terminal_init>: Use
10646 TARGET_DEFAULT_IGNORE.
10647
10648 2014-02-19 Tom Tromey <tromey@redhat.com>
10649
10650 * target-delegates.c: Rebuild.
10651 * target.c (update_current_target): Don't inherit or default
10652 to_can_accel_watchpoint_condition.
10653 * target.h (struct target_ops)
10654 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
10655
10656 2014-02-19 Tom Tromey <tromey@redhat.com>
10657
10658 * target-delegates.c: Rebuild.
10659 * target.c (update_current_target): Don't inherit or default
10660 to_region_ok_for_hw_watchpoint.
10661 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10662 Use TARGET_DEFAULT_FUNC.
10663
10664 2014-02-19 Tom Tromey <tromey@redhat.com>
10665
10666 * target-delegates.c: Rebuild.
10667 * target.c (update_current_target): Don't inherit or default
10668 to_watchpoint_addr_within_range.
10669 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
10670 Use TARGET_DEFAULT_FUNC.
10671
10672 2014-02-19 Tom Tromey <tromey@redhat.com>
10673
10674 * target-delegates.c: Rebuild.
10675 * target.c (update_current_target): Don't inherit or default
10676 to_remove_watchpoint.
10677 * target.h (struct target_ops) <to_remove_watchpoint>: Use
10678 TARGET_DEFAULT_NORETURN.
10679
10680 2014-02-19 Tom Tromey <tromey@redhat.com>
10681
10682 * target-delegates.c: Rebuild.
10683 * target.c (update_current_target): Don't inherit or default
10684 to_insert_watchpoint.
10685 * target.h (struct target_ops) <to_insert_watchpoint>: Use
10686 TARGET_DEFAULT_RETURN.
10687
10688 2014-02-19 Tom Tromey <tromey@redhat.com>
10689
10690 * target-delegates.c: Rebuild.
10691 * target.c (update_current_target): Don't inherit or default
10692 to_remove_hw_breakpoint.
10693 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
10694 TARGET_DEFAULT_RETURN.
10695
10696 2014-02-19 Tom Tromey <tromey@redhat.com>
10697
10698 * target-delegates.c: Rebuild.
10699 * target.c (update_current_target): Don't inherit or default
10700 to_insert_hw_breakpoint.
10701 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
10702 TARGET_DEFAULT_RETURN.
10703
10704 2014-02-19 Tom Tromey <tromey@redhat.com>
10705
10706 * target-delegates.c: Rebuild.
10707 * target.c (update_current_target): Don't inherit or default
10708 to_can_use_hw_breakpoint.
10709 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
10710 TARGET_DEFAULT_RETURN.
10711
10712 2014-02-19 Tom Tromey <tromey@redhat.com>
10713
10714 * target-delegates.c: Rebuild.
10715 * target.c (update_current_target): Don't inherit or default
10716 to_files_info.
10717 * target.h (struct target_ops) <to_files_info>: Use
10718 TARGET_DEFAULT_IGNORE.
10719
10720 2014-02-19 Tom Tromey <tromey@redhat.com>
10721
10722 * target-delegates.c: Rebuild.
10723 * target.c (update_current_target): Don't inherit or default
10724 to_store.
10725 * target.h (struct target_ops) <to_store>: Use
10726 TARGET_DEFAULT_NORETURN.
10727
10728 2014-02-19 Tom Tromey <tromey@redhat.com>
10729
10730 * target-delegates.c: Rebuild.
10731 * target.c (update_current_target): Don't inherit or default
10732 to_post_attach.
10733 * target.h (struct target_ops) <to_post_attach>: Use
10734 TARGET_DEFAULT_IGNORE.
10735
10736 2014-02-19 Tom Tromey <tromey@redhat.com>
10737
10738 * target-delegates.c: Rebuild.
10739 * target.c (update_current_target): Don't inherit or default
10740 to_rcmd.
10741 (default_rcmd): New function.
10742 (do_monitor_command): Unconditionally delegate.
10743 * target.h (struct target_ops) <to_rmcd>: Use
10744 TARGET_DEFAULT_FUNC.
10745
10746 2014-02-19 Tom Tromey <tromey@redhat.com>
10747
10748 * target-delegates.c: Rebuild.
10749 * target.c (init_dummy_target): Don't initialize to_attach.
10750 (target_attach): Unconditionally delegate.
10751 * target.h (struct target_ops) <to_attach>: Use
10752 TARGET_DEFAULT_FUNC.
10753
10754 2014-02-19 Tom Tromey <tromey@redhat.com>
10755
10756 * target-delegates.c: Rebuild.
10757 * target.c (target_detach): Unconditionally delegate.
10758 (init_dummy_target): Don't initialize to_detach.
10759 * target.h (struct target_ops) <to_detach>: Use
10760 TARGET_DEFAULT_IGNORE.
10761
10762 2014-02-19 Tom Tromey <tromey@redhat.com>
10763
10764 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
10765 Add argument.
10766 (target_augmented_libraries_svr4_read): Add argument.
10767 * target.c (update_current_target): Update.
10768 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
10769 argument.
10770
10771 2014-02-19 Tom Tromey <tromey@redhat.com>
10772
10773 * target.h (struct target_ops) <to_call_history_range>: Add
10774 argument.
10775 * target.c (target_call_history_range): Add argument.
10776 * record-btrace.c (record_btrace_call_history_range): Add 'self'
10777 argument.
10778 (record_btrace_call_history_from): Update.
10779
10780 2014-02-19 Tom Tromey <tromey@redhat.com>
10781
10782 * target.h (struct target_ops) <to_call_history_from>: Add
10783 argument.
10784 * target.c (target_call_history_from): Add argument.
10785 * record-btrace.c (record_btrace_call_history_from): Add 'self'
10786 argument.
10787
10788 2014-02-19 Tom Tromey <tromey@redhat.com>
10789
10790 * target.h (struct target_ops) <to_call_history>: Add argument.
10791 * target.c (target_call_history): Add argument.
10792 * record-btrace.c (record_btrace_call_history): Add 'self'
10793 argument.
10794
10795 2014-02-19 Tom Tromey <tromey@redhat.com>
10796
10797 * target.h (struct target_ops) <to_insn_history_range>: Add
10798 argument.
10799 * target.c (target_insn_history_range): Add argument.
10800 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
10801 argument.
10802 (record_btrace_insn_history_from): Update.
10803
10804 2014-02-19 Tom Tromey <tromey@redhat.com>
10805
10806 * target.h (struct target_ops) <to_insn_history_from>: Add
10807 argument.
10808 * target.c (target_insn_history_from): Add argument.
10809 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
10810 argument.
10811
10812 2014-02-19 Tom Tromey <tromey@redhat.com>
10813
10814 * target.h (struct target_ops) <to_insn_history>: Add argument.
10815 * target.c (target_insn_history): Add argument.
10816 * record-btrace.c (record_btrace_insn_history): Add 'self'
10817 argument.
10818
10819 2014-02-19 Tom Tromey <tromey@redhat.com>
10820
10821 * target.h (struct target_ops) <to_goto_record>: Add argument.
10822 * target.c (target_goto_record): Add argument.
10823 * record-full.c (record_full_goto): Add 'self' argument.
10824 * record-btrace.c (record_btrace_goto): Add 'self' argument.
10825
10826 2014-02-19 Tom Tromey <tromey@redhat.com>
10827
10828 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
10829 * target.c (target_goto_record_end): Add argument.
10830 * record-full.c (record_full_goto_end): Add 'self' argument.
10831 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
10832
10833 2014-02-19 Tom Tromey <tromey@redhat.com>
10834
10835 * target.h (struct target_ops) <to_goto_record_begin>: Add
10836 argument.
10837 * target.c (target_goto_record_begin): Add argument.
10838 * record-full.c (record_full_goto_begin): Add 'self' argument.
10839 * record-btrace.c (record_btrace_goto_begin): Add 'self'
10840 argument.
10841
10842 2014-02-19 Tom Tromey <tromey@redhat.com>
10843
10844 * target.h (struct target_ops) <to_record_is_replaying>: Add
10845 argument.
10846 * target.c (target_record_is_replaying): Add argument.
10847 * record-full.c (record_full_is_replaying): Add 'self' argument.
10848 * record-btrace.c (record_btrace_is_replaying): Add 'self'
10849 argument.
10850 (record_btrace_xfer_partial, record_btrace_store_registers)
10851 (record_btrace_prepare_to_store, record_btrace_resume)
10852 (record_btrace_wait, record_btrace_decr_pc_after_break)
10853 (record_btrace_find_new_threads, record_btrace_thread_alive):
10854 Update.
10855
10856 2014-02-19 Tom Tromey <tromey@redhat.com>
10857
10858 * target.h (struct target_ops) <to_delete_record>: Add argument.
10859 * target.c (target_delete_record): Add argument.
10860 * record-full.c (record_full_delete): Add 'self' argument.
10861
10862 2014-02-19 Tom Tromey <tromey@redhat.com>
10863
10864 * target.h (struct target_ops) <to_save_record>: Add argument.
10865 * target.c (target_save_record): Add argument.
10866 * record-full.c (record_full_save): Add 'self' argument.
10867 (record_full_save): Add 'self' argument.
10868
10869 2014-02-19 Tom Tromey <tromey@redhat.com>
10870
10871 * target.h (struct target_ops) <to_info_record>: Add argument.
10872 * target.c (target_info_record): Add argument.
10873 * record.c (info_record_command): Add argument.
10874 * record-full.c (record_full_info): Add 'self' argument.
10875 * record-btrace.c (record_btrace_info): Add 'self' argument.
10876
10877 2014-02-19 Tom Tromey <tromey@redhat.com>
10878
10879 * target.h (struct target_ops) <to_stop_recording>: Add argument.
10880 * target.c (target_stop_recording): Add argument.
10881 * record.c (record_stop): Add argument.
10882 * record-btrace.c (record_btrace_stop_recording): Add 'self'
10883 argument.
10884
10885 2014-02-19 Tom Tromey <tromey@redhat.com>
10886
10887 * target.h (struct target_ops) <to_read_btrace>: Add argument.
10888 * target.c (struct target_ops) <to_read_btrace>: Add argument.
10889 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
10890 argument.
10891 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
10892 (_initialize_amd64_linux_nat): Use it.
10893 * i386-linux-nat.c (i386_linux_read_btrace): New function.
10894 (_initialize_i386_linux_nat): Use it.
10895
10896 2014-02-19 Tom Tromey <tromey@redhat.com>
10897
10898 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
10899 * target.c (target_teardown_btrace): Add argument.
10900 * remote.c (remote_teardown_btrace): Add 'self' argument.
10901 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
10902 argument.
10903 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
10904 argument.
10905
10906 2014-02-19 Tom Tromey <tromey@redhat.com>
10907
10908 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
10909 * target.c (target_disable_btrace): Add argument.
10910 * remote.c (remote_disable_btrace): Add 'self' argument.
10911 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
10912 argument.
10913 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
10914 argument.
10915
10916 2014-02-19 Tom Tromey <tromey@redhat.com>
10917
10918 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
10919 * target.c (target_enable_btrace): Add argument.
10920 * remote.c (remote_enable_btrace): Add 'self' argument.
10921 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
10922 argument.
10923 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
10924 argument.
10925
10926 2014-02-19 Tom Tromey <tromey@redhat.com>
10927
10928 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
10929 (target_can_use_agent): Add argument.
10930 * target.c (update_current_target): Update.
10931 * remote.c (remote_can_use_agent): Add 'self' argument.
10932 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
10933
10934 2014-02-19 Tom Tromey <tromey@redhat.com>
10935
10936 * target.h (struct target_ops) <to_use_agent>: Add argument.
10937 (target_use_agent): Add argument.
10938 * target.c (update_current_target): Update.
10939 * remote.c (remote_use_agent): Add 'self' argument.
10940 * inf-child.c (inf_child_use_agent): Add 'self' argument.
10941
10942 2014-02-19 Tom Tromey <tromey@redhat.com>
10943
10944 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
10945 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
10946 (target_traceframe_info): Add argument.
10947 * target.c (update_current_target): Update.
10948 * remote.c (remote_traceframe_info): Add 'self' argument.
10949 * ctf.c (ctf_traceframe_info): Add 'self' argument.
10950
10951 2014-02-19 Tom Tromey <tromey@redhat.com>
10952
10953 * target.h (target_static_tracepoint_markers_by_strid): Add
10954 argument.
10955 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
10956 'self' argument.
10957 * target.c (update_current_target): Update.
10958 * remote.c (struct target_ops)
10959 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
10960 * linux-nat.c (struct target_ops)
10961 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
10962
10963 2014-02-19 Tom Tromey <tromey@redhat.com>
10964
10965 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
10966 Add argument.
10967 (target_static_tracepoint_marker_at): Add argument.
10968 * target.c (update_current_target): Update.
10969 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
10970 argument.
10971
10972 2014-02-19 Tom Tromey <tromey@redhat.com>
10973
10974 * target.h (struct target_ops) <to_set_permissions>: Add argument.
10975 (target_set_permissions): Add argument.
10976 * target.c (update_current_target): Update.
10977 * remote.c (remote_set_permissions): Add 'self' argument.
10978 (remote_start_remote): Update.
10979
10980 2014-02-19 Tom Tromey <tromey@redhat.com>
10981
10982 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
10983 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
10984 (target_get_tib_address): Add argument.
10985 * target.c (update_current_target): Update.
10986 * remote.c (remote_get_tib_address): Add 'self' argument.
10987
10988 2014-02-19 Tom Tromey <tromey@redhat.com>
10989
10990 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
10991 (target_set_trace_notes): Add argument.
10992 * target.c (update_current_target): Update.
10993 * remote.c (remote_set_trace_notes): Add 'self' argument.
10994
10995 2014-02-19 Tom Tromey <tromey@redhat.com>
10996
10997 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
10998 argument.
10999 (target_set_trace_buffer_size): Add argument.
11000 * target.c (update_current_target): Update.
11001 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
11002
11003 2014-02-19 Tom Tromey <tromey@redhat.com>
11004
11005 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
11006 argument.
11007 (target_set_circular_trace_buffer): Add argument.
11008 * target.c (update_current_target): Update.
11009 * remote.c (remote_set_circular_trace_buffer): Add 'self'
11010 argument.
11011
11012 2014-02-19 Tom Tromey <tromey@redhat.com>
11013
11014 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
11015 argument.
11016 (target_set_disconnected_tracing): Add argument.
11017 * target.c (update_current_target): Update.
11018 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
11019
11020 2014-02-19 Tom Tromey <tromey@redhat.com>
11021
11022 * target.h (struct target_ops)
11023 <to_get_min_fast_tracepoint_insn_len>: Add argument.
11024 (target_get_min_fast_tracepoint_insn_len): Add argument.
11025 * target.c (update_current_target): Update.
11026 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
11027 argument.
11028
11029 2014-02-19 Tom Tromey <tromey@redhat.com>
11030
11031 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
11032 argument.
11033 (target_get_raw_trace_data): Add argument.
11034 * target.c (update_current_target): Update.
11035 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
11036
11037 2014-02-19 Tom Tromey <tromey@redhat.com>
11038
11039 * target.h (struct target_ops) <to_upload_trace_state_variables>:
11040 Add argument.
11041 (target_upload_trace_state_variables): Add argument.
11042 * target.c (update_current_target): Update.
11043 * remote.c (remote_upload_trace_state_variables): Add 'self'
11044 argument.
11045 (remote_start_remote): Update.
11046
11047 2014-02-19 Tom Tromey <tromey@redhat.com>
11048
11049 * target.h (struct target_ops) <to_upload_tracepoints>: Add
11050 argument.
11051 (target_upload_tracepoints): Add argument.
11052 * target.c (update_current_target): Update.
11053 * remote.c (remote_upload_tracepoints): Add 'self' argument.
11054 (remote_start_remote): Update.
11055
11056 2014-02-19 Tom Tromey <tromey@redhat.com>
11057
11058 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
11059 (target_save_trace_data): Add argument.
11060 * target.c (update_current_target): Update.
11061 * remote.c (remote_save_trace_data): Add 'self' argument.
11062
11063 2014-02-19 Tom Tromey <tromey@redhat.com>
11064
11065 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
11066 argument.
11067 * target.h (struct target_ops)
11068 <to_get_trace_state_variable_value>: Add argument.
11069 (target_get_trace_state_variable_value): Add argument.
11070 * target.c (update_current_target): Update.
11071 * remote.c (remote_get_trace_state_variable_value): Add 'self'
11072 argument.
11073 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
11074
11075 2014-02-19 Tom Tromey <tromey@redhat.com>
11076
11077 * tracepoint.c (tfile_trace_find): Add 'self' argument.
11078 * target.h (struct target_ops) <to_trace_find>: Add argument.
11079 (target_trace_find): Add argument.
11080 * target.c (update_current_target): Update.
11081 * remote.c (remote_trace_find): Add 'self' argument.
11082 * ctf.c (ctf_trace_find): Add 'self' argument.
11083
11084 2014-02-19 Tom Tromey <tromey@redhat.com>
11085
11086 * target.h (struct target_ops) <to_trace_stop>: Add argument.
11087 (target_trace_stop): Add argument.
11088 * target.c (update_current_target): Update.
11089 * remote.c (remote_trace_stop): Add 'self' argument.
11090
11091 2014-02-19 Tom Tromey <tromey@redhat.com>
11092
11093 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
11094 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
11095 argument.
11096 (target_get_tracepoint_status): Add argument.
11097 * target.c (update_current_target): Update.
11098 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
11099
11100 2014-02-19 Tom Tromey <tromey@redhat.com>
11101
11102 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
11103 * target.h (struct target_ops) <to_get_trace_status>: Add
11104 argument.
11105 (target_get_trace_status): Add argument.
11106 * target.c (update_current_target): Update.
11107 * remote.c (remote_get_trace_status): Add 'self' argument.
11108 (remote_start_remote, remote_can_download_tracepoint): Update.
11109 * ctf.c (ctf_get_trace_status): Add 'self' argument.
11110
11111 2014-02-19 Tom Tromey <tromey@redhat.com>
11112
11113 * target.h (struct target_ops) <to_trace_start>: Add argument.
11114 (target_trace_start): Add argument.
11115 * target.c (update_current_target): Update.
11116 * remote.c (remote_trace_start): Add 'self' argument.
11117
11118 2014-02-19 Tom Tromey <tromey@redhat.com>
11119
11120 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
11121 Add argument.
11122 (target_trace_set_readonly_regions): Add argument.
11123 * target.c (update_current_target): Update.
11124 * remote.c (remote_trace_set_readonly_regions): Add 'self'
11125 argument.
11126
11127 2014-02-19 Tom Tromey <tromey@redhat.com>
11128
11129 * target.h (struct target_ops) <to_disable_tracepoint>: Add
11130 argument.
11131 (target_disable_tracepoint): Add argument.
11132 * target.c (update_current_target): Update.
11133 * remote.c (remote_disable_tracepoint): Add 'self' argument.
11134
11135 2014-02-19 Tom Tromey <tromey@redhat.com>
11136
11137 * target.h (struct target_ops) <to_enable_tracepoint>: Add
11138 argument.
11139 (target_enable_tracepoint): Add argument.
11140 * target.c (update_current_target): Update.
11141 * remote.c (remote_enable_tracepoint): Add 'self' argument.
11142
11143 2014-02-19 Tom Tromey <tromey@redhat.com>
11144
11145 * target.h (struct target_ops) <to_download_trace_state_variable>:
11146 Add argument.
11147 (target_download_trace_state_variable): Add argument.
11148 * target.c (update_current_target): Update.
11149 * remote.c (remote_download_trace_state_variable): Add 'self'
11150 argument.
11151
11152 2014-02-19 Tom Tromey <tromey@redhat.com>
11153
11154 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
11155 argument.
11156 (target_can_download_tracepoint): Add argument.
11157 * target.c (update_current_target): Update.
11158 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
11159
11160 2014-02-19 Tom Tromey <tromey@redhat.com>
11161
11162 * target.h (struct target_ops) <to_download_tracepoint>: Add
11163 argument.
11164 (target_download_tracepoint): Add argument.
11165 * target.c (update_current_target): Update.
11166 * remote.c (remote_download_tracepoint): Add 'self' argument.
11167
11168 2014-02-19 Tom Tromey <tromey@redhat.com>
11169
11170 * target.h (struct target_ops) <to_trace_init>: Add argument.
11171 (target_trace_init): Add argument.
11172 * target.c (update_current_target): Update.
11173 * remote.c (remote_trace_init): Add 'self' argument.
11174
11175 2014-02-19 Tom Tromey <tromey@redhat.com>
11176
11177 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
11178 * target.c (target_fileio_readlink): Add argument.
11179 * remote.c (remote_hostio_readlink): Add 'self' argument.
11180 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
11181
11182 2014-02-19 Tom Tromey <tromey@redhat.com>
11183
11184 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
11185 * target.c (target_fileio_unlink): Add argument.
11186 * remote.c (remote_hostio_unlink): Add 'self' argument.
11187 (remote_file_delete): Update.
11188 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
11189
11190 2014-02-19 Tom Tromey <tromey@redhat.com>
11191
11192 * target.h (struct target_ops) <to_fileio_close>: Add argument.
11193 * target.c (target_fileio_close): Add argument.
11194 * remote.c (remote_hostio_close): Add 'self' argument.
11195 (remote_hostio_close_cleanup): Update.
11196 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
11197 Update.
11198 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
11199
11200 2014-02-19 Tom Tromey <tromey@redhat.com>
11201
11202 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
11203 * target.c (target_fileio_pread): Add argument.
11204 * remote.c (remote_hostio_pread): Add 'self' argument.
11205 (remote_bfd_iovec_pread, remote_file_get): Update.
11206 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
11207
11208 2014-02-19 Tom Tromey <tromey@redhat.com>
11209
11210 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
11211 * target.c (target_fileio_pwrite): Add argument.
11212 * remote.c (remote_hostio_pwrite): Add 'self' argument.
11213 (remote_file_put): Update.
11214 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
11215
11216 2014-02-19 Tom Tromey <tromey@redhat.com>
11217
11218 * target.h (struct target_ops) <to_fileio_open>: Add argument.
11219 * target.c (target_fileio_open): Add argument.
11220 * remote.c (remote_hostio_open): Add 'self' argument.
11221 (remote_bfd_iovec_open): Add 'self' argument.
11222 (remote_file_put): Add 'self' argument.
11223 (remote_file_get): Add 'self' argument.
11224 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
11225
11226 2014-02-19 Tom Tromey <tromey@redhat.com>
11227
11228 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
11229 Add argument.
11230 (target_can_run_breakpoint_commands): Add argument.
11231 * target.c (update_current_target): Update.
11232 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
11233 argument.
11234 (remote_insert_breakpoint): Add 'self' argument.
11235 (remote_insert_hw_breakpoint): Add 'self' argument.
11236 (remote_can_run_breakpoint_commands): Add 'self' argument.
11237
11238 2014-02-19 Tom Tromey <tromey@redhat.com>
11239
11240 * target.h (struct target_ops)
11241 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
11242 (target_supports_evaluation_of_breakpoint_conditions): Add
11243 argument.
11244 * target.c (update_current_target): Update.
11245 * remote.c (remote_supports_cond_breakpoints): Add 'self'
11246 argument.
11247 (remote_insert_breakpoint): Add 'self' argument.
11248 (remote_insert_hw_breakpoint): Add 'self' argument.
11249 (remote_supports_cond_breakpoints): Add 'self' argument.
11250
11251 2014-02-19 Tom Tromey <tromey@redhat.com>
11252
11253 * target.h (struct target_ops) <to_supports_string_tracing>: Add
11254 argument.
11255 (target_supports_string_tracing): Add argument.
11256 * target.c (update_current_target): Update.
11257 * remote.c (remote_supports_string_tracing): Add 'self' argument.
11258
11259 2014-02-19 Tom Tromey <tromey@redhat.com>
11260
11261 * target.h (struct target_ops)
11262 <to_supports_disable_randomization>: Add argument.
11263 * target.c (find_default_supports_disable_randomization): Add
11264 argument.
11265 (target_supports_disable_randomization): Add argument.
11266 (find_default_supports_disable_randomization): Add 'self'
11267 argument.
11268 * remote.c (extended_remote_supports_disable_randomization): Add
11269 'self' argument.
11270 (remote_supports_disable_randomization): Add 'self' argument.
11271 (extended_remote_create_inferior): Update.
11272 * linux-nat.c (linux_nat_supports_disable_randomization): Add
11273 'self' argument.
11274
11275 2014-02-19 Tom Tromey <tromey@redhat.com>
11276
11277 * target.h (struct target_ops)
11278 <to_supports_enable_disable_tracepoint>: Add argument.
11279 (target_supports_enable_disable_tracepoint): Add argument.
11280 * target.c (update_current_target): Update.
11281 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
11282 argument.
11283
11284 2014-02-19 Tom Tromey <tromey@redhat.com>
11285
11286 * target.h (struct target_ops) <to_supports_multi_process>: Add
11287 argument.
11288 (target_supports_multi_process): Add argument.
11289 * target.c (update_current_target): Update.
11290 * remote.c (remote_supports_multi_process): Add 'self' argument.
11291 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
11292 argument.
11293 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
11294 argument.
11295
11296 2014-02-19 Tom Tromey <tromey@redhat.com>
11297
11298 * target.h (struct target_ops) <to_execution_direction>: Add
11299 argument.
11300 (target_execution_direction): Add argument.
11301 * target.c (default_execution_direction): Add 'self' argument.
11302 * record-full.c (record_full_execution_direction): Add 'self'
11303 argument.
11304
11305 2014-02-19 Tom Tromey <tromey@redhat.com>
11306
11307 * target.h (struct target_ops) <to_can_execute_reverse>: Add
11308 argument.
11309 (target_can_execute_reverse): Add argument.
11310 * remote.c (remote_can_execute_reverse): Add 'self' argument.
11311 * record-full.c (record_full_can_execute_reverse): Add 'self'
11312 argument.
11313 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
11314 argument.
11315
11316 2014-02-19 Tom Tromey <tromey@redhat.com>
11317
11318 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
11319 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
11320 argument.
11321 (target_get_ada_task_ptid): Add argument.
11322 * target.c (update_current_target): Update.
11323 (default_get_ada_task_ptid): Add 'self' argument.
11324 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
11325 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
11326 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
11327 argument.
11328 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
11329 argument.
11330 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
11331 argument.
11332 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
11333 argument.
11334 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
11335 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
11336 argument.
11337
11338 2014-02-19 Tom Tromey <tromey@redhat.com>
11339
11340 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
11341 (target_goto_bookmark): Add argument.
11342 * target.c (dummy_goto_bookmark): Add 'self' argument.
11343 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
11344
11345 2014-02-19 Tom Tromey <tromey@redhat.com>
11346
11347 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
11348 (target_get_bookmark): Add argument.
11349 * target.c (dummy_get_bookmark): Add 'self' argument.
11350 * record-full.c (record_full_get_bookmark): Add 'self' argument.
11351
11352 2014-02-19 Tom Tromey <tromey@redhat.com>
11353
11354 * target.h (struct target_ops) <to_make_corefile_notes>: Add
11355 argument.
11356 (target_make_corefile_notes): Add argument.
11357 * target.c (dummy_make_corefile_notes): Add 'self' argument.
11358 * procfs.c (procfs_make_note_section): Add 'self' argument.
11359 (procfs_make_note_section): Add 'self' argument.
11360 (procfs_make_note_section): Add 'self' argument.
11361 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
11362 argument.
11363 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
11364 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
11365 * exec.c (exec_make_note_section): Add 'self' argument.
11366 (exec_make_note_section): Add 'self' argument.
11367
11368 2014-02-19 Tom Tromey <tromey@redhat.com>
11369
11370 * target.h (struct target_ops) <to_find_memory_regions>: Add
11371 argument.
11372 (target_find_memory_regions): Add argument.
11373 * target.c (dummy_find_memory_regions): Add 'self' argument.
11374 * procfs.c (proc_find_memory_regions): Add 'self' argument.
11375 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
11376 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
11377 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
11378 * exec. (exec_do_find_memory_regions): New global.
11379 (exec_set_find_memory_regions): Rewrite.
11380 (exec_find_memory_regions): New function.
11381 (init_exec_ops): Use exec_find_memory_regions.
11382
11383 2014-02-19 Tom Tromey <tromey@redhat.com>
11384
11385 * target.h (struct target_ops) <to_supports_non_stop>: Add
11386 argument.
11387 * target.c (find_default_supports_non_stop): Add argument.
11388 (target_supports_non_stop): Add argument.
11389 (find_default_supports_non_stop): Add 'self' argument.
11390 * remote.c (remote_supports_non_stop): Add 'self' argument.
11391 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
11392
11393 2014-02-19 Tom Tromey <tromey@redhat.com>
11394
11395 * target.h (struct target_ops) <to_log_command>: Add argument.
11396 (target_log_command): Add argument.
11397 * serial.h (serial_log_command): Add 'self' argument.
11398 * serial.c (serial_log_command): Add 'self' argument.
11399
11400 2014-02-19 Tom Tromey <tromey@redhat.com>
11401
11402 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
11403 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
11404 argument.
11405 (target_pid_to_exec_file): Add argument.
11406 * target.c (debug_to_pid_to_exec_file): Add argument.
11407 (update_current_target): Update.
11408 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
11409 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
11410 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
11411 (linux_handle_extended_wait): Update.
11412 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
11413 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
11414 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
11415 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
11416
11417 2014-02-19 Tom Tromey <tromey@redhat.com>
11418
11419 * target.h (struct target_ops) <to_rcmd>: Add argument.
11420 (target_rcmd): Add argument.
11421 * target.c (debug_to_rcmd): Add argument.
11422 (update_current_target, do_monitor_command): Update.
11423 * remote.c (remote_rcmd): Add 'self' argument.
11424 * monitor.c (monitor_rcmd): Add 'self' argument.
11425
11426 2014-02-19 Tom Tromey <tromey@redhat.com>
11427
11428 * windows-nat.c (windows_stop): Add 'self' argument.
11429 * target.h (struct target_ops) <to_stop>: Add argument.
11430 * target.c (target_stop): Add argument.
11431 (debug_to_stop): Add argument.
11432 (update_current_target): Update.
11433 * remote.c (remote_stop): Add 'self' argument.
11434 * remote-sim.c (gdbsim_stop): Add 'self' argument.
11435 (gdbsim_cntrl_c): Update.
11436 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
11437 * procfs.c (procfs_stop): Add 'self' argument.
11438 * nto-procfs.c (procfs_stop): Add 'self' argument.
11439 * monitor.c (monitor_stop): Add 'self' argument.
11440 (monitor_open): Update.
11441 * linux-nat.c (linux_nat_stop): Add argument.
11442 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
11443 * gnu-nat.c (gnu_stop): Add 'self' argument.
11444 * darwin-nat.c (darwin_stop): Add 'self' argument.
11445
11446 2014-02-19 Tom Tromey <tromey@redhat.com>
11447
11448 * target.h (struct target_ops) <to_thread_name>: Add argument.
11449 * target.c (target_thread_name): Add argument.
11450 (update_current_target): Update.
11451 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
11452
11453 2014-02-19 Tom Tromey <tromey@redhat.com>
11454
11455 * target.h (struct target_ops) <to_extra_thread_info>: Add
11456 argument.
11457 (target_extra_thread_info): Add argument.
11458 * target.c (update_current_target): Update.
11459 * remote.c (remote_threads_extra_info): Add 'self' argument.
11460 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
11461 argument.
11462 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
11463 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
11464 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
11465 argument.
11466 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
11467 argument.
11468 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
11469 argument.
11470 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
11471 argument.
11472
11473 2014-02-19 Tom Tromey <tromey@redhat.com>
11474
11475 * target.h (struct target_ops) <to_program_signals>: Add argument.
11476 * target.c (target_program_signals): Add argument.
11477 * remote.c (remote_program_signals): Add 'self' argument.
11478
11479 2014-02-19 Tom Tromey <tromey@redhat.com>
11480
11481 * target.h (struct target_ops) <to_pass_signals>: Add argument.
11482 * target.c (target_pass_signals): Add argument.
11483 * remote.c (remote_pass_signals): Add 'self' argument.
11484 (remote_start_remote): Update.
11485 * procfs.c (procfs_pass_signals): Add 'self' argument.
11486 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
11487 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
11488 (linux_nat_create_inferior, linux_nat_attach): Update.
11489
11490 2014-02-19 Tom Tromey <tromey@redhat.com>
11491
11492 * windows-nat.c (windows_can_run): Add 'self' argument.
11493 * target.h (struct target_ops) <to_can_run>: Add argument.
11494 (target_can_run): Add argument.
11495 * target.c (debug_to_can_run): Add argument.
11496 (update_current_target): Update.
11497 * nto-procfs.c (procfs_can_run): Add 'self' argument.
11498 * inf-child.c (inf_child_can_run): Add 'self' argument.
11499 * go32-nat.c (go32_can_run): Add 'self' argument.
11500
11501 2014-02-19 Tom Tromey <tromey@redhat.com>
11502
11503 * target.h (struct target_ops) <to_has_exited>: Add argument.
11504 (target_has_exited): Add argument.
11505 * target.c (debug_to_has_exited): Add argument.
11506 (update_current_target): Update.
11507
11508 2014-02-19 Tom Tromey <tromey@redhat.com>
11509
11510 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
11511 argument.
11512 (target_set_syscall_catchpoint): Add argument.
11513 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
11514 argument.
11515 * target.c (update_current_target): Update.
11516
11517 2014-02-19 Tom Tromey <tromey@redhat.com>
11518
11519 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
11520 argument.
11521 (target_remove_exec_catchpoint): Add argument.
11522 * target.c (debug_to_remove_exec_catchpoint): Add argument.
11523 (update_current_target): Update.
11524 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
11525 argument.
11526
11527 2014-02-19 Tom Tromey <tromey@redhat.com>
11528
11529 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
11530 argument.
11531 (target_insert_exec_catchpoint): Add argument.
11532 * target.c (debug_to_insert_exec_catchpoint): Add argument.
11533 (update_current_target): Update.
11534 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
11535 argument.
11536
11537 2014-02-19 Tom Tromey <tromey@redhat.com>
11538
11539 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
11540 argument.
11541 (target_remove_vfork_catchpoint): Add argument.
11542 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
11543 (update_current_target): Update.
11544 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
11545 argument.
11546
11547 2014-02-19 Tom Tromey <tromey@redhat.com>
11548
11549 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
11550 argument.
11551 (target_insert_vfork_catchpoint): Add argument.
11552 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
11553 (update_current_target): Update.
11554 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
11555 argument.
11556
11557 2014-02-19 Tom Tromey <tromey@redhat.com>
11558
11559 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
11560 argument.
11561 (target_remove_fork_catchpoint): Add argument.
11562 * target.c (debug_to_remove_fork_catchpoint): Add argument.
11563 (update_current_target): Update.
11564 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
11565 argument.
11566
11567 2014-02-19 Tom Tromey <tromey@redhat.com>
11568
11569 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
11570 argument.
11571 (target_insert_fork_catchpoint): Add argument.
11572 * target.c (debug_to_insert_fork_catchpoint): Add argument.
11573 (update_current_target): Update.
11574 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
11575 argument.
11576
11577 2014-02-19 Tom Tromey <tromey@redhat.com>
11578
11579 * target.h (struct target_ops) <to_post_startup_inferior>: Add
11580 argument.
11581 (target_post_startup_inferior): Add argument.
11582 * target.c (debug_to_post_startup_inferior): Add argument.
11583 (update_current_target): Update.
11584 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
11585 argument.
11586 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
11587 argument.
11588 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
11589 argument.
11590 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
11591 argument.
11592 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
11593 'self' argument.
11594 (super_post_startup_inferior): Likewise.
11595 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
11596 'self' argument.
11597 (super_post_startup_inferior): Likewise.
11598 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
11599 Add 'self' argument.
11600 (super_post_startup_inferior): Likewise.
11601
11602 2014-02-19 Tom Tromey <tromey@redhat.com>
11603
11604 * target.h (struct target_ops) <to_load>: Add argument.
11605 * target.c (target_load): Add argument.
11606 (debug_to_load): Add argument.
11607 (update_current_target): Update.
11608 * remote.c (remote_load): Add 'self' argument.
11609 * remote-sim.c (gdbsim_load): Add 'self' argument.
11610 * remote-mips.c (mips_load): Add 'self' argument.
11611 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
11612 * monitor.c (monitor_load): Add 'self' argument.
11613 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
11614
11615 2014-02-19 Tom Tromey <tromey@redhat.com>
11616
11617 * target.h (struct target_ops) <to_terminal_info>: Add argument.
11618 (target_terminal_info): Add argument.
11619 * target.c (debug_to_terminal_info): Add argument.
11620 (default_terminal_info): Likewise.
11621 * inflow.c (child_terminal_info): Add 'self' argument.
11622 * inferior.h (child_terminal_info): Add 'self' argument.
11623 * go32-nat.c (go32_terminal_info): Add 'self' argument.
11624
11625 2014-02-19 Tom Tromey <tromey@redhat.com>
11626
11627 * target.h (struct target_ops) <to_terminal_save_ours>: Add
11628 argument.
11629 (target_terminal_save_ours): Add argument.
11630 * target.c (debug_to_terminal_save_ours): Add argument.
11631 (update_current_target): Update.
11632 * inflow.c (terminal_save_ours): Add 'self' argument.
11633 * inferior.h (terminal_save_ours): Add 'self' argument.
11634
11635 2014-02-19 Tom Tromey <tromey@redhat.com>
11636
11637 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
11638 (target_terminal_ours): Add argument.
11639 * target.c (debug_to_terminal_ours): Add argument.
11640 (update_current_target): Update.
11641 * remote.c (remote_terminal_ours): Add 'self' argument.
11642 (remote_close): Update.
11643 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
11644 * inflow.c (terminal_ours): Add 'self' argument.
11645 * inferior.h (terminal_ours): Add 'self' argument.
11646 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11647
11648 2014-02-19 Pedro Alves <palves@redhat.com>
11649 Tom Tromey <tromey@redhat.com>
11650
11651 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
11652 argument.
11653 (target_terminal_ours_for_output): Add argument.
11654 * target.c (debug_to_terminal_ours_for_output): Add argument.
11655 (update_current_target): Update.
11656 * inflow.c (terminal_ours_for_output): Add 'self' argument.
11657 * inferior.h (terminal_ours_for_output): Add 'self' argument.
11658 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11659
11660 2014-02-19 Tom Tromey <tromey@redhat.com>
11661
11662 * target.h (struct target_ops) <to_terminal_inferior>: Add
11663 argument.
11664 * target.c (target_terminal_inferior): Add argument.
11665 (update_current_target): Update.
11666 * remote.c (remote_terminal_inferior): Add 'self' argument.
11667 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
11668 * inflow.c (terminal_inferior): Add 'self' argument.
11669 * inferior.h (terminal_inferior): Add 'self' argument.
11670 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
11671 (go32_terminal_inferior): Add 'self' argument.
11672
11673 2014-02-19 Tom Tromey <tromey@redhat.com>
11674
11675 * target.h (struct target_ops) <to_terminal_init>: Add argument.
11676 (target_terminal_init): Add argument.
11677 * target.c (debug_to_terminal_init): Add argument.
11678 (update_current_target): Update.
11679 * inflow.c (terminal_init_inferior): Add 'self' argument.
11680 * inferior.h (terminal_init_inferior): Add 'self' argument.
11681 * go32-nat.c (go32_terminal_init): Add 'self' argument.
11682 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
11683
11684 2014-02-19 Tom Tromey <tromey@redhat.com>
11685
11686 * target.h (struct target_ops)
11687 <to_can_accel_watchpoint_condition>: Add argument.
11688 (target_can_accel_watchpoint_condition): Add argument.
11689 * target.c (debug_to_can_accel_watchpoint_condition): Add
11690 argument.
11691 (update_current_target): Update.
11692 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
11693 'self' argument.
11694
11695 2014-02-19 Tom Tromey <tromey@redhat.com>
11696
11697 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11698 Add argument.
11699 (target_region_ok_for_hw_watchpoint): Add argument.
11700 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
11701 (default_region_ok_for_hw_watchpoint): Add argument.
11702 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
11703 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
11704 argument.
11705 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
11706 argument.
11707 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
11708 argument.
11709 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
11710 'self' argument.
11711 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
11712 'self' argument.
11713 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
11714 'self' argument.
11715 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
11716 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
11717 'self' argument.
11718 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
11719 Add 'self' argument.
11720
11721 2014-02-19 Tom Tromey <tromey@redhat.com>
11722
11723 * target.h (struct target_ops) <to_insert_watchpoint>: Add
11724 argument.
11725 (target_insert_watchpoint): Add argument.
11726 * target.c (debug_to_insert_watchpoint): Add argument.
11727 (update_current_target): Update.
11728 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
11729 * remote.c (remote_insert_watchpoint): Add 'self' argument.
11730 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
11731 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
11732 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
11733 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
11734 argument.
11735 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
11736 (procfs_insert_hw_watchpoint): Add 'self' argument.
11737 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
11738 argument.
11739 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
11740 argument.
11741 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
11742 argument.
11743 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
11744 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
11745 argument.
11746 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
11747 'self' argument.
11748
11749 2014-02-19 Tom Tromey <tromey@redhat.com>
11750
11751 * target.h (struct target_ops) <to_remove_watchpoint>: Add
11752 argument.
11753 (target_remove_watchpoint): Add argument.
11754 * target.c (debug_to_remove_watchpoint): Add argument.
11755 (update_current_target): Update.
11756 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
11757 * remote.c (remote_remove_watchpoint): Add 'self' argument.
11758 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
11759 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
11760 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
11761 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
11762 argument.
11763 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
11764 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
11765 argument.
11766 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
11767 argument.
11768 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
11769 argument.
11770 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
11771 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
11772 argument.
11773 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
11774 'self' argument.
11775
11776 2014-02-19 Tom Tromey <tromey@redhat.com>
11777
11778 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
11779 argument.
11780 (target_remove_hw_breakpoint): Add argument.
11781 * target.c (debug_to_remove_hw_breakpoint): Add argument.
11782 (update_current_target): Update.
11783 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
11784 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
11785 argument.
11786 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
11787 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
11788 argument.
11789 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
11790 'self' argument.
11791
11792 2014-02-19 Tom Tromey <tromey@redhat.com>
11793
11794 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
11795 argument.
11796 (target_insert_hw_breakpoint): Add argument.
11797 * target.c (debug_to_insert_hw_breakpoint): Add argument.
11798 (update_current_target): Update.
11799 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
11800 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
11801 argument.
11802 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
11803 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
11804 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
11805 argument.
11806 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
11807 'self' argument.
11808
11809 2014-02-19 Tom Tromey <tromey@redhat.com>
11810
11811 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
11812 argument.
11813 (target_can_use_hardware_watchpoint): Add argument.
11814 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
11815 (update_current_target): Update.
11816 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
11817 argument.
11818 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
11819 argument.
11820 * remote.c (remote_check_watch_resources): Add 'self' argument.
11821 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
11822 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
11823 argument.
11824 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
11825 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
11826 argument.
11827 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
11828 argument.
11829 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
11830 argument.
11831 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
11832 argument.
11833 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
11834 argument.
11835 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
11836 argument.
11837 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
11838 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
11839 argument.
11840 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
11841 'self' argument.
11842
11843 2014-02-19 Tom Tromey <tromey@redhat.com>
11844
11845 * target.h (struct target_ops) <to_post_attach>: Add argument.
11846 (target_post_attach): Add argument.
11847 * target.c (debug_to_post_attach): Add argument.
11848 (update_current_target): Update.
11849 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
11850 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
11851 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
11852 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
11853 * inf-child.c (inf_child_post_attach): Add 'self' argument.
11854
11855 2014-02-19 Tom Tromey <tromey@redhat.com>
11856
11857 * windows-nat.c (windows_close): Add 'self' argument.
11858 * tracepoint.c (tfile_close): Add 'self' argument.
11859 * target.h (struct target_ops) <to_close>: Add argument.
11860 * target.c (target_close): Add argument.
11861 (update_current_target): Update.
11862 * remote.c (remote_close): Add 'self' argument.
11863 * remote-sim.c (gdbsim_close): Add 'self' argument.
11864 * remote-mips.c (mips_close): Add 'self' argument.
11865 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
11866 * record-full.c (record_full_close): Add 'self' argument.
11867 * record-btrace.c (record_btrace_close): Add 'self' argument.
11868 * monitor.h (monitor_close): Add 'self' argument.
11869 * monitor.c (monitor_close): Add 'self' argument.
11870 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
11871 * linux-nat.c (linux_nat_close): Add argument.
11872 * go32-nat.c (go32_close): Add 'self' argument.
11873 * exec.c (exec_close_1): Add 'self' argument.
11874 * ctf.c (ctf_close): Add 'self' argument.
11875 * corelow.c (core_close): Add 'self' argument.
11876 (core_close_cleanup): Update.
11877 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
11878 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
11879
11880 2014-02-19 Tom Tromey <tromey@redhat.com>
11881
11882 * remote.c (remote_load): New function.
11883 (init_remote_ops): Use it.
11884
11885 2014-02-19 Tom Tromey <tromey@redhat.com>
11886
11887 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
11888 argument.
11889 * common/linux-btrace.h (linux_supports_btrace): Update.
11890 * remote.c (remote_supports_btrace): Add "self" argument.
11891 * target-delegates.c: Rebuild.
11892 * target.c (target_supports_btrace): Remove.
11893 * target.h (struct target_ops) <to_supports_btrace>: Add
11894 target_ops argument.
11895 (target_supports_btrace): New define.
11896
11897 2014-02-19 Tom Tromey <tromey@redhat.com>
11898
11899 * record-full.c (record_full_beneath_to_resume_ops)
11900 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
11901 (record_full_beneath_to_wait)
11902 (record_full_beneath_to_store_registers_ops)
11903 (record_full_beneath_to_store_registers)
11904 (record_full_beneath_to_xfer_partial_ops)
11905 (record_full_beneath_to_xfer_partial)
11906 (record_full_beneath_to_insert_breakpoint_ops)
11907 (record_full_beneath_to_insert_breakpoint)
11908 (record_full_beneath_to_remove_breakpoint_ops)
11909 (record_full_beneath_to_remove_breakpoint)
11910 (record_full_beneath_to_stopped_by_watchpoint)
11911 (record_full_beneath_to_stopped_data_address)
11912 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
11913 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
11914 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
11915 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
11916 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
11917 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
11918 (tmp_to_stopped_data_address, tmp_to_async): Remove.
11919 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
11920 (record_full_resume, record_full_wait_1)
11921 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
11922 (record_full_store_registers, record_full_xfer_partial)
11923 (record_full_insert_breakpoint, record_full_remove_breakpoint)
11924 (record_full_async, record_full_core_xfer_partial): Use target
11925 delegation.
11926 * target-delegates.c: Rebuild.
11927 * target.c (current_xfer_partial): Remove.
11928 (update_current_target): Do not INHERIT or de_fault
11929 to_insert_breakpoint, to_remove_breakpoint,
11930 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
11931 to_is_async_p, to_async. Do not set to_xfer_partial field.
11932 (default_xfer_partial): Simplify.
11933 (current_xfer_partial): Remove.
11934 (target_wait, target_resume): Simplify.
11935 (find_default_can_async_p, find_default_is_async_p): Update.
11936 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
11937 to_xfer_partial, to_stopped_by_watchpoint,
11938 to_stopped_data_address.
11939 (target_store_registers): Simplify.
11940 (forward_target_remove_breakpoint)
11941 (forward_target_insert_breakpoint): Remove.
11942 (target_remove_breakpoint, target_insert_breakpoint)
11943 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
11944 * target.h (struct target_ops) <to_resume, to_wait,
11945 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
11946 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
11947 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
11948 markup.
11949 (forward_target_remove_breakpoint)
11950 (forward_target_insert_breakpoint): Remove.
11951 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
11952 directly.
11953 (record_btrace_insert_breakpoint): Delegate directly.
11954
11955 2014-02-19 Tom Tromey <tromey@redhat.com>
11956
11957 PR build/7701:
11958 * target-delegates.c: New file.
11959 * target.c: Include target-delegates.c.
11960 (init_dummy_target): Call install_dummy_methods.
11961 (complete_target_initialization): Call install_delegators.
11962 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
11963 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
11964 * make-target-delegates: New file.
11965
11966 2014-02-19 Tom Tromey <tromey@redhat.com>
11967
11968 * record.c (find_record_target): Use find_target_at.
11969 * target.c (find_target_at): New function.
11970 * target.h (find_target_at): Declare.
11971
11972 2014-02-19 Tom Tromey <tromey@redhat.com>
11973
11974 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
11975 Add 'ops' argument.
11976 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
11977 'ops' argument.
11978 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
11979 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
11980 'ops' argument.
11981 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
11982 argument.
11983 * linux-nat.c (save_sigtrap): Update.
11984 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
11985 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
11986 (linux_nat_close): Update.
11987 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
11988 argument.
11989 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
11990 argument.
11991 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
11992 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
11993 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
11994 (tmp_to_async): Add 'ops' argument.
11995 (record_full_stopped_by_watchpoint, record_full_async)
11996 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
11997 argument.
11998 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
11999 (m32r_stopped_by_watchpoint): Add 'ops' argument.
12000 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
12001 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
12002 (remote_is_async_p, remote_async): Add 'ops' argument.
12003 (remote_stopped_data_address): Update.
12004 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
12005 * target.c (update_current_target)
12006 (find_default_can_async_p, find_default_is_async_p): Update.
12007 (init_dummy_target): Update.
12008 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
12009 * target.h (struct target_ops) <to_stopped_by_watchpoint,
12010 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
12011 (target_can_async_p, target_is_async_p, target_async)
12012 (target_stopped_by_watchpoint): Update.
12013
12014 2014-02-19 Yao Qi <yao@codesourcery.com>
12015
12016 PR gdb/16220
12017 * gdbarch.sh: Remove startup_gdbarch.
12018 * gdbarch.c: Regenerated.
12019 * gdbarch.h: Likewise.
12020
12021 2014-02-17 Kevin Buettner <kevinb@redhat.com>
12022
12023 * rl78-tdep.c (rl78_g10_register_name): New function.
12024 (rl78_return_value): Add g10 support.
12025 (rl78_gdbarch_init): Register rl78_g10_register_name for the
12026 g10.
12027
12028 2014-02-17 Doug Evans <xdje42@gmail.com>
12029
12030 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
12031 (SUBDIR_GUILE_SRCS): Ditto.
12032 (scm-gsmob.o): Ditto.
12033
12034 2014-02-17 Yao Qi <yao@codesourcery.com>
12035
12036 * gnu-nat.c (ILL_RPC): Declare defined function.
12037
12038 2014-02-17 Yao Qi <yao@codesourcery.com>
12039
12040 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
12041 mach_msg_type_number_t.
12042 (gnu_write_inferior): Likewise.
12043
12044 2014-02-17 Yao Qi <yao@codesourcery.com>
12045
12046 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
12047 in format string.
12048 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
12049 (inf_validate_procs, inf_signal): Likewise.
12050 (S_exception_raise_request): Likewise.
12051 (do_mach_notify_dead_name): Likewise.
12052 (steal_exc_port): Likewise.
12053 (gnu_read_inferior): Change 'copy_count''s type to
12054 mach_msg_type_number_t.
12055 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
12056 format string.
12057
12058 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
12059
12060 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
12061 flag. Adjust all users; in particular...
12062 (gnu_wait): ..., don't decrement its value in here...
12063 (gnu_create_inferior): ..., and instead set the flag in here,
12064 around the startup_inferior call, and call that one with
12065 START_INFERIOR_TRAPS_EXPECTED.
12066
12067 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
12068 (ILL_RPC): ... new macro.
12069 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
12070 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
12071 (do_mach_notify_send_once, S_proc_setmsgport_reply)
12072 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
12073 functions with ILL_RPC macro.
12074 (S_proc_pid2task_reply, S_proc_task2pid_reply)
12075 (S_proc_task2proc_reply, S_proc_proc2task_reply)
12076 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
12077 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
12078 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
12079 (S_proc_getlogin_reply, S_proc_getsid_reply)
12080 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
12081 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
12082 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
12083 (S_proc_getnports_reply, S_proc_is_important_reply)
12084 (S_proc_get_code_reply): New stub functions, generated with
12085 ILL_RPC macro.
12086
12087 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
12088 collected the type check structures.
12089
12090 * reply_mig_hack.awk: Don't expect to see the auto keyword.
12091
12092 2014-02-14 Doug Evans <dje@google.com>
12093
12094 * target.c (target_write_partial): Fix result type.
12095
12096 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
12097
12098 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
12099 the proper offsets to access fpregset_t.
12100
12101 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
12102
12103 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
12104 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
12105 * h8300-tdep.c (setmachinelist): Remove global.
12106 * hppa-tdep.c (hppa_sigtramp): Remove global.
12107 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
12108 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
12109 * ravenscar-thread.c (update_target_observer): Remove global.
12110 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
12111
12112 2014-02-12 Tom Tromey <tromey@redhat.com>
12113
12114 * common/rsp-low.c: Update comments.
12115 * common/rsp-low.h: Update comments.
12116
12117 2014-02-12 Tom Tromey <tromey@redhat.com>
12118
12119 * common/rsp-low.c (convert_ascii_to_int): Remove.
12120 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
12121
12122 2014-02-12 Tom Tromey <tromey@redhat.com>
12123
12124 * common/rsp-low.h (unhexify): Don't declare.
12125 * common/rsp-low.c (unhexify): Remove.
12126
12127 2014-02-12 Tom Tromey <tromey@redhat.com>
12128
12129 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
12130 * common/rsp-low.c (convert_int_to_ascii): Remove.
12131
12132 2014-02-12 Tom Tromey <tromey@redhat.com>
12133
12134 * common/rsp-low.h (hexify): Don't declare.
12135 * common/rsp-low.c (hexify): Remove.
12136
12137 2014-02-12 Tom Tromey <tromey@redhat.com>
12138
12139 * common/rsp-low.c (hexify): Never take strlen of argument.
12140
12141 2014-02-12 Tom Tromey <tromey@redhat.com>
12142
12143 * common/rsp-low.c (bin2hex): Never take strlen of argument.
12144 * remote.c (extended_remote_run, remote_rcmd)
12145 (remote_download_trace_state_variable, remote_save_trace_data)
12146 (remote_set_trace_notes): Update.
12147 * tracepoint.c (encode_source_string, tfile_write_status)
12148 (tfile_write_uploaded_tsv): Update.
12149
12150 2014-02-12 Tom Tromey <tromey@redhat.com>
12151
12152 * tracepoint.c: Include rsp-low.h.
12153 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
12154 * remote.c: Include rsp-low.h.
12155 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
12156 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
12157 (remote_unescape_input): Move to common/rsp-low.c.
12158 * common/rsp-low.h: New file.
12159 * common/rsp-low.c: New file.
12160 * Makefile.in (SFILES): Add common/rsp-low.c.
12161 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
12162 (COMMON_OBS): Add rsp-low.o.
12163 (rsp-low.o): New target.
12164
12165 2014-02-12 Tom Tromey <tromey@redhat.com>
12166
12167 * utils.h: Include print-utils.h.
12168 (host_address_to_string, plongest, pulongest, phex, phex_nz)
12169 (int_string, core_addr_to_string, core_addr_to_string_nz)
12170 (hex_string, hex_string_custom): Don't declare.
12171 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
12172 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
12173 (hex_string_custom, int_string, core_addr_to_string)
12174 (core_addr_to_string_nz, host_address_to_string): Move to
12175 common/print-utils.c.
12176 * common/print-utils.h: New file.
12177 * common/print-utils.c: New file
12178 * Makefile.in (SFILES): Add common/print-utils.c.
12179 (HFILES_NO_SRCDIR): Add common/print-utils.h.
12180 (COMMON_OBS): Add print-utils.o.
12181 (print-utils.o): New target.
12182
12183 2014-02-12 Tom Tromey <tromey@redhat.com>
12184
12185 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
12186
12187 2014-02-12 Mark Kettenis <kettenis@gnu.org>
12188
12189 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
12190
12191 2014-02-12 Mark Kettenis <kettenis@gnu.org>
12192
12193 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
12194 if a PT_IO ptrace request returns sucessfully but indicates that 0
12195 bytes were transferred.
12196
12197 2014-02-12 Pedro Alves <palves@redhat.com>
12198 Kevin Buettner <kevinb@redhat.com>
12199
12200 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
12201 TYPE_INSTANCE_FLAG_CODE_SPACE.
12202
12203 2014-02-12 Pedro Alves <palves@redhat.com>
12204
12205 * h8300-tdep.c (pseudo_from_raw_register)
12206 (raw_from_pseudo_register): New functions.
12207 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
12208 them.
12209
12210 2014-02-12 Pedro Alves <palves@redhat.com>
12211
12212 * h8300-tdep.c (h8300_register_sim_regno): New function.
12213 (h8300_gdbarch_init): Install h8300_register_sim_regno as
12214 gdbarch_register_sim_regno hook.
12215
12216 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
12217
12218 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
12219
12220 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
12221
12222 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
12223
12224 2014-02-12 Mark Kettenis <kettenis@gnu.org>
12225
12226 * obsd-tdep.h (obsd_init_abi): New prototype.
12227 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
12228 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
12229 (obsd_init_abi): New functions.
12230 * i386obsd-tdep.c: Include "obsd-tdep.h".
12231 (i386obsd_init_abi): Call obsd_init_abi.
12232 * amd64obsd-tdep.c: Include "obsd-tdep.h".
12233 (amd64obsd_init_abi): Call obsd_init_abi.
12234 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
12235 obsd-tdep.c to gdb_target_obs.
12236
12237 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
12238
12239 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
12240 double float arguments to 16-byte in the argument slots.
12241
12242 2014-02-11 Doug Evans <xdje42@gmail.com>
12243
12244 * configure.ac: Don't crash if pkg-config is not found and guile
12245 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
12246 in guile checks.
12247 * configure: Regenerate.
12248
12249 2014-02-11 Yao Qi <yao@codesourcery.com>
12250
12251 * aix-thread.c (aix_thread_xfer_partial): Update comments.
12252 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
12253 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
12254 * gnu-nat.c (gnu_xfer_memory): Likewise.
12255 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
12256 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12257 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12258 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12259
12260 2014-02-11 Yao Qi <yao@codesourcery.com>
12261
12262 * target.h (enum target_xfer_error): Rename to ...
12263 (enum target_xfer_status): ... it. New. All users updated.
12264 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
12265 New.
12266 (TARGET_XFER_STATUS_ERROR_P): New macro.
12267 (target_xfer_error_to_string): Remove declaration.
12268 (target_xfer_status_to_string): Declare.
12269 (target_xfer_partial_ftype): Adjust it.
12270 (struct target_ops) <to_xfer_partial>: Return
12271 target_xfer_status. Add argument xfered_len. Update
12272 comments.
12273 * target.c (target_xfer_error_to_string): Rename to ...
12274 (target_xfer_status_to_string): ... it. New. All callers
12275 updated.
12276 (target_read_live_memory): Likewise. Call target_xfer_partial
12277 instead of target_read.
12278 (memory_xfer_live_readonly_partial): Return
12279 target_xfer_status. Add argument xfered_len.
12280 (raw_memory_xfer_partial): Likewise.
12281 (memory_xfer_partial_1): Likewise.
12282 (memory_xfer_partial): Likewise.
12283 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
12284 properly. Update debug message.
12285 (default_xfer_partial, current_xfer_partial): Likewise.
12286 (target_write_partial): Likewise.
12287 (target_read_partial): Likewise. All callers updated.
12288 (read_whatever_is_readable): Likewise.
12289 (target_write_with_progress): Likewise.
12290 (target_read_alloc_1): Likewise.
12291
12292 * aix-thread.c (aix_thread_xfer_partial): Likewise.
12293 * auxv.c (procfs_xfer_auxv): Likewise.
12294 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
12295 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12296 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12297 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
12298 * corefile.c (read_memory): Adjust.
12299 * corelow.c (core_xfer_partial): Likewise.
12300 * ctf.c (ctf_xfer_partial): Likewise.
12301 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
12302 updated.
12303 (darwin_xfer_partial): Likewise.
12304 * exec.c (section_table_xfer_memory_partial): Likewise. All
12305 callers updated.
12306 (exec_xfer_partial): Likewise.
12307 * exec.h (section_table_xfer_memory_partial): Update
12308 declaration.
12309 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
12310 negative.
12311 (gnu_xfer_partial): Likewise.
12312 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
12313 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
12314 (ia64_hpux_xfer_solib_got): Likewise.
12315 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
12316 type of 'partial_len' to ULONGEST.
12317 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
12318 * linux-nat.c (linux_xfer_siginfo ): Likewise.
12319 (linux_nat_xfer_partial): Likewise.
12320 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
12321 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
12322 * monitor.c (monitor_xfer_memory): Likewise.
12323 (monitor_xfer_partial): Likewise.
12324 * procfs.c (procfs_xfer_partial): Likewise.
12325 * record-btrace.c (record_btrace_xfer_partial): Likewise.
12326 * record-full.c (record_full_xfer_partial): Likewise.
12327 (record_full_core_xfer_partial): Likewise.
12328 * remote-sim.c (gdbsim_xfer_memory): Likewise.
12329 (gdbsim_xfer_partial): Likewise.
12330 * remote.c (remote_write_bytes_aux): Likewise. All callers
12331 updated.
12332 (remote_write_bytes, remote_read_bytes): Likewise. All
12333 callers updated.
12334 (remote_flash_erase): Likewise. All callers updated.
12335 (remote_write_qxfer): Likewise. All callers updated.
12336 (remote_read_qxfer): Likewise. All callers updated.
12337 (remote_xfer_partial): Likewise.
12338 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12339 (rs6000_xfer_shared_libraries): Likewise.
12340 * sol-thread.c (sol_thread_xfer_partial): Likewise.
12341 (sol_thread_xfer_partial): Likewise.
12342 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12343 (sparc_xfer_partial): Likewise.
12344 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
12345 updated.
12346 (spu_xfer_partial): Likewise.
12347 * spu-multiarch.c (spu_xfer_partial): Likewise.
12348 * tracepoint.c (tfile_xfer_partial): Likewise.
12349 * windows-nat.c (windows_xfer_memory): Likewise.
12350 (windows_xfer_shared_libraries): Likewise.
12351 (windows_xfer_partial): Likewise.
12352 * valprint.c: Replace 'target_xfer_error' with
12353 'target_xfer_status' in comments.
12354
12355 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
12356
12357 Checked in by Joel Brobecker <brobecker@adacore.com>.
12358 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
12359
12360 2014-02-11 Joel Brobecker <brobecker@adacore.com>
12361
12362 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
12363 function parameters.
12364
12365 2014-02-10 Will Newton <will.newton@linaro.org>
12366
12367 * elfread.c (elf_rel_plt_read): Look for a .got section if
12368 looking up .got.plt fails.
12369 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
12370 on address passed to elf_gnu_ifunc_record_cache.
12371 (elf_gnu_ifunc_resolve_addr): Likewise.
12372 (elf_gnu_ifunc_resolver_return_stop): Likewise.
12373
12374 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
12375
12376 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
12377 (X_RETTURN): New macro.
12378 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
12379
12380 * sparc64-tdep.c (sparc64_init_abi): Hook
12381 sparc_in_function_epilogue_p.
12382
12383 2014-02-10 Gary Benson <gbenson@redhat.com>
12384
12385 * symfile-debug.c (debug_qf_expand_symtabs_matching):
12386 Rename name_matcher to symbol_matcher.
12387
12388 2014-02-10 Gary Benson <gbenson@redhat.com>
12389
12390 * symfile-debug.c (debug_qf_expand_symtabs_matching):
12391 Use expand_symtabs_file_matcher_ftype and
12392 expand_symtabs_symbol_matcher_ftype.
12393
12394 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12395
12396 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
12397 (struct ada_symbol_cache): New.
12398 (ada_free_symbol_cache): Forward declare.
12399 (struct ada_pspace_data): New.
12400 (ada_pspace_data_handle): New static global.
12401 (get_ada_pspace_data, ada_pspace_data_cleanup)
12402 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
12403 (cache_space, cache): Delete, now folded inside struct
12404 ada_pspace_data.
12405 (ada_get_symbol_cache): New function.
12406 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
12407 implementation.
12408 (_initialize_ada_language): Remove initialization of cache_space.
12409 Move call to observer_attach_inferior_exit up, grouping it
12410 with the other observer registrations inside this function.
12411 Rename command to be more general. Add call to
12412 register_program_space_data_with_cleanup.
12413
12414 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12415
12416 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
12417 ada_new_objfile_observer.
12418 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
12419 (_initialize_tasks): Update uses of ada_new_objfile_observer
12420 and ada_tasks_normal_stop_observer.
12421
12422 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12423
12424 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
12425 returned by the 'Length attribute to integer.
12426
12427 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12428
12429 * ada-lang.c (_initialize_ada_language): Initialize
12430 cache_space obstack.
12431
12432 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12433
12434 * ada-lang.c (HASH_SIZE): New macro.
12435 (struct cache_entry): New type.
12436 (cache_space, cache): New static globals.
12437 (ada_clear_symbol_cache, find_entry): New functions.
12438 (lookup_cached_symbol, cache_symbol): Implement.
12439 (ada_new_objfile_observer, ada_free_objfile_observer): New.
12440 (_initialize_ada_language): Attach ada_new_objfile_observer
12441 and ada_free_objfile_observer.
12442
12443 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12444
12445 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
12446 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
12447 struct block * parameter.
12448 (ada_lookup_symbol_list_worker): Constify local variable "block".
12449 Remove cast which is no longer necessary.
12450
12451 2014-02-10 Doug Evans <xdje42@gmail.com>
12452
12453 Add Guile as an extension language.
12454 * NEWS: Mention Guile scripting.
12455 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
12456 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
12457 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
12458 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
12459 (CLIBS): Add GUILE_LIBS.
12460 (install-guile): New rule.
12461 (guile.o): New rule.
12462 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
12463 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
12464 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
12465 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
12466 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
12467 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
12468 (scm-type.o, scm-utils.o, scm-value.o): New rules.
12469 * configure.ac: New option --with-guile.
12470 * configure: Regenerate.
12471 * config.in: Regenerate.
12472 * auto-load.c: Remove #include "python/python.h". Add #include
12473 "gdb/section-scripts.h".
12474 (source_section_scripts): Handle Guile scripts.
12475 (_initialize_auto_load): Add name of Guile objfile script to
12476 scripts-directory help text.
12477 * breakpoint.c (condition_command): Tweak comment to include Scheme.
12478 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
12479 (struct breakpoint): New member scm_bp_object.
12480 * defs.h (enum command_control_type): New value guile_control.
12481 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
12482 "extension.h".
12483 (show_user): Update comment.
12484 (_initialize_cli_cmds): Update help text for "show user". Update help
12485 text for max-user-call-depth.
12486 * cli/cli-script.c: Remove #include "python/python.h". Add #include
12487 "extension.h".
12488 (multi_line_command_p): Add guile_control.
12489 (print_command_lines): Handle guile_control.
12490 (execute_control_command, recurse_read_control_structure): Ditto.
12491 (process_next_line): Recognize "guile" commands.
12492 * disasm.c (gdb_disassemble_info): Make non-static.
12493 * disasm.h: #include "dis-asm.h".
12494 (struct gdbarch): Add forward decl.
12495 (gdb_disassemble_info): Declare.
12496 * extension.c: #include "guile/guile.h".
12497 (extension_languages): Add guile.
12498 (get_ext_lang_defn): Handle EXT_LANG_GDB.
12499 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
12500 * gdbtypes.c (get_unsigned_type_max): New function.
12501 (get_signed_type_minmax): New function.
12502 * gdbtypes.h (get_unsigned_type_max): Declare.
12503 (get_signed_type_minmax): Declare.
12504 * guile/README: New file.
12505 * guile/guile-internal.h: New file.
12506 * guile/guile.c: New file.
12507 * guile/guile.h: New file.
12508 * guile/scm-arch.c: New file.
12509 * guile/scm-auto-load.c: New file.
12510 * guile/scm-block.c: New file.
12511 * guile/scm-breakpoint.c: New file.
12512 * guile/scm-disasm.c: New file.
12513 * guile/scm-exception.c: New file.
12514 * guile/scm-frame.c: New file.
12515 * guile/scm-gsmob.c: New file.
12516 * guile/scm-iterator.c: New file.
12517 * guile/scm-lazy-string.c: New file.
12518 * guile/scm-math.c: New file.
12519 * guile/scm-objfile.c: New file.
12520 * guile/scm-ports.c: New file.
12521 * guile/scm-pretty-print.c: New file.
12522 * guile/scm-safe-call.c: New file.
12523 * guile/scm-string.c: New file.
12524 * guile/scm-symbol.c: New file.
12525 * guile/scm-symtab.c: New file.
12526 * guile/scm-type.c: New file.
12527 * guile/scm-utils.c: New file.
12528 * guile/scm-value.c: New file.
12529 * guile/lib/gdb.scm: New file.
12530 * guile/lib/gdb/boot.scm: New file.
12531 * guile/lib/gdb/experimental.scm: New file.
12532 * guile/lib/gdb/init.scm: New file.
12533 * guile/lib/gdb/iterator.scm: New file.
12534 * guile/lib/gdb/printing.scm: New file.
12535 * guile/lib/gdb/types.scm: New file.
12536 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
12537 (VPATH): Add $(GUILE_SRCDIR).
12538 (GUILE_DIR): New variable.
12539 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
12540 (all): Add stamp-guile dependency.
12541 (stamp-guile): New rule.
12542 (clean-guile, install-guile, uninstall-guile): New rules.
12543 (install-only): Add install-guile dependency.
12544 (uninstall): Add uninstall-guile dependency.
12545 (clean): Add clean-guile dependency.
12546
12547 2014-02-09 Doug Evans <xdje42@gmail.com>
12548
12549 Revert this patch (which I approved, mea culpa).
12550
12551 2014-02-08 Mark Kettenis <kettenis@gnu.org>
12552
12553 * Makefile.in (all-lib): Remove.
12554 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12555
12556 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
12557
12558 Fix Python stack corruption.
12559 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
12560 gdb_py_longest.
12561
12562 2014-02-08 Mark Kettenis <kettenis@gnu.org>
12563
12564 * Makefile.in (all-lib): Remove.
12565 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12566
12567 2014-02-07 Doug Evans <dje@google.com>
12568
12569 * extension-priv.h (extension_language_script_ops): Add comment.
12570 (extension_language_ops): Add comment.
12571 (active_ext_lang_state): Fix typo in comment.
12572
12573 2014-02-07 Pedro Alves <palves@redhat.com>
12574
12575 PR breakpoints/16292
12576 * infrun.c (handle_signal_stop) <signal arrives while stepping
12577 over a breakpoint>: Switch back to the stepping thread.
12578
12579 2014-02-07 Yao Qi <yao@codesourcery.com>
12580
12581 * target.c (target_xfer_partial): Return zero if LEN is zero.
12582
12583 2014-02-07 Yao Qi <yao@codesourcery.com>
12584
12585 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
12586 (ld_so_xfer_auxv): Likewise.
12587 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12588 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12589 * corelow.c (core_xfer_partial): Likewise.
12590 * ctf.c (ctf_xfer_partial): Likewise.
12591 * darwin-nat.c (darwin_read_dyld_info): Likewise.
12592 (darwin_xfer_partial): Likewise.
12593 * exec.c (exec_xfer_partial): Likewise.
12594 * gnu-nat.c (gnu_xfer_partial): Likewise.
12595 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
12596 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
12597 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
12598 * linux-nat.c (linux_xfer_siginfo): Likewise.
12599 (linux_proc_xfer_spu): Likewise.
12600 * procfs.c (procfs_xfer_partial): Likewise.
12601 * record-full.c (record_full_xfer_partial): Likewise.
12602 (record_full_core_xfer_partial): Likewise.
12603 * remote-sim.c (gdbsim_xfer_partial): Likewise.
12604 * remote.c (remote_write_qxfer): Likewise.
12605 (remote_write_qxfer, remote_read_qxfer): Likewise.
12606 (remote_xfer_partial): Likewise.
12607 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12608 (rs6000_xfer_shared_libraries): Likewise.
12609 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12610 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12611 (spu_xfer_partial): Likewise.
12612 * target.c (memory_xfer_partial_1): Likewise.
12613 * tracepoint.c (tfile_xfer_partial): Likewise.
12614 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
12615 (windows_xfer_partial): Likewise.
12616
12617 2014-02-07 Yao Qi <yao@codesourcery.com>
12618
12619 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
12620 comments.
12621 (core_xfer_shared_libraries_aix): Likewise.
12622 * gdbarch.c, gdbarch.h: Regenerated.
12623 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
12624 ULONGEST. Change 'len_avail' type to ULONGEST.
12625 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12626 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12627 declaration.
12628 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
12629
12630 2014-02-07 Yao Qi <yao@codesourcery.com>
12631
12632 * corefile.c (memory_error): Get 'exception' from ERR and pass
12633 'exception' to throw_error.
12634
12635 2014-02-06 Doug Evans <xdje42@gmail.com>
12636
12637 * configure.ac (libpython checking): Remove all but python.o from
12638 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
12639 * configure: Regenerate.
12640
12641 * Makefile.in (SFILES): Add extension.c.
12642 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
12643 (COMMON_OBS): Add extension.o.
12644 * extension.h: New file.
12645 * extension-priv.h: New file.
12646 * extension.c: New file.
12647
12648 * python/python-internal.h: #include "extension.h".
12649 (gdbpy_auto_load_enabled): Declare.
12650 (gdbpy_apply_val_pretty_printer): Declare.
12651 (gdbpy_apply_frame_filter): Declare.
12652 (gdbpy_preserve_values): Declare.
12653 (gdbpy_breakpoint_cond_says_stop): Declare.
12654 (gdbpy_breakpoint_has_cond): Declare.
12655 (void source_python_script_for_objfile): Delete.
12656 * python/python.c: #include "extension-priv.h".
12657 Delete inclusion of "observer.h".
12658 (extension_language_python): Moved here and renamed from
12659 script_language_python in py-auto-load.c.
12660 Redefined to be of type extension_language_defn.
12661 (python_extension_script_ops): New global.
12662 (python_extension_ops): New global.
12663 (struct python_env): New member previous_active.
12664 (restore_python_env): Call restore_active_ext_lang.
12665 (ensure_python_env): Call set_active_ext_lang.
12666 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
12667 New arg extlang.
12668 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
12669 New arg extlang.
12670 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
12671 New arg extlang.
12672 (gdbpy_eval_from_control_command): Renamed from
12673 eval_python_from_control_command, made static. New arg extlang.
12674 (gdbpy_source_script) Renamed from source_python_script, made static.
12675 New arg extlang.
12676 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
12677 result to int. New arg extlang.
12678 (gdbpy_source_objfile_script): Renamed from
12679 source_python_script_for_objfile, made static. New arg extlang.
12680 (gdbpy_start_type_printers): Renamed from start_type_printers, made
12681 static. New args extlang, extlang_printers. Change result type to
12682 "void".
12683 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
12684 static. New arg extlang. Rename arg printers to extlang_printers
12685 and change type to ext_lang_type_printers *.
12686 (gdbpy_free_type_printers): Renamed from free_type_printers, made
12687 static. Replace argument arg with extlang, extlang_printers.
12688 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
12689 (!HAVE_PYTHON, source_python_script): Delete.
12690 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
12691 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
12692 (!HAVE_PYTHON, start_type_printers): Delete.
12693 (!HAVE_PYTHON, apply_type_printers): Delete.
12694 (!HAVE_PYTHON, free_type_printers): Delete.
12695 (_initialize_python): Delete call to observer_attach_before_prompt.
12696 (finalize_python): Set/restore active extension language.
12697 (gdbpy_finish_initialization) Renamed from
12698 finish_python_initialization, made static. New arg extlang.
12699 (gdbpy_initialized): New function.
12700 * python/python.h: #include "extension.h". Delete #include
12701 "value.h", "mi/mi-cmds.h".
12702 (extension_language_python): Declare.
12703 (GDBPY_AUTO_FILE_NAME): Delete.
12704 (enum py_bt_status): Moved to extension.h and renamed to
12705 ext_lang_bt_status.
12706 (enum frame_filter_flags): Moved to extension.h.
12707 (enum py_frame_args): Moved to extension.h and renamed to
12708 ext_lang_frame_args.
12709 (finish_python_initialization): Delete.
12710 (eval_python_from_control_command): Delete.
12711 (source_python_script): Delete.
12712 (apply_val_pretty_printer): Delete.
12713 (apply_frame_filter): Delete.
12714 (preserve_python_values): Delete.
12715 (gdbpy_script_language_defn): Delete.
12716 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
12717 (start_type_printers, apply_type_printers, free_type_printers): Delete.
12718
12719 * auto-load.c: #include "extension.h".
12720 (GDB_AUTO_FILE_NAME): Delete.
12721 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
12722 (script_language_gdb): Delete, moved to extension.c and renamed to
12723 extension_language_gdb.
12724 (source_gdb_script_for_objfile): Delete.
12725 (auto_load_pspace_info): New member unsupported_script_warning_printed.
12726 (loaded_script): Change type of language member to
12727 struct extension_language_defn *.
12728 (init_loaded_scripts_info): Initialize
12729 unsupported_script_warning_printed.
12730 (maybe_add_script): Make static. Change type of language arg to
12731 struct extension_language_defn *.
12732 (clear_section_scripts): Reset unsupported_script_warning_printed.
12733 (auto_load_objfile_script_1): Rewrite to use extension language API.
12734 (auto_load_objfile_script): Make public. Remove support-compiled-in
12735 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
12736 (source_section_scripts): Rewrite to use extension language API.
12737 (load_auto_scripts_for_objfile): Rewrite to use
12738 auto_load_scripts_for_objfile.
12739 (collect_matching_scripts_data): Change type of language member to
12740 struct extension_language_defn *.
12741 (auto_load_info_scripts): Change type of language arg to
12742 struct extension_language_defn *.
12743 (unsupported_script_warning_print): New function.
12744 (script_not_found_warning_print): Make static.
12745 (_initialize_auto_load): Rewrite construction of scripts-directory
12746 help.
12747 * auto-load.h (struct objfile): Add forward decl.
12748 (struct script_language): Delete.
12749 (struct auto_load_pspace_info): Add forward decl.
12750 (struct extension_language_defn): Add forward decl.
12751 (maybe_add_script): Delete.
12752 (auto_load_objfile_script): Declare.
12753 (script_not_found_warning_print): Delete.
12754 (auto_load_info_scripts): Update prototype.
12755 (auto_load_gdb_scripts_enabled): Declare.
12756 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
12757 auto_load_python_scripts_enabled and made public.
12758 (script_language_python): Delete, moved to python.c.
12759 (gdbpy_script_language_defn): Delete.
12760 (info_auto_load_python_scripts): Update to use
12761 extension_language_python.
12762
12763 * breakpoint.c (condition_command): Replace call to
12764 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
12765 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
12766 with call to breakpoint_ext_lang_cond_says_stop.
12767 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
12768 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
12769 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
12770 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
12771 New arg slang.
12772 (local_setattro): Print name of extension language with existing
12773 stop condition.
12774
12775 * valprint.c (val_print, value_print): Update to call
12776 apply_ext_lang_val_pretty_printer.
12777 * cp-valprint.c (cp_print_value): Update call to
12778 apply_ext_lang_val_pretty_printer.
12779 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
12780 (gdbpy_apply_val_pretty_printer): Renamed from
12781 apply_val_pretty_printer. New arg extlang.
12782 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
12783
12784 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
12785 extension language API.
12786 * cli/cli-script.c (execute_control_command): Update to call
12787 eval_ext_lang_from_control_command.
12788
12789 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
12790 enum ext_lang_bt_status values. Update call to
12791 apply_ext_lang_frame_filter.
12792 (mi_cmd_stack_list_locals): Ditto.
12793 (mi_cmd_stack_list_args): Ditto.
12794 (mi_cmd_stack_list_variables): Ditto.
12795 * mi/mi-main.c: Delete #include "python/python-internal.h".
12796 Add #include "extension.h".
12797 (mi_cmd_list_features): Replace reference to python internal variable
12798 gdb_python_initialized with call to ext_lang_initialized_p.
12799
12800 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
12801 Update to use enum ext_lang_frame_args. Update to call
12802 apply_ext_lang_frame_filter.
12803 * python/py-framefilter.c (extract_sym): Update to use enum
12804 ext_lang_bt_status.
12805 (extract_value, py_print_type, py_print_value): Ditto.
12806 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
12807 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
12808 (py_print_frame): Ditto.
12809 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
12810 New arg extlang. Update to use enum ext_lang_bt_status.
12811
12812 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
12813 finish_python_initialization. Replace with call to
12814 finish_ext_lang_initialization.
12815
12816 * typeprint.c (do_free_global_table): Update to call
12817 free_ext_lang_type_printers.
12818 (create_global_typedef_table): Update to call
12819 start_ext_lang_type_printers.
12820 (find_global_typedef): Update to call apply_ext_lang_type_printers.
12821 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
12822 (type_print_options): Change type of global_printers from "void *"
12823 to "struct ext_lang_type_printers *".
12824
12825 * value.c (preserve_values): Update to call preserve_ext_lang_values.
12826 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
12827 (gdbpy_preserve_values): Renamed from preserve_python_values.
12828 New arg extlang.
12829 (!HAVE_PYTHON, preserve_python_values): Delete.
12830
12831 * utils.c (quit_flag): Delete, moved to extension.c.
12832 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
12833 extension.c.
12834
12835 * eval.c: Delete #include "python/python.h".
12836 * main.c: Delete #include "python/python.h".
12837
12838 * defs.h: Update comment.
12839
12840 2014-02-06 Joel Brobecker <brobecker@adacore.com>
12841
12842 GDB 7.7 released.
12843
12844 2014-02-05 Mark Kettenis <kettenis@gnu.org>
12845
12846 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
12847 defined.
12848
12849 2014-02-05 Yao Qi <yao@codesourcery.com>
12850
12851 * remote.c (remote_pass_signals): Remove local 'buf' and use
12852 rs->buf.
12853 (remote_program_signals): Likewise.
12854
12855 2014-02-05 Yao Qi <yao@codesourcery.com>
12856
12857 * ctf.c: Include "inferior.h" and "gdbthread.h".
12858 (CTF_PID): A new macro.
12859 (ctf_open): Call inferior_appeared and add_thread_silent.
12860 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
12861 (ctf_thread_alive): New function.
12862 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
12863
12864 2014-02-05 Yao Qi <yao@codesourcery.com>
12865
12866 Revert this patch:
12867
12868 2013-05-24 Yao Qi <yao@codesourcery.com>
12869
12870 * tracepoint.c (TFILE_PID): Remove.
12871 (tfile_open): Don't add thread and inferior.
12872 (tfile_close): Don't set 'inferior_ptid'. Don't call
12873 exit_inferior_silent.
12874 (tfile_thread_alive): Remove.
12875 (init_tfile_ops): Don't set field 'to_thread_alive' of
12876 tfile_ops.
12877
12878 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
12879
12880 * remote.c (remote_start_remote): Call remote_check_symbols even
12881 if only symbol-file (not file) has been given.
12882
12883 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12884
12885 * gdbarch.sh (skip_entrypoint): New callback.
12886 * gdbarch.c, gdbarch.h: Regenerate.
12887 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
12888 * infrun.c (fill_in_stop_func): Likewise.
12889 * ppc-linux-tdep.c: Include "elf/ppc64.h".
12890 (ppc_elfv2_elf_make_msymbol_special): New function.
12891 (ppc_elfv2_skip_entrypoint): Likewise.
12892 (ppc_linux_init_abi): Install them for ELFv2.
12893
12894 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12895
12896 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
12897 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
12898 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
12899 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
12900 structures returned in GPRs.
12901
12902 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12903
12904 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
12905 offset to the stack parameter list for the ELFv2 ABI.
12906
12907 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12908
12909 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
12910 set_gdbarch_convert_from_func_ptr_addr and
12911 set_gdbarch_elf_make_msymbol_special for ELFv1.
12912 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
12913 function descriptors on ELFv1.
12914 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
12915 set up r12 at function entry.
12916
12917 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12918
12919 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
12920 (struct gdbarch_tdep): New member elf_abi.
12921
12922 * rs6000-tdep.c: Include "elf/ppc64.h".
12923 (rs6000_gdbarch_init): Detect ELF ABI version.
12924
12925 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12926
12927 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
12928 within a register pair holding a DFP 128-bit value on little-endian.
12929 (ppc64_sysv_abi_return_value_base): Likewise.
12930 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
12931 (dfp_pseudo_register_write): Likewise.
12932
12933 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12934
12935 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
12936 offset on little-endian when passing _Decimal32.
12937 (ppc64_sysv_abi_return_value_base): Likewise for return values.
12938
12939 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12940
12941 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
12942 of the overlapped FP register within the VSX register on little-
12943 endian platforms.
12944 (efpr_pseudo_register_write): Likewise.
12945
12946 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12947
12948 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
12949 offset on little-endian when passing small structures.
12950
12951 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12952
12953 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
12954 (struct ppc64_sysv_argpos): New data structure.
12955 (ppc64_sysv_abi_push_float): Remove.
12956 (ppc64_sysv_abi_push_val): New function.
12957 (ppc64_sysv_abi_push_integer): Likewise.
12958 (ppc64_sysv_abi_push_freg): Likewise.
12959 (ppc64_sysv_abi_push_vreg): Likewise.
12960 (ppc64_sysv_abi_push_param): Likewise.
12961 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
12962 (ppc64_sysv_abi_return_value_base): New function.
12963 (ppc64_sysv_abi_return_value): Refactor to use it.
12964
12965 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12966
12967 * NEWS: Document new target powerpc64le-*-linux*.
12968
12969 2014-02-04 Mark Kettenis <kettenis@gnu.org>
12970
12971 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
12972 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
12973 core dumps.
12974 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
12975 register set used in ELF core dumps. Add floating-point register set.
12976
12977 2014-02-03 Kevin Buettner <kevinb@redhat.com>
12978
12979 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
12980 dwarf2_to_gdb[] table using symbolic constants. Adjust
12981 penultimate entry from number representing the PC register
12982 to symbolic constant representing the MDR register. Add
12983 constant for the PC register to the end of the table.
12984
12985 2014-02-03 Mark Kettenis <kettenis@gnu.org>
12986
12987 * bsd-kvm.c: Include <sys/param.h>
12988
12989 2014-02-03 Mark Kettenis <kettenis@gnu.org>
12990
12991 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
12992
12993 2014-01-31 Joel Brobecker <brobecker@adacore.com>
12994
12995 * ada-lang.h (clear_ada_sym_cache): Delete.
12996
12997 2014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
12998
12999 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
13000
13001 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
13002
13003 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
13004 the sigreturn register save area only if the syscall is
13005 sigreturn.
13006
13007 2014-01-29 Joel Brobecker <brobecker@adacore.com>
13008
13009 * valops.c (value_slice): Minor reformatting.
13010
13011 2014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
13012
13013 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
13014
13015 2014-01-28 Joel Brobecker <brobecker@adacore.com>
13016
13017 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
13018 New static globals.
13019 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
13020 (ada_ignore_descriptive_types_p): New static global.
13021 (find_parallel_type_by_descriptive_type): Return immediately
13022 if ada_ignore_descriptive_types_p is set.
13023 (_initialize_ada_language): Register new commands "maintenance
13024 set ada", "maintenance show ada", "maintenance set ada
13025 ignore-descriptive-types" and "maintenance show ada
13026 ignore-descriptive-types".
13027 * NEWS: Add entry for new "maint ada set/show
13028 ignore-descriptive-types" commands.
13029
13030 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
13031
13032 * record-btrace.c (record_btrace_close): Call btrace_teardown
13033 for all threads.
13034
13035 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13036
13037 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
13038 "ui-out.h".
13039
13040 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13041
13042 * ada-typeprint (type_is_full_subrange_of_target_type):
13043 New function.
13044 (print_range): Add parameter bounds_prefered_p. If not set,
13045 try printing range types using the name of their base type.
13046 (print_range_type): Add parameter bounds_prefered_p.
13047 Use it in call to print_range.
13048 (print_array_type, ada_print_type): Update calls to print_range
13049 and print_range_type.
13050
13051 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13052
13053 * ada-typeprint.c (print_array_type, print_choices, print_range)
13054 (print_range_bound, print_dynamic_range_bound, print_range_type):
13055 Remove declaration.
13056
13057 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13058
13059 * ada-typeprint.c (print_range): Add missing empty line
13060 after local declaration.
13061
13062 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13063
13064 * ada-valprint.c (print_optional_low_bound): Get index_type's
13065 target type for as long as it is a TYPE_CODE_RANGE.
13066
13067 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13068
13069 * procfs.c (procfs_make_note_section): Remove assertion and
13070 associated comment.
13071
13072 2014-01-24 Yao Qi <yao@codesourcery.com>
13073
13074 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
13075 * corelow.c (get_core_siginfo): Likewise.
13076
13077 2014-01-24 Yao Qi <yao@codesourcery.com>
13078
13079 * remote.c (remote_write_bytes_aux): Change type of 'len' to
13080 ULONGEST. Don't check 'len' is negative.
13081 (remote_write_bytes): Change type of 'len' to ULONGEST.
13082
13083 2014-01-23 Tom Tromey <tromey@redhat.com>
13084
13085 PR python/16485:
13086 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
13087 Handle exception from frame.block.
13088 (FrameVars.fetch_frame_locals): Likewise.
13089
13090 2014-01-23 Tom Tromey <tromey@redhat.com>
13091
13092 PR python/16487:
13093 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
13094 on a NULL pointer. Move "goto error" to correct place.
13095
13096 2014-01-23 Tom Tromey <tromey@redhat.com>
13097
13098 PR python/16491:
13099 * python/py-framefilter.c (apply_frame_filter): Call
13100 ensure_python_env after computing gdbarch.
13101
13102 2014-01-23 Yao Qi <yao@codesourcery.com>
13103
13104 * target.c (raw_memory_xfer_partial): Change argument type
13105 from void * to gdb_byte *.
13106 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
13107
13108 2014-01-22 Doug Evans <dje@google.com>
13109
13110 New gdbserver option --debug-format=timestamp.
13111 * NEWS: Mention it.
13112
13113 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
13114
13115 * syscalls/s390x-linux.xml: New file.
13116 * syscalls/s390-linux.xml: New file.
13117 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
13118 (XML_SYSCALL_FILENAME_S390X): Likewise.
13119 (op_svc): New enum value for SVC opcode.
13120 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
13121 (s390_linux_get_syscall_number): New function.
13122 (s390_gdbarch_init): Register '*get_syscall_number' and the
13123 syscall xml file name.
13124 * data-directory/Makefile.in (SYSCALLS_FILES): Add
13125 "s390-linux.xml" and "s390x-linux.xml".
13126 * NEWS: Announce new feature.
13127
13128 2014-01-22 Baruch Siach <baruch@tkos.co.il>
13129
13130 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
13131
13132 2014-01-22 Pedro Alves <palves@redhat.com>
13133
13134 * xtensa-config.c: Include defs.h.
13135
13136 2014-01-22 Joel Brobecker <brobecker@adacore.com>
13137
13138 * common/common-utils.h: Add "ARI:" comment beside __func__
13139 reference.
13140
13141 2014-01-22 Joel Brobecker <brobecker@adacore.com>
13142
13143 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
13144 documentation a bit.
13145
13146 2014-01-21 Roland McGrath <mcgrathr@google.com>
13147
13148 * configure.ac: Call AM_PROG_INSTALL_STRIP.
13149 * configure: Regenerate.
13150 * aclocal.m4: Regenerate.
13151 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
13152 New substituted variables.
13153 (install-strip): New target.
13154 (INSTALL_SCRIPT): New substituted variable.
13155 (FLAGS_TO_PASS): Add it.
13156 (install-only): Use $(INSTALL_SCRIPT) rather than
13157 $(INSTALL_PROGRAM) for gcore.
13158
13159 2014-01-20 Tom Tromey <tromey@redhat.com>
13160
13161 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
13162 together.
13163
13164 2014-01-20 Tom Tromey <tromey@redhat.com>
13165
13166 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
13167 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
13168 (deprecated_cmd_warning, complete_on_cmdlist): Update.
13169 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
13170 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
13171 (struct cmd_list_element) <flags>: Remove.
13172 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
13173 doc_allocated>: New fields.
13174 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
13175 bitfields.
13176 * maint.c (maintenance_do_deprecate): Update.
13177 * top.c (execute_command): Update.
13178
13179 2014-01-20 Baruch Siach <baruch@tkos.co.il>
13180
13181 * xtensa-linux-nat.c: Include asm/ptrace.h.
13182
13183 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13184
13185 * Makefile.in (SFILES): Add d-support.c.
13186 (COMMON_OBS): Add d-support.o.
13187 * d-lang.h (d_parse_symbol): Add comment, now defined in
13188 d-support.c.
13189 * d-lang.c (parse_call_convention)
13190 (parse_attributes, parse_function_types)
13191 (parse_function_args, parse_type, parse_identifier)
13192 (call_convention_p, d_parse_symbol): Move functions to ...
13193 * d-support.c: ... New file.
13194
13195 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13196
13197 * d-lang.h (d_parse_symbol): Add declaration.
13198 * d-lang.c (extract_identifiers)
13199 (extract_type_info): Remove functions.
13200 (parse_call_convention, parse_attributes)
13201 (parse_function_types, parse_function_args)
13202 (parse_type, parse_identifier, call_convention_p)
13203 (d_parse_symbol): New functions.
13204 (d_demangle): Use d_parse_symbol to demangle D symbols.
13205
13206 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13207
13208 * d-lang.h (struct builtin_d_type): New data type.
13209 (builtin_d_type): Add declaration.
13210 * d-lang.c (d_language_arch_info, build_d_types)
13211 (builtin_d_type): New functions.
13212 (enum d_primitive_types): New data type.
13213 (d_language_defn): Change c_language_arch_info to
13214 d_language_arch_info.
13215 (d_type_data): New static variable.
13216 (_initialize_d_language): Initialize d_type_data.
13217
13218 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13219
13220 * d-lang.h (d_main_name): Add declaration.
13221 * d-lang.c (d_main_name): New function.
13222 * symtab.c (find_main_name): Add call to d_main_name.
13223
13224 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13225
13226 * d-lang.c (d_language_defn): Change macro_expansion_c to
13227 macro_expansion_no.
13228
13229 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13230
13231 * MAINTAINERS: Add myself as a write-after-approval maintainer.
13232
13233 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
13234
13235 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
13236 gdb_exception" declaration.
13237 * remote.c (getpkt_or_notif_sane): Likewise.
13238
13239 2014-01-17 Doug Evans <dje@google.com>
13240
13241 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
13242 function, contents of dirnames_to_char_ptr_vec_append moved here.
13243 (delim_string_to_char_ptr_vec): New function.
13244 (dirnames_to_char_ptr_vec_append): Rewrite.
13245 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
13246
13247 2014-01-17 Doug Evans <dje@google.com>
13248
13249 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
13250 and moved here ...
13251 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
13252 #include "common-utils.h".
13253 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
13254 * common/vec.h (VEC_ASSERT_PASS): Update.
13255 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
13256 (MACH_CHECK_ERROR): Update.
13257
13258 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
13259
13260 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
13261 comments.
13262 * gdbarch.h: Regenerate.
13263
13264 2014-01-16 Tom Tromey <tromey@redhat.com>
13265
13266 * value.c (struct value) <regnum>: Move earlier.
13267
13268 2014-01-16 Tom Tromey <tromey@redhat.com>
13269
13270 * remote.c (extended_remote_create_inferior): Rename from
13271 extended_remote_create_inferior_1. Add "ops" argument. Remove
13272 old implementation.
13273
13274 2014-01-16 Pedro Alves <palves@redhat.com>
13275
13276 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
13277 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
13278 the backchain.
13279
13280 2014-01-16 Doug Evans <dje@google.com>
13281
13282 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
13283
13284 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13285
13286 * btrace.h (btrace_thread_flag): New.
13287 (struct btrace_thread_info) <flags>: New.
13288 * record-btrace.c (record_btrace_resume_thread)
13289 (record_btrace_find_thread_to_move, btrace_step_no_history)
13290 (btrace_step_stopped, record_btrace_start_replaying)
13291 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
13292 (record_btrace_find_resume_thread): New.
13293 (record_btrace_resume, record_btrace_wait): Extend.
13294 (record_btrace_can_execute_reverse): New.
13295 (record_btrace_open): Fail in non-stop mode.
13296 (record_btrace_set_replay): Split into this, ...
13297 (record_btrace_stop_replaying): ... this, ...
13298 (record_btrace_clear_histories): ... and this.
13299 (init_record_btrace_ops): Init to_can_execute_reverse.
13300 * NEWS: Announce it.
13301
13302 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13303
13304 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
13305 (forward_target_decr_pc_after_break)
13306 (target_decr_pc_after_break): New.
13307 * target.c (forward_target_decr_pc_after_break)
13308 (target_decr_pc_after_break): New.
13309 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
13310 instead of gdbarch_decr_pc_after_break.
13311 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
13312 instead of gdbarch_decr_pc_after_break.
13313 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
13314 instead of gdbarch_decr_pc_after_break.
13315 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
13316 instead of gdbarch_decr_pc_after_break.
13317 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
13318 instead of gdbarch_decr_pc_after_break.
13319 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
13320 instead of gdbarch_decr_pc_after_break.
13321
13322 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13323
13324 * btrace.c: Include regcache.h.
13325 (btrace_add_pc): New.
13326 (btrace_enable): Call btrace_add_pc.
13327 (btrace_is_empty): New.
13328 * btrace.h (btrace_is_empty): New.
13329 * record-btrace.c (require_btrace, record_btrace_info): Call
13330 btrace_is_empty.
13331
13332 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13333
13334 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
13335 Support delta reads.
13336 (linux_disable_btrace): Change return type.
13337 * common/linux-btrace.h (linux_read_btrace): Change parameters
13338 and return type to allow error reporting. Update users.
13339 (linux_disable_btrace): Change return type. Update users.
13340 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
13341 New.
13342 (btrace_error): New.
13343 (btrace_block) <begin>: Comment on BEGIN == 0.
13344 * btrace.c (btrace_compute_ftrace): Start from the end of
13345 the current trace.
13346 (btrace_stitch_trace, btrace_clear_history): New.
13347 (btrace_fetch): Read delta trace, return if replaying.
13348 (btrace_clear): Move clear history code to btrace_clear_history.
13349 (parse_xml_btrace): Throw an error if parsing failed.
13350 * target.h (struct target_ops) <to_read_btrace>: Change parameters
13351 and return type to allow error reporting.
13352 (target_read_btrace): Change parameters and return type to allow
13353 error reporting.
13354 * target.c (target_read_btrace): Update.
13355 * remote.c (remote_read_btrace): Support delta reads. Pass
13356 errors on.
13357 * NEWS: Announce it.
13358
13359 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13360
13361 * record.h (record_btrace_frame_unwind)
13362 (record_btrace_tailcall_frame_unwind): New declarations.
13363 * dwarf2-frame: Include record.h
13364 (dwarf2_frame_cfa): Throw an error for btrace frames.
13365 * record-btrace.c: Include hashtab.h.
13366 (btrace_get_bfun_name): New.
13367 (btrace_call_history): Call btrace_get_bfun_name.
13368 (struct btrace_frame_cache): New.
13369 (bfcache): New.
13370 (bfcache_hash, bfcache_eq, bfcache_new): New.
13371 (btrace_get_frame_function): New.
13372 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
13373 (record_btrace_frame_this_id): Compute own id.
13374 (record_btrace_frame_prev_register): Provide PC, throw_error
13375 for all other registers.
13376 (record_btrace_frame_sniffer): Detect btrace frames.
13377 (record_btrace_tailcall_frame_sniffer): New.
13378 (record_btrace_frame_dealloc_cache): New.
13379 (record_btrace_frame_unwind): Add new functions.
13380 (record_btrace_tailcall_frame_unwind): New.
13381 (_initialize_record_btrace): Allocate cache.
13382 * btrace.c (btrace_clear): Call reinit_frame_cache.
13383 * NEWS: Announce it.
13384
13385 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13386
13387 * record-btrace.c (record_btrace_set_replay)
13388 (record_btrace_goto_begin, record_btrace_goto_end)
13389 (record_btrace_goto): New.
13390 (init_record_btrace_ops): Initialize them.
13391 * NEWS: Announce it.
13392
13393 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13394
13395 * record-btrace.c (record_btrace_find_new_threads)
13396 (record_btrace_thread_alive): New.
13397 (init_record_btrace_ops): Initialize to_find_new_threads and
13398 to_thread_alive.
13399
13400 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13401
13402 * record-btrace.c (record_btrace_resume): New.
13403 (record_btrace_wait): New.
13404 (init_record_btrace_ops): Initialize to_wait and to_resume.
13405
13406 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13407
13408 * record-btrace.c (record_btrace_xfer_partial)
13409 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
13410 (record_btrace_allow_memory_access): New.
13411 (init_record_btrace_ops): Initialize new methods.
13412 * target.c (raw_memory_xfer_partial): Bail out if target reports
13413 that this memory is not available.
13414
13415 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13416
13417 * target.h (target_ops) <to_insert_breakpoint>
13418 <to_remove_breakpoint>: Add target_ops parameter.
13419 (forward_target_insert_breakpoint): New.
13420 (forward_target_remove_breakpoint): New.
13421 (memory_remove_breakpoint, memory_insert_breakpoint):
13422 Add target_ops parameter.
13423 * target.c (target_insert_breakpoint): Split into this and ...
13424 (forward_target_insert_breakpoint): ... this.
13425 (target_remove_breakpoint): Split into this and ...
13426 (forward_target_remove_breakpoint): ... this.
13427 (debug_to_insert_breakpoint): Add target_ops parameter.
13428 Call forward_target_insert_breakpoint.
13429 (debug_to_remove_breakpoint): Add target_ops parameter.
13430 Call forward_target_remove_breakpoint.
13431 (update_current_target): Do not inherit or default to_insert_breakpoint
13432 and to_remove_breakpoint.
13433 * corelow.c (ignore): Add target_ops parameter.
13434 * exec.c (ignore): Add target_ops parameter.
13435 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
13436 Add target_ops parameter.
13437 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
13438 Add target_ops parameter.
13439 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
13440 Add target_ops parameter.
13441 * record-full.c (record_full_beneath_to_insert_breakpoint)
13442 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
13443 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
13444 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
13445 (record_full_core_remove_breakpoint): Add target_ops parameter.
13446 Update users.
13447 (record_full_beneath_to_insert_breakpoint_ops)
13448 (record_full_beneath_to_remove_breakpoint_ops)
13449 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
13450 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
13451 tmp_to_remove_breakpoint_ops,
13452 record_full_beneath_to_insert_breakpoint_ops, and
13453 record_full_beneath_to_remove_breakpoint_ops.
13454 * remote-m32r-sdi.c (m32r_insert_breakpoint)
13455 (m32r_remove_breakpoint): Add target_ops parameter.
13456 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
13457 Add target_ops parameter.
13458 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
13459 Add target_ops parameter.
13460
13461 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13462 Markus Metzger <markus.t.metzger@intel.com>
13463
13464 * record-btrace.c: Include frame-unwind.h.
13465 (record_btrace_frame_unwind_stop_reason)
13466 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
13467 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
13468 New.
13469 (init_record_btrace_ops): Install it.
13470
13471 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13472
13473 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
13474 get_prev_frame_1.
13475
13476 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13477
13478 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
13479 earlier.
13480
13481 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13482
13483 * frame-unwind.c: Include target.h.
13484 (frame_unwind_try_unwinder): New function with code from ...
13485 (frame_unwind_find_by_frame): ... here. New variable
13486 unwinder_from_target, call also target_get_unwinder)
13487 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
13488 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
13489 * target.h (struct target_ops): New fields to_get_unwinder and
13490 to_get_tailcall_unwinder.
13491 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
13492
13493 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13494
13495 * record-btrace.c (record_btrace_fetch_registers)
13496 (record_btrace_store_registers)
13497 (record_btrace_to_prepare_to_store): New.
13498 (init_record_btrace_ops): Add the above.
13499
13500 2014-01-16 Tom Tromey <tromey@redhat.com>
13501
13502 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
13503 * target.h (struct target_ops) <to_prepare_to_store>: Add
13504 argument.
13505 (target_prepare_to_store): Add argument.
13506 * target.c (debug_to_prepare_to_store): Add argument.
13507 (update_current_target): Update.
13508 * remote.c (remote_prepare_to_store): Add 'self' argument.
13509 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
13510 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
13511 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
13512 * record-full.c (record_full_core_prepare_to_store): Add 'self'
13513 argument.
13514 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
13515 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
13516 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
13517 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
13518 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
13519
13520 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13521
13522 * btrace.h (replay) <replay>: New.
13523 (btrace_is_replaying): New.
13524 * btrace.c (btrace_clear): Free replay iterator.
13525 (btrace_is_replaying): New.
13526 * record-btrace.c (record_btrace_is_replaying): New.
13527 (record_btrace_info): Print insn number if replaying.
13528 (record_btrace_insn_history): Start at replay position.
13529 (record_btrace_call_history): Start at replay position.
13530 (init_record_btrace_ops): Init to_record_is_replaying.
13531
13532 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13533
13534 * record-btrace.c (record_btrace_insn_history_range): Include
13535 end.
13536 (record_btrace_insn_history_from): Adjust range.
13537 (record_btrace_call_history_range): Include
13538 end.
13539 (record_btrace_call_history_from): Adjust range.
13540 * NEWS: Announce changes.
13541
13542 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13543
13544 * record.h (enum record_print_flag)
13545 <record_print_indent_calls>: New.
13546 * record.c (get_call_history_modifiers): Recognize /c modifier.
13547 (_initialize_record): Document /c modifier.
13548 * record-btrace.c (btrace_call_history): Add btinfo parameter.
13549 Reorder fields. Optionally indent the function name. Update
13550 all users.
13551 * NEWS: Announce changes.
13552
13553 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13554
13555 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
13556
13557 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13558
13559 * btrace.c (ftrace_new_function): Start counting at one.
13560 * record-btrace.c (record_btrace_info): Adjust number of calls
13561 and insns.
13562 * NEWS: Announce it.
13563
13564 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13565
13566 * record-btrace.c (btrace_call_history_insn_range): Print
13567 insn range as [begin, end].
13568
13569 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13570
13571 * btrace.h (struct btrace_func_link): New.
13572 (enum btrace_function_flag): New.
13573 (struct btrace_inst): Rename to ...
13574 (struct btrace_insn): ...this. Update all users.
13575 (struct btrace_func) <ibegin, iend>: Remove.
13576 (struct btrace_func_link): New.
13577 (struct btrace_func): Rename to ...
13578 (struct btrace_function): ...this. Update all users.
13579 (struct btrace_function) <segment, flow, up, insn, insn_offset)
13580 (number, level, flags>: New.
13581 (struct btrace_insn_iterator): Rename to ...
13582 (struct btrace_insn_history): ...this.
13583 Update all users.
13584 (struct btrace_insn_iterator, btrace_call_iterator): New.
13585 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
13586 (struct btrace_target_info) <begin, end, level>
13587 <insn_history, call_history>: New.
13588 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13589 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13590 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13591 (btrace_call_number, btrace_call_begin, btrace_call_end)
13592 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13593 (btrace_find_function_by_number, btrace_set_insn_history)
13594 (btrace_set_call_history): New.
13595 * btrace.c (btrace_init_insn_iterator)
13596 (btrace_init_func_iterator, compute_itrace): Remove.
13597 (ftrace_print_function_name, ftrace_print_filename)
13598 (ftrace_skip_file): Change
13599 parameter to const.
13600 (ftrace_init_func): Remove.
13601 (ftrace_debug): Use new btrace_function fields.
13602 (ftrace_function_switched): Also consider gaining and
13603 losing symbol information).
13604 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
13605 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
13606 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
13607 New.
13608 (ftrace_new_function): Move. Remove debug print.
13609 (ftrace_update_lines, ftrace_update_insns): New.
13610 (ftrace_update_function): Check for call, ret, and jump.
13611 (compute_ftrace): Renamed to ...
13612 (btrace_compute_ftrace): ...this. Rewritten to compute call
13613 stack.
13614 (btrace_fetch, btrace_clear): Updated.
13615 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13616 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13617 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13618 (btrace_call_number, btrace_call_begin, btrace_call_end)
13619 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13620 (btrace_find_function_by_number, btrace_set_insn_history)
13621 (btrace_set_call_history): New.
13622 * record-btrace.c (require_btrace): Use new btrace thread
13623 info fields.
13624 (record_btrace_info, btrace_insn_history)
13625 (record_btrace_insn_history, record_btrace_insn_history_range):
13626 Use new btrace thread info fields and new iterator.
13627 (btrace_func_history_src_line): Rename to ...
13628 (btrace_call_history_src_line): ...this. Use new btrace
13629 thread info fields.
13630 (btrace_func_history): Rename to ...
13631 (btrace_call_history): ...this. Use new btrace thread info
13632 fields and new iterator.
13633 (record_btrace_call_history, record_btrace_call_history_range):
13634 Use new btrace thread info fields and new iterator.
13635
13636 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13637
13638 * frame.h (frame_id_build_unavailable_stack_special): New.
13639 * frame.c (frame_id_build_unavailable_stack_special): New.
13640
13641 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13642
13643 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
13644 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
13645 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
13646 to gdbarch.
13647 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
13648 (i386_insn_is_jump, i386_jmp_p): New.
13649 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
13650 insn_is_jump to gdbarch.
13651 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
13652 * gdbarch.h: Regenerated.
13653 * gdbarch.c: Regenerated.
13654 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
13655 (default_insn_is_jump): New.
13656 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
13657 (default_insn_is_jump): New.
13658
13659 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13660
13661 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
13662 Change to ...
13663 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
13664 (btrace_read_type) <btrace_read_new>: Change to ...
13665 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
13666
13667 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13668
13669 * common/linux-btrace.c (linux_read_btrace): Free trace from
13670 previous iteration.
13671
13672 2014-01-15 Doug Evans <dje@google.com>
13673
13674 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
13675 uint32_t.
13676
13677 2014-01-15 Tom Tromey <tromey@redhat.com>
13678
13679 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
13680 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
13681 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
13682 (set_objfile_main_name): New function.
13683 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
13684 language_of_main>: New fields.
13685 (set_objfile_main_name): Declare.
13686 * symtab.c (find_main_name): Loop over objfiles to find the main
13687 name and language.
13688 (set_main_name): Now static.
13689 (get_main_info): Add comment.
13690 * symtab.h (set_main_name): Don't declare.
13691
13692 2014-01-15 Tom Tromey <tromey@redhat.com>
13693
13694 * symtab.c (main_progspace_key): New global.
13695 (struct main_info): New.
13696 (name_of_main, language_of_main): Remove.
13697 (get_main_info, main_info_cleanup): New function.
13698 (set_main_name, main_name, main_language): Use get_main_info.
13699 (_initialize_symtab): Initialize main_progspace_key.
13700
13701 2014-01-15 Tom Tromey <tromey@redhat.com>
13702
13703 * dbxread.c (process_one_symbol): Update.
13704 * dwarf2read.c (read_partial_die): Update.
13705 * symfile.c (set_initial_language): Call main_language.
13706 * symtab.c (language_of_main): Now static.
13707 (set_main_name): Add 'lang' parameter.
13708 (find_main_name): Update.
13709 (main_language): New function.
13710 (symtab_observer_executable_changed): Update.
13711 * symtab.h (set_main_name): Update.
13712 (language_of_main): Remove.
13713 (main_language): Declare.
13714
13715 2014-01-15 Tom Tromey <tromey@redhat.com>
13716
13717 * symfile.c (init_entry_point_info): Use new "initialized" field.
13718 Update.
13719 * objfiles.h (struct entry_point) <initialized>: New field.
13720 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
13721 (struct objfile) <ei>: ...here. Remove.
13722 * objfiles.c (entry_point_address_query): Update.
13723
13724 2014-01-15 Tom Tromey <tromey@redhat.com>
13725
13726 * objfiles.c (entry_point_address_query): Relocate entry point
13727 address.
13728 (objfile_relocate1): Do not relocate entry point address.
13729 * objfiles.h (struct entry_info) <entry_point>: Update comment.
13730 <the_bfd_section_index>: New field.
13731 * symfile.c (init_entry_point_info): Find the entry point's
13732 section.
13733
13734 2014-01-15 Tom Tromey <tromey@redhat.com>
13735
13736 * solib-frv.c (enable_break): Use entry_point_address_query.
13737
13738 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13739
13740 * NEWS: Add note on improved process record-replay on
13741 arm*-linux* targets.
13742
13743 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13744
13745 * arm-tdep.c (enum arm_record_result): New enum.
13746 (arm_record_unsupported_insn): New function.
13747 (arm_record_coproc_data_proc): Removed.
13748 (thumb2_record_ld_st_multiple): New function.
13749 (thumb2_record_ld_st_dual_ex_tbb): New function.
13750 (thumb2_record_data_proc_sreg_mimm): New function.
13751 (thumb2_record_ps_dest_generic): New function.
13752 (thumb2_record_branch_misc_cntrl): New function.
13753 (thumb2_record_str_single_data): New function.
13754 (thumb2_record_ld_mem_hints): New function.
13755 (thumb2_record_ld_word): New function.
13756 (thumb2_record_lmul_lmla_div): New function.
13757 (thumb2_record_decode_insn_handler): New function.
13758 (decode_insn): Add thumb32 instruction handlers.
13759
13760 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13761
13762 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
13763 (struct arm_linux_record_tdep): Declare.
13764 (arm_canonicalize_syscall): New function.
13765 (arm_all_but_pc_registers_record): New function.
13766 (arm_linux_syscall_record): New function.
13767 (arm_linux_init_abi): Add syscall recording constructs.
13768 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
13769 decoding. (arm_record_coproc_data_proc): Update arm syscall
13770 decoding.
13771 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
13772 <arm_syscall_record>: New field.
13773 * configure.tgt (arm*-*-linux*): Add linux-record.o to
13774 gdb_target_obs.
13775
13776 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13777
13778 * arm-tdep.c (thumb_record_misc): Update to use sp as base
13779 register for push instruction recording.
13780
13781 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13782
13783 * arm-tdep.c (thumb_record_misc): Update to correct logical
13784 error while recording ldm, ldmia and pop instructions.
13785
13786 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13787
13788 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
13789
13790 2014-01-15 Pedro Alves <palves@redhat.com>
13791
13792 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
13793 (go32_resume, go32_fetch_registers, store_register)
13794 (go32_store_registers, go32_prepare_to_store)
13795 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
13796 (go32_create_inferior, go32_can_run, go32_terminal_init)
13797 (go32_terminal_inferior, go32_terminal_ours): Delete forward
13798 declarations.
13799
13800 2014-01-15 Tom Tromey <tromey@redhat.com>
13801
13802 * target.h (async_callback_ftype): New typedef.
13803 (struct target_ops) <to_async>: Use it.
13804
13805 2014-01-15 Joel Brobecker <brobecker@adacore.com>
13806
13807 * python/py-value.c (get_field_type): Remove unnecessary curly
13808 braces for single-statement if block.
13809
13810 2014-01-15 Joel Brobecker <brobecker@adacore.com>
13811
13812 * python/py-type.c (convert_field): Add missing empty line
13813 after declarations.
13814
13815 2014-01-14 Doug Evans <dje@google.com>
13816
13817 * symfile.h (expand_symtabs_matching): Renamed from
13818 expand_partial_symbol_names. Update prototype.
13819 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
13820 * symfile.c (expand_symtabs_matching): Renamed from
13821 expand_partial_symbol_names. New args file_matcher, kind.
13822 Rename arg fun to symbol_matcher.
13823 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
13824 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
13825 ada_expand_partial_symbol_name.
13826 (ada_make_symbol_completion_list): Update to call
13827 expand_symtabs_matching.
13828 (ada_add_global_exceptions): Call expand_symtabs_matching.
13829 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
13830 call map_symbol_filenames.
13831 * symtab.c (sources_info): Update to call map_symbol_filenames.
13832 (search_symbols): Call expand_symtabs_matching.
13833 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
13834 (default_make_symbol_completion_list_break_on): Update to call
13835 expand_symtabs_matching.
13836 (make_source_files_completion_list): Update to call
13837 map_symbol_filenames.
13838
13839 2014-01-14 Doug Evans <dje@google.com>
13840
13841 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
13842 (expand_symtabs_symbol_matcher_ftype): New typedef.
13843 (quick_symbol_functions.expand_symtabs_matching): Update to use.
13844 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13845 * symfile.c (expand_partial_symbol_names): Update to use
13846 expand_symtabs_symbol_matcher_ftype.
13847 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
13848 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13849 Arg name_matcher renamed to symbol_matcher.
13850 * psymtab.c (recursively_search_psymtabs): Update to use
13851 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
13852 sym_matcher.
13853 (expand_symtabs_matching_via_partial): Update to use
13854 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13855 Arg name_matcher renamed to symbol_matcher.
13856
13857 2014-01-14 Doug Evans <dje@google.com>
13858
13859 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
13860 (map_partial_symbol_filenames): Ditto.
13861 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
13862 (map_partial_symbol_filenames): Ditto.
13863 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
13864 (map_partial_symbol_filenames): Ditto.
13865 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
13866 (map_partial_symbol_filenames): Ditto.
13867 * symtab.c: Delete #include "psymtab.h".
13868
13869 2014-01-14 Pedro Alves <palves@redhat.com>
13870 Tom Tromey <tromey@redhat.com>
13871
13872 * infrun.c (use_displaced_stepping): Use find_record_target
13873 instead of RECORD_IS_USED.
13874 (adjust_pc_after_break): Use record_full_is_used instead of
13875 RECORD_IS_USED.
13876 * record-btrace.c (record_btrace_open): Call record_preopen
13877 instead of checking RECORD_IS_USED.
13878 * record-full.c (record_full_shortname)
13879 (record_full_core_shortname): New globals.
13880 (record_full_is_used): New function.
13881 (find_full_open): Call record_preopen instead of checking
13882 RECORD_IS_USED.
13883 (init_record_full_ops): Set the target's shortname to
13884 record_full_shortname.
13885 (init_record_full_core_ops): Set the target's shortname to
13886 record_full_core_shortname.
13887 * record-full.h (record_full_is_used): Declare.
13888 * record.c (find_record_target): Make extern.
13889 (record_preopen): New function.
13890 * record.h (RECORD_IS_USED): Delete macro.
13891 (find_record_target, record_preopen): Declare functions.
13892
13893 2014-01-14 Yao Qi <yao@codesourcery.com>
13894
13895 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
13896 'len''s type to ULONGEST.
13897 (core_xfer_shared_libraries_aix): Likewise.
13898 * gdbarch.c, gdbarch.h: Regenerated.
13899 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
13900 Change type of 'len' to ULONGEST.
13901 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13902 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
13903
13904 2014-01-14 Yao Qi <yao@codesourcery.com>
13905
13906 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
13907 type of 'len' to ULONGEST.
13908 (linux_xfer_osdata_processgroups): Likewise.
13909 (linux_xfer_osdata_threads): Likewise.
13910 (linux_xfer_osdata_fds): Likewise.
13911 (linux_xfer_osdata_isockets): Likewise.
13912 (linux_xfer_osdata_shm): Likewise.
13913 (linux_xfer_osdata_sem): Likewise.
13914 (linux_xfer_osdata_msg): Likewise.
13915 (linux_common_xfer_osdata): Likewise.
13916 (struct osdata_type) <getter>: Likewise.
13917 * common/linux-osdata.h (linux_common_xfer_osdata): Update
13918 the declaration.
13919
13920 2014-01-14 Yao Qi <yao@codesourcery.com>
13921
13922 * target.h (target_xfer_partial_ftype): Update.
13923 (struct target_ops) <to_xfer_partial>: Change 'len' type to
13924 ULONGEST.
13925 * aix-thread.c (aix_thread_xfer_partial): Change type of
13926 argument 'len' to ULONGEST.
13927 * auxv.c (procfs_xfer_auxv): Likewise.
13928 (ld_so_xfer_auxv): Likewise.
13929 (memory_xfer_auxv): Likewise.
13930 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13931 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13932 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
13933 * corelow.c (core_xfer_partial): Likewise.
13934 * ctf.c (ctf_xfer_partial): Likewise.
13935 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
13936 '%u'.
13937 (darwin_read_dyld_info): Likewise.
13938 (darwin_xfer_partial): Likewise.
13939 * exec.c (section_table_xfer_memory_partial): Likewise.
13940 (exec_xfer_partial): Likewise.
13941 * exec.h (section_table_xfer_memory_partial): Update
13942 declaration.
13943 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
13944 instead of plongest.
13945 (gnu_xfer_partial): Likewise.
13946 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
13947 (ia64_hpux_xfer_solib_got): Likewise.
13948 (ia64_hpux_xfer_partial): Likewise.
13949 * ia64-linux-nat.c (ia64_linux_xfer_partial):
13950 * inf-ptrace.c (inf_ptrace_xfer_partial):
13951 * inf-ttrace.c (inf_ttrace_xfer_partial):
13952 * linux-nat.c (linux_xfer_siginfo): Likewise.
13953 (linux_nat_xfer_partial): Likewise.
13954 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
13955 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
13956 * monitor.c (monitor_xfer_memory): Likewise.
13957 (monitor_xfer_partial): Likewise.
13958 * procfs.c (procfs_xfer_partial): Likewise.
13959 * record-full.c (record_full_xfer_partial): Likewise.
13960 (record_full_core_xfer_partial): Likewise.
13961 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
13962 instead of plongest.
13963 (gdbsim_xfer_partial): Likewise.
13964 * remote.c (remote_xfer_partial): Likewise.
13965 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13966 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
13967 declaration.
13968 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13969 (rs6000_xfer_shared_libraries): Likewise.
13970 * sol-thread.c (sol_thread_xfer_partial): Likewise.
13971 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13972 (sparc_xfer_partial): Likewise.
13973 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13974 (spu_xfer_partial): Likewise.
13975 * spu-multiarch.c (spu_xfer_partial): Likewise.
13976 * target.c (target_read_live_memory): Likewise.
13977 (memory_xfer_live_readonly_partial): Likewise.
13978 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
13979 (target_xfer_partial, default_xfer_partial): Likewise.
13980 (current_xfer_partial): Likewise.
13981 * tracepoint.c (tfile_xfer_partial): Likewise.
13982 * windows-nat.c (windows_xfer_memory): Likewise. Call
13983 pulongest instead of plongest.
13984 (windows_xfer_partial): Likewise.
13985 (windows_xfer_shared_libraries): Likewise.
13986
13987 2014-01-14 Yao Qi <yao@codesourcery.com>
13988
13989 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
13990 target_xfer_partial_ftype.
13991
13992 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
13993
13994 PR python/15464
13995 PR python/16113
13996 * valops.c (value_struct_elt_bitpos): New function
13997 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
13998 object to 'None' if the field name is an empty string ("").
13999 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
14000 attribute to look for a field when 'name' is 'None'.
14001 (get_field_type): New function
14002
14003 2014-01-13 Doug Evans <dje@google.com>
14004
14005 PR symtab/16426
14006 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
14007 (try_open_dwop_file): Ditto.
14008 * gdb_bfd.c: #include "vec.h".
14009 (bfdp): New typedef.
14010 (struct gdb_bfd_data): New member included_bfds.
14011 (gdb_bfd_unref): Unref all included bfds.
14012 (gdb_bfd_record_inclusion): New function.
14013 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
14014
14015 2014-01-13 Tom Tromey <tromey@redhat.com>
14016
14017 * gdbcore.h (deprecated_core_resize_section_table): Remove.
14018
14019 2014-01-13 Tom Tromey <tromey@redhat.com>
14020
14021 * defs.h (use_windows): Remove.
14022 * gdb.c (main): Update.
14023 * main.c (captured_main, gdb_main): Update.
14024 * main.h (struct captured_main_args) <use_windows>: Remove.
14025 * top.c (use_windows): Remove.
14026
14027 2014-01-13 Tom Tromey <tromey@redhat.com>
14028
14029 * defs.h (deprecated_flush_hook): Remove.
14030
14031 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
14032
14033 PR threads/16216
14034 * linux-thread-db.c (try_thread_db_load): Add parameter
14035 check_auto_load_safe. Move here the file_is_auto_load_safe call.
14036 (try_thread_db_load_from_pdir_1): Move it there from here.
14037 (try_thread_db_load_from_sdir): Update caller.
14038 (try_thread_db_load_from_dir): Move it there from here.
14039
14040 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
14041
14042 * regformats/regdat.sh: Always rewrite the register file.
14043
14044 2014-01-13 Pedro Alves <palves@redhat.com>
14045
14046 * Makefile.in (CHECK_HEADERS): New variable.
14047 (check-headers:): New rule.
14048
14049 2014-01-13 Tom Tromey <tromey@redhat.com>
14050
14051 * cli/cli-setshow.c (do_set_command): Update.
14052 * defs.h (deprecated_set_hook): Remove.
14053 * top.c (deprecated_set_hook): Remove.
14054
14055 2014-01-13 Pedro Alves <palves@redhat.com>
14056
14057 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
14058 the tracepoint if the PC is a pseudo-register.
14059
14060 2014-01-13 Tom Tromey <tromey@redhat.com>
14061
14062 * defs.h (XCALLOC): Remove.
14063 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
14064 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
14065 * dwarf2loc.c (allocate_piece_closure): Likewise.
14066 * elfread.c (elf_symfile_segments): Likewise.
14067 (elf_symfile_segments): Likewise.
14068 * gdbtypes.c (copy_type_recursive): Likewise.
14069 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
14070 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
14071 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
14072 XCALLOC.
14073 * mt-tdep.c (mt_gdbarch_init): Likewise.
14074 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
14075 XCALLOC.
14076 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
14077 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
14078 * registry.c (registry_alloc_data): Likewise.
14079 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
14080 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
14081 * serial.c (serial_fdopen_ops): Likewise.
14082 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
14083 XCALLOC.
14084 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
14085 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
14086 not XCALLOC.
14087
14088 2014-01-13 Tom Tromey <tromey@redhat.com>
14089
14090 * defs.h (XMALLOC): Remove.
14091 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
14092 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
14093 * cli-out.c (struct ui_out *): Likewise.
14094 * cli/cli-dump.c (add_dump_command): Likewise.
14095 (add_dump_command): Likewise.
14096 * complaints.c (get_complaints): Likewise.
14097 (find_complaint): Likewise.
14098 * dwarf2-frame.c (execute_cfa_program): Likewise.
14099 * dwarf2read.c (abbrev_table_read_table): Likewise.
14100 * gdbarch.sh: Likewise.
14101 * gdbarch.c: Rebuild.
14102 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
14103 * interps.c (interp_new): Likewise.
14104 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
14105 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
14106 * mi/mi-console.c (mi_console_file_new): Likewise.
14107 * mi/mi-interp.c (mi_interpreter_init): Likewise.
14108 * mi/mi-out.c (mi_out_new): Likewise.
14109 * mi/mi-parse.c (mi_parse): Likewise.
14110 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
14111 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
14112 * observer.c (xalloc_observer_list_node): Likewise.
14113 * regcache.c (regcache_xmalloc_1): Likewise.
14114 * reggroups.c (reggroup_new): Likewise.
14115 (_initialize_reggroup): Likewise.
14116 * registry.c (register_data_with_cleanup): Likewise.
14117 * remote.c (remote_notif_stop_alloc_reply): Likewise.
14118 * ser-base.c (serial_ttystate): Likewise.
14119 * ser-mingw.c (make_pipe_state): Likewise.
14120 * ser-pipe.c (pipe_open): Likewise.
14121 * serial.c (serial_open): Likewise.
14122 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
14123 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
14124 (tui_alloc_win_info): Likewise.
14125 (tui_add_content_elements): Likewise.
14126 * tui/tui-file.c (tui_file_new): Likewise.
14127 * tui/tui-out.c (tui_out_new): Likewise.
14128 * ui-file.c (mem_file_new): Likewise.
14129 * ui-out.c (push_level): Likewise.
14130 (make_cleanup_ui_out_end): Likewise.
14131 (append_header_to_list): Likewise.
14132 (ui_out_new): Likewise.
14133 * user-regs.c (user_reg_add_builtin): Likewise.
14134
14135 2014-01-13 Tom Tromey <tromey@redhat.com>
14136
14137 * defs.h (XZALLOC): Remove.
14138 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
14139 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
14140 (get_ada_tasks_inferior_data): Likewise.
14141 * auto-load.c (get_auto_load_pspace_data): Likewise.
14142 * auxv.c (get_auxv_inferior_data): Likewise.
14143 * bfd-target.c (target_bfd_reopen): Likewise.
14144 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
14145 (deprecated_insert_raw_breakpoint): Likewise.
14146 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
14147 * corelow.c (core_open): Likewise.
14148 * darwin-nat.c (darwin_check_new_threads): Likewise.
14149 (darwin_attach_pid): Likewise.
14150 * dummy-frame.c (dummy_frame_push): Likewise.
14151 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
14152 * dwarf2loc.c (allocate_piece_closure): Likewise.
14153 * elfread.c (elf_symfile_segments): Likewise.
14154 * eval.c (ptrmath_type_p): Likewise.
14155 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
14156 * gdbtypes.c (alloc_type_arch): Likewise.
14157 (alloc_type_instance): Likewise.
14158 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
14159 * inf-child.c (inf_child_can_use_agent): Likewise.
14160 * inflow.c (get_inflow_inferior_data): Likewise.
14161 * infrun.c (save_infcall_suspend_state): Likewise.
14162 * jit.c (jit_reader_load): Likewise.
14163 (get_jit_objfile_data): Likewise.
14164 (get_jit_program_space_data): Likewise.
14165 (jit_object_open_impl): Likewise.
14166 (jit_symtab_open_impl): Likewise.
14167 (jit_block_open_impl): Likewise.
14168 (jit_frame_sniffer): Likewise.
14169 * linux-fork.c (add_fork): Likewise.
14170 * maint.c (make_command_stats_cleanup): Likewise.
14171 * objfiles.c (get_objfile_pspace_data): Likewise.
14172 * opencl-lang.c (struct lval_closure): Likewise.
14173 * osdata.c (osdata_start_osdata): Likewise.
14174 * progspace.c (new_address_space): Likewise.
14175 (add_program_space): Likewise.
14176 * remote-sim.c (get_sim_inferior_data): Likewise.
14177 * sh-tdep.c (sh_gdbarch_init): Likewise.
14178 * skip.c (Ignore): Likewise.
14179 (skip_delete_command): Likewise.
14180 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
14181 (library_list_start_library): Likewise.
14182 (solib_aix_current_sos): Likewise.
14183 * solib-darwin.c (get_darwin_info): Likewise.
14184 (darwin_current_sos): Likewise.
14185 * solib-dsbt.c (get_dsbt_info): Likewise.
14186 * solib-ia64-hpux.c (new_so_list): Likewise.
14187 (ia64_hpux_get_solib_linkage_addr): Likewise.
14188 * solib-spu.c (append_ocl_sos): Likewise.
14189 (spu_current_sos): Likewise.
14190 * solib-svr4.c (get_svr4_info): Likewise.
14191 (svr4_keep_data_in_core): Likewise.
14192 (library_list_start_library): Likewise.
14193 (svr4_default_sos): Likewise.
14194 (svr4_read_so_list): Likewise.
14195 * solib-target.c (library_list_start_library): Likewise.
14196 (solib_target_current_sos): Likewise.
14197 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
14198 * symfile-debug.c (install_symfile_debug_logging): Likewise.
14199 * symfile.c (default_symfile_segments): Likewise.
14200 * target-descriptions.c (tdesc_data_init): Likewise.
14201 (tdesc_create_reg): Likewise.
14202 (struct tdesc_type *): Likewise.
14203 (tdesc_create_vector): Likewise.
14204 (tdesc_set_struct_size): Likewise.
14205 (struct tdesc_type *): Likewise.
14206 (tdesc_free_feature): Likewise.
14207 (tdesc_create_feature): Likewise.
14208 * windows-nat.c (windows_add_thread): Likewise.
14209 (windows_make_so): Likewise.
14210 * xml-support.c (gdb_xml_body_text): Likewise.
14211 (gdb_xml_create_parser_and_cleanup): Likewise.
14212 (xml_process_xincludes): Likewise.
14213 * xml-syscall.c (allocate_syscalls_info): Likewise.
14214 (syscall_create_syscall_desc): Likewise.
14215
14216 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
14217
14218 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
14219 function, with code from i386_stap_parse_special_token.
14220 (i386_stap_parse_special_token_three_arg_disp): Likewise.
14221 (i386_stap_parse_special_token): Move code to the two functions
14222 above; simplify it.
14223
14224 2014-01-09 Pedro Alves <palves@redhat.com>
14225 Hui Zhu <hui@codesourcery.com>
14226
14227 PR gdb/16101
14228 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
14229 bp_err_string. Don't mark the location shlib_disabled if the
14230 error thrown wasn't a generic or memory error. Catch errors
14231 thrown while inserting breakpoints in overlayed code. Output
14232 error message of software breakpoints.
14233 * remote.c (remote_insert_breakpoint): If this breakpoint has
14234 target-side commands but this stub doesn't support Z0 packets,
14235 throw NOT_SUPPORTED_ERROR error.
14236 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
14237 * target.h (target_insert_breakpoint): Extend comment.
14238 (target_insert_hw_breakpoint): Add comment.
14239
14240 2014-01-08 Pedro Alves <palves@redhat.com>
14241
14242 * remote.c (remote_add_thread): Add threads silently if starting
14243 up.
14244 (remote_notice_new_inferior): If in all-stop, and starting up,
14245 don't call notice_new_inferior.
14246 (get_current_thread): New function, factored out from ...
14247 (add_current_inferior_and_thread): ... this. Adjust.
14248 (remote_start_remote) <all-stop>: Fetch the thread list. If we
14249 found any thread, then select the remote's current thread as GDB's
14250 current thread too.
14251
14252 2014-01-08 Joel Brobecker <brobecker@adacore.com>
14253
14254 * NEWS: Create a new section for the next release branch.
14255 Rename the section of the current branch, now that it has
14256 been cut.
14257
14258 2014-01-08 Joel Brobecker <brobecker@adacore.com>
14259
14260 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
14261 * version.in: Bump version to 7.7.50.DATE-cvs.
14262
14263 2014-01-08 Yao Qi <yao@codesourcery.com>
14264
14265 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
14266 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
14267 (spu_xfer_partial): Cast 'buf' to 'const char *'.
14268
14269 2014-01-08 Yao Qi <yao@codesourcery.com>
14270
14271 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
14272 return value of bfd_get_filename to symbol_file_add_from_bfd.
14273
14274 2014-01-08 Pierre Muller <muller@sourceware.org>
14275
14276 Fix PR16201.
14277 * coff-pe-read.c (struct read_pe_section_data): Add index field.
14278 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
14279 to prim_record_mininal_symbol_and_info.
14280 (add_pe_forwarded_sym): Use known section number of forwarded symbol
14281 in call to prim_record_minimal_symbol_and_info.
14282 (read_pe_exported_syms): Set index field of section_data.
14283
14284 2014-01-07 Andrew Pinski <apinski@cavium.com>
14285
14286 * features/aarch64-core.xml (cpsr): Change to be 64bit.
14287 * features/aarch64.c: Regenerate.
14288
14289 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
14290
14291 * target.c (return_null): Define.
14292 (update_current_target): Use it instead of return_zero for
14293 functions that return a pointer.
14294
14295 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
14296
14297 * source.c (add_path): Fix check for duplicated paths in the previously
14298 included paths.
14299
14300 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
14301
14302 * ada-lang.c: Remove duplicated include statements.
14303 * alphabsd-nat.c: Ditto.
14304 * amd64-darwin-tdep.c: Ditto.
14305 * amd64fbsd-nat.c: Ditto.
14306 * auto-load.c: Ditto.
14307 * ax-gdb.c: Ditto.
14308 * breakpoint.c: Ditto.
14309 * dbxread.c: Ditto.
14310 * fork-child.c: Ditto.
14311 * gdb_usleep.c: Ditto.
14312 * i386-darwin-tdep.c: Ditto.
14313 * i386fbsd-nat.c: Ditto.
14314 * infcmd.c: Ditto.
14315 * inferior.c: Ditto.
14316 * jv-lang.c: Ditto.
14317 * linux-nat.c: Ditto.
14318 * linux-tdep.c: Ditto.
14319 * m68kbsd-nat.c: Ditto.
14320 * m68klinux-nat.c: Ditto.
14321 * microblaze-tdep.c: Ditto.
14322 * mips-linux-tdep.c: Ditto.
14323 * mn10300-tdep.c: Ditto.
14324 * nto-tdep.c: Ditto.
14325 * opencl-lang.c: Ditto.
14326 * osdata.c: Ditto.
14327 * printcmd.c: Ditto.
14328 * regcache.c: Ditto.
14329 * remote-m32r-sdi.c: Ditto.
14330 * remote.c: Ditto.
14331 * symfile.c: Ditto.
14332 * symtab.c: Ditto.
14333 * tilegx-linux-nat.c: Ditto.
14334 * tilegx-tdep.c: Ditto.
14335 * tracepoint.c: Ditto.
14336 * valops.c: Ditto.
14337 * vaxbsd-nat.c: Ditto.
14338 * windows-nat.c: Ditto.
14339 * xtensa-tdep.c: Ditto.
14340
14341 2014-01-07 Yao Qi <yao@codesourcery.com>
14342
14343 * spu-linux-nat.c (_initialize_spu_nat): Declare.
14344
14345 2014-01-07 Yao Qi <yao@codesourcery.com>
14346 Joel Brobecker <brobecker@adacore.com>
14347
14348 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
14349 (pdc_write_regs): Likewise.
14350 (fetch_regs_kernel_thread): Likewise.
14351 (store_regs_kernel_thread): Likewise.
14352
14353 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14354
14355 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
14356 tagged type objects to their actual type.
14357
14358 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14359
14360 * ada-valprint.c (print_field_values): Add "language" parameter.
14361 Update calls to print_field_values and print_variant_part.
14362 Pass new parameter "language" in call to val_print instead
14363 of "current_language". Replace call to ada_val_print by call
14364 to val_print.
14365 (print_variant_part): Add "language" parameter.
14366 (ada_val_print_struct_union): Update call to print_field_values.
14367
14368 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14369
14370 * ada-valprint.c (ui_memcpy): Delete.
14371 (ada_print_floating): Update documentation. Add empty line
14372 between between function documentation and implementation.
14373 Delete variable "buffer". Use ui_file_xstrdup in place of
14374 ui_file_put. Minor adjustments following this change.
14375
14376 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14377
14378 * ada-valprint.c (ada_val_print_string): New function,
14379 extracted from ada_val_print_array.
14380 (ada_val_print_array): Replace extracted code by call
14381 to ada_val_print_string followed by a return. Move
14382 "else" branch to the function's top block.
14383
14384 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14385
14386 * ada-valprint.c (ada_val_print_array): Move implementation
14387 down. Rename parameter "offset" and "val" into "offset_aligned"
14388 and "original_value" respectively. Add parameter "offset".
14389
14390 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14391
14392 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
14393 re-organizing the code. Change the "???" message printed
14394 when target type is a TYPE_CODE_UNDEF into
14395 "<ref to undefined type>".
14396
14397 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14398
14399 * ada-valprint.c (print_record): Delete, implementation inlined...
14400 (ada_val_print_struct_union): ... here. Remove call to
14401 ada_check_typedef in inlined implementation.
14402
14403 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14404
14405 * ada-valprint.c (ada_val_print_gnat_array): New function,
14406 extracted from ada_val_print_1;
14407 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
14408 (ada_val_print_flt, ada_val_print_struct_union)
14409 (ada_val_print_ref): Likewise.
14410 (ada_val_print_1): Delete variables i and elttype.
14411 Replace extracted-out code by call to corresponding
14412 new functions.
14413
14414 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14415
14416 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
14417
14418 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14419
14420 * ada-valprint.c (ada_val_print_1): Replace calls to
14421 ada_val_print_1 by calls to val_print.
14422
14423 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14424
14425 * ada-valprint.c (ada_val_print_1): Add parameter "language".
14426 Update calls to self accordingly. Replace calls to c_val_print
14427 by calls to val_print.
14428
14429 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14430
14431 * ada-valprint.c (print_record): Delete declaration.
14432 (adjust_type_signedness, ada_val_print_1): Likewise.
14433 (ada_val_print): Move function implementation down.
14434 (print_variant_part, print_field_values, print_record):
14435 Move function implementation up.
14436
14437 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14438
14439 * python/py-type.c (typy_get_name): New function.
14440 (type_object_getset): Add entry for attribute "name".
14441 * NEWS: Add entry mentioning this new attribute.
14442
14443 2014-01-07 Yao Qi <yao@codesourcery.com>
14444
14445 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
14446 statement.
14447
14448 2014-01-07 Yao Qi <yao@codesourcery.com>
14449
14450 * gnu-nat.c (info_port_rights): Add qualifier const to
14451 argument args.
14452
14453 2014-01-07 Yao Qi <yao@codesourcery.com>
14454
14455 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
14456
14457 2014-01-07 Yao Qi <yao@codesourcery.com>
14458
14459 * gnu-nat.c (make_inf) Update declaration.
14460 (make_inf): Make it static.
14461 (inf_set_traced): Likewise.
14462 (inf_port_to_thread, inf_task_died_status): Likewise.
14463
14464 2014-01-07 Yao Qi <yao@codesourcery.com>
14465
14466 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
14467
14468 2014-01-07 Yao Qi <yao@codesourcery.com>
14469
14470 * gnu-nat.c (_initialize_gnu_nat): Declare.
14471
14472 2014-01-07 Yao Qi <yao@codesourcery.com>
14473
14474 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
14475 'enum bfd_endian'.
14476 (struct gdbarch_info) <byte_order>: Change type to
14477 'enum bfd_endian'.
14478 <byte_order_for_code>: Likewise.
14479 * gdbarch.c, gdbarch.h: Regenerated.
14480
14481 2014-01-06 Sasha Smundak <asmundak@google.com>
14482
14483 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
14484
14485 2014-01-06 Tom Tromey <tromey@redhat.com>
14486
14487 * doublest.c (convert_doublest_to_floatformat): Use const, not
14488 CONST.
14489 * somread.c (som_symtab_read): Likewise.
14490
14491 2014-01-07 Hui Zhu <hui@codesourcery.com>
14492
14493 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
14494 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
14495 (gdb_bfd_fopen): Ditto.
14496 (gdb_bfd_openr): Ditto.
14497 (gdb_bfd_openw): Ditto.
14498 (gdb_bfd_openr_iovec): Ditto.
14499 (gdb_bfd_fdopenr): Ditto.
14500 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
14501 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
14502 with xstrdup.
14503 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
14504 with xstrdup.
14505 * symfile-mem.c (symbol_file_add_from_memory): Removed
14506 gdb_bfd_stash_filename.
14507
14508 2014-01-03 Doug Evans <dje@google.com>
14509
14510 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
14511 output.
14512
14513 2014-01-01 Joel Brobecker <brobecker@adacore.com>
14514
14515 Update year range in copyright notice of all files.
14516
14517 2014-01-01 Joel Brobecker <brobecker@adacore.com>
14518
14519 * top.c (print_gdb_version): Set copyright year to 2014.
14520
14521 2014-01-01 Joel Brobecker <brobecker@adacore.com>
14522
14523 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
14524
14525 For older changes see ChangeLog-2013.
14526 \f
14527 Local Variables:
14528 mode: change-log
14529 left-margin: 8
14530 fill-column: 74
14531 version-control: never
14532 coding: utf-8
14533 End: