Fix the gdb.dwarf2/dw2-dir-file-name.exp test on MIPS
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
4ffbba72
DE
12014-10-17 Doug Evans <dje@google.com>
2
3 * NEWS: Mention new event gdb.clear_objfiles.
4 * python/py-event.h (emit_clear_objfiles_event): Clear
5 * python/py-events.h (events_object): New member clear_objfiles.
6 * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
7 event.
8 * python/py-inferior.c (python_new_objfile): If objfile is NULL,
9 emit clear_objfiles event.
10 * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
11 function.
12 (emit_clear_objfiles_event): New function.
13 (clear_objfiles): New event.
14 * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
15 Declare.
16 * python/python.c (_initialize_python): Call
17 gdbpy_initialize_clear_objfiles_event.
18
d096d8c1
DE
192014-10-17 Doug Evans <dje@google.com>
20
21 * NEWS: Mention new gdb.Objfile.progspace attribute.
22 * python/py-objfile.c (objfpy_get_progspace): New function.
23 (objfile_getset): New entry for "progspace".
24
6c4486e6
PA
252014-10-17 Pedro Alves <palves@redhat.com>
26
27 PR gdb/17471
28 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
29 returns a copy of the input.
30 (run_command_1, continue_command, step_1, jump_command)
31 (signal_command, until_command, advance_command, finish_command)
32 (attach_command): Adjust and install a cleanup to free the
33 stripped args.
34
0ff33695
PA
352014-10-17 Pedro Alves <palves@redhat.com>
36
37 PR gdb/17300
38 * infcmd.c (continue_1): If continuing all threads in the
39 foreground, make sure the inferior's terminal settings are put in
40 effect.
41
6fdebc3d
PA
422014-10-17 Pedro Alves <palves@redhat.com>
43
44 PR gdb/17472
45 * annotate.c (annotate_breakpoints_invalid): Use
46 target_terminal_our_for_output instead of target_terminal_ours.
47 Give back the terminal to the target.
48 (annotate_frames_invalid): Likewise.
49
5842f62a
PA
502014-10-17 Pedro Alves <palves@redhat.com>
51
52 * target.c (enum terminal_state): New enum.
53 (terminal_state): New global.
54 (target_terminal_init): New function.
55 (target_terminal_inferior): Skip if inferior already owns the
56 terminal.
57 (target_terminal_ours, target_terminal_ours_for_output): New
58 functions.
59 * target.h (target_terminal_init): Convert to function prototype.
60 (target_terminal_ours_for_output): Convert to function prototype
61 and tweak comment.
62 (target_terminal_ours): Convert to function prototype and tweak
63 comment.
64 * windows-nat.c (do_initial_windows_stuff): Call
65 target_terminal_init instead of child_terminal_init_with_pgrp.
66
32a8097b
PA
672014-10-17 Pedro Alves <palves@redhat.com>
68
69 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
70 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
71 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
72 solib-osf.c.
73 * NEWS: Mention that support for alpha*-*-osf* has been removed.
74 * ada-lang.h [__alpha__ && __osf__]
75 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
76 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
77 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
78 GDB_OSABI_OSF1.
79 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
80 files.
81 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
82 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
83 * configure: Regenerate.
84 * configure.ac: Remove references to osf.
85 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
86 section. Remove all other references to osf.
87 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
88 Remove all other references to osf.
89 * dec-thread.c: Delete file.
90 * defs.h (GDB_OSABI_OSF1): Delete.
91 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
92 defined.
93 * osabi.c (gdb_osabi_names): Delete "OSF/1".
94 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
95 Delete code.
96 (unconditionally_kill_inferior)
97 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
98 * solib-osf.c: Delete file.
99
80134cf5
PA
1002014-10-17 Pedro Alves <palves@redhat.com>
101
102 * remote.c (clear_threads_listing_context): Move higher up, out of
103 the HAVE_LIBEXPAT guard.
104
89c7137f
TG
1052014-10-16 Tristan Gingold <gingold@adacore.com>
106
107 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
108 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
109 on amd64.
110
44ee4a52
PA
1112014-10-15 Pedro Alves <palves@redhat.com>
112
113 * dec-thread.c (dec_thread_count_gdb_threads)
114 (dec_thread_add_gdb_thread): Delete.
115 (dec_thread_update_thread_list): Delete.
116 (dec_thread_find_new_threads): Rename to ...
117 (dec_thread_update_thread_list): ... this. Delete GDB-size
118 threads that are no longer found in dec_thread_list.
119 (resync_thread_list): Delete.
120 (dec_thread_wait): Call dec_thread_update_thread_list instead of
121 resync_thread_list.
122
ab970af1
PA
1232014-10-15 Pedro Alves <palves@redhat.com>
124
125 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
126 * remote.c (remote_update_thread_list): Skip calling prune_threads
127 if any thread listing method is supported, and instead walk over
128 the set of remote threads listed, deleting those that are not
129 found in GDB's thread list.
130
e8032dde
PA
1312014-10-15 Pedro Alves <palves@redhat.com>
132
133 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
134 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
135 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
136 (bsd_uthread_target): Adjust.
137 * corelow.c (core_open): Adjust.
138 * dec-thread.c (dec_thread_find_new_threads): Update comment.
139 (dec_thread_update_thread_list): New function.
140 (init_dec_thread_ops): Adjust.
141 * gdbthread.h (prune_threads): New declaration.
142 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
143 (thread_db_update_thread_list): ... this. Call prune_threads.
144 (init_thread_db_ops): Adjust.
145 * nto-procfs.c (procfs_find_new_threads): Rename to ...
146 (procfs_update_thread_list): ... this. Call prune_threads.
147 (procfs_attach, procfs_create_inferior, init_procfs_targets):
148 Adjust.
149 * obsd-nat.c (obsd_find_new_threads): Rename to ...
150 (obsd_update_thread_list): ... this. Call prune_threads.
151 (obsd_add_target): Adjust.
152 * procfs.c (procfs_target): Adjust.
153 (procfs_notice_thread): Update comment.
154 (procfs_find_new_threads): Rename to ...
155 (procfs_update_thread_list): ... this. Call prune_threads.
156 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
157 comment.
158 (ravenscar_wait): Adjust.
159 (ravenscar_find_new_threads): Rename to ...
160 (ravenscar_update_thread_list): ... this. Call prune_threads.
161 (init_ravenscar_thread_ops): Adjust.
162 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
163 (record_btrace_update_thread_list): ... this. Adjust comment.
164 (init_record_btrace_ops): Adjust.
165 * remote.c (remote_threads_info): Rename to ...
166 (remote_update_thread_list): ... this. Call prune_threads.
167 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
168 Adjust.
169 * sol-thread.c (check_for_thread_db): Adjust.
170 (sol_find_new_threads_callback): Rename to ...
171 (sol_update_thread_list_callback): ... this.
172 (sol_find_new_threads): Rename to ...
173 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
174 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
175 * target-delegates.c: Regenerate.
176 * target.c (target_find_new_threads): Rename to ...
177 (target_update_thread_list): ... this.
178 * target.h (struct target_ops): Rename to_find_new_threads field
179 to to_update_thread_list.
180 (target_find_new_threads): Rename to ...
181 (target_update_thread_list): ... this.
182 * thread.c (prune_threads): Make extern.
183 (update_thread_list): Adjust.
184
6dc54d91
PA
1852014-10-15 Pedro Alves <palves@redhat.com>
186
187 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
188 Add describing comment. Return -1 if the qL packet is not
189 supported.
190 (struct thread_item, thread_item_t): Move higher up in
191 the file. Add comments.
192 (struct threads_parsing_context): Move higher up in
193 the file, add comments, and remote to ...
194 (struct threads_listing_context): ... this.
195 (remote_newthread_step): Don't add the thread to GDB's thread
196 database here. Instead push it to the thread_listing_context
197 list.
198 (remote_find_new_threads): Rename to ...
199 (remote_get_threads_with_ql): ... this. Add target_ops and
200 targets_listing_context parameters. Pass down context.
201 (start_thread): Adjust.
202 (clear_threads_parsing_context): Rename to ...
203 (clear_threads_listing_context): ... this.
204 (remote_get_threads_with_qxfer): New, with parts salvaged from old
205 remote_threads_info.
206 (remote_get_threads_with_qthreadinfo): Ditto.
207 (remote_threads_info): Reimplement.
208
36728e82
PA
2092014-10-15 Pedro Alves <palves@redhat.com>
210
211 * infrun.c (resume): Don't force displaced-stepping for all
212 single-steps on software single-stepping archs.
213
34b7e8a6
PA
2142014-10-15 Pedro Alves <palves@redhat.com>
215
216 * breakpoint.c (single_step_breakpoints): Delete global.
217 (insert_single_step_breakpoint): Adjust to store the breakpoint
218 pointer in the current thread.
219 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
220 (cancel_single_step_breakpoints): Delete functions.
221 (breakpoint_has_location_inserted_here): Make extern.
222 (single_step_breakpoint_inserted_here_p): Adjust to walk the
223 breakpoint list.
224 * breakpoint.h (breakpoint_has_location_inserted_here): New
225 declaration.
226 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
227 (cancel_single_step_breakpoints): Remove declarations.
228 * gdbthread.h (struct thread_control_state)
229 <single_step_breakpoints>: New field.
230 (delete_single_step_breakpoints)
231 (thread_has_single_step_breakpoints_set)
232 (thread_has_single_step_breakpoint_here): New declarations.
233 * infrun.c (follow_exec): Also clear the single-step breakpoints.
234 (singlestep_breakpoints_inserted_p, singlestep_ptid)
235 (singlestep_pc): Delete globals.
236 (infrun_thread_ptid_changed): Remove references to removed
237 globals.
238 (resume_cleanups): Delete the current thread's single-step
239 breakpoints.
240 (maybe_software_singlestep): Remove references to removed globals.
241 (resume): Adjust to use thread_has_single_step_breakpoints_set and
242 delete_single_step_breakpoints.
243 (init_wait_for_inferior): Remove references to removed globals.
244 (delete_thread_infrun_breakpoints): Delete the thread's
245 single-step breakpoints too.
246 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
247 single-step breakpoints here.
248 (delete_stopped_threads_single_step_breakpoints): New function.
249 (adjust_pc_after_break): Adjust to use
250 thread_has_single_step_breakpoints_set.
251 (handle_inferior_event): Remove references to removed globals.
252 Use delete_stopped_threads_single_step_breakpoints.
253 (handle_signal_stop): Adjust to per-thread single-step
254 breakpoints. Swap test order to do cheaper tests first.
255 (switch_back_to_stepped_thread): Extend debug output. Remove
256 references to removed globals.
257 * record-full.c (record_full_wait_1): Adjust to per-thread
258 single-step breakpoints.
259 * thread.c (delete_single_step_breakpoints)
260 (thread_has_single_step_breakpoints_set)
261 (thread_has_single_step_breakpoint_here): New functions.
262 (clear_thread_inferior_resources): Also delete the thread's
263 single-step breakpoints.
264
5b834a0a
PA
2652014-10-15 Pedro Alves <palves@redhat.com>
266
267 * thread.c (delete_thread_breakpoint): New function.
268 (delete_step_resume_breakpoint)
269 (delete_exception_resume_breakpoint): Use it.
270 (delete_at_next_stop): New function.
271 (clear_thread_inferior_resources): Use delete_at_next_stop.
272
a1fd2fa5
PA
2732014-10-15 Pedro Alves <palves@redhat.com>
274
275 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
276 (breakpoint_inserted_here_p): ... here. Remove special case for
277 software single-step breakpoints.
278 (find_non_raw_software_breakpoint_inserted_here): Inline ...
279 (software_breakpoint_inserted_here_p): ... here. Remove special
280 case for software single-step breakpoints.
281 (bp_target_info_copy_insertion_state)
282 (deprecated_insert_raw_breakpoint)
283 (deprecated_remove_raw_breakpoint): Delete functions.
284 * breakpoint.h (deprecated_insert_raw_breakpoint)
285 (deprecated_remove_raw_breakpoint): Remove declarations.
286
7c16b83e
PA
2872014-10-15 Pedro Alves <palves@redhat.com>
288
289 PR breakpoints/9649
290 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
291 Delete array globals.
292 (single_step_breakpoints): New global.
293 (breakpoint_xfer_memory): Remove special handling for single-step
294 breakpoints.
295 (update_breakpoints_after_exec): Delete bp_single_step
296 breakpoints.
297 (detach_breakpoints): Remove special handling for single-step
298 breakpoints.
299 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
300 (bpstat_stop_status): Add comment.
301 (bpstat_what, bptype_string, print_one_breakpoint_location)
302 (adjust_breakpoint_address, init_bp_location): Handle
303 bp_single_step.
304 (new_single_step_breakpoint): New function.
305 (set_momentary_breakpoint, bkpt_remove_location): Remove special
306 handling for single-step breakpoints.
307 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
308 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
309 Rewrite.
310 (detach_single_step_breakpoints, find_single_step_breakpoint):
311 Delete functions.
312 (breakpoint_has_location_inserted_here): New function.
313 (single_step_breakpoint_inserted_here_p): Rewrite.
314 * breakpoint.h: Remove FIXME.
315 (enum bptype) <bp_single_step>: New enum value.
316 (insert_single_step_breakpoint): Update comment.
317 * infrun.c (resume_cleanups)
318 (delete_step_thread_step_resume_breakpoint): Remove single-step
319 breakpoints.
320 (fetch_inferior_event): Install a cleanup that removes infrun
321 breakpoints.
322 (switch_back_to_stepped_thread) <expect thread advanced also>:
323 Clear step-over info.
324
0cbcdb96
PA
3252014-10-15 Pedro Alves <palves@redhat.com>
326
327 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
328 (delete_thread_infrun_breakpoints): New function, with parts
329 salvaged from delete_step_resume_breakpoint_callback.
330 (delete_step_thread_step_resume_breakpoint): Delete.
331 (for_each_just_stopped_thread_callback_func): New typedef.
332 (for_each_just_stopped_thread): New function.
333 (delete_just_stopped_threads_infrun_breakpoints): New function.
334 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
335 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
336 ... this. Adjust.
337 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
338
963f9c80
PA
3392014-10-15 Pedro Alves <palves@redhat.com>
340
341 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
342 trying to step past a non-steppable watchpoint.
343 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
344 field.
345 * infrun.c (struct step_over_info): Add new field
346 'nonsteppable_watchpoint_p' and adjust comments.
347 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
348 Adjust.
349 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
350 (stepping_past_nonsteppable_watchpoint): New function.
351 (step_over_info_valid_p): Also return true if stepping past a
352 nonsteppable watchpoint.
353 (proceed): Adjust call to set_step_over_info. Remove reference to
354 init_infwait_state.
355 (init_wait_for_inferior): Remove reference to init_infwait_state.
356 (waiton_ptid): Delete global.
357 (struct execution_control_state)
358 <stepped_after_stopped_by_watchpoint>: Delete field.
359 (wait_for_inferior, fetch_inferior_event): Always pass
360 minus_one_ptid to target_wait.
361 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
362 field.
363 (init_infwait_state): Delete function.
364 (handle_inferior_event): Remove infwait_state handling.
365 (handle_signal_stop) <watchpoints handling>: Adjust after
366 stepped_after_stopped_by_watchpoint removal. Don't remove
367 breakpoints here nor set infwait_state. Set the thread's
368 stepping_over_watchpoint flag, and call keep_going instead.
369 (keep_going): Handle stepping_over_watchpoint. Adjust
370 set_step_over_info calls.
371 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
372 function.
373
6cc83d2a
PA
3742014-10-15 Pedro Alves <palves@redhat.com>
375
376 * infrun.c (step_over_info_valid_p): New function.
377 (resume): Use step_over_info_valid_p instead of checking the
378 threads's trap_expected flag.
379
6979730b
DE
3802014-10-15 Doug Evans <dje@google.com>
381 Walfred Tedeschi <walfred.tedeschi@intel.com>
382
383 PR python/17364
384 * python/lib/gdb/__init__.py (packages): Add "printer".
385 * python/lib/gdb/command/bound_registers.py: Moved to ...
386 * python/lib/gdb/printer/bound_registers.py: ... here.
387 Add printer to global set of builtin printers. Rename printer from
388 "bound" to "mpx_bound128".
389 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
390 registered as global "builtin" printer.
391 (add_builtin_pretty_printer): New function.
392 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
393 gdb/printer/__init__.py.
394
35a49624
IB
3952014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
396
397 * Makefile.in (SFILES): Remove d-support.c.
398 (COMMON_OBS): Remove d-support.o.
399 * d-lang.h (d_parse_symbol): Remove declaration.
400 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
401 * d-support.c: Remove file.
402
8fa0c4f8
AA
4032014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
404
405 * gdb/infrun.c (process_event_stop_test): Apply
406 gdbarch_addr_bits_remove to longjmp resume address.
407
3666da81
PA
4082014-10-15 Pedro Alves <palves@redhat.com>
409
410 * regformats/microblaze.dat: Delete file.
411
449aa9df
AKA
4122014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
413
414 * features/Makefile (microblaze-expedite): Replace pc with rpc.
415 * regformats/microblaze-with-stack-protect.dat: Regenerate.
416
ebb8ece2
SC
4172014-10-15 Siva Chandra Reddy <sivachandra@google.com>
418
419 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
420 as non-trivial.
421
82c48ac7
SC
4222014-10-15 Siva Chandra Reddy <sivachandra@google.com>
423
424 PR c++/13403
425 PR c++/15154
426 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
427 with qualified args.
428
c40cc657
JB
4292014-10-14 Joel Brobecker <brobecker@adacore.com>
430
431 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
432 of the case where the second operand is a pointer.
433 <BINOP_SUB>: Likewise.
434
0ea5cda8
SDJ
4352014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
436
437 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
438 only if it is not NULL.
439 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
440 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
441 (struct probe_ops) <clear_semaphore>: Likewise.
442 * tracepoint.c (start_tracing): Call set_semaphore only if it is
443 not NULL.
444 (stop_tracing): Likewise, for clear_semaphore.
445
f7088df3
SDJ
4462014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
447
448 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
449 using language_c, instead of current_language.
450
4e1bbde0
DE
4512014-10-13 Doug Evans <dje@google.com>
452
6ff5a0f6 453 * python/py-objfile.c (objfpy_initialize): New function.
4e1bbde0 454 (objfpy_new, objfile_to_objfile_object): Call it.
6ff5a0f6 455 * python/py-progspace.c (pspy_initialize): New function.
4e1bbde0
DE
456 (pspy_new, pspace_to_pspace_object): Call it.
457
c780cc2f
JK
4582014-10-13 Miroslav Franc <mfranc@redhat.com>
459 Jan Kratochvil <jan.kratochvil@redhat.com>
460
461 Fix "save breakpoints" for "catch" command.
462 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
463 newline.
464
99894e11
JK
4652014-10-12 Miroslav Franc <mfranc@redhat.com>
466
467 Fix "save breakpoints" for "disable $bpnum" command.
468 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
469
3831839c
PA
4702014-10-10 Pedro Alves <palves@redhat.com>
471
472 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
473 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
474 (HFILES_NO_SRCDIR): Remove solib-irix.h.
475 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
476 and been removed.
477 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
478 * configure.ac: Remove references to IRIX.
479 * configure.host: Add *-*-irix* to the obsolete hosts section.
480 Remove all other references to irix.
481 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
482 Delete files.
483
cc3afae2
AKA
4842014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
485
486 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
487 isn't valid, release the tdesc arch data and return NULL.
488
cdfa0b0a
PA
4892014-10-10 Pedro Alves <palves@redhat.com>
490
491 * linux-tdep.c: Include observer.h.
492 (linux_inferior_data): New global.
493 (struct linux_info): New structure.
494 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
495 (get_linux_inferior_data): New functions.
496 (linux_vsyscall_range): Rename to ...
497 (linux_vsyscall_range_raw): ... this.
498 (linux_vsyscall_range): New function; handles caching.
499 (_initialize_linux_tdep): Register linux_inferior_data. Install
500 inferior_exit and inferior_appeared observers.
501
8b9a549d
PA
5022014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
503 Pedro Alves <palves@redhat.com>
504
505 PR symtab/14466
506 * solib-svr4.c (svr4_read_so_list): Rename to ...
507 (svr4_current_sos_1): ... this and change the function comment.
508 (svr4_current_sos): New function.
509
3437254d
PA
5102014-10-10 Pedro Alves <palves@redhat.com>
511
512 * arch-utils.c (default_vsyscall_range): New function.
513 * arch-utils.h (default_vsyscall_range): New declaration.
514 * gdbarch.sh (vsyscall_range): New hook.
515 * gdbarch.h, gdbarch.c: Regenerate.
516 * linux-tdep.c (linux_vsyscall_range): New function.
517 (linux_init_abi): Install linux_vsyscall_range as
518 vsyscall_range gdbarch hook.
519 * memrange.c (address_in_mem_range): New function.
520 * memrange.h (address_in_mem_range): New declaration.
521 * symfile-mem.c (find_vdso_size): Delete function.
522 (add_vsyscall_page): Use gdbarch_vsyscall_range.
523
31cc0b80
PA
5242014-10-10 Pedro Alves <palves@redhat.com>
525
526 * infrun.c (normal_stop): Fix typo in comment.
527
3e3286a2
SDJ
5282014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
529
530 PR tdep/9390
531 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
532 typo when using logical AND to determine instruction type.
533
fcbdedf8
YQ
5342014-10-09 Yao Qi <yao@codesourcery.com>
535
536 * infrun.c (handle_signal_stop): Remove local variable
537 'printed'.
538
db984616
SS
5392014-10-08 Stan Shebs <stan@codesourcery.com>
540
541 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
542
3ba37e6c
GB
5432014-10-08 Gary Benson <gbenson@redhat.com>
544
545 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
546
a442d071
GB
5472014-10-08 Gary Benson <gbenson@redhat.com>
548
549 * common/common-defs.h: Include common-exceptions.h.
550 * exceptions.h: Do not include common-exceptions.h.
551
6f1947e8
GB
5522014-10-08 Gary Benson <gbenson@redhat.com>
553
554 * common/common-defs.h: Include cleanups.h.
555 * common/common-exceptions.c: Do not include cleanups.h.
556 * utils.h: Likewise.
557
c765fdb9
GB
5582014-10-08 Gary Benson <gbenson@redhat.com>
559
560 * ada-lang.c: Do not include exceptions.h.
561 * ada-valprint.c: Likewise.
562 * amd64-tdep.c: Likewise.
563 * auto-load.c: Likewise.
564 * block.c: Likewise.
565 * break-catch-throw.c: Likewise.
566 * breakpoint.c: Likewise.
567 * btrace.c: Likewise.
568 * c-lang.c: Likewise.
569 * cli/cli-cmds.c: Likewise.
570 * cli/cli-interp.c: Likewise.
571 * cli/cli-script.c: Likewise.
572 * completer.c: Likewise.
573 * corefile.c: Likewise.
574 * corelow.c: Likewise.
575 * cp-abi.c: Likewise.
576 * cp-support.c: Likewise.
577 * cp-valprint.c: Likewise.
578 * darwin-nat.c: Likewise.
579 * dwarf2-frame-tailcall.c: Likewise.
580 * dwarf2-frame.c: Likewise.
581 * dwarf2loc.c: Likewise.
582 * dwarf2read.c: Likewise.
583 * eval.c: Likewise.
584 * event-loop.c: Likewise.
585 * event-top.c: Likewise.
586 * f-valprint.c: Likewise.
587 * frame-unwind.c: Likewise.
588 * frame.c: Likewise.
589 * gdbtypes.c: Likewise.
590 * gnu-v2-abi.c: Likewise.
591 * gnu-v3-abi.c: Likewise.
592 * guile/scm-auto-load.c: Likewise.
593 * guile/scm-breakpoint.c: Likewise.
594 * guile/scm-cmd.c: Likewise.
595 * guile/scm-frame.c: Likewise.
596 * guile/scm-lazy-string.c: Likewise.
597 * guile/scm-param.c: Likewise.
598 * guile/scm-symbol.c: Likewise.
599 * guile/scm-type.c: Likewise.
600 * hppa-hpux-tdep.c: Likewise.
601 * i386-tdep.c: Likewise.
602 * inf-loop.c: Likewise.
603 * infcall.c: Likewise.
604 * infcmd.c: Likewise.
605 * infrun.c: Likewise.
606 * interps.c: Likewise.
607 * interps.h: Likewise.
608 * jit.c: Likewise.
609 * linespec.c: Likewise.
610 * linux-nat.c: Likewise.
611 * linux-thread-db.c: Likewise.
612 * m32r-rom.c: Likewise.
613 * main.c: Likewise.
614 * memory-map.c: Likewise.
615 * mi/mi-cmd-break.c: Likewise.
616 * mi/mi-cmd-stack.c: Likewise.
617 * mi/mi-interp.c: Likewise.
618 * mi/mi-main.c: Likewise.
619 * monitor.c: Likewise.
620 * nto-procfs.c: Likewise.
621 * objc-lang.c: Likewise.
622 * p-valprint.c: Likewise.
623 * parse.c: Likewise.
624 * ppc-linux-tdep.c: Likewise.
625 * printcmd.c: Likewise.
626 * probe.c: Likewise.
627 * python/py-auto-load.c: Likewise.
628 * python/py-breakpoint.c: Likewise.
629 * python/py-cmd.c: Likewise.
630 * python/py-finishbreakpoint.c: Likewise.
631 * python/py-frame.c: Likewise.
632 * python/py-framefilter.c: Likewise.
633 * python/py-function.c: Likewise.
634 * python/py-gdb-readline.c: Likewise.
635 * python/py-inferior.c: Likewise.
636 * python/py-infthread.c: Likewise.
637 * python/py-lazy-string.c: Likewise.
638 * python/py-linetable.c: Likewise.
639 * python/py-param.c: Likewise.
640 * python/py-prettyprint.c: Likewise.
641 * python/py-symbol.c: Likewise.
642 * python/py-type.c: Likewise.
643 * python/py-value.c: Likewise.
644 * python/python-internal.h: Likewise.
645 * python/python.c: Likewise.
646 * record-btrace.c: Likewise.
647 * record-full.c: Likewise.
648 * regcache.c: Likewise.
649 * remote-fileio.c: Likewise.
650 * remote-mips.c: Likewise.
651 * remote.c: Likewise.
652 * rs6000-aix-tdep.c: Likewise.
653 * rs6000-nat.c: Likewise.
654 * skip.c: Likewise.
655 * solib-darwin.c: Likewise.
656 * solib-dsbt.c: Likewise.
657 * solib-frv.c: Likewise.
658 * solib-ia64-hpux.c: Likewise.
659 * solib-spu.c: Likewise.
660 * solib-svr4.c: Likewise.
661 * solib.c: Likewise.
662 * spu-tdep.c: Likewise.
663 * stack.c: Likewise.
664 * stap-probe.c: Likewise.
665 * symfile-mem.c: Likewise.
666 * symmisc.c: Likewise.
667 * target.c: Likewise.
668 * thread.c: Likewise.
669 * top.c: Likewise.
670 * tracepoint.c: Likewise.
671 * tui/tui-interp.c: Likewise.
672 * typeprint.c: Likewise.
673 * utils.c: Likewise.
674 * valarith.c: Likewise.
675 * valops.c: Likewise.
676 * valprint.c: Likewise.
677 * value.c: Likewise.
678 * varobj.c: Likewise.
679 * windows-nat.c: Likewise.
680 * xml-support.c: Likewise.
681
484933d1
MR
6822014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
683
684 * mips-tdep.c (add_offset_16): Rewrite to implement what the
685 name implies.
686 (extended_mips16_next_pc): Update accordingly.
687
ab50adb6
MR
6882014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
689
690 * mips-tdep.c (mips16_instruction_is_compact_branch): New
691 function.
692 (micromips_instruction_is_compact_branch): Likewise.
693 (mips16_scan_prologue): Terminate scanning upon seeing a branch
694 or a compact jump, reaching a jump delay slot, or seeing a
695 second non-prologue instruction.
696 (micromips_scan_prologue): Also terminate scanning upon seeing a
697 compact branch or jump, or reaching a branch or jump delay slot.
698 (mips32_scan_prologue): Terminate scanning upon reaching a branch
699 or jump delay slot, or seeing a second non-prologue instruction.
700 (mips32_instruction_has_delay_slot): Retain instruction
701 examination code only, update arguments accordingly and move
702 instruction fetch pieces to...
703 (mips32_insn_at_pc_has_delay_slot): ... this new function.
704 (micromips_instruction_has_delay_slot): Likewise and to...
705 (micromips_insn_at_pc_has_delay_slot): ... this new function.
706 (mips16_instruction_has_delay_slot): Likewise and to...
707 (mips16_insn_at_pc_has_delay_slot): ... this new function.
708 (mips_single_step_through_delay): Update accordingly.
709 (mips_adjust_breakpoint_address): Likewise.
710
ae790652
MR
7112014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
712
713 * mips-tdep.c (micromips_instruction_has_delay_slot): When
714 !mustbe32 also return 1 for 32-bit instructions.
715 (mips16_instruction_has_delay_slot): Likewise. Add an
716 explanatory comment.
717
9b807e7b
MR
7182014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
719
720 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
721 symbols special.
722
0d5ed153
MR
7232014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
724
725 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
726 update comments.
727 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
728 for the breakpoint's address. Don't preinitialize `placed_size'.
729 (insert_bp_location): Set `reqstd_address' rather than
730 `placed_address'.
731 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
732 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
733 address.
734 (bkpt_remove_location): Likewise.
735 (deprecated_insert_raw_breakpoint): Likewise.
736 (deprecated_remove_raw_breakpoint): Likewise.
737 (find_single_step_breakpoint): Likewise.
738 * mem-break.c (default_memory_insert_breakpoint): Use
739 `reqstd_address' for the breakpoint's address. Don't set
740 `placed_address' or `placed_size' if breakpoint contents couldn't
741 have been determined.
742 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
743 the breakpoint's address.
744 (remote_insert_hw_breakpoint): Likewise. Don't set
745 `placed_address' or `placed_size' if breakpoint couldn't have been
746 set.
747 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
748 `reqstd_address' for the breakpoint's address.
749 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
750 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
751 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
752 * microblaze-linux-tdep.c
753 (microblaze_linux_memory_remove_breakpoint): Likewise.
754 * monitor.c (monitor_insert_breakpoint): Likewise.
755 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
756 (procfs_insert_hw_breakpoint): Likewise.
757 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
758 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
759 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
760 * remote-mips.c (mips_insert_breakpoint): Likewise.
761 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
762
3e871532
LM
7632014-10-03 Luis Machado <lgustavo@codesourcery.com>
764
765 * valops.c (value_assign): Check for bit field assignments
766 before calling architecture-specific register value
767 conversion functions.
768
ec48dc8b
PM
7692014-10-03 Pierre Muller <muller@sourceware.org>
770
771 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
772
b57bacec
PA
7732014-10-02 Pedro Alves <palves@redhat.com>
774
775 * breakpoint.c (breakpoints_should_be_inserted_now): Use
776 threads_are_executing.
777 * breakpoint.h (breakpoints_should_be_inserted_now): Add
778 describing comment.
779 * gdbthread.h (threads_are_executing): Declare.
780 (handle_signal_stop) <random signals>: Don't print about the
781 signal here if stopping.
782 (end_stepping_range): Don't notify observers here.
783 (normal_stop): Update the thread list. If stopped by a random
784 signal or a stepping range ended, notify observers.
785 * thread.c (threads_executing): New global.
786 (init_thread_list): Clear 'threads_executing'.
787 (set_executing): Set or clear 'threads_executing'.
788 (threads_are_executing): New function.
789 (update_threads_executing): New function.
790 (update_thread_list): Use it.
791
13fd3ff3
PA
7922014-10-02 Pedro Alves <palves@redhat.com>
793
794 PR breakpoints/17431
795 * breakpoint.c (update_breakpoints_after_exec): Don't create
796 overlay, longjmp, std terminate nor exception breakpoints here.
797
32990ada
PA
7982014-10-02 Pedro Alves <palves@redhat.com>
799
800 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
801 Adjust comments.
802 * inferior.c (find_inferior_for_program_space): Give preference to
803 the current inferior.
804 * inferior.h (find_inferior_for_program_space): Update comment.
805 * progspace.c (switch_to_program_space_and_thread): Prefer the
806 current inferior if it's bound to the program space requested. If
807 the inferior found doesn't have a PID yet, don't bother looking up
808 a thread.
809 * progspace.h (switch_to_program_space_and_thread): Adjust
810 comment.
811 * thread.c (any_thread_of_process, any_live_thread_of_process):
812 Give preference to the current thread.
813
0fec99e8
PA
8142014-10-01 Pedro Alves <palves@redhat.com>
815
816 * breakpoint.c (insert_bp_location): Error out if inserting a
817 software breakpoint at a read-only address.
818 * target.c (memory_xfer_check_region): New function, factored out
819 from ...
820 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
821 ULONGEST.
822 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
823 against the memory region attributes.
824
2ddf4301
SM
8252014-10-01 Simon Marchi <simon.marchi@ericsson.com>
826
827 * NEWS: Announce new exit-code field in -list-thread-groups
828 output.
829 * inferior.c (exit_inferior_1): Don't clear exit code.
830 (inferior_appeared): Clear exit code.
831 * mi/mi-main.c (print_one_inferior): Add printing of the exit
832 code.
833
5fdeec1d
PA
8342014-10-01 Pedro Alves <palves@redhat.com>
835
836 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
837 GENERATED" along with emacs/vi read-only markers.
838 * regformats/aarch64.dat: Regenerate.
839 * regformats/arm-with-iwmmxt.dat: Regenerate.
840 * regformats/arm-with-neon.dat: Regenerate.
841 * regformats/arm-with-vfpv2.dat: Regenerate.
842 * regformats/arm-with-vfpv3.dat: Regenerate.
843 * regformats/i386/amd64-avx-linux.dat: Regenerate.
844 * regformats/i386/amd64-avx.dat: Regenerate.
845 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
846 * regformats/i386/amd64-avx512.dat: Regenerate.
847 * regformats/i386/amd64-linux.dat: Regenerate.
848 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
849 * regformats/i386/amd64-mpx.dat: Regenerate.
850 * regformats/i386/amd64.dat: Regenerate.
851 * regformats/i386/i386-avx-linux.dat: Regenerate.
852 * regformats/i386/i386-avx.dat: Regenerate.
853 * regformats/i386/i386-avx512-linux.dat: Regenerate.
854 * regformats/i386/i386-avx512.dat: Regenerate.
855 * regformats/i386/i386-linux.dat: Regenerate.
856 * regformats/i386/i386-mmx-linux.dat: Regenerate.
857 * regformats/i386/i386-mmx.dat: Regenerate.
858 * regformats/i386/i386-mpx-linux.dat: Regenerate.
859 * regformats/i386/i386-mpx.dat: Regenerate.
860 * regformats/i386/i386.dat: Regenerate.
861 * regformats/i386/x32-avx-linux.dat: Regenerate.
862 * regformats/i386/x32-avx.dat: Regenerate.
863 * regformats/i386/x32-avx512-linux.dat: Regenerate.
864 * regformats/i386/x32-avx512.dat: Regenerate.
865 * regformats/i386/x32-linux.dat: Regenerate.
866 * regformats/i386/x32.dat: Regenerate.
867 * regformats/microblaze-with-stack-protect.dat: Regenerate.
868 * regformats/mips-dsp-linux.dat: Regenerate.
869 * regformats/mips-linux.dat: Regenerate.
870 * regformats/mips64-dsp-linux.dat: Regenerate.
871 * regformats/mips64-linux.dat: Regenerate.
872 * regformats/nios2-linux.dat: Regenerate.
873 * regformats/rs6000/powerpc-32.dat: Regenerate.
874 * regformats/rs6000/powerpc-32l.dat: Regenerate.
875 * regformats/rs6000/powerpc-64l.dat: Regenerate.
876 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
877 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
878 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
879 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
880 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
881 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
882 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
883 * regformats/s390-linux32.dat: Regenerate.
884 * regformats/s390-linux32v1.dat: Regenerate.
885 * regformats/s390-linux32v2.dat: Regenerate.
886 * regformats/s390-linux64.dat: Regenerate.
887 * regformats/s390-linux64v1.dat: Regenerate.
888 * regformats/s390-linux64v2.dat: Regenerate.
889 * regformats/s390-te-linux64.dat: Regenerate.
890 * regformats/s390x-linux64.dat: Regenerate.
891 * regformats/s390x-linux64v1.dat: Regenerate.
892 * regformats/s390x-linux64v2.dat: Regenerate.
893 * regformats/s390x-te-linux64.dat: Regenerate.
894 * regformats/tic6x-c62x-linux.dat: Regenerate.
895 * regformats/tic6x-c62x.dat: Regenerate.
896 * regformats/tic6x-c64x-linux.dat: Regenerate.
897 * regformats/tic6x-c64x.dat: Regenerate.
898 * regformats/tic6x-c64xp-linux.dat: Regenerate.
899 * regformats/tic6x-c64xp.dat: Regenerate.
900
db74e4ba
PA
9012014-10-01 Pedro Alves <palves@redhat.com>
902
903 * features/Makefile: Update comments.
904 (XMLTOC): List all xml files we build C files from.
905 (clean-cfiles): New rule.
906
d63f2f84
PA
9072014-10-01 Pedro Alves <palves@redhat.com>
908
909 * features/i386/amd64-avx512-linux.c: Regenerate.
910 * features/i386/amd64-avx512.c: Regenerate.
911 * features/i386/x32-avx512-linux.c: Regenerate.
912 * features/i386/x32-avx512.c: Regenerate.
913
20ad026d
PA
9142014-10-01 Pedro Alves <palves@redhat.com>
915
916 * features/Makefile (WHICH): Remove arm-with-m,
917 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
918
acc9fe45
PA
9192014-10-01 Pedro Alves <palves@redhat.com>
920
921 * features/Makefile (clean): New rule.
922
e001e535
PA
9232014-10-01 Pedro Alves <palves@redhat.com>
924
925 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
926 (zmm14h): Add missing end quotes.
927
bdc14417
PA
9282014-10-01 Pedro Alves <palves@redhat.com>
929
930 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
931 * features/aarch64.c: Regenerate.
932
d83ad864
DB
9332014-09-30 Don Breazeal <donb@codesourcery.com>
934
935 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
936 code so as to work with follow_fork_inferior.
937 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
938 (inf_ttrace_create_inferior): Remove reference to
939 inf_ttrace_vfork_ppid.
940 (inf_ttrace_attach): Ditto.
941 (inf_ttrace_detach): Ditto.
942 (inf_ttrace_kill): Use current_inferior instead of
943 inf_ttrace_vfork_ppid.
944 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
945 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
946 inferior away from the parent.
947 * infrun.c (follow_fork): Call follow_fork_inferior instead of
948 target_follow_fork.
949 (follow_fork_inferior): New function.
950 (follow_inferior_reset_breakpoints): Make function static.
951 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
952 * linux-nat.c (linux_child_follow_fork): Move target-independent
953 code to infrun.c:follow_fork_inferior.
954
29082443
AA
9552014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
956
957 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
958 * gdbarch.c: Regenerate.
959 * gdbarch.h: Likewise.
960 * corelow.c (sniff_core_bfd): Drop presence check for deleted
961 gdbarch method 'regset_from_core_section'.
962 (get_core_register_section): Remove handling for the case that
963 regset == NULL and regset_from_core_section is defined.
964 (get_core_registers): Drop check for deleted method.
965 * procfs.c (procfs_do_thread_registers): Adjust comment.
966
f968fe80
AA
9672014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
968
969 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
970 (linux_nat_make_corefile_notes): Remove.
971 (linux_target_install_ops): Do not set target method
972 'make_corefile_notes'.
973 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
974 Remove field.
975 (linux_corefile_thread_callback): Instead of args->collect, call
976 linux_collect_thread_registers.
977 (linux_make_corefile_notes): Remove 'collect' parameter. Return
978 NULL unless there is a regset iterator.
979 (linux_make_corefile_notes_1): Remove.
980 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
981 by linux_make_corefile_notes.
982 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
983
174ad59a
AA
9842014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
985
986 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
987 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
988 Remove.
989 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
990
97094034
AA
9912014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
992
993 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
994 (xtensa_iterate_over_regset_sections): New.
995 (xtensa_gdbarch_init): Adjust gdbarch initialization.
996
f73d3ce7
AA
9972014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
998
999 * vax-tdep.c (vax_regset_from_core_section): Remove.
1000 (vax_iterate_over_regset_sections): New.
1001 (vax_gdbarch_init): Adjust gdbarch initialization.
1002
cb24567a
AA
10032014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1004
1005 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
1006 (tilegx_regset_from_core_section): Remove.
1007 (tilegx_iterate_over_regset_sections): New.
1008 (tilegx_linux_init_abi): Adjust gdbarch initialization.
1009
e5139de8
AA
10102014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1011
1012 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
1013 (sparc_iterate_over_regset_sections): New.
1014 (sparc32_gdbarch_init): Adjust gdbarch initialization.
1015 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
1016 targets.
1017 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
1018 (sparc64fbsd_init_abi): Call fbsd_init_abi.
1019 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
1020 target method 'make_corefile_notes'.
1021
c6d41a6f
AA
10222014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1023
1024 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
1025 'sizeof_gregset' and 'sizeof_fpregset'.
1026 * sh-tdep.c (sh_regset_from_core_section): Remove.
1027 (sh_iterate_over_regset_sections): New.
1028 (sh_gdbarch_init): Adjust gdbarch initialization.
1029 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
1030 sizeof_fpregset.
1031 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
1032 'sizeof_gregset'.
1033
9845a0b5
AA
10342014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1035
1036 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
1037 (score7_linux_iterate_over_regset_sections): New.
1038 (score_gdbarch_init): Adjust gdbarch initialization.
1039
23ea9aeb
AA
10402014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1041
1042 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
1043 FreeBSD targets.
1044 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
1045 method 'make_corefile_notes'.
1046 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
1047 (ppcfbsd_regset_from_core_section): Remove.
1048 (ppcfbsd_iterate_over_regset_sections): New.
1049 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
1050 initialization.
1051 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
1052 (ppcnbsd_iterate_over_regset_sections): New.
1053 (ppcnbsd_init_abi): Adjust.
1054 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
1055 (ppcobsd_iterate_over_regset_sections): New.
1056 (ppcobsd_init_abi): Adjust.
1057 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
1058 (rs6000_aix_iterate_over_regset_sections): New.
1059 (rs6000_aix_init_osabi): Adjust.
1060
c5b8d704
AA
10612014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1062
1063 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
1064 (nios2_regset_from_core_section): Remove.
1065 (nios2_iterate_over_regset_sections): New.
1066 (nios2_linux_init_abi): Adjust gdbarch initialization.
1067
3636e608
AA
10682014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1069
1070 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
1071 (am33_iterate_over_regset_sections): New.
1072 (am33_linux_init_osabi): Adjust gdbarch initialization.
1073
d4036235
AA
10742014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1075
1076 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
1077 (mips_linux_iterate_over_regset_sections): New.
1078 (mips_linux_init_abi): Adjust gdbarch initialization.
1079 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
1080 (mips64obsd_iterate_over_regset_sections): New.
1081 (mips64obsd_init_abi): Adjust.
1082 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
1083 (mipsnbsd_iterate_over_regset_sections): New.
1084 (mipsnbsd_init_abi): Adjust.
1085
b61ddd6e
AA
10862014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1087
1088 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
1089 (m88k_iterate_over_regset_sections): New.
1090 (m88k_gdbarch_init): Adjust gdbarch initialization.
1091
55a2906a
AA
10922014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1093
1094 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
1095 (ia64_linux_iterate_over_regset_sections): New.
1096 (ia64_linux_init_abi): Adjust gdbarch initialization.
1097
022c98ab
AA
10982014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1099
1100 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
1101 (m68kbsd_iterate_over_regset_sections): New.
1102 (m68kbsd_init_abi): Adjust gdbarch initialization.
1103 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
1104 (m68k_linux_iterate_over_regset_sections): New.
1105 (m68k_linux_init_abi): Adjust gdbarch initialization.
1106
5fac247f
AA
11072014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1108
1109 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
1110 (m32r_linux_regset_from_core_section): Remove.
1111 (m32r_linux_iterate_over_regset_sections): New.
1112 (m32r_linux_init_abi): Adjust gdbarch initialization.
1113
490496c3
AA
11142014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1115
1116 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
1117 (amd64obsd_iterate_over_regset_sections): New.
1118 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
1119 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
1120 Remove.
1121 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
1122 regset_from_core_section initialization.
1123 * i386-tdep.c (i386_regset_from_core_section): Remove.
1124 (i386_iterate_over_regset_sections): New.
1125 (i386_gdbarch_init): Adjust gdbarch initialization.
1126 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
1127 (i386_iterate_over_regset_sections): New prototype.
1128 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
1129 Remove.
1130 (i386obsd_aout_iterate_over_regset_sections): New.
1131 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
1132 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
1133 targets.
1134 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
1135 (amd64fbsd_init_abi): Call fbsd_init_abi.
1136 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
1137 (i386fbsd4_init_abi): Call fbsd_init_abi.
1138 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
1139 target method 'make_corefile_notes'.
1140 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
1141
50c5eb53
AA
11422014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1143
1144 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
1145 (hppa_hpux_iterate_over_regset_sections): New.
1146 (hppa_hpux_init_abi): Adjust gdbarch initialization.
1147 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
1148 (hppa_linux_iterate_over_regset_sections): New.
1149 (hppa_linux_init_abi): Adjust.
1150 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
1151 (hppanbsd_iterate_over_regset_sections): New.
1152 (hppanbsd_init_abi): Adjust.
1153 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
1154 (hppaobsd_iterate_over_regset_sections): New.
1155 (hppaobsd_init_abi): Adjust.
1156
66afae4f
AA
11572014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1158
1159 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
1160 (frv_linux_iterate_over_regset_sections): New.
1161 (frv_linux_init_abi): Adjust gdbarch initialization.
1162
ed09174e
AA
11632014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1164
1165 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
1166 (armbsd_iterate_over_regset_sections): New prototype.
1167 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
1168 (armbsd_iterate_over_regset_sections): New.
1169 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
1170 initialization.
1171
dff2166e
AA
11722014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1173
1174 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
1175 (alpha_linux_iterate_over_regset_sections): New.
1176 (alpha_linux_init_abi): Adjust gdbarch initialization.
1177 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
1178 prototype.
1179 (alphanbsd_iterate_over_regset_sections): New prototype.
1180
4108500a
AA
11812014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1182
1183 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
1184 Remove.
1185 (aarch64_linux_iterate_over_regset_sections): New.
1186 (aarch64_linux_init_abi): Adjust gdbarch initialization.
1187
a904c024
AA
11882014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1189
1190 * fbsd-tdep.c: New file.
1191 * fbsd-tdep.h: New file.
1192 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
1193 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
1194 (ALLDEPFILES): Add fbsd-tdep.c.
1195
8f0435f7
AA
11962014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1197
1198 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
1199 parameter.
1200 * gdbarch.h: Regenerate.
1201 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
1202 iterator.
1203 (get_core_register_section): Add parameter 'regset' and use it, if
1204 set. Add parameter 'min_size' and verify the bfd section size
1205 against it.
1206 (get_core_registers_cb): Add parameter 'regset' and pass it to
1207 get_core_register section. For the "standard" register sections
1208 ".reg" and ".reg2", set an appropriate default for human_name.
1209 (get_core_registers): Don't abort when the gdbarch has an iterator
1210 but no regset_from_core_section. Add NULL/0 for parameters
1211 'regset'/'min_size' in calls to get_core_register_section.
1212 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
1213 'regset' and use it instead of calling the
1214 regset_from_core_section gdbarch method.
1215 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
1216 * i386-tdep.c (i386_supply_xstateregset)
1217 (i386_collect_xstateregset, i386_xstateregset): Moved to
1218 i386-linux-tdep.c.
1219 (i386_regset_from_core_section): Drop handling for .reg-xfp and
1220 .reg-xstate.
1221 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
1222 core file support only if the regset iterator hasn't been set.
1223 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
1224 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
1225 Moved from i386-tdep.c and renamed to *_linux*.
1226 (i386_linux_iterate_over_regset_sections): Add regset parameter to
1227 each callback invocation. Allow any .reg-xstate size when reading
1228 from a core file.
1229 * amd64-tdep.c (amd64_supply_xstateregset)
1230 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
1231 amd64-linux-tdep.c.
1232 (amd64_regset_from_core_section): Remove.
1233 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
1234 install an amd64-specific regset_from_core_section gdbarch method.
1235 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
1236 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
1237 Moved from amd64-tdep.c and renamed to *_linux*.
1238 (amd64_linux_iterate_over_regset_sections): Add regset parameter
1239 to each callback invocation. Allow any .reg-xstate size when
1240 reading from a core file.
1241 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
1242 (arm_linux_iterate_over_regset_sections): Add regset parameter to
1243 each callback invocation.
1244 (arm_linux_init_abi): No longer set the regset_from_core_section
1245 gdbarch method.
1246 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
1247 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
1248 each callback invocation.
1249 (ppc_linux_init_abi): No longer set the regset_from_core_section
1250 gdbarch method.
1251 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
1252 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
1253 (s390_regset_from_core_section): Remove.
1254 (s390_iterate_over_regset_sections): Add regset parameter to each
1255 callback invocation.
1256 (s390_gdbarch_init): No longer set the regset_from_core_section
1257 gdbarch method. Drop initialization of deleted tdep fields.
1258
5aa82d05
AA
12592014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1260
1261 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
1262 (amd64_linux_iterate_over_regset_sections): New.
1263 (amd64_linux_init_abi_common): Don't install the regset section
1264 list, but the new iterator in gdbarch.
1265 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
1266 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
1267 (arm_linux_iterate_over_regset_sections): ...here. New function.
1268 (arm_linux_init_abi): Set iterator instead of section list.
1269 * corelow.c (get_core_registers_cb): New function, logic moved
1270 from...
1271 (get_core_registers): ...loop body here. Use new iterator method
1272 instead of walking through the regset section list.
1273 * gdbarch.sh: Remove 'core_regset_sections'. New method
1274 'iterate_over_regset_sections'. New typedef
1275 'iterate_over_regset_sections_cb'.
1276 * gdbarch.c: Regenerate.
1277 * gdbarch.h: Likewise.
1278 * i386-linux-tdep.c (i386_linux_regset_sections)
1279 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
1280 Remove.
1281 (i386_linux_iterate_over_regset_sections): New.
1282 (i386_linux_init_abi): Don't choose a regset section list, but
1283 install new iterator in gdbarch.
1284 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
1285 (linux_collect_regset_section_cb): New function, logic moved
1286 from...
1287 (linux_collect_thread_registers): ...loop body here. Use iterator
1288 method instead of walking through list.
1289 (linux_make_corefile_notes_1): Check for presence of iterator
1290 method instead of regset section list.
1291 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
1292 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
1293 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
1294 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
1295 (ppc_linux_iterate_over_regset_sections): ...here. New function.
1296 (ppc_linux_init_abi): Don't choose from above regset section
1297 lists, but install new iterator in gdbarch.
1298 * regset.h (struct core_regset_section): Remove.
1299 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
1300 have_linux_v1, have_linux_v2, and have_tdb.
1301 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
1302 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
1303 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
1304 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
1305 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
1306 (s390_iterate_over_regset_sections): ...here. New function. Use
1307 new tdep fields.
1308 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
1309 regset section lists, but install new iterator.
1310
2eca4a8d
JK
13112014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1312
1313 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
1314
a73c2b56
SM
13152014-09-26 Simon Marchi <simon.marchi@ericsson.com>
1316
1317 * progspace.c (print_program_space): Don't prune program spaces
1318 before printing them.
1319
03d46957
PA
13202014-09-25 Pedro Alves <palves@redhat.com>
1321
1322 * infrun.c (user_visible_resume_ptid): Don't check
1323 singlestep_breakpoints_inserted_p.
1324
e558d7c1
PA
13252014-09-25 Pedro Alves <palves@redhat.com>
1326
1327 * breakpoint.c (should_be_inserted): Add debug output.
1328
7f89fd65
PA
13292014-09-25 Pedro Alves <palves@redhat.com>
1330
1331 * infrun.c (stepping_past_instruction_at)
1332 (clear_exit_convenience_vars): Point at infrun.h instead of
1333 inferior.h.
1334 (handle_signal_stop): Fix typo.
1335
b7576e5c
YQ
13362014-09-24 Yao Qi <yao@codesourcery.com>
1337
1338 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
1339 bitmask.
1340
9a6cf368
GB
13412014-09-22 Gary Benson <gbenson@redhat.com>
1342
1343 * target.c (target_stop): Updated comment.
1344
03f4463b
GB
13452014-09-22 Gary Benson <gbenson@redhat.com>
1346
1347 * target/target.h (target_stop_ptid): Renamed as...
1348 (target_stop_and_wait): New function. Updated comment.
1349 All uses updated.
1350 (target_continue_ptid): Renamed as...
1351 (target_continue_no_signal): New function. Updated comment.
1352 All uses updated.
1353
a25a5a45
PA
13542014-09-22 Pedro Alves <palves@redhat.com>
1355
1356 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
1357 and "auto" merged.
1358 * breakpoint.c (enum ugll_insert_mode): New enum.
1359 (always_inserted_mode): Now a plain boolean.
1360 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
1361 (breakpoints_always_inserted_mode): Delete.
1362 (breakpoints_should_be_inserted_now): New function.
1363 (insert_breakpoints): Pass UGLL_INSERT to
1364 update_global_location_list instead of calling
1365 insert_breakpoint_locations manually.
1366 (create_solib_event_breakpoint_1): New, factored out from ...
1367 (create_solib_event_breakpoint): ... this.
1368 (create_and_insert_solib_event_breakpoint): Use
1369 create_solib_event_breakpoint_1 instead of calling
1370 insert_breakpoint_locations manually.
1371 (update_global_location_list): Change parameter type from boolean
1372 to enum ugll_insert_mode. All callers adjusted. Adjust to use
1373 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
1374 (update_global_location_list_nothrow): Change parameter type from
1375 boolean to enum ugll_insert_mode.
1376 (_initialize_breakpoint): "breakpoint always-inserted" option is
1377 now a boolean command. Update help text.
1378 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
1379 (breakpoints_should_be_inserted_now): New declaration.
1380 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
1381 Remove breakpoints_always_inserted_mode check.
1382 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
1383 * remote.c (remote_start_remote): Likewise.
1384
04086b45
PA
13852014-09-22 Pedro Alves <palves@redhat.com>
1386
1387 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
1388 (insert_breakpoints): Don't call insert_breakpoint_locations here.
1389 Instead, pass UGLL_INSERT to update_global_location_list.
1390 (update_global_location_list): Change parameter type from boolean
1391 to enum ugll_insert_mode. All callers adjusted. Adjust to use
1392 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
1393 (create_solib_event_breakpoint_1): New, factored out from ...
1394 (create_solib_event_breakpoint): ... this.
1395 (create_and_insert_solib_event_breakpoint): Use
1396 create_solib_event_breakpoint_1 instead of calling
1397 insert_breakpoint_locations manually.
1398 (update_global_location_list): Handle UGLL_INSERT.
1399
44702360
PA
14002014-09-22 Pedro Alves <palves@redhat.com>
1401
1402 * breakpoint.c (enum ugll_insert_mode): New enum.
1403 (update_global_location_list)
1404 (update_global_location_list_nothrow): Change parameter type from
1405 boolean to enum ugll_insert_mode. All callers adjusted.
1406
93c6145a
JB
14072014-09-19 Joel Brobecker <brobecker@adacore.com>
1408
1409 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
1410 SystemTap support in GDB.
1411
89a5711c
DB
14122014-09-19 Don Breazeal <donb@codesourcery.com>
1413
1414 * linux-nat.c (linux_handle_extended_wait): Call
1415 linux_ptrace_get_extended_event.
1416 (wait_lwp): Call linux_is_extended_waitstatus.
1417 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
1418 and linux_is_extended_waitstatus.
1419 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
1420 linux_ptrace_get_extended_event.
1421 (linux_ptrace_get_extended_event): New function.
1422 (linux_is_extended_waitstatus): New function.
1423 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
1424 (linux_is_extended_waitstatus): New declarations.
1425
c3b7b696
YQ
14262014-09-19 Yao Qi <yao@codesourcery.com>
1427
1428 * dwarf2read.c (dwarf_decode_lines): Update declaration.
1429 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
1430 comments. Callers update.
1431 (dwarf_decode_lines): Likewise.
1432 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
1433 comments. Skip the line table if 'lowpc' is greater than
1434 'address'. Don't check
1435 dwarf2_per_objfile->has_section_at_zero.
1436
2b4fd423
DE
14372014-09-18 Doug Evans <dje@google.com>
1438
1439 * NEWS: Mention new "producer" attribute of gdb.Symtab.
1440 * python/py-symtab.c (stpy_get_producer): New function.
1441 (symtab_object_getset): Add "producer" attribute.
1442
5e43d467
UW
14432014-09-17 Ulrich Weigand  <uweigand@de.ibm.com>
1444
1445 PR gdb/17384
1446 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
1447 (do_captured_read_memory_integer): Remove.
1448 (safe_read_memory_integer): Use target_read_memory directly instead
1449 of catching errors in do_captured_read_memory_integer.
1450
04e79979
MR
14512014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
1452
1453 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
1454 not gdb/doc.
1455
76aeec5b
SDJ
14562014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1457
1458 * objc-lang.c (find_implementation_from_class): Remove dead code.
1459
2f693f9d
SDJ
14602014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1461
1462 PR cli/7233
1463 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
1464 "fprintf_unfiltered (gdb_stdlog...)".
1465
bb9d5f81
PP
14662014-09-16 Patrick Palka <patrick@parcs.ath.cx>
1467
1468 PR breakpoints/12526
1469 * breakpoint.h (struct watchpoint): New fields val_bitpos and
1470 val_bitsize.
1471 * breakpoint.c (watch_command_1): Use these fields to retain
1472 bitfield information.
1473 (extract_bitfield_from_watchpoint_value): New function.
1474 (watchpoint_check): Use it.
1475 (update_watchpoint): Use it. Optimize the address and length of a
1476 HW watchpoint pointing to a bitfield.
1477 * value.h (unpack_value_bitfield): New prototype.
1478 * value.c (unpack_value_bitfield): Make extern.
1479
05db5edd
ST
14802014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
1481
1482 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
1483 x86-dregs.o.
1484 * gnu-nat.c (inf_threads): New function.
1485 * gnu-nat.h (inf_threads_ftype): New typedef.
1486 (inf_threads): New declaration.
1487 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
1488 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
1489 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
1490 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
1491 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
1492 (i386_gnu_dr_get_control): New functions.
1493 (reg_addr): New structure.
1494 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
1495 i386 debugging register hooks.
1496 * NEWS: Mention this.
1497
5a578da5
OJ
14982014-08-13 Omair Javaid <omair.javaid@linaro.org>
1499
1500 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
1501 vector data transfer instructions.
1502 (arm_record_coproc_data_proc): Updated.
1503
f20f80dd
OJ
15042014-08-13 Omair Javaid <omair.javaid@linaro.org>
1505
1506 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
1507 arm_record_exreg_ld_st_insn.
1508 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
1509 load/store insns.
1510
851f26ae
OJ
15112014-08-13 Omair Javaid <omair.javaid@linaro.org>
1512
1513 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
1514 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
1515 processing instructions.
1516
1e1b6563
OJ
15172014-08-13 Omair Javaid <omair.javaid@linaro.org>
1518
1519 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
1520 for advance SIMD struct ld/st insn.
1521 (thumb2_record_decode_insn_handler): Replace stub handler with
1522 thumb2_record_asimd_struct_ld_st.
1523
60cc5e93
OJ
15242014-08-13 Omair Javaid <omair.javaid@linaro.org>
1525
1526 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
1527 for asimd, vfp and coprocessor insns.
1528 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
1529 and coprocessor insns.
1530 (thumb2_record_coproc_insn): New function.
1531 (thumb2_record_decode_insn_handler): Update coprocessor insns record
1532 handlers.
1533 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
1534 opcode 110 insns.
1535
81219e53
DE
15362014-09-13 Doug Evans <xdje42@gmail.com>
1537
1538 * NEWS: Mention new "queue-signal" command.
1539 * infcmd.c (queue_signal_command): New function.
1540 (_initialize_infcmd): Add new queue-signal command.
1541
d36bf488
DE
15422014-09-13 Doug Evans <xdje42@gmail.com>
1543
1544 * linux-nat.c (wait_lwp): Add debugging printf.
1545 (linux_nat_wait_1): Ditto.
1546
f37f681c
PA
15472014-09-12 Pedro Alves <palves@redhat.com>
1548
1549 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
1550 (create_and_insert_solib_event_breakpoint): New functions.
1551 * breakpoint.h (create_and_insert_solib_event_breakpoint)
1552 (remove_solib_event_breakpoints_at_next_stop): New declarations.
1553 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
1554 (remove_dbx_link_breakpoint): Delete function.
1555 (insert_dbx_link_bpt_in_file): Use
1556 create_and_insert_solib_event_breakpoint instead of
1557 deprecated_insert_raw_breakpoint.
1558 (procfs_wait): Don't check whether we hit __dbx_link here.
1559 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
1560 here.
1561 * solib-irix.c (base_breakpoint): Delete global.
1562 (disable_break): Delete function.
1563 (enable_break): Use create_solib_event_breakpoint
1564 instead of deprecated_insert_raw_breakpoint.
1565 (irix_solib_handle_event): New function.
1566 (irix_solib_create_inferior_hook): Don't run the target or disable
1567 the mapping-complete breakpoint here.
1568 (_initialize_irix_solib): Install irix_solib_handle_event as
1569 so_ops->handle_event hook.
1570
9d9bf2df
EBM
15712014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1572 Ulrich Weigand  <uweigand@de.ibm.com>
1573
1574 PR tdep/17379
1575 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
1576 instead of read_memory_unsigned_integer.
1577
b006a80e
GB
15782014-09-12 Gary Benson <gbenson@redhat.com>
1579
1580 * nat/linux-waitpid.c: Include common-defs.h.
1581 [GDBSERVER]: Add FIXME comment.
1582 [!GDBSERVER]: Don't include defs.h or signal.h.
1583 (linux_debug) [!GDBSERVER]: Remove empty block.
1584
296b1496
GB
15852014-09-12 Gary Benson <gbenson@redhat.com>
1586
1587 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
1588 Don't include defs.h or server.h.
1589
53f81362
GB
15902014-09-12 Gary Benson <gbenson@redhat.com>
1591
1592 * nat/linux-btrace.c: Include common-defs.h.
1593 Don't include defs.h, server.h or gdbthread.h.
1594 * nat/linux-btrace.h (struct target_ops): New forward declaration.
1595
727605ca
GB
15962014-09-12 Gary Benson <gbenson@redhat.com>
1597
1598 * common/agent.c: Include common-defs.h.
1599 Don't include defs.h or server.h.
1600 * common/buffer.c: Likewise.
1601 * common/common-debug.c: Likewise.
1602 * common/common-utils.c: Likewise.
1603 * common/errors.c: Likewise.
1604 * common/filestuff.c: Likewise.
1605 * common/format.c: Likewise.
1606 * common/gdb_vecs.c: Likewise.
1607 * common/print-utils.c: Likewise.
1608 * common/ptid.c: Likewise.
1609 * common/rsp-low.c: Likewise.
1610 * common/signals.c: Likewise.
1611 * common/vec.c: Likewise.
1612 * common/xml-utils.c: Likewise.
1613 * nat/linux-osdata.c: Likewise.
1614 * nat/linux-procfs.c: Likewise.
1615 * nat/linux-ptrace.c: Likewise.
1616 * nat/mips-linux-watch.c: Likewise.
1617 * target/waitstatus.c: Likewise.
1618
361c8ade
GB
16192014-09-12 Tom Tromey <tromey@redhat.com>
1620 Gary Benson <gbenson@redhat.com>
1621
1622 * common/common-regcache.h: New file.
1623 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
1624 * regcache.h: Include common-regcache.h.
1625 (regcache_read_pc): Don't declare.
1626 * regcache.c (get_thread_regcache_for_ptid): New function.
1627 * nat/linux-btrace.c: Don't include regcache.h.
1628 Include common-regcache.h.
1629 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
1630
a01cbb49
TS
16312014-09-11 Thomas Schwinge <thomas@codesourcery.com>
1632
1633 * regcache.h (struct regset): Declare.
1634
98880d46
PA
16352014-09-11 Pedro Alves <palves@redhat.com>
1636
1637 PR gdb/17347
1638 * main.c: Include "infrun.h".
1639 (catch_command_errors, catch_command_errors_const): Wait for the
1640 foreground command to complete.
1641 * top.c (maybe_wait_sync_command_done): New function, factored out
1642 from ...
1643 (maybe_wait_sync_command_done): ... here.
1644 * top.h (maybe_wait_sync_command_done): New declaration.
1645
bd9269f7
GB
16462014-09-11 Tom Tromey <tromey@redhat.com>
1647 Gary Benson <gbenson@redhat.com>
1648
1649 * common/symbol.h: New file.
1650 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
1651 * minsyms.c (find_minimal_symbol_address): New function.
1652 * common/agent.c: Include common/symbol.h.
1653 [!GDBSERVER]: Don't include objfiles.h.
1654 (agent_look_up_symbols): Use find_minimal_symbol_address.
1655
f8c1d06b
GB
16562014-09-11 Gary Benson <gbenson@redhat.com>
1657
1658 * target/target.h (target_stop_ptid, target_continue_ptid):
1659 Declare.
1660 * target.c (target_stop_ptid, target_continue_ptid): New
1661 functions.
1662 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
1663 (agent_run_command): Always use target_stop_ptid and
1664 target_continue_ptid.
1665
721ec300
GB
16662014-09-11 Tom Tromey <tromey@redhat.com>
1667 Gary Benson <gbenson@redhat.com>
1668
1669 * target/target.h: New file.
1670 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
1671 * target.h: Include target/target.h.
1672 (target_read_memory, target_write_memory): Don't declare.
1673 * target.c (target_read_uint32): New function.
1674 * common/agent.c: Include target/target.h.
1675 [!GDBSERVER]: Don't include target.h.
1676 (helper_thread_id): Type changed to uint32_t.
1677 (agent_get_helper_thread_id): Use target_read_uint32.
1678 (agent_run_command): Always use target_read_memory and
1679 target_write_memory.
1680 (agent_capability): Type changed to uint32_t.
1681 (agent_capability_check): Use target_read_uint32.
1682
c5e92cca
GB
16832014-09-11 Gary Benson <gbenson@redhat.com>
1684
1685 * common/common-debug.h (show_debug_regs): Declare.
1686 * common/common-debug.c (show_debug_regs): Define.
1687 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
1688 all uses with show_debug_regs. Replace all uses that considered
1689 debug_hw_points as a multi-value integer with straight boolean
1690 uses.
1691 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
1692 with show_debug_regs.
1693 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
1694 all uses with show_debug_regs.
1695 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
1696 uses with show_debug_regs.
1697
eeef931a
UW
16982014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
1699
1700 * findvar.c (address_from_register): Handle targets requiring
1701 a special conversion routine even for plain pointer types.
1702
8efa9855
UW
17032014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
1704
1705 * rs6000-nat.c (exec_one_dummy_insn): Remove.
1706 (store_register): Do not call exec_one_dummy_insn.
1707
eb479039
JB
17082014-09-10 Joel Brobecker <brobecker@adacore.com>
1709
1710 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
1711 dereference it first. Use value_enclosing_type instead of
1712 value_type.
1713 (ada_array_length): Likewise.
1714
deede10c
JB
17152014-09-10 Joel Brobecker <brobecker@adacore.com>
1716
1717 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
1718 Adjust function implementation and documentation accordingly.
1719 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
1720 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
1721 Update call to ada_value_ptr_subscript.
1722
7828a5f5
JB
17232014-09-10 Joel Brobecker <brobecker@adacore.com>
1724
1725 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
1726 instead of VAL's type.
1727
35782f14
JB
17282014-09-10 Joel Brobecker <brobecker@adacore.com>
1729
1730 * amd64-linux-nat.c: Add <sys/uio.h> #include.
1731
d342a0da
DE
17322014-09-09 Doug Evans <xdje42@gmail.com>
1733
1734 PR guile/17367
1735 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
1736 last parameter to pkg-config, not first.
1737 * configure.ac: Pass --with-guile provided pkg-config path to
1738 GDB_GUILE_PROGRAM_NAMES.
1739 * configure: Regenerate.
1740
b4a3d263
GKB
17412014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
1742
1743 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
1744 Bertazi".
1745
6e466374
MR
17462014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
1747
1748 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
1749 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
1750 the list of sections determining GDB_OSABI_IRIX.
1751
a1ada89a
JH
17522014-09-09 James Hogan <james.hogan@imgtec.com>
1753
1754 * MAINTAINERS (Write After Approval): Add "James Hogan".
1755
86db008d
JH
17562014-09-09 James Hogan <james.hogan@imgtec.com>
1757
1758 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
1759
72fde3df
JB
17602014-09-09 Joel Brobecker <brobecker@adacore.com>
1761
1762 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
1763
92d8d229
DE
17642014-09-08 Doug Evans <xdje42@gmail.com>
1765
1766 PR 17247
1767 * guile.c: #include <signal.h>.
1768 (_initialize_guile): Block SIGCHLD while initializing Guile.
1769
1770 Replaces the following, which is reverted.
1771
1772 2014-07-26 Doug Evans <xdje42@gmail.com>
1773
1774 PR 17185
1775 * configure.ac: Add check for header gc/gc.h.
1776 Add check for function setenv.
1777 * configure: Regenerate.
1778 * config.in: Regenerate.
1779 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1780
d81412aa
DE
17812014-09-08 Doug Evans <xdje42@gmail.com>
1782
1783 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
1784 with named constant. Fix style of pointer comparison.
1785 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
1786
a9f116cb
GKB
17872014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
1788
1789 PR gdb/17035
1790 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
1791 decide whether we display the command on "show user".
1792 * cli/cli-script.c (show_user_1): Only verify cmdlines after
1793 printing command name.
1794 * cli/cli-decode.h (cli_user_command_p): Declare new function.
1795 * cli/cli-decode.c (cli_user_command_p): Create helper function
1796 to verify whether cmd_list_element is a user-defined command.
1797
c75bd3a2
JK
17982014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1799
1800 PR python/17355
1801 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
1802 Fix goto out of TRY_CATCH.
1803
faa42425 18042014-09-06 Doug Evans <xdje42@gmail.com>
1a52a81c 1805 Tom Tromey <tromey@redhat.com>
faa42425
DE
1806
1807 PR 15276
1808 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
1809 $_any_caller_matches.
1810 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
1811 * python/lib/gdb/function/caller_is.py: New file.
1812
0d41ba00
DE
18132014-09-06 Doug Evans <xdje42@gmail.com>
1814
1815 * infcmd.c (program_info): Fix typo.
1816
474ca4f6
SDJ
18172014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
1818
1819 PR gdb/17235
1820 * stap-probe.c (stap_parse_single_operand): Delete unused variable
1821 'number'. New variable 'has_digit'. Rewrite code to deal with
1822 subexpressions on SDT probes.
1823
ebf13736
PA
18242014-09-04 Pedro Alves <palves@redhat.com>
1825
1826 * c-exp.y (parse_number): Skip handling base-switching prefixes if
1827 the input is only one character long.
1828
eb0b0463
SDJ
18292014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
1830
1831 PR fortran/17237
1832 * f-valprint.c (f_val_print): Specify the correct print option to
1833 use when printing integer values.
1834
5ee44bfa
GB
18352014-09-04 Gary Benson <gbenson@redhat.com>
1836
1837 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
1838 Remove code to cope with LWPs wrapped as PIDs.
1839 Add assertions to ensure no wrapped LWPs are passed.
1840
4875ffdb
PA
18412014-09-04 Pedro Alves <palves@redhat.com>
1842
1843 * value.c (value_ranges_copy_adjusted): New function, factored out
1844 from ...
1845 (value_contents_copy_raw): ... here.
1846 (unpack_value_bits_as_long_1): Rename back to ...
1847 (unpack_bits_as_long): ... this. Remove 'original_value' and
1848 'result' parameters. Change return type to LONGEST.
1849 (unpack_value_bits_as_long): Delete.
1850 (unpack_value_field_as_long_1): Delete.
1851 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
1852 (unpack_value_bitfield): New function.
1853 (value_field_bitfield): Reimplement using unpack_value_bitfield.
1854 (value_fetch_lazy): Use unpack_value_bitfield.
1855 * value.h (unpack_value_bits_as_long): Delete declaration.
1856
5f3b99cf
SS
18572014-09-03 Sasha Smundak <asmundak@google.com>
1858
1859 * python/py-frame.c (frapy_read_register): New function.
1860
ac740bc7
JH
18612014-09-03 James Hogan <james.hogan@imgtec.com>
1862
1863 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
1864 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
1865
7d793aa9
SDJ
18662014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
1867
1868 PR python/16699
1869 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
1870 function.
1871 (add_cmd): Set "completer_handle_brkchars" to NULL.
1872 * cli/cli-decode.h (struct cmd_list_element)
1873 <completer_handle_brkchars>: New field.
1874 * command.h (completer_ftype_void): New typedef.
1875 (set_cmd_completer_handle_brkchars): New prototype.
1876 * completer.c (set_gdb_completion_word_break_characters): New
1877 function.
1878 (complete_line_internal): Call "completer_handle_brkchars"
1879 callback from command.
1880 * completer.h: Include "command.h".
1881 (set_gdb_completion_word_break_characters): New prototype.
1882 * python/py-cmd.c (cmdpy_completer_helper): New function.
1883 (cmdpy_completer_handle_brkchars): New function.
1884 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
1885 (cmdpy_init): Set completer_handle_brkchars to
1886 cmdpy_completer_handle_brkchars.
1887
97ea6506
GB
18882014-09-03 Gary Benson <gbenson@redhat.com>
1889
1890 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
1891 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
1892 Loop conditions changed to equivalent form.
1893 (struct x86_debug_reg_state): Updated dr_ref_count comment.
1894 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
1895 ALL_DEBUG_ADDRESS_REGISTERS.
1896
d1437815
JB
18972014-09-03 Joel Brobecker <brobecker@adacore.com>
1898
1899 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
1900 description fix.
1901
9b94fcf1
DE
19022014-09-02 Doug Evans <dje@google.com>
1903
1904 * typeprint.c (find_global_typedef): Fix comment.
1905
df7e5265
GB
19062014-09-02 Gary Benson <gbenson@redhat.com>
1907
1908 * i386-nat.h: Renamed as...
1909 * x86-nat.h: New file. All type, function and variable name
1910 prefixes changed from "i386_" to "x86_". All references updated.
1911 * i386-nat.c: Renamed as...
1912 * x86-nat.c: New file. All type, function and variable name
1913 prefixes changed from "i386_" to "x86_". All references updated.
1914 * common/i386-xstate.h: Renamed as...
1915 * common/x86-xstate.h: New file. All type, function and variable
1916 name prefixes changed from "i386_" to "x86_". All references
1917 updated.
1918 * nat/i386-cpuid.h: Renamed as...
1919 * nat/x86-cpuid.h: New file. All type, function and variable name
1920 prefixes changed from "i386_" to "x86_". All references updated.
1921 * nat/i386-gcc-cpuid.h: Renamed as...
1922 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
1923 name prefixes changed from "i386_" to "x86_". All references
1924 updated.
1925 * nat/i386-dregs.h: Renamed as...
1926 * nat/x86-dregs.h: New file. All type, function and variable name
1927 prefixes changed from "i386_" to "x86_". All references updated.
1928 * nat/i386-dregs.c: Renamed as...
1929 * nat/x86-dregs.c: New file. All type, function and variable name
1930 prefixes changed from "i386_" to "x86_". All references updated.
1931
1c3569d4
MR
19322014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
1933
1934 * varobj.c (_initialize_varobj): Move to the end of file.
1935
ff55e1b5
GB
19362014-08-29 Gary Benson <gbenson@redhat.com>
1937
1938 * common/common-exceptions.h: New file.
1939 * common/common-exceptions.c: Likewise.
1940 * Makefile.in (SFILES): Add common/common-exceptions.c.
1941 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
1942 (COMMON_OBS): Add common-exceptions.o.
1943 (common-exceptions.o): New rule.
1944 * exceptions.h (common-exceptions.h): Include.
1945 (gdb_setjmp.h): Do not include.
1946 (return_reason): Moved to common-exceptions.h.
1947 (enum return_reason): Likewise.
1948 (RETURN_MASK): Likewise.
1949 (typedef return_mask): Likewise.
1950 (enum errors): Likewise.
1951 (struct gdb_exception): Likewise.
1952 (exceptions_state_mc_init): Likewise.
1953 (exceptions_state_mc_action_iter): Likewise.
1954 (exceptions_state_mc_action_iter_1): Likewise.
1955 (TRY_CATCH): Likewise.
1956 (throw_exception): Likewise.
1957 (throw_verror): Likewise.
1958 (throw_vquit): Likewise.
1959 (throw_error): Likewise.
1960 (throw_quit): Likewise.
1961 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
1962 (enum catcher_action): Likewise.
1963 (struct catcher): Likewise.
1964 (current_catcher): Likewise.
1965 (catcher_list_size): Likewise.
1966 (exceptions_state_mc_init): Likewise.
1967 (catcher_pop): Likewise.
1968 (exceptions_state_mc): Likewise.
1969 (exceptions_state_mc_action_iter): Likewise.
1970 (exceptions_state_mc_action_iter_1): Likewise.
1971 (throw_exception): Likewise.
1972 (exception_messages): Likewise.
1973 (exception_messages_size): Likewise.
1974 (throw_it): Likewise.
1975 (throw_verror): Likewise.
1976 (throw_vquit): Likewise.
1977 (throw_error): Likewise.
1978 (throw_quit): Likewise.
1979 (prepare_to_throw_exception): New function.
1980
e9bcb658
GB
19812014-08-29 Gary Benson <gbenson@redhat.com>
1982
1983 * common/gdb_setjmp.h: New file.
1984 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
1985 * configure.ac: Move sigsetjmp check...
1986 * common/common.m4: ...here.
1987 * configure: Regenerate.
1988 * cp-support.c (SIGJMP_BUF): Delete.
1989 (SIGSETJMP): Likewise.
1990 (SIGLONGJMP): Likewise.
1991 * exceptions.h (gdb_setjmp.h): Include.
1992 (setjmp.h): Do not include.
1993 (EXCEPTIONS_SIGJMP_BUF): Delete.
1994 (EXCEPTIONS_SIGSETJMP): Likewise.
1995 (EXCEPTIONS_SIGLONGJMP): Likewise.
1996 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
1997 from gdb_setjmp.h.
1998 * exceptions.c: Likewise.
1999
e3180625
GB
20002014-08-29 Gary Benson <gbenson@redhat.com>
2001
2002 * cleanups.h: Moved to...
2003 * common/cleanups.h: New file.
2004 * cleanups.c: Moved to...
2005 * common/cleanups.c: New file. Include common-defs.h and
2006 cleanups.h. Do not include defs.h.
2007 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
2008 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
2009 (cleanups.o): New rule.
2010
e3d6ba5d
GB
20112014-08-29 Gary Benson <gbenson@redhat.com>
2012
2013 * common/errors.h (internal_warning): New declaration.
2014 (internal_vwarning): Likewise.
2015 * common/errors.c (internal_warning): New function.
2016 * utils.h (internal_warning): Don't declare.
2017 (internal_vwarning): Likewise.
2018 * utils.c (internal_warning): Removed.
2019
075c7033
GB
20202014-08-29 Gary Benson <gbenson@redhat.com>
2021
2022 * main.c (captured_main): Use warning during startup.
2023 Prefix startup warning messages with command name.
2024
91b35fd0
GB
20252014-08-29 Gary Benson <gbenson@redhat.com>
2026
2027 * main.c (captured_main): Handle usage errors with error.
2028
b1ec390e
GB
20292014-08-29 Gary Benson <gbenson@redhat.com>
2030
2031 * go32-nat.c (go32_create_inferior): Replace a fprintf/
2032 exit pair with a call to error. Wrap the message with _().
2033
fd0ef3dd
GB
20342014-08-29 Gary Benson <gbenson@redhat.com>
2035
2036 * main.c (captured_main): Replace a fprintf/exit
2037 pair with a call to error. Wrap the message with _().
2038
e0e6bcab
GB
20392014-08-29 Gary Benson <gbenson@redhat.com>
2040
2041 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
2042 pairs with calls to error. Wrap the message with _().
2043
0d2f5c07
GB
20442014-08-29 Gary Benson <gbenson@redhat.com>
2045
2046 * utils.c (vwarning): Protect calls to target_terminal_ours
2047 and wrap_here.
2048
5df43998
GB
20492014-08-29 Gary Benson <gbenson@redhat.com>
2050
2051 * exceptions.c (print_flush): Protect calls to
2052 target_terminal_ours and wrap_here.
2053
2437fd32
GB
20542014-08-29 Gary Benson <gbenson@redhat.com>
2055
2056 * utils.h (filtered_printing_initialized): New declaration.
2057 * utils.c (abort_with_message): New function.
2058 (internal_vproblem): Use abort_with_message for first level
2059 recursive internal problems, and if gdb_stderr is not set up.
2060 Protect calls to target_terminal_ours, begin_line and query.
2061
f1f58506
DE
20622014-08-28 Doug Evans <dje@google.com>
2063
2064 * symtab.c (in_prologue): Move definition to better spot.
2065 (skip_prologue_using_sal): Ditto.
2066
aab2f208
DE
20672014-08-28 Doug Evans <dje@google.com>
2068
2069 * symtab.c (find_function_start_sal): Move definition to better spot.
2070
6b65d1b6
YQ
20712014-08-28 Yao Qi <yao@codesourcery.com>
2072
2073 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
2074 found_stack_adjust in forward scan. Remove condition check
2075 on found_stack_adjust which is always true. Indent the code.
2076
a1b34d15
YQ
20772014-08-28 Yao Qi <yao@codesourcery.com>
2078
2079 * dwarf2read.c (dwarf_decode_lines): Update declaration.
2080 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
2081 (dwarf_decode_lines): Remove argument
2082 want_line_info. Remove condition check on want_line_info.
2083 Callers update.
2084
d5962de5
DE
20852014-08-27 Doug Evans <dje@google.com>
2086
2087 * dwarf2read.c (dwarf_record_line): Fix typo.
2088
9b139002
SDJ
20892014-08-27 Patrick Palka <patrick@parcs.ath.cx>
2090
2091 * target.h (struct target_ops::to_terminal_save_ours): Remove
2092 declaration.
2093 (target_terminal_save_ours): Remove macro.
2094 * target-delegates.c: Regenerate.
2095 * inf-child.c (inf_child_target): Don't set the nonexistent
2096 field to_terminal_save_ours.
2097 * inferior.h (child_terminal_save_ours): Remove declaration.
2098 * terminal.h (gdb_save_tty_state): New declaration.
2099 * inflow.c (child_terminal_save_ours): Rename to ...
2100 (gdb_save_tty_state): ... this.
2101 * tui/tui.c: Include terminal.h.
2102 (tui_enable): Use gdb_save_tty_state instead of
2103 target_terminal_save_ours.
2104 (tui_disable): Likewise.
2105
9debeba0
DE
21062014-08-25 Doug Evans <dje@google.com>
2107
2108 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
2109 Pass NULL instead of 0 for context pointer.
2110
428fc5fc
YQ
21112014-08-25 Yao Qi <yao@codesourcery.com>
2112
2113 * dwarf2read.c: Fix grammatical error.
2114
cdc07690
YQ
21152014-08-24 Yao Qi <yao@codesourcery.com>
2116
2117 * dwarf2read.c (scan_partial_symbols): Update comments.
2118 Rename argument 'need_pc' with 'set_addrmap'.
2119 (add_partial_namespace): Rename argument 'need_pc' with
2120 'set_addrmap'.
2121 (add_partial_module): Likewise.
2122 (add_partial_subprogram): Likewise. Update comments.
2123 (dwarf2_name): Fix typo.
2124
a05a36a5
DE
21252014-08-22 Doug Evans <dje@google.com>
2126
2127 PR 17276
2128 * dwarf2read.c (dwarf_record_line_p): New function.
2129 (dwarf_decode_lines_1): Ignore subsequent line number entries
2130 for the same line if any entry had a non-zero discriminator.
2131
252a6764
DE
21322014-08-22 Doug Evans <dje@google.com>
2133
2134 * buildsym.h (record_line_ftype): New typedef.
2135 (record_line): Use it.
2136 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
2137 (dwarf_decode_lines_1): Call them.
2138
510db052
YQ
21392014-08-22 Yao Qi <yao@codesourcery.com>
2140
2141 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
2142 (ctf_end): Remove code.
2143
22fd09ae
JK
21442014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2145
2146 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
2147 (linux_make_corefile_notes): call update_thread_list, protected against
2148 exceptions.
2149
656e8868
PA
21502014-08-21 Pedro Alves <palves@redhat.com>
2151
2152 * infcmd.c (attach_command): Remove comment.
2153
de589d04
WN
21542014-08-21 Bin Cheng <bin.cheng@arm.com>
2155
2156 * aarch64-linux-nat.c (dr_changed_t): Change the type from
2157 unsigned LONGEST to ULONGEST.
2158
2a31c623
PA
21592014-08-20 Pedro Alves <palves@redhat.com>
2160
2161 * Makefile.in (check-read1): New rule.
2162
d36430db
JB
21632014-08-20 Joel Brobecker <brobecker@adacore.com>
2164
2165 * value.c (value_from_contents_and_address): Strip resolved_type's
2166 typedef layers before checking its TYPE_DATA_LOCATION.
2167
000339af
PA
21682014-08-20 Pedro Alves <palves@redhat.com>
2169
2170 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
2171
5f52445b
YQ
21722014-08-20 Yao Qi <yao@codesourcery.com>
2173
2174 * amd64-tdep.c (amd64_classify): Add a blank line after the
2175 example. Move "*/" to a new line.
2176 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
2177 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
2178 * dwarf2read.c (psymtab_include_file_name): Likewise.
2179
9a0dc9e3
PA
21802014-08-19 Andrew Burgess <aburgess@broadcom.com>
2181 Pedro Alves <palves@redhat.com>
2182
2183 PR symtab/14604
2184 PR symtab/14605
2185 * ada-lang.c (coerce_unspec_val_to_type): Use
2186 value_contents_copy_raw.
2187 * ada-valprint.c (val_print_packed_array_elements): Adjust.
2188 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
2189 * cp-valprint.c (cp_print_value_fields): Let the common printing
2190 code handle optimized out values.
2191 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
2192 * d-valprint.c (dynamic_array_type): Use
2193 value_bits_any_optimized_out.
2194 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
2195 check_any_valid fields.
2196 (check_pieced_value_bits): Delete and inline ...
2197 (check_pieced_synthetic_pointer): ... here.
2198 (check_pieced_value_validity): Delete.
2199 (check_pieced_value_invalid): Delete.
2200 (pieced_value_funcs): Remove check_validity and check_any_valid
2201 fields.
2202 (read_pieced_value): Use mark_value_bits_optimized_out.
2203 (write_pieced_value): Switch to use
2204 mark_value_bytes_optimized_out.
2205 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
2206 of assuming the whole value is optimized out.
2207 * findvar.c (read_frame_register_value): Remove special handling
2208 of optimized out registers.
2209 (value_from_register): Use mark_value_bytes_optimized_out.
2210 * frame-unwind.c (frame_unwind_got_optimized): Use
2211 mark_value_bytes_optimized_out.
2212 * jv-valprint.c (java_value_print): Adjust.
2213 (java_print_value_fields): Let the common printing code handle
2214 optimized out values.
2215 * mips-tdep.c (mips_print_register): Remove special handling of
2216 optimized out registers.
2217 * opencl-lang.c (lval_func_check_validity): Delete.
2218 (lval_func_check_any_valid): Delete.
2219 (opencl_value_funcs): Remove check_validity and check_any_valid
2220 fields.
2221 * p-valprint.c (pascal_object_print_value_fields): Let the common
2222 printing code handle optimized out values.
2223 * stack.c (read_frame_arg): Remove special handling of optimized
2224 out values. Fetch both VAL and ENTRYVAL before comparing
2225 contents. Adjust to value_available_contents_eq rename.
2226 * valprint.c (valprint_check_validity)
2227 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
2228 (val_print_array_elements): Adjust.
2229 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
2230 (value_bits_any_optimized_out): New function.
2231 (value_entirely_covered_by_range_vector): New function, factored
2232 out from value_entirely_unavailable.
2233 (value_entirely_unavailable): Reimplement.
2234 (value_entirely_optimized_out): New function.
2235 (insert_into_bit_range_vector): New function, factored out from
2236 mark_value_bits_unavailable.
2237 (mark_value_bits_unavailable): Reimplement.
2238 (struct ranges_and_idx): New struct.
2239 (find_first_range_overlap_and_match): New function, factored out
2240 from value_available_contents_bits_eq.
2241 (value_available_contents_bits_eq): Rename to ...
2242 (value_contents_bits_eq): ... this. Check both unavailable
2243 contents and optimized out contents.
2244 (value_available_contents_eq): Rename to ...
2245 (value_contents_eq): ... this.
2246 (allocate_value_lazy): Remove reference to the old optimized_out
2247 boolean.
2248 (allocate_optimized_out_value): Use
2249 mark_value_bytes_optimized_out.
2250 (require_not_optimized_out): Adjust to check whether the
2251 optimized_out vec is empty.
2252 (ranges_copy_adjusted): New function, factored out from
2253 value_contents_copy_raw.
2254 (value_contents_copy_raw): Also copy the optimized out ranges.
2255 Assert the destination ranges aren't optimized out.
2256 (value_contents_copy): Update comment, remove call to
2257 require_not_optimized_out.
2258 (value_contents_equal): Adjust to check whether the optimized_out
2259 vec is empty.
2260 (set_value_optimized_out, value_optimized_out_const): Delete.
2261 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
2262 New functions.
2263 (value_entirely_optimized_out, value_bits_valid): Delete.
2264 (value_copy): Take a VEC copy of the 'optimized_out' field.
2265 (value_primitive_field): Remove special handling of optimized out.
2266 (value_fetch_lazy): Assert that lazy values have no unavailable
2267 regions. Use value_bits_any_optimized_out. Remove some special
2268 handling for optimized out values.
2269 * value.h: Add intro comment about <optimized out> and
2270 <unavailable>.
2271 (struct lval_funcs): Remove check_validity and check_any_valid
2272 fields.
2273 (set_value_optimized_out, value_optimized_out_const): Remove.
2274 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
2275 New declarations.
2276 (value_bits_any_optimized_out): New declaration.
2277 (value_bits_valid): Delete declaration.
2278 (value_available_contents_eq): Rename to ...
2279 (value_contents_eq): ... this, and extend comments.
2280
6694c411
JK
22812014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2282
2283 Fix -fsanitize=address on unreadable inferior strings.
2284 * valprint.c (val_print_string): Fix access before BUFFER.
2285
89a1c21a
SM
22862014-08-19 Simon Marchi <simon.marchi@ericsson.com>
2287
2288 * target.c (target_struct_size): Remove.
2289 (target_struct_allocsize): Remove.
2290 (DEFAULT_ALLOCSIZE): Remove.
2291 (target_ops_p): New typedef.
2292 (DEF_VEC_P (target_ops_p)): New vector type.
2293 (target_structs): Change type to VEC (target_ops_p).
2294 (add_target_with_completer): Replace "push" code by VEC_safe_push.
2295 (find_default_run_target): Rewrite for loop following changes to
2296 target_structs.
2297
cb417230
JB
22982014-08-19 Joel Brobecker <brobecker@adacore.com>
2299
2300 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
2301 Adjust code accordingly. Adjust function description comment.
2302
817e0957
YQ
23032014-08-19 Yao Qi <yao@codesourcery.com>
2304
2305 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
2306 types.
2307
2974be62
AM
23082014-08-19 Alan Modra <amodra@gmail.com>
2309
2310 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
2311 * config.in: Regenerate.
2312 * configure: Regenerate.
2313
34abf635
GB
23142014-08-19 Tom Tromey <tromey@redhat.com>
2315 Gary Benson <gbenson@redhat.com>
2316
2317 * common/common-debug.h: New file.
2318 * common/common-debug.c: Likewise.
2319 * debug.c: Likewise.
2320 * Makefile.in (SFILES): Add common/common-debug.c.
2321 (HFILES_NO_SRCDIR): Add common/common-debug.h.
2322 (COMMON_OBS): Add common-debug.o and debug.o.
2323 (common-debug.o): New rule.
2324 * common/common-defs.h: Include common-debug.h.
2325 * common/agent.c (debug_agent_printf): New function.
2326 (DEBUG_AGENT): Redefine.
2327 * nat/i386-dregs.c (debug_printf): Undefine.
2328
f6e94d78
GB
23292014-08-19 Gary Benson <gbenson@redhat.com>
2330
2331 * common/common-defs.h: Include print-utils.h.
2332 * utils.h: Do not include print-utils.h.
2333
9239eeab
GB
23342014-08-19 Tom Tromey <tromey@redhat.com>
2335 Gary Benson <gbenson@redhat.com>
2336
2337 * common/common-types.h: New file.
2338 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
2339 * common/common-defs.h: Include common-types.h.
2340 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
2341 (ULONGEST): Remove.
2342
ef87c8bb
GB
23432014-08-19 Tom Tromey <tromey@redhat.com>
2344 Gary Benson <gbenson@redhat.com>
2345
2346 * common/errors.h: New file.
2347 * common/errors.c: Likewise.
2348 * Makefile.in (SFILES): Add common/errors.c.
2349 (HFILES_NO_SRCDIR): Add common/errors.h.
2350 (COMMON_OBS): Add errors.o.
2351 (errors.o): New rule.
2352 * common/common-defs.h: Include errors.h.
2353 * utils.h (perror_with_name, error, verror, warning, vwarning):
2354 Don't declare.
2355 * common/common-utils.h: (malloc_failure, internal_error):
2356 Likewise.
2357
196a707b
GB
23582014-08-19 Gary Benson <gbenson@redhat.com>
2359
2360 * utils.c (internal_vproblem): Always print the message.
2361
ded4fc8f
DE
23622014-08-18 Doug Evans <dje@google.com>
2363
2364 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
2365
950c97d8
JB
23662014-08-18 Joel Brobecker <brobecker@adacore.com>
2367
2368 * ada-typeprint.c (type_is_full_subrange_of_target_type):
2369 Return 0 if TYPE is dynamic.
2370 (print_range): Add handling of dynamic ranges.
2371
3cdcd0ce
JB
23722014-08-18 Keven Boell <keven.boell@intel.com>
2373 Joel Brobecker <brobecker@adacore.com>
2374
2375 * gdbtypes.h (struct main_type): Add field "data_location".
2376 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
2377 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
2378 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
2379 a dynamic data location.
2380 (resolve_dynamic_type): Add DW_AT_data_location handling.
2381 (copy_recursive, copy_type): Copy the data_location information
2382 when present.
2383 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
2384 * value.c (value_from_contents_and_address): Add
2385 DW_AT_data_location handling.
2386
08412b07
JB
23872014-08-18 Keven Boell <keven.boell@intel.com>
2388 Joel Brobecker <brobecker@adacore.com>
2389
2390 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
2391 field "get_object_address".
2392 * dwarf2expr.c (execute_stack_op): Add handling for
2393 DW_OP_push_object_address.
2394 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
2395 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
2396 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
2397 (dwarf_expr_get_obj_addr): New function.
2398 (dwarf_expr_ctx_funcs): Add get_object_address field.
2399 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
2400 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
2401 (dwarf2_evaluate_property): Add parameter "address". Use it.
2402 (needs_get_obj_addr): New function.
2403 (needs_frame_ctx_funcs): Add get_object_address field.
2404 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
2405 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
2406 (resolve_dynamic_array): Likewise.
2407
84754697
JB
24082014-08-18 Joel Brobecker <brobecker@adacore.com>
2409
2410 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
2411 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
2412 fixed value for records and unions for which some GNAT encodings
2413 are present.
2414
da5c522f
JB
24152014-08-18 Joel Brobecker <brobecker@adacore.com>
2416
2417 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
2418 rewrite to avoid "else if" and "else" constructs. Should be
2419 a no-op in practice.
2420
0d72a7c3
JB
24212014-08-18 Joel Brobecker <brobecker@adacore.com>
2422
2423 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
2424 of lexical block.
2425
e66d4446
SC
24262014-08-15 Siva Chandra Reddy <sivachandra@google.com>
2427
2428 PR c++/17132
2429 * eval.c: Update all calls to find_overload_match.
2430 * valarith.c: Likewise.
2431 (value_user_defined_cpp_op, value_user_defined_op): New
2432 argument NOSIDE. Update all callers.
2433 * valops.c (find_overload_match): New argument NOSIDE.
2434 * value.h (find_overload_match): Update signature.
2435
940df408
SC
24362014-08-15 Siva Chandra Reddy <sivachandra@google.com>
2437
2438 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
2439 'items' methods instead of 'iteritems' method on dictionaries.
2440
699ca60a
DE
24412014-08-15 Doug Evans <dje@google.com>
2442
2443 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
2444 closer to use.
2445
37780ee5
DE
24462014-08-15 Doug Evans <dje@google.com>
2447
2448 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
2449
0ad93d4f
DE
24502014-08-15 Doug Evans <dje@google.com>
2451
2452 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
2453
20d8c372
DE
24542014-08-15 Doug Evans <dje@google.com>
2455
2456 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
2457 unused.
2458
cb039ba4
EZ
24592014-08-15 Eli Zaretskii <eliz@gnu.org>
2460
2461 * dcache.h: Include target.h, to avoid compile time warnings.
2462
eb7a547a
JB
24632014-08-15 Joel Brobecker <brobecker@adacore.com>
2464
2465 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
2466 frame_info" partial declaration.
2467 * gdbarch.h: Regenerate.
2468
783cecc8
YQ
24692014-08-15 Yao Qi <yao@codesourcery.com>
2470
2471 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
2472 Add parameter 'decode_for_pst_p'. Callers update.
2473
65c749e7
YQ
24742014-08-13 Yao Qi <yao@codesourcery.com>
2475
2476 PR build/17104
2477 * configure.ac: Use local variable 'pos'.
2478 * configure: Regenerated.
2479
d769e349
DE
24802014-08-11 Doug Evans <dje@google.com>
2481
2482 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
2483 message, it is redundant with "Reading symbols from ..." message.
2484
24f1235e
DE
24852014-08-10 Doug Evans <xdje42@gmail.com>
2486
2487 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
2488
dcd2e6ef
YQ
24892014-08-09 Yao Qi <yao@codesourcery.com>
2490
2491 PR remote/9053
2492 * remote.c (remote_xfer_partial): Remove dead code.
2493
070bdf0b
AA
24942014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2495
2496 * ia64-linux-tdep.c: Include "regset.h".
2497 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
2498 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
2499 (ia64_linux_supply_fpregset): New function.
2500 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
2501 (ia64_linux_regset_from_core_section): New function.
2502 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
2503 method.
2504
08f9f542
AA
25052014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2506
2507 * m68klinux-tdep.c: Include "regset.h".
2508 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
2509 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
2510 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
2511 (m68k_linux_regset_from_core_section): New function.
2512 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
2513 method.
2514
8f1cee41
AA
25152014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2516
2517 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
2518 function. Move logic to...
2519 (tilegx_linux_regmap): ... this new register map.
2520 (tilegx_linux_regset): Refer to register map, replace supply
2521 method by regcache_supply_regset, and add collect method.
2522 * tilegx-tdep.h (enum tilegx_regnum): New enum value
2523 TILEGX_FIRST_EASY_REGNUM.
2524
c5741217
AA
25252014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2526
2527 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
2528 that calls regcache_supply_regset and handles the EPC register
2529 separately. Move main logic to...
2530 (score7_linux_gregmap): ... this new register map.
2531 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
2532 (score7_linux_gregset): Refer to register map. Add collect method.
2533 (score7_linux_regset_from_core_section): Replace
2534 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
2535 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
2536 (struct regset): Delete unused forward declaraction.
2537 (struct pt_regs): Delete structure definition.
2538 (elf_gregset_t): Delete typedef.
2539
81580573
AA
25402014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2541
2542 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
2543 (nios2_core_regset): Add collect method.
2544
ba199d7d
AA
25452014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2546
2547 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
2548 platform-independent and don't write to read-only input buffer.
2549 (m32r_linux_collect_gregset): New function.
2550 (m32r_linux_gregset): Add collect method.
2551
0006a9da
AA
25522014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2553
2554 * hppa-linux-tdep.c (greg_map): Rename to...
2555 (hppa_linux_gregmap): ... this. Also convert to
2556 regcache_map_entry format.
2557 (hppa_linux_supply_regset): Delete function.
2558 (hppa_linux_supply_fpregset): Delete function. Move logic to...
2559 (hppa_linux_fpregmap): ... this new register map.
2560 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
2561 register map, replace supply method by regcache_supply_regset, and
2562 add collect method regcache_collect_regset.
2563
901e1b23
AA
25642014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2565
2566 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
2567 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
2568 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
2569 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
2570 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
2571 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
2572 (frv_linux_supply_gregset): Replace main logic by call to
2573 regcache_supply_regset, but keep clearing gr32-gr63.
2574 (frv_linux_supply_fpregset): Delete function.
2575 (frv_linux_gregset): Refer to appropriate register map and add
2576 regcache_collect_regset as the collect method.
2577 (frv_linux_fpregset): Likewise. Also exchange the supply method
2578 by regcache_supply_regset.
2579
1d6e7555
AA
25802014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2581
2582 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
2583 by call to alpha_supply_int_regs.
2584 (alpha_linux_collect_gregset): New function.
2585 (alpha_linux_supply_fpregset): Replace logic by call to
2586 alpha_supply_fp_regs.
2587 (alpha_linux_collect_fpregset): New function.
2588 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
2589
d4d793bf
AA
25902014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2591
2592 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
2593 by call to regcache_collect_regset.
2594 (supply_gregset, supply_fpregset): Call regcache_supply_regset
2595 instead of aarch64_linux_supply_gregset/_fpregset.
2596 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
2597 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
2598 header file instead.
2599 (aarch64_linux_supply_gregset, supply_gregset_from_core)
2600 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
2601 functions. Move logic to ...
2602 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
2603 register maps.
2604 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
2605 refer to new register maps, replace *_regset_from_core by
2606 regcache_supply_regset, and also use regcache_collect_regset.
2607 * aarch64-linux-tdep.h: Include "regset.h".
2608 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
2609 Delete prototypes.
2610 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
2611 macros, moved from C source file.
2612 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
2613 variable declarations.
2614
99b7da5d
AA
26152014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2616
2617 * s390-linux-nat.c: Include "regset.h".
2618 (regmap_gregset): Delete macro.
2619 (s390_64_regmap_gregset): New register map for
2620 regcache_supply/_collect_regset.
2621 (s390_64_gregset): New regset.
2622 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
2623 (regmap_fpregset): Delete macro.
2624 (s390_native_supply, s390_native_collect): Delete functions.
2625 (supply_gregset, fill_gregset): Replace s390-specific regmap
2626 handling by a call to regcache_supply/_collect_regset.
2627 (supply_fpregset, fill_fpregset): Call regcache_supply/
2628 _collect_regset instead of s390_native_supply/_collect.
2629 (fetch_regset, store_regset): Likewise. Also change the last
2630 parameter to a regset instead of a regmap.
2631 (s390_linux_fetch_inferior_registers)
2632 (390_linux_store_inferior_registers): Adjust last parameter in
2633 calls to fetch_regset and store_regset.
2634 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
2635 (s390_gregmap): ... this. Also make static const and convert to
2636 regcache_map_entry format.
2637 (s390x_regmap_gregset): Delete.
2638 (s390_regmap_fpregset): Rename to...
2639 (s390_fpregmap): ... this. Make static const and convert to
2640 regcache_map_entry format.
2641 (s390_regmap_upper, s390_regmap_last_break)
2642 (s390x_regmap_last_break, s390_regmap_system_call)
2643 (s390_regmap_tdb): Likewise.
2644 (s390_supply_regset, s390_collect_regset): Remove functions.
2645 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
2646 s390_supply_regset.
2647 (s390_gregset, s390_fpregset, s390_upper_regset)
2648 (s390_last_break_regset, s390x_last_break_regset)
2649 (s390_system_call_regset, s390_tdb_regset): Make global and
2650 replace s390_supply/_collect_regset by regcache_supply/
2651 _collect_regset.
2652 (s390x_gregset): Delete.
2653 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
2654 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
2655 (s390_regmap_fpregset, s390_regmap_last_break)
2656 (s390x_regmap_last_break, s390_regmap_system_call)
2657 (s390_regmap_tdb): Delete global variable declarations.
2658 (s390_gregset, s390_fpregset, s390_last_break_regset)
2659 (s390x_last_break_regset, s390_system_call_regset)
2660 (s390_tdb_regset): New global variable declarations.
2661
0b309272
AA
26622014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2663
2664 * regcache.c: Include "regset.h".
2665 (regcache_transfer_regset): New local function.
2666 (regcache_supply_regset, regcache_collect_regset): New functions.
2667 * regcache.h (struct regcache_map_entry): New structure.
2668 (REGCACHE_MAP_SKIP): New enum value.
2669 (regcache_supply_regset, regcache_collect_regset): New prototypes.
2670
7fefa8d7
AA
26712014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2672
2673 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
2674 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
2675 (ppc_linux_collect_gregset ): Likewise.
2676 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
2677 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
2678 (ppc_collect_vrregset): Likewise.
2679 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
2680 Likewise.
2681
96c4f946
YQ
26822014-08-07 Yao Qi <yao@codesourcery.com>
2683
2684 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
2685 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
2686 * remote.c (remote_read_bytes): Likewise.
2687
fffbe6a8
YQ
26882014-08-07 Yao Qi <yao@codesourcery.com>
2689
2690 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
2691
5ee8a82c
YQ
26922014-08-07 Yao Qi <yao@codesourcery.com>
2693
2694 PR remote/17230
2695 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
2696 TARGET_XFER_OK instead of 0.
2697
bb974a24
GB
26982014-08-07 Gary Benson <gbenson@redhat.com>
2699
2700 * common/common-defs.h: Include errno.h.
2701 * defs.h: Do not include errno.h.
2702 * ada-typeprint.c: Likewise.
2703 * c-typeprint.c: Likewise.
2704 * core-regset.c: Likewise.
2705 * corefile.c: Likewise.
2706 * corelow.c: Likewise.
2707 * event-loop.c: Likewise.
2708 * f-typeprint.c: Likewise.
2709 * gnu-nat.c: Likewise.
2710 * go32-nat.c: Likewise.
2711 * i386gnu-nat.c: Likewise.
2712 * m2-typeprint.c: Likewise.
2713 * nat/linux-btrace.c: Likewise.
2714 * p-typeprint.c: Likewise.
2715 * procfs.c: Likewise.
2716 * remote-sim.c: Likewise.
2717 * rs6000-nat.c: Likewise.
2718 * target.c: Likewise.
2719 * typeprint.c: Likewise.
2720 * ui-file.c: Likewise.
2721 * valops.c: Likewise.
2722 * valprint.c: Likewise.
2723
6d3d12eb
GB
27242014-08-07 Gary Benson <gbenson@redhat.com>
2725
2726 * common/common-defs.h: Include string.h.
2727 * aarch64-tdep.c: Do not include string.h.
2728 * ada-exp.y: Likewise.
2729 * ada-lang.c: Likewise.
2730 * ada-lex.l: Likewise.
2731 * ada-typeprint.c: Likewise.
2732 * ada-valprint.c: Likewise.
2733 * aix-thread.c: Likewise.
2734 * alpha-linux-tdep.c: Likewise.
2735 * alpha-mdebug-tdep.c: Likewise.
2736 * alpha-nat.c: Likewise.
2737 * alpha-osf1-tdep.c: Likewise.
2738 * alpha-tdep.c: Likewise.
2739 * alphanbsd-tdep.c: Likewise.
2740 * amd64-dicos-tdep.c: Likewise.
2741 * amd64-linux-tdep.c: Likewise.
2742 * amd64-nat.c: Likewise.
2743 * amd64-sol2-tdep.c: Likewise.
2744 * amd64fbsd-tdep.c: Likewise.
2745 * amd64obsd-tdep.c: Likewise.
2746 * arch-utils.c: Likewise.
2747 * arm-linux-nat.c: Likewise.
2748 * arm-linux-tdep.c: Likewise.
2749 * arm-tdep.c: Likewise.
2750 * arm-wince-tdep.c: Likewise.
2751 * armbsd-tdep.c: Likewise.
2752 * armnbsd-nat.c: Likewise.
2753 * armnbsd-tdep.c: Likewise.
2754 * armobsd-tdep.c: Likewise.
2755 * avr-tdep.c: Likewise.
2756 * ax-gdb.c: Likewise.
2757 * ax-general.c: Likewise.
2758 * bcache.c: Likewise.
2759 * bfin-tdep.c: Likewise.
2760 * breakpoint.c: Likewise.
2761 * build-id.c: Likewise.
2762 * buildsym.c: Likewise.
2763 * c-exp.y: Likewise.
2764 * c-lang.c: Likewise.
2765 * c-typeprint.c: Likewise.
2766 * c-valprint.c: Likewise.
2767 * charset.c: Likewise.
2768 * cli-out.c: Likewise.
2769 * cli/cli-cmds.c: Likewise.
2770 * cli/cli-decode.c: Likewise.
2771 * cli/cli-dump.c: Likewise.
2772 * cli/cli-interp.c: Likewise.
2773 * cli/cli-logging.c: Likewise.
2774 * cli/cli-script.c: Likewise.
2775 * cli/cli-setshow.c: Likewise.
2776 * cli/cli-utils.c: Likewise.
2777 * coffread.c: Likewise.
2778 * common/agent.c: Likewise.
2779 * common/buffer.c: Likewise.
2780 * common/buffer.h: Likewise.
2781 * common/common-utils.c: Likewise.
2782 * common/filestuff.c: Likewise.
2783 * common/filestuff.c: Likewise.
2784 * common/format.c: Likewise.
2785 * common/print-utils.c: Likewise.
2786 * common/rsp-low.c: Likewise.
2787 * common/signals.c: Likewise.
2788 * common/vec.h: Likewise.
2789 * common/xml-utils.c: Likewise.
2790 * core-regset.c: Likewise.
2791 * corefile.c: Likewise.
2792 * corelow.c: Likewise.
2793 * cp-abi.c: Likewise.
2794 * cp-name-parser.y: Likewise.
2795 * cp-support.c: Likewise.
2796 * cp-valprint.c: Likewise.
2797 * cris-tdep.c: Likewise.
2798 * d-exp.y: Likewise.
2799 * darwin-nat.c: Likewise.
2800 * dbxread.c: Likewise.
2801 * dcache.c: Likewise.
2802 * demangle.c: Likewise.
2803 * dicos-tdep.c: Likewise.
2804 * disasm.c: Likewise.
2805 * doublest.c: Likewise.
2806 * dsrec.c: Likewise.
2807 * dummy-frame.c: Likewise.
2808 * dwarf2-frame.c: Likewise.
2809 * dwarf2loc.c: Likewise.
2810 * dwarf2read.c: Likewise.
2811 * elfread.c: Likewise.
2812 * environ.c: Likewise.
2813 * eval.c: Likewise.
2814 * event-loop.c: Likewise.
2815 * exceptions.c: Likewise.
2816 * exec.c: Likewise.
2817 * expprint.c: Likewise.
2818 * f-exp.y: Likewise.
2819 * f-lang.c: Likewise.
2820 * f-typeprint.c: Likewise.
2821 * f-valprint.c: Likewise.
2822 * fbsd-nat.c: Likewise.
2823 * findcmd.c: Likewise.
2824 * findvar.c: Likewise.
2825 * fork-child.c: Likewise.
2826 * frame.c: Likewise.
2827 * frv-linux-tdep.c: Likewise.
2828 * frv-tdep.c: Likewise.
2829 * gdb.c: Likewise.
2830 * gdb_bfd.c: Likewise.
2831 * gdbarch.c: Likewise.
2832 * gdbarch.sh: Likewise.
2833 * gdbtypes.c: Likewise.
2834 * gnu-nat.c: Likewise.
2835 * gnu-v2-abi.c: Likewise.
2836 * gnu-v3-abi.c: Likewise.
2837 * go-exp.y: Likewise.
2838 * go-lang.c: Likewise.
2839 * go32-nat.c: Likewise.
2840 * guile/guile.c: Likewise.
2841 * guile/scm-auto-load.c: Likewise.
2842 * hppa-hpux-tdep.c: Likewise.
2843 * hppa-linux-nat.c: Likewise.
2844 * hppanbsd-tdep.c: Likewise.
2845 * hppaobsd-tdep.c: Likewise.
2846 * i386-cygwin-tdep.c: Likewise.
2847 * i386-dicos-tdep.c: Likewise.
2848 * i386-linux-tdep.c: Likewise.
2849 * i386-nto-tdep.c: Likewise.
2850 * i386-sol2-tdep.c: Likewise.
2851 * i386-tdep.c: Likewise.
2852 * i386bsd-tdep.c: Likewise.
2853 * i386gnu-nat.c: Likewise.
2854 * i386nbsd-tdep.c: Likewise.
2855 * i386obsd-tdep.c: Likewise.
2856 * i387-tdep.c: Likewise.
2857 * ia64-libunwind-tdep.c: Likewise.
2858 * ia64-linux-nat.c: Likewise.
2859 * inf-child.c: Likewise.
2860 * inf-ptrace.c: Likewise.
2861 * inf-ttrace.c: Likewise.
2862 * infcall.c: Likewise.
2863 * infcmd.c: Likewise.
2864 * inflow.c: Likewise.
2865 * infrun.c: Likewise.
2866 * interps.c: Likewise.
2867 * iq2000-tdep.c: Likewise.
2868 * irix5-nat.c: Likewise.
2869 * jv-exp.y: Likewise.
2870 * jv-lang.c: Likewise.
2871 * jv-typeprint.c: Likewise.
2872 * jv-valprint.c: Likewise.
2873 * language.c: Likewise.
2874 * linux-fork.c: Likewise.
2875 * linux-nat.c: Likewise.
2876 * lm32-tdep.c: Likewise.
2877 * m2-exp.y: Likewise.
2878 * m2-typeprint.c: Likewise.
2879 * m32c-tdep.c: Likewise.
2880 * m32r-linux-nat.c: Likewise.
2881 * m32r-linux-tdep.c: Likewise.
2882 * m32r-rom.c: Likewise.
2883 * m32r-tdep.c: Likewise.
2884 * m68hc11-tdep.c: Likewise.
2885 * m68k-tdep.c: Likewise.
2886 * m68kbsd-tdep.c: Likewise.
2887 * m68klinux-nat.c: Likewise.
2888 * m68klinux-tdep.c: Likewise.
2889 * m88k-tdep.c: Likewise.
2890 * machoread.c: Likewise.
2891 * macrocmd.c: Likewise.
2892 * main.c: Likewise.
2893 * mdebugread.c: Likewise.
2894 * mem-break.c: Likewise.
2895 * memattr.c: Likewise.
2896 * memory-map.c: Likewise.
2897 * mep-tdep.c: Likewise.
2898 * mi/mi-cmd-break.c: Likewise.
2899 * mi/mi-cmd-disas.c: Likewise.
2900 * mi/mi-cmd-env.c: Likewise.
2901 * mi/mi-cmd-stack.c: Likewise.
2902 * mi/mi-cmd-var.c: Likewise.
2903 * mi/mi-cmds.c: Likewise.
2904 * mi/mi-console.c: Likewise.
2905 * mi/mi-getopt.c: Likewise.
2906 * mi/mi-interp.c: Likewise.
2907 * mi/mi-main.c: Likewise.
2908 * mi/mi-parse.c: Likewise.
2909 * microblaze-rom.c: Likewise.
2910 * microblaze-tdep.c: Likewise.
2911 * mingw-hdep.c: Likewise.
2912 * minidebug.c: Likewise.
2913 * minsyms.c: Likewise.
2914 * mips-irix-tdep.c: Likewise.
2915 * mips-linux-tdep.c: Likewise.
2916 * mips-tdep.c: Likewise.
2917 * mips64obsd-tdep.c: Likewise.
2918 * mipsnbsd-tdep.c: Likewise.
2919 * mipsread.c: Likewise.
2920 * mn10300-linux-tdep.c: Likewise.
2921 * mn10300-tdep.c: Likewise.
2922 * monitor.c: Likewise.
2923 * moxie-tdep.c: Likewise.
2924 * mt-tdep.c: Likewise.
2925 * nat/linux-btrace.c: Likewise.
2926 * nat/linux-osdata.c: Likewise.
2927 * nat/linux-procfs.c: Likewise.
2928 * nat/linux-ptrace.c: Likewise.
2929 * nat/linux-waitpid.c: Likewise.
2930 * nbsd-tdep.c: Likewise.
2931 * nios2-linux-tdep.c: Likewise.
2932 * nto-procfs.c: Likewise.
2933 * nto-tdep.c: Likewise.
2934 * objc-lang.c: Likewise.
2935 * objfiles.c: Likewise.
2936 * opencl-lang.c: Likewise.
2937 * osabi.c: Likewise.
2938 * osdata.c: Likewise.
2939 * p-exp.y: Likewise.
2940 * p-lang.c: Likewise.
2941 * p-typeprint.c: Likewise.
2942 * parse.c: Likewise.
2943 * posix-hdep.c: Likewise.
2944 * ppc-linux-nat.c: Likewise.
2945 * ppc-sysv-tdep.c: Likewise.
2946 * ppcfbsd-tdep.c: Likewise.
2947 * ppcnbsd-tdep.c: Likewise.
2948 * ppcobsd-tdep.c: Likewise.
2949 * printcmd.c: Likewise.
2950 * procfs.c: Likewise.
2951 * prologue-value.c: Likewise.
2952 * python/py-auto-load.c: Likewise.
2953 * python/py-gdb-readline.c: Likewise.
2954 * ravenscar-thread.c: Likewise.
2955 * regcache.c: Likewise.
2956 * registry.c: Likewise.
2957 * remote-fileio.c: Likewise.
2958 * remote-m32r-sdi.c: Likewise.
2959 * remote-mips.c: Likewise.
2960 * remote-notif.c: Likewise.
2961 * remote-sim.c: Likewise.
2962 * remote.c: Likewise.
2963 * reverse.c: Likewise.
2964 * rs6000-aix-tdep.c: Likewise.
2965 * ser-base.c: Likewise.
2966 * ser-go32.c: Likewise.
2967 * ser-mingw.c: Likewise.
2968 * ser-pipe.c: Likewise.
2969 * ser-tcp.c: Likewise.
2970 * ser-unix.c: Likewise.
2971 * serial.c: Likewise.
2972 * sh-tdep.c: Likewise.
2973 * sh64-tdep.c: Likewise.
2974 * shnbsd-tdep.c: Likewise.
2975 * skip.c: Likewise.
2976 * sol-thread.c: Likewise.
2977 * solib-dsbt.c: Likewise.
2978 * solib-frv.c: Likewise.
2979 * solib-osf.c: Likewise.
2980 * solib-som.c: Likewise.
2981 * solib-spu.c: Likewise.
2982 * solib-target.c: Likewise.
2983 * solib.c: Likewise.
2984 * somread.c: Likewise.
2985 * source.c: Likewise.
2986 * sparc-nat.c: Likewise.
2987 * sparc-sol2-tdep.c: Likewise.
2988 * sparc-tdep.c: Likewise.
2989 * sparc64-tdep.c: Likewise.
2990 * sparc64fbsd-tdep.c: Likewise.
2991 * sparc64nbsd-tdep.c: Likewise.
2992 * sparcnbsd-tdep.c: Likewise.
2993 * spu-linux-nat.c: Likewise.
2994 * spu-multiarch.c: Likewise.
2995 * spu-tdep.c: Likewise.
2996 * stabsread.c: Likewise.
2997 * stack.c: Likewise.
2998 * std-regs.c: Likewise.
2999 * symfile.c: Likewise.
3000 * symmisc.c: Likewise.
3001 * symtab.c: Likewise.
3002 * target.c: Likewise.
3003 * thread.c: Likewise.
3004 * tilegx-linux-nat.c: Likewise.
3005 * tilegx-tdep.c: Likewise.
3006 * top.c: Likewise.
3007 * tracepoint.c: Likewise.
3008 * tui/tui-command.c: Likewise.
3009 * tui/tui-data.c: Likewise.
3010 * tui/tui-disasm.c: Likewise.
3011 * tui/tui-file.c: Likewise.
3012 * tui/tui-layout.c: Likewise.
3013 * tui/tui-out.c: Likewise.
3014 * tui/tui-regs.c: Likewise.
3015 * tui/tui-source.c: Likewise.
3016 * tui/tui-stack.c: Likewise.
3017 * tui/tui-win.c: Likewise.
3018 * tui/tui-windata.c: Likewise.
3019 * tui/tui-winsource.c: Likewise.
3020 * typeprint.c: Likewise.
3021 * ui-file.c: Likewise.
3022 * ui-out.c: Likewise.
3023 * user-regs.c: Likewise.
3024 * utils.c: Likewise.
3025 * v850-tdep.c: Likewise.
3026 * valarith.c: Likewise.
3027 * valops.c: Likewise.
3028 * valprint.c: Likewise.
3029 * value.c: Likewise.
3030 * varobj.c: Likewise.
3031 * vax-tdep.c: Likewise.
3032 * vaxnbsd-tdep.c: Likewise.
3033 * vaxobsd-tdep.c: Likewise.
3034 * windows-nat.c: Likewise.
3035 * xcoffread.c: Likewise.
3036 * xml-support.c: Likewise.
3037 * xstormy16-tdep.c: Likewise.
3038 * xtensa-linux-nat.c: Likewise.
3039
dccbb609
GB
30402014-08-07 Gary Benson <gbenson@redhat.com>
3041
3042 * common/common-defs.h: Include gdb_assert.h.
3043 * aarch64-tdep.c: Do not include gdb_assert.h.
3044 * addrmap.c: Likewise.
3045 * aix-thread.c: Likewise.
3046 * alpha-linux-tdep.c: Likewise.
3047 * alpha-mdebug-tdep.c: Likewise.
3048 * alphanbsd-tdep.c: Likewise.
3049 * amd64-nat.c: Likewise.
3050 * amd64-tdep.c: Likewise.
3051 * amd64bsd-nat.c: Likewise.
3052 * amd64fbsd-nat.c: Likewise.
3053 * amd64fbsd-tdep.c: Likewise.
3054 * amd64nbsd-nat.c: Likewise.
3055 * amd64nbsd-tdep.c: Likewise.
3056 * amd64obsd-nat.c: Likewise.
3057 * amd64obsd-tdep.c: Likewise.
3058 * arch-utils.c: Likewise.
3059 * arm-tdep.c: Likewise.
3060 * armbsd-tdep.c: Likewise.
3061 * auxv.c: Likewise.
3062 * bcache.c: Likewise.
3063 * bfin-tdep.c: Likewise.
3064 * blockframe.c: Likewise.
3065 * breakpoint.c: Likewise.
3066 * bsd-kvm.c: Likewise.
3067 * bsd-uthread.c: Likewise.
3068 * buildsym.c: Likewise.
3069 * c-exp.y: Likewise.
3070 * c-lang.c: Likewise.
3071 * charset.c: Likewise.
3072 * cleanups.c: Likewise.
3073 * cli-out.c: Likewise.
3074 * cli/cli-decode.c: Likewise.
3075 * cli/cli-dump.c: Likewise.
3076 * cli/cli-logging.c: Likewise.
3077 * cli/cli-script.c: Likewise.
3078 * cli/cli-utils.c: Likewise.
3079 * coffread.c: Likewise.
3080 * common/common-utils.c: Likewise.
3081 * common/queue.h: Likewise.
3082 * common/signals.c: Likewise.
3083 * common/vec.h: Likewise.
3084 * complaints.c: Likewise.
3085 * completer.c: Likewise.
3086 * corelow.c: Likewise.
3087 * cp-abi.c: Likewise.
3088 * cp-name-parser.y: Likewise.
3089 * cp-namespace.c: Likewise.
3090 * cp-support.c: Likewise.
3091 * cris-tdep.c: Likewise.
3092 * dbxread.c: Likewise.
3093 * dictionary.c: Likewise.
3094 * doublest.c: Likewise.
3095 * dsrec.c: Likewise.
3096 * dummy-frame.c: Likewise.
3097 * dwarf2-frame-tailcall.c: Likewise.
3098 * dwarf2-frame.c: Likewise.
3099 * dwarf2expr.c: Likewise.
3100 * dwarf2loc.c: Likewise.
3101 * dwarf2read.c: Likewise.
3102 * eval.c: Likewise.
3103 * event-loop.c: Likewise.
3104 * exceptions.c: Likewise.
3105 * expprint.c: Likewise.
3106 * f-valprint.c: Likewise.
3107 * fbsd-nat.c: Likewise.
3108 * findvar.c: Likewise.
3109 * frame-unwind.c: Likewise.
3110 * frame.c: Likewise.
3111 * frv-tdep.c: Likewise.
3112 * gcore.c: Likewise.
3113 * gdb-dlfcn.c: Likewise.
3114 * gdb_bfd.c: Likewise.
3115 * gdbarch.c: Likewise.
3116 * gdbarch.sh: Likewise.
3117 * gdbtypes.c: Likewise.
3118 * gnu-nat.c: Likewise.
3119 * gnu-v3-abi.c: Likewise.
3120 * go-lang.c: Likewise.
3121 * guile/scm-exception.c: Likewise.
3122 * guile/scm-gsmob.c: Likewise.
3123 * guile/scm-lazy-string.c: Likewise.
3124 * guile/scm-math.c: Likewise.
3125 * guile/scm-pretty-print.c: Likewise.
3126 * guile/scm-safe-call.c: Likewise.
3127 * guile/scm-utils.c: Likewise.
3128 * guile/scm-value.c: Likewise.
3129 * h8300-tdep.c: Likewise.
3130 * hppa-hpux-nat.c: Likewise.
3131 * hppa-tdep.c: Likewise.
3132 * hppanbsd-tdep.c: Likewise.
3133 * hppaobsd-tdep.c: Likewise.
3134 * i386-darwin-nat.c: Likewise.
3135 * i386-darwin-tdep.c: Likewise.
3136 * i386-nto-tdep.c: Likewise.
3137 * i386-tdep.c: Likewise.
3138 * i386bsd-nat.c: Likewise.
3139 * i386fbsd-tdep.c: Likewise.
3140 * i386gnu-nat.c: Likewise.
3141 * i386nbsd-tdep.c: Likewise.
3142 * i386obsd-tdep.c: Likewise.
3143 * i387-tdep.c: Likewise.
3144 * ia64-libunwind-tdep.c: Likewise.
3145 * ia64-tdep.c: Likewise.
3146 * inf-ptrace.c: Likewise.
3147 * inf-ttrace.c: Likewise.
3148 * infcall.c: Likewise.
3149 * infcmd.c: Likewise.
3150 * infrun.c: Likewise.
3151 * inline-frame.c: Likewise.
3152 * interps.c: Likewise.
3153 * jv-lang.c: Likewise.
3154 * jv-typeprint.c: Likewise.
3155 * linux-fork.c: Likewise.
3156 * linux-nat.c: Likewise.
3157 * linux-thread-db.c: Likewise.
3158 * m32c-tdep.c: Likewise.
3159 * m32r-linux-nat.c: Likewise.
3160 * m32r-tdep.c: Likewise.
3161 * m68k-tdep.c: Likewise.
3162 * m68kbsd-nat.c: Likewise.
3163 * m68kbsd-tdep.c: Likewise.
3164 * m88k-tdep.c: Likewise.
3165 * machoread.c: Likewise.
3166 * macroexp.c: Likewise.
3167 * macrotab.c: Likewise.
3168 * maint.c: Likewise.
3169 * mdebugread.c: Likewise.
3170 * memory-map.c: Likewise.
3171 * mep-tdep.c: Likewise.
3172 * mi/mi-common.c: Likewise.
3173 * microblaze-tdep.c: Likewise.
3174 * mingw-hdep.c: Likewise.
3175 * mips-linux-nat.c: Likewise.
3176 * mips-linux-tdep.c: Likewise.
3177 * mips-tdep.c: Likewise.
3178 * mips64obsd-tdep.c: Likewise.
3179 * mipsnbsd-tdep.c: Likewise.
3180 * mn10300-linux-tdep.c: Likewise.
3181 * mn10300-tdep.c: Likewise.
3182 * moxie-tdep.c: Likewise.
3183 * mt-tdep.c: Likewise.
3184 * nat/linux-btrace.c: Likewise.
3185 * nat/linux-osdata.c: Likewise.
3186 * nat/linux-ptrace.c: Likewise.
3187 * nat/mips-linux-watch.c: Likewise.
3188 * nios2-linux-tdep.c: Likewise.
3189 * nios2-tdep.c: Likewise.
3190 * objc-lang.c: Likewise.
3191 * objfiles.c: Likewise.
3192 * obsd-nat.c: Likewise.
3193 * opencl-lang.c: Likewise.
3194 * osabi.c: Likewise.
3195 * parse.c: Likewise.
3196 * ppc-linux-nat.c: Likewise.
3197 * ppc-sysv-tdep.c: Likewise.
3198 * ppcfbsd-nat.c: Likewise.
3199 * ppcfbsd-tdep.c: Likewise.
3200 * ppcnbsd-nat.c: Likewise.
3201 * ppcnbsd-tdep.c: Likewise.
3202 * ppcobsd-nat.c: Likewise.
3203 * ppcobsd-tdep.c: Likewise.
3204 * printcmd.c: Likewise.
3205 * procfs.c: Likewise.
3206 * prologue-value.c: Likewise.
3207 * psymtab.c: Likewise.
3208 * python/py-lazy-string.c: Likewise.
3209 * python/py-value.c: Likewise.
3210 * regcache.c: Likewise.
3211 * reggroups.c: Likewise.
3212 * registry.c: Likewise.
3213 * remote-sim.c: Likewise.
3214 * remote.c: Likewise.
3215 * rs6000-aix-tdep.c: Likewise.
3216 * rs6000-tdep.c: Likewise.
3217 * s390-linux-tdep.c: Likewise.
3218 * score-tdep.c: Likewise.
3219 * ser-base.c: Likewise.
3220 * ser-mingw.c: Likewise.
3221 * sh-tdep.c: Likewise.
3222 * sh64-tdep.c: Likewise.
3223 * solib-darwin.c: Likewise.
3224 * solib-spu.c: Likewise.
3225 * solib-svr4.c: Likewise.
3226 * source.c: Likewise.
3227 * sparc-nat.c: Likewise.
3228 * sparc-sol2-tdep.c: Likewise.
3229 * sparc-tdep.c: Likewise.
3230 * sparc64-sol2-tdep.c: Likewise.
3231 * sparc64-tdep.c: Likewise.
3232 * sparc64fbsd-tdep.c: Likewise.
3233 * sparc64nbsd-tdep.c: Likewise.
3234 * sparc64obsd-tdep.c: Likewise.
3235 * sparcnbsd-tdep.c: Likewise.
3236 * sparcobsd-tdep.c: Likewise.
3237 * spu-multiarch.c: Likewise.
3238 * spu-tdep.c: Likewise.
3239 * stabsread.c: Likewise.
3240 * stack.c: Likewise.
3241 * symfile.c: Likewise.
3242 * symtab.c: Likewise.
3243 * target-descriptions.c: Likewise.
3244 * target-memory.c: Likewise.
3245 * target.c: Likewise.
3246 * tic6x-linux-tdep.c: Likewise.
3247 * tic6x-tdep.c: Likewise.
3248 * tilegx-linux-nat.c: Likewise.
3249 * tilegx-tdep.c: Likewise.
3250 * top.c: Likewise.
3251 * tramp-frame.c: Likewise.
3252 * tui/tui-out.c: Likewise.
3253 * tui/tui-winsource.c: Likewise.
3254 * ui-out.c: Likewise.
3255 * user-regs.c: Likewise.
3256 * utils.c: Likewise.
3257 * v850-tdep.c: Likewise.
3258 * valops.c: Likewise.
3259 * value.c: Likewise.
3260 * varobj.c: Likewise.
3261 * vax-nat.c: Likewise.
3262 * xml-syscall.c: Likewise.
3263 * xml-tdesc.c: Likewise.
3264 * xstormy16-tdep.c: Likewise.
3265 * xtensa-linux-nat.c: Likewise.
3266 * xtensa-tdep.c: Likewise.
3267
e76df0d0
GB
32682014-08-07 Gary Benson <gbenson@redhat.com>
3269
3270 * common/common-defs.h: Include common-utils.h.
3271 * defs.h: Do not include common-utils.h.
3272 * common/gdb_assert.h: Likewise.
3273 * darwin-nat.h: Likewise.
3274 * nat/linux-btrace.c: Likewise.
3275 * target/waitstatus.h: Likewise.
3276
4cb9c816
GB
32772014-08-07 Gary Benson <gbenson@redhat.com>
3278
3279 * common/common-defs.h: Include ptid.h.
3280 * defs.h: Do not include ptid.h.
3281 * inferior.h: Likewise.
3282 * infrun.h: Likewise.
3283 * nat/linux-btrace.h: Likewise.
3284 * nat/linux-osdata.h: Likewise.
3285 * target/waitstatus.h: Likewise.
3286
3995eeee
GB
32872014-08-07 Gary Benson <gbenson@redhat.com>
3288
3289 * common/common-defs.h: Include gdb_locale.h.
3290 * defs.h: Do not include gdb_locale.h.
3291
cb9f1a9b
GB
32922014-08-07 Gary Benson <gbenson@redhat.com>
3293
3294 * common/common-defs.h: Include gdb/signals.h.
3295 * defs.h: Do not include gdb/signals.h.
3296
a5fceff8
GB
32972014-08-07 Gary Benson <gbenson@redhat.com>
3298
3299 * common/common-defs.h: Include pathmax.h.
3300 * defs.h: Do not include pathmax.h.
3301
b9391142
GB
33022014-08-07 Gary Benson <gbenson@redhat.com>
3303
3304 * common/common-defs.h: Include libiberty.h.
3305 * defs.h: Do not include libiberty.h.
3306 * common/queue.h: Likewise.
3307 * cp-name-parser.y: Likewise.
3308 * mi/mi-cmd-catch.c: Likewise.
3309 * python/python.c: Likewise.
3310
0e443c87
GB
33112014-08-07 Gary Benson <gbenson@redhat.com>
3312
3313 * common/common-defs.h: Include ansidecl.h.
3314 * defs.h: Do not include ansidecl.h.
3315 * common/buffer.h: Likewise.
3316 * common/common-utils.h: Likewise.
3317
8ebb3f56
GB
33182014-08-07 Gary Benson <gbenson@redhat.com>
3319
3320 * common/common-defs.h: Include stddef.h.
3321 * defs.h: Do not include stddef.h.
3322 * common/common-utils.h: Likewise.
3323 * amd64fbsd-nat.c: Likewise.
3324 * bcache.c: Likewise.
3325 * charset.c: Likewise.
3326 * common/buffer.h: Likewise.
3327 * common/vec.h: Likewise.
3328 * i386bsd-nat.c: Likewise.
3329 * nat/linux-btrace.h: Likewise.
3330 * ppcfbsd-nat.c: Likewise.
3331 * ppcnbsd-tdep.h: Likewise.
3332 * ppcobsd-nat.c: Likewise.
3333 * ppcobsd-tdep.h: Likewise.
3334 * python/py-gdb-readline.c: Likewise.
3335
8980bdf6
GB
33362014-08-07 Gary Benson <gbenson@redhat.com>
3337
3338 * common/common-defs.h: Include stdarg.h.
3339 * defs.h: Do not include stdarg.h.
3340 * ada-lang.c: Likewise.
3341 * common/common-utils.h: Likewise.
3342 * guile/scm-string.c: Likewise.
3343 * guile/scm-utils.c: Likewise.
3344 * m32c-tdep.c: Likewise.
3345
d7096f71
GB
33462014-08-07 Gary Benson <gbenson@redhat.com>
3347
3348 * common/common-defs.h: Include stdlib.h.
3349 * defs.h: Do not include stdlib.h.
3350 * addrmap.c: Likewise.
3351 * bcache.c: Likewise.
3352 * common/buffer.c: Likewise.
3353 * common/common-utils.c: Likewise.
3354 * cp-name-parser.y: Likewise.
3355 * go32-nat.c: Likewise.
3356 * mn10300-linux-tdep.c: Likewise.
3357 * nat/linux-osdata.c: Likewise.
3358 * tui/tui.c: Likewise.
3359 * windows-nat.c: Likewise.
3360
d02f550d
GB
33612014-08-07 Gary Benson <gbenson@redhat.com>
3362
3363 * common/common-defs.h: Include stdio.h.
3364 * defs.h: Do not include stdio.h.
3365 * ada-lang.c: Likewise.
3366 * common/buffer.c: Likewise.
3367 * common/common-utils.c: Likewise.
3368 * cp-name-parser.y: Likewise.
3369 * gnu-nat.c: Likewise.
3370 * go32-nat.c: Likewise.
3371 * i386gnu-nat.c: Likewise.
3372 * proc-api.c: Likewise.
3373 * proc-events.c: Likewise.
3374 * proc-flags.c: Likewise.
3375 * proc-why.c: Likewise.
3376 * python/python-internal.h: Likewise.
3377 * target-memory.c: Likewise.
3378 * tui/tui-io.c: Likewise.
3379 * tui/tui.c: Likewise.
3380
b6d7a4bf
SM
33812014-08-06 Simon Marchi <simon.marchi@ericsson.com>
3382
3383 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
3384 (scan_dyntag_auxv): Same.
3385
af19829b
YQ
33862014-08-06 Yao Qi <yao@codesourcery.com>
3387
3388 * amd64-linux-nat.c: Remove duplicated include
3389 "x86-linux-nat.h".
3390 * i386-linux-nat.c: Likewise.
3391
8e07a239
YQ
33922014-08-06 Yao Qi <yao@codesourcery.com>
3393
3394 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
3395 operand" with "Special opcode" in comments.
3396
7bfe8241
GB
33972014-08-05 Gary Benson <gbenson@redhat.com>
3398
3399 * interps.c (initialize_interps): Remove prototype.
3400 (interpreter_initialized): Remove static global.
3401 (interp_add): Do not call initialize_interps.
3402 (initialize_interps): Remove function.
3403
d6c95504
GB
34042014-08-05 Gary Benson <gbenson@redhat.com>
3405
3406 * utils.c (vwarning): Remove spurious va_end.
3407
241fd515
AM
34082014-08-05 Alan Modra <amodra@gmail.com>
3409
3410 * charset.c (convert_between_encodings): Cast result of obstack_base.
3411 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
3412 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
3413 (read_unwind_info): Use size_t for some locals.
3414 * jit.c (finalize_symtab): Likewise.
3415 * utils.c (hashtab_obstack_allocate): Likewise.
3416 * symmisc.c (print_objfile_statistics): Update format strings.
3417
dc304a94
JK
34182014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3419
3420 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
3421 (Changes in GDB 7.8): ... here.
3422
3cecbbbe
TT
34232014-08-04 Tom Tromey <tromey@redhat.com>
3424
3425 * target.c (set_targetdebug): New function.
3426 (initialize_targets): Pass set_targetdebug when creating "set
3427 debug target".
3428
6908c509
JB
34292014-08-01 Joel Brobecker <brobecker@adacore.com>
3430
3431 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
3432 if detecting a variable-sized field that is not the last field.
3433 Fix struct type length computation.
3434
53e8f97d
JB
34352014-08-01 Joel Brobecker <brobecker@adacore.com>
3436
3437 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3438 Add debug trace.
3439
e068c55d
JB
34402014-08-01 Joel Brobecker <brobecker@adacore.com>
3441
3442 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3443 Remove "+ 8" offset in computation of CHAIN_VMA.
3444
4d4ca2a1
DE
34452014-07-31 Doug Evans <dje@google.com>
3446
3447 * inflow.c (child_terminal_inferior): Add comment.
3448 (child_terminal_ours_for_output): Add comment.
3449 (child_terminal_ours): Add comment.
3450 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
3451 (linux_nat_terminal_ours): Add comment.
3452
462f517e
GB
34532014-07-31 Gary Benson <gbenson@redhat.com>
3454
3455 * common/btrace-common.h: Do not include defs.h or server.h.
3456 * nat/mips-linux-watch.h: Likewise.
3457 * gdb-dlfcn.h: Do not include defs.h.
3458 * tracefile.h: Likewise.
3459
74228e77
RM
34602014-07-30 Roland McGrath <mcgrathr@google.com>
3461
3462 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
3463
014f9477
TT
34642014-07-30 Tom Tromey <tromey@redhat.com>
3465
3466 * bsd-kvm.c (bsd_kvm_open): Constify.
3467 * corelow.c (core_open): Constify.
3468 * ctf.c (ctf_open): Constify.
3469 * dbug-rom.c (dbug_open): Constify.
3470 * exec.c (exec_open): Constify.
3471 * m32r-rom.c (m32r_open, mon2000_open): Constify.
3472 * microblaze-rom.c (picobug_open): Constify.
3473 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
3474 Constify.
3475 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
3476 * record-btrace.c (record_btrace_open): Constify.
3477 * record-full.c (record_full_core_open_1, record_full_open_1)
3478 (record_full_open): Constify.
3479 * remote-m32r-sdi.c (m32r_open): Constify.
3480 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
3481 (rockhopper_open, lsi_open): Constify.
3482 * remote-sim.c (gdbsim_open): Constify.
3483 * remote.c (remote_open, extended_remote_open, remote_open_1):
3484 Constify.
3485 * target.h (struct target_ops) <to_open>: Make "arg" const.
3486 * tracefile-tfile.c (tfile_open): Constify.
3487
e799154c
TT
34882014-07-30 Tom Tromey <tromey@redhat.com>
3489
3490 * breakpoint.c (map_breakpoint_numbers): Update.
3491 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
3492 (get_number_const): New function.
3493 (get_number): Rewrite using get_number_const.
3494 (init_number_or_range): Make "string" const.
3495 (number_is_in_list): Make "list" const.
3496 * cli/cli-utils.h (get_number_const): Declare.
3497 (struct get_number_or_range_state) <string, end_ptr>: Now const.
3498 (init_number_or_range, number_is_in_list): Update.
3499 * printcmd.c (map_display_numbers): Update.
3500 * value.c (value_from_history_ref): Constify.
3501 * value.h (value_from_history_ref): Update.
3502
5f08566b
TT
35032014-07-30 Tom Tromey <tromey@redhat.com>
3504
3505 * corefile.c (hook_type, call_extra_exec_file_hooks)
3506 (specify_exec_file_hook): Constify.
3507 * exec.c (exec_file_attach): Make "filename" const.
3508 * gdbcore.h (deprecated_exec_file_display_hook)
3509 (specify_exec_file_hook, exec_file_attach): Constify.
3510 * main.c (captured_main): Use catch_command_errors_const.
3511
8981c758
TT
35122014-07-30 Tom Tromey <tromey@redhat.com>
3513
3514 * target.c (open_target): New function.
3515 (add_target_with_completer, add_deprecated_target_alias): Use
3516 set_cmd_sfunc, set_cmd_context.
3517 (debug_to_open): Remove.
3518 (setup_target_debug): Update.
3519
a1c7835a
YQ
35202014-07-30 Yao Qi <yao@codesourcery.com>
3521
3522 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
3523 comments.
3524 * parse.c (exp_iterate): Update comments.
3525
976411d6
GB
35262014-07-30 Gary Benson <gbenson@redhat.com>
3527
3528 * common/common-defs.h: New file.
3529 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
3530 * defs.h: Include common-defs.h.
3531 Do not include config.h or build-gnulib/config.h.
3532
5d4848a4
GB
35332014-07-30 Gary Benson <gbenson@redhat.com>
3534
3535 * common/common-utils.h: Do not include config.h.
3536 * nat/linux-btrace.h: Likewise.
3537
d41f6d8e
GB
35382014-07-30 Gary Benson <gbenson@redhat.com>
3539
3540 * btrace.c: Include defs.h.
3541 * common/ptid.c: Include defs.h or server.h as appropriate.
3542 * nat/mips-linux-watch.c: Likewise.
3543
84202f9c
TT
35442014-07-29 Tom Tromey <tromey@redhat.com>
3545
3546 * target.c (target_is_pushed): Simplify.
3547
2530441c
JB
35482014-07-29 Joel Brobecker <brobecker@adacore.com>
3549
3550 GDB 7.8 released.
3551
7e09a223
YQ
35522014-07-29 Yao Qi <yao@codesourcery.com>
3553
3554 PR gdb/17206
3555 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
3556
7ebdbe92
DE
35572014-07-28 Doug Evans <xdje42@gmail.com>
3558
3559 PR guile/17203
3560 * guile/scm-param.c (pascm_parameter_defined_p): New function.
3561 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
3562 parameters.
3563
f347ffc9
WN
35642014-07-28 Will Newton <will.newton@linaro.org>
3565
3566 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
3567 (THUMB2_SET_R7_SIGRETURN2): Likewise.
3568 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
3569 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
3570 (THUMB2_EABI_SYSCALL): Likewise.
3571 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
3572 struct tramp_frame.
3573 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
3574 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
3575
37c5f1f7
DE
35762014-07-27 Doug Evans <xdje42@gmail.com>
3577
3578 * guile/scm-param.c (pascm_print_param_smob): Fix output.
3579
0c3abbc7
DE
35802014-07-27 Doug Evans <xdje42@gmail.com>
3581
3582 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
3583
e76c5d17
DE
35842014-07-26 Ludovic Courtès <ludo@gnu.org>
3585 Doug Evans <xdje42@gmail.com>
3586
3587 PR guile/17146
3588 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
3589 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
3590 * configure.ac: Try to use guild to compile an scm file, if it fails
3591 then disable guile support.
3592 * configure: Regenerate.
3593 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
3594 GUILE_FILE_LIST.
3595 (GUILE_COMPILED_FILES): New variable.
3596 (GUILE_FILES) Update.
3597 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
3598 (stamp-guile): Compile scm files.
3599 * guile/guile.c (boot_guile_support): New function.
3600 (standard_throw_args_p): New function.
3601 (print_standard_throw_error, print_throw_error): New functions.
3602 (handle_boot_error): New function.
3603 (initialize_scheme_side): Rewrite to call boot_guile_support.
3604 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
3605 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
3606
186fcde0
DE
36072014-07-26 Ludovic Courtès <ludo@gnu.org>
3608 Doug Evans <xdje42@gmail.com>
3609
3610 PR guile/17146
3611 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
3612 * guile/lib/gdb/support.scm: New file.
3613 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
3614 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
3615 All uses updated.
3616 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
3617 All uses updated.
3618 (%assert-type): Ditto, and renamed to assert-type.
3619 (%exception-print-style): Delete.
3620
4df42755
DE
36212014-07-26 Doug Evans <xdje42@gmail.com>
3622
3623 PR build/17105
3624 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
3625 * configure: Regenerate.
3626 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
3627 PYTHON_FILES.
3628 (PYTHON_FILES): New variable.
3629 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
3630 (GUILE_FILES): New variable.
3631 (stamp-python, install-python, uninstall-python): Handle empty
3632 file list.
3633 (stamp-guile, install-guile, uninstall-guile): Ditto.
3634
ee7333ae
DE
36352014-07-26 Doug Evans <xdje42@gmail.com>
3636
3637 PR guile/17177
3638 * guile/lib/gdb.scm (pretty-printers): Export.
3639 (set-pretty-printers!): Export.
3640 * guile/lib/gdb/printing.scm (gdb module): Update.
3641 (prepend-pretty-printer!, append-pretty-printer!): Update.
3642 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
3643 (pretty_printer_list_var): Delete.
3644 (pretty_printer_list): New static global.
3645 (gdbscm_pretty_printers): New function.
3646 (gdbscm_set_pretty_printers_x): New function.
3647 (ppscm_find_pretty_printer_from_gdb): Update.
3648 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
3649 (gdbscm_initialize_pretty_printers): Update.
3650
74edf516
DE
36512014-07-26 Doug Evans <xdje42@gmail.com>
3652
3653 PR 17185
3654 * configure.ac: Add check for header gc/gc.h.
3655 Add check for function setenv.
3656 * configure: Regenerate.
3657 * config.in: Regenerate.
3658 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
3659
d54398a7
MR
36602014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
3661
3662 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
3663 variation in gdbarch matching.
3664
ab16fce8
TT
36652014-07-25 Tom Tromey <tromey@redhat.com>
3666
3667 * exec.c (using_exec_ops): Remove.
3668 (exec_close_1): Update. Remove extraneous block, reindent.
3669 (add_target_sections): Use target_is_pushed.
3670
88056fbb
PA
36712014-07-25 Pedro Alves <palves@redhat.com>
3672
3673 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
3674 * monitor.c (monitor_create_inferior): Likewise.
3675 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
3676 * remote-sim.c (gdbsim_create_inferior): Likewise.
3677 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
3678 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
3679 * windows-nat.c (do_initial_windows_stuff): Likewise.
3680
70509625
PA
36812014-07-25 Pedro Alves <palves@redhat.com>
3682
3683 * NEWS: Mention signal passing and "signal" command changes.
3684 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
3685 comment.
3686 * breakpoint.c (until_break_command): Adjust clear_proceed_status
3687 call.
3688 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
3689 * infcmd.c (proceed_thread_callback, continue_1, step_once)
3690 (jump_command): Adjust clear_proceed_status call.
3691 (signal_command): Warn if other thread that are resumed have
3692 signals that will be delivered. Adjust clear_proceed_status call.
3693 (until_next_command, finish_command)
3694 (proceed_after_attach_callback, attach_command_post_wait)
3695 (attach_command): Adjust clear_proceed_status call.
3696 * infrun.c (proceed_after_vfork_done): Likewise.
3697 (proceed_after_attach_callback): Adjust comment.
3698 (clear_proceed_status_thread): Clear stop_signal if not in pass
3699 state.
3700 (clear_proceed_status_callback): Delete.
3701 (clear_proceed_status): New 'step' parameter. Only clear the
3702 proceed status of threads the command being prepared is about to
3703 resume.
3704 (proceed): If passed in an explicit signal, override stop_signal
3705 with it. Don't pass the last stop signal to the thread we're
3706 resuming.
3707 (init_wait_for_inferior): Adjust clear_proceed_status call.
3708 (switch_back_to_stepped_thread): Clear the signal if it should not
3709 be passed.
3710 * infrun.h (clear_proceed_status): New 'step' parameter.
3711 (user_visible_resume_ptid): Add comment.
3712 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
3713 signal is in pass state.
3714 * remote.c (append_pending_thread_resumptions): Likewise.
3715 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
3716
d8be2939
TT
37172014-07-25 Tom Tromey <tromey@redhat.com>
3718
3719 * target.h (target_stopped_data_address)
3720 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
3721 parentheses.
3722
7d0d9d2b
PL
37232014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
3724
3725 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
3726 comments.
3727 (avr_pointer_to_address): Likewise.
3728
e9e7f724
TT
37292014-07-24 Tom Tromey <tromey@redhat.com>
3730
3731 * monitor.c (compile_pattern): Update.
3732 * target.h (struct target_ops) <to_shortname, to_longname,
3733 to_doc>: Now const.
3734
1947513d
TT
37352014-07-24 Tom Tromey <tromey@redhat.com>
3736
3737 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
3738 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
3739 (add_info_alias, add_com): Make "doc" const.
3740 (print_doc_line): Make "str" const.
3741 (delete_cmd): Update.
3742 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
3743 (print_doc_line): Update.
3744 * cli/cli-script.c (document_command): Update.
3745 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
3746 (add_com, add_info, add_info_alias): Update.
3747 * guile/scm-cmd.c (cmdscm_destroyer): Update.
3748 * python/py-cmd.c (cmdpy_destroyer): Update.
3749
64e61d29
TT
37502014-07-24 Tom Tromey <tromey@redhat.com>
3751
3752 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
3753 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
3754 (help_cmd_list): Constify.
3755 (lookup_cmd): Update.
3756 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
3757 const.
3758 (help_cmd_list, apropos_cmd): Update.
3759 * cli/cli-script.c (show_user): Update.
3760 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
3761 * cli/cli-setshow.h (cmd_show_list): Update.
3762 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
3763 (cmd_show_list): Update.
3764 * guile/scm-cmd.c (cmdscm_destroyer): Update.
3765 * python/py-cmd.c (cmdpy_destroyer): Update.
3766
429e55ea
TT
37672014-07-24 Tom Tromey <tromey@redhat.com>
3768
3769 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
3770 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
3771 const.
3772 * command.h (deprecate_cmd): Update.
3773 * maint.c (maintenance_do_deprecate): Add casts.
3774
64669f3b
TT
37752014-07-24 Tom Tromey <tromey@redhat.com>
3776
3777 * cli/cli-decode.c (help_cmd): Make parameter "const".
3778 * cli/cli-decode.h (help_cmd): Update.
3779
d3d3328b
TT
37802014-07-24 Tom Tromey <tromey@redhat.com>
3781
3782 * stack.c (up_silently_base, down_silently_base): Make argument
3783 const.
3784
414842dc
TT
37852014-07-24 Tom Tromey <tromey@redhat.com>
3786
3787 * solib.c (solib_add): Make "pattern" const.
3788 * solib.h (solib_add): Update.
3789
baa336ce
TT
37902014-07-24 Tom Tromey <tromey@redhat.com>
3791
3792 * remote.c (remote_serial_open, print_packet, putpkt)
3793 (putpkt_binary): Constify.
3794 * remote.h (putpkt): Update.
3795
5a19e2d0
TT
37962014-07-24 Tom Tromey <tromey@redhat.com>
3797
3798 * monitor.c (monitor_open): Make "args" const.
3799 * monitor.h (monitor_open): Update.
3800
fc4baa5e
TT
38012014-07-24 Tom Tromey <tromey@redhat.com>
3802
3803 * maint.c (match_bfd_flags): Make "string" const.
3804 (print_bfd_section_info): Remove casts.
3805 (print_objfile_section_info): Make "string" const.
3806
0d5f0dbe
TT
38072014-07-24 Tom Tromey <tromey@redhat.com>
3808
3809 * inf-child.c (inf_child_open_target): Make "arg" const.
3810 * inf-child.h (inf_child_open_target): Update.
3811
41c77899
TT
38122014-07-24 Tom Tromey <tromey@redhat.com>
3813
3814 * environ.c (unset_in_environ): Make "var" const.
3815 * environ.h (unset_in_environ): Update.
3816
93db0d79
TT
38172014-07-24 Tom Tromey <tromey@redhat.com>
3818
3819 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
3820 Make "cmd" const.
3821 (scan_filename_with_cleanup): Likewise.
3822 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
3823 Make arguments const.
3824 (restore_command): Update.
3825
36d6eb95
PA
38262014-07-24 Pedro Alves <palves@redhat.com>
3827
3828 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
3829
8009206a
TT
38302014-07-24 Tom Tromey <tromey@redhat.com>
3831 Gary Benson <gbenson@redhat.com>
3832
3833 * nat/linux-ptrace.c (additional_flags): New global.
3834 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
3835 additional_flags; don't check GDBSERVER.
3836 (linux_ptrace_set_additional_flags): New function.
3837 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
3838 Declare.
3839 * linux-nat.c (_initialize_linux_nat): Call
3840 linux_ptrace_set_additional_flags.
3841
a7068b60
TT
38422014-07-24 Tom Tromey <tromey@redhat.com>
3843
3844 * make-target-delegates (munge_type, write_debugmethod): New
3845 functions.
3846 (debug_names): New global.
3847 ($TARGET_DEBUG_PRINTER): New global.
3848 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
3849 name.
3850 Write debug methods. Generate init_debug_target.
3851 * target-debug.h: New file.
3852 * target-delegates.c: Rebuild.
3853 * target.c: Include target-debug.h.
3854 (debug_target): Hoist definition.
3855 (target_kill, target_get_section_table, target_memory_map)
3856 (target_flash_erase, target_flash_done, target_detach)
3857 (target_disconnect, target_wait, target_resume)
3858 (target_pass_signals, target_program_signals, target_follow_fork)
3859 (target_mourn_inferior, target_search_memory)
3860 (target_thread_address_space, target_close)
3861 (target_find_new_threads, target_core_of_thread)
3862 (target_verify_memory, target_insert_mask_watchpoint)
3863 (target_remove_mask_watchpoint): Remove targetdebug code.
3864 (debug_to_post_attach, debug_to_prepare_to_store)
3865 (debug_to_files_info, debug_to_insert_breakpoint)
3866 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
3867 (debug_to_region_ok_for_hw_watchpoint)
3868 (debug_to_can_accel_watchpoint_condition)
3869 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
3870 (debug_to_watchpoint_addr_within_range)
3871 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
3872 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
3873 (debug_to_terminal_init, debug_to_terminal_inferior)
3874 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
3875 (debug_to_terminal_save_ours, debug_to_terminal_info)
3876 (debug_to_load, debug_to_post_startup_inferior)
3877 (debug_to_insert_fork_catchpoint)
3878 (debug_to_remove_fork_catchpoint)
3879 (debug_to_insert_vfork_catchpoint)
3880 (debug_to_remove_vfork_catchpoint)
3881 (debug_to_insert_exec_catchpoint)
3882 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
3883 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
3884 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
3885 (setup_target_debug): Call init_debug_target.
3886 * target.h (TARGET_DEBUG_PRINTER): New macro.
3887 (struct target_ops) <to_resume, to_wait, to_pass_signals,
3888 to_program_signals>: Use TARGET_DEBUG_PRINTER.
3889
2c51604d
GB
38902014-07-24 Gary Benson <gbenson@redhat.com>
3891
3892 * exceptions.h (throw_vfatal): Renamed to...
3893 (throw_vquit): New declaration.
3894 (throw_quit): Likewise.
3895 * exceptions.c (throw_vfatal): Renamed to...
3896 (throw_vquit): New function.
3897 (throw_quit): Likewise.
3898 (throw_error): Call throw_verror rather than throw_it.
3899 * utils.h (vfatal): Removed.
3900 (fatal): Likewise.
3901 * utils.c (vfatal): Removed.
3902 (fatal): Likewise.
3903 (internal_verror): Replaced call to fatal with call to throw_quit.
3904 (quit): Replaced calls to fatal with calls to throw_quit.
3905
34211963
ME
39062014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
3907
3908 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
3909 target_read_code.
3910
a52b4d3e
ME
39112014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
3912
3913 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
3914 less than zero in conditional expression.
3915
a8bdc56b
TT
39162014-07-23 Tom Tromey <tromey@redhat.com>
3917
3918 * make-target-delegates ($ARGS_PART): Match trailing close paren.
3919 ($INTRO_PART): Don't match whitespace.
3920 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
3921 argument matching.
3922 ($METHOD): Add $METHOD_TRAILER.
3923 (trim): Rewrite.
3924 (scan_target_h): New sub.
3925 Change main loop not to collect state.
3926 * target-delegates.c: Rebuild.
3927
91b52240
GB
39282014-07-23 Gary Benson <gbenson@redhat.com>
3929
3930 * cp-support.c (gdb_demangle): Fix build on systems without
3931 sigaltstack.
3932
45326f6f
JK
39332014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3934
3935 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
3936 for reference entry value target data value.
3937
e214cf6c
JK
39382014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3939
3940 * stack.c (read_frame_arg): Verify value_optimized_out before calling
3941 value_available_contents_eq.
3942
bddbbedd
PA
39432014-07-22 Pedro Alves <palves@redhat.com>
3944
3945 * value.c (allocate_optimized_out_value): Don't mark value as
3946 non-lazy.
3947
45c71484
JW
39482014-07-22 Jiong Wang <jiong.wang@arm.com>
3949
3950 * MAINTAINERS (Write After Approval): Update my email address.
3951
9597b22a
DE
39522014-07-20 Doug Evans <dje@google.com>
3953
3954 PR server/17147
3955 * remote.c (putpkt_binary): Add text to error message.
3956
91101fe5
YQ
39572014-07-20 Yao Qi <yao@codesourcery.com>
3958
3959 * eval.c: Remove "Chill" from comments.
3960 * gdbtypes.h: Likewise.
3961 * symtab.h: Likewise.
3962
c9402c95
YQ
39632014-07-20 Yao Qi <yao@codesourcery.com>
3964
3965 * std-operator.def: Update comments to TERNOP_SLICE.
3966
ae8fddda
YQ
39672014-07-20 Yao Qi <yao@codesourcery.com>
3968
3969 * std-operator.def: Remove BINOP_RANGE.
3970 * breakpoint.c (watchpoint_exp_is_const): Update.
3971 * expprint.c (dump_subexp_body_standard): Likewise.
3972 * eval.c (init_array_element): Remove dead code.
3973 (evaluate_subexp_standard): Likewise.
3974
9c816640
YQ
39752014-07-20 Yao Qi <yao@codesourcery.com>
3976
3977 * std-operator.def: Remove BINOP_IN.
3978 * breakpoint.c (watchpoint_exp_is_const): Update.
3979 * eval.c (evaluate_subexp_standard): Likewise.
3980 * expprint.c (dump_subexp_body_standard): Likewise.
3981
164224e9
ME
39822014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
3983
3984 * microblaze-tdep.c (microblaze_register_names): Add
3985 the rshr and rslr register names.
3986 (microblaze_gdbarch_init): Use of tdesc_has_registers.
3987 Use of tdesc_find_feature. Use of tdesc_data_alloc.
3988 Use of tdesc_numbered_register. Use of
3989 microblaze_register_g_packet_guesses. Use of
3990 tdesc_use_registers. Use of set_gdbarch_register_type.
3991 (microblaze_register_g_packet_guesses): New.
3992 * microblaze-tdep.h (microblaze_reg_num): Add
3993 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
3994 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
3995 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
3996 * features/microblaze-core.xml: New file.
3997 * features/microblaze-stack-protect.xml: New file.
3998 * features/microblaze-with-stack-protect.c: New file.
3999 * features/microblaze-with-stack-protect.xml: New file.
4000 * features/microblaze.xml: New file.
4001 * features/microblaze.c: New file.
4002 * features/Makefile (microblaze-with-stack-protect): Add
4003 microblaze-with-stack-protect microblaze and microblaze-expedite.
4004 * regformats/microblaze-with-stack-protect.dat: New file.
4005 * regformats/microblaze.dat: New file.
4006 * doc/gdb.texinfo (MicroBlaze Features): Added.
4007
e8b2341c
TT
40082014-07-18 Tom Tromey <tromey@redhat.com>
4009
4010 * exec.c (exec_ops): Now static.
4011 * exec.h (exec_ops): Don't declare.
4012
44e89118
TT
40132014-07-18 Tom Tromey <tromey@redhat.com>
4014
4015 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
4016 to find_target_beneath.
4017 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
4018 find_target_beneath.
4019 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
4020
b0ed115f
TT
40212014-07-18 Tom Tromey <tromey@redhat.com>
4022
4023 PR gdb/17130:
4024 * utils.c (quit): Use target_supports_terminal_ours.
4025 * target.h (target_supports_terminal_ours): Declare.
4026 * target.c (target_supports_delete_record): Don't check
4027 to_delete_record against NULL.
4028 (target_supports_terminal_ours): New function.
4029
e75fdfca
TT
40302014-07-18 Tom Tromey <tromey@redhat.com>
4031
4032 PR gdb/17130:
4033 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
4034 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
4035 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
4036 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
4037 * windows-nat.c (windows_xfer_partial): Always delegate.
4038 * record-btrace.c (record_btrace_xfer_partial): Simplify
4039 delegation.
4040 (record_btrace_fetch_registers, record_btrace_store_registers)
4041 (record_btrace_prepare_to_store, record_btrace_resume)
4042 (record_btrace_wait, record_btrace_find_new_threads)
4043 (record_btrace_thread_alive): Likewise.
4044 * procfs.c (procfs_xfer_partial): Always delegate.
4045 * corelow.c (core_xfer_partial): Always delegate.
4046 * sol-thread.c (sol_find_new_threads): Simplify delegation.
4047
83814951
TT
40482014-07-18 Tom Tromey <tromey@redhat.com>
4049
4050 * exec.c (exec_make_note_section): Move earlier.
4051
b8b8facf
DE
40522014-07-17 Doug Evans <dje@google.com>
4053
74b49205 4054 PR gdb/17170
b8b8facf
DE
4055 * maint.c (count_symtabs_and_blocks): Handle NULL
4056 current_program_space.
4057 (report_command_stats): Check global enabled flag in addition to
4058 recorded enabled flag.
4059 (make_command_stats_cleanup): Handle msg_type == 0, startup.
4060
69ff6be5
PA
40612014-07-16 Pedro Alves <palves@redhat.com>
4062
4063 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
4064
252db1b5
TT
40652014-07-16 Tom Tromey <tromey@redhat.com>
4066
4067 * target.h (struct target_ops) <to_delete_record>: Reformat
4068 comment.
4069
a432721e
TT
40702014-07-16 Tom Tromey <tromey@redhat.com>
4071
4072 * target-delegates.c: Rebuild.
4073
487d9753
PL
40742014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
4075
4076 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
4077 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
4078 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
4079 (avr_pointer_to_address): Likewise.
4080 (avr_address_class_type_flags): New function.
4081 (avr_address_class_type_flags_to_name): Likewise.
4082 (avr_address_class_name_to_type_flags): Likewise.
4083 (avr_gdbarch_init): Set address_class_type_flags,
4084 address_class_type_flags_to_name and
4085 address_class_name_to_type_flags.
4086
57745c90
PA
40872014-07-15 Pedro Alves <palves@redhat.com>
4088
4089 * linux-nat.c (kill_callback): Save errno and work with saved
4090 copy.
4091
2d40be18
SM
40922014-07-15 Simon Marchi <simon.marchi@ericsson.com>
4093
4094 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
4095
572f6555
EBM
40962014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4097
4098 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
4099 breakpoint support correctly.
4100
cc1c52ad
PA
41012014-07-14 Pedro Alves <palves@redhat.com>
4102
4103 * utils.c (prompt_for_continue): Call target_terminal_ours.
4104
1e973570
PA
41052014-07-14 Pedro Alves <palves@redhat.com>
4106
4107 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
4108 catch_errors. Don't re-enable stdin or notify observers where,
4109 and rethrow error.
4110 (fetch_inferior_event_wrapper): Delete.
4111
93d6eb10
PA
41122014-07-14 Pedro Alves <palves@redhat.com>
4113
4114 PR gdb/17072
4115 * top.c: Include "inf-loop.h".
4116 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
4117 field.
4118 (gdb_readline_wrapper_cleanup): Make the target async again, if it
4119 was async before.
4120 (gdb_readline_wrapper): Store whether the target is async, and
4121 make it sync.
4122
0017922d
PA
41232014-07-14 Pedro Alves <palves@redhat.com>
4124
4125 PR gdb/17072
4126 * top.c (gdb_readline_wrapper_line): Tweak comment.
4127 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
4128 the input handler callback.
4129
94696ad3
PA
41302014-07-14 Pedro Alves <palves@redhat.com>
4131
4132 PR gdb/17072
4133 * main.c: Include event-top.h.
4134 (handle_command_errors): New function.
4135 (catch_command_errors, catch_command_errors_const): Use it.
4136
9d1e69a2
PA
41372014-07-14 Pedro Alves <palves@redhat.com>
4138
4139 * exceptions.c (catch_command_errors, catch_command_errors_const):
4140 Moved to main.c.
4141 * exceptions.h (catch_command_errors_ftype)
4142 (catch_command_errors_const_ftype): Moved to main.c.
4143 (catch_command_errors, catch_command_errors_const): Delete
4144 declarations.
4145 * main.c (catch_command_errors_ftype)
4146 (catch_command_errors_const_ftype): Moved here from exceptions.h.
4147 (catch_command_errors, catch_command_errors_const)): Moved here
4148 from exceptions.c and make static.
4149
feefc97b
PA
41502014-07-14 Pedro Alves <palves@redhat.com>
4151
4152 * exceptions.c (print_any_exception): Delete.
4153 (catch_exceptions_with_msg): Use exception_print instead of
4154 print_any_exception.
4155 (catch_errors): Use exception_fprintf instead of
4156 print_any_exception.
4157 (catch_command_errors, catch_command_errors_const): Use
4158 exception_print instead of print_any_exception.
4159
c933f875
PA
41602014-07-14 Pedro Alves <palves@redhat.com>
4161
4162 * infcall.c (run_inferior_call): Set 'sync_execution' while
4163 running the inferior call.
4164
feb6f816
PA
41652014-07-14 Pedro Alves <palves@redhat.com>
4166
4167 * value.c (value_contents_equal): Delete function.
4168 * value.h (value_contents_equal): Delete declaration.
4169
d98b7a16
TT
41702014-07-14 Tom Tromey <tromey@redhat.com>
4171
4172 PR exp/17106:
4173 * gdbtypes.c (is_dynamic_type_internal): New function, from
4174 is_dynamic_type.
4175 (is_dynamic_type): Rewrite.
4176 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
4177 (resolve_dynamic_struct): Likewise.
4178 (resolve_dynamic_type_internal): New function, from
4179 resolve_dynamic_type.
4180 (resolve_dynamic_type): Rewrite.
4181
548740d6
TT
41822014-07-14 Tom Tromey <tromey@redhat.com>
4183
4184 * target.c (target_require_runnable): Also check record_stratum.
4185 Update comment.
4186
808f7ab1
YQ
41872014-07-11 Yao Qi <yao@codesourcery.com>
4188
4189 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
4190 thumb_instruction_restores_sp return true.
4191
540314bd
YQ
41922014-07-11 Yao Qi <yao@codesourcery.com>
4193
4194 * arm-tdep.c (thumb_instruction_restores_sp): New function.
4195 (thumb_in_function_epilogue_p): Call
4196 thumb_instruction_restores_sp.
4197
1db01f22
YQ
41982014-07-11 Yao Qi <yao@codesourcery.com>
4199
4200 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
4201 'add sp, #imm'.
4202 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
4203
3116063b
GB
42042014-07-11 Gary Benson <gbenson@redhat.com>
4205
4206 * amd64-linux-nat.c (gdbcore.h): Remove include.
4207 (regset.h): Likewise.
4208 (nat/linux-btrace.h): Likewise.
4209 (btrace.h): Likewise.
4210 (gdb_assert.h): Likewise.
4211 (string.h): Likewise.
4212 (sys/uio.h): Likewise.
4213 (sys/debugreg.h): Likewise.
4214 (sys/syscall.h): Likewise.
4215 (sys/procfs.h): Likewise.
4216 (sys/user.h): Likewise.
4217 (asm/ptrace.h): Likewise.
4218 (i386-nat.h): Likewise.
4219 * i386-linux-nat.c (i386-nat.h): Likewise.
4220 (regset.h): Likewise.
4221 (target.h): Likewise.
4222 (linux-nat.h): Likewise.
4223 (nat/linux-btrace.h): Likewise.
4224 (btrace.h): Likewise.
4225 (gdb_assert.h): Likewise.
4226 (string.h): Likewise.
4227 (sys/uio.h): Likewise.
4228 (sys/user.h): Likewise.
4229 (sys/procfs.h): Likewise.
4230 (sys/reg.h): Likewise.
4231 (sys/debugreg.h): Likewise.
4232 (ORIG_EAX): Remove definition.
4233
040baaf6
GB
42342014-07-11 Gary Benson <gbenson@redhat.com>
4235
4236 * i386-linux-nat.h: New file.
4237 * x86-linux-nat.h: Likewise.
4238 * x86-linux-nat.c: Likewise.
4239 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
4240 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
4241 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4242 * amd64-linux-nat.c (x86-linux-nat.h): New include.
4243 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
4244 (PTRACE_SETREGSET): Likewise.
4245 (arch_lwp_info): Now in x86-linux-nat.c.
4246 (have_ptrace_getregset): Now in x86-linux-nat.h.
4247 (x86_linux_dr_get): Now in x86-linux-nat.c.
4248 (x86_linux_dr_set): Likewise.
4249 (x86_linux_dr_get_addr): Likewise.
4250 (x86_linux_dr_get_control): Likewise.
4251 (x86_linux_dr_get_status): Likewise.
4252 (update_debug_registers_callback): Likewise.
4253 (x86_linux_dr_set_control): Likewise.
4254 (x86_linux_dr_set_addr): Likewise.
4255 (x86_linux_prepare_to_resume): Likewise.
4256 (x86_linux_new_thread): Likewise.
4257 (x86_linux_new_fork): Likewise.
4258 (x86_linux_get_thread_area): Likewise.
4259 (super_post_startup_inferior): Likewise.
4260 (x86_linux_child_post_startup_inferior): Likewise.
4261 (AMD64_LINUX_USER64_CS): Likewise.
4262 (AMD64_LINUX_X32_DS): Likewise.
4263 (x86_linux_read_description): Likewise.
4264 (x86_linux_enable_btrace): Likewise.
4265 (x86_linux_disable_btrace): Likewise.
4266 (x86_linux_teardown_btrace): Likewise.
4267 (x86_linux_read_btrace): Likewise.
4268 (x86_linux_create_target): Likewise.
4269 (x86_linux_add_target): Likewise.
4270 * i386-linux-nat.c (x86-linux-nat.h): New include.
4271 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
4272 (PTRACE_SETREGSET): Likewise.
4273 (arch_lwp_info): Now in x86-linux-nat.c.
4274 (have_ptrace_getregset): Now in x86-linux-nat.h.
4275 (x86_linux_dr_get): Now in x86-linux-nat.c.
4276 (x86_linux_dr_set): Likewise.
4277 (x86_linux_dr_get_addr): Likewise.
4278 (x86_linux_dr_get_control): Likewise.
4279 (x86_linux_dr_get_status): Likewise.
4280 (update_debug_registers_callback): Likewise.
4281 (x86_linux_dr_set_control): Likewise.
4282 (x86_linux_dr_set_addr): Likewise.
4283 (x86_linux_prepare_to_resume): Likewise.
4284 (x86_linux_new_thread): Likewise.
4285 (x86_linux_new_fork): Likewise.
4286 (x86_linux_get_thread_area): Likewise.
4287 (super_post_startup_inferior): Likewise.
4288 (x86_linux_child_post_startup_inferior): Likewise.
4289 (AMD64_LINUX_USER64_CS): Likewise.
4290 (AMD64_LINUX_X32_DS): Likewise.
4291 (x86_linux_read_description): Likewise.
4292 (x86_linux_enable_btrace): Likewise.
4293 (x86_linux_disable_btrace): Likewise.
4294 (x86_linux_teardown_btrace): Likewise.
4295 (x86_linux_read_btrace): Likewise.
4296 (x86_linux_create_target): Likewise.
4297 (x86_linux_add_target): Likewise.
4298
1aa7e42c
GB
42992014-07-11 Gary Benson <gbenson@redhat.com>
4300
4301 * amd64-linux-nat.c: Comment and whitespace changes.
4302 * i386-linux-nat.c: Comment and whitespace changes.
4303
c1e246a0
GB
43042014-07-11 Gary Benson <gbenson@redhat.com>
4305
4306 * amd64-linux-nat.c (x86_linux_create_target): New function.
4307 (x86_linux_add_target): Likewise.
4308 (_initialize_amd64_linux_nat): Delegate to the above new functions.
4309 * i386-linux-nat.c (x86_linux_create_target): New function.
4310 (x86_linux_add_target): Likewise.
4311 (_initialize_i386_linux_nat): Delegate to the above new functions.
4312
8c420b8d
GB
43132014-07-11 Gary Benson <gbenson@redhat.com>
4314
4315 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
4316 (ps_get_thread_area): Delegate to the above in 32-bit mode.
4317 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
4318 (ps_get_thread_area): Delegate to the above.
4319
cb1da100
GB
43202014-07-11 Gary Benson <gbenson@redhat.com>
4321
4322 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
4323 x86_linux_read_description. All uses updated. amd64-specific
4324 code conditionalized. Conditionalized i386-specific code added.
4325 Redundant cast removed.
4326 * i386-linux-nat.c (i386_linux_read_description): Renamed to
4327 x86_linux_read_description. All uses updated. i386-specific
4328 code conditionalized. Conditionalized amd64-specific code added.
4329 One sizeof replaced with the actual type it is describing.
4330
2acf3cd0
GB
43312014-07-11 Gary Benson <gbenson@redhat.com>
4332
4333 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
4334 x86_linux_dr_get. All uses updated.
4335 (amd64_linux_dr_set): Renamed to
4336 x86_linux_dr_set. All uses updated.
4337 (amd64_linux_dr_get_addr): Renamed to
4338 x86_linux_dr_get_addr. All uses updated.
4339 (amd64_linux_dr_get_control): Renamed to
4340 x86_linux_dr_get_control. All uses updated.
4341 (amd64_linux_dr_get_status): Renamed to
4342 x86_linux_dr_get_status. All uses updated.
4343 (amd64_linux_dr_set_control): Renamed to
4344 x86_linux_dr_set_control. All uses updated.
4345 (amd64_linux_dr_set_addr): Renamed to
4346 x86_linux_dr_set_addr. All uses updated.
4347 (amd64_linux_prepare_to_resume): Renamed to
4348 x86_linux_prepare_to_resume. All uses updated.
4349 (amd64_linux_new_thread): Renamed to
4350 x86_linux_new_thread. All uses updated.
4351 (amd64_linux_new_fork): Renamed to
4352 x86_linux_new_fork. All uses updated.
4353 (amd64_linux_child_post_startup_inferior): Renamed to
4354 x86_linux_child_post_startup_inferior. All uses updated.
4355 (amd64_linux_enable_btrace): Renamed to
4356 x86_linux_enable_btrace. All uses updated.
4357 (amd64_linux_disable_btrace): Renamed to
4358 x86_linux_disable_btrace. All uses updated.
4359 (amd64_linux_teardown_btrace): Renamed to
4360 x86_linux_teardown_btrace. All uses updated.
4361 (amd64_linux_read_btrace): Renamed to
4362 x86_linux_read_btrace. All uses updated.
4363 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
4364 x86_linux_dr_get. All uses updated.
4365 (i386_linux_dr_set): Renamed to
4366 x86_linux_dr_set. All uses updated.
4367 (i386_linux_dr_get_addr): Renamed to
4368 x86_linux_dr_get_addr. All uses updated.
4369 (i386_linux_dr_get_control): Renamed to
4370 x86_linux_dr_get_control. All uses updated.
4371 (i386_linux_dr_get_status): Renamed to
4372 x86_linux_dr_get_status. All uses updated.
4373 (i386_linux_dr_set_control): Renamed to
4374 x86_linux_dr_set_control. All uses updated.
4375 (i386_linux_dr_set_addr): Renamed to
4376 x86_linux_dr_set_addr. All uses updated.
4377 (i386_linux_prepare_to_resume): Renamed to
4378 x86_linux_prepare_to_resume. All uses updated.
4379 (i386_linux_new_thread): Renamed to
4380 x86_linux_new_thread. All uses updated.
4381 (i386_linux_new_fork): Renamed to
4382 x86_linux_new_fork. All uses updated.
4383 (i386_linux_child_post_startup_inferior): Renamed to
4384 x86_linux_child_post_startup_inferior. All uses updated.
4385 (i386_linux_enable_btrace): Renamed to
4386 x86_linux_enable_btrace. All uses updated.
4387 (i386_linux_disable_btrace): Renamed to
4388 x86_linux_disable_btrace. All uses updated.
4389 (i386_linux_teardown_btrace): Renamed to
4390 x86_linux_teardown_btrace. All uses updated.
4391 (i386_linux_read_btrace): Renamed to
4392 x86_linux_read_btrace. All uses updated.
4393
b9c1d481
AS
43942014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
4395
4396 * remote.c (extended_remote_post_attach): New function.
4397 (init_extended_remote_ops): Install it as to_post_attach method.
4398
7180e04a
PA
43992014-07-09 Pedro Alves <palves@redhat.com>
4400
4401 * infcmd.c (attach_command_post_wait): Don't call
4402 target_terminal_inferior here.
4403 (attach_command): Call it here instead.
4404
9a9a7608
AB
44052014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4406
4407 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
4408 field.
4409 * c-varobj.c (c_is_path_expr_parent): New function, moved core
4410 from varobj.c, with additional checks.
4411 (c_varobj_ops): Fill in is_path_expr_parent field.
4412 (cplus_varobj_ops): Fill in is_path_expr_parent field.
4413 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
4414 field.
4415 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
4416 ops method.
4417 (varobj_default_is_path_expr_parent): New function.
4418 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
4419 (varobj_default_is_path_expr_parent): Declare new function.
4420
1f267ae3
MM
44212014-07-08 Markus Metzger <markus.t.metzger@intel.com>
4422
4423 * infcmd.c (finish_backward): Turn internal error into normal error.
4424
b2ee242b
PA
44252014-07-07 Pedro Alves <palves@redhat.com>
4426
8a869bca 4427 PR gdb/17096
b2ee242b
PA
4428 * remote.c (async_handle_remote_sigint)
4429 (async_handle_remote_sigint_twice): Call
4430 gdb_call_async_signal_handler instead of
4431 mark_async_signal_handler.
4432
38e229b2
TT
44332014-07-07 Tom Tromey <tromey@redhat.com>
4434
4435 * target-delegates.c: Rebuild.
4436 * target.c (target_info_record): Remove.
4437 * record.c (info_record_command): Unconditionally call
4438 to_info_record.
4439 * target.h (struct target_ops) <to_info_record>: Use
4440 TARGET_DEFAULT_IGNORE.
4441 (target_info_record): Remove.
4442
f0f9ff95
TT
44432014-07-07 Tom Tromey <tromey@redhat.com>
4444
4445 * target.h (struct target_ops) <to_get_thread_local_address>: Use
4446 TARGET_DEFAULT_NORETURN.
4447 * target.c (generic_tls_error): New function.
4448 (target_translate_tls_address): Don't search target stack.
4449 * target-delegates.c: Rebuild.
4450 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
4451 stack.
4452 * linux-thread-db.c (thread_db_get_thread_local_address):
4453 Unconditionally call beneath target.
4454
4a5be5ee
MK
44552014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
4456
4457 * cli/cli-logging.c (pop_output_files): Assign targerr to
4458 gdb_stdtargerr.
4459
92c3b204
AB
44602014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
4461
4462 * MAINTAINERS (Write After Approval): Update my email address.
4463
9b11e3a7
GB
44642014-07-02 Gary Benson <gbenson@redhat.com>
4465
4466 * proc-service.c (ps_xfer_memory): Update comment.
4467 (ps_pstop): Remove unused function.
4468 (ps_pcontinue): Likewise.
4469 (ps_lstop): Likewise.
4470 (ps_lcontinue): Likewise.
4471 (ps_lgetxregsize): Likewise.
4472 (ps_lgetxregs): Likewise.
4473 (ps_lsetxregs): Likewise.
4474 (ps_plog): Likewise.
4475 (ps_ptread): Likewise.
4476 (ps_ptwrite): Likewise.
4477
cf363f18
MW
44782014-07-01 Mark Wielaard <mjw@redhat.com>
4479
4480 * dwarf2read.c (add_array_cv_type): New function.
4481 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
4482 (read_tag_volatile_type): Likewise.
4483
82ae6c8d
TT
44842014-07-01 Tom Tromey <tromey@redhat.com>
4485
4486 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
4487 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
4488 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
4489 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
4490 * command.h (cmd_cfunc_ftype): Move earlier.
4491 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
4492 (add_com, add_info): Use cmd_cfunc_ftype.
4493
96142726
TT
44942014-06-30 Tom Tromey <tromey@redhat.com>
4495
4496 * symtab.c (operator_chars): Make parameters and return type
4497 const.
4498 (file_matches): Make "files" const.
4499 (struct search_symbols_data) <files>: Now const.
4500 (search_symbols): Make "regexp" and "files" parameters const.
4501 Update.
4502 (symtab_symbol_info): Remove cast.
4503 (rbreak_command): Update.
4504 * symtab.h (search_symbols): Update.
4505
b67a2c6f
YQ
45062014-06-27 Yao Qi <yao@codesourcery.com>
4507
4508 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
4509 Change parameter type to 'struct thread_info *'. Caller
4510 updated.
4511 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
4512 Update declaration.
4513 * dummy-frame.c (struct dummy_frame_id): New.
4514 (dummy_frame_id_eq): New function.
4515 (struct dummy_frame) <id>: Change its type to 'struct
4516 dummy_frame_id'.
4517 (dummy_frame_push): Add parameter ptid and save it in
4518 dummy_frame_id.
4519 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
4520 inferior_ptid.
4521 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
4522 to inferior_ptid.
4523 (lookup_dummy_frame): Change parameter type to 'struct
4524 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
4525 instead of frame_id_eq.
4526 (dummy_frame_pop): Add parameter ptid. Callers updated.
4527 Update comments. Compose dummy_frame_id and pass it to
4528 lookup_dummy_frame.
4529 (dummy_frame_discard): Add parameter ptid.
4530 (dummy_frame_sniffer): Compose dummy_frame_id and call
4531 dummy_frame_id_eq instead of frame_id_eq.
4532 (fprint_dummy_frames): Print ptid.
4533 * dummy-frame.h: Remove comments.
4534 (dummy_frame_push): Add ptid in declaration.
4535 (dummy_frame_pop, dummy_frame_discard): Likewise.
4536
5b10184c
TT
45372014-06-26 Tom Tromey <tromey@redhat.com>
4538
4539 * cli/cli-cmds.c (error_no_arg): Make "why" const.
4540 * command.h (error_no_arg): Update.
4541
06900326
TT
45422014-06-26 Tom Tromey <tromey@redhat.com>
4543
4544 * cli/cli-setshow.c (do_set_command): Make "arg" const.
4545 (do_show_command): Make "arg" const.
4546 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
4547
c2bcbb1d
TT
45482014-06-26 Tom Tromey <tromey@redhat.com>
4549
4550 * record-full.c (record_full_get_bookmark): Make "args" const.
4551 (record_full_goto_bookmark): Make "raw_bookmark" const.
4552 * record.c (record_goto): New function.
4553 (cmd_record_goto): Use it. Now static.
4554 * record.h (record_goto): Declare.
4555 (cmd_record_goto): Remove declaration.
4556 * target-delegates.c: Rebuild.
4557 * target.h (struct target_ops) <to_get_bookmark,
4558 to_goto_bookmark>: Make parameter const.
4559
9cbe5fff
TT
45602014-06-26 Tom Tromey <tromey@redhat.com>
4561
4562 * defs.h (generic_load): Update.
4563 * m32r-rom.c (m32r_load_gen): Make "filename" const.
4564 * monitor.c (monitor_load): Make "args" const.
4565 * remote-m32r-sdi.c (m32r_load): Make "args" const.
4566 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
4567 const.
4568 (mips_load): Make "file" const.
4569 * remote-sim.c (gdbsim_load): Make "args" const.
4570 * remote.c (remote_load): Make "name" const.
4571 * symfile.c (generic_load): Make "args" const.
4572 * target-delegates.c: Rebuild.
4573 * target.c (target_load): Make "arg" const.
4574 (debug_to_load): Make "args" const.
4575 * target.h (struct target_ops) <to_load>: Make parameter const.
4576 (target_load): Update.
4577
34a68019
TT
45782014-06-26 Tom Tromey <tromey@redhat.com>
4579
4580 PR symtab/16902:
4581 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
4582 (dwarf2_physname, read_partial_die)
4583 (guess_partial_die_structure_name, fixup_partial_die)
4584 (guess_full_die_structure_name, anonymous_struct_prefix)
4585 (dwarf2_name): Use per-BFD obstack.
4586
efc889c1
YQ
45872014-06-26 Yao Qi <yao@codesourcery.com>
4588
4589 * dummy-frame.c (dummy_frame_sniffer): Move local variables
4590 dummyframe and this_id into inner block below.
4591
4395285e
YQ
45922014-06-26 Yao Qi <yao@codesourcery.com>
4593
4594 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
4595 with "signal_pass[0]" in the initialization of signal_pass.
4596
aef92902
MM
45972014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4598
4599 * record-btrace.c (record_btrace_generating_corefile)
4600 (record_btrace_prepare_to_generate_core)
4601 (record_btrace_done_generating_core): New.
4602 (record_btrace_xfer_partial, record_btrace_fetch_registers)
4603 (record_btrace_store_registers, record_btrace_prepare_to_store):
4604 Forward request when generating a core file.
4605 (record_btrace_open): Set record_btrace_generating_corefile to zero.
4606 (init_record_btrace_ops): Set to_prepare_to_generate_core and
4607 to_done_generating_core.
4608
5fff78c4
MM
46092014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4610
4611 * target.h (target_ops) <to_prepare_to_generate_core>
4612 <to_done_generating_core>: New.
4613 (target_prepare_to_generate_core, target_done_generating_core): New.
4614 * target.c (target_prepare_to_generate_core)
4615 (target_done_generating_core): New.
4616 * target-delegates.c: Regenerate.
4617 * gcore.c: (write_gcore_file): Rename to ...
4618 (write_gcore_file_1): ...this.
4619 (write_gcore_file): Call target_prepare_to_generate_core
4620 and target_done_generating_core.
4621
1d1f1ccb
MM
46222014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4623
4624 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
4625 * gcore.c (write_gcore_file): Free memory returned from
4626 make_corefile_notes.
4627 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
4628 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
4629
3343ef86
YQ
46302014-06-24 Yao Qi <yao@codesourcery.com>
4631
4632 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
4633 (arm_linux_init_abi): Set skip_trampoline_code with
4634 gdbarch_skip_trampoline_code instead of
4635 find_solib_trampoline_target.
4636
18d18ac8
YQ
46372014-06-24 Yao Qi <yao@codesourcery.com>
4638
4639 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
4640 arm_skip_bx_reg returns non-zero.
4641
80d8d390
YQ
46422014-06-24 Yao Qi <yao@codesourcery.com>
4643
4644 * arm-tdep.c (arm_skip_bx_reg): New function.
4645 (arm_skip_stub): Call arm_skip_bx_reg.
4646
6a18a01c
DB
46472014-06-23 Don Breazeal <donb@codesourcery.com>
4648
4649 * MAINTAINERS: Add myself as write-after-approval maintainer.
4650
8e9db26e
PA
46512014-06-23 Pedro Alves <palves@redhat.com>
4652
4653 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
4654 DR_CONTROL before setting DR0..DR3.
4655 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
4656 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
4657 bits of DR_CONTROL related to the debug register slot being
4658 disabled. If all slots are vacant, clear local slowdown as well,
4659 and assert DR_CONTROL is 0.
4660
70afc5b7
SC
46612014-06-23 Siva Chandra Reddy <sivachandra@google.com>
4662
4663 * python/lib/gdb/command/xmethods.py
4664 (get_method_matchers_in_loci): Lookup xmethod matchers in the
4665 current progspace only if the string "progspace" matches LOCUS_RE.
4666
840ed64d
JK
46672014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4668
4669 Fix --with-system-readline with readline-6.3 patch 5.
4670 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
4671 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
4672 types.
4673
26f2dc30
TT
46742014-06-20 Tom Tromey <tromey@redhat.com>
4675
4676 * dwarf2read.c (dw2_get_real_path): Use correct type in
4677 OBSTACK_CALLOC.
4678 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
4679
125f8a3d
GB
46802014-06-20 Gary Benson <gbenson@redhat.com>
4681
4682 * common/gdb_thread_db.h: Moved to nat. All includes updated.
4683 * common/glibc_thread_db.h: Likewise.
4684 * common/i386-cpuid.h: Likewise.
4685 * common/i386-gcc-cpuid.h: Likewise.
4686 * common/linux-btrace.h: Likewise.
4687 * common/linux-osdata.h: Likewise.
4688 * common/linux-procfs.h: Likewise.
4689 * common/linux-ptrace.h: Likewise.
4690 * common/mips-linux-watch.h: Likewise.
4691 * common/linux-btrace.c: Moved to nat.
4692 * common/linux-osdata.c: Likewise.
4693 * common/linux-procfs.c: Likewise.
4694 * common/linux-ptrace.c: Likewise.
4695 * common/mips-linux-watch.c: Likewise.
4696 * nat/gdb_thread_db.h: Moved from common.
4697 * nat/glibc_thread_db.h: Likewise.
4698 * nat/i386-cpuid.h: Likewise.
4699 * nat/i386-gcc-cpuid.h: Likewise.
4700 * nat/linux-btrace.c: Likewise.
4701 * nat/linux-btrace.h: Likewise.
4702 * nat/linux-osdata.c: Likewise.
4703 * nat/linux-osdata.h: Likewise.
4704 * nat/linux-procfs.c: Likewise.
4705 * nat/linux-procfs.h: Likewise.
4706 * nat/linux-ptrace.c: Likewise.
4707 * nat/linux-ptrace.h: Likewise.
4708 * nat/mips-linux-watch.c: Likewise.
4709 * nat/mips-linux-watch.h: Likewise.
4710 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
4711 (object file files): Reordered.
4712 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
4713 of glibc_thread_db.h.
4714
42995dbd
GB
47152014-06-20 Gary Benson <gbenson@redhat.com>
4716
4717 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
4718 (i386_dr_low_type): Moved to nat/i386-dregs.h.
4719 (i386_dr_low): Likewise.
4720 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
4721 (i386_dr_low_set_addr): Likewise.
4722 (i386_dr_low_get_addr): Likewise.
4723 (i386_dr_low_can_set_control): Likewise.
4724 (i386_dr_low_set_control): Likewise.
4725 (i386_dr_low_get_control): Likewise.
4726 (i386_dr_low_get_status): Likewise.
4727 (i386_get_debug_register_length): Likewise.
4728 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
4729 (i386_dr_low): Likewise.
4730 * nat/i386-dregs.c (i386-low.h): Remove include.
4731 (i386-nat.h): Likewise.
4732 (nat/i386-dregs.h): New include.
4733 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
4734 (i386_dr_low_set_addr): Likewise.
4735 (i386_dr_low_get_addr): Likewise.
4736 (i386_dr_low_can_set_control): Likewise.
4737 (i386_dr_low_set_control): Likewise.
4738 (i386_dr_low_get_control): Likewise.
4739 (i386_dr_low_get_status): Likewise.
4740 (i386_get_debug_register_length): Likewise.
4741 (debug_hw_points): Likewise.
4742
3ed9baed
IB
47432014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
4744
4745 * Makefile.in (SFILES): Add d-exp.y.
4746 (YYFILES): Add d-exp.c.
4747 (YYOBJ): Add d-exp.o.
4748 (local-maintainer-clean): Delete d-exp.c.
4749 * d-exp.y: New file.
4750 * d-lang.h (d_parse): New declaration.
4751 (d_error): New declaration.
4752 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
4753 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
4754 PREC_ORDER operators.
4755 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
4756
78c164b0
YQ
47572014-06-19 Yao Qi <yao@codesourcery.com>
4758
4759 * gdbthread.h (any_running): Remove the declaration.
4760 * thread.c (any_running): Remove.
4761
f6e29b6e
YQ
47622014-06-19 Yao Qi <yao@codesourcery.com>
4763
4764 * gdbthread.h (struct thread_info) <state>: Change its type to
4765 'enum thread_state'. Update comments.
4766
034f788c
PA
47672014-06-19 Pedro Alves <palves@redhat.com>
4768
4769 * gdbthread.h (ALL_THREADS): Delete.
4770 (ALL_NON_EXITED_THREADS): New macro.
4771 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
4772 instead of ALL_THREADS.
4773 * infrun.c (find_thread_needs_step_over)
4774 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
4775 instead of ALL_THREADS.
4776 * record-btrace.c (record_btrace_open)
4777 (record_btrace_stop_recording, record_btrace_close)
4778 (record_btrace_is_replaying, record_btrace_resume)
4779 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
4780 * remote.c (append_pending_thread_resumptions): Likewise.
4781 * thread.c (thread_apply_all_command): Likewise.
4782
46e33252
GB
47832014-06-19 Gary Benson <gbenson@redhat.com>
4784
4785 * i386-nat.c (i386_stopped_by_watchpoint):
4786 Use i386_dr_stopped_by_watchpoint.
4787 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
4788 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
4789
3a8ee006
GB
47902014-06-19 Gary Benson <gbenson@redhat.com>
4791
4792 * nat/i386-dregs.c: New file.
4793 * Makefile.in (i386-dregs.o): New rule.
4794 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
4795 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
4796 * config/i386/darwin.mh (NATDEPFILES): Likewise.
4797 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
4798 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
4799 * config/i386/go32.mh (NATDEPFILES): Likewise.
4800 * config/i386/linux.mh (NATDEPFILES): Likewise.
4801 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4802 * config/i386/mingw.mh (NATDEPFILES): Likewise.
4803 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
4804 * i386-nat.h (debug_hw_points): New declaration.
4805 * i386-nat.c (breakpoint.h): Remove include.
4806 (command.h): Likewise.
4807 (target.h): Likewise.
4808 (gdb_assert.h): Likewise.
4809 (debug_hw_points): Made nonstatic.
4810 (debug_printf): Now in i386-dregs.c.
4811 (TARGET_HAS_DR_LEN_8): Likewise.
4812 (DR_CONTROL_SHIFT): Likewise.
4813 (DR_CONTROL_SIZE): Likewise.
4814 (DR_RW_EXECUTE): Likewise.
4815 (DR_RW_WRITE): Likewise.
4816 (DR_RW_READ): Likewise.
4817 (DR_RW_IORW): Likewise.
4818 (DR_LEN_1): Likewise.
4819 (DR_LEN_2): Likewise.
4820 (DR_LEN_4): Likewise.
4821 (DR_LEN_8): Likewise.
4822 (DR_LOCAL_ENABLE_SHIFT): Likewise.
4823 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
4824 (DR_ENABLE_SIZE): Likewise.
4825 (DR_LOCAL_SLOWDOWN): Likewise.
4826 (DR_GLOBAL_SLOWDOWN): Likewise.
4827 (DR_CONTROL_RESERVED): Likewise.
4828 (I386_DR_CONTROL_MASK): Likewise.
4829 (I386_DR_VACANT): Likewise.
4830 (I386_DR_LOCAL_ENABLE): Likewise.
4831 (I386_DR_GLOBAL_ENABLE): Likewise.
4832 (I386_DR_DISABLE): Likewise.
4833 (I386_DR_SET_RW_LEN): Likewise.
4834 (I386_DR_GET_RW_LEN): Likewise.
4835 (I386_DR_WATCH_HIT): Likewise.
4836 (i386_wp_op_t): Likewise.
4837 (i386_show_dr): Likewise.
4838 (i386_length_and_rw_bits): Likewise.
4839 (i386_insert_aligned_watchpoint): Likewise.
4840 (i386_remove_aligned_watchpoint): Likewise.
4841 (i386_handle_nonaligned_watchpoint): Likewise.
4842 (i386_update_inferior_debug_regs): Likewise.
4843 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
4844 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
4845 (i386_region_ok_for_watchpoint):
4846 Use i386_dr_region_ok_for_watchpoint.
4847 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
4848
322a8e06
GB
48492014-06-19 Gary Benson <gbenson@redhat.com>
4850
4851 * i386-nat.c (i386_insert_hw_breakpoint): Use
4852 i386_insert_watchpoint.
4853 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
4854
8f26655c
GB
48552014-06-19 Gary Benson <gbenson@redhat.com>
4856
4857 * i386-nat.c (i386_dr_show): Renamed to
4858 i386_show_dr and made static. All uses updated.
4859 (i386_dr_length_and_rw_bits): Renamed to
4860 i386_length_and_rw_bits and made static.
4861 All uses updated.
4862 (i386_dr_insert_aligned_watchpoint): Renamed to
4863 i386_insert_aligned_watchpoint and made static.
4864 All uses updated.
4865 (i386_dr_remove_aligned_watchpoint): Renamed to
4866 i386_remove_aligned_watchpoint and made static.
4867 All uses updated.
4868 (i386_dr_update_inferior_debug_regs): Renamed to
4869 i386_update_inferior_debug_regs and made static.
4870 All uses updated.
4871 * nat/i386-dregs.h (i386_dr_show): Removed.
4872 (i386_dr_length_and_rw_bits): Likewise.
4873 (i386_dr_insert_aligned_watchpoint): Likewise.
4874 (i386_dr_remove_aligned_watchpoint): Likewise.
4875 (i386_dr_update_inferior_debug_regs): Likewise.
4876
992c7d70
GB
48772014-06-19 Gary Benson <gbenson@redhat.com>
4878
4879 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
4880 * configure: Regenerate.
4881 * config.in: Likewise.
4882 * main.c (signal.h): New include.
4883 (setup_alternate_signal_stack): New function.
4884 (captured_main): Call the above.
4885 * cp-support.c (signal.h): New include.
4886 (catch_demangler_crashes): New flag.
4887 (SIGJMP_BUF): New define.
4888 (SIGSETJMP): Likewise.
4889 (SIGLONGJMP): Likewise.
4890 (gdb_demangle_jmp_buf): New static global.
4891 (gdb_demangle_attempt_core_dump): Likewise.
4892 (gdb_demangle_signal_handler): New function.
4893 (gdb_demangle): If catch_demangler_crashes is set, install the
4894 above signal handler before calling bfd_demangle, and restore
4895 the original signal handler afterwards. Display the offending
4896 symbol and call demangler_warning the first time a segmentation
4897 fault is caught.
4898 (_initialize_cp_support): New maint set/show command.
4899
eae7090b
GB
49002014-06-19 Gary Benson <gbenson@redhat.com>
4901
4902 * utils.h (resource_limit_kind): New enum.
4903 (can_dump_core): New declaration.
4904 (warn_cant_dump_core): Likewise.
4905 (dump_core): Likewise.
4906 * utils.c (dump_core): Made nonstatic. Added new
4907 parameter "limit_kind".
4908 (can_dump_core): Made nonstatic. Moved printing code to...
4909 (warn_cant_dump_core): New function.
4910 (can_dump_core_warn): Likewise.
4911 (internal_vproblem): Replace calls to can_dump_core with
4912 calls to can_dump_core_warn. Supply new argument to each.
4913
57fcfb1b
GB
49142014-06-19 Gary Benson <gbenson@redhat.com>
4915
4916 * utils.h (demangler_vwarning): New declaration.
4917 (demangler_warning): Likewise.
4918 * utils.c (struct internal_problem)
4919 <user_settable_should_quit>: New field.
4920 <user_settable_should_dump_core>: Likewise
4921 (internal_error_problem): Add values for above new fields.
4922 (internal_warning_problem): Likewise.
4923 (demangler_warning_problem): New static global.
4924 (demangler_vwarning): New function.
4925 (demangler_warning): Likewise.
4926 (add_internal_problem_command): Selectively add commands.
4927 (_initialize_utils): New internal problem command.
4928 * maint.c (maintenance_demangler_warning): New function.
4929 (_initialize_maint_cmds): New command.
4930
17a40b44
TT
49312014-06-18 Tom Tromey <tromey@redhat.com>
4932
4933 * f-valprint.c (info_common_command_for_block): Update.
4934 * symtab.h (struct general_symbol_info) <common_block>: Now
4935 const.
4936
346d1dfe
TT
49372014-06-18 Tom Tromey <tromey@redhat.com>
4938
4939 * symtab.h (struct symtab) <blockvector>: Now const.
4940 * ada-lang.c (ada_add_global_exceptions): Update.
4941 * buildsym.c (augment_type_symtab): Update.
4942 * dwarf2read.c (dw2_lookup_symbol): Update.
4943 * jit.c (finalize_symtab): Update.
4944 * jv-lang.c (add_class_symtab_symbol): Update.
4945 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
4946 Update.
4947 * objfiles.c (objfile_relocate1): Update.
4948 * psymtab.c (lookup_symbol_aux_psymtabs)
4949 (maintenance_check_psymtabs): Update.
4950 * python/py-symtab.c (stpy_global_block, stpy_static_block):
4951 Update.
4952 * spu-tdep.c (spu_catch_start): Update.
4953 * symmisc.c (dump_symtab_1): Update.
4954 * symtab.c (lookup_global_symbol_from_objfile)
4955 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
4956 (basic_lookup_transparent_type_quick)
4957 (basic_lookup_transparent_type, find_pc_sect_symtab)
4958 (find_pc_sect_line, search_symbols): Update.
4959 * block.c (find_block_in_blockvector): Make "bl" const.
4960 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
4961 const.
4962 (blockvector_contains_pc): Make "bv" const.
4963 (block_for_pc_sect): Update.
4964 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
4965 (blockvector_contains_pc): Update.
4966 * breakpoint.c (resolve_sal_pc): Update.
4967 * inline-frame.c (block_starting_point_at): Update.
4968
1834676b
TT
49692014-06-18 Tom Tromey <tromey@redhat.com>
4970
4971 * completer.c (complete_line): Make "line_buffer" const.
4972 * completer.h (complete_line): Update.
4973
ac1a991b
TT
49742014-06-18 Tom Tromey <tromey@redhat.com>
4975
4976 * symtab.c (add_macro_name): Remove unneeded cast.
4977
5bc98e52
TT
49782014-06-18 Tom Tromey <tromey@redhat.com>
4979
4980 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
4981 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
4982
8236def8
TT
49832014-06-18 Tom Tromey <tromey@redhat.com>
4984
4985 * probe.c (info_probes_for_ops): Make "arg" const.
4986 * probe.h (info_probes_for_ops): Update.
4987
3977b71f
TT
49882014-06-18 Tom Tromey <tromey@redhat.com>
4989
4990 * varobj.c (varobj_create): Update.
4991 * valops.c (value_of_this): Update.
4992 * tracepoint.c (add_local_symbols, scope_info): Update.
4993 * symtab.h (struct general_symbol_info) <block>: Now const.
4994 * symtab.c (skip_prologue_sal)
4995 (default_make_symbol_completion_list_break_on)
4996 (skip_prologue_using_sal): Update.
4997 * stack.h (iterate_over_block_locals)
4998 (iterate_over_block_local_vars): Update.
4999 * stack.c (print_frame_args): Update.
5000 (iterate_over_block_locals, iterate_over_block_local_vars): Make
5001 parameter const.
5002 (get_selected_block): Make return type const.
5003 * python/py-frame.c (frapy_block): Update.
5004 * python/py-block.c (gdbpy_block_for_pc): Update.
5005 * p-exp.y (%union) <bval>: Now const.
5006 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
5007 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
5008 * m2-exp.y (%union) <bval>: Now const.
5009 * linespec.c (get_current_search_block): Make return type const.
5010 (create_sals_line_offset, find_label_symbols): Update.
5011 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
5012 Update.
5013 (block_starting_point_at): Make "block" const.
5014 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
5015 (check_exception_resume): Update.
5016 * guile/scm-frame.c (gdbscm_frame_block): Update.
5017 * guile/scm-block.c (gdbscm_lookup_block): Update.
5018 * frame.h (get_frame_block): Update.
5019 (get_selected_block): Make return type const.
5020 * frame.c (frame_id_inner): Update.
5021 * f-valprint.c (info_common_command_for_block)
5022 (info_common_command): Update.
5023 * dwarf2loc.c (dwarf2_find_location_expression)
5024 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
5025 (locexpr_describe_location_piece): Update.
5026 * c-exp.y (%union) <bval>: Now const.
5027 * breakpoint.c (resolve_sal_pc): Update.
5028 * blockframe.c (get_frame_block):Make return type const.
5029 (get_pc_function_start, get_frame_function, find_pc_sect_function)
5030 (block_innermost_frame): Update.
5031 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
5032 (block_for_pc, block_for_pc_sect): Update.
5033 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
5034 'pblock' const.
5035 (block_for_pc_sect, block_for_pc): Make return type const.
5036 * ax-gdb.c (gen_expr): Update.
5037 * alpha-mdebug-tdep.c (find_proc_desc): Update.
5038 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
5039 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
5040 (ada_read_var_value): Update.
5041 * ada-exp.y (struct name_info) <block>: Now const.
5042 (%union): Likewise.
5043 (block_lookup): Constify.
5044
b9228891
GB
50452014-06-18 Gary Benson <gbenson@redhat.com>
5046
5047 * nat/i386-dregs.h: New file.
5048 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
5049 * i386-nat.h (i386-dregs.h): New include.
5050 (DR_FIRSTADDR): Now in i386-dregs.h.
5051 (DR_LASTADDR): Likewise.
5052 (DR_NADDR): Likewise.
5053 (DR_STATUS): Likewise.
5054 (DR_CONTROL): Likewise.
5055 (i386_debug_reg_state): Likewise.
5056 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
5057
a1aa2221
LM
50582014-06-18 Don Breazeal <donb@codesourcery.com>
5059
5060 * breakpoint.c (set_longjmp_breakpoint): Call
5061 momentary_breakpoint_from_master with additional argument.
5062 (set_longjmp_breakpoint_for_call_dummy): Call
5063 momentary_breakpoint_from_master with additional argument.
5064 (set_std_terminate_breakpoint): Call
5065 momentary_breakpoint_from_master with additional argument.
5066 (momentary_breakpoint_from_master): Add argument to function
5067 definition and use it to initialize structure member flag.
74228e77 5068 (clone_momentary_breakpoint): Call
a1aa2221
LM
5069 momentary_breakpoint_from_master with additional argument.
5070 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
5071 member flags set in momentary_breakpoint_from_master.
5072
4be83cc2
GB
50732014-06-18 Gary Benson <gbenson@redhat.com>
5074
5075 * i386-nat.c (i386_show_dr): Renamed to
5076 i386_dr_show and made nonstatic. All uses updated.
5077 (i386_length_and_rw_bits): Renamed to
5078 i386_dr_length_and_rw_bits and made nonstatic.
5079 All uses updated.
5080 (i386_insert_aligned_watchpoint): Renamed to
5081 i386_dr_insert_aligned_watchpoint and made nonstatic.
5082 All uses updated.
5083 (i386_remove_aligned_watchpoint): Renamed to
5084 i386_dr_remove_aligned_watchpoint and made nonstatic.
5085 All uses updated.
5086 (i386_update_inferior_debug_regs): Renamed to
5087 i386_dr_update_inferior_debug_regs and made nonstatic.
5088 All uses updated.
5089
131aa0d4
GB
50902014-06-18 Gary Benson <gbenson@redhat.com>
5091
5092 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
5093 (i386_dr_low_can_set_control): Likewise.
5094 (i386_dr_low_set_addr): Likewise.
5095 (i386_dr_low_set_control): Likewise.
5096 (i386_dr_low_get_addr): Likewise.
5097 (i386_dr_low_get_status): Likewise.
5098 (i386_dr_low_get_control): Likewise.
5099 (i386_insert_aligned_watchpoint): Use new macros.
5100 (i386_update_inferior_debug_regs): Likewise.
5101 (i386_stopped_data_address): Likewise.
5102
d9305f7f
GB
51032014-06-18 Gary Benson <gbenson@redhat.com>
5104
5105 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
5106 New parameter. All uses updated.
5107
ea008da4
GB
51082014-06-18 Gary Benson <gbenson@redhat.com>
5109
5110 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
5111 All uses updated.
5112
1b6d4134
GB
51132014-06-18 Gary Benson <gbenson@redhat.com>
5114
5115 * i386-nat.c (debug_printf): New macro.
5116 (i386_get_debug_register_length): Likewise.
5117 (TARGET_HAS_DR_LEN_8): Use above macro.
5118 (i386_show_dr): Use debug_printf instead of puts_unfiltered
5119 and printf_unfiltered. Use phex to format values.
5120
9b4550ef
GB
51212014-06-18 Gary Benson <gbenson@redhat.com>
5122
5123 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
5124 Make const.
5125
6e62758f
GB
51262014-06-18 Gary Benson <gbenson@redhat.com>
5127
5128 * i386-nat.c: Comment changes.
5129
51c79e94
GB
51302014-06-18 Gary Benson <gbenson@redhat.com>
5131
5132 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
5133
3e11889a
GB
51342014-06-18 Gary Benson <gbenson@redhat.com>
5135
5136 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
5137 (i386_insert_aligned_watchpoint): Likewise.
5138 (i386_remove_aligned_watchpoint): Likewise.
5139 (i386_handle_nonaligned_watchpoint): Likewise.
5140
fc6e2f03
GB
51412014-06-18 Gary Benson <gbenson@redhat.com>
5142
5143 * i386-nat.c: Whitespace changes.
5144
2afe7d50
SB
51452014-06-17 Samuel Bronson <naesten@gmail.com>
5146
5147 * MAINTAINERS: Update Roland McGrath's email address.
5148 Thanks to Sergio Durigan Junior for pointing out that he left
6a83deea 5149 Red Hat a while ago, and giving me a current address.
2afe7d50 5150
3bca49ee
TT
51512014-06-17 Tom Tromey <tromey@redhat.com>
5152
5153 * utils.h (savestring): Remove declaration.
5154
6e366df1
TT
51552014-06-17 Tom Tromey <tromey@redhat.com>
5156
5157 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
5158
6be47f0c
KS
51592014-06-16 Keith Seitz <keiths@redhat.com>
5160
5161 PR mi/15863
5162 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
5163 to update the varobj if inferior_ptid is null_ptid.
5164
7bc112c1
TT
51652014-06-16 Tom Tromey <tromey@redhat.com>
5166
5167 * target.h (struct target_ops) <to_info_proc>: Make parameter
5168 const.
5169 (target_info_proc): Update.
5170 * target.c (target_info_proc): Make "args" const.
5171 * procfs.c (procfs_info_proc): Update.
5172 * linux-tdep.c (linux_info_proc): Update.
5173 (linux_core_info_proc_mappings): Make "args" const.
5174 (linux_core_info_proc): Update.
5175 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
5176 * gdbarch.c: Rebuild.
5177 * gdbarch.h: Rebuild.
5178 * corelow.c (core_info_proc): Update.
5179
fee354ee
TT
51802014-06-16 Tom Tromey <tromey@redhat.com>
5181
5182 * target.h (struct target_ops) <to_disconnect>: Make parameter
5183 const.
5184 (target_disconnect): Update.
5185 * target.c (target_disconnect): Make "args" const.
5186 * target-delegates.c: Rebuild.
5187 * remote.c (remote_disconnect): Update.
5188 * record.h (record_disconnect): Update.
5189 * record.c (record_disconnect): Update.
5190 * inf-child.c (inf_child_disconnect): Update.
5191
a30bf1f1
TT
51922014-06-16 Tom Tromey <tromey@redhat.com>
5193
5194 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
5195 * target.c (debug_to_rcmd, default_rcmd): Update.
5196 * target-delegates.c: Rebuild.
5197 * remote.c (remote_rcmd): Update.
5198 * monitor.c (monitor_rcmd): Update.
5199
d03de421
PA
52002014-06-16 Pedro Alves <palves@redhat.com>
5201
5202 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
5203 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
5204 have OBJF_SHARED set.
5205 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
5206 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
5207 instead of OBJF_USERLOADED.
5208 * objfiles.h (OBJF_SHARED): Update comment.
5209 (userloaded_objfile_contains_address_p): Rename to ...
5210 (shared_objfile_contains_address_p): ... this, and update
5211 comments.
5212 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
5213 new objfile.
5214 (remove_symbol_file_command): Skip objfiles that don't have
5215 OBJF_SHARED set.
5216
99f4262f
TT
52172014-06-16 Tom Tromey <tromey@redhat.com>
5218
5219 * minsyms.h (prim_record_minimal_symbol)
5220 (prim_record_minimal_symbol_and_info): Update comments.
5221
97d66cc6
EZ
52222014-06-14 Eli Zaretskii <eliz@gnu.org>
5223
5224 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
5225 or --without-guile, according to how GDB was built.
5226
635c7e8a
TT
52272014-06-13 Tom Tromey <tromey@redhat.com>
5228
5229 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
5230 to help_list.
5231 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
5232 to help_list.
5233 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
5234 help_list.
5235 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
5236 help_list.Pass all_commands, not -1, to help_list.
5237 * cli/cli-dump.c (dump_command, append_command)
5238 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
5239 (binary_dump_command, binary_append_command): Pass all_commands,
5240 not -1, to help_list.
5241 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
5242 -1, to help_list.
5243 * valprint.c (set_print, set_print_raw): Pass all_commands, not
5244 -1, to help_list.
5245 * typeprint.c (set_print_type): Pass all_commands, not -1, to
5246 help_list.
5247 * top.c (set_history): Pass all_commands, not -1, to help_list.
5248 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
5249 all_commands, not -1, to help_list.
5250 * symfile.c (overlay_command): Pass all_commands, not -1, to
5251 help_list.
5252 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
5253 help_list.
5254 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
5255 help_list.
5256 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
5257 -1, to help_list.
5258 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
5259 not -1, to help_list.
5260 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
5261 not -1, to help_list.
5262 * maint.c (maintenance_command, maintenance_info_command)
5263 (maintenance_print_command, maintenance_set_cmd): Pass
5264 all_commands, not -1, to help_list.
5265 * macrocmd.c (macro_command): Pass all_commands, not -1, to
5266 help_list.
5267 * language.c (set_check): Pass all_commands, not -1, to help_list.
5268 * infcmd.c (unset_command): Pass all_commands, not -1, to
5269 help_list.
5270 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
5271 help_list.
5272 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
5273 help_list.
5274 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
5275 help_list.
5276 * breakpoint.c (save_command): Pass all_commands, not -1, to
5277 help_list.
5278 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
5279 all_commands, not -1, to help_list.
5280
b94ade42
PL
52812014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
5282
5283 * regcache.c (struct register_to_invalidate): New structure.
5284 (do_register_invalidate, make_cleanup_regcache_invalidate): New
5285 functions.
5286 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
5287
31f628ae
YQ
52882014-06-12 Yao Qi <yao@codesourcery.com>
5289
5290 * varobj.c (varobj_get_num_children): Call
5291 varobj_is_dynamic_p.
5292 (varobj_list_children): Likewise.
5293 (varobj_update): Likewise. Update comments.
5294
cde5ef40
YQ
52952014-06-12 Yao Qi <yao@codesourcery.com>
5296
5297 * varobj.c (varobj_pretty_printed_p): Rename to ...
5298 (varobj_is_dynamic_p): ... this. New function.
5299 * varobj.h (varobj_pretty_printed_p): Remove declaration.
5300 (varobj_is_dynamic_p): Declare.
5301 * mi/mi-cmd-var.c (print_varobj): All callers updated.
5302 (mi_print_value_p, varobj_update_one): Likewise.
5303
576ea091
YQ
53042014-06-12 Pedro Alves <pedro@codesourcery.com>
5305 Yao Qi <yao@codesourcery.com>
5306
5307 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
5308 (varobj_get_iterator): Wrap up code for pretty-printer by
5309 "#if HAVE_PYTHON" and "#endif".
5310 (update_dynamic_varobj_children): Likewise.
5311
827f100c
YQ
53122014-06-12 Pedro Alves <pedro@codesourcery.com>
5313 Yao Qi <yao@codesourcery.com>
5314
5315 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
5316 gdb_python_initialized is false. Move some code from varobj.c.
5317 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
5318 * varobj.c: Move "varobj-iter.h" inclusion earlier.
5319 (struct varobj_item): Moved to varobj-iter.h".
5320 (varobj_clear_saved_item): New function.
5321 (update_dynamic_varobj_children): Move python-related code to
5322 py-varobj.c.
5323 (free_variable): Call varobj_clear_saved_item and
5324 varobj_iter_delete.
5325
e5250216
YQ
53262014-06-12 Pedro Alves <pedro@codesourcery.com>
5327 Yao Qi <yao@codesourcery.com>
5328
5329 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
5330 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
5331 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
5332 (py-varobj.o): New rule.
5333 * python/py-varobj.c: New file.
5334 * python/python-internal.h (py_varobj_get_iterator): Declare.
5335 * varobj-iter.h: New file.
5336 * varobj.c: Include "varobj-iter.h"
5337 (struct varobj) <child_iter>: Change its type from "PyObject *"
5338 to "struct varobj_iter *".
5339 <saved_item>: Likewise.
5340 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
5341 [HAVE_PYTHON] (varobj_get_iterator): New function.
5342 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
5343 python-specific code to python/py-varobj.c.
5344 (install_visualizer): Call varobj_iter_delete instead of
5345 Py_XDECREF.
5346 * varobj.h (varobj_ensure_python_env): Declare.
5347
5a2e0d6e
YQ
53482014-06-12 Yao Qi <yao@codesourcery.com>
5349
5350 * varobj.c (struct varobj_item): New structure.
5351 (create_child_with_value): Update declaration.
5352 (varobj_add_child): Replace arguments 'name' and 'value' with
5353 'item'. All callers updated.
5354 (install_dynamic_child): Likewise.
5355 (update_dynamic_varobj_children): Likewise.
5356 (varobj_add_child): Likewise.
5357 (create_child_with_value): Likewise.
5358
919b9a93
JB
53592014-06-11 Joel Brobecker <brobecker@adacore.com>
5360
5361 * NEWS: Create a new section for the next release branch.
5362 Rename the section of the current branch, now that it has
5363 been cut.
5364
71a55bdf
JB
53652014-06-11 Joel Brobecker <brobecker@adacore.com>
5366
5367 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
5368 * version.in: Bump version to 7.8.50.DATE-cvs.
5369
364fe1f7
PA
53702014-06-11 Pedro Alves <palves@redhat.com>
5371
5372 PR remote/17028
5373 * ser-mingw.c (net_windows_socket_check_pending): New function.
5374 (net_windows_select_thread): Ignore spurious wakeups. Use
5375 net_windows_socket_check_pending.
5376 (net_windows_wait_handle): Check for pending events with
5377 ioctlsocket, through net_windows_socket_check_pending, instead of
5378 checking the socket's event.
5379
5a6c7709
SC
53802014-06-10 Siva Chandra Reddy <sivachandra@google.com>
5381
5382 * python/python-internal.h (gdb_PyObject_GetAttrString)
5383 (gdb_PyObject_HasAttrString): New inline function definitions.
5384 * py-value.c (get_field_flag): Remove the now unnecessary cast to
5385 char * of the second argument to PyObject_GetAttrString.
74228e77 5386
0e58ee40
JB
53872014-06-10 Joel Brobecker <brobecker@adacore.com>
5388
5389 * serial.c (serial_write): Fix index of character to be printed
5390 in call to serial_logchar when serial debug traces are enabled.
5391
d190df30
JB
53922014-06-10 Joel Brobecker <brobecker@adacore.com>
5393
5394 * gdbtypes (resolve_dynamic_range): Add function description.
5395
b4b01d36
PA
53962014-06-09 Pedro Alves <palves@redhat.com>
5397
5398 * linux-nat.c (linux_child_follow_fork): Initialize status with
5399 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
5400 inner block. Only pass the signal to PTRACE_DETACH if in pass
5401 state.
5402
3657956b
GB
54032014-06-09 Gary Benson <gbenson@redhat.com>
5404
5405 * common/signals.c (gdb_signal_from_host): Reorder to separate
5406 the always-available ANSI-standard signals from the signals that
5407 require checking.
5408 (do_gdb_signal_to_host): Likewise.
5409 * proc-events.c (signal_table): Likewise.
5410
c077881a
HZ
54112014-06-08 Hui Zhu <hui@codesourcery.com>
5412
5413 * common/linux-ptrace.c (linux_disable_event_reporting): New
5414 function.
5415 * common/linux-ptrace.h (linux_disable_event_reporting): New
5416 declaration.
5417 * linux-nat.c (linux_child_follow_fork): Do a single step before
5418 detach.
5419
4186eb54
KS
54202014-06-07 Keith Seitz <keiths@redhat.com>
5421
5422 Revert:
5423 PR c++/16253
5424 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5425 from symbol_matches_domain in symtab.c. All local callers
5426 of symbol_matches_domain updated.
5427 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5428 search STRUCT_DOMAIN.
5429 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5430 independently. standard_lookup will do that automatically.
5431 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5432 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5433 (cp_lookup_symbol_in_namespace): Likewise.
5434 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5435 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5436 may return a STRUCT_DOMAIN match.
5437 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5438 * cp-support.c: Include language.h.
5439 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5440 VAR_DOMAIN.
5441 * psymtab.c (match_partial_symbol): Compare the requested
5442 domain with the symbol's domain directly.
5443 (lookup_partial_symbol): Likewise.
5444 * symtab.c (lookup_symbol_in_language): Explain when/why
5445 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5446 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5447 appropriate languages.
5448 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5449 and moved to ada-lang.c
5450 (lookup_block_symbol): Explain that this function only returns
5451 symbol matching the requested DOMAIN.
5452 Compare the requested domain with the symbol's domain directly.
5453 (iterate_over_symbols): Compare the requested domain with the
5454 symbol's domain directly.
5455 * symtab.h (symbol_matches_domain): Remove.
5456
25326a28 54572014-06-06 Doug Evans <xdje42@gmail.com>
d2929fdc
DE
5458
5459 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
5460 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
5461 (gdbscm_guile_version_is_at_least): Declare.
5462 (gdbscm_scm_string_to_int): Declare.
5463 * guile/guile.c (gdbscm_guile_major_version): New global.
5464 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
5465 (guile_datadir): New static global.
5466 (gdbscm_guile_data_directory): New function.
5467 (initialize_scheme_side): Update.
5468 (misc_guile_functions): Add guile-data-directory.
5469 (initialize_gdb_module): Fetch guile version number.
5470 * guile/lib/gdb.scm: Remove call to add-to-load-path.
5471 * guile/lib/gdb/init.scm (%initialize!): Ditto.
5472 * guile/lib/gdb/boot.scm: Use guile-data-directory.
5473 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
5474 comments.
5475 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
5476 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
5477 * guile/scm-value.c (gdbscm_value_to_string): Only call
5478 scm_port_conversion_strategy if Guile version >= 2.0.6.
5479
0a770bb2 54802014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
5481
5482 * main.c (print_gdb_help): Add -q and --silent.
5483
73ba372c
GB
54842014-06-06 Gary Benson <gbenson@redhat.com>
5485
5486 * common/signals.c: Remove preprocessor conditionals for
5487 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
5488 SIGSEGV and SIGTERM.
5489 * proc-events.c: Likewise.
5490
c33b2f12
MM
54912014-06-06 Markus Metzger <markus.t.metzger@intel.com>
5492
5493 * symfile.c (symfile_free_objfile): Remove restriction to
5494 OBJF_USERLOADED.
5495 * symfile-mem.c (symbol_file_add_from_memory): Call
5496 add_target_sections_of_objfile.
5497
fb934770
LC
54982014-06-05 Ludovic Courtès <ludo@gnu.org>
5499
5500 * guile/scm-value.c (gdbscm_history_append_x): Use
5501 'vlscm_get_value_smob_arg_unsafe' instead of
5502 'vlscm_scm_to_value'.
5503
6ef284bd
SM
55042014-06-05 Simon Marchi <simon.marchi@ericsson.com>
5505
5506 PR mi/15806
5507 * utils.c (printchar): Don't escape at all if quoter is NUL.
5508 Update function documentation to clarify effect of parameter
5509 QUOTER.
5510 * remote.c (escape_buffer): Pass '\\' as the quoter to
5511 fputstrn_unfiltered.
5512 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
5513 generate the output.
5514 (mi_solib_unloaded): Same.
5515
270c9937
JB
55162014-06-05 Joel Brobecker <brobecker@adacore.com>
5517
5518 * development.sh: Delete.
5519 * Makefile.in (config.status): Adjust dependency on development.sh.
5520 * configure.ac: Adjust development.sh source call.
5521 * configure: Regenerate.
5522
16f691fb
DE
55232014-06-04 Doug Evans <xdje42@gmail.com>
5524
5525 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
5526 is_scheme_bkpt, spec.
5527 (bpscm_make_breakpoint_smob): Initialize new members.
5528 (gdbscm_create_breakpoint_x): Split into two ...
5529 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
5530 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
5531 (scheme_function breakpoint_functions): Update.
5532 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
5533 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
5534 register-breakpoint!.
5535
ef7cab6b
JB
55362014-06-04 Joel Brobecker <brobecker@adacorer.com>
5537
5538 PR server/17023
5539 * mem-break.c (z_type_supported): Return zero if
5540 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
5541
012370f6
TT
55422014-06-04 Tom Tromey <tromey@redhat.com>
5543
5544 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
5545 value_from_contents_and_address_unresolved.
5546 (ada_template_to_fixed_record_type_1): Likewise.
5547 (ada_which_variant_applies): Likewise.
5548 * value.h (value_from_contents_and_address_unresolved): Declare.
5549 * value.c (value_from_contents_and_address_unresolved): New
5550 function.
5551 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
5552 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
5553 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
5554
92e2a17f
TT
55552014-06-04 Tom Tromey <tromey@redhat.com>
5556
5557 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
5558
c0939df1
TT
55592014-06-04 Tom Tromey <tromey@redhat.com>
5560
5561 * procfs.c (procfs_attach): Make "args" const.
5562 * windows-nat.c (windows_attach): Make "args" const.
5563 * nto-procfs.c (procfs_attach): Make "args" const.
5564 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
5565 * go32-nat.c (go32_attach): Make "args" const.
5566 * gnu-nat.c (gnu_attach): Make "args" const.
5567 * darwin-nat.c (darwin_attach): Make "args" const.
5568 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
5569 * linux-nat.c (linux_nat_attach): Make "args" const.
5570 * remote.c (extended_remote_attach_1, extended_remote_attach):
5571 Make "args" const.
5572 * target.h (struct target_ops) <to_attach>: Make "args" const.
5573 (find_default_attach): Likewise.
5574 * utils.c (parse_pid_to_attach): Make "args" const.
5575 * utils.h (parse_pid_to_attach): Update.
5576
8eaff7cd
TT
55772014-06-04 Tom Tromey <tromey@redhat.com>
5578
5579 * target-delegates.c: Rebuild.
5580 * target.c (default_thread_address_space): New function.
5581 (target_thread_address_space): Simplify.
5582 * target.h (struct target_ops) <to_thread_address_space>: Add
5583 TARGET_DEFAULT_FUNC.
5584
1913f160
DE
55852014-06-04 Doug Evans <xdje42@gmail.com>
5586
5587 * guile/scm-type.c (type_smob): Remove duplicate typedef.
5588
70ad5bff
MM
55892014-06-04 Markus Metzger <markus.t.metzger@intel.com>
5590
5591 * record-btrace.c: Include event-loop.h and inf-loop.h.
5592 (record_btrace_resume_exec_dir)
5593 (record_btrace_async_inferior_event_handler)
5594 (record_btrace_handle_async_inferior_event): New.
5595 (record_btrace_open): Create async event handler.
5596 (record_btrace_close): Delete async event handler.
5597 (record_btrace_resume): Set record_btrace_resume_exec_dir,
5598 Mark async event handler.
5599 (record_btrace_execution_direction): New.
5600 (init_record_btrace_ops): Initialize to_execution_direction.
5601
b6210538
DE
56022014-06-03 Doug Evans <xdje42@gmail.com>
5603
5604 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
5605 (gdbscm_make_parameter): Ditto.
5606
a5b1fd27
DE
56072014-06-03 Doug Evans <dje@google.com>
5608
5609 * exec.c (exec_close_1): Call clear_section_table instead of
5610 resize_section_table.
5611 (clear_section_table): New function.
5612 (resize_section_table): Make static. Rename arg num_added to
5613 adjustment.
5614 * exec.h (clear_section_table): Declare.
5615 (resize_section_table): Delete.
5616 * progspace.c (release_program_space): Call clear_section_table
5617 instead of resize_section_table.
5618
0c6e92a5
SC
56192014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5620
5621 * NEWS (Python Scripting): Add entry about the new xmethods
5622 feature.
5623
883964a7
SC
56242014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5625
5626 * python/py-xmethods.c: New file.
5627 * python/py-objfile.c (objfile_object): New field 'xmethods'.
5628 (objfpy_dealloc): XDECREF on the new xmethods field.
5629 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
5630 field.
5631 (objfpy_get_xmethods): New function.
5632 (objfile_getset): New entry 'xmethods'.
5633 * python/py-progspace.c (pspace_object): New field 'xmethods'.
5634 (pspy_dealloc): XDECREF on the new xmethods field.
5635 (pspy_new, pspace_to_pspace_object): Initialize xmethods
5636 field.
5637 (pspy_get_xmethods): New function.
5638 (pspace_getset): New entry 'xmethods'.
5639 * python/python-internal.h: Add declarations for new functions.
5640 * python/python.c (_initialize_python): Invoke
5641 gdbpy_initialize_xmethods.
5642 * python/lib/gdb/__init__.py (xmethods): New
5643 attribute.
5644 * python/lib/gdb/xmethod.py: New file.
5645 * python/lib/gdb/command/xmethods.py: New file.
5646
58992dc5
SC
56472014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5648
5649 * eval.c (evaluate_subexp_standard): Call the xmethod if the
5650 best match method returned by find_overload_match is an xmethod.
5651 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
5652 the best matching operator returned by find_overload_match is an
5653 xmethod.
5654 * valops.c: #include "extension.h".
5655 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
5656 Return void. The list of matching source methods is returned in
5657 "fn_list" and a vector of matching debug method workers is
5658 returned in "xm_worker_vec". Update all callers.
5659 (value_find_oload_method_list): Likewise.
5660 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
5661 non-NULL, then the index of the best matching method in this
5662 vector is returned. Update all callers.
5663 (find_overload_match): Include xmethods while performing overload
5664 resolution.
5665
e81e7f5e
SC
56662014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5667
5668 * defs.h (enum lval_type): New enumerator "lval_xcallable".
5669 * extension-priv.h (struct extension_language_ops): Add the
5670 xmethod interface.
5671 * extension.c (new_xmethod_worker, clone_xmethod_worker,
5672 get_matching_xmethod_workers, get_xmethod_argtypes,
5673 invoke_xmethod, free_xmethod_worker,
5674 free_xmethod_worker_vec): New functions.
5675 * extension.h: #include "common/vec.h".
5676 New function declarations.
5677 (struct xmethod_worker): New struct.
5678 (VEC (xmethod_worker_ptr)): New vector type.
5679 (xmethod_worker_ptr): New typedef.
5680 (xmethod_worker_vec): Likewise.
5681 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
5682 builtin_type.
5683 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
5684 (struct builtin_type): New field "xmethod".
5685 * valarith.c (value_ptradd): Assert that the value argument is not
5686 lval_xcallable.
5687 * valops.c (value_must_coerce_to_target): Return 0 for
5688 lval_xcallable values.
5689 * value.c (struct value): New field XM_WORKER in the field
5690 LOCATION.
5691 (value_address, value_raw_address): Return 0 for lval_xcallable
5692 values.
5693 (set_value_address): Assert that the value is not an
5694 lval_xcallable.
5695 (value_free): Free the associated xmethod worker when freeing
5696 lval_xcallable values.
5697 (set_value_component_location): Assert that the WHOLE value is not
5698 lval_xcallable.
5699 (value_of_xmethod, call_xmethod): New functions.
5700 * value.h: Declare "struct xmethod_worker".
5701 Declare new functions value_of_xmethod, call_xmethod.
5702
ef370185
JB
57032014-06-03 Joel Brobecker <brobecker@adacore.com>
5704 Pedro Alves <palves@redhat.com>
5705
5706 PR breakpoints/17000
5707 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
5708 New function, extracted from software_breakpoint_inserted_here_p.
5709 (software_breakpoint_inserted_here_p): Replace factored out code
5710 by call to find_non_raw_software_breakpoint_inserted_here.
5711 (bp_target_info_copy_insertion_state): New function.
5712 (bkpt_insert_location): Handle the case of a single-step
5713 breakpoint already inserted at the same address.
5714 (bkpt_remove_location): Handle the case of a single-step
5715 breakpoint still inserted at the same address.
5716 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
5717 breakpoint already inserted at the same address.
5718 (deprecated_remove_raw_breakpoint): Handle the case of a
5719 non-raw breakpoint still inserted at the same address.
5720 (find_single_step_breakpoint): New function, extracted from
5721 single_step_breakpoint_inserted_here_p.
5722 (find_single_step_breakpoint): New function,
5723 factored out from single_step_breakpoint_inserted_here_p.
5724 (single_step_breakpoint_inserted_here_p): Reimplement.
5725
1e2ccb61
BM
57262014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
5727
5728 Pushed by Joel Brobecker <brobecker@adacore.com>
5729 * source.c (show_substitute_path_command): Fix display of matching
5730 substitution rules.
5731
d3448d85
GB
57322014-06-03 Gary Benson <gbenson@redhat.com>
5733
5734 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
5735
06eb1586
DE
57362014-06-02 Doug Evans <xdje42@gmail.com>
5737
5738 Add parameter support for Guile.
5739 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
5740 (SUBDIR_GUILE_SRCS): Add scm-param.c.
5741 (scm-param.o): New rule.
5742 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
5743 (gdbscm_misc_error): Declare.
5744 (gdbscm_canonicalize_command_name): Declare.
5745 (gdbscm_scm_to_host_string): Declare.
5746 (gdbscm_scm_from_host_string): Declare.
5747 (gdbscm_initialize_parameters): Declare.
5748 * guile/guile.c (initialize_gdb_module): Call
5749 gdbscm_initialize_parameters.
5750 * guile/lib/gdb.scm: Export parameter symbols.
5751 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
5752 cmdscm_canonicalize_name and made public. All callers updated.
5753 * guile/scm-exception.c (gdbscm_misc_error): New function.
5754 * guile/scm-param.c: New file.
5755 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
5756 (gdbscm_scm_to_host_string): New function.
5757 (gdbscm_scm_from_host_string): New function.
5758 * scm-utils.c (gdbscm_gc_dup_argv): New function.
5759
e698b8c4
DE
57602014-06-02 Doug Evans <xdje42@gmail.com>
5761
5762 Add command support for Guile.
5763 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
5764 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
5765 (scm-cmd.o): New rule.
5766 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
5767 (gdbscm_user_error_p): Declare.
5768 (gdbscm_parse_command_name): Declare.
5769 (gdbscm_valid_command_class_p): Declare.
5770 (gdbscm_initialize_commands): Declare.
5771 * guile/guile.c (initialize_gdb_module): Call
5772 gdbscm_initialize_commands.
5773 * guile/lib/gdb.scm: Export command symbols.
5774 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
5775 (throw-user-error): New function.
5776 * guile/scm-cmd.c: New file.
5777 * guile/scm-exception.c (user_error_symbol): New static global.
5778 (gdbscm_user_error_p): New function.
5779 (gdbscm_initialize_exceptions): Set user_error_symbol.
5780 * scm-utils.c (gdbscm_gc_xstrdup): New function.
5781
fb1f94b0
PM
57822014-06-02 Phil Muldoon <pmuldoon@redhat.com>
5783
5784 * top.c (command_loop): Handle comments here...
5785 (command_line_input): ... not here.
5786
ded03782
DE
57872014-06-02 Doug Evans <xdje42@gmail.com>
5788
5789 Add progspace support for Guile.
5790 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
5791 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
5792 (scm-progspace.o): New rule.
5793 * guile/guile-internal.h (pspace_smob): New typedef.
5794 (psscm_pspace_smob_pretty_printers): Declare.
5795 (psscm_pspace_smob_from_pspace): Declare.
5796 (psscm_scm_from_pspace): Declare.
5797 * guile/guile.c (initialize_gdb_module): Call
5798 gdbscm_initialize_pspaces.
5799 * guile/lib/gdb.scm: Export progspace symbols.
5800 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
5801 support.
5802 (append-pretty-printer!): Ditto.
5803 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
5804 Implement.
5805 * guile/scm-progspace.c: New file.
5806
397998fc
AM
58072014-06-03 Alan Modra <amodra@gmail.com>
5808
5809 * ppc64-tdep.c (ppc64_standard_linkage8): New.
5810 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
5811
6aa5f3a6
DE
58122014-06-02 Doug Evans <dje@google.com>
5813
5814 Add support for skeletonless type units.
5815 * dwarf2read.c (struct dwarf2_per_objfile): New member
5816 n_allocated_type_units.
5817 (struct dwarf2_per_objfile) <tu_stats>: New member
5818 nr_all_type_units_reallocs.
5819 (create_signatured_type_table_from_index): Initialize
5820 n_allocated_type_units
5821 (create_all_type_units): Ditto.
5822 (add_type_unit): Move up in file. New arg slot.
5823 All callers updated. Increase space for all_type_units more
5824 efficiently.
5825 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
5826 (lookup_dwo_signatured_type): Handle skeletonless TUs.
5827 (lookup_dwp_signatured_type): Ditto.
5828 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
5829 All callers updated.
5830 (build_type_psymtabs_1): Leave type_unit_groups as
5831 NULL if no TUs present.
5832 (print_tu_stats): New function.
5833 (process_skeletonless_type_unit): New function.
5834 (process_dwo_file_for_skeletonless_type_units): New
5835 function.
5836 (process_skeletonless_type_units): New function.
5837 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
5838 Call print tu_stats if debugging enabled.
5839
41fac0cf
PA
58402014-06-02 Pedro Alves <palves@redhat.com>
5841
5842 * breakpoint.c (build_target_command_list): Don't build a command
5843 list if we have any duplicate location that isn't a dprintf.
5844
cd1608cc
PA
58452014-06-02 Pedro Alves <palves@redhat.com>
5846
5847 * breakpoint.c (dprintf_breakpoint_hit): New function.
5848 (initialize_breakpoint_ops): Install it as dprintf's
5849 breakpoint_hit method.
5850
486ef3b9
JB
58512014-06-02 Joel Brobecker <brobecker@adacore.com>
5852
5853 * source.c (substitute_path_rule_matches): Simplify using
5854 filename_ncmp instead of FILENAME_CMP.
5855
230cd560
JB
58562014-06-02 Joel Brobecker <brobecker@adacore.com>
5857
5858 * source.c (substitute_path_rule_matches): Remove trailing spaces.
5859
16954d5d
LC
58602014-06-01 Ludovic Courtès <ludo@gnu.org>
5861
5862 * configure.ac: When Guile is available, check for the
5863 availability of 'scm_new_smob'.
5864 * configure, config.h.in: Regenerate.
5865 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
5866 function.
5867
53e8a631
AB
58682014-05-30 Andrew Burgess <aburgess@broadcom.com>
5869
5870 * frame.c (struct frame_info): Add stop_string field.
5871 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
5872 (get_prev_frame_always): Old content moved into
5873 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
5874 TRY_CATCH, handle MEMORY_ERROR exceptions.
5875 (frame_stop_reason_string): New function definition.
5876 * frame.h (unwind_stop_reason_to_string): Extend comment to
5877 mention frame_stop_reason_string.
5878 (frame_stop_reason_string): New function declaration.
5879 * stack.c (frame_info): Switch to frame_stop_reason_string.
5880 (backtrace_command_1): Switch to frame_stop_reason_string.
5881 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
5882 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
5883 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
5884
70e38b8e
AB
58852014-05-30 Andrew Burgess <aburgess@broadcom.com>
5886
5887 * frame.c (frame_stop_reason_string): Rename to ...
5888 (unwind_stop_reason_to_string): this.
5889 * frame.h (frame_stop_reason_string): Rename to ...
5890 (unwind_stop_reason_to_string): this.
5891 * stack.c (frame_info): Update call to frame_stop_reason_string.
5892 (backtrace_command_1): Likewise.
5893 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
5894 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
5895
938f0e2f
AB
58962014-05-30 Andrew Burgess <aburgess@broadcom.com>
5897
5898 * frame.c (remove_prev_frame): New function.
5899 (get_prev_frame_if_no_cycle): Create / discard cleanup using
5900 remove_prev_frame.
5901
a09dd441
PA
59022014-05-29 Pedro Alves <palves@redhat.com>
5903
5904 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
5905 and make it const. When a single-step decays to a continue,
5906 clear 'step', not 'hw_step'. Pass whether the caller wanted
5907 to step to user_visible_resume_ptid, not what we ask the
5908 target to do.
5909
bdc36728
PA
59102014-05-29 Pedro Alves <palves@redhat.com>
5911
5912 * infrun.c (process_event_stop_test, handle_step_into_function)
5913 (handle_step_into_function_backward): Adjust.
5914 Don't set the even thread's stop_step and call stop_waiting before
5915 calling end_stepping_range. Instead do that ...
5916 (end_stepping_range): ... here. Take an ecs pointer parameter.
5917
22bcd14b
PA
59182014-05-29 Pedro Alves <palves@redhat.com>
5919
5920 * infrun.c (stop_stepping): Rename to ...
5921 (stop_waiting): ... this.
5922 (proceed): Update comment.
5923 (process_event_stop_test, handle_inferior_event)
5924 (handle_signal_stop, handle_step_into_function)
5925 (handle_step_into_function_backward): Update.
5926
4ae57c05
PA
59272014-05-29 Pedro Alves <palves@redhat.com>
5928
5929 * infcall.c (run_inferior_call): Don't check whether the current
5930 thread is running after the proceed call.
5931
329ea579
PA
59322014-05-29 Pedro Alves <palves@redhat.com>
5933 Tom Tromey <tromey@redhat.com>
5934
5935 * NEWS: Mention "maint set target-async", "set mi-async", and that
5936 background execution commands are now always available.
5937 * target.h (target_async_permitted): Update comment.
5938 * target.c (target_async_permitted, target_async_permitted_1):
5939 Default to 1.
5940 (set_target_async_command): Rename to ...
5941 (maint_set_target_async_command): ... this.
5942 (show_target_async_command): Rename to ...
5943 (maint_show_target_async_command): ... this.
5944 (_initialize_target): Adjust.
5945 * infcmd.c (prepare_execution_command): Make extern.
5946 * inferior.h (prepare_execution_command): Declare.
5947 * infrun.c (set_observer_mode): Leave target async alone.
5948 * mi/mi-interp.c (mi_interpreter_init): Install
5949 mi_on_sync_execution_done as sync_execution_done observer.
5950 (mi_on_sync_execution_done): New function.
5951 (mi_execute_command_input_handler): Don't print the prompt if we
5952 just started a synchronous command with an async target.
5953 (mi_on_resume): Check sync_execution before printing prompt.
5954 * mi/mi-main.h (mi_async_p): Declare.
5955 * mi/mi-main.c: Include gdbcmd.h.
5956 (mi_async_p): New function.
5957 (mi_async, mi_async_1): New globals.
5958 (set_mi_async_command, show_mi_async_command, mi_async): New
5959 functions.
5960 (exec_continue): Call prepare_execution_command.
5961 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
5962 (mi_execute_async_cli_command): Use mi_async_p.
5963 (_initialize_mi_main): Install "set mi-async". Make
5964 "target-async" a deprecated alias.
5965
92bcb5f9
PA
59662014-05-29 Pedro Alves <palves@redhat.com>
5967
5968 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
5969 (_initialize_cli_interp): Adjust.
5970 * event-loop.c: Include "observer.h".
5971 (start_event_loop): Notify 'command_error' observers instead of
5972 calling display_gdb_prompt. Remove FIXME comment.
5973 * event-top.c (display_gdb_prompt): Remove call into the
5974 interpreters.
5975 * inf-loop.c: Include "observer.h".
5976 (inferior_event_handler): Notify 'command_error' observers instead
5977 of calling display_gdb_prompt.
5978 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
5979 observers instead of calling display_gdb_prompt.
5980 * interps.c (interp_set): Don't call display_gdb_prompt.
5981 (current_interp_display_prompt_p): Delete.
5982 * interps.h (interp_prompt_p): Delete declaration.
5983 (interp_prompt_p_ftype): Delete.
5984 (struct interp_procs) <prompt_proc_p>: Delete field.
5985 (current_interp_display_prompt_p): Delete declaration.
5986 * mi-interp.c (mi_interpreter_prompt_p): Delete.
5987 (_initialize_mi_interp): Adjust.
5988 * tui-interp.c (tui_init): Install 'sync_execution_done' and
5989 'command_error' observers.
5990 (tui_on_sync_execution_done, tui_on_command_error): New
5991 functions.
5992 (tui_display_prompt_p): Delete.
5993 (_initialize_tui_interp): Adjust.
5994
fd664c91
PA
59952014-05-29 Pedro Alves <palves@redhat.com>
5996
5997 PR gdb/13860
5998 * cli/cli-interp.c: Include infrun.h and observer.h.
5999 (cli_uiout, cli_interp): New globals.
6000 (cli_on_signal_received, cli_on_end_stepping_range)
6001 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
6002 functions.
6003 (cli_interpreter_init): Install them as 'end_stepping_range',
6004 'signal_received' 'signal_exited', 'exited' and 'no_history'
6005 observers.
6006 (_initialize_cli_interp): Remove cli_interp local.
6007 * infrun.c (handle_inferior_event): Call the several stop reason
6008 observers instead of printing the stop reason directly.
6009 (end_stepping_range): New function.
6010 (print_end_stepping_range_reason, print_signal_exited_reason)
6011 (print_exited_reason, print_signal_received_reason)
6012 (print_no_history_reason): Make static, and add an uiout
6013 parameter. Print to that instead of to CURRENT_UIOUT.
6014 * infrun.h (print_end_stepping_range_reason)
6015 (print_signal_exited_reason, print_exited_reason)
6016 (print_signal_received_reason print_no_history_reason): New
6017 declarations.
6018 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
6019 'mi_uiout'.
6020 <cli_uiout>: New field.
6021 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
6022 uiout for CLI output. Install 'signal_received',
6023 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
6024 observers.
6025 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
6026 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
6027 (mi_on_no_history): New functions.
6028 (ui_out_free_cleanup): Delete function.
6029 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
6030 instead use the one already stored in the MI interpreter data.
6031 (mi_ui_out): Adjust.
6032 * tui/tui-interp.c: Include infrun.h and observer.h.
6033 (tui_interp): New global.
6034 (tui_on_signal_received, tui_on_end_stepping_range)
6035 (tui_on_signal_exited, tui_on_exited)
6036 (tui_on_no_history): New functions.
6037 (tui_init): Install them as 'end_stepping_range',
6038 'signal_received' 'signal_exited', 'exited' and 'no_history'
6039 observers.
6040 (_initialize_tui_interp): Delete tui_interp local.
6041
8817a6f2
PA
60422014-05-29 Pedro Alves <palves@redhat.com>
6043
6044 PR gdb/15713
6045 * linux-nat.c (linux_nat_resume_callback): Rename the second
6046 parameter to 'except'. Skip LP if it points to EXCEPT.
6047 (linux_nat_resume): Don't mark the event lwp as not stopped
6048 before resuming sibling lwps. Instead ask
6049 linux_nat_resume_callback to skip the event lwp. Mark it as not
6050 stopped after actually resuming it.
6051 (linux_handle_syscall_trap): Mark the lwp as not stopped after
6052 resuming it.
6053 (wait_lwp): Mark the lwp as stopped here.
6054 (stop_wait_callback): Mark the lwp as not stopped right after
6055 resuming it. Don't mark lwps as stopped here.
6056 (linux_nat_filter_event): Mark the lwp as stopped earlier.
6057 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
6058
251bde03
PA
60592014-05-29 Pedro Alves <palves@redhat.com>
6060
6061 PR PR15693
6062 * infrun.c (resume): Determine how much to resume depending on
6063 whether the caller wanted a step, not whether we can hardware step
6064 the target. Mark all threads that we intend to run as running,
6065 unless we're calling an inferior function.
6066 (normal_stop): If the thread is running an infcall, don't finish
6067 thread state.
6068 * target.c (target_resume): Don't mark threads as running here.
6069
7f3c0343
JB
60702014-05-28 Joel Brobecker <brobecker@adacore.com>
6071
6072 * serial.c (_initialize_serial): Remove support for
6073 the "set remotebaud" and "show remotebaud" commands.
6074 * NEWS: Add entry documenting the removal of that command.
6075
ee34b3f9
YQ
60762014-05-28 Yao Qi <yao@codesourcery.com>
6077
6078 * charset.c: Fix typo in comments.
6079
add6c04d
GB
60802014-05-27 Gary Benson <gbenson@redhat.com>
6081
6082 * utils.c (internal_vproblem): Prompt for a bug report.
6083
92c48fc5
AW
60842014-05-26 Andy Wingo <wingo@igalia.com>
6085
6086 * guile/scm-arch.c (arscm_mark_arch_smob):
6087 * guile/scm-block.c (bkscm_mark_block_smob)
6088 (bkscm_mark_block_syms_progress_smob):
6089 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
6090 * guile/scm-exception.c (exscm_mark_exception_smob):
6091 * guile/scm-frame.c (frscm_mark_frame_smob):
6092 * guile/scm-iterator.c (itscm_mark_iterator_smob):
6093 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
6094 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
6095 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
6096 (ppscm_mark_pretty_printer_worker_smob):
6097 * guile/scm-symbol.c (syscm_mark_symbol_smob):
6098 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
6099 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
6100 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
6101 mark functions.
6102 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
6103 function.
6104
b2715b27
AW
61052014-05-26 Andy Wingo <wingo@igalia.com>
6106 Doug Evans <xdje42@gmail.com>
6107
6108 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
6109 empty_base_class. All uses updated.
6110 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
6111 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
6112 Adapt all callers.
6113 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
6114 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
6115 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
6116 (gdbscm_gsmob_has_property_p, add_property_name)
6117 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
6118 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
6119 (gdb-object-has-property?, gdb-object-properties): Remove.
6120 (gdb-object-kind): Renamed from gsmob-kind.
6121
214ab2da
AW
61222014-05-26 Andy Wingo <wingo@igalia.com>
6123
6124 * configure.ac (try_guile_versions): Allow building with guile 2.2.
6125 * configure: Regenerate.
6126
589fdceb
MM
61272014-05-23 Markus Metzger <markus.t.metzger@intel.com>
6128
6129 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
6130
67b5c0c1
MM
61312014-05-23 Markus Metzger <markus.t.metzger@intel.com>
6132
6133 * record-btrace.c (record_btrace_allow_memory_access): Remove.
6134 (replay_memory_access_read_only, replay_memory_access_read_write)
6135 (replay_memory_access_types, replay_memory_access)
6136 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
6137 (cmd_set_record_btrace, cmd_show_record_btrace)
6138 (cmd_show_replay_memory_access): New.
6139 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
6140 (record_btrace_remove_breakpoint): Replace
6141 record_btrace_allow_memory_access with replay_memory_access.
6142 (_initialize_record_btrace): Add commands.
6143 * NEWS: Announce it.
6144
036cd381
RR
61452014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6146
6147 * aarch64-linux-nat.c (asm/ptrace.h): Include.
6148
c77c1e42
RR
61492014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6150
6151 * MAINTAINERS (Write After Approval): Move self back from
6152 paper trail.
6153
45741a9c
PA
61542014-05-22 Pedro Alves <palves@redhat.com>
6155
6156 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
6157 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
6158 (disable_randomization, enum exec_direction_kind)
6159 (execution_direction, stop_registers, start_remote)
6160 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
6161 (wait_for_inferior, normal_stop, get_last_target_status)
6162 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
6163 (insert_step_resume_breakpoint_at_sal)
6164 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
6165 (set_step_info, print_stop_event, signal_stop_state)
6166 (signal_print_state, signal_pass_state, signal_stop_update)
6167 (signal_print_update, signal_pass_update)
6168 (update_signals_program_target, clear_exit_convenience_vars)
6169 (displaced_step_dump_bytes, update_observer_mode)
6170 (signal_catch_update, gdb_signal_from_command): Move
6171 declarations ...
6172 * infrun.h: ... to this new file.
6173 * amd64-tdep.c: Include infrun.h.
6174 * annotate.c: Include infrun.h.
6175 * arch-utils.c: Include infrun.h.
6176 * arm-linux-tdep.c: Include infrun.h.
6177 * arm-tdep.c: Include infrun.h.
6178 * break-catch-sig.c: Include infrun.h.
6179 * breakpoint.c: Include infrun.h.
6180 * common/agent.c: Include infrun.h instead of inferior.h.
6181 * corelow.c: Include infrun.h.
6182 * event-top.c: Include infrun.h.
6183 * go32-nat.c: Include infrun.h.
6184 * i386-tdep.c: Include infrun.h.
6185 * inf-loop.c: Include infrun.h.
6186 * infcall.c: Include infrun.h.
6187 * infcmd.c: Include infrun.h.
6188 * infrun.c: Include infrun.h.
6189 * linux-fork.c: Include infrun.h.
6190 * linux-nat.c: Include infrun.h.
6191 * linux-thread-db.c: Include infrun.h.
6192 * monitor.c: Include infrun.h.
6193 * nto-tdep.c: Include infrun.h.
6194 * procfs.c: Include infrun.h.
6195 * record-btrace.c: Include infrun.h.
6196 * record-full.c: Include infrun.h.
6197 * remote-m32r-sdi.c: Include infrun.h.
6198 * remote-mips.c: Include infrun.h.
6199 * remote-notif.c: Include infrun.h.
6200 * remote-sim.c: Include infrun.h.
6201 * remote.c: Include infrun.h.
6202 * reverse.c: Include infrun.h.
6203 * rs6000-tdep.c: Include infrun.h.
6204 * s390-linux-tdep.c: Include infrun.h.
6205 * solib-irix.c: Include infrun.h.
6206 * solib-osf.c: Include infrun.h.
6207 * solib-svr4.c: Include infrun.h.
6208 * target.c: Include infrun.h.
6209 * top.c: Include infrun.h.
6210 * windows-nat.c: Include infrun.h.
6211 * mi/mi-interp.c: Include infrun.h.
6212 * mi/mi-main.c: Include infrun.h.
6213 * python/py-threadevent.c: Include infrun.h.
6214
98eb56a4
PA
62152014-05-22 Pedro Alves <palves@redhat.com>
6216
6217 * infrun.c (handle_inferior_event): Store the exit code for
6218 --return-child-result here, instead of ...
6219 (print_exited_reason): ... here.
6220
17b2616c
PA
62212014-05-21 Pedro Alves <palves@redhat.com>
6222
6223 PR gdb/13860
6224 * gdbthread.h (struct thread_control_state): New field
6225 `command_interp'.
6226 * infrun.c (follow_fork): Copy the new thread control field to the
6227 child fork thread.
6228 (clear_proceed_status_thread): Clear the new thread control field.
6229 (proceed): Set the new thread control field.
6230 * interps.h (command_interp): Declare.
6231 * interps.c (command_interpreter): New global.
6232 (command_interp): New function.
6233 (interp_exec): Set `command_interpreter' while here.
6234 * cli-out.c (cli_uiout_dtor): New function.
6235 (cli_ui_out_impl): Install it.
6236 * mi/mi-interp.c: Include cli-out.h.
6237 (mi_cmd_interpreter_exec): Add comment.
6238 (restore_current_uiout_cleanup): New function.
6239 (ui_out_free_cleanup): New function.
6240 (mi_on_normal_stop): If finishing an execution command started by
6241 a CLI command, or any kind of breakpoint-like event triggered,
6242 print the stop event to the output (CLI) stream.
6243 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
6244
5166082f
PA
62452014-05-21 Pedro Alves <palves@redhat.com>
6246
6247 * cli/cli-cmds.c (list_command): Handle the first "list" after the
6248 current source line having changed.
6249 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
6250 * infrun.c (normal_stop): Adjust call to
6251 set_current_sal_from_frame.
6252 * source.c (clear_lines_listed_range): New function.
6253 (set_current_source_symtab_and_line, identify_source_line): Clear
6254 the lines listed range.
6255 (line_info): Handle the first "info line" after the current source
6256 line having changed.
6257 * stack.c (print_stack_frame): Remove center handling.
6258 (set_current_sal_from_frame): Remove 'center' parameter. Don't
6259 center sal.line.
6260
c1ee2fb3
PA
62612014-05-21 Pedro Alves <palves@redhat.com>
6262
6263 * inf-child.c (inf_child_mourn_inferior): New function.
6264 * inf-child.h (inf_child_mourn_inferior): New declaration.
6265 * darwin-nat.c (darwin_mourn_inferior): Use
6266 inf_child_mourn_inferior.
6267 * gnu-nat.c (gnu_mourn_inferior): Likewise.
6268 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
6269 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
6270 * nto-procfs.c (procfs_mourn_inferior): Likewise.
6271 * windows-nat.c (windows_mourn_inferior): Likewise.
6272
5c6d4fb2
DE
62732014-05-21 Doug Evans <xdje42@gmail.com>
6274
250748cb 6275 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5c6d4fb2 6276
4a2722c5
DE
62772014-05-21 Doug Evans <xdje42@gmail.com>
6278
17292b30 6279 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4a2722c5
DE
6280 (gdbscm_out_of_range_error): Ditto.
6281 (gdbscm_memory_error): Ditto.
250748cb
DE
6282 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
6283 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4a2722c5
DE
6284 (gdbscm_out_of_range_error): Update.
6285 (gdbscm_memory_error): Update.
6286 (gdbscm_scm_to_target_string_unsafe): Delete.
6287
6a3cb8e8
PA
62882014-05-21 Pedro Alves <palves@redhat.com>
6289
6290 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
6291 globals.
6292 (inf_child_open_target): New function.
6293 (inf_child_open): Use inf_child_open_target to push the target
6294 instead of erroring out.
6295 (inf_child_disconnect, inf_child_close)
6296 (inf_child_maybe_unpush_target): New functions.
6297 (inf_child_target): Install inf_child_disconnect and
6298 inf_child_close. Store a pointer to the returned object.
6299 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
6300 declarations.
6301 * target.c (auto_connect_native_target): New global.
6302 (show_default_run_target): New function.
6303 (find_default_run_target): Return NULL if automatically connecting
6304 to the native target is disabled.
6305 (_initialize_target): Install set/show auto-connect-native-target.
6306 * NEWS: Mention "set auto-connect-native-target", and "target
6307 native".
6308 * linux-nat.c (super_close): New global.
6309 (linux_nat_close): Call super_close.
6310 (linux_nat_add_target): Store a pointer to the base class's
6311 to_close method.
6312 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
6313 inf_child_maybe_unpush.
6314 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
6315 already pushed.
6316 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
6317 the inferior. Use inf_child_maybe_unpush_target.
6318 (inf_ttrace_attach): Don't push the target if it is already
6319 pushed.
6320 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
6321 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
6322 after mourning the inferior. Use inf_child_maybe_unpush_target.
6323 (darwin_attach_pid): Don't push the target if it is already
6324 pushed.
6325 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
6326 mourning the inferior. Use inf_child_maybe_unpush_target.
6327 (gnu_detach): Use inf_child_maybe_unpush_target.
6328 * go32-nat.c (go32_create_inferior): Don't push the target if it
6329 is already pushed.
6330 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
6331 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
6332 (procfs_open): Rename to ...
6333 (procfs_open_1): ... this. Add target_ops parameter. Adjust
6334 comments. Can target_preopen before changing node. Call
6335 inf_child_open_target to push the target explicitly.
6336 (procfs_attach): Don't push the target if it is already pushed.
6337 (procfs_detach): Use inf_child_maybe_unpush_target.
6338 (procfs_create_inferior): Don't push the target if it is already
6339 pushed.
6340 (nto_native_ops): New global.
6341 (procfs_open): Reimplement.
6342 (procfs_native_open): New function.
6343 (init_procfs_targets): Install procfs_native_open as to_open of
6344 "target native". Store a pointer to the "native" target in
6345 nto_native_ops.
6346 * procfs.c (procfs_attach): Don't push the target if it is already
6347 pushed.
6348 (procfs_detach): Use inf_child_maybe_unpush_target.
6349 (procfs_mourn_inferior): Only unpush the target after mourning the
6350 inferior. Use inf_child_maybe_unpush_target.
6351 (procfs_init_inferior): Don't push the target if it is already
6352 pushed.
6353 * windows-nat.c (do_initial_windows_stuff): Don't push the target
6354 if it is already pushed.
6355
930ee1b1
PA
63562014-05-21 Pedro Alves <palves@redhat.com>
6357
6358 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
6359 and "procfs" targets are now called "native" instead.
6360
1f5d1b13
PA
63612014-05-21 Pedro Alves <palves@redhat.com>
6362
6363 * go32-nat.c (go32_open): Delete.
6364 (go32_target): Don't override the to_open method.
6365
132f8e03
PA
63662014-05-21 Pedro Alves <palves@redhat.com>
6367
6368 * nto-procfs.c (procfs_can_run): New function.
6369 (nto_procfs_ops): New global.
6370 (init_procfs_targets): New, based on procfs_target. Install
6371 "target native" in addition to "target procfs".
6372 (_initialize_procfs): Call init_procfs_targets instead of adding
6373 the target here.
6374
03c136c3
PA
63752014-05-21 Pedro Alves <palves@redhat.com>
6376
6377 * windows-nat.c (windows_target): Don't override to_shortname,
6378 to_longname or to_doc.
6379
a635d0f3
PA
63802014-05-21 Pedro Alves <palves@redhat.com>
6381
6382 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
6383 to_doc.
6384
4f9b5133
PA
63852014-05-21 Pedro Alves <palves@redhat.com>
6386
6387 * darwin-nat.c (_initialize_darwin_inferior): Don't override
6388 to_shortname, to_longname or to_doc.
6389
bc85afde
PA
63902014-05-21 Pedro Alves <palves@redhat.com>
6391
6392 * go32-nat.c (go32_target): Don't override to_shortname,
6393 to_longname or to_doc.
6394
4ebfc96e
PA
63952014-05-21 Pedro Alves <palves@redhat.com>
6396
6397 * inf-child.c (inf_child_open): Remove mention of "child".
6398 (inf_child_target): Rename target to "native" instead of "child".
6399
2648dfed
AA
64002014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6401
6402 * Makefile.in (SFILES): Delete "regset.c".
6403 (COMMON_OBS): Delete "regset.o".
6404 * regset.c: Remove.
6405 * regset.h (regset_alloc): Delete prototype.
6406
b13feb94
AA
64072014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6408
6409 * sparc-linux-tdep.c (sparc32_linux_gregset)
6410 (sparc32_linux_fpregset): New static regset structures.
6411 (sparc32_linux_init_abi): Drop dynamic regset allocations.
6412 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
6413 'fpregset' fields.
6414 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
6415 (sparc64_linux_fpregset): New static regset structures.
6416 (sparc64_linux_init_abi): Drop dynamic regset allocations.
6417 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
6418 New static regset structures.
6419 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
6420 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
6421 New static regset structures.
6422 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
6423 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
6424 New static regset structures.
6425 (sparc64obsd_init_abi): Drop dynamic regset allocations.
6426 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
6427 New static regset structures.
6428 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
6429
b4fd25c9
AA
64302014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6431
6432 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
6433 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
6434 register maps ("regmaps") from "*regset" to "*regmap". Do this
6435 for all regmap types and variables.
6436 * sparc-linux-tdep.c (sparc32_linux_step_trap)
6437 (sparc32_linux_supply_core_gregset)
6438 (sparc32_linux_collect_core_gregset)
6439 (sparc32_linux_supply_core_fpregset)
6440 (sparc32_linux_collect_core_fpregset): Likewise.
6441 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
6442 (sparc_gregmap, sparc_fpregmap): ... these.
6443 (sparc_supply_gregset, sparc_collect_gregset)
6444 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6445 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
6446 (_initialize_sparc_nat): Rename regmaps.
6447 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
6448 (sparc_gregmap, sparc_fpregmap): ... these.
6449 (sparc_supply_gregset, sparc_collect_gregset)
6450 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6451 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
6452 Rename macros to...
6453 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
6454 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
6455 Likewise.
6456 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
6457 Rename to...
6458 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
6459 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
6460 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
6461 regmaps.
6462 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6463 (sparc32_bsd_fpregset): Rename to...
6464 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6465 (sparc32_bsd_fpregmap): ... these.
6466 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
6467 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6468 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
6469 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
6470 (struct sparc_gregmap, struct sparc_fpregmap)
6471 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6472 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
6473 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
6474 (sparc32_supply_regset, sparc32_collect_gregset)
6475 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
6476 prototypes.
6477 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
6478 (sparc64_linux_ptrace_gregmap): ... this.
6479 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
6480 (_initialize_sparc64_linux_nat): Rename regmaps.
6481 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
6482 (sparc64_linux_core_gregmap): ... this.
6483 (sparc64_linux_supply_core_gregset)
6484 (sparc64_linux_collect_core_gregset)
6485 (sparc64_linux_supply_core_fpregset)
6486 (sparc64_linux_collect_core_fpregset): Rename regmaps.
6487 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
6488 (sparc64_sol2_fpregset): Rename to...
6489 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
6490 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
6491 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
6492 regmaps.
6493 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
6494 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
6495 (sparc64_bsd_fpregset): Rename to...
6496 (struct sparc_gregmap, sparc64_sol2_gregmap)
6497 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
6498 (sparc64_bsd_fpregmap): ... these.
6499 (sparc64_supply_gregset, sparc64_collect_gregset)
6500 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
6501 prototypes.
6502 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
6503 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
6504 (sparc64fbsd_gregmap): ... this.
6505 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
6506 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
6507 Rename regmaps.
6508 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
6509 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
6510 (sparc64nbsd_collect_fpregset): Likewise.
6511 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
6512 (sparc64nbsd_gregmap): ... this.
6513 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
6514 regmaps.
6515 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
6516 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
6517 (sparc64obsd_gregmap): ... this.
6518 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
6519 regmaps.
6520 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
6521 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
6522 (sparc32nbsd_gregmap): ... this.
6523 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
6524 regmaps.
6525
8fea3224
AA
65262014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6527
6528 * score-tdep.c (score7_linux_gregset): New static regset
6529 structure.
6530 (score7_linux_regset_from_core_section): Remove dynamic regset
6531 allocation.
6532 (score_gdbarch_init): Drop allocation of tdep structure.
6533 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
6534
24534243
AA
65352014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6536
6537 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
6538 regset structures.
6539 (am33_regset_from_core_section): Remove dynamic regset
6540 allocations.
6541
b7195f27
AA
65422014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6543
6544 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
6545 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
6546 structures.
6547 (mips_linux_regset_from_core_section): Remove dynamic regset
6548 allocations.
6549 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6550 'gregset64', 'fpregset', and 'fpregset64'.
6551 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
6552 deleted tdep fields.
6553
ecc37a5a
AA
65542014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6555
6556 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
6557 regset structures.
6558 (amd64_regset_from_core_section): Remove dynamic regset
6559 allocations.
6560 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
6561 structure.
6562 (amd64obsd_regset_from_core_section): Remove dynamic regset
6563 allocation.
6564 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
6565 Likewise.
6566 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
6567 x86-common regset supply function.
6568 * i386-tdep.c (i386_collect_gregset): Make static.
6569 (i386_gregset): New global regset structure.
6570 (i386_fpregset, i386_xstateregset): New static regset structures.
6571 (i386_regset_from_core_section): Remove dynamic regset
6572 allocations.
6573 (i386_gdbarch_init): Remove initialization of tdep fields
6574 'gregset', 'fpregset', and 'xstateregset'.
6575 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6576 'fpregset', and 'xstateregset'.
6577 (i386_collect_gregset): Remove prototype.
6578 (i386_gregset): New declaration.
6579 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
6580 structure.
6581 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
6582 allocation.
6583
b7611c43
AA
65842014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6585
6586 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
6587 (arm_linux_vfpregset): New static regset structures.
6588 (arm_linux_regset_from_core_section): Remove dynamic allocation of
6589 regset structures.
6590 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
6591 and 'vfpregset' fields.
6592
a069a2bd
AA
65932014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6594
6595 * aarch64-linux-tdep.c (aarch64_linux_gregset)
6596 (aarch64_linux_fpregset): New static regset structures.
6597 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
6598 of regset structures.
6599 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
6600 'fpregset' fields.
6601
09424cff
AA
66022014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6603
6604 * regset.h (struct regset): Remove gdbarch field.
6605 * regset.c (regset_alloc): Drop initialization of gdbarch field.
6606 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6607 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
6608 Likewise.
6609 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
6610 (ppc32_linux_fpregset, ppc32_linux_vrregset)
6611 (ppc32_linux_vsxregset): Likewise.
6612 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
6613 via the regcache instead of the regset.
6614 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
6615 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
6616 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
6617 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
6618 Likewise.
6619
3ca7dae4
AA
66202014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6621
6622 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
6623 Constify structures.
6624 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
6625 (alphanbsd_aout_gregset): Likewise.
6626 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
6627 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
6628 Likewise.
6629 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
6630 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
6631 Likewise.
6632 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
6633 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
6634 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
6635 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
6636 * m88k-tdep.c (m88k_gregset): Likewise.
6637 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
6638 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
6639 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6640 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
6641 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
6642 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
6643 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
6644 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
6645 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
6646 Likewise.
6647 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
6648 * sh-tdep.h (sh_corefile_gregset): Likewise.
6649 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
6650 * vax-tdep.c (vax_gregset): Likewise.
6651
5876f503
JK
66522014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6653
6654 Fix TLS access for -static -pthread.
6655 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
6656 (try_thread_db_load_1): Initialize it.
6657 (thread_db_get_thread_local_address): Call it if LM is zero.
6658 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
6659 * target.h (struct target_ops) (to_get_thread_local_address): Add
6660 load_module_addr comment.
6661
0256a6ac
PA
66622014-05-21 Pedro Alves <palves@redhat.com>
6663
6664 * dcache.c (dcache_read_memory_partial): If reading the cache line
6665 fails, fallback to reading just the memory the caller wanted.
6666
227533ac
DE
66672014-05-20 Doug Evans <dje@google.com>
6668
6669 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
6670 instead of get_current_arch.
6671
936d2992
PA
66722014-05-20 Pedro Alves <palves@redhat.com>
6673
6674 * NEWS: Mention that compare-sections now works with all targets.
6675
6676 * remote.c (PACKET_qCRC): New enum value.
6677 (remote_verify_memory): Don't send qCRC if the target has no
6678 execution. Use packet_support/packet_ok. If the target doesn't
6679 support the qCRC packet, fallback to a deep memory copy.
6680 (compare_sections_command): Say "target image" instead of "remote
6681 executable".
6682 (_initialize_remote): Add PACKET_qCRC to the list of config
6683 packets that have no associated command. Extend comment.
6684 * target.c (simple_verify_memory, default_verify_memory): New
6685 function.
6686 * target.h (struct target_ops) <to_verify_memory>: Default to
6687 default_verify_memory.
6688 (simple_verify_memory): New declaration.
6689 * target-delegates.c: Regenerate.
6690
e59fa00f
MM
66912014-05-20 Markus Metzger <markus.t.metzger@intel.com>
6692
6693 * record-btrace.c (record_btrace_step_thread): Check for empty history.
6694
f2205de0
HZ
66952014-05-20 Hui Zhu <hui@codesourcery.com>
6696 Yao Qi <yao@codesourcery.com>
6697
6698 PR backtrace/16558
6699 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
6700 and change address of sp and pc.
6701
c4e54771
TT
67022014-05-19 Tom Tromey <tromey@redhat.com>
6703
6704 * gdbtypes.c (rank_function): Use XNEWVEC.
6705 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
6706
73051182
DE
67072014-05-19 Doug Evans <dje@google.com>
6708
6709 * dwarf2read.c (build_type_psymtabs_1): Renamed from
6710 build_type_unit_groups and moved closer to only caller. Remove
6711 arguments. All references updated. Remove outdated .gdb_index
6712 comment.
6713 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
6714 build_type_psymtabs_1.
6715
8832e7e3
DE
67162014-05-19 Doug Evans <dje@google.com>
6717
6718 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
6719 n_type_unit_groups, all_type_unit_groups. All uses removed.
6720 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
6721 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
6722 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
6723 (add_type_unit_group_to_table): Delete.
6724
cd8ae15e
DE
67252014-05-19 Doug Evans <dje@google.com>
6726
6727 * eval.c (evaluate_subexp_standard): Add some comments.
6728
08f4850b
DE
67292014-05-17 Doug Evans <xdje42@gmail.com>
6730
6731 * progspace.c (remove_program_space): Delete, unused.
6732 * progspace.h (remove_program_space): Ditto.
6733
bed8455c
DE
67342014-05-17 Doug Evans <xdje42@gmail.com>
6735
6736 * inferior.c (prune_inferiors): Fix comment.
6737 (remove_inferior_command): Call prune_program_spaces.
6738
8d551b02
DE
67392014-05-16 Doug Evans <dje@google.com>
6740
6741 New command line option -D.
6742 * NEWS: Mention it.
6743 * main.c (set_gdb_data_directory): New function.
6744 (captured_main): Recognize -D. Flag error for --data-directory "".
6745 Call set_gdb_data_directory.
6746 (print_gdb_help): Print --data-directory, -D.
6747 * main.h (set_gdb_data_directory): Declare.
6748 * top.c (staged_gdb_datadir): New static global.
6749 (set_gdb_datadir): Call set_gdb_data_directory
6750 (show_gdb_datadir): New function.
6751 (init_main): Update init of data-directory parameter.
6752
18848e28
GF
67532014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
6754
6755 Import the "dirfd" gnulib module.
6756 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
6757 * gnulib/aclocal.m4: Update.
6758 * gnulib/config.in: Update.
6759 * gnulib/configure: Update.
6760 * gnulib/import/Makefile.am: Update.
6761 * gnulib/import/Makefile.in: Update.
6762 * gnulib/import/dirfd.c: New.
6763 * gnulib/import/m4/dirfd.m4: New.
6764 * gnulib/import/m4/gnulib-cache.m4: Update.
6765 * gnulib/import/m4/gnulib-comp.m4: Update.
6766
95c64f92
YQ
67672014-05-16 Pierre Muller <muller@sourceware.org>
6768 Yao Qi <yao@codesourcery.com>
6769
6770 * valprint.c (print_wchar): Move the code on checking whether
6771 W is a printable wide char to the default branch of switch
6772 statement below. Call wchar_printable instead of gdb_iswprint.
6773
cac395ea
TM
67742014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
6775
19679eca 6776 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
cac395ea
TM
6777 ldr.w and ldrd instructions.
6778
83655187
DE
67792014-05-15 Doug Evans <dje@google.com>
6780
6781 * dwarf2read.c (read_structure_type): Delete outdated comments.
6782
dd756689
TT
67832014-05-14 Tom Tromey <tromey@redhat.com>
6784
6785 * macrocmd.c (print_macro_definition): Reindent.
6786
75ddda77
DE
67872014-05-13 Doug Evans <xdje42@gmail.com>
6788
6789 * python/py-cmd.c (cmdpy_completer): Add comment.
6790 (completers): Make const.
6791
b0f16a3e
SM
67922014-05-13 Simon Marchi <simon.marchi@ericsson.com>
6793
6794 * infrun.c (resume): Remove should_resume (unused). Move up
6795 declaration of resume_ptid.
6796
033c3379
TT
67972014-05-13 Tom Tromey <tromey@redhat.com>
6798
6799 * language.h (unop_type_check): Remove.
6800 (binop_type_check): Don't declare.
6801
9b44a3a5
AA
68022014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
6803
6804 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
6805 call to regcache_raw_collect.
6806
303a33fa
SM
68072014-05-12 Simon Marchi <simon.marchi@ericsson.com>
6808
6809 * mi/mi-console.c (mi_console_raw_packet): Use the value from
6810 mi_console->quote as the quoting character.
6811
196100a0
SM
68122014-05-12 Simon Marchi <simon.marchi@ericsson.com>
6813
6814 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
6815
f989a1c8
TT
68162014-04-29 Tom Tromey <tromey@redhat.com>
6817
6818 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
6819 "show debug varobj".
6820
9404b58f
KM
68212014-05-07 Kyle McMartin <kyle@redhat.com>
6822
6823 Pushed by Joel Brobecker <brobecker@adacore.com>.
6824 * aarch64-tdep.c (aarch64_software_single_step): New function.
6825 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
6826 with aarch64_software_single_step.
6827
5e49ba57
JB
68282014-05-05 Joel Brobecker <brobecker@adacore.com>
6829
6830 GDB 7.7.1 released.
6831
c888a17d
KS
68322014-05-05 Keith Seitz <keiths@redhat.com>
6833
6834 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
6835 variable or history value is successfully parsed.
6836
290a839c
YQ
68372014-05-05 Yao Qi <yao@codesourcery.com>
6838 Pedro Alves <palves@redhat.com>
6839
6840 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
6841 address of blocks that intersects the requested range. Trim
6842 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
6843 sections.
6844 * ctf.c (ctf_xfer_partial): Likewise.
6845
91256dc2
YQ
68462014-05-05 Yao Qi <yao@codesourcery.com>
6847
6848 * printcmd.c (display_command): Remove the check to
6849 target_has_execution.
6850
07284463
MK
68512014-05-03 Mark Kettenis <kettenis@gnu.org>
6852
6853 * ppcobsd-nat.c: Include "obsd-nat.h".
6854 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
6855 add_target.
6856 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
6857
30a1e6cc
SDJ
68582014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
6859
6860 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
6861 and 16-bit signed and unsigned arguments. Update comment.
6862 (stap_parse_probe_arguments): Extend code to handle such
6863 arguments. Use warning instead of complaint to notify about
6864 unrecognized bitness.
6865
f33da99a
SDJ
68662014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
6867
6868 PR breakpoints/16889
6869 * stap-probe.c (stap_parse_probe_arguments): Simplify
6870 check for non-prefixed probes (i.e., probes whose
6871 arguments do not start with "N@"). Always set the
6872 argument type to a sane value.
6873
95cf3b38
DT
68742014-05-01 David Taylor <dtaylor@emc.com>
6875
6876 * remote.c (compare_sections_command): Add -r option to compare
6877 all loadable read-only sections.
6878
1cfdf534
SC
68792014-04-30 Siva Chandra Reddy <sivachandra@google.com>
6880
6881 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
6882 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
6883 Update all callers.
6884 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
6885 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
6886 Remove unused CORE_ADDR argument. Update all callers.
6887
ca4f7f8b
PA
68882014-04-29 Pedro Alves <palves@redhat.com>
6889
6890 * remote.c (struct packet_config) <detect>: Extend comment.
6891 (add_packet_config_cmd): Don't set the config's detect or support
6892 fields here.
6893 (init_all_packet_configs): Also initialize the config's 'detect'
6894 field.
6895 (reset_all_packet_configs_support): New function.
6896 (remote_open_1): Call reset_all_packet_configs_support instead of
6897 init_all_packet_configs.
6898 (_initialize_remote): Initialize all packet configs. Assert that
6899 all packets have an associated command, except a few known
6900 outliers.
6901
11c1ba78
JB
69022014-04-28 Joel Brobecker <brobecker@adacore.com>
6903
6904 * dwarf2read.c (read_subrange_type): Handle dynamic
6905 DW_AT_lower_bound attributes.
6906
8739bc53
JB
69072014-04-28 Joel Brobecker <brobecker@adacore.com>
6908
6909 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
6910 dynamic bounds before computing its upper bound.
6911 (ada_discrete_type_low_bound): Same as above with the lower bound.
6912
6f8a3220
JB
69132014-04-28 Joel Brobecker <brobecker@adacore.com>
6914
6915 * dwarf2read.c (is_dynamic_type): Return true for dynamic
6916 range types. Adjust the array handling implementation to
6917 take advantage of this change.
6918 (resolve_dynamic_range): New function, mostly extracted from
6919 resolve_dynamic_bounds.
6920 (resolve_dynamic_array): New function, mostly extracted from
6921 resolve_dynamic_bounds.
6922 (resolve_dynamic_bounds): Delete.
6923 (resolve_dynamic_type): Reimplement. Add handling of
6924 TYPE_CODE_RANGE types.
6925
4d072ce4
JB
69262014-04-28 Joel Brobecker <brobecker@adacore.com>
6927
6928 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
6929 handling of parallel ___XA types.
6930
52865325
JB
69312014-04-28 Joel Brobecker <brobecker@adacore.com>
6932
6933 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
6934 unnecessary second call to static_unwrap_type.
6935
433e77fa
HZ
69362014-04-27 Hui Zhu <hui@codesourcery.com>
6937
6938 * stack.c (print_frame_info): Call do_gdb_disassembly with
6939 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
6940
b51a69ee
DE
69412014-04-26 Doug Evans <xdje42@gmail.com>
6942
6943 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
6944
7ae1a6a6
PA
69452014-04-25 Pedro Alves <palves@redhat.com>
6946
6947 PR server/16255
6948 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
6949 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
6950 and newline from built string.
6951 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
6952 (linux_ptrace_attach_fail_reason): ... this.
6953 * linux-nat.c (linux_nat_attach): Adjust to use
6954 linux_ptrace_attach_fail_reason.
6955
4082afcc
PA
69562014-04-25 Pedro Alves <palves@redhat.com>
6957
6958 * remote.c (struct remote_state): Remove multi_process_aware,
6959 non_stop_aware, cond_tracepoints, cond_breakpoints,
6960 breakpoint_commands, fast_tracepoints, static_tracepoints,
6961 install_in_trace, disconnected_tracing,
6962 enable_disable_tracepoints, string_tracing, and
6963 augmented_libraries_svr4_read fields.
6964 (remote_multi_process_p): Move further below in the file.
6965 (struct packet_config): Add comments.
6966 (update_packet_config): Delete function.
6967 (show_packet_config_cmd): Use packet_config_support.
6968 (add_packet_config_cmd): Use NULL as set callback.
6969 (packet_ok): "set remote foo-packet"-style commands no longer
6970 change config->supported -- adjust.
6971 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
6972 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
6973 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
6974 (PACKET_QNonStop, PACKET_multiprocess_feature)
6975 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
6976 (PACKET_DisconnectedTracing_feature)
6977 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
6978 (set_remote_protocol_packet_cmd): Delete function.
6979 (packet_config_support, packet_support): New functions.
6980 (set_remote_protocol_Z_packet_cmd): Don't call
6981 update_packet_config.
6982 (remote_query_attached, remote_pass_signals)
6983 (remote_program_signals, remote_threads_info)
6984 (remote_threads_extra_info, remote_start_remote): Use
6985 packet_support.
6986 (remote_start_remote): Use packet_config_support and
6987 packet_support.
6988 (init_all_packet_configs): Set all packets to unknown support,
6989 instead of calling update_packet_config.
6990 (remote_check_symbols): Use packet_support.
6991 (remote_supported_packet): Unconditionally set the packet config's
6992 support status.
6993 (remote_multi_process_feature, remote_non_stop_feature)
6994 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
6995 (remote_breakpoint_commands_feature)
6996 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
6997 (remote_install_in_trace_feature)
6998 (remote_disconnected_tracing_feature)
6999 (remote_enable_disable_tracepoint_feature)
7000 (remote_string_tracing_feature)
7001 (remote_augmented_libraries_svr4_read_feature): Delete functions.
7002 (remote_protocol_features): Adjust to use remote_supported_packet
7003 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
7004 "ConditionalTracepoints", "ConditionalBreakpoints",
7005 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
7006 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
7007 "EnableDisableTracepoints", and "tracenz".
7008 (remote_query_supported): Use packet_support.
7009 (remote_open_1): Adjust.
7010 (extended_remote_attach_1): Use packet_support. Switch on the
7011 result of packet_ok instead of checking whether the packet ended
7012 up disabled.
7013 (remote_vcont_resume): Use packet_support.
7014 (remote_resume, remote_stop_ns, fetch_register_using_p)
7015 (remote_prepare_to_store, store_register_using_P)
7016 (check_binary_download, remote_write_bytes): Use packet_support.
7017 (remote_vkill): Use packet_support. Switch on the result of
7018 packet_ok instead of checking whether the packet ended up
7019 disabled.
7020 (extended_remote_supports_disable_randomization): Use
7021 packet_support.
7022 (extended_remote_run): Switch on the result of packet_ok instead
7023 of checking whether the packet ended up disabled.
7024 (remote_insert_breakpoint, remote_remove_breakpoint)
7025 (remote_insert_watchpoint, remote_remove_watchpoint)
7026 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
7027 packet_support.
7028 (remote_search_memory): Use packet_config_support.
7029 (remote_get_thread_local_address, remote_get_tib_address)
7030 (remote_hostio_send_command, remote_can_execute_reverse): Use
7031 packet_support.
7032 (remote_supports_cond_tracepoints)
7033 (remote_supports_cond_breakpoints)
7034 (remote_supports_fast_tracepoints)
7035 (remote_supports_static_tracepoints)
7036 (remote_supports_install_in_trace)
7037 (remote_supports_enable_disable_tracepoint)
7038 (remote_supports_string_tracing)
7039 (remote_can_run_breakpoint_commands): Rewrite, checking whether
7040 the packet config says the feature is enabled or disabled.
7041 (remote_download_tracepoint, remote_trace_set_readonly_regions)
7042 (remote_get_trace_status): Use packet_support.
7043 (remote_set_disconnected_tracing): Adjust to check whether the
7044 feature is enabled with packet_support.
7045 (remote_set_trace_buffer_size, remote_use_agent)
7046 (remote_can_use_agent, remote_supports_btrace): Use
7047 packet_support.
7048 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
7049 Use packet_config_support.
7050 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
7051 the packet config says the feature is enabled or disabled.
7052 (set_range_stepping): Use packet_support.
7053
bdb52a22
TT
70542014-04-25 Tom Tromey <tromey@redhat.com>
7055
7056 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
7057 argument.
7058
e9475ead
SA
70592014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
7060
7061 * NEWS: Mention support for C99 variable length arrays.
7062
82eacd52
JB
70632014-04-24 Joel Brobecker <brobecker@adacore.com>
7064
7065 * ada-lang.c (standard_exc): Expand introductory comment.
7066
01f9f808
MS
70672014-04-24 Michael Sturm <michael.sturm@mintel.com>
7068 Walfred Tedeschi <walfred.tedeschi@intel.com>
7069
7070 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
7071 AVX512 registers.
7072 (amd64_linux_read_description): Add code to handle AVX512 xstate
7073 mask and return respective tdesc.
7074 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
7075 and features/i386/x32-avx512-linux.c.
7076 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
7077 (amd64_linux_core_read_description): Add code to handle AVX512
7078 xstate mask and return respective tdesc.
7079 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
7080 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
7081 calculation.
7082 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
7083 (tdesc_amd64_avx512_linux): New prototype.
7084 (tdesc_x32_avx512_linux): Likewise.
7085 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
7086 features/i386/x32-avx512.c.
7087 (amd64_ymm_avx512_names): New register names for pseudo
7088 registers YMM16-31.
7089 (amd64_ymmh_avx512_names): New register names for raw registers
7090 YMMH16-31.
7091 (amd64_k_names): New register names for K registers.
7092 (amd64_zmmh_names): New register names for ZMM raw registers.
7093 (amd64_zmm_names): New registers names for ZMM pseudo registers.
7094 (amd64_xmm_avx512_names): New register names for XMM16-31
7095 registers.
7096 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
7097 registers.
7098 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
7099 if feature is present.
7100 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
7101 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
7102 (AMD64_NUM_REGS): Adjust to new number of registers.
7103 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
7104 registers supplied via XSTATE by AVX512 registers.
7105 (i386_linux_read_description): Add case for AVX512.
7106 * i386-linux-tdep.c: Include i386-avx512-linux.c.
7107 (i386_linux_gregset_reg_offset): Add AVX512 registers.
7108 (i386_linux_core_read_description): Add case for AVX512.
7109 (i386_linux_init_abi): Install supported register note section
7110 for AVX512.
7111 (_initialize_i386_linux_tdep): Add call to tdesc init function for
7112 AVX512.
7113 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
7114 registers to be number of zmm7h + 1.
7115 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
7116 * i386-tdep.c: Include features/i386/i386-avx512.c.
7117 (i386_zmm_names): Add ZMM pseudo register names array.
7118 (i386_zmmh_names): Add ZMM raw register names array.
7119 (i386_k_names): Add K raw register names array.
7120 (num_lower_zmm_regs): Add constant for the number of lower ZMM
7121 registers. AVX512 has 16 more ZMM registers than there are YMM
7122 registers.
7123 (i386_zmmh_regnum_p): Add function to look up register number of
7124 ZMM raw registers.
7125 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
7126 (i386_k_regnum_p): Likewise for K raw registers.
7127 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
7128 registers added by AVX512.
7129 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
7130 registers added by AVX512.
7131 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
7132 added by AVX512.
7133 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
7134 (i386_pseudo_register_name): Add ZMM pseudo registers.
7135 (i386_zmm_type): Construct and return vector registers type for ZMM
7136 registers.
7137 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
7138 ZMM0-31 pseudo registers and K registers.
7139 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
7140 and YMM16-31 registers from register cache.
7141 (i386_pseudo_register_write): Add code to write K, ZMM and
7142 YMM16-31 registers.
7143 (i386_register_reggroup_p): Add code to include/exclude AVX512
7144 registers in/from respective register groups.
7145 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
7146 registers if feature is present in xcr0.
7147 (i386_gdbarch_init): Add code to initialize AVX512 feature
7148 variables in tdep structure, wire in pseudo registers and call
7149 initialize_tdesc_i386_avx512.
7150 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
7151 variables.
7152 (i386_regnum): Add AVX512 registers.
7153 (I386_SSE_NUM_REGS): New define for number of SSE registers.
7154 (I386_AVX_NUM_REGS): Likewise for AVX registers.
7155 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
7156 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
7157 512 bits wide.
7158 (i386_xmm_avx512_regnum_p): New prototype for register look up.
7159 (i386_ymm_avx512_regnum_p): Likewise.
7160 (i386_k_regnum_p): Likewise.
7161 (i386_zmm_regnum_p): Likewise.
7162 (i386_zmmh_regnum_p): Likewise.
7163 * i387-tdep.c : Update year in copyright notice.
7164 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
7165 XSAVE buffer.
7166 (XSAVE_YMM_AVX512_ADDR): New macro.
7167 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
7168 XSAVE buffer.
7169 (XSAVE_XMM_AVX512_ADDR): New macro.
7170 (xsave_avx512_k_offset): New table for K register offsets in
7171 XSAVE buffer.
7172 (XSAVE_AVX512_K_ADDR): New macro.
7173 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
7174 in XSAVE buffer.
7175 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
7176 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
7177 buffer.
7178 (i387_collect_xsave): Add code to collect AVX512 registers from
7179 XSAVE buffer.
7180 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
7181 of XMM16-31 registers.
7182 (I387_NUM_K_REGS): New define for number of K registers.
7183 (I387_K0_REGNUM): New define for K0 register number.
7184 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
7185 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
7186 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
7187 registers.
7188 (I387_YMM16H_REGNUM): New define for YMM16H register number.
7189 (I387_XMM16_REGNUM): New define for XMM16 register number.
7190 (I387_YMM0_REGNUM): New define for YMM0 register number.
7191 (I387_KEND_REGNUM): New define for last K register number.
7192 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
7193 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
7194 number.
7195 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
7196 number.
7197 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
7198 size.
7199 * features/Makefile: Add AVX512 related files.
7200 * features/i386/32bit-avx512.xml: New file.
7201 * features/i386/64bit-avx512.xml: Likewise.
7202 * features/i386/amd64-avx512-linux.c: Likewise.
7203 * features/i386/amd64-avx512-linux.xml: Likewise.
7204 * features/i386/amd64-avx512.c: Likewise.
7205 * features/i386/amd64-avx512.xml: Likewise.
7206 * features/i386/i386-avx512-linux.c: Likewise.
7207 * features/i386/i386-avx512-linux.xml: Likewise.
7208 * features/i386/i386-avx512.c: Likewise.
7209 * features/i386/i386-avx512.xml: Likewise.
7210 * features/i386/x32-avx512-linux.c: Likewise.
7211 * features/i386/x32-avx512-linux.xml: Likewise.
7212 * features/i386/x32-avx512.c: Likewise.
7213 * features/i386/x32-avx512.xml: Likewise.
7214 * regformats/i386/amd64-avx512-linux.dat: New file.
7215 * regformats/i386/amd64-avx512.dat: Likewise.
7216 * regformats/i386/i386-avx512-linux.dat: Likewise.
7217 * regformats/i386/i386-avx512.dat: Likewise.
7218 * regformats/i386/x32-avx512-linux.dat: Likewise.
7219 * regformats/i386/x32-avx512.dat: Likewise.
7220 * NEWS: Add note about new support for AVX512.
7221
7222
08351840
PA
72232014-04-23 Pedro Alves <palves@redhat.com>
7224
7225 * breakpoint.c (insert_bp_location): Tolerate errors if the
7226 breakpoint is set in a user-loaded objfile.
7227 (remove_breakpoint_1): Likewise. Also tolerate errors if the
7228 location is marked shlib_disabled. If the breakpoint is set in a
7229 user-loaded objfile is a GDB-side memory breakpoint, validate it
7230 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
7231 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
7232 flag.
7233 * mem-break.c (memory_validate_breakpoint): New function.
7234 * objfiles.c (userloaded_objfile_contains_address_p): New
7235 function.
7236 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
7237 * target.h (memory_validate_breakpoint): New declaration.
7238
076855f9
PA
72392014-04-23 Pedro Alves <palves@redhat.com>
7240
7241 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
7242 the breakpoint is set in a shared library, only suppress
7243 errors for software breakpoints, not hardware breakpoints.
7244
483805cf
PA
72452014-04-22 Pedro Alves <palves@redhat.com>
7246
7247 * infrun.c (schedlock_applies): New function, factored out from
7248 find_thread_needs_step_over.
7249 (find_thread_needs_step_over): Use it.
7250 (switch_back_to_stepped_thread): Always clear trap_expected if the
7251 step over is finished. Return early if scheduler locking applies.
7252 Look for the stepping thread and a potential step-over thread with
7253 a single loop.
7254 (currently_stepping_or_nexting_callback): Delete.
7255
a75fef0e
NC
72562014-04-22 Nick Clifton <nickc@redhat.com>
7257
7258 * NEWS: Mention that ARM sim now supports tracing.
7259
48b6e87e
YQ
72602014-04-22 Yao Qi <yao@codesourcery.com>
7261
7262 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
7263 to ...
7264 * tracefile.c (tracefile_fetch_registers): ... it. New
7265 function.
7266 * tracefile.h (tracefile_fetch_registers): Declare.
7267 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
7268 tracefile_fetch_registers.
7269
17617f2d
EZ
72702014-04-19 Eli Zaretskii <eliz@gnu.org>
7271
7272 PR gdb/14018
7273 * windows-nat.c (thread_rec): Don't display a warning when
7274 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
7275 fails for any reason, set th->suspended to -1, so that we don't
7276 try to resume such a thread. Also, don't return NULL in these
7277 cases, to avoid completely ruin the session due to "PC register is
7278 not available" error.
7279 (do_windows_fetch_inferior_registers): Check errors in
7280 GetThreadContext call.
7281 (windows_continue): Accept an additional argument KILLED; if not
7282 zero, ignore errors in the SetThreadContext call, since the
7283 inferior was killed and is shutting down.
7284 (windows_resume, get_windows_debug_event)
7285 (windows_create_inferior, windows_mourn_inferior)
7286 (windows_kill_inferior): All callers of windows_continue changed
7287 to adjust to its new calling sequence.
7288
5723a6fd
YQ
72892014-04-19 Yao Qi <yao@codesourcery.com>
7290
7291 * ctf.c (ctf_open): Call post_create_inferior.
7292
614d5099
YQ
72932014-04-19 Yao Qi <yao@codesourcery.com>
7294
7295 * ctf.c (handle_id): New static variable.
7296 (ctf_open_dir): Get handle_id from bt_context_add_trace return
7297 value. Get the declaration of event "register" and get length
7298 of field "contents".
7299
dac3e710
YQ
73002014-04-19 Yao Qi <yao@codesourcery.com>
7301
7302 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
7303
2bca57ba
SC
73042014-04-18 Siva Chandra Reddy <sivachandra@google.com>
7305
7306 * valops.c (oload_method_static): Remove unnecessary argument
7307 METHOD. Update all callers.
7308
51d48146
PA
73092014-04-18 Pedro alves <palves@redhat.com>
7310 Tom Tromey <tromey@redhat.com>
7311
7312 PR backtrace/15558
7313 * frame.c (get_prev_frame_1): Rename to ...
7314 (get_prev_frame_always): ... this, and make extern. Adjust.
7315 (skip_artificial_frames): Use get_prev_frame_always.
7316 (frame_unwind_caller_id, frame_pop, get_prev_frame)
7317 (get_frame_unwind_stop_reason): Adjust to rename.
7318 * frame.h (get_prev_frame_always): Declare.
7319 * inline-frame.c: Include frame.h.
7320 (inline_frame_this_id): Use get_prev_frame_always.
7321
1bdad2e0
TG
73222014-04-18 Tristan Gingold <gingold@adacore.com>
7323
7324 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
7325 code by using bfd_mach_o_get_base_address.
7326
7ce16bd4
UW
73272014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
7328
7329 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
7330 (spu_ax_pseudo_register_collect): New function.
7331 (spu_ax_pseudo_register_push_stack): Likewise.
7332 (spu_dwarf_reg_to_regnum): Likewise.
7333 (spu_gdbarch_init): Install them. Append DWARF unwinders.
7334
2ed3c037
UW
73352014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
7336
7337 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
7338 Replace FRAME argument with FRAME_ID.
7339 * gdbarch.c, gdbarch.h: Regenerate.
7340 * findvar.c (default_value_from_register): Add GDBARCH argument;
7341 replace FRAME by FRAME_ID. No longer call get_frame_id.
7342 (value_from_register): Update call to gdbarch_value_from_register.
7343 * value.h (default_value_from_register): Update prototype.
7344 * s390-linux-tdep.c (s390_value_from_register): Update interface
7345 and call to default_value_from_register.
7346 * spu-tdep.c (spu_value_from_register): Likewise.
7347
7348 * findvar.c (address_from_register): Remove TYPE argument.
7349 Do not call value_from_register; use gdbarch_value_from_register
7350 with null_frame_id instead.
7351 * value.h (address_from_register): Update prototype.
7352 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
7353 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
7354 address_from_register interface change.
7355
71e50e83
YQ
73562014-04-17 Yao Qi <yao@codesourcery.com>
7357
7358 * gdbtypes.h: Update comments to link to types and macros'
7359 definitions.
7360
7a23c549
SC
73612014-04-16 Siva Chandra Reddy <sivachandra@google.com>
7362
7363 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
7364
22869d73
KS
73652014-04-16 Keith Seitz <keiths@redhat.com>
7366
7367 PR gdb/15827
7368 * dwarf2read.c (skip_one_die): Check that all relative-offset
7369 sibling DIEs fall within range of the current reader's buffer.
7370 (read_partial_die): Likewise.
7371
c4f87ca6
KS
73722014-04-16 Keith Seitz <keiths@redhat.com>
7373
7374 PR c++/16597
7375 * cp-namespace.c (lookup_symbol_file): If the type name of
7376 `this' is NULL, return immediately.
7377
b50c8614
KS
73782014-04-14 Keith Seitz <keiths@redhat.com>
7379
7380 PR c++/16253
7381 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
7382 from symbol_matches_domain in symtab.c. All local callers
7383 of symbol_matches_domain updated.
7384 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
7385 search STRUCT_DOMAIN.
7386 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
7387 independently. standard_lookup will do that automatically.
7388 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
7389 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7390 (cp_lookup_symbol_in_namespace): Likewise.
7391 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
7392 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
7393 may return a STRUCT_DOMAIN match.
7394 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
7395 * cp-support.c: Include language.h.
7396 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
7397 VAR_DOMAIN.
7398 * psymtab.c (match_partial_symbol): Compare the requested
7399 domain with the symbol's domain directly.
7400 (lookup_partial_symbol): Likewise.
7401 * symtab.c (lookup_symbol_in_language): Explain when/why
7402 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7403 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
7404 appropriate languages.
7405 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
7406 and moved to ada-lang.c
7407 (lookup_block_symbol): Explain that this function only returns
7408 symbol matching the requested DOMAIN.
7409 Compare the requested domain with the symbol's domain directly.
7410 (iterate_over_symbols): Compare the requested domain with the
7411 symbol's domain directly.
7412 * symtab.h (symbol_matches_domain): Remove.
7413
3d567982
TT
74142014-04-14 Tom Tromey <tromey@redhat.com>
7415
7416 PR c++/15246:
7417 * c-exp.y (type_aggregate_p): New function.
7418 (qualified_name, classify_inner_name): Use it.
7419 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
7420 and TYPE_TARGET_TYPE of an enum type.
7421 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
7422 an enum type.
7423 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
7424 handle TYPE_DECLARED_CLASS.
7425 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
7426 types.
7427 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
7428 * valops.c (enum_constant_from_type): New function.
7429 (value_aggregate_elt): Use it.
7430 * cp-namespace.c (cp_lookup_nested_symbol): Handle
7431 TYPE_CODE_ENUM.
7432
c848d642
TT
74332014-04-14 Tom Tromey <tromey@redhat.com>
7434
7435 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
7436 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
7437 const.
7438 * value.h (value_aggregate_elt): Update.
7439
0626fc76
TT
74402014-04-14 Tom Tromey <tromey@redhat.com>
7441
7442 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
7443
5ecaaa66
SA
74442014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7445
7446 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7447 (evaluate_subexp_standard): Pass noside argument.
7448 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7449 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7450 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7451 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7452 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7453
1612e0c0
SA
74542014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7455
7456 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7457 points to a constant blob.
7458
c451ebe5
SA
74592014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7460
7461 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7462 property and store it as the high bound and flag the range accordingly.
7463 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7464 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7465 * gdbtypes.h (enum range_flags): New enum.
7466 (struct range_bounds): Add flags member.
7467
1d42e4c4
SA
74682014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7469
7470 * c-typeprint.c (c_type_print_varspec_suffix): Added
7471 check for not yet resolved high bound. If unresolved, print
7472 "variable length" string to the console instead of random
7473 length.
7474
9f1f738a
SA
74752014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7476
7477 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
7478 value.
7479 (ada_template_to_fixed_record_type_1): Likewise.
7480 (ada_to_fixed_type_1): Likewise.
7481 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7482 (cp_print_value): Likewise.
7483 * d-valprint.c (dynamic_array_type): Likewise.
7484 * findvar.c (address_of_variable): Likewise.
7485 * jv-valprint.c (java_value_print): Likewise.
7486 * valops.c (value_ind): Likewise.
7487 * value.c (coerce_ref): Likewise.
7488
3c8452d4
SA
74892014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7490
7491 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7492 value and retrieve the dynamic type size.
7493
4ad88275
SA
74942014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7495
7496 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7497 passed to sizeof is dynamic evaluate the argument to compute the length.
7498
80180f79
SA
74992014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7500 Joel Brobecker <brobecker@adacore.com>
7501
7502 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7503 (dwarf2_evaluate_property): New function.
7504 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7505 * dwarf2read.c (attr_to_dynamic_prop): New function.
7506 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7507 attribute.
7508 * gdbtypes.c: Include dwarf2loc.h.
7509 (is_dynamic_type): New function.
7510 (resolve_dynamic_type): New function.
7511 (resolve_dynamic_bounds): New function.
7512 (get_type_length): New function.
7513 (check_typedef): Use get_type_length to compute type length.
7514 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7515 (TYPE_LOW_BOUND_KIND): New macro.
7516 (is_dynamic_type): New function prototype.
7517 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7518 to resolve dynamic properties of the type. Update comment.
7519 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7520
a1556843
RH
75212014-04-14 Richard Henderson <rth@redhat.com>
7522
7523 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
7524
0be03e84
DE
75252014-04-12 Siva Chandra Reddy <sivachandra@google.com>
7526 Doug Evans <xdje42@gmail.com>
7527
7528 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
7529 dereference TYPE_CODE_REF values.
7530
6b662e19
JB
75312014-04-11 Joel Brobecker <brobecker@adacore.com>
7532
7533 Revert the following changes due to regressions:
7534
7535 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7536 (dwarf2_evaluate_property): New function.
7537 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7538 * dwarf2read.c (attr_to_dynamic_prop): New function.
7539 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7540 attribute.
7541 * gdbtypes.c: Include dwarf2loc.h.
7542 (is_dynamic_type): New function.
7543 (resolve_dynamic_type): New function.
7544 (resolve_dynamic_bounds): New function.
7545 (get_type_length): New function.
7546 (check_typedef): Use get_type_length to compute type length.
7547 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7548 (TYPE_LOW_BOUND_KIND): New macro.
7549 (is_dynamic_type): New function prototype.
7550 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7551 to resolve dynamic properties of the type. Update comment.
7552 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7553
7554 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7555 passed to sizeof is dynamic evaluate the argument to compute the length.
7556
7557 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7558 value and retrieve the dynamic type size.
7559
7560 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7561 (ada_template_to_fixed_record_type_1): Likewise.
7562 (ada_to_fixed_type_1): Likewise.
7563 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7564 (cp_print_value): Likewise.
7565 * d-valprint.c (dynamic_array_type): Likewise.
7566 * eval.c (evaluate_subexp_with_coercion): Likewise.
7567 * findvar.c (address_of_variable): Likewise.
7568 * jv-valprint.c (java_value_print): Likewise.
7569 * valops.c (value_ind): Likewise.
7570 * value.c (coerce_ref): Likewise.
7571
7572 * c-typeprint.c (c_type_print_varspec_suffix): Added
7573 check for not yet resolved high bound. If unresolved, print
7574 "variable length" string to the console instead of random
7575 length.
7576
7577 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7578 property and store it as the high bound and flag the range accordingly.
7579 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7580 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7581 * gdbtypes.h (enum range_flags): New enum.
7582 (struct range_bounds): Add flags member.
7583
7584 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7585 points to a constant blob.
7586
7587 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7588 (evaluate_subexp_standard): Pass noside argument.
7589 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7590 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7591 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7592 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7593 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7594
245a5f0b
KS
75952014-04-11 Keith Seitz <keiths@redhat.com>
7596
7597 PR c++/16675
7598 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
7599 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
7600 reference types.
7601
3bce8237
SA
76022014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7603
7604 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7605 (evaluate_subexp_standard): Pass noside argument.
7606 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7607 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7608 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7609 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7610 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7611
92b09522
SA
76122014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7613
7614 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7615 points to a constant blob.
7616
e1969afb
SA
76172014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7618
7619 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7620 property and store it as the high bound and flag the range accordingly.
7621 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7622 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7623 * gdbtypes.h (enum range_flags): New enum.
7624 (struct range_bounds): Add flags member.
7625
b86138fb
SA
76262014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7627
7628 * c-typeprint.c (c_type_print_varspec_suffix): Added
7629 check for not yet resolved high bound. If unresolved, print
7630 "variable length" string to the console instead of random
7631 length.
7632
bcd629a4
SA
76332014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7634
7635 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7636 (ada_template_to_fixed_record_type_1): Likewise.
7637 (ada_to_fixed_type_1): Likewise.
7638 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7639 (cp_print_value): Likewise.
7640 * d-valprint.c (dynamic_array_type): Likewise.
7641 * eval.c (evaluate_subexp_with_coercion): Likewise.
7642 * findvar.c (address_of_variable): Likewise.
7643 * jv-valprint.c (java_value_print): Likewise.
7644 * valops.c (value_ind): Likewise.
7645 * value.c (coerce_ref): Likewise.
7646
04b19544
SA
76472014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7648
7649 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7650 value and retrieve the dynamic type size.
7651
26cb189f
SA
76522014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7653
7654 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7655 passed to sizeof is dynamic evaluate the argument to compute the length.
7656
37c1ab67
SA
76572014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7658
7659 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7660 (dwarf2_evaluate_property): New function.
7661 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7662 * dwarf2read.c (attr_to_dynamic_prop): New function.
7663 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7664 attribute.
7665 * gdbtypes.c: Include dwarf2loc.h.
7666 (is_dynamic_type): New function.
7667 (resolve_dynamic_type): New function.
7668 (resolve_dynamic_bounds): New function.
7669 (get_type_length): New function.
7670 (check_typedef): Use get_type_length to compute type length.
7671 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7672 (TYPE_LOW_BOUND_KIND): New macro.
7673 (is_dynamic_type): New function prototype.
7674 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7675 to resolve dynamic properties of the type. Update comment.
7676 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7677
729efb13
SA
76782014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7679
7680 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
7681 declaring high/low bounds and change uses accordingly. Call
7682 create_range_type instead of create_static_range_type.
7683 * gdbtypes.c (create_range_type): New function.
7684 (create_range_type): Convert bounds into struct bound_prop and pass
7685 them to create_range_type.
7686 * gdbtypes.h (struct bound_prop): New struct.
7687 (create_range_type): New function prototype.
7688 (struct range_bounds): Use struct bound_prop instead of LONGEST for
7689 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
7690 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
7691 part of the bound.
7692 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
7693
0c9c3474
SA
76942014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7695
7696 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
7697 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
7698 * ada-lang.c: All uses of create_range_type updated.
7699 * coffread.c: All uses of create_range_type updated.
7700 * dwarf2read.c: All uses of create_range_type updated.
7701 * f-exp.y: All uses of create_range_type updated.
7702 * m2-valprint.c: All uses of create_range_type updated.
7703 * mdebugread.c: All uses of create_range_type updated.
7704 * stabsread.c: All uses of create_range_type updated.
7705 * valops.c: All uses of create_range_type updated.
7706 * valprint.c: All uses of create_range_type updated.
7707
9d497a19
PA
77082014-04-10 Pedro Alves <palves@redhat.com>
7709
7710 * breakpoint.c (single_step_breakpoints)
7711 (single_step_gdbarch): Move up in the file.
7712 (one_breakpoint_xfer_memory): New function, factored out from ...
7713 (breakpoint_xfer_memory): ... here. Also process single-step
7714 breakpoints.
7715
15a9128a
TG
77162014-04-09 Tristan Gingold <gingold@adacore.com>
7717
7718 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
7719 comments.
7720 (darwin_decode_exception_message): Free port only after use.
7721
9c97a070
PL
77222014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
7723
7724 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
7725 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
7726 when setting the size of call_length.
7727
7af389b8
SC
77282014-04-07 Siva Chandra Reddy <sivachandra@google.com>
7729
7730 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
7731 dereference TYPE_CODE_REF values.
7732
86ad98c3
JB
77332014-04-07 Joel Brobecker <brobecker@adacore.com>
7734
7735 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
7736 end of warning message.
7737
b0aeadb3
DE
77382014-04-03 Doug Evans <dje@google.com>
7739
7740 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
7741 of stub_comp_unit_die, stub_comp_dir is non-NULL.
7742
5979d6b6
AM
77432014-04-02 Alan Modra <amodra@gmail.com>
7744
7745 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
7746 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
7747 (struct symbol_file_add_from_memory_args): Add size field.
7748 (find_vdso_size): New function.
7749 (add_vsyscall_page): Attempt to find vdso size.
7750
0d60c288
DE
77512014-04-01 Doug Evans <dje@google.com>
7752
7753 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
7754
a41f2563
TG
77552014-04-01 Tristan Gingold <gingold@adacore.com>
7756
7757 * darwin-nat.c (darwin_encode_reply): Add prototype.
7758 (darwin_decode_exception_message): Reply to unknown inferiors.
7759 (darwin_decode_message): Handle message by id. Ignore message
7760 to unknown inferior.
7761 (darwin_wait): Discard unknown messages, add debug trace.
7762
11a865c8
DE
77632014-03-31 Doug Evans <dje@google.com>
7764
7765 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
7766 comp_dir_string.
7767
770e7fc7
DE
77682014-03-31 Doug Evans <dje@google.com>
7769
7770 New option "set print symbol-loading".
7771 * NEWS: Mention it.
7772 * solib.c (solib_read_symbols): Only print symbol loading messages
7773 if requested.
7774 (solib_add): If symbol loading is in "brief" mode, notify user
7775 symbols are being loaded.
7776 (reload_shared_libraries_1): Ditto.
7777 * symfile.c (print_symbol_loading_off): New static global.
7778 (print_symbol_loading_brief): New static global.
7779 (print_symbol_loading_full): New static global.
7780 (print_symbol_loading_enums): New static global.
7781 (print_symbol_loading): New static global.
7782 (print_symbol_loading_p): New function.
7783 (symbol_file_add_with_addrs): Only print symbol loading messages
7784 if requested.
7785 (_initialize_symfile): Register "print symbol-loading" set/show
7786 command.
7787 * symfile.h (print_symbol_loading_p): Declare.
7788
c32c64b7
DE
77892014-03-30 Doug Evans <xdje42@gmail.com>
7790
7791 * infrun.c (set_last_target_status): New function.
7792 (handle_inferior_event): Call it.
7793
7c0bc051
DE
77942014-03-30 Doug Evans <xdje42@gmail.com>
7795
7796 * inferior.h (enum stop_kind): Improve comment.
7797
8776cfe9
JB
77982014-03-28 Joel Brobecker <brobecker@adacore.com>
7799
7800 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
7801 a reference, strip the reference layer before calling
7802 the lang_ops value_has_mutated callback.
7803
410a0ff2
SDJ
78042014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
7805
7806 Remove some globals from our parser.
7807 * language.c (unk_lang_parser): Add "struct parser_state"
7808 argument.
7809 * language.h (struct language_defn) <la_parser>: Likewise.
7810 * parse.c (expout, expout_size, expout_ptr): Remove variables.
7811 (initialize_expout): Add "struct parser_state" argument.
7812 Rewrite function to use the parser state.
7813 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
7814 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
7815 write_exp_elt_longcst, write_exp_elt_dblcst,
7816 write_exp_elt_decfloatcst, write_exp_elt_type,
7817 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
7818 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
7819 write_dollar_variable): Likewise.
7820 (parse_exp_in_context_1): Use parser state.
7821 (insert_type_address_space): Add "struct parser_state" argument.
7822 Use parser state.
7823 (increase_expout_size): New function.
7824 * parser-defs.h: Forward declare "struct language_defn" and
7825 "struct parser_state".
7826 (expout, expout_size, expout_ptr): Remove extern declarations.
7827 (parse_gdbarch, parse_language): Rewrite macro declarations to
7828 accept the parser state.
7829 (struct parser_state): New struct.
7830 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
7831 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
7832 write_exp_elt_decfloatcst, write_exp_elt_type,
7833 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
7834 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
7835 write_exp_msymbol, write_dollar_variable,
7836 mark_struct_expression, insert_type_address_space): Add "struct
7837 parser_state" argument.
7838 (increase_expout_size): New function.
7839 * utils.c (do_clear_parser_state): New function.
7840 (make_cleanup_clear_parser_state): Likewise.
7841 * utils.h (make_cleanup_clear_parser_state): New function
7842 prototype.
7843 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
7844 Update calls to write_exp* in order to pass the parser state.
7845 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
7846 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
7847 (i386_stap_parse_special_token_three_arg_disp): Likewise.
7848 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
7849 * stap-probe.c (stap_parse_register_operand): Likewise.
7850 (stap_parse_single_operand): Likewise.
7851 (stap_parse_argument_1): Likewise.
7852 (stap_parse_argument): Use parser state.
7853 * stap-probe.h: Include "parser-defs.h".
7854 (struct stap_parse_info) <pstate>: New field.
7855 * c-exp.y (parse_type): Rewrite to use parser state.
7856 (yyparse): Redefine to c_parse_internal.
7857 (pstate): New global variable.
7858 (parse_number): Add "struct parser_state" argument.
7859 (write_destructor_name): Likewise.
7860 (type_exp): Update calls to write_exp* and similars in order to
7861 use parser state.
7862 (exp1, exp, variable, qualified_name, space_identifier,
7863 typename, typebase): Likewise.
7864 (write_destructor_name, parse_number, lex_one_token,
7865 classify_name, classify_inner_name, c_parse): Add "struct
7866 parser_state" argument. Update function to use parser state.
7867 * c-lang.h: Forward declare "struct parser_state".
7868 (c_parse): Add "struct parser_state" argument.
7869 * ada-exp.y (parse_type): Rewrite macro to use parser state.
7870 (yyparse): Redefine macro to ada_parse_internal.
7871 (pstate): New variable.
7872 (write_int, write_object_renaming, write_var_or_type,
7873 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
7874 type_int, type_long, type_long_long, type_float, type_double,
7875 type_long_double, type_char, type_boolean, type_system_address):
7876 Add "struct parser_state" argument.
7877 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
7878 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
7879 var_or_type, aggregate, aggregate_component_list,
7880 positional_list, others, component_group,
7881 component_associations): Update calls to write_exp* and similar
7882 functions in order to use parser state.
7883 (ada_parse, write_var_from_sym, write_int,
7884 write_exp_op_with_string, write_object_renaming,
7885 find_primitive_type, write_selectors, write_ambiguous_var,
7886 write_var_or_type, write_name_assoc, type_int, type_long,
7887 type_long_long, type_float, type_double, type_long_double,
7888 type_char, type_boolean, type_system_address): Add "struct
7889 parser_state" argument. Adjust function to use parser state.
7890 * ada-lang.c (parse): Likewise.
7891 * ada-lang.h: Forward declare "struct parser_state".
7892 (ada_parse): Add "struct parser_state" argument.
7893 * ada-lex.l (processInt, processReal): Likewise. Adjust all
7894 calls to both functions.
7895 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
7896 parser state.
7897 (yyparse): Redefine macro to f_parse_internal.
7898 (pstate): New variable.
7899 (parse_number): Add "struct parser_state" argument.
7900 (type_exp, exp, subrange, typebase): Update calls to write_exp*
7901 and similars in order to use parser state.
7902 (parse_number): Adjust code to use parser state.
7903 (yylex): Likewise.
7904 (f_parse): New function.
7905 * f-lang.h: Forward declare "struct parser_state".
7906 (f_parse): Add "struct parser_state" argument.
7907 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
7908 parser state.
7909 (yyparse): Redefine macro for java_parse_internal.
7910 (pstate): New variable.
7911 (push_expression_name, push_expression_name, insert_exp): Add
7912 "struct parser_state" argument.
7913 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
7914 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
7915 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
7916 PostIncrementExpression, PostDecrementExpression,
7917 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
7918 UnaryExpressionNotPlusMinus, CastExpression,
7919 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
7920 RelationalExpression, EqualityExpression, AndExpression,
7921 ExclusiveOrExpression, InclusiveOrExpression,
7922 ConditionalAndExpression, ConditionalOrExpression,
7923 ConditionalExpression, Assignment, LeftHandSide): Update
7924 calls to write_exp* and similars in order to use parser state.
7925 (parse_number): Ajust code to use parser state.
7926 (yylex): Likewise.
7927 (java_parse): New function.
7928 (push_variable): Add "struct parser_state" argument. Adjust
7929 code to user parser state.
7930 (push_fieldnames, push_qualified_expression_name,
7931 push_expression_name, insert_exp): Likewise.
7932 * jv-lang.h: Forward declare "struct parser_state".
7933 (java_parse): Add "struct parser_state" argument.
7934 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
7935 parser state.
7936 (yyparse): Redefine macro to m2_parse_internal.
7937 (pstate): New variable.
7938 (type_exp, exp, fblock, variable, type): Update calls to
7939 write_exp* and similars to use parser state.
7940 (yylex): Likewise.
7941 (m2_parse): New function.
7942 * m2-lang.h: Forward declare "struct parser_state".
7943 (m2_parse): Add "struct parser_state" argument.
7944 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
7945 * objc-lang.h: Forward declare "struct parser_state".
7946 (end_msglist): Add "struct parser_state" argument.
7947 * p-exp.y (parse_type): Rewrite macro to use parser state.
7948 (yyparse): Redefine macro to pascal_parse_internal.
7949 (pstate): New variable.
7950 (parse_number): Add "struct parser_state" argument.
7951 (type_exp, exp1, exp, qualified_name, variable): Update calls to
7952 write_exp* and similars in order to use parser state.
7953 (parse_number, yylex): Adjust code to use parser state.
7954 (pascal_parse): New function.
7955 * p-lang.h: Forward declare "struct parser_state".
7956 (pascal_parse): Add "struct parser_state" argument.
7957 * go-exp.y (parse_type): Rewrite macro to use parser state.
7958 (yyparse): Redefine macro to go_parse_internal.
7959 (pstate): New variable.
7960 (parse_number): Add "struct parser_state" argument.
7961 (type_exp, exp1, exp, variable, type): Update calls to
7962 write_exp* and similars in order to use parser state.
7963 (parse_number, lex_one_token, classify_name, yylex): Adjust code
7964 to use parser state.
7965 (go_parse): Likewise.
7966 * go-lang.h: Forward declare "struct parser_state".
7967 (go_parse): Add "struct parser_state" argument.
7968
342587c4
DE
79692014-03-27 Doug Evans <dje@google.com>
7970
7971 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
7972
33e80786
DE
79732014-03-27 Doug Evans <dje@google.com>
7974
7975 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
7976 Remove argument abbrev_section. All callers updated.
7977
1dbab08b
DE
79782014-03-27 Doug Evans <dje@google.com>
7979
7980 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
7981 addr_base, ranges_base.
7982
318d3177
KS
79832014-03-26 Keith Seitz <keiths@redhat.com>
7984
7985 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
7986 types, not VAR_DOMAIN.
7987
1e54db15
SL
79882014-03-25 Sandra Loosemore <sandra@codesourcery.com>
7989
7990 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
7991 "ra" registers.
7992 * features/nios2-linux.c: Regenerated.
7993 * features/nios2.c: Regenerated.
7994
d3839ede
PA
79952014-03-25 Pedro Alves <palves@redhat.com>
7996
7997 * cli/cli-script.c (script_from_file): Force the interpreter to
7998 sync mode.
7999
7588d2ec
PL
80002014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
8001
8002 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
8003 small stack allocation.
8004
a6290449
TG
80052014-03-24 Tristan Gingold <gingold@adacore.com>
8006
8007 * darwin-nat.c (exc_server): Remove unused prototype.
8008 (darwin_dump_message): Correctly display data on x86_64.
8009 (darwin_encode_reply): Fix style.
8010 Add comments and fix indentation.
8011
31ae9d24 80122014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
69fa4030
PL
8013
8014 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
8015
6339bfc4
DE
80162014-03-22 Doug Evans <xdje42@gmail.com>
8017
8018 * infcmd.c: Whitespace fixes.
8019 (interrupt_command): Merge two function comments into one.
8020
0a07590b
DE
80212014-03-22 Doug Evans <xdje42@gmail.com>
8022
8023 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
8024 All uses updated.
8025
b55fbac4
YQ
80262014-03-22 Yao Qi <yao@codesourcery.com>
8027
8028 * remote.c (target_read_live_memory): Remove.
8029 (memory_xfer_live_readonly_partial): Rename it to
8030 remote_xfer_live_readonly_partial. Remove argument 'object'.
8031 All callers updated. Call remote_read_bytes_1
8032 instead of target_read_live_memory.
8033 * tracepoint.c (set_traceframe_number): Remove.
8034 (make_cleanup_restore_traceframe_number): Likewise .
8035 * tracepoint.h (set_traceframe_number): Remove declaration.
8036 (make_cleanup_restore_traceframe_number): Likewise.
8037
9217e74e
YQ
80382014-03-22 Yao Qi <yao@codesourcery.com>
8039
8040 * remote.c (remote_read_bytes): Move code on reading from the
8041 remote stub to ...
8042 (remote_read_bytes_1): ... here. New function.
8043
8acf9577
YQ
80442014-03-22 Yao Qi <yao@codesourcery.com>
8045
8046 * ctf.c (ctf_xfer_partial): Check the return value of
8047 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
8048 return TARGET_XFER_UNAVAILABLE.
8049 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8050 * target.c (target_read_live_memory): Move it to remote.c.
8051 (memory_xfer_live_readonly_partial): Likewise.
8052 (memory_xfer_partial_1): Move some code to remote_read_bytes.
8053 * remote.c (target_read_live_memory): Moved from target.c.
8054 (memory_xfer_live_readonly_partial): Likewise.
8055 (remote_read_bytes): Factored out from
8056 memory_xfer_partial_1.
8057
feef67ab
DE
80582014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
8059
8060 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
8061 NULL pointer.
8062
b65dc60b
PA
80632014-03-21 Pedro Alves <palves@redhat.com>
8064
8065 * infrun.c (normal_stop): Extend comment.
8066
b4ab256d
HZ
80672014-03-21 Hui Zhu <hui@codesourcery.com>
8068 Pedro Alves <palves@redhat.com>
8069
8070 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
8071 static buffer.
8072 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
8073 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
8074 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
8075
deba7593
MR
80762014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
8077
8078 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
8079 `z' formatted output modifier.
8080
1bff71c3
SDJ
80812014-03-20 Tom Tromey <tromey@redhat.com>
8082 Sergio Durigan Junior <sergiodj@redhat.com>
8083
8084 * probe.c (parse_probes): Turn assert into an ordinary error.
8085 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
8086 exceptions when parsing probes. Rearrange the code for clarity.
8087
90e28950
TT
80882014-03-20 Tom Tromey <tromey@redhat.com>
8089
8090 PR gdb/14135
8091 * top.c (execute_command): Only dispatch events if the command
8092 started the target.
8093
beb460e8
PA
80942014-03-20 Tom Tromey <tromey@redhat.com>
8095
8096 PR cli/15718
8097 * infcall.c: Include event-top.h.
8098 (run_inferior_call): Call async_disable_stdin if needed.
8099
99619bea
PA
81002014-03-20 Pedro Alves <palves@redhat.com>
8101
8102 * infrun.c (prepare_to_proceed): Delete.
8103 (thread_still_needs_step_over): New function.
8104 (find_thread_needs_step_over): New function.
8105 (proceed): If the current thread needs a step-over, set its
8106 steping_over_breakpoint flag. Adjust to use
8107 find_thread_needs_step_over instead of prepare_to_proceed.
8108 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
8109 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
8110 breakpoint.
8111 (switch_back_to_stepped_thread): Step over breakpoints of all
8112 threads not the stepping thread, before switching back to the
8113 stepping thread.
8114
2adfaa28
PA
81152014-03-20 Pedro Alves <palves@redhat.com>
8116
8117 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
8118 extern.
8119 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
8120 * infrun.c (saved_singlestep_ptid)
8121 (stepping_past_singlestep_breakpoint): Delete.
8122 (resume): Remove stepping_past_singlestep_breakpoint handling.
8123 (proceed): Store the prev_pc of the stepping thread too.
8124 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
8125 singlestep_pc.
8126 (enum infwait_states): Delete infwait_thread_hop_state.
8127 (struct execution_control_state) <hit_singlestep_breakpoint>: New
8128 field.
8129 (handle_inferior_event): Adjust.
8130 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
8131 handling and the thread-hop code. Before removing single-step
8132 breakpoints, check whether the thread hit a single-step breakpoint
8133 of another thread. If it did, the trap is not a random signal.
8134 (switch_back_to_stepped_thread): If the event thread hit a
8135 single-step breakpoint, unblock it before switching to the
8136 stepping thread. Handle the case of the stepped thread having
8137 advanced already.
8138 (keep_going): Handle the case of the current thread moving past a
8139 single-step breakpoint.
8140
31e77af2
PA
81412014-03-20 Pedro Alves <palves@redhat.com>
8142
8143 PR breakpoints/7143
8144 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
8145 are being stepped over.
8146 (breakpoint_address_match): Make extern.
8147 * breakpoint.h (breakpoint_address_match): New declaration.
8148 * inferior.h (stepping_past_instruction_at): New declaration.
8149 * infrun.c (struct step_over_info): New type.
8150 (step_over_info): New global.
8151 (set_step_over_info, clear_step_over_info)
8152 (stepping_past_instruction_at): New functions.
8153 (handle_inferior_event): Clear the step-over info when
8154 trap_expected is cleared.
8155 (resume): Remove now stale comment.
8156 (clear_proceed_status): Clear step-over info.
8157 (proceed): Adjust step-over handling to set or clear the step-over
8158 info instead of removing all breakpoints.
8159 (handle_signal_stop): When setting up a thread-hop, don't remove
8160 breakpoints here.
8161 (stop_stepping): Clear step-over info.
8162 (keep_going): Adjust step-over handling to set or clear step-over
8163 info and then always inserting breakpoints, instead of removing
8164 all breakpoints when stepping over one.
8165
b9f437de
PA
81662014-03-20 Pedro Alves <palves@redhat.com>
8167
8168 * infrun.c (previous_inferior_ptid): Adjust comment.
8169 (deferred_step_ptid): Delete.
8170 (infrun_thread_ptid_changed, prepare_to_proceed)
8171 (init_wait_for_inferior): Adjust.
8172 (handle_signal_stop): Delete deferred_step_ptid handling.
8173
06c868a8
JK
81742014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
8175
8176 PR gdb/15358
8177 * defs.h (sync_quit_force_run): New declaration.
8178 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
8179 * event-top.c (async_sigterm_handler): New declaration.
8180 (async_sigterm_token): New variable.
8181 (async_init_signals): Create also async_sigterm_token.
8182 (async_sigterm_handler): New function.
8183 (sync_quit_force_run): New variable.
8184 (handle_sigterm): Replace quit_force call by other calls.
8185 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
8186
dea80df0
MR
81872014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
8188
8189 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
8190 offset into SPE pseudo registers.
8191
0c7e1a46
PA
81922014-03-18 Pedro Alves <palves@redhat.com>
8193
8194 PR gdb/13860
8195 * inferior.h (print_stop_event): Declare.
8196 * infrun.c (print_stop_event): New, factored out from ...
8197 (normal_stop): ... this.
8198 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
8199 of bpstat_print/print_stack_frame.
8200
9c1fcd01
TT
82012014-03-17 Tom Tromey <tromey@redhat.com>
8202
8203 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
8204
11aa919a
PMR
82052014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
8206
8207 * ada-lang.c (decode_constrained_packed_array): Perform a
8208 minimal coercion for reference with coerce_ref instead of
8209 ada_coerce_ref.
8210
d4ccb5e0
TG
82112014-03-17 Tristan Gingold <gingold@adacore.com>
8212
8213 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
8214 (darwin_solib_create_inferior_hook): Emit a warning if version
8215 is unhandled.
8216
49840f2a
UW
82172014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
8218
8219 * python/py-value.c (get_field_flag): Cast flag_name argument to
8220 PyObject_GetAttrString to support Python 2.4.
8221
ed4123e5
JK
82222014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8223
8224 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
8225 (Global Maintainers): Remove Jan Kratochvil.
8226
d6b64346
PA
82272014-03-14 Pedro Alves <palves@redhat.com>
8228
8229 * inferior.h (terminal_ours_for_output): Rename to ...
8230 (child_terminal_ours_for_output): ... this.
8231 (terminal_save_ours): Rename to ...
8232 (child_terminal_save_ours): ... this.
8233 (terminal_ours): Rename to ...
8234 (child_terminal_ours): ... this.
8235 (terminal_inferior): Rename to ...
8236 (child_terminal_inferior): ... this.
8237 (terminal_init_inferior): Rename to ...
8238 (child_terminal_init_inferior): ... this.
8239 (terminal_init_inferior_with_pgrp): Rename to ...
8240 (child_terminal_init_inferior_with_pgrp): ... this.
8241 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
8242 (child_terminal_init_with_pgrp): ... this.
8243 (terminal_save_ours): Rename to ...
8244 (child_terminal_save_ours): ... this.
8245 (terminal_init_inferior): Rename to ...
8246 (child_terminal_init): ... this. Adjust.
8247 (terminal_inferior): Rename to ...
8248 (child_terminal_inferior): ... this.
8249 (terminal_ours_for_output): Rename to ...
8250 (child_terminal_ours_for_output): ... this. Adjust.
8251 (terminal_ours): Rename to ...
8252 (child_terminal_ours): ... this.
8253 (terminal_ours_1): Rename to ...
8254 (child_terminal_ours_1): ... this. Adjust.
8255 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
8256 * windows-nat.c (do_initial_windows_stuff): Adjust.
8257 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
8258 (gnu_terminal_init): ... this. Adjust.
8259 (gnu_target): Adjust.
8260 * inf-child.c (inf_child_target): Adjust.
8261
5a1e8c7a
DE
82622014-03-13 Doug Evans <xdje42@gmail.com>
8263
8264 PR guile/16612
8265 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
8266 new eq?-hashtab.
8267
350e1a76
DE
82682014-03-13 Doug Evans <xdje42@gmail.com>
8269
8270 * value.c (record_latest_value): Call release_value_or_incref
8271 instead of release_value.
8272
a69900ae
PA
82732014-03-13 Pedro Alves <palves@redhat.com>
8274
8275 * procfs.c (procfs_target): Don't override to_shortname,
8276 to_longname or to_doc.
8277
5db9f0bd
PA
82782014-03-13 Pedro Alves <palves@redhat.com>
8279
8280 * inf-child.c (inf_child_open, inf_child_target): Don't mention
8281 Unix in user visible strings.
8282
5e3a2c38
SS
82832014-03-12 Stan Shebs <stan@codesourcery.com>
8284
8285 * gdbtypes.h: Annotate comments for Doxygen, add a page
8286 block comment with some general info.
8287
8bc2fe48
PA
82882014-03-12 Pedro Alves <palves@redhat.com>
8289
8290 * infcmd.c (prepare_execution_command): New function, factored out
8291 from several execution commands.
8292 (run_command_1, continue_command, step_1, jump_command)
8293 (signal_command, until_command, advance_command, finish_command)
8294 (attach_command): Use prepare_execution_command.
8295
638c5f49
OJ
82962014-03-12 Omair Javaid <omair.javaid@linaro.org>
8297
8298 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
8299 (MAX_BPTS): Define.
8300 (MAX_WPTS): Define.
8301 (struct arm_linux_thread_points): Removed.
8302 (struct arm_linux_process_info): New.
8303 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
8304 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
8305 (arm_linux_find_breakpoints_by_tid): Removed.
8306 (struct arch_lwp_info): New.
8307 (arm_linux_find_process_pid): New functions.
8308 (arm_linux_add_process): New functions.
8309 (arm_linux_process_info_get): New functions.
8310 (arm_linux_forget_process): New function.
8311 (arm_linux_get_debug_reg_state): New function.
8312 (struct update_registers_data): New.
8313 (update_registers_callback): New function.
8314 (arm_linux_insert_hw_breakpoint1): Updated.
8315 (arm_linux_remove_hw_breakpoint1): Updated.
8316 (arm_linux_insert_hw_breakpoint): Updated.
8317 (arm_linux_remove_hw_breakpoint): Updated.
8318 (arm_linux_insert_watchpoint): Updated.
8319 (arm_linux_remove_watchpoint): Updated.
8320 (arm_linux_new_thread): Updated.
8321 (arm_linux_prepare_to_resume): New function.
8322 (arm_linux_new_fork): New function.
8323 (_initialize_arm_linux_nat): Updated.
8324
6d03af93
PA
83252014-03-12 Pedro Alves <palves@redhat.com>
8326
8327 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
8328
b3ccfe11
TT
83292014-03-12 Tom Tromey <tromey@redhat.com>
8330
8331 * inf-child.c (return_zero): New function.
8332 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
8333 * aix-thread.c (aix_thread_inferior_created): New function.
8334 (aix_thread_attach): Remove.
8335 (init_aix_thread_ops): Don't set to_attach.
8336 (_initialize_aix_thread): Register inferior_created observer.
8337 * corelow.c (init_core_ops): Don't set to_attach or
8338 to_create_inferior.
8339 * exec.c (init_exec_ops): Don't set to_attach or
8340 to_create_inferior.
8341 * infcmd.c (run_command_1): Use find_run_target. Make direct
8342 target calls.
8343 (attach_command): Use find_attach_target. Make direct target
8344 calls.
8345 * record-btrace.c (init_record_btrace_ops): Don't set
8346 to_create_inferior.
8347 * record-full.c (record_full_can_async_p, record_full_is_async_p):
8348 Remove.
8349 (init_record_full_ops, init_record_full_core_ops): Update. Don't
8350 set to_create_inferior.
8351 * target.c (complete_target_initialization): Add assertion.
8352 (target_create_inferior): Remove.
8353 (find_default_attach, find_default_create_inferior): Remove.
8354 (find_attach_target, find_run_target): New functions.
8355 (find_default_is_async_p, find_default_can_async_p)
8356 (target_supports_non_stop, target_attach): Remove.
8357 (init_dummy_target): Don't set to_create_inferior or
8358 to_supports_non_stop.
8359 * target.h (struct target_ops) <to_attach>: Add comment. Remove
8360 TARGET_DEFAULT_FUNC.
8361 <to_create_inferior>: Add comment.
8362 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
8363 TARGET_DEFAULT_RETURN.
8364 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
8365 (find_attach_target, find_run_target): Declare.
8366 (target_create_inferior): Remove.
8367 (target_has_execution_1): Update comment.
8368 (target_supports_non_stop): Remove.
8369 * target-delegates.c: Rebuild.
8370
91f83b02
PA
83712014-03-12 Pedro Alves <palves@redhat.com>
8372
8373 * inf-child.h: Update comment to not mention Unix.
8374
f1aea813
PA
83752014-03-12 Pedro Alves <palves@redhat.com>
8376
8377 * inf-child.c: Update top comment to not mention Unix. Add
8378 generic comment describing how this target is meant to be used.
8379 (inf_child_post_attach, inf_child_post_startup_inferior)
8380 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
8381 Unix in comment.
8382
ee8e9165
PA
83832014-03-12 Pedro Alves <palves@redhat.com>
8384
8385 * nto-procfs.c: Include inf-child.h.
8386 (procfs_ops): Delete global.
8387 (procfs_can_run): Delete method.
8388 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
8389 target pointer instead of referencing procfs_ops.
8390 (procfs_prepare_to_store): Delete.
8391 (init_procfs_ops): Delete function.
8392 (procfs_target): New function, based on init_procfs_ops, but
8393 inherit inf_child_target.
8394 (_initialize_procfs): Use procfs_target.
8395
51a9c8c5
PA
83962014-03-12 Pedro Alves <palves@redhat.com>
8397
8398 * windows-nat.c: Include inf-child.h.
8399 (windows_ops): Delete global.
8400 (windows_open, windows_prepare_to_store, windows_can_run): Delete
8401 methods.
8402 (init_windows_ops): Delete function.
8403 (windows_target): New function, based on init_windows_ops, but
8404 inherit inf_child_target.
8405 (_initialize_windows_nat): Use windows_target. Install x86
8406 specific target methods here.
8407
c1966e26
DE
84082014-03-10 Doug Evans <xdje42@gmail.com>
8409
8410 * guile/guile.c (call_initialize_gdb_module): New function.
8411 (initialize_guile): Replace call to scm_init_guile with call to
8412 scm_with_guile.
8413
023db19c
JB
84142014-03-10 Joel Brobecker <brobecker@adacore.com>
8415
8416 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
8417 in call to TYPE_CODE macro.
8418
5ec18f2b
JG
84192014-03-10 Jerome Guitton <guitton@adacore.com>
8420
8668be63
JB
8421 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
8422 Resolve tagged types to full view.
5ec18f2b 8423
7d03f2eb
HZ
84242014-03-10 Hui Zhu <hui@codesourcery.com>
8425
8426 * target.h (target_insert_breakpoint): Remove "hardware" from its
8427 comments.
8428
c5164cbc
DE
84292014-03-07 Doug Evans <dje@google.com>
8430
8431 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
8432
c4a3fee2
DE
84332014-03-07 Doug Evans <dje@google.com>
8434
8435 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
8436 Remove unused local comp_dir_attr. Assert exactly one of
8437 stub_comp_unit_die, stub_comp_dir is non-NULL.
8438
3156469c
JB
84392014-03-07 Joel Brobecker <brobecker@adacore.com>
8440
8441 * target.h (complete_target_initialization, add_target):
8442 Add comment.
8443
c1a7b7c6
PA
84442014-03-07 Pedro Alves <palves@redhat.com>
8445
8446 * go32-nat.c: Include inf-child.h.
8447 (go32_ops): Delete global.
8448 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
8449 Delete methods.
8450 (go32_create_inferior): Push the passed in target pointer instead
8451 of referencing go32_ops.
8452 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
8453 (go32_target): New function, based on init_go32_ops, but inherit
8454 inf_child_target.
8455 (_initialize_go32_nat): Use go32_target. Move parts of
8456 init_go32_ops here.
8457
d3c1a85f
JB
84582014-03-06 Joel Brobecker <brobecker@adacore.com>
8459
8460 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
8461 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
8462 SYMBOL_VALUE_ADDRESS.
8463 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
8464
5fa1d40e
YQ
84652014-03-06 Yao Qi <yao@codesourcery.com>
8466
8467 * breakpoint.c (get_tracepoint_by_number): Remove argument
8468 optional_p. All callers updated. Adjust comments. Update
8469 output message.
8470 * breakpoint.h (get_tracepoint_by_number): Update declaration.
8471
0c13193f
YQ
84722014-03-06 Yao Qi <yao@codesourcery.com>
8473
8474 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
8475 early if get_number returns zero. Use 'p' instead of 'args'.
8476
2217da06
YQ
84772014-03-06 Yao Qi <yao@codesourcery.com>
8478
8479 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
8480 message.
8481
cc3da688
YQ
84822014-03-06 Yao Qi <yao@codesourcery.com>
8483
8484 PR breakpoints/16508
8485 * tracepoint.c (check_trace_running): New function.
8486 (trace_find_command): Move code to check_trace_running and
8487 call check_trace_running.
8488 (trace_find_pc_command): Likewise.
8489 (trace_find_tracepoint_command): Likewise.
8490 (trace_find_line_command): Likewise.
8491 (trace_find_range_command): Likewise.
8492 * tracepoint.h (check_trace_running): Likewise.
8493 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
8494
6a5f844b
YQ
84952014-03-06 Yao Qi <yao@codesourcery.com>
8496
8497 * target.h (struct target_ops) <to_traceframe_info>: Use
8498 TARGET_DEFAULT_NORETURN (tcomplain ()).
8499 * target-delegates.c: Regenerated.
8500
0f26cec1
PA
85012014-03-05 Pedro Alves <palves@redhat.com>
8502
8503 PR gdb/16575
8504 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
8505 void. Update comment.
8506 (dcache_xfer_memory): Delete.
8507 (dcache_read_memory_partial): New, based on the read bits of
8508 dcache_xfer_memory.
8509 (dcache_update): Add status parameter. Use ULONGEST for len, and
8510 adjust. Discard cache lines if the reason for the update was
8511 error.
8512 * dcache.h (dcache_xfer_memory): Delete declaration.
8513 (dcache_read_memory_partial): New declaration.
8514 (dcache_update): Update prototype.
8515 * target.c (raw_memory_xfer_partial): Update the dcache here.
8516 (memory_xfer_partial_1): Don't handle dcache writes here.
8517
b2b255bd
MF
85182014-03-05 Mike Frysinger <vapier@gentoo.org>
8519
8520 * remote-sim.c (gdbsim_load): Add const to prog.
8521
5d9cf8a4
TT
85222014-03-03 Tom Tromey <tromey@redhat.com>
8523
8524 * elfread.c (probe_key): Change to bfd_data.
8525 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
8526 now per-BFD, not per-objfile.
8527 * stap-probe.c (stap_probe_destroy): Update comment.
8528 (handle_stap_probe): Allocate on the per-BFD obstack.
8529
729662a5
TT
85302014-03-03 Tom Tromey <tromey@redhat.com>
8531
8532 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
8533 * breakpoint.c (create_longjmp_master_breakpoint): Use
8534 get_probe_address.
8535 (add_location_to_breakpoint, bkpt_probe_insert_location)
8536 (bkpt_probe_remove_location): Update.
8537 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
8538 * elfread.c (elf_symfile_relocate_probe): Remove.
8539 (elf_probe_fns): Update.
8540 (insert_exception_resume_breakpoint): Change type of "probe"
8541 parameter to bound_probe.
8542 (check_exception_resume): Update.
8543 * objfiles.c (objfile_relocate1): Don't relocate probes.
8544 * probe.c (bound_probe_s): New typedef.
8545 (parse_probes): Use get_probe_address. Set sal's objfile.
8546 (find_probe_by_pc): Return a bound_probe.
8547 (collect_probes): Return a VEC(bound_probe_s).
8548 (compare_probes): Update.
8549 (gen_ui_out_table_header_info): Change type of "probes"
8550 parameter. Update.
8551 (info_probes_for_ops): Update.
8552 (get_probe_address): New function.
8553 (probe_safe_evaluate_at_pc): Update.
8554 * probe.h (struct probe_ops) <get_probe_address>: New field.
8555 <set_semaphore, clear_semaphore>: Add objfile parameter.
8556 (struct probe) <objfile>: Remove field.
8557 <arch>: New field.
8558 <address>: Update comment.
8559 (struct bound_probe): New.
8560 (find_probe_by_pc): Return a bound_probe.
8561 (get_probe_address): Declare.
8562 * solib-svr4.c (struct probe_and_action) <address>: New field.
8563 (hash_probe_and_action, equal_probe_and_action): Update.
8564 (register_solib_event_probe): Add address parameter.
8565 (solib_event_probe_at): Update.
8566 (svr4_create_probe_breakpoints): Add objfile parameter. Use
8567 get_probe_address.
8568 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
8569 (stap_get_probe_address): New function.
8570 (stap_can_evaluate_probe_arguments, compute_probe_arg)
8571 (compile_probe_arg): Update.
8572 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
8573 address.
8574 (handle_stap_probe): Don't relocate the probe.
8575 (stap_relocate): Remove.
8576 (stap_gen_info_probes_table_values): Update.
8577 (stap_probe_ops): Remove stap_relocate.
8578 * symfile-debug.c (debug_sym_relocate_probe): Remove.
8579 (debug_sym_probe_fns): Update.
8580 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
8581 * symtab.c (init_sal): Use memset.
8582 * symtab.h (struct symtab_and_line) <objfile>: New field.
8583 * tracepoint.c (start_tracing, stop_tracing): Update.
8584
ff887920
TT
85852014-03-03 Tom Tromey <tromey@redhat.com>
8586
8587 * probe.h (parse_probes, find_probe_by_pc)
8588 (find_probes_in_objfile): Fix comments.
8589
f0407826
DE
85902014-03-02 Doug Evans <xdje42@gmail.com>
8591
8592 * infrun.c (handle_signal_stop): Replace test for
8593 TARGET_WAITKIND_STOPPED with an assert.
8594
35e6a711
DE
85952014-03-02 Doug Evans <xdje42@gmail.com>
8596
8597 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
8598
667f9d0b
DE
85992014-03-02 Doug Evans <xdje42@gmail.com>
8600
8601 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
8602
dc92ace0
MK
86032014-03-01 Mark Kettenis <kettenis@gnu.org>
8604
8605 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
8606
a900370f
MK
86072014-03-01 Mark Kettenis <kettenis@gnu.org>
8608
8609 * i386obsd-nat.c: Include "obsd-nat.h".
8610 (_initialize_i386obsd_nat): Call obsd_add_target instead of
8611 add_target.
8612 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8613
b72a7981
MK
86142014-03-01 Mark Kettenis <kettenis@gnu.org>
8615
8616 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
8617
96c70aba
MK
86182014-03-01 Mark Kettenis <kettenis@gnu.org>
8619
8620 * mips64obsd-nat.c: Include "obsd-nath".
8621 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
8622 add_target
8623 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8624
874a80af
MK
86252014-03-01 Mark Kettenis <kettenis@gnu.org>
8626
8fd408f1
MK
8627 * amd64obsd-nat.c: Include "obsd-nat,h.
8628 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
8629 add_target.
874a80af
MK
8630 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8631
9cf95373
SC
86322014-02-28 Siva Chandra Reddy <sivachandra@google.com>
8633
8634 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
8635 (find_overload_match): Update call to find_oload_champ.
8636 (find_oload_champ_namespace_loop): Likewise
8637
863e4da4
MK
86382014-02-28 Mark Kettenis <kettenis@gnu.org>
8639
025cac40
MK
8640 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
8641
1ed586ce
MK
8642 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
8643 * config/sparc/obsd64.mh: New file.
8644 * sparc64obsd-nat.c: New file.
8645
863e4da4
MK
8646 * obsd-nat.h: New file.
8647 * obsd-nat.c: New file.
8648 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
8649 (ALLDEPFILES): Add obsd-nat.c.
8650
89de4da4
TT
86512014-02-28 Tom Tromey <tromey@redhat.com>
8652
8653 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
8654 * cli-out.h (cli_ui_out_impl): Now const.
8655 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
8656 * ui-out.c (struct ui_out) <impl>: Now const.
8657 (default_ui_out_impl): Now const.
8658 (ui_out_new): Make 'impl' parameter const.
8659 * ui-out.h (ui_out_new): Update.
8660
c725e7b6
MK
86612014-02-27 Mark Kettenis <kettenis@gnu.org>
8662
8663 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
8664
670b46b3
MK
86652014-02-27 Mark Kettenis <kettenis@gnu.org>
8666
8667 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
8668
c91550fc
JK
86692014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
8670
8671 Additional PR 8882 fix.
8672 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
8673
2fa0369e
PA
86742014-02-27 Pedro Alves <palves@redhat.com>
8675
8676 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
8677 isn't set.
8678
d632a097
PA
86792014-02-27 Pedro Alves <palves@redhat.com>
8680
8681 PR 12702
8682 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
8683 * nat/linux-waitpid.c: Include string.h.
8684 (status_to_str): Moved here and made extern.
8685 * nat/linux-waitpid.h (status_to_str): New declaration.
8686
2ebd5a35
HZ
86872014-02-27 Hui Zhu <hui@codesourcery.com>
8688
8689 PR 12702
8690 * infrun.c (ptid_match): Move ...
8691 * common/ptid.c (ptid_match): ... here.
8692 * inferior.h (ptid_match): Move ...
8693 * common/ptid.h (ptid_match): ... here.
8694
3cdd631f
MK
86952014-02-27 Mark Kettenis <kettenis@gnu.org>
8696
8697 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
8698 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
8699 gdb_target_obs.
8700
bee30a64
MK
87012014-02-27 Mark Kettenis <kettenis@gnu.org>
8702
8703 * obsd-tdep.c (obsd_auxv_parse): New function.
8704 (obsd_init_abi): Set auxv_parse.
27a48a92
MK
8705
8706 * gdbarch.sh (auxv_parse): New.
8707 * gdbarch.h: Regenerated.
8708 * gdbarch.c: Regenerated.
8709 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
8710
7a5a839f
LC
87112014-02-26 Ludovic Courtès <ludo@gnu.org>
8712
8713 * guile/scm-value.c (gdbscm_history_append_x): New function.
8714 (value_functions): Add it.
8715
31aa7e4e
JB
87162014-02-27 Joel Brobecker <brobecker@adacore.com>
8717
8718 * dwarf2read.c (attr_value_as_address): New function.
8719 (dwarf2_find_base_address, read_call_site_scope): Use
8720 attr_value_as_address in place of DW_ADDR.
8721 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
8722 the low and high addresses. Slight rework of the handling
8723 of the high pc being a constant form, and limit it to
8724 DWARF verson 4 or higher.
8725 (dwarf2_record_block_ranges): Likewise.
8726 (read_partial_die): Likewise.
8727 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
8728
9b333ba3
TT
87292014-02-26 Tom Tromey <tromey@redhat.com>
8730
8731 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
8732
5f6cac40
TT
87332014-02-26 Tom Tromey <tromey@redhat.com>
8734
8735 * elfread.c (elf_read_minimal_symbols): Return early if
8736 minimal symbols have already been read. Add "ei" parameter.
8737 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
8738 * minsyms.c (prim_record_minimal_symbol_full): Update.
8739 * objfiles.h (struct objstats) <n_minsyms>: Move...
8740 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
8741 * symmisc.c (print_objfile_statistics): Update.
8742
2750ef27
TT
87432014-02-26 Tom Tromey <tromey@redhat.com>
8744
8745 * elfread.c (elf_read_minimal_symbols): New function, from
8746 elf_symfile_read.
8747 (elf_symfile_read): Call it.
8748
34643a32
TT
87492014-02-26 Tom Tromey <tromey@redhat.com>
8750
8751 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
8752 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
8753 (lookup_minimal_symbol_solib_trampoline)
8754 (lookup_minimal_symbol_by_pc_section_1)
8755 (lookup_minimal_symbol_and_objfile): Update.
8756 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
8757 Don't allocate a minimal symbol if minsyms have already been read.
8758 (build_minimal_symbol_hash_tables): Update.
8759 (install_minimal_symbols): Do nothing if minsyms already read.
8760 Use the per-BFD obstack.
8761 (terminate_minimal_symbol_table): Use the per-BFD obstack.
8762 * objfiles.c (allocate_objfile): Call
8763 terminate_minimal_symbol_table later.
8764 (have_minimal_symbols): Update.
8765 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
8766 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
8767 Move from struct objfile.
8768 <minsyms_read>: New field.
8769 (struct objfile) <msymbols, minimal_symbol_count,
8770 msymbol_hash, msymbol_demangled_hash>: Move.
8771 (ALL_OBJFILE_MSYMBOLS): Update.
8772 * symfile.c (read_symbols): Set minsyms_read.
8773 (reread_symbols): Update.
8774 * symmisc.c (dump_objfile, dump_msymbols): Update.
8775
2273f0ac
TT
87762014-02-26 Tom Tromey <tromey@redhat.com>
8777
8778 * minsyms.c (msymbols_sort): Remove.
8779 * minsyms.h (msymbols_sort): Remove.
8780 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
8781 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
8782 * elfread.c (elf_symtab_read): Don't add section offsets.
8783 * xcoffread.c (record_minimal_symbol): Don't add section offset
8784 to minimal symbol address.
8785 * somread.c (text_offset, data_offset): Remove.
8786 (som_symtab_read): Don't add section offsets to minimal symbol
8787 addresses.
8788 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
8789 Don't add section offsets to minimal symbols.
8790 * coffread.c (coff_symtab_read): Don't add section offsets
8791 to minimal symbol addresses.
8792 * machoread.c (macho_symtab_add_minsym): Don't add section offset
8793 to minimal symbol addresses.
8794 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
8795 section offset to minimal symbol addresses.
8796 * mdebugread.c (parse_partial_symbols): Don't add section
8797 offset to minimal symbol addresses.
8798 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
8799 offset to minimal symbol addresses.
8800
77e371c0
TT
88012014-02-26 Tom Tromey <tromey@redhat.com>
8802
8803 * ada-lang.c (ada_main_name): Update.
8804 (ada_add_standard_exceptions): Update.
8805 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
8806 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8807 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
8808 * auxv.c (ld_so_xfer_auxv): Update.
8809 * avr-tdep.c (avr_scan_prologue): Update.
8810 * ax-gdb.c (gen_var_ref): Update.
8811 * blockframe.c (get_pc_function_start)
8812 (find_pc_partial_function_gnu_ifunc): Update.
8813 * breakpoint.c (create_overlay_event_breakpoint)
8814 (create_longjmp_master_breakpoint)
8815 (create_std_terminate_master_breakpoint)
8816 (create_exception_master_breakpoint): Update.
8817 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8818 * c-valprint.c (c_val_print): Update.
8819 * coff-pe-read.c (add_pe_forwarded_sym): Update.
8820 * common/agent.c (agent_look_up_symbols): Update.
8821 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
8822 * dwarf2loc.c (call_site_to_target_addr): Update.
8823 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
8824 * elfread.c (elf_gnu_ifunc_record_cache)
8825 (elf_gnu_ifunc_resolve_by_got): Update.
8826 * findvar.c (default_read_var_value): Update.
8827 * frame.c (inside_main_func): Update.
8828 * frv-tdep.c (frv_frame_this_id): Update.
8829 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8830 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
8831 Update.
8832 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
8833 (hppa_hpux_find_dummy_bpaddr): Update.
8834 * hppa-tdep.c (hppa_symbol_address): Update.
8835 * infcmd.c (until_next_command): Update.
8836 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
8837 Update.
8838 * linespec.c (minsym_found, add_minsym): Update.
8839 * linux-nat.c (get_signo): Update.
8840 * linux-thread-db.c (inferior_has_bug): Update.
8841 * m32c-tdep.c (m32c_return_value)
8842 (m32c_m16c_address_to_pointer): Update.
8843 * m32r-tdep.c (m32r_frame_this_id): Update.
8844 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8845 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8846 * maint.c (maintenance_translate_address): Update.
8847 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
8848 (frob_address): New function.
8849 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
8850 frob_address. Rename parameter to "pc_in".
8851 (compare_minimal_symbols, compact_minimal_symbols): Use raw
8852 addresses.
8853 (find_solib_trampoline_target, minimal_symbol_upper_bound):
8854 Update.
8855 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8856 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
8857 * objc-lang.c (find_objc_msgsend): Update.
8858 * objfiles.c (objfile_relocate1): Update.
8859 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8860 * p-valprint.c (pascal_val_print): Update.
8861 * parse.c (write_exp_msymbol): Update.
8862 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
8863 (ppc_elfv2_skip_entrypoint): Update.
8864 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8865 * printcmd.c (build_address_symbolic, msym_info)
8866 (address_info): Update.
8867 * proc-service.c (ps_pglobal_lookup): Update.
8868 * psymtab.c (find_pc_sect_psymtab_closer)
8869 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
8870 Change msymbol parameter to bound_minimal_symbol.
8871 * ravenscar-thread.c (get_running_thread_id): Update.
8872 * remote.c (remote_check_symbols): Update.
8873 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
8874 address.
8875 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8876 * solib-dsbt.c (lm_base): Update.
8877 * solib-frv.c (lm_base, main_got): Update.
8878 * solib-irix.c (locate_base): Update.
8879 * solib-som.c (som_solib_create_inferior_hook)
8880 (link_map_start): Update.
8881 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
8882 * solib-svr4.c (elf_locate_base, enable_break): Update.
8883 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
8884 (flush_ea_cache): Update.
8885 * stabsread.c (define_symbol, scan_file_globals): Update.
8886 * stack.c (find_frame_funname): Update.
8887 * symfile-debug.c (debug_qf_expand_symtabs_matching)
8888 (debug_qf_find_pc_sect_symtab): Update.
8889 * symfile.c (simple_read_overlay_table)
8890 (simple_overlay_update): Update.
8891 * symfile.h (struct quick_symbol_functions)
8892 <find_pc_sect_symtab>: Change type of msymbol to
8893 bound_minimal_symbol.
8894 * symmisc.c (dump_msymbols): Update.
8895 * symtab.c (find_pc_sect_symtab_via_partial)
8896 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
8897 (search_symbols, print_msymbol_info): Update.
8898 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
8899 (MSYMBOL_VALUE_ADDRESS): Redefine.
8900 (BMSYMBOL_VALUE_ADDRESS): New macro.
8901 * tracepoint.c (scope_info): Update.
8902 * tui/tui-disasm.c (tui_find_disassembly_address)
8903 (tui_get_begin_asm_address): Update.
8904 * valops.c (find_function_in_inferior): Update.
8905 * value.c (value_static_field, value_fn_field): Update.
8906
3b7344d5
TT
89072014-02-26 Tom Tromey <tromey@redhat.com>
8908
8909 * ada-lang.c (ada_update_initial_language): Update.
8910 (ada_main_name, ada_has_this_exception_support): Update.
8911 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
8912 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8913 * arm-tdep.c (arm_skip_stub): Update.
8914 * auxv.c (ld_so_xfer_auxv): Update.
8915 * avr-tdep.c (avr_scan_prologue): Update.
8916 * ax-gdb.c (gen_var_ref): Update.
8917 * breakpoint.c (struct breakpoint_objfile_data)
8918 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
8919 type to bound_minimal_symbol.
8920 (create_overlay_event_breakpoint)
8921 (create_longjmp_master_breakpoint)
8922 (create_std_terminate_master_breakpoint)
8923 (create_exception_master_breakpoint): Update.
8924 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8925 * c-exp.y (classify_name): Update.
8926 * coffread.c (coff_symfile_read): Update.
8927 * common/agent.c (agent_look_up_symbols): Update.
8928 * d-lang.c (d_main_name): Update.
8929 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
8930 * dec-thread.c (enable_dec_thread): Update.
8931 * dwarf2loc.c (call_site_to_target_addr): Update.
8932 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
8933 * eval.c (evaluate_subexp_standard): Update.
8934 * findvar.c (struct minsym_lookup_data) <result>: Change type
8935 to bound_minimal_symbol.
8936 <objfile>: Remove.
8937 (minsym_lookup_iterator_cb, default_read_var_value): Update.
8938 * frame.c (inside_main_func): Update.
8939 * frv-tdep.c (frv_frame_this_id): Update.
8940 * gcore.c (call_target_sbrk): Update.
8941 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8942 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
8943 Update.
8944 * go-lang.c (go_main_name): Update.
8945 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
8946 (hppa_hpux_find_import_stub_for_addr): Update.
8947 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
8948 Update. Change return type.
8949 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
8950 type.
8951 * jit.c (jit_breakpoint_re_set_internal): Update.
8952 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
8953 Update.
8954 * linux-nat.c (get_signo): Update.
8955 * linux-thread-db.c (inferior_has_bug): Update
8956 * m32c-tdep.c (m32c_return_value)
8957 (m32c_m16c_address_to_pointer): Update.
8958 * m32r-tdep.c (m32r_frame_this_id): Update.
8959 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8960 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8961 * minsyms.c (lookup_minimal_symbol_internal): Rename to
8962 lookup_minimal_symbol. Change return type.
8963 (lookup_minimal_symbol): Remove.
8964 (lookup_bound_minimal_symbol): Update.
8965 (lookup_minimal_symbol_text): Change return type.
8966 (lookup_minimal_symbol_solib_trampoline): Change return type.
8967 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
8968 (lookup_minimal_symbol_solib_trampoline): Change return type.
8969 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8970 * objc-lang.c (lookup_objc_class, lookup_child_selector)
8971 (value_nsstring, find_imps): Update.
8972 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8973 * p-lang.c (pascal_main_name): Update.
8974 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
8975 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8976 * proc-service.c (ps_pglobal_lookup): Update.
8977 * ravenscar-thread.c (get_running_thread_msymbol): Change
8978 return type.
8979 (has_ravenscar_runtime, get_running_thread_id): Update.
8980 * remote.c (remote_check_symbols): Update.
8981 * sol-thread.c (ps_pglobal_lookup): Update.
8982 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8983 * solib-dsbt.c (lm_base): Update.
8984 * solib-frv.c (lm_base, frv_relocate_section_addresses):
8985 Update.
8986 * solib-irix.c (locate_base): Update.
8987 * solib-som.c (som_solib_create_inferior_hook)
8988 (som_solib_desire_dynamic_linker_symbols, link_map_start):
8989 Update.
8990 * solib-spu.c (spu_enable_break): Update.
8991 * solib-svr4.c (elf_locate_base, enable_break): Update.
8992 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
8993 (flush_ea_cache): Update.
8994 * stabsread.c (define_symbol): Update.
8995 * symfile.c (simple_read_overlay_table): Update.
8996 * symtab.c (find_pc_sect_line): Update.
8997 * tracepoint.c (scope_info): Update.
8998 * tui-disasm.c (tui_get_begin_asm_address): Update.
8999 * value.c (value_static_field): Update.
9000
40c1a007
TT
90012014-02-26 Tom Tromey <tromey@redhat.com>
9002
9003 * minsyms.c (prim_record_minimal_symbol_full): Use
9004 SET_MSYMBOL_VALUE_ADDRESS.
9005 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
9006 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
9007 SET_MSYMBOL_VALUE_ADDRESS.
9008 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
9009 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
9010
efd66ac6
TT
90112014-02-26 Tom Tromey <tromey@redhat.com>
9012
9013 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
9014 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
9015 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
9016 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
9017 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
9018 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
9019 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
9020 * ada-lang.c (ada_main_name): Update.
9021 (ada_lookup_simple_minsym): Update.
9022 (ada_make_symbol_completion_list): Update.
9023 (ada_add_standard_exceptions): Update.
9024 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
9025 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9026 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
9027 * arm-tdep.c (skip_prologue_function): Update.
9028 (arm_skip_stack_protector, arm_skip_stub): Update.
9029 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
9030 (arm_wince_skip_main_prologue): Update.
9031 * auxv.c (ld_so_xfer_auxv): Update.
9032 * avr-tdep.c (avr_scan_prologue): Update.
9033 * ax-gdb.c (gen_var_ref): Update.
9034 * block.c (call_site_for_pc): Update.
9035 * blockframe.c (get_pc_function_start): Update.
9036 (find_pc_partial_function_gnu_ifunc): Update.
9037 * breakpoint.c (create_overlay_event_breakpoint): Update.
9038 (create_longjmp_master_breakpoint): Update.
9039 (create_std_terminate_master_breakpoint): Update.
9040 (create_exception_master_breakpoint): Update.
9041 (resolve_sal_pc): Update.
9042 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9043 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
9044 Update.
9045 * c-valprint.c (c_val_print): Update.
9046 * coff-pe-read.c (add_pe_forwarded_sym): Update.
9047 * coffread.c (coff_symfile_read): Update.
9048 * common/agent.c (agent_look_up_symbols): Update.
9049 * dbxread.c (find_stab_function_addr): Update.
9050 (end_psymtab): Update.
9051 * dwarf2loc.c (call_site_to_target_addr): Update.
9052 (func_verify_no_selftailcall): Update.
9053 (tailcall_dump): Update.
9054 (call_site_find_chain_1): Update.
9055 (dwarf_expr_reg_to_entry_parameter): Update.
9056 * elfread.c (elf_gnu_ifunc_record_cache): Update.
9057 (elf_gnu_ifunc_resolve_by_got): Update.
9058 * f-valprint.c (info_common_command): Update.
9059 * findvar.c (read_var_value): Update.
9060 * frame.c (get_prev_frame_1): Update.
9061 (inside_main_func): Update.
9062 * frv-tdep.c (frv_skip_main_prologue): Update.
9063 (frv_frame_this_id): Update.
9064 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9065 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
9066 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
9067 (gnuv3_skip_trampoline): Update.
9068 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
9069 (hppa64_hpux_in_solib_call_trampoline): Update.
9070 (hppa_hpux_skip_trampoline_code): Update.
9071 (hppa64_hpux_search_dummy_call_sequence): Update.
9072 (hppa_hpux_find_import_stub_for_addr): Update.
9073 (hppa_hpux_find_dummy_bpaddr): Update.
9074 * hppa-tdep.c (hppa_symbol_address)
9075 (hppa_lookup_stub_minimal_symbol): Update.
9076 * i386-tdep.c (i386_skip_main_prologue): Update.
9077 (i386_pe_skip_trampoline_code): Update.
9078 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
9079 * infcall.c (get_function_name): Update.
9080 * infcmd.c (until_next_command): Update.
9081 * jit.c (jit_breakpoint_re_set_internal): Update.
9082 (jit_inferior_init): Update.
9083 * linespec.c (minsym_found): Update.
9084 (add_minsym): Update.
9085 * linux-fork.c (info_checkpoints_command): Update.
9086 * linux-nat.c (get_signo): Update.
9087 * linux-thread-db.c (inferior_has_bug): Update.
9088 * m32c-tdep.c (m32c_return_value): Update.
9089 (m32c_m16c_address_to_pointer): Update.
9090 (m32c_m16c_pointer_to_address): Update.
9091 * m32r-tdep.c (m32r_frame_this_id): Update.
9092 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9093 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9094 * maint.c (maintenance_translate_address): Update.
9095 * minsyms.c (add_minsym_to_hash_table): Update.
9096 (add_minsym_to_demangled_hash_table): Update.
9097 (msymbol_objfile): Update.
9098 (lookup_minimal_symbol): Update.
9099 (iterate_over_minimal_symbols): Update.
9100 (lookup_minimal_symbol_text): Update.
9101 (lookup_minimal_symbol_by_pc_name): Update.
9102 (lookup_minimal_symbol_solib_trampoline): Update.
9103 (lookup_minimal_symbol_by_pc_section_1): Update.
9104 (lookup_minimal_symbol_and_objfile): Update.
9105 (prim_record_minimal_symbol_full): Update.
9106 (compare_minimal_symbols): Update.
9107 (compact_minimal_symbols): Update.
9108 (build_minimal_symbol_hash_tables): Update.
9109 (install_minimal_symbols): Update.
9110 (terminate_minimal_symbol_table): Update.
9111 (find_solib_trampoline_target): Update.
9112 (minimal_symbol_upper_bound): Update.
9113 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9114 * mips-tdep.c (mips_stub_frame_sniffer): Update.
9115 (mips_skip_pic_trampoline_code): Update.
9116 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
9117 * objc-lang.c (selectors_info): Update.
9118 (classes_info): Update.
9119 (find_methods): Update.
9120 (find_imps): Update.
9121 (find_objc_msgsend): Update.
9122 * objfiles.c (objfile_relocate1): Update.
9123 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
9124 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9125 * p-valprint.c (pascal_val_print): Update.
9126 * parse.c (write_exp_msymbol): Update.
9127 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
9128 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
9129 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9130 * printcmd.c (build_address_symbolic): Update.
9131 (sym_info): Update.
9132 (address_info): Update.
9133 * proc-service.c (ps_pglobal_lookup): Update.
9134 * psymtab.c (find_pc_sect_psymtab_closer): Update.
9135 (find_pc_sect_psymtab): Update.
9136 * python/py-framefilter.c (py_print_frame): Update.
9137 * ravenscar-thread.c (get_running_thread_id): Update.
9138 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
9139 Update.
9140 * remote.c (remote_check_symbols): Update.
9141 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
9142 (rs6000_skip_trampoline_code): Update.
9143 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
9144 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9145 * solib-dsbt.c (lm_base): Update.
9146 * solib-frv.c (lm_base): Update.
9147 (main_got): Update.
9148 * solib-irix.c (locate_base): Update.
9149 * solib-som.c (som_solib_create_inferior_hook): Update.
9150 (som_solib_desire_dynamic_linker_symbols): Update.
9151 (link_map_start): Update.
9152 * solib-spu.c (spu_enable_break): Update.
9153 (ocl_enable_break): Update.
9154 * solib-svr4.c (elf_locate_base): Update.
9155 (enable_break): Update.
9156 * spu-tdep.c (spu_get_overlay_table): Update.
9157 (spu_catch_start): Update.
9158 (flush_ea_cache): Update.
9159 * stabsread.c (define_symbol): Update.
9160 (scan_file_globals): Update.
9161 * stack.c (find_frame_funname): Update.
9162 (frame_info): Update.
9163 * symfile.c (simple_read_overlay_table): Update.
9164 (simple_overlay_update): Update.
9165 * symmisc.c (dump_msymbols): Update.
9166 * symtab.c (fixup_section): Update.
9167 (find_pc_sect_line): Update.
9168 (skip_prologue_sal): Update.
9169 (search_symbols): Update.
9170 (print_msymbol_info): Update.
9171 (rbreak_command): Update.
9172 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
9173 (completion_list_objc_symbol): Update.
9174 (default_make_symbol_completion_list_break_on): Update.
9175 * tracepoint.c (scope_info): Update.
9176 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
9177 (tui_get_begin_asm_address): Update.
9178 * valops.c (find_function_in_inferior): Update.
9179 * value.c (value_static_field): Update.
9180 (value_fn_field): Update.
9181
50e65b17
TT
91822014-02-26 Tom Tromey <tromey@redhat.com>
9183
9184 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
9185 bound minimal symbols. Move code that knows about minsym
9186 table layout...
9187 * minsyms.c (minimal_symbol_upper_bound): ... here. New
9188 function.
9189 * minsyms.h (minimal_symbol_upper_bound): Declare.
9190 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
9191 minimal_symbol_upper_bound.
9192
1b588015
JB
91932014-02-27 Joel Brobecker <brobecker@adacore.com>
9194
9195 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
9196 Use the type's name if its basic type does not have a tag.
9197
dbb9c2b1
JB
91982014-02-27 Joel Brobecker <brobecker@adacore.com>
9199
9200 * dwarf2read.c (read_subrange_type): Add comment.
9201
55426c9d
JB
92022014-02-27 Joel Brobecker <brobecker@adacore.com>
9203
9204 * dwarf2read.c (update_enumeration_type_from_children): New
9205 function, mostly extracted from process_structure_scope.
9206 (read_enumeration_type): Call update_enumeration_type_from_children.
9207 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
9208 and flag_flag_enum fields.
9209
f2fce0ca
PA
92102014-02-26 Pedro Alves <palves@redhat.com>
9211
9212 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
9213 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
9214 to_xfer_partial method.
9215
7a44e40e
PA
92162014-02-26 Pedro Alves <palves@redhat.com>
9217
9218 * target.c (complete_target_initialization): Don't install
9219 default_xfer_partial as to_xfer_partial hook.
9220 (nomemory): Delete.
9221 (update_current_target): Don't INHERIT nor de_fault
9222 deprecated_xfer_memory. Delete de_fault macro.
9223 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
9224 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
9225 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
9226 field.
9227
bd265cd0
PA
92282014-02-26 Pedro Alves <palves@redhat.com>
9229
9230 * go32-nat.c (my_write_child): New function.
9231 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
9232 (go32_xfer_partial): New function.
9233 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
9234 Instead install a to_xfer_partial hook.
9235
9d46c4e5
PA
92362014-02-26 Pedro Alves <palves@redhat.com>
9237
9238 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
9239 to_xfer_partial helper. Rewrite.
9240 (procfs_xfer_partial): New function.
9241 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
9242 Install a to_xfer_partial hook.
9243
a1583b1f
PA
92442014-02-26 Pedro Alves <palves@redhat.com>
9245
9246 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
9247 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
9248 (m32r_xfer_partial): New function.
9249 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
9250 Install a to_xfer_partial hook.
9251
6df1b29f
PA
92522014-02-26 Pedro Alves <palves@redhat.com>
9253
9254 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
9255 helper.
9256 (mips_xfer_partial): New function.
9257 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
9258 hook. Install a to_xfer_partial hook.
9259
dc53a7ad
JB
92602014-02-26 Joel Brobecker <brobecker@adacore.com>
9261
9262 * gdbtypes.h (create_array_type_with_stride): Add declaration.
9263 * gdbtypes.c (create_array_type_with_stride): New function,
9264 renaming create_array_type, but with an added parameter
9265 called "bit_stride".
9266 (create_array_type): Re-implement using
9267 create_array_type_with_stride.
9268 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
9269 and DW_AT_bit_stride attributes.
9270
12ab52e9
PA
92712014-02-26 Pedro Alves <palves@redhat.com>
9272
9273 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
9274 task-specific breakpoints.
9275
d16461ae
PA
92762014-02-25 Pedro Alves <palves@redhat.com>
9277
9278 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
9279 handling of object == TARGET_OBJECT_UNWIND_TABLE.
9280
a8b16220
SS
92812014-02-25 Stan Shebs <stan@codesourcery.com>
9282
9283 * defs.h: Annotate comments for Doxygen.
9284
b9e795ee
TT
92852014-02-25 Tom Tromey <tromey@redhat.com>
9286
9287 * target.h (target_ignore): Don't declare.
9288 * target.c (target_ignore): Remove.
9289
849c862e
JK
92902014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
9291
9292 PR gdb/16626
9293 * auto-load.c (auto_load_objfile_script_1): Change filename to
9294 debugfile.
9295
475109d8
JB
92962014-02-25 Joel Brobecker <brobecker@adacore.com>
9297
9298 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
9299 documentation. Adjust prototype to match the target_ops
9300 to_xfer_partial method. Adjust implementation accordingly.
9301
e186c3bd
HZ
93022014-02-25 Hui Zhu <hui@codesourcery.com>
9303
9304 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
9305 to_traceframe_info.
9306
6d451942
KB
93072014-02-25 Kevin Buettner <kevinb@redhat.com>
9308
041ab8b4 9309 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
6d451942
KB
9310 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
9311 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
9312 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
9313 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
9314 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
9315 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
9316 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
9317 New constants.
9318 (rl78_register_type): Use a data pointer type for SP and
9319 new pseudo registers mentioned above. Use a 16 bit integer
9320 type for all other register pairs.
9321 (rl78_register_name, rl78_g10_register_name): Update for
9322 new pseudo registers.
9323 (rl78_pseudo_register_read): Likewise.
9324 (rl78_pseudo_register_write): Likewise.
9325 (rl78_dwarf_reg_to_regnum): Return register numbers representing
9326 to the newly added pseudo registers.
9327
eddf0bae
DE
93282014-02-24 Doug Evans <dje@google.com>
9329
9330 * value.c (record_latest_value): Fix comment.
9331 * printcmd.c (print_command_1): Remove code to handle -1 return from
9332 record_latest_value.
9333
e96027e0
PA
93342014-02-24 Pedro Alves <palves@redhat.com>
9335
9336 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
9337 deprecated_xfer_memory hook.
9338 (procfs_xfer_partial): Call procfs_xfer_memory instead
9339 of the deprecated_xfer_memory target hook.
9340 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
9341 helper.
9342
0837c976
YZ
93432014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
9344
9345 * windows-nat.c (windows_xfer_shared_libraries): Return
9346 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
9347 requested object is TARGET_OBJECT_LIBRARIES.
9348
bc113b4e
YQ
93492014-02-24 Yao Qi <yao@codesourcery.com>
9350
9351 * target.h (enum target_xfer_status)
9352 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
9353 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
9354 explicitly. New.
9355 * corefile.c (memory_error_message): User updated.
9356 * exec.c (section_table_read_available_memory): Likewise.
9357 * record-btrace.c (record_btrace_xfer_partial): Likewise.
9358 * target.c (target_xfer_status_to_string): Likewise.
9359 (raw_memory_xfer_partial): Likewise.
9360 (memory_xfer_partial_1, target_xfer_partial): Likewise.
9361 * valops.c (read_value_memory): Likewise.
9362 * exec.h: Update comments.
9363
01cb8804
YQ
93642014-02-24 Yao Qi <yao@codesourcery.com>
9365
9366 * target.c (target_xfer_status_to_string): Rename argument err
9367 to status.
9368 * target.h (target_xfer_status_to_string): Update declaration.
9369 Replace target_xfer_error_to_string with
9370 target_xfer_status_to_string in comment.
9371
93063aa6
YQ
93722014-02-24 Yao Qi <yao@codesourcery.com>
9373
9374 * mips-linux-nat.c (super_close): Update its type.
9375 (mips_linux_close): Pass 'self' to super_close.
9376
5c328c05
YQ
93772014-02-24 Yao Qi <yao@codesourcery.com>
9378
9379 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
9380 * corefile.c (read_memory): Adjusted.
9381 * target.c (target_write_with_progress): Adjusted.
9382
f73023dd
YQ
93832014-02-23 Yao Qi <yao@codesourcery.com>
9384
9385 Revert two patches:
9386
9387 2013-10-25 Yao Qi <yao@codesourcery.com>
9388
9389 * remote.c (remote_traceframe_info): Return early if
9390 traceframe is not selected.
9391
9392 2013-07-19 Yao Qi <yao@codesourcery.com>
9393
9394 * target.c (update_current_target): Change the default action
9395 of 'to_traceframe_info' from tcomplain to return_zero.
9396 * target.h (struct target_ops) <to_traceframe_info>: Add more
9397 comments.
9398
5a2eb0ef
YQ
93992014-02-23 Yao Qi <yao@codesourcery.com>
9400
9401 * valops.c (read_value_memory): Rewrite it. Call
9402 target_xfer_partial in a loop.
9403 * exec.h (section_table_available_memory): Remove declaration.
9404 Move comments to ...
9405 * exec.c (section_table_available_memory): ... here. Make it
9406 static.
9407
1ee79381
YQ
94082014-02-23 Yao Qi <yao@codesourcery.com>
9409
9410 * exec.c (section_table_read_available_memory): New function.
9411 * exec.h (section_table_read_available_memory): Declare.
9412 * ctf.c (ctf_xfer_partial): Call
9413 section_table_read_available_memory.
9414 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9415
1ca49d37
YQ
94162014-02-23 Yao Qi <yao@codesourcery.com>
9417
9418 * ctf.c (ctf_xfer_partial): Move code to ...
9419 * exec.c (exec_read_partial_read_only): ... it. New function.
9420 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9421 * tracefile.c: Include "exec.h".
9422 * exec.h (exec_read_partial_read_only): Declare.
9423
a283690e
YQ
94242014-02-23 Yao Qi <yao@codesourcery.com>
9425
9426 * tracefile-tfile.c (tfile_has_all_memory): Remove.
9427 (tfile_has_memory): Remove.
9428 (init_tfile_ops): Don't set fields to_has_all_memory and
9429 to_has_memory of tfile_ops.
9430 * tracefile.c (tracefile_has_all_memory): New function.
9431 (tracefile_has_memory): New function.
9432 (init_tracefile_ops): Initialize fields to_has_all_memory and
9433 to_has_memory of 'ops'.
9434
12e03cd0
YQ
94352014-02-23 Yao Qi <yao@codesourcery.com>
9436
9437 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
9438 (ctf_thread_alive, ctf_get_trace_status): Remove.
9439 (init_ctf_ops): Don't set some fields of ctf_ops. Call
9440 init_tracefile_ops.
9441 * tracefile-tfile.c (tfile_get_trace_status): Remove.
9442 (tfile_has_stack, tfile_has_registers): Remove.
9443 (tfile_thread_alive): Remove.
9444 (init_tfile_ops): Don't set some fields of tfile_ops. Call
9445 init_tracefile_ops.
9446 * tracefile.c (tracefile_has_stack): New function.
9447 (tracefile_has_registers): New function.
9448 (tracefile_thread_alive): New function.
9449 (tracefile_get_trace_status): New function.
9450 (init_tracefile_ops): New function.
9451 * tracefile.h (init_tracefile_ops): Declare.
9452
11395323
YQ
94532014-02-23 Yao Qi <yao@codesourcery.com>
9454
9455 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
9456 (O_LARGEFILE): Likewise.
9457 (tfile_ops): Likewise.
9458 (TRACE_HEADER_SIZE): Likewise.
9459 (trace_fd, trace_frames_offset, cur_offset): Likewise.
9460 (cur_data_size): Likewise.
9461 (tfile_read, tfile_open, tfile_interp_line): Likewise.
9462 (tfile_close, tfile_files_info): Likewise.
9463 (tfile_get_trace_status): Likewise.
9464 (tfile_get_tracepoint_status): Likewise.
9465 (tfile_get_traceframe_address): Likewise.
9466 (tfile_trace_find, match_blocktype): Likewise.
9467 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
9468 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
9469 (tfile_get_trace_state_variable_value): Likewise.
9470 (tfile_has_all_memory, tfile_has_memory): Likewise.
9471 (tfile_has_stack, tfile_has_registers): Likewise.
9472 (tfile_thread_alive, build_traceframe_info): Likewise.
9473 (tfile_traceframe_info, init_tfile_ops): Likewise.
9474 (_initialize_tracepoint): Don't call init_tfile_ops
9475 and add_target_with_completer.
9476 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
9477 exec.h, completer.h and filenames.h.
9478 (_initialize_tracefile_tfile): New function.
9479
7951c4eb
YQ
94802014-02-23 Yao Qi <yao@codesourcery.com>
9481
9482 * Makefile.in (REMOTE_OBS): Append tracefile.o and
9483 tracefile-tfile.o.
9484 (HFILES_NO_SRCDIR): Add tracefile.h.
9485 * ctf.c: Include "tracefile.h".
9486 * tracefile.h: New file.
9487 * tracefile.c: New file
9488 * tracefile-tfile.c: New file.
9489 * tracepoint.c: Include "tracefile.h".
9490 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
9491 (stop_reason_names): Add const.
9492 (trace_file_writer_xfree): Move it to tracefile.c.
9493 (trace_save, trace_save_command, trace_save_tfile): Likewise.
9494 (trace_save_ctf): Likewise.
9495 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
9496 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
9497 (tfile_write_header, tfile_write_regblock_type): Likewise.
9498 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
9499 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
9500 (tfile_write_raw_data, tfile_end): Likewise.
9501 (tfile_trace_file_writer_new): Likewise.
9502 (free_uploaded_tp): Make it extern.
9503 (free_uploaded_tsv): Make it extern.
9504 (_initialize_tracepoint): Move code to register command 'tsave'
9505 to tracefile.c.
9506 * tracepoint.h (stop_reason_names): Declare.
9507 (struct trace_frame_write_ops): Move it to tracefile.h.
9508 (struct trace_file_write_ops): Likewise.
9509 (struct trace_file_writer): Likewise.
9510 (free_uploaded_tsvs, free_uploaded_tps): Declare.
9511
184cd072
JK
95122014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9513
9514 PR gdb/16594
9515 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
9516 process name.
9517 (get_cores_used_by_process): New parameter num_cores, use it.
9518 (linux_xfer_osdata_processes): Pass num_cores to it.
9519 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
9520 process name.
9521
c63528fc
AK
95222014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
9523
9524 * target.c (memory_xfer_partial): Fix length arg in call to
9525 breakpoint_xfer_memory.
9526
d7b30f67
SDJ
95272014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9528
9529 PR tdep/16397
9530 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
9531 number comes after the + or - signs. Adjust length of register
9532 name to be extracted.
9533
8838afaf
TT
95342014-02-20 Tom Tromey <tromey@redhat.com>
9535
9536 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
9537 (ada_varobj_ops): Mark "extern".
9538
05227d14
TT
95392014-02-20 Tom Tromey <tromey@redhat.com>
9540
9541 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
9542
1254eefc
DE
95432014-02-20 Doug Evans <xdje42@gmail.com>
9544
9545 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
9546 All callers updated.
9547 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
9548 All callers updated.
9549 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
9550 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
9551
adde2bff
DE
95522014-02-20 lin zuojian <manjian2006@gmail.com>
9553 Joel Brobecker <brobecker@adacore.com>
9554 Doug Evans <xdje42@gmail.com>
9555
9556 PR symtab/16581
9557 * dwarf2read.c (struct die_info): New member in_process.
9558 (reset_die_in_process): New function.
9559 (process_die): Set it at the start, reset when returning.
9560 (inherit_abstract_dies): Only call process_die if origin_child_die
9561 not already being processed.
9562
3be75f87
JB
95632014-02-20 Joel Brobecker <brobecker@adacore.com>
9564
9565 * windows-nat.c (handle_unload_dll): Add function documentation.
9566 (do_initial_windows_stuff): Add comment explaining why we wait
9567 until after inferior initialization has finished before
9568 processing all DLLs.
9569
47f7ffdb
JB
95702014-02-20 Joel Brobecker <brobecker@adacore.com>
9571
9572 * windows-nat.c (get_module_name): Delete.
9573 (windows_get_exec_module_filename): New function, mostly
9574 inspired from get_module_name.
9575 (windows_pid_to_exec_file): Replace call to get_module_name
9576 by call to windows_get_exec_module_filename.
9577
1cd9feab
JB
95782014-02-20 Joel Brobecker <brobecker@adacore.com>
9579
9580 * windows-nat.c (handle_load_dll): Rewrite this function's
9581 introductory comment. Remove code using get_module_name
9582 to get the DLL's name.
9583
ea39ad35
JB
95842014-02-20 Joel Brobecker <brobecker@adacore.com>
9585
9586 * windows-nat.c (get_windows_debug_event): Ignore
9587 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
9588 if windows_initialization_done == 0.
9589 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
9590 Adjust implementation to always load all DLLs.
9591 (do_initial_windows_stuff): Replace call to
9592 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
9593
95060284
JB
95942014-02-20 Joel Brobecker <brobecker@adacore.com>
9595
9596 * windows-nat.c (_initialize_windows_nat): Deprecate the
9597 "dll-symbols" command. Turn the "add-shared-symbol-files"
9598 and "assf" aliases into commands, and deprecate them as well.
9599 * NEWS: Add entry explaining that "dll-symbols" and its two
9600 aliases are now deprecated.
9601
8d4fdb12
JB
96022014-02-20 Joel Brobecker <brobecker@adacore.com>
9603
9604 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
9605 new-line in debug string. Remove trailing spaces.
9606
1b281443
SS
96072014-02-19 Stan Shebs <stan@codesourcery.com>
9608
9609 * darwin-nat.c (darwin_xfer_partial): Fix return type.
9610
f7bd0f78
SC
96112014-02-19 Siva Chandra Reddy <sivachandra@google.com>
9612
9613 * NEWS: Add entry for the new feature
9614 * python/py-value.c (valpy_binop): Call value_x_binop for struct
9615 and class values.
9616
399ebc3d
SS
96172014-02-19 Stan Shebs <stan@codesourcery.com>
9618
9619 * MAINTAINERS: List Yao Qi as nios2 maintainer.
9620
c658158d
PA
96212014-02-19 Pedro Alves <palves@redhat.com>
9622
9623 * common/ptid.h (struct ptid): Mention that process_stratum
9624 targets should prefer ptid.lwp.
9625
ba348170
PA
96262014-02-19 Pedro Alves <palves@redhat.com>
9627
9628 * remote.c (remote_thread_alive, write_ptid, read_ptid)
9629 (read_ptid, remote_newthread_step, remote_threads_extra_info)
9630 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
9631 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
9632 store remote thread ids rather than ptid.tid.
9633 (_initialize_remote): Adjust.
9634
ac01945b
TT
96352014-02-19 Tom Tromey <tromey@redhat.com>
9636
9637 * target.c (target_get_unwinder): Rewrite.
9638 (target_get_tailcall_unwinder): Rewrite.
9639 * record-btrace.c (record_btrace_to_get_unwinder): New function.
9640 (record_btrace_to_get_tailcall_unwinder): New function.
9641 (init_record_btrace_ops): Update.
9642 * target.h (struct target_ops) <to_get_unwinder,
9643 to_get_tailcall_unwinder>: Now function pointers. Use
9644 TARGET_DEFAULT_RETURN.
9645
8476dc92
TT
96462014-02-19 Tom Tromey <tromey@redhat.com>
9647
9648 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
9649 argument.
9650 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
9651
c0eca49f
TT
96522014-02-19 Tom Tromey <tromey@redhat.com>
9653
9654 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
9655 directly.
9656 * target-delegates.c: Rebuild.
9657 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
9658 TARGET_DEFAULT_FUNC.
9659 * target.c (default_target_decr_pc_after_break): Rename from
9660 forward_target_decr_pc_after_break. Simplify.
9661 (target_decr_pc_after_break): Rely on delegation.
9662
596b6b39
TT
96632014-02-19 Tom Tromey <tromey@redhat.com>
9664
9665 * target.c (update_current_target): Do not INHERIT to_doc or
9666 to_magic. Do not de_fault to_open or to_close.
9667
b427c1bc
TT
96682014-02-19 Tom Tromey <tromey@redhat.com>
9669
9670 * gcore.h (objfile_find_memory_regions): Declare.
9671 * gcore.c (objfile_find_memory_regions): No longer static. Add
9672 "self" argument.
9673 (_initialize_gcore): Don't call exec_set_find_memory_regions.
9674 * exec.c: Include gcore.h.
9675 (exec_set_find_memory_regions): Remove.
9676 (exec_find_memory_regions): Remove.
9677 (exec_do_find_memory_regions): Remove.
9678 (init_exec_ops): Update.
9679 * defs.h (exec_set_find_memory_regions): Remove.
9680
9b144037
TT
96812014-02-19 Tom Tromey <tromey@redhat.com>
9682
9683 * target-delegates.c: Rebuild.
9684 * target.h (struct target_ops) <to_extra_thread_info,
9685 to_thread_name, to_pid_to_exec_file, to_get_section_table,
9686 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
9687 not 0, in TARGET_DEFAULT_RETURN.
9688
555bbdeb
TT
96892014-02-19 Tom Tromey <tromey@redhat.com>
9690
9691 * target.c (complete_target_initialization): Remove casts. Use
9692 return_zero_has_execution.
9693 (return_zero): Add "ignore" argument.
9694 (return_zero_has_execution): New function.
9695 (init_dummy_target): Remove casts. Use
9696 return_zero_has_execution.
9697
be4ddd36
TT
96982014-02-19 Tom Tromey <tromey@redhat.com>
9699
9700 * target.c (update_current_target): Update comments. Do not
9701 INHERIT to_stratum.
9702
2117c711
TT
97032014-02-19 Tom Tromey <tromey@redhat.com>
9704
9705 * arm-linux-nat.c (arm_linux_read_description): Delegate when
9706 needed.
9707 * corelow.c (core_read_description): Delegate when needed.
9708 * remote.c (remote_read_description): Delegate when needed.
9709 * target-delegates.c: Rebuild.
9710 * target.c (target_read_description): Rewrite.
9711 * target.h (struct target_ops) <to_read_description>: Update
9712 comment. Use TARGET_DEFAULT_RETURN.
9713
e88ef65c
TT
97142014-02-19 Tom Tromey <tromey@redhat.com>
9715
9716 * target-delegates.c: Rebuild.
9717 * target.c (update_current_target): Don't inherit or default
9718 to_can_run.
9719 (find_default_run_target): Check against delegate_can_run.
9720 * target.h (struct target_ops) <to_can_run>: Use
9721 TARGET_DEFAULT_RETURN.
9722
86a0854a
TT
97232014-02-19 Tom Tromey <tromey@redhat.com>
9724
9725 * target-delegates.c: Rebuild.
9726 * target.c (target_disconnect): Unconditionally delegate.
9727 * target.h (struct target_ops) <to_disconnect>: Use
9728 TARGET_DEFAULT_NORETURN.
9729
ee97f592
TT
97302014-02-19 Tom Tromey <tromey@redhat.com>
9731
9732 * record.c (record_stop): Unconditionally delegate.
9733 * target-delegates.c: Rebuild.
9734 * target.c (target_stop_recording): Unconditionally delegate.
9735 * target.h (struct target_ops) <to_stop_recording>: Use
9736 TARGET_DEFAULT_IGNORE.
9737
6dc7fcf4
TT
97382014-02-19 Tom Tromey <tromey@redhat.com>
9739
9740 * target-delegates.c: Rebuild.
9741 * target.c (target_enable_btrace): Unconditionally delegate.
9742 * target.h (struct target_ops) <to_enable_btrace>: Use
9743 TARGET_DEFAULT_NORETURN.
9744
eb5b20d4
TT
97452014-02-19 Tom Tromey <tromey@redhat.com>
9746
9747 * target-delegates.c: Rebuild.
9748 * target.c (target_read_btrace): Unconditionally delegate.
9749 * target.h (struct target_ops) <to_read_btrace>: Use
9750 TARGET_DEFAULT_NORETURN.
9751
9ace480d
TT
97522014-02-19 Tom Tromey <tromey@redhat.com>
9753
9754 * target-delegates.c: Rebuild.
9755 * target.c (target_teardown_btrace): Unconditionally delegate.
9756 * target.h (struct target_ops) <to_teardown_btrace>: Use
9757 TARGET_DEFAULT_NORETURN.
9758
8dc292d3
TT
97592014-02-19 Tom Tromey <tromey@redhat.com>
9760
9761 * target-delegates.c: Rebuild.
9762 * target.c (target_disable_btrace): Unconditionally delegate.
9763 * target.h (struct target_ops) <to_disable_btrace>: Use
9764 TARGET_DEFAULT_NORETURN.
9765
58a5184e
TT
97662014-02-19 Tom Tromey <tromey@redhat.com>
9767
9768 * target-delegates.c: Rebuild.
9769 * target.c (default_search_memory): New function.
9770 (simple_search_memory): Update comment.
9771 (target_search_memory): Unconditionally delegate.
9772 * target.h (struct target_ops) <to_search_memory>: Use
9773 TARGET_DEFAULT_FUNC.
9774
8de71aab
TT
97752014-02-19 Tom Tromey <tromey@redhat.com>
9776
9777 * auxv.c (default_auxv_parse): No longer static.
9778 (target_auxv_parse): Unconditionally delegate.
9779 * auxv.h (default_auxv_parse): Declare.
9780 * target-delegates.c: Rebuild.
9781 * target.c: Include auxv.h.
9782 * target.h (struct target_ops) <to_auxv_parse>: Use
9783 TARGET_DEFAULT_FUNC.
9784
6b2c5a57
TT
97852014-02-19 Tom Tromey <tromey@redhat.com>
9786
9787 * target-delegates.c: Rebuild.
9788 * target.c (target_memory_map): Unconditionally delegate.
9789 * target.h (struct target_ops) <to_memory_map>: Use
9790 TARGET_DEFAULT_RETURN.
9791
cbffc065
TT
97922014-02-19 Tom Tromey <tromey@redhat.com>
9793
9794 * target-delegates.c: Rebuild.
9795 * target.c (target_thread_alive): Unconditionally delegate.
9796 * target.h (struct target_ops) <to_thread_alive>: Use
9797 TARGET_DEFAULT_RETURN.
9798
f09e2107
TT
97992014-02-19 Tom Tromey <tromey@redhat.com>
9800
9801 * target-delegates.c: Rebuild.
9802 * target.c (target_save_record): Unconditionally delegate.
9803 * target.h (struct target_ops) <to_save_record>: Use
9804 TARGET_DEFAULT_NORETURN.
9805
07366925
TT
98062014-02-19 Tom Tromey <tromey@redhat.com>
9807
9808 * target-delegates.c: Rebuild.
9809 * target.c (target_delete_record): Unconditionally delegate.
9810 * target.h (struct target_ops) <to_delete_record>: Use
9811 TARGET_DEFAULT_NORETURN.
9812
dd2e9d25
TT
98132014-02-19 Tom Tromey <tromey@redhat.com>
9814
9815 * target-delegates.c: Rebuild.
9816 * target.c (target_record_is_replaying): Unconditionally
9817 delegate.
9818 * target.h (struct target_ops) <to_record_is_replaying>: Use
9819 TARGET_DEFAULT_RETURN.
9820
671e76cc
TT
98212014-02-19 Tom Tromey <tromey@redhat.com>
9822
9823 * target-delegates.c: Rebuild.
9824 * target.c (target_goto_record_begin): Unconditionally delegate.
9825 * target.h (struct target_ops) <to_goto_record_begin>: Use
9826 TARGET_DEFAULT_NORETURN.
9827
e9179bb3
TT
98282014-02-19 Tom Tromey <tromey@redhat.com>
9829
9830 * target-delegates.c: Rebuild.
9831 * target.c (target_goto_record_end): Unconditionally delegate.
9832 * target.h (struct target_ops) <to_goto_record_end>: Use
9833 TARGET_DEFAULT_NORETURN.
9834
05969c84
TT
98352014-02-19 Tom Tromey <tromey@redhat.com>
9836
9837 * target-delegates.c: Rebuild.
9838 * target.c (target_goto_record): Unconditionally delegate.
9839 * target.h (struct target_ops) <to_goto_record>: Use
9840 TARGET_DEFAULT_NORETURN.
9841
3679abfa
TT
98422014-02-19 Tom Tromey <tromey@redhat.com>
9843
9844 * target-delegates.c: Rebuild.
9845 * target.c (target_insn_history): Unconditionally delegate.
9846 * target.h (struct target_ops) <to_insn_history>: Use
9847 TARGET_DEFAULT_NORETURN.
9848
8444ab58
TT
98492014-02-19 Tom Tromey <tromey@redhat.com>
9850
9851 * target-delegates.c: Rebuild.
9852 * target.c (target_insn_history_from): Unconditionally delegate.
9853 * target.h (struct target_ops) <to_insn_history_from>: Use
9854 TARGET_DEFAULT_NORETURN.
9855
c29302cc
TT
98562014-02-19 Tom Tromey <tromey@redhat.com>
9857
9858 * target-delegates.c: Rebuild.
9859 * target.c (target_insn_history_range): Unconditionally delegate.
9860 * target.h (struct target_ops) <to_insn_history_range>: Use
9861 TARGET_DEFAULT_NORETURN.
9862
170049d4
TT
98632014-02-19 Tom Tromey <tromey@redhat.com>
9864
9865 * target-delegates.c: Rebuild.
9866 * target.c (target_call_history): Unconditionally delegate.
9867 * target.h (struct target_ops) <to_call_history>: Use
9868 TARGET_DEFAULT_NORETURN.
9869
16fc27d6
TT
98702014-02-19 Tom Tromey <tromey@redhat.com>
9871
9872 * target-delegates.c: Rebuild.
9873 * target.c (target_call_history_from): Unconditionally delegate.
9874 * target.h (struct target_ops) <to_call_history_from>: Use
9875 TARGET_DEFAULT_NORETURN.
9876
115d9817
TT
98772014-02-19 Tom Tromey <tromey@redhat.com>
9878
9879 * target-delegates.c: Rebuild.
9880 * target.c (target_call_history_range): Unconditionally delegate.
9881 * target.h (struct target_ops) <to_call_history_range>: Use
9882 TARGET_DEFAULT_NORETURN.
9883
eb276a6b
TT
98842014-02-19 Tom Tromey <tromey@redhat.com>
9885
9886 * target-delegates.c: Rebuild.
9887 * target.c (target_verify_memory): Unconditionally delegate.
9888 * target.h (struct target_ops) <to_verify_memory>: Use
9889 TARGET_DEFAULT_NORETURN.
9890
9e538d0d
TT
98912014-02-19 Tom Tromey <tromey@redhat.com>
9892
9893 * target-delegates.c: Rebuild.
9894 * target.c (target_core_of_thread): Unconditionally delegate.
9895 * target.h (struct target_ops) <to_core_of_thread>: Use
9896 TARGET_DEFAULT_RETURN.
9897
f6fb2925
TT
98982014-02-19 Tom Tromey <tromey@redhat.com>
9899
9900 * target-delegates.c: Rebuild.
9901 * target.c (target_flash_done): Unconditionally delegate.
9902 * target.h (struct target_ops) <to_flash_done>: Use
9903 TARGET_DEFAULT_NORETURN.
9904
e8a6c6ac
TT
99052014-02-19 Tom Tromey <tromey@redhat.com>
9906
9907 * target-delegates.c: Rebuild.
9908 * target.c (target_flash_erase): Unconditionally delegate.
9909 * target.h (struct target_ops) <to_flash_erase>: Use
9910 TARGET_DEFAULT_NORETURN.
9911
7e35c012
TT
99122014-02-19 Tom Tromey <tromey@redhat.com>
9913
9914 * target-delegates.c: Rebuild.
9915 * target.c (target_get_section_table): Unconditionally delegate.
9916 * target.h (struct target_ops) <to_get_section_table>: Use
9917 TARGET_DEFAULT_RETURN.
9918
770234d3
TT
99192014-02-19 Tom Tromey <tromey@redhat.com>
9920
9921 * target-delegates.c: Rebuild.
9922 * target.c (target_pid_to_str): Unconditionally delegate.
9923 (init_dummy_target): Don't initialize to_pid_to_str.
9924 (default_pid_to_str): Rename from dummy_pid_to_str.
9925 * target.h (struct target_ops) <to_pid_to_str>: Use
9926 TARGET_DEFAULT_FUNC.
9927
09b0dc2b
TT
99282014-02-19 Tom Tromey <tromey@redhat.com>
9929
9930 * target-delegates.c: Rebuild.
9931 * target.c (target_find_new_threads): Unconditionally delegate.
9932 * target.h (struct target_ops) <to_find_new_threads>: Use
9933 TARGET_DEFAULT_RETURN.
9934
7d4f8efa
TT
99352014-02-19 Tom Tromey <tromey@redhat.com>
9936
9937 * target-delegates.c: Rebuild.
9938 * target.c (target_program_signals): Unconditionally delegate.
9939 * target.h (struct target_ops) <to_program_signals>: Use
9940 TARGET_DEFAULT_IGNORE.
9941
035cad7f
TT
99422014-02-19 Tom Tromey <tromey@redhat.com>
9943
9944 * target-delegates.c: Rebuild.
9945 * target.c (target_pass_signals): Unconditionally delegate.
9946 * target.h (struct target_ops) <to_pass_signals>: Use
9947 TARGET_DEFAULT_IGNORE.
9948
8d657035
TT
99492014-02-19 Tom Tromey <tromey@redhat.com>
9950
9951 * target-delegates.c: Rebuild.
9952 * target.c (default_mourn_inferior): New function.
9953 (target_mourn_inferior): Unconditionally delegate.
9954 * target.h (struct target_ops) <to_mourn_inferior>: Use
9955 TARGET_DEFAULT_FUNC.
9956
098dba18
TT
99572014-02-19 Tom Tromey <tromey@redhat.com>
9958
9959 * target-delegates.c: Rebuild.
9960 * target.c (default_follow_fork): New function.
9961 (target_follow_fork): Unconditionally delegate.
9962 * target.h (struct target_ops) <to_follow_fork>: Use
9963 TARGET_DEFAULT_FUNC.
9964
423a4807
TT
99652014-02-19 Tom Tromey <tromey@redhat.com>
9966
9967 * target-delegates.c: Rebuild.
9968 * target.c (target_kill): Unconditionally delegate.
9969 * target.h (struct target_ops) <to_kill>: Use
9970 TARGET_DEFAULT_NORETURN.
9971
6c7e5e5c
TT
99722014-02-19 Tom Tromey <tromey@redhat.com>
9973
9974 * target-delegates.c: Rebuild.
9975 * target.c (target_masked_watch_num_registers): Unconditionally
9976 delegate.
9977 * target.h (struct target_ops) <to_masked_watch_num_registers>:
9978 Use TARGET_DEFAULT_RETURN.
9979
8b1c364c
TT
99802014-02-19 Tom Tromey <tromey@redhat.com>
9981
9982 * target-delegates.c: Rebuild.
9983 * target.c (target_remove_mask_watchpoint): Unconditionally
9984 delegate.
9985 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
9986 TARGET_DEFAULT_RETURN.
9987
cd4ae029
TT
99882014-02-19 Tom Tromey <tromey@redhat.com>
9989
9990 * target-delegates.c: Rebuild.
9991 * target.c (target_insert_mask_watchpoint): Unconditionally
9992 delegate.
9993 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
9994 TARGET_DEFAULT_RETURN.
9995
a134316b
TT
99962014-02-19 Tom Tromey <tromey@redhat.com>
9997
9998 * target-delegates.c: Rebuild.
9999 * target.c (target_ranged_break_num_registers): Unconditionally
10000 delegate.
10001 * target.h (struct target_ops) <to_ranged_break_num_registers>:
10002 Use TARGET_DEFAULT_RETURN.
10003
ad5989bd
TT
100042014-02-19 Tom Tromey <tromey@redhat.com>
10005
10006 * target-delegates.c: Rebuild.
10007 * target.c (target_fetch_registers): Unconditionally delegate.
10008 * target.h (struct target_ops) <to_fetch_registers>: Use
10009 TARGET_DEFAULT_NORETURN.
10010
46ee7e8d
TT
100112014-02-19 Tom Tromey <tromey@redhat.com>
10012
10013 * target-delegates.c: Rebuild.
10014 * target.c (update_current_target): Don't inherit or default
10015 to_stop.
10016 * target.h (struct target_ops) <to_stop>: Use
10017 TARGET_DEFAULT_IGNORE.
10018
843f59ed
TT
100192014-02-19 Tom Tromey <tromey@redhat.com>
10020
10021 * target-delegates.c: Rebuild.
10022 * target.c (update_current_target): Don't inherit or default
10023 to_can_run_breakpoint_commands.
10024 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
10025 Use TARGET_DEFAULT_RETURN.
10026
ccfde2a0
TT
100272014-02-19 Tom Tromey <tromey@redhat.com>
10028
10029 * target-delegates.c: Rebuild.
10030 * target.c (update_current_target): Don't inherit or default
10031 to_supports_evaluation_of_breakpoint_conditions.
10032 * target.h (struct target_ops)
10033 <to_supports_evaluation_of_breakpoint_conditions>: Use
10034 TARGET_DEFAULT_RETURN.
10035
0de91722
TT
100362014-02-19 Tom Tromey <tromey@redhat.com>
10037
10038 * target-delegates.c: Rebuild.
10039 * target.c (update_current_target): Don't inherit or default
10040 to_augmented_libraries_svr4_read.
10041 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
10042 Use TARGET_DEFAULT_RETURN.
10043
9a7d8b48
TT
100442014-02-19 Tom Tromey <tromey@redhat.com>
10045
10046 * target-delegates.c: Rebuild.
10047 * target.c (update_current_target): Don't inherit or default
10048 to_can_use_agent.
10049 * target.h (struct target_ops) <to_can_use_agent>: Use
10050 TARGET_DEFAULT_RETURN.
10051
d9db5b21
TT
100522014-02-19 Tom Tromey <tromey@redhat.com>
10053
10054 * target-delegates.c: Rebuild.
10055 * target.c (update_current_target): Don't inherit or default
10056 to_use_agent.
10057 * target.h (struct target_ops) <to_use_agent>: Use
10058 TARGET_DEFAULT_NORETURN.
10059
92155eeb
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_traceframe_info.
10065 (return_null): Remove.
10066 * target.h (struct target_ops) <to_traceframe_info>: Use
10067 TARGET_DEFAULT_RETURN.
10068
d6522a22
TT
100692014-02-19 Tom Tromey <tromey@redhat.com>
10070
10071 * target-delegates.c: Rebuild.
10072 * target.c (update_current_target): Don't inherit or default
10073 to_static_tracepoint_markers_by_strid.
10074 * target.h (struct target_ops)
10075 <to_static_tracepoint_markers_by_strid>: Use
10076 TARGET_DEFAULT_NORETURN.
10077
4c3e4425
TT
100782014-02-19 Tom Tromey <tromey@redhat.com>
10079
10080 * target-delegates.c: Rebuild.
10081 * target.c (update_current_target): Don't inherit or default
10082 to_static_tracepoint_marker_at.
10083 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
10084 Use TARGET_DEFAULT_RETURN.
10085
dcd6917f
TT
100862014-02-19 Tom Tromey <tromey@redhat.com>
10087
10088 * target-delegates.c: Rebuild.
10089 * target.c (update_current_target): Don't inherit or default
10090 to_set_permissions.
10091 * target.h (struct target_ops) <to_set_permissions>: Use
10092 TARGET_DEFAULT_IGNORE.
10093
22bcceee
TT
100942014-02-19 Tom Tromey <tromey@redhat.com>
10095
10096 * target-delegates.c: Rebuild.
10097 * target.c (update_current_target): Don't inherit or default
10098 to_get_tib_address.
10099 * target.h (struct target_ops) <to_get_tib_address>: Use
10100 TARGET_DEFAULT_NORETURN.
10101
8586ccaa
TT
101022014-02-19 Tom Tromey <tromey@redhat.com>
10103
10104 * target-delegates.c: Rebuild.
10105 * target.c (update_current_target): Don't inherit or default
10106 to_set_trace_notes.
10107 * target.h (struct target_ops) <to_set_trace_notes>: Use
10108 TARGET_DEFAULT_RETURN.
10109
91df8d1d
TT
101102014-02-19 Tom Tromey <tromey@redhat.com>
10111
10112 * target-delegates.c: Rebuild.
10113 * target.c (update_current_target): Don't initialize
10114 to_set_trace_buffer_size.
10115 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
10116 TARGET_DEFAULT_IGNORE.
10117
8d526939
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_set_circular_trace_buffer.
10123 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
10124 TARGET_DEFAULT_IGNORE.
10125
0bcfeddf
TT
101262014-02-19 Tom Tromey <tromey@redhat.com>
10127
10128 * target-delegates.c: Rebuild.
10129 * target.c (update_current_target): Don't inherit or default
10130 to_set_disconnected_tracing.
10131 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
10132 TARGET_DEFAULT_IGNORE.
10133
9249843f
TT
101342014-02-19 Tom Tromey <tromey@redhat.com>
10135
10136 * target-delegates.c: Rebuild.
10137 * target.c (update_current_target): Don't inherit or default
10138 to_get_min_fast_tracepoint_insn_len.
10139 (return_minus_one): Remove.
10140 * target.h (struct target_ops)
10141 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
10142
ace92e7d
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_raw_trace_data.
10148 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
10149 TARGET_DEFAULT_NORETURN.
10150
08120467
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_upload_trace_state_variables.
10156 * target.h (struct target_ops) <to_upload_trace_state_variables>:
10157 Use TARGET_DEFAULT_RETURN.
10158
1e949b00
TT
101592014-02-19 Tom Tromey <tromey@redhat.com>
10160
10161 * target-delegates.c: Rebuild.
10162 * target.c (update_current_target): Don't inherit or default
10163 to_upload_tracepoints.
10164 * target.h (struct target_ops) <to_upload_tracepoints>: Use
10165 TARGET_DEFAULT_RETURN.
10166
a2e6c147
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_save_trace_data.
10172 * target.h (struct target_ops) <to_save_trace_data>: Use
10173 TARGET_DEFAULT_NORETURN.
10174
959bcd0b
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_get_trace_state_variable_value.
10180 * target.h (struct target_ops)
10181 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
10182
afc94e66
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_trace_find.
10188 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
10189
e51c07ea
TT
101902014-02-19 Tom Tromey <tromey@redhat.com>
10191
10192 * target-delegates.c: Rebuild.
10193 * target.c (update_current_target): Don't inherit or default
10194 to_trace_stop.
10195 * target.h (struct target_ops) <to_trace_stop>: Use
10196 TARGET_DEFAULT_NORETURN.
10197
6fea14cd
TT
101982014-02-19 Tom Tromey <tromey@redhat.com>
10199
10200 * target-delegates.c: Rebuild.
10201 * target.c (update_current_target): Don't inherit or default
10202 to_get_tracepoint_status.
10203 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
10204 TARGET_DEFAULT_NORETURN.
10205
4072d4ff
TT
102062014-02-19 Tom Tromey <tromey@redhat.com>
10207
10208 * target-delegates.c: Rebuild.
10209 * target.c (update_current_target): Don't inherit or default
10210 to_get_trace_status.
10211 * target.h (struct target_ops) <to_get_trace_status>: Use
10212 TARGET_DEFAULT_RETURN.
10213
25da2e80
TT
102142014-02-19 Tom Tromey <tromey@redhat.com>
10215
10216 * target-delegates.c: Rebuild.
10217 * target.c (update_current_target): Don't inherit or default
10218 to_trace_start.
10219 * target.h (struct target_ops) <to_trace_start>: Use
10220 TARGET_DEFAULT_NORETURN.
10221
86dd181d
TT
102222014-02-19 Tom Tromey <tromey@redhat.com>
10223
10224 * target-delegates.c: Rebuild.
10225 * target.c (update_current_target): Don't inherit or default
10226 to_trace_set_readonly_regions.
10227 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
10228 Use TARGET_DEFAULT_NORETURN.
10229
05c41993
TT
102302014-02-19 Tom Tromey <tromey@redhat.com>
10231
10232 * target-delegates.c: Rebuild.
10233 * target.c (update_current_target): Don't inherit or default
10234 to_disable_tracepoint.
10235 * target.h (struct target_ops) <to_disable_tracepoint>: Use
10236 TARGET_DEFAULT_NORETURN.
10237
151f70f1
TT
102382014-02-19 Tom Tromey <tromey@redhat.com>
10239
10240 * target-delegates.c: Rebuild.
10241 * target.c (update_current_target): Don't inherit or default
10242 to_enable_tracepoint.
10243 * target.h (struct target_ops) <to_enable_tracepoint>: Use
10244 TARGET_DEFAULT_NORETURN.
10245
94eb98b9
TT
102462014-02-19 Tom Tromey <tromey@redhat.com>
10247
10248 * target-delegates.c: Rebuild.
10249 * target.c (update_current_target): Don't inherit or default
10250 to_download_trace_state_variable.
10251 * target.h (struct target_ops) <to_download_trace_state_variable>:
10252 Use TARGET_DEFAULT_NORETURN.
10253
719acc4a
TT
102542014-02-19 Tom Tromey <tromey@redhat.com>
10255
10256 * target-delegates.c: Rebuild.
10257 * target.c (update_current_target): Don't inherit or default
10258 to_can_download_tracepoint.
10259 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
10260 TARGET_DEFAULT_RETURN.
10261
9a980a22
TT
102622014-02-19 Tom Tromey <tromey@redhat.com>
10263
10264 * target-delegates.c: Rebuild.
10265 * target.c (update_current_target): Don't inherit or default
10266 to_download_tracepoint.
10267 * target.h (struct target_ops) <to_download_tracepoint>: Use
10268 TARGET_DEFAULT_NORETURN.
10269
5536135b
TT
102702014-02-19 Tom Tromey <tromey@redhat.com>
10271
10272 * target-delegates.c: Rebuild.
10273 * target.c (update_current_target): Don't inherit or default
10274 to_trace_init.
10275 * target.h (struct target_ops) <to_trace_init>: Use
10276 TARGET_DEFAULT_RETURN.
10277
9409d39e
TT
102782014-02-19 Tom Tromey <tromey@redhat.com>
10279
10280 * target-delegates.c: Rebuild.
10281 * target.c (update_current_target): Don't inherit or default
10282 to_supports_string_tracing.
10283 * target.h (struct target_ops) <to_supports_string_tracing>: Use
10284 TARGET_DEFAULT_RETURN.
10285
aab1b22d
TT
102862014-02-19 Tom Tromey <tromey@redhat.com>
10287
10288 * target-delegates.c: Rebuild.
10289 * target.c (update_current_target): Don't inherit or default
10290 to_supports_enable_disable_tracepoint.
10291 * target.h (struct target_ops)
10292 <to_supports_enable_disable_tracepoint>: Use
10293 TARGET_DEFAULT_RETURN.
10294
a7304748
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_supports_multi_process.
10300 * target.h (struct target_ops) <to_supports_multi_process>: Use
10301 TARGET_DEFAULT_RETURN.
10302
4229b31d
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_get_ada_task_ptid.
10308 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
10309 TARGET_DEFAULT_FUNC.
10310
43eba180
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_thread_architecture.
10316 * target.h (struct target_ops) <to_thread_architecture>: Use
10317 TARGET_DEFAULT_FUNC.
10318
fe31bf5b
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_execution_direction.
10324 * target.h (struct target_ops) <to_execution_direction>: Use
10325 TARGET_DEFAULT_FUNC.
10326
53e1cfc7
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_can_execute_reverse.
10332 * target.h (struct target_ops) <to_can_execute_reverse>: Use
10333 TARGET_DEFAULT_RETURN.
10334 (target_can_execute_reverse): Unconditionally delegate.
10335
9bb9d61d
TT
103362014-02-19 Tom Tromey <tromey@redhat.com>
10337
10338 * target-delegates.c: Rebuild.
10339 * target.c (update_current_target): Don't inherit or default
10340 to_goto_bookmark.
10341 (dummy_goto_bookmark): Remove.
10342 (init_dummy_target): Don't inherit or default to_goto_bookmark.
10343 * target.h (struct target_ops) <to_goto_bookmark>: Use
10344 TARGET_DEFAULT_NORETURN.
10345
3dbafbbb
TT
103462014-02-19 Tom Tromey <tromey@redhat.com>
10347
10348 * target-delegates.c: Rebuild.
10349 * target.c (update_current_target): Don't inherit or default
10350 to_get_bookmark.
10351 (dummy_get_bookmark): Remove.
10352 (init_dummy_target): Don't inherit or default to_get_bookmark.
10353 * target.h (struct target_ops) <to_get_bookmark>: Use
10354 TARGET_DEFAULT_NORETURN
10355
16f796b1
TT
103562014-02-19 Tom Tromey <tromey@redhat.com>
10357
10358 * target-delegates.c: Rebuild.
10359 * target.c (update_current_target): Don't inherit or default
10360 to_make_corefile_notes.
10361 (init_dummy_target): Don't initialize to_make_corefile_notes.
10362 * target.h (struct target_ops) <to_make_corefile_notes>: Use
10363 TARGET_DEFAULT_FUNC.
10364
0b5a2719
TT
103652014-02-19 Tom Tromey <tromey@redhat.com>
10366
10367 * target-delegates.c: Rebuild.
10368 * target.c (update_current_target): Don't inherit or default
10369 to_find_memory_regions.
10370 (init_dummy_target): Don't initialize to_find_memory_regions.
10371 * target.h (struct target_ops) <to_find_memory_regions>: Use
10372 TARGET_DEFAULT_FUNC.
10373
d9cb0195
TT
103742014-02-19 Tom Tromey <tromey@redhat.com>
10375
10376 * target-delegates.c: Rebuild.
10377 * target.c (update_current_target): Don't inherit or default
10378 to_log_command.
10379 * target.h (struct target_ops) <to_log_command>: Use
10380 TARGET_DEFAULT_IGNORE.
10381 (target_log_command): Unconditionally delegate.
10382
830ca330
TT
103832014-02-19 Tom Tromey <tromey@redhat.com>
10384
10385 * target-delegates.c: Rebuild.
10386 * target.c (update_current_target): Don't inherit or default
10387 to_pid_to_exec_file.
10388 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
10389 TARGET_DEFAULT_RETURN.
10390
825828fc
TT
103912014-02-19 Tom Tromey <tromey@redhat.com>
10392
10393 * target-delegates.c: Rebuild.
10394 * target.c (update_current_target): Don't inherit or default
10395 to_thread_name.
10396 (target_thread_name): Unconditionally delegate.
10397 * target.h (struct target_ops) <to_thread_name>: Use
10398 TARGET_DEFAULT_RETURN.
10399
4a7e6dda
TT
104002014-02-19 Tom Tromey <tromey@redhat.com>
10401
10402 * target-delegates.c: Rebuild.
10403 * target.c (update_current_target): Don't inherit or default
10404 to_extra_thread_info.
10405 * target.h (struct target_ops) <to_extra_thread_info>: Use
10406 TARGET_DEFAULT_RETURN.
10407
0db88c1d
TT
104082014-02-19 Tom Tromey <tromey@redhat.com>
10409
10410 * target-delegates.c: Rebuild.
10411 * target.c (update_current_target): Don't inherit or default
10412 to_has_exited.
10413 * target.h (struct target_ops) <to_has_exited>: Use
10414 TARGET_DEFAULT_RETURN..
10415
6a9fa051
TT
104162014-02-19 Tom Tromey <tromey@redhat.com>
10417
10418 * target-delegates.c: Rebuild.
10419 * target.c (update_current_target): Don't inherit or default
10420 to_set_syscall_catchpoint.
10421 (return_one): Remove.
10422 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
10423 TARGET_DEFAULT_RETURN.
10424
62f64d7a
TT
104252014-02-19 Tom Tromey <tromey@redhat.com>
10426
10427 * target-delegates.c: Rebuild.
10428 * target.c (update_current_target): Don't inherit or default
10429 to_insert_exec_catchpoint.
10430 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
10431 TARGET_DEFAULT_RETURN.
10432
cda0f38c
TT
104332014-01-08 Tom Tromey <tromey@redhat.com>
10434
10435 * target-delegates.c: Rebuild.
10436 * target.c (update_current_target): Don't inherit or default
10437 to_insert_exec_catchpoint.
10438 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
10439 TARGET_DEFAULT_RETURN.
10440
95c3375e
TT
104412014-02-19 Tom Tromey <tromey@redhat.com>
10442
10443 * target-delegates.c: Rebuild.
10444 * target.c (update_current_target): Don't inherit or default
10445 to_remove_vfork_catchpoint.
10446 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
10447 TARGET_DEFAULT_RETURN.
10448
7e18a8dc
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_insert_vfork_catchpoint.
10454 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
10455 TARGET_DEFAULT_RETURN.
10456
e1a21fb7
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_remove_fork_catchpoint.
10462 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
10463 TARGET_DEFAULT_RETURN.
10464
5958ebeb
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_insert_fork_catchpoint.
10470 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
10471 TARGET_DEFAULT_RETURN.
10472
340ba4bf
TT
104732014-02-19 Tom Tromey <tromey@redhat.com>
10474
10475 * target-delegates.c: Rebuild.
10476 * target.c (update_current_target): Don't inherit or default
10477 to_post_startup_inferior.
10478 * target.h (struct target_ops) <to_post_startup_inferior>: Use
10479 TARGET_DEFAULT_IGNORE.
10480
7634da87
TT
104812014-02-19 Tom Tromey <tromey@redhat.com>
10482
10483 * target-delegates.c: Rebuild.
10484 * target.c (update_current_target): Don't inherit or default
10485 to_load.
10486 * target.h (struct target_ops) <to_load>: Use
10487 TARGET_DEFAULT_NORETURN.
10488
e19e919f
TT
104892014-02-19 Tom Tromey <tromey@redhat.com>
10490
10491 * target-delegates.c: Rebuild.
10492 * target.c (update_current_target): Don't inherit or default
10493 to_terminal_info.
10494 * target.h (struct target_ops) <to_terminal_info>: Use
10495 TARGET_DEFAULT_FUNC.
10496
c6ea8f79
TT
104972014-02-19 Tom Tromey <tromey@redhat.com>
10498
10499 * target-delegates.c: Rebuild.
10500 * target.c (update_current_target): Don't inherit or default
10501 to_terminal_save_ours.
10502 * target.h (struct target_ops) <to_terminal_save_ours>: Use
10503 TARGET_DEFAULT_IGNORE.
10504
e4a733f1
TT
105052014-02-19 Tom Tromey <tromey@redhat.com>
10506
10507 * target-delegates.c: Rebuild.
10508 * target.c (update_current_target): Don't inherit or default
10509 to_terminal_ours.
10510 * target.h (struct target_ops) <to_terminal_ours>: Use
10511 TARGET_DEFAULT_IGNORE.
10512
74fcbef9
TT
105132014-02-19 Tom Tromey <tromey@redhat.com>
10514
10515 * target-delegates.c: Rebuild.
10516 * target.c (update_current_target): Don't inherit or default
10517 to_terminal_ours_for_output.
10518 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
10519 TARGET_DEFAULT_IGNORE.
10520
ddeaacc9
TT
105212014-02-19 Tom Tromey <tromey@redhat.com>
10522
10523 * target-delegates.c: Rebuild.
10524 * target.c (update_current_target): Don't inherit or default
10525 to_terminal_inferior.
10526 * target.h (struct target_ops) <to_terminal_inferior>: Use
10527 TARGET_DEFAULT_IGNORE.
10528
0343661d
TT
105292014-02-19 Tom Tromey <tromey@redhat.com>
10530
10531 * target-delegates.c: Rebuild.
10532 * target.c (update_current_target): Don't inherit or default
10533 to_terminal_init.
10534 * target.h (struct target_ops) <to_terminal_init>: Use
10535 TARGET_DEFAULT_IGNORE.
10536
77cdffe9
TT
105372014-02-19 Tom Tromey <tromey@redhat.com>
10538
10539 * target-delegates.c: Rebuild.
10540 * target.c (update_current_target): Don't inherit or default
10541 to_can_accel_watchpoint_condition.
10542 * target.h (struct target_ops)
10543 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
10544
d03655e4
TT
105452014-02-19 Tom Tromey <tromey@redhat.com>
10546
10547 * target-delegates.c: Rebuild.
10548 * target.c (update_current_target): Don't inherit or default
10549 to_region_ok_for_hw_watchpoint.
10550 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10551 Use TARGET_DEFAULT_FUNC.
10552
65f160a9
TT
105532014-02-19 Tom Tromey <tromey@redhat.com>
10554
10555 * target-delegates.c: Rebuild.
10556 * target.c (update_current_target): Don't inherit or default
10557 to_watchpoint_addr_within_range.
10558 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
10559 Use TARGET_DEFAULT_FUNC.
10560
61dd109f
TT
105612014-02-19 Tom Tromey <tromey@redhat.com>
10562
10563 * target-delegates.c: Rebuild.
10564 * target.c (update_current_target): Don't inherit or default
10565 to_remove_watchpoint.
10566 * target.h (struct target_ops) <to_remove_watchpoint>: Use
10567 TARGET_DEFAULT_NORETURN.
10568
016facd4
TT
105692014-02-19 Tom Tromey <tromey@redhat.com>
10570
10571 * target-delegates.c: Rebuild.
10572 * target.c (update_current_target): Don't inherit or default
10573 to_insert_watchpoint.
10574 * target.h (struct target_ops) <to_insert_watchpoint>: Use
10575 TARGET_DEFAULT_RETURN.
10576
418dabac
TT
105772014-02-19 Tom Tromey <tromey@redhat.com>
10578
10579 * target-delegates.c: Rebuild.
10580 * target.c (update_current_target): Don't inherit or default
10581 to_remove_hw_breakpoint.
10582 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
10583 TARGET_DEFAULT_RETURN.
10584
61b371f9
TT
105852014-02-19 Tom Tromey <tromey@redhat.com>
10586
10587 * target-delegates.c: Rebuild.
10588 * target.c (update_current_target): Don't inherit or default
10589 to_insert_hw_breakpoint.
10590 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
10591 TARGET_DEFAULT_RETURN.
10592
52b51d06
TT
105932014-02-19 Tom Tromey <tromey@redhat.com>
10594
10595 * target-delegates.c: Rebuild.
10596 * target.c (update_current_target): Don't inherit or default
10597 to_can_use_hw_breakpoint.
10598 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
10599 TARGET_DEFAULT_RETURN.
10600
f86e59b2
TT
106012014-02-19 Tom Tromey <tromey@redhat.com>
10602
10603 * target-delegates.c: Rebuild.
10604 * target.c (update_current_target): Don't inherit or default
10605 to_files_info.
10606 * target.h (struct target_ops) <to_files_info>: Use
10607 TARGET_DEFAULT_IGNORE.
10608
6c628163
TT
106092014-02-19 Tom Tromey <tromey@redhat.com>
10610
10611 * target-delegates.c: Rebuild.
10612 * target.c (update_current_target): Don't inherit or default
10613 to_store.
10614 * target.h (struct target_ops) <to_store>: Use
10615 TARGET_DEFAULT_NORETURN.
10616
bebd3233
TT
106172014-02-19 Tom Tromey <tromey@redhat.com>
10618
10619 * target-delegates.c: Rebuild.
10620 * target.c (update_current_target): Don't inherit or default
10621 to_post_attach.
10622 * target.h (struct target_ops) <to_post_attach>: Use
10623 TARGET_DEFAULT_IGNORE.
10624
a53f3625
TT
106252014-02-19 Tom Tromey <tromey@redhat.com>
10626
10627 * target-delegates.c: Rebuild.
10628 * target.c (update_current_target): Don't inherit or default
10629 to_rcmd.
10630 (default_rcmd): New function.
10631 (do_monitor_command): Unconditionally delegate.
10632 * target.h (struct target_ops) <to_rmcd>: Use
10633 TARGET_DEFAULT_FUNC.
10634
e9a29200
TT
106352014-02-19 Tom Tromey <tromey@redhat.com>
10636
10637 * target-delegates.c: Rebuild.
10638 * target.c (init_dummy_target): Don't initialize to_attach.
10639 (target_attach): Unconditionally delegate.
10640 * target.h (struct target_ops) <to_attach>: Use
10641 TARGET_DEFAULT_FUNC.
10642
09da0d0a
TT
106432014-02-19 Tom Tromey <tromey@redhat.com>
10644
10645 * target-delegates.c: Rebuild.
10646 * target.c (target_detach): Unconditionally delegate.
10647 (init_dummy_target): Don't initialize to_detach.
10648 * target.h (struct target_ops) <to_detach>: Use
10649 TARGET_DEFAULT_IGNORE.
10650
5436ff03
TT
106512014-02-19 Tom Tromey <tromey@redhat.com>
10652
10653 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
10654 Add argument.
10655 (target_augmented_libraries_svr4_read): Add argument.
10656 * target.c (update_current_target): Update.
10657 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
10658 argument.
10659
f0d960ea
TT
106602014-02-19 Tom Tromey <tromey@redhat.com>
10661
10662 * target.h (struct target_ops) <to_call_history_range>: Add
10663 argument.
10664 * target.c (target_call_history_range): Add argument.
10665 * record-btrace.c (record_btrace_call_history_range): Add 'self'
10666 argument.
10667 (record_btrace_call_history_from): Update.
10668
ec0aea04
TT
106692014-02-19 Tom Tromey <tromey@redhat.com>
10670
10671 * target.h (struct target_ops) <to_call_history_from>: Add
10672 argument.
10673 * target.c (target_call_history_from): Add argument.
10674 * record-btrace.c (record_btrace_call_history_from): Add 'self'
10675 argument.
10676
5df2fcba
TT
106772014-02-19 Tom Tromey <tromey@redhat.com>
10678
10679 * target.h (struct target_ops) <to_call_history>: Add argument.
10680 * target.c (target_call_history): Add argument.
10681 * record-btrace.c (record_btrace_call_history): Add 'self'
10682 argument.
10683
4e99c6b7
TT
106842014-02-19 Tom Tromey <tromey@redhat.com>
10685
10686 * target.h (struct target_ops) <to_insn_history_range>: Add
10687 argument.
10688 * target.c (target_insn_history_range): Add argument.
10689 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
10690 argument.
10691 (record_btrace_insn_history_from): Update.
10692
9abc3ff3
TT
106932014-02-19 Tom Tromey <tromey@redhat.com>
10694
10695 * target.h (struct target_ops) <to_insn_history_from>: Add
10696 argument.
10697 * target.c (target_insn_history_from): Add argument.
10698 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
10699 argument.
10700
7a6c5609
TT
107012014-02-19 Tom Tromey <tromey@redhat.com>
10702
10703 * target.h (struct target_ops) <to_insn_history>: Add argument.
10704 * target.c (target_insn_history): Add argument.
10705 * record-btrace.c (record_btrace_insn_history): Add 'self'
10706 argument.
10707
606183ac
TT
107082014-02-19 Tom Tromey <tromey@redhat.com>
10709
10710 * target.h (struct target_ops) <to_goto_record>: Add argument.
10711 * target.c (target_goto_record): Add argument.
10712 * record-full.c (record_full_goto): Add 'self' argument.
10713 * record-btrace.c (record_btrace_goto): Add 'self' argument.
10714
307a1b91
TT
107152014-02-19 Tom Tromey <tromey@redhat.com>
10716
10717 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
10718 * target.c (target_goto_record_end): Add argument.
10719 * record-full.c (record_full_goto_end): Add 'self' argument.
10720 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
10721
08475817
TT
107222014-02-19 Tom Tromey <tromey@redhat.com>
10723
10724 * target.h (struct target_ops) <to_goto_record_begin>: Add
10725 argument.
10726 * target.c (target_goto_record_begin): Add argument.
10727 * record-full.c (record_full_goto_begin): Add 'self' argument.
10728 * record-btrace.c (record_btrace_goto_begin): Add 'self'
10729 argument.
10730
1c63c994
TT
107312014-02-19 Tom Tromey <tromey@redhat.com>
10732
10733 * target.h (struct target_ops) <to_record_is_replaying>: Add
10734 argument.
10735 * target.c (target_record_is_replaying): Add argument.
10736 * record-full.c (record_full_is_replaying): Add 'self' argument.
10737 * record-btrace.c (record_btrace_is_replaying): Add 'self'
10738 argument.
10739 (record_btrace_xfer_partial, record_btrace_store_registers)
10740 (record_btrace_prepare_to_store, record_btrace_resume)
10741 (record_btrace_wait, record_btrace_decr_pc_after_break)
10742 (record_btrace_find_new_threads, record_btrace_thread_alive):
10743 Update.
10744
d1b55219
TT
107452014-02-19 Tom Tromey <tromey@redhat.com>
10746
10747 * target.h (struct target_ops) <to_delete_record>: Add argument.
10748 * target.c (target_delete_record): Add argument.
10749 * record-full.c (record_full_delete): Add 'self' argument.
10750
1390f529
TT
107512014-02-19 Tom Tromey <tromey@redhat.com>
10752
10753 * target.h (struct target_ops) <to_save_record>: Add argument.
10754 * target.c (target_save_record): Add argument.
10755 * record-full.c (record_full_save): Add 'self' argument.
10756 (record_full_save): Add 'self' argument.
10757
630d6a4a
TT
107582014-02-19 Tom Tromey <tromey@redhat.com>
10759
10760 * target.h (struct target_ops) <to_info_record>: Add argument.
10761 * target.c (target_info_record): Add argument.
10762 * record.c (info_record_command): Add argument.
10763 * record-full.c (record_full_info): Add 'self' argument.
10764 * record-btrace.c (record_btrace_info): Add 'self' argument.
10765
c6cd7c02
TT
107662014-02-19 Tom Tromey <tromey@redhat.com>
10767
10768 * target.h (struct target_ops) <to_stop_recording>: Add argument.
10769 * target.c (target_stop_recording): Add argument.
10770 * record.c (record_stop): Add argument.
10771 * record-btrace.c (record_btrace_stop_recording): Add 'self'
10772 argument.
10773
39c49f83
TT
107742014-02-19 Tom Tromey <tromey@redhat.com>
10775
10776 * target.h (struct target_ops) <to_read_btrace>: Add argument.
10777 * target.c (struct target_ops) <to_read_btrace>: Add argument.
10778 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
10779 argument.
10780 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
10781 (_initialize_amd64_linux_nat): Use it.
10782 * i386-linux-nat.c (i386_linux_read_btrace): New function.
10783 (_initialize_i386_linux_nat): Use it.
10784
1777056d
TT
107852014-02-19 Tom Tromey <tromey@redhat.com>
10786
10787 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
10788 * target.c (target_teardown_btrace): Add argument.
10789 * remote.c (remote_teardown_btrace): Add 'self' argument.
10790 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
10791 argument.
10792 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
10793 argument.
10794
25e95349
TT
107952014-02-19 Tom Tromey <tromey@redhat.com>
10796
10797 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
10798 * target.c (target_disable_btrace): Add argument.
10799 * remote.c (remote_disable_btrace): Add 'self' argument.
10800 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
10801 argument.
10802 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
10803 argument.
10804
e3c49f88
TT
108052014-02-19 Tom Tromey <tromey@redhat.com>
10806
10807 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
10808 * target.c (target_enable_btrace): Add argument.
10809 * remote.c (remote_enable_btrace): Add 'self' argument.
10810 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
10811 argument.
10812 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
10813 argument.
10814
fe38f897
TT
108152014-02-19 Tom Tromey <tromey@redhat.com>
10816
10817 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
10818 (target_can_use_agent): Add argument.
10819 * target.c (update_current_target): Update.
10820 * remote.c (remote_can_use_agent): Add 'self' argument.
10821 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
10822
2c152180
TT
108232014-02-19 Tom Tromey <tromey@redhat.com>
10824
10825 * target.h (struct target_ops) <to_use_agent>: Add argument.
10826 (target_use_agent): Add argument.
10827 * target.c (update_current_target): Update.
10828 * remote.c (remote_use_agent): Add 'self' argument.
10829 * inf-child.c (inf_child_use_agent): Add 'self' argument.
10830
a893e81f
TT
108312014-02-19 Tom Tromey <tromey@redhat.com>
10832
10833 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
10834 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
10835 (target_traceframe_info): Add argument.
10836 * target.c (update_current_target): Update.
10837 * remote.c (remote_traceframe_info): Add 'self' argument.
10838 * ctf.c (ctf_traceframe_info): Add 'self' argument.
10839
c686c57f
TT
108402014-02-19 Tom Tromey <tromey@redhat.com>
10841
10842 * target.h (target_static_tracepoint_markers_by_strid): Add
10843 argument.
10844 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
10845 'self' argument.
10846 * target.c (update_current_target): Update.
10847 * remote.c (struct target_ops)
10848 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
10849 * linux-nat.c (struct target_ops)
10850 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
10851
61fc905d
TT
108522014-02-19 Tom Tromey <tromey@redhat.com>
10853
10854 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
10855 Add argument.
10856 (target_static_tracepoint_marker_at): Add argument.
10857 * target.c (update_current_target): Update.
10858 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
10859 argument.
10860
c378d69d
TT
108612014-02-19 Tom Tromey <tromey@redhat.com>
10862
10863 * target.h (struct target_ops) <to_set_permissions>: Add argument.
10864 (target_set_permissions): Add argument.
10865 * target.c (update_current_target): Update.
10866 * remote.c (remote_set_permissions): Add 'self' argument.
10867 (remote_start_remote): Update.
10868
bd7ae0f5
TT
108692014-02-19 Tom Tromey <tromey@redhat.com>
10870
10871 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
10872 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
10873 (target_get_tib_address): Add argument.
10874 * target.c (update_current_target): Update.
10875 * remote.c (remote_get_tib_address): Add 'self' argument.
10876
d9e68a2c
TT
108772014-02-19 Tom Tromey <tromey@redhat.com>
10878
10879 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
10880 (target_set_trace_notes): Add argument.
10881 * target.c (update_current_target): Update.
10882 * remote.c (remote_set_trace_notes): Add 'self' argument.
10883
4da384be
TT
108842014-02-19 Tom Tromey <tromey@redhat.com>
10885
10886 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
10887 argument.
10888 (target_set_trace_buffer_size): Add argument.
10889 * target.c (update_current_target): Update.
10890 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
10891
736d5b1f
TT
108922014-02-19 Tom Tromey <tromey@redhat.com>
10893
10894 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
10895 argument.
10896 (target_set_circular_trace_buffer): Add argument.
10897 * target.c (update_current_target): Update.
10898 * remote.c (remote_set_circular_trace_buffer): Add 'self'
10899 argument.
10900
37b25738
TT
109012014-02-19 Tom Tromey <tromey@redhat.com>
10902
10903 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
10904 argument.
10905 (target_set_disconnected_tracing): Add argument.
10906 * target.c (update_current_target): Update.
10907 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
10908
0e67620a
TT
109092014-02-19 Tom Tromey <tromey@redhat.com>
10910
10911 * target.h (struct target_ops)
10912 <to_get_min_fast_tracepoint_insn_len>: Add argument.
10913 (target_get_min_fast_tracepoint_insn_len): Add argument.
10914 * target.c (update_current_target): Update.
10915 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
10916 argument.
10917
88ee6f45
TT
109182014-02-19 Tom Tromey <tromey@redhat.com>
10919
10920 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
10921 argument.
10922 (target_get_raw_trace_data): Add argument.
10923 * target.c (update_current_target): Update.
10924 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
10925
181e3713
TT
109262014-02-19 Tom Tromey <tromey@redhat.com>
10927
10928 * target.h (struct target_ops) <to_upload_trace_state_variables>:
10929 Add argument.
10930 (target_upload_trace_state_variables): Add argument.
10931 * target.c (update_current_target): Update.
10932 * remote.c (remote_upload_trace_state_variables): Add 'self'
10933 argument.
10934 (remote_start_remote): Update.
10935
ab6617cc
TT
109362014-02-19 Tom Tromey <tromey@redhat.com>
10937
10938 * target.h (struct target_ops) <to_upload_tracepoints>: Add
10939 argument.
10940 (target_upload_tracepoints): Add argument.
10941 * target.c (update_current_target): Update.
10942 * remote.c (remote_upload_tracepoints): Add 'self' argument.
10943 (remote_start_remote): Update.
10944
dc3decaf
TT
109452014-02-19 Tom Tromey <tromey@redhat.com>
10946
10947 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
10948 (target_save_trace_data): Add argument.
10949 * target.c (update_current_target): Update.
10950 * remote.c (remote_save_trace_data): Add 'self' argument.
10951
4011015b
TT
109522014-02-19 Tom Tromey <tromey@redhat.com>
10953
10954 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
10955 argument.
10956 * target.h (struct target_ops)
10957 <to_get_trace_state_variable_value>: Add argument.
10958 (target_get_trace_state_variable_value): Add argument.
10959 * target.c (update_current_target): Update.
10960 * remote.c (remote_get_trace_state_variable_value): Add 'self'
10961 argument.
10962 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
10963
bd4c6793
TT
109642014-02-19 Tom Tromey <tromey@redhat.com>
10965
10966 * tracepoint.c (tfile_trace_find): Add 'self' argument.
10967 * target.h (struct target_ops) <to_trace_find>: Add argument.
10968 (target_trace_find): Add argument.
10969 * target.c (update_current_target): Update.
10970 * remote.c (remote_trace_find): Add 'self' argument.
10971 * ctf.c (ctf_trace_find): Add 'self' argument.
10972
74499f1b
TT
109732014-02-19 Tom Tromey <tromey@redhat.com>
10974
10975 * target.h (struct target_ops) <to_trace_stop>: Add argument.
10976 (target_trace_stop): Add argument.
10977 * target.c (update_current_target): Update.
10978 * remote.c (remote_trace_stop): Add 'self' argument.
10979
db90e85c
TT
109802014-02-19 Tom Tromey <tromey@redhat.com>
10981
10982 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
10983 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
10984 argument.
10985 (target_get_tracepoint_status): Add argument.
10986 * target.c (update_current_target): Update.
10987 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
10988
8bd200f1
TT
109892014-02-19 Tom Tromey <tromey@redhat.com>
10990
10991 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
10992 * target.h (struct target_ops) <to_get_trace_status>: Add
10993 argument.
10994 (target_get_trace_status): Add argument.
10995 * target.c (update_current_target): Update.
10996 * remote.c (remote_get_trace_status): Add 'self' argument.
10997 (remote_start_remote, remote_can_download_tracepoint): Update.
10998 * ctf.c (ctf_get_trace_status): Add 'self' argument.
10999
e2d1aae3
TT
110002014-02-19 Tom Tromey <tromey@redhat.com>
11001
11002 * target.h (struct target_ops) <to_trace_start>: Add argument.
11003 (target_trace_start): Add argument.
11004 * target.c (update_current_target): Update.
11005 * remote.c (remote_trace_start): Add 'self' argument.
11006
583f9a86
TT
110072014-02-19 Tom Tromey <tromey@redhat.com>
11008
11009 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
11010 Add argument.
11011 (target_trace_set_readonly_regions): Add argument.
11012 * target.c (update_current_target): Update.
11013 * remote.c (remote_trace_set_readonly_regions): Add 'self'
11014 argument.
11015
780b049c
TT
110162014-02-19 Tom Tromey <tromey@redhat.com>
11017
11018 * target.h (struct target_ops) <to_disable_tracepoint>: Add
11019 argument.
11020 (target_disable_tracepoint): Add argument.
11021 * target.c (update_current_target): Update.
11022 * remote.c (remote_disable_tracepoint): Add 'self' argument.
11023
46670d57
TT
110242014-02-19 Tom Tromey <tromey@redhat.com>
11025
11026 * target.h (struct target_ops) <to_enable_tracepoint>: Add
11027 argument.
11028 (target_enable_tracepoint): Add argument.
11029 * target.c (update_current_target): Update.
11030 * remote.c (remote_enable_tracepoint): Add 'self' argument.
11031
559d2b81
TT
110322014-02-19 Tom Tromey <tromey@redhat.com>
11033
11034 * target.h (struct target_ops) <to_download_trace_state_variable>:
11035 Add argument.
11036 (target_download_trace_state_variable): Add argument.
11037 * target.c (update_current_target): Update.
11038 * remote.c (remote_download_trace_state_variable): Add 'self'
11039 argument.
11040
a52a8357
TT
110412014-02-19 Tom Tromey <tromey@redhat.com>
11042
11043 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
11044 argument.
11045 (target_can_download_tracepoint): Add argument.
11046 * target.c (update_current_target): Update.
11047 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
11048
548f7808
TT
110492014-02-19 Tom Tromey <tromey@redhat.com>
11050
11051 * target.h (struct target_ops) <to_download_tracepoint>: Add
11052 argument.
11053 (target_download_tracepoint): Add argument.
11054 * target.c (update_current_target): Update.
11055 * remote.c (remote_download_tracepoint): Add 'self' argument.
11056
ecae04e1
TT
110572014-02-19 Tom Tromey <tromey@redhat.com>
11058
11059 * target.h (struct target_ops) <to_trace_init>: Add argument.
11060 (target_trace_init): Add argument.
11061 * target.c (update_current_target): Update.
11062 * remote.c (remote_trace_init): Add 'self' argument.
11063
fab5aa7c
TT
110642014-02-19 Tom Tromey <tromey@redhat.com>
11065
11066 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
11067 * target.c (target_fileio_readlink): Add argument.
11068 * remote.c (remote_hostio_readlink): Add 'self' argument.
11069 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
11070
dbbca37d
TT
110712014-02-19 Tom Tromey <tromey@redhat.com>
11072
11073 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
11074 * target.c (target_fileio_unlink): Add argument.
11075 * remote.c (remote_hostio_unlink): Add 'self' argument.
11076 (remote_file_delete): Update.
11077 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
11078
df39ea25
TT
110792014-02-19 Tom Tromey <tromey@redhat.com>
11080
11081 * target.h (struct target_ops) <to_fileio_close>: Add argument.
11082 * target.c (target_fileio_close): Add argument.
11083 * remote.c (remote_hostio_close): Add 'self' argument.
11084 (remote_hostio_close_cleanup): Update.
11085 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
11086 Update.
11087 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
11088
a3be983c
TT
110892014-02-19 Tom Tromey <tromey@redhat.com>
11090
11091 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
11092 * target.c (target_fileio_pread): Add argument.
11093 * remote.c (remote_hostio_pread): Add 'self' argument.
11094 (remote_bfd_iovec_pread, remote_file_get): Update.
11095 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
11096
0d866f62
TT
110972014-02-19 Tom Tromey <tromey@redhat.com>
11098
11099 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
11100 * target.c (target_fileio_pwrite): Add argument.
11101 * remote.c (remote_hostio_pwrite): Add 'self' argument.
11102 (remote_file_put): Update.
11103 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
11104
cd897586
TT
111052014-02-19 Tom Tromey <tromey@redhat.com>
11106
11107 * target.h (struct target_ops) <to_fileio_open>: Add argument.
11108 * target.c (target_fileio_open): Add argument.
11109 * remote.c (remote_hostio_open): Add 'self' argument.
11110 (remote_bfd_iovec_open): Add 'self' argument.
11111 (remote_file_put): Add 'self' argument.
11112 (remote_file_get): Add 'self' argument.
11113 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
11114
78eff0ec
TT
111152014-02-19 Tom Tromey <tromey@redhat.com>
11116
11117 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
11118 Add argument.
11119 (target_can_run_breakpoint_commands): Add argument.
11120 * target.c (update_current_target): Update.
11121 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
11122 argument.
11123 (remote_insert_breakpoint): Add 'self' argument.
11124 (remote_insert_hw_breakpoint): Add 'self' argument.
11125 (remote_can_run_breakpoint_commands): Add 'self' argument.
11126
efcc2da7
TT
111272014-02-19 Tom Tromey <tromey@redhat.com>
11128
11129 * target.h (struct target_ops)
11130 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
11131 (target_supports_evaluation_of_breakpoint_conditions): Add
11132 argument.
11133 * target.c (update_current_target): Update.
11134 * remote.c (remote_supports_cond_breakpoints): Add 'self'
11135 argument.
11136 (remote_insert_breakpoint): Add 'self' argument.
11137 (remote_insert_hw_breakpoint): Add 'self' argument.
11138 (remote_supports_cond_breakpoints): Add 'self' argument.
11139
6de37a3a
TT
111402014-02-19 Tom Tromey <tromey@redhat.com>
11141
11142 * target.h (struct target_ops) <to_supports_string_tracing>: Add
11143 argument.
11144 (target_supports_string_tracing): Add argument.
11145 * target.c (update_current_target): Update.
11146 * remote.c (remote_supports_string_tracing): Add 'self' argument.
11147
2bfc0540
TT
111482014-02-19 Tom Tromey <tromey@redhat.com>
11149
11150 * target.h (struct target_ops)
11151 <to_supports_disable_randomization>: Add argument.
11152 * target.c (find_default_supports_disable_randomization): Add
11153 argument.
11154 (target_supports_disable_randomization): Add argument.
11155 (find_default_supports_disable_randomization): Add 'self'
11156 argument.
11157 * remote.c (extended_remote_supports_disable_randomization): Add
11158 'self' argument.
11159 (remote_supports_disable_randomization): Add 'self' argument.
11160 (extended_remote_create_inferior): Update.
11161 * linux-nat.c (linux_nat_supports_disable_randomization): Add
11162 'self' argument.
11163
7d178d6a
TT
111642014-02-19 Tom Tromey <tromey@redhat.com>
11165
11166 * target.h (struct target_ops)
11167 <to_supports_enable_disable_tracepoint>: Add argument.
11168 (target_supports_enable_disable_tracepoint): Add argument.
11169 * target.c (update_current_target): Update.
11170 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
11171 argument.
11172
86ce2668
TT
111732014-02-19 Tom Tromey <tromey@redhat.com>
11174
11175 * target.h (struct target_ops) <to_supports_multi_process>: Add
11176 argument.
11177 (target_supports_multi_process): Add argument.
11178 * target.c (update_current_target): Update.
11179 * remote.c (remote_supports_multi_process): Add 'self' argument.
11180 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
11181 argument.
11182 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
11183 argument.
11184
4c612759
TT
111852014-02-19 Tom Tromey <tromey@redhat.com>
11186
11187 * target.h (struct target_ops) <to_execution_direction>: Add
11188 argument.
11189 (target_execution_direction): Add argument.
11190 * target.c (default_execution_direction): Add 'self' argument.
11191 * record-full.c (record_full_execution_direction): Add 'self'
11192 argument.
11193
19db3e69
TT
111942014-02-19 Tom Tromey <tromey@redhat.com>
11195
11196 * target.h (struct target_ops) <to_can_execute_reverse>: Add
11197 argument.
11198 (target_can_execute_reverse): Add argument.
11199 * remote.c (remote_can_execute_reverse): Add 'self' argument.
11200 * record-full.c (record_full_can_execute_reverse): Add 'self'
11201 argument.
11202 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
11203 argument.
11204
1e6b91a4
TT
112052014-02-19 Tom Tromey <tromey@redhat.com>
11206
11207 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
11208 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
11209 argument.
11210 (target_get_ada_task_ptid): Add argument.
11211 * target.c (update_current_target): Update.
11212 (default_get_ada_task_ptid): Add 'self' argument.
11213 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
11214 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
11215 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
11216 argument.
11217 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
11218 argument.
11219 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
11220 argument.
11221 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
11222 argument.
11223 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
11224 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
11225 argument.
11226
3c80fb48
TT
112272014-02-19 Tom Tromey <tromey@redhat.com>
11228
11229 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
11230 (target_goto_bookmark): Add argument.
11231 * target.c (dummy_goto_bookmark): Add 'self' argument.
11232 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
11233
dd0e2830
TT
112342014-02-19 Tom Tromey <tromey@redhat.com>
11235
11236 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
11237 (target_get_bookmark): Add argument.
11238 * target.c (dummy_get_bookmark): Add 'self' argument.
11239 * record-full.c (record_full_get_bookmark): Add 'self' argument.
11240
fc6691b2
TT
112412014-02-19 Tom Tromey <tromey@redhat.com>
11242
11243 * target.h (struct target_ops) <to_make_corefile_notes>: Add
11244 argument.
11245 (target_make_corefile_notes): Add argument.
11246 * target.c (dummy_make_corefile_notes): Add 'self' argument.
11247 * procfs.c (procfs_make_note_section): Add 'self' argument.
11248 (procfs_make_note_section): Add 'self' argument.
11249 (procfs_make_note_section): Add 'self' argument.
11250 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
11251 argument.
11252 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
11253 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
11254 * exec.c (exec_make_note_section): Add 'self' argument.
11255 (exec_make_note_section): Add 'self' argument.
11256
2e73927c
TT
112572014-02-19 Tom Tromey <tromey@redhat.com>
11258
11259 * target.h (struct target_ops) <to_find_memory_regions>: Add
11260 argument.
11261 (target_find_memory_regions): Add argument.
11262 * target.c (dummy_find_memory_regions): Add 'self' argument.
11263 * procfs.c (proc_find_memory_regions): Add 'self' argument.
11264 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
11265 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
11266 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
11267 * exec. (exec_do_find_memory_regions): New global.
11268 (exec_set_find_memory_regions): Rewrite.
11269 (exec_find_memory_regions): New function.
11270 (init_exec_ops): Use exec_find_memory_regions.
11271
2a9a2795
TT
112722014-02-19 Tom Tromey <tromey@redhat.com>
11273
11274 * target.h (struct target_ops) <to_supports_non_stop>: Add
11275 argument.
11276 * target.c (find_default_supports_non_stop): Add argument.
11277 (target_supports_non_stop): Add argument.
11278 (find_default_supports_non_stop): Add 'self' argument.
11279 * remote.c (remote_supports_non_stop): Add 'self' argument.
11280 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
11281
4ab76ea3
TT
112822014-02-19 Tom Tromey <tromey@redhat.com>
11283
11284 * target.h (struct target_ops) <to_log_command>: Add argument.
11285 (target_log_command): Add argument.
11286 * serial.h (serial_log_command): Add 'self' argument.
11287 * serial.c (serial_log_command): Add 'self' argument.
11288
8dd27370
TT
112892014-02-19 Tom Tromey <tromey@redhat.com>
11290
11291 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
11292 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
11293 argument.
11294 (target_pid_to_exec_file): Add argument.
11295 * target.c (debug_to_pid_to_exec_file): Add argument.
11296 (update_current_target): Update.
11297 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
11298 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
11299 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
11300 (linux_handle_extended_wait): Update.
11301 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
11302 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
11303 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
11304 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
11305
1aac633b
TT
113062014-02-19 Tom Tromey <tromey@redhat.com>
11307
11308 * target.h (struct target_ops) <to_rcmd>: Add argument.
11309 (target_rcmd): Add argument.
11310 * target.c (debug_to_rcmd): Add argument.
11311 (update_current_target, do_monitor_command): Update.
11312 * remote.c (remote_rcmd): Add 'self' argument.
11313 * monitor.c (monitor_rcmd): Add 'self' argument.
11314
1eab8a48
TT
113152014-02-19 Tom Tromey <tromey@redhat.com>
11316
11317 * windows-nat.c (windows_stop): Add 'self' argument.
11318 * target.h (struct target_ops) <to_stop>: Add argument.
11319 * target.c (target_stop): Add argument.
11320 (debug_to_stop): Add argument.
11321 (update_current_target): Update.
11322 * remote.c (remote_stop): Add 'self' argument.
11323 * remote-sim.c (gdbsim_stop): Add 'self' argument.
11324 (gdbsim_cntrl_c): Update.
11325 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
11326 * procfs.c (procfs_stop): Add 'self' argument.
11327 * nto-procfs.c (procfs_stop): Add 'self' argument.
11328 * monitor.c (monitor_stop): Add 'self' argument.
11329 (monitor_open): Update.
11330 * linux-nat.c (linux_nat_stop): Add argument.
11331 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
11332 * gnu-nat.c (gnu_stop): Add 'self' argument.
11333 * darwin-nat.c (darwin_stop): Add 'self' argument.
11334
503a628d
TT
113352014-02-19 Tom Tromey <tromey@redhat.com>
11336
11337 * target.h (struct target_ops) <to_thread_name>: Add argument.
11338 * target.c (target_thread_name): Add argument.
11339 (update_current_target): Update.
11340 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
11341
c15906d8
TT
113422014-02-19 Tom Tromey <tromey@redhat.com>
11343
11344 * target.h (struct target_ops) <to_extra_thread_info>: Add
11345 argument.
11346 (target_extra_thread_info): Add argument.
11347 * target.c (update_current_target): Update.
11348 * remote.c (remote_threads_extra_info): Add 'self' argument.
11349 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
11350 argument.
11351 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
11352 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
11353 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
11354 argument.
11355 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
11356 argument.
11357 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
11358 argument.
11359 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
11360 argument.
11361
daf5e9b6
TT
113622014-02-19 Tom Tromey <tromey@redhat.com>
11363
11364 * target.h (struct target_ops) <to_program_signals>: Add argument.
11365 * target.c (target_program_signals): Add argument.
11366 * remote.c (remote_program_signals): Add 'self' argument.
11367
94bedb42
TT
113682014-02-19 Tom Tromey <tromey@redhat.com>
11369
11370 * target.h (struct target_ops) <to_pass_signals>: Add argument.
11371 * target.c (target_pass_signals): Add argument.
11372 * remote.c (remote_pass_signals): Add 'self' argument.
11373 (remote_start_remote): Update.
11374 * procfs.c (procfs_pass_signals): Add 'self' argument.
11375 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
11376 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
11377 (linux_nat_create_inferior, linux_nat_attach): Update.
11378
da82bd6b
TT
113792014-02-19 Tom Tromey <tromey@redhat.com>
11380
11381 * windows-nat.c (windows_can_run): Add 'self' argument.
11382 * target.h (struct target_ops) <to_can_run>: Add argument.
11383 (target_can_run): Add argument.
11384 * target.c (debug_to_can_run): Add argument.
11385 (update_current_target): Update.
11386 * nto-procfs.c (procfs_can_run): Add 'self' argument.
11387 * inf-child.c (inf_child_can_run): Add 'self' argument.
11388 * go32-nat.c (go32_can_run): Add 'self' argument.
11389
d796e1d6
TT
113902014-02-19 Tom Tromey <tromey@redhat.com>
11391
11392 * target.h (struct target_ops) <to_has_exited>: Add argument.
11393 (target_has_exited): Add argument.
11394 * target.c (debug_to_has_exited): Add argument.
11395 (update_current_target): Update.
11396
ff214e67
TT
113972014-02-19 Tom Tromey <tromey@redhat.com>
11398
11399 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
11400 argument.
11401 (target_set_syscall_catchpoint): Add argument.
11402 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
11403 argument.
11404 * target.c (update_current_target): Update.
11405
758e29d2
TT
114062014-02-19 Tom Tromey <tromey@redhat.com>
11407
11408 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
11409 argument.
11410 (target_remove_exec_catchpoint): Add argument.
11411 * target.c (debug_to_remove_exec_catchpoint): Add argument.
11412 (update_current_target): Update.
11413 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
11414 argument.
11415
ba025e51
TT
114162014-02-19 Tom Tromey <tromey@redhat.com>
11417
11418 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
11419 argument.
11420 (target_insert_exec_catchpoint): Add argument.
11421 * target.c (debug_to_insert_exec_catchpoint): Add argument.
11422 (update_current_target): Update.
11423 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
11424 argument.
11425
e98cf0cd
TT
114262014-02-19 Tom Tromey <tromey@redhat.com>
11427
11428 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
11429 argument.
11430 (target_remove_vfork_catchpoint): Add argument.
11431 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
11432 (update_current_target): Update.
11433 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
11434 argument.
11435
3ecc7da0
TT
114362014-02-19 Tom Tromey <tromey@redhat.com>
11437
11438 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
11439 argument.
11440 (target_insert_vfork_catchpoint): Add argument.
11441 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
11442 (update_current_target): Update.
11443 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
11444 argument.
11445
973fc227
TT
114462014-02-19 Tom Tromey <tromey@redhat.com>
11447
11448 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
11449 argument.
11450 (target_remove_fork_catchpoint): Add argument.
11451 * target.c (debug_to_remove_fork_catchpoint): Add argument.
11452 (update_current_target): Update.
11453 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
11454 argument.
11455
a863b201
TT
114562014-02-19 Tom Tromey <tromey@redhat.com>
11457
11458 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
11459 argument.
11460 (target_insert_fork_catchpoint): Add argument.
11461 * target.c (debug_to_insert_fork_catchpoint): Add argument.
11462 (update_current_target): Update.
11463 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
11464 argument.
11465
2e97a79e
TT
114662014-02-19 Tom Tromey <tromey@redhat.com>
11467
11468 * target.h (struct target_ops) <to_post_startup_inferior>: Add
11469 argument.
11470 (target_post_startup_inferior): Add argument.
11471 * target.c (debug_to_post_startup_inferior): Add argument.
11472 (update_current_target): Update.
11473 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
11474 argument.
11475 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
11476 argument.
11477 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
11478 argument.
11479 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
11480 argument.
11481 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
11482 'self' argument.
11483 (super_post_startup_inferior): Likewise.
11484 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
11485 'self' argument.
11486 (super_post_startup_inferior): Likewise.
11487 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
11488 Add 'self' argument.
11489 (super_post_startup_inferior): Likewise.
11490
71a9f134
TT
114912014-02-19 Tom Tromey <tromey@redhat.com>
11492
11493 * target.h (struct target_ops) <to_load>: Add argument.
11494 * target.c (target_load): Add argument.
11495 (debug_to_load): Add argument.
11496 (update_current_target): Update.
11497 * remote.c (remote_load): Add 'self' argument.
11498 * remote-sim.c (gdbsim_load): Add 'self' argument.
11499 * remote-mips.c (mips_load): Add 'self' argument.
11500 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
11501 * monitor.c (monitor_load): Add 'self' argument.
11502 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
11503
0a4f40a2
TT
115042014-02-19 Tom Tromey <tromey@redhat.com>
11505
11506 * target.h (struct target_ops) <to_terminal_info>: Add argument.
11507 (target_terminal_info): Add argument.
11508 * target.c (debug_to_terminal_info): Add argument.
11509 (default_terminal_info): Likewise.
11510 * inflow.c (child_terminal_info): Add 'self' argument.
11511 * inferior.h (child_terminal_info): Add 'self' argument.
11512 * go32-nat.c (go32_terminal_info): Add 'self' argument.
11513
ae3bd431
TT
115142014-02-19 Tom Tromey <tromey@redhat.com>
11515
11516 * target.h (struct target_ops) <to_terminal_save_ours>: Add
11517 argument.
11518 (target_terminal_save_ours): Add argument.
11519 * target.c (debug_to_terminal_save_ours): Add argument.
11520 (update_current_target): Update.
11521 * inflow.c (terminal_save_ours): Add 'self' argument.
11522 * inferior.h (terminal_save_ours): Add 'self' argument.
11523
e3594fd1
TT
115242014-02-19 Tom Tromey <tromey@redhat.com>
11525
11526 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
11527 (target_terminal_ours): Add argument.
11528 * target.c (debug_to_terminal_ours): Add argument.
11529 (update_current_target): Update.
11530 * remote.c (remote_terminal_ours): Add 'self' argument.
11531 (remote_close): Update.
11532 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
11533 * inflow.c (terminal_ours): Add 'self' argument.
11534 * inferior.h (terminal_ours): Add 'self' argument.
11535 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11536
2e1e1a19
TT
115372014-02-19 Pedro Alves <palves@redhat.com>
11538 Tom Tromey <tromey@redhat.com>
11539
11540 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
11541 argument.
11542 (target_terminal_ours_for_output): Add argument.
11543 * target.c (debug_to_terminal_ours_for_output): Add argument.
11544 (update_current_target): Update.
11545 * inflow.c (terminal_ours_for_output): Add 'self' argument.
11546 * inferior.h (terminal_ours_for_output): Add 'self' argument.
11547 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11548
d2f640d4
TT
115492014-02-19 Tom Tromey <tromey@redhat.com>
11550
11551 * target.h (struct target_ops) <to_terminal_inferior>: Add
11552 argument.
11553 * target.c (target_terminal_inferior): Add argument.
11554 (update_current_target): Update.
11555 * remote.c (remote_terminal_inferior): Add 'self' argument.
11556 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
11557 * inflow.c (terminal_inferior): Add 'self' argument.
11558 * inferior.h (terminal_inferior): Add 'self' argument.
11559 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
11560 (go32_terminal_inferior): Add 'self' argument.
11561
c42bf286
TT
115622014-02-19 Tom Tromey <tromey@redhat.com>
11563
11564 * target.h (struct target_ops) <to_terminal_init>: Add argument.
11565 (target_terminal_init): Add argument.
11566 * target.c (debug_to_terminal_init): Add argument.
11567 (update_current_target): Update.
11568 * inflow.c (terminal_init_inferior): Add 'self' argument.
11569 * inferior.h (terminal_init_inferior): Add 'self' argument.
11570 * go32-nat.c (go32_terminal_init): Add 'self' argument.
11571 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
11572
c3a5ff89
TT
115732014-02-19 Tom Tromey <tromey@redhat.com>
11574
11575 * target.h (struct target_ops)
11576 <to_can_accel_watchpoint_condition>: Add argument.
11577 (target_can_accel_watchpoint_condition): Add argument.
11578 * target.c (debug_to_can_accel_watchpoint_condition): Add
11579 argument.
11580 (update_current_target): Update.
11581 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
11582 'self' argument.
11583
31568a15
TT
115842014-02-19 Tom Tromey <tromey@redhat.com>
11585
11586 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11587 Add argument.
11588 (target_region_ok_for_hw_watchpoint): Add argument.
11589 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
11590 (default_region_ok_for_hw_watchpoint): Add argument.
11591 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
11592 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
11593 argument.
11594 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
11595 argument.
11596 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
11597 argument.
11598 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
11599 'self' argument.
11600 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
11601 'self' argument.
11602 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
11603 'self' argument.
11604 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
11605 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
11606 'self' argument.
11607 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
11608 Add 'self' argument.
11609
7bb99c53
TT
116102014-02-19 Tom Tromey <tromey@redhat.com>
11611
11612 * target.h (struct target_ops) <to_insert_watchpoint>: Add
11613 argument.
11614 (target_insert_watchpoint): Add argument.
11615 * target.c (debug_to_insert_watchpoint): Add argument.
11616 (update_current_target): Update.
11617 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
11618 * remote.c (remote_insert_watchpoint): Add 'self' argument.
11619 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
11620 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
11621 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
11622 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
11623 argument.
11624 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
11625 (procfs_insert_hw_watchpoint): Add 'self' argument.
11626 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
11627 argument.
11628 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
11629 argument.
11630 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
11631 argument.
11632 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
11633 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
11634 argument.
11635 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
11636 'self' argument.
11637
11b5219a
TT
116382014-02-19 Tom Tromey <tromey@redhat.com>
11639
11640 * target.h (struct target_ops) <to_remove_watchpoint>: Add
11641 argument.
11642 (target_remove_watchpoint): Add argument.
11643 * target.c (debug_to_remove_watchpoint): Add argument.
11644 (update_current_target): Update.
11645 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
11646 * remote.c (remote_remove_watchpoint): Add 'self' argument.
11647 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
11648 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
11649 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
11650 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
11651 argument.
11652 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
11653 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
11654 argument.
11655 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
11656 argument.
11657 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
11658 argument.
11659 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
11660 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
11661 argument.
11662 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
11663 'self' argument.
11664
a64dc96c
TT
116652014-02-19 Tom Tromey <tromey@redhat.com>
11666
11667 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
11668 argument.
11669 (target_remove_hw_breakpoint): Add argument.
11670 * target.c (debug_to_remove_hw_breakpoint): Add argument.
11671 (update_current_target): Update.
11672 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
11673 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
11674 argument.
11675 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
11676 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
11677 argument.
11678 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
11679 'self' argument.
11680
23a26771
TT
116812014-02-19 Tom Tromey <tromey@redhat.com>
11682
11683 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
11684 argument.
11685 (target_insert_hw_breakpoint): Add argument.
11686 * target.c (debug_to_insert_hw_breakpoint): Add argument.
11687 (update_current_target): Update.
11688 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
11689 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
11690 argument.
11691 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
11692 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
11693 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
11694 argument.
11695 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
11696 'self' argument.
11697
5461485a
TT
116982014-02-19 Tom Tromey <tromey@redhat.com>
11699
11700 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
11701 argument.
11702 (target_can_use_hardware_watchpoint): Add argument.
11703 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
11704 (update_current_target): Update.
11705 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
11706 argument.
11707 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
11708 argument.
11709 * remote.c (remote_check_watch_resources): Add 'self' argument.
11710 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
11711 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
11712 argument.
11713 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
11714 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
11715 argument.
11716 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
11717 argument.
11718 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
11719 argument.
11720 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
11721 argument.
11722 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
11723 argument.
11724 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
11725 argument.
11726 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
11727 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
11728 argument.
11729 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
11730 'self' argument.
11731
f045800c
TT
117322014-02-19 Tom Tromey <tromey@redhat.com>
11733
11734 * target.h (struct target_ops) <to_post_attach>: Add argument.
11735 (target_post_attach): Add argument.
11736 * target.c (debug_to_post_attach): Add argument.
11737 (update_current_target): Update.
11738 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
11739 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
11740 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
11741 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
11742 * inf-child.c (inf_child_post_attach): Add 'self' argument.
11743
de90e03d
TT
117442014-02-19 Tom Tromey <tromey@redhat.com>
11745
11746 * windows-nat.c (windows_close): Add 'self' argument.
11747 * tracepoint.c (tfile_close): Add 'self' argument.
11748 * target.h (struct target_ops) <to_close>: Add argument.
11749 * target.c (target_close): Add argument.
11750 (update_current_target): Update.
11751 * remote.c (remote_close): Add 'self' argument.
11752 * remote-sim.c (gdbsim_close): Add 'self' argument.
11753 * remote-mips.c (mips_close): Add 'self' argument.
11754 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
11755 * record-full.c (record_full_close): Add 'self' argument.
11756 * record-btrace.c (record_btrace_close): Add 'self' argument.
11757 * monitor.h (monitor_close): Add 'self' argument.
11758 * monitor.c (monitor_close): Add 'self' argument.
11759 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
11760 * linux-nat.c (linux_nat_close): Add argument.
11761 * go32-nat.c (go32_close): Add 'self' argument.
11762 * exec.c (exec_close_1): Add 'self' argument.
11763 * ctf.c (ctf_close): Add 'self' argument.
11764 * corelow.c (core_close): Add 'self' argument.
11765 (core_close_cleanup): Update.
11766 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
11767 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
11768
9dd130a0
TT
117692014-02-19 Tom Tromey <tromey@redhat.com>
11770
11771 * remote.c (remote_load): New function.
11772 (init_remote_ops): Use it.
11773
46917d26
TT
117742014-02-19 Tom Tromey <tromey@redhat.com>
11775
11776 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
11777 argument.
11778 * common/linux-btrace.h (linux_supports_btrace): Update.
11779 * remote.c (remote_supports_btrace): Add "self" argument.
11780 * target-delegates.c: Rebuild.
11781 * target.c (target_supports_btrace): Remove.
11782 * target.h (struct target_ops) <to_supports_btrace>: Add
11783 target_ops argument.
11784 (target_supports_btrace): New define.
11785
6b84065d
TT
117862014-02-19 Tom Tromey <tromey@redhat.com>
11787
11788 * record-full.c (record_full_beneath_to_resume_ops)
11789 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
11790 (record_full_beneath_to_wait)
11791 (record_full_beneath_to_store_registers_ops)
11792 (record_full_beneath_to_store_registers)
11793 (record_full_beneath_to_xfer_partial_ops)
11794 (record_full_beneath_to_xfer_partial)
11795 (record_full_beneath_to_insert_breakpoint_ops)
11796 (record_full_beneath_to_insert_breakpoint)
11797 (record_full_beneath_to_remove_breakpoint_ops)
11798 (record_full_beneath_to_remove_breakpoint)
11799 (record_full_beneath_to_stopped_by_watchpoint)
11800 (record_full_beneath_to_stopped_data_address)
11801 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
11802 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
11803 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
11804 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
11805 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
11806 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
11807 (tmp_to_stopped_data_address, tmp_to_async): Remove.
11808 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
11809 (record_full_resume, record_full_wait_1)
11810 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
11811 (record_full_store_registers, record_full_xfer_partial)
11812 (record_full_insert_breakpoint, record_full_remove_breakpoint)
11813 (record_full_async, record_full_core_xfer_partial): Use target
11814 delegation.
11815 * target-delegates.c: Rebuild.
11816 * target.c (current_xfer_partial): Remove.
11817 (update_current_target): Do not INHERIT or de_fault
11818 to_insert_breakpoint, to_remove_breakpoint,
11819 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
11820 to_is_async_p, to_async. Do not set to_xfer_partial field.
11821 (default_xfer_partial): Simplify.
11822 (current_xfer_partial): Remove.
11823 (target_wait, target_resume): Simplify.
11824 (find_default_can_async_p, find_default_is_async_p): Update.
11825 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
11826 to_xfer_partial, to_stopped_by_watchpoint,
11827 to_stopped_data_address.
11828 (target_store_registers): Simplify.
11829 (forward_target_remove_breakpoint)
11830 (forward_target_insert_breakpoint): Remove.
11831 (target_remove_breakpoint, target_insert_breakpoint)
11832 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
11833 * target.h (struct target_ops) <to_resume, to_wait,
11834 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
11835 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
11836 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
11837 markup.
11838 (forward_target_remove_breakpoint)
11839 (forward_target_insert_breakpoint): Remove.
11840 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
11841 directly.
11842 (record_btrace_insert_breakpoint): Delegate directly.
11843
1101cb7b
TT
118442014-02-19 Tom Tromey <tromey@redhat.com>
11845
11846 PR build/7701:
11847 * target-delegates.c: New file.
11848 * target.c: Include target-delegates.c.
11849 (init_dummy_target): Call install_dummy_methods.
11850 (complete_target_initialization): Call install_delegators.
11851 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
11852 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
11853 * make-target-delegates: New file.
11854
8b06beed
TT
118552014-02-19 Tom Tromey <tromey@redhat.com>
11856
11857 * record.c (find_record_target): Use find_target_at.
11858 * target.c (find_target_at): New function.
11859 * target.h (find_target_at): Declare.
11860
6a109b6b
TT
118612014-02-19 Tom Tromey <tromey@redhat.com>
11862
11863 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
11864 Add 'ops' argument.
11865 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
11866 'ops' argument.
11867 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
11868 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
11869 'ops' argument.
11870 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
11871 argument.
11872 * linux-nat.c (save_sigtrap): Update.
11873 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
11874 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
11875 (linux_nat_close): Update.
11876 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
11877 argument.
11878 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
11879 argument.
11880 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
11881 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
11882 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
11883 (tmp_to_async): Add 'ops' argument.
11884 (record_full_stopped_by_watchpoint, record_full_async)
11885 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
11886 argument.
11887 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
11888 (m32r_stopped_by_watchpoint): Add 'ops' argument.
11889 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
11890 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
11891 (remote_is_async_p, remote_async): Add 'ops' argument.
11892 (remote_stopped_data_address): Update.
11893 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
11894 * target.c (update_current_target)
11895 (find_default_can_async_p, find_default_is_async_p): Update.
11896 (init_dummy_target): Update.
11897 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
11898 * target.h (struct target_ops) <to_stopped_by_watchpoint,
11899 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
11900 (target_can_async_p, target_is_async_p, target_async)
11901 (target_stopped_by_watchpoint): Update.
11902
e095146b
YQ
119032014-02-19 Yao Qi <yao@codesourcery.com>
11904
11905 PR gdb/16220
11906 * gdbarch.sh: Remove startup_gdbarch.
11907 * gdbarch.c: Regenerated.
11908 * gdbarch.h: Likewise.
11909
bc3c6b36
KB
119102014-02-17 Kevin Buettner <kevinb@redhat.com>
11911
11912 * rl78-tdep.c (rl78_g10_register_name): New function.
11913 (rl78_return_value): Add g10 support.
11914 (rl78_gdbarch_init): Register rl78_g10_register_name for the
11915 g10.
11916
98dc0167 119172014-02-17 Doug Evans <xdje42@gmail.com>
f01c1940
DE
11918
11919 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
11920 (SUBDIR_GUILE_SRCS): Ditto.
11921 (scm-gsmob.o): Ditto.
11922
842c05cd
YQ
119232014-02-17 Yao Qi <yao@codesourcery.com>
11924
11925 * gnu-nat.c (ILL_RPC): Declare defined function.
11926
25c0bd04
YQ
119272014-02-17 Yao Qi <yao@codesourcery.com>
11928
11929 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
11930 mach_msg_type_number_t.
11931 (gnu_write_inferior): Likewise.
11932
a9a758e3
YQ
119332014-02-17 Yao Qi <yao@codesourcery.com>
11934
11935 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
11936 in format string.
11937 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
11938 (inf_validate_procs, inf_signal): Likewise.
11939 (S_exception_raise_request): Likewise.
11940 (do_mach_notify_dead_name): Likewise.
11941 (steal_exc_port): Likewise.
11942 (gnu_read_inferior): Change 'copy_count''s type to
11943 mach_msg_type_number_t.
11944 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
11945 format string.
11946
bae8023e
TS
119472014-02-16 Thomas Schwinge <thomas@codesourcery.com>
11948
c82f56d9
TS
11949 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
11950 flag. Adjust all users; in particular...
11951 (gnu_wait): ..., don't decrement its value in here...
11952 (gnu_create_inferior): ..., and instead set the flag in here,
11953 around the startup_inferior call, and call that one with
11954 START_INFERIOR_TRAPS_EXPECTED.
11955
3398af6a
TS
11956 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
11957 (ILL_RPC): ... new macro.
11958 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
11959 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
11960 (do_mach_notify_send_once, S_proc_setmsgport_reply)
11961 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
11962 functions with ILL_RPC macro.
11963 (S_proc_pid2task_reply, S_proc_task2pid_reply)
11964 (S_proc_task2proc_reply, S_proc_proc2task_reply)
11965 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
11966 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
11967 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
11968 (S_proc_getlogin_reply, S_proc_getsid_reply)
11969 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
11970 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
11971 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
11972 (S_proc_getnports_reply, S_proc_is_important_reply)
11973 (S_proc_get_code_reply): New stub functions, generated with
11974 ILL_RPC macro.
11975
d47642c9
TS
11976 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
11977 collected the type check structures.
11978
bae8023e
TS
11979 * reply_mig_hack.awk: Don't expect to see the auto keyword.
11980
8a55ffb0
DE
119812014-02-14 Doug Evans <dje@google.com>
11982
11983 * target.c (target_write_partial): Fix result type.
11984
c2853f3d
JM
119852014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
11986
11987 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
11988 the proper offsets to access fpregset_t.
11989
ac61d2db
SA
119902014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
11991
11992 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
11993 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
11994 * h8300-tdep.c (setmachinelist): Remove global.
11995 * hppa-tdep.c (hppa_sigtramp): Remove global.
11996 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
11997 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
11998 * ravenscar-thread.c (update_target_observer): Remove global.
11999 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
12000
9d2d0b8b
TT
120012014-02-12 Tom Tromey <tromey@redhat.com>
12002
12003 * common/rsp-low.c: Update comments.
12004 * common/rsp-low.h: Update comments.
12005
a7191e8b
TT
120062014-02-12 Tom Tromey <tromey@redhat.com>
12007
12008 * common/rsp-low.c (convert_ascii_to_int): Remove.
12009 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
12010
ff0e980e
TT
120112014-02-12 Tom Tromey <tromey@redhat.com>
12012
12013 * common/rsp-low.h (unhexify): Don't declare.
12014 * common/rsp-low.c (unhexify): Remove.
12015
e9371aff
TT
120162014-02-12 Tom Tromey <tromey@redhat.com>
12017
12018 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
12019 * common/rsp-low.c (convert_int_to_ascii): Remove.
12020
971dc0b8
TT
120212014-02-12 Tom Tromey <tromey@redhat.com>
12022
12023 * common/rsp-low.h (hexify): Don't declare.
12024 * common/rsp-low.c (hexify): Remove.
12025
0a822afb
TT
120262014-02-12 Tom Tromey <tromey@redhat.com>
12027
12028 * common/rsp-low.c (hexify): Never take strlen of argument.
12029
9f1b45b0
TT
120302014-02-12 Tom Tromey <tromey@redhat.com>
12031
12032 * common/rsp-low.c (bin2hex): Never take strlen of argument.
12033 * remote.c (extended_remote_run, remote_rcmd)
12034 (remote_download_trace_state_variable, remote_save_trace_data)
12035 (remote_set_trace_notes): Update.
12036 * tracepoint.c (encode_source_string, tfile_write_status)
12037 (tfile_write_uploaded_tsv): Update.
12038
9c3d6531
TT
120392014-02-12 Tom Tromey <tromey@redhat.com>
12040
12041 * tracepoint.c: Include rsp-low.h.
12042 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
12043 * remote.c: Include rsp-low.h.
12044 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
12045 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
12046 (remote_unescape_input): Move to common/rsp-low.c.
12047 * common/rsp-low.h: New file.
12048 * common/rsp-low.c: New file.
12049 * Makefile.in (SFILES): Add common/rsp-low.c.
12050 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
12051 (COMMON_OBS): Add rsp-low.o.
12052 (rsp-low.o): New target.
12053
01fd3ea5
TT
120542014-02-12 Tom Tromey <tromey@redhat.com>
12055
12056 * utils.h: Include print-utils.h.
12057 (host_address_to_string, plongest, pulongest, phex, phex_nz)
12058 (int_string, core_addr_to_string, core_addr_to_string_nz)
12059 (hex_string, hex_string_custom): Don't declare.
12060 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
12061 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
12062 (hex_string_custom, int_string, core_addr_to_string)
12063 (core_addr_to_string_nz, host_address_to_string): Move to
12064 common/print-utils.c.
12065 * common/print-utils.h: New file.
12066 * common/print-utils.c: New file
12067 * Makefile.in (SFILES): Add common/print-utils.c.
12068 (HFILES_NO_SRCDIR): Add common/print-utils.h.
12069 (COMMON_OBS): Add print-utils.o.
12070 (print-utils.o): New target.
12071
9fb50108
TT
120722014-02-12 Tom Tromey <tromey@redhat.com>
12073
12074 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
12075
0548b5db
MK
120762014-02-12 Mark Kettenis <kettenis@gnu.org>
12077
12078 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
12079
493443a4
MK
120802014-02-12 Mark Kettenis <kettenis@gnu.org>
12081
12082 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
12083 if a PT_IO ptrace request returns sucessfully but indicates that 0
12084 bytes were transferred.
12085
706d0883
PA
120862014-02-12 Pedro Alves <palves@redhat.com>
12087 Kevin Buettner <kevinb@redhat.com>
12088
12089 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
12090 TYPE_INSTANCE_FLAG_CODE_SPACE.
12091
5caa2f0b
PA
120922014-02-12 Pedro Alves <palves@redhat.com>
12093
12094 * h8300-tdep.c (pseudo_from_raw_register)
12095 (raw_from_pseudo_register): New functions.
12096 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
12097 them.
12098
76fd5f74
PA
120992014-02-12 Pedro Alves <palves@redhat.com>
12100
12101 * h8300-tdep.c (h8300_register_sim_regno): New function.
12102 (h8300_gdbarch_init): Install h8300_register_sim_regno as
12103 gdbarch_register_sim_regno hook.
12104
8f008406
SA
121052014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
12106
12107 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
12108
195abc10
SA
121092014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
12110
12111 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
12112
93ffa5b9
MK
121132014-02-12 Mark Kettenis <kettenis@gnu.org>
12114
12115 * obsd-tdep.h (obsd_init_abi): New prototype.
12116 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
12117 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
12118 (obsd_init_abi): New functions.
12119 * i386obsd-tdep.c: Include "obsd-tdep.h".
12120 (i386obsd_init_abi): Call obsd_init_abi.
12121 * amd64obsd-tdep.c: Include "obsd-tdep.h".
12122 (amd64obsd_init_abi): Call obsd_init_abi.
12123 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
12124 obsd-tdep.c to gdb_target_obs.
12125
49caec94
JM
121262014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
12127
12128 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
12129 double float arguments to 16-byte in the argument slots.
12130
e1402065
DE
121312014-02-11 Doug Evans <xdje42@gmail.com>
12132
12133 * configure.ac: Don't crash if pkg-config is not found and guile
12134 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
12135 in guile checks.
12136 * configure: Regenerate.
12137
edcc890f
YQ
121382014-02-11 Yao Qi <yao@codesourcery.com>
12139
12140 * aix-thread.c (aix_thread_xfer_partial): Update comments.
12141 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
12142 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
12143 * gnu-nat.c (gnu_xfer_memory): Likewise.
12144 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
12145 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12146 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12147 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12148
9b409511
YQ
121492014-02-11 Yao Qi <yao@codesourcery.com>
12150
12151 * target.h (enum target_xfer_error): Rename to ...
12152 (enum target_xfer_status): ... it. New. All users updated.
12153 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
12154 New.
12155 (TARGET_XFER_STATUS_ERROR_P): New macro.
12156 (target_xfer_error_to_string): Remove declaration.
12157 (target_xfer_status_to_string): Declare.
12158 (target_xfer_partial_ftype): Adjust it.
12159 (struct target_ops) <to_xfer_partial>: Return
12160 target_xfer_status. Add argument xfered_len. Update
12161 comments.
12162 * target.c (target_xfer_error_to_string): Rename to ...
12163 (target_xfer_status_to_string): ... it. New. All callers
12164 updated.
12165 (target_read_live_memory): Likewise. Call target_xfer_partial
12166 instead of target_read.
12167 (memory_xfer_live_readonly_partial): Return
12168 target_xfer_status. Add argument xfered_len.
12169 (raw_memory_xfer_partial): Likewise.
12170 (memory_xfer_partial_1): Likewise.
12171 (memory_xfer_partial): Likewise.
12172 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
12173 properly. Update debug message.
12174 (default_xfer_partial, current_xfer_partial): Likewise.
12175 (target_write_partial): Likewise.
12176 (target_read_partial): Likewise. All callers updated.
12177 (read_whatever_is_readable): Likewise.
12178 (target_write_with_progress): Likewise.
12179 (target_read_alloc_1): Likewise.
12180
12181 * aix-thread.c (aix_thread_xfer_partial): Likewise.
12182 * auxv.c (procfs_xfer_auxv): Likewise.
12183 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
12184 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12185 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12186 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
12187 * corefile.c (read_memory): Adjust.
12188 * corelow.c (core_xfer_partial): Likewise.
12189 * ctf.c (ctf_xfer_partial): Likewise.
12190 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
12191 updated.
12192 (darwin_xfer_partial): Likewise.
12193 * exec.c (section_table_xfer_memory_partial): Likewise. All
12194 callers updated.
12195 (exec_xfer_partial): Likewise.
12196 * exec.h (section_table_xfer_memory_partial): Update
12197 declaration.
12198 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
12199 negative.
12200 (gnu_xfer_partial): Likewise.
12201 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
12202 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
12203 (ia64_hpux_xfer_solib_got): Likewise.
12204 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
12205 type of 'partial_len' to ULONGEST.
12206 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
12207 * linux-nat.c (linux_xfer_siginfo ): Likewise.
12208 (linux_nat_xfer_partial): Likewise.
12209 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
12210 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
12211 * monitor.c (monitor_xfer_memory): Likewise.
12212 (monitor_xfer_partial): Likewise.
12213 * procfs.c (procfs_xfer_partial): Likewise.
12214 * record-btrace.c (record_btrace_xfer_partial): Likewise.
12215 * record-full.c (record_full_xfer_partial): Likewise.
12216 (record_full_core_xfer_partial): Likewise.
12217 * remote-sim.c (gdbsim_xfer_memory): Likewise.
12218 (gdbsim_xfer_partial): Likewise.
12219 * remote.c (remote_write_bytes_aux): Likewise. All callers
12220 updated.
12221 (remote_write_bytes, remote_read_bytes): Likewise. All
12222 callers updated.
12223 (remote_flash_erase): Likewise. All callers updated.
12224 (remote_write_qxfer): Likewise. All callers updated.
12225 (remote_read_qxfer): Likewise. All callers updated.
12226 (remote_xfer_partial): Likewise.
12227 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12228 (rs6000_xfer_shared_libraries): Likewise.
12229 * sol-thread.c (sol_thread_xfer_partial): Likewise.
12230 (sol_thread_xfer_partial): Likewise.
12231 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12232 (sparc_xfer_partial): Likewise.
12233 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
12234 updated.
12235 (spu_xfer_partial): Likewise.
12236 * spu-multiarch.c (spu_xfer_partial): Likewise.
12237 * tracepoint.c (tfile_xfer_partial): Likewise.
12238 * windows-nat.c (windows_xfer_memory): Likewise.
12239 (windows_xfer_shared_libraries): Likewise.
12240 (windows_xfer_partial): Likewise.
12241 * valprint.c: Replace 'target_xfer_error' with
12242 'target_xfer_status' in comments.
12243
a8e63083
JB
122442014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
12245
12246 Checked in by Joel Brobecker <brobecker@adacore.com>.
12247 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
12248
e86b67d3
JB
122492014-02-11 Joel Brobecker <brobecker@adacore.com>
12250
12251 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
12252 function parameters.
12253
4b7d1f7f
WN
122542014-02-10 Will Newton <will.newton@linaro.org>
12255
12256 * elfread.c (elf_rel_plt_read): Look for a .got section if
12257 looking up .got.plt fails.
12258 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
12259 on address passed to elf_gnu_ifunc_record_cache.
12260 (elf_gnu_ifunc_resolve_addr): Likewise.
12261 (elf_gnu_ifunc_resolver_return_stop): Likewise.
12262
961842b2
JM
122632014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
12264
12265 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
12266 (X_RETTURN): New macro.
12267 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
12268
12269 * sparc64-tdep.c (sparc64_init_abi): Hook
12270 sparc_in_function_epilogue_p.
12271
3f03e7b1
GB
122722014-02-10 Gary Benson <gbenson@redhat.com>
12273
12274 * symfile-debug.c (debug_qf_expand_symtabs_matching):
12275 Rename name_matcher to symbol_matcher.
12276
96f861ef
GB
122772014-02-10 Gary Benson <gbenson@redhat.com>
12278
12279 * symfile-debug.c (debug_qf_expand_symtabs_matching):
12280 Use expand_symtabs_file_matcher_ftype and
12281 expand_symtabs_symbol_matcher_ftype.
12282
ee01b665
JB
122832014-02-10 Joel Brobecker <brobecker@adacore.com>
12284
12285 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
12286 (struct ada_symbol_cache): New.
12287 (ada_free_symbol_cache): Forward declare.
12288 (struct ada_pspace_data): New.
12289 (ada_pspace_data_handle): New static global.
12290 (get_ada_pspace_data, ada_pspace_data_cleanup)
12291 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
12292 (cache_space, cache): Delete, now folded inside struct
12293 ada_pspace_data.
12294 (ada_get_symbol_cache): New function.
12295 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
12296 implementation.
12297 (_initialize_ada_language): Remove initialization of cache_space.
12298 Move call to observer_attach_inferior_exit up, grouping it
12299 with the other observer registrations inside this function.
12300 Rename command to be more general. Add call to
12301 register_program_space_data_with_cleanup.
12302
143adbbf
JB
123032014-02-10 Joel Brobecker <brobecker@adacore.com>
12304
12305 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
12306 ada_new_objfile_observer.
12307 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
12308 (_initialize_tasks): Update uses of ada_new_objfile_observer
12309 and ada_tasks_normal_stop_observer.
12310
aa4fb036
JB
123112014-02-10 Joel Brobecker <brobecker@adacore.com>
12312
12313 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
12314 returned by the 'Length attribute to integer.
12315
9dee8cc6
JB
123162014-02-10 Joel Brobecker <brobecker@adacore.com>
12317
12318 * ada-lang.c (_initialize_ada_language): Initialize
12319 cache_space obstack.
12320
3d9434b5
JB
123212014-02-10 Joel Brobecker <brobecker@adacore.com>
12322
12323 * ada-lang.c (HASH_SIZE): New macro.
12324 (struct cache_entry): New type.
12325 (cache_space, cache): New static globals.
12326 (ada_clear_symbol_cache, find_entry): New functions.
12327 (lookup_cached_symbol, cache_symbol): Implement.
12328 (ada_new_objfile_observer, ada_free_objfile_observer): New.
12329 (_initialize_ada_language): Attach ada_new_objfile_observer
12330 and ada_free_objfile_observer.
12331
f0c5f9b2
JB
123322014-02-10 Joel Brobecker <brobecker@adacore.com>
12333
12334 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
12335 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
12336 struct block * parameter.
12337 (ada_lookup_symbol_list_worker): Constify local variable "block".
12338 Remove cast which is no longer necessary.
12339
ed3ef339
DE
123402014-02-10 Doug Evans <xdje42@gmail.com>
12341
12342 Add Guile as an extension language.
12343 * NEWS: Mention Guile scripting.
12344 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
12345 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
12346 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
12347 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
12348 (CLIBS): Add GUILE_LIBS.
12349 (install-guile): New rule.
12350 (guile.o): New rule.
12351 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
12352 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
12353 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
12354 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
12355 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
12356 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
12357 (scm-type.o, scm-utils.o, scm-value.o): New rules.
12358 * configure.ac: New option --with-guile.
12359 * configure: Regenerate.
12360 * config.in: Regenerate.
12361 * auto-load.c: Remove #include "python/python.h". Add #include
12362 "gdb/section-scripts.h".
12363 (source_section_scripts): Handle Guile scripts.
12364 (_initialize_auto_load): Add name of Guile objfile script to
12365 scripts-directory help text.
12366 * breakpoint.c (condition_command): Tweak comment to include Scheme.
12367 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
12368 (struct breakpoint): New member scm_bp_object.
12369 * defs.h (enum command_control_type): New value guile_control.
12370 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
12371 "extension.h".
12372 (show_user): Update comment.
12373 (_initialize_cli_cmds): Update help text for "show user". Update help
12374 text for max-user-call-depth.
12375 * cli/cli-script.c: Remove #include "python/python.h". Add #include
12376 "extension.h".
12377 (multi_line_command_p): Add guile_control.
12378 (print_command_lines): Handle guile_control.
12379 (execute_control_command, recurse_read_control_structure): Ditto.
12380 (process_next_line): Recognize "guile" commands.
12381 * disasm.c (gdb_disassemble_info): Make non-static.
12382 * disasm.h: #include "dis-asm.h".
12383 (struct gdbarch): Add forward decl.
12384 (gdb_disassemble_info): Declare.
12385 * extension.c: #include "guile/guile.h".
12386 (extension_languages): Add guile.
12387 (get_ext_lang_defn): Handle EXT_LANG_GDB.
12388 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
12389 * gdbtypes.c (get_unsigned_type_max): New function.
12390 (get_signed_type_minmax): New function.
12391 * gdbtypes.h (get_unsigned_type_max): Declare.
12392 (get_signed_type_minmax): Declare.
12393 * guile/README: New file.
12394 * guile/guile-internal.h: New file.
12395 * guile/guile.c: New file.
12396 * guile/guile.h: New file.
12397 * guile/scm-arch.c: New file.
12398 * guile/scm-auto-load.c: New file.
12399 * guile/scm-block.c: New file.
12400 * guile/scm-breakpoint.c: New file.
12401 * guile/scm-disasm.c: New file.
12402 * guile/scm-exception.c: New file.
12403 * guile/scm-frame.c: New file.
12404 * guile/scm-gsmob.c: New file.
12405 * guile/scm-iterator.c: New file.
12406 * guile/scm-lazy-string.c: New file.
12407 * guile/scm-math.c: New file.
12408 * guile/scm-objfile.c: New file.
12409 * guile/scm-ports.c: New file.
12410 * guile/scm-pretty-print.c: New file.
12411 * guile/scm-safe-call.c: New file.
12412 * guile/scm-string.c: New file.
12413 * guile/scm-symbol.c: New file.
12414 * guile/scm-symtab.c: New file.
12415 * guile/scm-type.c: New file.
12416 * guile/scm-utils.c: New file.
12417 * guile/scm-value.c: New file.
12418 * guile/lib/gdb.scm: New file.
12419 * guile/lib/gdb/boot.scm: New file.
12420 * guile/lib/gdb/experimental.scm: New file.
12421 * guile/lib/gdb/init.scm: New file.
12422 * guile/lib/gdb/iterator.scm: New file.
12423 * guile/lib/gdb/printing.scm: New file.
12424 * guile/lib/gdb/types.scm: New file.
12425 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
12426 (VPATH): Add $(GUILE_SRCDIR).
12427 (GUILE_DIR): New variable.
12428 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
12429 (all): Add stamp-guile dependency.
12430 (stamp-guile): New rule.
12431 (clean-guile, install-guile, uninstall-guile): New rules.
12432 (install-only): Add install-guile dependency.
12433 (uninstall): Add uninstall-guile dependency.
12434 (clean): Add clean-guile dependency.
12435
ac020ec5
DE
124362014-02-09 Doug Evans <xdje42@gmail.com>
12437
12438 Revert this patch (which I approved, mea culpa).
12439
12440 2014-02-08 Mark Kettenis <kettenis@gnu.org>
12441
12442 * Makefile.in (all-lib): Remove.
12443 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12444
2a081c59
JK
124452014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
12446
12447 Fix Python stack corruption.
12448 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
12449 gdb_py_longest.
12450
0a6bd22d
MK
124512014-02-08 Mark Kettenis <kettenis@gnu.org>
12452
12453 * Makefile.in (all-lib): Remove.
12454 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12455
1a860409
DE
124562014-02-07 Doug Evans <dje@google.com>
12457
12458 * extension-priv.h (extension_language_script_ops): Add comment.
12459 (extension_language_ops): Add comment.
caf5a491 12460 (active_ext_lang_state): Fix typo in comment.
1a860409 12461
d137e6dc
PA
124622014-02-07 Pedro Alves <palves@redhat.com>
12463
0dcb32c3 12464 PR breakpoints/16292
d137e6dc
PA
12465 * infrun.c (handle_signal_stop) <signal arrives while stepping
12466 over a breakpoint>: Switch back to the stepping thread.
12467
ce6d0892
YQ
124682014-02-07 Yao Qi <yao@codesourcery.com>
12469
12470 * target.c (target_xfer_partial): Return zero if LEN is zero.
12471
2ed4b548
YQ
124722014-02-07 Yao Qi <yao@codesourcery.com>
12473
12474 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
12475 (ld_so_xfer_auxv): Likewise.
12476 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12477 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12478 * corelow.c (core_xfer_partial): Likewise.
12479 * ctf.c (ctf_xfer_partial): Likewise.
12480 * darwin-nat.c (darwin_read_dyld_info): Likewise.
12481 (darwin_xfer_partial): Likewise.
12482 * exec.c (exec_xfer_partial): Likewise.
12483 * gnu-nat.c (gnu_xfer_partial): Likewise.
12484 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
12485 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
12486 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
12487 * linux-nat.c (linux_xfer_siginfo): Likewise.
12488 (linux_proc_xfer_spu): Likewise.
12489 * procfs.c (procfs_xfer_partial): Likewise.
12490 * record-full.c (record_full_xfer_partial): Likewise.
12491 (record_full_core_xfer_partial): Likewise.
12492 * remote-sim.c (gdbsim_xfer_partial): Likewise.
12493 * remote.c (remote_write_qxfer): Likewise.
12494 (remote_write_qxfer, remote_read_qxfer): Likewise.
12495 (remote_xfer_partial): Likewise.
12496 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12497 (rs6000_xfer_shared_libraries): Likewise.
12498 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12499 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12500 (spu_xfer_partial): Likewise.
12501 * target.c (memory_xfer_partial_1): Likewise.
12502 * tracepoint.c (tfile_xfer_partial): Likewise.
12503 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
12504 (windows_xfer_partial): Likewise.
12505
c09f20e4
YQ
125062014-02-07 Yao Qi <yao@codesourcery.com>
12507
12508 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
12509 comments.
12510 (core_xfer_shared_libraries_aix): Likewise.
12511 * gdbarch.c, gdbarch.h: Regenerated.
12512 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
12513 ULONGEST. Change 'len_avail' type to ULONGEST.
12514 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12515 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12516 declaration.
12517 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
12518
8635b3bf
YQ
125192014-02-07 Yao Qi <yao@codesourcery.com>
12520
12521 * corefile.c (memory_error): Get 'exception' from ERR and pass
12522 'exception' to throw_error.
12523
6dddc817
DE
125242014-02-06 Doug Evans <xdje42@gmail.com>
12525
12526 * configure.ac (libpython checking): Remove all but python.o from
12527 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
12528 * configure: Regenerate.
12529
12530 * Makefile.in (SFILES): Add extension.c.
12531 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
12532 (COMMON_OBS): Add extension.o.
12533 * extension.h: New file.
12534 * extension-priv.h: New file.
12535 * extension.c: New file.
12536
12537 * python/python-internal.h: #include "extension.h".
12538 (gdbpy_auto_load_enabled): Declare.
12539 (gdbpy_apply_val_pretty_printer): Declare.
12540 (gdbpy_apply_frame_filter): Declare.
12541 (gdbpy_preserve_values): Declare.
12542 (gdbpy_breakpoint_cond_says_stop): Declare.
12543 (gdbpy_breakpoint_has_cond): Declare.
12544 (void source_python_script_for_objfile): Delete.
12545 * python/python.c: #include "extension-priv.h".
12546 Delete inclusion of "observer.h".
12547 (extension_language_python): Moved here and renamed from
12548 script_language_python in py-auto-load.c.
12549 Redefined to be of type extension_language_defn.
12550 (python_extension_script_ops): New global.
12551 (python_extension_ops): New global.
12552 (struct python_env): New member previous_active.
12553 (restore_python_env): Call restore_active_ext_lang.
12554 (ensure_python_env): Call set_active_ext_lang.
12555 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
12556 New arg extlang.
12557 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
12558 New arg extlang.
12559 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
12560 New arg extlang.
12561 (gdbpy_eval_from_control_command): Renamed from
12562 eval_python_from_control_command, made static. New arg extlang.
12563 (gdbpy_source_script) Renamed from source_python_script, made static.
12564 New arg extlang.
12565 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
12566 result to int. New arg extlang.
12567 (gdbpy_source_objfile_script): Renamed from
12568 source_python_script_for_objfile, made static. New arg extlang.
12569 (gdbpy_start_type_printers): Renamed from start_type_printers, made
12570 static. New args extlang, extlang_printers. Change result type to
12571 "void".
12572 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
12573 static. New arg extlang. Rename arg printers to extlang_printers
12574 and change type to ext_lang_type_printers *.
12575 (gdbpy_free_type_printers): Renamed from free_type_printers, made
12576 static. Replace argument arg with extlang, extlang_printers.
12577 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
12578 (!HAVE_PYTHON, source_python_script): Delete.
12579 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
12580 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
12581 (!HAVE_PYTHON, start_type_printers): Delete.
12582 (!HAVE_PYTHON, apply_type_printers): Delete.
12583 (!HAVE_PYTHON, free_type_printers): Delete.
12584 (_initialize_python): Delete call to observer_attach_before_prompt.
12585 (finalize_python): Set/restore active extension language.
12586 (gdbpy_finish_initialization) Renamed from
12587 finish_python_initialization, made static. New arg extlang.
12588 (gdbpy_initialized): New function.
12589 * python/python.h: #include "extension.h". Delete #include
12590 "value.h", "mi/mi-cmds.h".
12591 (extension_language_python): Declare.
12592 (GDBPY_AUTO_FILE_NAME): Delete.
12593 (enum py_bt_status): Moved to extension.h and renamed to
12594 ext_lang_bt_status.
12595 (enum frame_filter_flags): Moved to extension.h.
12596 (enum py_frame_args): Moved to extension.h and renamed to
12597 ext_lang_frame_args.
12598 (finish_python_initialization): Delete.
12599 (eval_python_from_control_command): Delete.
12600 (source_python_script): Delete.
12601 (apply_val_pretty_printer): Delete.
12602 (apply_frame_filter): Delete.
12603 (preserve_python_values): Delete.
12604 (gdbpy_script_language_defn): Delete.
12605 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
12606 (start_type_printers, apply_type_printers, free_type_printers): Delete.
12607
12608 * auto-load.c: #include "extension.h".
12609 (GDB_AUTO_FILE_NAME): Delete.
12610 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
12611 (script_language_gdb): Delete, moved to extension.c and renamed to
12612 extension_language_gdb.
12613 (source_gdb_script_for_objfile): Delete.
12614 (auto_load_pspace_info): New member unsupported_script_warning_printed.
12615 (loaded_script): Change type of language member to
12616 struct extension_language_defn *.
12617 (init_loaded_scripts_info): Initialize
12618 unsupported_script_warning_printed.
12619 (maybe_add_script): Make static. Change type of language arg to
12620 struct extension_language_defn *.
12621 (clear_section_scripts): Reset unsupported_script_warning_printed.
12622 (auto_load_objfile_script_1): Rewrite to use extension language API.
12623 (auto_load_objfile_script): Make public. Remove support-compiled-in
12624 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
12625 (source_section_scripts): Rewrite to use extension language API.
12626 (load_auto_scripts_for_objfile): Rewrite to use
12627 auto_load_scripts_for_objfile.
12628 (collect_matching_scripts_data): Change type of language member to
12629 struct extension_language_defn *.
12630 (auto_load_info_scripts): Change type of language arg to
12631 struct extension_language_defn *.
12632 (unsupported_script_warning_print): New function.
12633 (script_not_found_warning_print): Make static.
12634 (_initialize_auto_load): Rewrite construction of scripts-directory
12635 help.
12636 * auto-load.h (struct objfile): Add forward decl.
12637 (struct script_language): Delete.
12638 (struct auto_load_pspace_info): Add forward decl.
12639 (struct extension_language_defn): Add forward decl.
12640 (maybe_add_script): Delete.
12641 (auto_load_objfile_script): Declare.
12642 (script_not_found_warning_print): Delete.
12643 (auto_load_info_scripts): Update prototype.
12644 (auto_load_gdb_scripts_enabled): Declare.
12645 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
12646 auto_load_python_scripts_enabled and made public.
12647 (script_language_python): Delete, moved to python.c.
12648 (gdbpy_script_language_defn): Delete.
12649 (info_auto_load_python_scripts): Update to use
12650 extension_language_python.
12651
12652 * breakpoint.c (condition_command): Replace call to
12653 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
12654 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
12655 with call to breakpoint_ext_lang_cond_says_stop.
12656 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
12657 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
12658 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
12659 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
12660 New arg slang.
12661 (local_setattro): Print name of extension language with existing
12662 stop condition.
12663
12664 * valprint.c (val_print, value_print): Update to call
12665 apply_ext_lang_val_pretty_printer.
12666 * cp-valprint.c (cp_print_value): Update call to
12667 apply_ext_lang_val_pretty_printer.
12668 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
12669 (gdbpy_apply_val_pretty_printer): Renamed from
12670 apply_val_pretty_printer. New arg extlang.
12671 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
12672
12673 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
12674 extension language API.
12675 * cli/cli-script.c (execute_control_command): Update to call
12676 eval_ext_lang_from_control_command.
12677
12678 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
12679 enum ext_lang_bt_status values. Update call to
12680 apply_ext_lang_frame_filter.
12681 (mi_cmd_stack_list_locals): Ditto.
12682 (mi_cmd_stack_list_args): Ditto.
12683 (mi_cmd_stack_list_variables): Ditto.
12684 * mi/mi-main.c: Delete #include "python/python-internal.h".
12685 Add #include "extension.h".
12686 (mi_cmd_list_features): Replace reference to python internal variable
12687 gdb_python_initialized with call to ext_lang_initialized_p.
12688
12689 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
12690 Update to use enum ext_lang_frame_args. Update to call
12691 apply_ext_lang_frame_filter.
12692 * python/py-framefilter.c (extract_sym): Update to use enum
12693 ext_lang_bt_status.
12694 (extract_value, py_print_type, py_print_value): Ditto.
12695 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
12696 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
12697 (py_print_frame): Ditto.
12698 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
12699 New arg extlang. Update to use enum ext_lang_bt_status.
12700
12701 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
12702 finish_python_initialization. Replace with call to
12703 finish_ext_lang_initialization.
12704
12705 * typeprint.c (do_free_global_table): Update to call
12706 free_ext_lang_type_printers.
12707 (create_global_typedef_table): Update to call
12708 start_ext_lang_type_printers.
12709 (find_global_typedef): Update to call apply_ext_lang_type_printers.
12710 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
12711 (type_print_options): Change type of global_printers from "void *"
12712 to "struct ext_lang_type_printers *".
12713
12714 * value.c (preserve_values): Update to call preserve_ext_lang_values.
12715 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
12716 (gdbpy_preserve_values): Renamed from preserve_python_values.
12717 New arg extlang.
12718 (!HAVE_PYTHON, preserve_python_values): Delete.
12719
12720 * utils.c (quit_flag): Delete, moved to extension.c.
12721 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
12722 extension.c.
12723
12724 * eval.c: Delete #include "python/python.h".
12725 * main.c: Delete #include "python/python.h".
12726
12727 * defs.h: Update comment.
12728
6af79985
JB
127292014-02-06 Joel Brobecker <brobecker@adacore.com>
12730
12731 GDB 7.7 released.
12732
12c5175d
MK
127332014-02-05 Mark Kettenis <kettenis@gnu.org>
12734
12735 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
12736 defined.
12737
8dc5b319
YQ
127382014-02-05 Yao Qi <yao@codesourcery.com>
12739
12740 * remote.c (remote_pass_signals): Remove local 'buf' and use
12741 rs->buf.
12742 (remote_program_signals): Likewise.
12743
de7b2893
YQ
127442014-02-05 Yao Qi <yao@codesourcery.com>
12745
12746 * ctf.c: Include "inferior.h" and "gdbthread.h".
12747 (CTF_PID): A new macro.
12748 (ctf_open): Call inferior_appeared and add_thread_silent.
12749 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
12750 (ctf_thread_alive): New function.
12751 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
12752
66d032ac
YQ
127532014-02-05 Yao Qi <yao@codesourcery.com>
12754
12755 Revert this patch:
12756
12757 2013-05-24 Yao Qi <yao@codesourcery.com>
12758
12759 * tracepoint.c (TFILE_PID): Remove.
12760 (tfile_open): Don't add thread and inferior.
12761 (tfile_close): Don't set 'inferior_ptid'. Don't call
12762 exit_inferior_silent.
12763 (tfile_thread_alive): Remove.
12764 (init_tfile_ops): Don't set field 'to_thread_alive' of
12765 tfile_ops.
12766
f4ccffad
CE
127672014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
12768
12769 * remote.c (remote_start_remote): Call remote_check_symbols even
12770 if only symbol-file (not file) has been given.
12771
591a12a1
UW
127722014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12773
12774 * gdbarch.sh (skip_entrypoint): New callback.
12775 * gdbarch.c, gdbarch.h: Regenerate.
12776 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
12777 * infrun.c (fill_in_stop_func): Likewise.
12778 * ppc-linux-tdep.c: Include "elf/ppc64.h".
12779 (ppc_elfv2_elf_make_msymbol_special): New function.
12780 (ppc_elfv2_skip_entrypoint): Likewise.
12781 (ppc_linux_init_abi): Install them for ELFv2.
12782
cc0e89c5
UW
127832014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12784
12785 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
12786 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
12787 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
12788 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
12789 structures returned in GPRs.
12790
52f548e4
UW
127912014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12792
12793 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
12794 offset to the stack parameter list for the ELFv2 ABI.
12795
d4094b6a
UW
127962014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12797
12798 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
12799 set_gdbarch_convert_from_func_ptr_addr and
12800 set_gdbarch_elf_make_msymbol_special for ELFv1.
12801 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
12802 function descriptors on ELFv1.
12803 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
12804 set up r12 at function entry.
12805
cd453cd0
UW
128062014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12807
12808 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
12809 (struct gdbarch_tdep): New member elf_abi.
12810
12811 * rs6000-tdep.c: Include "elf/ppc64.h".
12812 (rs6000_gdbarch_init): Detect ELF ABI version.
12813
0ff3e01f
UW
128142014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12815
12816 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
12817 within a register pair holding a DFP 128-bit value on little-endian.
12818 (ppc64_sysv_abi_return_value_base): Likewise.
12819 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
12820 (dfp_pseudo_register_write): Likewise.
12821
5b757e5d
UW
128222014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12823
12824 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
12825 offset on little-endian when passing _Decimal32.
12826 (ppc64_sysv_abi_return_value_base): Likewise for return values.
12827
084ee545
UW
128282014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12829
12830 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
12831 of the overlapped FP register within the VSX register on little-
12832 endian platforms.
12833 (efpr_pseudo_register_write): Likewise.
12834
d63167af
UW
128352014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12836
12837 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
12838 offset on little-endian when passing small structures.
12839
e765b44c
UW
128402014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12841
12842 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
12843 (struct ppc64_sysv_argpos): New data structure.
12844 (ppc64_sysv_abi_push_float): Remove.
12845 (ppc64_sysv_abi_push_val): New function.
12846 (ppc64_sysv_abi_push_integer): Likewise.
12847 (ppc64_sysv_abi_push_freg): Likewise.
12848 (ppc64_sysv_abi_push_vreg): Likewise.
12849 (ppc64_sysv_abi_push_param): Likewise.
12850 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
12851 (ppc64_sysv_abi_return_value_base): New function.
12852 (ppc64_sysv_abi_return_value): Refactor to use it.
12853
36c24d95
UW
128542014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12855
12856 * NEWS: Document new target powerpc64le-*-linux*.
12857
26fd9228
MK
128582014-02-04 Mark Kettenis <kettenis@gnu.org>
12859
12860 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
12861 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
12862 core dumps.
12863 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
12864 register set used in ELF core dumps. Add floating-point register set.
12865
c5bb7362
KB
128662014-02-03 Kevin Buettner <kevinb@redhat.com>
12867
74228e77 12868 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
c5bb7362
KB
12869 dwarf2_to_gdb[] table using symbolic constants. Adjust
12870 penultimate entry from number representing the PC register
12871 to symbolic constant representing the MDR register. Add
12872 constant for the PC register to the end of the table.
12873
af09351e
MK
128742014-02-03 Mark Kettenis <kettenis@gnu.org>
12875
12876 * bsd-kvm.c: Include <sys/param.h>
12877
8507e05d
MK
128782014-02-03 Mark Kettenis <kettenis@gnu.org>
12879
12880 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
12881
ae56bfb8
JB
128822014-01-31 Joel Brobecker <brobecker@adacore.com>
12883
12884 * ada-lang.h (clear_ada_sym_cache): Delete.
12885
718ee4dc
UW
128862014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
12887
12888 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
12889
401e27fd
JM
128902014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
12891
12892 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
12893 the sigreturn register save area only if the syscall is
12894 sigreturn.
12895
a7c88acd
JB
128962014-01-29 Joel Brobecker <brobecker@adacore.com>
12897
12898 * valops.c (value_slice): Minor reformatting.
12899
fa0079ea
UW
129002014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
12901
12902 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
12903
c6044dd1
JB
129042014-01-28 Joel Brobecker <brobecker@adacore.com>
12905
12906 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
12907 New static globals.
12908 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
12909 (ada_ignore_descriptive_types_p): New static global.
12910 (find_parallel_type_by_descriptive_type): Return immediately
12911 if ada_ignore_descriptive_types_p is set.
12912 (_initialize_ada_language): Register new commands "maintenance
12913 set ada", "maintenance show ada", "maintenance set ada
12914 ignore-descriptive-types" and "maintenance show ada
12915 ignore-descriptive-types".
12916 * NEWS: Add entry for new "maint ada set/show
12917 ignore-descriptive-types" commands.
12918
568e808b
MM
129192014-01-27 Markus Metzger <markus.t.metzger@intel.com>
12920
12921 * record-btrace.c (record_btrace_close): Call btrace_teardown
12922 for all threads.
12923
467d141b
JB
129242014-01-27 Joel Brobecker <brobecker@adacore.com>
12925
12926 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
12927 "ui-out.h".
12928
fb151210
JB
129292014-01-27 Joel Brobecker <brobecker@adacore.com>
12930
12931 * ada-typeprint (type_is_full_subrange_of_target_type):
12932 New function.
12933 (print_range): Add parameter bounds_prefered_p. If not set,
12934 try printing range types using the name of their base type.
12935 (print_range_type): Add parameter bounds_prefered_p.
12936 Use it in call to print_range.
12937 (print_array_type, ada_print_type): Update calls to print_range
12938 and print_range_type.
12939
aba02109
JB
129402014-01-27 Joel Brobecker <brobecker@adacore.com>
12941
12942 * ada-typeprint.c (print_array_type, print_choices, print_range)
12943 (print_range_bound, print_dynamic_range_bound, print_range_type):
12944 Remove declaration.
12945
e62e21fd
JB
129462014-01-27 Joel Brobecker <brobecker@adacore.com>
12947
12948 * ada-typeprint.c (print_range): Add missing empty line
12949 after local declaration.
12950
859cf5d1
JB
129512014-01-27 Joel Brobecker <brobecker@adacore.com>
12952
12953 * ada-valprint.c (print_optional_low_bound): Get index_type's
12954 target type for as long as it is a TYPE_CODE_RANGE.
12955
25790f6f
JB
129562014-01-27 Joel Brobecker <brobecker@adacore.com>
12957
12958 * procfs.c (procfs_make_note_section): Remove assertion and
12959 associated comment.
12960
6b6aa828
YQ
129612014-01-24 Yao Qi <yao@codesourcery.com>
12962
12963 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
12964 * corelow.c (get_core_siginfo): Likewise.
12965
5d6df423
YQ
129662014-01-24 Yao Qi <yao@codesourcery.com>
12967
12968 * remote.c (remote_write_bytes_aux): Change type of 'len' to
12969 ULONGEST. Don't check 'len' is negative.
12970 (remote_write_bytes): Change type of 'len' to ULONGEST.
12971
83b645b8
TT
129722014-01-23 Tom Tromey <tromey@redhat.com>
12973
12974 PR python/16485:
12975 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
12976 Handle exception from frame.block.
12977 (FrameVars.fetch_frame_locals): Likewise.
12978
0740f8d8
TT
129792014-01-23 Tom Tromey <tromey@redhat.com>
12980
12981 PR python/16487:
12982 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
12983 on a NULL pointer. Move "goto error" to correct place.
12984
21909fa1
TT
129852014-01-23 Tom Tromey <tromey@redhat.com>
12986
12987 PR python/16491:
12988 * python/py-framefilter.c (apply_frame_filter): Call
12989 ensure_python_env after computing gdbarch.
12990
17fde6d0
YQ
129912014-01-23 Yao Qi <yao@codesourcery.com>
12992
12993 * target.c (raw_memory_xfer_partial): Change argument type
12994 from void * to gdb_byte *.
12995 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
12996
87ce2a04
DE
129972014-01-22 Doug Evans <dje@google.com>
12998
12999 New gdbserver option --debug-format=timestamp.
13000 * NEWS: Mention it.
13001
237b092b
AA
130022014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
13003
13004 * syscalls/s390x-linux.xml: New file.
13005 * syscalls/s390-linux.xml: New file.
13006 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
13007 (XML_SYSCALL_FILENAME_S390X): Likewise.
13008 (op_svc): New enum value for SVC opcode.
13009 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
13010 (s390_linux_get_syscall_number): New function.
13011 (s390_gdbarch_init): Register '*get_syscall_number' and the
13012 syscall xml file name.
13013 * data-directory/Makefile.in (SYSCALLS_FILES): Add
13014 "s390-linux.xml" and "s390x-linux.xml".
13015 * NEWS: Announce new feature.
13016
54bff650
BS
130172014-01-22 Baruch Siach <baruch@tkos.co.il>
13018
13019 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
13020
14e361d7
PA
130212014-01-22 Pedro Alves <palves@redhat.com>
13022
13023 * xtensa-config.c: Include defs.h.
13024
46bbb3ed
JB
130252014-01-22 Joel Brobecker <brobecker@adacore.com>
13026
13027 * common/common-utils.h: Add "ARI:" comment beside __func__
13028 reference.
13029
3a80edfc
JB
130302014-01-22 Joel Brobecker <brobecker@adacore.com>
13031
13032 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
13033 documentation a bit.
13034
4869db5e
RM
130352014-01-21 Roland McGrath <mcgrathr@google.com>
13036
13037 * configure.ac: Call AM_PROG_INSTALL_STRIP.
13038 * configure: Regenerate.
13039 * aclocal.m4: Regenerate.
13040 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
13041 New substituted variables.
13042 (install-strip): New target.
13043 (INSTALL_SCRIPT): New substituted variable.
13044 (FLAGS_TO_PASS): Add it.
13045 (install-only): Use $(INSTALL_SCRIPT) rather than
13046 $(INSTALL_PROGRAM) for gcore.
13047
9ea4267d
TT
130482014-01-20 Tom Tromey <tromey@redhat.com>
13049
13050 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
13051 together.
13052
1f2bdf09
TT
130532014-01-20 Tom Tromey <tromey@redhat.com>
13054
13055 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
13056 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
13057 (deprecated_cmd_warning, complete_on_cmdlist): Update.
13058 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
13059 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
13060 (struct cmd_list_element) <flags>: Remove.
13061 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
13062 doc_allocated>: New fields.
13063 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
13064 bitfields.
13065 * maint.c (maintenance_do_deprecate): Update.
13066 * top.c (execute_command): Update.
13067
e671835b
BS
130682014-01-20 Baruch Siach <baruch@tkos.co.il>
13069
13070 * xtensa-linux-nat.c: Include asm/ptrace.h.
13071
50367cd2
IB
130722014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13073
13074 * Makefile.in (SFILES): Add d-support.c.
13075 (COMMON_OBS): Add d-support.o.
13076 * d-lang.h (d_parse_symbol): Add comment, now defined in
13077 d-support.c.
13078 * d-lang.c (parse_call_convention)
13079 (parse_attributes, parse_function_types)
13080 (parse_function_args, parse_type, parse_identifier)
13081 (call_convention_p, d_parse_symbol): Move functions to ...
13082 * d-support.c: ... New file.
13083
ec9f644a
IB
130842014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13085
13086 * d-lang.h (d_parse_symbol): Add declaration.
13087 * d-lang.c (extract_identifiers)
13088 (extract_type_info): Remove functions.
13089 (parse_call_convention, parse_attributes)
13090 (parse_function_types, parse_function_args)
13091 (parse_type, parse_identifier, call_convention_p)
13092 (d_parse_symbol): New functions.
13093 (d_demangle): Use d_parse_symbol to demangle D symbols.
13094
94b1b47e
IB
130952014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13096
13097 * d-lang.h (struct builtin_d_type): New data type.
13098 (builtin_d_type): Add declaration.
13099 * d-lang.c (d_language_arch_info, build_d_types)
13100 (builtin_d_type): New functions.
13101 (enum d_primitive_types): New data type.
13102 (d_language_defn): Change c_language_arch_info to
13103 d_language_arch_info.
13104 (d_type_data): New static variable.
13105 (_initialize_d_language): Initialize d_type_data.
13106
63778547
IB
131072014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13108
13109 * d-lang.h (d_main_name): Add declaration.
13110 * d-lang.c (d_main_name): New function.
13111 * symtab.c (find_main_name): Add call to d_main_name.
13112
3271ba66
IB
131132014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13114
13115 * d-lang.c (d_language_defn): Change macro_expansion_c to
13116 macro_expansion_no.
13117
d36b3012
IB
131182014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13119
13120 * MAINTAINERS: Add myself as a write-after-approval maintainer.
13121
c90a6fb7
SDJ
131222014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
13123
13124 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
13125 gdb_exception" declaration.
13126 * remote.c (getpkt_or_notif_sane): Likewise.
13127
749234e5
DE
131282014-01-17 Doug Evans <dje@google.com>
13129
13130 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
13131 function, contents of dirnames_to_char_ptr_vec_append moved here.
13132 (delim_string_to_char_ptr_vec): New function.
13133 (dirnames_to_char_ptr_vec_append): Rewrite.
13134 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
13135
df049a58
DE
131362014-01-17 Doug Evans <dje@google.com>
13137
13138 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
13139 and moved here ...
13140 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
13141 #include "common-utils.h".
13142 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
13143 * common/vec.h (VEC_ASSERT_PASS): Update.
13144 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
13145 (MACH_CHECK_ERROR): Update.
13146
69f97648
SM
131472014-01-17 Simon Marchi <simon.marchi@ericsson.com>
13148
13149 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
13150 comments.
13151 * gdbarch.h: Regenerate.
13152
98b1cfdc
TT
131532014-01-16 Tom Tromey <tromey@redhat.com>
13154
13155 * value.c (struct value) <regnum>: Move earlier.
13156
77a19445
TT
131572014-01-16 Tom Tromey <tromey@redhat.com>
13158
13159 * remote.c (extended_remote_create_inferior): Rename from
13160 extended_remote_create_inferior_1. Add "ops" argument. Remove
13161 old implementation.
13162
62261490
PA
131632014-01-16 Pedro Alves <palves@redhat.com>
13164
13165 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
13166 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
13167 the backchain.
13168
4d65956b
DE
131692014-01-16 Doug Evans <dje@google.com>
13170
13171 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
13172
52834460
MM
131732014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13174
13175 * btrace.h (btrace_thread_flag): New.
13176 (struct btrace_thread_info) <flags>: New.
13177 * record-btrace.c (record_btrace_resume_thread)
13178 (record_btrace_find_thread_to_move, btrace_step_no_history)
13179 (btrace_step_stopped, record_btrace_start_replaying)
13180 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
13181 (record_btrace_find_resume_thread): New.
13182 (record_btrace_resume, record_btrace_wait): Extend.
13183 (record_btrace_can_execute_reverse): New.
13184 (record_btrace_open): Fail in non-stop mode.
13185 (record_btrace_set_replay): Split into this, ...
13186 (record_btrace_stop_replaying): ... this, ...
13187 (record_btrace_clear_histories): ... and this.
13188 (init_record_btrace_ops): Init to_can_execute_reverse.
13189 * NEWS: Announce it.
13190
118e6252
MM
131912014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13192
13193 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
13194 (forward_target_decr_pc_after_break)
13195 (target_decr_pc_after_break): New.
13196 * target.c (forward_target_decr_pc_after_break)
13197 (target_decr_pc_after_break): New.
13198 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
13199 instead of gdbarch_decr_pc_after_break.
13200 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
13201 instead of gdbarch_decr_pc_after_break.
13202 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
13203 instead of gdbarch_decr_pc_after_break.
13204 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
13205 instead of gdbarch_decr_pc_after_break.
13206 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
13207 instead of gdbarch_decr_pc_after_break.
13208 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
13209 instead of gdbarch_decr_pc_after_break.
13210
6e07b1d2
MM
132112014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13212
13213 * btrace.c: Include regcache.h.
13214 (btrace_add_pc): New.
13215 (btrace_enable): Call btrace_add_pc.
13216 (btrace_is_empty): New.
13217 * btrace.h (btrace_is_empty): New.
13218 * record-btrace.c (require_btrace, record_btrace_info): Call
13219 btrace_is_empty.
13220
969c39fb
MM
132212014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13222
13223 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
13224 Support delta reads.
13225 (linux_disable_btrace): Change return type.
13226 * common/linux-btrace.h (linux_read_btrace): Change parameters
13227 and return type to allow error reporting. Update users.
13228 (linux_disable_btrace): Change return type. Update users.
13229 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
13230 New.
13231 (btrace_error): New.
13232 (btrace_block) <begin>: Comment on BEGIN == 0.
13233 * btrace.c (btrace_compute_ftrace): Start from the end of
13234 the current trace.
13235 (btrace_stitch_trace, btrace_clear_history): New.
13236 (btrace_fetch): Read delta trace, return if replaying.
13237 (btrace_clear): Move clear history code to btrace_clear_history.
13238 (parse_xml_btrace): Throw an error if parsing failed.
13239 * target.h (struct target_ops) <to_read_btrace>: Change parameters
13240 and return type to allow error reporting.
13241 (target_read_btrace): Change parameters and return type to allow
13242 error reporting.
13243 * target.c (target_read_btrace): Update.
13244 * remote.c (remote_read_btrace): Support delta reads. Pass
13245 errors on.
13246 * NEWS: Announce it.
13247
0b722aec
MM
132482014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13249
13250 * record.h (record_btrace_frame_unwind)
13251 (record_btrace_tailcall_frame_unwind): New declarations.
13252 * dwarf2-frame: Include record.h
13253 (dwarf2_frame_cfa): Throw an error for btrace frames.
13254 * record-btrace.c: Include hashtab.h.
13255 (btrace_get_bfun_name): New.
13256 (btrace_call_history): Call btrace_get_bfun_name.
13257 (struct btrace_frame_cache): New.
13258 (bfcache): New.
13259 (bfcache_hash, bfcache_eq, bfcache_new): New.
13260 (btrace_get_frame_function): New.
13261 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
13262 (record_btrace_frame_this_id): Compute own id.
13263 (record_btrace_frame_prev_register): Provide PC, throw_error
13264 for all other registers.
13265 (record_btrace_frame_sniffer): Detect btrace frames.
13266 (record_btrace_tailcall_frame_sniffer): New.
13267 (record_btrace_frame_dealloc_cache): New.
13268 (record_btrace_frame_unwind): Add new functions.
13269 (record_btrace_tailcall_frame_unwind): New.
13270 (_initialize_record_btrace): Allocate cache.
13271 * btrace.c (btrace_clear): Call reinit_frame_cache.
13272 * NEWS: Announce it.
13273
066ce621
MM
132742014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13275
13276 * record-btrace.c (record_btrace_set_replay)
13277 (record_btrace_goto_begin, record_btrace_goto_end)
13278 (record_btrace_goto): New.
13279 (init_record_btrace_ops): Initialize them.
13280 * NEWS: Announce it.
13281
e2887aa3
MM
132822014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13283
13284 * record-btrace.c (record_btrace_find_new_threads)
13285 (record_btrace_thread_alive): New.
13286 (init_record_btrace_ops): Initialize to_find_new_threads and
13287 to_thread_alive.
13288
b2f4cfde
MM
132892014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13290
13291 * record-btrace.c (record_btrace_resume): New.
13292 (record_btrace_wait): New.
13293 (init_record_btrace_ops): Initialize to_wait and to_resume.
13294
633785ff
MM
132952014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13296
13297 * record-btrace.c (record_btrace_xfer_partial)
13298 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
13299 (record_btrace_allow_memory_access): New.
13300 (init_record_btrace_ops): Initialize new methods.
13301 * target.c (raw_memory_xfer_partial): Bail out if target reports
13302 that this memory is not available.
13303
3db08215
MM
133042014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13305
13306 * target.h (target_ops) <to_insert_breakpoint>
13307 <to_remove_breakpoint>: Add target_ops parameter.
13308 (forward_target_insert_breakpoint): New.
13309 (forward_target_remove_breakpoint): New.
13310 (memory_remove_breakpoint, memory_insert_breakpoint):
13311 Add target_ops parameter.
13312 * target.c (target_insert_breakpoint): Split into this and ...
13313 (forward_target_insert_breakpoint): ... this.
13314 (target_remove_breakpoint): Split into this and ...
13315 (forward_target_remove_breakpoint): ... this.
13316 (debug_to_insert_breakpoint): Add target_ops parameter.
13317 Call forward_target_insert_breakpoint.
13318 (debug_to_remove_breakpoint): Add target_ops parameter.
13319 Call forward_target_remove_breakpoint.
13320 (update_current_target): Do not inherit or default to_insert_breakpoint
13321 and to_remove_breakpoint.
13322 * corelow.c (ignore): Add target_ops parameter.
13323 * exec.c (ignore): Add target_ops parameter.
13324 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
13325 Add target_ops parameter.
13326 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
13327 Add target_ops parameter.
13328 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
13329 Add target_ops parameter.
13330 * record-full.c (record_full_beneath_to_insert_breakpoint)
13331 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
13332 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
13333 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
13334 (record_full_core_remove_breakpoint): Add target_ops parameter.
13335 Update users.
13336 (record_full_beneath_to_insert_breakpoint_ops)
13337 (record_full_beneath_to_remove_breakpoint_ops)
13338 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
13339 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
13340 tmp_to_remove_breakpoint_ops,
13341 record_full_beneath_to_insert_breakpoint_ops, and
13342 record_full_beneath_to_remove_breakpoint_ops.
13343 * remote-m32r-sdi.c (m32r_insert_breakpoint)
13344 (m32r_remove_breakpoint): Add target_ops parameter.
13345 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
13346 Add target_ops parameter.
13347 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
13348 Add target_ops parameter.
13349
cecac1ab
MM
133502014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13351 Markus Metzger <markus.t.metzger@intel.com>
13352
13353 * record-btrace.c: Include frame-unwind.h.
13354 (record_btrace_frame_unwind_stop_reason)
13355 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
13356 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
13357 New.
13358 (init_record_btrace_ops): Install it.
13359
824344ca
MM
133602014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13361
13362 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
13363 get_prev_frame_1.
13364
32261e52
MM
133652014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13366
13367 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
13368 earlier.
13369
ea001bdc
MM
133702014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13371
13372 * frame-unwind.c: Include target.h.
13373 (frame_unwind_try_unwinder): New function with code from ...
13374 (frame_unwind_find_by_frame): ... here. New variable
13375 unwinder_from_target, call also target_get_unwinder)
13376 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
13377 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
13378 * target.h (struct target_ops): New fields to_get_unwinder and
13379 to_get_tailcall_unwinder.
13380 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
13381
1f3ef581
MM
133822014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13383
13384 * record-btrace.c (record_btrace_fetch_registers)
13385 (record_btrace_store_registers)
13386 (record_btrace_to_prepare_to_store): New.
13387 (init_record_btrace_ops): Add the above.
13388
f32dbf8c
MM
133892014-01-16 Tom Tromey <tromey@redhat.com>
13390
13391 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
13392 * target.h (struct target_ops) <to_prepare_to_store>: Add
13393 argument.
13394 (target_prepare_to_store): Add argument.
13395 * target.c (debug_to_prepare_to_store): Add argument.
13396 (update_current_target): Update.
13397 * remote.c (remote_prepare_to_store): Add 'self' argument.
13398 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
13399 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
13400 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
13401 * record-full.c (record_full_core_prepare_to_store): Add 'self'
13402 argument.
13403 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
13404 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
13405 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
13406 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
13407 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
13408
07bbe694
MM
134092014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13410
13411 * btrace.h (replay) <replay>: New.
13412 (btrace_is_replaying): New.
13413 * btrace.c (btrace_clear): Free replay iterator.
13414 (btrace_is_replaying): New.
13415 * record-btrace.c (record_btrace_is_replaying): New.
13416 (record_btrace_info): Print insn number if replaying.
13417 (record_btrace_insn_history): Start at replay position.
13418 (record_btrace_call_history): Start at replay position.
13419 (init_record_btrace_ops): Init to_record_is_replaying.
13420
0688d04e
MM
134212014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13422
13423 * record-btrace.c (record_btrace_insn_history_range): Include
13424 end.
13425 (record_btrace_insn_history_from): Adjust range.
13426 (record_btrace_call_history_range): Include
13427 end.
13428 (record_btrace_call_history_from): Adjust range.
13429 * NEWS: Announce changes.
13430
8710b709
MM
134312014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13432
13433 * record.h (enum record_print_flag)
13434 <record_print_indent_calls>: New.
13435 * record.c (get_call_history_modifiers): Recognize /c modifier.
13436 (_initialize_record): Document /c modifier.
13437 * record-btrace.c (btrace_call_history): Add btinfo parameter.
13438 Reorder fields. Optionally indent the function name. Update
13439 all users.
13440 * NEWS: Announce changes.
13441
d0fa7535
MM
134422014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13443
13444 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
13445
5de9129b
MM
134462014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13447
13448 * btrace.c (ftrace_new_function): Start counting at one.
13449 * record-btrace.c (record_btrace_info): Adjust number of calls
13450 and insns.
13451 * NEWS: Announce it.
13452
7acbe133
MM
134532014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13454
13455 * record-btrace.c (btrace_call_history_insn_range): Print
13456 insn range as [begin, end].
13457
23a7fe75
MM
134582014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13459
13460 * btrace.h (struct btrace_func_link): New.
13461 (enum btrace_function_flag): New.
13462 (struct btrace_inst): Rename to ...
13463 (struct btrace_insn): ...this. Update all users.
13464 (struct btrace_func) <ibegin, iend>: Remove.
13465 (struct btrace_func_link): New.
13466 (struct btrace_func): Rename to ...
13467 (struct btrace_function): ...this. Update all users.
13468 (struct btrace_function) <segment, flow, up, insn, insn_offset)
13469 (number, level, flags>: New.
13470 (struct btrace_insn_iterator): Rename to ...
13471 (struct btrace_insn_history): ...this.
13472 Update all users.
13473 (struct btrace_insn_iterator, btrace_call_iterator): New.
13474 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
13475 (struct btrace_target_info) <begin, end, level>
13476 <insn_history, call_history>: New.
13477 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13478 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13479 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13480 (btrace_call_number, btrace_call_begin, btrace_call_end)
13481 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13482 (btrace_find_function_by_number, btrace_set_insn_history)
13483 (btrace_set_call_history): New.
13484 * btrace.c (btrace_init_insn_iterator)
13485 (btrace_init_func_iterator, compute_itrace): Remove.
13486 (ftrace_print_function_name, ftrace_print_filename)
13487 (ftrace_skip_file): Change
13488 parameter to const.
13489 (ftrace_init_func): Remove.
13490 (ftrace_debug): Use new btrace_function fields.
13491 (ftrace_function_switched): Also consider gaining and
13492 losing symbol information).
13493 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
13494 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
13495 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
13496 New.
13497 (ftrace_new_function): Move. Remove debug print.
13498 (ftrace_update_lines, ftrace_update_insns): New.
13499 (ftrace_update_function): Check for call, ret, and jump.
13500 (compute_ftrace): Renamed to ...
13501 (btrace_compute_ftrace): ...this. Rewritten to compute call
13502 stack.
13503 (btrace_fetch, btrace_clear): Updated.
13504 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13505 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13506 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13507 (btrace_call_number, btrace_call_begin, btrace_call_end)
13508 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13509 (btrace_find_function_by_number, btrace_set_insn_history)
13510 (btrace_set_call_history): New.
13511 * record-btrace.c (require_btrace): Use new btrace thread
13512 info fields.
13513 (record_btrace_info, btrace_insn_history)
13514 (record_btrace_insn_history, record_btrace_insn_history_range):
13515 Use new btrace thread info fields and new iterator.
13516 (btrace_func_history_src_line): Rename to ...
13517 (btrace_call_history_src_line): ...this. Use new btrace
13518 thread info fields.
13519 (btrace_func_history): Rename to ...
13520 (btrace_call_history): ...this. Use new btrace thread info
13521 fields and new iterator.
13522 (record_btrace_call_history, record_btrace_call_history_range):
13523 Use new btrace thread info fields and new iterator.
13524
8372a7cb
MM
135252014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13526
13527 * frame.h (frame_id_build_unavailable_stack_special): New.
13528 * frame.c (frame_id_build_unavailable_stack_special): New.
13529
c2170eef
MM
135302014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13531
13532 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
13533 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
13534 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
13535 to gdbarch.
13536 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
13537 (i386_insn_is_jump, i386_jmp_p): New.
13538 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
13539 insn_is_jump to gdbarch.
13540 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
13541 * gdbarch.h: Regenerated.
13542 * gdbarch.c: Regenerated.
13543 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
13544 (default_insn_is_jump): New.
13545 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
13546 (default_insn_is_jump): New.
13547
864089d2
MM
135482014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13549
13550 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
13551 Change to ...
13552 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
13553 (btrace_read_type) <btrace_read_new>: Change to ...
13554 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
13555
ed9edfb5
MM
135562014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13557
13558 * common/linux-btrace.c (linux_read_btrace): Free trace from
13559 previous iteration.
13560
fbcbc3fd
DE
135612014-01-15 Doug Evans <dje@google.com>
13562
13563 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
13564 uint32_t.
13565
3d548a53
TT
135662014-01-15 Tom Tromey <tromey@redhat.com>
13567
13568 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
13569 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
13570 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
13571 (set_objfile_main_name): New function.
13572 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
13573 language_of_main>: New fields.
13574 (set_objfile_main_name): Declare.
13575 * symtab.c (find_main_name): Loop over objfiles to find the main
13576 name and language.
13577 (set_main_name): Now static.
13578 (get_main_info): Add comment.
13579 * symtab.h (set_main_name): Don't declare.
13580
32ac0d11
TT
135812014-01-15 Tom Tromey <tromey@redhat.com>
13582
13583 * symtab.c (main_progspace_key): New global.
13584 (struct main_info): New.
13585 (name_of_main, language_of_main): Remove.
13586 (get_main_info, main_info_cleanup): New function.
13587 (set_main_name, main_name, main_language): Use get_main_info.
13588 (_initialize_symtab): Initialize main_progspace_key.
13589
9e6c82ad
TT
135902014-01-15 Tom Tromey <tromey@redhat.com>
13591
13592 * dbxread.c (process_one_symbol): Update.
13593 * dwarf2read.c (read_partial_die): Update.
13594 * symfile.c (set_initial_language): Call main_language.
13595 * symtab.c (language_of_main): Now static.
13596 (set_main_name): Add 'lang' parameter.
13597 (find_main_name): Update.
13598 (main_language): New function.
13599 (symtab_observer_executable_changed): Update.
13600 * symtab.h (set_main_name): Update.
13601 (language_of_main): Remove.
13602 (main_language): Declare.
13603
6ef55de7
TT
136042014-01-15 Tom Tromey <tromey@redhat.com>
13605
13606 * symfile.c (init_entry_point_info): Use new "initialized" field.
13607 Update.
13608 * objfiles.h (struct entry_point) <initialized>: New field.
13609 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
13610 (struct objfile) <ei>: ...here. Remove.
13611 * objfiles.c (entry_point_address_query): Update.
13612
53eddfa6
TT
136132014-01-15 Tom Tromey <tromey@redhat.com>
13614
13615 * objfiles.c (entry_point_address_query): Relocate entry point
13616 address.
13617 (objfile_relocate1): Do not relocate entry point address.
13618 * objfiles.h (struct entry_info) <entry_point>: Update comment.
13619 <the_bfd_section_index>: New field.
13620 * symfile.c (init_entry_point_info): Find the entry point's
13621 section.
13622
d56e56aa
TT
136232014-01-15 Tom Tromey <tromey@redhat.com>
13624
13625 * solib-frv.c (enable_break): Use entry_point_address_query.
13626
33a97bbe
OJ
136272014-01-15 Omair Javaid <omair.javaid@linaro.org>
13628
13629 * NEWS: Add note on improved process record-replay on
13630 arm*-linux* targets.
13631
c6ec2b30
OJ
136322014-01-15 Omair Javaid <omair.javaid@linaro.org>
13633
13634 * arm-tdep.c (enum arm_record_result): New enum.
13635 (arm_record_unsupported_insn): New function.
13636 (arm_record_coproc_data_proc): Removed.
13637 (thumb2_record_ld_st_multiple): New function.
13638 (thumb2_record_ld_st_dual_ex_tbb): New function.
13639 (thumb2_record_data_proc_sreg_mimm): New function.
13640 (thumb2_record_ps_dest_generic): New function.
13641 (thumb2_record_branch_misc_cntrl): New function.
13642 (thumb2_record_str_single_data): New function.
13643 (thumb2_record_ld_mem_hints): New function.
13644 (thumb2_record_ld_word): New function.
13645 (thumb2_record_lmul_lmla_div): New function.
13646 (thumb2_record_decode_insn_handler): New function.
13647 (decode_insn): Add thumb32 instruction handlers.
13648
97dfe206
OJ
136492014-01-15 Omair Javaid <omair.javaid@linaro.org>
13650
13651 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
13652 (struct arm_linux_record_tdep): Declare.
13653 (arm_canonicalize_syscall): New function.
13654 (arm_all_but_pc_registers_record): New function.
13655 (arm_linux_syscall_record): New function.
13656 (arm_linux_init_abi): Add syscall recording constructs.
13657 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
13658 decoding. (arm_record_coproc_data_proc): Update arm syscall
13659 decoding.
13660 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
13661 <arm_syscall_record>: New field.
13662 * configure.tgt (arm*-*-linux*): Add linux-record.o to
13663 gdb_target_obs.
13664
9904a494
OJ
136652014-01-15 Omair Javaid <omair.javaid@linaro.org>
13666
13667 * arm-tdep.c (thumb_record_misc): Update to use sp as base
13668 register for push instruction recording.
13669
f969241e
OJ
136702014-01-15 Omair Javaid <omair.javaid@linaro.org>
13671
13672 * arm-tdep.c (thumb_record_misc): Update to correct logical
13673 error while recording ldm, ldmia and pop instructions.
13674
bfbbec00
OJ
136752014-01-15 Omair Javaid <omair.javaid@linaro.org>
13676
13677 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
13678
e40adcc9
PA
136792014-01-15 Pedro Alves <palves@redhat.com>
13680
13681 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
13682 (go32_resume, go32_fetch_registers, store_register)
13683 (go32_store_registers, go32_prepare_to_store)
13684 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
13685 (go32_create_inferior, go32_can_run, go32_terminal_init)
13686 (go32_terminal_inferior, go32_terminal_ours): Delete forward
13687 declarations.
13688
b0a16e66
TT
136892014-01-15 Tom Tromey <tromey@redhat.com>
13690
13691 * target.h (async_callback_ftype): New typedef.
13692 (struct target_ops) <to_async>: Use it.
13693
bf7105a4
JB
136942014-01-15 Joel Brobecker <brobecker@adacore.com>
13695
13696 * python/py-value.c (get_field_type): Remove unnecessary curly
13697 braces for single-statement if block.
13698
a8f35c2e
JB
136992014-01-15 Joel Brobecker <brobecker@adacore.com>
13700
13701 * python/py-type.c (convert_field): Add missing empty line
13702 after declarations.
13703
bb4142cf
DE
137042014-01-14 Doug Evans <dje@google.com>
13705
13706 * symfile.h (expand_symtabs_matching): Renamed from
13707 expand_partial_symbol_names. Update prototype.
13708 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
13709 * symfile.c (expand_symtabs_matching): Renamed from
13710 expand_partial_symbol_names. New args file_matcher, kind.
13711 Rename arg fun to symbol_matcher.
13712 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
13713 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
13714 ada_expand_partial_symbol_name.
13715 (ada_make_symbol_completion_list): Update to call
13716 expand_symtabs_matching.
13717 (ada_add_global_exceptions): Call expand_symtabs_matching.
13718 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
13719 call map_symbol_filenames.
13720 * symtab.c (sources_info): Update to call map_symbol_filenames.
13721 (search_symbols): Call expand_symtabs_matching.
13722 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
13723 (default_make_symbol_completion_list_break_on): Update to call
13724 expand_symtabs_matching.
13725 (make_source_files_completion_list): Update to call
13726 map_symbol_filenames.
13727
206f2a57
DE
137282014-01-14 Doug Evans <dje@google.com>
13729
13730 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
13731 (expand_symtabs_symbol_matcher_ftype): New typedef.
13732 (quick_symbol_functions.expand_symtabs_matching): Update to use.
13733 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13734 * symfile.c (expand_partial_symbol_names): Update to use
13735 expand_symtabs_symbol_matcher_ftype.
13736 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
13737 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13738 Arg name_matcher renamed to symbol_matcher.
13739 * psymtab.c (recursively_search_psymtabs): Update to use
13740 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
13741 sym_matcher.
13742 (expand_symtabs_matching_via_partial): Update to use
13743 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13744 Arg name_matcher renamed to symbol_matcher.
13745
540c2971
DE
137462014-01-14 Doug Evans <dje@google.com>
13747
13748 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
13749 (map_partial_symbol_filenames): Ditto.
13750 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
13751 (map_partial_symbol_filenames): Ditto.
13752 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
13753 (map_partial_symbol_filenames): Ditto.
13754 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
13755 (map_partial_symbol_filenames): Ditto.
13756 * symtab.c: Delete #include "psymtab.h".
13757
8213266a
PA
137582014-01-14 Pedro Alves <palves@redhat.com>
13759 Tom Tromey <tromey@redhat.com>
13760
13761 * infrun.c (use_displaced_stepping): Use find_record_target
13762 instead of RECORD_IS_USED.
13763 (adjust_pc_after_break): Use record_full_is_used instead of
13764 RECORD_IS_USED.
13765 * record-btrace.c (record_btrace_open): Call record_preopen
13766 instead of checking RECORD_IS_USED.
13767 * record-full.c (record_full_shortname)
13768 (record_full_core_shortname): New globals.
13769 (record_full_is_used): New function.
13770 (find_full_open): Call record_preopen instead of checking
13771 RECORD_IS_USED.
13772 (init_record_full_ops): Set the target's shortname to
13773 record_full_shortname.
13774 (init_record_full_core_ops): Set the target's shortname to
13775 record_full_core_shortname.
13776 * record-full.h (record_full_is_used): Declare.
13777 * record.c (find_record_target): Make extern.
13778 (record_preopen): New function.
13779 * record.h (RECORD_IS_USED): Delete macro.
13780 (find_record_target, record_preopen): Declare functions.
13781
7ec1862d
YQ
137822014-01-14 Yao Qi <yao@codesourcery.com>
13783
13784 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
13785 'len''s type to ULONGEST.
13786 (core_xfer_shared_libraries_aix): Likewise.
13787 * gdbarch.c, gdbarch.h: Regenerated.
13788 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
13789 Change type of 'len' to ULONGEST.
13790 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13791 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
13792
dea80a27
YQ
137932014-01-14 Yao Qi <yao@codesourcery.com>
13794
13795 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
13796 type of 'len' to ULONGEST.
13797 (linux_xfer_osdata_processgroups): Likewise.
13798 (linux_xfer_osdata_threads): Likewise.
13799 (linux_xfer_osdata_fds): Likewise.
13800 (linux_xfer_osdata_isockets): Likewise.
13801 (linux_xfer_osdata_shm): Likewise.
13802 (linux_xfer_osdata_sem): Likewise.
13803 (linux_xfer_osdata_msg): Likewise.
13804 (linux_common_xfer_osdata): Likewise.
13805 (struct osdata_type) <getter>: Likewise.
13806 * common/linux-osdata.h (linux_common_xfer_osdata): Update
13807 the declaration.
13808
b55e14c7
YQ
138092014-01-14 Yao Qi <yao@codesourcery.com>
13810
13811 * target.h (target_xfer_partial_ftype): Update.
13812 (struct target_ops) <to_xfer_partial>: Change 'len' type to
13813 ULONGEST.
13814 * aix-thread.c (aix_thread_xfer_partial): Change type of
13815 argument 'len' to ULONGEST.
13816 * auxv.c (procfs_xfer_auxv): Likewise.
13817 (ld_so_xfer_auxv): Likewise.
13818 (memory_xfer_auxv): Likewise.
13819 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13820 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13821 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
13822 * corelow.c (core_xfer_partial): Likewise.
13823 * ctf.c (ctf_xfer_partial): Likewise.
13824 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
13825 '%u'.
13826 (darwin_read_dyld_info): Likewise.
13827 (darwin_xfer_partial): Likewise.
13828 * exec.c (section_table_xfer_memory_partial): Likewise.
13829 (exec_xfer_partial): Likewise.
13830 * exec.h (section_table_xfer_memory_partial): Update
13831 declaration.
13832 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
13833 instead of plongest.
13834 (gnu_xfer_partial): Likewise.
13835 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
13836 (ia64_hpux_xfer_solib_got): Likewise.
13837 (ia64_hpux_xfer_partial): Likewise.
13838 * ia64-linux-nat.c (ia64_linux_xfer_partial):
13839 * inf-ptrace.c (inf_ptrace_xfer_partial):
13840 * inf-ttrace.c (inf_ttrace_xfer_partial):
13841 * linux-nat.c (linux_xfer_siginfo): Likewise.
13842 (linux_nat_xfer_partial): Likewise.
13843 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
13844 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
13845 * monitor.c (monitor_xfer_memory): Likewise.
13846 (monitor_xfer_partial): Likewise.
13847 * procfs.c (procfs_xfer_partial): Likewise.
13848 * record-full.c (record_full_xfer_partial): Likewise.
13849 (record_full_core_xfer_partial): Likewise.
13850 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
13851 instead of plongest.
13852 (gdbsim_xfer_partial): Likewise.
13853 * remote.c (remote_xfer_partial): Likewise.
13854 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13855 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
13856 declaration.
13857 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13858 (rs6000_xfer_shared_libraries): Likewise.
13859 * sol-thread.c (sol_thread_xfer_partial): Likewise.
13860 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13861 (sparc_xfer_partial): Likewise.
13862 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13863 (spu_xfer_partial): Likewise.
13864 * spu-multiarch.c (spu_xfer_partial): Likewise.
13865 * target.c (target_read_live_memory): Likewise.
13866 (memory_xfer_live_readonly_partial): Likewise.
13867 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
13868 (target_xfer_partial, default_xfer_partial): Likewise.
13869 (current_xfer_partial): Likewise.
13870 * tracepoint.c (tfile_xfer_partial): Likewise.
13871 * windows-nat.c (windows_xfer_memory): Likewise. Call
13872 pulongest instead of plongest.
13873 (windows_xfer_partial): Likewise.
13874 (windows_xfer_shared_libraries): Likewise.
13875
05804640
YQ
138762014-01-14 Yao Qi <yao@codesourcery.com>
13877
13878 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
13879 target_xfer_partial_ftype.
13880
b5b08fb4
SC
138812014-01-13 Siva Chandra Reddy <sivachandra@google.com>
13882
13883 PR python/15464
13884 PR python/16113
13885 * valops.c (value_struct_elt_bitpos): New function
13886 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
13887 object to 'None' if the field name is an empty string ("").
13888 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
13889 attribute to look for a field when 'name' is 'None'.
13890 (get_field_type): New function
13891
13aaf454
DE
138922014-01-13 Doug Evans <dje@google.com>
13893
13894 PR symtab/16426
13895 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
13896 (try_open_dwop_file): Ditto.
13897 * gdb_bfd.c: #include "vec.h".
13898 (bfdp): New typedef.
13899 (struct gdb_bfd_data): New member included_bfds.
13900 (gdb_bfd_unref): Unref all included bfds.
13901 (gdb_bfd_record_inclusion): New function.
13902 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
13903
c2cec97c
TT
139042014-01-13 Tom Tromey <tromey@redhat.com>
13905
13906 * gdbcore.h (deprecated_core_resize_section_table): Remove.
13907
78e5999d
TT
139082014-01-13 Tom Tromey <tromey@redhat.com>
13909
13910 * defs.h (use_windows): Remove.
13911 * gdb.c (main): Update.
13912 * main.c (captured_main, gdb_main): Update.
13913 * main.h (struct captured_main_args) <use_windows>: Remove.
13914 * top.c (use_windows): Remove.
13915
f2052bbe
TT
139162014-01-13 Tom Tromey <tromey@redhat.com>
13917
13918 * defs.h (deprecated_flush_hook): Remove.
13919
fde4f8ed
JK
139202014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
13921
13922 PR threads/16216
13923 * linux-thread-db.c (try_thread_db_load): Add parameter
13924 check_auto_load_safe. Move here the file_is_auto_load_safe call.
13925 (try_thread_db_load_from_pdir_1): Move it there from here.
13926 (try_thread_db_load_from_sdir): Update caller.
13927 (try_thread_db_load_from_dir): Move it there from here.
13928
bdf61915
PP
139292014-01-13 Patrick Palka <patrick@parcs.ath.cx>
13930
13931 * regformats/regdat.sh: Always rewrite the register file.
13932
f71e1a8d
PA
139332014-01-13 Pedro Alves <palves@redhat.com>
13934
13935 * Makefile.in (CHECK_HEADERS): New variable.
13936 (check-headers:): New rule.
13937
42c85435
TT
139382014-01-13 Tom Tromey <tromey@redhat.com>
13939
13940 * cli/cli-setshow.c (do_set_command): Update.
13941 * defs.h (deprecated_set_hook): Remove.
13942 * top.c (deprecated_set_hook): Remove.
13943
f8de5129
PA
139442014-01-13 Pedro Alves <palves@redhat.com>
13945
13946 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
13947 the tracepoint if the PC is a pseudo-register.
13948
fc270c35
TT
139492014-01-13 Tom Tromey <tromey@redhat.com>
13950
13951 * defs.h (XCALLOC): Remove.
13952 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
13953 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
13954 * dwarf2loc.c (allocate_piece_closure): Likewise.
13955 * elfread.c (elf_symfile_segments): Likewise.
13956 (elf_symfile_segments): Likewise.
13957 * gdbtypes.c (copy_type_recursive): Likewise.
13958 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
13959 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
13960 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
13961 XCALLOC.
13962 * mt-tdep.c (mt_gdbarch_init): Likewise.
13963 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
13964 XCALLOC.
13965 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
13966 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
13967 * registry.c (registry_alloc_data): Likewise.
13968 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
13969 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
13970 * serial.c (serial_fdopen_ops): Likewise.
13971 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
13972 XCALLOC.
13973 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
13974 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
13975 not XCALLOC.
13976
70ba0933
TT
139772014-01-13 Tom Tromey <tromey@redhat.com>
13978
13979 * defs.h (XMALLOC): Remove.
13980 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
13981 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
13982 * cli-out.c (struct ui_out *): Likewise.
13983 * cli/cli-dump.c (add_dump_command): Likewise.
13984 (add_dump_command): Likewise.
13985 * complaints.c (get_complaints): Likewise.
13986 (find_complaint): Likewise.
13987 * dwarf2-frame.c (execute_cfa_program): Likewise.
13988 * dwarf2read.c (abbrev_table_read_table): Likewise.
13989 * gdbarch.sh: Likewise.
13990 * gdbarch.c: Rebuild.
13991 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
13992 * interps.c (interp_new): Likewise.
13993 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
13994 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
13995 * mi/mi-console.c (mi_console_file_new): Likewise.
13996 * mi/mi-interp.c (mi_interpreter_init): Likewise.
13997 * mi/mi-out.c (mi_out_new): Likewise.
13998 * mi/mi-parse.c (mi_parse): Likewise.
13999 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
14000 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
14001 * observer.c (xalloc_observer_list_node): Likewise.
14002 * regcache.c (regcache_xmalloc_1): Likewise.
14003 * reggroups.c (reggroup_new): Likewise.
14004 (_initialize_reggroup): Likewise.
14005 * registry.c (register_data_with_cleanup): Likewise.
14006 * remote.c (remote_notif_stop_alloc_reply): Likewise.
14007 * ser-base.c (serial_ttystate): Likewise.
14008 * ser-mingw.c (make_pipe_state): Likewise.
14009 * ser-pipe.c (pipe_open): Likewise.
14010 * serial.c (serial_open): Likewise.
14011 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
14012 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
14013 (tui_alloc_win_info): Likewise.
14014 (tui_add_content_elements): Likewise.
14015 * tui/tui-file.c (tui_file_new): Likewise.
14016 * tui/tui-out.c (tui_out_new): Likewise.
14017 * ui-file.c (mem_file_new): Likewise.
14018 * ui-out.c (push_level): Likewise.
14019 (make_cleanup_ui_out_end): Likewise.
14020 (append_header_to_list): Likewise.
14021 (ui_out_new): Likewise.
14022 * user-regs.c (user_reg_add_builtin): Likewise.
14023
41bf6aca
TT
140242014-01-13 Tom Tromey <tromey@redhat.com>
14025
14026 * defs.h (XZALLOC): Remove.
14027 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
14028 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
14029 (get_ada_tasks_inferior_data): Likewise.
14030 * auto-load.c (get_auto_load_pspace_data): Likewise.
14031 * auxv.c (get_auxv_inferior_data): Likewise.
14032 * bfd-target.c (target_bfd_reopen): Likewise.
14033 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
14034 (deprecated_insert_raw_breakpoint): Likewise.
14035 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
14036 * corelow.c (core_open): Likewise.
14037 * darwin-nat.c (darwin_check_new_threads): Likewise.
14038 (darwin_attach_pid): Likewise.
14039 * dummy-frame.c (dummy_frame_push): Likewise.
14040 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
14041 * dwarf2loc.c (allocate_piece_closure): Likewise.
14042 * elfread.c (elf_symfile_segments): Likewise.
14043 * eval.c (ptrmath_type_p): Likewise.
14044 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
14045 * gdbtypes.c (alloc_type_arch): Likewise.
14046 (alloc_type_instance): Likewise.
14047 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
14048 * inf-child.c (inf_child_can_use_agent): Likewise.
14049 * inflow.c (get_inflow_inferior_data): Likewise.
14050 * infrun.c (save_infcall_suspend_state): Likewise.
14051 * jit.c (jit_reader_load): Likewise.
14052 (get_jit_objfile_data): Likewise.
14053 (get_jit_program_space_data): Likewise.
14054 (jit_object_open_impl): Likewise.
14055 (jit_symtab_open_impl): Likewise.
14056 (jit_block_open_impl): Likewise.
14057 (jit_frame_sniffer): Likewise.
14058 * linux-fork.c (add_fork): Likewise.
14059 * maint.c (make_command_stats_cleanup): Likewise.
14060 * objfiles.c (get_objfile_pspace_data): Likewise.
14061 * opencl-lang.c (struct lval_closure): Likewise.
14062 * osdata.c (osdata_start_osdata): Likewise.
14063 * progspace.c (new_address_space): Likewise.
14064 (add_program_space): Likewise.
14065 * remote-sim.c (get_sim_inferior_data): Likewise.
14066 * sh-tdep.c (sh_gdbarch_init): Likewise.
14067 * skip.c (Ignore): Likewise.
14068 (skip_delete_command): Likewise.
14069 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
14070 (library_list_start_library): Likewise.
14071 (solib_aix_current_sos): Likewise.
14072 * solib-darwin.c (get_darwin_info): Likewise.
14073 (darwin_current_sos): Likewise.
14074 * solib-dsbt.c (get_dsbt_info): Likewise.
14075 * solib-ia64-hpux.c (new_so_list): Likewise.
14076 (ia64_hpux_get_solib_linkage_addr): Likewise.
14077 * solib-spu.c (append_ocl_sos): Likewise.
14078 (spu_current_sos): Likewise.
14079 * solib-svr4.c (get_svr4_info): Likewise.
14080 (svr4_keep_data_in_core): Likewise.
14081 (library_list_start_library): Likewise.
14082 (svr4_default_sos): Likewise.
14083 (svr4_read_so_list): Likewise.
14084 * solib-target.c (library_list_start_library): Likewise.
14085 (solib_target_current_sos): Likewise.
14086 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
14087 * symfile-debug.c (install_symfile_debug_logging): Likewise.
14088 * symfile.c (default_symfile_segments): Likewise.
14089 * target-descriptions.c (tdesc_data_init): Likewise.
14090 (tdesc_create_reg): Likewise.
14091 (struct tdesc_type *): Likewise.
14092 (tdesc_create_vector): Likewise.
14093 (tdesc_set_struct_size): Likewise.
14094 (struct tdesc_type *): Likewise.
14095 (tdesc_free_feature): Likewise.
14096 (tdesc_create_feature): Likewise.
14097 * windows-nat.c (windows_add_thread): Likewise.
14098 (windows_make_so): Likewise.
14099 * xml-support.c (gdb_xml_body_text): Likewise.
14100 (gdb_xml_create_parser_and_cleanup): Likewise.
14101 (xml_process_xincludes): Likewise.
14102 * xml-syscall.c (allocate_syscalls_info): Likewise.
14103 (syscall_create_syscall_desc): Likewise.
14104
5acfdbae
SDJ
141052014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
14106
14107 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
14108 function, with code from i386_stap_parse_special_token.
14109 (i386_stap_parse_special_token_three_arg_disp): Likewise.
14110 (i386_stap_parse_special_token): Move code to the two functions
14111 above; simplify it.
14112
0000e5cc
PA
141132014-01-09 Pedro Alves <palves@redhat.com>
14114 Hui Zhu <hui@codesourcery.com>
14115
14116 PR gdb/16101
14117 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
14118 bp_err_string. Don't mark the location shlib_disabled if the
14119 error thrown wasn't a generic or memory error. Catch errors
14120 thrown while inserting breakpoints in overlayed code. Output
14121 error message of software breakpoints.
14122 * remote.c (remote_insert_breakpoint): If this breakpoint has
14123 target-side commands but this stub doesn't support Z0 packets,
14124 throw NOT_SUPPORTED_ERROR error.
14125 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
14126 * target.h (target_insert_breakpoint): Extend comment.
14127 (target_insert_hw_breakpoint): Add comment.
14128
b7ea362b
PA
141292014-01-08 Pedro Alves <palves@redhat.com>
14130
14131 * remote.c (remote_add_thread): Add threads silently if starting
14132 up.
14133 (remote_notice_new_inferior): If in all-stop, and starting up,
14134 don't call notice_new_inferior.
14135 (get_current_thread): New function, factored out from ...
14136 (add_current_inferior_and_thread): ... this. Adjust.
14137 (remote_start_remote) <all-stop>: Fetch the thread list. If we
14138 found any thread, then select the remote's current thread as GDB's
14139 current thread too.
14140
b7bba001
JB
141412014-01-08 Joel Brobecker <brobecker@adacore.com>
14142
14143 * NEWS: Create a new section for the next release branch.
14144 Rename the section of the current branch, now that it has
14145 been cut.
14146
16dfbded
JB
141472014-01-08 Joel Brobecker <brobecker@adacore.com>
14148
14149 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
14150 * version.in: Bump version to 7.7.50.DATE-cvs.
14151
22c90ac1
YQ
141522014-01-08 Yao Qi <yao@codesourcery.com>
14153
14154 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
14155 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
14156 (spu_xfer_partial): Cast 'buf' to 'const char *'.
14157
d64ad97c
YQ
141582014-01-08 Yao Qi <yao@codesourcery.com>
14159
14160 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
14161 return value of bfd_get_filename to symbol_file_add_from_bfd.
14162
f93ba80c
PM
141632014-01-08 Pierre Muller <muller@sourceware.org>
14164
14165 Fix PR16201.
14166 * coff-pe-read.c (struct read_pe_section_data): Add index field.
14167 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
14168 to prim_record_mininal_symbol_and_info.
14169 (add_pe_forwarded_sym): Use known section number of forwarded symbol
14170 in call to prim_record_minimal_symbol_and_info.
14171 (read_pe_exported_syms): Set index field of section_data.
14172
a4d9ba85
AP
141732014-01-07 Andrew Pinski <apinski@cavium.com>
14174
14175 * features/aarch64-core.xml (cpsr): Change to be 64bit.
14176 * features/aarch64.c: Regenerate.
14177
1b67eb02
AS
141782014-01-07 Andreas Schwab <schwab@linux-m68k.org>
14179
14180 * target.c (return_null): Define.
14181 (update_current_target): Use it instead of return_zero for
14182 functions that return a pointer.
14183
5e3f4fab
EBM
141842014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
14185
14186 * source.c (add_path): Fix check for duplicated paths in the previously
14187 included paths.
14188
e2616788
HK
141892014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
14190
14191 * ada-lang.c: Remove duplicated include statements.
14192 * alphabsd-nat.c: Ditto.
14193 * amd64-darwin-tdep.c: Ditto.
14194 * amd64fbsd-nat.c: Ditto.
14195 * auto-load.c: Ditto.
14196 * ax-gdb.c: Ditto.
14197 * breakpoint.c: Ditto.
14198 * dbxread.c: Ditto.
14199 * fork-child.c: Ditto.
14200 * gdb_usleep.c: Ditto.
14201 * i386-darwin-tdep.c: Ditto.
14202 * i386fbsd-nat.c: Ditto.
14203 * infcmd.c: Ditto.
14204 * inferior.c: Ditto.
14205 * jv-lang.c: Ditto.
14206 * linux-nat.c: Ditto.
14207 * linux-tdep.c: Ditto.
14208 * m68kbsd-nat.c: Ditto.
14209 * m68klinux-nat.c: Ditto.
14210 * microblaze-tdep.c: Ditto.
14211 * mips-linux-tdep.c: Ditto.
14212 * mn10300-tdep.c: Ditto.
14213 * nto-tdep.c: Ditto.
14214 * opencl-lang.c: Ditto.
14215 * osdata.c: Ditto.
14216 * printcmd.c: Ditto.
14217 * regcache.c: Ditto.
14218 * remote-m32r-sdi.c: Ditto.
14219 * remote.c: Ditto.
14220 * symfile.c: Ditto.
14221 * symtab.c: Ditto.
14222 * tilegx-linux-nat.c: Ditto.
14223 * tilegx-tdep.c: Ditto.
14224 * tracepoint.c: Ditto.
14225 * valops.c: Ditto.
14226 * vaxbsd-nat.c: Ditto.
14227 * windows-nat.c: Ditto.
14228 * xtensa-tdep.c: Ditto.
14229
bd1f7788
YQ
142302014-01-07 Yao Qi <yao@codesourcery.com>
14231
14232 * spu-linux-nat.c (_initialize_spu_nat): Declare.
14233
79301218
JB
142342014-01-07 Yao Qi <yao@codesourcery.com>
14235 Joel Brobecker <brobecker@adacore.com>
14236
14237 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
14238 (pdc_write_regs): Likewise.
14239 (fetch_regs_kernel_thread): Likewise.
14240 (store_regs_kernel_thread): Likewise.
14241
142422014-01-07 Joel Brobecker <brobecker@adacore.com>
14243
14244 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
14245 tagged type objects to their actual type.
14246
8e355c5d
JB
142472014-01-07 Joel Brobecker <brobecker@adacore.com>
14248
14249 * ada-valprint.c (print_field_values): Add "language" parameter.
14250 Update calls to print_field_values and print_variant_part.
14251 Pass new parameter "language" in call to val_print instead
14252 of "current_language". Replace call to ada_val_print by call
14253 to val_print.
14254 (print_variant_part): Add "language" parameter.
14255 (ada_val_print_struct_union): Update call to print_field_values.
14256
4fbf5aa5
JB
142572014-01-07 Joel Brobecker <brobecker@adacore.com>
14258
14259 * ada-valprint.c (ui_memcpy): Delete.
14260 (ada_print_floating): Update documentation. Add empty line
14261 between between function documentation and implementation.
14262 Delete variable "buffer". Use ui_file_xstrdup in place of
14263 ui_file_put. Minor adjustments following this change.
14264
71855601
JB
142652014-01-07 Joel Brobecker <brobecker@adacore.com>
14266
14267 * ada-valprint.c (ada_val_print_string): New function,
14268 extracted from ada_val_print_array.
14269 (ada_val_print_array): Replace extracted code by call
14270 to ada_val_print_string followed by a return. Move
14271 "else" branch to the function's top block.
14272
4eb27a30
JB
142732014-01-07 Joel Brobecker <brobecker@adacore.com>
14274
14275 * ada-valprint.c (ada_val_print_array): Move implementation
14276 down. Rename parameter "offset" and "val" into "offset_aligned"
14277 and "original_value" respectively. Add parameter "offset".
14278
34b27950
JB
142792014-01-07 Joel Brobecker <brobecker@adacore.com>
14280
14281 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
14282 re-organizing the code. Change the "???" message printed
14283 when target type is a TYPE_CODE_UNDEF into
14284 "<ref to undefined type>".
14285
079e4591
JB
142862014-01-07 Joel Brobecker <brobecker@adacore.com>
14287
14288 * ada-valprint.c (print_record): Delete, implementation inlined...
14289 (ada_val_print_struct_union): ... here. Remove call to
14290 ada_check_typedef in inlined implementation.
14291
8004dfd1
JB
142922014-01-07 Joel Brobecker <brobecker@adacore.com>
14293
14294 * ada-valprint.c (ada_val_print_gnat_array): New function,
14295 extracted from ada_val_print_1;
14296 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
14297 (ada_val_print_flt, ada_val_print_struct_union)
14298 (ada_val_print_ref): Likewise.
14299 (ada_val_print_1): Delete variables i and elttype.
14300 Replace extracted-out code by call to corresponding
14301 new functions.
14302
760a2db0
JB
143032014-01-07 Joel Brobecker <brobecker@adacore.com>
14304
14305 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
14306
3a92c861
JB
143072014-01-07 Joel Brobecker <brobecker@adacore.com>
14308
14309 * ada-valprint.c (ada_val_print_1): Replace calls to
14310 ada_val_print_1 by calls to val_print.
14311
cd1630f9
JB
143122014-01-07 Joel Brobecker <brobecker@adacore.com>
14313
14314 * ada-valprint.c (ada_val_print_1): Add parameter "language".
14315 Update calls to self accordingly. Replace calls to c_val_print
14316 by calls to val_print.
14317
bdf779a0
JB
143182014-01-07 Joel Brobecker <brobecker@adacore.com>
14319
14320 * ada-valprint.c (print_record): Delete declaration.
14321 (adjust_type_signedness, ada_val_print_1): Likewise.
14322 (ada_val_print): Move function implementation down.
14323 (print_variant_part, print_field_values, print_record):
14324 Move function implementation up.
14325
c0d48811
JB
143262014-01-07 Joel Brobecker <brobecker@adacore.com>
14327
14328 * python/py-type.c (typy_get_name): New function.
14329 (type_object_getset): Add entry for attribute "name".
14330 * NEWS: Add entry mentioning this new attribute.
14331
c26e9cbb
YQ
143322014-01-07 Yao Qi <yao@codesourcery.com>
14333
14334 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
14335 statement.
14336
0cc6f43d
YQ
143372014-01-07 Yao Qi <yao@codesourcery.com>
14338
14339 * gnu-nat.c (info_port_rights): Add qualifier const to
14340 argument args.
14341
eec03155
YQ
143422014-01-07 Yao Qi <yao@codesourcery.com>
14343
14344 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
14345
f04a82ef
YQ
143462014-01-07 Yao Qi <yao@codesourcery.com>
14347
14348 * gnu-nat.c (make_inf) Update declaration.
14349 (make_inf): Make it static.
14350 (inf_set_traced): Likewise.
14351 (inf_port_to_thread, inf_task_died_status): Likewise.
14352
d57dda0a
YQ
143532014-01-07 Yao Qi <yao@codesourcery.com>
14354
14355 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
14356
3aa8c969
YQ
143572014-01-07 Yao Qi <yao@codesourcery.com>
14358
14359 * gnu-nat.c (_initialize_gnu_nat): Declare.
14360
94123b4f
YQ
143612014-01-07 Yao Qi <yao@codesourcery.com>
14362
14363 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
14364 'enum bfd_endian'.
14365 (struct gdbarch_info) <byte_order>: Change type to
14366 'enum bfd_endian'.
14367 <byte_order_for_code>: Likewise.
14368 * gdbarch.c, gdbarch.h: Regenerated.
14369
dc81d70a
TT
143702014-01-06 Sasha Smundak <asmundak@google.com>
14371
14372 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
14373
cc2f3c35
TT
143742014-01-06 Tom Tromey <tromey@redhat.com>
14375
14376 * doublest.c (convert_doublest_to_floatformat): Use const, not
14377 CONST.
14378 * somread.c (som_symtab_read): Likewise.
14379
adcf2eed
HZ
143802014-01-07 Hui Zhu <hui@codesourcery.com>
14381
14382 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
14383 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
14384 (gdb_bfd_fopen): Ditto.
14385 (gdb_bfd_openr): Ditto.
14386 (gdb_bfd_openw): Ditto.
14387 (gdb_bfd_openr_iovec): Ditto.
14388 (gdb_bfd_fdopenr): Ditto.
14389 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
14390 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
14391 with xstrdup.
14392 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
14393 with xstrdup.
14394 * symfile-mem.c (symbol_file_add_from_memory): Removed
14395 gdb_bfd_stash_filename.
14396
50722198
DE
143972014-01-03 Doug Evans <dje@google.com>
14398
14399 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
14400 output.
14401
2fa4b862
JB
144022014-01-01 Joel Brobecker <brobecker@adacore.com>
14403
14404 Update year range in copyright notice of all files.
14405
28498c42
JB
144062014-01-01 Joel Brobecker <brobecker@adacore.com>
14407
14408 * top.c (print_gdb_version): Set copyright year to 2014.
14409
7b6e1046
JB
144102014-01-01 Joel Brobecker <brobecker@adacore.com>
14411
14412 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
14413
df96af55 14414For older changes see ChangeLog-2013.
c906108c
SS
14415\f
14416Local Variables:
14417mode: change-log
14418left-margin: 8
14419fill-column: 74
14420version-control: never
57da7796 14421coding: utf-8
c906108c 14422End:
This page took 2.34894 seconds and 4 git commands to generate.