Remove second (nested) copy of local var child_die.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
ca040673
DE
12014-10-25 Doug Evans <xdje42@gmail.com>
2
3 * dwarf2read.c (process_structure_scope): Remove second (nested) copy
4 of local var child_die.
5
6f259a23
DB
62014-10-24 Don Breazeal <donb@codesourcery.com>
7
8 * infrun.c (follow_fork_inferior): Update fork message printing
9 to use target_terminal_ours_for_output instead of
10 target_terminal_ours, to use _() for all format strings, to print
11 "vfork" instead of "fork" for vforks, and to add a detach message.
12 (handle_vfork_child_exec_or_exit): Update message printing to use
13 target_terminal_ours_for_output instead of target_terminal_ours, to
14 use _() for all format strings, and to fix some formatting.
15
09dd9a69
PA
162014-10-24 Pedro Alves <palves@redhat.com>
17
18 * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
19 * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
20 * config/vax/vax.mh: Delete.
21 * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
22 obsolete configurations section.
23 * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
24 * vax-nat.c: Delete file.
25
5ab806de
PA
262014-10-24 Pedro Alves <palves@redhat.com>
27
28 * NEWS (Removed targets): Add OS/arch column.
29
3433cfa5
SC
302014-10-24 Siva Chandra Reddy <sivachandra@google.com>
31
32 * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
33 on the arg type of a constructor only if it is of reference type.
34
96ba4233
SL
352014-10-23 Sandra Loosemore <sandra@codesourcery.com>
36
37 * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
38 accessors and constants from nios2 opcodes update.
39 (nios2_get_next_pc): Likewise.
40
28153fd3
DE
412014-10-19 Doug Evans <xdje42@gmail.com>
42
43 * gdbthread.h (set_running): Fix comment.
44 (set_executing, finish_thread_state): Fix comment.
45
fc9b8e47
DE
462014-10-18 Doug Evans <xdje42@gmail.com>
47
48 * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
49
4ffbba72
DE
502014-10-17 Doug Evans <dje@google.com>
51
52 * NEWS: Mention new event gdb.clear_objfiles.
53 * python/py-event.h (emit_clear_objfiles_event): Clear
54 * python/py-events.h (events_object): New member clear_objfiles.
55 * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
56 event.
57 * python/py-inferior.c (python_new_objfile): If objfile is NULL,
58 emit clear_objfiles event.
59 * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
60 function.
61 (emit_clear_objfiles_event): New function.
62 (clear_objfiles): New event.
63 * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
64 Declare.
65 * python/python.c (_initialize_python): Call
66 gdbpy_initialize_clear_objfiles_event.
67
d096d8c1
DE
682014-10-17 Doug Evans <dje@google.com>
69
70 * NEWS: Mention new gdb.Objfile.progspace attribute.
71 * python/py-objfile.c (objfpy_get_progspace): New function.
72 (objfile_getset): New entry for "progspace".
73
6c4486e6
PA
742014-10-17 Pedro Alves <palves@redhat.com>
75
76 PR gdb/17471
77 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
78 returns a copy of the input.
79 (run_command_1, continue_command, step_1, jump_command)
80 (signal_command, until_command, advance_command, finish_command)
81 (attach_command): Adjust and install a cleanup to free the
82 stripped args.
83
0ff33695
PA
842014-10-17 Pedro Alves <palves@redhat.com>
85
86 PR gdb/17300
87 * infcmd.c (continue_1): If continuing all threads in the
88 foreground, make sure the inferior's terminal settings are put in
89 effect.
90
6fdebc3d
PA
912014-10-17 Pedro Alves <palves@redhat.com>
92
93 PR gdb/17472
94 * annotate.c (annotate_breakpoints_invalid): Use
95 target_terminal_our_for_output instead of target_terminal_ours.
96 Give back the terminal to the target.
97 (annotate_frames_invalid): Likewise.
98
5842f62a
PA
992014-10-17 Pedro Alves <palves@redhat.com>
100
101 * target.c (enum terminal_state): New enum.
102 (terminal_state): New global.
103 (target_terminal_init): New function.
104 (target_terminal_inferior): Skip if inferior already owns the
105 terminal.
106 (target_terminal_ours, target_terminal_ours_for_output): New
107 functions.
108 * target.h (target_terminal_init): Convert to function prototype.
109 (target_terminal_ours_for_output): Convert to function prototype
110 and tweak comment.
111 (target_terminal_ours): Convert to function prototype and tweak
112 comment.
113 * windows-nat.c (do_initial_windows_stuff): Call
114 target_terminal_init instead of child_terminal_init_with_pgrp.
115
32a8097b
PA
1162014-10-17 Pedro Alves <palves@redhat.com>
117
118 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
119 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
120 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
121 solib-osf.c.
122 * NEWS: Mention that support for alpha*-*-osf* has been removed.
123 * ada-lang.h [__alpha__ && __osf__]
124 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
125 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
126 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
127 GDB_OSABI_OSF1.
128 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
129 files.
130 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
131 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
132 * configure: Regenerate.
133 * configure.ac: Remove references to osf.
134 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
135 section. Remove all other references to osf.
136 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
137 Remove all other references to osf.
138 * dec-thread.c: Delete file.
139 * defs.h (GDB_OSABI_OSF1): Delete.
140 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
141 defined.
142 * osabi.c (gdb_osabi_names): Delete "OSF/1".
143 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
144 Delete code.
145 (unconditionally_kill_inferior)
146 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
147 * solib-osf.c: Delete file.
148
80134cf5
PA
1492014-10-17 Pedro Alves <palves@redhat.com>
150
151 * remote.c (clear_threads_listing_context): Move higher up, out of
152 the HAVE_LIBEXPAT guard.
153
89c7137f
TG
1542014-10-16 Tristan Gingold <gingold@adacore.com>
155
156 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
157 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
158 on amd64.
159
44ee4a52
PA
1602014-10-15 Pedro Alves <palves@redhat.com>
161
162 * dec-thread.c (dec_thread_count_gdb_threads)
163 (dec_thread_add_gdb_thread): Delete.
164 (dec_thread_update_thread_list): Delete.
165 (dec_thread_find_new_threads): Rename to ...
166 (dec_thread_update_thread_list): ... this. Delete GDB-size
167 threads that are no longer found in dec_thread_list.
168 (resync_thread_list): Delete.
169 (dec_thread_wait): Call dec_thread_update_thread_list instead of
170 resync_thread_list.
171
ab970af1
PA
1722014-10-15 Pedro Alves <palves@redhat.com>
173
174 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
175 * remote.c (remote_update_thread_list): Skip calling prune_threads
176 if any thread listing method is supported, and instead walk over
177 the set of remote threads listed, deleting those that are not
178 found in GDB's thread list.
179
e8032dde
PA
1802014-10-15 Pedro Alves <palves@redhat.com>
181
182 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
183 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
184 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
185 (bsd_uthread_target): Adjust.
186 * corelow.c (core_open): Adjust.
187 * dec-thread.c (dec_thread_find_new_threads): Update comment.
188 (dec_thread_update_thread_list): New function.
189 (init_dec_thread_ops): Adjust.
190 * gdbthread.h (prune_threads): New declaration.
191 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
192 (thread_db_update_thread_list): ... this. Call prune_threads.
193 (init_thread_db_ops): Adjust.
194 * nto-procfs.c (procfs_find_new_threads): Rename to ...
195 (procfs_update_thread_list): ... this. Call prune_threads.
196 (procfs_attach, procfs_create_inferior, init_procfs_targets):
197 Adjust.
198 * obsd-nat.c (obsd_find_new_threads): Rename to ...
199 (obsd_update_thread_list): ... this. Call prune_threads.
200 (obsd_add_target): Adjust.
201 * procfs.c (procfs_target): Adjust.
202 (procfs_notice_thread): Update comment.
203 (procfs_find_new_threads): Rename to ...
204 (procfs_update_thread_list): ... this. Call prune_threads.
205 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
206 comment.
207 (ravenscar_wait): Adjust.
208 (ravenscar_find_new_threads): Rename to ...
209 (ravenscar_update_thread_list): ... this. Call prune_threads.
210 (init_ravenscar_thread_ops): Adjust.
211 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
212 (record_btrace_update_thread_list): ... this. Adjust comment.
213 (init_record_btrace_ops): Adjust.
214 * remote.c (remote_threads_info): Rename to ...
215 (remote_update_thread_list): ... this. Call prune_threads.
216 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
217 Adjust.
218 * sol-thread.c (check_for_thread_db): Adjust.
219 (sol_find_new_threads_callback): Rename to ...
220 (sol_update_thread_list_callback): ... this.
221 (sol_find_new_threads): Rename to ...
222 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
223 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
224 * target-delegates.c: Regenerate.
225 * target.c (target_find_new_threads): Rename to ...
226 (target_update_thread_list): ... this.
227 * target.h (struct target_ops): Rename to_find_new_threads field
228 to to_update_thread_list.
229 (target_find_new_threads): Rename to ...
230 (target_update_thread_list): ... this.
231 * thread.c (prune_threads): Make extern.
232 (update_thread_list): Adjust.
233
6dc54d91
PA
2342014-10-15 Pedro Alves <palves@redhat.com>
235
236 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
237 Add describing comment. Return -1 if the qL packet is not
238 supported.
239 (struct thread_item, thread_item_t): Move higher up in
240 the file. Add comments.
241 (struct threads_parsing_context): Move higher up in
242 the file, add comments, and remote to ...
243 (struct threads_listing_context): ... this.
244 (remote_newthread_step): Don't add the thread to GDB's thread
245 database here. Instead push it to the thread_listing_context
246 list.
247 (remote_find_new_threads): Rename to ...
248 (remote_get_threads_with_ql): ... this. Add target_ops and
249 targets_listing_context parameters. Pass down context.
250 (start_thread): Adjust.
251 (clear_threads_parsing_context): Rename to ...
252 (clear_threads_listing_context): ... this.
253 (remote_get_threads_with_qxfer): New, with parts salvaged from old
254 remote_threads_info.
255 (remote_get_threads_with_qthreadinfo): Ditto.
256 (remote_threads_info): Reimplement.
257
36728e82
PA
2582014-10-15 Pedro Alves <palves@redhat.com>
259
260 * infrun.c (resume): Don't force displaced-stepping for all
261 single-steps on software single-stepping archs.
262
34b7e8a6
PA
2632014-10-15 Pedro Alves <palves@redhat.com>
264
265 * breakpoint.c (single_step_breakpoints): Delete global.
266 (insert_single_step_breakpoint): Adjust to store the breakpoint
267 pointer in the current thread.
268 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
269 (cancel_single_step_breakpoints): Delete functions.
270 (breakpoint_has_location_inserted_here): Make extern.
271 (single_step_breakpoint_inserted_here_p): Adjust to walk the
272 breakpoint list.
273 * breakpoint.h (breakpoint_has_location_inserted_here): New
274 declaration.
275 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
276 (cancel_single_step_breakpoints): Remove declarations.
277 * gdbthread.h (struct thread_control_state)
278 <single_step_breakpoints>: New field.
279 (delete_single_step_breakpoints)
280 (thread_has_single_step_breakpoints_set)
281 (thread_has_single_step_breakpoint_here): New declarations.
282 * infrun.c (follow_exec): Also clear the single-step breakpoints.
283 (singlestep_breakpoints_inserted_p, singlestep_ptid)
284 (singlestep_pc): Delete globals.
285 (infrun_thread_ptid_changed): Remove references to removed
286 globals.
287 (resume_cleanups): Delete the current thread's single-step
288 breakpoints.
289 (maybe_software_singlestep): Remove references to removed globals.
290 (resume): Adjust to use thread_has_single_step_breakpoints_set and
291 delete_single_step_breakpoints.
292 (init_wait_for_inferior): Remove references to removed globals.
293 (delete_thread_infrun_breakpoints): Delete the thread's
294 single-step breakpoints too.
295 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
296 single-step breakpoints here.
297 (delete_stopped_threads_single_step_breakpoints): New function.
298 (adjust_pc_after_break): Adjust to use
299 thread_has_single_step_breakpoints_set.
300 (handle_inferior_event): Remove references to removed globals.
301 Use delete_stopped_threads_single_step_breakpoints.
302 (handle_signal_stop): Adjust to per-thread single-step
303 breakpoints. Swap test order to do cheaper tests first.
304 (switch_back_to_stepped_thread): Extend debug output. Remove
305 references to removed globals.
306 * record-full.c (record_full_wait_1): Adjust to per-thread
307 single-step breakpoints.
308 * thread.c (delete_single_step_breakpoints)
309 (thread_has_single_step_breakpoints_set)
310 (thread_has_single_step_breakpoint_here): New functions.
311 (clear_thread_inferior_resources): Also delete the thread's
312 single-step breakpoints.
313
5b834a0a
PA
3142014-10-15 Pedro Alves <palves@redhat.com>
315
316 * thread.c (delete_thread_breakpoint): New function.
317 (delete_step_resume_breakpoint)
318 (delete_exception_resume_breakpoint): Use it.
319 (delete_at_next_stop): New function.
320 (clear_thread_inferior_resources): Use delete_at_next_stop.
321
a1fd2fa5
PA
3222014-10-15 Pedro Alves <palves@redhat.com>
323
324 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
325 (breakpoint_inserted_here_p): ... here. Remove special case for
326 software single-step breakpoints.
327 (find_non_raw_software_breakpoint_inserted_here): Inline ...
328 (software_breakpoint_inserted_here_p): ... here. Remove special
329 case for software single-step breakpoints.
330 (bp_target_info_copy_insertion_state)
331 (deprecated_insert_raw_breakpoint)
332 (deprecated_remove_raw_breakpoint): Delete functions.
333 * breakpoint.h (deprecated_insert_raw_breakpoint)
334 (deprecated_remove_raw_breakpoint): Remove declarations.
335
7c16b83e
PA
3362014-10-15 Pedro Alves <palves@redhat.com>
337
338 PR breakpoints/9649
339 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
340 Delete array globals.
341 (single_step_breakpoints): New global.
342 (breakpoint_xfer_memory): Remove special handling for single-step
343 breakpoints.
344 (update_breakpoints_after_exec): Delete bp_single_step
345 breakpoints.
346 (detach_breakpoints): Remove special handling for single-step
347 breakpoints.
348 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
349 (bpstat_stop_status): Add comment.
350 (bpstat_what, bptype_string, print_one_breakpoint_location)
351 (adjust_breakpoint_address, init_bp_location): Handle
352 bp_single_step.
353 (new_single_step_breakpoint): New function.
354 (set_momentary_breakpoint, bkpt_remove_location): Remove special
355 handling for single-step breakpoints.
356 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
357 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
358 Rewrite.
359 (detach_single_step_breakpoints, find_single_step_breakpoint):
360 Delete functions.
361 (breakpoint_has_location_inserted_here): New function.
362 (single_step_breakpoint_inserted_here_p): Rewrite.
363 * breakpoint.h: Remove FIXME.
364 (enum bptype) <bp_single_step>: New enum value.
365 (insert_single_step_breakpoint): Update comment.
366 * infrun.c (resume_cleanups)
367 (delete_step_thread_step_resume_breakpoint): Remove single-step
368 breakpoints.
369 (fetch_inferior_event): Install a cleanup that removes infrun
370 breakpoints.
371 (switch_back_to_stepped_thread) <expect thread advanced also>:
372 Clear step-over info.
373
0cbcdb96
PA
3742014-10-15 Pedro Alves <palves@redhat.com>
375
376 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
377 (delete_thread_infrun_breakpoints): New function, with parts
378 salvaged from delete_step_resume_breakpoint_callback.
379 (delete_step_thread_step_resume_breakpoint): Delete.
380 (for_each_just_stopped_thread_callback_func): New typedef.
381 (for_each_just_stopped_thread): New function.
382 (delete_just_stopped_threads_infrun_breakpoints): New function.
383 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
384 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
385 ... this. Adjust.
386 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
387
963f9c80
PA
3882014-10-15 Pedro Alves <palves@redhat.com>
389
390 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
391 trying to step past a non-steppable watchpoint.
392 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
393 field.
394 * infrun.c (struct step_over_info): Add new field
395 'nonsteppable_watchpoint_p' and adjust comments.
396 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
397 Adjust.
398 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
399 (stepping_past_nonsteppable_watchpoint): New function.
400 (step_over_info_valid_p): Also return true if stepping past a
401 nonsteppable watchpoint.
402 (proceed): Adjust call to set_step_over_info. Remove reference to
403 init_infwait_state.
404 (init_wait_for_inferior): Remove reference to init_infwait_state.
405 (waiton_ptid): Delete global.
406 (struct execution_control_state)
407 <stepped_after_stopped_by_watchpoint>: Delete field.
408 (wait_for_inferior, fetch_inferior_event): Always pass
409 minus_one_ptid to target_wait.
410 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
411 field.
412 (init_infwait_state): Delete function.
413 (handle_inferior_event): Remove infwait_state handling.
414 (handle_signal_stop) <watchpoints handling>: Adjust after
415 stepped_after_stopped_by_watchpoint removal. Don't remove
416 breakpoints here nor set infwait_state. Set the thread's
417 stepping_over_watchpoint flag, and call keep_going instead.
418 (keep_going): Handle stepping_over_watchpoint. Adjust
419 set_step_over_info calls.
420 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
421 function.
422
6cc83d2a
PA
4232014-10-15 Pedro Alves <palves@redhat.com>
424
425 * infrun.c (step_over_info_valid_p): New function.
426 (resume): Use step_over_info_valid_p instead of checking the
427 threads's trap_expected flag.
428
6979730b
DE
4292014-10-15 Doug Evans <dje@google.com>
430 Walfred Tedeschi <walfred.tedeschi@intel.com>
431
432 PR python/17364
433 * python/lib/gdb/__init__.py (packages): Add "printer".
434 * python/lib/gdb/command/bound_registers.py: Moved to ...
435 * python/lib/gdb/printer/bound_registers.py: ... here.
436 Add printer to global set of builtin printers. Rename printer from
437 "bound" to "mpx_bound128".
438 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
439 registered as global "builtin" printer.
440 (add_builtin_pretty_printer): New function.
441 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
442 gdb/printer/__init__.py.
443
35a49624
IB
4442014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
445
446 * Makefile.in (SFILES): Remove d-support.c.
447 (COMMON_OBS): Remove d-support.o.
448 * d-lang.h (d_parse_symbol): Remove declaration.
449 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
450 * d-support.c: Remove file.
451
8fa0c4f8
AA
4522014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
453
454 * gdb/infrun.c (process_event_stop_test): Apply
455 gdbarch_addr_bits_remove to longjmp resume address.
456
3666da81
PA
4572014-10-15 Pedro Alves <palves@redhat.com>
458
459 * regformats/microblaze.dat: Delete file.
460
449aa9df
AKA
4612014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
462
463 * features/Makefile (microblaze-expedite): Replace pc with rpc.
464 * regformats/microblaze-with-stack-protect.dat: Regenerate.
465
ebb8ece2
SC
4662014-10-15 Siva Chandra Reddy <sivachandra@google.com>
467
468 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
469 as non-trivial.
470
82c48ac7
SC
4712014-10-15 Siva Chandra Reddy <sivachandra@google.com>
472
473 PR c++/13403
474 PR c++/15154
475 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
476 with qualified args.
477
c40cc657
JB
4782014-10-14 Joel Brobecker <brobecker@adacore.com>
479
480 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
481 of the case where the second operand is a pointer.
482 <BINOP_SUB>: Likewise.
483
0ea5cda8
SDJ
4842014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
485
486 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
487 only if it is not NULL.
488 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
489 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
490 (struct probe_ops) <clear_semaphore>: Likewise.
491 * tracepoint.c (start_tracing): Call set_semaphore only if it is
492 not NULL.
493 (stop_tracing): Likewise, for clear_semaphore.
494
f7088df3
SDJ
4952014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
496
497 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
498 using language_c, instead of current_language.
499
4e1bbde0
DE
5002014-10-13 Doug Evans <dje@google.com>
501
6ff5a0f6 502 * python/py-objfile.c (objfpy_initialize): New function.
4e1bbde0 503 (objfpy_new, objfile_to_objfile_object): Call it.
6ff5a0f6 504 * python/py-progspace.c (pspy_initialize): New function.
4e1bbde0
DE
505 (pspy_new, pspace_to_pspace_object): Call it.
506
c780cc2f
JK
5072014-10-13 Miroslav Franc <mfranc@redhat.com>
508 Jan Kratochvil <jan.kratochvil@redhat.com>
509
510 Fix "save breakpoints" for "catch" command.
511 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
512 newline.
513
99894e11
JK
5142014-10-12 Miroslav Franc <mfranc@redhat.com>
515
516 Fix "save breakpoints" for "disable $bpnum" command.
517 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
518
3831839c
PA
5192014-10-10 Pedro Alves <palves@redhat.com>
520
521 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
522 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
523 (HFILES_NO_SRCDIR): Remove solib-irix.h.
524 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
525 and been removed.
526 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
527 * configure.ac: Remove references to IRIX.
528 * configure.host: Add *-*-irix* to the obsolete hosts section.
529 Remove all other references to irix.
530 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
531 Delete files.
532
cc3afae2
AKA
5332014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
534
535 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
536 isn't valid, release the tdesc arch data and return NULL.
537
cdfa0b0a
PA
5382014-10-10 Pedro Alves <palves@redhat.com>
539
540 * linux-tdep.c: Include observer.h.
541 (linux_inferior_data): New global.
542 (struct linux_info): New structure.
543 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
544 (get_linux_inferior_data): New functions.
545 (linux_vsyscall_range): Rename to ...
546 (linux_vsyscall_range_raw): ... this.
547 (linux_vsyscall_range): New function; handles caching.
548 (_initialize_linux_tdep): Register linux_inferior_data. Install
549 inferior_exit and inferior_appeared observers.
550
8b9a549d
PA
5512014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
552 Pedro Alves <palves@redhat.com>
553
554 PR symtab/14466
555 * solib-svr4.c (svr4_read_so_list): Rename to ...
556 (svr4_current_sos_1): ... this and change the function comment.
557 (svr4_current_sos): New function.
558
3437254d
PA
5592014-10-10 Pedro Alves <palves@redhat.com>
560
561 * arch-utils.c (default_vsyscall_range): New function.
562 * arch-utils.h (default_vsyscall_range): New declaration.
563 * gdbarch.sh (vsyscall_range): New hook.
564 * gdbarch.h, gdbarch.c: Regenerate.
565 * linux-tdep.c (linux_vsyscall_range): New function.
566 (linux_init_abi): Install linux_vsyscall_range as
567 vsyscall_range gdbarch hook.
568 * memrange.c (address_in_mem_range): New function.
569 * memrange.h (address_in_mem_range): New declaration.
570 * symfile-mem.c (find_vdso_size): Delete function.
571 (add_vsyscall_page): Use gdbarch_vsyscall_range.
572
31cc0b80
PA
5732014-10-10 Pedro Alves <palves@redhat.com>
574
575 * infrun.c (normal_stop): Fix typo in comment.
576
3e3286a2
SDJ
5772014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
578
579 PR tdep/9390
580 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
581 typo when using logical AND to determine instruction type.
582
fcbdedf8
YQ
5832014-10-09 Yao Qi <yao@codesourcery.com>
584
585 * infrun.c (handle_signal_stop): Remove local variable
586 'printed'.
587
db984616
SS
5882014-10-08 Stan Shebs <stan@codesourcery.com>
589
590 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
591
3ba37e6c
GB
5922014-10-08 Gary Benson <gbenson@redhat.com>
593
594 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
595
a442d071
GB
5962014-10-08 Gary Benson <gbenson@redhat.com>
597
598 * common/common-defs.h: Include common-exceptions.h.
599 * exceptions.h: Do not include common-exceptions.h.
600
6f1947e8
GB
6012014-10-08 Gary Benson <gbenson@redhat.com>
602
603 * common/common-defs.h: Include cleanups.h.
604 * common/common-exceptions.c: Do not include cleanups.h.
605 * utils.h: Likewise.
606
c765fdb9
GB
6072014-10-08 Gary Benson <gbenson@redhat.com>
608
609 * ada-lang.c: Do not include exceptions.h.
610 * ada-valprint.c: Likewise.
611 * amd64-tdep.c: Likewise.
612 * auto-load.c: Likewise.
613 * block.c: Likewise.
614 * break-catch-throw.c: Likewise.
615 * breakpoint.c: Likewise.
616 * btrace.c: Likewise.
617 * c-lang.c: Likewise.
618 * cli/cli-cmds.c: Likewise.
619 * cli/cli-interp.c: Likewise.
620 * cli/cli-script.c: Likewise.
621 * completer.c: Likewise.
622 * corefile.c: Likewise.
623 * corelow.c: Likewise.
624 * cp-abi.c: Likewise.
625 * cp-support.c: Likewise.
626 * cp-valprint.c: Likewise.
627 * darwin-nat.c: Likewise.
628 * dwarf2-frame-tailcall.c: Likewise.
629 * dwarf2-frame.c: Likewise.
630 * dwarf2loc.c: Likewise.
631 * dwarf2read.c: Likewise.
632 * eval.c: Likewise.
633 * event-loop.c: Likewise.
634 * event-top.c: Likewise.
635 * f-valprint.c: Likewise.
636 * frame-unwind.c: Likewise.
637 * frame.c: Likewise.
638 * gdbtypes.c: Likewise.
639 * gnu-v2-abi.c: Likewise.
640 * gnu-v3-abi.c: Likewise.
641 * guile/scm-auto-load.c: Likewise.
642 * guile/scm-breakpoint.c: Likewise.
643 * guile/scm-cmd.c: Likewise.
644 * guile/scm-frame.c: Likewise.
645 * guile/scm-lazy-string.c: Likewise.
646 * guile/scm-param.c: Likewise.
647 * guile/scm-symbol.c: Likewise.
648 * guile/scm-type.c: Likewise.
649 * hppa-hpux-tdep.c: Likewise.
650 * i386-tdep.c: Likewise.
651 * inf-loop.c: Likewise.
652 * infcall.c: Likewise.
653 * infcmd.c: Likewise.
654 * infrun.c: Likewise.
655 * interps.c: Likewise.
656 * interps.h: Likewise.
657 * jit.c: Likewise.
658 * linespec.c: Likewise.
659 * linux-nat.c: Likewise.
660 * linux-thread-db.c: Likewise.
661 * m32r-rom.c: Likewise.
662 * main.c: Likewise.
663 * memory-map.c: Likewise.
664 * mi/mi-cmd-break.c: Likewise.
665 * mi/mi-cmd-stack.c: Likewise.
666 * mi/mi-interp.c: Likewise.
667 * mi/mi-main.c: Likewise.
668 * monitor.c: Likewise.
669 * nto-procfs.c: Likewise.
670 * objc-lang.c: Likewise.
671 * p-valprint.c: Likewise.
672 * parse.c: Likewise.
673 * ppc-linux-tdep.c: Likewise.
674 * printcmd.c: Likewise.
675 * probe.c: Likewise.
676 * python/py-auto-load.c: Likewise.
677 * python/py-breakpoint.c: Likewise.
678 * python/py-cmd.c: Likewise.
679 * python/py-finishbreakpoint.c: Likewise.
680 * python/py-frame.c: Likewise.
681 * python/py-framefilter.c: Likewise.
682 * python/py-function.c: Likewise.
683 * python/py-gdb-readline.c: Likewise.
684 * python/py-inferior.c: Likewise.
685 * python/py-infthread.c: Likewise.
686 * python/py-lazy-string.c: Likewise.
687 * python/py-linetable.c: Likewise.
688 * python/py-param.c: Likewise.
689 * python/py-prettyprint.c: Likewise.
690 * python/py-symbol.c: Likewise.
691 * python/py-type.c: Likewise.
692 * python/py-value.c: Likewise.
693 * python/python-internal.h: Likewise.
694 * python/python.c: Likewise.
695 * record-btrace.c: Likewise.
696 * record-full.c: Likewise.
697 * regcache.c: Likewise.
698 * remote-fileio.c: Likewise.
699 * remote-mips.c: Likewise.
700 * remote.c: Likewise.
701 * rs6000-aix-tdep.c: Likewise.
702 * rs6000-nat.c: Likewise.
703 * skip.c: Likewise.
704 * solib-darwin.c: Likewise.
705 * solib-dsbt.c: Likewise.
706 * solib-frv.c: Likewise.
707 * solib-ia64-hpux.c: Likewise.
708 * solib-spu.c: Likewise.
709 * solib-svr4.c: Likewise.
710 * solib.c: Likewise.
711 * spu-tdep.c: Likewise.
712 * stack.c: Likewise.
713 * stap-probe.c: Likewise.
714 * symfile-mem.c: Likewise.
715 * symmisc.c: Likewise.
716 * target.c: Likewise.
717 * thread.c: Likewise.
718 * top.c: Likewise.
719 * tracepoint.c: Likewise.
720 * tui/tui-interp.c: Likewise.
721 * typeprint.c: Likewise.
722 * utils.c: Likewise.
723 * valarith.c: Likewise.
724 * valops.c: Likewise.
725 * valprint.c: Likewise.
726 * value.c: Likewise.
727 * varobj.c: Likewise.
728 * windows-nat.c: Likewise.
729 * xml-support.c: Likewise.
730
484933d1
MR
7312014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
732
733 * mips-tdep.c (add_offset_16): Rewrite to implement what the
734 name implies.
735 (extended_mips16_next_pc): Update accordingly.
736
ab50adb6
MR
7372014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
738
739 * mips-tdep.c (mips16_instruction_is_compact_branch): New
740 function.
741 (micromips_instruction_is_compact_branch): Likewise.
742 (mips16_scan_prologue): Terminate scanning upon seeing a branch
743 or a compact jump, reaching a jump delay slot, or seeing a
744 second non-prologue instruction.
745 (micromips_scan_prologue): Also terminate scanning upon seeing a
746 compact branch or jump, or reaching a branch or jump delay slot.
747 (mips32_scan_prologue): Terminate scanning upon reaching a branch
748 or jump delay slot, or seeing a second non-prologue instruction.
749 (mips32_instruction_has_delay_slot): Retain instruction
750 examination code only, update arguments accordingly and move
751 instruction fetch pieces to...
752 (mips32_insn_at_pc_has_delay_slot): ... this new function.
753 (micromips_instruction_has_delay_slot): Likewise and to...
754 (micromips_insn_at_pc_has_delay_slot): ... this new function.
755 (mips16_instruction_has_delay_slot): Likewise and to...
756 (mips16_insn_at_pc_has_delay_slot): ... this new function.
757 (mips_single_step_through_delay): Update accordingly.
758 (mips_adjust_breakpoint_address): Likewise.
759
ae790652
MR
7602014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
761
762 * mips-tdep.c (micromips_instruction_has_delay_slot): When
763 !mustbe32 also return 1 for 32-bit instructions.
764 (mips16_instruction_has_delay_slot): Likewise. Add an
765 explanatory comment.
766
9b807e7b
MR
7672014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
768
769 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
770 symbols special.
771
0d5ed153
MR
7722014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
773
774 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
775 update comments.
776 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
777 for the breakpoint's address. Don't preinitialize `placed_size'.
778 (insert_bp_location): Set `reqstd_address' rather than
779 `placed_address'.
780 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
781 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
782 address.
783 (bkpt_remove_location): Likewise.
784 (deprecated_insert_raw_breakpoint): Likewise.
785 (deprecated_remove_raw_breakpoint): Likewise.
786 (find_single_step_breakpoint): Likewise.
787 * mem-break.c (default_memory_insert_breakpoint): Use
788 `reqstd_address' for the breakpoint's address. Don't set
789 `placed_address' or `placed_size' if breakpoint contents couldn't
790 have been determined.
791 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
792 the breakpoint's address.
793 (remote_insert_hw_breakpoint): Likewise. Don't set
794 `placed_address' or `placed_size' if breakpoint couldn't have been
795 set.
796 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
797 `reqstd_address' for the breakpoint's address.
798 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
799 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
800 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
801 * microblaze-linux-tdep.c
802 (microblaze_linux_memory_remove_breakpoint): Likewise.
803 * monitor.c (monitor_insert_breakpoint): Likewise.
804 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
805 (procfs_insert_hw_breakpoint): Likewise.
806 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
807 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
808 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
809 * remote-mips.c (mips_insert_breakpoint): Likewise.
810 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
811
3e871532
LM
8122014-10-03 Luis Machado <lgustavo@codesourcery.com>
813
814 * valops.c (value_assign): Check for bit field assignments
815 before calling architecture-specific register value
816 conversion functions.
817
ec48dc8b
PM
8182014-10-03 Pierre Muller <muller@sourceware.org>
819
820 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
821
b57bacec
PA
8222014-10-02 Pedro Alves <palves@redhat.com>
823
824 * breakpoint.c (breakpoints_should_be_inserted_now): Use
825 threads_are_executing.
826 * breakpoint.h (breakpoints_should_be_inserted_now): Add
827 describing comment.
828 * gdbthread.h (threads_are_executing): Declare.
829 (handle_signal_stop) <random signals>: Don't print about the
830 signal here if stopping.
831 (end_stepping_range): Don't notify observers here.
832 (normal_stop): Update the thread list. If stopped by a random
833 signal or a stepping range ended, notify observers.
834 * thread.c (threads_executing): New global.
835 (init_thread_list): Clear 'threads_executing'.
836 (set_executing): Set or clear 'threads_executing'.
837 (threads_are_executing): New function.
838 (update_threads_executing): New function.
839 (update_thread_list): Use it.
840
13fd3ff3
PA
8412014-10-02 Pedro Alves <palves@redhat.com>
842
843 PR breakpoints/17431
844 * breakpoint.c (update_breakpoints_after_exec): Don't create
845 overlay, longjmp, std terminate nor exception breakpoints here.
846
32990ada
PA
8472014-10-02 Pedro Alves <palves@redhat.com>
848
849 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
850 Adjust comments.
851 * inferior.c (find_inferior_for_program_space): Give preference to
852 the current inferior.
853 * inferior.h (find_inferior_for_program_space): Update comment.
854 * progspace.c (switch_to_program_space_and_thread): Prefer the
855 current inferior if it's bound to the program space requested. If
856 the inferior found doesn't have a PID yet, don't bother looking up
857 a thread.
858 * progspace.h (switch_to_program_space_and_thread): Adjust
859 comment.
860 * thread.c (any_thread_of_process, any_live_thread_of_process):
861 Give preference to the current thread.
862
0fec99e8
PA
8632014-10-01 Pedro Alves <palves@redhat.com>
864
865 * breakpoint.c (insert_bp_location): Error out if inserting a
866 software breakpoint at a read-only address.
867 * target.c (memory_xfer_check_region): New function, factored out
868 from ...
869 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
870 ULONGEST.
871 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
872 against the memory region attributes.
873
2ddf4301
SM
8742014-10-01 Simon Marchi <simon.marchi@ericsson.com>
875
876 * NEWS: Announce new exit-code field in -list-thread-groups
877 output.
878 * inferior.c (exit_inferior_1): Don't clear exit code.
879 (inferior_appeared): Clear exit code.
880 * mi/mi-main.c (print_one_inferior): Add printing of the exit
881 code.
882
5fdeec1d
PA
8832014-10-01 Pedro Alves <palves@redhat.com>
884
885 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
886 GENERATED" along with emacs/vi read-only markers.
887 * regformats/aarch64.dat: Regenerate.
888 * regformats/arm-with-iwmmxt.dat: Regenerate.
889 * regformats/arm-with-neon.dat: Regenerate.
890 * regformats/arm-with-vfpv2.dat: Regenerate.
891 * regformats/arm-with-vfpv3.dat: Regenerate.
892 * regformats/i386/amd64-avx-linux.dat: Regenerate.
893 * regformats/i386/amd64-avx.dat: Regenerate.
894 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
895 * regformats/i386/amd64-avx512.dat: Regenerate.
896 * regformats/i386/amd64-linux.dat: Regenerate.
897 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
898 * regformats/i386/amd64-mpx.dat: Regenerate.
899 * regformats/i386/amd64.dat: Regenerate.
900 * regformats/i386/i386-avx-linux.dat: Regenerate.
901 * regformats/i386/i386-avx.dat: Regenerate.
902 * regformats/i386/i386-avx512-linux.dat: Regenerate.
903 * regformats/i386/i386-avx512.dat: Regenerate.
904 * regformats/i386/i386-linux.dat: Regenerate.
905 * regformats/i386/i386-mmx-linux.dat: Regenerate.
906 * regformats/i386/i386-mmx.dat: Regenerate.
907 * regformats/i386/i386-mpx-linux.dat: Regenerate.
908 * regformats/i386/i386-mpx.dat: Regenerate.
909 * regformats/i386/i386.dat: Regenerate.
910 * regformats/i386/x32-avx-linux.dat: Regenerate.
911 * regformats/i386/x32-avx.dat: Regenerate.
912 * regformats/i386/x32-avx512-linux.dat: Regenerate.
913 * regformats/i386/x32-avx512.dat: Regenerate.
914 * regformats/i386/x32-linux.dat: Regenerate.
915 * regformats/i386/x32.dat: Regenerate.
916 * regformats/microblaze-with-stack-protect.dat: Regenerate.
917 * regformats/mips-dsp-linux.dat: Regenerate.
918 * regformats/mips-linux.dat: Regenerate.
919 * regformats/mips64-dsp-linux.dat: Regenerate.
920 * regformats/mips64-linux.dat: Regenerate.
921 * regformats/nios2-linux.dat: Regenerate.
922 * regformats/rs6000/powerpc-32.dat: Regenerate.
923 * regformats/rs6000/powerpc-32l.dat: Regenerate.
924 * regformats/rs6000/powerpc-64l.dat: Regenerate.
925 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
926 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
927 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
928 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
929 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
930 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
931 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
932 * regformats/s390-linux32.dat: Regenerate.
933 * regformats/s390-linux32v1.dat: Regenerate.
934 * regformats/s390-linux32v2.dat: Regenerate.
935 * regformats/s390-linux64.dat: Regenerate.
936 * regformats/s390-linux64v1.dat: Regenerate.
937 * regformats/s390-linux64v2.dat: Regenerate.
938 * regformats/s390-te-linux64.dat: Regenerate.
939 * regformats/s390x-linux64.dat: Regenerate.
940 * regformats/s390x-linux64v1.dat: Regenerate.
941 * regformats/s390x-linux64v2.dat: Regenerate.
942 * regformats/s390x-te-linux64.dat: Regenerate.
943 * regformats/tic6x-c62x-linux.dat: Regenerate.
944 * regformats/tic6x-c62x.dat: Regenerate.
945 * regformats/tic6x-c64x-linux.dat: Regenerate.
946 * regformats/tic6x-c64x.dat: Regenerate.
947 * regformats/tic6x-c64xp-linux.dat: Regenerate.
948 * regformats/tic6x-c64xp.dat: Regenerate.
949
db74e4ba
PA
9502014-10-01 Pedro Alves <palves@redhat.com>
951
952 * features/Makefile: Update comments.
953 (XMLTOC): List all xml files we build C files from.
954 (clean-cfiles): New rule.
955
d63f2f84
PA
9562014-10-01 Pedro Alves <palves@redhat.com>
957
958 * features/i386/amd64-avx512-linux.c: Regenerate.
959 * features/i386/amd64-avx512.c: Regenerate.
960 * features/i386/x32-avx512-linux.c: Regenerate.
961 * features/i386/x32-avx512.c: Regenerate.
962
20ad026d
PA
9632014-10-01 Pedro Alves <palves@redhat.com>
964
965 * features/Makefile (WHICH): Remove arm-with-m,
966 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
967
acc9fe45
PA
9682014-10-01 Pedro Alves <palves@redhat.com>
969
970 * features/Makefile (clean): New rule.
971
e001e535
PA
9722014-10-01 Pedro Alves <palves@redhat.com>
973
974 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
975 (zmm14h): Add missing end quotes.
976
bdc14417
PA
9772014-10-01 Pedro Alves <palves@redhat.com>
978
979 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
980 * features/aarch64.c: Regenerate.
981
d83ad864
DB
9822014-09-30 Don Breazeal <donb@codesourcery.com>
983
984 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
985 code so as to work with follow_fork_inferior.
986 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
987 (inf_ttrace_create_inferior): Remove reference to
988 inf_ttrace_vfork_ppid.
989 (inf_ttrace_attach): Ditto.
990 (inf_ttrace_detach): Ditto.
991 (inf_ttrace_kill): Use current_inferior instead of
992 inf_ttrace_vfork_ppid.
993 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
994 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
995 inferior away from the parent.
996 * infrun.c (follow_fork): Call follow_fork_inferior instead of
997 target_follow_fork.
998 (follow_fork_inferior): New function.
999 (follow_inferior_reset_breakpoints): Make function static.
1000 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
1001 * linux-nat.c (linux_child_follow_fork): Move target-independent
1002 code to infrun.c:follow_fork_inferior.
1003
29082443
AA
10042014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1005
1006 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
1007 * gdbarch.c: Regenerate.
1008 * gdbarch.h: Likewise.
1009 * corelow.c (sniff_core_bfd): Drop presence check for deleted
1010 gdbarch method 'regset_from_core_section'.
1011 (get_core_register_section): Remove handling for the case that
1012 regset == NULL and regset_from_core_section is defined.
1013 (get_core_registers): Drop check for deleted method.
1014 * procfs.c (procfs_do_thread_registers): Adjust comment.
1015
f968fe80
AA
10162014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1017
1018 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
1019 (linux_nat_make_corefile_notes): Remove.
1020 (linux_target_install_ops): Do not set target method
1021 'make_corefile_notes'.
1022 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
1023 Remove field.
1024 (linux_corefile_thread_callback): Instead of args->collect, call
1025 linux_collect_thread_registers.
1026 (linux_make_corefile_notes): Remove 'collect' parameter. Return
1027 NULL unless there is a regset iterator.
1028 (linux_make_corefile_notes_1): Remove.
1029 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
1030 by linux_make_corefile_notes.
1031 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
1032
174ad59a
AA
10332014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1034
1035 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
1036 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
1037 Remove.
1038 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
1039
97094034
AA
10402014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1041
1042 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
1043 (xtensa_iterate_over_regset_sections): New.
1044 (xtensa_gdbarch_init): Adjust gdbarch initialization.
1045
f73d3ce7
AA
10462014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1047
1048 * vax-tdep.c (vax_regset_from_core_section): Remove.
1049 (vax_iterate_over_regset_sections): New.
1050 (vax_gdbarch_init): Adjust gdbarch initialization.
1051
cb24567a
AA
10522014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1053
1054 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
1055 (tilegx_regset_from_core_section): Remove.
1056 (tilegx_iterate_over_regset_sections): New.
1057 (tilegx_linux_init_abi): Adjust gdbarch initialization.
1058
e5139de8
AA
10592014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1060
1061 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
1062 (sparc_iterate_over_regset_sections): New.
1063 (sparc32_gdbarch_init): Adjust gdbarch initialization.
1064 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
1065 targets.
1066 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
1067 (sparc64fbsd_init_abi): Call fbsd_init_abi.
1068 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
1069 target method 'make_corefile_notes'.
1070
c6d41a6f
AA
10712014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1072
1073 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
1074 'sizeof_gregset' and 'sizeof_fpregset'.
1075 * sh-tdep.c (sh_regset_from_core_section): Remove.
1076 (sh_iterate_over_regset_sections): New.
1077 (sh_gdbarch_init): Adjust gdbarch initialization.
1078 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
1079 sizeof_fpregset.
1080 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
1081 'sizeof_gregset'.
1082
9845a0b5
AA
10832014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1084
1085 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
1086 (score7_linux_iterate_over_regset_sections): New.
1087 (score_gdbarch_init): Adjust gdbarch initialization.
1088
23ea9aeb
AA
10892014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1090
1091 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
1092 FreeBSD targets.
1093 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
1094 method 'make_corefile_notes'.
1095 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
1096 (ppcfbsd_regset_from_core_section): Remove.
1097 (ppcfbsd_iterate_over_regset_sections): New.
1098 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
1099 initialization.
1100 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
1101 (ppcnbsd_iterate_over_regset_sections): New.
1102 (ppcnbsd_init_abi): Adjust.
1103 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
1104 (ppcobsd_iterate_over_regset_sections): New.
1105 (ppcobsd_init_abi): Adjust.
1106 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
1107 (rs6000_aix_iterate_over_regset_sections): New.
1108 (rs6000_aix_init_osabi): Adjust.
1109
c5b8d704
AA
11102014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1111
1112 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
1113 (nios2_regset_from_core_section): Remove.
1114 (nios2_iterate_over_regset_sections): New.
1115 (nios2_linux_init_abi): Adjust gdbarch initialization.
1116
3636e608
AA
11172014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1118
1119 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
1120 (am33_iterate_over_regset_sections): New.
1121 (am33_linux_init_osabi): Adjust gdbarch initialization.
1122
d4036235
AA
11232014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1124
1125 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
1126 (mips_linux_iterate_over_regset_sections): New.
1127 (mips_linux_init_abi): Adjust gdbarch initialization.
1128 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
1129 (mips64obsd_iterate_over_regset_sections): New.
1130 (mips64obsd_init_abi): Adjust.
1131 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
1132 (mipsnbsd_iterate_over_regset_sections): New.
1133 (mipsnbsd_init_abi): Adjust.
1134
b61ddd6e
AA
11352014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1136
1137 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
1138 (m88k_iterate_over_regset_sections): New.
1139 (m88k_gdbarch_init): Adjust gdbarch initialization.
1140
55a2906a
AA
11412014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1142
1143 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
1144 (ia64_linux_iterate_over_regset_sections): New.
1145 (ia64_linux_init_abi): Adjust gdbarch initialization.
1146
022c98ab
AA
11472014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1148
1149 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
1150 (m68kbsd_iterate_over_regset_sections): New.
1151 (m68kbsd_init_abi): Adjust gdbarch initialization.
1152 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
1153 (m68k_linux_iterate_over_regset_sections): New.
1154 (m68k_linux_init_abi): Adjust gdbarch initialization.
1155
5fac247f
AA
11562014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1157
1158 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
1159 (m32r_linux_regset_from_core_section): Remove.
1160 (m32r_linux_iterate_over_regset_sections): New.
1161 (m32r_linux_init_abi): Adjust gdbarch initialization.
1162
490496c3
AA
11632014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1164
1165 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
1166 (amd64obsd_iterate_over_regset_sections): New.
1167 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
1168 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
1169 Remove.
1170 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
1171 regset_from_core_section initialization.
1172 * i386-tdep.c (i386_regset_from_core_section): Remove.
1173 (i386_iterate_over_regset_sections): New.
1174 (i386_gdbarch_init): Adjust gdbarch initialization.
1175 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
1176 (i386_iterate_over_regset_sections): New prototype.
1177 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
1178 Remove.
1179 (i386obsd_aout_iterate_over_regset_sections): New.
1180 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
1181 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
1182 targets.
1183 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
1184 (amd64fbsd_init_abi): Call fbsd_init_abi.
1185 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
1186 (i386fbsd4_init_abi): Call fbsd_init_abi.
1187 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
1188 target method 'make_corefile_notes'.
1189 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
1190
50c5eb53
AA
11912014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1192
1193 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
1194 (hppa_hpux_iterate_over_regset_sections): New.
1195 (hppa_hpux_init_abi): Adjust gdbarch initialization.
1196 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
1197 (hppa_linux_iterate_over_regset_sections): New.
1198 (hppa_linux_init_abi): Adjust.
1199 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
1200 (hppanbsd_iterate_over_regset_sections): New.
1201 (hppanbsd_init_abi): Adjust.
1202 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
1203 (hppaobsd_iterate_over_regset_sections): New.
1204 (hppaobsd_init_abi): Adjust.
1205
66afae4f
AA
12062014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1207
1208 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
1209 (frv_linux_iterate_over_regset_sections): New.
1210 (frv_linux_init_abi): Adjust gdbarch initialization.
1211
ed09174e
AA
12122014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1213
1214 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
1215 (armbsd_iterate_over_regset_sections): New prototype.
1216 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
1217 (armbsd_iterate_over_regset_sections): New.
1218 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
1219 initialization.
1220
dff2166e
AA
12212014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1222
1223 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
1224 (alpha_linux_iterate_over_regset_sections): New.
1225 (alpha_linux_init_abi): Adjust gdbarch initialization.
1226 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
1227 prototype.
1228 (alphanbsd_iterate_over_regset_sections): New prototype.
1229
4108500a
AA
12302014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1231
1232 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
1233 Remove.
1234 (aarch64_linux_iterate_over_regset_sections): New.
1235 (aarch64_linux_init_abi): Adjust gdbarch initialization.
1236
a904c024
AA
12372014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1238
1239 * fbsd-tdep.c: New file.
1240 * fbsd-tdep.h: New file.
1241 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
1242 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
1243 (ALLDEPFILES): Add fbsd-tdep.c.
1244
8f0435f7
AA
12452014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1246
1247 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
1248 parameter.
1249 * gdbarch.h: Regenerate.
1250 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
1251 iterator.
1252 (get_core_register_section): Add parameter 'regset' and use it, if
1253 set. Add parameter 'min_size' and verify the bfd section size
1254 against it.
1255 (get_core_registers_cb): Add parameter 'regset' and pass it to
1256 get_core_register section. For the "standard" register sections
1257 ".reg" and ".reg2", set an appropriate default for human_name.
1258 (get_core_registers): Don't abort when the gdbarch has an iterator
1259 but no regset_from_core_section. Add NULL/0 for parameters
1260 'regset'/'min_size' in calls to get_core_register_section.
1261 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
1262 'regset' and use it instead of calling the
1263 regset_from_core_section gdbarch method.
1264 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
1265 * i386-tdep.c (i386_supply_xstateregset)
1266 (i386_collect_xstateregset, i386_xstateregset): Moved to
1267 i386-linux-tdep.c.
1268 (i386_regset_from_core_section): Drop handling for .reg-xfp and
1269 .reg-xstate.
1270 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
1271 core file support only if the regset iterator hasn't been set.
1272 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
1273 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
1274 Moved from i386-tdep.c and renamed to *_linux*.
1275 (i386_linux_iterate_over_regset_sections): Add regset parameter to
1276 each callback invocation. Allow any .reg-xstate size when reading
1277 from a core file.
1278 * amd64-tdep.c (amd64_supply_xstateregset)
1279 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
1280 amd64-linux-tdep.c.
1281 (amd64_regset_from_core_section): Remove.
1282 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
1283 install an amd64-specific regset_from_core_section gdbarch method.
1284 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
1285 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
1286 Moved from amd64-tdep.c and renamed to *_linux*.
1287 (amd64_linux_iterate_over_regset_sections): Add regset parameter
1288 to each callback invocation. Allow any .reg-xstate size when
1289 reading from a core file.
1290 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
1291 (arm_linux_iterate_over_regset_sections): Add regset parameter to
1292 each callback invocation.
1293 (arm_linux_init_abi): No longer set the regset_from_core_section
1294 gdbarch method.
1295 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
1296 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
1297 each callback invocation.
1298 (ppc_linux_init_abi): No longer set the regset_from_core_section
1299 gdbarch method.
1300 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
1301 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
1302 (s390_regset_from_core_section): Remove.
1303 (s390_iterate_over_regset_sections): Add regset parameter to each
1304 callback invocation.
1305 (s390_gdbarch_init): No longer set the regset_from_core_section
1306 gdbarch method. Drop initialization of deleted tdep fields.
1307
5aa82d05
AA
13082014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1309
1310 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
1311 (amd64_linux_iterate_over_regset_sections): New.
1312 (amd64_linux_init_abi_common): Don't install the regset section
1313 list, but the new iterator in gdbarch.
1314 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
1315 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
1316 (arm_linux_iterate_over_regset_sections): ...here. New function.
1317 (arm_linux_init_abi): Set iterator instead of section list.
1318 * corelow.c (get_core_registers_cb): New function, logic moved
1319 from...
1320 (get_core_registers): ...loop body here. Use new iterator method
1321 instead of walking through the regset section list.
1322 * gdbarch.sh: Remove 'core_regset_sections'. New method
1323 'iterate_over_regset_sections'. New typedef
1324 'iterate_over_regset_sections_cb'.
1325 * gdbarch.c: Regenerate.
1326 * gdbarch.h: Likewise.
1327 * i386-linux-tdep.c (i386_linux_regset_sections)
1328 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
1329 Remove.
1330 (i386_linux_iterate_over_regset_sections): New.
1331 (i386_linux_init_abi): Don't choose a regset section list, but
1332 install new iterator in gdbarch.
1333 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
1334 (linux_collect_regset_section_cb): New function, logic moved
1335 from...
1336 (linux_collect_thread_registers): ...loop body here. Use iterator
1337 method instead of walking through list.
1338 (linux_make_corefile_notes_1): Check for presence of iterator
1339 method instead of regset section list.
1340 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
1341 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
1342 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
1343 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
1344 (ppc_linux_iterate_over_regset_sections): ...here. New function.
1345 (ppc_linux_init_abi): Don't choose from above regset section
1346 lists, but install new iterator in gdbarch.
1347 * regset.h (struct core_regset_section): Remove.
1348 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
1349 have_linux_v1, have_linux_v2, and have_tdb.
1350 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
1351 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
1352 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
1353 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
1354 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
1355 (s390_iterate_over_regset_sections): ...here. New function. Use
1356 new tdep fields.
1357 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
1358 regset section lists, but install new iterator.
1359
2eca4a8d
JK
13602014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1361
1362 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
1363
a73c2b56
SM
13642014-09-26 Simon Marchi <simon.marchi@ericsson.com>
1365
1366 * progspace.c (print_program_space): Don't prune program spaces
1367 before printing them.
1368
03d46957
PA
13692014-09-25 Pedro Alves <palves@redhat.com>
1370
1371 * infrun.c (user_visible_resume_ptid): Don't check
1372 singlestep_breakpoints_inserted_p.
1373
e558d7c1
PA
13742014-09-25 Pedro Alves <palves@redhat.com>
1375
1376 * breakpoint.c (should_be_inserted): Add debug output.
1377
7f89fd65
PA
13782014-09-25 Pedro Alves <palves@redhat.com>
1379
1380 * infrun.c (stepping_past_instruction_at)
1381 (clear_exit_convenience_vars): Point at infrun.h instead of
1382 inferior.h.
1383 (handle_signal_stop): Fix typo.
1384
b7576e5c
YQ
13852014-09-24 Yao Qi <yao@codesourcery.com>
1386
1387 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
1388 bitmask.
1389
9a6cf368
GB
13902014-09-22 Gary Benson <gbenson@redhat.com>
1391
1392 * target.c (target_stop): Updated comment.
1393
03f4463b
GB
13942014-09-22 Gary Benson <gbenson@redhat.com>
1395
1396 * target/target.h (target_stop_ptid): Renamed as...
1397 (target_stop_and_wait): New function. Updated comment.
1398 All uses updated.
1399 (target_continue_ptid): Renamed as...
1400 (target_continue_no_signal): New function. Updated comment.
1401 All uses updated.
1402
a25a5a45
PA
14032014-09-22 Pedro Alves <palves@redhat.com>
1404
1405 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
1406 and "auto" merged.
1407 * breakpoint.c (enum ugll_insert_mode): New enum.
1408 (always_inserted_mode): Now a plain boolean.
1409 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
1410 (breakpoints_always_inserted_mode): Delete.
1411 (breakpoints_should_be_inserted_now): New function.
1412 (insert_breakpoints): Pass UGLL_INSERT to
1413 update_global_location_list instead of calling
1414 insert_breakpoint_locations manually.
1415 (create_solib_event_breakpoint_1): New, factored out from ...
1416 (create_solib_event_breakpoint): ... this.
1417 (create_and_insert_solib_event_breakpoint): Use
1418 create_solib_event_breakpoint_1 instead of calling
1419 insert_breakpoint_locations manually.
1420 (update_global_location_list): Change parameter type from boolean
1421 to enum ugll_insert_mode. All callers adjusted. Adjust to use
1422 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
1423 (update_global_location_list_nothrow): Change parameter type from
1424 boolean to enum ugll_insert_mode.
1425 (_initialize_breakpoint): "breakpoint always-inserted" option is
1426 now a boolean command. Update help text.
1427 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
1428 (breakpoints_should_be_inserted_now): New declaration.
1429 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
1430 Remove breakpoints_always_inserted_mode check.
1431 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
1432 * remote.c (remote_start_remote): Likewise.
1433
04086b45
PA
14342014-09-22 Pedro Alves <palves@redhat.com>
1435
1436 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
1437 (insert_breakpoints): Don't call insert_breakpoint_locations here.
1438 Instead, pass UGLL_INSERT to update_global_location_list.
1439 (update_global_location_list): Change parameter type from boolean
1440 to enum ugll_insert_mode. All callers adjusted. Adjust to use
1441 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
1442 (create_solib_event_breakpoint_1): New, factored out from ...
1443 (create_solib_event_breakpoint): ... this.
1444 (create_and_insert_solib_event_breakpoint): Use
1445 create_solib_event_breakpoint_1 instead of calling
1446 insert_breakpoint_locations manually.
1447 (update_global_location_list): Handle UGLL_INSERT.
1448
44702360
PA
14492014-09-22 Pedro Alves <palves@redhat.com>
1450
1451 * breakpoint.c (enum ugll_insert_mode): New enum.
1452 (update_global_location_list)
1453 (update_global_location_list_nothrow): Change parameter type from
1454 boolean to enum ugll_insert_mode. All callers adjusted.
1455
93c6145a
JB
14562014-09-19 Joel Brobecker <brobecker@adacore.com>
1457
1458 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
1459 SystemTap support in GDB.
1460
89a5711c
DB
14612014-09-19 Don Breazeal <donb@codesourcery.com>
1462
1463 * linux-nat.c (linux_handle_extended_wait): Call
1464 linux_ptrace_get_extended_event.
1465 (wait_lwp): Call linux_is_extended_waitstatus.
1466 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
1467 and linux_is_extended_waitstatus.
1468 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
1469 linux_ptrace_get_extended_event.
1470 (linux_ptrace_get_extended_event): New function.
1471 (linux_is_extended_waitstatus): New function.
1472 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
1473 (linux_is_extended_waitstatus): New declarations.
1474
c3b7b696
YQ
14752014-09-19 Yao Qi <yao@codesourcery.com>
1476
1477 * dwarf2read.c (dwarf_decode_lines): Update declaration.
1478 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
1479 comments. Callers update.
1480 (dwarf_decode_lines): Likewise.
1481 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
1482 comments. Skip the line table if 'lowpc' is greater than
1483 'address'. Don't check
1484 dwarf2_per_objfile->has_section_at_zero.
1485
2b4fd423
DE
14862014-09-18 Doug Evans <dje@google.com>
1487
1488 * NEWS: Mention new "producer" attribute of gdb.Symtab.
1489 * python/py-symtab.c (stpy_get_producer): New function.
1490 (symtab_object_getset): Add "producer" attribute.
1491
5e43d467
UW
14922014-09-17 Ulrich Weigand  <uweigand@de.ibm.com>
1493
1494 PR gdb/17384
1495 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
1496 (do_captured_read_memory_integer): Remove.
1497 (safe_read_memory_integer): Use target_read_memory directly instead
1498 of catching errors in do_captured_read_memory_integer.
1499
04e79979
MR
15002014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
1501
1502 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
1503 not gdb/doc.
1504
76aeec5b
SDJ
15052014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1506
1507 * objc-lang.c (find_implementation_from_class): Remove dead code.
1508
2f693f9d
SDJ
15092014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1510
1511 PR cli/7233
1512 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
1513 "fprintf_unfiltered (gdb_stdlog...)".
1514
bb9d5f81
PP
15152014-09-16 Patrick Palka <patrick@parcs.ath.cx>
1516
1517 PR breakpoints/12526
1518 * breakpoint.h (struct watchpoint): New fields val_bitpos and
1519 val_bitsize.
1520 * breakpoint.c (watch_command_1): Use these fields to retain
1521 bitfield information.
1522 (extract_bitfield_from_watchpoint_value): New function.
1523 (watchpoint_check): Use it.
1524 (update_watchpoint): Use it. Optimize the address and length of a
1525 HW watchpoint pointing to a bitfield.
1526 * value.h (unpack_value_bitfield): New prototype.
1527 * value.c (unpack_value_bitfield): Make extern.
1528
05db5edd
ST
15292014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
1530
1531 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
1532 x86-dregs.o.
1533 * gnu-nat.c (inf_threads): New function.
1534 * gnu-nat.h (inf_threads_ftype): New typedef.
1535 (inf_threads): New declaration.
1536 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
1537 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
1538 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
1539 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
1540 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
1541 (i386_gnu_dr_get_control): New functions.
1542 (reg_addr): New structure.
1543 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
1544 i386 debugging register hooks.
1545 * NEWS: Mention this.
1546
5a578da5
OJ
15472014-08-13 Omair Javaid <omair.javaid@linaro.org>
1548
1549 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
1550 vector data transfer instructions.
1551 (arm_record_coproc_data_proc): Updated.
1552
f20f80dd
OJ
15532014-08-13 Omair Javaid <omair.javaid@linaro.org>
1554
1555 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
1556 arm_record_exreg_ld_st_insn.
1557 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
1558 load/store insns.
1559
851f26ae
OJ
15602014-08-13 Omair Javaid <omair.javaid@linaro.org>
1561
1562 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
1563 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
1564 processing instructions.
1565
1e1b6563
OJ
15662014-08-13 Omair Javaid <omair.javaid@linaro.org>
1567
1568 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
1569 for advance SIMD struct ld/st insn.
1570 (thumb2_record_decode_insn_handler): Replace stub handler with
1571 thumb2_record_asimd_struct_ld_st.
1572
60cc5e93
OJ
15732014-08-13 Omair Javaid <omair.javaid@linaro.org>
1574
1575 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
1576 for asimd, vfp and coprocessor insns.
1577 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
1578 and coprocessor insns.
1579 (thumb2_record_coproc_insn): New function.
1580 (thumb2_record_decode_insn_handler): Update coprocessor insns record
1581 handlers.
1582 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
1583 opcode 110 insns.
1584
81219e53
DE
15852014-09-13 Doug Evans <xdje42@gmail.com>
1586
1587 * NEWS: Mention new "queue-signal" command.
1588 * infcmd.c (queue_signal_command): New function.
1589 (_initialize_infcmd): Add new queue-signal command.
1590
d36bf488
DE
15912014-09-13 Doug Evans <xdje42@gmail.com>
1592
1593 * linux-nat.c (wait_lwp): Add debugging printf.
1594 (linux_nat_wait_1): Ditto.
1595
f37f681c
PA
15962014-09-12 Pedro Alves <palves@redhat.com>
1597
1598 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
1599 (create_and_insert_solib_event_breakpoint): New functions.
1600 * breakpoint.h (create_and_insert_solib_event_breakpoint)
1601 (remove_solib_event_breakpoints_at_next_stop): New declarations.
1602 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
1603 (remove_dbx_link_breakpoint): Delete function.
1604 (insert_dbx_link_bpt_in_file): Use
1605 create_and_insert_solib_event_breakpoint instead of
1606 deprecated_insert_raw_breakpoint.
1607 (procfs_wait): Don't check whether we hit __dbx_link here.
1608 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
1609 here.
1610 * solib-irix.c (base_breakpoint): Delete global.
1611 (disable_break): Delete function.
1612 (enable_break): Use create_solib_event_breakpoint
1613 instead of deprecated_insert_raw_breakpoint.
1614 (irix_solib_handle_event): New function.
1615 (irix_solib_create_inferior_hook): Don't run the target or disable
1616 the mapping-complete breakpoint here.
1617 (_initialize_irix_solib): Install irix_solib_handle_event as
1618 so_ops->handle_event hook.
1619
9d9bf2df
EBM
16202014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1621 Ulrich Weigand  <uweigand@de.ibm.com>
1622
1623 PR tdep/17379
1624 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
1625 instead of read_memory_unsigned_integer.
1626
b006a80e
GB
16272014-09-12 Gary Benson <gbenson@redhat.com>
1628
1629 * nat/linux-waitpid.c: Include common-defs.h.
1630 [GDBSERVER]: Add FIXME comment.
1631 [!GDBSERVER]: Don't include defs.h or signal.h.
1632 (linux_debug) [!GDBSERVER]: Remove empty block.
1633
296b1496
GB
16342014-09-12 Gary Benson <gbenson@redhat.com>
1635
1636 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
1637 Don't include defs.h or server.h.
1638
53f81362
GB
16392014-09-12 Gary Benson <gbenson@redhat.com>
1640
1641 * nat/linux-btrace.c: Include common-defs.h.
1642 Don't include defs.h, server.h or gdbthread.h.
1643 * nat/linux-btrace.h (struct target_ops): New forward declaration.
1644
727605ca
GB
16452014-09-12 Gary Benson <gbenson@redhat.com>
1646
1647 * common/agent.c: Include common-defs.h.
1648 Don't include defs.h or server.h.
1649 * common/buffer.c: Likewise.
1650 * common/common-debug.c: Likewise.
1651 * common/common-utils.c: Likewise.
1652 * common/errors.c: Likewise.
1653 * common/filestuff.c: Likewise.
1654 * common/format.c: Likewise.
1655 * common/gdb_vecs.c: Likewise.
1656 * common/print-utils.c: Likewise.
1657 * common/ptid.c: Likewise.
1658 * common/rsp-low.c: Likewise.
1659 * common/signals.c: Likewise.
1660 * common/vec.c: Likewise.
1661 * common/xml-utils.c: Likewise.
1662 * nat/linux-osdata.c: Likewise.
1663 * nat/linux-procfs.c: Likewise.
1664 * nat/linux-ptrace.c: Likewise.
1665 * nat/mips-linux-watch.c: Likewise.
1666 * target/waitstatus.c: Likewise.
1667
361c8ade
GB
16682014-09-12 Tom Tromey <tromey@redhat.com>
1669 Gary Benson <gbenson@redhat.com>
1670
1671 * common/common-regcache.h: New file.
1672 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
1673 * regcache.h: Include common-regcache.h.
1674 (regcache_read_pc): Don't declare.
1675 * regcache.c (get_thread_regcache_for_ptid): New function.
1676 * nat/linux-btrace.c: Don't include regcache.h.
1677 Include common-regcache.h.
1678 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
1679
a01cbb49
TS
16802014-09-11 Thomas Schwinge <thomas@codesourcery.com>
1681
1682 * regcache.h (struct regset): Declare.
1683
98880d46
PA
16842014-09-11 Pedro Alves <palves@redhat.com>
1685
1686 PR gdb/17347
1687 * main.c: Include "infrun.h".
1688 (catch_command_errors, catch_command_errors_const): Wait for the
1689 foreground command to complete.
1690 * top.c (maybe_wait_sync_command_done): New function, factored out
1691 from ...
1692 (maybe_wait_sync_command_done): ... here.
1693 * top.h (maybe_wait_sync_command_done): New declaration.
1694
bd9269f7
GB
16952014-09-11 Tom Tromey <tromey@redhat.com>
1696 Gary Benson <gbenson@redhat.com>
1697
1698 * common/symbol.h: New file.
1699 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
1700 * minsyms.c (find_minimal_symbol_address): New function.
1701 * common/agent.c: Include common/symbol.h.
1702 [!GDBSERVER]: Don't include objfiles.h.
1703 (agent_look_up_symbols): Use find_minimal_symbol_address.
1704
f8c1d06b
GB
17052014-09-11 Gary Benson <gbenson@redhat.com>
1706
1707 * target/target.h (target_stop_ptid, target_continue_ptid):
1708 Declare.
1709 * target.c (target_stop_ptid, target_continue_ptid): New
1710 functions.
1711 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
1712 (agent_run_command): Always use target_stop_ptid and
1713 target_continue_ptid.
1714
721ec300
GB
17152014-09-11 Tom Tromey <tromey@redhat.com>
1716 Gary Benson <gbenson@redhat.com>
1717
1718 * target/target.h: New file.
1719 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
1720 * target.h: Include target/target.h.
1721 (target_read_memory, target_write_memory): Don't declare.
1722 * target.c (target_read_uint32): New function.
1723 * common/agent.c: Include target/target.h.
1724 [!GDBSERVER]: Don't include target.h.
1725 (helper_thread_id): Type changed to uint32_t.
1726 (agent_get_helper_thread_id): Use target_read_uint32.
1727 (agent_run_command): Always use target_read_memory and
1728 target_write_memory.
1729 (agent_capability): Type changed to uint32_t.
1730 (agent_capability_check): Use target_read_uint32.
1731
c5e92cca
GB
17322014-09-11 Gary Benson <gbenson@redhat.com>
1733
1734 * common/common-debug.h (show_debug_regs): Declare.
1735 * common/common-debug.c (show_debug_regs): Define.
1736 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
1737 all uses with show_debug_regs. Replace all uses that considered
1738 debug_hw_points as a multi-value integer with straight boolean
1739 uses.
1740 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
1741 with show_debug_regs.
1742 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
1743 all uses with show_debug_regs.
1744 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
1745 uses with show_debug_regs.
1746
eeef931a
UW
17472014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
1748
1749 * findvar.c (address_from_register): Handle targets requiring
1750 a special conversion routine even for plain pointer types.
1751
8efa9855
UW
17522014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
1753
1754 * rs6000-nat.c (exec_one_dummy_insn): Remove.
1755 (store_register): Do not call exec_one_dummy_insn.
1756
eb479039
JB
17572014-09-10 Joel Brobecker <brobecker@adacore.com>
1758
1759 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
1760 dereference it first. Use value_enclosing_type instead of
1761 value_type.
1762 (ada_array_length): Likewise.
1763
deede10c
JB
17642014-09-10 Joel Brobecker <brobecker@adacore.com>
1765
1766 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
1767 Adjust function implementation and documentation accordingly.
1768 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
1769 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
1770 Update call to ada_value_ptr_subscript.
1771
7828a5f5
JB
17722014-09-10 Joel Brobecker <brobecker@adacore.com>
1773
1774 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
1775 instead of VAL's type.
1776
35782f14
JB
17772014-09-10 Joel Brobecker <brobecker@adacore.com>
1778
1779 * amd64-linux-nat.c: Add <sys/uio.h> #include.
1780
d342a0da
DE
17812014-09-09 Doug Evans <xdje42@gmail.com>
1782
1783 PR guile/17367
1784 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
1785 last parameter to pkg-config, not first.
1786 * configure.ac: Pass --with-guile provided pkg-config path to
1787 GDB_GUILE_PROGRAM_NAMES.
1788 * configure: Regenerate.
1789
b4a3d263
GKB
17902014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
1791
1792 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
1793 Bertazi".
1794
6e466374
MR
17952014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
1796
1797 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
1798 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
1799 the list of sections determining GDB_OSABI_IRIX.
1800
a1ada89a
JH
18012014-09-09 James Hogan <james.hogan@imgtec.com>
1802
1803 * MAINTAINERS (Write After Approval): Add "James Hogan".
1804
86db008d
JH
18052014-09-09 James Hogan <james.hogan@imgtec.com>
1806
1807 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
1808
72fde3df
JB
18092014-09-09 Joel Brobecker <brobecker@adacore.com>
1810
1811 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
1812
92d8d229
DE
18132014-09-08 Doug Evans <xdje42@gmail.com>
1814
1815 PR 17247
1816 * guile.c: #include <signal.h>.
1817 (_initialize_guile): Block SIGCHLD while initializing Guile.
1818
1819 Replaces the following, which is reverted.
1820
1821 2014-07-26 Doug Evans <xdje42@gmail.com>
1822
1823 PR 17185
1824 * configure.ac: Add check for header gc/gc.h.
1825 Add check for function setenv.
1826 * configure: Regenerate.
1827 * config.in: Regenerate.
1828 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1829
d81412aa
DE
18302014-09-08 Doug Evans <xdje42@gmail.com>
1831
1832 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
1833 with named constant. Fix style of pointer comparison.
1834 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
1835
a9f116cb
GKB
18362014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
1837
1838 PR gdb/17035
1839 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
1840 decide whether we display the command on "show user".
1841 * cli/cli-script.c (show_user_1): Only verify cmdlines after
1842 printing command name.
1843 * cli/cli-decode.h (cli_user_command_p): Declare new function.
1844 * cli/cli-decode.c (cli_user_command_p): Create helper function
1845 to verify whether cmd_list_element is a user-defined command.
1846
c75bd3a2
JK
18472014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1848
1849 PR python/17355
1850 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
1851 Fix goto out of TRY_CATCH.
1852
faa42425 18532014-09-06 Doug Evans <xdje42@gmail.com>
1a52a81c 1854 Tom Tromey <tromey@redhat.com>
faa42425
DE
1855
1856 PR 15276
1857 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
1858 $_any_caller_matches.
1859 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
1860 * python/lib/gdb/function/caller_is.py: New file.
1861
0d41ba00
DE
18622014-09-06 Doug Evans <xdje42@gmail.com>
1863
1864 * infcmd.c (program_info): Fix typo.
1865
474ca4f6
SDJ
18662014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
1867
1868 PR gdb/17235
1869 * stap-probe.c (stap_parse_single_operand): Delete unused variable
1870 'number'. New variable 'has_digit'. Rewrite code to deal with
1871 subexpressions on SDT probes.
1872
ebf13736
PA
18732014-09-04 Pedro Alves <palves@redhat.com>
1874
1875 * c-exp.y (parse_number): Skip handling base-switching prefixes if
1876 the input is only one character long.
1877
eb0b0463
SDJ
18782014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
1879
1880 PR fortran/17237
1881 * f-valprint.c (f_val_print): Specify the correct print option to
1882 use when printing integer values.
1883
5ee44bfa
GB
18842014-09-04 Gary Benson <gbenson@redhat.com>
1885
1886 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
1887 Remove code to cope with LWPs wrapped as PIDs.
1888 Add assertions to ensure no wrapped LWPs are passed.
1889
4875ffdb
PA
18902014-09-04 Pedro Alves <palves@redhat.com>
1891
1892 * value.c (value_ranges_copy_adjusted): New function, factored out
1893 from ...
1894 (value_contents_copy_raw): ... here.
1895 (unpack_value_bits_as_long_1): Rename back to ...
1896 (unpack_bits_as_long): ... this. Remove 'original_value' and
1897 'result' parameters. Change return type to LONGEST.
1898 (unpack_value_bits_as_long): Delete.
1899 (unpack_value_field_as_long_1): Delete.
1900 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
1901 (unpack_value_bitfield): New function.
1902 (value_field_bitfield): Reimplement using unpack_value_bitfield.
1903 (value_fetch_lazy): Use unpack_value_bitfield.
1904 * value.h (unpack_value_bits_as_long): Delete declaration.
1905
5f3b99cf
SS
19062014-09-03 Sasha Smundak <asmundak@google.com>
1907
1908 * python/py-frame.c (frapy_read_register): New function.
1909
ac740bc7
JH
19102014-09-03 James Hogan <james.hogan@imgtec.com>
1911
1912 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
1913 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
1914
7d793aa9
SDJ
19152014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
1916
1917 PR python/16699
1918 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
1919 function.
1920 (add_cmd): Set "completer_handle_brkchars" to NULL.
1921 * cli/cli-decode.h (struct cmd_list_element)
1922 <completer_handle_brkchars>: New field.
1923 * command.h (completer_ftype_void): New typedef.
1924 (set_cmd_completer_handle_brkchars): New prototype.
1925 * completer.c (set_gdb_completion_word_break_characters): New
1926 function.
1927 (complete_line_internal): Call "completer_handle_brkchars"
1928 callback from command.
1929 * completer.h: Include "command.h".
1930 (set_gdb_completion_word_break_characters): New prototype.
1931 * python/py-cmd.c (cmdpy_completer_helper): New function.
1932 (cmdpy_completer_handle_brkchars): New function.
1933 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
1934 (cmdpy_init): Set completer_handle_brkchars to
1935 cmdpy_completer_handle_brkchars.
1936
97ea6506
GB
19372014-09-03 Gary Benson <gbenson@redhat.com>
1938
1939 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
1940 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
1941 Loop conditions changed to equivalent form.
1942 (struct x86_debug_reg_state): Updated dr_ref_count comment.
1943 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
1944 ALL_DEBUG_ADDRESS_REGISTERS.
1945
d1437815
JB
19462014-09-03 Joel Brobecker <brobecker@adacore.com>
1947
1948 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
1949 description fix.
1950
9b94fcf1
DE
19512014-09-02 Doug Evans <dje@google.com>
1952
1953 * typeprint.c (find_global_typedef): Fix comment.
1954
df7e5265
GB
19552014-09-02 Gary Benson <gbenson@redhat.com>
1956
1957 * i386-nat.h: Renamed as...
1958 * x86-nat.h: New file. All type, function and variable name
1959 prefixes changed from "i386_" to "x86_". All references updated.
1960 * i386-nat.c: Renamed as...
1961 * x86-nat.c: New file. All type, function and variable name
1962 prefixes changed from "i386_" to "x86_". All references updated.
1963 * common/i386-xstate.h: Renamed as...
1964 * common/x86-xstate.h: New file. All type, function and variable
1965 name prefixes changed from "i386_" to "x86_". All references
1966 updated.
1967 * nat/i386-cpuid.h: Renamed as...
1968 * nat/x86-cpuid.h: New file. All type, function and variable name
1969 prefixes changed from "i386_" to "x86_". All references updated.
1970 * nat/i386-gcc-cpuid.h: Renamed as...
1971 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
1972 name prefixes changed from "i386_" to "x86_". All references
1973 updated.
1974 * nat/i386-dregs.h: Renamed as...
1975 * nat/x86-dregs.h: New file. All type, function and variable name
1976 prefixes changed from "i386_" to "x86_". All references updated.
1977 * nat/i386-dregs.c: Renamed as...
1978 * nat/x86-dregs.c: New file. All type, function and variable name
1979 prefixes changed from "i386_" to "x86_". All references updated.
1980
1c3569d4
MR
19812014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
1982
1983 * varobj.c (_initialize_varobj): Move to the end of file.
1984
ff55e1b5
GB
19852014-08-29 Gary Benson <gbenson@redhat.com>
1986
1987 * common/common-exceptions.h: New file.
1988 * common/common-exceptions.c: Likewise.
1989 * Makefile.in (SFILES): Add common/common-exceptions.c.
1990 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
1991 (COMMON_OBS): Add common-exceptions.o.
1992 (common-exceptions.o): New rule.
1993 * exceptions.h (common-exceptions.h): Include.
1994 (gdb_setjmp.h): Do not include.
1995 (return_reason): Moved to common-exceptions.h.
1996 (enum return_reason): Likewise.
1997 (RETURN_MASK): Likewise.
1998 (typedef return_mask): Likewise.
1999 (enum errors): Likewise.
2000 (struct gdb_exception): Likewise.
2001 (exceptions_state_mc_init): Likewise.
2002 (exceptions_state_mc_action_iter): Likewise.
2003 (exceptions_state_mc_action_iter_1): Likewise.
2004 (TRY_CATCH): Likewise.
2005 (throw_exception): Likewise.
2006 (throw_verror): Likewise.
2007 (throw_vquit): Likewise.
2008 (throw_error): Likewise.
2009 (throw_quit): Likewise.
2010 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
2011 (enum catcher_action): Likewise.
2012 (struct catcher): Likewise.
2013 (current_catcher): Likewise.
2014 (catcher_list_size): Likewise.
2015 (exceptions_state_mc_init): Likewise.
2016 (catcher_pop): Likewise.
2017 (exceptions_state_mc): Likewise.
2018 (exceptions_state_mc_action_iter): Likewise.
2019 (exceptions_state_mc_action_iter_1): Likewise.
2020 (throw_exception): Likewise.
2021 (exception_messages): Likewise.
2022 (exception_messages_size): Likewise.
2023 (throw_it): Likewise.
2024 (throw_verror): Likewise.
2025 (throw_vquit): Likewise.
2026 (throw_error): Likewise.
2027 (throw_quit): Likewise.
2028 (prepare_to_throw_exception): New function.
2029
e9bcb658
GB
20302014-08-29 Gary Benson <gbenson@redhat.com>
2031
2032 * common/gdb_setjmp.h: New file.
2033 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
2034 * configure.ac: Move sigsetjmp check...
2035 * common/common.m4: ...here.
2036 * configure: Regenerate.
2037 * cp-support.c (SIGJMP_BUF): Delete.
2038 (SIGSETJMP): Likewise.
2039 (SIGLONGJMP): Likewise.
2040 * exceptions.h (gdb_setjmp.h): Include.
2041 (setjmp.h): Do not include.
2042 (EXCEPTIONS_SIGJMP_BUF): Delete.
2043 (EXCEPTIONS_SIGSETJMP): Likewise.
2044 (EXCEPTIONS_SIGLONGJMP): Likewise.
2045 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
2046 from gdb_setjmp.h.
2047 * exceptions.c: Likewise.
2048
e3180625
GB
20492014-08-29 Gary Benson <gbenson@redhat.com>
2050
2051 * cleanups.h: Moved to...
2052 * common/cleanups.h: New file.
2053 * cleanups.c: Moved to...
2054 * common/cleanups.c: New file. Include common-defs.h and
2055 cleanups.h. Do not include defs.h.
2056 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
2057 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
2058 (cleanups.o): New rule.
2059
e3d6ba5d
GB
20602014-08-29 Gary Benson <gbenson@redhat.com>
2061
2062 * common/errors.h (internal_warning): New declaration.
2063 (internal_vwarning): Likewise.
2064 * common/errors.c (internal_warning): New function.
2065 * utils.h (internal_warning): Don't declare.
2066 (internal_vwarning): Likewise.
2067 * utils.c (internal_warning): Removed.
2068
075c7033
GB
20692014-08-29 Gary Benson <gbenson@redhat.com>
2070
2071 * main.c (captured_main): Use warning during startup.
2072 Prefix startup warning messages with command name.
2073
91b35fd0
GB
20742014-08-29 Gary Benson <gbenson@redhat.com>
2075
2076 * main.c (captured_main): Handle usage errors with error.
2077
b1ec390e
GB
20782014-08-29 Gary Benson <gbenson@redhat.com>
2079
2080 * go32-nat.c (go32_create_inferior): Replace a fprintf/
2081 exit pair with a call to error. Wrap the message with _().
2082
fd0ef3dd
GB
20832014-08-29 Gary Benson <gbenson@redhat.com>
2084
2085 * main.c (captured_main): Replace a fprintf/exit
2086 pair with a call to error. Wrap the message with _().
2087
e0e6bcab
GB
20882014-08-29 Gary Benson <gbenson@redhat.com>
2089
2090 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
2091 pairs with calls to error. Wrap the message with _().
2092
0d2f5c07
GB
20932014-08-29 Gary Benson <gbenson@redhat.com>
2094
2095 * utils.c (vwarning): Protect calls to target_terminal_ours
2096 and wrap_here.
2097
5df43998
GB
20982014-08-29 Gary Benson <gbenson@redhat.com>
2099
2100 * exceptions.c (print_flush): Protect calls to
2101 target_terminal_ours and wrap_here.
2102
2437fd32
GB
21032014-08-29 Gary Benson <gbenson@redhat.com>
2104
2105 * utils.h (filtered_printing_initialized): New declaration.
2106 * utils.c (abort_with_message): New function.
2107 (internal_vproblem): Use abort_with_message for first level
2108 recursive internal problems, and if gdb_stderr is not set up.
2109 Protect calls to target_terminal_ours, begin_line and query.
2110
f1f58506
DE
21112014-08-28 Doug Evans <dje@google.com>
2112
2113 * symtab.c (in_prologue): Move definition to better spot.
2114 (skip_prologue_using_sal): Ditto.
2115
aab2f208
DE
21162014-08-28 Doug Evans <dje@google.com>
2117
2118 * symtab.c (find_function_start_sal): Move definition to better spot.
2119
6b65d1b6
YQ
21202014-08-28 Yao Qi <yao@codesourcery.com>
2121
2122 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
2123 found_stack_adjust in forward scan. Remove condition check
2124 on found_stack_adjust which is always true. Indent the code.
2125
a1b34d15
YQ
21262014-08-28 Yao Qi <yao@codesourcery.com>
2127
2128 * dwarf2read.c (dwarf_decode_lines): Update declaration.
2129 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
2130 (dwarf_decode_lines): Remove argument
2131 want_line_info. Remove condition check on want_line_info.
2132 Callers update.
2133
d5962de5
DE
21342014-08-27 Doug Evans <dje@google.com>
2135
2136 * dwarf2read.c (dwarf_record_line): Fix typo.
2137
9b139002
SDJ
21382014-08-27 Patrick Palka <patrick@parcs.ath.cx>
2139
2140 * target.h (struct target_ops::to_terminal_save_ours): Remove
2141 declaration.
2142 (target_terminal_save_ours): Remove macro.
2143 * target-delegates.c: Regenerate.
2144 * inf-child.c (inf_child_target): Don't set the nonexistent
2145 field to_terminal_save_ours.
2146 * inferior.h (child_terminal_save_ours): Remove declaration.
2147 * terminal.h (gdb_save_tty_state): New declaration.
2148 * inflow.c (child_terminal_save_ours): Rename to ...
2149 (gdb_save_tty_state): ... this.
2150 * tui/tui.c: Include terminal.h.
2151 (tui_enable): Use gdb_save_tty_state instead of
2152 target_terminal_save_ours.
2153 (tui_disable): Likewise.
2154
9debeba0
DE
21552014-08-25 Doug Evans <dje@google.com>
2156
2157 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
2158 Pass NULL instead of 0 for context pointer.
2159
428fc5fc
YQ
21602014-08-25 Yao Qi <yao@codesourcery.com>
2161
2162 * dwarf2read.c: Fix grammatical error.
2163
cdc07690
YQ
21642014-08-24 Yao Qi <yao@codesourcery.com>
2165
2166 * dwarf2read.c (scan_partial_symbols): Update comments.
2167 Rename argument 'need_pc' with 'set_addrmap'.
2168 (add_partial_namespace): Rename argument 'need_pc' with
2169 'set_addrmap'.
2170 (add_partial_module): Likewise.
2171 (add_partial_subprogram): Likewise. Update comments.
2172 (dwarf2_name): Fix typo.
2173
a05a36a5
DE
21742014-08-22 Doug Evans <dje@google.com>
2175
2176 PR 17276
2177 * dwarf2read.c (dwarf_record_line_p): New function.
2178 (dwarf_decode_lines_1): Ignore subsequent line number entries
2179 for the same line if any entry had a non-zero discriminator.
2180
252a6764
DE
21812014-08-22 Doug Evans <dje@google.com>
2182
2183 * buildsym.h (record_line_ftype): New typedef.
2184 (record_line): Use it.
2185 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
2186 (dwarf_decode_lines_1): Call them.
2187
510db052
YQ
21882014-08-22 Yao Qi <yao@codesourcery.com>
2189
2190 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
2191 (ctf_end): Remove code.
2192
22fd09ae
JK
21932014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2194
2195 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
2196 (linux_make_corefile_notes): call update_thread_list, protected against
2197 exceptions.
2198
656e8868
PA
21992014-08-21 Pedro Alves <palves@redhat.com>
2200
2201 * infcmd.c (attach_command): Remove comment.
2202
de589d04
WN
22032014-08-21 Bin Cheng <bin.cheng@arm.com>
2204
2205 * aarch64-linux-nat.c (dr_changed_t): Change the type from
2206 unsigned LONGEST to ULONGEST.
2207
2a31c623
PA
22082014-08-20 Pedro Alves <palves@redhat.com>
2209
2210 * Makefile.in (check-read1): New rule.
2211
d36430db
JB
22122014-08-20 Joel Brobecker <brobecker@adacore.com>
2213
2214 * value.c (value_from_contents_and_address): Strip resolved_type's
2215 typedef layers before checking its TYPE_DATA_LOCATION.
2216
000339af
PA
22172014-08-20 Pedro Alves <palves@redhat.com>
2218
2219 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
2220
5f52445b
YQ
22212014-08-20 Yao Qi <yao@codesourcery.com>
2222
2223 * amd64-tdep.c (amd64_classify): Add a blank line after the
2224 example. Move "*/" to a new line.
2225 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
2226 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
2227 * dwarf2read.c (psymtab_include_file_name): Likewise.
2228
9a0dc9e3
PA
22292014-08-19 Andrew Burgess <aburgess@broadcom.com>
2230 Pedro Alves <palves@redhat.com>
2231
2232 PR symtab/14604
2233 PR symtab/14605
2234 * ada-lang.c (coerce_unspec_val_to_type): Use
2235 value_contents_copy_raw.
2236 * ada-valprint.c (val_print_packed_array_elements): Adjust.
2237 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
2238 * cp-valprint.c (cp_print_value_fields): Let the common printing
2239 code handle optimized out values.
2240 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
2241 * d-valprint.c (dynamic_array_type): Use
2242 value_bits_any_optimized_out.
2243 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
2244 check_any_valid fields.
2245 (check_pieced_value_bits): Delete and inline ...
2246 (check_pieced_synthetic_pointer): ... here.
2247 (check_pieced_value_validity): Delete.
2248 (check_pieced_value_invalid): Delete.
2249 (pieced_value_funcs): Remove check_validity and check_any_valid
2250 fields.
2251 (read_pieced_value): Use mark_value_bits_optimized_out.
2252 (write_pieced_value): Switch to use
2253 mark_value_bytes_optimized_out.
2254 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
2255 of assuming the whole value is optimized out.
2256 * findvar.c (read_frame_register_value): Remove special handling
2257 of optimized out registers.
2258 (value_from_register): Use mark_value_bytes_optimized_out.
2259 * frame-unwind.c (frame_unwind_got_optimized): Use
2260 mark_value_bytes_optimized_out.
2261 * jv-valprint.c (java_value_print): Adjust.
2262 (java_print_value_fields): Let the common printing code handle
2263 optimized out values.
2264 * mips-tdep.c (mips_print_register): Remove special handling of
2265 optimized out registers.
2266 * opencl-lang.c (lval_func_check_validity): Delete.
2267 (lval_func_check_any_valid): Delete.
2268 (opencl_value_funcs): Remove check_validity and check_any_valid
2269 fields.
2270 * p-valprint.c (pascal_object_print_value_fields): Let the common
2271 printing code handle optimized out values.
2272 * stack.c (read_frame_arg): Remove special handling of optimized
2273 out values. Fetch both VAL and ENTRYVAL before comparing
2274 contents. Adjust to value_available_contents_eq rename.
2275 * valprint.c (valprint_check_validity)
2276 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
2277 (val_print_array_elements): Adjust.
2278 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
2279 (value_bits_any_optimized_out): New function.
2280 (value_entirely_covered_by_range_vector): New function, factored
2281 out from value_entirely_unavailable.
2282 (value_entirely_unavailable): Reimplement.
2283 (value_entirely_optimized_out): New function.
2284 (insert_into_bit_range_vector): New function, factored out from
2285 mark_value_bits_unavailable.
2286 (mark_value_bits_unavailable): Reimplement.
2287 (struct ranges_and_idx): New struct.
2288 (find_first_range_overlap_and_match): New function, factored out
2289 from value_available_contents_bits_eq.
2290 (value_available_contents_bits_eq): Rename to ...
2291 (value_contents_bits_eq): ... this. Check both unavailable
2292 contents and optimized out contents.
2293 (value_available_contents_eq): Rename to ...
2294 (value_contents_eq): ... this.
2295 (allocate_value_lazy): Remove reference to the old optimized_out
2296 boolean.
2297 (allocate_optimized_out_value): Use
2298 mark_value_bytes_optimized_out.
2299 (require_not_optimized_out): Adjust to check whether the
2300 optimized_out vec is empty.
2301 (ranges_copy_adjusted): New function, factored out from
2302 value_contents_copy_raw.
2303 (value_contents_copy_raw): Also copy the optimized out ranges.
2304 Assert the destination ranges aren't optimized out.
2305 (value_contents_copy): Update comment, remove call to
2306 require_not_optimized_out.
2307 (value_contents_equal): Adjust to check whether the optimized_out
2308 vec is empty.
2309 (set_value_optimized_out, value_optimized_out_const): Delete.
2310 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
2311 New functions.
2312 (value_entirely_optimized_out, value_bits_valid): Delete.
2313 (value_copy): Take a VEC copy of the 'optimized_out' field.
2314 (value_primitive_field): Remove special handling of optimized out.
2315 (value_fetch_lazy): Assert that lazy values have no unavailable
2316 regions. Use value_bits_any_optimized_out. Remove some special
2317 handling for optimized out values.
2318 * value.h: Add intro comment about <optimized out> and
2319 <unavailable>.
2320 (struct lval_funcs): Remove check_validity and check_any_valid
2321 fields.
2322 (set_value_optimized_out, value_optimized_out_const): Remove.
2323 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
2324 New declarations.
2325 (value_bits_any_optimized_out): New declaration.
2326 (value_bits_valid): Delete declaration.
2327 (value_available_contents_eq): Rename to ...
2328 (value_contents_eq): ... this, and extend comments.
2329
6694c411
JK
23302014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2331
2332 Fix -fsanitize=address on unreadable inferior strings.
2333 * valprint.c (val_print_string): Fix access before BUFFER.
2334
89a1c21a
SM
23352014-08-19 Simon Marchi <simon.marchi@ericsson.com>
2336
2337 * target.c (target_struct_size): Remove.
2338 (target_struct_allocsize): Remove.
2339 (DEFAULT_ALLOCSIZE): Remove.
2340 (target_ops_p): New typedef.
2341 (DEF_VEC_P (target_ops_p)): New vector type.
2342 (target_structs): Change type to VEC (target_ops_p).
2343 (add_target_with_completer): Replace "push" code by VEC_safe_push.
2344 (find_default_run_target): Rewrite for loop following changes to
2345 target_structs.
2346
cb417230
JB
23472014-08-19 Joel Brobecker <brobecker@adacore.com>
2348
2349 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
2350 Adjust code accordingly. Adjust function description comment.
2351
817e0957
YQ
23522014-08-19 Yao Qi <yao@codesourcery.com>
2353
2354 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
2355 types.
2356
2974be62
AM
23572014-08-19 Alan Modra <amodra@gmail.com>
2358
2359 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
2360 * config.in: Regenerate.
2361 * configure: Regenerate.
2362
34abf635
GB
23632014-08-19 Tom Tromey <tromey@redhat.com>
2364 Gary Benson <gbenson@redhat.com>
2365
2366 * common/common-debug.h: New file.
2367 * common/common-debug.c: Likewise.
2368 * debug.c: Likewise.
2369 * Makefile.in (SFILES): Add common/common-debug.c.
2370 (HFILES_NO_SRCDIR): Add common/common-debug.h.
2371 (COMMON_OBS): Add common-debug.o and debug.o.
2372 (common-debug.o): New rule.
2373 * common/common-defs.h: Include common-debug.h.
2374 * common/agent.c (debug_agent_printf): New function.
2375 (DEBUG_AGENT): Redefine.
2376 * nat/i386-dregs.c (debug_printf): Undefine.
2377
f6e94d78
GB
23782014-08-19 Gary Benson <gbenson@redhat.com>
2379
2380 * common/common-defs.h: Include print-utils.h.
2381 * utils.h: Do not include print-utils.h.
2382
9239eeab
GB
23832014-08-19 Tom Tromey <tromey@redhat.com>
2384 Gary Benson <gbenson@redhat.com>
2385
2386 * common/common-types.h: New file.
2387 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
2388 * common/common-defs.h: Include common-types.h.
2389 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
2390 (ULONGEST): Remove.
2391
ef87c8bb
GB
23922014-08-19 Tom Tromey <tromey@redhat.com>
2393 Gary Benson <gbenson@redhat.com>
2394
2395 * common/errors.h: New file.
2396 * common/errors.c: Likewise.
2397 * Makefile.in (SFILES): Add common/errors.c.
2398 (HFILES_NO_SRCDIR): Add common/errors.h.
2399 (COMMON_OBS): Add errors.o.
2400 (errors.o): New rule.
2401 * common/common-defs.h: Include errors.h.
2402 * utils.h (perror_with_name, error, verror, warning, vwarning):
2403 Don't declare.
2404 * common/common-utils.h: (malloc_failure, internal_error):
2405 Likewise.
2406
196a707b
GB
24072014-08-19 Gary Benson <gbenson@redhat.com>
2408
2409 * utils.c (internal_vproblem): Always print the message.
2410
ded4fc8f
DE
24112014-08-18 Doug Evans <dje@google.com>
2412
2413 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
2414
950c97d8
JB
24152014-08-18 Joel Brobecker <brobecker@adacore.com>
2416
2417 * ada-typeprint.c (type_is_full_subrange_of_target_type):
2418 Return 0 if TYPE is dynamic.
2419 (print_range): Add handling of dynamic ranges.
2420
3cdcd0ce
JB
24212014-08-18 Keven Boell <keven.boell@intel.com>
2422 Joel Brobecker <brobecker@adacore.com>
2423
2424 * gdbtypes.h (struct main_type): Add field "data_location".
2425 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
2426 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
2427 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
2428 a dynamic data location.
2429 (resolve_dynamic_type): Add DW_AT_data_location handling.
2430 (copy_recursive, copy_type): Copy the data_location information
2431 when present.
2432 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
2433 * value.c (value_from_contents_and_address): Add
2434 DW_AT_data_location handling.
2435
08412b07
JB
24362014-08-18 Keven Boell <keven.boell@intel.com>
2437 Joel Brobecker <brobecker@adacore.com>
2438
2439 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
2440 field "get_object_address".
2441 * dwarf2expr.c (execute_stack_op): Add handling for
2442 DW_OP_push_object_address.
2443 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
2444 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
2445 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
2446 (dwarf_expr_get_obj_addr): New function.
2447 (dwarf_expr_ctx_funcs): Add get_object_address field.
2448 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
2449 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
2450 (dwarf2_evaluate_property): Add parameter "address". Use it.
2451 (needs_get_obj_addr): New function.
2452 (needs_frame_ctx_funcs): Add get_object_address field.
2453 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
2454 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
2455 (resolve_dynamic_array): Likewise.
2456
84754697
JB
24572014-08-18 Joel Brobecker <brobecker@adacore.com>
2458
2459 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
2460 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
2461 fixed value for records and unions for which some GNAT encodings
2462 are present.
2463
da5c522f
JB
24642014-08-18 Joel Brobecker <brobecker@adacore.com>
2465
2466 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
2467 rewrite to avoid "else if" and "else" constructs. Should be
2468 a no-op in practice.
2469
0d72a7c3
JB
24702014-08-18 Joel Brobecker <brobecker@adacore.com>
2471
2472 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
2473 of lexical block.
2474
e66d4446
SC
24752014-08-15 Siva Chandra Reddy <sivachandra@google.com>
2476
2477 PR c++/17132
2478 * eval.c: Update all calls to find_overload_match.
2479 * valarith.c: Likewise.
2480 (value_user_defined_cpp_op, value_user_defined_op): New
2481 argument NOSIDE. Update all callers.
2482 * valops.c (find_overload_match): New argument NOSIDE.
2483 * value.h (find_overload_match): Update signature.
2484
940df408
SC
24852014-08-15 Siva Chandra Reddy <sivachandra@google.com>
2486
2487 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
2488 'items' methods instead of 'iteritems' method on dictionaries.
2489
699ca60a
DE
24902014-08-15 Doug Evans <dje@google.com>
2491
2492 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
2493 closer to use.
2494
37780ee5
DE
24952014-08-15 Doug Evans <dje@google.com>
2496
2497 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
2498
0ad93d4f
DE
24992014-08-15 Doug Evans <dje@google.com>
2500
2501 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
2502
20d8c372
DE
25032014-08-15 Doug Evans <dje@google.com>
2504
2505 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
2506 unused.
2507
cb039ba4
EZ
25082014-08-15 Eli Zaretskii <eliz@gnu.org>
2509
2510 * dcache.h: Include target.h, to avoid compile time warnings.
2511
eb7a547a
JB
25122014-08-15 Joel Brobecker <brobecker@adacore.com>
2513
2514 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
2515 frame_info" partial declaration.
2516 * gdbarch.h: Regenerate.
2517
783cecc8
YQ
25182014-08-15 Yao Qi <yao@codesourcery.com>
2519
2520 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
2521 Add parameter 'decode_for_pst_p'. Callers update.
2522
65c749e7
YQ
25232014-08-13 Yao Qi <yao@codesourcery.com>
2524
2525 PR build/17104
2526 * configure.ac: Use local variable 'pos'.
2527 * configure: Regenerated.
2528
d769e349
DE
25292014-08-11 Doug Evans <dje@google.com>
2530
2531 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
2532 message, it is redundant with "Reading symbols from ..." message.
2533
24f1235e
DE
25342014-08-10 Doug Evans <xdje42@gmail.com>
2535
2536 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
2537
dcd2e6ef
YQ
25382014-08-09 Yao Qi <yao@codesourcery.com>
2539
2540 PR remote/9053
2541 * remote.c (remote_xfer_partial): Remove dead code.
2542
070bdf0b
AA
25432014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2544
2545 * ia64-linux-tdep.c: Include "regset.h".
2546 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
2547 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
2548 (ia64_linux_supply_fpregset): New function.
2549 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
2550 (ia64_linux_regset_from_core_section): New function.
2551 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
2552 method.
2553
08f9f542
AA
25542014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2555
2556 * m68klinux-tdep.c: Include "regset.h".
2557 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
2558 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
2559 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
2560 (m68k_linux_regset_from_core_section): New function.
2561 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
2562 method.
2563
8f1cee41
AA
25642014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2565
2566 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
2567 function. Move logic to...
2568 (tilegx_linux_regmap): ... this new register map.
2569 (tilegx_linux_regset): Refer to register map, replace supply
2570 method by regcache_supply_regset, and add collect method.
2571 * tilegx-tdep.h (enum tilegx_regnum): New enum value
2572 TILEGX_FIRST_EASY_REGNUM.
2573
c5741217
AA
25742014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2575
2576 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
2577 that calls regcache_supply_regset and handles the EPC register
2578 separately. Move main logic to...
2579 (score7_linux_gregmap): ... this new register map.
2580 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
2581 (score7_linux_gregset): Refer to register map. Add collect method.
2582 (score7_linux_regset_from_core_section): Replace
2583 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
2584 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
2585 (struct regset): Delete unused forward declaraction.
2586 (struct pt_regs): Delete structure definition.
2587 (elf_gregset_t): Delete typedef.
2588
81580573
AA
25892014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2590
2591 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
2592 (nios2_core_regset): Add collect method.
2593
ba199d7d
AA
25942014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2595
2596 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
2597 platform-independent and don't write to read-only input buffer.
2598 (m32r_linux_collect_gregset): New function.
2599 (m32r_linux_gregset): Add collect method.
2600
0006a9da
AA
26012014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2602
2603 * hppa-linux-tdep.c (greg_map): Rename to...
2604 (hppa_linux_gregmap): ... this. Also convert to
2605 regcache_map_entry format.
2606 (hppa_linux_supply_regset): Delete function.
2607 (hppa_linux_supply_fpregset): Delete function. Move logic to...
2608 (hppa_linux_fpregmap): ... this new register map.
2609 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
2610 register map, replace supply method by regcache_supply_regset, and
2611 add collect method regcache_collect_regset.
2612
901e1b23
AA
26132014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2614
2615 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
2616 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
2617 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
2618 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
2619 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
2620 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
2621 (frv_linux_supply_gregset): Replace main logic by call to
2622 regcache_supply_regset, but keep clearing gr32-gr63.
2623 (frv_linux_supply_fpregset): Delete function.
2624 (frv_linux_gregset): Refer to appropriate register map and add
2625 regcache_collect_regset as the collect method.
2626 (frv_linux_fpregset): Likewise. Also exchange the supply method
2627 by regcache_supply_regset.
2628
1d6e7555
AA
26292014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2630
2631 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
2632 by call to alpha_supply_int_regs.
2633 (alpha_linux_collect_gregset): New function.
2634 (alpha_linux_supply_fpregset): Replace logic by call to
2635 alpha_supply_fp_regs.
2636 (alpha_linux_collect_fpregset): New function.
2637 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
2638
d4d793bf
AA
26392014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2640
2641 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
2642 by call to regcache_collect_regset.
2643 (supply_gregset, supply_fpregset): Call regcache_supply_regset
2644 instead of aarch64_linux_supply_gregset/_fpregset.
2645 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
2646 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
2647 header file instead.
2648 (aarch64_linux_supply_gregset, supply_gregset_from_core)
2649 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
2650 functions. Move logic to ...
2651 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
2652 register maps.
2653 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
2654 refer to new register maps, replace *_regset_from_core by
2655 regcache_supply_regset, and also use regcache_collect_regset.
2656 * aarch64-linux-tdep.h: Include "regset.h".
2657 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
2658 Delete prototypes.
2659 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
2660 macros, moved from C source file.
2661 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
2662 variable declarations.
2663
99b7da5d
AA
26642014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2665
2666 * s390-linux-nat.c: Include "regset.h".
2667 (regmap_gregset): Delete macro.
2668 (s390_64_regmap_gregset): New register map for
2669 regcache_supply/_collect_regset.
2670 (s390_64_gregset): New regset.
2671 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
2672 (regmap_fpregset): Delete macro.
2673 (s390_native_supply, s390_native_collect): Delete functions.
2674 (supply_gregset, fill_gregset): Replace s390-specific regmap
2675 handling by a call to regcache_supply/_collect_regset.
2676 (supply_fpregset, fill_fpregset): Call regcache_supply/
2677 _collect_regset instead of s390_native_supply/_collect.
2678 (fetch_regset, store_regset): Likewise. Also change the last
2679 parameter to a regset instead of a regmap.
2680 (s390_linux_fetch_inferior_registers)
2681 (390_linux_store_inferior_registers): Adjust last parameter in
2682 calls to fetch_regset and store_regset.
2683 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
2684 (s390_gregmap): ... this. Also make static const and convert to
2685 regcache_map_entry format.
2686 (s390x_regmap_gregset): Delete.
2687 (s390_regmap_fpregset): Rename to...
2688 (s390_fpregmap): ... this. Make static const and convert to
2689 regcache_map_entry format.
2690 (s390_regmap_upper, s390_regmap_last_break)
2691 (s390x_regmap_last_break, s390_regmap_system_call)
2692 (s390_regmap_tdb): Likewise.
2693 (s390_supply_regset, s390_collect_regset): Remove functions.
2694 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
2695 s390_supply_regset.
2696 (s390_gregset, s390_fpregset, s390_upper_regset)
2697 (s390_last_break_regset, s390x_last_break_regset)
2698 (s390_system_call_regset, s390_tdb_regset): Make global and
2699 replace s390_supply/_collect_regset by regcache_supply/
2700 _collect_regset.
2701 (s390x_gregset): Delete.
2702 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
2703 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
2704 (s390_regmap_fpregset, s390_regmap_last_break)
2705 (s390x_regmap_last_break, s390_regmap_system_call)
2706 (s390_regmap_tdb): Delete global variable declarations.
2707 (s390_gregset, s390_fpregset, s390_last_break_regset)
2708 (s390x_last_break_regset, s390_system_call_regset)
2709 (s390_tdb_regset): New global variable declarations.
2710
0b309272
AA
27112014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2712
2713 * regcache.c: Include "regset.h".
2714 (regcache_transfer_regset): New local function.
2715 (regcache_supply_regset, regcache_collect_regset): New functions.
2716 * regcache.h (struct regcache_map_entry): New structure.
2717 (REGCACHE_MAP_SKIP): New enum value.
2718 (regcache_supply_regset, regcache_collect_regset): New prototypes.
2719
7fefa8d7
AA
27202014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2721
2722 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
2723 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
2724 (ppc_linux_collect_gregset ): Likewise.
2725 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
2726 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
2727 (ppc_collect_vrregset): Likewise.
2728 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
2729 Likewise.
2730
96c4f946
YQ
27312014-08-07 Yao Qi <yao@codesourcery.com>
2732
2733 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
2734 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
2735 * remote.c (remote_read_bytes): Likewise.
2736
fffbe6a8
YQ
27372014-08-07 Yao Qi <yao@codesourcery.com>
2738
2739 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
2740
5ee8a82c
YQ
27412014-08-07 Yao Qi <yao@codesourcery.com>
2742
2743 PR remote/17230
2744 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
2745 TARGET_XFER_OK instead of 0.
2746
bb974a24
GB
27472014-08-07 Gary Benson <gbenson@redhat.com>
2748
2749 * common/common-defs.h: Include errno.h.
2750 * defs.h: Do not include errno.h.
2751 * ada-typeprint.c: Likewise.
2752 * c-typeprint.c: Likewise.
2753 * core-regset.c: Likewise.
2754 * corefile.c: Likewise.
2755 * corelow.c: Likewise.
2756 * event-loop.c: Likewise.
2757 * f-typeprint.c: Likewise.
2758 * gnu-nat.c: Likewise.
2759 * go32-nat.c: Likewise.
2760 * i386gnu-nat.c: Likewise.
2761 * m2-typeprint.c: Likewise.
2762 * nat/linux-btrace.c: Likewise.
2763 * p-typeprint.c: Likewise.
2764 * procfs.c: Likewise.
2765 * remote-sim.c: Likewise.
2766 * rs6000-nat.c: Likewise.
2767 * target.c: Likewise.
2768 * typeprint.c: Likewise.
2769 * ui-file.c: Likewise.
2770 * valops.c: Likewise.
2771 * valprint.c: Likewise.
2772
6d3d12eb
GB
27732014-08-07 Gary Benson <gbenson@redhat.com>
2774
2775 * common/common-defs.h: Include string.h.
2776 * aarch64-tdep.c: Do not include string.h.
2777 * ada-exp.y: Likewise.
2778 * ada-lang.c: Likewise.
2779 * ada-lex.l: Likewise.
2780 * ada-typeprint.c: Likewise.
2781 * ada-valprint.c: Likewise.
2782 * aix-thread.c: Likewise.
2783 * alpha-linux-tdep.c: Likewise.
2784 * alpha-mdebug-tdep.c: Likewise.
2785 * alpha-nat.c: Likewise.
2786 * alpha-osf1-tdep.c: Likewise.
2787 * alpha-tdep.c: Likewise.
2788 * alphanbsd-tdep.c: Likewise.
2789 * amd64-dicos-tdep.c: Likewise.
2790 * amd64-linux-tdep.c: Likewise.
2791 * amd64-nat.c: Likewise.
2792 * amd64-sol2-tdep.c: Likewise.
2793 * amd64fbsd-tdep.c: Likewise.
2794 * amd64obsd-tdep.c: Likewise.
2795 * arch-utils.c: Likewise.
2796 * arm-linux-nat.c: Likewise.
2797 * arm-linux-tdep.c: Likewise.
2798 * arm-tdep.c: Likewise.
2799 * arm-wince-tdep.c: Likewise.
2800 * armbsd-tdep.c: Likewise.
2801 * armnbsd-nat.c: Likewise.
2802 * armnbsd-tdep.c: Likewise.
2803 * armobsd-tdep.c: Likewise.
2804 * avr-tdep.c: Likewise.
2805 * ax-gdb.c: Likewise.
2806 * ax-general.c: Likewise.
2807 * bcache.c: Likewise.
2808 * bfin-tdep.c: Likewise.
2809 * breakpoint.c: Likewise.
2810 * build-id.c: Likewise.
2811 * buildsym.c: Likewise.
2812 * c-exp.y: Likewise.
2813 * c-lang.c: Likewise.
2814 * c-typeprint.c: Likewise.
2815 * c-valprint.c: Likewise.
2816 * charset.c: Likewise.
2817 * cli-out.c: Likewise.
2818 * cli/cli-cmds.c: Likewise.
2819 * cli/cli-decode.c: Likewise.
2820 * cli/cli-dump.c: Likewise.
2821 * cli/cli-interp.c: Likewise.
2822 * cli/cli-logging.c: Likewise.
2823 * cli/cli-script.c: Likewise.
2824 * cli/cli-setshow.c: Likewise.
2825 * cli/cli-utils.c: Likewise.
2826 * coffread.c: Likewise.
2827 * common/agent.c: Likewise.
2828 * common/buffer.c: Likewise.
2829 * common/buffer.h: Likewise.
2830 * common/common-utils.c: Likewise.
2831 * common/filestuff.c: Likewise.
2832 * common/filestuff.c: Likewise.
2833 * common/format.c: Likewise.
2834 * common/print-utils.c: Likewise.
2835 * common/rsp-low.c: Likewise.
2836 * common/signals.c: Likewise.
2837 * common/vec.h: Likewise.
2838 * common/xml-utils.c: Likewise.
2839 * core-regset.c: Likewise.
2840 * corefile.c: Likewise.
2841 * corelow.c: Likewise.
2842 * cp-abi.c: Likewise.
2843 * cp-name-parser.y: Likewise.
2844 * cp-support.c: Likewise.
2845 * cp-valprint.c: Likewise.
2846 * cris-tdep.c: Likewise.
2847 * d-exp.y: Likewise.
2848 * darwin-nat.c: Likewise.
2849 * dbxread.c: Likewise.
2850 * dcache.c: Likewise.
2851 * demangle.c: Likewise.
2852 * dicos-tdep.c: Likewise.
2853 * disasm.c: Likewise.
2854 * doublest.c: Likewise.
2855 * dsrec.c: Likewise.
2856 * dummy-frame.c: Likewise.
2857 * dwarf2-frame.c: Likewise.
2858 * dwarf2loc.c: Likewise.
2859 * dwarf2read.c: Likewise.
2860 * elfread.c: Likewise.
2861 * environ.c: Likewise.
2862 * eval.c: Likewise.
2863 * event-loop.c: Likewise.
2864 * exceptions.c: Likewise.
2865 * exec.c: Likewise.
2866 * expprint.c: Likewise.
2867 * f-exp.y: Likewise.
2868 * f-lang.c: Likewise.
2869 * f-typeprint.c: Likewise.
2870 * f-valprint.c: Likewise.
2871 * fbsd-nat.c: Likewise.
2872 * findcmd.c: Likewise.
2873 * findvar.c: Likewise.
2874 * fork-child.c: Likewise.
2875 * frame.c: Likewise.
2876 * frv-linux-tdep.c: Likewise.
2877 * frv-tdep.c: Likewise.
2878 * gdb.c: Likewise.
2879 * gdb_bfd.c: Likewise.
2880 * gdbarch.c: Likewise.
2881 * gdbarch.sh: Likewise.
2882 * gdbtypes.c: Likewise.
2883 * gnu-nat.c: Likewise.
2884 * gnu-v2-abi.c: Likewise.
2885 * gnu-v3-abi.c: Likewise.
2886 * go-exp.y: Likewise.
2887 * go-lang.c: Likewise.
2888 * go32-nat.c: Likewise.
2889 * guile/guile.c: Likewise.
2890 * guile/scm-auto-load.c: Likewise.
2891 * hppa-hpux-tdep.c: Likewise.
2892 * hppa-linux-nat.c: Likewise.
2893 * hppanbsd-tdep.c: Likewise.
2894 * hppaobsd-tdep.c: Likewise.
2895 * i386-cygwin-tdep.c: Likewise.
2896 * i386-dicos-tdep.c: Likewise.
2897 * i386-linux-tdep.c: Likewise.
2898 * i386-nto-tdep.c: Likewise.
2899 * i386-sol2-tdep.c: Likewise.
2900 * i386-tdep.c: Likewise.
2901 * i386bsd-tdep.c: Likewise.
2902 * i386gnu-nat.c: Likewise.
2903 * i386nbsd-tdep.c: Likewise.
2904 * i386obsd-tdep.c: Likewise.
2905 * i387-tdep.c: Likewise.
2906 * ia64-libunwind-tdep.c: Likewise.
2907 * ia64-linux-nat.c: Likewise.
2908 * inf-child.c: Likewise.
2909 * inf-ptrace.c: Likewise.
2910 * inf-ttrace.c: Likewise.
2911 * infcall.c: Likewise.
2912 * infcmd.c: Likewise.
2913 * inflow.c: Likewise.
2914 * infrun.c: Likewise.
2915 * interps.c: Likewise.
2916 * iq2000-tdep.c: Likewise.
2917 * irix5-nat.c: Likewise.
2918 * jv-exp.y: Likewise.
2919 * jv-lang.c: Likewise.
2920 * jv-typeprint.c: Likewise.
2921 * jv-valprint.c: Likewise.
2922 * language.c: Likewise.
2923 * linux-fork.c: Likewise.
2924 * linux-nat.c: Likewise.
2925 * lm32-tdep.c: Likewise.
2926 * m2-exp.y: Likewise.
2927 * m2-typeprint.c: Likewise.
2928 * m32c-tdep.c: Likewise.
2929 * m32r-linux-nat.c: Likewise.
2930 * m32r-linux-tdep.c: Likewise.
2931 * m32r-rom.c: Likewise.
2932 * m32r-tdep.c: Likewise.
2933 * m68hc11-tdep.c: Likewise.
2934 * m68k-tdep.c: Likewise.
2935 * m68kbsd-tdep.c: Likewise.
2936 * m68klinux-nat.c: Likewise.
2937 * m68klinux-tdep.c: Likewise.
2938 * m88k-tdep.c: Likewise.
2939 * machoread.c: Likewise.
2940 * macrocmd.c: Likewise.
2941 * main.c: Likewise.
2942 * mdebugread.c: Likewise.
2943 * mem-break.c: Likewise.
2944 * memattr.c: Likewise.
2945 * memory-map.c: Likewise.
2946 * mep-tdep.c: Likewise.
2947 * mi/mi-cmd-break.c: Likewise.
2948 * mi/mi-cmd-disas.c: Likewise.
2949 * mi/mi-cmd-env.c: Likewise.
2950 * mi/mi-cmd-stack.c: Likewise.
2951 * mi/mi-cmd-var.c: Likewise.
2952 * mi/mi-cmds.c: Likewise.
2953 * mi/mi-console.c: Likewise.
2954 * mi/mi-getopt.c: Likewise.
2955 * mi/mi-interp.c: Likewise.
2956 * mi/mi-main.c: Likewise.
2957 * mi/mi-parse.c: Likewise.
2958 * microblaze-rom.c: Likewise.
2959 * microblaze-tdep.c: Likewise.
2960 * mingw-hdep.c: Likewise.
2961 * minidebug.c: Likewise.
2962 * minsyms.c: Likewise.
2963 * mips-irix-tdep.c: Likewise.
2964 * mips-linux-tdep.c: Likewise.
2965 * mips-tdep.c: Likewise.
2966 * mips64obsd-tdep.c: Likewise.
2967 * mipsnbsd-tdep.c: Likewise.
2968 * mipsread.c: Likewise.
2969 * mn10300-linux-tdep.c: Likewise.
2970 * mn10300-tdep.c: Likewise.
2971 * monitor.c: Likewise.
2972 * moxie-tdep.c: Likewise.
2973 * mt-tdep.c: Likewise.
2974 * nat/linux-btrace.c: Likewise.
2975 * nat/linux-osdata.c: Likewise.
2976 * nat/linux-procfs.c: Likewise.
2977 * nat/linux-ptrace.c: Likewise.
2978 * nat/linux-waitpid.c: Likewise.
2979 * nbsd-tdep.c: Likewise.
2980 * nios2-linux-tdep.c: Likewise.
2981 * nto-procfs.c: Likewise.
2982 * nto-tdep.c: Likewise.
2983 * objc-lang.c: Likewise.
2984 * objfiles.c: Likewise.
2985 * opencl-lang.c: Likewise.
2986 * osabi.c: Likewise.
2987 * osdata.c: Likewise.
2988 * p-exp.y: Likewise.
2989 * p-lang.c: Likewise.
2990 * p-typeprint.c: Likewise.
2991 * parse.c: Likewise.
2992 * posix-hdep.c: Likewise.
2993 * ppc-linux-nat.c: Likewise.
2994 * ppc-sysv-tdep.c: Likewise.
2995 * ppcfbsd-tdep.c: Likewise.
2996 * ppcnbsd-tdep.c: Likewise.
2997 * ppcobsd-tdep.c: Likewise.
2998 * printcmd.c: Likewise.
2999 * procfs.c: Likewise.
3000 * prologue-value.c: Likewise.
3001 * python/py-auto-load.c: Likewise.
3002 * python/py-gdb-readline.c: Likewise.
3003 * ravenscar-thread.c: Likewise.
3004 * regcache.c: Likewise.
3005 * registry.c: Likewise.
3006 * remote-fileio.c: Likewise.
3007 * remote-m32r-sdi.c: Likewise.
3008 * remote-mips.c: Likewise.
3009 * remote-notif.c: Likewise.
3010 * remote-sim.c: Likewise.
3011 * remote.c: Likewise.
3012 * reverse.c: Likewise.
3013 * rs6000-aix-tdep.c: Likewise.
3014 * ser-base.c: Likewise.
3015 * ser-go32.c: Likewise.
3016 * ser-mingw.c: Likewise.
3017 * ser-pipe.c: Likewise.
3018 * ser-tcp.c: Likewise.
3019 * ser-unix.c: Likewise.
3020 * serial.c: Likewise.
3021 * sh-tdep.c: Likewise.
3022 * sh64-tdep.c: Likewise.
3023 * shnbsd-tdep.c: Likewise.
3024 * skip.c: Likewise.
3025 * sol-thread.c: Likewise.
3026 * solib-dsbt.c: Likewise.
3027 * solib-frv.c: Likewise.
3028 * solib-osf.c: Likewise.
3029 * solib-som.c: Likewise.
3030 * solib-spu.c: Likewise.
3031 * solib-target.c: Likewise.
3032 * solib.c: Likewise.
3033 * somread.c: Likewise.
3034 * source.c: Likewise.
3035 * sparc-nat.c: Likewise.
3036 * sparc-sol2-tdep.c: Likewise.
3037 * sparc-tdep.c: Likewise.
3038 * sparc64-tdep.c: Likewise.
3039 * sparc64fbsd-tdep.c: Likewise.
3040 * sparc64nbsd-tdep.c: Likewise.
3041 * sparcnbsd-tdep.c: Likewise.
3042 * spu-linux-nat.c: Likewise.
3043 * spu-multiarch.c: Likewise.
3044 * spu-tdep.c: Likewise.
3045 * stabsread.c: Likewise.
3046 * stack.c: Likewise.
3047 * std-regs.c: Likewise.
3048 * symfile.c: Likewise.
3049 * symmisc.c: Likewise.
3050 * symtab.c: Likewise.
3051 * target.c: Likewise.
3052 * thread.c: Likewise.
3053 * tilegx-linux-nat.c: Likewise.
3054 * tilegx-tdep.c: Likewise.
3055 * top.c: Likewise.
3056 * tracepoint.c: Likewise.
3057 * tui/tui-command.c: Likewise.
3058 * tui/tui-data.c: Likewise.
3059 * tui/tui-disasm.c: Likewise.
3060 * tui/tui-file.c: Likewise.
3061 * tui/tui-layout.c: Likewise.
3062 * tui/tui-out.c: Likewise.
3063 * tui/tui-regs.c: Likewise.
3064 * tui/tui-source.c: Likewise.
3065 * tui/tui-stack.c: Likewise.
3066 * tui/tui-win.c: Likewise.
3067 * tui/tui-windata.c: Likewise.
3068 * tui/tui-winsource.c: Likewise.
3069 * typeprint.c: Likewise.
3070 * ui-file.c: Likewise.
3071 * ui-out.c: Likewise.
3072 * user-regs.c: Likewise.
3073 * utils.c: Likewise.
3074 * v850-tdep.c: Likewise.
3075 * valarith.c: Likewise.
3076 * valops.c: Likewise.
3077 * valprint.c: Likewise.
3078 * value.c: Likewise.
3079 * varobj.c: Likewise.
3080 * vax-tdep.c: Likewise.
3081 * vaxnbsd-tdep.c: Likewise.
3082 * vaxobsd-tdep.c: Likewise.
3083 * windows-nat.c: Likewise.
3084 * xcoffread.c: Likewise.
3085 * xml-support.c: Likewise.
3086 * xstormy16-tdep.c: Likewise.
3087 * xtensa-linux-nat.c: Likewise.
3088
dccbb609
GB
30892014-08-07 Gary Benson <gbenson@redhat.com>
3090
3091 * common/common-defs.h: Include gdb_assert.h.
3092 * aarch64-tdep.c: Do not include gdb_assert.h.
3093 * addrmap.c: Likewise.
3094 * aix-thread.c: Likewise.
3095 * alpha-linux-tdep.c: Likewise.
3096 * alpha-mdebug-tdep.c: Likewise.
3097 * alphanbsd-tdep.c: Likewise.
3098 * amd64-nat.c: Likewise.
3099 * amd64-tdep.c: Likewise.
3100 * amd64bsd-nat.c: Likewise.
3101 * amd64fbsd-nat.c: Likewise.
3102 * amd64fbsd-tdep.c: Likewise.
3103 * amd64nbsd-nat.c: Likewise.
3104 * amd64nbsd-tdep.c: Likewise.
3105 * amd64obsd-nat.c: Likewise.
3106 * amd64obsd-tdep.c: Likewise.
3107 * arch-utils.c: Likewise.
3108 * arm-tdep.c: Likewise.
3109 * armbsd-tdep.c: Likewise.
3110 * auxv.c: Likewise.
3111 * bcache.c: Likewise.
3112 * bfin-tdep.c: Likewise.
3113 * blockframe.c: Likewise.
3114 * breakpoint.c: Likewise.
3115 * bsd-kvm.c: Likewise.
3116 * bsd-uthread.c: Likewise.
3117 * buildsym.c: Likewise.
3118 * c-exp.y: Likewise.
3119 * c-lang.c: Likewise.
3120 * charset.c: Likewise.
3121 * cleanups.c: Likewise.
3122 * cli-out.c: Likewise.
3123 * cli/cli-decode.c: Likewise.
3124 * cli/cli-dump.c: Likewise.
3125 * cli/cli-logging.c: Likewise.
3126 * cli/cli-script.c: Likewise.
3127 * cli/cli-utils.c: Likewise.
3128 * coffread.c: Likewise.
3129 * common/common-utils.c: Likewise.
3130 * common/queue.h: Likewise.
3131 * common/signals.c: Likewise.
3132 * common/vec.h: Likewise.
3133 * complaints.c: Likewise.
3134 * completer.c: Likewise.
3135 * corelow.c: Likewise.
3136 * cp-abi.c: Likewise.
3137 * cp-name-parser.y: Likewise.
3138 * cp-namespace.c: Likewise.
3139 * cp-support.c: Likewise.
3140 * cris-tdep.c: Likewise.
3141 * dbxread.c: Likewise.
3142 * dictionary.c: Likewise.
3143 * doublest.c: Likewise.
3144 * dsrec.c: Likewise.
3145 * dummy-frame.c: Likewise.
3146 * dwarf2-frame-tailcall.c: Likewise.
3147 * dwarf2-frame.c: Likewise.
3148 * dwarf2expr.c: Likewise.
3149 * dwarf2loc.c: Likewise.
3150 * dwarf2read.c: Likewise.
3151 * eval.c: Likewise.
3152 * event-loop.c: Likewise.
3153 * exceptions.c: Likewise.
3154 * expprint.c: Likewise.
3155 * f-valprint.c: Likewise.
3156 * fbsd-nat.c: Likewise.
3157 * findvar.c: Likewise.
3158 * frame-unwind.c: Likewise.
3159 * frame.c: Likewise.
3160 * frv-tdep.c: Likewise.
3161 * gcore.c: Likewise.
3162 * gdb-dlfcn.c: Likewise.
3163 * gdb_bfd.c: Likewise.
3164 * gdbarch.c: Likewise.
3165 * gdbarch.sh: Likewise.
3166 * gdbtypes.c: Likewise.
3167 * gnu-nat.c: Likewise.
3168 * gnu-v3-abi.c: Likewise.
3169 * go-lang.c: Likewise.
3170 * guile/scm-exception.c: Likewise.
3171 * guile/scm-gsmob.c: Likewise.
3172 * guile/scm-lazy-string.c: Likewise.
3173 * guile/scm-math.c: Likewise.
3174 * guile/scm-pretty-print.c: Likewise.
3175 * guile/scm-safe-call.c: Likewise.
3176 * guile/scm-utils.c: Likewise.
3177 * guile/scm-value.c: Likewise.
3178 * h8300-tdep.c: Likewise.
3179 * hppa-hpux-nat.c: Likewise.
3180 * hppa-tdep.c: Likewise.
3181 * hppanbsd-tdep.c: Likewise.
3182 * hppaobsd-tdep.c: Likewise.
3183 * i386-darwin-nat.c: Likewise.
3184 * i386-darwin-tdep.c: Likewise.
3185 * i386-nto-tdep.c: Likewise.
3186 * i386-tdep.c: Likewise.
3187 * i386bsd-nat.c: Likewise.
3188 * i386fbsd-tdep.c: Likewise.
3189 * i386gnu-nat.c: Likewise.
3190 * i386nbsd-tdep.c: Likewise.
3191 * i386obsd-tdep.c: Likewise.
3192 * i387-tdep.c: Likewise.
3193 * ia64-libunwind-tdep.c: Likewise.
3194 * ia64-tdep.c: Likewise.
3195 * inf-ptrace.c: Likewise.
3196 * inf-ttrace.c: Likewise.
3197 * infcall.c: Likewise.
3198 * infcmd.c: Likewise.
3199 * infrun.c: Likewise.
3200 * inline-frame.c: Likewise.
3201 * interps.c: Likewise.
3202 * jv-lang.c: Likewise.
3203 * jv-typeprint.c: Likewise.
3204 * linux-fork.c: Likewise.
3205 * linux-nat.c: Likewise.
3206 * linux-thread-db.c: Likewise.
3207 * m32c-tdep.c: Likewise.
3208 * m32r-linux-nat.c: Likewise.
3209 * m32r-tdep.c: Likewise.
3210 * m68k-tdep.c: Likewise.
3211 * m68kbsd-nat.c: Likewise.
3212 * m68kbsd-tdep.c: Likewise.
3213 * m88k-tdep.c: Likewise.
3214 * machoread.c: Likewise.
3215 * macroexp.c: Likewise.
3216 * macrotab.c: Likewise.
3217 * maint.c: Likewise.
3218 * mdebugread.c: Likewise.
3219 * memory-map.c: Likewise.
3220 * mep-tdep.c: Likewise.
3221 * mi/mi-common.c: Likewise.
3222 * microblaze-tdep.c: Likewise.
3223 * mingw-hdep.c: Likewise.
3224 * mips-linux-nat.c: Likewise.
3225 * mips-linux-tdep.c: Likewise.
3226 * mips-tdep.c: Likewise.
3227 * mips64obsd-tdep.c: Likewise.
3228 * mipsnbsd-tdep.c: Likewise.
3229 * mn10300-linux-tdep.c: Likewise.
3230 * mn10300-tdep.c: Likewise.
3231 * moxie-tdep.c: Likewise.
3232 * mt-tdep.c: Likewise.
3233 * nat/linux-btrace.c: Likewise.
3234 * nat/linux-osdata.c: Likewise.
3235 * nat/linux-ptrace.c: Likewise.
3236 * nat/mips-linux-watch.c: Likewise.
3237 * nios2-linux-tdep.c: Likewise.
3238 * nios2-tdep.c: Likewise.
3239 * objc-lang.c: Likewise.
3240 * objfiles.c: Likewise.
3241 * obsd-nat.c: Likewise.
3242 * opencl-lang.c: Likewise.
3243 * osabi.c: Likewise.
3244 * parse.c: Likewise.
3245 * ppc-linux-nat.c: Likewise.
3246 * ppc-sysv-tdep.c: Likewise.
3247 * ppcfbsd-nat.c: Likewise.
3248 * ppcfbsd-tdep.c: Likewise.
3249 * ppcnbsd-nat.c: Likewise.
3250 * ppcnbsd-tdep.c: Likewise.
3251 * ppcobsd-nat.c: Likewise.
3252 * ppcobsd-tdep.c: Likewise.
3253 * printcmd.c: Likewise.
3254 * procfs.c: Likewise.
3255 * prologue-value.c: Likewise.
3256 * psymtab.c: Likewise.
3257 * python/py-lazy-string.c: Likewise.
3258 * python/py-value.c: Likewise.
3259 * regcache.c: Likewise.
3260 * reggroups.c: Likewise.
3261 * registry.c: Likewise.
3262 * remote-sim.c: Likewise.
3263 * remote.c: Likewise.
3264 * rs6000-aix-tdep.c: Likewise.
3265 * rs6000-tdep.c: Likewise.
3266 * s390-linux-tdep.c: Likewise.
3267 * score-tdep.c: Likewise.
3268 * ser-base.c: Likewise.
3269 * ser-mingw.c: Likewise.
3270 * sh-tdep.c: Likewise.
3271 * sh64-tdep.c: Likewise.
3272 * solib-darwin.c: Likewise.
3273 * solib-spu.c: Likewise.
3274 * solib-svr4.c: Likewise.
3275 * source.c: Likewise.
3276 * sparc-nat.c: Likewise.
3277 * sparc-sol2-tdep.c: Likewise.
3278 * sparc-tdep.c: Likewise.
3279 * sparc64-sol2-tdep.c: Likewise.
3280 * sparc64-tdep.c: Likewise.
3281 * sparc64fbsd-tdep.c: Likewise.
3282 * sparc64nbsd-tdep.c: Likewise.
3283 * sparc64obsd-tdep.c: Likewise.
3284 * sparcnbsd-tdep.c: Likewise.
3285 * sparcobsd-tdep.c: Likewise.
3286 * spu-multiarch.c: Likewise.
3287 * spu-tdep.c: Likewise.
3288 * stabsread.c: Likewise.
3289 * stack.c: Likewise.
3290 * symfile.c: Likewise.
3291 * symtab.c: Likewise.
3292 * target-descriptions.c: Likewise.
3293 * target-memory.c: Likewise.
3294 * target.c: Likewise.
3295 * tic6x-linux-tdep.c: Likewise.
3296 * tic6x-tdep.c: Likewise.
3297 * tilegx-linux-nat.c: Likewise.
3298 * tilegx-tdep.c: Likewise.
3299 * top.c: Likewise.
3300 * tramp-frame.c: Likewise.
3301 * tui/tui-out.c: Likewise.
3302 * tui/tui-winsource.c: Likewise.
3303 * ui-out.c: Likewise.
3304 * user-regs.c: Likewise.
3305 * utils.c: Likewise.
3306 * v850-tdep.c: Likewise.
3307 * valops.c: Likewise.
3308 * value.c: Likewise.
3309 * varobj.c: Likewise.
3310 * vax-nat.c: Likewise.
3311 * xml-syscall.c: Likewise.
3312 * xml-tdesc.c: Likewise.
3313 * xstormy16-tdep.c: Likewise.
3314 * xtensa-linux-nat.c: Likewise.
3315 * xtensa-tdep.c: Likewise.
3316
e76df0d0
GB
33172014-08-07 Gary Benson <gbenson@redhat.com>
3318
3319 * common/common-defs.h: Include common-utils.h.
3320 * defs.h: Do not include common-utils.h.
3321 * common/gdb_assert.h: Likewise.
3322 * darwin-nat.h: Likewise.
3323 * nat/linux-btrace.c: Likewise.
3324 * target/waitstatus.h: Likewise.
3325
4cb9c816
GB
33262014-08-07 Gary Benson <gbenson@redhat.com>
3327
3328 * common/common-defs.h: Include ptid.h.
3329 * defs.h: Do not include ptid.h.
3330 * inferior.h: Likewise.
3331 * infrun.h: Likewise.
3332 * nat/linux-btrace.h: Likewise.
3333 * nat/linux-osdata.h: Likewise.
3334 * target/waitstatus.h: Likewise.
3335
3995eeee
GB
33362014-08-07 Gary Benson <gbenson@redhat.com>
3337
3338 * common/common-defs.h: Include gdb_locale.h.
3339 * defs.h: Do not include gdb_locale.h.
3340
cb9f1a9b
GB
33412014-08-07 Gary Benson <gbenson@redhat.com>
3342
3343 * common/common-defs.h: Include gdb/signals.h.
3344 * defs.h: Do not include gdb/signals.h.
3345
a5fceff8
GB
33462014-08-07 Gary Benson <gbenson@redhat.com>
3347
3348 * common/common-defs.h: Include pathmax.h.
3349 * defs.h: Do not include pathmax.h.
3350
b9391142
GB
33512014-08-07 Gary Benson <gbenson@redhat.com>
3352
3353 * common/common-defs.h: Include libiberty.h.
3354 * defs.h: Do not include libiberty.h.
3355 * common/queue.h: Likewise.
3356 * cp-name-parser.y: Likewise.
3357 * mi/mi-cmd-catch.c: Likewise.
3358 * python/python.c: Likewise.
3359
0e443c87
GB
33602014-08-07 Gary Benson <gbenson@redhat.com>
3361
3362 * common/common-defs.h: Include ansidecl.h.
3363 * defs.h: Do not include ansidecl.h.
3364 * common/buffer.h: Likewise.
3365 * common/common-utils.h: Likewise.
3366
8ebb3f56
GB
33672014-08-07 Gary Benson <gbenson@redhat.com>
3368
3369 * common/common-defs.h: Include stddef.h.
3370 * defs.h: Do not include stddef.h.
3371 * common/common-utils.h: Likewise.
3372 * amd64fbsd-nat.c: Likewise.
3373 * bcache.c: Likewise.
3374 * charset.c: Likewise.
3375 * common/buffer.h: Likewise.
3376 * common/vec.h: Likewise.
3377 * i386bsd-nat.c: Likewise.
3378 * nat/linux-btrace.h: Likewise.
3379 * ppcfbsd-nat.c: Likewise.
3380 * ppcnbsd-tdep.h: Likewise.
3381 * ppcobsd-nat.c: Likewise.
3382 * ppcobsd-tdep.h: Likewise.
3383 * python/py-gdb-readline.c: Likewise.
3384
8980bdf6
GB
33852014-08-07 Gary Benson <gbenson@redhat.com>
3386
3387 * common/common-defs.h: Include stdarg.h.
3388 * defs.h: Do not include stdarg.h.
3389 * ada-lang.c: Likewise.
3390 * common/common-utils.h: Likewise.
3391 * guile/scm-string.c: Likewise.
3392 * guile/scm-utils.c: Likewise.
3393 * m32c-tdep.c: Likewise.
3394
d7096f71
GB
33952014-08-07 Gary Benson <gbenson@redhat.com>
3396
3397 * common/common-defs.h: Include stdlib.h.
3398 * defs.h: Do not include stdlib.h.
3399 * addrmap.c: Likewise.
3400 * bcache.c: Likewise.
3401 * common/buffer.c: Likewise.
3402 * common/common-utils.c: Likewise.
3403 * cp-name-parser.y: Likewise.
3404 * go32-nat.c: Likewise.
3405 * mn10300-linux-tdep.c: Likewise.
3406 * nat/linux-osdata.c: Likewise.
3407 * tui/tui.c: Likewise.
3408 * windows-nat.c: Likewise.
3409
d02f550d
GB
34102014-08-07 Gary Benson <gbenson@redhat.com>
3411
3412 * common/common-defs.h: Include stdio.h.
3413 * defs.h: Do not include stdio.h.
3414 * ada-lang.c: Likewise.
3415 * common/buffer.c: Likewise.
3416 * common/common-utils.c: Likewise.
3417 * cp-name-parser.y: Likewise.
3418 * gnu-nat.c: Likewise.
3419 * go32-nat.c: Likewise.
3420 * i386gnu-nat.c: Likewise.
3421 * proc-api.c: Likewise.
3422 * proc-events.c: Likewise.
3423 * proc-flags.c: Likewise.
3424 * proc-why.c: Likewise.
3425 * python/python-internal.h: Likewise.
3426 * target-memory.c: Likewise.
3427 * tui/tui-io.c: Likewise.
3428 * tui/tui.c: Likewise.
3429
b6d7a4bf
SM
34302014-08-06 Simon Marchi <simon.marchi@ericsson.com>
3431
3432 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
3433 (scan_dyntag_auxv): Same.
3434
af19829b
YQ
34352014-08-06 Yao Qi <yao@codesourcery.com>
3436
3437 * amd64-linux-nat.c: Remove duplicated include
3438 "x86-linux-nat.h".
3439 * i386-linux-nat.c: Likewise.
3440
8e07a239
YQ
34412014-08-06 Yao Qi <yao@codesourcery.com>
3442
3443 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
3444 operand" with "Special opcode" in comments.
3445
7bfe8241
GB
34462014-08-05 Gary Benson <gbenson@redhat.com>
3447
3448 * interps.c (initialize_interps): Remove prototype.
3449 (interpreter_initialized): Remove static global.
3450 (interp_add): Do not call initialize_interps.
3451 (initialize_interps): Remove function.
3452
d6c95504
GB
34532014-08-05 Gary Benson <gbenson@redhat.com>
3454
3455 * utils.c (vwarning): Remove spurious va_end.
3456
241fd515
AM
34572014-08-05 Alan Modra <amodra@gmail.com>
3458
3459 * charset.c (convert_between_encodings): Cast result of obstack_base.
3460 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
3461 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
3462 (read_unwind_info): Use size_t for some locals.
3463 * jit.c (finalize_symtab): Likewise.
3464 * utils.c (hashtab_obstack_allocate): Likewise.
3465 * symmisc.c (print_objfile_statistics): Update format strings.
3466
dc304a94
JK
34672014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3468
3469 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
3470 (Changes in GDB 7.8): ... here.
3471
3cecbbbe
TT
34722014-08-04 Tom Tromey <tromey@redhat.com>
3473
3474 * target.c (set_targetdebug): New function.
3475 (initialize_targets): Pass set_targetdebug when creating "set
3476 debug target".
3477
6908c509
JB
34782014-08-01 Joel Brobecker <brobecker@adacore.com>
3479
3480 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
3481 if detecting a variable-sized field that is not the last field.
3482 Fix struct type length computation.
3483
53e8f97d
JB
34842014-08-01 Joel Brobecker <brobecker@adacore.com>
3485
3486 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3487 Add debug trace.
3488
e068c55d
JB
34892014-08-01 Joel Brobecker <brobecker@adacore.com>
3490
3491 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3492 Remove "+ 8" offset in computation of CHAIN_VMA.
3493
4d4ca2a1
DE
34942014-07-31 Doug Evans <dje@google.com>
3495
3496 * inflow.c (child_terminal_inferior): Add comment.
3497 (child_terminal_ours_for_output): Add comment.
3498 (child_terminal_ours): Add comment.
3499 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
3500 (linux_nat_terminal_ours): Add comment.
3501
462f517e
GB
35022014-07-31 Gary Benson <gbenson@redhat.com>
3503
3504 * common/btrace-common.h: Do not include defs.h or server.h.
3505 * nat/mips-linux-watch.h: Likewise.
3506 * gdb-dlfcn.h: Do not include defs.h.
3507 * tracefile.h: Likewise.
3508
74228e77
RM
35092014-07-30 Roland McGrath <mcgrathr@google.com>
3510
3511 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
3512
014f9477
TT
35132014-07-30 Tom Tromey <tromey@redhat.com>
3514
3515 * bsd-kvm.c (bsd_kvm_open): Constify.
3516 * corelow.c (core_open): Constify.
3517 * ctf.c (ctf_open): Constify.
3518 * dbug-rom.c (dbug_open): Constify.
3519 * exec.c (exec_open): Constify.
3520 * m32r-rom.c (m32r_open, mon2000_open): Constify.
3521 * microblaze-rom.c (picobug_open): Constify.
3522 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
3523 Constify.
3524 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
3525 * record-btrace.c (record_btrace_open): Constify.
3526 * record-full.c (record_full_core_open_1, record_full_open_1)
3527 (record_full_open): Constify.
3528 * remote-m32r-sdi.c (m32r_open): Constify.
3529 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
3530 (rockhopper_open, lsi_open): Constify.
3531 * remote-sim.c (gdbsim_open): Constify.
3532 * remote.c (remote_open, extended_remote_open, remote_open_1):
3533 Constify.
3534 * target.h (struct target_ops) <to_open>: Make "arg" const.
3535 * tracefile-tfile.c (tfile_open): Constify.
3536
e799154c
TT
35372014-07-30 Tom Tromey <tromey@redhat.com>
3538
3539 * breakpoint.c (map_breakpoint_numbers): Update.
3540 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
3541 (get_number_const): New function.
3542 (get_number): Rewrite using get_number_const.
3543 (init_number_or_range): Make "string" const.
3544 (number_is_in_list): Make "list" const.
3545 * cli/cli-utils.h (get_number_const): Declare.
3546 (struct get_number_or_range_state) <string, end_ptr>: Now const.
3547 (init_number_or_range, number_is_in_list): Update.
3548 * printcmd.c (map_display_numbers): Update.
3549 * value.c (value_from_history_ref): Constify.
3550 * value.h (value_from_history_ref): Update.
3551
5f08566b
TT
35522014-07-30 Tom Tromey <tromey@redhat.com>
3553
3554 * corefile.c (hook_type, call_extra_exec_file_hooks)
3555 (specify_exec_file_hook): Constify.
3556 * exec.c (exec_file_attach): Make "filename" const.
3557 * gdbcore.h (deprecated_exec_file_display_hook)
3558 (specify_exec_file_hook, exec_file_attach): Constify.
3559 * main.c (captured_main): Use catch_command_errors_const.
3560
8981c758
TT
35612014-07-30 Tom Tromey <tromey@redhat.com>
3562
3563 * target.c (open_target): New function.
3564 (add_target_with_completer, add_deprecated_target_alias): Use
3565 set_cmd_sfunc, set_cmd_context.
3566 (debug_to_open): Remove.
3567 (setup_target_debug): Update.
3568
a1c7835a
YQ
35692014-07-30 Yao Qi <yao@codesourcery.com>
3570
3571 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
3572 comments.
3573 * parse.c (exp_iterate): Update comments.
3574
976411d6
GB
35752014-07-30 Gary Benson <gbenson@redhat.com>
3576
3577 * common/common-defs.h: New file.
3578 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
3579 * defs.h: Include common-defs.h.
3580 Do not include config.h or build-gnulib/config.h.
3581
5d4848a4
GB
35822014-07-30 Gary Benson <gbenson@redhat.com>
3583
3584 * common/common-utils.h: Do not include config.h.
3585 * nat/linux-btrace.h: Likewise.
3586
d41f6d8e
GB
35872014-07-30 Gary Benson <gbenson@redhat.com>
3588
3589 * btrace.c: Include defs.h.
3590 * common/ptid.c: Include defs.h or server.h as appropriate.
3591 * nat/mips-linux-watch.c: Likewise.
3592
84202f9c
TT
35932014-07-29 Tom Tromey <tromey@redhat.com>
3594
3595 * target.c (target_is_pushed): Simplify.
3596
2530441c
JB
35972014-07-29 Joel Brobecker <brobecker@adacore.com>
3598
3599 GDB 7.8 released.
3600
7e09a223
YQ
36012014-07-29 Yao Qi <yao@codesourcery.com>
3602
3603 PR gdb/17206
3604 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
3605
7ebdbe92
DE
36062014-07-28 Doug Evans <xdje42@gmail.com>
3607
3608 PR guile/17203
3609 * guile/scm-param.c (pascm_parameter_defined_p): New function.
3610 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
3611 parameters.
3612
f347ffc9
WN
36132014-07-28 Will Newton <will.newton@linaro.org>
3614
3615 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
3616 (THUMB2_SET_R7_SIGRETURN2): Likewise.
3617 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
3618 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
3619 (THUMB2_EABI_SYSCALL): Likewise.
3620 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
3621 struct tramp_frame.
3622 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
3623 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
3624
37c5f1f7
DE
36252014-07-27 Doug Evans <xdje42@gmail.com>
3626
3627 * guile/scm-param.c (pascm_print_param_smob): Fix output.
3628
0c3abbc7
DE
36292014-07-27 Doug Evans <xdje42@gmail.com>
3630
3631 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
3632
e76c5d17
DE
36332014-07-26 Ludovic Courtès <ludo@gnu.org>
3634 Doug Evans <xdje42@gmail.com>
3635
3636 PR guile/17146
3637 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
3638 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
3639 * configure.ac: Try to use guild to compile an scm file, if it fails
3640 then disable guile support.
3641 * configure: Regenerate.
3642 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
3643 GUILE_FILE_LIST.
3644 (GUILE_COMPILED_FILES): New variable.
3645 (GUILE_FILES) Update.
3646 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
3647 (stamp-guile): Compile scm files.
3648 * guile/guile.c (boot_guile_support): New function.
3649 (standard_throw_args_p): New function.
3650 (print_standard_throw_error, print_throw_error): New functions.
3651 (handle_boot_error): New function.
3652 (initialize_scheme_side): Rewrite to call boot_guile_support.
3653 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
3654 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
3655
186fcde0
DE
36562014-07-26 Ludovic Courtès <ludo@gnu.org>
3657 Doug Evans <xdje42@gmail.com>
3658
3659 PR guile/17146
3660 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
3661 * guile/lib/gdb/support.scm: New file.
3662 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
3663 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
3664 All uses updated.
3665 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
3666 All uses updated.
3667 (%assert-type): Ditto, and renamed to assert-type.
3668 (%exception-print-style): Delete.
3669
4df42755
DE
36702014-07-26 Doug Evans <xdje42@gmail.com>
3671
3672 PR build/17105
3673 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
3674 * configure: Regenerate.
3675 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
3676 PYTHON_FILES.
3677 (PYTHON_FILES): New variable.
3678 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
3679 (GUILE_FILES): New variable.
3680 (stamp-python, install-python, uninstall-python): Handle empty
3681 file list.
3682 (stamp-guile, install-guile, uninstall-guile): Ditto.
3683
ee7333ae
DE
36842014-07-26 Doug Evans <xdje42@gmail.com>
3685
3686 PR guile/17177
3687 * guile/lib/gdb.scm (pretty-printers): Export.
3688 (set-pretty-printers!): Export.
3689 * guile/lib/gdb/printing.scm (gdb module): Update.
3690 (prepend-pretty-printer!, append-pretty-printer!): Update.
3691 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
3692 (pretty_printer_list_var): Delete.
3693 (pretty_printer_list): New static global.
3694 (gdbscm_pretty_printers): New function.
3695 (gdbscm_set_pretty_printers_x): New function.
3696 (ppscm_find_pretty_printer_from_gdb): Update.
3697 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
3698 (gdbscm_initialize_pretty_printers): Update.
3699
74edf516
DE
37002014-07-26 Doug Evans <xdje42@gmail.com>
3701
3702 PR 17185
3703 * configure.ac: Add check for header gc/gc.h.
3704 Add check for function setenv.
3705 * configure: Regenerate.
3706 * config.in: Regenerate.
3707 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
3708
d54398a7
MR
37092014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
3710
3711 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
3712 variation in gdbarch matching.
3713
ab16fce8
TT
37142014-07-25 Tom Tromey <tromey@redhat.com>
3715
3716 * exec.c (using_exec_ops): Remove.
3717 (exec_close_1): Update. Remove extraneous block, reindent.
3718 (add_target_sections): Use target_is_pushed.
3719
88056fbb
PA
37202014-07-25 Pedro Alves <palves@redhat.com>
3721
3722 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
3723 * monitor.c (monitor_create_inferior): Likewise.
3724 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
3725 * remote-sim.c (gdbsim_create_inferior): Likewise.
3726 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
3727 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
3728 * windows-nat.c (do_initial_windows_stuff): Likewise.
3729
70509625
PA
37302014-07-25 Pedro Alves <palves@redhat.com>
3731
3732 * NEWS: Mention signal passing and "signal" command changes.
3733 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
3734 comment.
3735 * breakpoint.c (until_break_command): Adjust clear_proceed_status
3736 call.
3737 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
3738 * infcmd.c (proceed_thread_callback, continue_1, step_once)
3739 (jump_command): Adjust clear_proceed_status call.
3740 (signal_command): Warn if other thread that are resumed have
3741 signals that will be delivered. Adjust clear_proceed_status call.
3742 (until_next_command, finish_command)
3743 (proceed_after_attach_callback, attach_command_post_wait)
3744 (attach_command): Adjust clear_proceed_status call.
3745 * infrun.c (proceed_after_vfork_done): Likewise.
3746 (proceed_after_attach_callback): Adjust comment.
3747 (clear_proceed_status_thread): Clear stop_signal if not in pass
3748 state.
3749 (clear_proceed_status_callback): Delete.
3750 (clear_proceed_status): New 'step' parameter. Only clear the
3751 proceed status of threads the command being prepared is about to
3752 resume.
3753 (proceed): If passed in an explicit signal, override stop_signal
3754 with it. Don't pass the last stop signal to the thread we're
3755 resuming.
3756 (init_wait_for_inferior): Adjust clear_proceed_status call.
3757 (switch_back_to_stepped_thread): Clear the signal if it should not
3758 be passed.
3759 * infrun.h (clear_proceed_status): New 'step' parameter.
3760 (user_visible_resume_ptid): Add comment.
3761 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
3762 signal is in pass state.
3763 * remote.c (append_pending_thread_resumptions): Likewise.
3764 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
3765
d8be2939
TT
37662014-07-25 Tom Tromey <tromey@redhat.com>
3767
3768 * target.h (target_stopped_data_address)
3769 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
3770 parentheses.
3771
7d0d9d2b
PL
37722014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
3773
3774 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
3775 comments.
3776 (avr_pointer_to_address): Likewise.
3777
e9e7f724
TT
37782014-07-24 Tom Tromey <tromey@redhat.com>
3779
3780 * monitor.c (compile_pattern): Update.
3781 * target.h (struct target_ops) <to_shortname, to_longname,
3782 to_doc>: Now const.
3783
1947513d
TT
37842014-07-24 Tom Tromey <tromey@redhat.com>
3785
3786 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
3787 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
3788 (add_info_alias, add_com): Make "doc" const.
3789 (print_doc_line): Make "str" const.
3790 (delete_cmd): Update.
3791 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
3792 (print_doc_line): Update.
3793 * cli/cli-script.c (document_command): Update.
3794 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
3795 (add_com, add_info, add_info_alias): Update.
3796 * guile/scm-cmd.c (cmdscm_destroyer): Update.
3797 * python/py-cmd.c (cmdpy_destroyer): Update.
3798
64e61d29
TT
37992014-07-24 Tom Tromey <tromey@redhat.com>
3800
3801 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
3802 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
3803 (help_cmd_list): Constify.
3804 (lookup_cmd): Update.
3805 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
3806 const.
3807 (help_cmd_list, apropos_cmd): Update.
3808 * cli/cli-script.c (show_user): Update.
3809 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
3810 * cli/cli-setshow.h (cmd_show_list): Update.
3811 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
3812 (cmd_show_list): Update.
3813 * guile/scm-cmd.c (cmdscm_destroyer): Update.
3814 * python/py-cmd.c (cmdpy_destroyer): Update.
3815
429e55ea
TT
38162014-07-24 Tom Tromey <tromey@redhat.com>
3817
3818 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
3819 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
3820 const.
3821 * command.h (deprecate_cmd): Update.
3822 * maint.c (maintenance_do_deprecate): Add casts.
3823
64669f3b
TT
38242014-07-24 Tom Tromey <tromey@redhat.com>
3825
3826 * cli/cli-decode.c (help_cmd): Make parameter "const".
3827 * cli/cli-decode.h (help_cmd): Update.
3828
d3d3328b
TT
38292014-07-24 Tom Tromey <tromey@redhat.com>
3830
3831 * stack.c (up_silently_base, down_silently_base): Make argument
3832 const.
3833
414842dc
TT
38342014-07-24 Tom Tromey <tromey@redhat.com>
3835
3836 * solib.c (solib_add): Make "pattern" const.
3837 * solib.h (solib_add): Update.
3838
baa336ce
TT
38392014-07-24 Tom Tromey <tromey@redhat.com>
3840
3841 * remote.c (remote_serial_open, print_packet, putpkt)
3842 (putpkt_binary): Constify.
3843 * remote.h (putpkt): Update.
3844
5a19e2d0
TT
38452014-07-24 Tom Tromey <tromey@redhat.com>
3846
3847 * monitor.c (monitor_open): Make "args" const.
3848 * monitor.h (monitor_open): Update.
3849
fc4baa5e
TT
38502014-07-24 Tom Tromey <tromey@redhat.com>
3851
3852 * maint.c (match_bfd_flags): Make "string" const.
3853 (print_bfd_section_info): Remove casts.
3854 (print_objfile_section_info): Make "string" const.
3855
0d5f0dbe
TT
38562014-07-24 Tom Tromey <tromey@redhat.com>
3857
3858 * inf-child.c (inf_child_open_target): Make "arg" const.
3859 * inf-child.h (inf_child_open_target): Update.
3860
41c77899
TT
38612014-07-24 Tom Tromey <tromey@redhat.com>
3862
3863 * environ.c (unset_in_environ): Make "var" const.
3864 * environ.h (unset_in_environ): Update.
3865
93db0d79
TT
38662014-07-24 Tom Tromey <tromey@redhat.com>
3867
3868 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
3869 Make "cmd" const.
3870 (scan_filename_with_cleanup): Likewise.
3871 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
3872 Make arguments const.
3873 (restore_command): Update.
3874
36d6eb95
PA
38752014-07-24 Pedro Alves <palves@redhat.com>
3876
3877 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
3878
8009206a
TT
38792014-07-24 Tom Tromey <tromey@redhat.com>
3880 Gary Benson <gbenson@redhat.com>
3881
3882 * nat/linux-ptrace.c (additional_flags): New global.
3883 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
3884 additional_flags; don't check GDBSERVER.
3885 (linux_ptrace_set_additional_flags): New function.
3886 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
3887 Declare.
3888 * linux-nat.c (_initialize_linux_nat): Call
3889 linux_ptrace_set_additional_flags.
3890
a7068b60
TT
38912014-07-24 Tom Tromey <tromey@redhat.com>
3892
3893 * make-target-delegates (munge_type, write_debugmethod): New
3894 functions.
3895 (debug_names): New global.
3896 ($TARGET_DEBUG_PRINTER): New global.
3897 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
3898 name.
3899 Write debug methods. Generate init_debug_target.
3900 * target-debug.h: New file.
3901 * target-delegates.c: Rebuild.
3902 * target.c: Include target-debug.h.
3903 (debug_target): Hoist definition.
3904 (target_kill, target_get_section_table, target_memory_map)
3905 (target_flash_erase, target_flash_done, target_detach)
3906 (target_disconnect, target_wait, target_resume)
3907 (target_pass_signals, target_program_signals, target_follow_fork)
3908 (target_mourn_inferior, target_search_memory)
3909 (target_thread_address_space, target_close)
3910 (target_find_new_threads, target_core_of_thread)
3911 (target_verify_memory, target_insert_mask_watchpoint)
3912 (target_remove_mask_watchpoint): Remove targetdebug code.
3913 (debug_to_post_attach, debug_to_prepare_to_store)
3914 (debug_to_files_info, debug_to_insert_breakpoint)
3915 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
3916 (debug_to_region_ok_for_hw_watchpoint)
3917 (debug_to_can_accel_watchpoint_condition)
3918 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
3919 (debug_to_watchpoint_addr_within_range)
3920 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
3921 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
3922 (debug_to_terminal_init, debug_to_terminal_inferior)
3923 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
3924 (debug_to_terminal_save_ours, debug_to_terminal_info)
3925 (debug_to_load, debug_to_post_startup_inferior)
3926 (debug_to_insert_fork_catchpoint)
3927 (debug_to_remove_fork_catchpoint)
3928 (debug_to_insert_vfork_catchpoint)
3929 (debug_to_remove_vfork_catchpoint)
3930 (debug_to_insert_exec_catchpoint)
3931 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
3932 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
3933 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
3934 (setup_target_debug): Call init_debug_target.
3935 * target.h (TARGET_DEBUG_PRINTER): New macro.
3936 (struct target_ops) <to_resume, to_wait, to_pass_signals,
3937 to_program_signals>: Use TARGET_DEBUG_PRINTER.
3938
2c51604d
GB
39392014-07-24 Gary Benson <gbenson@redhat.com>
3940
3941 * exceptions.h (throw_vfatal): Renamed to...
3942 (throw_vquit): New declaration.
3943 (throw_quit): Likewise.
3944 * exceptions.c (throw_vfatal): Renamed to...
3945 (throw_vquit): New function.
3946 (throw_quit): Likewise.
3947 (throw_error): Call throw_verror rather than throw_it.
3948 * utils.h (vfatal): Removed.
3949 (fatal): Likewise.
3950 * utils.c (vfatal): Removed.
3951 (fatal): Likewise.
3952 (internal_verror): Replaced call to fatal with call to throw_quit.
3953 (quit): Replaced calls to fatal with calls to throw_quit.
3954
34211963
ME
39552014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
3956
3957 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
3958 target_read_code.
3959
a52b4d3e
ME
39602014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
3961
3962 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
3963 less than zero in conditional expression.
3964
a8bdc56b
TT
39652014-07-23 Tom Tromey <tromey@redhat.com>
3966
3967 * make-target-delegates ($ARGS_PART): Match trailing close paren.
3968 ($INTRO_PART): Don't match whitespace.
3969 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
3970 argument matching.
3971 ($METHOD): Add $METHOD_TRAILER.
3972 (trim): Rewrite.
3973 (scan_target_h): New sub.
3974 Change main loop not to collect state.
3975 * target-delegates.c: Rebuild.
3976
91b52240
GB
39772014-07-23 Gary Benson <gbenson@redhat.com>
3978
3979 * cp-support.c (gdb_demangle): Fix build on systems without
3980 sigaltstack.
3981
45326f6f
JK
39822014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3983
3984 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
3985 for reference entry value target data value.
3986
e214cf6c
JK
39872014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3988
3989 * stack.c (read_frame_arg): Verify value_optimized_out before calling
3990 value_available_contents_eq.
3991
bddbbedd
PA
39922014-07-22 Pedro Alves <palves@redhat.com>
3993
3994 * value.c (allocate_optimized_out_value): Don't mark value as
3995 non-lazy.
3996
45c71484
JW
39972014-07-22 Jiong Wang <jiong.wang@arm.com>
3998
3999 * MAINTAINERS (Write After Approval): Update my email address.
4000
9597b22a
DE
40012014-07-20 Doug Evans <dje@google.com>
4002
4003 PR server/17147
4004 * remote.c (putpkt_binary): Add text to error message.
4005
91101fe5
YQ
40062014-07-20 Yao Qi <yao@codesourcery.com>
4007
4008 * eval.c: Remove "Chill" from comments.
4009 * gdbtypes.h: Likewise.
4010 * symtab.h: Likewise.
4011
c9402c95
YQ
40122014-07-20 Yao Qi <yao@codesourcery.com>
4013
4014 * std-operator.def: Update comments to TERNOP_SLICE.
4015
ae8fddda
YQ
40162014-07-20 Yao Qi <yao@codesourcery.com>
4017
4018 * std-operator.def: Remove BINOP_RANGE.
4019 * breakpoint.c (watchpoint_exp_is_const): Update.
4020 * expprint.c (dump_subexp_body_standard): Likewise.
4021 * eval.c (init_array_element): Remove dead code.
4022 (evaluate_subexp_standard): Likewise.
4023
9c816640
YQ
40242014-07-20 Yao Qi <yao@codesourcery.com>
4025
4026 * std-operator.def: Remove BINOP_IN.
4027 * breakpoint.c (watchpoint_exp_is_const): Update.
4028 * eval.c (evaluate_subexp_standard): Likewise.
4029 * expprint.c (dump_subexp_body_standard): Likewise.
4030
164224e9
ME
40312014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
4032
4033 * microblaze-tdep.c (microblaze_register_names): Add
4034 the rshr and rslr register names.
4035 (microblaze_gdbarch_init): Use of tdesc_has_registers.
4036 Use of tdesc_find_feature. Use of tdesc_data_alloc.
4037 Use of tdesc_numbered_register. Use of
4038 microblaze_register_g_packet_guesses. Use of
4039 tdesc_use_registers. Use of set_gdbarch_register_type.
4040 (microblaze_register_g_packet_guesses): New.
4041 * microblaze-tdep.h (microblaze_reg_num): Add
4042 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
4043 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
4044 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
4045 * features/microblaze-core.xml: New file.
4046 * features/microblaze-stack-protect.xml: New file.
4047 * features/microblaze-with-stack-protect.c: New file.
4048 * features/microblaze-with-stack-protect.xml: New file.
4049 * features/microblaze.xml: New file.
4050 * features/microblaze.c: New file.
4051 * features/Makefile (microblaze-with-stack-protect): Add
4052 microblaze-with-stack-protect microblaze and microblaze-expedite.
4053 * regformats/microblaze-with-stack-protect.dat: New file.
4054 * regformats/microblaze.dat: New file.
4055 * doc/gdb.texinfo (MicroBlaze Features): Added.
4056
e8b2341c
TT
40572014-07-18 Tom Tromey <tromey@redhat.com>
4058
4059 * exec.c (exec_ops): Now static.
4060 * exec.h (exec_ops): Don't declare.
4061
44e89118
TT
40622014-07-18 Tom Tromey <tromey@redhat.com>
4063
4064 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
4065 to find_target_beneath.
4066 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
4067 find_target_beneath.
4068 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
4069
b0ed115f
TT
40702014-07-18 Tom Tromey <tromey@redhat.com>
4071
4072 PR gdb/17130:
4073 * utils.c (quit): Use target_supports_terminal_ours.
4074 * target.h (target_supports_terminal_ours): Declare.
4075 * target.c (target_supports_delete_record): Don't check
4076 to_delete_record against NULL.
4077 (target_supports_terminal_ours): New function.
4078
e75fdfca
TT
40792014-07-18 Tom Tromey <tromey@redhat.com>
4080
4081 PR gdb/17130:
4082 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
4083 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
4084 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
4085 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
4086 * windows-nat.c (windows_xfer_partial): Always delegate.
4087 * record-btrace.c (record_btrace_xfer_partial): Simplify
4088 delegation.
4089 (record_btrace_fetch_registers, record_btrace_store_registers)
4090 (record_btrace_prepare_to_store, record_btrace_resume)
4091 (record_btrace_wait, record_btrace_find_new_threads)
4092 (record_btrace_thread_alive): Likewise.
4093 * procfs.c (procfs_xfer_partial): Always delegate.
4094 * corelow.c (core_xfer_partial): Always delegate.
4095 * sol-thread.c (sol_find_new_threads): Simplify delegation.
4096
83814951
TT
40972014-07-18 Tom Tromey <tromey@redhat.com>
4098
4099 * exec.c (exec_make_note_section): Move earlier.
4100
b8b8facf
DE
41012014-07-17 Doug Evans <dje@google.com>
4102
74b49205 4103 PR gdb/17170
b8b8facf
DE
4104 * maint.c (count_symtabs_and_blocks): Handle NULL
4105 current_program_space.
4106 (report_command_stats): Check global enabled flag in addition to
4107 recorded enabled flag.
4108 (make_command_stats_cleanup): Handle msg_type == 0, startup.
4109
69ff6be5
PA
41102014-07-16 Pedro Alves <palves@redhat.com>
4111
4112 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
4113
252db1b5
TT
41142014-07-16 Tom Tromey <tromey@redhat.com>
4115
4116 * target.h (struct target_ops) <to_delete_record>: Reformat
4117 comment.
4118
a432721e
TT
41192014-07-16 Tom Tromey <tromey@redhat.com>
4120
4121 * target-delegates.c: Rebuild.
4122
487d9753
PL
41232014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
4124
4125 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
4126 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
4127 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
4128 (avr_pointer_to_address): Likewise.
4129 (avr_address_class_type_flags): New function.
4130 (avr_address_class_type_flags_to_name): Likewise.
4131 (avr_address_class_name_to_type_flags): Likewise.
4132 (avr_gdbarch_init): Set address_class_type_flags,
4133 address_class_type_flags_to_name and
4134 address_class_name_to_type_flags.
4135
57745c90
PA
41362014-07-15 Pedro Alves <palves@redhat.com>
4137
4138 * linux-nat.c (kill_callback): Save errno and work with saved
4139 copy.
4140
2d40be18
SM
41412014-07-15 Simon Marchi <simon.marchi@ericsson.com>
4142
4143 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
4144
572f6555
EBM
41452014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4146
4147 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
4148 breakpoint support correctly.
4149
cc1c52ad
PA
41502014-07-14 Pedro Alves <palves@redhat.com>
4151
4152 * utils.c (prompt_for_continue): Call target_terminal_ours.
4153
1e973570
PA
41542014-07-14 Pedro Alves <palves@redhat.com>
4155
4156 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
4157 catch_errors. Don't re-enable stdin or notify observers where,
4158 and rethrow error.
4159 (fetch_inferior_event_wrapper): Delete.
4160
93d6eb10
PA
41612014-07-14 Pedro Alves <palves@redhat.com>
4162
4163 PR gdb/17072
4164 * top.c: Include "inf-loop.h".
4165 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
4166 field.
4167 (gdb_readline_wrapper_cleanup): Make the target async again, if it
4168 was async before.
4169 (gdb_readline_wrapper): Store whether the target is async, and
4170 make it sync.
4171
0017922d
PA
41722014-07-14 Pedro Alves <palves@redhat.com>
4173
4174 PR gdb/17072
4175 * top.c (gdb_readline_wrapper_line): Tweak comment.
4176 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
4177 the input handler callback.
4178
94696ad3
PA
41792014-07-14 Pedro Alves <palves@redhat.com>
4180
4181 PR gdb/17072
4182 * main.c: Include event-top.h.
4183 (handle_command_errors): New function.
4184 (catch_command_errors, catch_command_errors_const): Use it.
4185
9d1e69a2
PA
41862014-07-14 Pedro Alves <palves@redhat.com>
4187
4188 * exceptions.c (catch_command_errors, catch_command_errors_const):
4189 Moved to main.c.
4190 * exceptions.h (catch_command_errors_ftype)
4191 (catch_command_errors_const_ftype): Moved to main.c.
4192 (catch_command_errors, catch_command_errors_const): Delete
4193 declarations.
4194 * main.c (catch_command_errors_ftype)
4195 (catch_command_errors_const_ftype): Moved here from exceptions.h.
4196 (catch_command_errors, catch_command_errors_const)): Moved here
4197 from exceptions.c and make static.
4198
feefc97b
PA
41992014-07-14 Pedro Alves <palves@redhat.com>
4200
4201 * exceptions.c (print_any_exception): Delete.
4202 (catch_exceptions_with_msg): Use exception_print instead of
4203 print_any_exception.
4204 (catch_errors): Use exception_fprintf instead of
4205 print_any_exception.
4206 (catch_command_errors, catch_command_errors_const): Use
4207 exception_print instead of print_any_exception.
4208
c933f875
PA
42092014-07-14 Pedro Alves <palves@redhat.com>
4210
4211 * infcall.c (run_inferior_call): Set 'sync_execution' while
4212 running the inferior call.
4213
feb6f816
PA
42142014-07-14 Pedro Alves <palves@redhat.com>
4215
4216 * value.c (value_contents_equal): Delete function.
4217 * value.h (value_contents_equal): Delete declaration.
4218
d98b7a16
TT
42192014-07-14 Tom Tromey <tromey@redhat.com>
4220
4221 PR exp/17106:
4222 * gdbtypes.c (is_dynamic_type_internal): New function, from
4223 is_dynamic_type.
4224 (is_dynamic_type): Rewrite.
4225 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
4226 (resolve_dynamic_struct): Likewise.
4227 (resolve_dynamic_type_internal): New function, from
4228 resolve_dynamic_type.
4229 (resolve_dynamic_type): Rewrite.
4230
548740d6
TT
42312014-07-14 Tom Tromey <tromey@redhat.com>
4232
4233 * target.c (target_require_runnable): Also check record_stratum.
4234 Update comment.
4235
808f7ab1
YQ
42362014-07-11 Yao Qi <yao@codesourcery.com>
4237
4238 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
4239 thumb_instruction_restores_sp return true.
4240
540314bd
YQ
42412014-07-11 Yao Qi <yao@codesourcery.com>
4242
4243 * arm-tdep.c (thumb_instruction_restores_sp): New function.
4244 (thumb_in_function_epilogue_p): Call
4245 thumb_instruction_restores_sp.
4246
1db01f22
YQ
42472014-07-11 Yao Qi <yao@codesourcery.com>
4248
4249 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
4250 'add sp, #imm'.
4251 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
4252
3116063b
GB
42532014-07-11 Gary Benson <gbenson@redhat.com>
4254
4255 * amd64-linux-nat.c (gdbcore.h): Remove include.
4256 (regset.h): Likewise.
4257 (nat/linux-btrace.h): Likewise.
4258 (btrace.h): Likewise.
4259 (gdb_assert.h): Likewise.
4260 (string.h): Likewise.
4261 (sys/uio.h): Likewise.
4262 (sys/debugreg.h): Likewise.
4263 (sys/syscall.h): Likewise.
4264 (sys/procfs.h): Likewise.
4265 (sys/user.h): Likewise.
4266 (asm/ptrace.h): Likewise.
4267 (i386-nat.h): Likewise.
4268 * i386-linux-nat.c (i386-nat.h): Likewise.
4269 (regset.h): Likewise.
4270 (target.h): Likewise.
4271 (linux-nat.h): Likewise.
4272 (nat/linux-btrace.h): Likewise.
4273 (btrace.h): Likewise.
4274 (gdb_assert.h): Likewise.
4275 (string.h): Likewise.
4276 (sys/uio.h): Likewise.
4277 (sys/user.h): Likewise.
4278 (sys/procfs.h): Likewise.
4279 (sys/reg.h): Likewise.
4280 (sys/debugreg.h): Likewise.
4281 (ORIG_EAX): Remove definition.
4282
040baaf6
GB
42832014-07-11 Gary Benson <gbenson@redhat.com>
4284
4285 * i386-linux-nat.h: New file.
4286 * x86-linux-nat.h: Likewise.
4287 * x86-linux-nat.c: Likewise.
4288 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
4289 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
4290 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4291 * amd64-linux-nat.c (x86-linux-nat.h): New include.
4292 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
4293 (PTRACE_SETREGSET): Likewise.
4294 (arch_lwp_info): Now in x86-linux-nat.c.
4295 (have_ptrace_getregset): Now in x86-linux-nat.h.
4296 (x86_linux_dr_get): Now in x86-linux-nat.c.
4297 (x86_linux_dr_set): Likewise.
4298 (x86_linux_dr_get_addr): Likewise.
4299 (x86_linux_dr_get_control): Likewise.
4300 (x86_linux_dr_get_status): Likewise.
4301 (update_debug_registers_callback): Likewise.
4302 (x86_linux_dr_set_control): Likewise.
4303 (x86_linux_dr_set_addr): Likewise.
4304 (x86_linux_prepare_to_resume): Likewise.
4305 (x86_linux_new_thread): Likewise.
4306 (x86_linux_new_fork): Likewise.
4307 (x86_linux_get_thread_area): Likewise.
4308 (super_post_startup_inferior): Likewise.
4309 (x86_linux_child_post_startup_inferior): Likewise.
4310 (AMD64_LINUX_USER64_CS): Likewise.
4311 (AMD64_LINUX_X32_DS): Likewise.
4312 (x86_linux_read_description): Likewise.
4313 (x86_linux_enable_btrace): Likewise.
4314 (x86_linux_disable_btrace): Likewise.
4315 (x86_linux_teardown_btrace): Likewise.
4316 (x86_linux_read_btrace): Likewise.
4317 (x86_linux_create_target): Likewise.
4318 (x86_linux_add_target): Likewise.
4319 * i386-linux-nat.c (x86-linux-nat.h): New include.
4320 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
4321 (PTRACE_SETREGSET): Likewise.
4322 (arch_lwp_info): Now in x86-linux-nat.c.
4323 (have_ptrace_getregset): Now in x86-linux-nat.h.
4324 (x86_linux_dr_get): Now in x86-linux-nat.c.
4325 (x86_linux_dr_set): Likewise.
4326 (x86_linux_dr_get_addr): Likewise.
4327 (x86_linux_dr_get_control): Likewise.
4328 (x86_linux_dr_get_status): Likewise.
4329 (update_debug_registers_callback): Likewise.
4330 (x86_linux_dr_set_control): Likewise.
4331 (x86_linux_dr_set_addr): Likewise.
4332 (x86_linux_prepare_to_resume): Likewise.
4333 (x86_linux_new_thread): Likewise.
4334 (x86_linux_new_fork): Likewise.
4335 (x86_linux_get_thread_area): Likewise.
4336 (super_post_startup_inferior): Likewise.
4337 (x86_linux_child_post_startup_inferior): Likewise.
4338 (AMD64_LINUX_USER64_CS): Likewise.
4339 (AMD64_LINUX_X32_DS): Likewise.
4340 (x86_linux_read_description): Likewise.
4341 (x86_linux_enable_btrace): Likewise.
4342 (x86_linux_disable_btrace): Likewise.
4343 (x86_linux_teardown_btrace): Likewise.
4344 (x86_linux_read_btrace): Likewise.
4345 (x86_linux_create_target): Likewise.
4346 (x86_linux_add_target): Likewise.
4347
1aa7e42c
GB
43482014-07-11 Gary Benson <gbenson@redhat.com>
4349
4350 * amd64-linux-nat.c: Comment and whitespace changes.
4351 * i386-linux-nat.c: Comment and whitespace changes.
4352
c1e246a0
GB
43532014-07-11 Gary Benson <gbenson@redhat.com>
4354
4355 * amd64-linux-nat.c (x86_linux_create_target): New function.
4356 (x86_linux_add_target): Likewise.
4357 (_initialize_amd64_linux_nat): Delegate to the above new functions.
4358 * i386-linux-nat.c (x86_linux_create_target): New function.
4359 (x86_linux_add_target): Likewise.
4360 (_initialize_i386_linux_nat): Delegate to the above new functions.
4361
8c420b8d
GB
43622014-07-11 Gary Benson <gbenson@redhat.com>
4363
4364 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
4365 (ps_get_thread_area): Delegate to the above in 32-bit mode.
4366 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
4367 (ps_get_thread_area): Delegate to the above.
4368
cb1da100
GB
43692014-07-11 Gary Benson <gbenson@redhat.com>
4370
4371 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
4372 x86_linux_read_description. All uses updated. amd64-specific
4373 code conditionalized. Conditionalized i386-specific code added.
4374 Redundant cast removed.
4375 * i386-linux-nat.c (i386_linux_read_description): Renamed to
4376 x86_linux_read_description. All uses updated. i386-specific
4377 code conditionalized. Conditionalized amd64-specific code added.
4378 One sizeof replaced with the actual type it is describing.
4379
2acf3cd0
GB
43802014-07-11 Gary Benson <gbenson@redhat.com>
4381
4382 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
4383 x86_linux_dr_get. All uses updated.
4384 (amd64_linux_dr_set): Renamed to
4385 x86_linux_dr_set. All uses updated.
4386 (amd64_linux_dr_get_addr): Renamed to
4387 x86_linux_dr_get_addr. All uses updated.
4388 (amd64_linux_dr_get_control): Renamed to
4389 x86_linux_dr_get_control. All uses updated.
4390 (amd64_linux_dr_get_status): Renamed to
4391 x86_linux_dr_get_status. All uses updated.
4392 (amd64_linux_dr_set_control): Renamed to
4393 x86_linux_dr_set_control. All uses updated.
4394 (amd64_linux_dr_set_addr): Renamed to
4395 x86_linux_dr_set_addr. All uses updated.
4396 (amd64_linux_prepare_to_resume): Renamed to
4397 x86_linux_prepare_to_resume. All uses updated.
4398 (amd64_linux_new_thread): Renamed to
4399 x86_linux_new_thread. All uses updated.
4400 (amd64_linux_new_fork): Renamed to
4401 x86_linux_new_fork. All uses updated.
4402 (amd64_linux_child_post_startup_inferior): Renamed to
4403 x86_linux_child_post_startup_inferior. All uses updated.
4404 (amd64_linux_enable_btrace): Renamed to
4405 x86_linux_enable_btrace. All uses updated.
4406 (amd64_linux_disable_btrace): Renamed to
4407 x86_linux_disable_btrace. All uses updated.
4408 (amd64_linux_teardown_btrace): Renamed to
4409 x86_linux_teardown_btrace. All uses updated.
4410 (amd64_linux_read_btrace): Renamed to
4411 x86_linux_read_btrace. All uses updated.
4412 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
4413 x86_linux_dr_get. All uses updated.
4414 (i386_linux_dr_set): Renamed to
4415 x86_linux_dr_set. All uses updated.
4416 (i386_linux_dr_get_addr): Renamed to
4417 x86_linux_dr_get_addr. All uses updated.
4418 (i386_linux_dr_get_control): Renamed to
4419 x86_linux_dr_get_control. All uses updated.
4420 (i386_linux_dr_get_status): Renamed to
4421 x86_linux_dr_get_status. All uses updated.
4422 (i386_linux_dr_set_control): Renamed to
4423 x86_linux_dr_set_control. All uses updated.
4424 (i386_linux_dr_set_addr): Renamed to
4425 x86_linux_dr_set_addr. All uses updated.
4426 (i386_linux_prepare_to_resume): Renamed to
4427 x86_linux_prepare_to_resume. All uses updated.
4428 (i386_linux_new_thread): Renamed to
4429 x86_linux_new_thread. All uses updated.
4430 (i386_linux_new_fork): Renamed to
4431 x86_linux_new_fork. All uses updated.
4432 (i386_linux_child_post_startup_inferior): Renamed to
4433 x86_linux_child_post_startup_inferior. All uses updated.
4434 (i386_linux_enable_btrace): Renamed to
4435 x86_linux_enable_btrace. All uses updated.
4436 (i386_linux_disable_btrace): Renamed to
4437 x86_linux_disable_btrace. All uses updated.
4438 (i386_linux_teardown_btrace): Renamed to
4439 x86_linux_teardown_btrace. All uses updated.
4440 (i386_linux_read_btrace): Renamed to
4441 x86_linux_read_btrace. All uses updated.
4442
b9c1d481
AS
44432014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
4444
4445 * remote.c (extended_remote_post_attach): New function.
4446 (init_extended_remote_ops): Install it as to_post_attach method.
4447
7180e04a
PA
44482014-07-09 Pedro Alves <palves@redhat.com>
4449
4450 * infcmd.c (attach_command_post_wait): Don't call
4451 target_terminal_inferior here.
4452 (attach_command): Call it here instead.
4453
9a9a7608
AB
44542014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4455
4456 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
4457 field.
4458 * c-varobj.c (c_is_path_expr_parent): New function, moved core
4459 from varobj.c, with additional checks.
4460 (c_varobj_ops): Fill in is_path_expr_parent field.
4461 (cplus_varobj_ops): Fill in is_path_expr_parent field.
4462 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
4463 field.
4464 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
4465 ops method.
4466 (varobj_default_is_path_expr_parent): New function.
4467 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
4468 (varobj_default_is_path_expr_parent): Declare new function.
4469
1f267ae3
MM
44702014-07-08 Markus Metzger <markus.t.metzger@intel.com>
4471
4472 * infcmd.c (finish_backward): Turn internal error into normal error.
4473
b2ee242b
PA
44742014-07-07 Pedro Alves <palves@redhat.com>
4475
8a869bca 4476 PR gdb/17096
b2ee242b
PA
4477 * remote.c (async_handle_remote_sigint)
4478 (async_handle_remote_sigint_twice): Call
4479 gdb_call_async_signal_handler instead of
4480 mark_async_signal_handler.
4481
38e229b2
TT
44822014-07-07 Tom Tromey <tromey@redhat.com>
4483
4484 * target-delegates.c: Rebuild.
4485 * target.c (target_info_record): Remove.
4486 * record.c (info_record_command): Unconditionally call
4487 to_info_record.
4488 * target.h (struct target_ops) <to_info_record>: Use
4489 TARGET_DEFAULT_IGNORE.
4490 (target_info_record): Remove.
4491
f0f9ff95
TT
44922014-07-07 Tom Tromey <tromey@redhat.com>
4493
4494 * target.h (struct target_ops) <to_get_thread_local_address>: Use
4495 TARGET_DEFAULT_NORETURN.
4496 * target.c (generic_tls_error): New function.
4497 (target_translate_tls_address): Don't search target stack.
4498 * target-delegates.c: Rebuild.
4499 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
4500 stack.
4501 * linux-thread-db.c (thread_db_get_thread_local_address):
4502 Unconditionally call beneath target.
4503
4a5be5ee
MK
45042014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
4505
4506 * cli/cli-logging.c (pop_output_files): Assign targerr to
4507 gdb_stdtargerr.
4508
92c3b204
AB
45092014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
4510
4511 * MAINTAINERS (Write After Approval): Update my email address.
4512
9b11e3a7
GB
45132014-07-02 Gary Benson <gbenson@redhat.com>
4514
4515 * proc-service.c (ps_xfer_memory): Update comment.
4516 (ps_pstop): Remove unused function.
4517 (ps_pcontinue): Likewise.
4518 (ps_lstop): Likewise.
4519 (ps_lcontinue): Likewise.
4520 (ps_lgetxregsize): Likewise.
4521 (ps_lgetxregs): Likewise.
4522 (ps_lsetxregs): Likewise.
4523 (ps_plog): Likewise.
4524 (ps_ptread): Likewise.
4525 (ps_ptwrite): Likewise.
4526
cf363f18
MW
45272014-07-01 Mark Wielaard <mjw@redhat.com>
4528
4529 * dwarf2read.c (add_array_cv_type): New function.
4530 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
4531 (read_tag_volatile_type): Likewise.
4532
82ae6c8d
TT
45332014-07-01 Tom Tromey <tromey@redhat.com>
4534
4535 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
4536 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
4537 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
4538 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
4539 * command.h (cmd_cfunc_ftype): Move earlier.
4540 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
4541 (add_com, add_info): Use cmd_cfunc_ftype.
4542
96142726
TT
45432014-06-30 Tom Tromey <tromey@redhat.com>
4544
4545 * symtab.c (operator_chars): Make parameters and return type
4546 const.
4547 (file_matches): Make "files" const.
4548 (struct search_symbols_data) <files>: Now const.
4549 (search_symbols): Make "regexp" and "files" parameters const.
4550 Update.
4551 (symtab_symbol_info): Remove cast.
4552 (rbreak_command): Update.
4553 * symtab.h (search_symbols): Update.
4554
b67a2c6f
YQ
45552014-06-27 Yao Qi <yao@codesourcery.com>
4556
4557 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
4558 Change parameter type to 'struct thread_info *'. Caller
4559 updated.
4560 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
4561 Update declaration.
4562 * dummy-frame.c (struct dummy_frame_id): New.
4563 (dummy_frame_id_eq): New function.
4564 (struct dummy_frame) <id>: Change its type to 'struct
4565 dummy_frame_id'.
4566 (dummy_frame_push): Add parameter ptid and save it in
4567 dummy_frame_id.
4568 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
4569 inferior_ptid.
4570 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
4571 to inferior_ptid.
4572 (lookup_dummy_frame): Change parameter type to 'struct
4573 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
4574 instead of frame_id_eq.
4575 (dummy_frame_pop): Add parameter ptid. Callers updated.
4576 Update comments. Compose dummy_frame_id and pass it to
4577 lookup_dummy_frame.
4578 (dummy_frame_discard): Add parameter ptid.
4579 (dummy_frame_sniffer): Compose dummy_frame_id and call
4580 dummy_frame_id_eq instead of frame_id_eq.
4581 (fprint_dummy_frames): Print ptid.
4582 * dummy-frame.h: Remove comments.
4583 (dummy_frame_push): Add ptid in declaration.
4584 (dummy_frame_pop, dummy_frame_discard): Likewise.
4585
5b10184c
TT
45862014-06-26 Tom Tromey <tromey@redhat.com>
4587
4588 * cli/cli-cmds.c (error_no_arg): Make "why" const.
4589 * command.h (error_no_arg): Update.
4590
06900326
TT
45912014-06-26 Tom Tromey <tromey@redhat.com>
4592
4593 * cli/cli-setshow.c (do_set_command): Make "arg" const.
4594 (do_show_command): Make "arg" const.
4595 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
4596
c2bcbb1d
TT
45972014-06-26 Tom Tromey <tromey@redhat.com>
4598
4599 * record-full.c (record_full_get_bookmark): Make "args" const.
4600 (record_full_goto_bookmark): Make "raw_bookmark" const.
4601 * record.c (record_goto): New function.
4602 (cmd_record_goto): Use it. Now static.
4603 * record.h (record_goto): Declare.
4604 (cmd_record_goto): Remove declaration.
4605 * target-delegates.c: Rebuild.
4606 * target.h (struct target_ops) <to_get_bookmark,
4607 to_goto_bookmark>: Make parameter const.
4608
9cbe5fff
TT
46092014-06-26 Tom Tromey <tromey@redhat.com>
4610
4611 * defs.h (generic_load): Update.
4612 * m32r-rom.c (m32r_load_gen): Make "filename" const.
4613 * monitor.c (monitor_load): Make "args" const.
4614 * remote-m32r-sdi.c (m32r_load): Make "args" const.
4615 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
4616 const.
4617 (mips_load): Make "file" const.
4618 * remote-sim.c (gdbsim_load): Make "args" const.
4619 * remote.c (remote_load): Make "name" const.
4620 * symfile.c (generic_load): Make "args" const.
4621 * target-delegates.c: Rebuild.
4622 * target.c (target_load): Make "arg" const.
4623 (debug_to_load): Make "args" const.
4624 * target.h (struct target_ops) <to_load>: Make parameter const.
4625 (target_load): Update.
4626
34a68019
TT
46272014-06-26 Tom Tromey <tromey@redhat.com>
4628
4629 PR symtab/16902:
4630 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
4631 (dwarf2_physname, read_partial_die)
4632 (guess_partial_die_structure_name, fixup_partial_die)
4633 (guess_full_die_structure_name, anonymous_struct_prefix)
4634 (dwarf2_name): Use per-BFD obstack.
4635
efc889c1
YQ
46362014-06-26 Yao Qi <yao@codesourcery.com>
4637
4638 * dummy-frame.c (dummy_frame_sniffer): Move local variables
4639 dummyframe and this_id into inner block below.
4640
4395285e
YQ
46412014-06-26 Yao Qi <yao@codesourcery.com>
4642
4643 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
4644 with "signal_pass[0]" in the initialization of signal_pass.
4645
aef92902
MM
46462014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4647
4648 * record-btrace.c (record_btrace_generating_corefile)
4649 (record_btrace_prepare_to_generate_core)
4650 (record_btrace_done_generating_core): New.
4651 (record_btrace_xfer_partial, record_btrace_fetch_registers)
4652 (record_btrace_store_registers, record_btrace_prepare_to_store):
4653 Forward request when generating a core file.
4654 (record_btrace_open): Set record_btrace_generating_corefile to zero.
4655 (init_record_btrace_ops): Set to_prepare_to_generate_core and
4656 to_done_generating_core.
4657
5fff78c4
MM
46582014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4659
4660 * target.h (target_ops) <to_prepare_to_generate_core>
4661 <to_done_generating_core>: New.
4662 (target_prepare_to_generate_core, target_done_generating_core): New.
4663 * target.c (target_prepare_to_generate_core)
4664 (target_done_generating_core): New.
4665 * target-delegates.c: Regenerate.
4666 * gcore.c: (write_gcore_file): Rename to ...
4667 (write_gcore_file_1): ...this.
4668 (write_gcore_file): Call target_prepare_to_generate_core
4669 and target_done_generating_core.
4670
1d1f1ccb
MM
46712014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4672
4673 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
4674 * gcore.c (write_gcore_file): Free memory returned from
4675 make_corefile_notes.
4676 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
4677 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
4678
3343ef86
YQ
46792014-06-24 Yao Qi <yao@codesourcery.com>
4680
4681 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
4682 (arm_linux_init_abi): Set skip_trampoline_code with
4683 gdbarch_skip_trampoline_code instead of
4684 find_solib_trampoline_target.
4685
18d18ac8
YQ
46862014-06-24 Yao Qi <yao@codesourcery.com>
4687
4688 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
4689 arm_skip_bx_reg returns non-zero.
4690
80d8d390
YQ
46912014-06-24 Yao Qi <yao@codesourcery.com>
4692
4693 * arm-tdep.c (arm_skip_bx_reg): New function.
4694 (arm_skip_stub): Call arm_skip_bx_reg.
4695
6a18a01c
DB
46962014-06-23 Don Breazeal <donb@codesourcery.com>
4697
4698 * MAINTAINERS: Add myself as write-after-approval maintainer.
4699
8e9db26e
PA
47002014-06-23 Pedro Alves <palves@redhat.com>
4701
4702 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
4703 DR_CONTROL before setting DR0..DR3.
4704 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
4705 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
4706 bits of DR_CONTROL related to the debug register slot being
4707 disabled. If all slots are vacant, clear local slowdown as well,
4708 and assert DR_CONTROL is 0.
4709
70afc5b7
SC
47102014-06-23 Siva Chandra Reddy <sivachandra@google.com>
4711
4712 * python/lib/gdb/command/xmethods.py
4713 (get_method_matchers_in_loci): Lookup xmethod matchers in the
4714 current progspace only if the string "progspace" matches LOCUS_RE.
4715
840ed64d
JK
47162014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4717
4718 Fix --with-system-readline with readline-6.3 patch 5.
4719 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
4720 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
4721 types.
4722
26f2dc30
TT
47232014-06-20 Tom Tromey <tromey@redhat.com>
4724
4725 * dwarf2read.c (dw2_get_real_path): Use correct type in
4726 OBSTACK_CALLOC.
4727 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
4728
125f8a3d
GB
47292014-06-20 Gary Benson <gbenson@redhat.com>
4730
4731 * common/gdb_thread_db.h: Moved to nat. All includes updated.
4732 * common/glibc_thread_db.h: Likewise.
4733 * common/i386-cpuid.h: Likewise.
4734 * common/i386-gcc-cpuid.h: Likewise.
4735 * common/linux-btrace.h: Likewise.
4736 * common/linux-osdata.h: Likewise.
4737 * common/linux-procfs.h: Likewise.
4738 * common/linux-ptrace.h: Likewise.
4739 * common/mips-linux-watch.h: Likewise.
4740 * common/linux-btrace.c: Moved to nat.
4741 * common/linux-osdata.c: Likewise.
4742 * common/linux-procfs.c: Likewise.
4743 * common/linux-ptrace.c: Likewise.
4744 * common/mips-linux-watch.c: Likewise.
4745 * nat/gdb_thread_db.h: Moved from common.
4746 * nat/glibc_thread_db.h: Likewise.
4747 * nat/i386-cpuid.h: Likewise.
4748 * nat/i386-gcc-cpuid.h: Likewise.
4749 * nat/linux-btrace.c: Likewise.
4750 * nat/linux-btrace.h: Likewise.
4751 * nat/linux-osdata.c: Likewise.
4752 * nat/linux-osdata.h: Likewise.
4753 * nat/linux-procfs.c: Likewise.
4754 * nat/linux-procfs.h: Likewise.
4755 * nat/linux-ptrace.c: Likewise.
4756 * nat/linux-ptrace.h: Likewise.
4757 * nat/mips-linux-watch.c: Likewise.
4758 * nat/mips-linux-watch.h: Likewise.
4759 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
4760 (object file files): Reordered.
4761 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
4762 of glibc_thread_db.h.
4763
42995dbd
GB
47642014-06-20 Gary Benson <gbenson@redhat.com>
4765
4766 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
4767 (i386_dr_low_type): Moved to nat/i386-dregs.h.
4768 (i386_dr_low): Likewise.
4769 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
4770 (i386_dr_low_set_addr): Likewise.
4771 (i386_dr_low_get_addr): Likewise.
4772 (i386_dr_low_can_set_control): Likewise.
4773 (i386_dr_low_set_control): Likewise.
4774 (i386_dr_low_get_control): Likewise.
4775 (i386_dr_low_get_status): Likewise.
4776 (i386_get_debug_register_length): Likewise.
4777 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
4778 (i386_dr_low): Likewise.
4779 * nat/i386-dregs.c (i386-low.h): Remove include.
4780 (i386-nat.h): Likewise.
4781 (nat/i386-dregs.h): New include.
4782 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
4783 (i386_dr_low_set_addr): Likewise.
4784 (i386_dr_low_get_addr): Likewise.
4785 (i386_dr_low_can_set_control): Likewise.
4786 (i386_dr_low_set_control): Likewise.
4787 (i386_dr_low_get_control): Likewise.
4788 (i386_dr_low_get_status): Likewise.
4789 (i386_get_debug_register_length): Likewise.
4790 (debug_hw_points): Likewise.
4791
3ed9baed
IB
47922014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
4793
4794 * Makefile.in (SFILES): Add d-exp.y.
4795 (YYFILES): Add d-exp.c.
4796 (YYOBJ): Add d-exp.o.
4797 (local-maintainer-clean): Delete d-exp.c.
4798 * d-exp.y: New file.
4799 * d-lang.h (d_parse): New declaration.
4800 (d_error): New declaration.
4801 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
4802 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
4803 PREC_ORDER operators.
4804 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
4805
78c164b0
YQ
48062014-06-19 Yao Qi <yao@codesourcery.com>
4807
4808 * gdbthread.h (any_running): Remove the declaration.
4809 * thread.c (any_running): Remove.
4810
f6e29b6e
YQ
48112014-06-19 Yao Qi <yao@codesourcery.com>
4812
4813 * gdbthread.h (struct thread_info) <state>: Change its type to
4814 'enum thread_state'. Update comments.
4815
034f788c
PA
48162014-06-19 Pedro Alves <palves@redhat.com>
4817
4818 * gdbthread.h (ALL_THREADS): Delete.
4819 (ALL_NON_EXITED_THREADS): New macro.
4820 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
4821 instead of ALL_THREADS.
4822 * infrun.c (find_thread_needs_step_over)
4823 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
4824 instead of ALL_THREADS.
4825 * record-btrace.c (record_btrace_open)
4826 (record_btrace_stop_recording, record_btrace_close)
4827 (record_btrace_is_replaying, record_btrace_resume)
4828 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
4829 * remote.c (append_pending_thread_resumptions): Likewise.
4830 * thread.c (thread_apply_all_command): Likewise.
4831
46e33252
GB
48322014-06-19 Gary Benson <gbenson@redhat.com>
4833
4834 * i386-nat.c (i386_stopped_by_watchpoint):
4835 Use i386_dr_stopped_by_watchpoint.
4836 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
4837 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
4838
3a8ee006
GB
48392014-06-19 Gary Benson <gbenson@redhat.com>
4840
4841 * nat/i386-dregs.c: New file.
4842 * Makefile.in (i386-dregs.o): New rule.
4843 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
4844 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
4845 * config/i386/darwin.mh (NATDEPFILES): Likewise.
4846 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
4847 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
4848 * config/i386/go32.mh (NATDEPFILES): Likewise.
4849 * config/i386/linux.mh (NATDEPFILES): Likewise.
4850 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4851 * config/i386/mingw.mh (NATDEPFILES): Likewise.
4852 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
4853 * i386-nat.h (debug_hw_points): New declaration.
4854 * i386-nat.c (breakpoint.h): Remove include.
4855 (command.h): Likewise.
4856 (target.h): Likewise.
4857 (gdb_assert.h): Likewise.
4858 (debug_hw_points): Made nonstatic.
4859 (debug_printf): Now in i386-dregs.c.
4860 (TARGET_HAS_DR_LEN_8): Likewise.
4861 (DR_CONTROL_SHIFT): Likewise.
4862 (DR_CONTROL_SIZE): Likewise.
4863 (DR_RW_EXECUTE): Likewise.
4864 (DR_RW_WRITE): Likewise.
4865 (DR_RW_READ): Likewise.
4866 (DR_RW_IORW): Likewise.
4867 (DR_LEN_1): Likewise.
4868 (DR_LEN_2): Likewise.
4869 (DR_LEN_4): Likewise.
4870 (DR_LEN_8): Likewise.
4871 (DR_LOCAL_ENABLE_SHIFT): Likewise.
4872 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
4873 (DR_ENABLE_SIZE): Likewise.
4874 (DR_LOCAL_SLOWDOWN): Likewise.
4875 (DR_GLOBAL_SLOWDOWN): Likewise.
4876 (DR_CONTROL_RESERVED): Likewise.
4877 (I386_DR_CONTROL_MASK): Likewise.
4878 (I386_DR_VACANT): Likewise.
4879 (I386_DR_LOCAL_ENABLE): Likewise.
4880 (I386_DR_GLOBAL_ENABLE): Likewise.
4881 (I386_DR_DISABLE): Likewise.
4882 (I386_DR_SET_RW_LEN): Likewise.
4883 (I386_DR_GET_RW_LEN): Likewise.
4884 (I386_DR_WATCH_HIT): Likewise.
4885 (i386_wp_op_t): Likewise.
4886 (i386_show_dr): Likewise.
4887 (i386_length_and_rw_bits): Likewise.
4888 (i386_insert_aligned_watchpoint): Likewise.
4889 (i386_remove_aligned_watchpoint): Likewise.
4890 (i386_handle_nonaligned_watchpoint): Likewise.
4891 (i386_update_inferior_debug_regs): Likewise.
4892 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
4893 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
4894 (i386_region_ok_for_watchpoint):
4895 Use i386_dr_region_ok_for_watchpoint.
4896 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
4897
322a8e06
GB
48982014-06-19 Gary Benson <gbenson@redhat.com>
4899
4900 * i386-nat.c (i386_insert_hw_breakpoint): Use
4901 i386_insert_watchpoint.
4902 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
4903
8f26655c
GB
49042014-06-19 Gary Benson <gbenson@redhat.com>
4905
4906 * i386-nat.c (i386_dr_show): Renamed to
4907 i386_show_dr and made static. All uses updated.
4908 (i386_dr_length_and_rw_bits): Renamed to
4909 i386_length_and_rw_bits and made static.
4910 All uses updated.
4911 (i386_dr_insert_aligned_watchpoint): Renamed to
4912 i386_insert_aligned_watchpoint and made static.
4913 All uses updated.
4914 (i386_dr_remove_aligned_watchpoint): Renamed to
4915 i386_remove_aligned_watchpoint and made static.
4916 All uses updated.
4917 (i386_dr_update_inferior_debug_regs): Renamed to
4918 i386_update_inferior_debug_regs and made static.
4919 All uses updated.
4920 * nat/i386-dregs.h (i386_dr_show): Removed.
4921 (i386_dr_length_and_rw_bits): Likewise.
4922 (i386_dr_insert_aligned_watchpoint): Likewise.
4923 (i386_dr_remove_aligned_watchpoint): Likewise.
4924 (i386_dr_update_inferior_debug_regs): Likewise.
4925
992c7d70
GB
49262014-06-19 Gary Benson <gbenson@redhat.com>
4927
4928 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
4929 * configure: Regenerate.
4930 * config.in: Likewise.
4931 * main.c (signal.h): New include.
4932 (setup_alternate_signal_stack): New function.
4933 (captured_main): Call the above.
4934 * cp-support.c (signal.h): New include.
4935 (catch_demangler_crashes): New flag.
4936 (SIGJMP_BUF): New define.
4937 (SIGSETJMP): Likewise.
4938 (SIGLONGJMP): Likewise.
4939 (gdb_demangle_jmp_buf): New static global.
4940 (gdb_demangle_attempt_core_dump): Likewise.
4941 (gdb_demangle_signal_handler): New function.
4942 (gdb_demangle): If catch_demangler_crashes is set, install the
4943 above signal handler before calling bfd_demangle, and restore
4944 the original signal handler afterwards. Display the offending
4945 symbol and call demangler_warning the first time a segmentation
4946 fault is caught.
4947 (_initialize_cp_support): New maint set/show command.
4948
eae7090b
GB
49492014-06-19 Gary Benson <gbenson@redhat.com>
4950
4951 * utils.h (resource_limit_kind): New enum.
4952 (can_dump_core): New declaration.
4953 (warn_cant_dump_core): Likewise.
4954 (dump_core): Likewise.
4955 * utils.c (dump_core): Made nonstatic. Added new
4956 parameter "limit_kind".
4957 (can_dump_core): Made nonstatic. Moved printing code to...
4958 (warn_cant_dump_core): New function.
4959 (can_dump_core_warn): Likewise.
4960 (internal_vproblem): Replace calls to can_dump_core with
4961 calls to can_dump_core_warn. Supply new argument to each.
4962
57fcfb1b
GB
49632014-06-19 Gary Benson <gbenson@redhat.com>
4964
4965 * utils.h (demangler_vwarning): New declaration.
4966 (demangler_warning): Likewise.
4967 * utils.c (struct internal_problem)
4968 <user_settable_should_quit>: New field.
4969 <user_settable_should_dump_core>: Likewise
4970 (internal_error_problem): Add values for above new fields.
4971 (internal_warning_problem): Likewise.
4972 (demangler_warning_problem): New static global.
4973 (demangler_vwarning): New function.
4974 (demangler_warning): Likewise.
4975 (add_internal_problem_command): Selectively add commands.
4976 (_initialize_utils): New internal problem command.
4977 * maint.c (maintenance_demangler_warning): New function.
4978 (_initialize_maint_cmds): New command.
4979
17a40b44
TT
49802014-06-18 Tom Tromey <tromey@redhat.com>
4981
4982 * f-valprint.c (info_common_command_for_block): Update.
4983 * symtab.h (struct general_symbol_info) <common_block>: Now
4984 const.
4985
346d1dfe
TT
49862014-06-18 Tom Tromey <tromey@redhat.com>
4987
4988 * symtab.h (struct symtab) <blockvector>: Now const.
4989 * ada-lang.c (ada_add_global_exceptions): Update.
4990 * buildsym.c (augment_type_symtab): Update.
4991 * dwarf2read.c (dw2_lookup_symbol): Update.
4992 * jit.c (finalize_symtab): Update.
4993 * jv-lang.c (add_class_symtab_symbol): Update.
4994 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
4995 Update.
4996 * objfiles.c (objfile_relocate1): Update.
4997 * psymtab.c (lookup_symbol_aux_psymtabs)
4998 (maintenance_check_psymtabs): Update.
4999 * python/py-symtab.c (stpy_global_block, stpy_static_block):
5000 Update.
5001 * spu-tdep.c (spu_catch_start): Update.
5002 * symmisc.c (dump_symtab_1): Update.
5003 * symtab.c (lookup_global_symbol_from_objfile)
5004 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
5005 (basic_lookup_transparent_type_quick)
5006 (basic_lookup_transparent_type, find_pc_sect_symtab)
5007 (find_pc_sect_line, search_symbols): Update.
5008 * block.c (find_block_in_blockvector): Make "bl" const.
5009 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
5010 const.
5011 (blockvector_contains_pc): Make "bv" const.
5012 (block_for_pc_sect): Update.
5013 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
5014 (blockvector_contains_pc): Update.
5015 * breakpoint.c (resolve_sal_pc): Update.
5016 * inline-frame.c (block_starting_point_at): Update.
5017
1834676b
TT
50182014-06-18 Tom Tromey <tromey@redhat.com>
5019
5020 * completer.c (complete_line): Make "line_buffer" const.
5021 * completer.h (complete_line): Update.
5022
ac1a991b
TT
50232014-06-18 Tom Tromey <tromey@redhat.com>
5024
5025 * symtab.c (add_macro_name): Remove unneeded cast.
5026
5bc98e52
TT
50272014-06-18 Tom Tromey <tromey@redhat.com>
5028
5029 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
5030 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
5031
8236def8
TT
50322014-06-18 Tom Tromey <tromey@redhat.com>
5033
5034 * probe.c (info_probes_for_ops): Make "arg" const.
5035 * probe.h (info_probes_for_ops): Update.
5036
3977b71f
TT
50372014-06-18 Tom Tromey <tromey@redhat.com>
5038
5039 * varobj.c (varobj_create): Update.
5040 * valops.c (value_of_this): Update.
5041 * tracepoint.c (add_local_symbols, scope_info): Update.
5042 * symtab.h (struct general_symbol_info) <block>: Now const.
5043 * symtab.c (skip_prologue_sal)
5044 (default_make_symbol_completion_list_break_on)
5045 (skip_prologue_using_sal): Update.
5046 * stack.h (iterate_over_block_locals)
5047 (iterate_over_block_local_vars): Update.
5048 * stack.c (print_frame_args): Update.
5049 (iterate_over_block_locals, iterate_over_block_local_vars): Make
5050 parameter const.
5051 (get_selected_block): Make return type const.
5052 * python/py-frame.c (frapy_block): Update.
5053 * python/py-block.c (gdbpy_block_for_pc): Update.
5054 * p-exp.y (%union) <bval>: Now const.
5055 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
5056 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
5057 * m2-exp.y (%union) <bval>: Now const.
5058 * linespec.c (get_current_search_block): Make return type const.
5059 (create_sals_line_offset, find_label_symbols): Update.
5060 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
5061 Update.
5062 (block_starting_point_at): Make "block" const.
5063 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
5064 (check_exception_resume): Update.
5065 * guile/scm-frame.c (gdbscm_frame_block): Update.
5066 * guile/scm-block.c (gdbscm_lookup_block): Update.
5067 * frame.h (get_frame_block): Update.
5068 (get_selected_block): Make return type const.
5069 * frame.c (frame_id_inner): Update.
5070 * f-valprint.c (info_common_command_for_block)
5071 (info_common_command): Update.
5072 * dwarf2loc.c (dwarf2_find_location_expression)
5073 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
5074 (locexpr_describe_location_piece): Update.
5075 * c-exp.y (%union) <bval>: Now const.
5076 * breakpoint.c (resolve_sal_pc): Update.
5077 * blockframe.c (get_frame_block):Make return type const.
5078 (get_pc_function_start, get_frame_function, find_pc_sect_function)
5079 (block_innermost_frame): Update.
5080 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
5081 (block_for_pc, block_for_pc_sect): Update.
5082 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
5083 'pblock' const.
5084 (block_for_pc_sect, block_for_pc): Make return type const.
5085 * ax-gdb.c (gen_expr): Update.
5086 * alpha-mdebug-tdep.c (find_proc_desc): Update.
5087 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
5088 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
5089 (ada_read_var_value): Update.
5090 * ada-exp.y (struct name_info) <block>: Now const.
5091 (%union): Likewise.
5092 (block_lookup): Constify.
5093
b9228891
GB
50942014-06-18 Gary Benson <gbenson@redhat.com>
5095
5096 * nat/i386-dregs.h: New file.
5097 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
5098 * i386-nat.h (i386-dregs.h): New include.
5099 (DR_FIRSTADDR): Now in i386-dregs.h.
5100 (DR_LASTADDR): Likewise.
5101 (DR_NADDR): Likewise.
5102 (DR_STATUS): Likewise.
5103 (DR_CONTROL): Likewise.
5104 (i386_debug_reg_state): Likewise.
5105 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
5106
a1aa2221
LM
51072014-06-18 Don Breazeal <donb@codesourcery.com>
5108
5109 * breakpoint.c (set_longjmp_breakpoint): Call
5110 momentary_breakpoint_from_master with additional argument.
5111 (set_longjmp_breakpoint_for_call_dummy): Call
5112 momentary_breakpoint_from_master with additional argument.
5113 (set_std_terminate_breakpoint): Call
5114 momentary_breakpoint_from_master with additional argument.
5115 (momentary_breakpoint_from_master): Add argument to function
5116 definition and use it to initialize structure member flag.
74228e77 5117 (clone_momentary_breakpoint): Call
a1aa2221
LM
5118 momentary_breakpoint_from_master with additional argument.
5119 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
5120 member flags set in momentary_breakpoint_from_master.
5121
4be83cc2
GB
51222014-06-18 Gary Benson <gbenson@redhat.com>
5123
5124 * i386-nat.c (i386_show_dr): Renamed to
5125 i386_dr_show and made nonstatic. All uses updated.
5126 (i386_length_and_rw_bits): Renamed to
5127 i386_dr_length_and_rw_bits and made nonstatic.
5128 All uses updated.
5129 (i386_insert_aligned_watchpoint): Renamed to
5130 i386_dr_insert_aligned_watchpoint and made nonstatic.
5131 All uses updated.
5132 (i386_remove_aligned_watchpoint): Renamed to
5133 i386_dr_remove_aligned_watchpoint and made nonstatic.
5134 All uses updated.
5135 (i386_update_inferior_debug_regs): Renamed to
5136 i386_dr_update_inferior_debug_regs and made nonstatic.
5137 All uses updated.
5138
131aa0d4
GB
51392014-06-18 Gary Benson <gbenson@redhat.com>
5140
5141 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
5142 (i386_dr_low_can_set_control): Likewise.
5143 (i386_dr_low_set_addr): Likewise.
5144 (i386_dr_low_set_control): Likewise.
5145 (i386_dr_low_get_addr): Likewise.
5146 (i386_dr_low_get_status): Likewise.
5147 (i386_dr_low_get_control): Likewise.
5148 (i386_insert_aligned_watchpoint): Use new macros.
5149 (i386_update_inferior_debug_regs): Likewise.
5150 (i386_stopped_data_address): Likewise.
5151
d9305f7f
GB
51522014-06-18 Gary Benson <gbenson@redhat.com>
5153
5154 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
5155 New parameter. All uses updated.
5156
ea008da4
GB
51572014-06-18 Gary Benson <gbenson@redhat.com>
5158
5159 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
5160 All uses updated.
5161
1b6d4134
GB
51622014-06-18 Gary Benson <gbenson@redhat.com>
5163
5164 * i386-nat.c (debug_printf): New macro.
5165 (i386_get_debug_register_length): Likewise.
5166 (TARGET_HAS_DR_LEN_8): Use above macro.
5167 (i386_show_dr): Use debug_printf instead of puts_unfiltered
5168 and printf_unfiltered. Use phex to format values.
5169
9b4550ef
GB
51702014-06-18 Gary Benson <gbenson@redhat.com>
5171
5172 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
5173 Make const.
5174
6e62758f
GB
51752014-06-18 Gary Benson <gbenson@redhat.com>
5176
5177 * i386-nat.c: Comment changes.
5178
51c79e94
GB
51792014-06-18 Gary Benson <gbenson@redhat.com>
5180
5181 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
5182
3e11889a
GB
51832014-06-18 Gary Benson <gbenson@redhat.com>
5184
5185 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
5186 (i386_insert_aligned_watchpoint): Likewise.
5187 (i386_remove_aligned_watchpoint): Likewise.
5188 (i386_handle_nonaligned_watchpoint): Likewise.
5189
fc6e2f03
GB
51902014-06-18 Gary Benson <gbenson@redhat.com>
5191
5192 * i386-nat.c: Whitespace changes.
5193
2afe7d50
SB
51942014-06-17 Samuel Bronson <naesten@gmail.com>
5195
5196 * MAINTAINERS: Update Roland McGrath's email address.
5197 Thanks to Sergio Durigan Junior for pointing out that he left
6a83deea 5198 Red Hat a while ago, and giving me a current address.
2afe7d50 5199
3bca49ee
TT
52002014-06-17 Tom Tromey <tromey@redhat.com>
5201
5202 * utils.h (savestring): Remove declaration.
5203
6e366df1
TT
52042014-06-17 Tom Tromey <tromey@redhat.com>
5205
5206 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
5207
6be47f0c
KS
52082014-06-16 Keith Seitz <keiths@redhat.com>
5209
5210 PR mi/15863
5211 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
5212 to update the varobj if inferior_ptid is null_ptid.
5213
7bc112c1
TT
52142014-06-16 Tom Tromey <tromey@redhat.com>
5215
5216 * target.h (struct target_ops) <to_info_proc>: Make parameter
5217 const.
5218 (target_info_proc): Update.
5219 * target.c (target_info_proc): Make "args" const.
5220 * procfs.c (procfs_info_proc): Update.
5221 * linux-tdep.c (linux_info_proc): Update.
5222 (linux_core_info_proc_mappings): Make "args" const.
5223 (linux_core_info_proc): Update.
5224 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
5225 * gdbarch.c: Rebuild.
5226 * gdbarch.h: Rebuild.
5227 * corelow.c (core_info_proc): Update.
5228
fee354ee
TT
52292014-06-16 Tom Tromey <tromey@redhat.com>
5230
5231 * target.h (struct target_ops) <to_disconnect>: Make parameter
5232 const.
5233 (target_disconnect): Update.
5234 * target.c (target_disconnect): Make "args" const.
5235 * target-delegates.c: Rebuild.
5236 * remote.c (remote_disconnect): Update.
5237 * record.h (record_disconnect): Update.
5238 * record.c (record_disconnect): Update.
5239 * inf-child.c (inf_child_disconnect): Update.
5240
a30bf1f1
TT
52412014-06-16 Tom Tromey <tromey@redhat.com>
5242
5243 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
5244 * target.c (debug_to_rcmd, default_rcmd): Update.
5245 * target-delegates.c: Rebuild.
5246 * remote.c (remote_rcmd): Update.
5247 * monitor.c (monitor_rcmd): Update.
5248
d03de421
PA
52492014-06-16 Pedro Alves <palves@redhat.com>
5250
5251 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
5252 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
5253 have OBJF_SHARED set.
5254 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
5255 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
5256 instead of OBJF_USERLOADED.
5257 * objfiles.h (OBJF_SHARED): Update comment.
5258 (userloaded_objfile_contains_address_p): Rename to ...
5259 (shared_objfile_contains_address_p): ... this, and update
5260 comments.
5261 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
5262 new objfile.
5263 (remove_symbol_file_command): Skip objfiles that don't have
5264 OBJF_SHARED set.
5265
99f4262f
TT
52662014-06-16 Tom Tromey <tromey@redhat.com>
5267
5268 * minsyms.h (prim_record_minimal_symbol)
5269 (prim_record_minimal_symbol_and_info): Update comments.
5270
97d66cc6
EZ
52712014-06-14 Eli Zaretskii <eliz@gnu.org>
5272
5273 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
5274 or --without-guile, according to how GDB was built.
5275
635c7e8a
TT
52762014-06-13 Tom Tromey <tromey@redhat.com>
5277
5278 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
5279 to help_list.
5280 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
5281 to help_list.
5282 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
5283 help_list.
5284 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
5285 help_list.Pass all_commands, not -1, to help_list.
5286 * cli/cli-dump.c (dump_command, append_command)
5287 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
5288 (binary_dump_command, binary_append_command): Pass all_commands,
5289 not -1, to help_list.
5290 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
5291 -1, to help_list.
5292 * valprint.c (set_print, set_print_raw): Pass all_commands, not
5293 -1, to help_list.
5294 * typeprint.c (set_print_type): Pass all_commands, not -1, to
5295 help_list.
5296 * top.c (set_history): Pass all_commands, not -1, to help_list.
5297 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
5298 all_commands, not -1, to help_list.
5299 * symfile.c (overlay_command): Pass all_commands, not -1, to
5300 help_list.
5301 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
5302 help_list.
5303 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
5304 help_list.
5305 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
5306 -1, to help_list.
5307 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
5308 not -1, to help_list.
5309 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
5310 not -1, to help_list.
5311 * maint.c (maintenance_command, maintenance_info_command)
5312 (maintenance_print_command, maintenance_set_cmd): Pass
5313 all_commands, not -1, to help_list.
5314 * macrocmd.c (macro_command): Pass all_commands, not -1, to
5315 help_list.
5316 * language.c (set_check): Pass all_commands, not -1, to help_list.
5317 * infcmd.c (unset_command): Pass all_commands, not -1, to
5318 help_list.
5319 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
5320 help_list.
5321 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
5322 help_list.
5323 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
5324 help_list.
5325 * breakpoint.c (save_command): Pass all_commands, not -1, to
5326 help_list.
5327 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
5328 all_commands, not -1, to help_list.
5329
b94ade42
PL
53302014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
5331
5332 * regcache.c (struct register_to_invalidate): New structure.
5333 (do_register_invalidate, make_cleanup_regcache_invalidate): New
5334 functions.
5335 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
5336
31f628ae
YQ
53372014-06-12 Yao Qi <yao@codesourcery.com>
5338
5339 * varobj.c (varobj_get_num_children): Call
5340 varobj_is_dynamic_p.
5341 (varobj_list_children): Likewise.
5342 (varobj_update): Likewise. Update comments.
5343
cde5ef40
YQ
53442014-06-12 Yao Qi <yao@codesourcery.com>
5345
5346 * varobj.c (varobj_pretty_printed_p): Rename to ...
5347 (varobj_is_dynamic_p): ... this. New function.
5348 * varobj.h (varobj_pretty_printed_p): Remove declaration.
5349 (varobj_is_dynamic_p): Declare.
5350 * mi/mi-cmd-var.c (print_varobj): All callers updated.
5351 (mi_print_value_p, varobj_update_one): Likewise.
5352
576ea091
YQ
53532014-06-12 Pedro Alves <pedro@codesourcery.com>
5354 Yao Qi <yao@codesourcery.com>
5355
5356 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
5357 (varobj_get_iterator): Wrap up code for pretty-printer by
5358 "#if HAVE_PYTHON" and "#endif".
5359 (update_dynamic_varobj_children): Likewise.
5360
827f100c
YQ
53612014-06-12 Pedro Alves <pedro@codesourcery.com>
5362 Yao Qi <yao@codesourcery.com>
5363
5364 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
5365 gdb_python_initialized is false. Move some code from varobj.c.
5366 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
5367 * varobj.c: Move "varobj-iter.h" inclusion earlier.
5368 (struct varobj_item): Moved to varobj-iter.h".
5369 (varobj_clear_saved_item): New function.
5370 (update_dynamic_varobj_children): Move python-related code to
5371 py-varobj.c.
5372 (free_variable): Call varobj_clear_saved_item and
5373 varobj_iter_delete.
5374
e5250216
YQ
53752014-06-12 Pedro Alves <pedro@codesourcery.com>
5376 Yao Qi <yao@codesourcery.com>
5377
5378 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
5379 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
5380 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
5381 (py-varobj.o): New rule.
5382 * python/py-varobj.c: New file.
5383 * python/python-internal.h (py_varobj_get_iterator): Declare.
5384 * varobj-iter.h: New file.
5385 * varobj.c: Include "varobj-iter.h"
5386 (struct varobj) <child_iter>: Change its type from "PyObject *"
5387 to "struct varobj_iter *".
5388 <saved_item>: Likewise.
5389 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
5390 [HAVE_PYTHON] (varobj_get_iterator): New function.
5391 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
5392 python-specific code to python/py-varobj.c.
5393 (install_visualizer): Call varobj_iter_delete instead of
5394 Py_XDECREF.
5395 * varobj.h (varobj_ensure_python_env): Declare.
5396
5a2e0d6e
YQ
53972014-06-12 Yao Qi <yao@codesourcery.com>
5398
5399 * varobj.c (struct varobj_item): New structure.
5400 (create_child_with_value): Update declaration.
5401 (varobj_add_child): Replace arguments 'name' and 'value' with
5402 'item'. All callers updated.
5403 (install_dynamic_child): Likewise.
5404 (update_dynamic_varobj_children): Likewise.
5405 (varobj_add_child): Likewise.
5406 (create_child_with_value): Likewise.
5407
919b9a93
JB
54082014-06-11 Joel Brobecker <brobecker@adacore.com>
5409
5410 * NEWS: Create a new section for the next release branch.
5411 Rename the section of the current branch, now that it has
5412 been cut.
5413
71a55bdf
JB
54142014-06-11 Joel Brobecker <brobecker@adacore.com>
5415
5416 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
5417 * version.in: Bump version to 7.8.50.DATE-cvs.
5418
364fe1f7
PA
54192014-06-11 Pedro Alves <palves@redhat.com>
5420
5421 PR remote/17028
5422 * ser-mingw.c (net_windows_socket_check_pending): New function.
5423 (net_windows_select_thread): Ignore spurious wakeups. Use
5424 net_windows_socket_check_pending.
5425 (net_windows_wait_handle): Check for pending events with
5426 ioctlsocket, through net_windows_socket_check_pending, instead of
5427 checking the socket's event.
5428
5a6c7709
SC
54292014-06-10 Siva Chandra Reddy <sivachandra@google.com>
5430
5431 * python/python-internal.h (gdb_PyObject_GetAttrString)
5432 (gdb_PyObject_HasAttrString): New inline function definitions.
5433 * py-value.c (get_field_flag): Remove the now unnecessary cast to
5434 char * of the second argument to PyObject_GetAttrString.
74228e77 5435
0e58ee40
JB
54362014-06-10 Joel Brobecker <brobecker@adacore.com>
5437
5438 * serial.c (serial_write): Fix index of character to be printed
5439 in call to serial_logchar when serial debug traces are enabled.
5440
d190df30
JB
54412014-06-10 Joel Brobecker <brobecker@adacore.com>
5442
5443 * gdbtypes (resolve_dynamic_range): Add function description.
5444
b4b01d36
PA
54452014-06-09 Pedro Alves <palves@redhat.com>
5446
5447 * linux-nat.c (linux_child_follow_fork): Initialize status with
5448 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
5449 inner block. Only pass the signal to PTRACE_DETACH if in pass
5450 state.
5451
3657956b
GB
54522014-06-09 Gary Benson <gbenson@redhat.com>
5453
5454 * common/signals.c (gdb_signal_from_host): Reorder to separate
5455 the always-available ANSI-standard signals from the signals that
5456 require checking.
5457 (do_gdb_signal_to_host): Likewise.
5458 * proc-events.c (signal_table): Likewise.
5459
c077881a
HZ
54602014-06-08 Hui Zhu <hui@codesourcery.com>
5461
5462 * common/linux-ptrace.c (linux_disable_event_reporting): New
5463 function.
5464 * common/linux-ptrace.h (linux_disable_event_reporting): New
5465 declaration.
5466 * linux-nat.c (linux_child_follow_fork): Do a single step before
5467 detach.
5468
4186eb54
KS
54692014-06-07 Keith Seitz <keiths@redhat.com>
5470
5471 Revert:
5472 PR c++/16253
5473 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5474 from symbol_matches_domain in symtab.c. All local callers
5475 of symbol_matches_domain updated.
5476 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5477 search STRUCT_DOMAIN.
5478 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5479 independently. standard_lookup will do that automatically.
5480 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5481 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5482 (cp_lookup_symbol_in_namespace): Likewise.
5483 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5484 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5485 may return a STRUCT_DOMAIN match.
5486 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5487 * cp-support.c: Include language.h.
5488 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5489 VAR_DOMAIN.
5490 * psymtab.c (match_partial_symbol): Compare the requested
5491 domain with the symbol's domain directly.
5492 (lookup_partial_symbol): Likewise.
5493 * symtab.c (lookup_symbol_in_language): Explain when/why
5494 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5495 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5496 appropriate languages.
5497 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5498 and moved to ada-lang.c
5499 (lookup_block_symbol): Explain that this function only returns
5500 symbol matching the requested DOMAIN.
5501 Compare the requested domain with the symbol's domain directly.
5502 (iterate_over_symbols): Compare the requested domain with the
5503 symbol's domain directly.
5504 * symtab.h (symbol_matches_domain): Remove.
5505
25326a28 55062014-06-06 Doug Evans <xdje42@gmail.com>
d2929fdc
DE
5507
5508 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
5509 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
5510 (gdbscm_guile_version_is_at_least): Declare.
5511 (gdbscm_scm_string_to_int): Declare.
5512 * guile/guile.c (gdbscm_guile_major_version): New global.
5513 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
5514 (guile_datadir): New static global.
5515 (gdbscm_guile_data_directory): New function.
5516 (initialize_scheme_side): Update.
5517 (misc_guile_functions): Add guile-data-directory.
5518 (initialize_gdb_module): Fetch guile version number.
5519 * guile/lib/gdb.scm: Remove call to add-to-load-path.
5520 * guile/lib/gdb/init.scm (%initialize!): Ditto.
5521 * guile/lib/gdb/boot.scm: Use guile-data-directory.
5522 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
5523 comments.
5524 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
5525 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
5526 * guile/scm-value.c (gdbscm_value_to_string): Only call
5527 scm_port_conversion_strategy if Guile version >= 2.0.6.
5528
0a770bb2 55292014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
5530
5531 * main.c (print_gdb_help): Add -q and --silent.
5532
73ba372c
GB
55332014-06-06 Gary Benson <gbenson@redhat.com>
5534
5535 * common/signals.c: Remove preprocessor conditionals for
5536 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
5537 SIGSEGV and SIGTERM.
5538 * proc-events.c: Likewise.
5539
c33b2f12
MM
55402014-06-06 Markus Metzger <markus.t.metzger@intel.com>
5541
5542 * symfile.c (symfile_free_objfile): Remove restriction to
5543 OBJF_USERLOADED.
5544 * symfile-mem.c (symbol_file_add_from_memory): Call
5545 add_target_sections_of_objfile.
5546
fb934770
LC
55472014-06-05 Ludovic Courtès <ludo@gnu.org>
5548
5549 * guile/scm-value.c (gdbscm_history_append_x): Use
5550 'vlscm_get_value_smob_arg_unsafe' instead of
5551 'vlscm_scm_to_value'.
5552
6ef284bd
SM
55532014-06-05 Simon Marchi <simon.marchi@ericsson.com>
5554
5555 PR mi/15806
5556 * utils.c (printchar): Don't escape at all if quoter is NUL.
5557 Update function documentation to clarify effect of parameter
5558 QUOTER.
5559 * remote.c (escape_buffer): Pass '\\' as the quoter to
5560 fputstrn_unfiltered.
5561 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
5562 generate the output.
5563 (mi_solib_unloaded): Same.
5564
270c9937
JB
55652014-06-05 Joel Brobecker <brobecker@adacore.com>
5566
5567 * development.sh: Delete.
5568 * Makefile.in (config.status): Adjust dependency on development.sh.
5569 * configure.ac: Adjust development.sh source call.
5570 * configure: Regenerate.
5571
16f691fb
DE
55722014-06-04 Doug Evans <xdje42@gmail.com>
5573
5574 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
5575 is_scheme_bkpt, spec.
5576 (bpscm_make_breakpoint_smob): Initialize new members.
5577 (gdbscm_create_breakpoint_x): Split into two ...
5578 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
5579 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
5580 (scheme_function breakpoint_functions): Update.
5581 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
5582 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
5583 register-breakpoint!.
5584
ef7cab6b
JB
55852014-06-04 Joel Brobecker <brobecker@adacorer.com>
5586
5587 PR server/17023
5588 * mem-break.c (z_type_supported): Return zero if
5589 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
5590
012370f6
TT
55912014-06-04 Tom Tromey <tromey@redhat.com>
5592
5593 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
5594 value_from_contents_and_address_unresolved.
5595 (ada_template_to_fixed_record_type_1): Likewise.
5596 (ada_which_variant_applies): Likewise.
5597 * value.h (value_from_contents_and_address_unresolved): Declare.
5598 * value.c (value_from_contents_and_address_unresolved): New
5599 function.
5600 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
5601 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
5602 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
5603
92e2a17f
TT
56042014-06-04 Tom Tromey <tromey@redhat.com>
5605
5606 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
5607
c0939df1
TT
56082014-06-04 Tom Tromey <tromey@redhat.com>
5609
5610 * procfs.c (procfs_attach): Make "args" const.
5611 * windows-nat.c (windows_attach): Make "args" const.
5612 * nto-procfs.c (procfs_attach): Make "args" const.
5613 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
5614 * go32-nat.c (go32_attach): Make "args" const.
5615 * gnu-nat.c (gnu_attach): Make "args" const.
5616 * darwin-nat.c (darwin_attach): Make "args" const.
5617 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
5618 * linux-nat.c (linux_nat_attach): Make "args" const.
5619 * remote.c (extended_remote_attach_1, extended_remote_attach):
5620 Make "args" const.
5621 * target.h (struct target_ops) <to_attach>: Make "args" const.
5622 (find_default_attach): Likewise.
5623 * utils.c (parse_pid_to_attach): Make "args" const.
5624 * utils.h (parse_pid_to_attach): Update.
5625
8eaff7cd
TT
56262014-06-04 Tom Tromey <tromey@redhat.com>
5627
5628 * target-delegates.c: Rebuild.
5629 * target.c (default_thread_address_space): New function.
5630 (target_thread_address_space): Simplify.
5631 * target.h (struct target_ops) <to_thread_address_space>: Add
5632 TARGET_DEFAULT_FUNC.
5633
1913f160
DE
56342014-06-04 Doug Evans <xdje42@gmail.com>
5635
5636 * guile/scm-type.c (type_smob): Remove duplicate typedef.
5637
70ad5bff
MM
56382014-06-04 Markus Metzger <markus.t.metzger@intel.com>
5639
5640 * record-btrace.c: Include event-loop.h and inf-loop.h.
5641 (record_btrace_resume_exec_dir)
5642 (record_btrace_async_inferior_event_handler)
5643 (record_btrace_handle_async_inferior_event): New.
5644 (record_btrace_open): Create async event handler.
5645 (record_btrace_close): Delete async event handler.
5646 (record_btrace_resume): Set record_btrace_resume_exec_dir,
5647 Mark async event handler.
5648 (record_btrace_execution_direction): New.
5649 (init_record_btrace_ops): Initialize to_execution_direction.
5650
b6210538
DE
56512014-06-03 Doug Evans <xdje42@gmail.com>
5652
5653 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
5654 (gdbscm_make_parameter): Ditto.
5655
a5b1fd27
DE
56562014-06-03 Doug Evans <dje@google.com>
5657
5658 * exec.c (exec_close_1): Call clear_section_table instead of
5659 resize_section_table.
5660 (clear_section_table): New function.
5661 (resize_section_table): Make static. Rename arg num_added to
5662 adjustment.
5663 * exec.h (clear_section_table): Declare.
5664 (resize_section_table): Delete.
5665 * progspace.c (release_program_space): Call clear_section_table
5666 instead of resize_section_table.
5667
0c6e92a5
SC
56682014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5669
5670 * NEWS (Python Scripting): Add entry about the new xmethods
5671 feature.
5672
883964a7
SC
56732014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5674
5675 * python/py-xmethods.c: New file.
5676 * python/py-objfile.c (objfile_object): New field 'xmethods'.
5677 (objfpy_dealloc): XDECREF on the new xmethods field.
5678 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
5679 field.
5680 (objfpy_get_xmethods): New function.
5681 (objfile_getset): New entry 'xmethods'.
5682 * python/py-progspace.c (pspace_object): New field 'xmethods'.
5683 (pspy_dealloc): XDECREF on the new xmethods field.
5684 (pspy_new, pspace_to_pspace_object): Initialize xmethods
5685 field.
5686 (pspy_get_xmethods): New function.
5687 (pspace_getset): New entry 'xmethods'.
5688 * python/python-internal.h: Add declarations for new functions.
5689 * python/python.c (_initialize_python): Invoke
5690 gdbpy_initialize_xmethods.
5691 * python/lib/gdb/__init__.py (xmethods): New
5692 attribute.
5693 * python/lib/gdb/xmethod.py: New file.
5694 * python/lib/gdb/command/xmethods.py: New file.
5695
58992dc5
SC
56962014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5697
5698 * eval.c (evaluate_subexp_standard): Call the xmethod if the
5699 best match method returned by find_overload_match is an xmethod.
5700 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
5701 the best matching operator returned by find_overload_match is an
5702 xmethod.
5703 * valops.c: #include "extension.h".
5704 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
5705 Return void. The list of matching source methods is returned in
5706 "fn_list" and a vector of matching debug method workers is
5707 returned in "xm_worker_vec". Update all callers.
5708 (value_find_oload_method_list): Likewise.
5709 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
5710 non-NULL, then the index of the best matching method in this
5711 vector is returned. Update all callers.
5712 (find_overload_match): Include xmethods while performing overload
5713 resolution.
5714
e81e7f5e
SC
57152014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5716
5717 * defs.h (enum lval_type): New enumerator "lval_xcallable".
5718 * extension-priv.h (struct extension_language_ops): Add the
5719 xmethod interface.
5720 * extension.c (new_xmethod_worker, clone_xmethod_worker,
5721 get_matching_xmethod_workers, get_xmethod_argtypes,
5722 invoke_xmethod, free_xmethod_worker,
5723 free_xmethod_worker_vec): New functions.
5724 * extension.h: #include "common/vec.h".
5725 New function declarations.
5726 (struct xmethod_worker): New struct.
5727 (VEC (xmethod_worker_ptr)): New vector type.
5728 (xmethod_worker_ptr): New typedef.
5729 (xmethod_worker_vec): Likewise.
5730 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
5731 builtin_type.
5732 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
5733 (struct builtin_type): New field "xmethod".
5734 * valarith.c (value_ptradd): Assert that the value argument is not
5735 lval_xcallable.
5736 * valops.c (value_must_coerce_to_target): Return 0 for
5737 lval_xcallable values.
5738 * value.c (struct value): New field XM_WORKER in the field
5739 LOCATION.
5740 (value_address, value_raw_address): Return 0 for lval_xcallable
5741 values.
5742 (set_value_address): Assert that the value is not an
5743 lval_xcallable.
5744 (value_free): Free the associated xmethod worker when freeing
5745 lval_xcallable values.
5746 (set_value_component_location): Assert that the WHOLE value is not
5747 lval_xcallable.
5748 (value_of_xmethod, call_xmethod): New functions.
5749 * value.h: Declare "struct xmethod_worker".
5750 Declare new functions value_of_xmethod, call_xmethod.
5751
ef370185
JB
57522014-06-03 Joel Brobecker <brobecker@adacore.com>
5753 Pedro Alves <palves@redhat.com>
5754
5755 PR breakpoints/17000
5756 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
5757 New function, extracted from software_breakpoint_inserted_here_p.
5758 (software_breakpoint_inserted_here_p): Replace factored out code
5759 by call to find_non_raw_software_breakpoint_inserted_here.
5760 (bp_target_info_copy_insertion_state): New function.
5761 (bkpt_insert_location): Handle the case of a single-step
5762 breakpoint already inserted at the same address.
5763 (bkpt_remove_location): Handle the case of a single-step
5764 breakpoint still inserted at the same address.
5765 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
5766 breakpoint already inserted at the same address.
5767 (deprecated_remove_raw_breakpoint): Handle the case of a
5768 non-raw breakpoint still inserted at the same address.
5769 (find_single_step_breakpoint): New function, extracted from
5770 single_step_breakpoint_inserted_here_p.
5771 (find_single_step_breakpoint): New function,
5772 factored out from single_step_breakpoint_inserted_here_p.
5773 (single_step_breakpoint_inserted_here_p): Reimplement.
5774
1e2ccb61
BM
57752014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
5776
5777 Pushed by Joel Brobecker <brobecker@adacore.com>
5778 * source.c (show_substitute_path_command): Fix display of matching
5779 substitution rules.
5780
d3448d85
GB
57812014-06-03 Gary Benson <gbenson@redhat.com>
5782
5783 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
5784
06eb1586
DE
57852014-06-02 Doug Evans <xdje42@gmail.com>
5786
5787 Add parameter support for Guile.
5788 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
5789 (SUBDIR_GUILE_SRCS): Add scm-param.c.
5790 (scm-param.o): New rule.
5791 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
5792 (gdbscm_misc_error): Declare.
5793 (gdbscm_canonicalize_command_name): Declare.
5794 (gdbscm_scm_to_host_string): Declare.
5795 (gdbscm_scm_from_host_string): Declare.
5796 (gdbscm_initialize_parameters): Declare.
5797 * guile/guile.c (initialize_gdb_module): Call
5798 gdbscm_initialize_parameters.
5799 * guile/lib/gdb.scm: Export parameter symbols.
5800 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
5801 cmdscm_canonicalize_name and made public. All callers updated.
5802 * guile/scm-exception.c (gdbscm_misc_error): New function.
5803 * guile/scm-param.c: New file.
5804 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
5805 (gdbscm_scm_to_host_string): New function.
5806 (gdbscm_scm_from_host_string): New function.
5807 * scm-utils.c (gdbscm_gc_dup_argv): New function.
5808
e698b8c4
DE
58092014-06-02 Doug Evans <xdje42@gmail.com>
5810
5811 Add command support for Guile.
5812 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
5813 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
5814 (scm-cmd.o): New rule.
5815 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
5816 (gdbscm_user_error_p): Declare.
5817 (gdbscm_parse_command_name): Declare.
5818 (gdbscm_valid_command_class_p): Declare.
5819 (gdbscm_initialize_commands): Declare.
5820 * guile/guile.c (initialize_gdb_module): Call
5821 gdbscm_initialize_commands.
5822 * guile/lib/gdb.scm: Export command symbols.
5823 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
5824 (throw-user-error): New function.
5825 * guile/scm-cmd.c: New file.
5826 * guile/scm-exception.c (user_error_symbol): New static global.
5827 (gdbscm_user_error_p): New function.
5828 (gdbscm_initialize_exceptions): Set user_error_symbol.
5829 * scm-utils.c (gdbscm_gc_xstrdup): New function.
5830
fb1f94b0
PM
58312014-06-02 Phil Muldoon <pmuldoon@redhat.com>
5832
5833 * top.c (command_loop): Handle comments here...
5834 (command_line_input): ... not here.
5835
ded03782
DE
58362014-06-02 Doug Evans <xdje42@gmail.com>
5837
5838 Add progspace support for Guile.
5839 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
5840 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
5841 (scm-progspace.o): New rule.
5842 * guile/guile-internal.h (pspace_smob): New typedef.
5843 (psscm_pspace_smob_pretty_printers): Declare.
5844 (psscm_pspace_smob_from_pspace): Declare.
5845 (psscm_scm_from_pspace): Declare.
5846 * guile/guile.c (initialize_gdb_module): Call
5847 gdbscm_initialize_pspaces.
5848 * guile/lib/gdb.scm: Export progspace symbols.
5849 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
5850 support.
5851 (append-pretty-printer!): Ditto.
5852 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
5853 Implement.
5854 * guile/scm-progspace.c: New file.
5855
397998fc
AM
58562014-06-03 Alan Modra <amodra@gmail.com>
5857
5858 * ppc64-tdep.c (ppc64_standard_linkage8): New.
5859 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
5860
6aa5f3a6
DE
58612014-06-02 Doug Evans <dje@google.com>
5862
5863 Add support for skeletonless type units.
5864 * dwarf2read.c (struct dwarf2_per_objfile): New member
5865 n_allocated_type_units.
5866 (struct dwarf2_per_objfile) <tu_stats>: New member
5867 nr_all_type_units_reallocs.
5868 (create_signatured_type_table_from_index): Initialize
5869 n_allocated_type_units
5870 (create_all_type_units): Ditto.
5871 (add_type_unit): Move up in file. New arg slot.
5872 All callers updated. Increase space for all_type_units more
5873 efficiently.
5874 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
5875 (lookup_dwo_signatured_type): Handle skeletonless TUs.
5876 (lookup_dwp_signatured_type): Ditto.
5877 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
5878 All callers updated.
5879 (build_type_psymtabs_1): Leave type_unit_groups as
5880 NULL if no TUs present.
5881 (print_tu_stats): New function.
5882 (process_skeletonless_type_unit): New function.
5883 (process_dwo_file_for_skeletonless_type_units): New
5884 function.
5885 (process_skeletonless_type_units): New function.
5886 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
5887 Call print tu_stats if debugging enabled.
5888
41fac0cf
PA
58892014-06-02 Pedro Alves <palves@redhat.com>
5890
5891 * breakpoint.c (build_target_command_list): Don't build a command
5892 list if we have any duplicate location that isn't a dprintf.
5893
cd1608cc
PA
58942014-06-02 Pedro Alves <palves@redhat.com>
5895
5896 * breakpoint.c (dprintf_breakpoint_hit): New function.
5897 (initialize_breakpoint_ops): Install it as dprintf's
5898 breakpoint_hit method.
5899
486ef3b9
JB
59002014-06-02 Joel Brobecker <brobecker@adacore.com>
5901
5902 * source.c (substitute_path_rule_matches): Simplify using
5903 filename_ncmp instead of FILENAME_CMP.
5904
230cd560
JB
59052014-06-02 Joel Brobecker <brobecker@adacore.com>
5906
5907 * source.c (substitute_path_rule_matches): Remove trailing spaces.
5908
16954d5d
LC
59092014-06-01 Ludovic Courtès <ludo@gnu.org>
5910
5911 * configure.ac: When Guile is available, check for the
5912 availability of 'scm_new_smob'.
5913 * configure, config.h.in: Regenerate.
5914 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
5915 function.
5916
53e8a631
AB
59172014-05-30 Andrew Burgess <aburgess@broadcom.com>
5918
5919 * frame.c (struct frame_info): Add stop_string field.
5920 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
5921 (get_prev_frame_always): Old content moved into
5922 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
5923 TRY_CATCH, handle MEMORY_ERROR exceptions.
5924 (frame_stop_reason_string): New function definition.
5925 * frame.h (unwind_stop_reason_to_string): Extend comment to
5926 mention frame_stop_reason_string.
5927 (frame_stop_reason_string): New function declaration.
5928 * stack.c (frame_info): Switch to frame_stop_reason_string.
5929 (backtrace_command_1): Switch to frame_stop_reason_string.
5930 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
5931 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
5932 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
5933
70e38b8e
AB
59342014-05-30 Andrew Burgess <aburgess@broadcom.com>
5935
5936 * frame.c (frame_stop_reason_string): Rename to ...
5937 (unwind_stop_reason_to_string): this.
5938 * frame.h (frame_stop_reason_string): Rename to ...
5939 (unwind_stop_reason_to_string): this.
5940 * stack.c (frame_info): Update call to frame_stop_reason_string.
5941 (backtrace_command_1): Likewise.
5942 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
5943 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
5944
938f0e2f
AB
59452014-05-30 Andrew Burgess <aburgess@broadcom.com>
5946
5947 * frame.c (remove_prev_frame): New function.
5948 (get_prev_frame_if_no_cycle): Create / discard cleanup using
5949 remove_prev_frame.
5950
a09dd441
PA
59512014-05-29 Pedro Alves <palves@redhat.com>
5952
5953 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
5954 and make it const. When a single-step decays to a continue,
5955 clear 'step', not 'hw_step'. Pass whether the caller wanted
5956 to step to user_visible_resume_ptid, not what we ask the
5957 target to do.
5958
bdc36728
PA
59592014-05-29 Pedro Alves <palves@redhat.com>
5960
5961 * infrun.c (process_event_stop_test, handle_step_into_function)
5962 (handle_step_into_function_backward): Adjust.
5963 Don't set the even thread's stop_step and call stop_waiting before
5964 calling end_stepping_range. Instead do that ...
5965 (end_stepping_range): ... here. Take an ecs pointer parameter.
5966
22bcd14b
PA
59672014-05-29 Pedro Alves <palves@redhat.com>
5968
5969 * infrun.c (stop_stepping): Rename to ...
5970 (stop_waiting): ... this.
5971 (proceed): Update comment.
5972 (process_event_stop_test, handle_inferior_event)
5973 (handle_signal_stop, handle_step_into_function)
5974 (handle_step_into_function_backward): Update.
5975
4ae57c05
PA
59762014-05-29 Pedro Alves <palves@redhat.com>
5977
5978 * infcall.c (run_inferior_call): Don't check whether the current
5979 thread is running after the proceed call.
5980
329ea579
PA
59812014-05-29 Pedro Alves <palves@redhat.com>
5982 Tom Tromey <tromey@redhat.com>
5983
5984 * NEWS: Mention "maint set target-async", "set mi-async", and that
5985 background execution commands are now always available.
5986 * target.h (target_async_permitted): Update comment.
5987 * target.c (target_async_permitted, target_async_permitted_1):
5988 Default to 1.
5989 (set_target_async_command): Rename to ...
5990 (maint_set_target_async_command): ... this.
5991 (show_target_async_command): Rename to ...
5992 (maint_show_target_async_command): ... this.
5993 (_initialize_target): Adjust.
5994 * infcmd.c (prepare_execution_command): Make extern.
5995 * inferior.h (prepare_execution_command): Declare.
5996 * infrun.c (set_observer_mode): Leave target async alone.
5997 * mi/mi-interp.c (mi_interpreter_init): Install
5998 mi_on_sync_execution_done as sync_execution_done observer.
5999 (mi_on_sync_execution_done): New function.
6000 (mi_execute_command_input_handler): Don't print the prompt if we
6001 just started a synchronous command with an async target.
6002 (mi_on_resume): Check sync_execution before printing prompt.
6003 * mi/mi-main.h (mi_async_p): Declare.
6004 * mi/mi-main.c: Include gdbcmd.h.
6005 (mi_async_p): New function.
6006 (mi_async, mi_async_1): New globals.
6007 (set_mi_async_command, show_mi_async_command, mi_async): New
6008 functions.
6009 (exec_continue): Call prepare_execution_command.
6010 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
6011 (mi_execute_async_cli_command): Use mi_async_p.
6012 (_initialize_mi_main): Install "set mi-async". Make
6013 "target-async" a deprecated alias.
6014
92bcb5f9
PA
60152014-05-29 Pedro Alves <palves@redhat.com>
6016
6017 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
6018 (_initialize_cli_interp): Adjust.
6019 * event-loop.c: Include "observer.h".
6020 (start_event_loop): Notify 'command_error' observers instead of
6021 calling display_gdb_prompt. Remove FIXME comment.
6022 * event-top.c (display_gdb_prompt): Remove call into the
6023 interpreters.
6024 * inf-loop.c: Include "observer.h".
6025 (inferior_event_handler): Notify 'command_error' observers instead
6026 of calling display_gdb_prompt.
6027 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
6028 observers instead of calling display_gdb_prompt.
6029 * interps.c (interp_set): Don't call display_gdb_prompt.
6030 (current_interp_display_prompt_p): Delete.
6031 * interps.h (interp_prompt_p): Delete declaration.
6032 (interp_prompt_p_ftype): Delete.
6033 (struct interp_procs) <prompt_proc_p>: Delete field.
6034 (current_interp_display_prompt_p): Delete declaration.
6035 * mi-interp.c (mi_interpreter_prompt_p): Delete.
6036 (_initialize_mi_interp): Adjust.
6037 * tui-interp.c (tui_init): Install 'sync_execution_done' and
6038 'command_error' observers.
6039 (tui_on_sync_execution_done, tui_on_command_error): New
6040 functions.
6041 (tui_display_prompt_p): Delete.
6042 (_initialize_tui_interp): Adjust.
6043
fd664c91
PA
60442014-05-29 Pedro Alves <palves@redhat.com>
6045
6046 PR gdb/13860
6047 * cli/cli-interp.c: Include infrun.h and observer.h.
6048 (cli_uiout, cli_interp): New globals.
6049 (cli_on_signal_received, cli_on_end_stepping_range)
6050 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
6051 functions.
6052 (cli_interpreter_init): Install them as 'end_stepping_range',
6053 'signal_received' 'signal_exited', 'exited' and 'no_history'
6054 observers.
6055 (_initialize_cli_interp): Remove cli_interp local.
6056 * infrun.c (handle_inferior_event): Call the several stop reason
6057 observers instead of printing the stop reason directly.
6058 (end_stepping_range): New function.
6059 (print_end_stepping_range_reason, print_signal_exited_reason)
6060 (print_exited_reason, print_signal_received_reason)
6061 (print_no_history_reason): Make static, and add an uiout
6062 parameter. Print to that instead of to CURRENT_UIOUT.
6063 * infrun.h (print_end_stepping_range_reason)
6064 (print_signal_exited_reason, print_exited_reason)
6065 (print_signal_received_reason print_no_history_reason): New
6066 declarations.
6067 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
6068 'mi_uiout'.
6069 <cli_uiout>: New field.
6070 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
6071 uiout for CLI output. Install 'signal_received',
6072 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
6073 observers.
6074 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
6075 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
6076 (mi_on_no_history): New functions.
6077 (ui_out_free_cleanup): Delete function.
6078 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
6079 instead use the one already stored in the MI interpreter data.
6080 (mi_ui_out): Adjust.
6081 * tui/tui-interp.c: Include infrun.h and observer.h.
6082 (tui_interp): New global.
6083 (tui_on_signal_received, tui_on_end_stepping_range)
6084 (tui_on_signal_exited, tui_on_exited)
6085 (tui_on_no_history): New functions.
6086 (tui_init): Install them as 'end_stepping_range',
6087 'signal_received' 'signal_exited', 'exited' and 'no_history'
6088 observers.
6089 (_initialize_tui_interp): Delete tui_interp local.
6090
8817a6f2
PA
60912014-05-29 Pedro Alves <palves@redhat.com>
6092
6093 PR gdb/15713
6094 * linux-nat.c (linux_nat_resume_callback): Rename the second
6095 parameter to 'except'. Skip LP if it points to EXCEPT.
6096 (linux_nat_resume): Don't mark the event lwp as not stopped
6097 before resuming sibling lwps. Instead ask
6098 linux_nat_resume_callback to skip the event lwp. Mark it as not
6099 stopped after actually resuming it.
6100 (linux_handle_syscall_trap): Mark the lwp as not stopped after
6101 resuming it.
6102 (wait_lwp): Mark the lwp as stopped here.
6103 (stop_wait_callback): Mark the lwp as not stopped right after
6104 resuming it. Don't mark lwps as stopped here.
6105 (linux_nat_filter_event): Mark the lwp as stopped earlier.
6106 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
6107
251bde03
PA
61082014-05-29 Pedro Alves <palves@redhat.com>
6109
6110 PR PR15693
6111 * infrun.c (resume): Determine how much to resume depending on
6112 whether the caller wanted a step, not whether we can hardware step
6113 the target. Mark all threads that we intend to run as running,
6114 unless we're calling an inferior function.
6115 (normal_stop): If the thread is running an infcall, don't finish
6116 thread state.
6117 * target.c (target_resume): Don't mark threads as running here.
6118
7f3c0343
JB
61192014-05-28 Joel Brobecker <brobecker@adacore.com>
6120
6121 * serial.c (_initialize_serial): Remove support for
6122 the "set remotebaud" and "show remotebaud" commands.
6123 * NEWS: Add entry documenting the removal of that command.
6124
ee34b3f9
YQ
61252014-05-28 Yao Qi <yao@codesourcery.com>
6126
6127 * charset.c: Fix typo in comments.
6128
add6c04d
GB
61292014-05-27 Gary Benson <gbenson@redhat.com>
6130
6131 * utils.c (internal_vproblem): Prompt for a bug report.
6132
92c48fc5
AW
61332014-05-26 Andy Wingo <wingo@igalia.com>
6134
6135 * guile/scm-arch.c (arscm_mark_arch_smob):
6136 * guile/scm-block.c (bkscm_mark_block_smob)
6137 (bkscm_mark_block_syms_progress_smob):
6138 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
6139 * guile/scm-exception.c (exscm_mark_exception_smob):
6140 * guile/scm-frame.c (frscm_mark_frame_smob):
6141 * guile/scm-iterator.c (itscm_mark_iterator_smob):
6142 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
6143 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
6144 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
6145 (ppscm_mark_pretty_printer_worker_smob):
6146 * guile/scm-symbol.c (syscm_mark_symbol_smob):
6147 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
6148 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
6149 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
6150 mark functions.
6151 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
6152 function.
6153
b2715b27
AW
61542014-05-26 Andy Wingo <wingo@igalia.com>
6155 Doug Evans <xdje42@gmail.com>
6156
6157 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
6158 empty_base_class. All uses updated.
6159 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
6160 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
6161 Adapt all callers.
6162 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
6163 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
6164 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
6165 (gdbscm_gsmob_has_property_p, add_property_name)
6166 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
6167 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
6168 (gdb-object-has-property?, gdb-object-properties): Remove.
6169 (gdb-object-kind): Renamed from gsmob-kind.
6170
214ab2da
AW
61712014-05-26 Andy Wingo <wingo@igalia.com>
6172
6173 * configure.ac (try_guile_versions): Allow building with guile 2.2.
6174 * configure: Regenerate.
6175
589fdceb
MM
61762014-05-23 Markus Metzger <markus.t.metzger@intel.com>
6177
6178 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
6179
67b5c0c1
MM
61802014-05-23 Markus Metzger <markus.t.metzger@intel.com>
6181
6182 * record-btrace.c (record_btrace_allow_memory_access): Remove.
6183 (replay_memory_access_read_only, replay_memory_access_read_write)
6184 (replay_memory_access_types, replay_memory_access)
6185 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
6186 (cmd_set_record_btrace, cmd_show_record_btrace)
6187 (cmd_show_replay_memory_access): New.
6188 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
6189 (record_btrace_remove_breakpoint): Replace
6190 record_btrace_allow_memory_access with replay_memory_access.
6191 (_initialize_record_btrace): Add commands.
6192 * NEWS: Announce it.
6193
036cd381
RR
61942014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6195
6196 * aarch64-linux-nat.c (asm/ptrace.h): Include.
6197
c77c1e42
RR
61982014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6199
6200 * MAINTAINERS (Write After Approval): Move self back from
6201 paper trail.
6202
45741a9c
PA
62032014-05-22 Pedro Alves <palves@redhat.com>
6204
6205 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
6206 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
6207 (disable_randomization, enum exec_direction_kind)
6208 (execution_direction, stop_registers, start_remote)
6209 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
6210 (wait_for_inferior, normal_stop, get_last_target_status)
6211 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
6212 (insert_step_resume_breakpoint_at_sal)
6213 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
6214 (set_step_info, print_stop_event, signal_stop_state)
6215 (signal_print_state, signal_pass_state, signal_stop_update)
6216 (signal_print_update, signal_pass_update)
6217 (update_signals_program_target, clear_exit_convenience_vars)
6218 (displaced_step_dump_bytes, update_observer_mode)
6219 (signal_catch_update, gdb_signal_from_command): Move
6220 declarations ...
6221 * infrun.h: ... to this new file.
6222 * amd64-tdep.c: Include infrun.h.
6223 * annotate.c: Include infrun.h.
6224 * arch-utils.c: Include infrun.h.
6225 * arm-linux-tdep.c: Include infrun.h.
6226 * arm-tdep.c: Include infrun.h.
6227 * break-catch-sig.c: Include infrun.h.
6228 * breakpoint.c: Include infrun.h.
6229 * common/agent.c: Include infrun.h instead of inferior.h.
6230 * corelow.c: Include infrun.h.
6231 * event-top.c: Include infrun.h.
6232 * go32-nat.c: Include infrun.h.
6233 * i386-tdep.c: Include infrun.h.
6234 * inf-loop.c: Include infrun.h.
6235 * infcall.c: Include infrun.h.
6236 * infcmd.c: Include infrun.h.
6237 * infrun.c: Include infrun.h.
6238 * linux-fork.c: Include infrun.h.
6239 * linux-nat.c: Include infrun.h.
6240 * linux-thread-db.c: Include infrun.h.
6241 * monitor.c: Include infrun.h.
6242 * nto-tdep.c: Include infrun.h.
6243 * procfs.c: Include infrun.h.
6244 * record-btrace.c: Include infrun.h.
6245 * record-full.c: Include infrun.h.
6246 * remote-m32r-sdi.c: Include infrun.h.
6247 * remote-mips.c: Include infrun.h.
6248 * remote-notif.c: Include infrun.h.
6249 * remote-sim.c: Include infrun.h.
6250 * remote.c: Include infrun.h.
6251 * reverse.c: Include infrun.h.
6252 * rs6000-tdep.c: Include infrun.h.
6253 * s390-linux-tdep.c: Include infrun.h.
6254 * solib-irix.c: Include infrun.h.
6255 * solib-osf.c: Include infrun.h.
6256 * solib-svr4.c: Include infrun.h.
6257 * target.c: Include infrun.h.
6258 * top.c: Include infrun.h.
6259 * windows-nat.c: Include infrun.h.
6260 * mi/mi-interp.c: Include infrun.h.
6261 * mi/mi-main.c: Include infrun.h.
6262 * python/py-threadevent.c: Include infrun.h.
6263
98eb56a4
PA
62642014-05-22 Pedro Alves <palves@redhat.com>
6265
6266 * infrun.c (handle_inferior_event): Store the exit code for
6267 --return-child-result here, instead of ...
6268 (print_exited_reason): ... here.
6269
17b2616c
PA
62702014-05-21 Pedro Alves <palves@redhat.com>
6271
6272 PR gdb/13860
6273 * gdbthread.h (struct thread_control_state): New field
6274 `command_interp'.
6275 * infrun.c (follow_fork): Copy the new thread control field to the
6276 child fork thread.
6277 (clear_proceed_status_thread): Clear the new thread control field.
6278 (proceed): Set the new thread control field.
6279 * interps.h (command_interp): Declare.
6280 * interps.c (command_interpreter): New global.
6281 (command_interp): New function.
6282 (interp_exec): Set `command_interpreter' while here.
6283 * cli-out.c (cli_uiout_dtor): New function.
6284 (cli_ui_out_impl): Install it.
6285 * mi/mi-interp.c: Include cli-out.h.
6286 (mi_cmd_interpreter_exec): Add comment.
6287 (restore_current_uiout_cleanup): New function.
6288 (ui_out_free_cleanup): New function.
6289 (mi_on_normal_stop): If finishing an execution command started by
6290 a CLI command, or any kind of breakpoint-like event triggered,
6291 print the stop event to the output (CLI) stream.
6292 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
6293
5166082f
PA
62942014-05-21 Pedro Alves <palves@redhat.com>
6295
6296 * cli/cli-cmds.c (list_command): Handle the first "list" after the
6297 current source line having changed.
6298 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
6299 * infrun.c (normal_stop): Adjust call to
6300 set_current_sal_from_frame.
6301 * source.c (clear_lines_listed_range): New function.
6302 (set_current_source_symtab_and_line, identify_source_line): Clear
6303 the lines listed range.
6304 (line_info): Handle the first "info line" after the current source
6305 line having changed.
6306 * stack.c (print_stack_frame): Remove center handling.
6307 (set_current_sal_from_frame): Remove 'center' parameter. Don't
6308 center sal.line.
6309
c1ee2fb3
PA
63102014-05-21 Pedro Alves <palves@redhat.com>
6311
6312 * inf-child.c (inf_child_mourn_inferior): New function.
6313 * inf-child.h (inf_child_mourn_inferior): New declaration.
6314 * darwin-nat.c (darwin_mourn_inferior): Use
6315 inf_child_mourn_inferior.
6316 * gnu-nat.c (gnu_mourn_inferior): Likewise.
6317 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
6318 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
6319 * nto-procfs.c (procfs_mourn_inferior): Likewise.
6320 * windows-nat.c (windows_mourn_inferior): Likewise.
6321
5c6d4fb2
DE
63222014-05-21 Doug Evans <xdje42@gmail.com>
6323
250748cb 6324 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5c6d4fb2 6325
4a2722c5
DE
63262014-05-21 Doug Evans <xdje42@gmail.com>
6327
17292b30 6328 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4a2722c5
DE
6329 (gdbscm_out_of_range_error): Ditto.
6330 (gdbscm_memory_error): Ditto.
250748cb
DE
6331 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
6332 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4a2722c5
DE
6333 (gdbscm_out_of_range_error): Update.
6334 (gdbscm_memory_error): Update.
6335 (gdbscm_scm_to_target_string_unsafe): Delete.
6336
6a3cb8e8
PA
63372014-05-21 Pedro Alves <palves@redhat.com>
6338
6339 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
6340 globals.
6341 (inf_child_open_target): New function.
6342 (inf_child_open): Use inf_child_open_target to push the target
6343 instead of erroring out.
6344 (inf_child_disconnect, inf_child_close)
6345 (inf_child_maybe_unpush_target): New functions.
6346 (inf_child_target): Install inf_child_disconnect and
6347 inf_child_close. Store a pointer to the returned object.
6348 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
6349 declarations.
6350 * target.c (auto_connect_native_target): New global.
6351 (show_default_run_target): New function.
6352 (find_default_run_target): Return NULL if automatically connecting
6353 to the native target is disabled.
6354 (_initialize_target): Install set/show auto-connect-native-target.
6355 * NEWS: Mention "set auto-connect-native-target", and "target
6356 native".
6357 * linux-nat.c (super_close): New global.
6358 (linux_nat_close): Call super_close.
6359 (linux_nat_add_target): Store a pointer to the base class's
6360 to_close method.
6361 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
6362 inf_child_maybe_unpush.
6363 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
6364 already pushed.
6365 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
6366 the inferior. Use inf_child_maybe_unpush_target.
6367 (inf_ttrace_attach): Don't push the target if it is already
6368 pushed.
6369 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
6370 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
6371 after mourning the inferior. Use inf_child_maybe_unpush_target.
6372 (darwin_attach_pid): Don't push the target if it is already
6373 pushed.
6374 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
6375 mourning the inferior. Use inf_child_maybe_unpush_target.
6376 (gnu_detach): Use inf_child_maybe_unpush_target.
6377 * go32-nat.c (go32_create_inferior): Don't push the target if it
6378 is already pushed.
6379 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
6380 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
6381 (procfs_open): Rename to ...
6382 (procfs_open_1): ... this. Add target_ops parameter. Adjust
6383 comments. Can target_preopen before changing node. Call
6384 inf_child_open_target to push the target explicitly.
6385 (procfs_attach): Don't push the target if it is already pushed.
6386 (procfs_detach): Use inf_child_maybe_unpush_target.
6387 (procfs_create_inferior): Don't push the target if it is already
6388 pushed.
6389 (nto_native_ops): New global.
6390 (procfs_open): Reimplement.
6391 (procfs_native_open): New function.
6392 (init_procfs_targets): Install procfs_native_open as to_open of
6393 "target native". Store a pointer to the "native" target in
6394 nto_native_ops.
6395 * procfs.c (procfs_attach): Don't push the target if it is already
6396 pushed.
6397 (procfs_detach): Use inf_child_maybe_unpush_target.
6398 (procfs_mourn_inferior): Only unpush the target after mourning the
6399 inferior. Use inf_child_maybe_unpush_target.
6400 (procfs_init_inferior): Don't push the target if it is already
6401 pushed.
6402 * windows-nat.c (do_initial_windows_stuff): Don't push the target
6403 if it is already pushed.
6404
930ee1b1
PA
64052014-05-21 Pedro Alves <palves@redhat.com>
6406
6407 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
6408 and "procfs" targets are now called "native" instead.
6409
1f5d1b13
PA
64102014-05-21 Pedro Alves <palves@redhat.com>
6411
6412 * go32-nat.c (go32_open): Delete.
6413 (go32_target): Don't override the to_open method.
6414
132f8e03
PA
64152014-05-21 Pedro Alves <palves@redhat.com>
6416
6417 * nto-procfs.c (procfs_can_run): New function.
6418 (nto_procfs_ops): New global.
6419 (init_procfs_targets): New, based on procfs_target. Install
6420 "target native" in addition to "target procfs".
6421 (_initialize_procfs): Call init_procfs_targets instead of adding
6422 the target here.
6423
03c136c3
PA
64242014-05-21 Pedro Alves <palves@redhat.com>
6425
6426 * windows-nat.c (windows_target): Don't override to_shortname,
6427 to_longname or to_doc.
6428
a635d0f3
PA
64292014-05-21 Pedro Alves <palves@redhat.com>
6430
6431 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
6432 to_doc.
6433
4f9b5133
PA
64342014-05-21 Pedro Alves <palves@redhat.com>
6435
6436 * darwin-nat.c (_initialize_darwin_inferior): Don't override
6437 to_shortname, to_longname or to_doc.
6438
bc85afde
PA
64392014-05-21 Pedro Alves <palves@redhat.com>
6440
6441 * go32-nat.c (go32_target): Don't override to_shortname,
6442 to_longname or to_doc.
6443
4ebfc96e
PA
64442014-05-21 Pedro Alves <palves@redhat.com>
6445
6446 * inf-child.c (inf_child_open): Remove mention of "child".
6447 (inf_child_target): Rename target to "native" instead of "child".
6448
2648dfed
AA
64492014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6450
6451 * Makefile.in (SFILES): Delete "regset.c".
6452 (COMMON_OBS): Delete "regset.o".
6453 * regset.c: Remove.
6454 * regset.h (regset_alloc): Delete prototype.
6455
b13feb94
AA
64562014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6457
6458 * sparc-linux-tdep.c (sparc32_linux_gregset)
6459 (sparc32_linux_fpregset): New static regset structures.
6460 (sparc32_linux_init_abi): Drop dynamic regset allocations.
6461 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
6462 'fpregset' fields.
6463 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
6464 (sparc64_linux_fpregset): New static regset structures.
6465 (sparc64_linux_init_abi): Drop dynamic regset allocations.
6466 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
6467 New static regset structures.
6468 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
6469 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
6470 New static regset structures.
6471 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
6472 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
6473 New static regset structures.
6474 (sparc64obsd_init_abi): Drop dynamic regset allocations.
6475 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
6476 New static regset structures.
6477 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
6478
b4fd25c9
AA
64792014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6480
6481 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
6482 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
6483 register maps ("regmaps") from "*regset" to "*regmap". Do this
6484 for all regmap types and variables.
6485 * sparc-linux-tdep.c (sparc32_linux_step_trap)
6486 (sparc32_linux_supply_core_gregset)
6487 (sparc32_linux_collect_core_gregset)
6488 (sparc32_linux_supply_core_fpregset)
6489 (sparc32_linux_collect_core_fpregset): Likewise.
6490 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
6491 (sparc_gregmap, sparc_fpregmap): ... these.
6492 (sparc_supply_gregset, sparc_collect_gregset)
6493 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6494 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
6495 (_initialize_sparc_nat): Rename regmaps.
6496 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
6497 (sparc_gregmap, sparc_fpregmap): ... these.
6498 (sparc_supply_gregset, sparc_collect_gregset)
6499 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6500 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
6501 Rename macros to...
6502 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
6503 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
6504 Likewise.
6505 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
6506 Rename to...
6507 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
6508 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
6509 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
6510 regmaps.
6511 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6512 (sparc32_bsd_fpregset): Rename to...
6513 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6514 (sparc32_bsd_fpregmap): ... these.
6515 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
6516 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6517 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
6518 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
6519 (struct sparc_gregmap, struct sparc_fpregmap)
6520 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6521 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
6522 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
6523 (sparc32_supply_regset, sparc32_collect_gregset)
6524 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
6525 prototypes.
6526 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
6527 (sparc64_linux_ptrace_gregmap): ... this.
6528 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
6529 (_initialize_sparc64_linux_nat): Rename regmaps.
6530 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
6531 (sparc64_linux_core_gregmap): ... this.
6532 (sparc64_linux_supply_core_gregset)
6533 (sparc64_linux_collect_core_gregset)
6534 (sparc64_linux_supply_core_fpregset)
6535 (sparc64_linux_collect_core_fpregset): Rename regmaps.
6536 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
6537 (sparc64_sol2_fpregset): Rename to...
6538 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
6539 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
6540 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
6541 regmaps.
6542 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
6543 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
6544 (sparc64_bsd_fpregset): Rename to...
6545 (struct sparc_gregmap, sparc64_sol2_gregmap)
6546 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
6547 (sparc64_bsd_fpregmap): ... these.
6548 (sparc64_supply_gregset, sparc64_collect_gregset)
6549 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
6550 prototypes.
6551 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
6552 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
6553 (sparc64fbsd_gregmap): ... this.
6554 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
6555 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
6556 Rename regmaps.
6557 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
6558 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
6559 (sparc64nbsd_collect_fpregset): Likewise.
6560 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
6561 (sparc64nbsd_gregmap): ... this.
6562 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
6563 regmaps.
6564 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
6565 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
6566 (sparc64obsd_gregmap): ... this.
6567 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
6568 regmaps.
6569 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
6570 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
6571 (sparc32nbsd_gregmap): ... this.
6572 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
6573 regmaps.
6574
8fea3224
AA
65752014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6576
6577 * score-tdep.c (score7_linux_gregset): New static regset
6578 structure.
6579 (score7_linux_regset_from_core_section): Remove dynamic regset
6580 allocation.
6581 (score_gdbarch_init): Drop allocation of tdep structure.
6582 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
6583
24534243
AA
65842014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6585
6586 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
6587 regset structures.
6588 (am33_regset_from_core_section): Remove dynamic regset
6589 allocations.
6590
b7195f27
AA
65912014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6592
6593 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
6594 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
6595 structures.
6596 (mips_linux_regset_from_core_section): Remove dynamic regset
6597 allocations.
6598 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6599 'gregset64', 'fpregset', and 'fpregset64'.
6600 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
6601 deleted tdep fields.
6602
ecc37a5a
AA
66032014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6604
6605 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
6606 regset structures.
6607 (amd64_regset_from_core_section): Remove dynamic regset
6608 allocations.
6609 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
6610 structure.
6611 (amd64obsd_regset_from_core_section): Remove dynamic regset
6612 allocation.
6613 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
6614 Likewise.
6615 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
6616 x86-common regset supply function.
6617 * i386-tdep.c (i386_collect_gregset): Make static.
6618 (i386_gregset): New global regset structure.
6619 (i386_fpregset, i386_xstateregset): New static regset structures.
6620 (i386_regset_from_core_section): Remove dynamic regset
6621 allocations.
6622 (i386_gdbarch_init): Remove initialization of tdep fields
6623 'gregset', 'fpregset', and 'xstateregset'.
6624 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6625 'fpregset', and 'xstateregset'.
6626 (i386_collect_gregset): Remove prototype.
6627 (i386_gregset): New declaration.
6628 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
6629 structure.
6630 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
6631 allocation.
6632
b7611c43
AA
66332014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6634
6635 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
6636 (arm_linux_vfpregset): New static regset structures.
6637 (arm_linux_regset_from_core_section): Remove dynamic allocation of
6638 regset structures.
6639 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
6640 and 'vfpregset' fields.
6641
a069a2bd
AA
66422014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6643
6644 * aarch64-linux-tdep.c (aarch64_linux_gregset)
6645 (aarch64_linux_fpregset): New static regset structures.
6646 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
6647 of regset structures.
6648 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
6649 'fpregset' fields.
6650
09424cff
AA
66512014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6652
6653 * regset.h (struct regset): Remove gdbarch field.
6654 * regset.c (regset_alloc): Drop initialization of gdbarch field.
6655 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6656 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
6657 Likewise.
6658 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
6659 (ppc32_linux_fpregset, ppc32_linux_vrregset)
6660 (ppc32_linux_vsxregset): Likewise.
6661 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
6662 via the regcache instead of the regset.
6663 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
6664 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
6665 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
6666 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
6667 Likewise.
6668
3ca7dae4
AA
66692014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6670
6671 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
6672 Constify structures.
6673 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
6674 (alphanbsd_aout_gregset): Likewise.
6675 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
6676 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
6677 Likewise.
6678 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
6679 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
6680 Likewise.
6681 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
6682 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
6683 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
6684 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
6685 * m88k-tdep.c (m88k_gregset): Likewise.
6686 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
6687 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
6688 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6689 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
6690 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
6691 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
6692 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
6693 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
6694 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
6695 Likewise.
6696 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
6697 * sh-tdep.h (sh_corefile_gregset): Likewise.
6698 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
6699 * vax-tdep.c (vax_gregset): Likewise.
6700
5876f503
JK
67012014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6702
6703 Fix TLS access for -static -pthread.
6704 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
6705 (try_thread_db_load_1): Initialize it.
6706 (thread_db_get_thread_local_address): Call it if LM is zero.
6707 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
6708 * target.h (struct target_ops) (to_get_thread_local_address): Add
6709 load_module_addr comment.
6710
0256a6ac
PA
67112014-05-21 Pedro Alves <palves@redhat.com>
6712
6713 * dcache.c (dcache_read_memory_partial): If reading the cache line
6714 fails, fallback to reading just the memory the caller wanted.
6715
227533ac
DE
67162014-05-20 Doug Evans <dje@google.com>
6717
6718 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
6719 instead of get_current_arch.
6720
936d2992
PA
67212014-05-20 Pedro Alves <palves@redhat.com>
6722
6723 * NEWS: Mention that compare-sections now works with all targets.
6724
6725 * remote.c (PACKET_qCRC): New enum value.
6726 (remote_verify_memory): Don't send qCRC if the target has no
6727 execution. Use packet_support/packet_ok. If the target doesn't
6728 support the qCRC packet, fallback to a deep memory copy.
6729 (compare_sections_command): Say "target image" instead of "remote
6730 executable".
6731 (_initialize_remote): Add PACKET_qCRC to the list of config
6732 packets that have no associated command. Extend comment.
6733 * target.c (simple_verify_memory, default_verify_memory): New
6734 function.
6735 * target.h (struct target_ops) <to_verify_memory>: Default to
6736 default_verify_memory.
6737 (simple_verify_memory): New declaration.
6738 * target-delegates.c: Regenerate.
6739
e59fa00f
MM
67402014-05-20 Markus Metzger <markus.t.metzger@intel.com>
6741
6742 * record-btrace.c (record_btrace_step_thread): Check for empty history.
6743
f2205de0
HZ
67442014-05-20 Hui Zhu <hui@codesourcery.com>
6745 Yao Qi <yao@codesourcery.com>
6746
6747 PR backtrace/16558
6748 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
6749 and change address of sp and pc.
6750
c4e54771
TT
67512014-05-19 Tom Tromey <tromey@redhat.com>
6752
6753 * gdbtypes.c (rank_function): Use XNEWVEC.
6754 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
6755
73051182
DE
67562014-05-19 Doug Evans <dje@google.com>
6757
6758 * dwarf2read.c (build_type_psymtabs_1): Renamed from
6759 build_type_unit_groups and moved closer to only caller. Remove
6760 arguments. All references updated. Remove outdated .gdb_index
6761 comment.
6762 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
6763 build_type_psymtabs_1.
6764
8832e7e3
DE
67652014-05-19 Doug Evans <dje@google.com>
6766
6767 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
6768 n_type_unit_groups, all_type_unit_groups. All uses removed.
6769 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
6770 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
6771 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
6772 (add_type_unit_group_to_table): Delete.
6773
cd8ae15e
DE
67742014-05-19 Doug Evans <dje@google.com>
6775
6776 * eval.c (evaluate_subexp_standard): Add some comments.
6777
08f4850b
DE
67782014-05-17 Doug Evans <xdje42@gmail.com>
6779
6780 * progspace.c (remove_program_space): Delete, unused.
6781 * progspace.h (remove_program_space): Ditto.
6782
bed8455c
DE
67832014-05-17 Doug Evans <xdje42@gmail.com>
6784
6785 * inferior.c (prune_inferiors): Fix comment.
6786 (remove_inferior_command): Call prune_program_spaces.
6787
8d551b02
DE
67882014-05-16 Doug Evans <dje@google.com>
6789
6790 New command line option -D.
6791 * NEWS: Mention it.
6792 * main.c (set_gdb_data_directory): New function.
6793 (captured_main): Recognize -D. Flag error for --data-directory "".
6794 Call set_gdb_data_directory.
6795 (print_gdb_help): Print --data-directory, -D.
6796 * main.h (set_gdb_data_directory): Declare.
6797 * top.c (staged_gdb_datadir): New static global.
6798 (set_gdb_datadir): Call set_gdb_data_directory
6799 (show_gdb_datadir): New function.
6800 (init_main): Update init of data-directory parameter.
6801
18848e28
GF
68022014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
6803
6804 Import the "dirfd" gnulib module.
6805 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
6806 * gnulib/aclocal.m4: Update.
6807 * gnulib/config.in: Update.
6808 * gnulib/configure: Update.
6809 * gnulib/import/Makefile.am: Update.
6810 * gnulib/import/Makefile.in: Update.
6811 * gnulib/import/dirfd.c: New.
6812 * gnulib/import/m4/dirfd.m4: New.
6813 * gnulib/import/m4/gnulib-cache.m4: Update.
6814 * gnulib/import/m4/gnulib-comp.m4: Update.
6815
95c64f92
YQ
68162014-05-16 Pierre Muller <muller@sourceware.org>
6817 Yao Qi <yao@codesourcery.com>
6818
6819 * valprint.c (print_wchar): Move the code on checking whether
6820 W is a printable wide char to the default branch of switch
6821 statement below. Call wchar_printable instead of gdb_iswprint.
6822
cac395ea
TM
68232014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
6824
19679eca 6825 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
cac395ea
TM
6826 ldr.w and ldrd instructions.
6827
83655187
DE
68282014-05-15 Doug Evans <dje@google.com>
6829
6830 * dwarf2read.c (read_structure_type): Delete outdated comments.
6831
dd756689
TT
68322014-05-14 Tom Tromey <tromey@redhat.com>
6833
6834 * macrocmd.c (print_macro_definition): Reindent.
6835
75ddda77
DE
68362014-05-13 Doug Evans <xdje42@gmail.com>
6837
6838 * python/py-cmd.c (cmdpy_completer): Add comment.
6839 (completers): Make const.
6840
b0f16a3e
SM
68412014-05-13 Simon Marchi <simon.marchi@ericsson.com>
6842
6843 * infrun.c (resume): Remove should_resume (unused). Move up
6844 declaration of resume_ptid.
6845
033c3379
TT
68462014-05-13 Tom Tromey <tromey@redhat.com>
6847
6848 * language.h (unop_type_check): Remove.
6849 (binop_type_check): Don't declare.
6850
9b44a3a5
AA
68512014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
6852
6853 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
6854 call to regcache_raw_collect.
6855
303a33fa
SM
68562014-05-12 Simon Marchi <simon.marchi@ericsson.com>
6857
6858 * mi/mi-console.c (mi_console_raw_packet): Use the value from
6859 mi_console->quote as the quoting character.
6860
196100a0
SM
68612014-05-12 Simon Marchi <simon.marchi@ericsson.com>
6862
6863 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
6864
f989a1c8
TT
68652014-04-29 Tom Tromey <tromey@redhat.com>
6866
6867 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
6868 "show debug varobj".
6869
9404b58f
KM
68702014-05-07 Kyle McMartin <kyle@redhat.com>
6871
6872 Pushed by Joel Brobecker <brobecker@adacore.com>.
6873 * aarch64-tdep.c (aarch64_software_single_step): New function.
6874 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
6875 with aarch64_software_single_step.
6876
5e49ba57
JB
68772014-05-05 Joel Brobecker <brobecker@adacore.com>
6878
6879 GDB 7.7.1 released.
6880
c888a17d
KS
68812014-05-05 Keith Seitz <keiths@redhat.com>
6882
6883 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
6884 variable or history value is successfully parsed.
6885
290a839c
YQ
68862014-05-05 Yao Qi <yao@codesourcery.com>
6887 Pedro Alves <palves@redhat.com>
6888
6889 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
6890 address of blocks that intersects the requested range. Trim
6891 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
6892 sections.
6893 * ctf.c (ctf_xfer_partial): Likewise.
6894
91256dc2
YQ
68952014-05-05 Yao Qi <yao@codesourcery.com>
6896
6897 * printcmd.c (display_command): Remove the check to
6898 target_has_execution.
6899
07284463
MK
69002014-05-03 Mark Kettenis <kettenis@gnu.org>
6901
6902 * ppcobsd-nat.c: Include "obsd-nat.h".
6903 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
6904 add_target.
6905 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
6906
30a1e6cc
SDJ
69072014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
6908
6909 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
6910 and 16-bit signed and unsigned arguments. Update comment.
6911 (stap_parse_probe_arguments): Extend code to handle such
6912 arguments. Use warning instead of complaint to notify about
6913 unrecognized bitness.
6914
f33da99a
SDJ
69152014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
6916
6917 PR breakpoints/16889
6918 * stap-probe.c (stap_parse_probe_arguments): Simplify
6919 check for non-prefixed probes (i.e., probes whose
6920 arguments do not start with "N@"). Always set the
6921 argument type to a sane value.
6922
95cf3b38
DT
69232014-05-01 David Taylor <dtaylor@emc.com>
6924
6925 * remote.c (compare_sections_command): Add -r option to compare
6926 all loadable read-only sections.
6927
1cfdf534
SC
69282014-04-30 Siva Chandra Reddy <sivachandra@google.com>
6929
6930 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
6931 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
6932 Update all callers.
6933 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
6934 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
6935 Remove unused CORE_ADDR argument. Update all callers.
6936
ca4f7f8b
PA
69372014-04-29 Pedro Alves <palves@redhat.com>
6938
6939 * remote.c (struct packet_config) <detect>: Extend comment.
6940 (add_packet_config_cmd): Don't set the config's detect or support
6941 fields here.
6942 (init_all_packet_configs): Also initialize the config's 'detect'
6943 field.
6944 (reset_all_packet_configs_support): New function.
6945 (remote_open_1): Call reset_all_packet_configs_support instead of
6946 init_all_packet_configs.
6947 (_initialize_remote): Initialize all packet configs. Assert that
6948 all packets have an associated command, except a few known
6949 outliers.
6950
11c1ba78
JB
69512014-04-28 Joel Brobecker <brobecker@adacore.com>
6952
6953 * dwarf2read.c (read_subrange_type): Handle dynamic
6954 DW_AT_lower_bound attributes.
6955
8739bc53
JB
69562014-04-28 Joel Brobecker <brobecker@adacore.com>
6957
6958 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
6959 dynamic bounds before computing its upper bound.
6960 (ada_discrete_type_low_bound): Same as above with the lower bound.
6961
6f8a3220
JB
69622014-04-28 Joel Brobecker <brobecker@adacore.com>
6963
6964 * dwarf2read.c (is_dynamic_type): Return true for dynamic
6965 range types. Adjust the array handling implementation to
6966 take advantage of this change.
6967 (resolve_dynamic_range): New function, mostly extracted from
6968 resolve_dynamic_bounds.
6969 (resolve_dynamic_array): New function, mostly extracted from
6970 resolve_dynamic_bounds.
6971 (resolve_dynamic_bounds): Delete.
6972 (resolve_dynamic_type): Reimplement. Add handling of
6973 TYPE_CODE_RANGE types.
6974
4d072ce4
JB
69752014-04-28 Joel Brobecker <brobecker@adacore.com>
6976
6977 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
6978 handling of parallel ___XA types.
6979
52865325
JB
69802014-04-28 Joel Brobecker <brobecker@adacore.com>
6981
6982 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
6983 unnecessary second call to static_unwrap_type.
6984
433e77fa
HZ
69852014-04-27 Hui Zhu <hui@codesourcery.com>
6986
6987 * stack.c (print_frame_info): Call do_gdb_disassembly with
6988 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
6989
b51a69ee
DE
69902014-04-26 Doug Evans <xdje42@gmail.com>
6991
6992 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
6993
7ae1a6a6
PA
69942014-04-25 Pedro Alves <palves@redhat.com>
6995
6996 PR server/16255
6997 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
6998 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
6999 and newline from built string.
7000 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
7001 (linux_ptrace_attach_fail_reason): ... this.
7002 * linux-nat.c (linux_nat_attach): Adjust to use
7003 linux_ptrace_attach_fail_reason.
7004
4082afcc
PA
70052014-04-25 Pedro Alves <palves@redhat.com>
7006
7007 * remote.c (struct remote_state): Remove multi_process_aware,
7008 non_stop_aware, cond_tracepoints, cond_breakpoints,
7009 breakpoint_commands, fast_tracepoints, static_tracepoints,
7010 install_in_trace, disconnected_tracing,
7011 enable_disable_tracepoints, string_tracing, and
7012 augmented_libraries_svr4_read fields.
7013 (remote_multi_process_p): Move further below in the file.
7014 (struct packet_config): Add comments.
7015 (update_packet_config): Delete function.
7016 (show_packet_config_cmd): Use packet_config_support.
7017 (add_packet_config_cmd): Use NULL as set callback.
7018 (packet_ok): "set remote foo-packet"-style commands no longer
7019 change config->supported -- adjust.
7020 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
7021 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
7022 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
7023 (PACKET_QNonStop, PACKET_multiprocess_feature)
7024 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
7025 (PACKET_DisconnectedTracing_feature)
7026 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
7027 (set_remote_protocol_packet_cmd): Delete function.
7028 (packet_config_support, packet_support): New functions.
7029 (set_remote_protocol_Z_packet_cmd): Don't call
7030 update_packet_config.
7031 (remote_query_attached, remote_pass_signals)
7032 (remote_program_signals, remote_threads_info)
7033 (remote_threads_extra_info, remote_start_remote): Use
7034 packet_support.
7035 (remote_start_remote): Use packet_config_support and
7036 packet_support.
7037 (init_all_packet_configs): Set all packets to unknown support,
7038 instead of calling update_packet_config.
7039 (remote_check_symbols): Use packet_support.
7040 (remote_supported_packet): Unconditionally set the packet config's
7041 support status.
7042 (remote_multi_process_feature, remote_non_stop_feature)
7043 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
7044 (remote_breakpoint_commands_feature)
7045 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
7046 (remote_install_in_trace_feature)
7047 (remote_disconnected_tracing_feature)
7048 (remote_enable_disable_tracepoint_feature)
7049 (remote_string_tracing_feature)
7050 (remote_augmented_libraries_svr4_read_feature): Delete functions.
7051 (remote_protocol_features): Adjust to use remote_supported_packet
7052 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
7053 "ConditionalTracepoints", "ConditionalBreakpoints",
7054 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
7055 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
7056 "EnableDisableTracepoints", and "tracenz".
7057 (remote_query_supported): Use packet_support.
7058 (remote_open_1): Adjust.
7059 (extended_remote_attach_1): Use packet_support. Switch on the
7060 result of packet_ok instead of checking whether the packet ended
7061 up disabled.
7062 (remote_vcont_resume): Use packet_support.
7063 (remote_resume, remote_stop_ns, fetch_register_using_p)
7064 (remote_prepare_to_store, store_register_using_P)
7065 (check_binary_download, remote_write_bytes): Use packet_support.
7066 (remote_vkill): Use packet_support. Switch on the result of
7067 packet_ok instead of checking whether the packet ended up
7068 disabled.
7069 (extended_remote_supports_disable_randomization): Use
7070 packet_support.
7071 (extended_remote_run): Switch on the result of packet_ok instead
7072 of checking whether the packet ended up disabled.
7073 (remote_insert_breakpoint, remote_remove_breakpoint)
7074 (remote_insert_watchpoint, remote_remove_watchpoint)
7075 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
7076 packet_support.
7077 (remote_search_memory): Use packet_config_support.
7078 (remote_get_thread_local_address, remote_get_tib_address)
7079 (remote_hostio_send_command, remote_can_execute_reverse): Use
7080 packet_support.
7081 (remote_supports_cond_tracepoints)
7082 (remote_supports_cond_breakpoints)
7083 (remote_supports_fast_tracepoints)
7084 (remote_supports_static_tracepoints)
7085 (remote_supports_install_in_trace)
7086 (remote_supports_enable_disable_tracepoint)
7087 (remote_supports_string_tracing)
7088 (remote_can_run_breakpoint_commands): Rewrite, checking whether
7089 the packet config says the feature is enabled or disabled.
7090 (remote_download_tracepoint, remote_trace_set_readonly_regions)
7091 (remote_get_trace_status): Use packet_support.
7092 (remote_set_disconnected_tracing): Adjust to check whether the
7093 feature is enabled with packet_support.
7094 (remote_set_trace_buffer_size, remote_use_agent)
7095 (remote_can_use_agent, remote_supports_btrace): Use
7096 packet_support.
7097 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
7098 Use packet_config_support.
7099 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
7100 the packet config says the feature is enabled or disabled.
7101 (set_range_stepping): Use packet_support.
7102
bdb52a22
TT
71032014-04-25 Tom Tromey <tromey@redhat.com>
7104
7105 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
7106 argument.
7107
e9475ead
SA
71082014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
7109
7110 * NEWS: Mention support for C99 variable length arrays.
7111
82eacd52
JB
71122014-04-24 Joel Brobecker <brobecker@adacore.com>
7113
7114 * ada-lang.c (standard_exc): Expand introductory comment.
7115
01f9f808
MS
71162014-04-24 Michael Sturm <michael.sturm@mintel.com>
7117 Walfred Tedeschi <walfred.tedeschi@intel.com>
7118
7119 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
7120 AVX512 registers.
7121 (amd64_linux_read_description): Add code to handle AVX512 xstate
7122 mask and return respective tdesc.
7123 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
7124 and features/i386/x32-avx512-linux.c.
7125 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
7126 (amd64_linux_core_read_description): Add code to handle AVX512
7127 xstate mask and return respective tdesc.
7128 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
7129 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
7130 calculation.
7131 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
7132 (tdesc_amd64_avx512_linux): New prototype.
7133 (tdesc_x32_avx512_linux): Likewise.
7134 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
7135 features/i386/x32-avx512.c.
7136 (amd64_ymm_avx512_names): New register names for pseudo
7137 registers YMM16-31.
7138 (amd64_ymmh_avx512_names): New register names for raw registers
7139 YMMH16-31.
7140 (amd64_k_names): New register names for K registers.
7141 (amd64_zmmh_names): New register names for ZMM raw registers.
7142 (amd64_zmm_names): New registers names for ZMM pseudo registers.
7143 (amd64_xmm_avx512_names): New register names for XMM16-31
7144 registers.
7145 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
7146 registers.
7147 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
7148 if feature is present.
7149 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
7150 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
7151 (AMD64_NUM_REGS): Adjust to new number of registers.
7152 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
7153 registers supplied via XSTATE by AVX512 registers.
7154 (i386_linux_read_description): Add case for AVX512.
7155 * i386-linux-tdep.c: Include i386-avx512-linux.c.
7156 (i386_linux_gregset_reg_offset): Add AVX512 registers.
7157 (i386_linux_core_read_description): Add case for AVX512.
7158 (i386_linux_init_abi): Install supported register note section
7159 for AVX512.
7160 (_initialize_i386_linux_tdep): Add call to tdesc init function for
7161 AVX512.
7162 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
7163 registers to be number of zmm7h + 1.
7164 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
7165 * i386-tdep.c: Include features/i386/i386-avx512.c.
7166 (i386_zmm_names): Add ZMM pseudo register names array.
7167 (i386_zmmh_names): Add ZMM raw register names array.
7168 (i386_k_names): Add K raw register names array.
7169 (num_lower_zmm_regs): Add constant for the number of lower ZMM
7170 registers. AVX512 has 16 more ZMM registers than there are YMM
7171 registers.
7172 (i386_zmmh_regnum_p): Add function to look up register number of
7173 ZMM raw registers.
7174 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
7175 (i386_k_regnum_p): Likewise for K raw registers.
7176 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
7177 registers added by AVX512.
7178 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
7179 registers added by AVX512.
7180 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
7181 added by AVX512.
7182 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
7183 (i386_pseudo_register_name): Add ZMM pseudo registers.
7184 (i386_zmm_type): Construct and return vector registers type for ZMM
7185 registers.
7186 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
7187 ZMM0-31 pseudo registers and K registers.
7188 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
7189 and YMM16-31 registers from register cache.
7190 (i386_pseudo_register_write): Add code to write K, ZMM and
7191 YMM16-31 registers.
7192 (i386_register_reggroup_p): Add code to include/exclude AVX512
7193 registers in/from respective register groups.
7194 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
7195 registers if feature is present in xcr0.
7196 (i386_gdbarch_init): Add code to initialize AVX512 feature
7197 variables in tdep structure, wire in pseudo registers and call
7198 initialize_tdesc_i386_avx512.
7199 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
7200 variables.
7201 (i386_regnum): Add AVX512 registers.
7202 (I386_SSE_NUM_REGS): New define for number of SSE registers.
7203 (I386_AVX_NUM_REGS): Likewise for AVX registers.
7204 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
7205 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
7206 512 bits wide.
7207 (i386_xmm_avx512_regnum_p): New prototype for register look up.
7208 (i386_ymm_avx512_regnum_p): Likewise.
7209 (i386_k_regnum_p): Likewise.
7210 (i386_zmm_regnum_p): Likewise.
7211 (i386_zmmh_regnum_p): Likewise.
7212 * i387-tdep.c : Update year in copyright notice.
7213 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
7214 XSAVE buffer.
7215 (XSAVE_YMM_AVX512_ADDR): New macro.
7216 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
7217 XSAVE buffer.
7218 (XSAVE_XMM_AVX512_ADDR): New macro.
7219 (xsave_avx512_k_offset): New table for K register offsets in
7220 XSAVE buffer.
7221 (XSAVE_AVX512_K_ADDR): New macro.
7222 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
7223 in XSAVE buffer.
7224 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
7225 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
7226 buffer.
7227 (i387_collect_xsave): Add code to collect AVX512 registers from
7228 XSAVE buffer.
7229 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
7230 of XMM16-31 registers.
7231 (I387_NUM_K_REGS): New define for number of K registers.
7232 (I387_K0_REGNUM): New define for K0 register number.
7233 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
7234 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
7235 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
7236 registers.
7237 (I387_YMM16H_REGNUM): New define for YMM16H register number.
7238 (I387_XMM16_REGNUM): New define for XMM16 register number.
7239 (I387_YMM0_REGNUM): New define for YMM0 register number.
7240 (I387_KEND_REGNUM): New define for last K register number.
7241 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
7242 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
7243 number.
7244 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
7245 number.
7246 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
7247 size.
7248 * features/Makefile: Add AVX512 related files.
7249 * features/i386/32bit-avx512.xml: New file.
7250 * features/i386/64bit-avx512.xml: Likewise.
7251 * features/i386/amd64-avx512-linux.c: Likewise.
7252 * features/i386/amd64-avx512-linux.xml: Likewise.
7253 * features/i386/amd64-avx512.c: Likewise.
7254 * features/i386/amd64-avx512.xml: Likewise.
7255 * features/i386/i386-avx512-linux.c: Likewise.
7256 * features/i386/i386-avx512-linux.xml: Likewise.
7257 * features/i386/i386-avx512.c: Likewise.
7258 * features/i386/i386-avx512.xml: Likewise.
7259 * features/i386/x32-avx512-linux.c: Likewise.
7260 * features/i386/x32-avx512-linux.xml: Likewise.
7261 * features/i386/x32-avx512.c: Likewise.
7262 * features/i386/x32-avx512.xml: Likewise.
7263 * regformats/i386/amd64-avx512-linux.dat: New file.
7264 * regformats/i386/amd64-avx512.dat: Likewise.
7265 * regformats/i386/i386-avx512-linux.dat: Likewise.
7266 * regformats/i386/i386-avx512.dat: Likewise.
7267 * regformats/i386/x32-avx512-linux.dat: Likewise.
7268 * regformats/i386/x32-avx512.dat: Likewise.
7269 * NEWS: Add note about new support for AVX512.
7270
7271
08351840
PA
72722014-04-23 Pedro Alves <palves@redhat.com>
7273
7274 * breakpoint.c (insert_bp_location): Tolerate errors if the
7275 breakpoint is set in a user-loaded objfile.
7276 (remove_breakpoint_1): Likewise. Also tolerate errors if the
7277 location is marked shlib_disabled. If the breakpoint is set in a
7278 user-loaded objfile is a GDB-side memory breakpoint, validate it
7279 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
7280 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
7281 flag.
7282 * mem-break.c (memory_validate_breakpoint): New function.
7283 * objfiles.c (userloaded_objfile_contains_address_p): New
7284 function.
7285 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
7286 * target.h (memory_validate_breakpoint): New declaration.
7287
076855f9
PA
72882014-04-23 Pedro Alves <palves@redhat.com>
7289
7290 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
7291 the breakpoint is set in a shared library, only suppress
7292 errors for software breakpoints, not hardware breakpoints.
7293
483805cf
PA
72942014-04-22 Pedro Alves <palves@redhat.com>
7295
7296 * infrun.c (schedlock_applies): New function, factored out from
7297 find_thread_needs_step_over.
7298 (find_thread_needs_step_over): Use it.
7299 (switch_back_to_stepped_thread): Always clear trap_expected if the
7300 step over is finished. Return early if scheduler locking applies.
7301 Look for the stepping thread and a potential step-over thread with
7302 a single loop.
7303 (currently_stepping_or_nexting_callback): Delete.
7304
a75fef0e
NC
73052014-04-22 Nick Clifton <nickc@redhat.com>
7306
7307 * NEWS: Mention that ARM sim now supports tracing.
7308
48b6e87e
YQ
73092014-04-22 Yao Qi <yao@codesourcery.com>
7310
7311 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
7312 to ...
7313 * tracefile.c (tracefile_fetch_registers): ... it. New
7314 function.
7315 * tracefile.h (tracefile_fetch_registers): Declare.
7316 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
7317 tracefile_fetch_registers.
7318
17617f2d
EZ
73192014-04-19 Eli Zaretskii <eliz@gnu.org>
7320
7321 PR gdb/14018
7322 * windows-nat.c (thread_rec): Don't display a warning when
7323 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
7324 fails for any reason, set th->suspended to -1, so that we don't
7325 try to resume such a thread. Also, don't return NULL in these
7326 cases, to avoid completely ruin the session due to "PC register is
7327 not available" error.
7328 (do_windows_fetch_inferior_registers): Check errors in
7329 GetThreadContext call.
7330 (windows_continue): Accept an additional argument KILLED; if not
7331 zero, ignore errors in the SetThreadContext call, since the
7332 inferior was killed and is shutting down.
7333 (windows_resume, get_windows_debug_event)
7334 (windows_create_inferior, windows_mourn_inferior)
7335 (windows_kill_inferior): All callers of windows_continue changed
7336 to adjust to its new calling sequence.
7337
5723a6fd
YQ
73382014-04-19 Yao Qi <yao@codesourcery.com>
7339
7340 * ctf.c (ctf_open): Call post_create_inferior.
7341
614d5099
YQ
73422014-04-19 Yao Qi <yao@codesourcery.com>
7343
7344 * ctf.c (handle_id): New static variable.
7345 (ctf_open_dir): Get handle_id from bt_context_add_trace return
7346 value. Get the declaration of event "register" and get length
7347 of field "contents".
7348
dac3e710
YQ
73492014-04-19 Yao Qi <yao@codesourcery.com>
7350
7351 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
7352
2bca57ba
SC
73532014-04-18 Siva Chandra Reddy <sivachandra@google.com>
7354
7355 * valops.c (oload_method_static): Remove unnecessary argument
7356 METHOD. Update all callers.
7357
51d48146
PA
73582014-04-18 Pedro alves <palves@redhat.com>
7359 Tom Tromey <tromey@redhat.com>
7360
7361 PR backtrace/15558
7362 * frame.c (get_prev_frame_1): Rename to ...
7363 (get_prev_frame_always): ... this, and make extern. Adjust.
7364 (skip_artificial_frames): Use get_prev_frame_always.
7365 (frame_unwind_caller_id, frame_pop, get_prev_frame)
7366 (get_frame_unwind_stop_reason): Adjust to rename.
7367 * frame.h (get_prev_frame_always): Declare.
7368 * inline-frame.c: Include frame.h.
7369 (inline_frame_this_id): Use get_prev_frame_always.
7370
1bdad2e0
TG
73712014-04-18 Tristan Gingold <gingold@adacore.com>
7372
7373 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
7374 code by using bfd_mach_o_get_base_address.
7375
7ce16bd4
UW
73762014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
7377
7378 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
7379 (spu_ax_pseudo_register_collect): New function.
7380 (spu_ax_pseudo_register_push_stack): Likewise.
7381 (spu_dwarf_reg_to_regnum): Likewise.
7382 (spu_gdbarch_init): Install them. Append DWARF unwinders.
7383
2ed3c037
UW
73842014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
7385
7386 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
7387 Replace FRAME argument with FRAME_ID.
7388 * gdbarch.c, gdbarch.h: Regenerate.
7389 * findvar.c (default_value_from_register): Add GDBARCH argument;
7390 replace FRAME by FRAME_ID. No longer call get_frame_id.
7391 (value_from_register): Update call to gdbarch_value_from_register.
7392 * value.h (default_value_from_register): Update prototype.
7393 * s390-linux-tdep.c (s390_value_from_register): Update interface
7394 and call to default_value_from_register.
7395 * spu-tdep.c (spu_value_from_register): Likewise.
7396
7397 * findvar.c (address_from_register): Remove TYPE argument.
7398 Do not call value_from_register; use gdbarch_value_from_register
7399 with null_frame_id instead.
7400 * value.h (address_from_register): Update prototype.
7401 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
7402 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
7403 address_from_register interface change.
7404
71e50e83
YQ
74052014-04-17 Yao Qi <yao@codesourcery.com>
7406
7407 * gdbtypes.h: Update comments to link to types and macros'
7408 definitions.
7409
7a23c549
SC
74102014-04-16 Siva Chandra Reddy <sivachandra@google.com>
7411
7412 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
7413
22869d73
KS
74142014-04-16 Keith Seitz <keiths@redhat.com>
7415
7416 PR gdb/15827
7417 * dwarf2read.c (skip_one_die): Check that all relative-offset
7418 sibling DIEs fall within range of the current reader's buffer.
7419 (read_partial_die): Likewise.
7420
c4f87ca6
KS
74212014-04-16 Keith Seitz <keiths@redhat.com>
7422
7423 PR c++/16597
7424 * cp-namespace.c (lookup_symbol_file): If the type name of
7425 `this' is NULL, return immediately.
7426
b50c8614
KS
74272014-04-14 Keith Seitz <keiths@redhat.com>
7428
7429 PR c++/16253
7430 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
7431 from symbol_matches_domain in symtab.c. All local callers
7432 of symbol_matches_domain updated.
7433 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
7434 search STRUCT_DOMAIN.
7435 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
7436 independently. standard_lookup will do that automatically.
7437 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
7438 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7439 (cp_lookup_symbol_in_namespace): Likewise.
7440 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
7441 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
7442 may return a STRUCT_DOMAIN match.
7443 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
7444 * cp-support.c: Include language.h.
7445 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
7446 VAR_DOMAIN.
7447 * psymtab.c (match_partial_symbol): Compare the requested
7448 domain with the symbol's domain directly.
7449 (lookup_partial_symbol): Likewise.
7450 * symtab.c (lookup_symbol_in_language): Explain when/why
7451 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7452 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
7453 appropriate languages.
7454 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
7455 and moved to ada-lang.c
7456 (lookup_block_symbol): Explain that this function only returns
7457 symbol matching the requested DOMAIN.
7458 Compare the requested domain with the symbol's domain directly.
7459 (iterate_over_symbols): Compare the requested domain with the
7460 symbol's domain directly.
7461 * symtab.h (symbol_matches_domain): Remove.
7462
3d567982
TT
74632014-04-14 Tom Tromey <tromey@redhat.com>
7464
7465 PR c++/15246:
7466 * c-exp.y (type_aggregate_p): New function.
7467 (qualified_name, classify_inner_name): Use it.
7468 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
7469 and TYPE_TARGET_TYPE of an enum type.
7470 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
7471 an enum type.
7472 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
7473 handle TYPE_DECLARED_CLASS.
7474 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
7475 types.
7476 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
7477 * valops.c (enum_constant_from_type): New function.
7478 (value_aggregate_elt): Use it.
7479 * cp-namespace.c (cp_lookup_nested_symbol): Handle
7480 TYPE_CODE_ENUM.
7481
c848d642
TT
74822014-04-14 Tom Tromey <tromey@redhat.com>
7483
7484 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
7485 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
7486 const.
7487 * value.h (value_aggregate_elt): Update.
7488
0626fc76
TT
74892014-04-14 Tom Tromey <tromey@redhat.com>
7490
7491 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
7492
5ecaaa66
SA
74932014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7494
7495 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7496 (evaluate_subexp_standard): Pass noside argument.
7497 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7498 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7499 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7500 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7501 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7502
1612e0c0
SA
75032014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7504
7505 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7506 points to a constant blob.
7507
c451ebe5
SA
75082014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7509
7510 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7511 property and store it as the high bound and flag the range accordingly.
7512 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7513 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7514 * gdbtypes.h (enum range_flags): New enum.
7515 (struct range_bounds): Add flags member.
7516
1d42e4c4
SA
75172014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7518
7519 * c-typeprint.c (c_type_print_varspec_suffix): Added
7520 check for not yet resolved high bound. If unresolved, print
7521 "variable length" string to the console instead of random
7522 length.
7523
9f1f738a
SA
75242014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7525
7526 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
7527 value.
7528 (ada_template_to_fixed_record_type_1): Likewise.
7529 (ada_to_fixed_type_1): Likewise.
7530 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7531 (cp_print_value): Likewise.
7532 * d-valprint.c (dynamic_array_type): Likewise.
7533 * findvar.c (address_of_variable): Likewise.
7534 * jv-valprint.c (java_value_print): Likewise.
7535 * valops.c (value_ind): Likewise.
7536 * value.c (coerce_ref): Likewise.
7537
3c8452d4
SA
75382014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7539
7540 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7541 value and retrieve the dynamic type size.
7542
4ad88275
SA
75432014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7544
7545 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7546 passed to sizeof is dynamic evaluate the argument to compute the length.
7547
80180f79
SA
75482014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7549 Joel Brobecker <brobecker@adacore.com>
7550
7551 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7552 (dwarf2_evaluate_property): New function.
7553 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7554 * dwarf2read.c (attr_to_dynamic_prop): New function.
7555 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7556 attribute.
7557 * gdbtypes.c: Include dwarf2loc.h.
7558 (is_dynamic_type): New function.
7559 (resolve_dynamic_type): New function.
7560 (resolve_dynamic_bounds): New function.
7561 (get_type_length): New function.
7562 (check_typedef): Use get_type_length to compute type length.
7563 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7564 (TYPE_LOW_BOUND_KIND): New macro.
7565 (is_dynamic_type): New function prototype.
7566 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7567 to resolve dynamic properties of the type. Update comment.
7568 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7569
a1556843
RH
75702014-04-14 Richard Henderson <rth@redhat.com>
7571
7572 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
7573
0be03e84
DE
75742014-04-12 Siva Chandra Reddy <sivachandra@google.com>
7575 Doug Evans <xdje42@gmail.com>
7576
7577 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
7578 dereference TYPE_CODE_REF values.
7579
6b662e19
JB
75802014-04-11 Joel Brobecker <brobecker@adacore.com>
7581
7582 Revert the following changes due to regressions:
7583
7584 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7585 (dwarf2_evaluate_property): New function.
7586 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7587 * dwarf2read.c (attr_to_dynamic_prop): New function.
7588 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7589 attribute.
7590 * gdbtypes.c: Include dwarf2loc.h.
7591 (is_dynamic_type): New function.
7592 (resolve_dynamic_type): New function.
7593 (resolve_dynamic_bounds): New function.
7594 (get_type_length): New function.
7595 (check_typedef): Use get_type_length to compute type length.
7596 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7597 (TYPE_LOW_BOUND_KIND): New macro.
7598 (is_dynamic_type): New function prototype.
7599 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7600 to resolve dynamic properties of the type. Update comment.
7601 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7602
7603 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7604 passed to sizeof is dynamic evaluate the argument to compute the length.
7605
7606 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7607 value and retrieve the dynamic type size.
7608
7609 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7610 (ada_template_to_fixed_record_type_1): Likewise.
7611 (ada_to_fixed_type_1): Likewise.
7612 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7613 (cp_print_value): Likewise.
7614 * d-valprint.c (dynamic_array_type): Likewise.
7615 * eval.c (evaluate_subexp_with_coercion): Likewise.
7616 * findvar.c (address_of_variable): Likewise.
7617 * jv-valprint.c (java_value_print): Likewise.
7618 * valops.c (value_ind): Likewise.
7619 * value.c (coerce_ref): Likewise.
7620
7621 * c-typeprint.c (c_type_print_varspec_suffix): Added
7622 check for not yet resolved high bound. If unresolved, print
7623 "variable length" string to the console instead of random
7624 length.
7625
7626 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7627 property and store it as the high bound and flag the range accordingly.
7628 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7629 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7630 * gdbtypes.h (enum range_flags): New enum.
7631 (struct range_bounds): Add flags member.
7632
7633 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7634 points to a constant blob.
7635
7636 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7637 (evaluate_subexp_standard): Pass noside argument.
7638 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7639 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7640 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7641 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7642 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7643
245a5f0b
KS
76442014-04-11 Keith Seitz <keiths@redhat.com>
7645
7646 PR c++/16675
7647 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
7648 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
7649 reference types.
7650
3bce8237
SA
76512014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7652
7653 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7654 (evaluate_subexp_standard): Pass noside argument.
7655 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7656 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7657 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7658 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7659 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7660
92b09522
SA
76612014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7662
7663 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7664 points to a constant blob.
7665
e1969afb
SA
76662014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7667
7668 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7669 property and store it as the high bound and flag the range accordingly.
7670 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7671 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7672 * gdbtypes.h (enum range_flags): New enum.
7673 (struct range_bounds): Add flags member.
7674
b86138fb
SA
76752014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7676
7677 * c-typeprint.c (c_type_print_varspec_suffix): Added
7678 check for not yet resolved high bound. If unresolved, print
7679 "variable length" string to the console instead of random
7680 length.
7681
bcd629a4
SA
76822014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7683
7684 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7685 (ada_template_to_fixed_record_type_1): Likewise.
7686 (ada_to_fixed_type_1): Likewise.
7687 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7688 (cp_print_value): Likewise.
7689 * d-valprint.c (dynamic_array_type): Likewise.
7690 * eval.c (evaluate_subexp_with_coercion): Likewise.
7691 * findvar.c (address_of_variable): Likewise.
7692 * jv-valprint.c (java_value_print): Likewise.
7693 * valops.c (value_ind): Likewise.
7694 * value.c (coerce_ref): Likewise.
7695
04b19544
SA
76962014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7697
7698 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7699 value and retrieve the dynamic type size.
7700
26cb189f
SA
77012014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7702
7703 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7704 passed to sizeof is dynamic evaluate the argument to compute the length.
7705
37c1ab67
SA
77062014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7707
7708 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7709 (dwarf2_evaluate_property): New function.
7710 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7711 * dwarf2read.c (attr_to_dynamic_prop): New function.
7712 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7713 attribute.
7714 * gdbtypes.c: Include dwarf2loc.h.
7715 (is_dynamic_type): New function.
7716 (resolve_dynamic_type): New function.
7717 (resolve_dynamic_bounds): New function.
7718 (get_type_length): New function.
7719 (check_typedef): Use get_type_length to compute type length.
7720 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7721 (TYPE_LOW_BOUND_KIND): New macro.
7722 (is_dynamic_type): New function prototype.
7723 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7724 to resolve dynamic properties of the type. Update comment.
7725 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7726
729efb13
SA
77272014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7728
7729 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
7730 declaring high/low bounds and change uses accordingly. Call
7731 create_range_type instead of create_static_range_type.
7732 * gdbtypes.c (create_range_type): New function.
7733 (create_range_type): Convert bounds into struct bound_prop and pass
7734 them to create_range_type.
7735 * gdbtypes.h (struct bound_prop): New struct.
7736 (create_range_type): New function prototype.
7737 (struct range_bounds): Use struct bound_prop instead of LONGEST for
7738 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
7739 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
7740 part of the bound.
7741 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
7742
0c9c3474
SA
77432014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7744
7745 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
7746 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
7747 * ada-lang.c: All uses of create_range_type updated.
7748 * coffread.c: All uses of create_range_type updated.
7749 * dwarf2read.c: All uses of create_range_type updated.
7750 * f-exp.y: All uses of create_range_type updated.
7751 * m2-valprint.c: All uses of create_range_type updated.
7752 * mdebugread.c: All uses of create_range_type updated.
7753 * stabsread.c: All uses of create_range_type updated.
7754 * valops.c: All uses of create_range_type updated.
7755 * valprint.c: All uses of create_range_type updated.
7756
9d497a19
PA
77572014-04-10 Pedro Alves <palves@redhat.com>
7758
7759 * breakpoint.c (single_step_breakpoints)
7760 (single_step_gdbarch): Move up in the file.
7761 (one_breakpoint_xfer_memory): New function, factored out from ...
7762 (breakpoint_xfer_memory): ... here. Also process single-step
7763 breakpoints.
7764
15a9128a
TG
77652014-04-09 Tristan Gingold <gingold@adacore.com>
7766
7767 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
7768 comments.
7769 (darwin_decode_exception_message): Free port only after use.
7770
9c97a070
PL
77712014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
7772
7773 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
7774 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
7775 when setting the size of call_length.
7776
7af389b8
SC
77772014-04-07 Siva Chandra Reddy <sivachandra@google.com>
7778
7779 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
7780 dereference TYPE_CODE_REF values.
7781
86ad98c3
JB
77822014-04-07 Joel Brobecker <brobecker@adacore.com>
7783
7784 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
7785 end of warning message.
7786
b0aeadb3
DE
77872014-04-03 Doug Evans <dje@google.com>
7788
7789 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
7790 of stub_comp_unit_die, stub_comp_dir is non-NULL.
7791
5979d6b6
AM
77922014-04-02 Alan Modra <amodra@gmail.com>
7793
7794 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
7795 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
7796 (struct symbol_file_add_from_memory_args): Add size field.
7797 (find_vdso_size): New function.
7798 (add_vsyscall_page): Attempt to find vdso size.
7799
0d60c288
DE
78002014-04-01 Doug Evans <dje@google.com>
7801
7802 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
7803
a41f2563
TG
78042014-04-01 Tristan Gingold <gingold@adacore.com>
7805
7806 * darwin-nat.c (darwin_encode_reply): Add prototype.
7807 (darwin_decode_exception_message): Reply to unknown inferiors.
7808 (darwin_decode_message): Handle message by id. Ignore message
7809 to unknown inferior.
7810 (darwin_wait): Discard unknown messages, add debug trace.
7811
11a865c8
DE
78122014-03-31 Doug Evans <dje@google.com>
7813
7814 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
7815 comp_dir_string.
7816
770e7fc7
DE
78172014-03-31 Doug Evans <dje@google.com>
7818
7819 New option "set print symbol-loading".
7820 * NEWS: Mention it.
7821 * solib.c (solib_read_symbols): Only print symbol loading messages
7822 if requested.
7823 (solib_add): If symbol loading is in "brief" mode, notify user
7824 symbols are being loaded.
7825 (reload_shared_libraries_1): Ditto.
7826 * symfile.c (print_symbol_loading_off): New static global.
7827 (print_symbol_loading_brief): New static global.
7828 (print_symbol_loading_full): New static global.
7829 (print_symbol_loading_enums): New static global.
7830 (print_symbol_loading): New static global.
7831 (print_symbol_loading_p): New function.
7832 (symbol_file_add_with_addrs): Only print symbol loading messages
7833 if requested.
7834 (_initialize_symfile): Register "print symbol-loading" set/show
7835 command.
7836 * symfile.h (print_symbol_loading_p): Declare.
7837
c32c64b7
DE
78382014-03-30 Doug Evans <xdje42@gmail.com>
7839
7840 * infrun.c (set_last_target_status): New function.
7841 (handle_inferior_event): Call it.
7842
7c0bc051
DE
78432014-03-30 Doug Evans <xdje42@gmail.com>
7844
7845 * inferior.h (enum stop_kind): Improve comment.
7846
8776cfe9
JB
78472014-03-28 Joel Brobecker <brobecker@adacore.com>
7848
7849 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
7850 a reference, strip the reference layer before calling
7851 the lang_ops value_has_mutated callback.
7852
410a0ff2
SDJ
78532014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
7854
7855 Remove some globals from our parser.
7856 * language.c (unk_lang_parser): Add "struct parser_state"
7857 argument.
7858 * language.h (struct language_defn) <la_parser>: Likewise.
7859 * parse.c (expout, expout_size, expout_ptr): Remove variables.
7860 (initialize_expout): Add "struct parser_state" argument.
7861 Rewrite function to use the parser state.
7862 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
7863 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
7864 write_exp_elt_longcst, write_exp_elt_dblcst,
7865 write_exp_elt_decfloatcst, write_exp_elt_type,
7866 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
7867 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
7868 write_dollar_variable): Likewise.
7869 (parse_exp_in_context_1): Use parser state.
7870 (insert_type_address_space): Add "struct parser_state" argument.
7871 Use parser state.
7872 (increase_expout_size): New function.
7873 * parser-defs.h: Forward declare "struct language_defn" and
7874 "struct parser_state".
7875 (expout, expout_size, expout_ptr): Remove extern declarations.
7876 (parse_gdbarch, parse_language): Rewrite macro declarations to
7877 accept the parser state.
7878 (struct parser_state): New struct.
7879 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
7880 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
7881 write_exp_elt_decfloatcst, write_exp_elt_type,
7882 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
7883 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
7884 write_exp_msymbol, write_dollar_variable,
7885 mark_struct_expression, insert_type_address_space): Add "struct
7886 parser_state" argument.
7887 (increase_expout_size): New function.
7888 * utils.c (do_clear_parser_state): New function.
7889 (make_cleanup_clear_parser_state): Likewise.
7890 * utils.h (make_cleanup_clear_parser_state): New function
7891 prototype.
7892 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
7893 Update calls to write_exp* in order to pass the parser state.
7894 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
7895 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
7896 (i386_stap_parse_special_token_three_arg_disp): Likewise.
7897 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
7898 * stap-probe.c (stap_parse_register_operand): Likewise.
7899 (stap_parse_single_operand): Likewise.
7900 (stap_parse_argument_1): Likewise.
7901 (stap_parse_argument): Use parser state.
7902 * stap-probe.h: Include "parser-defs.h".
7903 (struct stap_parse_info) <pstate>: New field.
7904 * c-exp.y (parse_type): Rewrite to use parser state.
7905 (yyparse): Redefine to c_parse_internal.
7906 (pstate): New global variable.
7907 (parse_number): Add "struct parser_state" argument.
7908 (write_destructor_name): Likewise.
7909 (type_exp): Update calls to write_exp* and similars in order to
7910 use parser state.
7911 (exp1, exp, variable, qualified_name, space_identifier,
7912 typename, typebase): Likewise.
7913 (write_destructor_name, parse_number, lex_one_token,
7914 classify_name, classify_inner_name, c_parse): Add "struct
7915 parser_state" argument. Update function to use parser state.
7916 * c-lang.h: Forward declare "struct parser_state".
7917 (c_parse): Add "struct parser_state" argument.
7918 * ada-exp.y (parse_type): Rewrite macro to use parser state.
7919 (yyparse): Redefine macro to ada_parse_internal.
7920 (pstate): New variable.
7921 (write_int, write_object_renaming, write_var_or_type,
7922 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
7923 type_int, type_long, type_long_long, type_float, type_double,
7924 type_long_double, type_char, type_boolean, type_system_address):
7925 Add "struct parser_state" argument.
7926 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
7927 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
7928 var_or_type, aggregate, aggregate_component_list,
7929 positional_list, others, component_group,
7930 component_associations): Update calls to write_exp* and similar
7931 functions in order to use parser state.
7932 (ada_parse, write_var_from_sym, write_int,
7933 write_exp_op_with_string, write_object_renaming,
7934 find_primitive_type, write_selectors, write_ambiguous_var,
7935 write_var_or_type, write_name_assoc, type_int, type_long,
7936 type_long_long, type_float, type_double, type_long_double,
7937 type_char, type_boolean, type_system_address): Add "struct
7938 parser_state" argument. Adjust function to use parser state.
7939 * ada-lang.c (parse): Likewise.
7940 * ada-lang.h: Forward declare "struct parser_state".
7941 (ada_parse): Add "struct parser_state" argument.
7942 * ada-lex.l (processInt, processReal): Likewise. Adjust all
7943 calls to both functions.
7944 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
7945 parser state.
7946 (yyparse): Redefine macro to f_parse_internal.
7947 (pstate): New variable.
7948 (parse_number): Add "struct parser_state" argument.
7949 (type_exp, exp, subrange, typebase): Update calls to write_exp*
7950 and similars in order to use parser state.
7951 (parse_number): Adjust code to use parser state.
7952 (yylex): Likewise.
7953 (f_parse): New function.
7954 * f-lang.h: Forward declare "struct parser_state".
7955 (f_parse): Add "struct parser_state" argument.
7956 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
7957 parser state.
7958 (yyparse): Redefine macro for java_parse_internal.
7959 (pstate): New variable.
7960 (push_expression_name, push_expression_name, insert_exp): Add
7961 "struct parser_state" argument.
7962 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
7963 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
7964 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
7965 PostIncrementExpression, PostDecrementExpression,
7966 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
7967 UnaryExpressionNotPlusMinus, CastExpression,
7968 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
7969 RelationalExpression, EqualityExpression, AndExpression,
7970 ExclusiveOrExpression, InclusiveOrExpression,
7971 ConditionalAndExpression, ConditionalOrExpression,
7972 ConditionalExpression, Assignment, LeftHandSide): Update
7973 calls to write_exp* and similars in order to use parser state.
7974 (parse_number): Ajust code to use parser state.
7975 (yylex): Likewise.
7976 (java_parse): New function.
7977 (push_variable): Add "struct parser_state" argument. Adjust
7978 code to user parser state.
7979 (push_fieldnames, push_qualified_expression_name,
7980 push_expression_name, insert_exp): Likewise.
7981 * jv-lang.h: Forward declare "struct parser_state".
7982 (java_parse): Add "struct parser_state" argument.
7983 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
7984 parser state.
7985 (yyparse): Redefine macro to m2_parse_internal.
7986 (pstate): New variable.
7987 (type_exp, exp, fblock, variable, type): Update calls to
7988 write_exp* and similars to use parser state.
7989 (yylex): Likewise.
7990 (m2_parse): New function.
7991 * m2-lang.h: Forward declare "struct parser_state".
7992 (m2_parse): Add "struct parser_state" argument.
7993 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
7994 * objc-lang.h: Forward declare "struct parser_state".
7995 (end_msglist): Add "struct parser_state" argument.
7996 * p-exp.y (parse_type): Rewrite macro to use parser state.
7997 (yyparse): Redefine macro to pascal_parse_internal.
7998 (pstate): New variable.
7999 (parse_number): Add "struct parser_state" argument.
8000 (type_exp, exp1, exp, qualified_name, variable): Update calls to
8001 write_exp* and similars in order to use parser state.
8002 (parse_number, yylex): Adjust code to use parser state.
8003 (pascal_parse): New function.
8004 * p-lang.h: Forward declare "struct parser_state".
8005 (pascal_parse): Add "struct parser_state" argument.
8006 * go-exp.y (parse_type): Rewrite macro to use parser state.
8007 (yyparse): Redefine macro to go_parse_internal.
8008 (pstate): New variable.
8009 (parse_number): Add "struct parser_state" argument.
8010 (type_exp, exp1, exp, variable, type): Update calls to
8011 write_exp* and similars in order to use parser state.
8012 (parse_number, lex_one_token, classify_name, yylex): Adjust code
8013 to use parser state.
8014 (go_parse): Likewise.
8015 * go-lang.h: Forward declare "struct parser_state".
8016 (go_parse): Add "struct parser_state" argument.
8017
342587c4
DE
80182014-03-27 Doug Evans <dje@google.com>
8019
8020 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
8021
33e80786
DE
80222014-03-27 Doug Evans <dje@google.com>
8023
8024 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
8025 Remove argument abbrev_section. All callers updated.
8026
1dbab08b
DE
80272014-03-27 Doug Evans <dje@google.com>
8028
8029 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
8030 addr_base, ranges_base.
8031
318d3177
KS
80322014-03-26 Keith Seitz <keiths@redhat.com>
8033
8034 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
8035 types, not VAR_DOMAIN.
8036
1e54db15
SL
80372014-03-25 Sandra Loosemore <sandra@codesourcery.com>
8038
8039 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
8040 "ra" registers.
8041 * features/nios2-linux.c: Regenerated.
8042 * features/nios2.c: Regenerated.
8043
d3839ede
PA
80442014-03-25 Pedro Alves <palves@redhat.com>
8045
8046 * cli/cli-script.c (script_from_file): Force the interpreter to
8047 sync mode.
8048
7588d2ec
PL
80492014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
8050
8051 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
8052 small stack allocation.
8053
a6290449
TG
80542014-03-24 Tristan Gingold <gingold@adacore.com>
8055
8056 * darwin-nat.c (exc_server): Remove unused prototype.
8057 (darwin_dump_message): Correctly display data on x86_64.
8058 (darwin_encode_reply): Fix style.
8059 Add comments and fix indentation.
8060
31ae9d24 80612014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
69fa4030
PL
8062
8063 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
8064
6339bfc4
DE
80652014-03-22 Doug Evans <xdje42@gmail.com>
8066
8067 * infcmd.c: Whitespace fixes.
8068 (interrupt_command): Merge two function comments into one.
8069
0a07590b
DE
80702014-03-22 Doug Evans <xdje42@gmail.com>
8071
8072 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
8073 All uses updated.
8074
b55fbac4
YQ
80752014-03-22 Yao Qi <yao@codesourcery.com>
8076
8077 * remote.c (target_read_live_memory): Remove.
8078 (memory_xfer_live_readonly_partial): Rename it to
8079 remote_xfer_live_readonly_partial. Remove argument 'object'.
8080 All callers updated. Call remote_read_bytes_1
8081 instead of target_read_live_memory.
8082 * tracepoint.c (set_traceframe_number): Remove.
8083 (make_cleanup_restore_traceframe_number): Likewise .
8084 * tracepoint.h (set_traceframe_number): Remove declaration.
8085 (make_cleanup_restore_traceframe_number): Likewise.
8086
9217e74e
YQ
80872014-03-22 Yao Qi <yao@codesourcery.com>
8088
8089 * remote.c (remote_read_bytes): Move code on reading from the
8090 remote stub to ...
8091 (remote_read_bytes_1): ... here. New function.
8092
8acf9577
YQ
80932014-03-22 Yao Qi <yao@codesourcery.com>
8094
8095 * ctf.c (ctf_xfer_partial): Check the return value of
8096 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
8097 return TARGET_XFER_UNAVAILABLE.
8098 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8099 * target.c (target_read_live_memory): Move it to remote.c.
8100 (memory_xfer_live_readonly_partial): Likewise.
8101 (memory_xfer_partial_1): Move some code to remote_read_bytes.
8102 * remote.c (target_read_live_memory): Moved from target.c.
8103 (memory_xfer_live_readonly_partial): Likewise.
8104 (remote_read_bytes): Factored out from
8105 memory_xfer_partial_1.
8106
feef67ab
DE
81072014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
8108
8109 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
8110 NULL pointer.
8111
b65dc60b
PA
81122014-03-21 Pedro Alves <palves@redhat.com>
8113
8114 * infrun.c (normal_stop): Extend comment.
8115
b4ab256d
HZ
81162014-03-21 Hui Zhu <hui@codesourcery.com>
8117 Pedro Alves <palves@redhat.com>
8118
8119 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
8120 static buffer.
8121 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
8122 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
8123 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
8124
deba7593
MR
81252014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
8126
8127 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
8128 `z' formatted output modifier.
8129
1bff71c3
SDJ
81302014-03-20 Tom Tromey <tromey@redhat.com>
8131 Sergio Durigan Junior <sergiodj@redhat.com>
8132
8133 * probe.c (parse_probes): Turn assert into an ordinary error.
8134 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
8135 exceptions when parsing probes. Rearrange the code for clarity.
8136
90e28950
TT
81372014-03-20 Tom Tromey <tromey@redhat.com>
8138
8139 PR gdb/14135
8140 * top.c (execute_command): Only dispatch events if the command
8141 started the target.
8142
beb460e8
PA
81432014-03-20 Tom Tromey <tromey@redhat.com>
8144
8145 PR cli/15718
8146 * infcall.c: Include event-top.h.
8147 (run_inferior_call): Call async_disable_stdin if needed.
8148
99619bea
PA
81492014-03-20 Pedro Alves <palves@redhat.com>
8150
8151 * infrun.c (prepare_to_proceed): Delete.
8152 (thread_still_needs_step_over): New function.
8153 (find_thread_needs_step_over): New function.
8154 (proceed): If the current thread needs a step-over, set its
8155 steping_over_breakpoint flag. Adjust to use
8156 find_thread_needs_step_over instead of prepare_to_proceed.
8157 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
8158 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
8159 breakpoint.
8160 (switch_back_to_stepped_thread): Step over breakpoints of all
8161 threads not the stepping thread, before switching back to the
8162 stepping thread.
8163
2adfaa28
PA
81642014-03-20 Pedro Alves <palves@redhat.com>
8165
8166 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
8167 extern.
8168 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
8169 * infrun.c (saved_singlestep_ptid)
8170 (stepping_past_singlestep_breakpoint): Delete.
8171 (resume): Remove stepping_past_singlestep_breakpoint handling.
8172 (proceed): Store the prev_pc of the stepping thread too.
8173 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
8174 singlestep_pc.
8175 (enum infwait_states): Delete infwait_thread_hop_state.
8176 (struct execution_control_state) <hit_singlestep_breakpoint>: New
8177 field.
8178 (handle_inferior_event): Adjust.
8179 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
8180 handling and the thread-hop code. Before removing single-step
8181 breakpoints, check whether the thread hit a single-step breakpoint
8182 of another thread. If it did, the trap is not a random signal.
8183 (switch_back_to_stepped_thread): If the event thread hit a
8184 single-step breakpoint, unblock it before switching to the
8185 stepping thread. Handle the case of the stepped thread having
8186 advanced already.
8187 (keep_going): Handle the case of the current thread moving past a
8188 single-step breakpoint.
8189
31e77af2
PA
81902014-03-20 Pedro Alves <palves@redhat.com>
8191
8192 PR breakpoints/7143
8193 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
8194 are being stepped over.
8195 (breakpoint_address_match): Make extern.
8196 * breakpoint.h (breakpoint_address_match): New declaration.
8197 * inferior.h (stepping_past_instruction_at): New declaration.
8198 * infrun.c (struct step_over_info): New type.
8199 (step_over_info): New global.
8200 (set_step_over_info, clear_step_over_info)
8201 (stepping_past_instruction_at): New functions.
8202 (handle_inferior_event): Clear the step-over info when
8203 trap_expected is cleared.
8204 (resume): Remove now stale comment.
8205 (clear_proceed_status): Clear step-over info.
8206 (proceed): Adjust step-over handling to set or clear the step-over
8207 info instead of removing all breakpoints.
8208 (handle_signal_stop): When setting up a thread-hop, don't remove
8209 breakpoints here.
8210 (stop_stepping): Clear step-over info.
8211 (keep_going): Adjust step-over handling to set or clear step-over
8212 info and then always inserting breakpoints, instead of removing
8213 all breakpoints when stepping over one.
8214
b9f437de
PA
82152014-03-20 Pedro Alves <palves@redhat.com>
8216
8217 * infrun.c (previous_inferior_ptid): Adjust comment.
8218 (deferred_step_ptid): Delete.
8219 (infrun_thread_ptid_changed, prepare_to_proceed)
8220 (init_wait_for_inferior): Adjust.
8221 (handle_signal_stop): Delete deferred_step_ptid handling.
8222
06c868a8
JK
82232014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
8224
8225 PR gdb/15358
8226 * defs.h (sync_quit_force_run): New declaration.
8227 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
8228 * event-top.c (async_sigterm_handler): New declaration.
8229 (async_sigterm_token): New variable.
8230 (async_init_signals): Create also async_sigterm_token.
8231 (async_sigterm_handler): New function.
8232 (sync_quit_force_run): New variable.
8233 (handle_sigterm): Replace quit_force call by other calls.
8234 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
8235
dea80df0
MR
82362014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
8237
8238 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
8239 offset into SPE pseudo registers.
8240
0c7e1a46
PA
82412014-03-18 Pedro Alves <palves@redhat.com>
8242
8243 PR gdb/13860
8244 * inferior.h (print_stop_event): Declare.
8245 * infrun.c (print_stop_event): New, factored out from ...
8246 (normal_stop): ... this.
8247 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
8248 of bpstat_print/print_stack_frame.
8249
9c1fcd01
TT
82502014-03-17 Tom Tromey <tromey@redhat.com>
8251
8252 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
8253
11aa919a
PMR
82542014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
8255
8256 * ada-lang.c (decode_constrained_packed_array): Perform a
8257 minimal coercion for reference with coerce_ref instead of
8258 ada_coerce_ref.
8259
d4ccb5e0
TG
82602014-03-17 Tristan Gingold <gingold@adacore.com>
8261
8262 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
8263 (darwin_solib_create_inferior_hook): Emit a warning if version
8264 is unhandled.
8265
49840f2a
UW
82662014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
8267
8268 * python/py-value.c (get_field_flag): Cast flag_name argument to
8269 PyObject_GetAttrString to support Python 2.4.
8270
ed4123e5
JK
82712014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8272
8273 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
8274 (Global Maintainers): Remove Jan Kratochvil.
8275
d6b64346
PA
82762014-03-14 Pedro Alves <palves@redhat.com>
8277
8278 * inferior.h (terminal_ours_for_output): Rename to ...
8279 (child_terminal_ours_for_output): ... this.
8280 (terminal_save_ours): Rename to ...
8281 (child_terminal_save_ours): ... this.
8282 (terminal_ours): Rename to ...
8283 (child_terminal_ours): ... this.
8284 (terminal_inferior): Rename to ...
8285 (child_terminal_inferior): ... this.
8286 (terminal_init_inferior): Rename to ...
8287 (child_terminal_init_inferior): ... this.
8288 (terminal_init_inferior_with_pgrp): Rename to ...
8289 (child_terminal_init_inferior_with_pgrp): ... this.
8290 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
8291 (child_terminal_init_with_pgrp): ... this.
8292 (terminal_save_ours): Rename to ...
8293 (child_terminal_save_ours): ... this.
8294 (terminal_init_inferior): Rename to ...
8295 (child_terminal_init): ... this. Adjust.
8296 (terminal_inferior): Rename to ...
8297 (child_terminal_inferior): ... this.
8298 (terminal_ours_for_output): Rename to ...
8299 (child_terminal_ours_for_output): ... this. Adjust.
8300 (terminal_ours): Rename to ...
8301 (child_terminal_ours): ... this.
8302 (terminal_ours_1): Rename to ...
8303 (child_terminal_ours_1): ... this. Adjust.
8304 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
8305 * windows-nat.c (do_initial_windows_stuff): Adjust.
8306 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
8307 (gnu_terminal_init): ... this. Adjust.
8308 (gnu_target): Adjust.
8309 * inf-child.c (inf_child_target): Adjust.
8310
5a1e8c7a
DE
83112014-03-13 Doug Evans <xdje42@gmail.com>
8312
8313 PR guile/16612
8314 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
8315 new eq?-hashtab.
8316
350e1a76
DE
83172014-03-13 Doug Evans <xdje42@gmail.com>
8318
8319 * value.c (record_latest_value): Call release_value_or_incref
8320 instead of release_value.
8321
a69900ae
PA
83222014-03-13 Pedro Alves <palves@redhat.com>
8323
8324 * procfs.c (procfs_target): Don't override to_shortname,
8325 to_longname or to_doc.
8326
5db9f0bd
PA
83272014-03-13 Pedro Alves <palves@redhat.com>
8328
8329 * inf-child.c (inf_child_open, inf_child_target): Don't mention
8330 Unix in user visible strings.
8331
5e3a2c38
SS
83322014-03-12 Stan Shebs <stan@codesourcery.com>
8333
8334 * gdbtypes.h: Annotate comments for Doxygen, add a page
8335 block comment with some general info.
8336
8bc2fe48
PA
83372014-03-12 Pedro Alves <palves@redhat.com>
8338
8339 * infcmd.c (prepare_execution_command): New function, factored out
8340 from several execution commands.
8341 (run_command_1, continue_command, step_1, jump_command)
8342 (signal_command, until_command, advance_command, finish_command)
8343 (attach_command): Use prepare_execution_command.
8344
638c5f49
OJ
83452014-03-12 Omair Javaid <omair.javaid@linaro.org>
8346
8347 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
8348 (MAX_BPTS): Define.
8349 (MAX_WPTS): Define.
8350 (struct arm_linux_thread_points): Removed.
8351 (struct arm_linux_process_info): New.
8352 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
8353 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
8354 (arm_linux_find_breakpoints_by_tid): Removed.
8355 (struct arch_lwp_info): New.
8356 (arm_linux_find_process_pid): New functions.
8357 (arm_linux_add_process): New functions.
8358 (arm_linux_process_info_get): New functions.
8359 (arm_linux_forget_process): New function.
8360 (arm_linux_get_debug_reg_state): New function.
8361 (struct update_registers_data): New.
8362 (update_registers_callback): New function.
8363 (arm_linux_insert_hw_breakpoint1): Updated.
8364 (arm_linux_remove_hw_breakpoint1): Updated.
8365 (arm_linux_insert_hw_breakpoint): Updated.
8366 (arm_linux_remove_hw_breakpoint): Updated.
8367 (arm_linux_insert_watchpoint): Updated.
8368 (arm_linux_remove_watchpoint): Updated.
8369 (arm_linux_new_thread): Updated.
8370 (arm_linux_prepare_to_resume): New function.
8371 (arm_linux_new_fork): New function.
8372 (_initialize_arm_linux_nat): Updated.
8373
6d03af93
PA
83742014-03-12 Pedro Alves <palves@redhat.com>
8375
8376 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
8377
b3ccfe11
TT
83782014-03-12 Tom Tromey <tromey@redhat.com>
8379
8380 * inf-child.c (return_zero): New function.
8381 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
8382 * aix-thread.c (aix_thread_inferior_created): New function.
8383 (aix_thread_attach): Remove.
8384 (init_aix_thread_ops): Don't set to_attach.
8385 (_initialize_aix_thread): Register inferior_created observer.
8386 * corelow.c (init_core_ops): Don't set to_attach or
8387 to_create_inferior.
8388 * exec.c (init_exec_ops): Don't set to_attach or
8389 to_create_inferior.
8390 * infcmd.c (run_command_1): Use find_run_target. Make direct
8391 target calls.
8392 (attach_command): Use find_attach_target. Make direct target
8393 calls.
8394 * record-btrace.c (init_record_btrace_ops): Don't set
8395 to_create_inferior.
8396 * record-full.c (record_full_can_async_p, record_full_is_async_p):
8397 Remove.
8398 (init_record_full_ops, init_record_full_core_ops): Update. Don't
8399 set to_create_inferior.
8400 * target.c (complete_target_initialization): Add assertion.
8401 (target_create_inferior): Remove.
8402 (find_default_attach, find_default_create_inferior): Remove.
8403 (find_attach_target, find_run_target): New functions.
8404 (find_default_is_async_p, find_default_can_async_p)
8405 (target_supports_non_stop, target_attach): Remove.
8406 (init_dummy_target): Don't set to_create_inferior or
8407 to_supports_non_stop.
8408 * target.h (struct target_ops) <to_attach>: Add comment. Remove
8409 TARGET_DEFAULT_FUNC.
8410 <to_create_inferior>: Add comment.
8411 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
8412 TARGET_DEFAULT_RETURN.
8413 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
8414 (find_attach_target, find_run_target): Declare.
8415 (target_create_inferior): Remove.
8416 (target_has_execution_1): Update comment.
8417 (target_supports_non_stop): Remove.
8418 * target-delegates.c: Rebuild.
8419
91f83b02
PA
84202014-03-12 Pedro Alves <palves@redhat.com>
8421
8422 * inf-child.h: Update comment to not mention Unix.
8423
f1aea813
PA
84242014-03-12 Pedro Alves <palves@redhat.com>
8425
8426 * inf-child.c: Update top comment to not mention Unix. Add
8427 generic comment describing how this target is meant to be used.
8428 (inf_child_post_attach, inf_child_post_startup_inferior)
8429 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
8430 Unix in comment.
8431
ee8e9165
PA
84322014-03-12 Pedro Alves <palves@redhat.com>
8433
8434 * nto-procfs.c: Include inf-child.h.
8435 (procfs_ops): Delete global.
8436 (procfs_can_run): Delete method.
8437 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
8438 target pointer instead of referencing procfs_ops.
8439 (procfs_prepare_to_store): Delete.
8440 (init_procfs_ops): Delete function.
8441 (procfs_target): New function, based on init_procfs_ops, but
8442 inherit inf_child_target.
8443 (_initialize_procfs): Use procfs_target.
8444
51a9c8c5
PA
84452014-03-12 Pedro Alves <palves@redhat.com>
8446
8447 * windows-nat.c: Include inf-child.h.
8448 (windows_ops): Delete global.
8449 (windows_open, windows_prepare_to_store, windows_can_run): Delete
8450 methods.
8451 (init_windows_ops): Delete function.
8452 (windows_target): New function, based on init_windows_ops, but
8453 inherit inf_child_target.
8454 (_initialize_windows_nat): Use windows_target. Install x86
8455 specific target methods here.
8456
c1966e26
DE
84572014-03-10 Doug Evans <xdje42@gmail.com>
8458
8459 * guile/guile.c (call_initialize_gdb_module): New function.
8460 (initialize_guile): Replace call to scm_init_guile with call to
8461 scm_with_guile.
8462
023db19c
JB
84632014-03-10 Joel Brobecker <brobecker@adacore.com>
8464
8465 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
8466 in call to TYPE_CODE macro.
8467
5ec18f2b
JG
84682014-03-10 Jerome Guitton <guitton@adacore.com>
8469
8668be63
JB
8470 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
8471 Resolve tagged types to full view.
5ec18f2b 8472
7d03f2eb
HZ
84732014-03-10 Hui Zhu <hui@codesourcery.com>
8474
8475 * target.h (target_insert_breakpoint): Remove "hardware" from its
8476 comments.
8477
c5164cbc
DE
84782014-03-07 Doug Evans <dje@google.com>
8479
8480 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
8481
c4a3fee2
DE
84822014-03-07 Doug Evans <dje@google.com>
8483
8484 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
8485 Remove unused local comp_dir_attr. Assert exactly one of
8486 stub_comp_unit_die, stub_comp_dir is non-NULL.
8487
3156469c
JB
84882014-03-07 Joel Brobecker <brobecker@adacore.com>
8489
8490 * target.h (complete_target_initialization, add_target):
8491 Add comment.
8492
c1a7b7c6
PA
84932014-03-07 Pedro Alves <palves@redhat.com>
8494
8495 * go32-nat.c: Include inf-child.h.
8496 (go32_ops): Delete global.
8497 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
8498 Delete methods.
8499 (go32_create_inferior): Push the passed in target pointer instead
8500 of referencing go32_ops.
8501 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
8502 (go32_target): New function, based on init_go32_ops, but inherit
8503 inf_child_target.
8504 (_initialize_go32_nat): Use go32_target. Move parts of
8505 init_go32_ops here.
8506
d3c1a85f
JB
85072014-03-06 Joel Brobecker <brobecker@adacore.com>
8508
8509 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
8510 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
8511 SYMBOL_VALUE_ADDRESS.
8512 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
8513
5fa1d40e
YQ
85142014-03-06 Yao Qi <yao@codesourcery.com>
8515
8516 * breakpoint.c (get_tracepoint_by_number): Remove argument
8517 optional_p. All callers updated. Adjust comments. Update
8518 output message.
8519 * breakpoint.h (get_tracepoint_by_number): Update declaration.
8520
0c13193f
YQ
85212014-03-06 Yao Qi <yao@codesourcery.com>
8522
8523 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
8524 early if get_number returns zero. Use 'p' instead of 'args'.
8525
2217da06
YQ
85262014-03-06 Yao Qi <yao@codesourcery.com>
8527
8528 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
8529 message.
8530
cc3da688
YQ
85312014-03-06 Yao Qi <yao@codesourcery.com>
8532
8533 PR breakpoints/16508
8534 * tracepoint.c (check_trace_running): New function.
8535 (trace_find_command): Move code to check_trace_running and
8536 call check_trace_running.
8537 (trace_find_pc_command): Likewise.
8538 (trace_find_tracepoint_command): Likewise.
8539 (trace_find_line_command): Likewise.
8540 (trace_find_range_command): Likewise.
8541 * tracepoint.h (check_trace_running): Likewise.
8542 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
8543
6a5f844b
YQ
85442014-03-06 Yao Qi <yao@codesourcery.com>
8545
8546 * target.h (struct target_ops) <to_traceframe_info>: Use
8547 TARGET_DEFAULT_NORETURN (tcomplain ()).
8548 * target-delegates.c: Regenerated.
8549
0f26cec1
PA
85502014-03-05 Pedro Alves <palves@redhat.com>
8551
8552 PR gdb/16575
8553 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
8554 void. Update comment.
8555 (dcache_xfer_memory): Delete.
8556 (dcache_read_memory_partial): New, based on the read bits of
8557 dcache_xfer_memory.
8558 (dcache_update): Add status parameter. Use ULONGEST for len, and
8559 adjust. Discard cache lines if the reason for the update was
8560 error.
8561 * dcache.h (dcache_xfer_memory): Delete declaration.
8562 (dcache_read_memory_partial): New declaration.
8563 (dcache_update): Update prototype.
8564 * target.c (raw_memory_xfer_partial): Update the dcache here.
8565 (memory_xfer_partial_1): Don't handle dcache writes here.
8566
b2b255bd
MF
85672014-03-05 Mike Frysinger <vapier@gentoo.org>
8568
8569 * remote-sim.c (gdbsim_load): Add const to prog.
8570
5d9cf8a4
TT
85712014-03-03 Tom Tromey <tromey@redhat.com>
8572
8573 * elfread.c (probe_key): Change to bfd_data.
8574 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
8575 now per-BFD, not per-objfile.
8576 * stap-probe.c (stap_probe_destroy): Update comment.
8577 (handle_stap_probe): Allocate on the per-BFD obstack.
8578
729662a5
TT
85792014-03-03 Tom Tromey <tromey@redhat.com>
8580
8581 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
8582 * breakpoint.c (create_longjmp_master_breakpoint): Use
8583 get_probe_address.
8584 (add_location_to_breakpoint, bkpt_probe_insert_location)
8585 (bkpt_probe_remove_location): Update.
8586 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
8587 * elfread.c (elf_symfile_relocate_probe): Remove.
8588 (elf_probe_fns): Update.
8589 (insert_exception_resume_breakpoint): Change type of "probe"
8590 parameter to bound_probe.
8591 (check_exception_resume): Update.
8592 * objfiles.c (objfile_relocate1): Don't relocate probes.
8593 * probe.c (bound_probe_s): New typedef.
8594 (parse_probes): Use get_probe_address. Set sal's objfile.
8595 (find_probe_by_pc): Return a bound_probe.
8596 (collect_probes): Return a VEC(bound_probe_s).
8597 (compare_probes): Update.
8598 (gen_ui_out_table_header_info): Change type of "probes"
8599 parameter. Update.
8600 (info_probes_for_ops): Update.
8601 (get_probe_address): New function.
8602 (probe_safe_evaluate_at_pc): Update.
8603 * probe.h (struct probe_ops) <get_probe_address>: New field.
8604 <set_semaphore, clear_semaphore>: Add objfile parameter.
8605 (struct probe) <objfile>: Remove field.
8606 <arch>: New field.
8607 <address>: Update comment.
8608 (struct bound_probe): New.
8609 (find_probe_by_pc): Return a bound_probe.
8610 (get_probe_address): Declare.
8611 * solib-svr4.c (struct probe_and_action) <address>: New field.
8612 (hash_probe_and_action, equal_probe_and_action): Update.
8613 (register_solib_event_probe): Add address parameter.
8614 (solib_event_probe_at): Update.
8615 (svr4_create_probe_breakpoints): Add objfile parameter. Use
8616 get_probe_address.
8617 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
8618 (stap_get_probe_address): New function.
8619 (stap_can_evaluate_probe_arguments, compute_probe_arg)
8620 (compile_probe_arg): Update.
8621 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
8622 address.
8623 (handle_stap_probe): Don't relocate the probe.
8624 (stap_relocate): Remove.
8625 (stap_gen_info_probes_table_values): Update.
8626 (stap_probe_ops): Remove stap_relocate.
8627 * symfile-debug.c (debug_sym_relocate_probe): Remove.
8628 (debug_sym_probe_fns): Update.
8629 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
8630 * symtab.c (init_sal): Use memset.
8631 * symtab.h (struct symtab_and_line) <objfile>: New field.
8632 * tracepoint.c (start_tracing, stop_tracing): Update.
8633
ff887920
TT
86342014-03-03 Tom Tromey <tromey@redhat.com>
8635
8636 * probe.h (parse_probes, find_probe_by_pc)
8637 (find_probes_in_objfile): Fix comments.
8638
f0407826
DE
86392014-03-02 Doug Evans <xdje42@gmail.com>
8640
8641 * infrun.c (handle_signal_stop): Replace test for
8642 TARGET_WAITKIND_STOPPED with an assert.
8643
35e6a711
DE
86442014-03-02 Doug Evans <xdje42@gmail.com>
8645
8646 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
8647
667f9d0b
DE
86482014-03-02 Doug Evans <xdje42@gmail.com>
8649
8650 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
8651
dc92ace0
MK
86522014-03-01 Mark Kettenis <kettenis@gnu.org>
8653
8654 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
8655
a900370f
MK
86562014-03-01 Mark Kettenis <kettenis@gnu.org>
8657
8658 * i386obsd-nat.c: Include "obsd-nat.h".
8659 (_initialize_i386obsd_nat): Call obsd_add_target instead of
8660 add_target.
8661 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8662
b72a7981
MK
86632014-03-01 Mark Kettenis <kettenis@gnu.org>
8664
8665 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
8666
96c70aba
MK
86672014-03-01 Mark Kettenis <kettenis@gnu.org>
8668
8669 * mips64obsd-nat.c: Include "obsd-nath".
8670 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
8671 add_target
8672 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8673
874a80af
MK
86742014-03-01 Mark Kettenis <kettenis@gnu.org>
8675
8fd408f1
MK
8676 * amd64obsd-nat.c: Include "obsd-nat,h.
8677 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
8678 add_target.
874a80af
MK
8679 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8680
9cf95373
SC
86812014-02-28 Siva Chandra Reddy <sivachandra@google.com>
8682
8683 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
8684 (find_overload_match): Update call to find_oload_champ.
8685 (find_oload_champ_namespace_loop): Likewise
8686
863e4da4
MK
86872014-02-28 Mark Kettenis <kettenis@gnu.org>
8688
025cac40
MK
8689 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
8690
1ed586ce
MK
8691 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
8692 * config/sparc/obsd64.mh: New file.
8693 * sparc64obsd-nat.c: New file.
8694
863e4da4
MK
8695 * obsd-nat.h: New file.
8696 * obsd-nat.c: New file.
8697 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
8698 (ALLDEPFILES): Add obsd-nat.c.
8699
89de4da4
TT
87002014-02-28 Tom Tromey <tromey@redhat.com>
8701
8702 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
8703 * cli-out.h (cli_ui_out_impl): Now const.
8704 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
8705 * ui-out.c (struct ui_out) <impl>: Now const.
8706 (default_ui_out_impl): Now const.
8707 (ui_out_new): Make 'impl' parameter const.
8708 * ui-out.h (ui_out_new): Update.
8709
c725e7b6
MK
87102014-02-27 Mark Kettenis <kettenis@gnu.org>
8711
8712 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
8713
670b46b3
MK
87142014-02-27 Mark Kettenis <kettenis@gnu.org>
8715
8716 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
8717
c91550fc
JK
87182014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
8719
8720 Additional PR 8882 fix.
8721 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
8722
2fa0369e
PA
87232014-02-27 Pedro Alves <palves@redhat.com>
8724
8725 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
8726 isn't set.
8727
d632a097
PA
87282014-02-27 Pedro Alves <palves@redhat.com>
8729
8730 PR 12702
8731 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
8732 * nat/linux-waitpid.c: Include string.h.
8733 (status_to_str): Moved here and made extern.
8734 * nat/linux-waitpid.h (status_to_str): New declaration.
8735
2ebd5a35
HZ
87362014-02-27 Hui Zhu <hui@codesourcery.com>
8737
8738 PR 12702
8739 * infrun.c (ptid_match): Move ...
8740 * common/ptid.c (ptid_match): ... here.
8741 * inferior.h (ptid_match): Move ...
8742 * common/ptid.h (ptid_match): ... here.
8743
3cdd631f
MK
87442014-02-27 Mark Kettenis <kettenis@gnu.org>
8745
8746 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
8747 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
8748 gdb_target_obs.
8749
bee30a64
MK
87502014-02-27 Mark Kettenis <kettenis@gnu.org>
8751
8752 * obsd-tdep.c (obsd_auxv_parse): New function.
8753 (obsd_init_abi): Set auxv_parse.
27a48a92
MK
8754
8755 * gdbarch.sh (auxv_parse): New.
8756 * gdbarch.h: Regenerated.
8757 * gdbarch.c: Regenerated.
8758 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
8759
7a5a839f
LC
87602014-02-26 Ludovic Courtès <ludo@gnu.org>
8761
8762 * guile/scm-value.c (gdbscm_history_append_x): New function.
8763 (value_functions): Add it.
8764
31aa7e4e
JB
87652014-02-27 Joel Brobecker <brobecker@adacore.com>
8766
8767 * dwarf2read.c (attr_value_as_address): New function.
8768 (dwarf2_find_base_address, read_call_site_scope): Use
8769 attr_value_as_address in place of DW_ADDR.
8770 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
8771 the low and high addresses. Slight rework of the handling
8772 of the high pc being a constant form, and limit it to
8773 DWARF verson 4 or higher.
8774 (dwarf2_record_block_ranges): Likewise.
8775 (read_partial_die): Likewise.
8776 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
8777
9b333ba3
TT
87782014-02-26 Tom Tromey <tromey@redhat.com>
8779
8780 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
8781
5f6cac40
TT
87822014-02-26 Tom Tromey <tromey@redhat.com>
8783
8784 * elfread.c (elf_read_minimal_symbols): Return early if
8785 minimal symbols have already been read. Add "ei" parameter.
8786 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
8787 * minsyms.c (prim_record_minimal_symbol_full): Update.
8788 * objfiles.h (struct objstats) <n_minsyms>: Move...
8789 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
8790 * symmisc.c (print_objfile_statistics): Update.
8791
2750ef27
TT
87922014-02-26 Tom Tromey <tromey@redhat.com>
8793
8794 * elfread.c (elf_read_minimal_symbols): New function, from
8795 elf_symfile_read.
8796 (elf_symfile_read): Call it.
8797
34643a32
TT
87982014-02-26 Tom Tromey <tromey@redhat.com>
8799
8800 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
8801 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
8802 (lookup_minimal_symbol_solib_trampoline)
8803 (lookup_minimal_symbol_by_pc_section_1)
8804 (lookup_minimal_symbol_and_objfile): Update.
8805 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
8806 Don't allocate a minimal symbol if minsyms have already been read.
8807 (build_minimal_symbol_hash_tables): Update.
8808 (install_minimal_symbols): Do nothing if minsyms already read.
8809 Use the per-BFD obstack.
8810 (terminate_minimal_symbol_table): Use the per-BFD obstack.
8811 * objfiles.c (allocate_objfile): Call
8812 terminate_minimal_symbol_table later.
8813 (have_minimal_symbols): Update.
8814 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
8815 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
8816 Move from struct objfile.
8817 <minsyms_read>: New field.
8818 (struct objfile) <msymbols, minimal_symbol_count,
8819 msymbol_hash, msymbol_demangled_hash>: Move.
8820 (ALL_OBJFILE_MSYMBOLS): Update.
8821 * symfile.c (read_symbols): Set minsyms_read.
8822 (reread_symbols): Update.
8823 * symmisc.c (dump_objfile, dump_msymbols): Update.
8824
2273f0ac
TT
88252014-02-26 Tom Tromey <tromey@redhat.com>
8826
8827 * minsyms.c (msymbols_sort): Remove.
8828 * minsyms.h (msymbols_sort): Remove.
8829 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
8830 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
8831 * elfread.c (elf_symtab_read): Don't add section offsets.
8832 * xcoffread.c (record_minimal_symbol): Don't add section offset
8833 to minimal symbol address.
8834 * somread.c (text_offset, data_offset): Remove.
8835 (som_symtab_read): Don't add section offsets to minimal symbol
8836 addresses.
8837 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
8838 Don't add section offsets to minimal symbols.
8839 * coffread.c (coff_symtab_read): Don't add section offsets
8840 to minimal symbol addresses.
8841 * machoread.c (macho_symtab_add_minsym): Don't add section offset
8842 to minimal symbol addresses.
8843 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
8844 section offset to minimal symbol addresses.
8845 * mdebugread.c (parse_partial_symbols): Don't add section
8846 offset to minimal symbol addresses.
8847 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
8848 offset to minimal symbol addresses.
8849
77e371c0
TT
88502014-02-26 Tom Tromey <tromey@redhat.com>
8851
8852 * ada-lang.c (ada_main_name): Update.
8853 (ada_add_standard_exceptions): Update.
8854 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
8855 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8856 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
8857 * auxv.c (ld_so_xfer_auxv): Update.
8858 * avr-tdep.c (avr_scan_prologue): Update.
8859 * ax-gdb.c (gen_var_ref): Update.
8860 * blockframe.c (get_pc_function_start)
8861 (find_pc_partial_function_gnu_ifunc): Update.
8862 * breakpoint.c (create_overlay_event_breakpoint)
8863 (create_longjmp_master_breakpoint)
8864 (create_std_terminate_master_breakpoint)
8865 (create_exception_master_breakpoint): Update.
8866 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8867 * c-valprint.c (c_val_print): Update.
8868 * coff-pe-read.c (add_pe_forwarded_sym): Update.
8869 * common/agent.c (agent_look_up_symbols): Update.
8870 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
8871 * dwarf2loc.c (call_site_to_target_addr): Update.
8872 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
8873 * elfread.c (elf_gnu_ifunc_record_cache)
8874 (elf_gnu_ifunc_resolve_by_got): Update.
8875 * findvar.c (default_read_var_value): Update.
8876 * frame.c (inside_main_func): Update.
8877 * frv-tdep.c (frv_frame_this_id): Update.
8878 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8879 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
8880 Update.
8881 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
8882 (hppa_hpux_find_dummy_bpaddr): Update.
8883 * hppa-tdep.c (hppa_symbol_address): Update.
8884 * infcmd.c (until_next_command): Update.
8885 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
8886 Update.
8887 * linespec.c (minsym_found, add_minsym): Update.
8888 * linux-nat.c (get_signo): Update.
8889 * linux-thread-db.c (inferior_has_bug): Update.
8890 * m32c-tdep.c (m32c_return_value)
8891 (m32c_m16c_address_to_pointer): Update.
8892 * m32r-tdep.c (m32r_frame_this_id): Update.
8893 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8894 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8895 * maint.c (maintenance_translate_address): Update.
8896 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
8897 (frob_address): New function.
8898 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
8899 frob_address. Rename parameter to "pc_in".
8900 (compare_minimal_symbols, compact_minimal_symbols): Use raw
8901 addresses.
8902 (find_solib_trampoline_target, minimal_symbol_upper_bound):
8903 Update.
8904 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8905 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
8906 * objc-lang.c (find_objc_msgsend): Update.
8907 * objfiles.c (objfile_relocate1): Update.
8908 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8909 * p-valprint.c (pascal_val_print): Update.
8910 * parse.c (write_exp_msymbol): Update.
8911 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
8912 (ppc_elfv2_skip_entrypoint): Update.
8913 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8914 * printcmd.c (build_address_symbolic, msym_info)
8915 (address_info): Update.
8916 * proc-service.c (ps_pglobal_lookup): Update.
8917 * psymtab.c (find_pc_sect_psymtab_closer)
8918 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
8919 Change msymbol parameter to bound_minimal_symbol.
8920 * ravenscar-thread.c (get_running_thread_id): Update.
8921 * remote.c (remote_check_symbols): Update.
8922 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
8923 address.
8924 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8925 * solib-dsbt.c (lm_base): Update.
8926 * solib-frv.c (lm_base, main_got): Update.
8927 * solib-irix.c (locate_base): Update.
8928 * solib-som.c (som_solib_create_inferior_hook)
8929 (link_map_start): Update.
8930 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
8931 * solib-svr4.c (elf_locate_base, enable_break): Update.
8932 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
8933 (flush_ea_cache): Update.
8934 * stabsread.c (define_symbol, scan_file_globals): Update.
8935 * stack.c (find_frame_funname): Update.
8936 * symfile-debug.c (debug_qf_expand_symtabs_matching)
8937 (debug_qf_find_pc_sect_symtab): Update.
8938 * symfile.c (simple_read_overlay_table)
8939 (simple_overlay_update): Update.
8940 * symfile.h (struct quick_symbol_functions)
8941 <find_pc_sect_symtab>: Change type of msymbol to
8942 bound_minimal_symbol.
8943 * symmisc.c (dump_msymbols): Update.
8944 * symtab.c (find_pc_sect_symtab_via_partial)
8945 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
8946 (search_symbols, print_msymbol_info): Update.
8947 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
8948 (MSYMBOL_VALUE_ADDRESS): Redefine.
8949 (BMSYMBOL_VALUE_ADDRESS): New macro.
8950 * tracepoint.c (scope_info): Update.
8951 * tui/tui-disasm.c (tui_find_disassembly_address)
8952 (tui_get_begin_asm_address): Update.
8953 * valops.c (find_function_in_inferior): Update.
8954 * value.c (value_static_field, value_fn_field): Update.
8955
3b7344d5
TT
89562014-02-26 Tom Tromey <tromey@redhat.com>
8957
8958 * ada-lang.c (ada_update_initial_language): Update.
8959 (ada_main_name, ada_has_this_exception_support): Update.
8960 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
8961 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8962 * arm-tdep.c (arm_skip_stub): Update.
8963 * auxv.c (ld_so_xfer_auxv): Update.
8964 * avr-tdep.c (avr_scan_prologue): Update.
8965 * ax-gdb.c (gen_var_ref): Update.
8966 * breakpoint.c (struct breakpoint_objfile_data)
8967 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
8968 type to bound_minimal_symbol.
8969 (create_overlay_event_breakpoint)
8970 (create_longjmp_master_breakpoint)
8971 (create_std_terminate_master_breakpoint)
8972 (create_exception_master_breakpoint): Update.
8973 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8974 * c-exp.y (classify_name): Update.
8975 * coffread.c (coff_symfile_read): Update.
8976 * common/agent.c (agent_look_up_symbols): Update.
8977 * d-lang.c (d_main_name): Update.
8978 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
8979 * dec-thread.c (enable_dec_thread): Update.
8980 * dwarf2loc.c (call_site_to_target_addr): Update.
8981 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
8982 * eval.c (evaluate_subexp_standard): Update.
8983 * findvar.c (struct minsym_lookup_data) <result>: Change type
8984 to bound_minimal_symbol.
8985 <objfile>: Remove.
8986 (minsym_lookup_iterator_cb, default_read_var_value): Update.
8987 * frame.c (inside_main_func): Update.
8988 * frv-tdep.c (frv_frame_this_id): Update.
8989 * gcore.c (call_target_sbrk): Update.
8990 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8991 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
8992 Update.
8993 * go-lang.c (go_main_name): Update.
8994 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
8995 (hppa_hpux_find_import_stub_for_addr): Update.
8996 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
8997 Update. Change return type.
8998 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
8999 type.
9000 * jit.c (jit_breakpoint_re_set_internal): Update.
9001 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
9002 Update.
9003 * linux-nat.c (get_signo): Update.
9004 * linux-thread-db.c (inferior_has_bug): Update
9005 * m32c-tdep.c (m32c_return_value)
9006 (m32c_m16c_address_to_pointer): Update.
9007 * m32r-tdep.c (m32r_frame_this_id): Update.
9008 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9009 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9010 * minsyms.c (lookup_minimal_symbol_internal): Rename to
9011 lookup_minimal_symbol. Change return type.
9012 (lookup_minimal_symbol): Remove.
9013 (lookup_bound_minimal_symbol): Update.
9014 (lookup_minimal_symbol_text): Change return type.
9015 (lookup_minimal_symbol_solib_trampoline): Change return type.
9016 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
9017 (lookup_minimal_symbol_solib_trampoline): Change return type.
9018 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9019 * objc-lang.c (lookup_objc_class, lookup_child_selector)
9020 (value_nsstring, find_imps): Update.
9021 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9022 * p-lang.c (pascal_main_name): Update.
9023 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
9024 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9025 * proc-service.c (ps_pglobal_lookup): Update.
9026 * ravenscar-thread.c (get_running_thread_msymbol): Change
9027 return type.
9028 (has_ravenscar_runtime, get_running_thread_id): Update.
9029 * remote.c (remote_check_symbols): Update.
9030 * sol-thread.c (ps_pglobal_lookup): Update.
9031 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9032 * solib-dsbt.c (lm_base): Update.
9033 * solib-frv.c (lm_base, frv_relocate_section_addresses):
9034 Update.
9035 * solib-irix.c (locate_base): Update.
9036 * solib-som.c (som_solib_create_inferior_hook)
9037 (som_solib_desire_dynamic_linker_symbols, link_map_start):
9038 Update.
9039 * solib-spu.c (spu_enable_break): Update.
9040 * solib-svr4.c (elf_locate_base, enable_break): Update.
9041 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
9042 (flush_ea_cache): Update.
9043 * stabsread.c (define_symbol): Update.
9044 * symfile.c (simple_read_overlay_table): Update.
9045 * symtab.c (find_pc_sect_line): Update.
9046 * tracepoint.c (scope_info): Update.
9047 * tui-disasm.c (tui_get_begin_asm_address): Update.
9048 * value.c (value_static_field): Update.
9049
40c1a007
TT
90502014-02-26 Tom Tromey <tromey@redhat.com>
9051
9052 * minsyms.c (prim_record_minimal_symbol_full): Use
9053 SET_MSYMBOL_VALUE_ADDRESS.
9054 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
9055 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
9056 SET_MSYMBOL_VALUE_ADDRESS.
9057 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
9058 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
9059
efd66ac6
TT
90602014-02-26 Tom Tromey <tromey@redhat.com>
9061
9062 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
9063 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
9064 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
9065 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
9066 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
9067 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
9068 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
9069 * ada-lang.c (ada_main_name): Update.
9070 (ada_lookup_simple_minsym): Update.
9071 (ada_make_symbol_completion_list): Update.
9072 (ada_add_standard_exceptions): Update.
9073 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
9074 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9075 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
9076 * arm-tdep.c (skip_prologue_function): Update.
9077 (arm_skip_stack_protector, arm_skip_stub): Update.
9078 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
9079 (arm_wince_skip_main_prologue): Update.
9080 * auxv.c (ld_so_xfer_auxv): Update.
9081 * avr-tdep.c (avr_scan_prologue): Update.
9082 * ax-gdb.c (gen_var_ref): Update.
9083 * block.c (call_site_for_pc): Update.
9084 * blockframe.c (get_pc_function_start): Update.
9085 (find_pc_partial_function_gnu_ifunc): Update.
9086 * breakpoint.c (create_overlay_event_breakpoint): Update.
9087 (create_longjmp_master_breakpoint): Update.
9088 (create_std_terminate_master_breakpoint): Update.
9089 (create_exception_master_breakpoint): Update.
9090 (resolve_sal_pc): Update.
9091 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9092 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
9093 Update.
9094 * c-valprint.c (c_val_print): Update.
9095 * coff-pe-read.c (add_pe_forwarded_sym): Update.
9096 * coffread.c (coff_symfile_read): Update.
9097 * common/agent.c (agent_look_up_symbols): Update.
9098 * dbxread.c (find_stab_function_addr): Update.
9099 (end_psymtab): Update.
9100 * dwarf2loc.c (call_site_to_target_addr): Update.
9101 (func_verify_no_selftailcall): Update.
9102 (tailcall_dump): Update.
9103 (call_site_find_chain_1): Update.
9104 (dwarf_expr_reg_to_entry_parameter): Update.
9105 * elfread.c (elf_gnu_ifunc_record_cache): Update.
9106 (elf_gnu_ifunc_resolve_by_got): Update.
9107 * f-valprint.c (info_common_command): Update.
9108 * findvar.c (read_var_value): Update.
9109 * frame.c (get_prev_frame_1): Update.
9110 (inside_main_func): Update.
9111 * frv-tdep.c (frv_skip_main_prologue): Update.
9112 (frv_frame_this_id): Update.
9113 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9114 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
9115 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
9116 (gnuv3_skip_trampoline): Update.
9117 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
9118 (hppa64_hpux_in_solib_call_trampoline): Update.
9119 (hppa_hpux_skip_trampoline_code): Update.
9120 (hppa64_hpux_search_dummy_call_sequence): Update.
9121 (hppa_hpux_find_import_stub_for_addr): Update.
9122 (hppa_hpux_find_dummy_bpaddr): Update.
9123 * hppa-tdep.c (hppa_symbol_address)
9124 (hppa_lookup_stub_minimal_symbol): Update.
9125 * i386-tdep.c (i386_skip_main_prologue): Update.
9126 (i386_pe_skip_trampoline_code): Update.
9127 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
9128 * infcall.c (get_function_name): Update.
9129 * infcmd.c (until_next_command): Update.
9130 * jit.c (jit_breakpoint_re_set_internal): Update.
9131 (jit_inferior_init): Update.
9132 * linespec.c (minsym_found): Update.
9133 (add_minsym): Update.
9134 * linux-fork.c (info_checkpoints_command): Update.
9135 * linux-nat.c (get_signo): Update.
9136 * linux-thread-db.c (inferior_has_bug): Update.
9137 * m32c-tdep.c (m32c_return_value): Update.
9138 (m32c_m16c_address_to_pointer): Update.
9139 (m32c_m16c_pointer_to_address): Update.
9140 * m32r-tdep.c (m32r_frame_this_id): Update.
9141 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9142 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9143 * maint.c (maintenance_translate_address): Update.
9144 * minsyms.c (add_minsym_to_hash_table): Update.
9145 (add_minsym_to_demangled_hash_table): Update.
9146 (msymbol_objfile): Update.
9147 (lookup_minimal_symbol): Update.
9148 (iterate_over_minimal_symbols): Update.
9149 (lookup_minimal_symbol_text): Update.
9150 (lookup_minimal_symbol_by_pc_name): Update.
9151 (lookup_minimal_symbol_solib_trampoline): Update.
9152 (lookup_minimal_symbol_by_pc_section_1): Update.
9153 (lookup_minimal_symbol_and_objfile): Update.
9154 (prim_record_minimal_symbol_full): Update.
9155 (compare_minimal_symbols): Update.
9156 (compact_minimal_symbols): Update.
9157 (build_minimal_symbol_hash_tables): Update.
9158 (install_minimal_symbols): Update.
9159 (terminate_minimal_symbol_table): Update.
9160 (find_solib_trampoline_target): Update.
9161 (minimal_symbol_upper_bound): Update.
9162 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9163 * mips-tdep.c (mips_stub_frame_sniffer): Update.
9164 (mips_skip_pic_trampoline_code): Update.
9165 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
9166 * objc-lang.c (selectors_info): Update.
9167 (classes_info): Update.
9168 (find_methods): Update.
9169 (find_imps): Update.
9170 (find_objc_msgsend): Update.
9171 * objfiles.c (objfile_relocate1): Update.
9172 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
9173 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9174 * p-valprint.c (pascal_val_print): Update.
9175 * parse.c (write_exp_msymbol): Update.
9176 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
9177 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
9178 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9179 * printcmd.c (build_address_symbolic): Update.
9180 (sym_info): Update.
9181 (address_info): Update.
9182 * proc-service.c (ps_pglobal_lookup): Update.
9183 * psymtab.c (find_pc_sect_psymtab_closer): Update.
9184 (find_pc_sect_psymtab): Update.
9185 * python/py-framefilter.c (py_print_frame): Update.
9186 * ravenscar-thread.c (get_running_thread_id): Update.
9187 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
9188 Update.
9189 * remote.c (remote_check_symbols): Update.
9190 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
9191 (rs6000_skip_trampoline_code): Update.
9192 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
9193 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9194 * solib-dsbt.c (lm_base): Update.
9195 * solib-frv.c (lm_base): Update.
9196 (main_got): Update.
9197 * solib-irix.c (locate_base): Update.
9198 * solib-som.c (som_solib_create_inferior_hook): Update.
9199 (som_solib_desire_dynamic_linker_symbols): Update.
9200 (link_map_start): Update.
9201 * solib-spu.c (spu_enable_break): Update.
9202 (ocl_enable_break): Update.
9203 * solib-svr4.c (elf_locate_base): Update.
9204 (enable_break): Update.
9205 * spu-tdep.c (spu_get_overlay_table): Update.
9206 (spu_catch_start): Update.
9207 (flush_ea_cache): Update.
9208 * stabsread.c (define_symbol): Update.
9209 (scan_file_globals): Update.
9210 * stack.c (find_frame_funname): Update.
9211 (frame_info): Update.
9212 * symfile.c (simple_read_overlay_table): Update.
9213 (simple_overlay_update): Update.
9214 * symmisc.c (dump_msymbols): Update.
9215 * symtab.c (fixup_section): Update.
9216 (find_pc_sect_line): Update.
9217 (skip_prologue_sal): Update.
9218 (search_symbols): Update.
9219 (print_msymbol_info): Update.
9220 (rbreak_command): Update.
9221 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
9222 (completion_list_objc_symbol): Update.
9223 (default_make_symbol_completion_list_break_on): Update.
9224 * tracepoint.c (scope_info): Update.
9225 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
9226 (tui_get_begin_asm_address): Update.
9227 * valops.c (find_function_in_inferior): Update.
9228 * value.c (value_static_field): Update.
9229 (value_fn_field): Update.
9230
50e65b17
TT
92312014-02-26 Tom Tromey <tromey@redhat.com>
9232
9233 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
9234 bound minimal symbols. Move code that knows about minsym
9235 table layout...
9236 * minsyms.c (minimal_symbol_upper_bound): ... here. New
9237 function.
9238 * minsyms.h (minimal_symbol_upper_bound): Declare.
9239 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
9240 minimal_symbol_upper_bound.
9241
1b588015
JB
92422014-02-27 Joel Brobecker <brobecker@adacore.com>
9243
9244 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
9245 Use the type's name if its basic type does not have a tag.
9246
dbb9c2b1
JB
92472014-02-27 Joel Brobecker <brobecker@adacore.com>
9248
9249 * dwarf2read.c (read_subrange_type): Add comment.
9250
55426c9d
JB
92512014-02-27 Joel Brobecker <brobecker@adacore.com>
9252
9253 * dwarf2read.c (update_enumeration_type_from_children): New
9254 function, mostly extracted from process_structure_scope.
9255 (read_enumeration_type): Call update_enumeration_type_from_children.
9256 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
9257 and flag_flag_enum fields.
9258
f2fce0ca
PA
92592014-02-26 Pedro Alves <palves@redhat.com>
9260
9261 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
9262 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
9263 to_xfer_partial method.
9264
7a44e40e
PA
92652014-02-26 Pedro Alves <palves@redhat.com>
9266
9267 * target.c (complete_target_initialization): Don't install
9268 default_xfer_partial as to_xfer_partial hook.
9269 (nomemory): Delete.
9270 (update_current_target): Don't INHERIT nor de_fault
9271 deprecated_xfer_memory. Delete de_fault macro.
9272 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
9273 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
9274 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
9275 field.
9276
bd265cd0
PA
92772014-02-26 Pedro Alves <palves@redhat.com>
9278
9279 * go32-nat.c (my_write_child): New function.
9280 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
9281 (go32_xfer_partial): New function.
9282 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
9283 Instead install a to_xfer_partial hook.
9284
9d46c4e5
PA
92852014-02-26 Pedro Alves <palves@redhat.com>
9286
9287 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
9288 to_xfer_partial helper. Rewrite.
9289 (procfs_xfer_partial): New function.
9290 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
9291 Install a to_xfer_partial hook.
9292
a1583b1f
PA
92932014-02-26 Pedro Alves <palves@redhat.com>
9294
9295 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
9296 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
9297 (m32r_xfer_partial): New function.
9298 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
9299 Install a to_xfer_partial hook.
9300
6df1b29f
PA
93012014-02-26 Pedro Alves <palves@redhat.com>
9302
9303 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
9304 helper.
9305 (mips_xfer_partial): New function.
9306 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
9307 hook. Install a to_xfer_partial hook.
9308
dc53a7ad
JB
93092014-02-26 Joel Brobecker <brobecker@adacore.com>
9310
9311 * gdbtypes.h (create_array_type_with_stride): Add declaration.
9312 * gdbtypes.c (create_array_type_with_stride): New function,
9313 renaming create_array_type, but with an added parameter
9314 called "bit_stride".
9315 (create_array_type): Re-implement using
9316 create_array_type_with_stride.
9317 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
9318 and DW_AT_bit_stride attributes.
9319
12ab52e9
PA
93202014-02-26 Pedro Alves <palves@redhat.com>
9321
9322 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
9323 task-specific breakpoints.
9324
d16461ae
PA
93252014-02-25 Pedro Alves <palves@redhat.com>
9326
9327 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
9328 handling of object == TARGET_OBJECT_UNWIND_TABLE.
9329
a8b16220
SS
93302014-02-25 Stan Shebs <stan@codesourcery.com>
9331
9332 * defs.h: Annotate comments for Doxygen.
9333
b9e795ee
TT
93342014-02-25 Tom Tromey <tromey@redhat.com>
9335
9336 * target.h (target_ignore): Don't declare.
9337 * target.c (target_ignore): Remove.
9338
849c862e
JK
93392014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
9340
9341 PR gdb/16626
9342 * auto-load.c (auto_load_objfile_script_1): Change filename to
9343 debugfile.
9344
475109d8
JB
93452014-02-25 Joel Brobecker <brobecker@adacore.com>
9346
9347 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
9348 documentation. Adjust prototype to match the target_ops
9349 to_xfer_partial method. Adjust implementation accordingly.
9350
e186c3bd
HZ
93512014-02-25 Hui Zhu <hui@codesourcery.com>
9352
9353 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
9354 to_traceframe_info.
9355
6d451942
KB
93562014-02-25 Kevin Buettner <kevinb@redhat.com>
9357
041ab8b4 9358 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
6d451942
KB
9359 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
9360 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
9361 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
9362 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
9363 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
9364 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
9365 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
9366 New constants.
9367 (rl78_register_type): Use a data pointer type for SP and
9368 new pseudo registers mentioned above. Use a 16 bit integer
9369 type for all other register pairs.
9370 (rl78_register_name, rl78_g10_register_name): Update for
9371 new pseudo registers.
9372 (rl78_pseudo_register_read): Likewise.
9373 (rl78_pseudo_register_write): Likewise.
9374 (rl78_dwarf_reg_to_regnum): Return register numbers representing
9375 to the newly added pseudo registers.
9376
eddf0bae
DE
93772014-02-24 Doug Evans <dje@google.com>
9378
9379 * value.c (record_latest_value): Fix comment.
9380 * printcmd.c (print_command_1): Remove code to handle -1 return from
9381 record_latest_value.
9382
e96027e0
PA
93832014-02-24 Pedro Alves <palves@redhat.com>
9384
9385 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
9386 deprecated_xfer_memory hook.
9387 (procfs_xfer_partial): Call procfs_xfer_memory instead
9388 of the deprecated_xfer_memory target hook.
9389 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
9390 helper.
9391
0837c976
YZ
93922014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
9393
9394 * windows-nat.c (windows_xfer_shared_libraries): Return
9395 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
9396 requested object is TARGET_OBJECT_LIBRARIES.
9397
bc113b4e
YQ
93982014-02-24 Yao Qi <yao@codesourcery.com>
9399
9400 * target.h (enum target_xfer_status)
9401 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
9402 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
9403 explicitly. New.
9404 * corefile.c (memory_error_message): User updated.
9405 * exec.c (section_table_read_available_memory): Likewise.
9406 * record-btrace.c (record_btrace_xfer_partial): Likewise.
9407 * target.c (target_xfer_status_to_string): Likewise.
9408 (raw_memory_xfer_partial): Likewise.
9409 (memory_xfer_partial_1, target_xfer_partial): Likewise.
9410 * valops.c (read_value_memory): Likewise.
9411 * exec.h: Update comments.
9412
01cb8804
YQ
94132014-02-24 Yao Qi <yao@codesourcery.com>
9414
9415 * target.c (target_xfer_status_to_string): Rename argument err
9416 to status.
9417 * target.h (target_xfer_status_to_string): Update declaration.
9418 Replace target_xfer_error_to_string with
9419 target_xfer_status_to_string in comment.
9420
93063aa6
YQ
94212014-02-24 Yao Qi <yao@codesourcery.com>
9422
9423 * mips-linux-nat.c (super_close): Update its type.
9424 (mips_linux_close): Pass 'self' to super_close.
9425
5c328c05
YQ
94262014-02-24 Yao Qi <yao@codesourcery.com>
9427
9428 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
9429 * corefile.c (read_memory): Adjusted.
9430 * target.c (target_write_with_progress): Adjusted.
9431
f73023dd
YQ
94322014-02-23 Yao Qi <yao@codesourcery.com>
9433
9434 Revert two patches:
9435
9436 2013-10-25 Yao Qi <yao@codesourcery.com>
9437
9438 * remote.c (remote_traceframe_info): Return early if
9439 traceframe is not selected.
9440
9441 2013-07-19 Yao Qi <yao@codesourcery.com>
9442
9443 * target.c (update_current_target): Change the default action
9444 of 'to_traceframe_info' from tcomplain to return_zero.
9445 * target.h (struct target_ops) <to_traceframe_info>: Add more
9446 comments.
9447
5a2eb0ef
YQ
94482014-02-23 Yao Qi <yao@codesourcery.com>
9449
9450 * valops.c (read_value_memory): Rewrite it. Call
9451 target_xfer_partial in a loop.
9452 * exec.h (section_table_available_memory): Remove declaration.
9453 Move comments to ...
9454 * exec.c (section_table_available_memory): ... here. Make it
9455 static.
9456
1ee79381
YQ
94572014-02-23 Yao Qi <yao@codesourcery.com>
9458
9459 * exec.c (section_table_read_available_memory): New function.
9460 * exec.h (section_table_read_available_memory): Declare.
9461 * ctf.c (ctf_xfer_partial): Call
9462 section_table_read_available_memory.
9463 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9464
1ca49d37
YQ
94652014-02-23 Yao Qi <yao@codesourcery.com>
9466
9467 * ctf.c (ctf_xfer_partial): Move code to ...
9468 * exec.c (exec_read_partial_read_only): ... it. New function.
9469 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9470 * tracefile.c: Include "exec.h".
9471 * exec.h (exec_read_partial_read_only): Declare.
9472
a283690e
YQ
94732014-02-23 Yao Qi <yao@codesourcery.com>
9474
9475 * tracefile-tfile.c (tfile_has_all_memory): Remove.
9476 (tfile_has_memory): Remove.
9477 (init_tfile_ops): Don't set fields to_has_all_memory and
9478 to_has_memory of tfile_ops.
9479 * tracefile.c (tracefile_has_all_memory): New function.
9480 (tracefile_has_memory): New function.
9481 (init_tracefile_ops): Initialize fields to_has_all_memory and
9482 to_has_memory of 'ops'.
9483
12e03cd0
YQ
94842014-02-23 Yao Qi <yao@codesourcery.com>
9485
9486 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
9487 (ctf_thread_alive, ctf_get_trace_status): Remove.
9488 (init_ctf_ops): Don't set some fields of ctf_ops. Call
9489 init_tracefile_ops.
9490 * tracefile-tfile.c (tfile_get_trace_status): Remove.
9491 (tfile_has_stack, tfile_has_registers): Remove.
9492 (tfile_thread_alive): Remove.
9493 (init_tfile_ops): Don't set some fields of tfile_ops. Call
9494 init_tracefile_ops.
9495 * tracefile.c (tracefile_has_stack): New function.
9496 (tracefile_has_registers): New function.
9497 (tracefile_thread_alive): New function.
9498 (tracefile_get_trace_status): New function.
9499 (init_tracefile_ops): New function.
9500 * tracefile.h (init_tracefile_ops): Declare.
9501
11395323
YQ
95022014-02-23 Yao Qi <yao@codesourcery.com>
9503
9504 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
9505 (O_LARGEFILE): Likewise.
9506 (tfile_ops): Likewise.
9507 (TRACE_HEADER_SIZE): Likewise.
9508 (trace_fd, trace_frames_offset, cur_offset): Likewise.
9509 (cur_data_size): Likewise.
9510 (tfile_read, tfile_open, tfile_interp_line): Likewise.
9511 (tfile_close, tfile_files_info): Likewise.
9512 (tfile_get_trace_status): Likewise.
9513 (tfile_get_tracepoint_status): Likewise.
9514 (tfile_get_traceframe_address): Likewise.
9515 (tfile_trace_find, match_blocktype): Likewise.
9516 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
9517 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
9518 (tfile_get_trace_state_variable_value): Likewise.
9519 (tfile_has_all_memory, tfile_has_memory): Likewise.
9520 (tfile_has_stack, tfile_has_registers): Likewise.
9521 (tfile_thread_alive, build_traceframe_info): Likewise.
9522 (tfile_traceframe_info, init_tfile_ops): Likewise.
9523 (_initialize_tracepoint): Don't call init_tfile_ops
9524 and add_target_with_completer.
9525 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
9526 exec.h, completer.h and filenames.h.
9527 (_initialize_tracefile_tfile): New function.
9528
7951c4eb
YQ
95292014-02-23 Yao Qi <yao@codesourcery.com>
9530
9531 * Makefile.in (REMOTE_OBS): Append tracefile.o and
9532 tracefile-tfile.o.
9533 (HFILES_NO_SRCDIR): Add tracefile.h.
9534 * ctf.c: Include "tracefile.h".
9535 * tracefile.h: New file.
9536 * tracefile.c: New file
9537 * tracefile-tfile.c: New file.
9538 * tracepoint.c: Include "tracefile.h".
9539 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
9540 (stop_reason_names): Add const.
9541 (trace_file_writer_xfree): Move it to tracefile.c.
9542 (trace_save, trace_save_command, trace_save_tfile): Likewise.
9543 (trace_save_ctf): Likewise.
9544 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
9545 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
9546 (tfile_write_header, tfile_write_regblock_type): Likewise.
9547 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
9548 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
9549 (tfile_write_raw_data, tfile_end): Likewise.
9550 (tfile_trace_file_writer_new): Likewise.
9551 (free_uploaded_tp): Make it extern.
9552 (free_uploaded_tsv): Make it extern.
9553 (_initialize_tracepoint): Move code to register command 'tsave'
9554 to tracefile.c.
9555 * tracepoint.h (stop_reason_names): Declare.
9556 (struct trace_frame_write_ops): Move it to tracefile.h.
9557 (struct trace_file_write_ops): Likewise.
9558 (struct trace_file_writer): Likewise.
9559 (free_uploaded_tsvs, free_uploaded_tps): Declare.
9560
184cd072
JK
95612014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9562
9563 PR gdb/16594
9564 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
9565 process name.
9566 (get_cores_used_by_process): New parameter num_cores, use it.
9567 (linux_xfer_osdata_processes): Pass num_cores to it.
9568 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
9569 process name.
9570
c63528fc
AK
95712014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
9572
9573 * target.c (memory_xfer_partial): Fix length arg in call to
9574 breakpoint_xfer_memory.
9575
d7b30f67
SDJ
95762014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9577
9578 PR tdep/16397
9579 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
9580 number comes after the + or - signs. Adjust length of register
9581 name to be extracted.
9582
8838afaf
TT
95832014-02-20 Tom Tromey <tromey@redhat.com>
9584
9585 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
9586 (ada_varobj_ops): Mark "extern".
9587
05227d14
TT
95882014-02-20 Tom Tromey <tromey@redhat.com>
9589
9590 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
9591
1254eefc
DE
95922014-02-20 Doug Evans <xdje42@gmail.com>
9593
9594 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
9595 All callers updated.
9596 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
9597 All callers updated.
9598 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
9599 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
9600
adde2bff
DE
96012014-02-20 lin zuojian <manjian2006@gmail.com>
9602 Joel Brobecker <brobecker@adacore.com>
9603 Doug Evans <xdje42@gmail.com>
9604
9605 PR symtab/16581
9606 * dwarf2read.c (struct die_info): New member in_process.
9607 (reset_die_in_process): New function.
9608 (process_die): Set it at the start, reset when returning.
9609 (inherit_abstract_dies): Only call process_die if origin_child_die
9610 not already being processed.
9611
3be75f87
JB
96122014-02-20 Joel Brobecker <brobecker@adacore.com>
9613
9614 * windows-nat.c (handle_unload_dll): Add function documentation.
9615 (do_initial_windows_stuff): Add comment explaining why we wait
9616 until after inferior initialization has finished before
9617 processing all DLLs.
9618
47f7ffdb
JB
96192014-02-20 Joel Brobecker <brobecker@adacore.com>
9620
9621 * windows-nat.c (get_module_name): Delete.
9622 (windows_get_exec_module_filename): New function, mostly
9623 inspired from get_module_name.
9624 (windows_pid_to_exec_file): Replace call to get_module_name
9625 by call to windows_get_exec_module_filename.
9626
1cd9feab
JB
96272014-02-20 Joel Brobecker <brobecker@adacore.com>
9628
9629 * windows-nat.c (handle_load_dll): Rewrite this function's
9630 introductory comment. Remove code using get_module_name
9631 to get the DLL's name.
9632
ea39ad35
JB
96332014-02-20 Joel Brobecker <brobecker@adacore.com>
9634
9635 * windows-nat.c (get_windows_debug_event): Ignore
9636 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
9637 if windows_initialization_done == 0.
9638 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
9639 Adjust implementation to always load all DLLs.
9640 (do_initial_windows_stuff): Replace call to
9641 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
9642
95060284
JB
96432014-02-20 Joel Brobecker <brobecker@adacore.com>
9644
9645 * windows-nat.c (_initialize_windows_nat): Deprecate the
9646 "dll-symbols" command. Turn the "add-shared-symbol-files"
9647 and "assf" aliases into commands, and deprecate them as well.
9648 * NEWS: Add entry explaining that "dll-symbols" and its two
9649 aliases are now deprecated.
9650
8d4fdb12
JB
96512014-02-20 Joel Brobecker <brobecker@adacore.com>
9652
9653 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
9654 new-line in debug string. Remove trailing spaces.
9655
1b281443
SS
96562014-02-19 Stan Shebs <stan@codesourcery.com>
9657
9658 * darwin-nat.c (darwin_xfer_partial): Fix return type.
9659
f7bd0f78
SC
96602014-02-19 Siva Chandra Reddy <sivachandra@google.com>
9661
9662 * NEWS: Add entry for the new feature
9663 * python/py-value.c (valpy_binop): Call value_x_binop for struct
9664 and class values.
9665
399ebc3d
SS
96662014-02-19 Stan Shebs <stan@codesourcery.com>
9667
9668 * MAINTAINERS: List Yao Qi as nios2 maintainer.
9669
c658158d
PA
96702014-02-19 Pedro Alves <palves@redhat.com>
9671
9672 * common/ptid.h (struct ptid): Mention that process_stratum
9673 targets should prefer ptid.lwp.
9674
ba348170
PA
96752014-02-19 Pedro Alves <palves@redhat.com>
9676
9677 * remote.c (remote_thread_alive, write_ptid, read_ptid)
9678 (read_ptid, remote_newthread_step, remote_threads_extra_info)
9679 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
9680 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
9681 store remote thread ids rather than ptid.tid.
9682 (_initialize_remote): Adjust.
9683
ac01945b
TT
96842014-02-19 Tom Tromey <tromey@redhat.com>
9685
9686 * target.c (target_get_unwinder): Rewrite.
9687 (target_get_tailcall_unwinder): Rewrite.
9688 * record-btrace.c (record_btrace_to_get_unwinder): New function.
9689 (record_btrace_to_get_tailcall_unwinder): New function.
9690 (init_record_btrace_ops): Update.
9691 * target.h (struct target_ops) <to_get_unwinder,
9692 to_get_tailcall_unwinder>: Now function pointers. Use
9693 TARGET_DEFAULT_RETURN.
9694
8476dc92
TT
96952014-02-19 Tom Tromey <tromey@redhat.com>
9696
9697 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
9698 argument.
9699 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
9700
c0eca49f
TT
97012014-02-19 Tom Tromey <tromey@redhat.com>
9702
9703 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
9704 directly.
9705 * target-delegates.c: Rebuild.
9706 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
9707 TARGET_DEFAULT_FUNC.
9708 * target.c (default_target_decr_pc_after_break): Rename from
9709 forward_target_decr_pc_after_break. Simplify.
9710 (target_decr_pc_after_break): Rely on delegation.
9711
596b6b39
TT
97122014-02-19 Tom Tromey <tromey@redhat.com>
9713
9714 * target.c (update_current_target): Do not INHERIT to_doc or
9715 to_magic. Do not de_fault to_open or to_close.
9716
b427c1bc
TT
97172014-02-19 Tom Tromey <tromey@redhat.com>
9718
9719 * gcore.h (objfile_find_memory_regions): Declare.
9720 * gcore.c (objfile_find_memory_regions): No longer static. Add
9721 "self" argument.
9722 (_initialize_gcore): Don't call exec_set_find_memory_regions.
9723 * exec.c: Include gcore.h.
9724 (exec_set_find_memory_regions): Remove.
9725 (exec_find_memory_regions): Remove.
9726 (exec_do_find_memory_regions): Remove.
9727 (init_exec_ops): Update.
9728 * defs.h (exec_set_find_memory_regions): Remove.
9729
9b144037
TT
97302014-02-19 Tom Tromey <tromey@redhat.com>
9731
9732 * target-delegates.c: Rebuild.
9733 * target.h (struct target_ops) <to_extra_thread_info,
9734 to_thread_name, to_pid_to_exec_file, to_get_section_table,
9735 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
9736 not 0, in TARGET_DEFAULT_RETURN.
9737
555bbdeb
TT
97382014-02-19 Tom Tromey <tromey@redhat.com>
9739
9740 * target.c (complete_target_initialization): Remove casts. Use
9741 return_zero_has_execution.
9742 (return_zero): Add "ignore" argument.
9743 (return_zero_has_execution): New function.
9744 (init_dummy_target): Remove casts. Use
9745 return_zero_has_execution.
9746
be4ddd36
TT
97472014-02-19 Tom Tromey <tromey@redhat.com>
9748
9749 * target.c (update_current_target): Update comments. Do not
9750 INHERIT to_stratum.
9751
2117c711
TT
97522014-02-19 Tom Tromey <tromey@redhat.com>
9753
9754 * arm-linux-nat.c (arm_linux_read_description): Delegate when
9755 needed.
9756 * corelow.c (core_read_description): Delegate when needed.
9757 * remote.c (remote_read_description): Delegate when needed.
9758 * target-delegates.c: Rebuild.
9759 * target.c (target_read_description): Rewrite.
9760 * target.h (struct target_ops) <to_read_description>: Update
9761 comment. Use TARGET_DEFAULT_RETURN.
9762
e88ef65c
TT
97632014-02-19 Tom Tromey <tromey@redhat.com>
9764
9765 * target-delegates.c: Rebuild.
9766 * target.c (update_current_target): Don't inherit or default
9767 to_can_run.
9768 (find_default_run_target): Check against delegate_can_run.
9769 * target.h (struct target_ops) <to_can_run>: Use
9770 TARGET_DEFAULT_RETURN.
9771
86a0854a
TT
97722014-02-19 Tom Tromey <tromey@redhat.com>
9773
9774 * target-delegates.c: Rebuild.
9775 * target.c (target_disconnect): Unconditionally delegate.
9776 * target.h (struct target_ops) <to_disconnect>: Use
9777 TARGET_DEFAULT_NORETURN.
9778
ee97f592
TT
97792014-02-19 Tom Tromey <tromey@redhat.com>
9780
9781 * record.c (record_stop): Unconditionally delegate.
9782 * target-delegates.c: Rebuild.
9783 * target.c (target_stop_recording): Unconditionally delegate.
9784 * target.h (struct target_ops) <to_stop_recording>: Use
9785 TARGET_DEFAULT_IGNORE.
9786
6dc7fcf4
TT
97872014-02-19 Tom Tromey <tromey@redhat.com>
9788
9789 * target-delegates.c: Rebuild.
9790 * target.c (target_enable_btrace): Unconditionally delegate.
9791 * target.h (struct target_ops) <to_enable_btrace>: Use
9792 TARGET_DEFAULT_NORETURN.
9793
eb5b20d4
TT
97942014-02-19 Tom Tromey <tromey@redhat.com>
9795
9796 * target-delegates.c: Rebuild.
9797 * target.c (target_read_btrace): Unconditionally delegate.
9798 * target.h (struct target_ops) <to_read_btrace>: Use
9799 TARGET_DEFAULT_NORETURN.
9800
9ace480d
TT
98012014-02-19 Tom Tromey <tromey@redhat.com>
9802
9803 * target-delegates.c: Rebuild.
9804 * target.c (target_teardown_btrace): Unconditionally delegate.
9805 * target.h (struct target_ops) <to_teardown_btrace>: Use
9806 TARGET_DEFAULT_NORETURN.
9807
8dc292d3
TT
98082014-02-19 Tom Tromey <tromey@redhat.com>
9809
9810 * target-delegates.c: Rebuild.
9811 * target.c (target_disable_btrace): Unconditionally delegate.
9812 * target.h (struct target_ops) <to_disable_btrace>: Use
9813 TARGET_DEFAULT_NORETURN.
9814
58a5184e
TT
98152014-02-19 Tom Tromey <tromey@redhat.com>
9816
9817 * target-delegates.c: Rebuild.
9818 * target.c (default_search_memory): New function.
9819 (simple_search_memory): Update comment.
9820 (target_search_memory): Unconditionally delegate.
9821 * target.h (struct target_ops) <to_search_memory>: Use
9822 TARGET_DEFAULT_FUNC.
9823
8de71aab
TT
98242014-02-19 Tom Tromey <tromey@redhat.com>
9825
9826 * auxv.c (default_auxv_parse): No longer static.
9827 (target_auxv_parse): Unconditionally delegate.
9828 * auxv.h (default_auxv_parse): Declare.
9829 * target-delegates.c: Rebuild.
9830 * target.c: Include auxv.h.
9831 * target.h (struct target_ops) <to_auxv_parse>: Use
9832 TARGET_DEFAULT_FUNC.
9833
6b2c5a57
TT
98342014-02-19 Tom Tromey <tromey@redhat.com>
9835
9836 * target-delegates.c: Rebuild.
9837 * target.c (target_memory_map): Unconditionally delegate.
9838 * target.h (struct target_ops) <to_memory_map>: Use
9839 TARGET_DEFAULT_RETURN.
9840
cbffc065
TT
98412014-02-19 Tom Tromey <tromey@redhat.com>
9842
9843 * target-delegates.c: Rebuild.
9844 * target.c (target_thread_alive): Unconditionally delegate.
9845 * target.h (struct target_ops) <to_thread_alive>: Use
9846 TARGET_DEFAULT_RETURN.
9847
f09e2107
TT
98482014-02-19 Tom Tromey <tromey@redhat.com>
9849
9850 * target-delegates.c: Rebuild.
9851 * target.c (target_save_record): Unconditionally delegate.
9852 * target.h (struct target_ops) <to_save_record>: Use
9853 TARGET_DEFAULT_NORETURN.
9854
07366925
TT
98552014-02-19 Tom Tromey <tromey@redhat.com>
9856
9857 * target-delegates.c: Rebuild.
9858 * target.c (target_delete_record): Unconditionally delegate.
9859 * target.h (struct target_ops) <to_delete_record>: Use
9860 TARGET_DEFAULT_NORETURN.
9861
dd2e9d25
TT
98622014-02-19 Tom Tromey <tromey@redhat.com>
9863
9864 * target-delegates.c: Rebuild.
9865 * target.c (target_record_is_replaying): Unconditionally
9866 delegate.
9867 * target.h (struct target_ops) <to_record_is_replaying>: Use
9868 TARGET_DEFAULT_RETURN.
9869
671e76cc
TT
98702014-02-19 Tom Tromey <tromey@redhat.com>
9871
9872 * target-delegates.c: Rebuild.
9873 * target.c (target_goto_record_begin): Unconditionally delegate.
9874 * target.h (struct target_ops) <to_goto_record_begin>: Use
9875 TARGET_DEFAULT_NORETURN.
9876
e9179bb3
TT
98772014-02-19 Tom Tromey <tromey@redhat.com>
9878
9879 * target-delegates.c: Rebuild.
9880 * target.c (target_goto_record_end): Unconditionally delegate.
9881 * target.h (struct target_ops) <to_goto_record_end>: Use
9882 TARGET_DEFAULT_NORETURN.
9883
05969c84
TT
98842014-02-19 Tom Tromey <tromey@redhat.com>
9885
9886 * target-delegates.c: Rebuild.
9887 * target.c (target_goto_record): Unconditionally delegate.
9888 * target.h (struct target_ops) <to_goto_record>: Use
9889 TARGET_DEFAULT_NORETURN.
9890
3679abfa
TT
98912014-02-19 Tom Tromey <tromey@redhat.com>
9892
9893 * target-delegates.c: Rebuild.
9894 * target.c (target_insn_history): Unconditionally delegate.
9895 * target.h (struct target_ops) <to_insn_history>: Use
9896 TARGET_DEFAULT_NORETURN.
9897
8444ab58
TT
98982014-02-19 Tom Tromey <tromey@redhat.com>
9899
9900 * target-delegates.c: Rebuild.
9901 * target.c (target_insn_history_from): Unconditionally delegate.
9902 * target.h (struct target_ops) <to_insn_history_from>: Use
9903 TARGET_DEFAULT_NORETURN.
9904
c29302cc
TT
99052014-02-19 Tom Tromey <tromey@redhat.com>
9906
9907 * target-delegates.c: Rebuild.
9908 * target.c (target_insn_history_range): Unconditionally delegate.
9909 * target.h (struct target_ops) <to_insn_history_range>: Use
9910 TARGET_DEFAULT_NORETURN.
9911
170049d4
TT
99122014-02-19 Tom Tromey <tromey@redhat.com>
9913
9914 * target-delegates.c: Rebuild.
9915 * target.c (target_call_history): Unconditionally delegate.
9916 * target.h (struct target_ops) <to_call_history>: Use
9917 TARGET_DEFAULT_NORETURN.
9918
16fc27d6
TT
99192014-02-19 Tom Tromey <tromey@redhat.com>
9920
9921 * target-delegates.c: Rebuild.
9922 * target.c (target_call_history_from): Unconditionally delegate.
9923 * target.h (struct target_ops) <to_call_history_from>: Use
9924 TARGET_DEFAULT_NORETURN.
9925
115d9817
TT
99262014-02-19 Tom Tromey <tromey@redhat.com>
9927
9928 * target-delegates.c: Rebuild.
9929 * target.c (target_call_history_range): Unconditionally delegate.
9930 * target.h (struct target_ops) <to_call_history_range>: Use
9931 TARGET_DEFAULT_NORETURN.
9932
eb276a6b
TT
99332014-02-19 Tom Tromey <tromey@redhat.com>
9934
9935 * target-delegates.c: Rebuild.
9936 * target.c (target_verify_memory): Unconditionally delegate.
9937 * target.h (struct target_ops) <to_verify_memory>: Use
9938 TARGET_DEFAULT_NORETURN.
9939
9e538d0d
TT
99402014-02-19 Tom Tromey <tromey@redhat.com>
9941
9942 * target-delegates.c: Rebuild.
9943 * target.c (target_core_of_thread): Unconditionally delegate.
9944 * target.h (struct target_ops) <to_core_of_thread>: Use
9945 TARGET_DEFAULT_RETURN.
9946
f6fb2925
TT
99472014-02-19 Tom Tromey <tromey@redhat.com>
9948
9949 * target-delegates.c: Rebuild.
9950 * target.c (target_flash_done): Unconditionally delegate.
9951 * target.h (struct target_ops) <to_flash_done>: Use
9952 TARGET_DEFAULT_NORETURN.
9953
e8a6c6ac
TT
99542014-02-19 Tom Tromey <tromey@redhat.com>
9955
9956 * target-delegates.c: Rebuild.
9957 * target.c (target_flash_erase): Unconditionally delegate.
9958 * target.h (struct target_ops) <to_flash_erase>: Use
9959 TARGET_DEFAULT_NORETURN.
9960
7e35c012
TT
99612014-02-19 Tom Tromey <tromey@redhat.com>
9962
9963 * target-delegates.c: Rebuild.
9964 * target.c (target_get_section_table): Unconditionally delegate.
9965 * target.h (struct target_ops) <to_get_section_table>: Use
9966 TARGET_DEFAULT_RETURN.
9967
770234d3
TT
99682014-02-19 Tom Tromey <tromey@redhat.com>
9969
9970 * target-delegates.c: Rebuild.
9971 * target.c (target_pid_to_str): Unconditionally delegate.
9972 (init_dummy_target): Don't initialize to_pid_to_str.
9973 (default_pid_to_str): Rename from dummy_pid_to_str.
9974 * target.h (struct target_ops) <to_pid_to_str>: Use
9975 TARGET_DEFAULT_FUNC.
9976
09b0dc2b
TT
99772014-02-19 Tom Tromey <tromey@redhat.com>
9978
9979 * target-delegates.c: Rebuild.
9980 * target.c (target_find_new_threads): Unconditionally delegate.
9981 * target.h (struct target_ops) <to_find_new_threads>: Use
9982 TARGET_DEFAULT_RETURN.
9983
7d4f8efa
TT
99842014-02-19 Tom Tromey <tromey@redhat.com>
9985
9986 * target-delegates.c: Rebuild.
9987 * target.c (target_program_signals): Unconditionally delegate.
9988 * target.h (struct target_ops) <to_program_signals>: Use
9989 TARGET_DEFAULT_IGNORE.
9990
035cad7f
TT
99912014-02-19 Tom Tromey <tromey@redhat.com>
9992
9993 * target-delegates.c: Rebuild.
9994 * target.c (target_pass_signals): Unconditionally delegate.
9995 * target.h (struct target_ops) <to_pass_signals>: Use
9996 TARGET_DEFAULT_IGNORE.
9997
8d657035
TT
99982014-02-19 Tom Tromey <tromey@redhat.com>
9999
10000 * target-delegates.c: Rebuild.
10001 * target.c (default_mourn_inferior): New function.
10002 (target_mourn_inferior): Unconditionally delegate.
10003 * target.h (struct target_ops) <to_mourn_inferior>: Use
10004 TARGET_DEFAULT_FUNC.
10005
098dba18
TT
100062014-02-19 Tom Tromey <tromey@redhat.com>
10007
10008 * target-delegates.c: Rebuild.
10009 * target.c (default_follow_fork): New function.
10010 (target_follow_fork): Unconditionally delegate.
10011 * target.h (struct target_ops) <to_follow_fork>: Use
10012 TARGET_DEFAULT_FUNC.
10013
423a4807
TT
100142014-02-19 Tom Tromey <tromey@redhat.com>
10015
10016 * target-delegates.c: Rebuild.
10017 * target.c (target_kill): Unconditionally delegate.
10018 * target.h (struct target_ops) <to_kill>: Use
10019 TARGET_DEFAULT_NORETURN.
10020
6c7e5e5c
TT
100212014-02-19 Tom Tromey <tromey@redhat.com>
10022
10023 * target-delegates.c: Rebuild.
10024 * target.c (target_masked_watch_num_registers): Unconditionally
10025 delegate.
10026 * target.h (struct target_ops) <to_masked_watch_num_registers>:
10027 Use TARGET_DEFAULT_RETURN.
10028
8b1c364c
TT
100292014-02-19 Tom Tromey <tromey@redhat.com>
10030
10031 * target-delegates.c: Rebuild.
10032 * target.c (target_remove_mask_watchpoint): Unconditionally
10033 delegate.
10034 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
10035 TARGET_DEFAULT_RETURN.
10036
cd4ae029
TT
100372014-02-19 Tom Tromey <tromey@redhat.com>
10038
10039 * target-delegates.c: Rebuild.
10040 * target.c (target_insert_mask_watchpoint): Unconditionally
10041 delegate.
10042 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
10043 TARGET_DEFAULT_RETURN.
10044
a134316b
TT
100452014-02-19 Tom Tromey <tromey@redhat.com>
10046
10047 * target-delegates.c: Rebuild.
10048 * target.c (target_ranged_break_num_registers): Unconditionally
10049 delegate.
10050 * target.h (struct target_ops) <to_ranged_break_num_registers>:
10051 Use TARGET_DEFAULT_RETURN.
10052
ad5989bd
TT
100532014-02-19 Tom Tromey <tromey@redhat.com>
10054
10055 * target-delegates.c: Rebuild.
10056 * target.c (target_fetch_registers): Unconditionally delegate.
10057 * target.h (struct target_ops) <to_fetch_registers>: Use
10058 TARGET_DEFAULT_NORETURN.
10059
46ee7e8d
TT
100602014-02-19 Tom Tromey <tromey@redhat.com>
10061
10062 * target-delegates.c: Rebuild.
10063 * target.c (update_current_target): Don't inherit or default
10064 to_stop.
10065 * target.h (struct target_ops) <to_stop>: Use
10066 TARGET_DEFAULT_IGNORE.
10067
843f59ed
TT
100682014-02-19 Tom Tromey <tromey@redhat.com>
10069
10070 * target-delegates.c: Rebuild.
10071 * target.c (update_current_target): Don't inherit or default
10072 to_can_run_breakpoint_commands.
10073 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
10074 Use TARGET_DEFAULT_RETURN.
10075
ccfde2a0
TT
100762014-02-19 Tom Tromey <tromey@redhat.com>
10077
10078 * target-delegates.c: Rebuild.
10079 * target.c (update_current_target): Don't inherit or default
10080 to_supports_evaluation_of_breakpoint_conditions.
10081 * target.h (struct target_ops)
10082 <to_supports_evaluation_of_breakpoint_conditions>: Use
10083 TARGET_DEFAULT_RETURN.
10084
0de91722
TT
100852014-02-19 Tom Tromey <tromey@redhat.com>
10086
10087 * target-delegates.c: Rebuild.
10088 * target.c (update_current_target): Don't inherit or default
10089 to_augmented_libraries_svr4_read.
10090 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
10091 Use TARGET_DEFAULT_RETURN.
10092
9a7d8b48
TT
100932014-02-19 Tom Tromey <tromey@redhat.com>
10094
10095 * target-delegates.c: Rebuild.
10096 * target.c (update_current_target): Don't inherit or default
10097 to_can_use_agent.
10098 * target.h (struct target_ops) <to_can_use_agent>: Use
10099 TARGET_DEFAULT_RETURN.
10100
d9db5b21
TT
101012014-02-19 Tom Tromey <tromey@redhat.com>
10102
10103 * target-delegates.c: Rebuild.
10104 * target.c (update_current_target): Don't inherit or default
10105 to_use_agent.
10106 * target.h (struct target_ops) <to_use_agent>: Use
10107 TARGET_DEFAULT_NORETURN.
10108
92155eeb
TT
101092014-02-19 Tom Tromey <tromey@redhat.com>
10110
10111 * target-delegates.c: Rebuild.
10112 * target.c (update_current_target): Don't inherit or default
10113 to_traceframe_info.
10114 (return_null): Remove.
10115 * target.h (struct target_ops) <to_traceframe_info>: Use
10116 TARGET_DEFAULT_RETURN.
10117
d6522a22
TT
101182014-02-19 Tom Tromey <tromey@redhat.com>
10119
10120 * target-delegates.c: Rebuild.
10121 * target.c (update_current_target): Don't inherit or default
10122 to_static_tracepoint_markers_by_strid.
10123 * target.h (struct target_ops)
10124 <to_static_tracepoint_markers_by_strid>: Use
10125 TARGET_DEFAULT_NORETURN.
10126
4c3e4425
TT
101272014-02-19 Tom Tromey <tromey@redhat.com>
10128
10129 * target-delegates.c: Rebuild.
10130 * target.c (update_current_target): Don't inherit or default
10131 to_static_tracepoint_marker_at.
10132 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
10133 Use TARGET_DEFAULT_RETURN.
10134
dcd6917f
TT
101352014-02-19 Tom Tromey <tromey@redhat.com>
10136
10137 * target-delegates.c: Rebuild.
10138 * target.c (update_current_target): Don't inherit or default
10139 to_set_permissions.
10140 * target.h (struct target_ops) <to_set_permissions>: Use
10141 TARGET_DEFAULT_IGNORE.
10142
22bcceee
TT
101432014-02-19 Tom Tromey <tromey@redhat.com>
10144
10145 * target-delegates.c: Rebuild.
10146 * target.c (update_current_target): Don't inherit or default
10147 to_get_tib_address.
10148 * target.h (struct target_ops) <to_get_tib_address>: Use
10149 TARGET_DEFAULT_NORETURN.
10150
8586ccaa
TT
101512014-02-19 Tom Tromey <tromey@redhat.com>
10152
10153 * target-delegates.c: Rebuild.
10154 * target.c (update_current_target): Don't inherit or default
10155 to_set_trace_notes.
10156 * target.h (struct target_ops) <to_set_trace_notes>: Use
10157 TARGET_DEFAULT_RETURN.
10158
91df8d1d
TT
101592014-02-19 Tom Tromey <tromey@redhat.com>
10160
10161 * target-delegates.c: Rebuild.
10162 * target.c (update_current_target): Don't initialize
10163 to_set_trace_buffer_size.
10164 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
10165 TARGET_DEFAULT_IGNORE.
10166
8d526939
TT
101672014-02-19 Tom Tromey <tromey@redhat.com>
10168
10169 * target-delegates.c: Rebuild.
10170 * target.c (update_current_target): Don't inherit or default
10171 to_set_circular_trace_buffer.
10172 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
10173 TARGET_DEFAULT_IGNORE.
10174
0bcfeddf
TT
101752014-02-19 Tom Tromey <tromey@redhat.com>
10176
10177 * target-delegates.c: Rebuild.
10178 * target.c (update_current_target): Don't inherit or default
10179 to_set_disconnected_tracing.
10180 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
10181 TARGET_DEFAULT_IGNORE.
10182
9249843f
TT
101832014-02-19 Tom Tromey <tromey@redhat.com>
10184
10185 * target-delegates.c: Rebuild.
10186 * target.c (update_current_target): Don't inherit or default
10187 to_get_min_fast_tracepoint_insn_len.
10188 (return_minus_one): Remove.
10189 * target.h (struct target_ops)
10190 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
10191
ace92e7d
TT
101922014-02-19 Tom Tromey <tromey@redhat.com>
10193
10194 * target-delegates.c: Rebuild.
10195 * target.c (update_current_target): Don't inherit or default
10196 to_get_raw_trace_data.
10197 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
10198 TARGET_DEFAULT_NORETURN.
10199
08120467
TT
102002014-02-19 Tom Tromey <tromey@redhat.com>
10201
10202 * target-delegates.c: Rebuild.
10203 * target.c (update_current_target): Don't inherit or default
10204 to_upload_trace_state_variables.
10205 * target.h (struct target_ops) <to_upload_trace_state_variables>:
10206 Use TARGET_DEFAULT_RETURN.
10207
1e949b00
TT
102082014-02-19 Tom Tromey <tromey@redhat.com>
10209
10210 * target-delegates.c: Rebuild.
10211 * target.c (update_current_target): Don't inherit or default
10212 to_upload_tracepoints.
10213 * target.h (struct target_ops) <to_upload_tracepoints>: Use
10214 TARGET_DEFAULT_RETURN.
10215
a2e6c147
TT
102162014-02-19 Tom Tromey <tromey@redhat.com>
10217
10218 * target-delegates.c: Rebuild.
10219 * target.c (update_current_target): Don't inherit or default
10220 to_save_trace_data.
10221 * target.h (struct target_ops) <to_save_trace_data>: Use
10222 TARGET_DEFAULT_NORETURN.
10223
959bcd0b
TT
102242014-02-19 Tom Tromey <tromey@redhat.com>
10225
10226 * target-delegates.c: Rebuild.
10227 * target.c (update_current_target): Don't inherit or default
10228 to_get_trace_state_variable_value.
10229 * target.h (struct target_ops)
10230 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
10231
afc94e66
TT
102322014-02-19 Tom Tromey <tromey@redhat.com>
10233
10234 * target-delegates.c: Rebuild.
10235 * target.c (update_current_target): Don't inherit or default
10236 to_trace_find.
10237 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
10238
e51c07ea
TT
102392014-02-19 Tom Tromey <tromey@redhat.com>
10240
10241 * target-delegates.c: Rebuild.
10242 * target.c (update_current_target): Don't inherit or default
10243 to_trace_stop.
10244 * target.h (struct target_ops) <to_trace_stop>: Use
10245 TARGET_DEFAULT_NORETURN.
10246
6fea14cd
TT
102472014-02-19 Tom Tromey <tromey@redhat.com>
10248
10249 * target-delegates.c: Rebuild.
10250 * target.c (update_current_target): Don't inherit or default
10251 to_get_tracepoint_status.
10252 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
10253 TARGET_DEFAULT_NORETURN.
10254
4072d4ff
TT
102552014-02-19 Tom Tromey <tromey@redhat.com>
10256
10257 * target-delegates.c: Rebuild.
10258 * target.c (update_current_target): Don't inherit or default
10259 to_get_trace_status.
10260 * target.h (struct target_ops) <to_get_trace_status>: Use
10261 TARGET_DEFAULT_RETURN.
10262
25da2e80
TT
102632014-02-19 Tom Tromey <tromey@redhat.com>
10264
10265 * target-delegates.c: Rebuild.
10266 * target.c (update_current_target): Don't inherit or default
10267 to_trace_start.
10268 * target.h (struct target_ops) <to_trace_start>: Use
10269 TARGET_DEFAULT_NORETURN.
10270
86dd181d
TT
102712014-02-19 Tom Tromey <tromey@redhat.com>
10272
10273 * target-delegates.c: Rebuild.
10274 * target.c (update_current_target): Don't inherit or default
10275 to_trace_set_readonly_regions.
10276 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
10277 Use TARGET_DEFAULT_NORETURN.
10278
05c41993
TT
102792014-02-19 Tom Tromey <tromey@redhat.com>
10280
10281 * target-delegates.c: Rebuild.
10282 * target.c (update_current_target): Don't inherit or default
10283 to_disable_tracepoint.
10284 * target.h (struct target_ops) <to_disable_tracepoint>: Use
10285 TARGET_DEFAULT_NORETURN.
10286
151f70f1
TT
102872014-02-19 Tom Tromey <tromey@redhat.com>
10288
10289 * target-delegates.c: Rebuild.
10290 * target.c (update_current_target): Don't inherit or default
10291 to_enable_tracepoint.
10292 * target.h (struct target_ops) <to_enable_tracepoint>: Use
10293 TARGET_DEFAULT_NORETURN.
10294
94eb98b9
TT
102952014-02-19 Tom Tromey <tromey@redhat.com>
10296
10297 * target-delegates.c: Rebuild.
10298 * target.c (update_current_target): Don't inherit or default
10299 to_download_trace_state_variable.
10300 * target.h (struct target_ops) <to_download_trace_state_variable>:
10301 Use TARGET_DEFAULT_NORETURN.
10302
719acc4a
TT
103032014-02-19 Tom Tromey <tromey@redhat.com>
10304
10305 * target-delegates.c: Rebuild.
10306 * target.c (update_current_target): Don't inherit or default
10307 to_can_download_tracepoint.
10308 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
10309 TARGET_DEFAULT_RETURN.
10310
9a980a22
TT
103112014-02-19 Tom Tromey <tromey@redhat.com>
10312
10313 * target-delegates.c: Rebuild.
10314 * target.c (update_current_target): Don't inherit or default
10315 to_download_tracepoint.
10316 * target.h (struct target_ops) <to_download_tracepoint>: Use
10317 TARGET_DEFAULT_NORETURN.
10318
5536135b
TT
103192014-02-19 Tom Tromey <tromey@redhat.com>
10320
10321 * target-delegates.c: Rebuild.
10322 * target.c (update_current_target): Don't inherit or default
10323 to_trace_init.
10324 * target.h (struct target_ops) <to_trace_init>: Use
10325 TARGET_DEFAULT_RETURN.
10326
9409d39e
TT
103272014-02-19 Tom Tromey <tromey@redhat.com>
10328
10329 * target-delegates.c: Rebuild.
10330 * target.c (update_current_target): Don't inherit or default
10331 to_supports_string_tracing.
10332 * target.h (struct target_ops) <to_supports_string_tracing>: Use
10333 TARGET_DEFAULT_RETURN.
10334
aab1b22d
TT
103352014-02-19 Tom Tromey <tromey@redhat.com>
10336
10337 * target-delegates.c: Rebuild.
10338 * target.c (update_current_target): Don't inherit or default
10339 to_supports_enable_disable_tracepoint.
10340 * target.h (struct target_ops)
10341 <to_supports_enable_disable_tracepoint>: Use
10342 TARGET_DEFAULT_RETURN.
10343
a7304748
TT
103442014-02-19 Tom Tromey <tromey@redhat.com>
10345
10346 * target-delegates.c: Rebuild.
10347 * target.c (update_current_target): Don't inherit or default
10348 to_supports_multi_process.
10349 * target.h (struct target_ops) <to_supports_multi_process>: Use
10350 TARGET_DEFAULT_RETURN.
10351
4229b31d
TT
103522014-02-19 Tom Tromey <tromey@redhat.com>
10353
10354 * target-delegates.c: Rebuild.
10355 * target.c (update_current_target): Don't inherit or default
10356 to_get_ada_task_ptid.
10357 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
10358 TARGET_DEFAULT_FUNC.
10359
43eba180
TT
103602014-02-19 Tom Tromey <tromey@redhat.com>
10361
10362 * target-delegates.c: Rebuild.
10363 * target.c (update_current_target): Don't inherit or default
10364 to_thread_architecture.
10365 * target.h (struct target_ops) <to_thread_architecture>: Use
10366 TARGET_DEFAULT_FUNC.
10367
fe31bf5b
TT
103682014-02-19 Tom Tromey <tromey@redhat.com>
10369
10370 * target-delegates.c: Rebuild.
10371 * target.c (update_current_target): Don't inherit or default
10372 to_execution_direction.
10373 * target.h (struct target_ops) <to_execution_direction>: Use
10374 TARGET_DEFAULT_FUNC.
10375
53e1cfc7
TT
103762014-02-19 Tom Tromey <tromey@redhat.com>
10377
10378 * target-delegates.c: Rebuild.
10379 * target.c (update_current_target): Don't inherit or default
10380 to_can_execute_reverse.
10381 * target.h (struct target_ops) <to_can_execute_reverse>: Use
10382 TARGET_DEFAULT_RETURN.
10383 (target_can_execute_reverse): Unconditionally delegate.
10384
9bb9d61d
TT
103852014-02-19 Tom Tromey <tromey@redhat.com>
10386
10387 * target-delegates.c: Rebuild.
10388 * target.c (update_current_target): Don't inherit or default
10389 to_goto_bookmark.
10390 (dummy_goto_bookmark): Remove.
10391 (init_dummy_target): Don't inherit or default to_goto_bookmark.
10392 * target.h (struct target_ops) <to_goto_bookmark>: Use
10393 TARGET_DEFAULT_NORETURN.
10394
3dbafbbb
TT
103952014-02-19 Tom Tromey <tromey@redhat.com>
10396
10397 * target-delegates.c: Rebuild.
10398 * target.c (update_current_target): Don't inherit or default
10399 to_get_bookmark.
10400 (dummy_get_bookmark): Remove.
10401 (init_dummy_target): Don't inherit or default to_get_bookmark.
10402 * target.h (struct target_ops) <to_get_bookmark>: Use
10403 TARGET_DEFAULT_NORETURN
10404
16f796b1
TT
104052014-02-19 Tom Tromey <tromey@redhat.com>
10406
10407 * target-delegates.c: Rebuild.
10408 * target.c (update_current_target): Don't inherit or default
10409 to_make_corefile_notes.
10410 (init_dummy_target): Don't initialize to_make_corefile_notes.
10411 * target.h (struct target_ops) <to_make_corefile_notes>: Use
10412 TARGET_DEFAULT_FUNC.
10413
0b5a2719
TT
104142014-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_find_memory_regions.
10419 (init_dummy_target): Don't initialize to_find_memory_regions.
10420 * target.h (struct target_ops) <to_find_memory_regions>: Use
10421 TARGET_DEFAULT_FUNC.
10422
d9cb0195
TT
104232014-02-19 Tom Tromey <tromey@redhat.com>
10424
10425 * target-delegates.c: Rebuild.
10426 * target.c (update_current_target): Don't inherit or default
10427 to_log_command.
10428 * target.h (struct target_ops) <to_log_command>: Use
10429 TARGET_DEFAULT_IGNORE.
10430 (target_log_command): Unconditionally delegate.
10431
830ca330
TT
104322014-02-19 Tom Tromey <tromey@redhat.com>
10433
10434 * target-delegates.c: Rebuild.
10435 * target.c (update_current_target): Don't inherit or default
10436 to_pid_to_exec_file.
10437 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
10438 TARGET_DEFAULT_RETURN.
10439
825828fc
TT
104402014-02-19 Tom Tromey <tromey@redhat.com>
10441
10442 * target-delegates.c: Rebuild.
10443 * target.c (update_current_target): Don't inherit or default
10444 to_thread_name.
10445 (target_thread_name): Unconditionally delegate.
10446 * target.h (struct target_ops) <to_thread_name>: Use
10447 TARGET_DEFAULT_RETURN.
10448
4a7e6dda
TT
104492014-02-19 Tom Tromey <tromey@redhat.com>
10450
10451 * target-delegates.c: Rebuild.
10452 * target.c (update_current_target): Don't inherit or default
10453 to_extra_thread_info.
10454 * target.h (struct target_ops) <to_extra_thread_info>: Use
10455 TARGET_DEFAULT_RETURN.
10456
0db88c1d
TT
104572014-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_has_exited.
10462 * target.h (struct target_ops) <to_has_exited>: Use
10463 TARGET_DEFAULT_RETURN..
10464
6a9fa051
TT
104652014-02-19 Tom Tromey <tromey@redhat.com>
10466
10467 * target-delegates.c: Rebuild.
10468 * target.c (update_current_target): Don't inherit or default
10469 to_set_syscall_catchpoint.
10470 (return_one): Remove.
10471 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
10472 TARGET_DEFAULT_RETURN.
10473
62f64d7a
TT
104742014-02-19 Tom Tromey <tromey@redhat.com>
10475
10476 * target-delegates.c: Rebuild.
10477 * target.c (update_current_target): Don't inherit or default
10478 to_insert_exec_catchpoint.
10479 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
10480 TARGET_DEFAULT_RETURN.
10481
cda0f38c
TT
104822014-01-08 Tom Tromey <tromey@redhat.com>
10483
10484 * target-delegates.c: Rebuild.
10485 * target.c (update_current_target): Don't inherit or default
10486 to_insert_exec_catchpoint.
10487 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
10488 TARGET_DEFAULT_RETURN.
10489
95c3375e
TT
104902014-02-19 Tom Tromey <tromey@redhat.com>
10491
10492 * target-delegates.c: Rebuild.
10493 * target.c (update_current_target): Don't inherit or default
10494 to_remove_vfork_catchpoint.
10495 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
10496 TARGET_DEFAULT_RETURN.
10497
7e18a8dc
TT
104982014-02-19 Tom Tromey <tromey@redhat.com>
10499
10500 * target-delegates.c: Rebuild.
10501 * target.c (update_current_target): Don't inherit or default
10502 to_insert_vfork_catchpoint.
10503 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
10504 TARGET_DEFAULT_RETURN.
10505
e1a21fb7
TT
105062014-02-19 Tom Tromey <tromey@redhat.com>
10507
10508 * target-delegates.c: Rebuild.
10509 * target.c (update_current_target): Don't inherit or default
10510 to_remove_fork_catchpoint.
10511 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
10512 TARGET_DEFAULT_RETURN.
10513
5958ebeb
TT
105142014-02-19 Tom Tromey <tromey@redhat.com>
10515
10516 * target-delegates.c: Rebuild.
10517 * target.c (update_current_target): Don't inherit or default
10518 to_insert_fork_catchpoint.
10519 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
10520 TARGET_DEFAULT_RETURN.
10521
340ba4bf
TT
105222014-02-19 Tom Tromey <tromey@redhat.com>
10523
10524 * target-delegates.c: Rebuild.
10525 * target.c (update_current_target): Don't inherit or default
10526 to_post_startup_inferior.
10527 * target.h (struct target_ops) <to_post_startup_inferior>: Use
10528 TARGET_DEFAULT_IGNORE.
10529
7634da87
TT
105302014-02-19 Tom Tromey <tromey@redhat.com>
10531
10532 * target-delegates.c: Rebuild.
10533 * target.c (update_current_target): Don't inherit or default
10534 to_load.
10535 * target.h (struct target_ops) <to_load>: Use
10536 TARGET_DEFAULT_NORETURN.
10537
e19e919f
TT
105382014-02-19 Tom Tromey <tromey@redhat.com>
10539
10540 * target-delegates.c: Rebuild.
10541 * target.c (update_current_target): Don't inherit or default
10542 to_terminal_info.
10543 * target.h (struct target_ops) <to_terminal_info>: Use
10544 TARGET_DEFAULT_FUNC.
10545
c6ea8f79
TT
105462014-02-19 Tom Tromey <tromey@redhat.com>
10547
10548 * target-delegates.c: Rebuild.
10549 * target.c (update_current_target): Don't inherit or default
10550 to_terminal_save_ours.
10551 * target.h (struct target_ops) <to_terminal_save_ours>: Use
10552 TARGET_DEFAULT_IGNORE.
10553
e4a733f1
TT
105542014-02-19 Tom Tromey <tromey@redhat.com>
10555
10556 * target-delegates.c: Rebuild.
10557 * target.c (update_current_target): Don't inherit or default
10558 to_terminal_ours.
10559 * target.h (struct target_ops) <to_terminal_ours>: Use
10560 TARGET_DEFAULT_IGNORE.
10561
74fcbef9
TT
105622014-02-19 Tom Tromey <tromey@redhat.com>
10563
10564 * target-delegates.c: Rebuild.
10565 * target.c (update_current_target): Don't inherit or default
10566 to_terminal_ours_for_output.
10567 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
10568 TARGET_DEFAULT_IGNORE.
10569
ddeaacc9
TT
105702014-02-19 Tom Tromey <tromey@redhat.com>
10571
10572 * target-delegates.c: Rebuild.
10573 * target.c (update_current_target): Don't inherit or default
10574 to_terminal_inferior.
10575 * target.h (struct target_ops) <to_terminal_inferior>: Use
10576 TARGET_DEFAULT_IGNORE.
10577
0343661d
TT
105782014-02-19 Tom Tromey <tromey@redhat.com>
10579
10580 * target-delegates.c: Rebuild.
10581 * target.c (update_current_target): Don't inherit or default
10582 to_terminal_init.
10583 * target.h (struct target_ops) <to_terminal_init>: Use
10584 TARGET_DEFAULT_IGNORE.
10585
77cdffe9
TT
105862014-02-19 Tom Tromey <tromey@redhat.com>
10587
10588 * target-delegates.c: Rebuild.
10589 * target.c (update_current_target): Don't inherit or default
10590 to_can_accel_watchpoint_condition.
10591 * target.h (struct target_ops)
10592 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
10593
d03655e4
TT
105942014-02-19 Tom Tromey <tromey@redhat.com>
10595
10596 * target-delegates.c: Rebuild.
10597 * target.c (update_current_target): Don't inherit or default
10598 to_region_ok_for_hw_watchpoint.
10599 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10600 Use TARGET_DEFAULT_FUNC.
10601
65f160a9
TT
106022014-02-19 Tom Tromey <tromey@redhat.com>
10603
10604 * target-delegates.c: Rebuild.
10605 * target.c (update_current_target): Don't inherit or default
10606 to_watchpoint_addr_within_range.
10607 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
10608 Use TARGET_DEFAULT_FUNC.
10609
61dd109f
TT
106102014-02-19 Tom Tromey <tromey@redhat.com>
10611
10612 * target-delegates.c: Rebuild.
10613 * target.c (update_current_target): Don't inherit or default
10614 to_remove_watchpoint.
10615 * target.h (struct target_ops) <to_remove_watchpoint>: Use
10616 TARGET_DEFAULT_NORETURN.
10617
016facd4
TT
106182014-02-19 Tom Tromey <tromey@redhat.com>
10619
10620 * target-delegates.c: Rebuild.
10621 * target.c (update_current_target): Don't inherit or default
10622 to_insert_watchpoint.
10623 * target.h (struct target_ops) <to_insert_watchpoint>: Use
10624 TARGET_DEFAULT_RETURN.
10625
418dabac
TT
106262014-02-19 Tom Tromey <tromey@redhat.com>
10627
10628 * target-delegates.c: Rebuild.
10629 * target.c (update_current_target): Don't inherit or default
10630 to_remove_hw_breakpoint.
10631 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
10632 TARGET_DEFAULT_RETURN.
10633
61b371f9
TT
106342014-02-19 Tom Tromey <tromey@redhat.com>
10635
10636 * target-delegates.c: Rebuild.
10637 * target.c (update_current_target): Don't inherit or default
10638 to_insert_hw_breakpoint.
10639 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
10640 TARGET_DEFAULT_RETURN.
10641
52b51d06
TT
106422014-02-19 Tom Tromey <tromey@redhat.com>
10643
10644 * target-delegates.c: Rebuild.
10645 * target.c (update_current_target): Don't inherit or default
10646 to_can_use_hw_breakpoint.
10647 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
10648 TARGET_DEFAULT_RETURN.
10649
f86e59b2
TT
106502014-02-19 Tom Tromey <tromey@redhat.com>
10651
10652 * target-delegates.c: Rebuild.
10653 * target.c (update_current_target): Don't inherit or default
10654 to_files_info.
10655 * target.h (struct target_ops) <to_files_info>: Use
10656 TARGET_DEFAULT_IGNORE.
10657
6c628163
TT
106582014-02-19 Tom Tromey <tromey@redhat.com>
10659
10660 * target-delegates.c: Rebuild.
10661 * target.c (update_current_target): Don't inherit or default
10662 to_store.
10663 * target.h (struct target_ops) <to_store>: Use
10664 TARGET_DEFAULT_NORETURN.
10665
bebd3233
TT
106662014-02-19 Tom Tromey <tromey@redhat.com>
10667
10668 * target-delegates.c: Rebuild.
10669 * target.c (update_current_target): Don't inherit or default
10670 to_post_attach.
10671 * target.h (struct target_ops) <to_post_attach>: Use
10672 TARGET_DEFAULT_IGNORE.
10673
a53f3625
TT
106742014-02-19 Tom Tromey <tromey@redhat.com>
10675
10676 * target-delegates.c: Rebuild.
10677 * target.c (update_current_target): Don't inherit or default
10678 to_rcmd.
10679 (default_rcmd): New function.
10680 (do_monitor_command): Unconditionally delegate.
10681 * target.h (struct target_ops) <to_rmcd>: Use
10682 TARGET_DEFAULT_FUNC.
10683
e9a29200
TT
106842014-02-19 Tom Tromey <tromey@redhat.com>
10685
10686 * target-delegates.c: Rebuild.
10687 * target.c (init_dummy_target): Don't initialize to_attach.
10688 (target_attach): Unconditionally delegate.
10689 * target.h (struct target_ops) <to_attach>: Use
10690 TARGET_DEFAULT_FUNC.
10691
09da0d0a
TT
106922014-02-19 Tom Tromey <tromey@redhat.com>
10693
10694 * target-delegates.c: Rebuild.
10695 * target.c (target_detach): Unconditionally delegate.
10696 (init_dummy_target): Don't initialize to_detach.
10697 * target.h (struct target_ops) <to_detach>: Use
10698 TARGET_DEFAULT_IGNORE.
10699
5436ff03
TT
107002014-02-19 Tom Tromey <tromey@redhat.com>
10701
10702 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
10703 Add argument.
10704 (target_augmented_libraries_svr4_read): Add argument.
10705 * target.c (update_current_target): Update.
10706 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
10707 argument.
10708
f0d960ea
TT
107092014-02-19 Tom Tromey <tromey@redhat.com>
10710
10711 * target.h (struct target_ops) <to_call_history_range>: Add
10712 argument.
10713 * target.c (target_call_history_range): Add argument.
10714 * record-btrace.c (record_btrace_call_history_range): Add 'self'
10715 argument.
10716 (record_btrace_call_history_from): Update.
10717
ec0aea04
TT
107182014-02-19 Tom Tromey <tromey@redhat.com>
10719
10720 * target.h (struct target_ops) <to_call_history_from>: Add
10721 argument.
10722 * target.c (target_call_history_from): Add argument.
10723 * record-btrace.c (record_btrace_call_history_from): Add 'self'
10724 argument.
10725
5df2fcba
TT
107262014-02-19 Tom Tromey <tromey@redhat.com>
10727
10728 * target.h (struct target_ops) <to_call_history>: Add argument.
10729 * target.c (target_call_history): Add argument.
10730 * record-btrace.c (record_btrace_call_history): Add 'self'
10731 argument.
10732
4e99c6b7
TT
107332014-02-19 Tom Tromey <tromey@redhat.com>
10734
10735 * target.h (struct target_ops) <to_insn_history_range>: Add
10736 argument.
10737 * target.c (target_insn_history_range): Add argument.
10738 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
10739 argument.
10740 (record_btrace_insn_history_from): Update.
10741
9abc3ff3
TT
107422014-02-19 Tom Tromey <tromey@redhat.com>
10743
10744 * target.h (struct target_ops) <to_insn_history_from>: Add
10745 argument.
10746 * target.c (target_insn_history_from): Add argument.
10747 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
10748 argument.
10749
7a6c5609
TT
107502014-02-19 Tom Tromey <tromey@redhat.com>
10751
10752 * target.h (struct target_ops) <to_insn_history>: Add argument.
10753 * target.c (target_insn_history): Add argument.
10754 * record-btrace.c (record_btrace_insn_history): Add 'self'
10755 argument.
10756
606183ac
TT
107572014-02-19 Tom Tromey <tromey@redhat.com>
10758
10759 * target.h (struct target_ops) <to_goto_record>: Add argument.
10760 * target.c (target_goto_record): Add argument.
10761 * record-full.c (record_full_goto): Add 'self' argument.
10762 * record-btrace.c (record_btrace_goto): Add 'self' argument.
10763
307a1b91
TT
107642014-02-19 Tom Tromey <tromey@redhat.com>
10765
10766 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
10767 * target.c (target_goto_record_end): Add argument.
10768 * record-full.c (record_full_goto_end): Add 'self' argument.
10769 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
10770
08475817
TT
107712014-02-19 Tom Tromey <tromey@redhat.com>
10772
10773 * target.h (struct target_ops) <to_goto_record_begin>: Add
10774 argument.
10775 * target.c (target_goto_record_begin): Add argument.
10776 * record-full.c (record_full_goto_begin): Add 'self' argument.
10777 * record-btrace.c (record_btrace_goto_begin): Add 'self'
10778 argument.
10779
1c63c994
TT
107802014-02-19 Tom Tromey <tromey@redhat.com>
10781
10782 * target.h (struct target_ops) <to_record_is_replaying>: Add
10783 argument.
10784 * target.c (target_record_is_replaying): Add argument.
10785 * record-full.c (record_full_is_replaying): Add 'self' argument.
10786 * record-btrace.c (record_btrace_is_replaying): Add 'self'
10787 argument.
10788 (record_btrace_xfer_partial, record_btrace_store_registers)
10789 (record_btrace_prepare_to_store, record_btrace_resume)
10790 (record_btrace_wait, record_btrace_decr_pc_after_break)
10791 (record_btrace_find_new_threads, record_btrace_thread_alive):
10792 Update.
10793
d1b55219
TT
107942014-02-19 Tom Tromey <tromey@redhat.com>
10795
10796 * target.h (struct target_ops) <to_delete_record>: Add argument.
10797 * target.c (target_delete_record): Add argument.
10798 * record-full.c (record_full_delete): Add 'self' argument.
10799
1390f529
TT
108002014-02-19 Tom Tromey <tromey@redhat.com>
10801
10802 * target.h (struct target_ops) <to_save_record>: Add argument.
10803 * target.c (target_save_record): Add argument.
10804 * record-full.c (record_full_save): Add 'self' argument.
10805 (record_full_save): Add 'self' argument.
10806
630d6a4a
TT
108072014-02-19 Tom Tromey <tromey@redhat.com>
10808
10809 * target.h (struct target_ops) <to_info_record>: Add argument.
10810 * target.c (target_info_record): Add argument.
10811 * record.c (info_record_command): Add argument.
10812 * record-full.c (record_full_info): Add 'self' argument.
10813 * record-btrace.c (record_btrace_info): Add 'self' argument.
10814
c6cd7c02
TT
108152014-02-19 Tom Tromey <tromey@redhat.com>
10816
10817 * target.h (struct target_ops) <to_stop_recording>: Add argument.
10818 * target.c (target_stop_recording): Add argument.
10819 * record.c (record_stop): Add argument.
10820 * record-btrace.c (record_btrace_stop_recording): Add 'self'
10821 argument.
10822
39c49f83
TT
108232014-02-19 Tom Tromey <tromey@redhat.com>
10824
10825 * target.h (struct target_ops) <to_read_btrace>: Add argument.
10826 * target.c (struct target_ops) <to_read_btrace>: Add argument.
10827 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
10828 argument.
10829 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
10830 (_initialize_amd64_linux_nat): Use it.
10831 * i386-linux-nat.c (i386_linux_read_btrace): New function.
10832 (_initialize_i386_linux_nat): Use it.
10833
1777056d
TT
108342014-02-19 Tom Tromey <tromey@redhat.com>
10835
10836 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
10837 * target.c (target_teardown_btrace): Add argument.
10838 * remote.c (remote_teardown_btrace): Add 'self' argument.
10839 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
10840 argument.
10841 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
10842 argument.
10843
25e95349
TT
108442014-02-19 Tom Tromey <tromey@redhat.com>
10845
10846 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
10847 * target.c (target_disable_btrace): Add argument.
10848 * remote.c (remote_disable_btrace): Add 'self' argument.
10849 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
10850 argument.
10851 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
10852 argument.
10853
e3c49f88
TT
108542014-02-19 Tom Tromey <tromey@redhat.com>
10855
10856 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
10857 * target.c (target_enable_btrace): Add argument.
10858 * remote.c (remote_enable_btrace): Add 'self' argument.
10859 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
10860 argument.
10861 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
10862 argument.
10863
fe38f897
TT
108642014-02-19 Tom Tromey <tromey@redhat.com>
10865
10866 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
10867 (target_can_use_agent): Add argument.
10868 * target.c (update_current_target): Update.
10869 * remote.c (remote_can_use_agent): Add 'self' argument.
10870 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
10871
2c152180
TT
108722014-02-19 Tom Tromey <tromey@redhat.com>
10873
10874 * target.h (struct target_ops) <to_use_agent>: Add argument.
10875 (target_use_agent): Add argument.
10876 * target.c (update_current_target): Update.
10877 * remote.c (remote_use_agent): Add 'self' argument.
10878 * inf-child.c (inf_child_use_agent): Add 'self' argument.
10879
a893e81f
TT
108802014-02-19 Tom Tromey <tromey@redhat.com>
10881
10882 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
10883 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
10884 (target_traceframe_info): Add argument.
10885 * target.c (update_current_target): Update.
10886 * remote.c (remote_traceframe_info): Add 'self' argument.
10887 * ctf.c (ctf_traceframe_info): Add 'self' argument.
10888
c686c57f
TT
108892014-02-19 Tom Tromey <tromey@redhat.com>
10890
10891 * target.h (target_static_tracepoint_markers_by_strid): Add
10892 argument.
10893 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
10894 'self' argument.
10895 * target.c (update_current_target): Update.
10896 * remote.c (struct target_ops)
10897 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
10898 * linux-nat.c (struct target_ops)
10899 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
10900
61fc905d
TT
109012014-02-19 Tom Tromey <tromey@redhat.com>
10902
10903 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
10904 Add argument.
10905 (target_static_tracepoint_marker_at): Add argument.
10906 * target.c (update_current_target): Update.
10907 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
10908 argument.
10909
c378d69d
TT
109102014-02-19 Tom Tromey <tromey@redhat.com>
10911
10912 * target.h (struct target_ops) <to_set_permissions>: Add argument.
10913 (target_set_permissions): Add argument.
10914 * target.c (update_current_target): Update.
10915 * remote.c (remote_set_permissions): Add 'self' argument.
10916 (remote_start_remote): Update.
10917
bd7ae0f5
TT
109182014-02-19 Tom Tromey <tromey@redhat.com>
10919
10920 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
10921 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
10922 (target_get_tib_address): Add argument.
10923 * target.c (update_current_target): Update.
10924 * remote.c (remote_get_tib_address): Add 'self' argument.
10925
d9e68a2c
TT
109262014-02-19 Tom Tromey <tromey@redhat.com>
10927
10928 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
10929 (target_set_trace_notes): Add argument.
10930 * target.c (update_current_target): Update.
10931 * remote.c (remote_set_trace_notes): Add 'self' argument.
10932
4da384be
TT
109332014-02-19 Tom Tromey <tromey@redhat.com>
10934
10935 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
10936 argument.
10937 (target_set_trace_buffer_size): Add argument.
10938 * target.c (update_current_target): Update.
10939 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
10940
736d5b1f
TT
109412014-02-19 Tom Tromey <tromey@redhat.com>
10942
10943 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
10944 argument.
10945 (target_set_circular_trace_buffer): Add argument.
10946 * target.c (update_current_target): Update.
10947 * remote.c (remote_set_circular_trace_buffer): Add 'self'
10948 argument.
10949
37b25738
TT
109502014-02-19 Tom Tromey <tromey@redhat.com>
10951
10952 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
10953 argument.
10954 (target_set_disconnected_tracing): Add argument.
10955 * target.c (update_current_target): Update.
10956 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
10957
0e67620a
TT
109582014-02-19 Tom Tromey <tromey@redhat.com>
10959
10960 * target.h (struct target_ops)
10961 <to_get_min_fast_tracepoint_insn_len>: Add argument.
10962 (target_get_min_fast_tracepoint_insn_len): Add argument.
10963 * target.c (update_current_target): Update.
10964 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
10965 argument.
10966
88ee6f45
TT
109672014-02-19 Tom Tromey <tromey@redhat.com>
10968
10969 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
10970 argument.
10971 (target_get_raw_trace_data): Add argument.
10972 * target.c (update_current_target): Update.
10973 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
10974
181e3713
TT
109752014-02-19 Tom Tromey <tromey@redhat.com>
10976
10977 * target.h (struct target_ops) <to_upload_trace_state_variables>:
10978 Add argument.
10979 (target_upload_trace_state_variables): Add argument.
10980 * target.c (update_current_target): Update.
10981 * remote.c (remote_upload_trace_state_variables): Add 'self'
10982 argument.
10983 (remote_start_remote): Update.
10984
ab6617cc
TT
109852014-02-19 Tom Tromey <tromey@redhat.com>
10986
10987 * target.h (struct target_ops) <to_upload_tracepoints>: Add
10988 argument.
10989 (target_upload_tracepoints): Add argument.
10990 * target.c (update_current_target): Update.
10991 * remote.c (remote_upload_tracepoints): Add 'self' argument.
10992 (remote_start_remote): Update.
10993
dc3decaf
TT
109942014-02-19 Tom Tromey <tromey@redhat.com>
10995
10996 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
10997 (target_save_trace_data): Add argument.
10998 * target.c (update_current_target): Update.
10999 * remote.c (remote_save_trace_data): Add 'self' argument.
11000
4011015b
TT
110012014-02-19 Tom Tromey <tromey@redhat.com>
11002
11003 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
11004 argument.
11005 * target.h (struct target_ops)
11006 <to_get_trace_state_variable_value>: Add argument.
11007 (target_get_trace_state_variable_value): Add argument.
11008 * target.c (update_current_target): Update.
11009 * remote.c (remote_get_trace_state_variable_value): Add 'self'
11010 argument.
11011 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
11012
bd4c6793
TT
110132014-02-19 Tom Tromey <tromey@redhat.com>
11014
11015 * tracepoint.c (tfile_trace_find): Add 'self' argument.
11016 * target.h (struct target_ops) <to_trace_find>: Add argument.
11017 (target_trace_find): Add argument.
11018 * target.c (update_current_target): Update.
11019 * remote.c (remote_trace_find): Add 'self' argument.
11020 * ctf.c (ctf_trace_find): Add 'self' argument.
11021
74499f1b
TT
110222014-02-19 Tom Tromey <tromey@redhat.com>
11023
11024 * target.h (struct target_ops) <to_trace_stop>: Add argument.
11025 (target_trace_stop): Add argument.
11026 * target.c (update_current_target): Update.
11027 * remote.c (remote_trace_stop): Add 'self' argument.
11028
db90e85c
TT
110292014-02-19 Tom Tromey <tromey@redhat.com>
11030
11031 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
11032 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
11033 argument.
11034 (target_get_tracepoint_status): Add argument.
11035 * target.c (update_current_target): Update.
11036 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
11037
8bd200f1
TT
110382014-02-19 Tom Tromey <tromey@redhat.com>
11039
11040 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
11041 * target.h (struct target_ops) <to_get_trace_status>: Add
11042 argument.
11043 (target_get_trace_status): Add argument.
11044 * target.c (update_current_target): Update.
11045 * remote.c (remote_get_trace_status): Add 'self' argument.
11046 (remote_start_remote, remote_can_download_tracepoint): Update.
11047 * ctf.c (ctf_get_trace_status): Add 'self' argument.
11048
e2d1aae3
TT
110492014-02-19 Tom Tromey <tromey@redhat.com>
11050
11051 * target.h (struct target_ops) <to_trace_start>: Add argument.
11052 (target_trace_start): Add argument.
11053 * target.c (update_current_target): Update.
11054 * remote.c (remote_trace_start): Add 'self' argument.
11055
583f9a86
TT
110562014-02-19 Tom Tromey <tromey@redhat.com>
11057
11058 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
11059 Add argument.
11060 (target_trace_set_readonly_regions): Add argument.
11061 * target.c (update_current_target): Update.
11062 * remote.c (remote_trace_set_readonly_regions): Add 'self'
11063 argument.
11064
780b049c
TT
110652014-02-19 Tom Tromey <tromey@redhat.com>
11066
11067 * target.h (struct target_ops) <to_disable_tracepoint>: Add
11068 argument.
11069 (target_disable_tracepoint): Add argument.
11070 * target.c (update_current_target): Update.
11071 * remote.c (remote_disable_tracepoint): Add 'self' argument.
11072
46670d57
TT
110732014-02-19 Tom Tromey <tromey@redhat.com>
11074
11075 * target.h (struct target_ops) <to_enable_tracepoint>: Add
11076 argument.
11077 (target_enable_tracepoint): Add argument.
11078 * target.c (update_current_target): Update.
11079 * remote.c (remote_enable_tracepoint): Add 'self' argument.
11080
559d2b81
TT
110812014-02-19 Tom Tromey <tromey@redhat.com>
11082
11083 * target.h (struct target_ops) <to_download_trace_state_variable>:
11084 Add argument.
11085 (target_download_trace_state_variable): Add argument.
11086 * target.c (update_current_target): Update.
11087 * remote.c (remote_download_trace_state_variable): Add 'self'
11088 argument.
11089
a52a8357
TT
110902014-02-19 Tom Tromey <tromey@redhat.com>
11091
11092 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
11093 argument.
11094 (target_can_download_tracepoint): Add argument.
11095 * target.c (update_current_target): Update.
11096 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
11097
548f7808
TT
110982014-02-19 Tom Tromey <tromey@redhat.com>
11099
11100 * target.h (struct target_ops) <to_download_tracepoint>: Add
11101 argument.
11102 (target_download_tracepoint): Add argument.
11103 * target.c (update_current_target): Update.
11104 * remote.c (remote_download_tracepoint): Add 'self' argument.
11105
ecae04e1
TT
111062014-02-19 Tom Tromey <tromey@redhat.com>
11107
11108 * target.h (struct target_ops) <to_trace_init>: Add argument.
11109 (target_trace_init): Add argument.
11110 * target.c (update_current_target): Update.
11111 * remote.c (remote_trace_init): Add 'self' argument.
11112
fab5aa7c
TT
111132014-02-19 Tom Tromey <tromey@redhat.com>
11114
11115 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
11116 * target.c (target_fileio_readlink): Add argument.
11117 * remote.c (remote_hostio_readlink): Add 'self' argument.
11118 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
11119
dbbca37d
TT
111202014-02-19 Tom Tromey <tromey@redhat.com>
11121
11122 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
11123 * target.c (target_fileio_unlink): Add argument.
11124 * remote.c (remote_hostio_unlink): Add 'self' argument.
11125 (remote_file_delete): Update.
11126 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
11127
df39ea25
TT
111282014-02-19 Tom Tromey <tromey@redhat.com>
11129
11130 * target.h (struct target_ops) <to_fileio_close>: Add argument.
11131 * target.c (target_fileio_close): Add argument.
11132 * remote.c (remote_hostio_close): Add 'self' argument.
11133 (remote_hostio_close_cleanup): Update.
11134 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
11135 Update.
11136 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
11137
a3be983c
TT
111382014-02-19 Tom Tromey <tromey@redhat.com>
11139
11140 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
11141 * target.c (target_fileio_pread): Add argument.
11142 * remote.c (remote_hostio_pread): Add 'self' argument.
11143 (remote_bfd_iovec_pread, remote_file_get): Update.
11144 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
11145
0d866f62
TT
111462014-02-19 Tom Tromey <tromey@redhat.com>
11147
11148 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
11149 * target.c (target_fileio_pwrite): Add argument.
11150 * remote.c (remote_hostio_pwrite): Add 'self' argument.
11151 (remote_file_put): Update.
11152 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
11153
cd897586
TT
111542014-02-19 Tom Tromey <tromey@redhat.com>
11155
11156 * target.h (struct target_ops) <to_fileio_open>: Add argument.
11157 * target.c (target_fileio_open): Add argument.
11158 * remote.c (remote_hostio_open): Add 'self' argument.
11159 (remote_bfd_iovec_open): Add 'self' argument.
11160 (remote_file_put): Add 'self' argument.
11161 (remote_file_get): Add 'self' argument.
11162 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
11163
78eff0ec
TT
111642014-02-19 Tom Tromey <tromey@redhat.com>
11165
11166 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
11167 Add argument.
11168 (target_can_run_breakpoint_commands): Add argument.
11169 * target.c (update_current_target): Update.
11170 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
11171 argument.
11172 (remote_insert_breakpoint): Add 'self' argument.
11173 (remote_insert_hw_breakpoint): Add 'self' argument.
11174 (remote_can_run_breakpoint_commands): Add 'self' argument.
11175
efcc2da7
TT
111762014-02-19 Tom Tromey <tromey@redhat.com>
11177
11178 * target.h (struct target_ops)
11179 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
11180 (target_supports_evaluation_of_breakpoint_conditions): Add
11181 argument.
11182 * target.c (update_current_target): Update.
11183 * remote.c (remote_supports_cond_breakpoints): Add 'self'
11184 argument.
11185 (remote_insert_breakpoint): Add 'self' argument.
11186 (remote_insert_hw_breakpoint): Add 'self' argument.
11187 (remote_supports_cond_breakpoints): Add 'self' argument.
11188
6de37a3a
TT
111892014-02-19 Tom Tromey <tromey@redhat.com>
11190
11191 * target.h (struct target_ops) <to_supports_string_tracing>: Add
11192 argument.
11193 (target_supports_string_tracing): Add argument.
11194 * target.c (update_current_target): Update.
11195 * remote.c (remote_supports_string_tracing): Add 'self' argument.
11196
2bfc0540
TT
111972014-02-19 Tom Tromey <tromey@redhat.com>
11198
11199 * target.h (struct target_ops)
11200 <to_supports_disable_randomization>: Add argument.
11201 * target.c (find_default_supports_disable_randomization): Add
11202 argument.
11203 (target_supports_disable_randomization): Add argument.
11204 (find_default_supports_disable_randomization): Add 'self'
11205 argument.
11206 * remote.c (extended_remote_supports_disable_randomization): Add
11207 'self' argument.
11208 (remote_supports_disable_randomization): Add 'self' argument.
11209 (extended_remote_create_inferior): Update.
11210 * linux-nat.c (linux_nat_supports_disable_randomization): Add
11211 'self' argument.
11212
7d178d6a
TT
112132014-02-19 Tom Tromey <tromey@redhat.com>
11214
11215 * target.h (struct target_ops)
11216 <to_supports_enable_disable_tracepoint>: Add argument.
11217 (target_supports_enable_disable_tracepoint): Add argument.
11218 * target.c (update_current_target): Update.
11219 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
11220 argument.
11221
86ce2668
TT
112222014-02-19 Tom Tromey <tromey@redhat.com>
11223
11224 * target.h (struct target_ops) <to_supports_multi_process>: Add
11225 argument.
11226 (target_supports_multi_process): Add argument.
11227 * target.c (update_current_target): Update.
11228 * remote.c (remote_supports_multi_process): Add 'self' argument.
11229 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
11230 argument.
11231 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
11232 argument.
11233
4c612759
TT
112342014-02-19 Tom Tromey <tromey@redhat.com>
11235
11236 * target.h (struct target_ops) <to_execution_direction>: Add
11237 argument.
11238 (target_execution_direction): Add argument.
11239 * target.c (default_execution_direction): Add 'self' argument.
11240 * record-full.c (record_full_execution_direction): Add 'self'
11241 argument.
11242
19db3e69
TT
112432014-02-19 Tom Tromey <tromey@redhat.com>
11244
11245 * target.h (struct target_ops) <to_can_execute_reverse>: Add
11246 argument.
11247 (target_can_execute_reverse): Add argument.
11248 * remote.c (remote_can_execute_reverse): Add 'self' argument.
11249 * record-full.c (record_full_can_execute_reverse): Add 'self'
11250 argument.
11251 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
11252 argument.
11253
1e6b91a4
TT
112542014-02-19 Tom Tromey <tromey@redhat.com>
11255
11256 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
11257 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
11258 argument.
11259 (target_get_ada_task_ptid): Add argument.
11260 * target.c (update_current_target): Update.
11261 (default_get_ada_task_ptid): Add 'self' argument.
11262 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
11263 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
11264 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
11265 argument.
11266 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
11267 argument.
11268 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
11269 argument.
11270 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
11271 argument.
11272 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
11273 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
11274 argument.
11275
3c80fb48
TT
112762014-02-19 Tom Tromey <tromey@redhat.com>
11277
11278 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
11279 (target_goto_bookmark): Add argument.
11280 * target.c (dummy_goto_bookmark): Add 'self' argument.
11281 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
11282
dd0e2830
TT
112832014-02-19 Tom Tromey <tromey@redhat.com>
11284
11285 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
11286 (target_get_bookmark): Add argument.
11287 * target.c (dummy_get_bookmark): Add 'self' argument.
11288 * record-full.c (record_full_get_bookmark): Add 'self' argument.
11289
fc6691b2
TT
112902014-02-19 Tom Tromey <tromey@redhat.com>
11291
11292 * target.h (struct target_ops) <to_make_corefile_notes>: Add
11293 argument.
11294 (target_make_corefile_notes): Add argument.
11295 * target.c (dummy_make_corefile_notes): Add 'self' argument.
11296 * procfs.c (procfs_make_note_section): Add 'self' argument.
11297 (procfs_make_note_section): Add 'self' argument.
11298 (procfs_make_note_section): Add 'self' argument.
11299 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
11300 argument.
11301 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
11302 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
11303 * exec.c (exec_make_note_section): Add 'self' argument.
11304 (exec_make_note_section): Add 'self' argument.
11305
2e73927c
TT
113062014-02-19 Tom Tromey <tromey@redhat.com>
11307
11308 * target.h (struct target_ops) <to_find_memory_regions>: Add
11309 argument.
11310 (target_find_memory_regions): Add argument.
11311 * target.c (dummy_find_memory_regions): Add 'self' argument.
11312 * procfs.c (proc_find_memory_regions): Add 'self' argument.
11313 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
11314 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
11315 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
11316 * exec. (exec_do_find_memory_regions): New global.
11317 (exec_set_find_memory_regions): Rewrite.
11318 (exec_find_memory_regions): New function.
11319 (init_exec_ops): Use exec_find_memory_regions.
11320
2a9a2795
TT
113212014-02-19 Tom Tromey <tromey@redhat.com>
11322
11323 * target.h (struct target_ops) <to_supports_non_stop>: Add
11324 argument.
11325 * target.c (find_default_supports_non_stop): Add argument.
11326 (target_supports_non_stop): Add argument.
11327 (find_default_supports_non_stop): Add 'self' argument.
11328 * remote.c (remote_supports_non_stop): Add 'self' argument.
11329 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
11330
4ab76ea3
TT
113312014-02-19 Tom Tromey <tromey@redhat.com>
11332
11333 * target.h (struct target_ops) <to_log_command>: Add argument.
11334 (target_log_command): Add argument.
11335 * serial.h (serial_log_command): Add 'self' argument.
11336 * serial.c (serial_log_command): Add 'self' argument.
11337
8dd27370
TT
113382014-02-19 Tom Tromey <tromey@redhat.com>
11339
11340 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
11341 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
11342 argument.
11343 (target_pid_to_exec_file): Add argument.
11344 * target.c (debug_to_pid_to_exec_file): Add argument.
11345 (update_current_target): Update.
11346 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
11347 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
11348 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
11349 (linux_handle_extended_wait): Update.
11350 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
11351 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
11352 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
11353 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
11354
1aac633b
TT
113552014-02-19 Tom Tromey <tromey@redhat.com>
11356
11357 * target.h (struct target_ops) <to_rcmd>: Add argument.
11358 (target_rcmd): Add argument.
11359 * target.c (debug_to_rcmd): Add argument.
11360 (update_current_target, do_monitor_command): Update.
11361 * remote.c (remote_rcmd): Add 'self' argument.
11362 * monitor.c (monitor_rcmd): Add 'self' argument.
11363
1eab8a48
TT
113642014-02-19 Tom Tromey <tromey@redhat.com>
11365
11366 * windows-nat.c (windows_stop): Add 'self' argument.
11367 * target.h (struct target_ops) <to_stop>: Add argument.
11368 * target.c (target_stop): Add argument.
11369 (debug_to_stop): Add argument.
11370 (update_current_target): Update.
11371 * remote.c (remote_stop): Add 'self' argument.
11372 * remote-sim.c (gdbsim_stop): Add 'self' argument.
11373 (gdbsim_cntrl_c): Update.
11374 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
11375 * procfs.c (procfs_stop): Add 'self' argument.
11376 * nto-procfs.c (procfs_stop): Add 'self' argument.
11377 * monitor.c (monitor_stop): Add 'self' argument.
11378 (monitor_open): Update.
11379 * linux-nat.c (linux_nat_stop): Add argument.
11380 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
11381 * gnu-nat.c (gnu_stop): Add 'self' argument.
11382 * darwin-nat.c (darwin_stop): Add 'self' argument.
11383
503a628d
TT
113842014-02-19 Tom Tromey <tromey@redhat.com>
11385
11386 * target.h (struct target_ops) <to_thread_name>: Add argument.
11387 * target.c (target_thread_name): Add argument.
11388 (update_current_target): Update.
11389 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
11390
c15906d8
TT
113912014-02-19 Tom Tromey <tromey@redhat.com>
11392
11393 * target.h (struct target_ops) <to_extra_thread_info>: Add
11394 argument.
11395 (target_extra_thread_info): Add argument.
11396 * target.c (update_current_target): Update.
11397 * remote.c (remote_threads_extra_info): Add 'self' argument.
11398 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
11399 argument.
11400 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
11401 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
11402 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
11403 argument.
11404 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
11405 argument.
11406 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
11407 argument.
11408 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
11409 argument.
11410
daf5e9b6
TT
114112014-02-19 Tom Tromey <tromey@redhat.com>
11412
11413 * target.h (struct target_ops) <to_program_signals>: Add argument.
11414 * target.c (target_program_signals): Add argument.
11415 * remote.c (remote_program_signals): Add 'self' argument.
11416
94bedb42
TT
114172014-02-19 Tom Tromey <tromey@redhat.com>
11418
11419 * target.h (struct target_ops) <to_pass_signals>: Add argument.
11420 * target.c (target_pass_signals): Add argument.
11421 * remote.c (remote_pass_signals): Add 'self' argument.
11422 (remote_start_remote): Update.
11423 * procfs.c (procfs_pass_signals): Add 'self' argument.
11424 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
11425 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
11426 (linux_nat_create_inferior, linux_nat_attach): Update.
11427
da82bd6b
TT
114282014-02-19 Tom Tromey <tromey@redhat.com>
11429
11430 * windows-nat.c (windows_can_run): Add 'self' argument.
11431 * target.h (struct target_ops) <to_can_run>: Add argument.
11432 (target_can_run): Add argument.
11433 * target.c (debug_to_can_run): Add argument.
11434 (update_current_target): Update.
11435 * nto-procfs.c (procfs_can_run): Add 'self' argument.
11436 * inf-child.c (inf_child_can_run): Add 'self' argument.
11437 * go32-nat.c (go32_can_run): Add 'self' argument.
11438
d796e1d6
TT
114392014-02-19 Tom Tromey <tromey@redhat.com>
11440
11441 * target.h (struct target_ops) <to_has_exited>: Add argument.
11442 (target_has_exited): Add argument.
11443 * target.c (debug_to_has_exited): Add argument.
11444 (update_current_target): Update.
11445
ff214e67
TT
114462014-02-19 Tom Tromey <tromey@redhat.com>
11447
11448 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
11449 argument.
11450 (target_set_syscall_catchpoint): Add argument.
11451 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
11452 argument.
11453 * target.c (update_current_target): Update.
11454
758e29d2
TT
114552014-02-19 Tom Tromey <tromey@redhat.com>
11456
11457 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
11458 argument.
11459 (target_remove_exec_catchpoint): Add argument.
11460 * target.c (debug_to_remove_exec_catchpoint): Add argument.
11461 (update_current_target): Update.
11462 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
11463 argument.
11464
ba025e51
TT
114652014-02-19 Tom Tromey <tromey@redhat.com>
11466
11467 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
11468 argument.
11469 (target_insert_exec_catchpoint): Add argument.
11470 * target.c (debug_to_insert_exec_catchpoint): Add argument.
11471 (update_current_target): Update.
11472 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
11473 argument.
11474
e98cf0cd
TT
114752014-02-19 Tom Tromey <tromey@redhat.com>
11476
11477 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
11478 argument.
11479 (target_remove_vfork_catchpoint): Add argument.
11480 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
11481 (update_current_target): Update.
11482 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
11483 argument.
11484
3ecc7da0
TT
114852014-02-19 Tom Tromey <tromey@redhat.com>
11486
11487 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
11488 argument.
11489 (target_insert_vfork_catchpoint): Add argument.
11490 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
11491 (update_current_target): Update.
11492 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
11493 argument.
11494
973fc227
TT
114952014-02-19 Tom Tromey <tromey@redhat.com>
11496
11497 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
11498 argument.
11499 (target_remove_fork_catchpoint): Add argument.
11500 * target.c (debug_to_remove_fork_catchpoint): Add argument.
11501 (update_current_target): Update.
11502 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
11503 argument.
11504
a863b201
TT
115052014-02-19 Tom Tromey <tromey@redhat.com>
11506
11507 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
11508 argument.
11509 (target_insert_fork_catchpoint): Add argument.
11510 * target.c (debug_to_insert_fork_catchpoint): Add argument.
11511 (update_current_target): Update.
11512 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
11513 argument.
11514
2e97a79e
TT
115152014-02-19 Tom Tromey <tromey@redhat.com>
11516
11517 * target.h (struct target_ops) <to_post_startup_inferior>: Add
11518 argument.
11519 (target_post_startup_inferior): Add argument.
11520 * target.c (debug_to_post_startup_inferior): Add argument.
11521 (update_current_target): Update.
11522 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
11523 argument.
11524 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
11525 argument.
11526 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
11527 argument.
11528 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
11529 argument.
11530 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
11531 'self' argument.
11532 (super_post_startup_inferior): Likewise.
11533 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
11534 'self' argument.
11535 (super_post_startup_inferior): Likewise.
11536 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
11537 Add 'self' argument.
11538 (super_post_startup_inferior): Likewise.
11539
71a9f134
TT
115402014-02-19 Tom Tromey <tromey@redhat.com>
11541
11542 * target.h (struct target_ops) <to_load>: Add argument.
11543 * target.c (target_load): Add argument.
11544 (debug_to_load): Add argument.
11545 (update_current_target): Update.
11546 * remote.c (remote_load): Add 'self' argument.
11547 * remote-sim.c (gdbsim_load): Add 'self' argument.
11548 * remote-mips.c (mips_load): Add 'self' argument.
11549 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
11550 * monitor.c (monitor_load): Add 'self' argument.
11551 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
11552
0a4f40a2
TT
115532014-02-19 Tom Tromey <tromey@redhat.com>
11554
11555 * target.h (struct target_ops) <to_terminal_info>: Add argument.
11556 (target_terminal_info): Add argument.
11557 * target.c (debug_to_terminal_info): Add argument.
11558 (default_terminal_info): Likewise.
11559 * inflow.c (child_terminal_info): Add 'self' argument.
11560 * inferior.h (child_terminal_info): Add 'self' argument.
11561 * go32-nat.c (go32_terminal_info): Add 'self' argument.
11562
ae3bd431
TT
115632014-02-19 Tom Tromey <tromey@redhat.com>
11564
11565 * target.h (struct target_ops) <to_terminal_save_ours>: Add
11566 argument.
11567 (target_terminal_save_ours): Add argument.
11568 * target.c (debug_to_terminal_save_ours): Add argument.
11569 (update_current_target): Update.
11570 * inflow.c (terminal_save_ours): Add 'self' argument.
11571 * inferior.h (terminal_save_ours): Add 'self' argument.
11572
e3594fd1
TT
115732014-02-19 Tom Tromey <tromey@redhat.com>
11574
11575 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
11576 (target_terminal_ours): Add argument.
11577 * target.c (debug_to_terminal_ours): Add argument.
11578 (update_current_target): Update.
11579 * remote.c (remote_terminal_ours): Add 'self' argument.
11580 (remote_close): Update.
11581 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
11582 * inflow.c (terminal_ours): Add 'self' argument.
11583 * inferior.h (terminal_ours): Add 'self' argument.
11584 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11585
2e1e1a19
TT
115862014-02-19 Pedro Alves <palves@redhat.com>
11587 Tom Tromey <tromey@redhat.com>
11588
11589 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
11590 argument.
11591 (target_terminal_ours_for_output): Add argument.
11592 * target.c (debug_to_terminal_ours_for_output): Add argument.
11593 (update_current_target): Update.
11594 * inflow.c (terminal_ours_for_output): Add 'self' argument.
11595 * inferior.h (terminal_ours_for_output): Add 'self' argument.
11596 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11597
d2f640d4
TT
115982014-02-19 Tom Tromey <tromey@redhat.com>
11599
11600 * target.h (struct target_ops) <to_terminal_inferior>: Add
11601 argument.
11602 * target.c (target_terminal_inferior): Add argument.
11603 (update_current_target): Update.
11604 * remote.c (remote_terminal_inferior): Add 'self' argument.
11605 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
11606 * inflow.c (terminal_inferior): Add 'self' argument.
11607 * inferior.h (terminal_inferior): Add 'self' argument.
11608 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
11609 (go32_terminal_inferior): Add 'self' argument.
11610
c42bf286
TT
116112014-02-19 Tom Tromey <tromey@redhat.com>
11612
11613 * target.h (struct target_ops) <to_terminal_init>: Add argument.
11614 (target_terminal_init): Add argument.
11615 * target.c (debug_to_terminal_init): Add argument.
11616 (update_current_target): Update.
11617 * inflow.c (terminal_init_inferior): Add 'self' argument.
11618 * inferior.h (terminal_init_inferior): Add 'self' argument.
11619 * go32-nat.c (go32_terminal_init): Add 'self' argument.
11620 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
11621
c3a5ff89
TT
116222014-02-19 Tom Tromey <tromey@redhat.com>
11623
11624 * target.h (struct target_ops)
11625 <to_can_accel_watchpoint_condition>: Add argument.
11626 (target_can_accel_watchpoint_condition): Add argument.
11627 * target.c (debug_to_can_accel_watchpoint_condition): Add
11628 argument.
11629 (update_current_target): Update.
11630 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
11631 'self' argument.
11632
31568a15
TT
116332014-02-19 Tom Tromey <tromey@redhat.com>
11634
11635 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11636 Add argument.
11637 (target_region_ok_for_hw_watchpoint): Add argument.
11638 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
11639 (default_region_ok_for_hw_watchpoint): Add argument.
11640 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
11641 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
11642 argument.
11643 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
11644 argument.
11645 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
11646 argument.
11647 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
11648 'self' argument.
11649 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
11650 'self' argument.
11651 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
11652 'self' argument.
11653 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
11654 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
11655 'self' argument.
11656 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
11657 Add 'self' argument.
11658
7bb99c53
TT
116592014-02-19 Tom Tromey <tromey@redhat.com>
11660
11661 * target.h (struct target_ops) <to_insert_watchpoint>: Add
11662 argument.
11663 (target_insert_watchpoint): Add argument.
11664 * target.c (debug_to_insert_watchpoint): Add argument.
11665 (update_current_target): Update.
11666 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
11667 * remote.c (remote_insert_watchpoint): Add 'self' argument.
11668 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
11669 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
11670 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
11671 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
11672 argument.
11673 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
11674 (procfs_insert_hw_watchpoint): Add 'self' argument.
11675 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
11676 argument.
11677 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
11678 argument.
11679 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
11680 argument.
11681 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
11682 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
11683 argument.
11684 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
11685 'self' argument.
11686
11b5219a
TT
116872014-02-19 Tom Tromey <tromey@redhat.com>
11688
11689 * target.h (struct target_ops) <to_remove_watchpoint>: Add
11690 argument.
11691 (target_remove_watchpoint): Add argument.
11692 * target.c (debug_to_remove_watchpoint): Add argument.
11693 (update_current_target): Update.
11694 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
11695 * remote.c (remote_remove_watchpoint): Add 'self' argument.
11696 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
11697 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
11698 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
11699 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
11700 argument.
11701 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
11702 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
11703 argument.
11704 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
11705 argument.
11706 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
11707 argument.
11708 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
11709 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
11710 argument.
11711 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
11712 'self' argument.
11713
a64dc96c
TT
117142014-02-19 Tom Tromey <tromey@redhat.com>
11715
11716 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
11717 argument.
11718 (target_remove_hw_breakpoint): Add argument.
11719 * target.c (debug_to_remove_hw_breakpoint): Add argument.
11720 (update_current_target): Update.
11721 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
11722 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
11723 argument.
11724 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
11725 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
11726 argument.
11727 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
11728 'self' argument.
11729
23a26771
TT
117302014-02-19 Tom Tromey <tromey@redhat.com>
11731
11732 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
11733 argument.
11734 (target_insert_hw_breakpoint): Add argument.
11735 * target.c (debug_to_insert_hw_breakpoint): Add argument.
11736 (update_current_target): Update.
11737 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
11738 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
11739 argument.
11740 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
11741 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
11742 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
11743 argument.
11744 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
11745 'self' argument.
11746
5461485a
TT
117472014-02-19 Tom Tromey <tromey@redhat.com>
11748
11749 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
11750 argument.
11751 (target_can_use_hardware_watchpoint): Add argument.
11752 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
11753 (update_current_target): Update.
11754 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
11755 argument.
11756 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
11757 argument.
11758 * remote.c (remote_check_watch_resources): Add 'self' argument.
11759 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
11760 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
11761 argument.
11762 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
11763 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
11764 argument.
11765 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
11766 argument.
11767 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
11768 argument.
11769 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
11770 argument.
11771 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
11772 argument.
11773 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
11774 argument.
11775 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
11776 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
11777 argument.
11778 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
11779 'self' argument.
11780
f045800c
TT
117812014-02-19 Tom Tromey <tromey@redhat.com>
11782
11783 * target.h (struct target_ops) <to_post_attach>: Add argument.
11784 (target_post_attach): Add argument.
11785 * target.c (debug_to_post_attach): Add argument.
11786 (update_current_target): Update.
11787 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
11788 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
11789 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
11790 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
11791 * inf-child.c (inf_child_post_attach): Add 'self' argument.
11792
de90e03d
TT
117932014-02-19 Tom Tromey <tromey@redhat.com>
11794
11795 * windows-nat.c (windows_close): Add 'self' argument.
11796 * tracepoint.c (tfile_close): Add 'self' argument.
11797 * target.h (struct target_ops) <to_close>: Add argument.
11798 * target.c (target_close): Add argument.
11799 (update_current_target): Update.
11800 * remote.c (remote_close): Add 'self' argument.
11801 * remote-sim.c (gdbsim_close): Add 'self' argument.
11802 * remote-mips.c (mips_close): Add 'self' argument.
11803 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
11804 * record-full.c (record_full_close): Add 'self' argument.
11805 * record-btrace.c (record_btrace_close): Add 'self' argument.
11806 * monitor.h (monitor_close): Add 'self' argument.
11807 * monitor.c (monitor_close): Add 'self' argument.
11808 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
11809 * linux-nat.c (linux_nat_close): Add argument.
11810 * go32-nat.c (go32_close): Add 'self' argument.
11811 * exec.c (exec_close_1): Add 'self' argument.
11812 * ctf.c (ctf_close): Add 'self' argument.
11813 * corelow.c (core_close): Add 'self' argument.
11814 (core_close_cleanup): Update.
11815 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
11816 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
11817
9dd130a0
TT
118182014-02-19 Tom Tromey <tromey@redhat.com>
11819
11820 * remote.c (remote_load): New function.
11821 (init_remote_ops): Use it.
11822
46917d26
TT
118232014-02-19 Tom Tromey <tromey@redhat.com>
11824
11825 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
11826 argument.
11827 * common/linux-btrace.h (linux_supports_btrace): Update.
11828 * remote.c (remote_supports_btrace): Add "self" argument.
11829 * target-delegates.c: Rebuild.
11830 * target.c (target_supports_btrace): Remove.
11831 * target.h (struct target_ops) <to_supports_btrace>: Add
11832 target_ops argument.
11833 (target_supports_btrace): New define.
11834
6b84065d
TT
118352014-02-19 Tom Tromey <tromey@redhat.com>
11836
11837 * record-full.c (record_full_beneath_to_resume_ops)
11838 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
11839 (record_full_beneath_to_wait)
11840 (record_full_beneath_to_store_registers_ops)
11841 (record_full_beneath_to_store_registers)
11842 (record_full_beneath_to_xfer_partial_ops)
11843 (record_full_beneath_to_xfer_partial)
11844 (record_full_beneath_to_insert_breakpoint_ops)
11845 (record_full_beneath_to_insert_breakpoint)
11846 (record_full_beneath_to_remove_breakpoint_ops)
11847 (record_full_beneath_to_remove_breakpoint)
11848 (record_full_beneath_to_stopped_by_watchpoint)
11849 (record_full_beneath_to_stopped_data_address)
11850 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
11851 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
11852 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
11853 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
11854 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
11855 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
11856 (tmp_to_stopped_data_address, tmp_to_async): Remove.
11857 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
11858 (record_full_resume, record_full_wait_1)
11859 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
11860 (record_full_store_registers, record_full_xfer_partial)
11861 (record_full_insert_breakpoint, record_full_remove_breakpoint)
11862 (record_full_async, record_full_core_xfer_partial): Use target
11863 delegation.
11864 * target-delegates.c: Rebuild.
11865 * target.c (current_xfer_partial): Remove.
11866 (update_current_target): Do not INHERIT or de_fault
11867 to_insert_breakpoint, to_remove_breakpoint,
11868 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
11869 to_is_async_p, to_async. Do not set to_xfer_partial field.
11870 (default_xfer_partial): Simplify.
11871 (current_xfer_partial): Remove.
11872 (target_wait, target_resume): Simplify.
11873 (find_default_can_async_p, find_default_is_async_p): Update.
11874 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
11875 to_xfer_partial, to_stopped_by_watchpoint,
11876 to_stopped_data_address.
11877 (target_store_registers): Simplify.
11878 (forward_target_remove_breakpoint)
11879 (forward_target_insert_breakpoint): Remove.
11880 (target_remove_breakpoint, target_insert_breakpoint)
11881 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
11882 * target.h (struct target_ops) <to_resume, to_wait,
11883 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
11884 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
11885 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
11886 markup.
11887 (forward_target_remove_breakpoint)
11888 (forward_target_insert_breakpoint): Remove.
11889 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
11890 directly.
11891 (record_btrace_insert_breakpoint): Delegate directly.
11892
1101cb7b
TT
118932014-02-19 Tom Tromey <tromey@redhat.com>
11894
11895 PR build/7701:
11896 * target-delegates.c: New file.
11897 * target.c: Include target-delegates.c.
11898 (init_dummy_target): Call install_dummy_methods.
11899 (complete_target_initialization): Call install_delegators.
11900 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
11901 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
11902 * make-target-delegates: New file.
11903
8b06beed
TT
119042014-02-19 Tom Tromey <tromey@redhat.com>
11905
11906 * record.c (find_record_target): Use find_target_at.
11907 * target.c (find_target_at): New function.
11908 * target.h (find_target_at): Declare.
11909
6a109b6b
TT
119102014-02-19 Tom Tromey <tromey@redhat.com>
11911
11912 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
11913 Add 'ops' argument.
11914 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
11915 'ops' argument.
11916 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
11917 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
11918 'ops' argument.
11919 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
11920 argument.
11921 * linux-nat.c (save_sigtrap): Update.
11922 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
11923 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
11924 (linux_nat_close): Update.
11925 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
11926 argument.
11927 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
11928 argument.
11929 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
11930 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
11931 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
11932 (tmp_to_async): Add 'ops' argument.
11933 (record_full_stopped_by_watchpoint, record_full_async)
11934 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
11935 argument.
11936 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
11937 (m32r_stopped_by_watchpoint): Add 'ops' argument.
11938 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
11939 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
11940 (remote_is_async_p, remote_async): Add 'ops' argument.
11941 (remote_stopped_data_address): Update.
11942 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
11943 * target.c (update_current_target)
11944 (find_default_can_async_p, find_default_is_async_p): Update.
11945 (init_dummy_target): Update.
11946 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
11947 * target.h (struct target_ops) <to_stopped_by_watchpoint,
11948 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
11949 (target_can_async_p, target_is_async_p, target_async)
11950 (target_stopped_by_watchpoint): Update.
11951
e095146b
YQ
119522014-02-19 Yao Qi <yao@codesourcery.com>
11953
11954 PR gdb/16220
11955 * gdbarch.sh: Remove startup_gdbarch.
11956 * gdbarch.c: Regenerated.
11957 * gdbarch.h: Likewise.
11958
bc3c6b36
KB
119592014-02-17 Kevin Buettner <kevinb@redhat.com>
11960
11961 * rl78-tdep.c (rl78_g10_register_name): New function.
11962 (rl78_return_value): Add g10 support.
11963 (rl78_gdbarch_init): Register rl78_g10_register_name for the
11964 g10.
11965
98dc0167 119662014-02-17 Doug Evans <xdje42@gmail.com>
f01c1940
DE
11967
11968 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
11969 (SUBDIR_GUILE_SRCS): Ditto.
11970 (scm-gsmob.o): Ditto.
11971
842c05cd
YQ
119722014-02-17 Yao Qi <yao@codesourcery.com>
11973
11974 * gnu-nat.c (ILL_RPC): Declare defined function.
11975
25c0bd04
YQ
119762014-02-17 Yao Qi <yao@codesourcery.com>
11977
11978 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
11979 mach_msg_type_number_t.
11980 (gnu_write_inferior): Likewise.
11981
a9a758e3
YQ
119822014-02-17 Yao Qi <yao@codesourcery.com>
11983
11984 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
11985 in format string.
11986 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
11987 (inf_validate_procs, inf_signal): Likewise.
11988 (S_exception_raise_request): Likewise.
11989 (do_mach_notify_dead_name): Likewise.
11990 (steal_exc_port): Likewise.
11991 (gnu_read_inferior): Change 'copy_count''s type to
11992 mach_msg_type_number_t.
11993 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
11994 format string.
11995
bae8023e
TS
119962014-02-16 Thomas Schwinge <thomas@codesourcery.com>
11997
c82f56d9
TS
11998 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
11999 flag. Adjust all users; in particular...
12000 (gnu_wait): ..., don't decrement its value in here...
12001 (gnu_create_inferior): ..., and instead set the flag in here,
12002 around the startup_inferior call, and call that one with
12003 START_INFERIOR_TRAPS_EXPECTED.
12004
3398af6a
TS
12005 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
12006 (ILL_RPC): ... new macro.
12007 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
12008 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
12009 (do_mach_notify_send_once, S_proc_setmsgport_reply)
12010 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
12011 functions with ILL_RPC macro.
12012 (S_proc_pid2task_reply, S_proc_task2pid_reply)
12013 (S_proc_task2proc_reply, S_proc_proc2task_reply)
12014 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
12015 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
12016 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
12017 (S_proc_getlogin_reply, S_proc_getsid_reply)
12018 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
12019 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
12020 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
12021 (S_proc_getnports_reply, S_proc_is_important_reply)
12022 (S_proc_get_code_reply): New stub functions, generated with
12023 ILL_RPC macro.
12024
d47642c9
TS
12025 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
12026 collected the type check structures.
12027
bae8023e
TS
12028 * reply_mig_hack.awk: Don't expect to see the auto keyword.
12029
8a55ffb0
DE
120302014-02-14 Doug Evans <dje@google.com>
12031
12032 * target.c (target_write_partial): Fix result type.
12033
c2853f3d
JM
120342014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
12035
12036 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
12037 the proper offsets to access fpregset_t.
12038
ac61d2db
SA
120392014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
12040
12041 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
12042 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
12043 * h8300-tdep.c (setmachinelist): Remove global.
12044 * hppa-tdep.c (hppa_sigtramp): Remove global.
12045 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
12046 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
12047 * ravenscar-thread.c (update_target_observer): Remove global.
12048 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
12049
9d2d0b8b
TT
120502014-02-12 Tom Tromey <tromey@redhat.com>
12051
12052 * common/rsp-low.c: Update comments.
12053 * common/rsp-low.h: Update comments.
12054
a7191e8b
TT
120552014-02-12 Tom Tromey <tromey@redhat.com>
12056
12057 * common/rsp-low.c (convert_ascii_to_int): Remove.
12058 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
12059
ff0e980e
TT
120602014-02-12 Tom Tromey <tromey@redhat.com>
12061
12062 * common/rsp-low.h (unhexify): Don't declare.
12063 * common/rsp-low.c (unhexify): Remove.
12064
e9371aff
TT
120652014-02-12 Tom Tromey <tromey@redhat.com>
12066
12067 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
12068 * common/rsp-low.c (convert_int_to_ascii): Remove.
12069
971dc0b8
TT
120702014-02-12 Tom Tromey <tromey@redhat.com>
12071
12072 * common/rsp-low.h (hexify): Don't declare.
12073 * common/rsp-low.c (hexify): Remove.
12074
0a822afb
TT
120752014-02-12 Tom Tromey <tromey@redhat.com>
12076
12077 * common/rsp-low.c (hexify): Never take strlen of argument.
12078
9f1b45b0
TT
120792014-02-12 Tom Tromey <tromey@redhat.com>
12080
12081 * common/rsp-low.c (bin2hex): Never take strlen of argument.
12082 * remote.c (extended_remote_run, remote_rcmd)
12083 (remote_download_trace_state_variable, remote_save_trace_data)
12084 (remote_set_trace_notes): Update.
12085 * tracepoint.c (encode_source_string, tfile_write_status)
12086 (tfile_write_uploaded_tsv): Update.
12087
9c3d6531
TT
120882014-02-12 Tom Tromey <tromey@redhat.com>
12089
12090 * tracepoint.c: Include rsp-low.h.
12091 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
12092 * remote.c: Include rsp-low.h.
12093 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
12094 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
12095 (remote_unescape_input): Move to common/rsp-low.c.
12096 * common/rsp-low.h: New file.
12097 * common/rsp-low.c: New file.
12098 * Makefile.in (SFILES): Add common/rsp-low.c.
12099 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
12100 (COMMON_OBS): Add rsp-low.o.
12101 (rsp-low.o): New target.
12102
01fd3ea5
TT
121032014-02-12 Tom Tromey <tromey@redhat.com>
12104
12105 * utils.h: Include print-utils.h.
12106 (host_address_to_string, plongest, pulongest, phex, phex_nz)
12107 (int_string, core_addr_to_string, core_addr_to_string_nz)
12108 (hex_string, hex_string_custom): Don't declare.
12109 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
12110 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
12111 (hex_string_custom, int_string, core_addr_to_string)
12112 (core_addr_to_string_nz, host_address_to_string): Move to
12113 common/print-utils.c.
12114 * common/print-utils.h: New file.
12115 * common/print-utils.c: New file
12116 * Makefile.in (SFILES): Add common/print-utils.c.
12117 (HFILES_NO_SRCDIR): Add common/print-utils.h.
12118 (COMMON_OBS): Add print-utils.o.
12119 (print-utils.o): New target.
12120
9fb50108
TT
121212014-02-12 Tom Tromey <tromey@redhat.com>
12122
12123 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
12124
0548b5db
MK
121252014-02-12 Mark Kettenis <kettenis@gnu.org>
12126
12127 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
12128
493443a4
MK
121292014-02-12 Mark Kettenis <kettenis@gnu.org>
12130
12131 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
12132 if a PT_IO ptrace request returns sucessfully but indicates that 0
12133 bytes were transferred.
12134
706d0883
PA
121352014-02-12 Pedro Alves <palves@redhat.com>
12136 Kevin Buettner <kevinb@redhat.com>
12137
12138 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
12139 TYPE_INSTANCE_FLAG_CODE_SPACE.
12140
5caa2f0b
PA
121412014-02-12 Pedro Alves <palves@redhat.com>
12142
12143 * h8300-tdep.c (pseudo_from_raw_register)
12144 (raw_from_pseudo_register): New functions.
12145 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
12146 them.
12147
76fd5f74
PA
121482014-02-12 Pedro Alves <palves@redhat.com>
12149
12150 * h8300-tdep.c (h8300_register_sim_regno): New function.
12151 (h8300_gdbarch_init): Install h8300_register_sim_regno as
12152 gdbarch_register_sim_regno hook.
12153
8f008406
SA
121542014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
12155
12156 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
12157
195abc10
SA
121582014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
12159
12160 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
12161
93ffa5b9
MK
121622014-02-12 Mark Kettenis <kettenis@gnu.org>
12163
12164 * obsd-tdep.h (obsd_init_abi): New prototype.
12165 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
12166 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
12167 (obsd_init_abi): New functions.
12168 * i386obsd-tdep.c: Include "obsd-tdep.h".
12169 (i386obsd_init_abi): Call obsd_init_abi.
12170 * amd64obsd-tdep.c: Include "obsd-tdep.h".
12171 (amd64obsd_init_abi): Call obsd_init_abi.
12172 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
12173 obsd-tdep.c to gdb_target_obs.
12174
49caec94
JM
121752014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
12176
12177 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
12178 double float arguments to 16-byte in the argument slots.
12179
e1402065
DE
121802014-02-11 Doug Evans <xdje42@gmail.com>
12181
12182 * configure.ac: Don't crash if pkg-config is not found and guile
12183 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
12184 in guile checks.
12185 * configure: Regenerate.
12186
edcc890f
YQ
121872014-02-11 Yao Qi <yao@codesourcery.com>
12188
12189 * aix-thread.c (aix_thread_xfer_partial): Update comments.
12190 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
12191 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
12192 * gnu-nat.c (gnu_xfer_memory): Likewise.
12193 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
12194 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12195 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12196 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12197
9b409511
YQ
121982014-02-11 Yao Qi <yao@codesourcery.com>
12199
12200 * target.h (enum target_xfer_error): Rename to ...
12201 (enum target_xfer_status): ... it. New. All users updated.
12202 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
12203 New.
12204 (TARGET_XFER_STATUS_ERROR_P): New macro.
12205 (target_xfer_error_to_string): Remove declaration.
12206 (target_xfer_status_to_string): Declare.
12207 (target_xfer_partial_ftype): Adjust it.
12208 (struct target_ops) <to_xfer_partial>: Return
12209 target_xfer_status. Add argument xfered_len. Update
12210 comments.
12211 * target.c (target_xfer_error_to_string): Rename to ...
12212 (target_xfer_status_to_string): ... it. New. All callers
12213 updated.
12214 (target_read_live_memory): Likewise. Call target_xfer_partial
12215 instead of target_read.
12216 (memory_xfer_live_readonly_partial): Return
12217 target_xfer_status. Add argument xfered_len.
12218 (raw_memory_xfer_partial): Likewise.
12219 (memory_xfer_partial_1): Likewise.
12220 (memory_xfer_partial): Likewise.
12221 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
12222 properly. Update debug message.
12223 (default_xfer_partial, current_xfer_partial): Likewise.
12224 (target_write_partial): Likewise.
12225 (target_read_partial): Likewise. All callers updated.
12226 (read_whatever_is_readable): Likewise.
12227 (target_write_with_progress): Likewise.
12228 (target_read_alloc_1): Likewise.
12229
12230 * aix-thread.c (aix_thread_xfer_partial): Likewise.
12231 * auxv.c (procfs_xfer_auxv): Likewise.
12232 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
12233 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12234 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12235 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
12236 * corefile.c (read_memory): Adjust.
12237 * corelow.c (core_xfer_partial): Likewise.
12238 * ctf.c (ctf_xfer_partial): Likewise.
12239 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
12240 updated.
12241 (darwin_xfer_partial): Likewise.
12242 * exec.c (section_table_xfer_memory_partial): Likewise. All
12243 callers updated.
12244 (exec_xfer_partial): Likewise.
12245 * exec.h (section_table_xfer_memory_partial): Update
12246 declaration.
12247 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
12248 negative.
12249 (gnu_xfer_partial): Likewise.
12250 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
12251 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
12252 (ia64_hpux_xfer_solib_got): Likewise.
12253 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
12254 type of 'partial_len' to ULONGEST.
12255 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
12256 * linux-nat.c (linux_xfer_siginfo ): Likewise.
12257 (linux_nat_xfer_partial): Likewise.
12258 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
12259 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
12260 * monitor.c (monitor_xfer_memory): Likewise.
12261 (monitor_xfer_partial): Likewise.
12262 * procfs.c (procfs_xfer_partial): Likewise.
12263 * record-btrace.c (record_btrace_xfer_partial): Likewise.
12264 * record-full.c (record_full_xfer_partial): Likewise.
12265 (record_full_core_xfer_partial): Likewise.
12266 * remote-sim.c (gdbsim_xfer_memory): Likewise.
12267 (gdbsim_xfer_partial): Likewise.
12268 * remote.c (remote_write_bytes_aux): Likewise. All callers
12269 updated.
12270 (remote_write_bytes, remote_read_bytes): Likewise. All
12271 callers updated.
12272 (remote_flash_erase): Likewise. All callers updated.
12273 (remote_write_qxfer): Likewise. All callers updated.
12274 (remote_read_qxfer): Likewise. All callers updated.
12275 (remote_xfer_partial): Likewise.
12276 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12277 (rs6000_xfer_shared_libraries): Likewise.
12278 * sol-thread.c (sol_thread_xfer_partial): Likewise.
12279 (sol_thread_xfer_partial): Likewise.
12280 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12281 (sparc_xfer_partial): Likewise.
12282 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
12283 updated.
12284 (spu_xfer_partial): Likewise.
12285 * spu-multiarch.c (spu_xfer_partial): Likewise.
12286 * tracepoint.c (tfile_xfer_partial): Likewise.
12287 * windows-nat.c (windows_xfer_memory): Likewise.
12288 (windows_xfer_shared_libraries): Likewise.
12289 (windows_xfer_partial): Likewise.
12290 * valprint.c: Replace 'target_xfer_error' with
12291 'target_xfer_status' in comments.
12292
a8e63083
JB
122932014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
12294
12295 Checked in by Joel Brobecker <brobecker@adacore.com>.
12296 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
12297
e86b67d3
JB
122982014-02-11 Joel Brobecker <brobecker@adacore.com>
12299
12300 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
12301 function parameters.
12302
4b7d1f7f
WN
123032014-02-10 Will Newton <will.newton@linaro.org>
12304
12305 * elfread.c (elf_rel_plt_read): Look for a .got section if
12306 looking up .got.plt fails.
12307 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
12308 on address passed to elf_gnu_ifunc_record_cache.
12309 (elf_gnu_ifunc_resolve_addr): Likewise.
12310 (elf_gnu_ifunc_resolver_return_stop): Likewise.
12311
961842b2
JM
123122014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
12313
12314 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
12315 (X_RETTURN): New macro.
12316 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
12317
12318 * sparc64-tdep.c (sparc64_init_abi): Hook
12319 sparc_in_function_epilogue_p.
12320
3f03e7b1
GB
123212014-02-10 Gary Benson <gbenson@redhat.com>
12322
12323 * symfile-debug.c (debug_qf_expand_symtabs_matching):
12324 Rename name_matcher to symbol_matcher.
12325
96f861ef
GB
123262014-02-10 Gary Benson <gbenson@redhat.com>
12327
12328 * symfile-debug.c (debug_qf_expand_symtabs_matching):
12329 Use expand_symtabs_file_matcher_ftype and
12330 expand_symtabs_symbol_matcher_ftype.
12331
ee01b665
JB
123322014-02-10 Joel Brobecker <brobecker@adacore.com>
12333
12334 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
12335 (struct ada_symbol_cache): New.
12336 (ada_free_symbol_cache): Forward declare.
12337 (struct ada_pspace_data): New.
12338 (ada_pspace_data_handle): New static global.
12339 (get_ada_pspace_data, ada_pspace_data_cleanup)
12340 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
12341 (cache_space, cache): Delete, now folded inside struct
12342 ada_pspace_data.
12343 (ada_get_symbol_cache): New function.
12344 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
12345 implementation.
12346 (_initialize_ada_language): Remove initialization of cache_space.
12347 Move call to observer_attach_inferior_exit up, grouping it
12348 with the other observer registrations inside this function.
12349 Rename command to be more general. Add call to
12350 register_program_space_data_with_cleanup.
12351
143adbbf
JB
123522014-02-10 Joel Brobecker <brobecker@adacore.com>
12353
12354 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
12355 ada_new_objfile_observer.
12356 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
12357 (_initialize_tasks): Update uses of ada_new_objfile_observer
12358 and ada_tasks_normal_stop_observer.
12359
aa4fb036
JB
123602014-02-10 Joel Brobecker <brobecker@adacore.com>
12361
12362 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
12363 returned by the 'Length attribute to integer.
12364
9dee8cc6
JB
123652014-02-10 Joel Brobecker <brobecker@adacore.com>
12366
12367 * ada-lang.c (_initialize_ada_language): Initialize
12368 cache_space obstack.
12369
3d9434b5
JB
123702014-02-10 Joel Brobecker <brobecker@adacore.com>
12371
12372 * ada-lang.c (HASH_SIZE): New macro.
12373 (struct cache_entry): New type.
12374 (cache_space, cache): New static globals.
12375 (ada_clear_symbol_cache, find_entry): New functions.
12376 (lookup_cached_symbol, cache_symbol): Implement.
12377 (ada_new_objfile_observer, ada_free_objfile_observer): New.
12378 (_initialize_ada_language): Attach ada_new_objfile_observer
12379 and ada_free_objfile_observer.
12380
f0c5f9b2
JB
123812014-02-10 Joel Brobecker <brobecker@adacore.com>
12382
12383 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
12384 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
12385 struct block * parameter.
12386 (ada_lookup_symbol_list_worker): Constify local variable "block".
12387 Remove cast which is no longer necessary.
12388
ed3ef339
DE
123892014-02-10 Doug Evans <xdje42@gmail.com>
12390
12391 Add Guile as an extension language.
12392 * NEWS: Mention Guile scripting.
12393 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
12394 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
12395 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
12396 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
12397 (CLIBS): Add GUILE_LIBS.
12398 (install-guile): New rule.
12399 (guile.o): New rule.
12400 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
12401 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
12402 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
12403 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
12404 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
12405 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
12406 (scm-type.o, scm-utils.o, scm-value.o): New rules.
12407 * configure.ac: New option --with-guile.
12408 * configure: Regenerate.
12409 * config.in: Regenerate.
12410 * auto-load.c: Remove #include "python/python.h". Add #include
12411 "gdb/section-scripts.h".
12412 (source_section_scripts): Handle Guile scripts.
12413 (_initialize_auto_load): Add name of Guile objfile script to
12414 scripts-directory help text.
12415 * breakpoint.c (condition_command): Tweak comment to include Scheme.
12416 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
12417 (struct breakpoint): New member scm_bp_object.
12418 * defs.h (enum command_control_type): New value guile_control.
12419 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
12420 "extension.h".
12421 (show_user): Update comment.
12422 (_initialize_cli_cmds): Update help text for "show user". Update help
12423 text for max-user-call-depth.
12424 * cli/cli-script.c: Remove #include "python/python.h". Add #include
12425 "extension.h".
12426 (multi_line_command_p): Add guile_control.
12427 (print_command_lines): Handle guile_control.
12428 (execute_control_command, recurse_read_control_structure): Ditto.
12429 (process_next_line): Recognize "guile" commands.
12430 * disasm.c (gdb_disassemble_info): Make non-static.
12431 * disasm.h: #include "dis-asm.h".
12432 (struct gdbarch): Add forward decl.
12433 (gdb_disassemble_info): Declare.
12434 * extension.c: #include "guile/guile.h".
12435 (extension_languages): Add guile.
12436 (get_ext_lang_defn): Handle EXT_LANG_GDB.
12437 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
12438 * gdbtypes.c (get_unsigned_type_max): New function.
12439 (get_signed_type_minmax): New function.
12440 * gdbtypes.h (get_unsigned_type_max): Declare.
12441 (get_signed_type_minmax): Declare.
12442 * guile/README: New file.
12443 * guile/guile-internal.h: New file.
12444 * guile/guile.c: New file.
12445 * guile/guile.h: New file.
12446 * guile/scm-arch.c: New file.
12447 * guile/scm-auto-load.c: New file.
12448 * guile/scm-block.c: New file.
12449 * guile/scm-breakpoint.c: New file.
12450 * guile/scm-disasm.c: New file.
12451 * guile/scm-exception.c: New file.
12452 * guile/scm-frame.c: New file.
12453 * guile/scm-gsmob.c: New file.
12454 * guile/scm-iterator.c: New file.
12455 * guile/scm-lazy-string.c: New file.
12456 * guile/scm-math.c: New file.
12457 * guile/scm-objfile.c: New file.
12458 * guile/scm-ports.c: New file.
12459 * guile/scm-pretty-print.c: New file.
12460 * guile/scm-safe-call.c: New file.
12461 * guile/scm-string.c: New file.
12462 * guile/scm-symbol.c: New file.
12463 * guile/scm-symtab.c: New file.
12464 * guile/scm-type.c: New file.
12465 * guile/scm-utils.c: New file.
12466 * guile/scm-value.c: New file.
12467 * guile/lib/gdb.scm: New file.
12468 * guile/lib/gdb/boot.scm: New file.
12469 * guile/lib/gdb/experimental.scm: New file.
12470 * guile/lib/gdb/init.scm: New file.
12471 * guile/lib/gdb/iterator.scm: New file.
12472 * guile/lib/gdb/printing.scm: New file.
12473 * guile/lib/gdb/types.scm: New file.
12474 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
12475 (VPATH): Add $(GUILE_SRCDIR).
12476 (GUILE_DIR): New variable.
12477 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
12478 (all): Add stamp-guile dependency.
12479 (stamp-guile): New rule.
12480 (clean-guile, install-guile, uninstall-guile): New rules.
12481 (install-only): Add install-guile dependency.
12482 (uninstall): Add uninstall-guile dependency.
12483 (clean): Add clean-guile dependency.
12484
ac020ec5
DE
124852014-02-09 Doug Evans <xdje42@gmail.com>
12486
12487 Revert this patch (which I approved, mea culpa).
12488
12489 2014-02-08 Mark Kettenis <kettenis@gnu.org>
12490
12491 * Makefile.in (all-lib): Remove.
12492 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12493
2a081c59
JK
124942014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
12495
12496 Fix Python stack corruption.
12497 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
12498 gdb_py_longest.
12499
0a6bd22d
MK
125002014-02-08 Mark Kettenis <kettenis@gnu.org>
12501
12502 * Makefile.in (all-lib): Remove.
12503 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12504
1a860409
DE
125052014-02-07 Doug Evans <dje@google.com>
12506
12507 * extension-priv.h (extension_language_script_ops): Add comment.
12508 (extension_language_ops): Add comment.
caf5a491 12509 (active_ext_lang_state): Fix typo in comment.
1a860409 12510
d137e6dc
PA
125112014-02-07 Pedro Alves <palves@redhat.com>
12512
0dcb32c3 12513 PR breakpoints/16292
d137e6dc
PA
12514 * infrun.c (handle_signal_stop) <signal arrives while stepping
12515 over a breakpoint>: Switch back to the stepping thread.
12516
ce6d0892
YQ
125172014-02-07 Yao Qi <yao@codesourcery.com>
12518
12519 * target.c (target_xfer_partial): Return zero if LEN is zero.
12520
2ed4b548
YQ
125212014-02-07 Yao Qi <yao@codesourcery.com>
12522
12523 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
12524 (ld_so_xfer_auxv): Likewise.
12525 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12526 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12527 * corelow.c (core_xfer_partial): Likewise.
12528 * ctf.c (ctf_xfer_partial): Likewise.
12529 * darwin-nat.c (darwin_read_dyld_info): Likewise.
12530 (darwin_xfer_partial): Likewise.
12531 * exec.c (exec_xfer_partial): Likewise.
12532 * gnu-nat.c (gnu_xfer_partial): Likewise.
12533 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
12534 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
12535 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
12536 * linux-nat.c (linux_xfer_siginfo): Likewise.
12537 (linux_proc_xfer_spu): Likewise.
12538 * procfs.c (procfs_xfer_partial): Likewise.
12539 * record-full.c (record_full_xfer_partial): Likewise.
12540 (record_full_core_xfer_partial): Likewise.
12541 * remote-sim.c (gdbsim_xfer_partial): Likewise.
12542 * remote.c (remote_write_qxfer): Likewise.
12543 (remote_write_qxfer, remote_read_qxfer): Likewise.
12544 (remote_xfer_partial): Likewise.
12545 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12546 (rs6000_xfer_shared_libraries): Likewise.
12547 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12548 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12549 (spu_xfer_partial): Likewise.
12550 * target.c (memory_xfer_partial_1): Likewise.
12551 * tracepoint.c (tfile_xfer_partial): Likewise.
12552 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
12553 (windows_xfer_partial): Likewise.
12554
c09f20e4
YQ
125552014-02-07 Yao Qi <yao@codesourcery.com>
12556
12557 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
12558 comments.
12559 (core_xfer_shared_libraries_aix): Likewise.
12560 * gdbarch.c, gdbarch.h: Regenerated.
12561 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
12562 ULONGEST. Change 'len_avail' type to ULONGEST.
12563 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12564 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12565 declaration.
12566 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
12567
8635b3bf
YQ
125682014-02-07 Yao Qi <yao@codesourcery.com>
12569
12570 * corefile.c (memory_error): Get 'exception' from ERR and pass
12571 'exception' to throw_error.
12572
6dddc817
DE
125732014-02-06 Doug Evans <xdje42@gmail.com>
12574
12575 * configure.ac (libpython checking): Remove all but python.o from
12576 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
12577 * configure: Regenerate.
12578
12579 * Makefile.in (SFILES): Add extension.c.
12580 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
12581 (COMMON_OBS): Add extension.o.
12582 * extension.h: New file.
12583 * extension-priv.h: New file.
12584 * extension.c: New file.
12585
12586 * python/python-internal.h: #include "extension.h".
12587 (gdbpy_auto_load_enabled): Declare.
12588 (gdbpy_apply_val_pretty_printer): Declare.
12589 (gdbpy_apply_frame_filter): Declare.
12590 (gdbpy_preserve_values): Declare.
12591 (gdbpy_breakpoint_cond_says_stop): Declare.
12592 (gdbpy_breakpoint_has_cond): Declare.
12593 (void source_python_script_for_objfile): Delete.
12594 * python/python.c: #include "extension-priv.h".
12595 Delete inclusion of "observer.h".
12596 (extension_language_python): Moved here and renamed from
12597 script_language_python in py-auto-load.c.
12598 Redefined to be of type extension_language_defn.
12599 (python_extension_script_ops): New global.
12600 (python_extension_ops): New global.
12601 (struct python_env): New member previous_active.
12602 (restore_python_env): Call restore_active_ext_lang.
12603 (ensure_python_env): Call set_active_ext_lang.
12604 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
12605 New arg extlang.
12606 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
12607 New arg extlang.
12608 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
12609 New arg extlang.
12610 (gdbpy_eval_from_control_command): Renamed from
12611 eval_python_from_control_command, made static. New arg extlang.
12612 (gdbpy_source_script) Renamed from source_python_script, made static.
12613 New arg extlang.
12614 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
12615 result to int. New arg extlang.
12616 (gdbpy_source_objfile_script): Renamed from
12617 source_python_script_for_objfile, made static. New arg extlang.
12618 (gdbpy_start_type_printers): Renamed from start_type_printers, made
12619 static. New args extlang, extlang_printers. Change result type to
12620 "void".
12621 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
12622 static. New arg extlang. Rename arg printers to extlang_printers
12623 and change type to ext_lang_type_printers *.
12624 (gdbpy_free_type_printers): Renamed from free_type_printers, made
12625 static. Replace argument arg with extlang, extlang_printers.
12626 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
12627 (!HAVE_PYTHON, source_python_script): Delete.
12628 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
12629 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
12630 (!HAVE_PYTHON, start_type_printers): Delete.
12631 (!HAVE_PYTHON, apply_type_printers): Delete.
12632 (!HAVE_PYTHON, free_type_printers): Delete.
12633 (_initialize_python): Delete call to observer_attach_before_prompt.
12634 (finalize_python): Set/restore active extension language.
12635 (gdbpy_finish_initialization) Renamed from
12636 finish_python_initialization, made static. New arg extlang.
12637 (gdbpy_initialized): New function.
12638 * python/python.h: #include "extension.h". Delete #include
12639 "value.h", "mi/mi-cmds.h".
12640 (extension_language_python): Declare.
12641 (GDBPY_AUTO_FILE_NAME): Delete.
12642 (enum py_bt_status): Moved to extension.h and renamed to
12643 ext_lang_bt_status.
12644 (enum frame_filter_flags): Moved to extension.h.
12645 (enum py_frame_args): Moved to extension.h and renamed to
12646 ext_lang_frame_args.
12647 (finish_python_initialization): Delete.
12648 (eval_python_from_control_command): Delete.
12649 (source_python_script): Delete.
12650 (apply_val_pretty_printer): Delete.
12651 (apply_frame_filter): Delete.
12652 (preserve_python_values): Delete.
12653 (gdbpy_script_language_defn): Delete.
12654 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
12655 (start_type_printers, apply_type_printers, free_type_printers): Delete.
12656
12657 * auto-load.c: #include "extension.h".
12658 (GDB_AUTO_FILE_NAME): Delete.
12659 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
12660 (script_language_gdb): Delete, moved to extension.c and renamed to
12661 extension_language_gdb.
12662 (source_gdb_script_for_objfile): Delete.
12663 (auto_load_pspace_info): New member unsupported_script_warning_printed.
12664 (loaded_script): Change type of language member to
12665 struct extension_language_defn *.
12666 (init_loaded_scripts_info): Initialize
12667 unsupported_script_warning_printed.
12668 (maybe_add_script): Make static. Change type of language arg to
12669 struct extension_language_defn *.
12670 (clear_section_scripts): Reset unsupported_script_warning_printed.
12671 (auto_load_objfile_script_1): Rewrite to use extension language API.
12672 (auto_load_objfile_script): Make public. Remove support-compiled-in
12673 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
12674 (source_section_scripts): Rewrite to use extension language API.
12675 (load_auto_scripts_for_objfile): Rewrite to use
12676 auto_load_scripts_for_objfile.
12677 (collect_matching_scripts_data): Change type of language member to
12678 struct extension_language_defn *.
12679 (auto_load_info_scripts): Change type of language arg to
12680 struct extension_language_defn *.
12681 (unsupported_script_warning_print): New function.
12682 (script_not_found_warning_print): Make static.
12683 (_initialize_auto_load): Rewrite construction of scripts-directory
12684 help.
12685 * auto-load.h (struct objfile): Add forward decl.
12686 (struct script_language): Delete.
12687 (struct auto_load_pspace_info): Add forward decl.
12688 (struct extension_language_defn): Add forward decl.
12689 (maybe_add_script): Delete.
12690 (auto_load_objfile_script): Declare.
12691 (script_not_found_warning_print): Delete.
12692 (auto_load_info_scripts): Update prototype.
12693 (auto_load_gdb_scripts_enabled): Declare.
12694 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
12695 auto_load_python_scripts_enabled and made public.
12696 (script_language_python): Delete, moved to python.c.
12697 (gdbpy_script_language_defn): Delete.
12698 (info_auto_load_python_scripts): Update to use
12699 extension_language_python.
12700
12701 * breakpoint.c (condition_command): Replace call to
12702 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
12703 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
12704 with call to breakpoint_ext_lang_cond_says_stop.
12705 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
12706 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
12707 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
12708 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
12709 New arg slang.
12710 (local_setattro): Print name of extension language with existing
12711 stop condition.
12712
12713 * valprint.c (val_print, value_print): Update to call
12714 apply_ext_lang_val_pretty_printer.
12715 * cp-valprint.c (cp_print_value): Update call to
12716 apply_ext_lang_val_pretty_printer.
12717 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
12718 (gdbpy_apply_val_pretty_printer): Renamed from
12719 apply_val_pretty_printer. New arg extlang.
12720 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
12721
12722 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
12723 extension language API.
12724 * cli/cli-script.c (execute_control_command): Update to call
12725 eval_ext_lang_from_control_command.
12726
12727 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
12728 enum ext_lang_bt_status values. Update call to
12729 apply_ext_lang_frame_filter.
12730 (mi_cmd_stack_list_locals): Ditto.
12731 (mi_cmd_stack_list_args): Ditto.
12732 (mi_cmd_stack_list_variables): Ditto.
12733 * mi/mi-main.c: Delete #include "python/python-internal.h".
12734 Add #include "extension.h".
12735 (mi_cmd_list_features): Replace reference to python internal variable
12736 gdb_python_initialized with call to ext_lang_initialized_p.
12737
12738 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
12739 Update to use enum ext_lang_frame_args. Update to call
12740 apply_ext_lang_frame_filter.
12741 * python/py-framefilter.c (extract_sym): Update to use enum
12742 ext_lang_bt_status.
12743 (extract_value, py_print_type, py_print_value): Ditto.
12744 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
12745 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
12746 (py_print_frame): Ditto.
12747 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
12748 New arg extlang. Update to use enum ext_lang_bt_status.
12749
12750 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
12751 finish_python_initialization. Replace with call to
12752 finish_ext_lang_initialization.
12753
12754 * typeprint.c (do_free_global_table): Update to call
12755 free_ext_lang_type_printers.
12756 (create_global_typedef_table): Update to call
12757 start_ext_lang_type_printers.
12758 (find_global_typedef): Update to call apply_ext_lang_type_printers.
12759 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
12760 (type_print_options): Change type of global_printers from "void *"
12761 to "struct ext_lang_type_printers *".
12762
12763 * value.c (preserve_values): Update to call preserve_ext_lang_values.
12764 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
12765 (gdbpy_preserve_values): Renamed from preserve_python_values.
12766 New arg extlang.
12767 (!HAVE_PYTHON, preserve_python_values): Delete.
12768
12769 * utils.c (quit_flag): Delete, moved to extension.c.
12770 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
12771 extension.c.
12772
12773 * eval.c: Delete #include "python/python.h".
12774 * main.c: Delete #include "python/python.h".
12775
12776 * defs.h: Update comment.
12777
6af79985
JB
127782014-02-06 Joel Brobecker <brobecker@adacore.com>
12779
12780 GDB 7.7 released.
12781
12c5175d
MK
127822014-02-05 Mark Kettenis <kettenis@gnu.org>
12783
12784 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
12785 defined.
12786
8dc5b319
YQ
127872014-02-05 Yao Qi <yao@codesourcery.com>
12788
12789 * remote.c (remote_pass_signals): Remove local 'buf' and use
12790 rs->buf.
12791 (remote_program_signals): Likewise.
12792
de7b2893
YQ
127932014-02-05 Yao Qi <yao@codesourcery.com>
12794
12795 * ctf.c: Include "inferior.h" and "gdbthread.h".
12796 (CTF_PID): A new macro.
12797 (ctf_open): Call inferior_appeared and add_thread_silent.
12798 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
12799 (ctf_thread_alive): New function.
12800 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
12801
66d032ac
YQ
128022014-02-05 Yao Qi <yao@codesourcery.com>
12803
12804 Revert this patch:
12805
12806 2013-05-24 Yao Qi <yao@codesourcery.com>
12807
12808 * tracepoint.c (TFILE_PID): Remove.
12809 (tfile_open): Don't add thread and inferior.
12810 (tfile_close): Don't set 'inferior_ptid'. Don't call
12811 exit_inferior_silent.
12812 (tfile_thread_alive): Remove.
12813 (init_tfile_ops): Don't set field 'to_thread_alive' of
12814 tfile_ops.
12815
f4ccffad
CE
128162014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
12817
12818 * remote.c (remote_start_remote): Call remote_check_symbols even
12819 if only symbol-file (not file) has been given.
12820
591a12a1
UW
128212014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12822
12823 * gdbarch.sh (skip_entrypoint): New callback.
12824 * gdbarch.c, gdbarch.h: Regenerate.
12825 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
12826 * infrun.c (fill_in_stop_func): Likewise.
12827 * ppc-linux-tdep.c: Include "elf/ppc64.h".
12828 (ppc_elfv2_elf_make_msymbol_special): New function.
12829 (ppc_elfv2_skip_entrypoint): Likewise.
12830 (ppc_linux_init_abi): Install them for ELFv2.
12831
cc0e89c5
UW
128322014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12833
12834 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
12835 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
12836 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
12837 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
12838 structures returned in GPRs.
12839
52f548e4
UW
128402014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12841
12842 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
12843 offset to the stack parameter list for the ELFv2 ABI.
12844
d4094b6a
UW
128452014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12846
12847 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
12848 set_gdbarch_convert_from_func_ptr_addr and
12849 set_gdbarch_elf_make_msymbol_special for ELFv1.
12850 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
12851 function descriptors on ELFv1.
12852 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
12853 set up r12 at function entry.
12854
cd453cd0
UW
128552014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12856
12857 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
12858 (struct gdbarch_tdep): New member elf_abi.
12859
12860 * rs6000-tdep.c: Include "elf/ppc64.h".
12861 (rs6000_gdbarch_init): Detect ELF ABI version.
12862
0ff3e01f
UW
128632014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12864
12865 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
12866 within a register pair holding a DFP 128-bit value on little-endian.
12867 (ppc64_sysv_abi_return_value_base): Likewise.
12868 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
12869 (dfp_pseudo_register_write): Likewise.
12870
5b757e5d
UW
128712014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12872
12873 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
12874 offset on little-endian when passing _Decimal32.
12875 (ppc64_sysv_abi_return_value_base): Likewise for return values.
12876
084ee545
UW
128772014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12878
12879 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
12880 of the overlapped FP register within the VSX register on little-
12881 endian platforms.
12882 (efpr_pseudo_register_write): Likewise.
12883
d63167af
UW
128842014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12885
12886 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
12887 offset on little-endian when passing small structures.
12888
e765b44c
UW
128892014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12890
12891 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
12892 (struct ppc64_sysv_argpos): New data structure.
12893 (ppc64_sysv_abi_push_float): Remove.
12894 (ppc64_sysv_abi_push_val): New function.
12895 (ppc64_sysv_abi_push_integer): Likewise.
12896 (ppc64_sysv_abi_push_freg): Likewise.
12897 (ppc64_sysv_abi_push_vreg): Likewise.
12898 (ppc64_sysv_abi_push_param): Likewise.
12899 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
12900 (ppc64_sysv_abi_return_value_base): New function.
12901 (ppc64_sysv_abi_return_value): Refactor to use it.
12902
36c24d95
UW
129032014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12904
12905 * NEWS: Document new target powerpc64le-*-linux*.
12906
26fd9228
MK
129072014-02-04 Mark Kettenis <kettenis@gnu.org>
12908
12909 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
12910 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
12911 core dumps.
12912 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
12913 register set used in ELF core dumps. Add floating-point register set.
12914
c5bb7362
KB
129152014-02-03 Kevin Buettner <kevinb@redhat.com>
12916
74228e77 12917 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
c5bb7362
KB
12918 dwarf2_to_gdb[] table using symbolic constants. Adjust
12919 penultimate entry from number representing the PC register
12920 to symbolic constant representing the MDR register. Add
12921 constant for the PC register to the end of the table.
12922
af09351e
MK
129232014-02-03 Mark Kettenis <kettenis@gnu.org>
12924
12925 * bsd-kvm.c: Include <sys/param.h>
12926
8507e05d
MK
129272014-02-03 Mark Kettenis <kettenis@gnu.org>
12928
12929 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
12930
ae56bfb8
JB
129312014-01-31 Joel Brobecker <brobecker@adacore.com>
12932
12933 * ada-lang.h (clear_ada_sym_cache): Delete.
12934
718ee4dc
UW
129352014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
12936
12937 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
12938
401e27fd
JM
129392014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
12940
12941 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
12942 the sigreturn register save area only if the syscall is
12943 sigreturn.
12944
a7c88acd
JB
129452014-01-29 Joel Brobecker <brobecker@adacore.com>
12946
12947 * valops.c (value_slice): Minor reformatting.
12948
fa0079ea
UW
129492014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
12950
12951 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
12952
c6044dd1
JB
129532014-01-28 Joel Brobecker <brobecker@adacore.com>
12954
12955 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
12956 New static globals.
12957 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
12958 (ada_ignore_descriptive_types_p): New static global.
12959 (find_parallel_type_by_descriptive_type): Return immediately
12960 if ada_ignore_descriptive_types_p is set.
12961 (_initialize_ada_language): Register new commands "maintenance
12962 set ada", "maintenance show ada", "maintenance set ada
12963 ignore-descriptive-types" and "maintenance show ada
12964 ignore-descriptive-types".
12965 * NEWS: Add entry for new "maint ada set/show
12966 ignore-descriptive-types" commands.
12967
568e808b
MM
129682014-01-27 Markus Metzger <markus.t.metzger@intel.com>
12969
12970 * record-btrace.c (record_btrace_close): Call btrace_teardown
12971 for all threads.
12972
467d141b
JB
129732014-01-27 Joel Brobecker <brobecker@adacore.com>
12974
12975 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
12976 "ui-out.h".
12977
fb151210
JB
129782014-01-27 Joel Brobecker <brobecker@adacore.com>
12979
12980 * ada-typeprint (type_is_full_subrange_of_target_type):
12981 New function.
12982 (print_range): Add parameter bounds_prefered_p. If not set,
12983 try printing range types using the name of their base type.
12984 (print_range_type): Add parameter bounds_prefered_p.
12985 Use it in call to print_range.
12986 (print_array_type, ada_print_type): Update calls to print_range
12987 and print_range_type.
12988
aba02109
JB
129892014-01-27 Joel Brobecker <brobecker@adacore.com>
12990
12991 * ada-typeprint.c (print_array_type, print_choices, print_range)
12992 (print_range_bound, print_dynamic_range_bound, print_range_type):
12993 Remove declaration.
12994
e62e21fd
JB
129952014-01-27 Joel Brobecker <brobecker@adacore.com>
12996
12997 * ada-typeprint.c (print_range): Add missing empty line
12998 after local declaration.
12999
859cf5d1
JB
130002014-01-27 Joel Brobecker <brobecker@adacore.com>
13001
13002 * ada-valprint.c (print_optional_low_bound): Get index_type's
13003 target type for as long as it is a TYPE_CODE_RANGE.
13004
25790f6f
JB
130052014-01-27 Joel Brobecker <brobecker@adacore.com>
13006
13007 * procfs.c (procfs_make_note_section): Remove assertion and
13008 associated comment.
13009
6b6aa828
YQ
130102014-01-24 Yao Qi <yao@codesourcery.com>
13011
13012 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
13013 * corelow.c (get_core_siginfo): Likewise.
13014
5d6df423
YQ
130152014-01-24 Yao Qi <yao@codesourcery.com>
13016
13017 * remote.c (remote_write_bytes_aux): Change type of 'len' to
13018 ULONGEST. Don't check 'len' is negative.
13019 (remote_write_bytes): Change type of 'len' to ULONGEST.
13020
83b645b8
TT
130212014-01-23 Tom Tromey <tromey@redhat.com>
13022
13023 PR python/16485:
13024 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
13025 Handle exception from frame.block.
13026 (FrameVars.fetch_frame_locals): Likewise.
13027
0740f8d8
TT
130282014-01-23 Tom Tromey <tromey@redhat.com>
13029
13030 PR python/16487:
13031 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
13032 on a NULL pointer. Move "goto error" to correct place.
13033
21909fa1
TT
130342014-01-23 Tom Tromey <tromey@redhat.com>
13035
13036 PR python/16491:
13037 * python/py-framefilter.c (apply_frame_filter): Call
13038 ensure_python_env after computing gdbarch.
13039
17fde6d0
YQ
130402014-01-23 Yao Qi <yao@codesourcery.com>
13041
13042 * target.c (raw_memory_xfer_partial): Change argument type
13043 from void * to gdb_byte *.
13044 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
13045
87ce2a04
DE
130462014-01-22 Doug Evans <dje@google.com>
13047
13048 New gdbserver option --debug-format=timestamp.
13049 * NEWS: Mention it.
13050
237b092b
AA
130512014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
13052
13053 * syscalls/s390x-linux.xml: New file.
13054 * syscalls/s390-linux.xml: New file.
13055 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
13056 (XML_SYSCALL_FILENAME_S390X): Likewise.
13057 (op_svc): New enum value for SVC opcode.
13058 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
13059 (s390_linux_get_syscall_number): New function.
13060 (s390_gdbarch_init): Register '*get_syscall_number' and the
13061 syscall xml file name.
13062 * data-directory/Makefile.in (SYSCALLS_FILES): Add
13063 "s390-linux.xml" and "s390x-linux.xml".
13064 * NEWS: Announce new feature.
13065
54bff650
BS
130662014-01-22 Baruch Siach <baruch@tkos.co.il>
13067
13068 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
13069
14e361d7
PA
130702014-01-22 Pedro Alves <palves@redhat.com>
13071
13072 * xtensa-config.c: Include defs.h.
13073
46bbb3ed
JB
130742014-01-22 Joel Brobecker <brobecker@adacore.com>
13075
13076 * common/common-utils.h: Add "ARI:" comment beside __func__
13077 reference.
13078
3a80edfc
JB
130792014-01-22 Joel Brobecker <brobecker@adacore.com>
13080
13081 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
13082 documentation a bit.
13083
4869db5e
RM
130842014-01-21 Roland McGrath <mcgrathr@google.com>
13085
13086 * configure.ac: Call AM_PROG_INSTALL_STRIP.
13087 * configure: Regenerate.
13088 * aclocal.m4: Regenerate.
13089 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
13090 New substituted variables.
13091 (install-strip): New target.
13092 (INSTALL_SCRIPT): New substituted variable.
13093 (FLAGS_TO_PASS): Add it.
13094 (install-only): Use $(INSTALL_SCRIPT) rather than
13095 $(INSTALL_PROGRAM) for gcore.
13096
9ea4267d
TT
130972014-01-20 Tom Tromey <tromey@redhat.com>
13098
13099 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
13100 together.
13101
1f2bdf09
TT
131022014-01-20 Tom Tromey <tromey@redhat.com>
13103
13104 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
13105 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
13106 (deprecated_cmd_warning, complete_on_cmdlist): Update.
13107 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
13108 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
13109 (struct cmd_list_element) <flags>: Remove.
13110 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
13111 doc_allocated>: New fields.
13112 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
13113 bitfields.
13114 * maint.c (maintenance_do_deprecate): Update.
13115 * top.c (execute_command): Update.
13116
e671835b
BS
131172014-01-20 Baruch Siach <baruch@tkos.co.il>
13118
13119 * xtensa-linux-nat.c: Include asm/ptrace.h.
13120
50367cd2
IB
131212014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13122
13123 * Makefile.in (SFILES): Add d-support.c.
13124 (COMMON_OBS): Add d-support.o.
13125 * d-lang.h (d_parse_symbol): Add comment, now defined in
13126 d-support.c.
13127 * d-lang.c (parse_call_convention)
13128 (parse_attributes, parse_function_types)
13129 (parse_function_args, parse_type, parse_identifier)
13130 (call_convention_p, d_parse_symbol): Move functions to ...
13131 * d-support.c: ... New file.
13132
ec9f644a
IB
131332014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13134
13135 * d-lang.h (d_parse_symbol): Add declaration.
13136 * d-lang.c (extract_identifiers)
13137 (extract_type_info): Remove functions.
13138 (parse_call_convention, parse_attributes)
13139 (parse_function_types, parse_function_args)
13140 (parse_type, parse_identifier, call_convention_p)
13141 (d_parse_symbol): New functions.
13142 (d_demangle): Use d_parse_symbol to demangle D symbols.
13143
94b1b47e
IB
131442014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13145
13146 * d-lang.h (struct builtin_d_type): New data type.
13147 (builtin_d_type): Add declaration.
13148 * d-lang.c (d_language_arch_info, build_d_types)
13149 (builtin_d_type): New functions.
13150 (enum d_primitive_types): New data type.
13151 (d_language_defn): Change c_language_arch_info to
13152 d_language_arch_info.
13153 (d_type_data): New static variable.
13154 (_initialize_d_language): Initialize d_type_data.
13155
63778547
IB
131562014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13157
13158 * d-lang.h (d_main_name): Add declaration.
13159 * d-lang.c (d_main_name): New function.
13160 * symtab.c (find_main_name): Add call to d_main_name.
13161
3271ba66
IB
131622014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13163
13164 * d-lang.c (d_language_defn): Change macro_expansion_c to
13165 macro_expansion_no.
13166
d36b3012
IB
131672014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13168
13169 * MAINTAINERS: Add myself as a write-after-approval maintainer.
13170
c90a6fb7
SDJ
131712014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
13172
13173 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
13174 gdb_exception" declaration.
13175 * remote.c (getpkt_or_notif_sane): Likewise.
13176
749234e5
DE
131772014-01-17 Doug Evans <dje@google.com>
13178
13179 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
13180 function, contents of dirnames_to_char_ptr_vec_append moved here.
13181 (delim_string_to_char_ptr_vec): New function.
13182 (dirnames_to_char_ptr_vec_append): Rewrite.
13183 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
13184
df049a58
DE
131852014-01-17 Doug Evans <dje@google.com>
13186
13187 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
13188 and moved here ...
13189 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
13190 #include "common-utils.h".
13191 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
13192 * common/vec.h (VEC_ASSERT_PASS): Update.
13193 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
13194 (MACH_CHECK_ERROR): Update.
13195
69f97648
SM
131962014-01-17 Simon Marchi <simon.marchi@ericsson.com>
13197
13198 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
13199 comments.
13200 * gdbarch.h: Regenerate.
13201
98b1cfdc
TT
132022014-01-16 Tom Tromey <tromey@redhat.com>
13203
13204 * value.c (struct value) <regnum>: Move earlier.
13205
77a19445
TT
132062014-01-16 Tom Tromey <tromey@redhat.com>
13207
13208 * remote.c (extended_remote_create_inferior): Rename from
13209 extended_remote_create_inferior_1. Add "ops" argument. Remove
13210 old implementation.
13211
62261490
PA
132122014-01-16 Pedro Alves <palves@redhat.com>
13213
13214 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
13215 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
13216 the backchain.
13217
4d65956b
DE
132182014-01-16 Doug Evans <dje@google.com>
13219
13220 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
13221
52834460
MM
132222014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13223
13224 * btrace.h (btrace_thread_flag): New.
13225 (struct btrace_thread_info) <flags>: New.
13226 * record-btrace.c (record_btrace_resume_thread)
13227 (record_btrace_find_thread_to_move, btrace_step_no_history)
13228 (btrace_step_stopped, record_btrace_start_replaying)
13229 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
13230 (record_btrace_find_resume_thread): New.
13231 (record_btrace_resume, record_btrace_wait): Extend.
13232 (record_btrace_can_execute_reverse): New.
13233 (record_btrace_open): Fail in non-stop mode.
13234 (record_btrace_set_replay): Split into this, ...
13235 (record_btrace_stop_replaying): ... this, ...
13236 (record_btrace_clear_histories): ... and this.
13237 (init_record_btrace_ops): Init to_can_execute_reverse.
13238 * NEWS: Announce it.
13239
118e6252
MM
132402014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13241
13242 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
13243 (forward_target_decr_pc_after_break)
13244 (target_decr_pc_after_break): New.
13245 * target.c (forward_target_decr_pc_after_break)
13246 (target_decr_pc_after_break): New.
13247 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
13248 instead of gdbarch_decr_pc_after_break.
13249 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
13250 instead of gdbarch_decr_pc_after_break.
13251 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
13252 instead of gdbarch_decr_pc_after_break.
13253 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
13254 instead of gdbarch_decr_pc_after_break.
13255 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
13256 instead of gdbarch_decr_pc_after_break.
13257 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
13258 instead of gdbarch_decr_pc_after_break.
13259
6e07b1d2
MM
132602014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13261
13262 * btrace.c: Include regcache.h.
13263 (btrace_add_pc): New.
13264 (btrace_enable): Call btrace_add_pc.
13265 (btrace_is_empty): New.
13266 * btrace.h (btrace_is_empty): New.
13267 * record-btrace.c (require_btrace, record_btrace_info): Call
13268 btrace_is_empty.
13269
969c39fb
MM
132702014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13271
13272 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
13273 Support delta reads.
13274 (linux_disable_btrace): Change return type.
13275 * common/linux-btrace.h (linux_read_btrace): Change parameters
13276 and return type to allow error reporting. Update users.
13277 (linux_disable_btrace): Change return type. Update users.
13278 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
13279 New.
13280 (btrace_error): New.
13281 (btrace_block) <begin>: Comment on BEGIN == 0.
13282 * btrace.c (btrace_compute_ftrace): Start from the end of
13283 the current trace.
13284 (btrace_stitch_trace, btrace_clear_history): New.
13285 (btrace_fetch): Read delta trace, return if replaying.
13286 (btrace_clear): Move clear history code to btrace_clear_history.
13287 (parse_xml_btrace): Throw an error if parsing failed.
13288 * target.h (struct target_ops) <to_read_btrace>: Change parameters
13289 and return type to allow error reporting.
13290 (target_read_btrace): Change parameters and return type to allow
13291 error reporting.
13292 * target.c (target_read_btrace): Update.
13293 * remote.c (remote_read_btrace): Support delta reads. Pass
13294 errors on.
13295 * NEWS: Announce it.
13296
0b722aec
MM
132972014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13298
13299 * record.h (record_btrace_frame_unwind)
13300 (record_btrace_tailcall_frame_unwind): New declarations.
13301 * dwarf2-frame: Include record.h
13302 (dwarf2_frame_cfa): Throw an error for btrace frames.
13303 * record-btrace.c: Include hashtab.h.
13304 (btrace_get_bfun_name): New.
13305 (btrace_call_history): Call btrace_get_bfun_name.
13306 (struct btrace_frame_cache): New.
13307 (bfcache): New.
13308 (bfcache_hash, bfcache_eq, bfcache_new): New.
13309 (btrace_get_frame_function): New.
13310 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
13311 (record_btrace_frame_this_id): Compute own id.
13312 (record_btrace_frame_prev_register): Provide PC, throw_error
13313 for all other registers.
13314 (record_btrace_frame_sniffer): Detect btrace frames.
13315 (record_btrace_tailcall_frame_sniffer): New.
13316 (record_btrace_frame_dealloc_cache): New.
13317 (record_btrace_frame_unwind): Add new functions.
13318 (record_btrace_tailcall_frame_unwind): New.
13319 (_initialize_record_btrace): Allocate cache.
13320 * btrace.c (btrace_clear): Call reinit_frame_cache.
13321 * NEWS: Announce it.
13322
066ce621
MM
133232014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13324
13325 * record-btrace.c (record_btrace_set_replay)
13326 (record_btrace_goto_begin, record_btrace_goto_end)
13327 (record_btrace_goto): New.
13328 (init_record_btrace_ops): Initialize them.
13329 * NEWS: Announce it.
13330
e2887aa3
MM
133312014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13332
13333 * record-btrace.c (record_btrace_find_new_threads)
13334 (record_btrace_thread_alive): New.
13335 (init_record_btrace_ops): Initialize to_find_new_threads and
13336 to_thread_alive.
13337
b2f4cfde
MM
133382014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13339
13340 * record-btrace.c (record_btrace_resume): New.
13341 (record_btrace_wait): New.
13342 (init_record_btrace_ops): Initialize to_wait and to_resume.
13343
633785ff
MM
133442014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13345
13346 * record-btrace.c (record_btrace_xfer_partial)
13347 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
13348 (record_btrace_allow_memory_access): New.
13349 (init_record_btrace_ops): Initialize new methods.
13350 * target.c (raw_memory_xfer_partial): Bail out if target reports
13351 that this memory is not available.
13352
3db08215
MM
133532014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13354
13355 * target.h (target_ops) <to_insert_breakpoint>
13356 <to_remove_breakpoint>: Add target_ops parameter.
13357 (forward_target_insert_breakpoint): New.
13358 (forward_target_remove_breakpoint): New.
13359 (memory_remove_breakpoint, memory_insert_breakpoint):
13360 Add target_ops parameter.
13361 * target.c (target_insert_breakpoint): Split into this and ...
13362 (forward_target_insert_breakpoint): ... this.
13363 (target_remove_breakpoint): Split into this and ...
13364 (forward_target_remove_breakpoint): ... this.
13365 (debug_to_insert_breakpoint): Add target_ops parameter.
13366 Call forward_target_insert_breakpoint.
13367 (debug_to_remove_breakpoint): Add target_ops parameter.
13368 Call forward_target_remove_breakpoint.
13369 (update_current_target): Do not inherit or default to_insert_breakpoint
13370 and to_remove_breakpoint.
13371 * corelow.c (ignore): Add target_ops parameter.
13372 * exec.c (ignore): Add target_ops parameter.
13373 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
13374 Add target_ops parameter.
13375 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
13376 Add target_ops parameter.
13377 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
13378 Add target_ops parameter.
13379 * record-full.c (record_full_beneath_to_insert_breakpoint)
13380 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
13381 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
13382 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
13383 (record_full_core_remove_breakpoint): Add target_ops parameter.
13384 Update users.
13385 (record_full_beneath_to_insert_breakpoint_ops)
13386 (record_full_beneath_to_remove_breakpoint_ops)
13387 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
13388 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
13389 tmp_to_remove_breakpoint_ops,
13390 record_full_beneath_to_insert_breakpoint_ops, and
13391 record_full_beneath_to_remove_breakpoint_ops.
13392 * remote-m32r-sdi.c (m32r_insert_breakpoint)
13393 (m32r_remove_breakpoint): Add target_ops parameter.
13394 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
13395 Add target_ops parameter.
13396 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
13397 Add target_ops parameter.
13398
cecac1ab
MM
133992014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13400 Markus Metzger <markus.t.metzger@intel.com>
13401
13402 * record-btrace.c: Include frame-unwind.h.
13403 (record_btrace_frame_unwind_stop_reason)
13404 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
13405 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
13406 New.
13407 (init_record_btrace_ops): Install it.
13408
824344ca
MM
134092014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13410
13411 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
13412 get_prev_frame_1.
13413
32261e52
MM
134142014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13415
13416 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
13417 earlier.
13418
ea001bdc
MM
134192014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13420
13421 * frame-unwind.c: Include target.h.
13422 (frame_unwind_try_unwinder): New function with code from ...
13423 (frame_unwind_find_by_frame): ... here. New variable
13424 unwinder_from_target, call also target_get_unwinder)
13425 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
13426 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
13427 * target.h (struct target_ops): New fields to_get_unwinder and
13428 to_get_tailcall_unwinder.
13429 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
13430
1f3ef581
MM
134312014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13432
13433 * record-btrace.c (record_btrace_fetch_registers)
13434 (record_btrace_store_registers)
13435 (record_btrace_to_prepare_to_store): New.
13436 (init_record_btrace_ops): Add the above.
13437
f32dbf8c
MM
134382014-01-16 Tom Tromey <tromey@redhat.com>
13439
13440 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
13441 * target.h (struct target_ops) <to_prepare_to_store>: Add
13442 argument.
13443 (target_prepare_to_store): Add argument.
13444 * target.c (debug_to_prepare_to_store): Add argument.
13445 (update_current_target): Update.
13446 * remote.c (remote_prepare_to_store): Add 'self' argument.
13447 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
13448 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
13449 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
13450 * record-full.c (record_full_core_prepare_to_store): Add 'self'
13451 argument.
13452 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
13453 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
13454 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
13455 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
13456 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
13457
07bbe694
MM
134582014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13459
13460 * btrace.h (replay) <replay>: New.
13461 (btrace_is_replaying): New.
13462 * btrace.c (btrace_clear): Free replay iterator.
13463 (btrace_is_replaying): New.
13464 * record-btrace.c (record_btrace_is_replaying): New.
13465 (record_btrace_info): Print insn number if replaying.
13466 (record_btrace_insn_history): Start at replay position.
13467 (record_btrace_call_history): Start at replay position.
13468 (init_record_btrace_ops): Init to_record_is_replaying.
13469
0688d04e
MM
134702014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13471
13472 * record-btrace.c (record_btrace_insn_history_range): Include
13473 end.
13474 (record_btrace_insn_history_from): Adjust range.
13475 (record_btrace_call_history_range): Include
13476 end.
13477 (record_btrace_call_history_from): Adjust range.
13478 * NEWS: Announce changes.
13479
8710b709
MM
134802014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13481
13482 * record.h (enum record_print_flag)
13483 <record_print_indent_calls>: New.
13484 * record.c (get_call_history_modifiers): Recognize /c modifier.
13485 (_initialize_record): Document /c modifier.
13486 * record-btrace.c (btrace_call_history): Add btinfo parameter.
13487 Reorder fields. Optionally indent the function name. Update
13488 all users.
13489 * NEWS: Announce changes.
13490
d0fa7535
MM
134912014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13492
13493 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
13494
5de9129b
MM
134952014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13496
13497 * btrace.c (ftrace_new_function): Start counting at one.
13498 * record-btrace.c (record_btrace_info): Adjust number of calls
13499 and insns.
13500 * NEWS: Announce it.
13501
7acbe133
MM
135022014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13503
13504 * record-btrace.c (btrace_call_history_insn_range): Print
13505 insn range as [begin, end].
13506
23a7fe75
MM
135072014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13508
13509 * btrace.h (struct btrace_func_link): New.
13510 (enum btrace_function_flag): New.
13511 (struct btrace_inst): Rename to ...
13512 (struct btrace_insn): ...this. Update all users.
13513 (struct btrace_func) <ibegin, iend>: Remove.
13514 (struct btrace_func_link): New.
13515 (struct btrace_func): Rename to ...
13516 (struct btrace_function): ...this. Update all users.
13517 (struct btrace_function) <segment, flow, up, insn, insn_offset)
13518 (number, level, flags>: New.
13519 (struct btrace_insn_iterator): Rename to ...
13520 (struct btrace_insn_history): ...this.
13521 Update all users.
13522 (struct btrace_insn_iterator, btrace_call_iterator): New.
13523 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
13524 (struct btrace_target_info) <begin, end, level>
13525 <insn_history, call_history>: New.
13526 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13527 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13528 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13529 (btrace_call_number, btrace_call_begin, btrace_call_end)
13530 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13531 (btrace_find_function_by_number, btrace_set_insn_history)
13532 (btrace_set_call_history): New.
13533 * btrace.c (btrace_init_insn_iterator)
13534 (btrace_init_func_iterator, compute_itrace): Remove.
13535 (ftrace_print_function_name, ftrace_print_filename)
13536 (ftrace_skip_file): Change
13537 parameter to const.
13538 (ftrace_init_func): Remove.
13539 (ftrace_debug): Use new btrace_function fields.
13540 (ftrace_function_switched): Also consider gaining and
13541 losing symbol information).
13542 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
13543 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
13544 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
13545 New.
13546 (ftrace_new_function): Move. Remove debug print.
13547 (ftrace_update_lines, ftrace_update_insns): New.
13548 (ftrace_update_function): Check for call, ret, and jump.
13549 (compute_ftrace): Renamed to ...
13550 (btrace_compute_ftrace): ...this. Rewritten to compute call
13551 stack.
13552 (btrace_fetch, btrace_clear): Updated.
13553 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13554 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13555 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13556 (btrace_call_number, btrace_call_begin, btrace_call_end)
13557 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13558 (btrace_find_function_by_number, btrace_set_insn_history)
13559 (btrace_set_call_history): New.
13560 * record-btrace.c (require_btrace): Use new btrace thread
13561 info fields.
13562 (record_btrace_info, btrace_insn_history)
13563 (record_btrace_insn_history, record_btrace_insn_history_range):
13564 Use new btrace thread info fields and new iterator.
13565 (btrace_func_history_src_line): Rename to ...
13566 (btrace_call_history_src_line): ...this. Use new btrace
13567 thread info fields.
13568 (btrace_func_history): Rename to ...
13569 (btrace_call_history): ...this. Use new btrace thread info
13570 fields and new iterator.
13571 (record_btrace_call_history, record_btrace_call_history_range):
13572 Use new btrace thread info fields and new iterator.
13573
8372a7cb
MM
135742014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13575
13576 * frame.h (frame_id_build_unavailable_stack_special): New.
13577 * frame.c (frame_id_build_unavailable_stack_special): New.
13578
c2170eef
MM
135792014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13580
13581 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
13582 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
13583 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
13584 to gdbarch.
13585 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
13586 (i386_insn_is_jump, i386_jmp_p): New.
13587 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
13588 insn_is_jump to gdbarch.
13589 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
13590 * gdbarch.h: Regenerated.
13591 * gdbarch.c: Regenerated.
13592 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
13593 (default_insn_is_jump): New.
13594 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
13595 (default_insn_is_jump): New.
13596
864089d2
MM
135972014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13598
13599 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
13600 Change to ...
13601 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
13602 (btrace_read_type) <btrace_read_new>: Change to ...
13603 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
13604
ed9edfb5
MM
136052014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13606
13607 * common/linux-btrace.c (linux_read_btrace): Free trace from
13608 previous iteration.
13609
fbcbc3fd
DE
136102014-01-15 Doug Evans <dje@google.com>
13611
13612 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
13613 uint32_t.
13614
3d548a53
TT
136152014-01-15 Tom Tromey <tromey@redhat.com>
13616
13617 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
13618 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
13619 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
13620 (set_objfile_main_name): New function.
13621 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
13622 language_of_main>: New fields.
13623 (set_objfile_main_name): Declare.
13624 * symtab.c (find_main_name): Loop over objfiles to find the main
13625 name and language.
13626 (set_main_name): Now static.
13627 (get_main_info): Add comment.
13628 * symtab.h (set_main_name): Don't declare.
13629
32ac0d11
TT
136302014-01-15 Tom Tromey <tromey@redhat.com>
13631
13632 * symtab.c (main_progspace_key): New global.
13633 (struct main_info): New.
13634 (name_of_main, language_of_main): Remove.
13635 (get_main_info, main_info_cleanup): New function.
13636 (set_main_name, main_name, main_language): Use get_main_info.
13637 (_initialize_symtab): Initialize main_progspace_key.
13638
9e6c82ad
TT
136392014-01-15 Tom Tromey <tromey@redhat.com>
13640
13641 * dbxread.c (process_one_symbol): Update.
13642 * dwarf2read.c (read_partial_die): Update.
13643 * symfile.c (set_initial_language): Call main_language.
13644 * symtab.c (language_of_main): Now static.
13645 (set_main_name): Add 'lang' parameter.
13646 (find_main_name): Update.
13647 (main_language): New function.
13648 (symtab_observer_executable_changed): Update.
13649 * symtab.h (set_main_name): Update.
13650 (language_of_main): Remove.
13651 (main_language): Declare.
13652
6ef55de7
TT
136532014-01-15 Tom Tromey <tromey@redhat.com>
13654
13655 * symfile.c (init_entry_point_info): Use new "initialized" field.
13656 Update.
13657 * objfiles.h (struct entry_point) <initialized>: New field.
13658 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
13659 (struct objfile) <ei>: ...here. Remove.
13660 * objfiles.c (entry_point_address_query): Update.
13661
53eddfa6
TT
136622014-01-15 Tom Tromey <tromey@redhat.com>
13663
13664 * objfiles.c (entry_point_address_query): Relocate entry point
13665 address.
13666 (objfile_relocate1): Do not relocate entry point address.
13667 * objfiles.h (struct entry_info) <entry_point>: Update comment.
13668 <the_bfd_section_index>: New field.
13669 * symfile.c (init_entry_point_info): Find the entry point's
13670 section.
13671
d56e56aa
TT
136722014-01-15 Tom Tromey <tromey@redhat.com>
13673
13674 * solib-frv.c (enable_break): Use entry_point_address_query.
13675
33a97bbe
OJ
136762014-01-15 Omair Javaid <omair.javaid@linaro.org>
13677
13678 * NEWS: Add note on improved process record-replay on
13679 arm*-linux* targets.
13680
c6ec2b30
OJ
136812014-01-15 Omair Javaid <omair.javaid@linaro.org>
13682
13683 * arm-tdep.c (enum arm_record_result): New enum.
13684 (arm_record_unsupported_insn): New function.
13685 (arm_record_coproc_data_proc): Removed.
13686 (thumb2_record_ld_st_multiple): New function.
13687 (thumb2_record_ld_st_dual_ex_tbb): New function.
13688 (thumb2_record_data_proc_sreg_mimm): New function.
13689 (thumb2_record_ps_dest_generic): New function.
13690 (thumb2_record_branch_misc_cntrl): New function.
13691 (thumb2_record_str_single_data): New function.
13692 (thumb2_record_ld_mem_hints): New function.
13693 (thumb2_record_ld_word): New function.
13694 (thumb2_record_lmul_lmla_div): New function.
13695 (thumb2_record_decode_insn_handler): New function.
13696 (decode_insn): Add thumb32 instruction handlers.
13697
97dfe206
OJ
136982014-01-15 Omair Javaid <omair.javaid@linaro.org>
13699
13700 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
13701 (struct arm_linux_record_tdep): Declare.
13702 (arm_canonicalize_syscall): New function.
13703 (arm_all_but_pc_registers_record): New function.
13704 (arm_linux_syscall_record): New function.
13705 (arm_linux_init_abi): Add syscall recording constructs.
13706 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
13707 decoding. (arm_record_coproc_data_proc): Update arm syscall
13708 decoding.
13709 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
13710 <arm_syscall_record>: New field.
13711 * configure.tgt (arm*-*-linux*): Add linux-record.o to
13712 gdb_target_obs.
13713
9904a494
OJ
137142014-01-15 Omair Javaid <omair.javaid@linaro.org>
13715
13716 * arm-tdep.c (thumb_record_misc): Update to use sp as base
13717 register for push instruction recording.
13718
f969241e
OJ
137192014-01-15 Omair Javaid <omair.javaid@linaro.org>
13720
13721 * arm-tdep.c (thumb_record_misc): Update to correct logical
13722 error while recording ldm, ldmia and pop instructions.
13723
bfbbec00
OJ
137242014-01-15 Omair Javaid <omair.javaid@linaro.org>
13725
13726 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
13727
e40adcc9
PA
137282014-01-15 Pedro Alves <palves@redhat.com>
13729
13730 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
13731 (go32_resume, go32_fetch_registers, store_register)
13732 (go32_store_registers, go32_prepare_to_store)
13733 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
13734 (go32_create_inferior, go32_can_run, go32_terminal_init)
13735 (go32_terminal_inferior, go32_terminal_ours): Delete forward
13736 declarations.
13737
b0a16e66
TT
137382014-01-15 Tom Tromey <tromey@redhat.com>
13739
13740 * target.h (async_callback_ftype): New typedef.
13741 (struct target_ops) <to_async>: Use it.
13742
bf7105a4
JB
137432014-01-15 Joel Brobecker <brobecker@adacore.com>
13744
13745 * python/py-value.c (get_field_type): Remove unnecessary curly
13746 braces for single-statement if block.
13747
a8f35c2e
JB
137482014-01-15 Joel Brobecker <brobecker@adacore.com>
13749
13750 * python/py-type.c (convert_field): Add missing empty line
13751 after declarations.
13752
bb4142cf
DE
137532014-01-14 Doug Evans <dje@google.com>
13754
13755 * symfile.h (expand_symtabs_matching): Renamed from
13756 expand_partial_symbol_names. Update prototype.
13757 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
13758 * symfile.c (expand_symtabs_matching): Renamed from
13759 expand_partial_symbol_names. New args file_matcher, kind.
13760 Rename arg fun to symbol_matcher.
13761 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
13762 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
13763 ada_expand_partial_symbol_name.
13764 (ada_make_symbol_completion_list): Update to call
13765 expand_symtabs_matching.
13766 (ada_add_global_exceptions): Call expand_symtabs_matching.
13767 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
13768 call map_symbol_filenames.
13769 * symtab.c (sources_info): Update to call map_symbol_filenames.
13770 (search_symbols): Call expand_symtabs_matching.
13771 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
13772 (default_make_symbol_completion_list_break_on): Update to call
13773 expand_symtabs_matching.
13774 (make_source_files_completion_list): Update to call
13775 map_symbol_filenames.
13776
206f2a57
DE
137772014-01-14 Doug Evans <dje@google.com>
13778
13779 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
13780 (expand_symtabs_symbol_matcher_ftype): New typedef.
13781 (quick_symbol_functions.expand_symtabs_matching): Update to use.
13782 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13783 * symfile.c (expand_partial_symbol_names): Update to use
13784 expand_symtabs_symbol_matcher_ftype.
13785 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
13786 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13787 Arg name_matcher renamed to symbol_matcher.
13788 * psymtab.c (recursively_search_psymtabs): Update to use
13789 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
13790 sym_matcher.
13791 (expand_symtabs_matching_via_partial): Update to use
13792 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13793 Arg name_matcher renamed to symbol_matcher.
13794
540c2971
DE
137952014-01-14 Doug Evans <dje@google.com>
13796
13797 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
13798 (map_partial_symbol_filenames): Ditto.
13799 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
13800 (map_partial_symbol_filenames): Ditto.
13801 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
13802 (map_partial_symbol_filenames): Ditto.
13803 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
13804 (map_partial_symbol_filenames): Ditto.
13805 * symtab.c: Delete #include "psymtab.h".
13806
8213266a
PA
138072014-01-14 Pedro Alves <palves@redhat.com>
13808 Tom Tromey <tromey@redhat.com>
13809
13810 * infrun.c (use_displaced_stepping): Use find_record_target
13811 instead of RECORD_IS_USED.
13812 (adjust_pc_after_break): Use record_full_is_used instead of
13813 RECORD_IS_USED.
13814 * record-btrace.c (record_btrace_open): Call record_preopen
13815 instead of checking RECORD_IS_USED.
13816 * record-full.c (record_full_shortname)
13817 (record_full_core_shortname): New globals.
13818 (record_full_is_used): New function.
13819 (find_full_open): Call record_preopen instead of checking
13820 RECORD_IS_USED.
13821 (init_record_full_ops): Set the target's shortname to
13822 record_full_shortname.
13823 (init_record_full_core_ops): Set the target's shortname to
13824 record_full_core_shortname.
13825 * record-full.h (record_full_is_used): Declare.
13826 * record.c (find_record_target): Make extern.
13827 (record_preopen): New function.
13828 * record.h (RECORD_IS_USED): Delete macro.
13829 (find_record_target, record_preopen): Declare functions.
13830
7ec1862d
YQ
138312014-01-14 Yao Qi <yao@codesourcery.com>
13832
13833 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
13834 'len''s type to ULONGEST.
13835 (core_xfer_shared_libraries_aix): Likewise.
13836 * gdbarch.c, gdbarch.h: Regenerated.
13837 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
13838 Change type of 'len' to ULONGEST.
13839 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13840 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
13841
dea80a27
YQ
138422014-01-14 Yao Qi <yao@codesourcery.com>
13843
13844 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
13845 type of 'len' to ULONGEST.
13846 (linux_xfer_osdata_processgroups): Likewise.
13847 (linux_xfer_osdata_threads): Likewise.
13848 (linux_xfer_osdata_fds): Likewise.
13849 (linux_xfer_osdata_isockets): Likewise.
13850 (linux_xfer_osdata_shm): Likewise.
13851 (linux_xfer_osdata_sem): Likewise.
13852 (linux_xfer_osdata_msg): Likewise.
13853 (linux_common_xfer_osdata): Likewise.
13854 (struct osdata_type) <getter>: Likewise.
13855 * common/linux-osdata.h (linux_common_xfer_osdata): Update
13856 the declaration.
13857
b55e14c7
YQ
138582014-01-14 Yao Qi <yao@codesourcery.com>
13859
13860 * target.h (target_xfer_partial_ftype): Update.
13861 (struct target_ops) <to_xfer_partial>: Change 'len' type to
13862 ULONGEST.
13863 * aix-thread.c (aix_thread_xfer_partial): Change type of
13864 argument 'len' to ULONGEST.
13865 * auxv.c (procfs_xfer_auxv): Likewise.
13866 (ld_so_xfer_auxv): Likewise.
13867 (memory_xfer_auxv): Likewise.
13868 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13869 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13870 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
13871 * corelow.c (core_xfer_partial): Likewise.
13872 * ctf.c (ctf_xfer_partial): Likewise.
13873 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
13874 '%u'.
13875 (darwin_read_dyld_info): Likewise.
13876 (darwin_xfer_partial): Likewise.
13877 * exec.c (section_table_xfer_memory_partial): Likewise.
13878 (exec_xfer_partial): Likewise.
13879 * exec.h (section_table_xfer_memory_partial): Update
13880 declaration.
13881 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
13882 instead of plongest.
13883 (gnu_xfer_partial): Likewise.
13884 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
13885 (ia64_hpux_xfer_solib_got): Likewise.
13886 (ia64_hpux_xfer_partial): Likewise.
13887 * ia64-linux-nat.c (ia64_linux_xfer_partial):
13888 * inf-ptrace.c (inf_ptrace_xfer_partial):
13889 * inf-ttrace.c (inf_ttrace_xfer_partial):
13890 * linux-nat.c (linux_xfer_siginfo): Likewise.
13891 (linux_nat_xfer_partial): Likewise.
13892 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
13893 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
13894 * monitor.c (monitor_xfer_memory): Likewise.
13895 (monitor_xfer_partial): Likewise.
13896 * procfs.c (procfs_xfer_partial): Likewise.
13897 * record-full.c (record_full_xfer_partial): Likewise.
13898 (record_full_core_xfer_partial): Likewise.
13899 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
13900 instead of plongest.
13901 (gdbsim_xfer_partial): Likewise.
13902 * remote.c (remote_xfer_partial): Likewise.
13903 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13904 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
13905 declaration.
13906 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13907 (rs6000_xfer_shared_libraries): Likewise.
13908 * sol-thread.c (sol_thread_xfer_partial): Likewise.
13909 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13910 (sparc_xfer_partial): Likewise.
13911 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13912 (spu_xfer_partial): Likewise.
13913 * spu-multiarch.c (spu_xfer_partial): Likewise.
13914 * target.c (target_read_live_memory): Likewise.
13915 (memory_xfer_live_readonly_partial): Likewise.
13916 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
13917 (target_xfer_partial, default_xfer_partial): Likewise.
13918 (current_xfer_partial): Likewise.
13919 * tracepoint.c (tfile_xfer_partial): Likewise.
13920 * windows-nat.c (windows_xfer_memory): Likewise. Call
13921 pulongest instead of plongest.
13922 (windows_xfer_partial): Likewise.
13923 (windows_xfer_shared_libraries): Likewise.
13924
05804640
YQ
139252014-01-14 Yao Qi <yao@codesourcery.com>
13926
13927 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
13928 target_xfer_partial_ftype.
13929
b5b08fb4
SC
139302014-01-13 Siva Chandra Reddy <sivachandra@google.com>
13931
13932 PR python/15464
13933 PR python/16113
13934 * valops.c (value_struct_elt_bitpos): New function
13935 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
13936 object to 'None' if the field name is an empty string ("").
13937 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
13938 attribute to look for a field when 'name' is 'None'.
13939 (get_field_type): New function
13940
13aaf454
DE
139412014-01-13 Doug Evans <dje@google.com>
13942
13943 PR symtab/16426
13944 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
13945 (try_open_dwop_file): Ditto.
13946 * gdb_bfd.c: #include "vec.h".
13947 (bfdp): New typedef.
13948 (struct gdb_bfd_data): New member included_bfds.
13949 (gdb_bfd_unref): Unref all included bfds.
13950 (gdb_bfd_record_inclusion): New function.
13951 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
13952
c2cec97c
TT
139532014-01-13 Tom Tromey <tromey@redhat.com>
13954
13955 * gdbcore.h (deprecated_core_resize_section_table): Remove.
13956
78e5999d
TT
139572014-01-13 Tom Tromey <tromey@redhat.com>
13958
13959 * defs.h (use_windows): Remove.
13960 * gdb.c (main): Update.
13961 * main.c (captured_main, gdb_main): Update.
13962 * main.h (struct captured_main_args) <use_windows>: Remove.
13963 * top.c (use_windows): Remove.
13964
f2052bbe
TT
139652014-01-13 Tom Tromey <tromey@redhat.com>
13966
13967 * defs.h (deprecated_flush_hook): Remove.
13968
fde4f8ed
JK
139692014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
13970
13971 PR threads/16216
13972 * linux-thread-db.c (try_thread_db_load): Add parameter
13973 check_auto_load_safe. Move here the file_is_auto_load_safe call.
13974 (try_thread_db_load_from_pdir_1): Move it there from here.
13975 (try_thread_db_load_from_sdir): Update caller.
13976 (try_thread_db_load_from_dir): Move it there from here.
13977
bdf61915
PP
139782014-01-13 Patrick Palka <patrick@parcs.ath.cx>
13979
13980 * regformats/regdat.sh: Always rewrite the register file.
13981
f71e1a8d
PA
139822014-01-13 Pedro Alves <palves@redhat.com>
13983
13984 * Makefile.in (CHECK_HEADERS): New variable.
13985 (check-headers:): New rule.
13986
42c85435
TT
139872014-01-13 Tom Tromey <tromey@redhat.com>
13988
13989 * cli/cli-setshow.c (do_set_command): Update.
13990 * defs.h (deprecated_set_hook): Remove.
13991 * top.c (deprecated_set_hook): Remove.
13992
f8de5129
PA
139932014-01-13 Pedro Alves <palves@redhat.com>
13994
13995 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
13996 the tracepoint if the PC is a pseudo-register.
13997
fc270c35
TT
139982014-01-13 Tom Tromey <tromey@redhat.com>
13999
14000 * defs.h (XCALLOC): Remove.
14001 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
14002 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
14003 * dwarf2loc.c (allocate_piece_closure): Likewise.
14004 * elfread.c (elf_symfile_segments): Likewise.
14005 (elf_symfile_segments): Likewise.
14006 * gdbtypes.c (copy_type_recursive): Likewise.
14007 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
14008 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
14009 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
14010 XCALLOC.
14011 * mt-tdep.c (mt_gdbarch_init): Likewise.
14012 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
14013 XCALLOC.
14014 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
14015 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
14016 * registry.c (registry_alloc_data): Likewise.
14017 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
14018 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
14019 * serial.c (serial_fdopen_ops): Likewise.
14020 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
14021 XCALLOC.
14022 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
14023 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
14024 not XCALLOC.
14025
70ba0933
TT
140262014-01-13 Tom Tromey <tromey@redhat.com>
14027
14028 * defs.h (XMALLOC): Remove.
14029 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
14030 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
14031 * cli-out.c (struct ui_out *): Likewise.
14032 * cli/cli-dump.c (add_dump_command): Likewise.
14033 (add_dump_command): Likewise.
14034 * complaints.c (get_complaints): Likewise.
14035 (find_complaint): Likewise.
14036 * dwarf2-frame.c (execute_cfa_program): Likewise.
14037 * dwarf2read.c (abbrev_table_read_table): Likewise.
14038 * gdbarch.sh: Likewise.
14039 * gdbarch.c: Rebuild.
14040 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
14041 * interps.c (interp_new): Likewise.
14042 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
14043 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
14044 * mi/mi-console.c (mi_console_file_new): Likewise.
14045 * mi/mi-interp.c (mi_interpreter_init): Likewise.
14046 * mi/mi-out.c (mi_out_new): Likewise.
14047 * mi/mi-parse.c (mi_parse): Likewise.
14048 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
14049 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
14050 * observer.c (xalloc_observer_list_node): Likewise.
14051 * regcache.c (regcache_xmalloc_1): Likewise.
14052 * reggroups.c (reggroup_new): Likewise.
14053 (_initialize_reggroup): Likewise.
14054 * registry.c (register_data_with_cleanup): Likewise.
14055 * remote.c (remote_notif_stop_alloc_reply): Likewise.
14056 * ser-base.c (serial_ttystate): Likewise.
14057 * ser-mingw.c (make_pipe_state): Likewise.
14058 * ser-pipe.c (pipe_open): Likewise.
14059 * serial.c (serial_open): Likewise.
14060 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
14061 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
14062 (tui_alloc_win_info): Likewise.
14063 (tui_add_content_elements): Likewise.
14064 * tui/tui-file.c (tui_file_new): Likewise.
14065 * tui/tui-out.c (tui_out_new): Likewise.
14066 * ui-file.c (mem_file_new): Likewise.
14067 * ui-out.c (push_level): Likewise.
14068 (make_cleanup_ui_out_end): Likewise.
14069 (append_header_to_list): Likewise.
14070 (ui_out_new): Likewise.
14071 * user-regs.c (user_reg_add_builtin): Likewise.
14072
41bf6aca
TT
140732014-01-13 Tom Tromey <tromey@redhat.com>
14074
14075 * defs.h (XZALLOC): Remove.
14076 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
14077 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
14078 (get_ada_tasks_inferior_data): Likewise.
14079 * auto-load.c (get_auto_load_pspace_data): Likewise.
14080 * auxv.c (get_auxv_inferior_data): Likewise.
14081 * bfd-target.c (target_bfd_reopen): Likewise.
14082 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
14083 (deprecated_insert_raw_breakpoint): Likewise.
14084 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
14085 * corelow.c (core_open): Likewise.
14086 * darwin-nat.c (darwin_check_new_threads): Likewise.
14087 (darwin_attach_pid): Likewise.
14088 * dummy-frame.c (dummy_frame_push): Likewise.
14089 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
14090 * dwarf2loc.c (allocate_piece_closure): Likewise.
14091 * elfread.c (elf_symfile_segments): Likewise.
14092 * eval.c (ptrmath_type_p): Likewise.
14093 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
14094 * gdbtypes.c (alloc_type_arch): Likewise.
14095 (alloc_type_instance): Likewise.
14096 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
14097 * inf-child.c (inf_child_can_use_agent): Likewise.
14098 * inflow.c (get_inflow_inferior_data): Likewise.
14099 * infrun.c (save_infcall_suspend_state): Likewise.
14100 * jit.c (jit_reader_load): Likewise.
14101 (get_jit_objfile_data): Likewise.
14102 (get_jit_program_space_data): Likewise.
14103 (jit_object_open_impl): Likewise.
14104 (jit_symtab_open_impl): Likewise.
14105 (jit_block_open_impl): Likewise.
14106 (jit_frame_sniffer): Likewise.
14107 * linux-fork.c (add_fork): Likewise.
14108 * maint.c (make_command_stats_cleanup): Likewise.
14109 * objfiles.c (get_objfile_pspace_data): Likewise.
14110 * opencl-lang.c (struct lval_closure): Likewise.
14111 * osdata.c (osdata_start_osdata): Likewise.
14112 * progspace.c (new_address_space): Likewise.
14113 (add_program_space): Likewise.
14114 * remote-sim.c (get_sim_inferior_data): Likewise.
14115 * sh-tdep.c (sh_gdbarch_init): Likewise.
14116 * skip.c (Ignore): Likewise.
14117 (skip_delete_command): Likewise.
14118 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
14119 (library_list_start_library): Likewise.
14120 (solib_aix_current_sos): Likewise.
14121 * solib-darwin.c (get_darwin_info): Likewise.
14122 (darwin_current_sos): Likewise.
14123 * solib-dsbt.c (get_dsbt_info): Likewise.
14124 * solib-ia64-hpux.c (new_so_list): Likewise.
14125 (ia64_hpux_get_solib_linkage_addr): Likewise.
14126 * solib-spu.c (append_ocl_sos): Likewise.
14127 (spu_current_sos): Likewise.
14128 * solib-svr4.c (get_svr4_info): Likewise.
14129 (svr4_keep_data_in_core): Likewise.
14130 (library_list_start_library): Likewise.
14131 (svr4_default_sos): Likewise.
14132 (svr4_read_so_list): Likewise.
14133 * solib-target.c (library_list_start_library): Likewise.
14134 (solib_target_current_sos): Likewise.
14135 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
14136 * symfile-debug.c (install_symfile_debug_logging): Likewise.
14137 * symfile.c (default_symfile_segments): Likewise.
14138 * target-descriptions.c (tdesc_data_init): Likewise.
14139 (tdesc_create_reg): Likewise.
14140 (struct tdesc_type *): Likewise.
14141 (tdesc_create_vector): Likewise.
14142 (tdesc_set_struct_size): Likewise.
14143 (struct tdesc_type *): Likewise.
14144 (tdesc_free_feature): Likewise.
14145 (tdesc_create_feature): Likewise.
14146 * windows-nat.c (windows_add_thread): Likewise.
14147 (windows_make_so): Likewise.
14148 * xml-support.c (gdb_xml_body_text): Likewise.
14149 (gdb_xml_create_parser_and_cleanup): Likewise.
14150 (xml_process_xincludes): Likewise.
14151 * xml-syscall.c (allocate_syscalls_info): Likewise.
14152 (syscall_create_syscall_desc): Likewise.
14153
5acfdbae
SDJ
141542014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
14155
14156 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
14157 function, with code from i386_stap_parse_special_token.
14158 (i386_stap_parse_special_token_three_arg_disp): Likewise.
14159 (i386_stap_parse_special_token): Move code to the two functions
14160 above; simplify it.
14161
0000e5cc
PA
141622014-01-09 Pedro Alves <palves@redhat.com>
14163 Hui Zhu <hui@codesourcery.com>
14164
14165 PR gdb/16101
14166 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
14167 bp_err_string. Don't mark the location shlib_disabled if the
14168 error thrown wasn't a generic or memory error. Catch errors
14169 thrown while inserting breakpoints in overlayed code. Output
14170 error message of software breakpoints.
14171 * remote.c (remote_insert_breakpoint): If this breakpoint has
14172 target-side commands but this stub doesn't support Z0 packets,
14173 throw NOT_SUPPORTED_ERROR error.
14174 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
14175 * target.h (target_insert_breakpoint): Extend comment.
14176 (target_insert_hw_breakpoint): Add comment.
14177
b7ea362b
PA
141782014-01-08 Pedro Alves <palves@redhat.com>
14179
14180 * remote.c (remote_add_thread): Add threads silently if starting
14181 up.
14182 (remote_notice_new_inferior): If in all-stop, and starting up,
14183 don't call notice_new_inferior.
14184 (get_current_thread): New function, factored out from ...
14185 (add_current_inferior_and_thread): ... this. Adjust.
14186 (remote_start_remote) <all-stop>: Fetch the thread list. If we
14187 found any thread, then select the remote's current thread as GDB's
14188 current thread too.
14189
b7bba001
JB
141902014-01-08 Joel Brobecker <brobecker@adacore.com>
14191
14192 * NEWS: Create a new section for the next release branch.
14193 Rename the section of the current branch, now that it has
14194 been cut.
14195
16dfbded
JB
141962014-01-08 Joel Brobecker <brobecker@adacore.com>
14197
14198 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
14199 * version.in: Bump version to 7.7.50.DATE-cvs.
14200
22c90ac1
YQ
142012014-01-08 Yao Qi <yao@codesourcery.com>
14202
14203 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
14204 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
14205 (spu_xfer_partial): Cast 'buf' to 'const char *'.
14206
d64ad97c
YQ
142072014-01-08 Yao Qi <yao@codesourcery.com>
14208
14209 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
14210 return value of bfd_get_filename to symbol_file_add_from_bfd.
14211
f93ba80c
PM
142122014-01-08 Pierre Muller <muller@sourceware.org>
14213
14214 Fix PR16201.
14215 * coff-pe-read.c (struct read_pe_section_data): Add index field.
14216 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
14217 to prim_record_mininal_symbol_and_info.
14218 (add_pe_forwarded_sym): Use known section number of forwarded symbol
14219 in call to prim_record_minimal_symbol_and_info.
14220 (read_pe_exported_syms): Set index field of section_data.
14221
a4d9ba85
AP
142222014-01-07 Andrew Pinski <apinski@cavium.com>
14223
14224 * features/aarch64-core.xml (cpsr): Change to be 64bit.
14225 * features/aarch64.c: Regenerate.
14226
1b67eb02
AS
142272014-01-07 Andreas Schwab <schwab@linux-m68k.org>
14228
14229 * target.c (return_null): Define.
14230 (update_current_target): Use it instead of return_zero for
14231 functions that return a pointer.
14232
5e3f4fab
EBM
142332014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
14234
14235 * source.c (add_path): Fix check for duplicated paths in the previously
14236 included paths.
14237
e2616788
HK
142382014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
14239
14240 * ada-lang.c: Remove duplicated include statements.
14241 * alphabsd-nat.c: Ditto.
14242 * amd64-darwin-tdep.c: Ditto.
14243 * amd64fbsd-nat.c: Ditto.
14244 * auto-load.c: Ditto.
14245 * ax-gdb.c: Ditto.
14246 * breakpoint.c: Ditto.
14247 * dbxread.c: Ditto.
14248 * fork-child.c: Ditto.
14249 * gdb_usleep.c: Ditto.
14250 * i386-darwin-tdep.c: Ditto.
14251 * i386fbsd-nat.c: Ditto.
14252 * infcmd.c: Ditto.
14253 * inferior.c: Ditto.
14254 * jv-lang.c: Ditto.
14255 * linux-nat.c: Ditto.
14256 * linux-tdep.c: Ditto.
14257 * m68kbsd-nat.c: Ditto.
14258 * m68klinux-nat.c: Ditto.
14259 * microblaze-tdep.c: Ditto.
14260 * mips-linux-tdep.c: Ditto.
14261 * mn10300-tdep.c: Ditto.
14262 * nto-tdep.c: Ditto.
14263 * opencl-lang.c: Ditto.
14264 * osdata.c: Ditto.
14265 * printcmd.c: Ditto.
14266 * regcache.c: Ditto.
14267 * remote-m32r-sdi.c: Ditto.
14268 * remote.c: Ditto.
14269 * symfile.c: Ditto.
14270 * symtab.c: Ditto.
14271 * tilegx-linux-nat.c: Ditto.
14272 * tilegx-tdep.c: Ditto.
14273 * tracepoint.c: Ditto.
14274 * valops.c: Ditto.
14275 * vaxbsd-nat.c: Ditto.
14276 * windows-nat.c: Ditto.
14277 * xtensa-tdep.c: Ditto.
14278
bd1f7788
YQ
142792014-01-07 Yao Qi <yao@codesourcery.com>
14280
14281 * spu-linux-nat.c (_initialize_spu_nat): Declare.
14282
79301218
JB
142832014-01-07 Yao Qi <yao@codesourcery.com>
14284 Joel Brobecker <brobecker@adacore.com>
14285
14286 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
14287 (pdc_write_regs): Likewise.
14288 (fetch_regs_kernel_thread): Likewise.
14289 (store_regs_kernel_thread): Likewise.
14290
142912014-01-07 Joel Brobecker <brobecker@adacore.com>
14292
14293 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
14294 tagged type objects to their actual type.
14295
8e355c5d
JB
142962014-01-07 Joel Brobecker <brobecker@adacore.com>
14297
14298 * ada-valprint.c (print_field_values): Add "language" parameter.
14299 Update calls to print_field_values and print_variant_part.
14300 Pass new parameter "language" in call to val_print instead
14301 of "current_language". Replace call to ada_val_print by call
14302 to val_print.
14303 (print_variant_part): Add "language" parameter.
14304 (ada_val_print_struct_union): Update call to print_field_values.
14305
4fbf5aa5
JB
143062014-01-07 Joel Brobecker <brobecker@adacore.com>
14307
14308 * ada-valprint.c (ui_memcpy): Delete.
14309 (ada_print_floating): Update documentation. Add empty line
14310 between between function documentation and implementation.
14311 Delete variable "buffer". Use ui_file_xstrdup in place of
14312 ui_file_put. Minor adjustments following this change.
14313
71855601
JB
143142014-01-07 Joel Brobecker <brobecker@adacore.com>
14315
14316 * ada-valprint.c (ada_val_print_string): New function,
14317 extracted from ada_val_print_array.
14318 (ada_val_print_array): Replace extracted code by call
14319 to ada_val_print_string followed by a return. Move
14320 "else" branch to the function's top block.
14321
4eb27a30
JB
143222014-01-07 Joel Brobecker <brobecker@adacore.com>
14323
14324 * ada-valprint.c (ada_val_print_array): Move implementation
14325 down. Rename parameter "offset" and "val" into "offset_aligned"
14326 and "original_value" respectively. Add parameter "offset".
14327
34b27950
JB
143282014-01-07 Joel Brobecker <brobecker@adacore.com>
14329
14330 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
14331 re-organizing the code. Change the "???" message printed
14332 when target type is a TYPE_CODE_UNDEF into
14333 "<ref to undefined type>".
14334
079e4591
JB
143352014-01-07 Joel Brobecker <brobecker@adacore.com>
14336
14337 * ada-valprint.c (print_record): Delete, implementation inlined...
14338 (ada_val_print_struct_union): ... here. Remove call to
14339 ada_check_typedef in inlined implementation.
14340
8004dfd1
JB
143412014-01-07 Joel Brobecker <brobecker@adacore.com>
14342
14343 * ada-valprint.c (ada_val_print_gnat_array): New function,
14344 extracted from ada_val_print_1;
14345 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
14346 (ada_val_print_flt, ada_val_print_struct_union)
14347 (ada_val_print_ref): Likewise.
14348 (ada_val_print_1): Delete variables i and elttype.
14349 Replace extracted-out code by call to corresponding
14350 new functions.
14351
760a2db0
JB
143522014-01-07 Joel Brobecker <brobecker@adacore.com>
14353
14354 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
14355
3a92c861
JB
143562014-01-07 Joel Brobecker <brobecker@adacore.com>
14357
14358 * ada-valprint.c (ada_val_print_1): Replace calls to
14359 ada_val_print_1 by calls to val_print.
14360
cd1630f9
JB
143612014-01-07 Joel Brobecker <brobecker@adacore.com>
14362
14363 * ada-valprint.c (ada_val_print_1): Add parameter "language".
14364 Update calls to self accordingly. Replace calls to c_val_print
14365 by calls to val_print.
14366
bdf779a0
JB
143672014-01-07 Joel Brobecker <brobecker@adacore.com>
14368
14369 * ada-valprint.c (print_record): Delete declaration.
14370 (adjust_type_signedness, ada_val_print_1): Likewise.
14371 (ada_val_print): Move function implementation down.
14372 (print_variant_part, print_field_values, print_record):
14373 Move function implementation up.
14374
c0d48811
JB
143752014-01-07 Joel Brobecker <brobecker@adacore.com>
14376
14377 * python/py-type.c (typy_get_name): New function.
14378 (type_object_getset): Add entry for attribute "name".
14379 * NEWS: Add entry mentioning this new attribute.
14380
c26e9cbb
YQ
143812014-01-07 Yao Qi <yao@codesourcery.com>
14382
14383 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
14384 statement.
14385
0cc6f43d
YQ
143862014-01-07 Yao Qi <yao@codesourcery.com>
14387
14388 * gnu-nat.c (info_port_rights): Add qualifier const to
14389 argument args.
14390
eec03155
YQ
143912014-01-07 Yao Qi <yao@codesourcery.com>
14392
14393 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
14394
f04a82ef
YQ
143952014-01-07 Yao Qi <yao@codesourcery.com>
14396
14397 * gnu-nat.c (make_inf) Update declaration.
14398 (make_inf): Make it static.
14399 (inf_set_traced): Likewise.
14400 (inf_port_to_thread, inf_task_died_status): Likewise.
14401
d57dda0a
YQ
144022014-01-07 Yao Qi <yao@codesourcery.com>
14403
14404 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
14405
3aa8c969
YQ
144062014-01-07 Yao Qi <yao@codesourcery.com>
14407
14408 * gnu-nat.c (_initialize_gnu_nat): Declare.
14409
94123b4f
YQ
144102014-01-07 Yao Qi <yao@codesourcery.com>
14411
14412 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
14413 'enum bfd_endian'.
14414 (struct gdbarch_info) <byte_order>: Change type to
14415 'enum bfd_endian'.
14416 <byte_order_for_code>: Likewise.
14417 * gdbarch.c, gdbarch.h: Regenerated.
14418
dc81d70a
TT
144192014-01-06 Sasha Smundak <asmundak@google.com>
14420
14421 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
14422
cc2f3c35
TT
144232014-01-06 Tom Tromey <tromey@redhat.com>
14424
14425 * doublest.c (convert_doublest_to_floatformat): Use const, not
14426 CONST.
14427 * somread.c (som_symtab_read): Likewise.
14428
adcf2eed
HZ
144292014-01-07 Hui Zhu <hui@codesourcery.com>
14430
14431 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
14432 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
14433 (gdb_bfd_fopen): Ditto.
14434 (gdb_bfd_openr): Ditto.
14435 (gdb_bfd_openw): Ditto.
14436 (gdb_bfd_openr_iovec): Ditto.
14437 (gdb_bfd_fdopenr): Ditto.
14438 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
14439 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
14440 with xstrdup.
14441 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
14442 with xstrdup.
14443 * symfile-mem.c (symbol_file_add_from_memory): Removed
14444 gdb_bfd_stash_filename.
14445
50722198
DE
144462014-01-03 Doug Evans <dje@google.com>
14447
14448 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
14449 output.
14450
2fa4b862
JB
144512014-01-01 Joel Brobecker <brobecker@adacore.com>
14452
14453 Update year range in copyright notice of all files.
14454
28498c42
JB
144552014-01-01 Joel Brobecker <brobecker@adacore.com>
14456
14457 * top.c (print_gdb_version): Set copyright year to 2014.
14458
7b6e1046
JB
144592014-01-01 Joel Brobecker <brobecker@adacore.com>
14460
14461 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
14462
df96af55 14463For older changes see ChangeLog-2013.
c906108c
SS
14464\f
14465Local Variables:
14466mode: change-log
14467left-margin: 8
14468fill-column: 74
14469version-control: never
57da7796 14470coding: utf-8
c906108c 14471End:
This page took 2.277292 seconds and 4 git commands to generate.