PR gdb/17300: Input after "c -a" crashes readline/GDB
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
0ff33695
PA
12014-10-17 Pedro Alves <palves@redhat.com>
2
3 PR gdb/17300
4 * infcmd.c (continue_1): If continuing all threads in the
5 foreground, make sure the inferior's terminal settings are put in
6 effect.
7
6fdebc3d
PA
82014-10-17 Pedro Alves <palves@redhat.com>
9
10 PR gdb/17472
11 * annotate.c (annotate_breakpoints_invalid): Use
12 target_terminal_our_for_output instead of target_terminal_ours.
13 Give back the terminal to the target.
14 (annotate_frames_invalid): Likewise.
15
5842f62a
PA
162014-10-17 Pedro Alves <palves@redhat.com>
17
18 * target.c (enum terminal_state): New enum.
19 (terminal_state): New global.
20 (target_terminal_init): New function.
21 (target_terminal_inferior): Skip if inferior already owns the
22 terminal.
23 (target_terminal_ours, target_terminal_ours_for_output): New
24 functions.
25 * target.h (target_terminal_init): Convert to function prototype.
26 (target_terminal_ours_for_output): Convert to function prototype
27 and tweak comment.
28 (target_terminal_ours): Convert to function prototype and tweak
29 comment.
30 * windows-nat.c (do_initial_windows_stuff): Call
31 target_terminal_init instead of child_terminal_init_with_pgrp.
32
32a8097b
PA
332014-10-17 Pedro Alves <palves@redhat.com>
34
35 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
36 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
37 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
38 solib-osf.c.
39 * NEWS: Mention that support for alpha*-*-osf* has been removed.
40 * ada-lang.h [__alpha__ && __osf__]
41 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
42 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
43 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
44 GDB_OSABI_OSF1.
45 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
46 files.
47 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
48 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
49 * configure: Regenerate.
50 * configure.ac: Remove references to osf.
51 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
52 section. Remove all other references to osf.
53 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
54 Remove all other references to osf.
55 * dec-thread.c: Delete file.
56 * defs.h (GDB_OSABI_OSF1): Delete.
57 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
58 defined.
59 * osabi.c (gdb_osabi_names): Delete "OSF/1".
60 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
61 Delete code.
62 (unconditionally_kill_inferior)
63 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
64 * solib-osf.c: Delete file.
65
80134cf5
PA
662014-10-17 Pedro Alves <palves@redhat.com>
67
68 * remote.c (clear_threads_listing_context): Move higher up, out of
69 the HAVE_LIBEXPAT guard.
70
89c7137f
TG
712014-10-16 Tristan Gingold <gingold@adacore.com>
72
73 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
74 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
75 on amd64.
76
44ee4a52
PA
772014-10-15 Pedro Alves <palves@redhat.com>
78
79 * dec-thread.c (dec_thread_count_gdb_threads)
80 (dec_thread_add_gdb_thread): Delete.
81 (dec_thread_update_thread_list): Delete.
82 (dec_thread_find_new_threads): Rename to ...
83 (dec_thread_update_thread_list): ... this. Delete GDB-size
84 threads that are no longer found in dec_thread_list.
85 (resync_thread_list): Delete.
86 (dec_thread_wait): Call dec_thread_update_thread_list instead of
87 resync_thread_list.
88
ab970af1
PA
892014-10-15 Pedro Alves <palves@redhat.com>
90
91 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
92 * remote.c (remote_update_thread_list): Skip calling prune_threads
93 if any thread listing method is supported, and instead walk over
94 the set of remote threads listed, deleting those that are not
95 found in GDB's thread list.
96
e8032dde
PA
972014-10-15 Pedro Alves <palves@redhat.com>
98
99 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
100 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
101 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
102 (bsd_uthread_target): Adjust.
103 * corelow.c (core_open): Adjust.
104 * dec-thread.c (dec_thread_find_new_threads): Update comment.
105 (dec_thread_update_thread_list): New function.
106 (init_dec_thread_ops): Adjust.
107 * gdbthread.h (prune_threads): New declaration.
108 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
109 (thread_db_update_thread_list): ... this. Call prune_threads.
110 (init_thread_db_ops): Adjust.
111 * nto-procfs.c (procfs_find_new_threads): Rename to ...
112 (procfs_update_thread_list): ... this. Call prune_threads.
113 (procfs_attach, procfs_create_inferior, init_procfs_targets):
114 Adjust.
115 * obsd-nat.c (obsd_find_new_threads): Rename to ...
116 (obsd_update_thread_list): ... this. Call prune_threads.
117 (obsd_add_target): Adjust.
118 * procfs.c (procfs_target): Adjust.
119 (procfs_notice_thread): Update comment.
120 (procfs_find_new_threads): Rename to ...
121 (procfs_update_thread_list): ... this. Call prune_threads.
122 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
123 comment.
124 (ravenscar_wait): Adjust.
125 (ravenscar_find_new_threads): Rename to ...
126 (ravenscar_update_thread_list): ... this. Call prune_threads.
127 (init_ravenscar_thread_ops): Adjust.
128 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
129 (record_btrace_update_thread_list): ... this. Adjust comment.
130 (init_record_btrace_ops): Adjust.
131 * remote.c (remote_threads_info): Rename to ...
132 (remote_update_thread_list): ... this. Call prune_threads.
133 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
134 Adjust.
135 * sol-thread.c (check_for_thread_db): Adjust.
136 (sol_find_new_threads_callback): Rename to ...
137 (sol_update_thread_list_callback): ... this.
138 (sol_find_new_threads): Rename to ...
139 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
140 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
141 * target-delegates.c: Regenerate.
142 * target.c (target_find_new_threads): Rename to ...
143 (target_update_thread_list): ... this.
144 * target.h (struct target_ops): Rename to_find_new_threads field
145 to to_update_thread_list.
146 (target_find_new_threads): Rename to ...
147 (target_update_thread_list): ... this.
148 * thread.c (prune_threads): Make extern.
149 (update_thread_list): Adjust.
150
6dc54d91
PA
1512014-10-15 Pedro Alves <palves@redhat.com>
152
153 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
154 Add describing comment. Return -1 if the qL packet is not
155 supported.
156 (struct thread_item, thread_item_t): Move higher up in
157 the file. Add comments.
158 (struct threads_parsing_context): Move higher up in
159 the file, add comments, and remote to ...
160 (struct threads_listing_context): ... this.
161 (remote_newthread_step): Don't add the thread to GDB's thread
162 database here. Instead push it to the thread_listing_context
163 list.
164 (remote_find_new_threads): Rename to ...
165 (remote_get_threads_with_ql): ... this. Add target_ops and
166 targets_listing_context parameters. Pass down context.
167 (start_thread): Adjust.
168 (clear_threads_parsing_context): Rename to ...
169 (clear_threads_listing_context): ... this.
170 (remote_get_threads_with_qxfer): New, with parts salvaged from old
171 remote_threads_info.
172 (remote_get_threads_with_qthreadinfo): Ditto.
173 (remote_threads_info): Reimplement.
174
36728e82
PA
1752014-10-15 Pedro Alves <palves@redhat.com>
176
177 * infrun.c (resume): Don't force displaced-stepping for all
178 single-steps on software single-stepping archs.
179
34b7e8a6
PA
1802014-10-15 Pedro Alves <palves@redhat.com>
181
182 * breakpoint.c (single_step_breakpoints): Delete global.
183 (insert_single_step_breakpoint): Adjust to store the breakpoint
184 pointer in the current thread.
185 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
186 (cancel_single_step_breakpoints): Delete functions.
187 (breakpoint_has_location_inserted_here): Make extern.
188 (single_step_breakpoint_inserted_here_p): Adjust to walk the
189 breakpoint list.
190 * breakpoint.h (breakpoint_has_location_inserted_here): New
191 declaration.
192 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
193 (cancel_single_step_breakpoints): Remove declarations.
194 * gdbthread.h (struct thread_control_state)
195 <single_step_breakpoints>: New field.
196 (delete_single_step_breakpoints)
197 (thread_has_single_step_breakpoints_set)
198 (thread_has_single_step_breakpoint_here): New declarations.
199 * infrun.c (follow_exec): Also clear the single-step breakpoints.
200 (singlestep_breakpoints_inserted_p, singlestep_ptid)
201 (singlestep_pc): Delete globals.
202 (infrun_thread_ptid_changed): Remove references to removed
203 globals.
204 (resume_cleanups): Delete the current thread's single-step
205 breakpoints.
206 (maybe_software_singlestep): Remove references to removed globals.
207 (resume): Adjust to use thread_has_single_step_breakpoints_set and
208 delete_single_step_breakpoints.
209 (init_wait_for_inferior): Remove references to removed globals.
210 (delete_thread_infrun_breakpoints): Delete the thread's
211 single-step breakpoints too.
212 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
213 single-step breakpoints here.
214 (delete_stopped_threads_single_step_breakpoints): New function.
215 (adjust_pc_after_break): Adjust to use
216 thread_has_single_step_breakpoints_set.
217 (handle_inferior_event): Remove references to removed globals.
218 Use delete_stopped_threads_single_step_breakpoints.
219 (handle_signal_stop): Adjust to per-thread single-step
220 breakpoints. Swap test order to do cheaper tests first.
221 (switch_back_to_stepped_thread): Extend debug output. Remove
222 references to removed globals.
223 * record-full.c (record_full_wait_1): Adjust to per-thread
224 single-step breakpoints.
225 * thread.c (delete_single_step_breakpoints)
226 (thread_has_single_step_breakpoints_set)
227 (thread_has_single_step_breakpoint_here): New functions.
228 (clear_thread_inferior_resources): Also delete the thread's
229 single-step breakpoints.
230
5b834a0a
PA
2312014-10-15 Pedro Alves <palves@redhat.com>
232
233 * thread.c (delete_thread_breakpoint): New function.
234 (delete_step_resume_breakpoint)
235 (delete_exception_resume_breakpoint): Use it.
236 (delete_at_next_stop): New function.
237 (clear_thread_inferior_resources): Use delete_at_next_stop.
238
a1fd2fa5
PA
2392014-10-15 Pedro Alves <palves@redhat.com>
240
241 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
242 (breakpoint_inserted_here_p): ... here. Remove special case for
243 software single-step breakpoints.
244 (find_non_raw_software_breakpoint_inserted_here): Inline ...
245 (software_breakpoint_inserted_here_p): ... here. Remove special
246 case for software single-step breakpoints.
247 (bp_target_info_copy_insertion_state)
248 (deprecated_insert_raw_breakpoint)
249 (deprecated_remove_raw_breakpoint): Delete functions.
250 * breakpoint.h (deprecated_insert_raw_breakpoint)
251 (deprecated_remove_raw_breakpoint): Remove declarations.
252
7c16b83e
PA
2532014-10-15 Pedro Alves <palves@redhat.com>
254
255 PR breakpoints/9649
256 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
257 Delete array globals.
258 (single_step_breakpoints): New global.
259 (breakpoint_xfer_memory): Remove special handling for single-step
260 breakpoints.
261 (update_breakpoints_after_exec): Delete bp_single_step
262 breakpoints.
263 (detach_breakpoints): Remove special handling for single-step
264 breakpoints.
265 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
266 (bpstat_stop_status): Add comment.
267 (bpstat_what, bptype_string, print_one_breakpoint_location)
268 (adjust_breakpoint_address, init_bp_location): Handle
269 bp_single_step.
270 (new_single_step_breakpoint): New function.
271 (set_momentary_breakpoint, bkpt_remove_location): Remove special
272 handling for single-step breakpoints.
273 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
274 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
275 Rewrite.
276 (detach_single_step_breakpoints, find_single_step_breakpoint):
277 Delete functions.
278 (breakpoint_has_location_inserted_here): New function.
279 (single_step_breakpoint_inserted_here_p): Rewrite.
280 * breakpoint.h: Remove FIXME.
281 (enum bptype) <bp_single_step>: New enum value.
282 (insert_single_step_breakpoint): Update comment.
283 * infrun.c (resume_cleanups)
284 (delete_step_thread_step_resume_breakpoint): Remove single-step
285 breakpoints.
286 (fetch_inferior_event): Install a cleanup that removes infrun
287 breakpoints.
288 (switch_back_to_stepped_thread) <expect thread advanced also>:
289 Clear step-over info.
290
0cbcdb96
PA
2912014-10-15 Pedro Alves <palves@redhat.com>
292
293 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
294 (delete_thread_infrun_breakpoints): New function, with parts
295 salvaged from delete_step_resume_breakpoint_callback.
296 (delete_step_thread_step_resume_breakpoint): Delete.
297 (for_each_just_stopped_thread_callback_func): New typedef.
298 (for_each_just_stopped_thread): New function.
299 (delete_just_stopped_threads_infrun_breakpoints): New function.
300 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
301 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
302 ... this. Adjust.
303 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
304
963f9c80
PA
3052014-10-15 Pedro Alves <palves@redhat.com>
306
307 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
308 trying to step past a non-steppable watchpoint.
309 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
310 field.
311 * infrun.c (struct step_over_info): Add new field
312 'nonsteppable_watchpoint_p' and adjust comments.
313 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
314 Adjust.
315 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
316 (stepping_past_nonsteppable_watchpoint): New function.
317 (step_over_info_valid_p): Also return true if stepping past a
318 nonsteppable watchpoint.
319 (proceed): Adjust call to set_step_over_info. Remove reference to
320 init_infwait_state.
321 (init_wait_for_inferior): Remove reference to init_infwait_state.
322 (waiton_ptid): Delete global.
323 (struct execution_control_state)
324 <stepped_after_stopped_by_watchpoint>: Delete field.
325 (wait_for_inferior, fetch_inferior_event): Always pass
326 minus_one_ptid to target_wait.
327 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
328 field.
329 (init_infwait_state): Delete function.
330 (handle_inferior_event): Remove infwait_state handling.
331 (handle_signal_stop) <watchpoints handling>: Adjust after
332 stepped_after_stopped_by_watchpoint removal. Don't remove
333 breakpoints here nor set infwait_state. Set the thread's
334 stepping_over_watchpoint flag, and call keep_going instead.
335 (keep_going): Handle stepping_over_watchpoint. Adjust
336 set_step_over_info calls.
337 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
338 function.
339
6cc83d2a
PA
3402014-10-15 Pedro Alves <palves@redhat.com>
341
342 * infrun.c (step_over_info_valid_p): New function.
343 (resume): Use step_over_info_valid_p instead of checking the
344 threads's trap_expected flag.
345
6979730b
DE
3462014-10-15 Doug Evans <dje@google.com>
347 Walfred Tedeschi <walfred.tedeschi@intel.com>
348
349 PR python/17364
350 * python/lib/gdb/__init__.py (packages): Add "printer".
351 * python/lib/gdb/command/bound_registers.py: Moved to ...
352 * python/lib/gdb/printer/bound_registers.py: ... here.
353 Add printer to global set of builtin printers. Rename printer from
354 "bound" to "mpx_bound128".
355 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
356 registered as global "builtin" printer.
357 (add_builtin_pretty_printer): New function.
358 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
359 gdb/printer/__init__.py.
360
35a49624
IB
3612014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
362
363 * Makefile.in (SFILES): Remove d-support.c.
364 (COMMON_OBS): Remove d-support.o.
365 * d-lang.h (d_parse_symbol): Remove declaration.
366 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
367 * d-support.c: Remove file.
368
8fa0c4f8
AA
3692014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
370
371 * gdb/infrun.c (process_event_stop_test): Apply
372 gdbarch_addr_bits_remove to longjmp resume address.
373
3666da81
PA
3742014-10-15 Pedro Alves <palves@redhat.com>
375
376 * regformats/microblaze.dat: Delete file.
377
449aa9df
AKA
3782014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
379
380 * features/Makefile (microblaze-expedite): Replace pc with rpc.
381 * regformats/microblaze-with-stack-protect.dat: Regenerate.
382
ebb8ece2
SC
3832014-10-15 Siva Chandra Reddy <sivachandra@google.com>
384
385 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
386 as non-trivial.
387
82c48ac7
SC
3882014-10-15 Siva Chandra Reddy <sivachandra@google.com>
389
390 PR c++/13403
391 PR c++/15154
392 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
393 with qualified args.
394
c40cc657
JB
3952014-10-14 Joel Brobecker <brobecker@adacore.com>
396
397 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
398 of the case where the second operand is a pointer.
399 <BINOP_SUB>: Likewise.
400
0ea5cda8
SDJ
4012014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
402
403 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
404 only if it is not NULL.
405 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
406 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
407 (struct probe_ops) <clear_semaphore>: Likewise.
408 * tracepoint.c (start_tracing): Call set_semaphore only if it is
409 not NULL.
410 (stop_tracing): Likewise, for clear_semaphore.
411
f7088df3
SDJ
4122014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
413
414 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
415 using language_c, instead of current_language.
416
4e1bbde0
DE
4172014-10-13 Doug Evans <dje@google.com>
418
6ff5a0f6 419 * python/py-objfile.c (objfpy_initialize): New function.
4e1bbde0 420 (objfpy_new, objfile_to_objfile_object): Call it.
6ff5a0f6 421 * python/py-progspace.c (pspy_initialize): New function.
4e1bbde0
DE
422 (pspy_new, pspace_to_pspace_object): Call it.
423
c780cc2f
JK
4242014-10-13 Miroslav Franc <mfranc@redhat.com>
425 Jan Kratochvil <jan.kratochvil@redhat.com>
426
427 Fix "save breakpoints" for "catch" command.
428 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
429 newline.
430
99894e11
JK
4312014-10-12 Miroslav Franc <mfranc@redhat.com>
432
433 Fix "save breakpoints" for "disable $bpnum" command.
434 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
435
3831839c
PA
4362014-10-10 Pedro Alves <palves@redhat.com>
437
438 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
439 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
440 (HFILES_NO_SRCDIR): Remove solib-irix.h.
441 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
442 and been removed.
443 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
444 * configure.ac: Remove references to IRIX.
445 * configure.host: Add *-*-irix* to the obsolete hosts section.
446 Remove all other references to irix.
447 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
448 Delete files.
449
cc3afae2
AKA
4502014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
451
452 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
453 isn't valid, release the tdesc arch data and return NULL.
454
cdfa0b0a
PA
4552014-10-10 Pedro Alves <palves@redhat.com>
456
457 * linux-tdep.c: Include observer.h.
458 (linux_inferior_data): New global.
459 (struct linux_info): New structure.
460 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
461 (get_linux_inferior_data): New functions.
462 (linux_vsyscall_range): Rename to ...
463 (linux_vsyscall_range_raw): ... this.
464 (linux_vsyscall_range): New function; handles caching.
465 (_initialize_linux_tdep): Register linux_inferior_data. Install
466 inferior_exit and inferior_appeared observers.
467
8b9a549d
PA
4682014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
469 Pedro Alves <palves@redhat.com>
470
471 PR symtab/14466
472 * solib-svr4.c (svr4_read_so_list): Rename to ...
473 (svr4_current_sos_1): ... this and change the function comment.
474 (svr4_current_sos): New function.
475
3437254d
PA
4762014-10-10 Pedro Alves <palves@redhat.com>
477
478 * arch-utils.c (default_vsyscall_range): New function.
479 * arch-utils.h (default_vsyscall_range): New declaration.
480 * gdbarch.sh (vsyscall_range): New hook.
481 * gdbarch.h, gdbarch.c: Regenerate.
482 * linux-tdep.c (linux_vsyscall_range): New function.
483 (linux_init_abi): Install linux_vsyscall_range as
484 vsyscall_range gdbarch hook.
485 * memrange.c (address_in_mem_range): New function.
486 * memrange.h (address_in_mem_range): New declaration.
487 * symfile-mem.c (find_vdso_size): Delete function.
488 (add_vsyscall_page): Use gdbarch_vsyscall_range.
489
31cc0b80
PA
4902014-10-10 Pedro Alves <palves@redhat.com>
491
492 * infrun.c (normal_stop): Fix typo in comment.
493
3e3286a2
SDJ
4942014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
495
496 PR tdep/9390
497 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
498 typo when using logical AND to determine instruction type.
499
fcbdedf8
YQ
5002014-10-09 Yao Qi <yao@codesourcery.com>
501
502 * infrun.c (handle_signal_stop): Remove local variable
503 'printed'.
504
db984616
SS
5052014-10-08 Stan Shebs <stan@codesourcery.com>
506
507 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
508
3ba37e6c
GB
5092014-10-08 Gary Benson <gbenson@redhat.com>
510
511 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
512
a442d071
GB
5132014-10-08 Gary Benson <gbenson@redhat.com>
514
515 * common/common-defs.h: Include common-exceptions.h.
516 * exceptions.h: Do not include common-exceptions.h.
517
6f1947e8
GB
5182014-10-08 Gary Benson <gbenson@redhat.com>
519
520 * common/common-defs.h: Include cleanups.h.
521 * common/common-exceptions.c: Do not include cleanups.h.
522 * utils.h: Likewise.
523
c765fdb9
GB
5242014-10-08 Gary Benson <gbenson@redhat.com>
525
526 * ada-lang.c: Do not include exceptions.h.
527 * ada-valprint.c: Likewise.
528 * amd64-tdep.c: Likewise.
529 * auto-load.c: Likewise.
530 * block.c: Likewise.
531 * break-catch-throw.c: Likewise.
532 * breakpoint.c: Likewise.
533 * btrace.c: Likewise.
534 * c-lang.c: Likewise.
535 * cli/cli-cmds.c: Likewise.
536 * cli/cli-interp.c: Likewise.
537 * cli/cli-script.c: Likewise.
538 * completer.c: Likewise.
539 * corefile.c: Likewise.
540 * corelow.c: Likewise.
541 * cp-abi.c: Likewise.
542 * cp-support.c: Likewise.
543 * cp-valprint.c: Likewise.
544 * darwin-nat.c: Likewise.
545 * dwarf2-frame-tailcall.c: Likewise.
546 * dwarf2-frame.c: Likewise.
547 * dwarf2loc.c: Likewise.
548 * dwarf2read.c: Likewise.
549 * eval.c: Likewise.
550 * event-loop.c: Likewise.
551 * event-top.c: Likewise.
552 * f-valprint.c: Likewise.
553 * frame-unwind.c: Likewise.
554 * frame.c: Likewise.
555 * gdbtypes.c: Likewise.
556 * gnu-v2-abi.c: Likewise.
557 * gnu-v3-abi.c: Likewise.
558 * guile/scm-auto-load.c: Likewise.
559 * guile/scm-breakpoint.c: Likewise.
560 * guile/scm-cmd.c: Likewise.
561 * guile/scm-frame.c: Likewise.
562 * guile/scm-lazy-string.c: Likewise.
563 * guile/scm-param.c: Likewise.
564 * guile/scm-symbol.c: Likewise.
565 * guile/scm-type.c: Likewise.
566 * hppa-hpux-tdep.c: Likewise.
567 * i386-tdep.c: Likewise.
568 * inf-loop.c: Likewise.
569 * infcall.c: Likewise.
570 * infcmd.c: Likewise.
571 * infrun.c: Likewise.
572 * interps.c: Likewise.
573 * interps.h: Likewise.
574 * jit.c: Likewise.
575 * linespec.c: Likewise.
576 * linux-nat.c: Likewise.
577 * linux-thread-db.c: Likewise.
578 * m32r-rom.c: Likewise.
579 * main.c: Likewise.
580 * memory-map.c: Likewise.
581 * mi/mi-cmd-break.c: Likewise.
582 * mi/mi-cmd-stack.c: Likewise.
583 * mi/mi-interp.c: Likewise.
584 * mi/mi-main.c: Likewise.
585 * monitor.c: Likewise.
586 * nto-procfs.c: Likewise.
587 * objc-lang.c: Likewise.
588 * p-valprint.c: Likewise.
589 * parse.c: Likewise.
590 * ppc-linux-tdep.c: Likewise.
591 * printcmd.c: Likewise.
592 * probe.c: Likewise.
593 * python/py-auto-load.c: Likewise.
594 * python/py-breakpoint.c: Likewise.
595 * python/py-cmd.c: Likewise.
596 * python/py-finishbreakpoint.c: Likewise.
597 * python/py-frame.c: Likewise.
598 * python/py-framefilter.c: Likewise.
599 * python/py-function.c: Likewise.
600 * python/py-gdb-readline.c: Likewise.
601 * python/py-inferior.c: Likewise.
602 * python/py-infthread.c: Likewise.
603 * python/py-lazy-string.c: Likewise.
604 * python/py-linetable.c: Likewise.
605 * python/py-param.c: Likewise.
606 * python/py-prettyprint.c: Likewise.
607 * python/py-symbol.c: Likewise.
608 * python/py-type.c: Likewise.
609 * python/py-value.c: Likewise.
610 * python/python-internal.h: Likewise.
611 * python/python.c: Likewise.
612 * record-btrace.c: Likewise.
613 * record-full.c: Likewise.
614 * regcache.c: Likewise.
615 * remote-fileio.c: Likewise.
616 * remote-mips.c: Likewise.
617 * remote.c: Likewise.
618 * rs6000-aix-tdep.c: Likewise.
619 * rs6000-nat.c: Likewise.
620 * skip.c: Likewise.
621 * solib-darwin.c: Likewise.
622 * solib-dsbt.c: Likewise.
623 * solib-frv.c: Likewise.
624 * solib-ia64-hpux.c: Likewise.
625 * solib-spu.c: Likewise.
626 * solib-svr4.c: Likewise.
627 * solib.c: Likewise.
628 * spu-tdep.c: Likewise.
629 * stack.c: Likewise.
630 * stap-probe.c: Likewise.
631 * symfile-mem.c: Likewise.
632 * symmisc.c: Likewise.
633 * target.c: Likewise.
634 * thread.c: Likewise.
635 * top.c: Likewise.
636 * tracepoint.c: Likewise.
637 * tui/tui-interp.c: Likewise.
638 * typeprint.c: Likewise.
639 * utils.c: Likewise.
640 * valarith.c: Likewise.
641 * valops.c: Likewise.
642 * valprint.c: Likewise.
643 * value.c: Likewise.
644 * varobj.c: Likewise.
645 * windows-nat.c: Likewise.
646 * xml-support.c: Likewise.
647
484933d1
MR
6482014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
649
650 * mips-tdep.c (add_offset_16): Rewrite to implement what the
651 name implies.
652 (extended_mips16_next_pc): Update accordingly.
653
ab50adb6
MR
6542014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
655
656 * mips-tdep.c (mips16_instruction_is_compact_branch): New
657 function.
658 (micromips_instruction_is_compact_branch): Likewise.
659 (mips16_scan_prologue): Terminate scanning upon seeing a branch
660 or a compact jump, reaching a jump delay slot, or seeing a
661 second non-prologue instruction.
662 (micromips_scan_prologue): Also terminate scanning upon seeing a
663 compact branch or jump, or reaching a branch or jump delay slot.
664 (mips32_scan_prologue): Terminate scanning upon reaching a branch
665 or jump delay slot, or seeing a second non-prologue instruction.
666 (mips32_instruction_has_delay_slot): Retain instruction
667 examination code only, update arguments accordingly and move
668 instruction fetch pieces to...
669 (mips32_insn_at_pc_has_delay_slot): ... this new function.
670 (micromips_instruction_has_delay_slot): Likewise and to...
671 (micromips_insn_at_pc_has_delay_slot): ... this new function.
672 (mips16_instruction_has_delay_slot): Likewise and to...
673 (mips16_insn_at_pc_has_delay_slot): ... this new function.
674 (mips_single_step_through_delay): Update accordingly.
675 (mips_adjust_breakpoint_address): Likewise.
676
ae790652
MR
6772014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
678
679 * mips-tdep.c (micromips_instruction_has_delay_slot): When
680 !mustbe32 also return 1 for 32-bit instructions.
681 (mips16_instruction_has_delay_slot): Likewise. Add an
682 explanatory comment.
683
9b807e7b
MR
6842014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
685
686 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
687 symbols special.
688
0d5ed153
MR
6892014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
690
691 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
692 update comments.
693 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
694 for the breakpoint's address. Don't preinitialize `placed_size'.
695 (insert_bp_location): Set `reqstd_address' rather than
696 `placed_address'.
697 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
698 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
699 address.
700 (bkpt_remove_location): Likewise.
701 (deprecated_insert_raw_breakpoint): Likewise.
702 (deprecated_remove_raw_breakpoint): Likewise.
703 (find_single_step_breakpoint): Likewise.
704 * mem-break.c (default_memory_insert_breakpoint): Use
705 `reqstd_address' for the breakpoint's address. Don't set
706 `placed_address' or `placed_size' if breakpoint contents couldn't
707 have been determined.
708 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
709 the breakpoint's address.
710 (remote_insert_hw_breakpoint): Likewise. Don't set
711 `placed_address' or `placed_size' if breakpoint couldn't have been
712 set.
713 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
714 `reqstd_address' for the breakpoint's address.
715 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
716 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
717 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
718 * microblaze-linux-tdep.c
719 (microblaze_linux_memory_remove_breakpoint): Likewise.
720 * monitor.c (monitor_insert_breakpoint): Likewise.
721 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
722 (procfs_insert_hw_breakpoint): Likewise.
723 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
724 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
725 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
726 * remote-mips.c (mips_insert_breakpoint): Likewise.
727 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
728
3e871532
LM
7292014-10-03 Luis Machado <lgustavo@codesourcery.com>
730
731 * valops.c (value_assign): Check for bit field assignments
732 before calling architecture-specific register value
733 conversion functions.
734
ec48dc8b
PM
7352014-10-03 Pierre Muller <muller@sourceware.org>
736
737 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
738
b57bacec
PA
7392014-10-02 Pedro Alves <palves@redhat.com>
740
741 * breakpoint.c (breakpoints_should_be_inserted_now): Use
742 threads_are_executing.
743 * breakpoint.h (breakpoints_should_be_inserted_now): Add
744 describing comment.
745 * gdbthread.h (threads_are_executing): Declare.
746 (handle_signal_stop) <random signals>: Don't print about the
747 signal here if stopping.
748 (end_stepping_range): Don't notify observers here.
749 (normal_stop): Update the thread list. If stopped by a random
750 signal or a stepping range ended, notify observers.
751 * thread.c (threads_executing): New global.
752 (init_thread_list): Clear 'threads_executing'.
753 (set_executing): Set or clear 'threads_executing'.
754 (threads_are_executing): New function.
755 (update_threads_executing): New function.
756 (update_thread_list): Use it.
757
13fd3ff3
PA
7582014-10-02 Pedro Alves <palves@redhat.com>
759
760 PR breakpoints/17431
761 * breakpoint.c (update_breakpoints_after_exec): Don't create
762 overlay, longjmp, std terminate nor exception breakpoints here.
763
32990ada
PA
7642014-10-02 Pedro Alves <palves@redhat.com>
765
766 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
767 Adjust comments.
768 * inferior.c (find_inferior_for_program_space): Give preference to
769 the current inferior.
770 * inferior.h (find_inferior_for_program_space): Update comment.
771 * progspace.c (switch_to_program_space_and_thread): Prefer the
772 current inferior if it's bound to the program space requested. If
773 the inferior found doesn't have a PID yet, don't bother looking up
774 a thread.
775 * progspace.h (switch_to_program_space_and_thread): Adjust
776 comment.
777 * thread.c (any_thread_of_process, any_live_thread_of_process):
778 Give preference to the current thread.
779
0fec99e8
PA
7802014-10-01 Pedro Alves <palves@redhat.com>
781
782 * breakpoint.c (insert_bp_location): Error out if inserting a
783 software breakpoint at a read-only address.
784 * target.c (memory_xfer_check_region): New function, factored out
785 from ...
786 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
787 ULONGEST.
788 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
789 against the memory region attributes.
790
2ddf4301
SM
7912014-10-01 Simon Marchi <simon.marchi@ericsson.com>
792
793 * NEWS: Announce new exit-code field in -list-thread-groups
794 output.
795 * inferior.c (exit_inferior_1): Don't clear exit code.
796 (inferior_appeared): Clear exit code.
797 * mi/mi-main.c (print_one_inferior): Add printing of the exit
798 code.
799
5fdeec1d
PA
8002014-10-01 Pedro Alves <palves@redhat.com>
801
802 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
803 GENERATED" along with emacs/vi read-only markers.
804 * regformats/aarch64.dat: Regenerate.
805 * regformats/arm-with-iwmmxt.dat: Regenerate.
806 * regformats/arm-with-neon.dat: Regenerate.
807 * regformats/arm-with-vfpv2.dat: Regenerate.
808 * regformats/arm-with-vfpv3.dat: Regenerate.
809 * regformats/i386/amd64-avx-linux.dat: Regenerate.
810 * regformats/i386/amd64-avx.dat: Regenerate.
811 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
812 * regformats/i386/amd64-avx512.dat: Regenerate.
813 * regformats/i386/amd64-linux.dat: Regenerate.
814 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
815 * regformats/i386/amd64-mpx.dat: Regenerate.
816 * regformats/i386/amd64.dat: Regenerate.
817 * regformats/i386/i386-avx-linux.dat: Regenerate.
818 * regformats/i386/i386-avx.dat: Regenerate.
819 * regformats/i386/i386-avx512-linux.dat: Regenerate.
820 * regformats/i386/i386-avx512.dat: Regenerate.
821 * regformats/i386/i386-linux.dat: Regenerate.
822 * regformats/i386/i386-mmx-linux.dat: Regenerate.
823 * regformats/i386/i386-mmx.dat: Regenerate.
824 * regformats/i386/i386-mpx-linux.dat: Regenerate.
825 * regformats/i386/i386-mpx.dat: Regenerate.
826 * regformats/i386/i386.dat: Regenerate.
827 * regformats/i386/x32-avx-linux.dat: Regenerate.
828 * regformats/i386/x32-avx.dat: Regenerate.
829 * regformats/i386/x32-avx512-linux.dat: Regenerate.
830 * regformats/i386/x32-avx512.dat: Regenerate.
831 * regformats/i386/x32-linux.dat: Regenerate.
832 * regformats/i386/x32.dat: Regenerate.
833 * regformats/microblaze-with-stack-protect.dat: Regenerate.
834 * regformats/mips-dsp-linux.dat: Regenerate.
835 * regformats/mips-linux.dat: Regenerate.
836 * regformats/mips64-dsp-linux.dat: Regenerate.
837 * regformats/mips64-linux.dat: Regenerate.
838 * regformats/nios2-linux.dat: Regenerate.
839 * regformats/rs6000/powerpc-32.dat: Regenerate.
840 * regformats/rs6000/powerpc-32l.dat: Regenerate.
841 * regformats/rs6000/powerpc-64l.dat: Regenerate.
842 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
843 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
844 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
845 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
846 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
847 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
848 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
849 * regformats/s390-linux32.dat: Regenerate.
850 * regformats/s390-linux32v1.dat: Regenerate.
851 * regformats/s390-linux32v2.dat: Regenerate.
852 * regformats/s390-linux64.dat: Regenerate.
853 * regformats/s390-linux64v1.dat: Regenerate.
854 * regformats/s390-linux64v2.dat: Regenerate.
855 * regformats/s390-te-linux64.dat: Regenerate.
856 * regformats/s390x-linux64.dat: Regenerate.
857 * regformats/s390x-linux64v1.dat: Regenerate.
858 * regformats/s390x-linux64v2.dat: Regenerate.
859 * regformats/s390x-te-linux64.dat: Regenerate.
860 * regformats/tic6x-c62x-linux.dat: Regenerate.
861 * regformats/tic6x-c62x.dat: Regenerate.
862 * regformats/tic6x-c64x-linux.dat: Regenerate.
863 * regformats/tic6x-c64x.dat: Regenerate.
864 * regformats/tic6x-c64xp-linux.dat: Regenerate.
865 * regformats/tic6x-c64xp.dat: Regenerate.
866
db74e4ba
PA
8672014-10-01 Pedro Alves <palves@redhat.com>
868
869 * features/Makefile: Update comments.
870 (XMLTOC): List all xml files we build C files from.
871 (clean-cfiles): New rule.
872
d63f2f84
PA
8732014-10-01 Pedro Alves <palves@redhat.com>
874
875 * features/i386/amd64-avx512-linux.c: Regenerate.
876 * features/i386/amd64-avx512.c: Regenerate.
877 * features/i386/x32-avx512-linux.c: Regenerate.
878 * features/i386/x32-avx512.c: Regenerate.
879
20ad026d
PA
8802014-10-01 Pedro Alves <palves@redhat.com>
881
882 * features/Makefile (WHICH): Remove arm-with-m,
883 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
884
acc9fe45
PA
8852014-10-01 Pedro Alves <palves@redhat.com>
886
887 * features/Makefile (clean): New rule.
888
e001e535
PA
8892014-10-01 Pedro Alves <palves@redhat.com>
890
891 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
892 (zmm14h): Add missing end quotes.
893
bdc14417
PA
8942014-10-01 Pedro Alves <palves@redhat.com>
895
896 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
897 * features/aarch64.c: Regenerate.
898
d83ad864
DB
8992014-09-30 Don Breazeal <donb@codesourcery.com>
900
901 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
902 code so as to work with follow_fork_inferior.
903 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
904 (inf_ttrace_create_inferior): Remove reference to
905 inf_ttrace_vfork_ppid.
906 (inf_ttrace_attach): Ditto.
907 (inf_ttrace_detach): Ditto.
908 (inf_ttrace_kill): Use current_inferior instead of
909 inf_ttrace_vfork_ppid.
910 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
911 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
912 inferior away from the parent.
913 * infrun.c (follow_fork): Call follow_fork_inferior instead of
914 target_follow_fork.
915 (follow_fork_inferior): New function.
916 (follow_inferior_reset_breakpoints): Make function static.
917 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
918 * linux-nat.c (linux_child_follow_fork): Move target-independent
919 code to infrun.c:follow_fork_inferior.
920
29082443
AA
9212014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
922
923 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
924 * gdbarch.c: Regenerate.
925 * gdbarch.h: Likewise.
926 * corelow.c (sniff_core_bfd): Drop presence check for deleted
927 gdbarch method 'regset_from_core_section'.
928 (get_core_register_section): Remove handling for the case that
929 regset == NULL and regset_from_core_section is defined.
930 (get_core_registers): Drop check for deleted method.
931 * procfs.c (procfs_do_thread_registers): Adjust comment.
932
f968fe80
AA
9332014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
934
935 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
936 (linux_nat_make_corefile_notes): Remove.
937 (linux_target_install_ops): Do not set target method
938 'make_corefile_notes'.
939 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
940 Remove field.
941 (linux_corefile_thread_callback): Instead of args->collect, call
942 linux_collect_thread_registers.
943 (linux_make_corefile_notes): Remove 'collect' parameter. Return
944 NULL unless there is a regset iterator.
945 (linux_make_corefile_notes_1): Remove.
946 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
947 by linux_make_corefile_notes.
948 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
949
174ad59a
AA
9502014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
951
952 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
953 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
954 Remove.
955 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
956
97094034
AA
9572014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
958
959 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
960 (xtensa_iterate_over_regset_sections): New.
961 (xtensa_gdbarch_init): Adjust gdbarch initialization.
962
f73d3ce7
AA
9632014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
964
965 * vax-tdep.c (vax_regset_from_core_section): Remove.
966 (vax_iterate_over_regset_sections): New.
967 (vax_gdbarch_init): Adjust gdbarch initialization.
968
cb24567a
AA
9692014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
970
971 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
972 (tilegx_regset_from_core_section): Remove.
973 (tilegx_iterate_over_regset_sections): New.
974 (tilegx_linux_init_abi): Adjust gdbarch initialization.
975
e5139de8
AA
9762014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
977
978 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
979 (sparc_iterate_over_regset_sections): New.
980 (sparc32_gdbarch_init): Adjust gdbarch initialization.
981 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
982 targets.
983 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
984 (sparc64fbsd_init_abi): Call fbsd_init_abi.
985 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
986 target method 'make_corefile_notes'.
987
c6d41a6f
AA
9882014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
989
990 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
991 'sizeof_gregset' and 'sizeof_fpregset'.
992 * sh-tdep.c (sh_regset_from_core_section): Remove.
993 (sh_iterate_over_regset_sections): New.
994 (sh_gdbarch_init): Adjust gdbarch initialization.
995 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
996 sizeof_fpregset.
997 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
998 'sizeof_gregset'.
999
9845a0b5
AA
10002014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1001
1002 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
1003 (score7_linux_iterate_over_regset_sections): New.
1004 (score_gdbarch_init): Adjust gdbarch initialization.
1005
23ea9aeb
AA
10062014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1007
1008 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
1009 FreeBSD targets.
1010 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
1011 method 'make_corefile_notes'.
1012 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
1013 (ppcfbsd_regset_from_core_section): Remove.
1014 (ppcfbsd_iterate_over_regset_sections): New.
1015 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
1016 initialization.
1017 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
1018 (ppcnbsd_iterate_over_regset_sections): New.
1019 (ppcnbsd_init_abi): Adjust.
1020 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
1021 (ppcobsd_iterate_over_regset_sections): New.
1022 (ppcobsd_init_abi): Adjust.
1023 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
1024 (rs6000_aix_iterate_over_regset_sections): New.
1025 (rs6000_aix_init_osabi): Adjust.
1026
c5b8d704
AA
10272014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1028
1029 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
1030 (nios2_regset_from_core_section): Remove.
1031 (nios2_iterate_over_regset_sections): New.
1032 (nios2_linux_init_abi): Adjust gdbarch initialization.
1033
3636e608
AA
10342014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1035
1036 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
1037 (am33_iterate_over_regset_sections): New.
1038 (am33_linux_init_osabi): Adjust gdbarch initialization.
1039
d4036235
AA
10402014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1041
1042 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
1043 (mips_linux_iterate_over_regset_sections): New.
1044 (mips_linux_init_abi): Adjust gdbarch initialization.
1045 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
1046 (mips64obsd_iterate_over_regset_sections): New.
1047 (mips64obsd_init_abi): Adjust.
1048 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
1049 (mipsnbsd_iterate_over_regset_sections): New.
1050 (mipsnbsd_init_abi): Adjust.
1051
b61ddd6e
AA
10522014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1053
1054 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
1055 (m88k_iterate_over_regset_sections): New.
1056 (m88k_gdbarch_init): Adjust gdbarch initialization.
1057
55a2906a
AA
10582014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1059
1060 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
1061 (ia64_linux_iterate_over_regset_sections): New.
1062 (ia64_linux_init_abi): Adjust gdbarch initialization.
1063
022c98ab
AA
10642014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1065
1066 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
1067 (m68kbsd_iterate_over_regset_sections): New.
1068 (m68kbsd_init_abi): Adjust gdbarch initialization.
1069 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
1070 (m68k_linux_iterate_over_regset_sections): New.
1071 (m68k_linux_init_abi): Adjust gdbarch initialization.
1072
5fac247f
AA
10732014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1074
1075 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
1076 (m32r_linux_regset_from_core_section): Remove.
1077 (m32r_linux_iterate_over_regset_sections): New.
1078 (m32r_linux_init_abi): Adjust gdbarch initialization.
1079
490496c3
AA
10802014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1081
1082 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
1083 (amd64obsd_iterate_over_regset_sections): New.
1084 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
1085 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
1086 Remove.
1087 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
1088 regset_from_core_section initialization.
1089 * i386-tdep.c (i386_regset_from_core_section): Remove.
1090 (i386_iterate_over_regset_sections): New.
1091 (i386_gdbarch_init): Adjust gdbarch initialization.
1092 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
1093 (i386_iterate_over_regset_sections): New prototype.
1094 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
1095 Remove.
1096 (i386obsd_aout_iterate_over_regset_sections): New.
1097 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
1098 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
1099 targets.
1100 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
1101 (amd64fbsd_init_abi): Call fbsd_init_abi.
1102 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
1103 (i386fbsd4_init_abi): Call fbsd_init_abi.
1104 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
1105 target method 'make_corefile_notes'.
1106 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
1107
50c5eb53
AA
11082014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1109
1110 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
1111 (hppa_hpux_iterate_over_regset_sections): New.
1112 (hppa_hpux_init_abi): Adjust gdbarch initialization.
1113 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
1114 (hppa_linux_iterate_over_regset_sections): New.
1115 (hppa_linux_init_abi): Adjust.
1116 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
1117 (hppanbsd_iterate_over_regset_sections): New.
1118 (hppanbsd_init_abi): Adjust.
1119 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
1120 (hppaobsd_iterate_over_regset_sections): New.
1121 (hppaobsd_init_abi): Adjust.
1122
66afae4f
AA
11232014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1124
1125 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
1126 (frv_linux_iterate_over_regset_sections): New.
1127 (frv_linux_init_abi): Adjust gdbarch initialization.
1128
ed09174e
AA
11292014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1130
1131 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
1132 (armbsd_iterate_over_regset_sections): New prototype.
1133 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
1134 (armbsd_iterate_over_regset_sections): New.
1135 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
1136 initialization.
1137
dff2166e
AA
11382014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1139
1140 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
1141 (alpha_linux_iterate_over_regset_sections): New.
1142 (alpha_linux_init_abi): Adjust gdbarch initialization.
1143 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
1144 prototype.
1145 (alphanbsd_iterate_over_regset_sections): New prototype.
1146
4108500a
AA
11472014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1148
1149 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
1150 Remove.
1151 (aarch64_linux_iterate_over_regset_sections): New.
1152 (aarch64_linux_init_abi): Adjust gdbarch initialization.
1153
a904c024
AA
11542014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1155
1156 * fbsd-tdep.c: New file.
1157 * fbsd-tdep.h: New file.
1158 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
1159 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
1160 (ALLDEPFILES): Add fbsd-tdep.c.
1161
8f0435f7
AA
11622014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1163
1164 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
1165 parameter.
1166 * gdbarch.h: Regenerate.
1167 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
1168 iterator.
1169 (get_core_register_section): Add parameter 'regset' and use it, if
1170 set. Add parameter 'min_size' and verify the bfd section size
1171 against it.
1172 (get_core_registers_cb): Add parameter 'regset' and pass it to
1173 get_core_register section. For the "standard" register sections
1174 ".reg" and ".reg2", set an appropriate default for human_name.
1175 (get_core_registers): Don't abort when the gdbarch has an iterator
1176 but no regset_from_core_section. Add NULL/0 for parameters
1177 'regset'/'min_size' in calls to get_core_register_section.
1178 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
1179 'regset' and use it instead of calling the
1180 regset_from_core_section gdbarch method.
1181 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
1182 * i386-tdep.c (i386_supply_xstateregset)
1183 (i386_collect_xstateregset, i386_xstateregset): Moved to
1184 i386-linux-tdep.c.
1185 (i386_regset_from_core_section): Drop handling for .reg-xfp and
1186 .reg-xstate.
1187 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
1188 core file support only if the regset iterator hasn't been set.
1189 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
1190 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
1191 Moved from i386-tdep.c and renamed to *_linux*.
1192 (i386_linux_iterate_over_regset_sections): Add regset parameter to
1193 each callback invocation. Allow any .reg-xstate size when reading
1194 from a core file.
1195 * amd64-tdep.c (amd64_supply_xstateregset)
1196 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
1197 amd64-linux-tdep.c.
1198 (amd64_regset_from_core_section): Remove.
1199 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
1200 install an amd64-specific regset_from_core_section gdbarch method.
1201 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
1202 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
1203 Moved from amd64-tdep.c and renamed to *_linux*.
1204 (amd64_linux_iterate_over_regset_sections): Add regset parameter
1205 to each callback invocation. Allow any .reg-xstate size when
1206 reading from a core file.
1207 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
1208 (arm_linux_iterate_over_regset_sections): Add regset parameter to
1209 each callback invocation.
1210 (arm_linux_init_abi): No longer set the regset_from_core_section
1211 gdbarch method.
1212 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
1213 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
1214 each callback invocation.
1215 (ppc_linux_init_abi): No longer set the regset_from_core_section
1216 gdbarch method.
1217 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
1218 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
1219 (s390_regset_from_core_section): Remove.
1220 (s390_iterate_over_regset_sections): Add regset parameter to each
1221 callback invocation.
1222 (s390_gdbarch_init): No longer set the regset_from_core_section
1223 gdbarch method. Drop initialization of deleted tdep fields.
1224
5aa82d05
AA
12252014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1226
1227 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
1228 (amd64_linux_iterate_over_regset_sections): New.
1229 (amd64_linux_init_abi_common): Don't install the regset section
1230 list, but the new iterator in gdbarch.
1231 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
1232 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
1233 (arm_linux_iterate_over_regset_sections): ...here. New function.
1234 (arm_linux_init_abi): Set iterator instead of section list.
1235 * corelow.c (get_core_registers_cb): New function, logic moved
1236 from...
1237 (get_core_registers): ...loop body here. Use new iterator method
1238 instead of walking through the regset section list.
1239 * gdbarch.sh: Remove 'core_regset_sections'. New method
1240 'iterate_over_regset_sections'. New typedef
1241 'iterate_over_regset_sections_cb'.
1242 * gdbarch.c: Regenerate.
1243 * gdbarch.h: Likewise.
1244 * i386-linux-tdep.c (i386_linux_regset_sections)
1245 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
1246 Remove.
1247 (i386_linux_iterate_over_regset_sections): New.
1248 (i386_linux_init_abi): Don't choose a regset section list, but
1249 install new iterator in gdbarch.
1250 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
1251 (linux_collect_regset_section_cb): New function, logic moved
1252 from...
1253 (linux_collect_thread_registers): ...loop body here. Use iterator
1254 method instead of walking through list.
1255 (linux_make_corefile_notes_1): Check for presence of iterator
1256 method instead of regset section list.
1257 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
1258 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
1259 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
1260 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
1261 (ppc_linux_iterate_over_regset_sections): ...here. New function.
1262 (ppc_linux_init_abi): Don't choose from above regset section
1263 lists, but install new iterator in gdbarch.
1264 * regset.h (struct core_regset_section): Remove.
1265 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
1266 have_linux_v1, have_linux_v2, and have_tdb.
1267 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
1268 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
1269 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
1270 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
1271 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
1272 (s390_iterate_over_regset_sections): ...here. New function. Use
1273 new tdep fields.
1274 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
1275 regset section lists, but install new iterator.
1276
2eca4a8d
JK
12772014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1278
1279 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
1280
a73c2b56
SM
12812014-09-26 Simon Marchi <simon.marchi@ericsson.com>
1282
1283 * progspace.c (print_program_space): Don't prune program spaces
1284 before printing them.
1285
03d46957
PA
12862014-09-25 Pedro Alves <palves@redhat.com>
1287
1288 * infrun.c (user_visible_resume_ptid): Don't check
1289 singlestep_breakpoints_inserted_p.
1290
e558d7c1
PA
12912014-09-25 Pedro Alves <palves@redhat.com>
1292
1293 * breakpoint.c (should_be_inserted): Add debug output.
1294
7f89fd65
PA
12952014-09-25 Pedro Alves <palves@redhat.com>
1296
1297 * infrun.c (stepping_past_instruction_at)
1298 (clear_exit_convenience_vars): Point at infrun.h instead of
1299 inferior.h.
1300 (handle_signal_stop): Fix typo.
1301
b7576e5c
YQ
13022014-09-24 Yao Qi <yao@codesourcery.com>
1303
1304 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
1305 bitmask.
1306
9a6cf368
GB
13072014-09-22 Gary Benson <gbenson@redhat.com>
1308
1309 * target.c (target_stop): Updated comment.
1310
03f4463b
GB
13112014-09-22 Gary Benson <gbenson@redhat.com>
1312
1313 * target/target.h (target_stop_ptid): Renamed as...
1314 (target_stop_and_wait): New function. Updated comment.
1315 All uses updated.
1316 (target_continue_ptid): Renamed as...
1317 (target_continue_no_signal): New function. Updated comment.
1318 All uses updated.
1319
a25a5a45
PA
13202014-09-22 Pedro Alves <palves@redhat.com>
1321
1322 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
1323 and "auto" merged.
1324 * breakpoint.c (enum ugll_insert_mode): New enum.
1325 (always_inserted_mode): Now a plain boolean.
1326 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
1327 (breakpoints_always_inserted_mode): Delete.
1328 (breakpoints_should_be_inserted_now): New function.
1329 (insert_breakpoints): Pass UGLL_INSERT to
1330 update_global_location_list instead of calling
1331 insert_breakpoint_locations manually.
1332 (create_solib_event_breakpoint_1): New, factored out from ...
1333 (create_solib_event_breakpoint): ... this.
1334 (create_and_insert_solib_event_breakpoint): Use
1335 create_solib_event_breakpoint_1 instead of calling
1336 insert_breakpoint_locations manually.
1337 (update_global_location_list): Change parameter type from boolean
1338 to enum ugll_insert_mode. All callers adjusted. Adjust to use
1339 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
1340 (update_global_location_list_nothrow): Change parameter type from
1341 boolean to enum ugll_insert_mode.
1342 (_initialize_breakpoint): "breakpoint always-inserted" option is
1343 now a boolean command. Update help text.
1344 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
1345 (breakpoints_should_be_inserted_now): New declaration.
1346 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
1347 Remove breakpoints_always_inserted_mode check.
1348 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
1349 * remote.c (remote_start_remote): Likewise.
1350
04086b45
PA
13512014-09-22 Pedro Alves <palves@redhat.com>
1352
1353 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
1354 (insert_breakpoints): Don't call insert_breakpoint_locations here.
1355 Instead, pass UGLL_INSERT to update_global_location_list.
1356 (update_global_location_list): Change parameter type from boolean
1357 to enum ugll_insert_mode. All callers adjusted. Adjust to use
1358 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
1359 (create_solib_event_breakpoint_1): New, factored out from ...
1360 (create_solib_event_breakpoint): ... this.
1361 (create_and_insert_solib_event_breakpoint): Use
1362 create_solib_event_breakpoint_1 instead of calling
1363 insert_breakpoint_locations manually.
1364 (update_global_location_list): Handle UGLL_INSERT.
1365
44702360
PA
13662014-09-22 Pedro Alves <palves@redhat.com>
1367
1368 * breakpoint.c (enum ugll_insert_mode): New enum.
1369 (update_global_location_list)
1370 (update_global_location_list_nothrow): Change parameter type from
1371 boolean to enum ugll_insert_mode. All callers adjusted.
1372
93c6145a
JB
13732014-09-19 Joel Brobecker <brobecker@adacore.com>
1374
1375 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
1376 SystemTap support in GDB.
1377
89a5711c
DB
13782014-09-19 Don Breazeal <donb@codesourcery.com>
1379
1380 * linux-nat.c (linux_handle_extended_wait): Call
1381 linux_ptrace_get_extended_event.
1382 (wait_lwp): Call linux_is_extended_waitstatus.
1383 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
1384 and linux_is_extended_waitstatus.
1385 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
1386 linux_ptrace_get_extended_event.
1387 (linux_ptrace_get_extended_event): New function.
1388 (linux_is_extended_waitstatus): New function.
1389 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
1390 (linux_is_extended_waitstatus): New declarations.
1391
c3b7b696
YQ
13922014-09-19 Yao Qi <yao@codesourcery.com>
1393
1394 * dwarf2read.c (dwarf_decode_lines): Update declaration.
1395 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
1396 comments. Callers update.
1397 (dwarf_decode_lines): Likewise.
1398 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
1399 comments. Skip the line table if 'lowpc' is greater than
1400 'address'. Don't check
1401 dwarf2_per_objfile->has_section_at_zero.
1402
2b4fd423
DE
14032014-09-18 Doug Evans <dje@google.com>
1404
1405 * NEWS: Mention new "producer" attribute of gdb.Symtab.
1406 * python/py-symtab.c (stpy_get_producer): New function.
1407 (symtab_object_getset): Add "producer" attribute.
1408
5e43d467
UW
14092014-09-17 Ulrich Weigand  <uweigand@de.ibm.com>
1410
1411 PR gdb/17384
1412 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
1413 (do_captured_read_memory_integer): Remove.
1414 (safe_read_memory_integer): Use target_read_memory directly instead
1415 of catching errors in do_captured_read_memory_integer.
1416
04e79979
MR
14172014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
1418
1419 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
1420 not gdb/doc.
1421
76aeec5b
SDJ
14222014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1423
1424 * objc-lang.c (find_implementation_from_class): Remove dead code.
1425
2f693f9d
SDJ
14262014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1427
1428 PR cli/7233
1429 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
1430 "fprintf_unfiltered (gdb_stdlog...)".
1431
bb9d5f81
PP
14322014-09-16 Patrick Palka <patrick@parcs.ath.cx>
1433
1434 PR breakpoints/12526
1435 * breakpoint.h (struct watchpoint): New fields val_bitpos and
1436 val_bitsize.
1437 * breakpoint.c (watch_command_1): Use these fields to retain
1438 bitfield information.
1439 (extract_bitfield_from_watchpoint_value): New function.
1440 (watchpoint_check): Use it.
1441 (update_watchpoint): Use it. Optimize the address and length of a
1442 HW watchpoint pointing to a bitfield.
1443 * value.h (unpack_value_bitfield): New prototype.
1444 * value.c (unpack_value_bitfield): Make extern.
1445
05db5edd
ST
14462014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
1447
1448 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
1449 x86-dregs.o.
1450 * gnu-nat.c (inf_threads): New function.
1451 * gnu-nat.h (inf_threads_ftype): New typedef.
1452 (inf_threads): New declaration.
1453 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
1454 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
1455 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
1456 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
1457 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
1458 (i386_gnu_dr_get_control): New functions.
1459 (reg_addr): New structure.
1460 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
1461 i386 debugging register hooks.
1462 * NEWS: Mention this.
1463
5a578da5
OJ
14642014-08-13 Omair Javaid <omair.javaid@linaro.org>
1465
1466 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
1467 vector data transfer instructions.
1468 (arm_record_coproc_data_proc): Updated.
1469
f20f80dd
OJ
14702014-08-13 Omair Javaid <omair.javaid@linaro.org>
1471
1472 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
1473 arm_record_exreg_ld_st_insn.
1474 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
1475 load/store insns.
1476
851f26ae
OJ
14772014-08-13 Omair Javaid <omair.javaid@linaro.org>
1478
1479 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
1480 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
1481 processing instructions.
1482
1e1b6563
OJ
14832014-08-13 Omair Javaid <omair.javaid@linaro.org>
1484
1485 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
1486 for advance SIMD struct ld/st insn.
1487 (thumb2_record_decode_insn_handler): Replace stub handler with
1488 thumb2_record_asimd_struct_ld_st.
1489
60cc5e93
OJ
14902014-08-13 Omair Javaid <omair.javaid@linaro.org>
1491
1492 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
1493 for asimd, vfp and coprocessor insns.
1494 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
1495 and coprocessor insns.
1496 (thumb2_record_coproc_insn): New function.
1497 (thumb2_record_decode_insn_handler): Update coprocessor insns record
1498 handlers.
1499 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
1500 opcode 110 insns.
1501
81219e53
DE
15022014-09-13 Doug Evans <xdje42@gmail.com>
1503
1504 * NEWS: Mention new "queue-signal" command.
1505 * infcmd.c (queue_signal_command): New function.
1506 (_initialize_infcmd): Add new queue-signal command.
1507
d36bf488
DE
15082014-09-13 Doug Evans <xdje42@gmail.com>
1509
1510 * linux-nat.c (wait_lwp): Add debugging printf.
1511 (linux_nat_wait_1): Ditto.
1512
f37f681c
PA
15132014-09-12 Pedro Alves <palves@redhat.com>
1514
1515 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
1516 (create_and_insert_solib_event_breakpoint): New functions.
1517 * breakpoint.h (create_and_insert_solib_event_breakpoint)
1518 (remove_solib_event_breakpoints_at_next_stop): New declarations.
1519 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
1520 (remove_dbx_link_breakpoint): Delete function.
1521 (insert_dbx_link_bpt_in_file): Use
1522 create_and_insert_solib_event_breakpoint instead of
1523 deprecated_insert_raw_breakpoint.
1524 (procfs_wait): Don't check whether we hit __dbx_link here.
1525 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
1526 here.
1527 * solib-irix.c (base_breakpoint): Delete global.
1528 (disable_break): Delete function.
1529 (enable_break): Use create_solib_event_breakpoint
1530 instead of deprecated_insert_raw_breakpoint.
1531 (irix_solib_handle_event): New function.
1532 (irix_solib_create_inferior_hook): Don't run the target or disable
1533 the mapping-complete breakpoint here.
1534 (_initialize_irix_solib): Install irix_solib_handle_event as
1535 so_ops->handle_event hook.
1536
9d9bf2df
EBM
15372014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1538 Ulrich Weigand  <uweigand@de.ibm.com>
1539
1540 PR tdep/17379
1541 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
1542 instead of read_memory_unsigned_integer.
1543
b006a80e
GB
15442014-09-12 Gary Benson <gbenson@redhat.com>
1545
1546 * nat/linux-waitpid.c: Include common-defs.h.
1547 [GDBSERVER]: Add FIXME comment.
1548 [!GDBSERVER]: Don't include defs.h or signal.h.
1549 (linux_debug) [!GDBSERVER]: Remove empty block.
1550
296b1496
GB
15512014-09-12 Gary Benson <gbenson@redhat.com>
1552
1553 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
1554 Don't include defs.h or server.h.
1555
53f81362
GB
15562014-09-12 Gary Benson <gbenson@redhat.com>
1557
1558 * nat/linux-btrace.c: Include common-defs.h.
1559 Don't include defs.h, server.h or gdbthread.h.
1560 * nat/linux-btrace.h (struct target_ops): New forward declaration.
1561
727605ca
GB
15622014-09-12 Gary Benson <gbenson@redhat.com>
1563
1564 * common/agent.c: Include common-defs.h.
1565 Don't include defs.h or server.h.
1566 * common/buffer.c: Likewise.
1567 * common/common-debug.c: Likewise.
1568 * common/common-utils.c: Likewise.
1569 * common/errors.c: Likewise.
1570 * common/filestuff.c: Likewise.
1571 * common/format.c: Likewise.
1572 * common/gdb_vecs.c: Likewise.
1573 * common/print-utils.c: Likewise.
1574 * common/ptid.c: Likewise.
1575 * common/rsp-low.c: Likewise.
1576 * common/signals.c: Likewise.
1577 * common/vec.c: Likewise.
1578 * common/xml-utils.c: Likewise.
1579 * nat/linux-osdata.c: Likewise.
1580 * nat/linux-procfs.c: Likewise.
1581 * nat/linux-ptrace.c: Likewise.
1582 * nat/mips-linux-watch.c: Likewise.
1583 * target/waitstatus.c: Likewise.
1584
361c8ade
GB
15852014-09-12 Tom Tromey <tromey@redhat.com>
1586 Gary Benson <gbenson@redhat.com>
1587
1588 * common/common-regcache.h: New file.
1589 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
1590 * regcache.h: Include common-regcache.h.
1591 (regcache_read_pc): Don't declare.
1592 * regcache.c (get_thread_regcache_for_ptid): New function.
1593 * nat/linux-btrace.c: Don't include regcache.h.
1594 Include common-regcache.h.
1595 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
1596
a01cbb49
TS
15972014-09-11 Thomas Schwinge <thomas@codesourcery.com>
1598
1599 * regcache.h (struct regset): Declare.
1600
98880d46
PA
16012014-09-11 Pedro Alves <palves@redhat.com>
1602
1603 PR gdb/17347
1604 * main.c: Include "infrun.h".
1605 (catch_command_errors, catch_command_errors_const): Wait for the
1606 foreground command to complete.
1607 * top.c (maybe_wait_sync_command_done): New function, factored out
1608 from ...
1609 (maybe_wait_sync_command_done): ... here.
1610 * top.h (maybe_wait_sync_command_done): New declaration.
1611
bd9269f7
GB
16122014-09-11 Tom Tromey <tromey@redhat.com>
1613 Gary Benson <gbenson@redhat.com>
1614
1615 * common/symbol.h: New file.
1616 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
1617 * minsyms.c (find_minimal_symbol_address): New function.
1618 * common/agent.c: Include common/symbol.h.
1619 [!GDBSERVER]: Don't include objfiles.h.
1620 (agent_look_up_symbols): Use find_minimal_symbol_address.
1621
f8c1d06b
GB
16222014-09-11 Gary Benson <gbenson@redhat.com>
1623
1624 * target/target.h (target_stop_ptid, target_continue_ptid):
1625 Declare.
1626 * target.c (target_stop_ptid, target_continue_ptid): New
1627 functions.
1628 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
1629 (agent_run_command): Always use target_stop_ptid and
1630 target_continue_ptid.
1631
721ec300
GB
16322014-09-11 Tom Tromey <tromey@redhat.com>
1633 Gary Benson <gbenson@redhat.com>
1634
1635 * target/target.h: New file.
1636 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
1637 * target.h: Include target/target.h.
1638 (target_read_memory, target_write_memory): Don't declare.
1639 * target.c (target_read_uint32): New function.
1640 * common/agent.c: Include target/target.h.
1641 [!GDBSERVER]: Don't include target.h.
1642 (helper_thread_id): Type changed to uint32_t.
1643 (agent_get_helper_thread_id): Use target_read_uint32.
1644 (agent_run_command): Always use target_read_memory and
1645 target_write_memory.
1646 (agent_capability): Type changed to uint32_t.
1647 (agent_capability_check): Use target_read_uint32.
1648
c5e92cca
GB
16492014-09-11 Gary Benson <gbenson@redhat.com>
1650
1651 * common/common-debug.h (show_debug_regs): Declare.
1652 * common/common-debug.c (show_debug_regs): Define.
1653 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
1654 all uses with show_debug_regs. Replace all uses that considered
1655 debug_hw_points as a multi-value integer with straight boolean
1656 uses.
1657 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
1658 with show_debug_regs.
1659 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
1660 all uses with show_debug_regs.
1661 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
1662 uses with show_debug_regs.
1663
eeef931a
UW
16642014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
1665
1666 * findvar.c (address_from_register): Handle targets requiring
1667 a special conversion routine even for plain pointer types.
1668
8efa9855
UW
16692014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
1670
1671 * rs6000-nat.c (exec_one_dummy_insn): Remove.
1672 (store_register): Do not call exec_one_dummy_insn.
1673
eb479039
JB
16742014-09-10 Joel Brobecker <brobecker@adacore.com>
1675
1676 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
1677 dereference it first. Use value_enclosing_type instead of
1678 value_type.
1679 (ada_array_length): Likewise.
1680
deede10c
JB
16812014-09-10 Joel Brobecker <brobecker@adacore.com>
1682
1683 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
1684 Adjust function implementation and documentation accordingly.
1685 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
1686 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
1687 Update call to ada_value_ptr_subscript.
1688
7828a5f5
JB
16892014-09-10 Joel Brobecker <brobecker@adacore.com>
1690
1691 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
1692 instead of VAL's type.
1693
35782f14
JB
16942014-09-10 Joel Brobecker <brobecker@adacore.com>
1695
1696 * amd64-linux-nat.c: Add <sys/uio.h> #include.
1697
d342a0da
DE
16982014-09-09 Doug Evans <xdje42@gmail.com>
1699
1700 PR guile/17367
1701 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
1702 last parameter to pkg-config, not first.
1703 * configure.ac: Pass --with-guile provided pkg-config path to
1704 GDB_GUILE_PROGRAM_NAMES.
1705 * configure: Regenerate.
1706
b4a3d263
GKB
17072014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
1708
1709 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
1710 Bertazi".
1711
6e466374
MR
17122014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
1713
1714 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
1715 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
1716 the list of sections determining GDB_OSABI_IRIX.
1717
a1ada89a
JH
17182014-09-09 James Hogan <james.hogan@imgtec.com>
1719
1720 * MAINTAINERS (Write After Approval): Add "James Hogan".
1721
86db008d
JH
17222014-09-09 James Hogan <james.hogan@imgtec.com>
1723
1724 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
1725
72fde3df
JB
17262014-09-09 Joel Brobecker <brobecker@adacore.com>
1727
1728 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
1729
92d8d229
DE
17302014-09-08 Doug Evans <xdje42@gmail.com>
1731
1732 PR 17247
1733 * guile.c: #include <signal.h>.
1734 (_initialize_guile): Block SIGCHLD while initializing Guile.
1735
1736 Replaces the following, which is reverted.
1737
1738 2014-07-26 Doug Evans <xdje42@gmail.com>
1739
1740 PR 17185
1741 * configure.ac: Add check for header gc/gc.h.
1742 Add check for function setenv.
1743 * configure: Regenerate.
1744 * config.in: Regenerate.
1745 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1746
d81412aa
DE
17472014-09-08 Doug Evans <xdje42@gmail.com>
1748
1749 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
1750 with named constant. Fix style of pointer comparison.
1751 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
1752
a9f116cb
GKB
17532014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
1754
1755 PR gdb/17035
1756 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
1757 decide whether we display the command on "show user".
1758 * cli/cli-script.c (show_user_1): Only verify cmdlines after
1759 printing command name.
1760 * cli/cli-decode.h (cli_user_command_p): Declare new function.
1761 * cli/cli-decode.c (cli_user_command_p): Create helper function
1762 to verify whether cmd_list_element is a user-defined command.
1763
c75bd3a2
JK
17642014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1765
1766 PR python/17355
1767 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
1768 Fix goto out of TRY_CATCH.
1769
faa42425 17702014-09-06 Doug Evans <xdje42@gmail.com>
1a52a81c 1771 Tom Tromey <tromey@redhat.com>
faa42425
DE
1772
1773 PR 15276
1774 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
1775 $_any_caller_matches.
1776 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
1777 * python/lib/gdb/function/caller_is.py: New file.
1778
0d41ba00
DE
17792014-09-06 Doug Evans <xdje42@gmail.com>
1780
1781 * infcmd.c (program_info): Fix typo.
1782
474ca4f6
SDJ
17832014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
1784
1785 PR gdb/17235
1786 * stap-probe.c (stap_parse_single_operand): Delete unused variable
1787 'number'. New variable 'has_digit'. Rewrite code to deal with
1788 subexpressions on SDT probes.
1789
ebf13736
PA
17902014-09-04 Pedro Alves <palves@redhat.com>
1791
1792 * c-exp.y (parse_number): Skip handling base-switching prefixes if
1793 the input is only one character long.
1794
eb0b0463
SDJ
17952014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
1796
1797 PR fortran/17237
1798 * f-valprint.c (f_val_print): Specify the correct print option to
1799 use when printing integer values.
1800
5ee44bfa
GB
18012014-09-04 Gary Benson <gbenson@redhat.com>
1802
1803 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
1804 Remove code to cope with LWPs wrapped as PIDs.
1805 Add assertions to ensure no wrapped LWPs are passed.
1806
4875ffdb
PA
18072014-09-04 Pedro Alves <palves@redhat.com>
1808
1809 * value.c (value_ranges_copy_adjusted): New function, factored out
1810 from ...
1811 (value_contents_copy_raw): ... here.
1812 (unpack_value_bits_as_long_1): Rename back to ...
1813 (unpack_bits_as_long): ... this. Remove 'original_value' and
1814 'result' parameters. Change return type to LONGEST.
1815 (unpack_value_bits_as_long): Delete.
1816 (unpack_value_field_as_long_1): Delete.
1817 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
1818 (unpack_value_bitfield): New function.
1819 (value_field_bitfield): Reimplement using unpack_value_bitfield.
1820 (value_fetch_lazy): Use unpack_value_bitfield.
1821 * value.h (unpack_value_bits_as_long): Delete declaration.
1822
5f3b99cf
SS
18232014-09-03 Sasha Smundak <asmundak@google.com>
1824
1825 * python/py-frame.c (frapy_read_register): New function.
1826
ac740bc7
JH
18272014-09-03 James Hogan <james.hogan@imgtec.com>
1828
1829 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
1830 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
1831
7d793aa9
SDJ
18322014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
1833
1834 PR python/16699
1835 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
1836 function.
1837 (add_cmd): Set "completer_handle_brkchars" to NULL.
1838 * cli/cli-decode.h (struct cmd_list_element)
1839 <completer_handle_brkchars>: New field.
1840 * command.h (completer_ftype_void): New typedef.
1841 (set_cmd_completer_handle_brkchars): New prototype.
1842 * completer.c (set_gdb_completion_word_break_characters): New
1843 function.
1844 (complete_line_internal): Call "completer_handle_brkchars"
1845 callback from command.
1846 * completer.h: Include "command.h".
1847 (set_gdb_completion_word_break_characters): New prototype.
1848 * python/py-cmd.c (cmdpy_completer_helper): New function.
1849 (cmdpy_completer_handle_brkchars): New function.
1850 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
1851 (cmdpy_init): Set completer_handle_brkchars to
1852 cmdpy_completer_handle_brkchars.
1853
97ea6506
GB
18542014-09-03 Gary Benson <gbenson@redhat.com>
1855
1856 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
1857 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
1858 Loop conditions changed to equivalent form.
1859 (struct x86_debug_reg_state): Updated dr_ref_count comment.
1860 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
1861 ALL_DEBUG_ADDRESS_REGISTERS.
1862
d1437815
JB
18632014-09-03 Joel Brobecker <brobecker@adacore.com>
1864
1865 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
1866 description fix.
1867
9b94fcf1
DE
18682014-09-02 Doug Evans <dje@google.com>
1869
1870 * typeprint.c (find_global_typedef): Fix comment.
1871
df7e5265
GB
18722014-09-02 Gary Benson <gbenson@redhat.com>
1873
1874 * i386-nat.h: Renamed as...
1875 * x86-nat.h: New file. All type, function and variable name
1876 prefixes changed from "i386_" to "x86_". All references updated.
1877 * i386-nat.c: Renamed as...
1878 * x86-nat.c: New file. All type, function and variable name
1879 prefixes changed from "i386_" to "x86_". All references updated.
1880 * common/i386-xstate.h: Renamed as...
1881 * common/x86-xstate.h: New file. All type, function and variable
1882 name prefixes changed from "i386_" to "x86_". All references
1883 updated.
1884 * nat/i386-cpuid.h: Renamed as...
1885 * nat/x86-cpuid.h: New file. All type, function and variable name
1886 prefixes changed from "i386_" to "x86_". All references updated.
1887 * nat/i386-gcc-cpuid.h: Renamed as...
1888 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
1889 name prefixes changed from "i386_" to "x86_". All references
1890 updated.
1891 * nat/i386-dregs.h: Renamed as...
1892 * nat/x86-dregs.h: New file. All type, function and variable name
1893 prefixes changed from "i386_" to "x86_". All references updated.
1894 * nat/i386-dregs.c: Renamed as...
1895 * nat/x86-dregs.c: New file. All type, function and variable name
1896 prefixes changed from "i386_" to "x86_". All references updated.
1897
1c3569d4
MR
18982014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
1899
1900 * varobj.c (_initialize_varobj): Move to the end of file.
1901
ff55e1b5
GB
19022014-08-29 Gary Benson <gbenson@redhat.com>
1903
1904 * common/common-exceptions.h: New file.
1905 * common/common-exceptions.c: Likewise.
1906 * Makefile.in (SFILES): Add common/common-exceptions.c.
1907 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
1908 (COMMON_OBS): Add common-exceptions.o.
1909 (common-exceptions.o): New rule.
1910 * exceptions.h (common-exceptions.h): Include.
1911 (gdb_setjmp.h): Do not include.
1912 (return_reason): Moved to common-exceptions.h.
1913 (enum return_reason): Likewise.
1914 (RETURN_MASK): Likewise.
1915 (typedef return_mask): Likewise.
1916 (enum errors): Likewise.
1917 (struct gdb_exception): Likewise.
1918 (exceptions_state_mc_init): Likewise.
1919 (exceptions_state_mc_action_iter): Likewise.
1920 (exceptions_state_mc_action_iter_1): Likewise.
1921 (TRY_CATCH): Likewise.
1922 (throw_exception): Likewise.
1923 (throw_verror): Likewise.
1924 (throw_vquit): Likewise.
1925 (throw_error): Likewise.
1926 (throw_quit): Likewise.
1927 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
1928 (enum catcher_action): Likewise.
1929 (struct catcher): Likewise.
1930 (current_catcher): Likewise.
1931 (catcher_list_size): Likewise.
1932 (exceptions_state_mc_init): Likewise.
1933 (catcher_pop): Likewise.
1934 (exceptions_state_mc): Likewise.
1935 (exceptions_state_mc_action_iter): Likewise.
1936 (exceptions_state_mc_action_iter_1): Likewise.
1937 (throw_exception): Likewise.
1938 (exception_messages): Likewise.
1939 (exception_messages_size): Likewise.
1940 (throw_it): Likewise.
1941 (throw_verror): Likewise.
1942 (throw_vquit): Likewise.
1943 (throw_error): Likewise.
1944 (throw_quit): Likewise.
1945 (prepare_to_throw_exception): New function.
1946
e9bcb658
GB
19472014-08-29 Gary Benson <gbenson@redhat.com>
1948
1949 * common/gdb_setjmp.h: New file.
1950 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
1951 * configure.ac: Move sigsetjmp check...
1952 * common/common.m4: ...here.
1953 * configure: Regenerate.
1954 * cp-support.c (SIGJMP_BUF): Delete.
1955 (SIGSETJMP): Likewise.
1956 (SIGLONGJMP): Likewise.
1957 * exceptions.h (gdb_setjmp.h): Include.
1958 (setjmp.h): Do not include.
1959 (EXCEPTIONS_SIGJMP_BUF): Delete.
1960 (EXCEPTIONS_SIGSETJMP): Likewise.
1961 (EXCEPTIONS_SIGLONGJMP): Likewise.
1962 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
1963 from gdb_setjmp.h.
1964 * exceptions.c: Likewise.
1965
e3180625
GB
19662014-08-29 Gary Benson <gbenson@redhat.com>
1967
1968 * cleanups.h: Moved to...
1969 * common/cleanups.h: New file.
1970 * cleanups.c: Moved to...
1971 * common/cleanups.c: New file. Include common-defs.h and
1972 cleanups.h. Do not include defs.h.
1973 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
1974 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
1975 (cleanups.o): New rule.
1976
e3d6ba5d
GB
19772014-08-29 Gary Benson <gbenson@redhat.com>
1978
1979 * common/errors.h (internal_warning): New declaration.
1980 (internal_vwarning): Likewise.
1981 * common/errors.c (internal_warning): New function.
1982 * utils.h (internal_warning): Don't declare.
1983 (internal_vwarning): Likewise.
1984 * utils.c (internal_warning): Removed.
1985
075c7033
GB
19862014-08-29 Gary Benson <gbenson@redhat.com>
1987
1988 * main.c (captured_main): Use warning during startup.
1989 Prefix startup warning messages with command name.
1990
91b35fd0
GB
19912014-08-29 Gary Benson <gbenson@redhat.com>
1992
1993 * main.c (captured_main): Handle usage errors with error.
1994
b1ec390e
GB
19952014-08-29 Gary Benson <gbenson@redhat.com>
1996
1997 * go32-nat.c (go32_create_inferior): Replace a fprintf/
1998 exit pair with a call to error. Wrap the message with _().
1999
fd0ef3dd
GB
20002014-08-29 Gary Benson <gbenson@redhat.com>
2001
2002 * main.c (captured_main): Replace a fprintf/exit
2003 pair with a call to error. Wrap the message with _().
2004
e0e6bcab
GB
20052014-08-29 Gary Benson <gbenson@redhat.com>
2006
2007 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
2008 pairs with calls to error. Wrap the message with _().
2009
0d2f5c07
GB
20102014-08-29 Gary Benson <gbenson@redhat.com>
2011
2012 * utils.c (vwarning): Protect calls to target_terminal_ours
2013 and wrap_here.
2014
5df43998
GB
20152014-08-29 Gary Benson <gbenson@redhat.com>
2016
2017 * exceptions.c (print_flush): Protect calls to
2018 target_terminal_ours and wrap_here.
2019
2437fd32
GB
20202014-08-29 Gary Benson <gbenson@redhat.com>
2021
2022 * utils.h (filtered_printing_initialized): New declaration.
2023 * utils.c (abort_with_message): New function.
2024 (internal_vproblem): Use abort_with_message for first level
2025 recursive internal problems, and if gdb_stderr is not set up.
2026 Protect calls to target_terminal_ours, begin_line and query.
2027
f1f58506
DE
20282014-08-28 Doug Evans <dje@google.com>
2029
2030 * symtab.c (in_prologue): Move definition to better spot.
2031 (skip_prologue_using_sal): Ditto.
2032
aab2f208
DE
20332014-08-28 Doug Evans <dje@google.com>
2034
2035 * symtab.c (find_function_start_sal): Move definition to better spot.
2036
6b65d1b6
YQ
20372014-08-28 Yao Qi <yao@codesourcery.com>
2038
2039 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
2040 found_stack_adjust in forward scan. Remove condition check
2041 on found_stack_adjust which is always true. Indent the code.
2042
a1b34d15
YQ
20432014-08-28 Yao Qi <yao@codesourcery.com>
2044
2045 * dwarf2read.c (dwarf_decode_lines): Update declaration.
2046 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
2047 (dwarf_decode_lines): Remove argument
2048 want_line_info. Remove condition check on want_line_info.
2049 Callers update.
2050
d5962de5
DE
20512014-08-27 Doug Evans <dje@google.com>
2052
2053 * dwarf2read.c (dwarf_record_line): Fix typo.
2054
9b139002
SDJ
20552014-08-27 Patrick Palka <patrick@parcs.ath.cx>
2056
2057 * target.h (struct target_ops::to_terminal_save_ours): Remove
2058 declaration.
2059 (target_terminal_save_ours): Remove macro.
2060 * target-delegates.c: Regenerate.
2061 * inf-child.c (inf_child_target): Don't set the nonexistent
2062 field to_terminal_save_ours.
2063 * inferior.h (child_terminal_save_ours): Remove declaration.
2064 * terminal.h (gdb_save_tty_state): New declaration.
2065 * inflow.c (child_terminal_save_ours): Rename to ...
2066 (gdb_save_tty_state): ... this.
2067 * tui/tui.c: Include terminal.h.
2068 (tui_enable): Use gdb_save_tty_state instead of
2069 target_terminal_save_ours.
2070 (tui_disable): Likewise.
2071
9debeba0
DE
20722014-08-25 Doug Evans <dje@google.com>
2073
2074 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
2075 Pass NULL instead of 0 for context pointer.
2076
428fc5fc
YQ
20772014-08-25 Yao Qi <yao@codesourcery.com>
2078
2079 * dwarf2read.c: Fix grammatical error.
2080
cdc07690
YQ
20812014-08-24 Yao Qi <yao@codesourcery.com>
2082
2083 * dwarf2read.c (scan_partial_symbols): Update comments.
2084 Rename argument 'need_pc' with 'set_addrmap'.
2085 (add_partial_namespace): Rename argument 'need_pc' with
2086 'set_addrmap'.
2087 (add_partial_module): Likewise.
2088 (add_partial_subprogram): Likewise. Update comments.
2089 (dwarf2_name): Fix typo.
2090
a05a36a5
DE
20912014-08-22 Doug Evans <dje@google.com>
2092
2093 PR 17276
2094 * dwarf2read.c (dwarf_record_line_p): New function.
2095 (dwarf_decode_lines_1): Ignore subsequent line number entries
2096 for the same line if any entry had a non-zero discriminator.
2097
252a6764
DE
20982014-08-22 Doug Evans <dje@google.com>
2099
2100 * buildsym.h (record_line_ftype): New typedef.
2101 (record_line): Use it.
2102 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
2103 (dwarf_decode_lines_1): Call them.
2104
510db052
YQ
21052014-08-22 Yao Qi <yao@codesourcery.com>
2106
2107 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
2108 (ctf_end): Remove code.
2109
22fd09ae
JK
21102014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2111
2112 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
2113 (linux_make_corefile_notes): call update_thread_list, protected against
2114 exceptions.
2115
656e8868
PA
21162014-08-21 Pedro Alves <palves@redhat.com>
2117
2118 * infcmd.c (attach_command): Remove comment.
2119
de589d04
WN
21202014-08-21 Bin Cheng <bin.cheng@arm.com>
2121
2122 * aarch64-linux-nat.c (dr_changed_t): Change the type from
2123 unsigned LONGEST to ULONGEST.
2124
2a31c623
PA
21252014-08-20 Pedro Alves <palves@redhat.com>
2126
2127 * Makefile.in (check-read1): New rule.
2128
d36430db
JB
21292014-08-20 Joel Brobecker <brobecker@adacore.com>
2130
2131 * value.c (value_from_contents_and_address): Strip resolved_type's
2132 typedef layers before checking its TYPE_DATA_LOCATION.
2133
000339af
PA
21342014-08-20 Pedro Alves <palves@redhat.com>
2135
2136 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
2137
5f52445b
YQ
21382014-08-20 Yao Qi <yao@codesourcery.com>
2139
2140 * amd64-tdep.c (amd64_classify): Add a blank line after the
2141 example. Move "*/" to a new line.
2142 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
2143 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
2144 * dwarf2read.c (psymtab_include_file_name): Likewise.
2145
9a0dc9e3
PA
21462014-08-19 Andrew Burgess <aburgess@broadcom.com>
2147 Pedro Alves <palves@redhat.com>
2148
2149 PR symtab/14604
2150 PR symtab/14605
2151 * ada-lang.c (coerce_unspec_val_to_type): Use
2152 value_contents_copy_raw.
2153 * ada-valprint.c (val_print_packed_array_elements): Adjust.
2154 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
2155 * cp-valprint.c (cp_print_value_fields): Let the common printing
2156 code handle optimized out values.
2157 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
2158 * d-valprint.c (dynamic_array_type): Use
2159 value_bits_any_optimized_out.
2160 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
2161 check_any_valid fields.
2162 (check_pieced_value_bits): Delete and inline ...
2163 (check_pieced_synthetic_pointer): ... here.
2164 (check_pieced_value_validity): Delete.
2165 (check_pieced_value_invalid): Delete.
2166 (pieced_value_funcs): Remove check_validity and check_any_valid
2167 fields.
2168 (read_pieced_value): Use mark_value_bits_optimized_out.
2169 (write_pieced_value): Switch to use
2170 mark_value_bytes_optimized_out.
2171 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
2172 of assuming the whole value is optimized out.
2173 * findvar.c (read_frame_register_value): Remove special handling
2174 of optimized out registers.
2175 (value_from_register): Use mark_value_bytes_optimized_out.
2176 * frame-unwind.c (frame_unwind_got_optimized): Use
2177 mark_value_bytes_optimized_out.
2178 * jv-valprint.c (java_value_print): Adjust.
2179 (java_print_value_fields): Let the common printing code handle
2180 optimized out values.
2181 * mips-tdep.c (mips_print_register): Remove special handling of
2182 optimized out registers.
2183 * opencl-lang.c (lval_func_check_validity): Delete.
2184 (lval_func_check_any_valid): Delete.
2185 (opencl_value_funcs): Remove check_validity and check_any_valid
2186 fields.
2187 * p-valprint.c (pascal_object_print_value_fields): Let the common
2188 printing code handle optimized out values.
2189 * stack.c (read_frame_arg): Remove special handling of optimized
2190 out values. Fetch both VAL and ENTRYVAL before comparing
2191 contents. Adjust to value_available_contents_eq rename.
2192 * valprint.c (valprint_check_validity)
2193 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
2194 (val_print_array_elements): Adjust.
2195 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
2196 (value_bits_any_optimized_out): New function.
2197 (value_entirely_covered_by_range_vector): New function, factored
2198 out from value_entirely_unavailable.
2199 (value_entirely_unavailable): Reimplement.
2200 (value_entirely_optimized_out): New function.
2201 (insert_into_bit_range_vector): New function, factored out from
2202 mark_value_bits_unavailable.
2203 (mark_value_bits_unavailable): Reimplement.
2204 (struct ranges_and_idx): New struct.
2205 (find_first_range_overlap_and_match): New function, factored out
2206 from value_available_contents_bits_eq.
2207 (value_available_contents_bits_eq): Rename to ...
2208 (value_contents_bits_eq): ... this. Check both unavailable
2209 contents and optimized out contents.
2210 (value_available_contents_eq): Rename to ...
2211 (value_contents_eq): ... this.
2212 (allocate_value_lazy): Remove reference to the old optimized_out
2213 boolean.
2214 (allocate_optimized_out_value): Use
2215 mark_value_bytes_optimized_out.
2216 (require_not_optimized_out): Adjust to check whether the
2217 optimized_out vec is empty.
2218 (ranges_copy_adjusted): New function, factored out from
2219 value_contents_copy_raw.
2220 (value_contents_copy_raw): Also copy the optimized out ranges.
2221 Assert the destination ranges aren't optimized out.
2222 (value_contents_copy): Update comment, remove call to
2223 require_not_optimized_out.
2224 (value_contents_equal): Adjust to check whether the optimized_out
2225 vec is empty.
2226 (set_value_optimized_out, value_optimized_out_const): Delete.
2227 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
2228 New functions.
2229 (value_entirely_optimized_out, value_bits_valid): Delete.
2230 (value_copy): Take a VEC copy of the 'optimized_out' field.
2231 (value_primitive_field): Remove special handling of optimized out.
2232 (value_fetch_lazy): Assert that lazy values have no unavailable
2233 regions. Use value_bits_any_optimized_out. Remove some special
2234 handling for optimized out values.
2235 * value.h: Add intro comment about <optimized out> and
2236 <unavailable>.
2237 (struct lval_funcs): Remove check_validity and check_any_valid
2238 fields.
2239 (set_value_optimized_out, value_optimized_out_const): Remove.
2240 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
2241 New declarations.
2242 (value_bits_any_optimized_out): New declaration.
2243 (value_bits_valid): Delete declaration.
2244 (value_available_contents_eq): Rename to ...
2245 (value_contents_eq): ... this, and extend comments.
2246
6694c411
JK
22472014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2248
2249 Fix -fsanitize=address on unreadable inferior strings.
2250 * valprint.c (val_print_string): Fix access before BUFFER.
2251
89a1c21a
SM
22522014-08-19 Simon Marchi <simon.marchi@ericsson.com>
2253
2254 * target.c (target_struct_size): Remove.
2255 (target_struct_allocsize): Remove.
2256 (DEFAULT_ALLOCSIZE): Remove.
2257 (target_ops_p): New typedef.
2258 (DEF_VEC_P (target_ops_p)): New vector type.
2259 (target_structs): Change type to VEC (target_ops_p).
2260 (add_target_with_completer): Replace "push" code by VEC_safe_push.
2261 (find_default_run_target): Rewrite for loop following changes to
2262 target_structs.
2263
cb417230
JB
22642014-08-19 Joel Brobecker <brobecker@adacore.com>
2265
2266 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
2267 Adjust code accordingly. Adjust function description comment.
2268
817e0957
YQ
22692014-08-19 Yao Qi <yao@codesourcery.com>
2270
2271 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
2272 types.
2273
2974be62
AM
22742014-08-19 Alan Modra <amodra@gmail.com>
2275
2276 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
2277 * config.in: Regenerate.
2278 * configure: Regenerate.
2279
34abf635
GB
22802014-08-19 Tom Tromey <tromey@redhat.com>
2281 Gary Benson <gbenson@redhat.com>
2282
2283 * common/common-debug.h: New file.
2284 * common/common-debug.c: Likewise.
2285 * debug.c: Likewise.
2286 * Makefile.in (SFILES): Add common/common-debug.c.
2287 (HFILES_NO_SRCDIR): Add common/common-debug.h.
2288 (COMMON_OBS): Add common-debug.o and debug.o.
2289 (common-debug.o): New rule.
2290 * common/common-defs.h: Include common-debug.h.
2291 * common/agent.c (debug_agent_printf): New function.
2292 (DEBUG_AGENT): Redefine.
2293 * nat/i386-dregs.c (debug_printf): Undefine.
2294
f6e94d78
GB
22952014-08-19 Gary Benson <gbenson@redhat.com>
2296
2297 * common/common-defs.h: Include print-utils.h.
2298 * utils.h: Do not include print-utils.h.
2299
9239eeab
GB
23002014-08-19 Tom Tromey <tromey@redhat.com>
2301 Gary Benson <gbenson@redhat.com>
2302
2303 * common/common-types.h: New file.
2304 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
2305 * common/common-defs.h: Include common-types.h.
2306 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
2307 (ULONGEST): Remove.
2308
ef87c8bb
GB
23092014-08-19 Tom Tromey <tromey@redhat.com>
2310 Gary Benson <gbenson@redhat.com>
2311
2312 * common/errors.h: New file.
2313 * common/errors.c: Likewise.
2314 * Makefile.in (SFILES): Add common/errors.c.
2315 (HFILES_NO_SRCDIR): Add common/errors.h.
2316 (COMMON_OBS): Add errors.o.
2317 (errors.o): New rule.
2318 * common/common-defs.h: Include errors.h.
2319 * utils.h (perror_with_name, error, verror, warning, vwarning):
2320 Don't declare.
2321 * common/common-utils.h: (malloc_failure, internal_error):
2322 Likewise.
2323
196a707b
GB
23242014-08-19 Gary Benson <gbenson@redhat.com>
2325
2326 * utils.c (internal_vproblem): Always print the message.
2327
ded4fc8f
DE
23282014-08-18 Doug Evans <dje@google.com>
2329
2330 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
2331
950c97d8
JB
23322014-08-18 Joel Brobecker <brobecker@adacore.com>
2333
2334 * ada-typeprint.c (type_is_full_subrange_of_target_type):
2335 Return 0 if TYPE is dynamic.
2336 (print_range): Add handling of dynamic ranges.
2337
3cdcd0ce
JB
23382014-08-18 Keven Boell <keven.boell@intel.com>
2339 Joel Brobecker <brobecker@adacore.com>
2340
2341 * gdbtypes.h (struct main_type): Add field "data_location".
2342 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
2343 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
2344 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
2345 a dynamic data location.
2346 (resolve_dynamic_type): Add DW_AT_data_location handling.
2347 (copy_recursive, copy_type): Copy the data_location information
2348 when present.
2349 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
2350 * value.c (value_from_contents_and_address): Add
2351 DW_AT_data_location handling.
2352
08412b07
JB
23532014-08-18 Keven Boell <keven.boell@intel.com>
2354 Joel Brobecker <brobecker@adacore.com>
2355
2356 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
2357 field "get_object_address".
2358 * dwarf2expr.c (execute_stack_op): Add handling for
2359 DW_OP_push_object_address.
2360 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
2361 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
2362 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
2363 (dwarf_expr_get_obj_addr): New function.
2364 (dwarf_expr_ctx_funcs): Add get_object_address field.
2365 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
2366 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
2367 (dwarf2_evaluate_property): Add parameter "address". Use it.
2368 (needs_get_obj_addr): New function.
2369 (needs_frame_ctx_funcs): Add get_object_address field.
2370 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
2371 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
2372 (resolve_dynamic_array): Likewise.
2373
84754697
JB
23742014-08-18 Joel Brobecker <brobecker@adacore.com>
2375
2376 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
2377 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
2378 fixed value for records and unions for which some GNAT encodings
2379 are present.
2380
da5c522f
JB
23812014-08-18 Joel Brobecker <brobecker@adacore.com>
2382
2383 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
2384 rewrite to avoid "else if" and "else" constructs. Should be
2385 a no-op in practice.
2386
0d72a7c3
JB
23872014-08-18 Joel Brobecker <brobecker@adacore.com>
2388
2389 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
2390 of lexical block.
2391
e66d4446
SC
23922014-08-15 Siva Chandra Reddy <sivachandra@google.com>
2393
2394 PR c++/17132
2395 * eval.c: Update all calls to find_overload_match.
2396 * valarith.c: Likewise.
2397 (value_user_defined_cpp_op, value_user_defined_op): New
2398 argument NOSIDE. Update all callers.
2399 * valops.c (find_overload_match): New argument NOSIDE.
2400 * value.h (find_overload_match): Update signature.
2401
940df408
SC
24022014-08-15 Siva Chandra Reddy <sivachandra@google.com>
2403
2404 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
2405 'items' methods instead of 'iteritems' method on dictionaries.
2406
699ca60a
DE
24072014-08-15 Doug Evans <dje@google.com>
2408
2409 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
2410 closer to use.
2411
37780ee5
DE
24122014-08-15 Doug Evans <dje@google.com>
2413
2414 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
2415
0ad93d4f
DE
24162014-08-15 Doug Evans <dje@google.com>
2417
2418 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
2419
20d8c372
DE
24202014-08-15 Doug Evans <dje@google.com>
2421
2422 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
2423 unused.
2424
cb039ba4
EZ
24252014-08-15 Eli Zaretskii <eliz@gnu.org>
2426
2427 * dcache.h: Include target.h, to avoid compile time warnings.
2428
eb7a547a
JB
24292014-08-15 Joel Brobecker <brobecker@adacore.com>
2430
2431 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
2432 frame_info" partial declaration.
2433 * gdbarch.h: Regenerate.
2434
783cecc8
YQ
24352014-08-15 Yao Qi <yao@codesourcery.com>
2436
2437 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
2438 Add parameter 'decode_for_pst_p'. Callers update.
2439
65c749e7
YQ
24402014-08-13 Yao Qi <yao@codesourcery.com>
2441
2442 PR build/17104
2443 * configure.ac: Use local variable 'pos'.
2444 * configure: Regenerated.
2445
d769e349
DE
24462014-08-11 Doug Evans <dje@google.com>
2447
2448 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
2449 message, it is redundant with "Reading symbols from ..." message.
2450
24f1235e
DE
24512014-08-10 Doug Evans <xdje42@gmail.com>
2452
2453 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
2454
dcd2e6ef
YQ
24552014-08-09 Yao Qi <yao@codesourcery.com>
2456
2457 PR remote/9053
2458 * remote.c (remote_xfer_partial): Remove dead code.
2459
070bdf0b
AA
24602014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2461
2462 * ia64-linux-tdep.c: Include "regset.h".
2463 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
2464 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
2465 (ia64_linux_supply_fpregset): New function.
2466 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
2467 (ia64_linux_regset_from_core_section): New function.
2468 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
2469 method.
2470
08f9f542
AA
24712014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2472
2473 * m68klinux-tdep.c: Include "regset.h".
2474 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
2475 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
2476 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
2477 (m68k_linux_regset_from_core_section): New function.
2478 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
2479 method.
2480
8f1cee41
AA
24812014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2482
2483 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
2484 function. Move logic to...
2485 (tilegx_linux_regmap): ... this new register map.
2486 (tilegx_linux_regset): Refer to register map, replace supply
2487 method by regcache_supply_regset, and add collect method.
2488 * tilegx-tdep.h (enum tilegx_regnum): New enum value
2489 TILEGX_FIRST_EASY_REGNUM.
2490
c5741217
AA
24912014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2492
2493 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
2494 that calls regcache_supply_regset and handles the EPC register
2495 separately. Move main logic to...
2496 (score7_linux_gregmap): ... this new register map.
2497 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
2498 (score7_linux_gregset): Refer to register map. Add collect method.
2499 (score7_linux_regset_from_core_section): Replace
2500 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
2501 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
2502 (struct regset): Delete unused forward declaraction.
2503 (struct pt_regs): Delete structure definition.
2504 (elf_gregset_t): Delete typedef.
2505
81580573
AA
25062014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2507
2508 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
2509 (nios2_core_regset): Add collect method.
2510
ba199d7d
AA
25112014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2512
2513 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
2514 platform-independent and don't write to read-only input buffer.
2515 (m32r_linux_collect_gregset): New function.
2516 (m32r_linux_gregset): Add collect method.
2517
0006a9da
AA
25182014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2519
2520 * hppa-linux-tdep.c (greg_map): Rename to...
2521 (hppa_linux_gregmap): ... this. Also convert to
2522 regcache_map_entry format.
2523 (hppa_linux_supply_regset): Delete function.
2524 (hppa_linux_supply_fpregset): Delete function. Move logic to...
2525 (hppa_linux_fpregmap): ... this new register map.
2526 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
2527 register map, replace supply method by regcache_supply_regset, and
2528 add collect method regcache_collect_regset.
2529
901e1b23
AA
25302014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2531
2532 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
2533 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
2534 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
2535 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
2536 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
2537 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
2538 (frv_linux_supply_gregset): Replace main logic by call to
2539 regcache_supply_regset, but keep clearing gr32-gr63.
2540 (frv_linux_supply_fpregset): Delete function.
2541 (frv_linux_gregset): Refer to appropriate register map and add
2542 regcache_collect_regset as the collect method.
2543 (frv_linux_fpregset): Likewise. Also exchange the supply method
2544 by regcache_supply_regset.
2545
1d6e7555
AA
25462014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2547
2548 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
2549 by call to alpha_supply_int_regs.
2550 (alpha_linux_collect_gregset): New function.
2551 (alpha_linux_supply_fpregset): Replace logic by call to
2552 alpha_supply_fp_regs.
2553 (alpha_linux_collect_fpregset): New function.
2554 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
2555
d4d793bf
AA
25562014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2557
2558 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
2559 by call to regcache_collect_regset.
2560 (supply_gregset, supply_fpregset): Call regcache_supply_regset
2561 instead of aarch64_linux_supply_gregset/_fpregset.
2562 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
2563 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
2564 header file instead.
2565 (aarch64_linux_supply_gregset, supply_gregset_from_core)
2566 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
2567 functions. Move logic to ...
2568 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
2569 register maps.
2570 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
2571 refer to new register maps, replace *_regset_from_core by
2572 regcache_supply_regset, and also use regcache_collect_regset.
2573 * aarch64-linux-tdep.h: Include "regset.h".
2574 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
2575 Delete prototypes.
2576 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
2577 macros, moved from C source file.
2578 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
2579 variable declarations.
2580
99b7da5d
AA
25812014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2582
2583 * s390-linux-nat.c: Include "regset.h".
2584 (regmap_gregset): Delete macro.
2585 (s390_64_regmap_gregset): New register map for
2586 regcache_supply/_collect_regset.
2587 (s390_64_gregset): New regset.
2588 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
2589 (regmap_fpregset): Delete macro.
2590 (s390_native_supply, s390_native_collect): Delete functions.
2591 (supply_gregset, fill_gregset): Replace s390-specific regmap
2592 handling by a call to regcache_supply/_collect_regset.
2593 (supply_fpregset, fill_fpregset): Call regcache_supply/
2594 _collect_regset instead of s390_native_supply/_collect.
2595 (fetch_regset, store_regset): Likewise. Also change the last
2596 parameter to a regset instead of a regmap.
2597 (s390_linux_fetch_inferior_registers)
2598 (390_linux_store_inferior_registers): Adjust last parameter in
2599 calls to fetch_regset and store_regset.
2600 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
2601 (s390_gregmap): ... this. Also make static const and convert to
2602 regcache_map_entry format.
2603 (s390x_regmap_gregset): Delete.
2604 (s390_regmap_fpregset): Rename to...
2605 (s390_fpregmap): ... this. Make static const and convert to
2606 regcache_map_entry format.
2607 (s390_regmap_upper, s390_regmap_last_break)
2608 (s390x_regmap_last_break, s390_regmap_system_call)
2609 (s390_regmap_tdb): Likewise.
2610 (s390_supply_regset, s390_collect_regset): Remove functions.
2611 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
2612 s390_supply_regset.
2613 (s390_gregset, s390_fpregset, s390_upper_regset)
2614 (s390_last_break_regset, s390x_last_break_regset)
2615 (s390_system_call_regset, s390_tdb_regset): Make global and
2616 replace s390_supply/_collect_regset by regcache_supply/
2617 _collect_regset.
2618 (s390x_gregset): Delete.
2619 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
2620 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
2621 (s390_regmap_fpregset, s390_regmap_last_break)
2622 (s390x_regmap_last_break, s390_regmap_system_call)
2623 (s390_regmap_tdb): Delete global variable declarations.
2624 (s390_gregset, s390_fpregset, s390_last_break_regset)
2625 (s390x_last_break_regset, s390_system_call_regset)
2626 (s390_tdb_regset): New global variable declarations.
2627
0b309272
AA
26282014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2629
2630 * regcache.c: Include "regset.h".
2631 (regcache_transfer_regset): New local function.
2632 (regcache_supply_regset, regcache_collect_regset): New functions.
2633 * regcache.h (struct regcache_map_entry): New structure.
2634 (REGCACHE_MAP_SKIP): New enum value.
2635 (regcache_supply_regset, regcache_collect_regset): New prototypes.
2636
7fefa8d7
AA
26372014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2638
2639 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
2640 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
2641 (ppc_linux_collect_gregset ): Likewise.
2642 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
2643 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
2644 (ppc_collect_vrregset): Likewise.
2645 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
2646 Likewise.
2647
96c4f946
YQ
26482014-08-07 Yao Qi <yao@codesourcery.com>
2649
2650 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
2651 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
2652 * remote.c (remote_read_bytes): Likewise.
2653
fffbe6a8
YQ
26542014-08-07 Yao Qi <yao@codesourcery.com>
2655
2656 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
2657
5ee8a82c
YQ
26582014-08-07 Yao Qi <yao@codesourcery.com>
2659
2660 PR remote/17230
2661 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
2662 TARGET_XFER_OK instead of 0.
2663
bb974a24
GB
26642014-08-07 Gary Benson <gbenson@redhat.com>
2665
2666 * common/common-defs.h: Include errno.h.
2667 * defs.h: Do not include errno.h.
2668 * ada-typeprint.c: Likewise.
2669 * c-typeprint.c: Likewise.
2670 * core-regset.c: Likewise.
2671 * corefile.c: Likewise.
2672 * corelow.c: Likewise.
2673 * event-loop.c: Likewise.
2674 * f-typeprint.c: Likewise.
2675 * gnu-nat.c: Likewise.
2676 * go32-nat.c: Likewise.
2677 * i386gnu-nat.c: Likewise.
2678 * m2-typeprint.c: Likewise.
2679 * nat/linux-btrace.c: Likewise.
2680 * p-typeprint.c: Likewise.
2681 * procfs.c: Likewise.
2682 * remote-sim.c: Likewise.
2683 * rs6000-nat.c: Likewise.
2684 * target.c: Likewise.
2685 * typeprint.c: Likewise.
2686 * ui-file.c: Likewise.
2687 * valops.c: Likewise.
2688 * valprint.c: Likewise.
2689
6d3d12eb
GB
26902014-08-07 Gary Benson <gbenson@redhat.com>
2691
2692 * common/common-defs.h: Include string.h.
2693 * aarch64-tdep.c: Do not include string.h.
2694 * ada-exp.y: Likewise.
2695 * ada-lang.c: Likewise.
2696 * ada-lex.l: Likewise.
2697 * ada-typeprint.c: Likewise.
2698 * ada-valprint.c: Likewise.
2699 * aix-thread.c: Likewise.
2700 * alpha-linux-tdep.c: Likewise.
2701 * alpha-mdebug-tdep.c: Likewise.
2702 * alpha-nat.c: Likewise.
2703 * alpha-osf1-tdep.c: Likewise.
2704 * alpha-tdep.c: Likewise.
2705 * alphanbsd-tdep.c: Likewise.
2706 * amd64-dicos-tdep.c: Likewise.
2707 * amd64-linux-tdep.c: Likewise.
2708 * amd64-nat.c: Likewise.
2709 * amd64-sol2-tdep.c: Likewise.
2710 * amd64fbsd-tdep.c: Likewise.
2711 * amd64obsd-tdep.c: Likewise.
2712 * arch-utils.c: Likewise.
2713 * arm-linux-nat.c: Likewise.
2714 * arm-linux-tdep.c: Likewise.
2715 * arm-tdep.c: Likewise.
2716 * arm-wince-tdep.c: Likewise.
2717 * armbsd-tdep.c: Likewise.
2718 * armnbsd-nat.c: Likewise.
2719 * armnbsd-tdep.c: Likewise.
2720 * armobsd-tdep.c: Likewise.
2721 * avr-tdep.c: Likewise.
2722 * ax-gdb.c: Likewise.
2723 * ax-general.c: Likewise.
2724 * bcache.c: Likewise.
2725 * bfin-tdep.c: Likewise.
2726 * breakpoint.c: Likewise.
2727 * build-id.c: Likewise.
2728 * buildsym.c: Likewise.
2729 * c-exp.y: Likewise.
2730 * c-lang.c: Likewise.
2731 * c-typeprint.c: Likewise.
2732 * c-valprint.c: Likewise.
2733 * charset.c: Likewise.
2734 * cli-out.c: Likewise.
2735 * cli/cli-cmds.c: Likewise.
2736 * cli/cli-decode.c: Likewise.
2737 * cli/cli-dump.c: Likewise.
2738 * cli/cli-interp.c: Likewise.
2739 * cli/cli-logging.c: Likewise.
2740 * cli/cli-script.c: Likewise.
2741 * cli/cli-setshow.c: Likewise.
2742 * cli/cli-utils.c: Likewise.
2743 * coffread.c: Likewise.
2744 * common/agent.c: Likewise.
2745 * common/buffer.c: Likewise.
2746 * common/buffer.h: Likewise.
2747 * common/common-utils.c: Likewise.
2748 * common/filestuff.c: Likewise.
2749 * common/filestuff.c: Likewise.
2750 * common/format.c: Likewise.
2751 * common/print-utils.c: Likewise.
2752 * common/rsp-low.c: Likewise.
2753 * common/signals.c: Likewise.
2754 * common/vec.h: Likewise.
2755 * common/xml-utils.c: Likewise.
2756 * core-regset.c: Likewise.
2757 * corefile.c: Likewise.
2758 * corelow.c: Likewise.
2759 * cp-abi.c: Likewise.
2760 * cp-name-parser.y: Likewise.
2761 * cp-support.c: Likewise.
2762 * cp-valprint.c: Likewise.
2763 * cris-tdep.c: Likewise.
2764 * d-exp.y: Likewise.
2765 * darwin-nat.c: Likewise.
2766 * dbxread.c: Likewise.
2767 * dcache.c: Likewise.
2768 * demangle.c: Likewise.
2769 * dicos-tdep.c: Likewise.
2770 * disasm.c: Likewise.
2771 * doublest.c: Likewise.
2772 * dsrec.c: Likewise.
2773 * dummy-frame.c: Likewise.
2774 * dwarf2-frame.c: Likewise.
2775 * dwarf2loc.c: Likewise.
2776 * dwarf2read.c: Likewise.
2777 * elfread.c: Likewise.
2778 * environ.c: Likewise.
2779 * eval.c: Likewise.
2780 * event-loop.c: Likewise.
2781 * exceptions.c: Likewise.
2782 * exec.c: Likewise.
2783 * expprint.c: Likewise.
2784 * f-exp.y: Likewise.
2785 * f-lang.c: Likewise.
2786 * f-typeprint.c: Likewise.
2787 * f-valprint.c: Likewise.
2788 * fbsd-nat.c: Likewise.
2789 * findcmd.c: Likewise.
2790 * findvar.c: Likewise.
2791 * fork-child.c: Likewise.
2792 * frame.c: Likewise.
2793 * frv-linux-tdep.c: Likewise.
2794 * frv-tdep.c: Likewise.
2795 * gdb.c: Likewise.
2796 * gdb_bfd.c: Likewise.
2797 * gdbarch.c: Likewise.
2798 * gdbarch.sh: Likewise.
2799 * gdbtypes.c: Likewise.
2800 * gnu-nat.c: Likewise.
2801 * gnu-v2-abi.c: Likewise.
2802 * gnu-v3-abi.c: Likewise.
2803 * go-exp.y: Likewise.
2804 * go-lang.c: Likewise.
2805 * go32-nat.c: Likewise.
2806 * guile/guile.c: Likewise.
2807 * guile/scm-auto-load.c: Likewise.
2808 * hppa-hpux-tdep.c: Likewise.
2809 * hppa-linux-nat.c: Likewise.
2810 * hppanbsd-tdep.c: Likewise.
2811 * hppaobsd-tdep.c: Likewise.
2812 * i386-cygwin-tdep.c: Likewise.
2813 * i386-dicos-tdep.c: Likewise.
2814 * i386-linux-tdep.c: Likewise.
2815 * i386-nto-tdep.c: Likewise.
2816 * i386-sol2-tdep.c: Likewise.
2817 * i386-tdep.c: Likewise.
2818 * i386bsd-tdep.c: Likewise.
2819 * i386gnu-nat.c: Likewise.
2820 * i386nbsd-tdep.c: Likewise.
2821 * i386obsd-tdep.c: Likewise.
2822 * i387-tdep.c: Likewise.
2823 * ia64-libunwind-tdep.c: Likewise.
2824 * ia64-linux-nat.c: Likewise.
2825 * inf-child.c: Likewise.
2826 * inf-ptrace.c: Likewise.
2827 * inf-ttrace.c: Likewise.
2828 * infcall.c: Likewise.
2829 * infcmd.c: Likewise.
2830 * inflow.c: Likewise.
2831 * infrun.c: Likewise.
2832 * interps.c: Likewise.
2833 * iq2000-tdep.c: Likewise.
2834 * irix5-nat.c: Likewise.
2835 * jv-exp.y: Likewise.
2836 * jv-lang.c: Likewise.
2837 * jv-typeprint.c: Likewise.
2838 * jv-valprint.c: Likewise.
2839 * language.c: Likewise.
2840 * linux-fork.c: Likewise.
2841 * linux-nat.c: Likewise.
2842 * lm32-tdep.c: Likewise.
2843 * m2-exp.y: Likewise.
2844 * m2-typeprint.c: Likewise.
2845 * m32c-tdep.c: Likewise.
2846 * m32r-linux-nat.c: Likewise.
2847 * m32r-linux-tdep.c: Likewise.
2848 * m32r-rom.c: Likewise.
2849 * m32r-tdep.c: Likewise.
2850 * m68hc11-tdep.c: Likewise.
2851 * m68k-tdep.c: Likewise.
2852 * m68kbsd-tdep.c: Likewise.
2853 * m68klinux-nat.c: Likewise.
2854 * m68klinux-tdep.c: Likewise.
2855 * m88k-tdep.c: Likewise.
2856 * machoread.c: Likewise.
2857 * macrocmd.c: Likewise.
2858 * main.c: Likewise.
2859 * mdebugread.c: Likewise.
2860 * mem-break.c: Likewise.
2861 * memattr.c: Likewise.
2862 * memory-map.c: Likewise.
2863 * mep-tdep.c: Likewise.
2864 * mi/mi-cmd-break.c: Likewise.
2865 * mi/mi-cmd-disas.c: Likewise.
2866 * mi/mi-cmd-env.c: Likewise.
2867 * mi/mi-cmd-stack.c: Likewise.
2868 * mi/mi-cmd-var.c: Likewise.
2869 * mi/mi-cmds.c: Likewise.
2870 * mi/mi-console.c: Likewise.
2871 * mi/mi-getopt.c: Likewise.
2872 * mi/mi-interp.c: Likewise.
2873 * mi/mi-main.c: Likewise.
2874 * mi/mi-parse.c: Likewise.
2875 * microblaze-rom.c: Likewise.
2876 * microblaze-tdep.c: Likewise.
2877 * mingw-hdep.c: Likewise.
2878 * minidebug.c: Likewise.
2879 * minsyms.c: Likewise.
2880 * mips-irix-tdep.c: Likewise.
2881 * mips-linux-tdep.c: Likewise.
2882 * mips-tdep.c: Likewise.
2883 * mips64obsd-tdep.c: Likewise.
2884 * mipsnbsd-tdep.c: Likewise.
2885 * mipsread.c: Likewise.
2886 * mn10300-linux-tdep.c: Likewise.
2887 * mn10300-tdep.c: Likewise.
2888 * monitor.c: Likewise.
2889 * moxie-tdep.c: Likewise.
2890 * mt-tdep.c: Likewise.
2891 * nat/linux-btrace.c: Likewise.
2892 * nat/linux-osdata.c: Likewise.
2893 * nat/linux-procfs.c: Likewise.
2894 * nat/linux-ptrace.c: Likewise.
2895 * nat/linux-waitpid.c: Likewise.
2896 * nbsd-tdep.c: Likewise.
2897 * nios2-linux-tdep.c: Likewise.
2898 * nto-procfs.c: Likewise.
2899 * nto-tdep.c: Likewise.
2900 * objc-lang.c: Likewise.
2901 * objfiles.c: Likewise.
2902 * opencl-lang.c: Likewise.
2903 * osabi.c: Likewise.
2904 * osdata.c: Likewise.
2905 * p-exp.y: Likewise.
2906 * p-lang.c: Likewise.
2907 * p-typeprint.c: Likewise.
2908 * parse.c: Likewise.
2909 * posix-hdep.c: Likewise.
2910 * ppc-linux-nat.c: Likewise.
2911 * ppc-sysv-tdep.c: Likewise.
2912 * ppcfbsd-tdep.c: Likewise.
2913 * ppcnbsd-tdep.c: Likewise.
2914 * ppcobsd-tdep.c: Likewise.
2915 * printcmd.c: Likewise.
2916 * procfs.c: Likewise.
2917 * prologue-value.c: Likewise.
2918 * python/py-auto-load.c: Likewise.
2919 * python/py-gdb-readline.c: Likewise.
2920 * ravenscar-thread.c: Likewise.
2921 * regcache.c: Likewise.
2922 * registry.c: Likewise.
2923 * remote-fileio.c: Likewise.
2924 * remote-m32r-sdi.c: Likewise.
2925 * remote-mips.c: Likewise.
2926 * remote-notif.c: Likewise.
2927 * remote-sim.c: Likewise.
2928 * remote.c: Likewise.
2929 * reverse.c: Likewise.
2930 * rs6000-aix-tdep.c: Likewise.
2931 * ser-base.c: Likewise.
2932 * ser-go32.c: Likewise.
2933 * ser-mingw.c: Likewise.
2934 * ser-pipe.c: Likewise.
2935 * ser-tcp.c: Likewise.
2936 * ser-unix.c: Likewise.
2937 * serial.c: Likewise.
2938 * sh-tdep.c: Likewise.
2939 * sh64-tdep.c: Likewise.
2940 * shnbsd-tdep.c: Likewise.
2941 * skip.c: Likewise.
2942 * sol-thread.c: Likewise.
2943 * solib-dsbt.c: Likewise.
2944 * solib-frv.c: Likewise.
2945 * solib-osf.c: Likewise.
2946 * solib-som.c: Likewise.
2947 * solib-spu.c: Likewise.
2948 * solib-target.c: Likewise.
2949 * solib.c: Likewise.
2950 * somread.c: Likewise.
2951 * source.c: Likewise.
2952 * sparc-nat.c: Likewise.
2953 * sparc-sol2-tdep.c: Likewise.
2954 * sparc-tdep.c: Likewise.
2955 * sparc64-tdep.c: Likewise.
2956 * sparc64fbsd-tdep.c: Likewise.
2957 * sparc64nbsd-tdep.c: Likewise.
2958 * sparcnbsd-tdep.c: Likewise.
2959 * spu-linux-nat.c: Likewise.
2960 * spu-multiarch.c: Likewise.
2961 * spu-tdep.c: Likewise.
2962 * stabsread.c: Likewise.
2963 * stack.c: Likewise.
2964 * std-regs.c: Likewise.
2965 * symfile.c: Likewise.
2966 * symmisc.c: Likewise.
2967 * symtab.c: Likewise.
2968 * target.c: Likewise.
2969 * thread.c: Likewise.
2970 * tilegx-linux-nat.c: Likewise.
2971 * tilegx-tdep.c: Likewise.
2972 * top.c: Likewise.
2973 * tracepoint.c: Likewise.
2974 * tui/tui-command.c: Likewise.
2975 * tui/tui-data.c: Likewise.
2976 * tui/tui-disasm.c: Likewise.
2977 * tui/tui-file.c: Likewise.
2978 * tui/tui-layout.c: Likewise.
2979 * tui/tui-out.c: Likewise.
2980 * tui/tui-regs.c: Likewise.
2981 * tui/tui-source.c: Likewise.
2982 * tui/tui-stack.c: Likewise.
2983 * tui/tui-win.c: Likewise.
2984 * tui/tui-windata.c: Likewise.
2985 * tui/tui-winsource.c: Likewise.
2986 * typeprint.c: Likewise.
2987 * ui-file.c: Likewise.
2988 * ui-out.c: Likewise.
2989 * user-regs.c: Likewise.
2990 * utils.c: Likewise.
2991 * v850-tdep.c: Likewise.
2992 * valarith.c: Likewise.
2993 * valops.c: Likewise.
2994 * valprint.c: Likewise.
2995 * value.c: Likewise.
2996 * varobj.c: Likewise.
2997 * vax-tdep.c: Likewise.
2998 * vaxnbsd-tdep.c: Likewise.
2999 * vaxobsd-tdep.c: Likewise.
3000 * windows-nat.c: Likewise.
3001 * xcoffread.c: Likewise.
3002 * xml-support.c: Likewise.
3003 * xstormy16-tdep.c: Likewise.
3004 * xtensa-linux-nat.c: Likewise.
3005
dccbb609
GB
30062014-08-07 Gary Benson <gbenson@redhat.com>
3007
3008 * common/common-defs.h: Include gdb_assert.h.
3009 * aarch64-tdep.c: Do not include gdb_assert.h.
3010 * addrmap.c: Likewise.
3011 * aix-thread.c: Likewise.
3012 * alpha-linux-tdep.c: Likewise.
3013 * alpha-mdebug-tdep.c: Likewise.
3014 * alphanbsd-tdep.c: Likewise.
3015 * amd64-nat.c: Likewise.
3016 * amd64-tdep.c: Likewise.
3017 * amd64bsd-nat.c: Likewise.
3018 * amd64fbsd-nat.c: Likewise.
3019 * amd64fbsd-tdep.c: Likewise.
3020 * amd64nbsd-nat.c: Likewise.
3021 * amd64nbsd-tdep.c: Likewise.
3022 * amd64obsd-nat.c: Likewise.
3023 * amd64obsd-tdep.c: Likewise.
3024 * arch-utils.c: Likewise.
3025 * arm-tdep.c: Likewise.
3026 * armbsd-tdep.c: Likewise.
3027 * auxv.c: Likewise.
3028 * bcache.c: Likewise.
3029 * bfin-tdep.c: Likewise.
3030 * blockframe.c: Likewise.
3031 * breakpoint.c: Likewise.
3032 * bsd-kvm.c: Likewise.
3033 * bsd-uthread.c: Likewise.
3034 * buildsym.c: Likewise.
3035 * c-exp.y: Likewise.
3036 * c-lang.c: Likewise.
3037 * charset.c: Likewise.
3038 * cleanups.c: Likewise.
3039 * cli-out.c: Likewise.
3040 * cli/cli-decode.c: Likewise.
3041 * cli/cli-dump.c: Likewise.
3042 * cli/cli-logging.c: Likewise.
3043 * cli/cli-script.c: Likewise.
3044 * cli/cli-utils.c: Likewise.
3045 * coffread.c: Likewise.
3046 * common/common-utils.c: Likewise.
3047 * common/queue.h: Likewise.
3048 * common/signals.c: Likewise.
3049 * common/vec.h: Likewise.
3050 * complaints.c: Likewise.
3051 * completer.c: Likewise.
3052 * corelow.c: Likewise.
3053 * cp-abi.c: Likewise.
3054 * cp-name-parser.y: Likewise.
3055 * cp-namespace.c: Likewise.
3056 * cp-support.c: Likewise.
3057 * cris-tdep.c: Likewise.
3058 * dbxread.c: Likewise.
3059 * dictionary.c: Likewise.
3060 * doublest.c: Likewise.
3061 * dsrec.c: Likewise.
3062 * dummy-frame.c: Likewise.
3063 * dwarf2-frame-tailcall.c: Likewise.
3064 * dwarf2-frame.c: Likewise.
3065 * dwarf2expr.c: Likewise.
3066 * dwarf2loc.c: Likewise.
3067 * dwarf2read.c: Likewise.
3068 * eval.c: Likewise.
3069 * event-loop.c: Likewise.
3070 * exceptions.c: Likewise.
3071 * expprint.c: Likewise.
3072 * f-valprint.c: Likewise.
3073 * fbsd-nat.c: Likewise.
3074 * findvar.c: Likewise.
3075 * frame-unwind.c: Likewise.
3076 * frame.c: Likewise.
3077 * frv-tdep.c: Likewise.
3078 * gcore.c: Likewise.
3079 * gdb-dlfcn.c: Likewise.
3080 * gdb_bfd.c: Likewise.
3081 * gdbarch.c: Likewise.
3082 * gdbarch.sh: Likewise.
3083 * gdbtypes.c: Likewise.
3084 * gnu-nat.c: Likewise.
3085 * gnu-v3-abi.c: Likewise.
3086 * go-lang.c: Likewise.
3087 * guile/scm-exception.c: Likewise.
3088 * guile/scm-gsmob.c: Likewise.
3089 * guile/scm-lazy-string.c: Likewise.
3090 * guile/scm-math.c: Likewise.
3091 * guile/scm-pretty-print.c: Likewise.
3092 * guile/scm-safe-call.c: Likewise.
3093 * guile/scm-utils.c: Likewise.
3094 * guile/scm-value.c: Likewise.
3095 * h8300-tdep.c: Likewise.
3096 * hppa-hpux-nat.c: Likewise.
3097 * hppa-tdep.c: Likewise.
3098 * hppanbsd-tdep.c: Likewise.
3099 * hppaobsd-tdep.c: Likewise.
3100 * i386-darwin-nat.c: Likewise.
3101 * i386-darwin-tdep.c: Likewise.
3102 * i386-nto-tdep.c: Likewise.
3103 * i386-tdep.c: Likewise.
3104 * i386bsd-nat.c: Likewise.
3105 * i386fbsd-tdep.c: Likewise.
3106 * i386gnu-nat.c: Likewise.
3107 * i386nbsd-tdep.c: Likewise.
3108 * i386obsd-tdep.c: Likewise.
3109 * i387-tdep.c: Likewise.
3110 * ia64-libunwind-tdep.c: Likewise.
3111 * ia64-tdep.c: Likewise.
3112 * inf-ptrace.c: Likewise.
3113 * inf-ttrace.c: Likewise.
3114 * infcall.c: Likewise.
3115 * infcmd.c: Likewise.
3116 * infrun.c: Likewise.
3117 * inline-frame.c: Likewise.
3118 * interps.c: Likewise.
3119 * jv-lang.c: Likewise.
3120 * jv-typeprint.c: Likewise.
3121 * linux-fork.c: Likewise.
3122 * linux-nat.c: Likewise.
3123 * linux-thread-db.c: Likewise.
3124 * m32c-tdep.c: Likewise.
3125 * m32r-linux-nat.c: Likewise.
3126 * m32r-tdep.c: Likewise.
3127 * m68k-tdep.c: Likewise.
3128 * m68kbsd-nat.c: Likewise.
3129 * m68kbsd-tdep.c: Likewise.
3130 * m88k-tdep.c: Likewise.
3131 * machoread.c: Likewise.
3132 * macroexp.c: Likewise.
3133 * macrotab.c: Likewise.
3134 * maint.c: Likewise.
3135 * mdebugread.c: Likewise.
3136 * memory-map.c: Likewise.
3137 * mep-tdep.c: Likewise.
3138 * mi/mi-common.c: Likewise.
3139 * microblaze-tdep.c: Likewise.
3140 * mingw-hdep.c: Likewise.
3141 * mips-linux-nat.c: Likewise.
3142 * mips-linux-tdep.c: Likewise.
3143 * mips-tdep.c: Likewise.
3144 * mips64obsd-tdep.c: Likewise.
3145 * mipsnbsd-tdep.c: Likewise.
3146 * mn10300-linux-tdep.c: Likewise.
3147 * mn10300-tdep.c: Likewise.
3148 * moxie-tdep.c: Likewise.
3149 * mt-tdep.c: Likewise.
3150 * nat/linux-btrace.c: Likewise.
3151 * nat/linux-osdata.c: Likewise.
3152 * nat/linux-ptrace.c: Likewise.
3153 * nat/mips-linux-watch.c: Likewise.
3154 * nios2-linux-tdep.c: Likewise.
3155 * nios2-tdep.c: Likewise.
3156 * objc-lang.c: Likewise.
3157 * objfiles.c: Likewise.
3158 * obsd-nat.c: Likewise.
3159 * opencl-lang.c: Likewise.
3160 * osabi.c: Likewise.
3161 * parse.c: Likewise.
3162 * ppc-linux-nat.c: Likewise.
3163 * ppc-sysv-tdep.c: Likewise.
3164 * ppcfbsd-nat.c: Likewise.
3165 * ppcfbsd-tdep.c: Likewise.
3166 * ppcnbsd-nat.c: Likewise.
3167 * ppcnbsd-tdep.c: Likewise.
3168 * ppcobsd-nat.c: Likewise.
3169 * ppcobsd-tdep.c: Likewise.
3170 * printcmd.c: Likewise.
3171 * procfs.c: Likewise.
3172 * prologue-value.c: Likewise.
3173 * psymtab.c: Likewise.
3174 * python/py-lazy-string.c: Likewise.
3175 * python/py-value.c: Likewise.
3176 * regcache.c: Likewise.
3177 * reggroups.c: Likewise.
3178 * registry.c: Likewise.
3179 * remote-sim.c: Likewise.
3180 * remote.c: Likewise.
3181 * rs6000-aix-tdep.c: Likewise.
3182 * rs6000-tdep.c: Likewise.
3183 * s390-linux-tdep.c: Likewise.
3184 * score-tdep.c: Likewise.
3185 * ser-base.c: Likewise.
3186 * ser-mingw.c: Likewise.
3187 * sh-tdep.c: Likewise.
3188 * sh64-tdep.c: Likewise.
3189 * solib-darwin.c: Likewise.
3190 * solib-spu.c: Likewise.
3191 * solib-svr4.c: Likewise.
3192 * source.c: Likewise.
3193 * sparc-nat.c: Likewise.
3194 * sparc-sol2-tdep.c: Likewise.
3195 * sparc-tdep.c: Likewise.
3196 * sparc64-sol2-tdep.c: Likewise.
3197 * sparc64-tdep.c: Likewise.
3198 * sparc64fbsd-tdep.c: Likewise.
3199 * sparc64nbsd-tdep.c: Likewise.
3200 * sparc64obsd-tdep.c: Likewise.
3201 * sparcnbsd-tdep.c: Likewise.
3202 * sparcobsd-tdep.c: Likewise.
3203 * spu-multiarch.c: Likewise.
3204 * spu-tdep.c: Likewise.
3205 * stabsread.c: Likewise.
3206 * stack.c: Likewise.
3207 * symfile.c: Likewise.
3208 * symtab.c: Likewise.
3209 * target-descriptions.c: Likewise.
3210 * target-memory.c: Likewise.
3211 * target.c: Likewise.
3212 * tic6x-linux-tdep.c: Likewise.
3213 * tic6x-tdep.c: Likewise.
3214 * tilegx-linux-nat.c: Likewise.
3215 * tilegx-tdep.c: Likewise.
3216 * top.c: Likewise.
3217 * tramp-frame.c: Likewise.
3218 * tui/tui-out.c: Likewise.
3219 * tui/tui-winsource.c: Likewise.
3220 * ui-out.c: Likewise.
3221 * user-regs.c: Likewise.
3222 * utils.c: Likewise.
3223 * v850-tdep.c: Likewise.
3224 * valops.c: Likewise.
3225 * value.c: Likewise.
3226 * varobj.c: Likewise.
3227 * vax-nat.c: Likewise.
3228 * xml-syscall.c: Likewise.
3229 * xml-tdesc.c: Likewise.
3230 * xstormy16-tdep.c: Likewise.
3231 * xtensa-linux-nat.c: Likewise.
3232 * xtensa-tdep.c: Likewise.
3233
e76df0d0
GB
32342014-08-07 Gary Benson <gbenson@redhat.com>
3235
3236 * common/common-defs.h: Include common-utils.h.
3237 * defs.h: Do not include common-utils.h.
3238 * common/gdb_assert.h: Likewise.
3239 * darwin-nat.h: Likewise.
3240 * nat/linux-btrace.c: Likewise.
3241 * target/waitstatus.h: Likewise.
3242
4cb9c816
GB
32432014-08-07 Gary Benson <gbenson@redhat.com>
3244
3245 * common/common-defs.h: Include ptid.h.
3246 * defs.h: Do not include ptid.h.
3247 * inferior.h: Likewise.
3248 * infrun.h: Likewise.
3249 * nat/linux-btrace.h: Likewise.
3250 * nat/linux-osdata.h: Likewise.
3251 * target/waitstatus.h: Likewise.
3252
3995eeee
GB
32532014-08-07 Gary Benson <gbenson@redhat.com>
3254
3255 * common/common-defs.h: Include gdb_locale.h.
3256 * defs.h: Do not include gdb_locale.h.
3257
cb9f1a9b
GB
32582014-08-07 Gary Benson <gbenson@redhat.com>
3259
3260 * common/common-defs.h: Include gdb/signals.h.
3261 * defs.h: Do not include gdb/signals.h.
3262
a5fceff8
GB
32632014-08-07 Gary Benson <gbenson@redhat.com>
3264
3265 * common/common-defs.h: Include pathmax.h.
3266 * defs.h: Do not include pathmax.h.
3267
b9391142
GB
32682014-08-07 Gary Benson <gbenson@redhat.com>
3269
3270 * common/common-defs.h: Include libiberty.h.
3271 * defs.h: Do not include libiberty.h.
3272 * common/queue.h: Likewise.
3273 * cp-name-parser.y: Likewise.
3274 * mi/mi-cmd-catch.c: Likewise.
3275 * python/python.c: Likewise.
3276
0e443c87
GB
32772014-08-07 Gary Benson <gbenson@redhat.com>
3278
3279 * common/common-defs.h: Include ansidecl.h.
3280 * defs.h: Do not include ansidecl.h.
3281 * common/buffer.h: Likewise.
3282 * common/common-utils.h: Likewise.
3283
8ebb3f56
GB
32842014-08-07 Gary Benson <gbenson@redhat.com>
3285
3286 * common/common-defs.h: Include stddef.h.
3287 * defs.h: Do not include stddef.h.
3288 * common/common-utils.h: Likewise.
3289 * amd64fbsd-nat.c: Likewise.
3290 * bcache.c: Likewise.
3291 * charset.c: Likewise.
3292 * common/buffer.h: Likewise.
3293 * common/vec.h: Likewise.
3294 * i386bsd-nat.c: Likewise.
3295 * nat/linux-btrace.h: Likewise.
3296 * ppcfbsd-nat.c: Likewise.
3297 * ppcnbsd-tdep.h: Likewise.
3298 * ppcobsd-nat.c: Likewise.
3299 * ppcobsd-tdep.h: Likewise.
3300 * python/py-gdb-readline.c: Likewise.
3301
8980bdf6
GB
33022014-08-07 Gary Benson <gbenson@redhat.com>
3303
3304 * common/common-defs.h: Include stdarg.h.
3305 * defs.h: Do not include stdarg.h.
3306 * ada-lang.c: Likewise.
3307 * common/common-utils.h: Likewise.
3308 * guile/scm-string.c: Likewise.
3309 * guile/scm-utils.c: Likewise.
3310 * m32c-tdep.c: Likewise.
3311
d7096f71
GB
33122014-08-07 Gary Benson <gbenson@redhat.com>
3313
3314 * common/common-defs.h: Include stdlib.h.
3315 * defs.h: Do not include stdlib.h.
3316 * addrmap.c: Likewise.
3317 * bcache.c: Likewise.
3318 * common/buffer.c: Likewise.
3319 * common/common-utils.c: Likewise.
3320 * cp-name-parser.y: Likewise.
3321 * go32-nat.c: Likewise.
3322 * mn10300-linux-tdep.c: Likewise.
3323 * nat/linux-osdata.c: Likewise.
3324 * tui/tui.c: Likewise.
3325 * windows-nat.c: Likewise.
3326
d02f550d
GB
33272014-08-07 Gary Benson <gbenson@redhat.com>
3328
3329 * common/common-defs.h: Include stdio.h.
3330 * defs.h: Do not include stdio.h.
3331 * ada-lang.c: Likewise.
3332 * common/buffer.c: Likewise.
3333 * common/common-utils.c: Likewise.
3334 * cp-name-parser.y: Likewise.
3335 * gnu-nat.c: Likewise.
3336 * go32-nat.c: Likewise.
3337 * i386gnu-nat.c: Likewise.
3338 * proc-api.c: Likewise.
3339 * proc-events.c: Likewise.
3340 * proc-flags.c: Likewise.
3341 * proc-why.c: Likewise.
3342 * python/python-internal.h: Likewise.
3343 * target-memory.c: Likewise.
3344 * tui/tui-io.c: Likewise.
3345 * tui/tui.c: Likewise.
3346
b6d7a4bf
SM
33472014-08-06 Simon Marchi <simon.marchi@ericsson.com>
3348
3349 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
3350 (scan_dyntag_auxv): Same.
3351
af19829b
YQ
33522014-08-06 Yao Qi <yao@codesourcery.com>
3353
3354 * amd64-linux-nat.c: Remove duplicated include
3355 "x86-linux-nat.h".
3356 * i386-linux-nat.c: Likewise.
3357
8e07a239
YQ
33582014-08-06 Yao Qi <yao@codesourcery.com>
3359
3360 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
3361 operand" with "Special opcode" in comments.
3362
7bfe8241
GB
33632014-08-05 Gary Benson <gbenson@redhat.com>
3364
3365 * interps.c (initialize_interps): Remove prototype.
3366 (interpreter_initialized): Remove static global.
3367 (interp_add): Do not call initialize_interps.
3368 (initialize_interps): Remove function.
3369
d6c95504
GB
33702014-08-05 Gary Benson <gbenson@redhat.com>
3371
3372 * utils.c (vwarning): Remove spurious va_end.
3373
241fd515
AM
33742014-08-05 Alan Modra <amodra@gmail.com>
3375
3376 * charset.c (convert_between_encodings): Cast result of obstack_base.
3377 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
3378 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
3379 (read_unwind_info): Use size_t for some locals.
3380 * jit.c (finalize_symtab): Likewise.
3381 * utils.c (hashtab_obstack_allocate): Likewise.
3382 * symmisc.c (print_objfile_statistics): Update format strings.
3383
dc304a94
JK
33842014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3385
3386 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
3387 (Changes in GDB 7.8): ... here.
3388
3cecbbbe
TT
33892014-08-04 Tom Tromey <tromey@redhat.com>
3390
3391 * target.c (set_targetdebug): New function.
3392 (initialize_targets): Pass set_targetdebug when creating "set
3393 debug target".
3394
6908c509
JB
33952014-08-01 Joel Brobecker <brobecker@adacore.com>
3396
3397 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
3398 if detecting a variable-sized field that is not the last field.
3399 Fix struct type length computation.
3400
53e8f97d
JB
34012014-08-01 Joel Brobecker <brobecker@adacore.com>
3402
3403 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3404 Add debug trace.
3405
e068c55d
JB
34062014-08-01 Joel Brobecker <brobecker@adacore.com>
3407
3408 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3409 Remove "+ 8" offset in computation of CHAIN_VMA.
3410
4d4ca2a1
DE
34112014-07-31 Doug Evans <dje@google.com>
3412
3413 * inflow.c (child_terminal_inferior): Add comment.
3414 (child_terminal_ours_for_output): Add comment.
3415 (child_terminal_ours): Add comment.
3416 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
3417 (linux_nat_terminal_ours): Add comment.
3418
462f517e
GB
34192014-07-31 Gary Benson <gbenson@redhat.com>
3420
3421 * common/btrace-common.h: Do not include defs.h or server.h.
3422 * nat/mips-linux-watch.h: Likewise.
3423 * gdb-dlfcn.h: Do not include defs.h.
3424 * tracefile.h: Likewise.
3425
74228e77
RM
34262014-07-30 Roland McGrath <mcgrathr@google.com>
3427
3428 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
3429
014f9477
TT
34302014-07-30 Tom Tromey <tromey@redhat.com>
3431
3432 * bsd-kvm.c (bsd_kvm_open): Constify.
3433 * corelow.c (core_open): Constify.
3434 * ctf.c (ctf_open): Constify.
3435 * dbug-rom.c (dbug_open): Constify.
3436 * exec.c (exec_open): Constify.
3437 * m32r-rom.c (m32r_open, mon2000_open): Constify.
3438 * microblaze-rom.c (picobug_open): Constify.
3439 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
3440 Constify.
3441 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
3442 * record-btrace.c (record_btrace_open): Constify.
3443 * record-full.c (record_full_core_open_1, record_full_open_1)
3444 (record_full_open): Constify.
3445 * remote-m32r-sdi.c (m32r_open): Constify.
3446 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
3447 (rockhopper_open, lsi_open): Constify.
3448 * remote-sim.c (gdbsim_open): Constify.
3449 * remote.c (remote_open, extended_remote_open, remote_open_1):
3450 Constify.
3451 * target.h (struct target_ops) <to_open>: Make "arg" const.
3452 * tracefile-tfile.c (tfile_open): Constify.
3453
e799154c
TT
34542014-07-30 Tom Tromey <tromey@redhat.com>
3455
3456 * breakpoint.c (map_breakpoint_numbers): Update.
3457 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
3458 (get_number_const): New function.
3459 (get_number): Rewrite using get_number_const.
3460 (init_number_or_range): Make "string" const.
3461 (number_is_in_list): Make "list" const.
3462 * cli/cli-utils.h (get_number_const): Declare.
3463 (struct get_number_or_range_state) <string, end_ptr>: Now const.
3464 (init_number_or_range, number_is_in_list): Update.
3465 * printcmd.c (map_display_numbers): Update.
3466 * value.c (value_from_history_ref): Constify.
3467 * value.h (value_from_history_ref): Update.
3468
5f08566b
TT
34692014-07-30 Tom Tromey <tromey@redhat.com>
3470
3471 * corefile.c (hook_type, call_extra_exec_file_hooks)
3472 (specify_exec_file_hook): Constify.
3473 * exec.c (exec_file_attach): Make "filename" const.
3474 * gdbcore.h (deprecated_exec_file_display_hook)
3475 (specify_exec_file_hook, exec_file_attach): Constify.
3476 * main.c (captured_main): Use catch_command_errors_const.
3477
8981c758
TT
34782014-07-30 Tom Tromey <tromey@redhat.com>
3479
3480 * target.c (open_target): New function.
3481 (add_target_with_completer, add_deprecated_target_alias): Use
3482 set_cmd_sfunc, set_cmd_context.
3483 (debug_to_open): Remove.
3484 (setup_target_debug): Update.
3485
a1c7835a
YQ
34862014-07-30 Yao Qi <yao@codesourcery.com>
3487
3488 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
3489 comments.
3490 * parse.c (exp_iterate): Update comments.
3491
976411d6
GB
34922014-07-30 Gary Benson <gbenson@redhat.com>
3493
3494 * common/common-defs.h: New file.
3495 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
3496 * defs.h: Include common-defs.h.
3497 Do not include config.h or build-gnulib/config.h.
3498
5d4848a4
GB
34992014-07-30 Gary Benson <gbenson@redhat.com>
3500
3501 * common/common-utils.h: Do not include config.h.
3502 * nat/linux-btrace.h: Likewise.
3503
d41f6d8e
GB
35042014-07-30 Gary Benson <gbenson@redhat.com>
3505
3506 * btrace.c: Include defs.h.
3507 * common/ptid.c: Include defs.h or server.h as appropriate.
3508 * nat/mips-linux-watch.c: Likewise.
3509
84202f9c
TT
35102014-07-29 Tom Tromey <tromey@redhat.com>
3511
3512 * target.c (target_is_pushed): Simplify.
3513
2530441c
JB
35142014-07-29 Joel Brobecker <brobecker@adacore.com>
3515
3516 GDB 7.8 released.
3517
7e09a223
YQ
35182014-07-29 Yao Qi <yao@codesourcery.com>
3519
3520 PR gdb/17206
3521 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
3522
7ebdbe92
DE
35232014-07-28 Doug Evans <xdje42@gmail.com>
3524
3525 PR guile/17203
3526 * guile/scm-param.c (pascm_parameter_defined_p): New function.
3527 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
3528 parameters.
3529
f347ffc9
WN
35302014-07-28 Will Newton <will.newton@linaro.org>
3531
3532 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
3533 (THUMB2_SET_R7_SIGRETURN2): Likewise.
3534 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
3535 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
3536 (THUMB2_EABI_SYSCALL): Likewise.
3537 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
3538 struct tramp_frame.
3539 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
3540 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
3541
37c5f1f7
DE
35422014-07-27 Doug Evans <xdje42@gmail.com>
3543
3544 * guile/scm-param.c (pascm_print_param_smob): Fix output.
3545
0c3abbc7
DE
35462014-07-27 Doug Evans <xdje42@gmail.com>
3547
3548 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
3549
e76c5d17
DE
35502014-07-26 Ludovic Courtès <ludo@gnu.org>
3551 Doug Evans <xdje42@gmail.com>
3552
3553 PR guile/17146
3554 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
3555 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
3556 * configure.ac: Try to use guild to compile an scm file, if it fails
3557 then disable guile support.
3558 * configure: Regenerate.
3559 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
3560 GUILE_FILE_LIST.
3561 (GUILE_COMPILED_FILES): New variable.
3562 (GUILE_FILES) Update.
3563 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
3564 (stamp-guile): Compile scm files.
3565 * guile/guile.c (boot_guile_support): New function.
3566 (standard_throw_args_p): New function.
3567 (print_standard_throw_error, print_throw_error): New functions.
3568 (handle_boot_error): New function.
3569 (initialize_scheme_side): Rewrite to call boot_guile_support.
3570 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
3571 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
3572
186fcde0
DE
35732014-07-26 Ludovic Courtès <ludo@gnu.org>
3574 Doug Evans <xdje42@gmail.com>
3575
3576 PR guile/17146
3577 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
3578 * guile/lib/gdb/support.scm: New file.
3579 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
3580 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
3581 All uses updated.
3582 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
3583 All uses updated.
3584 (%assert-type): Ditto, and renamed to assert-type.
3585 (%exception-print-style): Delete.
3586
4df42755
DE
35872014-07-26 Doug Evans <xdje42@gmail.com>
3588
3589 PR build/17105
3590 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
3591 * configure: Regenerate.
3592 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
3593 PYTHON_FILES.
3594 (PYTHON_FILES): New variable.
3595 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
3596 (GUILE_FILES): New variable.
3597 (stamp-python, install-python, uninstall-python): Handle empty
3598 file list.
3599 (stamp-guile, install-guile, uninstall-guile): Ditto.
3600
ee7333ae
DE
36012014-07-26 Doug Evans <xdje42@gmail.com>
3602
3603 PR guile/17177
3604 * guile/lib/gdb.scm (pretty-printers): Export.
3605 (set-pretty-printers!): Export.
3606 * guile/lib/gdb/printing.scm (gdb module): Update.
3607 (prepend-pretty-printer!, append-pretty-printer!): Update.
3608 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
3609 (pretty_printer_list_var): Delete.
3610 (pretty_printer_list): New static global.
3611 (gdbscm_pretty_printers): New function.
3612 (gdbscm_set_pretty_printers_x): New function.
3613 (ppscm_find_pretty_printer_from_gdb): Update.
3614 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
3615 (gdbscm_initialize_pretty_printers): Update.
3616
74edf516
DE
36172014-07-26 Doug Evans <xdje42@gmail.com>
3618
3619 PR 17185
3620 * configure.ac: Add check for header gc/gc.h.
3621 Add check for function setenv.
3622 * configure: Regenerate.
3623 * config.in: Regenerate.
3624 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
3625
d54398a7
MR
36262014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
3627
3628 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
3629 variation in gdbarch matching.
3630
ab16fce8
TT
36312014-07-25 Tom Tromey <tromey@redhat.com>
3632
3633 * exec.c (using_exec_ops): Remove.
3634 (exec_close_1): Update. Remove extraneous block, reindent.
3635 (add_target_sections): Use target_is_pushed.
3636
88056fbb
PA
36372014-07-25 Pedro Alves <palves@redhat.com>
3638
3639 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
3640 * monitor.c (monitor_create_inferior): Likewise.
3641 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
3642 * remote-sim.c (gdbsim_create_inferior): Likewise.
3643 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
3644 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
3645 * windows-nat.c (do_initial_windows_stuff): Likewise.
3646
70509625
PA
36472014-07-25 Pedro Alves <palves@redhat.com>
3648
3649 * NEWS: Mention signal passing and "signal" command changes.
3650 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
3651 comment.
3652 * breakpoint.c (until_break_command): Adjust clear_proceed_status
3653 call.
3654 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
3655 * infcmd.c (proceed_thread_callback, continue_1, step_once)
3656 (jump_command): Adjust clear_proceed_status call.
3657 (signal_command): Warn if other thread that are resumed have
3658 signals that will be delivered. Adjust clear_proceed_status call.
3659 (until_next_command, finish_command)
3660 (proceed_after_attach_callback, attach_command_post_wait)
3661 (attach_command): Adjust clear_proceed_status call.
3662 * infrun.c (proceed_after_vfork_done): Likewise.
3663 (proceed_after_attach_callback): Adjust comment.
3664 (clear_proceed_status_thread): Clear stop_signal if not in pass
3665 state.
3666 (clear_proceed_status_callback): Delete.
3667 (clear_proceed_status): New 'step' parameter. Only clear the
3668 proceed status of threads the command being prepared is about to
3669 resume.
3670 (proceed): If passed in an explicit signal, override stop_signal
3671 with it. Don't pass the last stop signal to the thread we're
3672 resuming.
3673 (init_wait_for_inferior): Adjust clear_proceed_status call.
3674 (switch_back_to_stepped_thread): Clear the signal if it should not
3675 be passed.
3676 * infrun.h (clear_proceed_status): New 'step' parameter.
3677 (user_visible_resume_ptid): Add comment.
3678 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
3679 signal is in pass state.
3680 * remote.c (append_pending_thread_resumptions): Likewise.
3681 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
3682
d8be2939
TT
36832014-07-25 Tom Tromey <tromey@redhat.com>
3684
3685 * target.h (target_stopped_data_address)
3686 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
3687 parentheses.
3688
7d0d9d2b
PL
36892014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
3690
3691 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
3692 comments.
3693 (avr_pointer_to_address): Likewise.
3694
e9e7f724
TT
36952014-07-24 Tom Tromey <tromey@redhat.com>
3696
3697 * monitor.c (compile_pattern): Update.
3698 * target.h (struct target_ops) <to_shortname, to_longname,
3699 to_doc>: Now const.
3700
1947513d
TT
37012014-07-24 Tom Tromey <tromey@redhat.com>
3702
3703 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
3704 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
3705 (add_info_alias, add_com): Make "doc" const.
3706 (print_doc_line): Make "str" const.
3707 (delete_cmd): Update.
3708 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
3709 (print_doc_line): Update.
3710 * cli/cli-script.c (document_command): Update.
3711 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
3712 (add_com, add_info, add_info_alias): Update.
3713 * guile/scm-cmd.c (cmdscm_destroyer): Update.
3714 * python/py-cmd.c (cmdpy_destroyer): Update.
3715
64e61d29
TT
37162014-07-24 Tom Tromey <tromey@redhat.com>
3717
3718 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
3719 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
3720 (help_cmd_list): Constify.
3721 (lookup_cmd): Update.
3722 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
3723 const.
3724 (help_cmd_list, apropos_cmd): Update.
3725 * cli/cli-script.c (show_user): Update.
3726 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
3727 * cli/cli-setshow.h (cmd_show_list): Update.
3728 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
3729 (cmd_show_list): Update.
3730 * guile/scm-cmd.c (cmdscm_destroyer): Update.
3731 * python/py-cmd.c (cmdpy_destroyer): Update.
3732
429e55ea
TT
37332014-07-24 Tom Tromey <tromey@redhat.com>
3734
3735 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
3736 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
3737 const.
3738 * command.h (deprecate_cmd): Update.
3739 * maint.c (maintenance_do_deprecate): Add casts.
3740
64669f3b
TT
37412014-07-24 Tom Tromey <tromey@redhat.com>
3742
3743 * cli/cli-decode.c (help_cmd): Make parameter "const".
3744 * cli/cli-decode.h (help_cmd): Update.
3745
d3d3328b
TT
37462014-07-24 Tom Tromey <tromey@redhat.com>
3747
3748 * stack.c (up_silently_base, down_silently_base): Make argument
3749 const.
3750
414842dc
TT
37512014-07-24 Tom Tromey <tromey@redhat.com>
3752
3753 * solib.c (solib_add): Make "pattern" const.
3754 * solib.h (solib_add): Update.
3755
baa336ce
TT
37562014-07-24 Tom Tromey <tromey@redhat.com>
3757
3758 * remote.c (remote_serial_open, print_packet, putpkt)
3759 (putpkt_binary): Constify.
3760 * remote.h (putpkt): Update.
3761
5a19e2d0
TT
37622014-07-24 Tom Tromey <tromey@redhat.com>
3763
3764 * monitor.c (monitor_open): Make "args" const.
3765 * monitor.h (monitor_open): Update.
3766
fc4baa5e
TT
37672014-07-24 Tom Tromey <tromey@redhat.com>
3768
3769 * maint.c (match_bfd_flags): Make "string" const.
3770 (print_bfd_section_info): Remove casts.
3771 (print_objfile_section_info): Make "string" const.
3772
0d5f0dbe
TT
37732014-07-24 Tom Tromey <tromey@redhat.com>
3774
3775 * inf-child.c (inf_child_open_target): Make "arg" const.
3776 * inf-child.h (inf_child_open_target): Update.
3777
41c77899
TT
37782014-07-24 Tom Tromey <tromey@redhat.com>
3779
3780 * environ.c (unset_in_environ): Make "var" const.
3781 * environ.h (unset_in_environ): Update.
3782
93db0d79
TT
37832014-07-24 Tom Tromey <tromey@redhat.com>
3784
3785 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
3786 Make "cmd" const.
3787 (scan_filename_with_cleanup): Likewise.
3788 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
3789 Make arguments const.
3790 (restore_command): Update.
3791
36d6eb95
PA
37922014-07-24 Pedro Alves <palves@redhat.com>
3793
3794 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
3795
8009206a
TT
37962014-07-24 Tom Tromey <tromey@redhat.com>
3797 Gary Benson <gbenson@redhat.com>
3798
3799 * nat/linux-ptrace.c (additional_flags): New global.
3800 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
3801 additional_flags; don't check GDBSERVER.
3802 (linux_ptrace_set_additional_flags): New function.
3803 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
3804 Declare.
3805 * linux-nat.c (_initialize_linux_nat): Call
3806 linux_ptrace_set_additional_flags.
3807
a7068b60
TT
38082014-07-24 Tom Tromey <tromey@redhat.com>
3809
3810 * make-target-delegates (munge_type, write_debugmethod): New
3811 functions.
3812 (debug_names): New global.
3813 ($TARGET_DEBUG_PRINTER): New global.
3814 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
3815 name.
3816 Write debug methods. Generate init_debug_target.
3817 * target-debug.h: New file.
3818 * target-delegates.c: Rebuild.
3819 * target.c: Include target-debug.h.
3820 (debug_target): Hoist definition.
3821 (target_kill, target_get_section_table, target_memory_map)
3822 (target_flash_erase, target_flash_done, target_detach)
3823 (target_disconnect, target_wait, target_resume)
3824 (target_pass_signals, target_program_signals, target_follow_fork)
3825 (target_mourn_inferior, target_search_memory)
3826 (target_thread_address_space, target_close)
3827 (target_find_new_threads, target_core_of_thread)
3828 (target_verify_memory, target_insert_mask_watchpoint)
3829 (target_remove_mask_watchpoint): Remove targetdebug code.
3830 (debug_to_post_attach, debug_to_prepare_to_store)
3831 (debug_to_files_info, debug_to_insert_breakpoint)
3832 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
3833 (debug_to_region_ok_for_hw_watchpoint)
3834 (debug_to_can_accel_watchpoint_condition)
3835 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
3836 (debug_to_watchpoint_addr_within_range)
3837 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
3838 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
3839 (debug_to_terminal_init, debug_to_terminal_inferior)
3840 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
3841 (debug_to_terminal_save_ours, debug_to_terminal_info)
3842 (debug_to_load, debug_to_post_startup_inferior)
3843 (debug_to_insert_fork_catchpoint)
3844 (debug_to_remove_fork_catchpoint)
3845 (debug_to_insert_vfork_catchpoint)
3846 (debug_to_remove_vfork_catchpoint)
3847 (debug_to_insert_exec_catchpoint)
3848 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
3849 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
3850 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
3851 (setup_target_debug): Call init_debug_target.
3852 * target.h (TARGET_DEBUG_PRINTER): New macro.
3853 (struct target_ops) <to_resume, to_wait, to_pass_signals,
3854 to_program_signals>: Use TARGET_DEBUG_PRINTER.
3855
2c51604d
GB
38562014-07-24 Gary Benson <gbenson@redhat.com>
3857
3858 * exceptions.h (throw_vfatal): Renamed to...
3859 (throw_vquit): New declaration.
3860 (throw_quit): Likewise.
3861 * exceptions.c (throw_vfatal): Renamed to...
3862 (throw_vquit): New function.
3863 (throw_quit): Likewise.
3864 (throw_error): Call throw_verror rather than throw_it.
3865 * utils.h (vfatal): Removed.
3866 (fatal): Likewise.
3867 * utils.c (vfatal): Removed.
3868 (fatal): Likewise.
3869 (internal_verror): Replaced call to fatal with call to throw_quit.
3870 (quit): Replaced calls to fatal with calls to throw_quit.
3871
34211963
ME
38722014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
3873
3874 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
3875 target_read_code.
3876
a52b4d3e
ME
38772014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
3878
3879 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
3880 less than zero in conditional expression.
3881
a8bdc56b
TT
38822014-07-23 Tom Tromey <tromey@redhat.com>
3883
3884 * make-target-delegates ($ARGS_PART): Match trailing close paren.
3885 ($INTRO_PART): Don't match whitespace.
3886 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
3887 argument matching.
3888 ($METHOD): Add $METHOD_TRAILER.
3889 (trim): Rewrite.
3890 (scan_target_h): New sub.
3891 Change main loop not to collect state.
3892 * target-delegates.c: Rebuild.
3893
91b52240
GB
38942014-07-23 Gary Benson <gbenson@redhat.com>
3895
3896 * cp-support.c (gdb_demangle): Fix build on systems without
3897 sigaltstack.
3898
45326f6f
JK
38992014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3900
3901 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
3902 for reference entry value target data value.
3903
e214cf6c
JK
39042014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3905
3906 * stack.c (read_frame_arg): Verify value_optimized_out before calling
3907 value_available_contents_eq.
3908
bddbbedd
PA
39092014-07-22 Pedro Alves <palves@redhat.com>
3910
3911 * value.c (allocate_optimized_out_value): Don't mark value as
3912 non-lazy.
3913
45c71484
JW
39142014-07-22 Jiong Wang <jiong.wang@arm.com>
3915
3916 * MAINTAINERS (Write After Approval): Update my email address.
3917
9597b22a
DE
39182014-07-20 Doug Evans <dje@google.com>
3919
3920 PR server/17147
3921 * remote.c (putpkt_binary): Add text to error message.
3922
91101fe5
YQ
39232014-07-20 Yao Qi <yao@codesourcery.com>
3924
3925 * eval.c: Remove "Chill" from comments.
3926 * gdbtypes.h: Likewise.
3927 * symtab.h: Likewise.
3928
c9402c95
YQ
39292014-07-20 Yao Qi <yao@codesourcery.com>
3930
3931 * std-operator.def: Update comments to TERNOP_SLICE.
3932
ae8fddda
YQ
39332014-07-20 Yao Qi <yao@codesourcery.com>
3934
3935 * std-operator.def: Remove BINOP_RANGE.
3936 * breakpoint.c (watchpoint_exp_is_const): Update.
3937 * expprint.c (dump_subexp_body_standard): Likewise.
3938 * eval.c (init_array_element): Remove dead code.
3939 (evaluate_subexp_standard): Likewise.
3940
9c816640
YQ
39412014-07-20 Yao Qi <yao@codesourcery.com>
3942
3943 * std-operator.def: Remove BINOP_IN.
3944 * breakpoint.c (watchpoint_exp_is_const): Update.
3945 * eval.c (evaluate_subexp_standard): Likewise.
3946 * expprint.c (dump_subexp_body_standard): Likewise.
3947
164224e9
ME
39482014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
3949
3950 * microblaze-tdep.c (microblaze_register_names): Add
3951 the rshr and rslr register names.
3952 (microblaze_gdbarch_init): Use of tdesc_has_registers.
3953 Use of tdesc_find_feature. Use of tdesc_data_alloc.
3954 Use of tdesc_numbered_register. Use of
3955 microblaze_register_g_packet_guesses. Use of
3956 tdesc_use_registers. Use of set_gdbarch_register_type.
3957 (microblaze_register_g_packet_guesses): New.
3958 * microblaze-tdep.h (microblaze_reg_num): Add
3959 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
3960 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
3961 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
3962 * features/microblaze-core.xml: New file.
3963 * features/microblaze-stack-protect.xml: New file.
3964 * features/microblaze-with-stack-protect.c: New file.
3965 * features/microblaze-with-stack-protect.xml: New file.
3966 * features/microblaze.xml: New file.
3967 * features/microblaze.c: New file.
3968 * features/Makefile (microblaze-with-stack-protect): Add
3969 microblaze-with-stack-protect microblaze and microblaze-expedite.
3970 * regformats/microblaze-with-stack-protect.dat: New file.
3971 * regformats/microblaze.dat: New file.
3972 * doc/gdb.texinfo (MicroBlaze Features): Added.
3973
e8b2341c
TT
39742014-07-18 Tom Tromey <tromey@redhat.com>
3975
3976 * exec.c (exec_ops): Now static.
3977 * exec.h (exec_ops): Don't declare.
3978
44e89118
TT
39792014-07-18 Tom Tromey <tromey@redhat.com>
3980
3981 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
3982 to find_target_beneath.
3983 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
3984 find_target_beneath.
3985 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
3986
b0ed115f
TT
39872014-07-18 Tom Tromey <tromey@redhat.com>
3988
3989 PR gdb/17130:
3990 * utils.c (quit): Use target_supports_terminal_ours.
3991 * target.h (target_supports_terminal_ours): Declare.
3992 * target.c (target_supports_delete_record): Don't check
3993 to_delete_record against NULL.
3994 (target_supports_terminal_ours): New function.
3995
e75fdfca
TT
39962014-07-18 Tom Tromey <tromey@redhat.com>
3997
3998 PR gdb/17130:
3999 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
4000 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
4001 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
4002 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
4003 * windows-nat.c (windows_xfer_partial): Always delegate.
4004 * record-btrace.c (record_btrace_xfer_partial): Simplify
4005 delegation.
4006 (record_btrace_fetch_registers, record_btrace_store_registers)
4007 (record_btrace_prepare_to_store, record_btrace_resume)
4008 (record_btrace_wait, record_btrace_find_new_threads)
4009 (record_btrace_thread_alive): Likewise.
4010 * procfs.c (procfs_xfer_partial): Always delegate.
4011 * corelow.c (core_xfer_partial): Always delegate.
4012 * sol-thread.c (sol_find_new_threads): Simplify delegation.
4013
83814951
TT
40142014-07-18 Tom Tromey <tromey@redhat.com>
4015
4016 * exec.c (exec_make_note_section): Move earlier.
4017
b8b8facf
DE
40182014-07-17 Doug Evans <dje@google.com>
4019
74b49205 4020 PR gdb/17170
b8b8facf
DE
4021 * maint.c (count_symtabs_and_blocks): Handle NULL
4022 current_program_space.
4023 (report_command_stats): Check global enabled flag in addition to
4024 recorded enabled flag.
4025 (make_command_stats_cleanup): Handle msg_type == 0, startup.
4026
69ff6be5
PA
40272014-07-16 Pedro Alves <palves@redhat.com>
4028
4029 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
4030
252db1b5
TT
40312014-07-16 Tom Tromey <tromey@redhat.com>
4032
4033 * target.h (struct target_ops) <to_delete_record>: Reformat
4034 comment.
4035
a432721e
TT
40362014-07-16 Tom Tromey <tromey@redhat.com>
4037
4038 * target-delegates.c: Rebuild.
4039
487d9753
PL
40402014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
4041
4042 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
4043 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
4044 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
4045 (avr_pointer_to_address): Likewise.
4046 (avr_address_class_type_flags): New function.
4047 (avr_address_class_type_flags_to_name): Likewise.
4048 (avr_address_class_name_to_type_flags): Likewise.
4049 (avr_gdbarch_init): Set address_class_type_flags,
4050 address_class_type_flags_to_name and
4051 address_class_name_to_type_flags.
4052
57745c90
PA
40532014-07-15 Pedro Alves <palves@redhat.com>
4054
4055 * linux-nat.c (kill_callback): Save errno and work with saved
4056 copy.
4057
2d40be18
SM
40582014-07-15 Simon Marchi <simon.marchi@ericsson.com>
4059
4060 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
4061
572f6555
EBM
40622014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4063
4064 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
4065 breakpoint support correctly.
4066
cc1c52ad
PA
40672014-07-14 Pedro Alves <palves@redhat.com>
4068
4069 * utils.c (prompt_for_continue): Call target_terminal_ours.
4070
1e973570
PA
40712014-07-14 Pedro Alves <palves@redhat.com>
4072
4073 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
4074 catch_errors. Don't re-enable stdin or notify observers where,
4075 and rethrow error.
4076 (fetch_inferior_event_wrapper): Delete.
4077
93d6eb10
PA
40782014-07-14 Pedro Alves <palves@redhat.com>
4079
4080 PR gdb/17072
4081 * top.c: Include "inf-loop.h".
4082 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
4083 field.
4084 (gdb_readline_wrapper_cleanup): Make the target async again, if it
4085 was async before.
4086 (gdb_readline_wrapper): Store whether the target is async, and
4087 make it sync.
4088
0017922d
PA
40892014-07-14 Pedro Alves <palves@redhat.com>
4090
4091 PR gdb/17072
4092 * top.c (gdb_readline_wrapper_line): Tweak comment.
4093 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
4094 the input handler callback.
4095
94696ad3
PA
40962014-07-14 Pedro Alves <palves@redhat.com>
4097
4098 PR gdb/17072
4099 * main.c: Include event-top.h.
4100 (handle_command_errors): New function.
4101 (catch_command_errors, catch_command_errors_const): Use it.
4102
9d1e69a2
PA
41032014-07-14 Pedro Alves <palves@redhat.com>
4104
4105 * exceptions.c (catch_command_errors, catch_command_errors_const):
4106 Moved to main.c.
4107 * exceptions.h (catch_command_errors_ftype)
4108 (catch_command_errors_const_ftype): Moved to main.c.
4109 (catch_command_errors, catch_command_errors_const): Delete
4110 declarations.
4111 * main.c (catch_command_errors_ftype)
4112 (catch_command_errors_const_ftype): Moved here from exceptions.h.
4113 (catch_command_errors, catch_command_errors_const)): Moved here
4114 from exceptions.c and make static.
4115
feefc97b
PA
41162014-07-14 Pedro Alves <palves@redhat.com>
4117
4118 * exceptions.c (print_any_exception): Delete.
4119 (catch_exceptions_with_msg): Use exception_print instead of
4120 print_any_exception.
4121 (catch_errors): Use exception_fprintf instead of
4122 print_any_exception.
4123 (catch_command_errors, catch_command_errors_const): Use
4124 exception_print instead of print_any_exception.
4125
c933f875
PA
41262014-07-14 Pedro Alves <palves@redhat.com>
4127
4128 * infcall.c (run_inferior_call): Set 'sync_execution' while
4129 running the inferior call.
4130
feb6f816
PA
41312014-07-14 Pedro Alves <palves@redhat.com>
4132
4133 * value.c (value_contents_equal): Delete function.
4134 * value.h (value_contents_equal): Delete declaration.
4135
d98b7a16
TT
41362014-07-14 Tom Tromey <tromey@redhat.com>
4137
4138 PR exp/17106:
4139 * gdbtypes.c (is_dynamic_type_internal): New function, from
4140 is_dynamic_type.
4141 (is_dynamic_type): Rewrite.
4142 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
4143 (resolve_dynamic_struct): Likewise.
4144 (resolve_dynamic_type_internal): New function, from
4145 resolve_dynamic_type.
4146 (resolve_dynamic_type): Rewrite.
4147
548740d6
TT
41482014-07-14 Tom Tromey <tromey@redhat.com>
4149
4150 * target.c (target_require_runnable): Also check record_stratum.
4151 Update comment.
4152
808f7ab1
YQ
41532014-07-11 Yao Qi <yao@codesourcery.com>
4154
4155 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
4156 thumb_instruction_restores_sp return true.
4157
540314bd
YQ
41582014-07-11 Yao Qi <yao@codesourcery.com>
4159
4160 * arm-tdep.c (thumb_instruction_restores_sp): New function.
4161 (thumb_in_function_epilogue_p): Call
4162 thumb_instruction_restores_sp.
4163
1db01f22
YQ
41642014-07-11 Yao Qi <yao@codesourcery.com>
4165
4166 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
4167 'add sp, #imm'.
4168 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
4169
3116063b
GB
41702014-07-11 Gary Benson <gbenson@redhat.com>
4171
4172 * amd64-linux-nat.c (gdbcore.h): Remove include.
4173 (regset.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/debugreg.h): Likewise.
4180 (sys/syscall.h): Likewise.
4181 (sys/procfs.h): Likewise.
4182 (sys/user.h): Likewise.
4183 (asm/ptrace.h): Likewise.
4184 (i386-nat.h): Likewise.
4185 * i386-linux-nat.c (i386-nat.h): Likewise.
4186 (regset.h): Likewise.
4187 (target.h): Likewise.
4188 (linux-nat.h): Likewise.
4189 (nat/linux-btrace.h): Likewise.
4190 (btrace.h): Likewise.
4191 (gdb_assert.h): Likewise.
4192 (string.h): Likewise.
4193 (sys/uio.h): Likewise.
4194 (sys/user.h): Likewise.
4195 (sys/procfs.h): Likewise.
4196 (sys/reg.h): Likewise.
4197 (sys/debugreg.h): Likewise.
4198 (ORIG_EAX): Remove definition.
4199
040baaf6
GB
42002014-07-11 Gary Benson <gbenson@redhat.com>
4201
4202 * i386-linux-nat.h: New file.
4203 * x86-linux-nat.h: Likewise.
4204 * x86-linux-nat.c: Likewise.
4205 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
4206 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
4207 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4208 * amd64-linux-nat.c (x86-linux-nat.h): New include.
4209 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
4210 (PTRACE_SETREGSET): Likewise.
4211 (arch_lwp_info): Now in x86-linux-nat.c.
4212 (have_ptrace_getregset): Now in x86-linux-nat.h.
4213 (x86_linux_dr_get): Now in x86-linux-nat.c.
4214 (x86_linux_dr_set): Likewise.
4215 (x86_linux_dr_get_addr): Likewise.
4216 (x86_linux_dr_get_control): Likewise.
4217 (x86_linux_dr_get_status): Likewise.
4218 (update_debug_registers_callback): Likewise.
4219 (x86_linux_dr_set_control): Likewise.
4220 (x86_linux_dr_set_addr): Likewise.
4221 (x86_linux_prepare_to_resume): Likewise.
4222 (x86_linux_new_thread): Likewise.
4223 (x86_linux_new_fork): Likewise.
4224 (x86_linux_get_thread_area): Likewise.
4225 (super_post_startup_inferior): Likewise.
4226 (x86_linux_child_post_startup_inferior): Likewise.
4227 (AMD64_LINUX_USER64_CS): Likewise.
4228 (AMD64_LINUX_X32_DS): Likewise.
4229 (x86_linux_read_description): Likewise.
4230 (x86_linux_enable_btrace): Likewise.
4231 (x86_linux_disable_btrace): Likewise.
4232 (x86_linux_teardown_btrace): Likewise.
4233 (x86_linux_read_btrace): Likewise.
4234 (x86_linux_create_target): Likewise.
4235 (x86_linux_add_target): Likewise.
4236 * i386-linux-nat.c (x86-linux-nat.h): New include.
4237 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
4238 (PTRACE_SETREGSET): Likewise.
4239 (arch_lwp_info): Now in x86-linux-nat.c.
4240 (have_ptrace_getregset): Now in x86-linux-nat.h.
4241 (x86_linux_dr_get): Now in x86-linux-nat.c.
4242 (x86_linux_dr_set): Likewise.
4243 (x86_linux_dr_get_addr): Likewise.
4244 (x86_linux_dr_get_control): Likewise.
4245 (x86_linux_dr_get_status): Likewise.
4246 (update_debug_registers_callback): Likewise.
4247 (x86_linux_dr_set_control): Likewise.
4248 (x86_linux_dr_set_addr): Likewise.
4249 (x86_linux_prepare_to_resume): Likewise.
4250 (x86_linux_new_thread): Likewise.
4251 (x86_linux_new_fork): Likewise.
4252 (x86_linux_get_thread_area): Likewise.
4253 (super_post_startup_inferior): Likewise.
4254 (x86_linux_child_post_startup_inferior): Likewise.
4255 (AMD64_LINUX_USER64_CS): Likewise.
4256 (AMD64_LINUX_X32_DS): Likewise.
4257 (x86_linux_read_description): Likewise.
4258 (x86_linux_enable_btrace): Likewise.
4259 (x86_linux_disable_btrace): Likewise.
4260 (x86_linux_teardown_btrace): Likewise.
4261 (x86_linux_read_btrace): Likewise.
4262 (x86_linux_create_target): Likewise.
4263 (x86_linux_add_target): Likewise.
4264
1aa7e42c
GB
42652014-07-11 Gary Benson <gbenson@redhat.com>
4266
4267 * amd64-linux-nat.c: Comment and whitespace changes.
4268 * i386-linux-nat.c: Comment and whitespace changes.
4269
c1e246a0
GB
42702014-07-11 Gary Benson <gbenson@redhat.com>
4271
4272 * amd64-linux-nat.c (x86_linux_create_target): New function.
4273 (x86_linux_add_target): Likewise.
4274 (_initialize_amd64_linux_nat): Delegate to the above new functions.
4275 * i386-linux-nat.c (x86_linux_create_target): New function.
4276 (x86_linux_add_target): Likewise.
4277 (_initialize_i386_linux_nat): Delegate to the above new functions.
4278
8c420b8d
GB
42792014-07-11 Gary Benson <gbenson@redhat.com>
4280
4281 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
4282 (ps_get_thread_area): Delegate to the above in 32-bit mode.
4283 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
4284 (ps_get_thread_area): Delegate to the above.
4285
cb1da100
GB
42862014-07-11 Gary Benson <gbenson@redhat.com>
4287
4288 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
4289 x86_linux_read_description. All uses updated. amd64-specific
4290 code conditionalized. Conditionalized i386-specific code added.
4291 Redundant cast removed.
4292 * i386-linux-nat.c (i386_linux_read_description): Renamed to
4293 x86_linux_read_description. All uses updated. i386-specific
4294 code conditionalized. Conditionalized amd64-specific code added.
4295 One sizeof replaced with the actual type it is describing.
4296
2acf3cd0
GB
42972014-07-11 Gary Benson <gbenson@redhat.com>
4298
4299 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
4300 x86_linux_dr_get. All uses updated.
4301 (amd64_linux_dr_set): Renamed to
4302 x86_linux_dr_set. All uses updated.
4303 (amd64_linux_dr_get_addr): Renamed to
4304 x86_linux_dr_get_addr. All uses updated.
4305 (amd64_linux_dr_get_control): Renamed to
4306 x86_linux_dr_get_control. All uses updated.
4307 (amd64_linux_dr_get_status): Renamed to
4308 x86_linux_dr_get_status. All uses updated.
4309 (amd64_linux_dr_set_control): Renamed to
4310 x86_linux_dr_set_control. All uses updated.
4311 (amd64_linux_dr_set_addr): Renamed to
4312 x86_linux_dr_set_addr. All uses updated.
4313 (amd64_linux_prepare_to_resume): Renamed to
4314 x86_linux_prepare_to_resume. All uses updated.
4315 (amd64_linux_new_thread): Renamed to
4316 x86_linux_new_thread. All uses updated.
4317 (amd64_linux_new_fork): Renamed to
4318 x86_linux_new_fork. All uses updated.
4319 (amd64_linux_child_post_startup_inferior): Renamed to
4320 x86_linux_child_post_startup_inferior. All uses updated.
4321 (amd64_linux_enable_btrace): Renamed to
4322 x86_linux_enable_btrace. All uses updated.
4323 (amd64_linux_disable_btrace): Renamed to
4324 x86_linux_disable_btrace. All uses updated.
4325 (amd64_linux_teardown_btrace): Renamed to
4326 x86_linux_teardown_btrace. All uses updated.
4327 (amd64_linux_read_btrace): Renamed to
4328 x86_linux_read_btrace. All uses updated.
4329 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
4330 x86_linux_dr_get. All uses updated.
4331 (i386_linux_dr_set): Renamed to
4332 x86_linux_dr_set. All uses updated.
4333 (i386_linux_dr_get_addr): Renamed to
4334 x86_linux_dr_get_addr. All uses updated.
4335 (i386_linux_dr_get_control): Renamed to
4336 x86_linux_dr_get_control. All uses updated.
4337 (i386_linux_dr_get_status): Renamed to
4338 x86_linux_dr_get_status. All uses updated.
4339 (i386_linux_dr_set_control): Renamed to
4340 x86_linux_dr_set_control. All uses updated.
4341 (i386_linux_dr_set_addr): Renamed to
4342 x86_linux_dr_set_addr. All uses updated.
4343 (i386_linux_prepare_to_resume): Renamed to
4344 x86_linux_prepare_to_resume. All uses updated.
4345 (i386_linux_new_thread): Renamed to
4346 x86_linux_new_thread. All uses updated.
4347 (i386_linux_new_fork): Renamed to
4348 x86_linux_new_fork. All uses updated.
4349 (i386_linux_child_post_startup_inferior): Renamed to
4350 x86_linux_child_post_startup_inferior. All uses updated.
4351 (i386_linux_enable_btrace): Renamed to
4352 x86_linux_enable_btrace. All uses updated.
4353 (i386_linux_disable_btrace): Renamed to
4354 x86_linux_disable_btrace. All uses updated.
4355 (i386_linux_teardown_btrace): Renamed to
4356 x86_linux_teardown_btrace. All uses updated.
4357 (i386_linux_read_btrace): Renamed to
4358 x86_linux_read_btrace. All uses updated.
4359
b9c1d481
AS
43602014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
4361
4362 * remote.c (extended_remote_post_attach): New function.
4363 (init_extended_remote_ops): Install it as to_post_attach method.
4364
7180e04a
PA
43652014-07-09 Pedro Alves <palves@redhat.com>
4366
4367 * infcmd.c (attach_command_post_wait): Don't call
4368 target_terminal_inferior here.
4369 (attach_command): Call it here instead.
4370
9a9a7608
AB
43712014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4372
4373 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
4374 field.
4375 * c-varobj.c (c_is_path_expr_parent): New function, moved core
4376 from varobj.c, with additional checks.
4377 (c_varobj_ops): Fill in is_path_expr_parent field.
4378 (cplus_varobj_ops): Fill in is_path_expr_parent field.
4379 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
4380 field.
4381 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
4382 ops method.
4383 (varobj_default_is_path_expr_parent): New function.
4384 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
4385 (varobj_default_is_path_expr_parent): Declare new function.
4386
1f267ae3
MM
43872014-07-08 Markus Metzger <markus.t.metzger@intel.com>
4388
4389 * infcmd.c (finish_backward): Turn internal error into normal error.
4390
b2ee242b
PA
43912014-07-07 Pedro Alves <palves@redhat.com>
4392
8a869bca 4393 PR gdb/17096
b2ee242b
PA
4394 * remote.c (async_handle_remote_sigint)
4395 (async_handle_remote_sigint_twice): Call
4396 gdb_call_async_signal_handler instead of
4397 mark_async_signal_handler.
4398
38e229b2
TT
43992014-07-07 Tom Tromey <tromey@redhat.com>
4400
4401 * target-delegates.c: Rebuild.
4402 * target.c (target_info_record): Remove.
4403 * record.c (info_record_command): Unconditionally call
4404 to_info_record.
4405 * target.h (struct target_ops) <to_info_record>: Use
4406 TARGET_DEFAULT_IGNORE.
4407 (target_info_record): Remove.
4408
f0f9ff95
TT
44092014-07-07 Tom Tromey <tromey@redhat.com>
4410
4411 * target.h (struct target_ops) <to_get_thread_local_address>: Use
4412 TARGET_DEFAULT_NORETURN.
4413 * target.c (generic_tls_error): New function.
4414 (target_translate_tls_address): Don't search target stack.
4415 * target-delegates.c: Rebuild.
4416 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
4417 stack.
4418 * linux-thread-db.c (thread_db_get_thread_local_address):
4419 Unconditionally call beneath target.
4420
4a5be5ee
MK
44212014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
4422
4423 * cli/cli-logging.c (pop_output_files): Assign targerr to
4424 gdb_stdtargerr.
4425
92c3b204
AB
44262014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
4427
4428 * MAINTAINERS (Write After Approval): Update my email address.
4429
9b11e3a7
GB
44302014-07-02 Gary Benson <gbenson@redhat.com>
4431
4432 * proc-service.c (ps_xfer_memory): Update comment.
4433 (ps_pstop): Remove unused function.
4434 (ps_pcontinue): Likewise.
4435 (ps_lstop): Likewise.
4436 (ps_lcontinue): Likewise.
4437 (ps_lgetxregsize): Likewise.
4438 (ps_lgetxregs): Likewise.
4439 (ps_lsetxregs): Likewise.
4440 (ps_plog): Likewise.
4441 (ps_ptread): Likewise.
4442 (ps_ptwrite): Likewise.
4443
cf363f18
MW
44442014-07-01 Mark Wielaard <mjw@redhat.com>
4445
4446 * dwarf2read.c (add_array_cv_type): New function.
4447 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
4448 (read_tag_volatile_type): Likewise.
4449
82ae6c8d
TT
44502014-07-01 Tom Tromey <tromey@redhat.com>
4451
4452 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
4453 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
4454 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
4455 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
4456 * command.h (cmd_cfunc_ftype): Move earlier.
4457 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
4458 (add_com, add_info): Use cmd_cfunc_ftype.
4459
96142726
TT
44602014-06-30 Tom Tromey <tromey@redhat.com>
4461
4462 * symtab.c (operator_chars): Make parameters and return type
4463 const.
4464 (file_matches): Make "files" const.
4465 (struct search_symbols_data) <files>: Now const.
4466 (search_symbols): Make "regexp" and "files" parameters const.
4467 Update.
4468 (symtab_symbol_info): Remove cast.
4469 (rbreak_command): Update.
4470 * symtab.h (search_symbols): Update.
4471
b67a2c6f
YQ
44722014-06-27 Yao Qi <yao@codesourcery.com>
4473
4474 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
4475 Change parameter type to 'struct thread_info *'. Caller
4476 updated.
4477 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
4478 Update declaration.
4479 * dummy-frame.c (struct dummy_frame_id): New.
4480 (dummy_frame_id_eq): New function.
4481 (struct dummy_frame) <id>: Change its type to 'struct
4482 dummy_frame_id'.
4483 (dummy_frame_push): Add parameter ptid and save it in
4484 dummy_frame_id.
4485 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
4486 inferior_ptid.
4487 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
4488 to inferior_ptid.
4489 (lookup_dummy_frame): Change parameter type to 'struct
4490 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
4491 instead of frame_id_eq.
4492 (dummy_frame_pop): Add parameter ptid. Callers updated.
4493 Update comments. Compose dummy_frame_id and pass it to
4494 lookup_dummy_frame.
4495 (dummy_frame_discard): Add parameter ptid.
4496 (dummy_frame_sniffer): Compose dummy_frame_id and call
4497 dummy_frame_id_eq instead of frame_id_eq.
4498 (fprint_dummy_frames): Print ptid.
4499 * dummy-frame.h: Remove comments.
4500 (dummy_frame_push): Add ptid in declaration.
4501 (dummy_frame_pop, dummy_frame_discard): Likewise.
4502
5b10184c
TT
45032014-06-26 Tom Tromey <tromey@redhat.com>
4504
4505 * cli/cli-cmds.c (error_no_arg): Make "why" const.
4506 * command.h (error_no_arg): Update.
4507
06900326
TT
45082014-06-26 Tom Tromey <tromey@redhat.com>
4509
4510 * cli/cli-setshow.c (do_set_command): Make "arg" const.
4511 (do_show_command): Make "arg" const.
4512 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
4513
c2bcbb1d
TT
45142014-06-26 Tom Tromey <tromey@redhat.com>
4515
4516 * record-full.c (record_full_get_bookmark): Make "args" const.
4517 (record_full_goto_bookmark): Make "raw_bookmark" const.
4518 * record.c (record_goto): New function.
4519 (cmd_record_goto): Use it. Now static.
4520 * record.h (record_goto): Declare.
4521 (cmd_record_goto): Remove declaration.
4522 * target-delegates.c: Rebuild.
4523 * target.h (struct target_ops) <to_get_bookmark,
4524 to_goto_bookmark>: Make parameter const.
4525
9cbe5fff
TT
45262014-06-26 Tom Tromey <tromey@redhat.com>
4527
4528 * defs.h (generic_load): Update.
4529 * m32r-rom.c (m32r_load_gen): Make "filename" const.
4530 * monitor.c (monitor_load): Make "args" const.
4531 * remote-m32r-sdi.c (m32r_load): Make "args" const.
4532 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
4533 const.
4534 (mips_load): Make "file" const.
4535 * remote-sim.c (gdbsim_load): Make "args" const.
4536 * remote.c (remote_load): Make "name" const.
4537 * symfile.c (generic_load): Make "args" const.
4538 * target-delegates.c: Rebuild.
4539 * target.c (target_load): Make "arg" const.
4540 (debug_to_load): Make "args" const.
4541 * target.h (struct target_ops) <to_load>: Make parameter const.
4542 (target_load): Update.
4543
34a68019
TT
45442014-06-26 Tom Tromey <tromey@redhat.com>
4545
4546 PR symtab/16902:
4547 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
4548 (dwarf2_physname, read_partial_die)
4549 (guess_partial_die_structure_name, fixup_partial_die)
4550 (guess_full_die_structure_name, anonymous_struct_prefix)
4551 (dwarf2_name): Use per-BFD obstack.
4552
efc889c1
YQ
45532014-06-26 Yao Qi <yao@codesourcery.com>
4554
4555 * dummy-frame.c (dummy_frame_sniffer): Move local variables
4556 dummyframe and this_id into inner block below.
4557
4395285e
YQ
45582014-06-26 Yao Qi <yao@codesourcery.com>
4559
4560 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
4561 with "signal_pass[0]" in the initialization of signal_pass.
4562
aef92902
MM
45632014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4564
4565 * record-btrace.c (record_btrace_generating_corefile)
4566 (record_btrace_prepare_to_generate_core)
4567 (record_btrace_done_generating_core): New.
4568 (record_btrace_xfer_partial, record_btrace_fetch_registers)
4569 (record_btrace_store_registers, record_btrace_prepare_to_store):
4570 Forward request when generating a core file.
4571 (record_btrace_open): Set record_btrace_generating_corefile to zero.
4572 (init_record_btrace_ops): Set to_prepare_to_generate_core and
4573 to_done_generating_core.
4574
5fff78c4
MM
45752014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4576
4577 * target.h (target_ops) <to_prepare_to_generate_core>
4578 <to_done_generating_core>: New.
4579 (target_prepare_to_generate_core, target_done_generating_core): New.
4580 * target.c (target_prepare_to_generate_core)
4581 (target_done_generating_core): New.
4582 * target-delegates.c: Regenerate.
4583 * gcore.c: (write_gcore_file): Rename to ...
4584 (write_gcore_file_1): ...this.
4585 (write_gcore_file): Call target_prepare_to_generate_core
4586 and target_done_generating_core.
4587
1d1f1ccb
MM
45882014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4589
4590 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
4591 * gcore.c (write_gcore_file): Free memory returned from
4592 make_corefile_notes.
4593 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
4594 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
4595
3343ef86
YQ
45962014-06-24 Yao Qi <yao@codesourcery.com>
4597
4598 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
4599 (arm_linux_init_abi): Set skip_trampoline_code with
4600 gdbarch_skip_trampoline_code instead of
4601 find_solib_trampoline_target.
4602
18d18ac8
YQ
46032014-06-24 Yao Qi <yao@codesourcery.com>
4604
4605 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
4606 arm_skip_bx_reg returns non-zero.
4607
80d8d390
YQ
46082014-06-24 Yao Qi <yao@codesourcery.com>
4609
4610 * arm-tdep.c (arm_skip_bx_reg): New function.
4611 (arm_skip_stub): Call arm_skip_bx_reg.
4612
6a18a01c
DB
46132014-06-23 Don Breazeal <donb@codesourcery.com>
4614
4615 * MAINTAINERS: Add myself as write-after-approval maintainer.
4616
8e9db26e
PA
46172014-06-23 Pedro Alves <palves@redhat.com>
4618
4619 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
4620 DR_CONTROL before setting DR0..DR3.
4621 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
4622 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
4623 bits of DR_CONTROL related to the debug register slot being
4624 disabled. If all slots are vacant, clear local slowdown as well,
4625 and assert DR_CONTROL is 0.
4626
70afc5b7
SC
46272014-06-23 Siva Chandra Reddy <sivachandra@google.com>
4628
4629 * python/lib/gdb/command/xmethods.py
4630 (get_method_matchers_in_loci): Lookup xmethod matchers in the
4631 current progspace only if the string "progspace" matches LOCUS_RE.
4632
840ed64d
JK
46332014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4634
4635 Fix --with-system-readline with readline-6.3 patch 5.
4636 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
4637 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
4638 types.
4639
26f2dc30
TT
46402014-06-20 Tom Tromey <tromey@redhat.com>
4641
4642 * dwarf2read.c (dw2_get_real_path): Use correct type in
4643 OBSTACK_CALLOC.
4644 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
4645
125f8a3d
GB
46462014-06-20 Gary Benson <gbenson@redhat.com>
4647
4648 * common/gdb_thread_db.h: Moved to nat. All includes updated.
4649 * common/glibc_thread_db.h: Likewise.
4650 * common/i386-cpuid.h: Likewise.
4651 * common/i386-gcc-cpuid.h: Likewise.
4652 * common/linux-btrace.h: Likewise.
4653 * common/linux-osdata.h: Likewise.
4654 * common/linux-procfs.h: Likewise.
4655 * common/linux-ptrace.h: Likewise.
4656 * common/mips-linux-watch.h: Likewise.
4657 * common/linux-btrace.c: Moved to nat.
4658 * common/linux-osdata.c: Likewise.
4659 * common/linux-procfs.c: Likewise.
4660 * common/linux-ptrace.c: Likewise.
4661 * common/mips-linux-watch.c: Likewise.
4662 * nat/gdb_thread_db.h: Moved from common.
4663 * nat/glibc_thread_db.h: Likewise.
4664 * nat/i386-cpuid.h: Likewise.
4665 * nat/i386-gcc-cpuid.h: Likewise.
4666 * nat/linux-btrace.c: Likewise.
4667 * nat/linux-btrace.h: Likewise.
4668 * nat/linux-osdata.c: Likewise.
4669 * nat/linux-osdata.h: Likewise.
4670 * nat/linux-procfs.c: Likewise.
4671 * nat/linux-procfs.h: Likewise.
4672 * nat/linux-ptrace.c: Likewise.
4673 * nat/linux-ptrace.h: Likewise.
4674 * nat/mips-linux-watch.c: Likewise.
4675 * nat/mips-linux-watch.h: Likewise.
4676 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
4677 (object file files): Reordered.
4678 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
4679 of glibc_thread_db.h.
4680
42995dbd
GB
46812014-06-20 Gary Benson <gbenson@redhat.com>
4682
4683 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
4684 (i386_dr_low_type): Moved to nat/i386-dregs.h.
4685 (i386_dr_low): Likewise.
4686 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
4687 (i386_dr_low_set_addr): Likewise.
4688 (i386_dr_low_get_addr): Likewise.
4689 (i386_dr_low_can_set_control): Likewise.
4690 (i386_dr_low_set_control): Likewise.
4691 (i386_dr_low_get_control): Likewise.
4692 (i386_dr_low_get_status): Likewise.
4693 (i386_get_debug_register_length): Likewise.
4694 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
4695 (i386_dr_low): Likewise.
4696 * nat/i386-dregs.c (i386-low.h): Remove include.
4697 (i386-nat.h): Likewise.
4698 (nat/i386-dregs.h): New include.
4699 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
4700 (i386_dr_low_set_addr): Likewise.
4701 (i386_dr_low_get_addr): Likewise.
4702 (i386_dr_low_can_set_control): Likewise.
4703 (i386_dr_low_set_control): Likewise.
4704 (i386_dr_low_get_control): Likewise.
4705 (i386_dr_low_get_status): Likewise.
4706 (i386_get_debug_register_length): Likewise.
4707 (debug_hw_points): Likewise.
4708
3ed9baed
IB
47092014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
4710
4711 * Makefile.in (SFILES): Add d-exp.y.
4712 (YYFILES): Add d-exp.c.
4713 (YYOBJ): Add d-exp.o.
4714 (local-maintainer-clean): Delete d-exp.c.
4715 * d-exp.y: New file.
4716 * d-lang.h (d_parse): New declaration.
4717 (d_error): New declaration.
4718 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
4719 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
4720 PREC_ORDER operators.
4721 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
4722
78c164b0
YQ
47232014-06-19 Yao Qi <yao@codesourcery.com>
4724
4725 * gdbthread.h (any_running): Remove the declaration.
4726 * thread.c (any_running): Remove.
4727
f6e29b6e
YQ
47282014-06-19 Yao Qi <yao@codesourcery.com>
4729
4730 * gdbthread.h (struct thread_info) <state>: Change its type to
4731 'enum thread_state'. Update comments.
4732
034f788c
PA
47332014-06-19 Pedro Alves <palves@redhat.com>
4734
4735 * gdbthread.h (ALL_THREADS): Delete.
4736 (ALL_NON_EXITED_THREADS): New macro.
4737 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
4738 instead of ALL_THREADS.
4739 * infrun.c (find_thread_needs_step_over)
4740 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
4741 instead of ALL_THREADS.
4742 * record-btrace.c (record_btrace_open)
4743 (record_btrace_stop_recording, record_btrace_close)
4744 (record_btrace_is_replaying, record_btrace_resume)
4745 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
4746 * remote.c (append_pending_thread_resumptions): Likewise.
4747 * thread.c (thread_apply_all_command): Likewise.
4748
46e33252
GB
47492014-06-19 Gary Benson <gbenson@redhat.com>
4750
4751 * i386-nat.c (i386_stopped_by_watchpoint):
4752 Use i386_dr_stopped_by_watchpoint.
4753 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
4754 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
4755
3a8ee006
GB
47562014-06-19 Gary Benson <gbenson@redhat.com>
4757
4758 * nat/i386-dregs.c: New file.
4759 * Makefile.in (i386-dregs.o): New rule.
4760 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
4761 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
4762 * config/i386/darwin.mh (NATDEPFILES): Likewise.
4763 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
4764 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
4765 * config/i386/go32.mh (NATDEPFILES): Likewise.
4766 * config/i386/linux.mh (NATDEPFILES): Likewise.
4767 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4768 * config/i386/mingw.mh (NATDEPFILES): Likewise.
4769 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
4770 * i386-nat.h (debug_hw_points): New declaration.
4771 * i386-nat.c (breakpoint.h): Remove include.
4772 (command.h): Likewise.
4773 (target.h): Likewise.
4774 (gdb_assert.h): Likewise.
4775 (debug_hw_points): Made nonstatic.
4776 (debug_printf): Now in i386-dregs.c.
4777 (TARGET_HAS_DR_LEN_8): Likewise.
4778 (DR_CONTROL_SHIFT): Likewise.
4779 (DR_CONTROL_SIZE): Likewise.
4780 (DR_RW_EXECUTE): Likewise.
4781 (DR_RW_WRITE): Likewise.
4782 (DR_RW_READ): Likewise.
4783 (DR_RW_IORW): Likewise.
4784 (DR_LEN_1): Likewise.
4785 (DR_LEN_2): Likewise.
4786 (DR_LEN_4): Likewise.
4787 (DR_LEN_8): Likewise.
4788 (DR_LOCAL_ENABLE_SHIFT): Likewise.
4789 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
4790 (DR_ENABLE_SIZE): Likewise.
4791 (DR_LOCAL_SLOWDOWN): Likewise.
4792 (DR_GLOBAL_SLOWDOWN): Likewise.
4793 (DR_CONTROL_RESERVED): Likewise.
4794 (I386_DR_CONTROL_MASK): Likewise.
4795 (I386_DR_VACANT): Likewise.
4796 (I386_DR_LOCAL_ENABLE): Likewise.
4797 (I386_DR_GLOBAL_ENABLE): Likewise.
4798 (I386_DR_DISABLE): Likewise.
4799 (I386_DR_SET_RW_LEN): Likewise.
4800 (I386_DR_GET_RW_LEN): Likewise.
4801 (I386_DR_WATCH_HIT): Likewise.
4802 (i386_wp_op_t): Likewise.
4803 (i386_show_dr): Likewise.
4804 (i386_length_and_rw_bits): Likewise.
4805 (i386_insert_aligned_watchpoint): Likewise.
4806 (i386_remove_aligned_watchpoint): Likewise.
4807 (i386_handle_nonaligned_watchpoint): Likewise.
4808 (i386_update_inferior_debug_regs): Likewise.
4809 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
4810 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
4811 (i386_region_ok_for_watchpoint):
4812 Use i386_dr_region_ok_for_watchpoint.
4813 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
4814
322a8e06
GB
48152014-06-19 Gary Benson <gbenson@redhat.com>
4816
4817 * i386-nat.c (i386_insert_hw_breakpoint): Use
4818 i386_insert_watchpoint.
4819 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
4820
8f26655c
GB
48212014-06-19 Gary Benson <gbenson@redhat.com>
4822
4823 * i386-nat.c (i386_dr_show): Renamed to
4824 i386_show_dr and made static. All uses updated.
4825 (i386_dr_length_and_rw_bits): Renamed to
4826 i386_length_and_rw_bits and made static.
4827 All uses updated.
4828 (i386_dr_insert_aligned_watchpoint): Renamed to
4829 i386_insert_aligned_watchpoint and made static.
4830 All uses updated.
4831 (i386_dr_remove_aligned_watchpoint): Renamed to
4832 i386_remove_aligned_watchpoint and made static.
4833 All uses updated.
4834 (i386_dr_update_inferior_debug_regs): Renamed to
4835 i386_update_inferior_debug_regs and made static.
4836 All uses updated.
4837 * nat/i386-dregs.h (i386_dr_show): Removed.
4838 (i386_dr_length_and_rw_bits): Likewise.
4839 (i386_dr_insert_aligned_watchpoint): Likewise.
4840 (i386_dr_remove_aligned_watchpoint): Likewise.
4841 (i386_dr_update_inferior_debug_regs): Likewise.
4842
992c7d70
GB
48432014-06-19 Gary Benson <gbenson@redhat.com>
4844
4845 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
4846 * configure: Regenerate.
4847 * config.in: Likewise.
4848 * main.c (signal.h): New include.
4849 (setup_alternate_signal_stack): New function.
4850 (captured_main): Call the above.
4851 * cp-support.c (signal.h): New include.
4852 (catch_demangler_crashes): New flag.
4853 (SIGJMP_BUF): New define.
4854 (SIGSETJMP): Likewise.
4855 (SIGLONGJMP): Likewise.
4856 (gdb_demangle_jmp_buf): New static global.
4857 (gdb_demangle_attempt_core_dump): Likewise.
4858 (gdb_demangle_signal_handler): New function.
4859 (gdb_demangle): If catch_demangler_crashes is set, install the
4860 above signal handler before calling bfd_demangle, and restore
4861 the original signal handler afterwards. Display the offending
4862 symbol and call demangler_warning the first time a segmentation
4863 fault is caught.
4864 (_initialize_cp_support): New maint set/show command.
4865
eae7090b
GB
48662014-06-19 Gary Benson <gbenson@redhat.com>
4867
4868 * utils.h (resource_limit_kind): New enum.
4869 (can_dump_core): New declaration.
4870 (warn_cant_dump_core): Likewise.
4871 (dump_core): Likewise.
4872 * utils.c (dump_core): Made nonstatic. Added new
4873 parameter "limit_kind".
4874 (can_dump_core): Made nonstatic. Moved printing code to...
4875 (warn_cant_dump_core): New function.
4876 (can_dump_core_warn): Likewise.
4877 (internal_vproblem): Replace calls to can_dump_core with
4878 calls to can_dump_core_warn. Supply new argument to each.
4879
57fcfb1b
GB
48802014-06-19 Gary Benson <gbenson@redhat.com>
4881
4882 * utils.h (demangler_vwarning): New declaration.
4883 (demangler_warning): Likewise.
4884 * utils.c (struct internal_problem)
4885 <user_settable_should_quit>: New field.
4886 <user_settable_should_dump_core>: Likewise
4887 (internal_error_problem): Add values for above new fields.
4888 (internal_warning_problem): Likewise.
4889 (demangler_warning_problem): New static global.
4890 (demangler_vwarning): New function.
4891 (demangler_warning): Likewise.
4892 (add_internal_problem_command): Selectively add commands.
4893 (_initialize_utils): New internal problem command.
4894 * maint.c (maintenance_demangler_warning): New function.
4895 (_initialize_maint_cmds): New command.
4896
17a40b44
TT
48972014-06-18 Tom Tromey <tromey@redhat.com>
4898
4899 * f-valprint.c (info_common_command_for_block): Update.
4900 * symtab.h (struct general_symbol_info) <common_block>: Now
4901 const.
4902
346d1dfe
TT
49032014-06-18 Tom Tromey <tromey@redhat.com>
4904
4905 * symtab.h (struct symtab) <blockvector>: Now const.
4906 * ada-lang.c (ada_add_global_exceptions): Update.
4907 * buildsym.c (augment_type_symtab): Update.
4908 * dwarf2read.c (dw2_lookup_symbol): Update.
4909 * jit.c (finalize_symtab): Update.
4910 * jv-lang.c (add_class_symtab_symbol): Update.
4911 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
4912 Update.
4913 * objfiles.c (objfile_relocate1): Update.
4914 * psymtab.c (lookup_symbol_aux_psymtabs)
4915 (maintenance_check_psymtabs): Update.
4916 * python/py-symtab.c (stpy_global_block, stpy_static_block):
4917 Update.
4918 * spu-tdep.c (spu_catch_start): Update.
4919 * symmisc.c (dump_symtab_1): Update.
4920 * symtab.c (lookup_global_symbol_from_objfile)
4921 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
4922 (basic_lookup_transparent_type_quick)
4923 (basic_lookup_transparent_type, find_pc_sect_symtab)
4924 (find_pc_sect_line, search_symbols): Update.
4925 * block.c (find_block_in_blockvector): Make "bl" const.
4926 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
4927 const.
4928 (blockvector_contains_pc): Make "bv" const.
4929 (block_for_pc_sect): Update.
4930 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
4931 (blockvector_contains_pc): Update.
4932 * breakpoint.c (resolve_sal_pc): Update.
4933 * inline-frame.c (block_starting_point_at): Update.
4934
1834676b
TT
49352014-06-18 Tom Tromey <tromey@redhat.com>
4936
4937 * completer.c (complete_line): Make "line_buffer" const.
4938 * completer.h (complete_line): Update.
4939
ac1a991b
TT
49402014-06-18 Tom Tromey <tromey@redhat.com>
4941
4942 * symtab.c (add_macro_name): Remove unneeded cast.
4943
5bc98e52
TT
49442014-06-18 Tom Tromey <tromey@redhat.com>
4945
4946 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
4947 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
4948
8236def8
TT
49492014-06-18 Tom Tromey <tromey@redhat.com>
4950
4951 * probe.c (info_probes_for_ops): Make "arg" const.
4952 * probe.h (info_probes_for_ops): Update.
4953
3977b71f
TT
49542014-06-18 Tom Tromey <tromey@redhat.com>
4955
4956 * varobj.c (varobj_create): Update.
4957 * valops.c (value_of_this): Update.
4958 * tracepoint.c (add_local_symbols, scope_info): Update.
4959 * symtab.h (struct general_symbol_info) <block>: Now const.
4960 * symtab.c (skip_prologue_sal)
4961 (default_make_symbol_completion_list_break_on)
4962 (skip_prologue_using_sal): Update.
4963 * stack.h (iterate_over_block_locals)
4964 (iterate_over_block_local_vars): Update.
4965 * stack.c (print_frame_args): Update.
4966 (iterate_over_block_locals, iterate_over_block_local_vars): Make
4967 parameter const.
4968 (get_selected_block): Make return type const.
4969 * python/py-frame.c (frapy_block): Update.
4970 * python/py-block.c (gdbpy_block_for_pc): Update.
4971 * p-exp.y (%union) <bval>: Now const.
4972 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
4973 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
4974 * m2-exp.y (%union) <bval>: Now const.
4975 * linespec.c (get_current_search_block): Make return type const.
4976 (create_sals_line_offset, find_label_symbols): Update.
4977 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
4978 Update.
4979 (block_starting_point_at): Make "block" const.
4980 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
4981 (check_exception_resume): Update.
4982 * guile/scm-frame.c (gdbscm_frame_block): Update.
4983 * guile/scm-block.c (gdbscm_lookup_block): Update.
4984 * frame.h (get_frame_block): Update.
4985 (get_selected_block): Make return type const.
4986 * frame.c (frame_id_inner): Update.
4987 * f-valprint.c (info_common_command_for_block)
4988 (info_common_command): Update.
4989 * dwarf2loc.c (dwarf2_find_location_expression)
4990 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
4991 (locexpr_describe_location_piece): Update.
4992 * c-exp.y (%union) <bval>: Now const.
4993 * breakpoint.c (resolve_sal_pc): Update.
4994 * blockframe.c (get_frame_block):Make return type const.
4995 (get_pc_function_start, get_frame_function, find_pc_sect_function)
4996 (block_innermost_frame): Update.
4997 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
4998 (block_for_pc, block_for_pc_sect): Update.
4999 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
5000 'pblock' const.
5001 (block_for_pc_sect, block_for_pc): Make return type const.
5002 * ax-gdb.c (gen_expr): Update.
5003 * alpha-mdebug-tdep.c (find_proc_desc): Update.
5004 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
5005 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
5006 (ada_read_var_value): Update.
5007 * ada-exp.y (struct name_info) <block>: Now const.
5008 (%union): Likewise.
5009 (block_lookup): Constify.
5010
b9228891
GB
50112014-06-18 Gary Benson <gbenson@redhat.com>
5012
5013 * nat/i386-dregs.h: New file.
5014 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
5015 * i386-nat.h (i386-dregs.h): New include.
5016 (DR_FIRSTADDR): Now in i386-dregs.h.
5017 (DR_LASTADDR): Likewise.
5018 (DR_NADDR): Likewise.
5019 (DR_STATUS): Likewise.
5020 (DR_CONTROL): Likewise.
5021 (i386_debug_reg_state): Likewise.
5022 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
5023
a1aa2221
LM
50242014-06-18 Don Breazeal <donb@codesourcery.com>
5025
5026 * breakpoint.c (set_longjmp_breakpoint): Call
5027 momentary_breakpoint_from_master with additional argument.
5028 (set_longjmp_breakpoint_for_call_dummy): Call
5029 momentary_breakpoint_from_master with additional argument.
5030 (set_std_terminate_breakpoint): Call
5031 momentary_breakpoint_from_master with additional argument.
5032 (momentary_breakpoint_from_master): Add argument to function
5033 definition and use it to initialize structure member flag.
74228e77 5034 (clone_momentary_breakpoint): Call
a1aa2221
LM
5035 momentary_breakpoint_from_master with additional argument.
5036 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
5037 member flags set in momentary_breakpoint_from_master.
5038
4be83cc2
GB
50392014-06-18 Gary Benson <gbenson@redhat.com>
5040
5041 * i386-nat.c (i386_show_dr): Renamed to
5042 i386_dr_show and made nonstatic. All uses updated.
5043 (i386_length_and_rw_bits): Renamed to
5044 i386_dr_length_and_rw_bits and made nonstatic.
5045 All uses updated.
5046 (i386_insert_aligned_watchpoint): Renamed to
5047 i386_dr_insert_aligned_watchpoint and made nonstatic.
5048 All uses updated.
5049 (i386_remove_aligned_watchpoint): Renamed to
5050 i386_dr_remove_aligned_watchpoint and made nonstatic.
5051 All uses updated.
5052 (i386_update_inferior_debug_regs): Renamed to
5053 i386_dr_update_inferior_debug_regs and made nonstatic.
5054 All uses updated.
5055
131aa0d4
GB
50562014-06-18 Gary Benson <gbenson@redhat.com>
5057
5058 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
5059 (i386_dr_low_can_set_control): Likewise.
5060 (i386_dr_low_set_addr): Likewise.
5061 (i386_dr_low_set_control): Likewise.
5062 (i386_dr_low_get_addr): Likewise.
5063 (i386_dr_low_get_status): Likewise.
5064 (i386_dr_low_get_control): Likewise.
5065 (i386_insert_aligned_watchpoint): Use new macros.
5066 (i386_update_inferior_debug_regs): Likewise.
5067 (i386_stopped_data_address): Likewise.
5068
d9305f7f
GB
50692014-06-18 Gary Benson <gbenson@redhat.com>
5070
5071 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
5072 New parameter. All uses updated.
5073
ea008da4
GB
50742014-06-18 Gary Benson <gbenson@redhat.com>
5075
5076 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
5077 All uses updated.
5078
1b6d4134
GB
50792014-06-18 Gary Benson <gbenson@redhat.com>
5080
5081 * i386-nat.c (debug_printf): New macro.
5082 (i386_get_debug_register_length): Likewise.
5083 (TARGET_HAS_DR_LEN_8): Use above macro.
5084 (i386_show_dr): Use debug_printf instead of puts_unfiltered
5085 and printf_unfiltered. Use phex to format values.
5086
9b4550ef
GB
50872014-06-18 Gary Benson <gbenson@redhat.com>
5088
5089 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
5090 Make const.
5091
6e62758f
GB
50922014-06-18 Gary Benson <gbenson@redhat.com>
5093
5094 * i386-nat.c: Comment changes.
5095
51c79e94
GB
50962014-06-18 Gary Benson <gbenson@redhat.com>
5097
5098 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
5099
3e11889a
GB
51002014-06-18 Gary Benson <gbenson@redhat.com>
5101
5102 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
5103 (i386_insert_aligned_watchpoint): Likewise.
5104 (i386_remove_aligned_watchpoint): Likewise.
5105 (i386_handle_nonaligned_watchpoint): Likewise.
5106
fc6e2f03
GB
51072014-06-18 Gary Benson <gbenson@redhat.com>
5108
5109 * i386-nat.c: Whitespace changes.
5110
2afe7d50
SB
51112014-06-17 Samuel Bronson <naesten@gmail.com>
5112
5113 * MAINTAINERS: Update Roland McGrath's email address.
5114 Thanks to Sergio Durigan Junior for pointing out that he left
6a83deea 5115 Red Hat a while ago, and giving me a current address.
2afe7d50 5116
3bca49ee
TT
51172014-06-17 Tom Tromey <tromey@redhat.com>
5118
5119 * utils.h (savestring): Remove declaration.
5120
6e366df1
TT
51212014-06-17 Tom Tromey <tromey@redhat.com>
5122
5123 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
5124
6be47f0c
KS
51252014-06-16 Keith Seitz <keiths@redhat.com>
5126
5127 PR mi/15863
5128 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
5129 to update the varobj if inferior_ptid is null_ptid.
5130
7bc112c1
TT
51312014-06-16 Tom Tromey <tromey@redhat.com>
5132
5133 * target.h (struct target_ops) <to_info_proc>: Make parameter
5134 const.
5135 (target_info_proc): Update.
5136 * target.c (target_info_proc): Make "args" const.
5137 * procfs.c (procfs_info_proc): Update.
5138 * linux-tdep.c (linux_info_proc): Update.
5139 (linux_core_info_proc_mappings): Make "args" const.
5140 (linux_core_info_proc): Update.
5141 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
5142 * gdbarch.c: Rebuild.
5143 * gdbarch.h: Rebuild.
5144 * corelow.c (core_info_proc): Update.
5145
fee354ee
TT
51462014-06-16 Tom Tromey <tromey@redhat.com>
5147
5148 * target.h (struct target_ops) <to_disconnect>: Make parameter
5149 const.
5150 (target_disconnect): Update.
5151 * target.c (target_disconnect): Make "args" const.
5152 * target-delegates.c: Rebuild.
5153 * remote.c (remote_disconnect): Update.
5154 * record.h (record_disconnect): Update.
5155 * record.c (record_disconnect): Update.
5156 * inf-child.c (inf_child_disconnect): Update.
5157
a30bf1f1
TT
51582014-06-16 Tom Tromey <tromey@redhat.com>
5159
5160 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
5161 * target.c (debug_to_rcmd, default_rcmd): Update.
5162 * target-delegates.c: Rebuild.
5163 * remote.c (remote_rcmd): Update.
5164 * monitor.c (monitor_rcmd): Update.
5165
d03de421
PA
51662014-06-16 Pedro Alves <palves@redhat.com>
5167
5168 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
5169 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
5170 have OBJF_SHARED set.
5171 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
5172 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
5173 instead of OBJF_USERLOADED.
5174 * objfiles.h (OBJF_SHARED): Update comment.
5175 (userloaded_objfile_contains_address_p): Rename to ...
5176 (shared_objfile_contains_address_p): ... this, and update
5177 comments.
5178 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
5179 new objfile.
5180 (remove_symbol_file_command): Skip objfiles that don't have
5181 OBJF_SHARED set.
5182
99f4262f
TT
51832014-06-16 Tom Tromey <tromey@redhat.com>
5184
5185 * minsyms.h (prim_record_minimal_symbol)
5186 (prim_record_minimal_symbol_and_info): Update comments.
5187
97d66cc6
EZ
51882014-06-14 Eli Zaretskii <eliz@gnu.org>
5189
5190 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
5191 or --without-guile, according to how GDB was built.
5192
635c7e8a
TT
51932014-06-13 Tom Tromey <tromey@redhat.com>
5194
5195 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
5196 to help_list.
5197 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
5198 to help_list.
5199 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
5200 help_list.
5201 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
5202 help_list.Pass all_commands, not -1, to help_list.
5203 * cli/cli-dump.c (dump_command, append_command)
5204 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
5205 (binary_dump_command, binary_append_command): Pass all_commands,
5206 not -1, to help_list.
5207 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
5208 -1, to help_list.
5209 * valprint.c (set_print, set_print_raw): Pass all_commands, not
5210 -1, to help_list.
5211 * typeprint.c (set_print_type): Pass all_commands, not -1, to
5212 help_list.
5213 * top.c (set_history): Pass all_commands, not -1, to help_list.
5214 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
5215 all_commands, not -1, to help_list.
5216 * symfile.c (overlay_command): Pass all_commands, not -1, to
5217 help_list.
5218 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
5219 help_list.
5220 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
5221 help_list.
5222 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
5223 -1, to help_list.
5224 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
5225 not -1, to help_list.
5226 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
5227 not -1, to help_list.
5228 * maint.c (maintenance_command, maintenance_info_command)
5229 (maintenance_print_command, maintenance_set_cmd): Pass
5230 all_commands, not -1, to help_list.
5231 * macrocmd.c (macro_command): Pass all_commands, not -1, to
5232 help_list.
5233 * language.c (set_check): Pass all_commands, not -1, to help_list.
5234 * infcmd.c (unset_command): Pass all_commands, not -1, to
5235 help_list.
5236 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
5237 help_list.
5238 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
5239 help_list.
5240 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
5241 help_list.
5242 * breakpoint.c (save_command): Pass all_commands, not -1, to
5243 help_list.
5244 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
5245 all_commands, not -1, to help_list.
5246
b94ade42
PL
52472014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
5248
5249 * regcache.c (struct register_to_invalidate): New structure.
5250 (do_register_invalidate, make_cleanup_regcache_invalidate): New
5251 functions.
5252 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
5253
31f628ae
YQ
52542014-06-12 Yao Qi <yao@codesourcery.com>
5255
5256 * varobj.c (varobj_get_num_children): Call
5257 varobj_is_dynamic_p.
5258 (varobj_list_children): Likewise.
5259 (varobj_update): Likewise. Update comments.
5260
cde5ef40
YQ
52612014-06-12 Yao Qi <yao@codesourcery.com>
5262
5263 * varobj.c (varobj_pretty_printed_p): Rename to ...
5264 (varobj_is_dynamic_p): ... this. New function.
5265 * varobj.h (varobj_pretty_printed_p): Remove declaration.
5266 (varobj_is_dynamic_p): Declare.
5267 * mi/mi-cmd-var.c (print_varobj): All callers updated.
5268 (mi_print_value_p, varobj_update_one): Likewise.
5269
576ea091
YQ
52702014-06-12 Pedro Alves <pedro@codesourcery.com>
5271 Yao Qi <yao@codesourcery.com>
5272
5273 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
5274 (varobj_get_iterator): Wrap up code for pretty-printer by
5275 "#if HAVE_PYTHON" and "#endif".
5276 (update_dynamic_varobj_children): Likewise.
5277
827f100c
YQ
52782014-06-12 Pedro Alves <pedro@codesourcery.com>
5279 Yao Qi <yao@codesourcery.com>
5280
5281 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
5282 gdb_python_initialized is false. Move some code from varobj.c.
5283 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
5284 * varobj.c: Move "varobj-iter.h" inclusion earlier.
5285 (struct varobj_item): Moved to varobj-iter.h".
5286 (varobj_clear_saved_item): New function.
5287 (update_dynamic_varobj_children): Move python-related code to
5288 py-varobj.c.
5289 (free_variable): Call varobj_clear_saved_item and
5290 varobj_iter_delete.
5291
e5250216
YQ
52922014-06-12 Pedro Alves <pedro@codesourcery.com>
5293 Yao Qi <yao@codesourcery.com>
5294
5295 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
5296 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
5297 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
5298 (py-varobj.o): New rule.
5299 * python/py-varobj.c: New file.
5300 * python/python-internal.h (py_varobj_get_iterator): Declare.
5301 * varobj-iter.h: New file.
5302 * varobj.c: Include "varobj-iter.h"
5303 (struct varobj) <child_iter>: Change its type from "PyObject *"
5304 to "struct varobj_iter *".
5305 <saved_item>: Likewise.
5306 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
5307 [HAVE_PYTHON] (varobj_get_iterator): New function.
5308 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
5309 python-specific code to python/py-varobj.c.
5310 (install_visualizer): Call varobj_iter_delete instead of
5311 Py_XDECREF.
5312 * varobj.h (varobj_ensure_python_env): Declare.
5313
5a2e0d6e
YQ
53142014-06-12 Yao Qi <yao@codesourcery.com>
5315
5316 * varobj.c (struct varobj_item): New structure.
5317 (create_child_with_value): Update declaration.
5318 (varobj_add_child): Replace arguments 'name' and 'value' with
5319 'item'. All callers updated.
5320 (install_dynamic_child): Likewise.
5321 (update_dynamic_varobj_children): Likewise.
5322 (varobj_add_child): Likewise.
5323 (create_child_with_value): Likewise.
5324
919b9a93
JB
53252014-06-11 Joel Brobecker <brobecker@adacore.com>
5326
5327 * NEWS: Create a new section for the next release branch.
5328 Rename the section of the current branch, now that it has
5329 been cut.
5330
71a55bdf
JB
53312014-06-11 Joel Brobecker <brobecker@adacore.com>
5332
5333 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
5334 * version.in: Bump version to 7.8.50.DATE-cvs.
5335
364fe1f7
PA
53362014-06-11 Pedro Alves <palves@redhat.com>
5337
5338 PR remote/17028
5339 * ser-mingw.c (net_windows_socket_check_pending): New function.
5340 (net_windows_select_thread): Ignore spurious wakeups. Use
5341 net_windows_socket_check_pending.
5342 (net_windows_wait_handle): Check for pending events with
5343 ioctlsocket, through net_windows_socket_check_pending, instead of
5344 checking the socket's event.
5345
5a6c7709
SC
53462014-06-10 Siva Chandra Reddy <sivachandra@google.com>
5347
5348 * python/python-internal.h (gdb_PyObject_GetAttrString)
5349 (gdb_PyObject_HasAttrString): New inline function definitions.
5350 * py-value.c (get_field_flag): Remove the now unnecessary cast to
5351 char * of the second argument to PyObject_GetAttrString.
74228e77 5352
0e58ee40
JB
53532014-06-10 Joel Brobecker <brobecker@adacore.com>
5354
5355 * serial.c (serial_write): Fix index of character to be printed
5356 in call to serial_logchar when serial debug traces are enabled.
5357
d190df30
JB
53582014-06-10 Joel Brobecker <brobecker@adacore.com>
5359
5360 * gdbtypes (resolve_dynamic_range): Add function description.
5361
b4b01d36
PA
53622014-06-09 Pedro Alves <palves@redhat.com>
5363
5364 * linux-nat.c (linux_child_follow_fork): Initialize status with
5365 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
5366 inner block. Only pass the signal to PTRACE_DETACH if in pass
5367 state.
5368
3657956b
GB
53692014-06-09 Gary Benson <gbenson@redhat.com>
5370
5371 * common/signals.c (gdb_signal_from_host): Reorder to separate
5372 the always-available ANSI-standard signals from the signals that
5373 require checking.
5374 (do_gdb_signal_to_host): Likewise.
5375 * proc-events.c (signal_table): Likewise.
5376
c077881a
HZ
53772014-06-08 Hui Zhu <hui@codesourcery.com>
5378
5379 * common/linux-ptrace.c (linux_disable_event_reporting): New
5380 function.
5381 * common/linux-ptrace.h (linux_disable_event_reporting): New
5382 declaration.
5383 * linux-nat.c (linux_child_follow_fork): Do a single step before
5384 detach.
5385
4186eb54
KS
53862014-06-07 Keith Seitz <keiths@redhat.com>
5387
5388 Revert:
5389 PR c++/16253
5390 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5391 from symbol_matches_domain in symtab.c. All local callers
5392 of symbol_matches_domain updated.
5393 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5394 search STRUCT_DOMAIN.
5395 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5396 independently. standard_lookup will do that automatically.
5397 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5398 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5399 (cp_lookup_symbol_in_namespace): Likewise.
5400 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5401 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5402 may return a STRUCT_DOMAIN match.
5403 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5404 * cp-support.c: Include language.h.
5405 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5406 VAR_DOMAIN.
5407 * psymtab.c (match_partial_symbol): Compare the requested
5408 domain with the symbol's domain directly.
5409 (lookup_partial_symbol): Likewise.
5410 * symtab.c (lookup_symbol_in_language): Explain when/why
5411 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5412 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5413 appropriate languages.
5414 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5415 and moved to ada-lang.c
5416 (lookup_block_symbol): Explain that this function only returns
5417 symbol matching the requested DOMAIN.
5418 Compare the requested domain with the symbol's domain directly.
5419 (iterate_over_symbols): Compare the requested domain with the
5420 symbol's domain directly.
5421 * symtab.h (symbol_matches_domain): Remove.
5422
25326a28 54232014-06-06 Doug Evans <xdje42@gmail.com>
d2929fdc
DE
5424
5425 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
5426 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
5427 (gdbscm_guile_version_is_at_least): Declare.
5428 (gdbscm_scm_string_to_int): Declare.
5429 * guile/guile.c (gdbscm_guile_major_version): New global.
5430 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
5431 (guile_datadir): New static global.
5432 (gdbscm_guile_data_directory): New function.
5433 (initialize_scheme_side): Update.
5434 (misc_guile_functions): Add guile-data-directory.
5435 (initialize_gdb_module): Fetch guile version number.
5436 * guile/lib/gdb.scm: Remove call to add-to-load-path.
5437 * guile/lib/gdb/init.scm (%initialize!): Ditto.
5438 * guile/lib/gdb/boot.scm: Use guile-data-directory.
5439 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
5440 comments.
5441 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
5442 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
5443 * guile/scm-value.c (gdbscm_value_to_string): Only call
5444 scm_port_conversion_strategy if Guile version >= 2.0.6.
5445
0a770bb2 54462014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
5447
5448 * main.c (print_gdb_help): Add -q and --silent.
5449
73ba372c
GB
54502014-06-06 Gary Benson <gbenson@redhat.com>
5451
5452 * common/signals.c: Remove preprocessor conditionals for
5453 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
5454 SIGSEGV and SIGTERM.
5455 * proc-events.c: Likewise.
5456
c33b2f12
MM
54572014-06-06 Markus Metzger <markus.t.metzger@intel.com>
5458
5459 * symfile.c (symfile_free_objfile): Remove restriction to
5460 OBJF_USERLOADED.
5461 * symfile-mem.c (symbol_file_add_from_memory): Call
5462 add_target_sections_of_objfile.
5463
fb934770
LC
54642014-06-05 Ludovic Courtès <ludo@gnu.org>
5465
5466 * guile/scm-value.c (gdbscm_history_append_x): Use
5467 'vlscm_get_value_smob_arg_unsafe' instead of
5468 'vlscm_scm_to_value'.
5469
6ef284bd
SM
54702014-06-05 Simon Marchi <simon.marchi@ericsson.com>
5471
5472 PR mi/15806
5473 * utils.c (printchar): Don't escape at all if quoter is NUL.
5474 Update function documentation to clarify effect of parameter
5475 QUOTER.
5476 * remote.c (escape_buffer): Pass '\\' as the quoter to
5477 fputstrn_unfiltered.
5478 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
5479 generate the output.
5480 (mi_solib_unloaded): Same.
5481
270c9937
JB
54822014-06-05 Joel Brobecker <brobecker@adacore.com>
5483
5484 * development.sh: Delete.
5485 * Makefile.in (config.status): Adjust dependency on development.sh.
5486 * configure.ac: Adjust development.sh source call.
5487 * configure: Regenerate.
5488
16f691fb
DE
54892014-06-04 Doug Evans <xdje42@gmail.com>
5490
5491 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
5492 is_scheme_bkpt, spec.
5493 (bpscm_make_breakpoint_smob): Initialize new members.
5494 (gdbscm_create_breakpoint_x): Split into two ...
5495 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
5496 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
5497 (scheme_function breakpoint_functions): Update.
5498 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
5499 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
5500 register-breakpoint!.
5501
ef7cab6b
JB
55022014-06-04 Joel Brobecker <brobecker@adacorer.com>
5503
5504 PR server/17023
5505 * mem-break.c (z_type_supported): Return zero if
5506 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
5507
012370f6
TT
55082014-06-04 Tom Tromey <tromey@redhat.com>
5509
5510 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
5511 value_from_contents_and_address_unresolved.
5512 (ada_template_to_fixed_record_type_1): Likewise.
5513 (ada_which_variant_applies): Likewise.
5514 * value.h (value_from_contents_and_address_unresolved): Declare.
5515 * value.c (value_from_contents_and_address_unresolved): New
5516 function.
5517 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
5518 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
5519 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
5520
92e2a17f
TT
55212014-06-04 Tom Tromey <tromey@redhat.com>
5522
5523 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
5524
c0939df1
TT
55252014-06-04 Tom Tromey <tromey@redhat.com>
5526
5527 * procfs.c (procfs_attach): Make "args" const.
5528 * windows-nat.c (windows_attach): Make "args" const.
5529 * nto-procfs.c (procfs_attach): Make "args" const.
5530 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
5531 * go32-nat.c (go32_attach): Make "args" const.
5532 * gnu-nat.c (gnu_attach): Make "args" const.
5533 * darwin-nat.c (darwin_attach): Make "args" const.
5534 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
5535 * linux-nat.c (linux_nat_attach): Make "args" const.
5536 * remote.c (extended_remote_attach_1, extended_remote_attach):
5537 Make "args" const.
5538 * target.h (struct target_ops) <to_attach>: Make "args" const.
5539 (find_default_attach): Likewise.
5540 * utils.c (parse_pid_to_attach): Make "args" const.
5541 * utils.h (parse_pid_to_attach): Update.
5542
8eaff7cd
TT
55432014-06-04 Tom Tromey <tromey@redhat.com>
5544
5545 * target-delegates.c: Rebuild.
5546 * target.c (default_thread_address_space): New function.
5547 (target_thread_address_space): Simplify.
5548 * target.h (struct target_ops) <to_thread_address_space>: Add
5549 TARGET_DEFAULT_FUNC.
5550
1913f160
DE
55512014-06-04 Doug Evans <xdje42@gmail.com>
5552
5553 * guile/scm-type.c (type_smob): Remove duplicate typedef.
5554
70ad5bff
MM
55552014-06-04 Markus Metzger <markus.t.metzger@intel.com>
5556
5557 * record-btrace.c: Include event-loop.h and inf-loop.h.
5558 (record_btrace_resume_exec_dir)
5559 (record_btrace_async_inferior_event_handler)
5560 (record_btrace_handle_async_inferior_event): New.
5561 (record_btrace_open): Create async event handler.
5562 (record_btrace_close): Delete async event handler.
5563 (record_btrace_resume): Set record_btrace_resume_exec_dir,
5564 Mark async event handler.
5565 (record_btrace_execution_direction): New.
5566 (init_record_btrace_ops): Initialize to_execution_direction.
5567
b6210538
DE
55682014-06-03 Doug Evans <xdje42@gmail.com>
5569
5570 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
5571 (gdbscm_make_parameter): Ditto.
5572
a5b1fd27
DE
55732014-06-03 Doug Evans <dje@google.com>
5574
5575 * exec.c (exec_close_1): Call clear_section_table instead of
5576 resize_section_table.
5577 (clear_section_table): New function.
5578 (resize_section_table): Make static. Rename arg num_added to
5579 adjustment.
5580 * exec.h (clear_section_table): Declare.
5581 (resize_section_table): Delete.
5582 * progspace.c (release_program_space): Call clear_section_table
5583 instead of resize_section_table.
5584
0c6e92a5
SC
55852014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5586
5587 * NEWS (Python Scripting): Add entry about the new xmethods
5588 feature.
5589
883964a7
SC
55902014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5591
5592 * python/py-xmethods.c: New file.
5593 * python/py-objfile.c (objfile_object): New field 'xmethods'.
5594 (objfpy_dealloc): XDECREF on the new xmethods field.
5595 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
5596 field.
5597 (objfpy_get_xmethods): New function.
5598 (objfile_getset): New entry 'xmethods'.
5599 * python/py-progspace.c (pspace_object): New field 'xmethods'.
5600 (pspy_dealloc): XDECREF on the new xmethods field.
5601 (pspy_new, pspace_to_pspace_object): Initialize xmethods
5602 field.
5603 (pspy_get_xmethods): New function.
5604 (pspace_getset): New entry 'xmethods'.
5605 * python/python-internal.h: Add declarations for new functions.
5606 * python/python.c (_initialize_python): Invoke
5607 gdbpy_initialize_xmethods.
5608 * python/lib/gdb/__init__.py (xmethods): New
5609 attribute.
5610 * python/lib/gdb/xmethod.py: New file.
5611 * python/lib/gdb/command/xmethods.py: New file.
5612
58992dc5
SC
56132014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5614
5615 * eval.c (evaluate_subexp_standard): Call the xmethod if the
5616 best match method returned by find_overload_match is an xmethod.
5617 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
5618 the best matching operator returned by find_overload_match is an
5619 xmethod.
5620 * valops.c: #include "extension.h".
5621 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
5622 Return void. The list of matching source methods is returned in
5623 "fn_list" and a vector of matching debug method workers is
5624 returned in "xm_worker_vec". Update all callers.
5625 (value_find_oload_method_list): Likewise.
5626 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
5627 non-NULL, then the index of the best matching method in this
5628 vector is returned. Update all callers.
5629 (find_overload_match): Include xmethods while performing overload
5630 resolution.
5631
e81e7f5e
SC
56322014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5633
5634 * defs.h (enum lval_type): New enumerator "lval_xcallable".
5635 * extension-priv.h (struct extension_language_ops): Add the
5636 xmethod interface.
5637 * extension.c (new_xmethod_worker, clone_xmethod_worker,
5638 get_matching_xmethod_workers, get_xmethod_argtypes,
5639 invoke_xmethod, free_xmethod_worker,
5640 free_xmethod_worker_vec): New functions.
5641 * extension.h: #include "common/vec.h".
5642 New function declarations.
5643 (struct xmethod_worker): New struct.
5644 (VEC (xmethod_worker_ptr)): New vector type.
5645 (xmethod_worker_ptr): New typedef.
5646 (xmethod_worker_vec): Likewise.
5647 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
5648 builtin_type.
5649 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
5650 (struct builtin_type): New field "xmethod".
5651 * valarith.c (value_ptradd): Assert that the value argument is not
5652 lval_xcallable.
5653 * valops.c (value_must_coerce_to_target): Return 0 for
5654 lval_xcallable values.
5655 * value.c (struct value): New field XM_WORKER in the field
5656 LOCATION.
5657 (value_address, value_raw_address): Return 0 for lval_xcallable
5658 values.
5659 (set_value_address): Assert that the value is not an
5660 lval_xcallable.
5661 (value_free): Free the associated xmethod worker when freeing
5662 lval_xcallable values.
5663 (set_value_component_location): Assert that the WHOLE value is not
5664 lval_xcallable.
5665 (value_of_xmethod, call_xmethod): New functions.
5666 * value.h: Declare "struct xmethod_worker".
5667 Declare new functions value_of_xmethod, call_xmethod.
5668
ef370185
JB
56692014-06-03 Joel Brobecker <brobecker@adacore.com>
5670 Pedro Alves <palves@redhat.com>
5671
5672 PR breakpoints/17000
5673 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
5674 New function, extracted from software_breakpoint_inserted_here_p.
5675 (software_breakpoint_inserted_here_p): Replace factored out code
5676 by call to find_non_raw_software_breakpoint_inserted_here.
5677 (bp_target_info_copy_insertion_state): New function.
5678 (bkpt_insert_location): Handle the case of a single-step
5679 breakpoint already inserted at the same address.
5680 (bkpt_remove_location): Handle the case of a single-step
5681 breakpoint still inserted at the same address.
5682 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
5683 breakpoint already inserted at the same address.
5684 (deprecated_remove_raw_breakpoint): Handle the case of a
5685 non-raw breakpoint still inserted at the same address.
5686 (find_single_step_breakpoint): New function, extracted from
5687 single_step_breakpoint_inserted_here_p.
5688 (find_single_step_breakpoint): New function,
5689 factored out from single_step_breakpoint_inserted_here_p.
5690 (single_step_breakpoint_inserted_here_p): Reimplement.
5691
1e2ccb61
BM
56922014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
5693
5694 Pushed by Joel Brobecker <brobecker@adacore.com>
5695 * source.c (show_substitute_path_command): Fix display of matching
5696 substitution rules.
5697
d3448d85
GB
56982014-06-03 Gary Benson <gbenson@redhat.com>
5699
5700 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
5701
06eb1586
DE
57022014-06-02 Doug Evans <xdje42@gmail.com>
5703
5704 Add parameter support for Guile.
5705 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
5706 (SUBDIR_GUILE_SRCS): Add scm-param.c.
5707 (scm-param.o): New rule.
5708 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
5709 (gdbscm_misc_error): Declare.
5710 (gdbscm_canonicalize_command_name): Declare.
5711 (gdbscm_scm_to_host_string): Declare.
5712 (gdbscm_scm_from_host_string): Declare.
5713 (gdbscm_initialize_parameters): Declare.
5714 * guile/guile.c (initialize_gdb_module): Call
5715 gdbscm_initialize_parameters.
5716 * guile/lib/gdb.scm: Export parameter symbols.
5717 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
5718 cmdscm_canonicalize_name and made public. All callers updated.
5719 * guile/scm-exception.c (gdbscm_misc_error): New function.
5720 * guile/scm-param.c: New file.
5721 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
5722 (gdbscm_scm_to_host_string): New function.
5723 (gdbscm_scm_from_host_string): New function.
5724 * scm-utils.c (gdbscm_gc_dup_argv): New function.
5725
e698b8c4
DE
57262014-06-02 Doug Evans <xdje42@gmail.com>
5727
5728 Add command support for Guile.
5729 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
5730 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
5731 (scm-cmd.o): New rule.
5732 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
5733 (gdbscm_user_error_p): Declare.
5734 (gdbscm_parse_command_name): Declare.
5735 (gdbscm_valid_command_class_p): Declare.
5736 (gdbscm_initialize_commands): Declare.
5737 * guile/guile.c (initialize_gdb_module): Call
5738 gdbscm_initialize_commands.
5739 * guile/lib/gdb.scm: Export command symbols.
5740 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
5741 (throw-user-error): New function.
5742 * guile/scm-cmd.c: New file.
5743 * guile/scm-exception.c (user_error_symbol): New static global.
5744 (gdbscm_user_error_p): New function.
5745 (gdbscm_initialize_exceptions): Set user_error_symbol.
5746 * scm-utils.c (gdbscm_gc_xstrdup): New function.
5747
fb1f94b0
PM
57482014-06-02 Phil Muldoon <pmuldoon@redhat.com>
5749
5750 * top.c (command_loop): Handle comments here...
5751 (command_line_input): ... not here.
5752
ded03782
DE
57532014-06-02 Doug Evans <xdje42@gmail.com>
5754
5755 Add progspace support for Guile.
5756 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
5757 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
5758 (scm-progspace.o): New rule.
5759 * guile/guile-internal.h (pspace_smob): New typedef.
5760 (psscm_pspace_smob_pretty_printers): Declare.
5761 (psscm_pspace_smob_from_pspace): Declare.
5762 (psscm_scm_from_pspace): Declare.
5763 * guile/guile.c (initialize_gdb_module): Call
5764 gdbscm_initialize_pspaces.
5765 * guile/lib/gdb.scm: Export progspace symbols.
5766 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
5767 support.
5768 (append-pretty-printer!): Ditto.
5769 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
5770 Implement.
5771 * guile/scm-progspace.c: New file.
5772
397998fc
AM
57732014-06-03 Alan Modra <amodra@gmail.com>
5774
5775 * ppc64-tdep.c (ppc64_standard_linkage8): New.
5776 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
5777
6aa5f3a6
DE
57782014-06-02 Doug Evans <dje@google.com>
5779
5780 Add support for skeletonless type units.
5781 * dwarf2read.c (struct dwarf2_per_objfile): New member
5782 n_allocated_type_units.
5783 (struct dwarf2_per_objfile) <tu_stats>: New member
5784 nr_all_type_units_reallocs.
5785 (create_signatured_type_table_from_index): Initialize
5786 n_allocated_type_units
5787 (create_all_type_units): Ditto.
5788 (add_type_unit): Move up in file. New arg slot.
5789 All callers updated. Increase space for all_type_units more
5790 efficiently.
5791 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
5792 (lookup_dwo_signatured_type): Handle skeletonless TUs.
5793 (lookup_dwp_signatured_type): Ditto.
5794 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
5795 All callers updated.
5796 (build_type_psymtabs_1): Leave type_unit_groups as
5797 NULL if no TUs present.
5798 (print_tu_stats): New function.
5799 (process_skeletonless_type_unit): New function.
5800 (process_dwo_file_for_skeletonless_type_units): New
5801 function.
5802 (process_skeletonless_type_units): New function.
5803 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
5804 Call print tu_stats if debugging enabled.
5805
41fac0cf
PA
58062014-06-02 Pedro Alves <palves@redhat.com>
5807
5808 * breakpoint.c (build_target_command_list): Don't build a command
5809 list if we have any duplicate location that isn't a dprintf.
5810
cd1608cc
PA
58112014-06-02 Pedro Alves <palves@redhat.com>
5812
5813 * breakpoint.c (dprintf_breakpoint_hit): New function.
5814 (initialize_breakpoint_ops): Install it as dprintf's
5815 breakpoint_hit method.
5816
486ef3b9
JB
58172014-06-02 Joel Brobecker <brobecker@adacore.com>
5818
5819 * source.c (substitute_path_rule_matches): Simplify using
5820 filename_ncmp instead of FILENAME_CMP.
5821
230cd560
JB
58222014-06-02 Joel Brobecker <brobecker@adacore.com>
5823
5824 * source.c (substitute_path_rule_matches): Remove trailing spaces.
5825
16954d5d
LC
58262014-06-01 Ludovic Courtès <ludo@gnu.org>
5827
5828 * configure.ac: When Guile is available, check for the
5829 availability of 'scm_new_smob'.
5830 * configure, config.h.in: Regenerate.
5831 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
5832 function.
5833
53e8a631
AB
58342014-05-30 Andrew Burgess <aburgess@broadcom.com>
5835
5836 * frame.c (struct frame_info): Add stop_string field.
5837 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
5838 (get_prev_frame_always): Old content moved into
5839 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
5840 TRY_CATCH, handle MEMORY_ERROR exceptions.
5841 (frame_stop_reason_string): New function definition.
5842 * frame.h (unwind_stop_reason_to_string): Extend comment to
5843 mention frame_stop_reason_string.
5844 (frame_stop_reason_string): New function declaration.
5845 * stack.c (frame_info): Switch to frame_stop_reason_string.
5846 (backtrace_command_1): Switch to frame_stop_reason_string.
5847 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
5848 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
5849 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
5850
70e38b8e
AB
58512014-05-30 Andrew Burgess <aburgess@broadcom.com>
5852
5853 * frame.c (frame_stop_reason_string): Rename to ...
5854 (unwind_stop_reason_to_string): this.
5855 * frame.h (frame_stop_reason_string): Rename to ...
5856 (unwind_stop_reason_to_string): this.
5857 * stack.c (frame_info): Update call to frame_stop_reason_string.
5858 (backtrace_command_1): Likewise.
5859 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
5860 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
5861
938f0e2f
AB
58622014-05-30 Andrew Burgess <aburgess@broadcom.com>
5863
5864 * frame.c (remove_prev_frame): New function.
5865 (get_prev_frame_if_no_cycle): Create / discard cleanup using
5866 remove_prev_frame.
5867
a09dd441
PA
58682014-05-29 Pedro Alves <palves@redhat.com>
5869
5870 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
5871 and make it const. When a single-step decays to a continue,
5872 clear 'step', not 'hw_step'. Pass whether the caller wanted
5873 to step to user_visible_resume_ptid, not what we ask the
5874 target to do.
5875
bdc36728
PA
58762014-05-29 Pedro Alves <palves@redhat.com>
5877
5878 * infrun.c (process_event_stop_test, handle_step_into_function)
5879 (handle_step_into_function_backward): Adjust.
5880 Don't set the even thread's stop_step and call stop_waiting before
5881 calling end_stepping_range. Instead do that ...
5882 (end_stepping_range): ... here. Take an ecs pointer parameter.
5883
22bcd14b
PA
58842014-05-29 Pedro Alves <palves@redhat.com>
5885
5886 * infrun.c (stop_stepping): Rename to ...
5887 (stop_waiting): ... this.
5888 (proceed): Update comment.
5889 (process_event_stop_test, handle_inferior_event)
5890 (handle_signal_stop, handle_step_into_function)
5891 (handle_step_into_function_backward): Update.
5892
4ae57c05
PA
58932014-05-29 Pedro Alves <palves@redhat.com>
5894
5895 * infcall.c (run_inferior_call): Don't check whether the current
5896 thread is running after the proceed call.
5897
329ea579
PA
58982014-05-29 Pedro Alves <palves@redhat.com>
5899 Tom Tromey <tromey@redhat.com>
5900
5901 * NEWS: Mention "maint set target-async", "set mi-async", and that
5902 background execution commands are now always available.
5903 * target.h (target_async_permitted): Update comment.
5904 * target.c (target_async_permitted, target_async_permitted_1):
5905 Default to 1.
5906 (set_target_async_command): Rename to ...
5907 (maint_set_target_async_command): ... this.
5908 (show_target_async_command): Rename to ...
5909 (maint_show_target_async_command): ... this.
5910 (_initialize_target): Adjust.
5911 * infcmd.c (prepare_execution_command): Make extern.
5912 * inferior.h (prepare_execution_command): Declare.
5913 * infrun.c (set_observer_mode): Leave target async alone.
5914 * mi/mi-interp.c (mi_interpreter_init): Install
5915 mi_on_sync_execution_done as sync_execution_done observer.
5916 (mi_on_sync_execution_done): New function.
5917 (mi_execute_command_input_handler): Don't print the prompt if we
5918 just started a synchronous command with an async target.
5919 (mi_on_resume): Check sync_execution before printing prompt.
5920 * mi/mi-main.h (mi_async_p): Declare.
5921 * mi/mi-main.c: Include gdbcmd.h.
5922 (mi_async_p): New function.
5923 (mi_async, mi_async_1): New globals.
5924 (set_mi_async_command, show_mi_async_command, mi_async): New
5925 functions.
5926 (exec_continue): Call prepare_execution_command.
5927 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
5928 (mi_execute_async_cli_command): Use mi_async_p.
5929 (_initialize_mi_main): Install "set mi-async". Make
5930 "target-async" a deprecated alias.
5931
92bcb5f9
PA
59322014-05-29 Pedro Alves <palves@redhat.com>
5933
5934 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
5935 (_initialize_cli_interp): Adjust.
5936 * event-loop.c: Include "observer.h".
5937 (start_event_loop): Notify 'command_error' observers instead of
5938 calling display_gdb_prompt. Remove FIXME comment.
5939 * event-top.c (display_gdb_prompt): Remove call into the
5940 interpreters.
5941 * inf-loop.c: Include "observer.h".
5942 (inferior_event_handler): Notify 'command_error' observers instead
5943 of calling display_gdb_prompt.
5944 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
5945 observers instead of calling display_gdb_prompt.
5946 * interps.c (interp_set): Don't call display_gdb_prompt.
5947 (current_interp_display_prompt_p): Delete.
5948 * interps.h (interp_prompt_p): Delete declaration.
5949 (interp_prompt_p_ftype): Delete.
5950 (struct interp_procs) <prompt_proc_p>: Delete field.
5951 (current_interp_display_prompt_p): Delete declaration.
5952 * mi-interp.c (mi_interpreter_prompt_p): Delete.
5953 (_initialize_mi_interp): Adjust.
5954 * tui-interp.c (tui_init): Install 'sync_execution_done' and
5955 'command_error' observers.
5956 (tui_on_sync_execution_done, tui_on_command_error): New
5957 functions.
5958 (tui_display_prompt_p): Delete.
5959 (_initialize_tui_interp): Adjust.
5960
fd664c91
PA
59612014-05-29 Pedro Alves <palves@redhat.com>
5962
5963 PR gdb/13860
5964 * cli/cli-interp.c: Include infrun.h and observer.h.
5965 (cli_uiout, cli_interp): New globals.
5966 (cli_on_signal_received, cli_on_end_stepping_range)
5967 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
5968 functions.
5969 (cli_interpreter_init): Install them as 'end_stepping_range',
5970 'signal_received' 'signal_exited', 'exited' and 'no_history'
5971 observers.
5972 (_initialize_cli_interp): Remove cli_interp local.
5973 * infrun.c (handle_inferior_event): Call the several stop reason
5974 observers instead of printing the stop reason directly.
5975 (end_stepping_range): New function.
5976 (print_end_stepping_range_reason, print_signal_exited_reason)
5977 (print_exited_reason, print_signal_received_reason)
5978 (print_no_history_reason): Make static, and add an uiout
5979 parameter. Print to that instead of to CURRENT_UIOUT.
5980 * infrun.h (print_end_stepping_range_reason)
5981 (print_signal_exited_reason, print_exited_reason)
5982 (print_signal_received_reason print_no_history_reason): New
5983 declarations.
5984 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
5985 'mi_uiout'.
5986 <cli_uiout>: New field.
5987 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
5988 uiout for CLI output. Install 'signal_received',
5989 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
5990 observers.
5991 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
5992 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
5993 (mi_on_no_history): New functions.
5994 (ui_out_free_cleanup): Delete function.
5995 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
5996 instead use the one already stored in the MI interpreter data.
5997 (mi_ui_out): Adjust.
5998 * tui/tui-interp.c: Include infrun.h and observer.h.
5999 (tui_interp): New global.
6000 (tui_on_signal_received, tui_on_end_stepping_range)
6001 (tui_on_signal_exited, tui_on_exited)
6002 (tui_on_no_history): New functions.
6003 (tui_init): Install them as 'end_stepping_range',
6004 'signal_received' 'signal_exited', 'exited' and 'no_history'
6005 observers.
6006 (_initialize_tui_interp): Delete tui_interp local.
6007
8817a6f2
PA
60082014-05-29 Pedro Alves <palves@redhat.com>
6009
6010 PR gdb/15713
6011 * linux-nat.c (linux_nat_resume_callback): Rename the second
6012 parameter to 'except'. Skip LP if it points to EXCEPT.
6013 (linux_nat_resume): Don't mark the event lwp as not stopped
6014 before resuming sibling lwps. Instead ask
6015 linux_nat_resume_callback to skip the event lwp. Mark it as not
6016 stopped after actually resuming it.
6017 (linux_handle_syscall_trap): Mark the lwp as not stopped after
6018 resuming it.
6019 (wait_lwp): Mark the lwp as stopped here.
6020 (stop_wait_callback): Mark the lwp as not stopped right after
6021 resuming it. Don't mark lwps as stopped here.
6022 (linux_nat_filter_event): Mark the lwp as stopped earlier.
6023 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
6024
251bde03
PA
60252014-05-29 Pedro Alves <palves@redhat.com>
6026
6027 PR PR15693
6028 * infrun.c (resume): Determine how much to resume depending on
6029 whether the caller wanted a step, not whether we can hardware step
6030 the target. Mark all threads that we intend to run as running,
6031 unless we're calling an inferior function.
6032 (normal_stop): If the thread is running an infcall, don't finish
6033 thread state.
6034 * target.c (target_resume): Don't mark threads as running here.
6035
7f3c0343
JB
60362014-05-28 Joel Brobecker <brobecker@adacore.com>
6037
6038 * serial.c (_initialize_serial): Remove support for
6039 the "set remotebaud" and "show remotebaud" commands.
6040 * NEWS: Add entry documenting the removal of that command.
6041
ee34b3f9
YQ
60422014-05-28 Yao Qi <yao@codesourcery.com>
6043
6044 * charset.c: Fix typo in comments.
6045
add6c04d
GB
60462014-05-27 Gary Benson <gbenson@redhat.com>
6047
6048 * utils.c (internal_vproblem): Prompt for a bug report.
6049
92c48fc5
AW
60502014-05-26 Andy Wingo <wingo@igalia.com>
6051
6052 * guile/scm-arch.c (arscm_mark_arch_smob):
6053 * guile/scm-block.c (bkscm_mark_block_smob)
6054 (bkscm_mark_block_syms_progress_smob):
6055 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
6056 * guile/scm-exception.c (exscm_mark_exception_smob):
6057 * guile/scm-frame.c (frscm_mark_frame_smob):
6058 * guile/scm-iterator.c (itscm_mark_iterator_smob):
6059 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
6060 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
6061 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
6062 (ppscm_mark_pretty_printer_worker_smob):
6063 * guile/scm-symbol.c (syscm_mark_symbol_smob):
6064 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
6065 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
6066 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
6067 mark functions.
6068 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
6069 function.
6070
b2715b27
AW
60712014-05-26 Andy Wingo <wingo@igalia.com>
6072 Doug Evans <xdje42@gmail.com>
6073
6074 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
6075 empty_base_class. All uses updated.
6076 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
6077 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
6078 Adapt all callers.
6079 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
6080 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
6081 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
6082 (gdbscm_gsmob_has_property_p, add_property_name)
6083 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
6084 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
6085 (gdb-object-has-property?, gdb-object-properties): Remove.
6086 (gdb-object-kind): Renamed from gsmob-kind.
6087
214ab2da
AW
60882014-05-26 Andy Wingo <wingo@igalia.com>
6089
6090 * configure.ac (try_guile_versions): Allow building with guile 2.2.
6091 * configure: Regenerate.
6092
589fdceb
MM
60932014-05-23 Markus Metzger <markus.t.metzger@intel.com>
6094
6095 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
6096
67b5c0c1
MM
60972014-05-23 Markus Metzger <markus.t.metzger@intel.com>
6098
6099 * record-btrace.c (record_btrace_allow_memory_access): Remove.
6100 (replay_memory_access_read_only, replay_memory_access_read_write)
6101 (replay_memory_access_types, replay_memory_access)
6102 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
6103 (cmd_set_record_btrace, cmd_show_record_btrace)
6104 (cmd_show_replay_memory_access): New.
6105 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
6106 (record_btrace_remove_breakpoint): Replace
6107 record_btrace_allow_memory_access with replay_memory_access.
6108 (_initialize_record_btrace): Add commands.
6109 * NEWS: Announce it.
6110
036cd381
RR
61112014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6112
6113 * aarch64-linux-nat.c (asm/ptrace.h): Include.
6114
c77c1e42
RR
61152014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6116
6117 * MAINTAINERS (Write After Approval): Move self back from
6118 paper trail.
6119
45741a9c
PA
61202014-05-22 Pedro Alves <palves@redhat.com>
6121
6122 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
6123 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
6124 (disable_randomization, enum exec_direction_kind)
6125 (execution_direction, stop_registers, start_remote)
6126 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
6127 (wait_for_inferior, normal_stop, get_last_target_status)
6128 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
6129 (insert_step_resume_breakpoint_at_sal)
6130 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
6131 (set_step_info, print_stop_event, signal_stop_state)
6132 (signal_print_state, signal_pass_state, signal_stop_update)
6133 (signal_print_update, signal_pass_update)
6134 (update_signals_program_target, clear_exit_convenience_vars)
6135 (displaced_step_dump_bytes, update_observer_mode)
6136 (signal_catch_update, gdb_signal_from_command): Move
6137 declarations ...
6138 * infrun.h: ... to this new file.
6139 * amd64-tdep.c: Include infrun.h.
6140 * annotate.c: Include infrun.h.
6141 * arch-utils.c: Include infrun.h.
6142 * arm-linux-tdep.c: Include infrun.h.
6143 * arm-tdep.c: Include infrun.h.
6144 * break-catch-sig.c: Include infrun.h.
6145 * breakpoint.c: Include infrun.h.
6146 * common/agent.c: Include infrun.h instead of inferior.h.
6147 * corelow.c: Include infrun.h.
6148 * event-top.c: Include infrun.h.
6149 * go32-nat.c: Include infrun.h.
6150 * i386-tdep.c: Include infrun.h.
6151 * inf-loop.c: Include infrun.h.
6152 * infcall.c: Include infrun.h.
6153 * infcmd.c: Include infrun.h.
6154 * infrun.c: Include infrun.h.
6155 * linux-fork.c: Include infrun.h.
6156 * linux-nat.c: Include infrun.h.
6157 * linux-thread-db.c: Include infrun.h.
6158 * monitor.c: Include infrun.h.
6159 * nto-tdep.c: Include infrun.h.
6160 * procfs.c: Include infrun.h.
6161 * record-btrace.c: Include infrun.h.
6162 * record-full.c: Include infrun.h.
6163 * remote-m32r-sdi.c: Include infrun.h.
6164 * remote-mips.c: Include infrun.h.
6165 * remote-notif.c: Include infrun.h.
6166 * remote-sim.c: Include infrun.h.
6167 * remote.c: Include infrun.h.
6168 * reverse.c: Include infrun.h.
6169 * rs6000-tdep.c: Include infrun.h.
6170 * s390-linux-tdep.c: Include infrun.h.
6171 * solib-irix.c: Include infrun.h.
6172 * solib-osf.c: Include infrun.h.
6173 * solib-svr4.c: Include infrun.h.
6174 * target.c: Include infrun.h.
6175 * top.c: Include infrun.h.
6176 * windows-nat.c: Include infrun.h.
6177 * mi/mi-interp.c: Include infrun.h.
6178 * mi/mi-main.c: Include infrun.h.
6179 * python/py-threadevent.c: Include infrun.h.
6180
98eb56a4
PA
61812014-05-22 Pedro Alves <palves@redhat.com>
6182
6183 * infrun.c (handle_inferior_event): Store the exit code for
6184 --return-child-result here, instead of ...
6185 (print_exited_reason): ... here.
6186
17b2616c
PA
61872014-05-21 Pedro Alves <palves@redhat.com>
6188
6189 PR gdb/13860
6190 * gdbthread.h (struct thread_control_state): New field
6191 `command_interp'.
6192 * infrun.c (follow_fork): Copy the new thread control field to the
6193 child fork thread.
6194 (clear_proceed_status_thread): Clear the new thread control field.
6195 (proceed): Set the new thread control field.
6196 * interps.h (command_interp): Declare.
6197 * interps.c (command_interpreter): New global.
6198 (command_interp): New function.
6199 (interp_exec): Set `command_interpreter' while here.
6200 * cli-out.c (cli_uiout_dtor): New function.
6201 (cli_ui_out_impl): Install it.
6202 * mi/mi-interp.c: Include cli-out.h.
6203 (mi_cmd_interpreter_exec): Add comment.
6204 (restore_current_uiout_cleanup): New function.
6205 (ui_out_free_cleanup): New function.
6206 (mi_on_normal_stop): If finishing an execution command started by
6207 a CLI command, or any kind of breakpoint-like event triggered,
6208 print the stop event to the output (CLI) stream.
6209 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
6210
5166082f
PA
62112014-05-21 Pedro Alves <palves@redhat.com>
6212
6213 * cli/cli-cmds.c (list_command): Handle the first "list" after the
6214 current source line having changed.
6215 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
6216 * infrun.c (normal_stop): Adjust call to
6217 set_current_sal_from_frame.
6218 * source.c (clear_lines_listed_range): New function.
6219 (set_current_source_symtab_and_line, identify_source_line): Clear
6220 the lines listed range.
6221 (line_info): Handle the first "info line" after the current source
6222 line having changed.
6223 * stack.c (print_stack_frame): Remove center handling.
6224 (set_current_sal_from_frame): Remove 'center' parameter. Don't
6225 center sal.line.
6226
c1ee2fb3
PA
62272014-05-21 Pedro Alves <palves@redhat.com>
6228
6229 * inf-child.c (inf_child_mourn_inferior): New function.
6230 * inf-child.h (inf_child_mourn_inferior): New declaration.
6231 * darwin-nat.c (darwin_mourn_inferior): Use
6232 inf_child_mourn_inferior.
6233 * gnu-nat.c (gnu_mourn_inferior): Likewise.
6234 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
6235 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
6236 * nto-procfs.c (procfs_mourn_inferior): Likewise.
6237 * windows-nat.c (windows_mourn_inferior): Likewise.
6238
5c6d4fb2
DE
62392014-05-21 Doug Evans <xdje42@gmail.com>
6240
250748cb 6241 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5c6d4fb2 6242
4a2722c5
DE
62432014-05-21 Doug Evans <xdje42@gmail.com>
6244
17292b30 6245 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4a2722c5
DE
6246 (gdbscm_out_of_range_error): Ditto.
6247 (gdbscm_memory_error): Ditto.
250748cb
DE
6248 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
6249 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4a2722c5
DE
6250 (gdbscm_out_of_range_error): Update.
6251 (gdbscm_memory_error): Update.
6252 (gdbscm_scm_to_target_string_unsafe): Delete.
6253
6a3cb8e8
PA
62542014-05-21 Pedro Alves <palves@redhat.com>
6255
6256 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
6257 globals.
6258 (inf_child_open_target): New function.
6259 (inf_child_open): Use inf_child_open_target to push the target
6260 instead of erroring out.
6261 (inf_child_disconnect, inf_child_close)
6262 (inf_child_maybe_unpush_target): New functions.
6263 (inf_child_target): Install inf_child_disconnect and
6264 inf_child_close. Store a pointer to the returned object.
6265 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
6266 declarations.
6267 * target.c (auto_connect_native_target): New global.
6268 (show_default_run_target): New function.
6269 (find_default_run_target): Return NULL if automatically connecting
6270 to the native target is disabled.
6271 (_initialize_target): Install set/show auto-connect-native-target.
6272 * NEWS: Mention "set auto-connect-native-target", and "target
6273 native".
6274 * linux-nat.c (super_close): New global.
6275 (linux_nat_close): Call super_close.
6276 (linux_nat_add_target): Store a pointer to the base class's
6277 to_close method.
6278 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
6279 inf_child_maybe_unpush.
6280 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
6281 already pushed.
6282 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
6283 the inferior. Use inf_child_maybe_unpush_target.
6284 (inf_ttrace_attach): Don't push the target if it is already
6285 pushed.
6286 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
6287 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
6288 after mourning the inferior. Use inf_child_maybe_unpush_target.
6289 (darwin_attach_pid): Don't push the target if it is already
6290 pushed.
6291 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
6292 mourning the inferior. Use inf_child_maybe_unpush_target.
6293 (gnu_detach): Use inf_child_maybe_unpush_target.
6294 * go32-nat.c (go32_create_inferior): Don't push the target if it
6295 is already pushed.
6296 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
6297 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
6298 (procfs_open): Rename to ...
6299 (procfs_open_1): ... this. Add target_ops parameter. Adjust
6300 comments. Can target_preopen before changing node. Call
6301 inf_child_open_target to push the target explicitly.
6302 (procfs_attach): Don't push the target if it is already pushed.
6303 (procfs_detach): Use inf_child_maybe_unpush_target.
6304 (procfs_create_inferior): Don't push the target if it is already
6305 pushed.
6306 (nto_native_ops): New global.
6307 (procfs_open): Reimplement.
6308 (procfs_native_open): New function.
6309 (init_procfs_targets): Install procfs_native_open as to_open of
6310 "target native". Store a pointer to the "native" target in
6311 nto_native_ops.
6312 * procfs.c (procfs_attach): Don't push the target if it is already
6313 pushed.
6314 (procfs_detach): Use inf_child_maybe_unpush_target.
6315 (procfs_mourn_inferior): Only unpush the target after mourning the
6316 inferior. Use inf_child_maybe_unpush_target.
6317 (procfs_init_inferior): Don't push the target if it is already
6318 pushed.
6319 * windows-nat.c (do_initial_windows_stuff): Don't push the target
6320 if it is already pushed.
6321
930ee1b1
PA
63222014-05-21 Pedro Alves <palves@redhat.com>
6323
6324 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
6325 and "procfs" targets are now called "native" instead.
6326
1f5d1b13
PA
63272014-05-21 Pedro Alves <palves@redhat.com>
6328
6329 * go32-nat.c (go32_open): Delete.
6330 (go32_target): Don't override the to_open method.
6331
132f8e03
PA
63322014-05-21 Pedro Alves <palves@redhat.com>
6333
6334 * nto-procfs.c (procfs_can_run): New function.
6335 (nto_procfs_ops): New global.
6336 (init_procfs_targets): New, based on procfs_target. Install
6337 "target native" in addition to "target procfs".
6338 (_initialize_procfs): Call init_procfs_targets instead of adding
6339 the target here.
6340
03c136c3
PA
63412014-05-21 Pedro Alves <palves@redhat.com>
6342
6343 * windows-nat.c (windows_target): Don't override to_shortname,
6344 to_longname or to_doc.
6345
a635d0f3
PA
63462014-05-21 Pedro Alves <palves@redhat.com>
6347
6348 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
6349 to_doc.
6350
4f9b5133
PA
63512014-05-21 Pedro Alves <palves@redhat.com>
6352
6353 * darwin-nat.c (_initialize_darwin_inferior): Don't override
6354 to_shortname, to_longname or to_doc.
6355
bc85afde
PA
63562014-05-21 Pedro Alves <palves@redhat.com>
6357
6358 * go32-nat.c (go32_target): Don't override to_shortname,
6359 to_longname or to_doc.
6360
4ebfc96e
PA
63612014-05-21 Pedro Alves <palves@redhat.com>
6362
6363 * inf-child.c (inf_child_open): Remove mention of "child".
6364 (inf_child_target): Rename target to "native" instead of "child".
6365
2648dfed
AA
63662014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6367
6368 * Makefile.in (SFILES): Delete "regset.c".
6369 (COMMON_OBS): Delete "regset.o".
6370 * regset.c: Remove.
6371 * regset.h (regset_alloc): Delete prototype.
6372
b13feb94
AA
63732014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6374
6375 * sparc-linux-tdep.c (sparc32_linux_gregset)
6376 (sparc32_linux_fpregset): New static regset structures.
6377 (sparc32_linux_init_abi): Drop dynamic regset allocations.
6378 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
6379 'fpregset' fields.
6380 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
6381 (sparc64_linux_fpregset): New static regset structures.
6382 (sparc64_linux_init_abi): Drop dynamic regset allocations.
6383 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
6384 New static regset structures.
6385 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
6386 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
6387 New static regset structures.
6388 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
6389 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
6390 New static regset structures.
6391 (sparc64obsd_init_abi): Drop dynamic regset allocations.
6392 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
6393 New static regset structures.
6394 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
6395
b4fd25c9
AA
63962014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6397
6398 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
6399 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
6400 register maps ("regmaps") from "*regset" to "*regmap". Do this
6401 for all regmap types and variables.
6402 * sparc-linux-tdep.c (sparc32_linux_step_trap)
6403 (sparc32_linux_supply_core_gregset)
6404 (sparc32_linux_collect_core_gregset)
6405 (sparc32_linux_supply_core_fpregset)
6406 (sparc32_linux_collect_core_fpregset): Likewise.
6407 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
6408 (sparc_gregmap, sparc_fpregmap): ... these.
6409 (sparc_supply_gregset, sparc_collect_gregset)
6410 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6411 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
6412 (_initialize_sparc_nat): Rename regmaps.
6413 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
6414 (sparc_gregmap, sparc_fpregmap): ... these.
6415 (sparc_supply_gregset, sparc_collect_gregset)
6416 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6417 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
6418 Rename macros to...
6419 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
6420 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
6421 Likewise.
6422 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
6423 Rename to...
6424 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
6425 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
6426 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
6427 regmaps.
6428 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6429 (sparc32_bsd_fpregset): Rename to...
6430 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6431 (sparc32_bsd_fpregmap): ... these.
6432 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
6433 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6434 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
6435 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
6436 (struct sparc_gregmap, struct sparc_fpregmap)
6437 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6438 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
6439 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
6440 (sparc32_supply_regset, sparc32_collect_gregset)
6441 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
6442 prototypes.
6443 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
6444 (sparc64_linux_ptrace_gregmap): ... this.
6445 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
6446 (_initialize_sparc64_linux_nat): Rename regmaps.
6447 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
6448 (sparc64_linux_core_gregmap): ... this.
6449 (sparc64_linux_supply_core_gregset)
6450 (sparc64_linux_collect_core_gregset)
6451 (sparc64_linux_supply_core_fpregset)
6452 (sparc64_linux_collect_core_fpregset): Rename regmaps.
6453 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
6454 (sparc64_sol2_fpregset): Rename to...
6455 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
6456 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
6457 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
6458 regmaps.
6459 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
6460 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
6461 (sparc64_bsd_fpregset): Rename to...
6462 (struct sparc_gregmap, sparc64_sol2_gregmap)
6463 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
6464 (sparc64_bsd_fpregmap): ... these.
6465 (sparc64_supply_gregset, sparc64_collect_gregset)
6466 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
6467 prototypes.
6468 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
6469 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
6470 (sparc64fbsd_gregmap): ... this.
6471 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
6472 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
6473 Rename regmaps.
6474 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
6475 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
6476 (sparc64nbsd_collect_fpregset): Likewise.
6477 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
6478 (sparc64nbsd_gregmap): ... this.
6479 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
6480 regmaps.
6481 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
6482 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
6483 (sparc64obsd_gregmap): ... this.
6484 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
6485 regmaps.
6486 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
6487 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
6488 (sparc32nbsd_gregmap): ... this.
6489 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
6490 regmaps.
6491
8fea3224
AA
64922014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6493
6494 * score-tdep.c (score7_linux_gregset): New static regset
6495 structure.
6496 (score7_linux_regset_from_core_section): Remove dynamic regset
6497 allocation.
6498 (score_gdbarch_init): Drop allocation of tdep structure.
6499 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
6500
24534243
AA
65012014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6502
6503 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
6504 regset structures.
6505 (am33_regset_from_core_section): Remove dynamic regset
6506 allocations.
6507
b7195f27
AA
65082014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6509
6510 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
6511 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
6512 structures.
6513 (mips_linux_regset_from_core_section): Remove dynamic regset
6514 allocations.
6515 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6516 'gregset64', 'fpregset', and 'fpregset64'.
6517 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
6518 deleted tdep fields.
6519
ecc37a5a
AA
65202014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6521
6522 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
6523 regset structures.
6524 (amd64_regset_from_core_section): Remove dynamic regset
6525 allocations.
6526 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
6527 structure.
6528 (amd64obsd_regset_from_core_section): Remove dynamic regset
6529 allocation.
6530 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
6531 Likewise.
6532 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
6533 x86-common regset supply function.
6534 * i386-tdep.c (i386_collect_gregset): Make static.
6535 (i386_gregset): New global regset structure.
6536 (i386_fpregset, i386_xstateregset): New static regset structures.
6537 (i386_regset_from_core_section): Remove dynamic regset
6538 allocations.
6539 (i386_gdbarch_init): Remove initialization of tdep fields
6540 'gregset', 'fpregset', and 'xstateregset'.
6541 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6542 'fpregset', and 'xstateregset'.
6543 (i386_collect_gregset): Remove prototype.
6544 (i386_gregset): New declaration.
6545 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
6546 structure.
6547 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
6548 allocation.
6549
b7611c43
AA
65502014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6551
6552 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
6553 (arm_linux_vfpregset): New static regset structures.
6554 (arm_linux_regset_from_core_section): Remove dynamic allocation of
6555 regset structures.
6556 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
6557 and 'vfpregset' fields.
6558
a069a2bd
AA
65592014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6560
6561 * aarch64-linux-tdep.c (aarch64_linux_gregset)
6562 (aarch64_linux_fpregset): New static regset structures.
6563 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
6564 of regset structures.
6565 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
6566 'fpregset' fields.
6567
09424cff
AA
65682014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6569
6570 * regset.h (struct regset): Remove gdbarch field.
6571 * regset.c (regset_alloc): Drop initialization of gdbarch field.
6572 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6573 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
6574 Likewise.
6575 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
6576 (ppc32_linux_fpregset, ppc32_linux_vrregset)
6577 (ppc32_linux_vsxregset): Likewise.
6578 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
6579 via the regcache instead of the regset.
6580 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
6581 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
6582 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
6583 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
6584 Likewise.
6585
3ca7dae4
AA
65862014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6587
6588 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
6589 Constify structures.
6590 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
6591 (alphanbsd_aout_gregset): Likewise.
6592 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
6593 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
6594 Likewise.
6595 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
6596 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
6597 Likewise.
6598 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
6599 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
6600 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
6601 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
6602 * m88k-tdep.c (m88k_gregset): Likewise.
6603 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
6604 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
6605 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6606 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
6607 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
6608 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
6609 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
6610 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
6611 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
6612 Likewise.
6613 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
6614 * sh-tdep.h (sh_corefile_gregset): Likewise.
6615 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
6616 * vax-tdep.c (vax_gregset): Likewise.
6617
5876f503
JK
66182014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6619
6620 Fix TLS access for -static -pthread.
6621 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
6622 (try_thread_db_load_1): Initialize it.
6623 (thread_db_get_thread_local_address): Call it if LM is zero.
6624 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
6625 * target.h (struct target_ops) (to_get_thread_local_address): Add
6626 load_module_addr comment.
6627
0256a6ac
PA
66282014-05-21 Pedro Alves <palves@redhat.com>
6629
6630 * dcache.c (dcache_read_memory_partial): If reading the cache line
6631 fails, fallback to reading just the memory the caller wanted.
6632
227533ac
DE
66332014-05-20 Doug Evans <dje@google.com>
6634
6635 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
6636 instead of get_current_arch.
6637
936d2992
PA
66382014-05-20 Pedro Alves <palves@redhat.com>
6639
6640 * NEWS: Mention that compare-sections now works with all targets.
6641
6642 * remote.c (PACKET_qCRC): New enum value.
6643 (remote_verify_memory): Don't send qCRC if the target has no
6644 execution. Use packet_support/packet_ok. If the target doesn't
6645 support the qCRC packet, fallback to a deep memory copy.
6646 (compare_sections_command): Say "target image" instead of "remote
6647 executable".
6648 (_initialize_remote): Add PACKET_qCRC to the list of config
6649 packets that have no associated command. Extend comment.
6650 * target.c (simple_verify_memory, default_verify_memory): New
6651 function.
6652 * target.h (struct target_ops) <to_verify_memory>: Default to
6653 default_verify_memory.
6654 (simple_verify_memory): New declaration.
6655 * target-delegates.c: Regenerate.
6656
e59fa00f
MM
66572014-05-20 Markus Metzger <markus.t.metzger@intel.com>
6658
6659 * record-btrace.c (record_btrace_step_thread): Check for empty history.
6660
f2205de0
HZ
66612014-05-20 Hui Zhu <hui@codesourcery.com>
6662 Yao Qi <yao@codesourcery.com>
6663
6664 PR backtrace/16558
6665 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
6666 and change address of sp and pc.
6667
c4e54771
TT
66682014-05-19 Tom Tromey <tromey@redhat.com>
6669
6670 * gdbtypes.c (rank_function): Use XNEWVEC.
6671 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
6672
73051182
DE
66732014-05-19 Doug Evans <dje@google.com>
6674
6675 * dwarf2read.c (build_type_psymtabs_1): Renamed from
6676 build_type_unit_groups and moved closer to only caller. Remove
6677 arguments. All references updated. Remove outdated .gdb_index
6678 comment.
6679 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
6680 build_type_psymtabs_1.
6681
8832e7e3
DE
66822014-05-19 Doug Evans <dje@google.com>
6683
6684 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
6685 n_type_unit_groups, all_type_unit_groups. All uses removed.
6686 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
6687 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
6688 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
6689 (add_type_unit_group_to_table): Delete.
6690
cd8ae15e
DE
66912014-05-19 Doug Evans <dje@google.com>
6692
6693 * eval.c (evaluate_subexp_standard): Add some comments.
6694
08f4850b
DE
66952014-05-17 Doug Evans <xdje42@gmail.com>
6696
6697 * progspace.c (remove_program_space): Delete, unused.
6698 * progspace.h (remove_program_space): Ditto.
6699
bed8455c
DE
67002014-05-17 Doug Evans <xdje42@gmail.com>
6701
6702 * inferior.c (prune_inferiors): Fix comment.
6703 (remove_inferior_command): Call prune_program_spaces.
6704
8d551b02
DE
67052014-05-16 Doug Evans <dje@google.com>
6706
6707 New command line option -D.
6708 * NEWS: Mention it.
6709 * main.c (set_gdb_data_directory): New function.
6710 (captured_main): Recognize -D. Flag error for --data-directory "".
6711 Call set_gdb_data_directory.
6712 (print_gdb_help): Print --data-directory, -D.
6713 * main.h (set_gdb_data_directory): Declare.
6714 * top.c (staged_gdb_datadir): New static global.
6715 (set_gdb_datadir): Call set_gdb_data_directory
6716 (show_gdb_datadir): New function.
6717 (init_main): Update init of data-directory parameter.
6718
18848e28
GF
67192014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
6720
6721 Import the "dirfd" gnulib module.
6722 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
6723 * gnulib/aclocal.m4: Update.
6724 * gnulib/config.in: Update.
6725 * gnulib/configure: Update.
6726 * gnulib/import/Makefile.am: Update.
6727 * gnulib/import/Makefile.in: Update.
6728 * gnulib/import/dirfd.c: New.
6729 * gnulib/import/m4/dirfd.m4: New.
6730 * gnulib/import/m4/gnulib-cache.m4: Update.
6731 * gnulib/import/m4/gnulib-comp.m4: Update.
6732
95c64f92
YQ
67332014-05-16 Pierre Muller <muller@sourceware.org>
6734 Yao Qi <yao@codesourcery.com>
6735
6736 * valprint.c (print_wchar): Move the code on checking whether
6737 W is a printable wide char to the default branch of switch
6738 statement below. Call wchar_printable instead of gdb_iswprint.
6739
cac395ea
TM
67402014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
6741
19679eca 6742 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
cac395ea
TM
6743 ldr.w and ldrd instructions.
6744
83655187
DE
67452014-05-15 Doug Evans <dje@google.com>
6746
6747 * dwarf2read.c (read_structure_type): Delete outdated comments.
6748
dd756689
TT
67492014-05-14 Tom Tromey <tromey@redhat.com>
6750
6751 * macrocmd.c (print_macro_definition): Reindent.
6752
75ddda77
DE
67532014-05-13 Doug Evans <xdje42@gmail.com>
6754
6755 * python/py-cmd.c (cmdpy_completer): Add comment.
6756 (completers): Make const.
6757
b0f16a3e
SM
67582014-05-13 Simon Marchi <simon.marchi@ericsson.com>
6759
6760 * infrun.c (resume): Remove should_resume (unused). Move up
6761 declaration of resume_ptid.
6762
033c3379
TT
67632014-05-13 Tom Tromey <tromey@redhat.com>
6764
6765 * language.h (unop_type_check): Remove.
6766 (binop_type_check): Don't declare.
6767
9b44a3a5
AA
67682014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
6769
6770 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
6771 call to regcache_raw_collect.
6772
303a33fa
SM
67732014-05-12 Simon Marchi <simon.marchi@ericsson.com>
6774
6775 * mi/mi-console.c (mi_console_raw_packet): Use the value from
6776 mi_console->quote as the quoting character.
6777
196100a0
SM
67782014-05-12 Simon Marchi <simon.marchi@ericsson.com>
6779
6780 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
6781
f989a1c8
TT
67822014-04-29 Tom Tromey <tromey@redhat.com>
6783
6784 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
6785 "show debug varobj".
6786
9404b58f
KM
67872014-05-07 Kyle McMartin <kyle@redhat.com>
6788
6789 Pushed by Joel Brobecker <brobecker@adacore.com>.
6790 * aarch64-tdep.c (aarch64_software_single_step): New function.
6791 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
6792 with aarch64_software_single_step.
6793
5e49ba57
JB
67942014-05-05 Joel Brobecker <brobecker@adacore.com>
6795
6796 GDB 7.7.1 released.
6797
c888a17d
KS
67982014-05-05 Keith Seitz <keiths@redhat.com>
6799
6800 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
6801 variable or history value is successfully parsed.
6802
290a839c
YQ
68032014-05-05 Yao Qi <yao@codesourcery.com>
6804 Pedro Alves <palves@redhat.com>
6805
6806 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
6807 address of blocks that intersects the requested range. Trim
6808 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
6809 sections.
6810 * ctf.c (ctf_xfer_partial): Likewise.
6811
91256dc2
YQ
68122014-05-05 Yao Qi <yao@codesourcery.com>
6813
6814 * printcmd.c (display_command): Remove the check to
6815 target_has_execution.
6816
07284463
MK
68172014-05-03 Mark Kettenis <kettenis@gnu.org>
6818
6819 * ppcobsd-nat.c: Include "obsd-nat.h".
6820 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
6821 add_target.
6822 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
6823
30a1e6cc
SDJ
68242014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
6825
6826 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
6827 and 16-bit signed and unsigned arguments. Update comment.
6828 (stap_parse_probe_arguments): Extend code to handle such
6829 arguments. Use warning instead of complaint to notify about
6830 unrecognized bitness.
6831
f33da99a
SDJ
68322014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
6833
6834 PR breakpoints/16889
6835 * stap-probe.c (stap_parse_probe_arguments): Simplify
6836 check for non-prefixed probes (i.e., probes whose
6837 arguments do not start with "N@"). Always set the
6838 argument type to a sane value.
6839
95cf3b38
DT
68402014-05-01 David Taylor <dtaylor@emc.com>
6841
6842 * remote.c (compare_sections_command): Add -r option to compare
6843 all loadable read-only sections.
6844
1cfdf534
SC
68452014-04-30 Siva Chandra Reddy <sivachandra@google.com>
6846
6847 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
6848 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
6849 Update all callers.
6850 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
6851 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
6852 Remove unused CORE_ADDR argument. Update all callers.
6853
ca4f7f8b
PA
68542014-04-29 Pedro Alves <palves@redhat.com>
6855
6856 * remote.c (struct packet_config) <detect>: Extend comment.
6857 (add_packet_config_cmd): Don't set the config's detect or support
6858 fields here.
6859 (init_all_packet_configs): Also initialize the config's 'detect'
6860 field.
6861 (reset_all_packet_configs_support): New function.
6862 (remote_open_1): Call reset_all_packet_configs_support instead of
6863 init_all_packet_configs.
6864 (_initialize_remote): Initialize all packet configs. Assert that
6865 all packets have an associated command, except a few known
6866 outliers.
6867
11c1ba78
JB
68682014-04-28 Joel Brobecker <brobecker@adacore.com>
6869
6870 * dwarf2read.c (read_subrange_type): Handle dynamic
6871 DW_AT_lower_bound attributes.
6872
8739bc53
JB
68732014-04-28 Joel Brobecker <brobecker@adacore.com>
6874
6875 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
6876 dynamic bounds before computing its upper bound.
6877 (ada_discrete_type_low_bound): Same as above with the lower bound.
6878
6f8a3220
JB
68792014-04-28 Joel Brobecker <brobecker@adacore.com>
6880
6881 * dwarf2read.c (is_dynamic_type): Return true for dynamic
6882 range types. Adjust the array handling implementation to
6883 take advantage of this change.
6884 (resolve_dynamic_range): New function, mostly extracted from
6885 resolve_dynamic_bounds.
6886 (resolve_dynamic_array): New function, mostly extracted from
6887 resolve_dynamic_bounds.
6888 (resolve_dynamic_bounds): Delete.
6889 (resolve_dynamic_type): Reimplement. Add handling of
6890 TYPE_CODE_RANGE types.
6891
4d072ce4
JB
68922014-04-28 Joel Brobecker <brobecker@adacore.com>
6893
6894 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
6895 handling of parallel ___XA types.
6896
52865325
JB
68972014-04-28 Joel Brobecker <brobecker@adacore.com>
6898
6899 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
6900 unnecessary second call to static_unwrap_type.
6901
433e77fa
HZ
69022014-04-27 Hui Zhu <hui@codesourcery.com>
6903
6904 * stack.c (print_frame_info): Call do_gdb_disassembly with
6905 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
6906
b51a69ee
DE
69072014-04-26 Doug Evans <xdje42@gmail.com>
6908
6909 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
6910
7ae1a6a6
PA
69112014-04-25 Pedro Alves <palves@redhat.com>
6912
6913 PR server/16255
6914 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
6915 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
6916 and newline from built string.
6917 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
6918 (linux_ptrace_attach_fail_reason): ... this.
6919 * linux-nat.c (linux_nat_attach): Adjust to use
6920 linux_ptrace_attach_fail_reason.
6921
4082afcc
PA
69222014-04-25 Pedro Alves <palves@redhat.com>
6923
6924 * remote.c (struct remote_state): Remove multi_process_aware,
6925 non_stop_aware, cond_tracepoints, cond_breakpoints,
6926 breakpoint_commands, fast_tracepoints, static_tracepoints,
6927 install_in_trace, disconnected_tracing,
6928 enable_disable_tracepoints, string_tracing, and
6929 augmented_libraries_svr4_read fields.
6930 (remote_multi_process_p): Move further below in the file.
6931 (struct packet_config): Add comments.
6932 (update_packet_config): Delete function.
6933 (show_packet_config_cmd): Use packet_config_support.
6934 (add_packet_config_cmd): Use NULL as set callback.
6935 (packet_ok): "set remote foo-packet"-style commands no longer
6936 change config->supported -- adjust.
6937 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
6938 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
6939 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
6940 (PACKET_QNonStop, PACKET_multiprocess_feature)
6941 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
6942 (PACKET_DisconnectedTracing_feature)
6943 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
6944 (set_remote_protocol_packet_cmd): Delete function.
6945 (packet_config_support, packet_support): New functions.
6946 (set_remote_protocol_Z_packet_cmd): Don't call
6947 update_packet_config.
6948 (remote_query_attached, remote_pass_signals)
6949 (remote_program_signals, remote_threads_info)
6950 (remote_threads_extra_info, remote_start_remote): Use
6951 packet_support.
6952 (remote_start_remote): Use packet_config_support and
6953 packet_support.
6954 (init_all_packet_configs): Set all packets to unknown support,
6955 instead of calling update_packet_config.
6956 (remote_check_symbols): Use packet_support.
6957 (remote_supported_packet): Unconditionally set the packet config's
6958 support status.
6959 (remote_multi_process_feature, remote_non_stop_feature)
6960 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
6961 (remote_breakpoint_commands_feature)
6962 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
6963 (remote_install_in_trace_feature)
6964 (remote_disconnected_tracing_feature)
6965 (remote_enable_disable_tracepoint_feature)
6966 (remote_string_tracing_feature)
6967 (remote_augmented_libraries_svr4_read_feature): Delete functions.
6968 (remote_protocol_features): Adjust to use remote_supported_packet
6969 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
6970 "ConditionalTracepoints", "ConditionalBreakpoints",
6971 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
6972 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
6973 "EnableDisableTracepoints", and "tracenz".
6974 (remote_query_supported): Use packet_support.
6975 (remote_open_1): Adjust.
6976 (extended_remote_attach_1): Use packet_support. Switch on the
6977 result of packet_ok instead of checking whether the packet ended
6978 up disabled.
6979 (remote_vcont_resume): Use packet_support.
6980 (remote_resume, remote_stop_ns, fetch_register_using_p)
6981 (remote_prepare_to_store, store_register_using_P)
6982 (check_binary_download, remote_write_bytes): Use packet_support.
6983 (remote_vkill): Use packet_support. Switch on the result of
6984 packet_ok instead of checking whether the packet ended up
6985 disabled.
6986 (extended_remote_supports_disable_randomization): Use
6987 packet_support.
6988 (extended_remote_run): Switch on the result of packet_ok instead
6989 of checking whether the packet ended up disabled.
6990 (remote_insert_breakpoint, remote_remove_breakpoint)
6991 (remote_insert_watchpoint, remote_remove_watchpoint)
6992 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
6993 packet_support.
6994 (remote_search_memory): Use packet_config_support.
6995 (remote_get_thread_local_address, remote_get_tib_address)
6996 (remote_hostio_send_command, remote_can_execute_reverse): Use
6997 packet_support.
6998 (remote_supports_cond_tracepoints)
6999 (remote_supports_cond_breakpoints)
7000 (remote_supports_fast_tracepoints)
7001 (remote_supports_static_tracepoints)
7002 (remote_supports_install_in_trace)
7003 (remote_supports_enable_disable_tracepoint)
7004 (remote_supports_string_tracing)
7005 (remote_can_run_breakpoint_commands): Rewrite, checking whether
7006 the packet config says the feature is enabled or disabled.
7007 (remote_download_tracepoint, remote_trace_set_readonly_regions)
7008 (remote_get_trace_status): Use packet_support.
7009 (remote_set_disconnected_tracing): Adjust to check whether the
7010 feature is enabled with packet_support.
7011 (remote_set_trace_buffer_size, remote_use_agent)
7012 (remote_can_use_agent, remote_supports_btrace): Use
7013 packet_support.
7014 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
7015 Use packet_config_support.
7016 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
7017 the packet config says the feature is enabled or disabled.
7018 (set_range_stepping): Use packet_support.
7019
bdb52a22
TT
70202014-04-25 Tom Tromey <tromey@redhat.com>
7021
7022 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
7023 argument.
7024
e9475ead
SA
70252014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
7026
7027 * NEWS: Mention support for C99 variable length arrays.
7028
82eacd52
JB
70292014-04-24 Joel Brobecker <brobecker@adacore.com>
7030
7031 * ada-lang.c (standard_exc): Expand introductory comment.
7032
01f9f808
MS
70332014-04-24 Michael Sturm <michael.sturm@mintel.com>
7034 Walfred Tedeschi <walfred.tedeschi@intel.com>
7035
7036 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
7037 AVX512 registers.
7038 (amd64_linux_read_description): Add code to handle AVX512 xstate
7039 mask and return respective tdesc.
7040 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
7041 and features/i386/x32-avx512-linux.c.
7042 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
7043 (amd64_linux_core_read_description): Add code to handle AVX512
7044 xstate mask and return respective tdesc.
7045 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
7046 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
7047 calculation.
7048 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
7049 (tdesc_amd64_avx512_linux): New prototype.
7050 (tdesc_x32_avx512_linux): Likewise.
7051 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
7052 features/i386/x32-avx512.c.
7053 (amd64_ymm_avx512_names): New register names for pseudo
7054 registers YMM16-31.
7055 (amd64_ymmh_avx512_names): New register names for raw registers
7056 YMMH16-31.
7057 (amd64_k_names): New register names for K registers.
7058 (amd64_zmmh_names): New register names for ZMM raw registers.
7059 (amd64_zmm_names): New registers names for ZMM pseudo registers.
7060 (amd64_xmm_avx512_names): New register names for XMM16-31
7061 registers.
7062 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
7063 registers.
7064 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
7065 if feature is present.
7066 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
7067 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
7068 (AMD64_NUM_REGS): Adjust to new number of registers.
7069 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
7070 registers supplied via XSTATE by AVX512 registers.
7071 (i386_linux_read_description): Add case for AVX512.
7072 * i386-linux-tdep.c: Include i386-avx512-linux.c.
7073 (i386_linux_gregset_reg_offset): Add AVX512 registers.
7074 (i386_linux_core_read_description): Add case for AVX512.
7075 (i386_linux_init_abi): Install supported register note section
7076 for AVX512.
7077 (_initialize_i386_linux_tdep): Add call to tdesc init function for
7078 AVX512.
7079 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
7080 registers to be number of zmm7h + 1.
7081 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
7082 * i386-tdep.c: Include features/i386/i386-avx512.c.
7083 (i386_zmm_names): Add ZMM pseudo register names array.
7084 (i386_zmmh_names): Add ZMM raw register names array.
7085 (i386_k_names): Add K raw register names array.
7086 (num_lower_zmm_regs): Add constant for the number of lower ZMM
7087 registers. AVX512 has 16 more ZMM registers than there are YMM
7088 registers.
7089 (i386_zmmh_regnum_p): Add function to look up register number of
7090 ZMM raw registers.
7091 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
7092 (i386_k_regnum_p): Likewise for K raw registers.
7093 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
7094 registers added by AVX512.
7095 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
7096 registers added by AVX512.
7097 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
7098 added by AVX512.
7099 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
7100 (i386_pseudo_register_name): Add ZMM pseudo registers.
7101 (i386_zmm_type): Construct and return vector registers type for ZMM
7102 registers.
7103 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
7104 ZMM0-31 pseudo registers and K registers.
7105 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
7106 and YMM16-31 registers from register cache.
7107 (i386_pseudo_register_write): Add code to write K, ZMM and
7108 YMM16-31 registers.
7109 (i386_register_reggroup_p): Add code to include/exclude AVX512
7110 registers in/from respective register groups.
7111 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
7112 registers if feature is present in xcr0.
7113 (i386_gdbarch_init): Add code to initialize AVX512 feature
7114 variables in tdep structure, wire in pseudo registers and call
7115 initialize_tdesc_i386_avx512.
7116 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
7117 variables.
7118 (i386_regnum): Add AVX512 registers.
7119 (I386_SSE_NUM_REGS): New define for number of SSE registers.
7120 (I386_AVX_NUM_REGS): Likewise for AVX registers.
7121 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
7122 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
7123 512 bits wide.
7124 (i386_xmm_avx512_regnum_p): New prototype for register look up.
7125 (i386_ymm_avx512_regnum_p): Likewise.
7126 (i386_k_regnum_p): Likewise.
7127 (i386_zmm_regnum_p): Likewise.
7128 (i386_zmmh_regnum_p): Likewise.
7129 * i387-tdep.c : Update year in copyright notice.
7130 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
7131 XSAVE buffer.
7132 (XSAVE_YMM_AVX512_ADDR): New macro.
7133 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
7134 XSAVE buffer.
7135 (XSAVE_XMM_AVX512_ADDR): New macro.
7136 (xsave_avx512_k_offset): New table for K register offsets in
7137 XSAVE buffer.
7138 (XSAVE_AVX512_K_ADDR): New macro.
7139 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
7140 in XSAVE buffer.
7141 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
7142 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
7143 buffer.
7144 (i387_collect_xsave): Add code to collect AVX512 registers from
7145 XSAVE buffer.
7146 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
7147 of XMM16-31 registers.
7148 (I387_NUM_K_REGS): New define for number of K registers.
7149 (I387_K0_REGNUM): New define for K0 register number.
7150 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
7151 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
7152 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
7153 registers.
7154 (I387_YMM16H_REGNUM): New define for YMM16H register number.
7155 (I387_XMM16_REGNUM): New define for XMM16 register number.
7156 (I387_YMM0_REGNUM): New define for YMM0 register number.
7157 (I387_KEND_REGNUM): New define for last K register number.
7158 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
7159 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
7160 number.
7161 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
7162 number.
7163 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
7164 size.
7165 * features/Makefile: Add AVX512 related files.
7166 * features/i386/32bit-avx512.xml: New file.
7167 * features/i386/64bit-avx512.xml: Likewise.
7168 * features/i386/amd64-avx512-linux.c: Likewise.
7169 * features/i386/amd64-avx512-linux.xml: Likewise.
7170 * features/i386/amd64-avx512.c: Likewise.
7171 * features/i386/amd64-avx512.xml: Likewise.
7172 * features/i386/i386-avx512-linux.c: Likewise.
7173 * features/i386/i386-avx512-linux.xml: Likewise.
7174 * features/i386/i386-avx512.c: Likewise.
7175 * features/i386/i386-avx512.xml: Likewise.
7176 * features/i386/x32-avx512-linux.c: Likewise.
7177 * features/i386/x32-avx512-linux.xml: Likewise.
7178 * features/i386/x32-avx512.c: Likewise.
7179 * features/i386/x32-avx512.xml: Likewise.
7180 * regformats/i386/amd64-avx512-linux.dat: New file.
7181 * regformats/i386/amd64-avx512.dat: Likewise.
7182 * regformats/i386/i386-avx512-linux.dat: Likewise.
7183 * regformats/i386/i386-avx512.dat: Likewise.
7184 * regformats/i386/x32-avx512-linux.dat: Likewise.
7185 * regformats/i386/x32-avx512.dat: Likewise.
7186 * NEWS: Add note about new support for AVX512.
7187
7188
08351840
PA
71892014-04-23 Pedro Alves <palves@redhat.com>
7190
7191 * breakpoint.c (insert_bp_location): Tolerate errors if the
7192 breakpoint is set in a user-loaded objfile.
7193 (remove_breakpoint_1): Likewise. Also tolerate errors if the
7194 location is marked shlib_disabled. If the breakpoint is set in a
7195 user-loaded objfile is a GDB-side memory breakpoint, validate it
7196 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
7197 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
7198 flag.
7199 * mem-break.c (memory_validate_breakpoint): New function.
7200 * objfiles.c (userloaded_objfile_contains_address_p): New
7201 function.
7202 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
7203 * target.h (memory_validate_breakpoint): New declaration.
7204
076855f9
PA
72052014-04-23 Pedro Alves <palves@redhat.com>
7206
7207 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
7208 the breakpoint is set in a shared library, only suppress
7209 errors for software breakpoints, not hardware breakpoints.
7210
483805cf
PA
72112014-04-22 Pedro Alves <palves@redhat.com>
7212
7213 * infrun.c (schedlock_applies): New function, factored out from
7214 find_thread_needs_step_over.
7215 (find_thread_needs_step_over): Use it.
7216 (switch_back_to_stepped_thread): Always clear trap_expected if the
7217 step over is finished. Return early if scheduler locking applies.
7218 Look for the stepping thread and a potential step-over thread with
7219 a single loop.
7220 (currently_stepping_or_nexting_callback): Delete.
7221
a75fef0e
NC
72222014-04-22 Nick Clifton <nickc@redhat.com>
7223
7224 * NEWS: Mention that ARM sim now supports tracing.
7225
48b6e87e
YQ
72262014-04-22 Yao Qi <yao@codesourcery.com>
7227
7228 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
7229 to ...
7230 * tracefile.c (tracefile_fetch_registers): ... it. New
7231 function.
7232 * tracefile.h (tracefile_fetch_registers): Declare.
7233 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
7234 tracefile_fetch_registers.
7235
17617f2d
EZ
72362014-04-19 Eli Zaretskii <eliz@gnu.org>
7237
7238 PR gdb/14018
7239 * windows-nat.c (thread_rec): Don't display a warning when
7240 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
7241 fails for any reason, set th->suspended to -1, so that we don't
7242 try to resume such a thread. Also, don't return NULL in these
7243 cases, to avoid completely ruin the session due to "PC register is
7244 not available" error.
7245 (do_windows_fetch_inferior_registers): Check errors in
7246 GetThreadContext call.
7247 (windows_continue): Accept an additional argument KILLED; if not
7248 zero, ignore errors in the SetThreadContext call, since the
7249 inferior was killed and is shutting down.
7250 (windows_resume, get_windows_debug_event)
7251 (windows_create_inferior, windows_mourn_inferior)
7252 (windows_kill_inferior): All callers of windows_continue changed
7253 to adjust to its new calling sequence.
7254
5723a6fd
YQ
72552014-04-19 Yao Qi <yao@codesourcery.com>
7256
7257 * ctf.c (ctf_open): Call post_create_inferior.
7258
614d5099
YQ
72592014-04-19 Yao Qi <yao@codesourcery.com>
7260
7261 * ctf.c (handle_id): New static variable.
7262 (ctf_open_dir): Get handle_id from bt_context_add_trace return
7263 value. Get the declaration of event "register" and get length
7264 of field "contents".
7265
dac3e710
YQ
72662014-04-19 Yao Qi <yao@codesourcery.com>
7267
7268 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
7269
2bca57ba
SC
72702014-04-18 Siva Chandra Reddy <sivachandra@google.com>
7271
7272 * valops.c (oload_method_static): Remove unnecessary argument
7273 METHOD. Update all callers.
7274
51d48146
PA
72752014-04-18 Pedro alves <palves@redhat.com>
7276 Tom Tromey <tromey@redhat.com>
7277
7278 PR backtrace/15558
7279 * frame.c (get_prev_frame_1): Rename to ...
7280 (get_prev_frame_always): ... this, and make extern. Adjust.
7281 (skip_artificial_frames): Use get_prev_frame_always.
7282 (frame_unwind_caller_id, frame_pop, get_prev_frame)
7283 (get_frame_unwind_stop_reason): Adjust to rename.
7284 * frame.h (get_prev_frame_always): Declare.
7285 * inline-frame.c: Include frame.h.
7286 (inline_frame_this_id): Use get_prev_frame_always.
7287
1bdad2e0
TG
72882014-04-18 Tristan Gingold <gingold@adacore.com>
7289
7290 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
7291 code by using bfd_mach_o_get_base_address.
7292
7ce16bd4
UW
72932014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
7294
7295 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
7296 (spu_ax_pseudo_register_collect): New function.
7297 (spu_ax_pseudo_register_push_stack): Likewise.
7298 (spu_dwarf_reg_to_regnum): Likewise.
7299 (spu_gdbarch_init): Install them. Append DWARF unwinders.
7300
2ed3c037
UW
73012014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
7302
7303 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
7304 Replace FRAME argument with FRAME_ID.
7305 * gdbarch.c, gdbarch.h: Regenerate.
7306 * findvar.c (default_value_from_register): Add GDBARCH argument;
7307 replace FRAME by FRAME_ID. No longer call get_frame_id.
7308 (value_from_register): Update call to gdbarch_value_from_register.
7309 * value.h (default_value_from_register): Update prototype.
7310 * s390-linux-tdep.c (s390_value_from_register): Update interface
7311 and call to default_value_from_register.
7312 * spu-tdep.c (spu_value_from_register): Likewise.
7313
7314 * findvar.c (address_from_register): Remove TYPE argument.
7315 Do not call value_from_register; use gdbarch_value_from_register
7316 with null_frame_id instead.
7317 * value.h (address_from_register): Update prototype.
7318 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
7319 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
7320 address_from_register interface change.
7321
71e50e83
YQ
73222014-04-17 Yao Qi <yao@codesourcery.com>
7323
7324 * gdbtypes.h: Update comments to link to types and macros'
7325 definitions.
7326
7a23c549
SC
73272014-04-16 Siva Chandra Reddy <sivachandra@google.com>
7328
7329 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
7330
22869d73
KS
73312014-04-16 Keith Seitz <keiths@redhat.com>
7332
7333 PR gdb/15827
7334 * dwarf2read.c (skip_one_die): Check that all relative-offset
7335 sibling DIEs fall within range of the current reader's buffer.
7336 (read_partial_die): Likewise.
7337
c4f87ca6
KS
73382014-04-16 Keith Seitz <keiths@redhat.com>
7339
7340 PR c++/16597
7341 * cp-namespace.c (lookup_symbol_file): If the type name of
7342 `this' is NULL, return immediately.
7343
b50c8614
KS
73442014-04-14 Keith Seitz <keiths@redhat.com>
7345
7346 PR c++/16253
7347 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
7348 from symbol_matches_domain in symtab.c. All local callers
7349 of symbol_matches_domain updated.
7350 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
7351 search STRUCT_DOMAIN.
7352 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
7353 independently. standard_lookup will do that automatically.
7354 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
7355 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7356 (cp_lookup_symbol_in_namespace): Likewise.
7357 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
7358 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
7359 may return a STRUCT_DOMAIN match.
7360 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
7361 * cp-support.c: Include language.h.
7362 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
7363 VAR_DOMAIN.
7364 * psymtab.c (match_partial_symbol): Compare the requested
7365 domain with the symbol's domain directly.
7366 (lookup_partial_symbol): Likewise.
7367 * symtab.c (lookup_symbol_in_language): Explain when/why
7368 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7369 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
7370 appropriate languages.
7371 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
7372 and moved to ada-lang.c
7373 (lookup_block_symbol): Explain that this function only returns
7374 symbol matching the requested DOMAIN.
7375 Compare the requested domain with the symbol's domain directly.
7376 (iterate_over_symbols): Compare the requested domain with the
7377 symbol's domain directly.
7378 * symtab.h (symbol_matches_domain): Remove.
7379
3d567982
TT
73802014-04-14 Tom Tromey <tromey@redhat.com>
7381
7382 PR c++/15246:
7383 * c-exp.y (type_aggregate_p): New function.
7384 (qualified_name, classify_inner_name): Use it.
7385 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
7386 and TYPE_TARGET_TYPE of an enum type.
7387 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
7388 an enum type.
7389 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
7390 handle TYPE_DECLARED_CLASS.
7391 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
7392 types.
7393 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
7394 * valops.c (enum_constant_from_type): New function.
7395 (value_aggregate_elt): Use it.
7396 * cp-namespace.c (cp_lookup_nested_symbol): Handle
7397 TYPE_CODE_ENUM.
7398
c848d642
TT
73992014-04-14 Tom Tromey <tromey@redhat.com>
7400
7401 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
7402 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
7403 const.
7404 * value.h (value_aggregate_elt): Update.
7405
0626fc76
TT
74062014-04-14 Tom Tromey <tromey@redhat.com>
7407
7408 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
7409
5ecaaa66
SA
74102014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7411
7412 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7413 (evaluate_subexp_standard): Pass noside argument.
7414 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7415 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7416 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7417 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7418 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7419
1612e0c0
SA
74202014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7421
7422 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7423 points to a constant blob.
7424
c451ebe5
SA
74252014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7426
7427 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7428 property and store it as the high bound and flag the range accordingly.
7429 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7430 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7431 * gdbtypes.h (enum range_flags): New enum.
7432 (struct range_bounds): Add flags member.
7433
1d42e4c4
SA
74342014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7435
7436 * c-typeprint.c (c_type_print_varspec_suffix): Added
7437 check for not yet resolved high bound. If unresolved, print
7438 "variable length" string to the console instead of random
7439 length.
7440
9f1f738a
SA
74412014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7442
7443 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
7444 value.
7445 (ada_template_to_fixed_record_type_1): Likewise.
7446 (ada_to_fixed_type_1): Likewise.
7447 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7448 (cp_print_value): Likewise.
7449 * d-valprint.c (dynamic_array_type): Likewise.
7450 * findvar.c (address_of_variable): Likewise.
7451 * jv-valprint.c (java_value_print): Likewise.
7452 * valops.c (value_ind): Likewise.
7453 * value.c (coerce_ref): Likewise.
7454
3c8452d4
SA
74552014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7456
7457 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7458 value and retrieve the dynamic type size.
7459
4ad88275
SA
74602014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7461
7462 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7463 passed to sizeof is dynamic evaluate the argument to compute the length.
7464
80180f79
SA
74652014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7466 Joel Brobecker <brobecker@adacore.com>
7467
7468 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7469 (dwarf2_evaluate_property): New function.
7470 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7471 * dwarf2read.c (attr_to_dynamic_prop): New function.
7472 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7473 attribute.
7474 * gdbtypes.c: Include dwarf2loc.h.
7475 (is_dynamic_type): New function.
7476 (resolve_dynamic_type): New function.
7477 (resolve_dynamic_bounds): New function.
7478 (get_type_length): New function.
7479 (check_typedef): Use get_type_length to compute type length.
7480 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7481 (TYPE_LOW_BOUND_KIND): New macro.
7482 (is_dynamic_type): New function prototype.
7483 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7484 to resolve dynamic properties of the type. Update comment.
7485 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7486
a1556843
RH
74872014-04-14 Richard Henderson <rth@redhat.com>
7488
7489 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
7490
0be03e84
DE
74912014-04-12 Siva Chandra Reddy <sivachandra@google.com>
7492 Doug Evans <xdje42@gmail.com>
7493
7494 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
7495 dereference TYPE_CODE_REF values.
7496
6b662e19
JB
74972014-04-11 Joel Brobecker <brobecker@adacore.com>
7498
7499 Revert the following changes due to regressions:
7500
7501 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7502 (dwarf2_evaluate_property): New function.
7503 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7504 * dwarf2read.c (attr_to_dynamic_prop): New function.
7505 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7506 attribute.
7507 * gdbtypes.c: Include dwarf2loc.h.
7508 (is_dynamic_type): New function.
7509 (resolve_dynamic_type): New function.
7510 (resolve_dynamic_bounds): New function.
7511 (get_type_length): New function.
7512 (check_typedef): Use get_type_length to compute type length.
7513 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7514 (TYPE_LOW_BOUND_KIND): New macro.
7515 (is_dynamic_type): New function prototype.
7516 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7517 to resolve dynamic properties of the type. Update comment.
7518 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7519
7520 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7521 passed to sizeof is dynamic evaluate the argument to compute the length.
7522
7523 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7524 value and retrieve the dynamic type size.
7525
7526 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7527 (ada_template_to_fixed_record_type_1): Likewise.
7528 (ada_to_fixed_type_1): Likewise.
7529 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7530 (cp_print_value): Likewise.
7531 * d-valprint.c (dynamic_array_type): Likewise.
7532 * eval.c (evaluate_subexp_with_coercion): Likewise.
7533 * findvar.c (address_of_variable): Likewise.
7534 * jv-valprint.c (java_value_print): Likewise.
7535 * valops.c (value_ind): Likewise.
7536 * value.c (coerce_ref): Likewise.
7537
7538 * c-typeprint.c (c_type_print_varspec_suffix): Added
7539 check for not yet resolved high bound. If unresolved, print
7540 "variable length" string to the console instead of random
7541 length.
7542
7543 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7544 property and store it as the high bound and flag the range accordingly.
7545 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7546 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7547 * gdbtypes.h (enum range_flags): New enum.
7548 (struct range_bounds): Add flags member.
7549
7550 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7551 points to a constant blob.
7552
7553 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7554 (evaluate_subexp_standard): Pass noside argument.
7555 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7556 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7557 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7558 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7559 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7560
245a5f0b
KS
75612014-04-11 Keith Seitz <keiths@redhat.com>
7562
7563 PR c++/16675
7564 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
7565 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
7566 reference types.
7567
3bce8237
SA
75682014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7569
7570 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7571 (evaluate_subexp_standard): Pass noside argument.
7572 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7573 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7574 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7575 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7576 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7577
92b09522
SA
75782014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7579
7580 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7581 points to a constant blob.
7582
e1969afb
SA
75832014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7584
7585 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7586 property and store it as the high bound and flag the range accordingly.
7587 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7588 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7589 * gdbtypes.h (enum range_flags): New enum.
7590 (struct range_bounds): Add flags member.
7591
b86138fb
SA
75922014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7593
7594 * c-typeprint.c (c_type_print_varspec_suffix): Added
7595 check for not yet resolved high bound. If unresolved, print
7596 "variable length" string to the console instead of random
7597 length.
7598
bcd629a4
SA
75992014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7600
7601 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7602 (ada_template_to_fixed_record_type_1): Likewise.
7603 (ada_to_fixed_type_1): Likewise.
7604 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7605 (cp_print_value): Likewise.
7606 * d-valprint.c (dynamic_array_type): Likewise.
7607 * eval.c (evaluate_subexp_with_coercion): Likewise.
7608 * findvar.c (address_of_variable): Likewise.
7609 * jv-valprint.c (java_value_print): Likewise.
7610 * valops.c (value_ind): Likewise.
7611 * value.c (coerce_ref): Likewise.
7612
04b19544
SA
76132014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7614
7615 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7616 value and retrieve the dynamic type size.
7617
26cb189f
SA
76182014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7619
7620 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7621 passed to sizeof is dynamic evaluate the argument to compute the length.
7622
37c1ab67
SA
76232014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7624
7625 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7626 (dwarf2_evaluate_property): New function.
7627 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7628 * dwarf2read.c (attr_to_dynamic_prop): New function.
7629 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7630 attribute.
7631 * gdbtypes.c: Include dwarf2loc.h.
7632 (is_dynamic_type): New function.
7633 (resolve_dynamic_type): New function.
7634 (resolve_dynamic_bounds): New function.
7635 (get_type_length): New function.
7636 (check_typedef): Use get_type_length to compute type length.
7637 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7638 (TYPE_LOW_BOUND_KIND): New macro.
7639 (is_dynamic_type): New function prototype.
7640 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7641 to resolve dynamic properties of the type. Update comment.
7642 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7643
729efb13
SA
76442014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7645
7646 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
7647 declaring high/low bounds and change uses accordingly. Call
7648 create_range_type instead of create_static_range_type.
7649 * gdbtypes.c (create_range_type): New function.
7650 (create_range_type): Convert bounds into struct bound_prop and pass
7651 them to create_range_type.
7652 * gdbtypes.h (struct bound_prop): New struct.
7653 (create_range_type): New function prototype.
7654 (struct range_bounds): Use struct bound_prop instead of LONGEST for
7655 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
7656 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
7657 part of the bound.
7658 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
7659
0c9c3474
SA
76602014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7661
7662 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
7663 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
7664 * ada-lang.c: All uses of create_range_type updated.
7665 * coffread.c: All uses of create_range_type updated.
7666 * dwarf2read.c: All uses of create_range_type updated.
7667 * f-exp.y: All uses of create_range_type updated.
7668 * m2-valprint.c: All uses of create_range_type updated.
7669 * mdebugread.c: All uses of create_range_type updated.
7670 * stabsread.c: All uses of create_range_type updated.
7671 * valops.c: All uses of create_range_type updated.
7672 * valprint.c: All uses of create_range_type updated.
7673
9d497a19
PA
76742014-04-10 Pedro Alves <palves@redhat.com>
7675
7676 * breakpoint.c (single_step_breakpoints)
7677 (single_step_gdbarch): Move up in the file.
7678 (one_breakpoint_xfer_memory): New function, factored out from ...
7679 (breakpoint_xfer_memory): ... here. Also process single-step
7680 breakpoints.
7681
15a9128a
TG
76822014-04-09 Tristan Gingold <gingold@adacore.com>
7683
7684 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
7685 comments.
7686 (darwin_decode_exception_message): Free port only after use.
7687
9c97a070
PL
76882014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
7689
7690 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
7691 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
7692 when setting the size of call_length.
7693
7af389b8
SC
76942014-04-07 Siva Chandra Reddy <sivachandra@google.com>
7695
7696 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
7697 dereference TYPE_CODE_REF values.
7698
86ad98c3
JB
76992014-04-07 Joel Brobecker <brobecker@adacore.com>
7700
7701 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
7702 end of warning message.
7703
b0aeadb3
DE
77042014-04-03 Doug Evans <dje@google.com>
7705
7706 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
7707 of stub_comp_unit_die, stub_comp_dir is non-NULL.
7708
5979d6b6
AM
77092014-04-02 Alan Modra <amodra@gmail.com>
7710
7711 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
7712 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
7713 (struct symbol_file_add_from_memory_args): Add size field.
7714 (find_vdso_size): New function.
7715 (add_vsyscall_page): Attempt to find vdso size.
7716
0d60c288
DE
77172014-04-01 Doug Evans <dje@google.com>
7718
7719 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
7720
a41f2563
TG
77212014-04-01 Tristan Gingold <gingold@adacore.com>
7722
7723 * darwin-nat.c (darwin_encode_reply): Add prototype.
7724 (darwin_decode_exception_message): Reply to unknown inferiors.
7725 (darwin_decode_message): Handle message by id. Ignore message
7726 to unknown inferior.
7727 (darwin_wait): Discard unknown messages, add debug trace.
7728
11a865c8
DE
77292014-03-31 Doug Evans <dje@google.com>
7730
7731 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
7732 comp_dir_string.
7733
770e7fc7
DE
77342014-03-31 Doug Evans <dje@google.com>
7735
7736 New option "set print symbol-loading".
7737 * NEWS: Mention it.
7738 * solib.c (solib_read_symbols): Only print symbol loading messages
7739 if requested.
7740 (solib_add): If symbol loading is in "brief" mode, notify user
7741 symbols are being loaded.
7742 (reload_shared_libraries_1): Ditto.
7743 * symfile.c (print_symbol_loading_off): New static global.
7744 (print_symbol_loading_brief): New static global.
7745 (print_symbol_loading_full): New static global.
7746 (print_symbol_loading_enums): New static global.
7747 (print_symbol_loading): New static global.
7748 (print_symbol_loading_p): New function.
7749 (symbol_file_add_with_addrs): Only print symbol loading messages
7750 if requested.
7751 (_initialize_symfile): Register "print symbol-loading" set/show
7752 command.
7753 * symfile.h (print_symbol_loading_p): Declare.
7754
c32c64b7
DE
77552014-03-30 Doug Evans <xdje42@gmail.com>
7756
7757 * infrun.c (set_last_target_status): New function.
7758 (handle_inferior_event): Call it.
7759
7c0bc051
DE
77602014-03-30 Doug Evans <xdje42@gmail.com>
7761
7762 * inferior.h (enum stop_kind): Improve comment.
7763
8776cfe9
JB
77642014-03-28 Joel Brobecker <brobecker@adacore.com>
7765
7766 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
7767 a reference, strip the reference layer before calling
7768 the lang_ops value_has_mutated callback.
7769
410a0ff2
SDJ
77702014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
7771
7772 Remove some globals from our parser.
7773 * language.c (unk_lang_parser): Add "struct parser_state"
7774 argument.
7775 * language.h (struct language_defn) <la_parser>: Likewise.
7776 * parse.c (expout, expout_size, expout_ptr): Remove variables.
7777 (initialize_expout): Add "struct parser_state" argument.
7778 Rewrite function to use the parser state.
7779 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
7780 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
7781 write_exp_elt_longcst, write_exp_elt_dblcst,
7782 write_exp_elt_decfloatcst, write_exp_elt_type,
7783 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
7784 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
7785 write_dollar_variable): Likewise.
7786 (parse_exp_in_context_1): Use parser state.
7787 (insert_type_address_space): Add "struct parser_state" argument.
7788 Use parser state.
7789 (increase_expout_size): New function.
7790 * parser-defs.h: Forward declare "struct language_defn" and
7791 "struct parser_state".
7792 (expout, expout_size, expout_ptr): Remove extern declarations.
7793 (parse_gdbarch, parse_language): Rewrite macro declarations to
7794 accept the parser state.
7795 (struct parser_state): New struct.
7796 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
7797 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
7798 write_exp_elt_decfloatcst, write_exp_elt_type,
7799 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
7800 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
7801 write_exp_msymbol, write_dollar_variable,
7802 mark_struct_expression, insert_type_address_space): Add "struct
7803 parser_state" argument.
7804 (increase_expout_size): New function.
7805 * utils.c (do_clear_parser_state): New function.
7806 (make_cleanup_clear_parser_state): Likewise.
7807 * utils.h (make_cleanup_clear_parser_state): New function
7808 prototype.
7809 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
7810 Update calls to write_exp* in order to pass the parser state.
7811 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
7812 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
7813 (i386_stap_parse_special_token_three_arg_disp): Likewise.
7814 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
7815 * stap-probe.c (stap_parse_register_operand): Likewise.
7816 (stap_parse_single_operand): Likewise.
7817 (stap_parse_argument_1): Likewise.
7818 (stap_parse_argument): Use parser state.
7819 * stap-probe.h: Include "parser-defs.h".
7820 (struct stap_parse_info) <pstate>: New field.
7821 * c-exp.y (parse_type): Rewrite to use parser state.
7822 (yyparse): Redefine to c_parse_internal.
7823 (pstate): New global variable.
7824 (parse_number): Add "struct parser_state" argument.
7825 (write_destructor_name): Likewise.
7826 (type_exp): Update calls to write_exp* and similars in order to
7827 use parser state.
7828 (exp1, exp, variable, qualified_name, space_identifier,
7829 typename, typebase): Likewise.
7830 (write_destructor_name, parse_number, lex_one_token,
7831 classify_name, classify_inner_name, c_parse): Add "struct
7832 parser_state" argument. Update function to use parser state.
7833 * c-lang.h: Forward declare "struct parser_state".
7834 (c_parse): Add "struct parser_state" argument.
7835 * ada-exp.y (parse_type): Rewrite macro to use parser state.
7836 (yyparse): Redefine macro to ada_parse_internal.
7837 (pstate): New variable.
7838 (write_int, write_object_renaming, write_var_or_type,
7839 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
7840 type_int, type_long, type_long_long, type_float, type_double,
7841 type_long_double, type_char, type_boolean, type_system_address):
7842 Add "struct parser_state" argument.
7843 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
7844 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
7845 var_or_type, aggregate, aggregate_component_list,
7846 positional_list, others, component_group,
7847 component_associations): Update calls to write_exp* and similar
7848 functions in order to use parser state.
7849 (ada_parse, write_var_from_sym, write_int,
7850 write_exp_op_with_string, write_object_renaming,
7851 find_primitive_type, write_selectors, write_ambiguous_var,
7852 write_var_or_type, write_name_assoc, type_int, type_long,
7853 type_long_long, type_float, type_double, type_long_double,
7854 type_char, type_boolean, type_system_address): Add "struct
7855 parser_state" argument. Adjust function to use parser state.
7856 * ada-lang.c (parse): Likewise.
7857 * ada-lang.h: Forward declare "struct parser_state".
7858 (ada_parse): Add "struct parser_state" argument.
7859 * ada-lex.l (processInt, processReal): Likewise. Adjust all
7860 calls to both functions.
7861 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
7862 parser state.
7863 (yyparse): Redefine macro to f_parse_internal.
7864 (pstate): New variable.
7865 (parse_number): Add "struct parser_state" argument.
7866 (type_exp, exp, subrange, typebase): Update calls to write_exp*
7867 and similars in order to use parser state.
7868 (parse_number): Adjust code to use parser state.
7869 (yylex): Likewise.
7870 (f_parse): New function.
7871 * f-lang.h: Forward declare "struct parser_state".
7872 (f_parse): Add "struct parser_state" argument.
7873 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
7874 parser state.
7875 (yyparse): Redefine macro for java_parse_internal.
7876 (pstate): New variable.
7877 (push_expression_name, push_expression_name, insert_exp): Add
7878 "struct parser_state" argument.
7879 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
7880 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
7881 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
7882 PostIncrementExpression, PostDecrementExpression,
7883 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
7884 UnaryExpressionNotPlusMinus, CastExpression,
7885 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
7886 RelationalExpression, EqualityExpression, AndExpression,
7887 ExclusiveOrExpression, InclusiveOrExpression,
7888 ConditionalAndExpression, ConditionalOrExpression,
7889 ConditionalExpression, Assignment, LeftHandSide): Update
7890 calls to write_exp* and similars in order to use parser state.
7891 (parse_number): Ajust code to use parser state.
7892 (yylex): Likewise.
7893 (java_parse): New function.
7894 (push_variable): Add "struct parser_state" argument. Adjust
7895 code to user parser state.
7896 (push_fieldnames, push_qualified_expression_name,
7897 push_expression_name, insert_exp): Likewise.
7898 * jv-lang.h: Forward declare "struct parser_state".
7899 (java_parse): Add "struct parser_state" argument.
7900 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
7901 parser state.
7902 (yyparse): Redefine macro to m2_parse_internal.
7903 (pstate): New variable.
7904 (type_exp, exp, fblock, variable, type): Update calls to
7905 write_exp* and similars to use parser state.
7906 (yylex): Likewise.
7907 (m2_parse): New function.
7908 * m2-lang.h: Forward declare "struct parser_state".
7909 (m2_parse): Add "struct parser_state" argument.
7910 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
7911 * objc-lang.h: Forward declare "struct parser_state".
7912 (end_msglist): Add "struct parser_state" argument.
7913 * p-exp.y (parse_type): Rewrite macro to use parser state.
7914 (yyparse): Redefine macro to pascal_parse_internal.
7915 (pstate): New variable.
7916 (parse_number): Add "struct parser_state" argument.
7917 (type_exp, exp1, exp, qualified_name, variable): Update calls to
7918 write_exp* and similars in order to use parser state.
7919 (parse_number, yylex): Adjust code to use parser state.
7920 (pascal_parse): New function.
7921 * p-lang.h: Forward declare "struct parser_state".
7922 (pascal_parse): Add "struct parser_state" argument.
7923 * go-exp.y (parse_type): Rewrite macro to use parser state.
7924 (yyparse): Redefine macro to go_parse_internal.
7925 (pstate): New variable.
7926 (parse_number): Add "struct parser_state" argument.
7927 (type_exp, exp1, exp, variable, type): Update calls to
7928 write_exp* and similars in order to use parser state.
7929 (parse_number, lex_one_token, classify_name, yylex): Adjust code
7930 to use parser state.
7931 (go_parse): Likewise.
7932 * go-lang.h: Forward declare "struct parser_state".
7933 (go_parse): Add "struct parser_state" argument.
7934
342587c4
DE
79352014-03-27 Doug Evans <dje@google.com>
7936
7937 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
7938
33e80786
DE
79392014-03-27 Doug Evans <dje@google.com>
7940
7941 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
7942 Remove argument abbrev_section. All callers updated.
7943
1dbab08b
DE
79442014-03-27 Doug Evans <dje@google.com>
7945
7946 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
7947 addr_base, ranges_base.
7948
318d3177
KS
79492014-03-26 Keith Seitz <keiths@redhat.com>
7950
7951 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
7952 types, not VAR_DOMAIN.
7953
1e54db15
SL
79542014-03-25 Sandra Loosemore <sandra@codesourcery.com>
7955
7956 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
7957 "ra" registers.
7958 * features/nios2-linux.c: Regenerated.
7959 * features/nios2.c: Regenerated.
7960
d3839ede
PA
79612014-03-25 Pedro Alves <palves@redhat.com>
7962
7963 * cli/cli-script.c (script_from_file): Force the interpreter to
7964 sync mode.
7965
7588d2ec
PL
79662014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
7967
7968 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
7969 small stack allocation.
7970
a6290449
TG
79712014-03-24 Tristan Gingold <gingold@adacore.com>
7972
7973 * darwin-nat.c (exc_server): Remove unused prototype.
7974 (darwin_dump_message): Correctly display data on x86_64.
7975 (darwin_encode_reply): Fix style.
7976 Add comments and fix indentation.
7977
31ae9d24 79782014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
69fa4030
PL
7979
7980 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
7981
6339bfc4
DE
79822014-03-22 Doug Evans <xdje42@gmail.com>
7983
7984 * infcmd.c: Whitespace fixes.
7985 (interrupt_command): Merge two function comments into one.
7986
0a07590b
DE
79872014-03-22 Doug Evans <xdje42@gmail.com>
7988
7989 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
7990 All uses updated.
7991
b55fbac4
YQ
79922014-03-22 Yao Qi <yao@codesourcery.com>
7993
7994 * remote.c (target_read_live_memory): Remove.
7995 (memory_xfer_live_readonly_partial): Rename it to
7996 remote_xfer_live_readonly_partial. Remove argument 'object'.
7997 All callers updated. Call remote_read_bytes_1
7998 instead of target_read_live_memory.
7999 * tracepoint.c (set_traceframe_number): Remove.
8000 (make_cleanup_restore_traceframe_number): Likewise .
8001 * tracepoint.h (set_traceframe_number): Remove declaration.
8002 (make_cleanup_restore_traceframe_number): Likewise.
8003
9217e74e
YQ
80042014-03-22 Yao Qi <yao@codesourcery.com>
8005
8006 * remote.c (remote_read_bytes): Move code on reading from the
8007 remote stub to ...
8008 (remote_read_bytes_1): ... here. New function.
8009
8acf9577
YQ
80102014-03-22 Yao Qi <yao@codesourcery.com>
8011
8012 * ctf.c (ctf_xfer_partial): Check the return value of
8013 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
8014 return TARGET_XFER_UNAVAILABLE.
8015 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8016 * target.c (target_read_live_memory): Move it to remote.c.
8017 (memory_xfer_live_readonly_partial): Likewise.
8018 (memory_xfer_partial_1): Move some code to remote_read_bytes.
8019 * remote.c (target_read_live_memory): Moved from target.c.
8020 (memory_xfer_live_readonly_partial): Likewise.
8021 (remote_read_bytes): Factored out from
8022 memory_xfer_partial_1.
8023
feef67ab
DE
80242014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
8025
8026 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
8027 NULL pointer.
8028
b65dc60b
PA
80292014-03-21 Pedro Alves <palves@redhat.com>
8030
8031 * infrun.c (normal_stop): Extend comment.
8032
b4ab256d
HZ
80332014-03-21 Hui Zhu <hui@codesourcery.com>
8034 Pedro Alves <palves@redhat.com>
8035
8036 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
8037 static buffer.
8038 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
8039 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
8040 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
8041
deba7593
MR
80422014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
8043
8044 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
8045 `z' formatted output modifier.
8046
1bff71c3
SDJ
80472014-03-20 Tom Tromey <tromey@redhat.com>
8048 Sergio Durigan Junior <sergiodj@redhat.com>
8049
8050 * probe.c (parse_probes): Turn assert into an ordinary error.
8051 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
8052 exceptions when parsing probes. Rearrange the code for clarity.
8053
90e28950
TT
80542014-03-20 Tom Tromey <tromey@redhat.com>
8055
8056 PR gdb/14135
8057 * top.c (execute_command): Only dispatch events if the command
8058 started the target.
8059
beb460e8
PA
80602014-03-20 Tom Tromey <tromey@redhat.com>
8061
8062 PR cli/15718
8063 * infcall.c: Include event-top.h.
8064 (run_inferior_call): Call async_disable_stdin if needed.
8065
99619bea
PA
80662014-03-20 Pedro Alves <palves@redhat.com>
8067
8068 * infrun.c (prepare_to_proceed): Delete.
8069 (thread_still_needs_step_over): New function.
8070 (find_thread_needs_step_over): New function.
8071 (proceed): If the current thread needs a step-over, set its
8072 steping_over_breakpoint flag. Adjust to use
8073 find_thread_needs_step_over instead of prepare_to_proceed.
8074 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
8075 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
8076 breakpoint.
8077 (switch_back_to_stepped_thread): Step over breakpoints of all
8078 threads not the stepping thread, before switching back to the
8079 stepping thread.
8080
2adfaa28
PA
80812014-03-20 Pedro Alves <palves@redhat.com>
8082
8083 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
8084 extern.
8085 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
8086 * infrun.c (saved_singlestep_ptid)
8087 (stepping_past_singlestep_breakpoint): Delete.
8088 (resume): Remove stepping_past_singlestep_breakpoint handling.
8089 (proceed): Store the prev_pc of the stepping thread too.
8090 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
8091 singlestep_pc.
8092 (enum infwait_states): Delete infwait_thread_hop_state.
8093 (struct execution_control_state) <hit_singlestep_breakpoint>: New
8094 field.
8095 (handle_inferior_event): Adjust.
8096 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
8097 handling and the thread-hop code. Before removing single-step
8098 breakpoints, check whether the thread hit a single-step breakpoint
8099 of another thread. If it did, the trap is not a random signal.
8100 (switch_back_to_stepped_thread): If the event thread hit a
8101 single-step breakpoint, unblock it before switching to the
8102 stepping thread. Handle the case of the stepped thread having
8103 advanced already.
8104 (keep_going): Handle the case of the current thread moving past a
8105 single-step breakpoint.
8106
31e77af2
PA
81072014-03-20 Pedro Alves <palves@redhat.com>
8108
8109 PR breakpoints/7143
8110 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
8111 are being stepped over.
8112 (breakpoint_address_match): Make extern.
8113 * breakpoint.h (breakpoint_address_match): New declaration.
8114 * inferior.h (stepping_past_instruction_at): New declaration.
8115 * infrun.c (struct step_over_info): New type.
8116 (step_over_info): New global.
8117 (set_step_over_info, clear_step_over_info)
8118 (stepping_past_instruction_at): New functions.
8119 (handle_inferior_event): Clear the step-over info when
8120 trap_expected is cleared.
8121 (resume): Remove now stale comment.
8122 (clear_proceed_status): Clear step-over info.
8123 (proceed): Adjust step-over handling to set or clear the step-over
8124 info instead of removing all breakpoints.
8125 (handle_signal_stop): When setting up a thread-hop, don't remove
8126 breakpoints here.
8127 (stop_stepping): Clear step-over info.
8128 (keep_going): Adjust step-over handling to set or clear step-over
8129 info and then always inserting breakpoints, instead of removing
8130 all breakpoints when stepping over one.
8131
b9f437de
PA
81322014-03-20 Pedro Alves <palves@redhat.com>
8133
8134 * infrun.c (previous_inferior_ptid): Adjust comment.
8135 (deferred_step_ptid): Delete.
8136 (infrun_thread_ptid_changed, prepare_to_proceed)
8137 (init_wait_for_inferior): Adjust.
8138 (handle_signal_stop): Delete deferred_step_ptid handling.
8139
06c868a8
JK
81402014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
8141
8142 PR gdb/15358
8143 * defs.h (sync_quit_force_run): New declaration.
8144 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
8145 * event-top.c (async_sigterm_handler): New declaration.
8146 (async_sigterm_token): New variable.
8147 (async_init_signals): Create also async_sigterm_token.
8148 (async_sigterm_handler): New function.
8149 (sync_quit_force_run): New variable.
8150 (handle_sigterm): Replace quit_force call by other calls.
8151 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
8152
dea80df0
MR
81532014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
8154
8155 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
8156 offset into SPE pseudo registers.
8157
0c7e1a46
PA
81582014-03-18 Pedro Alves <palves@redhat.com>
8159
8160 PR gdb/13860
8161 * inferior.h (print_stop_event): Declare.
8162 * infrun.c (print_stop_event): New, factored out from ...
8163 (normal_stop): ... this.
8164 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
8165 of bpstat_print/print_stack_frame.
8166
9c1fcd01
TT
81672014-03-17 Tom Tromey <tromey@redhat.com>
8168
8169 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
8170
11aa919a
PMR
81712014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
8172
8173 * ada-lang.c (decode_constrained_packed_array): Perform a
8174 minimal coercion for reference with coerce_ref instead of
8175 ada_coerce_ref.
8176
d4ccb5e0
TG
81772014-03-17 Tristan Gingold <gingold@adacore.com>
8178
8179 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
8180 (darwin_solib_create_inferior_hook): Emit a warning if version
8181 is unhandled.
8182
49840f2a
UW
81832014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
8184
8185 * python/py-value.c (get_field_flag): Cast flag_name argument to
8186 PyObject_GetAttrString to support Python 2.4.
8187
ed4123e5
JK
81882014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8189
8190 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
8191 (Global Maintainers): Remove Jan Kratochvil.
8192
d6b64346
PA
81932014-03-14 Pedro Alves <palves@redhat.com>
8194
8195 * inferior.h (terminal_ours_for_output): Rename to ...
8196 (child_terminal_ours_for_output): ... this.
8197 (terminal_save_ours): Rename to ...
8198 (child_terminal_save_ours): ... this.
8199 (terminal_ours): Rename to ...
8200 (child_terminal_ours): ... this.
8201 (terminal_inferior): Rename to ...
8202 (child_terminal_inferior): ... this.
8203 (terminal_init_inferior): Rename to ...
8204 (child_terminal_init_inferior): ... this.
8205 (terminal_init_inferior_with_pgrp): Rename to ...
8206 (child_terminal_init_inferior_with_pgrp): ... this.
8207 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
8208 (child_terminal_init_with_pgrp): ... this.
8209 (terminal_save_ours): Rename to ...
8210 (child_terminal_save_ours): ... this.
8211 (terminal_init_inferior): Rename to ...
8212 (child_terminal_init): ... this. Adjust.
8213 (terminal_inferior): Rename to ...
8214 (child_terminal_inferior): ... this.
8215 (terminal_ours_for_output): Rename to ...
8216 (child_terminal_ours_for_output): ... this. Adjust.
8217 (terminal_ours): Rename to ...
8218 (child_terminal_ours): ... this.
8219 (terminal_ours_1): Rename to ...
8220 (child_terminal_ours_1): ... this. Adjust.
8221 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
8222 * windows-nat.c (do_initial_windows_stuff): Adjust.
8223 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
8224 (gnu_terminal_init): ... this. Adjust.
8225 (gnu_target): Adjust.
8226 * inf-child.c (inf_child_target): Adjust.
8227
5a1e8c7a
DE
82282014-03-13 Doug Evans <xdje42@gmail.com>
8229
8230 PR guile/16612
8231 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
8232 new eq?-hashtab.
8233
350e1a76
DE
82342014-03-13 Doug Evans <xdje42@gmail.com>
8235
8236 * value.c (record_latest_value): Call release_value_or_incref
8237 instead of release_value.
8238
a69900ae
PA
82392014-03-13 Pedro Alves <palves@redhat.com>
8240
8241 * procfs.c (procfs_target): Don't override to_shortname,
8242 to_longname or to_doc.
8243
5db9f0bd
PA
82442014-03-13 Pedro Alves <palves@redhat.com>
8245
8246 * inf-child.c (inf_child_open, inf_child_target): Don't mention
8247 Unix in user visible strings.
8248
5e3a2c38
SS
82492014-03-12 Stan Shebs <stan@codesourcery.com>
8250
8251 * gdbtypes.h: Annotate comments for Doxygen, add a page
8252 block comment with some general info.
8253
8bc2fe48
PA
82542014-03-12 Pedro Alves <palves@redhat.com>
8255
8256 * infcmd.c (prepare_execution_command): New function, factored out
8257 from several execution commands.
8258 (run_command_1, continue_command, step_1, jump_command)
8259 (signal_command, until_command, advance_command, finish_command)
8260 (attach_command): Use prepare_execution_command.
8261
638c5f49
OJ
82622014-03-12 Omair Javaid <omair.javaid@linaro.org>
8263
8264 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
8265 (MAX_BPTS): Define.
8266 (MAX_WPTS): Define.
8267 (struct arm_linux_thread_points): Removed.
8268 (struct arm_linux_process_info): New.
8269 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
8270 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
8271 (arm_linux_find_breakpoints_by_tid): Removed.
8272 (struct arch_lwp_info): New.
8273 (arm_linux_find_process_pid): New functions.
8274 (arm_linux_add_process): New functions.
8275 (arm_linux_process_info_get): New functions.
8276 (arm_linux_forget_process): New function.
8277 (arm_linux_get_debug_reg_state): New function.
8278 (struct update_registers_data): New.
8279 (update_registers_callback): New function.
8280 (arm_linux_insert_hw_breakpoint1): Updated.
8281 (arm_linux_remove_hw_breakpoint1): Updated.
8282 (arm_linux_insert_hw_breakpoint): Updated.
8283 (arm_linux_remove_hw_breakpoint): Updated.
8284 (arm_linux_insert_watchpoint): Updated.
8285 (arm_linux_remove_watchpoint): Updated.
8286 (arm_linux_new_thread): Updated.
8287 (arm_linux_prepare_to_resume): New function.
8288 (arm_linux_new_fork): New function.
8289 (_initialize_arm_linux_nat): Updated.
8290
6d03af93
PA
82912014-03-12 Pedro Alves <palves@redhat.com>
8292
8293 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
8294
b3ccfe11
TT
82952014-03-12 Tom Tromey <tromey@redhat.com>
8296
8297 * inf-child.c (return_zero): New function.
8298 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
8299 * aix-thread.c (aix_thread_inferior_created): New function.
8300 (aix_thread_attach): Remove.
8301 (init_aix_thread_ops): Don't set to_attach.
8302 (_initialize_aix_thread): Register inferior_created observer.
8303 * corelow.c (init_core_ops): Don't set to_attach or
8304 to_create_inferior.
8305 * exec.c (init_exec_ops): Don't set to_attach or
8306 to_create_inferior.
8307 * infcmd.c (run_command_1): Use find_run_target. Make direct
8308 target calls.
8309 (attach_command): Use find_attach_target. Make direct target
8310 calls.
8311 * record-btrace.c (init_record_btrace_ops): Don't set
8312 to_create_inferior.
8313 * record-full.c (record_full_can_async_p, record_full_is_async_p):
8314 Remove.
8315 (init_record_full_ops, init_record_full_core_ops): Update. Don't
8316 set to_create_inferior.
8317 * target.c (complete_target_initialization): Add assertion.
8318 (target_create_inferior): Remove.
8319 (find_default_attach, find_default_create_inferior): Remove.
8320 (find_attach_target, find_run_target): New functions.
8321 (find_default_is_async_p, find_default_can_async_p)
8322 (target_supports_non_stop, target_attach): Remove.
8323 (init_dummy_target): Don't set to_create_inferior or
8324 to_supports_non_stop.
8325 * target.h (struct target_ops) <to_attach>: Add comment. Remove
8326 TARGET_DEFAULT_FUNC.
8327 <to_create_inferior>: Add comment.
8328 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
8329 TARGET_DEFAULT_RETURN.
8330 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
8331 (find_attach_target, find_run_target): Declare.
8332 (target_create_inferior): Remove.
8333 (target_has_execution_1): Update comment.
8334 (target_supports_non_stop): Remove.
8335 * target-delegates.c: Rebuild.
8336
91f83b02
PA
83372014-03-12 Pedro Alves <palves@redhat.com>
8338
8339 * inf-child.h: Update comment to not mention Unix.
8340
f1aea813
PA
83412014-03-12 Pedro Alves <palves@redhat.com>
8342
8343 * inf-child.c: Update top comment to not mention Unix. Add
8344 generic comment describing how this target is meant to be used.
8345 (inf_child_post_attach, inf_child_post_startup_inferior)
8346 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
8347 Unix in comment.
8348
ee8e9165
PA
83492014-03-12 Pedro Alves <palves@redhat.com>
8350
8351 * nto-procfs.c: Include inf-child.h.
8352 (procfs_ops): Delete global.
8353 (procfs_can_run): Delete method.
8354 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
8355 target pointer instead of referencing procfs_ops.
8356 (procfs_prepare_to_store): Delete.
8357 (init_procfs_ops): Delete function.
8358 (procfs_target): New function, based on init_procfs_ops, but
8359 inherit inf_child_target.
8360 (_initialize_procfs): Use procfs_target.
8361
51a9c8c5
PA
83622014-03-12 Pedro Alves <palves@redhat.com>
8363
8364 * windows-nat.c: Include inf-child.h.
8365 (windows_ops): Delete global.
8366 (windows_open, windows_prepare_to_store, windows_can_run): Delete
8367 methods.
8368 (init_windows_ops): Delete function.
8369 (windows_target): New function, based on init_windows_ops, but
8370 inherit inf_child_target.
8371 (_initialize_windows_nat): Use windows_target. Install x86
8372 specific target methods here.
8373
c1966e26
DE
83742014-03-10 Doug Evans <xdje42@gmail.com>
8375
8376 * guile/guile.c (call_initialize_gdb_module): New function.
8377 (initialize_guile): Replace call to scm_init_guile with call to
8378 scm_with_guile.
8379
023db19c
JB
83802014-03-10 Joel Brobecker <brobecker@adacore.com>
8381
8382 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
8383 in call to TYPE_CODE macro.
8384
5ec18f2b
JG
83852014-03-10 Jerome Guitton <guitton@adacore.com>
8386
8668be63
JB
8387 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
8388 Resolve tagged types to full view.
5ec18f2b 8389
7d03f2eb
HZ
83902014-03-10 Hui Zhu <hui@codesourcery.com>
8391
8392 * target.h (target_insert_breakpoint): Remove "hardware" from its
8393 comments.
8394
c5164cbc
DE
83952014-03-07 Doug Evans <dje@google.com>
8396
8397 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
8398
c4a3fee2
DE
83992014-03-07 Doug Evans <dje@google.com>
8400
8401 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
8402 Remove unused local comp_dir_attr. Assert exactly one of
8403 stub_comp_unit_die, stub_comp_dir is non-NULL.
8404
3156469c
JB
84052014-03-07 Joel Brobecker <brobecker@adacore.com>
8406
8407 * target.h (complete_target_initialization, add_target):
8408 Add comment.
8409
c1a7b7c6
PA
84102014-03-07 Pedro Alves <palves@redhat.com>
8411
8412 * go32-nat.c: Include inf-child.h.
8413 (go32_ops): Delete global.
8414 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
8415 Delete methods.
8416 (go32_create_inferior): Push the passed in target pointer instead
8417 of referencing go32_ops.
8418 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
8419 (go32_target): New function, based on init_go32_ops, but inherit
8420 inf_child_target.
8421 (_initialize_go32_nat): Use go32_target. Move parts of
8422 init_go32_ops here.
8423
d3c1a85f
JB
84242014-03-06 Joel Brobecker <brobecker@adacore.com>
8425
8426 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
8427 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
8428 SYMBOL_VALUE_ADDRESS.
8429 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
8430
5fa1d40e
YQ
84312014-03-06 Yao Qi <yao@codesourcery.com>
8432
8433 * breakpoint.c (get_tracepoint_by_number): Remove argument
8434 optional_p. All callers updated. Adjust comments. Update
8435 output message.
8436 * breakpoint.h (get_tracepoint_by_number): Update declaration.
8437
0c13193f
YQ
84382014-03-06 Yao Qi <yao@codesourcery.com>
8439
8440 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
8441 early if get_number returns zero. Use 'p' instead of 'args'.
8442
2217da06
YQ
84432014-03-06 Yao Qi <yao@codesourcery.com>
8444
8445 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
8446 message.
8447
cc3da688
YQ
84482014-03-06 Yao Qi <yao@codesourcery.com>
8449
8450 PR breakpoints/16508
8451 * tracepoint.c (check_trace_running): New function.
8452 (trace_find_command): Move code to check_trace_running and
8453 call check_trace_running.
8454 (trace_find_pc_command): Likewise.
8455 (trace_find_tracepoint_command): Likewise.
8456 (trace_find_line_command): Likewise.
8457 (trace_find_range_command): Likewise.
8458 * tracepoint.h (check_trace_running): Likewise.
8459 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
8460
6a5f844b
YQ
84612014-03-06 Yao Qi <yao@codesourcery.com>
8462
8463 * target.h (struct target_ops) <to_traceframe_info>: Use
8464 TARGET_DEFAULT_NORETURN (tcomplain ()).
8465 * target-delegates.c: Regenerated.
8466
0f26cec1
PA
84672014-03-05 Pedro Alves <palves@redhat.com>
8468
8469 PR gdb/16575
8470 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
8471 void. Update comment.
8472 (dcache_xfer_memory): Delete.
8473 (dcache_read_memory_partial): New, based on the read bits of
8474 dcache_xfer_memory.
8475 (dcache_update): Add status parameter. Use ULONGEST for len, and
8476 adjust. Discard cache lines if the reason for the update was
8477 error.
8478 * dcache.h (dcache_xfer_memory): Delete declaration.
8479 (dcache_read_memory_partial): New declaration.
8480 (dcache_update): Update prototype.
8481 * target.c (raw_memory_xfer_partial): Update the dcache here.
8482 (memory_xfer_partial_1): Don't handle dcache writes here.
8483
b2b255bd
MF
84842014-03-05 Mike Frysinger <vapier@gentoo.org>
8485
8486 * remote-sim.c (gdbsim_load): Add const to prog.
8487
5d9cf8a4
TT
84882014-03-03 Tom Tromey <tromey@redhat.com>
8489
8490 * elfread.c (probe_key): Change to bfd_data.
8491 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
8492 now per-BFD, not per-objfile.
8493 * stap-probe.c (stap_probe_destroy): Update comment.
8494 (handle_stap_probe): Allocate on the per-BFD obstack.
8495
729662a5
TT
84962014-03-03 Tom Tromey <tromey@redhat.com>
8497
8498 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
8499 * breakpoint.c (create_longjmp_master_breakpoint): Use
8500 get_probe_address.
8501 (add_location_to_breakpoint, bkpt_probe_insert_location)
8502 (bkpt_probe_remove_location): Update.
8503 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
8504 * elfread.c (elf_symfile_relocate_probe): Remove.
8505 (elf_probe_fns): Update.
8506 (insert_exception_resume_breakpoint): Change type of "probe"
8507 parameter to bound_probe.
8508 (check_exception_resume): Update.
8509 * objfiles.c (objfile_relocate1): Don't relocate probes.
8510 * probe.c (bound_probe_s): New typedef.
8511 (parse_probes): Use get_probe_address. Set sal's objfile.
8512 (find_probe_by_pc): Return a bound_probe.
8513 (collect_probes): Return a VEC(bound_probe_s).
8514 (compare_probes): Update.
8515 (gen_ui_out_table_header_info): Change type of "probes"
8516 parameter. Update.
8517 (info_probes_for_ops): Update.
8518 (get_probe_address): New function.
8519 (probe_safe_evaluate_at_pc): Update.
8520 * probe.h (struct probe_ops) <get_probe_address>: New field.
8521 <set_semaphore, clear_semaphore>: Add objfile parameter.
8522 (struct probe) <objfile>: Remove field.
8523 <arch>: New field.
8524 <address>: Update comment.
8525 (struct bound_probe): New.
8526 (find_probe_by_pc): Return a bound_probe.
8527 (get_probe_address): Declare.
8528 * solib-svr4.c (struct probe_and_action) <address>: New field.
8529 (hash_probe_and_action, equal_probe_and_action): Update.
8530 (register_solib_event_probe): Add address parameter.
8531 (solib_event_probe_at): Update.
8532 (svr4_create_probe_breakpoints): Add objfile parameter. Use
8533 get_probe_address.
8534 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
8535 (stap_get_probe_address): New function.
8536 (stap_can_evaluate_probe_arguments, compute_probe_arg)
8537 (compile_probe_arg): Update.
8538 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
8539 address.
8540 (handle_stap_probe): Don't relocate the probe.
8541 (stap_relocate): Remove.
8542 (stap_gen_info_probes_table_values): Update.
8543 (stap_probe_ops): Remove stap_relocate.
8544 * symfile-debug.c (debug_sym_relocate_probe): Remove.
8545 (debug_sym_probe_fns): Update.
8546 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
8547 * symtab.c (init_sal): Use memset.
8548 * symtab.h (struct symtab_and_line) <objfile>: New field.
8549 * tracepoint.c (start_tracing, stop_tracing): Update.
8550
ff887920
TT
85512014-03-03 Tom Tromey <tromey@redhat.com>
8552
8553 * probe.h (parse_probes, find_probe_by_pc)
8554 (find_probes_in_objfile): Fix comments.
8555
f0407826
DE
85562014-03-02 Doug Evans <xdje42@gmail.com>
8557
8558 * infrun.c (handle_signal_stop): Replace test for
8559 TARGET_WAITKIND_STOPPED with an assert.
8560
35e6a711
DE
85612014-03-02 Doug Evans <xdje42@gmail.com>
8562
8563 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
8564
667f9d0b
DE
85652014-03-02 Doug Evans <xdje42@gmail.com>
8566
8567 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
8568
dc92ace0
MK
85692014-03-01 Mark Kettenis <kettenis@gnu.org>
8570
8571 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
8572
a900370f
MK
85732014-03-01 Mark Kettenis <kettenis@gnu.org>
8574
8575 * i386obsd-nat.c: Include "obsd-nat.h".
8576 (_initialize_i386obsd_nat): Call obsd_add_target instead of
8577 add_target.
8578 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8579
b72a7981
MK
85802014-03-01 Mark Kettenis <kettenis@gnu.org>
8581
8582 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
8583
96c70aba
MK
85842014-03-01 Mark Kettenis <kettenis@gnu.org>
8585
8586 * mips64obsd-nat.c: Include "obsd-nath".
8587 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
8588 add_target
8589 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8590
874a80af
MK
85912014-03-01 Mark Kettenis <kettenis@gnu.org>
8592
8fd408f1
MK
8593 * amd64obsd-nat.c: Include "obsd-nat,h.
8594 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
8595 add_target.
874a80af
MK
8596 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8597
9cf95373
SC
85982014-02-28 Siva Chandra Reddy <sivachandra@google.com>
8599
8600 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
8601 (find_overload_match): Update call to find_oload_champ.
8602 (find_oload_champ_namespace_loop): Likewise
8603
863e4da4
MK
86042014-02-28 Mark Kettenis <kettenis@gnu.org>
8605
025cac40
MK
8606 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
8607
1ed586ce
MK
8608 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
8609 * config/sparc/obsd64.mh: New file.
8610 * sparc64obsd-nat.c: New file.
8611
863e4da4
MK
8612 * obsd-nat.h: New file.
8613 * obsd-nat.c: New file.
8614 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
8615 (ALLDEPFILES): Add obsd-nat.c.
8616
89de4da4
TT
86172014-02-28 Tom Tromey <tromey@redhat.com>
8618
8619 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
8620 * cli-out.h (cli_ui_out_impl): Now const.
8621 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
8622 * ui-out.c (struct ui_out) <impl>: Now const.
8623 (default_ui_out_impl): Now const.
8624 (ui_out_new): Make 'impl' parameter const.
8625 * ui-out.h (ui_out_new): Update.
8626
c725e7b6
MK
86272014-02-27 Mark Kettenis <kettenis@gnu.org>
8628
8629 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
8630
670b46b3
MK
86312014-02-27 Mark Kettenis <kettenis@gnu.org>
8632
8633 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
8634
c91550fc
JK
86352014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
8636
8637 Additional PR 8882 fix.
8638 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
8639
2fa0369e
PA
86402014-02-27 Pedro Alves <palves@redhat.com>
8641
8642 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
8643 isn't set.
8644
d632a097
PA
86452014-02-27 Pedro Alves <palves@redhat.com>
8646
8647 PR 12702
8648 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
8649 * nat/linux-waitpid.c: Include string.h.
8650 (status_to_str): Moved here and made extern.
8651 * nat/linux-waitpid.h (status_to_str): New declaration.
8652
2ebd5a35
HZ
86532014-02-27 Hui Zhu <hui@codesourcery.com>
8654
8655 PR 12702
8656 * infrun.c (ptid_match): Move ...
8657 * common/ptid.c (ptid_match): ... here.
8658 * inferior.h (ptid_match): Move ...
8659 * common/ptid.h (ptid_match): ... here.
8660
3cdd631f
MK
86612014-02-27 Mark Kettenis <kettenis@gnu.org>
8662
8663 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
8664 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
8665 gdb_target_obs.
8666
bee30a64
MK
86672014-02-27 Mark Kettenis <kettenis@gnu.org>
8668
8669 * obsd-tdep.c (obsd_auxv_parse): New function.
8670 (obsd_init_abi): Set auxv_parse.
27a48a92
MK
8671
8672 * gdbarch.sh (auxv_parse): New.
8673 * gdbarch.h: Regenerated.
8674 * gdbarch.c: Regenerated.
8675 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
8676
7a5a839f
LC
86772014-02-26 Ludovic Courtès <ludo@gnu.org>
8678
8679 * guile/scm-value.c (gdbscm_history_append_x): New function.
8680 (value_functions): Add it.
8681
31aa7e4e
JB
86822014-02-27 Joel Brobecker <brobecker@adacore.com>
8683
8684 * dwarf2read.c (attr_value_as_address): New function.
8685 (dwarf2_find_base_address, read_call_site_scope): Use
8686 attr_value_as_address in place of DW_ADDR.
8687 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
8688 the low and high addresses. Slight rework of the handling
8689 of the high pc being a constant form, and limit it to
8690 DWARF verson 4 or higher.
8691 (dwarf2_record_block_ranges): Likewise.
8692 (read_partial_die): Likewise.
8693 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
8694
9b333ba3
TT
86952014-02-26 Tom Tromey <tromey@redhat.com>
8696
8697 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
8698
5f6cac40
TT
86992014-02-26 Tom Tromey <tromey@redhat.com>
8700
8701 * elfread.c (elf_read_minimal_symbols): Return early if
8702 minimal symbols have already been read. Add "ei" parameter.
8703 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
8704 * minsyms.c (prim_record_minimal_symbol_full): Update.
8705 * objfiles.h (struct objstats) <n_minsyms>: Move...
8706 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
8707 * symmisc.c (print_objfile_statistics): Update.
8708
2750ef27
TT
87092014-02-26 Tom Tromey <tromey@redhat.com>
8710
8711 * elfread.c (elf_read_minimal_symbols): New function, from
8712 elf_symfile_read.
8713 (elf_symfile_read): Call it.
8714
34643a32
TT
87152014-02-26 Tom Tromey <tromey@redhat.com>
8716
8717 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
8718 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
8719 (lookup_minimal_symbol_solib_trampoline)
8720 (lookup_minimal_symbol_by_pc_section_1)
8721 (lookup_minimal_symbol_and_objfile): Update.
8722 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
8723 Don't allocate a minimal symbol if minsyms have already been read.
8724 (build_minimal_symbol_hash_tables): Update.
8725 (install_minimal_symbols): Do nothing if minsyms already read.
8726 Use the per-BFD obstack.
8727 (terminate_minimal_symbol_table): Use the per-BFD obstack.
8728 * objfiles.c (allocate_objfile): Call
8729 terminate_minimal_symbol_table later.
8730 (have_minimal_symbols): Update.
8731 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
8732 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
8733 Move from struct objfile.
8734 <minsyms_read>: New field.
8735 (struct objfile) <msymbols, minimal_symbol_count,
8736 msymbol_hash, msymbol_demangled_hash>: Move.
8737 (ALL_OBJFILE_MSYMBOLS): Update.
8738 * symfile.c (read_symbols): Set minsyms_read.
8739 (reread_symbols): Update.
8740 * symmisc.c (dump_objfile, dump_msymbols): Update.
8741
2273f0ac
TT
87422014-02-26 Tom Tromey <tromey@redhat.com>
8743
8744 * minsyms.c (msymbols_sort): Remove.
8745 * minsyms.h (msymbols_sort): Remove.
8746 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
8747 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
8748 * elfread.c (elf_symtab_read): Don't add section offsets.
8749 * xcoffread.c (record_minimal_symbol): Don't add section offset
8750 to minimal symbol address.
8751 * somread.c (text_offset, data_offset): Remove.
8752 (som_symtab_read): Don't add section offsets to minimal symbol
8753 addresses.
8754 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
8755 Don't add section offsets to minimal symbols.
8756 * coffread.c (coff_symtab_read): Don't add section offsets
8757 to minimal symbol addresses.
8758 * machoread.c (macho_symtab_add_minsym): Don't add section offset
8759 to minimal symbol addresses.
8760 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
8761 section offset to minimal symbol addresses.
8762 * mdebugread.c (parse_partial_symbols): Don't add section
8763 offset to minimal symbol addresses.
8764 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
8765 offset to minimal symbol addresses.
8766
77e371c0
TT
87672014-02-26 Tom Tromey <tromey@redhat.com>
8768
8769 * ada-lang.c (ada_main_name): Update.
8770 (ada_add_standard_exceptions): Update.
8771 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
8772 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8773 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
8774 * auxv.c (ld_so_xfer_auxv): Update.
8775 * avr-tdep.c (avr_scan_prologue): Update.
8776 * ax-gdb.c (gen_var_ref): Update.
8777 * blockframe.c (get_pc_function_start)
8778 (find_pc_partial_function_gnu_ifunc): Update.
8779 * breakpoint.c (create_overlay_event_breakpoint)
8780 (create_longjmp_master_breakpoint)
8781 (create_std_terminate_master_breakpoint)
8782 (create_exception_master_breakpoint): Update.
8783 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8784 * c-valprint.c (c_val_print): Update.
8785 * coff-pe-read.c (add_pe_forwarded_sym): Update.
8786 * common/agent.c (agent_look_up_symbols): Update.
8787 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
8788 * dwarf2loc.c (call_site_to_target_addr): Update.
8789 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
8790 * elfread.c (elf_gnu_ifunc_record_cache)
8791 (elf_gnu_ifunc_resolve_by_got): Update.
8792 * findvar.c (default_read_var_value): Update.
8793 * frame.c (inside_main_func): Update.
8794 * frv-tdep.c (frv_frame_this_id): Update.
8795 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8796 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
8797 Update.
8798 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
8799 (hppa_hpux_find_dummy_bpaddr): Update.
8800 * hppa-tdep.c (hppa_symbol_address): Update.
8801 * infcmd.c (until_next_command): Update.
8802 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
8803 Update.
8804 * linespec.c (minsym_found, add_minsym): Update.
8805 * linux-nat.c (get_signo): Update.
8806 * linux-thread-db.c (inferior_has_bug): Update.
8807 * m32c-tdep.c (m32c_return_value)
8808 (m32c_m16c_address_to_pointer): Update.
8809 * m32r-tdep.c (m32r_frame_this_id): Update.
8810 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8811 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8812 * maint.c (maintenance_translate_address): Update.
8813 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
8814 (frob_address): New function.
8815 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
8816 frob_address. Rename parameter to "pc_in".
8817 (compare_minimal_symbols, compact_minimal_symbols): Use raw
8818 addresses.
8819 (find_solib_trampoline_target, minimal_symbol_upper_bound):
8820 Update.
8821 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8822 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
8823 * objc-lang.c (find_objc_msgsend): Update.
8824 * objfiles.c (objfile_relocate1): Update.
8825 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8826 * p-valprint.c (pascal_val_print): Update.
8827 * parse.c (write_exp_msymbol): Update.
8828 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
8829 (ppc_elfv2_skip_entrypoint): Update.
8830 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8831 * printcmd.c (build_address_symbolic, msym_info)
8832 (address_info): Update.
8833 * proc-service.c (ps_pglobal_lookup): Update.
8834 * psymtab.c (find_pc_sect_psymtab_closer)
8835 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
8836 Change msymbol parameter to bound_minimal_symbol.
8837 * ravenscar-thread.c (get_running_thread_id): Update.
8838 * remote.c (remote_check_symbols): Update.
8839 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
8840 address.
8841 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8842 * solib-dsbt.c (lm_base): Update.
8843 * solib-frv.c (lm_base, main_got): Update.
8844 * solib-irix.c (locate_base): Update.
8845 * solib-som.c (som_solib_create_inferior_hook)
8846 (link_map_start): Update.
8847 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
8848 * solib-svr4.c (elf_locate_base, enable_break): Update.
8849 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
8850 (flush_ea_cache): Update.
8851 * stabsread.c (define_symbol, scan_file_globals): Update.
8852 * stack.c (find_frame_funname): Update.
8853 * symfile-debug.c (debug_qf_expand_symtabs_matching)
8854 (debug_qf_find_pc_sect_symtab): Update.
8855 * symfile.c (simple_read_overlay_table)
8856 (simple_overlay_update): Update.
8857 * symfile.h (struct quick_symbol_functions)
8858 <find_pc_sect_symtab>: Change type of msymbol to
8859 bound_minimal_symbol.
8860 * symmisc.c (dump_msymbols): Update.
8861 * symtab.c (find_pc_sect_symtab_via_partial)
8862 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
8863 (search_symbols, print_msymbol_info): Update.
8864 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
8865 (MSYMBOL_VALUE_ADDRESS): Redefine.
8866 (BMSYMBOL_VALUE_ADDRESS): New macro.
8867 * tracepoint.c (scope_info): Update.
8868 * tui/tui-disasm.c (tui_find_disassembly_address)
8869 (tui_get_begin_asm_address): Update.
8870 * valops.c (find_function_in_inferior): Update.
8871 * value.c (value_static_field, value_fn_field): Update.
8872
3b7344d5
TT
88732014-02-26 Tom Tromey <tromey@redhat.com>
8874
8875 * ada-lang.c (ada_update_initial_language): Update.
8876 (ada_main_name, ada_has_this_exception_support): Update.
8877 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
8878 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8879 * arm-tdep.c (arm_skip_stub): Update.
8880 * auxv.c (ld_so_xfer_auxv): Update.
8881 * avr-tdep.c (avr_scan_prologue): Update.
8882 * ax-gdb.c (gen_var_ref): Update.
8883 * breakpoint.c (struct breakpoint_objfile_data)
8884 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
8885 type to bound_minimal_symbol.
8886 (create_overlay_event_breakpoint)
8887 (create_longjmp_master_breakpoint)
8888 (create_std_terminate_master_breakpoint)
8889 (create_exception_master_breakpoint): Update.
8890 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8891 * c-exp.y (classify_name): Update.
8892 * coffread.c (coff_symfile_read): Update.
8893 * common/agent.c (agent_look_up_symbols): Update.
8894 * d-lang.c (d_main_name): Update.
8895 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
8896 * dec-thread.c (enable_dec_thread): Update.
8897 * dwarf2loc.c (call_site_to_target_addr): Update.
8898 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
8899 * eval.c (evaluate_subexp_standard): Update.
8900 * findvar.c (struct minsym_lookup_data) <result>: Change type
8901 to bound_minimal_symbol.
8902 <objfile>: Remove.
8903 (minsym_lookup_iterator_cb, default_read_var_value): Update.
8904 * frame.c (inside_main_func): Update.
8905 * frv-tdep.c (frv_frame_this_id): Update.
8906 * gcore.c (call_target_sbrk): Update.
8907 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8908 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
8909 Update.
8910 * go-lang.c (go_main_name): Update.
8911 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
8912 (hppa_hpux_find_import_stub_for_addr): Update.
8913 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
8914 Update. Change return type.
8915 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
8916 type.
8917 * jit.c (jit_breakpoint_re_set_internal): Update.
8918 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
8919 Update.
8920 * linux-nat.c (get_signo): Update.
8921 * linux-thread-db.c (inferior_has_bug): Update
8922 * m32c-tdep.c (m32c_return_value)
8923 (m32c_m16c_address_to_pointer): Update.
8924 * m32r-tdep.c (m32r_frame_this_id): Update.
8925 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8926 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8927 * minsyms.c (lookup_minimal_symbol_internal): Rename to
8928 lookup_minimal_symbol. Change return type.
8929 (lookup_minimal_symbol): Remove.
8930 (lookup_bound_minimal_symbol): Update.
8931 (lookup_minimal_symbol_text): Change return type.
8932 (lookup_minimal_symbol_solib_trampoline): Change return type.
8933 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
8934 (lookup_minimal_symbol_solib_trampoline): Change return type.
8935 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8936 * objc-lang.c (lookup_objc_class, lookup_child_selector)
8937 (value_nsstring, find_imps): Update.
8938 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8939 * p-lang.c (pascal_main_name): Update.
8940 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
8941 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8942 * proc-service.c (ps_pglobal_lookup): Update.
8943 * ravenscar-thread.c (get_running_thread_msymbol): Change
8944 return type.
8945 (has_ravenscar_runtime, get_running_thread_id): Update.
8946 * remote.c (remote_check_symbols): Update.
8947 * sol-thread.c (ps_pglobal_lookup): Update.
8948 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8949 * solib-dsbt.c (lm_base): Update.
8950 * solib-frv.c (lm_base, frv_relocate_section_addresses):
8951 Update.
8952 * solib-irix.c (locate_base): Update.
8953 * solib-som.c (som_solib_create_inferior_hook)
8954 (som_solib_desire_dynamic_linker_symbols, link_map_start):
8955 Update.
8956 * solib-spu.c (spu_enable_break): Update.
8957 * solib-svr4.c (elf_locate_base, enable_break): Update.
8958 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
8959 (flush_ea_cache): Update.
8960 * stabsread.c (define_symbol): Update.
8961 * symfile.c (simple_read_overlay_table): Update.
8962 * symtab.c (find_pc_sect_line): Update.
8963 * tracepoint.c (scope_info): Update.
8964 * tui-disasm.c (tui_get_begin_asm_address): Update.
8965 * value.c (value_static_field): Update.
8966
40c1a007
TT
89672014-02-26 Tom Tromey <tromey@redhat.com>
8968
8969 * minsyms.c (prim_record_minimal_symbol_full): Use
8970 SET_MSYMBOL_VALUE_ADDRESS.
8971 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
8972 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
8973 SET_MSYMBOL_VALUE_ADDRESS.
8974 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
8975 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
8976
efd66ac6
TT
89772014-02-26 Tom Tromey <tromey@redhat.com>
8978
8979 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
8980 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
8981 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
8982 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
8983 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
8984 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
8985 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
8986 * ada-lang.c (ada_main_name): Update.
8987 (ada_lookup_simple_minsym): Update.
8988 (ada_make_symbol_completion_list): Update.
8989 (ada_add_standard_exceptions): Update.
8990 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
8991 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8992 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
8993 * arm-tdep.c (skip_prologue_function): Update.
8994 (arm_skip_stack_protector, arm_skip_stub): Update.
8995 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
8996 (arm_wince_skip_main_prologue): Update.
8997 * auxv.c (ld_so_xfer_auxv): Update.
8998 * avr-tdep.c (avr_scan_prologue): Update.
8999 * ax-gdb.c (gen_var_ref): Update.
9000 * block.c (call_site_for_pc): Update.
9001 * blockframe.c (get_pc_function_start): Update.
9002 (find_pc_partial_function_gnu_ifunc): Update.
9003 * breakpoint.c (create_overlay_event_breakpoint): Update.
9004 (create_longjmp_master_breakpoint): Update.
9005 (create_std_terminate_master_breakpoint): Update.
9006 (create_exception_master_breakpoint): Update.
9007 (resolve_sal_pc): Update.
9008 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9009 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
9010 Update.
9011 * c-valprint.c (c_val_print): Update.
9012 * coff-pe-read.c (add_pe_forwarded_sym): Update.
9013 * coffread.c (coff_symfile_read): Update.
9014 * common/agent.c (agent_look_up_symbols): Update.
9015 * dbxread.c (find_stab_function_addr): Update.
9016 (end_psymtab): Update.
9017 * dwarf2loc.c (call_site_to_target_addr): Update.
9018 (func_verify_no_selftailcall): Update.
9019 (tailcall_dump): Update.
9020 (call_site_find_chain_1): Update.
9021 (dwarf_expr_reg_to_entry_parameter): Update.
9022 * elfread.c (elf_gnu_ifunc_record_cache): Update.
9023 (elf_gnu_ifunc_resolve_by_got): Update.
9024 * f-valprint.c (info_common_command): Update.
9025 * findvar.c (read_var_value): Update.
9026 * frame.c (get_prev_frame_1): Update.
9027 (inside_main_func): Update.
9028 * frv-tdep.c (frv_skip_main_prologue): Update.
9029 (frv_frame_this_id): Update.
9030 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9031 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
9032 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
9033 (gnuv3_skip_trampoline): Update.
9034 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
9035 (hppa64_hpux_in_solib_call_trampoline): Update.
9036 (hppa_hpux_skip_trampoline_code): Update.
9037 (hppa64_hpux_search_dummy_call_sequence): Update.
9038 (hppa_hpux_find_import_stub_for_addr): Update.
9039 (hppa_hpux_find_dummy_bpaddr): Update.
9040 * hppa-tdep.c (hppa_symbol_address)
9041 (hppa_lookup_stub_minimal_symbol): Update.
9042 * i386-tdep.c (i386_skip_main_prologue): Update.
9043 (i386_pe_skip_trampoline_code): Update.
9044 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
9045 * infcall.c (get_function_name): Update.
9046 * infcmd.c (until_next_command): Update.
9047 * jit.c (jit_breakpoint_re_set_internal): Update.
9048 (jit_inferior_init): Update.
9049 * linespec.c (minsym_found): Update.
9050 (add_minsym): Update.
9051 * linux-fork.c (info_checkpoints_command): Update.
9052 * linux-nat.c (get_signo): Update.
9053 * linux-thread-db.c (inferior_has_bug): Update.
9054 * m32c-tdep.c (m32c_return_value): Update.
9055 (m32c_m16c_address_to_pointer): Update.
9056 (m32c_m16c_pointer_to_address): Update.
9057 * m32r-tdep.c (m32r_frame_this_id): Update.
9058 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9059 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9060 * maint.c (maintenance_translate_address): Update.
9061 * minsyms.c (add_minsym_to_hash_table): Update.
9062 (add_minsym_to_demangled_hash_table): Update.
9063 (msymbol_objfile): Update.
9064 (lookup_minimal_symbol): Update.
9065 (iterate_over_minimal_symbols): Update.
9066 (lookup_minimal_symbol_text): Update.
9067 (lookup_minimal_symbol_by_pc_name): Update.
9068 (lookup_minimal_symbol_solib_trampoline): Update.
9069 (lookup_minimal_symbol_by_pc_section_1): Update.
9070 (lookup_minimal_symbol_and_objfile): Update.
9071 (prim_record_minimal_symbol_full): Update.
9072 (compare_minimal_symbols): Update.
9073 (compact_minimal_symbols): Update.
9074 (build_minimal_symbol_hash_tables): Update.
9075 (install_minimal_symbols): Update.
9076 (terminate_minimal_symbol_table): Update.
9077 (find_solib_trampoline_target): Update.
9078 (minimal_symbol_upper_bound): Update.
9079 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9080 * mips-tdep.c (mips_stub_frame_sniffer): Update.
9081 (mips_skip_pic_trampoline_code): Update.
9082 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
9083 * objc-lang.c (selectors_info): Update.
9084 (classes_info): Update.
9085 (find_methods): Update.
9086 (find_imps): Update.
9087 (find_objc_msgsend): Update.
9088 * objfiles.c (objfile_relocate1): Update.
9089 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
9090 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9091 * p-valprint.c (pascal_val_print): Update.
9092 * parse.c (write_exp_msymbol): Update.
9093 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
9094 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
9095 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9096 * printcmd.c (build_address_symbolic): Update.
9097 (sym_info): Update.
9098 (address_info): Update.
9099 * proc-service.c (ps_pglobal_lookup): Update.
9100 * psymtab.c (find_pc_sect_psymtab_closer): Update.
9101 (find_pc_sect_psymtab): Update.
9102 * python/py-framefilter.c (py_print_frame): Update.
9103 * ravenscar-thread.c (get_running_thread_id): Update.
9104 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
9105 Update.
9106 * remote.c (remote_check_symbols): Update.
9107 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
9108 (rs6000_skip_trampoline_code): Update.
9109 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
9110 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9111 * solib-dsbt.c (lm_base): Update.
9112 * solib-frv.c (lm_base): Update.
9113 (main_got): Update.
9114 * solib-irix.c (locate_base): Update.
9115 * solib-som.c (som_solib_create_inferior_hook): Update.
9116 (som_solib_desire_dynamic_linker_symbols): Update.
9117 (link_map_start): Update.
9118 * solib-spu.c (spu_enable_break): Update.
9119 (ocl_enable_break): Update.
9120 * solib-svr4.c (elf_locate_base): Update.
9121 (enable_break): Update.
9122 * spu-tdep.c (spu_get_overlay_table): Update.
9123 (spu_catch_start): Update.
9124 (flush_ea_cache): Update.
9125 * stabsread.c (define_symbol): Update.
9126 (scan_file_globals): Update.
9127 * stack.c (find_frame_funname): Update.
9128 (frame_info): Update.
9129 * symfile.c (simple_read_overlay_table): Update.
9130 (simple_overlay_update): Update.
9131 * symmisc.c (dump_msymbols): Update.
9132 * symtab.c (fixup_section): Update.
9133 (find_pc_sect_line): Update.
9134 (skip_prologue_sal): Update.
9135 (search_symbols): Update.
9136 (print_msymbol_info): Update.
9137 (rbreak_command): Update.
9138 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
9139 (completion_list_objc_symbol): Update.
9140 (default_make_symbol_completion_list_break_on): Update.
9141 * tracepoint.c (scope_info): Update.
9142 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
9143 (tui_get_begin_asm_address): Update.
9144 * valops.c (find_function_in_inferior): Update.
9145 * value.c (value_static_field): Update.
9146 (value_fn_field): Update.
9147
50e65b17
TT
91482014-02-26 Tom Tromey <tromey@redhat.com>
9149
9150 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
9151 bound minimal symbols. Move code that knows about minsym
9152 table layout...
9153 * minsyms.c (minimal_symbol_upper_bound): ... here. New
9154 function.
9155 * minsyms.h (minimal_symbol_upper_bound): Declare.
9156 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
9157 minimal_symbol_upper_bound.
9158
1b588015
JB
91592014-02-27 Joel Brobecker <brobecker@adacore.com>
9160
9161 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
9162 Use the type's name if its basic type does not have a tag.
9163
dbb9c2b1
JB
91642014-02-27 Joel Brobecker <brobecker@adacore.com>
9165
9166 * dwarf2read.c (read_subrange_type): Add comment.
9167
55426c9d
JB
91682014-02-27 Joel Brobecker <brobecker@adacore.com>
9169
9170 * dwarf2read.c (update_enumeration_type_from_children): New
9171 function, mostly extracted from process_structure_scope.
9172 (read_enumeration_type): Call update_enumeration_type_from_children.
9173 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
9174 and flag_flag_enum fields.
9175
f2fce0ca
PA
91762014-02-26 Pedro Alves <palves@redhat.com>
9177
9178 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
9179 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
9180 to_xfer_partial method.
9181
7a44e40e
PA
91822014-02-26 Pedro Alves <palves@redhat.com>
9183
9184 * target.c (complete_target_initialization): Don't install
9185 default_xfer_partial as to_xfer_partial hook.
9186 (nomemory): Delete.
9187 (update_current_target): Don't INHERIT nor de_fault
9188 deprecated_xfer_memory. Delete de_fault macro.
9189 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
9190 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
9191 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
9192 field.
9193
bd265cd0
PA
91942014-02-26 Pedro Alves <palves@redhat.com>
9195
9196 * go32-nat.c (my_write_child): New function.
9197 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
9198 (go32_xfer_partial): New function.
9199 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
9200 Instead install a to_xfer_partial hook.
9201
9d46c4e5
PA
92022014-02-26 Pedro Alves <palves@redhat.com>
9203
9204 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
9205 to_xfer_partial helper. Rewrite.
9206 (procfs_xfer_partial): New function.
9207 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
9208 Install a to_xfer_partial hook.
9209
a1583b1f
PA
92102014-02-26 Pedro Alves <palves@redhat.com>
9211
9212 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
9213 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
9214 (m32r_xfer_partial): New function.
9215 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
9216 Install a to_xfer_partial hook.
9217
6df1b29f
PA
92182014-02-26 Pedro Alves <palves@redhat.com>
9219
9220 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
9221 helper.
9222 (mips_xfer_partial): New function.
9223 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
9224 hook. Install a to_xfer_partial hook.
9225
dc53a7ad
JB
92262014-02-26 Joel Brobecker <brobecker@adacore.com>
9227
9228 * gdbtypes.h (create_array_type_with_stride): Add declaration.
9229 * gdbtypes.c (create_array_type_with_stride): New function,
9230 renaming create_array_type, but with an added parameter
9231 called "bit_stride".
9232 (create_array_type): Re-implement using
9233 create_array_type_with_stride.
9234 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
9235 and DW_AT_bit_stride attributes.
9236
12ab52e9
PA
92372014-02-26 Pedro Alves <palves@redhat.com>
9238
9239 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
9240 task-specific breakpoints.
9241
d16461ae
PA
92422014-02-25 Pedro Alves <palves@redhat.com>
9243
9244 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
9245 handling of object == TARGET_OBJECT_UNWIND_TABLE.
9246
a8b16220
SS
92472014-02-25 Stan Shebs <stan@codesourcery.com>
9248
9249 * defs.h: Annotate comments for Doxygen.
9250
b9e795ee
TT
92512014-02-25 Tom Tromey <tromey@redhat.com>
9252
9253 * target.h (target_ignore): Don't declare.
9254 * target.c (target_ignore): Remove.
9255
849c862e
JK
92562014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
9257
9258 PR gdb/16626
9259 * auto-load.c (auto_load_objfile_script_1): Change filename to
9260 debugfile.
9261
475109d8
JB
92622014-02-25 Joel Brobecker <brobecker@adacore.com>
9263
9264 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
9265 documentation. Adjust prototype to match the target_ops
9266 to_xfer_partial method. Adjust implementation accordingly.
9267
e186c3bd
HZ
92682014-02-25 Hui Zhu <hui@codesourcery.com>
9269
9270 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
9271 to_traceframe_info.
9272
6d451942
KB
92732014-02-25 Kevin Buettner <kevinb@redhat.com>
9274
041ab8b4 9275 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
6d451942
KB
9276 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
9277 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
9278 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
9279 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
9280 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
9281 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
9282 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
9283 New constants.
9284 (rl78_register_type): Use a data pointer type for SP and
9285 new pseudo registers mentioned above. Use a 16 bit integer
9286 type for all other register pairs.
9287 (rl78_register_name, rl78_g10_register_name): Update for
9288 new pseudo registers.
9289 (rl78_pseudo_register_read): Likewise.
9290 (rl78_pseudo_register_write): Likewise.
9291 (rl78_dwarf_reg_to_regnum): Return register numbers representing
9292 to the newly added pseudo registers.
9293
eddf0bae
DE
92942014-02-24 Doug Evans <dje@google.com>
9295
9296 * value.c (record_latest_value): Fix comment.
9297 * printcmd.c (print_command_1): Remove code to handle -1 return from
9298 record_latest_value.
9299
e96027e0
PA
93002014-02-24 Pedro Alves <palves@redhat.com>
9301
9302 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
9303 deprecated_xfer_memory hook.
9304 (procfs_xfer_partial): Call procfs_xfer_memory instead
9305 of the deprecated_xfer_memory target hook.
9306 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
9307 helper.
9308
0837c976
YZ
93092014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
9310
9311 * windows-nat.c (windows_xfer_shared_libraries): Return
9312 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
9313 requested object is TARGET_OBJECT_LIBRARIES.
9314
bc113b4e
YQ
93152014-02-24 Yao Qi <yao@codesourcery.com>
9316
9317 * target.h (enum target_xfer_status)
9318 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
9319 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
9320 explicitly. New.
9321 * corefile.c (memory_error_message): User updated.
9322 * exec.c (section_table_read_available_memory): Likewise.
9323 * record-btrace.c (record_btrace_xfer_partial): Likewise.
9324 * target.c (target_xfer_status_to_string): Likewise.
9325 (raw_memory_xfer_partial): Likewise.
9326 (memory_xfer_partial_1, target_xfer_partial): Likewise.
9327 * valops.c (read_value_memory): Likewise.
9328 * exec.h: Update comments.
9329
01cb8804
YQ
93302014-02-24 Yao Qi <yao@codesourcery.com>
9331
9332 * target.c (target_xfer_status_to_string): Rename argument err
9333 to status.
9334 * target.h (target_xfer_status_to_string): Update declaration.
9335 Replace target_xfer_error_to_string with
9336 target_xfer_status_to_string in comment.
9337
93063aa6
YQ
93382014-02-24 Yao Qi <yao@codesourcery.com>
9339
9340 * mips-linux-nat.c (super_close): Update its type.
9341 (mips_linux_close): Pass 'self' to super_close.
9342
5c328c05
YQ
93432014-02-24 Yao Qi <yao@codesourcery.com>
9344
9345 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
9346 * corefile.c (read_memory): Adjusted.
9347 * target.c (target_write_with_progress): Adjusted.
9348
f73023dd
YQ
93492014-02-23 Yao Qi <yao@codesourcery.com>
9350
9351 Revert two patches:
9352
9353 2013-10-25 Yao Qi <yao@codesourcery.com>
9354
9355 * remote.c (remote_traceframe_info): Return early if
9356 traceframe is not selected.
9357
9358 2013-07-19 Yao Qi <yao@codesourcery.com>
9359
9360 * target.c (update_current_target): Change the default action
9361 of 'to_traceframe_info' from tcomplain to return_zero.
9362 * target.h (struct target_ops) <to_traceframe_info>: Add more
9363 comments.
9364
5a2eb0ef
YQ
93652014-02-23 Yao Qi <yao@codesourcery.com>
9366
9367 * valops.c (read_value_memory): Rewrite it. Call
9368 target_xfer_partial in a loop.
9369 * exec.h (section_table_available_memory): Remove declaration.
9370 Move comments to ...
9371 * exec.c (section_table_available_memory): ... here. Make it
9372 static.
9373
1ee79381
YQ
93742014-02-23 Yao Qi <yao@codesourcery.com>
9375
9376 * exec.c (section_table_read_available_memory): New function.
9377 * exec.h (section_table_read_available_memory): Declare.
9378 * ctf.c (ctf_xfer_partial): Call
9379 section_table_read_available_memory.
9380 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9381
1ca49d37
YQ
93822014-02-23 Yao Qi <yao@codesourcery.com>
9383
9384 * ctf.c (ctf_xfer_partial): Move code to ...
9385 * exec.c (exec_read_partial_read_only): ... it. New function.
9386 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9387 * tracefile.c: Include "exec.h".
9388 * exec.h (exec_read_partial_read_only): Declare.
9389
a283690e
YQ
93902014-02-23 Yao Qi <yao@codesourcery.com>
9391
9392 * tracefile-tfile.c (tfile_has_all_memory): Remove.
9393 (tfile_has_memory): Remove.
9394 (init_tfile_ops): Don't set fields to_has_all_memory and
9395 to_has_memory of tfile_ops.
9396 * tracefile.c (tracefile_has_all_memory): New function.
9397 (tracefile_has_memory): New function.
9398 (init_tracefile_ops): Initialize fields to_has_all_memory and
9399 to_has_memory of 'ops'.
9400
12e03cd0
YQ
94012014-02-23 Yao Qi <yao@codesourcery.com>
9402
9403 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
9404 (ctf_thread_alive, ctf_get_trace_status): Remove.
9405 (init_ctf_ops): Don't set some fields of ctf_ops. Call
9406 init_tracefile_ops.
9407 * tracefile-tfile.c (tfile_get_trace_status): Remove.
9408 (tfile_has_stack, tfile_has_registers): Remove.
9409 (tfile_thread_alive): Remove.
9410 (init_tfile_ops): Don't set some fields of tfile_ops. Call
9411 init_tracefile_ops.
9412 * tracefile.c (tracefile_has_stack): New function.
9413 (tracefile_has_registers): New function.
9414 (tracefile_thread_alive): New function.
9415 (tracefile_get_trace_status): New function.
9416 (init_tracefile_ops): New function.
9417 * tracefile.h (init_tracefile_ops): Declare.
9418
11395323
YQ
94192014-02-23 Yao Qi <yao@codesourcery.com>
9420
9421 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
9422 (O_LARGEFILE): Likewise.
9423 (tfile_ops): Likewise.
9424 (TRACE_HEADER_SIZE): Likewise.
9425 (trace_fd, trace_frames_offset, cur_offset): Likewise.
9426 (cur_data_size): Likewise.
9427 (tfile_read, tfile_open, tfile_interp_line): Likewise.
9428 (tfile_close, tfile_files_info): Likewise.
9429 (tfile_get_trace_status): Likewise.
9430 (tfile_get_tracepoint_status): Likewise.
9431 (tfile_get_traceframe_address): Likewise.
9432 (tfile_trace_find, match_blocktype): Likewise.
9433 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
9434 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
9435 (tfile_get_trace_state_variable_value): Likewise.
9436 (tfile_has_all_memory, tfile_has_memory): Likewise.
9437 (tfile_has_stack, tfile_has_registers): Likewise.
9438 (tfile_thread_alive, build_traceframe_info): Likewise.
9439 (tfile_traceframe_info, init_tfile_ops): Likewise.
9440 (_initialize_tracepoint): Don't call init_tfile_ops
9441 and add_target_with_completer.
9442 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
9443 exec.h, completer.h and filenames.h.
9444 (_initialize_tracefile_tfile): New function.
9445
7951c4eb
YQ
94462014-02-23 Yao Qi <yao@codesourcery.com>
9447
9448 * Makefile.in (REMOTE_OBS): Append tracefile.o and
9449 tracefile-tfile.o.
9450 (HFILES_NO_SRCDIR): Add tracefile.h.
9451 * ctf.c: Include "tracefile.h".
9452 * tracefile.h: New file.
9453 * tracefile.c: New file
9454 * tracefile-tfile.c: New file.
9455 * tracepoint.c: Include "tracefile.h".
9456 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
9457 (stop_reason_names): Add const.
9458 (trace_file_writer_xfree): Move it to tracefile.c.
9459 (trace_save, trace_save_command, trace_save_tfile): Likewise.
9460 (trace_save_ctf): Likewise.
9461 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
9462 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
9463 (tfile_write_header, tfile_write_regblock_type): Likewise.
9464 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
9465 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
9466 (tfile_write_raw_data, tfile_end): Likewise.
9467 (tfile_trace_file_writer_new): Likewise.
9468 (free_uploaded_tp): Make it extern.
9469 (free_uploaded_tsv): Make it extern.
9470 (_initialize_tracepoint): Move code to register command 'tsave'
9471 to tracefile.c.
9472 * tracepoint.h (stop_reason_names): Declare.
9473 (struct trace_frame_write_ops): Move it to tracefile.h.
9474 (struct trace_file_write_ops): Likewise.
9475 (struct trace_file_writer): Likewise.
9476 (free_uploaded_tsvs, free_uploaded_tps): Declare.
9477
184cd072
JK
94782014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9479
9480 PR gdb/16594
9481 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
9482 process name.
9483 (get_cores_used_by_process): New parameter num_cores, use it.
9484 (linux_xfer_osdata_processes): Pass num_cores to it.
9485 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
9486 process name.
9487
c63528fc
AK
94882014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
9489
9490 * target.c (memory_xfer_partial): Fix length arg in call to
9491 breakpoint_xfer_memory.
9492
d7b30f67
SDJ
94932014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9494
9495 PR tdep/16397
9496 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
9497 number comes after the + or - signs. Adjust length of register
9498 name to be extracted.
9499
8838afaf
TT
95002014-02-20 Tom Tromey <tromey@redhat.com>
9501
9502 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
9503 (ada_varobj_ops): Mark "extern".
9504
05227d14
TT
95052014-02-20 Tom Tromey <tromey@redhat.com>
9506
9507 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
9508
1254eefc
DE
95092014-02-20 Doug Evans <xdje42@gmail.com>
9510
9511 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
9512 All callers updated.
9513 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
9514 All callers updated.
9515 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
9516 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
9517
adde2bff
DE
95182014-02-20 lin zuojian <manjian2006@gmail.com>
9519 Joel Brobecker <brobecker@adacore.com>
9520 Doug Evans <xdje42@gmail.com>
9521
9522 PR symtab/16581
9523 * dwarf2read.c (struct die_info): New member in_process.
9524 (reset_die_in_process): New function.
9525 (process_die): Set it at the start, reset when returning.
9526 (inherit_abstract_dies): Only call process_die if origin_child_die
9527 not already being processed.
9528
3be75f87
JB
95292014-02-20 Joel Brobecker <brobecker@adacore.com>
9530
9531 * windows-nat.c (handle_unload_dll): Add function documentation.
9532 (do_initial_windows_stuff): Add comment explaining why we wait
9533 until after inferior initialization has finished before
9534 processing all DLLs.
9535
47f7ffdb
JB
95362014-02-20 Joel Brobecker <brobecker@adacore.com>
9537
9538 * windows-nat.c (get_module_name): Delete.
9539 (windows_get_exec_module_filename): New function, mostly
9540 inspired from get_module_name.
9541 (windows_pid_to_exec_file): Replace call to get_module_name
9542 by call to windows_get_exec_module_filename.
9543
1cd9feab
JB
95442014-02-20 Joel Brobecker <brobecker@adacore.com>
9545
9546 * windows-nat.c (handle_load_dll): Rewrite this function's
9547 introductory comment. Remove code using get_module_name
9548 to get the DLL's name.
9549
ea39ad35
JB
95502014-02-20 Joel Brobecker <brobecker@adacore.com>
9551
9552 * windows-nat.c (get_windows_debug_event): Ignore
9553 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
9554 if windows_initialization_done == 0.
9555 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
9556 Adjust implementation to always load all DLLs.
9557 (do_initial_windows_stuff): Replace call to
9558 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
9559
95060284
JB
95602014-02-20 Joel Brobecker <brobecker@adacore.com>
9561
9562 * windows-nat.c (_initialize_windows_nat): Deprecate the
9563 "dll-symbols" command. Turn the "add-shared-symbol-files"
9564 and "assf" aliases into commands, and deprecate them as well.
9565 * NEWS: Add entry explaining that "dll-symbols" and its two
9566 aliases are now deprecated.
9567
8d4fdb12
JB
95682014-02-20 Joel Brobecker <brobecker@adacore.com>
9569
9570 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
9571 new-line in debug string. Remove trailing spaces.
9572
1b281443
SS
95732014-02-19 Stan Shebs <stan@codesourcery.com>
9574
9575 * darwin-nat.c (darwin_xfer_partial): Fix return type.
9576
f7bd0f78
SC
95772014-02-19 Siva Chandra Reddy <sivachandra@google.com>
9578
9579 * NEWS: Add entry for the new feature
9580 * python/py-value.c (valpy_binop): Call value_x_binop for struct
9581 and class values.
9582
399ebc3d
SS
95832014-02-19 Stan Shebs <stan@codesourcery.com>
9584
9585 * MAINTAINERS: List Yao Qi as nios2 maintainer.
9586
c658158d
PA
95872014-02-19 Pedro Alves <palves@redhat.com>
9588
9589 * common/ptid.h (struct ptid): Mention that process_stratum
9590 targets should prefer ptid.lwp.
9591
ba348170
PA
95922014-02-19 Pedro Alves <palves@redhat.com>
9593
9594 * remote.c (remote_thread_alive, write_ptid, read_ptid)
9595 (read_ptid, remote_newthread_step, remote_threads_extra_info)
9596 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
9597 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
9598 store remote thread ids rather than ptid.tid.
9599 (_initialize_remote): Adjust.
9600
ac01945b
TT
96012014-02-19 Tom Tromey <tromey@redhat.com>
9602
9603 * target.c (target_get_unwinder): Rewrite.
9604 (target_get_tailcall_unwinder): Rewrite.
9605 * record-btrace.c (record_btrace_to_get_unwinder): New function.
9606 (record_btrace_to_get_tailcall_unwinder): New function.
9607 (init_record_btrace_ops): Update.
9608 * target.h (struct target_ops) <to_get_unwinder,
9609 to_get_tailcall_unwinder>: Now function pointers. Use
9610 TARGET_DEFAULT_RETURN.
9611
8476dc92
TT
96122014-02-19 Tom Tromey <tromey@redhat.com>
9613
9614 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
9615 argument.
9616 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
9617
c0eca49f
TT
96182014-02-19 Tom Tromey <tromey@redhat.com>
9619
9620 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
9621 directly.
9622 * target-delegates.c: Rebuild.
9623 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
9624 TARGET_DEFAULT_FUNC.
9625 * target.c (default_target_decr_pc_after_break): Rename from
9626 forward_target_decr_pc_after_break. Simplify.
9627 (target_decr_pc_after_break): Rely on delegation.
9628
596b6b39
TT
96292014-02-19 Tom Tromey <tromey@redhat.com>
9630
9631 * target.c (update_current_target): Do not INHERIT to_doc or
9632 to_magic. Do not de_fault to_open or to_close.
9633
b427c1bc
TT
96342014-02-19 Tom Tromey <tromey@redhat.com>
9635
9636 * gcore.h (objfile_find_memory_regions): Declare.
9637 * gcore.c (objfile_find_memory_regions): No longer static. Add
9638 "self" argument.
9639 (_initialize_gcore): Don't call exec_set_find_memory_regions.
9640 * exec.c: Include gcore.h.
9641 (exec_set_find_memory_regions): Remove.
9642 (exec_find_memory_regions): Remove.
9643 (exec_do_find_memory_regions): Remove.
9644 (init_exec_ops): Update.
9645 * defs.h (exec_set_find_memory_regions): Remove.
9646
9b144037
TT
96472014-02-19 Tom Tromey <tromey@redhat.com>
9648
9649 * target-delegates.c: Rebuild.
9650 * target.h (struct target_ops) <to_extra_thread_info,
9651 to_thread_name, to_pid_to_exec_file, to_get_section_table,
9652 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
9653 not 0, in TARGET_DEFAULT_RETURN.
9654
555bbdeb
TT
96552014-02-19 Tom Tromey <tromey@redhat.com>
9656
9657 * target.c (complete_target_initialization): Remove casts. Use
9658 return_zero_has_execution.
9659 (return_zero): Add "ignore" argument.
9660 (return_zero_has_execution): New function.
9661 (init_dummy_target): Remove casts. Use
9662 return_zero_has_execution.
9663
be4ddd36
TT
96642014-02-19 Tom Tromey <tromey@redhat.com>
9665
9666 * target.c (update_current_target): Update comments. Do not
9667 INHERIT to_stratum.
9668
2117c711
TT
96692014-02-19 Tom Tromey <tromey@redhat.com>
9670
9671 * arm-linux-nat.c (arm_linux_read_description): Delegate when
9672 needed.
9673 * corelow.c (core_read_description): Delegate when needed.
9674 * remote.c (remote_read_description): Delegate when needed.
9675 * target-delegates.c: Rebuild.
9676 * target.c (target_read_description): Rewrite.
9677 * target.h (struct target_ops) <to_read_description>: Update
9678 comment. Use TARGET_DEFAULT_RETURN.
9679
e88ef65c
TT
96802014-02-19 Tom Tromey <tromey@redhat.com>
9681
9682 * target-delegates.c: Rebuild.
9683 * target.c (update_current_target): Don't inherit or default
9684 to_can_run.
9685 (find_default_run_target): Check against delegate_can_run.
9686 * target.h (struct target_ops) <to_can_run>: Use
9687 TARGET_DEFAULT_RETURN.
9688
86a0854a
TT
96892014-02-19 Tom Tromey <tromey@redhat.com>
9690
9691 * target-delegates.c: Rebuild.
9692 * target.c (target_disconnect): Unconditionally delegate.
9693 * target.h (struct target_ops) <to_disconnect>: Use
9694 TARGET_DEFAULT_NORETURN.
9695
ee97f592
TT
96962014-02-19 Tom Tromey <tromey@redhat.com>
9697
9698 * record.c (record_stop): Unconditionally delegate.
9699 * target-delegates.c: Rebuild.
9700 * target.c (target_stop_recording): Unconditionally delegate.
9701 * target.h (struct target_ops) <to_stop_recording>: Use
9702 TARGET_DEFAULT_IGNORE.
9703
6dc7fcf4
TT
97042014-02-19 Tom Tromey <tromey@redhat.com>
9705
9706 * target-delegates.c: Rebuild.
9707 * target.c (target_enable_btrace): Unconditionally delegate.
9708 * target.h (struct target_ops) <to_enable_btrace>: Use
9709 TARGET_DEFAULT_NORETURN.
9710
eb5b20d4
TT
97112014-02-19 Tom Tromey <tromey@redhat.com>
9712
9713 * target-delegates.c: Rebuild.
9714 * target.c (target_read_btrace): Unconditionally delegate.
9715 * target.h (struct target_ops) <to_read_btrace>: Use
9716 TARGET_DEFAULT_NORETURN.
9717
9ace480d
TT
97182014-02-19 Tom Tromey <tromey@redhat.com>
9719
9720 * target-delegates.c: Rebuild.
9721 * target.c (target_teardown_btrace): Unconditionally delegate.
9722 * target.h (struct target_ops) <to_teardown_btrace>: Use
9723 TARGET_DEFAULT_NORETURN.
9724
8dc292d3
TT
97252014-02-19 Tom Tromey <tromey@redhat.com>
9726
9727 * target-delegates.c: Rebuild.
9728 * target.c (target_disable_btrace): Unconditionally delegate.
9729 * target.h (struct target_ops) <to_disable_btrace>: Use
9730 TARGET_DEFAULT_NORETURN.
9731
58a5184e
TT
97322014-02-19 Tom Tromey <tromey@redhat.com>
9733
9734 * target-delegates.c: Rebuild.
9735 * target.c (default_search_memory): New function.
9736 (simple_search_memory): Update comment.
9737 (target_search_memory): Unconditionally delegate.
9738 * target.h (struct target_ops) <to_search_memory>: Use
9739 TARGET_DEFAULT_FUNC.
9740
8de71aab
TT
97412014-02-19 Tom Tromey <tromey@redhat.com>
9742
9743 * auxv.c (default_auxv_parse): No longer static.
9744 (target_auxv_parse): Unconditionally delegate.
9745 * auxv.h (default_auxv_parse): Declare.
9746 * target-delegates.c: Rebuild.
9747 * target.c: Include auxv.h.
9748 * target.h (struct target_ops) <to_auxv_parse>: Use
9749 TARGET_DEFAULT_FUNC.
9750
6b2c5a57
TT
97512014-02-19 Tom Tromey <tromey@redhat.com>
9752
9753 * target-delegates.c: Rebuild.
9754 * target.c (target_memory_map): Unconditionally delegate.
9755 * target.h (struct target_ops) <to_memory_map>: Use
9756 TARGET_DEFAULT_RETURN.
9757
cbffc065
TT
97582014-02-19 Tom Tromey <tromey@redhat.com>
9759
9760 * target-delegates.c: Rebuild.
9761 * target.c (target_thread_alive): Unconditionally delegate.
9762 * target.h (struct target_ops) <to_thread_alive>: Use
9763 TARGET_DEFAULT_RETURN.
9764
f09e2107
TT
97652014-02-19 Tom Tromey <tromey@redhat.com>
9766
9767 * target-delegates.c: Rebuild.
9768 * target.c (target_save_record): Unconditionally delegate.
9769 * target.h (struct target_ops) <to_save_record>: Use
9770 TARGET_DEFAULT_NORETURN.
9771
07366925
TT
97722014-02-19 Tom Tromey <tromey@redhat.com>
9773
9774 * target-delegates.c: Rebuild.
9775 * target.c (target_delete_record): Unconditionally delegate.
9776 * target.h (struct target_ops) <to_delete_record>: Use
9777 TARGET_DEFAULT_NORETURN.
9778
dd2e9d25
TT
97792014-02-19 Tom Tromey <tromey@redhat.com>
9780
9781 * target-delegates.c: Rebuild.
9782 * target.c (target_record_is_replaying): Unconditionally
9783 delegate.
9784 * target.h (struct target_ops) <to_record_is_replaying>: Use
9785 TARGET_DEFAULT_RETURN.
9786
671e76cc
TT
97872014-02-19 Tom Tromey <tromey@redhat.com>
9788
9789 * target-delegates.c: Rebuild.
9790 * target.c (target_goto_record_begin): Unconditionally delegate.
9791 * target.h (struct target_ops) <to_goto_record_begin>: Use
9792 TARGET_DEFAULT_NORETURN.
9793
e9179bb3
TT
97942014-02-19 Tom Tromey <tromey@redhat.com>
9795
9796 * target-delegates.c: Rebuild.
9797 * target.c (target_goto_record_end): Unconditionally delegate.
9798 * target.h (struct target_ops) <to_goto_record_end>: Use
9799 TARGET_DEFAULT_NORETURN.
9800
05969c84
TT
98012014-02-19 Tom Tromey <tromey@redhat.com>
9802
9803 * target-delegates.c: Rebuild.
9804 * target.c (target_goto_record): Unconditionally delegate.
9805 * target.h (struct target_ops) <to_goto_record>: Use
9806 TARGET_DEFAULT_NORETURN.
9807
3679abfa
TT
98082014-02-19 Tom Tromey <tromey@redhat.com>
9809
9810 * target-delegates.c: Rebuild.
9811 * target.c (target_insn_history): Unconditionally delegate.
9812 * target.h (struct target_ops) <to_insn_history>: Use
9813 TARGET_DEFAULT_NORETURN.
9814
8444ab58
TT
98152014-02-19 Tom Tromey <tromey@redhat.com>
9816
9817 * target-delegates.c: Rebuild.
9818 * target.c (target_insn_history_from): Unconditionally delegate.
9819 * target.h (struct target_ops) <to_insn_history_from>: Use
9820 TARGET_DEFAULT_NORETURN.
9821
c29302cc
TT
98222014-02-19 Tom Tromey <tromey@redhat.com>
9823
9824 * target-delegates.c: Rebuild.
9825 * target.c (target_insn_history_range): Unconditionally delegate.
9826 * target.h (struct target_ops) <to_insn_history_range>: Use
9827 TARGET_DEFAULT_NORETURN.
9828
170049d4
TT
98292014-02-19 Tom Tromey <tromey@redhat.com>
9830
9831 * target-delegates.c: Rebuild.
9832 * target.c (target_call_history): Unconditionally delegate.
9833 * target.h (struct target_ops) <to_call_history>: Use
9834 TARGET_DEFAULT_NORETURN.
9835
16fc27d6
TT
98362014-02-19 Tom Tromey <tromey@redhat.com>
9837
9838 * target-delegates.c: Rebuild.
9839 * target.c (target_call_history_from): Unconditionally delegate.
9840 * target.h (struct target_ops) <to_call_history_from>: Use
9841 TARGET_DEFAULT_NORETURN.
9842
115d9817
TT
98432014-02-19 Tom Tromey <tromey@redhat.com>
9844
9845 * target-delegates.c: Rebuild.
9846 * target.c (target_call_history_range): Unconditionally delegate.
9847 * target.h (struct target_ops) <to_call_history_range>: Use
9848 TARGET_DEFAULT_NORETURN.
9849
eb276a6b
TT
98502014-02-19 Tom Tromey <tromey@redhat.com>
9851
9852 * target-delegates.c: Rebuild.
9853 * target.c (target_verify_memory): Unconditionally delegate.
9854 * target.h (struct target_ops) <to_verify_memory>: Use
9855 TARGET_DEFAULT_NORETURN.
9856
9e538d0d
TT
98572014-02-19 Tom Tromey <tromey@redhat.com>
9858
9859 * target-delegates.c: Rebuild.
9860 * target.c (target_core_of_thread): Unconditionally delegate.
9861 * target.h (struct target_ops) <to_core_of_thread>: Use
9862 TARGET_DEFAULT_RETURN.
9863
f6fb2925
TT
98642014-02-19 Tom Tromey <tromey@redhat.com>
9865
9866 * target-delegates.c: Rebuild.
9867 * target.c (target_flash_done): Unconditionally delegate.
9868 * target.h (struct target_ops) <to_flash_done>: Use
9869 TARGET_DEFAULT_NORETURN.
9870
e8a6c6ac
TT
98712014-02-19 Tom Tromey <tromey@redhat.com>
9872
9873 * target-delegates.c: Rebuild.
9874 * target.c (target_flash_erase): Unconditionally delegate.
9875 * target.h (struct target_ops) <to_flash_erase>: Use
9876 TARGET_DEFAULT_NORETURN.
9877
7e35c012
TT
98782014-02-19 Tom Tromey <tromey@redhat.com>
9879
9880 * target-delegates.c: Rebuild.
9881 * target.c (target_get_section_table): Unconditionally delegate.
9882 * target.h (struct target_ops) <to_get_section_table>: Use
9883 TARGET_DEFAULT_RETURN.
9884
770234d3
TT
98852014-02-19 Tom Tromey <tromey@redhat.com>
9886
9887 * target-delegates.c: Rebuild.
9888 * target.c (target_pid_to_str): Unconditionally delegate.
9889 (init_dummy_target): Don't initialize to_pid_to_str.
9890 (default_pid_to_str): Rename from dummy_pid_to_str.
9891 * target.h (struct target_ops) <to_pid_to_str>: Use
9892 TARGET_DEFAULT_FUNC.
9893
09b0dc2b
TT
98942014-02-19 Tom Tromey <tromey@redhat.com>
9895
9896 * target-delegates.c: Rebuild.
9897 * target.c (target_find_new_threads): Unconditionally delegate.
9898 * target.h (struct target_ops) <to_find_new_threads>: Use
9899 TARGET_DEFAULT_RETURN.
9900
7d4f8efa
TT
99012014-02-19 Tom Tromey <tromey@redhat.com>
9902
9903 * target-delegates.c: Rebuild.
9904 * target.c (target_program_signals): Unconditionally delegate.
9905 * target.h (struct target_ops) <to_program_signals>: Use
9906 TARGET_DEFAULT_IGNORE.
9907
035cad7f
TT
99082014-02-19 Tom Tromey <tromey@redhat.com>
9909
9910 * target-delegates.c: Rebuild.
9911 * target.c (target_pass_signals): Unconditionally delegate.
9912 * target.h (struct target_ops) <to_pass_signals>: Use
9913 TARGET_DEFAULT_IGNORE.
9914
8d657035
TT
99152014-02-19 Tom Tromey <tromey@redhat.com>
9916
9917 * target-delegates.c: Rebuild.
9918 * target.c (default_mourn_inferior): New function.
9919 (target_mourn_inferior): Unconditionally delegate.
9920 * target.h (struct target_ops) <to_mourn_inferior>: Use
9921 TARGET_DEFAULT_FUNC.
9922
098dba18
TT
99232014-02-19 Tom Tromey <tromey@redhat.com>
9924
9925 * target-delegates.c: Rebuild.
9926 * target.c (default_follow_fork): New function.
9927 (target_follow_fork): Unconditionally delegate.
9928 * target.h (struct target_ops) <to_follow_fork>: Use
9929 TARGET_DEFAULT_FUNC.
9930
423a4807
TT
99312014-02-19 Tom Tromey <tromey@redhat.com>
9932
9933 * target-delegates.c: Rebuild.
9934 * target.c (target_kill): Unconditionally delegate.
9935 * target.h (struct target_ops) <to_kill>: Use
9936 TARGET_DEFAULT_NORETURN.
9937
6c7e5e5c
TT
99382014-02-19 Tom Tromey <tromey@redhat.com>
9939
9940 * target-delegates.c: Rebuild.
9941 * target.c (target_masked_watch_num_registers): Unconditionally
9942 delegate.
9943 * target.h (struct target_ops) <to_masked_watch_num_registers>:
9944 Use TARGET_DEFAULT_RETURN.
9945
8b1c364c
TT
99462014-02-19 Tom Tromey <tromey@redhat.com>
9947
9948 * target-delegates.c: Rebuild.
9949 * target.c (target_remove_mask_watchpoint): Unconditionally
9950 delegate.
9951 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
9952 TARGET_DEFAULT_RETURN.
9953
cd4ae029
TT
99542014-02-19 Tom Tromey <tromey@redhat.com>
9955
9956 * target-delegates.c: Rebuild.
9957 * target.c (target_insert_mask_watchpoint): Unconditionally
9958 delegate.
9959 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
9960 TARGET_DEFAULT_RETURN.
9961
a134316b
TT
99622014-02-19 Tom Tromey <tromey@redhat.com>
9963
9964 * target-delegates.c: Rebuild.
9965 * target.c (target_ranged_break_num_registers): Unconditionally
9966 delegate.
9967 * target.h (struct target_ops) <to_ranged_break_num_registers>:
9968 Use TARGET_DEFAULT_RETURN.
9969
ad5989bd
TT
99702014-02-19 Tom Tromey <tromey@redhat.com>
9971
9972 * target-delegates.c: Rebuild.
9973 * target.c (target_fetch_registers): Unconditionally delegate.
9974 * target.h (struct target_ops) <to_fetch_registers>: Use
9975 TARGET_DEFAULT_NORETURN.
9976
46ee7e8d
TT
99772014-02-19 Tom Tromey <tromey@redhat.com>
9978
9979 * target-delegates.c: Rebuild.
9980 * target.c (update_current_target): Don't inherit or default
9981 to_stop.
9982 * target.h (struct target_ops) <to_stop>: Use
9983 TARGET_DEFAULT_IGNORE.
9984
843f59ed
TT
99852014-02-19 Tom Tromey <tromey@redhat.com>
9986
9987 * target-delegates.c: Rebuild.
9988 * target.c (update_current_target): Don't inherit or default
9989 to_can_run_breakpoint_commands.
9990 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
9991 Use TARGET_DEFAULT_RETURN.
9992
ccfde2a0
TT
99932014-02-19 Tom Tromey <tromey@redhat.com>
9994
9995 * target-delegates.c: Rebuild.
9996 * target.c (update_current_target): Don't inherit or default
9997 to_supports_evaluation_of_breakpoint_conditions.
9998 * target.h (struct target_ops)
9999 <to_supports_evaluation_of_breakpoint_conditions>: Use
10000 TARGET_DEFAULT_RETURN.
10001
0de91722
TT
100022014-02-19 Tom Tromey <tromey@redhat.com>
10003
10004 * target-delegates.c: Rebuild.
10005 * target.c (update_current_target): Don't inherit or default
10006 to_augmented_libraries_svr4_read.
10007 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
10008 Use TARGET_DEFAULT_RETURN.
10009
9a7d8b48
TT
100102014-02-19 Tom Tromey <tromey@redhat.com>
10011
10012 * target-delegates.c: Rebuild.
10013 * target.c (update_current_target): Don't inherit or default
10014 to_can_use_agent.
10015 * target.h (struct target_ops) <to_can_use_agent>: Use
10016 TARGET_DEFAULT_RETURN.
10017
d9db5b21
TT
100182014-02-19 Tom Tromey <tromey@redhat.com>
10019
10020 * target-delegates.c: Rebuild.
10021 * target.c (update_current_target): Don't inherit or default
10022 to_use_agent.
10023 * target.h (struct target_ops) <to_use_agent>: Use
10024 TARGET_DEFAULT_NORETURN.
10025
92155eeb
TT
100262014-02-19 Tom Tromey <tromey@redhat.com>
10027
10028 * target-delegates.c: Rebuild.
10029 * target.c (update_current_target): Don't inherit or default
10030 to_traceframe_info.
10031 (return_null): Remove.
10032 * target.h (struct target_ops) <to_traceframe_info>: Use
10033 TARGET_DEFAULT_RETURN.
10034
d6522a22
TT
100352014-02-19 Tom Tromey <tromey@redhat.com>
10036
10037 * target-delegates.c: Rebuild.
10038 * target.c (update_current_target): Don't inherit or default
10039 to_static_tracepoint_markers_by_strid.
10040 * target.h (struct target_ops)
10041 <to_static_tracepoint_markers_by_strid>: Use
10042 TARGET_DEFAULT_NORETURN.
10043
4c3e4425
TT
100442014-02-19 Tom Tromey <tromey@redhat.com>
10045
10046 * target-delegates.c: Rebuild.
10047 * target.c (update_current_target): Don't inherit or default
10048 to_static_tracepoint_marker_at.
10049 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
10050 Use TARGET_DEFAULT_RETURN.
10051
dcd6917f
TT
100522014-02-19 Tom Tromey <tromey@redhat.com>
10053
10054 * target-delegates.c: Rebuild.
10055 * target.c (update_current_target): Don't inherit or default
10056 to_set_permissions.
10057 * target.h (struct target_ops) <to_set_permissions>: Use
10058 TARGET_DEFAULT_IGNORE.
10059
22bcceee
TT
100602014-02-19 Tom Tromey <tromey@redhat.com>
10061
10062 * target-delegates.c: Rebuild.
10063 * target.c (update_current_target): Don't inherit or default
10064 to_get_tib_address.
10065 * target.h (struct target_ops) <to_get_tib_address>: Use
10066 TARGET_DEFAULT_NORETURN.
10067
8586ccaa
TT
100682014-02-19 Tom Tromey <tromey@redhat.com>
10069
10070 * target-delegates.c: Rebuild.
10071 * target.c (update_current_target): Don't inherit or default
10072 to_set_trace_notes.
10073 * target.h (struct target_ops) <to_set_trace_notes>: Use
10074 TARGET_DEFAULT_RETURN.
10075
91df8d1d
TT
100762014-02-19 Tom Tromey <tromey@redhat.com>
10077
10078 * target-delegates.c: Rebuild.
10079 * target.c (update_current_target): Don't initialize
10080 to_set_trace_buffer_size.
10081 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
10082 TARGET_DEFAULT_IGNORE.
10083
8d526939
TT
100842014-02-19 Tom Tromey <tromey@redhat.com>
10085
10086 * target-delegates.c: Rebuild.
10087 * target.c (update_current_target): Don't inherit or default
10088 to_set_circular_trace_buffer.
10089 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
10090 TARGET_DEFAULT_IGNORE.
10091
0bcfeddf
TT
100922014-02-19 Tom Tromey <tromey@redhat.com>
10093
10094 * target-delegates.c: Rebuild.
10095 * target.c (update_current_target): Don't inherit or default
10096 to_set_disconnected_tracing.
10097 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
10098 TARGET_DEFAULT_IGNORE.
10099
9249843f
TT
101002014-02-19 Tom Tromey <tromey@redhat.com>
10101
10102 * target-delegates.c: Rebuild.
10103 * target.c (update_current_target): Don't inherit or default
10104 to_get_min_fast_tracepoint_insn_len.
10105 (return_minus_one): Remove.
10106 * target.h (struct target_ops)
10107 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
10108
ace92e7d
TT
101092014-02-19 Tom Tromey <tromey@redhat.com>
10110
10111 * target-delegates.c: Rebuild.
10112 * target.c (update_current_target): Don't inherit or default
10113 to_get_raw_trace_data.
10114 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
10115 TARGET_DEFAULT_NORETURN.
10116
08120467
TT
101172014-02-19 Tom Tromey <tromey@redhat.com>
10118
10119 * target-delegates.c: Rebuild.
10120 * target.c (update_current_target): Don't inherit or default
10121 to_upload_trace_state_variables.
10122 * target.h (struct target_ops) <to_upload_trace_state_variables>:
10123 Use TARGET_DEFAULT_RETURN.
10124
1e949b00
TT
101252014-02-19 Tom Tromey <tromey@redhat.com>
10126
10127 * target-delegates.c: Rebuild.
10128 * target.c (update_current_target): Don't inherit or default
10129 to_upload_tracepoints.
10130 * target.h (struct target_ops) <to_upload_tracepoints>: Use
10131 TARGET_DEFAULT_RETURN.
10132
a2e6c147
TT
101332014-02-19 Tom Tromey <tromey@redhat.com>
10134
10135 * target-delegates.c: Rebuild.
10136 * target.c (update_current_target): Don't inherit or default
10137 to_save_trace_data.
10138 * target.h (struct target_ops) <to_save_trace_data>: Use
10139 TARGET_DEFAULT_NORETURN.
10140
959bcd0b
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_get_trace_state_variable_value.
10146 * target.h (struct target_ops)
10147 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
10148
afc94e66
TT
101492014-02-19 Tom Tromey <tromey@redhat.com>
10150
10151 * target-delegates.c: Rebuild.
10152 * target.c (update_current_target): Don't inherit or default
10153 to_trace_find.
10154 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
10155
e51c07ea
TT
101562014-02-19 Tom Tromey <tromey@redhat.com>
10157
10158 * target-delegates.c: Rebuild.
10159 * target.c (update_current_target): Don't inherit or default
10160 to_trace_stop.
10161 * target.h (struct target_ops) <to_trace_stop>: Use
10162 TARGET_DEFAULT_NORETURN.
10163
6fea14cd
TT
101642014-02-19 Tom Tromey <tromey@redhat.com>
10165
10166 * target-delegates.c: Rebuild.
10167 * target.c (update_current_target): Don't inherit or default
10168 to_get_tracepoint_status.
10169 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
10170 TARGET_DEFAULT_NORETURN.
10171
4072d4ff
TT
101722014-02-19 Tom Tromey <tromey@redhat.com>
10173
10174 * target-delegates.c: Rebuild.
10175 * target.c (update_current_target): Don't inherit or default
10176 to_get_trace_status.
10177 * target.h (struct target_ops) <to_get_trace_status>: Use
10178 TARGET_DEFAULT_RETURN.
10179
25da2e80
TT
101802014-02-19 Tom Tromey <tromey@redhat.com>
10181
10182 * target-delegates.c: Rebuild.
10183 * target.c (update_current_target): Don't inherit or default
10184 to_trace_start.
10185 * target.h (struct target_ops) <to_trace_start>: Use
10186 TARGET_DEFAULT_NORETURN.
10187
86dd181d
TT
101882014-02-19 Tom Tromey <tromey@redhat.com>
10189
10190 * target-delegates.c: Rebuild.
10191 * target.c (update_current_target): Don't inherit or default
10192 to_trace_set_readonly_regions.
10193 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
10194 Use TARGET_DEFAULT_NORETURN.
10195
05c41993
TT
101962014-02-19 Tom Tromey <tromey@redhat.com>
10197
10198 * target-delegates.c: Rebuild.
10199 * target.c (update_current_target): Don't inherit or default
10200 to_disable_tracepoint.
10201 * target.h (struct target_ops) <to_disable_tracepoint>: Use
10202 TARGET_DEFAULT_NORETURN.
10203
151f70f1
TT
102042014-02-19 Tom Tromey <tromey@redhat.com>
10205
10206 * target-delegates.c: Rebuild.
10207 * target.c (update_current_target): Don't inherit or default
10208 to_enable_tracepoint.
10209 * target.h (struct target_ops) <to_enable_tracepoint>: Use
10210 TARGET_DEFAULT_NORETURN.
10211
94eb98b9
TT
102122014-02-19 Tom Tromey <tromey@redhat.com>
10213
10214 * target-delegates.c: Rebuild.
10215 * target.c (update_current_target): Don't inherit or default
10216 to_download_trace_state_variable.
10217 * target.h (struct target_ops) <to_download_trace_state_variable>:
10218 Use TARGET_DEFAULT_NORETURN.
10219
719acc4a
TT
102202014-02-19 Tom Tromey <tromey@redhat.com>
10221
10222 * target-delegates.c: Rebuild.
10223 * target.c (update_current_target): Don't inherit or default
10224 to_can_download_tracepoint.
10225 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
10226 TARGET_DEFAULT_RETURN.
10227
9a980a22
TT
102282014-02-19 Tom Tromey <tromey@redhat.com>
10229
10230 * target-delegates.c: Rebuild.
10231 * target.c (update_current_target): Don't inherit or default
10232 to_download_tracepoint.
10233 * target.h (struct target_ops) <to_download_tracepoint>: Use
10234 TARGET_DEFAULT_NORETURN.
10235
5536135b
TT
102362014-02-19 Tom Tromey <tromey@redhat.com>
10237
10238 * target-delegates.c: Rebuild.
10239 * target.c (update_current_target): Don't inherit or default
10240 to_trace_init.
10241 * target.h (struct target_ops) <to_trace_init>: Use
10242 TARGET_DEFAULT_RETURN.
10243
9409d39e
TT
102442014-02-19 Tom Tromey <tromey@redhat.com>
10245
10246 * target-delegates.c: Rebuild.
10247 * target.c (update_current_target): Don't inherit or default
10248 to_supports_string_tracing.
10249 * target.h (struct target_ops) <to_supports_string_tracing>: Use
10250 TARGET_DEFAULT_RETURN.
10251
aab1b22d
TT
102522014-02-19 Tom Tromey <tromey@redhat.com>
10253
10254 * target-delegates.c: Rebuild.
10255 * target.c (update_current_target): Don't inherit or default
10256 to_supports_enable_disable_tracepoint.
10257 * target.h (struct target_ops)
10258 <to_supports_enable_disable_tracepoint>: Use
10259 TARGET_DEFAULT_RETURN.
10260
a7304748
TT
102612014-02-19 Tom Tromey <tromey@redhat.com>
10262
10263 * target-delegates.c: Rebuild.
10264 * target.c (update_current_target): Don't inherit or default
10265 to_supports_multi_process.
10266 * target.h (struct target_ops) <to_supports_multi_process>: Use
10267 TARGET_DEFAULT_RETURN.
10268
4229b31d
TT
102692014-02-19 Tom Tromey <tromey@redhat.com>
10270
10271 * target-delegates.c: Rebuild.
10272 * target.c (update_current_target): Don't inherit or default
10273 to_get_ada_task_ptid.
10274 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
10275 TARGET_DEFAULT_FUNC.
10276
43eba180
TT
102772014-02-19 Tom Tromey <tromey@redhat.com>
10278
10279 * target-delegates.c: Rebuild.
10280 * target.c (update_current_target): Don't inherit or default
10281 to_thread_architecture.
10282 * target.h (struct target_ops) <to_thread_architecture>: Use
10283 TARGET_DEFAULT_FUNC.
10284
fe31bf5b
TT
102852014-02-19 Tom Tromey <tromey@redhat.com>
10286
10287 * target-delegates.c: Rebuild.
10288 * target.c (update_current_target): Don't inherit or default
10289 to_execution_direction.
10290 * target.h (struct target_ops) <to_execution_direction>: Use
10291 TARGET_DEFAULT_FUNC.
10292
53e1cfc7
TT
102932014-02-19 Tom Tromey <tromey@redhat.com>
10294
10295 * target-delegates.c: Rebuild.
10296 * target.c (update_current_target): Don't inherit or default
10297 to_can_execute_reverse.
10298 * target.h (struct target_ops) <to_can_execute_reverse>: Use
10299 TARGET_DEFAULT_RETURN.
10300 (target_can_execute_reverse): Unconditionally delegate.
10301
9bb9d61d
TT
103022014-02-19 Tom Tromey <tromey@redhat.com>
10303
10304 * target-delegates.c: Rebuild.
10305 * target.c (update_current_target): Don't inherit or default
10306 to_goto_bookmark.
10307 (dummy_goto_bookmark): Remove.
10308 (init_dummy_target): Don't inherit or default to_goto_bookmark.
10309 * target.h (struct target_ops) <to_goto_bookmark>: Use
10310 TARGET_DEFAULT_NORETURN.
10311
3dbafbbb
TT
103122014-02-19 Tom Tromey <tromey@redhat.com>
10313
10314 * target-delegates.c: Rebuild.
10315 * target.c (update_current_target): Don't inherit or default
10316 to_get_bookmark.
10317 (dummy_get_bookmark): Remove.
10318 (init_dummy_target): Don't inherit or default to_get_bookmark.
10319 * target.h (struct target_ops) <to_get_bookmark>: Use
10320 TARGET_DEFAULT_NORETURN
10321
16f796b1
TT
103222014-02-19 Tom Tromey <tromey@redhat.com>
10323
10324 * target-delegates.c: Rebuild.
10325 * target.c (update_current_target): Don't inherit or default
10326 to_make_corefile_notes.
10327 (init_dummy_target): Don't initialize to_make_corefile_notes.
10328 * target.h (struct target_ops) <to_make_corefile_notes>: Use
10329 TARGET_DEFAULT_FUNC.
10330
0b5a2719
TT
103312014-02-19 Tom Tromey <tromey@redhat.com>
10332
10333 * target-delegates.c: Rebuild.
10334 * target.c (update_current_target): Don't inherit or default
10335 to_find_memory_regions.
10336 (init_dummy_target): Don't initialize to_find_memory_regions.
10337 * target.h (struct target_ops) <to_find_memory_regions>: Use
10338 TARGET_DEFAULT_FUNC.
10339
d9cb0195
TT
103402014-02-19 Tom Tromey <tromey@redhat.com>
10341
10342 * target-delegates.c: Rebuild.
10343 * target.c (update_current_target): Don't inherit or default
10344 to_log_command.
10345 * target.h (struct target_ops) <to_log_command>: Use
10346 TARGET_DEFAULT_IGNORE.
10347 (target_log_command): Unconditionally delegate.
10348
830ca330
TT
103492014-02-19 Tom Tromey <tromey@redhat.com>
10350
10351 * target-delegates.c: Rebuild.
10352 * target.c (update_current_target): Don't inherit or default
10353 to_pid_to_exec_file.
10354 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
10355 TARGET_DEFAULT_RETURN.
10356
825828fc
TT
103572014-02-19 Tom Tromey <tromey@redhat.com>
10358
10359 * target-delegates.c: Rebuild.
10360 * target.c (update_current_target): Don't inherit or default
10361 to_thread_name.
10362 (target_thread_name): Unconditionally delegate.
10363 * target.h (struct target_ops) <to_thread_name>: Use
10364 TARGET_DEFAULT_RETURN.
10365
4a7e6dda
TT
103662014-02-19 Tom Tromey <tromey@redhat.com>
10367
10368 * target-delegates.c: Rebuild.
10369 * target.c (update_current_target): Don't inherit or default
10370 to_extra_thread_info.
10371 * target.h (struct target_ops) <to_extra_thread_info>: Use
10372 TARGET_DEFAULT_RETURN.
10373
0db88c1d
TT
103742014-02-19 Tom Tromey <tromey@redhat.com>
10375
10376 * target-delegates.c: Rebuild.
10377 * target.c (update_current_target): Don't inherit or default
10378 to_has_exited.
10379 * target.h (struct target_ops) <to_has_exited>: Use
10380 TARGET_DEFAULT_RETURN..
10381
6a9fa051
TT
103822014-02-19 Tom Tromey <tromey@redhat.com>
10383
10384 * target-delegates.c: Rebuild.
10385 * target.c (update_current_target): Don't inherit or default
10386 to_set_syscall_catchpoint.
10387 (return_one): Remove.
10388 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
10389 TARGET_DEFAULT_RETURN.
10390
62f64d7a
TT
103912014-02-19 Tom Tromey <tromey@redhat.com>
10392
10393 * target-delegates.c: Rebuild.
10394 * target.c (update_current_target): Don't inherit or default
10395 to_insert_exec_catchpoint.
10396 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
10397 TARGET_DEFAULT_RETURN.
10398
cda0f38c
TT
103992014-01-08 Tom Tromey <tromey@redhat.com>
10400
10401 * target-delegates.c: Rebuild.
10402 * target.c (update_current_target): Don't inherit or default
10403 to_insert_exec_catchpoint.
10404 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
10405 TARGET_DEFAULT_RETURN.
10406
95c3375e
TT
104072014-02-19 Tom Tromey <tromey@redhat.com>
10408
10409 * target-delegates.c: Rebuild.
10410 * target.c (update_current_target): Don't inherit or default
10411 to_remove_vfork_catchpoint.
10412 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
10413 TARGET_DEFAULT_RETURN.
10414
7e18a8dc
TT
104152014-02-19 Tom Tromey <tromey@redhat.com>
10416
10417 * target-delegates.c: Rebuild.
10418 * target.c (update_current_target): Don't inherit or default
10419 to_insert_vfork_catchpoint.
10420 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
10421 TARGET_DEFAULT_RETURN.
10422
e1a21fb7
TT
104232014-02-19 Tom Tromey <tromey@redhat.com>
10424
10425 * target-delegates.c: Rebuild.
10426 * target.c (update_current_target): Don't inherit or default
10427 to_remove_fork_catchpoint.
10428 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
10429 TARGET_DEFAULT_RETURN.
10430
5958ebeb
TT
104312014-02-19 Tom Tromey <tromey@redhat.com>
10432
10433 * target-delegates.c: Rebuild.
10434 * target.c (update_current_target): Don't inherit or default
10435 to_insert_fork_catchpoint.
10436 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
10437 TARGET_DEFAULT_RETURN.
10438
340ba4bf
TT
104392014-02-19 Tom Tromey <tromey@redhat.com>
10440
10441 * target-delegates.c: Rebuild.
10442 * target.c (update_current_target): Don't inherit or default
10443 to_post_startup_inferior.
10444 * target.h (struct target_ops) <to_post_startup_inferior>: Use
10445 TARGET_DEFAULT_IGNORE.
10446
7634da87
TT
104472014-02-19 Tom Tromey <tromey@redhat.com>
10448
10449 * target-delegates.c: Rebuild.
10450 * target.c (update_current_target): Don't inherit or default
10451 to_load.
10452 * target.h (struct target_ops) <to_load>: Use
10453 TARGET_DEFAULT_NORETURN.
10454
e19e919f
TT
104552014-02-19 Tom Tromey <tromey@redhat.com>
10456
10457 * target-delegates.c: Rebuild.
10458 * target.c (update_current_target): Don't inherit or default
10459 to_terminal_info.
10460 * target.h (struct target_ops) <to_terminal_info>: Use
10461 TARGET_DEFAULT_FUNC.
10462
c6ea8f79
TT
104632014-02-19 Tom Tromey <tromey@redhat.com>
10464
10465 * target-delegates.c: Rebuild.
10466 * target.c (update_current_target): Don't inherit or default
10467 to_terminal_save_ours.
10468 * target.h (struct target_ops) <to_terminal_save_ours>: Use
10469 TARGET_DEFAULT_IGNORE.
10470
e4a733f1
TT
104712014-02-19 Tom Tromey <tromey@redhat.com>
10472
10473 * target-delegates.c: Rebuild.
10474 * target.c (update_current_target): Don't inherit or default
10475 to_terminal_ours.
10476 * target.h (struct target_ops) <to_terminal_ours>: Use
10477 TARGET_DEFAULT_IGNORE.
10478
74fcbef9
TT
104792014-02-19 Tom Tromey <tromey@redhat.com>
10480
10481 * target-delegates.c: Rebuild.
10482 * target.c (update_current_target): Don't inherit or default
10483 to_terminal_ours_for_output.
10484 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
10485 TARGET_DEFAULT_IGNORE.
10486
ddeaacc9
TT
104872014-02-19 Tom Tromey <tromey@redhat.com>
10488
10489 * target-delegates.c: Rebuild.
10490 * target.c (update_current_target): Don't inherit or default
10491 to_terminal_inferior.
10492 * target.h (struct target_ops) <to_terminal_inferior>: Use
10493 TARGET_DEFAULT_IGNORE.
10494
0343661d
TT
104952014-02-19 Tom Tromey <tromey@redhat.com>
10496
10497 * target-delegates.c: Rebuild.
10498 * target.c (update_current_target): Don't inherit or default
10499 to_terminal_init.
10500 * target.h (struct target_ops) <to_terminal_init>: Use
10501 TARGET_DEFAULT_IGNORE.
10502
77cdffe9
TT
105032014-02-19 Tom Tromey <tromey@redhat.com>
10504
10505 * target-delegates.c: Rebuild.
10506 * target.c (update_current_target): Don't inherit or default
10507 to_can_accel_watchpoint_condition.
10508 * target.h (struct target_ops)
10509 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
10510
d03655e4
TT
105112014-02-19 Tom Tromey <tromey@redhat.com>
10512
10513 * target-delegates.c: Rebuild.
10514 * target.c (update_current_target): Don't inherit or default
10515 to_region_ok_for_hw_watchpoint.
10516 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10517 Use TARGET_DEFAULT_FUNC.
10518
65f160a9
TT
105192014-02-19 Tom Tromey <tromey@redhat.com>
10520
10521 * target-delegates.c: Rebuild.
10522 * target.c (update_current_target): Don't inherit or default
10523 to_watchpoint_addr_within_range.
10524 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
10525 Use TARGET_DEFAULT_FUNC.
10526
61dd109f
TT
105272014-02-19 Tom Tromey <tromey@redhat.com>
10528
10529 * target-delegates.c: Rebuild.
10530 * target.c (update_current_target): Don't inherit or default
10531 to_remove_watchpoint.
10532 * target.h (struct target_ops) <to_remove_watchpoint>: Use
10533 TARGET_DEFAULT_NORETURN.
10534
016facd4
TT
105352014-02-19 Tom Tromey <tromey@redhat.com>
10536
10537 * target-delegates.c: Rebuild.
10538 * target.c (update_current_target): Don't inherit or default
10539 to_insert_watchpoint.
10540 * target.h (struct target_ops) <to_insert_watchpoint>: Use
10541 TARGET_DEFAULT_RETURN.
10542
418dabac
TT
105432014-02-19 Tom Tromey <tromey@redhat.com>
10544
10545 * target-delegates.c: Rebuild.
10546 * target.c (update_current_target): Don't inherit or default
10547 to_remove_hw_breakpoint.
10548 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
10549 TARGET_DEFAULT_RETURN.
10550
61b371f9
TT
105512014-02-19 Tom Tromey <tromey@redhat.com>
10552
10553 * target-delegates.c: Rebuild.
10554 * target.c (update_current_target): Don't inherit or default
10555 to_insert_hw_breakpoint.
10556 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
10557 TARGET_DEFAULT_RETURN.
10558
52b51d06
TT
105592014-02-19 Tom Tromey <tromey@redhat.com>
10560
10561 * target-delegates.c: Rebuild.
10562 * target.c (update_current_target): Don't inherit or default
10563 to_can_use_hw_breakpoint.
10564 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
10565 TARGET_DEFAULT_RETURN.
10566
f86e59b2
TT
105672014-02-19 Tom Tromey <tromey@redhat.com>
10568
10569 * target-delegates.c: Rebuild.
10570 * target.c (update_current_target): Don't inherit or default
10571 to_files_info.
10572 * target.h (struct target_ops) <to_files_info>: Use
10573 TARGET_DEFAULT_IGNORE.
10574
6c628163
TT
105752014-02-19 Tom Tromey <tromey@redhat.com>
10576
10577 * target-delegates.c: Rebuild.
10578 * target.c (update_current_target): Don't inherit or default
10579 to_store.
10580 * target.h (struct target_ops) <to_store>: Use
10581 TARGET_DEFAULT_NORETURN.
10582
bebd3233
TT
105832014-02-19 Tom Tromey <tromey@redhat.com>
10584
10585 * target-delegates.c: Rebuild.
10586 * target.c (update_current_target): Don't inherit or default
10587 to_post_attach.
10588 * target.h (struct target_ops) <to_post_attach>: Use
10589 TARGET_DEFAULT_IGNORE.
10590
a53f3625
TT
105912014-02-19 Tom Tromey <tromey@redhat.com>
10592
10593 * target-delegates.c: Rebuild.
10594 * target.c (update_current_target): Don't inherit or default
10595 to_rcmd.
10596 (default_rcmd): New function.
10597 (do_monitor_command): Unconditionally delegate.
10598 * target.h (struct target_ops) <to_rmcd>: Use
10599 TARGET_DEFAULT_FUNC.
10600
e9a29200
TT
106012014-02-19 Tom Tromey <tromey@redhat.com>
10602
10603 * target-delegates.c: Rebuild.
10604 * target.c (init_dummy_target): Don't initialize to_attach.
10605 (target_attach): Unconditionally delegate.
10606 * target.h (struct target_ops) <to_attach>: Use
10607 TARGET_DEFAULT_FUNC.
10608
09da0d0a
TT
106092014-02-19 Tom Tromey <tromey@redhat.com>
10610
10611 * target-delegates.c: Rebuild.
10612 * target.c (target_detach): Unconditionally delegate.
10613 (init_dummy_target): Don't initialize to_detach.
10614 * target.h (struct target_ops) <to_detach>: Use
10615 TARGET_DEFAULT_IGNORE.
10616
5436ff03
TT
106172014-02-19 Tom Tromey <tromey@redhat.com>
10618
10619 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
10620 Add argument.
10621 (target_augmented_libraries_svr4_read): Add argument.
10622 * target.c (update_current_target): Update.
10623 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
10624 argument.
10625
f0d960ea
TT
106262014-02-19 Tom Tromey <tromey@redhat.com>
10627
10628 * target.h (struct target_ops) <to_call_history_range>: Add
10629 argument.
10630 * target.c (target_call_history_range): Add argument.
10631 * record-btrace.c (record_btrace_call_history_range): Add 'self'
10632 argument.
10633 (record_btrace_call_history_from): Update.
10634
ec0aea04
TT
106352014-02-19 Tom Tromey <tromey@redhat.com>
10636
10637 * target.h (struct target_ops) <to_call_history_from>: Add
10638 argument.
10639 * target.c (target_call_history_from): Add argument.
10640 * record-btrace.c (record_btrace_call_history_from): Add 'self'
10641 argument.
10642
5df2fcba
TT
106432014-02-19 Tom Tromey <tromey@redhat.com>
10644
10645 * target.h (struct target_ops) <to_call_history>: Add argument.
10646 * target.c (target_call_history): Add argument.
10647 * record-btrace.c (record_btrace_call_history): Add 'self'
10648 argument.
10649
4e99c6b7
TT
106502014-02-19 Tom Tromey <tromey@redhat.com>
10651
10652 * target.h (struct target_ops) <to_insn_history_range>: Add
10653 argument.
10654 * target.c (target_insn_history_range): Add argument.
10655 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
10656 argument.
10657 (record_btrace_insn_history_from): Update.
10658
9abc3ff3
TT
106592014-02-19 Tom Tromey <tromey@redhat.com>
10660
10661 * target.h (struct target_ops) <to_insn_history_from>: Add
10662 argument.
10663 * target.c (target_insn_history_from): Add argument.
10664 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
10665 argument.
10666
7a6c5609
TT
106672014-02-19 Tom Tromey <tromey@redhat.com>
10668
10669 * target.h (struct target_ops) <to_insn_history>: Add argument.
10670 * target.c (target_insn_history): Add argument.
10671 * record-btrace.c (record_btrace_insn_history): Add 'self'
10672 argument.
10673
606183ac
TT
106742014-02-19 Tom Tromey <tromey@redhat.com>
10675
10676 * target.h (struct target_ops) <to_goto_record>: Add argument.
10677 * target.c (target_goto_record): Add argument.
10678 * record-full.c (record_full_goto): Add 'self' argument.
10679 * record-btrace.c (record_btrace_goto): Add 'self' argument.
10680
307a1b91
TT
106812014-02-19 Tom Tromey <tromey@redhat.com>
10682
10683 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
10684 * target.c (target_goto_record_end): Add argument.
10685 * record-full.c (record_full_goto_end): Add 'self' argument.
10686 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
10687
08475817
TT
106882014-02-19 Tom Tromey <tromey@redhat.com>
10689
10690 * target.h (struct target_ops) <to_goto_record_begin>: Add
10691 argument.
10692 * target.c (target_goto_record_begin): Add argument.
10693 * record-full.c (record_full_goto_begin): Add 'self' argument.
10694 * record-btrace.c (record_btrace_goto_begin): Add 'self'
10695 argument.
10696
1c63c994
TT
106972014-02-19 Tom Tromey <tromey@redhat.com>
10698
10699 * target.h (struct target_ops) <to_record_is_replaying>: Add
10700 argument.
10701 * target.c (target_record_is_replaying): Add argument.
10702 * record-full.c (record_full_is_replaying): Add 'self' argument.
10703 * record-btrace.c (record_btrace_is_replaying): Add 'self'
10704 argument.
10705 (record_btrace_xfer_partial, record_btrace_store_registers)
10706 (record_btrace_prepare_to_store, record_btrace_resume)
10707 (record_btrace_wait, record_btrace_decr_pc_after_break)
10708 (record_btrace_find_new_threads, record_btrace_thread_alive):
10709 Update.
10710
d1b55219
TT
107112014-02-19 Tom Tromey <tromey@redhat.com>
10712
10713 * target.h (struct target_ops) <to_delete_record>: Add argument.
10714 * target.c (target_delete_record): Add argument.
10715 * record-full.c (record_full_delete): Add 'self' argument.
10716
1390f529
TT
107172014-02-19 Tom Tromey <tromey@redhat.com>
10718
10719 * target.h (struct target_ops) <to_save_record>: Add argument.
10720 * target.c (target_save_record): Add argument.
10721 * record-full.c (record_full_save): Add 'self' argument.
10722 (record_full_save): Add 'self' argument.
10723
630d6a4a
TT
107242014-02-19 Tom Tromey <tromey@redhat.com>
10725
10726 * target.h (struct target_ops) <to_info_record>: Add argument.
10727 * target.c (target_info_record): Add argument.
10728 * record.c (info_record_command): Add argument.
10729 * record-full.c (record_full_info): Add 'self' argument.
10730 * record-btrace.c (record_btrace_info): Add 'self' argument.
10731
c6cd7c02
TT
107322014-02-19 Tom Tromey <tromey@redhat.com>
10733
10734 * target.h (struct target_ops) <to_stop_recording>: Add argument.
10735 * target.c (target_stop_recording): Add argument.
10736 * record.c (record_stop): Add argument.
10737 * record-btrace.c (record_btrace_stop_recording): Add 'self'
10738 argument.
10739
39c49f83
TT
107402014-02-19 Tom Tromey <tromey@redhat.com>
10741
10742 * target.h (struct target_ops) <to_read_btrace>: Add argument.
10743 * target.c (struct target_ops) <to_read_btrace>: Add argument.
10744 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
10745 argument.
10746 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
10747 (_initialize_amd64_linux_nat): Use it.
10748 * i386-linux-nat.c (i386_linux_read_btrace): New function.
10749 (_initialize_i386_linux_nat): Use it.
10750
1777056d
TT
107512014-02-19 Tom Tromey <tromey@redhat.com>
10752
10753 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
10754 * target.c (target_teardown_btrace): Add argument.
10755 * remote.c (remote_teardown_btrace): Add 'self' argument.
10756 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
10757 argument.
10758 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
10759 argument.
10760
25e95349
TT
107612014-02-19 Tom Tromey <tromey@redhat.com>
10762
10763 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
10764 * target.c (target_disable_btrace): Add argument.
10765 * remote.c (remote_disable_btrace): Add 'self' argument.
10766 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
10767 argument.
10768 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
10769 argument.
10770
e3c49f88
TT
107712014-02-19 Tom Tromey <tromey@redhat.com>
10772
10773 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
10774 * target.c (target_enable_btrace): Add argument.
10775 * remote.c (remote_enable_btrace): Add 'self' argument.
10776 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
10777 argument.
10778 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
10779 argument.
10780
fe38f897
TT
107812014-02-19 Tom Tromey <tromey@redhat.com>
10782
10783 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
10784 (target_can_use_agent): Add argument.
10785 * target.c (update_current_target): Update.
10786 * remote.c (remote_can_use_agent): Add 'self' argument.
10787 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
10788
2c152180
TT
107892014-02-19 Tom Tromey <tromey@redhat.com>
10790
10791 * target.h (struct target_ops) <to_use_agent>: Add argument.
10792 (target_use_agent): Add argument.
10793 * target.c (update_current_target): Update.
10794 * remote.c (remote_use_agent): Add 'self' argument.
10795 * inf-child.c (inf_child_use_agent): Add 'self' argument.
10796
a893e81f
TT
107972014-02-19 Tom Tromey <tromey@redhat.com>
10798
10799 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
10800 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
10801 (target_traceframe_info): Add argument.
10802 * target.c (update_current_target): Update.
10803 * remote.c (remote_traceframe_info): Add 'self' argument.
10804 * ctf.c (ctf_traceframe_info): Add 'self' argument.
10805
c686c57f
TT
108062014-02-19 Tom Tromey <tromey@redhat.com>
10807
10808 * target.h (target_static_tracepoint_markers_by_strid): Add
10809 argument.
10810 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
10811 'self' argument.
10812 * target.c (update_current_target): Update.
10813 * remote.c (struct target_ops)
10814 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
10815 * linux-nat.c (struct target_ops)
10816 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
10817
61fc905d
TT
108182014-02-19 Tom Tromey <tromey@redhat.com>
10819
10820 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
10821 Add argument.
10822 (target_static_tracepoint_marker_at): Add argument.
10823 * target.c (update_current_target): Update.
10824 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
10825 argument.
10826
c378d69d
TT
108272014-02-19 Tom Tromey <tromey@redhat.com>
10828
10829 * target.h (struct target_ops) <to_set_permissions>: Add argument.
10830 (target_set_permissions): Add argument.
10831 * target.c (update_current_target): Update.
10832 * remote.c (remote_set_permissions): Add 'self' argument.
10833 (remote_start_remote): Update.
10834
bd7ae0f5
TT
108352014-02-19 Tom Tromey <tromey@redhat.com>
10836
10837 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
10838 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
10839 (target_get_tib_address): Add argument.
10840 * target.c (update_current_target): Update.
10841 * remote.c (remote_get_tib_address): Add 'self' argument.
10842
d9e68a2c
TT
108432014-02-19 Tom Tromey <tromey@redhat.com>
10844
10845 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
10846 (target_set_trace_notes): Add argument.
10847 * target.c (update_current_target): Update.
10848 * remote.c (remote_set_trace_notes): Add 'self' argument.
10849
4da384be
TT
108502014-02-19 Tom Tromey <tromey@redhat.com>
10851
10852 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
10853 argument.
10854 (target_set_trace_buffer_size): Add argument.
10855 * target.c (update_current_target): Update.
10856 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
10857
736d5b1f
TT
108582014-02-19 Tom Tromey <tromey@redhat.com>
10859
10860 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
10861 argument.
10862 (target_set_circular_trace_buffer): Add argument.
10863 * target.c (update_current_target): Update.
10864 * remote.c (remote_set_circular_trace_buffer): Add 'self'
10865 argument.
10866
37b25738
TT
108672014-02-19 Tom Tromey <tromey@redhat.com>
10868
10869 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
10870 argument.
10871 (target_set_disconnected_tracing): Add argument.
10872 * target.c (update_current_target): Update.
10873 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
10874
0e67620a
TT
108752014-02-19 Tom Tromey <tromey@redhat.com>
10876
10877 * target.h (struct target_ops)
10878 <to_get_min_fast_tracepoint_insn_len>: Add argument.
10879 (target_get_min_fast_tracepoint_insn_len): Add argument.
10880 * target.c (update_current_target): Update.
10881 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
10882 argument.
10883
88ee6f45
TT
108842014-02-19 Tom Tromey <tromey@redhat.com>
10885
10886 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
10887 argument.
10888 (target_get_raw_trace_data): Add argument.
10889 * target.c (update_current_target): Update.
10890 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
10891
181e3713
TT
108922014-02-19 Tom Tromey <tromey@redhat.com>
10893
10894 * target.h (struct target_ops) <to_upload_trace_state_variables>:
10895 Add argument.
10896 (target_upload_trace_state_variables): Add argument.
10897 * target.c (update_current_target): Update.
10898 * remote.c (remote_upload_trace_state_variables): Add 'self'
10899 argument.
10900 (remote_start_remote): Update.
10901
ab6617cc
TT
109022014-02-19 Tom Tromey <tromey@redhat.com>
10903
10904 * target.h (struct target_ops) <to_upload_tracepoints>: Add
10905 argument.
10906 (target_upload_tracepoints): Add argument.
10907 * target.c (update_current_target): Update.
10908 * remote.c (remote_upload_tracepoints): Add 'self' argument.
10909 (remote_start_remote): Update.
10910
dc3decaf
TT
109112014-02-19 Tom Tromey <tromey@redhat.com>
10912
10913 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
10914 (target_save_trace_data): Add argument.
10915 * target.c (update_current_target): Update.
10916 * remote.c (remote_save_trace_data): Add 'self' argument.
10917
4011015b
TT
109182014-02-19 Tom Tromey <tromey@redhat.com>
10919
10920 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
10921 argument.
10922 * target.h (struct target_ops)
10923 <to_get_trace_state_variable_value>: Add argument.
10924 (target_get_trace_state_variable_value): Add argument.
10925 * target.c (update_current_target): Update.
10926 * remote.c (remote_get_trace_state_variable_value): Add 'self'
10927 argument.
10928 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
10929
bd4c6793
TT
109302014-02-19 Tom Tromey <tromey@redhat.com>
10931
10932 * tracepoint.c (tfile_trace_find): Add 'self' argument.
10933 * target.h (struct target_ops) <to_trace_find>: Add argument.
10934 (target_trace_find): Add argument.
10935 * target.c (update_current_target): Update.
10936 * remote.c (remote_trace_find): Add 'self' argument.
10937 * ctf.c (ctf_trace_find): Add 'self' argument.
10938
74499f1b
TT
109392014-02-19 Tom Tromey <tromey@redhat.com>
10940
10941 * target.h (struct target_ops) <to_trace_stop>: Add argument.
10942 (target_trace_stop): Add argument.
10943 * target.c (update_current_target): Update.
10944 * remote.c (remote_trace_stop): Add 'self' argument.
10945
db90e85c
TT
109462014-02-19 Tom Tromey <tromey@redhat.com>
10947
10948 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
10949 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
10950 argument.
10951 (target_get_tracepoint_status): Add argument.
10952 * target.c (update_current_target): Update.
10953 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
10954
8bd200f1
TT
109552014-02-19 Tom Tromey <tromey@redhat.com>
10956
10957 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
10958 * target.h (struct target_ops) <to_get_trace_status>: Add
10959 argument.
10960 (target_get_trace_status): Add argument.
10961 * target.c (update_current_target): Update.
10962 * remote.c (remote_get_trace_status): Add 'self' argument.
10963 (remote_start_remote, remote_can_download_tracepoint): Update.
10964 * ctf.c (ctf_get_trace_status): Add 'self' argument.
10965
e2d1aae3
TT
109662014-02-19 Tom Tromey <tromey@redhat.com>
10967
10968 * target.h (struct target_ops) <to_trace_start>: Add argument.
10969 (target_trace_start): Add argument.
10970 * target.c (update_current_target): Update.
10971 * remote.c (remote_trace_start): Add 'self' argument.
10972
583f9a86
TT
109732014-02-19 Tom Tromey <tromey@redhat.com>
10974
10975 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
10976 Add argument.
10977 (target_trace_set_readonly_regions): Add argument.
10978 * target.c (update_current_target): Update.
10979 * remote.c (remote_trace_set_readonly_regions): Add 'self'
10980 argument.
10981
780b049c
TT
109822014-02-19 Tom Tromey <tromey@redhat.com>
10983
10984 * target.h (struct target_ops) <to_disable_tracepoint>: Add
10985 argument.
10986 (target_disable_tracepoint): Add argument.
10987 * target.c (update_current_target): Update.
10988 * remote.c (remote_disable_tracepoint): Add 'self' argument.
10989
46670d57
TT
109902014-02-19 Tom Tromey <tromey@redhat.com>
10991
10992 * target.h (struct target_ops) <to_enable_tracepoint>: Add
10993 argument.
10994 (target_enable_tracepoint): Add argument.
10995 * target.c (update_current_target): Update.
10996 * remote.c (remote_enable_tracepoint): Add 'self' argument.
10997
559d2b81
TT
109982014-02-19 Tom Tromey <tromey@redhat.com>
10999
11000 * target.h (struct target_ops) <to_download_trace_state_variable>:
11001 Add argument.
11002 (target_download_trace_state_variable): Add argument.
11003 * target.c (update_current_target): Update.
11004 * remote.c (remote_download_trace_state_variable): Add 'self'
11005 argument.
11006
a52a8357
TT
110072014-02-19 Tom Tromey <tromey@redhat.com>
11008
11009 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
11010 argument.
11011 (target_can_download_tracepoint): Add argument.
11012 * target.c (update_current_target): Update.
11013 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
11014
548f7808
TT
110152014-02-19 Tom Tromey <tromey@redhat.com>
11016
11017 * target.h (struct target_ops) <to_download_tracepoint>: Add
11018 argument.
11019 (target_download_tracepoint): Add argument.
11020 * target.c (update_current_target): Update.
11021 * remote.c (remote_download_tracepoint): Add 'self' argument.
11022
ecae04e1
TT
110232014-02-19 Tom Tromey <tromey@redhat.com>
11024
11025 * target.h (struct target_ops) <to_trace_init>: Add argument.
11026 (target_trace_init): Add argument.
11027 * target.c (update_current_target): Update.
11028 * remote.c (remote_trace_init): Add 'self' argument.
11029
fab5aa7c
TT
110302014-02-19 Tom Tromey <tromey@redhat.com>
11031
11032 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
11033 * target.c (target_fileio_readlink): Add argument.
11034 * remote.c (remote_hostio_readlink): Add 'self' argument.
11035 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
11036
dbbca37d
TT
110372014-02-19 Tom Tromey <tromey@redhat.com>
11038
11039 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
11040 * target.c (target_fileio_unlink): Add argument.
11041 * remote.c (remote_hostio_unlink): Add 'self' argument.
11042 (remote_file_delete): Update.
11043 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
11044
df39ea25
TT
110452014-02-19 Tom Tromey <tromey@redhat.com>
11046
11047 * target.h (struct target_ops) <to_fileio_close>: Add argument.
11048 * target.c (target_fileio_close): Add argument.
11049 * remote.c (remote_hostio_close): Add 'self' argument.
11050 (remote_hostio_close_cleanup): Update.
11051 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
11052 Update.
11053 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
11054
a3be983c
TT
110552014-02-19 Tom Tromey <tromey@redhat.com>
11056
11057 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
11058 * target.c (target_fileio_pread): Add argument.
11059 * remote.c (remote_hostio_pread): Add 'self' argument.
11060 (remote_bfd_iovec_pread, remote_file_get): Update.
11061 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
11062
0d866f62
TT
110632014-02-19 Tom Tromey <tromey@redhat.com>
11064
11065 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
11066 * target.c (target_fileio_pwrite): Add argument.
11067 * remote.c (remote_hostio_pwrite): Add 'self' argument.
11068 (remote_file_put): Update.
11069 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
11070
cd897586
TT
110712014-02-19 Tom Tromey <tromey@redhat.com>
11072
11073 * target.h (struct target_ops) <to_fileio_open>: Add argument.
11074 * target.c (target_fileio_open): Add argument.
11075 * remote.c (remote_hostio_open): Add 'self' argument.
11076 (remote_bfd_iovec_open): Add 'self' argument.
11077 (remote_file_put): Add 'self' argument.
11078 (remote_file_get): Add 'self' argument.
11079 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
11080
78eff0ec
TT
110812014-02-19 Tom Tromey <tromey@redhat.com>
11082
11083 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
11084 Add argument.
11085 (target_can_run_breakpoint_commands): Add argument.
11086 * target.c (update_current_target): Update.
11087 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
11088 argument.
11089 (remote_insert_breakpoint): Add 'self' argument.
11090 (remote_insert_hw_breakpoint): Add 'self' argument.
11091 (remote_can_run_breakpoint_commands): Add 'self' argument.
11092
efcc2da7
TT
110932014-02-19 Tom Tromey <tromey@redhat.com>
11094
11095 * target.h (struct target_ops)
11096 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
11097 (target_supports_evaluation_of_breakpoint_conditions): Add
11098 argument.
11099 * target.c (update_current_target): Update.
11100 * remote.c (remote_supports_cond_breakpoints): Add 'self'
11101 argument.
11102 (remote_insert_breakpoint): Add 'self' argument.
11103 (remote_insert_hw_breakpoint): Add 'self' argument.
11104 (remote_supports_cond_breakpoints): Add 'self' argument.
11105
6de37a3a
TT
111062014-02-19 Tom Tromey <tromey@redhat.com>
11107
11108 * target.h (struct target_ops) <to_supports_string_tracing>: Add
11109 argument.
11110 (target_supports_string_tracing): Add argument.
11111 * target.c (update_current_target): Update.
11112 * remote.c (remote_supports_string_tracing): Add 'self' argument.
11113
2bfc0540
TT
111142014-02-19 Tom Tromey <tromey@redhat.com>
11115
11116 * target.h (struct target_ops)
11117 <to_supports_disable_randomization>: Add argument.
11118 * target.c (find_default_supports_disable_randomization): Add
11119 argument.
11120 (target_supports_disable_randomization): Add argument.
11121 (find_default_supports_disable_randomization): Add 'self'
11122 argument.
11123 * remote.c (extended_remote_supports_disable_randomization): Add
11124 'self' argument.
11125 (remote_supports_disable_randomization): Add 'self' argument.
11126 (extended_remote_create_inferior): Update.
11127 * linux-nat.c (linux_nat_supports_disable_randomization): Add
11128 'self' argument.
11129
7d178d6a
TT
111302014-02-19 Tom Tromey <tromey@redhat.com>
11131
11132 * target.h (struct target_ops)
11133 <to_supports_enable_disable_tracepoint>: Add argument.
11134 (target_supports_enable_disable_tracepoint): Add argument.
11135 * target.c (update_current_target): Update.
11136 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
11137 argument.
11138
86ce2668
TT
111392014-02-19 Tom Tromey <tromey@redhat.com>
11140
11141 * target.h (struct target_ops) <to_supports_multi_process>: Add
11142 argument.
11143 (target_supports_multi_process): Add argument.
11144 * target.c (update_current_target): Update.
11145 * remote.c (remote_supports_multi_process): Add 'self' argument.
11146 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
11147 argument.
11148 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
11149 argument.
11150
4c612759
TT
111512014-02-19 Tom Tromey <tromey@redhat.com>
11152
11153 * target.h (struct target_ops) <to_execution_direction>: Add
11154 argument.
11155 (target_execution_direction): Add argument.
11156 * target.c (default_execution_direction): Add 'self' argument.
11157 * record-full.c (record_full_execution_direction): Add 'self'
11158 argument.
11159
19db3e69
TT
111602014-02-19 Tom Tromey <tromey@redhat.com>
11161
11162 * target.h (struct target_ops) <to_can_execute_reverse>: Add
11163 argument.
11164 (target_can_execute_reverse): Add argument.
11165 * remote.c (remote_can_execute_reverse): Add 'self' argument.
11166 * record-full.c (record_full_can_execute_reverse): Add 'self'
11167 argument.
11168 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
11169 argument.
11170
1e6b91a4
TT
111712014-02-19 Tom Tromey <tromey@redhat.com>
11172
11173 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
11174 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
11175 argument.
11176 (target_get_ada_task_ptid): Add argument.
11177 * target.c (update_current_target): Update.
11178 (default_get_ada_task_ptid): Add 'self' argument.
11179 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
11180 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
11181 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
11182 argument.
11183 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
11184 argument.
11185 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
11186 argument.
11187 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
11188 argument.
11189 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
11190 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
11191 argument.
11192
3c80fb48
TT
111932014-02-19 Tom Tromey <tromey@redhat.com>
11194
11195 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
11196 (target_goto_bookmark): Add argument.
11197 * target.c (dummy_goto_bookmark): Add 'self' argument.
11198 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
11199
dd0e2830
TT
112002014-02-19 Tom Tromey <tromey@redhat.com>
11201
11202 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
11203 (target_get_bookmark): Add argument.
11204 * target.c (dummy_get_bookmark): Add 'self' argument.
11205 * record-full.c (record_full_get_bookmark): Add 'self' argument.
11206
fc6691b2
TT
112072014-02-19 Tom Tromey <tromey@redhat.com>
11208
11209 * target.h (struct target_ops) <to_make_corefile_notes>: Add
11210 argument.
11211 (target_make_corefile_notes): Add argument.
11212 * target.c (dummy_make_corefile_notes): Add 'self' argument.
11213 * procfs.c (procfs_make_note_section): Add 'self' argument.
11214 (procfs_make_note_section): Add 'self' argument.
11215 (procfs_make_note_section): Add 'self' argument.
11216 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
11217 argument.
11218 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
11219 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
11220 * exec.c (exec_make_note_section): Add 'self' argument.
11221 (exec_make_note_section): Add 'self' argument.
11222
2e73927c
TT
112232014-02-19 Tom Tromey <tromey@redhat.com>
11224
11225 * target.h (struct target_ops) <to_find_memory_regions>: Add
11226 argument.
11227 (target_find_memory_regions): Add argument.
11228 * target.c (dummy_find_memory_regions): Add 'self' argument.
11229 * procfs.c (proc_find_memory_regions): Add 'self' argument.
11230 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
11231 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
11232 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
11233 * exec. (exec_do_find_memory_regions): New global.
11234 (exec_set_find_memory_regions): Rewrite.
11235 (exec_find_memory_regions): New function.
11236 (init_exec_ops): Use exec_find_memory_regions.
11237
2a9a2795
TT
112382014-02-19 Tom Tromey <tromey@redhat.com>
11239
11240 * target.h (struct target_ops) <to_supports_non_stop>: Add
11241 argument.
11242 * target.c (find_default_supports_non_stop): Add argument.
11243 (target_supports_non_stop): Add argument.
11244 (find_default_supports_non_stop): Add 'self' argument.
11245 * remote.c (remote_supports_non_stop): Add 'self' argument.
11246 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
11247
4ab76ea3
TT
112482014-02-19 Tom Tromey <tromey@redhat.com>
11249
11250 * target.h (struct target_ops) <to_log_command>: Add argument.
11251 (target_log_command): Add argument.
11252 * serial.h (serial_log_command): Add 'self' argument.
11253 * serial.c (serial_log_command): Add 'self' argument.
11254
8dd27370
TT
112552014-02-19 Tom Tromey <tromey@redhat.com>
11256
11257 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
11258 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
11259 argument.
11260 (target_pid_to_exec_file): Add argument.
11261 * target.c (debug_to_pid_to_exec_file): Add argument.
11262 (update_current_target): Update.
11263 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
11264 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
11265 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
11266 (linux_handle_extended_wait): Update.
11267 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
11268 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
11269 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
11270 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
11271
1aac633b
TT
112722014-02-19 Tom Tromey <tromey@redhat.com>
11273
11274 * target.h (struct target_ops) <to_rcmd>: Add argument.
11275 (target_rcmd): Add argument.
11276 * target.c (debug_to_rcmd): Add argument.
11277 (update_current_target, do_monitor_command): Update.
11278 * remote.c (remote_rcmd): Add 'self' argument.
11279 * monitor.c (monitor_rcmd): Add 'self' argument.
11280
1eab8a48
TT
112812014-02-19 Tom Tromey <tromey@redhat.com>
11282
11283 * windows-nat.c (windows_stop): Add 'self' argument.
11284 * target.h (struct target_ops) <to_stop>: Add argument.
11285 * target.c (target_stop): Add argument.
11286 (debug_to_stop): Add argument.
11287 (update_current_target): Update.
11288 * remote.c (remote_stop): Add 'self' argument.
11289 * remote-sim.c (gdbsim_stop): Add 'self' argument.
11290 (gdbsim_cntrl_c): Update.
11291 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
11292 * procfs.c (procfs_stop): Add 'self' argument.
11293 * nto-procfs.c (procfs_stop): Add 'self' argument.
11294 * monitor.c (monitor_stop): Add 'self' argument.
11295 (monitor_open): Update.
11296 * linux-nat.c (linux_nat_stop): Add argument.
11297 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
11298 * gnu-nat.c (gnu_stop): Add 'self' argument.
11299 * darwin-nat.c (darwin_stop): Add 'self' argument.
11300
503a628d
TT
113012014-02-19 Tom Tromey <tromey@redhat.com>
11302
11303 * target.h (struct target_ops) <to_thread_name>: Add argument.
11304 * target.c (target_thread_name): Add argument.
11305 (update_current_target): Update.
11306 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
11307
c15906d8
TT
113082014-02-19 Tom Tromey <tromey@redhat.com>
11309
11310 * target.h (struct target_ops) <to_extra_thread_info>: Add
11311 argument.
11312 (target_extra_thread_info): Add argument.
11313 * target.c (update_current_target): Update.
11314 * remote.c (remote_threads_extra_info): Add 'self' argument.
11315 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
11316 argument.
11317 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
11318 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
11319 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
11320 argument.
11321 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
11322 argument.
11323 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
11324 argument.
11325 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
11326 argument.
11327
daf5e9b6
TT
113282014-02-19 Tom Tromey <tromey@redhat.com>
11329
11330 * target.h (struct target_ops) <to_program_signals>: Add argument.
11331 * target.c (target_program_signals): Add argument.
11332 * remote.c (remote_program_signals): Add 'self' argument.
11333
94bedb42
TT
113342014-02-19 Tom Tromey <tromey@redhat.com>
11335
11336 * target.h (struct target_ops) <to_pass_signals>: Add argument.
11337 * target.c (target_pass_signals): Add argument.
11338 * remote.c (remote_pass_signals): Add 'self' argument.
11339 (remote_start_remote): Update.
11340 * procfs.c (procfs_pass_signals): Add 'self' argument.
11341 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
11342 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
11343 (linux_nat_create_inferior, linux_nat_attach): Update.
11344
da82bd6b
TT
113452014-02-19 Tom Tromey <tromey@redhat.com>
11346
11347 * windows-nat.c (windows_can_run): Add 'self' argument.
11348 * target.h (struct target_ops) <to_can_run>: Add argument.
11349 (target_can_run): Add argument.
11350 * target.c (debug_to_can_run): Add argument.
11351 (update_current_target): Update.
11352 * nto-procfs.c (procfs_can_run): Add 'self' argument.
11353 * inf-child.c (inf_child_can_run): Add 'self' argument.
11354 * go32-nat.c (go32_can_run): Add 'self' argument.
11355
d796e1d6
TT
113562014-02-19 Tom Tromey <tromey@redhat.com>
11357
11358 * target.h (struct target_ops) <to_has_exited>: Add argument.
11359 (target_has_exited): Add argument.
11360 * target.c (debug_to_has_exited): Add argument.
11361 (update_current_target): Update.
11362
ff214e67
TT
113632014-02-19 Tom Tromey <tromey@redhat.com>
11364
11365 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
11366 argument.
11367 (target_set_syscall_catchpoint): Add argument.
11368 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
11369 argument.
11370 * target.c (update_current_target): Update.
11371
758e29d2
TT
113722014-02-19 Tom Tromey <tromey@redhat.com>
11373
11374 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
11375 argument.
11376 (target_remove_exec_catchpoint): Add argument.
11377 * target.c (debug_to_remove_exec_catchpoint): Add argument.
11378 (update_current_target): Update.
11379 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
11380 argument.
11381
ba025e51
TT
113822014-02-19 Tom Tromey <tromey@redhat.com>
11383
11384 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
11385 argument.
11386 (target_insert_exec_catchpoint): Add argument.
11387 * target.c (debug_to_insert_exec_catchpoint): Add argument.
11388 (update_current_target): Update.
11389 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
11390 argument.
11391
e98cf0cd
TT
113922014-02-19 Tom Tromey <tromey@redhat.com>
11393
11394 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
11395 argument.
11396 (target_remove_vfork_catchpoint): Add argument.
11397 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
11398 (update_current_target): Update.
11399 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
11400 argument.
11401
3ecc7da0
TT
114022014-02-19 Tom Tromey <tromey@redhat.com>
11403
11404 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
11405 argument.
11406 (target_insert_vfork_catchpoint): Add argument.
11407 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
11408 (update_current_target): Update.
11409 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
11410 argument.
11411
973fc227
TT
114122014-02-19 Tom Tromey <tromey@redhat.com>
11413
11414 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
11415 argument.
11416 (target_remove_fork_catchpoint): Add argument.
11417 * target.c (debug_to_remove_fork_catchpoint): Add argument.
11418 (update_current_target): Update.
11419 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
11420 argument.
11421
a863b201
TT
114222014-02-19 Tom Tromey <tromey@redhat.com>
11423
11424 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
11425 argument.
11426 (target_insert_fork_catchpoint): Add argument.
11427 * target.c (debug_to_insert_fork_catchpoint): Add argument.
11428 (update_current_target): Update.
11429 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
11430 argument.
11431
2e97a79e
TT
114322014-02-19 Tom Tromey <tromey@redhat.com>
11433
11434 * target.h (struct target_ops) <to_post_startup_inferior>: Add
11435 argument.
11436 (target_post_startup_inferior): Add argument.
11437 * target.c (debug_to_post_startup_inferior): Add argument.
11438 (update_current_target): Update.
11439 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
11440 argument.
11441 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
11442 argument.
11443 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
11444 argument.
11445 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
11446 argument.
11447 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
11448 'self' argument.
11449 (super_post_startup_inferior): Likewise.
11450 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
11451 'self' argument.
11452 (super_post_startup_inferior): Likewise.
11453 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
11454 Add 'self' argument.
11455 (super_post_startup_inferior): Likewise.
11456
71a9f134
TT
114572014-02-19 Tom Tromey <tromey@redhat.com>
11458
11459 * target.h (struct target_ops) <to_load>: Add argument.
11460 * target.c (target_load): Add argument.
11461 (debug_to_load): Add argument.
11462 (update_current_target): Update.
11463 * remote.c (remote_load): Add 'self' argument.
11464 * remote-sim.c (gdbsim_load): Add 'self' argument.
11465 * remote-mips.c (mips_load): Add 'self' argument.
11466 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
11467 * monitor.c (monitor_load): Add 'self' argument.
11468 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
11469
0a4f40a2
TT
114702014-02-19 Tom Tromey <tromey@redhat.com>
11471
11472 * target.h (struct target_ops) <to_terminal_info>: Add argument.
11473 (target_terminal_info): Add argument.
11474 * target.c (debug_to_terminal_info): Add argument.
11475 (default_terminal_info): Likewise.
11476 * inflow.c (child_terminal_info): Add 'self' argument.
11477 * inferior.h (child_terminal_info): Add 'self' argument.
11478 * go32-nat.c (go32_terminal_info): Add 'self' argument.
11479
ae3bd431
TT
114802014-02-19 Tom Tromey <tromey@redhat.com>
11481
11482 * target.h (struct target_ops) <to_terminal_save_ours>: Add
11483 argument.
11484 (target_terminal_save_ours): Add argument.
11485 * target.c (debug_to_terminal_save_ours): Add argument.
11486 (update_current_target): Update.
11487 * inflow.c (terminal_save_ours): Add 'self' argument.
11488 * inferior.h (terminal_save_ours): Add 'self' argument.
11489
e3594fd1
TT
114902014-02-19 Tom Tromey <tromey@redhat.com>
11491
11492 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
11493 (target_terminal_ours): Add argument.
11494 * target.c (debug_to_terminal_ours): Add argument.
11495 (update_current_target): Update.
11496 * remote.c (remote_terminal_ours): Add 'self' argument.
11497 (remote_close): Update.
11498 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
11499 * inflow.c (terminal_ours): Add 'self' argument.
11500 * inferior.h (terminal_ours): Add 'self' argument.
11501 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11502
2e1e1a19
TT
115032014-02-19 Pedro Alves <palves@redhat.com>
11504 Tom Tromey <tromey@redhat.com>
11505
11506 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
11507 argument.
11508 (target_terminal_ours_for_output): Add argument.
11509 * target.c (debug_to_terminal_ours_for_output): Add argument.
11510 (update_current_target): Update.
11511 * inflow.c (terminal_ours_for_output): Add 'self' argument.
11512 * inferior.h (terminal_ours_for_output): Add 'self' argument.
11513 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11514
d2f640d4
TT
115152014-02-19 Tom Tromey <tromey@redhat.com>
11516
11517 * target.h (struct target_ops) <to_terminal_inferior>: Add
11518 argument.
11519 * target.c (target_terminal_inferior): Add argument.
11520 (update_current_target): Update.
11521 * remote.c (remote_terminal_inferior): Add 'self' argument.
11522 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
11523 * inflow.c (terminal_inferior): Add 'self' argument.
11524 * inferior.h (terminal_inferior): Add 'self' argument.
11525 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
11526 (go32_terminal_inferior): Add 'self' argument.
11527
c42bf286
TT
115282014-02-19 Tom Tromey <tromey@redhat.com>
11529
11530 * target.h (struct target_ops) <to_terminal_init>: Add argument.
11531 (target_terminal_init): Add argument.
11532 * target.c (debug_to_terminal_init): Add argument.
11533 (update_current_target): Update.
11534 * inflow.c (terminal_init_inferior): Add 'self' argument.
11535 * inferior.h (terminal_init_inferior): Add 'self' argument.
11536 * go32-nat.c (go32_terminal_init): Add 'self' argument.
11537 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
11538
c3a5ff89
TT
115392014-02-19 Tom Tromey <tromey@redhat.com>
11540
11541 * target.h (struct target_ops)
11542 <to_can_accel_watchpoint_condition>: Add argument.
11543 (target_can_accel_watchpoint_condition): Add argument.
11544 * target.c (debug_to_can_accel_watchpoint_condition): Add
11545 argument.
11546 (update_current_target): Update.
11547 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
11548 'self' argument.
11549
31568a15
TT
115502014-02-19 Tom Tromey <tromey@redhat.com>
11551
11552 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11553 Add argument.
11554 (target_region_ok_for_hw_watchpoint): Add argument.
11555 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
11556 (default_region_ok_for_hw_watchpoint): Add argument.
11557 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
11558 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
11559 argument.
11560 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
11561 argument.
11562 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
11563 argument.
11564 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
11565 'self' argument.
11566 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
11567 'self' argument.
11568 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
11569 'self' argument.
11570 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
11571 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
11572 'self' argument.
11573 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
11574 Add 'self' argument.
11575
7bb99c53
TT
115762014-02-19 Tom Tromey <tromey@redhat.com>
11577
11578 * target.h (struct target_ops) <to_insert_watchpoint>: Add
11579 argument.
11580 (target_insert_watchpoint): Add argument.
11581 * target.c (debug_to_insert_watchpoint): Add argument.
11582 (update_current_target): Update.
11583 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
11584 * remote.c (remote_insert_watchpoint): Add 'self' argument.
11585 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
11586 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
11587 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
11588 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
11589 argument.
11590 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
11591 (procfs_insert_hw_watchpoint): Add 'self' argument.
11592 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
11593 argument.
11594 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
11595 argument.
11596 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
11597 argument.
11598 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
11599 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
11600 argument.
11601 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
11602 'self' argument.
11603
11b5219a
TT
116042014-02-19 Tom Tromey <tromey@redhat.com>
11605
11606 * target.h (struct target_ops) <to_remove_watchpoint>: Add
11607 argument.
11608 (target_remove_watchpoint): Add argument.
11609 * target.c (debug_to_remove_watchpoint): Add argument.
11610 (update_current_target): Update.
11611 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
11612 * remote.c (remote_remove_watchpoint): Add 'self' argument.
11613 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
11614 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
11615 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
11616 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
11617 argument.
11618 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
11619 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
11620 argument.
11621 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
11622 argument.
11623 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
11624 argument.
11625 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
11626 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
11627 argument.
11628 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
11629 'self' argument.
11630
a64dc96c
TT
116312014-02-19 Tom Tromey <tromey@redhat.com>
11632
11633 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
11634 argument.
11635 (target_remove_hw_breakpoint): Add argument.
11636 * target.c (debug_to_remove_hw_breakpoint): Add argument.
11637 (update_current_target): Update.
11638 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
11639 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
11640 argument.
11641 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
11642 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
11643 argument.
11644 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
11645 'self' argument.
11646
23a26771
TT
116472014-02-19 Tom Tromey <tromey@redhat.com>
11648
11649 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
11650 argument.
11651 (target_insert_hw_breakpoint): Add argument.
11652 * target.c (debug_to_insert_hw_breakpoint): Add argument.
11653 (update_current_target): Update.
11654 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
11655 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
11656 argument.
11657 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
11658 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
11659 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
11660 argument.
11661 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
11662 'self' argument.
11663
5461485a
TT
116642014-02-19 Tom Tromey <tromey@redhat.com>
11665
11666 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
11667 argument.
11668 (target_can_use_hardware_watchpoint): Add argument.
11669 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
11670 (update_current_target): Update.
11671 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
11672 argument.
11673 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
11674 argument.
11675 * remote.c (remote_check_watch_resources): Add 'self' argument.
11676 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
11677 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
11678 argument.
11679 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
11680 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
11681 argument.
11682 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
11683 argument.
11684 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
11685 argument.
11686 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
11687 argument.
11688 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
11689 argument.
11690 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
11691 argument.
11692 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
11693 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
11694 argument.
11695 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
11696 'self' argument.
11697
f045800c
TT
116982014-02-19 Tom Tromey <tromey@redhat.com>
11699
11700 * target.h (struct target_ops) <to_post_attach>: Add argument.
11701 (target_post_attach): Add argument.
11702 * target.c (debug_to_post_attach): Add argument.
11703 (update_current_target): Update.
11704 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
11705 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
11706 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
11707 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
11708 * inf-child.c (inf_child_post_attach): Add 'self' argument.
11709
de90e03d
TT
117102014-02-19 Tom Tromey <tromey@redhat.com>
11711
11712 * windows-nat.c (windows_close): Add 'self' argument.
11713 * tracepoint.c (tfile_close): Add 'self' argument.
11714 * target.h (struct target_ops) <to_close>: Add argument.
11715 * target.c (target_close): Add argument.
11716 (update_current_target): Update.
11717 * remote.c (remote_close): Add 'self' argument.
11718 * remote-sim.c (gdbsim_close): Add 'self' argument.
11719 * remote-mips.c (mips_close): Add 'self' argument.
11720 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
11721 * record-full.c (record_full_close): Add 'self' argument.
11722 * record-btrace.c (record_btrace_close): Add 'self' argument.
11723 * monitor.h (monitor_close): Add 'self' argument.
11724 * monitor.c (monitor_close): Add 'self' argument.
11725 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
11726 * linux-nat.c (linux_nat_close): Add argument.
11727 * go32-nat.c (go32_close): Add 'self' argument.
11728 * exec.c (exec_close_1): Add 'self' argument.
11729 * ctf.c (ctf_close): Add 'self' argument.
11730 * corelow.c (core_close): Add 'self' argument.
11731 (core_close_cleanup): Update.
11732 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
11733 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
11734
9dd130a0
TT
117352014-02-19 Tom Tromey <tromey@redhat.com>
11736
11737 * remote.c (remote_load): New function.
11738 (init_remote_ops): Use it.
11739
46917d26
TT
117402014-02-19 Tom Tromey <tromey@redhat.com>
11741
11742 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
11743 argument.
11744 * common/linux-btrace.h (linux_supports_btrace): Update.
11745 * remote.c (remote_supports_btrace): Add "self" argument.
11746 * target-delegates.c: Rebuild.
11747 * target.c (target_supports_btrace): Remove.
11748 * target.h (struct target_ops) <to_supports_btrace>: Add
11749 target_ops argument.
11750 (target_supports_btrace): New define.
11751
6b84065d
TT
117522014-02-19 Tom Tromey <tromey@redhat.com>
11753
11754 * record-full.c (record_full_beneath_to_resume_ops)
11755 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
11756 (record_full_beneath_to_wait)
11757 (record_full_beneath_to_store_registers_ops)
11758 (record_full_beneath_to_store_registers)
11759 (record_full_beneath_to_xfer_partial_ops)
11760 (record_full_beneath_to_xfer_partial)
11761 (record_full_beneath_to_insert_breakpoint_ops)
11762 (record_full_beneath_to_insert_breakpoint)
11763 (record_full_beneath_to_remove_breakpoint_ops)
11764 (record_full_beneath_to_remove_breakpoint)
11765 (record_full_beneath_to_stopped_by_watchpoint)
11766 (record_full_beneath_to_stopped_data_address)
11767 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
11768 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
11769 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
11770 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
11771 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
11772 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
11773 (tmp_to_stopped_data_address, tmp_to_async): Remove.
11774 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
11775 (record_full_resume, record_full_wait_1)
11776 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
11777 (record_full_store_registers, record_full_xfer_partial)
11778 (record_full_insert_breakpoint, record_full_remove_breakpoint)
11779 (record_full_async, record_full_core_xfer_partial): Use target
11780 delegation.
11781 * target-delegates.c: Rebuild.
11782 * target.c (current_xfer_partial): Remove.
11783 (update_current_target): Do not INHERIT or de_fault
11784 to_insert_breakpoint, to_remove_breakpoint,
11785 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
11786 to_is_async_p, to_async. Do not set to_xfer_partial field.
11787 (default_xfer_partial): Simplify.
11788 (current_xfer_partial): Remove.
11789 (target_wait, target_resume): Simplify.
11790 (find_default_can_async_p, find_default_is_async_p): Update.
11791 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
11792 to_xfer_partial, to_stopped_by_watchpoint,
11793 to_stopped_data_address.
11794 (target_store_registers): Simplify.
11795 (forward_target_remove_breakpoint)
11796 (forward_target_insert_breakpoint): Remove.
11797 (target_remove_breakpoint, target_insert_breakpoint)
11798 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
11799 * target.h (struct target_ops) <to_resume, to_wait,
11800 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
11801 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
11802 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
11803 markup.
11804 (forward_target_remove_breakpoint)
11805 (forward_target_insert_breakpoint): Remove.
11806 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
11807 directly.
11808 (record_btrace_insert_breakpoint): Delegate directly.
11809
1101cb7b
TT
118102014-02-19 Tom Tromey <tromey@redhat.com>
11811
11812 PR build/7701:
11813 * target-delegates.c: New file.
11814 * target.c: Include target-delegates.c.
11815 (init_dummy_target): Call install_dummy_methods.
11816 (complete_target_initialization): Call install_delegators.
11817 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
11818 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
11819 * make-target-delegates: New file.
11820
8b06beed
TT
118212014-02-19 Tom Tromey <tromey@redhat.com>
11822
11823 * record.c (find_record_target): Use find_target_at.
11824 * target.c (find_target_at): New function.
11825 * target.h (find_target_at): Declare.
11826
6a109b6b
TT
118272014-02-19 Tom Tromey <tromey@redhat.com>
11828
11829 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
11830 Add 'ops' argument.
11831 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
11832 'ops' argument.
11833 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
11834 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
11835 'ops' argument.
11836 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
11837 argument.
11838 * linux-nat.c (save_sigtrap): Update.
11839 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
11840 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
11841 (linux_nat_close): Update.
11842 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
11843 argument.
11844 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
11845 argument.
11846 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
11847 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
11848 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
11849 (tmp_to_async): Add 'ops' argument.
11850 (record_full_stopped_by_watchpoint, record_full_async)
11851 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
11852 argument.
11853 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
11854 (m32r_stopped_by_watchpoint): Add 'ops' argument.
11855 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
11856 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
11857 (remote_is_async_p, remote_async): Add 'ops' argument.
11858 (remote_stopped_data_address): Update.
11859 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
11860 * target.c (update_current_target)
11861 (find_default_can_async_p, find_default_is_async_p): Update.
11862 (init_dummy_target): Update.
11863 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
11864 * target.h (struct target_ops) <to_stopped_by_watchpoint,
11865 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
11866 (target_can_async_p, target_is_async_p, target_async)
11867 (target_stopped_by_watchpoint): Update.
11868
e095146b
YQ
118692014-02-19 Yao Qi <yao@codesourcery.com>
11870
11871 PR gdb/16220
11872 * gdbarch.sh: Remove startup_gdbarch.
11873 * gdbarch.c: Regenerated.
11874 * gdbarch.h: Likewise.
11875
bc3c6b36
KB
118762014-02-17 Kevin Buettner <kevinb@redhat.com>
11877
11878 * rl78-tdep.c (rl78_g10_register_name): New function.
11879 (rl78_return_value): Add g10 support.
11880 (rl78_gdbarch_init): Register rl78_g10_register_name for the
11881 g10.
11882
98dc0167 118832014-02-17 Doug Evans <xdje42@gmail.com>
f01c1940
DE
11884
11885 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
11886 (SUBDIR_GUILE_SRCS): Ditto.
11887 (scm-gsmob.o): Ditto.
11888
842c05cd
YQ
118892014-02-17 Yao Qi <yao@codesourcery.com>
11890
11891 * gnu-nat.c (ILL_RPC): Declare defined function.
11892
25c0bd04
YQ
118932014-02-17 Yao Qi <yao@codesourcery.com>
11894
11895 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
11896 mach_msg_type_number_t.
11897 (gnu_write_inferior): Likewise.
11898
a9a758e3
YQ
118992014-02-17 Yao Qi <yao@codesourcery.com>
11900
11901 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
11902 in format string.
11903 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
11904 (inf_validate_procs, inf_signal): Likewise.
11905 (S_exception_raise_request): Likewise.
11906 (do_mach_notify_dead_name): Likewise.
11907 (steal_exc_port): Likewise.
11908 (gnu_read_inferior): Change 'copy_count''s type to
11909 mach_msg_type_number_t.
11910 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
11911 format string.
11912
bae8023e
TS
119132014-02-16 Thomas Schwinge <thomas@codesourcery.com>
11914
c82f56d9
TS
11915 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
11916 flag. Adjust all users; in particular...
11917 (gnu_wait): ..., don't decrement its value in here...
11918 (gnu_create_inferior): ..., and instead set the flag in here,
11919 around the startup_inferior call, and call that one with
11920 START_INFERIOR_TRAPS_EXPECTED.
11921
3398af6a
TS
11922 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
11923 (ILL_RPC): ... new macro.
11924 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
11925 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
11926 (do_mach_notify_send_once, S_proc_setmsgport_reply)
11927 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
11928 functions with ILL_RPC macro.
11929 (S_proc_pid2task_reply, S_proc_task2pid_reply)
11930 (S_proc_task2proc_reply, S_proc_proc2task_reply)
11931 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
11932 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
11933 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
11934 (S_proc_getlogin_reply, S_proc_getsid_reply)
11935 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
11936 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
11937 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
11938 (S_proc_getnports_reply, S_proc_is_important_reply)
11939 (S_proc_get_code_reply): New stub functions, generated with
11940 ILL_RPC macro.
11941
d47642c9
TS
11942 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
11943 collected the type check structures.
11944
bae8023e
TS
11945 * reply_mig_hack.awk: Don't expect to see the auto keyword.
11946
8a55ffb0
DE
119472014-02-14 Doug Evans <dje@google.com>
11948
11949 * target.c (target_write_partial): Fix result type.
11950
c2853f3d
JM
119512014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
11952
11953 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
11954 the proper offsets to access fpregset_t.
11955
ac61d2db
SA
119562014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
11957
11958 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
11959 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
11960 * h8300-tdep.c (setmachinelist): Remove global.
11961 * hppa-tdep.c (hppa_sigtramp): Remove global.
11962 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
11963 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
11964 * ravenscar-thread.c (update_target_observer): Remove global.
11965 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
11966
9d2d0b8b
TT
119672014-02-12 Tom Tromey <tromey@redhat.com>
11968
11969 * common/rsp-low.c: Update comments.
11970 * common/rsp-low.h: Update comments.
11971
a7191e8b
TT
119722014-02-12 Tom Tromey <tromey@redhat.com>
11973
11974 * common/rsp-low.c (convert_ascii_to_int): Remove.
11975 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
11976
ff0e980e
TT
119772014-02-12 Tom Tromey <tromey@redhat.com>
11978
11979 * common/rsp-low.h (unhexify): Don't declare.
11980 * common/rsp-low.c (unhexify): Remove.
11981
e9371aff
TT
119822014-02-12 Tom Tromey <tromey@redhat.com>
11983
11984 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
11985 * common/rsp-low.c (convert_int_to_ascii): Remove.
11986
971dc0b8
TT
119872014-02-12 Tom Tromey <tromey@redhat.com>
11988
11989 * common/rsp-low.h (hexify): Don't declare.
11990 * common/rsp-low.c (hexify): Remove.
11991
0a822afb
TT
119922014-02-12 Tom Tromey <tromey@redhat.com>
11993
11994 * common/rsp-low.c (hexify): Never take strlen of argument.
11995
9f1b45b0
TT
119962014-02-12 Tom Tromey <tromey@redhat.com>
11997
11998 * common/rsp-low.c (bin2hex): Never take strlen of argument.
11999 * remote.c (extended_remote_run, remote_rcmd)
12000 (remote_download_trace_state_variable, remote_save_trace_data)
12001 (remote_set_trace_notes): Update.
12002 * tracepoint.c (encode_source_string, tfile_write_status)
12003 (tfile_write_uploaded_tsv): Update.
12004
9c3d6531
TT
120052014-02-12 Tom Tromey <tromey@redhat.com>
12006
12007 * tracepoint.c: Include rsp-low.h.
12008 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
12009 * remote.c: Include rsp-low.h.
12010 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
12011 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
12012 (remote_unescape_input): Move to common/rsp-low.c.
12013 * common/rsp-low.h: New file.
12014 * common/rsp-low.c: New file.
12015 * Makefile.in (SFILES): Add common/rsp-low.c.
12016 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
12017 (COMMON_OBS): Add rsp-low.o.
12018 (rsp-low.o): New target.
12019
01fd3ea5
TT
120202014-02-12 Tom Tromey <tromey@redhat.com>
12021
12022 * utils.h: Include print-utils.h.
12023 (host_address_to_string, plongest, pulongest, phex, phex_nz)
12024 (int_string, core_addr_to_string, core_addr_to_string_nz)
12025 (hex_string, hex_string_custom): Don't declare.
12026 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
12027 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
12028 (hex_string_custom, int_string, core_addr_to_string)
12029 (core_addr_to_string_nz, host_address_to_string): Move to
12030 common/print-utils.c.
12031 * common/print-utils.h: New file.
12032 * common/print-utils.c: New file
12033 * Makefile.in (SFILES): Add common/print-utils.c.
12034 (HFILES_NO_SRCDIR): Add common/print-utils.h.
12035 (COMMON_OBS): Add print-utils.o.
12036 (print-utils.o): New target.
12037
9fb50108
TT
120382014-02-12 Tom Tromey <tromey@redhat.com>
12039
12040 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
12041
0548b5db
MK
120422014-02-12 Mark Kettenis <kettenis@gnu.org>
12043
12044 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
12045
493443a4
MK
120462014-02-12 Mark Kettenis <kettenis@gnu.org>
12047
12048 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
12049 if a PT_IO ptrace request returns sucessfully but indicates that 0
12050 bytes were transferred.
12051
706d0883
PA
120522014-02-12 Pedro Alves <palves@redhat.com>
12053 Kevin Buettner <kevinb@redhat.com>
12054
12055 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
12056 TYPE_INSTANCE_FLAG_CODE_SPACE.
12057
5caa2f0b
PA
120582014-02-12 Pedro Alves <palves@redhat.com>
12059
12060 * h8300-tdep.c (pseudo_from_raw_register)
12061 (raw_from_pseudo_register): New functions.
12062 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
12063 them.
12064
76fd5f74
PA
120652014-02-12 Pedro Alves <palves@redhat.com>
12066
12067 * h8300-tdep.c (h8300_register_sim_regno): New function.
12068 (h8300_gdbarch_init): Install h8300_register_sim_regno as
12069 gdbarch_register_sim_regno hook.
12070
8f008406
SA
120712014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
12072
12073 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
12074
195abc10
SA
120752014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
12076
12077 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
12078
93ffa5b9
MK
120792014-02-12 Mark Kettenis <kettenis@gnu.org>
12080
12081 * obsd-tdep.h (obsd_init_abi): New prototype.
12082 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
12083 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
12084 (obsd_init_abi): New functions.
12085 * i386obsd-tdep.c: Include "obsd-tdep.h".
12086 (i386obsd_init_abi): Call obsd_init_abi.
12087 * amd64obsd-tdep.c: Include "obsd-tdep.h".
12088 (amd64obsd_init_abi): Call obsd_init_abi.
12089 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
12090 obsd-tdep.c to gdb_target_obs.
12091
49caec94
JM
120922014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
12093
12094 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
12095 double float arguments to 16-byte in the argument slots.
12096
e1402065
DE
120972014-02-11 Doug Evans <xdje42@gmail.com>
12098
12099 * configure.ac: Don't crash if pkg-config is not found and guile
12100 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
12101 in guile checks.
12102 * configure: Regenerate.
12103
edcc890f
YQ
121042014-02-11 Yao Qi <yao@codesourcery.com>
12105
12106 * aix-thread.c (aix_thread_xfer_partial): Update comments.
12107 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
12108 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
12109 * gnu-nat.c (gnu_xfer_memory): Likewise.
12110 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
12111 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12112 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12113 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12114
9b409511
YQ
121152014-02-11 Yao Qi <yao@codesourcery.com>
12116
12117 * target.h (enum target_xfer_error): Rename to ...
12118 (enum target_xfer_status): ... it. New. All users updated.
12119 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
12120 New.
12121 (TARGET_XFER_STATUS_ERROR_P): New macro.
12122 (target_xfer_error_to_string): Remove declaration.
12123 (target_xfer_status_to_string): Declare.
12124 (target_xfer_partial_ftype): Adjust it.
12125 (struct target_ops) <to_xfer_partial>: Return
12126 target_xfer_status. Add argument xfered_len. Update
12127 comments.
12128 * target.c (target_xfer_error_to_string): Rename to ...
12129 (target_xfer_status_to_string): ... it. New. All callers
12130 updated.
12131 (target_read_live_memory): Likewise. Call target_xfer_partial
12132 instead of target_read.
12133 (memory_xfer_live_readonly_partial): Return
12134 target_xfer_status. Add argument xfered_len.
12135 (raw_memory_xfer_partial): Likewise.
12136 (memory_xfer_partial_1): Likewise.
12137 (memory_xfer_partial): Likewise.
12138 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
12139 properly. Update debug message.
12140 (default_xfer_partial, current_xfer_partial): Likewise.
12141 (target_write_partial): Likewise.
12142 (target_read_partial): Likewise. All callers updated.
12143 (read_whatever_is_readable): Likewise.
12144 (target_write_with_progress): Likewise.
12145 (target_read_alloc_1): Likewise.
12146
12147 * aix-thread.c (aix_thread_xfer_partial): Likewise.
12148 * auxv.c (procfs_xfer_auxv): Likewise.
12149 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
12150 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12151 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12152 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
12153 * corefile.c (read_memory): Adjust.
12154 * corelow.c (core_xfer_partial): Likewise.
12155 * ctf.c (ctf_xfer_partial): Likewise.
12156 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
12157 updated.
12158 (darwin_xfer_partial): Likewise.
12159 * exec.c (section_table_xfer_memory_partial): Likewise. All
12160 callers updated.
12161 (exec_xfer_partial): Likewise.
12162 * exec.h (section_table_xfer_memory_partial): Update
12163 declaration.
12164 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
12165 negative.
12166 (gnu_xfer_partial): Likewise.
12167 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
12168 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
12169 (ia64_hpux_xfer_solib_got): Likewise.
12170 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
12171 type of 'partial_len' to ULONGEST.
12172 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
12173 * linux-nat.c (linux_xfer_siginfo ): Likewise.
12174 (linux_nat_xfer_partial): Likewise.
12175 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
12176 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
12177 * monitor.c (monitor_xfer_memory): Likewise.
12178 (monitor_xfer_partial): Likewise.
12179 * procfs.c (procfs_xfer_partial): Likewise.
12180 * record-btrace.c (record_btrace_xfer_partial): Likewise.
12181 * record-full.c (record_full_xfer_partial): Likewise.
12182 (record_full_core_xfer_partial): Likewise.
12183 * remote-sim.c (gdbsim_xfer_memory): Likewise.
12184 (gdbsim_xfer_partial): Likewise.
12185 * remote.c (remote_write_bytes_aux): Likewise. All callers
12186 updated.
12187 (remote_write_bytes, remote_read_bytes): Likewise. All
12188 callers updated.
12189 (remote_flash_erase): Likewise. All callers updated.
12190 (remote_write_qxfer): Likewise. All callers updated.
12191 (remote_read_qxfer): Likewise. All callers updated.
12192 (remote_xfer_partial): Likewise.
12193 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12194 (rs6000_xfer_shared_libraries): Likewise.
12195 * sol-thread.c (sol_thread_xfer_partial): Likewise.
12196 (sol_thread_xfer_partial): Likewise.
12197 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12198 (sparc_xfer_partial): Likewise.
12199 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
12200 updated.
12201 (spu_xfer_partial): Likewise.
12202 * spu-multiarch.c (spu_xfer_partial): Likewise.
12203 * tracepoint.c (tfile_xfer_partial): Likewise.
12204 * windows-nat.c (windows_xfer_memory): Likewise.
12205 (windows_xfer_shared_libraries): Likewise.
12206 (windows_xfer_partial): Likewise.
12207 * valprint.c: Replace 'target_xfer_error' with
12208 'target_xfer_status' in comments.
12209
a8e63083
JB
122102014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
12211
12212 Checked in by Joel Brobecker <brobecker@adacore.com>.
12213 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
12214
e86b67d3
JB
122152014-02-11 Joel Brobecker <brobecker@adacore.com>
12216
12217 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
12218 function parameters.
12219
4b7d1f7f
WN
122202014-02-10 Will Newton <will.newton@linaro.org>
12221
12222 * elfread.c (elf_rel_plt_read): Look for a .got section if
12223 looking up .got.plt fails.
12224 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
12225 on address passed to elf_gnu_ifunc_record_cache.
12226 (elf_gnu_ifunc_resolve_addr): Likewise.
12227 (elf_gnu_ifunc_resolver_return_stop): Likewise.
12228
961842b2
JM
122292014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
12230
12231 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
12232 (X_RETTURN): New macro.
12233 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
12234
12235 * sparc64-tdep.c (sparc64_init_abi): Hook
12236 sparc_in_function_epilogue_p.
12237
3f03e7b1
GB
122382014-02-10 Gary Benson <gbenson@redhat.com>
12239
12240 * symfile-debug.c (debug_qf_expand_symtabs_matching):
12241 Rename name_matcher to symbol_matcher.
12242
96f861ef
GB
122432014-02-10 Gary Benson <gbenson@redhat.com>
12244
12245 * symfile-debug.c (debug_qf_expand_symtabs_matching):
12246 Use expand_symtabs_file_matcher_ftype and
12247 expand_symtabs_symbol_matcher_ftype.
12248
ee01b665
JB
122492014-02-10 Joel Brobecker <brobecker@adacore.com>
12250
12251 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
12252 (struct ada_symbol_cache): New.
12253 (ada_free_symbol_cache): Forward declare.
12254 (struct ada_pspace_data): New.
12255 (ada_pspace_data_handle): New static global.
12256 (get_ada_pspace_data, ada_pspace_data_cleanup)
12257 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
12258 (cache_space, cache): Delete, now folded inside struct
12259 ada_pspace_data.
12260 (ada_get_symbol_cache): New function.
12261 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
12262 implementation.
12263 (_initialize_ada_language): Remove initialization of cache_space.
12264 Move call to observer_attach_inferior_exit up, grouping it
12265 with the other observer registrations inside this function.
12266 Rename command to be more general. Add call to
12267 register_program_space_data_with_cleanup.
12268
143adbbf
JB
122692014-02-10 Joel Brobecker <brobecker@adacore.com>
12270
12271 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
12272 ada_new_objfile_observer.
12273 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
12274 (_initialize_tasks): Update uses of ada_new_objfile_observer
12275 and ada_tasks_normal_stop_observer.
12276
aa4fb036
JB
122772014-02-10 Joel Brobecker <brobecker@adacore.com>
12278
12279 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
12280 returned by the 'Length attribute to integer.
12281
9dee8cc6
JB
122822014-02-10 Joel Brobecker <brobecker@adacore.com>
12283
12284 * ada-lang.c (_initialize_ada_language): Initialize
12285 cache_space obstack.
12286
3d9434b5
JB
122872014-02-10 Joel Brobecker <brobecker@adacore.com>
12288
12289 * ada-lang.c (HASH_SIZE): New macro.
12290 (struct cache_entry): New type.
12291 (cache_space, cache): New static globals.
12292 (ada_clear_symbol_cache, find_entry): New functions.
12293 (lookup_cached_symbol, cache_symbol): Implement.
12294 (ada_new_objfile_observer, ada_free_objfile_observer): New.
12295 (_initialize_ada_language): Attach ada_new_objfile_observer
12296 and ada_free_objfile_observer.
12297
f0c5f9b2
JB
122982014-02-10 Joel Brobecker <brobecker@adacore.com>
12299
12300 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
12301 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
12302 struct block * parameter.
12303 (ada_lookup_symbol_list_worker): Constify local variable "block".
12304 Remove cast which is no longer necessary.
12305
ed3ef339
DE
123062014-02-10 Doug Evans <xdje42@gmail.com>
12307
12308 Add Guile as an extension language.
12309 * NEWS: Mention Guile scripting.
12310 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
12311 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
12312 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
12313 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
12314 (CLIBS): Add GUILE_LIBS.
12315 (install-guile): New rule.
12316 (guile.o): New rule.
12317 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
12318 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
12319 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
12320 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
12321 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
12322 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
12323 (scm-type.o, scm-utils.o, scm-value.o): New rules.
12324 * configure.ac: New option --with-guile.
12325 * configure: Regenerate.
12326 * config.in: Regenerate.
12327 * auto-load.c: Remove #include "python/python.h". Add #include
12328 "gdb/section-scripts.h".
12329 (source_section_scripts): Handle Guile scripts.
12330 (_initialize_auto_load): Add name of Guile objfile script to
12331 scripts-directory help text.
12332 * breakpoint.c (condition_command): Tweak comment to include Scheme.
12333 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
12334 (struct breakpoint): New member scm_bp_object.
12335 * defs.h (enum command_control_type): New value guile_control.
12336 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
12337 "extension.h".
12338 (show_user): Update comment.
12339 (_initialize_cli_cmds): Update help text for "show user". Update help
12340 text for max-user-call-depth.
12341 * cli/cli-script.c: Remove #include "python/python.h". Add #include
12342 "extension.h".
12343 (multi_line_command_p): Add guile_control.
12344 (print_command_lines): Handle guile_control.
12345 (execute_control_command, recurse_read_control_structure): Ditto.
12346 (process_next_line): Recognize "guile" commands.
12347 * disasm.c (gdb_disassemble_info): Make non-static.
12348 * disasm.h: #include "dis-asm.h".
12349 (struct gdbarch): Add forward decl.
12350 (gdb_disassemble_info): Declare.
12351 * extension.c: #include "guile/guile.h".
12352 (extension_languages): Add guile.
12353 (get_ext_lang_defn): Handle EXT_LANG_GDB.
12354 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
12355 * gdbtypes.c (get_unsigned_type_max): New function.
12356 (get_signed_type_minmax): New function.
12357 * gdbtypes.h (get_unsigned_type_max): Declare.
12358 (get_signed_type_minmax): Declare.
12359 * guile/README: New file.
12360 * guile/guile-internal.h: New file.
12361 * guile/guile.c: New file.
12362 * guile/guile.h: New file.
12363 * guile/scm-arch.c: New file.
12364 * guile/scm-auto-load.c: New file.
12365 * guile/scm-block.c: New file.
12366 * guile/scm-breakpoint.c: New file.
12367 * guile/scm-disasm.c: New file.
12368 * guile/scm-exception.c: New file.
12369 * guile/scm-frame.c: New file.
12370 * guile/scm-gsmob.c: New file.
12371 * guile/scm-iterator.c: New file.
12372 * guile/scm-lazy-string.c: New file.
12373 * guile/scm-math.c: New file.
12374 * guile/scm-objfile.c: New file.
12375 * guile/scm-ports.c: New file.
12376 * guile/scm-pretty-print.c: New file.
12377 * guile/scm-safe-call.c: New file.
12378 * guile/scm-string.c: New file.
12379 * guile/scm-symbol.c: New file.
12380 * guile/scm-symtab.c: New file.
12381 * guile/scm-type.c: New file.
12382 * guile/scm-utils.c: New file.
12383 * guile/scm-value.c: New file.
12384 * guile/lib/gdb.scm: New file.
12385 * guile/lib/gdb/boot.scm: New file.
12386 * guile/lib/gdb/experimental.scm: New file.
12387 * guile/lib/gdb/init.scm: New file.
12388 * guile/lib/gdb/iterator.scm: New file.
12389 * guile/lib/gdb/printing.scm: New file.
12390 * guile/lib/gdb/types.scm: New file.
12391 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
12392 (VPATH): Add $(GUILE_SRCDIR).
12393 (GUILE_DIR): New variable.
12394 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
12395 (all): Add stamp-guile dependency.
12396 (stamp-guile): New rule.
12397 (clean-guile, install-guile, uninstall-guile): New rules.
12398 (install-only): Add install-guile dependency.
12399 (uninstall): Add uninstall-guile dependency.
12400 (clean): Add clean-guile dependency.
12401
ac020ec5
DE
124022014-02-09 Doug Evans <xdje42@gmail.com>
12403
12404 Revert this patch (which I approved, mea culpa).
12405
12406 2014-02-08 Mark Kettenis <kettenis@gnu.org>
12407
12408 * Makefile.in (all-lib): Remove.
12409 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12410
2a081c59
JK
124112014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
12412
12413 Fix Python stack corruption.
12414 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
12415 gdb_py_longest.
12416
0a6bd22d
MK
124172014-02-08 Mark Kettenis <kettenis@gnu.org>
12418
12419 * Makefile.in (all-lib): Remove.
12420 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12421
1a860409
DE
124222014-02-07 Doug Evans <dje@google.com>
12423
12424 * extension-priv.h (extension_language_script_ops): Add comment.
12425 (extension_language_ops): Add comment.
caf5a491 12426 (active_ext_lang_state): Fix typo in comment.
1a860409 12427
d137e6dc
PA
124282014-02-07 Pedro Alves <palves@redhat.com>
12429
0dcb32c3 12430 PR breakpoints/16292
d137e6dc
PA
12431 * infrun.c (handle_signal_stop) <signal arrives while stepping
12432 over a breakpoint>: Switch back to the stepping thread.
12433
ce6d0892
YQ
124342014-02-07 Yao Qi <yao@codesourcery.com>
12435
12436 * target.c (target_xfer_partial): Return zero if LEN is zero.
12437
2ed4b548
YQ
124382014-02-07 Yao Qi <yao@codesourcery.com>
12439
12440 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
12441 (ld_so_xfer_auxv): Likewise.
12442 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12443 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12444 * corelow.c (core_xfer_partial): Likewise.
12445 * ctf.c (ctf_xfer_partial): Likewise.
12446 * darwin-nat.c (darwin_read_dyld_info): Likewise.
12447 (darwin_xfer_partial): Likewise.
12448 * exec.c (exec_xfer_partial): Likewise.
12449 * gnu-nat.c (gnu_xfer_partial): Likewise.
12450 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
12451 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
12452 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
12453 * linux-nat.c (linux_xfer_siginfo): Likewise.
12454 (linux_proc_xfer_spu): Likewise.
12455 * procfs.c (procfs_xfer_partial): Likewise.
12456 * record-full.c (record_full_xfer_partial): Likewise.
12457 (record_full_core_xfer_partial): Likewise.
12458 * remote-sim.c (gdbsim_xfer_partial): Likewise.
12459 * remote.c (remote_write_qxfer): Likewise.
12460 (remote_write_qxfer, remote_read_qxfer): Likewise.
12461 (remote_xfer_partial): Likewise.
12462 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12463 (rs6000_xfer_shared_libraries): Likewise.
12464 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12465 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12466 (spu_xfer_partial): Likewise.
12467 * target.c (memory_xfer_partial_1): Likewise.
12468 * tracepoint.c (tfile_xfer_partial): Likewise.
12469 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
12470 (windows_xfer_partial): Likewise.
12471
c09f20e4
YQ
124722014-02-07 Yao Qi <yao@codesourcery.com>
12473
12474 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
12475 comments.
12476 (core_xfer_shared_libraries_aix): Likewise.
12477 * gdbarch.c, gdbarch.h: Regenerated.
12478 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
12479 ULONGEST. Change 'len_avail' type to ULONGEST.
12480 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12481 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12482 declaration.
12483 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
12484
8635b3bf
YQ
124852014-02-07 Yao Qi <yao@codesourcery.com>
12486
12487 * corefile.c (memory_error): Get 'exception' from ERR and pass
12488 'exception' to throw_error.
12489
6dddc817
DE
124902014-02-06 Doug Evans <xdje42@gmail.com>
12491
12492 * configure.ac (libpython checking): Remove all but python.o from
12493 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
12494 * configure: Regenerate.
12495
12496 * Makefile.in (SFILES): Add extension.c.
12497 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
12498 (COMMON_OBS): Add extension.o.
12499 * extension.h: New file.
12500 * extension-priv.h: New file.
12501 * extension.c: New file.
12502
12503 * python/python-internal.h: #include "extension.h".
12504 (gdbpy_auto_load_enabled): Declare.
12505 (gdbpy_apply_val_pretty_printer): Declare.
12506 (gdbpy_apply_frame_filter): Declare.
12507 (gdbpy_preserve_values): Declare.
12508 (gdbpy_breakpoint_cond_says_stop): Declare.
12509 (gdbpy_breakpoint_has_cond): Declare.
12510 (void source_python_script_for_objfile): Delete.
12511 * python/python.c: #include "extension-priv.h".
12512 Delete inclusion of "observer.h".
12513 (extension_language_python): Moved here and renamed from
12514 script_language_python in py-auto-load.c.
12515 Redefined to be of type extension_language_defn.
12516 (python_extension_script_ops): New global.
12517 (python_extension_ops): New global.
12518 (struct python_env): New member previous_active.
12519 (restore_python_env): Call restore_active_ext_lang.
12520 (ensure_python_env): Call set_active_ext_lang.
12521 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
12522 New arg extlang.
12523 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
12524 New arg extlang.
12525 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
12526 New arg extlang.
12527 (gdbpy_eval_from_control_command): Renamed from
12528 eval_python_from_control_command, made static. New arg extlang.
12529 (gdbpy_source_script) Renamed from source_python_script, made static.
12530 New arg extlang.
12531 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
12532 result to int. New arg extlang.
12533 (gdbpy_source_objfile_script): Renamed from
12534 source_python_script_for_objfile, made static. New arg extlang.
12535 (gdbpy_start_type_printers): Renamed from start_type_printers, made
12536 static. New args extlang, extlang_printers. Change result type to
12537 "void".
12538 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
12539 static. New arg extlang. Rename arg printers to extlang_printers
12540 and change type to ext_lang_type_printers *.
12541 (gdbpy_free_type_printers): Renamed from free_type_printers, made
12542 static. Replace argument arg with extlang, extlang_printers.
12543 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
12544 (!HAVE_PYTHON, source_python_script): Delete.
12545 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
12546 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
12547 (!HAVE_PYTHON, start_type_printers): Delete.
12548 (!HAVE_PYTHON, apply_type_printers): Delete.
12549 (!HAVE_PYTHON, free_type_printers): Delete.
12550 (_initialize_python): Delete call to observer_attach_before_prompt.
12551 (finalize_python): Set/restore active extension language.
12552 (gdbpy_finish_initialization) Renamed from
12553 finish_python_initialization, made static. New arg extlang.
12554 (gdbpy_initialized): New function.
12555 * python/python.h: #include "extension.h". Delete #include
12556 "value.h", "mi/mi-cmds.h".
12557 (extension_language_python): Declare.
12558 (GDBPY_AUTO_FILE_NAME): Delete.
12559 (enum py_bt_status): Moved to extension.h and renamed to
12560 ext_lang_bt_status.
12561 (enum frame_filter_flags): Moved to extension.h.
12562 (enum py_frame_args): Moved to extension.h and renamed to
12563 ext_lang_frame_args.
12564 (finish_python_initialization): Delete.
12565 (eval_python_from_control_command): Delete.
12566 (source_python_script): Delete.
12567 (apply_val_pretty_printer): Delete.
12568 (apply_frame_filter): Delete.
12569 (preserve_python_values): Delete.
12570 (gdbpy_script_language_defn): Delete.
12571 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
12572 (start_type_printers, apply_type_printers, free_type_printers): Delete.
12573
12574 * auto-load.c: #include "extension.h".
12575 (GDB_AUTO_FILE_NAME): Delete.
12576 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
12577 (script_language_gdb): Delete, moved to extension.c and renamed to
12578 extension_language_gdb.
12579 (source_gdb_script_for_objfile): Delete.
12580 (auto_load_pspace_info): New member unsupported_script_warning_printed.
12581 (loaded_script): Change type of language member to
12582 struct extension_language_defn *.
12583 (init_loaded_scripts_info): Initialize
12584 unsupported_script_warning_printed.
12585 (maybe_add_script): Make static. Change type of language arg to
12586 struct extension_language_defn *.
12587 (clear_section_scripts): Reset unsupported_script_warning_printed.
12588 (auto_load_objfile_script_1): Rewrite to use extension language API.
12589 (auto_load_objfile_script): Make public. Remove support-compiled-in
12590 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
12591 (source_section_scripts): Rewrite to use extension language API.
12592 (load_auto_scripts_for_objfile): Rewrite to use
12593 auto_load_scripts_for_objfile.
12594 (collect_matching_scripts_data): Change type of language member to
12595 struct extension_language_defn *.
12596 (auto_load_info_scripts): Change type of language arg to
12597 struct extension_language_defn *.
12598 (unsupported_script_warning_print): New function.
12599 (script_not_found_warning_print): Make static.
12600 (_initialize_auto_load): Rewrite construction of scripts-directory
12601 help.
12602 * auto-load.h (struct objfile): Add forward decl.
12603 (struct script_language): Delete.
12604 (struct auto_load_pspace_info): Add forward decl.
12605 (struct extension_language_defn): Add forward decl.
12606 (maybe_add_script): Delete.
12607 (auto_load_objfile_script): Declare.
12608 (script_not_found_warning_print): Delete.
12609 (auto_load_info_scripts): Update prototype.
12610 (auto_load_gdb_scripts_enabled): Declare.
12611 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
12612 auto_load_python_scripts_enabled and made public.
12613 (script_language_python): Delete, moved to python.c.
12614 (gdbpy_script_language_defn): Delete.
12615 (info_auto_load_python_scripts): Update to use
12616 extension_language_python.
12617
12618 * breakpoint.c (condition_command): Replace call to
12619 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
12620 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
12621 with call to breakpoint_ext_lang_cond_says_stop.
12622 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
12623 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
12624 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
12625 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
12626 New arg slang.
12627 (local_setattro): Print name of extension language with existing
12628 stop condition.
12629
12630 * valprint.c (val_print, value_print): Update to call
12631 apply_ext_lang_val_pretty_printer.
12632 * cp-valprint.c (cp_print_value): Update call to
12633 apply_ext_lang_val_pretty_printer.
12634 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
12635 (gdbpy_apply_val_pretty_printer): Renamed from
12636 apply_val_pretty_printer. New arg extlang.
12637 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
12638
12639 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
12640 extension language API.
12641 * cli/cli-script.c (execute_control_command): Update to call
12642 eval_ext_lang_from_control_command.
12643
12644 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
12645 enum ext_lang_bt_status values. Update call to
12646 apply_ext_lang_frame_filter.
12647 (mi_cmd_stack_list_locals): Ditto.
12648 (mi_cmd_stack_list_args): Ditto.
12649 (mi_cmd_stack_list_variables): Ditto.
12650 * mi/mi-main.c: Delete #include "python/python-internal.h".
12651 Add #include "extension.h".
12652 (mi_cmd_list_features): Replace reference to python internal variable
12653 gdb_python_initialized with call to ext_lang_initialized_p.
12654
12655 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
12656 Update to use enum ext_lang_frame_args. Update to call
12657 apply_ext_lang_frame_filter.
12658 * python/py-framefilter.c (extract_sym): Update to use enum
12659 ext_lang_bt_status.
12660 (extract_value, py_print_type, py_print_value): Ditto.
12661 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
12662 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
12663 (py_print_frame): Ditto.
12664 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
12665 New arg extlang. Update to use enum ext_lang_bt_status.
12666
12667 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
12668 finish_python_initialization. Replace with call to
12669 finish_ext_lang_initialization.
12670
12671 * typeprint.c (do_free_global_table): Update to call
12672 free_ext_lang_type_printers.
12673 (create_global_typedef_table): Update to call
12674 start_ext_lang_type_printers.
12675 (find_global_typedef): Update to call apply_ext_lang_type_printers.
12676 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
12677 (type_print_options): Change type of global_printers from "void *"
12678 to "struct ext_lang_type_printers *".
12679
12680 * value.c (preserve_values): Update to call preserve_ext_lang_values.
12681 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
12682 (gdbpy_preserve_values): Renamed from preserve_python_values.
12683 New arg extlang.
12684 (!HAVE_PYTHON, preserve_python_values): Delete.
12685
12686 * utils.c (quit_flag): Delete, moved to extension.c.
12687 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
12688 extension.c.
12689
12690 * eval.c: Delete #include "python/python.h".
12691 * main.c: Delete #include "python/python.h".
12692
12693 * defs.h: Update comment.
12694
6af79985
JB
126952014-02-06 Joel Brobecker <brobecker@adacore.com>
12696
12697 GDB 7.7 released.
12698
12c5175d
MK
126992014-02-05 Mark Kettenis <kettenis@gnu.org>
12700
12701 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
12702 defined.
12703
8dc5b319
YQ
127042014-02-05 Yao Qi <yao@codesourcery.com>
12705
12706 * remote.c (remote_pass_signals): Remove local 'buf' and use
12707 rs->buf.
12708 (remote_program_signals): Likewise.
12709
de7b2893
YQ
127102014-02-05 Yao Qi <yao@codesourcery.com>
12711
12712 * ctf.c: Include "inferior.h" and "gdbthread.h".
12713 (CTF_PID): A new macro.
12714 (ctf_open): Call inferior_appeared and add_thread_silent.
12715 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
12716 (ctf_thread_alive): New function.
12717 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
12718
66d032ac
YQ
127192014-02-05 Yao Qi <yao@codesourcery.com>
12720
12721 Revert this patch:
12722
12723 2013-05-24 Yao Qi <yao@codesourcery.com>
12724
12725 * tracepoint.c (TFILE_PID): Remove.
12726 (tfile_open): Don't add thread and inferior.
12727 (tfile_close): Don't set 'inferior_ptid'. Don't call
12728 exit_inferior_silent.
12729 (tfile_thread_alive): Remove.
12730 (init_tfile_ops): Don't set field 'to_thread_alive' of
12731 tfile_ops.
12732
f4ccffad
CE
127332014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
12734
12735 * remote.c (remote_start_remote): Call remote_check_symbols even
12736 if only symbol-file (not file) has been given.
12737
591a12a1
UW
127382014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12739
12740 * gdbarch.sh (skip_entrypoint): New callback.
12741 * gdbarch.c, gdbarch.h: Regenerate.
12742 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
12743 * infrun.c (fill_in_stop_func): Likewise.
12744 * ppc-linux-tdep.c: Include "elf/ppc64.h".
12745 (ppc_elfv2_elf_make_msymbol_special): New function.
12746 (ppc_elfv2_skip_entrypoint): Likewise.
12747 (ppc_linux_init_abi): Install them for ELFv2.
12748
cc0e89c5
UW
127492014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12750
12751 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
12752 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
12753 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
12754 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
12755 structures returned in GPRs.
12756
52f548e4
UW
127572014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12758
12759 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
12760 offset to the stack parameter list for the ELFv2 ABI.
12761
d4094b6a
UW
127622014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12763
12764 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
12765 set_gdbarch_convert_from_func_ptr_addr and
12766 set_gdbarch_elf_make_msymbol_special for ELFv1.
12767 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
12768 function descriptors on ELFv1.
12769 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
12770 set up r12 at function entry.
12771
cd453cd0
UW
127722014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12773
12774 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
12775 (struct gdbarch_tdep): New member elf_abi.
12776
12777 * rs6000-tdep.c: Include "elf/ppc64.h".
12778 (rs6000_gdbarch_init): Detect ELF ABI version.
12779
0ff3e01f
UW
127802014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12781
12782 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
12783 within a register pair holding a DFP 128-bit value on little-endian.
12784 (ppc64_sysv_abi_return_value_base): Likewise.
12785 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
12786 (dfp_pseudo_register_write): Likewise.
12787
5b757e5d
UW
127882014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12789
12790 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
12791 offset on little-endian when passing _Decimal32.
12792 (ppc64_sysv_abi_return_value_base): Likewise for return values.
12793
084ee545
UW
127942014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12795
12796 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
12797 of the overlapped FP register within the VSX register on little-
12798 endian platforms.
12799 (efpr_pseudo_register_write): Likewise.
12800
d63167af
UW
128012014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12802
12803 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
12804 offset on little-endian when passing small structures.
12805
e765b44c
UW
128062014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12807
12808 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
12809 (struct ppc64_sysv_argpos): New data structure.
12810 (ppc64_sysv_abi_push_float): Remove.
12811 (ppc64_sysv_abi_push_val): New function.
12812 (ppc64_sysv_abi_push_integer): Likewise.
12813 (ppc64_sysv_abi_push_freg): Likewise.
12814 (ppc64_sysv_abi_push_vreg): Likewise.
12815 (ppc64_sysv_abi_push_param): Likewise.
12816 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
12817 (ppc64_sysv_abi_return_value_base): New function.
12818 (ppc64_sysv_abi_return_value): Refactor to use it.
12819
36c24d95
UW
128202014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12821
12822 * NEWS: Document new target powerpc64le-*-linux*.
12823
26fd9228
MK
128242014-02-04 Mark Kettenis <kettenis@gnu.org>
12825
12826 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
12827 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
12828 core dumps.
12829 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
12830 register set used in ELF core dumps. Add floating-point register set.
12831
c5bb7362
KB
128322014-02-03 Kevin Buettner <kevinb@redhat.com>
12833
74228e77 12834 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
c5bb7362
KB
12835 dwarf2_to_gdb[] table using symbolic constants. Adjust
12836 penultimate entry from number representing the PC register
12837 to symbolic constant representing the MDR register. Add
12838 constant for the PC register to the end of the table.
12839
af09351e
MK
128402014-02-03 Mark Kettenis <kettenis@gnu.org>
12841
12842 * bsd-kvm.c: Include <sys/param.h>
12843
8507e05d
MK
128442014-02-03 Mark Kettenis <kettenis@gnu.org>
12845
12846 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
12847
ae56bfb8
JB
128482014-01-31 Joel Brobecker <brobecker@adacore.com>
12849
12850 * ada-lang.h (clear_ada_sym_cache): Delete.
12851
718ee4dc
UW
128522014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
12853
12854 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
12855
401e27fd
JM
128562014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
12857
12858 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
12859 the sigreturn register save area only if the syscall is
12860 sigreturn.
12861
a7c88acd
JB
128622014-01-29 Joel Brobecker <brobecker@adacore.com>
12863
12864 * valops.c (value_slice): Minor reformatting.
12865
fa0079ea
UW
128662014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
12867
12868 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
12869
c6044dd1
JB
128702014-01-28 Joel Brobecker <brobecker@adacore.com>
12871
12872 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
12873 New static globals.
12874 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
12875 (ada_ignore_descriptive_types_p): New static global.
12876 (find_parallel_type_by_descriptive_type): Return immediately
12877 if ada_ignore_descriptive_types_p is set.
12878 (_initialize_ada_language): Register new commands "maintenance
12879 set ada", "maintenance show ada", "maintenance set ada
12880 ignore-descriptive-types" and "maintenance show ada
12881 ignore-descriptive-types".
12882 * NEWS: Add entry for new "maint ada set/show
12883 ignore-descriptive-types" commands.
12884
568e808b
MM
128852014-01-27 Markus Metzger <markus.t.metzger@intel.com>
12886
12887 * record-btrace.c (record_btrace_close): Call btrace_teardown
12888 for all threads.
12889
467d141b
JB
128902014-01-27 Joel Brobecker <brobecker@adacore.com>
12891
12892 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
12893 "ui-out.h".
12894
fb151210
JB
128952014-01-27 Joel Brobecker <brobecker@adacore.com>
12896
12897 * ada-typeprint (type_is_full_subrange_of_target_type):
12898 New function.
12899 (print_range): Add parameter bounds_prefered_p. If not set,
12900 try printing range types using the name of their base type.
12901 (print_range_type): Add parameter bounds_prefered_p.
12902 Use it in call to print_range.
12903 (print_array_type, ada_print_type): Update calls to print_range
12904 and print_range_type.
12905
aba02109
JB
129062014-01-27 Joel Brobecker <brobecker@adacore.com>
12907
12908 * ada-typeprint.c (print_array_type, print_choices, print_range)
12909 (print_range_bound, print_dynamic_range_bound, print_range_type):
12910 Remove declaration.
12911
e62e21fd
JB
129122014-01-27 Joel Brobecker <brobecker@adacore.com>
12913
12914 * ada-typeprint.c (print_range): Add missing empty line
12915 after local declaration.
12916
859cf5d1
JB
129172014-01-27 Joel Brobecker <brobecker@adacore.com>
12918
12919 * ada-valprint.c (print_optional_low_bound): Get index_type's
12920 target type for as long as it is a TYPE_CODE_RANGE.
12921
25790f6f
JB
129222014-01-27 Joel Brobecker <brobecker@adacore.com>
12923
12924 * procfs.c (procfs_make_note_section): Remove assertion and
12925 associated comment.
12926
6b6aa828
YQ
129272014-01-24 Yao Qi <yao@codesourcery.com>
12928
12929 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
12930 * corelow.c (get_core_siginfo): Likewise.
12931
5d6df423
YQ
129322014-01-24 Yao Qi <yao@codesourcery.com>
12933
12934 * remote.c (remote_write_bytes_aux): Change type of 'len' to
12935 ULONGEST. Don't check 'len' is negative.
12936 (remote_write_bytes): Change type of 'len' to ULONGEST.
12937
83b645b8
TT
129382014-01-23 Tom Tromey <tromey@redhat.com>
12939
12940 PR python/16485:
12941 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
12942 Handle exception from frame.block.
12943 (FrameVars.fetch_frame_locals): Likewise.
12944
0740f8d8
TT
129452014-01-23 Tom Tromey <tromey@redhat.com>
12946
12947 PR python/16487:
12948 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
12949 on a NULL pointer. Move "goto error" to correct place.
12950
21909fa1
TT
129512014-01-23 Tom Tromey <tromey@redhat.com>
12952
12953 PR python/16491:
12954 * python/py-framefilter.c (apply_frame_filter): Call
12955 ensure_python_env after computing gdbarch.
12956
17fde6d0
YQ
129572014-01-23 Yao Qi <yao@codesourcery.com>
12958
12959 * target.c (raw_memory_xfer_partial): Change argument type
12960 from void * to gdb_byte *.
12961 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
12962
87ce2a04
DE
129632014-01-22 Doug Evans <dje@google.com>
12964
12965 New gdbserver option --debug-format=timestamp.
12966 * NEWS: Mention it.
12967
237b092b
AA
129682014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
12969
12970 * syscalls/s390x-linux.xml: New file.
12971 * syscalls/s390-linux.xml: New file.
12972 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
12973 (XML_SYSCALL_FILENAME_S390X): Likewise.
12974 (op_svc): New enum value for SVC opcode.
12975 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
12976 (s390_linux_get_syscall_number): New function.
12977 (s390_gdbarch_init): Register '*get_syscall_number' and the
12978 syscall xml file name.
12979 * data-directory/Makefile.in (SYSCALLS_FILES): Add
12980 "s390-linux.xml" and "s390x-linux.xml".
12981 * NEWS: Announce new feature.
12982
54bff650
BS
129832014-01-22 Baruch Siach <baruch@tkos.co.il>
12984
12985 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
12986
14e361d7
PA
129872014-01-22 Pedro Alves <palves@redhat.com>
12988
12989 * xtensa-config.c: Include defs.h.
12990
46bbb3ed
JB
129912014-01-22 Joel Brobecker <brobecker@adacore.com>
12992
12993 * common/common-utils.h: Add "ARI:" comment beside __func__
12994 reference.
12995
3a80edfc
JB
129962014-01-22 Joel Brobecker <brobecker@adacore.com>
12997
12998 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
12999 documentation a bit.
13000
4869db5e
RM
130012014-01-21 Roland McGrath <mcgrathr@google.com>
13002
13003 * configure.ac: Call AM_PROG_INSTALL_STRIP.
13004 * configure: Regenerate.
13005 * aclocal.m4: Regenerate.
13006 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
13007 New substituted variables.
13008 (install-strip): New target.
13009 (INSTALL_SCRIPT): New substituted variable.
13010 (FLAGS_TO_PASS): Add it.
13011 (install-only): Use $(INSTALL_SCRIPT) rather than
13012 $(INSTALL_PROGRAM) for gcore.
13013
9ea4267d
TT
130142014-01-20 Tom Tromey <tromey@redhat.com>
13015
13016 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
13017 together.
13018
1f2bdf09
TT
130192014-01-20 Tom Tromey <tromey@redhat.com>
13020
13021 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
13022 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
13023 (deprecated_cmd_warning, complete_on_cmdlist): Update.
13024 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
13025 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
13026 (struct cmd_list_element) <flags>: Remove.
13027 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
13028 doc_allocated>: New fields.
13029 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
13030 bitfields.
13031 * maint.c (maintenance_do_deprecate): Update.
13032 * top.c (execute_command): Update.
13033
e671835b
BS
130342014-01-20 Baruch Siach <baruch@tkos.co.il>
13035
13036 * xtensa-linux-nat.c: Include asm/ptrace.h.
13037
50367cd2
IB
130382014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13039
13040 * Makefile.in (SFILES): Add d-support.c.
13041 (COMMON_OBS): Add d-support.o.
13042 * d-lang.h (d_parse_symbol): Add comment, now defined in
13043 d-support.c.
13044 * d-lang.c (parse_call_convention)
13045 (parse_attributes, parse_function_types)
13046 (parse_function_args, parse_type, parse_identifier)
13047 (call_convention_p, d_parse_symbol): Move functions to ...
13048 * d-support.c: ... New file.
13049
ec9f644a
IB
130502014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13051
13052 * d-lang.h (d_parse_symbol): Add declaration.
13053 * d-lang.c (extract_identifiers)
13054 (extract_type_info): Remove functions.
13055 (parse_call_convention, parse_attributes)
13056 (parse_function_types, parse_function_args)
13057 (parse_type, parse_identifier, call_convention_p)
13058 (d_parse_symbol): New functions.
13059 (d_demangle): Use d_parse_symbol to demangle D symbols.
13060
94b1b47e
IB
130612014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13062
13063 * d-lang.h (struct builtin_d_type): New data type.
13064 (builtin_d_type): Add declaration.
13065 * d-lang.c (d_language_arch_info, build_d_types)
13066 (builtin_d_type): New functions.
13067 (enum d_primitive_types): New data type.
13068 (d_language_defn): Change c_language_arch_info to
13069 d_language_arch_info.
13070 (d_type_data): New static variable.
13071 (_initialize_d_language): Initialize d_type_data.
13072
63778547
IB
130732014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13074
13075 * d-lang.h (d_main_name): Add declaration.
13076 * d-lang.c (d_main_name): New function.
13077 * symtab.c (find_main_name): Add call to d_main_name.
13078
3271ba66
IB
130792014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13080
13081 * d-lang.c (d_language_defn): Change macro_expansion_c to
13082 macro_expansion_no.
13083
d36b3012
IB
130842014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13085
13086 * MAINTAINERS: Add myself as a write-after-approval maintainer.
13087
c90a6fb7
SDJ
130882014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
13089
13090 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
13091 gdb_exception" declaration.
13092 * remote.c (getpkt_or_notif_sane): Likewise.
13093
749234e5
DE
130942014-01-17 Doug Evans <dje@google.com>
13095
13096 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
13097 function, contents of dirnames_to_char_ptr_vec_append moved here.
13098 (delim_string_to_char_ptr_vec): New function.
13099 (dirnames_to_char_ptr_vec_append): Rewrite.
13100 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
13101
df049a58
DE
131022014-01-17 Doug Evans <dje@google.com>
13103
13104 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
13105 and moved here ...
13106 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
13107 #include "common-utils.h".
13108 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
13109 * common/vec.h (VEC_ASSERT_PASS): Update.
13110 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
13111 (MACH_CHECK_ERROR): Update.
13112
69f97648
SM
131132014-01-17 Simon Marchi <simon.marchi@ericsson.com>
13114
13115 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
13116 comments.
13117 * gdbarch.h: Regenerate.
13118
98b1cfdc
TT
131192014-01-16 Tom Tromey <tromey@redhat.com>
13120
13121 * value.c (struct value) <regnum>: Move earlier.
13122
77a19445
TT
131232014-01-16 Tom Tromey <tromey@redhat.com>
13124
13125 * remote.c (extended_remote_create_inferior): Rename from
13126 extended_remote_create_inferior_1. Add "ops" argument. Remove
13127 old implementation.
13128
62261490
PA
131292014-01-16 Pedro Alves <palves@redhat.com>
13130
13131 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
13132 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
13133 the backchain.
13134
4d65956b
DE
131352014-01-16 Doug Evans <dje@google.com>
13136
13137 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
13138
52834460
MM
131392014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13140
13141 * btrace.h (btrace_thread_flag): New.
13142 (struct btrace_thread_info) <flags>: New.
13143 * record-btrace.c (record_btrace_resume_thread)
13144 (record_btrace_find_thread_to_move, btrace_step_no_history)
13145 (btrace_step_stopped, record_btrace_start_replaying)
13146 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
13147 (record_btrace_find_resume_thread): New.
13148 (record_btrace_resume, record_btrace_wait): Extend.
13149 (record_btrace_can_execute_reverse): New.
13150 (record_btrace_open): Fail in non-stop mode.
13151 (record_btrace_set_replay): Split into this, ...
13152 (record_btrace_stop_replaying): ... this, ...
13153 (record_btrace_clear_histories): ... and this.
13154 (init_record_btrace_ops): Init to_can_execute_reverse.
13155 * NEWS: Announce it.
13156
118e6252
MM
131572014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13158
13159 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
13160 (forward_target_decr_pc_after_break)
13161 (target_decr_pc_after_break): New.
13162 * target.c (forward_target_decr_pc_after_break)
13163 (target_decr_pc_after_break): New.
13164 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
13165 instead of gdbarch_decr_pc_after_break.
13166 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
13167 instead of gdbarch_decr_pc_after_break.
13168 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
13169 instead of gdbarch_decr_pc_after_break.
13170 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
13171 instead of gdbarch_decr_pc_after_break.
13172 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
13173 instead of gdbarch_decr_pc_after_break.
13174 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
13175 instead of gdbarch_decr_pc_after_break.
13176
6e07b1d2
MM
131772014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13178
13179 * btrace.c: Include regcache.h.
13180 (btrace_add_pc): New.
13181 (btrace_enable): Call btrace_add_pc.
13182 (btrace_is_empty): New.
13183 * btrace.h (btrace_is_empty): New.
13184 * record-btrace.c (require_btrace, record_btrace_info): Call
13185 btrace_is_empty.
13186
969c39fb
MM
131872014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13188
13189 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
13190 Support delta reads.
13191 (linux_disable_btrace): Change return type.
13192 * common/linux-btrace.h (linux_read_btrace): Change parameters
13193 and return type to allow error reporting. Update users.
13194 (linux_disable_btrace): Change return type. Update users.
13195 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
13196 New.
13197 (btrace_error): New.
13198 (btrace_block) <begin>: Comment on BEGIN == 0.
13199 * btrace.c (btrace_compute_ftrace): Start from the end of
13200 the current trace.
13201 (btrace_stitch_trace, btrace_clear_history): New.
13202 (btrace_fetch): Read delta trace, return if replaying.
13203 (btrace_clear): Move clear history code to btrace_clear_history.
13204 (parse_xml_btrace): Throw an error if parsing failed.
13205 * target.h (struct target_ops) <to_read_btrace>: Change parameters
13206 and return type to allow error reporting.
13207 (target_read_btrace): Change parameters and return type to allow
13208 error reporting.
13209 * target.c (target_read_btrace): Update.
13210 * remote.c (remote_read_btrace): Support delta reads. Pass
13211 errors on.
13212 * NEWS: Announce it.
13213
0b722aec
MM
132142014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13215
13216 * record.h (record_btrace_frame_unwind)
13217 (record_btrace_tailcall_frame_unwind): New declarations.
13218 * dwarf2-frame: Include record.h
13219 (dwarf2_frame_cfa): Throw an error for btrace frames.
13220 * record-btrace.c: Include hashtab.h.
13221 (btrace_get_bfun_name): New.
13222 (btrace_call_history): Call btrace_get_bfun_name.
13223 (struct btrace_frame_cache): New.
13224 (bfcache): New.
13225 (bfcache_hash, bfcache_eq, bfcache_new): New.
13226 (btrace_get_frame_function): New.
13227 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
13228 (record_btrace_frame_this_id): Compute own id.
13229 (record_btrace_frame_prev_register): Provide PC, throw_error
13230 for all other registers.
13231 (record_btrace_frame_sniffer): Detect btrace frames.
13232 (record_btrace_tailcall_frame_sniffer): New.
13233 (record_btrace_frame_dealloc_cache): New.
13234 (record_btrace_frame_unwind): Add new functions.
13235 (record_btrace_tailcall_frame_unwind): New.
13236 (_initialize_record_btrace): Allocate cache.
13237 * btrace.c (btrace_clear): Call reinit_frame_cache.
13238 * NEWS: Announce it.
13239
066ce621
MM
132402014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13241
13242 * record-btrace.c (record_btrace_set_replay)
13243 (record_btrace_goto_begin, record_btrace_goto_end)
13244 (record_btrace_goto): New.
13245 (init_record_btrace_ops): Initialize them.
13246 * NEWS: Announce it.
13247
e2887aa3
MM
132482014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13249
13250 * record-btrace.c (record_btrace_find_new_threads)
13251 (record_btrace_thread_alive): New.
13252 (init_record_btrace_ops): Initialize to_find_new_threads and
13253 to_thread_alive.
13254
b2f4cfde
MM
132552014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13256
13257 * record-btrace.c (record_btrace_resume): New.
13258 (record_btrace_wait): New.
13259 (init_record_btrace_ops): Initialize to_wait and to_resume.
13260
633785ff
MM
132612014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13262
13263 * record-btrace.c (record_btrace_xfer_partial)
13264 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
13265 (record_btrace_allow_memory_access): New.
13266 (init_record_btrace_ops): Initialize new methods.
13267 * target.c (raw_memory_xfer_partial): Bail out if target reports
13268 that this memory is not available.
13269
3db08215
MM
132702014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13271
13272 * target.h (target_ops) <to_insert_breakpoint>
13273 <to_remove_breakpoint>: Add target_ops parameter.
13274 (forward_target_insert_breakpoint): New.
13275 (forward_target_remove_breakpoint): New.
13276 (memory_remove_breakpoint, memory_insert_breakpoint):
13277 Add target_ops parameter.
13278 * target.c (target_insert_breakpoint): Split into this and ...
13279 (forward_target_insert_breakpoint): ... this.
13280 (target_remove_breakpoint): Split into this and ...
13281 (forward_target_remove_breakpoint): ... this.
13282 (debug_to_insert_breakpoint): Add target_ops parameter.
13283 Call forward_target_insert_breakpoint.
13284 (debug_to_remove_breakpoint): Add target_ops parameter.
13285 Call forward_target_remove_breakpoint.
13286 (update_current_target): Do not inherit or default to_insert_breakpoint
13287 and to_remove_breakpoint.
13288 * corelow.c (ignore): Add target_ops parameter.
13289 * exec.c (ignore): Add target_ops parameter.
13290 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
13291 Add target_ops parameter.
13292 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
13293 Add target_ops parameter.
13294 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
13295 Add target_ops parameter.
13296 * record-full.c (record_full_beneath_to_insert_breakpoint)
13297 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
13298 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
13299 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
13300 (record_full_core_remove_breakpoint): Add target_ops parameter.
13301 Update users.
13302 (record_full_beneath_to_insert_breakpoint_ops)
13303 (record_full_beneath_to_remove_breakpoint_ops)
13304 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
13305 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
13306 tmp_to_remove_breakpoint_ops,
13307 record_full_beneath_to_insert_breakpoint_ops, and
13308 record_full_beneath_to_remove_breakpoint_ops.
13309 * remote-m32r-sdi.c (m32r_insert_breakpoint)
13310 (m32r_remove_breakpoint): Add target_ops parameter.
13311 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
13312 Add target_ops parameter.
13313 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
13314 Add target_ops parameter.
13315
cecac1ab
MM
133162014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13317 Markus Metzger <markus.t.metzger@intel.com>
13318
13319 * record-btrace.c: Include frame-unwind.h.
13320 (record_btrace_frame_unwind_stop_reason)
13321 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
13322 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
13323 New.
13324 (init_record_btrace_ops): Install it.
13325
824344ca
MM
133262014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13327
13328 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
13329 get_prev_frame_1.
13330
32261e52
MM
133312014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13332
13333 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
13334 earlier.
13335
ea001bdc
MM
133362014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13337
13338 * frame-unwind.c: Include target.h.
13339 (frame_unwind_try_unwinder): New function with code from ...
13340 (frame_unwind_find_by_frame): ... here. New variable
13341 unwinder_from_target, call also target_get_unwinder)
13342 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
13343 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
13344 * target.h (struct target_ops): New fields to_get_unwinder and
13345 to_get_tailcall_unwinder.
13346 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
13347
1f3ef581
MM
133482014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13349
13350 * record-btrace.c (record_btrace_fetch_registers)
13351 (record_btrace_store_registers)
13352 (record_btrace_to_prepare_to_store): New.
13353 (init_record_btrace_ops): Add the above.
13354
f32dbf8c
MM
133552014-01-16 Tom Tromey <tromey@redhat.com>
13356
13357 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
13358 * target.h (struct target_ops) <to_prepare_to_store>: Add
13359 argument.
13360 (target_prepare_to_store): Add argument.
13361 * target.c (debug_to_prepare_to_store): Add argument.
13362 (update_current_target): Update.
13363 * remote.c (remote_prepare_to_store): Add 'self' argument.
13364 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
13365 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
13366 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
13367 * record-full.c (record_full_core_prepare_to_store): Add 'self'
13368 argument.
13369 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
13370 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
13371 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
13372 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
13373 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
13374
07bbe694
MM
133752014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13376
13377 * btrace.h (replay) <replay>: New.
13378 (btrace_is_replaying): New.
13379 * btrace.c (btrace_clear): Free replay iterator.
13380 (btrace_is_replaying): New.
13381 * record-btrace.c (record_btrace_is_replaying): New.
13382 (record_btrace_info): Print insn number if replaying.
13383 (record_btrace_insn_history): Start at replay position.
13384 (record_btrace_call_history): Start at replay position.
13385 (init_record_btrace_ops): Init to_record_is_replaying.
13386
0688d04e
MM
133872014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13388
13389 * record-btrace.c (record_btrace_insn_history_range): Include
13390 end.
13391 (record_btrace_insn_history_from): Adjust range.
13392 (record_btrace_call_history_range): Include
13393 end.
13394 (record_btrace_call_history_from): Adjust range.
13395 * NEWS: Announce changes.
13396
8710b709
MM
133972014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13398
13399 * record.h (enum record_print_flag)
13400 <record_print_indent_calls>: New.
13401 * record.c (get_call_history_modifiers): Recognize /c modifier.
13402 (_initialize_record): Document /c modifier.
13403 * record-btrace.c (btrace_call_history): Add btinfo parameter.
13404 Reorder fields. Optionally indent the function name. Update
13405 all users.
13406 * NEWS: Announce changes.
13407
d0fa7535
MM
134082014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13409
13410 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
13411
5de9129b
MM
134122014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13413
13414 * btrace.c (ftrace_new_function): Start counting at one.
13415 * record-btrace.c (record_btrace_info): Adjust number of calls
13416 and insns.
13417 * NEWS: Announce it.
13418
7acbe133
MM
134192014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13420
13421 * record-btrace.c (btrace_call_history_insn_range): Print
13422 insn range as [begin, end].
13423
23a7fe75
MM
134242014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13425
13426 * btrace.h (struct btrace_func_link): New.
13427 (enum btrace_function_flag): New.
13428 (struct btrace_inst): Rename to ...
13429 (struct btrace_insn): ...this. Update all users.
13430 (struct btrace_func) <ibegin, iend>: Remove.
13431 (struct btrace_func_link): New.
13432 (struct btrace_func): Rename to ...
13433 (struct btrace_function): ...this. Update all users.
13434 (struct btrace_function) <segment, flow, up, insn, insn_offset)
13435 (number, level, flags>: New.
13436 (struct btrace_insn_iterator): Rename to ...
13437 (struct btrace_insn_history): ...this.
13438 Update all users.
13439 (struct btrace_insn_iterator, btrace_call_iterator): New.
13440 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
13441 (struct btrace_target_info) <begin, end, level>
13442 <insn_history, call_history>: New.
13443 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13444 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13445 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13446 (btrace_call_number, btrace_call_begin, btrace_call_end)
13447 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13448 (btrace_find_function_by_number, btrace_set_insn_history)
13449 (btrace_set_call_history): New.
13450 * btrace.c (btrace_init_insn_iterator)
13451 (btrace_init_func_iterator, compute_itrace): Remove.
13452 (ftrace_print_function_name, ftrace_print_filename)
13453 (ftrace_skip_file): Change
13454 parameter to const.
13455 (ftrace_init_func): Remove.
13456 (ftrace_debug): Use new btrace_function fields.
13457 (ftrace_function_switched): Also consider gaining and
13458 losing symbol information).
13459 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
13460 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
13461 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
13462 New.
13463 (ftrace_new_function): Move. Remove debug print.
13464 (ftrace_update_lines, ftrace_update_insns): New.
13465 (ftrace_update_function): Check for call, ret, and jump.
13466 (compute_ftrace): Renamed to ...
13467 (btrace_compute_ftrace): ...this. Rewritten to compute call
13468 stack.
13469 (btrace_fetch, btrace_clear): Updated.
13470 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13471 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13472 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13473 (btrace_call_number, btrace_call_begin, btrace_call_end)
13474 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13475 (btrace_find_function_by_number, btrace_set_insn_history)
13476 (btrace_set_call_history): New.
13477 * record-btrace.c (require_btrace): Use new btrace thread
13478 info fields.
13479 (record_btrace_info, btrace_insn_history)
13480 (record_btrace_insn_history, record_btrace_insn_history_range):
13481 Use new btrace thread info fields and new iterator.
13482 (btrace_func_history_src_line): Rename to ...
13483 (btrace_call_history_src_line): ...this. Use new btrace
13484 thread info fields.
13485 (btrace_func_history): Rename to ...
13486 (btrace_call_history): ...this. Use new btrace thread info
13487 fields and new iterator.
13488 (record_btrace_call_history, record_btrace_call_history_range):
13489 Use new btrace thread info fields and new iterator.
13490
8372a7cb
MM
134912014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13492
13493 * frame.h (frame_id_build_unavailable_stack_special): New.
13494 * frame.c (frame_id_build_unavailable_stack_special): New.
13495
c2170eef
MM
134962014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13497
13498 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
13499 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
13500 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
13501 to gdbarch.
13502 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
13503 (i386_insn_is_jump, i386_jmp_p): New.
13504 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
13505 insn_is_jump to gdbarch.
13506 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
13507 * gdbarch.h: Regenerated.
13508 * gdbarch.c: Regenerated.
13509 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
13510 (default_insn_is_jump): New.
13511 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
13512 (default_insn_is_jump): New.
13513
864089d2
MM
135142014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13515
13516 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
13517 Change to ...
13518 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
13519 (btrace_read_type) <btrace_read_new>: Change to ...
13520 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
13521
ed9edfb5
MM
135222014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13523
13524 * common/linux-btrace.c (linux_read_btrace): Free trace from
13525 previous iteration.
13526
fbcbc3fd
DE
135272014-01-15 Doug Evans <dje@google.com>
13528
13529 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
13530 uint32_t.
13531
3d548a53
TT
135322014-01-15 Tom Tromey <tromey@redhat.com>
13533
13534 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
13535 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
13536 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
13537 (set_objfile_main_name): New function.
13538 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
13539 language_of_main>: New fields.
13540 (set_objfile_main_name): Declare.
13541 * symtab.c (find_main_name): Loop over objfiles to find the main
13542 name and language.
13543 (set_main_name): Now static.
13544 (get_main_info): Add comment.
13545 * symtab.h (set_main_name): Don't declare.
13546
32ac0d11
TT
135472014-01-15 Tom Tromey <tromey@redhat.com>
13548
13549 * symtab.c (main_progspace_key): New global.
13550 (struct main_info): New.
13551 (name_of_main, language_of_main): Remove.
13552 (get_main_info, main_info_cleanup): New function.
13553 (set_main_name, main_name, main_language): Use get_main_info.
13554 (_initialize_symtab): Initialize main_progspace_key.
13555
9e6c82ad
TT
135562014-01-15 Tom Tromey <tromey@redhat.com>
13557
13558 * dbxread.c (process_one_symbol): Update.
13559 * dwarf2read.c (read_partial_die): Update.
13560 * symfile.c (set_initial_language): Call main_language.
13561 * symtab.c (language_of_main): Now static.
13562 (set_main_name): Add 'lang' parameter.
13563 (find_main_name): Update.
13564 (main_language): New function.
13565 (symtab_observer_executable_changed): Update.
13566 * symtab.h (set_main_name): Update.
13567 (language_of_main): Remove.
13568 (main_language): Declare.
13569
6ef55de7
TT
135702014-01-15 Tom Tromey <tromey@redhat.com>
13571
13572 * symfile.c (init_entry_point_info): Use new "initialized" field.
13573 Update.
13574 * objfiles.h (struct entry_point) <initialized>: New field.
13575 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
13576 (struct objfile) <ei>: ...here. Remove.
13577 * objfiles.c (entry_point_address_query): Update.
13578
53eddfa6
TT
135792014-01-15 Tom Tromey <tromey@redhat.com>
13580
13581 * objfiles.c (entry_point_address_query): Relocate entry point
13582 address.
13583 (objfile_relocate1): Do not relocate entry point address.
13584 * objfiles.h (struct entry_info) <entry_point>: Update comment.
13585 <the_bfd_section_index>: New field.
13586 * symfile.c (init_entry_point_info): Find the entry point's
13587 section.
13588
d56e56aa
TT
135892014-01-15 Tom Tromey <tromey@redhat.com>
13590
13591 * solib-frv.c (enable_break): Use entry_point_address_query.
13592
33a97bbe
OJ
135932014-01-15 Omair Javaid <omair.javaid@linaro.org>
13594
13595 * NEWS: Add note on improved process record-replay on
13596 arm*-linux* targets.
13597
c6ec2b30
OJ
135982014-01-15 Omair Javaid <omair.javaid@linaro.org>
13599
13600 * arm-tdep.c (enum arm_record_result): New enum.
13601 (arm_record_unsupported_insn): New function.
13602 (arm_record_coproc_data_proc): Removed.
13603 (thumb2_record_ld_st_multiple): New function.
13604 (thumb2_record_ld_st_dual_ex_tbb): New function.
13605 (thumb2_record_data_proc_sreg_mimm): New function.
13606 (thumb2_record_ps_dest_generic): New function.
13607 (thumb2_record_branch_misc_cntrl): New function.
13608 (thumb2_record_str_single_data): New function.
13609 (thumb2_record_ld_mem_hints): New function.
13610 (thumb2_record_ld_word): New function.
13611 (thumb2_record_lmul_lmla_div): New function.
13612 (thumb2_record_decode_insn_handler): New function.
13613 (decode_insn): Add thumb32 instruction handlers.
13614
97dfe206
OJ
136152014-01-15 Omair Javaid <omair.javaid@linaro.org>
13616
13617 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
13618 (struct arm_linux_record_tdep): Declare.
13619 (arm_canonicalize_syscall): New function.
13620 (arm_all_but_pc_registers_record): New function.
13621 (arm_linux_syscall_record): New function.
13622 (arm_linux_init_abi): Add syscall recording constructs.
13623 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
13624 decoding. (arm_record_coproc_data_proc): Update arm syscall
13625 decoding.
13626 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
13627 <arm_syscall_record>: New field.
13628 * configure.tgt (arm*-*-linux*): Add linux-record.o to
13629 gdb_target_obs.
13630
9904a494
OJ
136312014-01-15 Omair Javaid <omair.javaid@linaro.org>
13632
13633 * arm-tdep.c (thumb_record_misc): Update to use sp as base
13634 register for push instruction recording.
13635
f969241e
OJ
136362014-01-15 Omair Javaid <omair.javaid@linaro.org>
13637
13638 * arm-tdep.c (thumb_record_misc): Update to correct logical
13639 error while recording ldm, ldmia and pop instructions.
13640
bfbbec00
OJ
136412014-01-15 Omair Javaid <omair.javaid@linaro.org>
13642
13643 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
13644
e40adcc9
PA
136452014-01-15 Pedro Alves <palves@redhat.com>
13646
13647 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
13648 (go32_resume, go32_fetch_registers, store_register)
13649 (go32_store_registers, go32_prepare_to_store)
13650 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
13651 (go32_create_inferior, go32_can_run, go32_terminal_init)
13652 (go32_terminal_inferior, go32_terminal_ours): Delete forward
13653 declarations.
13654
b0a16e66
TT
136552014-01-15 Tom Tromey <tromey@redhat.com>
13656
13657 * target.h (async_callback_ftype): New typedef.
13658 (struct target_ops) <to_async>: Use it.
13659
bf7105a4
JB
136602014-01-15 Joel Brobecker <brobecker@adacore.com>
13661
13662 * python/py-value.c (get_field_type): Remove unnecessary curly
13663 braces for single-statement if block.
13664
a8f35c2e
JB
136652014-01-15 Joel Brobecker <brobecker@adacore.com>
13666
13667 * python/py-type.c (convert_field): Add missing empty line
13668 after declarations.
13669
bb4142cf
DE
136702014-01-14 Doug Evans <dje@google.com>
13671
13672 * symfile.h (expand_symtabs_matching): Renamed from
13673 expand_partial_symbol_names. Update prototype.
13674 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
13675 * symfile.c (expand_symtabs_matching): Renamed from
13676 expand_partial_symbol_names. New args file_matcher, kind.
13677 Rename arg fun to symbol_matcher.
13678 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
13679 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
13680 ada_expand_partial_symbol_name.
13681 (ada_make_symbol_completion_list): Update to call
13682 expand_symtabs_matching.
13683 (ada_add_global_exceptions): Call expand_symtabs_matching.
13684 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
13685 call map_symbol_filenames.
13686 * symtab.c (sources_info): Update to call map_symbol_filenames.
13687 (search_symbols): Call expand_symtabs_matching.
13688 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
13689 (default_make_symbol_completion_list_break_on): Update to call
13690 expand_symtabs_matching.
13691 (make_source_files_completion_list): Update to call
13692 map_symbol_filenames.
13693
206f2a57
DE
136942014-01-14 Doug Evans <dje@google.com>
13695
13696 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
13697 (expand_symtabs_symbol_matcher_ftype): New typedef.
13698 (quick_symbol_functions.expand_symtabs_matching): Update to use.
13699 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13700 * symfile.c (expand_partial_symbol_names): Update to use
13701 expand_symtabs_symbol_matcher_ftype.
13702 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
13703 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13704 Arg name_matcher renamed to symbol_matcher.
13705 * psymtab.c (recursively_search_psymtabs): Update to use
13706 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
13707 sym_matcher.
13708 (expand_symtabs_matching_via_partial): Update to use
13709 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13710 Arg name_matcher renamed to symbol_matcher.
13711
540c2971
DE
137122014-01-14 Doug Evans <dje@google.com>
13713
13714 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
13715 (map_partial_symbol_filenames): Ditto.
13716 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
13717 (map_partial_symbol_filenames): Ditto.
13718 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
13719 (map_partial_symbol_filenames): Ditto.
13720 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
13721 (map_partial_symbol_filenames): Ditto.
13722 * symtab.c: Delete #include "psymtab.h".
13723
8213266a
PA
137242014-01-14 Pedro Alves <palves@redhat.com>
13725 Tom Tromey <tromey@redhat.com>
13726
13727 * infrun.c (use_displaced_stepping): Use find_record_target
13728 instead of RECORD_IS_USED.
13729 (adjust_pc_after_break): Use record_full_is_used instead of
13730 RECORD_IS_USED.
13731 * record-btrace.c (record_btrace_open): Call record_preopen
13732 instead of checking RECORD_IS_USED.
13733 * record-full.c (record_full_shortname)
13734 (record_full_core_shortname): New globals.
13735 (record_full_is_used): New function.
13736 (find_full_open): Call record_preopen instead of checking
13737 RECORD_IS_USED.
13738 (init_record_full_ops): Set the target's shortname to
13739 record_full_shortname.
13740 (init_record_full_core_ops): Set the target's shortname to
13741 record_full_core_shortname.
13742 * record-full.h (record_full_is_used): Declare.
13743 * record.c (find_record_target): Make extern.
13744 (record_preopen): New function.
13745 * record.h (RECORD_IS_USED): Delete macro.
13746 (find_record_target, record_preopen): Declare functions.
13747
7ec1862d
YQ
137482014-01-14 Yao Qi <yao@codesourcery.com>
13749
13750 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
13751 'len''s type to ULONGEST.
13752 (core_xfer_shared_libraries_aix): Likewise.
13753 * gdbarch.c, gdbarch.h: Regenerated.
13754 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
13755 Change type of 'len' to ULONGEST.
13756 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13757 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
13758
dea80a27
YQ
137592014-01-14 Yao Qi <yao@codesourcery.com>
13760
13761 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
13762 type of 'len' to ULONGEST.
13763 (linux_xfer_osdata_processgroups): Likewise.
13764 (linux_xfer_osdata_threads): Likewise.
13765 (linux_xfer_osdata_fds): Likewise.
13766 (linux_xfer_osdata_isockets): Likewise.
13767 (linux_xfer_osdata_shm): Likewise.
13768 (linux_xfer_osdata_sem): Likewise.
13769 (linux_xfer_osdata_msg): Likewise.
13770 (linux_common_xfer_osdata): Likewise.
13771 (struct osdata_type) <getter>: Likewise.
13772 * common/linux-osdata.h (linux_common_xfer_osdata): Update
13773 the declaration.
13774
b55e14c7
YQ
137752014-01-14 Yao Qi <yao@codesourcery.com>
13776
13777 * target.h (target_xfer_partial_ftype): Update.
13778 (struct target_ops) <to_xfer_partial>: Change 'len' type to
13779 ULONGEST.
13780 * aix-thread.c (aix_thread_xfer_partial): Change type of
13781 argument 'len' to ULONGEST.
13782 * auxv.c (procfs_xfer_auxv): Likewise.
13783 (ld_so_xfer_auxv): Likewise.
13784 (memory_xfer_auxv): Likewise.
13785 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13786 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13787 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
13788 * corelow.c (core_xfer_partial): Likewise.
13789 * ctf.c (ctf_xfer_partial): Likewise.
13790 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
13791 '%u'.
13792 (darwin_read_dyld_info): Likewise.
13793 (darwin_xfer_partial): Likewise.
13794 * exec.c (section_table_xfer_memory_partial): Likewise.
13795 (exec_xfer_partial): Likewise.
13796 * exec.h (section_table_xfer_memory_partial): Update
13797 declaration.
13798 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
13799 instead of plongest.
13800 (gnu_xfer_partial): Likewise.
13801 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
13802 (ia64_hpux_xfer_solib_got): Likewise.
13803 (ia64_hpux_xfer_partial): Likewise.
13804 * ia64-linux-nat.c (ia64_linux_xfer_partial):
13805 * inf-ptrace.c (inf_ptrace_xfer_partial):
13806 * inf-ttrace.c (inf_ttrace_xfer_partial):
13807 * linux-nat.c (linux_xfer_siginfo): Likewise.
13808 (linux_nat_xfer_partial): Likewise.
13809 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
13810 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
13811 * monitor.c (monitor_xfer_memory): Likewise.
13812 (monitor_xfer_partial): Likewise.
13813 * procfs.c (procfs_xfer_partial): Likewise.
13814 * record-full.c (record_full_xfer_partial): Likewise.
13815 (record_full_core_xfer_partial): Likewise.
13816 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
13817 instead of plongest.
13818 (gdbsim_xfer_partial): Likewise.
13819 * remote.c (remote_xfer_partial): Likewise.
13820 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13821 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
13822 declaration.
13823 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13824 (rs6000_xfer_shared_libraries): Likewise.
13825 * sol-thread.c (sol_thread_xfer_partial): Likewise.
13826 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13827 (sparc_xfer_partial): Likewise.
13828 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13829 (spu_xfer_partial): Likewise.
13830 * spu-multiarch.c (spu_xfer_partial): Likewise.
13831 * target.c (target_read_live_memory): Likewise.
13832 (memory_xfer_live_readonly_partial): Likewise.
13833 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
13834 (target_xfer_partial, default_xfer_partial): Likewise.
13835 (current_xfer_partial): Likewise.
13836 * tracepoint.c (tfile_xfer_partial): Likewise.
13837 * windows-nat.c (windows_xfer_memory): Likewise. Call
13838 pulongest instead of plongest.
13839 (windows_xfer_partial): Likewise.
13840 (windows_xfer_shared_libraries): Likewise.
13841
05804640
YQ
138422014-01-14 Yao Qi <yao@codesourcery.com>
13843
13844 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
13845 target_xfer_partial_ftype.
13846
b5b08fb4
SC
138472014-01-13 Siva Chandra Reddy <sivachandra@google.com>
13848
13849 PR python/15464
13850 PR python/16113
13851 * valops.c (value_struct_elt_bitpos): New function
13852 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
13853 object to 'None' if the field name is an empty string ("").
13854 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
13855 attribute to look for a field when 'name' is 'None'.
13856 (get_field_type): New function
13857
13aaf454
DE
138582014-01-13 Doug Evans <dje@google.com>
13859
13860 PR symtab/16426
13861 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
13862 (try_open_dwop_file): Ditto.
13863 * gdb_bfd.c: #include "vec.h".
13864 (bfdp): New typedef.
13865 (struct gdb_bfd_data): New member included_bfds.
13866 (gdb_bfd_unref): Unref all included bfds.
13867 (gdb_bfd_record_inclusion): New function.
13868 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
13869
c2cec97c
TT
138702014-01-13 Tom Tromey <tromey@redhat.com>
13871
13872 * gdbcore.h (deprecated_core_resize_section_table): Remove.
13873
78e5999d
TT
138742014-01-13 Tom Tromey <tromey@redhat.com>
13875
13876 * defs.h (use_windows): Remove.
13877 * gdb.c (main): Update.
13878 * main.c (captured_main, gdb_main): Update.
13879 * main.h (struct captured_main_args) <use_windows>: Remove.
13880 * top.c (use_windows): Remove.
13881
f2052bbe
TT
138822014-01-13 Tom Tromey <tromey@redhat.com>
13883
13884 * defs.h (deprecated_flush_hook): Remove.
13885
fde4f8ed
JK
138862014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
13887
13888 PR threads/16216
13889 * linux-thread-db.c (try_thread_db_load): Add parameter
13890 check_auto_load_safe. Move here the file_is_auto_load_safe call.
13891 (try_thread_db_load_from_pdir_1): Move it there from here.
13892 (try_thread_db_load_from_sdir): Update caller.
13893 (try_thread_db_load_from_dir): Move it there from here.
13894
bdf61915
PP
138952014-01-13 Patrick Palka <patrick@parcs.ath.cx>
13896
13897 * regformats/regdat.sh: Always rewrite the register file.
13898
f71e1a8d
PA
138992014-01-13 Pedro Alves <palves@redhat.com>
13900
13901 * Makefile.in (CHECK_HEADERS): New variable.
13902 (check-headers:): New rule.
13903
42c85435
TT
139042014-01-13 Tom Tromey <tromey@redhat.com>
13905
13906 * cli/cli-setshow.c (do_set_command): Update.
13907 * defs.h (deprecated_set_hook): Remove.
13908 * top.c (deprecated_set_hook): Remove.
13909
f8de5129
PA
139102014-01-13 Pedro Alves <palves@redhat.com>
13911
13912 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
13913 the tracepoint if the PC is a pseudo-register.
13914
fc270c35
TT
139152014-01-13 Tom Tromey <tromey@redhat.com>
13916
13917 * defs.h (XCALLOC): Remove.
13918 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
13919 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
13920 * dwarf2loc.c (allocate_piece_closure): Likewise.
13921 * elfread.c (elf_symfile_segments): Likewise.
13922 (elf_symfile_segments): Likewise.
13923 * gdbtypes.c (copy_type_recursive): Likewise.
13924 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
13925 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
13926 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
13927 XCALLOC.
13928 * mt-tdep.c (mt_gdbarch_init): Likewise.
13929 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
13930 XCALLOC.
13931 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
13932 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
13933 * registry.c (registry_alloc_data): Likewise.
13934 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
13935 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
13936 * serial.c (serial_fdopen_ops): Likewise.
13937 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
13938 XCALLOC.
13939 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
13940 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
13941 not XCALLOC.
13942
70ba0933
TT
139432014-01-13 Tom Tromey <tromey@redhat.com>
13944
13945 * defs.h (XMALLOC): Remove.
13946 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
13947 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
13948 * cli-out.c (struct ui_out *): Likewise.
13949 * cli/cli-dump.c (add_dump_command): Likewise.
13950 (add_dump_command): Likewise.
13951 * complaints.c (get_complaints): Likewise.
13952 (find_complaint): Likewise.
13953 * dwarf2-frame.c (execute_cfa_program): Likewise.
13954 * dwarf2read.c (abbrev_table_read_table): Likewise.
13955 * gdbarch.sh: Likewise.
13956 * gdbarch.c: Rebuild.
13957 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
13958 * interps.c (interp_new): Likewise.
13959 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
13960 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
13961 * mi/mi-console.c (mi_console_file_new): Likewise.
13962 * mi/mi-interp.c (mi_interpreter_init): Likewise.
13963 * mi/mi-out.c (mi_out_new): Likewise.
13964 * mi/mi-parse.c (mi_parse): Likewise.
13965 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
13966 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
13967 * observer.c (xalloc_observer_list_node): Likewise.
13968 * regcache.c (regcache_xmalloc_1): Likewise.
13969 * reggroups.c (reggroup_new): Likewise.
13970 (_initialize_reggroup): Likewise.
13971 * registry.c (register_data_with_cleanup): Likewise.
13972 * remote.c (remote_notif_stop_alloc_reply): Likewise.
13973 * ser-base.c (serial_ttystate): Likewise.
13974 * ser-mingw.c (make_pipe_state): Likewise.
13975 * ser-pipe.c (pipe_open): Likewise.
13976 * serial.c (serial_open): Likewise.
13977 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
13978 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
13979 (tui_alloc_win_info): Likewise.
13980 (tui_add_content_elements): Likewise.
13981 * tui/tui-file.c (tui_file_new): Likewise.
13982 * tui/tui-out.c (tui_out_new): Likewise.
13983 * ui-file.c (mem_file_new): Likewise.
13984 * ui-out.c (push_level): Likewise.
13985 (make_cleanup_ui_out_end): Likewise.
13986 (append_header_to_list): Likewise.
13987 (ui_out_new): Likewise.
13988 * user-regs.c (user_reg_add_builtin): Likewise.
13989
41bf6aca
TT
139902014-01-13 Tom Tromey <tromey@redhat.com>
13991
13992 * defs.h (XZALLOC): Remove.
13993 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
13994 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
13995 (get_ada_tasks_inferior_data): Likewise.
13996 * auto-load.c (get_auto_load_pspace_data): Likewise.
13997 * auxv.c (get_auxv_inferior_data): Likewise.
13998 * bfd-target.c (target_bfd_reopen): Likewise.
13999 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
14000 (deprecated_insert_raw_breakpoint): Likewise.
14001 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
14002 * corelow.c (core_open): Likewise.
14003 * darwin-nat.c (darwin_check_new_threads): Likewise.
14004 (darwin_attach_pid): Likewise.
14005 * dummy-frame.c (dummy_frame_push): Likewise.
14006 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
14007 * dwarf2loc.c (allocate_piece_closure): Likewise.
14008 * elfread.c (elf_symfile_segments): Likewise.
14009 * eval.c (ptrmath_type_p): Likewise.
14010 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
14011 * gdbtypes.c (alloc_type_arch): Likewise.
14012 (alloc_type_instance): Likewise.
14013 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
14014 * inf-child.c (inf_child_can_use_agent): Likewise.
14015 * inflow.c (get_inflow_inferior_data): Likewise.
14016 * infrun.c (save_infcall_suspend_state): Likewise.
14017 * jit.c (jit_reader_load): Likewise.
14018 (get_jit_objfile_data): Likewise.
14019 (get_jit_program_space_data): Likewise.
14020 (jit_object_open_impl): Likewise.
14021 (jit_symtab_open_impl): Likewise.
14022 (jit_block_open_impl): Likewise.
14023 (jit_frame_sniffer): Likewise.
14024 * linux-fork.c (add_fork): Likewise.
14025 * maint.c (make_command_stats_cleanup): Likewise.
14026 * objfiles.c (get_objfile_pspace_data): Likewise.
14027 * opencl-lang.c (struct lval_closure): Likewise.
14028 * osdata.c (osdata_start_osdata): Likewise.
14029 * progspace.c (new_address_space): Likewise.
14030 (add_program_space): Likewise.
14031 * remote-sim.c (get_sim_inferior_data): Likewise.
14032 * sh-tdep.c (sh_gdbarch_init): Likewise.
14033 * skip.c (Ignore): Likewise.
14034 (skip_delete_command): Likewise.
14035 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
14036 (library_list_start_library): Likewise.
14037 (solib_aix_current_sos): Likewise.
14038 * solib-darwin.c (get_darwin_info): Likewise.
14039 (darwin_current_sos): Likewise.
14040 * solib-dsbt.c (get_dsbt_info): Likewise.
14041 * solib-ia64-hpux.c (new_so_list): Likewise.
14042 (ia64_hpux_get_solib_linkage_addr): Likewise.
14043 * solib-spu.c (append_ocl_sos): Likewise.
14044 (spu_current_sos): Likewise.
14045 * solib-svr4.c (get_svr4_info): Likewise.
14046 (svr4_keep_data_in_core): Likewise.
14047 (library_list_start_library): Likewise.
14048 (svr4_default_sos): Likewise.
14049 (svr4_read_so_list): Likewise.
14050 * solib-target.c (library_list_start_library): Likewise.
14051 (solib_target_current_sos): Likewise.
14052 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
14053 * symfile-debug.c (install_symfile_debug_logging): Likewise.
14054 * symfile.c (default_symfile_segments): Likewise.
14055 * target-descriptions.c (tdesc_data_init): Likewise.
14056 (tdesc_create_reg): Likewise.
14057 (struct tdesc_type *): Likewise.
14058 (tdesc_create_vector): Likewise.
14059 (tdesc_set_struct_size): Likewise.
14060 (struct tdesc_type *): Likewise.
14061 (tdesc_free_feature): Likewise.
14062 (tdesc_create_feature): Likewise.
14063 * windows-nat.c (windows_add_thread): Likewise.
14064 (windows_make_so): Likewise.
14065 * xml-support.c (gdb_xml_body_text): Likewise.
14066 (gdb_xml_create_parser_and_cleanup): Likewise.
14067 (xml_process_xincludes): Likewise.
14068 * xml-syscall.c (allocate_syscalls_info): Likewise.
14069 (syscall_create_syscall_desc): Likewise.
14070
5acfdbae
SDJ
140712014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
14072
14073 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
14074 function, with code from i386_stap_parse_special_token.
14075 (i386_stap_parse_special_token_three_arg_disp): Likewise.
14076 (i386_stap_parse_special_token): Move code to the two functions
14077 above; simplify it.
14078
0000e5cc
PA
140792014-01-09 Pedro Alves <palves@redhat.com>
14080 Hui Zhu <hui@codesourcery.com>
14081
14082 PR gdb/16101
14083 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
14084 bp_err_string. Don't mark the location shlib_disabled if the
14085 error thrown wasn't a generic or memory error. Catch errors
14086 thrown while inserting breakpoints in overlayed code. Output
14087 error message of software breakpoints.
14088 * remote.c (remote_insert_breakpoint): If this breakpoint has
14089 target-side commands but this stub doesn't support Z0 packets,
14090 throw NOT_SUPPORTED_ERROR error.
14091 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
14092 * target.h (target_insert_breakpoint): Extend comment.
14093 (target_insert_hw_breakpoint): Add comment.
14094
b7ea362b
PA
140952014-01-08 Pedro Alves <palves@redhat.com>
14096
14097 * remote.c (remote_add_thread): Add threads silently if starting
14098 up.
14099 (remote_notice_new_inferior): If in all-stop, and starting up,
14100 don't call notice_new_inferior.
14101 (get_current_thread): New function, factored out from ...
14102 (add_current_inferior_and_thread): ... this. Adjust.
14103 (remote_start_remote) <all-stop>: Fetch the thread list. If we
14104 found any thread, then select the remote's current thread as GDB's
14105 current thread too.
14106
b7bba001
JB
141072014-01-08 Joel Brobecker <brobecker@adacore.com>
14108
14109 * NEWS: Create a new section for the next release branch.
14110 Rename the section of the current branch, now that it has
14111 been cut.
14112
16dfbded
JB
141132014-01-08 Joel Brobecker <brobecker@adacore.com>
14114
14115 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
14116 * version.in: Bump version to 7.7.50.DATE-cvs.
14117
22c90ac1
YQ
141182014-01-08 Yao Qi <yao@codesourcery.com>
14119
14120 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
14121 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
14122 (spu_xfer_partial): Cast 'buf' to 'const char *'.
14123
d64ad97c
YQ
141242014-01-08 Yao Qi <yao@codesourcery.com>
14125
14126 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
14127 return value of bfd_get_filename to symbol_file_add_from_bfd.
14128
f93ba80c
PM
141292014-01-08 Pierre Muller <muller@sourceware.org>
14130
14131 Fix PR16201.
14132 * coff-pe-read.c (struct read_pe_section_data): Add index field.
14133 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
14134 to prim_record_mininal_symbol_and_info.
14135 (add_pe_forwarded_sym): Use known section number of forwarded symbol
14136 in call to prim_record_minimal_symbol_and_info.
14137 (read_pe_exported_syms): Set index field of section_data.
14138
a4d9ba85
AP
141392014-01-07 Andrew Pinski <apinski@cavium.com>
14140
14141 * features/aarch64-core.xml (cpsr): Change to be 64bit.
14142 * features/aarch64.c: Regenerate.
14143
1b67eb02
AS
141442014-01-07 Andreas Schwab <schwab@linux-m68k.org>
14145
14146 * target.c (return_null): Define.
14147 (update_current_target): Use it instead of return_zero for
14148 functions that return a pointer.
14149
5e3f4fab
EBM
141502014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
14151
14152 * source.c (add_path): Fix check for duplicated paths in the previously
14153 included paths.
14154
e2616788
HK
141552014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
14156
14157 * ada-lang.c: Remove duplicated include statements.
14158 * alphabsd-nat.c: Ditto.
14159 * amd64-darwin-tdep.c: Ditto.
14160 * amd64fbsd-nat.c: Ditto.
14161 * auto-load.c: Ditto.
14162 * ax-gdb.c: Ditto.
14163 * breakpoint.c: Ditto.
14164 * dbxread.c: Ditto.
14165 * fork-child.c: Ditto.
14166 * gdb_usleep.c: Ditto.
14167 * i386-darwin-tdep.c: Ditto.
14168 * i386fbsd-nat.c: Ditto.
14169 * infcmd.c: Ditto.
14170 * inferior.c: Ditto.
14171 * jv-lang.c: Ditto.
14172 * linux-nat.c: Ditto.
14173 * linux-tdep.c: Ditto.
14174 * m68kbsd-nat.c: Ditto.
14175 * m68klinux-nat.c: Ditto.
14176 * microblaze-tdep.c: Ditto.
14177 * mips-linux-tdep.c: Ditto.
14178 * mn10300-tdep.c: Ditto.
14179 * nto-tdep.c: Ditto.
14180 * opencl-lang.c: Ditto.
14181 * osdata.c: Ditto.
14182 * printcmd.c: Ditto.
14183 * regcache.c: Ditto.
14184 * remote-m32r-sdi.c: Ditto.
14185 * remote.c: Ditto.
14186 * symfile.c: Ditto.
14187 * symtab.c: Ditto.
14188 * tilegx-linux-nat.c: Ditto.
14189 * tilegx-tdep.c: Ditto.
14190 * tracepoint.c: Ditto.
14191 * valops.c: Ditto.
14192 * vaxbsd-nat.c: Ditto.
14193 * windows-nat.c: Ditto.
14194 * xtensa-tdep.c: Ditto.
14195
bd1f7788
YQ
141962014-01-07 Yao Qi <yao@codesourcery.com>
14197
14198 * spu-linux-nat.c (_initialize_spu_nat): Declare.
14199
79301218
JB
142002014-01-07 Yao Qi <yao@codesourcery.com>
14201 Joel Brobecker <brobecker@adacore.com>
14202
14203 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
14204 (pdc_write_regs): Likewise.
14205 (fetch_regs_kernel_thread): Likewise.
14206 (store_regs_kernel_thread): Likewise.
14207
142082014-01-07 Joel Brobecker <brobecker@adacore.com>
14209
14210 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
14211 tagged type objects to their actual type.
14212
8e355c5d
JB
142132014-01-07 Joel Brobecker <brobecker@adacore.com>
14214
14215 * ada-valprint.c (print_field_values): Add "language" parameter.
14216 Update calls to print_field_values and print_variant_part.
14217 Pass new parameter "language" in call to val_print instead
14218 of "current_language". Replace call to ada_val_print by call
14219 to val_print.
14220 (print_variant_part): Add "language" parameter.
14221 (ada_val_print_struct_union): Update call to print_field_values.
14222
4fbf5aa5
JB
142232014-01-07 Joel Brobecker <brobecker@adacore.com>
14224
14225 * ada-valprint.c (ui_memcpy): Delete.
14226 (ada_print_floating): Update documentation. Add empty line
14227 between between function documentation and implementation.
14228 Delete variable "buffer". Use ui_file_xstrdup in place of
14229 ui_file_put. Minor adjustments following this change.
14230
71855601
JB
142312014-01-07 Joel Brobecker <brobecker@adacore.com>
14232
14233 * ada-valprint.c (ada_val_print_string): New function,
14234 extracted from ada_val_print_array.
14235 (ada_val_print_array): Replace extracted code by call
14236 to ada_val_print_string followed by a return. Move
14237 "else" branch to the function's top block.
14238
4eb27a30
JB
142392014-01-07 Joel Brobecker <brobecker@adacore.com>
14240
14241 * ada-valprint.c (ada_val_print_array): Move implementation
14242 down. Rename parameter "offset" and "val" into "offset_aligned"
14243 and "original_value" respectively. Add parameter "offset".
14244
34b27950
JB
142452014-01-07 Joel Brobecker <brobecker@adacore.com>
14246
14247 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
14248 re-organizing the code. Change the "???" message printed
14249 when target type is a TYPE_CODE_UNDEF into
14250 "<ref to undefined type>".
14251
079e4591
JB
142522014-01-07 Joel Brobecker <brobecker@adacore.com>
14253
14254 * ada-valprint.c (print_record): Delete, implementation inlined...
14255 (ada_val_print_struct_union): ... here. Remove call to
14256 ada_check_typedef in inlined implementation.
14257
8004dfd1
JB
142582014-01-07 Joel Brobecker <brobecker@adacore.com>
14259
14260 * ada-valprint.c (ada_val_print_gnat_array): New function,
14261 extracted from ada_val_print_1;
14262 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
14263 (ada_val_print_flt, ada_val_print_struct_union)
14264 (ada_val_print_ref): Likewise.
14265 (ada_val_print_1): Delete variables i and elttype.
14266 Replace extracted-out code by call to corresponding
14267 new functions.
14268
760a2db0
JB
142692014-01-07 Joel Brobecker <brobecker@adacore.com>
14270
14271 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
14272
3a92c861
JB
142732014-01-07 Joel Brobecker <brobecker@adacore.com>
14274
14275 * ada-valprint.c (ada_val_print_1): Replace calls to
14276 ada_val_print_1 by calls to val_print.
14277
cd1630f9
JB
142782014-01-07 Joel Brobecker <brobecker@adacore.com>
14279
14280 * ada-valprint.c (ada_val_print_1): Add parameter "language".
14281 Update calls to self accordingly. Replace calls to c_val_print
14282 by calls to val_print.
14283
bdf779a0
JB
142842014-01-07 Joel Brobecker <brobecker@adacore.com>
14285
14286 * ada-valprint.c (print_record): Delete declaration.
14287 (adjust_type_signedness, ada_val_print_1): Likewise.
14288 (ada_val_print): Move function implementation down.
14289 (print_variant_part, print_field_values, print_record):
14290 Move function implementation up.
14291
c0d48811
JB
142922014-01-07 Joel Brobecker <brobecker@adacore.com>
14293
14294 * python/py-type.c (typy_get_name): New function.
14295 (type_object_getset): Add entry for attribute "name".
14296 * NEWS: Add entry mentioning this new attribute.
14297
c26e9cbb
YQ
142982014-01-07 Yao Qi <yao@codesourcery.com>
14299
14300 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
14301 statement.
14302
0cc6f43d
YQ
143032014-01-07 Yao Qi <yao@codesourcery.com>
14304
14305 * gnu-nat.c (info_port_rights): Add qualifier const to
14306 argument args.
14307
eec03155
YQ
143082014-01-07 Yao Qi <yao@codesourcery.com>
14309
14310 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
14311
f04a82ef
YQ
143122014-01-07 Yao Qi <yao@codesourcery.com>
14313
14314 * gnu-nat.c (make_inf) Update declaration.
14315 (make_inf): Make it static.
14316 (inf_set_traced): Likewise.
14317 (inf_port_to_thread, inf_task_died_status): Likewise.
14318
d57dda0a
YQ
143192014-01-07 Yao Qi <yao@codesourcery.com>
14320
14321 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
14322
3aa8c969
YQ
143232014-01-07 Yao Qi <yao@codesourcery.com>
14324
14325 * gnu-nat.c (_initialize_gnu_nat): Declare.
14326
94123b4f
YQ
143272014-01-07 Yao Qi <yao@codesourcery.com>
14328
14329 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
14330 'enum bfd_endian'.
14331 (struct gdbarch_info) <byte_order>: Change type to
14332 'enum bfd_endian'.
14333 <byte_order_for_code>: Likewise.
14334 * gdbarch.c, gdbarch.h: Regenerated.
14335
dc81d70a
TT
143362014-01-06 Sasha Smundak <asmundak@google.com>
14337
14338 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
14339
cc2f3c35
TT
143402014-01-06 Tom Tromey <tromey@redhat.com>
14341
14342 * doublest.c (convert_doublest_to_floatformat): Use const, not
14343 CONST.
14344 * somread.c (som_symtab_read): Likewise.
14345
adcf2eed
HZ
143462014-01-07 Hui Zhu <hui@codesourcery.com>
14347
14348 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
14349 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
14350 (gdb_bfd_fopen): Ditto.
14351 (gdb_bfd_openr): Ditto.
14352 (gdb_bfd_openw): Ditto.
14353 (gdb_bfd_openr_iovec): Ditto.
14354 (gdb_bfd_fdopenr): Ditto.
14355 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
14356 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
14357 with xstrdup.
14358 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
14359 with xstrdup.
14360 * symfile-mem.c (symbol_file_add_from_memory): Removed
14361 gdb_bfd_stash_filename.
14362
50722198
DE
143632014-01-03 Doug Evans <dje@google.com>
14364
14365 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
14366 output.
14367
2fa4b862
JB
143682014-01-01 Joel Brobecker <brobecker@adacore.com>
14369
14370 Update year range in copyright notice of all files.
14371
28498c42
JB
143722014-01-01 Joel Brobecker <brobecker@adacore.com>
14373
14374 * top.c (print_gdb_version): Set copyright year to 2014.
14375
7b6e1046
JB
143762014-01-01 Joel Brobecker <brobecker@adacore.com>
14377
14378 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
14379
df96af55 14380For older changes see ChangeLog-2013.
c906108c
SS
14381\f
14382Local Variables:
14383mode: change-log
14384left-margin: 8
14385fill-column: 74
14386version-control: never
57da7796 14387coding: utf-8
c906108c 14388End:
This page took 2.300591 seconds and 4 git commands to generate.