Make common code handle target_terminal_* idempotency
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
5842f62a
PA
12014-10-17 Pedro Alves <palves@redhat.com>
2
3 * target.c (enum terminal_state): New enum.
4 (terminal_state): New global.
5 (target_terminal_init): New function.
6 (target_terminal_inferior): Skip if inferior already owns the
7 terminal.
8 (target_terminal_ours, target_terminal_ours_for_output): New
9 functions.
10 * target.h (target_terminal_init): Convert to function prototype.
11 (target_terminal_ours_for_output): Convert to function prototype
12 and tweak comment.
13 (target_terminal_ours): Convert to function prototype and tweak
14 comment.
15 * windows-nat.c (do_initial_windows_stuff): Call
16 target_terminal_init instead of child_terminal_init_with_pgrp.
17
32a8097b
PA
182014-10-17 Pedro Alves <palves@redhat.com>
19
20 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
21 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
22 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
23 solib-osf.c.
24 * NEWS: Mention that support for alpha*-*-osf* has been removed.
25 * ada-lang.h [__alpha__ && __osf__]
26 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
27 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
28 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
29 GDB_OSABI_OSF1.
30 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
31 files.
32 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
33 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
34 * configure: Regenerate.
35 * configure.ac: Remove references to osf.
36 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
37 section. Remove all other references to osf.
38 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
39 Remove all other references to osf.
40 * dec-thread.c: Delete file.
41 * defs.h (GDB_OSABI_OSF1): Delete.
42 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
43 defined.
44 * osabi.c (gdb_osabi_names): Delete "OSF/1".
45 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
46 Delete code.
47 (unconditionally_kill_inferior)
48 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
49 * solib-osf.c: Delete file.
50
80134cf5
PA
512014-10-17 Pedro Alves <palves@redhat.com>
52
53 * remote.c (clear_threads_listing_context): Move higher up, out of
54 the HAVE_LIBEXPAT guard.
55
89c7137f
TG
562014-10-16 Tristan Gingold <gingold@adacore.com>
57
58 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
59 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
60 on amd64.
61
44ee4a52
PA
622014-10-15 Pedro Alves <palves@redhat.com>
63
64 * dec-thread.c (dec_thread_count_gdb_threads)
65 (dec_thread_add_gdb_thread): Delete.
66 (dec_thread_update_thread_list): Delete.
67 (dec_thread_find_new_threads): Rename to ...
68 (dec_thread_update_thread_list): ... this. Delete GDB-size
69 threads that are no longer found in dec_thread_list.
70 (resync_thread_list): Delete.
71 (dec_thread_wait): Call dec_thread_update_thread_list instead of
72 resync_thread_list.
73
ab970af1
PA
742014-10-15 Pedro Alves <palves@redhat.com>
75
76 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
77 * remote.c (remote_update_thread_list): Skip calling prune_threads
78 if any thread listing method is supported, and instead walk over
79 the set of remote threads listed, deleting those that are not
80 found in GDB's thread list.
81
e8032dde
PA
822014-10-15 Pedro Alves <palves@redhat.com>
83
84 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
85 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
86 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
87 (bsd_uthread_target): Adjust.
88 * corelow.c (core_open): Adjust.
89 * dec-thread.c (dec_thread_find_new_threads): Update comment.
90 (dec_thread_update_thread_list): New function.
91 (init_dec_thread_ops): Adjust.
92 * gdbthread.h (prune_threads): New declaration.
93 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
94 (thread_db_update_thread_list): ... this. Call prune_threads.
95 (init_thread_db_ops): Adjust.
96 * nto-procfs.c (procfs_find_new_threads): Rename to ...
97 (procfs_update_thread_list): ... this. Call prune_threads.
98 (procfs_attach, procfs_create_inferior, init_procfs_targets):
99 Adjust.
100 * obsd-nat.c (obsd_find_new_threads): Rename to ...
101 (obsd_update_thread_list): ... this. Call prune_threads.
102 (obsd_add_target): Adjust.
103 * procfs.c (procfs_target): Adjust.
104 (procfs_notice_thread): Update comment.
105 (procfs_find_new_threads): Rename to ...
106 (procfs_update_thread_list): ... this. Call prune_threads.
107 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
108 comment.
109 (ravenscar_wait): Adjust.
110 (ravenscar_find_new_threads): Rename to ...
111 (ravenscar_update_thread_list): ... this. Call prune_threads.
112 (init_ravenscar_thread_ops): Adjust.
113 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
114 (record_btrace_update_thread_list): ... this. Adjust comment.
115 (init_record_btrace_ops): Adjust.
116 * remote.c (remote_threads_info): Rename to ...
117 (remote_update_thread_list): ... this. Call prune_threads.
118 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
119 Adjust.
120 * sol-thread.c (check_for_thread_db): Adjust.
121 (sol_find_new_threads_callback): Rename to ...
122 (sol_update_thread_list_callback): ... this.
123 (sol_find_new_threads): Rename to ...
124 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
125 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
126 * target-delegates.c: Regenerate.
127 * target.c (target_find_new_threads): Rename to ...
128 (target_update_thread_list): ... this.
129 * target.h (struct target_ops): Rename to_find_new_threads field
130 to to_update_thread_list.
131 (target_find_new_threads): Rename to ...
132 (target_update_thread_list): ... this.
133 * thread.c (prune_threads): Make extern.
134 (update_thread_list): Adjust.
135
6dc54d91
PA
1362014-10-15 Pedro Alves <palves@redhat.com>
137
138 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
139 Add describing comment. Return -1 if the qL packet is not
140 supported.
141 (struct thread_item, thread_item_t): Move higher up in
142 the file. Add comments.
143 (struct threads_parsing_context): Move higher up in
144 the file, add comments, and remote to ...
145 (struct threads_listing_context): ... this.
146 (remote_newthread_step): Don't add the thread to GDB's thread
147 database here. Instead push it to the thread_listing_context
148 list.
149 (remote_find_new_threads): Rename to ...
150 (remote_get_threads_with_ql): ... this. Add target_ops and
151 targets_listing_context parameters. Pass down context.
152 (start_thread): Adjust.
153 (clear_threads_parsing_context): Rename to ...
154 (clear_threads_listing_context): ... this.
155 (remote_get_threads_with_qxfer): New, with parts salvaged from old
156 remote_threads_info.
157 (remote_get_threads_with_qthreadinfo): Ditto.
158 (remote_threads_info): Reimplement.
159
36728e82
PA
1602014-10-15 Pedro Alves <palves@redhat.com>
161
162 * infrun.c (resume): Don't force displaced-stepping for all
163 single-steps on software single-stepping archs.
164
34b7e8a6
PA
1652014-10-15 Pedro Alves <palves@redhat.com>
166
167 * breakpoint.c (single_step_breakpoints): Delete global.
168 (insert_single_step_breakpoint): Adjust to store the breakpoint
169 pointer in the current thread.
170 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
171 (cancel_single_step_breakpoints): Delete functions.
172 (breakpoint_has_location_inserted_here): Make extern.
173 (single_step_breakpoint_inserted_here_p): Adjust to walk the
174 breakpoint list.
175 * breakpoint.h (breakpoint_has_location_inserted_here): New
176 declaration.
177 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
178 (cancel_single_step_breakpoints): Remove declarations.
179 * gdbthread.h (struct thread_control_state)
180 <single_step_breakpoints>: New field.
181 (delete_single_step_breakpoints)
182 (thread_has_single_step_breakpoints_set)
183 (thread_has_single_step_breakpoint_here): New declarations.
184 * infrun.c (follow_exec): Also clear the single-step breakpoints.
185 (singlestep_breakpoints_inserted_p, singlestep_ptid)
186 (singlestep_pc): Delete globals.
187 (infrun_thread_ptid_changed): Remove references to removed
188 globals.
189 (resume_cleanups): Delete the current thread's single-step
190 breakpoints.
191 (maybe_software_singlestep): Remove references to removed globals.
192 (resume): Adjust to use thread_has_single_step_breakpoints_set and
193 delete_single_step_breakpoints.
194 (init_wait_for_inferior): Remove references to removed globals.
195 (delete_thread_infrun_breakpoints): Delete the thread's
196 single-step breakpoints too.
197 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
198 single-step breakpoints here.
199 (delete_stopped_threads_single_step_breakpoints): New function.
200 (adjust_pc_after_break): Adjust to use
201 thread_has_single_step_breakpoints_set.
202 (handle_inferior_event): Remove references to removed globals.
203 Use delete_stopped_threads_single_step_breakpoints.
204 (handle_signal_stop): Adjust to per-thread single-step
205 breakpoints. Swap test order to do cheaper tests first.
206 (switch_back_to_stepped_thread): Extend debug output. Remove
207 references to removed globals.
208 * record-full.c (record_full_wait_1): Adjust to per-thread
209 single-step breakpoints.
210 * thread.c (delete_single_step_breakpoints)
211 (thread_has_single_step_breakpoints_set)
212 (thread_has_single_step_breakpoint_here): New functions.
213 (clear_thread_inferior_resources): Also delete the thread's
214 single-step breakpoints.
215
5b834a0a
PA
2162014-10-15 Pedro Alves <palves@redhat.com>
217
218 * thread.c (delete_thread_breakpoint): New function.
219 (delete_step_resume_breakpoint)
220 (delete_exception_resume_breakpoint): Use it.
221 (delete_at_next_stop): New function.
222 (clear_thread_inferior_resources): Use delete_at_next_stop.
223
a1fd2fa5
PA
2242014-10-15 Pedro Alves <palves@redhat.com>
225
226 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
227 (breakpoint_inserted_here_p): ... here. Remove special case for
228 software single-step breakpoints.
229 (find_non_raw_software_breakpoint_inserted_here): Inline ...
230 (software_breakpoint_inserted_here_p): ... here. Remove special
231 case for software single-step breakpoints.
232 (bp_target_info_copy_insertion_state)
233 (deprecated_insert_raw_breakpoint)
234 (deprecated_remove_raw_breakpoint): Delete functions.
235 * breakpoint.h (deprecated_insert_raw_breakpoint)
236 (deprecated_remove_raw_breakpoint): Remove declarations.
237
7c16b83e
PA
2382014-10-15 Pedro Alves <palves@redhat.com>
239
240 PR breakpoints/9649
241 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
242 Delete array globals.
243 (single_step_breakpoints): New global.
244 (breakpoint_xfer_memory): Remove special handling for single-step
245 breakpoints.
246 (update_breakpoints_after_exec): Delete bp_single_step
247 breakpoints.
248 (detach_breakpoints): Remove special handling for single-step
249 breakpoints.
250 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
251 (bpstat_stop_status): Add comment.
252 (bpstat_what, bptype_string, print_one_breakpoint_location)
253 (adjust_breakpoint_address, init_bp_location): Handle
254 bp_single_step.
255 (new_single_step_breakpoint): New function.
256 (set_momentary_breakpoint, bkpt_remove_location): Remove special
257 handling for single-step breakpoints.
258 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
259 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
260 Rewrite.
261 (detach_single_step_breakpoints, find_single_step_breakpoint):
262 Delete functions.
263 (breakpoint_has_location_inserted_here): New function.
264 (single_step_breakpoint_inserted_here_p): Rewrite.
265 * breakpoint.h: Remove FIXME.
266 (enum bptype) <bp_single_step>: New enum value.
267 (insert_single_step_breakpoint): Update comment.
268 * infrun.c (resume_cleanups)
269 (delete_step_thread_step_resume_breakpoint): Remove single-step
270 breakpoints.
271 (fetch_inferior_event): Install a cleanup that removes infrun
272 breakpoints.
273 (switch_back_to_stepped_thread) <expect thread advanced also>:
274 Clear step-over info.
275
0cbcdb96
PA
2762014-10-15 Pedro Alves <palves@redhat.com>
277
278 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
279 (delete_thread_infrun_breakpoints): New function, with parts
280 salvaged from delete_step_resume_breakpoint_callback.
281 (delete_step_thread_step_resume_breakpoint): Delete.
282 (for_each_just_stopped_thread_callback_func): New typedef.
283 (for_each_just_stopped_thread): New function.
284 (delete_just_stopped_threads_infrun_breakpoints): New function.
285 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
286 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
287 ... this. Adjust.
288 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
289
963f9c80
PA
2902014-10-15 Pedro Alves <palves@redhat.com>
291
292 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
293 trying to step past a non-steppable watchpoint.
294 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
295 field.
296 * infrun.c (struct step_over_info): Add new field
297 'nonsteppable_watchpoint_p' and adjust comments.
298 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
299 Adjust.
300 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
301 (stepping_past_nonsteppable_watchpoint): New function.
302 (step_over_info_valid_p): Also return true if stepping past a
303 nonsteppable watchpoint.
304 (proceed): Adjust call to set_step_over_info. Remove reference to
305 init_infwait_state.
306 (init_wait_for_inferior): Remove reference to init_infwait_state.
307 (waiton_ptid): Delete global.
308 (struct execution_control_state)
309 <stepped_after_stopped_by_watchpoint>: Delete field.
310 (wait_for_inferior, fetch_inferior_event): Always pass
311 minus_one_ptid to target_wait.
312 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
313 field.
314 (init_infwait_state): Delete function.
315 (handle_inferior_event): Remove infwait_state handling.
316 (handle_signal_stop) <watchpoints handling>: Adjust after
317 stepped_after_stopped_by_watchpoint removal. Don't remove
318 breakpoints here nor set infwait_state. Set the thread's
319 stepping_over_watchpoint flag, and call keep_going instead.
320 (keep_going): Handle stepping_over_watchpoint. Adjust
321 set_step_over_info calls.
322 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
323 function.
324
6cc83d2a
PA
3252014-10-15 Pedro Alves <palves@redhat.com>
326
327 * infrun.c (step_over_info_valid_p): New function.
328 (resume): Use step_over_info_valid_p instead of checking the
329 threads's trap_expected flag.
330
6979730b
DE
3312014-10-15 Doug Evans <dje@google.com>
332 Walfred Tedeschi <walfred.tedeschi@intel.com>
333
334 PR python/17364
335 * python/lib/gdb/__init__.py (packages): Add "printer".
336 * python/lib/gdb/command/bound_registers.py: Moved to ...
337 * python/lib/gdb/printer/bound_registers.py: ... here.
338 Add printer to global set of builtin printers. Rename printer from
339 "bound" to "mpx_bound128".
340 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
341 registered as global "builtin" printer.
342 (add_builtin_pretty_printer): New function.
343 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
344 gdb/printer/__init__.py.
345
35a49624
IB
3462014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
347
348 * Makefile.in (SFILES): Remove d-support.c.
349 (COMMON_OBS): Remove d-support.o.
350 * d-lang.h (d_parse_symbol): Remove declaration.
351 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
352 * d-support.c: Remove file.
353
8fa0c4f8
AA
3542014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
355
356 * gdb/infrun.c (process_event_stop_test): Apply
357 gdbarch_addr_bits_remove to longjmp resume address.
358
3666da81
PA
3592014-10-15 Pedro Alves <palves@redhat.com>
360
361 * regformats/microblaze.dat: Delete file.
362
449aa9df
AKA
3632014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
364
365 * features/Makefile (microblaze-expedite): Replace pc with rpc.
366 * regformats/microblaze-with-stack-protect.dat: Regenerate.
367
ebb8ece2
SC
3682014-10-15 Siva Chandra Reddy <sivachandra@google.com>
369
370 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
371 as non-trivial.
372
82c48ac7
SC
3732014-10-15 Siva Chandra Reddy <sivachandra@google.com>
374
375 PR c++/13403
376 PR c++/15154
377 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
378 with qualified args.
379
c40cc657
JB
3802014-10-14 Joel Brobecker <brobecker@adacore.com>
381
382 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
383 of the case where the second operand is a pointer.
384 <BINOP_SUB>: Likewise.
385
0ea5cda8
SDJ
3862014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
387
388 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
389 only if it is not NULL.
390 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
391 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
392 (struct probe_ops) <clear_semaphore>: Likewise.
393 * tracepoint.c (start_tracing): Call set_semaphore only if it is
394 not NULL.
395 (stop_tracing): Likewise, for clear_semaphore.
396
f7088df3
SDJ
3972014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
398
399 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
400 using language_c, instead of current_language.
401
4e1bbde0
DE
4022014-10-13 Doug Evans <dje@google.com>
403
6ff5a0f6 404 * python/py-objfile.c (objfpy_initialize): New function.
4e1bbde0 405 (objfpy_new, objfile_to_objfile_object): Call it.
6ff5a0f6 406 * python/py-progspace.c (pspy_initialize): New function.
4e1bbde0
DE
407 (pspy_new, pspace_to_pspace_object): Call it.
408
c780cc2f
JK
4092014-10-13 Miroslav Franc <mfranc@redhat.com>
410 Jan Kratochvil <jan.kratochvil@redhat.com>
411
412 Fix "save breakpoints" for "catch" command.
413 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
414 newline.
415
99894e11
JK
4162014-10-12 Miroslav Franc <mfranc@redhat.com>
417
418 Fix "save breakpoints" for "disable $bpnum" command.
419 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
420
3831839c
PA
4212014-10-10 Pedro Alves <palves@redhat.com>
422
423 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
424 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
425 (HFILES_NO_SRCDIR): Remove solib-irix.h.
426 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
427 and been removed.
428 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
429 * configure.ac: Remove references to IRIX.
430 * configure.host: Add *-*-irix* to the obsolete hosts section.
431 Remove all other references to irix.
432 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
433 Delete files.
434
cc3afae2
AKA
4352014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
436
437 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
438 isn't valid, release the tdesc arch data and return NULL.
439
cdfa0b0a
PA
4402014-10-10 Pedro Alves <palves@redhat.com>
441
442 * linux-tdep.c: Include observer.h.
443 (linux_inferior_data): New global.
444 (struct linux_info): New structure.
445 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
446 (get_linux_inferior_data): New functions.
447 (linux_vsyscall_range): Rename to ...
448 (linux_vsyscall_range_raw): ... this.
449 (linux_vsyscall_range): New function; handles caching.
450 (_initialize_linux_tdep): Register linux_inferior_data. Install
451 inferior_exit and inferior_appeared observers.
452
8b9a549d
PA
4532014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
454 Pedro Alves <palves@redhat.com>
455
456 PR symtab/14466
457 * solib-svr4.c (svr4_read_so_list): Rename to ...
458 (svr4_current_sos_1): ... this and change the function comment.
459 (svr4_current_sos): New function.
460
3437254d
PA
4612014-10-10 Pedro Alves <palves@redhat.com>
462
463 * arch-utils.c (default_vsyscall_range): New function.
464 * arch-utils.h (default_vsyscall_range): New declaration.
465 * gdbarch.sh (vsyscall_range): New hook.
466 * gdbarch.h, gdbarch.c: Regenerate.
467 * linux-tdep.c (linux_vsyscall_range): New function.
468 (linux_init_abi): Install linux_vsyscall_range as
469 vsyscall_range gdbarch hook.
470 * memrange.c (address_in_mem_range): New function.
471 * memrange.h (address_in_mem_range): New declaration.
472 * symfile-mem.c (find_vdso_size): Delete function.
473 (add_vsyscall_page): Use gdbarch_vsyscall_range.
474
31cc0b80
PA
4752014-10-10 Pedro Alves <palves@redhat.com>
476
477 * infrun.c (normal_stop): Fix typo in comment.
478
3e3286a2
SDJ
4792014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
480
481 PR tdep/9390
482 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
483 typo when using logical AND to determine instruction type.
484
fcbdedf8
YQ
4852014-10-09 Yao Qi <yao@codesourcery.com>
486
487 * infrun.c (handle_signal_stop): Remove local variable
488 'printed'.
489
db984616
SS
4902014-10-08 Stan Shebs <stan@codesourcery.com>
491
492 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
493
3ba37e6c
GB
4942014-10-08 Gary Benson <gbenson@redhat.com>
495
496 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
497
a442d071
GB
4982014-10-08 Gary Benson <gbenson@redhat.com>
499
500 * common/common-defs.h: Include common-exceptions.h.
501 * exceptions.h: Do not include common-exceptions.h.
502
6f1947e8
GB
5032014-10-08 Gary Benson <gbenson@redhat.com>
504
505 * common/common-defs.h: Include cleanups.h.
506 * common/common-exceptions.c: Do not include cleanups.h.
507 * utils.h: Likewise.
508
c765fdb9
GB
5092014-10-08 Gary Benson <gbenson@redhat.com>
510
511 * ada-lang.c: Do not include exceptions.h.
512 * ada-valprint.c: Likewise.
513 * amd64-tdep.c: Likewise.
514 * auto-load.c: Likewise.
515 * block.c: Likewise.
516 * break-catch-throw.c: Likewise.
517 * breakpoint.c: Likewise.
518 * btrace.c: Likewise.
519 * c-lang.c: Likewise.
520 * cli/cli-cmds.c: Likewise.
521 * cli/cli-interp.c: Likewise.
522 * cli/cli-script.c: Likewise.
523 * completer.c: Likewise.
524 * corefile.c: Likewise.
525 * corelow.c: Likewise.
526 * cp-abi.c: Likewise.
527 * cp-support.c: Likewise.
528 * cp-valprint.c: Likewise.
529 * darwin-nat.c: Likewise.
530 * dwarf2-frame-tailcall.c: Likewise.
531 * dwarf2-frame.c: Likewise.
532 * dwarf2loc.c: Likewise.
533 * dwarf2read.c: Likewise.
534 * eval.c: Likewise.
535 * event-loop.c: Likewise.
536 * event-top.c: Likewise.
537 * f-valprint.c: Likewise.
538 * frame-unwind.c: Likewise.
539 * frame.c: Likewise.
540 * gdbtypes.c: Likewise.
541 * gnu-v2-abi.c: Likewise.
542 * gnu-v3-abi.c: Likewise.
543 * guile/scm-auto-load.c: Likewise.
544 * guile/scm-breakpoint.c: Likewise.
545 * guile/scm-cmd.c: Likewise.
546 * guile/scm-frame.c: Likewise.
547 * guile/scm-lazy-string.c: Likewise.
548 * guile/scm-param.c: Likewise.
549 * guile/scm-symbol.c: Likewise.
550 * guile/scm-type.c: Likewise.
551 * hppa-hpux-tdep.c: Likewise.
552 * i386-tdep.c: Likewise.
553 * inf-loop.c: Likewise.
554 * infcall.c: Likewise.
555 * infcmd.c: Likewise.
556 * infrun.c: Likewise.
557 * interps.c: Likewise.
558 * interps.h: Likewise.
559 * jit.c: Likewise.
560 * linespec.c: Likewise.
561 * linux-nat.c: Likewise.
562 * linux-thread-db.c: Likewise.
563 * m32r-rom.c: Likewise.
564 * main.c: Likewise.
565 * memory-map.c: Likewise.
566 * mi/mi-cmd-break.c: Likewise.
567 * mi/mi-cmd-stack.c: Likewise.
568 * mi/mi-interp.c: Likewise.
569 * mi/mi-main.c: Likewise.
570 * monitor.c: Likewise.
571 * nto-procfs.c: Likewise.
572 * objc-lang.c: Likewise.
573 * p-valprint.c: Likewise.
574 * parse.c: Likewise.
575 * ppc-linux-tdep.c: Likewise.
576 * printcmd.c: Likewise.
577 * probe.c: Likewise.
578 * python/py-auto-load.c: Likewise.
579 * python/py-breakpoint.c: Likewise.
580 * python/py-cmd.c: Likewise.
581 * python/py-finishbreakpoint.c: Likewise.
582 * python/py-frame.c: Likewise.
583 * python/py-framefilter.c: Likewise.
584 * python/py-function.c: Likewise.
585 * python/py-gdb-readline.c: Likewise.
586 * python/py-inferior.c: Likewise.
587 * python/py-infthread.c: Likewise.
588 * python/py-lazy-string.c: Likewise.
589 * python/py-linetable.c: Likewise.
590 * python/py-param.c: Likewise.
591 * python/py-prettyprint.c: Likewise.
592 * python/py-symbol.c: Likewise.
593 * python/py-type.c: Likewise.
594 * python/py-value.c: Likewise.
595 * python/python-internal.h: Likewise.
596 * python/python.c: Likewise.
597 * record-btrace.c: Likewise.
598 * record-full.c: Likewise.
599 * regcache.c: Likewise.
600 * remote-fileio.c: Likewise.
601 * remote-mips.c: Likewise.
602 * remote.c: Likewise.
603 * rs6000-aix-tdep.c: Likewise.
604 * rs6000-nat.c: Likewise.
605 * skip.c: Likewise.
606 * solib-darwin.c: Likewise.
607 * solib-dsbt.c: Likewise.
608 * solib-frv.c: Likewise.
609 * solib-ia64-hpux.c: Likewise.
610 * solib-spu.c: Likewise.
611 * solib-svr4.c: Likewise.
612 * solib.c: Likewise.
613 * spu-tdep.c: Likewise.
614 * stack.c: Likewise.
615 * stap-probe.c: Likewise.
616 * symfile-mem.c: Likewise.
617 * symmisc.c: Likewise.
618 * target.c: Likewise.
619 * thread.c: Likewise.
620 * top.c: Likewise.
621 * tracepoint.c: Likewise.
622 * tui/tui-interp.c: Likewise.
623 * typeprint.c: Likewise.
624 * utils.c: Likewise.
625 * valarith.c: Likewise.
626 * valops.c: Likewise.
627 * valprint.c: Likewise.
628 * value.c: Likewise.
629 * varobj.c: Likewise.
630 * windows-nat.c: Likewise.
631 * xml-support.c: Likewise.
632
484933d1
MR
6332014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
634
635 * mips-tdep.c (add_offset_16): Rewrite to implement what the
636 name implies.
637 (extended_mips16_next_pc): Update accordingly.
638
ab50adb6
MR
6392014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
640
641 * mips-tdep.c (mips16_instruction_is_compact_branch): New
642 function.
643 (micromips_instruction_is_compact_branch): Likewise.
644 (mips16_scan_prologue): Terminate scanning upon seeing a branch
645 or a compact jump, reaching a jump delay slot, or seeing a
646 second non-prologue instruction.
647 (micromips_scan_prologue): Also terminate scanning upon seeing a
648 compact branch or jump, or reaching a branch or jump delay slot.
649 (mips32_scan_prologue): Terminate scanning upon reaching a branch
650 or jump delay slot, or seeing a second non-prologue instruction.
651 (mips32_instruction_has_delay_slot): Retain instruction
652 examination code only, update arguments accordingly and move
653 instruction fetch pieces to...
654 (mips32_insn_at_pc_has_delay_slot): ... this new function.
655 (micromips_instruction_has_delay_slot): Likewise and to...
656 (micromips_insn_at_pc_has_delay_slot): ... this new function.
657 (mips16_instruction_has_delay_slot): Likewise and to...
658 (mips16_insn_at_pc_has_delay_slot): ... this new function.
659 (mips_single_step_through_delay): Update accordingly.
660 (mips_adjust_breakpoint_address): Likewise.
661
ae790652
MR
6622014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
663
664 * mips-tdep.c (micromips_instruction_has_delay_slot): When
665 !mustbe32 also return 1 for 32-bit instructions.
666 (mips16_instruction_has_delay_slot): Likewise. Add an
667 explanatory comment.
668
9b807e7b
MR
6692014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
670
671 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
672 symbols special.
673
0d5ed153
MR
6742014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
675
676 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
677 update comments.
678 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
679 for the breakpoint's address. Don't preinitialize `placed_size'.
680 (insert_bp_location): Set `reqstd_address' rather than
681 `placed_address'.
682 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
683 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
684 address.
685 (bkpt_remove_location): Likewise.
686 (deprecated_insert_raw_breakpoint): Likewise.
687 (deprecated_remove_raw_breakpoint): Likewise.
688 (find_single_step_breakpoint): Likewise.
689 * mem-break.c (default_memory_insert_breakpoint): Use
690 `reqstd_address' for the breakpoint's address. Don't set
691 `placed_address' or `placed_size' if breakpoint contents couldn't
692 have been determined.
693 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
694 the breakpoint's address.
695 (remote_insert_hw_breakpoint): Likewise. Don't set
696 `placed_address' or `placed_size' if breakpoint couldn't have been
697 set.
698 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
699 `reqstd_address' for the breakpoint's address.
700 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
701 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
702 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
703 * microblaze-linux-tdep.c
704 (microblaze_linux_memory_remove_breakpoint): Likewise.
705 * monitor.c (monitor_insert_breakpoint): Likewise.
706 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
707 (procfs_insert_hw_breakpoint): Likewise.
708 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
709 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
710 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
711 * remote-mips.c (mips_insert_breakpoint): Likewise.
712 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
713
3e871532
LM
7142014-10-03 Luis Machado <lgustavo@codesourcery.com>
715
716 * valops.c (value_assign): Check for bit field assignments
717 before calling architecture-specific register value
718 conversion functions.
719
ec48dc8b
PM
7202014-10-03 Pierre Muller <muller@sourceware.org>
721
722 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
723
b57bacec
PA
7242014-10-02 Pedro Alves <palves@redhat.com>
725
726 * breakpoint.c (breakpoints_should_be_inserted_now): Use
727 threads_are_executing.
728 * breakpoint.h (breakpoints_should_be_inserted_now): Add
729 describing comment.
730 * gdbthread.h (threads_are_executing): Declare.
731 (handle_signal_stop) <random signals>: Don't print about the
732 signal here if stopping.
733 (end_stepping_range): Don't notify observers here.
734 (normal_stop): Update the thread list. If stopped by a random
735 signal or a stepping range ended, notify observers.
736 * thread.c (threads_executing): New global.
737 (init_thread_list): Clear 'threads_executing'.
738 (set_executing): Set or clear 'threads_executing'.
739 (threads_are_executing): New function.
740 (update_threads_executing): New function.
741 (update_thread_list): Use it.
742
13fd3ff3
PA
7432014-10-02 Pedro Alves <palves@redhat.com>
744
745 PR breakpoints/17431
746 * breakpoint.c (update_breakpoints_after_exec): Don't create
747 overlay, longjmp, std terminate nor exception breakpoints here.
748
32990ada
PA
7492014-10-02 Pedro Alves <palves@redhat.com>
750
751 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
752 Adjust comments.
753 * inferior.c (find_inferior_for_program_space): Give preference to
754 the current inferior.
755 * inferior.h (find_inferior_for_program_space): Update comment.
756 * progspace.c (switch_to_program_space_and_thread): Prefer the
757 current inferior if it's bound to the program space requested. If
758 the inferior found doesn't have a PID yet, don't bother looking up
759 a thread.
760 * progspace.h (switch_to_program_space_and_thread): Adjust
761 comment.
762 * thread.c (any_thread_of_process, any_live_thread_of_process):
763 Give preference to the current thread.
764
0fec99e8
PA
7652014-10-01 Pedro Alves <palves@redhat.com>
766
767 * breakpoint.c (insert_bp_location): Error out if inserting a
768 software breakpoint at a read-only address.
769 * target.c (memory_xfer_check_region): New function, factored out
770 from ...
771 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
772 ULONGEST.
773 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
774 against the memory region attributes.
775
2ddf4301
SM
7762014-10-01 Simon Marchi <simon.marchi@ericsson.com>
777
778 * NEWS: Announce new exit-code field in -list-thread-groups
779 output.
780 * inferior.c (exit_inferior_1): Don't clear exit code.
781 (inferior_appeared): Clear exit code.
782 * mi/mi-main.c (print_one_inferior): Add printing of the exit
783 code.
784
5fdeec1d
PA
7852014-10-01 Pedro Alves <palves@redhat.com>
786
787 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
788 GENERATED" along with emacs/vi read-only markers.
789 * regformats/aarch64.dat: Regenerate.
790 * regformats/arm-with-iwmmxt.dat: Regenerate.
791 * regformats/arm-with-neon.dat: Regenerate.
792 * regformats/arm-with-vfpv2.dat: Regenerate.
793 * regformats/arm-with-vfpv3.dat: Regenerate.
794 * regformats/i386/amd64-avx-linux.dat: Regenerate.
795 * regformats/i386/amd64-avx.dat: Regenerate.
796 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
797 * regformats/i386/amd64-avx512.dat: Regenerate.
798 * regformats/i386/amd64-linux.dat: Regenerate.
799 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
800 * regformats/i386/amd64-mpx.dat: Regenerate.
801 * regformats/i386/amd64.dat: Regenerate.
802 * regformats/i386/i386-avx-linux.dat: Regenerate.
803 * regformats/i386/i386-avx.dat: Regenerate.
804 * regformats/i386/i386-avx512-linux.dat: Regenerate.
805 * regformats/i386/i386-avx512.dat: Regenerate.
806 * regformats/i386/i386-linux.dat: Regenerate.
807 * regformats/i386/i386-mmx-linux.dat: Regenerate.
808 * regformats/i386/i386-mmx.dat: Regenerate.
809 * regformats/i386/i386-mpx-linux.dat: Regenerate.
810 * regformats/i386/i386-mpx.dat: Regenerate.
811 * regformats/i386/i386.dat: Regenerate.
812 * regformats/i386/x32-avx-linux.dat: Regenerate.
813 * regformats/i386/x32-avx.dat: Regenerate.
814 * regformats/i386/x32-avx512-linux.dat: Regenerate.
815 * regformats/i386/x32-avx512.dat: Regenerate.
816 * regformats/i386/x32-linux.dat: Regenerate.
817 * regformats/i386/x32.dat: Regenerate.
818 * regformats/microblaze-with-stack-protect.dat: Regenerate.
819 * regformats/mips-dsp-linux.dat: Regenerate.
820 * regformats/mips-linux.dat: Regenerate.
821 * regformats/mips64-dsp-linux.dat: Regenerate.
822 * regformats/mips64-linux.dat: Regenerate.
823 * regformats/nios2-linux.dat: Regenerate.
824 * regformats/rs6000/powerpc-32.dat: Regenerate.
825 * regformats/rs6000/powerpc-32l.dat: Regenerate.
826 * regformats/rs6000/powerpc-64l.dat: Regenerate.
827 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
828 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
829 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
830 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
831 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
832 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
833 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
834 * regformats/s390-linux32.dat: Regenerate.
835 * regformats/s390-linux32v1.dat: Regenerate.
836 * regformats/s390-linux32v2.dat: Regenerate.
837 * regformats/s390-linux64.dat: Regenerate.
838 * regformats/s390-linux64v1.dat: Regenerate.
839 * regformats/s390-linux64v2.dat: Regenerate.
840 * regformats/s390-te-linux64.dat: Regenerate.
841 * regformats/s390x-linux64.dat: Regenerate.
842 * regformats/s390x-linux64v1.dat: Regenerate.
843 * regformats/s390x-linux64v2.dat: Regenerate.
844 * regformats/s390x-te-linux64.dat: Regenerate.
845 * regformats/tic6x-c62x-linux.dat: Regenerate.
846 * regformats/tic6x-c62x.dat: Regenerate.
847 * regformats/tic6x-c64x-linux.dat: Regenerate.
848 * regformats/tic6x-c64x.dat: Regenerate.
849 * regformats/tic6x-c64xp-linux.dat: Regenerate.
850 * regformats/tic6x-c64xp.dat: Regenerate.
851
db74e4ba
PA
8522014-10-01 Pedro Alves <palves@redhat.com>
853
854 * features/Makefile: Update comments.
855 (XMLTOC): List all xml files we build C files from.
856 (clean-cfiles): New rule.
857
d63f2f84
PA
8582014-10-01 Pedro Alves <palves@redhat.com>
859
860 * features/i386/amd64-avx512-linux.c: Regenerate.
861 * features/i386/amd64-avx512.c: Regenerate.
862 * features/i386/x32-avx512-linux.c: Regenerate.
863 * features/i386/x32-avx512.c: Regenerate.
864
20ad026d
PA
8652014-10-01 Pedro Alves <palves@redhat.com>
866
867 * features/Makefile (WHICH): Remove arm-with-m,
868 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
869
acc9fe45
PA
8702014-10-01 Pedro Alves <palves@redhat.com>
871
872 * features/Makefile (clean): New rule.
873
e001e535
PA
8742014-10-01 Pedro Alves <palves@redhat.com>
875
876 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
877 (zmm14h): Add missing end quotes.
878
bdc14417
PA
8792014-10-01 Pedro Alves <palves@redhat.com>
880
881 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
882 * features/aarch64.c: Regenerate.
883
d83ad864
DB
8842014-09-30 Don Breazeal <donb@codesourcery.com>
885
886 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
887 code so as to work with follow_fork_inferior.
888 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
889 (inf_ttrace_create_inferior): Remove reference to
890 inf_ttrace_vfork_ppid.
891 (inf_ttrace_attach): Ditto.
892 (inf_ttrace_detach): Ditto.
893 (inf_ttrace_kill): Use current_inferior instead of
894 inf_ttrace_vfork_ppid.
895 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
896 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
897 inferior away from the parent.
898 * infrun.c (follow_fork): Call follow_fork_inferior instead of
899 target_follow_fork.
900 (follow_fork_inferior): New function.
901 (follow_inferior_reset_breakpoints): Make function static.
902 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
903 * linux-nat.c (linux_child_follow_fork): Move target-independent
904 code to infrun.c:follow_fork_inferior.
905
29082443
AA
9062014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
907
908 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
909 * gdbarch.c: Regenerate.
910 * gdbarch.h: Likewise.
911 * corelow.c (sniff_core_bfd): Drop presence check for deleted
912 gdbarch method 'regset_from_core_section'.
913 (get_core_register_section): Remove handling for the case that
914 regset == NULL and regset_from_core_section is defined.
915 (get_core_registers): Drop check for deleted method.
916 * procfs.c (procfs_do_thread_registers): Adjust comment.
917
f968fe80
AA
9182014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
919
920 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
921 (linux_nat_make_corefile_notes): Remove.
922 (linux_target_install_ops): Do not set target method
923 'make_corefile_notes'.
924 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
925 Remove field.
926 (linux_corefile_thread_callback): Instead of args->collect, call
927 linux_collect_thread_registers.
928 (linux_make_corefile_notes): Remove 'collect' parameter. Return
929 NULL unless there is a regset iterator.
930 (linux_make_corefile_notes_1): Remove.
931 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
932 by linux_make_corefile_notes.
933 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
934
174ad59a
AA
9352014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
936
937 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
938 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
939 Remove.
940 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
941
97094034
AA
9422014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
943
944 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
945 (xtensa_iterate_over_regset_sections): New.
946 (xtensa_gdbarch_init): Adjust gdbarch initialization.
947
f73d3ce7
AA
9482014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
949
950 * vax-tdep.c (vax_regset_from_core_section): Remove.
951 (vax_iterate_over_regset_sections): New.
952 (vax_gdbarch_init): Adjust gdbarch initialization.
953
cb24567a
AA
9542014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
955
956 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
957 (tilegx_regset_from_core_section): Remove.
958 (tilegx_iterate_over_regset_sections): New.
959 (tilegx_linux_init_abi): Adjust gdbarch initialization.
960
e5139de8
AA
9612014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
962
963 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
964 (sparc_iterate_over_regset_sections): New.
965 (sparc32_gdbarch_init): Adjust gdbarch initialization.
966 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
967 targets.
968 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
969 (sparc64fbsd_init_abi): Call fbsd_init_abi.
970 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
971 target method 'make_corefile_notes'.
972
c6d41a6f
AA
9732014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
974
975 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
976 'sizeof_gregset' and 'sizeof_fpregset'.
977 * sh-tdep.c (sh_regset_from_core_section): Remove.
978 (sh_iterate_over_regset_sections): New.
979 (sh_gdbarch_init): Adjust gdbarch initialization.
980 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
981 sizeof_fpregset.
982 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
983 'sizeof_gregset'.
984
9845a0b5
AA
9852014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
986
987 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
988 (score7_linux_iterate_over_regset_sections): New.
989 (score_gdbarch_init): Adjust gdbarch initialization.
990
23ea9aeb
AA
9912014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
992
993 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
994 FreeBSD targets.
995 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
996 method 'make_corefile_notes'.
997 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
998 (ppcfbsd_regset_from_core_section): Remove.
999 (ppcfbsd_iterate_over_regset_sections): New.
1000 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
1001 initialization.
1002 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
1003 (ppcnbsd_iterate_over_regset_sections): New.
1004 (ppcnbsd_init_abi): Adjust.
1005 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
1006 (ppcobsd_iterate_over_regset_sections): New.
1007 (ppcobsd_init_abi): Adjust.
1008 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
1009 (rs6000_aix_iterate_over_regset_sections): New.
1010 (rs6000_aix_init_osabi): Adjust.
1011
c5b8d704
AA
10122014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1013
1014 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
1015 (nios2_regset_from_core_section): Remove.
1016 (nios2_iterate_over_regset_sections): New.
1017 (nios2_linux_init_abi): Adjust gdbarch initialization.
1018
3636e608
AA
10192014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1020
1021 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
1022 (am33_iterate_over_regset_sections): New.
1023 (am33_linux_init_osabi): Adjust gdbarch initialization.
1024
d4036235
AA
10252014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1026
1027 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
1028 (mips_linux_iterate_over_regset_sections): New.
1029 (mips_linux_init_abi): Adjust gdbarch initialization.
1030 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
1031 (mips64obsd_iterate_over_regset_sections): New.
1032 (mips64obsd_init_abi): Adjust.
1033 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
1034 (mipsnbsd_iterate_over_regset_sections): New.
1035 (mipsnbsd_init_abi): Adjust.
1036
b61ddd6e
AA
10372014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1038
1039 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
1040 (m88k_iterate_over_regset_sections): New.
1041 (m88k_gdbarch_init): Adjust gdbarch initialization.
1042
55a2906a
AA
10432014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1044
1045 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
1046 (ia64_linux_iterate_over_regset_sections): New.
1047 (ia64_linux_init_abi): Adjust gdbarch initialization.
1048
022c98ab
AA
10492014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1050
1051 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
1052 (m68kbsd_iterate_over_regset_sections): New.
1053 (m68kbsd_init_abi): Adjust gdbarch initialization.
1054 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
1055 (m68k_linux_iterate_over_regset_sections): New.
1056 (m68k_linux_init_abi): Adjust gdbarch initialization.
1057
5fac247f
AA
10582014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1059
1060 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
1061 (m32r_linux_regset_from_core_section): Remove.
1062 (m32r_linux_iterate_over_regset_sections): New.
1063 (m32r_linux_init_abi): Adjust gdbarch initialization.
1064
490496c3
AA
10652014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1066
1067 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
1068 (amd64obsd_iterate_over_regset_sections): New.
1069 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
1070 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
1071 Remove.
1072 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
1073 regset_from_core_section initialization.
1074 * i386-tdep.c (i386_regset_from_core_section): Remove.
1075 (i386_iterate_over_regset_sections): New.
1076 (i386_gdbarch_init): Adjust gdbarch initialization.
1077 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
1078 (i386_iterate_over_regset_sections): New prototype.
1079 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
1080 Remove.
1081 (i386obsd_aout_iterate_over_regset_sections): New.
1082 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
1083 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
1084 targets.
1085 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
1086 (amd64fbsd_init_abi): Call fbsd_init_abi.
1087 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
1088 (i386fbsd4_init_abi): Call fbsd_init_abi.
1089 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
1090 target method 'make_corefile_notes'.
1091 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
1092
50c5eb53
AA
10932014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1094
1095 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
1096 (hppa_hpux_iterate_over_regset_sections): New.
1097 (hppa_hpux_init_abi): Adjust gdbarch initialization.
1098 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
1099 (hppa_linux_iterate_over_regset_sections): New.
1100 (hppa_linux_init_abi): Adjust.
1101 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
1102 (hppanbsd_iterate_over_regset_sections): New.
1103 (hppanbsd_init_abi): Adjust.
1104 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
1105 (hppaobsd_iterate_over_regset_sections): New.
1106 (hppaobsd_init_abi): Adjust.
1107
66afae4f
AA
11082014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1109
1110 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
1111 (frv_linux_iterate_over_regset_sections): New.
1112 (frv_linux_init_abi): Adjust gdbarch initialization.
1113
ed09174e
AA
11142014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1115
1116 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
1117 (armbsd_iterate_over_regset_sections): New prototype.
1118 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
1119 (armbsd_iterate_over_regset_sections): New.
1120 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
1121 initialization.
1122
dff2166e
AA
11232014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1124
1125 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
1126 (alpha_linux_iterate_over_regset_sections): New.
1127 (alpha_linux_init_abi): Adjust gdbarch initialization.
1128 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
1129 prototype.
1130 (alphanbsd_iterate_over_regset_sections): New prototype.
1131
4108500a
AA
11322014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1133
1134 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
1135 Remove.
1136 (aarch64_linux_iterate_over_regset_sections): New.
1137 (aarch64_linux_init_abi): Adjust gdbarch initialization.
1138
a904c024
AA
11392014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1140
1141 * fbsd-tdep.c: New file.
1142 * fbsd-tdep.h: New file.
1143 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
1144 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
1145 (ALLDEPFILES): Add fbsd-tdep.c.
1146
8f0435f7
AA
11472014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1148
1149 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
1150 parameter.
1151 * gdbarch.h: Regenerate.
1152 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
1153 iterator.
1154 (get_core_register_section): Add parameter 'regset' and use it, if
1155 set. Add parameter 'min_size' and verify the bfd section size
1156 against it.
1157 (get_core_registers_cb): Add parameter 'regset' and pass it to
1158 get_core_register section. For the "standard" register sections
1159 ".reg" and ".reg2", set an appropriate default for human_name.
1160 (get_core_registers): Don't abort when the gdbarch has an iterator
1161 but no regset_from_core_section. Add NULL/0 for parameters
1162 'regset'/'min_size' in calls to get_core_register_section.
1163 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
1164 'regset' and use it instead of calling the
1165 regset_from_core_section gdbarch method.
1166 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
1167 * i386-tdep.c (i386_supply_xstateregset)
1168 (i386_collect_xstateregset, i386_xstateregset): Moved to
1169 i386-linux-tdep.c.
1170 (i386_regset_from_core_section): Drop handling for .reg-xfp and
1171 .reg-xstate.
1172 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
1173 core file support only if the regset iterator hasn't been set.
1174 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
1175 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
1176 Moved from i386-tdep.c and renamed to *_linux*.
1177 (i386_linux_iterate_over_regset_sections): Add regset parameter to
1178 each callback invocation. Allow any .reg-xstate size when reading
1179 from a core file.
1180 * amd64-tdep.c (amd64_supply_xstateregset)
1181 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
1182 amd64-linux-tdep.c.
1183 (amd64_regset_from_core_section): Remove.
1184 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
1185 install an amd64-specific regset_from_core_section gdbarch method.
1186 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
1187 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
1188 Moved from amd64-tdep.c and renamed to *_linux*.
1189 (amd64_linux_iterate_over_regset_sections): Add regset parameter
1190 to each callback invocation. Allow any .reg-xstate size when
1191 reading from a core file.
1192 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
1193 (arm_linux_iterate_over_regset_sections): Add regset parameter to
1194 each callback invocation.
1195 (arm_linux_init_abi): No longer set the regset_from_core_section
1196 gdbarch method.
1197 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
1198 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
1199 each callback invocation.
1200 (ppc_linux_init_abi): No longer set the regset_from_core_section
1201 gdbarch method.
1202 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
1203 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
1204 (s390_regset_from_core_section): Remove.
1205 (s390_iterate_over_regset_sections): Add regset parameter to each
1206 callback invocation.
1207 (s390_gdbarch_init): No longer set the regset_from_core_section
1208 gdbarch method. Drop initialization of deleted tdep fields.
1209
5aa82d05
AA
12102014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1211
1212 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
1213 (amd64_linux_iterate_over_regset_sections): New.
1214 (amd64_linux_init_abi_common): Don't install the regset section
1215 list, but the new iterator in gdbarch.
1216 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
1217 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
1218 (arm_linux_iterate_over_regset_sections): ...here. New function.
1219 (arm_linux_init_abi): Set iterator instead of section list.
1220 * corelow.c (get_core_registers_cb): New function, logic moved
1221 from...
1222 (get_core_registers): ...loop body here. Use new iterator method
1223 instead of walking through the regset section list.
1224 * gdbarch.sh: Remove 'core_regset_sections'. New method
1225 'iterate_over_regset_sections'. New typedef
1226 'iterate_over_regset_sections_cb'.
1227 * gdbarch.c: Regenerate.
1228 * gdbarch.h: Likewise.
1229 * i386-linux-tdep.c (i386_linux_regset_sections)
1230 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
1231 Remove.
1232 (i386_linux_iterate_over_regset_sections): New.
1233 (i386_linux_init_abi): Don't choose a regset section list, but
1234 install new iterator in gdbarch.
1235 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
1236 (linux_collect_regset_section_cb): New function, logic moved
1237 from...
1238 (linux_collect_thread_registers): ...loop body here. Use iterator
1239 method instead of walking through list.
1240 (linux_make_corefile_notes_1): Check for presence of iterator
1241 method instead of regset section list.
1242 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
1243 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
1244 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
1245 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
1246 (ppc_linux_iterate_over_regset_sections): ...here. New function.
1247 (ppc_linux_init_abi): Don't choose from above regset section
1248 lists, but install new iterator in gdbarch.
1249 * regset.h (struct core_regset_section): Remove.
1250 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
1251 have_linux_v1, have_linux_v2, and have_tdb.
1252 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
1253 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
1254 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
1255 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
1256 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
1257 (s390_iterate_over_regset_sections): ...here. New function. Use
1258 new tdep fields.
1259 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
1260 regset section lists, but install new iterator.
1261
2eca4a8d
JK
12622014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1263
1264 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
1265
a73c2b56
SM
12662014-09-26 Simon Marchi <simon.marchi@ericsson.com>
1267
1268 * progspace.c (print_program_space): Don't prune program spaces
1269 before printing them.
1270
03d46957
PA
12712014-09-25 Pedro Alves <palves@redhat.com>
1272
1273 * infrun.c (user_visible_resume_ptid): Don't check
1274 singlestep_breakpoints_inserted_p.
1275
e558d7c1
PA
12762014-09-25 Pedro Alves <palves@redhat.com>
1277
1278 * breakpoint.c (should_be_inserted): Add debug output.
1279
7f89fd65
PA
12802014-09-25 Pedro Alves <palves@redhat.com>
1281
1282 * infrun.c (stepping_past_instruction_at)
1283 (clear_exit_convenience_vars): Point at infrun.h instead of
1284 inferior.h.
1285 (handle_signal_stop): Fix typo.
1286
b7576e5c
YQ
12872014-09-24 Yao Qi <yao@codesourcery.com>
1288
1289 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
1290 bitmask.
1291
9a6cf368
GB
12922014-09-22 Gary Benson <gbenson@redhat.com>
1293
1294 * target.c (target_stop): Updated comment.
1295
03f4463b
GB
12962014-09-22 Gary Benson <gbenson@redhat.com>
1297
1298 * target/target.h (target_stop_ptid): Renamed as...
1299 (target_stop_and_wait): New function. Updated comment.
1300 All uses updated.
1301 (target_continue_ptid): Renamed as...
1302 (target_continue_no_signal): New function. Updated comment.
1303 All uses updated.
1304
a25a5a45
PA
13052014-09-22 Pedro Alves <palves@redhat.com>
1306
1307 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
1308 and "auto" merged.
1309 * breakpoint.c (enum ugll_insert_mode): New enum.
1310 (always_inserted_mode): Now a plain boolean.
1311 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
1312 (breakpoints_always_inserted_mode): Delete.
1313 (breakpoints_should_be_inserted_now): New function.
1314 (insert_breakpoints): Pass UGLL_INSERT to
1315 update_global_location_list instead of calling
1316 insert_breakpoint_locations manually.
1317 (create_solib_event_breakpoint_1): New, factored out from ...
1318 (create_solib_event_breakpoint): ... this.
1319 (create_and_insert_solib_event_breakpoint): Use
1320 create_solib_event_breakpoint_1 instead of calling
1321 insert_breakpoint_locations manually.
1322 (update_global_location_list): Change parameter type from boolean
1323 to enum ugll_insert_mode. All callers adjusted. Adjust to use
1324 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
1325 (update_global_location_list_nothrow): Change parameter type from
1326 boolean to enum ugll_insert_mode.
1327 (_initialize_breakpoint): "breakpoint always-inserted" option is
1328 now a boolean command. Update help text.
1329 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
1330 (breakpoints_should_be_inserted_now): New declaration.
1331 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
1332 Remove breakpoints_always_inserted_mode check.
1333 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
1334 * remote.c (remote_start_remote): Likewise.
1335
04086b45
PA
13362014-09-22 Pedro Alves <palves@redhat.com>
1337
1338 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
1339 (insert_breakpoints): Don't call insert_breakpoint_locations here.
1340 Instead, pass UGLL_INSERT to update_global_location_list.
1341 (update_global_location_list): Change parameter type from boolean
1342 to enum ugll_insert_mode. All callers adjusted. Adjust to use
1343 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
1344 (create_solib_event_breakpoint_1): New, factored out from ...
1345 (create_solib_event_breakpoint): ... this.
1346 (create_and_insert_solib_event_breakpoint): Use
1347 create_solib_event_breakpoint_1 instead of calling
1348 insert_breakpoint_locations manually.
1349 (update_global_location_list): Handle UGLL_INSERT.
1350
44702360
PA
13512014-09-22 Pedro Alves <palves@redhat.com>
1352
1353 * breakpoint.c (enum ugll_insert_mode): New enum.
1354 (update_global_location_list)
1355 (update_global_location_list_nothrow): Change parameter type from
1356 boolean to enum ugll_insert_mode. All callers adjusted.
1357
93c6145a
JB
13582014-09-19 Joel Brobecker <brobecker@adacore.com>
1359
1360 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
1361 SystemTap support in GDB.
1362
89a5711c
DB
13632014-09-19 Don Breazeal <donb@codesourcery.com>
1364
1365 * linux-nat.c (linux_handle_extended_wait): Call
1366 linux_ptrace_get_extended_event.
1367 (wait_lwp): Call linux_is_extended_waitstatus.
1368 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
1369 and linux_is_extended_waitstatus.
1370 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
1371 linux_ptrace_get_extended_event.
1372 (linux_ptrace_get_extended_event): New function.
1373 (linux_is_extended_waitstatus): New function.
1374 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
1375 (linux_is_extended_waitstatus): New declarations.
1376
c3b7b696
YQ
13772014-09-19 Yao Qi <yao@codesourcery.com>
1378
1379 * dwarf2read.c (dwarf_decode_lines): Update declaration.
1380 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
1381 comments. Callers update.
1382 (dwarf_decode_lines): Likewise.
1383 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
1384 comments. Skip the line table if 'lowpc' is greater than
1385 'address'. Don't check
1386 dwarf2_per_objfile->has_section_at_zero.
1387
2b4fd423
DE
13882014-09-18 Doug Evans <dje@google.com>
1389
1390 * NEWS: Mention new "producer" attribute of gdb.Symtab.
1391 * python/py-symtab.c (stpy_get_producer): New function.
1392 (symtab_object_getset): Add "producer" attribute.
1393
5e43d467
UW
13942014-09-17 Ulrich Weigand  <uweigand@de.ibm.com>
1395
1396 PR gdb/17384
1397 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
1398 (do_captured_read_memory_integer): Remove.
1399 (safe_read_memory_integer): Use target_read_memory directly instead
1400 of catching errors in do_captured_read_memory_integer.
1401
04e79979
MR
14022014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
1403
1404 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
1405 not gdb/doc.
1406
76aeec5b
SDJ
14072014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1408
1409 * objc-lang.c (find_implementation_from_class): Remove dead code.
1410
2f693f9d
SDJ
14112014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1412
1413 PR cli/7233
1414 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
1415 "fprintf_unfiltered (gdb_stdlog...)".
1416
bb9d5f81
PP
14172014-09-16 Patrick Palka <patrick@parcs.ath.cx>
1418
1419 PR breakpoints/12526
1420 * breakpoint.h (struct watchpoint): New fields val_bitpos and
1421 val_bitsize.
1422 * breakpoint.c (watch_command_1): Use these fields to retain
1423 bitfield information.
1424 (extract_bitfield_from_watchpoint_value): New function.
1425 (watchpoint_check): Use it.
1426 (update_watchpoint): Use it. Optimize the address and length of a
1427 HW watchpoint pointing to a bitfield.
1428 * value.h (unpack_value_bitfield): New prototype.
1429 * value.c (unpack_value_bitfield): Make extern.
1430
05db5edd
ST
14312014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
1432
1433 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
1434 x86-dregs.o.
1435 * gnu-nat.c (inf_threads): New function.
1436 * gnu-nat.h (inf_threads_ftype): New typedef.
1437 (inf_threads): New declaration.
1438 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
1439 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
1440 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
1441 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
1442 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
1443 (i386_gnu_dr_get_control): New functions.
1444 (reg_addr): New structure.
1445 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
1446 i386 debugging register hooks.
1447 * NEWS: Mention this.
1448
5a578da5
OJ
14492014-08-13 Omair Javaid <omair.javaid@linaro.org>
1450
1451 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
1452 vector data transfer instructions.
1453 (arm_record_coproc_data_proc): Updated.
1454
f20f80dd
OJ
14552014-08-13 Omair Javaid <omair.javaid@linaro.org>
1456
1457 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
1458 arm_record_exreg_ld_st_insn.
1459 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
1460 load/store insns.
1461
851f26ae
OJ
14622014-08-13 Omair Javaid <omair.javaid@linaro.org>
1463
1464 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
1465 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
1466 processing instructions.
1467
1e1b6563
OJ
14682014-08-13 Omair Javaid <omair.javaid@linaro.org>
1469
1470 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
1471 for advance SIMD struct ld/st insn.
1472 (thumb2_record_decode_insn_handler): Replace stub handler with
1473 thumb2_record_asimd_struct_ld_st.
1474
60cc5e93
OJ
14752014-08-13 Omair Javaid <omair.javaid@linaro.org>
1476
1477 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
1478 for asimd, vfp and coprocessor insns.
1479 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
1480 and coprocessor insns.
1481 (thumb2_record_coproc_insn): New function.
1482 (thumb2_record_decode_insn_handler): Update coprocessor insns record
1483 handlers.
1484 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
1485 opcode 110 insns.
1486
81219e53
DE
14872014-09-13 Doug Evans <xdje42@gmail.com>
1488
1489 * NEWS: Mention new "queue-signal" command.
1490 * infcmd.c (queue_signal_command): New function.
1491 (_initialize_infcmd): Add new queue-signal command.
1492
d36bf488
DE
14932014-09-13 Doug Evans <xdje42@gmail.com>
1494
1495 * linux-nat.c (wait_lwp): Add debugging printf.
1496 (linux_nat_wait_1): Ditto.
1497
f37f681c
PA
14982014-09-12 Pedro Alves <palves@redhat.com>
1499
1500 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
1501 (create_and_insert_solib_event_breakpoint): New functions.
1502 * breakpoint.h (create_and_insert_solib_event_breakpoint)
1503 (remove_solib_event_breakpoints_at_next_stop): New declarations.
1504 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
1505 (remove_dbx_link_breakpoint): Delete function.
1506 (insert_dbx_link_bpt_in_file): Use
1507 create_and_insert_solib_event_breakpoint instead of
1508 deprecated_insert_raw_breakpoint.
1509 (procfs_wait): Don't check whether we hit __dbx_link here.
1510 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
1511 here.
1512 * solib-irix.c (base_breakpoint): Delete global.
1513 (disable_break): Delete function.
1514 (enable_break): Use create_solib_event_breakpoint
1515 instead of deprecated_insert_raw_breakpoint.
1516 (irix_solib_handle_event): New function.
1517 (irix_solib_create_inferior_hook): Don't run the target or disable
1518 the mapping-complete breakpoint here.
1519 (_initialize_irix_solib): Install irix_solib_handle_event as
1520 so_ops->handle_event hook.
1521
9d9bf2df
EBM
15222014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1523 Ulrich Weigand  <uweigand@de.ibm.com>
1524
1525 PR tdep/17379
1526 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
1527 instead of read_memory_unsigned_integer.
1528
b006a80e
GB
15292014-09-12 Gary Benson <gbenson@redhat.com>
1530
1531 * nat/linux-waitpid.c: Include common-defs.h.
1532 [GDBSERVER]: Add FIXME comment.
1533 [!GDBSERVER]: Don't include defs.h or signal.h.
1534 (linux_debug) [!GDBSERVER]: Remove empty block.
1535
296b1496
GB
15362014-09-12 Gary Benson <gbenson@redhat.com>
1537
1538 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
1539 Don't include defs.h or server.h.
1540
53f81362
GB
15412014-09-12 Gary Benson <gbenson@redhat.com>
1542
1543 * nat/linux-btrace.c: Include common-defs.h.
1544 Don't include defs.h, server.h or gdbthread.h.
1545 * nat/linux-btrace.h (struct target_ops): New forward declaration.
1546
727605ca
GB
15472014-09-12 Gary Benson <gbenson@redhat.com>
1548
1549 * common/agent.c: Include common-defs.h.
1550 Don't include defs.h or server.h.
1551 * common/buffer.c: Likewise.
1552 * common/common-debug.c: Likewise.
1553 * common/common-utils.c: Likewise.
1554 * common/errors.c: Likewise.
1555 * common/filestuff.c: Likewise.
1556 * common/format.c: Likewise.
1557 * common/gdb_vecs.c: Likewise.
1558 * common/print-utils.c: Likewise.
1559 * common/ptid.c: Likewise.
1560 * common/rsp-low.c: Likewise.
1561 * common/signals.c: Likewise.
1562 * common/vec.c: Likewise.
1563 * common/xml-utils.c: Likewise.
1564 * nat/linux-osdata.c: Likewise.
1565 * nat/linux-procfs.c: Likewise.
1566 * nat/linux-ptrace.c: Likewise.
1567 * nat/mips-linux-watch.c: Likewise.
1568 * target/waitstatus.c: Likewise.
1569
361c8ade
GB
15702014-09-12 Tom Tromey <tromey@redhat.com>
1571 Gary Benson <gbenson@redhat.com>
1572
1573 * common/common-regcache.h: New file.
1574 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
1575 * regcache.h: Include common-regcache.h.
1576 (regcache_read_pc): Don't declare.
1577 * regcache.c (get_thread_regcache_for_ptid): New function.
1578 * nat/linux-btrace.c: Don't include regcache.h.
1579 Include common-regcache.h.
1580 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
1581
a01cbb49
TS
15822014-09-11 Thomas Schwinge <thomas@codesourcery.com>
1583
1584 * regcache.h (struct regset): Declare.
1585
98880d46
PA
15862014-09-11 Pedro Alves <palves@redhat.com>
1587
1588 PR gdb/17347
1589 * main.c: Include "infrun.h".
1590 (catch_command_errors, catch_command_errors_const): Wait for the
1591 foreground command to complete.
1592 * top.c (maybe_wait_sync_command_done): New function, factored out
1593 from ...
1594 (maybe_wait_sync_command_done): ... here.
1595 * top.h (maybe_wait_sync_command_done): New declaration.
1596
bd9269f7
GB
15972014-09-11 Tom Tromey <tromey@redhat.com>
1598 Gary Benson <gbenson@redhat.com>
1599
1600 * common/symbol.h: New file.
1601 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
1602 * minsyms.c (find_minimal_symbol_address): New function.
1603 * common/agent.c: Include common/symbol.h.
1604 [!GDBSERVER]: Don't include objfiles.h.
1605 (agent_look_up_symbols): Use find_minimal_symbol_address.
1606
f8c1d06b
GB
16072014-09-11 Gary Benson <gbenson@redhat.com>
1608
1609 * target/target.h (target_stop_ptid, target_continue_ptid):
1610 Declare.
1611 * target.c (target_stop_ptid, target_continue_ptid): New
1612 functions.
1613 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
1614 (agent_run_command): Always use target_stop_ptid and
1615 target_continue_ptid.
1616
721ec300
GB
16172014-09-11 Tom Tromey <tromey@redhat.com>
1618 Gary Benson <gbenson@redhat.com>
1619
1620 * target/target.h: New file.
1621 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
1622 * target.h: Include target/target.h.
1623 (target_read_memory, target_write_memory): Don't declare.
1624 * target.c (target_read_uint32): New function.
1625 * common/agent.c: Include target/target.h.
1626 [!GDBSERVER]: Don't include target.h.
1627 (helper_thread_id): Type changed to uint32_t.
1628 (agent_get_helper_thread_id): Use target_read_uint32.
1629 (agent_run_command): Always use target_read_memory and
1630 target_write_memory.
1631 (agent_capability): Type changed to uint32_t.
1632 (agent_capability_check): Use target_read_uint32.
1633
c5e92cca
GB
16342014-09-11 Gary Benson <gbenson@redhat.com>
1635
1636 * common/common-debug.h (show_debug_regs): Declare.
1637 * common/common-debug.c (show_debug_regs): Define.
1638 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
1639 all uses with show_debug_regs. Replace all uses that considered
1640 debug_hw_points as a multi-value integer with straight boolean
1641 uses.
1642 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
1643 with show_debug_regs.
1644 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
1645 all uses with show_debug_regs.
1646 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
1647 uses with show_debug_regs.
1648
eeef931a
UW
16492014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
1650
1651 * findvar.c (address_from_register): Handle targets requiring
1652 a special conversion routine even for plain pointer types.
1653
8efa9855
UW
16542014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
1655
1656 * rs6000-nat.c (exec_one_dummy_insn): Remove.
1657 (store_register): Do not call exec_one_dummy_insn.
1658
eb479039
JB
16592014-09-10 Joel Brobecker <brobecker@adacore.com>
1660
1661 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
1662 dereference it first. Use value_enclosing_type instead of
1663 value_type.
1664 (ada_array_length): Likewise.
1665
deede10c
JB
16662014-09-10 Joel Brobecker <brobecker@adacore.com>
1667
1668 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
1669 Adjust function implementation and documentation accordingly.
1670 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
1671 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
1672 Update call to ada_value_ptr_subscript.
1673
7828a5f5
JB
16742014-09-10 Joel Brobecker <brobecker@adacore.com>
1675
1676 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
1677 instead of VAL's type.
1678
35782f14
JB
16792014-09-10 Joel Brobecker <brobecker@adacore.com>
1680
1681 * amd64-linux-nat.c: Add <sys/uio.h> #include.
1682
d342a0da
DE
16832014-09-09 Doug Evans <xdje42@gmail.com>
1684
1685 PR guile/17367
1686 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
1687 last parameter to pkg-config, not first.
1688 * configure.ac: Pass --with-guile provided pkg-config path to
1689 GDB_GUILE_PROGRAM_NAMES.
1690 * configure: Regenerate.
1691
b4a3d263
GKB
16922014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
1693
1694 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
1695 Bertazi".
1696
6e466374
MR
16972014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
1698
1699 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
1700 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
1701 the list of sections determining GDB_OSABI_IRIX.
1702
a1ada89a
JH
17032014-09-09 James Hogan <james.hogan@imgtec.com>
1704
1705 * MAINTAINERS (Write After Approval): Add "James Hogan".
1706
86db008d
JH
17072014-09-09 James Hogan <james.hogan@imgtec.com>
1708
1709 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
1710
72fde3df
JB
17112014-09-09 Joel Brobecker <brobecker@adacore.com>
1712
1713 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
1714
92d8d229
DE
17152014-09-08 Doug Evans <xdje42@gmail.com>
1716
1717 PR 17247
1718 * guile.c: #include <signal.h>.
1719 (_initialize_guile): Block SIGCHLD while initializing Guile.
1720
1721 Replaces the following, which is reverted.
1722
1723 2014-07-26 Doug Evans <xdje42@gmail.com>
1724
1725 PR 17185
1726 * configure.ac: Add check for header gc/gc.h.
1727 Add check for function setenv.
1728 * configure: Regenerate.
1729 * config.in: Regenerate.
1730 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1731
d81412aa
DE
17322014-09-08 Doug Evans <xdje42@gmail.com>
1733
1734 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
1735 with named constant. Fix style of pointer comparison.
1736 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
1737
a9f116cb
GKB
17382014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
1739
1740 PR gdb/17035
1741 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
1742 decide whether we display the command on "show user".
1743 * cli/cli-script.c (show_user_1): Only verify cmdlines after
1744 printing command name.
1745 * cli/cli-decode.h (cli_user_command_p): Declare new function.
1746 * cli/cli-decode.c (cli_user_command_p): Create helper function
1747 to verify whether cmd_list_element is a user-defined command.
1748
c75bd3a2
JK
17492014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1750
1751 PR python/17355
1752 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
1753 Fix goto out of TRY_CATCH.
1754
faa42425 17552014-09-06 Doug Evans <xdje42@gmail.com>
1a52a81c 1756 Tom Tromey <tromey@redhat.com>
faa42425
DE
1757
1758 PR 15276
1759 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
1760 $_any_caller_matches.
1761 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
1762 * python/lib/gdb/function/caller_is.py: New file.
1763
0d41ba00
DE
17642014-09-06 Doug Evans <xdje42@gmail.com>
1765
1766 * infcmd.c (program_info): Fix typo.
1767
474ca4f6
SDJ
17682014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
1769
1770 PR gdb/17235
1771 * stap-probe.c (stap_parse_single_operand): Delete unused variable
1772 'number'. New variable 'has_digit'. Rewrite code to deal with
1773 subexpressions on SDT probes.
1774
ebf13736
PA
17752014-09-04 Pedro Alves <palves@redhat.com>
1776
1777 * c-exp.y (parse_number): Skip handling base-switching prefixes if
1778 the input is only one character long.
1779
eb0b0463
SDJ
17802014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
1781
1782 PR fortran/17237
1783 * f-valprint.c (f_val_print): Specify the correct print option to
1784 use when printing integer values.
1785
5ee44bfa
GB
17862014-09-04 Gary Benson <gbenson@redhat.com>
1787
1788 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
1789 Remove code to cope with LWPs wrapped as PIDs.
1790 Add assertions to ensure no wrapped LWPs are passed.
1791
4875ffdb
PA
17922014-09-04 Pedro Alves <palves@redhat.com>
1793
1794 * value.c (value_ranges_copy_adjusted): New function, factored out
1795 from ...
1796 (value_contents_copy_raw): ... here.
1797 (unpack_value_bits_as_long_1): Rename back to ...
1798 (unpack_bits_as_long): ... this. Remove 'original_value' and
1799 'result' parameters. Change return type to LONGEST.
1800 (unpack_value_bits_as_long): Delete.
1801 (unpack_value_field_as_long_1): Delete.
1802 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
1803 (unpack_value_bitfield): New function.
1804 (value_field_bitfield): Reimplement using unpack_value_bitfield.
1805 (value_fetch_lazy): Use unpack_value_bitfield.
1806 * value.h (unpack_value_bits_as_long): Delete declaration.
1807
5f3b99cf
SS
18082014-09-03 Sasha Smundak <asmundak@google.com>
1809
1810 * python/py-frame.c (frapy_read_register): New function.
1811
ac740bc7
JH
18122014-09-03 James Hogan <james.hogan@imgtec.com>
1813
1814 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
1815 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
1816
7d793aa9
SDJ
18172014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
1818
1819 PR python/16699
1820 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
1821 function.
1822 (add_cmd): Set "completer_handle_brkchars" to NULL.
1823 * cli/cli-decode.h (struct cmd_list_element)
1824 <completer_handle_brkchars>: New field.
1825 * command.h (completer_ftype_void): New typedef.
1826 (set_cmd_completer_handle_brkchars): New prototype.
1827 * completer.c (set_gdb_completion_word_break_characters): New
1828 function.
1829 (complete_line_internal): Call "completer_handle_brkchars"
1830 callback from command.
1831 * completer.h: Include "command.h".
1832 (set_gdb_completion_word_break_characters): New prototype.
1833 * python/py-cmd.c (cmdpy_completer_helper): New function.
1834 (cmdpy_completer_handle_brkchars): New function.
1835 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
1836 (cmdpy_init): Set completer_handle_brkchars to
1837 cmdpy_completer_handle_brkchars.
1838
97ea6506
GB
18392014-09-03 Gary Benson <gbenson@redhat.com>
1840
1841 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
1842 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
1843 Loop conditions changed to equivalent form.
1844 (struct x86_debug_reg_state): Updated dr_ref_count comment.
1845 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
1846 ALL_DEBUG_ADDRESS_REGISTERS.
1847
d1437815
JB
18482014-09-03 Joel Brobecker <brobecker@adacore.com>
1849
1850 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
1851 description fix.
1852
9b94fcf1
DE
18532014-09-02 Doug Evans <dje@google.com>
1854
1855 * typeprint.c (find_global_typedef): Fix comment.
1856
df7e5265
GB
18572014-09-02 Gary Benson <gbenson@redhat.com>
1858
1859 * i386-nat.h: Renamed as...
1860 * x86-nat.h: New file. All type, function and variable name
1861 prefixes changed from "i386_" to "x86_". All references updated.
1862 * i386-nat.c: Renamed as...
1863 * x86-nat.c: New file. All type, function and variable name
1864 prefixes changed from "i386_" to "x86_". All references updated.
1865 * common/i386-xstate.h: Renamed as...
1866 * common/x86-xstate.h: New file. All type, function and variable
1867 name prefixes changed from "i386_" to "x86_". All references
1868 updated.
1869 * nat/i386-cpuid.h: Renamed as...
1870 * nat/x86-cpuid.h: New file. All type, function and variable name
1871 prefixes changed from "i386_" to "x86_". All references updated.
1872 * nat/i386-gcc-cpuid.h: Renamed as...
1873 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
1874 name prefixes changed from "i386_" to "x86_". All references
1875 updated.
1876 * nat/i386-dregs.h: Renamed as...
1877 * nat/x86-dregs.h: New file. All type, function and variable name
1878 prefixes changed from "i386_" to "x86_". All references updated.
1879 * nat/i386-dregs.c: Renamed as...
1880 * nat/x86-dregs.c: New file. All type, function and variable name
1881 prefixes changed from "i386_" to "x86_". All references updated.
1882
1c3569d4
MR
18832014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
1884
1885 * varobj.c (_initialize_varobj): Move to the end of file.
1886
ff55e1b5
GB
18872014-08-29 Gary Benson <gbenson@redhat.com>
1888
1889 * common/common-exceptions.h: New file.
1890 * common/common-exceptions.c: Likewise.
1891 * Makefile.in (SFILES): Add common/common-exceptions.c.
1892 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
1893 (COMMON_OBS): Add common-exceptions.o.
1894 (common-exceptions.o): New rule.
1895 * exceptions.h (common-exceptions.h): Include.
1896 (gdb_setjmp.h): Do not include.
1897 (return_reason): Moved to common-exceptions.h.
1898 (enum return_reason): Likewise.
1899 (RETURN_MASK): Likewise.
1900 (typedef return_mask): Likewise.
1901 (enum errors): Likewise.
1902 (struct gdb_exception): Likewise.
1903 (exceptions_state_mc_init): Likewise.
1904 (exceptions_state_mc_action_iter): Likewise.
1905 (exceptions_state_mc_action_iter_1): Likewise.
1906 (TRY_CATCH): Likewise.
1907 (throw_exception): Likewise.
1908 (throw_verror): Likewise.
1909 (throw_vquit): Likewise.
1910 (throw_error): Likewise.
1911 (throw_quit): Likewise.
1912 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
1913 (enum catcher_action): Likewise.
1914 (struct catcher): Likewise.
1915 (current_catcher): Likewise.
1916 (catcher_list_size): Likewise.
1917 (exceptions_state_mc_init): Likewise.
1918 (catcher_pop): Likewise.
1919 (exceptions_state_mc): Likewise.
1920 (exceptions_state_mc_action_iter): Likewise.
1921 (exceptions_state_mc_action_iter_1): Likewise.
1922 (throw_exception): Likewise.
1923 (exception_messages): Likewise.
1924 (exception_messages_size): Likewise.
1925 (throw_it): Likewise.
1926 (throw_verror): Likewise.
1927 (throw_vquit): Likewise.
1928 (throw_error): Likewise.
1929 (throw_quit): Likewise.
1930 (prepare_to_throw_exception): New function.
1931
e9bcb658
GB
19322014-08-29 Gary Benson <gbenson@redhat.com>
1933
1934 * common/gdb_setjmp.h: New file.
1935 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
1936 * configure.ac: Move sigsetjmp check...
1937 * common/common.m4: ...here.
1938 * configure: Regenerate.
1939 * cp-support.c (SIGJMP_BUF): Delete.
1940 (SIGSETJMP): Likewise.
1941 (SIGLONGJMP): Likewise.
1942 * exceptions.h (gdb_setjmp.h): Include.
1943 (setjmp.h): Do not include.
1944 (EXCEPTIONS_SIGJMP_BUF): Delete.
1945 (EXCEPTIONS_SIGSETJMP): Likewise.
1946 (EXCEPTIONS_SIGLONGJMP): Likewise.
1947 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
1948 from gdb_setjmp.h.
1949 * exceptions.c: Likewise.
1950
e3180625
GB
19512014-08-29 Gary Benson <gbenson@redhat.com>
1952
1953 * cleanups.h: Moved to...
1954 * common/cleanups.h: New file.
1955 * cleanups.c: Moved to...
1956 * common/cleanups.c: New file. Include common-defs.h and
1957 cleanups.h. Do not include defs.h.
1958 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
1959 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
1960 (cleanups.o): New rule.
1961
e3d6ba5d
GB
19622014-08-29 Gary Benson <gbenson@redhat.com>
1963
1964 * common/errors.h (internal_warning): New declaration.
1965 (internal_vwarning): Likewise.
1966 * common/errors.c (internal_warning): New function.
1967 * utils.h (internal_warning): Don't declare.
1968 (internal_vwarning): Likewise.
1969 * utils.c (internal_warning): Removed.
1970
075c7033
GB
19712014-08-29 Gary Benson <gbenson@redhat.com>
1972
1973 * main.c (captured_main): Use warning during startup.
1974 Prefix startup warning messages with command name.
1975
91b35fd0
GB
19762014-08-29 Gary Benson <gbenson@redhat.com>
1977
1978 * main.c (captured_main): Handle usage errors with error.
1979
b1ec390e
GB
19802014-08-29 Gary Benson <gbenson@redhat.com>
1981
1982 * go32-nat.c (go32_create_inferior): Replace a fprintf/
1983 exit pair with a call to error. Wrap the message with _().
1984
fd0ef3dd
GB
19852014-08-29 Gary Benson <gbenson@redhat.com>
1986
1987 * main.c (captured_main): Replace a fprintf/exit
1988 pair with a call to error. Wrap the message with _().
1989
e0e6bcab
GB
19902014-08-29 Gary Benson <gbenson@redhat.com>
1991
1992 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
1993 pairs with calls to error. Wrap the message with _().
1994
0d2f5c07
GB
19952014-08-29 Gary Benson <gbenson@redhat.com>
1996
1997 * utils.c (vwarning): Protect calls to target_terminal_ours
1998 and wrap_here.
1999
5df43998
GB
20002014-08-29 Gary Benson <gbenson@redhat.com>
2001
2002 * exceptions.c (print_flush): Protect calls to
2003 target_terminal_ours and wrap_here.
2004
2437fd32
GB
20052014-08-29 Gary Benson <gbenson@redhat.com>
2006
2007 * utils.h (filtered_printing_initialized): New declaration.
2008 * utils.c (abort_with_message): New function.
2009 (internal_vproblem): Use abort_with_message for first level
2010 recursive internal problems, and if gdb_stderr is not set up.
2011 Protect calls to target_terminal_ours, begin_line and query.
2012
f1f58506
DE
20132014-08-28 Doug Evans <dje@google.com>
2014
2015 * symtab.c (in_prologue): Move definition to better spot.
2016 (skip_prologue_using_sal): Ditto.
2017
aab2f208
DE
20182014-08-28 Doug Evans <dje@google.com>
2019
2020 * symtab.c (find_function_start_sal): Move definition to better spot.
2021
6b65d1b6
YQ
20222014-08-28 Yao Qi <yao@codesourcery.com>
2023
2024 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
2025 found_stack_adjust in forward scan. Remove condition check
2026 on found_stack_adjust which is always true. Indent the code.
2027
a1b34d15
YQ
20282014-08-28 Yao Qi <yao@codesourcery.com>
2029
2030 * dwarf2read.c (dwarf_decode_lines): Update declaration.
2031 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
2032 (dwarf_decode_lines): Remove argument
2033 want_line_info. Remove condition check on want_line_info.
2034 Callers update.
2035
d5962de5
DE
20362014-08-27 Doug Evans <dje@google.com>
2037
2038 * dwarf2read.c (dwarf_record_line): Fix typo.
2039
9b139002
SDJ
20402014-08-27 Patrick Palka <patrick@parcs.ath.cx>
2041
2042 * target.h (struct target_ops::to_terminal_save_ours): Remove
2043 declaration.
2044 (target_terminal_save_ours): Remove macro.
2045 * target-delegates.c: Regenerate.
2046 * inf-child.c (inf_child_target): Don't set the nonexistent
2047 field to_terminal_save_ours.
2048 * inferior.h (child_terminal_save_ours): Remove declaration.
2049 * terminal.h (gdb_save_tty_state): New declaration.
2050 * inflow.c (child_terminal_save_ours): Rename to ...
2051 (gdb_save_tty_state): ... this.
2052 * tui/tui.c: Include terminal.h.
2053 (tui_enable): Use gdb_save_tty_state instead of
2054 target_terminal_save_ours.
2055 (tui_disable): Likewise.
2056
9debeba0
DE
20572014-08-25 Doug Evans <dje@google.com>
2058
2059 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
2060 Pass NULL instead of 0 for context pointer.
2061
428fc5fc
YQ
20622014-08-25 Yao Qi <yao@codesourcery.com>
2063
2064 * dwarf2read.c: Fix grammatical error.
2065
cdc07690
YQ
20662014-08-24 Yao Qi <yao@codesourcery.com>
2067
2068 * dwarf2read.c (scan_partial_symbols): Update comments.
2069 Rename argument 'need_pc' with 'set_addrmap'.
2070 (add_partial_namespace): Rename argument 'need_pc' with
2071 'set_addrmap'.
2072 (add_partial_module): Likewise.
2073 (add_partial_subprogram): Likewise. Update comments.
2074 (dwarf2_name): Fix typo.
2075
a05a36a5
DE
20762014-08-22 Doug Evans <dje@google.com>
2077
2078 PR 17276
2079 * dwarf2read.c (dwarf_record_line_p): New function.
2080 (dwarf_decode_lines_1): Ignore subsequent line number entries
2081 for the same line if any entry had a non-zero discriminator.
2082
252a6764
DE
20832014-08-22 Doug Evans <dje@google.com>
2084
2085 * buildsym.h (record_line_ftype): New typedef.
2086 (record_line): Use it.
2087 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
2088 (dwarf_decode_lines_1): Call them.
2089
510db052
YQ
20902014-08-22 Yao Qi <yao@codesourcery.com>
2091
2092 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
2093 (ctf_end): Remove code.
2094
22fd09ae
JK
20952014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2096
2097 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
2098 (linux_make_corefile_notes): call update_thread_list, protected against
2099 exceptions.
2100
656e8868
PA
21012014-08-21 Pedro Alves <palves@redhat.com>
2102
2103 * infcmd.c (attach_command): Remove comment.
2104
de589d04
WN
21052014-08-21 Bin Cheng <bin.cheng@arm.com>
2106
2107 * aarch64-linux-nat.c (dr_changed_t): Change the type from
2108 unsigned LONGEST to ULONGEST.
2109
2a31c623
PA
21102014-08-20 Pedro Alves <palves@redhat.com>
2111
2112 * Makefile.in (check-read1): New rule.
2113
d36430db
JB
21142014-08-20 Joel Brobecker <brobecker@adacore.com>
2115
2116 * value.c (value_from_contents_and_address): Strip resolved_type's
2117 typedef layers before checking its TYPE_DATA_LOCATION.
2118
000339af
PA
21192014-08-20 Pedro Alves <palves@redhat.com>
2120
2121 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
2122
5f52445b
YQ
21232014-08-20 Yao Qi <yao@codesourcery.com>
2124
2125 * amd64-tdep.c (amd64_classify): Add a blank line after the
2126 example. Move "*/" to a new line.
2127 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
2128 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
2129 * dwarf2read.c (psymtab_include_file_name): Likewise.
2130
9a0dc9e3
PA
21312014-08-19 Andrew Burgess <aburgess@broadcom.com>
2132 Pedro Alves <palves@redhat.com>
2133
2134 PR symtab/14604
2135 PR symtab/14605
2136 * ada-lang.c (coerce_unspec_val_to_type): Use
2137 value_contents_copy_raw.
2138 * ada-valprint.c (val_print_packed_array_elements): Adjust.
2139 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
2140 * cp-valprint.c (cp_print_value_fields): Let the common printing
2141 code handle optimized out values.
2142 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
2143 * d-valprint.c (dynamic_array_type): Use
2144 value_bits_any_optimized_out.
2145 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
2146 check_any_valid fields.
2147 (check_pieced_value_bits): Delete and inline ...
2148 (check_pieced_synthetic_pointer): ... here.
2149 (check_pieced_value_validity): Delete.
2150 (check_pieced_value_invalid): Delete.
2151 (pieced_value_funcs): Remove check_validity and check_any_valid
2152 fields.
2153 (read_pieced_value): Use mark_value_bits_optimized_out.
2154 (write_pieced_value): Switch to use
2155 mark_value_bytes_optimized_out.
2156 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
2157 of assuming the whole value is optimized out.
2158 * findvar.c (read_frame_register_value): Remove special handling
2159 of optimized out registers.
2160 (value_from_register): Use mark_value_bytes_optimized_out.
2161 * frame-unwind.c (frame_unwind_got_optimized): Use
2162 mark_value_bytes_optimized_out.
2163 * jv-valprint.c (java_value_print): Adjust.
2164 (java_print_value_fields): Let the common printing code handle
2165 optimized out values.
2166 * mips-tdep.c (mips_print_register): Remove special handling of
2167 optimized out registers.
2168 * opencl-lang.c (lval_func_check_validity): Delete.
2169 (lval_func_check_any_valid): Delete.
2170 (opencl_value_funcs): Remove check_validity and check_any_valid
2171 fields.
2172 * p-valprint.c (pascal_object_print_value_fields): Let the common
2173 printing code handle optimized out values.
2174 * stack.c (read_frame_arg): Remove special handling of optimized
2175 out values. Fetch both VAL and ENTRYVAL before comparing
2176 contents. Adjust to value_available_contents_eq rename.
2177 * valprint.c (valprint_check_validity)
2178 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
2179 (val_print_array_elements): Adjust.
2180 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
2181 (value_bits_any_optimized_out): New function.
2182 (value_entirely_covered_by_range_vector): New function, factored
2183 out from value_entirely_unavailable.
2184 (value_entirely_unavailable): Reimplement.
2185 (value_entirely_optimized_out): New function.
2186 (insert_into_bit_range_vector): New function, factored out from
2187 mark_value_bits_unavailable.
2188 (mark_value_bits_unavailable): Reimplement.
2189 (struct ranges_and_idx): New struct.
2190 (find_first_range_overlap_and_match): New function, factored out
2191 from value_available_contents_bits_eq.
2192 (value_available_contents_bits_eq): Rename to ...
2193 (value_contents_bits_eq): ... this. Check both unavailable
2194 contents and optimized out contents.
2195 (value_available_contents_eq): Rename to ...
2196 (value_contents_eq): ... this.
2197 (allocate_value_lazy): Remove reference to the old optimized_out
2198 boolean.
2199 (allocate_optimized_out_value): Use
2200 mark_value_bytes_optimized_out.
2201 (require_not_optimized_out): Adjust to check whether the
2202 optimized_out vec is empty.
2203 (ranges_copy_adjusted): New function, factored out from
2204 value_contents_copy_raw.
2205 (value_contents_copy_raw): Also copy the optimized out ranges.
2206 Assert the destination ranges aren't optimized out.
2207 (value_contents_copy): Update comment, remove call to
2208 require_not_optimized_out.
2209 (value_contents_equal): Adjust to check whether the optimized_out
2210 vec is empty.
2211 (set_value_optimized_out, value_optimized_out_const): Delete.
2212 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
2213 New functions.
2214 (value_entirely_optimized_out, value_bits_valid): Delete.
2215 (value_copy): Take a VEC copy of the 'optimized_out' field.
2216 (value_primitive_field): Remove special handling of optimized out.
2217 (value_fetch_lazy): Assert that lazy values have no unavailable
2218 regions. Use value_bits_any_optimized_out. Remove some special
2219 handling for optimized out values.
2220 * value.h: Add intro comment about <optimized out> and
2221 <unavailable>.
2222 (struct lval_funcs): Remove check_validity and check_any_valid
2223 fields.
2224 (set_value_optimized_out, value_optimized_out_const): Remove.
2225 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
2226 New declarations.
2227 (value_bits_any_optimized_out): New declaration.
2228 (value_bits_valid): Delete declaration.
2229 (value_available_contents_eq): Rename to ...
2230 (value_contents_eq): ... this, and extend comments.
2231
6694c411
JK
22322014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2233
2234 Fix -fsanitize=address on unreadable inferior strings.
2235 * valprint.c (val_print_string): Fix access before BUFFER.
2236
89a1c21a
SM
22372014-08-19 Simon Marchi <simon.marchi@ericsson.com>
2238
2239 * target.c (target_struct_size): Remove.
2240 (target_struct_allocsize): Remove.
2241 (DEFAULT_ALLOCSIZE): Remove.
2242 (target_ops_p): New typedef.
2243 (DEF_VEC_P (target_ops_p)): New vector type.
2244 (target_structs): Change type to VEC (target_ops_p).
2245 (add_target_with_completer): Replace "push" code by VEC_safe_push.
2246 (find_default_run_target): Rewrite for loop following changes to
2247 target_structs.
2248
cb417230
JB
22492014-08-19 Joel Brobecker <brobecker@adacore.com>
2250
2251 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
2252 Adjust code accordingly. Adjust function description comment.
2253
817e0957
YQ
22542014-08-19 Yao Qi <yao@codesourcery.com>
2255
2256 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
2257 types.
2258
2974be62
AM
22592014-08-19 Alan Modra <amodra@gmail.com>
2260
2261 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
2262 * config.in: Regenerate.
2263 * configure: Regenerate.
2264
34abf635
GB
22652014-08-19 Tom Tromey <tromey@redhat.com>
2266 Gary Benson <gbenson@redhat.com>
2267
2268 * common/common-debug.h: New file.
2269 * common/common-debug.c: Likewise.
2270 * debug.c: Likewise.
2271 * Makefile.in (SFILES): Add common/common-debug.c.
2272 (HFILES_NO_SRCDIR): Add common/common-debug.h.
2273 (COMMON_OBS): Add common-debug.o and debug.o.
2274 (common-debug.o): New rule.
2275 * common/common-defs.h: Include common-debug.h.
2276 * common/agent.c (debug_agent_printf): New function.
2277 (DEBUG_AGENT): Redefine.
2278 * nat/i386-dregs.c (debug_printf): Undefine.
2279
f6e94d78
GB
22802014-08-19 Gary Benson <gbenson@redhat.com>
2281
2282 * common/common-defs.h: Include print-utils.h.
2283 * utils.h: Do not include print-utils.h.
2284
9239eeab
GB
22852014-08-19 Tom Tromey <tromey@redhat.com>
2286 Gary Benson <gbenson@redhat.com>
2287
2288 * common/common-types.h: New file.
2289 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
2290 * common/common-defs.h: Include common-types.h.
2291 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
2292 (ULONGEST): Remove.
2293
ef87c8bb
GB
22942014-08-19 Tom Tromey <tromey@redhat.com>
2295 Gary Benson <gbenson@redhat.com>
2296
2297 * common/errors.h: New file.
2298 * common/errors.c: Likewise.
2299 * Makefile.in (SFILES): Add common/errors.c.
2300 (HFILES_NO_SRCDIR): Add common/errors.h.
2301 (COMMON_OBS): Add errors.o.
2302 (errors.o): New rule.
2303 * common/common-defs.h: Include errors.h.
2304 * utils.h (perror_with_name, error, verror, warning, vwarning):
2305 Don't declare.
2306 * common/common-utils.h: (malloc_failure, internal_error):
2307 Likewise.
2308
196a707b
GB
23092014-08-19 Gary Benson <gbenson@redhat.com>
2310
2311 * utils.c (internal_vproblem): Always print the message.
2312
ded4fc8f
DE
23132014-08-18 Doug Evans <dje@google.com>
2314
2315 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
2316
950c97d8
JB
23172014-08-18 Joel Brobecker <brobecker@adacore.com>
2318
2319 * ada-typeprint.c (type_is_full_subrange_of_target_type):
2320 Return 0 if TYPE is dynamic.
2321 (print_range): Add handling of dynamic ranges.
2322
3cdcd0ce
JB
23232014-08-18 Keven Boell <keven.boell@intel.com>
2324 Joel Brobecker <brobecker@adacore.com>
2325
2326 * gdbtypes.h (struct main_type): Add field "data_location".
2327 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
2328 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
2329 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
2330 a dynamic data location.
2331 (resolve_dynamic_type): Add DW_AT_data_location handling.
2332 (copy_recursive, copy_type): Copy the data_location information
2333 when present.
2334 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
2335 * value.c (value_from_contents_and_address): Add
2336 DW_AT_data_location handling.
2337
08412b07
JB
23382014-08-18 Keven Boell <keven.boell@intel.com>
2339 Joel Brobecker <brobecker@adacore.com>
2340
2341 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
2342 field "get_object_address".
2343 * dwarf2expr.c (execute_stack_op): Add handling for
2344 DW_OP_push_object_address.
2345 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
2346 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
2347 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
2348 (dwarf_expr_get_obj_addr): New function.
2349 (dwarf_expr_ctx_funcs): Add get_object_address field.
2350 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
2351 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
2352 (dwarf2_evaluate_property): Add parameter "address". Use it.
2353 (needs_get_obj_addr): New function.
2354 (needs_frame_ctx_funcs): Add get_object_address field.
2355 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
2356 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
2357 (resolve_dynamic_array): Likewise.
2358
84754697
JB
23592014-08-18 Joel Brobecker <brobecker@adacore.com>
2360
2361 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
2362 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
2363 fixed value for records and unions for which some GNAT encodings
2364 are present.
2365
da5c522f
JB
23662014-08-18 Joel Brobecker <brobecker@adacore.com>
2367
2368 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
2369 rewrite to avoid "else if" and "else" constructs. Should be
2370 a no-op in practice.
2371
0d72a7c3
JB
23722014-08-18 Joel Brobecker <brobecker@adacore.com>
2373
2374 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
2375 of lexical block.
2376
e66d4446
SC
23772014-08-15 Siva Chandra Reddy <sivachandra@google.com>
2378
2379 PR c++/17132
2380 * eval.c: Update all calls to find_overload_match.
2381 * valarith.c: Likewise.
2382 (value_user_defined_cpp_op, value_user_defined_op): New
2383 argument NOSIDE. Update all callers.
2384 * valops.c (find_overload_match): New argument NOSIDE.
2385 * value.h (find_overload_match): Update signature.
2386
940df408
SC
23872014-08-15 Siva Chandra Reddy <sivachandra@google.com>
2388
2389 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
2390 'items' methods instead of 'iteritems' method on dictionaries.
2391
699ca60a
DE
23922014-08-15 Doug Evans <dje@google.com>
2393
2394 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
2395 closer to use.
2396
37780ee5
DE
23972014-08-15 Doug Evans <dje@google.com>
2398
2399 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
2400
0ad93d4f
DE
24012014-08-15 Doug Evans <dje@google.com>
2402
2403 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
2404
20d8c372
DE
24052014-08-15 Doug Evans <dje@google.com>
2406
2407 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
2408 unused.
2409
cb039ba4
EZ
24102014-08-15 Eli Zaretskii <eliz@gnu.org>
2411
2412 * dcache.h: Include target.h, to avoid compile time warnings.
2413
eb7a547a
JB
24142014-08-15 Joel Brobecker <brobecker@adacore.com>
2415
2416 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
2417 frame_info" partial declaration.
2418 * gdbarch.h: Regenerate.
2419
783cecc8
YQ
24202014-08-15 Yao Qi <yao@codesourcery.com>
2421
2422 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
2423 Add parameter 'decode_for_pst_p'. Callers update.
2424
65c749e7
YQ
24252014-08-13 Yao Qi <yao@codesourcery.com>
2426
2427 PR build/17104
2428 * configure.ac: Use local variable 'pos'.
2429 * configure: Regenerated.
2430
d769e349
DE
24312014-08-11 Doug Evans <dje@google.com>
2432
2433 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
2434 message, it is redundant with "Reading symbols from ..." message.
2435
24f1235e
DE
24362014-08-10 Doug Evans <xdje42@gmail.com>
2437
2438 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
2439
dcd2e6ef
YQ
24402014-08-09 Yao Qi <yao@codesourcery.com>
2441
2442 PR remote/9053
2443 * remote.c (remote_xfer_partial): Remove dead code.
2444
070bdf0b
AA
24452014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2446
2447 * ia64-linux-tdep.c: Include "regset.h".
2448 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
2449 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
2450 (ia64_linux_supply_fpregset): New function.
2451 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
2452 (ia64_linux_regset_from_core_section): New function.
2453 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
2454 method.
2455
08f9f542
AA
24562014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2457
2458 * m68klinux-tdep.c: Include "regset.h".
2459 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
2460 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
2461 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
2462 (m68k_linux_regset_from_core_section): New function.
2463 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
2464 method.
2465
8f1cee41
AA
24662014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2467
2468 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
2469 function. Move logic to...
2470 (tilegx_linux_regmap): ... this new register map.
2471 (tilegx_linux_regset): Refer to register map, replace supply
2472 method by regcache_supply_regset, and add collect method.
2473 * tilegx-tdep.h (enum tilegx_regnum): New enum value
2474 TILEGX_FIRST_EASY_REGNUM.
2475
c5741217
AA
24762014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2477
2478 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
2479 that calls regcache_supply_regset and handles the EPC register
2480 separately. Move main logic to...
2481 (score7_linux_gregmap): ... this new register map.
2482 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
2483 (score7_linux_gregset): Refer to register map. Add collect method.
2484 (score7_linux_regset_from_core_section): Replace
2485 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
2486 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
2487 (struct regset): Delete unused forward declaraction.
2488 (struct pt_regs): Delete structure definition.
2489 (elf_gregset_t): Delete typedef.
2490
81580573
AA
24912014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2492
2493 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
2494 (nios2_core_regset): Add collect method.
2495
ba199d7d
AA
24962014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2497
2498 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
2499 platform-independent and don't write to read-only input buffer.
2500 (m32r_linux_collect_gregset): New function.
2501 (m32r_linux_gregset): Add collect method.
2502
0006a9da
AA
25032014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2504
2505 * hppa-linux-tdep.c (greg_map): Rename to...
2506 (hppa_linux_gregmap): ... this. Also convert to
2507 regcache_map_entry format.
2508 (hppa_linux_supply_regset): Delete function.
2509 (hppa_linux_supply_fpregset): Delete function. Move logic to...
2510 (hppa_linux_fpregmap): ... this new register map.
2511 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
2512 register map, replace supply method by regcache_supply_regset, and
2513 add collect method regcache_collect_regset.
2514
901e1b23
AA
25152014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2516
2517 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
2518 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
2519 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
2520 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
2521 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
2522 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
2523 (frv_linux_supply_gregset): Replace main logic by call to
2524 regcache_supply_regset, but keep clearing gr32-gr63.
2525 (frv_linux_supply_fpregset): Delete function.
2526 (frv_linux_gregset): Refer to appropriate register map and add
2527 regcache_collect_regset as the collect method.
2528 (frv_linux_fpregset): Likewise. Also exchange the supply method
2529 by regcache_supply_regset.
2530
1d6e7555
AA
25312014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2532
2533 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
2534 by call to alpha_supply_int_regs.
2535 (alpha_linux_collect_gregset): New function.
2536 (alpha_linux_supply_fpregset): Replace logic by call to
2537 alpha_supply_fp_regs.
2538 (alpha_linux_collect_fpregset): New function.
2539 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
2540
d4d793bf
AA
25412014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2542
2543 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
2544 by call to regcache_collect_regset.
2545 (supply_gregset, supply_fpregset): Call regcache_supply_regset
2546 instead of aarch64_linux_supply_gregset/_fpregset.
2547 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
2548 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
2549 header file instead.
2550 (aarch64_linux_supply_gregset, supply_gregset_from_core)
2551 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
2552 functions. Move logic to ...
2553 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
2554 register maps.
2555 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
2556 refer to new register maps, replace *_regset_from_core by
2557 regcache_supply_regset, and also use regcache_collect_regset.
2558 * aarch64-linux-tdep.h: Include "regset.h".
2559 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
2560 Delete prototypes.
2561 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
2562 macros, moved from C source file.
2563 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
2564 variable declarations.
2565
99b7da5d
AA
25662014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2567
2568 * s390-linux-nat.c: Include "regset.h".
2569 (regmap_gregset): Delete macro.
2570 (s390_64_regmap_gregset): New register map for
2571 regcache_supply/_collect_regset.
2572 (s390_64_gregset): New regset.
2573 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
2574 (regmap_fpregset): Delete macro.
2575 (s390_native_supply, s390_native_collect): Delete functions.
2576 (supply_gregset, fill_gregset): Replace s390-specific regmap
2577 handling by a call to regcache_supply/_collect_regset.
2578 (supply_fpregset, fill_fpregset): Call regcache_supply/
2579 _collect_regset instead of s390_native_supply/_collect.
2580 (fetch_regset, store_regset): Likewise. Also change the last
2581 parameter to a regset instead of a regmap.
2582 (s390_linux_fetch_inferior_registers)
2583 (390_linux_store_inferior_registers): Adjust last parameter in
2584 calls to fetch_regset and store_regset.
2585 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
2586 (s390_gregmap): ... this. Also make static const and convert to
2587 regcache_map_entry format.
2588 (s390x_regmap_gregset): Delete.
2589 (s390_regmap_fpregset): Rename to...
2590 (s390_fpregmap): ... this. Make static const and convert to
2591 regcache_map_entry format.
2592 (s390_regmap_upper, s390_regmap_last_break)
2593 (s390x_regmap_last_break, s390_regmap_system_call)
2594 (s390_regmap_tdb): Likewise.
2595 (s390_supply_regset, s390_collect_regset): Remove functions.
2596 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
2597 s390_supply_regset.
2598 (s390_gregset, s390_fpregset, s390_upper_regset)
2599 (s390_last_break_regset, s390x_last_break_regset)
2600 (s390_system_call_regset, s390_tdb_regset): Make global and
2601 replace s390_supply/_collect_regset by regcache_supply/
2602 _collect_regset.
2603 (s390x_gregset): Delete.
2604 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
2605 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
2606 (s390_regmap_fpregset, s390_regmap_last_break)
2607 (s390x_regmap_last_break, s390_regmap_system_call)
2608 (s390_regmap_tdb): Delete global variable declarations.
2609 (s390_gregset, s390_fpregset, s390_last_break_regset)
2610 (s390x_last_break_regset, s390_system_call_regset)
2611 (s390_tdb_regset): New global variable declarations.
2612
0b309272
AA
26132014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2614
2615 * regcache.c: Include "regset.h".
2616 (regcache_transfer_regset): New local function.
2617 (regcache_supply_regset, regcache_collect_regset): New functions.
2618 * regcache.h (struct regcache_map_entry): New structure.
2619 (REGCACHE_MAP_SKIP): New enum value.
2620 (regcache_supply_regset, regcache_collect_regset): New prototypes.
2621
7fefa8d7
AA
26222014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2623
2624 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
2625 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
2626 (ppc_linux_collect_gregset ): Likewise.
2627 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
2628 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
2629 (ppc_collect_vrregset): Likewise.
2630 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
2631 Likewise.
2632
96c4f946
YQ
26332014-08-07 Yao Qi <yao@codesourcery.com>
2634
2635 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
2636 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
2637 * remote.c (remote_read_bytes): Likewise.
2638
fffbe6a8
YQ
26392014-08-07 Yao Qi <yao@codesourcery.com>
2640
2641 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
2642
5ee8a82c
YQ
26432014-08-07 Yao Qi <yao@codesourcery.com>
2644
2645 PR remote/17230
2646 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
2647 TARGET_XFER_OK instead of 0.
2648
bb974a24
GB
26492014-08-07 Gary Benson <gbenson@redhat.com>
2650
2651 * common/common-defs.h: Include errno.h.
2652 * defs.h: Do not include errno.h.
2653 * ada-typeprint.c: Likewise.
2654 * c-typeprint.c: Likewise.
2655 * core-regset.c: Likewise.
2656 * corefile.c: Likewise.
2657 * corelow.c: Likewise.
2658 * event-loop.c: Likewise.
2659 * f-typeprint.c: Likewise.
2660 * gnu-nat.c: Likewise.
2661 * go32-nat.c: Likewise.
2662 * i386gnu-nat.c: Likewise.
2663 * m2-typeprint.c: Likewise.
2664 * nat/linux-btrace.c: Likewise.
2665 * p-typeprint.c: Likewise.
2666 * procfs.c: Likewise.
2667 * remote-sim.c: Likewise.
2668 * rs6000-nat.c: Likewise.
2669 * target.c: Likewise.
2670 * typeprint.c: Likewise.
2671 * ui-file.c: Likewise.
2672 * valops.c: Likewise.
2673 * valprint.c: Likewise.
2674
6d3d12eb
GB
26752014-08-07 Gary Benson <gbenson@redhat.com>
2676
2677 * common/common-defs.h: Include string.h.
2678 * aarch64-tdep.c: Do not include string.h.
2679 * ada-exp.y: Likewise.
2680 * ada-lang.c: Likewise.
2681 * ada-lex.l: Likewise.
2682 * ada-typeprint.c: Likewise.
2683 * ada-valprint.c: Likewise.
2684 * aix-thread.c: Likewise.
2685 * alpha-linux-tdep.c: Likewise.
2686 * alpha-mdebug-tdep.c: Likewise.
2687 * alpha-nat.c: Likewise.
2688 * alpha-osf1-tdep.c: Likewise.
2689 * alpha-tdep.c: Likewise.
2690 * alphanbsd-tdep.c: Likewise.
2691 * amd64-dicos-tdep.c: Likewise.
2692 * amd64-linux-tdep.c: Likewise.
2693 * amd64-nat.c: Likewise.
2694 * amd64-sol2-tdep.c: Likewise.
2695 * amd64fbsd-tdep.c: Likewise.
2696 * amd64obsd-tdep.c: Likewise.
2697 * arch-utils.c: Likewise.
2698 * arm-linux-nat.c: Likewise.
2699 * arm-linux-tdep.c: Likewise.
2700 * arm-tdep.c: Likewise.
2701 * arm-wince-tdep.c: Likewise.
2702 * armbsd-tdep.c: Likewise.
2703 * armnbsd-nat.c: Likewise.
2704 * armnbsd-tdep.c: Likewise.
2705 * armobsd-tdep.c: Likewise.
2706 * avr-tdep.c: Likewise.
2707 * ax-gdb.c: Likewise.
2708 * ax-general.c: Likewise.
2709 * bcache.c: Likewise.
2710 * bfin-tdep.c: Likewise.
2711 * breakpoint.c: Likewise.
2712 * build-id.c: Likewise.
2713 * buildsym.c: Likewise.
2714 * c-exp.y: Likewise.
2715 * c-lang.c: Likewise.
2716 * c-typeprint.c: Likewise.
2717 * c-valprint.c: Likewise.
2718 * charset.c: Likewise.
2719 * cli-out.c: Likewise.
2720 * cli/cli-cmds.c: Likewise.
2721 * cli/cli-decode.c: Likewise.
2722 * cli/cli-dump.c: Likewise.
2723 * cli/cli-interp.c: Likewise.
2724 * cli/cli-logging.c: Likewise.
2725 * cli/cli-script.c: Likewise.
2726 * cli/cli-setshow.c: Likewise.
2727 * cli/cli-utils.c: Likewise.
2728 * coffread.c: Likewise.
2729 * common/agent.c: Likewise.
2730 * common/buffer.c: Likewise.
2731 * common/buffer.h: Likewise.
2732 * common/common-utils.c: Likewise.
2733 * common/filestuff.c: Likewise.
2734 * common/filestuff.c: Likewise.
2735 * common/format.c: Likewise.
2736 * common/print-utils.c: Likewise.
2737 * common/rsp-low.c: Likewise.
2738 * common/signals.c: Likewise.
2739 * common/vec.h: Likewise.
2740 * common/xml-utils.c: Likewise.
2741 * core-regset.c: Likewise.
2742 * corefile.c: Likewise.
2743 * corelow.c: Likewise.
2744 * cp-abi.c: Likewise.
2745 * cp-name-parser.y: Likewise.
2746 * cp-support.c: Likewise.
2747 * cp-valprint.c: Likewise.
2748 * cris-tdep.c: Likewise.
2749 * d-exp.y: Likewise.
2750 * darwin-nat.c: Likewise.
2751 * dbxread.c: Likewise.
2752 * dcache.c: Likewise.
2753 * demangle.c: Likewise.
2754 * dicos-tdep.c: Likewise.
2755 * disasm.c: Likewise.
2756 * doublest.c: Likewise.
2757 * dsrec.c: Likewise.
2758 * dummy-frame.c: Likewise.
2759 * dwarf2-frame.c: Likewise.
2760 * dwarf2loc.c: Likewise.
2761 * dwarf2read.c: Likewise.
2762 * elfread.c: Likewise.
2763 * environ.c: Likewise.
2764 * eval.c: Likewise.
2765 * event-loop.c: Likewise.
2766 * exceptions.c: Likewise.
2767 * exec.c: Likewise.
2768 * expprint.c: Likewise.
2769 * f-exp.y: Likewise.
2770 * f-lang.c: Likewise.
2771 * f-typeprint.c: Likewise.
2772 * f-valprint.c: Likewise.
2773 * fbsd-nat.c: Likewise.
2774 * findcmd.c: Likewise.
2775 * findvar.c: Likewise.
2776 * fork-child.c: Likewise.
2777 * frame.c: Likewise.
2778 * frv-linux-tdep.c: Likewise.
2779 * frv-tdep.c: Likewise.
2780 * gdb.c: Likewise.
2781 * gdb_bfd.c: Likewise.
2782 * gdbarch.c: Likewise.
2783 * gdbarch.sh: Likewise.
2784 * gdbtypes.c: Likewise.
2785 * gnu-nat.c: Likewise.
2786 * gnu-v2-abi.c: Likewise.
2787 * gnu-v3-abi.c: Likewise.
2788 * go-exp.y: Likewise.
2789 * go-lang.c: Likewise.
2790 * go32-nat.c: Likewise.
2791 * guile/guile.c: Likewise.
2792 * guile/scm-auto-load.c: Likewise.
2793 * hppa-hpux-tdep.c: Likewise.
2794 * hppa-linux-nat.c: Likewise.
2795 * hppanbsd-tdep.c: Likewise.
2796 * hppaobsd-tdep.c: Likewise.
2797 * i386-cygwin-tdep.c: Likewise.
2798 * i386-dicos-tdep.c: Likewise.
2799 * i386-linux-tdep.c: Likewise.
2800 * i386-nto-tdep.c: Likewise.
2801 * i386-sol2-tdep.c: Likewise.
2802 * i386-tdep.c: Likewise.
2803 * i386bsd-tdep.c: Likewise.
2804 * i386gnu-nat.c: Likewise.
2805 * i386nbsd-tdep.c: Likewise.
2806 * i386obsd-tdep.c: Likewise.
2807 * i387-tdep.c: Likewise.
2808 * ia64-libunwind-tdep.c: Likewise.
2809 * ia64-linux-nat.c: Likewise.
2810 * inf-child.c: Likewise.
2811 * inf-ptrace.c: Likewise.
2812 * inf-ttrace.c: Likewise.
2813 * infcall.c: Likewise.
2814 * infcmd.c: Likewise.
2815 * inflow.c: Likewise.
2816 * infrun.c: Likewise.
2817 * interps.c: Likewise.
2818 * iq2000-tdep.c: Likewise.
2819 * irix5-nat.c: Likewise.
2820 * jv-exp.y: Likewise.
2821 * jv-lang.c: Likewise.
2822 * jv-typeprint.c: Likewise.
2823 * jv-valprint.c: Likewise.
2824 * language.c: Likewise.
2825 * linux-fork.c: Likewise.
2826 * linux-nat.c: Likewise.
2827 * lm32-tdep.c: Likewise.
2828 * m2-exp.y: Likewise.
2829 * m2-typeprint.c: Likewise.
2830 * m32c-tdep.c: Likewise.
2831 * m32r-linux-nat.c: Likewise.
2832 * m32r-linux-tdep.c: Likewise.
2833 * m32r-rom.c: Likewise.
2834 * m32r-tdep.c: Likewise.
2835 * m68hc11-tdep.c: Likewise.
2836 * m68k-tdep.c: Likewise.
2837 * m68kbsd-tdep.c: Likewise.
2838 * m68klinux-nat.c: Likewise.
2839 * m68klinux-tdep.c: Likewise.
2840 * m88k-tdep.c: Likewise.
2841 * machoread.c: Likewise.
2842 * macrocmd.c: Likewise.
2843 * main.c: Likewise.
2844 * mdebugread.c: Likewise.
2845 * mem-break.c: Likewise.
2846 * memattr.c: Likewise.
2847 * memory-map.c: Likewise.
2848 * mep-tdep.c: Likewise.
2849 * mi/mi-cmd-break.c: Likewise.
2850 * mi/mi-cmd-disas.c: Likewise.
2851 * mi/mi-cmd-env.c: Likewise.
2852 * mi/mi-cmd-stack.c: Likewise.
2853 * mi/mi-cmd-var.c: Likewise.
2854 * mi/mi-cmds.c: Likewise.
2855 * mi/mi-console.c: Likewise.
2856 * mi/mi-getopt.c: Likewise.
2857 * mi/mi-interp.c: Likewise.
2858 * mi/mi-main.c: Likewise.
2859 * mi/mi-parse.c: Likewise.
2860 * microblaze-rom.c: Likewise.
2861 * microblaze-tdep.c: Likewise.
2862 * mingw-hdep.c: Likewise.
2863 * minidebug.c: Likewise.
2864 * minsyms.c: Likewise.
2865 * mips-irix-tdep.c: Likewise.
2866 * mips-linux-tdep.c: Likewise.
2867 * mips-tdep.c: Likewise.
2868 * mips64obsd-tdep.c: Likewise.
2869 * mipsnbsd-tdep.c: Likewise.
2870 * mipsread.c: Likewise.
2871 * mn10300-linux-tdep.c: Likewise.
2872 * mn10300-tdep.c: Likewise.
2873 * monitor.c: Likewise.
2874 * moxie-tdep.c: Likewise.
2875 * mt-tdep.c: Likewise.
2876 * nat/linux-btrace.c: Likewise.
2877 * nat/linux-osdata.c: Likewise.
2878 * nat/linux-procfs.c: Likewise.
2879 * nat/linux-ptrace.c: Likewise.
2880 * nat/linux-waitpid.c: Likewise.
2881 * nbsd-tdep.c: Likewise.
2882 * nios2-linux-tdep.c: Likewise.
2883 * nto-procfs.c: Likewise.
2884 * nto-tdep.c: Likewise.
2885 * objc-lang.c: Likewise.
2886 * objfiles.c: Likewise.
2887 * opencl-lang.c: Likewise.
2888 * osabi.c: Likewise.
2889 * osdata.c: Likewise.
2890 * p-exp.y: Likewise.
2891 * p-lang.c: Likewise.
2892 * p-typeprint.c: Likewise.
2893 * parse.c: Likewise.
2894 * posix-hdep.c: Likewise.
2895 * ppc-linux-nat.c: Likewise.
2896 * ppc-sysv-tdep.c: Likewise.
2897 * ppcfbsd-tdep.c: Likewise.
2898 * ppcnbsd-tdep.c: Likewise.
2899 * ppcobsd-tdep.c: Likewise.
2900 * printcmd.c: Likewise.
2901 * procfs.c: Likewise.
2902 * prologue-value.c: Likewise.
2903 * python/py-auto-load.c: Likewise.
2904 * python/py-gdb-readline.c: Likewise.
2905 * ravenscar-thread.c: Likewise.
2906 * regcache.c: Likewise.
2907 * registry.c: Likewise.
2908 * remote-fileio.c: Likewise.
2909 * remote-m32r-sdi.c: Likewise.
2910 * remote-mips.c: Likewise.
2911 * remote-notif.c: Likewise.
2912 * remote-sim.c: Likewise.
2913 * remote.c: Likewise.
2914 * reverse.c: Likewise.
2915 * rs6000-aix-tdep.c: Likewise.
2916 * ser-base.c: Likewise.
2917 * ser-go32.c: Likewise.
2918 * ser-mingw.c: Likewise.
2919 * ser-pipe.c: Likewise.
2920 * ser-tcp.c: Likewise.
2921 * ser-unix.c: Likewise.
2922 * serial.c: Likewise.
2923 * sh-tdep.c: Likewise.
2924 * sh64-tdep.c: Likewise.
2925 * shnbsd-tdep.c: Likewise.
2926 * skip.c: Likewise.
2927 * sol-thread.c: Likewise.
2928 * solib-dsbt.c: Likewise.
2929 * solib-frv.c: Likewise.
2930 * solib-osf.c: Likewise.
2931 * solib-som.c: Likewise.
2932 * solib-spu.c: Likewise.
2933 * solib-target.c: Likewise.
2934 * solib.c: Likewise.
2935 * somread.c: Likewise.
2936 * source.c: Likewise.
2937 * sparc-nat.c: Likewise.
2938 * sparc-sol2-tdep.c: Likewise.
2939 * sparc-tdep.c: Likewise.
2940 * sparc64-tdep.c: Likewise.
2941 * sparc64fbsd-tdep.c: Likewise.
2942 * sparc64nbsd-tdep.c: Likewise.
2943 * sparcnbsd-tdep.c: Likewise.
2944 * spu-linux-nat.c: Likewise.
2945 * spu-multiarch.c: Likewise.
2946 * spu-tdep.c: Likewise.
2947 * stabsread.c: Likewise.
2948 * stack.c: Likewise.
2949 * std-regs.c: Likewise.
2950 * symfile.c: Likewise.
2951 * symmisc.c: Likewise.
2952 * symtab.c: Likewise.
2953 * target.c: Likewise.
2954 * thread.c: Likewise.
2955 * tilegx-linux-nat.c: Likewise.
2956 * tilegx-tdep.c: Likewise.
2957 * top.c: Likewise.
2958 * tracepoint.c: Likewise.
2959 * tui/tui-command.c: Likewise.
2960 * tui/tui-data.c: Likewise.
2961 * tui/tui-disasm.c: Likewise.
2962 * tui/tui-file.c: Likewise.
2963 * tui/tui-layout.c: Likewise.
2964 * tui/tui-out.c: Likewise.
2965 * tui/tui-regs.c: Likewise.
2966 * tui/tui-source.c: Likewise.
2967 * tui/tui-stack.c: Likewise.
2968 * tui/tui-win.c: Likewise.
2969 * tui/tui-windata.c: Likewise.
2970 * tui/tui-winsource.c: Likewise.
2971 * typeprint.c: Likewise.
2972 * ui-file.c: Likewise.
2973 * ui-out.c: Likewise.
2974 * user-regs.c: Likewise.
2975 * utils.c: Likewise.
2976 * v850-tdep.c: Likewise.
2977 * valarith.c: Likewise.
2978 * valops.c: Likewise.
2979 * valprint.c: Likewise.
2980 * value.c: Likewise.
2981 * varobj.c: Likewise.
2982 * vax-tdep.c: Likewise.
2983 * vaxnbsd-tdep.c: Likewise.
2984 * vaxobsd-tdep.c: Likewise.
2985 * windows-nat.c: Likewise.
2986 * xcoffread.c: Likewise.
2987 * xml-support.c: Likewise.
2988 * xstormy16-tdep.c: Likewise.
2989 * xtensa-linux-nat.c: Likewise.
2990
dccbb609
GB
29912014-08-07 Gary Benson <gbenson@redhat.com>
2992
2993 * common/common-defs.h: Include gdb_assert.h.
2994 * aarch64-tdep.c: Do not include gdb_assert.h.
2995 * addrmap.c: Likewise.
2996 * aix-thread.c: Likewise.
2997 * alpha-linux-tdep.c: Likewise.
2998 * alpha-mdebug-tdep.c: Likewise.
2999 * alphanbsd-tdep.c: Likewise.
3000 * amd64-nat.c: Likewise.
3001 * amd64-tdep.c: Likewise.
3002 * amd64bsd-nat.c: Likewise.
3003 * amd64fbsd-nat.c: Likewise.
3004 * amd64fbsd-tdep.c: Likewise.
3005 * amd64nbsd-nat.c: Likewise.
3006 * amd64nbsd-tdep.c: Likewise.
3007 * amd64obsd-nat.c: Likewise.
3008 * amd64obsd-tdep.c: Likewise.
3009 * arch-utils.c: Likewise.
3010 * arm-tdep.c: Likewise.
3011 * armbsd-tdep.c: Likewise.
3012 * auxv.c: Likewise.
3013 * bcache.c: Likewise.
3014 * bfin-tdep.c: Likewise.
3015 * blockframe.c: Likewise.
3016 * breakpoint.c: Likewise.
3017 * bsd-kvm.c: Likewise.
3018 * bsd-uthread.c: Likewise.
3019 * buildsym.c: Likewise.
3020 * c-exp.y: Likewise.
3021 * c-lang.c: Likewise.
3022 * charset.c: Likewise.
3023 * cleanups.c: Likewise.
3024 * cli-out.c: Likewise.
3025 * cli/cli-decode.c: Likewise.
3026 * cli/cli-dump.c: Likewise.
3027 * cli/cli-logging.c: Likewise.
3028 * cli/cli-script.c: Likewise.
3029 * cli/cli-utils.c: Likewise.
3030 * coffread.c: Likewise.
3031 * common/common-utils.c: Likewise.
3032 * common/queue.h: Likewise.
3033 * common/signals.c: Likewise.
3034 * common/vec.h: Likewise.
3035 * complaints.c: Likewise.
3036 * completer.c: Likewise.
3037 * corelow.c: Likewise.
3038 * cp-abi.c: Likewise.
3039 * cp-name-parser.y: Likewise.
3040 * cp-namespace.c: Likewise.
3041 * cp-support.c: Likewise.
3042 * cris-tdep.c: Likewise.
3043 * dbxread.c: Likewise.
3044 * dictionary.c: Likewise.
3045 * doublest.c: Likewise.
3046 * dsrec.c: Likewise.
3047 * dummy-frame.c: Likewise.
3048 * dwarf2-frame-tailcall.c: Likewise.
3049 * dwarf2-frame.c: Likewise.
3050 * dwarf2expr.c: Likewise.
3051 * dwarf2loc.c: Likewise.
3052 * dwarf2read.c: Likewise.
3053 * eval.c: Likewise.
3054 * event-loop.c: Likewise.
3055 * exceptions.c: Likewise.
3056 * expprint.c: Likewise.
3057 * f-valprint.c: Likewise.
3058 * fbsd-nat.c: Likewise.
3059 * findvar.c: Likewise.
3060 * frame-unwind.c: Likewise.
3061 * frame.c: Likewise.
3062 * frv-tdep.c: Likewise.
3063 * gcore.c: Likewise.
3064 * gdb-dlfcn.c: Likewise.
3065 * gdb_bfd.c: Likewise.
3066 * gdbarch.c: Likewise.
3067 * gdbarch.sh: Likewise.
3068 * gdbtypes.c: Likewise.
3069 * gnu-nat.c: Likewise.
3070 * gnu-v3-abi.c: Likewise.
3071 * go-lang.c: Likewise.
3072 * guile/scm-exception.c: Likewise.
3073 * guile/scm-gsmob.c: Likewise.
3074 * guile/scm-lazy-string.c: Likewise.
3075 * guile/scm-math.c: Likewise.
3076 * guile/scm-pretty-print.c: Likewise.
3077 * guile/scm-safe-call.c: Likewise.
3078 * guile/scm-utils.c: Likewise.
3079 * guile/scm-value.c: Likewise.
3080 * h8300-tdep.c: Likewise.
3081 * hppa-hpux-nat.c: Likewise.
3082 * hppa-tdep.c: Likewise.
3083 * hppanbsd-tdep.c: Likewise.
3084 * hppaobsd-tdep.c: Likewise.
3085 * i386-darwin-nat.c: Likewise.
3086 * i386-darwin-tdep.c: Likewise.
3087 * i386-nto-tdep.c: Likewise.
3088 * i386-tdep.c: Likewise.
3089 * i386bsd-nat.c: Likewise.
3090 * i386fbsd-tdep.c: Likewise.
3091 * i386gnu-nat.c: Likewise.
3092 * i386nbsd-tdep.c: Likewise.
3093 * i386obsd-tdep.c: Likewise.
3094 * i387-tdep.c: Likewise.
3095 * ia64-libunwind-tdep.c: Likewise.
3096 * ia64-tdep.c: Likewise.
3097 * inf-ptrace.c: Likewise.
3098 * inf-ttrace.c: Likewise.
3099 * infcall.c: Likewise.
3100 * infcmd.c: Likewise.
3101 * infrun.c: Likewise.
3102 * inline-frame.c: Likewise.
3103 * interps.c: Likewise.
3104 * jv-lang.c: Likewise.
3105 * jv-typeprint.c: Likewise.
3106 * linux-fork.c: Likewise.
3107 * linux-nat.c: Likewise.
3108 * linux-thread-db.c: Likewise.
3109 * m32c-tdep.c: Likewise.
3110 * m32r-linux-nat.c: Likewise.
3111 * m32r-tdep.c: Likewise.
3112 * m68k-tdep.c: Likewise.
3113 * m68kbsd-nat.c: Likewise.
3114 * m68kbsd-tdep.c: Likewise.
3115 * m88k-tdep.c: Likewise.
3116 * machoread.c: Likewise.
3117 * macroexp.c: Likewise.
3118 * macrotab.c: Likewise.
3119 * maint.c: Likewise.
3120 * mdebugread.c: Likewise.
3121 * memory-map.c: Likewise.
3122 * mep-tdep.c: Likewise.
3123 * mi/mi-common.c: Likewise.
3124 * microblaze-tdep.c: Likewise.
3125 * mingw-hdep.c: Likewise.
3126 * mips-linux-nat.c: Likewise.
3127 * mips-linux-tdep.c: Likewise.
3128 * mips-tdep.c: Likewise.
3129 * mips64obsd-tdep.c: Likewise.
3130 * mipsnbsd-tdep.c: Likewise.
3131 * mn10300-linux-tdep.c: Likewise.
3132 * mn10300-tdep.c: Likewise.
3133 * moxie-tdep.c: Likewise.
3134 * mt-tdep.c: Likewise.
3135 * nat/linux-btrace.c: Likewise.
3136 * nat/linux-osdata.c: Likewise.
3137 * nat/linux-ptrace.c: Likewise.
3138 * nat/mips-linux-watch.c: Likewise.
3139 * nios2-linux-tdep.c: Likewise.
3140 * nios2-tdep.c: Likewise.
3141 * objc-lang.c: Likewise.
3142 * objfiles.c: Likewise.
3143 * obsd-nat.c: Likewise.
3144 * opencl-lang.c: Likewise.
3145 * osabi.c: Likewise.
3146 * parse.c: Likewise.
3147 * ppc-linux-nat.c: Likewise.
3148 * ppc-sysv-tdep.c: Likewise.
3149 * ppcfbsd-nat.c: Likewise.
3150 * ppcfbsd-tdep.c: Likewise.
3151 * ppcnbsd-nat.c: Likewise.
3152 * ppcnbsd-tdep.c: Likewise.
3153 * ppcobsd-nat.c: Likewise.
3154 * ppcobsd-tdep.c: Likewise.
3155 * printcmd.c: Likewise.
3156 * procfs.c: Likewise.
3157 * prologue-value.c: Likewise.
3158 * psymtab.c: Likewise.
3159 * python/py-lazy-string.c: Likewise.
3160 * python/py-value.c: Likewise.
3161 * regcache.c: Likewise.
3162 * reggroups.c: Likewise.
3163 * registry.c: Likewise.
3164 * remote-sim.c: Likewise.
3165 * remote.c: Likewise.
3166 * rs6000-aix-tdep.c: Likewise.
3167 * rs6000-tdep.c: Likewise.
3168 * s390-linux-tdep.c: Likewise.
3169 * score-tdep.c: Likewise.
3170 * ser-base.c: Likewise.
3171 * ser-mingw.c: Likewise.
3172 * sh-tdep.c: Likewise.
3173 * sh64-tdep.c: Likewise.
3174 * solib-darwin.c: Likewise.
3175 * solib-spu.c: Likewise.
3176 * solib-svr4.c: Likewise.
3177 * source.c: Likewise.
3178 * sparc-nat.c: Likewise.
3179 * sparc-sol2-tdep.c: Likewise.
3180 * sparc-tdep.c: Likewise.
3181 * sparc64-sol2-tdep.c: Likewise.
3182 * sparc64-tdep.c: Likewise.
3183 * sparc64fbsd-tdep.c: Likewise.
3184 * sparc64nbsd-tdep.c: Likewise.
3185 * sparc64obsd-tdep.c: Likewise.
3186 * sparcnbsd-tdep.c: Likewise.
3187 * sparcobsd-tdep.c: Likewise.
3188 * spu-multiarch.c: Likewise.
3189 * spu-tdep.c: Likewise.
3190 * stabsread.c: Likewise.
3191 * stack.c: Likewise.
3192 * symfile.c: Likewise.
3193 * symtab.c: Likewise.
3194 * target-descriptions.c: Likewise.
3195 * target-memory.c: Likewise.
3196 * target.c: Likewise.
3197 * tic6x-linux-tdep.c: Likewise.
3198 * tic6x-tdep.c: Likewise.
3199 * tilegx-linux-nat.c: Likewise.
3200 * tilegx-tdep.c: Likewise.
3201 * top.c: Likewise.
3202 * tramp-frame.c: Likewise.
3203 * tui/tui-out.c: Likewise.
3204 * tui/tui-winsource.c: Likewise.
3205 * ui-out.c: Likewise.
3206 * user-regs.c: Likewise.
3207 * utils.c: Likewise.
3208 * v850-tdep.c: Likewise.
3209 * valops.c: Likewise.
3210 * value.c: Likewise.
3211 * varobj.c: Likewise.
3212 * vax-nat.c: Likewise.
3213 * xml-syscall.c: Likewise.
3214 * xml-tdesc.c: Likewise.
3215 * xstormy16-tdep.c: Likewise.
3216 * xtensa-linux-nat.c: Likewise.
3217 * xtensa-tdep.c: Likewise.
3218
e76df0d0
GB
32192014-08-07 Gary Benson <gbenson@redhat.com>
3220
3221 * common/common-defs.h: Include common-utils.h.
3222 * defs.h: Do not include common-utils.h.
3223 * common/gdb_assert.h: Likewise.
3224 * darwin-nat.h: Likewise.
3225 * nat/linux-btrace.c: Likewise.
3226 * target/waitstatus.h: Likewise.
3227
4cb9c816
GB
32282014-08-07 Gary Benson <gbenson@redhat.com>
3229
3230 * common/common-defs.h: Include ptid.h.
3231 * defs.h: Do not include ptid.h.
3232 * inferior.h: Likewise.
3233 * infrun.h: Likewise.
3234 * nat/linux-btrace.h: Likewise.
3235 * nat/linux-osdata.h: Likewise.
3236 * target/waitstatus.h: Likewise.
3237
3995eeee
GB
32382014-08-07 Gary Benson <gbenson@redhat.com>
3239
3240 * common/common-defs.h: Include gdb_locale.h.
3241 * defs.h: Do not include gdb_locale.h.
3242
cb9f1a9b
GB
32432014-08-07 Gary Benson <gbenson@redhat.com>
3244
3245 * common/common-defs.h: Include gdb/signals.h.
3246 * defs.h: Do not include gdb/signals.h.
3247
a5fceff8
GB
32482014-08-07 Gary Benson <gbenson@redhat.com>
3249
3250 * common/common-defs.h: Include pathmax.h.
3251 * defs.h: Do not include pathmax.h.
3252
b9391142
GB
32532014-08-07 Gary Benson <gbenson@redhat.com>
3254
3255 * common/common-defs.h: Include libiberty.h.
3256 * defs.h: Do not include libiberty.h.
3257 * common/queue.h: Likewise.
3258 * cp-name-parser.y: Likewise.
3259 * mi/mi-cmd-catch.c: Likewise.
3260 * python/python.c: Likewise.
3261
0e443c87
GB
32622014-08-07 Gary Benson <gbenson@redhat.com>
3263
3264 * common/common-defs.h: Include ansidecl.h.
3265 * defs.h: Do not include ansidecl.h.
3266 * common/buffer.h: Likewise.
3267 * common/common-utils.h: Likewise.
3268
8ebb3f56
GB
32692014-08-07 Gary Benson <gbenson@redhat.com>
3270
3271 * common/common-defs.h: Include stddef.h.
3272 * defs.h: Do not include stddef.h.
3273 * common/common-utils.h: Likewise.
3274 * amd64fbsd-nat.c: Likewise.
3275 * bcache.c: Likewise.
3276 * charset.c: Likewise.
3277 * common/buffer.h: Likewise.
3278 * common/vec.h: Likewise.
3279 * i386bsd-nat.c: Likewise.
3280 * nat/linux-btrace.h: Likewise.
3281 * ppcfbsd-nat.c: Likewise.
3282 * ppcnbsd-tdep.h: Likewise.
3283 * ppcobsd-nat.c: Likewise.
3284 * ppcobsd-tdep.h: Likewise.
3285 * python/py-gdb-readline.c: Likewise.
3286
8980bdf6
GB
32872014-08-07 Gary Benson <gbenson@redhat.com>
3288
3289 * common/common-defs.h: Include stdarg.h.
3290 * defs.h: Do not include stdarg.h.
3291 * ada-lang.c: Likewise.
3292 * common/common-utils.h: Likewise.
3293 * guile/scm-string.c: Likewise.
3294 * guile/scm-utils.c: Likewise.
3295 * m32c-tdep.c: Likewise.
3296
d7096f71
GB
32972014-08-07 Gary Benson <gbenson@redhat.com>
3298
3299 * common/common-defs.h: Include stdlib.h.
3300 * defs.h: Do not include stdlib.h.
3301 * addrmap.c: Likewise.
3302 * bcache.c: Likewise.
3303 * common/buffer.c: Likewise.
3304 * common/common-utils.c: Likewise.
3305 * cp-name-parser.y: Likewise.
3306 * go32-nat.c: Likewise.
3307 * mn10300-linux-tdep.c: Likewise.
3308 * nat/linux-osdata.c: Likewise.
3309 * tui/tui.c: Likewise.
3310 * windows-nat.c: Likewise.
3311
d02f550d
GB
33122014-08-07 Gary Benson <gbenson@redhat.com>
3313
3314 * common/common-defs.h: Include stdio.h.
3315 * defs.h: Do not include stdio.h.
3316 * ada-lang.c: Likewise.
3317 * common/buffer.c: Likewise.
3318 * common/common-utils.c: Likewise.
3319 * cp-name-parser.y: Likewise.
3320 * gnu-nat.c: Likewise.
3321 * go32-nat.c: Likewise.
3322 * i386gnu-nat.c: Likewise.
3323 * proc-api.c: Likewise.
3324 * proc-events.c: Likewise.
3325 * proc-flags.c: Likewise.
3326 * proc-why.c: Likewise.
3327 * python/python-internal.h: Likewise.
3328 * target-memory.c: Likewise.
3329 * tui/tui-io.c: Likewise.
3330 * tui/tui.c: Likewise.
3331
b6d7a4bf
SM
33322014-08-06 Simon Marchi <simon.marchi@ericsson.com>
3333
3334 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
3335 (scan_dyntag_auxv): Same.
3336
af19829b
YQ
33372014-08-06 Yao Qi <yao@codesourcery.com>
3338
3339 * amd64-linux-nat.c: Remove duplicated include
3340 "x86-linux-nat.h".
3341 * i386-linux-nat.c: Likewise.
3342
8e07a239
YQ
33432014-08-06 Yao Qi <yao@codesourcery.com>
3344
3345 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
3346 operand" with "Special opcode" in comments.
3347
7bfe8241
GB
33482014-08-05 Gary Benson <gbenson@redhat.com>
3349
3350 * interps.c (initialize_interps): Remove prototype.
3351 (interpreter_initialized): Remove static global.
3352 (interp_add): Do not call initialize_interps.
3353 (initialize_interps): Remove function.
3354
d6c95504
GB
33552014-08-05 Gary Benson <gbenson@redhat.com>
3356
3357 * utils.c (vwarning): Remove spurious va_end.
3358
241fd515
AM
33592014-08-05 Alan Modra <amodra@gmail.com>
3360
3361 * charset.c (convert_between_encodings): Cast result of obstack_base.
3362 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
3363 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
3364 (read_unwind_info): Use size_t for some locals.
3365 * jit.c (finalize_symtab): Likewise.
3366 * utils.c (hashtab_obstack_allocate): Likewise.
3367 * symmisc.c (print_objfile_statistics): Update format strings.
3368
dc304a94
JK
33692014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3370
3371 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
3372 (Changes in GDB 7.8): ... here.
3373
3cecbbbe
TT
33742014-08-04 Tom Tromey <tromey@redhat.com>
3375
3376 * target.c (set_targetdebug): New function.
3377 (initialize_targets): Pass set_targetdebug when creating "set
3378 debug target".
3379
6908c509
JB
33802014-08-01 Joel Brobecker <brobecker@adacore.com>
3381
3382 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
3383 if detecting a variable-sized field that is not the last field.
3384 Fix struct type length computation.
3385
53e8f97d
JB
33862014-08-01 Joel Brobecker <brobecker@adacore.com>
3387
3388 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3389 Add debug trace.
3390
e068c55d
JB
33912014-08-01 Joel Brobecker <brobecker@adacore.com>
3392
3393 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3394 Remove "+ 8" offset in computation of CHAIN_VMA.
3395
4d4ca2a1
DE
33962014-07-31 Doug Evans <dje@google.com>
3397
3398 * inflow.c (child_terminal_inferior): Add comment.
3399 (child_terminal_ours_for_output): Add comment.
3400 (child_terminal_ours): Add comment.
3401 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
3402 (linux_nat_terminal_ours): Add comment.
3403
462f517e
GB
34042014-07-31 Gary Benson <gbenson@redhat.com>
3405
3406 * common/btrace-common.h: Do not include defs.h or server.h.
3407 * nat/mips-linux-watch.h: Likewise.
3408 * gdb-dlfcn.h: Do not include defs.h.
3409 * tracefile.h: Likewise.
3410
74228e77
RM
34112014-07-30 Roland McGrath <mcgrathr@google.com>
3412
3413 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
3414
014f9477
TT
34152014-07-30 Tom Tromey <tromey@redhat.com>
3416
3417 * bsd-kvm.c (bsd_kvm_open): Constify.
3418 * corelow.c (core_open): Constify.
3419 * ctf.c (ctf_open): Constify.
3420 * dbug-rom.c (dbug_open): Constify.
3421 * exec.c (exec_open): Constify.
3422 * m32r-rom.c (m32r_open, mon2000_open): Constify.
3423 * microblaze-rom.c (picobug_open): Constify.
3424 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
3425 Constify.
3426 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
3427 * record-btrace.c (record_btrace_open): Constify.
3428 * record-full.c (record_full_core_open_1, record_full_open_1)
3429 (record_full_open): Constify.
3430 * remote-m32r-sdi.c (m32r_open): Constify.
3431 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
3432 (rockhopper_open, lsi_open): Constify.
3433 * remote-sim.c (gdbsim_open): Constify.
3434 * remote.c (remote_open, extended_remote_open, remote_open_1):
3435 Constify.
3436 * target.h (struct target_ops) <to_open>: Make "arg" const.
3437 * tracefile-tfile.c (tfile_open): Constify.
3438
e799154c
TT
34392014-07-30 Tom Tromey <tromey@redhat.com>
3440
3441 * breakpoint.c (map_breakpoint_numbers): Update.
3442 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
3443 (get_number_const): New function.
3444 (get_number): Rewrite using get_number_const.
3445 (init_number_or_range): Make "string" const.
3446 (number_is_in_list): Make "list" const.
3447 * cli/cli-utils.h (get_number_const): Declare.
3448 (struct get_number_or_range_state) <string, end_ptr>: Now const.
3449 (init_number_or_range, number_is_in_list): Update.
3450 * printcmd.c (map_display_numbers): Update.
3451 * value.c (value_from_history_ref): Constify.
3452 * value.h (value_from_history_ref): Update.
3453
5f08566b
TT
34542014-07-30 Tom Tromey <tromey@redhat.com>
3455
3456 * corefile.c (hook_type, call_extra_exec_file_hooks)
3457 (specify_exec_file_hook): Constify.
3458 * exec.c (exec_file_attach): Make "filename" const.
3459 * gdbcore.h (deprecated_exec_file_display_hook)
3460 (specify_exec_file_hook, exec_file_attach): Constify.
3461 * main.c (captured_main): Use catch_command_errors_const.
3462
8981c758
TT
34632014-07-30 Tom Tromey <tromey@redhat.com>
3464
3465 * target.c (open_target): New function.
3466 (add_target_with_completer, add_deprecated_target_alias): Use
3467 set_cmd_sfunc, set_cmd_context.
3468 (debug_to_open): Remove.
3469 (setup_target_debug): Update.
3470
a1c7835a
YQ
34712014-07-30 Yao Qi <yao@codesourcery.com>
3472
3473 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
3474 comments.
3475 * parse.c (exp_iterate): Update comments.
3476
976411d6
GB
34772014-07-30 Gary Benson <gbenson@redhat.com>
3478
3479 * common/common-defs.h: New file.
3480 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
3481 * defs.h: Include common-defs.h.
3482 Do not include config.h or build-gnulib/config.h.
3483
5d4848a4
GB
34842014-07-30 Gary Benson <gbenson@redhat.com>
3485
3486 * common/common-utils.h: Do not include config.h.
3487 * nat/linux-btrace.h: Likewise.
3488
d41f6d8e
GB
34892014-07-30 Gary Benson <gbenson@redhat.com>
3490
3491 * btrace.c: Include defs.h.
3492 * common/ptid.c: Include defs.h or server.h as appropriate.
3493 * nat/mips-linux-watch.c: Likewise.
3494
84202f9c
TT
34952014-07-29 Tom Tromey <tromey@redhat.com>
3496
3497 * target.c (target_is_pushed): Simplify.
3498
2530441c
JB
34992014-07-29 Joel Brobecker <brobecker@adacore.com>
3500
3501 GDB 7.8 released.
3502
7e09a223
YQ
35032014-07-29 Yao Qi <yao@codesourcery.com>
3504
3505 PR gdb/17206
3506 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
3507
7ebdbe92
DE
35082014-07-28 Doug Evans <xdje42@gmail.com>
3509
3510 PR guile/17203
3511 * guile/scm-param.c (pascm_parameter_defined_p): New function.
3512 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
3513 parameters.
3514
f347ffc9
WN
35152014-07-28 Will Newton <will.newton@linaro.org>
3516
3517 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
3518 (THUMB2_SET_R7_SIGRETURN2): Likewise.
3519 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
3520 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
3521 (THUMB2_EABI_SYSCALL): Likewise.
3522 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
3523 struct tramp_frame.
3524 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
3525 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
3526
37c5f1f7
DE
35272014-07-27 Doug Evans <xdje42@gmail.com>
3528
3529 * guile/scm-param.c (pascm_print_param_smob): Fix output.
3530
0c3abbc7
DE
35312014-07-27 Doug Evans <xdje42@gmail.com>
3532
3533 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
3534
e76c5d17
DE
35352014-07-26 Ludovic Courtès <ludo@gnu.org>
3536 Doug Evans <xdje42@gmail.com>
3537
3538 PR guile/17146
3539 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
3540 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
3541 * configure.ac: Try to use guild to compile an scm file, if it fails
3542 then disable guile support.
3543 * configure: Regenerate.
3544 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
3545 GUILE_FILE_LIST.
3546 (GUILE_COMPILED_FILES): New variable.
3547 (GUILE_FILES) Update.
3548 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
3549 (stamp-guile): Compile scm files.
3550 * guile/guile.c (boot_guile_support): New function.
3551 (standard_throw_args_p): New function.
3552 (print_standard_throw_error, print_throw_error): New functions.
3553 (handle_boot_error): New function.
3554 (initialize_scheme_side): Rewrite to call boot_guile_support.
3555 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
3556 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
3557
186fcde0
DE
35582014-07-26 Ludovic Courtès <ludo@gnu.org>
3559 Doug Evans <xdje42@gmail.com>
3560
3561 PR guile/17146
3562 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
3563 * guile/lib/gdb/support.scm: New file.
3564 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
3565 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
3566 All uses updated.
3567 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
3568 All uses updated.
3569 (%assert-type): Ditto, and renamed to assert-type.
3570 (%exception-print-style): Delete.
3571
4df42755
DE
35722014-07-26 Doug Evans <xdje42@gmail.com>
3573
3574 PR build/17105
3575 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
3576 * configure: Regenerate.
3577 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
3578 PYTHON_FILES.
3579 (PYTHON_FILES): New variable.
3580 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
3581 (GUILE_FILES): New variable.
3582 (stamp-python, install-python, uninstall-python): Handle empty
3583 file list.
3584 (stamp-guile, install-guile, uninstall-guile): Ditto.
3585
ee7333ae
DE
35862014-07-26 Doug Evans <xdje42@gmail.com>
3587
3588 PR guile/17177
3589 * guile/lib/gdb.scm (pretty-printers): Export.
3590 (set-pretty-printers!): Export.
3591 * guile/lib/gdb/printing.scm (gdb module): Update.
3592 (prepend-pretty-printer!, append-pretty-printer!): Update.
3593 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
3594 (pretty_printer_list_var): Delete.
3595 (pretty_printer_list): New static global.
3596 (gdbscm_pretty_printers): New function.
3597 (gdbscm_set_pretty_printers_x): New function.
3598 (ppscm_find_pretty_printer_from_gdb): Update.
3599 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
3600 (gdbscm_initialize_pretty_printers): Update.
3601
74edf516
DE
36022014-07-26 Doug Evans <xdje42@gmail.com>
3603
3604 PR 17185
3605 * configure.ac: Add check for header gc/gc.h.
3606 Add check for function setenv.
3607 * configure: Regenerate.
3608 * config.in: Regenerate.
3609 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
3610
d54398a7
MR
36112014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
3612
3613 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
3614 variation in gdbarch matching.
3615
ab16fce8
TT
36162014-07-25 Tom Tromey <tromey@redhat.com>
3617
3618 * exec.c (using_exec_ops): Remove.
3619 (exec_close_1): Update. Remove extraneous block, reindent.
3620 (add_target_sections): Use target_is_pushed.
3621
88056fbb
PA
36222014-07-25 Pedro Alves <palves@redhat.com>
3623
3624 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
3625 * monitor.c (monitor_create_inferior): Likewise.
3626 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
3627 * remote-sim.c (gdbsim_create_inferior): Likewise.
3628 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
3629 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
3630 * windows-nat.c (do_initial_windows_stuff): Likewise.
3631
70509625
PA
36322014-07-25 Pedro Alves <palves@redhat.com>
3633
3634 * NEWS: Mention signal passing and "signal" command changes.
3635 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
3636 comment.
3637 * breakpoint.c (until_break_command): Adjust clear_proceed_status
3638 call.
3639 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
3640 * infcmd.c (proceed_thread_callback, continue_1, step_once)
3641 (jump_command): Adjust clear_proceed_status call.
3642 (signal_command): Warn if other thread that are resumed have
3643 signals that will be delivered. Adjust clear_proceed_status call.
3644 (until_next_command, finish_command)
3645 (proceed_after_attach_callback, attach_command_post_wait)
3646 (attach_command): Adjust clear_proceed_status call.
3647 * infrun.c (proceed_after_vfork_done): Likewise.
3648 (proceed_after_attach_callback): Adjust comment.
3649 (clear_proceed_status_thread): Clear stop_signal if not in pass
3650 state.
3651 (clear_proceed_status_callback): Delete.
3652 (clear_proceed_status): New 'step' parameter. Only clear the
3653 proceed status of threads the command being prepared is about to
3654 resume.
3655 (proceed): If passed in an explicit signal, override stop_signal
3656 with it. Don't pass the last stop signal to the thread we're
3657 resuming.
3658 (init_wait_for_inferior): Adjust clear_proceed_status call.
3659 (switch_back_to_stepped_thread): Clear the signal if it should not
3660 be passed.
3661 * infrun.h (clear_proceed_status): New 'step' parameter.
3662 (user_visible_resume_ptid): Add comment.
3663 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
3664 signal is in pass state.
3665 * remote.c (append_pending_thread_resumptions): Likewise.
3666 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
3667
d8be2939
TT
36682014-07-25 Tom Tromey <tromey@redhat.com>
3669
3670 * target.h (target_stopped_data_address)
3671 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
3672 parentheses.
3673
7d0d9d2b
PL
36742014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
3675
3676 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
3677 comments.
3678 (avr_pointer_to_address): Likewise.
3679
e9e7f724
TT
36802014-07-24 Tom Tromey <tromey@redhat.com>
3681
3682 * monitor.c (compile_pattern): Update.
3683 * target.h (struct target_ops) <to_shortname, to_longname,
3684 to_doc>: Now const.
3685
1947513d
TT
36862014-07-24 Tom Tromey <tromey@redhat.com>
3687
3688 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
3689 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
3690 (add_info_alias, add_com): Make "doc" const.
3691 (print_doc_line): Make "str" const.
3692 (delete_cmd): Update.
3693 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
3694 (print_doc_line): Update.
3695 * cli/cli-script.c (document_command): Update.
3696 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
3697 (add_com, add_info, add_info_alias): Update.
3698 * guile/scm-cmd.c (cmdscm_destroyer): Update.
3699 * python/py-cmd.c (cmdpy_destroyer): Update.
3700
64e61d29
TT
37012014-07-24 Tom Tromey <tromey@redhat.com>
3702
3703 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
3704 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
3705 (help_cmd_list): Constify.
3706 (lookup_cmd): Update.
3707 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
3708 const.
3709 (help_cmd_list, apropos_cmd): Update.
3710 * cli/cli-script.c (show_user): Update.
3711 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
3712 * cli/cli-setshow.h (cmd_show_list): Update.
3713 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
3714 (cmd_show_list): Update.
3715 * guile/scm-cmd.c (cmdscm_destroyer): Update.
3716 * python/py-cmd.c (cmdpy_destroyer): Update.
3717
429e55ea
TT
37182014-07-24 Tom Tromey <tromey@redhat.com>
3719
3720 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
3721 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
3722 const.
3723 * command.h (deprecate_cmd): Update.
3724 * maint.c (maintenance_do_deprecate): Add casts.
3725
64669f3b
TT
37262014-07-24 Tom Tromey <tromey@redhat.com>
3727
3728 * cli/cli-decode.c (help_cmd): Make parameter "const".
3729 * cli/cli-decode.h (help_cmd): Update.
3730
d3d3328b
TT
37312014-07-24 Tom Tromey <tromey@redhat.com>
3732
3733 * stack.c (up_silently_base, down_silently_base): Make argument
3734 const.
3735
414842dc
TT
37362014-07-24 Tom Tromey <tromey@redhat.com>
3737
3738 * solib.c (solib_add): Make "pattern" const.
3739 * solib.h (solib_add): Update.
3740
baa336ce
TT
37412014-07-24 Tom Tromey <tromey@redhat.com>
3742
3743 * remote.c (remote_serial_open, print_packet, putpkt)
3744 (putpkt_binary): Constify.
3745 * remote.h (putpkt): Update.
3746
5a19e2d0
TT
37472014-07-24 Tom Tromey <tromey@redhat.com>
3748
3749 * monitor.c (monitor_open): Make "args" const.
3750 * monitor.h (monitor_open): Update.
3751
fc4baa5e
TT
37522014-07-24 Tom Tromey <tromey@redhat.com>
3753
3754 * maint.c (match_bfd_flags): Make "string" const.
3755 (print_bfd_section_info): Remove casts.
3756 (print_objfile_section_info): Make "string" const.
3757
0d5f0dbe
TT
37582014-07-24 Tom Tromey <tromey@redhat.com>
3759
3760 * inf-child.c (inf_child_open_target): Make "arg" const.
3761 * inf-child.h (inf_child_open_target): Update.
3762
41c77899
TT
37632014-07-24 Tom Tromey <tromey@redhat.com>
3764
3765 * environ.c (unset_in_environ): Make "var" const.
3766 * environ.h (unset_in_environ): Update.
3767
93db0d79
TT
37682014-07-24 Tom Tromey <tromey@redhat.com>
3769
3770 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
3771 Make "cmd" const.
3772 (scan_filename_with_cleanup): Likewise.
3773 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
3774 Make arguments const.
3775 (restore_command): Update.
3776
36d6eb95
PA
37772014-07-24 Pedro Alves <palves@redhat.com>
3778
3779 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
3780
8009206a
TT
37812014-07-24 Tom Tromey <tromey@redhat.com>
3782 Gary Benson <gbenson@redhat.com>
3783
3784 * nat/linux-ptrace.c (additional_flags): New global.
3785 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
3786 additional_flags; don't check GDBSERVER.
3787 (linux_ptrace_set_additional_flags): New function.
3788 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
3789 Declare.
3790 * linux-nat.c (_initialize_linux_nat): Call
3791 linux_ptrace_set_additional_flags.
3792
a7068b60
TT
37932014-07-24 Tom Tromey <tromey@redhat.com>
3794
3795 * make-target-delegates (munge_type, write_debugmethod): New
3796 functions.
3797 (debug_names): New global.
3798 ($TARGET_DEBUG_PRINTER): New global.
3799 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
3800 name.
3801 Write debug methods. Generate init_debug_target.
3802 * target-debug.h: New file.
3803 * target-delegates.c: Rebuild.
3804 * target.c: Include target-debug.h.
3805 (debug_target): Hoist definition.
3806 (target_kill, target_get_section_table, target_memory_map)
3807 (target_flash_erase, target_flash_done, target_detach)
3808 (target_disconnect, target_wait, target_resume)
3809 (target_pass_signals, target_program_signals, target_follow_fork)
3810 (target_mourn_inferior, target_search_memory)
3811 (target_thread_address_space, target_close)
3812 (target_find_new_threads, target_core_of_thread)
3813 (target_verify_memory, target_insert_mask_watchpoint)
3814 (target_remove_mask_watchpoint): Remove targetdebug code.
3815 (debug_to_post_attach, debug_to_prepare_to_store)
3816 (debug_to_files_info, debug_to_insert_breakpoint)
3817 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
3818 (debug_to_region_ok_for_hw_watchpoint)
3819 (debug_to_can_accel_watchpoint_condition)
3820 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
3821 (debug_to_watchpoint_addr_within_range)
3822 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
3823 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
3824 (debug_to_terminal_init, debug_to_terminal_inferior)
3825 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
3826 (debug_to_terminal_save_ours, debug_to_terminal_info)
3827 (debug_to_load, debug_to_post_startup_inferior)
3828 (debug_to_insert_fork_catchpoint)
3829 (debug_to_remove_fork_catchpoint)
3830 (debug_to_insert_vfork_catchpoint)
3831 (debug_to_remove_vfork_catchpoint)
3832 (debug_to_insert_exec_catchpoint)
3833 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
3834 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
3835 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
3836 (setup_target_debug): Call init_debug_target.
3837 * target.h (TARGET_DEBUG_PRINTER): New macro.
3838 (struct target_ops) <to_resume, to_wait, to_pass_signals,
3839 to_program_signals>: Use TARGET_DEBUG_PRINTER.
3840
2c51604d
GB
38412014-07-24 Gary Benson <gbenson@redhat.com>
3842
3843 * exceptions.h (throw_vfatal): Renamed to...
3844 (throw_vquit): New declaration.
3845 (throw_quit): Likewise.
3846 * exceptions.c (throw_vfatal): Renamed to...
3847 (throw_vquit): New function.
3848 (throw_quit): Likewise.
3849 (throw_error): Call throw_verror rather than throw_it.
3850 * utils.h (vfatal): Removed.
3851 (fatal): Likewise.
3852 * utils.c (vfatal): Removed.
3853 (fatal): Likewise.
3854 (internal_verror): Replaced call to fatal with call to throw_quit.
3855 (quit): Replaced calls to fatal with calls to throw_quit.
3856
34211963
ME
38572014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
3858
3859 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
3860 target_read_code.
3861
a52b4d3e
ME
38622014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
3863
3864 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
3865 less than zero in conditional expression.
3866
a8bdc56b
TT
38672014-07-23 Tom Tromey <tromey@redhat.com>
3868
3869 * make-target-delegates ($ARGS_PART): Match trailing close paren.
3870 ($INTRO_PART): Don't match whitespace.
3871 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
3872 argument matching.
3873 ($METHOD): Add $METHOD_TRAILER.
3874 (trim): Rewrite.
3875 (scan_target_h): New sub.
3876 Change main loop not to collect state.
3877 * target-delegates.c: Rebuild.
3878
91b52240
GB
38792014-07-23 Gary Benson <gbenson@redhat.com>
3880
3881 * cp-support.c (gdb_demangle): Fix build on systems without
3882 sigaltstack.
3883
45326f6f
JK
38842014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3885
3886 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
3887 for reference entry value target data value.
3888
e214cf6c
JK
38892014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3890
3891 * stack.c (read_frame_arg): Verify value_optimized_out before calling
3892 value_available_contents_eq.
3893
bddbbedd
PA
38942014-07-22 Pedro Alves <palves@redhat.com>
3895
3896 * value.c (allocate_optimized_out_value): Don't mark value as
3897 non-lazy.
3898
45c71484
JW
38992014-07-22 Jiong Wang <jiong.wang@arm.com>
3900
3901 * MAINTAINERS (Write After Approval): Update my email address.
3902
9597b22a
DE
39032014-07-20 Doug Evans <dje@google.com>
3904
3905 PR server/17147
3906 * remote.c (putpkt_binary): Add text to error message.
3907
91101fe5
YQ
39082014-07-20 Yao Qi <yao@codesourcery.com>
3909
3910 * eval.c: Remove "Chill" from comments.
3911 * gdbtypes.h: Likewise.
3912 * symtab.h: Likewise.
3913
c9402c95
YQ
39142014-07-20 Yao Qi <yao@codesourcery.com>
3915
3916 * std-operator.def: Update comments to TERNOP_SLICE.
3917
ae8fddda
YQ
39182014-07-20 Yao Qi <yao@codesourcery.com>
3919
3920 * std-operator.def: Remove BINOP_RANGE.
3921 * breakpoint.c (watchpoint_exp_is_const): Update.
3922 * expprint.c (dump_subexp_body_standard): Likewise.
3923 * eval.c (init_array_element): Remove dead code.
3924 (evaluate_subexp_standard): Likewise.
3925
9c816640
YQ
39262014-07-20 Yao Qi <yao@codesourcery.com>
3927
3928 * std-operator.def: Remove BINOP_IN.
3929 * breakpoint.c (watchpoint_exp_is_const): Update.
3930 * eval.c (evaluate_subexp_standard): Likewise.
3931 * expprint.c (dump_subexp_body_standard): Likewise.
3932
164224e9
ME
39332014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
3934
3935 * microblaze-tdep.c (microblaze_register_names): Add
3936 the rshr and rslr register names.
3937 (microblaze_gdbarch_init): Use of tdesc_has_registers.
3938 Use of tdesc_find_feature. Use of tdesc_data_alloc.
3939 Use of tdesc_numbered_register. Use of
3940 microblaze_register_g_packet_guesses. Use of
3941 tdesc_use_registers. Use of set_gdbarch_register_type.
3942 (microblaze_register_g_packet_guesses): New.
3943 * microblaze-tdep.h (microblaze_reg_num): Add
3944 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
3945 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
3946 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
3947 * features/microblaze-core.xml: New file.
3948 * features/microblaze-stack-protect.xml: New file.
3949 * features/microblaze-with-stack-protect.c: New file.
3950 * features/microblaze-with-stack-protect.xml: New file.
3951 * features/microblaze.xml: New file.
3952 * features/microblaze.c: New file.
3953 * features/Makefile (microblaze-with-stack-protect): Add
3954 microblaze-with-stack-protect microblaze and microblaze-expedite.
3955 * regformats/microblaze-with-stack-protect.dat: New file.
3956 * regformats/microblaze.dat: New file.
3957 * doc/gdb.texinfo (MicroBlaze Features): Added.
3958
e8b2341c
TT
39592014-07-18 Tom Tromey <tromey@redhat.com>
3960
3961 * exec.c (exec_ops): Now static.
3962 * exec.h (exec_ops): Don't declare.
3963
44e89118
TT
39642014-07-18 Tom Tromey <tromey@redhat.com>
3965
3966 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
3967 to find_target_beneath.
3968 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
3969 find_target_beneath.
3970 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
3971
b0ed115f
TT
39722014-07-18 Tom Tromey <tromey@redhat.com>
3973
3974 PR gdb/17130:
3975 * utils.c (quit): Use target_supports_terminal_ours.
3976 * target.h (target_supports_terminal_ours): Declare.
3977 * target.c (target_supports_delete_record): Don't check
3978 to_delete_record against NULL.
3979 (target_supports_terminal_ours): New function.
3980
e75fdfca
TT
39812014-07-18 Tom Tromey <tromey@redhat.com>
3982
3983 PR gdb/17130:
3984 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
3985 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
3986 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
3987 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
3988 * windows-nat.c (windows_xfer_partial): Always delegate.
3989 * record-btrace.c (record_btrace_xfer_partial): Simplify
3990 delegation.
3991 (record_btrace_fetch_registers, record_btrace_store_registers)
3992 (record_btrace_prepare_to_store, record_btrace_resume)
3993 (record_btrace_wait, record_btrace_find_new_threads)
3994 (record_btrace_thread_alive): Likewise.
3995 * procfs.c (procfs_xfer_partial): Always delegate.
3996 * corelow.c (core_xfer_partial): Always delegate.
3997 * sol-thread.c (sol_find_new_threads): Simplify delegation.
3998
83814951
TT
39992014-07-18 Tom Tromey <tromey@redhat.com>
4000
4001 * exec.c (exec_make_note_section): Move earlier.
4002
b8b8facf
DE
40032014-07-17 Doug Evans <dje@google.com>
4004
74b49205 4005 PR gdb/17170
b8b8facf
DE
4006 * maint.c (count_symtabs_and_blocks): Handle NULL
4007 current_program_space.
4008 (report_command_stats): Check global enabled flag in addition to
4009 recorded enabled flag.
4010 (make_command_stats_cleanup): Handle msg_type == 0, startup.
4011
69ff6be5
PA
40122014-07-16 Pedro Alves <palves@redhat.com>
4013
4014 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
4015
252db1b5
TT
40162014-07-16 Tom Tromey <tromey@redhat.com>
4017
4018 * target.h (struct target_ops) <to_delete_record>: Reformat
4019 comment.
4020
a432721e
TT
40212014-07-16 Tom Tromey <tromey@redhat.com>
4022
4023 * target-delegates.c: Rebuild.
4024
487d9753
PL
40252014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
4026
4027 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
4028 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
4029 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
4030 (avr_pointer_to_address): Likewise.
4031 (avr_address_class_type_flags): New function.
4032 (avr_address_class_type_flags_to_name): Likewise.
4033 (avr_address_class_name_to_type_flags): Likewise.
4034 (avr_gdbarch_init): Set address_class_type_flags,
4035 address_class_type_flags_to_name and
4036 address_class_name_to_type_flags.
4037
57745c90
PA
40382014-07-15 Pedro Alves <palves@redhat.com>
4039
4040 * linux-nat.c (kill_callback): Save errno and work with saved
4041 copy.
4042
2d40be18
SM
40432014-07-15 Simon Marchi <simon.marchi@ericsson.com>
4044
4045 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
4046
572f6555
EBM
40472014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4048
4049 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
4050 breakpoint support correctly.
4051
cc1c52ad
PA
40522014-07-14 Pedro Alves <palves@redhat.com>
4053
4054 * utils.c (prompt_for_continue): Call target_terminal_ours.
4055
1e973570
PA
40562014-07-14 Pedro Alves <palves@redhat.com>
4057
4058 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
4059 catch_errors. Don't re-enable stdin or notify observers where,
4060 and rethrow error.
4061 (fetch_inferior_event_wrapper): Delete.
4062
93d6eb10
PA
40632014-07-14 Pedro Alves <palves@redhat.com>
4064
4065 PR gdb/17072
4066 * top.c: Include "inf-loop.h".
4067 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
4068 field.
4069 (gdb_readline_wrapper_cleanup): Make the target async again, if it
4070 was async before.
4071 (gdb_readline_wrapper): Store whether the target is async, and
4072 make it sync.
4073
0017922d
PA
40742014-07-14 Pedro Alves <palves@redhat.com>
4075
4076 PR gdb/17072
4077 * top.c (gdb_readline_wrapper_line): Tweak comment.
4078 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
4079 the input handler callback.
4080
94696ad3
PA
40812014-07-14 Pedro Alves <palves@redhat.com>
4082
4083 PR gdb/17072
4084 * main.c: Include event-top.h.
4085 (handle_command_errors): New function.
4086 (catch_command_errors, catch_command_errors_const): Use it.
4087
9d1e69a2
PA
40882014-07-14 Pedro Alves <palves@redhat.com>
4089
4090 * exceptions.c (catch_command_errors, catch_command_errors_const):
4091 Moved to main.c.
4092 * exceptions.h (catch_command_errors_ftype)
4093 (catch_command_errors_const_ftype): Moved to main.c.
4094 (catch_command_errors, catch_command_errors_const): Delete
4095 declarations.
4096 * main.c (catch_command_errors_ftype)
4097 (catch_command_errors_const_ftype): Moved here from exceptions.h.
4098 (catch_command_errors, catch_command_errors_const)): Moved here
4099 from exceptions.c and make static.
4100
feefc97b
PA
41012014-07-14 Pedro Alves <palves@redhat.com>
4102
4103 * exceptions.c (print_any_exception): Delete.
4104 (catch_exceptions_with_msg): Use exception_print instead of
4105 print_any_exception.
4106 (catch_errors): Use exception_fprintf instead of
4107 print_any_exception.
4108 (catch_command_errors, catch_command_errors_const): Use
4109 exception_print instead of print_any_exception.
4110
c933f875
PA
41112014-07-14 Pedro Alves <palves@redhat.com>
4112
4113 * infcall.c (run_inferior_call): Set 'sync_execution' while
4114 running the inferior call.
4115
feb6f816
PA
41162014-07-14 Pedro Alves <palves@redhat.com>
4117
4118 * value.c (value_contents_equal): Delete function.
4119 * value.h (value_contents_equal): Delete declaration.
4120
d98b7a16
TT
41212014-07-14 Tom Tromey <tromey@redhat.com>
4122
4123 PR exp/17106:
4124 * gdbtypes.c (is_dynamic_type_internal): New function, from
4125 is_dynamic_type.
4126 (is_dynamic_type): Rewrite.
4127 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
4128 (resolve_dynamic_struct): Likewise.
4129 (resolve_dynamic_type_internal): New function, from
4130 resolve_dynamic_type.
4131 (resolve_dynamic_type): Rewrite.
4132
548740d6
TT
41332014-07-14 Tom Tromey <tromey@redhat.com>
4134
4135 * target.c (target_require_runnable): Also check record_stratum.
4136 Update comment.
4137
808f7ab1
YQ
41382014-07-11 Yao Qi <yao@codesourcery.com>
4139
4140 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
4141 thumb_instruction_restores_sp return true.
4142
540314bd
YQ
41432014-07-11 Yao Qi <yao@codesourcery.com>
4144
4145 * arm-tdep.c (thumb_instruction_restores_sp): New function.
4146 (thumb_in_function_epilogue_p): Call
4147 thumb_instruction_restores_sp.
4148
1db01f22
YQ
41492014-07-11 Yao Qi <yao@codesourcery.com>
4150
4151 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
4152 'add sp, #imm'.
4153 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
4154
3116063b
GB
41552014-07-11 Gary Benson <gbenson@redhat.com>
4156
4157 * amd64-linux-nat.c (gdbcore.h): Remove include.
4158 (regset.h): Likewise.
4159 (nat/linux-btrace.h): Likewise.
4160 (btrace.h): Likewise.
4161 (gdb_assert.h): Likewise.
4162 (string.h): Likewise.
4163 (sys/uio.h): Likewise.
4164 (sys/debugreg.h): Likewise.
4165 (sys/syscall.h): Likewise.
4166 (sys/procfs.h): Likewise.
4167 (sys/user.h): Likewise.
4168 (asm/ptrace.h): Likewise.
4169 (i386-nat.h): Likewise.
4170 * i386-linux-nat.c (i386-nat.h): Likewise.
4171 (regset.h): Likewise.
4172 (target.h): Likewise.
4173 (linux-nat.h): Likewise.
4174 (nat/linux-btrace.h): Likewise.
4175 (btrace.h): Likewise.
4176 (gdb_assert.h): Likewise.
4177 (string.h): Likewise.
4178 (sys/uio.h): Likewise.
4179 (sys/user.h): Likewise.
4180 (sys/procfs.h): Likewise.
4181 (sys/reg.h): Likewise.
4182 (sys/debugreg.h): Likewise.
4183 (ORIG_EAX): Remove definition.
4184
040baaf6
GB
41852014-07-11 Gary Benson <gbenson@redhat.com>
4186
4187 * i386-linux-nat.h: New file.
4188 * x86-linux-nat.h: Likewise.
4189 * x86-linux-nat.c: Likewise.
4190 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
4191 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
4192 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4193 * amd64-linux-nat.c (x86-linux-nat.h): New include.
4194 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
4195 (PTRACE_SETREGSET): Likewise.
4196 (arch_lwp_info): Now in x86-linux-nat.c.
4197 (have_ptrace_getregset): Now in x86-linux-nat.h.
4198 (x86_linux_dr_get): Now in x86-linux-nat.c.
4199 (x86_linux_dr_set): Likewise.
4200 (x86_linux_dr_get_addr): Likewise.
4201 (x86_linux_dr_get_control): Likewise.
4202 (x86_linux_dr_get_status): Likewise.
4203 (update_debug_registers_callback): Likewise.
4204 (x86_linux_dr_set_control): Likewise.
4205 (x86_linux_dr_set_addr): Likewise.
4206 (x86_linux_prepare_to_resume): Likewise.
4207 (x86_linux_new_thread): Likewise.
4208 (x86_linux_new_fork): Likewise.
4209 (x86_linux_get_thread_area): Likewise.
4210 (super_post_startup_inferior): Likewise.
4211 (x86_linux_child_post_startup_inferior): Likewise.
4212 (AMD64_LINUX_USER64_CS): Likewise.
4213 (AMD64_LINUX_X32_DS): Likewise.
4214 (x86_linux_read_description): Likewise.
4215 (x86_linux_enable_btrace): Likewise.
4216 (x86_linux_disable_btrace): Likewise.
4217 (x86_linux_teardown_btrace): Likewise.
4218 (x86_linux_read_btrace): Likewise.
4219 (x86_linux_create_target): Likewise.
4220 (x86_linux_add_target): Likewise.
4221 * i386-linux-nat.c (x86-linux-nat.h): New include.
4222 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
4223 (PTRACE_SETREGSET): Likewise.
4224 (arch_lwp_info): Now in x86-linux-nat.c.
4225 (have_ptrace_getregset): Now in x86-linux-nat.h.
4226 (x86_linux_dr_get): Now in x86-linux-nat.c.
4227 (x86_linux_dr_set): Likewise.
4228 (x86_linux_dr_get_addr): Likewise.
4229 (x86_linux_dr_get_control): Likewise.
4230 (x86_linux_dr_get_status): Likewise.
4231 (update_debug_registers_callback): Likewise.
4232 (x86_linux_dr_set_control): Likewise.
4233 (x86_linux_dr_set_addr): Likewise.
4234 (x86_linux_prepare_to_resume): Likewise.
4235 (x86_linux_new_thread): Likewise.
4236 (x86_linux_new_fork): Likewise.
4237 (x86_linux_get_thread_area): Likewise.
4238 (super_post_startup_inferior): Likewise.
4239 (x86_linux_child_post_startup_inferior): Likewise.
4240 (AMD64_LINUX_USER64_CS): Likewise.
4241 (AMD64_LINUX_X32_DS): Likewise.
4242 (x86_linux_read_description): Likewise.
4243 (x86_linux_enable_btrace): Likewise.
4244 (x86_linux_disable_btrace): Likewise.
4245 (x86_linux_teardown_btrace): Likewise.
4246 (x86_linux_read_btrace): Likewise.
4247 (x86_linux_create_target): Likewise.
4248 (x86_linux_add_target): Likewise.
4249
1aa7e42c
GB
42502014-07-11 Gary Benson <gbenson@redhat.com>
4251
4252 * amd64-linux-nat.c: Comment and whitespace changes.
4253 * i386-linux-nat.c: Comment and whitespace changes.
4254
c1e246a0
GB
42552014-07-11 Gary Benson <gbenson@redhat.com>
4256
4257 * amd64-linux-nat.c (x86_linux_create_target): New function.
4258 (x86_linux_add_target): Likewise.
4259 (_initialize_amd64_linux_nat): Delegate to the above new functions.
4260 * i386-linux-nat.c (x86_linux_create_target): New function.
4261 (x86_linux_add_target): Likewise.
4262 (_initialize_i386_linux_nat): Delegate to the above new functions.
4263
8c420b8d
GB
42642014-07-11 Gary Benson <gbenson@redhat.com>
4265
4266 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
4267 (ps_get_thread_area): Delegate to the above in 32-bit mode.
4268 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
4269 (ps_get_thread_area): Delegate to the above.
4270
cb1da100
GB
42712014-07-11 Gary Benson <gbenson@redhat.com>
4272
4273 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
4274 x86_linux_read_description. All uses updated. amd64-specific
4275 code conditionalized. Conditionalized i386-specific code added.
4276 Redundant cast removed.
4277 * i386-linux-nat.c (i386_linux_read_description): Renamed to
4278 x86_linux_read_description. All uses updated. i386-specific
4279 code conditionalized. Conditionalized amd64-specific code added.
4280 One sizeof replaced with the actual type it is describing.
4281
2acf3cd0
GB
42822014-07-11 Gary Benson <gbenson@redhat.com>
4283
4284 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
4285 x86_linux_dr_get. All uses updated.
4286 (amd64_linux_dr_set): Renamed to
4287 x86_linux_dr_set. All uses updated.
4288 (amd64_linux_dr_get_addr): Renamed to
4289 x86_linux_dr_get_addr. All uses updated.
4290 (amd64_linux_dr_get_control): Renamed to
4291 x86_linux_dr_get_control. All uses updated.
4292 (amd64_linux_dr_get_status): Renamed to
4293 x86_linux_dr_get_status. All uses updated.
4294 (amd64_linux_dr_set_control): Renamed to
4295 x86_linux_dr_set_control. All uses updated.
4296 (amd64_linux_dr_set_addr): Renamed to
4297 x86_linux_dr_set_addr. All uses updated.
4298 (amd64_linux_prepare_to_resume): Renamed to
4299 x86_linux_prepare_to_resume. All uses updated.
4300 (amd64_linux_new_thread): Renamed to
4301 x86_linux_new_thread. All uses updated.
4302 (amd64_linux_new_fork): Renamed to
4303 x86_linux_new_fork. All uses updated.
4304 (amd64_linux_child_post_startup_inferior): Renamed to
4305 x86_linux_child_post_startup_inferior. All uses updated.
4306 (amd64_linux_enable_btrace): Renamed to
4307 x86_linux_enable_btrace. All uses updated.
4308 (amd64_linux_disable_btrace): Renamed to
4309 x86_linux_disable_btrace. All uses updated.
4310 (amd64_linux_teardown_btrace): Renamed to
4311 x86_linux_teardown_btrace. All uses updated.
4312 (amd64_linux_read_btrace): Renamed to
4313 x86_linux_read_btrace. All uses updated.
4314 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
4315 x86_linux_dr_get. All uses updated.
4316 (i386_linux_dr_set): Renamed to
4317 x86_linux_dr_set. All uses updated.
4318 (i386_linux_dr_get_addr): Renamed to
4319 x86_linux_dr_get_addr. All uses updated.
4320 (i386_linux_dr_get_control): Renamed to
4321 x86_linux_dr_get_control. All uses updated.
4322 (i386_linux_dr_get_status): Renamed to
4323 x86_linux_dr_get_status. All uses updated.
4324 (i386_linux_dr_set_control): Renamed to
4325 x86_linux_dr_set_control. All uses updated.
4326 (i386_linux_dr_set_addr): Renamed to
4327 x86_linux_dr_set_addr. All uses updated.
4328 (i386_linux_prepare_to_resume): Renamed to
4329 x86_linux_prepare_to_resume. All uses updated.
4330 (i386_linux_new_thread): Renamed to
4331 x86_linux_new_thread. All uses updated.
4332 (i386_linux_new_fork): Renamed to
4333 x86_linux_new_fork. All uses updated.
4334 (i386_linux_child_post_startup_inferior): Renamed to
4335 x86_linux_child_post_startup_inferior. All uses updated.
4336 (i386_linux_enable_btrace): Renamed to
4337 x86_linux_enable_btrace. All uses updated.
4338 (i386_linux_disable_btrace): Renamed to
4339 x86_linux_disable_btrace. All uses updated.
4340 (i386_linux_teardown_btrace): Renamed to
4341 x86_linux_teardown_btrace. All uses updated.
4342 (i386_linux_read_btrace): Renamed to
4343 x86_linux_read_btrace. All uses updated.
4344
b9c1d481
AS
43452014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
4346
4347 * remote.c (extended_remote_post_attach): New function.
4348 (init_extended_remote_ops): Install it as to_post_attach method.
4349
7180e04a
PA
43502014-07-09 Pedro Alves <palves@redhat.com>
4351
4352 * infcmd.c (attach_command_post_wait): Don't call
4353 target_terminal_inferior here.
4354 (attach_command): Call it here instead.
4355
9a9a7608
AB
43562014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4357
4358 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
4359 field.
4360 * c-varobj.c (c_is_path_expr_parent): New function, moved core
4361 from varobj.c, with additional checks.
4362 (c_varobj_ops): Fill in is_path_expr_parent field.
4363 (cplus_varobj_ops): Fill in is_path_expr_parent field.
4364 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
4365 field.
4366 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
4367 ops method.
4368 (varobj_default_is_path_expr_parent): New function.
4369 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
4370 (varobj_default_is_path_expr_parent): Declare new function.
4371
1f267ae3
MM
43722014-07-08 Markus Metzger <markus.t.metzger@intel.com>
4373
4374 * infcmd.c (finish_backward): Turn internal error into normal error.
4375
b2ee242b
PA
43762014-07-07 Pedro Alves <palves@redhat.com>
4377
8a869bca 4378 PR gdb/17096
b2ee242b
PA
4379 * remote.c (async_handle_remote_sigint)
4380 (async_handle_remote_sigint_twice): Call
4381 gdb_call_async_signal_handler instead of
4382 mark_async_signal_handler.
4383
38e229b2
TT
43842014-07-07 Tom Tromey <tromey@redhat.com>
4385
4386 * target-delegates.c: Rebuild.
4387 * target.c (target_info_record): Remove.
4388 * record.c (info_record_command): Unconditionally call
4389 to_info_record.
4390 * target.h (struct target_ops) <to_info_record>: Use
4391 TARGET_DEFAULT_IGNORE.
4392 (target_info_record): Remove.
4393
f0f9ff95
TT
43942014-07-07 Tom Tromey <tromey@redhat.com>
4395
4396 * target.h (struct target_ops) <to_get_thread_local_address>: Use
4397 TARGET_DEFAULT_NORETURN.
4398 * target.c (generic_tls_error): New function.
4399 (target_translate_tls_address): Don't search target stack.
4400 * target-delegates.c: Rebuild.
4401 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
4402 stack.
4403 * linux-thread-db.c (thread_db_get_thread_local_address):
4404 Unconditionally call beneath target.
4405
4a5be5ee
MK
44062014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
4407
4408 * cli/cli-logging.c (pop_output_files): Assign targerr to
4409 gdb_stdtargerr.
4410
92c3b204
AB
44112014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
4412
4413 * MAINTAINERS (Write After Approval): Update my email address.
4414
9b11e3a7
GB
44152014-07-02 Gary Benson <gbenson@redhat.com>
4416
4417 * proc-service.c (ps_xfer_memory): Update comment.
4418 (ps_pstop): Remove unused function.
4419 (ps_pcontinue): Likewise.
4420 (ps_lstop): Likewise.
4421 (ps_lcontinue): Likewise.
4422 (ps_lgetxregsize): Likewise.
4423 (ps_lgetxregs): Likewise.
4424 (ps_lsetxregs): Likewise.
4425 (ps_plog): Likewise.
4426 (ps_ptread): Likewise.
4427 (ps_ptwrite): Likewise.
4428
cf363f18
MW
44292014-07-01 Mark Wielaard <mjw@redhat.com>
4430
4431 * dwarf2read.c (add_array_cv_type): New function.
4432 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
4433 (read_tag_volatile_type): Likewise.
4434
82ae6c8d
TT
44352014-07-01 Tom Tromey <tromey@redhat.com>
4436
4437 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
4438 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
4439 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
4440 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
4441 * command.h (cmd_cfunc_ftype): Move earlier.
4442 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
4443 (add_com, add_info): Use cmd_cfunc_ftype.
4444
96142726
TT
44452014-06-30 Tom Tromey <tromey@redhat.com>
4446
4447 * symtab.c (operator_chars): Make parameters and return type
4448 const.
4449 (file_matches): Make "files" const.
4450 (struct search_symbols_data) <files>: Now const.
4451 (search_symbols): Make "regexp" and "files" parameters const.
4452 Update.
4453 (symtab_symbol_info): Remove cast.
4454 (rbreak_command): Update.
4455 * symtab.h (search_symbols): Update.
4456
b67a2c6f
YQ
44572014-06-27 Yao Qi <yao@codesourcery.com>
4458
4459 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
4460 Change parameter type to 'struct thread_info *'. Caller
4461 updated.
4462 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
4463 Update declaration.
4464 * dummy-frame.c (struct dummy_frame_id): New.
4465 (dummy_frame_id_eq): New function.
4466 (struct dummy_frame) <id>: Change its type to 'struct
4467 dummy_frame_id'.
4468 (dummy_frame_push): Add parameter ptid and save it in
4469 dummy_frame_id.
4470 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
4471 inferior_ptid.
4472 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
4473 to inferior_ptid.
4474 (lookup_dummy_frame): Change parameter type to 'struct
4475 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
4476 instead of frame_id_eq.
4477 (dummy_frame_pop): Add parameter ptid. Callers updated.
4478 Update comments. Compose dummy_frame_id and pass it to
4479 lookup_dummy_frame.
4480 (dummy_frame_discard): Add parameter ptid.
4481 (dummy_frame_sniffer): Compose dummy_frame_id and call
4482 dummy_frame_id_eq instead of frame_id_eq.
4483 (fprint_dummy_frames): Print ptid.
4484 * dummy-frame.h: Remove comments.
4485 (dummy_frame_push): Add ptid in declaration.
4486 (dummy_frame_pop, dummy_frame_discard): Likewise.
4487
5b10184c
TT
44882014-06-26 Tom Tromey <tromey@redhat.com>
4489
4490 * cli/cli-cmds.c (error_no_arg): Make "why" const.
4491 * command.h (error_no_arg): Update.
4492
06900326
TT
44932014-06-26 Tom Tromey <tromey@redhat.com>
4494
4495 * cli/cli-setshow.c (do_set_command): Make "arg" const.
4496 (do_show_command): Make "arg" const.
4497 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
4498
c2bcbb1d
TT
44992014-06-26 Tom Tromey <tromey@redhat.com>
4500
4501 * record-full.c (record_full_get_bookmark): Make "args" const.
4502 (record_full_goto_bookmark): Make "raw_bookmark" const.
4503 * record.c (record_goto): New function.
4504 (cmd_record_goto): Use it. Now static.
4505 * record.h (record_goto): Declare.
4506 (cmd_record_goto): Remove declaration.
4507 * target-delegates.c: Rebuild.
4508 * target.h (struct target_ops) <to_get_bookmark,
4509 to_goto_bookmark>: Make parameter const.
4510
9cbe5fff
TT
45112014-06-26 Tom Tromey <tromey@redhat.com>
4512
4513 * defs.h (generic_load): Update.
4514 * m32r-rom.c (m32r_load_gen): Make "filename" const.
4515 * monitor.c (monitor_load): Make "args" const.
4516 * remote-m32r-sdi.c (m32r_load): Make "args" const.
4517 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
4518 const.
4519 (mips_load): Make "file" const.
4520 * remote-sim.c (gdbsim_load): Make "args" const.
4521 * remote.c (remote_load): Make "name" const.
4522 * symfile.c (generic_load): Make "args" const.
4523 * target-delegates.c: Rebuild.
4524 * target.c (target_load): Make "arg" const.
4525 (debug_to_load): Make "args" const.
4526 * target.h (struct target_ops) <to_load>: Make parameter const.
4527 (target_load): Update.
4528
34a68019
TT
45292014-06-26 Tom Tromey <tromey@redhat.com>
4530
4531 PR symtab/16902:
4532 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
4533 (dwarf2_physname, read_partial_die)
4534 (guess_partial_die_structure_name, fixup_partial_die)
4535 (guess_full_die_structure_name, anonymous_struct_prefix)
4536 (dwarf2_name): Use per-BFD obstack.
4537
efc889c1
YQ
45382014-06-26 Yao Qi <yao@codesourcery.com>
4539
4540 * dummy-frame.c (dummy_frame_sniffer): Move local variables
4541 dummyframe and this_id into inner block below.
4542
4395285e
YQ
45432014-06-26 Yao Qi <yao@codesourcery.com>
4544
4545 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
4546 with "signal_pass[0]" in the initialization of signal_pass.
4547
aef92902
MM
45482014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4549
4550 * record-btrace.c (record_btrace_generating_corefile)
4551 (record_btrace_prepare_to_generate_core)
4552 (record_btrace_done_generating_core): New.
4553 (record_btrace_xfer_partial, record_btrace_fetch_registers)
4554 (record_btrace_store_registers, record_btrace_prepare_to_store):
4555 Forward request when generating a core file.
4556 (record_btrace_open): Set record_btrace_generating_corefile to zero.
4557 (init_record_btrace_ops): Set to_prepare_to_generate_core and
4558 to_done_generating_core.
4559
5fff78c4
MM
45602014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4561
4562 * target.h (target_ops) <to_prepare_to_generate_core>
4563 <to_done_generating_core>: New.
4564 (target_prepare_to_generate_core, target_done_generating_core): New.
4565 * target.c (target_prepare_to_generate_core)
4566 (target_done_generating_core): New.
4567 * target-delegates.c: Regenerate.
4568 * gcore.c: (write_gcore_file): Rename to ...
4569 (write_gcore_file_1): ...this.
4570 (write_gcore_file): Call target_prepare_to_generate_core
4571 and target_done_generating_core.
4572
1d1f1ccb
MM
45732014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4574
4575 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
4576 * gcore.c (write_gcore_file): Free memory returned from
4577 make_corefile_notes.
4578 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
4579 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
4580
3343ef86
YQ
45812014-06-24 Yao Qi <yao@codesourcery.com>
4582
4583 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
4584 (arm_linux_init_abi): Set skip_trampoline_code with
4585 gdbarch_skip_trampoline_code instead of
4586 find_solib_trampoline_target.
4587
18d18ac8
YQ
45882014-06-24 Yao Qi <yao@codesourcery.com>
4589
4590 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
4591 arm_skip_bx_reg returns non-zero.
4592
80d8d390
YQ
45932014-06-24 Yao Qi <yao@codesourcery.com>
4594
4595 * arm-tdep.c (arm_skip_bx_reg): New function.
4596 (arm_skip_stub): Call arm_skip_bx_reg.
4597
6a18a01c
DB
45982014-06-23 Don Breazeal <donb@codesourcery.com>
4599
4600 * MAINTAINERS: Add myself as write-after-approval maintainer.
4601
8e9db26e
PA
46022014-06-23 Pedro Alves <palves@redhat.com>
4603
4604 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
4605 DR_CONTROL before setting DR0..DR3.
4606 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
4607 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
4608 bits of DR_CONTROL related to the debug register slot being
4609 disabled. If all slots are vacant, clear local slowdown as well,
4610 and assert DR_CONTROL is 0.
4611
70afc5b7
SC
46122014-06-23 Siva Chandra Reddy <sivachandra@google.com>
4613
4614 * python/lib/gdb/command/xmethods.py
4615 (get_method_matchers_in_loci): Lookup xmethod matchers in the
4616 current progspace only if the string "progspace" matches LOCUS_RE.
4617
840ed64d
JK
46182014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4619
4620 Fix --with-system-readline with readline-6.3 patch 5.
4621 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
4622 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
4623 types.
4624
26f2dc30
TT
46252014-06-20 Tom Tromey <tromey@redhat.com>
4626
4627 * dwarf2read.c (dw2_get_real_path): Use correct type in
4628 OBSTACK_CALLOC.
4629 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
4630
125f8a3d
GB
46312014-06-20 Gary Benson <gbenson@redhat.com>
4632
4633 * common/gdb_thread_db.h: Moved to nat. All includes updated.
4634 * common/glibc_thread_db.h: Likewise.
4635 * common/i386-cpuid.h: Likewise.
4636 * common/i386-gcc-cpuid.h: Likewise.
4637 * common/linux-btrace.h: Likewise.
4638 * common/linux-osdata.h: Likewise.
4639 * common/linux-procfs.h: Likewise.
4640 * common/linux-ptrace.h: Likewise.
4641 * common/mips-linux-watch.h: Likewise.
4642 * common/linux-btrace.c: Moved to nat.
4643 * common/linux-osdata.c: Likewise.
4644 * common/linux-procfs.c: Likewise.
4645 * common/linux-ptrace.c: Likewise.
4646 * common/mips-linux-watch.c: Likewise.
4647 * nat/gdb_thread_db.h: Moved from common.
4648 * nat/glibc_thread_db.h: Likewise.
4649 * nat/i386-cpuid.h: Likewise.
4650 * nat/i386-gcc-cpuid.h: Likewise.
4651 * nat/linux-btrace.c: Likewise.
4652 * nat/linux-btrace.h: Likewise.
4653 * nat/linux-osdata.c: Likewise.
4654 * nat/linux-osdata.h: Likewise.
4655 * nat/linux-procfs.c: Likewise.
4656 * nat/linux-procfs.h: Likewise.
4657 * nat/linux-ptrace.c: Likewise.
4658 * nat/linux-ptrace.h: Likewise.
4659 * nat/mips-linux-watch.c: Likewise.
4660 * nat/mips-linux-watch.h: Likewise.
4661 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
4662 (object file files): Reordered.
4663 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
4664 of glibc_thread_db.h.
4665
42995dbd
GB
46662014-06-20 Gary Benson <gbenson@redhat.com>
4667
4668 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
4669 (i386_dr_low_type): Moved to nat/i386-dregs.h.
4670 (i386_dr_low): Likewise.
4671 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
4672 (i386_dr_low_set_addr): Likewise.
4673 (i386_dr_low_get_addr): Likewise.
4674 (i386_dr_low_can_set_control): Likewise.
4675 (i386_dr_low_set_control): Likewise.
4676 (i386_dr_low_get_control): Likewise.
4677 (i386_dr_low_get_status): Likewise.
4678 (i386_get_debug_register_length): Likewise.
4679 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
4680 (i386_dr_low): Likewise.
4681 * nat/i386-dregs.c (i386-low.h): Remove include.
4682 (i386-nat.h): Likewise.
4683 (nat/i386-dregs.h): New include.
4684 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
4685 (i386_dr_low_set_addr): Likewise.
4686 (i386_dr_low_get_addr): Likewise.
4687 (i386_dr_low_can_set_control): Likewise.
4688 (i386_dr_low_set_control): Likewise.
4689 (i386_dr_low_get_control): Likewise.
4690 (i386_dr_low_get_status): Likewise.
4691 (i386_get_debug_register_length): Likewise.
4692 (debug_hw_points): Likewise.
4693
3ed9baed
IB
46942014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
4695
4696 * Makefile.in (SFILES): Add d-exp.y.
4697 (YYFILES): Add d-exp.c.
4698 (YYOBJ): Add d-exp.o.
4699 (local-maintainer-clean): Delete d-exp.c.
4700 * d-exp.y: New file.
4701 * d-lang.h (d_parse): New declaration.
4702 (d_error): New declaration.
4703 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
4704 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
4705 PREC_ORDER operators.
4706 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
4707
78c164b0
YQ
47082014-06-19 Yao Qi <yao@codesourcery.com>
4709
4710 * gdbthread.h (any_running): Remove the declaration.
4711 * thread.c (any_running): Remove.
4712
f6e29b6e
YQ
47132014-06-19 Yao Qi <yao@codesourcery.com>
4714
4715 * gdbthread.h (struct thread_info) <state>: Change its type to
4716 'enum thread_state'. Update comments.
4717
034f788c
PA
47182014-06-19 Pedro Alves <palves@redhat.com>
4719
4720 * gdbthread.h (ALL_THREADS): Delete.
4721 (ALL_NON_EXITED_THREADS): New macro.
4722 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
4723 instead of ALL_THREADS.
4724 * infrun.c (find_thread_needs_step_over)
4725 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
4726 instead of ALL_THREADS.
4727 * record-btrace.c (record_btrace_open)
4728 (record_btrace_stop_recording, record_btrace_close)
4729 (record_btrace_is_replaying, record_btrace_resume)
4730 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
4731 * remote.c (append_pending_thread_resumptions): Likewise.
4732 * thread.c (thread_apply_all_command): Likewise.
4733
46e33252
GB
47342014-06-19 Gary Benson <gbenson@redhat.com>
4735
4736 * i386-nat.c (i386_stopped_by_watchpoint):
4737 Use i386_dr_stopped_by_watchpoint.
4738 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
4739 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
4740
3a8ee006
GB
47412014-06-19 Gary Benson <gbenson@redhat.com>
4742
4743 * nat/i386-dregs.c: New file.
4744 * Makefile.in (i386-dregs.o): New rule.
4745 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
4746 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
4747 * config/i386/darwin.mh (NATDEPFILES): Likewise.
4748 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
4749 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
4750 * config/i386/go32.mh (NATDEPFILES): Likewise.
4751 * config/i386/linux.mh (NATDEPFILES): Likewise.
4752 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4753 * config/i386/mingw.mh (NATDEPFILES): Likewise.
4754 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
4755 * i386-nat.h (debug_hw_points): New declaration.
4756 * i386-nat.c (breakpoint.h): Remove include.
4757 (command.h): Likewise.
4758 (target.h): Likewise.
4759 (gdb_assert.h): Likewise.
4760 (debug_hw_points): Made nonstatic.
4761 (debug_printf): Now in i386-dregs.c.
4762 (TARGET_HAS_DR_LEN_8): Likewise.
4763 (DR_CONTROL_SHIFT): Likewise.
4764 (DR_CONTROL_SIZE): Likewise.
4765 (DR_RW_EXECUTE): Likewise.
4766 (DR_RW_WRITE): Likewise.
4767 (DR_RW_READ): Likewise.
4768 (DR_RW_IORW): Likewise.
4769 (DR_LEN_1): Likewise.
4770 (DR_LEN_2): Likewise.
4771 (DR_LEN_4): Likewise.
4772 (DR_LEN_8): Likewise.
4773 (DR_LOCAL_ENABLE_SHIFT): Likewise.
4774 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
4775 (DR_ENABLE_SIZE): Likewise.
4776 (DR_LOCAL_SLOWDOWN): Likewise.
4777 (DR_GLOBAL_SLOWDOWN): Likewise.
4778 (DR_CONTROL_RESERVED): Likewise.
4779 (I386_DR_CONTROL_MASK): Likewise.
4780 (I386_DR_VACANT): Likewise.
4781 (I386_DR_LOCAL_ENABLE): Likewise.
4782 (I386_DR_GLOBAL_ENABLE): Likewise.
4783 (I386_DR_DISABLE): Likewise.
4784 (I386_DR_SET_RW_LEN): Likewise.
4785 (I386_DR_GET_RW_LEN): Likewise.
4786 (I386_DR_WATCH_HIT): Likewise.
4787 (i386_wp_op_t): Likewise.
4788 (i386_show_dr): Likewise.
4789 (i386_length_and_rw_bits): Likewise.
4790 (i386_insert_aligned_watchpoint): Likewise.
4791 (i386_remove_aligned_watchpoint): Likewise.
4792 (i386_handle_nonaligned_watchpoint): Likewise.
4793 (i386_update_inferior_debug_regs): Likewise.
4794 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
4795 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
4796 (i386_region_ok_for_watchpoint):
4797 Use i386_dr_region_ok_for_watchpoint.
4798 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
4799
322a8e06
GB
48002014-06-19 Gary Benson <gbenson@redhat.com>
4801
4802 * i386-nat.c (i386_insert_hw_breakpoint): Use
4803 i386_insert_watchpoint.
4804 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
4805
8f26655c
GB
48062014-06-19 Gary Benson <gbenson@redhat.com>
4807
4808 * i386-nat.c (i386_dr_show): Renamed to
4809 i386_show_dr and made static. All uses updated.
4810 (i386_dr_length_and_rw_bits): Renamed to
4811 i386_length_and_rw_bits and made static.
4812 All uses updated.
4813 (i386_dr_insert_aligned_watchpoint): Renamed to
4814 i386_insert_aligned_watchpoint and made static.
4815 All uses updated.
4816 (i386_dr_remove_aligned_watchpoint): Renamed to
4817 i386_remove_aligned_watchpoint and made static.
4818 All uses updated.
4819 (i386_dr_update_inferior_debug_regs): Renamed to
4820 i386_update_inferior_debug_regs and made static.
4821 All uses updated.
4822 * nat/i386-dregs.h (i386_dr_show): Removed.
4823 (i386_dr_length_and_rw_bits): Likewise.
4824 (i386_dr_insert_aligned_watchpoint): Likewise.
4825 (i386_dr_remove_aligned_watchpoint): Likewise.
4826 (i386_dr_update_inferior_debug_regs): Likewise.
4827
992c7d70
GB
48282014-06-19 Gary Benson <gbenson@redhat.com>
4829
4830 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
4831 * configure: Regenerate.
4832 * config.in: Likewise.
4833 * main.c (signal.h): New include.
4834 (setup_alternate_signal_stack): New function.
4835 (captured_main): Call the above.
4836 * cp-support.c (signal.h): New include.
4837 (catch_demangler_crashes): New flag.
4838 (SIGJMP_BUF): New define.
4839 (SIGSETJMP): Likewise.
4840 (SIGLONGJMP): Likewise.
4841 (gdb_demangle_jmp_buf): New static global.
4842 (gdb_demangle_attempt_core_dump): Likewise.
4843 (gdb_demangle_signal_handler): New function.
4844 (gdb_demangle): If catch_demangler_crashes is set, install the
4845 above signal handler before calling bfd_demangle, and restore
4846 the original signal handler afterwards. Display the offending
4847 symbol and call demangler_warning the first time a segmentation
4848 fault is caught.
4849 (_initialize_cp_support): New maint set/show command.
4850
eae7090b
GB
48512014-06-19 Gary Benson <gbenson@redhat.com>
4852
4853 * utils.h (resource_limit_kind): New enum.
4854 (can_dump_core): New declaration.
4855 (warn_cant_dump_core): Likewise.
4856 (dump_core): Likewise.
4857 * utils.c (dump_core): Made nonstatic. Added new
4858 parameter "limit_kind".
4859 (can_dump_core): Made nonstatic. Moved printing code to...
4860 (warn_cant_dump_core): New function.
4861 (can_dump_core_warn): Likewise.
4862 (internal_vproblem): Replace calls to can_dump_core with
4863 calls to can_dump_core_warn. Supply new argument to each.
4864
57fcfb1b
GB
48652014-06-19 Gary Benson <gbenson@redhat.com>
4866
4867 * utils.h (demangler_vwarning): New declaration.
4868 (demangler_warning): Likewise.
4869 * utils.c (struct internal_problem)
4870 <user_settable_should_quit>: New field.
4871 <user_settable_should_dump_core>: Likewise
4872 (internal_error_problem): Add values for above new fields.
4873 (internal_warning_problem): Likewise.
4874 (demangler_warning_problem): New static global.
4875 (demangler_vwarning): New function.
4876 (demangler_warning): Likewise.
4877 (add_internal_problem_command): Selectively add commands.
4878 (_initialize_utils): New internal problem command.
4879 * maint.c (maintenance_demangler_warning): New function.
4880 (_initialize_maint_cmds): New command.
4881
17a40b44
TT
48822014-06-18 Tom Tromey <tromey@redhat.com>
4883
4884 * f-valprint.c (info_common_command_for_block): Update.
4885 * symtab.h (struct general_symbol_info) <common_block>: Now
4886 const.
4887
346d1dfe
TT
48882014-06-18 Tom Tromey <tromey@redhat.com>
4889
4890 * symtab.h (struct symtab) <blockvector>: Now const.
4891 * ada-lang.c (ada_add_global_exceptions): Update.
4892 * buildsym.c (augment_type_symtab): Update.
4893 * dwarf2read.c (dw2_lookup_symbol): Update.
4894 * jit.c (finalize_symtab): Update.
4895 * jv-lang.c (add_class_symtab_symbol): Update.
4896 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
4897 Update.
4898 * objfiles.c (objfile_relocate1): Update.
4899 * psymtab.c (lookup_symbol_aux_psymtabs)
4900 (maintenance_check_psymtabs): Update.
4901 * python/py-symtab.c (stpy_global_block, stpy_static_block):
4902 Update.
4903 * spu-tdep.c (spu_catch_start): Update.
4904 * symmisc.c (dump_symtab_1): Update.
4905 * symtab.c (lookup_global_symbol_from_objfile)
4906 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
4907 (basic_lookup_transparent_type_quick)
4908 (basic_lookup_transparent_type, find_pc_sect_symtab)
4909 (find_pc_sect_line, search_symbols): Update.
4910 * block.c (find_block_in_blockvector): Make "bl" const.
4911 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
4912 const.
4913 (blockvector_contains_pc): Make "bv" const.
4914 (block_for_pc_sect): Update.
4915 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
4916 (blockvector_contains_pc): Update.
4917 * breakpoint.c (resolve_sal_pc): Update.
4918 * inline-frame.c (block_starting_point_at): Update.
4919
1834676b
TT
49202014-06-18 Tom Tromey <tromey@redhat.com>
4921
4922 * completer.c (complete_line): Make "line_buffer" const.
4923 * completer.h (complete_line): Update.
4924
ac1a991b
TT
49252014-06-18 Tom Tromey <tromey@redhat.com>
4926
4927 * symtab.c (add_macro_name): Remove unneeded cast.
4928
5bc98e52
TT
49292014-06-18 Tom Tromey <tromey@redhat.com>
4930
4931 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
4932 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
4933
8236def8
TT
49342014-06-18 Tom Tromey <tromey@redhat.com>
4935
4936 * probe.c (info_probes_for_ops): Make "arg" const.
4937 * probe.h (info_probes_for_ops): Update.
4938
3977b71f
TT
49392014-06-18 Tom Tromey <tromey@redhat.com>
4940
4941 * varobj.c (varobj_create): Update.
4942 * valops.c (value_of_this): Update.
4943 * tracepoint.c (add_local_symbols, scope_info): Update.
4944 * symtab.h (struct general_symbol_info) <block>: Now const.
4945 * symtab.c (skip_prologue_sal)
4946 (default_make_symbol_completion_list_break_on)
4947 (skip_prologue_using_sal): Update.
4948 * stack.h (iterate_over_block_locals)
4949 (iterate_over_block_local_vars): Update.
4950 * stack.c (print_frame_args): Update.
4951 (iterate_over_block_locals, iterate_over_block_local_vars): Make
4952 parameter const.
4953 (get_selected_block): Make return type const.
4954 * python/py-frame.c (frapy_block): Update.
4955 * python/py-block.c (gdbpy_block_for_pc): Update.
4956 * p-exp.y (%union) <bval>: Now const.
4957 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
4958 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
4959 * m2-exp.y (%union) <bval>: Now const.
4960 * linespec.c (get_current_search_block): Make return type const.
4961 (create_sals_line_offset, find_label_symbols): Update.
4962 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
4963 Update.
4964 (block_starting_point_at): Make "block" const.
4965 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
4966 (check_exception_resume): Update.
4967 * guile/scm-frame.c (gdbscm_frame_block): Update.
4968 * guile/scm-block.c (gdbscm_lookup_block): Update.
4969 * frame.h (get_frame_block): Update.
4970 (get_selected_block): Make return type const.
4971 * frame.c (frame_id_inner): Update.
4972 * f-valprint.c (info_common_command_for_block)
4973 (info_common_command): Update.
4974 * dwarf2loc.c (dwarf2_find_location_expression)
4975 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
4976 (locexpr_describe_location_piece): Update.
4977 * c-exp.y (%union) <bval>: Now const.
4978 * breakpoint.c (resolve_sal_pc): Update.
4979 * blockframe.c (get_frame_block):Make return type const.
4980 (get_pc_function_start, get_frame_function, find_pc_sect_function)
4981 (block_innermost_frame): Update.
4982 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
4983 (block_for_pc, block_for_pc_sect): Update.
4984 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
4985 'pblock' const.
4986 (block_for_pc_sect, block_for_pc): Make return type const.
4987 * ax-gdb.c (gen_expr): Update.
4988 * alpha-mdebug-tdep.c (find_proc_desc): Update.
4989 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
4990 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
4991 (ada_read_var_value): Update.
4992 * ada-exp.y (struct name_info) <block>: Now const.
4993 (%union): Likewise.
4994 (block_lookup): Constify.
4995
b9228891
GB
49962014-06-18 Gary Benson <gbenson@redhat.com>
4997
4998 * nat/i386-dregs.h: New file.
4999 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
5000 * i386-nat.h (i386-dregs.h): New include.
5001 (DR_FIRSTADDR): Now in i386-dregs.h.
5002 (DR_LASTADDR): Likewise.
5003 (DR_NADDR): Likewise.
5004 (DR_STATUS): Likewise.
5005 (DR_CONTROL): Likewise.
5006 (i386_debug_reg_state): Likewise.
5007 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
5008
a1aa2221
LM
50092014-06-18 Don Breazeal <donb@codesourcery.com>
5010
5011 * breakpoint.c (set_longjmp_breakpoint): Call
5012 momentary_breakpoint_from_master with additional argument.
5013 (set_longjmp_breakpoint_for_call_dummy): Call
5014 momentary_breakpoint_from_master with additional argument.
5015 (set_std_terminate_breakpoint): Call
5016 momentary_breakpoint_from_master with additional argument.
5017 (momentary_breakpoint_from_master): Add argument to function
5018 definition and use it to initialize structure member flag.
74228e77 5019 (clone_momentary_breakpoint): Call
a1aa2221
LM
5020 momentary_breakpoint_from_master with additional argument.
5021 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
5022 member flags set in momentary_breakpoint_from_master.
5023
4be83cc2
GB
50242014-06-18 Gary Benson <gbenson@redhat.com>
5025
5026 * i386-nat.c (i386_show_dr): Renamed to
5027 i386_dr_show and made nonstatic. All uses updated.
5028 (i386_length_and_rw_bits): Renamed to
5029 i386_dr_length_and_rw_bits and made nonstatic.
5030 All uses updated.
5031 (i386_insert_aligned_watchpoint): Renamed to
5032 i386_dr_insert_aligned_watchpoint and made nonstatic.
5033 All uses updated.
5034 (i386_remove_aligned_watchpoint): Renamed to
5035 i386_dr_remove_aligned_watchpoint and made nonstatic.
5036 All uses updated.
5037 (i386_update_inferior_debug_regs): Renamed to
5038 i386_dr_update_inferior_debug_regs and made nonstatic.
5039 All uses updated.
5040
131aa0d4
GB
50412014-06-18 Gary Benson <gbenson@redhat.com>
5042
5043 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
5044 (i386_dr_low_can_set_control): Likewise.
5045 (i386_dr_low_set_addr): Likewise.
5046 (i386_dr_low_set_control): Likewise.
5047 (i386_dr_low_get_addr): Likewise.
5048 (i386_dr_low_get_status): Likewise.
5049 (i386_dr_low_get_control): Likewise.
5050 (i386_insert_aligned_watchpoint): Use new macros.
5051 (i386_update_inferior_debug_regs): Likewise.
5052 (i386_stopped_data_address): Likewise.
5053
d9305f7f
GB
50542014-06-18 Gary Benson <gbenson@redhat.com>
5055
5056 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
5057 New parameter. All uses updated.
5058
ea008da4
GB
50592014-06-18 Gary Benson <gbenson@redhat.com>
5060
5061 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
5062 All uses updated.
5063
1b6d4134
GB
50642014-06-18 Gary Benson <gbenson@redhat.com>
5065
5066 * i386-nat.c (debug_printf): New macro.
5067 (i386_get_debug_register_length): Likewise.
5068 (TARGET_HAS_DR_LEN_8): Use above macro.
5069 (i386_show_dr): Use debug_printf instead of puts_unfiltered
5070 and printf_unfiltered. Use phex to format values.
5071
9b4550ef
GB
50722014-06-18 Gary Benson <gbenson@redhat.com>
5073
5074 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
5075 Make const.
5076
6e62758f
GB
50772014-06-18 Gary Benson <gbenson@redhat.com>
5078
5079 * i386-nat.c: Comment changes.
5080
51c79e94
GB
50812014-06-18 Gary Benson <gbenson@redhat.com>
5082
5083 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
5084
3e11889a
GB
50852014-06-18 Gary Benson <gbenson@redhat.com>
5086
5087 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
5088 (i386_insert_aligned_watchpoint): Likewise.
5089 (i386_remove_aligned_watchpoint): Likewise.
5090 (i386_handle_nonaligned_watchpoint): Likewise.
5091
fc6e2f03
GB
50922014-06-18 Gary Benson <gbenson@redhat.com>
5093
5094 * i386-nat.c: Whitespace changes.
5095
2afe7d50
SB
50962014-06-17 Samuel Bronson <naesten@gmail.com>
5097
5098 * MAINTAINERS: Update Roland McGrath's email address.
5099 Thanks to Sergio Durigan Junior for pointing out that he left
6a83deea 5100 Red Hat a while ago, and giving me a current address.
2afe7d50 5101
3bca49ee
TT
51022014-06-17 Tom Tromey <tromey@redhat.com>
5103
5104 * utils.h (savestring): Remove declaration.
5105
6e366df1
TT
51062014-06-17 Tom Tromey <tromey@redhat.com>
5107
5108 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
5109
6be47f0c
KS
51102014-06-16 Keith Seitz <keiths@redhat.com>
5111
5112 PR mi/15863
5113 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
5114 to update the varobj if inferior_ptid is null_ptid.
5115
7bc112c1
TT
51162014-06-16 Tom Tromey <tromey@redhat.com>
5117
5118 * target.h (struct target_ops) <to_info_proc>: Make parameter
5119 const.
5120 (target_info_proc): Update.
5121 * target.c (target_info_proc): Make "args" const.
5122 * procfs.c (procfs_info_proc): Update.
5123 * linux-tdep.c (linux_info_proc): Update.
5124 (linux_core_info_proc_mappings): Make "args" const.
5125 (linux_core_info_proc): Update.
5126 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
5127 * gdbarch.c: Rebuild.
5128 * gdbarch.h: Rebuild.
5129 * corelow.c (core_info_proc): Update.
5130
fee354ee
TT
51312014-06-16 Tom Tromey <tromey@redhat.com>
5132
5133 * target.h (struct target_ops) <to_disconnect>: Make parameter
5134 const.
5135 (target_disconnect): Update.
5136 * target.c (target_disconnect): Make "args" const.
5137 * target-delegates.c: Rebuild.
5138 * remote.c (remote_disconnect): Update.
5139 * record.h (record_disconnect): Update.
5140 * record.c (record_disconnect): Update.
5141 * inf-child.c (inf_child_disconnect): Update.
5142
a30bf1f1
TT
51432014-06-16 Tom Tromey <tromey@redhat.com>
5144
5145 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
5146 * target.c (debug_to_rcmd, default_rcmd): Update.
5147 * target-delegates.c: Rebuild.
5148 * remote.c (remote_rcmd): Update.
5149 * monitor.c (monitor_rcmd): Update.
5150
d03de421
PA
51512014-06-16 Pedro Alves <palves@redhat.com>
5152
5153 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
5154 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
5155 have OBJF_SHARED set.
5156 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
5157 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
5158 instead of OBJF_USERLOADED.
5159 * objfiles.h (OBJF_SHARED): Update comment.
5160 (userloaded_objfile_contains_address_p): Rename to ...
5161 (shared_objfile_contains_address_p): ... this, and update
5162 comments.
5163 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
5164 new objfile.
5165 (remove_symbol_file_command): Skip objfiles that don't have
5166 OBJF_SHARED set.
5167
99f4262f
TT
51682014-06-16 Tom Tromey <tromey@redhat.com>
5169
5170 * minsyms.h (prim_record_minimal_symbol)
5171 (prim_record_minimal_symbol_and_info): Update comments.
5172
97d66cc6
EZ
51732014-06-14 Eli Zaretskii <eliz@gnu.org>
5174
5175 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
5176 or --without-guile, according to how GDB was built.
5177
635c7e8a
TT
51782014-06-13 Tom Tromey <tromey@redhat.com>
5179
5180 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
5181 to help_list.
5182 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
5183 to help_list.
5184 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
5185 help_list.
5186 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
5187 help_list.Pass all_commands, not -1, to help_list.
5188 * cli/cli-dump.c (dump_command, append_command)
5189 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
5190 (binary_dump_command, binary_append_command): Pass all_commands,
5191 not -1, to help_list.
5192 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
5193 -1, to help_list.
5194 * valprint.c (set_print, set_print_raw): Pass all_commands, not
5195 -1, to help_list.
5196 * typeprint.c (set_print_type): Pass all_commands, not -1, to
5197 help_list.
5198 * top.c (set_history): Pass all_commands, not -1, to help_list.
5199 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
5200 all_commands, not -1, to help_list.
5201 * symfile.c (overlay_command): Pass all_commands, not -1, to
5202 help_list.
5203 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
5204 help_list.
5205 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
5206 help_list.
5207 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
5208 -1, to help_list.
5209 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
5210 not -1, to help_list.
5211 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
5212 not -1, to help_list.
5213 * maint.c (maintenance_command, maintenance_info_command)
5214 (maintenance_print_command, maintenance_set_cmd): Pass
5215 all_commands, not -1, to help_list.
5216 * macrocmd.c (macro_command): Pass all_commands, not -1, to
5217 help_list.
5218 * language.c (set_check): Pass all_commands, not -1, to help_list.
5219 * infcmd.c (unset_command): Pass all_commands, not -1, to
5220 help_list.
5221 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
5222 help_list.
5223 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
5224 help_list.
5225 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
5226 help_list.
5227 * breakpoint.c (save_command): Pass all_commands, not -1, to
5228 help_list.
5229 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
5230 all_commands, not -1, to help_list.
5231
b94ade42
PL
52322014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
5233
5234 * regcache.c (struct register_to_invalidate): New structure.
5235 (do_register_invalidate, make_cleanup_regcache_invalidate): New
5236 functions.
5237 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
5238
31f628ae
YQ
52392014-06-12 Yao Qi <yao@codesourcery.com>
5240
5241 * varobj.c (varobj_get_num_children): Call
5242 varobj_is_dynamic_p.
5243 (varobj_list_children): Likewise.
5244 (varobj_update): Likewise. Update comments.
5245
cde5ef40
YQ
52462014-06-12 Yao Qi <yao@codesourcery.com>
5247
5248 * varobj.c (varobj_pretty_printed_p): Rename to ...
5249 (varobj_is_dynamic_p): ... this. New function.
5250 * varobj.h (varobj_pretty_printed_p): Remove declaration.
5251 (varobj_is_dynamic_p): Declare.
5252 * mi/mi-cmd-var.c (print_varobj): All callers updated.
5253 (mi_print_value_p, varobj_update_one): Likewise.
5254
576ea091
YQ
52552014-06-12 Pedro Alves <pedro@codesourcery.com>
5256 Yao Qi <yao@codesourcery.com>
5257
5258 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
5259 (varobj_get_iterator): Wrap up code for pretty-printer by
5260 "#if HAVE_PYTHON" and "#endif".
5261 (update_dynamic_varobj_children): Likewise.
5262
827f100c
YQ
52632014-06-12 Pedro Alves <pedro@codesourcery.com>
5264 Yao Qi <yao@codesourcery.com>
5265
5266 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
5267 gdb_python_initialized is false. Move some code from varobj.c.
5268 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
5269 * varobj.c: Move "varobj-iter.h" inclusion earlier.
5270 (struct varobj_item): Moved to varobj-iter.h".
5271 (varobj_clear_saved_item): New function.
5272 (update_dynamic_varobj_children): Move python-related code to
5273 py-varobj.c.
5274 (free_variable): Call varobj_clear_saved_item and
5275 varobj_iter_delete.
5276
e5250216
YQ
52772014-06-12 Pedro Alves <pedro@codesourcery.com>
5278 Yao Qi <yao@codesourcery.com>
5279
5280 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
5281 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
5282 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
5283 (py-varobj.o): New rule.
5284 * python/py-varobj.c: New file.
5285 * python/python-internal.h (py_varobj_get_iterator): Declare.
5286 * varobj-iter.h: New file.
5287 * varobj.c: Include "varobj-iter.h"
5288 (struct varobj) <child_iter>: Change its type from "PyObject *"
5289 to "struct varobj_iter *".
5290 <saved_item>: Likewise.
5291 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
5292 [HAVE_PYTHON] (varobj_get_iterator): New function.
5293 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
5294 python-specific code to python/py-varobj.c.
5295 (install_visualizer): Call varobj_iter_delete instead of
5296 Py_XDECREF.
5297 * varobj.h (varobj_ensure_python_env): Declare.
5298
5a2e0d6e
YQ
52992014-06-12 Yao Qi <yao@codesourcery.com>
5300
5301 * varobj.c (struct varobj_item): New structure.
5302 (create_child_with_value): Update declaration.
5303 (varobj_add_child): Replace arguments 'name' and 'value' with
5304 'item'. All callers updated.
5305 (install_dynamic_child): Likewise.
5306 (update_dynamic_varobj_children): Likewise.
5307 (varobj_add_child): Likewise.
5308 (create_child_with_value): Likewise.
5309
919b9a93
JB
53102014-06-11 Joel Brobecker <brobecker@adacore.com>
5311
5312 * NEWS: Create a new section for the next release branch.
5313 Rename the section of the current branch, now that it has
5314 been cut.
5315
71a55bdf
JB
53162014-06-11 Joel Brobecker <brobecker@adacore.com>
5317
5318 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
5319 * version.in: Bump version to 7.8.50.DATE-cvs.
5320
364fe1f7
PA
53212014-06-11 Pedro Alves <palves@redhat.com>
5322
5323 PR remote/17028
5324 * ser-mingw.c (net_windows_socket_check_pending): New function.
5325 (net_windows_select_thread): Ignore spurious wakeups. Use
5326 net_windows_socket_check_pending.
5327 (net_windows_wait_handle): Check for pending events with
5328 ioctlsocket, through net_windows_socket_check_pending, instead of
5329 checking the socket's event.
5330
5a6c7709
SC
53312014-06-10 Siva Chandra Reddy <sivachandra@google.com>
5332
5333 * python/python-internal.h (gdb_PyObject_GetAttrString)
5334 (gdb_PyObject_HasAttrString): New inline function definitions.
5335 * py-value.c (get_field_flag): Remove the now unnecessary cast to
5336 char * of the second argument to PyObject_GetAttrString.
74228e77 5337
0e58ee40
JB
53382014-06-10 Joel Brobecker <brobecker@adacore.com>
5339
5340 * serial.c (serial_write): Fix index of character to be printed
5341 in call to serial_logchar when serial debug traces are enabled.
5342
d190df30
JB
53432014-06-10 Joel Brobecker <brobecker@adacore.com>
5344
5345 * gdbtypes (resolve_dynamic_range): Add function description.
5346
b4b01d36
PA
53472014-06-09 Pedro Alves <palves@redhat.com>
5348
5349 * linux-nat.c (linux_child_follow_fork): Initialize status with
5350 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
5351 inner block. Only pass the signal to PTRACE_DETACH if in pass
5352 state.
5353
3657956b
GB
53542014-06-09 Gary Benson <gbenson@redhat.com>
5355
5356 * common/signals.c (gdb_signal_from_host): Reorder to separate
5357 the always-available ANSI-standard signals from the signals that
5358 require checking.
5359 (do_gdb_signal_to_host): Likewise.
5360 * proc-events.c (signal_table): Likewise.
5361
c077881a
HZ
53622014-06-08 Hui Zhu <hui@codesourcery.com>
5363
5364 * common/linux-ptrace.c (linux_disable_event_reporting): New
5365 function.
5366 * common/linux-ptrace.h (linux_disable_event_reporting): New
5367 declaration.
5368 * linux-nat.c (linux_child_follow_fork): Do a single step before
5369 detach.
5370
4186eb54
KS
53712014-06-07 Keith Seitz <keiths@redhat.com>
5372
5373 Revert:
5374 PR c++/16253
5375 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5376 from symbol_matches_domain in symtab.c. All local callers
5377 of symbol_matches_domain updated.
5378 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5379 search STRUCT_DOMAIN.
5380 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5381 independently. standard_lookup will do that automatically.
5382 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5383 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5384 (cp_lookup_symbol_in_namespace): Likewise.
5385 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5386 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5387 may return a STRUCT_DOMAIN match.
5388 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5389 * cp-support.c: Include language.h.
5390 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5391 VAR_DOMAIN.
5392 * psymtab.c (match_partial_symbol): Compare the requested
5393 domain with the symbol's domain directly.
5394 (lookup_partial_symbol): Likewise.
5395 * symtab.c (lookup_symbol_in_language): Explain when/why
5396 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5397 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5398 appropriate languages.
5399 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5400 and moved to ada-lang.c
5401 (lookup_block_symbol): Explain that this function only returns
5402 symbol matching the requested DOMAIN.
5403 Compare the requested domain with the symbol's domain directly.
5404 (iterate_over_symbols): Compare the requested domain with the
5405 symbol's domain directly.
5406 * symtab.h (symbol_matches_domain): Remove.
5407
25326a28 54082014-06-06 Doug Evans <xdje42@gmail.com>
d2929fdc
DE
5409
5410 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
5411 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
5412 (gdbscm_guile_version_is_at_least): Declare.
5413 (gdbscm_scm_string_to_int): Declare.
5414 * guile/guile.c (gdbscm_guile_major_version): New global.
5415 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
5416 (guile_datadir): New static global.
5417 (gdbscm_guile_data_directory): New function.
5418 (initialize_scheme_side): Update.
5419 (misc_guile_functions): Add guile-data-directory.
5420 (initialize_gdb_module): Fetch guile version number.
5421 * guile/lib/gdb.scm: Remove call to add-to-load-path.
5422 * guile/lib/gdb/init.scm (%initialize!): Ditto.
5423 * guile/lib/gdb/boot.scm: Use guile-data-directory.
5424 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
5425 comments.
5426 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
5427 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
5428 * guile/scm-value.c (gdbscm_value_to_string): Only call
5429 scm_port_conversion_strategy if Guile version >= 2.0.6.
5430
0a770bb2 54312014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
5432
5433 * main.c (print_gdb_help): Add -q and --silent.
5434
73ba372c
GB
54352014-06-06 Gary Benson <gbenson@redhat.com>
5436
5437 * common/signals.c: Remove preprocessor conditionals for
5438 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
5439 SIGSEGV and SIGTERM.
5440 * proc-events.c: Likewise.
5441
c33b2f12
MM
54422014-06-06 Markus Metzger <markus.t.metzger@intel.com>
5443
5444 * symfile.c (symfile_free_objfile): Remove restriction to
5445 OBJF_USERLOADED.
5446 * symfile-mem.c (symbol_file_add_from_memory): Call
5447 add_target_sections_of_objfile.
5448
fb934770
LC
54492014-06-05 Ludovic Courtès <ludo@gnu.org>
5450
5451 * guile/scm-value.c (gdbscm_history_append_x): Use
5452 'vlscm_get_value_smob_arg_unsafe' instead of
5453 'vlscm_scm_to_value'.
5454
6ef284bd
SM
54552014-06-05 Simon Marchi <simon.marchi@ericsson.com>
5456
5457 PR mi/15806
5458 * utils.c (printchar): Don't escape at all if quoter is NUL.
5459 Update function documentation to clarify effect of parameter
5460 QUOTER.
5461 * remote.c (escape_buffer): Pass '\\' as the quoter to
5462 fputstrn_unfiltered.
5463 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
5464 generate the output.
5465 (mi_solib_unloaded): Same.
5466
270c9937
JB
54672014-06-05 Joel Brobecker <brobecker@adacore.com>
5468
5469 * development.sh: Delete.
5470 * Makefile.in (config.status): Adjust dependency on development.sh.
5471 * configure.ac: Adjust development.sh source call.
5472 * configure: Regenerate.
5473
16f691fb
DE
54742014-06-04 Doug Evans <xdje42@gmail.com>
5475
5476 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
5477 is_scheme_bkpt, spec.
5478 (bpscm_make_breakpoint_smob): Initialize new members.
5479 (gdbscm_create_breakpoint_x): Split into two ...
5480 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
5481 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
5482 (scheme_function breakpoint_functions): Update.
5483 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
5484 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
5485 register-breakpoint!.
5486
ef7cab6b
JB
54872014-06-04 Joel Brobecker <brobecker@adacorer.com>
5488
5489 PR server/17023
5490 * mem-break.c (z_type_supported): Return zero if
5491 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
5492
012370f6
TT
54932014-06-04 Tom Tromey <tromey@redhat.com>
5494
5495 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
5496 value_from_contents_and_address_unresolved.
5497 (ada_template_to_fixed_record_type_1): Likewise.
5498 (ada_which_variant_applies): Likewise.
5499 * value.h (value_from_contents_and_address_unresolved): Declare.
5500 * value.c (value_from_contents_and_address_unresolved): New
5501 function.
5502 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
5503 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
5504 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
5505
92e2a17f
TT
55062014-06-04 Tom Tromey <tromey@redhat.com>
5507
5508 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
5509
c0939df1
TT
55102014-06-04 Tom Tromey <tromey@redhat.com>
5511
5512 * procfs.c (procfs_attach): Make "args" const.
5513 * windows-nat.c (windows_attach): Make "args" const.
5514 * nto-procfs.c (procfs_attach): Make "args" const.
5515 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
5516 * go32-nat.c (go32_attach): Make "args" const.
5517 * gnu-nat.c (gnu_attach): Make "args" const.
5518 * darwin-nat.c (darwin_attach): Make "args" const.
5519 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
5520 * linux-nat.c (linux_nat_attach): Make "args" const.
5521 * remote.c (extended_remote_attach_1, extended_remote_attach):
5522 Make "args" const.
5523 * target.h (struct target_ops) <to_attach>: Make "args" const.
5524 (find_default_attach): Likewise.
5525 * utils.c (parse_pid_to_attach): Make "args" const.
5526 * utils.h (parse_pid_to_attach): Update.
5527
8eaff7cd
TT
55282014-06-04 Tom Tromey <tromey@redhat.com>
5529
5530 * target-delegates.c: Rebuild.
5531 * target.c (default_thread_address_space): New function.
5532 (target_thread_address_space): Simplify.
5533 * target.h (struct target_ops) <to_thread_address_space>: Add
5534 TARGET_DEFAULT_FUNC.
5535
1913f160
DE
55362014-06-04 Doug Evans <xdje42@gmail.com>
5537
5538 * guile/scm-type.c (type_smob): Remove duplicate typedef.
5539
70ad5bff
MM
55402014-06-04 Markus Metzger <markus.t.metzger@intel.com>
5541
5542 * record-btrace.c: Include event-loop.h and inf-loop.h.
5543 (record_btrace_resume_exec_dir)
5544 (record_btrace_async_inferior_event_handler)
5545 (record_btrace_handle_async_inferior_event): New.
5546 (record_btrace_open): Create async event handler.
5547 (record_btrace_close): Delete async event handler.
5548 (record_btrace_resume): Set record_btrace_resume_exec_dir,
5549 Mark async event handler.
5550 (record_btrace_execution_direction): New.
5551 (init_record_btrace_ops): Initialize to_execution_direction.
5552
b6210538
DE
55532014-06-03 Doug Evans <xdje42@gmail.com>
5554
5555 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
5556 (gdbscm_make_parameter): Ditto.
5557
a5b1fd27
DE
55582014-06-03 Doug Evans <dje@google.com>
5559
5560 * exec.c (exec_close_1): Call clear_section_table instead of
5561 resize_section_table.
5562 (clear_section_table): New function.
5563 (resize_section_table): Make static. Rename arg num_added to
5564 adjustment.
5565 * exec.h (clear_section_table): Declare.
5566 (resize_section_table): Delete.
5567 * progspace.c (release_program_space): Call clear_section_table
5568 instead of resize_section_table.
5569
0c6e92a5
SC
55702014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5571
5572 * NEWS (Python Scripting): Add entry about the new xmethods
5573 feature.
5574
883964a7
SC
55752014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5576
5577 * python/py-xmethods.c: New file.
5578 * python/py-objfile.c (objfile_object): New field 'xmethods'.
5579 (objfpy_dealloc): XDECREF on the new xmethods field.
5580 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
5581 field.
5582 (objfpy_get_xmethods): New function.
5583 (objfile_getset): New entry 'xmethods'.
5584 * python/py-progspace.c (pspace_object): New field 'xmethods'.
5585 (pspy_dealloc): XDECREF on the new xmethods field.
5586 (pspy_new, pspace_to_pspace_object): Initialize xmethods
5587 field.
5588 (pspy_get_xmethods): New function.
5589 (pspace_getset): New entry 'xmethods'.
5590 * python/python-internal.h: Add declarations for new functions.
5591 * python/python.c (_initialize_python): Invoke
5592 gdbpy_initialize_xmethods.
5593 * python/lib/gdb/__init__.py (xmethods): New
5594 attribute.
5595 * python/lib/gdb/xmethod.py: New file.
5596 * python/lib/gdb/command/xmethods.py: New file.
5597
58992dc5
SC
55982014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5599
5600 * eval.c (evaluate_subexp_standard): Call the xmethod if the
5601 best match method returned by find_overload_match is an xmethod.
5602 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
5603 the best matching operator returned by find_overload_match is an
5604 xmethod.
5605 * valops.c: #include "extension.h".
5606 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
5607 Return void. The list of matching source methods is returned in
5608 "fn_list" and a vector of matching debug method workers is
5609 returned in "xm_worker_vec". Update all callers.
5610 (value_find_oload_method_list): Likewise.
5611 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
5612 non-NULL, then the index of the best matching method in this
5613 vector is returned. Update all callers.
5614 (find_overload_match): Include xmethods while performing overload
5615 resolution.
5616
e81e7f5e
SC
56172014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5618
5619 * defs.h (enum lval_type): New enumerator "lval_xcallable".
5620 * extension-priv.h (struct extension_language_ops): Add the
5621 xmethod interface.
5622 * extension.c (new_xmethod_worker, clone_xmethod_worker,
5623 get_matching_xmethod_workers, get_xmethod_argtypes,
5624 invoke_xmethod, free_xmethod_worker,
5625 free_xmethod_worker_vec): New functions.
5626 * extension.h: #include "common/vec.h".
5627 New function declarations.
5628 (struct xmethod_worker): New struct.
5629 (VEC (xmethod_worker_ptr)): New vector type.
5630 (xmethod_worker_ptr): New typedef.
5631 (xmethod_worker_vec): Likewise.
5632 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
5633 builtin_type.
5634 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
5635 (struct builtin_type): New field "xmethod".
5636 * valarith.c (value_ptradd): Assert that the value argument is not
5637 lval_xcallable.
5638 * valops.c (value_must_coerce_to_target): Return 0 for
5639 lval_xcallable values.
5640 * value.c (struct value): New field XM_WORKER in the field
5641 LOCATION.
5642 (value_address, value_raw_address): Return 0 for lval_xcallable
5643 values.
5644 (set_value_address): Assert that the value is not an
5645 lval_xcallable.
5646 (value_free): Free the associated xmethod worker when freeing
5647 lval_xcallable values.
5648 (set_value_component_location): Assert that the WHOLE value is not
5649 lval_xcallable.
5650 (value_of_xmethod, call_xmethod): New functions.
5651 * value.h: Declare "struct xmethod_worker".
5652 Declare new functions value_of_xmethod, call_xmethod.
5653
ef370185
JB
56542014-06-03 Joel Brobecker <brobecker@adacore.com>
5655 Pedro Alves <palves@redhat.com>
5656
5657 PR breakpoints/17000
5658 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
5659 New function, extracted from software_breakpoint_inserted_here_p.
5660 (software_breakpoint_inserted_here_p): Replace factored out code
5661 by call to find_non_raw_software_breakpoint_inserted_here.
5662 (bp_target_info_copy_insertion_state): New function.
5663 (bkpt_insert_location): Handle the case of a single-step
5664 breakpoint already inserted at the same address.
5665 (bkpt_remove_location): Handle the case of a single-step
5666 breakpoint still inserted at the same address.
5667 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
5668 breakpoint already inserted at the same address.
5669 (deprecated_remove_raw_breakpoint): Handle the case of a
5670 non-raw breakpoint still inserted at the same address.
5671 (find_single_step_breakpoint): New function, extracted from
5672 single_step_breakpoint_inserted_here_p.
5673 (find_single_step_breakpoint): New function,
5674 factored out from single_step_breakpoint_inserted_here_p.
5675 (single_step_breakpoint_inserted_here_p): Reimplement.
5676
1e2ccb61
BM
56772014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
5678
5679 Pushed by Joel Brobecker <brobecker@adacore.com>
5680 * source.c (show_substitute_path_command): Fix display of matching
5681 substitution rules.
5682
d3448d85
GB
56832014-06-03 Gary Benson <gbenson@redhat.com>
5684
5685 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
5686
06eb1586
DE
56872014-06-02 Doug Evans <xdje42@gmail.com>
5688
5689 Add parameter support for Guile.
5690 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
5691 (SUBDIR_GUILE_SRCS): Add scm-param.c.
5692 (scm-param.o): New rule.
5693 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
5694 (gdbscm_misc_error): Declare.
5695 (gdbscm_canonicalize_command_name): Declare.
5696 (gdbscm_scm_to_host_string): Declare.
5697 (gdbscm_scm_from_host_string): Declare.
5698 (gdbscm_initialize_parameters): Declare.
5699 * guile/guile.c (initialize_gdb_module): Call
5700 gdbscm_initialize_parameters.
5701 * guile/lib/gdb.scm: Export parameter symbols.
5702 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
5703 cmdscm_canonicalize_name and made public. All callers updated.
5704 * guile/scm-exception.c (gdbscm_misc_error): New function.
5705 * guile/scm-param.c: New file.
5706 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
5707 (gdbscm_scm_to_host_string): New function.
5708 (gdbscm_scm_from_host_string): New function.
5709 * scm-utils.c (gdbscm_gc_dup_argv): New function.
5710
e698b8c4
DE
57112014-06-02 Doug Evans <xdje42@gmail.com>
5712
5713 Add command support for Guile.
5714 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
5715 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
5716 (scm-cmd.o): New rule.
5717 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
5718 (gdbscm_user_error_p): Declare.
5719 (gdbscm_parse_command_name): Declare.
5720 (gdbscm_valid_command_class_p): Declare.
5721 (gdbscm_initialize_commands): Declare.
5722 * guile/guile.c (initialize_gdb_module): Call
5723 gdbscm_initialize_commands.
5724 * guile/lib/gdb.scm: Export command symbols.
5725 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
5726 (throw-user-error): New function.
5727 * guile/scm-cmd.c: New file.
5728 * guile/scm-exception.c (user_error_symbol): New static global.
5729 (gdbscm_user_error_p): New function.
5730 (gdbscm_initialize_exceptions): Set user_error_symbol.
5731 * scm-utils.c (gdbscm_gc_xstrdup): New function.
5732
fb1f94b0
PM
57332014-06-02 Phil Muldoon <pmuldoon@redhat.com>
5734
5735 * top.c (command_loop): Handle comments here...
5736 (command_line_input): ... not here.
5737
ded03782
DE
57382014-06-02 Doug Evans <xdje42@gmail.com>
5739
5740 Add progspace support for Guile.
5741 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
5742 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
5743 (scm-progspace.o): New rule.
5744 * guile/guile-internal.h (pspace_smob): New typedef.
5745 (psscm_pspace_smob_pretty_printers): Declare.
5746 (psscm_pspace_smob_from_pspace): Declare.
5747 (psscm_scm_from_pspace): Declare.
5748 * guile/guile.c (initialize_gdb_module): Call
5749 gdbscm_initialize_pspaces.
5750 * guile/lib/gdb.scm: Export progspace symbols.
5751 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
5752 support.
5753 (append-pretty-printer!): Ditto.
5754 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
5755 Implement.
5756 * guile/scm-progspace.c: New file.
5757
397998fc
AM
57582014-06-03 Alan Modra <amodra@gmail.com>
5759
5760 * ppc64-tdep.c (ppc64_standard_linkage8): New.
5761 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
5762
6aa5f3a6
DE
57632014-06-02 Doug Evans <dje@google.com>
5764
5765 Add support for skeletonless type units.
5766 * dwarf2read.c (struct dwarf2_per_objfile): New member
5767 n_allocated_type_units.
5768 (struct dwarf2_per_objfile) <tu_stats>: New member
5769 nr_all_type_units_reallocs.
5770 (create_signatured_type_table_from_index): Initialize
5771 n_allocated_type_units
5772 (create_all_type_units): Ditto.
5773 (add_type_unit): Move up in file. New arg slot.
5774 All callers updated. Increase space for all_type_units more
5775 efficiently.
5776 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
5777 (lookup_dwo_signatured_type): Handle skeletonless TUs.
5778 (lookup_dwp_signatured_type): Ditto.
5779 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
5780 All callers updated.
5781 (build_type_psymtabs_1): Leave type_unit_groups as
5782 NULL if no TUs present.
5783 (print_tu_stats): New function.
5784 (process_skeletonless_type_unit): New function.
5785 (process_dwo_file_for_skeletonless_type_units): New
5786 function.
5787 (process_skeletonless_type_units): New function.
5788 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
5789 Call print tu_stats if debugging enabled.
5790
41fac0cf
PA
57912014-06-02 Pedro Alves <palves@redhat.com>
5792
5793 * breakpoint.c (build_target_command_list): Don't build a command
5794 list if we have any duplicate location that isn't a dprintf.
5795
cd1608cc
PA
57962014-06-02 Pedro Alves <palves@redhat.com>
5797
5798 * breakpoint.c (dprintf_breakpoint_hit): New function.
5799 (initialize_breakpoint_ops): Install it as dprintf's
5800 breakpoint_hit method.
5801
486ef3b9
JB
58022014-06-02 Joel Brobecker <brobecker@adacore.com>
5803
5804 * source.c (substitute_path_rule_matches): Simplify using
5805 filename_ncmp instead of FILENAME_CMP.
5806
230cd560
JB
58072014-06-02 Joel Brobecker <brobecker@adacore.com>
5808
5809 * source.c (substitute_path_rule_matches): Remove trailing spaces.
5810
16954d5d
LC
58112014-06-01 Ludovic Courtès <ludo@gnu.org>
5812
5813 * configure.ac: When Guile is available, check for the
5814 availability of 'scm_new_smob'.
5815 * configure, config.h.in: Regenerate.
5816 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
5817 function.
5818
53e8a631
AB
58192014-05-30 Andrew Burgess <aburgess@broadcom.com>
5820
5821 * frame.c (struct frame_info): Add stop_string field.
5822 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
5823 (get_prev_frame_always): Old content moved into
5824 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
5825 TRY_CATCH, handle MEMORY_ERROR exceptions.
5826 (frame_stop_reason_string): New function definition.
5827 * frame.h (unwind_stop_reason_to_string): Extend comment to
5828 mention frame_stop_reason_string.
5829 (frame_stop_reason_string): New function declaration.
5830 * stack.c (frame_info): Switch to frame_stop_reason_string.
5831 (backtrace_command_1): Switch to frame_stop_reason_string.
5832 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
5833 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
5834 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
5835
70e38b8e
AB
58362014-05-30 Andrew Burgess <aburgess@broadcom.com>
5837
5838 * frame.c (frame_stop_reason_string): Rename to ...
5839 (unwind_stop_reason_to_string): this.
5840 * frame.h (frame_stop_reason_string): Rename to ...
5841 (unwind_stop_reason_to_string): this.
5842 * stack.c (frame_info): Update call to frame_stop_reason_string.
5843 (backtrace_command_1): Likewise.
5844 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
5845 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
5846
938f0e2f
AB
58472014-05-30 Andrew Burgess <aburgess@broadcom.com>
5848
5849 * frame.c (remove_prev_frame): New function.
5850 (get_prev_frame_if_no_cycle): Create / discard cleanup using
5851 remove_prev_frame.
5852
a09dd441
PA
58532014-05-29 Pedro Alves <palves@redhat.com>
5854
5855 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
5856 and make it const. When a single-step decays to a continue,
5857 clear 'step', not 'hw_step'. Pass whether the caller wanted
5858 to step to user_visible_resume_ptid, not what we ask the
5859 target to do.
5860
bdc36728
PA
58612014-05-29 Pedro Alves <palves@redhat.com>
5862
5863 * infrun.c (process_event_stop_test, handle_step_into_function)
5864 (handle_step_into_function_backward): Adjust.
5865 Don't set the even thread's stop_step and call stop_waiting before
5866 calling end_stepping_range. Instead do that ...
5867 (end_stepping_range): ... here. Take an ecs pointer parameter.
5868
22bcd14b
PA
58692014-05-29 Pedro Alves <palves@redhat.com>
5870
5871 * infrun.c (stop_stepping): Rename to ...
5872 (stop_waiting): ... this.
5873 (proceed): Update comment.
5874 (process_event_stop_test, handle_inferior_event)
5875 (handle_signal_stop, handle_step_into_function)
5876 (handle_step_into_function_backward): Update.
5877
4ae57c05
PA
58782014-05-29 Pedro Alves <palves@redhat.com>
5879
5880 * infcall.c (run_inferior_call): Don't check whether the current
5881 thread is running after the proceed call.
5882
329ea579
PA
58832014-05-29 Pedro Alves <palves@redhat.com>
5884 Tom Tromey <tromey@redhat.com>
5885
5886 * NEWS: Mention "maint set target-async", "set mi-async", and that
5887 background execution commands are now always available.
5888 * target.h (target_async_permitted): Update comment.
5889 * target.c (target_async_permitted, target_async_permitted_1):
5890 Default to 1.
5891 (set_target_async_command): Rename to ...
5892 (maint_set_target_async_command): ... this.
5893 (show_target_async_command): Rename to ...
5894 (maint_show_target_async_command): ... this.
5895 (_initialize_target): Adjust.
5896 * infcmd.c (prepare_execution_command): Make extern.
5897 * inferior.h (prepare_execution_command): Declare.
5898 * infrun.c (set_observer_mode): Leave target async alone.
5899 * mi/mi-interp.c (mi_interpreter_init): Install
5900 mi_on_sync_execution_done as sync_execution_done observer.
5901 (mi_on_sync_execution_done): New function.
5902 (mi_execute_command_input_handler): Don't print the prompt if we
5903 just started a synchronous command with an async target.
5904 (mi_on_resume): Check sync_execution before printing prompt.
5905 * mi/mi-main.h (mi_async_p): Declare.
5906 * mi/mi-main.c: Include gdbcmd.h.
5907 (mi_async_p): New function.
5908 (mi_async, mi_async_1): New globals.
5909 (set_mi_async_command, show_mi_async_command, mi_async): New
5910 functions.
5911 (exec_continue): Call prepare_execution_command.
5912 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
5913 (mi_execute_async_cli_command): Use mi_async_p.
5914 (_initialize_mi_main): Install "set mi-async". Make
5915 "target-async" a deprecated alias.
5916
92bcb5f9
PA
59172014-05-29 Pedro Alves <palves@redhat.com>
5918
5919 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
5920 (_initialize_cli_interp): Adjust.
5921 * event-loop.c: Include "observer.h".
5922 (start_event_loop): Notify 'command_error' observers instead of
5923 calling display_gdb_prompt. Remove FIXME comment.
5924 * event-top.c (display_gdb_prompt): Remove call into the
5925 interpreters.
5926 * inf-loop.c: Include "observer.h".
5927 (inferior_event_handler): Notify 'command_error' observers instead
5928 of calling display_gdb_prompt.
5929 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
5930 observers instead of calling display_gdb_prompt.
5931 * interps.c (interp_set): Don't call display_gdb_prompt.
5932 (current_interp_display_prompt_p): Delete.
5933 * interps.h (interp_prompt_p): Delete declaration.
5934 (interp_prompt_p_ftype): Delete.
5935 (struct interp_procs) <prompt_proc_p>: Delete field.
5936 (current_interp_display_prompt_p): Delete declaration.
5937 * mi-interp.c (mi_interpreter_prompt_p): Delete.
5938 (_initialize_mi_interp): Adjust.
5939 * tui-interp.c (tui_init): Install 'sync_execution_done' and
5940 'command_error' observers.
5941 (tui_on_sync_execution_done, tui_on_command_error): New
5942 functions.
5943 (tui_display_prompt_p): Delete.
5944 (_initialize_tui_interp): Adjust.
5945
fd664c91
PA
59462014-05-29 Pedro Alves <palves@redhat.com>
5947
5948 PR gdb/13860
5949 * cli/cli-interp.c: Include infrun.h and observer.h.
5950 (cli_uiout, cli_interp): New globals.
5951 (cli_on_signal_received, cli_on_end_stepping_range)
5952 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
5953 functions.
5954 (cli_interpreter_init): Install them as 'end_stepping_range',
5955 'signal_received' 'signal_exited', 'exited' and 'no_history'
5956 observers.
5957 (_initialize_cli_interp): Remove cli_interp local.
5958 * infrun.c (handle_inferior_event): Call the several stop reason
5959 observers instead of printing the stop reason directly.
5960 (end_stepping_range): New function.
5961 (print_end_stepping_range_reason, print_signal_exited_reason)
5962 (print_exited_reason, print_signal_received_reason)
5963 (print_no_history_reason): Make static, and add an uiout
5964 parameter. Print to that instead of to CURRENT_UIOUT.
5965 * infrun.h (print_end_stepping_range_reason)
5966 (print_signal_exited_reason, print_exited_reason)
5967 (print_signal_received_reason print_no_history_reason): New
5968 declarations.
5969 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
5970 'mi_uiout'.
5971 <cli_uiout>: New field.
5972 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
5973 uiout for CLI output. Install 'signal_received',
5974 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
5975 observers.
5976 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
5977 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
5978 (mi_on_no_history): New functions.
5979 (ui_out_free_cleanup): Delete function.
5980 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
5981 instead use the one already stored in the MI interpreter data.
5982 (mi_ui_out): Adjust.
5983 * tui/tui-interp.c: Include infrun.h and observer.h.
5984 (tui_interp): New global.
5985 (tui_on_signal_received, tui_on_end_stepping_range)
5986 (tui_on_signal_exited, tui_on_exited)
5987 (tui_on_no_history): New functions.
5988 (tui_init): Install them as 'end_stepping_range',
5989 'signal_received' 'signal_exited', 'exited' and 'no_history'
5990 observers.
5991 (_initialize_tui_interp): Delete tui_interp local.
5992
8817a6f2
PA
59932014-05-29 Pedro Alves <palves@redhat.com>
5994
5995 PR gdb/15713
5996 * linux-nat.c (linux_nat_resume_callback): Rename the second
5997 parameter to 'except'. Skip LP if it points to EXCEPT.
5998 (linux_nat_resume): Don't mark the event lwp as not stopped
5999 before resuming sibling lwps. Instead ask
6000 linux_nat_resume_callback to skip the event lwp. Mark it as not
6001 stopped after actually resuming it.
6002 (linux_handle_syscall_trap): Mark the lwp as not stopped after
6003 resuming it.
6004 (wait_lwp): Mark the lwp as stopped here.
6005 (stop_wait_callback): Mark the lwp as not stopped right after
6006 resuming it. Don't mark lwps as stopped here.
6007 (linux_nat_filter_event): Mark the lwp as stopped earlier.
6008 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
6009
251bde03
PA
60102014-05-29 Pedro Alves <palves@redhat.com>
6011
6012 PR PR15693
6013 * infrun.c (resume): Determine how much to resume depending on
6014 whether the caller wanted a step, not whether we can hardware step
6015 the target. Mark all threads that we intend to run as running,
6016 unless we're calling an inferior function.
6017 (normal_stop): If the thread is running an infcall, don't finish
6018 thread state.
6019 * target.c (target_resume): Don't mark threads as running here.
6020
7f3c0343
JB
60212014-05-28 Joel Brobecker <brobecker@adacore.com>
6022
6023 * serial.c (_initialize_serial): Remove support for
6024 the "set remotebaud" and "show remotebaud" commands.
6025 * NEWS: Add entry documenting the removal of that command.
6026
ee34b3f9
YQ
60272014-05-28 Yao Qi <yao@codesourcery.com>
6028
6029 * charset.c: Fix typo in comments.
6030
add6c04d
GB
60312014-05-27 Gary Benson <gbenson@redhat.com>
6032
6033 * utils.c (internal_vproblem): Prompt for a bug report.
6034
92c48fc5
AW
60352014-05-26 Andy Wingo <wingo@igalia.com>
6036
6037 * guile/scm-arch.c (arscm_mark_arch_smob):
6038 * guile/scm-block.c (bkscm_mark_block_smob)
6039 (bkscm_mark_block_syms_progress_smob):
6040 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
6041 * guile/scm-exception.c (exscm_mark_exception_smob):
6042 * guile/scm-frame.c (frscm_mark_frame_smob):
6043 * guile/scm-iterator.c (itscm_mark_iterator_smob):
6044 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
6045 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
6046 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
6047 (ppscm_mark_pretty_printer_worker_smob):
6048 * guile/scm-symbol.c (syscm_mark_symbol_smob):
6049 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
6050 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
6051 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
6052 mark functions.
6053 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
6054 function.
6055
b2715b27
AW
60562014-05-26 Andy Wingo <wingo@igalia.com>
6057 Doug Evans <xdje42@gmail.com>
6058
6059 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
6060 empty_base_class. All uses updated.
6061 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
6062 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
6063 Adapt all callers.
6064 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
6065 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
6066 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
6067 (gdbscm_gsmob_has_property_p, add_property_name)
6068 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
6069 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
6070 (gdb-object-has-property?, gdb-object-properties): Remove.
6071 (gdb-object-kind): Renamed from gsmob-kind.
6072
214ab2da
AW
60732014-05-26 Andy Wingo <wingo@igalia.com>
6074
6075 * configure.ac (try_guile_versions): Allow building with guile 2.2.
6076 * configure: Regenerate.
6077
589fdceb
MM
60782014-05-23 Markus Metzger <markus.t.metzger@intel.com>
6079
6080 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
6081
67b5c0c1
MM
60822014-05-23 Markus Metzger <markus.t.metzger@intel.com>
6083
6084 * record-btrace.c (record_btrace_allow_memory_access): Remove.
6085 (replay_memory_access_read_only, replay_memory_access_read_write)
6086 (replay_memory_access_types, replay_memory_access)
6087 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
6088 (cmd_set_record_btrace, cmd_show_record_btrace)
6089 (cmd_show_replay_memory_access): New.
6090 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
6091 (record_btrace_remove_breakpoint): Replace
6092 record_btrace_allow_memory_access with replay_memory_access.
6093 (_initialize_record_btrace): Add commands.
6094 * NEWS: Announce it.
6095
036cd381
RR
60962014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6097
6098 * aarch64-linux-nat.c (asm/ptrace.h): Include.
6099
c77c1e42
RR
61002014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6101
6102 * MAINTAINERS (Write After Approval): Move self back from
6103 paper trail.
6104
45741a9c
PA
61052014-05-22 Pedro Alves <palves@redhat.com>
6106
6107 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
6108 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
6109 (disable_randomization, enum exec_direction_kind)
6110 (execution_direction, stop_registers, start_remote)
6111 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
6112 (wait_for_inferior, normal_stop, get_last_target_status)
6113 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
6114 (insert_step_resume_breakpoint_at_sal)
6115 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
6116 (set_step_info, print_stop_event, signal_stop_state)
6117 (signal_print_state, signal_pass_state, signal_stop_update)
6118 (signal_print_update, signal_pass_update)
6119 (update_signals_program_target, clear_exit_convenience_vars)
6120 (displaced_step_dump_bytes, update_observer_mode)
6121 (signal_catch_update, gdb_signal_from_command): Move
6122 declarations ...
6123 * infrun.h: ... to this new file.
6124 * amd64-tdep.c: Include infrun.h.
6125 * annotate.c: Include infrun.h.
6126 * arch-utils.c: Include infrun.h.
6127 * arm-linux-tdep.c: Include infrun.h.
6128 * arm-tdep.c: Include infrun.h.
6129 * break-catch-sig.c: Include infrun.h.
6130 * breakpoint.c: Include infrun.h.
6131 * common/agent.c: Include infrun.h instead of inferior.h.
6132 * corelow.c: Include infrun.h.
6133 * event-top.c: Include infrun.h.
6134 * go32-nat.c: Include infrun.h.
6135 * i386-tdep.c: Include infrun.h.
6136 * inf-loop.c: Include infrun.h.
6137 * infcall.c: Include infrun.h.
6138 * infcmd.c: Include infrun.h.
6139 * infrun.c: Include infrun.h.
6140 * linux-fork.c: Include infrun.h.
6141 * linux-nat.c: Include infrun.h.
6142 * linux-thread-db.c: Include infrun.h.
6143 * monitor.c: Include infrun.h.
6144 * nto-tdep.c: Include infrun.h.
6145 * procfs.c: Include infrun.h.
6146 * record-btrace.c: Include infrun.h.
6147 * record-full.c: Include infrun.h.
6148 * remote-m32r-sdi.c: Include infrun.h.
6149 * remote-mips.c: Include infrun.h.
6150 * remote-notif.c: Include infrun.h.
6151 * remote-sim.c: Include infrun.h.
6152 * remote.c: Include infrun.h.
6153 * reverse.c: Include infrun.h.
6154 * rs6000-tdep.c: Include infrun.h.
6155 * s390-linux-tdep.c: Include infrun.h.
6156 * solib-irix.c: Include infrun.h.
6157 * solib-osf.c: Include infrun.h.
6158 * solib-svr4.c: Include infrun.h.
6159 * target.c: Include infrun.h.
6160 * top.c: Include infrun.h.
6161 * windows-nat.c: Include infrun.h.
6162 * mi/mi-interp.c: Include infrun.h.
6163 * mi/mi-main.c: Include infrun.h.
6164 * python/py-threadevent.c: Include infrun.h.
6165
98eb56a4
PA
61662014-05-22 Pedro Alves <palves@redhat.com>
6167
6168 * infrun.c (handle_inferior_event): Store the exit code for
6169 --return-child-result here, instead of ...
6170 (print_exited_reason): ... here.
6171
17b2616c
PA
61722014-05-21 Pedro Alves <palves@redhat.com>
6173
6174 PR gdb/13860
6175 * gdbthread.h (struct thread_control_state): New field
6176 `command_interp'.
6177 * infrun.c (follow_fork): Copy the new thread control field to the
6178 child fork thread.
6179 (clear_proceed_status_thread): Clear the new thread control field.
6180 (proceed): Set the new thread control field.
6181 * interps.h (command_interp): Declare.
6182 * interps.c (command_interpreter): New global.
6183 (command_interp): New function.
6184 (interp_exec): Set `command_interpreter' while here.
6185 * cli-out.c (cli_uiout_dtor): New function.
6186 (cli_ui_out_impl): Install it.
6187 * mi/mi-interp.c: Include cli-out.h.
6188 (mi_cmd_interpreter_exec): Add comment.
6189 (restore_current_uiout_cleanup): New function.
6190 (ui_out_free_cleanup): New function.
6191 (mi_on_normal_stop): If finishing an execution command started by
6192 a CLI command, or any kind of breakpoint-like event triggered,
6193 print the stop event to the output (CLI) stream.
6194 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
6195
5166082f
PA
61962014-05-21 Pedro Alves <palves@redhat.com>
6197
6198 * cli/cli-cmds.c (list_command): Handle the first "list" after the
6199 current source line having changed.
6200 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
6201 * infrun.c (normal_stop): Adjust call to
6202 set_current_sal_from_frame.
6203 * source.c (clear_lines_listed_range): New function.
6204 (set_current_source_symtab_and_line, identify_source_line): Clear
6205 the lines listed range.
6206 (line_info): Handle the first "info line" after the current source
6207 line having changed.
6208 * stack.c (print_stack_frame): Remove center handling.
6209 (set_current_sal_from_frame): Remove 'center' parameter. Don't
6210 center sal.line.
6211
c1ee2fb3
PA
62122014-05-21 Pedro Alves <palves@redhat.com>
6213
6214 * inf-child.c (inf_child_mourn_inferior): New function.
6215 * inf-child.h (inf_child_mourn_inferior): New declaration.
6216 * darwin-nat.c (darwin_mourn_inferior): Use
6217 inf_child_mourn_inferior.
6218 * gnu-nat.c (gnu_mourn_inferior): Likewise.
6219 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
6220 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
6221 * nto-procfs.c (procfs_mourn_inferior): Likewise.
6222 * windows-nat.c (windows_mourn_inferior): Likewise.
6223
5c6d4fb2
DE
62242014-05-21 Doug Evans <xdje42@gmail.com>
6225
250748cb 6226 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5c6d4fb2 6227
4a2722c5
DE
62282014-05-21 Doug Evans <xdje42@gmail.com>
6229
17292b30 6230 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4a2722c5
DE
6231 (gdbscm_out_of_range_error): Ditto.
6232 (gdbscm_memory_error): Ditto.
250748cb
DE
6233 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
6234 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4a2722c5
DE
6235 (gdbscm_out_of_range_error): Update.
6236 (gdbscm_memory_error): Update.
6237 (gdbscm_scm_to_target_string_unsafe): Delete.
6238
6a3cb8e8
PA
62392014-05-21 Pedro Alves <palves@redhat.com>
6240
6241 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
6242 globals.
6243 (inf_child_open_target): New function.
6244 (inf_child_open): Use inf_child_open_target to push the target
6245 instead of erroring out.
6246 (inf_child_disconnect, inf_child_close)
6247 (inf_child_maybe_unpush_target): New functions.
6248 (inf_child_target): Install inf_child_disconnect and
6249 inf_child_close. Store a pointer to the returned object.
6250 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
6251 declarations.
6252 * target.c (auto_connect_native_target): New global.
6253 (show_default_run_target): New function.
6254 (find_default_run_target): Return NULL if automatically connecting
6255 to the native target is disabled.
6256 (_initialize_target): Install set/show auto-connect-native-target.
6257 * NEWS: Mention "set auto-connect-native-target", and "target
6258 native".
6259 * linux-nat.c (super_close): New global.
6260 (linux_nat_close): Call super_close.
6261 (linux_nat_add_target): Store a pointer to the base class's
6262 to_close method.
6263 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
6264 inf_child_maybe_unpush.
6265 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
6266 already pushed.
6267 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
6268 the inferior. Use inf_child_maybe_unpush_target.
6269 (inf_ttrace_attach): Don't push the target if it is already
6270 pushed.
6271 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
6272 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
6273 after mourning the inferior. Use inf_child_maybe_unpush_target.
6274 (darwin_attach_pid): Don't push the target if it is already
6275 pushed.
6276 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
6277 mourning the inferior. Use inf_child_maybe_unpush_target.
6278 (gnu_detach): Use inf_child_maybe_unpush_target.
6279 * go32-nat.c (go32_create_inferior): Don't push the target if it
6280 is already pushed.
6281 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
6282 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
6283 (procfs_open): Rename to ...
6284 (procfs_open_1): ... this. Add target_ops parameter. Adjust
6285 comments. Can target_preopen before changing node. Call
6286 inf_child_open_target to push the target explicitly.
6287 (procfs_attach): Don't push the target if it is already pushed.
6288 (procfs_detach): Use inf_child_maybe_unpush_target.
6289 (procfs_create_inferior): Don't push the target if it is already
6290 pushed.
6291 (nto_native_ops): New global.
6292 (procfs_open): Reimplement.
6293 (procfs_native_open): New function.
6294 (init_procfs_targets): Install procfs_native_open as to_open of
6295 "target native". Store a pointer to the "native" target in
6296 nto_native_ops.
6297 * procfs.c (procfs_attach): Don't push the target if it is already
6298 pushed.
6299 (procfs_detach): Use inf_child_maybe_unpush_target.
6300 (procfs_mourn_inferior): Only unpush the target after mourning the
6301 inferior. Use inf_child_maybe_unpush_target.
6302 (procfs_init_inferior): Don't push the target if it is already
6303 pushed.
6304 * windows-nat.c (do_initial_windows_stuff): Don't push the target
6305 if it is already pushed.
6306
930ee1b1
PA
63072014-05-21 Pedro Alves <palves@redhat.com>
6308
6309 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
6310 and "procfs" targets are now called "native" instead.
6311
1f5d1b13
PA
63122014-05-21 Pedro Alves <palves@redhat.com>
6313
6314 * go32-nat.c (go32_open): Delete.
6315 (go32_target): Don't override the to_open method.
6316
132f8e03
PA
63172014-05-21 Pedro Alves <palves@redhat.com>
6318
6319 * nto-procfs.c (procfs_can_run): New function.
6320 (nto_procfs_ops): New global.
6321 (init_procfs_targets): New, based on procfs_target. Install
6322 "target native" in addition to "target procfs".
6323 (_initialize_procfs): Call init_procfs_targets instead of adding
6324 the target here.
6325
03c136c3
PA
63262014-05-21 Pedro Alves <palves@redhat.com>
6327
6328 * windows-nat.c (windows_target): Don't override to_shortname,
6329 to_longname or to_doc.
6330
a635d0f3
PA
63312014-05-21 Pedro Alves <palves@redhat.com>
6332
6333 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
6334 to_doc.
6335
4f9b5133
PA
63362014-05-21 Pedro Alves <palves@redhat.com>
6337
6338 * darwin-nat.c (_initialize_darwin_inferior): Don't override
6339 to_shortname, to_longname or to_doc.
6340
bc85afde
PA
63412014-05-21 Pedro Alves <palves@redhat.com>
6342
6343 * go32-nat.c (go32_target): Don't override to_shortname,
6344 to_longname or to_doc.
6345
4ebfc96e
PA
63462014-05-21 Pedro Alves <palves@redhat.com>
6347
6348 * inf-child.c (inf_child_open): Remove mention of "child".
6349 (inf_child_target): Rename target to "native" instead of "child".
6350
2648dfed
AA
63512014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6352
6353 * Makefile.in (SFILES): Delete "regset.c".
6354 (COMMON_OBS): Delete "regset.o".
6355 * regset.c: Remove.
6356 * regset.h (regset_alloc): Delete prototype.
6357
b13feb94
AA
63582014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6359
6360 * sparc-linux-tdep.c (sparc32_linux_gregset)
6361 (sparc32_linux_fpregset): New static regset structures.
6362 (sparc32_linux_init_abi): Drop dynamic regset allocations.
6363 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
6364 'fpregset' fields.
6365 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
6366 (sparc64_linux_fpregset): New static regset structures.
6367 (sparc64_linux_init_abi): Drop dynamic regset allocations.
6368 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
6369 New static regset structures.
6370 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
6371 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
6372 New static regset structures.
6373 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
6374 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
6375 New static regset structures.
6376 (sparc64obsd_init_abi): Drop dynamic regset allocations.
6377 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
6378 New static regset structures.
6379 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
6380
b4fd25c9
AA
63812014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6382
6383 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
6384 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
6385 register maps ("regmaps") from "*regset" to "*regmap". Do this
6386 for all regmap types and variables.
6387 * sparc-linux-tdep.c (sparc32_linux_step_trap)
6388 (sparc32_linux_supply_core_gregset)
6389 (sparc32_linux_collect_core_gregset)
6390 (sparc32_linux_supply_core_fpregset)
6391 (sparc32_linux_collect_core_fpregset): Likewise.
6392 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
6393 (sparc_gregmap, sparc_fpregmap): ... these.
6394 (sparc_supply_gregset, sparc_collect_gregset)
6395 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6396 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
6397 (_initialize_sparc_nat): Rename regmaps.
6398 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
6399 (sparc_gregmap, sparc_fpregmap): ... these.
6400 (sparc_supply_gregset, sparc_collect_gregset)
6401 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6402 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
6403 Rename macros to...
6404 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
6405 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
6406 Likewise.
6407 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
6408 Rename to...
6409 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
6410 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
6411 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
6412 regmaps.
6413 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6414 (sparc32_bsd_fpregset): Rename to...
6415 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6416 (sparc32_bsd_fpregmap): ... these.
6417 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
6418 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6419 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
6420 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
6421 (struct sparc_gregmap, struct sparc_fpregmap)
6422 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6423 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
6424 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
6425 (sparc32_supply_regset, sparc32_collect_gregset)
6426 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
6427 prototypes.
6428 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
6429 (sparc64_linux_ptrace_gregmap): ... this.
6430 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
6431 (_initialize_sparc64_linux_nat): Rename regmaps.
6432 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
6433 (sparc64_linux_core_gregmap): ... this.
6434 (sparc64_linux_supply_core_gregset)
6435 (sparc64_linux_collect_core_gregset)
6436 (sparc64_linux_supply_core_fpregset)
6437 (sparc64_linux_collect_core_fpregset): Rename regmaps.
6438 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
6439 (sparc64_sol2_fpregset): Rename to...
6440 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
6441 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
6442 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
6443 regmaps.
6444 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
6445 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
6446 (sparc64_bsd_fpregset): Rename to...
6447 (struct sparc_gregmap, sparc64_sol2_gregmap)
6448 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
6449 (sparc64_bsd_fpregmap): ... these.
6450 (sparc64_supply_gregset, sparc64_collect_gregset)
6451 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
6452 prototypes.
6453 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
6454 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
6455 (sparc64fbsd_gregmap): ... this.
6456 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
6457 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
6458 Rename regmaps.
6459 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
6460 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
6461 (sparc64nbsd_collect_fpregset): Likewise.
6462 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
6463 (sparc64nbsd_gregmap): ... this.
6464 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
6465 regmaps.
6466 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
6467 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
6468 (sparc64obsd_gregmap): ... this.
6469 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
6470 regmaps.
6471 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
6472 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
6473 (sparc32nbsd_gregmap): ... this.
6474 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
6475 regmaps.
6476
8fea3224
AA
64772014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6478
6479 * score-tdep.c (score7_linux_gregset): New static regset
6480 structure.
6481 (score7_linux_regset_from_core_section): Remove dynamic regset
6482 allocation.
6483 (score_gdbarch_init): Drop allocation of tdep structure.
6484 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
6485
24534243
AA
64862014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6487
6488 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
6489 regset structures.
6490 (am33_regset_from_core_section): Remove dynamic regset
6491 allocations.
6492
b7195f27
AA
64932014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6494
6495 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
6496 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
6497 structures.
6498 (mips_linux_regset_from_core_section): Remove dynamic regset
6499 allocations.
6500 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6501 'gregset64', 'fpregset', and 'fpregset64'.
6502 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
6503 deleted tdep fields.
6504
ecc37a5a
AA
65052014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6506
6507 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
6508 regset structures.
6509 (amd64_regset_from_core_section): Remove dynamic regset
6510 allocations.
6511 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
6512 structure.
6513 (amd64obsd_regset_from_core_section): Remove dynamic regset
6514 allocation.
6515 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
6516 Likewise.
6517 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
6518 x86-common regset supply function.
6519 * i386-tdep.c (i386_collect_gregset): Make static.
6520 (i386_gregset): New global regset structure.
6521 (i386_fpregset, i386_xstateregset): New static regset structures.
6522 (i386_regset_from_core_section): Remove dynamic regset
6523 allocations.
6524 (i386_gdbarch_init): Remove initialization of tdep fields
6525 'gregset', 'fpregset', and 'xstateregset'.
6526 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6527 'fpregset', and 'xstateregset'.
6528 (i386_collect_gregset): Remove prototype.
6529 (i386_gregset): New declaration.
6530 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
6531 structure.
6532 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
6533 allocation.
6534
b7611c43
AA
65352014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6536
6537 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
6538 (arm_linux_vfpregset): New static regset structures.
6539 (arm_linux_regset_from_core_section): Remove dynamic allocation of
6540 regset structures.
6541 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
6542 and 'vfpregset' fields.
6543
a069a2bd
AA
65442014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6545
6546 * aarch64-linux-tdep.c (aarch64_linux_gregset)
6547 (aarch64_linux_fpregset): New static regset structures.
6548 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
6549 of regset structures.
6550 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
6551 'fpregset' fields.
6552
09424cff
AA
65532014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6554
6555 * regset.h (struct regset): Remove gdbarch field.
6556 * regset.c (regset_alloc): Drop initialization of gdbarch field.
6557 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6558 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
6559 Likewise.
6560 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
6561 (ppc32_linux_fpregset, ppc32_linux_vrregset)
6562 (ppc32_linux_vsxregset): Likewise.
6563 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
6564 via the regcache instead of the regset.
6565 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
6566 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
6567 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
6568 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
6569 Likewise.
6570
3ca7dae4
AA
65712014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6572
6573 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
6574 Constify structures.
6575 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
6576 (alphanbsd_aout_gregset): Likewise.
6577 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
6578 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
6579 Likewise.
6580 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
6581 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
6582 Likewise.
6583 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
6584 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
6585 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
6586 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
6587 * m88k-tdep.c (m88k_gregset): Likewise.
6588 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
6589 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
6590 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6591 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
6592 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
6593 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
6594 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
6595 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
6596 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
6597 Likewise.
6598 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
6599 * sh-tdep.h (sh_corefile_gregset): Likewise.
6600 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
6601 * vax-tdep.c (vax_gregset): Likewise.
6602
5876f503
JK
66032014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6604
6605 Fix TLS access for -static -pthread.
6606 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
6607 (try_thread_db_load_1): Initialize it.
6608 (thread_db_get_thread_local_address): Call it if LM is zero.
6609 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
6610 * target.h (struct target_ops) (to_get_thread_local_address): Add
6611 load_module_addr comment.
6612
0256a6ac
PA
66132014-05-21 Pedro Alves <palves@redhat.com>
6614
6615 * dcache.c (dcache_read_memory_partial): If reading the cache line
6616 fails, fallback to reading just the memory the caller wanted.
6617
227533ac
DE
66182014-05-20 Doug Evans <dje@google.com>
6619
6620 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
6621 instead of get_current_arch.
6622
936d2992
PA
66232014-05-20 Pedro Alves <palves@redhat.com>
6624
6625 * NEWS: Mention that compare-sections now works with all targets.
6626
6627 * remote.c (PACKET_qCRC): New enum value.
6628 (remote_verify_memory): Don't send qCRC if the target has no
6629 execution. Use packet_support/packet_ok. If the target doesn't
6630 support the qCRC packet, fallback to a deep memory copy.
6631 (compare_sections_command): Say "target image" instead of "remote
6632 executable".
6633 (_initialize_remote): Add PACKET_qCRC to the list of config
6634 packets that have no associated command. Extend comment.
6635 * target.c (simple_verify_memory, default_verify_memory): New
6636 function.
6637 * target.h (struct target_ops) <to_verify_memory>: Default to
6638 default_verify_memory.
6639 (simple_verify_memory): New declaration.
6640 * target-delegates.c: Regenerate.
6641
e59fa00f
MM
66422014-05-20 Markus Metzger <markus.t.metzger@intel.com>
6643
6644 * record-btrace.c (record_btrace_step_thread): Check for empty history.
6645
f2205de0
HZ
66462014-05-20 Hui Zhu <hui@codesourcery.com>
6647 Yao Qi <yao@codesourcery.com>
6648
6649 PR backtrace/16558
6650 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
6651 and change address of sp and pc.
6652
c4e54771
TT
66532014-05-19 Tom Tromey <tromey@redhat.com>
6654
6655 * gdbtypes.c (rank_function): Use XNEWVEC.
6656 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
6657
73051182
DE
66582014-05-19 Doug Evans <dje@google.com>
6659
6660 * dwarf2read.c (build_type_psymtabs_1): Renamed from
6661 build_type_unit_groups and moved closer to only caller. Remove
6662 arguments. All references updated. Remove outdated .gdb_index
6663 comment.
6664 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
6665 build_type_psymtabs_1.
6666
8832e7e3
DE
66672014-05-19 Doug Evans <dje@google.com>
6668
6669 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
6670 n_type_unit_groups, all_type_unit_groups. All uses removed.
6671 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
6672 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
6673 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
6674 (add_type_unit_group_to_table): Delete.
6675
cd8ae15e
DE
66762014-05-19 Doug Evans <dje@google.com>
6677
6678 * eval.c (evaluate_subexp_standard): Add some comments.
6679
08f4850b
DE
66802014-05-17 Doug Evans <xdje42@gmail.com>
6681
6682 * progspace.c (remove_program_space): Delete, unused.
6683 * progspace.h (remove_program_space): Ditto.
6684
bed8455c
DE
66852014-05-17 Doug Evans <xdje42@gmail.com>
6686
6687 * inferior.c (prune_inferiors): Fix comment.
6688 (remove_inferior_command): Call prune_program_spaces.
6689
8d551b02
DE
66902014-05-16 Doug Evans <dje@google.com>
6691
6692 New command line option -D.
6693 * NEWS: Mention it.
6694 * main.c (set_gdb_data_directory): New function.
6695 (captured_main): Recognize -D. Flag error for --data-directory "".
6696 Call set_gdb_data_directory.
6697 (print_gdb_help): Print --data-directory, -D.
6698 * main.h (set_gdb_data_directory): Declare.
6699 * top.c (staged_gdb_datadir): New static global.
6700 (set_gdb_datadir): Call set_gdb_data_directory
6701 (show_gdb_datadir): New function.
6702 (init_main): Update init of data-directory parameter.
6703
18848e28
GF
67042014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
6705
6706 Import the "dirfd" gnulib module.
6707 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
6708 * gnulib/aclocal.m4: Update.
6709 * gnulib/config.in: Update.
6710 * gnulib/configure: Update.
6711 * gnulib/import/Makefile.am: Update.
6712 * gnulib/import/Makefile.in: Update.
6713 * gnulib/import/dirfd.c: New.
6714 * gnulib/import/m4/dirfd.m4: New.
6715 * gnulib/import/m4/gnulib-cache.m4: Update.
6716 * gnulib/import/m4/gnulib-comp.m4: Update.
6717
95c64f92
YQ
67182014-05-16 Pierre Muller <muller@sourceware.org>
6719 Yao Qi <yao@codesourcery.com>
6720
6721 * valprint.c (print_wchar): Move the code on checking whether
6722 W is a printable wide char to the default branch of switch
6723 statement below. Call wchar_printable instead of gdb_iswprint.
6724
cac395ea
TM
67252014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
6726
19679eca 6727 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
cac395ea
TM
6728 ldr.w and ldrd instructions.
6729
83655187
DE
67302014-05-15 Doug Evans <dje@google.com>
6731
6732 * dwarf2read.c (read_structure_type): Delete outdated comments.
6733
dd756689
TT
67342014-05-14 Tom Tromey <tromey@redhat.com>
6735
6736 * macrocmd.c (print_macro_definition): Reindent.
6737
75ddda77
DE
67382014-05-13 Doug Evans <xdje42@gmail.com>
6739
6740 * python/py-cmd.c (cmdpy_completer): Add comment.
6741 (completers): Make const.
6742
b0f16a3e
SM
67432014-05-13 Simon Marchi <simon.marchi@ericsson.com>
6744
6745 * infrun.c (resume): Remove should_resume (unused). Move up
6746 declaration of resume_ptid.
6747
033c3379
TT
67482014-05-13 Tom Tromey <tromey@redhat.com>
6749
6750 * language.h (unop_type_check): Remove.
6751 (binop_type_check): Don't declare.
6752
9b44a3a5
AA
67532014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
6754
6755 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
6756 call to regcache_raw_collect.
6757
303a33fa
SM
67582014-05-12 Simon Marchi <simon.marchi@ericsson.com>
6759
6760 * mi/mi-console.c (mi_console_raw_packet): Use the value from
6761 mi_console->quote as the quoting character.
6762
196100a0
SM
67632014-05-12 Simon Marchi <simon.marchi@ericsson.com>
6764
6765 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
6766
f989a1c8
TT
67672014-04-29 Tom Tromey <tromey@redhat.com>
6768
6769 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
6770 "show debug varobj".
6771
9404b58f
KM
67722014-05-07 Kyle McMartin <kyle@redhat.com>
6773
6774 Pushed by Joel Brobecker <brobecker@adacore.com>.
6775 * aarch64-tdep.c (aarch64_software_single_step): New function.
6776 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
6777 with aarch64_software_single_step.
6778
5e49ba57
JB
67792014-05-05 Joel Brobecker <brobecker@adacore.com>
6780
6781 GDB 7.7.1 released.
6782
c888a17d
KS
67832014-05-05 Keith Seitz <keiths@redhat.com>
6784
6785 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
6786 variable or history value is successfully parsed.
6787
290a839c
YQ
67882014-05-05 Yao Qi <yao@codesourcery.com>
6789 Pedro Alves <palves@redhat.com>
6790
6791 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
6792 address of blocks that intersects the requested range. Trim
6793 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
6794 sections.
6795 * ctf.c (ctf_xfer_partial): Likewise.
6796
91256dc2
YQ
67972014-05-05 Yao Qi <yao@codesourcery.com>
6798
6799 * printcmd.c (display_command): Remove the check to
6800 target_has_execution.
6801
07284463
MK
68022014-05-03 Mark Kettenis <kettenis@gnu.org>
6803
6804 * ppcobsd-nat.c: Include "obsd-nat.h".
6805 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
6806 add_target.
6807 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
6808
30a1e6cc
SDJ
68092014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
6810
6811 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
6812 and 16-bit signed and unsigned arguments. Update comment.
6813 (stap_parse_probe_arguments): Extend code to handle such
6814 arguments. Use warning instead of complaint to notify about
6815 unrecognized bitness.
6816
f33da99a
SDJ
68172014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
6818
6819 PR breakpoints/16889
6820 * stap-probe.c (stap_parse_probe_arguments): Simplify
6821 check for non-prefixed probes (i.e., probes whose
6822 arguments do not start with "N@"). Always set the
6823 argument type to a sane value.
6824
95cf3b38
DT
68252014-05-01 David Taylor <dtaylor@emc.com>
6826
6827 * remote.c (compare_sections_command): Add -r option to compare
6828 all loadable read-only sections.
6829
1cfdf534
SC
68302014-04-30 Siva Chandra Reddy <sivachandra@google.com>
6831
6832 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
6833 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
6834 Update all callers.
6835 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
6836 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
6837 Remove unused CORE_ADDR argument. Update all callers.
6838
ca4f7f8b
PA
68392014-04-29 Pedro Alves <palves@redhat.com>
6840
6841 * remote.c (struct packet_config) <detect>: Extend comment.
6842 (add_packet_config_cmd): Don't set the config's detect or support
6843 fields here.
6844 (init_all_packet_configs): Also initialize the config's 'detect'
6845 field.
6846 (reset_all_packet_configs_support): New function.
6847 (remote_open_1): Call reset_all_packet_configs_support instead of
6848 init_all_packet_configs.
6849 (_initialize_remote): Initialize all packet configs. Assert that
6850 all packets have an associated command, except a few known
6851 outliers.
6852
11c1ba78
JB
68532014-04-28 Joel Brobecker <brobecker@adacore.com>
6854
6855 * dwarf2read.c (read_subrange_type): Handle dynamic
6856 DW_AT_lower_bound attributes.
6857
8739bc53
JB
68582014-04-28 Joel Brobecker <brobecker@adacore.com>
6859
6860 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
6861 dynamic bounds before computing its upper bound.
6862 (ada_discrete_type_low_bound): Same as above with the lower bound.
6863
6f8a3220
JB
68642014-04-28 Joel Brobecker <brobecker@adacore.com>
6865
6866 * dwarf2read.c (is_dynamic_type): Return true for dynamic
6867 range types. Adjust the array handling implementation to
6868 take advantage of this change.
6869 (resolve_dynamic_range): New function, mostly extracted from
6870 resolve_dynamic_bounds.
6871 (resolve_dynamic_array): New function, mostly extracted from
6872 resolve_dynamic_bounds.
6873 (resolve_dynamic_bounds): Delete.
6874 (resolve_dynamic_type): Reimplement. Add handling of
6875 TYPE_CODE_RANGE types.
6876
4d072ce4
JB
68772014-04-28 Joel Brobecker <brobecker@adacore.com>
6878
6879 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
6880 handling of parallel ___XA types.
6881
52865325
JB
68822014-04-28 Joel Brobecker <brobecker@adacore.com>
6883
6884 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
6885 unnecessary second call to static_unwrap_type.
6886
433e77fa
HZ
68872014-04-27 Hui Zhu <hui@codesourcery.com>
6888
6889 * stack.c (print_frame_info): Call do_gdb_disassembly with
6890 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
6891
b51a69ee
DE
68922014-04-26 Doug Evans <xdje42@gmail.com>
6893
6894 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
6895
7ae1a6a6
PA
68962014-04-25 Pedro Alves <palves@redhat.com>
6897
6898 PR server/16255
6899 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
6900 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
6901 and newline from built string.
6902 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
6903 (linux_ptrace_attach_fail_reason): ... this.
6904 * linux-nat.c (linux_nat_attach): Adjust to use
6905 linux_ptrace_attach_fail_reason.
6906
4082afcc
PA
69072014-04-25 Pedro Alves <palves@redhat.com>
6908
6909 * remote.c (struct remote_state): Remove multi_process_aware,
6910 non_stop_aware, cond_tracepoints, cond_breakpoints,
6911 breakpoint_commands, fast_tracepoints, static_tracepoints,
6912 install_in_trace, disconnected_tracing,
6913 enable_disable_tracepoints, string_tracing, and
6914 augmented_libraries_svr4_read fields.
6915 (remote_multi_process_p): Move further below in the file.
6916 (struct packet_config): Add comments.
6917 (update_packet_config): Delete function.
6918 (show_packet_config_cmd): Use packet_config_support.
6919 (add_packet_config_cmd): Use NULL as set callback.
6920 (packet_ok): "set remote foo-packet"-style commands no longer
6921 change config->supported -- adjust.
6922 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
6923 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
6924 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
6925 (PACKET_QNonStop, PACKET_multiprocess_feature)
6926 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
6927 (PACKET_DisconnectedTracing_feature)
6928 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
6929 (set_remote_protocol_packet_cmd): Delete function.
6930 (packet_config_support, packet_support): New functions.
6931 (set_remote_protocol_Z_packet_cmd): Don't call
6932 update_packet_config.
6933 (remote_query_attached, remote_pass_signals)
6934 (remote_program_signals, remote_threads_info)
6935 (remote_threads_extra_info, remote_start_remote): Use
6936 packet_support.
6937 (remote_start_remote): Use packet_config_support and
6938 packet_support.
6939 (init_all_packet_configs): Set all packets to unknown support,
6940 instead of calling update_packet_config.
6941 (remote_check_symbols): Use packet_support.
6942 (remote_supported_packet): Unconditionally set the packet config's
6943 support status.
6944 (remote_multi_process_feature, remote_non_stop_feature)
6945 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
6946 (remote_breakpoint_commands_feature)
6947 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
6948 (remote_install_in_trace_feature)
6949 (remote_disconnected_tracing_feature)
6950 (remote_enable_disable_tracepoint_feature)
6951 (remote_string_tracing_feature)
6952 (remote_augmented_libraries_svr4_read_feature): Delete functions.
6953 (remote_protocol_features): Adjust to use remote_supported_packet
6954 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
6955 "ConditionalTracepoints", "ConditionalBreakpoints",
6956 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
6957 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
6958 "EnableDisableTracepoints", and "tracenz".
6959 (remote_query_supported): Use packet_support.
6960 (remote_open_1): Adjust.
6961 (extended_remote_attach_1): Use packet_support. Switch on the
6962 result of packet_ok instead of checking whether the packet ended
6963 up disabled.
6964 (remote_vcont_resume): Use packet_support.
6965 (remote_resume, remote_stop_ns, fetch_register_using_p)
6966 (remote_prepare_to_store, store_register_using_P)
6967 (check_binary_download, remote_write_bytes): Use packet_support.
6968 (remote_vkill): Use packet_support. Switch on the result of
6969 packet_ok instead of checking whether the packet ended up
6970 disabled.
6971 (extended_remote_supports_disable_randomization): Use
6972 packet_support.
6973 (extended_remote_run): Switch on the result of packet_ok instead
6974 of checking whether the packet ended up disabled.
6975 (remote_insert_breakpoint, remote_remove_breakpoint)
6976 (remote_insert_watchpoint, remote_remove_watchpoint)
6977 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
6978 packet_support.
6979 (remote_search_memory): Use packet_config_support.
6980 (remote_get_thread_local_address, remote_get_tib_address)
6981 (remote_hostio_send_command, remote_can_execute_reverse): Use
6982 packet_support.
6983 (remote_supports_cond_tracepoints)
6984 (remote_supports_cond_breakpoints)
6985 (remote_supports_fast_tracepoints)
6986 (remote_supports_static_tracepoints)
6987 (remote_supports_install_in_trace)
6988 (remote_supports_enable_disable_tracepoint)
6989 (remote_supports_string_tracing)
6990 (remote_can_run_breakpoint_commands): Rewrite, checking whether
6991 the packet config says the feature is enabled or disabled.
6992 (remote_download_tracepoint, remote_trace_set_readonly_regions)
6993 (remote_get_trace_status): Use packet_support.
6994 (remote_set_disconnected_tracing): Adjust to check whether the
6995 feature is enabled with packet_support.
6996 (remote_set_trace_buffer_size, remote_use_agent)
6997 (remote_can_use_agent, remote_supports_btrace): Use
6998 packet_support.
6999 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
7000 Use packet_config_support.
7001 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
7002 the packet config says the feature is enabled or disabled.
7003 (set_range_stepping): Use packet_support.
7004
bdb52a22
TT
70052014-04-25 Tom Tromey <tromey@redhat.com>
7006
7007 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
7008 argument.
7009
e9475ead
SA
70102014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
7011
7012 * NEWS: Mention support for C99 variable length arrays.
7013
82eacd52
JB
70142014-04-24 Joel Brobecker <brobecker@adacore.com>
7015
7016 * ada-lang.c (standard_exc): Expand introductory comment.
7017
01f9f808
MS
70182014-04-24 Michael Sturm <michael.sturm@mintel.com>
7019 Walfred Tedeschi <walfred.tedeschi@intel.com>
7020
7021 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
7022 AVX512 registers.
7023 (amd64_linux_read_description): Add code to handle AVX512 xstate
7024 mask and return respective tdesc.
7025 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
7026 and features/i386/x32-avx512-linux.c.
7027 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
7028 (amd64_linux_core_read_description): Add code to handle AVX512
7029 xstate mask and return respective tdesc.
7030 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
7031 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
7032 calculation.
7033 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
7034 (tdesc_amd64_avx512_linux): New prototype.
7035 (tdesc_x32_avx512_linux): Likewise.
7036 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
7037 features/i386/x32-avx512.c.
7038 (amd64_ymm_avx512_names): New register names for pseudo
7039 registers YMM16-31.
7040 (amd64_ymmh_avx512_names): New register names for raw registers
7041 YMMH16-31.
7042 (amd64_k_names): New register names for K registers.
7043 (amd64_zmmh_names): New register names for ZMM raw registers.
7044 (amd64_zmm_names): New registers names for ZMM pseudo registers.
7045 (amd64_xmm_avx512_names): New register names for XMM16-31
7046 registers.
7047 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
7048 registers.
7049 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
7050 if feature is present.
7051 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
7052 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
7053 (AMD64_NUM_REGS): Adjust to new number of registers.
7054 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
7055 registers supplied via XSTATE by AVX512 registers.
7056 (i386_linux_read_description): Add case for AVX512.
7057 * i386-linux-tdep.c: Include i386-avx512-linux.c.
7058 (i386_linux_gregset_reg_offset): Add AVX512 registers.
7059 (i386_linux_core_read_description): Add case for AVX512.
7060 (i386_linux_init_abi): Install supported register note section
7061 for AVX512.
7062 (_initialize_i386_linux_tdep): Add call to tdesc init function for
7063 AVX512.
7064 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
7065 registers to be number of zmm7h + 1.
7066 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
7067 * i386-tdep.c: Include features/i386/i386-avx512.c.
7068 (i386_zmm_names): Add ZMM pseudo register names array.
7069 (i386_zmmh_names): Add ZMM raw register names array.
7070 (i386_k_names): Add K raw register names array.
7071 (num_lower_zmm_regs): Add constant for the number of lower ZMM
7072 registers. AVX512 has 16 more ZMM registers than there are YMM
7073 registers.
7074 (i386_zmmh_regnum_p): Add function to look up register number of
7075 ZMM raw registers.
7076 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
7077 (i386_k_regnum_p): Likewise for K raw registers.
7078 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
7079 registers added by AVX512.
7080 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
7081 registers added by AVX512.
7082 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
7083 added by AVX512.
7084 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
7085 (i386_pseudo_register_name): Add ZMM pseudo registers.
7086 (i386_zmm_type): Construct and return vector registers type for ZMM
7087 registers.
7088 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
7089 ZMM0-31 pseudo registers and K registers.
7090 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
7091 and YMM16-31 registers from register cache.
7092 (i386_pseudo_register_write): Add code to write K, ZMM and
7093 YMM16-31 registers.
7094 (i386_register_reggroup_p): Add code to include/exclude AVX512
7095 registers in/from respective register groups.
7096 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
7097 registers if feature is present in xcr0.
7098 (i386_gdbarch_init): Add code to initialize AVX512 feature
7099 variables in tdep structure, wire in pseudo registers and call
7100 initialize_tdesc_i386_avx512.
7101 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
7102 variables.
7103 (i386_regnum): Add AVX512 registers.
7104 (I386_SSE_NUM_REGS): New define for number of SSE registers.
7105 (I386_AVX_NUM_REGS): Likewise for AVX registers.
7106 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
7107 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
7108 512 bits wide.
7109 (i386_xmm_avx512_regnum_p): New prototype for register look up.
7110 (i386_ymm_avx512_regnum_p): Likewise.
7111 (i386_k_regnum_p): Likewise.
7112 (i386_zmm_regnum_p): Likewise.
7113 (i386_zmmh_regnum_p): Likewise.
7114 * i387-tdep.c : Update year in copyright notice.
7115 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
7116 XSAVE buffer.
7117 (XSAVE_YMM_AVX512_ADDR): New macro.
7118 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
7119 XSAVE buffer.
7120 (XSAVE_XMM_AVX512_ADDR): New macro.
7121 (xsave_avx512_k_offset): New table for K register offsets in
7122 XSAVE buffer.
7123 (XSAVE_AVX512_K_ADDR): New macro.
7124 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
7125 in XSAVE buffer.
7126 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
7127 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
7128 buffer.
7129 (i387_collect_xsave): Add code to collect AVX512 registers from
7130 XSAVE buffer.
7131 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
7132 of XMM16-31 registers.
7133 (I387_NUM_K_REGS): New define for number of K registers.
7134 (I387_K0_REGNUM): New define for K0 register number.
7135 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
7136 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
7137 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
7138 registers.
7139 (I387_YMM16H_REGNUM): New define for YMM16H register number.
7140 (I387_XMM16_REGNUM): New define for XMM16 register number.
7141 (I387_YMM0_REGNUM): New define for YMM0 register number.
7142 (I387_KEND_REGNUM): New define for last K register number.
7143 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
7144 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
7145 number.
7146 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
7147 number.
7148 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
7149 size.
7150 * features/Makefile: Add AVX512 related files.
7151 * features/i386/32bit-avx512.xml: New file.
7152 * features/i386/64bit-avx512.xml: Likewise.
7153 * features/i386/amd64-avx512-linux.c: Likewise.
7154 * features/i386/amd64-avx512-linux.xml: Likewise.
7155 * features/i386/amd64-avx512.c: Likewise.
7156 * features/i386/amd64-avx512.xml: Likewise.
7157 * features/i386/i386-avx512-linux.c: Likewise.
7158 * features/i386/i386-avx512-linux.xml: Likewise.
7159 * features/i386/i386-avx512.c: Likewise.
7160 * features/i386/i386-avx512.xml: Likewise.
7161 * features/i386/x32-avx512-linux.c: Likewise.
7162 * features/i386/x32-avx512-linux.xml: Likewise.
7163 * features/i386/x32-avx512.c: Likewise.
7164 * features/i386/x32-avx512.xml: Likewise.
7165 * regformats/i386/amd64-avx512-linux.dat: New file.
7166 * regformats/i386/amd64-avx512.dat: Likewise.
7167 * regformats/i386/i386-avx512-linux.dat: Likewise.
7168 * regformats/i386/i386-avx512.dat: Likewise.
7169 * regformats/i386/x32-avx512-linux.dat: Likewise.
7170 * regformats/i386/x32-avx512.dat: Likewise.
7171 * NEWS: Add note about new support for AVX512.
7172
7173
08351840
PA
71742014-04-23 Pedro Alves <palves@redhat.com>
7175
7176 * breakpoint.c (insert_bp_location): Tolerate errors if the
7177 breakpoint is set in a user-loaded objfile.
7178 (remove_breakpoint_1): Likewise. Also tolerate errors if the
7179 location is marked shlib_disabled. If the breakpoint is set in a
7180 user-loaded objfile is a GDB-side memory breakpoint, validate it
7181 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
7182 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
7183 flag.
7184 * mem-break.c (memory_validate_breakpoint): New function.
7185 * objfiles.c (userloaded_objfile_contains_address_p): New
7186 function.
7187 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
7188 * target.h (memory_validate_breakpoint): New declaration.
7189
076855f9
PA
71902014-04-23 Pedro Alves <palves@redhat.com>
7191
7192 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
7193 the breakpoint is set in a shared library, only suppress
7194 errors for software breakpoints, not hardware breakpoints.
7195
483805cf
PA
71962014-04-22 Pedro Alves <palves@redhat.com>
7197
7198 * infrun.c (schedlock_applies): New function, factored out from
7199 find_thread_needs_step_over.
7200 (find_thread_needs_step_over): Use it.
7201 (switch_back_to_stepped_thread): Always clear trap_expected if the
7202 step over is finished. Return early if scheduler locking applies.
7203 Look for the stepping thread and a potential step-over thread with
7204 a single loop.
7205 (currently_stepping_or_nexting_callback): Delete.
7206
a75fef0e
NC
72072014-04-22 Nick Clifton <nickc@redhat.com>
7208
7209 * NEWS: Mention that ARM sim now supports tracing.
7210
48b6e87e
YQ
72112014-04-22 Yao Qi <yao@codesourcery.com>
7212
7213 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
7214 to ...
7215 * tracefile.c (tracefile_fetch_registers): ... it. New
7216 function.
7217 * tracefile.h (tracefile_fetch_registers): Declare.
7218 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
7219 tracefile_fetch_registers.
7220
17617f2d
EZ
72212014-04-19 Eli Zaretskii <eliz@gnu.org>
7222
7223 PR gdb/14018
7224 * windows-nat.c (thread_rec): Don't display a warning when
7225 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
7226 fails for any reason, set th->suspended to -1, so that we don't
7227 try to resume such a thread. Also, don't return NULL in these
7228 cases, to avoid completely ruin the session due to "PC register is
7229 not available" error.
7230 (do_windows_fetch_inferior_registers): Check errors in
7231 GetThreadContext call.
7232 (windows_continue): Accept an additional argument KILLED; if not
7233 zero, ignore errors in the SetThreadContext call, since the
7234 inferior was killed and is shutting down.
7235 (windows_resume, get_windows_debug_event)
7236 (windows_create_inferior, windows_mourn_inferior)
7237 (windows_kill_inferior): All callers of windows_continue changed
7238 to adjust to its new calling sequence.
7239
5723a6fd
YQ
72402014-04-19 Yao Qi <yao@codesourcery.com>
7241
7242 * ctf.c (ctf_open): Call post_create_inferior.
7243
614d5099
YQ
72442014-04-19 Yao Qi <yao@codesourcery.com>
7245
7246 * ctf.c (handle_id): New static variable.
7247 (ctf_open_dir): Get handle_id from bt_context_add_trace return
7248 value. Get the declaration of event "register" and get length
7249 of field "contents".
7250
dac3e710
YQ
72512014-04-19 Yao Qi <yao@codesourcery.com>
7252
7253 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
7254
2bca57ba
SC
72552014-04-18 Siva Chandra Reddy <sivachandra@google.com>
7256
7257 * valops.c (oload_method_static): Remove unnecessary argument
7258 METHOD. Update all callers.
7259
51d48146
PA
72602014-04-18 Pedro alves <palves@redhat.com>
7261 Tom Tromey <tromey@redhat.com>
7262
7263 PR backtrace/15558
7264 * frame.c (get_prev_frame_1): Rename to ...
7265 (get_prev_frame_always): ... this, and make extern. Adjust.
7266 (skip_artificial_frames): Use get_prev_frame_always.
7267 (frame_unwind_caller_id, frame_pop, get_prev_frame)
7268 (get_frame_unwind_stop_reason): Adjust to rename.
7269 * frame.h (get_prev_frame_always): Declare.
7270 * inline-frame.c: Include frame.h.
7271 (inline_frame_this_id): Use get_prev_frame_always.
7272
1bdad2e0
TG
72732014-04-18 Tristan Gingold <gingold@adacore.com>
7274
7275 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
7276 code by using bfd_mach_o_get_base_address.
7277
7ce16bd4
UW
72782014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
7279
7280 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
7281 (spu_ax_pseudo_register_collect): New function.
7282 (spu_ax_pseudo_register_push_stack): Likewise.
7283 (spu_dwarf_reg_to_regnum): Likewise.
7284 (spu_gdbarch_init): Install them. Append DWARF unwinders.
7285
2ed3c037
UW
72862014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
7287
7288 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
7289 Replace FRAME argument with FRAME_ID.
7290 * gdbarch.c, gdbarch.h: Regenerate.
7291 * findvar.c (default_value_from_register): Add GDBARCH argument;
7292 replace FRAME by FRAME_ID. No longer call get_frame_id.
7293 (value_from_register): Update call to gdbarch_value_from_register.
7294 * value.h (default_value_from_register): Update prototype.
7295 * s390-linux-tdep.c (s390_value_from_register): Update interface
7296 and call to default_value_from_register.
7297 * spu-tdep.c (spu_value_from_register): Likewise.
7298
7299 * findvar.c (address_from_register): Remove TYPE argument.
7300 Do not call value_from_register; use gdbarch_value_from_register
7301 with null_frame_id instead.
7302 * value.h (address_from_register): Update prototype.
7303 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
7304 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
7305 address_from_register interface change.
7306
71e50e83
YQ
73072014-04-17 Yao Qi <yao@codesourcery.com>
7308
7309 * gdbtypes.h: Update comments to link to types and macros'
7310 definitions.
7311
7a23c549
SC
73122014-04-16 Siva Chandra Reddy <sivachandra@google.com>
7313
7314 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
7315
22869d73
KS
73162014-04-16 Keith Seitz <keiths@redhat.com>
7317
7318 PR gdb/15827
7319 * dwarf2read.c (skip_one_die): Check that all relative-offset
7320 sibling DIEs fall within range of the current reader's buffer.
7321 (read_partial_die): Likewise.
7322
c4f87ca6
KS
73232014-04-16 Keith Seitz <keiths@redhat.com>
7324
7325 PR c++/16597
7326 * cp-namespace.c (lookup_symbol_file): If the type name of
7327 `this' is NULL, return immediately.
7328
b50c8614
KS
73292014-04-14 Keith Seitz <keiths@redhat.com>
7330
7331 PR c++/16253
7332 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
7333 from symbol_matches_domain in symtab.c. All local callers
7334 of symbol_matches_domain updated.
7335 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
7336 search STRUCT_DOMAIN.
7337 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
7338 independently. standard_lookup will do that automatically.
7339 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
7340 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7341 (cp_lookup_symbol_in_namespace): Likewise.
7342 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
7343 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
7344 may return a STRUCT_DOMAIN match.
7345 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
7346 * cp-support.c: Include language.h.
7347 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
7348 VAR_DOMAIN.
7349 * psymtab.c (match_partial_symbol): Compare the requested
7350 domain with the symbol's domain directly.
7351 (lookup_partial_symbol): Likewise.
7352 * symtab.c (lookup_symbol_in_language): Explain when/why
7353 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7354 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
7355 appropriate languages.
7356 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
7357 and moved to ada-lang.c
7358 (lookup_block_symbol): Explain that this function only returns
7359 symbol matching the requested DOMAIN.
7360 Compare the requested domain with the symbol's domain directly.
7361 (iterate_over_symbols): Compare the requested domain with the
7362 symbol's domain directly.
7363 * symtab.h (symbol_matches_domain): Remove.
7364
3d567982
TT
73652014-04-14 Tom Tromey <tromey@redhat.com>
7366
7367 PR c++/15246:
7368 * c-exp.y (type_aggregate_p): New function.
7369 (qualified_name, classify_inner_name): Use it.
7370 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
7371 and TYPE_TARGET_TYPE of an enum type.
7372 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
7373 an enum type.
7374 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
7375 handle TYPE_DECLARED_CLASS.
7376 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
7377 types.
7378 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
7379 * valops.c (enum_constant_from_type): New function.
7380 (value_aggregate_elt): Use it.
7381 * cp-namespace.c (cp_lookup_nested_symbol): Handle
7382 TYPE_CODE_ENUM.
7383
c848d642
TT
73842014-04-14 Tom Tromey <tromey@redhat.com>
7385
7386 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
7387 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
7388 const.
7389 * value.h (value_aggregate_elt): Update.
7390
0626fc76
TT
73912014-04-14 Tom Tromey <tromey@redhat.com>
7392
7393 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
7394
5ecaaa66
SA
73952014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7396
7397 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7398 (evaluate_subexp_standard): Pass noside argument.
7399 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7400 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7401 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7402 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7403 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7404
1612e0c0
SA
74052014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7406
7407 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7408 points to a constant blob.
7409
c451ebe5
SA
74102014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7411
7412 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7413 property and store it as the high bound and flag the range accordingly.
7414 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7415 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7416 * gdbtypes.h (enum range_flags): New enum.
7417 (struct range_bounds): Add flags member.
7418
1d42e4c4
SA
74192014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7420
7421 * c-typeprint.c (c_type_print_varspec_suffix): Added
7422 check for not yet resolved high bound. If unresolved, print
7423 "variable length" string to the console instead of random
7424 length.
7425
9f1f738a
SA
74262014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7427
7428 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
7429 value.
7430 (ada_template_to_fixed_record_type_1): Likewise.
7431 (ada_to_fixed_type_1): Likewise.
7432 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7433 (cp_print_value): Likewise.
7434 * d-valprint.c (dynamic_array_type): Likewise.
7435 * findvar.c (address_of_variable): Likewise.
7436 * jv-valprint.c (java_value_print): Likewise.
7437 * valops.c (value_ind): Likewise.
7438 * value.c (coerce_ref): Likewise.
7439
3c8452d4
SA
74402014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7441
7442 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7443 value and retrieve the dynamic type size.
7444
4ad88275
SA
74452014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7446
7447 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7448 passed to sizeof is dynamic evaluate the argument to compute the length.
7449
80180f79
SA
74502014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7451 Joel Brobecker <brobecker@adacore.com>
7452
7453 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7454 (dwarf2_evaluate_property): New function.
7455 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7456 * dwarf2read.c (attr_to_dynamic_prop): New function.
7457 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7458 attribute.
7459 * gdbtypes.c: Include dwarf2loc.h.
7460 (is_dynamic_type): New function.
7461 (resolve_dynamic_type): New function.
7462 (resolve_dynamic_bounds): New function.
7463 (get_type_length): New function.
7464 (check_typedef): Use get_type_length to compute type length.
7465 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7466 (TYPE_LOW_BOUND_KIND): New macro.
7467 (is_dynamic_type): New function prototype.
7468 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7469 to resolve dynamic properties of the type. Update comment.
7470 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7471
a1556843
RH
74722014-04-14 Richard Henderson <rth@redhat.com>
7473
7474 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
7475
0be03e84
DE
74762014-04-12 Siva Chandra Reddy <sivachandra@google.com>
7477 Doug Evans <xdje42@gmail.com>
7478
7479 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
7480 dereference TYPE_CODE_REF values.
7481
6b662e19
JB
74822014-04-11 Joel Brobecker <brobecker@adacore.com>
7483
7484 Revert the following changes due to regressions:
7485
7486 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7487 (dwarf2_evaluate_property): New function.
7488 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7489 * dwarf2read.c (attr_to_dynamic_prop): New function.
7490 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7491 attribute.
7492 * gdbtypes.c: Include dwarf2loc.h.
7493 (is_dynamic_type): New function.
7494 (resolve_dynamic_type): New function.
7495 (resolve_dynamic_bounds): New function.
7496 (get_type_length): New function.
7497 (check_typedef): Use get_type_length to compute type length.
7498 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7499 (TYPE_LOW_BOUND_KIND): New macro.
7500 (is_dynamic_type): New function prototype.
7501 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7502 to resolve dynamic properties of the type. Update comment.
7503 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7504
7505 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7506 passed to sizeof is dynamic evaluate the argument to compute the length.
7507
7508 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7509 value and retrieve the dynamic type size.
7510
7511 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7512 (ada_template_to_fixed_record_type_1): Likewise.
7513 (ada_to_fixed_type_1): Likewise.
7514 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7515 (cp_print_value): Likewise.
7516 * d-valprint.c (dynamic_array_type): Likewise.
7517 * eval.c (evaluate_subexp_with_coercion): Likewise.
7518 * findvar.c (address_of_variable): Likewise.
7519 * jv-valprint.c (java_value_print): Likewise.
7520 * valops.c (value_ind): Likewise.
7521 * value.c (coerce_ref): Likewise.
7522
7523 * c-typeprint.c (c_type_print_varspec_suffix): Added
7524 check for not yet resolved high bound. If unresolved, print
7525 "variable length" string to the console instead of random
7526 length.
7527
7528 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7529 property and store it as the high bound and flag the range accordingly.
7530 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7531 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7532 * gdbtypes.h (enum range_flags): New enum.
7533 (struct range_bounds): Add flags member.
7534
7535 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7536 points to a constant blob.
7537
7538 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7539 (evaluate_subexp_standard): Pass noside argument.
7540 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7541 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7542 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7543 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7544 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7545
245a5f0b
KS
75462014-04-11 Keith Seitz <keiths@redhat.com>
7547
7548 PR c++/16675
7549 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
7550 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
7551 reference types.
7552
3bce8237
SA
75532014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7554
7555 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7556 (evaluate_subexp_standard): Pass noside argument.
7557 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7558 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7559 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7560 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7561 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7562
92b09522
SA
75632014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7564
7565 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7566 points to a constant blob.
7567
e1969afb
SA
75682014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7569
7570 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7571 property and store it as the high bound and flag the range accordingly.
7572 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7573 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7574 * gdbtypes.h (enum range_flags): New enum.
7575 (struct range_bounds): Add flags member.
7576
b86138fb
SA
75772014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7578
7579 * c-typeprint.c (c_type_print_varspec_suffix): Added
7580 check for not yet resolved high bound. If unresolved, print
7581 "variable length" string to the console instead of random
7582 length.
7583
bcd629a4
SA
75842014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7585
7586 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7587 (ada_template_to_fixed_record_type_1): Likewise.
7588 (ada_to_fixed_type_1): Likewise.
7589 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7590 (cp_print_value): Likewise.
7591 * d-valprint.c (dynamic_array_type): Likewise.
7592 * eval.c (evaluate_subexp_with_coercion): Likewise.
7593 * findvar.c (address_of_variable): Likewise.
7594 * jv-valprint.c (java_value_print): Likewise.
7595 * valops.c (value_ind): Likewise.
7596 * value.c (coerce_ref): Likewise.
7597
04b19544
SA
75982014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7599
7600 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7601 value and retrieve the dynamic type size.
7602
26cb189f
SA
76032014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7604
7605 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7606 passed to sizeof is dynamic evaluate the argument to compute the length.
7607
37c1ab67
SA
76082014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7609
7610 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7611 (dwarf2_evaluate_property): New function.
7612 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7613 * dwarf2read.c (attr_to_dynamic_prop): New function.
7614 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7615 attribute.
7616 * gdbtypes.c: Include dwarf2loc.h.
7617 (is_dynamic_type): New function.
7618 (resolve_dynamic_type): New function.
7619 (resolve_dynamic_bounds): New function.
7620 (get_type_length): New function.
7621 (check_typedef): Use get_type_length to compute type length.
7622 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7623 (TYPE_LOW_BOUND_KIND): New macro.
7624 (is_dynamic_type): New function prototype.
7625 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7626 to resolve dynamic properties of the type. Update comment.
7627 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7628
729efb13
SA
76292014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7630
7631 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
7632 declaring high/low bounds and change uses accordingly. Call
7633 create_range_type instead of create_static_range_type.
7634 * gdbtypes.c (create_range_type): New function.
7635 (create_range_type): Convert bounds into struct bound_prop and pass
7636 them to create_range_type.
7637 * gdbtypes.h (struct bound_prop): New struct.
7638 (create_range_type): New function prototype.
7639 (struct range_bounds): Use struct bound_prop instead of LONGEST for
7640 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
7641 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
7642 part of the bound.
7643 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
7644
0c9c3474
SA
76452014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7646
7647 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
7648 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
7649 * ada-lang.c: All uses of create_range_type updated.
7650 * coffread.c: All uses of create_range_type updated.
7651 * dwarf2read.c: All uses of create_range_type updated.
7652 * f-exp.y: All uses of create_range_type updated.
7653 * m2-valprint.c: All uses of create_range_type updated.
7654 * mdebugread.c: All uses of create_range_type updated.
7655 * stabsread.c: All uses of create_range_type updated.
7656 * valops.c: All uses of create_range_type updated.
7657 * valprint.c: All uses of create_range_type updated.
7658
9d497a19
PA
76592014-04-10 Pedro Alves <palves@redhat.com>
7660
7661 * breakpoint.c (single_step_breakpoints)
7662 (single_step_gdbarch): Move up in the file.
7663 (one_breakpoint_xfer_memory): New function, factored out from ...
7664 (breakpoint_xfer_memory): ... here. Also process single-step
7665 breakpoints.
7666
15a9128a
TG
76672014-04-09 Tristan Gingold <gingold@adacore.com>
7668
7669 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
7670 comments.
7671 (darwin_decode_exception_message): Free port only after use.
7672
9c97a070
PL
76732014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
7674
7675 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
7676 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
7677 when setting the size of call_length.
7678
7af389b8
SC
76792014-04-07 Siva Chandra Reddy <sivachandra@google.com>
7680
7681 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
7682 dereference TYPE_CODE_REF values.
7683
86ad98c3
JB
76842014-04-07 Joel Brobecker <brobecker@adacore.com>
7685
7686 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
7687 end of warning message.
7688
b0aeadb3
DE
76892014-04-03 Doug Evans <dje@google.com>
7690
7691 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
7692 of stub_comp_unit_die, stub_comp_dir is non-NULL.
7693
5979d6b6
AM
76942014-04-02 Alan Modra <amodra@gmail.com>
7695
7696 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
7697 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
7698 (struct symbol_file_add_from_memory_args): Add size field.
7699 (find_vdso_size): New function.
7700 (add_vsyscall_page): Attempt to find vdso size.
7701
0d60c288
DE
77022014-04-01 Doug Evans <dje@google.com>
7703
7704 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
7705
a41f2563
TG
77062014-04-01 Tristan Gingold <gingold@adacore.com>
7707
7708 * darwin-nat.c (darwin_encode_reply): Add prototype.
7709 (darwin_decode_exception_message): Reply to unknown inferiors.
7710 (darwin_decode_message): Handle message by id. Ignore message
7711 to unknown inferior.
7712 (darwin_wait): Discard unknown messages, add debug trace.
7713
11a865c8
DE
77142014-03-31 Doug Evans <dje@google.com>
7715
7716 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
7717 comp_dir_string.
7718
770e7fc7
DE
77192014-03-31 Doug Evans <dje@google.com>
7720
7721 New option "set print symbol-loading".
7722 * NEWS: Mention it.
7723 * solib.c (solib_read_symbols): Only print symbol loading messages
7724 if requested.
7725 (solib_add): If symbol loading is in "brief" mode, notify user
7726 symbols are being loaded.
7727 (reload_shared_libraries_1): Ditto.
7728 * symfile.c (print_symbol_loading_off): New static global.
7729 (print_symbol_loading_brief): New static global.
7730 (print_symbol_loading_full): New static global.
7731 (print_symbol_loading_enums): New static global.
7732 (print_symbol_loading): New static global.
7733 (print_symbol_loading_p): New function.
7734 (symbol_file_add_with_addrs): Only print symbol loading messages
7735 if requested.
7736 (_initialize_symfile): Register "print symbol-loading" set/show
7737 command.
7738 * symfile.h (print_symbol_loading_p): Declare.
7739
c32c64b7
DE
77402014-03-30 Doug Evans <xdje42@gmail.com>
7741
7742 * infrun.c (set_last_target_status): New function.
7743 (handle_inferior_event): Call it.
7744
7c0bc051
DE
77452014-03-30 Doug Evans <xdje42@gmail.com>
7746
7747 * inferior.h (enum stop_kind): Improve comment.
7748
8776cfe9
JB
77492014-03-28 Joel Brobecker <brobecker@adacore.com>
7750
7751 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
7752 a reference, strip the reference layer before calling
7753 the lang_ops value_has_mutated callback.
7754
410a0ff2
SDJ
77552014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
7756
7757 Remove some globals from our parser.
7758 * language.c (unk_lang_parser): Add "struct parser_state"
7759 argument.
7760 * language.h (struct language_defn) <la_parser>: Likewise.
7761 * parse.c (expout, expout_size, expout_ptr): Remove variables.
7762 (initialize_expout): Add "struct parser_state" argument.
7763 Rewrite function to use the parser state.
7764 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
7765 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
7766 write_exp_elt_longcst, write_exp_elt_dblcst,
7767 write_exp_elt_decfloatcst, write_exp_elt_type,
7768 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
7769 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
7770 write_dollar_variable): Likewise.
7771 (parse_exp_in_context_1): Use parser state.
7772 (insert_type_address_space): Add "struct parser_state" argument.
7773 Use parser state.
7774 (increase_expout_size): New function.
7775 * parser-defs.h: Forward declare "struct language_defn" and
7776 "struct parser_state".
7777 (expout, expout_size, expout_ptr): Remove extern declarations.
7778 (parse_gdbarch, parse_language): Rewrite macro declarations to
7779 accept the parser state.
7780 (struct parser_state): New struct.
7781 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
7782 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
7783 write_exp_elt_decfloatcst, write_exp_elt_type,
7784 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
7785 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
7786 write_exp_msymbol, write_dollar_variable,
7787 mark_struct_expression, insert_type_address_space): Add "struct
7788 parser_state" argument.
7789 (increase_expout_size): New function.
7790 * utils.c (do_clear_parser_state): New function.
7791 (make_cleanup_clear_parser_state): Likewise.
7792 * utils.h (make_cleanup_clear_parser_state): New function
7793 prototype.
7794 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
7795 Update calls to write_exp* in order to pass the parser state.
7796 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
7797 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
7798 (i386_stap_parse_special_token_three_arg_disp): Likewise.
7799 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
7800 * stap-probe.c (stap_parse_register_operand): Likewise.
7801 (stap_parse_single_operand): Likewise.
7802 (stap_parse_argument_1): Likewise.
7803 (stap_parse_argument): Use parser state.
7804 * stap-probe.h: Include "parser-defs.h".
7805 (struct stap_parse_info) <pstate>: New field.
7806 * c-exp.y (parse_type): Rewrite to use parser state.
7807 (yyparse): Redefine to c_parse_internal.
7808 (pstate): New global variable.
7809 (parse_number): Add "struct parser_state" argument.
7810 (write_destructor_name): Likewise.
7811 (type_exp): Update calls to write_exp* and similars in order to
7812 use parser state.
7813 (exp1, exp, variable, qualified_name, space_identifier,
7814 typename, typebase): Likewise.
7815 (write_destructor_name, parse_number, lex_one_token,
7816 classify_name, classify_inner_name, c_parse): Add "struct
7817 parser_state" argument. Update function to use parser state.
7818 * c-lang.h: Forward declare "struct parser_state".
7819 (c_parse): Add "struct parser_state" argument.
7820 * ada-exp.y (parse_type): Rewrite macro to use parser state.
7821 (yyparse): Redefine macro to ada_parse_internal.
7822 (pstate): New variable.
7823 (write_int, write_object_renaming, write_var_or_type,
7824 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
7825 type_int, type_long, type_long_long, type_float, type_double,
7826 type_long_double, type_char, type_boolean, type_system_address):
7827 Add "struct parser_state" argument.
7828 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
7829 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
7830 var_or_type, aggregate, aggregate_component_list,
7831 positional_list, others, component_group,
7832 component_associations): Update calls to write_exp* and similar
7833 functions in order to use parser state.
7834 (ada_parse, write_var_from_sym, write_int,
7835 write_exp_op_with_string, write_object_renaming,
7836 find_primitive_type, write_selectors, write_ambiguous_var,
7837 write_var_or_type, write_name_assoc, type_int, type_long,
7838 type_long_long, type_float, type_double, type_long_double,
7839 type_char, type_boolean, type_system_address): Add "struct
7840 parser_state" argument. Adjust function to use parser state.
7841 * ada-lang.c (parse): Likewise.
7842 * ada-lang.h: Forward declare "struct parser_state".
7843 (ada_parse): Add "struct parser_state" argument.
7844 * ada-lex.l (processInt, processReal): Likewise. Adjust all
7845 calls to both functions.
7846 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
7847 parser state.
7848 (yyparse): Redefine macro to f_parse_internal.
7849 (pstate): New variable.
7850 (parse_number): Add "struct parser_state" argument.
7851 (type_exp, exp, subrange, typebase): Update calls to write_exp*
7852 and similars in order to use parser state.
7853 (parse_number): Adjust code to use parser state.
7854 (yylex): Likewise.
7855 (f_parse): New function.
7856 * f-lang.h: Forward declare "struct parser_state".
7857 (f_parse): Add "struct parser_state" argument.
7858 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
7859 parser state.
7860 (yyparse): Redefine macro for java_parse_internal.
7861 (pstate): New variable.
7862 (push_expression_name, push_expression_name, insert_exp): Add
7863 "struct parser_state" argument.
7864 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
7865 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
7866 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
7867 PostIncrementExpression, PostDecrementExpression,
7868 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
7869 UnaryExpressionNotPlusMinus, CastExpression,
7870 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
7871 RelationalExpression, EqualityExpression, AndExpression,
7872 ExclusiveOrExpression, InclusiveOrExpression,
7873 ConditionalAndExpression, ConditionalOrExpression,
7874 ConditionalExpression, Assignment, LeftHandSide): Update
7875 calls to write_exp* and similars in order to use parser state.
7876 (parse_number): Ajust code to use parser state.
7877 (yylex): Likewise.
7878 (java_parse): New function.
7879 (push_variable): Add "struct parser_state" argument. Adjust
7880 code to user parser state.
7881 (push_fieldnames, push_qualified_expression_name,
7882 push_expression_name, insert_exp): Likewise.
7883 * jv-lang.h: Forward declare "struct parser_state".
7884 (java_parse): Add "struct parser_state" argument.
7885 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
7886 parser state.
7887 (yyparse): Redefine macro to m2_parse_internal.
7888 (pstate): New variable.
7889 (type_exp, exp, fblock, variable, type): Update calls to
7890 write_exp* and similars to use parser state.
7891 (yylex): Likewise.
7892 (m2_parse): New function.
7893 * m2-lang.h: Forward declare "struct parser_state".
7894 (m2_parse): Add "struct parser_state" argument.
7895 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
7896 * objc-lang.h: Forward declare "struct parser_state".
7897 (end_msglist): Add "struct parser_state" argument.
7898 * p-exp.y (parse_type): Rewrite macro to use parser state.
7899 (yyparse): Redefine macro to pascal_parse_internal.
7900 (pstate): New variable.
7901 (parse_number): Add "struct parser_state" argument.
7902 (type_exp, exp1, exp, qualified_name, variable): Update calls to
7903 write_exp* and similars in order to use parser state.
7904 (parse_number, yylex): Adjust code to use parser state.
7905 (pascal_parse): New function.
7906 * p-lang.h: Forward declare "struct parser_state".
7907 (pascal_parse): Add "struct parser_state" argument.
7908 * go-exp.y (parse_type): Rewrite macro to use parser state.
7909 (yyparse): Redefine macro to go_parse_internal.
7910 (pstate): New variable.
7911 (parse_number): Add "struct parser_state" argument.
7912 (type_exp, exp1, exp, variable, type): Update calls to
7913 write_exp* and similars in order to use parser state.
7914 (parse_number, lex_one_token, classify_name, yylex): Adjust code
7915 to use parser state.
7916 (go_parse): Likewise.
7917 * go-lang.h: Forward declare "struct parser_state".
7918 (go_parse): Add "struct parser_state" argument.
7919
342587c4
DE
79202014-03-27 Doug Evans <dje@google.com>
7921
7922 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
7923
33e80786
DE
79242014-03-27 Doug Evans <dje@google.com>
7925
7926 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
7927 Remove argument abbrev_section. All callers updated.
7928
1dbab08b
DE
79292014-03-27 Doug Evans <dje@google.com>
7930
7931 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
7932 addr_base, ranges_base.
7933
318d3177
KS
79342014-03-26 Keith Seitz <keiths@redhat.com>
7935
7936 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
7937 types, not VAR_DOMAIN.
7938
1e54db15
SL
79392014-03-25 Sandra Loosemore <sandra@codesourcery.com>
7940
7941 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
7942 "ra" registers.
7943 * features/nios2-linux.c: Regenerated.
7944 * features/nios2.c: Regenerated.
7945
d3839ede
PA
79462014-03-25 Pedro Alves <palves@redhat.com>
7947
7948 * cli/cli-script.c (script_from_file): Force the interpreter to
7949 sync mode.
7950
7588d2ec
PL
79512014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
7952
7953 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
7954 small stack allocation.
7955
a6290449
TG
79562014-03-24 Tristan Gingold <gingold@adacore.com>
7957
7958 * darwin-nat.c (exc_server): Remove unused prototype.
7959 (darwin_dump_message): Correctly display data on x86_64.
7960 (darwin_encode_reply): Fix style.
7961 Add comments and fix indentation.
7962
31ae9d24 79632014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
69fa4030
PL
7964
7965 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
7966
6339bfc4
DE
79672014-03-22 Doug Evans <xdje42@gmail.com>
7968
7969 * infcmd.c: Whitespace fixes.
7970 (interrupt_command): Merge two function comments into one.
7971
0a07590b
DE
79722014-03-22 Doug Evans <xdje42@gmail.com>
7973
7974 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
7975 All uses updated.
7976
b55fbac4
YQ
79772014-03-22 Yao Qi <yao@codesourcery.com>
7978
7979 * remote.c (target_read_live_memory): Remove.
7980 (memory_xfer_live_readonly_partial): Rename it to
7981 remote_xfer_live_readonly_partial. Remove argument 'object'.
7982 All callers updated. Call remote_read_bytes_1
7983 instead of target_read_live_memory.
7984 * tracepoint.c (set_traceframe_number): Remove.
7985 (make_cleanup_restore_traceframe_number): Likewise .
7986 * tracepoint.h (set_traceframe_number): Remove declaration.
7987 (make_cleanup_restore_traceframe_number): Likewise.
7988
9217e74e
YQ
79892014-03-22 Yao Qi <yao@codesourcery.com>
7990
7991 * remote.c (remote_read_bytes): Move code on reading from the
7992 remote stub to ...
7993 (remote_read_bytes_1): ... here. New function.
7994
8acf9577
YQ
79952014-03-22 Yao Qi <yao@codesourcery.com>
7996
7997 * ctf.c (ctf_xfer_partial): Check the return value of
7998 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
7999 return TARGET_XFER_UNAVAILABLE.
8000 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8001 * target.c (target_read_live_memory): Move it to remote.c.
8002 (memory_xfer_live_readonly_partial): Likewise.
8003 (memory_xfer_partial_1): Move some code to remote_read_bytes.
8004 * remote.c (target_read_live_memory): Moved from target.c.
8005 (memory_xfer_live_readonly_partial): Likewise.
8006 (remote_read_bytes): Factored out from
8007 memory_xfer_partial_1.
8008
feef67ab
DE
80092014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
8010
8011 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
8012 NULL pointer.
8013
b65dc60b
PA
80142014-03-21 Pedro Alves <palves@redhat.com>
8015
8016 * infrun.c (normal_stop): Extend comment.
8017
b4ab256d
HZ
80182014-03-21 Hui Zhu <hui@codesourcery.com>
8019 Pedro Alves <palves@redhat.com>
8020
8021 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
8022 static buffer.
8023 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
8024 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
8025 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
8026
deba7593
MR
80272014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
8028
8029 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
8030 `z' formatted output modifier.
8031
1bff71c3
SDJ
80322014-03-20 Tom Tromey <tromey@redhat.com>
8033 Sergio Durigan Junior <sergiodj@redhat.com>
8034
8035 * probe.c (parse_probes): Turn assert into an ordinary error.
8036 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
8037 exceptions when parsing probes. Rearrange the code for clarity.
8038
90e28950
TT
80392014-03-20 Tom Tromey <tromey@redhat.com>
8040
8041 PR gdb/14135
8042 * top.c (execute_command): Only dispatch events if the command
8043 started the target.
8044
beb460e8
PA
80452014-03-20 Tom Tromey <tromey@redhat.com>
8046
8047 PR cli/15718
8048 * infcall.c: Include event-top.h.
8049 (run_inferior_call): Call async_disable_stdin if needed.
8050
99619bea
PA
80512014-03-20 Pedro Alves <palves@redhat.com>
8052
8053 * infrun.c (prepare_to_proceed): Delete.
8054 (thread_still_needs_step_over): New function.
8055 (find_thread_needs_step_over): New function.
8056 (proceed): If the current thread needs a step-over, set its
8057 steping_over_breakpoint flag. Adjust to use
8058 find_thread_needs_step_over instead of prepare_to_proceed.
8059 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
8060 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
8061 breakpoint.
8062 (switch_back_to_stepped_thread): Step over breakpoints of all
8063 threads not the stepping thread, before switching back to the
8064 stepping thread.
8065
2adfaa28
PA
80662014-03-20 Pedro Alves <palves@redhat.com>
8067
8068 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
8069 extern.
8070 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
8071 * infrun.c (saved_singlestep_ptid)
8072 (stepping_past_singlestep_breakpoint): Delete.
8073 (resume): Remove stepping_past_singlestep_breakpoint handling.
8074 (proceed): Store the prev_pc of the stepping thread too.
8075 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
8076 singlestep_pc.
8077 (enum infwait_states): Delete infwait_thread_hop_state.
8078 (struct execution_control_state) <hit_singlestep_breakpoint>: New
8079 field.
8080 (handle_inferior_event): Adjust.
8081 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
8082 handling and the thread-hop code. Before removing single-step
8083 breakpoints, check whether the thread hit a single-step breakpoint
8084 of another thread. If it did, the trap is not a random signal.
8085 (switch_back_to_stepped_thread): If the event thread hit a
8086 single-step breakpoint, unblock it before switching to the
8087 stepping thread. Handle the case of the stepped thread having
8088 advanced already.
8089 (keep_going): Handle the case of the current thread moving past a
8090 single-step breakpoint.
8091
31e77af2
PA
80922014-03-20 Pedro Alves <palves@redhat.com>
8093
8094 PR breakpoints/7143
8095 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
8096 are being stepped over.
8097 (breakpoint_address_match): Make extern.
8098 * breakpoint.h (breakpoint_address_match): New declaration.
8099 * inferior.h (stepping_past_instruction_at): New declaration.
8100 * infrun.c (struct step_over_info): New type.
8101 (step_over_info): New global.
8102 (set_step_over_info, clear_step_over_info)
8103 (stepping_past_instruction_at): New functions.
8104 (handle_inferior_event): Clear the step-over info when
8105 trap_expected is cleared.
8106 (resume): Remove now stale comment.
8107 (clear_proceed_status): Clear step-over info.
8108 (proceed): Adjust step-over handling to set or clear the step-over
8109 info instead of removing all breakpoints.
8110 (handle_signal_stop): When setting up a thread-hop, don't remove
8111 breakpoints here.
8112 (stop_stepping): Clear step-over info.
8113 (keep_going): Adjust step-over handling to set or clear step-over
8114 info and then always inserting breakpoints, instead of removing
8115 all breakpoints when stepping over one.
8116
b9f437de
PA
81172014-03-20 Pedro Alves <palves@redhat.com>
8118
8119 * infrun.c (previous_inferior_ptid): Adjust comment.
8120 (deferred_step_ptid): Delete.
8121 (infrun_thread_ptid_changed, prepare_to_proceed)
8122 (init_wait_for_inferior): Adjust.
8123 (handle_signal_stop): Delete deferred_step_ptid handling.
8124
06c868a8
JK
81252014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
8126
8127 PR gdb/15358
8128 * defs.h (sync_quit_force_run): New declaration.
8129 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
8130 * event-top.c (async_sigterm_handler): New declaration.
8131 (async_sigterm_token): New variable.
8132 (async_init_signals): Create also async_sigterm_token.
8133 (async_sigterm_handler): New function.
8134 (sync_quit_force_run): New variable.
8135 (handle_sigterm): Replace quit_force call by other calls.
8136 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
8137
dea80df0
MR
81382014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
8139
8140 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
8141 offset into SPE pseudo registers.
8142
0c7e1a46
PA
81432014-03-18 Pedro Alves <palves@redhat.com>
8144
8145 PR gdb/13860
8146 * inferior.h (print_stop_event): Declare.
8147 * infrun.c (print_stop_event): New, factored out from ...
8148 (normal_stop): ... this.
8149 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
8150 of bpstat_print/print_stack_frame.
8151
9c1fcd01
TT
81522014-03-17 Tom Tromey <tromey@redhat.com>
8153
8154 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
8155
11aa919a
PMR
81562014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
8157
8158 * ada-lang.c (decode_constrained_packed_array): Perform a
8159 minimal coercion for reference with coerce_ref instead of
8160 ada_coerce_ref.
8161
d4ccb5e0
TG
81622014-03-17 Tristan Gingold <gingold@adacore.com>
8163
8164 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
8165 (darwin_solib_create_inferior_hook): Emit a warning if version
8166 is unhandled.
8167
49840f2a
UW
81682014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
8169
8170 * python/py-value.c (get_field_flag): Cast flag_name argument to
8171 PyObject_GetAttrString to support Python 2.4.
8172
ed4123e5
JK
81732014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8174
8175 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
8176 (Global Maintainers): Remove Jan Kratochvil.
8177
d6b64346
PA
81782014-03-14 Pedro Alves <palves@redhat.com>
8179
8180 * inferior.h (terminal_ours_for_output): Rename to ...
8181 (child_terminal_ours_for_output): ... this.
8182 (terminal_save_ours): Rename to ...
8183 (child_terminal_save_ours): ... this.
8184 (terminal_ours): Rename to ...
8185 (child_terminal_ours): ... this.
8186 (terminal_inferior): Rename to ...
8187 (child_terminal_inferior): ... this.
8188 (terminal_init_inferior): Rename to ...
8189 (child_terminal_init_inferior): ... this.
8190 (terminal_init_inferior_with_pgrp): Rename to ...
8191 (child_terminal_init_inferior_with_pgrp): ... this.
8192 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
8193 (child_terminal_init_with_pgrp): ... this.
8194 (terminal_save_ours): Rename to ...
8195 (child_terminal_save_ours): ... this.
8196 (terminal_init_inferior): Rename to ...
8197 (child_terminal_init): ... this. Adjust.
8198 (terminal_inferior): Rename to ...
8199 (child_terminal_inferior): ... this.
8200 (terminal_ours_for_output): Rename to ...
8201 (child_terminal_ours_for_output): ... this. Adjust.
8202 (terminal_ours): Rename to ...
8203 (child_terminal_ours): ... this.
8204 (terminal_ours_1): Rename to ...
8205 (child_terminal_ours_1): ... this. Adjust.
8206 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
8207 * windows-nat.c (do_initial_windows_stuff): Adjust.
8208 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
8209 (gnu_terminal_init): ... this. Adjust.
8210 (gnu_target): Adjust.
8211 * inf-child.c (inf_child_target): Adjust.
8212
5a1e8c7a
DE
82132014-03-13 Doug Evans <xdje42@gmail.com>
8214
8215 PR guile/16612
8216 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
8217 new eq?-hashtab.
8218
350e1a76
DE
82192014-03-13 Doug Evans <xdje42@gmail.com>
8220
8221 * value.c (record_latest_value): Call release_value_or_incref
8222 instead of release_value.
8223
a69900ae
PA
82242014-03-13 Pedro Alves <palves@redhat.com>
8225
8226 * procfs.c (procfs_target): Don't override to_shortname,
8227 to_longname or to_doc.
8228
5db9f0bd
PA
82292014-03-13 Pedro Alves <palves@redhat.com>
8230
8231 * inf-child.c (inf_child_open, inf_child_target): Don't mention
8232 Unix in user visible strings.
8233
5e3a2c38
SS
82342014-03-12 Stan Shebs <stan@codesourcery.com>
8235
8236 * gdbtypes.h: Annotate comments for Doxygen, add a page
8237 block comment with some general info.
8238
8bc2fe48
PA
82392014-03-12 Pedro Alves <palves@redhat.com>
8240
8241 * infcmd.c (prepare_execution_command): New function, factored out
8242 from several execution commands.
8243 (run_command_1, continue_command, step_1, jump_command)
8244 (signal_command, until_command, advance_command, finish_command)
8245 (attach_command): Use prepare_execution_command.
8246
638c5f49
OJ
82472014-03-12 Omair Javaid <omair.javaid@linaro.org>
8248
8249 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
8250 (MAX_BPTS): Define.
8251 (MAX_WPTS): Define.
8252 (struct arm_linux_thread_points): Removed.
8253 (struct arm_linux_process_info): New.
8254 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
8255 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
8256 (arm_linux_find_breakpoints_by_tid): Removed.
8257 (struct arch_lwp_info): New.
8258 (arm_linux_find_process_pid): New functions.
8259 (arm_linux_add_process): New functions.
8260 (arm_linux_process_info_get): New functions.
8261 (arm_linux_forget_process): New function.
8262 (arm_linux_get_debug_reg_state): New function.
8263 (struct update_registers_data): New.
8264 (update_registers_callback): New function.
8265 (arm_linux_insert_hw_breakpoint1): Updated.
8266 (arm_linux_remove_hw_breakpoint1): Updated.
8267 (arm_linux_insert_hw_breakpoint): Updated.
8268 (arm_linux_remove_hw_breakpoint): Updated.
8269 (arm_linux_insert_watchpoint): Updated.
8270 (arm_linux_remove_watchpoint): Updated.
8271 (arm_linux_new_thread): Updated.
8272 (arm_linux_prepare_to_resume): New function.
8273 (arm_linux_new_fork): New function.
8274 (_initialize_arm_linux_nat): Updated.
8275
6d03af93
PA
82762014-03-12 Pedro Alves <palves@redhat.com>
8277
8278 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
8279
b3ccfe11
TT
82802014-03-12 Tom Tromey <tromey@redhat.com>
8281
8282 * inf-child.c (return_zero): New function.
8283 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
8284 * aix-thread.c (aix_thread_inferior_created): New function.
8285 (aix_thread_attach): Remove.
8286 (init_aix_thread_ops): Don't set to_attach.
8287 (_initialize_aix_thread): Register inferior_created observer.
8288 * corelow.c (init_core_ops): Don't set to_attach or
8289 to_create_inferior.
8290 * exec.c (init_exec_ops): Don't set to_attach or
8291 to_create_inferior.
8292 * infcmd.c (run_command_1): Use find_run_target. Make direct
8293 target calls.
8294 (attach_command): Use find_attach_target. Make direct target
8295 calls.
8296 * record-btrace.c (init_record_btrace_ops): Don't set
8297 to_create_inferior.
8298 * record-full.c (record_full_can_async_p, record_full_is_async_p):
8299 Remove.
8300 (init_record_full_ops, init_record_full_core_ops): Update. Don't
8301 set to_create_inferior.
8302 * target.c (complete_target_initialization): Add assertion.
8303 (target_create_inferior): Remove.
8304 (find_default_attach, find_default_create_inferior): Remove.
8305 (find_attach_target, find_run_target): New functions.
8306 (find_default_is_async_p, find_default_can_async_p)
8307 (target_supports_non_stop, target_attach): Remove.
8308 (init_dummy_target): Don't set to_create_inferior or
8309 to_supports_non_stop.
8310 * target.h (struct target_ops) <to_attach>: Add comment. Remove
8311 TARGET_DEFAULT_FUNC.
8312 <to_create_inferior>: Add comment.
8313 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
8314 TARGET_DEFAULT_RETURN.
8315 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
8316 (find_attach_target, find_run_target): Declare.
8317 (target_create_inferior): Remove.
8318 (target_has_execution_1): Update comment.
8319 (target_supports_non_stop): Remove.
8320 * target-delegates.c: Rebuild.
8321
91f83b02
PA
83222014-03-12 Pedro Alves <palves@redhat.com>
8323
8324 * inf-child.h: Update comment to not mention Unix.
8325
f1aea813
PA
83262014-03-12 Pedro Alves <palves@redhat.com>
8327
8328 * inf-child.c: Update top comment to not mention Unix. Add
8329 generic comment describing how this target is meant to be used.
8330 (inf_child_post_attach, inf_child_post_startup_inferior)
8331 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
8332 Unix in comment.
8333
ee8e9165
PA
83342014-03-12 Pedro Alves <palves@redhat.com>
8335
8336 * nto-procfs.c: Include inf-child.h.
8337 (procfs_ops): Delete global.
8338 (procfs_can_run): Delete method.
8339 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
8340 target pointer instead of referencing procfs_ops.
8341 (procfs_prepare_to_store): Delete.
8342 (init_procfs_ops): Delete function.
8343 (procfs_target): New function, based on init_procfs_ops, but
8344 inherit inf_child_target.
8345 (_initialize_procfs): Use procfs_target.
8346
51a9c8c5
PA
83472014-03-12 Pedro Alves <palves@redhat.com>
8348
8349 * windows-nat.c: Include inf-child.h.
8350 (windows_ops): Delete global.
8351 (windows_open, windows_prepare_to_store, windows_can_run): Delete
8352 methods.
8353 (init_windows_ops): Delete function.
8354 (windows_target): New function, based on init_windows_ops, but
8355 inherit inf_child_target.
8356 (_initialize_windows_nat): Use windows_target. Install x86
8357 specific target methods here.
8358
c1966e26
DE
83592014-03-10 Doug Evans <xdje42@gmail.com>
8360
8361 * guile/guile.c (call_initialize_gdb_module): New function.
8362 (initialize_guile): Replace call to scm_init_guile with call to
8363 scm_with_guile.
8364
023db19c
JB
83652014-03-10 Joel Brobecker <brobecker@adacore.com>
8366
8367 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
8368 in call to TYPE_CODE macro.
8369
5ec18f2b
JG
83702014-03-10 Jerome Guitton <guitton@adacore.com>
8371
8668be63
JB
8372 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
8373 Resolve tagged types to full view.
5ec18f2b 8374
7d03f2eb
HZ
83752014-03-10 Hui Zhu <hui@codesourcery.com>
8376
8377 * target.h (target_insert_breakpoint): Remove "hardware" from its
8378 comments.
8379
c5164cbc
DE
83802014-03-07 Doug Evans <dje@google.com>
8381
8382 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
8383
c4a3fee2
DE
83842014-03-07 Doug Evans <dje@google.com>
8385
8386 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
8387 Remove unused local comp_dir_attr. Assert exactly one of
8388 stub_comp_unit_die, stub_comp_dir is non-NULL.
8389
3156469c
JB
83902014-03-07 Joel Brobecker <brobecker@adacore.com>
8391
8392 * target.h (complete_target_initialization, add_target):
8393 Add comment.
8394
c1a7b7c6
PA
83952014-03-07 Pedro Alves <palves@redhat.com>
8396
8397 * go32-nat.c: Include inf-child.h.
8398 (go32_ops): Delete global.
8399 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
8400 Delete methods.
8401 (go32_create_inferior): Push the passed in target pointer instead
8402 of referencing go32_ops.
8403 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
8404 (go32_target): New function, based on init_go32_ops, but inherit
8405 inf_child_target.
8406 (_initialize_go32_nat): Use go32_target. Move parts of
8407 init_go32_ops here.
8408
d3c1a85f
JB
84092014-03-06 Joel Brobecker <brobecker@adacore.com>
8410
8411 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
8412 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
8413 SYMBOL_VALUE_ADDRESS.
8414 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
8415
5fa1d40e
YQ
84162014-03-06 Yao Qi <yao@codesourcery.com>
8417
8418 * breakpoint.c (get_tracepoint_by_number): Remove argument
8419 optional_p. All callers updated. Adjust comments. Update
8420 output message.
8421 * breakpoint.h (get_tracepoint_by_number): Update declaration.
8422
0c13193f
YQ
84232014-03-06 Yao Qi <yao@codesourcery.com>
8424
8425 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
8426 early if get_number returns zero. Use 'p' instead of 'args'.
8427
2217da06
YQ
84282014-03-06 Yao Qi <yao@codesourcery.com>
8429
8430 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
8431 message.
8432
cc3da688
YQ
84332014-03-06 Yao Qi <yao@codesourcery.com>
8434
8435 PR breakpoints/16508
8436 * tracepoint.c (check_trace_running): New function.
8437 (trace_find_command): Move code to check_trace_running and
8438 call check_trace_running.
8439 (trace_find_pc_command): Likewise.
8440 (trace_find_tracepoint_command): Likewise.
8441 (trace_find_line_command): Likewise.
8442 (trace_find_range_command): Likewise.
8443 * tracepoint.h (check_trace_running): Likewise.
8444 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
8445
6a5f844b
YQ
84462014-03-06 Yao Qi <yao@codesourcery.com>
8447
8448 * target.h (struct target_ops) <to_traceframe_info>: Use
8449 TARGET_DEFAULT_NORETURN (tcomplain ()).
8450 * target-delegates.c: Regenerated.
8451
0f26cec1
PA
84522014-03-05 Pedro Alves <palves@redhat.com>
8453
8454 PR gdb/16575
8455 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
8456 void. Update comment.
8457 (dcache_xfer_memory): Delete.
8458 (dcache_read_memory_partial): New, based on the read bits of
8459 dcache_xfer_memory.
8460 (dcache_update): Add status parameter. Use ULONGEST for len, and
8461 adjust. Discard cache lines if the reason for the update was
8462 error.
8463 * dcache.h (dcache_xfer_memory): Delete declaration.
8464 (dcache_read_memory_partial): New declaration.
8465 (dcache_update): Update prototype.
8466 * target.c (raw_memory_xfer_partial): Update the dcache here.
8467 (memory_xfer_partial_1): Don't handle dcache writes here.
8468
b2b255bd
MF
84692014-03-05 Mike Frysinger <vapier@gentoo.org>
8470
8471 * remote-sim.c (gdbsim_load): Add const to prog.
8472
5d9cf8a4
TT
84732014-03-03 Tom Tromey <tromey@redhat.com>
8474
8475 * elfread.c (probe_key): Change to bfd_data.
8476 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
8477 now per-BFD, not per-objfile.
8478 * stap-probe.c (stap_probe_destroy): Update comment.
8479 (handle_stap_probe): Allocate on the per-BFD obstack.
8480
729662a5
TT
84812014-03-03 Tom Tromey <tromey@redhat.com>
8482
8483 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
8484 * breakpoint.c (create_longjmp_master_breakpoint): Use
8485 get_probe_address.
8486 (add_location_to_breakpoint, bkpt_probe_insert_location)
8487 (bkpt_probe_remove_location): Update.
8488 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
8489 * elfread.c (elf_symfile_relocate_probe): Remove.
8490 (elf_probe_fns): Update.
8491 (insert_exception_resume_breakpoint): Change type of "probe"
8492 parameter to bound_probe.
8493 (check_exception_resume): Update.
8494 * objfiles.c (objfile_relocate1): Don't relocate probes.
8495 * probe.c (bound_probe_s): New typedef.
8496 (parse_probes): Use get_probe_address. Set sal's objfile.
8497 (find_probe_by_pc): Return a bound_probe.
8498 (collect_probes): Return a VEC(bound_probe_s).
8499 (compare_probes): Update.
8500 (gen_ui_out_table_header_info): Change type of "probes"
8501 parameter. Update.
8502 (info_probes_for_ops): Update.
8503 (get_probe_address): New function.
8504 (probe_safe_evaluate_at_pc): Update.
8505 * probe.h (struct probe_ops) <get_probe_address>: New field.
8506 <set_semaphore, clear_semaphore>: Add objfile parameter.
8507 (struct probe) <objfile>: Remove field.
8508 <arch>: New field.
8509 <address>: Update comment.
8510 (struct bound_probe): New.
8511 (find_probe_by_pc): Return a bound_probe.
8512 (get_probe_address): Declare.
8513 * solib-svr4.c (struct probe_and_action) <address>: New field.
8514 (hash_probe_and_action, equal_probe_and_action): Update.
8515 (register_solib_event_probe): Add address parameter.
8516 (solib_event_probe_at): Update.
8517 (svr4_create_probe_breakpoints): Add objfile parameter. Use
8518 get_probe_address.
8519 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
8520 (stap_get_probe_address): New function.
8521 (stap_can_evaluate_probe_arguments, compute_probe_arg)
8522 (compile_probe_arg): Update.
8523 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
8524 address.
8525 (handle_stap_probe): Don't relocate the probe.
8526 (stap_relocate): Remove.
8527 (stap_gen_info_probes_table_values): Update.
8528 (stap_probe_ops): Remove stap_relocate.
8529 * symfile-debug.c (debug_sym_relocate_probe): Remove.
8530 (debug_sym_probe_fns): Update.
8531 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
8532 * symtab.c (init_sal): Use memset.
8533 * symtab.h (struct symtab_and_line) <objfile>: New field.
8534 * tracepoint.c (start_tracing, stop_tracing): Update.
8535
ff887920
TT
85362014-03-03 Tom Tromey <tromey@redhat.com>
8537
8538 * probe.h (parse_probes, find_probe_by_pc)
8539 (find_probes_in_objfile): Fix comments.
8540
f0407826
DE
85412014-03-02 Doug Evans <xdje42@gmail.com>
8542
8543 * infrun.c (handle_signal_stop): Replace test for
8544 TARGET_WAITKIND_STOPPED with an assert.
8545
35e6a711
DE
85462014-03-02 Doug Evans <xdje42@gmail.com>
8547
8548 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
8549
667f9d0b
DE
85502014-03-02 Doug Evans <xdje42@gmail.com>
8551
8552 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
8553
dc92ace0
MK
85542014-03-01 Mark Kettenis <kettenis@gnu.org>
8555
8556 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
8557
a900370f
MK
85582014-03-01 Mark Kettenis <kettenis@gnu.org>
8559
8560 * i386obsd-nat.c: Include "obsd-nat.h".
8561 (_initialize_i386obsd_nat): Call obsd_add_target instead of
8562 add_target.
8563 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8564
b72a7981
MK
85652014-03-01 Mark Kettenis <kettenis@gnu.org>
8566
8567 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
8568
96c70aba
MK
85692014-03-01 Mark Kettenis <kettenis@gnu.org>
8570
8571 * mips64obsd-nat.c: Include "obsd-nath".
8572 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
8573 add_target
8574 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8575
874a80af
MK
85762014-03-01 Mark Kettenis <kettenis@gnu.org>
8577
8fd408f1
MK
8578 * amd64obsd-nat.c: Include "obsd-nat,h.
8579 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
8580 add_target.
874a80af
MK
8581 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8582
9cf95373
SC
85832014-02-28 Siva Chandra Reddy <sivachandra@google.com>
8584
8585 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
8586 (find_overload_match): Update call to find_oload_champ.
8587 (find_oload_champ_namespace_loop): Likewise
8588
863e4da4
MK
85892014-02-28 Mark Kettenis <kettenis@gnu.org>
8590
025cac40
MK
8591 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
8592
1ed586ce
MK
8593 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
8594 * config/sparc/obsd64.mh: New file.
8595 * sparc64obsd-nat.c: New file.
8596
863e4da4
MK
8597 * obsd-nat.h: New file.
8598 * obsd-nat.c: New file.
8599 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
8600 (ALLDEPFILES): Add obsd-nat.c.
8601
89de4da4
TT
86022014-02-28 Tom Tromey <tromey@redhat.com>
8603
8604 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
8605 * cli-out.h (cli_ui_out_impl): Now const.
8606 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
8607 * ui-out.c (struct ui_out) <impl>: Now const.
8608 (default_ui_out_impl): Now const.
8609 (ui_out_new): Make 'impl' parameter const.
8610 * ui-out.h (ui_out_new): Update.
8611
c725e7b6
MK
86122014-02-27 Mark Kettenis <kettenis@gnu.org>
8613
8614 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
8615
670b46b3
MK
86162014-02-27 Mark Kettenis <kettenis@gnu.org>
8617
8618 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
8619
c91550fc
JK
86202014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
8621
8622 Additional PR 8882 fix.
8623 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
8624
2fa0369e
PA
86252014-02-27 Pedro Alves <palves@redhat.com>
8626
8627 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
8628 isn't set.
8629
d632a097
PA
86302014-02-27 Pedro Alves <palves@redhat.com>
8631
8632 PR 12702
8633 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
8634 * nat/linux-waitpid.c: Include string.h.
8635 (status_to_str): Moved here and made extern.
8636 * nat/linux-waitpid.h (status_to_str): New declaration.
8637
2ebd5a35
HZ
86382014-02-27 Hui Zhu <hui@codesourcery.com>
8639
8640 PR 12702
8641 * infrun.c (ptid_match): Move ...
8642 * common/ptid.c (ptid_match): ... here.
8643 * inferior.h (ptid_match): Move ...
8644 * common/ptid.h (ptid_match): ... here.
8645
3cdd631f
MK
86462014-02-27 Mark Kettenis <kettenis@gnu.org>
8647
8648 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
8649 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
8650 gdb_target_obs.
8651
bee30a64
MK
86522014-02-27 Mark Kettenis <kettenis@gnu.org>
8653
8654 * obsd-tdep.c (obsd_auxv_parse): New function.
8655 (obsd_init_abi): Set auxv_parse.
27a48a92
MK
8656
8657 * gdbarch.sh (auxv_parse): New.
8658 * gdbarch.h: Regenerated.
8659 * gdbarch.c: Regenerated.
8660 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
8661
7a5a839f
LC
86622014-02-26 Ludovic Courtès <ludo@gnu.org>
8663
8664 * guile/scm-value.c (gdbscm_history_append_x): New function.
8665 (value_functions): Add it.
8666
31aa7e4e
JB
86672014-02-27 Joel Brobecker <brobecker@adacore.com>
8668
8669 * dwarf2read.c (attr_value_as_address): New function.
8670 (dwarf2_find_base_address, read_call_site_scope): Use
8671 attr_value_as_address in place of DW_ADDR.
8672 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
8673 the low and high addresses. Slight rework of the handling
8674 of the high pc being a constant form, and limit it to
8675 DWARF verson 4 or higher.
8676 (dwarf2_record_block_ranges): Likewise.
8677 (read_partial_die): Likewise.
8678 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
8679
9b333ba3
TT
86802014-02-26 Tom Tromey <tromey@redhat.com>
8681
8682 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
8683
5f6cac40
TT
86842014-02-26 Tom Tromey <tromey@redhat.com>
8685
8686 * elfread.c (elf_read_minimal_symbols): Return early if
8687 minimal symbols have already been read. Add "ei" parameter.
8688 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
8689 * minsyms.c (prim_record_minimal_symbol_full): Update.
8690 * objfiles.h (struct objstats) <n_minsyms>: Move...
8691 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
8692 * symmisc.c (print_objfile_statistics): Update.
8693
2750ef27
TT
86942014-02-26 Tom Tromey <tromey@redhat.com>
8695
8696 * elfread.c (elf_read_minimal_symbols): New function, from
8697 elf_symfile_read.
8698 (elf_symfile_read): Call it.
8699
34643a32
TT
87002014-02-26 Tom Tromey <tromey@redhat.com>
8701
8702 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
8703 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
8704 (lookup_minimal_symbol_solib_trampoline)
8705 (lookup_minimal_symbol_by_pc_section_1)
8706 (lookup_minimal_symbol_and_objfile): Update.
8707 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
8708 Don't allocate a minimal symbol if minsyms have already been read.
8709 (build_minimal_symbol_hash_tables): Update.
8710 (install_minimal_symbols): Do nothing if minsyms already read.
8711 Use the per-BFD obstack.
8712 (terminate_minimal_symbol_table): Use the per-BFD obstack.
8713 * objfiles.c (allocate_objfile): Call
8714 terminate_minimal_symbol_table later.
8715 (have_minimal_symbols): Update.
8716 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
8717 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
8718 Move from struct objfile.
8719 <minsyms_read>: New field.
8720 (struct objfile) <msymbols, minimal_symbol_count,
8721 msymbol_hash, msymbol_demangled_hash>: Move.
8722 (ALL_OBJFILE_MSYMBOLS): Update.
8723 * symfile.c (read_symbols): Set minsyms_read.
8724 (reread_symbols): Update.
8725 * symmisc.c (dump_objfile, dump_msymbols): Update.
8726
2273f0ac
TT
87272014-02-26 Tom Tromey <tromey@redhat.com>
8728
8729 * minsyms.c (msymbols_sort): Remove.
8730 * minsyms.h (msymbols_sort): Remove.
8731 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
8732 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
8733 * elfread.c (elf_symtab_read): Don't add section offsets.
8734 * xcoffread.c (record_minimal_symbol): Don't add section offset
8735 to minimal symbol address.
8736 * somread.c (text_offset, data_offset): Remove.
8737 (som_symtab_read): Don't add section offsets to minimal symbol
8738 addresses.
8739 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
8740 Don't add section offsets to minimal symbols.
8741 * coffread.c (coff_symtab_read): Don't add section offsets
8742 to minimal symbol addresses.
8743 * machoread.c (macho_symtab_add_minsym): Don't add section offset
8744 to minimal symbol addresses.
8745 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
8746 section offset to minimal symbol addresses.
8747 * mdebugread.c (parse_partial_symbols): Don't add section
8748 offset to minimal symbol addresses.
8749 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
8750 offset to minimal symbol addresses.
8751
77e371c0
TT
87522014-02-26 Tom Tromey <tromey@redhat.com>
8753
8754 * ada-lang.c (ada_main_name): Update.
8755 (ada_add_standard_exceptions): Update.
8756 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
8757 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8758 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
8759 * auxv.c (ld_so_xfer_auxv): Update.
8760 * avr-tdep.c (avr_scan_prologue): Update.
8761 * ax-gdb.c (gen_var_ref): Update.
8762 * blockframe.c (get_pc_function_start)
8763 (find_pc_partial_function_gnu_ifunc): Update.
8764 * breakpoint.c (create_overlay_event_breakpoint)
8765 (create_longjmp_master_breakpoint)
8766 (create_std_terminate_master_breakpoint)
8767 (create_exception_master_breakpoint): Update.
8768 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8769 * c-valprint.c (c_val_print): Update.
8770 * coff-pe-read.c (add_pe_forwarded_sym): Update.
8771 * common/agent.c (agent_look_up_symbols): Update.
8772 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
8773 * dwarf2loc.c (call_site_to_target_addr): Update.
8774 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
8775 * elfread.c (elf_gnu_ifunc_record_cache)
8776 (elf_gnu_ifunc_resolve_by_got): Update.
8777 * findvar.c (default_read_var_value): Update.
8778 * frame.c (inside_main_func): Update.
8779 * frv-tdep.c (frv_frame_this_id): Update.
8780 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8781 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
8782 Update.
8783 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
8784 (hppa_hpux_find_dummy_bpaddr): Update.
8785 * hppa-tdep.c (hppa_symbol_address): Update.
8786 * infcmd.c (until_next_command): Update.
8787 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
8788 Update.
8789 * linespec.c (minsym_found, add_minsym): Update.
8790 * linux-nat.c (get_signo): Update.
8791 * linux-thread-db.c (inferior_has_bug): Update.
8792 * m32c-tdep.c (m32c_return_value)
8793 (m32c_m16c_address_to_pointer): Update.
8794 * m32r-tdep.c (m32r_frame_this_id): Update.
8795 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8796 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8797 * maint.c (maintenance_translate_address): Update.
8798 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
8799 (frob_address): New function.
8800 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
8801 frob_address. Rename parameter to "pc_in".
8802 (compare_minimal_symbols, compact_minimal_symbols): Use raw
8803 addresses.
8804 (find_solib_trampoline_target, minimal_symbol_upper_bound):
8805 Update.
8806 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8807 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
8808 * objc-lang.c (find_objc_msgsend): Update.
8809 * objfiles.c (objfile_relocate1): Update.
8810 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8811 * p-valprint.c (pascal_val_print): Update.
8812 * parse.c (write_exp_msymbol): Update.
8813 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
8814 (ppc_elfv2_skip_entrypoint): Update.
8815 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8816 * printcmd.c (build_address_symbolic, msym_info)
8817 (address_info): Update.
8818 * proc-service.c (ps_pglobal_lookup): Update.
8819 * psymtab.c (find_pc_sect_psymtab_closer)
8820 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
8821 Change msymbol parameter to bound_minimal_symbol.
8822 * ravenscar-thread.c (get_running_thread_id): Update.
8823 * remote.c (remote_check_symbols): Update.
8824 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
8825 address.
8826 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8827 * solib-dsbt.c (lm_base): Update.
8828 * solib-frv.c (lm_base, main_got): Update.
8829 * solib-irix.c (locate_base): Update.
8830 * solib-som.c (som_solib_create_inferior_hook)
8831 (link_map_start): Update.
8832 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
8833 * solib-svr4.c (elf_locate_base, enable_break): Update.
8834 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
8835 (flush_ea_cache): Update.
8836 * stabsread.c (define_symbol, scan_file_globals): Update.
8837 * stack.c (find_frame_funname): Update.
8838 * symfile-debug.c (debug_qf_expand_symtabs_matching)
8839 (debug_qf_find_pc_sect_symtab): Update.
8840 * symfile.c (simple_read_overlay_table)
8841 (simple_overlay_update): Update.
8842 * symfile.h (struct quick_symbol_functions)
8843 <find_pc_sect_symtab>: Change type of msymbol to
8844 bound_minimal_symbol.
8845 * symmisc.c (dump_msymbols): Update.
8846 * symtab.c (find_pc_sect_symtab_via_partial)
8847 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
8848 (search_symbols, print_msymbol_info): Update.
8849 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
8850 (MSYMBOL_VALUE_ADDRESS): Redefine.
8851 (BMSYMBOL_VALUE_ADDRESS): New macro.
8852 * tracepoint.c (scope_info): Update.
8853 * tui/tui-disasm.c (tui_find_disassembly_address)
8854 (tui_get_begin_asm_address): Update.
8855 * valops.c (find_function_in_inferior): Update.
8856 * value.c (value_static_field, value_fn_field): Update.
8857
3b7344d5
TT
88582014-02-26 Tom Tromey <tromey@redhat.com>
8859
8860 * ada-lang.c (ada_update_initial_language): Update.
8861 (ada_main_name, ada_has_this_exception_support): Update.
8862 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
8863 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8864 * arm-tdep.c (arm_skip_stub): Update.
8865 * auxv.c (ld_so_xfer_auxv): Update.
8866 * avr-tdep.c (avr_scan_prologue): Update.
8867 * ax-gdb.c (gen_var_ref): Update.
8868 * breakpoint.c (struct breakpoint_objfile_data)
8869 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
8870 type to bound_minimal_symbol.
8871 (create_overlay_event_breakpoint)
8872 (create_longjmp_master_breakpoint)
8873 (create_std_terminate_master_breakpoint)
8874 (create_exception_master_breakpoint): Update.
8875 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8876 * c-exp.y (classify_name): Update.
8877 * coffread.c (coff_symfile_read): Update.
8878 * common/agent.c (agent_look_up_symbols): Update.
8879 * d-lang.c (d_main_name): Update.
8880 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
8881 * dec-thread.c (enable_dec_thread): Update.
8882 * dwarf2loc.c (call_site_to_target_addr): Update.
8883 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
8884 * eval.c (evaluate_subexp_standard): Update.
8885 * findvar.c (struct minsym_lookup_data) <result>: Change type
8886 to bound_minimal_symbol.
8887 <objfile>: Remove.
8888 (minsym_lookup_iterator_cb, default_read_var_value): Update.
8889 * frame.c (inside_main_func): Update.
8890 * frv-tdep.c (frv_frame_this_id): Update.
8891 * gcore.c (call_target_sbrk): Update.
8892 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8893 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
8894 Update.
8895 * go-lang.c (go_main_name): Update.
8896 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
8897 (hppa_hpux_find_import_stub_for_addr): Update.
8898 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
8899 Update. Change return type.
8900 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
8901 type.
8902 * jit.c (jit_breakpoint_re_set_internal): Update.
8903 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
8904 Update.
8905 * linux-nat.c (get_signo): Update.
8906 * linux-thread-db.c (inferior_has_bug): Update
8907 * m32c-tdep.c (m32c_return_value)
8908 (m32c_m16c_address_to_pointer): Update.
8909 * m32r-tdep.c (m32r_frame_this_id): Update.
8910 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8911 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8912 * minsyms.c (lookup_minimal_symbol_internal): Rename to
8913 lookup_minimal_symbol. Change return type.
8914 (lookup_minimal_symbol): Remove.
8915 (lookup_bound_minimal_symbol): Update.
8916 (lookup_minimal_symbol_text): Change return type.
8917 (lookup_minimal_symbol_solib_trampoline): Change return type.
8918 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
8919 (lookup_minimal_symbol_solib_trampoline): Change return type.
8920 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8921 * objc-lang.c (lookup_objc_class, lookup_child_selector)
8922 (value_nsstring, find_imps): Update.
8923 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8924 * p-lang.c (pascal_main_name): Update.
8925 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
8926 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8927 * proc-service.c (ps_pglobal_lookup): Update.
8928 * ravenscar-thread.c (get_running_thread_msymbol): Change
8929 return type.
8930 (has_ravenscar_runtime, get_running_thread_id): Update.
8931 * remote.c (remote_check_symbols): Update.
8932 * sol-thread.c (ps_pglobal_lookup): Update.
8933 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8934 * solib-dsbt.c (lm_base): Update.
8935 * solib-frv.c (lm_base, frv_relocate_section_addresses):
8936 Update.
8937 * solib-irix.c (locate_base): Update.
8938 * solib-som.c (som_solib_create_inferior_hook)
8939 (som_solib_desire_dynamic_linker_symbols, link_map_start):
8940 Update.
8941 * solib-spu.c (spu_enable_break): Update.
8942 * solib-svr4.c (elf_locate_base, enable_break): Update.
8943 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
8944 (flush_ea_cache): Update.
8945 * stabsread.c (define_symbol): Update.
8946 * symfile.c (simple_read_overlay_table): Update.
8947 * symtab.c (find_pc_sect_line): Update.
8948 * tracepoint.c (scope_info): Update.
8949 * tui-disasm.c (tui_get_begin_asm_address): Update.
8950 * value.c (value_static_field): Update.
8951
40c1a007
TT
89522014-02-26 Tom Tromey <tromey@redhat.com>
8953
8954 * minsyms.c (prim_record_minimal_symbol_full): Use
8955 SET_MSYMBOL_VALUE_ADDRESS.
8956 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
8957 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
8958 SET_MSYMBOL_VALUE_ADDRESS.
8959 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
8960 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
8961
efd66ac6
TT
89622014-02-26 Tom Tromey <tromey@redhat.com>
8963
8964 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
8965 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
8966 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
8967 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
8968 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
8969 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
8970 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
8971 * ada-lang.c (ada_main_name): Update.
8972 (ada_lookup_simple_minsym): Update.
8973 (ada_make_symbol_completion_list): Update.
8974 (ada_add_standard_exceptions): Update.
8975 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
8976 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8977 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
8978 * arm-tdep.c (skip_prologue_function): Update.
8979 (arm_skip_stack_protector, arm_skip_stub): Update.
8980 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
8981 (arm_wince_skip_main_prologue): Update.
8982 * auxv.c (ld_so_xfer_auxv): Update.
8983 * avr-tdep.c (avr_scan_prologue): Update.
8984 * ax-gdb.c (gen_var_ref): Update.
8985 * block.c (call_site_for_pc): Update.
8986 * blockframe.c (get_pc_function_start): Update.
8987 (find_pc_partial_function_gnu_ifunc): Update.
8988 * breakpoint.c (create_overlay_event_breakpoint): Update.
8989 (create_longjmp_master_breakpoint): Update.
8990 (create_std_terminate_master_breakpoint): Update.
8991 (create_exception_master_breakpoint): Update.
8992 (resolve_sal_pc): Update.
8993 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8994 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
8995 Update.
8996 * c-valprint.c (c_val_print): Update.
8997 * coff-pe-read.c (add_pe_forwarded_sym): Update.
8998 * coffread.c (coff_symfile_read): Update.
8999 * common/agent.c (agent_look_up_symbols): Update.
9000 * dbxread.c (find_stab_function_addr): Update.
9001 (end_psymtab): Update.
9002 * dwarf2loc.c (call_site_to_target_addr): Update.
9003 (func_verify_no_selftailcall): Update.
9004 (tailcall_dump): Update.
9005 (call_site_find_chain_1): Update.
9006 (dwarf_expr_reg_to_entry_parameter): Update.
9007 * elfread.c (elf_gnu_ifunc_record_cache): Update.
9008 (elf_gnu_ifunc_resolve_by_got): Update.
9009 * f-valprint.c (info_common_command): Update.
9010 * findvar.c (read_var_value): Update.
9011 * frame.c (get_prev_frame_1): Update.
9012 (inside_main_func): Update.
9013 * frv-tdep.c (frv_skip_main_prologue): Update.
9014 (frv_frame_this_id): Update.
9015 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9016 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
9017 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
9018 (gnuv3_skip_trampoline): Update.
9019 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
9020 (hppa64_hpux_in_solib_call_trampoline): Update.
9021 (hppa_hpux_skip_trampoline_code): Update.
9022 (hppa64_hpux_search_dummy_call_sequence): Update.
9023 (hppa_hpux_find_import_stub_for_addr): Update.
9024 (hppa_hpux_find_dummy_bpaddr): Update.
9025 * hppa-tdep.c (hppa_symbol_address)
9026 (hppa_lookup_stub_minimal_symbol): Update.
9027 * i386-tdep.c (i386_skip_main_prologue): Update.
9028 (i386_pe_skip_trampoline_code): Update.
9029 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
9030 * infcall.c (get_function_name): Update.
9031 * infcmd.c (until_next_command): Update.
9032 * jit.c (jit_breakpoint_re_set_internal): Update.
9033 (jit_inferior_init): Update.
9034 * linespec.c (minsym_found): Update.
9035 (add_minsym): Update.
9036 * linux-fork.c (info_checkpoints_command): Update.
9037 * linux-nat.c (get_signo): Update.
9038 * linux-thread-db.c (inferior_has_bug): Update.
9039 * m32c-tdep.c (m32c_return_value): Update.
9040 (m32c_m16c_address_to_pointer): Update.
9041 (m32c_m16c_pointer_to_address): Update.
9042 * m32r-tdep.c (m32r_frame_this_id): Update.
9043 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9044 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9045 * maint.c (maintenance_translate_address): Update.
9046 * minsyms.c (add_minsym_to_hash_table): Update.
9047 (add_minsym_to_demangled_hash_table): Update.
9048 (msymbol_objfile): Update.
9049 (lookup_minimal_symbol): Update.
9050 (iterate_over_minimal_symbols): Update.
9051 (lookup_minimal_symbol_text): Update.
9052 (lookup_minimal_symbol_by_pc_name): Update.
9053 (lookup_minimal_symbol_solib_trampoline): Update.
9054 (lookup_minimal_symbol_by_pc_section_1): Update.
9055 (lookup_minimal_symbol_and_objfile): Update.
9056 (prim_record_minimal_symbol_full): Update.
9057 (compare_minimal_symbols): Update.
9058 (compact_minimal_symbols): Update.
9059 (build_minimal_symbol_hash_tables): Update.
9060 (install_minimal_symbols): Update.
9061 (terminate_minimal_symbol_table): Update.
9062 (find_solib_trampoline_target): Update.
9063 (minimal_symbol_upper_bound): Update.
9064 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9065 * mips-tdep.c (mips_stub_frame_sniffer): Update.
9066 (mips_skip_pic_trampoline_code): Update.
9067 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
9068 * objc-lang.c (selectors_info): Update.
9069 (classes_info): Update.
9070 (find_methods): Update.
9071 (find_imps): Update.
9072 (find_objc_msgsend): Update.
9073 * objfiles.c (objfile_relocate1): Update.
9074 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
9075 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9076 * p-valprint.c (pascal_val_print): Update.
9077 * parse.c (write_exp_msymbol): Update.
9078 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
9079 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
9080 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9081 * printcmd.c (build_address_symbolic): Update.
9082 (sym_info): Update.
9083 (address_info): Update.
9084 * proc-service.c (ps_pglobal_lookup): Update.
9085 * psymtab.c (find_pc_sect_psymtab_closer): Update.
9086 (find_pc_sect_psymtab): Update.
9087 * python/py-framefilter.c (py_print_frame): Update.
9088 * ravenscar-thread.c (get_running_thread_id): Update.
9089 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
9090 Update.
9091 * remote.c (remote_check_symbols): Update.
9092 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
9093 (rs6000_skip_trampoline_code): Update.
9094 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
9095 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9096 * solib-dsbt.c (lm_base): Update.
9097 * solib-frv.c (lm_base): Update.
9098 (main_got): Update.
9099 * solib-irix.c (locate_base): Update.
9100 * solib-som.c (som_solib_create_inferior_hook): Update.
9101 (som_solib_desire_dynamic_linker_symbols): Update.
9102 (link_map_start): Update.
9103 * solib-spu.c (spu_enable_break): Update.
9104 (ocl_enable_break): Update.
9105 * solib-svr4.c (elf_locate_base): Update.
9106 (enable_break): Update.
9107 * spu-tdep.c (spu_get_overlay_table): Update.
9108 (spu_catch_start): Update.
9109 (flush_ea_cache): Update.
9110 * stabsread.c (define_symbol): Update.
9111 (scan_file_globals): Update.
9112 * stack.c (find_frame_funname): Update.
9113 (frame_info): Update.
9114 * symfile.c (simple_read_overlay_table): Update.
9115 (simple_overlay_update): Update.
9116 * symmisc.c (dump_msymbols): Update.
9117 * symtab.c (fixup_section): Update.
9118 (find_pc_sect_line): Update.
9119 (skip_prologue_sal): Update.
9120 (search_symbols): Update.
9121 (print_msymbol_info): Update.
9122 (rbreak_command): Update.
9123 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
9124 (completion_list_objc_symbol): Update.
9125 (default_make_symbol_completion_list_break_on): Update.
9126 * tracepoint.c (scope_info): Update.
9127 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
9128 (tui_get_begin_asm_address): Update.
9129 * valops.c (find_function_in_inferior): Update.
9130 * value.c (value_static_field): Update.
9131 (value_fn_field): Update.
9132
50e65b17
TT
91332014-02-26 Tom Tromey <tromey@redhat.com>
9134
9135 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
9136 bound minimal symbols. Move code that knows about minsym
9137 table layout...
9138 * minsyms.c (minimal_symbol_upper_bound): ... here. New
9139 function.
9140 * minsyms.h (minimal_symbol_upper_bound): Declare.
9141 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
9142 minimal_symbol_upper_bound.
9143
1b588015
JB
91442014-02-27 Joel Brobecker <brobecker@adacore.com>
9145
9146 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
9147 Use the type's name if its basic type does not have a tag.
9148
dbb9c2b1
JB
91492014-02-27 Joel Brobecker <brobecker@adacore.com>
9150
9151 * dwarf2read.c (read_subrange_type): Add comment.
9152
55426c9d
JB
91532014-02-27 Joel Brobecker <brobecker@adacore.com>
9154
9155 * dwarf2read.c (update_enumeration_type_from_children): New
9156 function, mostly extracted from process_structure_scope.
9157 (read_enumeration_type): Call update_enumeration_type_from_children.
9158 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
9159 and flag_flag_enum fields.
9160
f2fce0ca
PA
91612014-02-26 Pedro Alves <palves@redhat.com>
9162
9163 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
9164 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
9165 to_xfer_partial method.
9166
7a44e40e
PA
91672014-02-26 Pedro Alves <palves@redhat.com>
9168
9169 * target.c (complete_target_initialization): Don't install
9170 default_xfer_partial as to_xfer_partial hook.
9171 (nomemory): Delete.
9172 (update_current_target): Don't INHERIT nor de_fault
9173 deprecated_xfer_memory. Delete de_fault macro.
9174 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
9175 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
9176 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
9177 field.
9178
bd265cd0
PA
91792014-02-26 Pedro Alves <palves@redhat.com>
9180
9181 * go32-nat.c (my_write_child): New function.
9182 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
9183 (go32_xfer_partial): New function.
9184 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
9185 Instead install a to_xfer_partial hook.
9186
9d46c4e5
PA
91872014-02-26 Pedro Alves <palves@redhat.com>
9188
9189 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
9190 to_xfer_partial helper. Rewrite.
9191 (procfs_xfer_partial): New function.
9192 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
9193 Install a to_xfer_partial hook.
9194
a1583b1f
PA
91952014-02-26 Pedro Alves <palves@redhat.com>
9196
9197 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
9198 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
9199 (m32r_xfer_partial): New function.
9200 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
9201 Install a to_xfer_partial hook.
9202
6df1b29f
PA
92032014-02-26 Pedro Alves <palves@redhat.com>
9204
9205 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
9206 helper.
9207 (mips_xfer_partial): New function.
9208 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
9209 hook. Install a to_xfer_partial hook.
9210
dc53a7ad
JB
92112014-02-26 Joel Brobecker <brobecker@adacore.com>
9212
9213 * gdbtypes.h (create_array_type_with_stride): Add declaration.
9214 * gdbtypes.c (create_array_type_with_stride): New function,
9215 renaming create_array_type, but with an added parameter
9216 called "bit_stride".
9217 (create_array_type): Re-implement using
9218 create_array_type_with_stride.
9219 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
9220 and DW_AT_bit_stride attributes.
9221
12ab52e9
PA
92222014-02-26 Pedro Alves <palves@redhat.com>
9223
9224 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
9225 task-specific breakpoints.
9226
d16461ae
PA
92272014-02-25 Pedro Alves <palves@redhat.com>
9228
9229 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
9230 handling of object == TARGET_OBJECT_UNWIND_TABLE.
9231
a8b16220
SS
92322014-02-25 Stan Shebs <stan@codesourcery.com>
9233
9234 * defs.h: Annotate comments for Doxygen.
9235
b9e795ee
TT
92362014-02-25 Tom Tromey <tromey@redhat.com>
9237
9238 * target.h (target_ignore): Don't declare.
9239 * target.c (target_ignore): Remove.
9240
849c862e
JK
92412014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
9242
9243 PR gdb/16626
9244 * auto-load.c (auto_load_objfile_script_1): Change filename to
9245 debugfile.
9246
475109d8
JB
92472014-02-25 Joel Brobecker <brobecker@adacore.com>
9248
9249 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
9250 documentation. Adjust prototype to match the target_ops
9251 to_xfer_partial method. Adjust implementation accordingly.
9252
e186c3bd
HZ
92532014-02-25 Hui Zhu <hui@codesourcery.com>
9254
9255 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
9256 to_traceframe_info.
9257
6d451942
KB
92582014-02-25 Kevin Buettner <kevinb@redhat.com>
9259
041ab8b4 9260 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
6d451942
KB
9261 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
9262 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
9263 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
9264 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
9265 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
9266 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
9267 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
9268 New constants.
9269 (rl78_register_type): Use a data pointer type for SP and
9270 new pseudo registers mentioned above. Use a 16 bit integer
9271 type for all other register pairs.
9272 (rl78_register_name, rl78_g10_register_name): Update for
9273 new pseudo registers.
9274 (rl78_pseudo_register_read): Likewise.
9275 (rl78_pseudo_register_write): Likewise.
9276 (rl78_dwarf_reg_to_regnum): Return register numbers representing
9277 to the newly added pseudo registers.
9278
eddf0bae
DE
92792014-02-24 Doug Evans <dje@google.com>
9280
9281 * value.c (record_latest_value): Fix comment.
9282 * printcmd.c (print_command_1): Remove code to handle -1 return from
9283 record_latest_value.
9284
e96027e0
PA
92852014-02-24 Pedro Alves <palves@redhat.com>
9286
9287 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
9288 deprecated_xfer_memory hook.
9289 (procfs_xfer_partial): Call procfs_xfer_memory instead
9290 of the deprecated_xfer_memory target hook.
9291 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
9292 helper.
9293
0837c976
YZ
92942014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
9295
9296 * windows-nat.c (windows_xfer_shared_libraries): Return
9297 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
9298 requested object is TARGET_OBJECT_LIBRARIES.
9299
bc113b4e
YQ
93002014-02-24 Yao Qi <yao@codesourcery.com>
9301
9302 * target.h (enum target_xfer_status)
9303 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
9304 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
9305 explicitly. New.
9306 * corefile.c (memory_error_message): User updated.
9307 * exec.c (section_table_read_available_memory): Likewise.
9308 * record-btrace.c (record_btrace_xfer_partial): Likewise.
9309 * target.c (target_xfer_status_to_string): Likewise.
9310 (raw_memory_xfer_partial): Likewise.
9311 (memory_xfer_partial_1, target_xfer_partial): Likewise.
9312 * valops.c (read_value_memory): Likewise.
9313 * exec.h: Update comments.
9314
01cb8804
YQ
93152014-02-24 Yao Qi <yao@codesourcery.com>
9316
9317 * target.c (target_xfer_status_to_string): Rename argument err
9318 to status.
9319 * target.h (target_xfer_status_to_string): Update declaration.
9320 Replace target_xfer_error_to_string with
9321 target_xfer_status_to_string in comment.
9322
93063aa6
YQ
93232014-02-24 Yao Qi <yao@codesourcery.com>
9324
9325 * mips-linux-nat.c (super_close): Update its type.
9326 (mips_linux_close): Pass 'self' to super_close.
9327
5c328c05
YQ
93282014-02-24 Yao Qi <yao@codesourcery.com>
9329
9330 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
9331 * corefile.c (read_memory): Adjusted.
9332 * target.c (target_write_with_progress): Adjusted.
9333
f73023dd
YQ
93342014-02-23 Yao Qi <yao@codesourcery.com>
9335
9336 Revert two patches:
9337
9338 2013-10-25 Yao Qi <yao@codesourcery.com>
9339
9340 * remote.c (remote_traceframe_info): Return early if
9341 traceframe is not selected.
9342
9343 2013-07-19 Yao Qi <yao@codesourcery.com>
9344
9345 * target.c (update_current_target): Change the default action
9346 of 'to_traceframe_info' from tcomplain to return_zero.
9347 * target.h (struct target_ops) <to_traceframe_info>: Add more
9348 comments.
9349
5a2eb0ef
YQ
93502014-02-23 Yao Qi <yao@codesourcery.com>
9351
9352 * valops.c (read_value_memory): Rewrite it. Call
9353 target_xfer_partial in a loop.
9354 * exec.h (section_table_available_memory): Remove declaration.
9355 Move comments to ...
9356 * exec.c (section_table_available_memory): ... here. Make it
9357 static.
9358
1ee79381
YQ
93592014-02-23 Yao Qi <yao@codesourcery.com>
9360
9361 * exec.c (section_table_read_available_memory): New function.
9362 * exec.h (section_table_read_available_memory): Declare.
9363 * ctf.c (ctf_xfer_partial): Call
9364 section_table_read_available_memory.
9365 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9366
1ca49d37
YQ
93672014-02-23 Yao Qi <yao@codesourcery.com>
9368
9369 * ctf.c (ctf_xfer_partial): Move code to ...
9370 * exec.c (exec_read_partial_read_only): ... it. New function.
9371 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9372 * tracefile.c: Include "exec.h".
9373 * exec.h (exec_read_partial_read_only): Declare.
9374
a283690e
YQ
93752014-02-23 Yao Qi <yao@codesourcery.com>
9376
9377 * tracefile-tfile.c (tfile_has_all_memory): Remove.
9378 (tfile_has_memory): Remove.
9379 (init_tfile_ops): Don't set fields to_has_all_memory and
9380 to_has_memory of tfile_ops.
9381 * tracefile.c (tracefile_has_all_memory): New function.
9382 (tracefile_has_memory): New function.
9383 (init_tracefile_ops): Initialize fields to_has_all_memory and
9384 to_has_memory of 'ops'.
9385
12e03cd0
YQ
93862014-02-23 Yao Qi <yao@codesourcery.com>
9387
9388 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
9389 (ctf_thread_alive, ctf_get_trace_status): Remove.
9390 (init_ctf_ops): Don't set some fields of ctf_ops. Call
9391 init_tracefile_ops.
9392 * tracefile-tfile.c (tfile_get_trace_status): Remove.
9393 (tfile_has_stack, tfile_has_registers): Remove.
9394 (tfile_thread_alive): Remove.
9395 (init_tfile_ops): Don't set some fields of tfile_ops. Call
9396 init_tracefile_ops.
9397 * tracefile.c (tracefile_has_stack): New function.
9398 (tracefile_has_registers): New function.
9399 (tracefile_thread_alive): New function.
9400 (tracefile_get_trace_status): New function.
9401 (init_tracefile_ops): New function.
9402 * tracefile.h (init_tracefile_ops): Declare.
9403
11395323
YQ
94042014-02-23 Yao Qi <yao@codesourcery.com>
9405
9406 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
9407 (O_LARGEFILE): Likewise.
9408 (tfile_ops): Likewise.
9409 (TRACE_HEADER_SIZE): Likewise.
9410 (trace_fd, trace_frames_offset, cur_offset): Likewise.
9411 (cur_data_size): Likewise.
9412 (tfile_read, tfile_open, tfile_interp_line): Likewise.
9413 (tfile_close, tfile_files_info): Likewise.
9414 (tfile_get_trace_status): Likewise.
9415 (tfile_get_tracepoint_status): Likewise.
9416 (tfile_get_traceframe_address): Likewise.
9417 (tfile_trace_find, match_blocktype): Likewise.
9418 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
9419 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
9420 (tfile_get_trace_state_variable_value): Likewise.
9421 (tfile_has_all_memory, tfile_has_memory): Likewise.
9422 (tfile_has_stack, tfile_has_registers): Likewise.
9423 (tfile_thread_alive, build_traceframe_info): Likewise.
9424 (tfile_traceframe_info, init_tfile_ops): Likewise.
9425 (_initialize_tracepoint): Don't call init_tfile_ops
9426 and add_target_with_completer.
9427 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
9428 exec.h, completer.h and filenames.h.
9429 (_initialize_tracefile_tfile): New function.
9430
7951c4eb
YQ
94312014-02-23 Yao Qi <yao@codesourcery.com>
9432
9433 * Makefile.in (REMOTE_OBS): Append tracefile.o and
9434 tracefile-tfile.o.
9435 (HFILES_NO_SRCDIR): Add tracefile.h.
9436 * ctf.c: Include "tracefile.h".
9437 * tracefile.h: New file.
9438 * tracefile.c: New file
9439 * tracefile-tfile.c: New file.
9440 * tracepoint.c: Include "tracefile.h".
9441 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
9442 (stop_reason_names): Add const.
9443 (trace_file_writer_xfree): Move it to tracefile.c.
9444 (trace_save, trace_save_command, trace_save_tfile): Likewise.
9445 (trace_save_ctf): Likewise.
9446 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
9447 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
9448 (tfile_write_header, tfile_write_regblock_type): Likewise.
9449 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
9450 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
9451 (tfile_write_raw_data, tfile_end): Likewise.
9452 (tfile_trace_file_writer_new): Likewise.
9453 (free_uploaded_tp): Make it extern.
9454 (free_uploaded_tsv): Make it extern.
9455 (_initialize_tracepoint): Move code to register command 'tsave'
9456 to tracefile.c.
9457 * tracepoint.h (stop_reason_names): Declare.
9458 (struct trace_frame_write_ops): Move it to tracefile.h.
9459 (struct trace_file_write_ops): Likewise.
9460 (struct trace_file_writer): Likewise.
9461 (free_uploaded_tsvs, free_uploaded_tps): Declare.
9462
184cd072
JK
94632014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9464
9465 PR gdb/16594
9466 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
9467 process name.
9468 (get_cores_used_by_process): New parameter num_cores, use it.
9469 (linux_xfer_osdata_processes): Pass num_cores to it.
9470 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
9471 process name.
9472
c63528fc
AK
94732014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
9474
9475 * target.c (memory_xfer_partial): Fix length arg in call to
9476 breakpoint_xfer_memory.
9477
d7b30f67
SDJ
94782014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9479
9480 PR tdep/16397
9481 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
9482 number comes after the + or - signs. Adjust length of register
9483 name to be extracted.
9484
8838afaf
TT
94852014-02-20 Tom Tromey <tromey@redhat.com>
9486
9487 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
9488 (ada_varobj_ops): Mark "extern".
9489
05227d14
TT
94902014-02-20 Tom Tromey <tromey@redhat.com>
9491
9492 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
9493
1254eefc
DE
94942014-02-20 Doug Evans <xdje42@gmail.com>
9495
9496 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
9497 All callers updated.
9498 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
9499 All callers updated.
9500 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
9501 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
9502
adde2bff
DE
95032014-02-20 lin zuojian <manjian2006@gmail.com>
9504 Joel Brobecker <brobecker@adacore.com>
9505 Doug Evans <xdje42@gmail.com>
9506
9507 PR symtab/16581
9508 * dwarf2read.c (struct die_info): New member in_process.
9509 (reset_die_in_process): New function.
9510 (process_die): Set it at the start, reset when returning.
9511 (inherit_abstract_dies): Only call process_die if origin_child_die
9512 not already being processed.
9513
3be75f87
JB
95142014-02-20 Joel Brobecker <brobecker@adacore.com>
9515
9516 * windows-nat.c (handle_unload_dll): Add function documentation.
9517 (do_initial_windows_stuff): Add comment explaining why we wait
9518 until after inferior initialization has finished before
9519 processing all DLLs.
9520
47f7ffdb
JB
95212014-02-20 Joel Brobecker <brobecker@adacore.com>
9522
9523 * windows-nat.c (get_module_name): Delete.
9524 (windows_get_exec_module_filename): New function, mostly
9525 inspired from get_module_name.
9526 (windows_pid_to_exec_file): Replace call to get_module_name
9527 by call to windows_get_exec_module_filename.
9528
1cd9feab
JB
95292014-02-20 Joel Brobecker <brobecker@adacore.com>
9530
9531 * windows-nat.c (handle_load_dll): Rewrite this function's
9532 introductory comment. Remove code using get_module_name
9533 to get the DLL's name.
9534
ea39ad35
JB
95352014-02-20 Joel Brobecker <brobecker@adacore.com>
9536
9537 * windows-nat.c (get_windows_debug_event): Ignore
9538 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
9539 if windows_initialization_done == 0.
9540 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
9541 Adjust implementation to always load all DLLs.
9542 (do_initial_windows_stuff): Replace call to
9543 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
9544
95060284
JB
95452014-02-20 Joel Brobecker <brobecker@adacore.com>
9546
9547 * windows-nat.c (_initialize_windows_nat): Deprecate the
9548 "dll-symbols" command. Turn the "add-shared-symbol-files"
9549 and "assf" aliases into commands, and deprecate them as well.
9550 * NEWS: Add entry explaining that "dll-symbols" and its two
9551 aliases are now deprecated.
9552
8d4fdb12
JB
95532014-02-20 Joel Brobecker <brobecker@adacore.com>
9554
9555 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
9556 new-line in debug string. Remove trailing spaces.
9557
1b281443
SS
95582014-02-19 Stan Shebs <stan@codesourcery.com>
9559
9560 * darwin-nat.c (darwin_xfer_partial): Fix return type.
9561
f7bd0f78
SC
95622014-02-19 Siva Chandra Reddy <sivachandra@google.com>
9563
9564 * NEWS: Add entry for the new feature
9565 * python/py-value.c (valpy_binop): Call value_x_binop for struct
9566 and class values.
9567
399ebc3d
SS
95682014-02-19 Stan Shebs <stan@codesourcery.com>
9569
9570 * MAINTAINERS: List Yao Qi as nios2 maintainer.
9571
c658158d
PA
95722014-02-19 Pedro Alves <palves@redhat.com>
9573
9574 * common/ptid.h (struct ptid): Mention that process_stratum
9575 targets should prefer ptid.lwp.
9576
ba348170
PA
95772014-02-19 Pedro Alves <palves@redhat.com>
9578
9579 * remote.c (remote_thread_alive, write_ptid, read_ptid)
9580 (read_ptid, remote_newthread_step, remote_threads_extra_info)
9581 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
9582 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
9583 store remote thread ids rather than ptid.tid.
9584 (_initialize_remote): Adjust.
9585
ac01945b
TT
95862014-02-19 Tom Tromey <tromey@redhat.com>
9587
9588 * target.c (target_get_unwinder): Rewrite.
9589 (target_get_tailcall_unwinder): Rewrite.
9590 * record-btrace.c (record_btrace_to_get_unwinder): New function.
9591 (record_btrace_to_get_tailcall_unwinder): New function.
9592 (init_record_btrace_ops): Update.
9593 * target.h (struct target_ops) <to_get_unwinder,
9594 to_get_tailcall_unwinder>: Now function pointers. Use
9595 TARGET_DEFAULT_RETURN.
9596
8476dc92
TT
95972014-02-19 Tom Tromey <tromey@redhat.com>
9598
9599 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
9600 argument.
9601 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
9602
c0eca49f
TT
96032014-02-19 Tom Tromey <tromey@redhat.com>
9604
9605 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
9606 directly.
9607 * target-delegates.c: Rebuild.
9608 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
9609 TARGET_DEFAULT_FUNC.
9610 * target.c (default_target_decr_pc_after_break): Rename from
9611 forward_target_decr_pc_after_break. Simplify.
9612 (target_decr_pc_after_break): Rely on delegation.
9613
596b6b39
TT
96142014-02-19 Tom Tromey <tromey@redhat.com>
9615
9616 * target.c (update_current_target): Do not INHERIT to_doc or
9617 to_magic. Do not de_fault to_open or to_close.
9618
b427c1bc
TT
96192014-02-19 Tom Tromey <tromey@redhat.com>
9620
9621 * gcore.h (objfile_find_memory_regions): Declare.
9622 * gcore.c (objfile_find_memory_regions): No longer static. Add
9623 "self" argument.
9624 (_initialize_gcore): Don't call exec_set_find_memory_regions.
9625 * exec.c: Include gcore.h.
9626 (exec_set_find_memory_regions): Remove.
9627 (exec_find_memory_regions): Remove.
9628 (exec_do_find_memory_regions): Remove.
9629 (init_exec_ops): Update.
9630 * defs.h (exec_set_find_memory_regions): Remove.
9631
9b144037
TT
96322014-02-19 Tom Tromey <tromey@redhat.com>
9633
9634 * target-delegates.c: Rebuild.
9635 * target.h (struct target_ops) <to_extra_thread_info,
9636 to_thread_name, to_pid_to_exec_file, to_get_section_table,
9637 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
9638 not 0, in TARGET_DEFAULT_RETURN.
9639
555bbdeb
TT
96402014-02-19 Tom Tromey <tromey@redhat.com>
9641
9642 * target.c (complete_target_initialization): Remove casts. Use
9643 return_zero_has_execution.
9644 (return_zero): Add "ignore" argument.
9645 (return_zero_has_execution): New function.
9646 (init_dummy_target): Remove casts. Use
9647 return_zero_has_execution.
9648
be4ddd36
TT
96492014-02-19 Tom Tromey <tromey@redhat.com>
9650
9651 * target.c (update_current_target): Update comments. Do not
9652 INHERIT to_stratum.
9653
2117c711
TT
96542014-02-19 Tom Tromey <tromey@redhat.com>
9655
9656 * arm-linux-nat.c (arm_linux_read_description): Delegate when
9657 needed.
9658 * corelow.c (core_read_description): Delegate when needed.
9659 * remote.c (remote_read_description): Delegate when needed.
9660 * target-delegates.c: Rebuild.
9661 * target.c (target_read_description): Rewrite.
9662 * target.h (struct target_ops) <to_read_description>: Update
9663 comment. Use TARGET_DEFAULT_RETURN.
9664
e88ef65c
TT
96652014-02-19 Tom Tromey <tromey@redhat.com>
9666
9667 * target-delegates.c: Rebuild.
9668 * target.c (update_current_target): Don't inherit or default
9669 to_can_run.
9670 (find_default_run_target): Check against delegate_can_run.
9671 * target.h (struct target_ops) <to_can_run>: Use
9672 TARGET_DEFAULT_RETURN.
9673
86a0854a
TT
96742014-02-19 Tom Tromey <tromey@redhat.com>
9675
9676 * target-delegates.c: Rebuild.
9677 * target.c (target_disconnect): Unconditionally delegate.
9678 * target.h (struct target_ops) <to_disconnect>: Use
9679 TARGET_DEFAULT_NORETURN.
9680
ee97f592
TT
96812014-02-19 Tom Tromey <tromey@redhat.com>
9682
9683 * record.c (record_stop): Unconditionally delegate.
9684 * target-delegates.c: Rebuild.
9685 * target.c (target_stop_recording): Unconditionally delegate.
9686 * target.h (struct target_ops) <to_stop_recording>: Use
9687 TARGET_DEFAULT_IGNORE.
9688
6dc7fcf4
TT
96892014-02-19 Tom Tromey <tromey@redhat.com>
9690
9691 * target-delegates.c: Rebuild.
9692 * target.c (target_enable_btrace): Unconditionally delegate.
9693 * target.h (struct target_ops) <to_enable_btrace>: Use
9694 TARGET_DEFAULT_NORETURN.
9695
eb5b20d4
TT
96962014-02-19 Tom Tromey <tromey@redhat.com>
9697
9698 * target-delegates.c: Rebuild.
9699 * target.c (target_read_btrace): Unconditionally delegate.
9700 * target.h (struct target_ops) <to_read_btrace>: Use
9701 TARGET_DEFAULT_NORETURN.
9702
9ace480d
TT
97032014-02-19 Tom Tromey <tromey@redhat.com>
9704
9705 * target-delegates.c: Rebuild.
9706 * target.c (target_teardown_btrace): Unconditionally delegate.
9707 * target.h (struct target_ops) <to_teardown_btrace>: Use
9708 TARGET_DEFAULT_NORETURN.
9709
8dc292d3
TT
97102014-02-19 Tom Tromey <tromey@redhat.com>
9711
9712 * target-delegates.c: Rebuild.
9713 * target.c (target_disable_btrace): Unconditionally delegate.
9714 * target.h (struct target_ops) <to_disable_btrace>: Use
9715 TARGET_DEFAULT_NORETURN.
9716
58a5184e
TT
97172014-02-19 Tom Tromey <tromey@redhat.com>
9718
9719 * target-delegates.c: Rebuild.
9720 * target.c (default_search_memory): New function.
9721 (simple_search_memory): Update comment.
9722 (target_search_memory): Unconditionally delegate.
9723 * target.h (struct target_ops) <to_search_memory>: Use
9724 TARGET_DEFAULT_FUNC.
9725
8de71aab
TT
97262014-02-19 Tom Tromey <tromey@redhat.com>
9727
9728 * auxv.c (default_auxv_parse): No longer static.
9729 (target_auxv_parse): Unconditionally delegate.
9730 * auxv.h (default_auxv_parse): Declare.
9731 * target-delegates.c: Rebuild.
9732 * target.c: Include auxv.h.
9733 * target.h (struct target_ops) <to_auxv_parse>: Use
9734 TARGET_DEFAULT_FUNC.
9735
6b2c5a57
TT
97362014-02-19 Tom Tromey <tromey@redhat.com>
9737
9738 * target-delegates.c: Rebuild.
9739 * target.c (target_memory_map): Unconditionally delegate.
9740 * target.h (struct target_ops) <to_memory_map>: Use
9741 TARGET_DEFAULT_RETURN.
9742
cbffc065
TT
97432014-02-19 Tom Tromey <tromey@redhat.com>
9744
9745 * target-delegates.c: Rebuild.
9746 * target.c (target_thread_alive): Unconditionally delegate.
9747 * target.h (struct target_ops) <to_thread_alive>: Use
9748 TARGET_DEFAULT_RETURN.
9749
f09e2107
TT
97502014-02-19 Tom Tromey <tromey@redhat.com>
9751
9752 * target-delegates.c: Rebuild.
9753 * target.c (target_save_record): Unconditionally delegate.
9754 * target.h (struct target_ops) <to_save_record>: Use
9755 TARGET_DEFAULT_NORETURN.
9756
07366925
TT
97572014-02-19 Tom Tromey <tromey@redhat.com>
9758
9759 * target-delegates.c: Rebuild.
9760 * target.c (target_delete_record): Unconditionally delegate.
9761 * target.h (struct target_ops) <to_delete_record>: Use
9762 TARGET_DEFAULT_NORETURN.
9763
dd2e9d25
TT
97642014-02-19 Tom Tromey <tromey@redhat.com>
9765
9766 * target-delegates.c: Rebuild.
9767 * target.c (target_record_is_replaying): Unconditionally
9768 delegate.
9769 * target.h (struct target_ops) <to_record_is_replaying>: Use
9770 TARGET_DEFAULT_RETURN.
9771
671e76cc
TT
97722014-02-19 Tom Tromey <tromey@redhat.com>
9773
9774 * target-delegates.c: Rebuild.
9775 * target.c (target_goto_record_begin): Unconditionally delegate.
9776 * target.h (struct target_ops) <to_goto_record_begin>: Use
9777 TARGET_DEFAULT_NORETURN.
9778
e9179bb3
TT
97792014-02-19 Tom Tromey <tromey@redhat.com>
9780
9781 * target-delegates.c: Rebuild.
9782 * target.c (target_goto_record_end): Unconditionally delegate.
9783 * target.h (struct target_ops) <to_goto_record_end>: Use
9784 TARGET_DEFAULT_NORETURN.
9785
05969c84
TT
97862014-02-19 Tom Tromey <tromey@redhat.com>
9787
9788 * target-delegates.c: Rebuild.
9789 * target.c (target_goto_record): Unconditionally delegate.
9790 * target.h (struct target_ops) <to_goto_record>: Use
9791 TARGET_DEFAULT_NORETURN.
9792
3679abfa
TT
97932014-02-19 Tom Tromey <tromey@redhat.com>
9794
9795 * target-delegates.c: Rebuild.
9796 * target.c (target_insn_history): Unconditionally delegate.
9797 * target.h (struct target_ops) <to_insn_history>: Use
9798 TARGET_DEFAULT_NORETURN.
9799
8444ab58
TT
98002014-02-19 Tom Tromey <tromey@redhat.com>
9801
9802 * target-delegates.c: Rebuild.
9803 * target.c (target_insn_history_from): Unconditionally delegate.
9804 * target.h (struct target_ops) <to_insn_history_from>: Use
9805 TARGET_DEFAULT_NORETURN.
9806
c29302cc
TT
98072014-02-19 Tom Tromey <tromey@redhat.com>
9808
9809 * target-delegates.c: Rebuild.
9810 * target.c (target_insn_history_range): Unconditionally delegate.
9811 * target.h (struct target_ops) <to_insn_history_range>: Use
9812 TARGET_DEFAULT_NORETURN.
9813
170049d4
TT
98142014-02-19 Tom Tromey <tromey@redhat.com>
9815
9816 * target-delegates.c: Rebuild.
9817 * target.c (target_call_history): Unconditionally delegate.
9818 * target.h (struct target_ops) <to_call_history>: Use
9819 TARGET_DEFAULT_NORETURN.
9820
16fc27d6
TT
98212014-02-19 Tom Tromey <tromey@redhat.com>
9822
9823 * target-delegates.c: Rebuild.
9824 * target.c (target_call_history_from): Unconditionally delegate.
9825 * target.h (struct target_ops) <to_call_history_from>: Use
9826 TARGET_DEFAULT_NORETURN.
9827
115d9817
TT
98282014-02-19 Tom Tromey <tromey@redhat.com>
9829
9830 * target-delegates.c: Rebuild.
9831 * target.c (target_call_history_range): Unconditionally delegate.
9832 * target.h (struct target_ops) <to_call_history_range>: Use
9833 TARGET_DEFAULT_NORETURN.
9834
eb276a6b
TT
98352014-02-19 Tom Tromey <tromey@redhat.com>
9836
9837 * target-delegates.c: Rebuild.
9838 * target.c (target_verify_memory): Unconditionally delegate.
9839 * target.h (struct target_ops) <to_verify_memory>: Use
9840 TARGET_DEFAULT_NORETURN.
9841
9e538d0d
TT
98422014-02-19 Tom Tromey <tromey@redhat.com>
9843
9844 * target-delegates.c: Rebuild.
9845 * target.c (target_core_of_thread): Unconditionally delegate.
9846 * target.h (struct target_ops) <to_core_of_thread>: Use
9847 TARGET_DEFAULT_RETURN.
9848
f6fb2925
TT
98492014-02-19 Tom Tromey <tromey@redhat.com>
9850
9851 * target-delegates.c: Rebuild.
9852 * target.c (target_flash_done): Unconditionally delegate.
9853 * target.h (struct target_ops) <to_flash_done>: Use
9854 TARGET_DEFAULT_NORETURN.
9855
e8a6c6ac
TT
98562014-02-19 Tom Tromey <tromey@redhat.com>
9857
9858 * target-delegates.c: Rebuild.
9859 * target.c (target_flash_erase): Unconditionally delegate.
9860 * target.h (struct target_ops) <to_flash_erase>: Use
9861 TARGET_DEFAULT_NORETURN.
9862
7e35c012
TT
98632014-02-19 Tom Tromey <tromey@redhat.com>
9864
9865 * target-delegates.c: Rebuild.
9866 * target.c (target_get_section_table): Unconditionally delegate.
9867 * target.h (struct target_ops) <to_get_section_table>: Use
9868 TARGET_DEFAULT_RETURN.
9869
770234d3
TT
98702014-02-19 Tom Tromey <tromey@redhat.com>
9871
9872 * target-delegates.c: Rebuild.
9873 * target.c (target_pid_to_str): Unconditionally delegate.
9874 (init_dummy_target): Don't initialize to_pid_to_str.
9875 (default_pid_to_str): Rename from dummy_pid_to_str.
9876 * target.h (struct target_ops) <to_pid_to_str>: Use
9877 TARGET_DEFAULT_FUNC.
9878
09b0dc2b
TT
98792014-02-19 Tom Tromey <tromey@redhat.com>
9880
9881 * target-delegates.c: Rebuild.
9882 * target.c (target_find_new_threads): Unconditionally delegate.
9883 * target.h (struct target_ops) <to_find_new_threads>: Use
9884 TARGET_DEFAULT_RETURN.
9885
7d4f8efa
TT
98862014-02-19 Tom Tromey <tromey@redhat.com>
9887
9888 * target-delegates.c: Rebuild.
9889 * target.c (target_program_signals): Unconditionally delegate.
9890 * target.h (struct target_ops) <to_program_signals>: Use
9891 TARGET_DEFAULT_IGNORE.
9892
035cad7f
TT
98932014-02-19 Tom Tromey <tromey@redhat.com>
9894
9895 * target-delegates.c: Rebuild.
9896 * target.c (target_pass_signals): Unconditionally delegate.
9897 * target.h (struct target_ops) <to_pass_signals>: Use
9898 TARGET_DEFAULT_IGNORE.
9899
8d657035
TT
99002014-02-19 Tom Tromey <tromey@redhat.com>
9901
9902 * target-delegates.c: Rebuild.
9903 * target.c (default_mourn_inferior): New function.
9904 (target_mourn_inferior): Unconditionally delegate.
9905 * target.h (struct target_ops) <to_mourn_inferior>: Use
9906 TARGET_DEFAULT_FUNC.
9907
098dba18
TT
99082014-02-19 Tom Tromey <tromey@redhat.com>
9909
9910 * target-delegates.c: Rebuild.
9911 * target.c (default_follow_fork): New function.
9912 (target_follow_fork): Unconditionally delegate.
9913 * target.h (struct target_ops) <to_follow_fork>: Use
9914 TARGET_DEFAULT_FUNC.
9915
423a4807
TT
99162014-02-19 Tom Tromey <tromey@redhat.com>
9917
9918 * target-delegates.c: Rebuild.
9919 * target.c (target_kill): Unconditionally delegate.
9920 * target.h (struct target_ops) <to_kill>: Use
9921 TARGET_DEFAULT_NORETURN.
9922
6c7e5e5c
TT
99232014-02-19 Tom Tromey <tromey@redhat.com>
9924
9925 * target-delegates.c: Rebuild.
9926 * target.c (target_masked_watch_num_registers): Unconditionally
9927 delegate.
9928 * target.h (struct target_ops) <to_masked_watch_num_registers>:
9929 Use TARGET_DEFAULT_RETURN.
9930
8b1c364c
TT
99312014-02-19 Tom Tromey <tromey@redhat.com>
9932
9933 * target-delegates.c: Rebuild.
9934 * target.c (target_remove_mask_watchpoint): Unconditionally
9935 delegate.
9936 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
9937 TARGET_DEFAULT_RETURN.
9938
cd4ae029
TT
99392014-02-19 Tom Tromey <tromey@redhat.com>
9940
9941 * target-delegates.c: Rebuild.
9942 * target.c (target_insert_mask_watchpoint): Unconditionally
9943 delegate.
9944 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
9945 TARGET_DEFAULT_RETURN.
9946
a134316b
TT
99472014-02-19 Tom Tromey <tromey@redhat.com>
9948
9949 * target-delegates.c: Rebuild.
9950 * target.c (target_ranged_break_num_registers): Unconditionally
9951 delegate.
9952 * target.h (struct target_ops) <to_ranged_break_num_registers>:
9953 Use TARGET_DEFAULT_RETURN.
9954
ad5989bd
TT
99552014-02-19 Tom Tromey <tromey@redhat.com>
9956
9957 * target-delegates.c: Rebuild.
9958 * target.c (target_fetch_registers): Unconditionally delegate.
9959 * target.h (struct target_ops) <to_fetch_registers>: Use
9960 TARGET_DEFAULT_NORETURN.
9961
46ee7e8d
TT
99622014-02-19 Tom Tromey <tromey@redhat.com>
9963
9964 * target-delegates.c: Rebuild.
9965 * target.c (update_current_target): Don't inherit or default
9966 to_stop.
9967 * target.h (struct target_ops) <to_stop>: Use
9968 TARGET_DEFAULT_IGNORE.
9969
843f59ed
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_can_run_breakpoint_commands.
9975 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
9976 Use TARGET_DEFAULT_RETURN.
9977
ccfde2a0
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_supports_evaluation_of_breakpoint_conditions.
9983 * target.h (struct target_ops)
9984 <to_supports_evaluation_of_breakpoint_conditions>: Use
9985 TARGET_DEFAULT_RETURN.
9986
0de91722
TT
99872014-02-19 Tom Tromey <tromey@redhat.com>
9988
9989 * target-delegates.c: Rebuild.
9990 * target.c (update_current_target): Don't inherit or default
9991 to_augmented_libraries_svr4_read.
9992 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
9993 Use TARGET_DEFAULT_RETURN.
9994
9a7d8b48
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_can_use_agent.
10000 * target.h (struct target_ops) <to_can_use_agent>: Use
10001 TARGET_DEFAULT_RETURN.
10002
d9db5b21
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_use_agent.
10008 * target.h (struct target_ops) <to_use_agent>: Use
10009 TARGET_DEFAULT_NORETURN.
10010
92155eeb
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_traceframe_info.
10016 (return_null): Remove.
10017 * target.h (struct target_ops) <to_traceframe_info>: Use
10018 TARGET_DEFAULT_RETURN.
10019
d6522a22
TT
100202014-02-19 Tom Tromey <tromey@redhat.com>
10021
10022 * target-delegates.c: Rebuild.
10023 * target.c (update_current_target): Don't inherit or default
10024 to_static_tracepoint_markers_by_strid.
10025 * target.h (struct target_ops)
10026 <to_static_tracepoint_markers_by_strid>: Use
10027 TARGET_DEFAULT_NORETURN.
10028
4c3e4425
TT
100292014-02-19 Tom Tromey <tromey@redhat.com>
10030
10031 * target-delegates.c: Rebuild.
10032 * target.c (update_current_target): Don't inherit or default
10033 to_static_tracepoint_marker_at.
10034 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
10035 Use TARGET_DEFAULT_RETURN.
10036
dcd6917f
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_set_permissions.
10042 * target.h (struct target_ops) <to_set_permissions>: Use
10043 TARGET_DEFAULT_IGNORE.
10044
22bcceee
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_get_tib_address.
10050 * target.h (struct target_ops) <to_get_tib_address>: Use
10051 TARGET_DEFAULT_NORETURN.
10052
8586ccaa
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_set_trace_notes.
10058 * target.h (struct target_ops) <to_set_trace_notes>: Use
10059 TARGET_DEFAULT_RETURN.
10060
91df8d1d
TT
100612014-02-19 Tom Tromey <tromey@redhat.com>
10062
10063 * target-delegates.c: Rebuild.
10064 * target.c (update_current_target): Don't initialize
10065 to_set_trace_buffer_size.
10066 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
10067 TARGET_DEFAULT_IGNORE.
10068
8d526939
TT
100692014-02-19 Tom Tromey <tromey@redhat.com>
10070
10071 * target-delegates.c: Rebuild.
10072 * target.c (update_current_target): Don't inherit or default
10073 to_set_circular_trace_buffer.
10074 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
10075 TARGET_DEFAULT_IGNORE.
10076
0bcfeddf
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_disconnected_tracing.
10082 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
10083 TARGET_DEFAULT_IGNORE.
10084
9249843f
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_get_min_fast_tracepoint_insn_len.
10090 (return_minus_one): Remove.
10091 * target.h (struct target_ops)
10092 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
10093
ace92e7d
TT
100942014-02-19 Tom Tromey <tromey@redhat.com>
10095
10096 * target-delegates.c: Rebuild.
10097 * target.c (update_current_target): Don't inherit or default
10098 to_get_raw_trace_data.
10099 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
10100 TARGET_DEFAULT_NORETURN.
10101
08120467
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_upload_trace_state_variables.
10107 * target.h (struct target_ops) <to_upload_trace_state_variables>:
10108 Use TARGET_DEFAULT_RETURN.
10109
1e949b00
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_tracepoints.
10115 * target.h (struct target_ops) <to_upload_tracepoints>: Use
10116 TARGET_DEFAULT_RETURN.
10117
a2e6c147
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_save_trace_data.
10123 * target.h (struct target_ops) <to_save_trace_data>: Use
10124 TARGET_DEFAULT_NORETURN.
10125
959bcd0b
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_get_trace_state_variable_value.
10131 * target.h (struct target_ops)
10132 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
10133
afc94e66
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_trace_find.
10139 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
10140
e51c07ea
TT
101412014-02-19 Tom Tromey <tromey@redhat.com>
10142
10143 * target-delegates.c: Rebuild.
10144 * target.c (update_current_target): Don't inherit or default
10145 to_trace_stop.
10146 * target.h (struct target_ops) <to_trace_stop>: Use
10147 TARGET_DEFAULT_NORETURN.
10148
6fea14cd
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_get_tracepoint_status.
10154 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
10155 TARGET_DEFAULT_NORETURN.
10156
4072d4ff
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_trace_status.
10162 * target.h (struct target_ops) <to_get_trace_status>: Use
10163 TARGET_DEFAULT_RETURN.
10164
25da2e80
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_trace_start.
10170 * target.h (struct target_ops) <to_trace_start>: Use
10171 TARGET_DEFAULT_NORETURN.
10172
86dd181d
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_set_readonly_regions.
10178 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
10179 Use TARGET_DEFAULT_NORETURN.
10180
05c41993
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_disable_tracepoint.
10186 * target.h (struct target_ops) <to_disable_tracepoint>: Use
10187 TARGET_DEFAULT_NORETURN.
10188
151f70f1
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_enable_tracepoint.
10194 * target.h (struct target_ops) <to_enable_tracepoint>: Use
10195 TARGET_DEFAULT_NORETURN.
10196
94eb98b9
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_download_trace_state_variable.
10202 * target.h (struct target_ops) <to_download_trace_state_variable>:
10203 Use TARGET_DEFAULT_NORETURN.
10204
719acc4a
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_can_download_tracepoint.
10210 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
10211 TARGET_DEFAULT_RETURN.
10212
9a980a22
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_download_tracepoint.
10218 * target.h (struct target_ops) <to_download_tracepoint>: Use
10219 TARGET_DEFAULT_NORETURN.
10220
5536135b
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_trace_init.
10226 * target.h (struct target_ops) <to_trace_init>: Use
10227 TARGET_DEFAULT_RETURN.
10228
9409d39e
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_supports_string_tracing.
10234 * target.h (struct target_ops) <to_supports_string_tracing>: Use
10235 TARGET_DEFAULT_RETURN.
10236
aab1b22d
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_enable_disable_tracepoint.
10242 * target.h (struct target_ops)
10243 <to_supports_enable_disable_tracepoint>: Use
10244 TARGET_DEFAULT_RETURN.
10245
a7304748
TT
102462014-02-19 Tom Tromey <tromey@redhat.com>
10247
10248 * target-delegates.c: Rebuild.
10249 * target.c (update_current_target): Don't inherit or default
10250 to_supports_multi_process.
10251 * target.h (struct target_ops) <to_supports_multi_process>: Use
10252 TARGET_DEFAULT_RETURN.
10253
4229b31d
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_get_ada_task_ptid.
10259 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
10260 TARGET_DEFAULT_FUNC.
10261
43eba180
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_thread_architecture.
10267 * target.h (struct target_ops) <to_thread_architecture>: Use
10268 TARGET_DEFAULT_FUNC.
10269
fe31bf5b
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_execution_direction.
10275 * target.h (struct target_ops) <to_execution_direction>: Use
10276 TARGET_DEFAULT_FUNC.
10277
53e1cfc7
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_can_execute_reverse.
10283 * target.h (struct target_ops) <to_can_execute_reverse>: Use
10284 TARGET_DEFAULT_RETURN.
10285 (target_can_execute_reverse): Unconditionally delegate.
10286
9bb9d61d
TT
102872014-02-19 Tom Tromey <tromey@redhat.com>
10288
10289 * target-delegates.c: Rebuild.
10290 * target.c (update_current_target): Don't inherit or default
10291 to_goto_bookmark.
10292 (dummy_goto_bookmark): Remove.
10293 (init_dummy_target): Don't inherit or default to_goto_bookmark.
10294 * target.h (struct target_ops) <to_goto_bookmark>: Use
10295 TARGET_DEFAULT_NORETURN.
10296
3dbafbbb
TT
102972014-02-19 Tom Tromey <tromey@redhat.com>
10298
10299 * target-delegates.c: Rebuild.
10300 * target.c (update_current_target): Don't inherit or default
10301 to_get_bookmark.
10302 (dummy_get_bookmark): Remove.
10303 (init_dummy_target): Don't inherit or default to_get_bookmark.
10304 * target.h (struct target_ops) <to_get_bookmark>: Use
10305 TARGET_DEFAULT_NORETURN
10306
16f796b1
TT
103072014-02-19 Tom Tromey <tromey@redhat.com>
10308
10309 * target-delegates.c: Rebuild.
10310 * target.c (update_current_target): Don't inherit or default
10311 to_make_corefile_notes.
10312 (init_dummy_target): Don't initialize to_make_corefile_notes.
10313 * target.h (struct target_ops) <to_make_corefile_notes>: Use
10314 TARGET_DEFAULT_FUNC.
10315
0b5a2719
TT
103162014-02-19 Tom Tromey <tromey@redhat.com>
10317
10318 * target-delegates.c: Rebuild.
10319 * target.c (update_current_target): Don't inherit or default
10320 to_find_memory_regions.
10321 (init_dummy_target): Don't initialize to_find_memory_regions.
10322 * target.h (struct target_ops) <to_find_memory_regions>: Use
10323 TARGET_DEFAULT_FUNC.
10324
d9cb0195
TT
103252014-02-19 Tom Tromey <tromey@redhat.com>
10326
10327 * target-delegates.c: Rebuild.
10328 * target.c (update_current_target): Don't inherit or default
10329 to_log_command.
10330 * target.h (struct target_ops) <to_log_command>: Use
10331 TARGET_DEFAULT_IGNORE.
10332 (target_log_command): Unconditionally delegate.
10333
830ca330
TT
103342014-02-19 Tom Tromey <tromey@redhat.com>
10335
10336 * target-delegates.c: Rebuild.
10337 * target.c (update_current_target): Don't inherit or default
10338 to_pid_to_exec_file.
10339 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
10340 TARGET_DEFAULT_RETURN.
10341
825828fc
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_thread_name.
10347 (target_thread_name): Unconditionally delegate.
10348 * target.h (struct target_ops) <to_thread_name>: Use
10349 TARGET_DEFAULT_RETURN.
10350
4a7e6dda
TT
103512014-02-19 Tom Tromey <tromey@redhat.com>
10352
10353 * target-delegates.c: Rebuild.
10354 * target.c (update_current_target): Don't inherit or default
10355 to_extra_thread_info.
10356 * target.h (struct target_ops) <to_extra_thread_info>: Use
10357 TARGET_DEFAULT_RETURN.
10358
0db88c1d
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_has_exited.
10364 * target.h (struct target_ops) <to_has_exited>: Use
10365 TARGET_DEFAULT_RETURN..
10366
6a9fa051
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_set_syscall_catchpoint.
10372 (return_one): Remove.
10373 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
10374 TARGET_DEFAULT_RETURN.
10375
62f64d7a
TT
103762014-02-19 Tom Tromey <tromey@redhat.com>
10377
10378 * target-delegates.c: Rebuild.
10379 * target.c (update_current_target): Don't inherit or default
10380 to_insert_exec_catchpoint.
10381 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
10382 TARGET_DEFAULT_RETURN.
10383
cda0f38c
TT
103842014-01-08 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
95c3375e
TT
103922014-02-19 Tom Tromey <tromey@redhat.com>
10393
10394 * target-delegates.c: Rebuild.
10395 * target.c (update_current_target): Don't inherit or default
10396 to_remove_vfork_catchpoint.
10397 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
10398 TARGET_DEFAULT_RETURN.
10399
7e18a8dc
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_insert_vfork_catchpoint.
10405 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
10406 TARGET_DEFAULT_RETURN.
10407
e1a21fb7
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_remove_fork_catchpoint.
10413 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
10414 TARGET_DEFAULT_RETURN.
10415
5958ebeb
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_insert_fork_catchpoint.
10421 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
10422 TARGET_DEFAULT_RETURN.
10423
340ba4bf
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_post_startup_inferior.
10429 * target.h (struct target_ops) <to_post_startup_inferior>: Use
10430 TARGET_DEFAULT_IGNORE.
10431
7634da87
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_load.
10437 * target.h (struct target_ops) <to_load>: Use
10438 TARGET_DEFAULT_NORETURN.
10439
e19e919f
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_terminal_info.
10445 * target.h (struct target_ops) <to_terminal_info>: Use
10446 TARGET_DEFAULT_FUNC.
10447
c6ea8f79
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_save_ours.
10453 * target.h (struct target_ops) <to_terminal_save_ours>: Use
10454 TARGET_DEFAULT_IGNORE.
10455
e4a733f1
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_ours.
10461 * target.h (struct target_ops) <to_terminal_ours>: Use
10462 TARGET_DEFAULT_IGNORE.
10463
74fcbef9
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_for_output.
10469 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
10470 TARGET_DEFAULT_IGNORE.
10471
ddeaacc9
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_inferior.
10477 * target.h (struct target_ops) <to_terminal_inferior>: Use
10478 TARGET_DEFAULT_IGNORE.
10479
0343661d
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_init.
10485 * target.h (struct target_ops) <to_terminal_init>: Use
10486 TARGET_DEFAULT_IGNORE.
10487
77cdffe9
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_can_accel_watchpoint_condition.
10493 * target.h (struct target_ops)
10494 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
10495
d03655e4
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_region_ok_for_hw_watchpoint.
10501 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10502 Use TARGET_DEFAULT_FUNC.
10503
65f160a9
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_watchpoint_addr_within_range.
10509 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
10510 Use TARGET_DEFAULT_FUNC.
10511
61dd109f
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_remove_watchpoint.
10517 * target.h (struct target_ops) <to_remove_watchpoint>: Use
10518 TARGET_DEFAULT_NORETURN.
10519
016facd4
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_insert_watchpoint.
10525 * target.h (struct target_ops) <to_insert_watchpoint>: Use
10526 TARGET_DEFAULT_RETURN.
10527
418dabac
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_remove_hw_breakpoint.
10533 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
10534 TARGET_DEFAULT_RETURN.
10535
61b371f9
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_insert_hw_breakpoint.
10541 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
10542 TARGET_DEFAULT_RETURN.
10543
52b51d06
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_can_use_hw_breakpoint.
10549 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
10550 TARGET_DEFAULT_RETURN.
10551
f86e59b2
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_files_info.
10557 * target.h (struct target_ops) <to_files_info>: Use
10558 TARGET_DEFAULT_IGNORE.
10559
6c628163
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_store.
10565 * target.h (struct target_ops) <to_store>: Use
10566 TARGET_DEFAULT_NORETURN.
10567
bebd3233
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_post_attach.
10573 * target.h (struct target_ops) <to_post_attach>: Use
10574 TARGET_DEFAULT_IGNORE.
10575
a53f3625
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_rcmd.
10581 (default_rcmd): New function.
10582 (do_monitor_command): Unconditionally delegate.
10583 * target.h (struct target_ops) <to_rmcd>: Use
10584 TARGET_DEFAULT_FUNC.
10585
e9a29200
TT
105862014-02-19 Tom Tromey <tromey@redhat.com>
10587
10588 * target-delegates.c: Rebuild.
10589 * target.c (init_dummy_target): Don't initialize to_attach.
10590 (target_attach): Unconditionally delegate.
10591 * target.h (struct target_ops) <to_attach>: Use
10592 TARGET_DEFAULT_FUNC.
10593
09da0d0a
TT
105942014-02-19 Tom Tromey <tromey@redhat.com>
10595
10596 * target-delegates.c: Rebuild.
10597 * target.c (target_detach): Unconditionally delegate.
10598 (init_dummy_target): Don't initialize to_detach.
10599 * target.h (struct target_ops) <to_detach>: Use
10600 TARGET_DEFAULT_IGNORE.
10601
5436ff03
TT
106022014-02-19 Tom Tromey <tromey@redhat.com>
10603
10604 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
10605 Add argument.
10606 (target_augmented_libraries_svr4_read): Add argument.
10607 * target.c (update_current_target): Update.
10608 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
10609 argument.
10610
f0d960ea
TT
106112014-02-19 Tom Tromey <tromey@redhat.com>
10612
10613 * target.h (struct target_ops) <to_call_history_range>: Add
10614 argument.
10615 * target.c (target_call_history_range): Add argument.
10616 * record-btrace.c (record_btrace_call_history_range): Add 'self'
10617 argument.
10618 (record_btrace_call_history_from): Update.
10619
ec0aea04
TT
106202014-02-19 Tom Tromey <tromey@redhat.com>
10621
10622 * target.h (struct target_ops) <to_call_history_from>: Add
10623 argument.
10624 * target.c (target_call_history_from): Add argument.
10625 * record-btrace.c (record_btrace_call_history_from): Add 'self'
10626 argument.
10627
5df2fcba
TT
106282014-02-19 Tom Tromey <tromey@redhat.com>
10629
10630 * target.h (struct target_ops) <to_call_history>: Add argument.
10631 * target.c (target_call_history): Add argument.
10632 * record-btrace.c (record_btrace_call_history): Add 'self'
10633 argument.
10634
4e99c6b7
TT
106352014-02-19 Tom Tromey <tromey@redhat.com>
10636
10637 * target.h (struct target_ops) <to_insn_history_range>: Add
10638 argument.
10639 * target.c (target_insn_history_range): Add argument.
10640 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
10641 argument.
10642 (record_btrace_insn_history_from): Update.
10643
9abc3ff3
TT
106442014-02-19 Tom Tromey <tromey@redhat.com>
10645
10646 * target.h (struct target_ops) <to_insn_history_from>: Add
10647 argument.
10648 * target.c (target_insn_history_from): Add argument.
10649 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
10650 argument.
10651
7a6c5609
TT
106522014-02-19 Tom Tromey <tromey@redhat.com>
10653
10654 * target.h (struct target_ops) <to_insn_history>: Add argument.
10655 * target.c (target_insn_history): Add argument.
10656 * record-btrace.c (record_btrace_insn_history): Add 'self'
10657 argument.
10658
606183ac
TT
106592014-02-19 Tom Tromey <tromey@redhat.com>
10660
10661 * target.h (struct target_ops) <to_goto_record>: Add argument.
10662 * target.c (target_goto_record): Add argument.
10663 * record-full.c (record_full_goto): Add 'self' argument.
10664 * record-btrace.c (record_btrace_goto): Add 'self' argument.
10665
307a1b91
TT
106662014-02-19 Tom Tromey <tromey@redhat.com>
10667
10668 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
10669 * target.c (target_goto_record_end): Add argument.
10670 * record-full.c (record_full_goto_end): Add 'self' argument.
10671 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
10672
08475817
TT
106732014-02-19 Tom Tromey <tromey@redhat.com>
10674
10675 * target.h (struct target_ops) <to_goto_record_begin>: Add
10676 argument.
10677 * target.c (target_goto_record_begin): Add argument.
10678 * record-full.c (record_full_goto_begin): Add 'self' argument.
10679 * record-btrace.c (record_btrace_goto_begin): Add 'self'
10680 argument.
10681
1c63c994
TT
106822014-02-19 Tom Tromey <tromey@redhat.com>
10683
10684 * target.h (struct target_ops) <to_record_is_replaying>: Add
10685 argument.
10686 * target.c (target_record_is_replaying): Add argument.
10687 * record-full.c (record_full_is_replaying): Add 'self' argument.
10688 * record-btrace.c (record_btrace_is_replaying): Add 'self'
10689 argument.
10690 (record_btrace_xfer_partial, record_btrace_store_registers)
10691 (record_btrace_prepare_to_store, record_btrace_resume)
10692 (record_btrace_wait, record_btrace_decr_pc_after_break)
10693 (record_btrace_find_new_threads, record_btrace_thread_alive):
10694 Update.
10695
d1b55219
TT
106962014-02-19 Tom Tromey <tromey@redhat.com>
10697
10698 * target.h (struct target_ops) <to_delete_record>: Add argument.
10699 * target.c (target_delete_record): Add argument.
10700 * record-full.c (record_full_delete): Add 'self' argument.
10701
1390f529
TT
107022014-02-19 Tom Tromey <tromey@redhat.com>
10703
10704 * target.h (struct target_ops) <to_save_record>: Add argument.
10705 * target.c (target_save_record): Add argument.
10706 * record-full.c (record_full_save): Add 'self' argument.
10707 (record_full_save): Add 'self' argument.
10708
630d6a4a
TT
107092014-02-19 Tom Tromey <tromey@redhat.com>
10710
10711 * target.h (struct target_ops) <to_info_record>: Add argument.
10712 * target.c (target_info_record): Add argument.
10713 * record.c (info_record_command): Add argument.
10714 * record-full.c (record_full_info): Add 'self' argument.
10715 * record-btrace.c (record_btrace_info): Add 'self' argument.
10716
c6cd7c02
TT
107172014-02-19 Tom Tromey <tromey@redhat.com>
10718
10719 * target.h (struct target_ops) <to_stop_recording>: Add argument.
10720 * target.c (target_stop_recording): Add argument.
10721 * record.c (record_stop): Add argument.
10722 * record-btrace.c (record_btrace_stop_recording): Add 'self'
10723 argument.
10724
39c49f83
TT
107252014-02-19 Tom Tromey <tromey@redhat.com>
10726
10727 * target.h (struct target_ops) <to_read_btrace>: Add argument.
10728 * target.c (struct target_ops) <to_read_btrace>: Add argument.
10729 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
10730 argument.
10731 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
10732 (_initialize_amd64_linux_nat): Use it.
10733 * i386-linux-nat.c (i386_linux_read_btrace): New function.
10734 (_initialize_i386_linux_nat): Use it.
10735
1777056d
TT
107362014-02-19 Tom Tromey <tromey@redhat.com>
10737
10738 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
10739 * target.c (target_teardown_btrace): Add argument.
10740 * remote.c (remote_teardown_btrace): Add 'self' argument.
10741 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
10742 argument.
10743 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
10744 argument.
10745
25e95349
TT
107462014-02-19 Tom Tromey <tromey@redhat.com>
10747
10748 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
10749 * target.c (target_disable_btrace): Add argument.
10750 * remote.c (remote_disable_btrace): Add 'self' argument.
10751 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
10752 argument.
10753 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
10754 argument.
10755
e3c49f88
TT
107562014-02-19 Tom Tromey <tromey@redhat.com>
10757
10758 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
10759 * target.c (target_enable_btrace): Add argument.
10760 * remote.c (remote_enable_btrace): Add 'self' argument.
10761 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
10762 argument.
10763 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
10764 argument.
10765
fe38f897
TT
107662014-02-19 Tom Tromey <tromey@redhat.com>
10767
10768 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
10769 (target_can_use_agent): Add argument.
10770 * target.c (update_current_target): Update.
10771 * remote.c (remote_can_use_agent): Add 'self' argument.
10772 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
10773
2c152180
TT
107742014-02-19 Tom Tromey <tromey@redhat.com>
10775
10776 * target.h (struct target_ops) <to_use_agent>: Add argument.
10777 (target_use_agent): Add argument.
10778 * target.c (update_current_target): Update.
10779 * remote.c (remote_use_agent): Add 'self' argument.
10780 * inf-child.c (inf_child_use_agent): Add 'self' argument.
10781
a893e81f
TT
107822014-02-19 Tom Tromey <tromey@redhat.com>
10783
10784 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
10785 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
10786 (target_traceframe_info): Add argument.
10787 * target.c (update_current_target): Update.
10788 * remote.c (remote_traceframe_info): Add 'self' argument.
10789 * ctf.c (ctf_traceframe_info): Add 'self' argument.
10790
c686c57f
TT
107912014-02-19 Tom Tromey <tromey@redhat.com>
10792
10793 * target.h (target_static_tracepoint_markers_by_strid): Add
10794 argument.
10795 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
10796 'self' argument.
10797 * target.c (update_current_target): Update.
10798 * remote.c (struct target_ops)
10799 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
10800 * linux-nat.c (struct target_ops)
10801 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
10802
61fc905d
TT
108032014-02-19 Tom Tromey <tromey@redhat.com>
10804
10805 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
10806 Add argument.
10807 (target_static_tracepoint_marker_at): Add argument.
10808 * target.c (update_current_target): Update.
10809 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
10810 argument.
10811
c378d69d
TT
108122014-02-19 Tom Tromey <tromey@redhat.com>
10813
10814 * target.h (struct target_ops) <to_set_permissions>: Add argument.
10815 (target_set_permissions): Add argument.
10816 * target.c (update_current_target): Update.
10817 * remote.c (remote_set_permissions): Add 'self' argument.
10818 (remote_start_remote): Update.
10819
bd7ae0f5
TT
108202014-02-19 Tom Tromey <tromey@redhat.com>
10821
10822 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
10823 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
10824 (target_get_tib_address): Add argument.
10825 * target.c (update_current_target): Update.
10826 * remote.c (remote_get_tib_address): Add 'self' argument.
10827
d9e68a2c
TT
108282014-02-19 Tom Tromey <tromey@redhat.com>
10829
10830 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
10831 (target_set_trace_notes): Add argument.
10832 * target.c (update_current_target): Update.
10833 * remote.c (remote_set_trace_notes): Add 'self' argument.
10834
4da384be
TT
108352014-02-19 Tom Tromey <tromey@redhat.com>
10836
10837 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
10838 argument.
10839 (target_set_trace_buffer_size): Add argument.
10840 * target.c (update_current_target): Update.
10841 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
10842
736d5b1f
TT
108432014-02-19 Tom Tromey <tromey@redhat.com>
10844
10845 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
10846 argument.
10847 (target_set_circular_trace_buffer): Add argument.
10848 * target.c (update_current_target): Update.
10849 * remote.c (remote_set_circular_trace_buffer): Add 'self'
10850 argument.
10851
37b25738
TT
108522014-02-19 Tom Tromey <tromey@redhat.com>
10853
10854 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
10855 argument.
10856 (target_set_disconnected_tracing): Add argument.
10857 * target.c (update_current_target): Update.
10858 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
10859
0e67620a
TT
108602014-02-19 Tom Tromey <tromey@redhat.com>
10861
10862 * target.h (struct target_ops)
10863 <to_get_min_fast_tracepoint_insn_len>: Add argument.
10864 (target_get_min_fast_tracepoint_insn_len): Add argument.
10865 * target.c (update_current_target): Update.
10866 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
10867 argument.
10868
88ee6f45
TT
108692014-02-19 Tom Tromey <tromey@redhat.com>
10870
10871 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
10872 argument.
10873 (target_get_raw_trace_data): Add argument.
10874 * target.c (update_current_target): Update.
10875 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
10876
181e3713
TT
108772014-02-19 Tom Tromey <tromey@redhat.com>
10878
10879 * target.h (struct target_ops) <to_upload_trace_state_variables>:
10880 Add argument.
10881 (target_upload_trace_state_variables): Add argument.
10882 * target.c (update_current_target): Update.
10883 * remote.c (remote_upload_trace_state_variables): Add 'self'
10884 argument.
10885 (remote_start_remote): Update.
10886
ab6617cc
TT
108872014-02-19 Tom Tromey <tromey@redhat.com>
10888
10889 * target.h (struct target_ops) <to_upload_tracepoints>: Add
10890 argument.
10891 (target_upload_tracepoints): Add argument.
10892 * target.c (update_current_target): Update.
10893 * remote.c (remote_upload_tracepoints): Add 'self' argument.
10894 (remote_start_remote): Update.
10895
dc3decaf
TT
108962014-02-19 Tom Tromey <tromey@redhat.com>
10897
10898 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
10899 (target_save_trace_data): Add argument.
10900 * target.c (update_current_target): Update.
10901 * remote.c (remote_save_trace_data): Add 'self' argument.
10902
4011015b
TT
109032014-02-19 Tom Tromey <tromey@redhat.com>
10904
10905 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
10906 argument.
10907 * target.h (struct target_ops)
10908 <to_get_trace_state_variable_value>: Add argument.
10909 (target_get_trace_state_variable_value): Add argument.
10910 * target.c (update_current_target): Update.
10911 * remote.c (remote_get_trace_state_variable_value): Add 'self'
10912 argument.
10913 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
10914
bd4c6793
TT
109152014-02-19 Tom Tromey <tromey@redhat.com>
10916
10917 * tracepoint.c (tfile_trace_find): Add 'self' argument.
10918 * target.h (struct target_ops) <to_trace_find>: Add argument.
10919 (target_trace_find): Add argument.
10920 * target.c (update_current_target): Update.
10921 * remote.c (remote_trace_find): Add 'self' argument.
10922 * ctf.c (ctf_trace_find): Add 'self' argument.
10923
74499f1b
TT
109242014-02-19 Tom Tromey <tromey@redhat.com>
10925
10926 * target.h (struct target_ops) <to_trace_stop>: Add argument.
10927 (target_trace_stop): Add argument.
10928 * target.c (update_current_target): Update.
10929 * remote.c (remote_trace_stop): Add 'self' argument.
10930
db90e85c
TT
109312014-02-19 Tom Tromey <tromey@redhat.com>
10932
10933 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
10934 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
10935 argument.
10936 (target_get_tracepoint_status): Add argument.
10937 * target.c (update_current_target): Update.
10938 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
10939
8bd200f1
TT
109402014-02-19 Tom Tromey <tromey@redhat.com>
10941
10942 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
10943 * target.h (struct target_ops) <to_get_trace_status>: Add
10944 argument.
10945 (target_get_trace_status): Add argument.
10946 * target.c (update_current_target): Update.
10947 * remote.c (remote_get_trace_status): Add 'self' argument.
10948 (remote_start_remote, remote_can_download_tracepoint): Update.
10949 * ctf.c (ctf_get_trace_status): Add 'self' argument.
10950
e2d1aae3
TT
109512014-02-19 Tom Tromey <tromey@redhat.com>
10952
10953 * target.h (struct target_ops) <to_trace_start>: Add argument.
10954 (target_trace_start): Add argument.
10955 * target.c (update_current_target): Update.
10956 * remote.c (remote_trace_start): Add 'self' argument.
10957
583f9a86
TT
109582014-02-19 Tom Tromey <tromey@redhat.com>
10959
10960 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
10961 Add argument.
10962 (target_trace_set_readonly_regions): Add argument.
10963 * target.c (update_current_target): Update.
10964 * remote.c (remote_trace_set_readonly_regions): Add 'self'
10965 argument.
10966
780b049c
TT
109672014-02-19 Tom Tromey <tromey@redhat.com>
10968
10969 * target.h (struct target_ops) <to_disable_tracepoint>: Add
10970 argument.
10971 (target_disable_tracepoint): Add argument.
10972 * target.c (update_current_target): Update.
10973 * remote.c (remote_disable_tracepoint): Add 'self' argument.
10974
46670d57
TT
109752014-02-19 Tom Tromey <tromey@redhat.com>
10976
10977 * target.h (struct target_ops) <to_enable_tracepoint>: Add
10978 argument.
10979 (target_enable_tracepoint): Add argument.
10980 * target.c (update_current_target): Update.
10981 * remote.c (remote_enable_tracepoint): Add 'self' argument.
10982
559d2b81
TT
109832014-02-19 Tom Tromey <tromey@redhat.com>
10984
10985 * target.h (struct target_ops) <to_download_trace_state_variable>:
10986 Add argument.
10987 (target_download_trace_state_variable): Add argument.
10988 * target.c (update_current_target): Update.
10989 * remote.c (remote_download_trace_state_variable): Add 'self'
10990 argument.
10991
a52a8357
TT
109922014-02-19 Tom Tromey <tromey@redhat.com>
10993
10994 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
10995 argument.
10996 (target_can_download_tracepoint): Add argument.
10997 * target.c (update_current_target): Update.
10998 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
10999
548f7808
TT
110002014-02-19 Tom Tromey <tromey@redhat.com>
11001
11002 * target.h (struct target_ops) <to_download_tracepoint>: Add
11003 argument.
11004 (target_download_tracepoint): Add argument.
11005 * target.c (update_current_target): Update.
11006 * remote.c (remote_download_tracepoint): Add 'self' argument.
11007
ecae04e1
TT
110082014-02-19 Tom Tromey <tromey@redhat.com>
11009
11010 * target.h (struct target_ops) <to_trace_init>: Add argument.
11011 (target_trace_init): Add argument.
11012 * target.c (update_current_target): Update.
11013 * remote.c (remote_trace_init): Add 'self' argument.
11014
fab5aa7c
TT
110152014-02-19 Tom Tromey <tromey@redhat.com>
11016
11017 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
11018 * target.c (target_fileio_readlink): Add argument.
11019 * remote.c (remote_hostio_readlink): Add 'self' argument.
11020 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
11021
dbbca37d
TT
110222014-02-19 Tom Tromey <tromey@redhat.com>
11023
11024 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
11025 * target.c (target_fileio_unlink): Add argument.
11026 * remote.c (remote_hostio_unlink): Add 'self' argument.
11027 (remote_file_delete): Update.
11028 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
11029
df39ea25
TT
110302014-02-19 Tom Tromey <tromey@redhat.com>
11031
11032 * target.h (struct target_ops) <to_fileio_close>: Add argument.
11033 * target.c (target_fileio_close): Add argument.
11034 * remote.c (remote_hostio_close): Add 'self' argument.
11035 (remote_hostio_close_cleanup): Update.
11036 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
11037 Update.
11038 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
11039
a3be983c
TT
110402014-02-19 Tom Tromey <tromey@redhat.com>
11041
11042 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
11043 * target.c (target_fileio_pread): Add argument.
11044 * remote.c (remote_hostio_pread): Add 'self' argument.
11045 (remote_bfd_iovec_pread, remote_file_get): Update.
11046 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
11047
0d866f62
TT
110482014-02-19 Tom Tromey <tromey@redhat.com>
11049
11050 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
11051 * target.c (target_fileio_pwrite): Add argument.
11052 * remote.c (remote_hostio_pwrite): Add 'self' argument.
11053 (remote_file_put): Update.
11054 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
11055
cd897586
TT
110562014-02-19 Tom Tromey <tromey@redhat.com>
11057
11058 * target.h (struct target_ops) <to_fileio_open>: Add argument.
11059 * target.c (target_fileio_open): Add argument.
11060 * remote.c (remote_hostio_open): Add 'self' argument.
11061 (remote_bfd_iovec_open): Add 'self' argument.
11062 (remote_file_put): Add 'self' argument.
11063 (remote_file_get): Add 'self' argument.
11064 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
11065
78eff0ec
TT
110662014-02-19 Tom Tromey <tromey@redhat.com>
11067
11068 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
11069 Add argument.
11070 (target_can_run_breakpoint_commands): Add argument.
11071 * target.c (update_current_target): Update.
11072 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
11073 argument.
11074 (remote_insert_breakpoint): Add 'self' argument.
11075 (remote_insert_hw_breakpoint): Add 'self' argument.
11076 (remote_can_run_breakpoint_commands): Add 'self' argument.
11077
efcc2da7
TT
110782014-02-19 Tom Tromey <tromey@redhat.com>
11079
11080 * target.h (struct target_ops)
11081 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
11082 (target_supports_evaluation_of_breakpoint_conditions): Add
11083 argument.
11084 * target.c (update_current_target): Update.
11085 * remote.c (remote_supports_cond_breakpoints): Add 'self'
11086 argument.
11087 (remote_insert_breakpoint): Add 'self' argument.
11088 (remote_insert_hw_breakpoint): Add 'self' argument.
11089 (remote_supports_cond_breakpoints): Add 'self' argument.
11090
6de37a3a
TT
110912014-02-19 Tom Tromey <tromey@redhat.com>
11092
11093 * target.h (struct target_ops) <to_supports_string_tracing>: Add
11094 argument.
11095 (target_supports_string_tracing): Add argument.
11096 * target.c (update_current_target): Update.
11097 * remote.c (remote_supports_string_tracing): Add 'self' argument.
11098
2bfc0540
TT
110992014-02-19 Tom Tromey <tromey@redhat.com>
11100
11101 * target.h (struct target_ops)
11102 <to_supports_disable_randomization>: Add argument.
11103 * target.c (find_default_supports_disable_randomization): Add
11104 argument.
11105 (target_supports_disable_randomization): Add argument.
11106 (find_default_supports_disable_randomization): Add 'self'
11107 argument.
11108 * remote.c (extended_remote_supports_disable_randomization): Add
11109 'self' argument.
11110 (remote_supports_disable_randomization): Add 'self' argument.
11111 (extended_remote_create_inferior): Update.
11112 * linux-nat.c (linux_nat_supports_disable_randomization): Add
11113 'self' argument.
11114
7d178d6a
TT
111152014-02-19 Tom Tromey <tromey@redhat.com>
11116
11117 * target.h (struct target_ops)
11118 <to_supports_enable_disable_tracepoint>: Add argument.
11119 (target_supports_enable_disable_tracepoint): Add argument.
11120 * target.c (update_current_target): Update.
11121 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
11122 argument.
11123
86ce2668
TT
111242014-02-19 Tom Tromey <tromey@redhat.com>
11125
11126 * target.h (struct target_ops) <to_supports_multi_process>: Add
11127 argument.
11128 (target_supports_multi_process): Add argument.
11129 * target.c (update_current_target): Update.
11130 * remote.c (remote_supports_multi_process): Add 'self' argument.
11131 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
11132 argument.
11133 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
11134 argument.
11135
4c612759
TT
111362014-02-19 Tom Tromey <tromey@redhat.com>
11137
11138 * target.h (struct target_ops) <to_execution_direction>: Add
11139 argument.
11140 (target_execution_direction): Add argument.
11141 * target.c (default_execution_direction): Add 'self' argument.
11142 * record-full.c (record_full_execution_direction): Add 'self'
11143 argument.
11144
19db3e69
TT
111452014-02-19 Tom Tromey <tromey@redhat.com>
11146
11147 * target.h (struct target_ops) <to_can_execute_reverse>: Add
11148 argument.
11149 (target_can_execute_reverse): Add argument.
11150 * remote.c (remote_can_execute_reverse): Add 'self' argument.
11151 * record-full.c (record_full_can_execute_reverse): Add 'self'
11152 argument.
11153 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
11154 argument.
11155
1e6b91a4
TT
111562014-02-19 Tom Tromey <tromey@redhat.com>
11157
11158 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
11159 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
11160 argument.
11161 (target_get_ada_task_ptid): Add argument.
11162 * target.c (update_current_target): Update.
11163 (default_get_ada_task_ptid): Add 'self' argument.
11164 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
11165 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
11166 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
11167 argument.
11168 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
11169 argument.
11170 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
11171 argument.
11172 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
11173 argument.
11174 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
11175 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
11176 argument.
11177
3c80fb48
TT
111782014-02-19 Tom Tromey <tromey@redhat.com>
11179
11180 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
11181 (target_goto_bookmark): Add argument.
11182 * target.c (dummy_goto_bookmark): Add 'self' argument.
11183 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
11184
dd0e2830
TT
111852014-02-19 Tom Tromey <tromey@redhat.com>
11186
11187 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
11188 (target_get_bookmark): Add argument.
11189 * target.c (dummy_get_bookmark): Add 'self' argument.
11190 * record-full.c (record_full_get_bookmark): Add 'self' argument.
11191
fc6691b2
TT
111922014-02-19 Tom Tromey <tromey@redhat.com>
11193
11194 * target.h (struct target_ops) <to_make_corefile_notes>: Add
11195 argument.
11196 (target_make_corefile_notes): Add argument.
11197 * target.c (dummy_make_corefile_notes): Add 'self' argument.
11198 * procfs.c (procfs_make_note_section): Add 'self' argument.
11199 (procfs_make_note_section): Add 'self' argument.
11200 (procfs_make_note_section): Add 'self' argument.
11201 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
11202 argument.
11203 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
11204 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
11205 * exec.c (exec_make_note_section): Add 'self' argument.
11206 (exec_make_note_section): Add 'self' argument.
11207
2e73927c
TT
112082014-02-19 Tom Tromey <tromey@redhat.com>
11209
11210 * target.h (struct target_ops) <to_find_memory_regions>: Add
11211 argument.
11212 (target_find_memory_regions): Add argument.
11213 * target.c (dummy_find_memory_regions): Add 'self' argument.
11214 * procfs.c (proc_find_memory_regions): Add 'self' argument.
11215 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
11216 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
11217 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
11218 * exec. (exec_do_find_memory_regions): New global.
11219 (exec_set_find_memory_regions): Rewrite.
11220 (exec_find_memory_regions): New function.
11221 (init_exec_ops): Use exec_find_memory_regions.
11222
2a9a2795
TT
112232014-02-19 Tom Tromey <tromey@redhat.com>
11224
11225 * target.h (struct target_ops) <to_supports_non_stop>: Add
11226 argument.
11227 * target.c (find_default_supports_non_stop): Add argument.
11228 (target_supports_non_stop): Add argument.
11229 (find_default_supports_non_stop): Add 'self' argument.
11230 * remote.c (remote_supports_non_stop): Add 'self' argument.
11231 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
11232
4ab76ea3
TT
112332014-02-19 Tom Tromey <tromey@redhat.com>
11234
11235 * target.h (struct target_ops) <to_log_command>: Add argument.
11236 (target_log_command): Add argument.
11237 * serial.h (serial_log_command): Add 'self' argument.
11238 * serial.c (serial_log_command): Add 'self' argument.
11239
8dd27370
TT
112402014-02-19 Tom Tromey <tromey@redhat.com>
11241
11242 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
11243 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
11244 argument.
11245 (target_pid_to_exec_file): Add argument.
11246 * target.c (debug_to_pid_to_exec_file): Add argument.
11247 (update_current_target): Update.
11248 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
11249 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
11250 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
11251 (linux_handle_extended_wait): Update.
11252 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
11253 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
11254 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
11255 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
11256
1aac633b
TT
112572014-02-19 Tom Tromey <tromey@redhat.com>
11258
11259 * target.h (struct target_ops) <to_rcmd>: Add argument.
11260 (target_rcmd): Add argument.
11261 * target.c (debug_to_rcmd): Add argument.
11262 (update_current_target, do_monitor_command): Update.
11263 * remote.c (remote_rcmd): Add 'self' argument.
11264 * monitor.c (monitor_rcmd): Add 'self' argument.
11265
1eab8a48
TT
112662014-02-19 Tom Tromey <tromey@redhat.com>
11267
11268 * windows-nat.c (windows_stop): Add 'self' argument.
11269 * target.h (struct target_ops) <to_stop>: Add argument.
11270 * target.c (target_stop): Add argument.
11271 (debug_to_stop): Add argument.
11272 (update_current_target): Update.
11273 * remote.c (remote_stop): Add 'self' argument.
11274 * remote-sim.c (gdbsim_stop): Add 'self' argument.
11275 (gdbsim_cntrl_c): Update.
11276 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
11277 * procfs.c (procfs_stop): Add 'self' argument.
11278 * nto-procfs.c (procfs_stop): Add 'self' argument.
11279 * monitor.c (monitor_stop): Add 'self' argument.
11280 (monitor_open): Update.
11281 * linux-nat.c (linux_nat_stop): Add argument.
11282 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
11283 * gnu-nat.c (gnu_stop): Add 'self' argument.
11284 * darwin-nat.c (darwin_stop): Add 'self' argument.
11285
503a628d
TT
112862014-02-19 Tom Tromey <tromey@redhat.com>
11287
11288 * target.h (struct target_ops) <to_thread_name>: Add argument.
11289 * target.c (target_thread_name): Add argument.
11290 (update_current_target): Update.
11291 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
11292
c15906d8
TT
112932014-02-19 Tom Tromey <tromey@redhat.com>
11294
11295 * target.h (struct target_ops) <to_extra_thread_info>: Add
11296 argument.
11297 (target_extra_thread_info): Add argument.
11298 * target.c (update_current_target): Update.
11299 * remote.c (remote_threads_extra_info): Add 'self' argument.
11300 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
11301 argument.
11302 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
11303 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
11304 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
11305 argument.
11306 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
11307 argument.
11308 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
11309 argument.
11310 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
11311 argument.
11312
daf5e9b6
TT
113132014-02-19 Tom Tromey <tromey@redhat.com>
11314
11315 * target.h (struct target_ops) <to_program_signals>: Add argument.
11316 * target.c (target_program_signals): Add argument.
11317 * remote.c (remote_program_signals): Add 'self' argument.
11318
94bedb42
TT
113192014-02-19 Tom Tromey <tromey@redhat.com>
11320
11321 * target.h (struct target_ops) <to_pass_signals>: Add argument.
11322 * target.c (target_pass_signals): Add argument.
11323 * remote.c (remote_pass_signals): Add 'self' argument.
11324 (remote_start_remote): Update.
11325 * procfs.c (procfs_pass_signals): Add 'self' argument.
11326 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
11327 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
11328 (linux_nat_create_inferior, linux_nat_attach): Update.
11329
da82bd6b
TT
113302014-02-19 Tom Tromey <tromey@redhat.com>
11331
11332 * windows-nat.c (windows_can_run): Add 'self' argument.
11333 * target.h (struct target_ops) <to_can_run>: Add argument.
11334 (target_can_run): Add argument.
11335 * target.c (debug_to_can_run): Add argument.
11336 (update_current_target): Update.
11337 * nto-procfs.c (procfs_can_run): Add 'self' argument.
11338 * inf-child.c (inf_child_can_run): Add 'self' argument.
11339 * go32-nat.c (go32_can_run): Add 'self' argument.
11340
d796e1d6
TT
113412014-02-19 Tom Tromey <tromey@redhat.com>
11342
11343 * target.h (struct target_ops) <to_has_exited>: Add argument.
11344 (target_has_exited): Add argument.
11345 * target.c (debug_to_has_exited): Add argument.
11346 (update_current_target): Update.
11347
ff214e67
TT
113482014-02-19 Tom Tromey <tromey@redhat.com>
11349
11350 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
11351 argument.
11352 (target_set_syscall_catchpoint): Add argument.
11353 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
11354 argument.
11355 * target.c (update_current_target): Update.
11356
758e29d2
TT
113572014-02-19 Tom Tromey <tromey@redhat.com>
11358
11359 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
11360 argument.
11361 (target_remove_exec_catchpoint): Add argument.
11362 * target.c (debug_to_remove_exec_catchpoint): Add argument.
11363 (update_current_target): Update.
11364 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
11365 argument.
11366
ba025e51
TT
113672014-02-19 Tom Tromey <tromey@redhat.com>
11368
11369 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
11370 argument.
11371 (target_insert_exec_catchpoint): Add argument.
11372 * target.c (debug_to_insert_exec_catchpoint): Add argument.
11373 (update_current_target): Update.
11374 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
11375 argument.
11376
e98cf0cd
TT
113772014-02-19 Tom Tromey <tromey@redhat.com>
11378
11379 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
11380 argument.
11381 (target_remove_vfork_catchpoint): Add argument.
11382 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
11383 (update_current_target): Update.
11384 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
11385 argument.
11386
3ecc7da0
TT
113872014-02-19 Tom Tromey <tromey@redhat.com>
11388
11389 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
11390 argument.
11391 (target_insert_vfork_catchpoint): Add argument.
11392 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
11393 (update_current_target): Update.
11394 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
11395 argument.
11396
973fc227
TT
113972014-02-19 Tom Tromey <tromey@redhat.com>
11398
11399 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
11400 argument.
11401 (target_remove_fork_catchpoint): Add argument.
11402 * target.c (debug_to_remove_fork_catchpoint): Add argument.
11403 (update_current_target): Update.
11404 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
11405 argument.
11406
a863b201
TT
114072014-02-19 Tom Tromey <tromey@redhat.com>
11408
11409 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
11410 argument.
11411 (target_insert_fork_catchpoint): Add argument.
11412 * target.c (debug_to_insert_fork_catchpoint): Add argument.
11413 (update_current_target): Update.
11414 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
11415 argument.
11416
2e97a79e
TT
114172014-02-19 Tom Tromey <tromey@redhat.com>
11418
11419 * target.h (struct target_ops) <to_post_startup_inferior>: Add
11420 argument.
11421 (target_post_startup_inferior): Add argument.
11422 * target.c (debug_to_post_startup_inferior): Add argument.
11423 (update_current_target): Update.
11424 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
11425 argument.
11426 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
11427 argument.
11428 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
11429 argument.
11430 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
11431 argument.
11432 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
11433 'self' argument.
11434 (super_post_startup_inferior): Likewise.
11435 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
11436 'self' argument.
11437 (super_post_startup_inferior): Likewise.
11438 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
11439 Add 'self' argument.
11440 (super_post_startup_inferior): Likewise.
11441
71a9f134
TT
114422014-02-19 Tom Tromey <tromey@redhat.com>
11443
11444 * target.h (struct target_ops) <to_load>: Add argument.
11445 * target.c (target_load): Add argument.
11446 (debug_to_load): Add argument.
11447 (update_current_target): Update.
11448 * remote.c (remote_load): Add 'self' argument.
11449 * remote-sim.c (gdbsim_load): Add 'self' argument.
11450 * remote-mips.c (mips_load): Add 'self' argument.
11451 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
11452 * monitor.c (monitor_load): Add 'self' argument.
11453 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
11454
0a4f40a2
TT
114552014-02-19 Tom Tromey <tromey@redhat.com>
11456
11457 * target.h (struct target_ops) <to_terminal_info>: Add argument.
11458 (target_terminal_info): Add argument.
11459 * target.c (debug_to_terminal_info): Add argument.
11460 (default_terminal_info): Likewise.
11461 * inflow.c (child_terminal_info): Add 'self' argument.
11462 * inferior.h (child_terminal_info): Add 'self' argument.
11463 * go32-nat.c (go32_terminal_info): Add 'self' argument.
11464
ae3bd431
TT
114652014-02-19 Tom Tromey <tromey@redhat.com>
11466
11467 * target.h (struct target_ops) <to_terminal_save_ours>: Add
11468 argument.
11469 (target_terminal_save_ours): Add argument.
11470 * target.c (debug_to_terminal_save_ours): Add argument.
11471 (update_current_target): Update.
11472 * inflow.c (terminal_save_ours): Add 'self' argument.
11473 * inferior.h (terminal_save_ours): Add 'self' argument.
11474
e3594fd1
TT
114752014-02-19 Tom Tromey <tromey@redhat.com>
11476
11477 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
11478 (target_terminal_ours): Add argument.
11479 * target.c (debug_to_terminal_ours): Add argument.
11480 (update_current_target): Update.
11481 * remote.c (remote_terminal_ours): Add 'self' argument.
11482 (remote_close): Update.
11483 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
11484 * inflow.c (terminal_ours): Add 'self' argument.
11485 * inferior.h (terminal_ours): Add 'self' argument.
11486 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11487
2e1e1a19
TT
114882014-02-19 Pedro Alves <palves@redhat.com>
11489 Tom Tromey <tromey@redhat.com>
11490
11491 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
11492 argument.
11493 (target_terminal_ours_for_output): Add argument.
11494 * target.c (debug_to_terminal_ours_for_output): Add argument.
11495 (update_current_target): Update.
11496 * inflow.c (terminal_ours_for_output): Add 'self' argument.
11497 * inferior.h (terminal_ours_for_output): Add 'self' argument.
11498 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11499
d2f640d4
TT
115002014-02-19 Tom Tromey <tromey@redhat.com>
11501
11502 * target.h (struct target_ops) <to_terminal_inferior>: Add
11503 argument.
11504 * target.c (target_terminal_inferior): Add argument.
11505 (update_current_target): Update.
11506 * remote.c (remote_terminal_inferior): Add 'self' argument.
11507 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
11508 * inflow.c (terminal_inferior): Add 'self' argument.
11509 * inferior.h (terminal_inferior): Add 'self' argument.
11510 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
11511 (go32_terminal_inferior): Add 'self' argument.
11512
c42bf286
TT
115132014-02-19 Tom Tromey <tromey@redhat.com>
11514
11515 * target.h (struct target_ops) <to_terminal_init>: Add argument.
11516 (target_terminal_init): Add argument.
11517 * target.c (debug_to_terminal_init): Add argument.
11518 (update_current_target): Update.
11519 * inflow.c (terminal_init_inferior): Add 'self' argument.
11520 * inferior.h (terminal_init_inferior): Add 'self' argument.
11521 * go32-nat.c (go32_terminal_init): Add 'self' argument.
11522 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
11523
c3a5ff89
TT
115242014-02-19 Tom Tromey <tromey@redhat.com>
11525
11526 * target.h (struct target_ops)
11527 <to_can_accel_watchpoint_condition>: Add argument.
11528 (target_can_accel_watchpoint_condition): Add argument.
11529 * target.c (debug_to_can_accel_watchpoint_condition): Add
11530 argument.
11531 (update_current_target): Update.
11532 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
11533 'self' argument.
11534
31568a15
TT
115352014-02-19 Tom Tromey <tromey@redhat.com>
11536
11537 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11538 Add argument.
11539 (target_region_ok_for_hw_watchpoint): Add argument.
11540 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
11541 (default_region_ok_for_hw_watchpoint): Add argument.
11542 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
11543 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
11544 argument.
11545 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
11546 argument.
11547 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
11548 argument.
11549 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
11550 'self' argument.
11551 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
11552 'self' argument.
11553 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
11554 'self' argument.
11555 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
11556 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
11557 'self' argument.
11558 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
11559 Add 'self' argument.
11560
7bb99c53
TT
115612014-02-19 Tom Tromey <tromey@redhat.com>
11562
11563 * target.h (struct target_ops) <to_insert_watchpoint>: Add
11564 argument.
11565 (target_insert_watchpoint): Add argument.
11566 * target.c (debug_to_insert_watchpoint): Add argument.
11567 (update_current_target): Update.
11568 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
11569 * remote.c (remote_insert_watchpoint): Add 'self' argument.
11570 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
11571 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
11572 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
11573 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
11574 argument.
11575 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
11576 (procfs_insert_hw_watchpoint): Add 'self' argument.
11577 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
11578 argument.
11579 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
11580 argument.
11581 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
11582 argument.
11583 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
11584 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
11585 argument.
11586 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
11587 'self' argument.
11588
11b5219a
TT
115892014-02-19 Tom Tromey <tromey@redhat.com>
11590
11591 * target.h (struct target_ops) <to_remove_watchpoint>: Add
11592 argument.
11593 (target_remove_watchpoint): Add argument.
11594 * target.c (debug_to_remove_watchpoint): Add argument.
11595 (update_current_target): Update.
11596 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
11597 * remote.c (remote_remove_watchpoint): Add 'self' argument.
11598 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
11599 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
11600 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
11601 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
11602 argument.
11603 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
11604 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
11605 argument.
11606 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
11607 argument.
11608 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
11609 argument.
11610 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
11611 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
11612 argument.
11613 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
11614 'self' argument.
11615
a64dc96c
TT
116162014-02-19 Tom Tromey <tromey@redhat.com>
11617
11618 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
11619 argument.
11620 (target_remove_hw_breakpoint): Add argument.
11621 * target.c (debug_to_remove_hw_breakpoint): Add argument.
11622 (update_current_target): Update.
11623 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
11624 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
11625 argument.
11626 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
11627 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
11628 argument.
11629 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
11630 'self' argument.
11631
23a26771
TT
116322014-02-19 Tom Tromey <tromey@redhat.com>
11633
11634 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
11635 argument.
11636 (target_insert_hw_breakpoint): Add argument.
11637 * target.c (debug_to_insert_hw_breakpoint): Add argument.
11638 (update_current_target): Update.
11639 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
11640 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
11641 argument.
11642 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
11643 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
11644 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
11645 argument.
11646 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
11647 'self' argument.
11648
5461485a
TT
116492014-02-19 Tom Tromey <tromey@redhat.com>
11650
11651 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
11652 argument.
11653 (target_can_use_hardware_watchpoint): Add argument.
11654 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
11655 (update_current_target): Update.
11656 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
11657 argument.
11658 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
11659 argument.
11660 * remote.c (remote_check_watch_resources): Add 'self' argument.
11661 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
11662 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
11663 argument.
11664 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
11665 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
11666 argument.
11667 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
11668 argument.
11669 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
11670 argument.
11671 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
11672 argument.
11673 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
11674 argument.
11675 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
11676 argument.
11677 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
11678 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
11679 argument.
11680 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
11681 'self' argument.
11682
f045800c
TT
116832014-02-19 Tom Tromey <tromey@redhat.com>
11684
11685 * target.h (struct target_ops) <to_post_attach>: Add argument.
11686 (target_post_attach): Add argument.
11687 * target.c (debug_to_post_attach): Add argument.
11688 (update_current_target): Update.
11689 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
11690 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
11691 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
11692 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
11693 * inf-child.c (inf_child_post_attach): Add 'self' argument.
11694
de90e03d
TT
116952014-02-19 Tom Tromey <tromey@redhat.com>
11696
11697 * windows-nat.c (windows_close): Add 'self' argument.
11698 * tracepoint.c (tfile_close): Add 'self' argument.
11699 * target.h (struct target_ops) <to_close>: Add argument.
11700 * target.c (target_close): Add argument.
11701 (update_current_target): Update.
11702 * remote.c (remote_close): Add 'self' argument.
11703 * remote-sim.c (gdbsim_close): Add 'self' argument.
11704 * remote-mips.c (mips_close): Add 'self' argument.
11705 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
11706 * record-full.c (record_full_close): Add 'self' argument.
11707 * record-btrace.c (record_btrace_close): Add 'self' argument.
11708 * monitor.h (monitor_close): Add 'self' argument.
11709 * monitor.c (monitor_close): Add 'self' argument.
11710 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
11711 * linux-nat.c (linux_nat_close): Add argument.
11712 * go32-nat.c (go32_close): Add 'self' argument.
11713 * exec.c (exec_close_1): Add 'self' argument.
11714 * ctf.c (ctf_close): Add 'self' argument.
11715 * corelow.c (core_close): Add 'self' argument.
11716 (core_close_cleanup): Update.
11717 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
11718 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
11719
9dd130a0
TT
117202014-02-19 Tom Tromey <tromey@redhat.com>
11721
11722 * remote.c (remote_load): New function.
11723 (init_remote_ops): Use it.
11724
46917d26
TT
117252014-02-19 Tom Tromey <tromey@redhat.com>
11726
11727 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
11728 argument.
11729 * common/linux-btrace.h (linux_supports_btrace): Update.
11730 * remote.c (remote_supports_btrace): Add "self" argument.
11731 * target-delegates.c: Rebuild.
11732 * target.c (target_supports_btrace): Remove.
11733 * target.h (struct target_ops) <to_supports_btrace>: Add
11734 target_ops argument.
11735 (target_supports_btrace): New define.
11736
6b84065d
TT
117372014-02-19 Tom Tromey <tromey@redhat.com>
11738
11739 * record-full.c (record_full_beneath_to_resume_ops)
11740 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
11741 (record_full_beneath_to_wait)
11742 (record_full_beneath_to_store_registers_ops)
11743 (record_full_beneath_to_store_registers)
11744 (record_full_beneath_to_xfer_partial_ops)
11745 (record_full_beneath_to_xfer_partial)
11746 (record_full_beneath_to_insert_breakpoint_ops)
11747 (record_full_beneath_to_insert_breakpoint)
11748 (record_full_beneath_to_remove_breakpoint_ops)
11749 (record_full_beneath_to_remove_breakpoint)
11750 (record_full_beneath_to_stopped_by_watchpoint)
11751 (record_full_beneath_to_stopped_data_address)
11752 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
11753 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
11754 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
11755 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
11756 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
11757 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
11758 (tmp_to_stopped_data_address, tmp_to_async): Remove.
11759 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
11760 (record_full_resume, record_full_wait_1)
11761 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
11762 (record_full_store_registers, record_full_xfer_partial)
11763 (record_full_insert_breakpoint, record_full_remove_breakpoint)
11764 (record_full_async, record_full_core_xfer_partial): Use target
11765 delegation.
11766 * target-delegates.c: Rebuild.
11767 * target.c (current_xfer_partial): Remove.
11768 (update_current_target): Do not INHERIT or de_fault
11769 to_insert_breakpoint, to_remove_breakpoint,
11770 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
11771 to_is_async_p, to_async. Do not set to_xfer_partial field.
11772 (default_xfer_partial): Simplify.
11773 (current_xfer_partial): Remove.
11774 (target_wait, target_resume): Simplify.
11775 (find_default_can_async_p, find_default_is_async_p): Update.
11776 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
11777 to_xfer_partial, to_stopped_by_watchpoint,
11778 to_stopped_data_address.
11779 (target_store_registers): Simplify.
11780 (forward_target_remove_breakpoint)
11781 (forward_target_insert_breakpoint): Remove.
11782 (target_remove_breakpoint, target_insert_breakpoint)
11783 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
11784 * target.h (struct target_ops) <to_resume, to_wait,
11785 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
11786 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
11787 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
11788 markup.
11789 (forward_target_remove_breakpoint)
11790 (forward_target_insert_breakpoint): Remove.
11791 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
11792 directly.
11793 (record_btrace_insert_breakpoint): Delegate directly.
11794
1101cb7b
TT
117952014-02-19 Tom Tromey <tromey@redhat.com>
11796
11797 PR build/7701:
11798 * target-delegates.c: New file.
11799 * target.c: Include target-delegates.c.
11800 (init_dummy_target): Call install_dummy_methods.
11801 (complete_target_initialization): Call install_delegators.
11802 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
11803 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
11804 * make-target-delegates: New file.
11805
8b06beed
TT
118062014-02-19 Tom Tromey <tromey@redhat.com>
11807
11808 * record.c (find_record_target): Use find_target_at.
11809 * target.c (find_target_at): New function.
11810 * target.h (find_target_at): Declare.
11811
6a109b6b
TT
118122014-02-19 Tom Tromey <tromey@redhat.com>
11813
11814 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
11815 Add 'ops' argument.
11816 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
11817 'ops' argument.
11818 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
11819 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
11820 'ops' argument.
11821 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
11822 argument.
11823 * linux-nat.c (save_sigtrap): Update.
11824 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
11825 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
11826 (linux_nat_close): Update.
11827 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
11828 argument.
11829 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
11830 argument.
11831 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
11832 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
11833 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
11834 (tmp_to_async): Add 'ops' argument.
11835 (record_full_stopped_by_watchpoint, record_full_async)
11836 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
11837 argument.
11838 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
11839 (m32r_stopped_by_watchpoint): Add 'ops' argument.
11840 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
11841 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
11842 (remote_is_async_p, remote_async): Add 'ops' argument.
11843 (remote_stopped_data_address): Update.
11844 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
11845 * target.c (update_current_target)
11846 (find_default_can_async_p, find_default_is_async_p): Update.
11847 (init_dummy_target): Update.
11848 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
11849 * target.h (struct target_ops) <to_stopped_by_watchpoint,
11850 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
11851 (target_can_async_p, target_is_async_p, target_async)
11852 (target_stopped_by_watchpoint): Update.
11853
e095146b
YQ
118542014-02-19 Yao Qi <yao@codesourcery.com>
11855
11856 PR gdb/16220
11857 * gdbarch.sh: Remove startup_gdbarch.
11858 * gdbarch.c: Regenerated.
11859 * gdbarch.h: Likewise.
11860
bc3c6b36
KB
118612014-02-17 Kevin Buettner <kevinb@redhat.com>
11862
11863 * rl78-tdep.c (rl78_g10_register_name): New function.
11864 (rl78_return_value): Add g10 support.
11865 (rl78_gdbarch_init): Register rl78_g10_register_name for the
11866 g10.
11867
98dc0167 118682014-02-17 Doug Evans <xdje42@gmail.com>
f01c1940
DE
11869
11870 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
11871 (SUBDIR_GUILE_SRCS): Ditto.
11872 (scm-gsmob.o): Ditto.
11873
842c05cd
YQ
118742014-02-17 Yao Qi <yao@codesourcery.com>
11875
11876 * gnu-nat.c (ILL_RPC): Declare defined function.
11877
25c0bd04
YQ
118782014-02-17 Yao Qi <yao@codesourcery.com>
11879
11880 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
11881 mach_msg_type_number_t.
11882 (gnu_write_inferior): Likewise.
11883
a9a758e3
YQ
118842014-02-17 Yao Qi <yao@codesourcery.com>
11885
11886 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
11887 in format string.
11888 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
11889 (inf_validate_procs, inf_signal): Likewise.
11890 (S_exception_raise_request): Likewise.
11891 (do_mach_notify_dead_name): Likewise.
11892 (steal_exc_port): Likewise.
11893 (gnu_read_inferior): Change 'copy_count''s type to
11894 mach_msg_type_number_t.
11895 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
11896 format string.
11897
bae8023e
TS
118982014-02-16 Thomas Schwinge <thomas@codesourcery.com>
11899
c82f56d9
TS
11900 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
11901 flag. Adjust all users; in particular...
11902 (gnu_wait): ..., don't decrement its value in here...
11903 (gnu_create_inferior): ..., and instead set the flag in here,
11904 around the startup_inferior call, and call that one with
11905 START_INFERIOR_TRAPS_EXPECTED.
11906
3398af6a
TS
11907 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
11908 (ILL_RPC): ... new macro.
11909 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
11910 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
11911 (do_mach_notify_send_once, S_proc_setmsgport_reply)
11912 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
11913 functions with ILL_RPC macro.
11914 (S_proc_pid2task_reply, S_proc_task2pid_reply)
11915 (S_proc_task2proc_reply, S_proc_proc2task_reply)
11916 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
11917 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
11918 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
11919 (S_proc_getlogin_reply, S_proc_getsid_reply)
11920 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
11921 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
11922 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
11923 (S_proc_getnports_reply, S_proc_is_important_reply)
11924 (S_proc_get_code_reply): New stub functions, generated with
11925 ILL_RPC macro.
11926
d47642c9
TS
11927 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
11928 collected the type check structures.
11929
bae8023e
TS
11930 * reply_mig_hack.awk: Don't expect to see the auto keyword.
11931
8a55ffb0
DE
119322014-02-14 Doug Evans <dje@google.com>
11933
11934 * target.c (target_write_partial): Fix result type.
11935
c2853f3d
JM
119362014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
11937
11938 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
11939 the proper offsets to access fpregset_t.
11940
ac61d2db
SA
119412014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
11942
11943 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
11944 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
11945 * h8300-tdep.c (setmachinelist): Remove global.
11946 * hppa-tdep.c (hppa_sigtramp): Remove global.
11947 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
11948 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
11949 * ravenscar-thread.c (update_target_observer): Remove global.
11950 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
11951
9d2d0b8b
TT
119522014-02-12 Tom Tromey <tromey@redhat.com>
11953
11954 * common/rsp-low.c: Update comments.
11955 * common/rsp-low.h: Update comments.
11956
a7191e8b
TT
119572014-02-12 Tom Tromey <tromey@redhat.com>
11958
11959 * common/rsp-low.c (convert_ascii_to_int): Remove.
11960 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
11961
ff0e980e
TT
119622014-02-12 Tom Tromey <tromey@redhat.com>
11963
11964 * common/rsp-low.h (unhexify): Don't declare.
11965 * common/rsp-low.c (unhexify): Remove.
11966
e9371aff
TT
119672014-02-12 Tom Tromey <tromey@redhat.com>
11968
11969 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
11970 * common/rsp-low.c (convert_int_to_ascii): Remove.
11971
971dc0b8
TT
119722014-02-12 Tom Tromey <tromey@redhat.com>
11973
11974 * common/rsp-low.h (hexify): Don't declare.
11975 * common/rsp-low.c (hexify): Remove.
11976
0a822afb
TT
119772014-02-12 Tom Tromey <tromey@redhat.com>
11978
11979 * common/rsp-low.c (hexify): Never take strlen of argument.
11980
9f1b45b0
TT
119812014-02-12 Tom Tromey <tromey@redhat.com>
11982
11983 * common/rsp-low.c (bin2hex): Never take strlen of argument.
11984 * remote.c (extended_remote_run, remote_rcmd)
11985 (remote_download_trace_state_variable, remote_save_trace_data)
11986 (remote_set_trace_notes): Update.
11987 * tracepoint.c (encode_source_string, tfile_write_status)
11988 (tfile_write_uploaded_tsv): Update.
11989
9c3d6531
TT
119902014-02-12 Tom Tromey <tromey@redhat.com>
11991
11992 * tracepoint.c: Include rsp-low.h.
11993 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
11994 * remote.c: Include rsp-low.h.
11995 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
11996 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
11997 (remote_unescape_input): Move to common/rsp-low.c.
11998 * common/rsp-low.h: New file.
11999 * common/rsp-low.c: New file.
12000 * Makefile.in (SFILES): Add common/rsp-low.c.
12001 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
12002 (COMMON_OBS): Add rsp-low.o.
12003 (rsp-low.o): New target.
12004
01fd3ea5
TT
120052014-02-12 Tom Tromey <tromey@redhat.com>
12006
12007 * utils.h: Include print-utils.h.
12008 (host_address_to_string, plongest, pulongest, phex, phex_nz)
12009 (int_string, core_addr_to_string, core_addr_to_string_nz)
12010 (hex_string, hex_string_custom): Don't declare.
12011 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
12012 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
12013 (hex_string_custom, int_string, core_addr_to_string)
12014 (core_addr_to_string_nz, host_address_to_string): Move to
12015 common/print-utils.c.
12016 * common/print-utils.h: New file.
12017 * common/print-utils.c: New file
12018 * Makefile.in (SFILES): Add common/print-utils.c.
12019 (HFILES_NO_SRCDIR): Add common/print-utils.h.
12020 (COMMON_OBS): Add print-utils.o.
12021 (print-utils.o): New target.
12022
9fb50108
TT
120232014-02-12 Tom Tromey <tromey@redhat.com>
12024
12025 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
12026
0548b5db
MK
120272014-02-12 Mark Kettenis <kettenis@gnu.org>
12028
12029 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
12030
493443a4
MK
120312014-02-12 Mark Kettenis <kettenis@gnu.org>
12032
12033 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
12034 if a PT_IO ptrace request returns sucessfully but indicates that 0
12035 bytes were transferred.
12036
706d0883
PA
120372014-02-12 Pedro Alves <palves@redhat.com>
12038 Kevin Buettner <kevinb@redhat.com>
12039
12040 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
12041 TYPE_INSTANCE_FLAG_CODE_SPACE.
12042
5caa2f0b
PA
120432014-02-12 Pedro Alves <palves@redhat.com>
12044
12045 * h8300-tdep.c (pseudo_from_raw_register)
12046 (raw_from_pseudo_register): New functions.
12047 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
12048 them.
12049
76fd5f74
PA
120502014-02-12 Pedro Alves <palves@redhat.com>
12051
12052 * h8300-tdep.c (h8300_register_sim_regno): New function.
12053 (h8300_gdbarch_init): Install h8300_register_sim_regno as
12054 gdbarch_register_sim_regno hook.
12055
8f008406
SA
120562014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
12057
12058 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
12059
195abc10
SA
120602014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
12061
12062 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
12063
93ffa5b9
MK
120642014-02-12 Mark Kettenis <kettenis@gnu.org>
12065
12066 * obsd-tdep.h (obsd_init_abi): New prototype.
12067 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
12068 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
12069 (obsd_init_abi): New functions.
12070 * i386obsd-tdep.c: Include "obsd-tdep.h".
12071 (i386obsd_init_abi): Call obsd_init_abi.
12072 * amd64obsd-tdep.c: Include "obsd-tdep.h".
12073 (amd64obsd_init_abi): Call obsd_init_abi.
12074 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
12075 obsd-tdep.c to gdb_target_obs.
12076
49caec94
JM
120772014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
12078
12079 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
12080 double float arguments to 16-byte in the argument slots.
12081
e1402065
DE
120822014-02-11 Doug Evans <xdje42@gmail.com>
12083
12084 * configure.ac: Don't crash if pkg-config is not found and guile
12085 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
12086 in guile checks.
12087 * configure: Regenerate.
12088
edcc890f
YQ
120892014-02-11 Yao Qi <yao@codesourcery.com>
12090
12091 * aix-thread.c (aix_thread_xfer_partial): Update comments.
12092 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
12093 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
12094 * gnu-nat.c (gnu_xfer_memory): Likewise.
12095 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
12096 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12097 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12098 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12099
9b409511
YQ
121002014-02-11 Yao Qi <yao@codesourcery.com>
12101
12102 * target.h (enum target_xfer_error): Rename to ...
12103 (enum target_xfer_status): ... it. New. All users updated.
12104 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
12105 New.
12106 (TARGET_XFER_STATUS_ERROR_P): New macro.
12107 (target_xfer_error_to_string): Remove declaration.
12108 (target_xfer_status_to_string): Declare.
12109 (target_xfer_partial_ftype): Adjust it.
12110 (struct target_ops) <to_xfer_partial>: Return
12111 target_xfer_status. Add argument xfered_len. Update
12112 comments.
12113 * target.c (target_xfer_error_to_string): Rename to ...
12114 (target_xfer_status_to_string): ... it. New. All callers
12115 updated.
12116 (target_read_live_memory): Likewise. Call target_xfer_partial
12117 instead of target_read.
12118 (memory_xfer_live_readonly_partial): Return
12119 target_xfer_status. Add argument xfered_len.
12120 (raw_memory_xfer_partial): Likewise.
12121 (memory_xfer_partial_1): Likewise.
12122 (memory_xfer_partial): Likewise.
12123 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
12124 properly. Update debug message.
12125 (default_xfer_partial, current_xfer_partial): Likewise.
12126 (target_write_partial): Likewise.
12127 (target_read_partial): Likewise. All callers updated.
12128 (read_whatever_is_readable): Likewise.
12129 (target_write_with_progress): Likewise.
12130 (target_read_alloc_1): Likewise.
12131
12132 * aix-thread.c (aix_thread_xfer_partial): Likewise.
12133 * auxv.c (procfs_xfer_auxv): Likewise.
12134 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
12135 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12136 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12137 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
12138 * corefile.c (read_memory): Adjust.
12139 * corelow.c (core_xfer_partial): Likewise.
12140 * ctf.c (ctf_xfer_partial): Likewise.
12141 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
12142 updated.
12143 (darwin_xfer_partial): Likewise.
12144 * exec.c (section_table_xfer_memory_partial): Likewise. All
12145 callers updated.
12146 (exec_xfer_partial): Likewise.
12147 * exec.h (section_table_xfer_memory_partial): Update
12148 declaration.
12149 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
12150 negative.
12151 (gnu_xfer_partial): Likewise.
12152 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
12153 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
12154 (ia64_hpux_xfer_solib_got): Likewise.
12155 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
12156 type of 'partial_len' to ULONGEST.
12157 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
12158 * linux-nat.c (linux_xfer_siginfo ): Likewise.
12159 (linux_nat_xfer_partial): Likewise.
12160 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
12161 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
12162 * monitor.c (monitor_xfer_memory): Likewise.
12163 (monitor_xfer_partial): Likewise.
12164 * procfs.c (procfs_xfer_partial): Likewise.
12165 * record-btrace.c (record_btrace_xfer_partial): Likewise.
12166 * record-full.c (record_full_xfer_partial): Likewise.
12167 (record_full_core_xfer_partial): Likewise.
12168 * remote-sim.c (gdbsim_xfer_memory): Likewise.
12169 (gdbsim_xfer_partial): Likewise.
12170 * remote.c (remote_write_bytes_aux): Likewise. All callers
12171 updated.
12172 (remote_write_bytes, remote_read_bytes): Likewise. All
12173 callers updated.
12174 (remote_flash_erase): Likewise. All callers updated.
12175 (remote_write_qxfer): Likewise. All callers updated.
12176 (remote_read_qxfer): Likewise. All callers updated.
12177 (remote_xfer_partial): Likewise.
12178 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12179 (rs6000_xfer_shared_libraries): Likewise.
12180 * sol-thread.c (sol_thread_xfer_partial): Likewise.
12181 (sol_thread_xfer_partial): Likewise.
12182 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12183 (sparc_xfer_partial): Likewise.
12184 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
12185 updated.
12186 (spu_xfer_partial): Likewise.
12187 * spu-multiarch.c (spu_xfer_partial): Likewise.
12188 * tracepoint.c (tfile_xfer_partial): Likewise.
12189 * windows-nat.c (windows_xfer_memory): Likewise.
12190 (windows_xfer_shared_libraries): Likewise.
12191 (windows_xfer_partial): Likewise.
12192 * valprint.c: Replace 'target_xfer_error' with
12193 'target_xfer_status' in comments.
12194
a8e63083
JB
121952014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
12196
12197 Checked in by Joel Brobecker <brobecker@adacore.com>.
12198 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
12199
e86b67d3
JB
122002014-02-11 Joel Brobecker <brobecker@adacore.com>
12201
12202 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
12203 function parameters.
12204
4b7d1f7f
WN
122052014-02-10 Will Newton <will.newton@linaro.org>
12206
12207 * elfread.c (elf_rel_plt_read): Look for a .got section if
12208 looking up .got.plt fails.
12209 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
12210 on address passed to elf_gnu_ifunc_record_cache.
12211 (elf_gnu_ifunc_resolve_addr): Likewise.
12212 (elf_gnu_ifunc_resolver_return_stop): Likewise.
12213
961842b2
JM
122142014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
12215
12216 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
12217 (X_RETTURN): New macro.
12218 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
12219
12220 * sparc64-tdep.c (sparc64_init_abi): Hook
12221 sparc_in_function_epilogue_p.
12222
3f03e7b1
GB
122232014-02-10 Gary Benson <gbenson@redhat.com>
12224
12225 * symfile-debug.c (debug_qf_expand_symtabs_matching):
12226 Rename name_matcher to symbol_matcher.
12227
96f861ef
GB
122282014-02-10 Gary Benson <gbenson@redhat.com>
12229
12230 * symfile-debug.c (debug_qf_expand_symtabs_matching):
12231 Use expand_symtabs_file_matcher_ftype and
12232 expand_symtabs_symbol_matcher_ftype.
12233
ee01b665
JB
122342014-02-10 Joel Brobecker <brobecker@adacore.com>
12235
12236 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
12237 (struct ada_symbol_cache): New.
12238 (ada_free_symbol_cache): Forward declare.
12239 (struct ada_pspace_data): New.
12240 (ada_pspace_data_handle): New static global.
12241 (get_ada_pspace_data, ada_pspace_data_cleanup)
12242 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
12243 (cache_space, cache): Delete, now folded inside struct
12244 ada_pspace_data.
12245 (ada_get_symbol_cache): New function.
12246 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
12247 implementation.
12248 (_initialize_ada_language): Remove initialization of cache_space.
12249 Move call to observer_attach_inferior_exit up, grouping it
12250 with the other observer registrations inside this function.
12251 Rename command to be more general. Add call to
12252 register_program_space_data_with_cleanup.
12253
143adbbf
JB
122542014-02-10 Joel Brobecker <brobecker@adacore.com>
12255
12256 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
12257 ada_new_objfile_observer.
12258 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
12259 (_initialize_tasks): Update uses of ada_new_objfile_observer
12260 and ada_tasks_normal_stop_observer.
12261
aa4fb036
JB
122622014-02-10 Joel Brobecker <brobecker@adacore.com>
12263
12264 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
12265 returned by the 'Length attribute to integer.
12266
9dee8cc6
JB
122672014-02-10 Joel Brobecker <brobecker@adacore.com>
12268
12269 * ada-lang.c (_initialize_ada_language): Initialize
12270 cache_space obstack.
12271
3d9434b5
JB
122722014-02-10 Joel Brobecker <brobecker@adacore.com>
12273
12274 * ada-lang.c (HASH_SIZE): New macro.
12275 (struct cache_entry): New type.
12276 (cache_space, cache): New static globals.
12277 (ada_clear_symbol_cache, find_entry): New functions.
12278 (lookup_cached_symbol, cache_symbol): Implement.
12279 (ada_new_objfile_observer, ada_free_objfile_observer): New.
12280 (_initialize_ada_language): Attach ada_new_objfile_observer
12281 and ada_free_objfile_observer.
12282
f0c5f9b2
JB
122832014-02-10 Joel Brobecker <brobecker@adacore.com>
12284
12285 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
12286 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
12287 struct block * parameter.
12288 (ada_lookup_symbol_list_worker): Constify local variable "block".
12289 Remove cast which is no longer necessary.
12290
ed3ef339
DE
122912014-02-10 Doug Evans <xdje42@gmail.com>
12292
12293 Add Guile as an extension language.
12294 * NEWS: Mention Guile scripting.
12295 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
12296 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
12297 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
12298 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
12299 (CLIBS): Add GUILE_LIBS.
12300 (install-guile): New rule.
12301 (guile.o): New rule.
12302 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
12303 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
12304 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
12305 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
12306 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
12307 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
12308 (scm-type.o, scm-utils.o, scm-value.o): New rules.
12309 * configure.ac: New option --with-guile.
12310 * configure: Regenerate.
12311 * config.in: Regenerate.
12312 * auto-load.c: Remove #include "python/python.h". Add #include
12313 "gdb/section-scripts.h".
12314 (source_section_scripts): Handle Guile scripts.
12315 (_initialize_auto_load): Add name of Guile objfile script to
12316 scripts-directory help text.
12317 * breakpoint.c (condition_command): Tweak comment to include Scheme.
12318 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
12319 (struct breakpoint): New member scm_bp_object.
12320 * defs.h (enum command_control_type): New value guile_control.
12321 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
12322 "extension.h".
12323 (show_user): Update comment.
12324 (_initialize_cli_cmds): Update help text for "show user". Update help
12325 text for max-user-call-depth.
12326 * cli/cli-script.c: Remove #include "python/python.h". Add #include
12327 "extension.h".
12328 (multi_line_command_p): Add guile_control.
12329 (print_command_lines): Handle guile_control.
12330 (execute_control_command, recurse_read_control_structure): Ditto.
12331 (process_next_line): Recognize "guile" commands.
12332 * disasm.c (gdb_disassemble_info): Make non-static.
12333 * disasm.h: #include "dis-asm.h".
12334 (struct gdbarch): Add forward decl.
12335 (gdb_disassemble_info): Declare.
12336 * extension.c: #include "guile/guile.h".
12337 (extension_languages): Add guile.
12338 (get_ext_lang_defn): Handle EXT_LANG_GDB.
12339 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
12340 * gdbtypes.c (get_unsigned_type_max): New function.
12341 (get_signed_type_minmax): New function.
12342 * gdbtypes.h (get_unsigned_type_max): Declare.
12343 (get_signed_type_minmax): Declare.
12344 * guile/README: New file.
12345 * guile/guile-internal.h: New file.
12346 * guile/guile.c: New file.
12347 * guile/guile.h: New file.
12348 * guile/scm-arch.c: New file.
12349 * guile/scm-auto-load.c: New file.
12350 * guile/scm-block.c: New file.
12351 * guile/scm-breakpoint.c: New file.
12352 * guile/scm-disasm.c: New file.
12353 * guile/scm-exception.c: New file.
12354 * guile/scm-frame.c: New file.
12355 * guile/scm-gsmob.c: New file.
12356 * guile/scm-iterator.c: New file.
12357 * guile/scm-lazy-string.c: New file.
12358 * guile/scm-math.c: New file.
12359 * guile/scm-objfile.c: New file.
12360 * guile/scm-ports.c: New file.
12361 * guile/scm-pretty-print.c: New file.
12362 * guile/scm-safe-call.c: New file.
12363 * guile/scm-string.c: New file.
12364 * guile/scm-symbol.c: New file.
12365 * guile/scm-symtab.c: New file.
12366 * guile/scm-type.c: New file.
12367 * guile/scm-utils.c: New file.
12368 * guile/scm-value.c: New file.
12369 * guile/lib/gdb.scm: New file.
12370 * guile/lib/gdb/boot.scm: New file.
12371 * guile/lib/gdb/experimental.scm: New file.
12372 * guile/lib/gdb/init.scm: New file.
12373 * guile/lib/gdb/iterator.scm: New file.
12374 * guile/lib/gdb/printing.scm: New file.
12375 * guile/lib/gdb/types.scm: New file.
12376 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
12377 (VPATH): Add $(GUILE_SRCDIR).
12378 (GUILE_DIR): New variable.
12379 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
12380 (all): Add stamp-guile dependency.
12381 (stamp-guile): New rule.
12382 (clean-guile, install-guile, uninstall-guile): New rules.
12383 (install-only): Add install-guile dependency.
12384 (uninstall): Add uninstall-guile dependency.
12385 (clean): Add clean-guile dependency.
12386
ac020ec5
DE
123872014-02-09 Doug Evans <xdje42@gmail.com>
12388
12389 Revert this patch (which I approved, mea culpa).
12390
12391 2014-02-08 Mark Kettenis <kettenis@gnu.org>
12392
12393 * Makefile.in (all-lib): Remove.
12394 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12395
2a081c59
JK
123962014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
12397
12398 Fix Python stack corruption.
12399 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
12400 gdb_py_longest.
12401
0a6bd22d
MK
124022014-02-08 Mark Kettenis <kettenis@gnu.org>
12403
12404 * Makefile.in (all-lib): Remove.
12405 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12406
1a860409
DE
124072014-02-07 Doug Evans <dje@google.com>
12408
12409 * extension-priv.h (extension_language_script_ops): Add comment.
12410 (extension_language_ops): Add comment.
caf5a491 12411 (active_ext_lang_state): Fix typo in comment.
1a860409 12412
d137e6dc
PA
124132014-02-07 Pedro Alves <palves@redhat.com>
12414
0dcb32c3 12415 PR breakpoints/16292
d137e6dc
PA
12416 * infrun.c (handle_signal_stop) <signal arrives while stepping
12417 over a breakpoint>: Switch back to the stepping thread.
12418
ce6d0892
YQ
124192014-02-07 Yao Qi <yao@codesourcery.com>
12420
12421 * target.c (target_xfer_partial): Return zero if LEN is zero.
12422
2ed4b548
YQ
124232014-02-07 Yao Qi <yao@codesourcery.com>
12424
12425 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
12426 (ld_so_xfer_auxv): Likewise.
12427 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12428 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12429 * corelow.c (core_xfer_partial): Likewise.
12430 * ctf.c (ctf_xfer_partial): Likewise.
12431 * darwin-nat.c (darwin_read_dyld_info): Likewise.
12432 (darwin_xfer_partial): Likewise.
12433 * exec.c (exec_xfer_partial): Likewise.
12434 * gnu-nat.c (gnu_xfer_partial): Likewise.
12435 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
12436 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
12437 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
12438 * linux-nat.c (linux_xfer_siginfo): Likewise.
12439 (linux_proc_xfer_spu): Likewise.
12440 * procfs.c (procfs_xfer_partial): Likewise.
12441 * record-full.c (record_full_xfer_partial): Likewise.
12442 (record_full_core_xfer_partial): Likewise.
12443 * remote-sim.c (gdbsim_xfer_partial): Likewise.
12444 * remote.c (remote_write_qxfer): Likewise.
12445 (remote_write_qxfer, remote_read_qxfer): Likewise.
12446 (remote_xfer_partial): Likewise.
12447 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12448 (rs6000_xfer_shared_libraries): Likewise.
12449 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12450 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12451 (spu_xfer_partial): Likewise.
12452 * target.c (memory_xfer_partial_1): Likewise.
12453 * tracepoint.c (tfile_xfer_partial): Likewise.
12454 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
12455 (windows_xfer_partial): Likewise.
12456
c09f20e4
YQ
124572014-02-07 Yao Qi <yao@codesourcery.com>
12458
12459 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
12460 comments.
12461 (core_xfer_shared_libraries_aix): Likewise.
12462 * gdbarch.c, gdbarch.h: Regenerated.
12463 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
12464 ULONGEST. Change 'len_avail' type to ULONGEST.
12465 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12466 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12467 declaration.
12468 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
12469
8635b3bf
YQ
124702014-02-07 Yao Qi <yao@codesourcery.com>
12471
12472 * corefile.c (memory_error): Get 'exception' from ERR and pass
12473 'exception' to throw_error.
12474
6dddc817
DE
124752014-02-06 Doug Evans <xdje42@gmail.com>
12476
12477 * configure.ac (libpython checking): Remove all but python.o from
12478 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
12479 * configure: Regenerate.
12480
12481 * Makefile.in (SFILES): Add extension.c.
12482 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
12483 (COMMON_OBS): Add extension.o.
12484 * extension.h: New file.
12485 * extension-priv.h: New file.
12486 * extension.c: New file.
12487
12488 * python/python-internal.h: #include "extension.h".
12489 (gdbpy_auto_load_enabled): Declare.
12490 (gdbpy_apply_val_pretty_printer): Declare.
12491 (gdbpy_apply_frame_filter): Declare.
12492 (gdbpy_preserve_values): Declare.
12493 (gdbpy_breakpoint_cond_says_stop): Declare.
12494 (gdbpy_breakpoint_has_cond): Declare.
12495 (void source_python_script_for_objfile): Delete.
12496 * python/python.c: #include "extension-priv.h".
12497 Delete inclusion of "observer.h".
12498 (extension_language_python): Moved here and renamed from
12499 script_language_python in py-auto-load.c.
12500 Redefined to be of type extension_language_defn.
12501 (python_extension_script_ops): New global.
12502 (python_extension_ops): New global.
12503 (struct python_env): New member previous_active.
12504 (restore_python_env): Call restore_active_ext_lang.
12505 (ensure_python_env): Call set_active_ext_lang.
12506 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
12507 New arg extlang.
12508 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
12509 New arg extlang.
12510 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
12511 New arg extlang.
12512 (gdbpy_eval_from_control_command): Renamed from
12513 eval_python_from_control_command, made static. New arg extlang.
12514 (gdbpy_source_script) Renamed from source_python_script, made static.
12515 New arg extlang.
12516 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
12517 result to int. New arg extlang.
12518 (gdbpy_source_objfile_script): Renamed from
12519 source_python_script_for_objfile, made static. New arg extlang.
12520 (gdbpy_start_type_printers): Renamed from start_type_printers, made
12521 static. New args extlang, extlang_printers. Change result type to
12522 "void".
12523 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
12524 static. New arg extlang. Rename arg printers to extlang_printers
12525 and change type to ext_lang_type_printers *.
12526 (gdbpy_free_type_printers): Renamed from free_type_printers, made
12527 static. Replace argument arg with extlang, extlang_printers.
12528 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
12529 (!HAVE_PYTHON, source_python_script): Delete.
12530 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
12531 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
12532 (!HAVE_PYTHON, start_type_printers): Delete.
12533 (!HAVE_PYTHON, apply_type_printers): Delete.
12534 (!HAVE_PYTHON, free_type_printers): Delete.
12535 (_initialize_python): Delete call to observer_attach_before_prompt.
12536 (finalize_python): Set/restore active extension language.
12537 (gdbpy_finish_initialization) Renamed from
12538 finish_python_initialization, made static. New arg extlang.
12539 (gdbpy_initialized): New function.
12540 * python/python.h: #include "extension.h". Delete #include
12541 "value.h", "mi/mi-cmds.h".
12542 (extension_language_python): Declare.
12543 (GDBPY_AUTO_FILE_NAME): Delete.
12544 (enum py_bt_status): Moved to extension.h and renamed to
12545 ext_lang_bt_status.
12546 (enum frame_filter_flags): Moved to extension.h.
12547 (enum py_frame_args): Moved to extension.h and renamed to
12548 ext_lang_frame_args.
12549 (finish_python_initialization): Delete.
12550 (eval_python_from_control_command): Delete.
12551 (source_python_script): Delete.
12552 (apply_val_pretty_printer): Delete.
12553 (apply_frame_filter): Delete.
12554 (preserve_python_values): Delete.
12555 (gdbpy_script_language_defn): Delete.
12556 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
12557 (start_type_printers, apply_type_printers, free_type_printers): Delete.
12558
12559 * auto-load.c: #include "extension.h".
12560 (GDB_AUTO_FILE_NAME): Delete.
12561 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
12562 (script_language_gdb): Delete, moved to extension.c and renamed to
12563 extension_language_gdb.
12564 (source_gdb_script_for_objfile): Delete.
12565 (auto_load_pspace_info): New member unsupported_script_warning_printed.
12566 (loaded_script): Change type of language member to
12567 struct extension_language_defn *.
12568 (init_loaded_scripts_info): Initialize
12569 unsupported_script_warning_printed.
12570 (maybe_add_script): Make static. Change type of language arg to
12571 struct extension_language_defn *.
12572 (clear_section_scripts): Reset unsupported_script_warning_printed.
12573 (auto_load_objfile_script_1): Rewrite to use extension language API.
12574 (auto_load_objfile_script): Make public. Remove support-compiled-in
12575 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
12576 (source_section_scripts): Rewrite to use extension language API.
12577 (load_auto_scripts_for_objfile): Rewrite to use
12578 auto_load_scripts_for_objfile.
12579 (collect_matching_scripts_data): Change type of language member to
12580 struct extension_language_defn *.
12581 (auto_load_info_scripts): Change type of language arg to
12582 struct extension_language_defn *.
12583 (unsupported_script_warning_print): New function.
12584 (script_not_found_warning_print): Make static.
12585 (_initialize_auto_load): Rewrite construction of scripts-directory
12586 help.
12587 * auto-load.h (struct objfile): Add forward decl.
12588 (struct script_language): Delete.
12589 (struct auto_load_pspace_info): Add forward decl.
12590 (struct extension_language_defn): Add forward decl.
12591 (maybe_add_script): Delete.
12592 (auto_load_objfile_script): Declare.
12593 (script_not_found_warning_print): Delete.
12594 (auto_load_info_scripts): Update prototype.
12595 (auto_load_gdb_scripts_enabled): Declare.
12596 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
12597 auto_load_python_scripts_enabled and made public.
12598 (script_language_python): Delete, moved to python.c.
12599 (gdbpy_script_language_defn): Delete.
12600 (info_auto_load_python_scripts): Update to use
12601 extension_language_python.
12602
12603 * breakpoint.c (condition_command): Replace call to
12604 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
12605 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
12606 with call to breakpoint_ext_lang_cond_says_stop.
12607 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
12608 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
12609 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
12610 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
12611 New arg slang.
12612 (local_setattro): Print name of extension language with existing
12613 stop condition.
12614
12615 * valprint.c (val_print, value_print): Update to call
12616 apply_ext_lang_val_pretty_printer.
12617 * cp-valprint.c (cp_print_value): Update call to
12618 apply_ext_lang_val_pretty_printer.
12619 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
12620 (gdbpy_apply_val_pretty_printer): Renamed from
12621 apply_val_pretty_printer. New arg extlang.
12622 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
12623
12624 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
12625 extension language API.
12626 * cli/cli-script.c (execute_control_command): Update to call
12627 eval_ext_lang_from_control_command.
12628
12629 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
12630 enum ext_lang_bt_status values. Update call to
12631 apply_ext_lang_frame_filter.
12632 (mi_cmd_stack_list_locals): Ditto.
12633 (mi_cmd_stack_list_args): Ditto.
12634 (mi_cmd_stack_list_variables): Ditto.
12635 * mi/mi-main.c: Delete #include "python/python-internal.h".
12636 Add #include "extension.h".
12637 (mi_cmd_list_features): Replace reference to python internal variable
12638 gdb_python_initialized with call to ext_lang_initialized_p.
12639
12640 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
12641 Update to use enum ext_lang_frame_args. Update to call
12642 apply_ext_lang_frame_filter.
12643 * python/py-framefilter.c (extract_sym): Update to use enum
12644 ext_lang_bt_status.
12645 (extract_value, py_print_type, py_print_value): Ditto.
12646 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
12647 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
12648 (py_print_frame): Ditto.
12649 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
12650 New arg extlang. Update to use enum ext_lang_bt_status.
12651
12652 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
12653 finish_python_initialization. Replace with call to
12654 finish_ext_lang_initialization.
12655
12656 * typeprint.c (do_free_global_table): Update to call
12657 free_ext_lang_type_printers.
12658 (create_global_typedef_table): Update to call
12659 start_ext_lang_type_printers.
12660 (find_global_typedef): Update to call apply_ext_lang_type_printers.
12661 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
12662 (type_print_options): Change type of global_printers from "void *"
12663 to "struct ext_lang_type_printers *".
12664
12665 * value.c (preserve_values): Update to call preserve_ext_lang_values.
12666 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
12667 (gdbpy_preserve_values): Renamed from preserve_python_values.
12668 New arg extlang.
12669 (!HAVE_PYTHON, preserve_python_values): Delete.
12670
12671 * utils.c (quit_flag): Delete, moved to extension.c.
12672 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
12673 extension.c.
12674
12675 * eval.c: Delete #include "python/python.h".
12676 * main.c: Delete #include "python/python.h".
12677
12678 * defs.h: Update comment.
12679
6af79985
JB
126802014-02-06 Joel Brobecker <brobecker@adacore.com>
12681
12682 GDB 7.7 released.
12683
12c5175d
MK
126842014-02-05 Mark Kettenis <kettenis@gnu.org>
12685
12686 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
12687 defined.
12688
8dc5b319
YQ
126892014-02-05 Yao Qi <yao@codesourcery.com>
12690
12691 * remote.c (remote_pass_signals): Remove local 'buf' and use
12692 rs->buf.
12693 (remote_program_signals): Likewise.
12694
de7b2893
YQ
126952014-02-05 Yao Qi <yao@codesourcery.com>
12696
12697 * ctf.c: Include "inferior.h" and "gdbthread.h".
12698 (CTF_PID): A new macro.
12699 (ctf_open): Call inferior_appeared and add_thread_silent.
12700 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
12701 (ctf_thread_alive): New function.
12702 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
12703
66d032ac
YQ
127042014-02-05 Yao Qi <yao@codesourcery.com>
12705
12706 Revert this patch:
12707
12708 2013-05-24 Yao Qi <yao@codesourcery.com>
12709
12710 * tracepoint.c (TFILE_PID): Remove.
12711 (tfile_open): Don't add thread and inferior.
12712 (tfile_close): Don't set 'inferior_ptid'. Don't call
12713 exit_inferior_silent.
12714 (tfile_thread_alive): Remove.
12715 (init_tfile_ops): Don't set field 'to_thread_alive' of
12716 tfile_ops.
12717
f4ccffad
CE
127182014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
12719
12720 * remote.c (remote_start_remote): Call remote_check_symbols even
12721 if only symbol-file (not file) has been given.
12722
591a12a1
UW
127232014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12724
12725 * gdbarch.sh (skip_entrypoint): New callback.
12726 * gdbarch.c, gdbarch.h: Regenerate.
12727 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
12728 * infrun.c (fill_in_stop_func): Likewise.
12729 * ppc-linux-tdep.c: Include "elf/ppc64.h".
12730 (ppc_elfv2_elf_make_msymbol_special): New function.
12731 (ppc_elfv2_skip_entrypoint): Likewise.
12732 (ppc_linux_init_abi): Install them for ELFv2.
12733
cc0e89c5
UW
127342014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12735
12736 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
12737 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
12738 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
12739 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
12740 structures returned in GPRs.
12741
52f548e4
UW
127422014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12743
12744 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
12745 offset to the stack parameter list for the ELFv2 ABI.
12746
d4094b6a
UW
127472014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12748
12749 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
12750 set_gdbarch_convert_from_func_ptr_addr and
12751 set_gdbarch_elf_make_msymbol_special for ELFv1.
12752 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
12753 function descriptors on ELFv1.
12754 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
12755 set up r12 at function entry.
12756
cd453cd0
UW
127572014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12758
12759 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
12760 (struct gdbarch_tdep): New member elf_abi.
12761
12762 * rs6000-tdep.c: Include "elf/ppc64.h".
12763 (rs6000_gdbarch_init): Detect ELF ABI version.
12764
0ff3e01f
UW
127652014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12766
12767 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
12768 within a register pair holding a DFP 128-bit value on little-endian.
12769 (ppc64_sysv_abi_return_value_base): Likewise.
12770 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
12771 (dfp_pseudo_register_write): Likewise.
12772
5b757e5d
UW
127732014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12774
12775 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
12776 offset on little-endian when passing _Decimal32.
12777 (ppc64_sysv_abi_return_value_base): Likewise for return values.
12778
084ee545
UW
127792014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12780
12781 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
12782 of the overlapped FP register within the VSX register on little-
12783 endian platforms.
12784 (efpr_pseudo_register_write): Likewise.
12785
d63167af
UW
127862014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12787
12788 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
12789 offset on little-endian when passing small structures.
12790
e765b44c
UW
127912014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12792
12793 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
12794 (struct ppc64_sysv_argpos): New data structure.
12795 (ppc64_sysv_abi_push_float): Remove.
12796 (ppc64_sysv_abi_push_val): New function.
12797 (ppc64_sysv_abi_push_integer): Likewise.
12798 (ppc64_sysv_abi_push_freg): Likewise.
12799 (ppc64_sysv_abi_push_vreg): Likewise.
12800 (ppc64_sysv_abi_push_param): Likewise.
12801 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
12802 (ppc64_sysv_abi_return_value_base): New function.
12803 (ppc64_sysv_abi_return_value): Refactor to use it.
12804
36c24d95
UW
128052014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12806
12807 * NEWS: Document new target powerpc64le-*-linux*.
12808
26fd9228
MK
128092014-02-04 Mark Kettenis <kettenis@gnu.org>
12810
12811 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
12812 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
12813 core dumps.
12814 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
12815 register set used in ELF core dumps. Add floating-point register set.
12816
c5bb7362
KB
128172014-02-03 Kevin Buettner <kevinb@redhat.com>
12818
74228e77 12819 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
c5bb7362
KB
12820 dwarf2_to_gdb[] table using symbolic constants. Adjust
12821 penultimate entry from number representing the PC register
12822 to symbolic constant representing the MDR register. Add
12823 constant for the PC register to the end of the table.
12824
af09351e
MK
128252014-02-03 Mark Kettenis <kettenis@gnu.org>
12826
12827 * bsd-kvm.c: Include <sys/param.h>
12828
8507e05d
MK
128292014-02-03 Mark Kettenis <kettenis@gnu.org>
12830
12831 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
12832
ae56bfb8
JB
128332014-01-31 Joel Brobecker <brobecker@adacore.com>
12834
12835 * ada-lang.h (clear_ada_sym_cache): Delete.
12836
718ee4dc
UW
128372014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
12838
12839 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
12840
401e27fd
JM
128412014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
12842
12843 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
12844 the sigreturn register save area only if the syscall is
12845 sigreturn.
12846
a7c88acd
JB
128472014-01-29 Joel Brobecker <brobecker@adacore.com>
12848
12849 * valops.c (value_slice): Minor reformatting.
12850
fa0079ea
UW
128512014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
12852
12853 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
12854
c6044dd1
JB
128552014-01-28 Joel Brobecker <brobecker@adacore.com>
12856
12857 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
12858 New static globals.
12859 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
12860 (ada_ignore_descriptive_types_p): New static global.
12861 (find_parallel_type_by_descriptive_type): Return immediately
12862 if ada_ignore_descriptive_types_p is set.
12863 (_initialize_ada_language): Register new commands "maintenance
12864 set ada", "maintenance show ada", "maintenance set ada
12865 ignore-descriptive-types" and "maintenance show ada
12866 ignore-descriptive-types".
12867 * NEWS: Add entry for new "maint ada set/show
12868 ignore-descriptive-types" commands.
12869
568e808b
MM
128702014-01-27 Markus Metzger <markus.t.metzger@intel.com>
12871
12872 * record-btrace.c (record_btrace_close): Call btrace_teardown
12873 for all threads.
12874
467d141b
JB
128752014-01-27 Joel Brobecker <brobecker@adacore.com>
12876
12877 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
12878 "ui-out.h".
12879
fb151210
JB
128802014-01-27 Joel Brobecker <brobecker@adacore.com>
12881
12882 * ada-typeprint (type_is_full_subrange_of_target_type):
12883 New function.
12884 (print_range): Add parameter bounds_prefered_p. If not set,
12885 try printing range types using the name of their base type.
12886 (print_range_type): Add parameter bounds_prefered_p.
12887 Use it in call to print_range.
12888 (print_array_type, ada_print_type): Update calls to print_range
12889 and print_range_type.
12890
aba02109
JB
128912014-01-27 Joel Brobecker <brobecker@adacore.com>
12892
12893 * ada-typeprint.c (print_array_type, print_choices, print_range)
12894 (print_range_bound, print_dynamic_range_bound, print_range_type):
12895 Remove declaration.
12896
e62e21fd
JB
128972014-01-27 Joel Brobecker <brobecker@adacore.com>
12898
12899 * ada-typeprint.c (print_range): Add missing empty line
12900 after local declaration.
12901
859cf5d1
JB
129022014-01-27 Joel Brobecker <brobecker@adacore.com>
12903
12904 * ada-valprint.c (print_optional_low_bound): Get index_type's
12905 target type for as long as it is a TYPE_CODE_RANGE.
12906
25790f6f
JB
129072014-01-27 Joel Brobecker <brobecker@adacore.com>
12908
12909 * procfs.c (procfs_make_note_section): Remove assertion and
12910 associated comment.
12911
6b6aa828
YQ
129122014-01-24 Yao Qi <yao@codesourcery.com>
12913
12914 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
12915 * corelow.c (get_core_siginfo): Likewise.
12916
5d6df423
YQ
129172014-01-24 Yao Qi <yao@codesourcery.com>
12918
12919 * remote.c (remote_write_bytes_aux): Change type of 'len' to
12920 ULONGEST. Don't check 'len' is negative.
12921 (remote_write_bytes): Change type of 'len' to ULONGEST.
12922
83b645b8
TT
129232014-01-23 Tom Tromey <tromey@redhat.com>
12924
12925 PR python/16485:
12926 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
12927 Handle exception from frame.block.
12928 (FrameVars.fetch_frame_locals): Likewise.
12929
0740f8d8
TT
129302014-01-23 Tom Tromey <tromey@redhat.com>
12931
12932 PR python/16487:
12933 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
12934 on a NULL pointer. Move "goto error" to correct place.
12935
21909fa1
TT
129362014-01-23 Tom Tromey <tromey@redhat.com>
12937
12938 PR python/16491:
12939 * python/py-framefilter.c (apply_frame_filter): Call
12940 ensure_python_env after computing gdbarch.
12941
17fde6d0
YQ
129422014-01-23 Yao Qi <yao@codesourcery.com>
12943
12944 * target.c (raw_memory_xfer_partial): Change argument type
12945 from void * to gdb_byte *.
12946 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
12947
87ce2a04
DE
129482014-01-22 Doug Evans <dje@google.com>
12949
12950 New gdbserver option --debug-format=timestamp.
12951 * NEWS: Mention it.
12952
237b092b
AA
129532014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
12954
12955 * syscalls/s390x-linux.xml: New file.
12956 * syscalls/s390-linux.xml: New file.
12957 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
12958 (XML_SYSCALL_FILENAME_S390X): Likewise.
12959 (op_svc): New enum value for SVC opcode.
12960 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
12961 (s390_linux_get_syscall_number): New function.
12962 (s390_gdbarch_init): Register '*get_syscall_number' and the
12963 syscall xml file name.
12964 * data-directory/Makefile.in (SYSCALLS_FILES): Add
12965 "s390-linux.xml" and "s390x-linux.xml".
12966 * NEWS: Announce new feature.
12967
54bff650
BS
129682014-01-22 Baruch Siach <baruch@tkos.co.il>
12969
12970 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
12971
14e361d7
PA
129722014-01-22 Pedro Alves <palves@redhat.com>
12973
12974 * xtensa-config.c: Include defs.h.
12975
46bbb3ed
JB
129762014-01-22 Joel Brobecker <brobecker@adacore.com>
12977
12978 * common/common-utils.h: Add "ARI:" comment beside __func__
12979 reference.
12980
3a80edfc
JB
129812014-01-22 Joel Brobecker <brobecker@adacore.com>
12982
12983 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
12984 documentation a bit.
12985
4869db5e
RM
129862014-01-21 Roland McGrath <mcgrathr@google.com>
12987
12988 * configure.ac: Call AM_PROG_INSTALL_STRIP.
12989 * configure: Regenerate.
12990 * aclocal.m4: Regenerate.
12991 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
12992 New substituted variables.
12993 (install-strip): New target.
12994 (INSTALL_SCRIPT): New substituted variable.
12995 (FLAGS_TO_PASS): Add it.
12996 (install-only): Use $(INSTALL_SCRIPT) rather than
12997 $(INSTALL_PROGRAM) for gcore.
12998
9ea4267d
TT
129992014-01-20 Tom Tromey <tromey@redhat.com>
13000
13001 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
13002 together.
13003
1f2bdf09
TT
130042014-01-20 Tom Tromey <tromey@redhat.com>
13005
13006 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
13007 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
13008 (deprecated_cmd_warning, complete_on_cmdlist): Update.
13009 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
13010 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
13011 (struct cmd_list_element) <flags>: Remove.
13012 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
13013 doc_allocated>: New fields.
13014 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
13015 bitfields.
13016 * maint.c (maintenance_do_deprecate): Update.
13017 * top.c (execute_command): Update.
13018
e671835b
BS
130192014-01-20 Baruch Siach <baruch@tkos.co.il>
13020
13021 * xtensa-linux-nat.c: Include asm/ptrace.h.
13022
50367cd2
IB
130232014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13024
13025 * Makefile.in (SFILES): Add d-support.c.
13026 (COMMON_OBS): Add d-support.o.
13027 * d-lang.h (d_parse_symbol): Add comment, now defined in
13028 d-support.c.
13029 * d-lang.c (parse_call_convention)
13030 (parse_attributes, parse_function_types)
13031 (parse_function_args, parse_type, parse_identifier)
13032 (call_convention_p, d_parse_symbol): Move functions to ...
13033 * d-support.c: ... New file.
13034
ec9f644a
IB
130352014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13036
13037 * d-lang.h (d_parse_symbol): Add declaration.
13038 * d-lang.c (extract_identifiers)
13039 (extract_type_info): Remove functions.
13040 (parse_call_convention, parse_attributes)
13041 (parse_function_types, parse_function_args)
13042 (parse_type, parse_identifier, call_convention_p)
13043 (d_parse_symbol): New functions.
13044 (d_demangle): Use d_parse_symbol to demangle D symbols.
13045
94b1b47e
IB
130462014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13047
13048 * d-lang.h (struct builtin_d_type): New data type.
13049 (builtin_d_type): Add declaration.
13050 * d-lang.c (d_language_arch_info, build_d_types)
13051 (builtin_d_type): New functions.
13052 (enum d_primitive_types): New data type.
13053 (d_language_defn): Change c_language_arch_info to
13054 d_language_arch_info.
13055 (d_type_data): New static variable.
13056 (_initialize_d_language): Initialize d_type_data.
13057
63778547
IB
130582014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13059
13060 * d-lang.h (d_main_name): Add declaration.
13061 * d-lang.c (d_main_name): New function.
13062 * symtab.c (find_main_name): Add call to d_main_name.
13063
3271ba66
IB
130642014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13065
13066 * d-lang.c (d_language_defn): Change macro_expansion_c to
13067 macro_expansion_no.
13068
d36b3012
IB
130692014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13070
13071 * MAINTAINERS: Add myself as a write-after-approval maintainer.
13072
c90a6fb7
SDJ
130732014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
13074
13075 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
13076 gdb_exception" declaration.
13077 * remote.c (getpkt_or_notif_sane): Likewise.
13078
749234e5
DE
130792014-01-17 Doug Evans <dje@google.com>
13080
13081 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
13082 function, contents of dirnames_to_char_ptr_vec_append moved here.
13083 (delim_string_to_char_ptr_vec): New function.
13084 (dirnames_to_char_ptr_vec_append): Rewrite.
13085 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
13086
df049a58
DE
130872014-01-17 Doug Evans <dje@google.com>
13088
13089 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
13090 and moved here ...
13091 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
13092 #include "common-utils.h".
13093 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
13094 * common/vec.h (VEC_ASSERT_PASS): Update.
13095 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
13096 (MACH_CHECK_ERROR): Update.
13097
69f97648
SM
130982014-01-17 Simon Marchi <simon.marchi@ericsson.com>
13099
13100 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
13101 comments.
13102 * gdbarch.h: Regenerate.
13103
98b1cfdc
TT
131042014-01-16 Tom Tromey <tromey@redhat.com>
13105
13106 * value.c (struct value) <regnum>: Move earlier.
13107
77a19445
TT
131082014-01-16 Tom Tromey <tromey@redhat.com>
13109
13110 * remote.c (extended_remote_create_inferior): Rename from
13111 extended_remote_create_inferior_1. Add "ops" argument. Remove
13112 old implementation.
13113
62261490
PA
131142014-01-16 Pedro Alves <palves@redhat.com>
13115
13116 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
13117 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
13118 the backchain.
13119
4d65956b
DE
131202014-01-16 Doug Evans <dje@google.com>
13121
13122 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
13123
52834460
MM
131242014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13125
13126 * btrace.h (btrace_thread_flag): New.
13127 (struct btrace_thread_info) <flags>: New.
13128 * record-btrace.c (record_btrace_resume_thread)
13129 (record_btrace_find_thread_to_move, btrace_step_no_history)
13130 (btrace_step_stopped, record_btrace_start_replaying)
13131 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
13132 (record_btrace_find_resume_thread): New.
13133 (record_btrace_resume, record_btrace_wait): Extend.
13134 (record_btrace_can_execute_reverse): New.
13135 (record_btrace_open): Fail in non-stop mode.
13136 (record_btrace_set_replay): Split into this, ...
13137 (record_btrace_stop_replaying): ... this, ...
13138 (record_btrace_clear_histories): ... and this.
13139 (init_record_btrace_ops): Init to_can_execute_reverse.
13140 * NEWS: Announce it.
13141
118e6252
MM
131422014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13143
13144 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
13145 (forward_target_decr_pc_after_break)
13146 (target_decr_pc_after_break): New.
13147 * target.c (forward_target_decr_pc_after_break)
13148 (target_decr_pc_after_break): New.
13149 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
13150 instead of gdbarch_decr_pc_after_break.
13151 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
13152 instead of gdbarch_decr_pc_after_break.
13153 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
13154 instead of gdbarch_decr_pc_after_break.
13155 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
13156 instead of gdbarch_decr_pc_after_break.
13157 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
13158 instead of gdbarch_decr_pc_after_break.
13159 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
13160 instead of gdbarch_decr_pc_after_break.
13161
6e07b1d2
MM
131622014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13163
13164 * btrace.c: Include regcache.h.
13165 (btrace_add_pc): New.
13166 (btrace_enable): Call btrace_add_pc.
13167 (btrace_is_empty): New.
13168 * btrace.h (btrace_is_empty): New.
13169 * record-btrace.c (require_btrace, record_btrace_info): Call
13170 btrace_is_empty.
13171
969c39fb
MM
131722014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13173
13174 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
13175 Support delta reads.
13176 (linux_disable_btrace): Change return type.
13177 * common/linux-btrace.h (linux_read_btrace): Change parameters
13178 and return type to allow error reporting. Update users.
13179 (linux_disable_btrace): Change return type. Update users.
13180 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
13181 New.
13182 (btrace_error): New.
13183 (btrace_block) <begin>: Comment on BEGIN == 0.
13184 * btrace.c (btrace_compute_ftrace): Start from the end of
13185 the current trace.
13186 (btrace_stitch_trace, btrace_clear_history): New.
13187 (btrace_fetch): Read delta trace, return if replaying.
13188 (btrace_clear): Move clear history code to btrace_clear_history.
13189 (parse_xml_btrace): Throw an error if parsing failed.
13190 * target.h (struct target_ops) <to_read_btrace>: Change parameters
13191 and return type to allow error reporting.
13192 (target_read_btrace): Change parameters and return type to allow
13193 error reporting.
13194 * target.c (target_read_btrace): Update.
13195 * remote.c (remote_read_btrace): Support delta reads. Pass
13196 errors on.
13197 * NEWS: Announce it.
13198
0b722aec
MM
131992014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13200
13201 * record.h (record_btrace_frame_unwind)
13202 (record_btrace_tailcall_frame_unwind): New declarations.
13203 * dwarf2-frame: Include record.h
13204 (dwarf2_frame_cfa): Throw an error for btrace frames.
13205 * record-btrace.c: Include hashtab.h.
13206 (btrace_get_bfun_name): New.
13207 (btrace_call_history): Call btrace_get_bfun_name.
13208 (struct btrace_frame_cache): New.
13209 (bfcache): New.
13210 (bfcache_hash, bfcache_eq, bfcache_new): New.
13211 (btrace_get_frame_function): New.
13212 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
13213 (record_btrace_frame_this_id): Compute own id.
13214 (record_btrace_frame_prev_register): Provide PC, throw_error
13215 for all other registers.
13216 (record_btrace_frame_sniffer): Detect btrace frames.
13217 (record_btrace_tailcall_frame_sniffer): New.
13218 (record_btrace_frame_dealloc_cache): New.
13219 (record_btrace_frame_unwind): Add new functions.
13220 (record_btrace_tailcall_frame_unwind): New.
13221 (_initialize_record_btrace): Allocate cache.
13222 * btrace.c (btrace_clear): Call reinit_frame_cache.
13223 * NEWS: Announce it.
13224
066ce621
MM
132252014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13226
13227 * record-btrace.c (record_btrace_set_replay)
13228 (record_btrace_goto_begin, record_btrace_goto_end)
13229 (record_btrace_goto): New.
13230 (init_record_btrace_ops): Initialize them.
13231 * NEWS: Announce it.
13232
e2887aa3
MM
132332014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13234
13235 * record-btrace.c (record_btrace_find_new_threads)
13236 (record_btrace_thread_alive): New.
13237 (init_record_btrace_ops): Initialize to_find_new_threads and
13238 to_thread_alive.
13239
b2f4cfde
MM
132402014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13241
13242 * record-btrace.c (record_btrace_resume): New.
13243 (record_btrace_wait): New.
13244 (init_record_btrace_ops): Initialize to_wait and to_resume.
13245
633785ff
MM
132462014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13247
13248 * record-btrace.c (record_btrace_xfer_partial)
13249 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
13250 (record_btrace_allow_memory_access): New.
13251 (init_record_btrace_ops): Initialize new methods.
13252 * target.c (raw_memory_xfer_partial): Bail out if target reports
13253 that this memory is not available.
13254
3db08215
MM
132552014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13256
13257 * target.h (target_ops) <to_insert_breakpoint>
13258 <to_remove_breakpoint>: Add target_ops parameter.
13259 (forward_target_insert_breakpoint): New.
13260 (forward_target_remove_breakpoint): New.
13261 (memory_remove_breakpoint, memory_insert_breakpoint):
13262 Add target_ops parameter.
13263 * target.c (target_insert_breakpoint): Split into this and ...
13264 (forward_target_insert_breakpoint): ... this.
13265 (target_remove_breakpoint): Split into this and ...
13266 (forward_target_remove_breakpoint): ... this.
13267 (debug_to_insert_breakpoint): Add target_ops parameter.
13268 Call forward_target_insert_breakpoint.
13269 (debug_to_remove_breakpoint): Add target_ops parameter.
13270 Call forward_target_remove_breakpoint.
13271 (update_current_target): Do not inherit or default to_insert_breakpoint
13272 and to_remove_breakpoint.
13273 * corelow.c (ignore): Add target_ops parameter.
13274 * exec.c (ignore): Add target_ops parameter.
13275 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
13276 Add target_ops parameter.
13277 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
13278 Add target_ops parameter.
13279 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
13280 Add target_ops parameter.
13281 * record-full.c (record_full_beneath_to_insert_breakpoint)
13282 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
13283 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
13284 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
13285 (record_full_core_remove_breakpoint): Add target_ops parameter.
13286 Update users.
13287 (record_full_beneath_to_insert_breakpoint_ops)
13288 (record_full_beneath_to_remove_breakpoint_ops)
13289 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
13290 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
13291 tmp_to_remove_breakpoint_ops,
13292 record_full_beneath_to_insert_breakpoint_ops, and
13293 record_full_beneath_to_remove_breakpoint_ops.
13294 * remote-m32r-sdi.c (m32r_insert_breakpoint)
13295 (m32r_remove_breakpoint): Add target_ops parameter.
13296 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
13297 Add target_ops parameter.
13298 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
13299 Add target_ops parameter.
13300
cecac1ab
MM
133012014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13302 Markus Metzger <markus.t.metzger@intel.com>
13303
13304 * record-btrace.c: Include frame-unwind.h.
13305 (record_btrace_frame_unwind_stop_reason)
13306 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
13307 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
13308 New.
13309 (init_record_btrace_ops): Install it.
13310
824344ca
MM
133112014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13312
13313 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
13314 get_prev_frame_1.
13315
32261e52
MM
133162014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13317
13318 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
13319 earlier.
13320
ea001bdc
MM
133212014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13322
13323 * frame-unwind.c: Include target.h.
13324 (frame_unwind_try_unwinder): New function with code from ...
13325 (frame_unwind_find_by_frame): ... here. New variable
13326 unwinder_from_target, call also target_get_unwinder)
13327 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
13328 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
13329 * target.h (struct target_ops): New fields to_get_unwinder and
13330 to_get_tailcall_unwinder.
13331 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
13332
1f3ef581
MM
133332014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13334
13335 * record-btrace.c (record_btrace_fetch_registers)
13336 (record_btrace_store_registers)
13337 (record_btrace_to_prepare_to_store): New.
13338 (init_record_btrace_ops): Add the above.
13339
f32dbf8c
MM
133402014-01-16 Tom Tromey <tromey@redhat.com>
13341
13342 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
13343 * target.h (struct target_ops) <to_prepare_to_store>: Add
13344 argument.
13345 (target_prepare_to_store): Add argument.
13346 * target.c (debug_to_prepare_to_store): Add argument.
13347 (update_current_target): Update.
13348 * remote.c (remote_prepare_to_store): Add 'self' argument.
13349 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
13350 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
13351 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
13352 * record-full.c (record_full_core_prepare_to_store): Add 'self'
13353 argument.
13354 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
13355 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
13356 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
13357 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
13358 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
13359
07bbe694
MM
133602014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13361
13362 * btrace.h (replay) <replay>: New.
13363 (btrace_is_replaying): New.
13364 * btrace.c (btrace_clear): Free replay iterator.
13365 (btrace_is_replaying): New.
13366 * record-btrace.c (record_btrace_is_replaying): New.
13367 (record_btrace_info): Print insn number if replaying.
13368 (record_btrace_insn_history): Start at replay position.
13369 (record_btrace_call_history): Start at replay position.
13370 (init_record_btrace_ops): Init to_record_is_replaying.
13371
0688d04e
MM
133722014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13373
13374 * record-btrace.c (record_btrace_insn_history_range): Include
13375 end.
13376 (record_btrace_insn_history_from): Adjust range.
13377 (record_btrace_call_history_range): Include
13378 end.
13379 (record_btrace_call_history_from): Adjust range.
13380 * NEWS: Announce changes.
13381
8710b709
MM
133822014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13383
13384 * record.h (enum record_print_flag)
13385 <record_print_indent_calls>: New.
13386 * record.c (get_call_history_modifiers): Recognize /c modifier.
13387 (_initialize_record): Document /c modifier.
13388 * record-btrace.c (btrace_call_history): Add btinfo parameter.
13389 Reorder fields. Optionally indent the function name. Update
13390 all users.
13391 * NEWS: Announce changes.
13392
d0fa7535
MM
133932014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13394
13395 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
13396
5de9129b
MM
133972014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13398
13399 * btrace.c (ftrace_new_function): Start counting at one.
13400 * record-btrace.c (record_btrace_info): Adjust number of calls
13401 and insns.
13402 * NEWS: Announce it.
13403
7acbe133
MM
134042014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13405
13406 * record-btrace.c (btrace_call_history_insn_range): Print
13407 insn range as [begin, end].
13408
23a7fe75
MM
134092014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13410
13411 * btrace.h (struct btrace_func_link): New.
13412 (enum btrace_function_flag): New.
13413 (struct btrace_inst): Rename to ...
13414 (struct btrace_insn): ...this. Update all users.
13415 (struct btrace_func) <ibegin, iend>: Remove.
13416 (struct btrace_func_link): New.
13417 (struct btrace_func): Rename to ...
13418 (struct btrace_function): ...this. Update all users.
13419 (struct btrace_function) <segment, flow, up, insn, insn_offset)
13420 (number, level, flags>: New.
13421 (struct btrace_insn_iterator): Rename to ...
13422 (struct btrace_insn_history): ...this.
13423 Update all users.
13424 (struct btrace_insn_iterator, btrace_call_iterator): New.
13425 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
13426 (struct btrace_target_info) <begin, end, level>
13427 <insn_history, call_history>: New.
13428 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13429 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13430 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13431 (btrace_call_number, btrace_call_begin, btrace_call_end)
13432 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13433 (btrace_find_function_by_number, btrace_set_insn_history)
13434 (btrace_set_call_history): New.
13435 * btrace.c (btrace_init_insn_iterator)
13436 (btrace_init_func_iterator, compute_itrace): Remove.
13437 (ftrace_print_function_name, ftrace_print_filename)
13438 (ftrace_skip_file): Change
13439 parameter to const.
13440 (ftrace_init_func): Remove.
13441 (ftrace_debug): Use new btrace_function fields.
13442 (ftrace_function_switched): Also consider gaining and
13443 losing symbol information).
13444 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
13445 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
13446 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
13447 New.
13448 (ftrace_new_function): Move. Remove debug print.
13449 (ftrace_update_lines, ftrace_update_insns): New.
13450 (ftrace_update_function): Check for call, ret, and jump.
13451 (compute_ftrace): Renamed to ...
13452 (btrace_compute_ftrace): ...this. Rewritten to compute call
13453 stack.
13454 (btrace_fetch, btrace_clear): Updated.
13455 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13456 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13457 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13458 (btrace_call_number, btrace_call_begin, btrace_call_end)
13459 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13460 (btrace_find_function_by_number, btrace_set_insn_history)
13461 (btrace_set_call_history): New.
13462 * record-btrace.c (require_btrace): Use new btrace thread
13463 info fields.
13464 (record_btrace_info, btrace_insn_history)
13465 (record_btrace_insn_history, record_btrace_insn_history_range):
13466 Use new btrace thread info fields and new iterator.
13467 (btrace_func_history_src_line): Rename to ...
13468 (btrace_call_history_src_line): ...this. Use new btrace
13469 thread info fields.
13470 (btrace_func_history): Rename to ...
13471 (btrace_call_history): ...this. Use new btrace thread info
13472 fields and new iterator.
13473 (record_btrace_call_history, record_btrace_call_history_range):
13474 Use new btrace thread info fields and new iterator.
13475
8372a7cb
MM
134762014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13477
13478 * frame.h (frame_id_build_unavailable_stack_special): New.
13479 * frame.c (frame_id_build_unavailable_stack_special): New.
13480
c2170eef
MM
134812014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13482
13483 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
13484 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
13485 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
13486 to gdbarch.
13487 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
13488 (i386_insn_is_jump, i386_jmp_p): New.
13489 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
13490 insn_is_jump to gdbarch.
13491 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
13492 * gdbarch.h: Regenerated.
13493 * gdbarch.c: Regenerated.
13494 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
13495 (default_insn_is_jump): New.
13496 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
13497 (default_insn_is_jump): New.
13498
864089d2
MM
134992014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13500
13501 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
13502 Change to ...
13503 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
13504 (btrace_read_type) <btrace_read_new>: Change to ...
13505 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
13506
ed9edfb5
MM
135072014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13508
13509 * common/linux-btrace.c (linux_read_btrace): Free trace from
13510 previous iteration.
13511
fbcbc3fd
DE
135122014-01-15 Doug Evans <dje@google.com>
13513
13514 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
13515 uint32_t.
13516
3d548a53
TT
135172014-01-15 Tom Tromey <tromey@redhat.com>
13518
13519 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
13520 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
13521 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
13522 (set_objfile_main_name): New function.
13523 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
13524 language_of_main>: New fields.
13525 (set_objfile_main_name): Declare.
13526 * symtab.c (find_main_name): Loop over objfiles to find the main
13527 name and language.
13528 (set_main_name): Now static.
13529 (get_main_info): Add comment.
13530 * symtab.h (set_main_name): Don't declare.
13531
32ac0d11
TT
135322014-01-15 Tom Tromey <tromey@redhat.com>
13533
13534 * symtab.c (main_progspace_key): New global.
13535 (struct main_info): New.
13536 (name_of_main, language_of_main): Remove.
13537 (get_main_info, main_info_cleanup): New function.
13538 (set_main_name, main_name, main_language): Use get_main_info.
13539 (_initialize_symtab): Initialize main_progspace_key.
13540
9e6c82ad
TT
135412014-01-15 Tom Tromey <tromey@redhat.com>
13542
13543 * dbxread.c (process_one_symbol): Update.
13544 * dwarf2read.c (read_partial_die): Update.
13545 * symfile.c (set_initial_language): Call main_language.
13546 * symtab.c (language_of_main): Now static.
13547 (set_main_name): Add 'lang' parameter.
13548 (find_main_name): Update.
13549 (main_language): New function.
13550 (symtab_observer_executable_changed): Update.
13551 * symtab.h (set_main_name): Update.
13552 (language_of_main): Remove.
13553 (main_language): Declare.
13554
6ef55de7
TT
135552014-01-15 Tom Tromey <tromey@redhat.com>
13556
13557 * symfile.c (init_entry_point_info): Use new "initialized" field.
13558 Update.
13559 * objfiles.h (struct entry_point) <initialized>: New field.
13560 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
13561 (struct objfile) <ei>: ...here. Remove.
13562 * objfiles.c (entry_point_address_query): Update.
13563
53eddfa6
TT
135642014-01-15 Tom Tromey <tromey@redhat.com>
13565
13566 * objfiles.c (entry_point_address_query): Relocate entry point
13567 address.
13568 (objfile_relocate1): Do not relocate entry point address.
13569 * objfiles.h (struct entry_info) <entry_point>: Update comment.
13570 <the_bfd_section_index>: New field.
13571 * symfile.c (init_entry_point_info): Find the entry point's
13572 section.
13573
d56e56aa
TT
135742014-01-15 Tom Tromey <tromey@redhat.com>
13575
13576 * solib-frv.c (enable_break): Use entry_point_address_query.
13577
33a97bbe
OJ
135782014-01-15 Omair Javaid <omair.javaid@linaro.org>
13579
13580 * NEWS: Add note on improved process record-replay on
13581 arm*-linux* targets.
13582
c6ec2b30
OJ
135832014-01-15 Omair Javaid <omair.javaid@linaro.org>
13584
13585 * arm-tdep.c (enum arm_record_result): New enum.
13586 (arm_record_unsupported_insn): New function.
13587 (arm_record_coproc_data_proc): Removed.
13588 (thumb2_record_ld_st_multiple): New function.
13589 (thumb2_record_ld_st_dual_ex_tbb): New function.
13590 (thumb2_record_data_proc_sreg_mimm): New function.
13591 (thumb2_record_ps_dest_generic): New function.
13592 (thumb2_record_branch_misc_cntrl): New function.
13593 (thumb2_record_str_single_data): New function.
13594 (thumb2_record_ld_mem_hints): New function.
13595 (thumb2_record_ld_word): New function.
13596 (thumb2_record_lmul_lmla_div): New function.
13597 (thumb2_record_decode_insn_handler): New function.
13598 (decode_insn): Add thumb32 instruction handlers.
13599
97dfe206
OJ
136002014-01-15 Omair Javaid <omair.javaid@linaro.org>
13601
13602 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
13603 (struct arm_linux_record_tdep): Declare.
13604 (arm_canonicalize_syscall): New function.
13605 (arm_all_but_pc_registers_record): New function.
13606 (arm_linux_syscall_record): New function.
13607 (arm_linux_init_abi): Add syscall recording constructs.
13608 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
13609 decoding. (arm_record_coproc_data_proc): Update arm syscall
13610 decoding.
13611 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
13612 <arm_syscall_record>: New field.
13613 * configure.tgt (arm*-*-linux*): Add linux-record.o to
13614 gdb_target_obs.
13615
9904a494
OJ
136162014-01-15 Omair Javaid <omair.javaid@linaro.org>
13617
13618 * arm-tdep.c (thumb_record_misc): Update to use sp as base
13619 register for push instruction recording.
13620
f969241e
OJ
136212014-01-15 Omair Javaid <omair.javaid@linaro.org>
13622
13623 * arm-tdep.c (thumb_record_misc): Update to correct logical
13624 error while recording ldm, ldmia and pop instructions.
13625
bfbbec00
OJ
136262014-01-15 Omair Javaid <omair.javaid@linaro.org>
13627
13628 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
13629
e40adcc9
PA
136302014-01-15 Pedro Alves <palves@redhat.com>
13631
13632 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
13633 (go32_resume, go32_fetch_registers, store_register)
13634 (go32_store_registers, go32_prepare_to_store)
13635 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
13636 (go32_create_inferior, go32_can_run, go32_terminal_init)
13637 (go32_terminal_inferior, go32_terminal_ours): Delete forward
13638 declarations.
13639
b0a16e66
TT
136402014-01-15 Tom Tromey <tromey@redhat.com>
13641
13642 * target.h (async_callback_ftype): New typedef.
13643 (struct target_ops) <to_async>: Use it.
13644
bf7105a4
JB
136452014-01-15 Joel Brobecker <brobecker@adacore.com>
13646
13647 * python/py-value.c (get_field_type): Remove unnecessary curly
13648 braces for single-statement if block.
13649
a8f35c2e
JB
136502014-01-15 Joel Brobecker <brobecker@adacore.com>
13651
13652 * python/py-type.c (convert_field): Add missing empty line
13653 after declarations.
13654
bb4142cf
DE
136552014-01-14 Doug Evans <dje@google.com>
13656
13657 * symfile.h (expand_symtabs_matching): Renamed from
13658 expand_partial_symbol_names. Update prototype.
13659 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
13660 * symfile.c (expand_symtabs_matching): Renamed from
13661 expand_partial_symbol_names. New args file_matcher, kind.
13662 Rename arg fun to symbol_matcher.
13663 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
13664 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
13665 ada_expand_partial_symbol_name.
13666 (ada_make_symbol_completion_list): Update to call
13667 expand_symtabs_matching.
13668 (ada_add_global_exceptions): Call expand_symtabs_matching.
13669 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
13670 call map_symbol_filenames.
13671 * symtab.c (sources_info): Update to call map_symbol_filenames.
13672 (search_symbols): Call expand_symtabs_matching.
13673 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
13674 (default_make_symbol_completion_list_break_on): Update to call
13675 expand_symtabs_matching.
13676 (make_source_files_completion_list): Update to call
13677 map_symbol_filenames.
13678
206f2a57
DE
136792014-01-14 Doug Evans <dje@google.com>
13680
13681 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
13682 (expand_symtabs_symbol_matcher_ftype): New typedef.
13683 (quick_symbol_functions.expand_symtabs_matching): Update to use.
13684 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13685 * symfile.c (expand_partial_symbol_names): Update to use
13686 expand_symtabs_symbol_matcher_ftype.
13687 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
13688 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13689 Arg name_matcher renamed to symbol_matcher.
13690 * psymtab.c (recursively_search_psymtabs): Update to use
13691 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
13692 sym_matcher.
13693 (expand_symtabs_matching_via_partial): Update to use
13694 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13695 Arg name_matcher renamed to symbol_matcher.
13696
540c2971
DE
136972014-01-14 Doug Evans <dje@google.com>
13698
13699 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
13700 (map_partial_symbol_filenames): Ditto.
13701 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
13702 (map_partial_symbol_filenames): Ditto.
13703 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
13704 (map_partial_symbol_filenames): Ditto.
13705 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
13706 (map_partial_symbol_filenames): Ditto.
13707 * symtab.c: Delete #include "psymtab.h".
13708
8213266a
PA
137092014-01-14 Pedro Alves <palves@redhat.com>
13710 Tom Tromey <tromey@redhat.com>
13711
13712 * infrun.c (use_displaced_stepping): Use find_record_target
13713 instead of RECORD_IS_USED.
13714 (adjust_pc_after_break): Use record_full_is_used instead of
13715 RECORD_IS_USED.
13716 * record-btrace.c (record_btrace_open): Call record_preopen
13717 instead of checking RECORD_IS_USED.
13718 * record-full.c (record_full_shortname)
13719 (record_full_core_shortname): New globals.
13720 (record_full_is_used): New function.
13721 (find_full_open): Call record_preopen instead of checking
13722 RECORD_IS_USED.
13723 (init_record_full_ops): Set the target's shortname to
13724 record_full_shortname.
13725 (init_record_full_core_ops): Set the target's shortname to
13726 record_full_core_shortname.
13727 * record-full.h (record_full_is_used): Declare.
13728 * record.c (find_record_target): Make extern.
13729 (record_preopen): New function.
13730 * record.h (RECORD_IS_USED): Delete macro.
13731 (find_record_target, record_preopen): Declare functions.
13732
7ec1862d
YQ
137332014-01-14 Yao Qi <yao@codesourcery.com>
13734
13735 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
13736 'len''s type to ULONGEST.
13737 (core_xfer_shared_libraries_aix): Likewise.
13738 * gdbarch.c, gdbarch.h: Regenerated.
13739 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
13740 Change type of 'len' to ULONGEST.
13741 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13742 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
13743
dea80a27
YQ
137442014-01-14 Yao Qi <yao@codesourcery.com>
13745
13746 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
13747 type of 'len' to ULONGEST.
13748 (linux_xfer_osdata_processgroups): Likewise.
13749 (linux_xfer_osdata_threads): Likewise.
13750 (linux_xfer_osdata_fds): Likewise.
13751 (linux_xfer_osdata_isockets): Likewise.
13752 (linux_xfer_osdata_shm): Likewise.
13753 (linux_xfer_osdata_sem): Likewise.
13754 (linux_xfer_osdata_msg): Likewise.
13755 (linux_common_xfer_osdata): Likewise.
13756 (struct osdata_type) <getter>: Likewise.
13757 * common/linux-osdata.h (linux_common_xfer_osdata): Update
13758 the declaration.
13759
b55e14c7
YQ
137602014-01-14 Yao Qi <yao@codesourcery.com>
13761
13762 * target.h (target_xfer_partial_ftype): Update.
13763 (struct target_ops) <to_xfer_partial>: Change 'len' type to
13764 ULONGEST.
13765 * aix-thread.c (aix_thread_xfer_partial): Change type of
13766 argument 'len' to ULONGEST.
13767 * auxv.c (procfs_xfer_auxv): Likewise.
13768 (ld_so_xfer_auxv): Likewise.
13769 (memory_xfer_auxv): Likewise.
13770 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13771 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13772 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
13773 * corelow.c (core_xfer_partial): Likewise.
13774 * ctf.c (ctf_xfer_partial): Likewise.
13775 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
13776 '%u'.
13777 (darwin_read_dyld_info): Likewise.
13778 (darwin_xfer_partial): Likewise.
13779 * exec.c (section_table_xfer_memory_partial): Likewise.
13780 (exec_xfer_partial): Likewise.
13781 * exec.h (section_table_xfer_memory_partial): Update
13782 declaration.
13783 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
13784 instead of plongest.
13785 (gnu_xfer_partial): Likewise.
13786 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
13787 (ia64_hpux_xfer_solib_got): Likewise.
13788 (ia64_hpux_xfer_partial): Likewise.
13789 * ia64-linux-nat.c (ia64_linux_xfer_partial):
13790 * inf-ptrace.c (inf_ptrace_xfer_partial):
13791 * inf-ttrace.c (inf_ttrace_xfer_partial):
13792 * linux-nat.c (linux_xfer_siginfo): Likewise.
13793 (linux_nat_xfer_partial): Likewise.
13794 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
13795 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
13796 * monitor.c (monitor_xfer_memory): Likewise.
13797 (monitor_xfer_partial): Likewise.
13798 * procfs.c (procfs_xfer_partial): Likewise.
13799 * record-full.c (record_full_xfer_partial): Likewise.
13800 (record_full_core_xfer_partial): Likewise.
13801 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
13802 instead of plongest.
13803 (gdbsim_xfer_partial): Likewise.
13804 * remote.c (remote_xfer_partial): Likewise.
13805 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13806 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
13807 declaration.
13808 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13809 (rs6000_xfer_shared_libraries): Likewise.
13810 * sol-thread.c (sol_thread_xfer_partial): Likewise.
13811 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13812 (sparc_xfer_partial): Likewise.
13813 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13814 (spu_xfer_partial): Likewise.
13815 * spu-multiarch.c (spu_xfer_partial): Likewise.
13816 * target.c (target_read_live_memory): Likewise.
13817 (memory_xfer_live_readonly_partial): Likewise.
13818 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
13819 (target_xfer_partial, default_xfer_partial): Likewise.
13820 (current_xfer_partial): Likewise.
13821 * tracepoint.c (tfile_xfer_partial): Likewise.
13822 * windows-nat.c (windows_xfer_memory): Likewise. Call
13823 pulongest instead of plongest.
13824 (windows_xfer_partial): Likewise.
13825 (windows_xfer_shared_libraries): Likewise.
13826
05804640
YQ
138272014-01-14 Yao Qi <yao@codesourcery.com>
13828
13829 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
13830 target_xfer_partial_ftype.
13831
b5b08fb4
SC
138322014-01-13 Siva Chandra Reddy <sivachandra@google.com>
13833
13834 PR python/15464
13835 PR python/16113
13836 * valops.c (value_struct_elt_bitpos): New function
13837 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
13838 object to 'None' if the field name is an empty string ("").
13839 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
13840 attribute to look for a field when 'name' is 'None'.
13841 (get_field_type): New function
13842
13aaf454
DE
138432014-01-13 Doug Evans <dje@google.com>
13844
13845 PR symtab/16426
13846 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
13847 (try_open_dwop_file): Ditto.
13848 * gdb_bfd.c: #include "vec.h".
13849 (bfdp): New typedef.
13850 (struct gdb_bfd_data): New member included_bfds.
13851 (gdb_bfd_unref): Unref all included bfds.
13852 (gdb_bfd_record_inclusion): New function.
13853 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
13854
c2cec97c
TT
138552014-01-13 Tom Tromey <tromey@redhat.com>
13856
13857 * gdbcore.h (deprecated_core_resize_section_table): Remove.
13858
78e5999d
TT
138592014-01-13 Tom Tromey <tromey@redhat.com>
13860
13861 * defs.h (use_windows): Remove.
13862 * gdb.c (main): Update.
13863 * main.c (captured_main, gdb_main): Update.
13864 * main.h (struct captured_main_args) <use_windows>: Remove.
13865 * top.c (use_windows): Remove.
13866
f2052bbe
TT
138672014-01-13 Tom Tromey <tromey@redhat.com>
13868
13869 * defs.h (deprecated_flush_hook): Remove.
13870
fde4f8ed
JK
138712014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
13872
13873 PR threads/16216
13874 * linux-thread-db.c (try_thread_db_load): Add parameter
13875 check_auto_load_safe. Move here the file_is_auto_load_safe call.
13876 (try_thread_db_load_from_pdir_1): Move it there from here.
13877 (try_thread_db_load_from_sdir): Update caller.
13878 (try_thread_db_load_from_dir): Move it there from here.
13879
bdf61915
PP
138802014-01-13 Patrick Palka <patrick@parcs.ath.cx>
13881
13882 * regformats/regdat.sh: Always rewrite the register file.
13883
f71e1a8d
PA
138842014-01-13 Pedro Alves <palves@redhat.com>
13885
13886 * Makefile.in (CHECK_HEADERS): New variable.
13887 (check-headers:): New rule.
13888
42c85435
TT
138892014-01-13 Tom Tromey <tromey@redhat.com>
13890
13891 * cli/cli-setshow.c (do_set_command): Update.
13892 * defs.h (deprecated_set_hook): Remove.
13893 * top.c (deprecated_set_hook): Remove.
13894
f8de5129
PA
138952014-01-13 Pedro Alves <palves@redhat.com>
13896
13897 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
13898 the tracepoint if the PC is a pseudo-register.
13899
fc270c35
TT
139002014-01-13 Tom Tromey <tromey@redhat.com>
13901
13902 * defs.h (XCALLOC): Remove.
13903 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
13904 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
13905 * dwarf2loc.c (allocate_piece_closure): Likewise.
13906 * elfread.c (elf_symfile_segments): Likewise.
13907 (elf_symfile_segments): Likewise.
13908 * gdbtypes.c (copy_type_recursive): Likewise.
13909 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
13910 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
13911 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
13912 XCALLOC.
13913 * mt-tdep.c (mt_gdbarch_init): Likewise.
13914 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
13915 XCALLOC.
13916 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
13917 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
13918 * registry.c (registry_alloc_data): Likewise.
13919 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
13920 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
13921 * serial.c (serial_fdopen_ops): Likewise.
13922 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
13923 XCALLOC.
13924 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
13925 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
13926 not XCALLOC.
13927
70ba0933
TT
139282014-01-13 Tom Tromey <tromey@redhat.com>
13929
13930 * defs.h (XMALLOC): Remove.
13931 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
13932 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
13933 * cli-out.c (struct ui_out *): Likewise.
13934 * cli/cli-dump.c (add_dump_command): Likewise.
13935 (add_dump_command): Likewise.
13936 * complaints.c (get_complaints): Likewise.
13937 (find_complaint): Likewise.
13938 * dwarf2-frame.c (execute_cfa_program): Likewise.
13939 * dwarf2read.c (abbrev_table_read_table): Likewise.
13940 * gdbarch.sh: Likewise.
13941 * gdbarch.c: Rebuild.
13942 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
13943 * interps.c (interp_new): Likewise.
13944 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
13945 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
13946 * mi/mi-console.c (mi_console_file_new): Likewise.
13947 * mi/mi-interp.c (mi_interpreter_init): Likewise.
13948 * mi/mi-out.c (mi_out_new): Likewise.
13949 * mi/mi-parse.c (mi_parse): Likewise.
13950 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
13951 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
13952 * observer.c (xalloc_observer_list_node): Likewise.
13953 * regcache.c (regcache_xmalloc_1): Likewise.
13954 * reggroups.c (reggroup_new): Likewise.
13955 (_initialize_reggroup): Likewise.
13956 * registry.c (register_data_with_cleanup): Likewise.
13957 * remote.c (remote_notif_stop_alloc_reply): Likewise.
13958 * ser-base.c (serial_ttystate): Likewise.
13959 * ser-mingw.c (make_pipe_state): Likewise.
13960 * ser-pipe.c (pipe_open): Likewise.
13961 * serial.c (serial_open): Likewise.
13962 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
13963 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
13964 (tui_alloc_win_info): Likewise.
13965 (tui_add_content_elements): Likewise.
13966 * tui/tui-file.c (tui_file_new): Likewise.
13967 * tui/tui-out.c (tui_out_new): Likewise.
13968 * ui-file.c (mem_file_new): Likewise.
13969 * ui-out.c (push_level): Likewise.
13970 (make_cleanup_ui_out_end): Likewise.
13971 (append_header_to_list): Likewise.
13972 (ui_out_new): Likewise.
13973 * user-regs.c (user_reg_add_builtin): Likewise.
13974
41bf6aca
TT
139752014-01-13 Tom Tromey <tromey@redhat.com>
13976
13977 * defs.h (XZALLOC): Remove.
13978 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
13979 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
13980 (get_ada_tasks_inferior_data): Likewise.
13981 * auto-load.c (get_auto_load_pspace_data): Likewise.
13982 * auxv.c (get_auxv_inferior_data): Likewise.
13983 * bfd-target.c (target_bfd_reopen): Likewise.
13984 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
13985 (deprecated_insert_raw_breakpoint): Likewise.
13986 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
13987 * corelow.c (core_open): Likewise.
13988 * darwin-nat.c (darwin_check_new_threads): Likewise.
13989 (darwin_attach_pid): Likewise.
13990 * dummy-frame.c (dummy_frame_push): Likewise.
13991 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
13992 * dwarf2loc.c (allocate_piece_closure): Likewise.
13993 * elfread.c (elf_symfile_segments): Likewise.
13994 * eval.c (ptrmath_type_p): Likewise.
13995 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
13996 * gdbtypes.c (alloc_type_arch): Likewise.
13997 (alloc_type_instance): Likewise.
13998 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
13999 * inf-child.c (inf_child_can_use_agent): Likewise.
14000 * inflow.c (get_inflow_inferior_data): Likewise.
14001 * infrun.c (save_infcall_suspend_state): Likewise.
14002 * jit.c (jit_reader_load): Likewise.
14003 (get_jit_objfile_data): Likewise.
14004 (get_jit_program_space_data): Likewise.
14005 (jit_object_open_impl): Likewise.
14006 (jit_symtab_open_impl): Likewise.
14007 (jit_block_open_impl): Likewise.
14008 (jit_frame_sniffer): Likewise.
14009 * linux-fork.c (add_fork): Likewise.
14010 * maint.c (make_command_stats_cleanup): Likewise.
14011 * objfiles.c (get_objfile_pspace_data): Likewise.
14012 * opencl-lang.c (struct lval_closure): Likewise.
14013 * osdata.c (osdata_start_osdata): Likewise.
14014 * progspace.c (new_address_space): Likewise.
14015 (add_program_space): Likewise.
14016 * remote-sim.c (get_sim_inferior_data): Likewise.
14017 * sh-tdep.c (sh_gdbarch_init): Likewise.
14018 * skip.c (Ignore): Likewise.
14019 (skip_delete_command): Likewise.
14020 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
14021 (library_list_start_library): Likewise.
14022 (solib_aix_current_sos): Likewise.
14023 * solib-darwin.c (get_darwin_info): Likewise.
14024 (darwin_current_sos): Likewise.
14025 * solib-dsbt.c (get_dsbt_info): Likewise.
14026 * solib-ia64-hpux.c (new_so_list): Likewise.
14027 (ia64_hpux_get_solib_linkage_addr): Likewise.
14028 * solib-spu.c (append_ocl_sos): Likewise.
14029 (spu_current_sos): Likewise.
14030 * solib-svr4.c (get_svr4_info): Likewise.
14031 (svr4_keep_data_in_core): Likewise.
14032 (library_list_start_library): Likewise.
14033 (svr4_default_sos): Likewise.
14034 (svr4_read_so_list): Likewise.
14035 * solib-target.c (library_list_start_library): Likewise.
14036 (solib_target_current_sos): Likewise.
14037 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
14038 * symfile-debug.c (install_symfile_debug_logging): Likewise.
14039 * symfile.c (default_symfile_segments): Likewise.
14040 * target-descriptions.c (tdesc_data_init): Likewise.
14041 (tdesc_create_reg): Likewise.
14042 (struct tdesc_type *): Likewise.
14043 (tdesc_create_vector): Likewise.
14044 (tdesc_set_struct_size): Likewise.
14045 (struct tdesc_type *): Likewise.
14046 (tdesc_free_feature): Likewise.
14047 (tdesc_create_feature): Likewise.
14048 * windows-nat.c (windows_add_thread): Likewise.
14049 (windows_make_so): Likewise.
14050 * xml-support.c (gdb_xml_body_text): Likewise.
14051 (gdb_xml_create_parser_and_cleanup): Likewise.
14052 (xml_process_xincludes): Likewise.
14053 * xml-syscall.c (allocate_syscalls_info): Likewise.
14054 (syscall_create_syscall_desc): Likewise.
14055
5acfdbae
SDJ
140562014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
14057
14058 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
14059 function, with code from i386_stap_parse_special_token.
14060 (i386_stap_parse_special_token_three_arg_disp): Likewise.
14061 (i386_stap_parse_special_token): Move code to the two functions
14062 above; simplify it.
14063
0000e5cc
PA
140642014-01-09 Pedro Alves <palves@redhat.com>
14065 Hui Zhu <hui@codesourcery.com>
14066
14067 PR gdb/16101
14068 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
14069 bp_err_string. Don't mark the location shlib_disabled if the
14070 error thrown wasn't a generic or memory error. Catch errors
14071 thrown while inserting breakpoints in overlayed code. Output
14072 error message of software breakpoints.
14073 * remote.c (remote_insert_breakpoint): If this breakpoint has
14074 target-side commands but this stub doesn't support Z0 packets,
14075 throw NOT_SUPPORTED_ERROR error.
14076 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
14077 * target.h (target_insert_breakpoint): Extend comment.
14078 (target_insert_hw_breakpoint): Add comment.
14079
b7ea362b
PA
140802014-01-08 Pedro Alves <palves@redhat.com>
14081
14082 * remote.c (remote_add_thread): Add threads silently if starting
14083 up.
14084 (remote_notice_new_inferior): If in all-stop, and starting up,
14085 don't call notice_new_inferior.
14086 (get_current_thread): New function, factored out from ...
14087 (add_current_inferior_and_thread): ... this. Adjust.
14088 (remote_start_remote) <all-stop>: Fetch the thread list. If we
14089 found any thread, then select the remote's current thread as GDB's
14090 current thread too.
14091
b7bba001
JB
140922014-01-08 Joel Brobecker <brobecker@adacore.com>
14093
14094 * NEWS: Create a new section for the next release branch.
14095 Rename the section of the current branch, now that it has
14096 been cut.
14097
16dfbded
JB
140982014-01-08 Joel Brobecker <brobecker@adacore.com>
14099
14100 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
14101 * version.in: Bump version to 7.7.50.DATE-cvs.
14102
22c90ac1
YQ
141032014-01-08 Yao Qi <yao@codesourcery.com>
14104
14105 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
14106 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
14107 (spu_xfer_partial): Cast 'buf' to 'const char *'.
14108
d64ad97c
YQ
141092014-01-08 Yao Qi <yao@codesourcery.com>
14110
14111 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
14112 return value of bfd_get_filename to symbol_file_add_from_bfd.
14113
f93ba80c
PM
141142014-01-08 Pierre Muller <muller@sourceware.org>
14115
14116 Fix PR16201.
14117 * coff-pe-read.c (struct read_pe_section_data): Add index field.
14118 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
14119 to prim_record_mininal_symbol_and_info.
14120 (add_pe_forwarded_sym): Use known section number of forwarded symbol
14121 in call to prim_record_minimal_symbol_and_info.
14122 (read_pe_exported_syms): Set index field of section_data.
14123
a4d9ba85
AP
141242014-01-07 Andrew Pinski <apinski@cavium.com>
14125
14126 * features/aarch64-core.xml (cpsr): Change to be 64bit.
14127 * features/aarch64.c: Regenerate.
14128
1b67eb02
AS
141292014-01-07 Andreas Schwab <schwab@linux-m68k.org>
14130
14131 * target.c (return_null): Define.
14132 (update_current_target): Use it instead of return_zero for
14133 functions that return a pointer.
14134
5e3f4fab
EBM
141352014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
14136
14137 * source.c (add_path): Fix check for duplicated paths in the previously
14138 included paths.
14139
e2616788
HK
141402014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
14141
14142 * ada-lang.c: Remove duplicated include statements.
14143 * alphabsd-nat.c: Ditto.
14144 * amd64-darwin-tdep.c: Ditto.
14145 * amd64fbsd-nat.c: Ditto.
14146 * auto-load.c: Ditto.
14147 * ax-gdb.c: Ditto.
14148 * breakpoint.c: Ditto.
14149 * dbxread.c: Ditto.
14150 * fork-child.c: Ditto.
14151 * gdb_usleep.c: Ditto.
14152 * i386-darwin-tdep.c: Ditto.
14153 * i386fbsd-nat.c: Ditto.
14154 * infcmd.c: Ditto.
14155 * inferior.c: Ditto.
14156 * jv-lang.c: Ditto.
14157 * linux-nat.c: Ditto.
14158 * linux-tdep.c: Ditto.
14159 * m68kbsd-nat.c: Ditto.
14160 * m68klinux-nat.c: Ditto.
14161 * microblaze-tdep.c: Ditto.
14162 * mips-linux-tdep.c: Ditto.
14163 * mn10300-tdep.c: Ditto.
14164 * nto-tdep.c: Ditto.
14165 * opencl-lang.c: Ditto.
14166 * osdata.c: Ditto.
14167 * printcmd.c: Ditto.
14168 * regcache.c: Ditto.
14169 * remote-m32r-sdi.c: Ditto.
14170 * remote.c: Ditto.
14171 * symfile.c: Ditto.
14172 * symtab.c: Ditto.
14173 * tilegx-linux-nat.c: Ditto.
14174 * tilegx-tdep.c: Ditto.
14175 * tracepoint.c: Ditto.
14176 * valops.c: Ditto.
14177 * vaxbsd-nat.c: Ditto.
14178 * windows-nat.c: Ditto.
14179 * xtensa-tdep.c: Ditto.
14180
bd1f7788
YQ
141812014-01-07 Yao Qi <yao@codesourcery.com>
14182
14183 * spu-linux-nat.c (_initialize_spu_nat): Declare.
14184
79301218
JB
141852014-01-07 Yao Qi <yao@codesourcery.com>
14186 Joel Brobecker <brobecker@adacore.com>
14187
14188 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
14189 (pdc_write_regs): Likewise.
14190 (fetch_regs_kernel_thread): Likewise.
14191 (store_regs_kernel_thread): Likewise.
14192
141932014-01-07 Joel Brobecker <brobecker@adacore.com>
14194
14195 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
14196 tagged type objects to their actual type.
14197
8e355c5d
JB
141982014-01-07 Joel Brobecker <brobecker@adacore.com>
14199
14200 * ada-valprint.c (print_field_values): Add "language" parameter.
14201 Update calls to print_field_values and print_variant_part.
14202 Pass new parameter "language" in call to val_print instead
14203 of "current_language". Replace call to ada_val_print by call
14204 to val_print.
14205 (print_variant_part): Add "language" parameter.
14206 (ada_val_print_struct_union): Update call to print_field_values.
14207
4fbf5aa5
JB
142082014-01-07 Joel Brobecker <brobecker@adacore.com>
14209
14210 * ada-valprint.c (ui_memcpy): Delete.
14211 (ada_print_floating): Update documentation. Add empty line
14212 between between function documentation and implementation.
14213 Delete variable "buffer". Use ui_file_xstrdup in place of
14214 ui_file_put. Minor adjustments following this change.
14215
71855601
JB
142162014-01-07 Joel Brobecker <brobecker@adacore.com>
14217
14218 * ada-valprint.c (ada_val_print_string): New function,
14219 extracted from ada_val_print_array.
14220 (ada_val_print_array): Replace extracted code by call
14221 to ada_val_print_string followed by a return. Move
14222 "else" branch to the function's top block.
14223
4eb27a30
JB
142242014-01-07 Joel Brobecker <brobecker@adacore.com>
14225
14226 * ada-valprint.c (ada_val_print_array): Move implementation
14227 down. Rename parameter "offset" and "val" into "offset_aligned"
14228 and "original_value" respectively. Add parameter "offset".
14229
34b27950
JB
142302014-01-07 Joel Brobecker <brobecker@adacore.com>
14231
14232 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
14233 re-organizing the code. Change the "???" message printed
14234 when target type is a TYPE_CODE_UNDEF into
14235 "<ref to undefined type>".
14236
079e4591
JB
142372014-01-07 Joel Brobecker <brobecker@adacore.com>
14238
14239 * ada-valprint.c (print_record): Delete, implementation inlined...
14240 (ada_val_print_struct_union): ... here. Remove call to
14241 ada_check_typedef in inlined implementation.
14242
8004dfd1
JB
142432014-01-07 Joel Brobecker <brobecker@adacore.com>
14244
14245 * ada-valprint.c (ada_val_print_gnat_array): New function,
14246 extracted from ada_val_print_1;
14247 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
14248 (ada_val_print_flt, ada_val_print_struct_union)
14249 (ada_val_print_ref): Likewise.
14250 (ada_val_print_1): Delete variables i and elttype.
14251 Replace extracted-out code by call to corresponding
14252 new functions.
14253
760a2db0
JB
142542014-01-07 Joel Brobecker <brobecker@adacore.com>
14255
14256 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
14257
3a92c861
JB
142582014-01-07 Joel Brobecker <brobecker@adacore.com>
14259
14260 * ada-valprint.c (ada_val_print_1): Replace calls to
14261 ada_val_print_1 by calls to val_print.
14262
cd1630f9
JB
142632014-01-07 Joel Brobecker <brobecker@adacore.com>
14264
14265 * ada-valprint.c (ada_val_print_1): Add parameter "language".
14266 Update calls to self accordingly. Replace calls to c_val_print
14267 by calls to val_print.
14268
bdf779a0
JB
142692014-01-07 Joel Brobecker <brobecker@adacore.com>
14270
14271 * ada-valprint.c (print_record): Delete declaration.
14272 (adjust_type_signedness, ada_val_print_1): Likewise.
14273 (ada_val_print): Move function implementation down.
14274 (print_variant_part, print_field_values, print_record):
14275 Move function implementation up.
14276
c0d48811
JB
142772014-01-07 Joel Brobecker <brobecker@adacore.com>
14278
14279 * python/py-type.c (typy_get_name): New function.
14280 (type_object_getset): Add entry for attribute "name".
14281 * NEWS: Add entry mentioning this new attribute.
14282
c26e9cbb
YQ
142832014-01-07 Yao Qi <yao@codesourcery.com>
14284
14285 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
14286 statement.
14287
0cc6f43d
YQ
142882014-01-07 Yao Qi <yao@codesourcery.com>
14289
14290 * gnu-nat.c (info_port_rights): Add qualifier const to
14291 argument args.
14292
eec03155
YQ
142932014-01-07 Yao Qi <yao@codesourcery.com>
14294
14295 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
14296
f04a82ef
YQ
142972014-01-07 Yao Qi <yao@codesourcery.com>
14298
14299 * gnu-nat.c (make_inf) Update declaration.
14300 (make_inf): Make it static.
14301 (inf_set_traced): Likewise.
14302 (inf_port_to_thread, inf_task_died_status): Likewise.
14303
d57dda0a
YQ
143042014-01-07 Yao Qi <yao@codesourcery.com>
14305
14306 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
14307
3aa8c969
YQ
143082014-01-07 Yao Qi <yao@codesourcery.com>
14309
14310 * gnu-nat.c (_initialize_gnu_nat): Declare.
14311
94123b4f
YQ
143122014-01-07 Yao Qi <yao@codesourcery.com>
14313
14314 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
14315 'enum bfd_endian'.
14316 (struct gdbarch_info) <byte_order>: Change type to
14317 'enum bfd_endian'.
14318 <byte_order_for_code>: Likewise.
14319 * gdbarch.c, gdbarch.h: Regenerated.
14320
dc81d70a
TT
143212014-01-06 Sasha Smundak <asmundak@google.com>
14322
14323 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
14324
cc2f3c35
TT
143252014-01-06 Tom Tromey <tromey@redhat.com>
14326
14327 * doublest.c (convert_doublest_to_floatformat): Use const, not
14328 CONST.
14329 * somread.c (som_symtab_read): Likewise.
14330
adcf2eed
HZ
143312014-01-07 Hui Zhu <hui@codesourcery.com>
14332
14333 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
14334 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
14335 (gdb_bfd_fopen): Ditto.
14336 (gdb_bfd_openr): Ditto.
14337 (gdb_bfd_openw): Ditto.
14338 (gdb_bfd_openr_iovec): Ditto.
14339 (gdb_bfd_fdopenr): Ditto.
14340 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
14341 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
14342 with xstrdup.
14343 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
14344 with xstrdup.
14345 * symfile-mem.c (symbol_file_add_from_memory): Removed
14346 gdb_bfd_stash_filename.
14347
50722198
DE
143482014-01-03 Doug Evans <dje@google.com>
14349
14350 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
14351 output.
14352
2fa4b862
JB
143532014-01-01 Joel Brobecker <brobecker@adacore.com>
14354
14355 Update year range in copyright notice of all files.
14356
28498c42
JB
143572014-01-01 Joel Brobecker <brobecker@adacore.com>
14358
14359 * top.c (print_gdb_version): Set copyright year to 2014.
14360
7b6e1046
JB
143612014-01-01 Joel Brobecker <brobecker@adacore.com>
14362
14363 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
14364
df96af55 14365For older changes see ChangeLog-2013.
c906108c
SS
14366\f
14367Local Variables:
14368mode: change-log
14369left-margin: 8
14370fill-column: 74
14371version-control: never
57da7796 14372coding: utf-8
c906108c 14373End:
This page took 2.371549 seconds and 4 git commands to generate.