]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
PR gdb/17472: With annotations, input while executing in the foreground crashes readl...
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
6fdebc3d
PA
12014-10-17 Pedro Alves <palves@redhat.com>
2
3 PR gdb/17472
4 * annotate.c (annotate_breakpoints_invalid): Use
5 target_terminal_our_for_output instead of target_terminal_ours.
6 Give back the terminal to the target.
7 (annotate_frames_invalid): Likewise.
8
5842f62a
PA
92014-10-17 Pedro Alves <palves@redhat.com>
10
11 * target.c (enum terminal_state): New enum.
12 (terminal_state): New global.
13 (target_terminal_init): New function.
14 (target_terminal_inferior): Skip if inferior already owns the
15 terminal.
16 (target_terminal_ours, target_terminal_ours_for_output): New
17 functions.
18 * target.h (target_terminal_init): Convert to function prototype.
19 (target_terminal_ours_for_output): Convert to function prototype
20 and tweak comment.
21 (target_terminal_ours): Convert to function prototype and tweak
22 comment.
23 * windows-nat.c (do_initial_windows_stuff): Call
24 target_terminal_init instead of child_terminal_init_with_pgrp.
25
32a8097b
PA
262014-10-17 Pedro Alves <palves@redhat.com>
27
28 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
29 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
30 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
31 solib-osf.c.
32 * NEWS: Mention that support for alpha*-*-osf* has been removed.
33 * ada-lang.h [__alpha__ && __osf__]
34 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
35 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
36 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
37 GDB_OSABI_OSF1.
38 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
39 files.
40 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
41 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
42 * configure: Regenerate.
43 * configure.ac: Remove references to osf.
44 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
45 section. Remove all other references to osf.
46 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
47 Remove all other references to osf.
48 * dec-thread.c: Delete file.
49 * defs.h (GDB_OSABI_OSF1): Delete.
50 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
51 defined.
52 * osabi.c (gdb_osabi_names): Delete "OSF/1".
53 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
54 Delete code.
55 (unconditionally_kill_inferior)
56 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
57 * solib-osf.c: Delete file.
58
80134cf5
PA
592014-10-17 Pedro Alves <palves@redhat.com>
60
61 * remote.c (clear_threads_listing_context): Move higher up, out of
62 the HAVE_LIBEXPAT guard.
63
89c7137f
TG
642014-10-16 Tristan Gingold <gingold@adacore.com>
65
66 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
67 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
68 on amd64.
69
44ee4a52
PA
702014-10-15 Pedro Alves <palves@redhat.com>
71
72 * dec-thread.c (dec_thread_count_gdb_threads)
73 (dec_thread_add_gdb_thread): Delete.
74 (dec_thread_update_thread_list): Delete.
75 (dec_thread_find_new_threads): Rename to ...
76 (dec_thread_update_thread_list): ... this. Delete GDB-size
77 threads that are no longer found in dec_thread_list.
78 (resync_thread_list): Delete.
79 (dec_thread_wait): Call dec_thread_update_thread_list instead of
80 resync_thread_list.
81
ab970af1
PA
822014-10-15 Pedro Alves <palves@redhat.com>
83
84 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
85 * remote.c (remote_update_thread_list): Skip calling prune_threads
86 if any thread listing method is supported, and instead walk over
87 the set of remote threads listed, deleting those that are not
88 found in GDB's thread list.
89
e8032dde
PA
902014-10-15 Pedro Alves <palves@redhat.com>
91
92 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
93 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
94 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
95 (bsd_uthread_target): Adjust.
96 * corelow.c (core_open): Adjust.
97 * dec-thread.c (dec_thread_find_new_threads): Update comment.
98 (dec_thread_update_thread_list): New function.
99 (init_dec_thread_ops): Adjust.
100 * gdbthread.h (prune_threads): New declaration.
101 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
102 (thread_db_update_thread_list): ... this. Call prune_threads.
103 (init_thread_db_ops): Adjust.
104 * nto-procfs.c (procfs_find_new_threads): Rename to ...
105 (procfs_update_thread_list): ... this. Call prune_threads.
106 (procfs_attach, procfs_create_inferior, init_procfs_targets):
107 Adjust.
108 * obsd-nat.c (obsd_find_new_threads): Rename to ...
109 (obsd_update_thread_list): ... this. Call prune_threads.
110 (obsd_add_target): Adjust.
111 * procfs.c (procfs_target): Adjust.
112 (procfs_notice_thread): Update comment.
113 (procfs_find_new_threads): Rename to ...
114 (procfs_update_thread_list): ... this. Call prune_threads.
115 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
116 comment.
117 (ravenscar_wait): Adjust.
118 (ravenscar_find_new_threads): Rename to ...
119 (ravenscar_update_thread_list): ... this. Call prune_threads.
120 (init_ravenscar_thread_ops): Adjust.
121 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
122 (record_btrace_update_thread_list): ... this. Adjust comment.
123 (init_record_btrace_ops): Adjust.
124 * remote.c (remote_threads_info): Rename to ...
125 (remote_update_thread_list): ... this. Call prune_threads.
126 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
127 Adjust.
128 * sol-thread.c (check_for_thread_db): Adjust.
129 (sol_find_new_threads_callback): Rename to ...
130 (sol_update_thread_list_callback): ... this.
131 (sol_find_new_threads): Rename to ...
132 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
133 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
134 * target-delegates.c: Regenerate.
135 * target.c (target_find_new_threads): Rename to ...
136 (target_update_thread_list): ... this.
137 * target.h (struct target_ops): Rename to_find_new_threads field
138 to to_update_thread_list.
139 (target_find_new_threads): Rename to ...
140 (target_update_thread_list): ... this.
141 * thread.c (prune_threads): Make extern.
142 (update_thread_list): Adjust.
143
6dc54d91
PA
1442014-10-15 Pedro Alves <palves@redhat.com>
145
146 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
147 Add describing comment. Return -1 if the qL packet is not
148 supported.
149 (struct thread_item, thread_item_t): Move higher up in
150 the file. Add comments.
151 (struct threads_parsing_context): Move higher up in
152 the file, add comments, and remote to ...
153 (struct threads_listing_context): ... this.
154 (remote_newthread_step): Don't add the thread to GDB's thread
155 database here. Instead push it to the thread_listing_context
156 list.
157 (remote_find_new_threads): Rename to ...
158 (remote_get_threads_with_ql): ... this. Add target_ops and
159 targets_listing_context parameters. Pass down context.
160 (start_thread): Adjust.
161 (clear_threads_parsing_context): Rename to ...
162 (clear_threads_listing_context): ... this.
163 (remote_get_threads_with_qxfer): New, with parts salvaged from old
164 remote_threads_info.
165 (remote_get_threads_with_qthreadinfo): Ditto.
166 (remote_threads_info): Reimplement.
167
36728e82
PA
1682014-10-15 Pedro Alves <palves@redhat.com>
169
170 * infrun.c (resume): Don't force displaced-stepping for all
171 single-steps on software single-stepping archs.
172
34b7e8a6
PA
1732014-10-15 Pedro Alves <palves@redhat.com>
174
175 * breakpoint.c (single_step_breakpoints): Delete global.
176 (insert_single_step_breakpoint): Adjust to store the breakpoint
177 pointer in the current thread.
178 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
179 (cancel_single_step_breakpoints): Delete functions.
180 (breakpoint_has_location_inserted_here): Make extern.
181 (single_step_breakpoint_inserted_here_p): Adjust to walk the
182 breakpoint list.
183 * breakpoint.h (breakpoint_has_location_inserted_here): New
184 declaration.
185 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
186 (cancel_single_step_breakpoints): Remove declarations.
187 * gdbthread.h (struct thread_control_state)
188 <single_step_breakpoints>: New field.
189 (delete_single_step_breakpoints)
190 (thread_has_single_step_breakpoints_set)
191 (thread_has_single_step_breakpoint_here): New declarations.
192 * infrun.c (follow_exec): Also clear the single-step breakpoints.
193 (singlestep_breakpoints_inserted_p, singlestep_ptid)
194 (singlestep_pc): Delete globals.
195 (infrun_thread_ptid_changed): Remove references to removed
196 globals.
197 (resume_cleanups): Delete the current thread's single-step
198 breakpoints.
199 (maybe_software_singlestep): Remove references to removed globals.
200 (resume): Adjust to use thread_has_single_step_breakpoints_set and
201 delete_single_step_breakpoints.
202 (init_wait_for_inferior): Remove references to removed globals.
203 (delete_thread_infrun_breakpoints): Delete the thread's
204 single-step breakpoints too.
205 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
206 single-step breakpoints here.
207 (delete_stopped_threads_single_step_breakpoints): New function.
208 (adjust_pc_after_break): Adjust to use
209 thread_has_single_step_breakpoints_set.
210 (handle_inferior_event): Remove references to removed globals.
211 Use delete_stopped_threads_single_step_breakpoints.
212 (handle_signal_stop): Adjust to per-thread single-step
213 breakpoints. Swap test order to do cheaper tests first.
214 (switch_back_to_stepped_thread): Extend debug output. Remove
215 references to removed globals.
216 * record-full.c (record_full_wait_1): Adjust to per-thread
217 single-step breakpoints.
218 * thread.c (delete_single_step_breakpoints)
219 (thread_has_single_step_breakpoints_set)
220 (thread_has_single_step_breakpoint_here): New functions.
221 (clear_thread_inferior_resources): Also delete the thread's
222 single-step breakpoints.
223
5b834a0a
PA
2242014-10-15 Pedro Alves <palves@redhat.com>
225
226 * thread.c (delete_thread_breakpoint): New function.
227 (delete_step_resume_breakpoint)
228 (delete_exception_resume_breakpoint): Use it.
229 (delete_at_next_stop): New function.
230 (clear_thread_inferior_resources): Use delete_at_next_stop.
231
a1fd2fa5
PA
2322014-10-15 Pedro Alves <palves@redhat.com>
233
234 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
235 (breakpoint_inserted_here_p): ... here. Remove special case for
236 software single-step breakpoints.
237 (find_non_raw_software_breakpoint_inserted_here): Inline ...
238 (software_breakpoint_inserted_here_p): ... here. Remove special
239 case for software single-step breakpoints.
240 (bp_target_info_copy_insertion_state)
241 (deprecated_insert_raw_breakpoint)
242 (deprecated_remove_raw_breakpoint): Delete functions.
243 * breakpoint.h (deprecated_insert_raw_breakpoint)
244 (deprecated_remove_raw_breakpoint): Remove declarations.
245
7c16b83e
PA
2462014-10-15 Pedro Alves <palves@redhat.com>
247
248 PR breakpoints/9649
249 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
250 Delete array globals.
251 (single_step_breakpoints): New global.
252 (breakpoint_xfer_memory): Remove special handling for single-step
253 breakpoints.
254 (update_breakpoints_after_exec): Delete bp_single_step
255 breakpoints.
256 (detach_breakpoints): Remove special handling for single-step
257 breakpoints.
258 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
259 (bpstat_stop_status): Add comment.
260 (bpstat_what, bptype_string, print_one_breakpoint_location)
261 (adjust_breakpoint_address, init_bp_location): Handle
262 bp_single_step.
263 (new_single_step_breakpoint): New function.
264 (set_momentary_breakpoint, bkpt_remove_location): Remove special
265 handling for single-step breakpoints.
266 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
267 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
268 Rewrite.
269 (detach_single_step_breakpoints, find_single_step_breakpoint):
270 Delete functions.
271 (breakpoint_has_location_inserted_here): New function.
272 (single_step_breakpoint_inserted_here_p): Rewrite.
273 * breakpoint.h: Remove FIXME.
274 (enum bptype) <bp_single_step>: New enum value.
275 (insert_single_step_breakpoint): Update comment.
276 * infrun.c (resume_cleanups)
277 (delete_step_thread_step_resume_breakpoint): Remove single-step
278 breakpoints.
279 (fetch_inferior_event): Install a cleanup that removes infrun
280 breakpoints.
281 (switch_back_to_stepped_thread) <expect thread advanced also>:
282 Clear step-over info.
283
0cbcdb96
PA
2842014-10-15 Pedro Alves <palves@redhat.com>
285
286 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
287 (delete_thread_infrun_breakpoints): New function, with parts
288 salvaged from delete_step_resume_breakpoint_callback.
289 (delete_step_thread_step_resume_breakpoint): Delete.
290 (for_each_just_stopped_thread_callback_func): New typedef.
291 (for_each_just_stopped_thread): New function.
292 (delete_just_stopped_threads_infrun_breakpoints): New function.
293 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
294 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
295 ... this. Adjust.
296 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
297
963f9c80
PA
2982014-10-15 Pedro Alves <palves@redhat.com>
299
300 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
301 trying to step past a non-steppable watchpoint.
302 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
303 field.
304 * infrun.c (struct step_over_info): Add new field
305 'nonsteppable_watchpoint_p' and adjust comments.
306 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
307 Adjust.
308 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
309 (stepping_past_nonsteppable_watchpoint): New function.
310 (step_over_info_valid_p): Also return true if stepping past a
311 nonsteppable watchpoint.
312 (proceed): Adjust call to set_step_over_info. Remove reference to
313 init_infwait_state.
314 (init_wait_for_inferior): Remove reference to init_infwait_state.
315 (waiton_ptid): Delete global.
316 (struct execution_control_state)
317 <stepped_after_stopped_by_watchpoint>: Delete field.
318 (wait_for_inferior, fetch_inferior_event): Always pass
319 minus_one_ptid to target_wait.
320 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
321 field.
322 (init_infwait_state): Delete function.
323 (handle_inferior_event): Remove infwait_state handling.
324 (handle_signal_stop) <watchpoints handling>: Adjust after
325 stepped_after_stopped_by_watchpoint removal. Don't remove
326 breakpoints here nor set infwait_state. Set the thread's
327 stepping_over_watchpoint flag, and call keep_going instead.
328 (keep_going): Handle stepping_over_watchpoint. Adjust
329 set_step_over_info calls.
330 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
331 function.
332
6cc83d2a
PA
3332014-10-15 Pedro Alves <palves@redhat.com>
334
335 * infrun.c (step_over_info_valid_p): New function.
336 (resume): Use step_over_info_valid_p instead of checking the
337 threads's trap_expected flag.
338
6979730b
DE
3392014-10-15 Doug Evans <dje@google.com>
340 Walfred Tedeschi <walfred.tedeschi@intel.com>
341
342 PR python/17364
343 * python/lib/gdb/__init__.py (packages): Add "printer".
344 * python/lib/gdb/command/bound_registers.py: Moved to ...
345 * python/lib/gdb/printer/bound_registers.py: ... here.
346 Add printer to global set of builtin printers. Rename printer from
347 "bound" to "mpx_bound128".
348 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
349 registered as global "builtin" printer.
350 (add_builtin_pretty_printer): New function.
351 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
352 gdb/printer/__init__.py.
353
35a49624
IB
3542014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
355
356 * Makefile.in (SFILES): Remove d-support.c.
357 (COMMON_OBS): Remove d-support.o.
358 * d-lang.h (d_parse_symbol): Remove declaration.
359 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
360 * d-support.c: Remove file.
361
8fa0c4f8
AA
3622014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
363
364 * gdb/infrun.c (process_event_stop_test): Apply
365 gdbarch_addr_bits_remove to longjmp resume address.
366
3666da81
PA
3672014-10-15 Pedro Alves <palves@redhat.com>
368
369 * regformats/microblaze.dat: Delete file.
370
449aa9df
AKA
3712014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
372
373 * features/Makefile (microblaze-expedite): Replace pc with rpc.
374 * regformats/microblaze-with-stack-protect.dat: Regenerate.
375
ebb8ece2
SC
3762014-10-15 Siva Chandra Reddy <sivachandra@google.com>
377
378 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
379 as non-trivial.
380
82c48ac7
SC
3812014-10-15 Siva Chandra Reddy <sivachandra@google.com>
382
383 PR c++/13403
384 PR c++/15154
385 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
386 with qualified args.
387
c40cc657
JB
3882014-10-14 Joel Brobecker <brobecker@adacore.com>
389
390 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
391 of the case where the second operand is a pointer.
392 <BINOP_SUB>: Likewise.
393
0ea5cda8
SDJ
3942014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
395
396 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
397 only if it is not NULL.
398 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
399 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
400 (struct probe_ops) <clear_semaphore>: Likewise.
401 * tracepoint.c (start_tracing): Call set_semaphore only if it is
402 not NULL.
403 (stop_tracing): Likewise, for clear_semaphore.
404
f7088df3
SDJ
4052014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
406
407 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
408 using language_c, instead of current_language.
409
4e1bbde0
DE
4102014-10-13 Doug Evans <dje@google.com>
411
6ff5a0f6 412 * python/py-objfile.c (objfpy_initialize): New function.
4e1bbde0 413 (objfpy_new, objfile_to_objfile_object): Call it.
6ff5a0f6 414 * python/py-progspace.c (pspy_initialize): New function.
4e1bbde0
DE
415 (pspy_new, pspace_to_pspace_object): Call it.
416
c780cc2f
JK
4172014-10-13 Miroslav Franc <mfranc@redhat.com>
418 Jan Kratochvil <jan.kratochvil@redhat.com>
419
420 Fix "save breakpoints" for "catch" command.
421 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
422 newline.
423
99894e11
JK
4242014-10-12 Miroslav Franc <mfranc@redhat.com>
425
426 Fix "save breakpoints" for "disable $bpnum" command.
427 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
428
3831839c
PA
4292014-10-10 Pedro Alves <palves@redhat.com>
430
431 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
432 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
433 (HFILES_NO_SRCDIR): Remove solib-irix.h.
434 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
435 and been removed.
436 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
437 * configure.ac: Remove references to IRIX.
438 * configure.host: Add *-*-irix* to the obsolete hosts section.
439 Remove all other references to irix.
440 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
441 Delete files.
442
cc3afae2
AKA
4432014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
444
445 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
446 isn't valid, release the tdesc arch data and return NULL.
447
cdfa0b0a
PA
4482014-10-10 Pedro Alves <palves@redhat.com>
449
450 * linux-tdep.c: Include observer.h.
451 (linux_inferior_data): New global.
452 (struct linux_info): New structure.
453 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
454 (get_linux_inferior_data): New functions.
455 (linux_vsyscall_range): Rename to ...
456 (linux_vsyscall_range_raw): ... this.
457 (linux_vsyscall_range): New function; handles caching.
458 (_initialize_linux_tdep): Register linux_inferior_data. Install
459 inferior_exit and inferior_appeared observers.
460
8b9a549d
PA
4612014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
462 Pedro Alves <palves@redhat.com>
463
464 PR symtab/14466
465 * solib-svr4.c (svr4_read_so_list): Rename to ...
466 (svr4_current_sos_1): ... this and change the function comment.
467 (svr4_current_sos): New function.
468
3437254d
PA
4692014-10-10 Pedro Alves <palves@redhat.com>
470
471 * arch-utils.c (default_vsyscall_range): New function.
472 * arch-utils.h (default_vsyscall_range): New declaration.
473 * gdbarch.sh (vsyscall_range): New hook.
474 * gdbarch.h, gdbarch.c: Regenerate.
475 * linux-tdep.c (linux_vsyscall_range): New function.
476 (linux_init_abi): Install linux_vsyscall_range as
477 vsyscall_range gdbarch hook.
478 * memrange.c (address_in_mem_range): New function.
479 * memrange.h (address_in_mem_range): New declaration.
480 * symfile-mem.c (find_vdso_size): Delete function.
481 (add_vsyscall_page): Use gdbarch_vsyscall_range.
482
31cc0b80
PA
4832014-10-10 Pedro Alves <palves@redhat.com>
484
485 * infrun.c (normal_stop): Fix typo in comment.
486
3e3286a2
SDJ
4872014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
488
489 PR tdep/9390
490 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
491 typo when using logical AND to determine instruction type.
492
fcbdedf8
YQ
4932014-10-09 Yao Qi <yao@codesourcery.com>
494
495 * infrun.c (handle_signal_stop): Remove local variable
496 'printed'.
497
db984616
SS
4982014-10-08 Stan Shebs <stan@codesourcery.com>
499
500 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
501
3ba37e6c
GB
5022014-10-08 Gary Benson <gbenson@redhat.com>
503
504 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
505
a442d071
GB
5062014-10-08 Gary Benson <gbenson@redhat.com>
507
508 * common/common-defs.h: Include common-exceptions.h.
509 * exceptions.h: Do not include common-exceptions.h.
510
6f1947e8
GB
5112014-10-08 Gary Benson <gbenson@redhat.com>
512
513 * common/common-defs.h: Include cleanups.h.
514 * common/common-exceptions.c: Do not include cleanups.h.
515 * utils.h: Likewise.
516
c765fdb9
GB
5172014-10-08 Gary Benson <gbenson@redhat.com>
518
519 * ada-lang.c: Do not include exceptions.h.
520 * ada-valprint.c: Likewise.
521 * amd64-tdep.c: Likewise.
522 * auto-load.c: Likewise.
523 * block.c: Likewise.
524 * break-catch-throw.c: Likewise.
525 * breakpoint.c: Likewise.
526 * btrace.c: Likewise.
527 * c-lang.c: Likewise.
528 * cli/cli-cmds.c: Likewise.
529 * cli/cli-interp.c: Likewise.
530 * cli/cli-script.c: Likewise.
531 * completer.c: Likewise.
532 * corefile.c: Likewise.
533 * corelow.c: Likewise.
534 * cp-abi.c: Likewise.
535 * cp-support.c: Likewise.
536 * cp-valprint.c: Likewise.
537 * darwin-nat.c: Likewise.
538 * dwarf2-frame-tailcall.c: Likewise.
539 * dwarf2-frame.c: Likewise.
540 * dwarf2loc.c: Likewise.
541 * dwarf2read.c: Likewise.
542 * eval.c: Likewise.
543 * event-loop.c: Likewise.
544 * event-top.c: Likewise.
545 * f-valprint.c: Likewise.
546 * frame-unwind.c: Likewise.
547 * frame.c: Likewise.
548 * gdbtypes.c: Likewise.
549 * gnu-v2-abi.c: Likewise.
550 * gnu-v3-abi.c: Likewise.
551 * guile/scm-auto-load.c: Likewise.
552 * guile/scm-breakpoint.c: Likewise.
553 * guile/scm-cmd.c: Likewise.
554 * guile/scm-frame.c: Likewise.
555 * guile/scm-lazy-string.c: Likewise.
556 * guile/scm-param.c: Likewise.
557 * guile/scm-symbol.c: Likewise.
558 * guile/scm-type.c: Likewise.
559 * hppa-hpux-tdep.c: Likewise.
560 * i386-tdep.c: Likewise.
561 * inf-loop.c: Likewise.
562 * infcall.c: Likewise.
563 * infcmd.c: Likewise.
564 * infrun.c: Likewise.
565 * interps.c: Likewise.
566 * interps.h: Likewise.
567 * jit.c: Likewise.
568 * linespec.c: Likewise.
569 * linux-nat.c: Likewise.
570 * linux-thread-db.c: Likewise.
571 * m32r-rom.c: Likewise.
572 * main.c: Likewise.
573 * memory-map.c: Likewise.
574 * mi/mi-cmd-break.c: Likewise.
575 * mi/mi-cmd-stack.c: Likewise.
576 * mi/mi-interp.c: Likewise.
577 * mi/mi-main.c: Likewise.
578 * monitor.c: Likewise.
579 * nto-procfs.c: Likewise.
580 * objc-lang.c: Likewise.
581 * p-valprint.c: Likewise.
582 * parse.c: Likewise.
583 * ppc-linux-tdep.c: Likewise.
584 * printcmd.c: Likewise.
585 * probe.c: Likewise.
586 * python/py-auto-load.c: Likewise.
587 * python/py-breakpoint.c: Likewise.
588 * python/py-cmd.c: Likewise.
589 * python/py-finishbreakpoint.c: Likewise.
590 * python/py-frame.c: Likewise.
591 * python/py-framefilter.c: Likewise.
592 * python/py-function.c: Likewise.
593 * python/py-gdb-readline.c: Likewise.
594 * python/py-inferior.c: Likewise.
595 * python/py-infthread.c: Likewise.
596 * python/py-lazy-string.c: Likewise.
597 * python/py-linetable.c: Likewise.
598 * python/py-param.c: Likewise.
599 * python/py-prettyprint.c: Likewise.
600 * python/py-symbol.c: Likewise.
601 * python/py-type.c: Likewise.
602 * python/py-value.c: Likewise.
603 * python/python-internal.h: Likewise.
604 * python/python.c: Likewise.
605 * record-btrace.c: Likewise.
606 * record-full.c: Likewise.
607 * regcache.c: Likewise.
608 * remote-fileio.c: Likewise.
609 * remote-mips.c: Likewise.
610 * remote.c: Likewise.
611 * rs6000-aix-tdep.c: Likewise.
612 * rs6000-nat.c: Likewise.
613 * skip.c: Likewise.
614 * solib-darwin.c: Likewise.
615 * solib-dsbt.c: Likewise.
616 * solib-frv.c: Likewise.
617 * solib-ia64-hpux.c: Likewise.
618 * solib-spu.c: Likewise.
619 * solib-svr4.c: Likewise.
620 * solib.c: Likewise.
621 * spu-tdep.c: Likewise.
622 * stack.c: Likewise.
623 * stap-probe.c: Likewise.
624 * symfile-mem.c: Likewise.
625 * symmisc.c: Likewise.
626 * target.c: Likewise.
627 * thread.c: Likewise.
628 * top.c: Likewise.
629 * tracepoint.c: Likewise.
630 * tui/tui-interp.c: Likewise.
631 * typeprint.c: Likewise.
632 * utils.c: Likewise.
633 * valarith.c: Likewise.
634 * valops.c: Likewise.
635 * valprint.c: Likewise.
636 * value.c: Likewise.
637 * varobj.c: Likewise.
638 * windows-nat.c: Likewise.
639 * xml-support.c: Likewise.
640
484933d1
MR
6412014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
642
643 * mips-tdep.c (add_offset_16): Rewrite to implement what the
644 name implies.
645 (extended_mips16_next_pc): Update accordingly.
646
ab50adb6
MR
6472014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
648
649 * mips-tdep.c (mips16_instruction_is_compact_branch): New
650 function.
651 (micromips_instruction_is_compact_branch): Likewise.
652 (mips16_scan_prologue): Terminate scanning upon seeing a branch
653 or a compact jump, reaching a jump delay slot, or seeing a
654 second non-prologue instruction.
655 (micromips_scan_prologue): Also terminate scanning upon seeing a
656 compact branch or jump, or reaching a branch or jump delay slot.
657 (mips32_scan_prologue): Terminate scanning upon reaching a branch
658 or jump delay slot, or seeing a second non-prologue instruction.
659 (mips32_instruction_has_delay_slot): Retain instruction
660 examination code only, update arguments accordingly and move
661 instruction fetch pieces to...
662 (mips32_insn_at_pc_has_delay_slot): ... this new function.
663 (micromips_instruction_has_delay_slot): Likewise and to...
664 (micromips_insn_at_pc_has_delay_slot): ... this new function.
665 (mips16_instruction_has_delay_slot): Likewise and to...
666 (mips16_insn_at_pc_has_delay_slot): ... this new function.
667 (mips_single_step_through_delay): Update accordingly.
668 (mips_adjust_breakpoint_address): Likewise.
669
ae790652
MR
6702014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
671
672 * mips-tdep.c (micromips_instruction_has_delay_slot): When
673 !mustbe32 also return 1 for 32-bit instructions.
674 (mips16_instruction_has_delay_slot): Likewise. Add an
675 explanatory comment.
676
9b807e7b
MR
6772014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
678
679 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
680 symbols special.
681
0d5ed153
MR
6822014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
683
684 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
685 update comments.
686 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
687 for the breakpoint's address. Don't preinitialize `placed_size'.
688 (insert_bp_location): Set `reqstd_address' rather than
689 `placed_address'.
690 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
691 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
692 address.
693 (bkpt_remove_location): Likewise.
694 (deprecated_insert_raw_breakpoint): Likewise.
695 (deprecated_remove_raw_breakpoint): Likewise.
696 (find_single_step_breakpoint): Likewise.
697 * mem-break.c (default_memory_insert_breakpoint): Use
698 `reqstd_address' for the breakpoint's address. Don't set
699 `placed_address' or `placed_size' if breakpoint contents couldn't
700 have been determined.
701 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
702 the breakpoint's address.
703 (remote_insert_hw_breakpoint): Likewise. Don't set
704 `placed_address' or `placed_size' if breakpoint couldn't have been
705 set.
706 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
707 `reqstd_address' for the breakpoint's address.
708 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
709 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
710 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
711 * microblaze-linux-tdep.c
712 (microblaze_linux_memory_remove_breakpoint): Likewise.
713 * monitor.c (monitor_insert_breakpoint): Likewise.
714 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
715 (procfs_insert_hw_breakpoint): Likewise.
716 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
717 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
718 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
719 * remote-mips.c (mips_insert_breakpoint): Likewise.
720 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
721
3e871532
LM
7222014-10-03 Luis Machado <lgustavo@codesourcery.com>
723
724 * valops.c (value_assign): Check for bit field assignments
725 before calling architecture-specific register value
726 conversion functions.
727
ec48dc8b
PM
7282014-10-03 Pierre Muller <muller@sourceware.org>
729
730 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
731
b57bacec
PA
7322014-10-02 Pedro Alves <palves@redhat.com>
733
734 * breakpoint.c (breakpoints_should_be_inserted_now): Use
735 threads_are_executing.
736 * breakpoint.h (breakpoints_should_be_inserted_now): Add
737 describing comment.
738 * gdbthread.h (threads_are_executing): Declare.
739 (handle_signal_stop) <random signals>: Don't print about the
740 signal here if stopping.
741 (end_stepping_range): Don't notify observers here.
742 (normal_stop): Update the thread list. If stopped by a random
743 signal or a stepping range ended, notify observers.
744 * thread.c (threads_executing): New global.
745 (init_thread_list): Clear 'threads_executing'.
746 (set_executing): Set or clear 'threads_executing'.
747 (threads_are_executing): New function.
748 (update_threads_executing): New function.
749 (update_thread_list): Use it.
750
13fd3ff3
PA
7512014-10-02 Pedro Alves <palves@redhat.com>
752
753 PR breakpoints/17431
754 * breakpoint.c (update_breakpoints_after_exec): Don't create
755 overlay, longjmp, std terminate nor exception breakpoints here.
756
32990ada
PA
7572014-10-02 Pedro Alves <palves@redhat.com>
758
759 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
760 Adjust comments.
761 * inferior.c (find_inferior_for_program_space): Give preference to
762 the current inferior.
763 * inferior.h (find_inferior_for_program_space): Update comment.
764 * progspace.c (switch_to_program_space_and_thread): Prefer the
765 current inferior if it's bound to the program space requested. If
766 the inferior found doesn't have a PID yet, don't bother looking up
767 a thread.
768 * progspace.h (switch_to_program_space_and_thread): Adjust
769 comment.
770 * thread.c (any_thread_of_process, any_live_thread_of_process):
771 Give preference to the current thread.
772
0fec99e8
PA
7732014-10-01 Pedro Alves <palves@redhat.com>
774
775 * breakpoint.c (insert_bp_location): Error out if inserting a
776 software breakpoint at a read-only address.
777 * target.c (memory_xfer_check_region): New function, factored out
778 from ...
779 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
780 ULONGEST.
781 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
782 against the memory region attributes.
783
2ddf4301
SM
7842014-10-01 Simon Marchi <simon.marchi@ericsson.com>
785
786 * NEWS: Announce new exit-code field in -list-thread-groups
787 output.
788 * inferior.c (exit_inferior_1): Don't clear exit code.
789 (inferior_appeared): Clear exit code.
790 * mi/mi-main.c (print_one_inferior): Add printing of the exit
791 code.
792
5fdeec1d
PA
7932014-10-01 Pedro Alves <palves@redhat.com>
794
795 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
796 GENERATED" along with emacs/vi read-only markers.
797 * regformats/aarch64.dat: Regenerate.
798 * regformats/arm-with-iwmmxt.dat: Regenerate.
799 * regformats/arm-with-neon.dat: Regenerate.
800 * regformats/arm-with-vfpv2.dat: Regenerate.
801 * regformats/arm-with-vfpv3.dat: Regenerate.
802 * regformats/i386/amd64-avx-linux.dat: Regenerate.
803 * regformats/i386/amd64-avx.dat: Regenerate.
804 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
805 * regformats/i386/amd64-avx512.dat: Regenerate.
806 * regformats/i386/amd64-linux.dat: Regenerate.
807 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
808 * regformats/i386/amd64-mpx.dat: Regenerate.
809 * regformats/i386/amd64.dat: Regenerate.
810 * regformats/i386/i386-avx-linux.dat: Regenerate.
811 * regformats/i386/i386-avx.dat: Regenerate.
812 * regformats/i386/i386-avx512-linux.dat: Regenerate.
813 * regformats/i386/i386-avx512.dat: Regenerate.
814 * regformats/i386/i386-linux.dat: Regenerate.
815 * regformats/i386/i386-mmx-linux.dat: Regenerate.
816 * regformats/i386/i386-mmx.dat: Regenerate.
817 * regformats/i386/i386-mpx-linux.dat: Regenerate.
818 * regformats/i386/i386-mpx.dat: Regenerate.
819 * regformats/i386/i386.dat: Regenerate.
820 * regformats/i386/x32-avx-linux.dat: Regenerate.
821 * regformats/i386/x32-avx.dat: Regenerate.
822 * regformats/i386/x32-avx512-linux.dat: Regenerate.
823 * regformats/i386/x32-avx512.dat: Regenerate.
824 * regformats/i386/x32-linux.dat: Regenerate.
825 * regformats/i386/x32.dat: Regenerate.
826 * regformats/microblaze-with-stack-protect.dat: Regenerate.
827 * regformats/mips-dsp-linux.dat: Regenerate.
828 * regformats/mips-linux.dat: Regenerate.
829 * regformats/mips64-dsp-linux.dat: Regenerate.
830 * regformats/mips64-linux.dat: Regenerate.
831 * regformats/nios2-linux.dat: Regenerate.
832 * regformats/rs6000/powerpc-32.dat: Regenerate.
833 * regformats/rs6000/powerpc-32l.dat: Regenerate.
834 * regformats/rs6000/powerpc-64l.dat: Regenerate.
835 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
836 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
837 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
838 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
839 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
840 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
841 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
842 * regformats/s390-linux32.dat: Regenerate.
843 * regformats/s390-linux32v1.dat: Regenerate.
844 * regformats/s390-linux32v2.dat: Regenerate.
845 * regformats/s390-linux64.dat: Regenerate.
846 * regformats/s390-linux64v1.dat: Regenerate.
847 * regformats/s390-linux64v2.dat: Regenerate.
848 * regformats/s390-te-linux64.dat: Regenerate.
849 * regformats/s390x-linux64.dat: Regenerate.
850 * regformats/s390x-linux64v1.dat: Regenerate.
851 * regformats/s390x-linux64v2.dat: Regenerate.
852 * regformats/s390x-te-linux64.dat: Regenerate.
853 * regformats/tic6x-c62x-linux.dat: Regenerate.
854 * regformats/tic6x-c62x.dat: Regenerate.
855 * regformats/tic6x-c64x-linux.dat: Regenerate.
856 * regformats/tic6x-c64x.dat: Regenerate.
857 * regformats/tic6x-c64xp-linux.dat: Regenerate.
858 * regformats/tic6x-c64xp.dat: Regenerate.
859
db74e4ba
PA
8602014-10-01 Pedro Alves <palves@redhat.com>
861
862 * features/Makefile: Update comments.
863 (XMLTOC): List all xml files we build C files from.
864 (clean-cfiles): New rule.
865
d63f2f84
PA
8662014-10-01 Pedro Alves <palves@redhat.com>
867
868 * features/i386/amd64-avx512-linux.c: Regenerate.
869 * features/i386/amd64-avx512.c: Regenerate.
870 * features/i386/x32-avx512-linux.c: Regenerate.
871 * features/i386/x32-avx512.c: Regenerate.
872
20ad026d
PA
8732014-10-01 Pedro Alves <palves@redhat.com>
874
875 * features/Makefile (WHICH): Remove arm-with-m,
876 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
877
acc9fe45
PA
8782014-10-01 Pedro Alves <palves@redhat.com>
879
880 * features/Makefile (clean): New rule.
881
e001e535
PA
8822014-10-01 Pedro Alves <palves@redhat.com>
883
884 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
885 (zmm14h): Add missing end quotes.
886
bdc14417
PA
8872014-10-01 Pedro Alves <palves@redhat.com>
888
889 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
890 * features/aarch64.c: Regenerate.
891
d83ad864
DB
8922014-09-30 Don Breazeal <donb@codesourcery.com>
893
894 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
895 code so as to work with follow_fork_inferior.
896 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
897 (inf_ttrace_create_inferior): Remove reference to
898 inf_ttrace_vfork_ppid.
899 (inf_ttrace_attach): Ditto.
900 (inf_ttrace_detach): Ditto.
901 (inf_ttrace_kill): Use current_inferior instead of
902 inf_ttrace_vfork_ppid.
903 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
904 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
905 inferior away from the parent.
906 * infrun.c (follow_fork): Call follow_fork_inferior instead of
907 target_follow_fork.
908 (follow_fork_inferior): New function.
909 (follow_inferior_reset_breakpoints): Make function static.
910 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
911 * linux-nat.c (linux_child_follow_fork): Move target-independent
912 code to infrun.c:follow_fork_inferior.
913
29082443
AA
9142014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
915
916 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
917 * gdbarch.c: Regenerate.
918 * gdbarch.h: Likewise.
919 * corelow.c (sniff_core_bfd): Drop presence check for deleted
920 gdbarch method 'regset_from_core_section'.
921 (get_core_register_section): Remove handling for the case that
922 regset == NULL and regset_from_core_section is defined.
923 (get_core_registers): Drop check for deleted method.
924 * procfs.c (procfs_do_thread_registers): Adjust comment.
925
f968fe80
AA
9262014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
927
928 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
929 (linux_nat_make_corefile_notes): Remove.
930 (linux_target_install_ops): Do not set target method
931 'make_corefile_notes'.
932 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
933 Remove field.
934 (linux_corefile_thread_callback): Instead of args->collect, call
935 linux_collect_thread_registers.
936 (linux_make_corefile_notes): Remove 'collect' parameter. Return
937 NULL unless there is a regset iterator.
938 (linux_make_corefile_notes_1): Remove.
939 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
940 by linux_make_corefile_notes.
941 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
942
174ad59a
AA
9432014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
944
945 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
946 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
947 Remove.
948 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
949
97094034
AA
9502014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
951
952 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
953 (xtensa_iterate_over_regset_sections): New.
954 (xtensa_gdbarch_init): Adjust gdbarch initialization.
955
f73d3ce7
AA
9562014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
957
958 * vax-tdep.c (vax_regset_from_core_section): Remove.
959 (vax_iterate_over_regset_sections): New.
960 (vax_gdbarch_init): Adjust gdbarch initialization.
961
cb24567a
AA
9622014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
963
964 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
965 (tilegx_regset_from_core_section): Remove.
966 (tilegx_iterate_over_regset_sections): New.
967 (tilegx_linux_init_abi): Adjust gdbarch initialization.
968
e5139de8
AA
9692014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
970
971 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
972 (sparc_iterate_over_regset_sections): New.
973 (sparc32_gdbarch_init): Adjust gdbarch initialization.
974 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
975 targets.
976 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
977 (sparc64fbsd_init_abi): Call fbsd_init_abi.
978 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
979 target method 'make_corefile_notes'.
980
c6d41a6f
AA
9812014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
982
983 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
984 'sizeof_gregset' and 'sizeof_fpregset'.
985 * sh-tdep.c (sh_regset_from_core_section): Remove.
986 (sh_iterate_over_regset_sections): New.
987 (sh_gdbarch_init): Adjust gdbarch initialization.
988 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
989 sizeof_fpregset.
990 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
991 'sizeof_gregset'.
992
9845a0b5
AA
9932014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
994
995 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
996 (score7_linux_iterate_over_regset_sections): New.
997 (score_gdbarch_init): Adjust gdbarch initialization.
998
23ea9aeb
AA
9992014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1000
1001 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
1002 FreeBSD targets.
1003 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
1004 method 'make_corefile_notes'.
1005 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
1006 (ppcfbsd_regset_from_core_section): Remove.
1007 (ppcfbsd_iterate_over_regset_sections): New.
1008 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
1009 initialization.
1010 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
1011 (ppcnbsd_iterate_over_regset_sections): New.
1012 (ppcnbsd_init_abi): Adjust.
1013 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
1014 (ppcobsd_iterate_over_regset_sections): New.
1015 (ppcobsd_init_abi): Adjust.
1016 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
1017 (rs6000_aix_iterate_over_regset_sections): New.
1018 (rs6000_aix_init_osabi): Adjust.
1019
c5b8d704
AA
10202014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1021
1022 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
1023 (nios2_regset_from_core_section): Remove.
1024 (nios2_iterate_over_regset_sections): New.
1025 (nios2_linux_init_abi): Adjust gdbarch initialization.
1026
3636e608
AA
10272014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1028
1029 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
1030 (am33_iterate_over_regset_sections): New.
1031 (am33_linux_init_osabi): Adjust gdbarch initialization.
1032
d4036235
AA
10332014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1034
1035 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
1036 (mips_linux_iterate_over_regset_sections): New.
1037 (mips_linux_init_abi): Adjust gdbarch initialization.
1038 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
1039 (mips64obsd_iterate_over_regset_sections): New.
1040 (mips64obsd_init_abi): Adjust.
1041 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
1042 (mipsnbsd_iterate_over_regset_sections): New.
1043 (mipsnbsd_init_abi): Adjust.
1044
b61ddd6e
AA
10452014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1046
1047 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
1048 (m88k_iterate_over_regset_sections): New.
1049 (m88k_gdbarch_init): Adjust gdbarch initialization.
1050
55a2906a
AA
10512014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1052
1053 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
1054 (ia64_linux_iterate_over_regset_sections): New.
1055 (ia64_linux_init_abi): Adjust gdbarch initialization.
1056
022c98ab
AA
10572014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1058
1059 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
1060 (m68kbsd_iterate_over_regset_sections): New.
1061 (m68kbsd_init_abi): Adjust gdbarch initialization.
1062 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
1063 (m68k_linux_iterate_over_regset_sections): New.
1064 (m68k_linux_init_abi): Adjust gdbarch initialization.
1065
5fac247f
AA
10662014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1067
1068 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
1069 (m32r_linux_regset_from_core_section): Remove.
1070 (m32r_linux_iterate_over_regset_sections): New.
1071 (m32r_linux_init_abi): Adjust gdbarch initialization.
1072
490496c3
AA
10732014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1074
1075 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
1076 (amd64obsd_iterate_over_regset_sections): New.
1077 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
1078 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
1079 Remove.
1080 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
1081 regset_from_core_section initialization.
1082 * i386-tdep.c (i386_regset_from_core_section): Remove.
1083 (i386_iterate_over_regset_sections): New.
1084 (i386_gdbarch_init): Adjust gdbarch initialization.
1085 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
1086 (i386_iterate_over_regset_sections): New prototype.
1087 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
1088 Remove.
1089 (i386obsd_aout_iterate_over_regset_sections): New.
1090 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
1091 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
1092 targets.
1093 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
1094 (amd64fbsd_init_abi): Call fbsd_init_abi.
1095 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
1096 (i386fbsd4_init_abi): Call fbsd_init_abi.
1097 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
1098 target method 'make_corefile_notes'.
1099 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
1100
50c5eb53
AA
11012014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1102
1103 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
1104 (hppa_hpux_iterate_over_regset_sections): New.
1105 (hppa_hpux_init_abi): Adjust gdbarch initialization.
1106 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
1107 (hppa_linux_iterate_over_regset_sections): New.
1108 (hppa_linux_init_abi): Adjust.
1109 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
1110 (hppanbsd_iterate_over_regset_sections): New.
1111 (hppanbsd_init_abi): Adjust.
1112 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
1113 (hppaobsd_iterate_over_regset_sections): New.
1114 (hppaobsd_init_abi): Adjust.
1115
66afae4f
AA
11162014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1117
1118 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
1119 (frv_linux_iterate_over_regset_sections): New.
1120 (frv_linux_init_abi): Adjust gdbarch initialization.
1121
ed09174e
AA
11222014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1123
1124 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
1125 (armbsd_iterate_over_regset_sections): New prototype.
1126 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
1127 (armbsd_iterate_over_regset_sections): New.
1128 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
1129 initialization.
1130
dff2166e
AA
11312014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1132
1133 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
1134 (alpha_linux_iterate_over_regset_sections): New.
1135 (alpha_linux_init_abi): Adjust gdbarch initialization.
1136 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
1137 prototype.
1138 (alphanbsd_iterate_over_regset_sections): New prototype.
1139
4108500a
AA
11402014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1141
1142 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
1143 Remove.
1144 (aarch64_linux_iterate_over_regset_sections): New.
1145 (aarch64_linux_init_abi): Adjust gdbarch initialization.
1146
a904c024
AA
11472014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1148
1149 * fbsd-tdep.c: New file.
1150 * fbsd-tdep.h: New file.
1151 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
1152 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
1153 (ALLDEPFILES): Add fbsd-tdep.c.
1154
8f0435f7
AA
11552014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1156
1157 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
1158 parameter.
1159 * gdbarch.h: Regenerate.
1160 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
1161 iterator.
1162 (get_core_register_section): Add parameter 'regset' and use it, if
1163 set. Add parameter 'min_size' and verify the bfd section size
1164 against it.
1165 (get_core_registers_cb): Add parameter 'regset' and pass it to
1166 get_core_register section. For the "standard" register sections
1167 ".reg" and ".reg2", set an appropriate default for human_name.
1168 (get_core_registers): Don't abort when the gdbarch has an iterator
1169 but no regset_from_core_section. Add NULL/0 for parameters
1170 'regset'/'min_size' in calls to get_core_register_section.
1171 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
1172 'regset' and use it instead of calling the
1173 regset_from_core_section gdbarch method.
1174 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
1175 * i386-tdep.c (i386_supply_xstateregset)
1176 (i386_collect_xstateregset, i386_xstateregset): Moved to
1177 i386-linux-tdep.c.
1178 (i386_regset_from_core_section): Drop handling for .reg-xfp and
1179 .reg-xstate.
1180 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
1181 core file support only if the regset iterator hasn't been set.
1182 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
1183 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
1184 Moved from i386-tdep.c and renamed to *_linux*.
1185 (i386_linux_iterate_over_regset_sections): Add regset parameter to
1186 each callback invocation. Allow any .reg-xstate size when reading
1187 from a core file.
1188 * amd64-tdep.c (amd64_supply_xstateregset)
1189 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
1190 amd64-linux-tdep.c.
1191 (amd64_regset_from_core_section): Remove.
1192 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
1193 install an amd64-specific regset_from_core_section gdbarch method.
1194 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
1195 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
1196 Moved from amd64-tdep.c and renamed to *_linux*.
1197 (amd64_linux_iterate_over_regset_sections): Add regset parameter
1198 to each callback invocation. Allow any .reg-xstate size when
1199 reading from a core file.
1200 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
1201 (arm_linux_iterate_over_regset_sections): Add regset parameter to
1202 each callback invocation.
1203 (arm_linux_init_abi): No longer set the regset_from_core_section
1204 gdbarch method.
1205 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
1206 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
1207 each callback invocation.
1208 (ppc_linux_init_abi): No longer set the regset_from_core_section
1209 gdbarch method.
1210 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
1211 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
1212 (s390_regset_from_core_section): Remove.
1213 (s390_iterate_over_regset_sections): Add regset parameter to each
1214 callback invocation.
1215 (s390_gdbarch_init): No longer set the regset_from_core_section
1216 gdbarch method. Drop initialization of deleted tdep fields.
1217
5aa82d05
AA
12182014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1219
1220 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
1221 (amd64_linux_iterate_over_regset_sections): New.
1222 (amd64_linux_init_abi_common): Don't install the regset section
1223 list, but the new iterator in gdbarch.
1224 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
1225 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
1226 (arm_linux_iterate_over_regset_sections): ...here. New function.
1227 (arm_linux_init_abi): Set iterator instead of section list.
1228 * corelow.c (get_core_registers_cb): New function, logic moved
1229 from...
1230 (get_core_registers): ...loop body here. Use new iterator method
1231 instead of walking through the regset section list.
1232 * gdbarch.sh: Remove 'core_regset_sections'. New method
1233 'iterate_over_regset_sections'. New typedef
1234 'iterate_over_regset_sections_cb'.
1235 * gdbarch.c: Regenerate.
1236 * gdbarch.h: Likewise.
1237 * i386-linux-tdep.c (i386_linux_regset_sections)
1238 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
1239 Remove.
1240 (i386_linux_iterate_over_regset_sections): New.
1241 (i386_linux_init_abi): Don't choose a regset section list, but
1242 install new iterator in gdbarch.
1243 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
1244 (linux_collect_regset_section_cb): New function, logic moved
1245 from...
1246 (linux_collect_thread_registers): ...loop body here. Use iterator
1247 method instead of walking through list.
1248 (linux_make_corefile_notes_1): Check for presence of iterator
1249 method instead of regset section list.
1250 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
1251 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
1252 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
1253 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
1254 (ppc_linux_iterate_over_regset_sections): ...here. New function.
1255 (ppc_linux_init_abi): Don't choose from above regset section
1256 lists, but install new iterator in gdbarch.
1257 * regset.h (struct core_regset_section): Remove.
1258 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
1259 have_linux_v1, have_linux_v2, and have_tdb.
1260 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
1261 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
1262 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
1263 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
1264 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
1265 (s390_iterate_over_regset_sections): ...here. New function. Use
1266 new tdep fields.
1267 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
1268 regset section lists, but install new iterator.
1269
2eca4a8d
JK
12702014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1271
1272 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
1273
a73c2b56
SM
12742014-09-26 Simon Marchi <simon.marchi@ericsson.com>
1275
1276 * progspace.c (print_program_space): Don't prune program spaces
1277 before printing them.
1278
03d46957
PA
12792014-09-25 Pedro Alves <palves@redhat.com>
1280
1281 * infrun.c (user_visible_resume_ptid): Don't check
1282 singlestep_breakpoints_inserted_p.
1283
e558d7c1
PA
12842014-09-25 Pedro Alves <palves@redhat.com>
1285
1286 * breakpoint.c (should_be_inserted): Add debug output.
1287
7f89fd65
PA
12882014-09-25 Pedro Alves <palves@redhat.com>
1289
1290 * infrun.c (stepping_past_instruction_at)
1291 (clear_exit_convenience_vars): Point at infrun.h instead of
1292 inferior.h.
1293 (handle_signal_stop): Fix typo.
1294
b7576e5c
YQ
12952014-09-24 Yao Qi <yao@codesourcery.com>
1296
1297 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
1298 bitmask.
1299
9a6cf368
GB
13002014-09-22 Gary Benson <gbenson@redhat.com>
1301
1302 * target.c (target_stop): Updated comment.
1303
03f4463b
GB
13042014-09-22 Gary Benson <gbenson@redhat.com>
1305
1306 * target/target.h (target_stop_ptid): Renamed as...
1307 (target_stop_and_wait): New function. Updated comment.
1308 All uses updated.
1309 (target_continue_ptid): Renamed as...
1310 (target_continue_no_signal): New function. Updated comment.
1311 All uses updated.
1312
a25a5a45
PA
13132014-09-22 Pedro Alves <palves@redhat.com>
1314
1315 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
1316 and "auto" merged.
1317 * breakpoint.c (enum ugll_insert_mode): New enum.
1318 (always_inserted_mode): Now a plain boolean.
1319 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
1320 (breakpoints_always_inserted_mode): Delete.
1321 (breakpoints_should_be_inserted_now): New function.
1322 (insert_breakpoints): Pass UGLL_INSERT to
1323 update_global_location_list instead of calling
1324 insert_breakpoint_locations manually.
1325 (create_solib_event_breakpoint_1): New, factored out from ...
1326 (create_solib_event_breakpoint): ... this.
1327 (create_and_insert_solib_event_breakpoint): Use
1328 create_solib_event_breakpoint_1 instead of calling
1329 insert_breakpoint_locations manually.
1330 (update_global_location_list): Change parameter type from boolean
1331 to enum ugll_insert_mode. All callers adjusted. Adjust to use
1332 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
1333 (update_global_location_list_nothrow): Change parameter type from
1334 boolean to enum ugll_insert_mode.
1335 (_initialize_breakpoint): "breakpoint always-inserted" option is
1336 now a boolean command. Update help text.
1337 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
1338 (breakpoints_should_be_inserted_now): New declaration.
1339 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
1340 Remove breakpoints_always_inserted_mode check.
1341 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
1342 * remote.c (remote_start_remote): Likewise.
1343
04086b45
PA
13442014-09-22 Pedro Alves <palves@redhat.com>
1345
1346 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
1347 (insert_breakpoints): Don't call insert_breakpoint_locations here.
1348 Instead, pass UGLL_INSERT to update_global_location_list.
1349 (update_global_location_list): Change parameter type from boolean
1350 to enum ugll_insert_mode. All callers adjusted. Adjust to use
1351 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
1352 (create_solib_event_breakpoint_1): New, factored out from ...
1353 (create_solib_event_breakpoint): ... this.
1354 (create_and_insert_solib_event_breakpoint): Use
1355 create_solib_event_breakpoint_1 instead of calling
1356 insert_breakpoint_locations manually.
1357 (update_global_location_list): Handle UGLL_INSERT.
1358
44702360
PA
13592014-09-22 Pedro Alves <palves@redhat.com>
1360
1361 * breakpoint.c (enum ugll_insert_mode): New enum.
1362 (update_global_location_list)
1363 (update_global_location_list_nothrow): Change parameter type from
1364 boolean to enum ugll_insert_mode. All callers adjusted.
1365
93c6145a
JB
13662014-09-19 Joel Brobecker <brobecker@adacore.com>
1367
1368 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
1369 SystemTap support in GDB.
1370
89a5711c
DB
13712014-09-19 Don Breazeal <donb@codesourcery.com>
1372
1373 * linux-nat.c (linux_handle_extended_wait): Call
1374 linux_ptrace_get_extended_event.
1375 (wait_lwp): Call linux_is_extended_waitstatus.
1376 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
1377 and linux_is_extended_waitstatus.
1378 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
1379 linux_ptrace_get_extended_event.
1380 (linux_ptrace_get_extended_event): New function.
1381 (linux_is_extended_waitstatus): New function.
1382 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
1383 (linux_is_extended_waitstatus): New declarations.
1384
c3b7b696
YQ
13852014-09-19 Yao Qi <yao@codesourcery.com>
1386
1387 * dwarf2read.c (dwarf_decode_lines): Update declaration.
1388 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
1389 comments. Callers update.
1390 (dwarf_decode_lines): Likewise.
1391 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
1392 comments. Skip the line table if 'lowpc' is greater than
1393 'address'. Don't check
1394 dwarf2_per_objfile->has_section_at_zero.
1395
2b4fd423
DE
13962014-09-18 Doug Evans <dje@google.com>
1397
1398 * NEWS: Mention new "producer" attribute of gdb.Symtab.
1399 * python/py-symtab.c (stpy_get_producer): New function.
1400 (symtab_object_getset): Add "producer" attribute.
1401
5e43d467
UW
14022014-09-17 Ulrich Weigand  <uweigand@de.ibm.com>
1403
1404 PR gdb/17384
1405 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
1406 (do_captured_read_memory_integer): Remove.
1407 (safe_read_memory_integer): Use target_read_memory directly instead
1408 of catching errors in do_captured_read_memory_integer.
1409
04e79979
MR
14102014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
1411
1412 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
1413 not gdb/doc.
1414
76aeec5b
SDJ
14152014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1416
1417 * objc-lang.c (find_implementation_from_class): Remove dead code.
1418
2f693f9d
SDJ
14192014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1420
1421 PR cli/7233
1422 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
1423 "fprintf_unfiltered (gdb_stdlog...)".
1424
bb9d5f81
PP
14252014-09-16 Patrick Palka <patrick@parcs.ath.cx>
1426
1427 PR breakpoints/12526
1428 * breakpoint.h (struct watchpoint): New fields val_bitpos and
1429 val_bitsize.
1430 * breakpoint.c (watch_command_1): Use these fields to retain
1431 bitfield information.
1432 (extract_bitfield_from_watchpoint_value): New function.
1433 (watchpoint_check): Use it.
1434 (update_watchpoint): Use it. Optimize the address and length of a
1435 HW watchpoint pointing to a bitfield.
1436 * value.h (unpack_value_bitfield): New prototype.
1437 * value.c (unpack_value_bitfield): Make extern.
1438
05db5edd
ST
14392014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
1440
1441 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
1442 x86-dregs.o.
1443 * gnu-nat.c (inf_threads): New function.
1444 * gnu-nat.h (inf_threads_ftype): New typedef.
1445 (inf_threads): New declaration.
1446 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
1447 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
1448 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
1449 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
1450 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
1451 (i386_gnu_dr_get_control): New functions.
1452 (reg_addr): New structure.
1453 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
1454 i386 debugging register hooks.
1455 * NEWS: Mention this.
1456
5a578da5
OJ
14572014-08-13 Omair Javaid <omair.javaid@linaro.org>
1458
1459 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
1460 vector data transfer instructions.
1461 (arm_record_coproc_data_proc): Updated.
1462
f20f80dd
OJ
14632014-08-13 Omair Javaid <omair.javaid@linaro.org>
1464
1465 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
1466 arm_record_exreg_ld_st_insn.
1467 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
1468 load/store insns.
1469
851f26ae
OJ
14702014-08-13 Omair Javaid <omair.javaid@linaro.org>
1471
1472 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
1473 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
1474 processing instructions.
1475
1e1b6563
OJ
14762014-08-13 Omair Javaid <omair.javaid@linaro.org>
1477
1478 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
1479 for advance SIMD struct ld/st insn.
1480 (thumb2_record_decode_insn_handler): Replace stub handler with
1481 thumb2_record_asimd_struct_ld_st.
1482
60cc5e93
OJ
14832014-08-13 Omair Javaid <omair.javaid@linaro.org>
1484
1485 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
1486 for asimd, vfp and coprocessor insns.
1487 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
1488 and coprocessor insns.
1489 (thumb2_record_coproc_insn): New function.
1490 (thumb2_record_decode_insn_handler): Update coprocessor insns record
1491 handlers.
1492 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
1493 opcode 110 insns.
1494
81219e53
DE
14952014-09-13 Doug Evans <xdje42@gmail.com>
1496
1497 * NEWS: Mention new "queue-signal" command.
1498 * infcmd.c (queue_signal_command): New function.
1499 (_initialize_infcmd): Add new queue-signal command.
1500
d36bf488
DE
15012014-09-13 Doug Evans <xdje42@gmail.com>
1502
1503 * linux-nat.c (wait_lwp): Add debugging printf.
1504 (linux_nat_wait_1): Ditto.
1505
f37f681c
PA
15062014-09-12 Pedro Alves <palves@redhat.com>
1507
1508 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
1509 (create_and_insert_solib_event_breakpoint): New functions.
1510 * breakpoint.h (create_and_insert_solib_event_breakpoint)
1511 (remove_solib_event_breakpoints_at_next_stop): New declarations.
1512 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
1513 (remove_dbx_link_breakpoint): Delete function.
1514 (insert_dbx_link_bpt_in_file): Use
1515 create_and_insert_solib_event_breakpoint instead of
1516 deprecated_insert_raw_breakpoint.
1517 (procfs_wait): Don't check whether we hit __dbx_link here.
1518 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
1519 here.
1520 * solib-irix.c (base_breakpoint): Delete global.
1521 (disable_break): Delete function.
1522 (enable_break): Use create_solib_event_breakpoint
1523 instead of deprecated_insert_raw_breakpoint.
1524 (irix_solib_handle_event): New function.
1525 (irix_solib_create_inferior_hook): Don't run the target or disable
1526 the mapping-complete breakpoint here.
1527 (_initialize_irix_solib): Install irix_solib_handle_event as
1528 so_ops->handle_event hook.
1529
9d9bf2df
EBM
15302014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1531 Ulrich Weigand  <uweigand@de.ibm.com>
1532
1533 PR tdep/17379
1534 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
1535 instead of read_memory_unsigned_integer.
1536
b006a80e
GB
15372014-09-12 Gary Benson <gbenson@redhat.com>
1538
1539 * nat/linux-waitpid.c: Include common-defs.h.
1540 [GDBSERVER]: Add FIXME comment.
1541 [!GDBSERVER]: Don't include defs.h or signal.h.
1542 (linux_debug) [!GDBSERVER]: Remove empty block.
1543
296b1496
GB
15442014-09-12 Gary Benson <gbenson@redhat.com>
1545
1546 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
1547 Don't include defs.h or server.h.
1548
53f81362
GB
15492014-09-12 Gary Benson <gbenson@redhat.com>
1550
1551 * nat/linux-btrace.c: Include common-defs.h.
1552 Don't include defs.h, server.h or gdbthread.h.
1553 * nat/linux-btrace.h (struct target_ops): New forward declaration.
1554
727605ca
GB
15552014-09-12 Gary Benson <gbenson@redhat.com>
1556
1557 * common/agent.c: Include common-defs.h.
1558 Don't include defs.h or server.h.
1559 * common/buffer.c: Likewise.
1560 * common/common-debug.c: Likewise.
1561 * common/common-utils.c: Likewise.
1562 * common/errors.c: Likewise.
1563 * common/filestuff.c: Likewise.
1564 * common/format.c: Likewise.
1565 * common/gdb_vecs.c: Likewise.
1566 * common/print-utils.c: Likewise.
1567 * common/ptid.c: Likewise.
1568 * common/rsp-low.c: Likewise.
1569 * common/signals.c: Likewise.
1570 * common/vec.c: Likewise.
1571 * common/xml-utils.c: Likewise.
1572 * nat/linux-osdata.c: Likewise.
1573 * nat/linux-procfs.c: Likewise.
1574 * nat/linux-ptrace.c: Likewise.
1575 * nat/mips-linux-watch.c: Likewise.
1576 * target/waitstatus.c: Likewise.
1577
361c8ade
GB
15782014-09-12 Tom Tromey <tromey@redhat.com>
1579 Gary Benson <gbenson@redhat.com>
1580
1581 * common/common-regcache.h: New file.
1582 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
1583 * regcache.h: Include common-regcache.h.
1584 (regcache_read_pc): Don't declare.
1585 * regcache.c (get_thread_regcache_for_ptid): New function.
1586 * nat/linux-btrace.c: Don't include regcache.h.
1587 Include common-regcache.h.
1588 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
1589
a01cbb49
TS
15902014-09-11 Thomas Schwinge <thomas@codesourcery.com>
1591
1592 * regcache.h (struct regset): Declare.
1593
98880d46
PA
15942014-09-11 Pedro Alves <palves@redhat.com>
1595
1596 PR gdb/17347
1597 * main.c: Include "infrun.h".
1598 (catch_command_errors, catch_command_errors_const): Wait for the
1599 foreground command to complete.
1600 * top.c (maybe_wait_sync_command_done): New function, factored out
1601 from ...
1602 (maybe_wait_sync_command_done): ... here.
1603 * top.h (maybe_wait_sync_command_done): New declaration.
1604
bd9269f7
GB
16052014-09-11 Tom Tromey <tromey@redhat.com>
1606 Gary Benson <gbenson@redhat.com>
1607
1608 * common/symbol.h: New file.
1609 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
1610 * minsyms.c (find_minimal_symbol_address): New function.
1611 * common/agent.c: Include common/symbol.h.
1612 [!GDBSERVER]: Don't include objfiles.h.
1613 (agent_look_up_symbols): Use find_minimal_symbol_address.
1614
f8c1d06b
GB
16152014-09-11 Gary Benson <gbenson@redhat.com>
1616
1617 * target/target.h (target_stop_ptid, target_continue_ptid):
1618 Declare.
1619 * target.c (target_stop_ptid, target_continue_ptid): New
1620 functions.
1621 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
1622 (agent_run_command): Always use target_stop_ptid and
1623 target_continue_ptid.
1624
721ec300
GB
16252014-09-11 Tom Tromey <tromey@redhat.com>
1626 Gary Benson <gbenson@redhat.com>
1627
1628 * target/target.h: New file.
1629 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
1630 * target.h: Include target/target.h.
1631 (target_read_memory, target_write_memory): Don't declare.
1632 * target.c (target_read_uint32): New function.
1633 * common/agent.c: Include target/target.h.
1634 [!GDBSERVER]: Don't include target.h.
1635 (helper_thread_id): Type changed to uint32_t.
1636 (agent_get_helper_thread_id): Use target_read_uint32.
1637 (agent_run_command): Always use target_read_memory and
1638 target_write_memory.
1639 (agent_capability): Type changed to uint32_t.
1640 (agent_capability_check): Use target_read_uint32.
1641
c5e92cca
GB
16422014-09-11 Gary Benson <gbenson@redhat.com>
1643
1644 * common/common-debug.h (show_debug_regs): Declare.
1645 * common/common-debug.c (show_debug_regs): Define.
1646 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
1647 all uses with show_debug_regs. Replace all uses that considered
1648 debug_hw_points as a multi-value integer with straight boolean
1649 uses.
1650 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
1651 with show_debug_regs.
1652 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
1653 all uses with show_debug_regs.
1654 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
1655 uses with show_debug_regs.
1656
eeef931a
UW
16572014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
1658
1659 * findvar.c (address_from_register): Handle targets requiring
1660 a special conversion routine even for plain pointer types.
1661
8efa9855
UW
16622014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
1663
1664 * rs6000-nat.c (exec_one_dummy_insn): Remove.
1665 (store_register): Do not call exec_one_dummy_insn.
1666
eb479039
JB
16672014-09-10 Joel Brobecker <brobecker@adacore.com>
1668
1669 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
1670 dereference it first. Use value_enclosing_type instead of
1671 value_type.
1672 (ada_array_length): Likewise.
1673
deede10c
JB
16742014-09-10 Joel Brobecker <brobecker@adacore.com>
1675
1676 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
1677 Adjust function implementation and documentation accordingly.
1678 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
1679 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
1680 Update call to ada_value_ptr_subscript.
1681
7828a5f5
JB
16822014-09-10 Joel Brobecker <brobecker@adacore.com>
1683
1684 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
1685 instead of VAL's type.
1686
35782f14
JB
16872014-09-10 Joel Brobecker <brobecker@adacore.com>
1688
1689 * amd64-linux-nat.c: Add <sys/uio.h> #include.
1690
d342a0da
DE
16912014-09-09 Doug Evans <xdje42@gmail.com>
1692
1693 PR guile/17367
1694 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
1695 last parameter to pkg-config, not first.
1696 * configure.ac: Pass --with-guile provided pkg-config path to
1697 GDB_GUILE_PROGRAM_NAMES.
1698 * configure: Regenerate.
1699
b4a3d263
GKB
17002014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
1701
1702 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
1703 Bertazi".
1704
6e466374
MR
17052014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
1706
1707 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
1708 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
1709 the list of sections determining GDB_OSABI_IRIX.
1710
a1ada89a
JH
17112014-09-09 James Hogan <james.hogan@imgtec.com>
1712
1713 * MAINTAINERS (Write After Approval): Add "James Hogan".
1714
86db008d
JH
17152014-09-09 James Hogan <james.hogan@imgtec.com>
1716
1717 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
1718
72fde3df
JB
17192014-09-09 Joel Brobecker <brobecker@adacore.com>
1720
1721 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
1722
92d8d229
DE
17232014-09-08 Doug Evans <xdje42@gmail.com>
1724
1725 PR 17247
1726 * guile.c: #include <signal.h>.
1727 (_initialize_guile): Block SIGCHLD while initializing Guile.
1728
1729 Replaces the following, which is reverted.
1730
1731 2014-07-26 Doug Evans <xdje42@gmail.com>
1732
1733 PR 17185
1734 * configure.ac: Add check for header gc/gc.h.
1735 Add check for function setenv.
1736 * configure: Regenerate.
1737 * config.in: Regenerate.
1738 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1739
d81412aa
DE
17402014-09-08 Doug Evans <xdje42@gmail.com>
1741
1742 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
1743 with named constant. Fix style of pointer comparison.
1744 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
1745
a9f116cb
GKB
17462014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
1747
1748 PR gdb/17035
1749 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
1750 decide whether we display the command on "show user".
1751 * cli/cli-script.c (show_user_1): Only verify cmdlines after
1752 printing command name.
1753 * cli/cli-decode.h (cli_user_command_p): Declare new function.
1754 * cli/cli-decode.c (cli_user_command_p): Create helper function
1755 to verify whether cmd_list_element is a user-defined command.
1756
c75bd3a2
JK
17572014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1758
1759 PR python/17355
1760 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
1761 Fix goto out of TRY_CATCH.
1762
faa42425 17632014-09-06 Doug Evans <xdje42@gmail.com>
1a52a81c 1764 Tom Tromey <tromey@redhat.com>
faa42425
DE
1765
1766 PR 15276
1767 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
1768 $_any_caller_matches.
1769 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
1770 * python/lib/gdb/function/caller_is.py: New file.
1771
0d41ba00
DE
17722014-09-06 Doug Evans <xdje42@gmail.com>
1773
1774 * infcmd.c (program_info): Fix typo.
1775
474ca4f6
SDJ
17762014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
1777
1778 PR gdb/17235
1779 * stap-probe.c (stap_parse_single_operand): Delete unused variable
1780 'number'. New variable 'has_digit'. Rewrite code to deal with
1781 subexpressions on SDT probes.
1782
ebf13736
PA
17832014-09-04 Pedro Alves <palves@redhat.com>
1784
1785 * c-exp.y (parse_number): Skip handling base-switching prefixes if
1786 the input is only one character long.
1787
eb0b0463
SDJ
17882014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
1789
1790 PR fortran/17237
1791 * f-valprint.c (f_val_print): Specify the correct print option to
1792 use when printing integer values.
1793
5ee44bfa
GB
17942014-09-04 Gary Benson <gbenson@redhat.com>
1795
1796 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
1797 Remove code to cope with LWPs wrapped as PIDs.
1798 Add assertions to ensure no wrapped LWPs are passed.
1799
4875ffdb
PA
18002014-09-04 Pedro Alves <palves@redhat.com>
1801
1802 * value.c (value_ranges_copy_adjusted): New function, factored out
1803 from ...
1804 (value_contents_copy_raw): ... here.
1805 (unpack_value_bits_as_long_1): Rename back to ...
1806 (unpack_bits_as_long): ... this. Remove 'original_value' and
1807 'result' parameters. Change return type to LONGEST.
1808 (unpack_value_bits_as_long): Delete.
1809 (unpack_value_field_as_long_1): Delete.
1810 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
1811 (unpack_value_bitfield): New function.
1812 (value_field_bitfield): Reimplement using unpack_value_bitfield.
1813 (value_fetch_lazy): Use unpack_value_bitfield.
1814 * value.h (unpack_value_bits_as_long): Delete declaration.
1815
5f3b99cf
SS
18162014-09-03 Sasha Smundak <asmundak@google.com>
1817
1818 * python/py-frame.c (frapy_read_register): New function.
1819
ac740bc7
JH
18202014-09-03 James Hogan <james.hogan@imgtec.com>
1821
1822 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
1823 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
1824
7d793aa9
SDJ
18252014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
1826
1827 PR python/16699
1828 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
1829 function.
1830 (add_cmd): Set "completer_handle_brkchars" to NULL.
1831 * cli/cli-decode.h (struct cmd_list_element)
1832 <completer_handle_brkchars>: New field.
1833 * command.h (completer_ftype_void): New typedef.
1834 (set_cmd_completer_handle_brkchars): New prototype.
1835 * completer.c (set_gdb_completion_word_break_characters): New
1836 function.
1837 (complete_line_internal): Call "completer_handle_brkchars"
1838 callback from command.
1839 * completer.h: Include "command.h".
1840 (set_gdb_completion_word_break_characters): New prototype.
1841 * python/py-cmd.c (cmdpy_completer_helper): New function.
1842 (cmdpy_completer_handle_brkchars): New function.
1843 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
1844 (cmdpy_init): Set completer_handle_brkchars to
1845 cmdpy_completer_handle_brkchars.
1846
97ea6506
GB
18472014-09-03 Gary Benson <gbenson@redhat.com>
1848
1849 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
1850 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
1851 Loop conditions changed to equivalent form.
1852 (struct x86_debug_reg_state): Updated dr_ref_count comment.
1853 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
1854 ALL_DEBUG_ADDRESS_REGISTERS.
1855
d1437815
JB
18562014-09-03 Joel Brobecker <brobecker@adacore.com>
1857
1858 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
1859 description fix.
1860
9b94fcf1
DE
18612014-09-02 Doug Evans <dje@google.com>
1862
1863 * typeprint.c (find_global_typedef): Fix comment.
1864
df7e5265
GB
18652014-09-02 Gary Benson <gbenson@redhat.com>
1866
1867 * i386-nat.h: Renamed as...
1868 * x86-nat.h: New file. All type, function and variable name
1869 prefixes changed from "i386_" to "x86_". All references updated.
1870 * i386-nat.c: Renamed as...
1871 * x86-nat.c: New file. All type, function and variable name
1872 prefixes changed from "i386_" to "x86_". All references updated.
1873 * common/i386-xstate.h: Renamed as...
1874 * common/x86-xstate.h: New file. All type, function and variable
1875 name prefixes changed from "i386_" to "x86_". All references
1876 updated.
1877 * nat/i386-cpuid.h: Renamed as...
1878 * nat/x86-cpuid.h: New file. All type, function and variable name
1879 prefixes changed from "i386_" to "x86_". All references updated.
1880 * nat/i386-gcc-cpuid.h: Renamed as...
1881 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
1882 name prefixes changed from "i386_" to "x86_". All references
1883 updated.
1884 * nat/i386-dregs.h: Renamed as...
1885 * nat/x86-dregs.h: New file. All type, function and variable name
1886 prefixes changed from "i386_" to "x86_". All references updated.
1887 * nat/i386-dregs.c: Renamed as...
1888 * nat/x86-dregs.c: New file. All type, function and variable name
1889 prefixes changed from "i386_" to "x86_". All references updated.
1890
1c3569d4
MR
18912014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
1892
1893 * varobj.c (_initialize_varobj): Move to the end of file.
1894
ff55e1b5
GB
18952014-08-29 Gary Benson <gbenson@redhat.com>
1896
1897 * common/common-exceptions.h: New file.
1898 * common/common-exceptions.c: Likewise.
1899 * Makefile.in (SFILES): Add common/common-exceptions.c.
1900 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
1901 (COMMON_OBS): Add common-exceptions.o.
1902 (common-exceptions.o): New rule.
1903 * exceptions.h (common-exceptions.h): Include.
1904 (gdb_setjmp.h): Do not include.
1905 (return_reason): Moved to common-exceptions.h.
1906 (enum return_reason): Likewise.
1907 (RETURN_MASK): Likewise.
1908 (typedef return_mask): Likewise.
1909 (enum errors): Likewise.
1910 (struct gdb_exception): Likewise.
1911 (exceptions_state_mc_init): Likewise.
1912 (exceptions_state_mc_action_iter): Likewise.
1913 (exceptions_state_mc_action_iter_1): Likewise.
1914 (TRY_CATCH): Likewise.
1915 (throw_exception): Likewise.
1916 (throw_verror): Likewise.
1917 (throw_vquit): Likewise.
1918 (throw_error): Likewise.
1919 (throw_quit): Likewise.
1920 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
1921 (enum catcher_action): Likewise.
1922 (struct catcher): Likewise.
1923 (current_catcher): Likewise.
1924 (catcher_list_size): Likewise.
1925 (exceptions_state_mc_init): Likewise.
1926 (catcher_pop): Likewise.
1927 (exceptions_state_mc): Likewise.
1928 (exceptions_state_mc_action_iter): Likewise.
1929 (exceptions_state_mc_action_iter_1): Likewise.
1930 (throw_exception): Likewise.
1931 (exception_messages): Likewise.
1932 (exception_messages_size): Likewise.
1933 (throw_it): Likewise.
1934 (throw_verror): Likewise.
1935 (throw_vquit): Likewise.
1936 (throw_error): Likewise.
1937 (throw_quit): Likewise.
1938 (prepare_to_throw_exception): New function.
1939
e9bcb658
GB
19402014-08-29 Gary Benson <gbenson@redhat.com>
1941
1942 * common/gdb_setjmp.h: New file.
1943 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
1944 * configure.ac: Move sigsetjmp check...
1945 * common/common.m4: ...here.
1946 * configure: Regenerate.
1947 * cp-support.c (SIGJMP_BUF): Delete.
1948 (SIGSETJMP): Likewise.
1949 (SIGLONGJMP): Likewise.
1950 * exceptions.h (gdb_setjmp.h): Include.
1951 (setjmp.h): Do not include.
1952 (EXCEPTIONS_SIGJMP_BUF): Delete.
1953 (EXCEPTIONS_SIGSETJMP): Likewise.
1954 (EXCEPTIONS_SIGLONGJMP): Likewise.
1955 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
1956 from gdb_setjmp.h.
1957 * exceptions.c: Likewise.
1958
e3180625
GB
19592014-08-29 Gary Benson <gbenson@redhat.com>
1960
1961 * cleanups.h: Moved to...
1962 * common/cleanups.h: New file.
1963 * cleanups.c: Moved to...
1964 * common/cleanups.c: New file. Include common-defs.h and
1965 cleanups.h. Do not include defs.h.
1966 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
1967 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
1968 (cleanups.o): New rule.
1969
e3d6ba5d
GB
19702014-08-29 Gary Benson <gbenson@redhat.com>
1971
1972 * common/errors.h (internal_warning): New declaration.
1973 (internal_vwarning): Likewise.
1974 * common/errors.c (internal_warning): New function.
1975 * utils.h (internal_warning): Don't declare.
1976 (internal_vwarning): Likewise.
1977 * utils.c (internal_warning): Removed.
1978
075c7033
GB
19792014-08-29 Gary Benson <gbenson@redhat.com>
1980
1981 * main.c (captured_main): Use warning during startup.
1982 Prefix startup warning messages with command name.
1983
91b35fd0
GB
19842014-08-29 Gary Benson <gbenson@redhat.com>
1985
1986 * main.c (captured_main): Handle usage errors with error.
1987
b1ec390e
GB
19882014-08-29 Gary Benson <gbenson@redhat.com>
1989
1990 * go32-nat.c (go32_create_inferior): Replace a fprintf/
1991 exit pair with a call to error. Wrap the message with _().
1992
fd0ef3dd
GB
19932014-08-29 Gary Benson <gbenson@redhat.com>
1994
1995 * main.c (captured_main): Replace a fprintf/exit
1996 pair with a call to error. Wrap the message with _().
1997
e0e6bcab
GB
19982014-08-29 Gary Benson <gbenson@redhat.com>
1999
2000 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
2001 pairs with calls to error. Wrap the message with _().
2002
0d2f5c07
GB
20032014-08-29 Gary Benson <gbenson@redhat.com>
2004
2005 * utils.c (vwarning): Protect calls to target_terminal_ours
2006 and wrap_here.
2007
5df43998
GB
20082014-08-29 Gary Benson <gbenson@redhat.com>
2009
2010 * exceptions.c (print_flush): Protect calls to
2011 target_terminal_ours and wrap_here.
2012
2437fd32
GB
20132014-08-29 Gary Benson <gbenson@redhat.com>
2014
2015 * utils.h (filtered_printing_initialized): New declaration.
2016 * utils.c (abort_with_message): New function.
2017 (internal_vproblem): Use abort_with_message for first level
2018 recursive internal problems, and if gdb_stderr is not set up.
2019 Protect calls to target_terminal_ours, begin_line and query.
2020
f1f58506
DE
20212014-08-28 Doug Evans <dje@google.com>
2022
2023 * symtab.c (in_prologue): Move definition to better spot.
2024 (skip_prologue_using_sal): Ditto.
2025
aab2f208
DE
20262014-08-28 Doug Evans <dje@google.com>
2027
2028 * symtab.c (find_function_start_sal): Move definition to better spot.
2029
6b65d1b6
YQ
20302014-08-28 Yao Qi <yao@codesourcery.com>
2031
2032 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
2033 found_stack_adjust in forward scan. Remove condition check
2034 on found_stack_adjust which is always true. Indent the code.
2035
a1b34d15
YQ
20362014-08-28 Yao Qi <yao@codesourcery.com>
2037
2038 * dwarf2read.c (dwarf_decode_lines): Update declaration.
2039 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
2040 (dwarf_decode_lines): Remove argument
2041 want_line_info. Remove condition check on want_line_info.
2042 Callers update.
2043
d5962de5
DE
20442014-08-27 Doug Evans <dje@google.com>
2045
2046 * dwarf2read.c (dwarf_record_line): Fix typo.
2047
9b139002
SDJ
20482014-08-27 Patrick Palka <patrick@parcs.ath.cx>
2049
2050 * target.h (struct target_ops::to_terminal_save_ours): Remove
2051 declaration.
2052 (target_terminal_save_ours): Remove macro.
2053 * target-delegates.c: Regenerate.
2054 * inf-child.c (inf_child_target): Don't set the nonexistent
2055 field to_terminal_save_ours.
2056 * inferior.h (child_terminal_save_ours): Remove declaration.
2057 * terminal.h (gdb_save_tty_state): New declaration.
2058 * inflow.c (child_terminal_save_ours): Rename to ...
2059 (gdb_save_tty_state): ... this.
2060 * tui/tui.c: Include terminal.h.
2061 (tui_enable): Use gdb_save_tty_state instead of
2062 target_terminal_save_ours.
2063 (tui_disable): Likewise.
2064
9debeba0
DE
20652014-08-25 Doug Evans <dje@google.com>
2066
2067 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
2068 Pass NULL instead of 0 for context pointer.
2069
428fc5fc
YQ
20702014-08-25 Yao Qi <yao@codesourcery.com>
2071
2072 * dwarf2read.c: Fix grammatical error.
2073
cdc07690
YQ
20742014-08-24 Yao Qi <yao@codesourcery.com>
2075
2076 * dwarf2read.c (scan_partial_symbols): Update comments.
2077 Rename argument 'need_pc' with 'set_addrmap'.
2078 (add_partial_namespace): Rename argument 'need_pc' with
2079 'set_addrmap'.
2080 (add_partial_module): Likewise.
2081 (add_partial_subprogram): Likewise. Update comments.
2082 (dwarf2_name): Fix typo.
2083
a05a36a5
DE
20842014-08-22 Doug Evans <dje@google.com>
2085
2086 PR 17276
2087 * dwarf2read.c (dwarf_record_line_p): New function.
2088 (dwarf_decode_lines_1): Ignore subsequent line number entries
2089 for the same line if any entry had a non-zero discriminator.
2090
252a6764
DE
20912014-08-22 Doug Evans <dje@google.com>
2092
2093 * buildsym.h (record_line_ftype): New typedef.
2094 (record_line): Use it.
2095 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
2096 (dwarf_decode_lines_1): Call them.
2097
510db052
YQ
20982014-08-22 Yao Qi <yao@codesourcery.com>
2099
2100 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
2101 (ctf_end): Remove code.
2102
22fd09ae
JK
21032014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2104
2105 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
2106 (linux_make_corefile_notes): call update_thread_list, protected against
2107 exceptions.
2108
656e8868
PA
21092014-08-21 Pedro Alves <palves@redhat.com>
2110
2111 * infcmd.c (attach_command): Remove comment.
2112
de589d04
WN
21132014-08-21 Bin Cheng <bin.cheng@arm.com>
2114
2115 * aarch64-linux-nat.c (dr_changed_t): Change the type from
2116 unsigned LONGEST to ULONGEST.
2117
2a31c623
PA
21182014-08-20 Pedro Alves <palves@redhat.com>
2119
2120 * Makefile.in (check-read1): New rule.
2121
d36430db
JB
21222014-08-20 Joel Brobecker <brobecker@adacore.com>
2123
2124 * value.c (value_from_contents_and_address): Strip resolved_type's
2125 typedef layers before checking its TYPE_DATA_LOCATION.
2126
000339af
PA
21272014-08-20 Pedro Alves <palves@redhat.com>
2128
2129 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
2130
5f52445b
YQ
21312014-08-20 Yao Qi <yao@codesourcery.com>
2132
2133 * amd64-tdep.c (amd64_classify): Add a blank line after the
2134 example. Move "*/" to a new line.
2135 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
2136 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
2137 * dwarf2read.c (psymtab_include_file_name): Likewise.
2138
9a0dc9e3
PA
21392014-08-19 Andrew Burgess <aburgess@broadcom.com>
2140 Pedro Alves <palves@redhat.com>
2141
2142 PR symtab/14604
2143 PR symtab/14605
2144 * ada-lang.c (coerce_unspec_val_to_type): Use
2145 value_contents_copy_raw.
2146 * ada-valprint.c (val_print_packed_array_elements): Adjust.
2147 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
2148 * cp-valprint.c (cp_print_value_fields): Let the common printing
2149 code handle optimized out values.
2150 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
2151 * d-valprint.c (dynamic_array_type): Use
2152 value_bits_any_optimized_out.
2153 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
2154 check_any_valid fields.
2155 (check_pieced_value_bits): Delete and inline ...
2156 (check_pieced_synthetic_pointer): ... here.
2157 (check_pieced_value_validity): Delete.
2158 (check_pieced_value_invalid): Delete.
2159 (pieced_value_funcs): Remove check_validity and check_any_valid
2160 fields.
2161 (read_pieced_value): Use mark_value_bits_optimized_out.
2162 (write_pieced_value): Switch to use
2163 mark_value_bytes_optimized_out.
2164 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
2165 of assuming the whole value is optimized out.
2166 * findvar.c (read_frame_register_value): Remove special handling
2167 of optimized out registers.
2168 (value_from_register): Use mark_value_bytes_optimized_out.
2169 * frame-unwind.c (frame_unwind_got_optimized): Use
2170 mark_value_bytes_optimized_out.
2171 * jv-valprint.c (java_value_print): Adjust.
2172 (java_print_value_fields): Let the common printing code handle
2173 optimized out values.
2174 * mips-tdep.c (mips_print_register): Remove special handling of
2175 optimized out registers.
2176 * opencl-lang.c (lval_func_check_validity): Delete.
2177 (lval_func_check_any_valid): Delete.
2178 (opencl_value_funcs): Remove check_validity and check_any_valid
2179 fields.
2180 * p-valprint.c (pascal_object_print_value_fields): Let the common
2181 printing code handle optimized out values.
2182 * stack.c (read_frame_arg): Remove special handling of optimized
2183 out values. Fetch both VAL and ENTRYVAL before comparing
2184 contents. Adjust to value_available_contents_eq rename.
2185 * valprint.c (valprint_check_validity)
2186 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
2187 (val_print_array_elements): Adjust.
2188 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
2189 (value_bits_any_optimized_out): New function.
2190 (value_entirely_covered_by_range_vector): New function, factored
2191 out from value_entirely_unavailable.
2192 (value_entirely_unavailable): Reimplement.
2193 (value_entirely_optimized_out): New function.
2194 (insert_into_bit_range_vector): New function, factored out from
2195 mark_value_bits_unavailable.
2196 (mark_value_bits_unavailable): Reimplement.
2197 (struct ranges_and_idx): New struct.
2198 (find_first_range_overlap_and_match): New function, factored out
2199 from value_available_contents_bits_eq.
2200 (value_available_contents_bits_eq): Rename to ...
2201 (value_contents_bits_eq): ... this. Check both unavailable
2202 contents and optimized out contents.
2203 (value_available_contents_eq): Rename to ...
2204 (value_contents_eq): ... this.
2205 (allocate_value_lazy): Remove reference to the old optimized_out
2206 boolean.
2207 (allocate_optimized_out_value): Use
2208 mark_value_bytes_optimized_out.
2209 (require_not_optimized_out): Adjust to check whether the
2210 optimized_out vec is empty.
2211 (ranges_copy_adjusted): New function, factored out from
2212 value_contents_copy_raw.
2213 (value_contents_copy_raw): Also copy the optimized out ranges.
2214 Assert the destination ranges aren't optimized out.
2215 (value_contents_copy): Update comment, remove call to
2216 require_not_optimized_out.
2217 (value_contents_equal): Adjust to check whether the optimized_out
2218 vec is empty.
2219 (set_value_optimized_out, value_optimized_out_const): Delete.
2220 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
2221 New functions.
2222 (value_entirely_optimized_out, value_bits_valid): Delete.
2223 (value_copy): Take a VEC copy of the 'optimized_out' field.
2224 (value_primitive_field): Remove special handling of optimized out.
2225 (value_fetch_lazy): Assert that lazy values have no unavailable
2226 regions. Use value_bits_any_optimized_out. Remove some special
2227 handling for optimized out values.
2228 * value.h: Add intro comment about <optimized out> and
2229 <unavailable>.
2230 (struct lval_funcs): Remove check_validity and check_any_valid
2231 fields.
2232 (set_value_optimized_out, value_optimized_out_const): Remove.
2233 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
2234 New declarations.
2235 (value_bits_any_optimized_out): New declaration.
2236 (value_bits_valid): Delete declaration.
2237 (value_available_contents_eq): Rename to ...
2238 (value_contents_eq): ... this, and extend comments.
2239
6694c411
JK
22402014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2241
2242 Fix -fsanitize=address on unreadable inferior strings.
2243 * valprint.c (val_print_string): Fix access before BUFFER.
2244
89a1c21a
SM
22452014-08-19 Simon Marchi <simon.marchi@ericsson.com>
2246
2247 * target.c (target_struct_size): Remove.
2248 (target_struct_allocsize): Remove.
2249 (DEFAULT_ALLOCSIZE): Remove.
2250 (target_ops_p): New typedef.
2251 (DEF_VEC_P (target_ops_p)): New vector type.
2252 (target_structs): Change type to VEC (target_ops_p).
2253 (add_target_with_completer): Replace "push" code by VEC_safe_push.
2254 (find_default_run_target): Rewrite for loop following changes to
2255 target_structs.
2256
cb417230
JB
22572014-08-19 Joel Brobecker <brobecker@adacore.com>
2258
2259 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
2260 Adjust code accordingly. Adjust function description comment.
2261
817e0957
YQ
22622014-08-19 Yao Qi <yao@codesourcery.com>
2263
2264 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
2265 types.
2266
2974be62
AM
22672014-08-19 Alan Modra <amodra@gmail.com>
2268
2269 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
2270 * config.in: Regenerate.
2271 * configure: Regenerate.
2272
34abf635
GB
22732014-08-19 Tom Tromey <tromey@redhat.com>
2274 Gary Benson <gbenson@redhat.com>
2275
2276 * common/common-debug.h: New file.
2277 * common/common-debug.c: Likewise.
2278 * debug.c: Likewise.
2279 * Makefile.in (SFILES): Add common/common-debug.c.
2280 (HFILES_NO_SRCDIR): Add common/common-debug.h.
2281 (COMMON_OBS): Add common-debug.o and debug.o.
2282 (common-debug.o): New rule.
2283 * common/common-defs.h: Include common-debug.h.
2284 * common/agent.c (debug_agent_printf): New function.
2285 (DEBUG_AGENT): Redefine.
2286 * nat/i386-dregs.c (debug_printf): Undefine.
2287
f6e94d78
GB
22882014-08-19 Gary Benson <gbenson@redhat.com>
2289
2290 * common/common-defs.h: Include print-utils.h.
2291 * utils.h: Do not include print-utils.h.
2292
9239eeab
GB
22932014-08-19 Tom Tromey <tromey@redhat.com>
2294 Gary Benson <gbenson@redhat.com>
2295
2296 * common/common-types.h: New file.
2297 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
2298 * common/common-defs.h: Include common-types.h.
2299 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
2300 (ULONGEST): Remove.
2301
ef87c8bb
GB
23022014-08-19 Tom Tromey <tromey@redhat.com>
2303 Gary Benson <gbenson@redhat.com>
2304
2305 * common/errors.h: New file.
2306 * common/errors.c: Likewise.
2307 * Makefile.in (SFILES): Add common/errors.c.
2308 (HFILES_NO_SRCDIR): Add common/errors.h.
2309 (COMMON_OBS): Add errors.o.
2310 (errors.o): New rule.
2311 * common/common-defs.h: Include errors.h.
2312 * utils.h (perror_with_name, error, verror, warning, vwarning):
2313 Don't declare.
2314 * common/common-utils.h: (malloc_failure, internal_error):
2315 Likewise.
2316
196a707b
GB
23172014-08-19 Gary Benson <gbenson@redhat.com>
2318
2319 * utils.c (internal_vproblem): Always print the message.
2320
ded4fc8f
DE
23212014-08-18 Doug Evans <dje@google.com>
2322
2323 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
2324
950c97d8
JB
23252014-08-18 Joel Brobecker <brobecker@adacore.com>
2326
2327 * ada-typeprint.c (type_is_full_subrange_of_target_type):
2328 Return 0 if TYPE is dynamic.
2329 (print_range): Add handling of dynamic ranges.
2330
3cdcd0ce
JB
23312014-08-18 Keven Boell <keven.boell@intel.com>
2332 Joel Brobecker <brobecker@adacore.com>
2333
2334 * gdbtypes.h (struct main_type): Add field "data_location".
2335 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
2336 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
2337 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
2338 a dynamic data location.
2339 (resolve_dynamic_type): Add DW_AT_data_location handling.
2340 (copy_recursive, copy_type): Copy the data_location information
2341 when present.
2342 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
2343 * value.c (value_from_contents_and_address): Add
2344 DW_AT_data_location handling.
2345
08412b07
JB
23462014-08-18 Keven Boell <keven.boell@intel.com>
2347 Joel Brobecker <brobecker@adacore.com>
2348
2349 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
2350 field "get_object_address".
2351 * dwarf2expr.c (execute_stack_op): Add handling for
2352 DW_OP_push_object_address.
2353 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
2354 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
2355 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
2356 (dwarf_expr_get_obj_addr): New function.
2357 (dwarf_expr_ctx_funcs): Add get_object_address field.
2358 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
2359 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
2360 (dwarf2_evaluate_property): Add parameter "address". Use it.
2361 (needs_get_obj_addr): New function.
2362 (needs_frame_ctx_funcs): Add get_object_address field.
2363 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
2364 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
2365 (resolve_dynamic_array): Likewise.
2366
84754697
JB
23672014-08-18 Joel Brobecker <brobecker@adacore.com>
2368
2369 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
2370 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
2371 fixed value for records and unions for which some GNAT encodings
2372 are present.
2373
da5c522f
JB
23742014-08-18 Joel Brobecker <brobecker@adacore.com>
2375
2376 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
2377 rewrite to avoid "else if" and "else" constructs. Should be
2378 a no-op in practice.
2379
0d72a7c3
JB
23802014-08-18 Joel Brobecker <brobecker@adacore.com>
2381
2382 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
2383 of lexical block.
2384
e66d4446
SC
23852014-08-15 Siva Chandra Reddy <sivachandra@google.com>
2386
2387 PR c++/17132
2388 * eval.c: Update all calls to find_overload_match.
2389 * valarith.c: Likewise.
2390 (value_user_defined_cpp_op, value_user_defined_op): New
2391 argument NOSIDE. Update all callers.
2392 * valops.c (find_overload_match): New argument NOSIDE.
2393 * value.h (find_overload_match): Update signature.
2394
940df408
SC
23952014-08-15 Siva Chandra Reddy <sivachandra@google.com>
2396
2397 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
2398 'items' methods instead of 'iteritems' method on dictionaries.
2399
699ca60a
DE
24002014-08-15 Doug Evans <dje@google.com>
2401
2402 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
2403 closer to use.
2404
37780ee5
DE
24052014-08-15 Doug Evans <dje@google.com>
2406
2407 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
2408
0ad93d4f
DE
24092014-08-15 Doug Evans <dje@google.com>
2410
2411 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
2412
20d8c372
DE
24132014-08-15 Doug Evans <dje@google.com>
2414
2415 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
2416 unused.
2417
cb039ba4
EZ
24182014-08-15 Eli Zaretskii <eliz@gnu.org>
2419
2420 * dcache.h: Include target.h, to avoid compile time warnings.
2421
eb7a547a
JB
24222014-08-15 Joel Brobecker <brobecker@adacore.com>
2423
2424 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
2425 frame_info" partial declaration.
2426 * gdbarch.h: Regenerate.
2427
783cecc8
YQ
24282014-08-15 Yao Qi <yao@codesourcery.com>
2429
2430 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
2431 Add parameter 'decode_for_pst_p'. Callers update.
2432
65c749e7
YQ
24332014-08-13 Yao Qi <yao@codesourcery.com>
2434
2435 PR build/17104
2436 * configure.ac: Use local variable 'pos'.
2437 * configure: Regenerated.
2438
d769e349
DE
24392014-08-11 Doug Evans <dje@google.com>
2440
2441 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
2442 message, it is redundant with "Reading symbols from ..." message.
2443
24f1235e
DE
24442014-08-10 Doug Evans <xdje42@gmail.com>
2445
2446 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
2447
dcd2e6ef
YQ
24482014-08-09 Yao Qi <yao@codesourcery.com>
2449
2450 PR remote/9053
2451 * remote.c (remote_xfer_partial): Remove dead code.
2452
070bdf0b
AA
24532014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2454
2455 * ia64-linux-tdep.c: Include "regset.h".
2456 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
2457 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
2458 (ia64_linux_supply_fpregset): New function.
2459 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
2460 (ia64_linux_regset_from_core_section): New function.
2461 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
2462 method.
2463
08f9f542
AA
24642014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2465
2466 * m68klinux-tdep.c: Include "regset.h".
2467 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
2468 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
2469 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
2470 (m68k_linux_regset_from_core_section): New function.
2471 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
2472 method.
2473
8f1cee41
AA
24742014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2475
2476 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
2477 function. Move logic to...
2478 (tilegx_linux_regmap): ... this new register map.
2479 (tilegx_linux_regset): Refer to register map, replace supply
2480 method by regcache_supply_regset, and add collect method.
2481 * tilegx-tdep.h (enum tilegx_regnum): New enum value
2482 TILEGX_FIRST_EASY_REGNUM.
2483
c5741217
AA
24842014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2485
2486 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
2487 that calls regcache_supply_regset and handles the EPC register
2488 separately. Move main logic to...
2489 (score7_linux_gregmap): ... this new register map.
2490 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
2491 (score7_linux_gregset): Refer to register map. Add collect method.
2492 (score7_linux_regset_from_core_section): Replace
2493 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
2494 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
2495 (struct regset): Delete unused forward declaraction.
2496 (struct pt_regs): Delete structure definition.
2497 (elf_gregset_t): Delete typedef.
2498
81580573
AA
24992014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2500
2501 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
2502 (nios2_core_regset): Add collect method.
2503
ba199d7d
AA
25042014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2505
2506 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
2507 platform-independent and don't write to read-only input buffer.
2508 (m32r_linux_collect_gregset): New function.
2509 (m32r_linux_gregset): Add collect method.
2510
0006a9da
AA
25112014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2512
2513 * hppa-linux-tdep.c (greg_map): Rename to...
2514 (hppa_linux_gregmap): ... this. Also convert to
2515 regcache_map_entry format.
2516 (hppa_linux_supply_regset): Delete function.
2517 (hppa_linux_supply_fpregset): Delete function. Move logic to...
2518 (hppa_linux_fpregmap): ... this new register map.
2519 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
2520 register map, replace supply method by regcache_supply_regset, and
2521 add collect method regcache_collect_regset.
2522
901e1b23
AA
25232014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2524
2525 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
2526 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
2527 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
2528 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
2529 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
2530 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
2531 (frv_linux_supply_gregset): Replace main logic by call to
2532 regcache_supply_regset, but keep clearing gr32-gr63.
2533 (frv_linux_supply_fpregset): Delete function.
2534 (frv_linux_gregset): Refer to appropriate register map and add
2535 regcache_collect_regset as the collect method.
2536 (frv_linux_fpregset): Likewise. Also exchange the supply method
2537 by regcache_supply_regset.
2538
1d6e7555
AA
25392014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2540
2541 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
2542 by call to alpha_supply_int_regs.
2543 (alpha_linux_collect_gregset): New function.
2544 (alpha_linux_supply_fpregset): Replace logic by call to
2545 alpha_supply_fp_regs.
2546 (alpha_linux_collect_fpregset): New function.
2547 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
2548
d4d793bf
AA
25492014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2550
2551 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
2552 by call to regcache_collect_regset.
2553 (supply_gregset, supply_fpregset): Call regcache_supply_regset
2554 instead of aarch64_linux_supply_gregset/_fpregset.
2555 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
2556 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
2557 header file instead.
2558 (aarch64_linux_supply_gregset, supply_gregset_from_core)
2559 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
2560 functions. Move logic to ...
2561 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
2562 register maps.
2563 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
2564 refer to new register maps, replace *_regset_from_core by
2565 regcache_supply_regset, and also use regcache_collect_regset.
2566 * aarch64-linux-tdep.h: Include "regset.h".
2567 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
2568 Delete prototypes.
2569 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
2570 macros, moved from C source file.
2571 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
2572 variable declarations.
2573
99b7da5d
AA
25742014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2575
2576 * s390-linux-nat.c: Include "regset.h".
2577 (regmap_gregset): Delete macro.
2578 (s390_64_regmap_gregset): New register map for
2579 regcache_supply/_collect_regset.
2580 (s390_64_gregset): New regset.
2581 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
2582 (regmap_fpregset): Delete macro.
2583 (s390_native_supply, s390_native_collect): Delete functions.
2584 (supply_gregset, fill_gregset): Replace s390-specific regmap
2585 handling by a call to regcache_supply/_collect_regset.
2586 (supply_fpregset, fill_fpregset): Call regcache_supply/
2587 _collect_regset instead of s390_native_supply/_collect.
2588 (fetch_regset, store_regset): Likewise. Also change the last
2589 parameter to a regset instead of a regmap.
2590 (s390_linux_fetch_inferior_registers)
2591 (390_linux_store_inferior_registers): Adjust last parameter in
2592 calls to fetch_regset and store_regset.
2593 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
2594 (s390_gregmap): ... this. Also make static const and convert to
2595 regcache_map_entry format.
2596 (s390x_regmap_gregset): Delete.
2597 (s390_regmap_fpregset): Rename to...
2598 (s390_fpregmap): ... this. Make static const and convert to
2599 regcache_map_entry format.
2600 (s390_regmap_upper, s390_regmap_last_break)
2601 (s390x_regmap_last_break, s390_regmap_system_call)
2602 (s390_regmap_tdb): Likewise.
2603 (s390_supply_regset, s390_collect_regset): Remove functions.
2604 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
2605 s390_supply_regset.
2606 (s390_gregset, s390_fpregset, s390_upper_regset)
2607 (s390_last_break_regset, s390x_last_break_regset)
2608 (s390_system_call_regset, s390_tdb_regset): Make global and
2609 replace s390_supply/_collect_regset by regcache_supply/
2610 _collect_regset.
2611 (s390x_gregset): Delete.
2612 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
2613 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
2614 (s390_regmap_fpregset, s390_regmap_last_break)
2615 (s390x_regmap_last_break, s390_regmap_system_call)
2616 (s390_regmap_tdb): Delete global variable declarations.
2617 (s390_gregset, s390_fpregset, s390_last_break_regset)
2618 (s390x_last_break_regset, s390_system_call_regset)
2619 (s390_tdb_regset): New global variable declarations.
2620
0b309272
AA
26212014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2622
2623 * regcache.c: Include "regset.h".
2624 (regcache_transfer_regset): New local function.
2625 (regcache_supply_regset, regcache_collect_regset): New functions.
2626 * regcache.h (struct regcache_map_entry): New structure.
2627 (REGCACHE_MAP_SKIP): New enum value.
2628 (regcache_supply_regset, regcache_collect_regset): New prototypes.
2629
7fefa8d7
AA
26302014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2631
2632 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
2633 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
2634 (ppc_linux_collect_gregset ): Likewise.
2635 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
2636 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
2637 (ppc_collect_vrregset): Likewise.
2638 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
2639 Likewise.
2640
96c4f946
YQ
26412014-08-07 Yao Qi <yao@codesourcery.com>
2642
2643 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
2644 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
2645 * remote.c (remote_read_bytes): Likewise.
2646
fffbe6a8
YQ
26472014-08-07 Yao Qi <yao@codesourcery.com>
2648
2649 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
2650
5ee8a82c
YQ
26512014-08-07 Yao Qi <yao@codesourcery.com>
2652
2653 PR remote/17230
2654 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
2655 TARGET_XFER_OK instead of 0.
2656
bb974a24
GB
26572014-08-07 Gary Benson <gbenson@redhat.com>
2658
2659 * common/common-defs.h: Include errno.h.
2660 * defs.h: Do not include errno.h.
2661 * ada-typeprint.c: Likewise.
2662 * c-typeprint.c: Likewise.
2663 * core-regset.c: Likewise.
2664 * corefile.c: Likewise.
2665 * corelow.c: Likewise.
2666 * event-loop.c: Likewise.
2667 * f-typeprint.c: Likewise.
2668 * gnu-nat.c: Likewise.
2669 * go32-nat.c: Likewise.
2670 * i386gnu-nat.c: Likewise.
2671 * m2-typeprint.c: Likewise.
2672 * nat/linux-btrace.c: Likewise.
2673 * p-typeprint.c: Likewise.
2674 * procfs.c: Likewise.
2675 * remote-sim.c: Likewise.
2676 * rs6000-nat.c: Likewise.
2677 * target.c: Likewise.
2678 * typeprint.c: Likewise.
2679 * ui-file.c: Likewise.
2680 * valops.c: Likewise.
2681 * valprint.c: Likewise.
2682
6d3d12eb
GB
26832014-08-07 Gary Benson <gbenson@redhat.com>
2684
2685 * common/common-defs.h: Include string.h.
2686 * aarch64-tdep.c: Do not include string.h.
2687 * ada-exp.y: Likewise.
2688 * ada-lang.c: Likewise.
2689 * ada-lex.l: Likewise.
2690 * ada-typeprint.c: Likewise.
2691 * ada-valprint.c: Likewise.
2692 * aix-thread.c: Likewise.
2693 * alpha-linux-tdep.c: Likewise.
2694 * alpha-mdebug-tdep.c: Likewise.
2695 * alpha-nat.c: Likewise.
2696 * alpha-osf1-tdep.c: Likewise.
2697 * alpha-tdep.c: Likewise.
2698 * alphanbsd-tdep.c: Likewise.
2699 * amd64-dicos-tdep.c: Likewise.
2700 * amd64-linux-tdep.c: Likewise.
2701 * amd64-nat.c: Likewise.
2702 * amd64-sol2-tdep.c: Likewise.
2703 * amd64fbsd-tdep.c: Likewise.
2704 * amd64obsd-tdep.c: Likewise.
2705 * arch-utils.c: Likewise.
2706 * arm-linux-nat.c: Likewise.
2707 * arm-linux-tdep.c: Likewise.
2708 * arm-tdep.c: Likewise.
2709 * arm-wince-tdep.c: Likewise.
2710 * armbsd-tdep.c: Likewise.
2711 * armnbsd-nat.c: Likewise.
2712 * armnbsd-tdep.c: Likewise.
2713 * armobsd-tdep.c: Likewise.
2714 * avr-tdep.c: Likewise.
2715 * ax-gdb.c: Likewise.
2716 * ax-general.c: Likewise.
2717 * bcache.c: Likewise.
2718 * bfin-tdep.c: Likewise.
2719 * breakpoint.c: Likewise.
2720 * build-id.c: Likewise.
2721 * buildsym.c: Likewise.
2722 * c-exp.y: Likewise.
2723 * c-lang.c: Likewise.
2724 * c-typeprint.c: Likewise.
2725 * c-valprint.c: Likewise.
2726 * charset.c: Likewise.
2727 * cli-out.c: Likewise.
2728 * cli/cli-cmds.c: Likewise.
2729 * cli/cli-decode.c: Likewise.
2730 * cli/cli-dump.c: Likewise.
2731 * cli/cli-interp.c: Likewise.
2732 * cli/cli-logging.c: Likewise.
2733 * cli/cli-script.c: Likewise.
2734 * cli/cli-setshow.c: Likewise.
2735 * cli/cli-utils.c: Likewise.
2736 * coffread.c: Likewise.
2737 * common/agent.c: Likewise.
2738 * common/buffer.c: Likewise.
2739 * common/buffer.h: Likewise.
2740 * common/common-utils.c: Likewise.
2741 * common/filestuff.c: Likewise.
2742 * common/filestuff.c: Likewise.
2743 * common/format.c: Likewise.
2744 * common/print-utils.c: Likewise.
2745 * common/rsp-low.c: Likewise.
2746 * common/signals.c: Likewise.
2747 * common/vec.h: Likewise.
2748 * common/xml-utils.c: Likewise.
2749 * core-regset.c: Likewise.
2750 * corefile.c: Likewise.
2751 * corelow.c: Likewise.
2752 * cp-abi.c: Likewise.
2753 * cp-name-parser.y: Likewise.
2754 * cp-support.c: Likewise.
2755 * cp-valprint.c: Likewise.
2756 * cris-tdep.c: Likewise.
2757 * d-exp.y: Likewise.
2758 * darwin-nat.c: Likewise.
2759 * dbxread.c: Likewise.
2760 * dcache.c: Likewise.
2761 * demangle.c: Likewise.
2762 * dicos-tdep.c: Likewise.
2763 * disasm.c: Likewise.
2764 * doublest.c: Likewise.
2765 * dsrec.c: Likewise.
2766 * dummy-frame.c: Likewise.
2767 * dwarf2-frame.c: Likewise.
2768 * dwarf2loc.c: Likewise.
2769 * dwarf2read.c: Likewise.
2770 * elfread.c: Likewise.
2771 * environ.c: Likewise.
2772 * eval.c: Likewise.
2773 * event-loop.c: Likewise.
2774 * exceptions.c: Likewise.
2775 * exec.c: Likewise.
2776 * expprint.c: Likewise.
2777 * f-exp.y: Likewise.
2778 * f-lang.c: Likewise.
2779 * f-typeprint.c: Likewise.
2780 * f-valprint.c: Likewise.
2781 * fbsd-nat.c: Likewise.
2782 * findcmd.c: Likewise.
2783 * findvar.c: Likewise.
2784 * fork-child.c: Likewise.
2785 * frame.c: Likewise.
2786 * frv-linux-tdep.c: Likewise.
2787 * frv-tdep.c: Likewise.
2788 * gdb.c: Likewise.
2789 * gdb_bfd.c: Likewise.
2790 * gdbarch.c: Likewise.
2791 * gdbarch.sh: Likewise.
2792 * gdbtypes.c: Likewise.
2793 * gnu-nat.c: Likewise.
2794 * gnu-v2-abi.c: Likewise.
2795 * gnu-v3-abi.c: Likewise.
2796 * go-exp.y: Likewise.
2797 * go-lang.c: Likewise.
2798 * go32-nat.c: Likewise.
2799 * guile/guile.c: Likewise.
2800 * guile/scm-auto-load.c: Likewise.
2801 * hppa-hpux-tdep.c: Likewise.
2802 * hppa-linux-nat.c: Likewise.
2803 * hppanbsd-tdep.c: Likewise.
2804 * hppaobsd-tdep.c: Likewise.
2805 * i386-cygwin-tdep.c: Likewise.
2806 * i386-dicos-tdep.c: Likewise.
2807 * i386-linux-tdep.c: Likewise.
2808 * i386-nto-tdep.c: Likewise.
2809 * i386-sol2-tdep.c: Likewise.
2810 * i386-tdep.c: Likewise.
2811 * i386bsd-tdep.c: Likewise.
2812 * i386gnu-nat.c: Likewise.
2813 * i386nbsd-tdep.c: Likewise.
2814 * i386obsd-tdep.c: Likewise.
2815 * i387-tdep.c: Likewise.
2816 * ia64-libunwind-tdep.c: Likewise.
2817 * ia64-linux-nat.c: Likewise.
2818 * inf-child.c: Likewise.
2819 * inf-ptrace.c: Likewise.
2820 * inf-ttrace.c: Likewise.
2821 * infcall.c: Likewise.
2822 * infcmd.c: Likewise.
2823 * inflow.c: Likewise.
2824 * infrun.c: Likewise.
2825 * interps.c: Likewise.
2826 * iq2000-tdep.c: Likewise.
2827 * irix5-nat.c: Likewise.
2828 * jv-exp.y: Likewise.
2829 * jv-lang.c: Likewise.
2830 * jv-typeprint.c: Likewise.
2831 * jv-valprint.c: Likewise.
2832 * language.c: Likewise.
2833 * linux-fork.c: Likewise.
2834 * linux-nat.c: Likewise.
2835 * lm32-tdep.c: Likewise.
2836 * m2-exp.y: Likewise.
2837 * m2-typeprint.c: Likewise.
2838 * m32c-tdep.c: Likewise.
2839 * m32r-linux-nat.c: Likewise.
2840 * m32r-linux-tdep.c: Likewise.
2841 * m32r-rom.c: Likewise.
2842 * m32r-tdep.c: Likewise.
2843 * m68hc11-tdep.c: Likewise.
2844 * m68k-tdep.c: Likewise.
2845 * m68kbsd-tdep.c: Likewise.
2846 * m68klinux-nat.c: Likewise.
2847 * m68klinux-tdep.c: Likewise.
2848 * m88k-tdep.c: Likewise.
2849 * machoread.c: Likewise.
2850 * macrocmd.c: Likewise.
2851 * main.c: Likewise.
2852 * mdebugread.c: Likewise.
2853 * mem-break.c: Likewise.
2854 * memattr.c: Likewise.
2855 * memory-map.c: Likewise.
2856 * mep-tdep.c: Likewise.
2857 * mi/mi-cmd-break.c: Likewise.
2858 * mi/mi-cmd-disas.c: Likewise.
2859 * mi/mi-cmd-env.c: Likewise.
2860 * mi/mi-cmd-stack.c: Likewise.
2861 * mi/mi-cmd-var.c: Likewise.
2862 * mi/mi-cmds.c: Likewise.
2863 * mi/mi-console.c: Likewise.
2864 * mi/mi-getopt.c: Likewise.
2865 * mi/mi-interp.c: Likewise.
2866 * mi/mi-main.c: Likewise.
2867 * mi/mi-parse.c: Likewise.
2868 * microblaze-rom.c: Likewise.
2869 * microblaze-tdep.c: Likewise.
2870 * mingw-hdep.c: Likewise.
2871 * minidebug.c: Likewise.
2872 * minsyms.c: Likewise.
2873 * mips-irix-tdep.c: Likewise.
2874 * mips-linux-tdep.c: Likewise.
2875 * mips-tdep.c: Likewise.
2876 * mips64obsd-tdep.c: Likewise.
2877 * mipsnbsd-tdep.c: Likewise.
2878 * mipsread.c: Likewise.
2879 * mn10300-linux-tdep.c: Likewise.
2880 * mn10300-tdep.c: Likewise.
2881 * monitor.c: Likewise.
2882 * moxie-tdep.c: Likewise.
2883 * mt-tdep.c: Likewise.
2884 * nat/linux-btrace.c: Likewise.
2885 * nat/linux-osdata.c: Likewise.
2886 * nat/linux-procfs.c: Likewise.
2887 * nat/linux-ptrace.c: Likewise.
2888 * nat/linux-waitpid.c: Likewise.
2889 * nbsd-tdep.c: Likewise.
2890 * nios2-linux-tdep.c: Likewise.
2891 * nto-procfs.c: Likewise.
2892 * nto-tdep.c: Likewise.
2893 * objc-lang.c: Likewise.
2894 * objfiles.c: Likewise.
2895 * opencl-lang.c: Likewise.
2896 * osabi.c: Likewise.
2897 * osdata.c: Likewise.
2898 * p-exp.y: Likewise.
2899 * p-lang.c: Likewise.
2900 * p-typeprint.c: Likewise.
2901 * parse.c: Likewise.
2902 * posix-hdep.c: Likewise.
2903 * ppc-linux-nat.c: Likewise.
2904 * ppc-sysv-tdep.c: Likewise.
2905 * ppcfbsd-tdep.c: Likewise.
2906 * ppcnbsd-tdep.c: Likewise.
2907 * ppcobsd-tdep.c: Likewise.
2908 * printcmd.c: Likewise.
2909 * procfs.c: Likewise.
2910 * prologue-value.c: Likewise.
2911 * python/py-auto-load.c: Likewise.
2912 * python/py-gdb-readline.c: Likewise.
2913 * ravenscar-thread.c: Likewise.
2914 * regcache.c: Likewise.
2915 * registry.c: Likewise.
2916 * remote-fileio.c: Likewise.
2917 * remote-m32r-sdi.c: Likewise.
2918 * remote-mips.c: Likewise.
2919 * remote-notif.c: Likewise.
2920 * remote-sim.c: Likewise.
2921 * remote.c: Likewise.
2922 * reverse.c: Likewise.
2923 * rs6000-aix-tdep.c: Likewise.
2924 * ser-base.c: Likewise.
2925 * ser-go32.c: Likewise.
2926 * ser-mingw.c: Likewise.
2927 * ser-pipe.c: Likewise.
2928 * ser-tcp.c: Likewise.
2929 * ser-unix.c: Likewise.
2930 * serial.c: Likewise.
2931 * sh-tdep.c: Likewise.
2932 * sh64-tdep.c: Likewise.
2933 * shnbsd-tdep.c: Likewise.
2934 * skip.c: Likewise.
2935 * sol-thread.c: Likewise.
2936 * solib-dsbt.c: Likewise.
2937 * solib-frv.c: Likewise.
2938 * solib-osf.c: Likewise.
2939 * solib-som.c: Likewise.
2940 * solib-spu.c: Likewise.
2941 * solib-target.c: Likewise.
2942 * solib.c: Likewise.
2943 * somread.c: Likewise.
2944 * source.c: Likewise.
2945 * sparc-nat.c: Likewise.
2946 * sparc-sol2-tdep.c: Likewise.
2947 * sparc-tdep.c: Likewise.
2948 * sparc64-tdep.c: Likewise.
2949 * sparc64fbsd-tdep.c: Likewise.
2950 * sparc64nbsd-tdep.c: Likewise.
2951 * sparcnbsd-tdep.c: Likewise.
2952 * spu-linux-nat.c: Likewise.
2953 * spu-multiarch.c: Likewise.
2954 * spu-tdep.c: Likewise.
2955 * stabsread.c: Likewise.
2956 * stack.c: Likewise.
2957 * std-regs.c: Likewise.
2958 * symfile.c: Likewise.
2959 * symmisc.c: Likewise.
2960 * symtab.c: Likewise.
2961 * target.c: Likewise.
2962 * thread.c: Likewise.
2963 * tilegx-linux-nat.c: Likewise.
2964 * tilegx-tdep.c: Likewise.
2965 * top.c: Likewise.
2966 * tracepoint.c: Likewise.
2967 * tui/tui-command.c: Likewise.
2968 * tui/tui-data.c: Likewise.
2969 * tui/tui-disasm.c: Likewise.
2970 * tui/tui-file.c: Likewise.
2971 * tui/tui-layout.c: Likewise.
2972 * tui/tui-out.c: Likewise.
2973 * tui/tui-regs.c: Likewise.
2974 * tui/tui-source.c: Likewise.
2975 * tui/tui-stack.c: Likewise.
2976 * tui/tui-win.c: Likewise.
2977 * tui/tui-windata.c: Likewise.
2978 * tui/tui-winsource.c: Likewise.
2979 * typeprint.c: Likewise.
2980 * ui-file.c: Likewise.
2981 * ui-out.c: Likewise.
2982 * user-regs.c: Likewise.
2983 * utils.c: Likewise.
2984 * v850-tdep.c: Likewise.
2985 * valarith.c: Likewise.
2986 * valops.c: Likewise.
2987 * valprint.c: Likewise.
2988 * value.c: Likewise.
2989 * varobj.c: Likewise.
2990 * vax-tdep.c: Likewise.
2991 * vaxnbsd-tdep.c: Likewise.
2992 * vaxobsd-tdep.c: Likewise.
2993 * windows-nat.c: Likewise.
2994 * xcoffread.c: Likewise.
2995 * xml-support.c: Likewise.
2996 * xstormy16-tdep.c: Likewise.
2997 * xtensa-linux-nat.c: Likewise.
2998
dccbb609
GB
29992014-08-07 Gary Benson <gbenson@redhat.com>
3000
3001 * common/common-defs.h: Include gdb_assert.h.
3002 * aarch64-tdep.c: Do not include gdb_assert.h.
3003 * addrmap.c: Likewise.
3004 * aix-thread.c: Likewise.
3005 * alpha-linux-tdep.c: Likewise.
3006 * alpha-mdebug-tdep.c: Likewise.
3007 * alphanbsd-tdep.c: Likewise.
3008 * amd64-nat.c: Likewise.
3009 * amd64-tdep.c: Likewise.
3010 * amd64bsd-nat.c: Likewise.
3011 * amd64fbsd-nat.c: Likewise.
3012 * amd64fbsd-tdep.c: Likewise.
3013 * amd64nbsd-nat.c: Likewise.
3014 * amd64nbsd-tdep.c: Likewise.
3015 * amd64obsd-nat.c: Likewise.
3016 * amd64obsd-tdep.c: Likewise.
3017 * arch-utils.c: Likewise.
3018 * arm-tdep.c: Likewise.
3019 * armbsd-tdep.c: Likewise.
3020 * auxv.c: Likewise.
3021 * bcache.c: Likewise.
3022 * bfin-tdep.c: Likewise.
3023 * blockframe.c: Likewise.
3024 * breakpoint.c: Likewise.
3025 * bsd-kvm.c: Likewise.
3026 * bsd-uthread.c: Likewise.
3027 * buildsym.c: Likewise.
3028 * c-exp.y: Likewise.
3029 * c-lang.c: Likewise.
3030 * charset.c: Likewise.
3031 * cleanups.c: Likewise.
3032 * cli-out.c: Likewise.
3033 * cli/cli-decode.c: Likewise.
3034 * cli/cli-dump.c: Likewise.
3035 * cli/cli-logging.c: Likewise.
3036 * cli/cli-script.c: Likewise.
3037 * cli/cli-utils.c: Likewise.
3038 * coffread.c: Likewise.
3039 * common/common-utils.c: Likewise.
3040 * common/queue.h: Likewise.
3041 * common/signals.c: Likewise.
3042 * common/vec.h: Likewise.
3043 * complaints.c: Likewise.
3044 * completer.c: Likewise.
3045 * corelow.c: Likewise.
3046 * cp-abi.c: Likewise.
3047 * cp-name-parser.y: Likewise.
3048 * cp-namespace.c: Likewise.
3049 * cp-support.c: Likewise.
3050 * cris-tdep.c: Likewise.
3051 * dbxread.c: Likewise.
3052 * dictionary.c: Likewise.
3053 * doublest.c: Likewise.
3054 * dsrec.c: Likewise.
3055 * dummy-frame.c: Likewise.
3056 * dwarf2-frame-tailcall.c: Likewise.
3057 * dwarf2-frame.c: Likewise.
3058 * dwarf2expr.c: Likewise.
3059 * dwarf2loc.c: Likewise.
3060 * dwarf2read.c: Likewise.
3061 * eval.c: Likewise.
3062 * event-loop.c: Likewise.
3063 * exceptions.c: Likewise.
3064 * expprint.c: Likewise.
3065 * f-valprint.c: Likewise.
3066 * fbsd-nat.c: Likewise.
3067 * findvar.c: Likewise.
3068 * frame-unwind.c: Likewise.
3069 * frame.c: Likewise.
3070 * frv-tdep.c: Likewise.
3071 * gcore.c: Likewise.
3072 * gdb-dlfcn.c: Likewise.
3073 * gdb_bfd.c: Likewise.
3074 * gdbarch.c: Likewise.
3075 * gdbarch.sh: Likewise.
3076 * gdbtypes.c: Likewise.
3077 * gnu-nat.c: Likewise.
3078 * gnu-v3-abi.c: Likewise.
3079 * go-lang.c: Likewise.
3080 * guile/scm-exception.c: Likewise.
3081 * guile/scm-gsmob.c: Likewise.
3082 * guile/scm-lazy-string.c: Likewise.
3083 * guile/scm-math.c: Likewise.
3084 * guile/scm-pretty-print.c: Likewise.
3085 * guile/scm-safe-call.c: Likewise.
3086 * guile/scm-utils.c: Likewise.
3087 * guile/scm-value.c: Likewise.
3088 * h8300-tdep.c: Likewise.
3089 * hppa-hpux-nat.c: Likewise.
3090 * hppa-tdep.c: Likewise.
3091 * hppanbsd-tdep.c: Likewise.
3092 * hppaobsd-tdep.c: Likewise.
3093 * i386-darwin-nat.c: Likewise.
3094 * i386-darwin-tdep.c: Likewise.
3095 * i386-nto-tdep.c: Likewise.
3096 * i386-tdep.c: Likewise.
3097 * i386bsd-nat.c: Likewise.
3098 * i386fbsd-tdep.c: Likewise.
3099 * i386gnu-nat.c: Likewise.
3100 * i386nbsd-tdep.c: Likewise.
3101 * i386obsd-tdep.c: Likewise.
3102 * i387-tdep.c: Likewise.
3103 * ia64-libunwind-tdep.c: Likewise.
3104 * ia64-tdep.c: Likewise.
3105 * inf-ptrace.c: Likewise.
3106 * inf-ttrace.c: Likewise.
3107 * infcall.c: Likewise.
3108 * infcmd.c: Likewise.
3109 * infrun.c: Likewise.
3110 * inline-frame.c: Likewise.
3111 * interps.c: Likewise.
3112 * jv-lang.c: Likewise.
3113 * jv-typeprint.c: Likewise.
3114 * linux-fork.c: Likewise.
3115 * linux-nat.c: Likewise.
3116 * linux-thread-db.c: Likewise.
3117 * m32c-tdep.c: Likewise.
3118 * m32r-linux-nat.c: Likewise.
3119 * m32r-tdep.c: Likewise.
3120 * m68k-tdep.c: Likewise.
3121 * m68kbsd-nat.c: Likewise.
3122 * m68kbsd-tdep.c: Likewise.
3123 * m88k-tdep.c: Likewise.
3124 * machoread.c: Likewise.
3125 * macroexp.c: Likewise.
3126 * macrotab.c: Likewise.
3127 * maint.c: Likewise.
3128 * mdebugread.c: Likewise.
3129 * memory-map.c: Likewise.
3130 * mep-tdep.c: Likewise.
3131 * mi/mi-common.c: Likewise.
3132 * microblaze-tdep.c: Likewise.
3133 * mingw-hdep.c: Likewise.
3134 * mips-linux-nat.c: Likewise.
3135 * mips-linux-tdep.c: Likewise.
3136 * mips-tdep.c: Likewise.
3137 * mips64obsd-tdep.c: Likewise.
3138 * mipsnbsd-tdep.c: Likewise.
3139 * mn10300-linux-tdep.c: Likewise.
3140 * mn10300-tdep.c: Likewise.
3141 * moxie-tdep.c: Likewise.
3142 * mt-tdep.c: Likewise.
3143 * nat/linux-btrace.c: Likewise.
3144 * nat/linux-osdata.c: Likewise.
3145 * nat/linux-ptrace.c: Likewise.
3146 * nat/mips-linux-watch.c: Likewise.
3147 * nios2-linux-tdep.c: Likewise.
3148 * nios2-tdep.c: Likewise.
3149 * objc-lang.c: Likewise.
3150 * objfiles.c: Likewise.
3151 * obsd-nat.c: Likewise.
3152 * opencl-lang.c: Likewise.
3153 * osabi.c: Likewise.
3154 * parse.c: Likewise.
3155 * ppc-linux-nat.c: Likewise.
3156 * ppc-sysv-tdep.c: Likewise.
3157 * ppcfbsd-nat.c: Likewise.
3158 * ppcfbsd-tdep.c: Likewise.
3159 * ppcnbsd-nat.c: Likewise.
3160 * ppcnbsd-tdep.c: Likewise.
3161 * ppcobsd-nat.c: Likewise.
3162 * ppcobsd-tdep.c: Likewise.
3163 * printcmd.c: Likewise.
3164 * procfs.c: Likewise.
3165 * prologue-value.c: Likewise.
3166 * psymtab.c: Likewise.
3167 * python/py-lazy-string.c: Likewise.
3168 * python/py-value.c: Likewise.
3169 * regcache.c: Likewise.
3170 * reggroups.c: Likewise.
3171 * registry.c: Likewise.
3172 * remote-sim.c: Likewise.
3173 * remote.c: Likewise.
3174 * rs6000-aix-tdep.c: Likewise.
3175 * rs6000-tdep.c: Likewise.
3176 * s390-linux-tdep.c: Likewise.
3177 * score-tdep.c: Likewise.
3178 * ser-base.c: Likewise.
3179 * ser-mingw.c: Likewise.
3180 * sh-tdep.c: Likewise.
3181 * sh64-tdep.c: Likewise.
3182 * solib-darwin.c: Likewise.
3183 * solib-spu.c: Likewise.
3184 * solib-svr4.c: Likewise.
3185 * source.c: Likewise.
3186 * sparc-nat.c: Likewise.
3187 * sparc-sol2-tdep.c: Likewise.
3188 * sparc-tdep.c: Likewise.
3189 * sparc64-sol2-tdep.c: Likewise.
3190 * sparc64-tdep.c: Likewise.
3191 * sparc64fbsd-tdep.c: Likewise.
3192 * sparc64nbsd-tdep.c: Likewise.
3193 * sparc64obsd-tdep.c: Likewise.
3194 * sparcnbsd-tdep.c: Likewise.
3195 * sparcobsd-tdep.c: Likewise.
3196 * spu-multiarch.c: Likewise.
3197 * spu-tdep.c: Likewise.
3198 * stabsread.c: Likewise.
3199 * stack.c: Likewise.
3200 * symfile.c: Likewise.
3201 * symtab.c: Likewise.
3202 * target-descriptions.c: Likewise.
3203 * target-memory.c: Likewise.
3204 * target.c: Likewise.
3205 * tic6x-linux-tdep.c: Likewise.
3206 * tic6x-tdep.c: Likewise.
3207 * tilegx-linux-nat.c: Likewise.
3208 * tilegx-tdep.c: Likewise.
3209 * top.c: Likewise.
3210 * tramp-frame.c: Likewise.
3211 * tui/tui-out.c: Likewise.
3212 * tui/tui-winsource.c: Likewise.
3213 * ui-out.c: Likewise.
3214 * user-regs.c: Likewise.
3215 * utils.c: Likewise.
3216 * v850-tdep.c: Likewise.
3217 * valops.c: Likewise.
3218 * value.c: Likewise.
3219 * varobj.c: Likewise.
3220 * vax-nat.c: Likewise.
3221 * xml-syscall.c: Likewise.
3222 * xml-tdesc.c: Likewise.
3223 * xstormy16-tdep.c: Likewise.
3224 * xtensa-linux-nat.c: Likewise.
3225 * xtensa-tdep.c: Likewise.
3226
e76df0d0
GB
32272014-08-07 Gary Benson <gbenson@redhat.com>
3228
3229 * common/common-defs.h: Include common-utils.h.
3230 * defs.h: Do not include common-utils.h.
3231 * common/gdb_assert.h: Likewise.
3232 * darwin-nat.h: Likewise.
3233 * nat/linux-btrace.c: Likewise.
3234 * target/waitstatus.h: Likewise.
3235
4cb9c816
GB
32362014-08-07 Gary Benson <gbenson@redhat.com>
3237
3238 * common/common-defs.h: Include ptid.h.
3239 * defs.h: Do not include ptid.h.
3240 * inferior.h: Likewise.
3241 * infrun.h: Likewise.
3242 * nat/linux-btrace.h: Likewise.
3243 * nat/linux-osdata.h: Likewise.
3244 * target/waitstatus.h: Likewise.
3245
3995eeee
GB
32462014-08-07 Gary Benson <gbenson@redhat.com>
3247
3248 * common/common-defs.h: Include gdb_locale.h.
3249 * defs.h: Do not include gdb_locale.h.
3250
cb9f1a9b
GB
32512014-08-07 Gary Benson <gbenson@redhat.com>
3252
3253 * common/common-defs.h: Include gdb/signals.h.
3254 * defs.h: Do not include gdb/signals.h.
3255
a5fceff8
GB
32562014-08-07 Gary Benson <gbenson@redhat.com>
3257
3258 * common/common-defs.h: Include pathmax.h.
3259 * defs.h: Do not include pathmax.h.
3260
b9391142
GB
32612014-08-07 Gary Benson <gbenson@redhat.com>
3262
3263 * common/common-defs.h: Include libiberty.h.
3264 * defs.h: Do not include libiberty.h.
3265 * common/queue.h: Likewise.
3266 * cp-name-parser.y: Likewise.
3267 * mi/mi-cmd-catch.c: Likewise.
3268 * python/python.c: Likewise.
3269
0e443c87
GB
32702014-08-07 Gary Benson <gbenson@redhat.com>
3271
3272 * common/common-defs.h: Include ansidecl.h.
3273 * defs.h: Do not include ansidecl.h.
3274 * common/buffer.h: Likewise.
3275 * common/common-utils.h: Likewise.
3276
8ebb3f56
GB
32772014-08-07 Gary Benson <gbenson@redhat.com>
3278
3279 * common/common-defs.h: Include stddef.h.
3280 * defs.h: Do not include stddef.h.
3281 * common/common-utils.h: Likewise.
3282 * amd64fbsd-nat.c: Likewise.
3283 * bcache.c: Likewise.
3284 * charset.c: Likewise.
3285 * common/buffer.h: Likewise.
3286 * common/vec.h: Likewise.
3287 * i386bsd-nat.c: Likewise.
3288 * nat/linux-btrace.h: Likewise.
3289 * ppcfbsd-nat.c: Likewise.
3290 * ppcnbsd-tdep.h: Likewise.
3291 * ppcobsd-nat.c: Likewise.
3292 * ppcobsd-tdep.h: Likewise.
3293 * python/py-gdb-readline.c: Likewise.
3294
8980bdf6
GB
32952014-08-07 Gary Benson <gbenson@redhat.com>
3296
3297 * common/common-defs.h: Include stdarg.h.
3298 * defs.h: Do not include stdarg.h.
3299 * ada-lang.c: Likewise.
3300 * common/common-utils.h: Likewise.
3301 * guile/scm-string.c: Likewise.
3302 * guile/scm-utils.c: Likewise.
3303 * m32c-tdep.c: Likewise.
3304
d7096f71
GB
33052014-08-07 Gary Benson <gbenson@redhat.com>
3306
3307 * common/common-defs.h: Include stdlib.h.
3308 * defs.h: Do not include stdlib.h.
3309 * addrmap.c: Likewise.
3310 * bcache.c: Likewise.
3311 * common/buffer.c: Likewise.
3312 * common/common-utils.c: Likewise.
3313 * cp-name-parser.y: Likewise.
3314 * go32-nat.c: Likewise.
3315 * mn10300-linux-tdep.c: Likewise.
3316 * nat/linux-osdata.c: Likewise.
3317 * tui/tui.c: Likewise.
3318 * windows-nat.c: Likewise.
3319
d02f550d
GB
33202014-08-07 Gary Benson <gbenson@redhat.com>
3321
3322 * common/common-defs.h: Include stdio.h.
3323 * defs.h: Do not include stdio.h.
3324 * ada-lang.c: Likewise.
3325 * common/buffer.c: Likewise.
3326 * common/common-utils.c: Likewise.
3327 * cp-name-parser.y: Likewise.
3328 * gnu-nat.c: Likewise.
3329 * go32-nat.c: Likewise.
3330 * i386gnu-nat.c: Likewise.
3331 * proc-api.c: Likewise.
3332 * proc-events.c: Likewise.
3333 * proc-flags.c: Likewise.
3334 * proc-why.c: Likewise.
3335 * python/python-internal.h: Likewise.
3336 * target-memory.c: Likewise.
3337 * tui/tui-io.c: Likewise.
3338 * tui/tui.c: Likewise.
3339
b6d7a4bf
SM
33402014-08-06 Simon Marchi <simon.marchi@ericsson.com>
3341
3342 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
3343 (scan_dyntag_auxv): Same.
3344
af19829b
YQ
33452014-08-06 Yao Qi <yao@codesourcery.com>
3346
3347 * amd64-linux-nat.c: Remove duplicated include
3348 "x86-linux-nat.h".
3349 * i386-linux-nat.c: Likewise.
3350
8e07a239
YQ
33512014-08-06 Yao Qi <yao@codesourcery.com>
3352
3353 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
3354 operand" with "Special opcode" in comments.
3355
7bfe8241
GB
33562014-08-05 Gary Benson <gbenson@redhat.com>
3357
3358 * interps.c (initialize_interps): Remove prototype.
3359 (interpreter_initialized): Remove static global.
3360 (interp_add): Do not call initialize_interps.
3361 (initialize_interps): Remove function.
3362
d6c95504
GB
33632014-08-05 Gary Benson <gbenson@redhat.com>
3364
3365 * utils.c (vwarning): Remove spurious va_end.
3366
241fd515
AM
33672014-08-05 Alan Modra <amodra@gmail.com>
3368
3369 * charset.c (convert_between_encodings): Cast result of obstack_base.
3370 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
3371 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
3372 (read_unwind_info): Use size_t for some locals.
3373 * jit.c (finalize_symtab): Likewise.
3374 * utils.c (hashtab_obstack_allocate): Likewise.
3375 * symmisc.c (print_objfile_statistics): Update format strings.
3376
dc304a94
JK
33772014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3378
3379 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
3380 (Changes in GDB 7.8): ... here.
3381
3cecbbbe
TT
33822014-08-04 Tom Tromey <tromey@redhat.com>
3383
3384 * target.c (set_targetdebug): New function.
3385 (initialize_targets): Pass set_targetdebug when creating "set
3386 debug target".
3387
6908c509
JB
33882014-08-01 Joel Brobecker <brobecker@adacore.com>
3389
3390 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
3391 if detecting a variable-sized field that is not the last field.
3392 Fix struct type length computation.
3393
53e8f97d
JB
33942014-08-01 Joel Brobecker <brobecker@adacore.com>
3395
3396 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3397 Add debug trace.
3398
e068c55d
JB
33992014-08-01 Joel Brobecker <brobecker@adacore.com>
3400
3401 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3402 Remove "+ 8" offset in computation of CHAIN_VMA.
3403
4d4ca2a1
DE
34042014-07-31 Doug Evans <dje@google.com>
3405
3406 * inflow.c (child_terminal_inferior): Add comment.
3407 (child_terminal_ours_for_output): Add comment.
3408 (child_terminal_ours): Add comment.
3409 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
3410 (linux_nat_terminal_ours): Add comment.
3411
462f517e
GB
34122014-07-31 Gary Benson <gbenson@redhat.com>
3413
3414 * common/btrace-common.h: Do not include defs.h or server.h.
3415 * nat/mips-linux-watch.h: Likewise.
3416 * gdb-dlfcn.h: Do not include defs.h.
3417 * tracefile.h: Likewise.
3418
74228e77
RM
34192014-07-30 Roland McGrath <mcgrathr@google.com>
3420
3421 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
3422
014f9477
TT
34232014-07-30 Tom Tromey <tromey@redhat.com>
3424
3425 * bsd-kvm.c (bsd_kvm_open): Constify.
3426 * corelow.c (core_open): Constify.
3427 * ctf.c (ctf_open): Constify.
3428 * dbug-rom.c (dbug_open): Constify.
3429 * exec.c (exec_open): Constify.
3430 * m32r-rom.c (m32r_open, mon2000_open): Constify.
3431 * microblaze-rom.c (picobug_open): Constify.
3432 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
3433 Constify.
3434 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
3435 * record-btrace.c (record_btrace_open): Constify.
3436 * record-full.c (record_full_core_open_1, record_full_open_1)
3437 (record_full_open): Constify.
3438 * remote-m32r-sdi.c (m32r_open): Constify.
3439 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
3440 (rockhopper_open, lsi_open): Constify.
3441 * remote-sim.c (gdbsim_open): Constify.
3442 * remote.c (remote_open, extended_remote_open, remote_open_1):
3443 Constify.
3444 * target.h (struct target_ops) <to_open>: Make "arg" const.
3445 * tracefile-tfile.c (tfile_open): Constify.
3446
e799154c
TT
34472014-07-30 Tom Tromey <tromey@redhat.com>
3448
3449 * breakpoint.c (map_breakpoint_numbers): Update.
3450 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
3451 (get_number_const): New function.
3452 (get_number): Rewrite using get_number_const.
3453 (init_number_or_range): Make "string" const.
3454 (number_is_in_list): Make "list" const.
3455 * cli/cli-utils.h (get_number_const): Declare.
3456 (struct get_number_or_range_state) <string, end_ptr>: Now const.
3457 (init_number_or_range, number_is_in_list): Update.
3458 * printcmd.c (map_display_numbers): Update.
3459 * value.c (value_from_history_ref): Constify.
3460 * value.h (value_from_history_ref): Update.
3461
5f08566b
TT
34622014-07-30 Tom Tromey <tromey@redhat.com>
3463
3464 * corefile.c (hook_type, call_extra_exec_file_hooks)
3465 (specify_exec_file_hook): Constify.
3466 * exec.c (exec_file_attach): Make "filename" const.
3467 * gdbcore.h (deprecated_exec_file_display_hook)
3468 (specify_exec_file_hook, exec_file_attach): Constify.
3469 * main.c (captured_main): Use catch_command_errors_const.
3470
8981c758
TT
34712014-07-30 Tom Tromey <tromey@redhat.com>
3472
3473 * target.c (open_target): New function.
3474 (add_target_with_completer, add_deprecated_target_alias): Use
3475 set_cmd_sfunc, set_cmd_context.
3476 (debug_to_open): Remove.
3477 (setup_target_debug): Update.
3478
a1c7835a
YQ
34792014-07-30 Yao Qi <yao@codesourcery.com>
3480
3481 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
3482 comments.
3483 * parse.c (exp_iterate): Update comments.
3484
976411d6
GB
34852014-07-30 Gary Benson <gbenson@redhat.com>
3486
3487 * common/common-defs.h: New file.
3488 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
3489 * defs.h: Include common-defs.h.
3490 Do not include config.h or build-gnulib/config.h.
3491
5d4848a4
GB
34922014-07-30 Gary Benson <gbenson@redhat.com>
3493
3494 * common/common-utils.h: Do not include config.h.
3495 * nat/linux-btrace.h: Likewise.
3496
d41f6d8e
GB
34972014-07-30 Gary Benson <gbenson@redhat.com>
3498
3499 * btrace.c: Include defs.h.
3500 * common/ptid.c: Include defs.h or server.h as appropriate.
3501 * nat/mips-linux-watch.c: Likewise.
3502
84202f9c
TT
35032014-07-29 Tom Tromey <tromey@redhat.com>
3504
3505 * target.c (target_is_pushed): Simplify.
3506
2530441c
JB
35072014-07-29 Joel Brobecker <brobecker@adacore.com>
3508
3509 GDB 7.8 released.
3510
7e09a223
YQ
35112014-07-29 Yao Qi <yao@codesourcery.com>
3512
3513 PR gdb/17206
3514 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
3515
7ebdbe92
DE
35162014-07-28 Doug Evans <xdje42@gmail.com>
3517
3518 PR guile/17203
3519 * guile/scm-param.c (pascm_parameter_defined_p): New function.
3520 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
3521 parameters.
3522
f347ffc9
WN
35232014-07-28 Will Newton <will.newton@linaro.org>
3524
3525 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
3526 (THUMB2_SET_R7_SIGRETURN2): Likewise.
3527 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
3528 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
3529 (THUMB2_EABI_SYSCALL): Likewise.
3530 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
3531 struct tramp_frame.
3532 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
3533 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
3534
37c5f1f7
DE
35352014-07-27 Doug Evans <xdje42@gmail.com>
3536
3537 * guile/scm-param.c (pascm_print_param_smob): Fix output.
3538
0c3abbc7
DE
35392014-07-27 Doug Evans <xdje42@gmail.com>
3540
3541 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
3542
e76c5d17
DE
35432014-07-26 Ludovic Courtès <ludo@gnu.org>
3544 Doug Evans <xdje42@gmail.com>
3545
3546 PR guile/17146
3547 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
3548 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
3549 * configure.ac: Try to use guild to compile an scm file, if it fails
3550 then disable guile support.
3551 * configure: Regenerate.
3552 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
3553 GUILE_FILE_LIST.
3554 (GUILE_COMPILED_FILES): New variable.
3555 (GUILE_FILES) Update.
3556 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
3557 (stamp-guile): Compile scm files.
3558 * guile/guile.c (boot_guile_support): New function.
3559 (standard_throw_args_p): New function.
3560 (print_standard_throw_error, print_throw_error): New functions.
3561 (handle_boot_error): New function.
3562 (initialize_scheme_side): Rewrite to call boot_guile_support.
3563 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
3564 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
3565
186fcde0
DE
35662014-07-26 Ludovic Courtès <ludo@gnu.org>
3567 Doug Evans <xdje42@gmail.com>
3568
3569 PR guile/17146
3570 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
3571 * guile/lib/gdb/support.scm: New file.
3572 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
3573 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
3574 All uses updated.
3575 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
3576 All uses updated.
3577 (%assert-type): Ditto, and renamed to assert-type.
3578 (%exception-print-style): Delete.
3579
4df42755
DE
35802014-07-26 Doug Evans <xdje42@gmail.com>
3581
3582 PR build/17105
3583 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
3584 * configure: Regenerate.
3585 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
3586 PYTHON_FILES.
3587 (PYTHON_FILES): New variable.
3588 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
3589 (GUILE_FILES): New variable.
3590 (stamp-python, install-python, uninstall-python): Handle empty
3591 file list.
3592 (stamp-guile, install-guile, uninstall-guile): Ditto.
3593
ee7333ae
DE
35942014-07-26 Doug Evans <xdje42@gmail.com>
3595
3596 PR guile/17177
3597 * guile/lib/gdb.scm (pretty-printers): Export.
3598 (set-pretty-printers!): Export.
3599 * guile/lib/gdb/printing.scm (gdb module): Update.
3600 (prepend-pretty-printer!, append-pretty-printer!): Update.
3601 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
3602 (pretty_printer_list_var): Delete.
3603 (pretty_printer_list): New static global.
3604 (gdbscm_pretty_printers): New function.
3605 (gdbscm_set_pretty_printers_x): New function.
3606 (ppscm_find_pretty_printer_from_gdb): Update.
3607 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
3608 (gdbscm_initialize_pretty_printers): Update.
3609
74edf516
DE
36102014-07-26 Doug Evans <xdje42@gmail.com>
3611
3612 PR 17185
3613 * configure.ac: Add check for header gc/gc.h.
3614 Add check for function setenv.
3615 * configure: Regenerate.
3616 * config.in: Regenerate.
3617 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
3618
d54398a7
MR
36192014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
3620
3621 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
3622 variation in gdbarch matching.
3623
ab16fce8
TT
36242014-07-25 Tom Tromey <tromey@redhat.com>
3625
3626 * exec.c (using_exec_ops): Remove.
3627 (exec_close_1): Update. Remove extraneous block, reindent.
3628 (add_target_sections): Use target_is_pushed.
3629
88056fbb
PA
36302014-07-25 Pedro Alves <palves@redhat.com>
3631
3632 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
3633 * monitor.c (monitor_create_inferior): Likewise.
3634 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
3635 * remote-sim.c (gdbsim_create_inferior): Likewise.
3636 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
3637 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
3638 * windows-nat.c (do_initial_windows_stuff): Likewise.
3639
70509625
PA
36402014-07-25 Pedro Alves <palves@redhat.com>
3641
3642 * NEWS: Mention signal passing and "signal" command changes.
3643 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
3644 comment.
3645 * breakpoint.c (until_break_command): Adjust clear_proceed_status
3646 call.
3647 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
3648 * infcmd.c (proceed_thread_callback, continue_1, step_once)
3649 (jump_command): Adjust clear_proceed_status call.
3650 (signal_command): Warn if other thread that are resumed have
3651 signals that will be delivered. Adjust clear_proceed_status call.
3652 (until_next_command, finish_command)
3653 (proceed_after_attach_callback, attach_command_post_wait)
3654 (attach_command): Adjust clear_proceed_status call.
3655 * infrun.c (proceed_after_vfork_done): Likewise.
3656 (proceed_after_attach_callback): Adjust comment.
3657 (clear_proceed_status_thread): Clear stop_signal if not in pass
3658 state.
3659 (clear_proceed_status_callback): Delete.
3660 (clear_proceed_status): New 'step' parameter. Only clear the
3661 proceed status of threads the command being prepared is about to
3662 resume.
3663 (proceed): If passed in an explicit signal, override stop_signal
3664 with it. Don't pass the last stop signal to the thread we're
3665 resuming.
3666 (init_wait_for_inferior): Adjust clear_proceed_status call.
3667 (switch_back_to_stepped_thread): Clear the signal if it should not
3668 be passed.
3669 * infrun.h (clear_proceed_status): New 'step' parameter.
3670 (user_visible_resume_ptid): Add comment.
3671 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
3672 signal is in pass state.
3673 * remote.c (append_pending_thread_resumptions): Likewise.
3674 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
3675
d8be2939
TT
36762014-07-25 Tom Tromey <tromey@redhat.com>
3677
3678 * target.h (target_stopped_data_address)
3679 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
3680 parentheses.
3681
7d0d9d2b
PL
36822014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
3683
3684 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
3685 comments.
3686 (avr_pointer_to_address): Likewise.
3687
e9e7f724
TT
36882014-07-24 Tom Tromey <tromey@redhat.com>
3689
3690 * monitor.c (compile_pattern): Update.
3691 * target.h (struct target_ops) <to_shortname, to_longname,
3692 to_doc>: Now const.
3693
1947513d
TT
36942014-07-24 Tom Tromey <tromey@redhat.com>
3695
3696 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
3697 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
3698 (add_info_alias, add_com): Make "doc" const.
3699 (print_doc_line): Make "str" const.
3700 (delete_cmd): Update.
3701 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
3702 (print_doc_line): Update.
3703 * cli/cli-script.c (document_command): Update.
3704 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
3705 (add_com, add_info, add_info_alias): Update.
3706 * guile/scm-cmd.c (cmdscm_destroyer): Update.
3707 * python/py-cmd.c (cmdpy_destroyer): Update.
3708
64e61d29
TT
37092014-07-24 Tom Tromey <tromey@redhat.com>
3710
3711 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
3712 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
3713 (help_cmd_list): Constify.
3714 (lookup_cmd): Update.
3715 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
3716 const.
3717 (help_cmd_list, apropos_cmd): Update.
3718 * cli/cli-script.c (show_user): Update.
3719 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
3720 * cli/cli-setshow.h (cmd_show_list): Update.
3721 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
3722 (cmd_show_list): Update.
3723 * guile/scm-cmd.c (cmdscm_destroyer): Update.
3724 * python/py-cmd.c (cmdpy_destroyer): Update.
3725
429e55ea
TT
37262014-07-24 Tom Tromey <tromey@redhat.com>
3727
3728 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
3729 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
3730 const.
3731 * command.h (deprecate_cmd): Update.
3732 * maint.c (maintenance_do_deprecate): Add casts.
3733
64669f3b
TT
37342014-07-24 Tom Tromey <tromey@redhat.com>
3735
3736 * cli/cli-decode.c (help_cmd): Make parameter "const".
3737 * cli/cli-decode.h (help_cmd): Update.
3738
d3d3328b
TT
37392014-07-24 Tom Tromey <tromey@redhat.com>
3740
3741 * stack.c (up_silently_base, down_silently_base): Make argument
3742 const.
3743
414842dc
TT
37442014-07-24 Tom Tromey <tromey@redhat.com>
3745
3746 * solib.c (solib_add): Make "pattern" const.
3747 * solib.h (solib_add): Update.
3748
baa336ce
TT
37492014-07-24 Tom Tromey <tromey@redhat.com>
3750
3751 * remote.c (remote_serial_open, print_packet, putpkt)
3752 (putpkt_binary): Constify.
3753 * remote.h (putpkt): Update.
3754
5a19e2d0
TT
37552014-07-24 Tom Tromey <tromey@redhat.com>
3756
3757 * monitor.c (monitor_open): Make "args" const.
3758 * monitor.h (monitor_open): Update.
3759
fc4baa5e
TT
37602014-07-24 Tom Tromey <tromey@redhat.com>
3761
3762 * maint.c (match_bfd_flags): Make "string" const.
3763 (print_bfd_section_info): Remove casts.
3764 (print_objfile_section_info): Make "string" const.
3765
0d5f0dbe
TT
37662014-07-24 Tom Tromey <tromey@redhat.com>
3767
3768 * inf-child.c (inf_child_open_target): Make "arg" const.
3769 * inf-child.h (inf_child_open_target): Update.
3770
41c77899
TT
37712014-07-24 Tom Tromey <tromey@redhat.com>
3772
3773 * environ.c (unset_in_environ): Make "var" const.
3774 * environ.h (unset_in_environ): Update.
3775
93db0d79
TT
37762014-07-24 Tom Tromey <tromey@redhat.com>
3777
3778 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
3779 Make "cmd" const.
3780 (scan_filename_with_cleanup): Likewise.
3781 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
3782 Make arguments const.
3783 (restore_command): Update.
3784
36d6eb95
PA
37852014-07-24 Pedro Alves <palves@redhat.com>
3786
3787 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
3788
8009206a
TT
37892014-07-24 Tom Tromey <tromey@redhat.com>
3790 Gary Benson <gbenson@redhat.com>
3791
3792 * nat/linux-ptrace.c (additional_flags): New global.
3793 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
3794 additional_flags; don't check GDBSERVER.
3795 (linux_ptrace_set_additional_flags): New function.
3796 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
3797 Declare.
3798 * linux-nat.c (_initialize_linux_nat): Call
3799 linux_ptrace_set_additional_flags.
3800
a7068b60
TT
38012014-07-24 Tom Tromey <tromey@redhat.com>
3802
3803 * make-target-delegates (munge_type, write_debugmethod): New
3804 functions.
3805 (debug_names): New global.
3806 ($TARGET_DEBUG_PRINTER): New global.
3807 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
3808 name.
3809 Write debug methods. Generate init_debug_target.
3810 * target-debug.h: New file.
3811 * target-delegates.c: Rebuild.
3812 * target.c: Include target-debug.h.
3813 (debug_target): Hoist definition.
3814 (target_kill, target_get_section_table, target_memory_map)
3815 (target_flash_erase, target_flash_done, target_detach)
3816 (target_disconnect, target_wait, target_resume)
3817 (target_pass_signals, target_program_signals, target_follow_fork)
3818 (target_mourn_inferior, target_search_memory)
3819 (target_thread_address_space, target_close)
3820 (target_find_new_threads, target_core_of_thread)
3821 (target_verify_memory, target_insert_mask_watchpoint)
3822 (target_remove_mask_watchpoint): Remove targetdebug code.
3823 (debug_to_post_attach, debug_to_prepare_to_store)
3824 (debug_to_files_info, debug_to_insert_breakpoint)
3825 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
3826 (debug_to_region_ok_for_hw_watchpoint)
3827 (debug_to_can_accel_watchpoint_condition)
3828 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
3829 (debug_to_watchpoint_addr_within_range)
3830 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
3831 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
3832 (debug_to_terminal_init, debug_to_terminal_inferior)
3833 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
3834 (debug_to_terminal_save_ours, debug_to_terminal_info)
3835 (debug_to_load, debug_to_post_startup_inferior)
3836 (debug_to_insert_fork_catchpoint)
3837 (debug_to_remove_fork_catchpoint)
3838 (debug_to_insert_vfork_catchpoint)
3839 (debug_to_remove_vfork_catchpoint)
3840 (debug_to_insert_exec_catchpoint)
3841 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
3842 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
3843 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
3844 (setup_target_debug): Call init_debug_target.
3845 * target.h (TARGET_DEBUG_PRINTER): New macro.
3846 (struct target_ops) <to_resume, to_wait, to_pass_signals,
3847 to_program_signals>: Use TARGET_DEBUG_PRINTER.
3848
2c51604d
GB
38492014-07-24 Gary Benson <gbenson@redhat.com>
3850
3851 * exceptions.h (throw_vfatal): Renamed to...
3852 (throw_vquit): New declaration.
3853 (throw_quit): Likewise.
3854 * exceptions.c (throw_vfatal): Renamed to...
3855 (throw_vquit): New function.
3856 (throw_quit): Likewise.
3857 (throw_error): Call throw_verror rather than throw_it.
3858 * utils.h (vfatal): Removed.
3859 (fatal): Likewise.
3860 * utils.c (vfatal): Removed.
3861 (fatal): Likewise.
3862 (internal_verror): Replaced call to fatal with call to throw_quit.
3863 (quit): Replaced calls to fatal with calls to throw_quit.
3864
34211963
ME
38652014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
3866
3867 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
3868 target_read_code.
3869
a52b4d3e
ME
38702014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
3871
3872 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
3873 less than zero in conditional expression.
3874
a8bdc56b
TT
38752014-07-23 Tom Tromey <tromey@redhat.com>
3876
3877 * make-target-delegates ($ARGS_PART): Match trailing close paren.
3878 ($INTRO_PART): Don't match whitespace.
3879 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
3880 argument matching.
3881 ($METHOD): Add $METHOD_TRAILER.
3882 (trim): Rewrite.
3883 (scan_target_h): New sub.
3884 Change main loop not to collect state.
3885 * target-delegates.c: Rebuild.
3886
91b52240
GB
38872014-07-23 Gary Benson <gbenson@redhat.com>
3888
3889 * cp-support.c (gdb_demangle): Fix build on systems without
3890 sigaltstack.
3891
45326f6f
JK
38922014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3893
3894 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
3895 for reference entry value target data value.
3896
e214cf6c
JK
38972014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3898
3899 * stack.c (read_frame_arg): Verify value_optimized_out before calling
3900 value_available_contents_eq.
3901
bddbbedd
PA
39022014-07-22 Pedro Alves <palves@redhat.com>
3903
3904 * value.c (allocate_optimized_out_value): Don't mark value as
3905 non-lazy.
3906
45c71484
JW
39072014-07-22 Jiong Wang <jiong.wang@arm.com>
3908
3909 * MAINTAINERS (Write After Approval): Update my email address.
3910
9597b22a
DE
39112014-07-20 Doug Evans <dje@google.com>
3912
3913 PR server/17147
3914 * remote.c (putpkt_binary): Add text to error message.
3915
91101fe5
YQ
39162014-07-20 Yao Qi <yao@codesourcery.com>
3917
3918 * eval.c: Remove "Chill" from comments.
3919 * gdbtypes.h: Likewise.
3920 * symtab.h: Likewise.
3921
c9402c95
YQ
39222014-07-20 Yao Qi <yao@codesourcery.com>
3923
3924 * std-operator.def: Update comments to TERNOP_SLICE.
3925
ae8fddda
YQ
39262014-07-20 Yao Qi <yao@codesourcery.com>
3927
3928 * std-operator.def: Remove BINOP_RANGE.
3929 * breakpoint.c (watchpoint_exp_is_const): Update.
3930 * expprint.c (dump_subexp_body_standard): Likewise.
3931 * eval.c (init_array_element): Remove dead code.
3932 (evaluate_subexp_standard): Likewise.
3933
9c816640
YQ
39342014-07-20 Yao Qi <yao@codesourcery.com>
3935
3936 * std-operator.def: Remove BINOP_IN.
3937 * breakpoint.c (watchpoint_exp_is_const): Update.
3938 * eval.c (evaluate_subexp_standard): Likewise.
3939 * expprint.c (dump_subexp_body_standard): Likewise.
3940
164224e9
ME
39412014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
3942
3943 * microblaze-tdep.c (microblaze_register_names): Add
3944 the rshr and rslr register names.
3945 (microblaze_gdbarch_init): Use of tdesc_has_registers.
3946 Use of tdesc_find_feature. Use of tdesc_data_alloc.
3947 Use of tdesc_numbered_register. Use of
3948 microblaze_register_g_packet_guesses. Use of
3949 tdesc_use_registers. Use of set_gdbarch_register_type.
3950 (microblaze_register_g_packet_guesses): New.
3951 * microblaze-tdep.h (microblaze_reg_num): Add
3952 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
3953 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
3954 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
3955 * features/microblaze-core.xml: New file.
3956 * features/microblaze-stack-protect.xml: New file.
3957 * features/microblaze-with-stack-protect.c: New file.
3958 * features/microblaze-with-stack-protect.xml: New file.
3959 * features/microblaze.xml: New file.
3960 * features/microblaze.c: New file.
3961 * features/Makefile (microblaze-with-stack-protect): Add
3962 microblaze-with-stack-protect microblaze and microblaze-expedite.
3963 * regformats/microblaze-with-stack-protect.dat: New file.
3964 * regformats/microblaze.dat: New file.
3965 * doc/gdb.texinfo (MicroBlaze Features): Added.
3966
e8b2341c
TT
39672014-07-18 Tom Tromey <tromey@redhat.com>
3968
3969 * exec.c (exec_ops): Now static.
3970 * exec.h (exec_ops): Don't declare.
3971
44e89118
TT
39722014-07-18 Tom Tromey <tromey@redhat.com>
3973
3974 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
3975 to find_target_beneath.
3976 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
3977 find_target_beneath.
3978 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
3979
b0ed115f
TT
39802014-07-18 Tom Tromey <tromey@redhat.com>
3981
3982 PR gdb/17130:
3983 * utils.c (quit): Use target_supports_terminal_ours.
3984 * target.h (target_supports_terminal_ours): Declare.
3985 * target.c (target_supports_delete_record): Don't check
3986 to_delete_record against NULL.
3987 (target_supports_terminal_ours): New function.
3988
e75fdfca
TT
39892014-07-18 Tom Tromey <tromey@redhat.com>
3990
3991 PR gdb/17130:
3992 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
3993 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
3994 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
3995 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
3996 * windows-nat.c (windows_xfer_partial): Always delegate.
3997 * record-btrace.c (record_btrace_xfer_partial): Simplify
3998 delegation.
3999 (record_btrace_fetch_registers, record_btrace_store_registers)
4000 (record_btrace_prepare_to_store, record_btrace_resume)
4001 (record_btrace_wait, record_btrace_find_new_threads)
4002 (record_btrace_thread_alive): Likewise.
4003 * procfs.c (procfs_xfer_partial): Always delegate.
4004 * corelow.c (core_xfer_partial): Always delegate.
4005 * sol-thread.c (sol_find_new_threads): Simplify delegation.
4006
83814951
TT
40072014-07-18 Tom Tromey <tromey@redhat.com>
4008
4009 * exec.c (exec_make_note_section): Move earlier.
4010
b8b8facf
DE
40112014-07-17 Doug Evans <dje@google.com>
4012
74b49205 4013 PR gdb/17170
b8b8facf
DE
4014 * maint.c (count_symtabs_and_blocks): Handle NULL
4015 current_program_space.
4016 (report_command_stats): Check global enabled flag in addition to
4017 recorded enabled flag.
4018 (make_command_stats_cleanup): Handle msg_type == 0, startup.
4019
69ff6be5
PA
40202014-07-16 Pedro Alves <palves@redhat.com>
4021
4022 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
4023
252db1b5
TT
40242014-07-16 Tom Tromey <tromey@redhat.com>
4025
4026 * target.h (struct target_ops) <to_delete_record>: Reformat
4027 comment.
4028
a432721e
TT
40292014-07-16 Tom Tromey <tromey@redhat.com>
4030
4031 * target-delegates.c: Rebuild.
4032
487d9753
PL
40332014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
4034
4035 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
4036 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
4037 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
4038 (avr_pointer_to_address): Likewise.
4039 (avr_address_class_type_flags): New function.
4040 (avr_address_class_type_flags_to_name): Likewise.
4041 (avr_address_class_name_to_type_flags): Likewise.
4042 (avr_gdbarch_init): Set address_class_type_flags,
4043 address_class_type_flags_to_name and
4044 address_class_name_to_type_flags.
4045
57745c90
PA
40462014-07-15 Pedro Alves <palves@redhat.com>
4047
4048 * linux-nat.c (kill_callback): Save errno and work with saved
4049 copy.
4050
2d40be18
SM
40512014-07-15 Simon Marchi <simon.marchi@ericsson.com>
4052
4053 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
4054
572f6555
EBM
40552014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4056
4057 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
4058 breakpoint support correctly.
4059
cc1c52ad
PA
40602014-07-14 Pedro Alves <palves@redhat.com>
4061
4062 * utils.c (prompt_for_continue): Call target_terminal_ours.
4063
1e973570
PA
40642014-07-14 Pedro Alves <palves@redhat.com>
4065
4066 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
4067 catch_errors. Don't re-enable stdin or notify observers where,
4068 and rethrow error.
4069 (fetch_inferior_event_wrapper): Delete.
4070
93d6eb10
PA
40712014-07-14 Pedro Alves <palves@redhat.com>
4072
4073 PR gdb/17072
4074 * top.c: Include "inf-loop.h".
4075 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
4076 field.
4077 (gdb_readline_wrapper_cleanup): Make the target async again, if it
4078 was async before.
4079 (gdb_readline_wrapper): Store whether the target is async, and
4080 make it sync.
4081
0017922d
PA
40822014-07-14 Pedro Alves <palves@redhat.com>
4083
4084 PR gdb/17072
4085 * top.c (gdb_readline_wrapper_line): Tweak comment.
4086 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
4087 the input handler callback.
4088
94696ad3
PA
40892014-07-14 Pedro Alves <palves@redhat.com>
4090
4091 PR gdb/17072
4092 * main.c: Include event-top.h.
4093 (handle_command_errors): New function.
4094 (catch_command_errors, catch_command_errors_const): Use it.
4095
9d1e69a2
PA
40962014-07-14 Pedro Alves <palves@redhat.com>
4097
4098 * exceptions.c (catch_command_errors, catch_command_errors_const):
4099 Moved to main.c.
4100 * exceptions.h (catch_command_errors_ftype)
4101 (catch_command_errors_const_ftype): Moved to main.c.
4102 (catch_command_errors, catch_command_errors_const): Delete
4103 declarations.
4104 * main.c (catch_command_errors_ftype)
4105 (catch_command_errors_const_ftype): Moved here from exceptions.h.
4106 (catch_command_errors, catch_command_errors_const)): Moved here
4107 from exceptions.c and make static.
4108
feefc97b
PA
41092014-07-14 Pedro Alves <palves@redhat.com>
4110
4111 * exceptions.c (print_any_exception): Delete.
4112 (catch_exceptions_with_msg): Use exception_print instead of
4113 print_any_exception.
4114 (catch_errors): Use exception_fprintf instead of
4115 print_any_exception.
4116 (catch_command_errors, catch_command_errors_const): Use
4117 exception_print instead of print_any_exception.
4118
c933f875
PA
41192014-07-14 Pedro Alves <palves@redhat.com>
4120
4121 * infcall.c (run_inferior_call): Set 'sync_execution' while
4122 running the inferior call.
4123
feb6f816
PA
41242014-07-14 Pedro Alves <palves@redhat.com>
4125
4126 * value.c (value_contents_equal): Delete function.
4127 * value.h (value_contents_equal): Delete declaration.
4128
d98b7a16
TT
41292014-07-14 Tom Tromey <tromey@redhat.com>
4130
4131 PR exp/17106:
4132 * gdbtypes.c (is_dynamic_type_internal): New function, from
4133 is_dynamic_type.
4134 (is_dynamic_type): Rewrite.
4135 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
4136 (resolve_dynamic_struct): Likewise.
4137 (resolve_dynamic_type_internal): New function, from
4138 resolve_dynamic_type.
4139 (resolve_dynamic_type): Rewrite.
4140
548740d6
TT
41412014-07-14 Tom Tromey <tromey@redhat.com>
4142
4143 * target.c (target_require_runnable): Also check record_stratum.
4144 Update comment.
4145
808f7ab1
YQ
41462014-07-11 Yao Qi <yao@codesourcery.com>
4147
4148 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
4149 thumb_instruction_restores_sp return true.
4150
540314bd
YQ
41512014-07-11 Yao Qi <yao@codesourcery.com>
4152
4153 * arm-tdep.c (thumb_instruction_restores_sp): New function.
4154 (thumb_in_function_epilogue_p): Call
4155 thumb_instruction_restores_sp.
4156
1db01f22
YQ
41572014-07-11 Yao Qi <yao@codesourcery.com>
4158
4159 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
4160 'add sp, #imm'.
4161 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
4162
3116063b
GB
41632014-07-11 Gary Benson <gbenson@redhat.com>
4164
4165 * amd64-linux-nat.c (gdbcore.h): Remove include.
4166 (regset.h): Likewise.
4167 (nat/linux-btrace.h): Likewise.
4168 (btrace.h): Likewise.
4169 (gdb_assert.h): Likewise.
4170 (string.h): Likewise.
4171 (sys/uio.h): Likewise.
4172 (sys/debugreg.h): Likewise.
4173 (sys/syscall.h): Likewise.
4174 (sys/procfs.h): Likewise.
4175 (sys/user.h): Likewise.
4176 (asm/ptrace.h): Likewise.
4177 (i386-nat.h): Likewise.
4178 * i386-linux-nat.c (i386-nat.h): Likewise.
4179 (regset.h): Likewise.
4180 (target.h): Likewise.
4181 (linux-nat.h): Likewise.
4182 (nat/linux-btrace.h): Likewise.
4183 (btrace.h): Likewise.
4184 (gdb_assert.h): Likewise.
4185 (string.h): Likewise.
4186 (sys/uio.h): Likewise.
4187 (sys/user.h): Likewise.
4188 (sys/procfs.h): Likewise.
4189 (sys/reg.h): Likewise.
4190 (sys/debugreg.h): Likewise.
4191 (ORIG_EAX): Remove definition.
4192
040baaf6
GB
41932014-07-11 Gary Benson <gbenson@redhat.com>
4194
4195 * i386-linux-nat.h: New file.
4196 * x86-linux-nat.h: Likewise.
4197 * x86-linux-nat.c: Likewise.
4198 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
4199 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
4200 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4201 * amd64-linux-nat.c (x86-linux-nat.h): New include.
4202 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
4203 (PTRACE_SETREGSET): Likewise.
4204 (arch_lwp_info): Now in x86-linux-nat.c.
4205 (have_ptrace_getregset): Now in x86-linux-nat.h.
4206 (x86_linux_dr_get): Now in x86-linux-nat.c.
4207 (x86_linux_dr_set): Likewise.
4208 (x86_linux_dr_get_addr): Likewise.
4209 (x86_linux_dr_get_control): Likewise.
4210 (x86_linux_dr_get_status): Likewise.
4211 (update_debug_registers_callback): Likewise.
4212 (x86_linux_dr_set_control): Likewise.
4213 (x86_linux_dr_set_addr): Likewise.
4214 (x86_linux_prepare_to_resume): Likewise.
4215 (x86_linux_new_thread): Likewise.
4216 (x86_linux_new_fork): Likewise.
4217 (x86_linux_get_thread_area): Likewise.
4218 (super_post_startup_inferior): Likewise.
4219 (x86_linux_child_post_startup_inferior): Likewise.
4220 (AMD64_LINUX_USER64_CS): Likewise.
4221 (AMD64_LINUX_X32_DS): Likewise.
4222 (x86_linux_read_description): Likewise.
4223 (x86_linux_enable_btrace): Likewise.
4224 (x86_linux_disable_btrace): Likewise.
4225 (x86_linux_teardown_btrace): Likewise.
4226 (x86_linux_read_btrace): Likewise.
4227 (x86_linux_create_target): Likewise.
4228 (x86_linux_add_target): Likewise.
4229 * i386-linux-nat.c (x86-linux-nat.h): New include.
4230 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
4231 (PTRACE_SETREGSET): Likewise.
4232 (arch_lwp_info): Now in x86-linux-nat.c.
4233 (have_ptrace_getregset): Now in x86-linux-nat.h.
4234 (x86_linux_dr_get): Now in x86-linux-nat.c.
4235 (x86_linux_dr_set): Likewise.
4236 (x86_linux_dr_get_addr): Likewise.
4237 (x86_linux_dr_get_control): Likewise.
4238 (x86_linux_dr_get_status): Likewise.
4239 (update_debug_registers_callback): Likewise.
4240 (x86_linux_dr_set_control): Likewise.
4241 (x86_linux_dr_set_addr): Likewise.
4242 (x86_linux_prepare_to_resume): Likewise.
4243 (x86_linux_new_thread): Likewise.
4244 (x86_linux_new_fork): Likewise.
4245 (x86_linux_get_thread_area): Likewise.
4246 (super_post_startup_inferior): Likewise.
4247 (x86_linux_child_post_startup_inferior): Likewise.
4248 (AMD64_LINUX_USER64_CS): Likewise.
4249 (AMD64_LINUX_X32_DS): Likewise.
4250 (x86_linux_read_description): Likewise.
4251 (x86_linux_enable_btrace): Likewise.
4252 (x86_linux_disable_btrace): Likewise.
4253 (x86_linux_teardown_btrace): Likewise.
4254 (x86_linux_read_btrace): Likewise.
4255 (x86_linux_create_target): Likewise.
4256 (x86_linux_add_target): Likewise.
4257
1aa7e42c
GB
42582014-07-11 Gary Benson <gbenson@redhat.com>
4259
4260 * amd64-linux-nat.c: Comment and whitespace changes.
4261 * i386-linux-nat.c: Comment and whitespace changes.
4262
c1e246a0
GB
42632014-07-11 Gary Benson <gbenson@redhat.com>
4264
4265 * amd64-linux-nat.c (x86_linux_create_target): New function.
4266 (x86_linux_add_target): Likewise.
4267 (_initialize_amd64_linux_nat): Delegate to the above new functions.
4268 * i386-linux-nat.c (x86_linux_create_target): New function.
4269 (x86_linux_add_target): Likewise.
4270 (_initialize_i386_linux_nat): Delegate to the above new functions.
4271
8c420b8d
GB
42722014-07-11 Gary Benson <gbenson@redhat.com>
4273
4274 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
4275 (ps_get_thread_area): Delegate to the above in 32-bit mode.
4276 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
4277 (ps_get_thread_area): Delegate to the above.
4278
cb1da100
GB
42792014-07-11 Gary Benson <gbenson@redhat.com>
4280
4281 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
4282 x86_linux_read_description. All uses updated. amd64-specific
4283 code conditionalized. Conditionalized i386-specific code added.
4284 Redundant cast removed.
4285 * i386-linux-nat.c (i386_linux_read_description): Renamed to
4286 x86_linux_read_description. All uses updated. i386-specific
4287 code conditionalized. Conditionalized amd64-specific code added.
4288 One sizeof replaced with the actual type it is describing.
4289
2acf3cd0
GB
42902014-07-11 Gary Benson <gbenson@redhat.com>
4291
4292 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
4293 x86_linux_dr_get. All uses updated.
4294 (amd64_linux_dr_set): Renamed to
4295 x86_linux_dr_set. All uses updated.
4296 (amd64_linux_dr_get_addr): Renamed to
4297 x86_linux_dr_get_addr. All uses updated.
4298 (amd64_linux_dr_get_control): Renamed to
4299 x86_linux_dr_get_control. All uses updated.
4300 (amd64_linux_dr_get_status): Renamed to
4301 x86_linux_dr_get_status. All uses updated.
4302 (amd64_linux_dr_set_control): Renamed to
4303 x86_linux_dr_set_control. All uses updated.
4304 (amd64_linux_dr_set_addr): Renamed to
4305 x86_linux_dr_set_addr. All uses updated.
4306 (amd64_linux_prepare_to_resume): Renamed to
4307 x86_linux_prepare_to_resume. All uses updated.
4308 (amd64_linux_new_thread): Renamed to
4309 x86_linux_new_thread. All uses updated.
4310 (amd64_linux_new_fork): Renamed to
4311 x86_linux_new_fork. All uses updated.
4312 (amd64_linux_child_post_startup_inferior): Renamed to
4313 x86_linux_child_post_startup_inferior. All uses updated.
4314 (amd64_linux_enable_btrace): Renamed to
4315 x86_linux_enable_btrace. All uses updated.
4316 (amd64_linux_disable_btrace): Renamed to
4317 x86_linux_disable_btrace. All uses updated.
4318 (amd64_linux_teardown_btrace): Renamed to
4319 x86_linux_teardown_btrace. All uses updated.
4320 (amd64_linux_read_btrace): Renamed to
4321 x86_linux_read_btrace. All uses updated.
4322 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
4323 x86_linux_dr_get. All uses updated.
4324 (i386_linux_dr_set): Renamed to
4325 x86_linux_dr_set. All uses updated.
4326 (i386_linux_dr_get_addr): Renamed to
4327 x86_linux_dr_get_addr. All uses updated.
4328 (i386_linux_dr_get_control): Renamed to
4329 x86_linux_dr_get_control. All uses updated.
4330 (i386_linux_dr_get_status): Renamed to
4331 x86_linux_dr_get_status. All uses updated.
4332 (i386_linux_dr_set_control): Renamed to
4333 x86_linux_dr_set_control. All uses updated.
4334 (i386_linux_dr_set_addr): Renamed to
4335 x86_linux_dr_set_addr. All uses updated.
4336 (i386_linux_prepare_to_resume): Renamed to
4337 x86_linux_prepare_to_resume. All uses updated.
4338 (i386_linux_new_thread): Renamed to
4339 x86_linux_new_thread. All uses updated.
4340 (i386_linux_new_fork): Renamed to
4341 x86_linux_new_fork. All uses updated.
4342 (i386_linux_child_post_startup_inferior): Renamed to
4343 x86_linux_child_post_startup_inferior. All uses updated.
4344 (i386_linux_enable_btrace): Renamed to
4345 x86_linux_enable_btrace. All uses updated.
4346 (i386_linux_disable_btrace): Renamed to
4347 x86_linux_disable_btrace. All uses updated.
4348 (i386_linux_teardown_btrace): Renamed to
4349 x86_linux_teardown_btrace. All uses updated.
4350 (i386_linux_read_btrace): Renamed to
4351 x86_linux_read_btrace. All uses updated.
4352
b9c1d481
AS
43532014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
4354
4355 * remote.c (extended_remote_post_attach): New function.
4356 (init_extended_remote_ops): Install it as to_post_attach method.
4357
7180e04a
PA
43582014-07-09 Pedro Alves <palves@redhat.com>
4359
4360 * infcmd.c (attach_command_post_wait): Don't call
4361 target_terminal_inferior here.
4362 (attach_command): Call it here instead.
4363
9a9a7608
AB
43642014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4365
4366 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
4367 field.
4368 * c-varobj.c (c_is_path_expr_parent): New function, moved core
4369 from varobj.c, with additional checks.
4370 (c_varobj_ops): Fill in is_path_expr_parent field.
4371 (cplus_varobj_ops): Fill in is_path_expr_parent field.
4372 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
4373 field.
4374 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
4375 ops method.
4376 (varobj_default_is_path_expr_parent): New function.
4377 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
4378 (varobj_default_is_path_expr_parent): Declare new function.
4379
1f267ae3
MM
43802014-07-08 Markus Metzger <markus.t.metzger@intel.com>
4381
4382 * infcmd.c (finish_backward): Turn internal error into normal error.
4383
b2ee242b
PA
43842014-07-07 Pedro Alves <palves@redhat.com>
4385
8a869bca 4386 PR gdb/17096
b2ee242b
PA
4387 * remote.c (async_handle_remote_sigint)
4388 (async_handle_remote_sigint_twice): Call
4389 gdb_call_async_signal_handler instead of
4390 mark_async_signal_handler.
4391
38e229b2
TT
43922014-07-07 Tom Tromey <tromey@redhat.com>
4393
4394 * target-delegates.c: Rebuild.
4395 * target.c (target_info_record): Remove.
4396 * record.c (info_record_command): Unconditionally call
4397 to_info_record.
4398 * target.h (struct target_ops) <to_info_record>: Use
4399 TARGET_DEFAULT_IGNORE.
4400 (target_info_record): Remove.
4401
f0f9ff95
TT
44022014-07-07 Tom Tromey <tromey@redhat.com>
4403
4404 * target.h (struct target_ops) <to_get_thread_local_address>: Use
4405 TARGET_DEFAULT_NORETURN.
4406 * target.c (generic_tls_error): New function.
4407 (target_translate_tls_address): Don't search target stack.
4408 * target-delegates.c: Rebuild.
4409 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
4410 stack.
4411 * linux-thread-db.c (thread_db_get_thread_local_address):
4412 Unconditionally call beneath target.
4413
4a5be5ee
MK
44142014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
4415
4416 * cli/cli-logging.c (pop_output_files): Assign targerr to
4417 gdb_stdtargerr.
4418
92c3b204
AB
44192014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
4420
4421 * MAINTAINERS (Write After Approval): Update my email address.
4422
9b11e3a7
GB
44232014-07-02 Gary Benson <gbenson@redhat.com>
4424
4425 * proc-service.c (ps_xfer_memory): Update comment.
4426 (ps_pstop): Remove unused function.
4427 (ps_pcontinue): Likewise.
4428 (ps_lstop): Likewise.
4429 (ps_lcontinue): Likewise.
4430 (ps_lgetxregsize): Likewise.
4431 (ps_lgetxregs): Likewise.
4432 (ps_lsetxregs): Likewise.
4433 (ps_plog): Likewise.
4434 (ps_ptread): Likewise.
4435 (ps_ptwrite): Likewise.
4436
cf363f18
MW
44372014-07-01 Mark Wielaard <mjw@redhat.com>
4438
4439 * dwarf2read.c (add_array_cv_type): New function.
4440 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
4441 (read_tag_volatile_type): Likewise.
4442
82ae6c8d
TT
44432014-07-01 Tom Tromey <tromey@redhat.com>
4444
4445 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
4446 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
4447 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
4448 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
4449 * command.h (cmd_cfunc_ftype): Move earlier.
4450 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
4451 (add_com, add_info): Use cmd_cfunc_ftype.
4452
96142726
TT
44532014-06-30 Tom Tromey <tromey@redhat.com>
4454
4455 * symtab.c (operator_chars): Make parameters and return type
4456 const.
4457 (file_matches): Make "files" const.
4458 (struct search_symbols_data) <files>: Now const.
4459 (search_symbols): Make "regexp" and "files" parameters const.
4460 Update.
4461 (symtab_symbol_info): Remove cast.
4462 (rbreak_command): Update.
4463 * symtab.h (search_symbols): Update.
4464
b67a2c6f
YQ
44652014-06-27 Yao Qi <yao@codesourcery.com>
4466
4467 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
4468 Change parameter type to 'struct thread_info *'. Caller
4469 updated.
4470 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
4471 Update declaration.
4472 * dummy-frame.c (struct dummy_frame_id): New.
4473 (dummy_frame_id_eq): New function.
4474 (struct dummy_frame) <id>: Change its type to 'struct
4475 dummy_frame_id'.
4476 (dummy_frame_push): Add parameter ptid and save it in
4477 dummy_frame_id.
4478 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
4479 inferior_ptid.
4480 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
4481 to inferior_ptid.
4482 (lookup_dummy_frame): Change parameter type to 'struct
4483 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
4484 instead of frame_id_eq.
4485 (dummy_frame_pop): Add parameter ptid. Callers updated.
4486 Update comments. Compose dummy_frame_id and pass it to
4487 lookup_dummy_frame.
4488 (dummy_frame_discard): Add parameter ptid.
4489 (dummy_frame_sniffer): Compose dummy_frame_id and call
4490 dummy_frame_id_eq instead of frame_id_eq.
4491 (fprint_dummy_frames): Print ptid.
4492 * dummy-frame.h: Remove comments.
4493 (dummy_frame_push): Add ptid in declaration.
4494 (dummy_frame_pop, dummy_frame_discard): Likewise.
4495
5b10184c
TT
44962014-06-26 Tom Tromey <tromey@redhat.com>
4497
4498 * cli/cli-cmds.c (error_no_arg): Make "why" const.
4499 * command.h (error_no_arg): Update.
4500
06900326
TT
45012014-06-26 Tom Tromey <tromey@redhat.com>
4502
4503 * cli/cli-setshow.c (do_set_command): Make "arg" const.
4504 (do_show_command): Make "arg" const.
4505 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
4506
c2bcbb1d
TT
45072014-06-26 Tom Tromey <tromey@redhat.com>
4508
4509 * record-full.c (record_full_get_bookmark): Make "args" const.
4510 (record_full_goto_bookmark): Make "raw_bookmark" const.
4511 * record.c (record_goto): New function.
4512 (cmd_record_goto): Use it. Now static.
4513 * record.h (record_goto): Declare.
4514 (cmd_record_goto): Remove declaration.
4515 * target-delegates.c: Rebuild.
4516 * target.h (struct target_ops) <to_get_bookmark,
4517 to_goto_bookmark>: Make parameter const.
4518
9cbe5fff
TT
45192014-06-26 Tom Tromey <tromey@redhat.com>
4520
4521 * defs.h (generic_load): Update.
4522 * m32r-rom.c (m32r_load_gen): Make "filename" const.
4523 * monitor.c (monitor_load): Make "args" const.
4524 * remote-m32r-sdi.c (m32r_load): Make "args" const.
4525 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
4526 const.
4527 (mips_load): Make "file" const.
4528 * remote-sim.c (gdbsim_load): Make "args" const.
4529 * remote.c (remote_load): Make "name" const.
4530 * symfile.c (generic_load): Make "args" const.
4531 * target-delegates.c: Rebuild.
4532 * target.c (target_load): Make "arg" const.
4533 (debug_to_load): Make "args" const.
4534 * target.h (struct target_ops) <to_load>: Make parameter const.
4535 (target_load): Update.
4536
34a68019
TT
45372014-06-26 Tom Tromey <tromey@redhat.com>
4538
4539 PR symtab/16902:
4540 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
4541 (dwarf2_physname, read_partial_die)
4542 (guess_partial_die_structure_name, fixup_partial_die)
4543 (guess_full_die_structure_name, anonymous_struct_prefix)
4544 (dwarf2_name): Use per-BFD obstack.
4545
efc889c1
YQ
45462014-06-26 Yao Qi <yao@codesourcery.com>
4547
4548 * dummy-frame.c (dummy_frame_sniffer): Move local variables
4549 dummyframe and this_id into inner block below.
4550
4395285e
YQ
45512014-06-26 Yao Qi <yao@codesourcery.com>
4552
4553 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
4554 with "signal_pass[0]" in the initialization of signal_pass.
4555
aef92902
MM
45562014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4557
4558 * record-btrace.c (record_btrace_generating_corefile)
4559 (record_btrace_prepare_to_generate_core)
4560 (record_btrace_done_generating_core): New.
4561 (record_btrace_xfer_partial, record_btrace_fetch_registers)
4562 (record_btrace_store_registers, record_btrace_prepare_to_store):
4563 Forward request when generating a core file.
4564 (record_btrace_open): Set record_btrace_generating_corefile to zero.
4565 (init_record_btrace_ops): Set to_prepare_to_generate_core and
4566 to_done_generating_core.
4567
5fff78c4
MM
45682014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4569
4570 * target.h (target_ops) <to_prepare_to_generate_core>
4571 <to_done_generating_core>: New.
4572 (target_prepare_to_generate_core, target_done_generating_core): New.
4573 * target.c (target_prepare_to_generate_core)
4574 (target_done_generating_core): New.
4575 * target-delegates.c: Regenerate.
4576 * gcore.c: (write_gcore_file): Rename to ...
4577 (write_gcore_file_1): ...this.
4578 (write_gcore_file): Call target_prepare_to_generate_core
4579 and target_done_generating_core.
4580
1d1f1ccb
MM
45812014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4582
4583 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
4584 * gcore.c (write_gcore_file): Free memory returned from
4585 make_corefile_notes.
4586 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
4587 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
4588
3343ef86
YQ
45892014-06-24 Yao Qi <yao@codesourcery.com>
4590
4591 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
4592 (arm_linux_init_abi): Set skip_trampoline_code with
4593 gdbarch_skip_trampoline_code instead of
4594 find_solib_trampoline_target.
4595
18d18ac8
YQ
45962014-06-24 Yao Qi <yao@codesourcery.com>
4597
4598 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
4599 arm_skip_bx_reg returns non-zero.
4600
80d8d390
YQ
46012014-06-24 Yao Qi <yao@codesourcery.com>
4602
4603 * arm-tdep.c (arm_skip_bx_reg): New function.
4604 (arm_skip_stub): Call arm_skip_bx_reg.
4605
6a18a01c
DB
46062014-06-23 Don Breazeal <donb@codesourcery.com>
4607
4608 * MAINTAINERS: Add myself as write-after-approval maintainer.
4609
8e9db26e
PA
46102014-06-23 Pedro Alves <palves@redhat.com>
4611
4612 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
4613 DR_CONTROL before setting DR0..DR3.
4614 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
4615 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
4616 bits of DR_CONTROL related to the debug register slot being
4617 disabled. If all slots are vacant, clear local slowdown as well,
4618 and assert DR_CONTROL is 0.
4619
70afc5b7
SC
46202014-06-23 Siva Chandra Reddy <sivachandra@google.com>
4621
4622 * python/lib/gdb/command/xmethods.py
4623 (get_method_matchers_in_loci): Lookup xmethod matchers in the
4624 current progspace only if the string "progspace" matches LOCUS_RE.
4625
840ed64d
JK
46262014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4627
4628 Fix --with-system-readline with readline-6.3 patch 5.
4629 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
4630 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
4631 types.
4632
26f2dc30
TT
46332014-06-20 Tom Tromey <tromey@redhat.com>
4634
4635 * dwarf2read.c (dw2_get_real_path): Use correct type in
4636 OBSTACK_CALLOC.
4637 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
4638
125f8a3d
GB
46392014-06-20 Gary Benson <gbenson@redhat.com>
4640
4641 * common/gdb_thread_db.h: Moved to nat. All includes updated.
4642 * common/glibc_thread_db.h: Likewise.
4643 * common/i386-cpuid.h: Likewise.
4644 * common/i386-gcc-cpuid.h: Likewise.
4645 * common/linux-btrace.h: Likewise.
4646 * common/linux-osdata.h: Likewise.
4647 * common/linux-procfs.h: Likewise.
4648 * common/linux-ptrace.h: Likewise.
4649 * common/mips-linux-watch.h: Likewise.
4650 * common/linux-btrace.c: Moved to nat.
4651 * common/linux-osdata.c: Likewise.
4652 * common/linux-procfs.c: Likewise.
4653 * common/linux-ptrace.c: Likewise.
4654 * common/mips-linux-watch.c: Likewise.
4655 * nat/gdb_thread_db.h: Moved from common.
4656 * nat/glibc_thread_db.h: Likewise.
4657 * nat/i386-cpuid.h: Likewise.
4658 * nat/i386-gcc-cpuid.h: Likewise.
4659 * nat/linux-btrace.c: Likewise.
4660 * nat/linux-btrace.h: Likewise.
4661 * nat/linux-osdata.c: Likewise.
4662 * nat/linux-osdata.h: Likewise.
4663 * nat/linux-procfs.c: Likewise.
4664 * nat/linux-procfs.h: Likewise.
4665 * nat/linux-ptrace.c: Likewise.
4666 * nat/linux-ptrace.h: Likewise.
4667 * nat/mips-linux-watch.c: Likewise.
4668 * nat/mips-linux-watch.h: Likewise.
4669 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
4670 (object file files): Reordered.
4671 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
4672 of glibc_thread_db.h.
4673
42995dbd
GB
46742014-06-20 Gary Benson <gbenson@redhat.com>
4675
4676 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
4677 (i386_dr_low_type): Moved to nat/i386-dregs.h.
4678 (i386_dr_low): Likewise.
4679 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
4680 (i386_dr_low_set_addr): Likewise.
4681 (i386_dr_low_get_addr): Likewise.
4682 (i386_dr_low_can_set_control): Likewise.
4683 (i386_dr_low_set_control): Likewise.
4684 (i386_dr_low_get_control): Likewise.
4685 (i386_dr_low_get_status): Likewise.
4686 (i386_get_debug_register_length): Likewise.
4687 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
4688 (i386_dr_low): Likewise.
4689 * nat/i386-dregs.c (i386-low.h): Remove include.
4690 (i386-nat.h): Likewise.
4691 (nat/i386-dregs.h): New include.
4692 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
4693 (i386_dr_low_set_addr): Likewise.
4694 (i386_dr_low_get_addr): Likewise.
4695 (i386_dr_low_can_set_control): Likewise.
4696 (i386_dr_low_set_control): Likewise.
4697 (i386_dr_low_get_control): Likewise.
4698 (i386_dr_low_get_status): Likewise.
4699 (i386_get_debug_register_length): Likewise.
4700 (debug_hw_points): Likewise.
4701
3ed9baed
IB
47022014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
4703
4704 * Makefile.in (SFILES): Add d-exp.y.
4705 (YYFILES): Add d-exp.c.
4706 (YYOBJ): Add d-exp.o.
4707 (local-maintainer-clean): Delete d-exp.c.
4708 * d-exp.y: New file.
4709 * d-lang.h (d_parse): New declaration.
4710 (d_error): New declaration.
4711 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
4712 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
4713 PREC_ORDER operators.
4714 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
4715
78c164b0
YQ
47162014-06-19 Yao Qi <yao@codesourcery.com>
4717
4718 * gdbthread.h (any_running): Remove the declaration.
4719 * thread.c (any_running): Remove.
4720
f6e29b6e
YQ
47212014-06-19 Yao Qi <yao@codesourcery.com>
4722
4723 * gdbthread.h (struct thread_info) <state>: Change its type to
4724 'enum thread_state'. Update comments.
4725
034f788c
PA
47262014-06-19 Pedro Alves <palves@redhat.com>
4727
4728 * gdbthread.h (ALL_THREADS): Delete.
4729 (ALL_NON_EXITED_THREADS): New macro.
4730 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
4731 instead of ALL_THREADS.
4732 * infrun.c (find_thread_needs_step_over)
4733 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
4734 instead of ALL_THREADS.
4735 * record-btrace.c (record_btrace_open)
4736 (record_btrace_stop_recording, record_btrace_close)
4737 (record_btrace_is_replaying, record_btrace_resume)
4738 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
4739 * remote.c (append_pending_thread_resumptions): Likewise.
4740 * thread.c (thread_apply_all_command): Likewise.
4741
46e33252
GB
47422014-06-19 Gary Benson <gbenson@redhat.com>
4743
4744 * i386-nat.c (i386_stopped_by_watchpoint):
4745 Use i386_dr_stopped_by_watchpoint.
4746 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
4747 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
4748
3a8ee006
GB
47492014-06-19 Gary Benson <gbenson@redhat.com>
4750
4751 * nat/i386-dregs.c: New file.
4752 * Makefile.in (i386-dregs.o): New rule.
4753 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
4754 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
4755 * config/i386/darwin.mh (NATDEPFILES): Likewise.
4756 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
4757 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
4758 * config/i386/go32.mh (NATDEPFILES): Likewise.
4759 * config/i386/linux.mh (NATDEPFILES): Likewise.
4760 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4761 * config/i386/mingw.mh (NATDEPFILES): Likewise.
4762 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
4763 * i386-nat.h (debug_hw_points): New declaration.
4764 * i386-nat.c (breakpoint.h): Remove include.
4765 (command.h): Likewise.
4766 (target.h): Likewise.
4767 (gdb_assert.h): Likewise.
4768 (debug_hw_points): Made nonstatic.
4769 (debug_printf): Now in i386-dregs.c.
4770 (TARGET_HAS_DR_LEN_8): Likewise.
4771 (DR_CONTROL_SHIFT): Likewise.
4772 (DR_CONTROL_SIZE): Likewise.
4773 (DR_RW_EXECUTE): Likewise.
4774 (DR_RW_WRITE): Likewise.
4775 (DR_RW_READ): Likewise.
4776 (DR_RW_IORW): Likewise.
4777 (DR_LEN_1): Likewise.
4778 (DR_LEN_2): Likewise.
4779 (DR_LEN_4): Likewise.
4780 (DR_LEN_8): Likewise.
4781 (DR_LOCAL_ENABLE_SHIFT): Likewise.
4782 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
4783 (DR_ENABLE_SIZE): Likewise.
4784 (DR_LOCAL_SLOWDOWN): Likewise.
4785 (DR_GLOBAL_SLOWDOWN): Likewise.
4786 (DR_CONTROL_RESERVED): Likewise.
4787 (I386_DR_CONTROL_MASK): Likewise.
4788 (I386_DR_VACANT): Likewise.
4789 (I386_DR_LOCAL_ENABLE): Likewise.
4790 (I386_DR_GLOBAL_ENABLE): Likewise.
4791 (I386_DR_DISABLE): Likewise.
4792 (I386_DR_SET_RW_LEN): Likewise.
4793 (I386_DR_GET_RW_LEN): Likewise.
4794 (I386_DR_WATCH_HIT): Likewise.
4795 (i386_wp_op_t): Likewise.
4796 (i386_show_dr): Likewise.
4797 (i386_length_and_rw_bits): Likewise.
4798 (i386_insert_aligned_watchpoint): Likewise.
4799 (i386_remove_aligned_watchpoint): Likewise.
4800 (i386_handle_nonaligned_watchpoint): Likewise.
4801 (i386_update_inferior_debug_regs): Likewise.
4802 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
4803 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
4804 (i386_region_ok_for_watchpoint):
4805 Use i386_dr_region_ok_for_watchpoint.
4806 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
4807
322a8e06
GB
48082014-06-19 Gary Benson <gbenson@redhat.com>
4809
4810 * i386-nat.c (i386_insert_hw_breakpoint): Use
4811 i386_insert_watchpoint.
4812 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
4813
8f26655c
GB
48142014-06-19 Gary Benson <gbenson@redhat.com>
4815
4816 * i386-nat.c (i386_dr_show): Renamed to
4817 i386_show_dr and made static. All uses updated.
4818 (i386_dr_length_and_rw_bits): Renamed to
4819 i386_length_and_rw_bits and made static.
4820 All uses updated.
4821 (i386_dr_insert_aligned_watchpoint): Renamed to
4822 i386_insert_aligned_watchpoint and made static.
4823 All uses updated.
4824 (i386_dr_remove_aligned_watchpoint): Renamed to
4825 i386_remove_aligned_watchpoint and made static.
4826 All uses updated.
4827 (i386_dr_update_inferior_debug_regs): Renamed to
4828 i386_update_inferior_debug_regs and made static.
4829 All uses updated.
4830 * nat/i386-dregs.h (i386_dr_show): Removed.
4831 (i386_dr_length_and_rw_bits): Likewise.
4832 (i386_dr_insert_aligned_watchpoint): Likewise.
4833 (i386_dr_remove_aligned_watchpoint): Likewise.
4834 (i386_dr_update_inferior_debug_regs): Likewise.
4835
992c7d70
GB
48362014-06-19 Gary Benson <gbenson@redhat.com>
4837
4838 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
4839 * configure: Regenerate.
4840 * config.in: Likewise.
4841 * main.c (signal.h): New include.
4842 (setup_alternate_signal_stack): New function.
4843 (captured_main): Call the above.
4844 * cp-support.c (signal.h): New include.
4845 (catch_demangler_crashes): New flag.
4846 (SIGJMP_BUF): New define.
4847 (SIGSETJMP): Likewise.
4848 (SIGLONGJMP): Likewise.
4849 (gdb_demangle_jmp_buf): New static global.
4850 (gdb_demangle_attempt_core_dump): Likewise.
4851 (gdb_demangle_signal_handler): New function.
4852 (gdb_demangle): If catch_demangler_crashes is set, install the
4853 above signal handler before calling bfd_demangle, and restore
4854 the original signal handler afterwards. Display the offending
4855 symbol and call demangler_warning the first time a segmentation
4856 fault is caught.
4857 (_initialize_cp_support): New maint set/show command.
4858
eae7090b
GB
48592014-06-19 Gary Benson <gbenson@redhat.com>
4860
4861 * utils.h (resource_limit_kind): New enum.
4862 (can_dump_core): New declaration.
4863 (warn_cant_dump_core): Likewise.
4864 (dump_core): Likewise.
4865 * utils.c (dump_core): Made nonstatic. Added new
4866 parameter "limit_kind".
4867 (can_dump_core): Made nonstatic. Moved printing code to...
4868 (warn_cant_dump_core): New function.
4869 (can_dump_core_warn): Likewise.
4870 (internal_vproblem): Replace calls to can_dump_core with
4871 calls to can_dump_core_warn. Supply new argument to each.
4872
57fcfb1b
GB
48732014-06-19 Gary Benson <gbenson@redhat.com>
4874
4875 * utils.h (demangler_vwarning): New declaration.
4876 (demangler_warning): Likewise.
4877 * utils.c (struct internal_problem)
4878 <user_settable_should_quit>: New field.
4879 <user_settable_should_dump_core>: Likewise
4880 (internal_error_problem): Add values for above new fields.
4881 (internal_warning_problem): Likewise.
4882 (demangler_warning_problem): New static global.
4883 (demangler_vwarning): New function.
4884 (demangler_warning): Likewise.
4885 (add_internal_problem_command): Selectively add commands.
4886 (_initialize_utils): New internal problem command.
4887 * maint.c (maintenance_demangler_warning): New function.
4888 (_initialize_maint_cmds): New command.
4889
17a40b44
TT
48902014-06-18 Tom Tromey <tromey@redhat.com>
4891
4892 * f-valprint.c (info_common_command_for_block): Update.
4893 * symtab.h (struct general_symbol_info) <common_block>: Now
4894 const.
4895
346d1dfe
TT
48962014-06-18 Tom Tromey <tromey@redhat.com>
4897
4898 * symtab.h (struct symtab) <blockvector>: Now const.
4899 * ada-lang.c (ada_add_global_exceptions): Update.
4900 * buildsym.c (augment_type_symtab): Update.
4901 * dwarf2read.c (dw2_lookup_symbol): Update.
4902 * jit.c (finalize_symtab): Update.
4903 * jv-lang.c (add_class_symtab_symbol): Update.
4904 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
4905 Update.
4906 * objfiles.c (objfile_relocate1): Update.
4907 * psymtab.c (lookup_symbol_aux_psymtabs)
4908 (maintenance_check_psymtabs): Update.
4909 * python/py-symtab.c (stpy_global_block, stpy_static_block):
4910 Update.
4911 * spu-tdep.c (spu_catch_start): Update.
4912 * symmisc.c (dump_symtab_1): Update.
4913 * symtab.c (lookup_global_symbol_from_objfile)
4914 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
4915 (basic_lookup_transparent_type_quick)
4916 (basic_lookup_transparent_type, find_pc_sect_symtab)
4917 (find_pc_sect_line, search_symbols): Update.
4918 * block.c (find_block_in_blockvector): Make "bl" const.
4919 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
4920 const.
4921 (blockvector_contains_pc): Make "bv" const.
4922 (block_for_pc_sect): Update.
4923 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
4924 (blockvector_contains_pc): Update.
4925 * breakpoint.c (resolve_sal_pc): Update.
4926 * inline-frame.c (block_starting_point_at): Update.
4927
1834676b
TT
49282014-06-18 Tom Tromey <tromey@redhat.com>
4929
4930 * completer.c (complete_line): Make "line_buffer" const.
4931 * completer.h (complete_line): Update.
4932
ac1a991b
TT
49332014-06-18 Tom Tromey <tromey@redhat.com>
4934
4935 * symtab.c (add_macro_name): Remove unneeded cast.
4936
5bc98e52
TT
49372014-06-18 Tom Tromey <tromey@redhat.com>
4938
4939 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
4940 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
4941
8236def8
TT
49422014-06-18 Tom Tromey <tromey@redhat.com>
4943
4944 * probe.c (info_probes_for_ops): Make "arg" const.
4945 * probe.h (info_probes_for_ops): Update.
4946
3977b71f
TT
49472014-06-18 Tom Tromey <tromey@redhat.com>
4948
4949 * varobj.c (varobj_create): Update.
4950 * valops.c (value_of_this): Update.
4951 * tracepoint.c (add_local_symbols, scope_info): Update.
4952 * symtab.h (struct general_symbol_info) <block>: Now const.
4953 * symtab.c (skip_prologue_sal)
4954 (default_make_symbol_completion_list_break_on)
4955 (skip_prologue_using_sal): Update.
4956 * stack.h (iterate_over_block_locals)
4957 (iterate_over_block_local_vars): Update.
4958 * stack.c (print_frame_args): Update.
4959 (iterate_over_block_locals, iterate_over_block_local_vars): Make
4960 parameter const.
4961 (get_selected_block): Make return type const.
4962 * python/py-frame.c (frapy_block): Update.
4963 * python/py-block.c (gdbpy_block_for_pc): Update.
4964 * p-exp.y (%union) <bval>: Now const.
4965 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
4966 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
4967 * m2-exp.y (%union) <bval>: Now const.
4968 * linespec.c (get_current_search_block): Make return type const.
4969 (create_sals_line_offset, find_label_symbols): Update.
4970 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
4971 Update.
4972 (block_starting_point_at): Make "block" const.
4973 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
4974 (check_exception_resume): Update.
4975 * guile/scm-frame.c (gdbscm_frame_block): Update.
4976 * guile/scm-block.c (gdbscm_lookup_block): Update.
4977 * frame.h (get_frame_block): Update.
4978 (get_selected_block): Make return type const.
4979 * frame.c (frame_id_inner): Update.
4980 * f-valprint.c (info_common_command_for_block)
4981 (info_common_command): Update.
4982 * dwarf2loc.c (dwarf2_find_location_expression)
4983 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
4984 (locexpr_describe_location_piece): Update.
4985 * c-exp.y (%union) <bval>: Now const.
4986 * breakpoint.c (resolve_sal_pc): Update.
4987 * blockframe.c (get_frame_block):Make return type const.
4988 (get_pc_function_start, get_frame_function, find_pc_sect_function)
4989 (block_innermost_frame): Update.
4990 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
4991 (block_for_pc, block_for_pc_sect): Update.
4992 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
4993 'pblock' const.
4994 (block_for_pc_sect, block_for_pc): Make return type const.
4995 * ax-gdb.c (gen_expr): Update.
4996 * alpha-mdebug-tdep.c (find_proc_desc): Update.
4997 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
4998 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
4999 (ada_read_var_value): Update.
5000 * ada-exp.y (struct name_info) <block>: Now const.
5001 (%union): Likewise.
5002 (block_lookup): Constify.
5003
b9228891
GB
50042014-06-18 Gary Benson <gbenson@redhat.com>
5005
5006 * nat/i386-dregs.h: New file.
5007 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
5008 * i386-nat.h (i386-dregs.h): New include.
5009 (DR_FIRSTADDR): Now in i386-dregs.h.
5010 (DR_LASTADDR): Likewise.
5011 (DR_NADDR): Likewise.
5012 (DR_STATUS): Likewise.
5013 (DR_CONTROL): Likewise.
5014 (i386_debug_reg_state): Likewise.
5015 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
5016
a1aa2221
LM
50172014-06-18 Don Breazeal <donb@codesourcery.com>
5018
5019 * breakpoint.c (set_longjmp_breakpoint): Call
5020 momentary_breakpoint_from_master with additional argument.
5021 (set_longjmp_breakpoint_for_call_dummy): Call
5022 momentary_breakpoint_from_master with additional argument.
5023 (set_std_terminate_breakpoint): Call
5024 momentary_breakpoint_from_master with additional argument.
5025 (momentary_breakpoint_from_master): Add argument to function
5026 definition and use it to initialize structure member flag.
74228e77 5027 (clone_momentary_breakpoint): Call
a1aa2221
LM
5028 momentary_breakpoint_from_master with additional argument.
5029 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
5030 member flags set in momentary_breakpoint_from_master.
5031
4be83cc2
GB
50322014-06-18 Gary Benson <gbenson@redhat.com>
5033
5034 * i386-nat.c (i386_show_dr): Renamed to
5035 i386_dr_show and made nonstatic. All uses updated.
5036 (i386_length_and_rw_bits): Renamed to
5037 i386_dr_length_and_rw_bits and made nonstatic.
5038 All uses updated.
5039 (i386_insert_aligned_watchpoint): Renamed to
5040 i386_dr_insert_aligned_watchpoint and made nonstatic.
5041 All uses updated.
5042 (i386_remove_aligned_watchpoint): Renamed to
5043 i386_dr_remove_aligned_watchpoint and made nonstatic.
5044 All uses updated.
5045 (i386_update_inferior_debug_regs): Renamed to
5046 i386_dr_update_inferior_debug_regs and made nonstatic.
5047 All uses updated.
5048
131aa0d4
GB
50492014-06-18 Gary Benson <gbenson@redhat.com>
5050
5051 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
5052 (i386_dr_low_can_set_control): Likewise.
5053 (i386_dr_low_set_addr): Likewise.
5054 (i386_dr_low_set_control): Likewise.
5055 (i386_dr_low_get_addr): Likewise.
5056 (i386_dr_low_get_status): Likewise.
5057 (i386_dr_low_get_control): Likewise.
5058 (i386_insert_aligned_watchpoint): Use new macros.
5059 (i386_update_inferior_debug_regs): Likewise.
5060 (i386_stopped_data_address): Likewise.
5061
d9305f7f
GB
50622014-06-18 Gary Benson <gbenson@redhat.com>
5063
5064 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
5065 New parameter. All uses updated.
5066
ea008da4
GB
50672014-06-18 Gary Benson <gbenson@redhat.com>
5068
5069 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
5070 All uses updated.
5071
1b6d4134
GB
50722014-06-18 Gary Benson <gbenson@redhat.com>
5073
5074 * i386-nat.c (debug_printf): New macro.
5075 (i386_get_debug_register_length): Likewise.
5076 (TARGET_HAS_DR_LEN_8): Use above macro.
5077 (i386_show_dr): Use debug_printf instead of puts_unfiltered
5078 and printf_unfiltered. Use phex to format values.
5079
9b4550ef
GB
50802014-06-18 Gary Benson <gbenson@redhat.com>
5081
5082 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
5083 Make const.
5084
6e62758f
GB
50852014-06-18 Gary Benson <gbenson@redhat.com>
5086
5087 * i386-nat.c: Comment changes.
5088
51c79e94
GB
50892014-06-18 Gary Benson <gbenson@redhat.com>
5090
5091 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
5092
3e11889a
GB
50932014-06-18 Gary Benson <gbenson@redhat.com>
5094
5095 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
5096 (i386_insert_aligned_watchpoint): Likewise.
5097 (i386_remove_aligned_watchpoint): Likewise.
5098 (i386_handle_nonaligned_watchpoint): Likewise.
5099
fc6e2f03
GB
51002014-06-18 Gary Benson <gbenson@redhat.com>
5101
5102 * i386-nat.c: Whitespace changes.
5103
2afe7d50
SB
51042014-06-17 Samuel Bronson <naesten@gmail.com>
5105
5106 * MAINTAINERS: Update Roland McGrath's email address.
5107 Thanks to Sergio Durigan Junior for pointing out that he left
6a83deea 5108 Red Hat a while ago, and giving me a current address.
2afe7d50 5109
3bca49ee
TT
51102014-06-17 Tom Tromey <tromey@redhat.com>
5111
5112 * utils.h (savestring): Remove declaration.
5113
6e366df1
TT
51142014-06-17 Tom Tromey <tromey@redhat.com>
5115
5116 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
5117
6be47f0c
KS
51182014-06-16 Keith Seitz <keiths@redhat.com>
5119
5120 PR mi/15863
5121 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
5122 to update the varobj if inferior_ptid is null_ptid.
5123
7bc112c1
TT
51242014-06-16 Tom Tromey <tromey@redhat.com>
5125
5126 * target.h (struct target_ops) <to_info_proc>: Make parameter
5127 const.
5128 (target_info_proc): Update.
5129 * target.c (target_info_proc): Make "args" const.
5130 * procfs.c (procfs_info_proc): Update.
5131 * linux-tdep.c (linux_info_proc): Update.
5132 (linux_core_info_proc_mappings): Make "args" const.
5133 (linux_core_info_proc): Update.
5134 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
5135 * gdbarch.c: Rebuild.
5136 * gdbarch.h: Rebuild.
5137 * corelow.c (core_info_proc): Update.
5138
fee354ee
TT
51392014-06-16 Tom Tromey <tromey@redhat.com>
5140
5141 * target.h (struct target_ops) <to_disconnect>: Make parameter
5142 const.
5143 (target_disconnect): Update.
5144 * target.c (target_disconnect): Make "args" const.
5145 * target-delegates.c: Rebuild.
5146 * remote.c (remote_disconnect): Update.
5147 * record.h (record_disconnect): Update.
5148 * record.c (record_disconnect): Update.
5149 * inf-child.c (inf_child_disconnect): Update.
5150
a30bf1f1
TT
51512014-06-16 Tom Tromey <tromey@redhat.com>
5152
5153 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
5154 * target.c (debug_to_rcmd, default_rcmd): Update.
5155 * target-delegates.c: Rebuild.
5156 * remote.c (remote_rcmd): Update.
5157 * monitor.c (monitor_rcmd): Update.
5158
d03de421
PA
51592014-06-16 Pedro Alves <palves@redhat.com>
5160
5161 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
5162 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
5163 have OBJF_SHARED set.
5164 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
5165 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
5166 instead of OBJF_USERLOADED.
5167 * objfiles.h (OBJF_SHARED): Update comment.
5168 (userloaded_objfile_contains_address_p): Rename to ...
5169 (shared_objfile_contains_address_p): ... this, and update
5170 comments.
5171 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
5172 new objfile.
5173 (remove_symbol_file_command): Skip objfiles that don't have
5174 OBJF_SHARED set.
5175
99f4262f
TT
51762014-06-16 Tom Tromey <tromey@redhat.com>
5177
5178 * minsyms.h (prim_record_minimal_symbol)
5179 (prim_record_minimal_symbol_and_info): Update comments.
5180
97d66cc6
EZ
51812014-06-14 Eli Zaretskii <eliz@gnu.org>
5182
5183 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
5184 or --without-guile, according to how GDB was built.
5185
635c7e8a
TT
51862014-06-13 Tom Tromey <tromey@redhat.com>
5187
5188 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
5189 to help_list.
5190 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
5191 to help_list.
5192 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
5193 help_list.
5194 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
5195 help_list.Pass all_commands, not -1, to help_list.
5196 * cli/cli-dump.c (dump_command, append_command)
5197 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
5198 (binary_dump_command, binary_append_command): Pass all_commands,
5199 not -1, to help_list.
5200 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
5201 -1, to help_list.
5202 * valprint.c (set_print, set_print_raw): Pass all_commands, not
5203 -1, to help_list.
5204 * typeprint.c (set_print_type): Pass all_commands, not -1, to
5205 help_list.
5206 * top.c (set_history): Pass all_commands, not -1, to help_list.
5207 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
5208 all_commands, not -1, to help_list.
5209 * symfile.c (overlay_command): Pass all_commands, not -1, to
5210 help_list.
5211 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
5212 help_list.
5213 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
5214 help_list.
5215 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
5216 -1, to help_list.
5217 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
5218 not -1, to help_list.
5219 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
5220 not -1, to help_list.
5221 * maint.c (maintenance_command, maintenance_info_command)
5222 (maintenance_print_command, maintenance_set_cmd): Pass
5223 all_commands, not -1, to help_list.
5224 * macrocmd.c (macro_command): Pass all_commands, not -1, to
5225 help_list.
5226 * language.c (set_check): Pass all_commands, not -1, to help_list.
5227 * infcmd.c (unset_command): Pass all_commands, not -1, to
5228 help_list.
5229 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
5230 help_list.
5231 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
5232 help_list.
5233 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
5234 help_list.
5235 * breakpoint.c (save_command): Pass all_commands, not -1, to
5236 help_list.
5237 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
5238 all_commands, not -1, to help_list.
5239
b94ade42
PL
52402014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
5241
5242 * regcache.c (struct register_to_invalidate): New structure.
5243 (do_register_invalidate, make_cleanup_regcache_invalidate): New
5244 functions.
5245 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
5246
31f628ae
YQ
52472014-06-12 Yao Qi <yao@codesourcery.com>
5248
5249 * varobj.c (varobj_get_num_children): Call
5250 varobj_is_dynamic_p.
5251 (varobj_list_children): Likewise.
5252 (varobj_update): Likewise. Update comments.
5253
cde5ef40
YQ
52542014-06-12 Yao Qi <yao@codesourcery.com>
5255
5256 * varobj.c (varobj_pretty_printed_p): Rename to ...
5257 (varobj_is_dynamic_p): ... this. New function.
5258 * varobj.h (varobj_pretty_printed_p): Remove declaration.
5259 (varobj_is_dynamic_p): Declare.
5260 * mi/mi-cmd-var.c (print_varobj): All callers updated.
5261 (mi_print_value_p, varobj_update_one): Likewise.
5262
576ea091
YQ
52632014-06-12 Pedro Alves <pedro@codesourcery.com>
5264 Yao Qi <yao@codesourcery.com>
5265
5266 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
5267 (varobj_get_iterator): Wrap up code for pretty-printer by
5268 "#if HAVE_PYTHON" and "#endif".
5269 (update_dynamic_varobj_children): Likewise.
5270
827f100c
YQ
52712014-06-12 Pedro Alves <pedro@codesourcery.com>
5272 Yao Qi <yao@codesourcery.com>
5273
5274 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
5275 gdb_python_initialized is false. Move some code from varobj.c.
5276 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
5277 * varobj.c: Move "varobj-iter.h" inclusion earlier.
5278 (struct varobj_item): Moved to varobj-iter.h".
5279 (varobj_clear_saved_item): New function.
5280 (update_dynamic_varobj_children): Move python-related code to
5281 py-varobj.c.
5282 (free_variable): Call varobj_clear_saved_item and
5283 varobj_iter_delete.
5284
e5250216
YQ
52852014-06-12 Pedro Alves <pedro@codesourcery.com>
5286 Yao Qi <yao@codesourcery.com>
5287
5288 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
5289 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
5290 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
5291 (py-varobj.o): New rule.
5292 * python/py-varobj.c: New file.
5293 * python/python-internal.h (py_varobj_get_iterator): Declare.
5294 * varobj-iter.h: New file.
5295 * varobj.c: Include "varobj-iter.h"
5296 (struct varobj) <child_iter>: Change its type from "PyObject *"
5297 to "struct varobj_iter *".
5298 <saved_item>: Likewise.
5299 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
5300 [HAVE_PYTHON] (varobj_get_iterator): New function.
5301 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
5302 python-specific code to python/py-varobj.c.
5303 (install_visualizer): Call varobj_iter_delete instead of
5304 Py_XDECREF.
5305 * varobj.h (varobj_ensure_python_env): Declare.
5306
5a2e0d6e
YQ
53072014-06-12 Yao Qi <yao@codesourcery.com>
5308
5309 * varobj.c (struct varobj_item): New structure.
5310 (create_child_with_value): Update declaration.
5311 (varobj_add_child): Replace arguments 'name' and 'value' with
5312 'item'. All callers updated.
5313 (install_dynamic_child): Likewise.
5314 (update_dynamic_varobj_children): Likewise.
5315 (varobj_add_child): Likewise.
5316 (create_child_with_value): Likewise.
5317
919b9a93
JB
53182014-06-11 Joel Brobecker <brobecker@adacore.com>
5319
5320 * NEWS: Create a new section for the next release branch.
5321 Rename the section of the current branch, now that it has
5322 been cut.
5323
71a55bdf
JB
53242014-06-11 Joel Brobecker <brobecker@adacore.com>
5325
5326 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
5327 * version.in: Bump version to 7.8.50.DATE-cvs.
5328
364fe1f7
PA
53292014-06-11 Pedro Alves <palves@redhat.com>
5330
5331 PR remote/17028
5332 * ser-mingw.c (net_windows_socket_check_pending): New function.
5333 (net_windows_select_thread): Ignore spurious wakeups. Use
5334 net_windows_socket_check_pending.
5335 (net_windows_wait_handle): Check for pending events with
5336 ioctlsocket, through net_windows_socket_check_pending, instead of
5337 checking the socket's event.
5338
5a6c7709
SC
53392014-06-10 Siva Chandra Reddy <sivachandra@google.com>
5340
5341 * python/python-internal.h (gdb_PyObject_GetAttrString)
5342 (gdb_PyObject_HasAttrString): New inline function definitions.
5343 * py-value.c (get_field_flag): Remove the now unnecessary cast to
5344 char * of the second argument to PyObject_GetAttrString.
74228e77 5345
0e58ee40
JB
53462014-06-10 Joel Brobecker <brobecker@adacore.com>
5347
5348 * serial.c (serial_write): Fix index of character to be printed
5349 in call to serial_logchar when serial debug traces are enabled.
5350
d190df30
JB
53512014-06-10 Joel Brobecker <brobecker@adacore.com>
5352
5353 * gdbtypes (resolve_dynamic_range): Add function description.
5354
b4b01d36
PA
53552014-06-09 Pedro Alves <palves@redhat.com>
5356
5357 * linux-nat.c (linux_child_follow_fork): Initialize status with
5358 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
5359 inner block. Only pass the signal to PTRACE_DETACH if in pass
5360 state.
5361
3657956b
GB
53622014-06-09 Gary Benson <gbenson@redhat.com>
5363
5364 * common/signals.c (gdb_signal_from_host): Reorder to separate
5365 the always-available ANSI-standard signals from the signals that
5366 require checking.
5367 (do_gdb_signal_to_host): Likewise.
5368 * proc-events.c (signal_table): Likewise.
5369
c077881a
HZ
53702014-06-08 Hui Zhu <hui@codesourcery.com>
5371
5372 * common/linux-ptrace.c (linux_disable_event_reporting): New
5373 function.
5374 * common/linux-ptrace.h (linux_disable_event_reporting): New
5375 declaration.
5376 * linux-nat.c (linux_child_follow_fork): Do a single step before
5377 detach.
5378
4186eb54
KS
53792014-06-07 Keith Seitz <keiths@redhat.com>
5380
5381 Revert:
5382 PR c++/16253
5383 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5384 from symbol_matches_domain in symtab.c. All local callers
5385 of symbol_matches_domain updated.
5386 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5387 search STRUCT_DOMAIN.
5388 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5389 independently. standard_lookup will do that automatically.
5390 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5391 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5392 (cp_lookup_symbol_in_namespace): Likewise.
5393 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5394 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5395 may return a STRUCT_DOMAIN match.
5396 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5397 * cp-support.c: Include language.h.
5398 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5399 VAR_DOMAIN.
5400 * psymtab.c (match_partial_symbol): Compare the requested
5401 domain with the symbol's domain directly.
5402 (lookup_partial_symbol): Likewise.
5403 * symtab.c (lookup_symbol_in_language): Explain when/why
5404 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5405 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5406 appropriate languages.
5407 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5408 and moved to ada-lang.c
5409 (lookup_block_symbol): Explain that this function only returns
5410 symbol matching the requested DOMAIN.
5411 Compare the requested domain with the symbol's domain directly.
5412 (iterate_over_symbols): Compare the requested domain with the
5413 symbol's domain directly.
5414 * symtab.h (symbol_matches_domain): Remove.
5415
25326a28 54162014-06-06 Doug Evans <xdje42@gmail.com>
d2929fdc
DE
5417
5418 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
5419 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
5420 (gdbscm_guile_version_is_at_least): Declare.
5421 (gdbscm_scm_string_to_int): Declare.
5422 * guile/guile.c (gdbscm_guile_major_version): New global.
5423 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
5424 (guile_datadir): New static global.
5425 (gdbscm_guile_data_directory): New function.
5426 (initialize_scheme_side): Update.
5427 (misc_guile_functions): Add guile-data-directory.
5428 (initialize_gdb_module): Fetch guile version number.
5429 * guile/lib/gdb.scm: Remove call to add-to-load-path.
5430 * guile/lib/gdb/init.scm (%initialize!): Ditto.
5431 * guile/lib/gdb/boot.scm: Use guile-data-directory.
5432 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
5433 comments.
5434 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
5435 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
5436 * guile/scm-value.c (gdbscm_value_to_string): Only call
5437 scm_port_conversion_strategy if Guile version >= 2.0.6.
5438
0a770bb2 54392014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
5440
5441 * main.c (print_gdb_help): Add -q and --silent.
5442
73ba372c
GB
54432014-06-06 Gary Benson <gbenson@redhat.com>
5444
5445 * common/signals.c: Remove preprocessor conditionals for
5446 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
5447 SIGSEGV and SIGTERM.
5448 * proc-events.c: Likewise.
5449
c33b2f12
MM
54502014-06-06 Markus Metzger <markus.t.metzger@intel.com>
5451
5452 * symfile.c (symfile_free_objfile): Remove restriction to
5453 OBJF_USERLOADED.
5454 * symfile-mem.c (symbol_file_add_from_memory): Call
5455 add_target_sections_of_objfile.
5456
fb934770
LC
54572014-06-05 Ludovic Courtès <ludo@gnu.org>
5458
5459 * guile/scm-value.c (gdbscm_history_append_x): Use
5460 'vlscm_get_value_smob_arg_unsafe' instead of
5461 'vlscm_scm_to_value'.
5462
6ef284bd
SM
54632014-06-05 Simon Marchi <simon.marchi@ericsson.com>
5464
5465 PR mi/15806
5466 * utils.c (printchar): Don't escape at all if quoter is NUL.
5467 Update function documentation to clarify effect of parameter
5468 QUOTER.
5469 * remote.c (escape_buffer): Pass '\\' as the quoter to
5470 fputstrn_unfiltered.
5471 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
5472 generate the output.
5473 (mi_solib_unloaded): Same.
5474
270c9937
JB
54752014-06-05 Joel Brobecker <brobecker@adacore.com>
5476
5477 * development.sh: Delete.
5478 * Makefile.in (config.status): Adjust dependency on development.sh.
5479 * configure.ac: Adjust development.sh source call.
5480 * configure: Regenerate.
5481
16f691fb
DE
54822014-06-04 Doug Evans <xdje42@gmail.com>
5483
5484 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
5485 is_scheme_bkpt, spec.
5486 (bpscm_make_breakpoint_smob): Initialize new members.
5487 (gdbscm_create_breakpoint_x): Split into two ...
5488 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
5489 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
5490 (scheme_function breakpoint_functions): Update.
5491 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
5492 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
5493 register-breakpoint!.
5494
ef7cab6b
JB
54952014-06-04 Joel Brobecker <brobecker@adacorer.com>
5496
5497 PR server/17023
5498 * mem-break.c (z_type_supported): Return zero if
5499 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
5500
012370f6
TT
55012014-06-04 Tom Tromey <tromey@redhat.com>
5502
5503 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
5504 value_from_contents_and_address_unresolved.
5505 (ada_template_to_fixed_record_type_1): Likewise.
5506 (ada_which_variant_applies): Likewise.
5507 * value.h (value_from_contents_and_address_unresolved): Declare.
5508 * value.c (value_from_contents_and_address_unresolved): New
5509 function.
5510 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
5511 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
5512 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
5513
92e2a17f
TT
55142014-06-04 Tom Tromey <tromey@redhat.com>
5515
5516 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
5517
c0939df1
TT
55182014-06-04 Tom Tromey <tromey@redhat.com>
5519
5520 * procfs.c (procfs_attach): Make "args" const.
5521 * windows-nat.c (windows_attach): Make "args" const.
5522 * nto-procfs.c (procfs_attach): Make "args" const.
5523 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
5524 * go32-nat.c (go32_attach): Make "args" const.
5525 * gnu-nat.c (gnu_attach): Make "args" const.
5526 * darwin-nat.c (darwin_attach): Make "args" const.
5527 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
5528 * linux-nat.c (linux_nat_attach): Make "args" const.
5529 * remote.c (extended_remote_attach_1, extended_remote_attach):
5530 Make "args" const.
5531 * target.h (struct target_ops) <to_attach>: Make "args" const.
5532 (find_default_attach): Likewise.
5533 * utils.c (parse_pid_to_attach): Make "args" const.
5534 * utils.h (parse_pid_to_attach): Update.
5535
8eaff7cd
TT
55362014-06-04 Tom Tromey <tromey@redhat.com>
5537
5538 * target-delegates.c: Rebuild.
5539 * target.c (default_thread_address_space): New function.
5540 (target_thread_address_space): Simplify.
5541 * target.h (struct target_ops) <to_thread_address_space>: Add
5542 TARGET_DEFAULT_FUNC.
5543
1913f160
DE
55442014-06-04 Doug Evans <xdje42@gmail.com>
5545
5546 * guile/scm-type.c (type_smob): Remove duplicate typedef.
5547
70ad5bff
MM
55482014-06-04 Markus Metzger <markus.t.metzger@intel.com>
5549
5550 * record-btrace.c: Include event-loop.h and inf-loop.h.
5551 (record_btrace_resume_exec_dir)
5552 (record_btrace_async_inferior_event_handler)
5553 (record_btrace_handle_async_inferior_event): New.
5554 (record_btrace_open): Create async event handler.
5555 (record_btrace_close): Delete async event handler.
5556 (record_btrace_resume): Set record_btrace_resume_exec_dir,
5557 Mark async event handler.
5558 (record_btrace_execution_direction): New.
5559 (init_record_btrace_ops): Initialize to_execution_direction.
5560
b6210538
DE
55612014-06-03 Doug Evans <xdje42@gmail.com>
5562
5563 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
5564 (gdbscm_make_parameter): Ditto.
5565
a5b1fd27
DE
55662014-06-03 Doug Evans <dje@google.com>
5567
5568 * exec.c (exec_close_1): Call clear_section_table instead of
5569 resize_section_table.
5570 (clear_section_table): New function.
5571 (resize_section_table): Make static. Rename arg num_added to
5572 adjustment.
5573 * exec.h (clear_section_table): Declare.
5574 (resize_section_table): Delete.
5575 * progspace.c (release_program_space): Call clear_section_table
5576 instead of resize_section_table.
5577
0c6e92a5
SC
55782014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5579
5580 * NEWS (Python Scripting): Add entry about the new xmethods
5581 feature.
5582
883964a7
SC
55832014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5584
5585 * python/py-xmethods.c: New file.
5586 * python/py-objfile.c (objfile_object): New field 'xmethods'.
5587 (objfpy_dealloc): XDECREF on the new xmethods field.
5588 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
5589 field.
5590 (objfpy_get_xmethods): New function.
5591 (objfile_getset): New entry 'xmethods'.
5592 * python/py-progspace.c (pspace_object): New field 'xmethods'.
5593 (pspy_dealloc): XDECREF on the new xmethods field.
5594 (pspy_new, pspace_to_pspace_object): Initialize xmethods
5595 field.
5596 (pspy_get_xmethods): New function.
5597 (pspace_getset): New entry 'xmethods'.
5598 * python/python-internal.h: Add declarations for new functions.
5599 * python/python.c (_initialize_python): Invoke
5600 gdbpy_initialize_xmethods.
5601 * python/lib/gdb/__init__.py (xmethods): New
5602 attribute.
5603 * python/lib/gdb/xmethod.py: New file.
5604 * python/lib/gdb/command/xmethods.py: New file.
5605
58992dc5
SC
56062014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5607
5608 * eval.c (evaluate_subexp_standard): Call the xmethod if the
5609 best match method returned by find_overload_match is an xmethod.
5610 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
5611 the best matching operator returned by find_overload_match is an
5612 xmethod.
5613 * valops.c: #include "extension.h".
5614 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
5615 Return void. The list of matching source methods is returned in
5616 "fn_list" and a vector of matching debug method workers is
5617 returned in "xm_worker_vec". Update all callers.
5618 (value_find_oload_method_list): Likewise.
5619 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
5620 non-NULL, then the index of the best matching method in this
5621 vector is returned. Update all callers.
5622 (find_overload_match): Include xmethods while performing overload
5623 resolution.
5624
e81e7f5e
SC
56252014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5626
5627 * defs.h (enum lval_type): New enumerator "lval_xcallable".
5628 * extension-priv.h (struct extension_language_ops): Add the
5629 xmethod interface.
5630 * extension.c (new_xmethod_worker, clone_xmethod_worker,
5631 get_matching_xmethod_workers, get_xmethod_argtypes,
5632 invoke_xmethod, free_xmethod_worker,
5633 free_xmethod_worker_vec): New functions.
5634 * extension.h: #include "common/vec.h".
5635 New function declarations.
5636 (struct xmethod_worker): New struct.
5637 (VEC (xmethod_worker_ptr)): New vector type.
5638 (xmethod_worker_ptr): New typedef.
5639 (xmethod_worker_vec): Likewise.
5640 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
5641 builtin_type.
5642 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
5643 (struct builtin_type): New field "xmethod".
5644 * valarith.c (value_ptradd): Assert that the value argument is not
5645 lval_xcallable.
5646 * valops.c (value_must_coerce_to_target): Return 0 for
5647 lval_xcallable values.
5648 * value.c (struct value): New field XM_WORKER in the field
5649 LOCATION.
5650 (value_address, value_raw_address): Return 0 for lval_xcallable
5651 values.
5652 (set_value_address): Assert that the value is not an
5653 lval_xcallable.
5654 (value_free): Free the associated xmethod worker when freeing
5655 lval_xcallable values.
5656 (set_value_component_location): Assert that the WHOLE value is not
5657 lval_xcallable.
5658 (value_of_xmethod, call_xmethod): New functions.
5659 * value.h: Declare "struct xmethod_worker".
5660 Declare new functions value_of_xmethod, call_xmethod.
5661
ef370185
JB
56622014-06-03 Joel Brobecker <brobecker@adacore.com>
5663 Pedro Alves <palves@redhat.com>
5664
5665 PR breakpoints/17000
5666 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
5667 New function, extracted from software_breakpoint_inserted_here_p.
5668 (software_breakpoint_inserted_here_p): Replace factored out code
5669 by call to find_non_raw_software_breakpoint_inserted_here.
5670 (bp_target_info_copy_insertion_state): New function.
5671 (bkpt_insert_location): Handle the case of a single-step
5672 breakpoint already inserted at the same address.
5673 (bkpt_remove_location): Handle the case of a single-step
5674 breakpoint still inserted at the same address.
5675 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
5676 breakpoint already inserted at the same address.
5677 (deprecated_remove_raw_breakpoint): Handle the case of a
5678 non-raw breakpoint still inserted at the same address.
5679 (find_single_step_breakpoint): New function, extracted from
5680 single_step_breakpoint_inserted_here_p.
5681 (find_single_step_breakpoint): New function,
5682 factored out from single_step_breakpoint_inserted_here_p.
5683 (single_step_breakpoint_inserted_here_p): Reimplement.
5684
1e2ccb61
BM
56852014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
5686
5687 Pushed by Joel Brobecker <brobecker@adacore.com>
5688 * source.c (show_substitute_path_command): Fix display of matching
5689 substitution rules.
5690
d3448d85
GB
56912014-06-03 Gary Benson <gbenson@redhat.com>
5692
5693 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
5694
06eb1586
DE
56952014-06-02 Doug Evans <xdje42@gmail.com>
5696
5697 Add parameter support for Guile.
5698 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
5699 (SUBDIR_GUILE_SRCS): Add scm-param.c.
5700 (scm-param.o): New rule.
5701 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
5702 (gdbscm_misc_error): Declare.
5703 (gdbscm_canonicalize_command_name): Declare.
5704 (gdbscm_scm_to_host_string): Declare.
5705 (gdbscm_scm_from_host_string): Declare.
5706 (gdbscm_initialize_parameters): Declare.
5707 * guile/guile.c (initialize_gdb_module): Call
5708 gdbscm_initialize_parameters.
5709 * guile/lib/gdb.scm: Export parameter symbols.
5710 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
5711 cmdscm_canonicalize_name and made public. All callers updated.
5712 * guile/scm-exception.c (gdbscm_misc_error): New function.
5713 * guile/scm-param.c: New file.
5714 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
5715 (gdbscm_scm_to_host_string): New function.
5716 (gdbscm_scm_from_host_string): New function.
5717 * scm-utils.c (gdbscm_gc_dup_argv): New function.
5718
e698b8c4
DE
57192014-06-02 Doug Evans <xdje42@gmail.com>
5720
5721 Add command support for Guile.
5722 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
5723 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
5724 (scm-cmd.o): New rule.
5725 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
5726 (gdbscm_user_error_p): Declare.
5727 (gdbscm_parse_command_name): Declare.
5728 (gdbscm_valid_command_class_p): Declare.
5729 (gdbscm_initialize_commands): Declare.
5730 * guile/guile.c (initialize_gdb_module): Call
5731 gdbscm_initialize_commands.
5732 * guile/lib/gdb.scm: Export command symbols.
5733 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
5734 (throw-user-error): New function.
5735 * guile/scm-cmd.c: New file.
5736 * guile/scm-exception.c (user_error_symbol): New static global.
5737 (gdbscm_user_error_p): New function.
5738 (gdbscm_initialize_exceptions): Set user_error_symbol.
5739 * scm-utils.c (gdbscm_gc_xstrdup): New function.
5740
fb1f94b0
PM
57412014-06-02 Phil Muldoon <pmuldoon@redhat.com>
5742
5743 * top.c (command_loop): Handle comments here...
5744 (command_line_input): ... not here.
5745
ded03782
DE
57462014-06-02 Doug Evans <xdje42@gmail.com>
5747
5748 Add progspace support for Guile.
5749 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
5750 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
5751 (scm-progspace.o): New rule.
5752 * guile/guile-internal.h (pspace_smob): New typedef.
5753 (psscm_pspace_smob_pretty_printers): Declare.
5754 (psscm_pspace_smob_from_pspace): Declare.
5755 (psscm_scm_from_pspace): Declare.
5756 * guile/guile.c (initialize_gdb_module): Call
5757 gdbscm_initialize_pspaces.
5758 * guile/lib/gdb.scm: Export progspace symbols.
5759 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
5760 support.
5761 (append-pretty-printer!): Ditto.
5762 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
5763 Implement.
5764 * guile/scm-progspace.c: New file.
5765
397998fc
AM
57662014-06-03 Alan Modra <amodra@gmail.com>
5767
5768 * ppc64-tdep.c (ppc64_standard_linkage8): New.
5769 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
5770
6aa5f3a6
DE
57712014-06-02 Doug Evans <dje@google.com>
5772
5773 Add support for skeletonless type units.
5774 * dwarf2read.c (struct dwarf2_per_objfile): New member
5775 n_allocated_type_units.
5776 (struct dwarf2_per_objfile) <tu_stats>: New member
5777 nr_all_type_units_reallocs.
5778 (create_signatured_type_table_from_index): Initialize
5779 n_allocated_type_units
5780 (create_all_type_units): Ditto.
5781 (add_type_unit): Move up in file. New arg slot.
5782 All callers updated. Increase space for all_type_units more
5783 efficiently.
5784 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
5785 (lookup_dwo_signatured_type): Handle skeletonless TUs.
5786 (lookup_dwp_signatured_type): Ditto.
5787 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
5788 All callers updated.
5789 (build_type_psymtabs_1): Leave type_unit_groups as
5790 NULL if no TUs present.
5791 (print_tu_stats): New function.
5792 (process_skeletonless_type_unit): New function.
5793 (process_dwo_file_for_skeletonless_type_units): New
5794 function.
5795 (process_skeletonless_type_units): New function.
5796 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
5797 Call print tu_stats if debugging enabled.
5798
41fac0cf
PA
57992014-06-02 Pedro Alves <palves@redhat.com>
5800
5801 * breakpoint.c (build_target_command_list): Don't build a command
5802 list if we have any duplicate location that isn't a dprintf.
5803
cd1608cc
PA
58042014-06-02 Pedro Alves <palves@redhat.com>
5805
5806 * breakpoint.c (dprintf_breakpoint_hit): New function.
5807 (initialize_breakpoint_ops): Install it as dprintf's
5808 breakpoint_hit method.
5809
486ef3b9
JB
58102014-06-02 Joel Brobecker <brobecker@adacore.com>
5811
5812 * source.c (substitute_path_rule_matches): Simplify using
5813 filename_ncmp instead of FILENAME_CMP.
5814
230cd560
JB
58152014-06-02 Joel Brobecker <brobecker@adacore.com>
5816
5817 * source.c (substitute_path_rule_matches): Remove trailing spaces.
5818
16954d5d
LC
58192014-06-01 Ludovic Courtès <ludo@gnu.org>
5820
5821 * configure.ac: When Guile is available, check for the
5822 availability of 'scm_new_smob'.
5823 * configure, config.h.in: Regenerate.
5824 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
5825 function.
5826
53e8a631
AB
58272014-05-30 Andrew Burgess <aburgess@broadcom.com>
5828
5829 * frame.c (struct frame_info): Add stop_string field.
5830 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
5831 (get_prev_frame_always): Old content moved into
5832 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
5833 TRY_CATCH, handle MEMORY_ERROR exceptions.
5834 (frame_stop_reason_string): New function definition.
5835 * frame.h (unwind_stop_reason_to_string): Extend comment to
5836 mention frame_stop_reason_string.
5837 (frame_stop_reason_string): New function declaration.
5838 * stack.c (frame_info): Switch to frame_stop_reason_string.
5839 (backtrace_command_1): Switch to frame_stop_reason_string.
5840 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
5841 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
5842 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
5843
70e38b8e
AB
58442014-05-30 Andrew Burgess <aburgess@broadcom.com>
5845
5846 * frame.c (frame_stop_reason_string): Rename to ...
5847 (unwind_stop_reason_to_string): this.
5848 * frame.h (frame_stop_reason_string): Rename to ...
5849 (unwind_stop_reason_to_string): this.
5850 * stack.c (frame_info): Update call to frame_stop_reason_string.
5851 (backtrace_command_1): Likewise.
5852 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
5853 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
5854
938f0e2f
AB
58552014-05-30 Andrew Burgess <aburgess@broadcom.com>
5856
5857 * frame.c (remove_prev_frame): New function.
5858 (get_prev_frame_if_no_cycle): Create / discard cleanup using
5859 remove_prev_frame.
5860
a09dd441
PA
58612014-05-29 Pedro Alves <palves@redhat.com>
5862
5863 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
5864 and make it const. When a single-step decays to a continue,
5865 clear 'step', not 'hw_step'. Pass whether the caller wanted
5866 to step to user_visible_resume_ptid, not what we ask the
5867 target to do.
5868
bdc36728
PA
58692014-05-29 Pedro Alves <palves@redhat.com>
5870
5871 * infrun.c (process_event_stop_test, handle_step_into_function)
5872 (handle_step_into_function_backward): Adjust.
5873 Don't set the even thread's stop_step and call stop_waiting before
5874 calling end_stepping_range. Instead do that ...
5875 (end_stepping_range): ... here. Take an ecs pointer parameter.
5876
22bcd14b
PA
58772014-05-29 Pedro Alves <palves@redhat.com>
5878
5879 * infrun.c (stop_stepping): Rename to ...
5880 (stop_waiting): ... this.
5881 (proceed): Update comment.
5882 (process_event_stop_test, handle_inferior_event)
5883 (handle_signal_stop, handle_step_into_function)
5884 (handle_step_into_function_backward): Update.
5885
4ae57c05
PA
58862014-05-29 Pedro Alves <palves@redhat.com>
5887
5888 * infcall.c (run_inferior_call): Don't check whether the current
5889 thread is running after the proceed call.
5890
329ea579
PA
58912014-05-29 Pedro Alves <palves@redhat.com>
5892 Tom Tromey <tromey@redhat.com>
5893
5894 * NEWS: Mention "maint set target-async", "set mi-async", and that
5895 background execution commands are now always available.
5896 * target.h (target_async_permitted): Update comment.
5897 * target.c (target_async_permitted, target_async_permitted_1):
5898 Default to 1.
5899 (set_target_async_command): Rename to ...
5900 (maint_set_target_async_command): ... this.
5901 (show_target_async_command): Rename to ...
5902 (maint_show_target_async_command): ... this.
5903 (_initialize_target): Adjust.
5904 * infcmd.c (prepare_execution_command): Make extern.
5905 * inferior.h (prepare_execution_command): Declare.
5906 * infrun.c (set_observer_mode): Leave target async alone.
5907 * mi/mi-interp.c (mi_interpreter_init): Install
5908 mi_on_sync_execution_done as sync_execution_done observer.
5909 (mi_on_sync_execution_done): New function.
5910 (mi_execute_command_input_handler): Don't print the prompt if we
5911 just started a synchronous command with an async target.
5912 (mi_on_resume): Check sync_execution before printing prompt.
5913 * mi/mi-main.h (mi_async_p): Declare.
5914 * mi/mi-main.c: Include gdbcmd.h.
5915 (mi_async_p): New function.
5916 (mi_async, mi_async_1): New globals.
5917 (set_mi_async_command, show_mi_async_command, mi_async): New
5918 functions.
5919 (exec_continue): Call prepare_execution_command.
5920 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
5921 (mi_execute_async_cli_command): Use mi_async_p.
5922 (_initialize_mi_main): Install "set mi-async". Make
5923 "target-async" a deprecated alias.
5924
92bcb5f9
PA
59252014-05-29 Pedro Alves <palves@redhat.com>
5926
5927 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
5928 (_initialize_cli_interp): Adjust.
5929 * event-loop.c: Include "observer.h".
5930 (start_event_loop): Notify 'command_error' observers instead of
5931 calling display_gdb_prompt. Remove FIXME comment.
5932 * event-top.c (display_gdb_prompt): Remove call into the
5933 interpreters.
5934 * inf-loop.c: Include "observer.h".
5935 (inferior_event_handler): Notify 'command_error' observers instead
5936 of calling display_gdb_prompt.
5937 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
5938 observers instead of calling display_gdb_prompt.
5939 * interps.c (interp_set): Don't call display_gdb_prompt.
5940 (current_interp_display_prompt_p): Delete.
5941 * interps.h (interp_prompt_p): Delete declaration.
5942 (interp_prompt_p_ftype): Delete.
5943 (struct interp_procs) <prompt_proc_p>: Delete field.
5944 (current_interp_display_prompt_p): Delete declaration.
5945 * mi-interp.c (mi_interpreter_prompt_p): Delete.
5946 (_initialize_mi_interp): Adjust.
5947 * tui-interp.c (tui_init): Install 'sync_execution_done' and
5948 'command_error' observers.
5949 (tui_on_sync_execution_done, tui_on_command_error): New
5950 functions.
5951 (tui_display_prompt_p): Delete.
5952 (_initialize_tui_interp): Adjust.
5953
fd664c91
PA
59542014-05-29 Pedro Alves <palves@redhat.com>
5955
5956 PR gdb/13860
5957 * cli/cli-interp.c: Include infrun.h and observer.h.
5958 (cli_uiout, cli_interp): New globals.
5959 (cli_on_signal_received, cli_on_end_stepping_range)
5960 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
5961 functions.
5962 (cli_interpreter_init): Install them as 'end_stepping_range',
5963 'signal_received' 'signal_exited', 'exited' and 'no_history'
5964 observers.
5965 (_initialize_cli_interp): Remove cli_interp local.
5966 * infrun.c (handle_inferior_event): Call the several stop reason
5967 observers instead of printing the stop reason directly.
5968 (end_stepping_range): New function.
5969 (print_end_stepping_range_reason, print_signal_exited_reason)
5970 (print_exited_reason, print_signal_received_reason)
5971 (print_no_history_reason): Make static, and add an uiout
5972 parameter. Print to that instead of to CURRENT_UIOUT.
5973 * infrun.h (print_end_stepping_range_reason)
5974 (print_signal_exited_reason, print_exited_reason)
5975 (print_signal_received_reason print_no_history_reason): New
5976 declarations.
5977 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
5978 'mi_uiout'.
5979 <cli_uiout>: New field.
5980 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
5981 uiout for CLI output. Install 'signal_received',
5982 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
5983 observers.
5984 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
5985 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
5986 (mi_on_no_history): New functions.
5987 (ui_out_free_cleanup): Delete function.
5988 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
5989 instead use the one already stored in the MI interpreter data.
5990 (mi_ui_out): Adjust.
5991 * tui/tui-interp.c: Include infrun.h and observer.h.
5992 (tui_interp): New global.
5993 (tui_on_signal_received, tui_on_end_stepping_range)
5994 (tui_on_signal_exited, tui_on_exited)
5995 (tui_on_no_history): New functions.
5996 (tui_init): Install them as 'end_stepping_range',
5997 'signal_received' 'signal_exited', 'exited' and 'no_history'
5998 observers.
5999 (_initialize_tui_interp): Delete tui_interp local.
6000
8817a6f2
PA
60012014-05-29 Pedro Alves <palves@redhat.com>
6002
6003 PR gdb/15713
6004 * linux-nat.c (linux_nat_resume_callback): Rename the second
6005 parameter to 'except'. Skip LP if it points to EXCEPT.
6006 (linux_nat_resume): Don't mark the event lwp as not stopped
6007 before resuming sibling lwps. Instead ask
6008 linux_nat_resume_callback to skip the event lwp. Mark it as not
6009 stopped after actually resuming it.
6010 (linux_handle_syscall_trap): Mark the lwp as not stopped after
6011 resuming it.
6012 (wait_lwp): Mark the lwp as stopped here.
6013 (stop_wait_callback): Mark the lwp as not stopped right after
6014 resuming it. Don't mark lwps as stopped here.
6015 (linux_nat_filter_event): Mark the lwp as stopped earlier.
6016 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
6017
251bde03
PA
60182014-05-29 Pedro Alves <palves@redhat.com>
6019
6020 PR PR15693
6021 * infrun.c (resume): Determine how much to resume depending on
6022 whether the caller wanted a step, not whether we can hardware step
6023 the target. Mark all threads that we intend to run as running,
6024 unless we're calling an inferior function.
6025 (normal_stop): If the thread is running an infcall, don't finish
6026 thread state.
6027 * target.c (target_resume): Don't mark threads as running here.
6028
7f3c0343
JB
60292014-05-28 Joel Brobecker <brobecker@adacore.com>
6030
6031 * serial.c (_initialize_serial): Remove support for
6032 the "set remotebaud" and "show remotebaud" commands.
6033 * NEWS: Add entry documenting the removal of that command.
6034
ee34b3f9
YQ
60352014-05-28 Yao Qi <yao@codesourcery.com>
6036
6037 * charset.c: Fix typo in comments.
6038
add6c04d
GB
60392014-05-27 Gary Benson <gbenson@redhat.com>
6040
6041 * utils.c (internal_vproblem): Prompt for a bug report.
6042
92c48fc5
AW
60432014-05-26 Andy Wingo <wingo@igalia.com>
6044
6045 * guile/scm-arch.c (arscm_mark_arch_smob):
6046 * guile/scm-block.c (bkscm_mark_block_smob)
6047 (bkscm_mark_block_syms_progress_smob):
6048 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
6049 * guile/scm-exception.c (exscm_mark_exception_smob):
6050 * guile/scm-frame.c (frscm_mark_frame_smob):
6051 * guile/scm-iterator.c (itscm_mark_iterator_smob):
6052 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
6053 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
6054 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
6055 (ppscm_mark_pretty_printer_worker_smob):
6056 * guile/scm-symbol.c (syscm_mark_symbol_smob):
6057 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
6058 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
6059 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
6060 mark functions.
6061 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
6062 function.
6063
b2715b27
AW
60642014-05-26 Andy Wingo <wingo@igalia.com>
6065 Doug Evans <xdje42@gmail.com>
6066
6067 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
6068 empty_base_class. All uses updated.
6069 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
6070 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
6071 Adapt all callers.
6072 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
6073 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
6074 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
6075 (gdbscm_gsmob_has_property_p, add_property_name)
6076 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
6077 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
6078 (gdb-object-has-property?, gdb-object-properties): Remove.
6079 (gdb-object-kind): Renamed from gsmob-kind.
6080
214ab2da
AW
60812014-05-26 Andy Wingo <wingo@igalia.com>
6082
6083 * configure.ac (try_guile_versions): Allow building with guile 2.2.
6084 * configure: Regenerate.
6085
589fdceb
MM
60862014-05-23 Markus Metzger <markus.t.metzger@intel.com>
6087
6088 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
6089
67b5c0c1
MM
60902014-05-23 Markus Metzger <markus.t.metzger@intel.com>
6091
6092 * record-btrace.c (record_btrace_allow_memory_access): Remove.
6093 (replay_memory_access_read_only, replay_memory_access_read_write)
6094 (replay_memory_access_types, replay_memory_access)
6095 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
6096 (cmd_set_record_btrace, cmd_show_record_btrace)
6097 (cmd_show_replay_memory_access): New.
6098 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
6099 (record_btrace_remove_breakpoint): Replace
6100 record_btrace_allow_memory_access with replay_memory_access.
6101 (_initialize_record_btrace): Add commands.
6102 * NEWS: Announce it.
6103
036cd381
RR
61042014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6105
6106 * aarch64-linux-nat.c (asm/ptrace.h): Include.
6107
c77c1e42
RR
61082014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6109
6110 * MAINTAINERS (Write After Approval): Move self back from
6111 paper trail.
6112
45741a9c
PA
61132014-05-22 Pedro Alves <palves@redhat.com>
6114
6115 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
6116 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
6117 (disable_randomization, enum exec_direction_kind)
6118 (execution_direction, stop_registers, start_remote)
6119 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
6120 (wait_for_inferior, normal_stop, get_last_target_status)
6121 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
6122 (insert_step_resume_breakpoint_at_sal)
6123 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
6124 (set_step_info, print_stop_event, signal_stop_state)
6125 (signal_print_state, signal_pass_state, signal_stop_update)
6126 (signal_print_update, signal_pass_update)
6127 (update_signals_program_target, clear_exit_convenience_vars)
6128 (displaced_step_dump_bytes, update_observer_mode)
6129 (signal_catch_update, gdb_signal_from_command): Move
6130 declarations ...
6131 * infrun.h: ... to this new file.
6132 * amd64-tdep.c: Include infrun.h.
6133 * annotate.c: Include infrun.h.
6134 * arch-utils.c: Include infrun.h.
6135 * arm-linux-tdep.c: Include infrun.h.
6136 * arm-tdep.c: Include infrun.h.
6137 * break-catch-sig.c: Include infrun.h.
6138 * breakpoint.c: Include infrun.h.
6139 * common/agent.c: Include infrun.h instead of inferior.h.
6140 * corelow.c: Include infrun.h.
6141 * event-top.c: Include infrun.h.
6142 * go32-nat.c: Include infrun.h.
6143 * i386-tdep.c: Include infrun.h.
6144 * inf-loop.c: Include infrun.h.
6145 * infcall.c: Include infrun.h.
6146 * infcmd.c: Include infrun.h.
6147 * infrun.c: Include infrun.h.
6148 * linux-fork.c: Include infrun.h.
6149 * linux-nat.c: Include infrun.h.
6150 * linux-thread-db.c: Include infrun.h.
6151 * monitor.c: Include infrun.h.
6152 * nto-tdep.c: Include infrun.h.
6153 * procfs.c: Include infrun.h.
6154 * record-btrace.c: Include infrun.h.
6155 * record-full.c: Include infrun.h.
6156 * remote-m32r-sdi.c: Include infrun.h.
6157 * remote-mips.c: Include infrun.h.
6158 * remote-notif.c: Include infrun.h.
6159 * remote-sim.c: Include infrun.h.
6160 * remote.c: Include infrun.h.
6161 * reverse.c: Include infrun.h.
6162 * rs6000-tdep.c: Include infrun.h.
6163 * s390-linux-tdep.c: Include infrun.h.
6164 * solib-irix.c: Include infrun.h.
6165 * solib-osf.c: Include infrun.h.
6166 * solib-svr4.c: Include infrun.h.
6167 * target.c: Include infrun.h.
6168 * top.c: Include infrun.h.
6169 * windows-nat.c: Include infrun.h.
6170 * mi/mi-interp.c: Include infrun.h.
6171 * mi/mi-main.c: Include infrun.h.
6172 * python/py-threadevent.c: Include infrun.h.
6173
98eb56a4
PA
61742014-05-22 Pedro Alves <palves@redhat.com>
6175
6176 * infrun.c (handle_inferior_event): Store the exit code for
6177 --return-child-result here, instead of ...
6178 (print_exited_reason): ... here.
6179
17b2616c
PA
61802014-05-21 Pedro Alves <palves@redhat.com>
6181
6182 PR gdb/13860
6183 * gdbthread.h (struct thread_control_state): New field
6184 `command_interp'.
6185 * infrun.c (follow_fork): Copy the new thread control field to the
6186 child fork thread.
6187 (clear_proceed_status_thread): Clear the new thread control field.
6188 (proceed): Set the new thread control field.
6189 * interps.h (command_interp): Declare.
6190 * interps.c (command_interpreter): New global.
6191 (command_interp): New function.
6192 (interp_exec): Set `command_interpreter' while here.
6193 * cli-out.c (cli_uiout_dtor): New function.
6194 (cli_ui_out_impl): Install it.
6195 * mi/mi-interp.c: Include cli-out.h.
6196 (mi_cmd_interpreter_exec): Add comment.
6197 (restore_current_uiout_cleanup): New function.
6198 (ui_out_free_cleanup): New function.
6199 (mi_on_normal_stop): If finishing an execution command started by
6200 a CLI command, or any kind of breakpoint-like event triggered,
6201 print the stop event to the output (CLI) stream.
6202 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
6203
5166082f
PA
62042014-05-21 Pedro Alves <palves@redhat.com>
6205
6206 * cli/cli-cmds.c (list_command): Handle the first "list" after the
6207 current source line having changed.
6208 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
6209 * infrun.c (normal_stop): Adjust call to
6210 set_current_sal_from_frame.
6211 * source.c (clear_lines_listed_range): New function.
6212 (set_current_source_symtab_and_line, identify_source_line): Clear
6213 the lines listed range.
6214 (line_info): Handle the first "info line" after the current source
6215 line having changed.
6216 * stack.c (print_stack_frame): Remove center handling.
6217 (set_current_sal_from_frame): Remove 'center' parameter. Don't
6218 center sal.line.
6219
c1ee2fb3
PA
62202014-05-21 Pedro Alves <palves@redhat.com>
6221
6222 * inf-child.c (inf_child_mourn_inferior): New function.
6223 * inf-child.h (inf_child_mourn_inferior): New declaration.
6224 * darwin-nat.c (darwin_mourn_inferior): Use
6225 inf_child_mourn_inferior.
6226 * gnu-nat.c (gnu_mourn_inferior): Likewise.
6227 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
6228 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
6229 * nto-procfs.c (procfs_mourn_inferior): Likewise.
6230 * windows-nat.c (windows_mourn_inferior): Likewise.
6231
5c6d4fb2
DE
62322014-05-21 Doug Evans <xdje42@gmail.com>
6233
250748cb 6234 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5c6d4fb2 6235
4a2722c5
DE
62362014-05-21 Doug Evans <xdje42@gmail.com>
6237
17292b30 6238 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4a2722c5
DE
6239 (gdbscm_out_of_range_error): Ditto.
6240 (gdbscm_memory_error): Ditto.
250748cb
DE
6241 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
6242 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4a2722c5
DE
6243 (gdbscm_out_of_range_error): Update.
6244 (gdbscm_memory_error): Update.
6245 (gdbscm_scm_to_target_string_unsafe): Delete.
6246
6a3cb8e8
PA
62472014-05-21 Pedro Alves <palves@redhat.com>
6248
6249 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
6250 globals.
6251 (inf_child_open_target): New function.
6252 (inf_child_open): Use inf_child_open_target to push the target
6253 instead of erroring out.
6254 (inf_child_disconnect, inf_child_close)
6255 (inf_child_maybe_unpush_target): New functions.
6256 (inf_child_target): Install inf_child_disconnect and
6257 inf_child_close. Store a pointer to the returned object.
6258 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
6259 declarations.
6260 * target.c (auto_connect_native_target): New global.
6261 (show_default_run_target): New function.
6262 (find_default_run_target): Return NULL if automatically connecting
6263 to the native target is disabled.
6264 (_initialize_target): Install set/show auto-connect-native-target.
6265 * NEWS: Mention "set auto-connect-native-target", and "target
6266 native".
6267 * linux-nat.c (super_close): New global.
6268 (linux_nat_close): Call super_close.
6269 (linux_nat_add_target): Store a pointer to the base class's
6270 to_close method.
6271 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
6272 inf_child_maybe_unpush.
6273 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
6274 already pushed.
6275 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
6276 the inferior. Use inf_child_maybe_unpush_target.
6277 (inf_ttrace_attach): Don't push the target if it is already
6278 pushed.
6279 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
6280 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
6281 after mourning the inferior. Use inf_child_maybe_unpush_target.
6282 (darwin_attach_pid): Don't push the target if it is already
6283 pushed.
6284 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
6285 mourning the inferior. Use inf_child_maybe_unpush_target.
6286 (gnu_detach): Use inf_child_maybe_unpush_target.
6287 * go32-nat.c (go32_create_inferior): Don't push the target if it
6288 is already pushed.
6289 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
6290 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
6291 (procfs_open): Rename to ...
6292 (procfs_open_1): ... this. Add target_ops parameter. Adjust
6293 comments. Can target_preopen before changing node. Call
6294 inf_child_open_target to push the target explicitly.
6295 (procfs_attach): Don't push the target if it is already pushed.
6296 (procfs_detach): Use inf_child_maybe_unpush_target.
6297 (procfs_create_inferior): Don't push the target if it is already
6298 pushed.
6299 (nto_native_ops): New global.
6300 (procfs_open): Reimplement.
6301 (procfs_native_open): New function.
6302 (init_procfs_targets): Install procfs_native_open as to_open of
6303 "target native". Store a pointer to the "native" target in
6304 nto_native_ops.
6305 * procfs.c (procfs_attach): Don't push the target if it is already
6306 pushed.
6307 (procfs_detach): Use inf_child_maybe_unpush_target.
6308 (procfs_mourn_inferior): Only unpush the target after mourning the
6309 inferior. Use inf_child_maybe_unpush_target.
6310 (procfs_init_inferior): Don't push the target if it is already
6311 pushed.
6312 * windows-nat.c (do_initial_windows_stuff): Don't push the target
6313 if it is already pushed.
6314
930ee1b1
PA
63152014-05-21 Pedro Alves <palves@redhat.com>
6316
6317 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
6318 and "procfs" targets are now called "native" instead.
6319
1f5d1b13
PA
63202014-05-21 Pedro Alves <palves@redhat.com>
6321
6322 * go32-nat.c (go32_open): Delete.
6323 (go32_target): Don't override the to_open method.
6324
132f8e03
PA
63252014-05-21 Pedro Alves <palves@redhat.com>
6326
6327 * nto-procfs.c (procfs_can_run): New function.
6328 (nto_procfs_ops): New global.
6329 (init_procfs_targets): New, based on procfs_target. Install
6330 "target native" in addition to "target procfs".
6331 (_initialize_procfs): Call init_procfs_targets instead of adding
6332 the target here.
6333
03c136c3
PA
63342014-05-21 Pedro Alves <palves@redhat.com>
6335
6336 * windows-nat.c (windows_target): Don't override to_shortname,
6337 to_longname or to_doc.
6338
a635d0f3
PA
63392014-05-21 Pedro Alves <palves@redhat.com>
6340
6341 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
6342 to_doc.
6343
4f9b5133
PA
63442014-05-21 Pedro Alves <palves@redhat.com>
6345
6346 * darwin-nat.c (_initialize_darwin_inferior): Don't override
6347 to_shortname, to_longname or to_doc.
6348
bc85afde
PA
63492014-05-21 Pedro Alves <palves@redhat.com>
6350
6351 * go32-nat.c (go32_target): Don't override to_shortname,
6352 to_longname or to_doc.
6353
4ebfc96e
PA
63542014-05-21 Pedro Alves <palves@redhat.com>
6355
6356 * inf-child.c (inf_child_open): Remove mention of "child".
6357 (inf_child_target): Rename target to "native" instead of "child".
6358
2648dfed
AA
63592014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6360
6361 * Makefile.in (SFILES): Delete "regset.c".
6362 (COMMON_OBS): Delete "regset.o".
6363 * regset.c: Remove.
6364 * regset.h (regset_alloc): Delete prototype.
6365
b13feb94
AA
63662014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6367
6368 * sparc-linux-tdep.c (sparc32_linux_gregset)
6369 (sparc32_linux_fpregset): New static regset structures.
6370 (sparc32_linux_init_abi): Drop dynamic regset allocations.
6371 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
6372 'fpregset' fields.
6373 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
6374 (sparc64_linux_fpregset): New static regset structures.
6375 (sparc64_linux_init_abi): Drop dynamic regset allocations.
6376 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
6377 New static regset structures.
6378 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
6379 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
6380 New static regset structures.
6381 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
6382 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
6383 New static regset structures.
6384 (sparc64obsd_init_abi): Drop dynamic regset allocations.
6385 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
6386 New static regset structures.
6387 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
6388
b4fd25c9
AA
63892014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6390
6391 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
6392 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
6393 register maps ("regmaps") from "*regset" to "*regmap". Do this
6394 for all regmap types and variables.
6395 * sparc-linux-tdep.c (sparc32_linux_step_trap)
6396 (sparc32_linux_supply_core_gregset)
6397 (sparc32_linux_collect_core_gregset)
6398 (sparc32_linux_supply_core_fpregset)
6399 (sparc32_linux_collect_core_fpregset): Likewise.
6400 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
6401 (sparc_gregmap, sparc_fpregmap): ... these.
6402 (sparc_supply_gregset, sparc_collect_gregset)
6403 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6404 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
6405 (_initialize_sparc_nat): Rename regmaps.
6406 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
6407 (sparc_gregmap, sparc_fpregmap): ... these.
6408 (sparc_supply_gregset, sparc_collect_gregset)
6409 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6410 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
6411 Rename macros to...
6412 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
6413 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
6414 Likewise.
6415 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
6416 Rename to...
6417 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
6418 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
6419 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
6420 regmaps.
6421 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6422 (sparc32_bsd_fpregset): Rename to...
6423 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6424 (sparc32_bsd_fpregmap): ... these.
6425 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
6426 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6427 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
6428 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
6429 (struct sparc_gregmap, struct sparc_fpregmap)
6430 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6431 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
6432 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
6433 (sparc32_supply_regset, sparc32_collect_gregset)
6434 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
6435 prototypes.
6436 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
6437 (sparc64_linux_ptrace_gregmap): ... this.
6438 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
6439 (_initialize_sparc64_linux_nat): Rename regmaps.
6440 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
6441 (sparc64_linux_core_gregmap): ... this.
6442 (sparc64_linux_supply_core_gregset)
6443 (sparc64_linux_collect_core_gregset)
6444 (sparc64_linux_supply_core_fpregset)
6445 (sparc64_linux_collect_core_fpregset): Rename regmaps.
6446 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
6447 (sparc64_sol2_fpregset): Rename to...
6448 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
6449 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
6450 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
6451 regmaps.
6452 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
6453 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
6454 (sparc64_bsd_fpregset): Rename to...
6455 (struct sparc_gregmap, sparc64_sol2_gregmap)
6456 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
6457 (sparc64_bsd_fpregmap): ... these.
6458 (sparc64_supply_gregset, sparc64_collect_gregset)
6459 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
6460 prototypes.
6461 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
6462 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
6463 (sparc64fbsd_gregmap): ... this.
6464 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
6465 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
6466 Rename regmaps.
6467 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
6468 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
6469 (sparc64nbsd_collect_fpregset): Likewise.
6470 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
6471 (sparc64nbsd_gregmap): ... this.
6472 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
6473 regmaps.
6474 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
6475 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
6476 (sparc64obsd_gregmap): ... this.
6477 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
6478 regmaps.
6479 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
6480 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
6481 (sparc32nbsd_gregmap): ... this.
6482 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
6483 regmaps.
6484
8fea3224
AA
64852014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6486
6487 * score-tdep.c (score7_linux_gregset): New static regset
6488 structure.
6489 (score7_linux_regset_from_core_section): Remove dynamic regset
6490 allocation.
6491 (score_gdbarch_init): Drop allocation of tdep structure.
6492 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
6493
24534243
AA
64942014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6495
6496 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
6497 regset structures.
6498 (am33_regset_from_core_section): Remove dynamic regset
6499 allocations.
6500
b7195f27
AA
65012014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6502
6503 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
6504 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
6505 structures.
6506 (mips_linux_regset_from_core_section): Remove dynamic regset
6507 allocations.
6508 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6509 'gregset64', 'fpregset', and 'fpregset64'.
6510 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
6511 deleted tdep fields.
6512
ecc37a5a
AA
65132014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6514
6515 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
6516 regset structures.
6517 (amd64_regset_from_core_section): Remove dynamic regset
6518 allocations.
6519 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
6520 structure.
6521 (amd64obsd_regset_from_core_section): Remove dynamic regset
6522 allocation.
6523 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
6524 Likewise.
6525 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
6526 x86-common regset supply function.
6527 * i386-tdep.c (i386_collect_gregset): Make static.
6528 (i386_gregset): New global regset structure.
6529 (i386_fpregset, i386_xstateregset): New static regset structures.
6530 (i386_regset_from_core_section): Remove dynamic regset
6531 allocations.
6532 (i386_gdbarch_init): Remove initialization of tdep fields
6533 'gregset', 'fpregset', and 'xstateregset'.
6534 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6535 'fpregset', and 'xstateregset'.
6536 (i386_collect_gregset): Remove prototype.
6537 (i386_gregset): New declaration.
6538 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
6539 structure.
6540 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
6541 allocation.
6542
b7611c43
AA
65432014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6544
6545 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
6546 (arm_linux_vfpregset): New static regset structures.
6547 (arm_linux_regset_from_core_section): Remove dynamic allocation of
6548 regset structures.
6549 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
6550 and 'vfpregset' fields.
6551
a069a2bd
AA
65522014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6553
6554 * aarch64-linux-tdep.c (aarch64_linux_gregset)
6555 (aarch64_linux_fpregset): New static regset structures.
6556 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
6557 of regset structures.
6558 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
6559 'fpregset' fields.
6560
09424cff
AA
65612014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6562
6563 * regset.h (struct regset): Remove gdbarch field.
6564 * regset.c (regset_alloc): Drop initialization of gdbarch field.
6565 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6566 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
6567 Likewise.
6568 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
6569 (ppc32_linux_fpregset, ppc32_linux_vrregset)
6570 (ppc32_linux_vsxregset): Likewise.
6571 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
6572 via the regcache instead of the regset.
6573 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
6574 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
6575 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
6576 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
6577 Likewise.
6578
3ca7dae4
AA
65792014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6580
6581 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
6582 Constify structures.
6583 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
6584 (alphanbsd_aout_gregset): Likewise.
6585 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
6586 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
6587 Likewise.
6588 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
6589 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
6590 Likewise.
6591 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
6592 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
6593 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
6594 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
6595 * m88k-tdep.c (m88k_gregset): Likewise.
6596 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
6597 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
6598 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6599 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
6600 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
6601 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
6602 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
6603 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
6604 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
6605 Likewise.
6606 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
6607 * sh-tdep.h (sh_corefile_gregset): Likewise.
6608 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
6609 * vax-tdep.c (vax_gregset): Likewise.
6610
5876f503
JK
66112014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6612
6613 Fix TLS access for -static -pthread.
6614 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
6615 (try_thread_db_load_1): Initialize it.
6616 (thread_db_get_thread_local_address): Call it if LM is zero.
6617 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
6618 * target.h (struct target_ops) (to_get_thread_local_address): Add
6619 load_module_addr comment.
6620
0256a6ac
PA
66212014-05-21 Pedro Alves <palves@redhat.com>
6622
6623 * dcache.c (dcache_read_memory_partial): If reading the cache line
6624 fails, fallback to reading just the memory the caller wanted.
6625
227533ac
DE
66262014-05-20 Doug Evans <dje@google.com>
6627
6628 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
6629 instead of get_current_arch.
6630
936d2992
PA
66312014-05-20 Pedro Alves <palves@redhat.com>
6632
6633 * NEWS: Mention that compare-sections now works with all targets.
6634
6635 * remote.c (PACKET_qCRC): New enum value.
6636 (remote_verify_memory): Don't send qCRC if the target has no
6637 execution. Use packet_support/packet_ok. If the target doesn't
6638 support the qCRC packet, fallback to a deep memory copy.
6639 (compare_sections_command): Say "target image" instead of "remote
6640 executable".
6641 (_initialize_remote): Add PACKET_qCRC to the list of config
6642 packets that have no associated command. Extend comment.
6643 * target.c (simple_verify_memory, default_verify_memory): New
6644 function.
6645 * target.h (struct target_ops) <to_verify_memory>: Default to
6646 default_verify_memory.
6647 (simple_verify_memory): New declaration.
6648 * target-delegates.c: Regenerate.
6649
e59fa00f
MM
66502014-05-20 Markus Metzger <markus.t.metzger@intel.com>
6651
6652 * record-btrace.c (record_btrace_step_thread): Check for empty history.
6653
f2205de0
HZ
66542014-05-20 Hui Zhu <hui@codesourcery.com>
6655 Yao Qi <yao@codesourcery.com>
6656
6657 PR backtrace/16558
6658 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
6659 and change address of sp and pc.
6660
c4e54771
TT
66612014-05-19 Tom Tromey <tromey@redhat.com>
6662
6663 * gdbtypes.c (rank_function): Use XNEWVEC.
6664 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
6665
73051182
DE
66662014-05-19 Doug Evans <dje@google.com>
6667
6668 * dwarf2read.c (build_type_psymtabs_1): Renamed from
6669 build_type_unit_groups and moved closer to only caller. Remove
6670 arguments. All references updated. Remove outdated .gdb_index
6671 comment.
6672 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
6673 build_type_psymtabs_1.
6674
8832e7e3
DE
66752014-05-19 Doug Evans <dje@google.com>
6676
6677 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
6678 n_type_unit_groups, all_type_unit_groups. All uses removed.
6679 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
6680 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
6681 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
6682 (add_type_unit_group_to_table): Delete.
6683
cd8ae15e
DE
66842014-05-19 Doug Evans <dje@google.com>
6685
6686 * eval.c (evaluate_subexp_standard): Add some comments.
6687
08f4850b
DE
66882014-05-17 Doug Evans <xdje42@gmail.com>
6689
6690 * progspace.c (remove_program_space): Delete, unused.
6691 * progspace.h (remove_program_space): Ditto.
6692
bed8455c
DE
66932014-05-17 Doug Evans <xdje42@gmail.com>
6694
6695 * inferior.c (prune_inferiors): Fix comment.
6696 (remove_inferior_command): Call prune_program_spaces.
6697
8d551b02
DE
66982014-05-16 Doug Evans <dje@google.com>
6699
6700 New command line option -D.
6701 * NEWS: Mention it.
6702 * main.c (set_gdb_data_directory): New function.
6703 (captured_main): Recognize -D. Flag error for --data-directory "".
6704 Call set_gdb_data_directory.
6705 (print_gdb_help): Print --data-directory, -D.
6706 * main.h (set_gdb_data_directory): Declare.
6707 * top.c (staged_gdb_datadir): New static global.
6708 (set_gdb_datadir): Call set_gdb_data_directory
6709 (show_gdb_datadir): New function.
6710 (init_main): Update init of data-directory parameter.
6711
18848e28
GF
67122014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
6713
6714 Import the "dirfd" gnulib module.
6715 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
6716 * gnulib/aclocal.m4: Update.
6717 * gnulib/config.in: Update.
6718 * gnulib/configure: Update.
6719 * gnulib/import/Makefile.am: Update.
6720 * gnulib/import/Makefile.in: Update.
6721 * gnulib/import/dirfd.c: New.
6722 * gnulib/import/m4/dirfd.m4: New.
6723 * gnulib/import/m4/gnulib-cache.m4: Update.
6724 * gnulib/import/m4/gnulib-comp.m4: Update.
6725
95c64f92
YQ
67262014-05-16 Pierre Muller <muller@sourceware.org>
6727 Yao Qi <yao@codesourcery.com>
6728
6729 * valprint.c (print_wchar): Move the code on checking whether
6730 W is a printable wide char to the default branch of switch
6731 statement below. Call wchar_printable instead of gdb_iswprint.
6732
cac395ea
TM
67332014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
6734
19679eca 6735 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
cac395ea
TM
6736 ldr.w and ldrd instructions.
6737
83655187
DE
67382014-05-15 Doug Evans <dje@google.com>
6739
6740 * dwarf2read.c (read_structure_type): Delete outdated comments.
6741
dd756689
TT
67422014-05-14 Tom Tromey <tromey@redhat.com>
6743
6744 * macrocmd.c (print_macro_definition): Reindent.
6745
75ddda77
DE
67462014-05-13 Doug Evans <xdje42@gmail.com>
6747
6748 * python/py-cmd.c (cmdpy_completer): Add comment.
6749 (completers): Make const.
6750
b0f16a3e
SM
67512014-05-13 Simon Marchi <simon.marchi@ericsson.com>
6752
6753 * infrun.c (resume): Remove should_resume (unused). Move up
6754 declaration of resume_ptid.
6755
033c3379
TT
67562014-05-13 Tom Tromey <tromey@redhat.com>
6757
6758 * language.h (unop_type_check): Remove.
6759 (binop_type_check): Don't declare.
6760
9b44a3a5
AA
67612014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
6762
6763 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
6764 call to regcache_raw_collect.
6765
303a33fa
SM
67662014-05-12 Simon Marchi <simon.marchi@ericsson.com>
6767
6768 * mi/mi-console.c (mi_console_raw_packet): Use the value from
6769 mi_console->quote as the quoting character.
6770
196100a0
SM
67712014-05-12 Simon Marchi <simon.marchi@ericsson.com>
6772
6773 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
6774
f989a1c8
TT
67752014-04-29 Tom Tromey <tromey@redhat.com>
6776
6777 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
6778 "show debug varobj".
6779
9404b58f
KM
67802014-05-07 Kyle McMartin <kyle@redhat.com>
6781
6782 Pushed by Joel Brobecker <brobecker@adacore.com>.
6783 * aarch64-tdep.c (aarch64_software_single_step): New function.
6784 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
6785 with aarch64_software_single_step.
6786
5e49ba57
JB
67872014-05-05 Joel Brobecker <brobecker@adacore.com>
6788
6789 GDB 7.7.1 released.
6790
c888a17d
KS
67912014-05-05 Keith Seitz <keiths@redhat.com>
6792
6793 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
6794 variable or history value is successfully parsed.
6795
290a839c
YQ
67962014-05-05 Yao Qi <yao@codesourcery.com>
6797 Pedro Alves <palves@redhat.com>
6798
6799 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
6800 address of blocks that intersects the requested range. Trim
6801 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
6802 sections.
6803 * ctf.c (ctf_xfer_partial): Likewise.
6804
91256dc2
YQ
68052014-05-05 Yao Qi <yao@codesourcery.com>
6806
6807 * printcmd.c (display_command): Remove the check to
6808 target_has_execution.
6809
07284463
MK
68102014-05-03 Mark Kettenis <kettenis@gnu.org>
6811
6812 * ppcobsd-nat.c: Include "obsd-nat.h".
6813 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
6814 add_target.
6815 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
6816
30a1e6cc
SDJ
68172014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
6818
6819 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
6820 and 16-bit signed and unsigned arguments. Update comment.
6821 (stap_parse_probe_arguments): Extend code to handle such
6822 arguments. Use warning instead of complaint to notify about
6823 unrecognized bitness.
6824
f33da99a
SDJ
68252014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
6826
6827 PR breakpoints/16889
6828 * stap-probe.c (stap_parse_probe_arguments): Simplify
6829 check for non-prefixed probes (i.e., probes whose
6830 arguments do not start with "N@"). Always set the
6831 argument type to a sane value.
6832
95cf3b38
DT
68332014-05-01 David Taylor <dtaylor@emc.com>
6834
6835 * remote.c (compare_sections_command): Add -r option to compare
6836 all loadable read-only sections.
6837
1cfdf534
SC
68382014-04-30 Siva Chandra Reddy <sivachandra@google.com>
6839
6840 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
6841 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
6842 Update all callers.
6843 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
6844 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
6845 Remove unused CORE_ADDR argument. Update all callers.
6846
ca4f7f8b
PA
68472014-04-29 Pedro Alves <palves@redhat.com>
6848
6849 * remote.c (struct packet_config) <detect>: Extend comment.
6850 (add_packet_config_cmd): Don't set the config's detect or support
6851 fields here.
6852 (init_all_packet_configs): Also initialize the config's 'detect'
6853 field.
6854 (reset_all_packet_configs_support): New function.
6855 (remote_open_1): Call reset_all_packet_configs_support instead of
6856 init_all_packet_configs.
6857 (_initialize_remote): Initialize all packet configs. Assert that
6858 all packets have an associated command, except a few known
6859 outliers.
6860
11c1ba78
JB
68612014-04-28 Joel Brobecker <brobecker@adacore.com>
6862
6863 * dwarf2read.c (read_subrange_type): Handle dynamic
6864 DW_AT_lower_bound attributes.
6865
8739bc53
JB
68662014-04-28 Joel Brobecker <brobecker@adacore.com>
6867
6868 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
6869 dynamic bounds before computing its upper bound.
6870 (ada_discrete_type_low_bound): Same as above with the lower bound.
6871
6f8a3220
JB
68722014-04-28 Joel Brobecker <brobecker@adacore.com>
6873
6874 * dwarf2read.c (is_dynamic_type): Return true for dynamic
6875 range types. Adjust the array handling implementation to
6876 take advantage of this change.
6877 (resolve_dynamic_range): New function, mostly extracted from
6878 resolve_dynamic_bounds.
6879 (resolve_dynamic_array): New function, mostly extracted from
6880 resolve_dynamic_bounds.
6881 (resolve_dynamic_bounds): Delete.
6882 (resolve_dynamic_type): Reimplement. Add handling of
6883 TYPE_CODE_RANGE types.
6884
4d072ce4
JB
68852014-04-28 Joel Brobecker <brobecker@adacore.com>
6886
6887 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
6888 handling of parallel ___XA types.
6889
52865325
JB
68902014-04-28 Joel Brobecker <brobecker@adacore.com>
6891
6892 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
6893 unnecessary second call to static_unwrap_type.
6894
433e77fa
HZ
68952014-04-27 Hui Zhu <hui@codesourcery.com>
6896
6897 * stack.c (print_frame_info): Call do_gdb_disassembly with
6898 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
6899
b51a69ee
DE
69002014-04-26 Doug Evans <xdje42@gmail.com>
6901
6902 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
6903
7ae1a6a6
PA
69042014-04-25 Pedro Alves <palves@redhat.com>
6905
6906 PR server/16255
6907 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
6908 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
6909 and newline from built string.
6910 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
6911 (linux_ptrace_attach_fail_reason): ... this.
6912 * linux-nat.c (linux_nat_attach): Adjust to use
6913 linux_ptrace_attach_fail_reason.
6914
4082afcc
PA
69152014-04-25 Pedro Alves <palves@redhat.com>
6916
6917 * remote.c (struct remote_state): Remove multi_process_aware,
6918 non_stop_aware, cond_tracepoints, cond_breakpoints,
6919 breakpoint_commands, fast_tracepoints, static_tracepoints,
6920 install_in_trace, disconnected_tracing,
6921 enable_disable_tracepoints, string_tracing, and
6922 augmented_libraries_svr4_read fields.
6923 (remote_multi_process_p): Move further below in the file.
6924 (struct packet_config): Add comments.
6925 (update_packet_config): Delete function.
6926 (show_packet_config_cmd): Use packet_config_support.
6927 (add_packet_config_cmd): Use NULL as set callback.
6928 (packet_ok): "set remote foo-packet"-style commands no longer
6929 change config->supported -- adjust.
6930 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
6931 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
6932 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
6933 (PACKET_QNonStop, PACKET_multiprocess_feature)
6934 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
6935 (PACKET_DisconnectedTracing_feature)
6936 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
6937 (set_remote_protocol_packet_cmd): Delete function.
6938 (packet_config_support, packet_support): New functions.
6939 (set_remote_protocol_Z_packet_cmd): Don't call
6940 update_packet_config.
6941 (remote_query_attached, remote_pass_signals)
6942 (remote_program_signals, remote_threads_info)
6943 (remote_threads_extra_info, remote_start_remote): Use
6944 packet_support.
6945 (remote_start_remote): Use packet_config_support and
6946 packet_support.
6947 (init_all_packet_configs): Set all packets to unknown support,
6948 instead of calling update_packet_config.
6949 (remote_check_symbols): Use packet_support.
6950 (remote_supported_packet): Unconditionally set the packet config's
6951 support status.
6952 (remote_multi_process_feature, remote_non_stop_feature)
6953 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
6954 (remote_breakpoint_commands_feature)
6955 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
6956 (remote_install_in_trace_feature)
6957 (remote_disconnected_tracing_feature)
6958 (remote_enable_disable_tracepoint_feature)
6959 (remote_string_tracing_feature)
6960 (remote_augmented_libraries_svr4_read_feature): Delete functions.
6961 (remote_protocol_features): Adjust to use remote_supported_packet
6962 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
6963 "ConditionalTracepoints", "ConditionalBreakpoints",
6964 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
6965 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
6966 "EnableDisableTracepoints", and "tracenz".
6967 (remote_query_supported): Use packet_support.
6968 (remote_open_1): Adjust.
6969 (extended_remote_attach_1): Use packet_support. Switch on the
6970 result of packet_ok instead of checking whether the packet ended
6971 up disabled.
6972 (remote_vcont_resume): Use packet_support.
6973 (remote_resume, remote_stop_ns, fetch_register_using_p)
6974 (remote_prepare_to_store, store_register_using_P)
6975 (check_binary_download, remote_write_bytes): Use packet_support.
6976 (remote_vkill): Use packet_support. Switch on the result of
6977 packet_ok instead of checking whether the packet ended up
6978 disabled.
6979 (extended_remote_supports_disable_randomization): Use
6980 packet_support.
6981 (extended_remote_run): Switch on the result of packet_ok instead
6982 of checking whether the packet ended up disabled.
6983 (remote_insert_breakpoint, remote_remove_breakpoint)
6984 (remote_insert_watchpoint, remote_remove_watchpoint)
6985 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
6986 packet_support.
6987 (remote_search_memory): Use packet_config_support.
6988 (remote_get_thread_local_address, remote_get_tib_address)
6989 (remote_hostio_send_command, remote_can_execute_reverse): Use
6990 packet_support.
6991 (remote_supports_cond_tracepoints)
6992 (remote_supports_cond_breakpoints)
6993 (remote_supports_fast_tracepoints)
6994 (remote_supports_static_tracepoints)
6995 (remote_supports_install_in_trace)
6996 (remote_supports_enable_disable_tracepoint)
6997 (remote_supports_string_tracing)
6998 (remote_can_run_breakpoint_commands): Rewrite, checking whether
6999 the packet config says the feature is enabled or disabled.
7000 (remote_download_tracepoint, remote_trace_set_readonly_regions)
7001 (remote_get_trace_status): Use packet_support.
7002 (remote_set_disconnected_tracing): Adjust to check whether the
7003 feature is enabled with packet_support.
7004 (remote_set_trace_buffer_size, remote_use_agent)
7005 (remote_can_use_agent, remote_supports_btrace): Use
7006 packet_support.
7007 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
7008 Use packet_config_support.
7009 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
7010 the packet config says the feature is enabled or disabled.
7011 (set_range_stepping): Use packet_support.
7012
bdb52a22
TT
70132014-04-25 Tom Tromey <tromey@redhat.com>
7014
7015 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
7016 argument.
7017
e9475ead
SA
70182014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
7019
7020 * NEWS: Mention support for C99 variable length arrays.
7021
82eacd52
JB
70222014-04-24 Joel Brobecker <brobecker@adacore.com>
7023
7024 * ada-lang.c (standard_exc): Expand introductory comment.
7025
01f9f808
MS
70262014-04-24 Michael Sturm <michael.sturm@mintel.com>
7027 Walfred Tedeschi <walfred.tedeschi@intel.com>
7028
7029 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
7030 AVX512 registers.
7031 (amd64_linux_read_description): Add code to handle AVX512 xstate
7032 mask and return respective tdesc.
7033 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
7034 and features/i386/x32-avx512-linux.c.
7035 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
7036 (amd64_linux_core_read_description): Add code to handle AVX512
7037 xstate mask and return respective tdesc.
7038 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
7039 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
7040 calculation.
7041 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
7042 (tdesc_amd64_avx512_linux): New prototype.
7043 (tdesc_x32_avx512_linux): Likewise.
7044 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
7045 features/i386/x32-avx512.c.
7046 (amd64_ymm_avx512_names): New register names for pseudo
7047 registers YMM16-31.
7048 (amd64_ymmh_avx512_names): New register names for raw registers
7049 YMMH16-31.
7050 (amd64_k_names): New register names for K registers.
7051 (amd64_zmmh_names): New register names for ZMM raw registers.
7052 (amd64_zmm_names): New registers names for ZMM pseudo registers.
7053 (amd64_xmm_avx512_names): New register names for XMM16-31
7054 registers.
7055 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
7056 registers.
7057 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
7058 if feature is present.
7059 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
7060 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
7061 (AMD64_NUM_REGS): Adjust to new number of registers.
7062 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
7063 registers supplied via XSTATE by AVX512 registers.
7064 (i386_linux_read_description): Add case for AVX512.
7065 * i386-linux-tdep.c: Include i386-avx512-linux.c.
7066 (i386_linux_gregset_reg_offset): Add AVX512 registers.
7067 (i386_linux_core_read_description): Add case for AVX512.
7068 (i386_linux_init_abi): Install supported register note section
7069 for AVX512.
7070 (_initialize_i386_linux_tdep): Add call to tdesc init function for
7071 AVX512.
7072 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
7073 registers to be number of zmm7h + 1.
7074 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
7075 * i386-tdep.c: Include features/i386/i386-avx512.c.
7076 (i386_zmm_names): Add ZMM pseudo register names array.
7077 (i386_zmmh_names): Add ZMM raw register names array.
7078 (i386_k_names): Add K raw register names array.
7079 (num_lower_zmm_regs): Add constant for the number of lower ZMM
7080 registers. AVX512 has 16 more ZMM registers than there are YMM
7081 registers.
7082 (i386_zmmh_regnum_p): Add function to look up register number of
7083 ZMM raw registers.
7084 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
7085 (i386_k_regnum_p): Likewise for K raw registers.
7086 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
7087 registers added by AVX512.
7088 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
7089 registers added by AVX512.
7090 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
7091 added by AVX512.
7092 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
7093 (i386_pseudo_register_name): Add ZMM pseudo registers.
7094 (i386_zmm_type): Construct and return vector registers type for ZMM
7095 registers.
7096 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
7097 ZMM0-31 pseudo registers and K registers.
7098 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
7099 and YMM16-31 registers from register cache.
7100 (i386_pseudo_register_write): Add code to write K, ZMM and
7101 YMM16-31 registers.
7102 (i386_register_reggroup_p): Add code to include/exclude AVX512
7103 registers in/from respective register groups.
7104 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
7105 registers if feature is present in xcr0.
7106 (i386_gdbarch_init): Add code to initialize AVX512 feature
7107 variables in tdep structure, wire in pseudo registers and call
7108 initialize_tdesc_i386_avx512.
7109 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
7110 variables.
7111 (i386_regnum): Add AVX512 registers.
7112 (I386_SSE_NUM_REGS): New define for number of SSE registers.
7113 (I386_AVX_NUM_REGS): Likewise for AVX registers.
7114 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
7115 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
7116 512 bits wide.
7117 (i386_xmm_avx512_regnum_p): New prototype for register look up.
7118 (i386_ymm_avx512_regnum_p): Likewise.
7119 (i386_k_regnum_p): Likewise.
7120 (i386_zmm_regnum_p): Likewise.
7121 (i386_zmmh_regnum_p): Likewise.
7122 * i387-tdep.c : Update year in copyright notice.
7123 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
7124 XSAVE buffer.
7125 (XSAVE_YMM_AVX512_ADDR): New macro.
7126 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
7127 XSAVE buffer.
7128 (XSAVE_XMM_AVX512_ADDR): New macro.
7129 (xsave_avx512_k_offset): New table for K register offsets in
7130 XSAVE buffer.
7131 (XSAVE_AVX512_K_ADDR): New macro.
7132 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
7133 in XSAVE buffer.
7134 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
7135 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
7136 buffer.
7137 (i387_collect_xsave): Add code to collect AVX512 registers from
7138 XSAVE buffer.
7139 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
7140 of XMM16-31 registers.
7141 (I387_NUM_K_REGS): New define for number of K registers.
7142 (I387_K0_REGNUM): New define for K0 register number.
7143 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
7144 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
7145 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
7146 registers.
7147 (I387_YMM16H_REGNUM): New define for YMM16H register number.
7148 (I387_XMM16_REGNUM): New define for XMM16 register number.
7149 (I387_YMM0_REGNUM): New define for YMM0 register number.
7150 (I387_KEND_REGNUM): New define for last K register number.
7151 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
7152 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
7153 number.
7154 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
7155 number.
7156 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
7157 size.
7158 * features/Makefile: Add AVX512 related files.
7159 * features/i386/32bit-avx512.xml: New file.
7160 * features/i386/64bit-avx512.xml: Likewise.
7161 * features/i386/amd64-avx512-linux.c: Likewise.
7162 * features/i386/amd64-avx512-linux.xml: Likewise.
7163 * features/i386/amd64-avx512.c: Likewise.
7164 * features/i386/amd64-avx512.xml: Likewise.
7165 * features/i386/i386-avx512-linux.c: Likewise.
7166 * features/i386/i386-avx512-linux.xml: Likewise.
7167 * features/i386/i386-avx512.c: Likewise.
7168 * features/i386/i386-avx512.xml: Likewise.
7169 * features/i386/x32-avx512-linux.c: Likewise.
7170 * features/i386/x32-avx512-linux.xml: Likewise.
7171 * features/i386/x32-avx512.c: Likewise.
7172 * features/i386/x32-avx512.xml: Likewise.
7173 * regformats/i386/amd64-avx512-linux.dat: New file.
7174 * regformats/i386/amd64-avx512.dat: Likewise.
7175 * regformats/i386/i386-avx512-linux.dat: Likewise.
7176 * regformats/i386/i386-avx512.dat: Likewise.
7177 * regformats/i386/x32-avx512-linux.dat: Likewise.
7178 * regformats/i386/x32-avx512.dat: Likewise.
7179 * NEWS: Add note about new support for AVX512.
7180
7181
08351840
PA
71822014-04-23 Pedro Alves <palves@redhat.com>
7183
7184 * breakpoint.c (insert_bp_location): Tolerate errors if the
7185 breakpoint is set in a user-loaded objfile.
7186 (remove_breakpoint_1): Likewise. Also tolerate errors if the
7187 location is marked shlib_disabled. If the breakpoint is set in a
7188 user-loaded objfile is a GDB-side memory breakpoint, validate it
7189 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
7190 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
7191 flag.
7192 * mem-break.c (memory_validate_breakpoint): New function.
7193 * objfiles.c (userloaded_objfile_contains_address_p): New
7194 function.
7195 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
7196 * target.h (memory_validate_breakpoint): New declaration.
7197
076855f9
PA
71982014-04-23 Pedro Alves <palves@redhat.com>
7199
7200 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
7201 the breakpoint is set in a shared library, only suppress
7202 errors for software breakpoints, not hardware breakpoints.
7203
483805cf
PA
72042014-04-22 Pedro Alves <palves@redhat.com>
7205
7206 * infrun.c (schedlock_applies): New function, factored out from
7207 find_thread_needs_step_over.
7208 (find_thread_needs_step_over): Use it.
7209 (switch_back_to_stepped_thread): Always clear trap_expected if the
7210 step over is finished. Return early if scheduler locking applies.
7211 Look for the stepping thread and a potential step-over thread with
7212 a single loop.
7213 (currently_stepping_or_nexting_callback): Delete.
7214
a75fef0e
NC
72152014-04-22 Nick Clifton <nickc@redhat.com>
7216
7217 * NEWS: Mention that ARM sim now supports tracing.
7218
48b6e87e
YQ
72192014-04-22 Yao Qi <yao@codesourcery.com>
7220
7221 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
7222 to ...
7223 * tracefile.c (tracefile_fetch_registers): ... it. New
7224 function.
7225 * tracefile.h (tracefile_fetch_registers): Declare.
7226 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
7227 tracefile_fetch_registers.
7228
17617f2d
EZ
72292014-04-19 Eli Zaretskii <eliz@gnu.org>
7230
7231 PR gdb/14018
7232 * windows-nat.c (thread_rec): Don't display a warning when
7233 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
7234 fails for any reason, set th->suspended to -1, so that we don't
7235 try to resume such a thread. Also, don't return NULL in these
7236 cases, to avoid completely ruin the session due to "PC register is
7237 not available" error.
7238 (do_windows_fetch_inferior_registers): Check errors in
7239 GetThreadContext call.
7240 (windows_continue): Accept an additional argument KILLED; if not
7241 zero, ignore errors in the SetThreadContext call, since the
7242 inferior was killed and is shutting down.
7243 (windows_resume, get_windows_debug_event)
7244 (windows_create_inferior, windows_mourn_inferior)
7245 (windows_kill_inferior): All callers of windows_continue changed
7246 to adjust to its new calling sequence.
7247
5723a6fd
YQ
72482014-04-19 Yao Qi <yao@codesourcery.com>
7249
7250 * ctf.c (ctf_open): Call post_create_inferior.
7251
614d5099
YQ
72522014-04-19 Yao Qi <yao@codesourcery.com>
7253
7254 * ctf.c (handle_id): New static variable.
7255 (ctf_open_dir): Get handle_id from bt_context_add_trace return
7256 value. Get the declaration of event "register" and get length
7257 of field "contents".
7258
dac3e710
YQ
72592014-04-19 Yao Qi <yao@codesourcery.com>
7260
7261 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
7262
2bca57ba
SC
72632014-04-18 Siva Chandra Reddy <sivachandra@google.com>
7264
7265 * valops.c (oload_method_static): Remove unnecessary argument
7266 METHOD. Update all callers.
7267
51d48146
PA
72682014-04-18 Pedro alves <palves@redhat.com>
7269 Tom Tromey <tromey@redhat.com>
7270
7271 PR backtrace/15558
7272 * frame.c (get_prev_frame_1): Rename to ...
7273 (get_prev_frame_always): ... this, and make extern. Adjust.
7274 (skip_artificial_frames): Use get_prev_frame_always.
7275 (frame_unwind_caller_id, frame_pop, get_prev_frame)
7276 (get_frame_unwind_stop_reason): Adjust to rename.
7277 * frame.h (get_prev_frame_always): Declare.
7278 * inline-frame.c: Include frame.h.
7279 (inline_frame_this_id): Use get_prev_frame_always.
7280
1bdad2e0
TG
72812014-04-18 Tristan Gingold <gingold@adacore.com>
7282
7283 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
7284 code by using bfd_mach_o_get_base_address.
7285
7ce16bd4
UW
72862014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
7287
7288 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
7289 (spu_ax_pseudo_register_collect): New function.
7290 (spu_ax_pseudo_register_push_stack): Likewise.
7291 (spu_dwarf_reg_to_regnum): Likewise.
7292 (spu_gdbarch_init): Install them. Append DWARF unwinders.
7293
2ed3c037
UW
72942014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
7295
7296 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
7297 Replace FRAME argument with FRAME_ID.
7298 * gdbarch.c, gdbarch.h: Regenerate.
7299 * findvar.c (default_value_from_register): Add GDBARCH argument;
7300 replace FRAME by FRAME_ID. No longer call get_frame_id.
7301 (value_from_register): Update call to gdbarch_value_from_register.
7302 * value.h (default_value_from_register): Update prototype.
7303 * s390-linux-tdep.c (s390_value_from_register): Update interface
7304 and call to default_value_from_register.
7305 * spu-tdep.c (spu_value_from_register): Likewise.
7306
7307 * findvar.c (address_from_register): Remove TYPE argument.
7308 Do not call value_from_register; use gdbarch_value_from_register
7309 with null_frame_id instead.
7310 * value.h (address_from_register): Update prototype.
7311 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
7312 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
7313 address_from_register interface change.
7314
71e50e83
YQ
73152014-04-17 Yao Qi <yao@codesourcery.com>
7316
7317 * gdbtypes.h: Update comments to link to types and macros'
7318 definitions.
7319
7a23c549
SC
73202014-04-16 Siva Chandra Reddy <sivachandra@google.com>
7321
7322 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
7323
22869d73
KS
73242014-04-16 Keith Seitz <keiths@redhat.com>
7325
7326 PR gdb/15827
7327 * dwarf2read.c (skip_one_die): Check that all relative-offset
7328 sibling DIEs fall within range of the current reader's buffer.
7329 (read_partial_die): Likewise.
7330
c4f87ca6
KS
73312014-04-16 Keith Seitz <keiths@redhat.com>
7332
7333 PR c++/16597
7334 * cp-namespace.c (lookup_symbol_file): If the type name of
7335 `this' is NULL, return immediately.
7336
b50c8614
KS
73372014-04-14 Keith Seitz <keiths@redhat.com>
7338
7339 PR c++/16253
7340 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
7341 from symbol_matches_domain in symtab.c. All local callers
7342 of symbol_matches_domain updated.
7343 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
7344 search STRUCT_DOMAIN.
7345 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
7346 independently. standard_lookup will do that automatically.
7347 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
7348 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7349 (cp_lookup_symbol_in_namespace): Likewise.
7350 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
7351 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
7352 may return a STRUCT_DOMAIN match.
7353 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
7354 * cp-support.c: Include language.h.
7355 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
7356 VAR_DOMAIN.
7357 * psymtab.c (match_partial_symbol): Compare the requested
7358 domain with the symbol's domain directly.
7359 (lookup_partial_symbol): Likewise.
7360 * symtab.c (lookup_symbol_in_language): Explain when/why
7361 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7362 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
7363 appropriate languages.
7364 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
7365 and moved to ada-lang.c
7366 (lookup_block_symbol): Explain that this function only returns
7367 symbol matching the requested DOMAIN.
7368 Compare the requested domain with the symbol's domain directly.
7369 (iterate_over_symbols): Compare the requested domain with the
7370 symbol's domain directly.
7371 * symtab.h (symbol_matches_domain): Remove.
7372
3d567982
TT
73732014-04-14 Tom Tromey <tromey@redhat.com>
7374
7375 PR c++/15246:
7376 * c-exp.y (type_aggregate_p): New function.
7377 (qualified_name, classify_inner_name): Use it.
7378 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
7379 and TYPE_TARGET_TYPE of an enum type.
7380 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
7381 an enum type.
7382 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
7383 handle TYPE_DECLARED_CLASS.
7384 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
7385 types.
7386 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
7387 * valops.c (enum_constant_from_type): New function.
7388 (value_aggregate_elt): Use it.
7389 * cp-namespace.c (cp_lookup_nested_symbol): Handle
7390 TYPE_CODE_ENUM.
7391
c848d642
TT
73922014-04-14 Tom Tromey <tromey@redhat.com>
7393
7394 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
7395 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
7396 const.
7397 * value.h (value_aggregate_elt): Update.
7398
0626fc76
TT
73992014-04-14 Tom Tromey <tromey@redhat.com>
7400
7401 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
7402
5ecaaa66
SA
74032014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7404
7405 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7406 (evaluate_subexp_standard): Pass noside argument.
7407 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7408 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7409 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7410 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7411 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7412
1612e0c0
SA
74132014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7414
7415 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7416 points to a constant blob.
7417
c451ebe5
SA
74182014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7419
7420 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7421 property and store it as the high bound and flag the range accordingly.
7422 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7423 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7424 * gdbtypes.h (enum range_flags): New enum.
7425 (struct range_bounds): Add flags member.
7426
1d42e4c4
SA
74272014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7428
7429 * c-typeprint.c (c_type_print_varspec_suffix): Added
7430 check for not yet resolved high bound. If unresolved, print
7431 "variable length" string to the console instead of random
7432 length.
7433
9f1f738a
SA
74342014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7435
7436 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
7437 value.
7438 (ada_template_to_fixed_record_type_1): Likewise.
7439 (ada_to_fixed_type_1): Likewise.
7440 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7441 (cp_print_value): Likewise.
7442 * d-valprint.c (dynamic_array_type): Likewise.
7443 * findvar.c (address_of_variable): Likewise.
7444 * jv-valprint.c (java_value_print): Likewise.
7445 * valops.c (value_ind): Likewise.
7446 * value.c (coerce_ref): Likewise.
7447
3c8452d4
SA
74482014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7449
7450 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7451 value and retrieve the dynamic type size.
7452
4ad88275
SA
74532014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7454
7455 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7456 passed to sizeof is dynamic evaluate the argument to compute the length.
7457
80180f79
SA
74582014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7459 Joel Brobecker <brobecker@adacore.com>
7460
7461 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7462 (dwarf2_evaluate_property): New function.
7463 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7464 * dwarf2read.c (attr_to_dynamic_prop): New function.
7465 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7466 attribute.
7467 * gdbtypes.c: Include dwarf2loc.h.
7468 (is_dynamic_type): New function.
7469 (resolve_dynamic_type): New function.
7470 (resolve_dynamic_bounds): New function.
7471 (get_type_length): New function.
7472 (check_typedef): Use get_type_length to compute type length.
7473 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7474 (TYPE_LOW_BOUND_KIND): New macro.
7475 (is_dynamic_type): New function prototype.
7476 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7477 to resolve dynamic properties of the type. Update comment.
7478 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7479
a1556843
RH
74802014-04-14 Richard Henderson <rth@redhat.com>
7481
7482 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
7483
0be03e84
DE
74842014-04-12 Siva Chandra Reddy <sivachandra@google.com>
7485 Doug Evans <xdje42@gmail.com>
7486
7487 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
7488 dereference TYPE_CODE_REF values.
7489
6b662e19
JB
74902014-04-11 Joel Brobecker <brobecker@adacore.com>
7491
7492 Revert the following changes due to regressions:
7493
7494 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7495 (dwarf2_evaluate_property): New function.
7496 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7497 * dwarf2read.c (attr_to_dynamic_prop): New function.
7498 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7499 attribute.
7500 * gdbtypes.c: Include dwarf2loc.h.
7501 (is_dynamic_type): New function.
7502 (resolve_dynamic_type): New function.
7503 (resolve_dynamic_bounds): New function.
7504 (get_type_length): New function.
7505 (check_typedef): Use get_type_length to compute type length.
7506 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7507 (TYPE_LOW_BOUND_KIND): New macro.
7508 (is_dynamic_type): New function prototype.
7509 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7510 to resolve dynamic properties of the type. Update comment.
7511 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7512
7513 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7514 passed to sizeof is dynamic evaluate the argument to compute the length.
7515
7516 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7517 value and retrieve the dynamic type size.
7518
7519 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7520 (ada_template_to_fixed_record_type_1): Likewise.
7521 (ada_to_fixed_type_1): Likewise.
7522 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7523 (cp_print_value): Likewise.
7524 * d-valprint.c (dynamic_array_type): Likewise.
7525 * eval.c (evaluate_subexp_with_coercion): Likewise.
7526 * findvar.c (address_of_variable): Likewise.
7527 * jv-valprint.c (java_value_print): Likewise.
7528 * valops.c (value_ind): Likewise.
7529 * value.c (coerce_ref): Likewise.
7530
7531 * c-typeprint.c (c_type_print_varspec_suffix): Added
7532 check for not yet resolved high bound. If unresolved, print
7533 "variable length" string to the console instead of random
7534 length.
7535
7536 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7537 property and store it as the high bound and flag the range accordingly.
7538 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7539 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7540 * gdbtypes.h (enum range_flags): New enum.
7541 (struct range_bounds): Add flags member.
7542
7543 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7544 points to a constant blob.
7545
7546 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7547 (evaluate_subexp_standard): Pass noside argument.
7548 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7549 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7550 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7551 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7552 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7553
245a5f0b
KS
75542014-04-11 Keith Seitz <keiths@redhat.com>
7555
7556 PR c++/16675
7557 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
7558 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
7559 reference types.
7560
3bce8237
SA
75612014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7562
7563 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7564 (evaluate_subexp_standard): Pass noside argument.
7565 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7566 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7567 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7568 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7569 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7570
92b09522
SA
75712014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7572
7573 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7574 points to a constant blob.
7575
e1969afb
SA
75762014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7577
7578 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7579 property and store it as the high bound and flag the range accordingly.
7580 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7581 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7582 * gdbtypes.h (enum range_flags): New enum.
7583 (struct range_bounds): Add flags member.
7584
b86138fb
SA
75852014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7586
7587 * c-typeprint.c (c_type_print_varspec_suffix): Added
7588 check for not yet resolved high bound. If unresolved, print
7589 "variable length" string to the console instead of random
7590 length.
7591
bcd629a4
SA
75922014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7593
7594 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7595 (ada_template_to_fixed_record_type_1): Likewise.
7596 (ada_to_fixed_type_1): Likewise.
7597 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7598 (cp_print_value): Likewise.
7599 * d-valprint.c (dynamic_array_type): Likewise.
7600 * eval.c (evaluate_subexp_with_coercion): Likewise.
7601 * findvar.c (address_of_variable): Likewise.
7602 * jv-valprint.c (java_value_print): Likewise.
7603 * valops.c (value_ind): Likewise.
7604 * value.c (coerce_ref): Likewise.
7605
04b19544
SA
76062014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7607
7608 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7609 value and retrieve the dynamic type size.
7610
26cb189f
SA
76112014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7612
7613 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7614 passed to sizeof is dynamic evaluate the argument to compute the length.
7615
37c1ab67
SA
76162014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7617
7618 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7619 (dwarf2_evaluate_property): New function.
7620 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7621 * dwarf2read.c (attr_to_dynamic_prop): New function.
7622 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7623 attribute.
7624 * gdbtypes.c: Include dwarf2loc.h.
7625 (is_dynamic_type): New function.
7626 (resolve_dynamic_type): New function.
7627 (resolve_dynamic_bounds): New function.
7628 (get_type_length): New function.
7629 (check_typedef): Use get_type_length to compute type length.
7630 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7631 (TYPE_LOW_BOUND_KIND): New macro.
7632 (is_dynamic_type): New function prototype.
7633 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7634 to resolve dynamic properties of the type. Update comment.
7635 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7636
729efb13
SA
76372014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7638
7639 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
7640 declaring high/low bounds and change uses accordingly. Call
7641 create_range_type instead of create_static_range_type.
7642 * gdbtypes.c (create_range_type): New function.
7643 (create_range_type): Convert bounds into struct bound_prop and pass
7644 them to create_range_type.
7645 * gdbtypes.h (struct bound_prop): New struct.
7646 (create_range_type): New function prototype.
7647 (struct range_bounds): Use struct bound_prop instead of LONGEST for
7648 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
7649 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
7650 part of the bound.
7651 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
7652
0c9c3474
SA
76532014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7654
7655 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
7656 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
7657 * ada-lang.c: All uses of create_range_type updated.
7658 * coffread.c: All uses of create_range_type updated.
7659 * dwarf2read.c: All uses of create_range_type updated.
7660 * f-exp.y: All uses of create_range_type updated.
7661 * m2-valprint.c: All uses of create_range_type updated.
7662 * mdebugread.c: All uses of create_range_type updated.
7663 * stabsread.c: All uses of create_range_type updated.
7664 * valops.c: All uses of create_range_type updated.
7665 * valprint.c: All uses of create_range_type updated.
7666
9d497a19
PA
76672014-04-10 Pedro Alves <palves@redhat.com>
7668
7669 * breakpoint.c (single_step_breakpoints)
7670 (single_step_gdbarch): Move up in the file.
7671 (one_breakpoint_xfer_memory): New function, factored out from ...
7672 (breakpoint_xfer_memory): ... here. Also process single-step
7673 breakpoints.
7674
15a9128a
TG
76752014-04-09 Tristan Gingold <gingold@adacore.com>
7676
7677 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
7678 comments.
7679 (darwin_decode_exception_message): Free port only after use.
7680
9c97a070
PL
76812014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
7682
7683 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
7684 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
7685 when setting the size of call_length.
7686
7af389b8
SC
76872014-04-07 Siva Chandra Reddy <sivachandra@google.com>
7688
7689 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
7690 dereference TYPE_CODE_REF values.
7691
86ad98c3
JB
76922014-04-07 Joel Brobecker <brobecker@adacore.com>
7693
7694 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
7695 end of warning message.
7696
b0aeadb3
DE
76972014-04-03 Doug Evans <dje@google.com>
7698
7699 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
7700 of stub_comp_unit_die, stub_comp_dir is non-NULL.
7701
5979d6b6
AM
77022014-04-02 Alan Modra <amodra@gmail.com>
7703
7704 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
7705 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
7706 (struct symbol_file_add_from_memory_args): Add size field.
7707 (find_vdso_size): New function.
7708 (add_vsyscall_page): Attempt to find vdso size.
7709
0d60c288
DE
77102014-04-01 Doug Evans <dje@google.com>
7711
7712 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
7713
a41f2563
TG
77142014-04-01 Tristan Gingold <gingold@adacore.com>
7715
7716 * darwin-nat.c (darwin_encode_reply): Add prototype.
7717 (darwin_decode_exception_message): Reply to unknown inferiors.
7718 (darwin_decode_message): Handle message by id. Ignore message
7719 to unknown inferior.
7720 (darwin_wait): Discard unknown messages, add debug trace.
7721
11a865c8
DE
77222014-03-31 Doug Evans <dje@google.com>
7723
7724 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
7725 comp_dir_string.
7726
770e7fc7
DE
77272014-03-31 Doug Evans <dje@google.com>
7728
7729 New option "set print symbol-loading".
7730 * NEWS: Mention it.
7731 * solib.c (solib_read_symbols): Only print symbol loading messages
7732 if requested.
7733 (solib_add): If symbol loading is in "brief" mode, notify user
7734 symbols are being loaded.
7735 (reload_shared_libraries_1): Ditto.
7736 * symfile.c (print_symbol_loading_off): New static global.
7737 (print_symbol_loading_brief): New static global.
7738 (print_symbol_loading_full): New static global.
7739 (print_symbol_loading_enums): New static global.
7740 (print_symbol_loading): New static global.
7741 (print_symbol_loading_p): New function.
7742 (symbol_file_add_with_addrs): Only print symbol loading messages
7743 if requested.
7744 (_initialize_symfile): Register "print symbol-loading" set/show
7745 command.
7746 * symfile.h (print_symbol_loading_p): Declare.
7747
c32c64b7
DE
77482014-03-30 Doug Evans <xdje42@gmail.com>
7749
7750 * infrun.c (set_last_target_status): New function.
7751 (handle_inferior_event): Call it.
7752
7c0bc051
DE
77532014-03-30 Doug Evans <xdje42@gmail.com>
7754
7755 * inferior.h (enum stop_kind): Improve comment.
7756
8776cfe9
JB
77572014-03-28 Joel Brobecker <brobecker@adacore.com>
7758
7759 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
7760 a reference, strip the reference layer before calling
7761 the lang_ops value_has_mutated callback.
7762
410a0ff2
SDJ
77632014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
7764
7765 Remove some globals from our parser.
7766 * language.c (unk_lang_parser): Add "struct parser_state"
7767 argument.
7768 * language.h (struct language_defn) <la_parser>: Likewise.
7769 * parse.c (expout, expout_size, expout_ptr): Remove variables.
7770 (initialize_expout): Add "struct parser_state" argument.
7771 Rewrite function to use the parser state.
7772 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
7773 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
7774 write_exp_elt_longcst, write_exp_elt_dblcst,
7775 write_exp_elt_decfloatcst, write_exp_elt_type,
7776 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
7777 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
7778 write_dollar_variable): Likewise.
7779 (parse_exp_in_context_1): Use parser state.
7780 (insert_type_address_space): Add "struct parser_state" argument.
7781 Use parser state.
7782 (increase_expout_size): New function.
7783 * parser-defs.h: Forward declare "struct language_defn" and
7784 "struct parser_state".
7785 (expout, expout_size, expout_ptr): Remove extern declarations.
7786 (parse_gdbarch, parse_language): Rewrite macro declarations to
7787 accept the parser state.
7788 (struct parser_state): New struct.
7789 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
7790 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
7791 write_exp_elt_decfloatcst, write_exp_elt_type,
7792 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
7793 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
7794 write_exp_msymbol, write_dollar_variable,
7795 mark_struct_expression, insert_type_address_space): Add "struct
7796 parser_state" argument.
7797 (increase_expout_size): New function.
7798 * utils.c (do_clear_parser_state): New function.
7799 (make_cleanup_clear_parser_state): Likewise.
7800 * utils.h (make_cleanup_clear_parser_state): New function
7801 prototype.
7802 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
7803 Update calls to write_exp* in order to pass the parser state.
7804 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
7805 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
7806 (i386_stap_parse_special_token_three_arg_disp): Likewise.
7807 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
7808 * stap-probe.c (stap_parse_register_operand): Likewise.
7809 (stap_parse_single_operand): Likewise.
7810 (stap_parse_argument_1): Likewise.
7811 (stap_parse_argument): Use parser state.
7812 * stap-probe.h: Include "parser-defs.h".
7813 (struct stap_parse_info) <pstate>: New field.
7814 * c-exp.y (parse_type): Rewrite to use parser state.
7815 (yyparse): Redefine to c_parse_internal.
7816 (pstate): New global variable.
7817 (parse_number): Add "struct parser_state" argument.
7818 (write_destructor_name): Likewise.
7819 (type_exp): Update calls to write_exp* and similars in order to
7820 use parser state.
7821 (exp1, exp, variable, qualified_name, space_identifier,
7822 typename, typebase): Likewise.
7823 (write_destructor_name, parse_number, lex_one_token,
7824 classify_name, classify_inner_name, c_parse): Add "struct
7825 parser_state" argument. Update function to use parser state.
7826 * c-lang.h: Forward declare "struct parser_state".
7827 (c_parse): Add "struct parser_state" argument.
7828 * ada-exp.y (parse_type): Rewrite macro to use parser state.
7829 (yyparse): Redefine macro to ada_parse_internal.
7830 (pstate): New variable.
7831 (write_int, write_object_renaming, write_var_or_type,
7832 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
7833 type_int, type_long, type_long_long, type_float, type_double,
7834 type_long_double, type_char, type_boolean, type_system_address):
7835 Add "struct parser_state" argument.
7836 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
7837 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
7838 var_or_type, aggregate, aggregate_component_list,
7839 positional_list, others, component_group,
7840 component_associations): Update calls to write_exp* and similar
7841 functions in order to use parser state.
7842 (ada_parse, write_var_from_sym, write_int,
7843 write_exp_op_with_string, write_object_renaming,
7844 find_primitive_type, write_selectors, write_ambiguous_var,
7845 write_var_or_type, write_name_assoc, type_int, type_long,
7846 type_long_long, type_float, type_double, type_long_double,
7847 type_char, type_boolean, type_system_address): Add "struct
7848 parser_state" argument. Adjust function to use parser state.
7849 * ada-lang.c (parse): Likewise.
7850 * ada-lang.h: Forward declare "struct parser_state".
7851 (ada_parse): Add "struct parser_state" argument.
7852 * ada-lex.l (processInt, processReal): Likewise. Adjust all
7853 calls to both functions.
7854 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
7855 parser state.
7856 (yyparse): Redefine macro to f_parse_internal.
7857 (pstate): New variable.
7858 (parse_number): Add "struct parser_state" argument.
7859 (type_exp, exp, subrange, typebase): Update calls to write_exp*
7860 and similars in order to use parser state.
7861 (parse_number): Adjust code to use parser state.
7862 (yylex): Likewise.
7863 (f_parse): New function.
7864 * f-lang.h: Forward declare "struct parser_state".
7865 (f_parse): Add "struct parser_state" argument.
7866 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
7867 parser state.
7868 (yyparse): Redefine macro for java_parse_internal.
7869 (pstate): New variable.
7870 (push_expression_name, push_expression_name, insert_exp): Add
7871 "struct parser_state" argument.
7872 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
7873 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
7874 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
7875 PostIncrementExpression, PostDecrementExpression,
7876 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
7877 UnaryExpressionNotPlusMinus, CastExpression,
7878 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
7879 RelationalExpression, EqualityExpression, AndExpression,
7880 ExclusiveOrExpression, InclusiveOrExpression,
7881 ConditionalAndExpression, ConditionalOrExpression,
7882 ConditionalExpression, Assignment, LeftHandSide): Update
7883 calls to write_exp* and similars in order to use parser state.
7884 (parse_number): Ajust code to use parser state.
7885 (yylex): Likewise.
7886 (java_parse): New function.
7887 (push_variable): Add "struct parser_state" argument. Adjust
7888 code to user parser state.
7889 (push_fieldnames, push_qualified_expression_name,
7890 push_expression_name, insert_exp): Likewise.
7891 * jv-lang.h: Forward declare "struct parser_state".
7892 (java_parse): Add "struct parser_state" argument.
7893 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
7894 parser state.
7895 (yyparse): Redefine macro to m2_parse_internal.
7896 (pstate): New variable.
7897 (type_exp, exp, fblock, variable, type): Update calls to
7898 write_exp* and similars to use parser state.
7899 (yylex): Likewise.
7900 (m2_parse): New function.
7901 * m2-lang.h: Forward declare "struct parser_state".
7902 (m2_parse): Add "struct parser_state" argument.
7903 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
7904 * objc-lang.h: Forward declare "struct parser_state".
7905 (end_msglist): Add "struct parser_state" argument.
7906 * p-exp.y (parse_type): Rewrite macro to use parser state.
7907 (yyparse): Redefine macro to pascal_parse_internal.
7908 (pstate): New variable.
7909 (parse_number): Add "struct parser_state" argument.
7910 (type_exp, exp1, exp, qualified_name, variable): Update calls to
7911 write_exp* and similars in order to use parser state.
7912 (parse_number, yylex): Adjust code to use parser state.
7913 (pascal_parse): New function.
7914 * p-lang.h: Forward declare "struct parser_state".
7915 (pascal_parse): Add "struct parser_state" argument.
7916 * go-exp.y (parse_type): Rewrite macro to use parser state.
7917 (yyparse): Redefine macro to go_parse_internal.
7918 (pstate): New variable.
7919 (parse_number): Add "struct parser_state" argument.
7920 (type_exp, exp1, exp, variable, type): Update calls to
7921 write_exp* and similars in order to use parser state.
7922 (parse_number, lex_one_token, classify_name, yylex): Adjust code
7923 to use parser state.
7924 (go_parse): Likewise.
7925 * go-lang.h: Forward declare "struct parser_state".
7926 (go_parse): Add "struct parser_state" argument.
7927
342587c4
DE
79282014-03-27 Doug Evans <dje@google.com>
7929
7930 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
7931
33e80786
DE
79322014-03-27 Doug Evans <dje@google.com>
7933
7934 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
7935 Remove argument abbrev_section. All callers updated.
7936
1dbab08b
DE
79372014-03-27 Doug Evans <dje@google.com>
7938
7939 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
7940 addr_base, ranges_base.
7941
318d3177
KS
79422014-03-26 Keith Seitz <keiths@redhat.com>
7943
7944 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
7945 types, not VAR_DOMAIN.
7946
1e54db15
SL
79472014-03-25 Sandra Loosemore <sandra@codesourcery.com>
7948
7949 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
7950 "ra" registers.
7951 * features/nios2-linux.c: Regenerated.
7952 * features/nios2.c: Regenerated.
7953
d3839ede
PA
79542014-03-25 Pedro Alves <palves@redhat.com>
7955
7956 * cli/cli-script.c (script_from_file): Force the interpreter to
7957 sync mode.
7958
7588d2ec
PL
79592014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
7960
7961 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
7962 small stack allocation.
7963
a6290449
TG
79642014-03-24 Tristan Gingold <gingold@adacore.com>
7965
7966 * darwin-nat.c (exc_server): Remove unused prototype.
7967 (darwin_dump_message): Correctly display data on x86_64.
7968 (darwin_encode_reply): Fix style.
7969 Add comments and fix indentation.
7970
31ae9d24 79712014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
69fa4030
PL
7972
7973 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
7974
6339bfc4
DE
79752014-03-22 Doug Evans <xdje42@gmail.com>
7976
7977 * infcmd.c: Whitespace fixes.
7978 (interrupt_command): Merge two function comments into one.
7979
0a07590b
DE
79802014-03-22 Doug Evans <xdje42@gmail.com>
7981
7982 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
7983 All uses updated.
7984
b55fbac4
YQ
79852014-03-22 Yao Qi <yao@codesourcery.com>
7986
7987 * remote.c (target_read_live_memory): Remove.
7988 (memory_xfer_live_readonly_partial): Rename it to
7989 remote_xfer_live_readonly_partial. Remove argument 'object'.
7990 All callers updated. Call remote_read_bytes_1
7991 instead of target_read_live_memory.
7992 * tracepoint.c (set_traceframe_number): Remove.
7993 (make_cleanup_restore_traceframe_number): Likewise .
7994 * tracepoint.h (set_traceframe_number): Remove declaration.
7995 (make_cleanup_restore_traceframe_number): Likewise.
7996
9217e74e
YQ
79972014-03-22 Yao Qi <yao@codesourcery.com>
7998
7999 * remote.c (remote_read_bytes): Move code on reading from the
8000 remote stub to ...
8001 (remote_read_bytes_1): ... here. New function.
8002
8acf9577
YQ
80032014-03-22 Yao Qi <yao@codesourcery.com>
8004
8005 * ctf.c (ctf_xfer_partial): Check the return value of
8006 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
8007 return TARGET_XFER_UNAVAILABLE.
8008 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8009 * target.c (target_read_live_memory): Move it to remote.c.
8010 (memory_xfer_live_readonly_partial): Likewise.
8011 (memory_xfer_partial_1): Move some code to remote_read_bytes.
8012 * remote.c (target_read_live_memory): Moved from target.c.
8013 (memory_xfer_live_readonly_partial): Likewise.
8014 (remote_read_bytes): Factored out from
8015 memory_xfer_partial_1.
8016
feef67ab
DE
80172014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
8018
8019 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
8020 NULL pointer.
8021
b65dc60b
PA
80222014-03-21 Pedro Alves <palves@redhat.com>
8023
8024 * infrun.c (normal_stop): Extend comment.
8025
b4ab256d
HZ
80262014-03-21 Hui Zhu <hui@codesourcery.com>
8027 Pedro Alves <palves@redhat.com>
8028
8029 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
8030 static buffer.
8031 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
8032 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
8033 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
8034
deba7593
MR
80352014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
8036
8037 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
8038 `z' formatted output modifier.
8039
1bff71c3
SDJ
80402014-03-20 Tom Tromey <tromey@redhat.com>
8041 Sergio Durigan Junior <sergiodj@redhat.com>
8042
8043 * probe.c (parse_probes): Turn assert into an ordinary error.
8044 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
8045 exceptions when parsing probes. Rearrange the code for clarity.
8046
90e28950
TT
80472014-03-20 Tom Tromey <tromey@redhat.com>
8048
8049 PR gdb/14135
8050 * top.c (execute_command): Only dispatch events if the command
8051 started the target.
8052
beb460e8
PA
80532014-03-20 Tom Tromey <tromey@redhat.com>
8054
8055 PR cli/15718
8056 * infcall.c: Include event-top.h.
8057 (run_inferior_call): Call async_disable_stdin if needed.
8058
99619bea
PA
80592014-03-20 Pedro Alves <palves@redhat.com>
8060
8061 * infrun.c (prepare_to_proceed): Delete.
8062 (thread_still_needs_step_over): New function.
8063 (find_thread_needs_step_over): New function.
8064 (proceed): If the current thread needs a step-over, set its
8065 steping_over_breakpoint flag. Adjust to use
8066 find_thread_needs_step_over instead of prepare_to_proceed.
8067 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
8068 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
8069 breakpoint.
8070 (switch_back_to_stepped_thread): Step over breakpoints of all
8071 threads not the stepping thread, before switching back to the
8072 stepping thread.
8073
2adfaa28
PA
80742014-03-20 Pedro Alves <palves@redhat.com>
8075
8076 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
8077 extern.
8078 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
8079 * infrun.c (saved_singlestep_ptid)
8080 (stepping_past_singlestep_breakpoint): Delete.
8081 (resume): Remove stepping_past_singlestep_breakpoint handling.
8082 (proceed): Store the prev_pc of the stepping thread too.
8083 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
8084 singlestep_pc.
8085 (enum infwait_states): Delete infwait_thread_hop_state.
8086 (struct execution_control_state) <hit_singlestep_breakpoint>: New
8087 field.
8088 (handle_inferior_event): Adjust.
8089 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
8090 handling and the thread-hop code. Before removing single-step
8091 breakpoints, check whether the thread hit a single-step breakpoint
8092 of another thread. If it did, the trap is not a random signal.
8093 (switch_back_to_stepped_thread): If the event thread hit a
8094 single-step breakpoint, unblock it before switching to the
8095 stepping thread. Handle the case of the stepped thread having
8096 advanced already.
8097 (keep_going): Handle the case of the current thread moving past a
8098 single-step breakpoint.
8099
31e77af2
PA
81002014-03-20 Pedro Alves <palves@redhat.com>
8101
8102 PR breakpoints/7143
8103 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
8104 are being stepped over.
8105 (breakpoint_address_match): Make extern.
8106 * breakpoint.h (breakpoint_address_match): New declaration.
8107 * inferior.h (stepping_past_instruction_at): New declaration.
8108 * infrun.c (struct step_over_info): New type.
8109 (step_over_info): New global.
8110 (set_step_over_info, clear_step_over_info)
8111 (stepping_past_instruction_at): New functions.
8112 (handle_inferior_event): Clear the step-over info when
8113 trap_expected is cleared.
8114 (resume): Remove now stale comment.
8115 (clear_proceed_status): Clear step-over info.
8116 (proceed): Adjust step-over handling to set or clear the step-over
8117 info instead of removing all breakpoints.
8118 (handle_signal_stop): When setting up a thread-hop, don't remove
8119 breakpoints here.
8120 (stop_stepping): Clear step-over info.
8121 (keep_going): Adjust step-over handling to set or clear step-over
8122 info and then always inserting breakpoints, instead of removing
8123 all breakpoints when stepping over one.
8124
b9f437de
PA
81252014-03-20 Pedro Alves <palves@redhat.com>
8126
8127 * infrun.c (previous_inferior_ptid): Adjust comment.
8128 (deferred_step_ptid): Delete.
8129 (infrun_thread_ptid_changed, prepare_to_proceed)
8130 (init_wait_for_inferior): Adjust.
8131 (handle_signal_stop): Delete deferred_step_ptid handling.
8132
06c868a8
JK
81332014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
8134
8135 PR gdb/15358
8136 * defs.h (sync_quit_force_run): New declaration.
8137 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
8138 * event-top.c (async_sigterm_handler): New declaration.
8139 (async_sigterm_token): New variable.
8140 (async_init_signals): Create also async_sigterm_token.
8141 (async_sigterm_handler): New function.
8142 (sync_quit_force_run): New variable.
8143 (handle_sigterm): Replace quit_force call by other calls.
8144 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
8145
dea80df0
MR
81462014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
8147
8148 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
8149 offset into SPE pseudo registers.
8150
0c7e1a46
PA
81512014-03-18 Pedro Alves <palves@redhat.com>
8152
8153 PR gdb/13860
8154 * inferior.h (print_stop_event): Declare.
8155 * infrun.c (print_stop_event): New, factored out from ...
8156 (normal_stop): ... this.
8157 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
8158 of bpstat_print/print_stack_frame.
8159
9c1fcd01
TT
81602014-03-17 Tom Tromey <tromey@redhat.com>
8161
8162 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
8163
11aa919a
PMR
81642014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
8165
8166 * ada-lang.c (decode_constrained_packed_array): Perform a
8167 minimal coercion for reference with coerce_ref instead of
8168 ada_coerce_ref.
8169
d4ccb5e0
TG
81702014-03-17 Tristan Gingold <gingold@adacore.com>
8171
8172 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
8173 (darwin_solib_create_inferior_hook): Emit a warning if version
8174 is unhandled.
8175
49840f2a
UW
81762014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
8177
8178 * python/py-value.c (get_field_flag): Cast flag_name argument to
8179 PyObject_GetAttrString to support Python 2.4.
8180
ed4123e5
JK
81812014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8182
8183 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
8184 (Global Maintainers): Remove Jan Kratochvil.
8185
d6b64346
PA
81862014-03-14 Pedro Alves <palves@redhat.com>
8187
8188 * inferior.h (terminal_ours_for_output): Rename to ...
8189 (child_terminal_ours_for_output): ... this.
8190 (terminal_save_ours): Rename to ...
8191 (child_terminal_save_ours): ... this.
8192 (terminal_ours): Rename to ...
8193 (child_terminal_ours): ... this.
8194 (terminal_inferior): Rename to ...
8195 (child_terminal_inferior): ... this.
8196 (terminal_init_inferior): Rename to ...
8197 (child_terminal_init_inferior): ... this.
8198 (terminal_init_inferior_with_pgrp): Rename to ...
8199 (child_terminal_init_inferior_with_pgrp): ... this.
8200 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
8201 (child_terminal_init_with_pgrp): ... this.
8202 (terminal_save_ours): Rename to ...
8203 (child_terminal_save_ours): ... this.
8204 (terminal_init_inferior): Rename to ...
8205 (child_terminal_init): ... this. Adjust.
8206 (terminal_inferior): Rename to ...
8207 (child_terminal_inferior): ... this.
8208 (terminal_ours_for_output): Rename to ...
8209 (child_terminal_ours_for_output): ... this. Adjust.
8210 (terminal_ours): Rename to ...
8211 (child_terminal_ours): ... this.
8212 (terminal_ours_1): Rename to ...
8213 (child_terminal_ours_1): ... this. Adjust.
8214 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
8215 * windows-nat.c (do_initial_windows_stuff): Adjust.
8216 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
8217 (gnu_terminal_init): ... this. Adjust.
8218 (gnu_target): Adjust.
8219 * inf-child.c (inf_child_target): Adjust.
8220
5a1e8c7a
DE
82212014-03-13 Doug Evans <xdje42@gmail.com>
8222
8223 PR guile/16612
8224 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
8225 new eq?-hashtab.
8226
350e1a76
DE
82272014-03-13 Doug Evans <xdje42@gmail.com>
8228
8229 * value.c (record_latest_value): Call release_value_or_incref
8230 instead of release_value.
8231
a69900ae
PA
82322014-03-13 Pedro Alves <palves@redhat.com>
8233
8234 * procfs.c (procfs_target): Don't override to_shortname,
8235 to_longname or to_doc.
8236
5db9f0bd
PA
82372014-03-13 Pedro Alves <palves@redhat.com>
8238
8239 * inf-child.c (inf_child_open, inf_child_target): Don't mention
8240 Unix in user visible strings.
8241
5e3a2c38
SS
82422014-03-12 Stan Shebs <stan@codesourcery.com>
8243
8244 * gdbtypes.h: Annotate comments for Doxygen, add a page
8245 block comment with some general info.
8246
8bc2fe48
PA
82472014-03-12 Pedro Alves <palves@redhat.com>
8248
8249 * infcmd.c (prepare_execution_command): New function, factored out
8250 from several execution commands.
8251 (run_command_1, continue_command, step_1, jump_command)
8252 (signal_command, until_command, advance_command, finish_command)
8253 (attach_command): Use prepare_execution_command.
8254
638c5f49
OJ
82552014-03-12 Omair Javaid <omair.javaid@linaro.org>
8256
8257 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
8258 (MAX_BPTS): Define.
8259 (MAX_WPTS): Define.
8260 (struct arm_linux_thread_points): Removed.
8261 (struct arm_linux_process_info): New.
8262 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
8263 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
8264 (arm_linux_find_breakpoints_by_tid): Removed.
8265 (struct arch_lwp_info): New.
8266 (arm_linux_find_process_pid): New functions.
8267 (arm_linux_add_process): New functions.
8268 (arm_linux_process_info_get): New functions.
8269 (arm_linux_forget_process): New function.
8270 (arm_linux_get_debug_reg_state): New function.
8271 (struct update_registers_data): New.
8272 (update_registers_callback): New function.
8273 (arm_linux_insert_hw_breakpoint1): Updated.
8274 (arm_linux_remove_hw_breakpoint1): Updated.
8275 (arm_linux_insert_hw_breakpoint): Updated.
8276 (arm_linux_remove_hw_breakpoint): Updated.
8277 (arm_linux_insert_watchpoint): Updated.
8278 (arm_linux_remove_watchpoint): Updated.
8279 (arm_linux_new_thread): Updated.
8280 (arm_linux_prepare_to_resume): New function.
8281 (arm_linux_new_fork): New function.
8282 (_initialize_arm_linux_nat): Updated.
8283
6d03af93
PA
82842014-03-12 Pedro Alves <palves@redhat.com>
8285
8286 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
8287
b3ccfe11
TT
82882014-03-12 Tom Tromey <tromey@redhat.com>
8289
8290 * inf-child.c (return_zero): New function.
8291 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
8292 * aix-thread.c (aix_thread_inferior_created): New function.
8293 (aix_thread_attach): Remove.
8294 (init_aix_thread_ops): Don't set to_attach.
8295 (_initialize_aix_thread): Register inferior_created observer.
8296 * corelow.c (init_core_ops): Don't set to_attach or
8297 to_create_inferior.
8298 * exec.c (init_exec_ops): Don't set to_attach or
8299 to_create_inferior.
8300 * infcmd.c (run_command_1): Use find_run_target. Make direct
8301 target calls.
8302 (attach_command): Use find_attach_target. Make direct target
8303 calls.
8304 * record-btrace.c (init_record_btrace_ops): Don't set
8305 to_create_inferior.
8306 * record-full.c (record_full_can_async_p, record_full_is_async_p):
8307 Remove.
8308 (init_record_full_ops, init_record_full_core_ops): Update. Don't
8309 set to_create_inferior.
8310 * target.c (complete_target_initialization): Add assertion.
8311 (target_create_inferior): Remove.
8312 (find_default_attach, find_default_create_inferior): Remove.
8313 (find_attach_target, find_run_target): New functions.
8314 (find_default_is_async_p, find_default_can_async_p)
8315 (target_supports_non_stop, target_attach): Remove.
8316 (init_dummy_target): Don't set to_create_inferior or
8317 to_supports_non_stop.
8318 * target.h (struct target_ops) <to_attach>: Add comment. Remove
8319 TARGET_DEFAULT_FUNC.
8320 <to_create_inferior>: Add comment.
8321 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
8322 TARGET_DEFAULT_RETURN.
8323 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
8324 (find_attach_target, find_run_target): Declare.
8325 (target_create_inferior): Remove.
8326 (target_has_execution_1): Update comment.
8327 (target_supports_non_stop): Remove.
8328 * target-delegates.c: Rebuild.
8329
91f83b02
PA
83302014-03-12 Pedro Alves <palves@redhat.com>
8331
8332 * inf-child.h: Update comment to not mention Unix.
8333
f1aea813
PA
83342014-03-12 Pedro Alves <palves@redhat.com>
8335
8336 * inf-child.c: Update top comment to not mention Unix. Add
8337 generic comment describing how this target is meant to be used.
8338 (inf_child_post_attach, inf_child_post_startup_inferior)
8339 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
8340 Unix in comment.
8341
ee8e9165
PA
83422014-03-12 Pedro Alves <palves@redhat.com>
8343
8344 * nto-procfs.c: Include inf-child.h.
8345 (procfs_ops): Delete global.
8346 (procfs_can_run): Delete method.
8347 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
8348 target pointer instead of referencing procfs_ops.
8349 (procfs_prepare_to_store): Delete.
8350 (init_procfs_ops): Delete function.
8351 (procfs_target): New function, based on init_procfs_ops, but
8352 inherit inf_child_target.
8353 (_initialize_procfs): Use procfs_target.
8354
51a9c8c5
PA
83552014-03-12 Pedro Alves <palves@redhat.com>
8356
8357 * windows-nat.c: Include inf-child.h.
8358 (windows_ops): Delete global.
8359 (windows_open, windows_prepare_to_store, windows_can_run): Delete
8360 methods.
8361 (init_windows_ops): Delete function.
8362 (windows_target): New function, based on init_windows_ops, but
8363 inherit inf_child_target.
8364 (_initialize_windows_nat): Use windows_target. Install x86
8365 specific target methods here.
8366
c1966e26
DE
83672014-03-10 Doug Evans <xdje42@gmail.com>
8368
8369 * guile/guile.c (call_initialize_gdb_module): New function.
8370 (initialize_guile): Replace call to scm_init_guile with call to
8371 scm_with_guile.
8372
023db19c
JB
83732014-03-10 Joel Brobecker <brobecker@adacore.com>
8374
8375 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
8376 in call to TYPE_CODE macro.
8377
5ec18f2b
JG
83782014-03-10 Jerome Guitton <guitton@adacore.com>
8379
8668be63
JB
8380 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
8381 Resolve tagged types to full view.
5ec18f2b 8382
7d03f2eb
HZ
83832014-03-10 Hui Zhu <hui@codesourcery.com>
8384
8385 * target.h (target_insert_breakpoint): Remove "hardware" from its
8386 comments.
8387
c5164cbc
DE
83882014-03-07 Doug Evans <dje@google.com>
8389
8390 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
8391
c4a3fee2
DE
83922014-03-07 Doug Evans <dje@google.com>
8393
8394 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
8395 Remove unused local comp_dir_attr. Assert exactly one of
8396 stub_comp_unit_die, stub_comp_dir is non-NULL.
8397
3156469c
JB
83982014-03-07 Joel Brobecker <brobecker@adacore.com>
8399
8400 * target.h (complete_target_initialization, add_target):
8401 Add comment.
8402
c1a7b7c6
PA
84032014-03-07 Pedro Alves <palves@redhat.com>
8404
8405 * go32-nat.c: Include inf-child.h.
8406 (go32_ops): Delete global.
8407 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
8408 Delete methods.
8409 (go32_create_inferior): Push the passed in target pointer instead
8410 of referencing go32_ops.
8411 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
8412 (go32_target): New function, based on init_go32_ops, but inherit
8413 inf_child_target.
8414 (_initialize_go32_nat): Use go32_target. Move parts of
8415 init_go32_ops here.
8416
d3c1a85f
JB
84172014-03-06 Joel Brobecker <brobecker@adacore.com>
8418
8419 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
8420 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
8421 SYMBOL_VALUE_ADDRESS.
8422 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
8423
5fa1d40e
YQ
84242014-03-06 Yao Qi <yao@codesourcery.com>
8425
8426 * breakpoint.c (get_tracepoint_by_number): Remove argument
8427 optional_p. All callers updated. Adjust comments. Update
8428 output message.
8429 * breakpoint.h (get_tracepoint_by_number): Update declaration.
8430
0c13193f
YQ
84312014-03-06 Yao Qi <yao@codesourcery.com>
8432
8433 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
8434 early if get_number returns zero. Use 'p' instead of 'args'.
8435
2217da06
YQ
84362014-03-06 Yao Qi <yao@codesourcery.com>
8437
8438 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
8439 message.
8440
cc3da688
YQ
84412014-03-06 Yao Qi <yao@codesourcery.com>
8442
8443 PR breakpoints/16508
8444 * tracepoint.c (check_trace_running): New function.
8445 (trace_find_command): Move code to check_trace_running and
8446 call check_trace_running.
8447 (trace_find_pc_command): Likewise.
8448 (trace_find_tracepoint_command): Likewise.
8449 (trace_find_line_command): Likewise.
8450 (trace_find_range_command): Likewise.
8451 * tracepoint.h (check_trace_running): Likewise.
8452 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
8453
6a5f844b
YQ
84542014-03-06 Yao Qi <yao@codesourcery.com>
8455
8456 * target.h (struct target_ops) <to_traceframe_info>: Use
8457 TARGET_DEFAULT_NORETURN (tcomplain ()).
8458 * target-delegates.c: Regenerated.
8459
0f26cec1
PA
84602014-03-05 Pedro Alves <palves@redhat.com>
8461
8462 PR gdb/16575
8463 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
8464 void. Update comment.
8465 (dcache_xfer_memory): Delete.
8466 (dcache_read_memory_partial): New, based on the read bits of
8467 dcache_xfer_memory.
8468 (dcache_update): Add status parameter. Use ULONGEST for len, and
8469 adjust. Discard cache lines if the reason for the update was
8470 error.
8471 * dcache.h (dcache_xfer_memory): Delete declaration.
8472 (dcache_read_memory_partial): New declaration.
8473 (dcache_update): Update prototype.
8474 * target.c (raw_memory_xfer_partial): Update the dcache here.
8475 (memory_xfer_partial_1): Don't handle dcache writes here.
8476
b2b255bd
MF
84772014-03-05 Mike Frysinger <vapier@gentoo.org>
8478
8479 * remote-sim.c (gdbsim_load): Add const to prog.
8480
5d9cf8a4
TT
84812014-03-03 Tom Tromey <tromey@redhat.com>
8482
8483 * elfread.c (probe_key): Change to bfd_data.
8484 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
8485 now per-BFD, not per-objfile.
8486 * stap-probe.c (stap_probe_destroy): Update comment.
8487 (handle_stap_probe): Allocate on the per-BFD obstack.
8488
729662a5
TT
84892014-03-03 Tom Tromey <tromey@redhat.com>
8490
8491 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
8492 * breakpoint.c (create_longjmp_master_breakpoint): Use
8493 get_probe_address.
8494 (add_location_to_breakpoint, bkpt_probe_insert_location)
8495 (bkpt_probe_remove_location): Update.
8496 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
8497 * elfread.c (elf_symfile_relocate_probe): Remove.
8498 (elf_probe_fns): Update.
8499 (insert_exception_resume_breakpoint): Change type of "probe"
8500 parameter to bound_probe.
8501 (check_exception_resume): Update.
8502 * objfiles.c (objfile_relocate1): Don't relocate probes.
8503 * probe.c (bound_probe_s): New typedef.
8504 (parse_probes): Use get_probe_address. Set sal's objfile.
8505 (find_probe_by_pc): Return a bound_probe.
8506 (collect_probes): Return a VEC(bound_probe_s).
8507 (compare_probes): Update.
8508 (gen_ui_out_table_header_info): Change type of "probes"
8509 parameter. Update.
8510 (info_probes_for_ops): Update.
8511 (get_probe_address): New function.
8512 (probe_safe_evaluate_at_pc): Update.
8513 * probe.h (struct probe_ops) <get_probe_address>: New field.
8514 <set_semaphore, clear_semaphore>: Add objfile parameter.
8515 (struct probe) <objfile>: Remove field.
8516 <arch>: New field.
8517 <address>: Update comment.
8518 (struct bound_probe): New.
8519 (find_probe_by_pc): Return a bound_probe.
8520 (get_probe_address): Declare.
8521 * solib-svr4.c (struct probe_and_action) <address>: New field.
8522 (hash_probe_and_action, equal_probe_and_action): Update.
8523 (register_solib_event_probe): Add address parameter.
8524 (solib_event_probe_at): Update.
8525 (svr4_create_probe_breakpoints): Add objfile parameter. Use
8526 get_probe_address.
8527 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
8528 (stap_get_probe_address): New function.
8529 (stap_can_evaluate_probe_arguments, compute_probe_arg)
8530 (compile_probe_arg): Update.
8531 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
8532 address.
8533 (handle_stap_probe): Don't relocate the probe.
8534 (stap_relocate): Remove.
8535 (stap_gen_info_probes_table_values): Update.
8536 (stap_probe_ops): Remove stap_relocate.
8537 * symfile-debug.c (debug_sym_relocate_probe): Remove.
8538 (debug_sym_probe_fns): Update.
8539 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
8540 * symtab.c (init_sal): Use memset.
8541 * symtab.h (struct symtab_and_line) <objfile>: New field.
8542 * tracepoint.c (start_tracing, stop_tracing): Update.
8543
ff887920
TT
85442014-03-03 Tom Tromey <tromey@redhat.com>
8545
8546 * probe.h (parse_probes, find_probe_by_pc)
8547 (find_probes_in_objfile): Fix comments.
8548
f0407826
DE
85492014-03-02 Doug Evans <xdje42@gmail.com>
8550
8551 * infrun.c (handle_signal_stop): Replace test for
8552 TARGET_WAITKIND_STOPPED with an assert.
8553
35e6a711
DE
85542014-03-02 Doug Evans <xdje42@gmail.com>
8555
8556 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
8557
667f9d0b
DE
85582014-03-02 Doug Evans <xdje42@gmail.com>
8559
8560 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
8561
dc92ace0
MK
85622014-03-01 Mark Kettenis <kettenis@gnu.org>
8563
8564 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
8565
a900370f
MK
85662014-03-01 Mark Kettenis <kettenis@gnu.org>
8567
8568 * i386obsd-nat.c: Include "obsd-nat.h".
8569 (_initialize_i386obsd_nat): Call obsd_add_target instead of
8570 add_target.
8571 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8572
b72a7981
MK
85732014-03-01 Mark Kettenis <kettenis@gnu.org>
8574
8575 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
8576
96c70aba
MK
85772014-03-01 Mark Kettenis <kettenis@gnu.org>
8578
8579 * mips64obsd-nat.c: Include "obsd-nath".
8580 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
8581 add_target
8582 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8583
874a80af
MK
85842014-03-01 Mark Kettenis <kettenis@gnu.org>
8585
8fd408f1
MK
8586 * amd64obsd-nat.c: Include "obsd-nat,h.
8587 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
8588 add_target.
874a80af
MK
8589 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8590
9cf95373
SC
85912014-02-28 Siva Chandra Reddy <sivachandra@google.com>
8592
8593 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
8594 (find_overload_match): Update call to find_oload_champ.
8595 (find_oload_champ_namespace_loop): Likewise
8596
863e4da4
MK
85972014-02-28 Mark Kettenis <kettenis@gnu.org>
8598
025cac40
MK
8599 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
8600
1ed586ce
MK
8601 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
8602 * config/sparc/obsd64.mh: New file.
8603 * sparc64obsd-nat.c: New file.
8604
863e4da4
MK
8605 * obsd-nat.h: New file.
8606 * obsd-nat.c: New file.
8607 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
8608 (ALLDEPFILES): Add obsd-nat.c.
8609
89de4da4
TT
86102014-02-28 Tom Tromey <tromey@redhat.com>
8611
8612 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
8613 * cli-out.h (cli_ui_out_impl): Now const.
8614 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
8615 * ui-out.c (struct ui_out) <impl>: Now const.
8616 (default_ui_out_impl): Now const.
8617 (ui_out_new): Make 'impl' parameter const.
8618 * ui-out.h (ui_out_new): Update.
8619
c725e7b6
MK
86202014-02-27 Mark Kettenis <kettenis@gnu.org>
8621
8622 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
8623
670b46b3
MK
86242014-02-27 Mark Kettenis <kettenis@gnu.org>
8625
8626 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
8627
c91550fc
JK
86282014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
8629
8630 Additional PR 8882 fix.
8631 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
8632
2fa0369e
PA
86332014-02-27 Pedro Alves <palves@redhat.com>
8634
8635 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
8636 isn't set.
8637
d632a097
PA
86382014-02-27 Pedro Alves <palves@redhat.com>
8639
8640 PR 12702
8641 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
8642 * nat/linux-waitpid.c: Include string.h.
8643 (status_to_str): Moved here and made extern.
8644 * nat/linux-waitpid.h (status_to_str): New declaration.
8645
2ebd5a35
HZ
86462014-02-27 Hui Zhu <hui@codesourcery.com>
8647
8648 PR 12702
8649 * infrun.c (ptid_match): Move ...
8650 * common/ptid.c (ptid_match): ... here.
8651 * inferior.h (ptid_match): Move ...
8652 * common/ptid.h (ptid_match): ... here.
8653
3cdd631f
MK
86542014-02-27 Mark Kettenis <kettenis@gnu.org>
8655
8656 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
8657 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
8658 gdb_target_obs.
8659
bee30a64
MK
86602014-02-27 Mark Kettenis <kettenis@gnu.org>
8661
8662 * obsd-tdep.c (obsd_auxv_parse): New function.
8663 (obsd_init_abi): Set auxv_parse.
27a48a92
MK
8664
8665 * gdbarch.sh (auxv_parse): New.
8666 * gdbarch.h: Regenerated.
8667 * gdbarch.c: Regenerated.
8668 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
8669
7a5a839f
LC
86702014-02-26 Ludovic Courtès <ludo@gnu.org>
8671
8672 * guile/scm-value.c (gdbscm_history_append_x): New function.
8673 (value_functions): Add it.
8674
31aa7e4e
JB
86752014-02-27 Joel Brobecker <brobecker@adacore.com>
8676
8677 * dwarf2read.c (attr_value_as_address): New function.
8678 (dwarf2_find_base_address, read_call_site_scope): Use
8679 attr_value_as_address in place of DW_ADDR.
8680 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
8681 the low and high addresses. Slight rework of the handling
8682 of the high pc being a constant form, and limit it to
8683 DWARF verson 4 or higher.
8684 (dwarf2_record_block_ranges): Likewise.
8685 (read_partial_die): Likewise.
8686 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
8687
9b333ba3
TT
86882014-02-26 Tom Tromey <tromey@redhat.com>
8689
8690 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
8691
5f6cac40
TT
86922014-02-26 Tom Tromey <tromey@redhat.com>
8693
8694 * elfread.c (elf_read_minimal_symbols): Return early if
8695 minimal symbols have already been read. Add "ei" parameter.
8696 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
8697 * minsyms.c (prim_record_minimal_symbol_full): Update.
8698 * objfiles.h (struct objstats) <n_minsyms>: Move...
8699 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
8700 * symmisc.c (print_objfile_statistics): Update.
8701
2750ef27
TT
87022014-02-26 Tom Tromey <tromey@redhat.com>
8703
8704 * elfread.c (elf_read_minimal_symbols): New function, from
8705 elf_symfile_read.
8706 (elf_symfile_read): Call it.
8707
34643a32
TT
87082014-02-26 Tom Tromey <tromey@redhat.com>
8709
8710 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
8711 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
8712 (lookup_minimal_symbol_solib_trampoline)
8713 (lookup_minimal_symbol_by_pc_section_1)
8714 (lookup_minimal_symbol_and_objfile): Update.
8715 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
8716 Don't allocate a minimal symbol if minsyms have already been read.
8717 (build_minimal_symbol_hash_tables): Update.
8718 (install_minimal_symbols): Do nothing if minsyms already read.
8719 Use the per-BFD obstack.
8720 (terminate_minimal_symbol_table): Use the per-BFD obstack.
8721 * objfiles.c (allocate_objfile): Call
8722 terminate_minimal_symbol_table later.
8723 (have_minimal_symbols): Update.
8724 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
8725 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
8726 Move from struct objfile.
8727 <minsyms_read>: New field.
8728 (struct objfile) <msymbols, minimal_symbol_count,
8729 msymbol_hash, msymbol_demangled_hash>: Move.
8730 (ALL_OBJFILE_MSYMBOLS): Update.
8731 * symfile.c (read_symbols): Set minsyms_read.
8732 (reread_symbols): Update.
8733 * symmisc.c (dump_objfile, dump_msymbols): Update.
8734
2273f0ac
TT
87352014-02-26 Tom Tromey <tromey@redhat.com>
8736
8737 * minsyms.c (msymbols_sort): Remove.
8738 * minsyms.h (msymbols_sort): Remove.
8739 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
8740 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
8741 * elfread.c (elf_symtab_read): Don't add section offsets.
8742 * xcoffread.c (record_minimal_symbol): Don't add section offset
8743 to minimal symbol address.
8744 * somread.c (text_offset, data_offset): Remove.
8745 (som_symtab_read): Don't add section offsets to minimal symbol
8746 addresses.
8747 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
8748 Don't add section offsets to minimal symbols.
8749 * coffread.c (coff_symtab_read): Don't add section offsets
8750 to minimal symbol addresses.
8751 * machoread.c (macho_symtab_add_minsym): Don't add section offset
8752 to minimal symbol addresses.
8753 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
8754 section offset to minimal symbol addresses.
8755 * mdebugread.c (parse_partial_symbols): Don't add section
8756 offset to minimal symbol addresses.
8757 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
8758 offset to minimal symbol addresses.
8759
77e371c0
TT
87602014-02-26 Tom Tromey <tromey@redhat.com>
8761
8762 * ada-lang.c (ada_main_name): Update.
8763 (ada_add_standard_exceptions): Update.
8764 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
8765 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8766 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
8767 * auxv.c (ld_so_xfer_auxv): Update.
8768 * avr-tdep.c (avr_scan_prologue): Update.
8769 * ax-gdb.c (gen_var_ref): Update.
8770 * blockframe.c (get_pc_function_start)
8771 (find_pc_partial_function_gnu_ifunc): Update.
8772 * breakpoint.c (create_overlay_event_breakpoint)
8773 (create_longjmp_master_breakpoint)
8774 (create_std_terminate_master_breakpoint)
8775 (create_exception_master_breakpoint): Update.
8776 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8777 * c-valprint.c (c_val_print): Update.
8778 * coff-pe-read.c (add_pe_forwarded_sym): Update.
8779 * common/agent.c (agent_look_up_symbols): Update.
8780 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
8781 * dwarf2loc.c (call_site_to_target_addr): Update.
8782 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
8783 * elfread.c (elf_gnu_ifunc_record_cache)
8784 (elf_gnu_ifunc_resolve_by_got): Update.
8785 * findvar.c (default_read_var_value): Update.
8786 * frame.c (inside_main_func): Update.
8787 * frv-tdep.c (frv_frame_this_id): Update.
8788 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8789 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
8790 Update.
8791 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
8792 (hppa_hpux_find_dummy_bpaddr): Update.
8793 * hppa-tdep.c (hppa_symbol_address): Update.
8794 * infcmd.c (until_next_command): Update.
8795 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
8796 Update.
8797 * linespec.c (minsym_found, add_minsym): Update.
8798 * linux-nat.c (get_signo): Update.
8799 * linux-thread-db.c (inferior_has_bug): Update.
8800 * m32c-tdep.c (m32c_return_value)
8801 (m32c_m16c_address_to_pointer): Update.
8802 * m32r-tdep.c (m32r_frame_this_id): Update.
8803 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8804 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8805 * maint.c (maintenance_translate_address): Update.
8806 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
8807 (frob_address): New function.
8808 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
8809 frob_address. Rename parameter to "pc_in".
8810 (compare_minimal_symbols, compact_minimal_symbols): Use raw
8811 addresses.
8812 (find_solib_trampoline_target, minimal_symbol_upper_bound):
8813 Update.
8814 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8815 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
8816 * objc-lang.c (find_objc_msgsend): Update.
8817 * objfiles.c (objfile_relocate1): Update.
8818 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8819 * p-valprint.c (pascal_val_print): Update.
8820 * parse.c (write_exp_msymbol): Update.
8821 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
8822 (ppc_elfv2_skip_entrypoint): Update.
8823 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8824 * printcmd.c (build_address_symbolic, msym_info)
8825 (address_info): Update.
8826 * proc-service.c (ps_pglobal_lookup): Update.
8827 * psymtab.c (find_pc_sect_psymtab_closer)
8828 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
8829 Change msymbol parameter to bound_minimal_symbol.
8830 * ravenscar-thread.c (get_running_thread_id): Update.
8831 * remote.c (remote_check_symbols): Update.
8832 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
8833 address.
8834 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8835 * solib-dsbt.c (lm_base): Update.
8836 * solib-frv.c (lm_base, main_got): Update.
8837 * solib-irix.c (locate_base): Update.
8838 * solib-som.c (som_solib_create_inferior_hook)
8839 (link_map_start): Update.
8840 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
8841 * solib-svr4.c (elf_locate_base, enable_break): Update.
8842 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
8843 (flush_ea_cache): Update.
8844 * stabsread.c (define_symbol, scan_file_globals): Update.
8845 * stack.c (find_frame_funname): Update.
8846 * symfile-debug.c (debug_qf_expand_symtabs_matching)
8847 (debug_qf_find_pc_sect_symtab): Update.
8848 * symfile.c (simple_read_overlay_table)
8849 (simple_overlay_update): Update.
8850 * symfile.h (struct quick_symbol_functions)
8851 <find_pc_sect_symtab>: Change type of msymbol to
8852 bound_minimal_symbol.
8853 * symmisc.c (dump_msymbols): Update.
8854 * symtab.c (find_pc_sect_symtab_via_partial)
8855 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
8856 (search_symbols, print_msymbol_info): Update.
8857 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
8858 (MSYMBOL_VALUE_ADDRESS): Redefine.
8859 (BMSYMBOL_VALUE_ADDRESS): New macro.
8860 * tracepoint.c (scope_info): Update.
8861 * tui/tui-disasm.c (tui_find_disassembly_address)
8862 (tui_get_begin_asm_address): Update.
8863 * valops.c (find_function_in_inferior): Update.
8864 * value.c (value_static_field, value_fn_field): Update.
8865
3b7344d5
TT
88662014-02-26 Tom Tromey <tromey@redhat.com>
8867
8868 * ada-lang.c (ada_update_initial_language): Update.
8869 (ada_main_name, ada_has_this_exception_support): Update.
8870 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
8871 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8872 * arm-tdep.c (arm_skip_stub): Update.
8873 * auxv.c (ld_so_xfer_auxv): Update.
8874 * avr-tdep.c (avr_scan_prologue): Update.
8875 * ax-gdb.c (gen_var_ref): Update.
8876 * breakpoint.c (struct breakpoint_objfile_data)
8877 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
8878 type to bound_minimal_symbol.
8879 (create_overlay_event_breakpoint)
8880 (create_longjmp_master_breakpoint)
8881 (create_std_terminate_master_breakpoint)
8882 (create_exception_master_breakpoint): Update.
8883 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8884 * c-exp.y (classify_name): Update.
8885 * coffread.c (coff_symfile_read): Update.
8886 * common/agent.c (agent_look_up_symbols): Update.
8887 * d-lang.c (d_main_name): Update.
8888 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
8889 * dec-thread.c (enable_dec_thread): Update.
8890 * dwarf2loc.c (call_site_to_target_addr): Update.
8891 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
8892 * eval.c (evaluate_subexp_standard): Update.
8893 * findvar.c (struct minsym_lookup_data) <result>: Change type
8894 to bound_minimal_symbol.
8895 <objfile>: Remove.
8896 (minsym_lookup_iterator_cb, default_read_var_value): Update.
8897 * frame.c (inside_main_func): Update.
8898 * frv-tdep.c (frv_frame_this_id): Update.
8899 * gcore.c (call_target_sbrk): Update.
8900 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8901 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
8902 Update.
8903 * go-lang.c (go_main_name): Update.
8904 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
8905 (hppa_hpux_find_import_stub_for_addr): Update.
8906 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
8907 Update. Change return type.
8908 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
8909 type.
8910 * jit.c (jit_breakpoint_re_set_internal): Update.
8911 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
8912 Update.
8913 * linux-nat.c (get_signo): Update.
8914 * linux-thread-db.c (inferior_has_bug): Update
8915 * m32c-tdep.c (m32c_return_value)
8916 (m32c_m16c_address_to_pointer): Update.
8917 * m32r-tdep.c (m32r_frame_this_id): Update.
8918 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8919 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8920 * minsyms.c (lookup_minimal_symbol_internal): Rename to
8921 lookup_minimal_symbol. Change return type.
8922 (lookup_minimal_symbol): Remove.
8923 (lookup_bound_minimal_symbol): Update.
8924 (lookup_minimal_symbol_text): Change return type.
8925 (lookup_minimal_symbol_solib_trampoline): Change return type.
8926 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
8927 (lookup_minimal_symbol_solib_trampoline): Change return type.
8928 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8929 * objc-lang.c (lookup_objc_class, lookup_child_selector)
8930 (value_nsstring, find_imps): Update.
8931 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8932 * p-lang.c (pascal_main_name): Update.
8933 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
8934 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8935 * proc-service.c (ps_pglobal_lookup): Update.
8936 * ravenscar-thread.c (get_running_thread_msymbol): Change
8937 return type.
8938 (has_ravenscar_runtime, get_running_thread_id): Update.
8939 * remote.c (remote_check_symbols): Update.
8940 * sol-thread.c (ps_pglobal_lookup): Update.
8941 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8942 * solib-dsbt.c (lm_base): Update.
8943 * solib-frv.c (lm_base, frv_relocate_section_addresses):
8944 Update.
8945 * solib-irix.c (locate_base): Update.
8946 * solib-som.c (som_solib_create_inferior_hook)
8947 (som_solib_desire_dynamic_linker_symbols, link_map_start):
8948 Update.
8949 * solib-spu.c (spu_enable_break): Update.
8950 * solib-svr4.c (elf_locate_base, enable_break): Update.
8951 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
8952 (flush_ea_cache): Update.
8953 * stabsread.c (define_symbol): Update.
8954 * symfile.c (simple_read_overlay_table): Update.
8955 * symtab.c (find_pc_sect_line): Update.
8956 * tracepoint.c (scope_info): Update.
8957 * tui-disasm.c (tui_get_begin_asm_address): Update.
8958 * value.c (value_static_field): Update.
8959
40c1a007
TT
89602014-02-26 Tom Tromey <tromey@redhat.com>
8961
8962 * minsyms.c (prim_record_minimal_symbol_full): Use
8963 SET_MSYMBOL_VALUE_ADDRESS.
8964 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
8965 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
8966 SET_MSYMBOL_VALUE_ADDRESS.
8967 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
8968 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
8969
efd66ac6
TT
89702014-02-26 Tom Tromey <tromey@redhat.com>
8971
8972 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
8973 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
8974 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
8975 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
8976 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
8977 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
8978 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
8979 * ada-lang.c (ada_main_name): Update.
8980 (ada_lookup_simple_minsym): Update.
8981 (ada_make_symbol_completion_list): Update.
8982 (ada_add_standard_exceptions): Update.
8983 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
8984 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8985 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
8986 * arm-tdep.c (skip_prologue_function): Update.
8987 (arm_skip_stack_protector, arm_skip_stub): Update.
8988 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
8989 (arm_wince_skip_main_prologue): Update.
8990 * auxv.c (ld_so_xfer_auxv): Update.
8991 * avr-tdep.c (avr_scan_prologue): Update.
8992 * ax-gdb.c (gen_var_ref): Update.
8993 * block.c (call_site_for_pc): Update.
8994 * blockframe.c (get_pc_function_start): Update.
8995 (find_pc_partial_function_gnu_ifunc): Update.
8996 * breakpoint.c (create_overlay_event_breakpoint): Update.
8997 (create_longjmp_master_breakpoint): Update.
8998 (create_std_terminate_master_breakpoint): Update.
8999 (create_exception_master_breakpoint): Update.
9000 (resolve_sal_pc): Update.
9001 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9002 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
9003 Update.
9004 * c-valprint.c (c_val_print): Update.
9005 * coff-pe-read.c (add_pe_forwarded_sym): Update.
9006 * coffread.c (coff_symfile_read): Update.
9007 * common/agent.c (agent_look_up_symbols): Update.
9008 * dbxread.c (find_stab_function_addr): Update.
9009 (end_psymtab): Update.
9010 * dwarf2loc.c (call_site_to_target_addr): Update.
9011 (func_verify_no_selftailcall): Update.
9012 (tailcall_dump): Update.
9013 (call_site_find_chain_1): Update.
9014 (dwarf_expr_reg_to_entry_parameter): Update.
9015 * elfread.c (elf_gnu_ifunc_record_cache): Update.
9016 (elf_gnu_ifunc_resolve_by_got): Update.
9017 * f-valprint.c (info_common_command): Update.
9018 * findvar.c (read_var_value): Update.
9019 * frame.c (get_prev_frame_1): Update.
9020 (inside_main_func): Update.
9021 * frv-tdep.c (frv_skip_main_prologue): Update.
9022 (frv_frame_this_id): Update.
9023 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9024 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
9025 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
9026 (gnuv3_skip_trampoline): Update.
9027 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
9028 (hppa64_hpux_in_solib_call_trampoline): Update.
9029 (hppa_hpux_skip_trampoline_code): Update.
9030 (hppa64_hpux_search_dummy_call_sequence): Update.
9031 (hppa_hpux_find_import_stub_for_addr): Update.
9032 (hppa_hpux_find_dummy_bpaddr): Update.
9033 * hppa-tdep.c (hppa_symbol_address)
9034 (hppa_lookup_stub_minimal_symbol): Update.
9035 * i386-tdep.c (i386_skip_main_prologue): Update.
9036 (i386_pe_skip_trampoline_code): Update.
9037 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
9038 * infcall.c (get_function_name): Update.
9039 * infcmd.c (until_next_command): Update.
9040 * jit.c (jit_breakpoint_re_set_internal): Update.
9041 (jit_inferior_init): Update.
9042 * linespec.c (minsym_found): Update.
9043 (add_minsym): Update.
9044 * linux-fork.c (info_checkpoints_command): Update.
9045 * linux-nat.c (get_signo): Update.
9046 * linux-thread-db.c (inferior_has_bug): Update.
9047 * m32c-tdep.c (m32c_return_value): Update.
9048 (m32c_m16c_address_to_pointer): Update.
9049 (m32c_m16c_pointer_to_address): Update.
9050 * m32r-tdep.c (m32r_frame_this_id): Update.
9051 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9052 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9053 * maint.c (maintenance_translate_address): Update.
9054 * minsyms.c (add_minsym_to_hash_table): Update.
9055 (add_minsym_to_demangled_hash_table): Update.
9056 (msymbol_objfile): Update.
9057 (lookup_minimal_symbol): Update.
9058 (iterate_over_minimal_symbols): Update.
9059 (lookup_minimal_symbol_text): Update.
9060 (lookup_minimal_symbol_by_pc_name): Update.
9061 (lookup_minimal_symbol_solib_trampoline): Update.
9062 (lookup_minimal_symbol_by_pc_section_1): Update.
9063 (lookup_minimal_symbol_and_objfile): Update.
9064 (prim_record_minimal_symbol_full): Update.
9065 (compare_minimal_symbols): Update.
9066 (compact_minimal_symbols): Update.
9067 (build_minimal_symbol_hash_tables): Update.
9068 (install_minimal_symbols): Update.
9069 (terminate_minimal_symbol_table): Update.
9070 (find_solib_trampoline_target): Update.
9071 (minimal_symbol_upper_bound): Update.
9072 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9073 * mips-tdep.c (mips_stub_frame_sniffer): Update.
9074 (mips_skip_pic_trampoline_code): Update.
9075 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
9076 * objc-lang.c (selectors_info): Update.
9077 (classes_info): Update.
9078 (find_methods): Update.
9079 (find_imps): Update.
9080 (find_objc_msgsend): Update.
9081 * objfiles.c (objfile_relocate1): Update.
9082 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
9083 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9084 * p-valprint.c (pascal_val_print): Update.
9085 * parse.c (write_exp_msymbol): Update.
9086 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
9087 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
9088 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9089 * printcmd.c (build_address_symbolic): Update.
9090 (sym_info): Update.
9091 (address_info): Update.
9092 * proc-service.c (ps_pglobal_lookup): Update.
9093 * psymtab.c (find_pc_sect_psymtab_closer): Update.
9094 (find_pc_sect_psymtab): Update.
9095 * python/py-framefilter.c (py_print_frame): Update.
9096 * ravenscar-thread.c (get_running_thread_id): Update.
9097 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
9098 Update.
9099 * remote.c (remote_check_symbols): Update.
9100 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
9101 (rs6000_skip_trampoline_code): Update.
9102 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
9103 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9104 * solib-dsbt.c (lm_base): Update.
9105 * solib-frv.c (lm_base): Update.
9106 (main_got): Update.
9107 * solib-irix.c (locate_base): Update.
9108 * solib-som.c (som_solib_create_inferior_hook): Update.
9109 (som_solib_desire_dynamic_linker_symbols): Update.
9110 (link_map_start): Update.
9111 * solib-spu.c (spu_enable_break): Update.
9112 (ocl_enable_break): Update.
9113 * solib-svr4.c (elf_locate_base): Update.
9114 (enable_break): Update.
9115 * spu-tdep.c (spu_get_overlay_table): Update.
9116 (spu_catch_start): Update.
9117 (flush_ea_cache): Update.
9118 * stabsread.c (define_symbol): Update.
9119 (scan_file_globals): Update.
9120 * stack.c (find_frame_funname): Update.
9121 (frame_info): Update.
9122 * symfile.c (simple_read_overlay_table): Update.
9123 (simple_overlay_update): Update.
9124 * symmisc.c (dump_msymbols): Update.
9125 * symtab.c (fixup_section): Update.
9126 (find_pc_sect_line): Update.
9127 (skip_prologue_sal): Update.
9128 (search_symbols): Update.
9129 (print_msymbol_info): Update.
9130 (rbreak_command): Update.
9131 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
9132 (completion_list_objc_symbol): Update.
9133 (default_make_symbol_completion_list_break_on): Update.
9134 * tracepoint.c (scope_info): Update.
9135 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
9136 (tui_get_begin_asm_address): Update.
9137 * valops.c (find_function_in_inferior): Update.
9138 * value.c (value_static_field): Update.
9139 (value_fn_field): Update.
9140
50e65b17
TT
91412014-02-26 Tom Tromey <tromey@redhat.com>
9142
9143 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
9144 bound minimal symbols. Move code that knows about minsym
9145 table layout...
9146 * minsyms.c (minimal_symbol_upper_bound): ... here. New
9147 function.
9148 * minsyms.h (minimal_symbol_upper_bound): Declare.
9149 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
9150 minimal_symbol_upper_bound.
9151
1b588015
JB
91522014-02-27 Joel Brobecker <brobecker@adacore.com>
9153
9154 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
9155 Use the type's name if its basic type does not have a tag.
9156
dbb9c2b1
JB
91572014-02-27 Joel Brobecker <brobecker@adacore.com>
9158
9159 * dwarf2read.c (read_subrange_type): Add comment.
9160
55426c9d
JB
91612014-02-27 Joel Brobecker <brobecker@adacore.com>
9162
9163 * dwarf2read.c (update_enumeration_type_from_children): New
9164 function, mostly extracted from process_structure_scope.
9165 (read_enumeration_type): Call update_enumeration_type_from_children.
9166 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
9167 and flag_flag_enum fields.
9168
f2fce0ca
PA
91692014-02-26 Pedro Alves <palves@redhat.com>
9170
9171 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
9172 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
9173 to_xfer_partial method.
9174
7a44e40e
PA
91752014-02-26 Pedro Alves <palves@redhat.com>
9176
9177 * target.c (complete_target_initialization): Don't install
9178 default_xfer_partial as to_xfer_partial hook.
9179 (nomemory): Delete.
9180 (update_current_target): Don't INHERIT nor de_fault
9181 deprecated_xfer_memory. Delete de_fault macro.
9182 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
9183 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
9184 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
9185 field.
9186
bd265cd0
PA
91872014-02-26 Pedro Alves <palves@redhat.com>
9188
9189 * go32-nat.c (my_write_child): New function.
9190 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
9191 (go32_xfer_partial): New function.
9192 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
9193 Instead install a to_xfer_partial hook.
9194
9d46c4e5
PA
91952014-02-26 Pedro Alves <palves@redhat.com>
9196
9197 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
9198 to_xfer_partial helper. Rewrite.
9199 (procfs_xfer_partial): New function.
9200 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
9201 Install a to_xfer_partial hook.
9202
a1583b1f
PA
92032014-02-26 Pedro Alves <palves@redhat.com>
9204
9205 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
9206 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
9207 (m32r_xfer_partial): New function.
9208 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
9209 Install a to_xfer_partial hook.
9210
6df1b29f
PA
92112014-02-26 Pedro Alves <palves@redhat.com>
9212
9213 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
9214 helper.
9215 (mips_xfer_partial): New function.
9216 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
9217 hook. Install a to_xfer_partial hook.
9218
dc53a7ad
JB
92192014-02-26 Joel Brobecker <brobecker@adacore.com>
9220
9221 * gdbtypes.h (create_array_type_with_stride): Add declaration.
9222 * gdbtypes.c (create_array_type_with_stride): New function,
9223 renaming create_array_type, but with an added parameter
9224 called "bit_stride".
9225 (create_array_type): Re-implement using
9226 create_array_type_with_stride.
9227 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
9228 and DW_AT_bit_stride attributes.
9229
12ab52e9
PA
92302014-02-26 Pedro Alves <palves@redhat.com>
9231
9232 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
9233 task-specific breakpoints.
9234
d16461ae
PA
92352014-02-25 Pedro Alves <palves@redhat.com>
9236
9237 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
9238 handling of object == TARGET_OBJECT_UNWIND_TABLE.
9239
a8b16220
SS
92402014-02-25 Stan Shebs <stan@codesourcery.com>
9241
9242 * defs.h: Annotate comments for Doxygen.
9243
b9e795ee
TT
92442014-02-25 Tom Tromey <tromey@redhat.com>
9245
9246 * target.h (target_ignore): Don't declare.
9247 * target.c (target_ignore): Remove.
9248
849c862e
JK
92492014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
9250
9251 PR gdb/16626
9252 * auto-load.c (auto_load_objfile_script_1): Change filename to
9253 debugfile.
9254
475109d8
JB
92552014-02-25 Joel Brobecker <brobecker@adacore.com>
9256
9257 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
9258 documentation. Adjust prototype to match the target_ops
9259 to_xfer_partial method. Adjust implementation accordingly.
9260
e186c3bd
HZ
92612014-02-25 Hui Zhu <hui@codesourcery.com>
9262
9263 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
9264 to_traceframe_info.
9265
6d451942
KB
92662014-02-25 Kevin Buettner <kevinb@redhat.com>
9267
041ab8b4 9268 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
6d451942
KB
9269 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
9270 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
9271 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
9272 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
9273 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
9274 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
9275 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
9276 New constants.
9277 (rl78_register_type): Use a data pointer type for SP and
9278 new pseudo registers mentioned above. Use a 16 bit integer
9279 type for all other register pairs.
9280 (rl78_register_name, rl78_g10_register_name): Update for
9281 new pseudo registers.
9282 (rl78_pseudo_register_read): Likewise.
9283 (rl78_pseudo_register_write): Likewise.
9284 (rl78_dwarf_reg_to_regnum): Return register numbers representing
9285 to the newly added pseudo registers.
9286
eddf0bae
DE
92872014-02-24 Doug Evans <dje@google.com>
9288
9289 * value.c (record_latest_value): Fix comment.
9290 * printcmd.c (print_command_1): Remove code to handle -1 return from
9291 record_latest_value.
9292
e96027e0
PA
92932014-02-24 Pedro Alves <palves@redhat.com>
9294
9295 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
9296 deprecated_xfer_memory hook.
9297 (procfs_xfer_partial): Call procfs_xfer_memory instead
9298 of the deprecated_xfer_memory target hook.
9299 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
9300 helper.
9301
0837c976
YZ
93022014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
9303
9304 * windows-nat.c (windows_xfer_shared_libraries): Return
9305 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
9306 requested object is TARGET_OBJECT_LIBRARIES.
9307
bc113b4e
YQ
93082014-02-24 Yao Qi <yao@codesourcery.com>
9309
9310 * target.h (enum target_xfer_status)
9311 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
9312 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
9313 explicitly. New.
9314 * corefile.c (memory_error_message): User updated.
9315 * exec.c (section_table_read_available_memory): Likewise.
9316 * record-btrace.c (record_btrace_xfer_partial): Likewise.
9317 * target.c (target_xfer_status_to_string): Likewise.
9318 (raw_memory_xfer_partial): Likewise.
9319 (memory_xfer_partial_1, target_xfer_partial): Likewise.
9320 * valops.c (read_value_memory): Likewise.
9321 * exec.h: Update comments.
9322
01cb8804
YQ
93232014-02-24 Yao Qi <yao@codesourcery.com>
9324
9325 * target.c (target_xfer_status_to_string): Rename argument err
9326 to status.
9327 * target.h (target_xfer_status_to_string): Update declaration.
9328 Replace target_xfer_error_to_string with
9329 target_xfer_status_to_string in comment.
9330
93063aa6
YQ
93312014-02-24 Yao Qi <yao@codesourcery.com>
9332
9333 * mips-linux-nat.c (super_close): Update its type.
9334 (mips_linux_close): Pass 'self' to super_close.
9335
5c328c05
YQ
93362014-02-24 Yao Qi <yao@codesourcery.com>
9337
9338 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
9339 * corefile.c (read_memory): Adjusted.
9340 * target.c (target_write_with_progress): Adjusted.
9341
f73023dd
YQ
93422014-02-23 Yao Qi <yao@codesourcery.com>
9343
9344 Revert two patches:
9345
9346 2013-10-25 Yao Qi <yao@codesourcery.com>
9347
9348 * remote.c (remote_traceframe_info): Return early if
9349 traceframe is not selected.
9350
9351 2013-07-19 Yao Qi <yao@codesourcery.com>
9352
9353 * target.c (update_current_target): Change the default action
9354 of 'to_traceframe_info' from tcomplain to return_zero.
9355 * target.h (struct target_ops) <to_traceframe_info>: Add more
9356 comments.
9357
5a2eb0ef
YQ
93582014-02-23 Yao Qi <yao@codesourcery.com>
9359
9360 * valops.c (read_value_memory): Rewrite it. Call
9361 target_xfer_partial in a loop.
9362 * exec.h (section_table_available_memory): Remove declaration.
9363 Move comments to ...
9364 * exec.c (section_table_available_memory): ... here. Make it
9365 static.
9366
1ee79381
YQ
93672014-02-23 Yao Qi <yao@codesourcery.com>
9368
9369 * exec.c (section_table_read_available_memory): New function.
9370 * exec.h (section_table_read_available_memory): Declare.
9371 * ctf.c (ctf_xfer_partial): Call
9372 section_table_read_available_memory.
9373 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9374
1ca49d37
YQ
93752014-02-23 Yao Qi <yao@codesourcery.com>
9376
9377 * ctf.c (ctf_xfer_partial): Move code to ...
9378 * exec.c (exec_read_partial_read_only): ... it. New function.
9379 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9380 * tracefile.c: Include "exec.h".
9381 * exec.h (exec_read_partial_read_only): Declare.
9382
a283690e
YQ
93832014-02-23 Yao Qi <yao@codesourcery.com>
9384
9385 * tracefile-tfile.c (tfile_has_all_memory): Remove.
9386 (tfile_has_memory): Remove.
9387 (init_tfile_ops): Don't set fields to_has_all_memory and
9388 to_has_memory of tfile_ops.
9389 * tracefile.c (tracefile_has_all_memory): New function.
9390 (tracefile_has_memory): New function.
9391 (init_tracefile_ops): Initialize fields to_has_all_memory and
9392 to_has_memory of 'ops'.
9393
12e03cd0
YQ
93942014-02-23 Yao Qi <yao@codesourcery.com>
9395
9396 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
9397 (ctf_thread_alive, ctf_get_trace_status): Remove.
9398 (init_ctf_ops): Don't set some fields of ctf_ops. Call
9399 init_tracefile_ops.
9400 * tracefile-tfile.c (tfile_get_trace_status): Remove.
9401 (tfile_has_stack, tfile_has_registers): Remove.
9402 (tfile_thread_alive): Remove.
9403 (init_tfile_ops): Don't set some fields of tfile_ops. Call
9404 init_tracefile_ops.
9405 * tracefile.c (tracefile_has_stack): New function.
9406 (tracefile_has_registers): New function.
9407 (tracefile_thread_alive): New function.
9408 (tracefile_get_trace_status): New function.
9409 (init_tracefile_ops): New function.
9410 * tracefile.h (init_tracefile_ops): Declare.
9411
11395323
YQ
94122014-02-23 Yao Qi <yao@codesourcery.com>
9413
9414 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
9415 (O_LARGEFILE): Likewise.
9416 (tfile_ops): Likewise.
9417 (TRACE_HEADER_SIZE): Likewise.
9418 (trace_fd, trace_frames_offset, cur_offset): Likewise.
9419 (cur_data_size): Likewise.
9420 (tfile_read, tfile_open, tfile_interp_line): Likewise.
9421 (tfile_close, tfile_files_info): Likewise.
9422 (tfile_get_trace_status): Likewise.
9423 (tfile_get_tracepoint_status): Likewise.
9424 (tfile_get_traceframe_address): Likewise.
9425 (tfile_trace_find, match_blocktype): Likewise.
9426 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
9427 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
9428 (tfile_get_trace_state_variable_value): Likewise.
9429 (tfile_has_all_memory, tfile_has_memory): Likewise.
9430 (tfile_has_stack, tfile_has_registers): Likewise.
9431 (tfile_thread_alive, build_traceframe_info): Likewise.
9432 (tfile_traceframe_info, init_tfile_ops): Likewise.
9433 (_initialize_tracepoint): Don't call init_tfile_ops
9434 and add_target_with_completer.
9435 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
9436 exec.h, completer.h and filenames.h.
9437 (_initialize_tracefile_tfile): New function.
9438
7951c4eb
YQ
94392014-02-23 Yao Qi <yao@codesourcery.com>
9440
9441 * Makefile.in (REMOTE_OBS): Append tracefile.o and
9442 tracefile-tfile.o.
9443 (HFILES_NO_SRCDIR): Add tracefile.h.
9444 * ctf.c: Include "tracefile.h".
9445 * tracefile.h: New file.
9446 * tracefile.c: New file
9447 * tracefile-tfile.c: New file.
9448 * tracepoint.c: Include "tracefile.h".
9449 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
9450 (stop_reason_names): Add const.
9451 (trace_file_writer_xfree): Move it to tracefile.c.
9452 (trace_save, trace_save_command, trace_save_tfile): Likewise.
9453 (trace_save_ctf): Likewise.
9454 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
9455 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
9456 (tfile_write_header, tfile_write_regblock_type): Likewise.
9457 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
9458 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
9459 (tfile_write_raw_data, tfile_end): Likewise.
9460 (tfile_trace_file_writer_new): Likewise.
9461 (free_uploaded_tp): Make it extern.
9462 (free_uploaded_tsv): Make it extern.
9463 (_initialize_tracepoint): Move code to register command 'tsave'
9464 to tracefile.c.
9465 * tracepoint.h (stop_reason_names): Declare.
9466 (struct trace_frame_write_ops): Move it to tracefile.h.
9467 (struct trace_file_write_ops): Likewise.
9468 (struct trace_file_writer): Likewise.
9469 (free_uploaded_tsvs, free_uploaded_tps): Declare.
9470
184cd072
JK
94712014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9472
9473 PR gdb/16594
9474 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
9475 process name.
9476 (get_cores_used_by_process): New parameter num_cores, use it.
9477 (linux_xfer_osdata_processes): Pass num_cores to it.
9478 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
9479 process name.
9480
c63528fc
AK
94812014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
9482
9483 * target.c (memory_xfer_partial): Fix length arg in call to
9484 breakpoint_xfer_memory.
9485
d7b30f67
SDJ
94862014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9487
9488 PR tdep/16397
9489 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
9490 number comes after the + or - signs. Adjust length of register
9491 name to be extracted.
9492
8838afaf
TT
94932014-02-20 Tom Tromey <tromey@redhat.com>
9494
9495 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
9496 (ada_varobj_ops): Mark "extern".
9497
05227d14
TT
94982014-02-20 Tom Tromey <tromey@redhat.com>
9499
9500 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
9501
1254eefc
DE
95022014-02-20 Doug Evans <xdje42@gmail.com>
9503
9504 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
9505 All callers updated.
9506 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
9507 All callers updated.
9508 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
9509 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
9510
adde2bff
DE
95112014-02-20 lin zuojian <manjian2006@gmail.com>
9512 Joel Brobecker <brobecker@adacore.com>
9513 Doug Evans <xdje42@gmail.com>
9514
9515 PR symtab/16581
9516 * dwarf2read.c (struct die_info): New member in_process.
9517 (reset_die_in_process): New function.
9518 (process_die): Set it at the start, reset when returning.
9519 (inherit_abstract_dies): Only call process_die if origin_child_die
9520 not already being processed.
9521
3be75f87
JB
95222014-02-20 Joel Brobecker <brobecker@adacore.com>
9523
9524 * windows-nat.c (handle_unload_dll): Add function documentation.
9525 (do_initial_windows_stuff): Add comment explaining why we wait
9526 until after inferior initialization has finished before
9527 processing all DLLs.
9528
47f7ffdb
JB
95292014-02-20 Joel Brobecker <brobecker@adacore.com>
9530
9531 * windows-nat.c (get_module_name): Delete.
9532 (windows_get_exec_module_filename): New function, mostly
9533 inspired from get_module_name.
9534 (windows_pid_to_exec_file): Replace call to get_module_name
9535 by call to windows_get_exec_module_filename.
9536
1cd9feab
JB
95372014-02-20 Joel Brobecker <brobecker@adacore.com>
9538
9539 * windows-nat.c (handle_load_dll): Rewrite this function's
9540 introductory comment. Remove code using get_module_name
9541 to get the DLL's name.
9542
ea39ad35
JB
95432014-02-20 Joel Brobecker <brobecker@adacore.com>
9544
9545 * windows-nat.c (get_windows_debug_event): Ignore
9546 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
9547 if windows_initialization_done == 0.
9548 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
9549 Adjust implementation to always load all DLLs.
9550 (do_initial_windows_stuff): Replace call to
9551 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
9552
95060284
JB
95532014-02-20 Joel Brobecker <brobecker@adacore.com>
9554
9555 * windows-nat.c (_initialize_windows_nat): Deprecate the
9556 "dll-symbols" command. Turn the "add-shared-symbol-files"
9557 and "assf" aliases into commands, and deprecate them as well.
9558 * NEWS: Add entry explaining that "dll-symbols" and its two
9559 aliases are now deprecated.
9560
8d4fdb12
JB
95612014-02-20 Joel Brobecker <brobecker@adacore.com>
9562
9563 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
9564 new-line in debug string. Remove trailing spaces.
9565
1b281443
SS
95662014-02-19 Stan Shebs <stan@codesourcery.com>
9567
9568 * darwin-nat.c (darwin_xfer_partial): Fix return type.
9569
f7bd0f78
SC
95702014-02-19 Siva Chandra Reddy <sivachandra@google.com>
9571
9572 * NEWS: Add entry for the new feature
9573 * python/py-value.c (valpy_binop): Call value_x_binop for struct
9574 and class values.
9575
399ebc3d
SS
95762014-02-19 Stan Shebs <stan@codesourcery.com>
9577
9578 * MAINTAINERS: List Yao Qi as nios2 maintainer.
9579
c658158d
PA
95802014-02-19 Pedro Alves <palves@redhat.com>
9581
9582 * common/ptid.h (struct ptid): Mention that process_stratum
9583 targets should prefer ptid.lwp.
9584
ba348170
PA
95852014-02-19 Pedro Alves <palves@redhat.com>
9586
9587 * remote.c (remote_thread_alive, write_ptid, read_ptid)
9588 (read_ptid, remote_newthread_step, remote_threads_extra_info)
9589 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
9590 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
9591 store remote thread ids rather than ptid.tid.
9592 (_initialize_remote): Adjust.
9593
ac01945b
TT
95942014-02-19 Tom Tromey <tromey@redhat.com>
9595
9596 * target.c (target_get_unwinder): Rewrite.
9597 (target_get_tailcall_unwinder): Rewrite.
9598 * record-btrace.c (record_btrace_to_get_unwinder): New function.
9599 (record_btrace_to_get_tailcall_unwinder): New function.
9600 (init_record_btrace_ops): Update.
9601 * target.h (struct target_ops) <to_get_unwinder,
9602 to_get_tailcall_unwinder>: Now function pointers. Use
9603 TARGET_DEFAULT_RETURN.
9604
8476dc92
TT
96052014-02-19 Tom Tromey <tromey@redhat.com>
9606
9607 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
9608 argument.
9609 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
9610
c0eca49f
TT
96112014-02-19 Tom Tromey <tromey@redhat.com>
9612
9613 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
9614 directly.
9615 * target-delegates.c: Rebuild.
9616 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
9617 TARGET_DEFAULT_FUNC.
9618 * target.c (default_target_decr_pc_after_break): Rename from
9619 forward_target_decr_pc_after_break. Simplify.
9620 (target_decr_pc_after_break): Rely on delegation.
9621
596b6b39
TT
96222014-02-19 Tom Tromey <tromey@redhat.com>
9623
9624 * target.c (update_current_target): Do not INHERIT to_doc or
9625 to_magic. Do not de_fault to_open or to_close.
9626
b427c1bc
TT
96272014-02-19 Tom Tromey <tromey@redhat.com>
9628
9629 * gcore.h (objfile_find_memory_regions): Declare.
9630 * gcore.c (objfile_find_memory_regions): No longer static. Add
9631 "self" argument.
9632 (_initialize_gcore): Don't call exec_set_find_memory_regions.
9633 * exec.c: Include gcore.h.
9634 (exec_set_find_memory_regions): Remove.
9635 (exec_find_memory_regions): Remove.
9636 (exec_do_find_memory_regions): Remove.
9637 (init_exec_ops): Update.
9638 * defs.h (exec_set_find_memory_regions): Remove.
9639
9b144037
TT
96402014-02-19 Tom Tromey <tromey@redhat.com>
9641
9642 * target-delegates.c: Rebuild.
9643 * target.h (struct target_ops) <to_extra_thread_info,
9644 to_thread_name, to_pid_to_exec_file, to_get_section_table,
9645 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
9646 not 0, in TARGET_DEFAULT_RETURN.
9647
555bbdeb
TT
96482014-02-19 Tom Tromey <tromey@redhat.com>
9649
9650 * target.c (complete_target_initialization): Remove casts. Use
9651 return_zero_has_execution.
9652 (return_zero): Add "ignore" argument.
9653 (return_zero_has_execution): New function.
9654 (init_dummy_target): Remove casts. Use
9655 return_zero_has_execution.
9656
be4ddd36
TT
96572014-02-19 Tom Tromey <tromey@redhat.com>
9658
9659 * target.c (update_current_target): Update comments. Do not
9660 INHERIT to_stratum.
9661
2117c711
TT
96622014-02-19 Tom Tromey <tromey@redhat.com>
9663
9664 * arm-linux-nat.c (arm_linux_read_description): Delegate when
9665 needed.
9666 * corelow.c (core_read_description): Delegate when needed.
9667 * remote.c (remote_read_description): Delegate when needed.
9668 * target-delegates.c: Rebuild.
9669 * target.c (target_read_description): Rewrite.
9670 * target.h (struct target_ops) <to_read_description>: Update
9671 comment. Use TARGET_DEFAULT_RETURN.
9672
e88ef65c
TT
96732014-02-19 Tom Tromey <tromey@redhat.com>
9674
9675 * target-delegates.c: Rebuild.
9676 * target.c (update_current_target): Don't inherit or default
9677 to_can_run.
9678 (find_default_run_target): Check against delegate_can_run.
9679 * target.h (struct target_ops) <to_can_run>: Use
9680 TARGET_DEFAULT_RETURN.
9681
86a0854a
TT
96822014-02-19 Tom Tromey <tromey@redhat.com>
9683
9684 * target-delegates.c: Rebuild.
9685 * target.c (target_disconnect): Unconditionally delegate.
9686 * target.h (struct target_ops) <to_disconnect>: Use
9687 TARGET_DEFAULT_NORETURN.
9688
ee97f592
TT
96892014-02-19 Tom Tromey <tromey@redhat.com>
9690
9691 * record.c (record_stop): Unconditionally delegate.
9692 * target-delegates.c: Rebuild.
9693 * target.c (target_stop_recording): Unconditionally delegate.
9694 * target.h (struct target_ops) <to_stop_recording>: Use
9695 TARGET_DEFAULT_IGNORE.
9696
6dc7fcf4
TT
96972014-02-19 Tom Tromey <tromey@redhat.com>
9698
9699 * target-delegates.c: Rebuild.
9700 * target.c (target_enable_btrace): Unconditionally delegate.
9701 * target.h (struct target_ops) <to_enable_btrace>: Use
9702 TARGET_DEFAULT_NORETURN.
9703
eb5b20d4
TT
97042014-02-19 Tom Tromey <tromey@redhat.com>
9705
9706 * target-delegates.c: Rebuild.
9707 * target.c (target_read_btrace): Unconditionally delegate.
9708 * target.h (struct target_ops) <to_read_btrace>: Use
9709 TARGET_DEFAULT_NORETURN.
9710
9ace480d
TT
97112014-02-19 Tom Tromey <tromey@redhat.com>
9712
9713 * target-delegates.c: Rebuild.
9714 * target.c (target_teardown_btrace): Unconditionally delegate.
9715 * target.h (struct target_ops) <to_teardown_btrace>: Use
9716 TARGET_DEFAULT_NORETURN.
9717
8dc292d3
TT
97182014-02-19 Tom Tromey <tromey@redhat.com>
9719
9720 * target-delegates.c: Rebuild.
9721 * target.c (target_disable_btrace): Unconditionally delegate.
9722 * target.h (struct target_ops) <to_disable_btrace>: Use
9723 TARGET_DEFAULT_NORETURN.
9724
58a5184e
TT
97252014-02-19 Tom Tromey <tromey@redhat.com>
9726
9727 * target-delegates.c: Rebuild.
9728 * target.c (default_search_memory): New function.
9729 (simple_search_memory): Update comment.
9730 (target_search_memory): Unconditionally delegate.
9731 * target.h (struct target_ops) <to_search_memory>: Use
9732 TARGET_DEFAULT_FUNC.
9733
8de71aab
TT
97342014-02-19 Tom Tromey <tromey@redhat.com>
9735
9736 * auxv.c (default_auxv_parse): No longer static.
9737 (target_auxv_parse): Unconditionally delegate.
9738 * auxv.h (default_auxv_parse): Declare.
9739 * target-delegates.c: Rebuild.
9740 * target.c: Include auxv.h.
9741 * target.h (struct target_ops) <to_auxv_parse>: Use
9742 TARGET_DEFAULT_FUNC.
9743
6b2c5a57
TT
97442014-02-19 Tom Tromey <tromey@redhat.com>
9745
9746 * target-delegates.c: Rebuild.
9747 * target.c (target_memory_map): Unconditionally delegate.
9748 * target.h (struct target_ops) <to_memory_map>: Use
9749 TARGET_DEFAULT_RETURN.
9750
cbffc065
TT
97512014-02-19 Tom Tromey <tromey@redhat.com>
9752
9753 * target-delegates.c: Rebuild.
9754 * target.c (target_thread_alive): Unconditionally delegate.
9755 * target.h (struct target_ops) <to_thread_alive>: Use
9756 TARGET_DEFAULT_RETURN.
9757
f09e2107
TT
97582014-02-19 Tom Tromey <tromey@redhat.com>
9759
9760 * target-delegates.c: Rebuild.
9761 * target.c (target_save_record): Unconditionally delegate.
9762 * target.h (struct target_ops) <to_save_record>: Use
9763 TARGET_DEFAULT_NORETURN.
9764
07366925
TT
97652014-02-19 Tom Tromey <tromey@redhat.com>
9766
9767 * target-delegates.c: Rebuild.
9768 * target.c (target_delete_record): Unconditionally delegate.
9769 * target.h (struct target_ops) <to_delete_record>: Use
9770 TARGET_DEFAULT_NORETURN.
9771
dd2e9d25
TT
97722014-02-19 Tom Tromey <tromey@redhat.com>
9773
9774 * target-delegates.c: Rebuild.
9775 * target.c (target_record_is_replaying): Unconditionally
9776 delegate.
9777 * target.h (struct target_ops) <to_record_is_replaying>: Use
9778 TARGET_DEFAULT_RETURN.
9779
671e76cc
TT
97802014-02-19 Tom Tromey <tromey@redhat.com>
9781
9782 * target-delegates.c: Rebuild.
9783 * target.c (target_goto_record_begin): Unconditionally delegate.
9784 * target.h (struct target_ops) <to_goto_record_begin>: Use
9785 TARGET_DEFAULT_NORETURN.
9786
e9179bb3
TT
97872014-02-19 Tom Tromey <tromey@redhat.com>
9788
9789 * target-delegates.c: Rebuild.
9790 * target.c (target_goto_record_end): Unconditionally delegate.
9791 * target.h (struct target_ops) <to_goto_record_end>: Use
9792 TARGET_DEFAULT_NORETURN.
9793
05969c84
TT
97942014-02-19 Tom Tromey <tromey@redhat.com>
9795
9796 * target-delegates.c: Rebuild.
9797 * target.c (target_goto_record): Unconditionally delegate.
9798 * target.h (struct target_ops) <to_goto_record>: Use
9799 TARGET_DEFAULT_NORETURN.
9800
3679abfa
TT
98012014-02-19 Tom Tromey <tromey@redhat.com>
9802
9803 * target-delegates.c: Rebuild.
9804 * target.c (target_insn_history): Unconditionally delegate.
9805 * target.h (struct target_ops) <to_insn_history>: Use
9806 TARGET_DEFAULT_NORETURN.
9807
8444ab58
TT
98082014-02-19 Tom Tromey <tromey@redhat.com>
9809
9810 * target-delegates.c: Rebuild.
9811 * target.c (target_insn_history_from): Unconditionally delegate.
9812 * target.h (struct target_ops) <to_insn_history_from>: Use
9813 TARGET_DEFAULT_NORETURN.
9814
c29302cc
TT
98152014-02-19 Tom Tromey <tromey@redhat.com>
9816
9817 * target-delegates.c: Rebuild.
9818 * target.c (target_insn_history_range): Unconditionally delegate.
9819 * target.h (struct target_ops) <to_insn_history_range>: Use
9820 TARGET_DEFAULT_NORETURN.
9821
170049d4
TT
98222014-02-19 Tom Tromey <tromey@redhat.com>
9823
9824 * target-delegates.c: Rebuild.
9825 * target.c (target_call_history): Unconditionally delegate.
9826 * target.h (struct target_ops) <to_call_history>: Use
9827 TARGET_DEFAULT_NORETURN.
9828
16fc27d6
TT
98292014-02-19 Tom Tromey <tromey@redhat.com>
9830
9831 * target-delegates.c: Rebuild.
9832 * target.c (target_call_history_from): Unconditionally delegate.
9833 * target.h (struct target_ops) <to_call_history_from>: Use
9834 TARGET_DEFAULT_NORETURN.
9835
115d9817
TT
98362014-02-19 Tom Tromey <tromey@redhat.com>
9837
9838 * target-delegates.c: Rebuild.
9839 * target.c (target_call_history_range): Unconditionally delegate.
9840 * target.h (struct target_ops) <to_call_history_range>: Use
9841 TARGET_DEFAULT_NORETURN.
9842
eb276a6b
TT
98432014-02-19 Tom Tromey <tromey@redhat.com>
9844
9845 * target-delegates.c: Rebuild.
9846 * target.c (target_verify_memory): Unconditionally delegate.
9847 * target.h (struct target_ops) <to_verify_memory>: Use
9848 TARGET_DEFAULT_NORETURN.
9849
9e538d0d
TT
98502014-02-19 Tom Tromey <tromey@redhat.com>
9851
9852 * target-delegates.c: Rebuild.
9853 * target.c (target_core_of_thread): Unconditionally delegate.
9854 * target.h (struct target_ops) <to_core_of_thread>: Use
9855 TARGET_DEFAULT_RETURN.
9856
f6fb2925
TT
98572014-02-19 Tom Tromey <tromey@redhat.com>
9858
9859 * target-delegates.c: Rebuild.
9860 * target.c (target_flash_done): Unconditionally delegate.
9861 * target.h (struct target_ops) <to_flash_done>: Use
9862 TARGET_DEFAULT_NORETURN.
9863
e8a6c6ac
TT
98642014-02-19 Tom Tromey <tromey@redhat.com>
9865
9866 * target-delegates.c: Rebuild.
9867 * target.c (target_flash_erase): Unconditionally delegate.
9868 * target.h (struct target_ops) <to_flash_erase>: Use
9869 TARGET_DEFAULT_NORETURN.
9870
7e35c012
TT
98712014-02-19 Tom Tromey <tromey@redhat.com>
9872
9873 * target-delegates.c: Rebuild.
9874 * target.c (target_get_section_table): Unconditionally delegate.
9875 * target.h (struct target_ops) <to_get_section_table>: Use
9876 TARGET_DEFAULT_RETURN.
9877
770234d3
TT
98782014-02-19 Tom Tromey <tromey@redhat.com>
9879
9880 * target-delegates.c: Rebuild.
9881 * target.c (target_pid_to_str): Unconditionally delegate.
9882 (init_dummy_target): Don't initialize to_pid_to_str.
9883 (default_pid_to_str): Rename from dummy_pid_to_str.
9884 * target.h (struct target_ops) <to_pid_to_str>: Use
9885 TARGET_DEFAULT_FUNC.
9886
09b0dc2b
TT
98872014-02-19 Tom Tromey <tromey@redhat.com>
9888
9889 * target-delegates.c: Rebuild.
9890 * target.c (target_find_new_threads): Unconditionally delegate.
9891 * target.h (struct target_ops) <to_find_new_threads>: Use
9892 TARGET_DEFAULT_RETURN.
9893
7d4f8efa
TT
98942014-02-19 Tom Tromey <tromey@redhat.com>
9895
9896 * target-delegates.c: Rebuild.
9897 * target.c (target_program_signals): Unconditionally delegate.
9898 * target.h (struct target_ops) <to_program_signals>: Use
9899 TARGET_DEFAULT_IGNORE.
9900
035cad7f
TT
99012014-02-19 Tom Tromey <tromey@redhat.com>
9902
9903 * target-delegates.c: Rebuild.
9904 * target.c (target_pass_signals): Unconditionally delegate.
9905 * target.h (struct target_ops) <to_pass_signals>: Use
9906 TARGET_DEFAULT_IGNORE.
9907
8d657035
TT
99082014-02-19 Tom Tromey <tromey@redhat.com>
9909
9910 * target-delegates.c: Rebuild.
9911 * target.c (default_mourn_inferior): New function.
9912 (target_mourn_inferior): Unconditionally delegate.
9913 * target.h (struct target_ops) <to_mourn_inferior>: Use
9914 TARGET_DEFAULT_FUNC.
9915
098dba18
TT
99162014-02-19 Tom Tromey <tromey@redhat.com>
9917
9918 * target-delegates.c: Rebuild.
9919 * target.c (default_follow_fork): New function.
9920 (target_follow_fork): Unconditionally delegate.
9921 * target.h (struct target_ops) <to_follow_fork>: Use
9922 TARGET_DEFAULT_FUNC.
9923
423a4807
TT
99242014-02-19 Tom Tromey <tromey@redhat.com>
9925
9926 * target-delegates.c: Rebuild.
9927 * target.c (target_kill): Unconditionally delegate.
9928 * target.h (struct target_ops) <to_kill>: Use
9929 TARGET_DEFAULT_NORETURN.
9930
6c7e5e5c
TT
99312014-02-19 Tom Tromey <tromey@redhat.com>
9932
9933 * target-delegates.c: Rebuild.
9934 * target.c (target_masked_watch_num_registers): Unconditionally
9935 delegate.
9936 * target.h (struct target_ops) <to_masked_watch_num_registers>:
9937 Use TARGET_DEFAULT_RETURN.
9938
8b1c364c
TT
99392014-02-19 Tom Tromey <tromey@redhat.com>
9940
9941 * target-delegates.c: Rebuild.
9942 * target.c (target_remove_mask_watchpoint): Unconditionally
9943 delegate.
9944 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
9945 TARGET_DEFAULT_RETURN.
9946
cd4ae029
TT
99472014-02-19 Tom Tromey <tromey@redhat.com>
9948
9949 * target-delegates.c: Rebuild.
9950 * target.c (target_insert_mask_watchpoint): Unconditionally
9951 delegate.
9952 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
9953 TARGET_DEFAULT_RETURN.
9954
a134316b
TT
99552014-02-19 Tom Tromey <tromey@redhat.com>
9956
9957 * target-delegates.c: Rebuild.
9958 * target.c (target_ranged_break_num_registers): Unconditionally
9959 delegate.
9960 * target.h (struct target_ops) <to_ranged_break_num_registers>:
9961 Use TARGET_DEFAULT_RETURN.
9962
ad5989bd
TT
99632014-02-19 Tom Tromey <tromey@redhat.com>
9964
9965 * target-delegates.c: Rebuild.
9966 * target.c (target_fetch_registers): Unconditionally delegate.
9967 * target.h (struct target_ops) <to_fetch_registers>: Use
9968 TARGET_DEFAULT_NORETURN.
9969
46ee7e8d
TT
99702014-02-19 Tom Tromey <tromey@redhat.com>
9971
9972 * target-delegates.c: Rebuild.
9973 * target.c (update_current_target): Don't inherit or default
9974 to_stop.
9975 * target.h (struct target_ops) <to_stop>: Use
9976 TARGET_DEFAULT_IGNORE.
9977
843f59ed
TT
99782014-02-19 Tom Tromey <tromey@redhat.com>
9979
9980 * target-delegates.c: Rebuild.
9981 * target.c (update_current_target): Don't inherit or default
9982 to_can_run_breakpoint_commands.
9983 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
9984 Use TARGET_DEFAULT_RETURN.
9985
ccfde2a0
TT
99862014-02-19 Tom Tromey <tromey@redhat.com>
9987
9988 * target-delegates.c: Rebuild.
9989 * target.c (update_current_target): Don't inherit or default
9990 to_supports_evaluation_of_breakpoint_conditions.
9991 * target.h (struct target_ops)
9992 <to_supports_evaluation_of_breakpoint_conditions>: Use
9993 TARGET_DEFAULT_RETURN.
9994
0de91722
TT
99952014-02-19 Tom Tromey <tromey@redhat.com>
9996
9997 * target-delegates.c: Rebuild.
9998 * target.c (update_current_target): Don't inherit or default
9999 to_augmented_libraries_svr4_read.
10000 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
10001 Use TARGET_DEFAULT_RETURN.
10002
9a7d8b48
TT
100032014-02-19 Tom Tromey <tromey@redhat.com>
10004
10005 * target-delegates.c: Rebuild.
10006 * target.c (update_current_target): Don't inherit or default
10007 to_can_use_agent.
10008 * target.h (struct target_ops) <to_can_use_agent>: Use
10009 TARGET_DEFAULT_RETURN.
10010
d9db5b21
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_use_agent.
10016 * target.h (struct target_ops) <to_use_agent>: Use
10017 TARGET_DEFAULT_NORETURN.
10018
92155eeb
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_traceframe_info.
10024 (return_null): Remove.
10025 * target.h (struct target_ops) <to_traceframe_info>: Use
10026 TARGET_DEFAULT_RETURN.
10027
d6522a22
TT
100282014-02-19 Tom Tromey <tromey@redhat.com>
10029
10030 * target-delegates.c: Rebuild.
10031 * target.c (update_current_target): Don't inherit or default
10032 to_static_tracepoint_markers_by_strid.
10033 * target.h (struct target_ops)
10034 <to_static_tracepoint_markers_by_strid>: Use
10035 TARGET_DEFAULT_NORETURN.
10036
4c3e4425
TT
100372014-02-19 Tom Tromey <tromey@redhat.com>
10038
10039 * target-delegates.c: Rebuild.
10040 * target.c (update_current_target): Don't inherit or default
10041 to_static_tracepoint_marker_at.
10042 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
10043 Use TARGET_DEFAULT_RETURN.
10044
dcd6917f
TT
100452014-02-19 Tom Tromey <tromey@redhat.com>
10046
10047 * target-delegates.c: Rebuild.
10048 * target.c (update_current_target): Don't inherit or default
10049 to_set_permissions.
10050 * target.h (struct target_ops) <to_set_permissions>: Use
10051 TARGET_DEFAULT_IGNORE.
10052
22bcceee
TT
100532014-02-19 Tom Tromey <tromey@redhat.com>
10054
10055 * target-delegates.c: Rebuild.
10056 * target.c (update_current_target): Don't inherit or default
10057 to_get_tib_address.
10058 * target.h (struct target_ops) <to_get_tib_address>: Use
10059 TARGET_DEFAULT_NORETURN.
10060
8586ccaa
TT
100612014-02-19 Tom Tromey <tromey@redhat.com>
10062
10063 * target-delegates.c: Rebuild.
10064 * target.c (update_current_target): Don't inherit or default
10065 to_set_trace_notes.
10066 * target.h (struct target_ops) <to_set_trace_notes>: Use
10067 TARGET_DEFAULT_RETURN.
10068
91df8d1d
TT
100692014-02-19 Tom Tromey <tromey@redhat.com>
10070
10071 * target-delegates.c: Rebuild.
10072 * target.c (update_current_target): Don't initialize
10073 to_set_trace_buffer_size.
10074 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
10075 TARGET_DEFAULT_IGNORE.
10076
8d526939
TT
100772014-02-19 Tom Tromey <tromey@redhat.com>
10078
10079 * target-delegates.c: Rebuild.
10080 * target.c (update_current_target): Don't inherit or default
10081 to_set_circular_trace_buffer.
10082 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
10083 TARGET_DEFAULT_IGNORE.
10084
0bcfeddf
TT
100852014-02-19 Tom Tromey <tromey@redhat.com>
10086
10087 * target-delegates.c: Rebuild.
10088 * target.c (update_current_target): Don't inherit or default
10089 to_set_disconnected_tracing.
10090 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
10091 TARGET_DEFAULT_IGNORE.
10092
9249843f
TT
100932014-02-19 Tom Tromey <tromey@redhat.com>
10094
10095 * target-delegates.c: Rebuild.
10096 * target.c (update_current_target): Don't inherit or default
10097 to_get_min_fast_tracepoint_insn_len.
10098 (return_minus_one): Remove.
10099 * target.h (struct target_ops)
10100 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
10101
ace92e7d
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_get_raw_trace_data.
10107 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
10108 TARGET_DEFAULT_NORETURN.
10109
08120467
TT
101102014-02-19 Tom Tromey <tromey@redhat.com>
10111
10112 * target-delegates.c: Rebuild.
10113 * target.c (update_current_target): Don't inherit or default
10114 to_upload_trace_state_variables.
10115 * target.h (struct target_ops) <to_upload_trace_state_variables>:
10116 Use TARGET_DEFAULT_RETURN.
10117
1e949b00
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_upload_tracepoints.
10123 * target.h (struct target_ops) <to_upload_tracepoints>: Use
10124 TARGET_DEFAULT_RETURN.
10125
a2e6c147
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_save_trace_data.
10131 * target.h (struct target_ops) <to_save_trace_data>: Use
10132 TARGET_DEFAULT_NORETURN.
10133
959bcd0b
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_trace_state_variable_value.
10139 * target.h (struct target_ops)
10140 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
10141
afc94e66
TT
101422014-02-19 Tom Tromey <tromey@redhat.com>
10143
10144 * target-delegates.c: Rebuild.
10145 * target.c (update_current_target): Don't inherit or default
10146 to_trace_find.
10147 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
10148
e51c07ea
TT
101492014-02-19 Tom Tromey <tromey@redhat.com>
10150
10151 * target-delegates.c: Rebuild.
10152 * target.c (update_current_target): Don't inherit or default
10153 to_trace_stop.
10154 * target.h (struct target_ops) <to_trace_stop>: Use
10155 TARGET_DEFAULT_NORETURN.
10156
6fea14cd
TT
101572014-02-19 Tom Tromey <tromey@redhat.com>
10158
10159 * target-delegates.c: Rebuild.
10160 * target.c (update_current_target): Don't inherit or default
10161 to_get_tracepoint_status.
10162 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
10163 TARGET_DEFAULT_NORETURN.
10164
4072d4ff
TT
101652014-02-19 Tom Tromey <tromey@redhat.com>
10166
10167 * target-delegates.c: Rebuild.
10168 * target.c (update_current_target): Don't inherit or default
10169 to_get_trace_status.
10170 * target.h (struct target_ops) <to_get_trace_status>: Use
10171 TARGET_DEFAULT_RETURN.
10172
25da2e80
TT
101732014-02-19 Tom Tromey <tromey@redhat.com>
10174
10175 * target-delegates.c: Rebuild.
10176 * target.c (update_current_target): Don't inherit or default
10177 to_trace_start.
10178 * target.h (struct target_ops) <to_trace_start>: Use
10179 TARGET_DEFAULT_NORETURN.
10180
86dd181d
TT
101812014-02-19 Tom Tromey <tromey@redhat.com>
10182
10183 * target-delegates.c: Rebuild.
10184 * target.c (update_current_target): Don't inherit or default
10185 to_trace_set_readonly_regions.
10186 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
10187 Use TARGET_DEFAULT_NORETURN.
10188
05c41993
TT
101892014-02-19 Tom Tromey <tromey@redhat.com>
10190
10191 * target-delegates.c: Rebuild.
10192 * target.c (update_current_target): Don't inherit or default
10193 to_disable_tracepoint.
10194 * target.h (struct target_ops) <to_disable_tracepoint>: Use
10195 TARGET_DEFAULT_NORETURN.
10196
151f70f1
TT
101972014-02-19 Tom Tromey <tromey@redhat.com>
10198
10199 * target-delegates.c: Rebuild.
10200 * target.c (update_current_target): Don't inherit or default
10201 to_enable_tracepoint.
10202 * target.h (struct target_ops) <to_enable_tracepoint>: Use
10203 TARGET_DEFAULT_NORETURN.
10204
94eb98b9
TT
102052014-02-19 Tom Tromey <tromey@redhat.com>
10206
10207 * target-delegates.c: Rebuild.
10208 * target.c (update_current_target): Don't inherit or default
10209 to_download_trace_state_variable.
10210 * target.h (struct target_ops) <to_download_trace_state_variable>:
10211 Use TARGET_DEFAULT_NORETURN.
10212
719acc4a
TT
102132014-02-19 Tom Tromey <tromey@redhat.com>
10214
10215 * target-delegates.c: Rebuild.
10216 * target.c (update_current_target): Don't inherit or default
10217 to_can_download_tracepoint.
10218 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
10219 TARGET_DEFAULT_RETURN.
10220
9a980a22
TT
102212014-02-19 Tom Tromey <tromey@redhat.com>
10222
10223 * target-delegates.c: Rebuild.
10224 * target.c (update_current_target): Don't inherit or default
10225 to_download_tracepoint.
10226 * target.h (struct target_ops) <to_download_tracepoint>: Use
10227 TARGET_DEFAULT_NORETURN.
10228
5536135b
TT
102292014-02-19 Tom Tromey <tromey@redhat.com>
10230
10231 * target-delegates.c: Rebuild.
10232 * target.c (update_current_target): Don't inherit or default
10233 to_trace_init.
10234 * target.h (struct target_ops) <to_trace_init>: Use
10235 TARGET_DEFAULT_RETURN.
10236
9409d39e
TT
102372014-02-19 Tom Tromey <tromey@redhat.com>
10238
10239 * target-delegates.c: Rebuild.
10240 * target.c (update_current_target): Don't inherit or default
10241 to_supports_string_tracing.
10242 * target.h (struct target_ops) <to_supports_string_tracing>: Use
10243 TARGET_DEFAULT_RETURN.
10244
aab1b22d
TT
102452014-02-19 Tom Tromey <tromey@redhat.com>
10246
10247 * target-delegates.c: Rebuild.
10248 * target.c (update_current_target): Don't inherit or default
10249 to_supports_enable_disable_tracepoint.
10250 * target.h (struct target_ops)
10251 <to_supports_enable_disable_tracepoint>: Use
10252 TARGET_DEFAULT_RETURN.
10253
a7304748
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_supports_multi_process.
10259 * target.h (struct target_ops) <to_supports_multi_process>: Use
10260 TARGET_DEFAULT_RETURN.
10261
4229b31d
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_get_ada_task_ptid.
10267 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
10268 TARGET_DEFAULT_FUNC.
10269
43eba180
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_thread_architecture.
10275 * target.h (struct target_ops) <to_thread_architecture>: Use
10276 TARGET_DEFAULT_FUNC.
10277
fe31bf5b
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_execution_direction.
10283 * target.h (struct target_ops) <to_execution_direction>: Use
10284 TARGET_DEFAULT_FUNC.
10285
53e1cfc7
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_can_execute_reverse.
10291 * target.h (struct target_ops) <to_can_execute_reverse>: Use
10292 TARGET_DEFAULT_RETURN.
10293 (target_can_execute_reverse): Unconditionally delegate.
10294
9bb9d61d
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_goto_bookmark.
10300 (dummy_goto_bookmark): Remove.
10301 (init_dummy_target): Don't inherit or default to_goto_bookmark.
10302 * target.h (struct target_ops) <to_goto_bookmark>: Use
10303 TARGET_DEFAULT_NORETURN.
10304
3dbafbbb
TT
103052014-02-19 Tom Tromey <tromey@redhat.com>
10306
10307 * target-delegates.c: Rebuild.
10308 * target.c (update_current_target): Don't inherit or default
10309 to_get_bookmark.
10310 (dummy_get_bookmark): Remove.
10311 (init_dummy_target): Don't inherit or default to_get_bookmark.
10312 * target.h (struct target_ops) <to_get_bookmark>: Use
10313 TARGET_DEFAULT_NORETURN
10314
16f796b1
TT
103152014-02-19 Tom Tromey <tromey@redhat.com>
10316
10317 * target-delegates.c: Rebuild.
10318 * target.c (update_current_target): Don't inherit or default
10319 to_make_corefile_notes.
10320 (init_dummy_target): Don't initialize to_make_corefile_notes.
10321 * target.h (struct target_ops) <to_make_corefile_notes>: Use
10322 TARGET_DEFAULT_FUNC.
10323
0b5a2719
TT
103242014-02-19 Tom Tromey <tromey@redhat.com>
10325
10326 * target-delegates.c: Rebuild.
10327 * target.c (update_current_target): Don't inherit or default
10328 to_find_memory_regions.
10329 (init_dummy_target): Don't initialize to_find_memory_regions.
10330 * target.h (struct target_ops) <to_find_memory_regions>: Use
10331 TARGET_DEFAULT_FUNC.
10332
d9cb0195
TT
103332014-02-19 Tom Tromey <tromey@redhat.com>
10334
10335 * target-delegates.c: Rebuild.
10336 * target.c (update_current_target): Don't inherit or default
10337 to_log_command.
10338 * target.h (struct target_ops) <to_log_command>: Use
10339 TARGET_DEFAULT_IGNORE.
10340 (target_log_command): Unconditionally delegate.
10341
830ca330
TT
103422014-02-19 Tom Tromey <tromey@redhat.com>
10343
10344 * target-delegates.c: Rebuild.
10345 * target.c (update_current_target): Don't inherit or default
10346 to_pid_to_exec_file.
10347 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
10348 TARGET_DEFAULT_RETURN.
10349
825828fc
TT
103502014-02-19 Tom Tromey <tromey@redhat.com>
10351
10352 * target-delegates.c: Rebuild.
10353 * target.c (update_current_target): Don't inherit or default
10354 to_thread_name.
10355 (target_thread_name): Unconditionally delegate.
10356 * target.h (struct target_ops) <to_thread_name>: Use
10357 TARGET_DEFAULT_RETURN.
10358
4a7e6dda
TT
103592014-02-19 Tom Tromey <tromey@redhat.com>
10360
10361 * target-delegates.c: Rebuild.
10362 * target.c (update_current_target): Don't inherit or default
10363 to_extra_thread_info.
10364 * target.h (struct target_ops) <to_extra_thread_info>: Use
10365 TARGET_DEFAULT_RETURN.
10366
0db88c1d
TT
103672014-02-19 Tom Tromey <tromey@redhat.com>
10368
10369 * target-delegates.c: Rebuild.
10370 * target.c (update_current_target): Don't inherit or default
10371 to_has_exited.
10372 * target.h (struct target_ops) <to_has_exited>: Use
10373 TARGET_DEFAULT_RETURN..
10374
6a9fa051
TT
103752014-02-19 Tom Tromey <tromey@redhat.com>
10376
10377 * target-delegates.c: Rebuild.
10378 * target.c (update_current_target): Don't inherit or default
10379 to_set_syscall_catchpoint.
10380 (return_one): Remove.
10381 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
10382 TARGET_DEFAULT_RETURN.
10383
62f64d7a
TT
103842014-02-19 Tom Tromey <tromey@redhat.com>
10385
10386 * target-delegates.c: Rebuild.
10387 * target.c (update_current_target): Don't inherit or default
10388 to_insert_exec_catchpoint.
10389 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
10390 TARGET_DEFAULT_RETURN.
10391
cda0f38c
TT
103922014-01-08 Tom Tromey <tromey@redhat.com>
10393
10394 * target-delegates.c: Rebuild.
10395 * target.c (update_current_target): Don't inherit or default
10396 to_insert_exec_catchpoint.
10397 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
10398 TARGET_DEFAULT_RETURN.
10399
95c3375e
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_remove_vfork_catchpoint.
10405 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
10406 TARGET_DEFAULT_RETURN.
10407
7e18a8dc
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_insert_vfork_catchpoint.
10413 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
10414 TARGET_DEFAULT_RETURN.
10415
e1a21fb7
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_remove_fork_catchpoint.
10421 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
10422 TARGET_DEFAULT_RETURN.
10423
5958ebeb
TT
104242014-02-19 Tom Tromey <tromey@redhat.com>
10425
10426 * target-delegates.c: Rebuild.
10427 * target.c (update_current_target): Don't inherit or default
10428 to_insert_fork_catchpoint.
10429 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
10430 TARGET_DEFAULT_RETURN.
10431
340ba4bf
TT
104322014-02-19 Tom Tromey <tromey@redhat.com>
10433
10434 * target-delegates.c: Rebuild.
10435 * target.c (update_current_target): Don't inherit or default
10436 to_post_startup_inferior.
10437 * target.h (struct target_ops) <to_post_startup_inferior>: Use
10438 TARGET_DEFAULT_IGNORE.
10439
7634da87
TT
104402014-02-19 Tom Tromey <tromey@redhat.com>
10441
10442 * target-delegates.c: Rebuild.
10443 * target.c (update_current_target): Don't inherit or default
10444 to_load.
10445 * target.h (struct target_ops) <to_load>: Use
10446 TARGET_DEFAULT_NORETURN.
10447
e19e919f
TT
104482014-02-19 Tom Tromey <tromey@redhat.com>
10449
10450 * target-delegates.c: Rebuild.
10451 * target.c (update_current_target): Don't inherit or default
10452 to_terminal_info.
10453 * target.h (struct target_ops) <to_terminal_info>: Use
10454 TARGET_DEFAULT_FUNC.
10455
c6ea8f79
TT
104562014-02-19 Tom Tromey <tromey@redhat.com>
10457
10458 * target-delegates.c: Rebuild.
10459 * target.c (update_current_target): Don't inherit or default
10460 to_terminal_save_ours.
10461 * target.h (struct target_ops) <to_terminal_save_ours>: Use
10462 TARGET_DEFAULT_IGNORE.
10463
e4a733f1
TT
104642014-02-19 Tom Tromey <tromey@redhat.com>
10465
10466 * target-delegates.c: Rebuild.
10467 * target.c (update_current_target): Don't inherit or default
10468 to_terminal_ours.
10469 * target.h (struct target_ops) <to_terminal_ours>: Use
10470 TARGET_DEFAULT_IGNORE.
10471
74fcbef9
TT
104722014-02-19 Tom Tromey <tromey@redhat.com>
10473
10474 * target-delegates.c: Rebuild.
10475 * target.c (update_current_target): Don't inherit or default
10476 to_terminal_ours_for_output.
10477 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
10478 TARGET_DEFAULT_IGNORE.
10479
ddeaacc9
TT
104802014-02-19 Tom Tromey <tromey@redhat.com>
10481
10482 * target-delegates.c: Rebuild.
10483 * target.c (update_current_target): Don't inherit or default
10484 to_terminal_inferior.
10485 * target.h (struct target_ops) <to_terminal_inferior>: Use
10486 TARGET_DEFAULT_IGNORE.
10487
0343661d
TT
104882014-02-19 Tom Tromey <tromey@redhat.com>
10489
10490 * target-delegates.c: Rebuild.
10491 * target.c (update_current_target): Don't inherit or default
10492 to_terminal_init.
10493 * target.h (struct target_ops) <to_terminal_init>: Use
10494 TARGET_DEFAULT_IGNORE.
10495
77cdffe9
TT
104962014-02-19 Tom Tromey <tromey@redhat.com>
10497
10498 * target-delegates.c: Rebuild.
10499 * target.c (update_current_target): Don't inherit or default
10500 to_can_accel_watchpoint_condition.
10501 * target.h (struct target_ops)
10502 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
10503
d03655e4
TT
105042014-02-19 Tom Tromey <tromey@redhat.com>
10505
10506 * target-delegates.c: Rebuild.
10507 * target.c (update_current_target): Don't inherit or default
10508 to_region_ok_for_hw_watchpoint.
10509 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10510 Use TARGET_DEFAULT_FUNC.
10511
65f160a9
TT
105122014-02-19 Tom Tromey <tromey@redhat.com>
10513
10514 * target-delegates.c: Rebuild.
10515 * target.c (update_current_target): Don't inherit or default
10516 to_watchpoint_addr_within_range.
10517 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
10518 Use TARGET_DEFAULT_FUNC.
10519
61dd109f
TT
105202014-02-19 Tom Tromey <tromey@redhat.com>
10521
10522 * target-delegates.c: Rebuild.
10523 * target.c (update_current_target): Don't inherit or default
10524 to_remove_watchpoint.
10525 * target.h (struct target_ops) <to_remove_watchpoint>: Use
10526 TARGET_DEFAULT_NORETURN.
10527
016facd4
TT
105282014-02-19 Tom Tromey <tromey@redhat.com>
10529
10530 * target-delegates.c: Rebuild.
10531 * target.c (update_current_target): Don't inherit or default
10532 to_insert_watchpoint.
10533 * target.h (struct target_ops) <to_insert_watchpoint>: Use
10534 TARGET_DEFAULT_RETURN.
10535
418dabac
TT
105362014-02-19 Tom Tromey <tromey@redhat.com>
10537
10538 * target-delegates.c: Rebuild.
10539 * target.c (update_current_target): Don't inherit or default
10540 to_remove_hw_breakpoint.
10541 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
10542 TARGET_DEFAULT_RETURN.
10543
61b371f9
TT
105442014-02-19 Tom Tromey <tromey@redhat.com>
10545
10546 * target-delegates.c: Rebuild.
10547 * target.c (update_current_target): Don't inherit or default
10548 to_insert_hw_breakpoint.
10549 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
10550 TARGET_DEFAULT_RETURN.
10551
52b51d06
TT
105522014-02-19 Tom Tromey <tromey@redhat.com>
10553
10554 * target-delegates.c: Rebuild.
10555 * target.c (update_current_target): Don't inherit or default
10556 to_can_use_hw_breakpoint.
10557 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
10558 TARGET_DEFAULT_RETURN.
10559
f86e59b2
TT
105602014-02-19 Tom Tromey <tromey@redhat.com>
10561
10562 * target-delegates.c: Rebuild.
10563 * target.c (update_current_target): Don't inherit or default
10564 to_files_info.
10565 * target.h (struct target_ops) <to_files_info>: Use
10566 TARGET_DEFAULT_IGNORE.
10567
6c628163
TT
105682014-02-19 Tom Tromey <tromey@redhat.com>
10569
10570 * target-delegates.c: Rebuild.
10571 * target.c (update_current_target): Don't inherit or default
10572 to_store.
10573 * target.h (struct target_ops) <to_store>: Use
10574 TARGET_DEFAULT_NORETURN.
10575
bebd3233
TT
105762014-02-19 Tom Tromey <tromey@redhat.com>
10577
10578 * target-delegates.c: Rebuild.
10579 * target.c (update_current_target): Don't inherit or default
10580 to_post_attach.
10581 * target.h (struct target_ops) <to_post_attach>: Use
10582 TARGET_DEFAULT_IGNORE.
10583
a53f3625
TT
105842014-02-19 Tom Tromey <tromey@redhat.com>
10585
10586 * target-delegates.c: Rebuild.
10587 * target.c (update_current_target): Don't inherit or default
10588 to_rcmd.
10589 (default_rcmd): New function.
10590 (do_monitor_command): Unconditionally delegate.
10591 * target.h (struct target_ops) <to_rmcd>: Use
10592 TARGET_DEFAULT_FUNC.
10593
e9a29200
TT
105942014-02-19 Tom Tromey <tromey@redhat.com>
10595
10596 * target-delegates.c: Rebuild.
10597 * target.c (init_dummy_target): Don't initialize to_attach.
10598 (target_attach): Unconditionally delegate.
10599 * target.h (struct target_ops) <to_attach>: Use
10600 TARGET_DEFAULT_FUNC.
10601
09da0d0a
TT
106022014-02-19 Tom Tromey <tromey@redhat.com>
10603
10604 * target-delegates.c: Rebuild.
10605 * target.c (target_detach): Unconditionally delegate.
10606 (init_dummy_target): Don't initialize to_detach.
10607 * target.h (struct target_ops) <to_detach>: Use
10608 TARGET_DEFAULT_IGNORE.
10609
5436ff03
TT
106102014-02-19 Tom Tromey <tromey@redhat.com>
10611
10612 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
10613 Add argument.
10614 (target_augmented_libraries_svr4_read): Add argument.
10615 * target.c (update_current_target): Update.
10616 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
10617 argument.
10618
f0d960ea
TT
106192014-02-19 Tom Tromey <tromey@redhat.com>
10620
10621 * target.h (struct target_ops) <to_call_history_range>: Add
10622 argument.
10623 * target.c (target_call_history_range): Add argument.
10624 * record-btrace.c (record_btrace_call_history_range): Add 'self'
10625 argument.
10626 (record_btrace_call_history_from): Update.
10627
ec0aea04
TT
106282014-02-19 Tom Tromey <tromey@redhat.com>
10629
10630 * target.h (struct target_ops) <to_call_history_from>: Add
10631 argument.
10632 * target.c (target_call_history_from): Add argument.
10633 * record-btrace.c (record_btrace_call_history_from): Add 'self'
10634 argument.
10635
5df2fcba
TT
106362014-02-19 Tom Tromey <tromey@redhat.com>
10637
10638 * target.h (struct target_ops) <to_call_history>: Add argument.
10639 * target.c (target_call_history): Add argument.
10640 * record-btrace.c (record_btrace_call_history): Add 'self'
10641 argument.
10642
4e99c6b7
TT
106432014-02-19 Tom Tromey <tromey@redhat.com>
10644
10645 * target.h (struct target_ops) <to_insn_history_range>: Add
10646 argument.
10647 * target.c (target_insn_history_range): Add argument.
10648 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
10649 argument.
10650 (record_btrace_insn_history_from): Update.
10651
9abc3ff3
TT
106522014-02-19 Tom Tromey <tromey@redhat.com>
10653
10654 * target.h (struct target_ops) <to_insn_history_from>: Add
10655 argument.
10656 * target.c (target_insn_history_from): Add argument.
10657 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
10658 argument.
10659
7a6c5609
TT
106602014-02-19 Tom Tromey <tromey@redhat.com>
10661
10662 * target.h (struct target_ops) <to_insn_history>: Add argument.
10663 * target.c (target_insn_history): Add argument.
10664 * record-btrace.c (record_btrace_insn_history): Add 'self'
10665 argument.
10666
606183ac
TT
106672014-02-19 Tom Tromey <tromey@redhat.com>
10668
10669 * target.h (struct target_ops) <to_goto_record>: Add argument.
10670 * target.c (target_goto_record): Add argument.
10671 * record-full.c (record_full_goto): Add 'self' argument.
10672 * record-btrace.c (record_btrace_goto): Add 'self' argument.
10673
307a1b91
TT
106742014-02-19 Tom Tromey <tromey@redhat.com>
10675
10676 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
10677 * target.c (target_goto_record_end): Add argument.
10678 * record-full.c (record_full_goto_end): Add 'self' argument.
10679 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
10680
08475817
TT
106812014-02-19 Tom Tromey <tromey@redhat.com>
10682
10683 * target.h (struct target_ops) <to_goto_record_begin>: Add
10684 argument.
10685 * target.c (target_goto_record_begin): Add argument.
10686 * record-full.c (record_full_goto_begin): Add 'self' argument.
10687 * record-btrace.c (record_btrace_goto_begin): Add 'self'
10688 argument.
10689
1c63c994
TT
106902014-02-19 Tom Tromey <tromey@redhat.com>
10691
10692 * target.h (struct target_ops) <to_record_is_replaying>: Add
10693 argument.
10694 * target.c (target_record_is_replaying): Add argument.
10695 * record-full.c (record_full_is_replaying): Add 'self' argument.
10696 * record-btrace.c (record_btrace_is_replaying): Add 'self'
10697 argument.
10698 (record_btrace_xfer_partial, record_btrace_store_registers)
10699 (record_btrace_prepare_to_store, record_btrace_resume)
10700 (record_btrace_wait, record_btrace_decr_pc_after_break)
10701 (record_btrace_find_new_threads, record_btrace_thread_alive):
10702 Update.
10703
d1b55219
TT
107042014-02-19 Tom Tromey <tromey@redhat.com>
10705
10706 * target.h (struct target_ops) <to_delete_record>: Add argument.
10707 * target.c (target_delete_record): Add argument.
10708 * record-full.c (record_full_delete): Add 'self' argument.
10709
1390f529
TT
107102014-02-19 Tom Tromey <tromey@redhat.com>
10711
10712 * target.h (struct target_ops) <to_save_record>: Add argument.
10713 * target.c (target_save_record): Add argument.
10714 * record-full.c (record_full_save): Add 'self' argument.
10715 (record_full_save): Add 'self' argument.
10716
630d6a4a
TT
107172014-02-19 Tom Tromey <tromey@redhat.com>
10718
10719 * target.h (struct target_ops) <to_info_record>: Add argument.
10720 * target.c (target_info_record): Add argument.
10721 * record.c (info_record_command): Add argument.
10722 * record-full.c (record_full_info): Add 'self' argument.
10723 * record-btrace.c (record_btrace_info): Add 'self' argument.
10724
c6cd7c02
TT
107252014-02-19 Tom Tromey <tromey@redhat.com>
10726
10727 * target.h (struct target_ops) <to_stop_recording>: Add argument.
10728 * target.c (target_stop_recording): Add argument.
10729 * record.c (record_stop): Add argument.
10730 * record-btrace.c (record_btrace_stop_recording): Add 'self'
10731 argument.
10732
39c49f83
TT
107332014-02-19 Tom Tromey <tromey@redhat.com>
10734
10735 * target.h (struct target_ops) <to_read_btrace>: Add argument.
10736 * target.c (struct target_ops) <to_read_btrace>: Add argument.
10737 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
10738 argument.
10739 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
10740 (_initialize_amd64_linux_nat): Use it.
10741 * i386-linux-nat.c (i386_linux_read_btrace): New function.
10742 (_initialize_i386_linux_nat): Use it.
10743
1777056d
TT
107442014-02-19 Tom Tromey <tromey@redhat.com>
10745
10746 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
10747 * target.c (target_teardown_btrace): Add argument.
10748 * remote.c (remote_teardown_btrace): Add 'self' argument.
10749 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
10750 argument.
10751 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
10752 argument.
10753
25e95349
TT
107542014-02-19 Tom Tromey <tromey@redhat.com>
10755
10756 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
10757 * target.c (target_disable_btrace): Add argument.
10758 * remote.c (remote_disable_btrace): Add 'self' argument.
10759 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
10760 argument.
10761 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
10762 argument.
10763
e3c49f88
TT
107642014-02-19 Tom Tromey <tromey@redhat.com>
10765
10766 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
10767 * target.c (target_enable_btrace): Add argument.
10768 * remote.c (remote_enable_btrace): Add 'self' argument.
10769 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
10770 argument.
10771 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
10772 argument.
10773
fe38f897
TT
107742014-02-19 Tom Tromey <tromey@redhat.com>
10775
10776 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
10777 (target_can_use_agent): Add argument.
10778 * target.c (update_current_target): Update.
10779 * remote.c (remote_can_use_agent): Add 'self' argument.
10780 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
10781
2c152180
TT
107822014-02-19 Tom Tromey <tromey@redhat.com>
10783
10784 * target.h (struct target_ops) <to_use_agent>: Add argument.
10785 (target_use_agent): Add argument.
10786 * target.c (update_current_target): Update.
10787 * remote.c (remote_use_agent): Add 'self' argument.
10788 * inf-child.c (inf_child_use_agent): Add 'self' argument.
10789
a893e81f
TT
107902014-02-19 Tom Tromey <tromey@redhat.com>
10791
10792 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
10793 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
10794 (target_traceframe_info): Add argument.
10795 * target.c (update_current_target): Update.
10796 * remote.c (remote_traceframe_info): Add 'self' argument.
10797 * ctf.c (ctf_traceframe_info): Add 'self' argument.
10798
c686c57f
TT
107992014-02-19 Tom Tromey <tromey@redhat.com>
10800
10801 * target.h (target_static_tracepoint_markers_by_strid): Add
10802 argument.
10803 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
10804 'self' argument.
10805 * target.c (update_current_target): Update.
10806 * remote.c (struct target_ops)
10807 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
10808 * linux-nat.c (struct target_ops)
10809 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
10810
61fc905d
TT
108112014-02-19 Tom Tromey <tromey@redhat.com>
10812
10813 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
10814 Add argument.
10815 (target_static_tracepoint_marker_at): Add argument.
10816 * target.c (update_current_target): Update.
10817 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
10818 argument.
10819
c378d69d
TT
108202014-02-19 Tom Tromey <tromey@redhat.com>
10821
10822 * target.h (struct target_ops) <to_set_permissions>: Add argument.
10823 (target_set_permissions): Add argument.
10824 * target.c (update_current_target): Update.
10825 * remote.c (remote_set_permissions): Add 'self' argument.
10826 (remote_start_remote): Update.
10827
bd7ae0f5
TT
108282014-02-19 Tom Tromey <tromey@redhat.com>
10829
10830 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
10831 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
10832 (target_get_tib_address): Add argument.
10833 * target.c (update_current_target): Update.
10834 * remote.c (remote_get_tib_address): Add 'self' argument.
10835
d9e68a2c
TT
108362014-02-19 Tom Tromey <tromey@redhat.com>
10837
10838 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
10839 (target_set_trace_notes): Add argument.
10840 * target.c (update_current_target): Update.
10841 * remote.c (remote_set_trace_notes): Add 'self' argument.
10842
4da384be
TT
108432014-02-19 Tom Tromey <tromey@redhat.com>
10844
10845 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
10846 argument.
10847 (target_set_trace_buffer_size): Add argument.
10848 * target.c (update_current_target): Update.
10849 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
10850
736d5b1f
TT
108512014-02-19 Tom Tromey <tromey@redhat.com>
10852
10853 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
10854 argument.
10855 (target_set_circular_trace_buffer): Add argument.
10856 * target.c (update_current_target): Update.
10857 * remote.c (remote_set_circular_trace_buffer): Add 'self'
10858 argument.
10859
37b25738
TT
108602014-02-19 Tom Tromey <tromey@redhat.com>
10861
10862 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
10863 argument.
10864 (target_set_disconnected_tracing): Add argument.
10865 * target.c (update_current_target): Update.
10866 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
10867
0e67620a
TT
108682014-02-19 Tom Tromey <tromey@redhat.com>
10869
10870 * target.h (struct target_ops)
10871 <to_get_min_fast_tracepoint_insn_len>: Add argument.
10872 (target_get_min_fast_tracepoint_insn_len): Add argument.
10873 * target.c (update_current_target): Update.
10874 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
10875 argument.
10876
88ee6f45
TT
108772014-02-19 Tom Tromey <tromey@redhat.com>
10878
10879 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
10880 argument.
10881 (target_get_raw_trace_data): Add argument.
10882 * target.c (update_current_target): Update.
10883 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
10884
181e3713
TT
108852014-02-19 Tom Tromey <tromey@redhat.com>
10886
10887 * target.h (struct target_ops) <to_upload_trace_state_variables>:
10888 Add argument.
10889 (target_upload_trace_state_variables): Add argument.
10890 * target.c (update_current_target): Update.
10891 * remote.c (remote_upload_trace_state_variables): Add 'self'
10892 argument.
10893 (remote_start_remote): Update.
10894
ab6617cc
TT
108952014-02-19 Tom Tromey <tromey@redhat.com>
10896
10897 * target.h (struct target_ops) <to_upload_tracepoints>: Add
10898 argument.
10899 (target_upload_tracepoints): Add argument.
10900 * target.c (update_current_target): Update.
10901 * remote.c (remote_upload_tracepoints): Add 'self' argument.
10902 (remote_start_remote): Update.
10903
dc3decaf
TT
109042014-02-19 Tom Tromey <tromey@redhat.com>
10905
10906 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
10907 (target_save_trace_data): Add argument.
10908 * target.c (update_current_target): Update.
10909 * remote.c (remote_save_trace_data): Add 'self' argument.
10910
4011015b
TT
109112014-02-19 Tom Tromey <tromey@redhat.com>
10912
10913 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
10914 argument.
10915 * target.h (struct target_ops)
10916 <to_get_trace_state_variable_value>: Add argument.
10917 (target_get_trace_state_variable_value): Add argument.
10918 * target.c (update_current_target): Update.
10919 * remote.c (remote_get_trace_state_variable_value): Add 'self'
10920 argument.
10921 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
10922
bd4c6793
TT
109232014-02-19 Tom Tromey <tromey@redhat.com>
10924
10925 * tracepoint.c (tfile_trace_find): Add 'self' argument.
10926 * target.h (struct target_ops) <to_trace_find>: Add argument.
10927 (target_trace_find): Add argument.
10928 * target.c (update_current_target): Update.
10929 * remote.c (remote_trace_find): Add 'self' argument.
10930 * ctf.c (ctf_trace_find): Add 'self' argument.
10931
74499f1b
TT
109322014-02-19 Tom Tromey <tromey@redhat.com>
10933
10934 * target.h (struct target_ops) <to_trace_stop>: Add argument.
10935 (target_trace_stop): Add argument.
10936 * target.c (update_current_target): Update.
10937 * remote.c (remote_trace_stop): Add 'self' argument.
10938
db90e85c
TT
109392014-02-19 Tom Tromey <tromey@redhat.com>
10940
10941 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
10942 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
10943 argument.
10944 (target_get_tracepoint_status): Add argument.
10945 * target.c (update_current_target): Update.
10946 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
10947
8bd200f1
TT
109482014-02-19 Tom Tromey <tromey@redhat.com>
10949
10950 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
10951 * target.h (struct target_ops) <to_get_trace_status>: Add
10952 argument.
10953 (target_get_trace_status): Add argument.
10954 * target.c (update_current_target): Update.
10955 * remote.c (remote_get_trace_status): Add 'self' argument.
10956 (remote_start_remote, remote_can_download_tracepoint): Update.
10957 * ctf.c (ctf_get_trace_status): Add 'self' argument.
10958
e2d1aae3
TT
109592014-02-19 Tom Tromey <tromey@redhat.com>
10960
10961 * target.h (struct target_ops) <to_trace_start>: Add argument.
10962 (target_trace_start): Add argument.
10963 * target.c (update_current_target): Update.
10964 * remote.c (remote_trace_start): Add 'self' argument.
10965
583f9a86
TT
109662014-02-19 Tom Tromey <tromey@redhat.com>
10967
10968 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
10969 Add argument.
10970 (target_trace_set_readonly_regions): Add argument.
10971 * target.c (update_current_target): Update.
10972 * remote.c (remote_trace_set_readonly_regions): Add 'self'
10973 argument.
10974
780b049c
TT
109752014-02-19 Tom Tromey <tromey@redhat.com>
10976
10977 * target.h (struct target_ops) <to_disable_tracepoint>: Add
10978 argument.
10979 (target_disable_tracepoint): Add argument.
10980 * target.c (update_current_target): Update.
10981 * remote.c (remote_disable_tracepoint): Add 'self' argument.
10982
46670d57
TT
109832014-02-19 Tom Tromey <tromey@redhat.com>
10984
10985 * target.h (struct target_ops) <to_enable_tracepoint>: Add
10986 argument.
10987 (target_enable_tracepoint): Add argument.
10988 * target.c (update_current_target): Update.
10989 * remote.c (remote_enable_tracepoint): Add 'self' argument.
10990
559d2b81
TT
109912014-02-19 Tom Tromey <tromey@redhat.com>
10992
10993 * target.h (struct target_ops) <to_download_trace_state_variable>:
10994 Add argument.
10995 (target_download_trace_state_variable): Add argument.
10996 * target.c (update_current_target): Update.
10997 * remote.c (remote_download_trace_state_variable): Add 'self'
10998 argument.
10999
a52a8357
TT
110002014-02-19 Tom Tromey <tromey@redhat.com>
11001
11002 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
11003 argument.
11004 (target_can_download_tracepoint): Add argument.
11005 * target.c (update_current_target): Update.
11006 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
11007
548f7808
TT
110082014-02-19 Tom Tromey <tromey@redhat.com>
11009
11010 * target.h (struct target_ops) <to_download_tracepoint>: Add
11011 argument.
11012 (target_download_tracepoint): Add argument.
11013 * target.c (update_current_target): Update.
11014 * remote.c (remote_download_tracepoint): Add 'self' argument.
11015
ecae04e1
TT
110162014-02-19 Tom Tromey <tromey@redhat.com>
11017
11018 * target.h (struct target_ops) <to_trace_init>: Add argument.
11019 (target_trace_init): Add argument.
11020 * target.c (update_current_target): Update.
11021 * remote.c (remote_trace_init): Add 'self' argument.
11022
fab5aa7c
TT
110232014-02-19 Tom Tromey <tromey@redhat.com>
11024
11025 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
11026 * target.c (target_fileio_readlink): Add argument.
11027 * remote.c (remote_hostio_readlink): Add 'self' argument.
11028 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
11029
dbbca37d
TT
110302014-02-19 Tom Tromey <tromey@redhat.com>
11031
11032 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
11033 * target.c (target_fileio_unlink): Add argument.
11034 * remote.c (remote_hostio_unlink): Add 'self' argument.
11035 (remote_file_delete): Update.
11036 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
11037
df39ea25
TT
110382014-02-19 Tom Tromey <tromey@redhat.com>
11039
11040 * target.h (struct target_ops) <to_fileio_close>: Add argument.
11041 * target.c (target_fileio_close): Add argument.
11042 * remote.c (remote_hostio_close): Add 'self' argument.
11043 (remote_hostio_close_cleanup): Update.
11044 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
11045 Update.
11046 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
11047
a3be983c
TT
110482014-02-19 Tom Tromey <tromey@redhat.com>
11049
11050 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
11051 * target.c (target_fileio_pread): Add argument.
11052 * remote.c (remote_hostio_pread): Add 'self' argument.
11053 (remote_bfd_iovec_pread, remote_file_get): Update.
11054 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
11055
0d866f62
TT
110562014-02-19 Tom Tromey <tromey@redhat.com>
11057
11058 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
11059 * target.c (target_fileio_pwrite): Add argument.
11060 * remote.c (remote_hostio_pwrite): Add 'self' argument.
11061 (remote_file_put): Update.
11062 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
11063
cd897586
TT
110642014-02-19 Tom Tromey <tromey@redhat.com>
11065
11066 * target.h (struct target_ops) <to_fileio_open>: Add argument.
11067 * target.c (target_fileio_open): Add argument.
11068 * remote.c (remote_hostio_open): Add 'self' argument.
11069 (remote_bfd_iovec_open): Add 'self' argument.
11070 (remote_file_put): Add 'self' argument.
11071 (remote_file_get): Add 'self' argument.
11072 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
11073
78eff0ec
TT
110742014-02-19 Tom Tromey <tromey@redhat.com>
11075
11076 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
11077 Add argument.
11078 (target_can_run_breakpoint_commands): Add argument.
11079 * target.c (update_current_target): Update.
11080 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
11081 argument.
11082 (remote_insert_breakpoint): Add 'self' argument.
11083 (remote_insert_hw_breakpoint): Add 'self' argument.
11084 (remote_can_run_breakpoint_commands): Add 'self' argument.
11085
efcc2da7
TT
110862014-02-19 Tom Tromey <tromey@redhat.com>
11087
11088 * target.h (struct target_ops)
11089 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
11090 (target_supports_evaluation_of_breakpoint_conditions): Add
11091 argument.
11092 * target.c (update_current_target): Update.
11093 * remote.c (remote_supports_cond_breakpoints): Add 'self'
11094 argument.
11095 (remote_insert_breakpoint): Add 'self' argument.
11096 (remote_insert_hw_breakpoint): Add 'self' argument.
11097 (remote_supports_cond_breakpoints): Add 'self' argument.
11098
6de37a3a
TT
110992014-02-19 Tom Tromey <tromey@redhat.com>
11100
11101 * target.h (struct target_ops) <to_supports_string_tracing>: Add
11102 argument.
11103 (target_supports_string_tracing): Add argument.
11104 * target.c (update_current_target): Update.
11105 * remote.c (remote_supports_string_tracing): Add 'self' argument.
11106
2bfc0540
TT
111072014-02-19 Tom Tromey <tromey@redhat.com>
11108
11109 * target.h (struct target_ops)
11110 <to_supports_disable_randomization>: Add argument.
11111 * target.c (find_default_supports_disable_randomization): Add
11112 argument.
11113 (target_supports_disable_randomization): Add argument.
11114 (find_default_supports_disable_randomization): Add 'self'
11115 argument.
11116 * remote.c (extended_remote_supports_disable_randomization): Add
11117 'self' argument.
11118 (remote_supports_disable_randomization): Add 'self' argument.
11119 (extended_remote_create_inferior): Update.
11120 * linux-nat.c (linux_nat_supports_disable_randomization): Add
11121 'self' argument.
11122
7d178d6a
TT
111232014-02-19 Tom Tromey <tromey@redhat.com>
11124
11125 * target.h (struct target_ops)
11126 <to_supports_enable_disable_tracepoint>: Add argument.
11127 (target_supports_enable_disable_tracepoint): Add argument.
11128 * target.c (update_current_target): Update.
11129 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
11130 argument.
11131
86ce2668
TT
111322014-02-19 Tom Tromey <tromey@redhat.com>
11133
11134 * target.h (struct target_ops) <to_supports_multi_process>: Add
11135 argument.
11136 (target_supports_multi_process): Add argument.
11137 * target.c (update_current_target): Update.
11138 * remote.c (remote_supports_multi_process): Add 'self' argument.
11139 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
11140 argument.
11141 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
11142 argument.
11143
4c612759
TT
111442014-02-19 Tom Tromey <tromey@redhat.com>
11145
11146 * target.h (struct target_ops) <to_execution_direction>: Add
11147 argument.
11148 (target_execution_direction): Add argument.
11149 * target.c (default_execution_direction): Add 'self' argument.
11150 * record-full.c (record_full_execution_direction): Add 'self'
11151 argument.
11152
19db3e69
TT
111532014-02-19 Tom Tromey <tromey@redhat.com>
11154
11155 * target.h (struct target_ops) <to_can_execute_reverse>: Add
11156 argument.
11157 (target_can_execute_reverse): Add argument.
11158 * remote.c (remote_can_execute_reverse): Add 'self' argument.
11159 * record-full.c (record_full_can_execute_reverse): Add 'self'
11160 argument.
11161 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
11162 argument.
11163
1e6b91a4
TT
111642014-02-19 Tom Tromey <tromey@redhat.com>
11165
11166 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
11167 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
11168 argument.
11169 (target_get_ada_task_ptid): Add argument.
11170 * target.c (update_current_target): Update.
11171 (default_get_ada_task_ptid): Add 'self' argument.
11172 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
11173 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
11174 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
11175 argument.
11176 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
11177 argument.
11178 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
11179 argument.
11180 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
11181 argument.
11182 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
11183 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
11184 argument.
11185
3c80fb48
TT
111862014-02-19 Tom Tromey <tromey@redhat.com>
11187
11188 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
11189 (target_goto_bookmark): Add argument.
11190 * target.c (dummy_goto_bookmark): Add 'self' argument.
11191 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
11192
dd0e2830
TT
111932014-02-19 Tom Tromey <tromey@redhat.com>
11194
11195 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
11196 (target_get_bookmark): Add argument.
11197 * target.c (dummy_get_bookmark): Add 'self' argument.
11198 * record-full.c (record_full_get_bookmark): Add 'self' argument.
11199
fc6691b2
TT
112002014-02-19 Tom Tromey <tromey@redhat.com>
11201
11202 * target.h (struct target_ops) <to_make_corefile_notes>: Add
11203 argument.
11204 (target_make_corefile_notes): Add argument.
11205 * target.c (dummy_make_corefile_notes): Add 'self' argument.
11206 * procfs.c (procfs_make_note_section): Add 'self' argument.
11207 (procfs_make_note_section): Add 'self' argument.
11208 (procfs_make_note_section): Add 'self' argument.
11209 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
11210 argument.
11211 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
11212 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
11213 * exec.c (exec_make_note_section): Add 'self' argument.
11214 (exec_make_note_section): Add 'self' argument.
11215
2e73927c
TT
112162014-02-19 Tom Tromey <tromey@redhat.com>
11217
11218 * target.h (struct target_ops) <to_find_memory_regions>: Add
11219 argument.
11220 (target_find_memory_regions): Add argument.
11221 * target.c (dummy_find_memory_regions): Add 'self' argument.
11222 * procfs.c (proc_find_memory_regions): Add 'self' argument.
11223 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
11224 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
11225 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
11226 * exec. (exec_do_find_memory_regions): New global.
11227 (exec_set_find_memory_regions): Rewrite.
11228 (exec_find_memory_regions): New function.
11229 (init_exec_ops): Use exec_find_memory_regions.
11230
2a9a2795
TT
112312014-02-19 Tom Tromey <tromey@redhat.com>
11232
11233 * target.h (struct target_ops) <to_supports_non_stop>: Add
11234 argument.
11235 * target.c (find_default_supports_non_stop): Add argument.
11236 (target_supports_non_stop): Add argument.
11237 (find_default_supports_non_stop): Add 'self' argument.
11238 * remote.c (remote_supports_non_stop): Add 'self' argument.
11239 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
11240
4ab76ea3
TT
112412014-02-19 Tom Tromey <tromey@redhat.com>
11242
11243 * target.h (struct target_ops) <to_log_command>: Add argument.
11244 (target_log_command): Add argument.
11245 * serial.h (serial_log_command): Add 'self' argument.
11246 * serial.c (serial_log_command): Add 'self' argument.
11247
8dd27370
TT
112482014-02-19 Tom Tromey <tromey@redhat.com>
11249
11250 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
11251 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
11252 argument.
11253 (target_pid_to_exec_file): Add argument.
11254 * target.c (debug_to_pid_to_exec_file): Add argument.
11255 (update_current_target): Update.
11256 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
11257 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
11258 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
11259 (linux_handle_extended_wait): Update.
11260 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
11261 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
11262 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
11263 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
11264
1aac633b
TT
112652014-02-19 Tom Tromey <tromey@redhat.com>
11266
11267 * target.h (struct target_ops) <to_rcmd>: Add argument.
11268 (target_rcmd): Add argument.
11269 * target.c (debug_to_rcmd): Add argument.
11270 (update_current_target, do_monitor_command): Update.
11271 * remote.c (remote_rcmd): Add 'self' argument.
11272 * monitor.c (monitor_rcmd): Add 'self' argument.
11273
1eab8a48
TT
112742014-02-19 Tom Tromey <tromey@redhat.com>
11275
11276 * windows-nat.c (windows_stop): Add 'self' argument.
11277 * target.h (struct target_ops) <to_stop>: Add argument.
11278 * target.c (target_stop): Add argument.
11279 (debug_to_stop): Add argument.
11280 (update_current_target): Update.
11281 * remote.c (remote_stop): Add 'self' argument.
11282 * remote-sim.c (gdbsim_stop): Add 'self' argument.
11283 (gdbsim_cntrl_c): Update.
11284 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
11285 * procfs.c (procfs_stop): Add 'self' argument.
11286 * nto-procfs.c (procfs_stop): Add 'self' argument.
11287 * monitor.c (monitor_stop): Add 'self' argument.
11288 (monitor_open): Update.
11289 * linux-nat.c (linux_nat_stop): Add argument.
11290 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
11291 * gnu-nat.c (gnu_stop): Add 'self' argument.
11292 * darwin-nat.c (darwin_stop): Add 'self' argument.
11293
503a628d
TT
112942014-02-19 Tom Tromey <tromey@redhat.com>
11295
11296 * target.h (struct target_ops) <to_thread_name>: Add argument.
11297 * target.c (target_thread_name): Add argument.
11298 (update_current_target): Update.
11299 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
11300
c15906d8
TT
113012014-02-19 Tom Tromey <tromey@redhat.com>
11302
11303 * target.h (struct target_ops) <to_extra_thread_info>: Add
11304 argument.
11305 (target_extra_thread_info): Add argument.
11306 * target.c (update_current_target): Update.
11307 * remote.c (remote_threads_extra_info): Add 'self' argument.
11308 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
11309 argument.
11310 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
11311 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
11312 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
11313 argument.
11314 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
11315 argument.
11316 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
11317 argument.
11318 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
11319 argument.
11320
daf5e9b6
TT
113212014-02-19 Tom Tromey <tromey@redhat.com>
11322
11323 * target.h (struct target_ops) <to_program_signals>: Add argument.
11324 * target.c (target_program_signals): Add argument.
11325 * remote.c (remote_program_signals): Add 'self' argument.
11326
94bedb42
TT
113272014-02-19 Tom Tromey <tromey@redhat.com>
11328
11329 * target.h (struct target_ops) <to_pass_signals>: Add argument.
11330 * target.c (target_pass_signals): Add argument.
11331 * remote.c (remote_pass_signals): Add 'self' argument.
11332 (remote_start_remote): Update.
11333 * procfs.c (procfs_pass_signals): Add 'self' argument.
11334 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
11335 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
11336 (linux_nat_create_inferior, linux_nat_attach): Update.
11337
da82bd6b
TT
113382014-02-19 Tom Tromey <tromey@redhat.com>
11339
11340 * windows-nat.c (windows_can_run): Add 'self' argument.
11341 * target.h (struct target_ops) <to_can_run>: Add argument.
11342 (target_can_run): Add argument.
11343 * target.c (debug_to_can_run): Add argument.
11344 (update_current_target): Update.
11345 * nto-procfs.c (procfs_can_run): Add 'self' argument.
11346 * inf-child.c (inf_child_can_run): Add 'self' argument.
11347 * go32-nat.c (go32_can_run): Add 'self' argument.
11348
d796e1d6
TT
113492014-02-19 Tom Tromey <tromey@redhat.com>
11350
11351 * target.h (struct target_ops) <to_has_exited>: Add argument.
11352 (target_has_exited): Add argument.
11353 * target.c (debug_to_has_exited): Add argument.
11354 (update_current_target): Update.
11355
ff214e67
TT
113562014-02-19 Tom Tromey <tromey@redhat.com>
11357
11358 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
11359 argument.
11360 (target_set_syscall_catchpoint): Add argument.
11361 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
11362 argument.
11363 * target.c (update_current_target): Update.
11364
758e29d2
TT
113652014-02-19 Tom Tromey <tromey@redhat.com>
11366
11367 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
11368 argument.
11369 (target_remove_exec_catchpoint): Add argument.
11370 * target.c (debug_to_remove_exec_catchpoint): Add argument.
11371 (update_current_target): Update.
11372 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
11373 argument.
11374
ba025e51
TT
113752014-02-19 Tom Tromey <tromey@redhat.com>
11376
11377 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
11378 argument.
11379 (target_insert_exec_catchpoint): Add argument.
11380 * target.c (debug_to_insert_exec_catchpoint): Add argument.
11381 (update_current_target): Update.
11382 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
11383 argument.
11384
e98cf0cd
TT
113852014-02-19 Tom Tromey <tromey@redhat.com>
11386
11387 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
11388 argument.
11389 (target_remove_vfork_catchpoint): Add argument.
11390 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
11391 (update_current_target): Update.
11392 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
11393 argument.
11394
3ecc7da0
TT
113952014-02-19 Tom Tromey <tromey@redhat.com>
11396
11397 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
11398 argument.
11399 (target_insert_vfork_catchpoint): Add argument.
11400 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
11401 (update_current_target): Update.
11402 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
11403 argument.
11404
973fc227
TT
114052014-02-19 Tom Tromey <tromey@redhat.com>
11406
11407 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
11408 argument.
11409 (target_remove_fork_catchpoint): Add argument.
11410 * target.c (debug_to_remove_fork_catchpoint): Add argument.
11411 (update_current_target): Update.
11412 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
11413 argument.
11414
a863b201
TT
114152014-02-19 Tom Tromey <tromey@redhat.com>
11416
11417 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
11418 argument.
11419 (target_insert_fork_catchpoint): Add argument.
11420 * target.c (debug_to_insert_fork_catchpoint): Add argument.
11421 (update_current_target): Update.
11422 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
11423 argument.
11424
2e97a79e
TT
114252014-02-19 Tom Tromey <tromey@redhat.com>
11426
11427 * target.h (struct target_ops) <to_post_startup_inferior>: Add
11428 argument.
11429 (target_post_startup_inferior): Add argument.
11430 * target.c (debug_to_post_startup_inferior): Add argument.
11431 (update_current_target): Update.
11432 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
11433 argument.
11434 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
11435 argument.
11436 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
11437 argument.
11438 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
11439 argument.
11440 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
11441 'self' argument.
11442 (super_post_startup_inferior): Likewise.
11443 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
11444 'self' argument.
11445 (super_post_startup_inferior): Likewise.
11446 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
11447 Add 'self' argument.
11448 (super_post_startup_inferior): Likewise.
11449
71a9f134
TT
114502014-02-19 Tom Tromey <tromey@redhat.com>
11451
11452 * target.h (struct target_ops) <to_load>: Add argument.
11453 * target.c (target_load): Add argument.
11454 (debug_to_load): Add argument.
11455 (update_current_target): Update.
11456 * remote.c (remote_load): Add 'self' argument.
11457 * remote-sim.c (gdbsim_load): Add 'self' argument.
11458 * remote-mips.c (mips_load): Add 'self' argument.
11459 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
11460 * monitor.c (monitor_load): Add 'self' argument.
11461 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
11462
0a4f40a2
TT
114632014-02-19 Tom Tromey <tromey@redhat.com>
11464
11465 * target.h (struct target_ops) <to_terminal_info>: Add argument.
11466 (target_terminal_info): Add argument.
11467 * target.c (debug_to_terminal_info): Add argument.
11468 (default_terminal_info): Likewise.
11469 * inflow.c (child_terminal_info): Add 'self' argument.
11470 * inferior.h (child_terminal_info): Add 'self' argument.
11471 * go32-nat.c (go32_terminal_info): Add 'self' argument.
11472
ae3bd431
TT
114732014-02-19 Tom Tromey <tromey@redhat.com>
11474
11475 * target.h (struct target_ops) <to_terminal_save_ours>: Add
11476 argument.
11477 (target_terminal_save_ours): Add argument.
11478 * target.c (debug_to_terminal_save_ours): Add argument.
11479 (update_current_target): Update.
11480 * inflow.c (terminal_save_ours): Add 'self' argument.
11481 * inferior.h (terminal_save_ours): Add 'self' argument.
11482
e3594fd1
TT
114832014-02-19 Tom Tromey <tromey@redhat.com>
11484
11485 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
11486 (target_terminal_ours): Add argument.
11487 * target.c (debug_to_terminal_ours): Add argument.
11488 (update_current_target): Update.
11489 * remote.c (remote_terminal_ours): Add 'self' argument.
11490 (remote_close): Update.
11491 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
11492 * inflow.c (terminal_ours): Add 'self' argument.
11493 * inferior.h (terminal_ours): Add 'self' argument.
11494 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11495
2e1e1a19
TT
114962014-02-19 Pedro Alves <palves@redhat.com>
11497 Tom Tromey <tromey@redhat.com>
11498
11499 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
11500 argument.
11501 (target_terminal_ours_for_output): Add argument.
11502 * target.c (debug_to_terminal_ours_for_output): Add argument.
11503 (update_current_target): Update.
11504 * inflow.c (terminal_ours_for_output): Add 'self' argument.
11505 * inferior.h (terminal_ours_for_output): Add 'self' argument.
11506 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11507
d2f640d4
TT
115082014-02-19 Tom Tromey <tromey@redhat.com>
11509
11510 * target.h (struct target_ops) <to_terminal_inferior>: Add
11511 argument.
11512 * target.c (target_terminal_inferior): Add argument.
11513 (update_current_target): Update.
11514 * remote.c (remote_terminal_inferior): Add 'self' argument.
11515 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
11516 * inflow.c (terminal_inferior): Add 'self' argument.
11517 * inferior.h (terminal_inferior): Add 'self' argument.
11518 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
11519 (go32_terminal_inferior): Add 'self' argument.
11520
c42bf286
TT
115212014-02-19 Tom Tromey <tromey@redhat.com>
11522
11523 * target.h (struct target_ops) <to_terminal_init>: Add argument.
11524 (target_terminal_init): Add argument.
11525 * target.c (debug_to_terminal_init): Add argument.
11526 (update_current_target): Update.
11527 * inflow.c (terminal_init_inferior): Add 'self' argument.
11528 * inferior.h (terminal_init_inferior): Add 'self' argument.
11529 * go32-nat.c (go32_terminal_init): Add 'self' argument.
11530 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
11531
c3a5ff89
TT
115322014-02-19 Tom Tromey <tromey@redhat.com>
11533
11534 * target.h (struct target_ops)
11535 <to_can_accel_watchpoint_condition>: Add argument.
11536 (target_can_accel_watchpoint_condition): Add argument.
11537 * target.c (debug_to_can_accel_watchpoint_condition): Add
11538 argument.
11539 (update_current_target): Update.
11540 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
11541 'self' argument.
11542
31568a15
TT
115432014-02-19 Tom Tromey <tromey@redhat.com>
11544
11545 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11546 Add argument.
11547 (target_region_ok_for_hw_watchpoint): Add argument.
11548 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
11549 (default_region_ok_for_hw_watchpoint): Add argument.
11550 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
11551 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
11552 argument.
11553 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
11554 argument.
11555 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
11556 argument.
11557 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
11558 'self' argument.
11559 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
11560 'self' argument.
11561 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
11562 'self' argument.
11563 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
11564 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
11565 'self' argument.
11566 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
11567 Add 'self' argument.
11568
7bb99c53
TT
115692014-02-19 Tom Tromey <tromey@redhat.com>
11570
11571 * target.h (struct target_ops) <to_insert_watchpoint>: Add
11572 argument.
11573 (target_insert_watchpoint): Add argument.
11574 * target.c (debug_to_insert_watchpoint): Add argument.
11575 (update_current_target): Update.
11576 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
11577 * remote.c (remote_insert_watchpoint): Add 'self' argument.
11578 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
11579 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
11580 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
11581 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
11582 argument.
11583 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
11584 (procfs_insert_hw_watchpoint): Add 'self' argument.
11585 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
11586 argument.
11587 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
11588 argument.
11589 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
11590 argument.
11591 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
11592 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
11593 argument.
11594 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
11595 'self' argument.
11596
11b5219a
TT
115972014-02-19 Tom Tromey <tromey@redhat.com>
11598
11599 * target.h (struct target_ops) <to_remove_watchpoint>: Add
11600 argument.
11601 (target_remove_watchpoint): Add argument.
11602 * target.c (debug_to_remove_watchpoint): Add argument.
11603 (update_current_target): Update.
11604 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
11605 * remote.c (remote_remove_watchpoint): Add 'self' argument.
11606 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
11607 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
11608 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
11609 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
11610 argument.
11611 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
11612 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
11613 argument.
11614 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
11615 argument.
11616 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
11617 argument.
11618 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
11619 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
11620 argument.
11621 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
11622 'self' argument.
11623
a64dc96c
TT
116242014-02-19 Tom Tromey <tromey@redhat.com>
11625
11626 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
11627 argument.
11628 (target_remove_hw_breakpoint): Add argument.
11629 * target.c (debug_to_remove_hw_breakpoint): Add argument.
11630 (update_current_target): Update.
11631 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
11632 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
11633 argument.
11634 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
11635 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
11636 argument.
11637 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
11638 'self' argument.
11639
23a26771
TT
116402014-02-19 Tom Tromey <tromey@redhat.com>
11641
11642 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
11643 argument.
11644 (target_insert_hw_breakpoint): Add argument.
11645 * target.c (debug_to_insert_hw_breakpoint): Add argument.
11646 (update_current_target): Update.
11647 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
11648 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
11649 argument.
11650 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
11651 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
11652 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
11653 argument.
11654 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
11655 'self' argument.
11656
5461485a
TT
116572014-02-19 Tom Tromey <tromey@redhat.com>
11658
11659 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
11660 argument.
11661 (target_can_use_hardware_watchpoint): Add argument.
11662 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
11663 (update_current_target): Update.
11664 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
11665 argument.
11666 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
11667 argument.
11668 * remote.c (remote_check_watch_resources): Add 'self' argument.
11669 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
11670 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
11671 argument.
11672 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
11673 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
11674 argument.
11675 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
11676 argument.
11677 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
11678 argument.
11679 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
11680 argument.
11681 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
11682 argument.
11683 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
11684 argument.
11685 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
11686 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
11687 argument.
11688 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
11689 'self' argument.
11690
f045800c
TT
116912014-02-19 Tom Tromey <tromey@redhat.com>
11692
11693 * target.h (struct target_ops) <to_post_attach>: Add argument.
11694 (target_post_attach): Add argument.
11695 * target.c (debug_to_post_attach): Add argument.
11696 (update_current_target): Update.
11697 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
11698 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
11699 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
11700 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
11701 * inf-child.c (inf_child_post_attach): Add 'self' argument.
11702
de90e03d
TT
117032014-02-19 Tom Tromey <tromey@redhat.com>
11704
11705 * windows-nat.c (windows_close): Add 'self' argument.
11706 * tracepoint.c (tfile_close): Add 'self' argument.
11707 * target.h (struct target_ops) <to_close>: Add argument.
11708 * target.c (target_close): Add argument.
11709 (update_current_target): Update.
11710 * remote.c (remote_close): Add 'self' argument.
11711 * remote-sim.c (gdbsim_close): Add 'self' argument.
11712 * remote-mips.c (mips_close): Add 'self' argument.
11713 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
11714 * record-full.c (record_full_close): Add 'self' argument.
11715 * record-btrace.c (record_btrace_close): Add 'self' argument.
11716 * monitor.h (monitor_close): Add 'self' argument.
11717 * monitor.c (monitor_close): Add 'self' argument.
11718 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
11719 * linux-nat.c (linux_nat_close): Add argument.
11720 * go32-nat.c (go32_close): Add 'self' argument.
11721 * exec.c (exec_close_1): Add 'self' argument.
11722 * ctf.c (ctf_close): Add 'self' argument.
11723 * corelow.c (core_close): Add 'self' argument.
11724 (core_close_cleanup): Update.
11725 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
11726 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
11727
9dd130a0
TT
117282014-02-19 Tom Tromey <tromey@redhat.com>
11729
11730 * remote.c (remote_load): New function.
11731 (init_remote_ops): Use it.
11732
46917d26
TT
117332014-02-19 Tom Tromey <tromey@redhat.com>
11734
11735 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
11736 argument.
11737 * common/linux-btrace.h (linux_supports_btrace): Update.
11738 * remote.c (remote_supports_btrace): Add "self" argument.
11739 * target-delegates.c: Rebuild.
11740 * target.c (target_supports_btrace): Remove.
11741 * target.h (struct target_ops) <to_supports_btrace>: Add
11742 target_ops argument.
11743 (target_supports_btrace): New define.
11744
6b84065d
TT
117452014-02-19 Tom Tromey <tromey@redhat.com>
11746
11747 * record-full.c (record_full_beneath_to_resume_ops)
11748 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
11749 (record_full_beneath_to_wait)
11750 (record_full_beneath_to_store_registers_ops)
11751 (record_full_beneath_to_store_registers)
11752 (record_full_beneath_to_xfer_partial_ops)
11753 (record_full_beneath_to_xfer_partial)
11754 (record_full_beneath_to_insert_breakpoint_ops)
11755 (record_full_beneath_to_insert_breakpoint)
11756 (record_full_beneath_to_remove_breakpoint_ops)
11757 (record_full_beneath_to_remove_breakpoint)
11758 (record_full_beneath_to_stopped_by_watchpoint)
11759 (record_full_beneath_to_stopped_data_address)
11760 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
11761 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
11762 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
11763 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
11764 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
11765 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
11766 (tmp_to_stopped_data_address, tmp_to_async): Remove.
11767 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
11768 (record_full_resume, record_full_wait_1)
11769 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
11770 (record_full_store_registers, record_full_xfer_partial)
11771 (record_full_insert_breakpoint, record_full_remove_breakpoint)
11772 (record_full_async, record_full_core_xfer_partial): Use target
11773 delegation.
11774 * target-delegates.c: Rebuild.
11775 * target.c (current_xfer_partial): Remove.
11776 (update_current_target): Do not INHERIT or de_fault
11777 to_insert_breakpoint, to_remove_breakpoint,
11778 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
11779 to_is_async_p, to_async. Do not set to_xfer_partial field.
11780 (default_xfer_partial): Simplify.
11781 (current_xfer_partial): Remove.
11782 (target_wait, target_resume): Simplify.
11783 (find_default_can_async_p, find_default_is_async_p): Update.
11784 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
11785 to_xfer_partial, to_stopped_by_watchpoint,
11786 to_stopped_data_address.
11787 (target_store_registers): Simplify.
11788 (forward_target_remove_breakpoint)
11789 (forward_target_insert_breakpoint): Remove.
11790 (target_remove_breakpoint, target_insert_breakpoint)
11791 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
11792 * target.h (struct target_ops) <to_resume, to_wait,
11793 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
11794 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
11795 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
11796 markup.
11797 (forward_target_remove_breakpoint)
11798 (forward_target_insert_breakpoint): Remove.
11799 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
11800 directly.
11801 (record_btrace_insert_breakpoint): Delegate directly.
11802
1101cb7b
TT
118032014-02-19 Tom Tromey <tromey@redhat.com>
11804
11805 PR build/7701:
11806 * target-delegates.c: New file.
11807 * target.c: Include target-delegates.c.
11808 (init_dummy_target): Call install_dummy_methods.
11809 (complete_target_initialization): Call install_delegators.
11810 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
11811 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
11812 * make-target-delegates: New file.
11813
8b06beed
TT
118142014-02-19 Tom Tromey <tromey@redhat.com>
11815
11816 * record.c (find_record_target): Use find_target_at.
11817 * target.c (find_target_at): New function.
11818 * target.h (find_target_at): Declare.
11819
6a109b6b
TT
118202014-02-19 Tom Tromey <tromey@redhat.com>
11821
11822 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
11823 Add 'ops' argument.
11824 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
11825 'ops' argument.
11826 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
11827 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
11828 'ops' argument.
11829 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
11830 argument.
11831 * linux-nat.c (save_sigtrap): Update.
11832 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
11833 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
11834 (linux_nat_close): Update.
11835 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
11836 argument.
11837 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
11838 argument.
11839 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
11840 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
11841 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
11842 (tmp_to_async): Add 'ops' argument.
11843 (record_full_stopped_by_watchpoint, record_full_async)
11844 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
11845 argument.
11846 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
11847 (m32r_stopped_by_watchpoint): Add 'ops' argument.
11848 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
11849 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
11850 (remote_is_async_p, remote_async): Add 'ops' argument.
11851 (remote_stopped_data_address): Update.
11852 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
11853 * target.c (update_current_target)
11854 (find_default_can_async_p, find_default_is_async_p): Update.
11855 (init_dummy_target): Update.
11856 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
11857 * target.h (struct target_ops) <to_stopped_by_watchpoint,
11858 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
11859 (target_can_async_p, target_is_async_p, target_async)
11860 (target_stopped_by_watchpoint): Update.
11861
e095146b
YQ
118622014-02-19 Yao Qi <yao@codesourcery.com>
11863
11864 PR gdb/16220
11865 * gdbarch.sh: Remove startup_gdbarch.
11866 * gdbarch.c: Regenerated.
11867 * gdbarch.h: Likewise.
11868
bc3c6b36
KB
118692014-02-17 Kevin Buettner <kevinb@redhat.com>
11870
11871 * rl78-tdep.c (rl78_g10_register_name): New function.
11872 (rl78_return_value): Add g10 support.
11873 (rl78_gdbarch_init): Register rl78_g10_register_name for the
11874 g10.
11875
98dc0167 118762014-02-17 Doug Evans <xdje42@gmail.com>
f01c1940
DE
11877
11878 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
11879 (SUBDIR_GUILE_SRCS): Ditto.
11880 (scm-gsmob.o): Ditto.
11881
842c05cd
YQ
118822014-02-17 Yao Qi <yao@codesourcery.com>
11883
11884 * gnu-nat.c (ILL_RPC): Declare defined function.
11885
25c0bd04
YQ
118862014-02-17 Yao Qi <yao@codesourcery.com>
11887
11888 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
11889 mach_msg_type_number_t.
11890 (gnu_write_inferior): Likewise.
11891
a9a758e3
YQ
118922014-02-17 Yao Qi <yao@codesourcery.com>
11893
11894 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
11895 in format string.
11896 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
11897 (inf_validate_procs, inf_signal): Likewise.
11898 (S_exception_raise_request): Likewise.
11899 (do_mach_notify_dead_name): Likewise.
11900 (steal_exc_port): Likewise.
11901 (gnu_read_inferior): Change 'copy_count''s type to
11902 mach_msg_type_number_t.
11903 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
11904 format string.
11905
bae8023e
TS
119062014-02-16 Thomas Schwinge <thomas@codesourcery.com>
11907
c82f56d9
TS
11908 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
11909 flag. Adjust all users; in particular...
11910 (gnu_wait): ..., don't decrement its value in here...
11911 (gnu_create_inferior): ..., and instead set the flag in here,
11912 around the startup_inferior call, and call that one with
11913 START_INFERIOR_TRAPS_EXPECTED.
11914
3398af6a
TS
11915 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
11916 (ILL_RPC): ... new macro.
11917 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
11918 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
11919 (do_mach_notify_send_once, S_proc_setmsgport_reply)
11920 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
11921 functions with ILL_RPC macro.
11922 (S_proc_pid2task_reply, S_proc_task2pid_reply)
11923 (S_proc_task2proc_reply, S_proc_proc2task_reply)
11924 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
11925 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
11926 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
11927 (S_proc_getlogin_reply, S_proc_getsid_reply)
11928 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
11929 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
11930 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
11931 (S_proc_getnports_reply, S_proc_is_important_reply)
11932 (S_proc_get_code_reply): New stub functions, generated with
11933 ILL_RPC macro.
11934
d47642c9
TS
11935 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
11936 collected the type check structures.
11937
bae8023e
TS
11938 * reply_mig_hack.awk: Don't expect to see the auto keyword.
11939
8a55ffb0
DE
119402014-02-14 Doug Evans <dje@google.com>
11941
11942 * target.c (target_write_partial): Fix result type.
11943
c2853f3d
JM
119442014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
11945
11946 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
11947 the proper offsets to access fpregset_t.
11948
ac61d2db
SA
119492014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
11950
11951 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
11952 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
11953 * h8300-tdep.c (setmachinelist): Remove global.
11954 * hppa-tdep.c (hppa_sigtramp): Remove global.
11955 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
11956 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
11957 * ravenscar-thread.c (update_target_observer): Remove global.
11958 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
11959
9d2d0b8b
TT
119602014-02-12 Tom Tromey <tromey@redhat.com>
11961
11962 * common/rsp-low.c: Update comments.
11963 * common/rsp-low.h: Update comments.
11964
a7191e8b
TT
119652014-02-12 Tom Tromey <tromey@redhat.com>
11966
11967 * common/rsp-low.c (convert_ascii_to_int): Remove.
11968 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
11969
ff0e980e
TT
119702014-02-12 Tom Tromey <tromey@redhat.com>
11971
11972 * common/rsp-low.h (unhexify): Don't declare.
11973 * common/rsp-low.c (unhexify): Remove.
11974
e9371aff
TT
119752014-02-12 Tom Tromey <tromey@redhat.com>
11976
11977 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
11978 * common/rsp-low.c (convert_int_to_ascii): Remove.
11979
971dc0b8
TT
119802014-02-12 Tom Tromey <tromey@redhat.com>
11981
11982 * common/rsp-low.h (hexify): Don't declare.
11983 * common/rsp-low.c (hexify): Remove.
11984
0a822afb
TT
119852014-02-12 Tom Tromey <tromey@redhat.com>
11986
11987 * common/rsp-low.c (hexify): Never take strlen of argument.
11988
9f1b45b0
TT
119892014-02-12 Tom Tromey <tromey@redhat.com>
11990
11991 * common/rsp-low.c (bin2hex): Never take strlen of argument.
11992 * remote.c (extended_remote_run, remote_rcmd)
11993 (remote_download_trace_state_variable, remote_save_trace_data)
11994 (remote_set_trace_notes): Update.
11995 * tracepoint.c (encode_source_string, tfile_write_status)
11996 (tfile_write_uploaded_tsv): Update.
11997
9c3d6531
TT
119982014-02-12 Tom Tromey <tromey@redhat.com>
11999
12000 * tracepoint.c: Include rsp-low.h.
12001 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
12002 * remote.c: Include rsp-low.h.
12003 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
12004 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
12005 (remote_unescape_input): Move to common/rsp-low.c.
12006 * common/rsp-low.h: New file.
12007 * common/rsp-low.c: New file.
12008 * Makefile.in (SFILES): Add common/rsp-low.c.
12009 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
12010 (COMMON_OBS): Add rsp-low.o.
12011 (rsp-low.o): New target.
12012
01fd3ea5
TT
120132014-02-12 Tom Tromey <tromey@redhat.com>
12014
12015 * utils.h: Include print-utils.h.
12016 (host_address_to_string, plongest, pulongest, phex, phex_nz)
12017 (int_string, core_addr_to_string, core_addr_to_string_nz)
12018 (hex_string, hex_string_custom): Don't declare.
12019 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
12020 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
12021 (hex_string_custom, int_string, core_addr_to_string)
12022 (core_addr_to_string_nz, host_address_to_string): Move to
12023 common/print-utils.c.
12024 * common/print-utils.h: New file.
12025 * common/print-utils.c: New file
12026 * Makefile.in (SFILES): Add common/print-utils.c.
12027 (HFILES_NO_SRCDIR): Add common/print-utils.h.
12028 (COMMON_OBS): Add print-utils.o.
12029 (print-utils.o): New target.
12030
9fb50108
TT
120312014-02-12 Tom Tromey <tromey@redhat.com>
12032
12033 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
12034
0548b5db
MK
120352014-02-12 Mark Kettenis <kettenis@gnu.org>
12036
12037 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
12038
493443a4
MK
120392014-02-12 Mark Kettenis <kettenis@gnu.org>
12040
12041 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
12042 if a PT_IO ptrace request returns sucessfully but indicates that 0
12043 bytes were transferred.
12044
706d0883
PA
120452014-02-12 Pedro Alves <palves@redhat.com>
12046 Kevin Buettner <kevinb@redhat.com>
12047
12048 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
12049 TYPE_INSTANCE_FLAG_CODE_SPACE.
12050
5caa2f0b
PA
120512014-02-12 Pedro Alves <palves@redhat.com>
12052
12053 * h8300-tdep.c (pseudo_from_raw_register)
12054 (raw_from_pseudo_register): New functions.
12055 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
12056 them.
12057
76fd5f74
PA
120582014-02-12 Pedro Alves <palves@redhat.com>
12059
12060 * h8300-tdep.c (h8300_register_sim_regno): New function.
12061 (h8300_gdbarch_init): Install h8300_register_sim_regno as
12062 gdbarch_register_sim_regno hook.
12063
8f008406
SA
120642014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
12065
12066 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
12067
195abc10
SA
120682014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
12069
12070 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
12071
93ffa5b9
MK
120722014-02-12 Mark Kettenis <kettenis@gnu.org>
12073
12074 * obsd-tdep.h (obsd_init_abi): New prototype.
12075 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
12076 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
12077 (obsd_init_abi): New functions.
12078 * i386obsd-tdep.c: Include "obsd-tdep.h".
12079 (i386obsd_init_abi): Call obsd_init_abi.
12080 * amd64obsd-tdep.c: Include "obsd-tdep.h".
12081 (amd64obsd_init_abi): Call obsd_init_abi.
12082 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
12083 obsd-tdep.c to gdb_target_obs.
12084
49caec94
JM
120852014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
12086
12087 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
12088 double float arguments to 16-byte in the argument slots.
12089
e1402065
DE
120902014-02-11 Doug Evans <xdje42@gmail.com>
12091
12092 * configure.ac: Don't crash if pkg-config is not found and guile
12093 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
12094 in guile checks.
12095 * configure: Regenerate.
12096
edcc890f
YQ
120972014-02-11 Yao Qi <yao@codesourcery.com>
12098
12099 * aix-thread.c (aix_thread_xfer_partial): Update comments.
12100 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
12101 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
12102 * gnu-nat.c (gnu_xfer_memory): Likewise.
12103 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
12104 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12105 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12106 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12107
9b409511
YQ
121082014-02-11 Yao Qi <yao@codesourcery.com>
12109
12110 * target.h (enum target_xfer_error): Rename to ...
12111 (enum target_xfer_status): ... it. New. All users updated.
12112 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
12113 New.
12114 (TARGET_XFER_STATUS_ERROR_P): New macro.
12115 (target_xfer_error_to_string): Remove declaration.
12116 (target_xfer_status_to_string): Declare.
12117 (target_xfer_partial_ftype): Adjust it.
12118 (struct target_ops) <to_xfer_partial>: Return
12119 target_xfer_status. Add argument xfered_len. Update
12120 comments.
12121 * target.c (target_xfer_error_to_string): Rename to ...
12122 (target_xfer_status_to_string): ... it. New. All callers
12123 updated.
12124 (target_read_live_memory): Likewise. Call target_xfer_partial
12125 instead of target_read.
12126 (memory_xfer_live_readonly_partial): Return
12127 target_xfer_status. Add argument xfered_len.
12128 (raw_memory_xfer_partial): Likewise.
12129 (memory_xfer_partial_1): Likewise.
12130 (memory_xfer_partial): Likewise.
12131 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
12132 properly. Update debug message.
12133 (default_xfer_partial, current_xfer_partial): Likewise.
12134 (target_write_partial): Likewise.
12135 (target_read_partial): Likewise. All callers updated.
12136 (read_whatever_is_readable): Likewise.
12137 (target_write_with_progress): Likewise.
12138 (target_read_alloc_1): Likewise.
12139
12140 * aix-thread.c (aix_thread_xfer_partial): Likewise.
12141 * auxv.c (procfs_xfer_auxv): Likewise.
12142 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
12143 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12144 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12145 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
12146 * corefile.c (read_memory): Adjust.
12147 * corelow.c (core_xfer_partial): Likewise.
12148 * ctf.c (ctf_xfer_partial): Likewise.
12149 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
12150 updated.
12151 (darwin_xfer_partial): Likewise.
12152 * exec.c (section_table_xfer_memory_partial): Likewise. All
12153 callers updated.
12154 (exec_xfer_partial): Likewise.
12155 * exec.h (section_table_xfer_memory_partial): Update
12156 declaration.
12157 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
12158 negative.
12159 (gnu_xfer_partial): Likewise.
12160 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
12161 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
12162 (ia64_hpux_xfer_solib_got): Likewise.
12163 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
12164 type of 'partial_len' to ULONGEST.
12165 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
12166 * linux-nat.c (linux_xfer_siginfo ): Likewise.
12167 (linux_nat_xfer_partial): Likewise.
12168 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
12169 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
12170 * monitor.c (monitor_xfer_memory): Likewise.
12171 (monitor_xfer_partial): Likewise.
12172 * procfs.c (procfs_xfer_partial): Likewise.
12173 * record-btrace.c (record_btrace_xfer_partial): Likewise.
12174 * record-full.c (record_full_xfer_partial): Likewise.
12175 (record_full_core_xfer_partial): Likewise.
12176 * remote-sim.c (gdbsim_xfer_memory): Likewise.
12177 (gdbsim_xfer_partial): Likewise.
12178 * remote.c (remote_write_bytes_aux): Likewise. All callers
12179 updated.
12180 (remote_write_bytes, remote_read_bytes): Likewise. All
12181 callers updated.
12182 (remote_flash_erase): Likewise. All callers updated.
12183 (remote_write_qxfer): Likewise. All callers updated.
12184 (remote_read_qxfer): Likewise. All callers updated.
12185 (remote_xfer_partial): Likewise.
12186 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12187 (rs6000_xfer_shared_libraries): Likewise.
12188 * sol-thread.c (sol_thread_xfer_partial): Likewise.
12189 (sol_thread_xfer_partial): Likewise.
12190 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12191 (sparc_xfer_partial): Likewise.
12192 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
12193 updated.
12194 (spu_xfer_partial): Likewise.
12195 * spu-multiarch.c (spu_xfer_partial): Likewise.
12196 * tracepoint.c (tfile_xfer_partial): Likewise.
12197 * windows-nat.c (windows_xfer_memory): Likewise.
12198 (windows_xfer_shared_libraries): Likewise.
12199 (windows_xfer_partial): Likewise.
12200 * valprint.c: Replace 'target_xfer_error' with
12201 'target_xfer_status' in comments.
12202
a8e63083
JB
122032014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
12204
12205 Checked in by Joel Brobecker <brobecker@adacore.com>.
12206 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
12207
e86b67d3
JB
122082014-02-11 Joel Brobecker <brobecker@adacore.com>
12209
12210 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
12211 function parameters.
12212
4b7d1f7f
WN
122132014-02-10 Will Newton <will.newton@linaro.org>
12214
12215 * elfread.c (elf_rel_plt_read): Look for a .got section if
12216 looking up .got.plt fails.
12217 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
12218 on address passed to elf_gnu_ifunc_record_cache.
12219 (elf_gnu_ifunc_resolve_addr): Likewise.
12220 (elf_gnu_ifunc_resolver_return_stop): Likewise.
12221
961842b2
JM
122222014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
12223
12224 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
12225 (X_RETTURN): New macro.
12226 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
12227
12228 * sparc64-tdep.c (sparc64_init_abi): Hook
12229 sparc_in_function_epilogue_p.
12230
3f03e7b1
GB
122312014-02-10 Gary Benson <gbenson@redhat.com>
12232
12233 * symfile-debug.c (debug_qf_expand_symtabs_matching):
12234 Rename name_matcher to symbol_matcher.
12235
96f861ef
GB
122362014-02-10 Gary Benson <gbenson@redhat.com>
12237
12238 * symfile-debug.c (debug_qf_expand_symtabs_matching):
12239 Use expand_symtabs_file_matcher_ftype and
12240 expand_symtabs_symbol_matcher_ftype.
12241
ee01b665
JB
122422014-02-10 Joel Brobecker <brobecker@adacore.com>
12243
12244 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
12245 (struct ada_symbol_cache): New.
12246 (ada_free_symbol_cache): Forward declare.
12247 (struct ada_pspace_data): New.
12248 (ada_pspace_data_handle): New static global.
12249 (get_ada_pspace_data, ada_pspace_data_cleanup)
12250 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
12251 (cache_space, cache): Delete, now folded inside struct
12252 ada_pspace_data.
12253 (ada_get_symbol_cache): New function.
12254 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
12255 implementation.
12256 (_initialize_ada_language): Remove initialization of cache_space.
12257 Move call to observer_attach_inferior_exit up, grouping it
12258 with the other observer registrations inside this function.
12259 Rename command to be more general. Add call to
12260 register_program_space_data_with_cleanup.
12261
143adbbf
JB
122622014-02-10 Joel Brobecker <brobecker@adacore.com>
12263
12264 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
12265 ada_new_objfile_observer.
12266 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
12267 (_initialize_tasks): Update uses of ada_new_objfile_observer
12268 and ada_tasks_normal_stop_observer.
12269
aa4fb036
JB
122702014-02-10 Joel Brobecker <brobecker@adacore.com>
12271
12272 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
12273 returned by the 'Length attribute to integer.
12274
9dee8cc6
JB
122752014-02-10 Joel Brobecker <brobecker@adacore.com>
12276
12277 * ada-lang.c (_initialize_ada_language): Initialize
12278 cache_space obstack.
12279
3d9434b5
JB
122802014-02-10 Joel Brobecker <brobecker@adacore.com>
12281
12282 * ada-lang.c (HASH_SIZE): New macro.
12283 (struct cache_entry): New type.
12284 (cache_space, cache): New static globals.
12285 (ada_clear_symbol_cache, find_entry): New functions.
12286 (lookup_cached_symbol, cache_symbol): Implement.
12287 (ada_new_objfile_observer, ada_free_objfile_observer): New.
12288 (_initialize_ada_language): Attach ada_new_objfile_observer
12289 and ada_free_objfile_observer.
12290
f0c5f9b2
JB
122912014-02-10 Joel Brobecker <brobecker@adacore.com>
12292
12293 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
12294 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
12295 struct block * parameter.
12296 (ada_lookup_symbol_list_worker): Constify local variable "block".
12297 Remove cast which is no longer necessary.
12298
ed3ef339
DE
122992014-02-10 Doug Evans <xdje42@gmail.com>
12300
12301 Add Guile as an extension language.
12302 * NEWS: Mention Guile scripting.
12303 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
12304 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
12305 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
12306 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
12307 (CLIBS): Add GUILE_LIBS.
12308 (install-guile): New rule.
12309 (guile.o): New rule.
12310 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
12311 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
12312 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
12313 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
12314 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
12315 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
12316 (scm-type.o, scm-utils.o, scm-value.o): New rules.
12317 * configure.ac: New option --with-guile.
12318 * configure: Regenerate.
12319 * config.in: Regenerate.
12320 * auto-load.c: Remove #include "python/python.h". Add #include
12321 "gdb/section-scripts.h".
12322 (source_section_scripts): Handle Guile scripts.
12323 (_initialize_auto_load): Add name of Guile objfile script to
12324 scripts-directory help text.
12325 * breakpoint.c (condition_command): Tweak comment to include Scheme.
12326 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
12327 (struct breakpoint): New member scm_bp_object.
12328 * defs.h (enum command_control_type): New value guile_control.
12329 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
12330 "extension.h".
12331 (show_user): Update comment.
12332 (_initialize_cli_cmds): Update help text for "show user". Update help
12333 text for max-user-call-depth.
12334 * cli/cli-script.c: Remove #include "python/python.h". Add #include
12335 "extension.h".
12336 (multi_line_command_p): Add guile_control.
12337 (print_command_lines): Handle guile_control.
12338 (execute_control_command, recurse_read_control_structure): Ditto.
12339 (process_next_line): Recognize "guile" commands.
12340 * disasm.c (gdb_disassemble_info): Make non-static.
12341 * disasm.h: #include "dis-asm.h".
12342 (struct gdbarch): Add forward decl.
12343 (gdb_disassemble_info): Declare.
12344 * extension.c: #include "guile/guile.h".
12345 (extension_languages): Add guile.
12346 (get_ext_lang_defn): Handle EXT_LANG_GDB.
12347 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
12348 * gdbtypes.c (get_unsigned_type_max): New function.
12349 (get_signed_type_minmax): New function.
12350 * gdbtypes.h (get_unsigned_type_max): Declare.
12351 (get_signed_type_minmax): Declare.
12352 * guile/README: New file.
12353 * guile/guile-internal.h: New file.
12354 * guile/guile.c: New file.
12355 * guile/guile.h: New file.
12356 * guile/scm-arch.c: New file.
12357 * guile/scm-auto-load.c: New file.
12358 * guile/scm-block.c: New file.
12359 * guile/scm-breakpoint.c: New file.
12360 * guile/scm-disasm.c: New file.
12361 * guile/scm-exception.c: New file.
12362 * guile/scm-frame.c: New file.
12363 * guile/scm-gsmob.c: New file.
12364 * guile/scm-iterator.c: New file.
12365 * guile/scm-lazy-string.c: New file.
12366 * guile/scm-math.c: New file.
12367 * guile/scm-objfile.c: New file.
12368 * guile/scm-ports.c: New file.
12369 * guile/scm-pretty-print.c: New file.
12370 * guile/scm-safe-call.c: New file.
12371 * guile/scm-string.c: New file.
12372 * guile/scm-symbol.c: New file.
12373 * guile/scm-symtab.c: New file.
12374 * guile/scm-type.c: New file.
12375 * guile/scm-utils.c: New file.
12376 * guile/scm-value.c: New file.
12377 * guile/lib/gdb.scm: New file.
12378 * guile/lib/gdb/boot.scm: New file.
12379 * guile/lib/gdb/experimental.scm: New file.
12380 * guile/lib/gdb/init.scm: New file.
12381 * guile/lib/gdb/iterator.scm: New file.
12382 * guile/lib/gdb/printing.scm: New file.
12383 * guile/lib/gdb/types.scm: New file.
12384 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
12385 (VPATH): Add $(GUILE_SRCDIR).
12386 (GUILE_DIR): New variable.
12387 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
12388 (all): Add stamp-guile dependency.
12389 (stamp-guile): New rule.
12390 (clean-guile, install-guile, uninstall-guile): New rules.
12391 (install-only): Add install-guile dependency.
12392 (uninstall): Add uninstall-guile dependency.
12393 (clean): Add clean-guile dependency.
12394
ac020ec5
DE
123952014-02-09 Doug Evans <xdje42@gmail.com>
12396
12397 Revert this patch (which I approved, mea culpa).
12398
12399 2014-02-08 Mark Kettenis <kettenis@gnu.org>
12400
12401 * Makefile.in (all-lib): Remove.
12402 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12403
2a081c59
JK
124042014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
12405
12406 Fix Python stack corruption.
12407 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
12408 gdb_py_longest.
12409
0a6bd22d
MK
124102014-02-08 Mark Kettenis <kettenis@gnu.org>
12411
12412 * Makefile.in (all-lib): Remove.
12413 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12414
1a860409
DE
124152014-02-07 Doug Evans <dje@google.com>
12416
12417 * extension-priv.h (extension_language_script_ops): Add comment.
12418 (extension_language_ops): Add comment.
caf5a491 12419 (active_ext_lang_state): Fix typo in comment.
1a860409 12420
d137e6dc
PA
124212014-02-07 Pedro Alves <palves@redhat.com>
12422
0dcb32c3 12423 PR breakpoints/16292
d137e6dc
PA
12424 * infrun.c (handle_signal_stop) <signal arrives while stepping
12425 over a breakpoint>: Switch back to the stepping thread.
12426
ce6d0892
YQ
124272014-02-07 Yao Qi <yao@codesourcery.com>
12428
12429 * target.c (target_xfer_partial): Return zero if LEN is zero.
12430
2ed4b548
YQ
124312014-02-07 Yao Qi <yao@codesourcery.com>
12432
12433 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
12434 (ld_so_xfer_auxv): Likewise.
12435 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12436 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12437 * corelow.c (core_xfer_partial): Likewise.
12438 * ctf.c (ctf_xfer_partial): Likewise.
12439 * darwin-nat.c (darwin_read_dyld_info): Likewise.
12440 (darwin_xfer_partial): Likewise.
12441 * exec.c (exec_xfer_partial): Likewise.
12442 * gnu-nat.c (gnu_xfer_partial): Likewise.
12443 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
12444 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
12445 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
12446 * linux-nat.c (linux_xfer_siginfo): Likewise.
12447 (linux_proc_xfer_spu): Likewise.
12448 * procfs.c (procfs_xfer_partial): Likewise.
12449 * record-full.c (record_full_xfer_partial): Likewise.
12450 (record_full_core_xfer_partial): Likewise.
12451 * remote-sim.c (gdbsim_xfer_partial): Likewise.
12452 * remote.c (remote_write_qxfer): Likewise.
12453 (remote_write_qxfer, remote_read_qxfer): Likewise.
12454 (remote_xfer_partial): Likewise.
12455 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12456 (rs6000_xfer_shared_libraries): Likewise.
12457 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12458 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12459 (spu_xfer_partial): Likewise.
12460 * target.c (memory_xfer_partial_1): Likewise.
12461 * tracepoint.c (tfile_xfer_partial): Likewise.
12462 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
12463 (windows_xfer_partial): Likewise.
12464
c09f20e4
YQ
124652014-02-07 Yao Qi <yao@codesourcery.com>
12466
12467 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
12468 comments.
12469 (core_xfer_shared_libraries_aix): Likewise.
12470 * gdbarch.c, gdbarch.h: Regenerated.
12471 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
12472 ULONGEST. Change 'len_avail' type to ULONGEST.
12473 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12474 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12475 declaration.
12476 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
12477
8635b3bf
YQ
124782014-02-07 Yao Qi <yao@codesourcery.com>
12479
12480 * corefile.c (memory_error): Get 'exception' from ERR and pass
12481 'exception' to throw_error.
12482
6dddc817
DE
124832014-02-06 Doug Evans <xdje42@gmail.com>
12484
12485 * configure.ac (libpython checking): Remove all but python.o from
12486 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
12487 * configure: Regenerate.
12488
12489 * Makefile.in (SFILES): Add extension.c.
12490 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
12491 (COMMON_OBS): Add extension.o.
12492 * extension.h: New file.
12493 * extension-priv.h: New file.
12494 * extension.c: New file.
12495
12496 * python/python-internal.h: #include "extension.h".
12497 (gdbpy_auto_load_enabled): Declare.
12498 (gdbpy_apply_val_pretty_printer): Declare.
12499 (gdbpy_apply_frame_filter): Declare.
12500 (gdbpy_preserve_values): Declare.
12501 (gdbpy_breakpoint_cond_says_stop): Declare.
12502 (gdbpy_breakpoint_has_cond): Declare.
12503 (void source_python_script_for_objfile): Delete.
12504 * python/python.c: #include "extension-priv.h".
12505 Delete inclusion of "observer.h".
12506 (extension_language_python): Moved here and renamed from
12507 script_language_python in py-auto-load.c.
12508 Redefined to be of type extension_language_defn.
12509 (python_extension_script_ops): New global.
12510 (python_extension_ops): New global.
12511 (struct python_env): New member previous_active.
12512 (restore_python_env): Call restore_active_ext_lang.
12513 (ensure_python_env): Call set_active_ext_lang.
12514 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
12515 New arg extlang.
12516 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
12517 New arg extlang.
12518 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
12519 New arg extlang.
12520 (gdbpy_eval_from_control_command): Renamed from
12521 eval_python_from_control_command, made static. New arg extlang.
12522 (gdbpy_source_script) Renamed from source_python_script, made static.
12523 New arg extlang.
12524 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
12525 result to int. New arg extlang.
12526 (gdbpy_source_objfile_script): Renamed from
12527 source_python_script_for_objfile, made static. New arg extlang.
12528 (gdbpy_start_type_printers): Renamed from start_type_printers, made
12529 static. New args extlang, extlang_printers. Change result type to
12530 "void".
12531 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
12532 static. New arg extlang. Rename arg printers to extlang_printers
12533 and change type to ext_lang_type_printers *.
12534 (gdbpy_free_type_printers): Renamed from free_type_printers, made
12535 static. Replace argument arg with extlang, extlang_printers.
12536 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
12537 (!HAVE_PYTHON, source_python_script): Delete.
12538 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
12539 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
12540 (!HAVE_PYTHON, start_type_printers): Delete.
12541 (!HAVE_PYTHON, apply_type_printers): Delete.
12542 (!HAVE_PYTHON, free_type_printers): Delete.
12543 (_initialize_python): Delete call to observer_attach_before_prompt.
12544 (finalize_python): Set/restore active extension language.
12545 (gdbpy_finish_initialization) Renamed from
12546 finish_python_initialization, made static. New arg extlang.
12547 (gdbpy_initialized): New function.
12548 * python/python.h: #include "extension.h". Delete #include
12549 "value.h", "mi/mi-cmds.h".
12550 (extension_language_python): Declare.
12551 (GDBPY_AUTO_FILE_NAME): Delete.
12552 (enum py_bt_status): Moved to extension.h and renamed to
12553 ext_lang_bt_status.
12554 (enum frame_filter_flags): Moved to extension.h.
12555 (enum py_frame_args): Moved to extension.h and renamed to
12556 ext_lang_frame_args.
12557 (finish_python_initialization): Delete.
12558 (eval_python_from_control_command): Delete.
12559 (source_python_script): Delete.
12560 (apply_val_pretty_printer): Delete.
12561 (apply_frame_filter): Delete.
12562 (preserve_python_values): Delete.
12563 (gdbpy_script_language_defn): Delete.
12564 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
12565 (start_type_printers, apply_type_printers, free_type_printers): Delete.
12566
12567 * auto-load.c: #include "extension.h".
12568 (GDB_AUTO_FILE_NAME): Delete.
12569 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
12570 (script_language_gdb): Delete, moved to extension.c and renamed to
12571 extension_language_gdb.
12572 (source_gdb_script_for_objfile): Delete.
12573 (auto_load_pspace_info): New member unsupported_script_warning_printed.
12574 (loaded_script): Change type of language member to
12575 struct extension_language_defn *.
12576 (init_loaded_scripts_info): Initialize
12577 unsupported_script_warning_printed.
12578 (maybe_add_script): Make static. Change type of language arg to
12579 struct extension_language_defn *.
12580 (clear_section_scripts): Reset unsupported_script_warning_printed.
12581 (auto_load_objfile_script_1): Rewrite to use extension language API.
12582 (auto_load_objfile_script): Make public. Remove support-compiled-in
12583 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
12584 (source_section_scripts): Rewrite to use extension language API.
12585 (load_auto_scripts_for_objfile): Rewrite to use
12586 auto_load_scripts_for_objfile.
12587 (collect_matching_scripts_data): Change type of language member to
12588 struct extension_language_defn *.
12589 (auto_load_info_scripts): Change type of language arg to
12590 struct extension_language_defn *.
12591 (unsupported_script_warning_print): New function.
12592 (script_not_found_warning_print): Make static.
12593 (_initialize_auto_load): Rewrite construction of scripts-directory
12594 help.
12595 * auto-load.h (struct objfile): Add forward decl.
12596 (struct script_language): Delete.
12597 (struct auto_load_pspace_info): Add forward decl.
12598 (struct extension_language_defn): Add forward decl.
12599 (maybe_add_script): Delete.
12600 (auto_load_objfile_script): Declare.
12601 (script_not_found_warning_print): Delete.
12602 (auto_load_info_scripts): Update prototype.
12603 (auto_load_gdb_scripts_enabled): Declare.
12604 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
12605 auto_load_python_scripts_enabled and made public.
12606 (script_language_python): Delete, moved to python.c.
12607 (gdbpy_script_language_defn): Delete.
12608 (info_auto_load_python_scripts): Update to use
12609 extension_language_python.
12610
12611 * breakpoint.c (condition_command): Replace call to
12612 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
12613 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
12614 with call to breakpoint_ext_lang_cond_says_stop.
12615 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
12616 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
12617 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
12618 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
12619 New arg slang.
12620 (local_setattro): Print name of extension language with existing
12621 stop condition.
12622
12623 * valprint.c (val_print, value_print): Update to call
12624 apply_ext_lang_val_pretty_printer.
12625 * cp-valprint.c (cp_print_value): Update call to
12626 apply_ext_lang_val_pretty_printer.
12627 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
12628 (gdbpy_apply_val_pretty_printer): Renamed from
12629 apply_val_pretty_printer. New arg extlang.
12630 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
12631
12632 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
12633 extension language API.
12634 * cli/cli-script.c (execute_control_command): Update to call
12635 eval_ext_lang_from_control_command.
12636
12637 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
12638 enum ext_lang_bt_status values. Update call to
12639 apply_ext_lang_frame_filter.
12640 (mi_cmd_stack_list_locals): Ditto.
12641 (mi_cmd_stack_list_args): Ditto.
12642 (mi_cmd_stack_list_variables): Ditto.
12643 * mi/mi-main.c: Delete #include "python/python-internal.h".
12644 Add #include "extension.h".
12645 (mi_cmd_list_features): Replace reference to python internal variable
12646 gdb_python_initialized with call to ext_lang_initialized_p.
12647
12648 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
12649 Update to use enum ext_lang_frame_args. Update to call
12650 apply_ext_lang_frame_filter.
12651 * python/py-framefilter.c (extract_sym): Update to use enum
12652 ext_lang_bt_status.
12653 (extract_value, py_print_type, py_print_value): Ditto.
12654 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
12655 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
12656 (py_print_frame): Ditto.
12657 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
12658 New arg extlang. Update to use enum ext_lang_bt_status.
12659
12660 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
12661 finish_python_initialization. Replace with call to
12662 finish_ext_lang_initialization.
12663
12664 * typeprint.c (do_free_global_table): Update to call
12665 free_ext_lang_type_printers.
12666 (create_global_typedef_table): Update to call
12667 start_ext_lang_type_printers.
12668 (find_global_typedef): Update to call apply_ext_lang_type_printers.
12669 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
12670 (type_print_options): Change type of global_printers from "void *"
12671 to "struct ext_lang_type_printers *".
12672
12673 * value.c (preserve_values): Update to call preserve_ext_lang_values.
12674 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
12675 (gdbpy_preserve_values): Renamed from preserve_python_values.
12676 New arg extlang.
12677 (!HAVE_PYTHON, preserve_python_values): Delete.
12678
12679 * utils.c (quit_flag): Delete, moved to extension.c.
12680 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
12681 extension.c.
12682
12683 * eval.c: Delete #include "python/python.h".
12684 * main.c: Delete #include "python/python.h".
12685
12686 * defs.h: Update comment.
12687
6af79985
JB
126882014-02-06 Joel Brobecker <brobecker@adacore.com>
12689
12690 GDB 7.7 released.
12691
12c5175d
MK
126922014-02-05 Mark Kettenis <kettenis@gnu.org>
12693
12694 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
12695 defined.
12696
8dc5b319
YQ
126972014-02-05 Yao Qi <yao@codesourcery.com>
12698
12699 * remote.c (remote_pass_signals): Remove local 'buf' and use
12700 rs->buf.
12701 (remote_program_signals): Likewise.
12702
de7b2893
YQ
127032014-02-05 Yao Qi <yao@codesourcery.com>
12704
12705 * ctf.c: Include "inferior.h" and "gdbthread.h".
12706 (CTF_PID): A new macro.
12707 (ctf_open): Call inferior_appeared and add_thread_silent.
12708 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
12709 (ctf_thread_alive): New function.
12710 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
12711
66d032ac
YQ
127122014-02-05 Yao Qi <yao@codesourcery.com>
12713
12714 Revert this patch:
12715
12716 2013-05-24 Yao Qi <yao@codesourcery.com>
12717
12718 * tracepoint.c (TFILE_PID): Remove.
12719 (tfile_open): Don't add thread and inferior.
12720 (tfile_close): Don't set 'inferior_ptid'. Don't call
12721 exit_inferior_silent.
12722 (tfile_thread_alive): Remove.
12723 (init_tfile_ops): Don't set field 'to_thread_alive' of
12724 tfile_ops.
12725
f4ccffad
CE
127262014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
12727
12728 * remote.c (remote_start_remote): Call remote_check_symbols even
12729 if only symbol-file (not file) has been given.
12730
591a12a1
UW
127312014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12732
12733 * gdbarch.sh (skip_entrypoint): New callback.
12734 * gdbarch.c, gdbarch.h: Regenerate.
12735 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
12736 * infrun.c (fill_in_stop_func): Likewise.
12737 * ppc-linux-tdep.c: Include "elf/ppc64.h".
12738 (ppc_elfv2_elf_make_msymbol_special): New function.
12739 (ppc_elfv2_skip_entrypoint): Likewise.
12740 (ppc_linux_init_abi): Install them for ELFv2.
12741
cc0e89c5
UW
127422014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12743
12744 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
12745 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
12746 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
12747 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
12748 structures returned in GPRs.
12749
52f548e4
UW
127502014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12751
12752 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
12753 offset to the stack parameter list for the ELFv2 ABI.
12754
d4094b6a
UW
127552014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12756
12757 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
12758 set_gdbarch_convert_from_func_ptr_addr and
12759 set_gdbarch_elf_make_msymbol_special for ELFv1.
12760 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
12761 function descriptors on ELFv1.
12762 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
12763 set up r12 at function entry.
12764
cd453cd0
UW
127652014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12766
12767 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
12768 (struct gdbarch_tdep): New member elf_abi.
12769
12770 * rs6000-tdep.c: Include "elf/ppc64.h".
12771 (rs6000_gdbarch_init): Detect ELF ABI version.
12772
0ff3e01f
UW
127732014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12774
12775 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
12776 within a register pair holding a DFP 128-bit value on little-endian.
12777 (ppc64_sysv_abi_return_value_base): Likewise.
12778 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
12779 (dfp_pseudo_register_write): Likewise.
12780
5b757e5d
UW
127812014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12782
12783 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
12784 offset on little-endian when passing _Decimal32.
12785 (ppc64_sysv_abi_return_value_base): Likewise for return values.
12786
084ee545
UW
127872014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12788
12789 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
12790 of the overlapped FP register within the VSX register on little-
12791 endian platforms.
12792 (efpr_pseudo_register_write): Likewise.
12793
d63167af
UW
127942014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12795
12796 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
12797 offset on little-endian when passing small structures.
12798
e765b44c
UW
127992014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12800
12801 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
12802 (struct ppc64_sysv_argpos): New data structure.
12803 (ppc64_sysv_abi_push_float): Remove.
12804 (ppc64_sysv_abi_push_val): New function.
12805 (ppc64_sysv_abi_push_integer): Likewise.
12806 (ppc64_sysv_abi_push_freg): Likewise.
12807 (ppc64_sysv_abi_push_vreg): Likewise.
12808 (ppc64_sysv_abi_push_param): Likewise.
12809 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
12810 (ppc64_sysv_abi_return_value_base): New function.
12811 (ppc64_sysv_abi_return_value): Refactor to use it.
12812
36c24d95
UW
128132014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12814
12815 * NEWS: Document new target powerpc64le-*-linux*.
12816
26fd9228
MK
128172014-02-04 Mark Kettenis <kettenis@gnu.org>
12818
12819 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
12820 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
12821 core dumps.
12822 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
12823 register set used in ELF core dumps. Add floating-point register set.
12824
c5bb7362
KB
128252014-02-03 Kevin Buettner <kevinb@redhat.com>
12826
74228e77 12827 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
c5bb7362
KB
12828 dwarf2_to_gdb[] table using symbolic constants. Adjust
12829 penultimate entry from number representing the PC register
12830 to symbolic constant representing the MDR register. Add
12831 constant for the PC register to the end of the table.
12832
af09351e
MK
128332014-02-03 Mark Kettenis <kettenis@gnu.org>
12834
12835 * bsd-kvm.c: Include <sys/param.h>
12836
8507e05d
MK
128372014-02-03 Mark Kettenis <kettenis@gnu.org>
12838
12839 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
12840
ae56bfb8
JB
128412014-01-31 Joel Brobecker <brobecker@adacore.com>
12842
12843 * ada-lang.h (clear_ada_sym_cache): Delete.
12844
718ee4dc
UW
128452014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
12846
12847 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
12848
401e27fd
JM
128492014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
12850
12851 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
12852 the sigreturn register save area only if the syscall is
12853 sigreturn.
12854
a7c88acd
JB
128552014-01-29 Joel Brobecker <brobecker@adacore.com>
12856
12857 * valops.c (value_slice): Minor reformatting.
12858
fa0079ea
UW
128592014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
12860
12861 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
12862
c6044dd1
JB
128632014-01-28 Joel Brobecker <brobecker@adacore.com>
12864
12865 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
12866 New static globals.
12867 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
12868 (ada_ignore_descriptive_types_p): New static global.
12869 (find_parallel_type_by_descriptive_type): Return immediately
12870 if ada_ignore_descriptive_types_p is set.
12871 (_initialize_ada_language): Register new commands "maintenance
12872 set ada", "maintenance show ada", "maintenance set ada
12873 ignore-descriptive-types" and "maintenance show ada
12874 ignore-descriptive-types".
12875 * NEWS: Add entry for new "maint ada set/show
12876 ignore-descriptive-types" commands.
12877
568e808b
MM
128782014-01-27 Markus Metzger <markus.t.metzger@intel.com>
12879
12880 * record-btrace.c (record_btrace_close): Call btrace_teardown
12881 for all threads.
12882
467d141b
JB
128832014-01-27 Joel Brobecker <brobecker@adacore.com>
12884
12885 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
12886 "ui-out.h".
12887
fb151210
JB
128882014-01-27 Joel Brobecker <brobecker@adacore.com>
12889
12890 * ada-typeprint (type_is_full_subrange_of_target_type):
12891 New function.
12892 (print_range): Add parameter bounds_prefered_p. If not set,
12893 try printing range types using the name of their base type.
12894 (print_range_type): Add parameter bounds_prefered_p.
12895 Use it in call to print_range.
12896 (print_array_type, ada_print_type): Update calls to print_range
12897 and print_range_type.
12898
aba02109
JB
128992014-01-27 Joel Brobecker <brobecker@adacore.com>
12900
12901 * ada-typeprint.c (print_array_type, print_choices, print_range)
12902 (print_range_bound, print_dynamic_range_bound, print_range_type):
12903 Remove declaration.
12904
e62e21fd
JB
129052014-01-27 Joel Brobecker <brobecker@adacore.com>
12906
12907 * ada-typeprint.c (print_range): Add missing empty line
12908 after local declaration.
12909
859cf5d1
JB
129102014-01-27 Joel Brobecker <brobecker@adacore.com>
12911
12912 * ada-valprint.c (print_optional_low_bound): Get index_type's
12913 target type for as long as it is a TYPE_CODE_RANGE.
12914
25790f6f
JB
129152014-01-27 Joel Brobecker <brobecker@adacore.com>
12916
12917 * procfs.c (procfs_make_note_section): Remove assertion and
12918 associated comment.
12919
6b6aa828
YQ
129202014-01-24 Yao Qi <yao@codesourcery.com>
12921
12922 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
12923 * corelow.c (get_core_siginfo): Likewise.
12924
5d6df423
YQ
129252014-01-24 Yao Qi <yao@codesourcery.com>
12926
12927 * remote.c (remote_write_bytes_aux): Change type of 'len' to
12928 ULONGEST. Don't check 'len' is negative.
12929 (remote_write_bytes): Change type of 'len' to ULONGEST.
12930
83b645b8
TT
129312014-01-23 Tom Tromey <tromey@redhat.com>
12932
12933 PR python/16485:
12934 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
12935 Handle exception from frame.block.
12936 (FrameVars.fetch_frame_locals): Likewise.
12937
0740f8d8
TT
129382014-01-23 Tom Tromey <tromey@redhat.com>
12939
12940 PR python/16487:
12941 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
12942 on a NULL pointer. Move "goto error" to correct place.
12943
21909fa1
TT
129442014-01-23 Tom Tromey <tromey@redhat.com>
12945
12946 PR python/16491:
12947 * python/py-framefilter.c (apply_frame_filter): Call
12948 ensure_python_env after computing gdbarch.
12949
17fde6d0
YQ
129502014-01-23 Yao Qi <yao@codesourcery.com>
12951
12952 * target.c (raw_memory_xfer_partial): Change argument type
12953 from void * to gdb_byte *.
12954 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
12955
87ce2a04
DE
129562014-01-22 Doug Evans <dje@google.com>
12957
12958 New gdbserver option --debug-format=timestamp.
12959 * NEWS: Mention it.
12960
237b092b
AA
129612014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
12962
12963 * syscalls/s390x-linux.xml: New file.
12964 * syscalls/s390-linux.xml: New file.
12965 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
12966 (XML_SYSCALL_FILENAME_S390X): Likewise.
12967 (op_svc): New enum value for SVC opcode.
12968 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
12969 (s390_linux_get_syscall_number): New function.
12970 (s390_gdbarch_init): Register '*get_syscall_number' and the
12971 syscall xml file name.
12972 * data-directory/Makefile.in (SYSCALLS_FILES): Add
12973 "s390-linux.xml" and "s390x-linux.xml".
12974 * NEWS: Announce new feature.
12975
54bff650
BS
129762014-01-22 Baruch Siach <baruch@tkos.co.il>
12977
12978 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
12979
14e361d7
PA
129802014-01-22 Pedro Alves <palves@redhat.com>
12981
12982 * xtensa-config.c: Include defs.h.
12983
46bbb3ed
JB
129842014-01-22 Joel Brobecker <brobecker@adacore.com>
12985
12986 * common/common-utils.h: Add "ARI:" comment beside __func__
12987 reference.
12988
3a80edfc
JB
129892014-01-22 Joel Brobecker <brobecker@adacore.com>
12990
12991 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
12992 documentation a bit.
12993
4869db5e
RM
129942014-01-21 Roland McGrath <mcgrathr@google.com>
12995
12996 * configure.ac: Call AM_PROG_INSTALL_STRIP.
12997 * configure: Regenerate.
12998 * aclocal.m4: Regenerate.
12999 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
13000 New substituted variables.
13001 (install-strip): New target.
13002 (INSTALL_SCRIPT): New substituted variable.
13003 (FLAGS_TO_PASS): Add it.
13004 (install-only): Use $(INSTALL_SCRIPT) rather than
13005 $(INSTALL_PROGRAM) for gcore.
13006
9ea4267d
TT
130072014-01-20 Tom Tromey <tromey@redhat.com>
13008
13009 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
13010 together.
13011
1f2bdf09
TT
130122014-01-20 Tom Tromey <tromey@redhat.com>
13013
13014 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
13015 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
13016 (deprecated_cmd_warning, complete_on_cmdlist): Update.
13017 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
13018 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
13019 (struct cmd_list_element) <flags>: Remove.
13020 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
13021 doc_allocated>: New fields.
13022 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
13023 bitfields.
13024 * maint.c (maintenance_do_deprecate): Update.
13025 * top.c (execute_command): Update.
13026
e671835b
BS
130272014-01-20 Baruch Siach <baruch@tkos.co.il>
13028
13029 * xtensa-linux-nat.c: Include asm/ptrace.h.
13030
50367cd2
IB
130312014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13032
13033 * Makefile.in (SFILES): Add d-support.c.
13034 (COMMON_OBS): Add d-support.o.
13035 * d-lang.h (d_parse_symbol): Add comment, now defined in
13036 d-support.c.
13037 * d-lang.c (parse_call_convention)
13038 (parse_attributes, parse_function_types)
13039 (parse_function_args, parse_type, parse_identifier)
13040 (call_convention_p, d_parse_symbol): Move functions to ...
13041 * d-support.c: ... New file.
13042
ec9f644a
IB
130432014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13044
13045 * d-lang.h (d_parse_symbol): Add declaration.
13046 * d-lang.c (extract_identifiers)
13047 (extract_type_info): Remove functions.
13048 (parse_call_convention, parse_attributes)
13049 (parse_function_types, parse_function_args)
13050 (parse_type, parse_identifier, call_convention_p)
13051 (d_parse_symbol): New functions.
13052 (d_demangle): Use d_parse_symbol to demangle D symbols.
13053
94b1b47e
IB
130542014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13055
13056 * d-lang.h (struct builtin_d_type): New data type.
13057 (builtin_d_type): Add declaration.
13058 * d-lang.c (d_language_arch_info, build_d_types)
13059 (builtin_d_type): New functions.
13060 (enum d_primitive_types): New data type.
13061 (d_language_defn): Change c_language_arch_info to
13062 d_language_arch_info.
13063 (d_type_data): New static variable.
13064 (_initialize_d_language): Initialize d_type_data.
13065
63778547
IB
130662014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13067
13068 * d-lang.h (d_main_name): Add declaration.
13069 * d-lang.c (d_main_name): New function.
13070 * symtab.c (find_main_name): Add call to d_main_name.
13071
3271ba66
IB
130722014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13073
13074 * d-lang.c (d_language_defn): Change macro_expansion_c to
13075 macro_expansion_no.
13076
d36b3012
IB
130772014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13078
13079 * MAINTAINERS: Add myself as a write-after-approval maintainer.
13080
c90a6fb7
SDJ
130812014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
13082
13083 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
13084 gdb_exception" declaration.
13085 * remote.c (getpkt_or_notif_sane): Likewise.
13086
749234e5
DE
130872014-01-17 Doug Evans <dje@google.com>
13088
13089 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
13090 function, contents of dirnames_to_char_ptr_vec_append moved here.
13091 (delim_string_to_char_ptr_vec): New function.
13092 (dirnames_to_char_ptr_vec_append): Rewrite.
13093 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
13094
df049a58
DE
130952014-01-17 Doug Evans <dje@google.com>
13096
13097 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
13098 and moved here ...
13099 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
13100 #include "common-utils.h".
13101 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
13102 * common/vec.h (VEC_ASSERT_PASS): Update.
13103 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
13104 (MACH_CHECK_ERROR): Update.
13105
69f97648
SM
131062014-01-17 Simon Marchi <simon.marchi@ericsson.com>
13107
13108 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
13109 comments.
13110 * gdbarch.h: Regenerate.
13111
98b1cfdc
TT
131122014-01-16 Tom Tromey <tromey@redhat.com>
13113
13114 * value.c (struct value) <regnum>: Move earlier.
13115
77a19445
TT
131162014-01-16 Tom Tromey <tromey@redhat.com>
13117
13118 * remote.c (extended_remote_create_inferior): Rename from
13119 extended_remote_create_inferior_1. Add "ops" argument. Remove
13120 old implementation.
13121
62261490
PA
131222014-01-16 Pedro Alves <palves@redhat.com>
13123
13124 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
13125 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
13126 the backchain.
13127
4d65956b
DE
131282014-01-16 Doug Evans <dje@google.com>
13129
13130 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
13131
52834460
MM
131322014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13133
13134 * btrace.h (btrace_thread_flag): New.
13135 (struct btrace_thread_info) <flags>: New.
13136 * record-btrace.c (record_btrace_resume_thread)
13137 (record_btrace_find_thread_to_move, btrace_step_no_history)
13138 (btrace_step_stopped, record_btrace_start_replaying)
13139 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
13140 (record_btrace_find_resume_thread): New.
13141 (record_btrace_resume, record_btrace_wait): Extend.
13142 (record_btrace_can_execute_reverse): New.
13143 (record_btrace_open): Fail in non-stop mode.
13144 (record_btrace_set_replay): Split into this, ...
13145 (record_btrace_stop_replaying): ... this, ...
13146 (record_btrace_clear_histories): ... and this.
13147 (init_record_btrace_ops): Init to_can_execute_reverse.
13148 * NEWS: Announce it.
13149
118e6252
MM
131502014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13151
13152 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
13153 (forward_target_decr_pc_after_break)
13154 (target_decr_pc_after_break): New.
13155 * target.c (forward_target_decr_pc_after_break)
13156 (target_decr_pc_after_break): New.
13157 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
13158 instead of gdbarch_decr_pc_after_break.
13159 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
13160 instead of gdbarch_decr_pc_after_break.
13161 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
13162 instead of gdbarch_decr_pc_after_break.
13163 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
13164 instead of gdbarch_decr_pc_after_break.
13165 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
13166 instead of gdbarch_decr_pc_after_break.
13167 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
13168 instead of gdbarch_decr_pc_after_break.
13169
6e07b1d2
MM
131702014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13171
13172 * btrace.c: Include regcache.h.
13173 (btrace_add_pc): New.
13174 (btrace_enable): Call btrace_add_pc.
13175 (btrace_is_empty): New.
13176 * btrace.h (btrace_is_empty): New.
13177 * record-btrace.c (require_btrace, record_btrace_info): Call
13178 btrace_is_empty.
13179
969c39fb
MM
131802014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13181
13182 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
13183 Support delta reads.
13184 (linux_disable_btrace): Change return type.
13185 * common/linux-btrace.h (linux_read_btrace): Change parameters
13186 and return type to allow error reporting. Update users.
13187 (linux_disable_btrace): Change return type. Update users.
13188 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
13189 New.
13190 (btrace_error): New.
13191 (btrace_block) <begin>: Comment on BEGIN == 0.
13192 * btrace.c (btrace_compute_ftrace): Start from the end of
13193 the current trace.
13194 (btrace_stitch_trace, btrace_clear_history): New.
13195 (btrace_fetch): Read delta trace, return if replaying.
13196 (btrace_clear): Move clear history code to btrace_clear_history.
13197 (parse_xml_btrace): Throw an error if parsing failed.
13198 * target.h (struct target_ops) <to_read_btrace>: Change parameters
13199 and return type to allow error reporting.
13200 (target_read_btrace): Change parameters and return type to allow
13201 error reporting.
13202 * target.c (target_read_btrace): Update.
13203 * remote.c (remote_read_btrace): Support delta reads. Pass
13204 errors on.
13205 * NEWS: Announce it.
13206
0b722aec
MM
132072014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13208
13209 * record.h (record_btrace_frame_unwind)
13210 (record_btrace_tailcall_frame_unwind): New declarations.
13211 * dwarf2-frame: Include record.h
13212 (dwarf2_frame_cfa): Throw an error for btrace frames.
13213 * record-btrace.c: Include hashtab.h.
13214 (btrace_get_bfun_name): New.
13215 (btrace_call_history): Call btrace_get_bfun_name.
13216 (struct btrace_frame_cache): New.
13217 (bfcache): New.
13218 (bfcache_hash, bfcache_eq, bfcache_new): New.
13219 (btrace_get_frame_function): New.
13220 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
13221 (record_btrace_frame_this_id): Compute own id.
13222 (record_btrace_frame_prev_register): Provide PC, throw_error
13223 for all other registers.
13224 (record_btrace_frame_sniffer): Detect btrace frames.
13225 (record_btrace_tailcall_frame_sniffer): New.
13226 (record_btrace_frame_dealloc_cache): New.
13227 (record_btrace_frame_unwind): Add new functions.
13228 (record_btrace_tailcall_frame_unwind): New.
13229 (_initialize_record_btrace): Allocate cache.
13230 * btrace.c (btrace_clear): Call reinit_frame_cache.
13231 * NEWS: Announce it.
13232
066ce621
MM
132332014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13234
13235 * record-btrace.c (record_btrace_set_replay)
13236 (record_btrace_goto_begin, record_btrace_goto_end)
13237 (record_btrace_goto): New.
13238 (init_record_btrace_ops): Initialize them.
13239 * NEWS: Announce it.
13240
e2887aa3
MM
132412014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13242
13243 * record-btrace.c (record_btrace_find_new_threads)
13244 (record_btrace_thread_alive): New.
13245 (init_record_btrace_ops): Initialize to_find_new_threads and
13246 to_thread_alive.
13247
b2f4cfde
MM
132482014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13249
13250 * record-btrace.c (record_btrace_resume): New.
13251 (record_btrace_wait): New.
13252 (init_record_btrace_ops): Initialize to_wait and to_resume.
13253
633785ff
MM
132542014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13255
13256 * record-btrace.c (record_btrace_xfer_partial)
13257 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
13258 (record_btrace_allow_memory_access): New.
13259 (init_record_btrace_ops): Initialize new methods.
13260 * target.c (raw_memory_xfer_partial): Bail out if target reports
13261 that this memory is not available.
13262
3db08215
MM
132632014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13264
13265 * target.h (target_ops) <to_insert_breakpoint>
13266 <to_remove_breakpoint>: Add target_ops parameter.
13267 (forward_target_insert_breakpoint): New.
13268 (forward_target_remove_breakpoint): New.
13269 (memory_remove_breakpoint, memory_insert_breakpoint):
13270 Add target_ops parameter.
13271 * target.c (target_insert_breakpoint): Split into this and ...
13272 (forward_target_insert_breakpoint): ... this.
13273 (target_remove_breakpoint): Split into this and ...
13274 (forward_target_remove_breakpoint): ... this.
13275 (debug_to_insert_breakpoint): Add target_ops parameter.
13276 Call forward_target_insert_breakpoint.
13277 (debug_to_remove_breakpoint): Add target_ops parameter.
13278 Call forward_target_remove_breakpoint.
13279 (update_current_target): Do not inherit or default to_insert_breakpoint
13280 and to_remove_breakpoint.
13281 * corelow.c (ignore): Add target_ops parameter.
13282 * exec.c (ignore): Add target_ops parameter.
13283 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
13284 Add target_ops parameter.
13285 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
13286 Add target_ops parameter.
13287 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
13288 Add target_ops parameter.
13289 * record-full.c (record_full_beneath_to_insert_breakpoint)
13290 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
13291 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
13292 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
13293 (record_full_core_remove_breakpoint): Add target_ops parameter.
13294 Update users.
13295 (record_full_beneath_to_insert_breakpoint_ops)
13296 (record_full_beneath_to_remove_breakpoint_ops)
13297 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
13298 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
13299 tmp_to_remove_breakpoint_ops,
13300 record_full_beneath_to_insert_breakpoint_ops, and
13301 record_full_beneath_to_remove_breakpoint_ops.
13302 * remote-m32r-sdi.c (m32r_insert_breakpoint)
13303 (m32r_remove_breakpoint): Add target_ops parameter.
13304 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
13305 Add target_ops parameter.
13306 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
13307 Add target_ops parameter.
13308
cecac1ab
MM
133092014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13310 Markus Metzger <markus.t.metzger@intel.com>
13311
13312 * record-btrace.c: Include frame-unwind.h.
13313 (record_btrace_frame_unwind_stop_reason)
13314 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
13315 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
13316 New.
13317 (init_record_btrace_ops): Install it.
13318
824344ca
MM
133192014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13320
13321 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
13322 get_prev_frame_1.
13323
32261e52
MM
133242014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13325
13326 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
13327 earlier.
13328
ea001bdc
MM
133292014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13330
13331 * frame-unwind.c: Include target.h.
13332 (frame_unwind_try_unwinder): New function with code from ...
13333 (frame_unwind_find_by_frame): ... here. New variable
13334 unwinder_from_target, call also target_get_unwinder)
13335 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
13336 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
13337 * target.h (struct target_ops): New fields to_get_unwinder and
13338 to_get_tailcall_unwinder.
13339 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
13340
1f3ef581
MM
133412014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13342
13343 * record-btrace.c (record_btrace_fetch_registers)
13344 (record_btrace_store_registers)
13345 (record_btrace_to_prepare_to_store): New.
13346 (init_record_btrace_ops): Add the above.
13347
f32dbf8c
MM
133482014-01-16 Tom Tromey <tromey@redhat.com>
13349
13350 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
13351 * target.h (struct target_ops) <to_prepare_to_store>: Add
13352 argument.
13353 (target_prepare_to_store): Add argument.
13354 * target.c (debug_to_prepare_to_store): Add argument.
13355 (update_current_target): Update.
13356 * remote.c (remote_prepare_to_store): Add 'self' argument.
13357 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
13358 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
13359 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
13360 * record-full.c (record_full_core_prepare_to_store): Add 'self'
13361 argument.
13362 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
13363 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
13364 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
13365 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
13366 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
13367
07bbe694
MM
133682014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13369
13370 * btrace.h (replay) <replay>: New.
13371 (btrace_is_replaying): New.
13372 * btrace.c (btrace_clear): Free replay iterator.
13373 (btrace_is_replaying): New.
13374 * record-btrace.c (record_btrace_is_replaying): New.
13375 (record_btrace_info): Print insn number if replaying.
13376 (record_btrace_insn_history): Start at replay position.
13377 (record_btrace_call_history): Start at replay position.
13378 (init_record_btrace_ops): Init to_record_is_replaying.
13379
0688d04e
MM
133802014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13381
13382 * record-btrace.c (record_btrace_insn_history_range): Include
13383 end.
13384 (record_btrace_insn_history_from): Adjust range.
13385 (record_btrace_call_history_range): Include
13386 end.
13387 (record_btrace_call_history_from): Adjust range.
13388 * NEWS: Announce changes.
13389
8710b709
MM
133902014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13391
13392 * record.h (enum record_print_flag)
13393 <record_print_indent_calls>: New.
13394 * record.c (get_call_history_modifiers): Recognize /c modifier.
13395 (_initialize_record): Document /c modifier.
13396 * record-btrace.c (btrace_call_history): Add btinfo parameter.
13397 Reorder fields. Optionally indent the function name. Update
13398 all users.
13399 * NEWS: Announce changes.
13400
d0fa7535
MM
134012014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13402
13403 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
13404
5de9129b
MM
134052014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13406
13407 * btrace.c (ftrace_new_function): Start counting at one.
13408 * record-btrace.c (record_btrace_info): Adjust number of calls
13409 and insns.
13410 * NEWS: Announce it.
13411
7acbe133
MM
134122014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13413
13414 * record-btrace.c (btrace_call_history_insn_range): Print
13415 insn range as [begin, end].
13416
23a7fe75
MM
134172014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13418
13419 * btrace.h (struct btrace_func_link): New.
13420 (enum btrace_function_flag): New.
13421 (struct btrace_inst): Rename to ...
13422 (struct btrace_insn): ...this. Update all users.
13423 (struct btrace_func) <ibegin, iend>: Remove.
13424 (struct btrace_func_link): New.
13425 (struct btrace_func): Rename to ...
13426 (struct btrace_function): ...this. Update all users.
13427 (struct btrace_function) <segment, flow, up, insn, insn_offset)
13428 (number, level, flags>: New.
13429 (struct btrace_insn_iterator): Rename to ...
13430 (struct btrace_insn_history): ...this.
13431 Update all users.
13432 (struct btrace_insn_iterator, btrace_call_iterator): New.
13433 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
13434 (struct btrace_target_info) <begin, end, level>
13435 <insn_history, call_history>: New.
13436 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13437 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13438 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13439 (btrace_call_number, btrace_call_begin, btrace_call_end)
13440 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13441 (btrace_find_function_by_number, btrace_set_insn_history)
13442 (btrace_set_call_history): New.
13443 * btrace.c (btrace_init_insn_iterator)
13444 (btrace_init_func_iterator, compute_itrace): Remove.
13445 (ftrace_print_function_name, ftrace_print_filename)
13446 (ftrace_skip_file): Change
13447 parameter to const.
13448 (ftrace_init_func): Remove.
13449 (ftrace_debug): Use new btrace_function fields.
13450 (ftrace_function_switched): Also consider gaining and
13451 losing symbol information).
13452 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
13453 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
13454 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
13455 New.
13456 (ftrace_new_function): Move. Remove debug print.
13457 (ftrace_update_lines, ftrace_update_insns): New.
13458 (ftrace_update_function): Check for call, ret, and jump.
13459 (compute_ftrace): Renamed to ...
13460 (btrace_compute_ftrace): ...this. Rewritten to compute call
13461 stack.
13462 (btrace_fetch, btrace_clear): Updated.
13463 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13464 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13465 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13466 (btrace_call_number, btrace_call_begin, btrace_call_end)
13467 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13468 (btrace_find_function_by_number, btrace_set_insn_history)
13469 (btrace_set_call_history): New.
13470 * record-btrace.c (require_btrace): Use new btrace thread
13471 info fields.
13472 (record_btrace_info, btrace_insn_history)
13473 (record_btrace_insn_history, record_btrace_insn_history_range):
13474 Use new btrace thread info fields and new iterator.
13475 (btrace_func_history_src_line): Rename to ...
13476 (btrace_call_history_src_line): ...this. Use new btrace
13477 thread info fields.
13478 (btrace_func_history): Rename to ...
13479 (btrace_call_history): ...this. Use new btrace thread info
13480 fields and new iterator.
13481 (record_btrace_call_history, record_btrace_call_history_range):
13482 Use new btrace thread info fields and new iterator.
13483
8372a7cb
MM
134842014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13485
13486 * frame.h (frame_id_build_unavailable_stack_special): New.
13487 * frame.c (frame_id_build_unavailable_stack_special): New.
13488
c2170eef
MM
134892014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13490
13491 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
13492 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
13493 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
13494 to gdbarch.
13495 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
13496 (i386_insn_is_jump, i386_jmp_p): New.
13497 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
13498 insn_is_jump to gdbarch.
13499 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
13500 * gdbarch.h: Regenerated.
13501 * gdbarch.c: Regenerated.
13502 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
13503 (default_insn_is_jump): New.
13504 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
13505 (default_insn_is_jump): New.
13506
864089d2
MM
135072014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13508
13509 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
13510 Change to ...
13511 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
13512 (btrace_read_type) <btrace_read_new>: Change to ...
13513 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
13514
ed9edfb5
MM
135152014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13516
13517 * common/linux-btrace.c (linux_read_btrace): Free trace from
13518 previous iteration.
13519
fbcbc3fd
DE
135202014-01-15 Doug Evans <dje@google.com>
13521
13522 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
13523 uint32_t.
13524
3d548a53
TT
135252014-01-15 Tom Tromey <tromey@redhat.com>
13526
13527 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
13528 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
13529 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
13530 (set_objfile_main_name): New function.
13531 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
13532 language_of_main>: New fields.
13533 (set_objfile_main_name): Declare.
13534 * symtab.c (find_main_name): Loop over objfiles to find the main
13535 name and language.
13536 (set_main_name): Now static.
13537 (get_main_info): Add comment.
13538 * symtab.h (set_main_name): Don't declare.
13539
32ac0d11
TT
135402014-01-15 Tom Tromey <tromey@redhat.com>
13541
13542 * symtab.c (main_progspace_key): New global.
13543 (struct main_info): New.
13544 (name_of_main, language_of_main): Remove.
13545 (get_main_info, main_info_cleanup): New function.
13546 (set_main_name, main_name, main_language): Use get_main_info.
13547 (_initialize_symtab): Initialize main_progspace_key.
13548
9e6c82ad
TT
135492014-01-15 Tom Tromey <tromey@redhat.com>
13550
13551 * dbxread.c (process_one_symbol): Update.
13552 * dwarf2read.c (read_partial_die): Update.
13553 * symfile.c (set_initial_language): Call main_language.
13554 * symtab.c (language_of_main): Now static.
13555 (set_main_name): Add 'lang' parameter.
13556 (find_main_name): Update.
13557 (main_language): New function.
13558 (symtab_observer_executable_changed): Update.
13559 * symtab.h (set_main_name): Update.
13560 (language_of_main): Remove.
13561 (main_language): Declare.
13562
6ef55de7
TT
135632014-01-15 Tom Tromey <tromey@redhat.com>
13564
13565 * symfile.c (init_entry_point_info): Use new "initialized" field.
13566 Update.
13567 * objfiles.h (struct entry_point) <initialized>: New field.
13568 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
13569 (struct objfile) <ei>: ...here. Remove.
13570 * objfiles.c (entry_point_address_query): Update.
13571
53eddfa6
TT
135722014-01-15 Tom Tromey <tromey@redhat.com>
13573
13574 * objfiles.c (entry_point_address_query): Relocate entry point
13575 address.
13576 (objfile_relocate1): Do not relocate entry point address.
13577 * objfiles.h (struct entry_info) <entry_point>: Update comment.
13578 <the_bfd_section_index>: New field.
13579 * symfile.c (init_entry_point_info): Find the entry point's
13580 section.
13581
d56e56aa
TT
135822014-01-15 Tom Tromey <tromey@redhat.com>
13583
13584 * solib-frv.c (enable_break): Use entry_point_address_query.
13585
33a97bbe
OJ
135862014-01-15 Omair Javaid <omair.javaid@linaro.org>
13587
13588 * NEWS: Add note on improved process record-replay on
13589 arm*-linux* targets.
13590
c6ec2b30
OJ
135912014-01-15 Omair Javaid <omair.javaid@linaro.org>
13592
13593 * arm-tdep.c (enum arm_record_result): New enum.
13594 (arm_record_unsupported_insn): New function.
13595 (arm_record_coproc_data_proc): Removed.
13596 (thumb2_record_ld_st_multiple): New function.
13597 (thumb2_record_ld_st_dual_ex_tbb): New function.
13598 (thumb2_record_data_proc_sreg_mimm): New function.
13599 (thumb2_record_ps_dest_generic): New function.
13600 (thumb2_record_branch_misc_cntrl): New function.
13601 (thumb2_record_str_single_data): New function.
13602 (thumb2_record_ld_mem_hints): New function.
13603 (thumb2_record_ld_word): New function.
13604 (thumb2_record_lmul_lmla_div): New function.
13605 (thumb2_record_decode_insn_handler): New function.
13606 (decode_insn): Add thumb32 instruction handlers.
13607
97dfe206
OJ
136082014-01-15 Omair Javaid <omair.javaid@linaro.org>
13609
13610 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
13611 (struct arm_linux_record_tdep): Declare.
13612 (arm_canonicalize_syscall): New function.
13613 (arm_all_but_pc_registers_record): New function.
13614 (arm_linux_syscall_record): New function.
13615 (arm_linux_init_abi): Add syscall recording constructs.
13616 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
13617 decoding. (arm_record_coproc_data_proc): Update arm syscall
13618 decoding.
13619 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
13620 <arm_syscall_record>: New field.
13621 * configure.tgt (arm*-*-linux*): Add linux-record.o to
13622 gdb_target_obs.
13623
9904a494
OJ
136242014-01-15 Omair Javaid <omair.javaid@linaro.org>
13625
13626 * arm-tdep.c (thumb_record_misc): Update to use sp as base
13627 register for push instruction recording.
13628
f969241e
OJ
136292014-01-15 Omair Javaid <omair.javaid@linaro.org>
13630
13631 * arm-tdep.c (thumb_record_misc): Update to correct logical
13632 error while recording ldm, ldmia and pop instructions.
13633
bfbbec00
OJ
136342014-01-15 Omair Javaid <omair.javaid@linaro.org>
13635
13636 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
13637
e40adcc9
PA
136382014-01-15 Pedro Alves <palves@redhat.com>
13639
13640 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
13641 (go32_resume, go32_fetch_registers, store_register)
13642 (go32_store_registers, go32_prepare_to_store)
13643 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
13644 (go32_create_inferior, go32_can_run, go32_terminal_init)
13645 (go32_terminal_inferior, go32_terminal_ours): Delete forward
13646 declarations.
13647
b0a16e66
TT
136482014-01-15 Tom Tromey <tromey@redhat.com>
13649
13650 * target.h (async_callback_ftype): New typedef.
13651 (struct target_ops) <to_async>: Use it.
13652
bf7105a4
JB
136532014-01-15 Joel Brobecker <brobecker@adacore.com>
13654
13655 * python/py-value.c (get_field_type): Remove unnecessary curly
13656 braces for single-statement if block.
13657
a8f35c2e
JB
136582014-01-15 Joel Brobecker <brobecker@adacore.com>
13659
13660 * python/py-type.c (convert_field): Add missing empty line
13661 after declarations.
13662
bb4142cf
DE
136632014-01-14 Doug Evans <dje@google.com>
13664
13665 * symfile.h (expand_symtabs_matching): Renamed from
13666 expand_partial_symbol_names. Update prototype.
13667 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
13668 * symfile.c (expand_symtabs_matching): Renamed from
13669 expand_partial_symbol_names. New args file_matcher, kind.
13670 Rename arg fun to symbol_matcher.
13671 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
13672 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
13673 ada_expand_partial_symbol_name.
13674 (ada_make_symbol_completion_list): Update to call
13675 expand_symtabs_matching.
13676 (ada_add_global_exceptions): Call expand_symtabs_matching.
13677 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
13678 call map_symbol_filenames.
13679 * symtab.c (sources_info): Update to call map_symbol_filenames.
13680 (search_symbols): Call expand_symtabs_matching.
13681 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
13682 (default_make_symbol_completion_list_break_on): Update to call
13683 expand_symtabs_matching.
13684 (make_source_files_completion_list): Update to call
13685 map_symbol_filenames.
13686
206f2a57
DE
136872014-01-14 Doug Evans <dje@google.com>
13688
13689 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
13690 (expand_symtabs_symbol_matcher_ftype): New typedef.
13691 (quick_symbol_functions.expand_symtabs_matching): Update to use.
13692 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13693 * symfile.c (expand_partial_symbol_names): Update to use
13694 expand_symtabs_symbol_matcher_ftype.
13695 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
13696 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13697 Arg name_matcher renamed to symbol_matcher.
13698 * psymtab.c (recursively_search_psymtabs): Update to use
13699 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
13700 sym_matcher.
13701 (expand_symtabs_matching_via_partial): Update to use
13702 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13703 Arg name_matcher renamed to symbol_matcher.
13704
540c2971
DE
137052014-01-14 Doug Evans <dje@google.com>
13706
13707 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
13708 (map_partial_symbol_filenames): Ditto.
13709 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
13710 (map_partial_symbol_filenames): Ditto.
13711 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
13712 (map_partial_symbol_filenames): Ditto.
13713 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
13714 (map_partial_symbol_filenames): Ditto.
13715 * symtab.c: Delete #include "psymtab.h".
13716
8213266a
PA
137172014-01-14 Pedro Alves <palves@redhat.com>
13718 Tom Tromey <tromey@redhat.com>
13719
13720 * infrun.c (use_displaced_stepping): Use find_record_target
13721 instead of RECORD_IS_USED.
13722 (adjust_pc_after_break): Use record_full_is_used instead of
13723 RECORD_IS_USED.
13724 * record-btrace.c (record_btrace_open): Call record_preopen
13725 instead of checking RECORD_IS_USED.
13726 * record-full.c (record_full_shortname)
13727 (record_full_core_shortname): New globals.
13728 (record_full_is_used): New function.
13729 (find_full_open): Call record_preopen instead of checking
13730 RECORD_IS_USED.
13731 (init_record_full_ops): Set the target's shortname to
13732 record_full_shortname.
13733 (init_record_full_core_ops): Set the target's shortname to
13734 record_full_core_shortname.
13735 * record-full.h (record_full_is_used): Declare.
13736 * record.c (find_record_target): Make extern.
13737 (record_preopen): New function.
13738 * record.h (RECORD_IS_USED): Delete macro.
13739 (find_record_target, record_preopen): Declare functions.
13740
7ec1862d
YQ
137412014-01-14 Yao Qi <yao@codesourcery.com>
13742
13743 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
13744 'len''s type to ULONGEST.
13745 (core_xfer_shared_libraries_aix): Likewise.
13746 * gdbarch.c, gdbarch.h: Regenerated.
13747 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
13748 Change type of 'len' to ULONGEST.
13749 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13750 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
13751
dea80a27
YQ
137522014-01-14 Yao Qi <yao@codesourcery.com>
13753
13754 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
13755 type of 'len' to ULONGEST.
13756 (linux_xfer_osdata_processgroups): Likewise.
13757 (linux_xfer_osdata_threads): Likewise.
13758 (linux_xfer_osdata_fds): Likewise.
13759 (linux_xfer_osdata_isockets): Likewise.
13760 (linux_xfer_osdata_shm): Likewise.
13761 (linux_xfer_osdata_sem): Likewise.
13762 (linux_xfer_osdata_msg): Likewise.
13763 (linux_common_xfer_osdata): Likewise.
13764 (struct osdata_type) <getter>: Likewise.
13765 * common/linux-osdata.h (linux_common_xfer_osdata): Update
13766 the declaration.
13767
b55e14c7
YQ
137682014-01-14 Yao Qi <yao@codesourcery.com>
13769
13770 * target.h (target_xfer_partial_ftype): Update.
13771 (struct target_ops) <to_xfer_partial>: Change 'len' type to
13772 ULONGEST.
13773 * aix-thread.c (aix_thread_xfer_partial): Change type of
13774 argument 'len' to ULONGEST.
13775 * auxv.c (procfs_xfer_auxv): Likewise.
13776 (ld_so_xfer_auxv): Likewise.
13777 (memory_xfer_auxv): Likewise.
13778 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13779 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13780 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
13781 * corelow.c (core_xfer_partial): Likewise.
13782 * ctf.c (ctf_xfer_partial): Likewise.
13783 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
13784 '%u'.
13785 (darwin_read_dyld_info): Likewise.
13786 (darwin_xfer_partial): Likewise.
13787 * exec.c (section_table_xfer_memory_partial): Likewise.
13788 (exec_xfer_partial): Likewise.
13789 * exec.h (section_table_xfer_memory_partial): Update
13790 declaration.
13791 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
13792 instead of plongest.
13793 (gnu_xfer_partial): Likewise.
13794 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
13795 (ia64_hpux_xfer_solib_got): Likewise.
13796 (ia64_hpux_xfer_partial): Likewise.
13797 * ia64-linux-nat.c (ia64_linux_xfer_partial):
13798 * inf-ptrace.c (inf_ptrace_xfer_partial):
13799 * inf-ttrace.c (inf_ttrace_xfer_partial):
13800 * linux-nat.c (linux_xfer_siginfo): Likewise.
13801 (linux_nat_xfer_partial): Likewise.
13802 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
13803 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
13804 * monitor.c (monitor_xfer_memory): Likewise.
13805 (monitor_xfer_partial): Likewise.
13806 * procfs.c (procfs_xfer_partial): Likewise.
13807 * record-full.c (record_full_xfer_partial): Likewise.
13808 (record_full_core_xfer_partial): Likewise.
13809 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
13810 instead of plongest.
13811 (gdbsim_xfer_partial): Likewise.
13812 * remote.c (remote_xfer_partial): Likewise.
13813 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13814 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
13815 declaration.
13816 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13817 (rs6000_xfer_shared_libraries): Likewise.
13818 * sol-thread.c (sol_thread_xfer_partial): Likewise.
13819 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13820 (sparc_xfer_partial): Likewise.
13821 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13822 (spu_xfer_partial): Likewise.
13823 * spu-multiarch.c (spu_xfer_partial): Likewise.
13824 * target.c (target_read_live_memory): Likewise.
13825 (memory_xfer_live_readonly_partial): Likewise.
13826 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
13827 (target_xfer_partial, default_xfer_partial): Likewise.
13828 (current_xfer_partial): Likewise.
13829 * tracepoint.c (tfile_xfer_partial): Likewise.
13830 * windows-nat.c (windows_xfer_memory): Likewise. Call
13831 pulongest instead of plongest.
13832 (windows_xfer_partial): Likewise.
13833 (windows_xfer_shared_libraries): Likewise.
13834
05804640
YQ
138352014-01-14 Yao Qi <yao@codesourcery.com>
13836
13837 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
13838 target_xfer_partial_ftype.
13839
b5b08fb4
SC
138402014-01-13 Siva Chandra Reddy <sivachandra@google.com>
13841
13842 PR python/15464
13843 PR python/16113
13844 * valops.c (value_struct_elt_bitpos): New function
13845 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
13846 object to 'None' if the field name is an empty string ("").
13847 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
13848 attribute to look for a field when 'name' is 'None'.
13849 (get_field_type): New function
13850
13aaf454
DE
138512014-01-13 Doug Evans <dje@google.com>
13852
13853 PR symtab/16426
13854 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
13855 (try_open_dwop_file): Ditto.
13856 * gdb_bfd.c: #include "vec.h".
13857 (bfdp): New typedef.
13858 (struct gdb_bfd_data): New member included_bfds.
13859 (gdb_bfd_unref): Unref all included bfds.
13860 (gdb_bfd_record_inclusion): New function.
13861 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
13862
c2cec97c
TT
138632014-01-13 Tom Tromey <tromey@redhat.com>
13864
13865 * gdbcore.h (deprecated_core_resize_section_table): Remove.
13866
78e5999d
TT
138672014-01-13 Tom Tromey <tromey@redhat.com>
13868
13869 * defs.h (use_windows): Remove.
13870 * gdb.c (main): Update.
13871 * main.c (captured_main, gdb_main): Update.
13872 * main.h (struct captured_main_args) <use_windows>: Remove.
13873 * top.c (use_windows): Remove.
13874
f2052bbe
TT
138752014-01-13 Tom Tromey <tromey@redhat.com>
13876
13877 * defs.h (deprecated_flush_hook): Remove.
13878
fde4f8ed
JK
138792014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
13880
13881 PR threads/16216
13882 * linux-thread-db.c (try_thread_db_load): Add parameter
13883 check_auto_load_safe. Move here the file_is_auto_load_safe call.
13884 (try_thread_db_load_from_pdir_1): Move it there from here.
13885 (try_thread_db_load_from_sdir): Update caller.
13886 (try_thread_db_load_from_dir): Move it there from here.
13887
bdf61915
PP
138882014-01-13 Patrick Palka <patrick@parcs.ath.cx>
13889
13890 * regformats/regdat.sh: Always rewrite the register file.
13891
f71e1a8d
PA
138922014-01-13 Pedro Alves <palves@redhat.com>
13893
13894 * Makefile.in (CHECK_HEADERS): New variable.
13895 (check-headers:): New rule.
13896
42c85435
TT
138972014-01-13 Tom Tromey <tromey@redhat.com>
13898
13899 * cli/cli-setshow.c (do_set_command): Update.
13900 * defs.h (deprecated_set_hook): Remove.
13901 * top.c (deprecated_set_hook): Remove.
13902
f8de5129
PA
139032014-01-13 Pedro Alves <palves@redhat.com>
13904
13905 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
13906 the tracepoint if the PC is a pseudo-register.
13907
fc270c35
TT
139082014-01-13 Tom Tromey <tromey@redhat.com>
13909
13910 * defs.h (XCALLOC): Remove.
13911 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
13912 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
13913 * dwarf2loc.c (allocate_piece_closure): Likewise.
13914 * elfread.c (elf_symfile_segments): Likewise.
13915 (elf_symfile_segments): Likewise.
13916 * gdbtypes.c (copy_type_recursive): Likewise.
13917 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
13918 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
13919 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
13920 XCALLOC.
13921 * mt-tdep.c (mt_gdbarch_init): Likewise.
13922 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
13923 XCALLOC.
13924 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
13925 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
13926 * registry.c (registry_alloc_data): Likewise.
13927 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
13928 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
13929 * serial.c (serial_fdopen_ops): Likewise.
13930 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
13931 XCALLOC.
13932 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
13933 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
13934 not XCALLOC.
13935
70ba0933
TT
139362014-01-13 Tom Tromey <tromey@redhat.com>
13937
13938 * defs.h (XMALLOC): Remove.
13939 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
13940 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
13941 * cli-out.c (struct ui_out *): Likewise.
13942 * cli/cli-dump.c (add_dump_command): Likewise.
13943 (add_dump_command): Likewise.
13944 * complaints.c (get_complaints): Likewise.
13945 (find_complaint): Likewise.
13946 * dwarf2-frame.c (execute_cfa_program): Likewise.
13947 * dwarf2read.c (abbrev_table_read_table): Likewise.
13948 * gdbarch.sh: Likewise.
13949 * gdbarch.c: Rebuild.
13950 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
13951 * interps.c (interp_new): Likewise.
13952 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
13953 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
13954 * mi/mi-console.c (mi_console_file_new): Likewise.
13955 * mi/mi-interp.c (mi_interpreter_init): Likewise.
13956 * mi/mi-out.c (mi_out_new): Likewise.
13957 * mi/mi-parse.c (mi_parse): Likewise.
13958 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
13959 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
13960 * observer.c (xalloc_observer_list_node): Likewise.
13961 * regcache.c (regcache_xmalloc_1): Likewise.
13962 * reggroups.c (reggroup_new): Likewise.
13963 (_initialize_reggroup): Likewise.
13964 * registry.c (register_data_with_cleanup): Likewise.
13965 * remote.c (remote_notif_stop_alloc_reply): Likewise.
13966 * ser-base.c (serial_ttystate): Likewise.
13967 * ser-mingw.c (make_pipe_state): Likewise.
13968 * ser-pipe.c (pipe_open): Likewise.
13969 * serial.c (serial_open): Likewise.
13970 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
13971 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
13972 (tui_alloc_win_info): Likewise.
13973 (tui_add_content_elements): Likewise.
13974 * tui/tui-file.c (tui_file_new): Likewise.
13975 * tui/tui-out.c (tui_out_new): Likewise.
13976 * ui-file.c (mem_file_new): Likewise.
13977 * ui-out.c (push_level): Likewise.
13978 (make_cleanup_ui_out_end): Likewise.
13979 (append_header_to_list): Likewise.
13980 (ui_out_new): Likewise.
13981 * user-regs.c (user_reg_add_builtin): Likewise.
13982
41bf6aca
TT
139832014-01-13 Tom Tromey <tromey@redhat.com>
13984
13985 * defs.h (XZALLOC): Remove.
13986 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
13987 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
13988 (get_ada_tasks_inferior_data): Likewise.
13989 * auto-load.c (get_auto_load_pspace_data): Likewise.
13990 * auxv.c (get_auxv_inferior_data): Likewise.
13991 * bfd-target.c (target_bfd_reopen): Likewise.
13992 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
13993 (deprecated_insert_raw_breakpoint): Likewise.
13994 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
13995 * corelow.c (core_open): Likewise.
13996 * darwin-nat.c (darwin_check_new_threads): Likewise.
13997 (darwin_attach_pid): Likewise.
13998 * dummy-frame.c (dummy_frame_push): Likewise.
13999 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
14000 * dwarf2loc.c (allocate_piece_closure): Likewise.
14001 * elfread.c (elf_symfile_segments): Likewise.
14002 * eval.c (ptrmath_type_p): Likewise.
14003 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
14004 * gdbtypes.c (alloc_type_arch): Likewise.
14005 (alloc_type_instance): Likewise.
14006 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
14007 * inf-child.c (inf_child_can_use_agent): Likewise.
14008 * inflow.c (get_inflow_inferior_data): Likewise.
14009 * infrun.c (save_infcall_suspend_state): Likewise.
14010 * jit.c (jit_reader_load): Likewise.
14011 (get_jit_objfile_data): Likewise.
14012 (get_jit_program_space_data): Likewise.
14013 (jit_object_open_impl): Likewise.
14014 (jit_symtab_open_impl): Likewise.
14015 (jit_block_open_impl): Likewise.
14016 (jit_frame_sniffer): Likewise.
14017 * linux-fork.c (add_fork): Likewise.
14018 * maint.c (make_command_stats_cleanup): Likewise.
14019 * objfiles.c (get_objfile_pspace_data): Likewise.
14020 * opencl-lang.c (struct lval_closure): Likewise.
14021 * osdata.c (osdata_start_osdata): Likewise.
14022 * progspace.c (new_address_space): Likewise.
14023 (add_program_space): Likewise.
14024 * remote-sim.c (get_sim_inferior_data): Likewise.
14025 * sh-tdep.c (sh_gdbarch_init): Likewise.
14026 * skip.c (Ignore): Likewise.
14027 (skip_delete_command): Likewise.
14028 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
14029 (library_list_start_library): Likewise.
14030 (solib_aix_current_sos): Likewise.
14031 * solib-darwin.c (get_darwin_info): Likewise.
14032 (darwin_current_sos): Likewise.
14033 * solib-dsbt.c (get_dsbt_info): Likewise.
14034 * solib-ia64-hpux.c (new_so_list): Likewise.
14035 (ia64_hpux_get_solib_linkage_addr): Likewise.
14036 * solib-spu.c (append_ocl_sos): Likewise.
14037 (spu_current_sos): Likewise.
14038 * solib-svr4.c (get_svr4_info): Likewise.
14039 (svr4_keep_data_in_core): Likewise.
14040 (library_list_start_library): Likewise.
14041 (svr4_default_sos): Likewise.
14042 (svr4_read_so_list): Likewise.
14043 * solib-target.c (library_list_start_library): Likewise.
14044 (solib_target_current_sos): Likewise.
14045 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
14046 * symfile-debug.c (install_symfile_debug_logging): Likewise.
14047 * symfile.c (default_symfile_segments): Likewise.
14048 * target-descriptions.c (tdesc_data_init): Likewise.
14049 (tdesc_create_reg): Likewise.
14050 (struct tdesc_type *): Likewise.
14051 (tdesc_create_vector): Likewise.
14052 (tdesc_set_struct_size): Likewise.
14053 (struct tdesc_type *): Likewise.
14054 (tdesc_free_feature): Likewise.
14055 (tdesc_create_feature): Likewise.
14056 * windows-nat.c (windows_add_thread): Likewise.
14057 (windows_make_so): Likewise.
14058 * xml-support.c (gdb_xml_body_text): Likewise.
14059 (gdb_xml_create_parser_and_cleanup): Likewise.
14060 (xml_process_xincludes): Likewise.
14061 * xml-syscall.c (allocate_syscalls_info): Likewise.
14062 (syscall_create_syscall_desc): Likewise.
14063
5acfdbae
SDJ
140642014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
14065
14066 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
14067 function, with code from i386_stap_parse_special_token.
14068 (i386_stap_parse_special_token_three_arg_disp): Likewise.
14069 (i386_stap_parse_special_token): Move code to the two functions
14070 above; simplify it.
14071
0000e5cc
PA
140722014-01-09 Pedro Alves <palves@redhat.com>
14073 Hui Zhu <hui@codesourcery.com>
14074
14075 PR gdb/16101
14076 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
14077 bp_err_string. Don't mark the location shlib_disabled if the
14078 error thrown wasn't a generic or memory error. Catch errors
14079 thrown while inserting breakpoints in overlayed code. Output
14080 error message of software breakpoints.
14081 * remote.c (remote_insert_breakpoint): If this breakpoint has
14082 target-side commands but this stub doesn't support Z0 packets,
14083 throw NOT_SUPPORTED_ERROR error.
14084 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
14085 * target.h (target_insert_breakpoint): Extend comment.
14086 (target_insert_hw_breakpoint): Add comment.
14087
b7ea362b
PA
140882014-01-08 Pedro Alves <palves@redhat.com>
14089
14090 * remote.c (remote_add_thread): Add threads silently if starting
14091 up.
14092 (remote_notice_new_inferior): If in all-stop, and starting up,
14093 don't call notice_new_inferior.
14094 (get_current_thread): New function, factored out from ...
14095 (add_current_inferior_and_thread): ... this. Adjust.
14096 (remote_start_remote) <all-stop>: Fetch the thread list. If we
14097 found any thread, then select the remote's current thread as GDB's
14098 current thread too.
14099
b7bba001
JB
141002014-01-08 Joel Brobecker <brobecker@adacore.com>
14101
14102 * NEWS: Create a new section for the next release branch.
14103 Rename the section of the current branch, now that it has
14104 been cut.
14105
16dfbded
JB
141062014-01-08 Joel Brobecker <brobecker@adacore.com>
14107
14108 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
14109 * version.in: Bump version to 7.7.50.DATE-cvs.
14110
22c90ac1
YQ
141112014-01-08 Yao Qi <yao@codesourcery.com>
14112
14113 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
14114 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
14115 (spu_xfer_partial): Cast 'buf' to 'const char *'.
14116
d64ad97c
YQ
141172014-01-08 Yao Qi <yao@codesourcery.com>
14118
14119 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
14120 return value of bfd_get_filename to symbol_file_add_from_bfd.
14121
f93ba80c
PM
141222014-01-08 Pierre Muller <muller@sourceware.org>
14123
14124 Fix PR16201.
14125 * coff-pe-read.c (struct read_pe_section_data): Add index field.
14126 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
14127 to prim_record_mininal_symbol_and_info.
14128 (add_pe_forwarded_sym): Use known section number of forwarded symbol
14129 in call to prim_record_minimal_symbol_and_info.
14130 (read_pe_exported_syms): Set index field of section_data.
14131
a4d9ba85
AP
141322014-01-07 Andrew Pinski <apinski@cavium.com>
14133
14134 * features/aarch64-core.xml (cpsr): Change to be 64bit.
14135 * features/aarch64.c: Regenerate.
14136
1b67eb02
AS
141372014-01-07 Andreas Schwab <schwab@linux-m68k.org>
14138
14139 * target.c (return_null): Define.
14140 (update_current_target): Use it instead of return_zero for
14141 functions that return a pointer.
14142
5e3f4fab
EBM
141432014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
14144
14145 * source.c (add_path): Fix check for duplicated paths in the previously
14146 included paths.
14147
e2616788
HK
141482014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
14149
14150 * ada-lang.c: Remove duplicated include statements.
14151 * alphabsd-nat.c: Ditto.
14152 * amd64-darwin-tdep.c: Ditto.
14153 * amd64fbsd-nat.c: Ditto.
14154 * auto-load.c: Ditto.
14155 * ax-gdb.c: Ditto.
14156 * breakpoint.c: Ditto.
14157 * dbxread.c: Ditto.
14158 * fork-child.c: Ditto.
14159 * gdb_usleep.c: Ditto.
14160 * i386-darwin-tdep.c: Ditto.
14161 * i386fbsd-nat.c: Ditto.
14162 * infcmd.c: Ditto.
14163 * inferior.c: Ditto.
14164 * jv-lang.c: Ditto.
14165 * linux-nat.c: Ditto.
14166 * linux-tdep.c: Ditto.
14167 * m68kbsd-nat.c: Ditto.
14168 * m68klinux-nat.c: Ditto.
14169 * microblaze-tdep.c: Ditto.
14170 * mips-linux-tdep.c: Ditto.
14171 * mn10300-tdep.c: Ditto.
14172 * nto-tdep.c: Ditto.
14173 * opencl-lang.c: Ditto.
14174 * osdata.c: Ditto.
14175 * printcmd.c: Ditto.
14176 * regcache.c: Ditto.
14177 * remote-m32r-sdi.c: Ditto.
14178 * remote.c: Ditto.
14179 * symfile.c: Ditto.
14180 * symtab.c: Ditto.
14181 * tilegx-linux-nat.c: Ditto.
14182 * tilegx-tdep.c: Ditto.
14183 * tracepoint.c: Ditto.
14184 * valops.c: Ditto.
14185 * vaxbsd-nat.c: Ditto.
14186 * windows-nat.c: Ditto.
14187 * xtensa-tdep.c: Ditto.
14188
bd1f7788
YQ
141892014-01-07 Yao Qi <yao@codesourcery.com>
14190
14191 * spu-linux-nat.c (_initialize_spu_nat): Declare.
14192
79301218
JB
141932014-01-07 Yao Qi <yao@codesourcery.com>
14194 Joel Brobecker <brobecker@adacore.com>
14195
14196 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
14197 (pdc_write_regs): Likewise.
14198 (fetch_regs_kernel_thread): Likewise.
14199 (store_regs_kernel_thread): Likewise.
14200
142012014-01-07 Joel Brobecker <brobecker@adacore.com>
14202
14203 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
14204 tagged type objects to their actual type.
14205
8e355c5d
JB
142062014-01-07 Joel Brobecker <brobecker@adacore.com>
14207
14208 * ada-valprint.c (print_field_values): Add "language" parameter.
14209 Update calls to print_field_values and print_variant_part.
14210 Pass new parameter "language" in call to val_print instead
14211 of "current_language". Replace call to ada_val_print by call
14212 to val_print.
14213 (print_variant_part): Add "language" parameter.
14214 (ada_val_print_struct_union): Update call to print_field_values.
14215
4fbf5aa5
JB
142162014-01-07 Joel Brobecker <brobecker@adacore.com>
14217
14218 * ada-valprint.c (ui_memcpy): Delete.
14219 (ada_print_floating): Update documentation. Add empty line
14220 between between function documentation and implementation.
14221 Delete variable "buffer". Use ui_file_xstrdup in place of
14222 ui_file_put. Minor adjustments following this change.
14223
71855601
JB
142242014-01-07 Joel Brobecker <brobecker@adacore.com>
14225
14226 * ada-valprint.c (ada_val_print_string): New function,
14227 extracted from ada_val_print_array.
14228 (ada_val_print_array): Replace extracted code by call
14229 to ada_val_print_string followed by a return. Move
14230 "else" branch to the function's top block.
14231
4eb27a30
JB
142322014-01-07 Joel Brobecker <brobecker@adacore.com>
14233
14234 * ada-valprint.c (ada_val_print_array): Move implementation
14235 down. Rename parameter "offset" and "val" into "offset_aligned"
14236 and "original_value" respectively. Add parameter "offset".
14237
34b27950
JB
142382014-01-07 Joel Brobecker <brobecker@adacore.com>
14239
14240 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
14241 re-organizing the code. Change the "???" message printed
14242 when target type is a TYPE_CODE_UNDEF into
14243 "<ref to undefined type>".
14244
079e4591
JB
142452014-01-07 Joel Brobecker <brobecker@adacore.com>
14246
14247 * ada-valprint.c (print_record): Delete, implementation inlined...
14248 (ada_val_print_struct_union): ... here. Remove call to
14249 ada_check_typedef in inlined implementation.
14250
8004dfd1
JB
142512014-01-07 Joel Brobecker <brobecker@adacore.com>
14252
14253 * ada-valprint.c (ada_val_print_gnat_array): New function,
14254 extracted from ada_val_print_1;
14255 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
14256 (ada_val_print_flt, ada_val_print_struct_union)
14257 (ada_val_print_ref): Likewise.
14258 (ada_val_print_1): Delete variables i and elttype.
14259 Replace extracted-out code by call to corresponding
14260 new functions.
14261
760a2db0
JB
142622014-01-07 Joel Brobecker <brobecker@adacore.com>
14263
14264 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
14265
3a92c861
JB
142662014-01-07 Joel Brobecker <brobecker@adacore.com>
14267
14268 * ada-valprint.c (ada_val_print_1): Replace calls to
14269 ada_val_print_1 by calls to val_print.
14270
cd1630f9
JB
142712014-01-07 Joel Brobecker <brobecker@adacore.com>
14272
14273 * ada-valprint.c (ada_val_print_1): Add parameter "language".
14274 Update calls to self accordingly. Replace calls to c_val_print
14275 by calls to val_print.
14276
bdf779a0
JB
142772014-01-07 Joel Brobecker <brobecker@adacore.com>
14278
14279 * ada-valprint.c (print_record): Delete declaration.
14280 (adjust_type_signedness, ada_val_print_1): Likewise.
14281 (ada_val_print): Move function implementation down.
14282 (print_variant_part, print_field_values, print_record):
14283 Move function implementation up.
14284
c0d48811
JB
142852014-01-07 Joel Brobecker <brobecker@adacore.com>
14286
14287 * python/py-type.c (typy_get_name): New function.
14288 (type_object_getset): Add entry for attribute "name".
14289 * NEWS: Add entry mentioning this new attribute.
14290
c26e9cbb
YQ
142912014-01-07 Yao Qi <yao@codesourcery.com>
14292
14293 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
14294 statement.
14295
0cc6f43d
YQ
142962014-01-07 Yao Qi <yao@codesourcery.com>
14297
14298 * gnu-nat.c (info_port_rights): Add qualifier const to
14299 argument args.
14300
eec03155
YQ
143012014-01-07 Yao Qi <yao@codesourcery.com>
14302
14303 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
14304
f04a82ef
YQ
143052014-01-07 Yao Qi <yao@codesourcery.com>
14306
14307 * gnu-nat.c (make_inf) Update declaration.
14308 (make_inf): Make it static.
14309 (inf_set_traced): Likewise.
14310 (inf_port_to_thread, inf_task_died_status): Likewise.
14311
d57dda0a
YQ
143122014-01-07 Yao Qi <yao@codesourcery.com>
14313
14314 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
14315
3aa8c969
YQ
143162014-01-07 Yao Qi <yao@codesourcery.com>
14317
14318 * gnu-nat.c (_initialize_gnu_nat): Declare.
14319
94123b4f
YQ
143202014-01-07 Yao Qi <yao@codesourcery.com>
14321
14322 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
14323 'enum bfd_endian'.
14324 (struct gdbarch_info) <byte_order>: Change type to
14325 'enum bfd_endian'.
14326 <byte_order_for_code>: Likewise.
14327 * gdbarch.c, gdbarch.h: Regenerated.
14328
dc81d70a
TT
143292014-01-06 Sasha Smundak <asmundak@google.com>
14330
14331 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
14332
cc2f3c35
TT
143332014-01-06 Tom Tromey <tromey@redhat.com>
14334
14335 * doublest.c (convert_doublest_to_floatformat): Use const, not
14336 CONST.
14337 * somread.c (som_symtab_read): Likewise.
14338
adcf2eed
HZ
143392014-01-07 Hui Zhu <hui@codesourcery.com>
14340
14341 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
14342 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
14343 (gdb_bfd_fopen): Ditto.
14344 (gdb_bfd_openr): Ditto.
14345 (gdb_bfd_openw): Ditto.
14346 (gdb_bfd_openr_iovec): Ditto.
14347 (gdb_bfd_fdopenr): Ditto.
14348 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
14349 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
14350 with xstrdup.
14351 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
14352 with xstrdup.
14353 * symfile-mem.c (symbol_file_add_from_memory): Removed
14354 gdb_bfd_stash_filename.
14355
50722198
DE
143562014-01-03 Doug Evans <dje@google.com>
14357
14358 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
14359 output.
14360
2fa4b862
JB
143612014-01-01 Joel Brobecker <brobecker@adacore.com>
14362
14363 Update year range in copyright notice of all files.
14364
28498c42
JB
143652014-01-01 Joel Brobecker <brobecker@adacore.com>
14366
14367 * top.c (print_gdb_version): Set copyright year to 2014.
14368
7b6e1046
JB
143692014-01-01 Joel Brobecker <brobecker@adacore.com>
14370
14371 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
14372
df96af55 14373For older changes see ChangeLog-2013.
c906108c
SS
14374\f
14375Local Variables:
14376mode: change-log
14377left-margin: 8
14378fill-column: 74
14379version-control: never
57da7796 14380coding: utf-8
c906108c 14381End: