Fix mingw32 failures due to incorrect directory separator in pattern
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
6c4486e6
PA
12014-10-17 Pedro Alves <palves@redhat.com>
2
3 PR gdb/17471
4 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
5 returns a copy of the input.
6 (run_command_1, continue_command, step_1, jump_command)
7 (signal_command, until_command, advance_command, finish_command)
8 (attach_command): Adjust and install a cleanup to free the
9 stripped args.
10
0ff33695
PA
112014-10-17 Pedro Alves <palves@redhat.com>
12
13 PR gdb/17300
14 * infcmd.c (continue_1): If continuing all threads in the
15 foreground, make sure the inferior's terminal settings are put in
16 effect.
17
6fdebc3d
PA
182014-10-17 Pedro Alves <palves@redhat.com>
19
20 PR gdb/17472
21 * annotate.c (annotate_breakpoints_invalid): Use
22 target_terminal_our_for_output instead of target_terminal_ours.
23 Give back the terminal to the target.
24 (annotate_frames_invalid): Likewise.
25
5842f62a
PA
262014-10-17 Pedro Alves <palves@redhat.com>
27
28 * target.c (enum terminal_state): New enum.
29 (terminal_state): New global.
30 (target_terminal_init): New function.
31 (target_terminal_inferior): Skip if inferior already owns the
32 terminal.
33 (target_terminal_ours, target_terminal_ours_for_output): New
34 functions.
35 * target.h (target_terminal_init): Convert to function prototype.
36 (target_terminal_ours_for_output): Convert to function prototype
37 and tweak comment.
38 (target_terminal_ours): Convert to function prototype and tweak
39 comment.
40 * windows-nat.c (do_initial_windows_stuff): Call
41 target_terminal_init instead of child_terminal_init_with_pgrp.
42
32a8097b
PA
432014-10-17 Pedro Alves <palves@redhat.com>
44
45 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
46 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
47 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
48 solib-osf.c.
49 * NEWS: Mention that support for alpha*-*-osf* has been removed.
50 * ada-lang.h [__alpha__ && __osf__]
51 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
52 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
53 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
54 GDB_OSABI_OSF1.
55 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
56 files.
57 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
58 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
59 * configure: Regenerate.
60 * configure.ac: Remove references to osf.
61 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
62 section. Remove all other references to osf.
63 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
64 Remove all other references to osf.
65 * dec-thread.c: Delete file.
66 * defs.h (GDB_OSABI_OSF1): Delete.
67 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
68 defined.
69 * osabi.c (gdb_osabi_names): Delete "OSF/1".
70 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
71 Delete code.
72 (unconditionally_kill_inferior)
73 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
74 * solib-osf.c: Delete file.
75
80134cf5
PA
762014-10-17 Pedro Alves <palves@redhat.com>
77
78 * remote.c (clear_threads_listing_context): Move higher up, out of
79 the HAVE_LIBEXPAT guard.
80
89c7137f
TG
812014-10-16 Tristan Gingold <gingold@adacore.com>
82
83 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
84 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
85 on amd64.
86
44ee4a52
PA
872014-10-15 Pedro Alves <palves@redhat.com>
88
89 * dec-thread.c (dec_thread_count_gdb_threads)
90 (dec_thread_add_gdb_thread): Delete.
91 (dec_thread_update_thread_list): Delete.
92 (dec_thread_find_new_threads): Rename to ...
93 (dec_thread_update_thread_list): ... this. Delete GDB-size
94 threads that are no longer found in dec_thread_list.
95 (resync_thread_list): Delete.
96 (dec_thread_wait): Call dec_thread_update_thread_list instead of
97 resync_thread_list.
98
ab970af1
PA
992014-10-15 Pedro Alves <palves@redhat.com>
100
101 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
102 * remote.c (remote_update_thread_list): Skip calling prune_threads
103 if any thread listing method is supported, and instead walk over
104 the set of remote threads listed, deleting those that are not
105 found in GDB's thread list.
106
e8032dde
PA
1072014-10-15 Pedro Alves <palves@redhat.com>
108
109 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
110 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
111 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
112 (bsd_uthread_target): Adjust.
113 * corelow.c (core_open): Adjust.
114 * dec-thread.c (dec_thread_find_new_threads): Update comment.
115 (dec_thread_update_thread_list): New function.
116 (init_dec_thread_ops): Adjust.
117 * gdbthread.h (prune_threads): New declaration.
118 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
119 (thread_db_update_thread_list): ... this. Call prune_threads.
120 (init_thread_db_ops): Adjust.
121 * nto-procfs.c (procfs_find_new_threads): Rename to ...
122 (procfs_update_thread_list): ... this. Call prune_threads.
123 (procfs_attach, procfs_create_inferior, init_procfs_targets):
124 Adjust.
125 * obsd-nat.c (obsd_find_new_threads): Rename to ...
126 (obsd_update_thread_list): ... this. Call prune_threads.
127 (obsd_add_target): Adjust.
128 * procfs.c (procfs_target): Adjust.
129 (procfs_notice_thread): Update comment.
130 (procfs_find_new_threads): Rename to ...
131 (procfs_update_thread_list): ... this. Call prune_threads.
132 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
133 comment.
134 (ravenscar_wait): Adjust.
135 (ravenscar_find_new_threads): Rename to ...
136 (ravenscar_update_thread_list): ... this. Call prune_threads.
137 (init_ravenscar_thread_ops): Adjust.
138 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
139 (record_btrace_update_thread_list): ... this. Adjust comment.
140 (init_record_btrace_ops): Adjust.
141 * remote.c (remote_threads_info): Rename to ...
142 (remote_update_thread_list): ... this. Call prune_threads.
143 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
144 Adjust.
145 * sol-thread.c (check_for_thread_db): Adjust.
146 (sol_find_new_threads_callback): Rename to ...
147 (sol_update_thread_list_callback): ... this.
148 (sol_find_new_threads): Rename to ...
149 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
150 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
151 * target-delegates.c: Regenerate.
152 * target.c (target_find_new_threads): Rename to ...
153 (target_update_thread_list): ... this.
154 * target.h (struct target_ops): Rename to_find_new_threads field
155 to to_update_thread_list.
156 (target_find_new_threads): Rename to ...
157 (target_update_thread_list): ... this.
158 * thread.c (prune_threads): Make extern.
159 (update_thread_list): Adjust.
160
6dc54d91
PA
1612014-10-15 Pedro Alves <palves@redhat.com>
162
163 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
164 Add describing comment. Return -1 if the qL packet is not
165 supported.
166 (struct thread_item, thread_item_t): Move higher up in
167 the file. Add comments.
168 (struct threads_parsing_context): Move higher up in
169 the file, add comments, and remote to ...
170 (struct threads_listing_context): ... this.
171 (remote_newthread_step): Don't add the thread to GDB's thread
172 database here. Instead push it to the thread_listing_context
173 list.
174 (remote_find_new_threads): Rename to ...
175 (remote_get_threads_with_ql): ... this. Add target_ops and
176 targets_listing_context parameters. Pass down context.
177 (start_thread): Adjust.
178 (clear_threads_parsing_context): Rename to ...
179 (clear_threads_listing_context): ... this.
180 (remote_get_threads_with_qxfer): New, with parts salvaged from old
181 remote_threads_info.
182 (remote_get_threads_with_qthreadinfo): Ditto.
183 (remote_threads_info): Reimplement.
184
36728e82
PA
1852014-10-15 Pedro Alves <palves@redhat.com>
186
187 * infrun.c (resume): Don't force displaced-stepping for all
188 single-steps on software single-stepping archs.
189
34b7e8a6
PA
1902014-10-15 Pedro Alves <palves@redhat.com>
191
192 * breakpoint.c (single_step_breakpoints): Delete global.
193 (insert_single_step_breakpoint): Adjust to store the breakpoint
194 pointer in the current thread.
195 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
196 (cancel_single_step_breakpoints): Delete functions.
197 (breakpoint_has_location_inserted_here): Make extern.
198 (single_step_breakpoint_inserted_here_p): Adjust to walk the
199 breakpoint list.
200 * breakpoint.h (breakpoint_has_location_inserted_here): New
201 declaration.
202 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
203 (cancel_single_step_breakpoints): Remove declarations.
204 * gdbthread.h (struct thread_control_state)
205 <single_step_breakpoints>: New field.
206 (delete_single_step_breakpoints)
207 (thread_has_single_step_breakpoints_set)
208 (thread_has_single_step_breakpoint_here): New declarations.
209 * infrun.c (follow_exec): Also clear the single-step breakpoints.
210 (singlestep_breakpoints_inserted_p, singlestep_ptid)
211 (singlestep_pc): Delete globals.
212 (infrun_thread_ptid_changed): Remove references to removed
213 globals.
214 (resume_cleanups): Delete the current thread's single-step
215 breakpoints.
216 (maybe_software_singlestep): Remove references to removed globals.
217 (resume): Adjust to use thread_has_single_step_breakpoints_set and
218 delete_single_step_breakpoints.
219 (init_wait_for_inferior): Remove references to removed globals.
220 (delete_thread_infrun_breakpoints): Delete the thread's
221 single-step breakpoints too.
222 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
223 single-step breakpoints here.
224 (delete_stopped_threads_single_step_breakpoints): New function.
225 (adjust_pc_after_break): Adjust to use
226 thread_has_single_step_breakpoints_set.
227 (handle_inferior_event): Remove references to removed globals.
228 Use delete_stopped_threads_single_step_breakpoints.
229 (handle_signal_stop): Adjust to per-thread single-step
230 breakpoints. Swap test order to do cheaper tests first.
231 (switch_back_to_stepped_thread): Extend debug output. Remove
232 references to removed globals.
233 * record-full.c (record_full_wait_1): Adjust to per-thread
234 single-step breakpoints.
235 * thread.c (delete_single_step_breakpoints)
236 (thread_has_single_step_breakpoints_set)
237 (thread_has_single_step_breakpoint_here): New functions.
238 (clear_thread_inferior_resources): Also delete the thread's
239 single-step breakpoints.
240
5b834a0a
PA
2412014-10-15 Pedro Alves <palves@redhat.com>
242
243 * thread.c (delete_thread_breakpoint): New function.
244 (delete_step_resume_breakpoint)
245 (delete_exception_resume_breakpoint): Use it.
246 (delete_at_next_stop): New function.
247 (clear_thread_inferior_resources): Use delete_at_next_stop.
248
a1fd2fa5
PA
2492014-10-15 Pedro Alves <palves@redhat.com>
250
251 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
252 (breakpoint_inserted_here_p): ... here. Remove special case for
253 software single-step breakpoints.
254 (find_non_raw_software_breakpoint_inserted_here): Inline ...
255 (software_breakpoint_inserted_here_p): ... here. Remove special
256 case for software single-step breakpoints.
257 (bp_target_info_copy_insertion_state)
258 (deprecated_insert_raw_breakpoint)
259 (deprecated_remove_raw_breakpoint): Delete functions.
260 * breakpoint.h (deprecated_insert_raw_breakpoint)
261 (deprecated_remove_raw_breakpoint): Remove declarations.
262
7c16b83e
PA
2632014-10-15 Pedro Alves <palves@redhat.com>
264
265 PR breakpoints/9649
266 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
267 Delete array globals.
268 (single_step_breakpoints): New global.
269 (breakpoint_xfer_memory): Remove special handling for single-step
270 breakpoints.
271 (update_breakpoints_after_exec): Delete bp_single_step
272 breakpoints.
273 (detach_breakpoints): Remove special handling for single-step
274 breakpoints.
275 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
276 (bpstat_stop_status): Add comment.
277 (bpstat_what, bptype_string, print_one_breakpoint_location)
278 (adjust_breakpoint_address, init_bp_location): Handle
279 bp_single_step.
280 (new_single_step_breakpoint): New function.
281 (set_momentary_breakpoint, bkpt_remove_location): Remove special
282 handling for single-step breakpoints.
283 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
284 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
285 Rewrite.
286 (detach_single_step_breakpoints, find_single_step_breakpoint):
287 Delete functions.
288 (breakpoint_has_location_inserted_here): New function.
289 (single_step_breakpoint_inserted_here_p): Rewrite.
290 * breakpoint.h: Remove FIXME.
291 (enum bptype) <bp_single_step>: New enum value.
292 (insert_single_step_breakpoint): Update comment.
293 * infrun.c (resume_cleanups)
294 (delete_step_thread_step_resume_breakpoint): Remove single-step
295 breakpoints.
296 (fetch_inferior_event): Install a cleanup that removes infrun
297 breakpoints.
298 (switch_back_to_stepped_thread) <expect thread advanced also>:
299 Clear step-over info.
300
0cbcdb96
PA
3012014-10-15 Pedro Alves <palves@redhat.com>
302
303 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
304 (delete_thread_infrun_breakpoints): New function, with parts
305 salvaged from delete_step_resume_breakpoint_callback.
306 (delete_step_thread_step_resume_breakpoint): Delete.
307 (for_each_just_stopped_thread_callback_func): New typedef.
308 (for_each_just_stopped_thread): New function.
309 (delete_just_stopped_threads_infrun_breakpoints): New function.
310 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
311 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
312 ... this. Adjust.
313 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
314
963f9c80
PA
3152014-10-15 Pedro Alves <palves@redhat.com>
316
317 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
318 trying to step past a non-steppable watchpoint.
319 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
320 field.
321 * infrun.c (struct step_over_info): Add new field
322 'nonsteppable_watchpoint_p' and adjust comments.
323 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
324 Adjust.
325 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
326 (stepping_past_nonsteppable_watchpoint): New function.
327 (step_over_info_valid_p): Also return true if stepping past a
328 nonsteppable watchpoint.
329 (proceed): Adjust call to set_step_over_info. Remove reference to
330 init_infwait_state.
331 (init_wait_for_inferior): Remove reference to init_infwait_state.
332 (waiton_ptid): Delete global.
333 (struct execution_control_state)
334 <stepped_after_stopped_by_watchpoint>: Delete field.
335 (wait_for_inferior, fetch_inferior_event): Always pass
336 minus_one_ptid to target_wait.
337 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
338 field.
339 (init_infwait_state): Delete function.
340 (handle_inferior_event): Remove infwait_state handling.
341 (handle_signal_stop) <watchpoints handling>: Adjust after
342 stepped_after_stopped_by_watchpoint removal. Don't remove
343 breakpoints here nor set infwait_state. Set the thread's
344 stepping_over_watchpoint flag, and call keep_going instead.
345 (keep_going): Handle stepping_over_watchpoint. Adjust
346 set_step_over_info calls.
347 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
348 function.
349
6cc83d2a
PA
3502014-10-15 Pedro Alves <palves@redhat.com>
351
352 * infrun.c (step_over_info_valid_p): New function.
353 (resume): Use step_over_info_valid_p instead of checking the
354 threads's trap_expected flag.
355
6979730b
DE
3562014-10-15 Doug Evans <dje@google.com>
357 Walfred Tedeschi <walfred.tedeschi@intel.com>
358
359 PR python/17364
360 * python/lib/gdb/__init__.py (packages): Add "printer".
361 * python/lib/gdb/command/bound_registers.py: Moved to ...
362 * python/lib/gdb/printer/bound_registers.py: ... here.
363 Add printer to global set of builtin printers. Rename printer from
364 "bound" to "mpx_bound128".
365 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
366 registered as global "builtin" printer.
367 (add_builtin_pretty_printer): New function.
368 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
369 gdb/printer/__init__.py.
370
35a49624
IB
3712014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
372
373 * Makefile.in (SFILES): Remove d-support.c.
374 (COMMON_OBS): Remove d-support.o.
375 * d-lang.h (d_parse_symbol): Remove declaration.
376 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
377 * d-support.c: Remove file.
378
8fa0c4f8
AA
3792014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
380
381 * gdb/infrun.c (process_event_stop_test): Apply
382 gdbarch_addr_bits_remove to longjmp resume address.
383
3666da81
PA
3842014-10-15 Pedro Alves <palves@redhat.com>
385
386 * regformats/microblaze.dat: Delete file.
387
449aa9df
AKA
3882014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
389
390 * features/Makefile (microblaze-expedite): Replace pc with rpc.
391 * regformats/microblaze-with-stack-protect.dat: Regenerate.
392
ebb8ece2
SC
3932014-10-15 Siva Chandra Reddy <sivachandra@google.com>
394
395 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
396 as non-trivial.
397
82c48ac7
SC
3982014-10-15 Siva Chandra Reddy <sivachandra@google.com>
399
400 PR c++/13403
401 PR c++/15154
402 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
403 with qualified args.
404
c40cc657
JB
4052014-10-14 Joel Brobecker <brobecker@adacore.com>
406
407 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
408 of the case where the second operand is a pointer.
409 <BINOP_SUB>: Likewise.
410
0ea5cda8
SDJ
4112014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
412
413 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
414 only if it is not NULL.
415 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
416 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
417 (struct probe_ops) <clear_semaphore>: Likewise.
418 * tracepoint.c (start_tracing): Call set_semaphore only if it is
419 not NULL.
420 (stop_tracing): Likewise, for clear_semaphore.
421
f7088df3
SDJ
4222014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
423
424 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
425 using language_c, instead of current_language.
426
4e1bbde0
DE
4272014-10-13 Doug Evans <dje@google.com>
428
6ff5a0f6 429 * python/py-objfile.c (objfpy_initialize): New function.
4e1bbde0 430 (objfpy_new, objfile_to_objfile_object): Call it.
6ff5a0f6 431 * python/py-progspace.c (pspy_initialize): New function.
4e1bbde0
DE
432 (pspy_new, pspace_to_pspace_object): Call it.
433
c780cc2f
JK
4342014-10-13 Miroslav Franc <mfranc@redhat.com>
435 Jan Kratochvil <jan.kratochvil@redhat.com>
436
437 Fix "save breakpoints" for "catch" command.
438 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
439 newline.
440
99894e11
JK
4412014-10-12 Miroslav Franc <mfranc@redhat.com>
442
443 Fix "save breakpoints" for "disable $bpnum" command.
444 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
445
3831839c
PA
4462014-10-10 Pedro Alves <palves@redhat.com>
447
448 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
449 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
450 (HFILES_NO_SRCDIR): Remove solib-irix.h.
451 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
452 and been removed.
453 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
454 * configure.ac: Remove references to IRIX.
455 * configure.host: Add *-*-irix* to the obsolete hosts section.
456 Remove all other references to irix.
457 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
458 Delete files.
459
cc3afae2
AKA
4602014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
461
462 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
463 isn't valid, release the tdesc arch data and return NULL.
464
cdfa0b0a
PA
4652014-10-10 Pedro Alves <palves@redhat.com>
466
467 * linux-tdep.c: Include observer.h.
468 (linux_inferior_data): New global.
469 (struct linux_info): New structure.
470 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
471 (get_linux_inferior_data): New functions.
472 (linux_vsyscall_range): Rename to ...
473 (linux_vsyscall_range_raw): ... this.
474 (linux_vsyscall_range): New function; handles caching.
475 (_initialize_linux_tdep): Register linux_inferior_data. Install
476 inferior_exit and inferior_appeared observers.
477
8b9a549d
PA
4782014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
479 Pedro Alves <palves@redhat.com>
480
481 PR symtab/14466
482 * solib-svr4.c (svr4_read_so_list): Rename to ...
483 (svr4_current_sos_1): ... this and change the function comment.
484 (svr4_current_sos): New function.
485
3437254d
PA
4862014-10-10 Pedro Alves <palves@redhat.com>
487
488 * arch-utils.c (default_vsyscall_range): New function.
489 * arch-utils.h (default_vsyscall_range): New declaration.
490 * gdbarch.sh (vsyscall_range): New hook.
491 * gdbarch.h, gdbarch.c: Regenerate.
492 * linux-tdep.c (linux_vsyscall_range): New function.
493 (linux_init_abi): Install linux_vsyscall_range as
494 vsyscall_range gdbarch hook.
495 * memrange.c (address_in_mem_range): New function.
496 * memrange.h (address_in_mem_range): New declaration.
497 * symfile-mem.c (find_vdso_size): Delete function.
498 (add_vsyscall_page): Use gdbarch_vsyscall_range.
499
31cc0b80
PA
5002014-10-10 Pedro Alves <palves@redhat.com>
501
502 * infrun.c (normal_stop): Fix typo in comment.
503
3e3286a2
SDJ
5042014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
505
506 PR tdep/9390
507 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
508 typo when using logical AND to determine instruction type.
509
fcbdedf8
YQ
5102014-10-09 Yao Qi <yao@codesourcery.com>
511
512 * infrun.c (handle_signal_stop): Remove local variable
513 'printed'.
514
db984616
SS
5152014-10-08 Stan Shebs <stan@codesourcery.com>
516
517 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
518
3ba37e6c
GB
5192014-10-08 Gary Benson <gbenson@redhat.com>
520
521 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
522
a442d071
GB
5232014-10-08 Gary Benson <gbenson@redhat.com>
524
525 * common/common-defs.h: Include common-exceptions.h.
526 * exceptions.h: Do not include common-exceptions.h.
527
6f1947e8
GB
5282014-10-08 Gary Benson <gbenson@redhat.com>
529
530 * common/common-defs.h: Include cleanups.h.
531 * common/common-exceptions.c: Do not include cleanups.h.
532 * utils.h: Likewise.
533
c765fdb9
GB
5342014-10-08 Gary Benson <gbenson@redhat.com>
535
536 * ada-lang.c: Do not include exceptions.h.
537 * ada-valprint.c: Likewise.
538 * amd64-tdep.c: Likewise.
539 * auto-load.c: Likewise.
540 * block.c: Likewise.
541 * break-catch-throw.c: Likewise.
542 * breakpoint.c: Likewise.
543 * btrace.c: Likewise.
544 * c-lang.c: Likewise.
545 * cli/cli-cmds.c: Likewise.
546 * cli/cli-interp.c: Likewise.
547 * cli/cli-script.c: Likewise.
548 * completer.c: Likewise.
549 * corefile.c: Likewise.
550 * corelow.c: Likewise.
551 * cp-abi.c: Likewise.
552 * cp-support.c: Likewise.
553 * cp-valprint.c: Likewise.
554 * darwin-nat.c: Likewise.
555 * dwarf2-frame-tailcall.c: Likewise.
556 * dwarf2-frame.c: Likewise.
557 * dwarf2loc.c: Likewise.
558 * dwarf2read.c: Likewise.
559 * eval.c: Likewise.
560 * event-loop.c: Likewise.
561 * event-top.c: Likewise.
562 * f-valprint.c: Likewise.
563 * frame-unwind.c: Likewise.
564 * frame.c: Likewise.
565 * gdbtypes.c: Likewise.
566 * gnu-v2-abi.c: Likewise.
567 * gnu-v3-abi.c: Likewise.
568 * guile/scm-auto-load.c: Likewise.
569 * guile/scm-breakpoint.c: Likewise.
570 * guile/scm-cmd.c: Likewise.
571 * guile/scm-frame.c: Likewise.
572 * guile/scm-lazy-string.c: Likewise.
573 * guile/scm-param.c: Likewise.
574 * guile/scm-symbol.c: Likewise.
575 * guile/scm-type.c: Likewise.
576 * hppa-hpux-tdep.c: Likewise.
577 * i386-tdep.c: Likewise.
578 * inf-loop.c: Likewise.
579 * infcall.c: Likewise.
580 * infcmd.c: Likewise.
581 * infrun.c: Likewise.
582 * interps.c: Likewise.
583 * interps.h: Likewise.
584 * jit.c: Likewise.
585 * linespec.c: Likewise.
586 * linux-nat.c: Likewise.
587 * linux-thread-db.c: Likewise.
588 * m32r-rom.c: Likewise.
589 * main.c: Likewise.
590 * memory-map.c: Likewise.
591 * mi/mi-cmd-break.c: Likewise.
592 * mi/mi-cmd-stack.c: Likewise.
593 * mi/mi-interp.c: Likewise.
594 * mi/mi-main.c: Likewise.
595 * monitor.c: Likewise.
596 * nto-procfs.c: Likewise.
597 * objc-lang.c: Likewise.
598 * p-valprint.c: Likewise.
599 * parse.c: Likewise.
600 * ppc-linux-tdep.c: Likewise.
601 * printcmd.c: Likewise.
602 * probe.c: Likewise.
603 * python/py-auto-load.c: Likewise.
604 * python/py-breakpoint.c: Likewise.
605 * python/py-cmd.c: Likewise.
606 * python/py-finishbreakpoint.c: Likewise.
607 * python/py-frame.c: Likewise.
608 * python/py-framefilter.c: Likewise.
609 * python/py-function.c: Likewise.
610 * python/py-gdb-readline.c: Likewise.
611 * python/py-inferior.c: Likewise.
612 * python/py-infthread.c: Likewise.
613 * python/py-lazy-string.c: Likewise.
614 * python/py-linetable.c: Likewise.
615 * python/py-param.c: Likewise.
616 * python/py-prettyprint.c: Likewise.
617 * python/py-symbol.c: Likewise.
618 * python/py-type.c: Likewise.
619 * python/py-value.c: Likewise.
620 * python/python-internal.h: Likewise.
621 * python/python.c: Likewise.
622 * record-btrace.c: Likewise.
623 * record-full.c: Likewise.
624 * regcache.c: Likewise.
625 * remote-fileio.c: Likewise.
626 * remote-mips.c: Likewise.
627 * remote.c: Likewise.
628 * rs6000-aix-tdep.c: Likewise.
629 * rs6000-nat.c: Likewise.
630 * skip.c: Likewise.
631 * solib-darwin.c: Likewise.
632 * solib-dsbt.c: Likewise.
633 * solib-frv.c: Likewise.
634 * solib-ia64-hpux.c: Likewise.
635 * solib-spu.c: Likewise.
636 * solib-svr4.c: Likewise.
637 * solib.c: Likewise.
638 * spu-tdep.c: Likewise.
639 * stack.c: Likewise.
640 * stap-probe.c: Likewise.
641 * symfile-mem.c: Likewise.
642 * symmisc.c: Likewise.
643 * target.c: Likewise.
644 * thread.c: Likewise.
645 * top.c: Likewise.
646 * tracepoint.c: Likewise.
647 * tui/tui-interp.c: Likewise.
648 * typeprint.c: Likewise.
649 * utils.c: Likewise.
650 * valarith.c: Likewise.
651 * valops.c: Likewise.
652 * valprint.c: Likewise.
653 * value.c: Likewise.
654 * varobj.c: Likewise.
655 * windows-nat.c: Likewise.
656 * xml-support.c: Likewise.
657
484933d1
MR
6582014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
659
660 * mips-tdep.c (add_offset_16): Rewrite to implement what the
661 name implies.
662 (extended_mips16_next_pc): Update accordingly.
663
ab50adb6
MR
6642014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
665
666 * mips-tdep.c (mips16_instruction_is_compact_branch): New
667 function.
668 (micromips_instruction_is_compact_branch): Likewise.
669 (mips16_scan_prologue): Terminate scanning upon seeing a branch
670 or a compact jump, reaching a jump delay slot, or seeing a
671 second non-prologue instruction.
672 (micromips_scan_prologue): Also terminate scanning upon seeing a
673 compact branch or jump, or reaching a branch or jump delay slot.
674 (mips32_scan_prologue): Terminate scanning upon reaching a branch
675 or jump delay slot, or seeing a second non-prologue instruction.
676 (mips32_instruction_has_delay_slot): Retain instruction
677 examination code only, update arguments accordingly and move
678 instruction fetch pieces to...
679 (mips32_insn_at_pc_has_delay_slot): ... this new function.
680 (micromips_instruction_has_delay_slot): Likewise and to...
681 (micromips_insn_at_pc_has_delay_slot): ... this new function.
682 (mips16_instruction_has_delay_slot): Likewise and to...
683 (mips16_insn_at_pc_has_delay_slot): ... this new function.
684 (mips_single_step_through_delay): Update accordingly.
685 (mips_adjust_breakpoint_address): Likewise.
686
ae790652
MR
6872014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
688
689 * mips-tdep.c (micromips_instruction_has_delay_slot): When
690 !mustbe32 also return 1 for 32-bit instructions.
691 (mips16_instruction_has_delay_slot): Likewise. Add an
692 explanatory comment.
693
9b807e7b
MR
6942014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
695
696 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
697 symbols special.
698
0d5ed153
MR
6992014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
700
701 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
702 update comments.
703 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
704 for the breakpoint's address. Don't preinitialize `placed_size'.
705 (insert_bp_location): Set `reqstd_address' rather than
706 `placed_address'.
707 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
708 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
709 address.
710 (bkpt_remove_location): Likewise.
711 (deprecated_insert_raw_breakpoint): Likewise.
712 (deprecated_remove_raw_breakpoint): Likewise.
713 (find_single_step_breakpoint): Likewise.
714 * mem-break.c (default_memory_insert_breakpoint): Use
715 `reqstd_address' for the breakpoint's address. Don't set
716 `placed_address' or `placed_size' if breakpoint contents couldn't
717 have been determined.
718 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
719 the breakpoint's address.
720 (remote_insert_hw_breakpoint): Likewise. Don't set
721 `placed_address' or `placed_size' if breakpoint couldn't have been
722 set.
723 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
724 `reqstd_address' for the breakpoint's address.
725 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
726 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
727 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
728 * microblaze-linux-tdep.c
729 (microblaze_linux_memory_remove_breakpoint): Likewise.
730 * monitor.c (monitor_insert_breakpoint): Likewise.
731 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
732 (procfs_insert_hw_breakpoint): Likewise.
733 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
734 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
735 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
736 * remote-mips.c (mips_insert_breakpoint): Likewise.
737 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
738
3e871532
LM
7392014-10-03 Luis Machado <lgustavo@codesourcery.com>
740
741 * valops.c (value_assign): Check for bit field assignments
742 before calling architecture-specific register value
743 conversion functions.
744
ec48dc8b
PM
7452014-10-03 Pierre Muller <muller@sourceware.org>
746
747 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
748
b57bacec
PA
7492014-10-02 Pedro Alves <palves@redhat.com>
750
751 * breakpoint.c (breakpoints_should_be_inserted_now): Use
752 threads_are_executing.
753 * breakpoint.h (breakpoints_should_be_inserted_now): Add
754 describing comment.
755 * gdbthread.h (threads_are_executing): Declare.
756 (handle_signal_stop) <random signals>: Don't print about the
757 signal here if stopping.
758 (end_stepping_range): Don't notify observers here.
759 (normal_stop): Update the thread list. If stopped by a random
760 signal or a stepping range ended, notify observers.
761 * thread.c (threads_executing): New global.
762 (init_thread_list): Clear 'threads_executing'.
763 (set_executing): Set or clear 'threads_executing'.
764 (threads_are_executing): New function.
765 (update_threads_executing): New function.
766 (update_thread_list): Use it.
767
13fd3ff3
PA
7682014-10-02 Pedro Alves <palves@redhat.com>
769
770 PR breakpoints/17431
771 * breakpoint.c (update_breakpoints_after_exec): Don't create
772 overlay, longjmp, std terminate nor exception breakpoints here.
773
32990ada
PA
7742014-10-02 Pedro Alves <palves@redhat.com>
775
776 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
777 Adjust comments.
778 * inferior.c (find_inferior_for_program_space): Give preference to
779 the current inferior.
780 * inferior.h (find_inferior_for_program_space): Update comment.
781 * progspace.c (switch_to_program_space_and_thread): Prefer the
782 current inferior if it's bound to the program space requested. If
783 the inferior found doesn't have a PID yet, don't bother looking up
784 a thread.
785 * progspace.h (switch_to_program_space_and_thread): Adjust
786 comment.
787 * thread.c (any_thread_of_process, any_live_thread_of_process):
788 Give preference to the current thread.
789
0fec99e8
PA
7902014-10-01 Pedro Alves <palves@redhat.com>
791
792 * breakpoint.c (insert_bp_location): Error out if inserting a
793 software breakpoint at a read-only address.
794 * target.c (memory_xfer_check_region): New function, factored out
795 from ...
796 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
797 ULONGEST.
798 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
799 against the memory region attributes.
800
2ddf4301
SM
8012014-10-01 Simon Marchi <simon.marchi@ericsson.com>
802
803 * NEWS: Announce new exit-code field in -list-thread-groups
804 output.
805 * inferior.c (exit_inferior_1): Don't clear exit code.
806 (inferior_appeared): Clear exit code.
807 * mi/mi-main.c (print_one_inferior): Add printing of the exit
808 code.
809
5fdeec1d
PA
8102014-10-01 Pedro Alves <palves@redhat.com>
811
812 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
813 GENERATED" along with emacs/vi read-only markers.
814 * regformats/aarch64.dat: Regenerate.
815 * regformats/arm-with-iwmmxt.dat: Regenerate.
816 * regformats/arm-with-neon.dat: Regenerate.
817 * regformats/arm-with-vfpv2.dat: Regenerate.
818 * regformats/arm-with-vfpv3.dat: Regenerate.
819 * regformats/i386/amd64-avx-linux.dat: Regenerate.
820 * regformats/i386/amd64-avx.dat: Regenerate.
821 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
822 * regformats/i386/amd64-avx512.dat: Regenerate.
823 * regformats/i386/amd64-linux.dat: Regenerate.
824 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
825 * regformats/i386/amd64-mpx.dat: Regenerate.
826 * regformats/i386/amd64.dat: Regenerate.
827 * regformats/i386/i386-avx-linux.dat: Regenerate.
828 * regformats/i386/i386-avx.dat: Regenerate.
829 * regformats/i386/i386-avx512-linux.dat: Regenerate.
830 * regformats/i386/i386-avx512.dat: Regenerate.
831 * regformats/i386/i386-linux.dat: Regenerate.
832 * regformats/i386/i386-mmx-linux.dat: Regenerate.
833 * regformats/i386/i386-mmx.dat: Regenerate.
834 * regformats/i386/i386-mpx-linux.dat: Regenerate.
835 * regformats/i386/i386-mpx.dat: Regenerate.
836 * regformats/i386/i386.dat: Regenerate.
837 * regformats/i386/x32-avx-linux.dat: Regenerate.
838 * regformats/i386/x32-avx.dat: Regenerate.
839 * regformats/i386/x32-avx512-linux.dat: Regenerate.
840 * regformats/i386/x32-avx512.dat: Regenerate.
841 * regformats/i386/x32-linux.dat: Regenerate.
842 * regformats/i386/x32.dat: Regenerate.
843 * regformats/microblaze-with-stack-protect.dat: Regenerate.
844 * regformats/mips-dsp-linux.dat: Regenerate.
845 * regformats/mips-linux.dat: Regenerate.
846 * regformats/mips64-dsp-linux.dat: Regenerate.
847 * regformats/mips64-linux.dat: Regenerate.
848 * regformats/nios2-linux.dat: Regenerate.
849 * regformats/rs6000/powerpc-32.dat: Regenerate.
850 * regformats/rs6000/powerpc-32l.dat: Regenerate.
851 * regformats/rs6000/powerpc-64l.dat: Regenerate.
852 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
853 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
854 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
855 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
856 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
857 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
858 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
859 * regformats/s390-linux32.dat: Regenerate.
860 * regformats/s390-linux32v1.dat: Regenerate.
861 * regformats/s390-linux32v2.dat: Regenerate.
862 * regformats/s390-linux64.dat: Regenerate.
863 * regformats/s390-linux64v1.dat: Regenerate.
864 * regformats/s390-linux64v2.dat: Regenerate.
865 * regformats/s390-te-linux64.dat: Regenerate.
866 * regformats/s390x-linux64.dat: Regenerate.
867 * regformats/s390x-linux64v1.dat: Regenerate.
868 * regformats/s390x-linux64v2.dat: Regenerate.
869 * regformats/s390x-te-linux64.dat: Regenerate.
870 * regformats/tic6x-c62x-linux.dat: Regenerate.
871 * regformats/tic6x-c62x.dat: Regenerate.
872 * regformats/tic6x-c64x-linux.dat: Regenerate.
873 * regformats/tic6x-c64x.dat: Regenerate.
874 * regformats/tic6x-c64xp-linux.dat: Regenerate.
875 * regformats/tic6x-c64xp.dat: Regenerate.
876
db74e4ba
PA
8772014-10-01 Pedro Alves <palves@redhat.com>
878
879 * features/Makefile: Update comments.
880 (XMLTOC): List all xml files we build C files from.
881 (clean-cfiles): New rule.
882
d63f2f84
PA
8832014-10-01 Pedro Alves <palves@redhat.com>
884
885 * features/i386/amd64-avx512-linux.c: Regenerate.
886 * features/i386/amd64-avx512.c: Regenerate.
887 * features/i386/x32-avx512-linux.c: Regenerate.
888 * features/i386/x32-avx512.c: Regenerate.
889
20ad026d
PA
8902014-10-01 Pedro Alves <palves@redhat.com>
891
892 * features/Makefile (WHICH): Remove arm-with-m,
893 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
894
acc9fe45
PA
8952014-10-01 Pedro Alves <palves@redhat.com>
896
897 * features/Makefile (clean): New rule.
898
e001e535
PA
8992014-10-01 Pedro Alves <palves@redhat.com>
900
901 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
902 (zmm14h): Add missing end quotes.
903
bdc14417
PA
9042014-10-01 Pedro Alves <palves@redhat.com>
905
906 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
907 * features/aarch64.c: Regenerate.
908
d83ad864
DB
9092014-09-30 Don Breazeal <donb@codesourcery.com>
910
911 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
912 code so as to work with follow_fork_inferior.
913 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
914 (inf_ttrace_create_inferior): Remove reference to
915 inf_ttrace_vfork_ppid.
916 (inf_ttrace_attach): Ditto.
917 (inf_ttrace_detach): Ditto.
918 (inf_ttrace_kill): Use current_inferior instead of
919 inf_ttrace_vfork_ppid.
920 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
921 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
922 inferior away from the parent.
923 * infrun.c (follow_fork): Call follow_fork_inferior instead of
924 target_follow_fork.
925 (follow_fork_inferior): New function.
926 (follow_inferior_reset_breakpoints): Make function static.
927 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
928 * linux-nat.c (linux_child_follow_fork): Move target-independent
929 code to infrun.c:follow_fork_inferior.
930
29082443
AA
9312014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
932
933 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
934 * gdbarch.c: Regenerate.
935 * gdbarch.h: Likewise.
936 * corelow.c (sniff_core_bfd): Drop presence check for deleted
937 gdbarch method 'regset_from_core_section'.
938 (get_core_register_section): Remove handling for the case that
939 regset == NULL and regset_from_core_section is defined.
940 (get_core_registers): Drop check for deleted method.
941 * procfs.c (procfs_do_thread_registers): Adjust comment.
942
f968fe80
AA
9432014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
944
945 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
946 (linux_nat_make_corefile_notes): Remove.
947 (linux_target_install_ops): Do not set target method
948 'make_corefile_notes'.
949 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
950 Remove field.
951 (linux_corefile_thread_callback): Instead of args->collect, call
952 linux_collect_thread_registers.
953 (linux_make_corefile_notes): Remove 'collect' parameter. Return
954 NULL unless there is a regset iterator.
955 (linux_make_corefile_notes_1): Remove.
956 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
957 by linux_make_corefile_notes.
958 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
959
174ad59a
AA
9602014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
961
962 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
963 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
964 Remove.
965 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
966
97094034
AA
9672014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
968
969 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
970 (xtensa_iterate_over_regset_sections): New.
971 (xtensa_gdbarch_init): Adjust gdbarch initialization.
972
f73d3ce7
AA
9732014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
974
975 * vax-tdep.c (vax_regset_from_core_section): Remove.
976 (vax_iterate_over_regset_sections): New.
977 (vax_gdbarch_init): Adjust gdbarch initialization.
978
cb24567a
AA
9792014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
980
981 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
982 (tilegx_regset_from_core_section): Remove.
983 (tilegx_iterate_over_regset_sections): New.
984 (tilegx_linux_init_abi): Adjust gdbarch initialization.
985
e5139de8
AA
9862014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
987
988 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
989 (sparc_iterate_over_regset_sections): New.
990 (sparc32_gdbarch_init): Adjust gdbarch initialization.
991 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
992 targets.
993 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
994 (sparc64fbsd_init_abi): Call fbsd_init_abi.
995 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
996 target method 'make_corefile_notes'.
997
c6d41a6f
AA
9982014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
999
1000 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
1001 'sizeof_gregset' and 'sizeof_fpregset'.
1002 * sh-tdep.c (sh_regset_from_core_section): Remove.
1003 (sh_iterate_over_regset_sections): New.
1004 (sh_gdbarch_init): Adjust gdbarch initialization.
1005 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
1006 sizeof_fpregset.
1007 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
1008 'sizeof_gregset'.
1009
9845a0b5
AA
10102014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1011
1012 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
1013 (score7_linux_iterate_over_regset_sections): New.
1014 (score_gdbarch_init): Adjust gdbarch initialization.
1015
23ea9aeb
AA
10162014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1017
1018 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
1019 FreeBSD targets.
1020 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
1021 method 'make_corefile_notes'.
1022 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
1023 (ppcfbsd_regset_from_core_section): Remove.
1024 (ppcfbsd_iterate_over_regset_sections): New.
1025 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
1026 initialization.
1027 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
1028 (ppcnbsd_iterate_over_regset_sections): New.
1029 (ppcnbsd_init_abi): Adjust.
1030 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
1031 (ppcobsd_iterate_over_regset_sections): New.
1032 (ppcobsd_init_abi): Adjust.
1033 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
1034 (rs6000_aix_iterate_over_regset_sections): New.
1035 (rs6000_aix_init_osabi): Adjust.
1036
c5b8d704
AA
10372014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1038
1039 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
1040 (nios2_regset_from_core_section): Remove.
1041 (nios2_iterate_over_regset_sections): New.
1042 (nios2_linux_init_abi): Adjust gdbarch initialization.
1043
3636e608
AA
10442014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1045
1046 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
1047 (am33_iterate_over_regset_sections): New.
1048 (am33_linux_init_osabi): Adjust gdbarch initialization.
1049
d4036235
AA
10502014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1051
1052 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
1053 (mips_linux_iterate_over_regset_sections): New.
1054 (mips_linux_init_abi): Adjust gdbarch initialization.
1055 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
1056 (mips64obsd_iterate_over_regset_sections): New.
1057 (mips64obsd_init_abi): Adjust.
1058 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
1059 (mipsnbsd_iterate_over_regset_sections): New.
1060 (mipsnbsd_init_abi): Adjust.
1061
b61ddd6e
AA
10622014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1063
1064 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
1065 (m88k_iterate_over_regset_sections): New.
1066 (m88k_gdbarch_init): Adjust gdbarch initialization.
1067
55a2906a
AA
10682014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1069
1070 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
1071 (ia64_linux_iterate_over_regset_sections): New.
1072 (ia64_linux_init_abi): Adjust gdbarch initialization.
1073
022c98ab
AA
10742014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1075
1076 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
1077 (m68kbsd_iterate_over_regset_sections): New.
1078 (m68kbsd_init_abi): Adjust gdbarch initialization.
1079 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
1080 (m68k_linux_iterate_over_regset_sections): New.
1081 (m68k_linux_init_abi): Adjust gdbarch initialization.
1082
5fac247f
AA
10832014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1084
1085 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
1086 (m32r_linux_regset_from_core_section): Remove.
1087 (m32r_linux_iterate_over_regset_sections): New.
1088 (m32r_linux_init_abi): Adjust gdbarch initialization.
1089
490496c3
AA
10902014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1091
1092 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
1093 (amd64obsd_iterate_over_regset_sections): New.
1094 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
1095 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
1096 Remove.
1097 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
1098 regset_from_core_section initialization.
1099 * i386-tdep.c (i386_regset_from_core_section): Remove.
1100 (i386_iterate_over_regset_sections): New.
1101 (i386_gdbarch_init): Adjust gdbarch initialization.
1102 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
1103 (i386_iterate_over_regset_sections): New prototype.
1104 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
1105 Remove.
1106 (i386obsd_aout_iterate_over_regset_sections): New.
1107 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
1108 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
1109 targets.
1110 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
1111 (amd64fbsd_init_abi): Call fbsd_init_abi.
1112 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
1113 (i386fbsd4_init_abi): Call fbsd_init_abi.
1114 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
1115 target method 'make_corefile_notes'.
1116 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
1117
50c5eb53
AA
11182014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1119
1120 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
1121 (hppa_hpux_iterate_over_regset_sections): New.
1122 (hppa_hpux_init_abi): Adjust gdbarch initialization.
1123 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
1124 (hppa_linux_iterate_over_regset_sections): New.
1125 (hppa_linux_init_abi): Adjust.
1126 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
1127 (hppanbsd_iterate_over_regset_sections): New.
1128 (hppanbsd_init_abi): Adjust.
1129 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
1130 (hppaobsd_iterate_over_regset_sections): New.
1131 (hppaobsd_init_abi): Adjust.
1132
66afae4f
AA
11332014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1134
1135 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
1136 (frv_linux_iterate_over_regset_sections): New.
1137 (frv_linux_init_abi): Adjust gdbarch initialization.
1138
ed09174e
AA
11392014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1140
1141 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
1142 (armbsd_iterate_over_regset_sections): New prototype.
1143 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
1144 (armbsd_iterate_over_regset_sections): New.
1145 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
1146 initialization.
1147
dff2166e
AA
11482014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1149
1150 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
1151 (alpha_linux_iterate_over_regset_sections): New.
1152 (alpha_linux_init_abi): Adjust gdbarch initialization.
1153 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
1154 prototype.
1155 (alphanbsd_iterate_over_regset_sections): New prototype.
1156
4108500a
AA
11572014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1158
1159 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
1160 Remove.
1161 (aarch64_linux_iterate_over_regset_sections): New.
1162 (aarch64_linux_init_abi): Adjust gdbarch initialization.
1163
a904c024
AA
11642014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1165
1166 * fbsd-tdep.c: New file.
1167 * fbsd-tdep.h: New file.
1168 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
1169 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
1170 (ALLDEPFILES): Add fbsd-tdep.c.
1171
8f0435f7
AA
11722014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1173
1174 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
1175 parameter.
1176 * gdbarch.h: Regenerate.
1177 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
1178 iterator.
1179 (get_core_register_section): Add parameter 'regset' and use it, if
1180 set. Add parameter 'min_size' and verify the bfd section size
1181 against it.
1182 (get_core_registers_cb): Add parameter 'regset' and pass it to
1183 get_core_register section. For the "standard" register sections
1184 ".reg" and ".reg2", set an appropriate default for human_name.
1185 (get_core_registers): Don't abort when the gdbarch has an iterator
1186 but no regset_from_core_section. Add NULL/0 for parameters
1187 'regset'/'min_size' in calls to get_core_register_section.
1188 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
1189 'regset' and use it instead of calling the
1190 regset_from_core_section gdbarch method.
1191 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
1192 * i386-tdep.c (i386_supply_xstateregset)
1193 (i386_collect_xstateregset, i386_xstateregset): Moved to
1194 i386-linux-tdep.c.
1195 (i386_regset_from_core_section): Drop handling for .reg-xfp and
1196 .reg-xstate.
1197 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
1198 core file support only if the regset iterator hasn't been set.
1199 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
1200 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
1201 Moved from i386-tdep.c and renamed to *_linux*.
1202 (i386_linux_iterate_over_regset_sections): Add regset parameter to
1203 each callback invocation. Allow any .reg-xstate size when reading
1204 from a core file.
1205 * amd64-tdep.c (amd64_supply_xstateregset)
1206 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
1207 amd64-linux-tdep.c.
1208 (amd64_regset_from_core_section): Remove.
1209 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
1210 install an amd64-specific regset_from_core_section gdbarch method.
1211 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
1212 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
1213 Moved from amd64-tdep.c and renamed to *_linux*.
1214 (amd64_linux_iterate_over_regset_sections): Add regset parameter
1215 to each callback invocation. Allow any .reg-xstate size when
1216 reading from a core file.
1217 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
1218 (arm_linux_iterate_over_regset_sections): Add regset parameter to
1219 each callback invocation.
1220 (arm_linux_init_abi): No longer set the regset_from_core_section
1221 gdbarch method.
1222 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
1223 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
1224 each callback invocation.
1225 (ppc_linux_init_abi): No longer set the regset_from_core_section
1226 gdbarch method.
1227 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
1228 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
1229 (s390_regset_from_core_section): Remove.
1230 (s390_iterate_over_regset_sections): Add regset parameter to each
1231 callback invocation.
1232 (s390_gdbarch_init): No longer set the regset_from_core_section
1233 gdbarch method. Drop initialization of deleted tdep fields.
1234
5aa82d05
AA
12352014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1236
1237 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
1238 (amd64_linux_iterate_over_regset_sections): New.
1239 (amd64_linux_init_abi_common): Don't install the regset section
1240 list, but the new iterator in gdbarch.
1241 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
1242 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
1243 (arm_linux_iterate_over_regset_sections): ...here. New function.
1244 (arm_linux_init_abi): Set iterator instead of section list.
1245 * corelow.c (get_core_registers_cb): New function, logic moved
1246 from...
1247 (get_core_registers): ...loop body here. Use new iterator method
1248 instead of walking through the regset section list.
1249 * gdbarch.sh: Remove 'core_regset_sections'. New method
1250 'iterate_over_regset_sections'. New typedef
1251 'iterate_over_regset_sections_cb'.
1252 * gdbarch.c: Regenerate.
1253 * gdbarch.h: Likewise.
1254 * i386-linux-tdep.c (i386_linux_regset_sections)
1255 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
1256 Remove.
1257 (i386_linux_iterate_over_regset_sections): New.
1258 (i386_linux_init_abi): Don't choose a regset section list, but
1259 install new iterator in gdbarch.
1260 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
1261 (linux_collect_regset_section_cb): New function, logic moved
1262 from...
1263 (linux_collect_thread_registers): ...loop body here. Use iterator
1264 method instead of walking through list.
1265 (linux_make_corefile_notes_1): Check for presence of iterator
1266 method instead of regset section list.
1267 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
1268 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
1269 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
1270 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
1271 (ppc_linux_iterate_over_regset_sections): ...here. New function.
1272 (ppc_linux_init_abi): Don't choose from above regset section
1273 lists, but install new iterator in gdbarch.
1274 * regset.h (struct core_regset_section): Remove.
1275 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
1276 have_linux_v1, have_linux_v2, and have_tdb.
1277 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
1278 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
1279 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
1280 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
1281 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
1282 (s390_iterate_over_regset_sections): ...here. New function. Use
1283 new tdep fields.
1284 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
1285 regset section lists, but install new iterator.
1286
2eca4a8d
JK
12872014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1288
1289 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
1290
a73c2b56
SM
12912014-09-26 Simon Marchi <simon.marchi@ericsson.com>
1292
1293 * progspace.c (print_program_space): Don't prune program spaces
1294 before printing them.
1295
03d46957
PA
12962014-09-25 Pedro Alves <palves@redhat.com>
1297
1298 * infrun.c (user_visible_resume_ptid): Don't check
1299 singlestep_breakpoints_inserted_p.
1300
e558d7c1
PA
13012014-09-25 Pedro Alves <palves@redhat.com>
1302
1303 * breakpoint.c (should_be_inserted): Add debug output.
1304
7f89fd65
PA
13052014-09-25 Pedro Alves <palves@redhat.com>
1306
1307 * infrun.c (stepping_past_instruction_at)
1308 (clear_exit_convenience_vars): Point at infrun.h instead of
1309 inferior.h.
1310 (handle_signal_stop): Fix typo.
1311
b7576e5c
YQ
13122014-09-24 Yao Qi <yao@codesourcery.com>
1313
1314 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
1315 bitmask.
1316
9a6cf368
GB
13172014-09-22 Gary Benson <gbenson@redhat.com>
1318
1319 * target.c (target_stop): Updated comment.
1320
03f4463b
GB
13212014-09-22 Gary Benson <gbenson@redhat.com>
1322
1323 * target/target.h (target_stop_ptid): Renamed as...
1324 (target_stop_and_wait): New function. Updated comment.
1325 All uses updated.
1326 (target_continue_ptid): Renamed as...
1327 (target_continue_no_signal): New function. Updated comment.
1328 All uses updated.
1329
a25a5a45
PA
13302014-09-22 Pedro Alves <palves@redhat.com>
1331
1332 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
1333 and "auto" merged.
1334 * breakpoint.c (enum ugll_insert_mode): New enum.
1335 (always_inserted_mode): Now a plain boolean.
1336 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
1337 (breakpoints_always_inserted_mode): Delete.
1338 (breakpoints_should_be_inserted_now): New function.
1339 (insert_breakpoints): Pass UGLL_INSERT to
1340 update_global_location_list instead of calling
1341 insert_breakpoint_locations manually.
1342 (create_solib_event_breakpoint_1): New, factored out from ...
1343 (create_solib_event_breakpoint): ... this.
1344 (create_and_insert_solib_event_breakpoint): Use
1345 create_solib_event_breakpoint_1 instead of calling
1346 insert_breakpoint_locations manually.
1347 (update_global_location_list): Change parameter type from boolean
1348 to enum ugll_insert_mode. All callers adjusted. Adjust to use
1349 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
1350 (update_global_location_list_nothrow): Change parameter type from
1351 boolean to enum ugll_insert_mode.
1352 (_initialize_breakpoint): "breakpoint always-inserted" option is
1353 now a boolean command. Update help text.
1354 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
1355 (breakpoints_should_be_inserted_now): New declaration.
1356 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
1357 Remove breakpoints_always_inserted_mode check.
1358 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
1359 * remote.c (remote_start_remote): Likewise.
1360
04086b45
PA
13612014-09-22 Pedro Alves <palves@redhat.com>
1362
1363 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
1364 (insert_breakpoints): Don't call insert_breakpoint_locations here.
1365 Instead, pass UGLL_INSERT to update_global_location_list.
1366 (update_global_location_list): Change parameter type from boolean
1367 to enum ugll_insert_mode. All callers adjusted. Adjust to use
1368 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
1369 (create_solib_event_breakpoint_1): New, factored out from ...
1370 (create_solib_event_breakpoint): ... this.
1371 (create_and_insert_solib_event_breakpoint): Use
1372 create_solib_event_breakpoint_1 instead of calling
1373 insert_breakpoint_locations manually.
1374 (update_global_location_list): Handle UGLL_INSERT.
1375
44702360
PA
13762014-09-22 Pedro Alves <palves@redhat.com>
1377
1378 * breakpoint.c (enum ugll_insert_mode): New enum.
1379 (update_global_location_list)
1380 (update_global_location_list_nothrow): Change parameter type from
1381 boolean to enum ugll_insert_mode. All callers adjusted.
1382
93c6145a
JB
13832014-09-19 Joel Brobecker <brobecker@adacore.com>
1384
1385 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
1386 SystemTap support in GDB.
1387
89a5711c
DB
13882014-09-19 Don Breazeal <donb@codesourcery.com>
1389
1390 * linux-nat.c (linux_handle_extended_wait): Call
1391 linux_ptrace_get_extended_event.
1392 (wait_lwp): Call linux_is_extended_waitstatus.
1393 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
1394 and linux_is_extended_waitstatus.
1395 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
1396 linux_ptrace_get_extended_event.
1397 (linux_ptrace_get_extended_event): New function.
1398 (linux_is_extended_waitstatus): New function.
1399 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
1400 (linux_is_extended_waitstatus): New declarations.
1401
c3b7b696
YQ
14022014-09-19 Yao Qi <yao@codesourcery.com>
1403
1404 * dwarf2read.c (dwarf_decode_lines): Update declaration.
1405 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
1406 comments. Callers update.
1407 (dwarf_decode_lines): Likewise.
1408 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
1409 comments. Skip the line table if 'lowpc' is greater than
1410 'address'. Don't check
1411 dwarf2_per_objfile->has_section_at_zero.
1412
2b4fd423
DE
14132014-09-18 Doug Evans <dje@google.com>
1414
1415 * NEWS: Mention new "producer" attribute of gdb.Symtab.
1416 * python/py-symtab.c (stpy_get_producer): New function.
1417 (symtab_object_getset): Add "producer" attribute.
1418
5e43d467
UW
14192014-09-17 Ulrich Weigand  <uweigand@de.ibm.com>
1420
1421 PR gdb/17384
1422 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
1423 (do_captured_read_memory_integer): Remove.
1424 (safe_read_memory_integer): Use target_read_memory directly instead
1425 of catching errors in do_captured_read_memory_integer.
1426
04e79979
MR
14272014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
1428
1429 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
1430 not gdb/doc.
1431
76aeec5b
SDJ
14322014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1433
1434 * objc-lang.c (find_implementation_from_class): Remove dead code.
1435
2f693f9d
SDJ
14362014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1437
1438 PR cli/7233
1439 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
1440 "fprintf_unfiltered (gdb_stdlog...)".
1441
bb9d5f81
PP
14422014-09-16 Patrick Palka <patrick@parcs.ath.cx>
1443
1444 PR breakpoints/12526
1445 * breakpoint.h (struct watchpoint): New fields val_bitpos and
1446 val_bitsize.
1447 * breakpoint.c (watch_command_1): Use these fields to retain
1448 bitfield information.
1449 (extract_bitfield_from_watchpoint_value): New function.
1450 (watchpoint_check): Use it.
1451 (update_watchpoint): Use it. Optimize the address and length of a
1452 HW watchpoint pointing to a bitfield.
1453 * value.h (unpack_value_bitfield): New prototype.
1454 * value.c (unpack_value_bitfield): Make extern.
1455
05db5edd
ST
14562014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
1457
1458 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
1459 x86-dregs.o.
1460 * gnu-nat.c (inf_threads): New function.
1461 * gnu-nat.h (inf_threads_ftype): New typedef.
1462 (inf_threads): New declaration.
1463 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
1464 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
1465 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
1466 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
1467 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
1468 (i386_gnu_dr_get_control): New functions.
1469 (reg_addr): New structure.
1470 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
1471 i386 debugging register hooks.
1472 * NEWS: Mention this.
1473
5a578da5
OJ
14742014-08-13 Omair Javaid <omair.javaid@linaro.org>
1475
1476 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
1477 vector data transfer instructions.
1478 (arm_record_coproc_data_proc): Updated.
1479
f20f80dd
OJ
14802014-08-13 Omair Javaid <omair.javaid@linaro.org>
1481
1482 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
1483 arm_record_exreg_ld_st_insn.
1484 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
1485 load/store insns.
1486
851f26ae
OJ
14872014-08-13 Omair Javaid <omair.javaid@linaro.org>
1488
1489 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
1490 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
1491 processing instructions.
1492
1e1b6563
OJ
14932014-08-13 Omair Javaid <omair.javaid@linaro.org>
1494
1495 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
1496 for advance SIMD struct ld/st insn.
1497 (thumb2_record_decode_insn_handler): Replace stub handler with
1498 thumb2_record_asimd_struct_ld_st.
1499
60cc5e93
OJ
15002014-08-13 Omair Javaid <omair.javaid@linaro.org>
1501
1502 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
1503 for asimd, vfp and coprocessor insns.
1504 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
1505 and coprocessor insns.
1506 (thumb2_record_coproc_insn): New function.
1507 (thumb2_record_decode_insn_handler): Update coprocessor insns record
1508 handlers.
1509 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
1510 opcode 110 insns.
1511
81219e53
DE
15122014-09-13 Doug Evans <xdje42@gmail.com>
1513
1514 * NEWS: Mention new "queue-signal" command.
1515 * infcmd.c (queue_signal_command): New function.
1516 (_initialize_infcmd): Add new queue-signal command.
1517
d36bf488
DE
15182014-09-13 Doug Evans <xdje42@gmail.com>
1519
1520 * linux-nat.c (wait_lwp): Add debugging printf.
1521 (linux_nat_wait_1): Ditto.
1522
f37f681c
PA
15232014-09-12 Pedro Alves <palves@redhat.com>
1524
1525 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
1526 (create_and_insert_solib_event_breakpoint): New functions.
1527 * breakpoint.h (create_and_insert_solib_event_breakpoint)
1528 (remove_solib_event_breakpoints_at_next_stop): New declarations.
1529 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
1530 (remove_dbx_link_breakpoint): Delete function.
1531 (insert_dbx_link_bpt_in_file): Use
1532 create_and_insert_solib_event_breakpoint instead of
1533 deprecated_insert_raw_breakpoint.
1534 (procfs_wait): Don't check whether we hit __dbx_link here.
1535 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
1536 here.
1537 * solib-irix.c (base_breakpoint): Delete global.
1538 (disable_break): Delete function.
1539 (enable_break): Use create_solib_event_breakpoint
1540 instead of deprecated_insert_raw_breakpoint.
1541 (irix_solib_handle_event): New function.
1542 (irix_solib_create_inferior_hook): Don't run the target or disable
1543 the mapping-complete breakpoint here.
1544 (_initialize_irix_solib): Install irix_solib_handle_event as
1545 so_ops->handle_event hook.
1546
9d9bf2df
EBM
15472014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1548 Ulrich Weigand  <uweigand@de.ibm.com>
1549
1550 PR tdep/17379
1551 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
1552 instead of read_memory_unsigned_integer.
1553
b006a80e
GB
15542014-09-12 Gary Benson <gbenson@redhat.com>
1555
1556 * nat/linux-waitpid.c: Include common-defs.h.
1557 [GDBSERVER]: Add FIXME comment.
1558 [!GDBSERVER]: Don't include defs.h or signal.h.
1559 (linux_debug) [!GDBSERVER]: Remove empty block.
1560
296b1496
GB
15612014-09-12 Gary Benson <gbenson@redhat.com>
1562
1563 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
1564 Don't include defs.h or server.h.
1565
53f81362
GB
15662014-09-12 Gary Benson <gbenson@redhat.com>
1567
1568 * nat/linux-btrace.c: Include common-defs.h.
1569 Don't include defs.h, server.h or gdbthread.h.
1570 * nat/linux-btrace.h (struct target_ops): New forward declaration.
1571
727605ca
GB
15722014-09-12 Gary Benson <gbenson@redhat.com>
1573
1574 * common/agent.c: Include common-defs.h.
1575 Don't include defs.h or server.h.
1576 * common/buffer.c: Likewise.
1577 * common/common-debug.c: Likewise.
1578 * common/common-utils.c: Likewise.
1579 * common/errors.c: Likewise.
1580 * common/filestuff.c: Likewise.
1581 * common/format.c: Likewise.
1582 * common/gdb_vecs.c: Likewise.
1583 * common/print-utils.c: Likewise.
1584 * common/ptid.c: Likewise.
1585 * common/rsp-low.c: Likewise.
1586 * common/signals.c: Likewise.
1587 * common/vec.c: Likewise.
1588 * common/xml-utils.c: Likewise.
1589 * nat/linux-osdata.c: Likewise.
1590 * nat/linux-procfs.c: Likewise.
1591 * nat/linux-ptrace.c: Likewise.
1592 * nat/mips-linux-watch.c: Likewise.
1593 * target/waitstatus.c: Likewise.
1594
361c8ade
GB
15952014-09-12 Tom Tromey <tromey@redhat.com>
1596 Gary Benson <gbenson@redhat.com>
1597
1598 * common/common-regcache.h: New file.
1599 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
1600 * regcache.h: Include common-regcache.h.
1601 (regcache_read_pc): Don't declare.
1602 * regcache.c (get_thread_regcache_for_ptid): New function.
1603 * nat/linux-btrace.c: Don't include regcache.h.
1604 Include common-regcache.h.
1605 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
1606
a01cbb49
TS
16072014-09-11 Thomas Schwinge <thomas@codesourcery.com>
1608
1609 * regcache.h (struct regset): Declare.
1610
98880d46
PA
16112014-09-11 Pedro Alves <palves@redhat.com>
1612
1613 PR gdb/17347
1614 * main.c: Include "infrun.h".
1615 (catch_command_errors, catch_command_errors_const): Wait for the
1616 foreground command to complete.
1617 * top.c (maybe_wait_sync_command_done): New function, factored out
1618 from ...
1619 (maybe_wait_sync_command_done): ... here.
1620 * top.h (maybe_wait_sync_command_done): New declaration.
1621
bd9269f7
GB
16222014-09-11 Tom Tromey <tromey@redhat.com>
1623 Gary Benson <gbenson@redhat.com>
1624
1625 * common/symbol.h: New file.
1626 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
1627 * minsyms.c (find_minimal_symbol_address): New function.
1628 * common/agent.c: Include common/symbol.h.
1629 [!GDBSERVER]: Don't include objfiles.h.
1630 (agent_look_up_symbols): Use find_minimal_symbol_address.
1631
f8c1d06b
GB
16322014-09-11 Gary Benson <gbenson@redhat.com>
1633
1634 * target/target.h (target_stop_ptid, target_continue_ptid):
1635 Declare.
1636 * target.c (target_stop_ptid, target_continue_ptid): New
1637 functions.
1638 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
1639 (agent_run_command): Always use target_stop_ptid and
1640 target_continue_ptid.
1641
721ec300
GB
16422014-09-11 Tom Tromey <tromey@redhat.com>
1643 Gary Benson <gbenson@redhat.com>
1644
1645 * target/target.h: New file.
1646 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
1647 * target.h: Include target/target.h.
1648 (target_read_memory, target_write_memory): Don't declare.
1649 * target.c (target_read_uint32): New function.
1650 * common/agent.c: Include target/target.h.
1651 [!GDBSERVER]: Don't include target.h.
1652 (helper_thread_id): Type changed to uint32_t.
1653 (agent_get_helper_thread_id): Use target_read_uint32.
1654 (agent_run_command): Always use target_read_memory and
1655 target_write_memory.
1656 (agent_capability): Type changed to uint32_t.
1657 (agent_capability_check): Use target_read_uint32.
1658
c5e92cca
GB
16592014-09-11 Gary Benson <gbenson@redhat.com>
1660
1661 * common/common-debug.h (show_debug_regs): Declare.
1662 * common/common-debug.c (show_debug_regs): Define.
1663 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
1664 all uses with show_debug_regs. Replace all uses that considered
1665 debug_hw_points as a multi-value integer with straight boolean
1666 uses.
1667 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
1668 with show_debug_regs.
1669 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
1670 all uses with show_debug_regs.
1671 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
1672 uses with show_debug_regs.
1673
eeef931a
UW
16742014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
1675
1676 * findvar.c (address_from_register): Handle targets requiring
1677 a special conversion routine even for plain pointer types.
1678
8efa9855
UW
16792014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
1680
1681 * rs6000-nat.c (exec_one_dummy_insn): Remove.
1682 (store_register): Do not call exec_one_dummy_insn.
1683
eb479039
JB
16842014-09-10 Joel Brobecker <brobecker@adacore.com>
1685
1686 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
1687 dereference it first. Use value_enclosing_type instead of
1688 value_type.
1689 (ada_array_length): Likewise.
1690
deede10c
JB
16912014-09-10 Joel Brobecker <brobecker@adacore.com>
1692
1693 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
1694 Adjust function implementation and documentation accordingly.
1695 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
1696 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
1697 Update call to ada_value_ptr_subscript.
1698
7828a5f5
JB
16992014-09-10 Joel Brobecker <brobecker@adacore.com>
1700
1701 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
1702 instead of VAL's type.
1703
35782f14
JB
17042014-09-10 Joel Brobecker <brobecker@adacore.com>
1705
1706 * amd64-linux-nat.c: Add <sys/uio.h> #include.
1707
d342a0da
DE
17082014-09-09 Doug Evans <xdje42@gmail.com>
1709
1710 PR guile/17367
1711 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
1712 last parameter to pkg-config, not first.
1713 * configure.ac: Pass --with-guile provided pkg-config path to
1714 GDB_GUILE_PROGRAM_NAMES.
1715 * configure: Regenerate.
1716
b4a3d263
GKB
17172014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
1718
1719 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
1720 Bertazi".
1721
6e466374
MR
17222014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
1723
1724 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
1725 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
1726 the list of sections determining GDB_OSABI_IRIX.
1727
a1ada89a
JH
17282014-09-09 James Hogan <james.hogan@imgtec.com>
1729
1730 * MAINTAINERS (Write After Approval): Add "James Hogan".
1731
86db008d
JH
17322014-09-09 James Hogan <james.hogan@imgtec.com>
1733
1734 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
1735
72fde3df
JB
17362014-09-09 Joel Brobecker <brobecker@adacore.com>
1737
1738 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
1739
92d8d229
DE
17402014-09-08 Doug Evans <xdje42@gmail.com>
1741
1742 PR 17247
1743 * guile.c: #include <signal.h>.
1744 (_initialize_guile): Block SIGCHLD while initializing Guile.
1745
1746 Replaces the following, which is reverted.
1747
1748 2014-07-26 Doug Evans <xdje42@gmail.com>
1749
1750 PR 17185
1751 * configure.ac: Add check for header gc/gc.h.
1752 Add check for function setenv.
1753 * configure: Regenerate.
1754 * config.in: Regenerate.
1755 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1756
d81412aa
DE
17572014-09-08 Doug Evans <xdje42@gmail.com>
1758
1759 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
1760 with named constant. Fix style of pointer comparison.
1761 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
1762
a9f116cb
GKB
17632014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
1764
1765 PR gdb/17035
1766 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
1767 decide whether we display the command on "show user".
1768 * cli/cli-script.c (show_user_1): Only verify cmdlines after
1769 printing command name.
1770 * cli/cli-decode.h (cli_user_command_p): Declare new function.
1771 * cli/cli-decode.c (cli_user_command_p): Create helper function
1772 to verify whether cmd_list_element is a user-defined command.
1773
c75bd3a2
JK
17742014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1775
1776 PR python/17355
1777 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
1778 Fix goto out of TRY_CATCH.
1779
faa42425 17802014-09-06 Doug Evans <xdje42@gmail.com>
1a52a81c 1781 Tom Tromey <tromey@redhat.com>
faa42425
DE
1782
1783 PR 15276
1784 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
1785 $_any_caller_matches.
1786 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
1787 * python/lib/gdb/function/caller_is.py: New file.
1788
0d41ba00
DE
17892014-09-06 Doug Evans <xdje42@gmail.com>
1790
1791 * infcmd.c (program_info): Fix typo.
1792
474ca4f6
SDJ
17932014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
1794
1795 PR gdb/17235
1796 * stap-probe.c (stap_parse_single_operand): Delete unused variable
1797 'number'. New variable 'has_digit'. Rewrite code to deal with
1798 subexpressions on SDT probes.
1799
ebf13736
PA
18002014-09-04 Pedro Alves <palves@redhat.com>
1801
1802 * c-exp.y (parse_number): Skip handling base-switching prefixes if
1803 the input is only one character long.
1804
eb0b0463
SDJ
18052014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
1806
1807 PR fortran/17237
1808 * f-valprint.c (f_val_print): Specify the correct print option to
1809 use when printing integer values.
1810
5ee44bfa
GB
18112014-09-04 Gary Benson <gbenson@redhat.com>
1812
1813 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
1814 Remove code to cope with LWPs wrapped as PIDs.
1815 Add assertions to ensure no wrapped LWPs are passed.
1816
4875ffdb
PA
18172014-09-04 Pedro Alves <palves@redhat.com>
1818
1819 * value.c (value_ranges_copy_adjusted): New function, factored out
1820 from ...
1821 (value_contents_copy_raw): ... here.
1822 (unpack_value_bits_as_long_1): Rename back to ...
1823 (unpack_bits_as_long): ... this. Remove 'original_value' and
1824 'result' parameters. Change return type to LONGEST.
1825 (unpack_value_bits_as_long): Delete.
1826 (unpack_value_field_as_long_1): Delete.
1827 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
1828 (unpack_value_bitfield): New function.
1829 (value_field_bitfield): Reimplement using unpack_value_bitfield.
1830 (value_fetch_lazy): Use unpack_value_bitfield.
1831 * value.h (unpack_value_bits_as_long): Delete declaration.
1832
5f3b99cf
SS
18332014-09-03 Sasha Smundak <asmundak@google.com>
1834
1835 * python/py-frame.c (frapy_read_register): New function.
1836
ac740bc7
JH
18372014-09-03 James Hogan <james.hogan@imgtec.com>
1838
1839 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
1840 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
1841
7d793aa9
SDJ
18422014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
1843
1844 PR python/16699
1845 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
1846 function.
1847 (add_cmd): Set "completer_handle_brkchars" to NULL.
1848 * cli/cli-decode.h (struct cmd_list_element)
1849 <completer_handle_brkchars>: New field.
1850 * command.h (completer_ftype_void): New typedef.
1851 (set_cmd_completer_handle_brkchars): New prototype.
1852 * completer.c (set_gdb_completion_word_break_characters): New
1853 function.
1854 (complete_line_internal): Call "completer_handle_brkchars"
1855 callback from command.
1856 * completer.h: Include "command.h".
1857 (set_gdb_completion_word_break_characters): New prototype.
1858 * python/py-cmd.c (cmdpy_completer_helper): New function.
1859 (cmdpy_completer_handle_brkchars): New function.
1860 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
1861 (cmdpy_init): Set completer_handle_brkchars to
1862 cmdpy_completer_handle_brkchars.
1863
97ea6506
GB
18642014-09-03 Gary Benson <gbenson@redhat.com>
1865
1866 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
1867 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
1868 Loop conditions changed to equivalent form.
1869 (struct x86_debug_reg_state): Updated dr_ref_count comment.
1870 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
1871 ALL_DEBUG_ADDRESS_REGISTERS.
1872
d1437815
JB
18732014-09-03 Joel Brobecker <brobecker@adacore.com>
1874
1875 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
1876 description fix.
1877
9b94fcf1
DE
18782014-09-02 Doug Evans <dje@google.com>
1879
1880 * typeprint.c (find_global_typedef): Fix comment.
1881
df7e5265
GB
18822014-09-02 Gary Benson <gbenson@redhat.com>
1883
1884 * i386-nat.h: Renamed as...
1885 * x86-nat.h: New file. All type, function and variable name
1886 prefixes changed from "i386_" to "x86_". All references updated.
1887 * i386-nat.c: Renamed as...
1888 * x86-nat.c: New file. All type, function and variable name
1889 prefixes changed from "i386_" to "x86_". All references updated.
1890 * common/i386-xstate.h: Renamed as...
1891 * common/x86-xstate.h: New file. All type, function and variable
1892 name prefixes changed from "i386_" to "x86_". All references
1893 updated.
1894 * nat/i386-cpuid.h: Renamed as...
1895 * nat/x86-cpuid.h: New file. All type, function and variable name
1896 prefixes changed from "i386_" to "x86_". All references updated.
1897 * nat/i386-gcc-cpuid.h: Renamed as...
1898 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
1899 name prefixes changed from "i386_" to "x86_". All references
1900 updated.
1901 * nat/i386-dregs.h: Renamed as...
1902 * nat/x86-dregs.h: New file. All type, function and variable name
1903 prefixes changed from "i386_" to "x86_". All references updated.
1904 * nat/i386-dregs.c: Renamed as...
1905 * nat/x86-dregs.c: New file. All type, function and variable name
1906 prefixes changed from "i386_" to "x86_". All references updated.
1907
1c3569d4
MR
19082014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
1909
1910 * varobj.c (_initialize_varobj): Move to the end of file.
1911
ff55e1b5
GB
19122014-08-29 Gary Benson <gbenson@redhat.com>
1913
1914 * common/common-exceptions.h: New file.
1915 * common/common-exceptions.c: Likewise.
1916 * Makefile.in (SFILES): Add common/common-exceptions.c.
1917 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
1918 (COMMON_OBS): Add common-exceptions.o.
1919 (common-exceptions.o): New rule.
1920 * exceptions.h (common-exceptions.h): Include.
1921 (gdb_setjmp.h): Do not include.
1922 (return_reason): Moved to common-exceptions.h.
1923 (enum return_reason): Likewise.
1924 (RETURN_MASK): Likewise.
1925 (typedef return_mask): Likewise.
1926 (enum errors): Likewise.
1927 (struct gdb_exception): Likewise.
1928 (exceptions_state_mc_init): Likewise.
1929 (exceptions_state_mc_action_iter): Likewise.
1930 (exceptions_state_mc_action_iter_1): Likewise.
1931 (TRY_CATCH): Likewise.
1932 (throw_exception): Likewise.
1933 (throw_verror): Likewise.
1934 (throw_vquit): Likewise.
1935 (throw_error): Likewise.
1936 (throw_quit): Likewise.
1937 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
1938 (enum catcher_action): Likewise.
1939 (struct catcher): Likewise.
1940 (current_catcher): Likewise.
1941 (catcher_list_size): Likewise.
1942 (exceptions_state_mc_init): Likewise.
1943 (catcher_pop): Likewise.
1944 (exceptions_state_mc): Likewise.
1945 (exceptions_state_mc_action_iter): Likewise.
1946 (exceptions_state_mc_action_iter_1): Likewise.
1947 (throw_exception): Likewise.
1948 (exception_messages): Likewise.
1949 (exception_messages_size): Likewise.
1950 (throw_it): Likewise.
1951 (throw_verror): Likewise.
1952 (throw_vquit): Likewise.
1953 (throw_error): Likewise.
1954 (throw_quit): Likewise.
1955 (prepare_to_throw_exception): New function.
1956
e9bcb658
GB
19572014-08-29 Gary Benson <gbenson@redhat.com>
1958
1959 * common/gdb_setjmp.h: New file.
1960 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
1961 * configure.ac: Move sigsetjmp check...
1962 * common/common.m4: ...here.
1963 * configure: Regenerate.
1964 * cp-support.c (SIGJMP_BUF): Delete.
1965 (SIGSETJMP): Likewise.
1966 (SIGLONGJMP): Likewise.
1967 * exceptions.h (gdb_setjmp.h): Include.
1968 (setjmp.h): Do not include.
1969 (EXCEPTIONS_SIGJMP_BUF): Delete.
1970 (EXCEPTIONS_SIGSETJMP): Likewise.
1971 (EXCEPTIONS_SIGLONGJMP): Likewise.
1972 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
1973 from gdb_setjmp.h.
1974 * exceptions.c: Likewise.
1975
e3180625
GB
19762014-08-29 Gary Benson <gbenson@redhat.com>
1977
1978 * cleanups.h: Moved to...
1979 * common/cleanups.h: New file.
1980 * cleanups.c: Moved to...
1981 * common/cleanups.c: New file. Include common-defs.h and
1982 cleanups.h. Do not include defs.h.
1983 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
1984 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
1985 (cleanups.o): New rule.
1986
e3d6ba5d
GB
19872014-08-29 Gary Benson <gbenson@redhat.com>
1988
1989 * common/errors.h (internal_warning): New declaration.
1990 (internal_vwarning): Likewise.
1991 * common/errors.c (internal_warning): New function.
1992 * utils.h (internal_warning): Don't declare.
1993 (internal_vwarning): Likewise.
1994 * utils.c (internal_warning): Removed.
1995
075c7033
GB
19962014-08-29 Gary Benson <gbenson@redhat.com>
1997
1998 * main.c (captured_main): Use warning during startup.
1999 Prefix startup warning messages with command name.
2000
91b35fd0
GB
20012014-08-29 Gary Benson <gbenson@redhat.com>
2002
2003 * main.c (captured_main): Handle usage errors with error.
2004
b1ec390e
GB
20052014-08-29 Gary Benson <gbenson@redhat.com>
2006
2007 * go32-nat.c (go32_create_inferior): Replace a fprintf/
2008 exit pair with a call to error. Wrap the message with _().
2009
fd0ef3dd
GB
20102014-08-29 Gary Benson <gbenson@redhat.com>
2011
2012 * main.c (captured_main): Replace a fprintf/exit
2013 pair with a call to error. Wrap the message with _().
2014
e0e6bcab
GB
20152014-08-29 Gary Benson <gbenson@redhat.com>
2016
2017 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
2018 pairs with calls to error. Wrap the message with _().
2019
0d2f5c07
GB
20202014-08-29 Gary Benson <gbenson@redhat.com>
2021
2022 * utils.c (vwarning): Protect calls to target_terminal_ours
2023 and wrap_here.
2024
5df43998
GB
20252014-08-29 Gary Benson <gbenson@redhat.com>
2026
2027 * exceptions.c (print_flush): Protect calls to
2028 target_terminal_ours and wrap_here.
2029
2437fd32
GB
20302014-08-29 Gary Benson <gbenson@redhat.com>
2031
2032 * utils.h (filtered_printing_initialized): New declaration.
2033 * utils.c (abort_with_message): New function.
2034 (internal_vproblem): Use abort_with_message for first level
2035 recursive internal problems, and if gdb_stderr is not set up.
2036 Protect calls to target_terminal_ours, begin_line and query.
2037
f1f58506
DE
20382014-08-28 Doug Evans <dje@google.com>
2039
2040 * symtab.c (in_prologue): Move definition to better spot.
2041 (skip_prologue_using_sal): Ditto.
2042
aab2f208
DE
20432014-08-28 Doug Evans <dje@google.com>
2044
2045 * symtab.c (find_function_start_sal): Move definition to better spot.
2046
6b65d1b6
YQ
20472014-08-28 Yao Qi <yao@codesourcery.com>
2048
2049 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
2050 found_stack_adjust in forward scan. Remove condition check
2051 on found_stack_adjust which is always true. Indent the code.
2052
a1b34d15
YQ
20532014-08-28 Yao Qi <yao@codesourcery.com>
2054
2055 * dwarf2read.c (dwarf_decode_lines): Update declaration.
2056 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
2057 (dwarf_decode_lines): Remove argument
2058 want_line_info. Remove condition check on want_line_info.
2059 Callers update.
2060
d5962de5
DE
20612014-08-27 Doug Evans <dje@google.com>
2062
2063 * dwarf2read.c (dwarf_record_line): Fix typo.
2064
9b139002
SDJ
20652014-08-27 Patrick Palka <patrick@parcs.ath.cx>
2066
2067 * target.h (struct target_ops::to_terminal_save_ours): Remove
2068 declaration.
2069 (target_terminal_save_ours): Remove macro.
2070 * target-delegates.c: Regenerate.
2071 * inf-child.c (inf_child_target): Don't set the nonexistent
2072 field to_terminal_save_ours.
2073 * inferior.h (child_terminal_save_ours): Remove declaration.
2074 * terminal.h (gdb_save_tty_state): New declaration.
2075 * inflow.c (child_terminal_save_ours): Rename to ...
2076 (gdb_save_tty_state): ... this.
2077 * tui/tui.c: Include terminal.h.
2078 (tui_enable): Use gdb_save_tty_state instead of
2079 target_terminal_save_ours.
2080 (tui_disable): Likewise.
2081
9debeba0
DE
20822014-08-25 Doug Evans <dje@google.com>
2083
2084 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
2085 Pass NULL instead of 0 for context pointer.
2086
428fc5fc
YQ
20872014-08-25 Yao Qi <yao@codesourcery.com>
2088
2089 * dwarf2read.c: Fix grammatical error.
2090
cdc07690
YQ
20912014-08-24 Yao Qi <yao@codesourcery.com>
2092
2093 * dwarf2read.c (scan_partial_symbols): Update comments.
2094 Rename argument 'need_pc' with 'set_addrmap'.
2095 (add_partial_namespace): Rename argument 'need_pc' with
2096 'set_addrmap'.
2097 (add_partial_module): Likewise.
2098 (add_partial_subprogram): Likewise. Update comments.
2099 (dwarf2_name): Fix typo.
2100
a05a36a5
DE
21012014-08-22 Doug Evans <dje@google.com>
2102
2103 PR 17276
2104 * dwarf2read.c (dwarf_record_line_p): New function.
2105 (dwarf_decode_lines_1): Ignore subsequent line number entries
2106 for the same line if any entry had a non-zero discriminator.
2107
252a6764
DE
21082014-08-22 Doug Evans <dje@google.com>
2109
2110 * buildsym.h (record_line_ftype): New typedef.
2111 (record_line): Use it.
2112 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
2113 (dwarf_decode_lines_1): Call them.
2114
510db052
YQ
21152014-08-22 Yao Qi <yao@codesourcery.com>
2116
2117 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
2118 (ctf_end): Remove code.
2119
22fd09ae
JK
21202014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2121
2122 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
2123 (linux_make_corefile_notes): call update_thread_list, protected against
2124 exceptions.
2125
656e8868
PA
21262014-08-21 Pedro Alves <palves@redhat.com>
2127
2128 * infcmd.c (attach_command): Remove comment.
2129
de589d04
WN
21302014-08-21 Bin Cheng <bin.cheng@arm.com>
2131
2132 * aarch64-linux-nat.c (dr_changed_t): Change the type from
2133 unsigned LONGEST to ULONGEST.
2134
2a31c623
PA
21352014-08-20 Pedro Alves <palves@redhat.com>
2136
2137 * Makefile.in (check-read1): New rule.
2138
d36430db
JB
21392014-08-20 Joel Brobecker <brobecker@adacore.com>
2140
2141 * value.c (value_from_contents_and_address): Strip resolved_type's
2142 typedef layers before checking its TYPE_DATA_LOCATION.
2143
000339af
PA
21442014-08-20 Pedro Alves <palves@redhat.com>
2145
2146 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
2147
5f52445b
YQ
21482014-08-20 Yao Qi <yao@codesourcery.com>
2149
2150 * amd64-tdep.c (amd64_classify): Add a blank line after the
2151 example. Move "*/" to a new line.
2152 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
2153 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
2154 * dwarf2read.c (psymtab_include_file_name): Likewise.
2155
9a0dc9e3
PA
21562014-08-19 Andrew Burgess <aburgess@broadcom.com>
2157 Pedro Alves <palves@redhat.com>
2158
2159 PR symtab/14604
2160 PR symtab/14605
2161 * ada-lang.c (coerce_unspec_val_to_type): Use
2162 value_contents_copy_raw.
2163 * ada-valprint.c (val_print_packed_array_elements): Adjust.
2164 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
2165 * cp-valprint.c (cp_print_value_fields): Let the common printing
2166 code handle optimized out values.
2167 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
2168 * d-valprint.c (dynamic_array_type): Use
2169 value_bits_any_optimized_out.
2170 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
2171 check_any_valid fields.
2172 (check_pieced_value_bits): Delete and inline ...
2173 (check_pieced_synthetic_pointer): ... here.
2174 (check_pieced_value_validity): Delete.
2175 (check_pieced_value_invalid): Delete.
2176 (pieced_value_funcs): Remove check_validity and check_any_valid
2177 fields.
2178 (read_pieced_value): Use mark_value_bits_optimized_out.
2179 (write_pieced_value): Switch to use
2180 mark_value_bytes_optimized_out.
2181 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
2182 of assuming the whole value is optimized out.
2183 * findvar.c (read_frame_register_value): Remove special handling
2184 of optimized out registers.
2185 (value_from_register): Use mark_value_bytes_optimized_out.
2186 * frame-unwind.c (frame_unwind_got_optimized): Use
2187 mark_value_bytes_optimized_out.
2188 * jv-valprint.c (java_value_print): Adjust.
2189 (java_print_value_fields): Let the common printing code handle
2190 optimized out values.
2191 * mips-tdep.c (mips_print_register): Remove special handling of
2192 optimized out registers.
2193 * opencl-lang.c (lval_func_check_validity): Delete.
2194 (lval_func_check_any_valid): Delete.
2195 (opencl_value_funcs): Remove check_validity and check_any_valid
2196 fields.
2197 * p-valprint.c (pascal_object_print_value_fields): Let the common
2198 printing code handle optimized out values.
2199 * stack.c (read_frame_arg): Remove special handling of optimized
2200 out values. Fetch both VAL and ENTRYVAL before comparing
2201 contents. Adjust to value_available_contents_eq rename.
2202 * valprint.c (valprint_check_validity)
2203 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
2204 (val_print_array_elements): Adjust.
2205 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
2206 (value_bits_any_optimized_out): New function.
2207 (value_entirely_covered_by_range_vector): New function, factored
2208 out from value_entirely_unavailable.
2209 (value_entirely_unavailable): Reimplement.
2210 (value_entirely_optimized_out): New function.
2211 (insert_into_bit_range_vector): New function, factored out from
2212 mark_value_bits_unavailable.
2213 (mark_value_bits_unavailable): Reimplement.
2214 (struct ranges_and_idx): New struct.
2215 (find_first_range_overlap_and_match): New function, factored out
2216 from value_available_contents_bits_eq.
2217 (value_available_contents_bits_eq): Rename to ...
2218 (value_contents_bits_eq): ... this. Check both unavailable
2219 contents and optimized out contents.
2220 (value_available_contents_eq): Rename to ...
2221 (value_contents_eq): ... this.
2222 (allocate_value_lazy): Remove reference to the old optimized_out
2223 boolean.
2224 (allocate_optimized_out_value): Use
2225 mark_value_bytes_optimized_out.
2226 (require_not_optimized_out): Adjust to check whether the
2227 optimized_out vec is empty.
2228 (ranges_copy_adjusted): New function, factored out from
2229 value_contents_copy_raw.
2230 (value_contents_copy_raw): Also copy the optimized out ranges.
2231 Assert the destination ranges aren't optimized out.
2232 (value_contents_copy): Update comment, remove call to
2233 require_not_optimized_out.
2234 (value_contents_equal): Adjust to check whether the optimized_out
2235 vec is empty.
2236 (set_value_optimized_out, value_optimized_out_const): Delete.
2237 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
2238 New functions.
2239 (value_entirely_optimized_out, value_bits_valid): Delete.
2240 (value_copy): Take a VEC copy of the 'optimized_out' field.
2241 (value_primitive_field): Remove special handling of optimized out.
2242 (value_fetch_lazy): Assert that lazy values have no unavailable
2243 regions. Use value_bits_any_optimized_out. Remove some special
2244 handling for optimized out values.
2245 * value.h: Add intro comment about <optimized out> and
2246 <unavailable>.
2247 (struct lval_funcs): Remove check_validity and check_any_valid
2248 fields.
2249 (set_value_optimized_out, value_optimized_out_const): Remove.
2250 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
2251 New declarations.
2252 (value_bits_any_optimized_out): New declaration.
2253 (value_bits_valid): Delete declaration.
2254 (value_available_contents_eq): Rename to ...
2255 (value_contents_eq): ... this, and extend comments.
2256
6694c411
JK
22572014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2258
2259 Fix -fsanitize=address on unreadable inferior strings.
2260 * valprint.c (val_print_string): Fix access before BUFFER.
2261
89a1c21a
SM
22622014-08-19 Simon Marchi <simon.marchi@ericsson.com>
2263
2264 * target.c (target_struct_size): Remove.
2265 (target_struct_allocsize): Remove.
2266 (DEFAULT_ALLOCSIZE): Remove.
2267 (target_ops_p): New typedef.
2268 (DEF_VEC_P (target_ops_p)): New vector type.
2269 (target_structs): Change type to VEC (target_ops_p).
2270 (add_target_with_completer): Replace "push" code by VEC_safe_push.
2271 (find_default_run_target): Rewrite for loop following changes to
2272 target_structs.
2273
cb417230
JB
22742014-08-19 Joel Brobecker <brobecker@adacore.com>
2275
2276 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
2277 Adjust code accordingly. Adjust function description comment.
2278
817e0957
YQ
22792014-08-19 Yao Qi <yao@codesourcery.com>
2280
2281 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
2282 types.
2283
2974be62
AM
22842014-08-19 Alan Modra <amodra@gmail.com>
2285
2286 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
2287 * config.in: Regenerate.
2288 * configure: Regenerate.
2289
34abf635
GB
22902014-08-19 Tom Tromey <tromey@redhat.com>
2291 Gary Benson <gbenson@redhat.com>
2292
2293 * common/common-debug.h: New file.
2294 * common/common-debug.c: Likewise.
2295 * debug.c: Likewise.
2296 * Makefile.in (SFILES): Add common/common-debug.c.
2297 (HFILES_NO_SRCDIR): Add common/common-debug.h.
2298 (COMMON_OBS): Add common-debug.o and debug.o.
2299 (common-debug.o): New rule.
2300 * common/common-defs.h: Include common-debug.h.
2301 * common/agent.c (debug_agent_printf): New function.
2302 (DEBUG_AGENT): Redefine.
2303 * nat/i386-dregs.c (debug_printf): Undefine.
2304
f6e94d78
GB
23052014-08-19 Gary Benson <gbenson@redhat.com>
2306
2307 * common/common-defs.h: Include print-utils.h.
2308 * utils.h: Do not include print-utils.h.
2309
9239eeab
GB
23102014-08-19 Tom Tromey <tromey@redhat.com>
2311 Gary Benson <gbenson@redhat.com>
2312
2313 * common/common-types.h: New file.
2314 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
2315 * common/common-defs.h: Include common-types.h.
2316 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
2317 (ULONGEST): Remove.
2318
ef87c8bb
GB
23192014-08-19 Tom Tromey <tromey@redhat.com>
2320 Gary Benson <gbenson@redhat.com>
2321
2322 * common/errors.h: New file.
2323 * common/errors.c: Likewise.
2324 * Makefile.in (SFILES): Add common/errors.c.
2325 (HFILES_NO_SRCDIR): Add common/errors.h.
2326 (COMMON_OBS): Add errors.o.
2327 (errors.o): New rule.
2328 * common/common-defs.h: Include errors.h.
2329 * utils.h (perror_with_name, error, verror, warning, vwarning):
2330 Don't declare.
2331 * common/common-utils.h: (malloc_failure, internal_error):
2332 Likewise.
2333
196a707b
GB
23342014-08-19 Gary Benson <gbenson@redhat.com>
2335
2336 * utils.c (internal_vproblem): Always print the message.
2337
ded4fc8f
DE
23382014-08-18 Doug Evans <dje@google.com>
2339
2340 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
2341
950c97d8
JB
23422014-08-18 Joel Brobecker <brobecker@adacore.com>
2343
2344 * ada-typeprint.c (type_is_full_subrange_of_target_type):
2345 Return 0 if TYPE is dynamic.
2346 (print_range): Add handling of dynamic ranges.
2347
3cdcd0ce
JB
23482014-08-18 Keven Boell <keven.boell@intel.com>
2349 Joel Brobecker <brobecker@adacore.com>
2350
2351 * gdbtypes.h (struct main_type): Add field "data_location".
2352 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
2353 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
2354 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
2355 a dynamic data location.
2356 (resolve_dynamic_type): Add DW_AT_data_location handling.
2357 (copy_recursive, copy_type): Copy the data_location information
2358 when present.
2359 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
2360 * value.c (value_from_contents_and_address): Add
2361 DW_AT_data_location handling.
2362
08412b07
JB
23632014-08-18 Keven Boell <keven.boell@intel.com>
2364 Joel Brobecker <brobecker@adacore.com>
2365
2366 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
2367 field "get_object_address".
2368 * dwarf2expr.c (execute_stack_op): Add handling for
2369 DW_OP_push_object_address.
2370 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
2371 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
2372 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
2373 (dwarf_expr_get_obj_addr): New function.
2374 (dwarf_expr_ctx_funcs): Add get_object_address field.
2375 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
2376 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
2377 (dwarf2_evaluate_property): Add parameter "address". Use it.
2378 (needs_get_obj_addr): New function.
2379 (needs_frame_ctx_funcs): Add get_object_address field.
2380 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
2381 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
2382 (resolve_dynamic_array): Likewise.
2383
84754697
JB
23842014-08-18 Joel Brobecker <brobecker@adacore.com>
2385
2386 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
2387 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
2388 fixed value for records and unions for which some GNAT encodings
2389 are present.
2390
da5c522f
JB
23912014-08-18 Joel Brobecker <brobecker@adacore.com>
2392
2393 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
2394 rewrite to avoid "else if" and "else" constructs. Should be
2395 a no-op in practice.
2396
0d72a7c3
JB
23972014-08-18 Joel Brobecker <brobecker@adacore.com>
2398
2399 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
2400 of lexical block.
2401
e66d4446
SC
24022014-08-15 Siva Chandra Reddy <sivachandra@google.com>
2403
2404 PR c++/17132
2405 * eval.c: Update all calls to find_overload_match.
2406 * valarith.c: Likewise.
2407 (value_user_defined_cpp_op, value_user_defined_op): New
2408 argument NOSIDE. Update all callers.
2409 * valops.c (find_overload_match): New argument NOSIDE.
2410 * value.h (find_overload_match): Update signature.
2411
940df408
SC
24122014-08-15 Siva Chandra Reddy <sivachandra@google.com>
2413
2414 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
2415 'items' methods instead of 'iteritems' method on dictionaries.
2416
699ca60a
DE
24172014-08-15 Doug Evans <dje@google.com>
2418
2419 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
2420 closer to use.
2421
37780ee5
DE
24222014-08-15 Doug Evans <dje@google.com>
2423
2424 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
2425
0ad93d4f
DE
24262014-08-15 Doug Evans <dje@google.com>
2427
2428 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
2429
20d8c372
DE
24302014-08-15 Doug Evans <dje@google.com>
2431
2432 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
2433 unused.
2434
cb039ba4
EZ
24352014-08-15 Eli Zaretskii <eliz@gnu.org>
2436
2437 * dcache.h: Include target.h, to avoid compile time warnings.
2438
eb7a547a
JB
24392014-08-15 Joel Brobecker <brobecker@adacore.com>
2440
2441 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
2442 frame_info" partial declaration.
2443 * gdbarch.h: Regenerate.
2444
783cecc8
YQ
24452014-08-15 Yao Qi <yao@codesourcery.com>
2446
2447 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
2448 Add parameter 'decode_for_pst_p'. Callers update.
2449
65c749e7
YQ
24502014-08-13 Yao Qi <yao@codesourcery.com>
2451
2452 PR build/17104
2453 * configure.ac: Use local variable 'pos'.
2454 * configure: Regenerated.
2455
d769e349
DE
24562014-08-11 Doug Evans <dje@google.com>
2457
2458 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
2459 message, it is redundant with "Reading symbols from ..." message.
2460
24f1235e
DE
24612014-08-10 Doug Evans <xdje42@gmail.com>
2462
2463 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
2464
dcd2e6ef
YQ
24652014-08-09 Yao Qi <yao@codesourcery.com>
2466
2467 PR remote/9053
2468 * remote.c (remote_xfer_partial): Remove dead code.
2469
070bdf0b
AA
24702014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2471
2472 * ia64-linux-tdep.c: Include "regset.h".
2473 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
2474 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
2475 (ia64_linux_supply_fpregset): New function.
2476 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
2477 (ia64_linux_regset_from_core_section): New function.
2478 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
2479 method.
2480
08f9f542
AA
24812014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2482
2483 * m68klinux-tdep.c: Include "regset.h".
2484 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
2485 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
2486 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
2487 (m68k_linux_regset_from_core_section): New function.
2488 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
2489 method.
2490
8f1cee41
AA
24912014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2492
2493 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
2494 function. Move logic to...
2495 (tilegx_linux_regmap): ... this new register map.
2496 (tilegx_linux_regset): Refer to register map, replace supply
2497 method by regcache_supply_regset, and add collect method.
2498 * tilegx-tdep.h (enum tilegx_regnum): New enum value
2499 TILEGX_FIRST_EASY_REGNUM.
2500
c5741217
AA
25012014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2502
2503 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
2504 that calls regcache_supply_regset and handles the EPC register
2505 separately. Move main logic to...
2506 (score7_linux_gregmap): ... this new register map.
2507 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
2508 (score7_linux_gregset): Refer to register map. Add collect method.
2509 (score7_linux_regset_from_core_section): Replace
2510 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
2511 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
2512 (struct regset): Delete unused forward declaraction.
2513 (struct pt_regs): Delete structure definition.
2514 (elf_gregset_t): Delete typedef.
2515
81580573
AA
25162014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2517
2518 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
2519 (nios2_core_regset): Add collect method.
2520
ba199d7d
AA
25212014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2522
2523 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
2524 platform-independent and don't write to read-only input buffer.
2525 (m32r_linux_collect_gregset): New function.
2526 (m32r_linux_gregset): Add collect method.
2527
0006a9da
AA
25282014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2529
2530 * hppa-linux-tdep.c (greg_map): Rename to...
2531 (hppa_linux_gregmap): ... this. Also convert to
2532 regcache_map_entry format.
2533 (hppa_linux_supply_regset): Delete function.
2534 (hppa_linux_supply_fpregset): Delete function. Move logic to...
2535 (hppa_linux_fpregmap): ... this new register map.
2536 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
2537 register map, replace supply method by regcache_supply_regset, and
2538 add collect method regcache_collect_regset.
2539
901e1b23
AA
25402014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2541
2542 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
2543 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
2544 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
2545 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
2546 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
2547 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
2548 (frv_linux_supply_gregset): Replace main logic by call to
2549 regcache_supply_regset, but keep clearing gr32-gr63.
2550 (frv_linux_supply_fpregset): Delete function.
2551 (frv_linux_gregset): Refer to appropriate register map and add
2552 regcache_collect_regset as the collect method.
2553 (frv_linux_fpregset): Likewise. Also exchange the supply method
2554 by regcache_supply_regset.
2555
1d6e7555
AA
25562014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2557
2558 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
2559 by call to alpha_supply_int_regs.
2560 (alpha_linux_collect_gregset): New function.
2561 (alpha_linux_supply_fpregset): Replace logic by call to
2562 alpha_supply_fp_regs.
2563 (alpha_linux_collect_fpregset): New function.
2564 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
2565
d4d793bf
AA
25662014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2567
2568 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
2569 by call to regcache_collect_regset.
2570 (supply_gregset, supply_fpregset): Call regcache_supply_regset
2571 instead of aarch64_linux_supply_gregset/_fpregset.
2572 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
2573 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
2574 header file instead.
2575 (aarch64_linux_supply_gregset, supply_gregset_from_core)
2576 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
2577 functions. Move logic to ...
2578 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
2579 register maps.
2580 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
2581 refer to new register maps, replace *_regset_from_core by
2582 regcache_supply_regset, and also use regcache_collect_regset.
2583 * aarch64-linux-tdep.h: Include "regset.h".
2584 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
2585 Delete prototypes.
2586 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
2587 macros, moved from C source file.
2588 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
2589 variable declarations.
2590
99b7da5d
AA
25912014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2592
2593 * s390-linux-nat.c: Include "regset.h".
2594 (regmap_gregset): Delete macro.
2595 (s390_64_regmap_gregset): New register map for
2596 regcache_supply/_collect_regset.
2597 (s390_64_gregset): New regset.
2598 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
2599 (regmap_fpregset): Delete macro.
2600 (s390_native_supply, s390_native_collect): Delete functions.
2601 (supply_gregset, fill_gregset): Replace s390-specific regmap
2602 handling by a call to regcache_supply/_collect_regset.
2603 (supply_fpregset, fill_fpregset): Call regcache_supply/
2604 _collect_regset instead of s390_native_supply/_collect.
2605 (fetch_regset, store_regset): Likewise. Also change the last
2606 parameter to a regset instead of a regmap.
2607 (s390_linux_fetch_inferior_registers)
2608 (390_linux_store_inferior_registers): Adjust last parameter in
2609 calls to fetch_regset and store_regset.
2610 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
2611 (s390_gregmap): ... this. Also make static const and convert to
2612 regcache_map_entry format.
2613 (s390x_regmap_gregset): Delete.
2614 (s390_regmap_fpregset): Rename to...
2615 (s390_fpregmap): ... this. Make static const and convert to
2616 regcache_map_entry format.
2617 (s390_regmap_upper, s390_regmap_last_break)
2618 (s390x_regmap_last_break, s390_regmap_system_call)
2619 (s390_regmap_tdb): Likewise.
2620 (s390_supply_regset, s390_collect_regset): Remove functions.
2621 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
2622 s390_supply_regset.
2623 (s390_gregset, s390_fpregset, s390_upper_regset)
2624 (s390_last_break_regset, s390x_last_break_regset)
2625 (s390_system_call_regset, s390_tdb_regset): Make global and
2626 replace s390_supply/_collect_regset by regcache_supply/
2627 _collect_regset.
2628 (s390x_gregset): Delete.
2629 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
2630 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
2631 (s390_regmap_fpregset, s390_regmap_last_break)
2632 (s390x_regmap_last_break, s390_regmap_system_call)
2633 (s390_regmap_tdb): Delete global variable declarations.
2634 (s390_gregset, s390_fpregset, s390_last_break_regset)
2635 (s390x_last_break_regset, s390_system_call_regset)
2636 (s390_tdb_regset): New global variable declarations.
2637
0b309272
AA
26382014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2639
2640 * regcache.c: Include "regset.h".
2641 (regcache_transfer_regset): New local function.
2642 (regcache_supply_regset, regcache_collect_regset): New functions.
2643 * regcache.h (struct regcache_map_entry): New structure.
2644 (REGCACHE_MAP_SKIP): New enum value.
2645 (regcache_supply_regset, regcache_collect_regset): New prototypes.
2646
7fefa8d7
AA
26472014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2648
2649 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
2650 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
2651 (ppc_linux_collect_gregset ): Likewise.
2652 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
2653 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
2654 (ppc_collect_vrregset): Likewise.
2655 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
2656 Likewise.
2657
96c4f946
YQ
26582014-08-07 Yao Qi <yao@codesourcery.com>
2659
2660 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
2661 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
2662 * remote.c (remote_read_bytes): Likewise.
2663
fffbe6a8
YQ
26642014-08-07 Yao Qi <yao@codesourcery.com>
2665
2666 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
2667
5ee8a82c
YQ
26682014-08-07 Yao Qi <yao@codesourcery.com>
2669
2670 PR remote/17230
2671 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
2672 TARGET_XFER_OK instead of 0.
2673
bb974a24
GB
26742014-08-07 Gary Benson <gbenson@redhat.com>
2675
2676 * common/common-defs.h: Include errno.h.
2677 * defs.h: Do not include errno.h.
2678 * ada-typeprint.c: Likewise.
2679 * c-typeprint.c: Likewise.
2680 * core-regset.c: Likewise.
2681 * corefile.c: Likewise.
2682 * corelow.c: Likewise.
2683 * event-loop.c: Likewise.
2684 * f-typeprint.c: Likewise.
2685 * gnu-nat.c: Likewise.
2686 * go32-nat.c: Likewise.
2687 * i386gnu-nat.c: Likewise.
2688 * m2-typeprint.c: Likewise.
2689 * nat/linux-btrace.c: Likewise.
2690 * p-typeprint.c: Likewise.
2691 * procfs.c: Likewise.
2692 * remote-sim.c: Likewise.
2693 * rs6000-nat.c: Likewise.
2694 * target.c: Likewise.
2695 * typeprint.c: Likewise.
2696 * ui-file.c: Likewise.
2697 * valops.c: Likewise.
2698 * valprint.c: Likewise.
2699
6d3d12eb
GB
27002014-08-07 Gary Benson <gbenson@redhat.com>
2701
2702 * common/common-defs.h: Include string.h.
2703 * aarch64-tdep.c: Do not include string.h.
2704 * ada-exp.y: Likewise.
2705 * ada-lang.c: Likewise.
2706 * ada-lex.l: Likewise.
2707 * ada-typeprint.c: Likewise.
2708 * ada-valprint.c: Likewise.
2709 * aix-thread.c: Likewise.
2710 * alpha-linux-tdep.c: Likewise.
2711 * alpha-mdebug-tdep.c: Likewise.
2712 * alpha-nat.c: Likewise.
2713 * alpha-osf1-tdep.c: Likewise.
2714 * alpha-tdep.c: Likewise.
2715 * alphanbsd-tdep.c: Likewise.
2716 * amd64-dicos-tdep.c: Likewise.
2717 * amd64-linux-tdep.c: Likewise.
2718 * amd64-nat.c: Likewise.
2719 * amd64-sol2-tdep.c: Likewise.
2720 * amd64fbsd-tdep.c: Likewise.
2721 * amd64obsd-tdep.c: Likewise.
2722 * arch-utils.c: Likewise.
2723 * arm-linux-nat.c: Likewise.
2724 * arm-linux-tdep.c: Likewise.
2725 * arm-tdep.c: Likewise.
2726 * arm-wince-tdep.c: Likewise.
2727 * armbsd-tdep.c: Likewise.
2728 * armnbsd-nat.c: Likewise.
2729 * armnbsd-tdep.c: Likewise.
2730 * armobsd-tdep.c: Likewise.
2731 * avr-tdep.c: Likewise.
2732 * ax-gdb.c: Likewise.
2733 * ax-general.c: Likewise.
2734 * bcache.c: Likewise.
2735 * bfin-tdep.c: Likewise.
2736 * breakpoint.c: Likewise.
2737 * build-id.c: Likewise.
2738 * buildsym.c: Likewise.
2739 * c-exp.y: Likewise.
2740 * c-lang.c: Likewise.
2741 * c-typeprint.c: Likewise.
2742 * c-valprint.c: Likewise.
2743 * charset.c: Likewise.
2744 * cli-out.c: Likewise.
2745 * cli/cli-cmds.c: Likewise.
2746 * cli/cli-decode.c: Likewise.
2747 * cli/cli-dump.c: Likewise.
2748 * cli/cli-interp.c: Likewise.
2749 * cli/cli-logging.c: Likewise.
2750 * cli/cli-script.c: Likewise.
2751 * cli/cli-setshow.c: Likewise.
2752 * cli/cli-utils.c: Likewise.
2753 * coffread.c: Likewise.
2754 * common/agent.c: Likewise.
2755 * common/buffer.c: Likewise.
2756 * common/buffer.h: Likewise.
2757 * common/common-utils.c: Likewise.
2758 * common/filestuff.c: Likewise.
2759 * common/filestuff.c: Likewise.
2760 * common/format.c: Likewise.
2761 * common/print-utils.c: Likewise.
2762 * common/rsp-low.c: Likewise.
2763 * common/signals.c: Likewise.
2764 * common/vec.h: Likewise.
2765 * common/xml-utils.c: Likewise.
2766 * core-regset.c: Likewise.
2767 * corefile.c: Likewise.
2768 * corelow.c: Likewise.
2769 * cp-abi.c: Likewise.
2770 * cp-name-parser.y: Likewise.
2771 * cp-support.c: Likewise.
2772 * cp-valprint.c: Likewise.
2773 * cris-tdep.c: Likewise.
2774 * d-exp.y: Likewise.
2775 * darwin-nat.c: Likewise.
2776 * dbxread.c: Likewise.
2777 * dcache.c: Likewise.
2778 * demangle.c: Likewise.
2779 * dicos-tdep.c: Likewise.
2780 * disasm.c: Likewise.
2781 * doublest.c: Likewise.
2782 * dsrec.c: Likewise.
2783 * dummy-frame.c: Likewise.
2784 * dwarf2-frame.c: Likewise.
2785 * dwarf2loc.c: Likewise.
2786 * dwarf2read.c: Likewise.
2787 * elfread.c: Likewise.
2788 * environ.c: Likewise.
2789 * eval.c: Likewise.
2790 * event-loop.c: Likewise.
2791 * exceptions.c: Likewise.
2792 * exec.c: Likewise.
2793 * expprint.c: Likewise.
2794 * f-exp.y: Likewise.
2795 * f-lang.c: Likewise.
2796 * f-typeprint.c: Likewise.
2797 * f-valprint.c: Likewise.
2798 * fbsd-nat.c: Likewise.
2799 * findcmd.c: Likewise.
2800 * findvar.c: Likewise.
2801 * fork-child.c: Likewise.
2802 * frame.c: Likewise.
2803 * frv-linux-tdep.c: Likewise.
2804 * frv-tdep.c: Likewise.
2805 * gdb.c: Likewise.
2806 * gdb_bfd.c: Likewise.
2807 * gdbarch.c: Likewise.
2808 * gdbarch.sh: Likewise.
2809 * gdbtypes.c: Likewise.
2810 * gnu-nat.c: Likewise.
2811 * gnu-v2-abi.c: Likewise.
2812 * gnu-v3-abi.c: Likewise.
2813 * go-exp.y: Likewise.
2814 * go-lang.c: Likewise.
2815 * go32-nat.c: Likewise.
2816 * guile/guile.c: Likewise.
2817 * guile/scm-auto-load.c: Likewise.
2818 * hppa-hpux-tdep.c: Likewise.
2819 * hppa-linux-nat.c: Likewise.
2820 * hppanbsd-tdep.c: Likewise.
2821 * hppaobsd-tdep.c: Likewise.
2822 * i386-cygwin-tdep.c: Likewise.
2823 * i386-dicos-tdep.c: Likewise.
2824 * i386-linux-tdep.c: Likewise.
2825 * i386-nto-tdep.c: Likewise.
2826 * i386-sol2-tdep.c: Likewise.
2827 * i386-tdep.c: Likewise.
2828 * i386bsd-tdep.c: Likewise.
2829 * i386gnu-nat.c: Likewise.
2830 * i386nbsd-tdep.c: Likewise.
2831 * i386obsd-tdep.c: Likewise.
2832 * i387-tdep.c: Likewise.
2833 * ia64-libunwind-tdep.c: Likewise.
2834 * ia64-linux-nat.c: Likewise.
2835 * inf-child.c: Likewise.
2836 * inf-ptrace.c: Likewise.
2837 * inf-ttrace.c: Likewise.
2838 * infcall.c: Likewise.
2839 * infcmd.c: Likewise.
2840 * inflow.c: Likewise.
2841 * infrun.c: Likewise.
2842 * interps.c: Likewise.
2843 * iq2000-tdep.c: Likewise.
2844 * irix5-nat.c: Likewise.
2845 * jv-exp.y: Likewise.
2846 * jv-lang.c: Likewise.
2847 * jv-typeprint.c: Likewise.
2848 * jv-valprint.c: Likewise.
2849 * language.c: Likewise.
2850 * linux-fork.c: Likewise.
2851 * linux-nat.c: Likewise.
2852 * lm32-tdep.c: Likewise.
2853 * m2-exp.y: Likewise.
2854 * m2-typeprint.c: Likewise.
2855 * m32c-tdep.c: Likewise.
2856 * m32r-linux-nat.c: Likewise.
2857 * m32r-linux-tdep.c: Likewise.
2858 * m32r-rom.c: Likewise.
2859 * m32r-tdep.c: Likewise.
2860 * m68hc11-tdep.c: Likewise.
2861 * m68k-tdep.c: Likewise.
2862 * m68kbsd-tdep.c: Likewise.
2863 * m68klinux-nat.c: Likewise.
2864 * m68klinux-tdep.c: Likewise.
2865 * m88k-tdep.c: Likewise.
2866 * machoread.c: Likewise.
2867 * macrocmd.c: Likewise.
2868 * main.c: Likewise.
2869 * mdebugread.c: Likewise.
2870 * mem-break.c: Likewise.
2871 * memattr.c: Likewise.
2872 * memory-map.c: Likewise.
2873 * mep-tdep.c: Likewise.
2874 * mi/mi-cmd-break.c: Likewise.
2875 * mi/mi-cmd-disas.c: Likewise.
2876 * mi/mi-cmd-env.c: Likewise.
2877 * mi/mi-cmd-stack.c: Likewise.
2878 * mi/mi-cmd-var.c: Likewise.
2879 * mi/mi-cmds.c: Likewise.
2880 * mi/mi-console.c: Likewise.
2881 * mi/mi-getopt.c: Likewise.
2882 * mi/mi-interp.c: Likewise.
2883 * mi/mi-main.c: Likewise.
2884 * mi/mi-parse.c: Likewise.
2885 * microblaze-rom.c: Likewise.
2886 * microblaze-tdep.c: Likewise.
2887 * mingw-hdep.c: Likewise.
2888 * minidebug.c: Likewise.
2889 * minsyms.c: Likewise.
2890 * mips-irix-tdep.c: Likewise.
2891 * mips-linux-tdep.c: Likewise.
2892 * mips-tdep.c: Likewise.
2893 * mips64obsd-tdep.c: Likewise.
2894 * mipsnbsd-tdep.c: Likewise.
2895 * mipsread.c: Likewise.
2896 * mn10300-linux-tdep.c: Likewise.
2897 * mn10300-tdep.c: Likewise.
2898 * monitor.c: Likewise.
2899 * moxie-tdep.c: Likewise.
2900 * mt-tdep.c: Likewise.
2901 * nat/linux-btrace.c: Likewise.
2902 * nat/linux-osdata.c: Likewise.
2903 * nat/linux-procfs.c: Likewise.
2904 * nat/linux-ptrace.c: Likewise.
2905 * nat/linux-waitpid.c: Likewise.
2906 * nbsd-tdep.c: Likewise.
2907 * nios2-linux-tdep.c: Likewise.
2908 * nto-procfs.c: Likewise.
2909 * nto-tdep.c: Likewise.
2910 * objc-lang.c: Likewise.
2911 * objfiles.c: Likewise.
2912 * opencl-lang.c: Likewise.
2913 * osabi.c: Likewise.
2914 * osdata.c: Likewise.
2915 * p-exp.y: Likewise.
2916 * p-lang.c: Likewise.
2917 * p-typeprint.c: Likewise.
2918 * parse.c: Likewise.
2919 * posix-hdep.c: Likewise.
2920 * ppc-linux-nat.c: Likewise.
2921 * ppc-sysv-tdep.c: Likewise.
2922 * ppcfbsd-tdep.c: Likewise.
2923 * ppcnbsd-tdep.c: Likewise.
2924 * ppcobsd-tdep.c: Likewise.
2925 * printcmd.c: Likewise.
2926 * procfs.c: Likewise.
2927 * prologue-value.c: Likewise.
2928 * python/py-auto-load.c: Likewise.
2929 * python/py-gdb-readline.c: Likewise.
2930 * ravenscar-thread.c: Likewise.
2931 * regcache.c: Likewise.
2932 * registry.c: Likewise.
2933 * remote-fileio.c: Likewise.
2934 * remote-m32r-sdi.c: Likewise.
2935 * remote-mips.c: Likewise.
2936 * remote-notif.c: Likewise.
2937 * remote-sim.c: Likewise.
2938 * remote.c: Likewise.
2939 * reverse.c: Likewise.
2940 * rs6000-aix-tdep.c: Likewise.
2941 * ser-base.c: Likewise.
2942 * ser-go32.c: Likewise.
2943 * ser-mingw.c: Likewise.
2944 * ser-pipe.c: Likewise.
2945 * ser-tcp.c: Likewise.
2946 * ser-unix.c: Likewise.
2947 * serial.c: Likewise.
2948 * sh-tdep.c: Likewise.
2949 * sh64-tdep.c: Likewise.
2950 * shnbsd-tdep.c: Likewise.
2951 * skip.c: Likewise.
2952 * sol-thread.c: Likewise.
2953 * solib-dsbt.c: Likewise.
2954 * solib-frv.c: Likewise.
2955 * solib-osf.c: Likewise.
2956 * solib-som.c: Likewise.
2957 * solib-spu.c: Likewise.
2958 * solib-target.c: Likewise.
2959 * solib.c: Likewise.
2960 * somread.c: Likewise.
2961 * source.c: Likewise.
2962 * sparc-nat.c: Likewise.
2963 * sparc-sol2-tdep.c: Likewise.
2964 * sparc-tdep.c: Likewise.
2965 * sparc64-tdep.c: Likewise.
2966 * sparc64fbsd-tdep.c: Likewise.
2967 * sparc64nbsd-tdep.c: Likewise.
2968 * sparcnbsd-tdep.c: Likewise.
2969 * spu-linux-nat.c: Likewise.
2970 * spu-multiarch.c: Likewise.
2971 * spu-tdep.c: Likewise.
2972 * stabsread.c: Likewise.
2973 * stack.c: Likewise.
2974 * std-regs.c: Likewise.
2975 * symfile.c: Likewise.
2976 * symmisc.c: Likewise.
2977 * symtab.c: Likewise.
2978 * target.c: Likewise.
2979 * thread.c: Likewise.
2980 * tilegx-linux-nat.c: Likewise.
2981 * tilegx-tdep.c: Likewise.
2982 * top.c: Likewise.
2983 * tracepoint.c: Likewise.
2984 * tui/tui-command.c: Likewise.
2985 * tui/tui-data.c: Likewise.
2986 * tui/tui-disasm.c: Likewise.
2987 * tui/tui-file.c: Likewise.
2988 * tui/tui-layout.c: Likewise.
2989 * tui/tui-out.c: Likewise.
2990 * tui/tui-regs.c: Likewise.
2991 * tui/tui-source.c: Likewise.
2992 * tui/tui-stack.c: Likewise.
2993 * tui/tui-win.c: Likewise.
2994 * tui/tui-windata.c: Likewise.
2995 * tui/tui-winsource.c: Likewise.
2996 * typeprint.c: Likewise.
2997 * ui-file.c: Likewise.
2998 * ui-out.c: Likewise.
2999 * user-regs.c: Likewise.
3000 * utils.c: Likewise.
3001 * v850-tdep.c: Likewise.
3002 * valarith.c: Likewise.
3003 * valops.c: Likewise.
3004 * valprint.c: Likewise.
3005 * value.c: Likewise.
3006 * varobj.c: Likewise.
3007 * vax-tdep.c: Likewise.
3008 * vaxnbsd-tdep.c: Likewise.
3009 * vaxobsd-tdep.c: Likewise.
3010 * windows-nat.c: Likewise.
3011 * xcoffread.c: Likewise.
3012 * xml-support.c: Likewise.
3013 * xstormy16-tdep.c: Likewise.
3014 * xtensa-linux-nat.c: Likewise.
3015
dccbb609
GB
30162014-08-07 Gary Benson <gbenson@redhat.com>
3017
3018 * common/common-defs.h: Include gdb_assert.h.
3019 * aarch64-tdep.c: Do not include gdb_assert.h.
3020 * addrmap.c: Likewise.
3021 * aix-thread.c: Likewise.
3022 * alpha-linux-tdep.c: Likewise.
3023 * alpha-mdebug-tdep.c: Likewise.
3024 * alphanbsd-tdep.c: Likewise.
3025 * amd64-nat.c: Likewise.
3026 * amd64-tdep.c: Likewise.
3027 * amd64bsd-nat.c: Likewise.
3028 * amd64fbsd-nat.c: Likewise.
3029 * amd64fbsd-tdep.c: Likewise.
3030 * amd64nbsd-nat.c: Likewise.
3031 * amd64nbsd-tdep.c: Likewise.
3032 * amd64obsd-nat.c: Likewise.
3033 * amd64obsd-tdep.c: Likewise.
3034 * arch-utils.c: Likewise.
3035 * arm-tdep.c: Likewise.
3036 * armbsd-tdep.c: Likewise.
3037 * auxv.c: Likewise.
3038 * bcache.c: Likewise.
3039 * bfin-tdep.c: Likewise.
3040 * blockframe.c: Likewise.
3041 * breakpoint.c: Likewise.
3042 * bsd-kvm.c: Likewise.
3043 * bsd-uthread.c: Likewise.
3044 * buildsym.c: Likewise.
3045 * c-exp.y: Likewise.
3046 * c-lang.c: Likewise.
3047 * charset.c: Likewise.
3048 * cleanups.c: Likewise.
3049 * cli-out.c: Likewise.
3050 * cli/cli-decode.c: Likewise.
3051 * cli/cli-dump.c: Likewise.
3052 * cli/cli-logging.c: Likewise.
3053 * cli/cli-script.c: Likewise.
3054 * cli/cli-utils.c: Likewise.
3055 * coffread.c: Likewise.
3056 * common/common-utils.c: Likewise.
3057 * common/queue.h: Likewise.
3058 * common/signals.c: Likewise.
3059 * common/vec.h: Likewise.
3060 * complaints.c: Likewise.
3061 * completer.c: Likewise.
3062 * corelow.c: Likewise.
3063 * cp-abi.c: Likewise.
3064 * cp-name-parser.y: Likewise.
3065 * cp-namespace.c: Likewise.
3066 * cp-support.c: Likewise.
3067 * cris-tdep.c: Likewise.
3068 * dbxread.c: Likewise.
3069 * dictionary.c: Likewise.
3070 * doublest.c: Likewise.
3071 * dsrec.c: Likewise.
3072 * dummy-frame.c: Likewise.
3073 * dwarf2-frame-tailcall.c: Likewise.
3074 * dwarf2-frame.c: Likewise.
3075 * dwarf2expr.c: Likewise.
3076 * dwarf2loc.c: Likewise.
3077 * dwarf2read.c: Likewise.
3078 * eval.c: Likewise.
3079 * event-loop.c: Likewise.
3080 * exceptions.c: Likewise.
3081 * expprint.c: Likewise.
3082 * f-valprint.c: Likewise.
3083 * fbsd-nat.c: Likewise.
3084 * findvar.c: Likewise.
3085 * frame-unwind.c: Likewise.
3086 * frame.c: Likewise.
3087 * frv-tdep.c: Likewise.
3088 * gcore.c: Likewise.
3089 * gdb-dlfcn.c: Likewise.
3090 * gdb_bfd.c: Likewise.
3091 * gdbarch.c: Likewise.
3092 * gdbarch.sh: Likewise.
3093 * gdbtypes.c: Likewise.
3094 * gnu-nat.c: Likewise.
3095 * gnu-v3-abi.c: Likewise.
3096 * go-lang.c: Likewise.
3097 * guile/scm-exception.c: Likewise.
3098 * guile/scm-gsmob.c: Likewise.
3099 * guile/scm-lazy-string.c: Likewise.
3100 * guile/scm-math.c: Likewise.
3101 * guile/scm-pretty-print.c: Likewise.
3102 * guile/scm-safe-call.c: Likewise.
3103 * guile/scm-utils.c: Likewise.
3104 * guile/scm-value.c: Likewise.
3105 * h8300-tdep.c: Likewise.
3106 * hppa-hpux-nat.c: Likewise.
3107 * hppa-tdep.c: Likewise.
3108 * hppanbsd-tdep.c: Likewise.
3109 * hppaobsd-tdep.c: Likewise.
3110 * i386-darwin-nat.c: Likewise.
3111 * i386-darwin-tdep.c: Likewise.
3112 * i386-nto-tdep.c: Likewise.
3113 * i386-tdep.c: Likewise.
3114 * i386bsd-nat.c: Likewise.
3115 * i386fbsd-tdep.c: Likewise.
3116 * i386gnu-nat.c: Likewise.
3117 * i386nbsd-tdep.c: Likewise.
3118 * i386obsd-tdep.c: Likewise.
3119 * i387-tdep.c: Likewise.
3120 * ia64-libunwind-tdep.c: Likewise.
3121 * ia64-tdep.c: Likewise.
3122 * inf-ptrace.c: Likewise.
3123 * inf-ttrace.c: Likewise.
3124 * infcall.c: Likewise.
3125 * infcmd.c: Likewise.
3126 * infrun.c: Likewise.
3127 * inline-frame.c: Likewise.
3128 * interps.c: Likewise.
3129 * jv-lang.c: Likewise.
3130 * jv-typeprint.c: Likewise.
3131 * linux-fork.c: Likewise.
3132 * linux-nat.c: Likewise.
3133 * linux-thread-db.c: Likewise.
3134 * m32c-tdep.c: Likewise.
3135 * m32r-linux-nat.c: Likewise.
3136 * m32r-tdep.c: Likewise.
3137 * m68k-tdep.c: Likewise.
3138 * m68kbsd-nat.c: Likewise.
3139 * m68kbsd-tdep.c: Likewise.
3140 * m88k-tdep.c: Likewise.
3141 * machoread.c: Likewise.
3142 * macroexp.c: Likewise.
3143 * macrotab.c: Likewise.
3144 * maint.c: Likewise.
3145 * mdebugread.c: Likewise.
3146 * memory-map.c: Likewise.
3147 * mep-tdep.c: Likewise.
3148 * mi/mi-common.c: Likewise.
3149 * microblaze-tdep.c: Likewise.
3150 * mingw-hdep.c: Likewise.
3151 * mips-linux-nat.c: Likewise.
3152 * mips-linux-tdep.c: Likewise.
3153 * mips-tdep.c: Likewise.
3154 * mips64obsd-tdep.c: Likewise.
3155 * mipsnbsd-tdep.c: Likewise.
3156 * mn10300-linux-tdep.c: Likewise.
3157 * mn10300-tdep.c: Likewise.
3158 * moxie-tdep.c: Likewise.
3159 * mt-tdep.c: Likewise.
3160 * nat/linux-btrace.c: Likewise.
3161 * nat/linux-osdata.c: Likewise.
3162 * nat/linux-ptrace.c: Likewise.
3163 * nat/mips-linux-watch.c: Likewise.
3164 * nios2-linux-tdep.c: Likewise.
3165 * nios2-tdep.c: Likewise.
3166 * objc-lang.c: Likewise.
3167 * objfiles.c: Likewise.
3168 * obsd-nat.c: Likewise.
3169 * opencl-lang.c: Likewise.
3170 * osabi.c: Likewise.
3171 * parse.c: Likewise.
3172 * ppc-linux-nat.c: Likewise.
3173 * ppc-sysv-tdep.c: Likewise.
3174 * ppcfbsd-nat.c: Likewise.
3175 * ppcfbsd-tdep.c: Likewise.
3176 * ppcnbsd-nat.c: Likewise.
3177 * ppcnbsd-tdep.c: Likewise.
3178 * ppcobsd-nat.c: Likewise.
3179 * ppcobsd-tdep.c: Likewise.
3180 * printcmd.c: Likewise.
3181 * procfs.c: Likewise.
3182 * prologue-value.c: Likewise.
3183 * psymtab.c: Likewise.
3184 * python/py-lazy-string.c: Likewise.
3185 * python/py-value.c: Likewise.
3186 * regcache.c: Likewise.
3187 * reggroups.c: Likewise.
3188 * registry.c: Likewise.
3189 * remote-sim.c: Likewise.
3190 * remote.c: Likewise.
3191 * rs6000-aix-tdep.c: Likewise.
3192 * rs6000-tdep.c: Likewise.
3193 * s390-linux-tdep.c: Likewise.
3194 * score-tdep.c: Likewise.
3195 * ser-base.c: Likewise.
3196 * ser-mingw.c: Likewise.
3197 * sh-tdep.c: Likewise.
3198 * sh64-tdep.c: Likewise.
3199 * solib-darwin.c: Likewise.
3200 * solib-spu.c: Likewise.
3201 * solib-svr4.c: Likewise.
3202 * source.c: Likewise.
3203 * sparc-nat.c: Likewise.
3204 * sparc-sol2-tdep.c: Likewise.
3205 * sparc-tdep.c: Likewise.
3206 * sparc64-sol2-tdep.c: Likewise.
3207 * sparc64-tdep.c: Likewise.
3208 * sparc64fbsd-tdep.c: Likewise.
3209 * sparc64nbsd-tdep.c: Likewise.
3210 * sparc64obsd-tdep.c: Likewise.
3211 * sparcnbsd-tdep.c: Likewise.
3212 * sparcobsd-tdep.c: Likewise.
3213 * spu-multiarch.c: Likewise.
3214 * spu-tdep.c: Likewise.
3215 * stabsread.c: Likewise.
3216 * stack.c: Likewise.
3217 * symfile.c: Likewise.
3218 * symtab.c: Likewise.
3219 * target-descriptions.c: Likewise.
3220 * target-memory.c: Likewise.
3221 * target.c: Likewise.
3222 * tic6x-linux-tdep.c: Likewise.
3223 * tic6x-tdep.c: Likewise.
3224 * tilegx-linux-nat.c: Likewise.
3225 * tilegx-tdep.c: Likewise.
3226 * top.c: Likewise.
3227 * tramp-frame.c: Likewise.
3228 * tui/tui-out.c: Likewise.
3229 * tui/tui-winsource.c: Likewise.
3230 * ui-out.c: Likewise.
3231 * user-regs.c: Likewise.
3232 * utils.c: Likewise.
3233 * v850-tdep.c: Likewise.
3234 * valops.c: Likewise.
3235 * value.c: Likewise.
3236 * varobj.c: Likewise.
3237 * vax-nat.c: Likewise.
3238 * xml-syscall.c: Likewise.
3239 * xml-tdesc.c: Likewise.
3240 * xstormy16-tdep.c: Likewise.
3241 * xtensa-linux-nat.c: Likewise.
3242 * xtensa-tdep.c: Likewise.
3243
e76df0d0
GB
32442014-08-07 Gary Benson <gbenson@redhat.com>
3245
3246 * common/common-defs.h: Include common-utils.h.
3247 * defs.h: Do not include common-utils.h.
3248 * common/gdb_assert.h: Likewise.
3249 * darwin-nat.h: Likewise.
3250 * nat/linux-btrace.c: Likewise.
3251 * target/waitstatus.h: Likewise.
3252
4cb9c816
GB
32532014-08-07 Gary Benson <gbenson@redhat.com>
3254
3255 * common/common-defs.h: Include ptid.h.
3256 * defs.h: Do not include ptid.h.
3257 * inferior.h: Likewise.
3258 * infrun.h: Likewise.
3259 * nat/linux-btrace.h: Likewise.
3260 * nat/linux-osdata.h: Likewise.
3261 * target/waitstatus.h: Likewise.
3262
3995eeee
GB
32632014-08-07 Gary Benson <gbenson@redhat.com>
3264
3265 * common/common-defs.h: Include gdb_locale.h.
3266 * defs.h: Do not include gdb_locale.h.
3267
cb9f1a9b
GB
32682014-08-07 Gary Benson <gbenson@redhat.com>
3269
3270 * common/common-defs.h: Include gdb/signals.h.
3271 * defs.h: Do not include gdb/signals.h.
3272
a5fceff8
GB
32732014-08-07 Gary Benson <gbenson@redhat.com>
3274
3275 * common/common-defs.h: Include pathmax.h.
3276 * defs.h: Do not include pathmax.h.
3277
b9391142
GB
32782014-08-07 Gary Benson <gbenson@redhat.com>
3279
3280 * common/common-defs.h: Include libiberty.h.
3281 * defs.h: Do not include libiberty.h.
3282 * common/queue.h: Likewise.
3283 * cp-name-parser.y: Likewise.
3284 * mi/mi-cmd-catch.c: Likewise.
3285 * python/python.c: Likewise.
3286
0e443c87
GB
32872014-08-07 Gary Benson <gbenson@redhat.com>
3288
3289 * common/common-defs.h: Include ansidecl.h.
3290 * defs.h: Do not include ansidecl.h.
3291 * common/buffer.h: Likewise.
3292 * common/common-utils.h: Likewise.
3293
8ebb3f56
GB
32942014-08-07 Gary Benson <gbenson@redhat.com>
3295
3296 * common/common-defs.h: Include stddef.h.
3297 * defs.h: Do not include stddef.h.
3298 * common/common-utils.h: Likewise.
3299 * amd64fbsd-nat.c: Likewise.
3300 * bcache.c: Likewise.
3301 * charset.c: Likewise.
3302 * common/buffer.h: Likewise.
3303 * common/vec.h: Likewise.
3304 * i386bsd-nat.c: Likewise.
3305 * nat/linux-btrace.h: Likewise.
3306 * ppcfbsd-nat.c: Likewise.
3307 * ppcnbsd-tdep.h: Likewise.
3308 * ppcobsd-nat.c: Likewise.
3309 * ppcobsd-tdep.h: Likewise.
3310 * python/py-gdb-readline.c: Likewise.
3311
8980bdf6
GB
33122014-08-07 Gary Benson <gbenson@redhat.com>
3313
3314 * common/common-defs.h: Include stdarg.h.
3315 * defs.h: Do not include stdarg.h.
3316 * ada-lang.c: Likewise.
3317 * common/common-utils.h: Likewise.
3318 * guile/scm-string.c: Likewise.
3319 * guile/scm-utils.c: Likewise.
3320 * m32c-tdep.c: Likewise.
3321
d7096f71
GB
33222014-08-07 Gary Benson <gbenson@redhat.com>
3323
3324 * common/common-defs.h: Include stdlib.h.
3325 * defs.h: Do not include stdlib.h.
3326 * addrmap.c: Likewise.
3327 * bcache.c: Likewise.
3328 * common/buffer.c: Likewise.
3329 * common/common-utils.c: Likewise.
3330 * cp-name-parser.y: Likewise.
3331 * go32-nat.c: Likewise.
3332 * mn10300-linux-tdep.c: Likewise.
3333 * nat/linux-osdata.c: Likewise.
3334 * tui/tui.c: Likewise.
3335 * windows-nat.c: Likewise.
3336
d02f550d
GB
33372014-08-07 Gary Benson <gbenson@redhat.com>
3338
3339 * common/common-defs.h: Include stdio.h.
3340 * defs.h: Do not include stdio.h.
3341 * ada-lang.c: Likewise.
3342 * common/buffer.c: Likewise.
3343 * common/common-utils.c: Likewise.
3344 * cp-name-parser.y: Likewise.
3345 * gnu-nat.c: Likewise.
3346 * go32-nat.c: Likewise.
3347 * i386gnu-nat.c: Likewise.
3348 * proc-api.c: Likewise.
3349 * proc-events.c: Likewise.
3350 * proc-flags.c: Likewise.
3351 * proc-why.c: Likewise.
3352 * python/python-internal.h: Likewise.
3353 * target-memory.c: Likewise.
3354 * tui/tui-io.c: Likewise.
3355 * tui/tui.c: Likewise.
3356
b6d7a4bf
SM
33572014-08-06 Simon Marchi <simon.marchi@ericsson.com>
3358
3359 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
3360 (scan_dyntag_auxv): Same.
3361
af19829b
YQ
33622014-08-06 Yao Qi <yao@codesourcery.com>
3363
3364 * amd64-linux-nat.c: Remove duplicated include
3365 "x86-linux-nat.h".
3366 * i386-linux-nat.c: Likewise.
3367
8e07a239
YQ
33682014-08-06 Yao Qi <yao@codesourcery.com>
3369
3370 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
3371 operand" with "Special opcode" in comments.
3372
7bfe8241
GB
33732014-08-05 Gary Benson <gbenson@redhat.com>
3374
3375 * interps.c (initialize_interps): Remove prototype.
3376 (interpreter_initialized): Remove static global.
3377 (interp_add): Do not call initialize_interps.
3378 (initialize_interps): Remove function.
3379
d6c95504
GB
33802014-08-05 Gary Benson <gbenson@redhat.com>
3381
3382 * utils.c (vwarning): Remove spurious va_end.
3383
241fd515
AM
33842014-08-05 Alan Modra <amodra@gmail.com>
3385
3386 * charset.c (convert_between_encodings): Cast result of obstack_base.
3387 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
3388 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
3389 (read_unwind_info): Use size_t for some locals.
3390 * jit.c (finalize_symtab): Likewise.
3391 * utils.c (hashtab_obstack_allocate): Likewise.
3392 * symmisc.c (print_objfile_statistics): Update format strings.
3393
dc304a94
JK
33942014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3395
3396 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
3397 (Changes in GDB 7.8): ... here.
3398
3cecbbbe
TT
33992014-08-04 Tom Tromey <tromey@redhat.com>
3400
3401 * target.c (set_targetdebug): New function.
3402 (initialize_targets): Pass set_targetdebug when creating "set
3403 debug target".
3404
6908c509
JB
34052014-08-01 Joel Brobecker <brobecker@adacore.com>
3406
3407 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
3408 if detecting a variable-sized field that is not the last field.
3409 Fix struct type length computation.
3410
53e8f97d
JB
34112014-08-01 Joel Brobecker <brobecker@adacore.com>
3412
3413 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3414 Add debug trace.
3415
e068c55d
JB
34162014-08-01 Joel Brobecker <brobecker@adacore.com>
3417
3418 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3419 Remove "+ 8" offset in computation of CHAIN_VMA.
3420
4d4ca2a1
DE
34212014-07-31 Doug Evans <dje@google.com>
3422
3423 * inflow.c (child_terminal_inferior): Add comment.
3424 (child_terminal_ours_for_output): Add comment.
3425 (child_terminal_ours): Add comment.
3426 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
3427 (linux_nat_terminal_ours): Add comment.
3428
462f517e
GB
34292014-07-31 Gary Benson <gbenson@redhat.com>
3430
3431 * common/btrace-common.h: Do not include defs.h or server.h.
3432 * nat/mips-linux-watch.h: Likewise.
3433 * gdb-dlfcn.h: Do not include defs.h.
3434 * tracefile.h: Likewise.
3435
74228e77
RM
34362014-07-30 Roland McGrath <mcgrathr@google.com>
3437
3438 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
3439
014f9477
TT
34402014-07-30 Tom Tromey <tromey@redhat.com>
3441
3442 * bsd-kvm.c (bsd_kvm_open): Constify.
3443 * corelow.c (core_open): Constify.
3444 * ctf.c (ctf_open): Constify.
3445 * dbug-rom.c (dbug_open): Constify.
3446 * exec.c (exec_open): Constify.
3447 * m32r-rom.c (m32r_open, mon2000_open): Constify.
3448 * microblaze-rom.c (picobug_open): Constify.
3449 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
3450 Constify.
3451 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
3452 * record-btrace.c (record_btrace_open): Constify.
3453 * record-full.c (record_full_core_open_1, record_full_open_1)
3454 (record_full_open): Constify.
3455 * remote-m32r-sdi.c (m32r_open): Constify.
3456 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
3457 (rockhopper_open, lsi_open): Constify.
3458 * remote-sim.c (gdbsim_open): Constify.
3459 * remote.c (remote_open, extended_remote_open, remote_open_1):
3460 Constify.
3461 * target.h (struct target_ops) <to_open>: Make "arg" const.
3462 * tracefile-tfile.c (tfile_open): Constify.
3463
e799154c
TT
34642014-07-30 Tom Tromey <tromey@redhat.com>
3465
3466 * breakpoint.c (map_breakpoint_numbers): Update.
3467 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
3468 (get_number_const): New function.
3469 (get_number): Rewrite using get_number_const.
3470 (init_number_or_range): Make "string" const.
3471 (number_is_in_list): Make "list" const.
3472 * cli/cli-utils.h (get_number_const): Declare.
3473 (struct get_number_or_range_state) <string, end_ptr>: Now const.
3474 (init_number_or_range, number_is_in_list): Update.
3475 * printcmd.c (map_display_numbers): Update.
3476 * value.c (value_from_history_ref): Constify.
3477 * value.h (value_from_history_ref): Update.
3478
5f08566b
TT
34792014-07-30 Tom Tromey <tromey@redhat.com>
3480
3481 * corefile.c (hook_type, call_extra_exec_file_hooks)
3482 (specify_exec_file_hook): Constify.
3483 * exec.c (exec_file_attach): Make "filename" const.
3484 * gdbcore.h (deprecated_exec_file_display_hook)
3485 (specify_exec_file_hook, exec_file_attach): Constify.
3486 * main.c (captured_main): Use catch_command_errors_const.
3487
8981c758
TT
34882014-07-30 Tom Tromey <tromey@redhat.com>
3489
3490 * target.c (open_target): New function.
3491 (add_target_with_completer, add_deprecated_target_alias): Use
3492 set_cmd_sfunc, set_cmd_context.
3493 (debug_to_open): Remove.
3494 (setup_target_debug): Update.
3495
a1c7835a
YQ
34962014-07-30 Yao Qi <yao@codesourcery.com>
3497
3498 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
3499 comments.
3500 * parse.c (exp_iterate): Update comments.
3501
976411d6
GB
35022014-07-30 Gary Benson <gbenson@redhat.com>
3503
3504 * common/common-defs.h: New file.
3505 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
3506 * defs.h: Include common-defs.h.
3507 Do not include config.h or build-gnulib/config.h.
3508
5d4848a4
GB
35092014-07-30 Gary Benson <gbenson@redhat.com>
3510
3511 * common/common-utils.h: Do not include config.h.
3512 * nat/linux-btrace.h: Likewise.
3513
d41f6d8e
GB
35142014-07-30 Gary Benson <gbenson@redhat.com>
3515
3516 * btrace.c: Include defs.h.
3517 * common/ptid.c: Include defs.h or server.h as appropriate.
3518 * nat/mips-linux-watch.c: Likewise.
3519
84202f9c
TT
35202014-07-29 Tom Tromey <tromey@redhat.com>
3521
3522 * target.c (target_is_pushed): Simplify.
3523
2530441c
JB
35242014-07-29 Joel Brobecker <brobecker@adacore.com>
3525
3526 GDB 7.8 released.
3527
7e09a223
YQ
35282014-07-29 Yao Qi <yao@codesourcery.com>
3529
3530 PR gdb/17206
3531 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
3532
7ebdbe92
DE
35332014-07-28 Doug Evans <xdje42@gmail.com>
3534
3535 PR guile/17203
3536 * guile/scm-param.c (pascm_parameter_defined_p): New function.
3537 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
3538 parameters.
3539
f347ffc9
WN
35402014-07-28 Will Newton <will.newton@linaro.org>
3541
3542 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
3543 (THUMB2_SET_R7_SIGRETURN2): Likewise.
3544 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
3545 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
3546 (THUMB2_EABI_SYSCALL): Likewise.
3547 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
3548 struct tramp_frame.
3549 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
3550 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
3551
37c5f1f7
DE
35522014-07-27 Doug Evans <xdje42@gmail.com>
3553
3554 * guile/scm-param.c (pascm_print_param_smob): Fix output.
3555
0c3abbc7
DE
35562014-07-27 Doug Evans <xdje42@gmail.com>
3557
3558 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
3559
e76c5d17
DE
35602014-07-26 Ludovic Courtès <ludo@gnu.org>
3561 Doug Evans <xdje42@gmail.com>
3562
3563 PR guile/17146
3564 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
3565 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
3566 * configure.ac: Try to use guild to compile an scm file, if it fails
3567 then disable guile support.
3568 * configure: Regenerate.
3569 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
3570 GUILE_FILE_LIST.
3571 (GUILE_COMPILED_FILES): New variable.
3572 (GUILE_FILES) Update.
3573 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
3574 (stamp-guile): Compile scm files.
3575 * guile/guile.c (boot_guile_support): New function.
3576 (standard_throw_args_p): New function.
3577 (print_standard_throw_error, print_throw_error): New functions.
3578 (handle_boot_error): New function.
3579 (initialize_scheme_side): Rewrite to call boot_guile_support.
3580 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
3581 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
3582
186fcde0
DE
35832014-07-26 Ludovic Courtès <ludo@gnu.org>
3584 Doug Evans <xdje42@gmail.com>
3585
3586 PR guile/17146
3587 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
3588 * guile/lib/gdb/support.scm: New file.
3589 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
3590 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
3591 All uses updated.
3592 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
3593 All uses updated.
3594 (%assert-type): Ditto, and renamed to assert-type.
3595 (%exception-print-style): Delete.
3596
4df42755
DE
35972014-07-26 Doug Evans <xdje42@gmail.com>
3598
3599 PR build/17105
3600 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
3601 * configure: Regenerate.
3602 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
3603 PYTHON_FILES.
3604 (PYTHON_FILES): New variable.
3605 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
3606 (GUILE_FILES): New variable.
3607 (stamp-python, install-python, uninstall-python): Handle empty
3608 file list.
3609 (stamp-guile, install-guile, uninstall-guile): Ditto.
3610
ee7333ae
DE
36112014-07-26 Doug Evans <xdje42@gmail.com>
3612
3613 PR guile/17177
3614 * guile/lib/gdb.scm (pretty-printers): Export.
3615 (set-pretty-printers!): Export.
3616 * guile/lib/gdb/printing.scm (gdb module): Update.
3617 (prepend-pretty-printer!, append-pretty-printer!): Update.
3618 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
3619 (pretty_printer_list_var): Delete.
3620 (pretty_printer_list): New static global.
3621 (gdbscm_pretty_printers): New function.
3622 (gdbscm_set_pretty_printers_x): New function.
3623 (ppscm_find_pretty_printer_from_gdb): Update.
3624 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
3625 (gdbscm_initialize_pretty_printers): Update.
3626
74edf516
DE
36272014-07-26 Doug Evans <xdje42@gmail.com>
3628
3629 PR 17185
3630 * configure.ac: Add check for header gc/gc.h.
3631 Add check for function setenv.
3632 * configure: Regenerate.
3633 * config.in: Regenerate.
3634 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
3635
d54398a7
MR
36362014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
3637
3638 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
3639 variation in gdbarch matching.
3640
ab16fce8
TT
36412014-07-25 Tom Tromey <tromey@redhat.com>
3642
3643 * exec.c (using_exec_ops): Remove.
3644 (exec_close_1): Update. Remove extraneous block, reindent.
3645 (add_target_sections): Use target_is_pushed.
3646
88056fbb
PA
36472014-07-25 Pedro Alves <palves@redhat.com>
3648
3649 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
3650 * monitor.c (monitor_create_inferior): Likewise.
3651 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
3652 * remote-sim.c (gdbsim_create_inferior): Likewise.
3653 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
3654 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
3655 * windows-nat.c (do_initial_windows_stuff): Likewise.
3656
70509625
PA
36572014-07-25 Pedro Alves <palves@redhat.com>
3658
3659 * NEWS: Mention signal passing and "signal" command changes.
3660 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
3661 comment.
3662 * breakpoint.c (until_break_command): Adjust clear_proceed_status
3663 call.
3664 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
3665 * infcmd.c (proceed_thread_callback, continue_1, step_once)
3666 (jump_command): Adjust clear_proceed_status call.
3667 (signal_command): Warn if other thread that are resumed have
3668 signals that will be delivered. Adjust clear_proceed_status call.
3669 (until_next_command, finish_command)
3670 (proceed_after_attach_callback, attach_command_post_wait)
3671 (attach_command): Adjust clear_proceed_status call.
3672 * infrun.c (proceed_after_vfork_done): Likewise.
3673 (proceed_after_attach_callback): Adjust comment.
3674 (clear_proceed_status_thread): Clear stop_signal if not in pass
3675 state.
3676 (clear_proceed_status_callback): Delete.
3677 (clear_proceed_status): New 'step' parameter. Only clear the
3678 proceed status of threads the command being prepared is about to
3679 resume.
3680 (proceed): If passed in an explicit signal, override stop_signal
3681 with it. Don't pass the last stop signal to the thread we're
3682 resuming.
3683 (init_wait_for_inferior): Adjust clear_proceed_status call.
3684 (switch_back_to_stepped_thread): Clear the signal if it should not
3685 be passed.
3686 * infrun.h (clear_proceed_status): New 'step' parameter.
3687 (user_visible_resume_ptid): Add comment.
3688 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
3689 signal is in pass state.
3690 * remote.c (append_pending_thread_resumptions): Likewise.
3691 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
3692
d8be2939
TT
36932014-07-25 Tom Tromey <tromey@redhat.com>
3694
3695 * target.h (target_stopped_data_address)
3696 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
3697 parentheses.
3698
7d0d9d2b
PL
36992014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
3700
3701 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
3702 comments.
3703 (avr_pointer_to_address): Likewise.
3704
e9e7f724
TT
37052014-07-24 Tom Tromey <tromey@redhat.com>
3706
3707 * monitor.c (compile_pattern): Update.
3708 * target.h (struct target_ops) <to_shortname, to_longname,
3709 to_doc>: Now const.
3710
1947513d
TT
37112014-07-24 Tom Tromey <tromey@redhat.com>
3712
3713 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
3714 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
3715 (add_info_alias, add_com): Make "doc" const.
3716 (print_doc_line): Make "str" const.
3717 (delete_cmd): Update.
3718 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
3719 (print_doc_line): Update.
3720 * cli/cli-script.c (document_command): Update.
3721 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
3722 (add_com, add_info, add_info_alias): Update.
3723 * guile/scm-cmd.c (cmdscm_destroyer): Update.
3724 * python/py-cmd.c (cmdpy_destroyer): Update.
3725
64e61d29
TT
37262014-07-24 Tom Tromey <tromey@redhat.com>
3727
3728 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
3729 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
3730 (help_cmd_list): Constify.
3731 (lookup_cmd): Update.
3732 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
3733 const.
3734 (help_cmd_list, apropos_cmd): Update.
3735 * cli/cli-script.c (show_user): Update.
3736 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
3737 * cli/cli-setshow.h (cmd_show_list): Update.
3738 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
3739 (cmd_show_list): Update.
3740 * guile/scm-cmd.c (cmdscm_destroyer): Update.
3741 * python/py-cmd.c (cmdpy_destroyer): Update.
3742
429e55ea
TT
37432014-07-24 Tom Tromey <tromey@redhat.com>
3744
3745 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
3746 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
3747 const.
3748 * command.h (deprecate_cmd): Update.
3749 * maint.c (maintenance_do_deprecate): Add casts.
3750
64669f3b
TT
37512014-07-24 Tom Tromey <tromey@redhat.com>
3752
3753 * cli/cli-decode.c (help_cmd): Make parameter "const".
3754 * cli/cli-decode.h (help_cmd): Update.
3755
d3d3328b
TT
37562014-07-24 Tom Tromey <tromey@redhat.com>
3757
3758 * stack.c (up_silently_base, down_silently_base): Make argument
3759 const.
3760
414842dc
TT
37612014-07-24 Tom Tromey <tromey@redhat.com>
3762
3763 * solib.c (solib_add): Make "pattern" const.
3764 * solib.h (solib_add): Update.
3765
baa336ce
TT
37662014-07-24 Tom Tromey <tromey@redhat.com>
3767
3768 * remote.c (remote_serial_open, print_packet, putpkt)
3769 (putpkt_binary): Constify.
3770 * remote.h (putpkt): Update.
3771
5a19e2d0
TT
37722014-07-24 Tom Tromey <tromey@redhat.com>
3773
3774 * monitor.c (monitor_open): Make "args" const.
3775 * monitor.h (monitor_open): Update.
3776
fc4baa5e
TT
37772014-07-24 Tom Tromey <tromey@redhat.com>
3778
3779 * maint.c (match_bfd_flags): Make "string" const.
3780 (print_bfd_section_info): Remove casts.
3781 (print_objfile_section_info): Make "string" const.
3782
0d5f0dbe
TT
37832014-07-24 Tom Tromey <tromey@redhat.com>
3784
3785 * inf-child.c (inf_child_open_target): Make "arg" const.
3786 * inf-child.h (inf_child_open_target): Update.
3787
41c77899
TT
37882014-07-24 Tom Tromey <tromey@redhat.com>
3789
3790 * environ.c (unset_in_environ): Make "var" const.
3791 * environ.h (unset_in_environ): Update.
3792
93db0d79
TT
37932014-07-24 Tom Tromey <tromey@redhat.com>
3794
3795 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
3796 Make "cmd" const.
3797 (scan_filename_with_cleanup): Likewise.
3798 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
3799 Make arguments const.
3800 (restore_command): Update.
3801
36d6eb95
PA
38022014-07-24 Pedro Alves <palves@redhat.com>
3803
3804 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
3805
8009206a
TT
38062014-07-24 Tom Tromey <tromey@redhat.com>
3807 Gary Benson <gbenson@redhat.com>
3808
3809 * nat/linux-ptrace.c (additional_flags): New global.
3810 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
3811 additional_flags; don't check GDBSERVER.
3812 (linux_ptrace_set_additional_flags): New function.
3813 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
3814 Declare.
3815 * linux-nat.c (_initialize_linux_nat): Call
3816 linux_ptrace_set_additional_flags.
3817
a7068b60
TT
38182014-07-24 Tom Tromey <tromey@redhat.com>
3819
3820 * make-target-delegates (munge_type, write_debugmethod): New
3821 functions.
3822 (debug_names): New global.
3823 ($TARGET_DEBUG_PRINTER): New global.
3824 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
3825 name.
3826 Write debug methods. Generate init_debug_target.
3827 * target-debug.h: New file.
3828 * target-delegates.c: Rebuild.
3829 * target.c: Include target-debug.h.
3830 (debug_target): Hoist definition.
3831 (target_kill, target_get_section_table, target_memory_map)
3832 (target_flash_erase, target_flash_done, target_detach)
3833 (target_disconnect, target_wait, target_resume)
3834 (target_pass_signals, target_program_signals, target_follow_fork)
3835 (target_mourn_inferior, target_search_memory)
3836 (target_thread_address_space, target_close)
3837 (target_find_new_threads, target_core_of_thread)
3838 (target_verify_memory, target_insert_mask_watchpoint)
3839 (target_remove_mask_watchpoint): Remove targetdebug code.
3840 (debug_to_post_attach, debug_to_prepare_to_store)
3841 (debug_to_files_info, debug_to_insert_breakpoint)
3842 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
3843 (debug_to_region_ok_for_hw_watchpoint)
3844 (debug_to_can_accel_watchpoint_condition)
3845 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
3846 (debug_to_watchpoint_addr_within_range)
3847 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
3848 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
3849 (debug_to_terminal_init, debug_to_terminal_inferior)
3850 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
3851 (debug_to_terminal_save_ours, debug_to_terminal_info)
3852 (debug_to_load, debug_to_post_startup_inferior)
3853 (debug_to_insert_fork_catchpoint)
3854 (debug_to_remove_fork_catchpoint)
3855 (debug_to_insert_vfork_catchpoint)
3856 (debug_to_remove_vfork_catchpoint)
3857 (debug_to_insert_exec_catchpoint)
3858 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
3859 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
3860 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
3861 (setup_target_debug): Call init_debug_target.
3862 * target.h (TARGET_DEBUG_PRINTER): New macro.
3863 (struct target_ops) <to_resume, to_wait, to_pass_signals,
3864 to_program_signals>: Use TARGET_DEBUG_PRINTER.
3865
2c51604d
GB
38662014-07-24 Gary Benson <gbenson@redhat.com>
3867
3868 * exceptions.h (throw_vfatal): Renamed to...
3869 (throw_vquit): New declaration.
3870 (throw_quit): Likewise.
3871 * exceptions.c (throw_vfatal): Renamed to...
3872 (throw_vquit): New function.
3873 (throw_quit): Likewise.
3874 (throw_error): Call throw_verror rather than throw_it.
3875 * utils.h (vfatal): Removed.
3876 (fatal): Likewise.
3877 * utils.c (vfatal): Removed.
3878 (fatal): Likewise.
3879 (internal_verror): Replaced call to fatal with call to throw_quit.
3880 (quit): Replaced calls to fatal with calls to throw_quit.
3881
34211963
ME
38822014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
3883
3884 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
3885 target_read_code.
3886
a52b4d3e
ME
38872014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
3888
3889 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
3890 less than zero in conditional expression.
3891
a8bdc56b
TT
38922014-07-23 Tom Tromey <tromey@redhat.com>
3893
3894 * make-target-delegates ($ARGS_PART): Match trailing close paren.
3895 ($INTRO_PART): Don't match whitespace.
3896 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
3897 argument matching.
3898 ($METHOD): Add $METHOD_TRAILER.
3899 (trim): Rewrite.
3900 (scan_target_h): New sub.
3901 Change main loop not to collect state.
3902 * target-delegates.c: Rebuild.
3903
91b52240
GB
39042014-07-23 Gary Benson <gbenson@redhat.com>
3905
3906 * cp-support.c (gdb_demangle): Fix build on systems without
3907 sigaltstack.
3908
45326f6f
JK
39092014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3910
3911 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
3912 for reference entry value target data value.
3913
e214cf6c
JK
39142014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3915
3916 * stack.c (read_frame_arg): Verify value_optimized_out before calling
3917 value_available_contents_eq.
3918
bddbbedd
PA
39192014-07-22 Pedro Alves <palves@redhat.com>
3920
3921 * value.c (allocate_optimized_out_value): Don't mark value as
3922 non-lazy.
3923
45c71484
JW
39242014-07-22 Jiong Wang <jiong.wang@arm.com>
3925
3926 * MAINTAINERS (Write After Approval): Update my email address.
3927
9597b22a
DE
39282014-07-20 Doug Evans <dje@google.com>
3929
3930 PR server/17147
3931 * remote.c (putpkt_binary): Add text to error message.
3932
91101fe5
YQ
39332014-07-20 Yao Qi <yao@codesourcery.com>
3934
3935 * eval.c: Remove "Chill" from comments.
3936 * gdbtypes.h: Likewise.
3937 * symtab.h: Likewise.
3938
c9402c95
YQ
39392014-07-20 Yao Qi <yao@codesourcery.com>
3940
3941 * std-operator.def: Update comments to TERNOP_SLICE.
3942
ae8fddda
YQ
39432014-07-20 Yao Qi <yao@codesourcery.com>
3944
3945 * std-operator.def: Remove BINOP_RANGE.
3946 * breakpoint.c (watchpoint_exp_is_const): Update.
3947 * expprint.c (dump_subexp_body_standard): Likewise.
3948 * eval.c (init_array_element): Remove dead code.
3949 (evaluate_subexp_standard): Likewise.
3950
9c816640
YQ
39512014-07-20 Yao Qi <yao@codesourcery.com>
3952
3953 * std-operator.def: Remove BINOP_IN.
3954 * breakpoint.c (watchpoint_exp_is_const): Update.
3955 * eval.c (evaluate_subexp_standard): Likewise.
3956 * expprint.c (dump_subexp_body_standard): Likewise.
3957
164224e9
ME
39582014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
3959
3960 * microblaze-tdep.c (microblaze_register_names): Add
3961 the rshr and rslr register names.
3962 (microblaze_gdbarch_init): Use of tdesc_has_registers.
3963 Use of tdesc_find_feature. Use of tdesc_data_alloc.
3964 Use of tdesc_numbered_register. Use of
3965 microblaze_register_g_packet_guesses. Use of
3966 tdesc_use_registers. Use of set_gdbarch_register_type.
3967 (microblaze_register_g_packet_guesses): New.
3968 * microblaze-tdep.h (microblaze_reg_num): Add
3969 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
3970 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
3971 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
3972 * features/microblaze-core.xml: New file.
3973 * features/microblaze-stack-protect.xml: New file.
3974 * features/microblaze-with-stack-protect.c: New file.
3975 * features/microblaze-with-stack-protect.xml: New file.
3976 * features/microblaze.xml: New file.
3977 * features/microblaze.c: New file.
3978 * features/Makefile (microblaze-with-stack-protect): Add
3979 microblaze-with-stack-protect microblaze and microblaze-expedite.
3980 * regformats/microblaze-with-stack-protect.dat: New file.
3981 * regformats/microblaze.dat: New file.
3982 * doc/gdb.texinfo (MicroBlaze Features): Added.
3983
e8b2341c
TT
39842014-07-18 Tom Tromey <tromey@redhat.com>
3985
3986 * exec.c (exec_ops): Now static.
3987 * exec.h (exec_ops): Don't declare.
3988
44e89118
TT
39892014-07-18 Tom Tromey <tromey@redhat.com>
3990
3991 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
3992 to find_target_beneath.
3993 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
3994 find_target_beneath.
3995 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
3996
b0ed115f
TT
39972014-07-18 Tom Tromey <tromey@redhat.com>
3998
3999 PR gdb/17130:
4000 * utils.c (quit): Use target_supports_terminal_ours.
4001 * target.h (target_supports_terminal_ours): Declare.
4002 * target.c (target_supports_delete_record): Don't check
4003 to_delete_record against NULL.
4004 (target_supports_terminal_ours): New function.
4005
e75fdfca
TT
40062014-07-18 Tom Tromey <tromey@redhat.com>
4007
4008 PR gdb/17130:
4009 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
4010 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
4011 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
4012 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
4013 * windows-nat.c (windows_xfer_partial): Always delegate.
4014 * record-btrace.c (record_btrace_xfer_partial): Simplify
4015 delegation.
4016 (record_btrace_fetch_registers, record_btrace_store_registers)
4017 (record_btrace_prepare_to_store, record_btrace_resume)
4018 (record_btrace_wait, record_btrace_find_new_threads)
4019 (record_btrace_thread_alive): Likewise.
4020 * procfs.c (procfs_xfer_partial): Always delegate.
4021 * corelow.c (core_xfer_partial): Always delegate.
4022 * sol-thread.c (sol_find_new_threads): Simplify delegation.
4023
83814951
TT
40242014-07-18 Tom Tromey <tromey@redhat.com>
4025
4026 * exec.c (exec_make_note_section): Move earlier.
4027
b8b8facf
DE
40282014-07-17 Doug Evans <dje@google.com>
4029
74b49205 4030 PR gdb/17170
b8b8facf
DE
4031 * maint.c (count_symtabs_and_blocks): Handle NULL
4032 current_program_space.
4033 (report_command_stats): Check global enabled flag in addition to
4034 recorded enabled flag.
4035 (make_command_stats_cleanup): Handle msg_type == 0, startup.
4036
69ff6be5
PA
40372014-07-16 Pedro Alves <palves@redhat.com>
4038
4039 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
4040
252db1b5
TT
40412014-07-16 Tom Tromey <tromey@redhat.com>
4042
4043 * target.h (struct target_ops) <to_delete_record>: Reformat
4044 comment.
4045
a432721e
TT
40462014-07-16 Tom Tromey <tromey@redhat.com>
4047
4048 * target-delegates.c: Rebuild.
4049
487d9753
PL
40502014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
4051
4052 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
4053 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
4054 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
4055 (avr_pointer_to_address): Likewise.
4056 (avr_address_class_type_flags): New function.
4057 (avr_address_class_type_flags_to_name): Likewise.
4058 (avr_address_class_name_to_type_flags): Likewise.
4059 (avr_gdbarch_init): Set address_class_type_flags,
4060 address_class_type_flags_to_name and
4061 address_class_name_to_type_flags.
4062
57745c90
PA
40632014-07-15 Pedro Alves <palves@redhat.com>
4064
4065 * linux-nat.c (kill_callback): Save errno and work with saved
4066 copy.
4067
2d40be18
SM
40682014-07-15 Simon Marchi <simon.marchi@ericsson.com>
4069
4070 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
4071
572f6555
EBM
40722014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4073
4074 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
4075 breakpoint support correctly.
4076
cc1c52ad
PA
40772014-07-14 Pedro Alves <palves@redhat.com>
4078
4079 * utils.c (prompt_for_continue): Call target_terminal_ours.
4080
1e973570
PA
40812014-07-14 Pedro Alves <palves@redhat.com>
4082
4083 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
4084 catch_errors. Don't re-enable stdin or notify observers where,
4085 and rethrow error.
4086 (fetch_inferior_event_wrapper): Delete.
4087
93d6eb10
PA
40882014-07-14 Pedro Alves <palves@redhat.com>
4089
4090 PR gdb/17072
4091 * top.c: Include "inf-loop.h".
4092 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
4093 field.
4094 (gdb_readline_wrapper_cleanup): Make the target async again, if it
4095 was async before.
4096 (gdb_readline_wrapper): Store whether the target is async, and
4097 make it sync.
4098
0017922d
PA
40992014-07-14 Pedro Alves <palves@redhat.com>
4100
4101 PR gdb/17072
4102 * top.c (gdb_readline_wrapper_line): Tweak comment.
4103 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
4104 the input handler callback.
4105
94696ad3
PA
41062014-07-14 Pedro Alves <palves@redhat.com>
4107
4108 PR gdb/17072
4109 * main.c: Include event-top.h.
4110 (handle_command_errors): New function.
4111 (catch_command_errors, catch_command_errors_const): Use it.
4112
9d1e69a2
PA
41132014-07-14 Pedro Alves <palves@redhat.com>
4114
4115 * exceptions.c (catch_command_errors, catch_command_errors_const):
4116 Moved to main.c.
4117 * exceptions.h (catch_command_errors_ftype)
4118 (catch_command_errors_const_ftype): Moved to main.c.
4119 (catch_command_errors, catch_command_errors_const): Delete
4120 declarations.
4121 * main.c (catch_command_errors_ftype)
4122 (catch_command_errors_const_ftype): Moved here from exceptions.h.
4123 (catch_command_errors, catch_command_errors_const)): Moved here
4124 from exceptions.c and make static.
4125
feefc97b
PA
41262014-07-14 Pedro Alves <palves@redhat.com>
4127
4128 * exceptions.c (print_any_exception): Delete.
4129 (catch_exceptions_with_msg): Use exception_print instead of
4130 print_any_exception.
4131 (catch_errors): Use exception_fprintf instead of
4132 print_any_exception.
4133 (catch_command_errors, catch_command_errors_const): Use
4134 exception_print instead of print_any_exception.
4135
c933f875
PA
41362014-07-14 Pedro Alves <palves@redhat.com>
4137
4138 * infcall.c (run_inferior_call): Set 'sync_execution' while
4139 running the inferior call.
4140
feb6f816
PA
41412014-07-14 Pedro Alves <palves@redhat.com>
4142
4143 * value.c (value_contents_equal): Delete function.
4144 * value.h (value_contents_equal): Delete declaration.
4145
d98b7a16
TT
41462014-07-14 Tom Tromey <tromey@redhat.com>
4147
4148 PR exp/17106:
4149 * gdbtypes.c (is_dynamic_type_internal): New function, from
4150 is_dynamic_type.
4151 (is_dynamic_type): Rewrite.
4152 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
4153 (resolve_dynamic_struct): Likewise.
4154 (resolve_dynamic_type_internal): New function, from
4155 resolve_dynamic_type.
4156 (resolve_dynamic_type): Rewrite.
4157
548740d6
TT
41582014-07-14 Tom Tromey <tromey@redhat.com>
4159
4160 * target.c (target_require_runnable): Also check record_stratum.
4161 Update comment.
4162
808f7ab1
YQ
41632014-07-11 Yao Qi <yao@codesourcery.com>
4164
4165 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
4166 thumb_instruction_restores_sp return true.
4167
540314bd
YQ
41682014-07-11 Yao Qi <yao@codesourcery.com>
4169
4170 * arm-tdep.c (thumb_instruction_restores_sp): New function.
4171 (thumb_in_function_epilogue_p): Call
4172 thumb_instruction_restores_sp.
4173
1db01f22
YQ
41742014-07-11 Yao Qi <yao@codesourcery.com>
4175
4176 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
4177 'add sp, #imm'.
4178 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
4179
3116063b
GB
41802014-07-11 Gary Benson <gbenson@redhat.com>
4181
4182 * amd64-linux-nat.c (gdbcore.h): Remove include.
4183 (regset.h): Likewise.
4184 (nat/linux-btrace.h): Likewise.
4185 (btrace.h): Likewise.
4186 (gdb_assert.h): Likewise.
4187 (string.h): Likewise.
4188 (sys/uio.h): Likewise.
4189 (sys/debugreg.h): Likewise.
4190 (sys/syscall.h): Likewise.
4191 (sys/procfs.h): Likewise.
4192 (sys/user.h): Likewise.
4193 (asm/ptrace.h): Likewise.
4194 (i386-nat.h): Likewise.
4195 * i386-linux-nat.c (i386-nat.h): Likewise.
4196 (regset.h): Likewise.
4197 (target.h): Likewise.
4198 (linux-nat.h): Likewise.
4199 (nat/linux-btrace.h): Likewise.
4200 (btrace.h): Likewise.
4201 (gdb_assert.h): Likewise.
4202 (string.h): Likewise.
4203 (sys/uio.h): Likewise.
4204 (sys/user.h): Likewise.
4205 (sys/procfs.h): Likewise.
4206 (sys/reg.h): Likewise.
4207 (sys/debugreg.h): Likewise.
4208 (ORIG_EAX): Remove definition.
4209
040baaf6
GB
42102014-07-11 Gary Benson <gbenson@redhat.com>
4211
4212 * i386-linux-nat.h: New file.
4213 * x86-linux-nat.h: Likewise.
4214 * x86-linux-nat.c: Likewise.
4215 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
4216 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
4217 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4218 * amd64-linux-nat.c (x86-linux-nat.h): New include.
4219 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
4220 (PTRACE_SETREGSET): Likewise.
4221 (arch_lwp_info): Now in x86-linux-nat.c.
4222 (have_ptrace_getregset): Now in x86-linux-nat.h.
4223 (x86_linux_dr_get): Now in x86-linux-nat.c.
4224 (x86_linux_dr_set): Likewise.
4225 (x86_linux_dr_get_addr): Likewise.
4226 (x86_linux_dr_get_control): Likewise.
4227 (x86_linux_dr_get_status): Likewise.
4228 (update_debug_registers_callback): Likewise.
4229 (x86_linux_dr_set_control): Likewise.
4230 (x86_linux_dr_set_addr): Likewise.
4231 (x86_linux_prepare_to_resume): Likewise.
4232 (x86_linux_new_thread): Likewise.
4233 (x86_linux_new_fork): Likewise.
4234 (x86_linux_get_thread_area): Likewise.
4235 (super_post_startup_inferior): Likewise.
4236 (x86_linux_child_post_startup_inferior): Likewise.
4237 (AMD64_LINUX_USER64_CS): Likewise.
4238 (AMD64_LINUX_X32_DS): Likewise.
4239 (x86_linux_read_description): Likewise.
4240 (x86_linux_enable_btrace): Likewise.
4241 (x86_linux_disable_btrace): Likewise.
4242 (x86_linux_teardown_btrace): Likewise.
4243 (x86_linux_read_btrace): Likewise.
4244 (x86_linux_create_target): Likewise.
4245 (x86_linux_add_target): Likewise.
4246 * i386-linux-nat.c (x86-linux-nat.h): New include.
4247 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
4248 (PTRACE_SETREGSET): Likewise.
4249 (arch_lwp_info): Now in x86-linux-nat.c.
4250 (have_ptrace_getregset): Now in x86-linux-nat.h.
4251 (x86_linux_dr_get): Now in x86-linux-nat.c.
4252 (x86_linux_dr_set): Likewise.
4253 (x86_linux_dr_get_addr): Likewise.
4254 (x86_linux_dr_get_control): Likewise.
4255 (x86_linux_dr_get_status): Likewise.
4256 (update_debug_registers_callback): Likewise.
4257 (x86_linux_dr_set_control): Likewise.
4258 (x86_linux_dr_set_addr): Likewise.
4259 (x86_linux_prepare_to_resume): Likewise.
4260 (x86_linux_new_thread): Likewise.
4261 (x86_linux_new_fork): Likewise.
4262 (x86_linux_get_thread_area): Likewise.
4263 (super_post_startup_inferior): Likewise.
4264 (x86_linux_child_post_startup_inferior): Likewise.
4265 (AMD64_LINUX_USER64_CS): Likewise.
4266 (AMD64_LINUX_X32_DS): Likewise.
4267 (x86_linux_read_description): Likewise.
4268 (x86_linux_enable_btrace): Likewise.
4269 (x86_linux_disable_btrace): Likewise.
4270 (x86_linux_teardown_btrace): Likewise.
4271 (x86_linux_read_btrace): Likewise.
4272 (x86_linux_create_target): Likewise.
4273 (x86_linux_add_target): Likewise.
4274
1aa7e42c
GB
42752014-07-11 Gary Benson <gbenson@redhat.com>
4276
4277 * amd64-linux-nat.c: Comment and whitespace changes.
4278 * i386-linux-nat.c: Comment and whitespace changes.
4279
c1e246a0
GB
42802014-07-11 Gary Benson <gbenson@redhat.com>
4281
4282 * amd64-linux-nat.c (x86_linux_create_target): New function.
4283 (x86_linux_add_target): Likewise.
4284 (_initialize_amd64_linux_nat): Delegate to the above new functions.
4285 * i386-linux-nat.c (x86_linux_create_target): New function.
4286 (x86_linux_add_target): Likewise.
4287 (_initialize_i386_linux_nat): Delegate to the above new functions.
4288
8c420b8d
GB
42892014-07-11 Gary Benson <gbenson@redhat.com>
4290
4291 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
4292 (ps_get_thread_area): Delegate to the above in 32-bit mode.
4293 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
4294 (ps_get_thread_area): Delegate to the above.
4295
cb1da100
GB
42962014-07-11 Gary Benson <gbenson@redhat.com>
4297
4298 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
4299 x86_linux_read_description. All uses updated. amd64-specific
4300 code conditionalized. Conditionalized i386-specific code added.
4301 Redundant cast removed.
4302 * i386-linux-nat.c (i386_linux_read_description): Renamed to
4303 x86_linux_read_description. All uses updated. i386-specific
4304 code conditionalized. Conditionalized amd64-specific code added.
4305 One sizeof replaced with the actual type it is describing.
4306
2acf3cd0
GB
43072014-07-11 Gary Benson <gbenson@redhat.com>
4308
4309 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
4310 x86_linux_dr_get. All uses updated.
4311 (amd64_linux_dr_set): Renamed to
4312 x86_linux_dr_set. All uses updated.
4313 (amd64_linux_dr_get_addr): Renamed to
4314 x86_linux_dr_get_addr. All uses updated.
4315 (amd64_linux_dr_get_control): Renamed to
4316 x86_linux_dr_get_control. All uses updated.
4317 (amd64_linux_dr_get_status): Renamed to
4318 x86_linux_dr_get_status. All uses updated.
4319 (amd64_linux_dr_set_control): Renamed to
4320 x86_linux_dr_set_control. All uses updated.
4321 (amd64_linux_dr_set_addr): Renamed to
4322 x86_linux_dr_set_addr. All uses updated.
4323 (amd64_linux_prepare_to_resume): Renamed to
4324 x86_linux_prepare_to_resume. All uses updated.
4325 (amd64_linux_new_thread): Renamed to
4326 x86_linux_new_thread. All uses updated.
4327 (amd64_linux_new_fork): Renamed to
4328 x86_linux_new_fork. All uses updated.
4329 (amd64_linux_child_post_startup_inferior): Renamed to
4330 x86_linux_child_post_startup_inferior. All uses updated.
4331 (amd64_linux_enable_btrace): Renamed to
4332 x86_linux_enable_btrace. All uses updated.
4333 (amd64_linux_disable_btrace): Renamed to
4334 x86_linux_disable_btrace. All uses updated.
4335 (amd64_linux_teardown_btrace): Renamed to
4336 x86_linux_teardown_btrace. All uses updated.
4337 (amd64_linux_read_btrace): Renamed to
4338 x86_linux_read_btrace. All uses updated.
4339 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
4340 x86_linux_dr_get. All uses updated.
4341 (i386_linux_dr_set): Renamed to
4342 x86_linux_dr_set. All uses updated.
4343 (i386_linux_dr_get_addr): Renamed to
4344 x86_linux_dr_get_addr. All uses updated.
4345 (i386_linux_dr_get_control): Renamed to
4346 x86_linux_dr_get_control. All uses updated.
4347 (i386_linux_dr_get_status): Renamed to
4348 x86_linux_dr_get_status. All uses updated.
4349 (i386_linux_dr_set_control): Renamed to
4350 x86_linux_dr_set_control. All uses updated.
4351 (i386_linux_dr_set_addr): Renamed to
4352 x86_linux_dr_set_addr. All uses updated.
4353 (i386_linux_prepare_to_resume): Renamed to
4354 x86_linux_prepare_to_resume. All uses updated.
4355 (i386_linux_new_thread): Renamed to
4356 x86_linux_new_thread. All uses updated.
4357 (i386_linux_new_fork): Renamed to
4358 x86_linux_new_fork. All uses updated.
4359 (i386_linux_child_post_startup_inferior): Renamed to
4360 x86_linux_child_post_startup_inferior. All uses updated.
4361 (i386_linux_enable_btrace): Renamed to
4362 x86_linux_enable_btrace. All uses updated.
4363 (i386_linux_disable_btrace): Renamed to
4364 x86_linux_disable_btrace. All uses updated.
4365 (i386_linux_teardown_btrace): Renamed to
4366 x86_linux_teardown_btrace. All uses updated.
4367 (i386_linux_read_btrace): Renamed to
4368 x86_linux_read_btrace. All uses updated.
4369
b9c1d481
AS
43702014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
4371
4372 * remote.c (extended_remote_post_attach): New function.
4373 (init_extended_remote_ops): Install it as to_post_attach method.
4374
7180e04a
PA
43752014-07-09 Pedro Alves <palves@redhat.com>
4376
4377 * infcmd.c (attach_command_post_wait): Don't call
4378 target_terminal_inferior here.
4379 (attach_command): Call it here instead.
4380
9a9a7608
AB
43812014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4382
4383 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
4384 field.
4385 * c-varobj.c (c_is_path_expr_parent): New function, moved core
4386 from varobj.c, with additional checks.
4387 (c_varobj_ops): Fill in is_path_expr_parent field.
4388 (cplus_varobj_ops): Fill in is_path_expr_parent field.
4389 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
4390 field.
4391 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
4392 ops method.
4393 (varobj_default_is_path_expr_parent): New function.
4394 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
4395 (varobj_default_is_path_expr_parent): Declare new function.
4396
1f267ae3
MM
43972014-07-08 Markus Metzger <markus.t.metzger@intel.com>
4398
4399 * infcmd.c (finish_backward): Turn internal error into normal error.
4400
b2ee242b
PA
44012014-07-07 Pedro Alves <palves@redhat.com>
4402
8a869bca 4403 PR gdb/17096
b2ee242b
PA
4404 * remote.c (async_handle_remote_sigint)
4405 (async_handle_remote_sigint_twice): Call
4406 gdb_call_async_signal_handler instead of
4407 mark_async_signal_handler.
4408
38e229b2
TT
44092014-07-07 Tom Tromey <tromey@redhat.com>
4410
4411 * target-delegates.c: Rebuild.
4412 * target.c (target_info_record): Remove.
4413 * record.c (info_record_command): Unconditionally call
4414 to_info_record.
4415 * target.h (struct target_ops) <to_info_record>: Use
4416 TARGET_DEFAULT_IGNORE.
4417 (target_info_record): Remove.
4418
f0f9ff95
TT
44192014-07-07 Tom Tromey <tromey@redhat.com>
4420
4421 * target.h (struct target_ops) <to_get_thread_local_address>: Use
4422 TARGET_DEFAULT_NORETURN.
4423 * target.c (generic_tls_error): New function.
4424 (target_translate_tls_address): Don't search target stack.
4425 * target-delegates.c: Rebuild.
4426 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
4427 stack.
4428 * linux-thread-db.c (thread_db_get_thread_local_address):
4429 Unconditionally call beneath target.
4430
4a5be5ee
MK
44312014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
4432
4433 * cli/cli-logging.c (pop_output_files): Assign targerr to
4434 gdb_stdtargerr.
4435
92c3b204
AB
44362014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
4437
4438 * MAINTAINERS (Write After Approval): Update my email address.
4439
9b11e3a7
GB
44402014-07-02 Gary Benson <gbenson@redhat.com>
4441
4442 * proc-service.c (ps_xfer_memory): Update comment.
4443 (ps_pstop): Remove unused function.
4444 (ps_pcontinue): Likewise.
4445 (ps_lstop): Likewise.
4446 (ps_lcontinue): Likewise.
4447 (ps_lgetxregsize): Likewise.
4448 (ps_lgetxregs): Likewise.
4449 (ps_lsetxregs): Likewise.
4450 (ps_plog): Likewise.
4451 (ps_ptread): Likewise.
4452 (ps_ptwrite): Likewise.
4453
cf363f18
MW
44542014-07-01 Mark Wielaard <mjw@redhat.com>
4455
4456 * dwarf2read.c (add_array_cv_type): New function.
4457 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
4458 (read_tag_volatile_type): Likewise.
4459
82ae6c8d
TT
44602014-07-01 Tom Tromey <tromey@redhat.com>
4461
4462 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
4463 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
4464 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
4465 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
4466 * command.h (cmd_cfunc_ftype): Move earlier.
4467 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
4468 (add_com, add_info): Use cmd_cfunc_ftype.
4469
96142726
TT
44702014-06-30 Tom Tromey <tromey@redhat.com>
4471
4472 * symtab.c (operator_chars): Make parameters and return type
4473 const.
4474 (file_matches): Make "files" const.
4475 (struct search_symbols_data) <files>: Now const.
4476 (search_symbols): Make "regexp" and "files" parameters const.
4477 Update.
4478 (symtab_symbol_info): Remove cast.
4479 (rbreak_command): Update.
4480 * symtab.h (search_symbols): Update.
4481
b67a2c6f
YQ
44822014-06-27 Yao Qi <yao@codesourcery.com>
4483
4484 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
4485 Change parameter type to 'struct thread_info *'. Caller
4486 updated.
4487 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
4488 Update declaration.
4489 * dummy-frame.c (struct dummy_frame_id): New.
4490 (dummy_frame_id_eq): New function.
4491 (struct dummy_frame) <id>: Change its type to 'struct
4492 dummy_frame_id'.
4493 (dummy_frame_push): Add parameter ptid and save it in
4494 dummy_frame_id.
4495 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
4496 inferior_ptid.
4497 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
4498 to inferior_ptid.
4499 (lookup_dummy_frame): Change parameter type to 'struct
4500 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
4501 instead of frame_id_eq.
4502 (dummy_frame_pop): Add parameter ptid. Callers updated.
4503 Update comments. Compose dummy_frame_id and pass it to
4504 lookup_dummy_frame.
4505 (dummy_frame_discard): Add parameter ptid.
4506 (dummy_frame_sniffer): Compose dummy_frame_id and call
4507 dummy_frame_id_eq instead of frame_id_eq.
4508 (fprint_dummy_frames): Print ptid.
4509 * dummy-frame.h: Remove comments.
4510 (dummy_frame_push): Add ptid in declaration.
4511 (dummy_frame_pop, dummy_frame_discard): Likewise.
4512
5b10184c
TT
45132014-06-26 Tom Tromey <tromey@redhat.com>
4514
4515 * cli/cli-cmds.c (error_no_arg): Make "why" const.
4516 * command.h (error_no_arg): Update.
4517
06900326
TT
45182014-06-26 Tom Tromey <tromey@redhat.com>
4519
4520 * cli/cli-setshow.c (do_set_command): Make "arg" const.
4521 (do_show_command): Make "arg" const.
4522 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
4523
c2bcbb1d
TT
45242014-06-26 Tom Tromey <tromey@redhat.com>
4525
4526 * record-full.c (record_full_get_bookmark): Make "args" const.
4527 (record_full_goto_bookmark): Make "raw_bookmark" const.
4528 * record.c (record_goto): New function.
4529 (cmd_record_goto): Use it. Now static.
4530 * record.h (record_goto): Declare.
4531 (cmd_record_goto): Remove declaration.
4532 * target-delegates.c: Rebuild.
4533 * target.h (struct target_ops) <to_get_bookmark,
4534 to_goto_bookmark>: Make parameter const.
4535
9cbe5fff
TT
45362014-06-26 Tom Tromey <tromey@redhat.com>
4537
4538 * defs.h (generic_load): Update.
4539 * m32r-rom.c (m32r_load_gen): Make "filename" const.
4540 * monitor.c (monitor_load): Make "args" const.
4541 * remote-m32r-sdi.c (m32r_load): Make "args" const.
4542 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
4543 const.
4544 (mips_load): Make "file" const.
4545 * remote-sim.c (gdbsim_load): Make "args" const.
4546 * remote.c (remote_load): Make "name" const.
4547 * symfile.c (generic_load): Make "args" const.
4548 * target-delegates.c: Rebuild.
4549 * target.c (target_load): Make "arg" const.
4550 (debug_to_load): Make "args" const.
4551 * target.h (struct target_ops) <to_load>: Make parameter const.
4552 (target_load): Update.
4553
34a68019
TT
45542014-06-26 Tom Tromey <tromey@redhat.com>
4555
4556 PR symtab/16902:
4557 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
4558 (dwarf2_physname, read_partial_die)
4559 (guess_partial_die_structure_name, fixup_partial_die)
4560 (guess_full_die_structure_name, anonymous_struct_prefix)
4561 (dwarf2_name): Use per-BFD obstack.
4562
efc889c1
YQ
45632014-06-26 Yao Qi <yao@codesourcery.com>
4564
4565 * dummy-frame.c (dummy_frame_sniffer): Move local variables
4566 dummyframe and this_id into inner block below.
4567
4395285e
YQ
45682014-06-26 Yao Qi <yao@codesourcery.com>
4569
4570 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
4571 with "signal_pass[0]" in the initialization of signal_pass.
4572
aef92902
MM
45732014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4574
4575 * record-btrace.c (record_btrace_generating_corefile)
4576 (record_btrace_prepare_to_generate_core)
4577 (record_btrace_done_generating_core): New.
4578 (record_btrace_xfer_partial, record_btrace_fetch_registers)
4579 (record_btrace_store_registers, record_btrace_prepare_to_store):
4580 Forward request when generating a core file.
4581 (record_btrace_open): Set record_btrace_generating_corefile to zero.
4582 (init_record_btrace_ops): Set to_prepare_to_generate_core and
4583 to_done_generating_core.
4584
5fff78c4
MM
45852014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4586
4587 * target.h (target_ops) <to_prepare_to_generate_core>
4588 <to_done_generating_core>: New.
4589 (target_prepare_to_generate_core, target_done_generating_core): New.
4590 * target.c (target_prepare_to_generate_core)
4591 (target_done_generating_core): New.
4592 * target-delegates.c: Regenerate.
4593 * gcore.c: (write_gcore_file): Rename to ...
4594 (write_gcore_file_1): ...this.
4595 (write_gcore_file): Call target_prepare_to_generate_core
4596 and target_done_generating_core.
4597
1d1f1ccb
MM
45982014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4599
4600 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
4601 * gcore.c (write_gcore_file): Free memory returned from
4602 make_corefile_notes.
4603 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
4604 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
4605
3343ef86
YQ
46062014-06-24 Yao Qi <yao@codesourcery.com>
4607
4608 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
4609 (arm_linux_init_abi): Set skip_trampoline_code with
4610 gdbarch_skip_trampoline_code instead of
4611 find_solib_trampoline_target.
4612
18d18ac8
YQ
46132014-06-24 Yao Qi <yao@codesourcery.com>
4614
4615 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
4616 arm_skip_bx_reg returns non-zero.
4617
80d8d390
YQ
46182014-06-24 Yao Qi <yao@codesourcery.com>
4619
4620 * arm-tdep.c (arm_skip_bx_reg): New function.
4621 (arm_skip_stub): Call arm_skip_bx_reg.
4622
6a18a01c
DB
46232014-06-23 Don Breazeal <donb@codesourcery.com>
4624
4625 * MAINTAINERS: Add myself as write-after-approval maintainer.
4626
8e9db26e
PA
46272014-06-23 Pedro Alves <palves@redhat.com>
4628
4629 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
4630 DR_CONTROL before setting DR0..DR3.
4631 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
4632 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
4633 bits of DR_CONTROL related to the debug register slot being
4634 disabled. If all slots are vacant, clear local slowdown as well,
4635 and assert DR_CONTROL is 0.
4636
70afc5b7
SC
46372014-06-23 Siva Chandra Reddy <sivachandra@google.com>
4638
4639 * python/lib/gdb/command/xmethods.py
4640 (get_method_matchers_in_loci): Lookup xmethod matchers in the
4641 current progspace only if the string "progspace" matches LOCUS_RE.
4642
840ed64d
JK
46432014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4644
4645 Fix --with-system-readline with readline-6.3 patch 5.
4646 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
4647 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
4648 types.
4649
26f2dc30
TT
46502014-06-20 Tom Tromey <tromey@redhat.com>
4651
4652 * dwarf2read.c (dw2_get_real_path): Use correct type in
4653 OBSTACK_CALLOC.
4654 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
4655
125f8a3d
GB
46562014-06-20 Gary Benson <gbenson@redhat.com>
4657
4658 * common/gdb_thread_db.h: Moved to nat. All includes updated.
4659 * common/glibc_thread_db.h: Likewise.
4660 * common/i386-cpuid.h: Likewise.
4661 * common/i386-gcc-cpuid.h: Likewise.
4662 * common/linux-btrace.h: Likewise.
4663 * common/linux-osdata.h: Likewise.
4664 * common/linux-procfs.h: Likewise.
4665 * common/linux-ptrace.h: Likewise.
4666 * common/mips-linux-watch.h: Likewise.
4667 * common/linux-btrace.c: Moved to nat.
4668 * common/linux-osdata.c: Likewise.
4669 * common/linux-procfs.c: Likewise.
4670 * common/linux-ptrace.c: Likewise.
4671 * common/mips-linux-watch.c: Likewise.
4672 * nat/gdb_thread_db.h: Moved from common.
4673 * nat/glibc_thread_db.h: Likewise.
4674 * nat/i386-cpuid.h: Likewise.
4675 * nat/i386-gcc-cpuid.h: Likewise.
4676 * nat/linux-btrace.c: Likewise.
4677 * nat/linux-btrace.h: Likewise.
4678 * nat/linux-osdata.c: Likewise.
4679 * nat/linux-osdata.h: Likewise.
4680 * nat/linux-procfs.c: Likewise.
4681 * nat/linux-procfs.h: Likewise.
4682 * nat/linux-ptrace.c: Likewise.
4683 * nat/linux-ptrace.h: Likewise.
4684 * nat/mips-linux-watch.c: Likewise.
4685 * nat/mips-linux-watch.h: Likewise.
4686 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
4687 (object file files): Reordered.
4688 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
4689 of glibc_thread_db.h.
4690
42995dbd
GB
46912014-06-20 Gary Benson <gbenson@redhat.com>
4692
4693 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
4694 (i386_dr_low_type): Moved to nat/i386-dregs.h.
4695 (i386_dr_low): Likewise.
4696 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
4697 (i386_dr_low_set_addr): Likewise.
4698 (i386_dr_low_get_addr): Likewise.
4699 (i386_dr_low_can_set_control): Likewise.
4700 (i386_dr_low_set_control): Likewise.
4701 (i386_dr_low_get_control): Likewise.
4702 (i386_dr_low_get_status): Likewise.
4703 (i386_get_debug_register_length): Likewise.
4704 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
4705 (i386_dr_low): Likewise.
4706 * nat/i386-dregs.c (i386-low.h): Remove include.
4707 (i386-nat.h): Likewise.
4708 (nat/i386-dregs.h): New include.
4709 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
4710 (i386_dr_low_set_addr): Likewise.
4711 (i386_dr_low_get_addr): Likewise.
4712 (i386_dr_low_can_set_control): Likewise.
4713 (i386_dr_low_set_control): Likewise.
4714 (i386_dr_low_get_control): Likewise.
4715 (i386_dr_low_get_status): Likewise.
4716 (i386_get_debug_register_length): Likewise.
4717 (debug_hw_points): Likewise.
4718
3ed9baed
IB
47192014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
4720
4721 * Makefile.in (SFILES): Add d-exp.y.
4722 (YYFILES): Add d-exp.c.
4723 (YYOBJ): Add d-exp.o.
4724 (local-maintainer-clean): Delete d-exp.c.
4725 * d-exp.y: New file.
4726 * d-lang.h (d_parse): New declaration.
4727 (d_error): New declaration.
4728 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
4729 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
4730 PREC_ORDER operators.
4731 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
4732
78c164b0
YQ
47332014-06-19 Yao Qi <yao@codesourcery.com>
4734
4735 * gdbthread.h (any_running): Remove the declaration.
4736 * thread.c (any_running): Remove.
4737
f6e29b6e
YQ
47382014-06-19 Yao Qi <yao@codesourcery.com>
4739
4740 * gdbthread.h (struct thread_info) <state>: Change its type to
4741 'enum thread_state'. Update comments.
4742
034f788c
PA
47432014-06-19 Pedro Alves <palves@redhat.com>
4744
4745 * gdbthread.h (ALL_THREADS): Delete.
4746 (ALL_NON_EXITED_THREADS): New macro.
4747 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
4748 instead of ALL_THREADS.
4749 * infrun.c (find_thread_needs_step_over)
4750 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
4751 instead of ALL_THREADS.
4752 * record-btrace.c (record_btrace_open)
4753 (record_btrace_stop_recording, record_btrace_close)
4754 (record_btrace_is_replaying, record_btrace_resume)
4755 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
4756 * remote.c (append_pending_thread_resumptions): Likewise.
4757 * thread.c (thread_apply_all_command): Likewise.
4758
46e33252
GB
47592014-06-19 Gary Benson <gbenson@redhat.com>
4760
4761 * i386-nat.c (i386_stopped_by_watchpoint):
4762 Use i386_dr_stopped_by_watchpoint.
4763 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
4764 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
4765
3a8ee006
GB
47662014-06-19 Gary Benson <gbenson@redhat.com>
4767
4768 * nat/i386-dregs.c: New file.
4769 * Makefile.in (i386-dregs.o): New rule.
4770 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
4771 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
4772 * config/i386/darwin.mh (NATDEPFILES): Likewise.
4773 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
4774 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
4775 * config/i386/go32.mh (NATDEPFILES): Likewise.
4776 * config/i386/linux.mh (NATDEPFILES): Likewise.
4777 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4778 * config/i386/mingw.mh (NATDEPFILES): Likewise.
4779 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
4780 * i386-nat.h (debug_hw_points): New declaration.
4781 * i386-nat.c (breakpoint.h): Remove include.
4782 (command.h): Likewise.
4783 (target.h): Likewise.
4784 (gdb_assert.h): Likewise.
4785 (debug_hw_points): Made nonstatic.
4786 (debug_printf): Now in i386-dregs.c.
4787 (TARGET_HAS_DR_LEN_8): Likewise.
4788 (DR_CONTROL_SHIFT): Likewise.
4789 (DR_CONTROL_SIZE): Likewise.
4790 (DR_RW_EXECUTE): Likewise.
4791 (DR_RW_WRITE): Likewise.
4792 (DR_RW_READ): Likewise.
4793 (DR_RW_IORW): Likewise.
4794 (DR_LEN_1): Likewise.
4795 (DR_LEN_2): Likewise.
4796 (DR_LEN_4): Likewise.
4797 (DR_LEN_8): Likewise.
4798 (DR_LOCAL_ENABLE_SHIFT): Likewise.
4799 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
4800 (DR_ENABLE_SIZE): Likewise.
4801 (DR_LOCAL_SLOWDOWN): Likewise.
4802 (DR_GLOBAL_SLOWDOWN): Likewise.
4803 (DR_CONTROL_RESERVED): Likewise.
4804 (I386_DR_CONTROL_MASK): Likewise.
4805 (I386_DR_VACANT): Likewise.
4806 (I386_DR_LOCAL_ENABLE): Likewise.
4807 (I386_DR_GLOBAL_ENABLE): Likewise.
4808 (I386_DR_DISABLE): Likewise.
4809 (I386_DR_SET_RW_LEN): Likewise.
4810 (I386_DR_GET_RW_LEN): Likewise.
4811 (I386_DR_WATCH_HIT): Likewise.
4812 (i386_wp_op_t): Likewise.
4813 (i386_show_dr): Likewise.
4814 (i386_length_and_rw_bits): Likewise.
4815 (i386_insert_aligned_watchpoint): Likewise.
4816 (i386_remove_aligned_watchpoint): Likewise.
4817 (i386_handle_nonaligned_watchpoint): Likewise.
4818 (i386_update_inferior_debug_regs): Likewise.
4819 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
4820 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
4821 (i386_region_ok_for_watchpoint):
4822 Use i386_dr_region_ok_for_watchpoint.
4823 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
4824
322a8e06
GB
48252014-06-19 Gary Benson <gbenson@redhat.com>
4826
4827 * i386-nat.c (i386_insert_hw_breakpoint): Use
4828 i386_insert_watchpoint.
4829 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
4830
8f26655c
GB
48312014-06-19 Gary Benson <gbenson@redhat.com>
4832
4833 * i386-nat.c (i386_dr_show): Renamed to
4834 i386_show_dr and made static. All uses updated.
4835 (i386_dr_length_and_rw_bits): Renamed to
4836 i386_length_and_rw_bits and made static.
4837 All uses updated.
4838 (i386_dr_insert_aligned_watchpoint): Renamed to
4839 i386_insert_aligned_watchpoint and made static.
4840 All uses updated.
4841 (i386_dr_remove_aligned_watchpoint): Renamed to
4842 i386_remove_aligned_watchpoint and made static.
4843 All uses updated.
4844 (i386_dr_update_inferior_debug_regs): Renamed to
4845 i386_update_inferior_debug_regs and made static.
4846 All uses updated.
4847 * nat/i386-dregs.h (i386_dr_show): Removed.
4848 (i386_dr_length_and_rw_bits): Likewise.
4849 (i386_dr_insert_aligned_watchpoint): Likewise.
4850 (i386_dr_remove_aligned_watchpoint): Likewise.
4851 (i386_dr_update_inferior_debug_regs): Likewise.
4852
992c7d70
GB
48532014-06-19 Gary Benson <gbenson@redhat.com>
4854
4855 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
4856 * configure: Regenerate.
4857 * config.in: Likewise.
4858 * main.c (signal.h): New include.
4859 (setup_alternate_signal_stack): New function.
4860 (captured_main): Call the above.
4861 * cp-support.c (signal.h): New include.
4862 (catch_demangler_crashes): New flag.
4863 (SIGJMP_BUF): New define.
4864 (SIGSETJMP): Likewise.
4865 (SIGLONGJMP): Likewise.
4866 (gdb_demangle_jmp_buf): New static global.
4867 (gdb_demangle_attempt_core_dump): Likewise.
4868 (gdb_demangle_signal_handler): New function.
4869 (gdb_demangle): If catch_demangler_crashes is set, install the
4870 above signal handler before calling bfd_demangle, and restore
4871 the original signal handler afterwards. Display the offending
4872 symbol and call demangler_warning the first time a segmentation
4873 fault is caught.
4874 (_initialize_cp_support): New maint set/show command.
4875
eae7090b
GB
48762014-06-19 Gary Benson <gbenson@redhat.com>
4877
4878 * utils.h (resource_limit_kind): New enum.
4879 (can_dump_core): New declaration.
4880 (warn_cant_dump_core): Likewise.
4881 (dump_core): Likewise.
4882 * utils.c (dump_core): Made nonstatic. Added new
4883 parameter "limit_kind".
4884 (can_dump_core): Made nonstatic. Moved printing code to...
4885 (warn_cant_dump_core): New function.
4886 (can_dump_core_warn): Likewise.
4887 (internal_vproblem): Replace calls to can_dump_core with
4888 calls to can_dump_core_warn. Supply new argument to each.
4889
57fcfb1b
GB
48902014-06-19 Gary Benson <gbenson@redhat.com>
4891
4892 * utils.h (demangler_vwarning): New declaration.
4893 (demangler_warning): Likewise.
4894 * utils.c (struct internal_problem)
4895 <user_settable_should_quit>: New field.
4896 <user_settable_should_dump_core>: Likewise
4897 (internal_error_problem): Add values for above new fields.
4898 (internal_warning_problem): Likewise.
4899 (demangler_warning_problem): New static global.
4900 (demangler_vwarning): New function.
4901 (demangler_warning): Likewise.
4902 (add_internal_problem_command): Selectively add commands.
4903 (_initialize_utils): New internal problem command.
4904 * maint.c (maintenance_demangler_warning): New function.
4905 (_initialize_maint_cmds): New command.
4906
17a40b44
TT
49072014-06-18 Tom Tromey <tromey@redhat.com>
4908
4909 * f-valprint.c (info_common_command_for_block): Update.
4910 * symtab.h (struct general_symbol_info) <common_block>: Now
4911 const.
4912
346d1dfe
TT
49132014-06-18 Tom Tromey <tromey@redhat.com>
4914
4915 * symtab.h (struct symtab) <blockvector>: Now const.
4916 * ada-lang.c (ada_add_global_exceptions): Update.
4917 * buildsym.c (augment_type_symtab): Update.
4918 * dwarf2read.c (dw2_lookup_symbol): Update.
4919 * jit.c (finalize_symtab): Update.
4920 * jv-lang.c (add_class_symtab_symbol): Update.
4921 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
4922 Update.
4923 * objfiles.c (objfile_relocate1): Update.
4924 * psymtab.c (lookup_symbol_aux_psymtabs)
4925 (maintenance_check_psymtabs): Update.
4926 * python/py-symtab.c (stpy_global_block, stpy_static_block):
4927 Update.
4928 * spu-tdep.c (spu_catch_start): Update.
4929 * symmisc.c (dump_symtab_1): Update.
4930 * symtab.c (lookup_global_symbol_from_objfile)
4931 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
4932 (basic_lookup_transparent_type_quick)
4933 (basic_lookup_transparent_type, find_pc_sect_symtab)
4934 (find_pc_sect_line, search_symbols): Update.
4935 * block.c (find_block_in_blockvector): Make "bl" const.
4936 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
4937 const.
4938 (blockvector_contains_pc): Make "bv" const.
4939 (block_for_pc_sect): Update.
4940 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
4941 (blockvector_contains_pc): Update.
4942 * breakpoint.c (resolve_sal_pc): Update.
4943 * inline-frame.c (block_starting_point_at): Update.
4944
1834676b
TT
49452014-06-18 Tom Tromey <tromey@redhat.com>
4946
4947 * completer.c (complete_line): Make "line_buffer" const.
4948 * completer.h (complete_line): Update.
4949
ac1a991b
TT
49502014-06-18 Tom Tromey <tromey@redhat.com>
4951
4952 * symtab.c (add_macro_name): Remove unneeded cast.
4953
5bc98e52
TT
49542014-06-18 Tom Tromey <tromey@redhat.com>
4955
4956 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
4957 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
4958
8236def8
TT
49592014-06-18 Tom Tromey <tromey@redhat.com>
4960
4961 * probe.c (info_probes_for_ops): Make "arg" const.
4962 * probe.h (info_probes_for_ops): Update.
4963
3977b71f
TT
49642014-06-18 Tom Tromey <tromey@redhat.com>
4965
4966 * varobj.c (varobj_create): Update.
4967 * valops.c (value_of_this): Update.
4968 * tracepoint.c (add_local_symbols, scope_info): Update.
4969 * symtab.h (struct general_symbol_info) <block>: Now const.
4970 * symtab.c (skip_prologue_sal)
4971 (default_make_symbol_completion_list_break_on)
4972 (skip_prologue_using_sal): Update.
4973 * stack.h (iterate_over_block_locals)
4974 (iterate_over_block_local_vars): Update.
4975 * stack.c (print_frame_args): Update.
4976 (iterate_over_block_locals, iterate_over_block_local_vars): Make
4977 parameter const.
4978 (get_selected_block): Make return type const.
4979 * python/py-frame.c (frapy_block): Update.
4980 * python/py-block.c (gdbpy_block_for_pc): Update.
4981 * p-exp.y (%union) <bval>: Now const.
4982 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
4983 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
4984 * m2-exp.y (%union) <bval>: Now const.
4985 * linespec.c (get_current_search_block): Make return type const.
4986 (create_sals_line_offset, find_label_symbols): Update.
4987 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
4988 Update.
4989 (block_starting_point_at): Make "block" const.
4990 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
4991 (check_exception_resume): Update.
4992 * guile/scm-frame.c (gdbscm_frame_block): Update.
4993 * guile/scm-block.c (gdbscm_lookup_block): Update.
4994 * frame.h (get_frame_block): Update.
4995 (get_selected_block): Make return type const.
4996 * frame.c (frame_id_inner): Update.
4997 * f-valprint.c (info_common_command_for_block)
4998 (info_common_command): Update.
4999 * dwarf2loc.c (dwarf2_find_location_expression)
5000 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
5001 (locexpr_describe_location_piece): Update.
5002 * c-exp.y (%union) <bval>: Now const.
5003 * breakpoint.c (resolve_sal_pc): Update.
5004 * blockframe.c (get_frame_block):Make return type const.
5005 (get_pc_function_start, get_frame_function, find_pc_sect_function)
5006 (block_innermost_frame): Update.
5007 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
5008 (block_for_pc, block_for_pc_sect): Update.
5009 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
5010 'pblock' const.
5011 (block_for_pc_sect, block_for_pc): Make return type const.
5012 * ax-gdb.c (gen_expr): Update.
5013 * alpha-mdebug-tdep.c (find_proc_desc): Update.
5014 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
5015 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
5016 (ada_read_var_value): Update.
5017 * ada-exp.y (struct name_info) <block>: Now const.
5018 (%union): Likewise.
5019 (block_lookup): Constify.
5020
b9228891
GB
50212014-06-18 Gary Benson <gbenson@redhat.com>
5022
5023 * nat/i386-dregs.h: New file.
5024 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
5025 * i386-nat.h (i386-dregs.h): New include.
5026 (DR_FIRSTADDR): Now in i386-dregs.h.
5027 (DR_LASTADDR): Likewise.
5028 (DR_NADDR): Likewise.
5029 (DR_STATUS): Likewise.
5030 (DR_CONTROL): Likewise.
5031 (i386_debug_reg_state): Likewise.
5032 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
5033
a1aa2221
LM
50342014-06-18 Don Breazeal <donb@codesourcery.com>
5035
5036 * breakpoint.c (set_longjmp_breakpoint): Call
5037 momentary_breakpoint_from_master with additional argument.
5038 (set_longjmp_breakpoint_for_call_dummy): Call
5039 momentary_breakpoint_from_master with additional argument.
5040 (set_std_terminate_breakpoint): Call
5041 momentary_breakpoint_from_master with additional argument.
5042 (momentary_breakpoint_from_master): Add argument to function
5043 definition and use it to initialize structure member flag.
74228e77 5044 (clone_momentary_breakpoint): Call
a1aa2221
LM
5045 momentary_breakpoint_from_master with additional argument.
5046 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
5047 member flags set in momentary_breakpoint_from_master.
5048
4be83cc2
GB
50492014-06-18 Gary Benson <gbenson@redhat.com>
5050
5051 * i386-nat.c (i386_show_dr): Renamed to
5052 i386_dr_show and made nonstatic. All uses updated.
5053 (i386_length_and_rw_bits): Renamed to
5054 i386_dr_length_and_rw_bits and made nonstatic.
5055 All uses updated.
5056 (i386_insert_aligned_watchpoint): Renamed to
5057 i386_dr_insert_aligned_watchpoint and made nonstatic.
5058 All uses updated.
5059 (i386_remove_aligned_watchpoint): Renamed to
5060 i386_dr_remove_aligned_watchpoint and made nonstatic.
5061 All uses updated.
5062 (i386_update_inferior_debug_regs): Renamed to
5063 i386_dr_update_inferior_debug_regs and made nonstatic.
5064 All uses updated.
5065
131aa0d4
GB
50662014-06-18 Gary Benson <gbenson@redhat.com>
5067
5068 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
5069 (i386_dr_low_can_set_control): Likewise.
5070 (i386_dr_low_set_addr): Likewise.
5071 (i386_dr_low_set_control): Likewise.
5072 (i386_dr_low_get_addr): Likewise.
5073 (i386_dr_low_get_status): Likewise.
5074 (i386_dr_low_get_control): Likewise.
5075 (i386_insert_aligned_watchpoint): Use new macros.
5076 (i386_update_inferior_debug_regs): Likewise.
5077 (i386_stopped_data_address): Likewise.
5078
d9305f7f
GB
50792014-06-18 Gary Benson <gbenson@redhat.com>
5080
5081 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
5082 New parameter. All uses updated.
5083
ea008da4
GB
50842014-06-18 Gary Benson <gbenson@redhat.com>
5085
5086 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
5087 All uses updated.
5088
1b6d4134
GB
50892014-06-18 Gary Benson <gbenson@redhat.com>
5090
5091 * i386-nat.c (debug_printf): New macro.
5092 (i386_get_debug_register_length): Likewise.
5093 (TARGET_HAS_DR_LEN_8): Use above macro.
5094 (i386_show_dr): Use debug_printf instead of puts_unfiltered
5095 and printf_unfiltered. Use phex to format values.
5096
9b4550ef
GB
50972014-06-18 Gary Benson <gbenson@redhat.com>
5098
5099 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
5100 Make const.
5101
6e62758f
GB
51022014-06-18 Gary Benson <gbenson@redhat.com>
5103
5104 * i386-nat.c: Comment changes.
5105
51c79e94
GB
51062014-06-18 Gary Benson <gbenson@redhat.com>
5107
5108 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
5109
3e11889a
GB
51102014-06-18 Gary Benson <gbenson@redhat.com>
5111
5112 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
5113 (i386_insert_aligned_watchpoint): Likewise.
5114 (i386_remove_aligned_watchpoint): Likewise.
5115 (i386_handle_nonaligned_watchpoint): Likewise.
5116
fc6e2f03
GB
51172014-06-18 Gary Benson <gbenson@redhat.com>
5118
5119 * i386-nat.c: Whitespace changes.
5120
2afe7d50
SB
51212014-06-17 Samuel Bronson <naesten@gmail.com>
5122
5123 * MAINTAINERS: Update Roland McGrath's email address.
5124 Thanks to Sergio Durigan Junior for pointing out that he left
6a83deea 5125 Red Hat a while ago, and giving me a current address.
2afe7d50 5126
3bca49ee
TT
51272014-06-17 Tom Tromey <tromey@redhat.com>
5128
5129 * utils.h (savestring): Remove declaration.
5130
6e366df1
TT
51312014-06-17 Tom Tromey <tromey@redhat.com>
5132
5133 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
5134
6be47f0c
KS
51352014-06-16 Keith Seitz <keiths@redhat.com>
5136
5137 PR mi/15863
5138 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
5139 to update the varobj if inferior_ptid is null_ptid.
5140
7bc112c1
TT
51412014-06-16 Tom Tromey <tromey@redhat.com>
5142
5143 * target.h (struct target_ops) <to_info_proc>: Make parameter
5144 const.
5145 (target_info_proc): Update.
5146 * target.c (target_info_proc): Make "args" const.
5147 * procfs.c (procfs_info_proc): Update.
5148 * linux-tdep.c (linux_info_proc): Update.
5149 (linux_core_info_proc_mappings): Make "args" const.
5150 (linux_core_info_proc): Update.
5151 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
5152 * gdbarch.c: Rebuild.
5153 * gdbarch.h: Rebuild.
5154 * corelow.c (core_info_proc): Update.
5155
fee354ee
TT
51562014-06-16 Tom Tromey <tromey@redhat.com>
5157
5158 * target.h (struct target_ops) <to_disconnect>: Make parameter
5159 const.
5160 (target_disconnect): Update.
5161 * target.c (target_disconnect): Make "args" const.
5162 * target-delegates.c: Rebuild.
5163 * remote.c (remote_disconnect): Update.
5164 * record.h (record_disconnect): Update.
5165 * record.c (record_disconnect): Update.
5166 * inf-child.c (inf_child_disconnect): Update.
5167
a30bf1f1
TT
51682014-06-16 Tom Tromey <tromey@redhat.com>
5169
5170 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
5171 * target.c (debug_to_rcmd, default_rcmd): Update.
5172 * target-delegates.c: Rebuild.
5173 * remote.c (remote_rcmd): Update.
5174 * monitor.c (monitor_rcmd): Update.
5175
d03de421
PA
51762014-06-16 Pedro Alves <palves@redhat.com>
5177
5178 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
5179 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
5180 have OBJF_SHARED set.
5181 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
5182 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
5183 instead of OBJF_USERLOADED.
5184 * objfiles.h (OBJF_SHARED): Update comment.
5185 (userloaded_objfile_contains_address_p): Rename to ...
5186 (shared_objfile_contains_address_p): ... this, and update
5187 comments.
5188 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
5189 new objfile.
5190 (remove_symbol_file_command): Skip objfiles that don't have
5191 OBJF_SHARED set.
5192
99f4262f
TT
51932014-06-16 Tom Tromey <tromey@redhat.com>
5194
5195 * minsyms.h (prim_record_minimal_symbol)
5196 (prim_record_minimal_symbol_and_info): Update comments.
5197
97d66cc6
EZ
51982014-06-14 Eli Zaretskii <eliz@gnu.org>
5199
5200 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
5201 or --without-guile, according to how GDB was built.
5202
635c7e8a
TT
52032014-06-13 Tom Tromey <tromey@redhat.com>
5204
5205 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
5206 to help_list.
5207 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
5208 to help_list.
5209 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
5210 help_list.
5211 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
5212 help_list.Pass all_commands, not -1, to help_list.
5213 * cli/cli-dump.c (dump_command, append_command)
5214 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
5215 (binary_dump_command, binary_append_command): Pass all_commands,
5216 not -1, to help_list.
5217 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
5218 -1, to help_list.
5219 * valprint.c (set_print, set_print_raw): Pass all_commands, not
5220 -1, to help_list.
5221 * typeprint.c (set_print_type): Pass all_commands, not -1, to
5222 help_list.
5223 * top.c (set_history): Pass all_commands, not -1, to help_list.
5224 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
5225 all_commands, not -1, to help_list.
5226 * symfile.c (overlay_command): Pass all_commands, not -1, to
5227 help_list.
5228 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
5229 help_list.
5230 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
5231 help_list.
5232 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
5233 -1, to help_list.
5234 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
5235 not -1, to help_list.
5236 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
5237 not -1, to help_list.
5238 * maint.c (maintenance_command, maintenance_info_command)
5239 (maintenance_print_command, maintenance_set_cmd): Pass
5240 all_commands, not -1, to help_list.
5241 * macrocmd.c (macro_command): Pass all_commands, not -1, to
5242 help_list.
5243 * language.c (set_check): Pass all_commands, not -1, to help_list.
5244 * infcmd.c (unset_command): Pass all_commands, not -1, to
5245 help_list.
5246 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
5247 help_list.
5248 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
5249 help_list.
5250 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
5251 help_list.
5252 * breakpoint.c (save_command): Pass all_commands, not -1, to
5253 help_list.
5254 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
5255 all_commands, not -1, to help_list.
5256
b94ade42
PL
52572014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
5258
5259 * regcache.c (struct register_to_invalidate): New structure.
5260 (do_register_invalidate, make_cleanup_regcache_invalidate): New
5261 functions.
5262 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
5263
31f628ae
YQ
52642014-06-12 Yao Qi <yao@codesourcery.com>
5265
5266 * varobj.c (varobj_get_num_children): Call
5267 varobj_is_dynamic_p.
5268 (varobj_list_children): Likewise.
5269 (varobj_update): Likewise. Update comments.
5270
cde5ef40
YQ
52712014-06-12 Yao Qi <yao@codesourcery.com>
5272
5273 * varobj.c (varobj_pretty_printed_p): Rename to ...
5274 (varobj_is_dynamic_p): ... this. New function.
5275 * varobj.h (varobj_pretty_printed_p): Remove declaration.
5276 (varobj_is_dynamic_p): Declare.
5277 * mi/mi-cmd-var.c (print_varobj): All callers updated.
5278 (mi_print_value_p, varobj_update_one): Likewise.
5279
576ea091
YQ
52802014-06-12 Pedro Alves <pedro@codesourcery.com>
5281 Yao Qi <yao@codesourcery.com>
5282
5283 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
5284 (varobj_get_iterator): Wrap up code for pretty-printer by
5285 "#if HAVE_PYTHON" and "#endif".
5286 (update_dynamic_varobj_children): Likewise.
5287
827f100c
YQ
52882014-06-12 Pedro Alves <pedro@codesourcery.com>
5289 Yao Qi <yao@codesourcery.com>
5290
5291 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
5292 gdb_python_initialized is false. Move some code from varobj.c.
5293 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
5294 * varobj.c: Move "varobj-iter.h" inclusion earlier.
5295 (struct varobj_item): Moved to varobj-iter.h".
5296 (varobj_clear_saved_item): New function.
5297 (update_dynamic_varobj_children): Move python-related code to
5298 py-varobj.c.
5299 (free_variable): Call varobj_clear_saved_item and
5300 varobj_iter_delete.
5301
e5250216
YQ
53022014-06-12 Pedro Alves <pedro@codesourcery.com>
5303 Yao Qi <yao@codesourcery.com>
5304
5305 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
5306 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
5307 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
5308 (py-varobj.o): New rule.
5309 * python/py-varobj.c: New file.
5310 * python/python-internal.h (py_varobj_get_iterator): Declare.
5311 * varobj-iter.h: New file.
5312 * varobj.c: Include "varobj-iter.h"
5313 (struct varobj) <child_iter>: Change its type from "PyObject *"
5314 to "struct varobj_iter *".
5315 <saved_item>: Likewise.
5316 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
5317 [HAVE_PYTHON] (varobj_get_iterator): New function.
5318 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
5319 python-specific code to python/py-varobj.c.
5320 (install_visualizer): Call varobj_iter_delete instead of
5321 Py_XDECREF.
5322 * varobj.h (varobj_ensure_python_env): Declare.
5323
5a2e0d6e
YQ
53242014-06-12 Yao Qi <yao@codesourcery.com>
5325
5326 * varobj.c (struct varobj_item): New structure.
5327 (create_child_with_value): Update declaration.
5328 (varobj_add_child): Replace arguments 'name' and 'value' with
5329 'item'. All callers updated.
5330 (install_dynamic_child): Likewise.
5331 (update_dynamic_varobj_children): Likewise.
5332 (varobj_add_child): Likewise.
5333 (create_child_with_value): Likewise.
5334
919b9a93
JB
53352014-06-11 Joel Brobecker <brobecker@adacore.com>
5336
5337 * NEWS: Create a new section for the next release branch.
5338 Rename the section of the current branch, now that it has
5339 been cut.
5340
71a55bdf
JB
53412014-06-11 Joel Brobecker <brobecker@adacore.com>
5342
5343 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
5344 * version.in: Bump version to 7.8.50.DATE-cvs.
5345
364fe1f7
PA
53462014-06-11 Pedro Alves <palves@redhat.com>
5347
5348 PR remote/17028
5349 * ser-mingw.c (net_windows_socket_check_pending): New function.
5350 (net_windows_select_thread): Ignore spurious wakeups. Use
5351 net_windows_socket_check_pending.
5352 (net_windows_wait_handle): Check for pending events with
5353 ioctlsocket, through net_windows_socket_check_pending, instead of
5354 checking the socket's event.
5355
5a6c7709
SC
53562014-06-10 Siva Chandra Reddy <sivachandra@google.com>
5357
5358 * python/python-internal.h (gdb_PyObject_GetAttrString)
5359 (gdb_PyObject_HasAttrString): New inline function definitions.
5360 * py-value.c (get_field_flag): Remove the now unnecessary cast to
5361 char * of the second argument to PyObject_GetAttrString.
74228e77 5362
0e58ee40
JB
53632014-06-10 Joel Brobecker <brobecker@adacore.com>
5364
5365 * serial.c (serial_write): Fix index of character to be printed
5366 in call to serial_logchar when serial debug traces are enabled.
5367
d190df30
JB
53682014-06-10 Joel Brobecker <brobecker@adacore.com>
5369
5370 * gdbtypes (resolve_dynamic_range): Add function description.
5371
b4b01d36
PA
53722014-06-09 Pedro Alves <palves@redhat.com>
5373
5374 * linux-nat.c (linux_child_follow_fork): Initialize status with
5375 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
5376 inner block. Only pass the signal to PTRACE_DETACH if in pass
5377 state.
5378
3657956b
GB
53792014-06-09 Gary Benson <gbenson@redhat.com>
5380
5381 * common/signals.c (gdb_signal_from_host): Reorder to separate
5382 the always-available ANSI-standard signals from the signals that
5383 require checking.
5384 (do_gdb_signal_to_host): Likewise.
5385 * proc-events.c (signal_table): Likewise.
5386
c077881a
HZ
53872014-06-08 Hui Zhu <hui@codesourcery.com>
5388
5389 * common/linux-ptrace.c (linux_disable_event_reporting): New
5390 function.
5391 * common/linux-ptrace.h (linux_disable_event_reporting): New
5392 declaration.
5393 * linux-nat.c (linux_child_follow_fork): Do a single step before
5394 detach.
5395
4186eb54
KS
53962014-06-07 Keith Seitz <keiths@redhat.com>
5397
5398 Revert:
5399 PR c++/16253
5400 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5401 from symbol_matches_domain in symtab.c. All local callers
5402 of symbol_matches_domain updated.
5403 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5404 search STRUCT_DOMAIN.
5405 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5406 independently. standard_lookup will do that automatically.
5407 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5408 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5409 (cp_lookup_symbol_in_namespace): Likewise.
5410 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5411 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5412 may return a STRUCT_DOMAIN match.
5413 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5414 * cp-support.c: Include language.h.
5415 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5416 VAR_DOMAIN.
5417 * psymtab.c (match_partial_symbol): Compare the requested
5418 domain with the symbol's domain directly.
5419 (lookup_partial_symbol): Likewise.
5420 * symtab.c (lookup_symbol_in_language): Explain when/why
5421 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5422 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5423 appropriate languages.
5424 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5425 and moved to ada-lang.c
5426 (lookup_block_symbol): Explain that this function only returns
5427 symbol matching the requested DOMAIN.
5428 Compare the requested domain with the symbol's domain directly.
5429 (iterate_over_symbols): Compare the requested domain with the
5430 symbol's domain directly.
5431 * symtab.h (symbol_matches_domain): Remove.
5432
25326a28 54332014-06-06 Doug Evans <xdje42@gmail.com>
d2929fdc
DE
5434
5435 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
5436 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
5437 (gdbscm_guile_version_is_at_least): Declare.
5438 (gdbscm_scm_string_to_int): Declare.
5439 * guile/guile.c (gdbscm_guile_major_version): New global.
5440 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
5441 (guile_datadir): New static global.
5442 (gdbscm_guile_data_directory): New function.
5443 (initialize_scheme_side): Update.
5444 (misc_guile_functions): Add guile-data-directory.
5445 (initialize_gdb_module): Fetch guile version number.
5446 * guile/lib/gdb.scm: Remove call to add-to-load-path.
5447 * guile/lib/gdb/init.scm (%initialize!): Ditto.
5448 * guile/lib/gdb/boot.scm: Use guile-data-directory.
5449 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
5450 comments.
5451 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
5452 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
5453 * guile/scm-value.c (gdbscm_value_to_string): Only call
5454 scm_port_conversion_strategy if Guile version >= 2.0.6.
5455
0a770bb2 54562014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
5457
5458 * main.c (print_gdb_help): Add -q and --silent.
5459
73ba372c
GB
54602014-06-06 Gary Benson <gbenson@redhat.com>
5461
5462 * common/signals.c: Remove preprocessor conditionals for
5463 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
5464 SIGSEGV and SIGTERM.
5465 * proc-events.c: Likewise.
5466
c33b2f12
MM
54672014-06-06 Markus Metzger <markus.t.metzger@intel.com>
5468
5469 * symfile.c (symfile_free_objfile): Remove restriction to
5470 OBJF_USERLOADED.
5471 * symfile-mem.c (symbol_file_add_from_memory): Call
5472 add_target_sections_of_objfile.
5473
fb934770
LC
54742014-06-05 Ludovic Courtès <ludo@gnu.org>
5475
5476 * guile/scm-value.c (gdbscm_history_append_x): Use
5477 'vlscm_get_value_smob_arg_unsafe' instead of
5478 'vlscm_scm_to_value'.
5479
6ef284bd
SM
54802014-06-05 Simon Marchi <simon.marchi@ericsson.com>
5481
5482 PR mi/15806
5483 * utils.c (printchar): Don't escape at all if quoter is NUL.
5484 Update function documentation to clarify effect of parameter
5485 QUOTER.
5486 * remote.c (escape_buffer): Pass '\\' as the quoter to
5487 fputstrn_unfiltered.
5488 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
5489 generate the output.
5490 (mi_solib_unloaded): Same.
5491
270c9937
JB
54922014-06-05 Joel Brobecker <brobecker@adacore.com>
5493
5494 * development.sh: Delete.
5495 * Makefile.in (config.status): Adjust dependency on development.sh.
5496 * configure.ac: Adjust development.sh source call.
5497 * configure: Regenerate.
5498
16f691fb
DE
54992014-06-04 Doug Evans <xdje42@gmail.com>
5500
5501 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
5502 is_scheme_bkpt, spec.
5503 (bpscm_make_breakpoint_smob): Initialize new members.
5504 (gdbscm_create_breakpoint_x): Split into two ...
5505 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
5506 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
5507 (scheme_function breakpoint_functions): Update.
5508 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
5509 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
5510 register-breakpoint!.
5511
ef7cab6b
JB
55122014-06-04 Joel Brobecker <brobecker@adacorer.com>
5513
5514 PR server/17023
5515 * mem-break.c (z_type_supported): Return zero if
5516 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
5517
012370f6
TT
55182014-06-04 Tom Tromey <tromey@redhat.com>
5519
5520 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
5521 value_from_contents_and_address_unresolved.
5522 (ada_template_to_fixed_record_type_1): Likewise.
5523 (ada_which_variant_applies): Likewise.
5524 * value.h (value_from_contents_and_address_unresolved): Declare.
5525 * value.c (value_from_contents_and_address_unresolved): New
5526 function.
5527 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
5528 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
5529 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
5530
92e2a17f
TT
55312014-06-04 Tom Tromey <tromey@redhat.com>
5532
5533 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
5534
c0939df1
TT
55352014-06-04 Tom Tromey <tromey@redhat.com>
5536
5537 * procfs.c (procfs_attach): Make "args" const.
5538 * windows-nat.c (windows_attach): Make "args" const.
5539 * nto-procfs.c (procfs_attach): Make "args" const.
5540 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
5541 * go32-nat.c (go32_attach): Make "args" const.
5542 * gnu-nat.c (gnu_attach): Make "args" const.
5543 * darwin-nat.c (darwin_attach): Make "args" const.
5544 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
5545 * linux-nat.c (linux_nat_attach): Make "args" const.
5546 * remote.c (extended_remote_attach_1, extended_remote_attach):
5547 Make "args" const.
5548 * target.h (struct target_ops) <to_attach>: Make "args" const.
5549 (find_default_attach): Likewise.
5550 * utils.c (parse_pid_to_attach): Make "args" const.
5551 * utils.h (parse_pid_to_attach): Update.
5552
8eaff7cd
TT
55532014-06-04 Tom Tromey <tromey@redhat.com>
5554
5555 * target-delegates.c: Rebuild.
5556 * target.c (default_thread_address_space): New function.
5557 (target_thread_address_space): Simplify.
5558 * target.h (struct target_ops) <to_thread_address_space>: Add
5559 TARGET_DEFAULT_FUNC.
5560
1913f160
DE
55612014-06-04 Doug Evans <xdje42@gmail.com>
5562
5563 * guile/scm-type.c (type_smob): Remove duplicate typedef.
5564
70ad5bff
MM
55652014-06-04 Markus Metzger <markus.t.metzger@intel.com>
5566
5567 * record-btrace.c: Include event-loop.h and inf-loop.h.
5568 (record_btrace_resume_exec_dir)
5569 (record_btrace_async_inferior_event_handler)
5570 (record_btrace_handle_async_inferior_event): New.
5571 (record_btrace_open): Create async event handler.
5572 (record_btrace_close): Delete async event handler.
5573 (record_btrace_resume): Set record_btrace_resume_exec_dir,
5574 Mark async event handler.
5575 (record_btrace_execution_direction): New.
5576 (init_record_btrace_ops): Initialize to_execution_direction.
5577
b6210538
DE
55782014-06-03 Doug Evans <xdje42@gmail.com>
5579
5580 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
5581 (gdbscm_make_parameter): Ditto.
5582
a5b1fd27
DE
55832014-06-03 Doug Evans <dje@google.com>
5584
5585 * exec.c (exec_close_1): Call clear_section_table instead of
5586 resize_section_table.
5587 (clear_section_table): New function.
5588 (resize_section_table): Make static. Rename arg num_added to
5589 adjustment.
5590 * exec.h (clear_section_table): Declare.
5591 (resize_section_table): Delete.
5592 * progspace.c (release_program_space): Call clear_section_table
5593 instead of resize_section_table.
5594
0c6e92a5
SC
55952014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5596
5597 * NEWS (Python Scripting): Add entry about the new xmethods
5598 feature.
5599
883964a7
SC
56002014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5601
5602 * python/py-xmethods.c: New file.
5603 * python/py-objfile.c (objfile_object): New field 'xmethods'.
5604 (objfpy_dealloc): XDECREF on the new xmethods field.
5605 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
5606 field.
5607 (objfpy_get_xmethods): New function.
5608 (objfile_getset): New entry 'xmethods'.
5609 * python/py-progspace.c (pspace_object): New field 'xmethods'.
5610 (pspy_dealloc): XDECREF on the new xmethods field.
5611 (pspy_new, pspace_to_pspace_object): Initialize xmethods
5612 field.
5613 (pspy_get_xmethods): New function.
5614 (pspace_getset): New entry 'xmethods'.
5615 * python/python-internal.h: Add declarations for new functions.
5616 * python/python.c (_initialize_python): Invoke
5617 gdbpy_initialize_xmethods.
5618 * python/lib/gdb/__init__.py (xmethods): New
5619 attribute.
5620 * python/lib/gdb/xmethod.py: New file.
5621 * python/lib/gdb/command/xmethods.py: New file.
5622
58992dc5
SC
56232014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5624
5625 * eval.c (evaluate_subexp_standard): Call the xmethod if the
5626 best match method returned by find_overload_match is an xmethod.
5627 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
5628 the best matching operator returned by find_overload_match is an
5629 xmethod.
5630 * valops.c: #include "extension.h".
5631 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
5632 Return void. The list of matching source methods is returned in
5633 "fn_list" and a vector of matching debug method workers is
5634 returned in "xm_worker_vec". Update all callers.
5635 (value_find_oload_method_list): Likewise.
5636 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
5637 non-NULL, then the index of the best matching method in this
5638 vector is returned. Update all callers.
5639 (find_overload_match): Include xmethods while performing overload
5640 resolution.
5641
e81e7f5e
SC
56422014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5643
5644 * defs.h (enum lval_type): New enumerator "lval_xcallable".
5645 * extension-priv.h (struct extension_language_ops): Add the
5646 xmethod interface.
5647 * extension.c (new_xmethod_worker, clone_xmethod_worker,
5648 get_matching_xmethod_workers, get_xmethod_argtypes,
5649 invoke_xmethod, free_xmethod_worker,
5650 free_xmethod_worker_vec): New functions.
5651 * extension.h: #include "common/vec.h".
5652 New function declarations.
5653 (struct xmethod_worker): New struct.
5654 (VEC (xmethod_worker_ptr)): New vector type.
5655 (xmethod_worker_ptr): New typedef.
5656 (xmethod_worker_vec): Likewise.
5657 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
5658 builtin_type.
5659 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
5660 (struct builtin_type): New field "xmethod".
5661 * valarith.c (value_ptradd): Assert that the value argument is not
5662 lval_xcallable.
5663 * valops.c (value_must_coerce_to_target): Return 0 for
5664 lval_xcallable values.
5665 * value.c (struct value): New field XM_WORKER in the field
5666 LOCATION.
5667 (value_address, value_raw_address): Return 0 for lval_xcallable
5668 values.
5669 (set_value_address): Assert that the value is not an
5670 lval_xcallable.
5671 (value_free): Free the associated xmethod worker when freeing
5672 lval_xcallable values.
5673 (set_value_component_location): Assert that the WHOLE value is not
5674 lval_xcallable.
5675 (value_of_xmethod, call_xmethod): New functions.
5676 * value.h: Declare "struct xmethod_worker".
5677 Declare new functions value_of_xmethod, call_xmethod.
5678
ef370185
JB
56792014-06-03 Joel Brobecker <brobecker@adacore.com>
5680 Pedro Alves <palves@redhat.com>
5681
5682 PR breakpoints/17000
5683 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
5684 New function, extracted from software_breakpoint_inserted_here_p.
5685 (software_breakpoint_inserted_here_p): Replace factored out code
5686 by call to find_non_raw_software_breakpoint_inserted_here.
5687 (bp_target_info_copy_insertion_state): New function.
5688 (bkpt_insert_location): Handle the case of a single-step
5689 breakpoint already inserted at the same address.
5690 (bkpt_remove_location): Handle the case of a single-step
5691 breakpoint still inserted at the same address.
5692 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
5693 breakpoint already inserted at the same address.
5694 (deprecated_remove_raw_breakpoint): Handle the case of a
5695 non-raw breakpoint still inserted at the same address.
5696 (find_single_step_breakpoint): New function, extracted from
5697 single_step_breakpoint_inserted_here_p.
5698 (find_single_step_breakpoint): New function,
5699 factored out from single_step_breakpoint_inserted_here_p.
5700 (single_step_breakpoint_inserted_here_p): Reimplement.
5701
1e2ccb61
BM
57022014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
5703
5704 Pushed by Joel Brobecker <brobecker@adacore.com>
5705 * source.c (show_substitute_path_command): Fix display of matching
5706 substitution rules.
5707
d3448d85
GB
57082014-06-03 Gary Benson <gbenson@redhat.com>
5709
5710 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
5711
06eb1586
DE
57122014-06-02 Doug Evans <xdje42@gmail.com>
5713
5714 Add parameter support for Guile.
5715 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
5716 (SUBDIR_GUILE_SRCS): Add scm-param.c.
5717 (scm-param.o): New rule.
5718 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
5719 (gdbscm_misc_error): Declare.
5720 (gdbscm_canonicalize_command_name): Declare.
5721 (gdbscm_scm_to_host_string): Declare.
5722 (gdbscm_scm_from_host_string): Declare.
5723 (gdbscm_initialize_parameters): Declare.
5724 * guile/guile.c (initialize_gdb_module): Call
5725 gdbscm_initialize_parameters.
5726 * guile/lib/gdb.scm: Export parameter symbols.
5727 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
5728 cmdscm_canonicalize_name and made public. All callers updated.
5729 * guile/scm-exception.c (gdbscm_misc_error): New function.
5730 * guile/scm-param.c: New file.
5731 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
5732 (gdbscm_scm_to_host_string): New function.
5733 (gdbscm_scm_from_host_string): New function.
5734 * scm-utils.c (gdbscm_gc_dup_argv): New function.
5735
e698b8c4
DE
57362014-06-02 Doug Evans <xdje42@gmail.com>
5737
5738 Add command support for Guile.
5739 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
5740 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
5741 (scm-cmd.o): New rule.
5742 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
5743 (gdbscm_user_error_p): Declare.
5744 (gdbscm_parse_command_name): Declare.
5745 (gdbscm_valid_command_class_p): Declare.
5746 (gdbscm_initialize_commands): Declare.
5747 * guile/guile.c (initialize_gdb_module): Call
5748 gdbscm_initialize_commands.
5749 * guile/lib/gdb.scm: Export command symbols.
5750 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
5751 (throw-user-error): New function.
5752 * guile/scm-cmd.c: New file.
5753 * guile/scm-exception.c (user_error_symbol): New static global.
5754 (gdbscm_user_error_p): New function.
5755 (gdbscm_initialize_exceptions): Set user_error_symbol.
5756 * scm-utils.c (gdbscm_gc_xstrdup): New function.
5757
fb1f94b0
PM
57582014-06-02 Phil Muldoon <pmuldoon@redhat.com>
5759
5760 * top.c (command_loop): Handle comments here...
5761 (command_line_input): ... not here.
5762
ded03782
DE
57632014-06-02 Doug Evans <xdje42@gmail.com>
5764
5765 Add progspace support for Guile.
5766 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
5767 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
5768 (scm-progspace.o): New rule.
5769 * guile/guile-internal.h (pspace_smob): New typedef.
5770 (psscm_pspace_smob_pretty_printers): Declare.
5771 (psscm_pspace_smob_from_pspace): Declare.
5772 (psscm_scm_from_pspace): Declare.
5773 * guile/guile.c (initialize_gdb_module): Call
5774 gdbscm_initialize_pspaces.
5775 * guile/lib/gdb.scm: Export progspace symbols.
5776 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
5777 support.
5778 (append-pretty-printer!): Ditto.
5779 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
5780 Implement.
5781 * guile/scm-progspace.c: New file.
5782
397998fc
AM
57832014-06-03 Alan Modra <amodra@gmail.com>
5784
5785 * ppc64-tdep.c (ppc64_standard_linkage8): New.
5786 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
5787
6aa5f3a6
DE
57882014-06-02 Doug Evans <dje@google.com>
5789
5790 Add support for skeletonless type units.
5791 * dwarf2read.c (struct dwarf2_per_objfile): New member
5792 n_allocated_type_units.
5793 (struct dwarf2_per_objfile) <tu_stats>: New member
5794 nr_all_type_units_reallocs.
5795 (create_signatured_type_table_from_index): Initialize
5796 n_allocated_type_units
5797 (create_all_type_units): Ditto.
5798 (add_type_unit): Move up in file. New arg slot.
5799 All callers updated. Increase space for all_type_units more
5800 efficiently.
5801 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
5802 (lookup_dwo_signatured_type): Handle skeletonless TUs.
5803 (lookup_dwp_signatured_type): Ditto.
5804 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
5805 All callers updated.
5806 (build_type_psymtabs_1): Leave type_unit_groups as
5807 NULL if no TUs present.
5808 (print_tu_stats): New function.
5809 (process_skeletonless_type_unit): New function.
5810 (process_dwo_file_for_skeletonless_type_units): New
5811 function.
5812 (process_skeletonless_type_units): New function.
5813 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
5814 Call print tu_stats if debugging enabled.
5815
41fac0cf
PA
58162014-06-02 Pedro Alves <palves@redhat.com>
5817
5818 * breakpoint.c (build_target_command_list): Don't build a command
5819 list if we have any duplicate location that isn't a dprintf.
5820
cd1608cc
PA
58212014-06-02 Pedro Alves <palves@redhat.com>
5822
5823 * breakpoint.c (dprintf_breakpoint_hit): New function.
5824 (initialize_breakpoint_ops): Install it as dprintf's
5825 breakpoint_hit method.
5826
486ef3b9
JB
58272014-06-02 Joel Brobecker <brobecker@adacore.com>
5828
5829 * source.c (substitute_path_rule_matches): Simplify using
5830 filename_ncmp instead of FILENAME_CMP.
5831
230cd560
JB
58322014-06-02 Joel Brobecker <brobecker@adacore.com>
5833
5834 * source.c (substitute_path_rule_matches): Remove trailing spaces.
5835
16954d5d
LC
58362014-06-01 Ludovic Courtès <ludo@gnu.org>
5837
5838 * configure.ac: When Guile is available, check for the
5839 availability of 'scm_new_smob'.
5840 * configure, config.h.in: Regenerate.
5841 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
5842 function.
5843
53e8a631
AB
58442014-05-30 Andrew Burgess <aburgess@broadcom.com>
5845
5846 * frame.c (struct frame_info): Add stop_string field.
5847 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
5848 (get_prev_frame_always): Old content moved into
5849 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
5850 TRY_CATCH, handle MEMORY_ERROR exceptions.
5851 (frame_stop_reason_string): New function definition.
5852 * frame.h (unwind_stop_reason_to_string): Extend comment to
5853 mention frame_stop_reason_string.
5854 (frame_stop_reason_string): New function declaration.
5855 * stack.c (frame_info): Switch to frame_stop_reason_string.
5856 (backtrace_command_1): Switch to frame_stop_reason_string.
5857 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
5858 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
5859 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
5860
70e38b8e
AB
58612014-05-30 Andrew Burgess <aburgess@broadcom.com>
5862
5863 * frame.c (frame_stop_reason_string): Rename to ...
5864 (unwind_stop_reason_to_string): this.
5865 * frame.h (frame_stop_reason_string): Rename to ...
5866 (unwind_stop_reason_to_string): this.
5867 * stack.c (frame_info): Update call to frame_stop_reason_string.
5868 (backtrace_command_1): Likewise.
5869 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
5870 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
5871
938f0e2f
AB
58722014-05-30 Andrew Burgess <aburgess@broadcom.com>
5873
5874 * frame.c (remove_prev_frame): New function.
5875 (get_prev_frame_if_no_cycle): Create / discard cleanup using
5876 remove_prev_frame.
5877
a09dd441
PA
58782014-05-29 Pedro Alves <palves@redhat.com>
5879
5880 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
5881 and make it const. When a single-step decays to a continue,
5882 clear 'step', not 'hw_step'. Pass whether the caller wanted
5883 to step to user_visible_resume_ptid, not what we ask the
5884 target to do.
5885
bdc36728
PA
58862014-05-29 Pedro Alves <palves@redhat.com>
5887
5888 * infrun.c (process_event_stop_test, handle_step_into_function)
5889 (handle_step_into_function_backward): Adjust.
5890 Don't set the even thread's stop_step and call stop_waiting before
5891 calling end_stepping_range. Instead do that ...
5892 (end_stepping_range): ... here. Take an ecs pointer parameter.
5893
22bcd14b
PA
58942014-05-29 Pedro Alves <palves@redhat.com>
5895
5896 * infrun.c (stop_stepping): Rename to ...
5897 (stop_waiting): ... this.
5898 (proceed): Update comment.
5899 (process_event_stop_test, handle_inferior_event)
5900 (handle_signal_stop, handle_step_into_function)
5901 (handle_step_into_function_backward): Update.
5902
4ae57c05
PA
59032014-05-29 Pedro Alves <palves@redhat.com>
5904
5905 * infcall.c (run_inferior_call): Don't check whether the current
5906 thread is running after the proceed call.
5907
329ea579
PA
59082014-05-29 Pedro Alves <palves@redhat.com>
5909 Tom Tromey <tromey@redhat.com>
5910
5911 * NEWS: Mention "maint set target-async", "set mi-async", and that
5912 background execution commands are now always available.
5913 * target.h (target_async_permitted): Update comment.
5914 * target.c (target_async_permitted, target_async_permitted_1):
5915 Default to 1.
5916 (set_target_async_command): Rename to ...
5917 (maint_set_target_async_command): ... this.
5918 (show_target_async_command): Rename to ...
5919 (maint_show_target_async_command): ... this.
5920 (_initialize_target): Adjust.
5921 * infcmd.c (prepare_execution_command): Make extern.
5922 * inferior.h (prepare_execution_command): Declare.
5923 * infrun.c (set_observer_mode): Leave target async alone.
5924 * mi/mi-interp.c (mi_interpreter_init): Install
5925 mi_on_sync_execution_done as sync_execution_done observer.
5926 (mi_on_sync_execution_done): New function.
5927 (mi_execute_command_input_handler): Don't print the prompt if we
5928 just started a synchronous command with an async target.
5929 (mi_on_resume): Check sync_execution before printing prompt.
5930 * mi/mi-main.h (mi_async_p): Declare.
5931 * mi/mi-main.c: Include gdbcmd.h.
5932 (mi_async_p): New function.
5933 (mi_async, mi_async_1): New globals.
5934 (set_mi_async_command, show_mi_async_command, mi_async): New
5935 functions.
5936 (exec_continue): Call prepare_execution_command.
5937 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
5938 (mi_execute_async_cli_command): Use mi_async_p.
5939 (_initialize_mi_main): Install "set mi-async". Make
5940 "target-async" a deprecated alias.
5941
92bcb5f9
PA
59422014-05-29 Pedro Alves <palves@redhat.com>
5943
5944 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
5945 (_initialize_cli_interp): Adjust.
5946 * event-loop.c: Include "observer.h".
5947 (start_event_loop): Notify 'command_error' observers instead of
5948 calling display_gdb_prompt. Remove FIXME comment.
5949 * event-top.c (display_gdb_prompt): Remove call into the
5950 interpreters.
5951 * inf-loop.c: Include "observer.h".
5952 (inferior_event_handler): Notify 'command_error' observers instead
5953 of calling display_gdb_prompt.
5954 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
5955 observers instead of calling display_gdb_prompt.
5956 * interps.c (interp_set): Don't call display_gdb_prompt.
5957 (current_interp_display_prompt_p): Delete.
5958 * interps.h (interp_prompt_p): Delete declaration.
5959 (interp_prompt_p_ftype): Delete.
5960 (struct interp_procs) <prompt_proc_p>: Delete field.
5961 (current_interp_display_prompt_p): Delete declaration.
5962 * mi-interp.c (mi_interpreter_prompt_p): Delete.
5963 (_initialize_mi_interp): Adjust.
5964 * tui-interp.c (tui_init): Install 'sync_execution_done' and
5965 'command_error' observers.
5966 (tui_on_sync_execution_done, tui_on_command_error): New
5967 functions.
5968 (tui_display_prompt_p): Delete.
5969 (_initialize_tui_interp): Adjust.
5970
fd664c91
PA
59712014-05-29 Pedro Alves <palves@redhat.com>
5972
5973 PR gdb/13860
5974 * cli/cli-interp.c: Include infrun.h and observer.h.
5975 (cli_uiout, cli_interp): New globals.
5976 (cli_on_signal_received, cli_on_end_stepping_range)
5977 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
5978 functions.
5979 (cli_interpreter_init): Install them as 'end_stepping_range',
5980 'signal_received' 'signal_exited', 'exited' and 'no_history'
5981 observers.
5982 (_initialize_cli_interp): Remove cli_interp local.
5983 * infrun.c (handle_inferior_event): Call the several stop reason
5984 observers instead of printing the stop reason directly.
5985 (end_stepping_range): New function.
5986 (print_end_stepping_range_reason, print_signal_exited_reason)
5987 (print_exited_reason, print_signal_received_reason)
5988 (print_no_history_reason): Make static, and add an uiout
5989 parameter. Print to that instead of to CURRENT_UIOUT.
5990 * infrun.h (print_end_stepping_range_reason)
5991 (print_signal_exited_reason, print_exited_reason)
5992 (print_signal_received_reason print_no_history_reason): New
5993 declarations.
5994 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
5995 'mi_uiout'.
5996 <cli_uiout>: New field.
5997 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
5998 uiout for CLI output. Install 'signal_received',
5999 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
6000 observers.
6001 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
6002 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
6003 (mi_on_no_history): New functions.
6004 (ui_out_free_cleanup): Delete function.
6005 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
6006 instead use the one already stored in the MI interpreter data.
6007 (mi_ui_out): Adjust.
6008 * tui/tui-interp.c: Include infrun.h and observer.h.
6009 (tui_interp): New global.
6010 (tui_on_signal_received, tui_on_end_stepping_range)
6011 (tui_on_signal_exited, tui_on_exited)
6012 (tui_on_no_history): New functions.
6013 (tui_init): Install them as 'end_stepping_range',
6014 'signal_received' 'signal_exited', 'exited' and 'no_history'
6015 observers.
6016 (_initialize_tui_interp): Delete tui_interp local.
6017
8817a6f2
PA
60182014-05-29 Pedro Alves <palves@redhat.com>
6019
6020 PR gdb/15713
6021 * linux-nat.c (linux_nat_resume_callback): Rename the second
6022 parameter to 'except'. Skip LP if it points to EXCEPT.
6023 (linux_nat_resume): Don't mark the event lwp as not stopped
6024 before resuming sibling lwps. Instead ask
6025 linux_nat_resume_callback to skip the event lwp. Mark it as not
6026 stopped after actually resuming it.
6027 (linux_handle_syscall_trap): Mark the lwp as not stopped after
6028 resuming it.
6029 (wait_lwp): Mark the lwp as stopped here.
6030 (stop_wait_callback): Mark the lwp as not stopped right after
6031 resuming it. Don't mark lwps as stopped here.
6032 (linux_nat_filter_event): Mark the lwp as stopped earlier.
6033 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
6034
251bde03
PA
60352014-05-29 Pedro Alves <palves@redhat.com>
6036
6037 PR PR15693
6038 * infrun.c (resume): Determine how much to resume depending on
6039 whether the caller wanted a step, not whether we can hardware step
6040 the target. Mark all threads that we intend to run as running,
6041 unless we're calling an inferior function.
6042 (normal_stop): If the thread is running an infcall, don't finish
6043 thread state.
6044 * target.c (target_resume): Don't mark threads as running here.
6045
7f3c0343
JB
60462014-05-28 Joel Brobecker <brobecker@adacore.com>
6047
6048 * serial.c (_initialize_serial): Remove support for
6049 the "set remotebaud" and "show remotebaud" commands.
6050 * NEWS: Add entry documenting the removal of that command.
6051
ee34b3f9
YQ
60522014-05-28 Yao Qi <yao@codesourcery.com>
6053
6054 * charset.c: Fix typo in comments.
6055
add6c04d
GB
60562014-05-27 Gary Benson <gbenson@redhat.com>
6057
6058 * utils.c (internal_vproblem): Prompt for a bug report.
6059
92c48fc5
AW
60602014-05-26 Andy Wingo <wingo@igalia.com>
6061
6062 * guile/scm-arch.c (arscm_mark_arch_smob):
6063 * guile/scm-block.c (bkscm_mark_block_smob)
6064 (bkscm_mark_block_syms_progress_smob):
6065 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
6066 * guile/scm-exception.c (exscm_mark_exception_smob):
6067 * guile/scm-frame.c (frscm_mark_frame_smob):
6068 * guile/scm-iterator.c (itscm_mark_iterator_smob):
6069 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
6070 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
6071 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
6072 (ppscm_mark_pretty_printer_worker_smob):
6073 * guile/scm-symbol.c (syscm_mark_symbol_smob):
6074 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
6075 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
6076 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
6077 mark functions.
6078 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
6079 function.
6080
b2715b27
AW
60812014-05-26 Andy Wingo <wingo@igalia.com>
6082 Doug Evans <xdje42@gmail.com>
6083
6084 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
6085 empty_base_class. All uses updated.
6086 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
6087 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
6088 Adapt all callers.
6089 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
6090 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
6091 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
6092 (gdbscm_gsmob_has_property_p, add_property_name)
6093 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
6094 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
6095 (gdb-object-has-property?, gdb-object-properties): Remove.
6096 (gdb-object-kind): Renamed from gsmob-kind.
6097
214ab2da
AW
60982014-05-26 Andy Wingo <wingo@igalia.com>
6099
6100 * configure.ac (try_guile_versions): Allow building with guile 2.2.
6101 * configure: Regenerate.
6102
589fdceb
MM
61032014-05-23 Markus Metzger <markus.t.metzger@intel.com>
6104
6105 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
6106
67b5c0c1
MM
61072014-05-23 Markus Metzger <markus.t.metzger@intel.com>
6108
6109 * record-btrace.c (record_btrace_allow_memory_access): Remove.
6110 (replay_memory_access_read_only, replay_memory_access_read_write)
6111 (replay_memory_access_types, replay_memory_access)
6112 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
6113 (cmd_set_record_btrace, cmd_show_record_btrace)
6114 (cmd_show_replay_memory_access): New.
6115 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
6116 (record_btrace_remove_breakpoint): Replace
6117 record_btrace_allow_memory_access with replay_memory_access.
6118 (_initialize_record_btrace): Add commands.
6119 * NEWS: Announce it.
6120
036cd381
RR
61212014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6122
6123 * aarch64-linux-nat.c (asm/ptrace.h): Include.
6124
c77c1e42
RR
61252014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6126
6127 * MAINTAINERS (Write After Approval): Move self back from
6128 paper trail.
6129
45741a9c
PA
61302014-05-22 Pedro Alves <palves@redhat.com>
6131
6132 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
6133 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
6134 (disable_randomization, enum exec_direction_kind)
6135 (execution_direction, stop_registers, start_remote)
6136 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
6137 (wait_for_inferior, normal_stop, get_last_target_status)
6138 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
6139 (insert_step_resume_breakpoint_at_sal)
6140 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
6141 (set_step_info, print_stop_event, signal_stop_state)
6142 (signal_print_state, signal_pass_state, signal_stop_update)
6143 (signal_print_update, signal_pass_update)
6144 (update_signals_program_target, clear_exit_convenience_vars)
6145 (displaced_step_dump_bytes, update_observer_mode)
6146 (signal_catch_update, gdb_signal_from_command): Move
6147 declarations ...
6148 * infrun.h: ... to this new file.
6149 * amd64-tdep.c: Include infrun.h.
6150 * annotate.c: Include infrun.h.
6151 * arch-utils.c: Include infrun.h.
6152 * arm-linux-tdep.c: Include infrun.h.
6153 * arm-tdep.c: Include infrun.h.
6154 * break-catch-sig.c: Include infrun.h.
6155 * breakpoint.c: Include infrun.h.
6156 * common/agent.c: Include infrun.h instead of inferior.h.
6157 * corelow.c: Include infrun.h.
6158 * event-top.c: Include infrun.h.
6159 * go32-nat.c: Include infrun.h.
6160 * i386-tdep.c: Include infrun.h.
6161 * inf-loop.c: Include infrun.h.
6162 * infcall.c: Include infrun.h.
6163 * infcmd.c: Include infrun.h.
6164 * infrun.c: Include infrun.h.
6165 * linux-fork.c: Include infrun.h.
6166 * linux-nat.c: Include infrun.h.
6167 * linux-thread-db.c: Include infrun.h.
6168 * monitor.c: Include infrun.h.
6169 * nto-tdep.c: Include infrun.h.
6170 * procfs.c: Include infrun.h.
6171 * record-btrace.c: Include infrun.h.
6172 * record-full.c: Include infrun.h.
6173 * remote-m32r-sdi.c: Include infrun.h.
6174 * remote-mips.c: Include infrun.h.
6175 * remote-notif.c: Include infrun.h.
6176 * remote-sim.c: Include infrun.h.
6177 * remote.c: Include infrun.h.
6178 * reverse.c: Include infrun.h.
6179 * rs6000-tdep.c: Include infrun.h.
6180 * s390-linux-tdep.c: Include infrun.h.
6181 * solib-irix.c: Include infrun.h.
6182 * solib-osf.c: Include infrun.h.
6183 * solib-svr4.c: Include infrun.h.
6184 * target.c: Include infrun.h.
6185 * top.c: Include infrun.h.
6186 * windows-nat.c: Include infrun.h.
6187 * mi/mi-interp.c: Include infrun.h.
6188 * mi/mi-main.c: Include infrun.h.
6189 * python/py-threadevent.c: Include infrun.h.
6190
98eb56a4
PA
61912014-05-22 Pedro Alves <palves@redhat.com>
6192
6193 * infrun.c (handle_inferior_event): Store the exit code for
6194 --return-child-result here, instead of ...
6195 (print_exited_reason): ... here.
6196
17b2616c
PA
61972014-05-21 Pedro Alves <palves@redhat.com>
6198
6199 PR gdb/13860
6200 * gdbthread.h (struct thread_control_state): New field
6201 `command_interp'.
6202 * infrun.c (follow_fork): Copy the new thread control field to the
6203 child fork thread.
6204 (clear_proceed_status_thread): Clear the new thread control field.
6205 (proceed): Set the new thread control field.
6206 * interps.h (command_interp): Declare.
6207 * interps.c (command_interpreter): New global.
6208 (command_interp): New function.
6209 (interp_exec): Set `command_interpreter' while here.
6210 * cli-out.c (cli_uiout_dtor): New function.
6211 (cli_ui_out_impl): Install it.
6212 * mi/mi-interp.c: Include cli-out.h.
6213 (mi_cmd_interpreter_exec): Add comment.
6214 (restore_current_uiout_cleanup): New function.
6215 (ui_out_free_cleanup): New function.
6216 (mi_on_normal_stop): If finishing an execution command started by
6217 a CLI command, or any kind of breakpoint-like event triggered,
6218 print the stop event to the output (CLI) stream.
6219 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
6220
5166082f
PA
62212014-05-21 Pedro Alves <palves@redhat.com>
6222
6223 * cli/cli-cmds.c (list_command): Handle the first "list" after the
6224 current source line having changed.
6225 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
6226 * infrun.c (normal_stop): Adjust call to
6227 set_current_sal_from_frame.
6228 * source.c (clear_lines_listed_range): New function.
6229 (set_current_source_symtab_and_line, identify_source_line): Clear
6230 the lines listed range.
6231 (line_info): Handle the first "info line" after the current source
6232 line having changed.
6233 * stack.c (print_stack_frame): Remove center handling.
6234 (set_current_sal_from_frame): Remove 'center' parameter. Don't
6235 center sal.line.
6236
c1ee2fb3
PA
62372014-05-21 Pedro Alves <palves@redhat.com>
6238
6239 * inf-child.c (inf_child_mourn_inferior): New function.
6240 * inf-child.h (inf_child_mourn_inferior): New declaration.
6241 * darwin-nat.c (darwin_mourn_inferior): Use
6242 inf_child_mourn_inferior.
6243 * gnu-nat.c (gnu_mourn_inferior): Likewise.
6244 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
6245 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
6246 * nto-procfs.c (procfs_mourn_inferior): Likewise.
6247 * windows-nat.c (windows_mourn_inferior): Likewise.
6248
5c6d4fb2
DE
62492014-05-21 Doug Evans <xdje42@gmail.com>
6250
250748cb 6251 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5c6d4fb2 6252
4a2722c5
DE
62532014-05-21 Doug Evans <xdje42@gmail.com>
6254
17292b30 6255 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4a2722c5
DE
6256 (gdbscm_out_of_range_error): Ditto.
6257 (gdbscm_memory_error): Ditto.
250748cb
DE
6258 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
6259 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4a2722c5
DE
6260 (gdbscm_out_of_range_error): Update.
6261 (gdbscm_memory_error): Update.
6262 (gdbscm_scm_to_target_string_unsafe): Delete.
6263
6a3cb8e8
PA
62642014-05-21 Pedro Alves <palves@redhat.com>
6265
6266 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
6267 globals.
6268 (inf_child_open_target): New function.
6269 (inf_child_open): Use inf_child_open_target to push the target
6270 instead of erroring out.
6271 (inf_child_disconnect, inf_child_close)
6272 (inf_child_maybe_unpush_target): New functions.
6273 (inf_child_target): Install inf_child_disconnect and
6274 inf_child_close. Store a pointer to the returned object.
6275 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
6276 declarations.
6277 * target.c (auto_connect_native_target): New global.
6278 (show_default_run_target): New function.
6279 (find_default_run_target): Return NULL if automatically connecting
6280 to the native target is disabled.
6281 (_initialize_target): Install set/show auto-connect-native-target.
6282 * NEWS: Mention "set auto-connect-native-target", and "target
6283 native".
6284 * linux-nat.c (super_close): New global.
6285 (linux_nat_close): Call super_close.
6286 (linux_nat_add_target): Store a pointer to the base class's
6287 to_close method.
6288 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
6289 inf_child_maybe_unpush.
6290 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
6291 already pushed.
6292 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
6293 the inferior. Use inf_child_maybe_unpush_target.
6294 (inf_ttrace_attach): Don't push the target if it is already
6295 pushed.
6296 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
6297 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
6298 after mourning the inferior. Use inf_child_maybe_unpush_target.
6299 (darwin_attach_pid): Don't push the target if it is already
6300 pushed.
6301 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
6302 mourning the inferior. Use inf_child_maybe_unpush_target.
6303 (gnu_detach): Use inf_child_maybe_unpush_target.
6304 * go32-nat.c (go32_create_inferior): Don't push the target if it
6305 is already pushed.
6306 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
6307 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
6308 (procfs_open): Rename to ...
6309 (procfs_open_1): ... this. Add target_ops parameter. Adjust
6310 comments. Can target_preopen before changing node. Call
6311 inf_child_open_target to push the target explicitly.
6312 (procfs_attach): Don't push the target if it is already pushed.
6313 (procfs_detach): Use inf_child_maybe_unpush_target.
6314 (procfs_create_inferior): Don't push the target if it is already
6315 pushed.
6316 (nto_native_ops): New global.
6317 (procfs_open): Reimplement.
6318 (procfs_native_open): New function.
6319 (init_procfs_targets): Install procfs_native_open as to_open of
6320 "target native". Store a pointer to the "native" target in
6321 nto_native_ops.
6322 * procfs.c (procfs_attach): Don't push the target if it is already
6323 pushed.
6324 (procfs_detach): Use inf_child_maybe_unpush_target.
6325 (procfs_mourn_inferior): Only unpush the target after mourning the
6326 inferior. Use inf_child_maybe_unpush_target.
6327 (procfs_init_inferior): Don't push the target if it is already
6328 pushed.
6329 * windows-nat.c (do_initial_windows_stuff): Don't push the target
6330 if it is already pushed.
6331
930ee1b1
PA
63322014-05-21 Pedro Alves <palves@redhat.com>
6333
6334 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
6335 and "procfs" targets are now called "native" instead.
6336
1f5d1b13
PA
63372014-05-21 Pedro Alves <palves@redhat.com>
6338
6339 * go32-nat.c (go32_open): Delete.
6340 (go32_target): Don't override the to_open method.
6341
132f8e03
PA
63422014-05-21 Pedro Alves <palves@redhat.com>
6343
6344 * nto-procfs.c (procfs_can_run): New function.
6345 (nto_procfs_ops): New global.
6346 (init_procfs_targets): New, based on procfs_target. Install
6347 "target native" in addition to "target procfs".
6348 (_initialize_procfs): Call init_procfs_targets instead of adding
6349 the target here.
6350
03c136c3
PA
63512014-05-21 Pedro Alves <palves@redhat.com>
6352
6353 * windows-nat.c (windows_target): Don't override to_shortname,
6354 to_longname or to_doc.
6355
a635d0f3
PA
63562014-05-21 Pedro Alves <palves@redhat.com>
6357
6358 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
6359 to_doc.
6360
4f9b5133
PA
63612014-05-21 Pedro Alves <palves@redhat.com>
6362
6363 * darwin-nat.c (_initialize_darwin_inferior): Don't override
6364 to_shortname, to_longname or to_doc.
6365
bc85afde
PA
63662014-05-21 Pedro Alves <palves@redhat.com>
6367
6368 * go32-nat.c (go32_target): Don't override to_shortname,
6369 to_longname or to_doc.
6370
4ebfc96e
PA
63712014-05-21 Pedro Alves <palves@redhat.com>
6372
6373 * inf-child.c (inf_child_open): Remove mention of "child".
6374 (inf_child_target): Rename target to "native" instead of "child".
6375
2648dfed
AA
63762014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6377
6378 * Makefile.in (SFILES): Delete "regset.c".
6379 (COMMON_OBS): Delete "regset.o".
6380 * regset.c: Remove.
6381 * regset.h (regset_alloc): Delete prototype.
6382
b13feb94
AA
63832014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6384
6385 * sparc-linux-tdep.c (sparc32_linux_gregset)
6386 (sparc32_linux_fpregset): New static regset structures.
6387 (sparc32_linux_init_abi): Drop dynamic regset allocations.
6388 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
6389 'fpregset' fields.
6390 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
6391 (sparc64_linux_fpregset): New static regset structures.
6392 (sparc64_linux_init_abi): Drop dynamic regset allocations.
6393 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
6394 New static regset structures.
6395 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
6396 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
6397 New static regset structures.
6398 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
6399 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
6400 New static regset structures.
6401 (sparc64obsd_init_abi): Drop dynamic regset allocations.
6402 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
6403 New static regset structures.
6404 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
6405
b4fd25c9
AA
64062014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6407
6408 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
6409 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
6410 register maps ("regmaps") from "*regset" to "*regmap". Do this
6411 for all regmap types and variables.
6412 * sparc-linux-tdep.c (sparc32_linux_step_trap)
6413 (sparc32_linux_supply_core_gregset)
6414 (sparc32_linux_collect_core_gregset)
6415 (sparc32_linux_supply_core_fpregset)
6416 (sparc32_linux_collect_core_fpregset): Likewise.
6417 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
6418 (sparc_gregmap, sparc_fpregmap): ... these.
6419 (sparc_supply_gregset, sparc_collect_gregset)
6420 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6421 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
6422 (_initialize_sparc_nat): Rename regmaps.
6423 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
6424 (sparc_gregmap, sparc_fpregmap): ... these.
6425 (sparc_supply_gregset, sparc_collect_gregset)
6426 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6427 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
6428 Rename macros to...
6429 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
6430 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
6431 Likewise.
6432 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
6433 Rename to...
6434 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
6435 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
6436 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
6437 regmaps.
6438 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6439 (sparc32_bsd_fpregset): Rename to...
6440 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6441 (sparc32_bsd_fpregmap): ... these.
6442 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
6443 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6444 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
6445 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
6446 (struct sparc_gregmap, struct sparc_fpregmap)
6447 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6448 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
6449 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
6450 (sparc32_supply_regset, sparc32_collect_gregset)
6451 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
6452 prototypes.
6453 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
6454 (sparc64_linux_ptrace_gregmap): ... this.
6455 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
6456 (_initialize_sparc64_linux_nat): Rename regmaps.
6457 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
6458 (sparc64_linux_core_gregmap): ... this.
6459 (sparc64_linux_supply_core_gregset)
6460 (sparc64_linux_collect_core_gregset)
6461 (sparc64_linux_supply_core_fpregset)
6462 (sparc64_linux_collect_core_fpregset): Rename regmaps.
6463 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
6464 (sparc64_sol2_fpregset): Rename to...
6465 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
6466 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
6467 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
6468 regmaps.
6469 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
6470 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
6471 (sparc64_bsd_fpregset): Rename to...
6472 (struct sparc_gregmap, sparc64_sol2_gregmap)
6473 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
6474 (sparc64_bsd_fpregmap): ... these.
6475 (sparc64_supply_gregset, sparc64_collect_gregset)
6476 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
6477 prototypes.
6478 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
6479 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
6480 (sparc64fbsd_gregmap): ... this.
6481 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
6482 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
6483 Rename regmaps.
6484 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
6485 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
6486 (sparc64nbsd_collect_fpregset): Likewise.
6487 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
6488 (sparc64nbsd_gregmap): ... this.
6489 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
6490 regmaps.
6491 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
6492 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
6493 (sparc64obsd_gregmap): ... this.
6494 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
6495 regmaps.
6496 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
6497 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
6498 (sparc32nbsd_gregmap): ... this.
6499 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
6500 regmaps.
6501
8fea3224
AA
65022014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6503
6504 * score-tdep.c (score7_linux_gregset): New static regset
6505 structure.
6506 (score7_linux_regset_from_core_section): Remove dynamic regset
6507 allocation.
6508 (score_gdbarch_init): Drop allocation of tdep structure.
6509 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
6510
24534243
AA
65112014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6512
6513 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
6514 regset structures.
6515 (am33_regset_from_core_section): Remove dynamic regset
6516 allocations.
6517
b7195f27
AA
65182014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6519
6520 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
6521 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
6522 structures.
6523 (mips_linux_regset_from_core_section): Remove dynamic regset
6524 allocations.
6525 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6526 'gregset64', 'fpregset', and 'fpregset64'.
6527 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
6528 deleted tdep fields.
6529
ecc37a5a
AA
65302014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6531
6532 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
6533 regset structures.
6534 (amd64_regset_from_core_section): Remove dynamic regset
6535 allocations.
6536 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
6537 structure.
6538 (amd64obsd_regset_from_core_section): Remove dynamic regset
6539 allocation.
6540 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
6541 Likewise.
6542 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
6543 x86-common regset supply function.
6544 * i386-tdep.c (i386_collect_gregset): Make static.
6545 (i386_gregset): New global regset structure.
6546 (i386_fpregset, i386_xstateregset): New static regset structures.
6547 (i386_regset_from_core_section): Remove dynamic regset
6548 allocations.
6549 (i386_gdbarch_init): Remove initialization of tdep fields
6550 'gregset', 'fpregset', and 'xstateregset'.
6551 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6552 'fpregset', and 'xstateregset'.
6553 (i386_collect_gregset): Remove prototype.
6554 (i386_gregset): New declaration.
6555 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
6556 structure.
6557 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
6558 allocation.
6559
b7611c43
AA
65602014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6561
6562 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
6563 (arm_linux_vfpregset): New static regset structures.
6564 (arm_linux_regset_from_core_section): Remove dynamic allocation of
6565 regset structures.
6566 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
6567 and 'vfpregset' fields.
6568
a069a2bd
AA
65692014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6570
6571 * aarch64-linux-tdep.c (aarch64_linux_gregset)
6572 (aarch64_linux_fpregset): New static regset structures.
6573 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
6574 of regset structures.
6575 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
6576 'fpregset' fields.
6577
09424cff
AA
65782014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6579
6580 * regset.h (struct regset): Remove gdbarch field.
6581 * regset.c (regset_alloc): Drop initialization of gdbarch field.
6582 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6583 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
6584 Likewise.
6585 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
6586 (ppc32_linux_fpregset, ppc32_linux_vrregset)
6587 (ppc32_linux_vsxregset): Likewise.
6588 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
6589 via the regcache instead of the regset.
6590 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
6591 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
6592 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
6593 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
6594 Likewise.
6595
3ca7dae4
AA
65962014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6597
6598 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
6599 Constify structures.
6600 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
6601 (alphanbsd_aout_gregset): Likewise.
6602 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
6603 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
6604 Likewise.
6605 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
6606 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
6607 Likewise.
6608 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
6609 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
6610 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
6611 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
6612 * m88k-tdep.c (m88k_gregset): Likewise.
6613 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
6614 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
6615 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6616 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
6617 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
6618 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
6619 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
6620 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
6621 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
6622 Likewise.
6623 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
6624 * sh-tdep.h (sh_corefile_gregset): Likewise.
6625 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
6626 * vax-tdep.c (vax_gregset): Likewise.
6627
5876f503
JK
66282014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6629
6630 Fix TLS access for -static -pthread.
6631 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
6632 (try_thread_db_load_1): Initialize it.
6633 (thread_db_get_thread_local_address): Call it if LM is zero.
6634 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
6635 * target.h (struct target_ops) (to_get_thread_local_address): Add
6636 load_module_addr comment.
6637
0256a6ac
PA
66382014-05-21 Pedro Alves <palves@redhat.com>
6639
6640 * dcache.c (dcache_read_memory_partial): If reading the cache line
6641 fails, fallback to reading just the memory the caller wanted.
6642
227533ac
DE
66432014-05-20 Doug Evans <dje@google.com>
6644
6645 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
6646 instead of get_current_arch.
6647
936d2992
PA
66482014-05-20 Pedro Alves <palves@redhat.com>
6649
6650 * NEWS: Mention that compare-sections now works with all targets.
6651
6652 * remote.c (PACKET_qCRC): New enum value.
6653 (remote_verify_memory): Don't send qCRC if the target has no
6654 execution. Use packet_support/packet_ok. If the target doesn't
6655 support the qCRC packet, fallback to a deep memory copy.
6656 (compare_sections_command): Say "target image" instead of "remote
6657 executable".
6658 (_initialize_remote): Add PACKET_qCRC to the list of config
6659 packets that have no associated command. Extend comment.
6660 * target.c (simple_verify_memory, default_verify_memory): New
6661 function.
6662 * target.h (struct target_ops) <to_verify_memory>: Default to
6663 default_verify_memory.
6664 (simple_verify_memory): New declaration.
6665 * target-delegates.c: Regenerate.
6666
e59fa00f
MM
66672014-05-20 Markus Metzger <markus.t.metzger@intel.com>
6668
6669 * record-btrace.c (record_btrace_step_thread): Check for empty history.
6670
f2205de0
HZ
66712014-05-20 Hui Zhu <hui@codesourcery.com>
6672 Yao Qi <yao@codesourcery.com>
6673
6674 PR backtrace/16558
6675 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
6676 and change address of sp and pc.
6677
c4e54771
TT
66782014-05-19 Tom Tromey <tromey@redhat.com>
6679
6680 * gdbtypes.c (rank_function): Use XNEWVEC.
6681 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
6682
73051182
DE
66832014-05-19 Doug Evans <dje@google.com>
6684
6685 * dwarf2read.c (build_type_psymtabs_1): Renamed from
6686 build_type_unit_groups and moved closer to only caller. Remove
6687 arguments. All references updated. Remove outdated .gdb_index
6688 comment.
6689 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
6690 build_type_psymtabs_1.
6691
8832e7e3
DE
66922014-05-19 Doug Evans <dje@google.com>
6693
6694 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
6695 n_type_unit_groups, all_type_unit_groups. All uses removed.
6696 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
6697 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
6698 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
6699 (add_type_unit_group_to_table): Delete.
6700
cd8ae15e
DE
67012014-05-19 Doug Evans <dje@google.com>
6702
6703 * eval.c (evaluate_subexp_standard): Add some comments.
6704
08f4850b
DE
67052014-05-17 Doug Evans <xdje42@gmail.com>
6706
6707 * progspace.c (remove_program_space): Delete, unused.
6708 * progspace.h (remove_program_space): Ditto.
6709
bed8455c
DE
67102014-05-17 Doug Evans <xdje42@gmail.com>
6711
6712 * inferior.c (prune_inferiors): Fix comment.
6713 (remove_inferior_command): Call prune_program_spaces.
6714
8d551b02
DE
67152014-05-16 Doug Evans <dje@google.com>
6716
6717 New command line option -D.
6718 * NEWS: Mention it.
6719 * main.c (set_gdb_data_directory): New function.
6720 (captured_main): Recognize -D. Flag error for --data-directory "".
6721 Call set_gdb_data_directory.
6722 (print_gdb_help): Print --data-directory, -D.
6723 * main.h (set_gdb_data_directory): Declare.
6724 * top.c (staged_gdb_datadir): New static global.
6725 (set_gdb_datadir): Call set_gdb_data_directory
6726 (show_gdb_datadir): New function.
6727 (init_main): Update init of data-directory parameter.
6728
18848e28
GF
67292014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
6730
6731 Import the "dirfd" gnulib module.
6732 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
6733 * gnulib/aclocal.m4: Update.
6734 * gnulib/config.in: Update.
6735 * gnulib/configure: Update.
6736 * gnulib/import/Makefile.am: Update.
6737 * gnulib/import/Makefile.in: Update.
6738 * gnulib/import/dirfd.c: New.
6739 * gnulib/import/m4/dirfd.m4: New.
6740 * gnulib/import/m4/gnulib-cache.m4: Update.
6741 * gnulib/import/m4/gnulib-comp.m4: Update.
6742
95c64f92
YQ
67432014-05-16 Pierre Muller <muller@sourceware.org>
6744 Yao Qi <yao@codesourcery.com>
6745
6746 * valprint.c (print_wchar): Move the code on checking whether
6747 W is a printable wide char to the default branch of switch
6748 statement below. Call wchar_printable instead of gdb_iswprint.
6749
cac395ea
TM
67502014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
6751
19679eca 6752 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
cac395ea
TM
6753 ldr.w and ldrd instructions.
6754
83655187
DE
67552014-05-15 Doug Evans <dje@google.com>
6756
6757 * dwarf2read.c (read_structure_type): Delete outdated comments.
6758
dd756689
TT
67592014-05-14 Tom Tromey <tromey@redhat.com>
6760
6761 * macrocmd.c (print_macro_definition): Reindent.
6762
75ddda77
DE
67632014-05-13 Doug Evans <xdje42@gmail.com>
6764
6765 * python/py-cmd.c (cmdpy_completer): Add comment.
6766 (completers): Make const.
6767
b0f16a3e
SM
67682014-05-13 Simon Marchi <simon.marchi@ericsson.com>
6769
6770 * infrun.c (resume): Remove should_resume (unused). Move up
6771 declaration of resume_ptid.
6772
033c3379
TT
67732014-05-13 Tom Tromey <tromey@redhat.com>
6774
6775 * language.h (unop_type_check): Remove.
6776 (binop_type_check): Don't declare.
6777
9b44a3a5
AA
67782014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
6779
6780 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
6781 call to regcache_raw_collect.
6782
303a33fa
SM
67832014-05-12 Simon Marchi <simon.marchi@ericsson.com>
6784
6785 * mi/mi-console.c (mi_console_raw_packet): Use the value from
6786 mi_console->quote as the quoting character.
6787
196100a0
SM
67882014-05-12 Simon Marchi <simon.marchi@ericsson.com>
6789
6790 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
6791
f989a1c8
TT
67922014-04-29 Tom Tromey <tromey@redhat.com>
6793
6794 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
6795 "show debug varobj".
6796
9404b58f
KM
67972014-05-07 Kyle McMartin <kyle@redhat.com>
6798
6799 Pushed by Joel Brobecker <brobecker@adacore.com>.
6800 * aarch64-tdep.c (aarch64_software_single_step): New function.
6801 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
6802 with aarch64_software_single_step.
6803
5e49ba57
JB
68042014-05-05 Joel Brobecker <brobecker@adacore.com>
6805
6806 GDB 7.7.1 released.
6807
c888a17d
KS
68082014-05-05 Keith Seitz <keiths@redhat.com>
6809
6810 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
6811 variable or history value is successfully parsed.
6812
290a839c
YQ
68132014-05-05 Yao Qi <yao@codesourcery.com>
6814 Pedro Alves <palves@redhat.com>
6815
6816 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
6817 address of blocks that intersects the requested range. Trim
6818 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
6819 sections.
6820 * ctf.c (ctf_xfer_partial): Likewise.
6821
91256dc2
YQ
68222014-05-05 Yao Qi <yao@codesourcery.com>
6823
6824 * printcmd.c (display_command): Remove the check to
6825 target_has_execution.
6826
07284463
MK
68272014-05-03 Mark Kettenis <kettenis@gnu.org>
6828
6829 * ppcobsd-nat.c: Include "obsd-nat.h".
6830 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
6831 add_target.
6832 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
6833
30a1e6cc
SDJ
68342014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
6835
6836 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
6837 and 16-bit signed and unsigned arguments. Update comment.
6838 (stap_parse_probe_arguments): Extend code to handle such
6839 arguments. Use warning instead of complaint to notify about
6840 unrecognized bitness.
6841
f33da99a
SDJ
68422014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
6843
6844 PR breakpoints/16889
6845 * stap-probe.c (stap_parse_probe_arguments): Simplify
6846 check for non-prefixed probes (i.e., probes whose
6847 arguments do not start with "N@"). Always set the
6848 argument type to a sane value.
6849
95cf3b38
DT
68502014-05-01 David Taylor <dtaylor@emc.com>
6851
6852 * remote.c (compare_sections_command): Add -r option to compare
6853 all loadable read-only sections.
6854
1cfdf534
SC
68552014-04-30 Siva Chandra Reddy <sivachandra@google.com>
6856
6857 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
6858 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
6859 Update all callers.
6860 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
6861 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
6862 Remove unused CORE_ADDR argument. Update all callers.
6863
ca4f7f8b
PA
68642014-04-29 Pedro Alves <palves@redhat.com>
6865
6866 * remote.c (struct packet_config) <detect>: Extend comment.
6867 (add_packet_config_cmd): Don't set the config's detect or support
6868 fields here.
6869 (init_all_packet_configs): Also initialize the config's 'detect'
6870 field.
6871 (reset_all_packet_configs_support): New function.
6872 (remote_open_1): Call reset_all_packet_configs_support instead of
6873 init_all_packet_configs.
6874 (_initialize_remote): Initialize all packet configs. Assert that
6875 all packets have an associated command, except a few known
6876 outliers.
6877
11c1ba78
JB
68782014-04-28 Joel Brobecker <brobecker@adacore.com>
6879
6880 * dwarf2read.c (read_subrange_type): Handle dynamic
6881 DW_AT_lower_bound attributes.
6882
8739bc53
JB
68832014-04-28 Joel Brobecker <brobecker@adacore.com>
6884
6885 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
6886 dynamic bounds before computing its upper bound.
6887 (ada_discrete_type_low_bound): Same as above with the lower bound.
6888
6f8a3220
JB
68892014-04-28 Joel Brobecker <brobecker@adacore.com>
6890
6891 * dwarf2read.c (is_dynamic_type): Return true for dynamic
6892 range types. Adjust the array handling implementation to
6893 take advantage of this change.
6894 (resolve_dynamic_range): New function, mostly extracted from
6895 resolve_dynamic_bounds.
6896 (resolve_dynamic_array): New function, mostly extracted from
6897 resolve_dynamic_bounds.
6898 (resolve_dynamic_bounds): Delete.
6899 (resolve_dynamic_type): Reimplement. Add handling of
6900 TYPE_CODE_RANGE types.
6901
4d072ce4
JB
69022014-04-28 Joel Brobecker <brobecker@adacore.com>
6903
6904 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
6905 handling of parallel ___XA types.
6906
52865325
JB
69072014-04-28 Joel Brobecker <brobecker@adacore.com>
6908
6909 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
6910 unnecessary second call to static_unwrap_type.
6911
433e77fa
HZ
69122014-04-27 Hui Zhu <hui@codesourcery.com>
6913
6914 * stack.c (print_frame_info): Call do_gdb_disassembly with
6915 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
6916
b51a69ee
DE
69172014-04-26 Doug Evans <xdje42@gmail.com>
6918
6919 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
6920
7ae1a6a6
PA
69212014-04-25 Pedro Alves <palves@redhat.com>
6922
6923 PR server/16255
6924 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
6925 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
6926 and newline from built string.
6927 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
6928 (linux_ptrace_attach_fail_reason): ... this.
6929 * linux-nat.c (linux_nat_attach): Adjust to use
6930 linux_ptrace_attach_fail_reason.
6931
4082afcc
PA
69322014-04-25 Pedro Alves <palves@redhat.com>
6933
6934 * remote.c (struct remote_state): Remove multi_process_aware,
6935 non_stop_aware, cond_tracepoints, cond_breakpoints,
6936 breakpoint_commands, fast_tracepoints, static_tracepoints,
6937 install_in_trace, disconnected_tracing,
6938 enable_disable_tracepoints, string_tracing, and
6939 augmented_libraries_svr4_read fields.
6940 (remote_multi_process_p): Move further below in the file.
6941 (struct packet_config): Add comments.
6942 (update_packet_config): Delete function.
6943 (show_packet_config_cmd): Use packet_config_support.
6944 (add_packet_config_cmd): Use NULL as set callback.
6945 (packet_ok): "set remote foo-packet"-style commands no longer
6946 change config->supported -- adjust.
6947 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
6948 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
6949 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
6950 (PACKET_QNonStop, PACKET_multiprocess_feature)
6951 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
6952 (PACKET_DisconnectedTracing_feature)
6953 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
6954 (set_remote_protocol_packet_cmd): Delete function.
6955 (packet_config_support, packet_support): New functions.
6956 (set_remote_protocol_Z_packet_cmd): Don't call
6957 update_packet_config.
6958 (remote_query_attached, remote_pass_signals)
6959 (remote_program_signals, remote_threads_info)
6960 (remote_threads_extra_info, remote_start_remote): Use
6961 packet_support.
6962 (remote_start_remote): Use packet_config_support and
6963 packet_support.
6964 (init_all_packet_configs): Set all packets to unknown support,
6965 instead of calling update_packet_config.
6966 (remote_check_symbols): Use packet_support.
6967 (remote_supported_packet): Unconditionally set the packet config's
6968 support status.
6969 (remote_multi_process_feature, remote_non_stop_feature)
6970 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
6971 (remote_breakpoint_commands_feature)
6972 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
6973 (remote_install_in_trace_feature)
6974 (remote_disconnected_tracing_feature)
6975 (remote_enable_disable_tracepoint_feature)
6976 (remote_string_tracing_feature)
6977 (remote_augmented_libraries_svr4_read_feature): Delete functions.
6978 (remote_protocol_features): Adjust to use remote_supported_packet
6979 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
6980 "ConditionalTracepoints", "ConditionalBreakpoints",
6981 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
6982 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
6983 "EnableDisableTracepoints", and "tracenz".
6984 (remote_query_supported): Use packet_support.
6985 (remote_open_1): Adjust.
6986 (extended_remote_attach_1): Use packet_support. Switch on the
6987 result of packet_ok instead of checking whether the packet ended
6988 up disabled.
6989 (remote_vcont_resume): Use packet_support.
6990 (remote_resume, remote_stop_ns, fetch_register_using_p)
6991 (remote_prepare_to_store, store_register_using_P)
6992 (check_binary_download, remote_write_bytes): Use packet_support.
6993 (remote_vkill): Use packet_support. Switch on the result of
6994 packet_ok instead of checking whether the packet ended up
6995 disabled.
6996 (extended_remote_supports_disable_randomization): Use
6997 packet_support.
6998 (extended_remote_run): Switch on the result of packet_ok instead
6999 of checking whether the packet ended up disabled.
7000 (remote_insert_breakpoint, remote_remove_breakpoint)
7001 (remote_insert_watchpoint, remote_remove_watchpoint)
7002 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
7003 packet_support.
7004 (remote_search_memory): Use packet_config_support.
7005 (remote_get_thread_local_address, remote_get_tib_address)
7006 (remote_hostio_send_command, remote_can_execute_reverse): Use
7007 packet_support.
7008 (remote_supports_cond_tracepoints)
7009 (remote_supports_cond_breakpoints)
7010 (remote_supports_fast_tracepoints)
7011 (remote_supports_static_tracepoints)
7012 (remote_supports_install_in_trace)
7013 (remote_supports_enable_disable_tracepoint)
7014 (remote_supports_string_tracing)
7015 (remote_can_run_breakpoint_commands): Rewrite, checking whether
7016 the packet config says the feature is enabled or disabled.
7017 (remote_download_tracepoint, remote_trace_set_readonly_regions)
7018 (remote_get_trace_status): Use packet_support.
7019 (remote_set_disconnected_tracing): Adjust to check whether the
7020 feature is enabled with packet_support.
7021 (remote_set_trace_buffer_size, remote_use_agent)
7022 (remote_can_use_agent, remote_supports_btrace): Use
7023 packet_support.
7024 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
7025 Use packet_config_support.
7026 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
7027 the packet config says the feature is enabled or disabled.
7028 (set_range_stepping): Use packet_support.
7029
bdb52a22
TT
70302014-04-25 Tom Tromey <tromey@redhat.com>
7031
7032 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
7033 argument.
7034
e9475ead
SA
70352014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
7036
7037 * NEWS: Mention support for C99 variable length arrays.
7038
82eacd52
JB
70392014-04-24 Joel Brobecker <brobecker@adacore.com>
7040
7041 * ada-lang.c (standard_exc): Expand introductory comment.
7042
01f9f808
MS
70432014-04-24 Michael Sturm <michael.sturm@mintel.com>
7044 Walfred Tedeschi <walfred.tedeschi@intel.com>
7045
7046 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
7047 AVX512 registers.
7048 (amd64_linux_read_description): Add code to handle AVX512 xstate
7049 mask and return respective tdesc.
7050 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
7051 and features/i386/x32-avx512-linux.c.
7052 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
7053 (amd64_linux_core_read_description): Add code to handle AVX512
7054 xstate mask and return respective tdesc.
7055 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
7056 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
7057 calculation.
7058 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
7059 (tdesc_amd64_avx512_linux): New prototype.
7060 (tdesc_x32_avx512_linux): Likewise.
7061 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
7062 features/i386/x32-avx512.c.
7063 (amd64_ymm_avx512_names): New register names for pseudo
7064 registers YMM16-31.
7065 (amd64_ymmh_avx512_names): New register names for raw registers
7066 YMMH16-31.
7067 (amd64_k_names): New register names for K registers.
7068 (amd64_zmmh_names): New register names for ZMM raw registers.
7069 (amd64_zmm_names): New registers names for ZMM pseudo registers.
7070 (amd64_xmm_avx512_names): New register names for XMM16-31
7071 registers.
7072 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
7073 registers.
7074 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
7075 if feature is present.
7076 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
7077 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
7078 (AMD64_NUM_REGS): Adjust to new number of registers.
7079 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
7080 registers supplied via XSTATE by AVX512 registers.
7081 (i386_linux_read_description): Add case for AVX512.
7082 * i386-linux-tdep.c: Include i386-avx512-linux.c.
7083 (i386_linux_gregset_reg_offset): Add AVX512 registers.
7084 (i386_linux_core_read_description): Add case for AVX512.
7085 (i386_linux_init_abi): Install supported register note section
7086 for AVX512.
7087 (_initialize_i386_linux_tdep): Add call to tdesc init function for
7088 AVX512.
7089 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
7090 registers to be number of zmm7h + 1.
7091 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
7092 * i386-tdep.c: Include features/i386/i386-avx512.c.
7093 (i386_zmm_names): Add ZMM pseudo register names array.
7094 (i386_zmmh_names): Add ZMM raw register names array.
7095 (i386_k_names): Add K raw register names array.
7096 (num_lower_zmm_regs): Add constant for the number of lower ZMM
7097 registers. AVX512 has 16 more ZMM registers than there are YMM
7098 registers.
7099 (i386_zmmh_regnum_p): Add function to look up register number of
7100 ZMM raw registers.
7101 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
7102 (i386_k_regnum_p): Likewise for K raw registers.
7103 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
7104 registers added by AVX512.
7105 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
7106 registers added by AVX512.
7107 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
7108 added by AVX512.
7109 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
7110 (i386_pseudo_register_name): Add ZMM pseudo registers.
7111 (i386_zmm_type): Construct and return vector registers type for ZMM
7112 registers.
7113 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
7114 ZMM0-31 pseudo registers and K registers.
7115 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
7116 and YMM16-31 registers from register cache.
7117 (i386_pseudo_register_write): Add code to write K, ZMM and
7118 YMM16-31 registers.
7119 (i386_register_reggroup_p): Add code to include/exclude AVX512
7120 registers in/from respective register groups.
7121 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
7122 registers if feature is present in xcr0.
7123 (i386_gdbarch_init): Add code to initialize AVX512 feature
7124 variables in tdep structure, wire in pseudo registers and call
7125 initialize_tdesc_i386_avx512.
7126 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
7127 variables.
7128 (i386_regnum): Add AVX512 registers.
7129 (I386_SSE_NUM_REGS): New define for number of SSE registers.
7130 (I386_AVX_NUM_REGS): Likewise for AVX registers.
7131 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
7132 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
7133 512 bits wide.
7134 (i386_xmm_avx512_regnum_p): New prototype for register look up.
7135 (i386_ymm_avx512_regnum_p): Likewise.
7136 (i386_k_regnum_p): Likewise.
7137 (i386_zmm_regnum_p): Likewise.
7138 (i386_zmmh_regnum_p): Likewise.
7139 * i387-tdep.c : Update year in copyright notice.
7140 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
7141 XSAVE buffer.
7142 (XSAVE_YMM_AVX512_ADDR): New macro.
7143 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
7144 XSAVE buffer.
7145 (XSAVE_XMM_AVX512_ADDR): New macro.
7146 (xsave_avx512_k_offset): New table for K register offsets in
7147 XSAVE buffer.
7148 (XSAVE_AVX512_K_ADDR): New macro.
7149 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
7150 in XSAVE buffer.
7151 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
7152 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
7153 buffer.
7154 (i387_collect_xsave): Add code to collect AVX512 registers from
7155 XSAVE buffer.
7156 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
7157 of XMM16-31 registers.
7158 (I387_NUM_K_REGS): New define for number of K registers.
7159 (I387_K0_REGNUM): New define for K0 register number.
7160 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
7161 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
7162 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
7163 registers.
7164 (I387_YMM16H_REGNUM): New define for YMM16H register number.
7165 (I387_XMM16_REGNUM): New define for XMM16 register number.
7166 (I387_YMM0_REGNUM): New define for YMM0 register number.
7167 (I387_KEND_REGNUM): New define for last K register number.
7168 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
7169 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
7170 number.
7171 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
7172 number.
7173 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
7174 size.
7175 * features/Makefile: Add AVX512 related files.
7176 * features/i386/32bit-avx512.xml: New file.
7177 * features/i386/64bit-avx512.xml: Likewise.
7178 * features/i386/amd64-avx512-linux.c: Likewise.
7179 * features/i386/amd64-avx512-linux.xml: Likewise.
7180 * features/i386/amd64-avx512.c: Likewise.
7181 * features/i386/amd64-avx512.xml: Likewise.
7182 * features/i386/i386-avx512-linux.c: Likewise.
7183 * features/i386/i386-avx512-linux.xml: Likewise.
7184 * features/i386/i386-avx512.c: Likewise.
7185 * features/i386/i386-avx512.xml: Likewise.
7186 * features/i386/x32-avx512-linux.c: Likewise.
7187 * features/i386/x32-avx512-linux.xml: Likewise.
7188 * features/i386/x32-avx512.c: Likewise.
7189 * features/i386/x32-avx512.xml: Likewise.
7190 * regformats/i386/amd64-avx512-linux.dat: New file.
7191 * regformats/i386/amd64-avx512.dat: Likewise.
7192 * regformats/i386/i386-avx512-linux.dat: Likewise.
7193 * regformats/i386/i386-avx512.dat: Likewise.
7194 * regformats/i386/x32-avx512-linux.dat: Likewise.
7195 * regformats/i386/x32-avx512.dat: Likewise.
7196 * NEWS: Add note about new support for AVX512.
7197
7198
08351840
PA
71992014-04-23 Pedro Alves <palves@redhat.com>
7200
7201 * breakpoint.c (insert_bp_location): Tolerate errors if the
7202 breakpoint is set in a user-loaded objfile.
7203 (remove_breakpoint_1): Likewise. Also tolerate errors if the
7204 location is marked shlib_disabled. If the breakpoint is set in a
7205 user-loaded objfile is a GDB-side memory breakpoint, validate it
7206 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
7207 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
7208 flag.
7209 * mem-break.c (memory_validate_breakpoint): New function.
7210 * objfiles.c (userloaded_objfile_contains_address_p): New
7211 function.
7212 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
7213 * target.h (memory_validate_breakpoint): New declaration.
7214
076855f9
PA
72152014-04-23 Pedro Alves <palves@redhat.com>
7216
7217 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
7218 the breakpoint is set in a shared library, only suppress
7219 errors for software breakpoints, not hardware breakpoints.
7220
483805cf
PA
72212014-04-22 Pedro Alves <palves@redhat.com>
7222
7223 * infrun.c (schedlock_applies): New function, factored out from
7224 find_thread_needs_step_over.
7225 (find_thread_needs_step_over): Use it.
7226 (switch_back_to_stepped_thread): Always clear trap_expected if the
7227 step over is finished. Return early if scheduler locking applies.
7228 Look for the stepping thread and a potential step-over thread with
7229 a single loop.
7230 (currently_stepping_or_nexting_callback): Delete.
7231
a75fef0e
NC
72322014-04-22 Nick Clifton <nickc@redhat.com>
7233
7234 * NEWS: Mention that ARM sim now supports tracing.
7235
48b6e87e
YQ
72362014-04-22 Yao Qi <yao@codesourcery.com>
7237
7238 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
7239 to ...
7240 * tracefile.c (tracefile_fetch_registers): ... it. New
7241 function.
7242 * tracefile.h (tracefile_fetch_registers): Declare.
7243 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
7244 tracefile_fetch_registers.
7245
17617f2d
EZ
72462014-04-19 Eli Zaretskii <eliz@gnu.org>
7247
7248 PR gdb/14018
7249 * windows-nat.c (thread_rec): Don't display a warning when
7250 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
7251 fails for any reason, set th->suspended to -1, so that we don't
7252 try to resume such a thread. Also, don't return NULL in these
7253 cases, to avoid completely ruin the session due to "PC register is
7254 not available" error.
7255 (do_windows_fetch_inferior_registers): Check errors in
7256 GetThreadContext call.
7257 (windows_continue): Accept an additional argument KILLED; if not
7258 zero, ignore errors in the SetThreadContext call, since the
7259 inferior was killed and is shutting down.
7260 (windows_resume, get_windows_debug_event)
7261 (windows_create_inferior, windows_mourn_inferior)
7262 (windows_kill_inferior): All callers of windows_continue changed
7263 to adjust to its new calling sequence.
7264
5723a6fd
YQ
72652014-04-19 Yao Qi <yao@codesourcery.com>
7266
7267 * ctf.c (ctf_open): Call post_create_inferior.
7268
614d5099
YQ
72692014-04-19 Yao Qi <yao@codesourcery.com>
7270
7271 * ctf.c (handle_id): New static variable.
7272 (ctf_open_dir): Get handle_id from bt_context_add_trace return
7273 value. Get the declaration of event "register" and get length
7274 of field "contents".
7275
dac3e710
YQ
72762014-04-19 Yao Qi <yao@codesourcery.com>
7277
7278 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
7279
2bca57ba
SC
72802014-04-18 Siva Chandra Reddy <sivachandra@google.com>
7281
7282 * valops.c (oload_method_static): Remove unnecessary argument
7283 METHOD. Update all callers.
7284
51d48146
PA
72852014-04-18 Pedro alves <palves@redhat.com>
7286 Tom Tromey <tromey@redhat.com>
7287
7288 PR backtrace/15558
7289 * frame.c (get_prev_frame_1): Rename to ...
7290 (get_prev_frame_always): ... this, and make extern. Adjust.
7291 (skip_artificial_frames): Use get_prev_frame_always.
7292 (frame_unwind_caller_id, frame_pop, get_prev_frame)
7293 (get_frame_unwind_stop_reason): Adjust to rename.
7294 * frame.h (get_prev_frame_always): Declare.
7295 * inline-frame.c: Include frame.h.
7296 (inline_frame_this_id): Use get_prev_frame_always.
7297
1bdad2e0
TG
72982014-04-18 Tristan Gingold <gingold@adacore.com>
7299
7300 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
7301 code by using bfd_mach_o_get_base_address.
7302
7ce16bd4
UW
73032014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
7304
7305 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
7306 (spu_ax_pseudo_register_collect): New function.
7307 (spu_ax_pseudo_register_push_stack): Likewise.
7308 (spu_dwarf_reg_to_regnum): Likewise.
7309 (spu_gdbarch_init): Install them. Append DWARF unwinders.
7310
2ed3c037
UW
73112014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
7312
7313 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
7314 Replace FRAME argument with FRAME_ID.
7315 * gdbarch.c, gdbarch.h: Regenerate.
7316 * findvar.c (default_value_from_register): Add GDBARCH argument;
7317 replace FRAME by FRAME_ID. No longer call get_frame_id.
7318 (value_from_register): Update call to gdbarch_value_from_register.
7319 * value.h (default_value_from_register): Update prototype.
7320 * s390-linux-tdep.c (s390_value_from_register): Update interface
7321 and call to default_value_from_register.
7322 * spu-tdep.c (spu_value_from_register): Likewise.
7323
7324 * findvar.c (address_from_register): Remove TYPE argument.
7325 Do not call value_from_register; use gdbarch_value_from_register
7326 with null_frame_id instead.
7327 * value.h (address_from_register): Update prototype.
7328 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
7329 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
7330 address_from_register interface change.
7331
71e50e83
YQ
73322014-04-17 Yao Qi <yao@codesourcery.com>
7333
7334 * gdbtypes.h: Update comments to link to types and macros'
7335 definitions.
7336
7a23c549
SC
73372014-04-16 Siva Chandra Reddy <sivachandra@google.com>
7338
7339 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
7340
22869d73
KS
73412014-04-16 Keith Seitz <keiths@redhat.com>
7342
7343 PR gdb/15827
7344 * dwarf2read.c (skip_one_die): Check that all relative-offset
7345 sibling DIEs fall within range of the current reader's buffer.
7346 (read_partial_die): Likewise.
7347
c4f87ca6
KS
73482014-04-16 Keith Seitz <keiths@redhat.com>
7349
7350 PR c++/16597
7351 * cp-namespace.c (lookup_symbol_file): If the type name of
7352 `this' is NULL, return immediately.
7353
b50c8614
KS
73542014-04-14 Keith Seitz <keiths@redhat.com>
7355
7356 PR c++/16253
7357 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
7358 from symbol_matches_domain in symtab.c. All local callers
7359 of symbol_matches_domain updated.
7360 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
7361 search STRUCT_DOMAIN.
7362 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
7363 independently. standard_lookup will do that automatically.
7364 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
7365 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7366 (cp_lookup_symbol_in_namespace): Likewise.
7367 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
7368 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
7369 may return a STRUCT_DOMAIN match.
7370 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
7371 * cp-support.c: Include language.h.
7372 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
7373 VAR_DOMAIN.
7374 * psymtab.c (match_partial_symbol): Compare the requested
7375 domain with the symbol's domain directly.
7376 (lookup_partial_symbol): Likewise.
7377 * symtab.c (lookup_symbol_in_language): Explain when/why
7378 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7379 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
7380 appropriate languages.
7381 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
7382 and moved to ada-lang.c
7383 (lookup_block_symbol): Explain that this function only returns
7384 symbol matching the requested DOMAIN.
7385 Compare the requested domain with the symbol's domain directly.
7386 (iterate_over_symbols): Compare the requested domain with the
7387 symbol's domain directly.
7388 * symtab.h (symbol_matches_domain): Remove.
7389
3d567982
TT
73902014-04-14 Tom Tromey <tromey@redhat.com>
7391
7392 PR c++/15246:
7393 * c-exp.y (type_aggregate_p): New function.
7394 (qualified_name, classify_inner_name): Use it.
7395 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
7396 and TYPE_TARGET_TYPE of an enum type.
7397 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
7398 an enum type.
7399 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
7400 handle TYPE_DECLARED_CLASS.
7401 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
7402 types.
7403 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
7404 * valops.c (enum_constant_from_type): New function.
7405 (value_aggregate_elt): Use it.
7406 * cp-namespace.c (cp_lookup_nested_symbol): Handle
7407 TYPE_CODE_ENUM.
7408
c848d642
TT
74092014-04-14 Tom Tromey <tromey@redhat.com>
7410
7411 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
7412 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
7413 const.
7414 * value.h (value_aggregate_elt): Update.
7415
0626fc76
TT
74162014-04-14 Tom Tromey <tromey@redhat.com>
7417
7418 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
7419
5ecaaa66
SA
74202014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7421
7422 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7423 (evaluate_subexp_standard): Pass noside argument.
7424 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7425 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7426 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7427 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7428 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7429
1612e0c0
SA
74302014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7431
7432 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7433 points to a constant blob.
7434
c451ebe5
SA
74352014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7436
7437 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7438 property and store it as the high bound and flag the range accordingly.
7439 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7440 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7441 * gdbtypes.h (enum range_flags): New enum.
7442 (struct range_bounds): Add flags member.
7443
1d42e4c4
SA
74442014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7445
7446 * c-typeprint.c (c_type_print_varspec_suffix): Added
7447 check for not yet resolved high bound. If unresolved, print
7448 "variable length" string to the console instead of random
7449 length.
7450
9f1f738a
SA
74512014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7452
7453 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
7454 value.
7455 (ada_template_to_fixed_record_type_1): Likewise.
7456 (ada_to_fixed_type_1): Likewise.
7457 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7458 (cp_print_value): Likewise.
7459 * d-valprint.c (dynamic_array_type): Likewise.
7460 * findvar.c (address_of_variable): Likewise.
7461 * jv-valprint.c (java_value_print): Likewise.
7462 * valops.c (value_ind): Likewise.
7463 * value.c (coerce_ref): Likewise.
7464
3c8452d4
SA
74652014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7466
7467 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7468 value and retrieve the dynamic type size.
7469
4ad88275
SA
74702014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7471
7472 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7473 passed to sizeof is dynamic evaluate the argument to compute the length.
7474
80180f79
SA
74752014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7476 Joel Brobecker <brobecker@adacore.com>
7477
7478 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7479 (dwarf2_evaluate_property): New function.
7480 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7481 * dwarf2read.c (attr_to_dynamic_prop): New function.
7482 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7483 attribute.
7484 * gdbtypes.c: Include dwarf2loc.h.
7485 (is_dynamic_type): New function.
7486 (resolve_dynamic_type): New function.
7487 (resolve_dynamic_bounds): New function.
7488 (get_type_length): New function.
7489 (check_typedef): Use get_type_length to compute type length.
7490 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7491 (TYPE_LOW_BOUND_KIND): New macro.
7492 (is_dynamic_type): New function prototype.
7493 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7494 to resolve dynamic properties of the type. Update comment.
7495 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7496
a1556843
RH
74972014-04-14 Richard Henderson <rth@redhat.com>
7498
7499 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
7500
0be03e84
DE
75012014-04-12 Siva Chandra Reddy <sivachandra@google.com>
7502 Doug Evans <xdje42@gmail.com>
7503
7504 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
7505 dereference TYPE_CODE_REF values.
7506
6b662e19
JB
75072014-04-11 Joel Brobecker <brobecker@adacore.com>
7508
7509 Revert the following changes due to regressions:
7510
7511 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7512 (dwarf2_evaluate_property): New function.
7513 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7514 * dwarf2read.c (attr_to_dynamic_prop): New function.
7515 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7516 attribute.
7517 * gdbtypes.c: Include dwarf2loc.h.
7518 (is_dynamic_type): New function.
7519 (resolve_dynamic_type): New function.
7520 (resolve_dynamic_bounds): New function.
7521 (get_type_length): New function.
7522 (check_typedef): Use get_type_length to compute type length.
7523 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7524 (TYPE_LOW_BOUND_KIND): New macro.
7525 (is_dynamic_type): New function prototype.
7526 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7527 to resolve dynamic properties of the type. Update comment.
7528 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7529
7530 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7531 passed to sizeof is dynamic evaluate the argument to compute the length.
7532
7533 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7534 value and retrieve the dynamic type size.
7535
7536 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7537 (ada_template_to_fixed_record_type_1): Likewise.
7538 (ada_to_fixed_type_1): Likewise.
7539 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7540 (cp_print_value): Likewise.
7541 * d-valprint.c (dynamic_array_type): Likewise.
7542 * eval.c (evaluate_subexp_with_coercion): Likewise.
7543 * findvar.c (address_of_variable): Likewise.
7544 * jv-valprint.c (java_value_print): Likewise.
7545 * valops.c (value_ind): Likewise.
7546 * value.c (coerce_ref): Likewise.
7547
7548 * c-typeprint.c (c_type_print_varspec_suffix): Added
7549 check for not yet resolved high bound. If unresolved, print
7550 "variable length" string to the console instead of random
7551 length.
7552
7553 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7554 property and store it as the high bound and flag the range accordingly.
7555 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7556 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7557 * gdbtypes.h (enum range_flags): New enum.
7558 (struct range_bounds): Add flags member.
7559
7560 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7561 points to a constant blob.
7562
7563 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7564 (evaluate_subexp_standard): Pass noside argument.
7565 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7566 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7567 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7568 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7569 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7570
245a5f0b
KS
75712014-04-11 Keith Seitz <keiths@redhat.com>
7572
7573 PR c++/16675
7574 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
7575 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
7576 reference types.
7577
3bce8237
SA
75782014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7579
7580 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7581 (evaluate_subexp_standard): Pass noside argument.
7582 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7583 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7584 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7585 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7586 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7587
92b09522
SA
75882014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7589
7590 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7591 points to a constant blob.
7592
e1969afb
SA
75932014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7594
7595 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7596 property and store it as the high bound and flag the range accordingly.
7597 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7598 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7599 * gdbtypes.h (enum range_flags): New enum.
7600 (struct range_bounds): Add flags member.
7601
b86138fb
SA
76022014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7603
7604 * c-typeprint.c (c_type_print_varspec_suffix): Added
7605 check for not yet resolved high bound. If unresolved, print
7606 "variable length" string to the console instead of random
7607 length.
7608
bcd629a4
SA
76092014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7610
7611 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7612 (ada_template_to_fixed_record_type_1): Likewise.
7613 (ada_to_fixed_type_1): Likewise.
7614 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7615 (cp_print_value): Likewise.
7616 * d-valprint.c (dynamic_array_type): Likewise.
7617 * eval.c (evaluate_subexp_with_coercion): Likewise.
7618 * findvar.c (address_of_variable): Likewise.
7619 * jv-valprint.c (java_value_print): Likewise.
7620 * valops.c (value_ind): Likewise.
7621 * value.c (coerce_ref): Likewise.
7622
04b19544
SA
76232014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7624
7625 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7626 value and retrieve the dynamic type size.
7627
26cb189f
SA
76282014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7629
7630 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7631 passed to sizeof is dynamic evaluate the argument to compute the length.
7632
37c1ab67
SA
76332014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7634
7635 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7636 (dwarf2_evaluate_property): New function.
7637 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7638 * dwarf2read.c (attr_to_dynamic_prop): New function.
7639 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7640 attribute.
7641 * gdbtypes.c: Include dwarf2loc.h.
7642 (is_dynamic_type): New function.
7643 (resolve_dynamic_type): New function.
7644 (resolve_dynamic_bounds): New function.
7645 (get_type_length): New function.
7646 (check_typedef): Use get_type_length to compute type length.
7647 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7648 (TYPE_LOW_BOUND_KIND): New macro.
7649 (is_dynamic_type): New function prototype.
7650 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7651 to resolve dynamic properties of the type. Update comment.
7652 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7653
729efb13
SA
76542014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7655
7656 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
7657 declaring high/low bounds and change uses accordingly. Call
7658 create_range_type instead of create_static_range_type.
7659 * gdbtypes.c (create_range_type): New function.
7660 (create_range_type): Convert bounds into struct bound_prop and pass
7661 them to create_range_type.
7662 * gdbtypes.h (struct bound_prop): New struct.
7663 (create_range_type): New function prototype.
7664 (struct range_bounds): Use struct bound_prop instead of LONGEST for
7665 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
7666 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
7667 part of the bound.
7668 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
7669
0c9c3474
SA
76702014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7671
7672 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
7673 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
7674 * ada-lang.c: All uses of create_range_type updated.
7675 * coffread.c: All uses of create_range_type updated.
7676 * dwarf2read.c: All uses of create_range_type updated.
7677 * f-exp.y: All uses of create_range_type updated.
7678 * m2-valprint.c: All uses of create_range_type updated.
7679 * mdebugread.c: All uses of create_range_type updated.
7680 * stabsread.c: All uses of create_range_type updated.
7681 * valops.c: All uses of create_range_type updated.
7682 * valprint.c: All uses of create_range_type updated.
7683
9d497a19
PA
76842014-04-10 Pedro Alves <palves@redhat.com>
7685
7686 * breakpoint.c (single_step_breakpoints)
7687 (single_step_gdbarch): Move up in the file.
7688 (one_breakpoint_xfer_memory): New function, factored out from ...
7689 (breakpoint_xfer_memory): ... here. Also process single-step
7690 breakpoints.
7691
15a9128a
TG
76922014-04-09 Tristan Gingold <gingold@adacore.com>
7693
7694 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
7695 comments.
7696 (darwin_decode_exception_message): Free port only after use.
7697
9c97a070
PL
76982014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
7699
7700 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
7701 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
7702 when setting the size of call_length.
7703
7af389b8
SC
77042014-04-07 Siva Chandra Reddy <sivachandra@google.com>
7705
7706 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
7707 dereference TYPE_CODE_REF values.
7708
86ad98c3
JB
77092014-04-07 Joel Brobecker <brobecker@adacore.com>
7710
7711 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
7712 end of warning message.
7713
b0aeadb3
DE
77142014-04-03 Doug Evans <dje@google.com>
7715
7716 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
7717 of stub_comp_unit_die, stub_comp_dir is non-NULL.
7718
5979d6b6
AM
77192014-04-02 Alan Modra <amodra@gmail.com>
7720
7721 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
7722 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
7723 (struct symbol_file_add_from_memory_args): Add size field.
7724 (find_vdso_size): New function.
7725 (add_vsyscall_page): Attempt to find vdso size.
7726
0d60c288
DE
77272014-04-01 Doug Evans <dje@google.com>
7728
7729 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
7730
a41f2563
TG
77312014-04-01 Tristan Gingold <gingold@adacore.com>
7732
7733 * darwin-nat.c (darwin_encode_reply): Add prototype.
7734 (darwin_decode_exception_message): Reply to unknown inferiors.
7735 (darwin_decode_message): Handle message by id. Ignore message
7736 to unknown inferior.
7737 (darwin_wait): Discard unknown messages, add debug trace.
7738
11a865c8
DE
77392014-03-31 Doug Evans <dje@google.com>
7740
7741 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
7742 comp_dir_string.
7743
770e7fc7
DE
77442014-03-31 Doug Evans <dje@google.com>
7745
7746 New option "set print symbol-loading".
7747 * NEWS: Mention it.
7748 * solib.c (solib_read_symbols): Only print symbol loading messages
7749 if requested.
7750 (solib_add): If symbol loading is in "brief" mode, notify user
7751 symbols are being loaded.
7752 (reload_shared_libraries_1): Ditto.
7753 * symfile.c (print_symbol_loading_off): New static global.
7754 (print_symbol_loading_brief): New static global.
7755 (print_symbol_loading_full): New static global.
7756 (print_symbol_loading_enums): New static global.
7757 (print_symbol_loading): New static global.
7758 (print_symbol_loading_p): New function.
7759 (symbol_file_add_with_addrs): Only print symbol loading messages
7760 if requested.
7761 (_initialize_symfile): Register "print symbol-loading" set/show
7762 command.
7763 * symfile.h (print_symbol_loading_p): Declare.
7764
c32c64b7
DE
77652014-03-30 Doug Evans <xdje42@gmail.com>
7766
7767 * infrun.c (set_last_target_status): New function.
7768 (handle_inferior_event): Call it.
7769
7c0bc051
DE
77702014-03-30 Doug Evans <xdje42@gmail.com>
7771
7772 * inferior.h (enum stop_kind): Improve comment.
7773
8776cfe9
JB
77742014-03-28 Joel Brobecker <brobecker@adacore.com>
7775
7776 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
7777 a reference, strip the reference layer before calling
7778 the lang_ops value_has_mutated callback.
7779
410a0ff2
SDJ
77802014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
7781
7782 Remove some globals from our parser.
7783 * language.c (unk_lang_parser): Add "struct parser_state"
7784 argument.
7785 * language.h (struct language_defn) <la_parser>: Likewise.
7786 * parse.c (expout, expout_size, expout_ptr): Remove variables.
7787 (initialize_expout): Add "struct parser_state" argument.
7788 Rewrite function to use the parser state.
7789 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
7790 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
7791 write_exp_elt_longcst, write_exp_elt_dblcst,
7792 write_exp_elt_decfloatcst, write_exp_elt_type,
7793 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
7794 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
7795 write_dollar_variable): Likewise.
7796 (parse_exp_in_context_1): Use parser state.
7797 (insert_type_address_space): Add "struct parser_state" argument.
7798 Use parser state.
7799 (increase_expout_size): New function.
7800 * parser-defs.h: Forward declare "struct language_defn" and
7801 "struct parser_state".
7802 (expout, expout_size, expout_ptr): Remove extern declarations.
7803 (parse_gdbarch, parse_language): Rewrite macro declarations to
7804 accept the parser state.
7805 (struct parser_state): New struct.
7806 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
7807 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
7808 write_exp_elt_decfloatcst, write_exp_elt_type,
7809 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
7810 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
7811 write_exp_msymbol, write_dollar_variable,
7812 mark_struct_expression, insert_type_address_space): Add "struct
7813 parser_state" argument.
7814 (increase_expout_size): New function.
7815 * utils.c (do_clear_parser_state): New function.
7816 (make_cleanup_clear_parser_state): Likewise.
7817 * utils.h (make_cleanup_clear_parser_state): New function
7818 prototype.
7819 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
7820 Update calls to write_exp* in order to pass the parser state.
7821 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
7822 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
7823 (i386_stap_parse_special_token_three_arg_disp): Likewise.
7824 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
7825 * stap-probe.c (stap_parse_register_operand): Likewise.
7826 (stap_parse_single_operand): Likewise.
7827 (stap_parse_argument_1): Likewise.
7828 (stap_parse_argument): Use parser state.
7829 * stap-probe.h: Include "parser-defs.h".
7830 (struct stap_parse_info) <pstate>: New field.
7831 * c-exp.y (parse_type): Rewrite to use parser state.
7832 (yyparse): Redefine to c_parse_internal.
7833 (pstate): New global variable.
7834 (parse_number): Add "struct parser_state" argument.
7835 (write_destructor_name): Likewise.
7836 (type_exp): Update calls to write_exp* and similars in order to
7837 use parser state.
7838 (exp1, exp, variable, qualified_name, space_identifier,
7839 typename, typebase): Likewise.
7840 (write_destructor_name, parse_number, lex_one_token,
7841 classify_name, classify_inner_name, c_parse): Add "struct
7842 parser_state" argument. Update function to use parser state.
7843 * c-lang.h: Forward declare "struct parser_state".
7844 (c_parse): Add "struct parser_state" argument.
7845 * ada-exp.y (parse_type): Rewrite macro to use parser state.
7846 (yyparse): Redefine macro to ada_parse_internal.
7847 (pstate): New variable.
7848 (write_int, write_object_renaming, write_var_or_type,
7849 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
7850 type_int, type_long, type_long_long, type_float, type_double,
7851 type_long_double, type_char, type_boolean, type_system_address):
7852 Add "struct parser_state" argument.
7853 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
7854 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
7855 var_or_type, aggregate, aggregate_component_list,
7856 positional_list, others, component_group,
7857 component_associations): Update calls to write_exp* and similar
7858 functions in order to use parser state.
7859 (ada_parse, write_var_from_sym, write_int,
7860 write_exp_op_with_string, write_object_renaming,
7861 find_primitive_type, write_selectors, write_ambiguous_var,
7862 write_var_or_type, write_name_assoc, type_int, type_long,
7863 type_long_long, type_float, type_double, type_long_double,
7864 type_char, type_boolean, type_system_address): Add "struct
7865 parser_state" argument. Adjust function to use parser state.
7866 * ada-lang.c (parse): Likewise.
7867 * ada-lang.h: Forward declare "struct parser_state".
7868 (ada_parse): Add "struct parser_state" argument.
7869 * ada-lex.l (processInt, processReal): Likewise. Adjust all
7870 calls to both functions.
7871 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
7872 parser state.
7873 (yyparse): Redefine macro to f_parse_internal.
7874 (pstate): New variable.
7875 (parse_number): Add "struct parser_state" argument.
7876 (type_exp, exp, subrange, typebase): Update calls to write_exp*
7877 and similars in order to use parser state.
7878 (parse_number): Adjust code to use parser state.
7879 (yylex): Likewise.
7880 (f_parse): New function.
7881 * f-lang.h: Forward declare "struct parser_state".
7882 (f_parse): Add "struct parser_state" argument.
7883 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
7884 parser state.
7885 (yyparse): Redefine macro for java_parse_internal.
7886 (pstate): New variable.
7887 (push_expression_name, push_expression_name, insert_exp): Add
7888 "struct parser_state" argument.
7889 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
7890 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
7891 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
7892 PostIncrementExpression, PostDecrementExpression,
7893 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
7894 UnaryExpressionNotPlusMinus, CastExpression,
7895 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
7896 RelationalExpression, EqualityExpression, AndExpression,
7897 ExclusiveOrExpression, InclusiveOrExpression,
7898 ConditionalAndExpression, ConditionalOrExpression,
7899 ConditionalExpression, Assignment, LeftHandSide): Update
7900 calls to write_exp* and similars in order to use parser state.
7901 (parse_number): Ajust code to use parser state.
7902 (yylex): Likewise.
7903 (java_parse): New function.
7904 (push_variable): Add "struct parser_state" argument. Adjust
7905 code to user parser state.
7906 (push_fieldnames, push_qualified_expression_name,
7907 push_expression_name, insert_exp): Likewise.
7908 * jv-lang.h: Forward declare "struct parser_state".
7909 (java_parse): Add "struct parser_state" argument.
7910 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
7911 parser state.
7912 (yyparse): Redefine macro to m2_parse_internal.
7913 (pstate): New variable.
7914 (type_exp, exp, fblock, variable, type): Update calls to
7915 write_exp* and similars to use parser state.
7916 (yylex): Likewise.
7917 (m2_parse): New function.
7918 * m2-lang.h: Forward declare "struct parser_state".
7919 (m2_parse): Add "struct parser_state" argument.
7920 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
7921 * objc-lang.h: Forward declare "struct parser_state".
7922 (end_msglist): Add "struct parser_state" argument.
7923 * p-exp.y (parse_type): Rewrite macro to use parser state.
7924 (yyparse): Redefine macro to pascal_parse_internal.
7925 (pstate): New variable.
7926 (parse_number): Add "struct parser_state" argument.
7927 (type_exp, exp1, exp, qualified_name, variable): Update calls to
7928 write_exp* and similars in order to use parser state.
7929 (parse_number, yylex): Adjust code to use parser state.
7930 (pascal_parse): New function.
7931 * p-lang.h: Forward declare "struct parser_state".
7932 (pascal_parse): Add "struct parser_state" argument.
7933 * go-exp.y (parse_type): Rewrite macro to use parser state.
7934 (yyparse): Redefine macro to go_parse_internal.
7935 (pstate): New variable.
7936 (parse_number): Add "struct parser_state" argument.
7937 (type_exp, exp1, exp, variable, type): Update calls to
7938 write_exp* and similars in order to use parser state.
7939 (parse_number, lex_one_token, classify_name, yylex): Adjust code
7940 to use parser state.
7941 (go_parse): Likewise.
7942 * go-lang.h: Forward declare "struct parser_state".
7943 (go_parse): Add "struct parser_state" argument.
7944
342587c4
DE
79452014-03-27 Doug Evans <dje@google.com>
7946
7947 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
7948
33e80786
DE
79492014-03-27 Doug Evans <dje@google.com>
7950
7951 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
7952 Remove argument abbrev_section. All callers updated.
7953
1dbab08b
DE
79542014-03-27 Doug Evans <dje@google.com>
7955
7956 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
7957 addr_base, ranges_base.
7958
318d3177
KS
79592014-03-26 Keith Seitz <keiths@redhat.com>
7960
7961 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
7962 types, not VAR_DOMAIN.
7963
1e54db15
SL
79642014-03-25 Sandra Loosemore <sandra@codesourcery.com>
7965
7966 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
7967 "ra" registers.
7968 * features/nios2-linux.c: Regenerated.
7969 * features/nios2.c: Regenerated.
7970
d3839ede
PA
79712014-03-25 Pedro Alves <palves@redhat.com>
7972
7973 * cli/cli-script.c (script_from_file): Force the interpreter to
7974 sync mode.
7975
7588d2ec
PL
79762014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
7977
7978 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
7979 small stack allocation.
7980
a6290449
TG
79812014-03-24 Tristan Gingold <gingold@adacore.com>
7982
7983 * darwin-nat.c (exc_server): Remove unused prototype.
7984 (darwin_dump_message): Correctly display data on x86_64.
7985 (darwin_encode_reply): Fix style.
7986 Add comments and fix indentation.
7987
31ae9d24 79882014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
69fa4030
PL
7989
7990 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
7991
6339bfc4
DE
79922014-03-22 Doug Evans <xdje42@gmail.com>
7993
7994 * infcmd.c: Whitespace fixes.
7995 (interrupt_command): Merge two function comments into one.
7996
0a07590b
DE
79972014-03-22 Doug Evans <xdje42@gmail.com>
7998
7999 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
8000 All uses updated.
8001
b55fbac4
YQ
80022014-03-22 Yao Qi <yao@codesourcery.com>
8003
8004 * remote.c (target_read_live_memory): Remove.
8005 (memory_xfer_live_readonly_partial): Rename it to
8006 remote_xfer_live_readonly_partial. Remove argument 'object'.
8007 All callers updated. Call remote_read_bytes_1
8008 instead of target_read_live_memory.
8009 * tracepoint.c (set_traceframe_number): Remove.
8010 (make_cleanup_restore_traceframe_number): Likewise .
8011 * tracepoint.h (set_traceframe_number): Remove declaration.
8012 (make_cleanup_restore_traceframe_number): Likewise.
8013
9217e74e
YQ
80142014-03-22 Yao Qi <yao@codesourcery.com>
8015
8016 * remote.c (remote_read_bytes): Move code on reading from the
8017 remote stub to ...
8018 (remote_read_bytes_1): ... here. New function.
8019
8acf9577
YQ
80202014-03-22 Yao Qi <yao@codesourcery.com>
8021
8022 * ctf.c (ctf_xfer_partial): Check the return value of
8023 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
8024 return TARGET_XFER_UNAVAILABLE.
8025 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8026 * target.c (target_read_live_memory): Move it to remote.c.
8027 (memory_xfer_live_readonly_partial): Likewise.
8028 (memory_xfer_partial_1): Move some code to remote_read_bytes.
8029 * remote.c (target_read_live_memory): Moved from target.c.
8030 (memory_xfer_live_readonly_partial): Likewise.
8031 (remote_read_bytes): Factored out from
8032 memory_xfer_partial_1.
8033
feef67ab
DE
80342014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
8035
8036 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
8037 NULL pointer.
8038
b65dc60b
PA
80392014-03-21 Pedro Alves <palves@redhat.com>
8040
8041 * infrun.c (normal_stop): Extend comment.
8042
b4ab256d
HZ
80432014-03-21 Hui Zhu <hui@codesourcery.com>
8044 Pedro Alves <palves@redhat.com>
8045
8046 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
8047 static buffer.
8048 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
8049 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
8050 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
8051
deba7593
MR
80522014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
8053
8054 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
8055 `z' formatted output modifier.
8056
1bff71c3
SDJ
80572014-03-20 Tom Tromey <tromey@redhat.com>
8058 Sergio Durigan Junior <sergiodj@redhat.com>
8059
8060 * probe.c (parse_probes): Turn assert into an ordinary error.
8061 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
8062 exceptions when parsing probes. Rearrange the code for clarity.
8063
90e28950
TT
80642014-03-20 Tom Tromey <tromey@redhat.com>
8065
8066 PR gdb/14135
8067 * top.c (execute_command): Only dispatch events if the command
8068 started the target.
8069
beb460e8
PA
80702014-03-20 Tom Tromey <tromey@redhat.com>
8071
8072 PR cli/15718
8073 * infcall.c: Include event-top.h.
8074 (run_inferior_call): Call async_disable_stdin if needed.
8075
99619bea
PA
80762014-03-20 Pedro Alves <palves@redhat.com>
8077
8078 * infrun.c (prepare_to_proceed): Delete.
8079 (thread_still_needs_step_over): New function.
8080 (find_thread_needs_step_over): New function.
8081 (proceed): If the current thread needs a step-over, set its
8082 steping_over_breakpoint flag. Adjust to use
8083 find_thread_needs_step_over instead of prepare_to_proceed.
8084 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
8085 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
8086 breakpoint.
8087 (switch_back_to_stepped_thread): Step over breakpoints of all
8088 threads not the stepping thread, before switching back to the
8089 stepping thread.
8090
2adfaa28
PA
80912014-03-20 Pedro Alves <palves@redhat.com>
8092
8093 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
8094 extern.
8095 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
8096 * infrun.c (saved_singlestep_ptid)
8097 (stepping_past_singlestep_breakpoint): Delete.
8098 (resume): Remove stepping_past_singlestep_breakpoint handling.
8099 (proceed): Store the prev_pc of the stepping thread too.
8100 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
8101 singlestep_pc.
8102 (enum infwait_states): Delete infwait_thread_hop_state.
8103 (struct execution_control_state) <hit_singlestep_breakpoint>: New
8104 field.
8105 (handle_inferior_event): Adjust.
8106 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
8107 handling and the thread-hop code. Before removing single-step
8108 breakpoints, check whether the thread hit a single-step breakpoint
8109 of another thread. If it did, the trap is not a random signal.
8110 (switch_back_to_stepped_thread): If the event thread hit a
8111 single-step breakpoint, unblock it before switching to the
8112 stepping thread. Handle the case of the stepped thread having
8113 advanced already.
8114 (keep_going): Handle the case of the current thread moving past a
8115 single-step breakpoint.
8116
31e77af2
PA
81172014-03-20 Pedro Alves <palves@redhat.com>
8118
8119 PR breakpoints/7143
8120 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
8121 are being stepped over.
8122 (breakpoint_address_match): Make extern.
8123 * breakpoint.h (breakpoint_address_match): New declaration.
8124 * inferior.h (stepping_past_instruction_at): New declaration.
8125 * infrun.c (struct step_over_info): New type.
8126 (step_over_info): New global.
8127 (set_step_over_info, clear_step_over_info)
8128 (stepping_past_instruction_at): New functions.
8129 (handle_inferior_event): Clear the step-over info when
8130 trap_expected is cleared.
8131 (resume): Remove now stale comment.
8132 (clear_proceed_status): Clear step-over info.
8133 (proceed): Adjust step-over handling to set or clear the step-over
8134 info instead of removing all breakpoints.
8135 (handle_signal_stop): When setting up a thread-hop, don't remove
8136 breakpoints here.
8137 (stop_stepping): Clear step-over info.
8138 (keep_going): Adjust step-over handling to set or clear step-over
8139 info and then always inserting breakpoints, instead of removing
8140 all breakpoints when stepping over one.
8141
b9f437de
PA
81422014-03-20 Pedro Alves <palves@redhat.com>
8143
8144 * infrun.c (previous_inferior_ptid): Adjust comment.
8145 (deferred_step_ptid): Delete.
8146 (infrun_thread_ptid_changed, prepare_to_proceed)
8147 (init_wait_for_inferior): Adjust.
8148 (handle_signal_stop): Delete deferred_step_ptid handling.
8149
06c868a8
JK
81502014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
8151
8152 PR gdb/15358
8153 * defs.h (sync_quit_force_run): New declaration.
8154 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
8155 * event-top.c (async_sigterm_handler): New declaration.
8156 (async_sigterm_token): New variable.
8157 (async_init_signals): Create also async_sigterm_token.
8158 (async_sigterm_handler): New function.
8159 (sync_quit_force_run): New variable.
8160 (handle_sigterm): Replace quit_force call by other calls.
8161 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
8162
dea80df0
MR
81632014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
8164
8165 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
8166 offset into SPE pseudo registers.
8167
0c7e1a46
PA
81682014-03-18 Pedro Alves <palves@redhat.com>
8169
8170 PR gdb/13860
8171 * inferior.h (print_stop_event): Declare.
8172 * infrun.c (print_stop_event): New, factored out from ...
8173 (normal_stop): ... this.
8174 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
8175 of bpstat_print/print_stack_frame.
8176
9c1fcd01
TT
81772014-03-17 Tom Tromey <tromey@redhat.com>
8178
8179 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
8180
11aa919a
PMR
81812014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
8182
8183 * ada-lang.c (decode_constrained_packed_array): Perform a
8184 minimal coercion for reference with coerce_ref instead of
8185 ada_coerce_ref.
8186
d4ccb5e0
TG
81872014-03-17 Tristan Gingold <gingold@adacore.com>
8188
8189 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
8190 (darwin_solib_create_inferior_hook): Emit a warning if version
8191 is unhandled.
8192
49840f2a
UW
81932014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
8194
8195 * python/py-value.c (get_field_flag): Cast flag_name argument to
8196 PyObject_GetAttrString to support Python 2.4.
8197
ed4123e5
JK
81982014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8199
8200 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
8201 (Global Maintainers): Remove Jan Kratochvil.
8202
d6b64346
PA
82032014-03-14 Pedro Alves <palves@redhat.com>
8204
8205 * inferior.h (terminal_ours_for_output): Rename to ...
8206 (child_terminal_ours_for_output): ... this.
8207 (terminal_save_ours): Rename to ...
8208 (child_terminal_save_ours): ... this.
8209 (terminal_ours): Rename to ...
8210 (child_terminal_ours): ... this.
8211 (terminal_inferior): Rename to ...
8212 (child_terminal_inferior): ... this.
8213 (terminal_init_inferior): Rename to ...
8214 (child_terminal_init_inferior): ... this.
8215 (terminal_init_inferior_with_pgrp): Rename to ...
8216 (child_terminal_init_inferior_with_pgrp): ... this.
8217 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
8218 (child_terminal_init_with_pgrp): ... this.
8219 (terminal_save_ours): Rename to ...
8220 (child_terminal_save_ours): ... this.
8221 (terminal_init_inferior): Rename to ...
8222 (child_terminal_init): ... this. Adjust.
8223 (terminal_inferior): Rename to ...
8224 (child_terminal_inferior): ... this.
8225 (terminal_ours_for_output): Rename to ...
8226 (child_terminal_ours_for_output): ... this. Adjust.
8227 (terminal_ours): Rename to ...
8228 (child_terminal_ours): ... this.
8229 (terminal_ours_1): Rename to ...
8230 (child_terminal_ours_1): ... this. Adjust.
8231 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
8232 * windows-nat.c (do_initial_windows_stuff): Adjust.
8233 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
8234 (gnu_terminal_init): ... this. Adjust.
8235 (gnu_target): Adjust.
8236 * inf-child.c (inf_child_target): Adjust.
8237
5a1e8c7a
DE
82382014-03-13 Doug Evans <xdje42@gmail.com>
8239
8240 PR guile/16612
8241 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
8242 new eq?-hashtab.
8243
350e1a76
DE
82442014-03-13 Doug Evans <xdje42@gmail.com>
8245
8246 * value.c (record_latest_value): Call release_value_or_incref
8247 instead of release_value.
8248
a69900ae
PA
82492014-03-13 Pedro Alves <palves@redhat.com>
8250
8251 * procfs.c (procfs_target): Don't override to_shortname,
8252 to_longname or to_doc.
8253
5db9f0bd
PA
82542014-03-13 Pedro Alves <palves@redhat.com>
8255
8256 * inf-child.c (inf_child_open, inf_child_target): Don't mention
8257 Unix in user visible strings.
8258
5e3a2c38
SS
82592014-03-12 Stan Shebs <stan@codesourcery.com>
8260
8261 * gdbtypes.h: Annotate comments for Doxygen, add a page
8262 block comment with some general info.
8263
8bc2fe48
PA
82642014-03-12 Pedro Alves <palves@redhat.com>
8265
8266 * infcmd.c (prepare_execution_command): New function, factored out
8267 from several execution commands.
8268 (run_command_1, continue_command, step_1, jump_command)
8269 (signal_command, until_command, advance_command, finish_command)
8270 (attach_command): Use prepare_execution_command.
8271
638c5f49
OJ
82722014-03-12 Omair Javaid <omair.javaid@linaro.org>
8273
8274 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
8275 (MAX_BPTS): Define.
8276 (MAX_WPTS): Define.
8277 (struct arm_linux_thread_points): Removed.
8278 (struct arm_linux_process_info): New.
8279 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
8280 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
8281 (arm_linux_find_breakpoints_by_tid): Removed.
8282 (struct arch_lwp_info): New.
8283 (arm_linux_find_process_pid): New functions.
8284 (arm_linux_add_process): New functions.
8285 (arm_linux_process_info_get): New functions.
8286 (arm_linux_forget_process): New function.
8287 (arm_linux_get_debug_reg_state): New function.
8288 (struct update_registers_data): New.
8289 (update_registers_callback): New function.
8290 (arm_linux_insert_hw_breakpoint1): Updated.
8291 (arm_linux_remove_hw_breakpoint1): Updated.
8292 (arm_linux_insert_hw_breakpoint): Updated.
8293 (arm_linux_remove_hw_breakpoint): Updated.
8294 (arm_linux_insert_watchpoint): Updated.
8295 (arm_linux_remove_watchpoint): Updated.
8296 (arm_linux_new_thread): Updated.
8297 (arm_linux_prepare_to_resume): New function.
8298 (arm_linux_new_fork): New function.
8299 (_initialize_arm_linux_nat): Updated.
8300
6d03af93
PA
83012014-03-12 Pedro Alves <palves@redhat.com>
8302
8303 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
8304
b3ccfe11
TT
83052014-03-12 Tom Tromey <tromey@redhat.com>
8306
8307 * inf-child.c (return_zero): New function.
8308 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
8309 * aix-thread.c (aix_thread_inferior_created): New function.
8310 (aix_thread_attach): Remove.
8311 (init_aix_thread_ops): Don't set to_attach.
8312 (_initialize_aix_thread): Register inferior_created observer.
8313 * corelow.c (init_core_ops): Don't set to_attach or
8314 to_create_inferior.
8315 * exec.c (init_exec_ops): Don't set to_attach or
8316 to_create_inferior.
8317 * infcmd.c (run_command_1): Use find_run_target. Make direct
8318 target calls.
8319 (attach_command): Use find_attach_target. Make direct target
8320 calls.
8321 * record-btrace.c (init_record_btrace_ops): Don't set
8322 to_create_inferior.
8323 * record-full.c (record_full_can_async_p, record_full_is_async_p):
8324 Remove.
8325 (init_record_full_ops, init_record_full_core_ops): Update. Don't
8326 set to_create_inferior.
8327 * target.c (complete_target_initialization): Add assertion.
8328 (target_create_inferior): Remove.
8329 (find_default_attach, find_default_create_inferior): Remove.
8330 (find_attach_target, find_run_target): New functions.
8331 (find_default_is_async_p, find_default_can_async_p)
8332 (target_supports_non_stop, target_attach): Remove.
8333 (init_dummy_target): Don't set to_create_inferior or
8334 to_supports_non_stop.
8335 * target.h (struct target_ops) <to_attach>: Add comment. Remove
8336 TARGET_DEFAULT_FUNC.
8337 <to_create_inferior>: Add comment.
8338 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
8339 TARGET_DEFAULT_RETURN.
8340 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
8341 (find_attach_target, find_run_target): Declare.
8342 (target_create_inferior): Remove.
8343 (target_has_execution_1): Update comment.
8344 (target_supports_non_stop): Remove.
8345 * target-delegates.c: Rebuild.
8346
91f83b02
PA
83472014-03-12 Pedro Alves <palves@redhat.com>
8348
8349 * inf-child.h: Update comment to not mention Unix.
8350
f1aea813
PA
83512014-03-12 Pedro Alves <palves@redhat.com>
8352
8353 * inf-child.c: Update top comment to not mention Unix. Add
8354 generic comment describing how this target is meant to be used.
8355 (inf_child_post_attach, inf_child_post_startup_inferior)
8356 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
8357 Unix in comment.
8358
ee8e9165
PA
83592014-03-12 Pedro Alves <palves@redhat.com>
8360
8361 * nto-procfs.c: Include inf-child.h.
8362 (procfs_ops): Delete global.
8363 (procfs_can_run): Delete method.
8364 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
8365 target pointer instead of referencing procfs_ops.
8366 (procfs_prepare_to_store): Delete.
8367 (init_procfs_ops): Delete function.
8368 (procfs_target): New function, based on init_procfs_ops, but
8369 inherit inf_child_target.
8370 (_initialize_procfs): Use procfs_target.
8371
51a9c8c5
PA
83722014-03-12 Pedro Alves <palves@redhat.com>
8373
8374 * windows-nat.c: Include inf-child.h.
8375 (windows_ops): Delete global.
8376 (windows_open, windows_prepare_to_store, windows_can_run): Delete
8377 methods.
8378 (init_windows_ops): Delete function.
8379 (windows_target): New function, based on init_windows_ops, but
8380 inherit inf_child_target.
8381 (_initialize_windows_nat): Use windows_target. Install x86
8382 specific target methods here.
8383
c1966e26
DE
83842014-03-10 Doug Evans <xdje42@gmail.com>
8385
8386 * guile/guile.c (call_initialize_gdb_module): New function.
8387 (initialize_guile): Replace call to scm_init_guile with call to
8388 scm_with_guile.
8389
023db19c
JB
83902014-03-10 Joel Brobecker <brobecker@adacore.com>
8391
8392 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
8393 in call to TYPE_CODE macro.
8394
5ec18f2b
JG
83952014-03-10 Jerome Guitton <guitton@adacore.com>
8396
8668be63
JB
8397 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
8398 Resolve tagged types to full view.
5ec18f2b 8399
7d03f2eb
HZ
84002014-03-10 Hui Zhu <hui@codesourcery.com>
8401
8402 * target.h (target_insert_breakpoint): Remove "hardware" from its
8403 comments.
8404
c5164cbc
DE
84052014-03-07 Doug Evans <dje@google.com>
8406
8407 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
8408
c4a3fee2
DE
84092014-03-07 Doug Evans <dje@google.com>
8410
8411 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
8412 Remove unused local comp_dir_attr. Assert exactly one of
8413 stub_comp_unit_die, stub_comp_dir is non-NULL.
8414
3156469c
JB
84152014-03-07 Joel Brobecker <brobecker@adacore.com>
8416
8417 * target.h (complete_target_initialization, add_target):
8418 Add comment.
8419
c1a7b7c6
PA
84202014-03-07 Pedro Alves <palves@redhat.com>
8421
8422 * go32-nat.c: Include inf-child.h.
8423 (go32_ops): Delete global.
8424 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
8425 Delete methods.
8426 (go32_create_inferior): Push the passed in target pointer instead
8427 of referencing go32_ops.
8428 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
8429 (go32_target): New function, based on init_go32_ops, but inherit
8430 inf_child_target.
8431 (_initialize_go32_nat): Use go32_target. Move parts of
8432 init_go32_ops here.
8433
d3c1a85f
JB
84342014-03-06 Joel Brobecker <brobecker@adacore.com>
8435
8436 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
8437 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
8438 SYMBOL_VALUE_ADDRESS.
8439 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
8440
5fa1d40e
YQ
84412014-03-06 Yao Qi <yao@codesourcery.com>
8442
8443 * breakpoint.c (get_tracepoint_by_number): Remove argument
8444 optional_p. All callers updated. Adjust comments. Update
8445 output message.
8446 * breakpoint.h (get_tracepoint_by_number): Update declaration.
8447
0c13193f
YQ
84482014-03-06 Yao Qi <yao@codesourcery.com>
8449
8450 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
8451 early if get_number returns zero. Use 'p' instead of 'args'.
8452
2217da06
YQ
84532014-03-06 Yao Qi <yao@codesourcery.com>
8454
8455 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
8456 message.
8457
cc3da688
YQ
84582014-03-06 Yao Qi <yao@codesourcery.com>
8459
8460 PR breakpoints/16508
8461 * tracepoint.c (check_trace_running): New function.
8462 (trace_find_command): Move code to check_trace_running and
8463 call check_trace_running.
8464 (trace_find_pc_command): Likewise.
8465 (trace_find_tracepoint_command): Likewise.
8466 (trace_find_line_command): Likewise.
8467 (trace_find_range_command): Likewise.
8468 * tracepoint.h (check_trace_running): Likewise.
8469 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
8470
6a5f844b
YQ
84712014-03-06 Yao Qi <yao@codesourcery.com>
8472
8473 * target.h (struct target_ops) <to_traceframe_info>: Use
8474 TARGET_DEFAULT_NORETURN (tcomplain ()).
8475 * target-delegates.c: Regenerated.
8476
0f26cec1
PA
84772014-03-05 Pedro Alves <palves@redhat.com>
8478
8479 PR gdb/16575
8480 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
8481 void. Update comment.
8482 (dcache_xfer_memory): Delete.
8483 (dcache_read_memory_partial): New, based on the read bits of
8484 dcache_xfer_memory.
8485 (dcache_update): Add status parameter. Use ULONGEST for len, and
8486 adjust. Discard cache lines if the reason for the update was
8487 error.
8488 * dcache.h (dcache_xfer_memory): Delete declaration.
8489 (dcache_read_memory_partial): New declaration.
8490 (dcache_update): Update prototype.
8491 * target.c (raw_memory_xfer_partial): Update the dcache here.
8492 (memory_xfer_partial_1): Don't handle dcache writes here.
8493
b2b255bd
MF
84942014-03-05 Mike Frysinger <vapier@gentoo.org>
8495
8496 * remote-sim.c (gdbsim_load): Add const to prog.
8497
5d9cf8a4
TT
84982014-03-03 Tom Tromey <tromey@redhat.com>
8499
8500 * elfread.c (probe_key): Change to bfd_data.
8501 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
8502 now per-BFD, not per-objfile.
8503 * stap-probe.c (stap_probe_destroy): Update comment.
8504 (handle_stap_probe): Allocate on the per-BFD obstack.
8505
729662a5
TT
85062014-03-03 Tom Tromey <tromey@redhat.com>
8507
8508 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
8509 * breakpoint.c (create_longjmp_master_breakpoint): Use
8510 get_probe_address.
8511 (add_location_to_breakpoint, bkpt_probe_insert_location)
8512 (bkpt_probe_remove_location): Update.
8513 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
8514 * elfread.c (elf_symfile_relocate_probe): Remove.
8515 (elf_probe_fns): Update.
8516 (insert_exception_resume_breakpoint): Change type of "probe"
8517 parameter to bound_probe.
8518 (check_exception_resume): Update.
8519 * objfiles.c (objfile_relocate1): Don't relocate probes.
8520 * probe.c (bound_probe_s): New typedef.
8521 (parse_probes): Use get_probe_address. Set sal's objfile.
8522 (find_probe_by_pc): Return a bound_probe.
8523 (collect_probes): Return a VEC(bound_probe_s).
8524 (compare_probes): Update.
8525 (gen_ui_out_table_header_info): Change type of "probes"
8526 parameter. Update.
8527 (info_probes_for_ops): Update.
8528 (get_probe_address): New function.
8529 (probe_safe_evaluate_at_pc): Update.
8530 * probe.h (struct probe_ops) <get_probe_address>: New field.
8531 <set_semaphore, clear_semaphore>: Add objfile parameter.
8532 (struct probe) <objfile>: Remove field.
8533 <arch>: New field.
8534 <address>: Update comment.
8535 (struct bound_probe): New.
8536 (find_probe_by_pc): Return a bound_probe.
8537 (get_probe_address): Declare.
8538 * solib-svr4.c (struct probe_and_action) <address>: New field.
8539 (hash_probe_and_action, equal_probe_and_action): Update.
8540 (register_solib_event_probe): Add address parameter.
8541 (solib_event_probe_at): Update.
8542 (svr4_create_probe_breakpoints): Add objfile parameter. Use
8543 get_probe_address.
8544 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
8545 (stap_get_probe_address): New function.
8546 (stap_can_evaluate_probe_arguments, compute_probe_arg)
8547 (compile_probe_arg): Update.
8548 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
8549 address.
8550 (handle_stap_probe): Don't relocate the probe.
8551 (stap_relocate): Remove.
8552 (stap_gen_info_probes_table_values): Update.
8553 (stap_probe_ops): Remove stap_relocate.
8554 * symfile-debug.c (debug_sym_relocate_probe): Remove.
8555 (debug_sym_probe_fns): Update.
8556 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
8557 * symtab.c (init_sal): Use memset.
8558 * symtab.h (struct symtab_and_line) <objfile>: New field.
8559 * tracepoint.c (start_tracing, stop_tracing): Update.
8560
ff887920
TT
85612014-03-03 Tom Tromey <tromey@redhat.com>
8562
8563 * probe.h (parse_probes, find_probe_by_pc)
8564 (find_probes_in_objfile): Fix comments.
8565
f0407826
DE
85662014-03-02 Doug Evans <xdje42@gmail.com>
8567
8568 * infrun.c (handle_signal_stop): Replace test for
8569 TARGET_WAITKIND_STOPPED with an assert.
8570
35e6a711
DE
85712014-03-02 Doug Evans <xdje42@gmail.com>
8572
8573 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
8574
667f9d0b
DE
85752014-03-02 Doug Evans <xdje42@gmail.com>
8576
8577 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
8578
dc92ace0
MK
85792014-03-01 Mark Kettenis <kettenis@gnu.org>
8580
8581 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
8582
a900370f
MK
85832014-03-01 Mark Kettenis <kettenis@gnu.org>
8584
8585 * i386obsd-nat.c: Include "obsd-nat.h".
8586 (_initialize_i386obsd_nat): Call obsd_add_target instead of
8587 add_target.
8588 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8589
b72a7981
MK
85902014-03-01 Mark Kettenis <kettenis@gnu.org>
8591
8592 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
8593
96c70aba
MK
85942014-03-01 Mark Kettenis <kettenis@gnu.org>
8595
8596 * mips64obsd-nat.c: Include "obsd-nath".
8597 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
8598 add_target
8599 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8600
874a80af
MK
86012014-03-01 Mark Kettenis <kettenis@gnu.org>
8602
8fd408f1
MK
8603 * amd64obsd-nat.c: Include "obsd-nat,h.
8604 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
8605 add_target.
874a80af
MK
8606 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8607
9cf95373
SC
86082014-02-28 Siva Chandra Reddy <sivachandra@google.com>
8609
8610 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
8611 (find_overload_match): Update call to find_oload_champ.
8612 (find_oload_champ_namespace_loop): Likewise
8613
863e4da4
MK
86142014-02-28 Mark Kettenis <kettenis@gnu.org>
8615
025cac40
MK
8616 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
8617
1ed586ce
MK
8618 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
8619 * config/sparc/obsd64.mh: New file.
8620 * sparc64obsd-nat.c: New file.
8621
863e4da4
MK
8622 * obsd-nat.h: New file.
8623 * obsd-nat.c: New file.
8624 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
8625 (ALLDEPFILES): Add obsd-nat.c.
8626
89de4da4
TT
86272014-02-28 Tom Tromey <tromey@redhat.com>
8628
8629 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
8630 * cli-out.h (cli_ui_out_impl): Now const.
8631 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
8632 * ui-out.c (struct ui_out) <impl>: Now const.
8633 (default_ui_out_impl): Now const.
8634 (ui_out_new): Make 'impl' parameter const.
8635 * ui-out.h (ui_out_new): Update.
8636
c725e7b6
MK
86372014-02-27 Mark Kettenis <kettenis@gnu.org>
8638
8639 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
8640
670b46b3
MK
86412014-02-27 Mark Kettenis <kettenis@gnu.org>
8642
8643 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
8644
c91550fc
JK
86452014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
8646
8647 Additional PR 8882 fix.
8648 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
8649
2fa0369e
PA
86502014-02-27 Pedro Alves <palves@redhat.com>
8651
8652 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
8653 isn't set.
8654
d632a097
PA
86552014-02-27 Pedro Alves <palves@redhat.com>
8656
8657 PR 12702
8658 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
8659 * nat/linux-waitpid.c: Include string.h.
8660 (status_to_str): Moved here and made extern.
8661 * nat/linux-waitpid.h (status_to_str): New declaration.
8662
2ebd5a35
HZ
86632014-02-27 Hui Zhu <hui@codesourcery.com>
8664
8665 PR 12702
8666 * infrun.c (ptid_match): Move ...
8667 * common/ptid.c (ptid_match): ... here.
8668 * inferior.h (ptid_match): Move ...
8669 * common/ptid.h (ptid_match): ... here.
8670
3cdd631f
MK
86712014-02-27 Mark Kettenis <kettenis@gnu.org>
8672
8673 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
8674 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
8675 gdb_target_obs.
8676
bee30a64
MK
86772014-02-27 Mark Kettenis <kettenis@gnu.org>
8678
8679 * obsd-tdep.c (obsd_auxv_parse): New function.
8680 (obsd_init_abi): Set auxv_parse.
27a48a92
MK
8681
8682 * gdbarch.sh (auxv_parse): New.
8683 * gdbarch.h: Regenerated.
8684 * gdbarch.c: Regenerated.
8685 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
8686
7a5a839f
LC
86872014-02-26 Ludovic Courtès <ludo@gnu.org>
8688
8689 * guile/scm-value.c (gdbscm_history_append_x): New function.
8690 (value_functions): Add it.
8691
31aa7e4e
JB
86922014-02-27 Joel Brobecker <brobecker@adacore.com>
8693
8694 * dwarf2read.c (attr_value_as_address): New function.
8695 (dwarf2_find_base_address, read_call_site_scope): Use
8696 attr_value_as_address in place of DW_ADDR.
8697 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
8698 the low and high addresses. Slight rework of the handling
8699 of the high pc being a constant form, and limit it to
8700 DWARF verson 4 or higher.
8701 (dwarf2_record_block_ranges): Likewise.
8702 (read_partial_die): Likewise.
8703 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
8704
9b333ba3
TT
87052014-02-26 Tom Tromey <tromey@redhat.com>
8706
8707 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
8708
5f6cac40
TT
87092014-02-26 Tom Tromey <tromey@redhat.com>
8710
8711 * elfread.c (elf_read_minimal_symbols): Return early if
8712 minimal symbols have already been read. Add "ei" parameter.
8713 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
8714 * minsyms.c (prim_record_minimal_symbol_full): Update.
8715 * objfiles.h (struct objstats) <n_minsyms>: Move...
8716 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
8717 * symmisc.c (print_objfile_statistics): Update.
8718
2750ef27
TT
87192014-02-26 Tom Tromey <tromey@redhat.com>
8720
8721 * elfread.c (elf_read_minimal_symbols): New function, from
8722 elf_symfile_read.
8723 (elf_symfile_read): Call it.
8724
34643a32
TT
87252014-02-26 Tom Tromey <tromey@redhat.com>
8726
8727 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
8728 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
8729 (lookup_minimal_symbol_solib_trampoline)
8730 (lookup_minimal_symbol_by_pc_section_1)
8731 (lookup_minimal_symbol_and_objfile): Update.
8732 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
8733 Don't allocate a minimal symbol if minsyms have already been read.
8734 (build_minimal_symbol_hash_tables): Update.
8735 (install_minimal_symbols): Do nothing if minsyms already read.
8736 Use the per-BFD obstack.
8737 (terminate_minimal_symbol_table): Use the per-BFD obstack.
8738 * objfiles.c (allocate_objfile): Call
8739 terminate_minimal_symbol_table later.
8740 (have_minimal_symbols): Update.
8741 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
8742 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
8743 Move from struct objfile.
8744 <minsyms_read>: New field.
8745 (struct objfile) <msymbols, minimal_symbol_count,
8746 msymbol_hash, msymbol_demangled_hash>: Move.
8747 (ALL_OBJFILE_MSYMBOLS): Update.
8748 * symfile.c (read_symbols): Set minsyms_read.
8749 (reread_symbols): Update.
8750 * symmisc.c (dump_objfile, dump_msymbols): Update.
8751
2273f0ac
TT
87522014-02-26 Tom Tromey <tromey@redhat.com>
8753
8754 * minsyms.c (msymbols_sort): Remove.
8755 * minsyms.h (msymbols_sort): Remove.
8756 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
8757 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
8758 * elfread.c (elf_symtab_read): Don't add section offsets.
8759 * xcoffread.c (record_minimal_symbol): Don't add section offset
8760 to minimal symbol address.
8761 * somread.c (text_offset, data_offset): Remove.
8762 (som_symtab_read): Don't add section offsets to minimal symbol
8763 addresses.
8764 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
8765 Don't add section offsets to minimal symbols.
8766 * coffread.c (coff_symtab_read): Don't add section offsets
8767 to minimal symbol addresses.
8768 * machoread.c (macho_symtab_add_minsym): Don't add section offset
8769 to minimal symbol addresses.
8770 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
8771 section offset to minimal symbol addresses.
8772 * mdebugread.c (parse_partial_symbols): Don't add section
8773 offset to minimal symbol addresses.
8774 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
8775 offset to minimal symbol addresses.
8776
77e371c0
TT
87772014-02-26 Tom Tromey <tromey@redhat.com>
8778
8779 * ada-lang.c (ada_main_name): Update.
8780 (ada_add_standard_exceptions): Update.
8781 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
8782 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8783 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
8784 * auxv.c (ld_so_xfer_auxv): Update.
8785 * avr-tdep.c (avr_scan_prologue): Update.
8786 * ax-gdb.c (gen_var_ref): Update.
8787 * blockframe.c (get_pc_function_start)
8788 (find_pc_partial_function_gnu_ifunc): Update.
8789 * breakpoint.c (create_overlay_event_breakpoint)
8790 (create_longjmp_master_breakpoint)
8791 (create_std_terminate_master_breakpoint)
8792 (create_exception_master_breakpoint): Update.
8793 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8794 * c-valprint.c (c_val_print): Update.
8795 * coff-pe-read.c (add_pe_forwarded_sym): Update.
8796 * common/agent.c (agent_look_up_symbols): Update.
8797 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
8798 * dwarf2loc.c (call_site_to_target_addr): Update.
8799 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
8800 * elfread.c (elf_gnu_ifunc_record_cache)
8801 (elf_gnu_ifunc_resolve_by_got): Update.
8802 * findvar.c (default_read_var_value): Update.
8803 * frame.c (inside_main_func): Update.
8804 * frv-tdep.c (frv_frame_this_id): Update.
8805 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8806 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
8807 Update.
8808 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
8809 (hppa_hpux_find_dummy_bpaddr): Update.
8810 * hppa-tdep.c (hppa_symbol_address): Update.
8811 * infcmd.c (until_next_command): Update.
8812 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
8813 Update.
8814 * linespec.c (minsym_found, add_minsym): Update.
8815 * linux-nat.c (get_signo): Update.
8816 * linux-thread-db.c (inferior_has_bug): Update.
8817 * m32c-tdep.c (m32c_return_value)
8818 (m32c_m16c_address_to_pointer): Update.
8819 * m32r-tdep.c (m32r_frame_this_id): Update.
8820 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8821 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8822 * maint.c (maintenance_translate_address): Update.
8823 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
8824 (frob_address): New function.
8825 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
8826 frob_address. Rename parameter to "pc_in".
8827 (compare_minimal_symbols, compact_minimal_symbols): Use raw
8828 addresses.
8829 (find_solib_trampoline_target, minimal_symbol_upper_bound):
8830 Update.
8831 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8832 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
8833 * objc-lang.c (find_objc_msgsend): Update.
8834 * objfiles.c (objfile_relocate1): Update.
8835 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8836 * p-valprint.c (pascal_val_print): Update.
8837 * parse.c (write_exp_msymbol): Update.
8838 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
8839 (ppc_elfv2_skip_entrypoint): Update.
8840 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8841 * printcmd.c (build_address_symbolic, msym_info)
8842 (address_info): Update.
8843 * proc-service.c (ps_pglobal_lookup): Update.
8844 * psymtab.c (find_pc_sect_psymtab_closer)
8845 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
8846 Change msymbol parameter to bound_minimal_symbol.
8847 * ravenscar-thread.c (get_running_thread_id): Update.
8848 * remote.c (remote_check_symbols): Update.
8849 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
8850 address.
8851 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8852 * solib-dsbt.c (lm_base): Update.
8853 * solib-frv.c (lm_base, main_got): Update.
8854 * solib-irix.c (locate_base): Update.
8855 * solib-som.c (som_solib_create_inferior_hook)
8856 (link_map_start): Update.
8857 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
8858 * solib-svr4.c (elf_locate_base, enable_break): Update.
8859 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
8860 (flush_ea_cache): Update.
8861 * stabsread.c (define_symbol, scan_file_globals): Update.
8862 * stack.c (find_frame_funname): Update.
8863 * symfile-debug.c (debug_qf_expand_symtabs_matching)
8864 (debug_qf_find_pc_sect_symtab): Update.
8865 * symfile.c (simple_read_overlay_table)
8866 (simple_overlay_update): Update.
8867 * symfile.h (struct quick_symbol_functions)
8868 <find_pc_sect_symtab>: Change type of msymbol to
8869 bound_minimal_symbol.
8870 * symmisc.c (dump_msymbols): Update.
8871 * symtab.c (find_pc_sect_symtab_via_partial)
8872 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
8873 (search_symbols, print_msymbol_info): Update.
8874 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
8875 (MSYMBOL_VALUE_ADDRESS): Redefine.
8876 (BMSYMBOL_VALUE_ADDRESS): New macro.
8877 * tracepoint.c (scope_info): Update.
8878 * tui/tui-disasm.c (tui_find_disassembly_address)
8879 (tui_get_begin_asm_address): Update.
8880 * valops.c (find_function_in_inferior): Update.
8881 * value.c (value_static_field, value_fn_field): Update.
8882
3b7344d5
TT
88832014-02-26 Tom Tromey <tromey@redhat.com>
8884
8885 * ada-lang.c (ada_update_initial_language): Update.
8886 (ada_main_name, ada_has_this_exception_support): Update.
8887 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
8888 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8889 * arm-tdep.c (arm_skip_stub): Update.
8890 * auxv.c (ld_so_xfer_auxv): Update.
8891 * avr-tdep.c (avr_scan_prologue): Update.
8892 * ax-gdb.c (gen_var_ref): Update.
8893 * breakpoint.c (struct breakpoint_objfile_data)
8894 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
8895 type to bound_minimal_symbol.
8896 (create_overlay_event_breakpoint)
8897 (create_longjmp_master_breakpoint)
8898 (create_std_terminate_master_breakpoint)
8899 (create_exception_master_breakpoint): Update.
8900 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8901 * c-exp.y (classify_name): Update.
8902 * coffread.c (coff_symfile_read): Update.
8903 * common/agent.c (agent_look_up_symbols): Update.
8904 * d-lang.c (d_main_name): Update.
8905 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
8906 * dec-thread.c (enable_dec_thread): Update.
8907 * dwarf2loc.c (call_site_to_target_addr): Update.
8908 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
8909 * eval.c (evaluate_subexp_standard): Update.
8910 * findvar.c (struct minsym_lookup_data) <result>: Change type
8911 to bound_minimal_symbol.
8912 <objfile>: Remove.
8913 (minsym_lookup_iterator_cb, default_read_var_value): Update.
8914 * frame.c (inside_main_func): Update.
8915 * frv-tdep.c (frv_frame_this_id): Update.
8916 * gcore.c (call_target_sbrk): Update.
8917 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8918 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
8919 Update.
8920 * go-lang.c (go_main_name): Update.
8921 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
8922 (hppa_hpux_find_import_stub_for_addr): Update.
8923 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
8924 Update. Change return type.
8925 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
8926 type.
8927 * jit.c (jit_breakpoint_re_set_internal): Update.
8928 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
8929 Update.
8930 * linux-nat.c (get_signo): Update.
8931 * linux-thread-db.c (inferior_has_bug): Update
8932 * m32c-tdep.c (m32c_return_value)
8933 (m32c_m16c_address_to_pointer): Update.
8934 * m32r-tdep.c (m32r_frame_this_id): Update.
8935 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8936 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8937 * minsyms.c (lookup_minimal_symbol_internal): Rename to
8938 lookup_minimal_symbol. Change return type.
8939 (lookup_minimal_symbol): Remove.
8940 (lookup_bound_minimal_symbol): Update.
8941 (lookup_minimal_symbol_text): Change return type.
8942 (lookup_minimal_symbol_solib_trampoline): Change return type.
8943 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
8944 (lookup_minimal_symbol_solib_trampoline): Change return type.
8945 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8946 * objc-lang.c (lookup_objc_class, lookup_child_selector)
8947 (value_nsstring, find_imps): Update.
8948 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8949 * p-lang.c (pascal_main_name): Update.
8950 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
8951 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8952 * proc-service.c (ps_pglobal_lookup): Update.
8953 * ravenscar-thread.c (get_running_thread_msymbol): Change
8954 return type.
8955 (has_ravenscar_runtime, get_running_thread_id): Update.
8956 * remote.c (remote_check_symbols): Update.
8957 * sol-thread.c (ps_pglobal_lookup): Update.
8958 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8959 * solib-dsbt.c (lm_base): Update.
8960 * solib-frv.c (lm_base, frv_relocate_section_addresses):
8961 Update.
8962 * solib-irix.c (locate_base): Update.
8963 * solib-som.c (som_solib_create_inferior_hook)
8964 (som_solib_desire_dynamic_linker_symbols, link_map_start):
8965 Update.
8966 * solib-spu.c (spu_enable_break): Update.
8967 * solib-svr4.c (elf_locate_base, enable_break): Update.
8968 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
8969 (flush_ea_cache): Update.
8970 * stabsread.c (define_symbol): Update.
8971 * symfile.c (simple_read_overlay_table): Update.
8972 * symtab.c (find_pc_sect_line): Update.
8973 * tracepoint.c (scope_info): Update.
8974 * tui-disasm.c (tui_get_begin_asm_address): Update.
8975 * value.c (value_static_field): Update.
8976
40c1a007
TT
89772014-02-26 Tom Tromey <tromey@redhat.com>
8978
8979 * minsyms.c (prim_record_minimal_symbol_full): Use
8980 SET_MSYMBOL_VALUE_ADDRESS.
8981 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
8982 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
8983 SET_MSYMBOL_VALUE_ADDRESS.
8984 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
8985 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
8986
efd66ac6
TT
89872014-02-26 Tom Tromey <tromey@redhat.com>
8988
8989 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
8990 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
8991 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
8992 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
8993 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
8994 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
8995 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
8996 * ada-lang.c (ada_main_name): Update.
8997 (ada_lookup_simple_minsym): Update.
8998 (ada_make_symbol_completion_list): Update.
8999 (ada_add_standard_exceptions): Update.
9000 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
9001 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9002 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
9003 * arm-tdep.c (skip_prologue_function): Update.
9004 (arm_skip_stack_protector, arm_skip_stub): Update.
9005 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
9006 (arm_wince_skip_main_prologue): Update.
9007 * auxv.c (ld_so_xfer_auxv): Update.
9008 * avr-tdep.c (avr_scan_prologue): Update.
9009 * ax-gdb.c (gen_var_ref): Update.
9010 * block.c (call_site_for_pc): Update.
9011 * blockframe.c (get_pc_function_start): Update.
9012 (find_pc_partial_function_gnu_ifunc): Update.
9013 * breakpoint.c (create_overlay_event_breakpoint): Update.
9014 (create_longjmp_master_breakpoint): Update.
9015 (create_std_terminate_master_breakpoint): Update.
9016 (create_exception_master_breakpoint): Update.
9017 (resolve_sal_pc): Update.
9018 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9019 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
9020 Update.
9021 * c-valprint.c (c_val_print): Update.
9022 * coff-pe-read.c (add_pe_forwarded_sym): Update.
9023 * coffread.c (coff_symfile_read): Update.
9024 * common/agent.c (agent_look_up_symbols): Update.
9025 * dbxread.c (find_stab_function_addr): Update.
9026 (end_psymtab): Update.
9027 * dwarf2loc.c (call_site_to_target_addr): Update.
9028 (func_verify_no_selftailcall): Update.
9029 (tailcall_dump): Update.
9030 (call_site_find_chain_1): Update.
9031 (dwarf_expr_reg_to_entry_parameter): Update.
9032 * elfread.c (elf_gnu_ifunc_record_cache): Update.
9033 (elf_gnu_ifunc_resolve_by_got): Update.
9034 * f-valprint.c (info_common_command): Update.
9035 * findvar.c (read_var_value): Update.
9036 * frame.c (get_prev_frame_1): Update.
9037 (inside_main_func): Update.
9038 * frv-tdep.c (frv_skip_main_prologue): Update.
9039 (frv_frame_this_id): Update.
9040 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9041 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
9042 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
9043 (gnuv3_skip_trampoline): Update.
9044 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
9045 (hppa64_hpux_in_solib_call_trampoline): Update.
9046 (hppa_hpux_skip_trampoline_code): Update.
9047 (hppa64_hpux_search_dummy_call_sequence): Update.
9048 (hppa_hpux_find_import_stub_for_addr): Update.
9049 (hppa_hpux_find_dummy_bpaddr): Update.
9050 * hppa-tdep.c (hppa_symbol_address)
9051 (hppa_lookup_stub_minimal_symbol): Update.
9052 * i386-tdep.c (i386_skip_main_prologue): Update.
9053 (i386_pe_skip_trampoline_code): Update.
9054 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
9055 * infcall.c (get_function_name): Update.
9056 * infcmd.c (until_next_command): Update.
9057 * jit.c (jit_breakpoint_re_set_internal): Update.
9058 (jit_inferior_init): Update.
9059 * linespec.c (minsym_found): Update.
9060 (add_minsym): Update.
9061 * linux-fork.c (info_checkpoints_command): Update.
9062 * linux-nat.c (get_signo): Update.
9063 * linux-thread-db.c (inferior_has_bug): Update.
9064 * m32c-tdep.c (m32c_return_value): Update.
9065 (m32c_m16c_address_to_pointer): Update.
9066 (m32c_m16c_pointer_to_address): Update.
9067 * m32r-tdep.c (m32r_frame_this_id): Update.
9068 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9069 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9070 * maint.c (maintenance_translate_address): Update.
9071 * minsyms.c (add_minsym_to_hash_table): Update.
9072 (add_minsym_to_demangled_hash_table): Update.
9073 (msymbol_objfile): Update.
9074 (lookup_minimal_symbol): Update.
9075 (iterate_over_minimal_symbols): Update.
9076 (lookup_minimal_symbol_text): Update.
9077 (lookup_minimal_symbol_by_pc_name): Update.
9078 (lookup_minimal_symbol_solib_trampoline): Update.
9079 (lookup_minimal_symbol_by_pc_section_1): Update.
9080 (lookup_minimal_symbol_and_objfile): Update.
9081 (prim_record_minimal_symbol_full): Update.
9082 (compare_minimal_symbols): Update.
9083 (compact_minimal_symbols): Update.
9084 (build_minimal_symbol_hash_tables): Update.
9085 (install_minimal_symbols): Update.
9086 (terminate_minimal_symbol_table): Update.
9087 (find_solib_trampoline_target): Update.
9088 (minimal_symbol_upper_bound): Update.
9089 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9090 * mips-tdep.c (mips_stub_frame_sniffer): Update.
9091 (mips_skip_pic_trampoline_code): Update.
9092 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
9093 * objc-lang.c (selectors_info): Update.
9094 (classes_info): Update.
9095 (find_methods): Update.
9096 (find_imps): Update.
9097 (find_objc_msgsend): Update.
9098 * objfiles.c (objfile_relocate1): Update.
9099 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
9100 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9101 * p-valprint.c (pascal_val_print): Update.
9102 * parse.c (write_exp_msymbol): Update.
9103 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
9104 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
9105 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9106 * printcmd.c (build_address_symbolic): Update.
9107 (sym_info): Update.
9108 (address_info): Update.
9109 * proc-service.c (ps_pglobal_lookup): Update.
9110 * psymtab.c (find_pc_sect_psymtab_closer): Update.
9111 (find_pc_sect_psymtab): Update.
9112 * python/py-framefilter.c (py_print_frame): Update.
9113 * ravenscar-thread.c (get_running_thread_id): Update.
9114 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
9115 Update.
9116 * remote.c (remote_check_symbols): Update.
9117 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
9118 (rs6000_skip_trampoline_code): Update.
9119 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
9120 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9121 * solib-dsbt.c (lm_base): Update.
9122 * solib-frv.c (lm_base): Update.
9123 (main_got): Update.
9124 * solib-irix.c (locate_base): Update.
9125 * solib-som.c (som_solib_create_inferior_hook): Update.
9126 (som_solib_desire_dynamic_linker_symbols): Update.
9127 (link_map_start): Update.
9128 * solib-spu.c (spu_enable_break): Update.
9129 (ocl_enable_break): Update.
9130 * solib-svr4.c (elf_locate_base): Update.
9131 (enable_break): Update.
9132 * spu-tdep.c (spu_get_overlay_table): Update.
9133 (spu_catch_start): Update.
9134 (flush_ea_cache): Update.
9135 * stabsread.c (define_symbol): Update.
9136 (scan_file_globals): Update.
9137 * stack.c (find_frame_funname): Update.
9138 (frame_info): Update.
9139 * symfile.c (simple_read_overlay_table): Update.
9140 (simple_overlay_update): Update.
9141 * symmisc.c (dump_msymbols): Update.
9142 * symtab.c (fixup_section): Update.
9143 (find_pc_sect_line): Update.
9144 (skip_prologue_sal): Update.
9145 (search_symbols): Update.
9146 (print_msymbol_info): Update.
9147 (rbreak_command): Update.
9148 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
9149 (completion_list_objc_symbol): Update.
9150 (default_make_symbol_completion_list_break_on): Update.
9151 * tracepoint.c (scope_info): Update.
9152 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
9153 (tui_get_begin_asm_address): Update.
9154 * valops.c (find_function_in_inferior): Update.
9155 * value.c (value_static_field): Update.
9156 (value_fn_field): Update.
9157
50e65b17
TT
91582014-02-26 Tom Tromey <tromey@redhat.com>
9159
9160 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
9161 bound minimal symbols. Move code that knows about minsym
9162 table layout...
9163 * minsyms.c (minimal_symbol_upper_bound): ... here. New
9164 function.
9165 * minsyms.h (minimal_symbol_upper_bound): Declare.
9166 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
9167 minimal_symbol_upper_bound.
9168
1b588015
JB
91692014-02-27 Joel Brobecker <brobecker@adacore.com>
9170
9171 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
9172 Use the type's name if its basic type does not have a tag.
9173
dbb9c2b1
JB
91742014-02-27 Joel Brobecker <brobecker@adacore.com>
9175
9176 * dwarf2read.c (read_subrange_type): Add comment.
9177
55426c9d
JB
91782014-02-27 Joel Brobecker <brobecker@adacore.com>
9179
9180 * dwarf2read.c (update_enumeration_type_from_children): New
9181 function, mostly extracted from process_structure_scope.
9182 (read_enumeration_type): Call update_enumeration_type_from_children.
9183 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
9184 and flag_flag_enum fields.
9185
f2fce0ca
PA
91862014-02-26 Pedro Alves <palves@redhat.com>
9187
9188 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
9189 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
9190 to_xfer_partial method.
9191
7a44e40e
PA
91922014-02-26 Pedro Alves <palves@redhat.com>
9193
9194 * target.c (complete_target_initialization): Don't install
9195 default_xfer_partial as to_xfer_partial hook.
9196 (nomemory): Delete.
9197 (update_current_target): Don't INHERIT nor de_fault
9198 deprecated_xfer_memory. Delete de_fault macro.
9199 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
9200 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
9201 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
9202 field.
9203
bd265cd0
PA
92042014-02-26 Pedro Alves <palves@redhat.com>
9205
9206 * go32-nat.c (my_write_child): New function.
9207 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
9208 (go32_xfer_partial): New function.
9209 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
9210 Instead install a to_xfer_partial hook.
9211
9d46c4e5
PA
92122014-02-26 Pedro Alves <palves@redhat.com>
9213
9214 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
9215 to_xfer_partial helper. Rewrite.
9216 (procfs_xfer_partial): New function.
9217 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
9218 Install a to_xfer_partial hook.
9219
a1583b1f
PA
92202014-02-26 Pedro Alves <palves@redhat.com>
9221
9222 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
9223 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
9224 (m32r_xfer_partial): New function.
9225 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
9226 Install a to_xfer_partial hook.
9227
6df1b29f
PA
92282014-02-26 Pedro Alves <palves@redhat.com>
9229
9230 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
9231 helper.
9232 (mips_xfer_partial): New function.
9233 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
9234 hook. Install a to_xfer_partial hook.
9235
dc53a7ad
JB
92362014-02-26 Joel Brobecker <brobecker@adacore.com>
9237
9238 * gdbtypes.h (create_array_type_with_stride): Add declaration.
9239 * gdbtypes.c (create_array_type_with_stride): New function,
9240 renaming create_array_type, but with an added parameter
9241 called "bit_stride".
9242 (create_array_type): Re-implement using
9243 create_array_type_with_stride.
9244 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
9245 and DW_AT_bit_stride attributes.
9246
12ab52e9
PA
92472014-02-26 Pedro Alves <palves@redhat.com>
9248
9249 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
9250 task-specific breakpoints.
9251
d16461ae
PA
92522014-02-25 Pedro Alves <palves@redhat.com>
9253
9254 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
9255 handling of object == TARGET_OBJECT_UNWIND_TABLE.
9256
a8b16220
SS
92572014-02-25 Stan Shebs <stan@codesourcery.com>
9258
9259 * defs.h: Annotate comments for Doxygen.
9260
b9e795ee
TT
92612014-02-25 Tom Tromey <tromey@redhat.com>
9262
9263 * target.h (target_ignore): Don't declare.
9264 * target.c (target_ignore): Remove.
9265
849c862e
JK
92662014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
9267
9268 PR gdb/16626
9269 * auto-load.c (auto_load_objfile_script_1): Change filename to
9270 debugfile.
9271
475109d8
JB
92722014-02-25 Joel Brobecker <brobecker@adacore.com>
9273
9274 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
9275 documentation. Adjust prototype to match the target_ops
9276 to_xfer_partial method. Adjust implementation accordingly.
9277
e186c3bd
HZ
92782014-02-25 Hui Zhu <hui@codesourcery.com>
9279
9280 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
9281 to_traceframe_info.
9282
6d451942
KB
92832014-02-25 Kevin Buettner <kevinb@redhat.com>
9284
041ab8b4 9285 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
6d451942
KB
9286 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
9287 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
9288 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
9289 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
9290 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
9291 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
9292 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
9293 New constants.
9294 (rl78_register_type): Use a data pointer type for SP and
9295 new pseudo registers mentioned above. Use a 16 bit integer
9296 type for all other register pairs.
9297 (rl78_register_name, rl78_g10_register_name): Update for
9298 new pseudo registers.
9299 (rl78_pseudo_register_read): Likewise.
9300 (rl78_pseudo_register_write): Likewise.
9301 (rl78_dwarf_reg_to_regnum): Return register numbers representing
9302 to the newly added pseudo registers.
9303
eddf0bae
DE
93042014-02-24 Doug Evans <dje@google.com>
9305
9306 * value.c (record_latest_value): Fix comment.
9307 * printcmd.c (print_command_1): Remove code to handle -1 return from
9308 record_latest_value.
9309
e96027e0
PA
93102014-02-24 Pedro Alves <palves@redhat.com>
9311
9312 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
9313 deprecated_xfer_memory hook.
9314 (procfs_xfer_partial): Call procfs_xfer_memory instead
9315 of the deprecated_xfer_memory target hook.
9316 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
9317 helper.
9318
0837c976
YZ
93192014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
9320
9321 * windows-nat.c (windows_xfer_shared_libraries): Return
9322 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
9323 requested object is TARGET_OBJECT_LIBRARIES.
9324
bc113b4e
YQ
93252014-02-24 Yao Qi <yao@codesourcery.com>
9326
9327 * target.h (enum target_xfer_status)
9328 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
9329 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
9330 explicitly. New.
9331 * corefile.c (memory_error_message): User updated.
9332 * exec.c (section_table_read_available_memory): Likewise.
9333 * record-btrace.c (record_btrace_xfer_partial): Likewise.
9334 * target.c (target_xfer_status_to_string): Likewise.
9335 (raw_memory_xfer_partial): Likewise.
9336 (memory_xfer_partial_1, target_xfer_partial): Likewise.
9337 * valops.c (read_value_memory): Likewise.
9338 * exec.h: Update comments.
9339
01cb8804
YQ
93402014-02-24 Yao Qi <yao@codesourcery.com>
9341
9342 * target.c (target_xfer_status_to_string): Rename argument err
9343 to status.
9344 * target.h (target_xfer_status_to_string): Update declaration.
9345 Replace target_xfer_error_to_string with
9346 target_xfer_status_to_string in comment.
9347
93063aa6
YQ
93482014-02-24 Yao Qi <yao@codesourcery.com>
9349
9350 * mips-linux-nat.c (super_close): Update its type.
9351 (mips_linux_close): Pass 'self' to super_close.
9352
5c328c05
YQ
93532014-02-24 Yao Qi <yao@codesourcery.com>
9354
9355 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
9356 * corefile.c (read_memory): Adjusted.
9357 * target.c (target_write_with_progress): Adjusted.
9358
f73023dd
YQ
93592014-02-23 Yao Qi <yao@codesourcery.com>
9360
9361 Revert two patches:
9362
9363 2013-10-25 Yao Qi <yao@codesourcery.com>
9364
9365 * remote.c (remote_traceframe_info): Return early if
9366 traceframe is not selected.
9367
9368 2013-07-19 Yao Qi <yao@codesourcery.com>
9369
9370 * target.c (update_current_target): Change the default action
9371 of 'to_traceframe_info' from tcomplain to return_zero.
9372 * target.h (struct target_ops) <to_traceframe_info>: Add more
9373 comments.
9374
5a2eb0ef
YQ
93752014-02-23 Yao Qi <yao@codesourcery.com>
9376
9377 * valops.c (read_value_memory): Rewrite it. Call
9378 target_xfer_partial in a loop.
9379 * exec.h (section_table_available_memory): Remove declaration.
9380 Move comments to ...
9381 * exec.c (section_table_available_memory): ... here. Make it
9382 static.
9383
1ee79381
YQ
93842014-02-23 Yao Qi <yao@codesourcery.com>
9385
9386 * exec.c (section_table_read_available_memory): New function.
9387 * exec.h (section_table_read_available_memory): Declare.
9388 * ctf.c (ctf_xfer_partial): Call
9389 section_table_read_available_memory.
9390 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9391
1ca49d37
YQ
93922014-02-23 Yao Qi <yao@codesourcery.com>
9393
9394 * ctf.c (ctf_xfer_partial): Move code to ...
9395 * exec.c (exec_read_partial_read_only): ... it. New function.
9396 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9397 * tracefile.c: Include "exec.h".
9398 * exec.h (exec_read_partial_read_only): Declare.
9399
a283690e
YQ
94002014-02-23 Yao Qi <yao@codesourcery.com>
9401
9402 * tracefile-tfile.c (tfile_has_all_memory): Remove.
9403 (tfile_has_memory): Remove.
9404 (init_tfile_ops): Don't set fields to_has_all_memory and
9405 to_has_memory of tfile_ops.
9406 * tracefile.c (tracefile_has_all_memory): New function.
9407 (tracefile_has_memory): New function.
9408 (init_tracefile_ops): Initialize fields to_has_all_memory and
9409 to_has_memory of 'ops'.
9410
12e03cd0
YQ
94112014-02-23 Yao Qi <yao@codesourcery.com>
9412
9413 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
9414 (ctf_thread_alive, ctf_get_trace_status): Remove.
9415 (init_ctf_ops): Don't set some fields of ctf_ops. Call
9416 init_tracefile_ops.
9417 * tracefile-tfile.c (tfile_get_trace_status): Remove.
9418 (tfile_has_stack, tfile_has_registers): Remove.
9419 (tfile_thread_alive): Remove.
9420 (init_tfile_ops): Don't set some fields of tfile_ops. Call
9421 init_tracefile_ops.
9422 * tracefile.c (tracefile_has_stack): New function.
9423 (tracefile_has_registers): New function.
9424 (tracefile_thread_alive): New function.
9425 (tracefile_get_trace_status): New function.
9426 (init_tracefile_ops): New function.
9427 * tracefile.h (init_tracefile_ops): Declare.
9428
11395323
YQ
94292014-02-23 Yao Qi <yao@codesourcery.com>
9430
9431 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
9432 (O_LARGEFILE): Likewise.
9433 (tfile_ops): Likewise.
9434 (TRACE_HEADER_SIZE): Likewise.
9435 (trace_fd, trace_frames_offset, cur_offset): Likewise.
9436 (cur_data_size): Likewise.
9437 (tfile_read, tfile_open, tfile_interp_line): Likewise.
9438 (tfile_close, tfile_files_info): Likewise.
9439 (tfile_get_trace_status): Likewise.
9440 (tfile_get_tracepoint_status): Likewise.
9441 (tfile_get_traceframe_address): Likewise.
9442 (tfile_trace_find, match_blocktype): Likewise.
9443 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
9444 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
9445 (tfile_get_trace_state_variable_value): Likewise.
9446 (tfile_has_all_memory, tfile_has_memory): Likewise.
9447 (tfile_has_stack, tfile_has_registers): Likewise.
9448 (tfile_thread_alive, build_traceframe_info): Likewise.
9449 (tfile_traceframe_info, init_tfile_ops): Likewise.
9450 (_initialize_tracepoint): Don't call init_tfile_ops
9451 and add_target_with_completer.
9452 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
9453 exec.h, completer.h and filenames.h.
9454 (_initialize_tracefile_tfile): New function.
9455
7951c4eb
YQ
94562014-02-23 Yao Qi <yao@codesourcery.com>
9457
9458 * Makefile.in (REMOTE_OBS): Append tracefile.o and
9459 tracefile-tfile.o.
9460 (HFILES_NO_SRCDIR): Add tracefile.h.
9461 * ctf.c: Include "tracefile.h".
9462 * tracefile.h: New file.
9463 * tracefile.c: New file
9464 * tracefile-tfile.c: New file.
9465 * tracepoint.c: Include "tracefile.h".
9466 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
9467 (stop_reason_names): Add const.
9468 (trace_file_writer_xfree): Move it to tracefile.c.
9469 (trace_save, trace_save_command, trace_save_tfile): Likewise.
9470 (trace_save_ctf): Likewise.
9471 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
9472 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
9473 (tfile_write_header, tfile_write_regblock_type): Likewise.
9474 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
9475 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
9476 (tfile_write_raw_data, tfile_end): Likewise.
9477 (tfile_trace_file_writer_new): Likewise.
9478 (free_uploaded_tp): Make it extern.
9479 (free_uploaded_tsv): Make it extern.
9480 (_initialize_tracepoint): Move code to register command 'tsave'
9481 to tracefile.c.
9482 * tracepoint.h (stop_reason_names): Declare.
9483 (struct trace_frame_write_ops): Move it to tracefile.h.
9484 (struct trace_file_write_ops): Likewise.
9485 (struct trace_file_writer): Likewise.
9486 (free_uploaded_tsvs, free_uploaded_tps): Declare.
9487
184cd072
JK
94882014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9489
9490 PR gdb/16594
9491 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
9492 process name.
9493 (get_cores_used_by_process): New parameter num_cores, use it.
9494 (linux_xfer_osdata_processes): Pass num_cores to it.
9495 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
9496 process name.
9497
c63528fc
AK
94982014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
9499
9500 * target.c (memory_xfer_partial): Fix length arg in call to
9501 breakpoint_xfer_memory.
9502
d7b30f67
SDJ
95032014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9504
9505 PR tdep/16397
9506 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
9507 number comes after the + or - signs. Adjust length of register
9508 name to be extracted.
9509
8838afaf
TT
95102014-02-20 Tom Tromey <tromey@redhat.com>
9511
9512 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
9513 (ada_varobj_ops): Mark "extern".
9514
05227d14
TT
95152014-02-20 Tom Tromey <tromey@redhat.com>
9516
9517 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
9518
1254eefc
DE
95192014-02-20 Doug Evans <xdje42@gmail.com>
9520
9521 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
9522 All callers updated.
9523 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
9524 All callers updated.
9525 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
9526 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
9527
adde2bff
DE
95282014-02-20 lin zuojian <manjian2006@gmail.com>
9529 Joel Brobecker <brobecker@adacore.com>
9530 Doug Evans <xdje42@gmail.com>
9531
9532 PR symtab/16581
9533 * dwarf2read.c (struct die_info): New member in_process.
9534 (reset_die_in_process): New function.
9535 (process_die): Set it at the start, reset when returning.
9536 (inherit_abstract_dies): Only call process_die if origin_child_die
9537 not already being processed.
9538
3be75f87
JB
95392014-02-20 Joel Brobecker <brobecker@adacore.com>
9540
9541 * windows-nat.c (handle_unload_dll): Add function documentation.
9542 (do_initial_windows_stuff): Add comment explaining why we wait
9543 until after inferior initialization has finished before
9544 processing all DLLs.
9545
47f7ffdb
JB
95462014-02-20 Joel Brobecker <brobecker@adacore.com>
9547
9548 * windows-nat.c (get_module_name): Delete.
9549 (windows_get_exec_module_filename): New function, mostly
9550 inspired from get_module_name.
9551 (windows_pid_to_exec_file): Replace call to get_module_name
9552 by call to windows_get_exec_module_filename.
9553
1cd9feab
JB
95542014-02-20 Joel Brobecker <brobecker@adacore.com>
9555
9556 * windows-nat.c (handle_load_dll): Rewrite this function's
9557 introductory comment. Remove code using get_module_name
9558 to get the DLL's name.
9559
ea39ad35
JB
95602014-02-20 Joel Brobecker <brobecker@adacore.com>
9561
9562 * windows-nat.c (get_windows_debug_event): Ignore
9563 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
9564 if windows_initialization_done == 0.
9565 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
9566 Adjust implementation to always load all DLLs.
9567 (do_initial_windows_stuff): Replace call to
9568 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
9569
95060284
JB
95702014-02-20 Joel Brobecker <brobecker@adacore.com>
9571
9572 * windows-nat.c (_initialize_windows_nat): Deprecate the
9573 "dll-symbols" command. Turn the "add-shared-symbol-files"
9574 and "assf" aliases into commands, and deprecate them as well.
9575 * NEWS: Add entry explaining that "dll-symbols" and its two
9576 aliases are now deprecated.
9577
8d4fdb12
JB
95782014-02-20 Joel Brobecker <brobecker@adacore.com>
9579
9580 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
9581 new-line in debug string. Remove trailing spaces.
9582
1b281443
SS
95832014-02-19 Stan Shebs <stan@codesourcery.com>
9584
9585 * darwin-nat.c (darwin_xfer_partial): Fix return type.
9586
f7bd0f78
SC
95872014-02-19 Siva Chandra Reddy <sivachandra@google.com>
9588
9589 * NEWS: Add entry for the new feature
9590 * python/py-value.c (valpy_binop): Call value_x_binop for struct
9591 and class values.
9592
399ebc3d
SS
95932014-02-19 Stan Shebs <stan@codesourcery.com>
9594
9595 * MAINTAINERS: List Yao Qi as nios2 maintainer.
9596
c658158d
PA
95972014-02-19 Pedro Alves <palves@redhat.com>
9598
9599 * common/ptid.h (struct ptid): Mention that process_stratum
9600 targets should prefer ptid.lwp.
9601
ba348170
PA
96022014-02-19 Pedro Alves <palves@redhat.com>
9603
9604 * remote.c (remote_thread_alive, write_ptid, read_ptid)
9605 (read_ptid, remote_newthread_step, remote_threads_extra_info)
9606 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
9607 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
9608 store remote thread ids rather than ptid.tid.
9609 (_initialize_remote): Adjust.
9610
ac01945b
TT
96112014-02-19 Tom Tromey <tromey@redhat.com>
9612
9613 * target.c (target_get_unwinder): Rewrite.
9614 (target_get_tailcall_unwinder): Rewrite.
9615 * record-btrace.c (record_btrace_to_get_unwinder): New function.
9616 (record_btrace_to_get_tailcall_unwinder): New function.
9617 (init_record_btrace_ops): Update.
9618 * target.h (struct target_ops) <to_get_unwinder,
9619 to_get_tailcall_unwinder>: Now function pointers. Use
9620 TARGET_DEFAULT_RETURN.
9621
8476dc92
TT
96222014-02-19 Tom Tromey <tromey@redhat.com>
9623
9624 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
9625 argument.
9626 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
9627
c0eca49f
TT
96282014-02-19 Tom Tromey <tromey@redhat.com>
9629
9630 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
9631 directly.
9632 * target-delegates.c: Rebuild.
9633 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
9634 TARGET_DEFAULT_FUNC.
9635 * target.c (default_target_decr_pc_after_break): Rename from
9636 forward_target_decr_pc_after_break. Simplify.
9637 (target_decr_pc_after_break): Rely on delegation.
9638
596b6b39
TT
96392014-02-19 Tom Tromey <tromey@redhat.com>
9640
9641 * target.c (update_current_target): Do not INHERIT to_doc or
9642 to_magic. Do not de_fault to_open or to_close.
9643
b427c1bc
TT
96442014-02-19 Tom Tromey <tromey@redhat.com>
9645
9646 * gcore.h (objfile_find_memory_regions): Declare.
9647 * gcore.c (objfile_find_memory_regions): No longer static. Add
9648 "self" argument.
9649 (_initialize_gcore): Don't call exec_set_find_memory_regions.
9650 * exec.c: Include gcore.h.
9651 (exec_set_find_memory_regions): Remove.
9652 (exec_find_memory_regions): Remove.
9653 (exec_do_find_memory_regions): Remove.
9654 (init_exec_ops): Update.
9655 * defs.h (exec_set_find_memory_regions): Remove.
9656
9b144037
TT
96572014-02-19 Tom Tromey <tromey@redhat.com>
9658
9659 * target-delegates.c: Rebuild.
9660 * target.h (struct target_ops) <to_extra_thread_info,
9661 to_thread_name, to_pid_to_exec_file, to_get_section_table,
9662 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
9663 not 0, in TARGET_DEFAULT_RETURN.
9664
555bbdeb
TT
96652014-02-19 Tom Tromey <tromey@redhat.com>
9666
9667 * target.c (complete_target_initialization): Remove casts. Use
9668 return_zero_has_execution.
9669 (return_zero): Add "ignore" argument.
9670 (return_zero_has_execution): New function.
9671 (init_dummy_target): Remove casts. Use
9672 return_zero_has_execution.
9673
be4ddd36
TT
96742014-02-19 Tom Tromey <tromey@redhat.com>
9675
9676 * target.c (update_current_target): Update comments. Do not
9677 INHERIT to_stratum.
9678
2117c711
TT
96792014-02-19 Tom Tromey <tromey@redhat.com>
9680
9681 * arm-linux-nat.c (arm_linux_read_description): Delegate when
9682 needed.
9683 * corelow.c (core_read_description): Delegate when needed.
9684 * remote.c (remote_read_description): Delegate when needed.
9685 * target-delegates.c: Rebuild.
9686 * target.c (target_read_description): Rewrite.
9687 * target.h (struct target_ops) <to_read_description>: Update
9688 comment. Use TARGET_DEFAULT_RETURN.
9689
e88ef65c
TT
96902014-02-19 Tom Tromey <tromey@redhat.com>
9691
9692 * target-delegates.c: Rebuild.
9693 * target.c (update_current_target): Don't inherit or default
9694 to_can_run.
9695 (find_default_run_target): Check against delegate_can_run.
9696 * target.h (struct target_ops) <to_can_run>: Use
9697 TARGET_DEFAULT_RETURN.
9698
86a0854a
TT
96992014-02-19 Tom Tromey <tromey@redhat.com>
9700
9701 * target-delegates.c: Rebuild.
9702 * target.c (target_disconnect): Unconditionally delegate.
9703 * target.h (struct target_ops) <to_disconnect>: Use
9704 TARGET_DEFAULT_NORETURN.
9705
ee97f592
TT
97062014-02-19 Tom Tromey <tromey@redhat.com>
9707
9708 * record.c (record_stop): Unconditionally delegate.
9709 * target-delegates.c: Rebuild.
9710 * target.c (target_stop_recording): Unconditionally delegate.
9711 * target.h (struct target_ops) <to_stop_recording>: Use
9712 TARGET_DEFAULT_IGNORE.
9713
6dc7fcf4
TT
97142014-02-19 Tom Tromey <tromey@redhat.com>
9715
9716 * target-delegates.c: Rebuild.
9717 * target.c (target_enable_btrace): Unconditionally delegate.
9718 * target.h (struct target_ops) <to_enable_btrace>: Use
9719 TARGET_DEFAULT_NORETURN.
9720
eb5b20d4
TT
97212014-02-19 Tom Tromey <tromey@redhat.com>
9722
9723 * target-delegates.c: Rebuild.
9724 * target.c (target_read_btrace): Unconditionally delegate.
9725 * target.h (struct target_ops) <to_read_btrace>: Use
9726 TARGET_DEFAULT_NORETURN.
9727
9ace480d
TT
97282014-02-19 Tom Tromey <tromey@redhat.com>
9729
9730 * target-delegates.c: Rebuild.
9731 * target.c (target_teardown_btrace): Unconditionally delegate.
9732 * target.h (struct target_ops) <to_teardown_btrace>: Use
9733 TARGET_DEFAULT_NORETURN.
9734
8dc292d3
TT
97352014-02-19 Tom Tromey <tromey@redhat.com>
9736
9737 * target-delegates.c: Rebuild.
9738 * target.c (target_disable_btrace): Unconditionally delegate.
9739 * target.h (struct target_ops) <to_disable_btrace>: Use
9740 TARGET_DEFAULT_NORETURN.
9741
58a5184e
TT
97422014-02-19 Tom Tromey <tromey@redhat.com>
9743
9744 * target-delegates.c: Rebuild.
9745 * target.c (default_search_memory): New function.
9746 (simple_search_memory): Update comment.
9747 (target_search_memory): Unconditionally delegate.
9748 * target.h (struct target_ops) <to_search_memory>: Use
9749 TARGET_DEFAULT_FUNC.
9750
8de71aab
TT
97512014-02-19 Tom Tromey <tromey@redhat.com>
9752
9753 * auxv.c (default_auxv_parse): No longer static.
9754 (target_auxv_parse): Unconditionally delegate.
9755 * auxv.h (default_auxv_parse): Declare.
9756 * target-delegates.c: Rebuild.
9757 * target.c: Include auxv.h.
9758 * target.h (struct target_ops) <to_auxv_parse>: Use
9759 TARGET_DEFAULT_FUNC.
9760
6b2c5a57
TT
97612014-02-19 Tom Tromey <tromey@redhat.com>
9762
9763 * target-delegates.c: Rebuild.
9764 * target.c (target_memory_map): Unconditionally delegate.
9765 * target.h (struct target_ops) <to_memory_map>: Use
9766 TARGET_DEFAULT_RETURN.
9767
cbffc065
TT
97682014-02-19 Tom Tromey <tromey@redhat.com>
9769
9770 * target-delegates.c: Rebuild.
9771 * target.c (target_thread_alive): Unconditionally delegate.
9772 * target.h (struct target_ops) <to_thread_alive>: Use
9773 TARGET_DEFAULT_RETURN.
9774
f09e2107
TT
97752014-02-19 Tom Tromey <tromey@redhat.com>
9776
9777 * target-delegates.c: Rebuild.
9778 * target.c (target_save_record): Unconditionally delegate.
9779 * target.h (struct target_ops) <to_save_record>: Use
9780 TARGET_DEFAULT_NORETURN.
9781
07366925
TT
97822014-02-19 Tom Tromey <tromey@redhat.com>
9783
9784 * target-delegates.c: Rebuild.
9785 * target.c (target_delete_record): Unconditionally delegate.
9786 * target.h (struct target_ops) <to_delete_record>: Use
9787 TARGET_DEFAULT_NORETURN.
9788
dd2e9d25
TT
97892014-02-19 Tom Tromey <tromey@redhat.com>
9790
9791 * target-delegates.c: Rebuild.
9792 * target.c (target_record_is_replaying): Unconditionally
9793 delegate.
9794 * target.h (struct target_ops) <to_record_is_replaying>: Use
9795 TARGET_DEFAULT_RETURN.
9796
671e76cc
TT
97972014-02-19 Tom Tromey <tromey@redhat.com>
9798
9799 * target-delegates.c: Rebuild.
9800 * target.c (target_goto_record_begin): Unconditionally delegate.
9801 * target.h (struct target_ops) <to_goto_record_begin>: Use
9802 TARGET_DEFAULT_NORETURN.
9803
e9179bb3
TT
98042014-02-19 Tom Tromey <tromey@redhat.com>
9805
9806 * target-delegates.c: Rebuild.
9807 * target.c (target_goto_record_end): Unconditionally delegate.
9808 * target.h (struct target_ops) <to_goto_record_end>: Use
9809 TARGET_DEFAULT_NORETURN.
9810
05969c84
TT
98112014-02-19 Tom Tromey <tromey@redhat.com>
9812
9813 * target-delegates.c: Rebuild.
9814 * target.c (target_goto_record): Unconditionally delegate.
9815 * target.h (struct target_ops) <to_goto_record>: Use
9816 TARGET_DEFAULT_NORETURN.
9817
3679abfa
TT
98182014-02-19 Tom Tromey <tromey@redhat.com>
9819
9820 * target-delegates.c: Rebuild.
9821 * target.c (target_insn_history): Unconditionally delegate.
9822 * target.h (struct target_ops) <to_insn_history>: Use
9823 TARGET_DEFAULT_NORETURN.
9824
8444ab58
TT
98252014-02-19 Tom Tromey <tromey@redhat.com>
9826
9827 * target-delegates.c: Rebuild.
9828 * target.c (target_insn_history_from): Unconditionally delegate.
9829 * target.h (struct target_ops) <to_insn_history_from>: Use
9830 TARGET_DEFAULT_NORETURN.
9831
c29302cc
TT
98322014-02-19 Tom Tromey <tromey@redhat.com>
9833
9834 * target-delegates.c: Rebuild.
9835 * target.c (target_insn_history_range): Unconditionally delegate.
9836 * target.h (struct target_ops) <to_insn_history_range>: Use
9837 TARGET_DEFAULT_NORETURN.
9838
170049d4
TT
98392014-02-19 Tom Tromey <tromey@redhat.com>
9840
9841 * target-delegates.c: Rebuild.
9842 * target.c (target_call_history): Unconditionally delegate.
9843 * target.h (struct target_ops) <to_call_history>: Use
9844 TARGET_DEFAULT_NORETURN.
9845
16fc27d6
TT
98462014-02-19 Tom Tromey <tromey@redhat.com>
9847
9848 * target-delegates.c: Rebuild.
9849 * target.c (target_call_history_from): Unconditionally delegate.
9850 * target.h (struct target_ops) <to_call_history_from>: Use
9851 TARGET_DEFAULT_NORETURN.
9852
115d9817
TT
98532014-02-19 Tom Tromey <tromey@redhat.com>
9854
9855 * target-delegates.c: Rebuild.
9856 * target.c (target_call_history_range): Unconditionally delegate.
9857 * target.h (struct target_ops) <to_call_history_range>: Use
9858 TARGET_DEFAULT_NORETURN.
9859
eb276a6b
TT
98602014-02-19 Tom Tromey <tromey@redhat.com>
9861
9862 * target-delegates.c: Rebuild.
9863 * target.c (target_verify_memory): Unconditionally delegate.
9864 * target.h (struct target_ops) <to_verify_memory>: Use
9865 TARGET_DEFAULT_NORETURN.
9866
9e538d0d
TT
98672014-02-19 Tom Tromey <tromey@redhat.com>
9868
9869 * target-delegates.c: Rebuild.
9870 * target.c (target_core_of_thread): Unconditionally delegate.
9871 * target.h (struct target_ops) <to_core_of_thread>: Use
9872 TARGET_DEFAULT_RETURN.
9873
f6fb2925
TT
98742014-02-19 Tom Tromey <tromey@redhat.com>
9875
9876 * target-delegates.c: Rebuild.
9877 * target.c (target_flash_done): Unconditionally delegate.
9878 * target.h (struct target_ops) <to_flash_done>: Use
9879 TARGET_DEFAULT_NORETURN.
9880
e8a6c6ac
TT
98812014-02-19 Tom Tromey <tromey@redhat.com>
9882
9883 * target-delegates.c: Rebuild.
9884 * target.c (target_flash_erase): Unconditionally delegate.
9885 * target.h (struct target_ops) <to_flash_erase>: Use
9886 TARGET_DEFAULT_NORETURN.
9887
7e35c012
TT
98882014-02-19 Tom Tromey <tromey@redhat.com>
9889
9890 * target-delegates.c: Rebuild.
9891 * target.c (target_get_section_table): Unconditionally delegate.
9892 * target.h (struct target_ops) <to_get_section_table>: Use
9893 TARGET_DEFAULT_RETURN.
9894
770234d3
TT
98952014-02-19 Tom Tromey <tromey@redhat.com>
9896
9897 * target-delegates.c: Rebuild.
9898 * target.c (target_pid_to_str): Unconditionally delegate.
9899 (init_dummy_target): Don't initialize to_pid_to_str.
9900 (default_pid_to_str): Rename from dummy_pid_to_str.
9901 * target.h (struct target_ops) <to_pid_to_str>: Use
9902 TARGET_DEFAULT_FUNC.
9903
09b0dc2b
TT
99042014-02-19 Tom Tromey <tromey@redhat.com>
9905
9906 * target-delegates.c: Rebuild.
9907 * target.c (target_find_new_threads): Unconditionally delegate.
9908 * target.h (struct target_ops) <to_find_new_threads>: Use
9909 TARGET_DEFAULT_RETURN.
9910
7d4f8efa
TT
99112014-02-19 Tom Tromey <tromey@redhat.com>
9912
9913 * target-delegates.c: Rebuild.
9914 * target.c (target_program_signals): Unconditionally delegate.
9915 * target.h (struct target_ops) <to_program_signals>: Use
9916 TARGET_DEFAULT_IGNORE.
9917
035cad7f
TT
99182014-02-19 Tom Tromey <tromey@redhat.com>
9919
9920 * target-delegates.c: Rebuild.
9921 * target.c (target_pass_signals): Unconditionally delegate.
9922 * target.h (struct target_ops) <to_pass_signals>: Use
9923 TARGET_DEFAULT_IGNORE.
9924
8d657035
TT
99252014-02-19 Tom Tromey <tromey@redhat.com>
9926
9927 * target-delegates.c: Rebuild.
9928 * target.c (default_mourn_inferior): New function.
9929 (target_mourn_inferior): Unconditionally delegate.
9930 * target.h (struct target_ops) <to_mourn_inferior>: Use
9931 TARGET_DEFAULT_FUNC.
9932
098dba18
TT
99332014-02-19 Tom Tromey <tromey@redhat.com>
9934
9935 * target-delegates.c: Rebuild.
9936 * target.c (default_follow_fork): New function.
9937 (target_follow_fork): Unconditionally delegate.
9938 * target.h (struct target_ops) <to_follow_fork>: Use
9939 TARGET_DEFAULT_FUNC.
9940
423a4807
TT
99412014-02-19 Tom Tromey <tromey@redhat.com>
9942
9943 * target-delegates.c: Rebuild.
9944 * target.c (target_kill): Unconditionally delegate.
9945 * target.h (struct target_ops) <to_kill>: Use
9946 TARGET_DEFAULT_NORETURN.
9947
6c7e5e5c
TT
99482014-02-19 Tom Tromey <tromey@redhat.com>
9949
9950 * target-delegates.c: Rebuild.
9951 * target.c (target_masked_watch_num_registers): Unconditionally
9952 delegate.
9953 * target.h (struct target_ops) <to_masked_watch_num_registers>:
9954 Use TARGET_DEFAULT_RETURN.
9955
8b1c364c
TT
99562014-02-19 Tom Tromey <tromey@redhat.com>
9957
9958 * target-delegates.c: Rebuild.
9959 * target.c (target_remove_mask_watchpoint): Unconditionally
9960 delegate.
9961 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
9962 TARGET_DEFAULT_RETURN.
9963
cd4ae029
TT
99642014-02-19 Tom Tromey <tromey@redhat.com>
9965
9966 * target-delegates.c: Rebuild.
9967 * target.c (target_insert_mask_watchpoint): Unconditionally
9968 delegate.
9969 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
9970 TARGET_DEFAULT_RETURN.
9971
a134316b
TT
99722014-02-19 Tom Tromey <tromey@redhat.com>
9973
9974 * target-delegates.c: Rebuild.
9975 * target.c (target_ranged_break_num_registers): Unconditionally
9976 delegate.
9977 * target.h (struct target_ops) <to_ranged_break_num_registers>:
9978 Use TARGET_DEFAULT_RETURN.
9979
ad5989bd
TT
99802014-02-19 Tom Tromey <tromey@redhat.com>
9981
9982 * target-delegates.c: Rebuild.
9983 * target.c (target_fetch_registers): Unconditionally delegate.
9984 * target.h (struct target_ops) <to_fetch_registers>: Use
9985 TARGET_DEFAULT_NORETURN.
9986
46ee7e8d
TT
99872014-02-19 Tom Tromey <tromey@redhat.com>
9988
9989 * target-delegates.c: Rebuild.
9990 * target.c (update_current_target): Don't inherit or default
9991 to_stop.
9992 * target.h (struct target_ops) <to_stop>: Use
9993 TARGET_DEFAULT_IGNORE.
9994
843f59ed
TT
99952014-02-19 Tom Tromey <tromey@redhat.com>
9996
9997 * target-delegates.c: Rebuild.
9998 * target.c (update_current_target): Don't inherit or default
9999 to_can_run_breakpoint_commands.
10000 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
10001 Use TARGET_DEFAULT_RETURN.
10002
ccfde2a0
TT
100032014-02-19 Tom Tromey <tromey@redhat.com>
10004
10005 * target-delegates.c: Rebuild.
10006 * target.c (update_current_target): Don't inherit or default
10007 to_supports_evaluation_of_breakpoint_conditions.
10008 * target.h (struct target_ops)
10009 <to_supports_evaluation_of_breakpoint_conditions>: Use
10010 TARGET_DEFAULT_RETURN.
10011
0de91722
TT
100122014-02-19 Tom Tromey <tromey@redhat.com>
10013
10014 * target-delegates.c: Rebuild.
10015 * target.c (update_current_target): Don't inherit or default
10016 to_augmented_libraries_svr4_read.
10017 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
10018 Use TARGET_DEFAULT_RETURN.
10019
9a7d8b48
TT
100202014-02-19 Tom Tromey <tromey@redhat.com>
10021
10022 * target-delegates.c: Rebuild.
10023 * target.c (update_current_target): Don't inherit or default
10024 to_can_use_agent.
10025 * target.h (struct target_ops) <to_can_use_agent>: Use
10026 TARGET_DEFAULT_RETURN.
10027
d9db5b21
TT
100282014-02-19 Tom Tromey <tromey@redhat.com>
10029
10030 * target-delegates.c: Rebuild.
10031 * target.c (update_current_target): Don't inherit or default
10032 to_use_agent.
10033 * target.h (struct target_ops) <to_use_agent>: Use
10034 TARGET_DEFAULT_NORETURN.
10035
92155eeb
TT
100362014-02-19 Tom Tromey <tromey@redhat.com>
10037
10038 * target-delegates.c: Rebuild.
10039 * target.c (update_current_target): Don't inherit or default
10040 to_traceframe_info.
10041 (return_null): Remove.
10042 * target.h (struct target_ops) <to_traceframe_info>: Use
10043 TARGET_DEFAULT_RETURN.
10044
d6522a22
TT
100452014-02-19 Tom Tromey <tromey@redhat.com>
10046
10047 * target-delegates.c: Rebuild.
10048 * target.c (update_current_target): Don't inherit or default
10049 to_static_tracepoint_markers_by_strid.
10050 * target.h (struct target_ops)
10051 <to_static_tracepoint_markers_by_strid>: Use
10052 TARGET_DEFAULT_NORETURN.
10053
4c3e4425
TT
100542014-02-19 Tom Tromey <tromey@redhat.com>
10055
10056 * target-delegates.c: Rebuild.
10057 * target.c (update_current_target): Don't inherit or default
10058 to_static_tracepoint_marker_at.
10059 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
10060 Use TARGET_DEFAULT_RETURN.
10061
dcd6917f
TT
100622014-02-19 Tom Tromey <tromey@redhat.com>
10063
10064 * target-delegates.c: Rebuild.
10065 * target.c (update_current_target): Don't inherit or default
10066 to_set_permissions.
10067 * target.h (struct target_ops) <to_set_permissions>: Use
10068 TARGET_DEFAULT_IGNORE.
10069
22bcceee
TT
100702014-02-19 Tom Tromey <tromey@redhat.com>
10071
10072 * target-delegates.c: Rebuild.
10073 * target.c (update_current_target): Don't inherit or default
10074 to_get_tib_address.
10075 * target.h (struct target_ops) <to_get_tib_address>: Use
10076 TARGET_DEFAULT_NORETURN.
10077
8586ccaa
TT
100782014-02-19 Tom Tromey <tromey@redhat.com>
10079
10080 * target-delegates.c: Rebuild.
10081 * target.c (update_current_target): Don't inherit or default
10082 to_set_trace_notes.
10083 * target.h (struct target_ops) <to_set_trace_notes>: Use
10084 TARGET_DEFAULT_RETURN.
10085
91df8d1d
TT
100862014-02-19 Tom Tromey <tromey@redhat.com>
10087
10088 * target-delegates.c: Rebuild.
10089 * target.c (update_current_target): Don't initialize
10090 to_set_trace_buffer_size.
10091 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
10092 TARGET_DEFAULT_IGNORE.
10093
8d526939
TT
100942014-02-19 Tom Tromey <tromey@redhat.com>
10095
10096 * target-delegates.c: Rebuild.
10097 * target.c (update_current_target): Don't inherit or default
10098 to_set_circular_trace_buffer.
10099 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
10100 TARGET_DEFAULT_IGNORE.
10101
0bcfeddf
TT
101022014-02-19 Tom Tromey <tromey@redhat.com>
10103
10104 * target-delegates.c: Rebuild.
10105 * target.c (update_current_target): Don't inherit or default
10106 to_set_disconnected_tracing.
10107 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
10108 TARGET_DEFAULT_IGNORE.
10109
9249843f
TT
101102014-02-19 Tom Tromey <tromey@redhat.com>
10111
10112 * target-delegates.c: Rebuild.
10113 * target.c (update_current_target): Don't inherit or default
10114 to_get_min_fast_tracepoint_insn_len.
10115 (return_minus_one): Remove.
10116 * target.h (struct target_ops)
10117 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
10118
ace92e7d
TT
101192014-02-19 Tom Tromey <tromey@redhat.com>
10120
10121 * target-delegates.c: Rebuild.
10122 * target.c (update_current_target): Don't inherit or default
10123 to_get_raw_trace_data.
10124 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
10125 TARGET_DEFAULT_NORETURN.
10126
08120467
TT
101272014-02-19 Tom Tromey <tromey@redhat.com>
10128
10129 * target-delegates.c: Rebuild.
10130 * target.c (update_current_target): Don't inherit or default
10131 to_upload_trace_state_variables.
10132 * target.h (struct target_ops) <to_upload_trace_state_variables>:
10133 Use TARGET_DEFAULT_RETURN.
10134
1e949b00
TT
101352014-02-19 Tom Tromey <tromey@redhat.com>
10136
10137 * target-delegates.c: Rebuild.
10138 * target.c (update_current_target): Don't inherit or default
10139 to_upload_tracepoints.
10140 * target.h (struct target_ops) <to_upload_tracepoints>: Use
10141 TARGET_DEFAULT_RETURN.
10142
a2e6c147
TT
101432014-02-19 Tom Tromey <tromey@redhat.com>
10144
10145 * target-delegates.c: Rebuild.
10146 * target.c (update_current_target): Don't inherit or default
10147 to_save_trace_data.
10148 * target.h (struct target_ops) <to_save_trace_data>: Use
10149 TARGET_DEFAULT_NORETURN.
10150
959bcd0b
TT
101512014-02-19 Tom Tromey <tromey@redhat.com>
10152
10153 * target-delegates.c: Rebuild.
10154 * target.c (update_current_target): Don't inherit or default
10155 to_get_trace_state_variable_value.
10156 * target.h (struct target_ops)
10157 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
10158
afc94e66
TT
101592014-02-19 Tom Tromey <tromey@redhat.com>
10160
10161 * target-delegates.c: Rebuild.
10162 * target.c (update_current_target): Don't inherit or default
10163 to_trace_find.
10164 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
10165
e51c07ea
TT
101662014-02-19 Tom Tromey <tromey@redhat.com>
10167
10168 * target-delegates.c: Rebuild.
10169 * target.c (update_current_target): Don't inherit or default
10170 to_trace_stop.
10171 * target.h (struct target_ops) <to_trace_stop>: Use
10172 TARGET_DEFAULT_NORETURN.
10173
6fea14cd
TT
101742014-02-19 Tom Tromey <tromey@redhat.com>
10175
10176 * target-delegates.c: Rebuild.
10177 * target.c (update_current_target): Don't inherit or default
10178 to_get_tracepoint_status.
10179 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
10180 TARGET_DEFAULT_NORETURN.
10181
4072d4ff
TT
101822014-02-19 Tom Tromey <tromey@redhat.com>
10183
10184 * target-delegates.c: Rebuild.
10185 * target.c (update_current_target): Don't inherit or default
10186 to_get_trace_status.
10187 * target.h (struct target_ops) <to_get_trace_status>: Use
10188 TARGET_DEFAULT_RETURN.
10189
25da2e80
TT
101902014-02-19 Tom Tromey <tromey@redhat.com>
10191
10192 * target-delegates.c: Rebuild.
10193 * target.c (update_current_target): Don't inherit or default
10194 to_trace_start.
10195 * target.h (struct target_ops) <to_trace_start>: Use
10196 TARGET_DEFAULT_NORETURN.
10197
86dd181d
TT
101982014-02-19 Tom Tromey <tromey@redhat.com>
10199
10200 * target-delegates.c: Rebuild.
10201 * target.c (update_current_target): Don't inherit or default
10202 to_trace_set_readonly_regions.
10203 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
10204 Use TARGET_DEFAULT_NORETURN.
10205
05c41993
TT
102062014-02-19 Tom Tromey <tromey@redhat.com>
10207
10208 * target-delegates.c: Rebuild.
10209 * target.c (update_current_target): Don't inherit or default
10210 to_disable_tracepoint.
10211 * target.h (struct target_ops) <to_disable_tracepoint>: Use
10212 TARGET_DEFAULT_NORETURN.
10213
151f70f1
TT
102142014-02-19 Tom Tromey <tromey@redhat.com>
10215
10216 * target-delegates.c: Rebuild.
10217 * target.c (update_current_target): Don't inherit or default
10218 to_enable_tracepoint.
10219 * target.h (struct target_ops) <to_enable_tracepoint>: Use
10220 TARGET_DEFAULT_NORETURN.
10221
94eb98b9
TT
102222014-02-19 Tom Tromey <tromey@redhat.com>
10223
10224 * target-delegates.c: Rebuild.
10225 * target.c (update_current_target): Don't inherit or default
10226 to_download_trace_state_variable.
10227 * target.h (struct target_ops) <to_download_trace_state_variable>:
10228 Use TARGET_DEFAULT_NORETURN.
10229
719acc4a
TT
102302014-02-19 Tom Tromey <tromey@redhat.com>
10231
10232 * target-delegates.c: Rebuild.
10233 * target.c (update_current_target): Don't inherit or default
10234 to_can_download_tracepoint.
10235 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
10236 TARGET_DEFAULT_RETURN.
10237
9a980a22
TT
102382014-02-19 Tom Tromey <tromey@redhat.com>
10239
10240 * target-delegates.c: Rebuild.
10241 * target.c (update_current_target): Don't inherit or default
10242 to_download_tracepoint.
10243 * target.h (struct target_ops) <to_download_tracepoint>: Use
10244 TARGET_DEFAULT_NORETURN.
10245
5536135b
TT
102462014-02-19 Tom Tromey <tromey@redhat.com>
10247
10248 * target-delegates.c: Rebuild.
10249 * target.c (update_current_target): Don't inherit or default
10250 to_trace_init.
10251 * target.h (struct target_ops) <to_trace_init>: Use
10252 TARGET_DEFAULT_RETURN.
10253
9409d39e
TT
102542014-02-19 Tom Tromey <tromey@redhat.com>
10255
10256 * target-delegates.c: Rebuild.
10257 * target.c (update_current_target): Don't inherit or default
10258 to_supports_string_tracing.
10259 * target.h (struct target_ops) <to_supports_string_tracing>: Use
10260 TARGET_DEFAULT_RETURN.
10261
aab1b22d
TT
102622014-02-19 Tom Tromey <tromey@redhat.com>
10263
10264 * target-delegates.c: Rebuild.
10265 * target.c (update_current_target): Don't inherit or default
10266 to_supports_enable_disable_tracepoint.
10267 * target.h (struct target_ops)
10268 <to_supports_enable_disable_tracepoint>: Use
10269 TARGET_DEFAULT_RETURN.
10270
a7304748
TT
102712014-02-19 Tom Tromey <tromey@redhat.com>
10272
10273 * target-delegates.c: Rebuild.
10274 * target.c (update_current_target): Don't inherit or default
10275 to_supports_multi_process.
10276 * target.h (struct target_ops) <to_supports_multi_process>: Use
10277 TARGET_DEFAULT_RETURN.
10278
4229b31d
TT
102792014-02-19 Tom Tromey <tromey@redhat.com>
10280
10281 * target-delegates.c: Rebuild.
10282 * target.c (update_current_target): Don't inherit or default
10283 to_get_ada_task_ptid.
10284 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
10285 TARGET_DEFAULT_FUNC.
10286
43eba180
TT
102872014-02-19 Tom Tromey <tromey@redhat.com>
10288
10289 * target-delegates.c: Rebuild.
10290 * target.c (update_current_target): Don't inherit or default
10291 to_thread_architecture.
10292 * target.h (struct target_ops) <to_thread_architecture>: Use
10293 TARGET_DEFAULT_FUNC.
10294
fe31bf5b
TT
102952014-02-19 Tom Tromey <tromey@redhat.com>
10296
10297 * target-delegates.c: Rebuild.
10298 * target.c (update_current_target): Don't inherit or default
10299 to_execution_direction.
10300 * target.h (struct target_ops) <to_execution_direction>: Use
10301 TARGET_DEFAULT_FUNC.
10302
53e1cfc7
TT
103032014-02-19 Tom Tromey <tromey@redhat.com>
10304
10305 * target-delegates.c: Rebuild.
10306 * target.c (update_current_target): Don't inherit or default
10307 to_can_execute_reverse.
10308 * target.h (struct target_ops) <to_can_execute_reverse>: Use
10309 TARGET_DEFAULT_RETURN.
10310 (target_can_execute_reverse): Unconditionally delegate.
10311
9bb9d61d
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_goto_bookmark.
10317 (dummy_goto_bookmark): Remove.
10318 (init_dummy_target): Don't inherit or default to_goto_bookmark.
10319 * target.h (struct target_ops) <to_goto_bookmark>: Use
10320 TARGET_DEFAULT_NORETURN.
10321
3dbafbbb
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_get_bookmark.
10327 (dummy_get_bookmark): Remove.
10328 (init_dummy_target): Don't inherit or default to_get_bookmark.
10329 * target.h (struct target_ops) <to_get_bookmark>: Use
10330 TARGET_DEFAULT_NORETURN
10331
16f796b1
TT
103322014-02-19 Tom Tromey <tromey@redhat.com>
10333
10334 * target-delegates.c: Rebuild.
10335 * target.c (update_current_target): Don't inherit or default
10336 to_make_corefile_notes.
10337 (init_dummy_target): Don't initialize to_make_corefile_notes.
10338 * target.h (struct target_ops) <to_make_corefile_notes>: Use
10339 TARGET_DEFAULT_FUNC.
10340
0b5a2719
TT
103412014-02-19 Tom Tromey <tromey@redhat.com>
10342
10343 * target-delegates.c: Rebuild.
10344 * target.c (update_current_target): Don't inherit or default
10345 to_find_memory_regions.
10346 (init_dummy_target): Don't initialize to_find_memory_regions.
10347 * target.h (struct target_ops) <to_find_memory_regions>: Use
10348 TARGET_DEFAULT_FUNC.
10349
d9cb0195
TT
103502014-02-19 Tom Tromey <tromey@redhat.com>
10351
10352 * target-delegates.c: Rebuild.
10353 * target.c (update_current_target): Don't inherit or default
10354 to_log_command.
10355 * target.h (struct target_ops) <to_log_command>: Use
10356 TARGET_DEFAULT_IGNORE.
10357 (target_log_command): Unconditionally delegate.
10358
830ca330
TT
103592014-02-19 Tom Tromey <tromey@redhat.com>
10360
10361 * target-delegates.c: Rebuild.
10362 * target.c (update_current_target): Don't inherit or default
10363 to_pid_to_exec_file.
10364 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
10365 TARGET_DEFAULT_RETURN.
10366
825828fc
TT
103672014-02-19 Tom Tromey <tromey@redhat.com>
10368
10369 * target-delegates.c: Rebuild.
10370 * target.c (update_current_target): Don't inherit or default
10371 to_thread_name.
10372 (target_thread_name): Unconditionally delegate.
10373 * target.h (struct target_ops) <to_thread_name>: Use
10374 TARGET_DEFAULT_RETURN.
10375
4a7e6dda
TT
103762014-02-19 Tom Tromey <tromey@redhat.com>
10377
10378 * target-delegates.c: Rebuild.
10379 * target.c (update_current_target): Don't inherit or default
10380 to_extra_thread_info.
10381 * target.h (struct target_ops) <to_extra_thread_info>: Use
10382 TARGET_DEFAULT_RETURN.
10383
0db88c1d
TT
103842014-02-19 Tom Tromey <tromey@redhat.com>
10385
10386 * target-delegates.c: Rebuild.
10387 * target.c (update_current_target): Don't inherit or default
10388 to_has_exited.
10389 * target.h (struct target_ops) <to_has_exited>: Use
10390 TARGET_DEFAULT_RETURN..
10391
6a9fa051
TT
103922014-02-19 Tom Tromey <tromey@redhat.com>
10393
10394 * target-delegates.c: Rebuild.
10395 * target.c (update_current_target): Don't inherit or default
10396 to_set_syscall_catchpoint.
10397 (return_one): Remove.
10398 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
10399 TARGET_DEFAULT_RETURN.
10400
62f64d7a
TT
104012014-02-19 Tom Tromey <tromey@redhat.com>
10402
10403 * target-delegates.c: Rebuild.
10404 * target.c (update_current_target): Don't inherit or default
10405 to_insert_exec_catchpoint.
10406 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
10407 TARGET_DEFAULT_RETURN.
10408
cda0f38c
TT
104092014-01-08 Tom Tromey <tromey@redhat.com>
10410
10411 * target-delegates.c: Rebuild.
10412 * target.c (update_current_target): Don't inherit or default
10413 to_insert_exec_catchpoint.
10414 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
10415 TARGET_DEFAULT_RETURN.
10416
95c3375e
TT
104172014-02-19 Tom Tromey <tromey@redhat.com>
10418
10419 * target-delegates.c: Rebuild.
10420 * target.c (update_current_target): Don't inherit or default
10421 to_remove_vfork_catchpoint.
10422 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
10423 TARGET_DEFAULT_RETURN.
10424
7e18a8dc
TT
104252014-02-19 Tom Tromey <tromey@redhat.com>
10426
10427 * target-delegates.c: Rebuild.
10428 * target.c (update_current_target): Don't inherit or default
10429 to_insert_vfork_catchpoint.
10430 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
10431 TARGET_DEFAULT_RETURN.
10432
e1a21fb7
TT
104332014-02-19 Tom Tromey <tromey@redhat.com>
10434
10435 * target-delegates.c: Rebuild.
10436 * target.c (update_current_target): Don't inherit or default
10437 to_remove_fork_catchpoint.
10438 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
10439 TARGET_DEFAULT_RETURN.
10440
5958ebeb
TT
104412014-02-19 Tom Tromey <tromey@redhat.com>
10442
10443 * target-delegates.c: Rebuild.
10444 * target.c (update_current_target): Don't inherit or default
10445 to_insert_fork_catchpoint.
10446 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
10447 TARGET_DEFAULT_RETURN.
10448
340ba4bf
TT
104492014-02-19 Tom Tromey <tromey@redhat.com>
10450
10451 * target-delegates.c: Rebuild.
10452 * target.c (update_current_target): Don't inherit or default
10453 to_post_startup_inferior.
10454 * target.h (struct target_ops) <to_post_startup_inferior>: Use
10455 TARGET_DEFAULT_IGNORE.
10456
7634da87
TT
104572014-02-19 Tom Tromey <tromey@redhat.com>
10458
10459 * target-delegates.c: Rebuild.
10460 * target.c (update_current_target): Don't inherit or default
10461 to_load.
10462 * target.h (struct target_ops) <to_load>: Use
10463 TARGET_DEFAULT_NORETURN.
10464
e19e919f
TT
104652014-02-19 Tom Tromey <tromey@redhat.com>
10466
10467 * target-delegates.c: Rebuild.
10468 * target.c (update_current_target): Don't inherit or default
10469 to_terminal_info.
10470 * target.h (struct target_ops) <to_terminal_info>: Use
10471 TARGET_DEFAULT_FUNC.
10472
c6ea8f79
TT
104732014-02-19 Tom Tromey <tromey@redhat.com>
10474
10475 * target-delegates.c: Rebuild.
10476 * target.c (update_current_target): Don't inherit or default
10477 to_terminal_save_ours.
10478 * target.h (struct target_ops) <to_terminal_save_ours>: Use
10479 TARGET_DEFAULT_IGNORE.
10480
e4a733f1
TT
104812014-02-19 Tom Tromey <tromey@redhat.com>
10482
10483 * target-delegates.c: Rebuild.
10484 * target.c (update_current_target): Don't inherit or default
10485 to_terminal_ours.
10486 * target.h (struct target_ops) <to_terminal_ours>: Use
10487 TARGET_DEFAULT_IGNORE.
10488
74fcbef9
TT
104892014-02-19 Tom Tromey <tromey@redhat.com>
10490
10491 * target-delegates.c: Rebuild.
10492 * target.c (update_current_target): Don't inherit or default
10493 to_terminal_ours_for_output.
10494 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
10495 TARGET_DEFAULT_IGNORE.
10496
ddeaacc9
TT
104972014-02-19 Tom Tromey <tromey@redhat.com>
10498
10499 * target-delegates.c: Rebuild.
10500 * target.c (update_current_target): Don't inherit or default
10501 to_terminal_inferior.
10502 * target.h (struct target_ops) <to_terminal_inferior>: Use
10503 TARGET_DEFAULT_IGNORE.
10504
0343661d
TT
105052014-02-19 Tom Tromey <tromey@redhat.com>
10506
10507 * target-delegates.c: Rebuild.
10508 * target.c (update_current_target): Don't inherit or default
10509 to_terminal_init.
10510 * target.h (struct target_ops) <to_terminal_init>: Use
10511 TARGET_DEFAULT_IGNORE.
10512
77cdffe9
TT
105132014-02-19 Tom Tromey <tromey@redhat.com>
10514
10515 * target-delegates.c: Rebuild.
10516 * target.c (update_current_target): Don't inherit or default
10517 to_can_accel_watchpoint_condition.
10518 * target.h (struct target_ops)
10519 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
10520
d03655e4
TT
105212014-02-19 Tom Tromey <tromey@redhat.com>
10522
10523 * target-delegates.c: Rebuild.
10524 * target.c (update_current_target): Don't inherit or default
10525 to_region_ok_for_hw_watchpoint.
10526 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10527 Use TARGET_DEFAULT_FUNC.
10528
65f160a9
TT
105292014-02-19 Tom Tromey <tromey@redhat.com>
10530
10531 * target-delegates.c: Rebuild.
10532 * target.c (update_current_target): Don't inherit or default
10533 to_watchpoint_addr_within_range.
10534 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
10535 Use TARGET_DEFAULT_FUNC.
10536
61dd109f
TT
105372014-02-19 Tom Tromey <tromey@redhat.com>
10538
10539 * target-delegates.c: Rebuild.
10540 * target.c (update_current_target): Don't inherit or default
10541 to_remove_watchpoint.
10542 * target.h (struct target_ops) <to_remove_watchpoint>: Use
10543 TARGET_DEFAULT_NORETURN.
10544
016facd4
TT
105452014-02-19 Tom Tromey <tromey@redhat.com>
10546
10547 * target-delegates.c: Rebuild.
10548 * target.c (update_current_target): Don't inherit or default
10549 to_insert_watchpoint.
10550 * target.h (struct target_ops) <to_insert_watchpoint>: Use
10551 TARGET_DEFAULT_RETURN.
10552
418dabac
TT
105532014-02-19 Tom Tromey <tromey@redhat.com>
10554
10555 * target-delegates.c: Rebuild.
10556 * target.c (update_current_target): Don't inherit or default
10557 to_remove_hw_breakpoint.
10558 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
10559 TARGET_DEFAULT_RETURN.
10560
61b371f9
TT
105612014-02-19 Tom Tromey <tromey@redhat.com>
10562
10563 * target-delegates.c: Rebuild.
10564 * target.c (update_current_target): Don't inherit or default
10565 to_insert_hw_breakpoint.
10566 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
10567 TARGET_DEFAULT_RETURN.
10568
52b51d06
TT
105692014-02-19 Tom Tromey <tromey@redhat.com>
10570
10571 * target-delegates.c: Rebuild.
10572 * target.c (update_current_target): Don't inherit or default
10573 to_can_use_hw_breakpoint.
10574 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
10575 TARGET_DEFAULT_RETURN.
10576
f86e59b2
TT
105772014-02-19 Tom Tromey <tromey@redhat.com>
10578
10579 * target-delegates.c: Rebuild.
10580 * target.c (update_current_target): Don't inherit or default
10581 to_files_info.
10582 * target.h (struct target_ops) <to_files_info>: Use
10583 TARGET_DEFAULT_IGNORE.
10584
6c628163
TT
105852014-02-19 Tom Tromey <tromey@redhat.com>
10586
10587 * target-delegates.c: Rebuild.
10588 * target.c (update_current_target): Don't inherit or default
10589 to_store.
10590 * target.h (struct target_ops) <to_store>: Use
10591 TARGET_DEFAULT_NORETURN.
10592
bebd3233
TT
105932014-02-19 Tom Tromey <tromey@redhat.com>
10594
10595 * target-delegates.c: Rebuild.
10596 * target.c (update_current_target): Don't inherit or default
10597 to_post_attach.
10598 * target.h (struct target_ops) <to_post_attach>: Use
10599 TARGET_DEFAULT_IGNORE.
10600
a53f3625
TT
106012014-02-19 Tom Tromey <tromey@redhat.com>
10602
10603 * target-delegates.c: Rebuild.
10604 * target.c (update_current_target): Don't inherit or default
10605 to_rcmd.
10606 (default_rcmd): New function.
10607 (do_monitor_command): Unconditionally delegate.
10608 * target.h (struct target_ops) <to_rmcd>: Use
10609 TARGET_DEFAULT_FUNC.
10610
e9a29200
TT
106112014-02-19 Tom Tromey <tromey@redhat.com>
10612
10613 * target-delegates.c: Rebuild.
10614 * target.c (init_dummy_target): Don't initialize to_attach.
10615 (target_attach): Unconditionally delegate.
10616 * target.h (struct target_ops) <to_attach>: Use
10617 TARGET_DEFAULT_FUNC.
10618
09da0d0a
TT
106192014-02-19 Tom Tromey <tromey@redhat.com>
10620
10621 * target-delegates.c: Rebuild.
10622 * target.c (target_detach): Unconditionally delegate.
10623 (init_dummy_target): Don't initialize to_detach.
10624 * target.h (struct target_ops) <to_detach>: Use
10625 TARGET_DEFAULT_IGNORE.
10626
5436ff03
TT
106272014-02-19 Tom Tromey <tromey@redhat.com>
10628
10629 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
10630 Add argument.
10631 (target_augmented_libraries_svr4_read): Add argument.
10632 * target.c (update_current_target): Update.
10633 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
10634 argument.
10635
f0d960ea
TT
106362014-02-19 Tom Tromey <tromey@redhat.com>
10637
10638 * target.h (struct target_ops) <to_call_history_range>: Add
10639 argument.
10640 * target.c (target_call_history_range): Add argument.
10641 * record-btrace.c (record_btrace_call_history_range): Add 'self'
10642 argument.
10643 (record_btrace_call_history_from): Update.
10644
ec0aea04
TT
106452014-02-19 Tom Tromey <tromey@redhat.com>
10646
10647 * target.h (struct target_ops) <to_call_history_from>: Add
10648 argument.
10649 * target.c (target_call_history_from): Add argument.
10650 * record-btrace.c (record_btrace_call_history_from): Add 'self'
10651 argument.
10652
5df2fcba
TT
106532014-02-19 Tom Tromey <tromey@redhat.com>
10654
10655 * target.h (struct target_ops) <to_call_history>: Add argument.
10656 * target.c (target_call_history): Add argument.
10657 * record-btrace.c (record_btrace_call_history): Add 'self'
10658 argument.
10659
4e99c6b7
TT
106602014-02-19 Tom Tromey <tromey@redhat.com>
10661
10662 * target.h (struct target_ops) <to_insn_history_range>: Add
10663 argument.
10664 * target.c (target_insn_history_range): Add argument.
10665 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
10666 argument.
10667 (record_btrace_insn_history_from): Update.
10668
9abc3ff3
TT
106692014-02-19 Tom Tromey <tromey@redhat.com>
10670
10671 * target.h (struct target_ops) <to_insn_history_from>: Add
10672 argument.
10673 * target.c (target_insn_history_from): Add argument.
10674 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
10675 argument.
10676
7a6c5609
TT
106772014-02-19 Tom Tromey <tromey@redhat.com>
10678
10679 * target.h (struct target_ops) <to_insn_history>: Add argument.
10680 * target.c (target_insn_history): Add argument.
10681 * record-btrace.c (record_btrace_insn_history): Add 'self'
10682 argument.
10683
606183ac
TT
106842014-02-19 Tom Tromey <tromey@redhat.com>
10685
10686 * target.h (struct target_ops) <to_goto_record>: Add argument.
10687 * target.c (target_goto_record): Add argument.
10688 * record-full.c (record_full_goto): Add 'self' argument.
10689 * record-btrace.c (record_btrace_goto): Add 'self' argument.
10690
307a1b91
TT
106912014-02-19 Tom Tromey <tromey@redhat.com>
10692
10693 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
10694 * target.c (target_goto_record_end): Add argument.
10695 * record-full.c (record_full_goto_end): Add 'self' argument.
10696 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
10697
08475817
TT
106982014-02-19 Tom Tromey <tromey@redhat.com>
10699
10700 * target.h (struct target_ops) <to_goto_record_begin>: Add
10701 argument.
10702 * target.c (target_goto_record_begin): Add argument.
10703 * record-full.c (record_full_goto_begin): Add 'self' argument.
10704 * record-btrace.c (record_btrace_goto_begin): Add 'self'
10705 argument.
10706
1c63c994
TT
107072014-02-19 Tom Tromey <tromey@redhat.com>
10708
10709 * target.h (struct target_ops) <to_record_is_replaying>: Add
10710 argument.
10711 * target.c (target_record_is_replaying): Add argument.
10712 * record-full.c (record_full_is_replaying): Add 'self' argument.
10713 * record-btrace.c (record_btrace_is_replaying): Add 'self'
10714 argument.
10715 (record_btrace_xfer_partial, record_btrace_store_registers)
10716 (record_btrace_prepare_to_store, record_btrace_resume)
10717 (record_btrace_wait, record_btrace_decr_pc_after_break)
10718 (record_btrace_find_new_threads, record_btrace_thread_alive):
10719 Update.
10720
d1b55219
TT
107212014-02-19 Tom Tromey <tromey@redhat.com>
10722
10723 * target.h (struct target_ops) <to_delete_record>: Add argument.
10724 * target.c (target_delete_record): Add argument.
10725 * record-full.c (record_full_delete): Add 'self' argument.
10726
1390f529
TT
107272014-02-19 Tom Tromey <tromey@redhat.com>
10728
10729 * target.h (struct target_ops) <to_save_record>: Add argument.
10730 * target.c (target_save_record): Add argument.
10731 * record-full.c (record_full_save): Add 'self' argument.
10732 (record_full_save): Add 'self' argument.
10733
630d6a4a
TT
107342014-02-19 Tom Tromey <tromey@redhat.com>
10735
10736 * target.h (struct target_ops) <to_info_record>: Add argument.
10737 * target.c (target_info_record): Add argument.
10738 * record.c (info_record_command): Add argument.
10739 * record-full.c (record_full_info): Add 'self' argument.
10740 * record-btrace.c (record_btrace_info): Add 'self' argument.
10741
c6cd7c02
TT
107422014-02-19 Tom Tromey <tromey@redhat.com>
10743
10744 * target.h (struct target_ops) <to_stop_recording>: Add argument.
10745 * target.c (target_stop_recording): Add argument.
10746 * record.c (record_stop): Add argument.
10747 * record-btrace.c (record_btrace_stop_recording): Add 'self'
10748 argument.
10749
39c49f83
TT
107502014-02-19 Tom Tromey <tromey@redhat.com>
10751
10752 * target.h (struct target_ops) <to_read_btrace>: Add argument.
10753 * target.c (struct target_ops) <to_read_btrace>: Add argument.
10754 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
10755 argument.
10756 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
10757 (_initialize_amd64_linux_nat): Use it.
10758 * i386-linux-nat.c (i386_linux_read_btrace): New function.
10759 (_initialize_i386_linux_nat): Use it.
10760
1777056d
TT
107612014-02-19 Tom Tromey <tromey@redhat.com>
10762
10763 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
10764 * target.c (target_teardown_btrace): Add argument.
10765 * remote.c (remote_teardown_btrace): Add 'self' argument.
10766 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
10767 argument.
10768 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
10769 argument.
10770
25e95349
TT
107712014-02-19 Tom Tromey <tromey@redhat.com>
10772
10773 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
10774 * target.c (target_disable_btrace): Add argument.
10775 * remote.c (remote_disable_btrace): Add 'self' argument.
10776 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
10777 argument.
10778 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
10779 argument.
10780
e3c49f88
TT
107812014-02-19 Tom Tromey <tromey@redhat.com>
10782
10783 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
10784 * target.c (target_enable_btrace): Add argument.
10785 * remote.c (remote_enable_btrace): Add 'self' argument.
10786 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
10787 argument.
10788 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
10789 argument.
10790
fe38f897
TT
107912014-02-19 Tom Tromey <tromey@redhat.com>
10792
10793 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
10794 (target_can_use_agent): Add argument.
10795 * target.c (update_current_target): Update.
10796 * remote.c (remote_can_use_agent): Add 'self' argument.
10797 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
10798
2c152180
TT
107992014-02-19 Tom Tromey <tromey@redhat.com>
10800
10801 * target.h (struct target_ops) <to_use_agent>: Add argument.
10802 (target_use_agent): Add argument.
10803 * target.c (update_current_target): Update.
10804 * remote.c (remote_use_agent): Add 'self' argument.
10805 * inf-child.c (inf_child_use_agent): Add 'self' argument.
10806
a893e81f
TT
108072014-02-19 Tom Tromey <tromey@redhat.com>
10808
10809 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
10810 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
10811 (target_traceframe_info): Add argument.
10812 * target.c (update_current_target): Update.
10813 * remote.c (remote_traceframe_info): Add 'self' argument.
10814 * ctf.c (ctf_traceframe_info): Add 'self' argument.
10815
c686c57f
TT
108162014-02-19 Tom Tromey <tromey@redhat.com>
10817
10818 * target.h (target_static_tracepoint_markers_by_strid): Add
10819 argument.
10820 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
10821 'self' argument.
10822 * target.c (update_current_target): Update.
10823 * remote.c (struct target_ops)
10824 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
10825 * linux-nat.c (struct target_ops)
10826 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
10827
61fc905d
TT
108282014-02-19 Tom Tromey <tromey@redhat.com>
10829
10830 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
10831 Add argument.
10832 (target_static_tracepoint_marker_at): Add argument.
10833 * target.c (update_current_target): Update.
10834 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
10835 argument.
10836
c378d69d
TT
108372014-02-19 Tom Tromey <tromey@redhat.com>
10838
10839 * target.h (struct target_ops) <to_set_permissions>: Add argument.
10840 (target_set_permissions): Add argument.
10841 * target.c (update_current_target): Update.
10842 * remote.c (remote_set_permissions): Add 'self' argument.
10843 (remote_start_remote): Update.
10844
bd7ae0f5
TT
108452014-02-19 Tom Tromey <tromey@redhat.com>
10846
10847 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
10848 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
10849 (target_get_tib_address): Add argument.
10850 * target.c (update_current_target): Update.
10851 * remote.c (remote_get_tib_address): Add 'self' argument.
10852
d9e68a2c
TT
108532014-02-19 Tom Tromey <tromey@redhat.com>
10854
10855 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
10856 (target_set_trace_notes): Add argument.
10857 * target.c (update_current_target): Update.
10858 * remote.c (remote_set_trace_notes): Add 'self' argument.
10859
4da384be
TT
108602014-02-19 Tom Tromey <tromey@redhat.com>
10861
10862 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
10863 argument.
10864 (target_set_trace_buffer_size): Add argument.
10865 * target.c (update_current_target): Update.
10866 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
10867
736d5b1f
TT
108682014-02-19 Tom Tromey <tromey@redhat.com>
10869
10870 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
10871 argument.
10872 (target_set_circular_trace_buffer): Add argument.
10873 * target.c (update_current_target): Update.
10874 * remote.c (remote_set_circular_trace_buffer): Add 'self'
10875 argument.
10876
37b25738
TT
108772014-02-19 Tom Tromey <tromey@redhat.com>
10878
10879 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
10880 argument.
10881 (target_set_disconnected_tracing): Add argument.
10882 * target.c (update_current_target): Update.
10883 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
10884
0e67620a
TT
108852014-02-19 Tom Tromey <tromey@redhat.com>
10886
10887 * target.h (struct target_ops)
10888 <to_get_min_fast_tracepoint_insn_len>: Add argument.
10889 (target_get_min_fast_tracepoint_insn_len): Add argument.
10890 * target.c (update_current_target): Update.
10891 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
10892 argument.
10893
88ee6f45
TT
108942014-02-19 Tom Tromey <tromey@redhat.com>
10895
10896 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
10897 argument.
10898 (target_get_raw_trace_data): Add argument.
10899 * target.c (update_current_target): Update.
10900 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
10901
181e3713
TT
109022014-02-19 Tom Tromey <tromey@redhat.com>
10903
10904 * target.h (struct target_ops) <to_upload_trace_state_variables>:
10905 Add argument.
10906 (target_upload_trace_state_variables): Add argument.
10907 * target.c (update_current_target): Update.
10908 * remote.c (remote_upload_trace_state_variables): Add 'self'
10909 argument.
10910 (remote_start_remote): Update.
10911
ab6617cc
TT
109122014-02-19 Tom Tromey <tromey@redhat.com>
10913
10914 * target.h (struct target_ops) <to_upload_tracepoints>: Add
10915 argument.
10916 (target_upload_tracepoints): Add argument.
10917 * target.c (update_current_target): Update.
10918 * remote.c (remote_upload_tracepoints): Add 'self' argument.
10919 (remote_start_remote): Update.
10920
dc3decaf
TT
109212014-02-19 Tom Tromey <tromey@redhat.com>
10922
10923 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
10924 (target_save_trace_data): Add argument.
10925 * target.c (update_current_target): Update.
10926 * remote.c (remote_save_trace_data): Add 'self' argument.
10927
4011015b
TT
109282014-02-19 Tom Tromey <tromey@redhat.com>
10929
10930 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
10931 argument.
10932 * target.h (struct target_ops)
10933 <to_get_trace_state_variable_value>: Add argument.
10934 (target_get_trace_state_variable_value): Add argument.
10935 * target.c (update_current_target): Update.
10936 * remote.c (remote_get_trace_state_variable_value): Add 'self'
10937 argument.
10938 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
10939
bd4c6793
TT
109402014-02-19 Tom Tromey <tromey@redhat.com>
10941
10942 * tracepoint.c (tfile_trace_find): Add 'self' argument.
10943 * target.h (struct target_ops) <to_trace_find>: Add argument.
10944 (target_trace_find): Add argument.
10945 * target.c (update_current_target): Update.
10946 * remote.c (remote_trace_find): Add 'self' argument.
10947 * ctf.c (ctf_trace_find): Add 'self' argument.
10948
74499f1b
TT
109492014-02-19 Tom Tromey <tromey@redhat.com>
10950
10951 * target.h (struct target_ops) <to_trace_stop>: Add argument.
10952 (target_trace_stop): Add argument.
10953 * target.c (update_current_target): Update.
10954 * remote.c (remote_trace_stop): Add 'self' argument.
10955
db90e85c
TT
109562014-02-19 Tom Tromey <tromey@redhat.com>
10957
10958 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
10959 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
10960 argument.
10961 (target_get_tracepoint_status): Add argument.
10962 * target.c (update_current_target): Update.
10963 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
10964
8bd200f1
TT
109652014-02-19 Tom Tromey <tromey@redhat.com>
10966
10967 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
10968 * target.h (struct target_ops) <to_get_trace_status>: Add
10969 argument.
10970 (target_get_trace_status): Add argument.
10971 * target.c (update_current_target): Update.
10972 * remote.c (remote_get_trace_status): Add 'self' argument.
10973 (remote_start_remote, remote_can_download_tracepoint): Update.
10974 * ctf.c (ctf_get_trace_status): Add 'self' argument.
10975
e2d1aae3
TT
109762014-02-19 Tom Tromey <tromey@redhat.com>
10977
10978 * target.h (struct target_ops) <to_trace_start>: Add argument.
10979 (target_trace_start): Add argument.
10980 * target.c (update_current_target): Update.
10981 * remote.c (remote_trace_start): Add 'self' argument.
10982
583f9a86
TT
109832014-02-19 Tom Tromey <tromey@redhat.com>
10984
10985 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
10986 Add argument.
10987 (target_trace_set_readonly_regions): Add argument.
10988 * target.c (update_current_target): Update.
10989 * remote.c (remote_trace_set_readonly_regions): Add 'self'
10990 argument.
10991
780b049c
TT
109922014-02-19 Tom Tromey <tromey@redhat.com>
10993
10994 * target.h (struct target_ops) <to_disable_tracepoint>: Add
10995 argument.
10996 (target_disable_tracepoint): Add argument.
10997 * target.c (update_current_target): Update.
10998 * remote.c (remote_disable_tracepoint): Add 'self' argument.
10999
46670d57
TT
110002014-02-19 Tom Tromey <tromey@redhat.com>
11001
11002 * target.h (struct target_ops) <to_enable_tracepoint>: Add
11003 argument.
11004 (target_enable_tracepoint): Add argument.
11005 * target.c (update_current_target): Update.
11006 * remote.c (remote_enable_tracepoint): Add 'self' argument.
11007
559d2b81
TT
110082014-02-19 Tom Tromey <tromey@redhat.com>
11009
11010 * target.h (struct target_ops) <to_download_trace_state_variable>:
11011 Add argument.
11012 (target_download_trace_state_variable): Add argument.
11013 * target.c (update_current_target): Update.
11014 * remote.c (remote_download_trace_state_variable): Add 'self'
11015 argument.
11016
a52a8357
TT
110172014-02-19 Tom Tromey <tromey@redhat.com>
11018
11019 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
11020 argument.
11021 (target_can_download_tracepoint): Add argument.
11022 * target.c (update_current_target): Update.
11023 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
11024
548f7808
TT
110252014-02-19 Tom Tromey <tromey@redhat.com>
11026
11027 * target.h (struct target_ops) <to_download_tracepoint>: Add
11028 argument.
11029 (target_download_tracepoint): Add argument.
11030 * target.c (update_current_target): Update.
11031 * remote.c (remote_download_tracepoint): Add 'self' argument.
11032
ecae04e1
TT
110332014-02-19 Tom Tromey <tromey@redhat.com>
11034
11035 * target.h (struct target_ops) <to_trace_init>: Add argument.
11036 (target_trace_init): Add argument.
11037 * target.c (update_current_target): Update.
11038 * remote.c (remote_trace_init): Add 'self' argument.
11039
fab5aa7c
TT
110402014-02-19 Tom Tromey <tromey@redhat.com>
11041
11042 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
11043 * target.c (target_fileio_readlink): Add argument.
11044 * remote.c (remote_hostio_readlink): Add 'self' argument.
11045 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
11046
dbbca37d
TT
110472014-02-19 Tom Tromey <tromey@redhat.com>
11048
11049 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
11050 * target.c (target_fileio_unlink): Add argument.
11051 * remote.c (remote_hostio_unlink): Add 'self' argument.
11052 (remote_file_delete): Update.
11053 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
11054
df39ea25
TT
110552014-02-19 Tom Tromey <tromey@redhat.com>
11056
11057 * target.h (struct target_ops) <to_fileio_close>: Add argument.
11058 * target.c (target_fileio_close): Add argument.
11059 * remote.c (remote_hostio_close): Add 'self' argument.
11060 (remote_hostio_close_cleanup): Update.
11061 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
11062 Update.
11063 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
11064
a3be983c
TT
110652014-02-19 Tom Tromey <tromey@redhat.com>
11066
11067 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
11068 * target.c (target_fileio_pread): Add argument.
11069 * remote.c (remote_hostio_pread): Add 'self' argument.
11070 (remote_bfd_iovec_pread, remote_file_get): Update.
11071 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
11072
0d866f62
TT
110732014-02-19 Tom Tromey <tromey@redhat.com>
11074
11075 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
11076 * target.c (target_fileio_pwrite): Add argument.
11077 * remote.c (remote_hostio_pwrite): Add 'self' argument.
11078 (remote_file_put): Update.
11079 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
11080
cd897586
TT
110812014-02-19 Tom Tromey <tromey@redhat.com>
11082
11083 * target.h (struct target_ops) <to_fileio_open>: Add argument.
11084 * target.c (target_fileio_open): Add argument.
11085 * remote.c (remote_hostio_open): Add 'self' argument.
11086 (remote_bfd_iovec_open): Add 'self' argument.
11087 (remote_file_put): Add 'self' argument.
11088 (remote_file_get): Add 'self' argument.
11089 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
11090
78eff0ec
TT
110912014-02-19 Tom Tromey <tromey@redhat.com>
11092
11093 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
11094 Add argument.
11095 (target_can_run_breakpoint_commands): Add argument.
11096 * target.c (update_current_target): Update.
11097 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
11098 argument.
11099 (remote_insert_breakpoint): Add 'self' argument.
11100 (remote_insert_hw_breakpoint): Add 'self' argument.
11101 (remote_can_run_breakpoint_commands): Add 'self' argument.
11102
efcc2da7
TT
111032014-02-19 Tom Tromey <tromey@redhat.com>
11104
11105 * target.h (struct target_ops)
11106 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
11107 (target_supports_evaluation_of_breakpoint_conditions): Add
11108 argument.
11109 * target.c (update_current_target): Update.
11110 * remote.c (remote_supports_cond_breakpoints): Add 'self'
11111 argument.
11112 (remote_insert_breakpoint): Add 'self' argument.
11113 (remote_insert_hw_breakpoint): Add 'self' argument.
11114 (remote_supports_cond_breakpoints): Add 'self' argument.
11115
6de37a3a
TT
111162014-02-19 Tom Tromey <tromey@redhat.com>
11117
11118 * target.h (struct target_ops) <to_supports_string_tracing>: Add
11119 argument.
11120 (target_supports_string_tracing): Add argument.
11121 * target.c (update_current_target): Update.
11122 * remote.c (remote_supports_string_tracing): Add 'self' argument.
11123
2bfc0540
TT
111242014-02-19 Tom Tromey <tromey@redhat.com>
11125
11126 * target.h (struct target_ops)
11127 <to_supports_disable_randomization>: Add argument.
11128 * target.c (find_default_supports_disable_randomization): Add
11129 argument.
11130 (target_supports_disable_randomization): Add argument.
11131 (find_default_supports_disable_randomization): Add 'self'
11132 argument.
11133 * remote.c (extended_remote_supports_disable_randomization): Add
11134 'self' argument.
11135 (remote_supports_disable_randomization): Add 'self' argument.
11136 (extended_remote_create_inferior): Update.
11137 * linux-nat.c (linux_nat_supports_disable_randomization): Add
11138 'self' argument.
11139
7d178d6a
TT
111402014-02-19 Tom Tromey <tromey@redhat.com>
11141
11142 * target.h (struct target_ops)
11143 <to_supports_enable_disable_tracepoint>: Add argument.
11144 (target_supports_enable_disable_tracepoint): Add argument.
11145 * target.c (update_current_target): Update.
11146 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
11147 argument.
11148
86ce2668
TT
111492014-02-19 Tom Tromey <tromey@redhat.com>
11150
11151 * target.h (struct target_ops) <to_supports_multi_process>: Add
11152 argument.
11153 (target_supports_multi_process): Add argument.
11154 * target.c (update_current_target): Update.
11155 * remote.c (remote_supports_multi_process): Add 'self' argument.
11156 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
11157 argument.
11158 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
11159 argument.
11160
4c612759
TT
111612014-02-19 Tom Tromey <tromey@redhat.com>
11162
11163 * target.h (struct target_ops) <to_execution_direction>: Add
11164 argument.
11165 (target_execution_direction): Add argument.
11166 * target.c (default_execution_direction): Add 'self' argument.
11167 * record-full.c (record_full_execution_direction): Add 'self'
11168 argument.
11169
19db3e69
TT
111702014-02-19 Tom Tromey <tromey@redhat.com>
11171
11172 * target.h (struct target_ops) <to_can_execute_reverse>: Add
11173 argument.
11174 (target_can_execute_reverse): Add argument.
11175 * remote.c (remote_can_execute_reverse): Add 'self' argument.
11176 * record-full.c (record_full_can_execute_reverse): Add 'self'
11177 argument.
11178 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
11179 argument.
11180
1e6b91a4
TT
111812014-02-19 Tom Tromey <tromey@redhat.com>
11182
11183 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
11184 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
11185 argument.
11186 (target_get_ada_task_ptid): Add argument.
11187 * target.c (update_current_target): Update.
11188 (default_get_ada_task_ptid): Add 'self' argument.
11189 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
11190 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
11191 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
11192 argument.
11193 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
11194 argument.
11195 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
11196 argument.
11197 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
11198 argument.
11199 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
11200 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
11201 argument.
11202
3c80fb48
TT
112032014-02-19 Tom Tromey <tromey@redhat.com>
11204
11205 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
11206 (target_goto_bookmark): Add argument.
11207 * target.c (dummy_goto_bookmark): Add 'self' argument.
11208 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
11209
dd0e2830
TT
112102014-02-19 Tom Tromey <tromey@redhat.com>
11211
11212 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
11213 (target_get_bookmark): Add argument.
11214 * target.c (dummy_get_bookmark): Add 'self' argument.
11215 * record-full.c (record_full_get_bookmark): Add 'self' argument.
11216
fc6691b2
TT
112172014-02-19 Tom Tromey <tromey@redhat.com>
11218
11219 * target.h (struct target_ops) <to_make_corefile_notes>: Add
11220 argument.
11221 (target_make_corefile_notes): Add argument.
11222 * target.c (dummy_make_corefile_notes): Add 'self' argument.
11223 * procfs.c (procfs_make_note_section): Add 'self' argument.
11224 (procfs_make_note_section): Add 'self' argument.
11225 (procfs_make_note_section): Add 'self' argument.
11226 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
11227 argument.
11228 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
11229 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
11230 * exec.c (exec_make_note_section): Add 'self' argument.
11231 (exec_make_note_section): Add 'self' argument.
11232
2e73927c
TT
112332014-02-19 Tom Tromey <tromey@redhat.com>
11234
11235 * target.h (struct target_ops) <to_find_memory_regions>: Add
11236 argument.
11237 (target_find_memory_regions): Add argument.
11238 * target.c (dummy_find_memory_regions): Add 'self' argument.
11239 * procfs.c (proc_find_memory_regions): Add 'self' argument.
11240 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
11241 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
11242 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
11243 * exec. (exec_do_find_memory_regions): New global.
11244 (exec_set_find_memory_regions): Rewrite.
11245 (exec_find_memory_regions): New function.
11246 (init_exec_ops): Use exec_find_memory_regions.
11247
2a9a2795
TT
112482014-02-19 Tom Tromey <tromey@redhat.com>
11249
11250 * target.h (struct target_ops) <to_supports_non_stop>: Add
11251 argument.
11252 * target.c (find_default_supports_non_stop): Add argument.
11253 (target_supports_non_stop): Add argument.
11254 (find_default_supports_non_stop): Add 'self' argument.
11255 * remote.c (remote_supports_non_stop): Add 'self' argument.
11256 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
11257
4ab76ea3
TT
112582014-02-19 Tom Tromey <tromey@redhat.com>
11259
11260 * target.h (struct target_ops) <to_log_command>: Add argument.
11261 (target_log_command): Add argument.
11262 * serial.h (serial_log_command): Add 'self' argument.
11263 * serial.c (serial_log_command): Add 'self' argument.
11264
8dd27370
TT
112652014-02-19 Tom Tromey <tromey@redhat.com>
11266
11267 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
11268 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
11269 argument.
11270 (target_pid_to_exec_file): Add argument.
11271 * target.c (debug_to_pid_to_exec_file): Add argument.
11272 (update_current_target): Update.
11273 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
11274 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
11275 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
11276 (linux_handle_extended_wait): Update.
11277 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
11278 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
11279 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
11280 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
11281
1aac633b
TT
112822014-02-19 Tom Tromey <tromey@redhat.com>
11283
11284 * target.h (struct target_ops) <to_rcmd>: Add argument.
11285 (target_rcmd): Add argument.
11286 * target.c (debug_to_rcmd): Add argument.
11287 (update_current_target, do_monitor_command): Update.
11288 * remote.c (remote_rcmd): Add 'self' argument.
11289 * monitor.c (monitor_rcmd): Add 'self' argument.
11290
1eab8a48
TT
112912014-02-19 Tom Tromey <tromey@redhat.com>
11292
11293 * windows-nat.c (windows_stop): Add 'self' argument.
11294 * target.h (struct target_ops) <to_stop>: Add argument.
11295 * target.c (target_stop): Add argument.
11296 (debug_to_stop): Add argument.
11297 (update_current_target): Update.
11298 * remote.c (remote_stop): Add 'self' argument.
11299 * remote-sim.c (gdbsim_stop): Add 'self' argument.
11300 (gdbsim_cntrl_c): Update.
11301 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
11302 * procfs.c (procfs_stop): Add 'self' argument.
11303 * nto-procfs.c (procfs_stop): Add 'self' argument.
11304 * monitor.c (monitor_stop): Add 'self' argument.
11305 (monitor_open): Update.
11306 * linux-nat.c (linux_nat_stop): Add argument.
11307 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
11308 * gnu-nat.c (gnu_stop): Add 'self' argument.
11309 * darwin-nat.c (darwin_stop): Add 'self' argument.
11310
503a628d
TT
113112014-02-19 Tom Tromey <tromey@redhat.com>
11312
11313 * target.h (struct target_ops) <to_thread_name>: Add argument.
11314 * target.c (target_thread_name): Add argument.
11315 (update_current_target): Update.
11316 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
11317
c15906d8
TT
113182014-02-19 Tom Tromey <tromey@redhat.com>
11319
11320 * target.h (struct target_ops) <to_extra_thread_info>: Add
11321 argument.
11322 (target_extra_thread_info): Add argument.
11323 * target.c (update_current_target): Update.
11324 * remote.c (remote_threads_extra_info): Add 'self' argument.
11325 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
11326 argument.
11327 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
11328 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
11329 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
11330 argument.
11331 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
11332 argument.
11333 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
11334 argument.
11335 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
11336 argument.
11337
daf5e9b6
TT
113382014-02-19 Tom Tromey <tromey@redhat.com>
11339
11340 * target.h (struct target_ops) <to_program_signals>: Add argument.
11341 * target.c (target_program_signals): Add argument.
11342 * remote.c (remote_program_signals): Add 'self' argument.
11343
94bedb42
TT
113442014-02-19 Tom Tromey <tromey@redhat.com>
11345
11346 * target.h (struct target_ops) <to_pass_signals>: Add argument.
11347 * target.c (target_pass_signals): Add argument.
11348 * remote.c (remote_pass_signals): Add 'self' argument.
11349 (remote_start_remote): Update.
11350 * procfs.c (procfs_pass_signals): Add 'self' argument.
11351 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
11352 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
11353 (linux_nat_create_inferior, linux_nat_attach): Update.
11354
da82bd6b
TT
113552014-02-19 Tom Tromey <tromey@redhat.com>
11356
11357 * windows-nat.c (windows_can_run): Add 'self' argument.
11358 * target.h (struct target_ops) <to_can_run>: Add argument.
11359 (target_can_run): Add argument.
11360 * target.c (debug_to_can_run): Add argument.
11361 (update_current_target): Update.
11362 * nto-procfs.c (procfs_can_run): Add 'self' argument.
11363 * inf-child.c (inf_child_can_run): Add 'self' argument.
11364 * go32-nat.c (go32_can_run): Add 'self' argument.
11365
d796e1d6
TT
113662014-02-19 Tom Tromey <tromey@redhat.com>
11367
11368 * target.h (struct target_ops) <to_has_exited>: Add argument.
11369 (target_has_exited): Add argument.
11370 * target.c (debug_to_has_exited): Add argument.
11371 (update_current_target): Update.
11372
ff214e67
TT
113732014-02-19 Tom Tromey <tromey@redhat.com>
11374
11375 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
11376 argument.
11377 (target_set_syscall_catchpoint): Add argument.
11378 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
11379 argument.
11380 * target.c (update_current_target): Update.
11381
758e29d2
TT
113822014-02-19 Tom Tromey <tromey@redhat.com>
11383
11384 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
11385 argument.
11386 (target_remove_exec_catchpoint): Add argument.
11387 * target.c (debug_to_remove_exec_catchpoint): Add argument.
11388 (update_current_target): Update.
11389 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
11390 argument.
11391
ba025e51
TT
113922014-02-19 Tom Tromey <tromey@redhat.com>
11393
11394 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
11395 argument.
11396 (target_insert_exec_catchpoint): Add argument.
11397 * target.c (debug_to_insert_exec_catchpoint): Add argument.
11398 (update_current_target): Update.
11399 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
11400 argument.
11401
e98cf0cd
TT
114022014-02-19 Tom Tromey <tromey@redhat.com>
11403
11404 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
11405 argument.
11406 (target_remove_vfork_catchpoint): Add argument.
11407 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
11408 (update_current_target): Update.
11409 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
11410 argument.
11411
3ecc7da0
TT
114122014-02-19 Tom Tromey <tromey@redhat.com>
11413
11414 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
11415 argument.
11416 (target_insert_vfork_catchpoint): Add argument.
11417 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
11418 (update_current_target): Update.
11419 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
11420 argument.
11421
973fc227
TT
114222014-02-19 Tom Tromey <tromey@redhat.com>
11423
11424 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
11425 argument.
11426 (target_remove_fork_catchpoint): Add argument.
11427 * target.c (debug_to_remove_fork_catchpoint): Add argument.
11428 (update_current_target): Update.
11429 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
11430 argument.
11431
a863b201
TT
114322014-02-19 Tom Tromey <tromey@redhat.com>
11433
11434 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
11435 argument.
11436 (target_insert_fork_catchpoint): Add argument.
11437 * target.c (debug_to_insert_fork_catchpoint): Add argument.
11438 (update_current_target): Update.
11439 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
11440 argument.
11441
2e97a79e
TT
114422014-02-19 Tom Tromey <tromey@redhat.com>
11443
11444 * target.h (struct target_ops) <to_post_startup_inferior>: Add
11445 argument.
11446 (target_post_startup_inferior): Add argument.
11447 * target.c (debug_to_post_startup_inferior): Add argument.
11448 (update_current_target): Update.
11449 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
11450 argument.
11451 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
11452 argument.
11453 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
11454 argument.
11455 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
11456 argument.
11457 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
11458 'self' argument.
11459 (super_post_startup_inferior): Likewise.
11460 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
11461 'self' argument.
11462 (super_post_startup_inferior): Likewise.
11463 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
11464 Add 'self' argument.
11465 (super_post_startup_inferior): Likewise.
11466
71a9f134
TT
114672014-02-19 Tom Tromey <tromey@redhat.com>
11468
11469 * target.h (struct target_ops) <to_load>: Add argument.
11470 * target.c (target_load): Add argument.
11471 (debug_to_load): Add argument.
11472 (update_current_target): Update.
11473 * remote.c (remote_load): Add 'self' argument.
11474 * remote-sim.c (gdbsim_load): Add 'self' argument.
11475 * remote-mips.c (mips_load): Add 'self' argument.
11476 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
11477 * monitor.c (monitor_load): Add 'self' argument.
11478 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
11479
0a4f40a2
TT
114802014-02-19 Tom Tromey <tromey@redhat.com>
11481
11482 * target.h (struct target_ops) <to_terminal_info>: Add argument.
11483 (target_terminal_info): Add argument.
11484 * target.c (debug_to_terminal_info): Add argument.
11485 (default_terminal_info): Likewise.
11486 * inflow.c (child_terminal_info): Add 'self' argument.
11487 * inferior.h (child_terminal_info): Add 'self' argument.
11488 * go32-nat.c (go32_terminal_info): Add 'self' argument.
11489
ae3bd431
TT
114902014-02-19 Tom Tromey <tromey@redhat.com>
11491
11492 * target.h (struct target_ops) <to_terminal_save_ours>: Add
11493 argument.
11494 (target_terminal_save_ours): Add argument.
11495 * target.c (debug_to_terminal_save_ours): Add argument.
11496 (update_current_target): Update.
11497 * inflow.c (terminal_save_ours): Add 'self' argument.
11498 * inferior.h (terminal_save_ours): Add 'self' argument.
11499
e3594fd1
TT
115002014-02-19 Tom Tromey <tromey@redhat.com>
11501
11502 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
11503 (target_terminal_ours): Add argument.
11504 * target.c (debug_to_terminal_ours): Add argument.
11505 (update_current_target): Update.
11506 * remote.c (remote_terminal_ours): Add 'self' argument.
11507 (remote_close): Update.
11508 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
11509 * inflow.c (terminal_ours): Add 'self' argument.
11510 * inferior.h (terminal_ours): Add 'self' argument.
11511 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11512
2e1e1a19
TT
115132014-02-19 Pedro Alves <palves@redhat.com>
11514 Tom Tromey <tromey@redhat.com>
11515
11516 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
11517 argument.
11518 (target_terminal_ours_for_output): Add argument.
11519 * target.c (debug_to_terminal_ours_for_output): Add argument.
11520 (update_current_target): Update.
11521 * inflow.c (terminal_ours_for_output): Add 'self' argument.
11522 * inferior.h (terminal_ours_for_output): Add 'self' argument.
11523 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11524
d2f640d4
TT
115252014-02-19 Tom Tromey <tromey@redhat.com>
11526
11527 * target.h (struct target_ops) <to_terminal_inferior>: Add
11528 argument.
11529 * target.c (target_terminal_inferior): Add argument.
11530 (update_current_target): Update.
11531 * remote.c (remote_terminal_inferior): Add 'self' argument.
11532 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
11533 * inflow.c (terminal_inferior): Add 'self' argument.
11534 * inferior.h (terminal_inferior): Add 'self' argument.
11535 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
11536 (go32_terminal_inferior): Add 'self' argument.
11537
c42bf286
TT
115382014-02-19 Tom Tromey <tromey@redhat.com>
11539
11540 * target.h (struct target_ops) <to_terminal_init>: Add argument.
11541 (target_terminal_init): Add argument.
11542 * target.c (debug_to_terminal_init): Add argument.
11543 (update_current_target): Update.
11544 * inflow.c (terminal_init_inferior): Add 'self' argument.
11545 * inferior.h (terminal_init_inferior): Add 'self' argument.
11546 * go32-nat.c (go32_terminal_init): Add 'self' argument.
11547 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
11548
c3a5ff89
TT
115492014-02-19 Tom Tromey <tromey@redhat.com>
11550
11551 * target.h (struct target_ops)
11552 <to_can_accel_watchpoint_condition>: Add argument.
11553 (target_can_accel_watchpoint_condition): Add argument.
11554 * target.c (debug_to_can_accel_watchpoint_condition): Add
11555 argument.
11556 (update_current_target): Update.
11557 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
11558 'self' argument.
11559
31568a15
TT
115602014-02-19 Tom Tromey <tromey@redhat.com>
11561
11562 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11563 Add argument.
11564 (target_region_ok_for_hw_watchpoint): Add argument.
11565 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
11566 (default_region_ok_for_hw_watchpoint): Add argument.
11567 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
11568 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
11569 argument.
11570 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
11571 argument.
11572 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
11573 argument.
11574 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
11575 'self' argument.
11576 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
11577 'self' argument.
11578 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
11579 'self' argument.
11580 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
11581 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
11582 'self' argument.
11583 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
11584 Add 'self' argument.
11585
7bb99c53
TT
115862014-02-19 Tom Tromey <tromey@redhat.com>
11587
11588 * target.h (struct target_ops) <to_insert_watchpoint>: Add
11589 argument.
11590 (target_insert_watchpoint): Add argument.
11591 * target.c (debug_to_insert_watchpoint): Add argument.
11592 (update_current_target): Update.
11593 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
11594 * remote.c (remote_insert_watchpoint): Add 'self' argument.
11595 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
11596 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
11597 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
11598 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
11599 argument.
11600 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
11601 (procfs_insert_hw_watchpoint): Add 'self' argument.
11602 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
11603 argument.
11604 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
11605 argument.
11606 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
11607 argument.
11608 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
11609 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
11610 argument.
11611 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
11612 'self' argument.
11613
11b5219a
TT
116142014-02-19 Tom Tromey <tromey@redhat.com>
11615
11616 * target.h (struct target_ops) <to_remove_watchpoint>: Add
11617 argument.
11618 (target_remove_watchpoint): Add argument.
11619 * target.c (debug_to_remove_watchpoint): Add argument.
11620 (update_current_target): Update.
11621 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
11622 * remote.c (remote_remove_watchpoint): Add 'self' argument.
11623 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
11624 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
11625 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
11626 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
11627 argument.
11628 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
11629 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
11630 argument.
11631 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
11632 argument.
11633 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
11634 argument.
11635 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
11636 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
11637 argument.
11638 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
11639 'self' argument.
11640
a64dc96c
TT
116412014-02-19 Tom Tromey <tromey@redhat.com>
11642
11643 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
11644 argument.
11645 (target_remove_hw_breakpoint): Add argument.
11646 * target.c (debug_to_remove_hw_breakpoint): Add argument.
11647 (update_current_target): Update.
11648 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
11649 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
11650 argument.
11651 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
11652 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
11653 argument.
11654 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
11655 'self' argument.
11656
23a26771
TT
116572014-02-19 Tom Tromey <tromey@redhat.com>
11658
11659 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
11660 argument.
11661 (target_insert_hw_breakpoint): Add argument.
11662 * target.c (debug_to_insert_hw_breakpoint): Add argument.
11663 (update_current_target): Update.
11664 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
11665 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
11666 argument.
11667 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
11668 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
11669 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
11670 argument.
11671 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
11672 'self' argument.
11673
5461485a
TT
116742014-02-19 Tom Tromey <tromey@redhat.com>
11675
11676 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
11677 argument.
11678 (target_can_use_hardware_watchpoint): Add argument.
11679 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
11680 (update_current_target): Update.
11681 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
11682 argument.
11683 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
11684 argument.
11685 * remote.c (remote_check_watch_resources): Add 'self' argument.
11686 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
11687 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
11688 argument.
11689 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
11690 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
11691 argument.
11692 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
11693 argument.
11694 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
11695 argument.
11696 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
11697 argument.
11698 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
11699 argument.
11700 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
11701 argument.
11702 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
11703 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
11704 argument.
11705 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
11706 'self' argument.
11707
f045800c
TT
117082014-02-19 Tom Tromey <tromey@redhat.com>
11709
11710 * target.h (struct target_ops) <to_post_attach>: Add argument.
11711 (target_post_attach): Add argument.
11712 * target.c (debug_to_post_attach): Add argument.
11713 (update_current_target): Update.
11714 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
11715 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
11716 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
11717 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
11718 * inf-child.c (inf_child_post_attach): Add 'self' argument.
11719
de90e03d
TT
117202014-02-19 Tom Tromey <tromey@redhat.com>
11721
11722 * windows-nat.c (windows_close): Add 'self' argument.
11723 * tracepoint.c (tfile_close): Add 'self' argument.
11724 * target.h (struct target_ops) <to_close>: Add argument.
11725 * target.c (target_close): Add argument.
11726 (update_current_target): Update.
11727 * remote.c (remote_close): Add 'self' argument.
11728 * remote-sim.c (gdbsim_close): Add 'self' argument.
11729 * remote-mips.c (mips_close): Add 'self' argument.
11730 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
11731 * record-full.c (record_full_close): Add 'self' argument.
11732 * record-btrace.c (record_btrace_close): Add 'self' argument.
11733 * monitor.h (monitor_close): Add 'self' argument.
11734 * monitor.c (monitor_close): Add 'self' argument.
11735 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
11736 * linux-nat.c (linux_nat_close): Add argument.
11737 * go32-nat.c (go32_close): Add 'self' argument.
11738 * exec.c (exec_close_1): Add 'self' argument.
11739 * ctf.c (ctf_close): Add 'self' argument.
11740 * corelow.c (core_close): Add 'self' argument.
11741 (core_close_cleanup): Update.
11742 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
11743 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
11744
9dd130a0
TT
117452014-02-19 Tom Tromey <tromey@redhat.com>
11746
11747 * remote.c (remote_load): New function.
11748 (init_remote_ops): Use it.
11749
46917d26
TT
117502014-02-19 Tom Tromey <tromey@redhat.com>
11751
11752 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
11753 argument.
11754 * common/linux-btrace.h (linux_supports_btrace): Update.
11755 * remote.c (remote_supports_btrace): Add "self" argument.
11756 * target-delegates.c: Rebuild.
11757 * target.c (target_supports_btrace): Remove.
11758 * target.h (struct target_ops) <to_supports_btrace>: Add
11759 target_ops argument.
11760 (target_supports_btrace): New define.
11761
6b84065d
TT
117622014-02-19 Tom Tromey <tromey@redhat.com>
11763
11764 * record-full.c (record_full_beneath_to_resume_ops)
11765 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
11766 (record_full_beneath_to_wait)
11767 (record_full_beneath_to_store_registers_ops)
11768 (record_full_beneath_to_store_registers)
11769 (record_full_beneath_to_xfer_partial_ops)
11770 (record_full_beneath_to_xfer_partial)
11771 (record_full_beneath_to_insert_breakpoint_ops)
11772 (record_full_beneath_to_insert_breakpoint)
11773 (record_full_beneath_to_remove_breakpoint_ops)
11774 (record_full_beneath_to_remove_breakpoint)
11775 (record_full_beneath_to_stopped_by_watchpoint)
11776 (record_full_beneath_to_stopped_data_address)
11777 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
11778 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
11779 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
11780 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
11781 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
11782 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
11783 (tmp_to_stopped_data_address, tmp_to_async): Remove.
11784 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
11785 (record_full_resume, record_full_wait_1)
11786 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
11787 (record_full_store_registers, record_full_xfer_partial)
11788 (record_full_insert_breakpoint, record_full_remove_breakpoint)
11789 (record_full_async, record_full_core_xfer_partial): Use target
11790 delegation.
11791 * target-delegates.c: Rebuild.
11792 * target.c (current_xfer_partial): Remove.
11793 (update_current_target): Do not INHERIT or de_fault
11794 to_insert_breakpoint, to_remove_breakpoint,
11795 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
11796 to_is_async_p, to_async. Do not set to_xfer_partial field.
11797 (default_xfer_partial): Simplify.
11798 (current_xfer_partial): Remove.
11799 (target_wait, target_resume): Simplify.
11800 (find_default_can_async_p, find_default_is_async_p): Update.
11801 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
11802 to_xfer_partial, to_stopped_by_watchpoint,
11803 to_stopped_data_address.
11804 (target_store_registers): Simplify.
11805 (forward_target_remove_breakpoint)
11806 (forward_target_insert_breakpoint): Remove.
11807 (target_remove_breakpoint, target_insert_breakpoint)
11808 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
11809 * target.h (struct target_ops) <to_resume, to_wait,
11810 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
11811 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
11812 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
11813 markup.
11814 (forward_target_remove_breakpoint)
11815 (forward_target_insert_breakpoint): Remove.
11816 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
11817 directly.
11818 (record_btrace_insert_breakpoint): Delegate directly.
11819
1101cb7b
TT
118202014-02-19 Tom Tromey <tromey@redhat.com>
11821
11822 PR build/7701:
11823 * target-delegates.c: New file.
11824 * target.c: Include target-delegates.c.
11825 (init_dummy_target): Call install_dummy_methods.
11826 (complete_target_initialization): Call install_delegators.
11827 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
11828 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
11829 * make-target-delegates: New file.
11830
8b06beed
TT
118312014-02-19 Tom Tromey <tromey@redhat.com>
11832
11833 * record.c (find_record_target): Use find_target_at.
11834 * target.c (find_target_at): New function.
11835 * target.h (find_target_at): Declare.
11836
6a109b6b
TT
118372014-02-19 Tom Tromey <tromey@redhat.com>
11838
11839 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
11840 Add 'ops' argument.
11841 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
11842 'ops' argument.
11843 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
11844 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
11845 'ops' argument.
11846 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
11847 argument.
11848 * linux-nat.c (save_sigtrap): Update.
11849 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
11850 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
11851 (linux_nat_close): Update.
11852 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
11853 argument.
11854 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
11855 argument.
11856 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
11857 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
11858 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
11859 (tmp_to_async): Add 'ops' argument.
11860 (record_full_stopped_by_watchpoint, record_full_async)
11861 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
11862 argument.
11863 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
11864 (m32r_stopped_by_watchpoint): Add 'ops' argument.
11865 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
11866 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
11867 (remote_is_async_p, remote_async): Add 'ops' argument.
11868 (remote_stopped_data_address): Update.
11869 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
11870 * target.c (update_current_target)
11871 (find_default_can_async_p, find_default_is_async_p): Update.
11872 (init_dummy_target): Update.
11873 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
11874 * target.h (struct target_ops) <to_stopped_by_watchpoint,
11875 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
11876 (target_can_async_p, target_is_async_p, target_async)
11877 (target_stopped_by_watchpoint): Update.
11878
e095146b
YQ
118792014-02-19 Yao Qi <yao@codesourcery.com>
11880
11881 PR gdb/16220
11882 * gdbarch.sh: Remove startup_gdbarch.
11883 * gdbarch.c: Regenerated.
11884 * gdbarch.h: Likewise.
11885
bc3c6b36
KB
118862014-02-17 Kevin Buettner <kevinb@redhat.com>
11887
11888 * rl78-tdep.c (rl78_g10_register_name): New function.
11889 (rl78_return_value): Add g10 support.
11890 (rl78_gdbarch_init): Register rl78_g10_register_name for the
11891 g10.
11892
98dc0167 118932014-02-17 Doug Evans <xdje42@gmail.com>
f01c1940
DE
11894
11895 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
11896 (SUBDIR_GUILE_SRCS): Ditto.
11897 (scm-gsmob.o): Ditto.
11898
842c05cd
YQ
118992014-02-17 Yao Qi <yao@codesourcery.com>
11900
11901 * gnu-nat.c (ILL_RPC): Declare defined function.
11902
25c0bd04
YQ
119032014-02-17 Yao Qi <yao@codesourcery.com>
11904
11905 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
11906 mach_msg_type_number_t.
11907 (gnu_write_inferior): Likewise.
11908
a9a758e3
YQ
119092014-02-17 Yao Qi <yao@codesourcery.com>
11910
11911 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
11912 in format string.
11913 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
11914 (inf_validate_procs, inf_signal): Likewise.
11915 (S_exception_raise_request): Likewise.
11916 (do_mach_notify_dead_name): Likewise.
11917 (steal_exc_port): Likewise.
11918 (gnu_read_inferior): Change 'copy_count''s type to
11919 mach_msg_type_number_t.
11920 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
11921 format string.
11922
bae8023e
TS
119232014-02-16 Thomas Schwinge <thomas@codesourcery.com>
11924
c82f56d9
TS
11925 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
11926 flag. Adjust all users; in particular...
11927 (gnu_wait): ..., don't decrement its value in here...
11928 (gnu_create_inferior): ..., and instead set the flag in here,
11929 around the startup_inferior call, and call that one with
11930 START_INFERIOR_TRAPS_EXPECTED.
11931
3398af6a
TS
11932 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
11933 (ILL_RPC): ... new macro.
11934 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
11935 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
11936 (do_mach_notify_send_once, S_proc_setmsgport_reply)
11937 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
11938 functions with ILL_RPC macro.
11939 (S_proc_pid2task_reply, S_proc_task2pid_reply)
11940 (S_proc_task2proc_reply, S_proc_proc2task_reply)
11941 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
11942 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
11943 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
11944 (S_proc_getlogin_reply, S_proc_getsid_reply)
11945 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
11946 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
11947 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
11948 (S_proc_getnports_reply, S_proc_is_important_reply)
11949 (S_proc_get_code_reply): New stub functions, generated with
11950 ILL_RPC macro.
11951
d47642c9
TS
11952 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
11953 collected the type check structures.
11954
bae8023e
TS
11955 * reply_mig_hack.awk: Don't expect to see the auto keyword.
11956
8a55ffb0
DE
119572014-02-14 Doug Evans <dje@google.com>
11958
11959 * target.c (target_write_partial): Fix result type.
11960
c2853f3d
JM
119612014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
11962
11963 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
11964 the proper offsets to access fpregset_t.
11965
ac61d2db
SA
119662014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
11967
11968 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
11969 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
11970 * h8300-tdep.c (setmachinelist): Remove global.
11971 * hppa-tdep.c (hppa_sigtramp): Remove global.
11972 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
11973 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
11974 * ravenscar-thread.c (update_target_observer): Remove global.
11975 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
11976
9d2d0b8b
TT
119772014-02-12 Tom Tromey <tromey@redhat.com>
11978
11979 * common/rsp-low.c: Update comments.
11980 * common/rsp-low.h: Update comments.
11981
a7191e8b
TT
119822014-02-12 Tom Tromey <tromey@redhat.com>
11983
11984 * common/rsp-low.c (convert_ascii_to_int): Remove.
11985 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
11986
ff0e980e
TT
119872014-02-12 Tom Tromey <tromey@redhat.com>
11988
11989 * common/rsp-low.h (unhexify): Don't declare.
11990 * common/rsp-low.c (unhexify): Remove.
11991
e9371aff
TT
119922014-02-12 Tom Tromey <tromey@redhat.com>
11993
11994 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
11995 * common/rsp-low.c (convert_int_to_ascii): Remove.
11996
971dc0b8
TT
119972014-02-12 Tom Tromey <tromey@redhat.com>
11998
11999 * common/rsp-low.h (hexify): Don't declare.
12000 * common/rsp-low.c (hexify): Remove.
12001
0a822afb
TT
120022014-02-12 Tom Tromey <tromey@redhat.com>
12003
12004 * common/rsp-low.c (hexify): Never take strlen of argument.
12005
9f1b45b0
TT
120062014-02-12 Tom Tromey <tromey@redhat.com>
12007
12008 * common/rsp-low.c (bin2hex): Never take strlen of argument.
12009 * remote.c (extended_remote_run, remote_rcmd)
12010 (remote_download_trace_state_variable, remote_save_trace_data)
12011 (remote_set_trace_notes): Update.
12012 * tracepoint.c (encode_source_string, tfile_write_status)
12013 (tfile_write_uploaded_tsv): Update.
12014
9c3d6531
TT
120152014-02-12 Tom Tromey <tromey@redhat.com>
12016
12017 * tracepoint.c: Include rsp-low.h.
12018 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
12019 * remote.c: Include rsp-low.h.
12020 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
12021 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
12022 (remote_unescape_input): Move to common/rsp-low.c.
12023 * common/rsp-low.h: New file.
12024 * common/rsp-low.c: New file.
12025 * Makefile.in (SFILES): Add common/rsp-low.c.
12026 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
12027 (COMMON_OBS): Add rsp-low.o.
12028 (rsp-low.o): New target.
12029
01fd3ea5
TT
120302014-02-12 Tom Tromey <tromey@redhat.com>
12031
12032 * utils.h: Include print-utils.h.
12033 (host_address_to_string, plongest, pulongest, phex, phex_nz)
12034 (int_string, core_addr_to_string, core_addr_to_string_nz)
12035 (hex_string, hex_string_custom): Don't declare.
12036 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
12037 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
12038 (hex_string_custom, int_string, core_addr_to_string)
12039 (core_addr_to_string_nz, host_address_to_string): Move to
12040 common/print-utils.c.
12041 * common/print-utils.h: New file.
12042 * common/print-utils.c: New file
12043 * Makefile.in (SFILES): Add common/print-utils.c.
12044 (HFILES_NO_SRCDIR): Add common/print-utils.h.
12045 (COMMON_OBS): Add print-utils.o.
12046 (print-utils.o): New target.
12047
9fb50108
TT
120482014-02-12 Tom Tromey <tromey@redhat.com>
12049
12050 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
12051
0548b5db
MK
120522014-02-12 Mark Kettenis <kettenis@gnu.org>
12053
12054 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
12055
493443a4
MK
120562014-02-12 Mark Kettenis <kettenis@gnu.org>
12057
12058 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
12059 if a PT_IO ptrace request returns sucessfully but indicates that 0
12060 bytes were transferred.
12061
706d0883
PA
120622014-02-12 Pedro Alves <palves@redhat.com>
12063 Kevin Buettner <kevinb@redhat.com>
12064
12065 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
12066 TYPE_INSTANCE_FLAG_CODE_SPACE.
12067
5caa2f0b
PA
120682014-02-12 Pedro Alves <palves@redhat.com>
12069
12070 * h8300-tdep.c (pseudo_from_raw_register)
12071 (raw_from_pseudo_register): New functions.
12072 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
12073 them.
12074
76fd5f74
PA
120752014-02-12 Pedro Alves <palves@redhat.com>
12076
12077 * h8300-tdep.c (h8300_register_sim_regno): New function.
12078 (h8300_gdbarch_init): Install h8300_register_sim_regno as
12079 gdbarch_register_sim_regno hook.
12080
8f008406
SA
120812014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
12082
12083 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
12084
195abc10
SA
120852014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
12086
12087 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
12088
93ffa5b9
MK
120892014-02-12 Mark Kettenis <kettenis@gnu.org>
12090
12091 * obsd-tdep.h (obsd_init_abi): New prototype.
12092 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
12093 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
12094 (obsd_init_abi): New functions.
12095 * i386obsd-tdep.c: Include "obsd-tdep.h".
12096 (i386obsd_init_abi): Call obsd_init_abi.
12097 * amd64obsd-tdep.c: Include "obsd-tdep.h".
12098 (amd64obsd_init_abi): Call obsd_init_abi.
12099 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
12100 obsd-tdep.c to gdb_target_obs.
12101
49caec94
JM
121022014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
12103
12104 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
12105 double float arguments to 16-byte in the argument slots.
12106
e1402065
DE
121072014-02-11 Doug Evans <xdje42@gmail.com>
12108
12109 * configure.ac: Don't crash if pkg-config is not found and guile
12110 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
12111 in guile checks.
12112 * configure: Regenerate.
12113
edcc890f
YQ
121142014-02-11 Yao Qi <yao@codesourcery.com>
12115
12116 * aix-thread.c (aix_thread_xfer_partial): Update comments.
12117 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
12118 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
12119 * gnu-nat.c (gnu_xfer_memory): Likewise.
12120 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
12121 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12122 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12123 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12124
9b409511
YQ
121252014-02-11 Yao Qi <yao@codesourcery.com>
12126
12127 * target.h (enum target_xfer_error): Rename to ...
12128 (enum target_xfer_status): ... it. New. All users updated.
12129 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
12130 New.
12131 (TARGET_XFER_STATUS_ERROR_P): New macro.
12132 (target_xfer_error_to_string): Remove declaration.
12133 (target_xfer_status_to_string): Declare.
12134 (target_xfer_partial_ftype): Adjust it.
12135 (struct target_ops) <to_xfer_partial>: Return
12136 target_xfer_status. Add argument xfered_len. Update
12137 comments.
12138 * target.c (target_xfer_error_to_string): Rename to ...
12139 (target_xfer_status_to_string): ... it. New. All callers
12140 updated.
12141 (target_read_live_memory): Likewise. Call target_xfer_partial
12142 instead of target_read.
12143 (memory_xfer_live_readonly_partial): Return
12144 target_xfer_status. Add argument xfered_len.
12145 (raw_memory_xfer_partial): Likewise.
12146 (memory_xfer_partial_1): Likewise.
12147 (memory_xfer_partial): Likewise.
12148 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
12149 properly. Update debug message.
12150 (default_xfer_partial, current_xfer_partial): Likewise.
12151 (target_write_partial): Likewise.
12152 (target_read_partial): Likewise. All callers updated.
12153 (read_whatever_is_readable): Likewise.
12154 (target_write_with_progress): Likewise.
12155 (target_read_alloc_1): Likewise.
12156
12157 * aix-thread.c (aix_thread_xfer_partial): Likewise.
12158 * auxv.c (procfs_xfer_auxv): Likewise.
12159 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
12160 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12161 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12162 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
12163 * corefile.c (read_memory): Adjust.
12164 * corelow.c (core_xfer_partial): Likewise.
12165 * ctf.c (ctf_xfer_partial): Likewise.
12166 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
12167 updated.
12168 (darwin_xfer_partial): Likewise.
12169 * exec.c (section_table_xfer_memory_partial): Likewise. All
12170 callers updated.
12171 (exec_xfer_partial): Likewise.
12172 * exec.h (section_table_xfer_memory_partial): Update
12173 declaration.
12174 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
12175 negative.
12176 (gnu_xfer_partial): Likewise.
12177 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
12178 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
12179 (ia64_hpux_xfer_solib_got): Likewise.
12180 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
12181 type of 'partial_len' to ULONGEST.
12182 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
12183 * linux-nat.c (linux_xfer_siginfo ): Likewise.
12184 (linux_nat_xfer_partial): Likewise.
12185 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
12186 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
12187 * monitor.c (monitor_xfer_memory): Likewise.
12188 (monitor_xfer_partial): Likewise.
12189 * procfs.c (procfs_xfer_partial): Likewise.
12190 * record-btrace.c (record_btrace_xfer_partial): Likewise.
12191 * record-full.c (record_full_xfer_partial): Likewise.
12192 (record_full_core_xfer_partial): Likewise.
12193 * remote-sim.c (gdbsim_xfer_memory): Likewise.
12194 (gdbsim_xfer_partial): Likewise.
12195 * remote.c (remote_write_bytes_aux): Likewise. All callers
12196 updated.
12197 (remote_write_bytes, remote_read_bytes): Likewise. All
12198 callers updated.
12199 (remote_flash_erase): Likewise. All callers updated.
12200 (remote_write_qxfer): Likewise. All callers updated.
12201 (remote_read_qxfer): Likewise. All callers updated.
12202 (remote_xfer_partial): Likewise.
12203 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12204 (rs6000_xfer_shared_libraries): Likewise.
12205 * sol-thread.c (sol_thread_xfer_partial): Likewise.
12206 (sol_thread_xfer_partial): Likewise.
12207 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12208 (sparc_xfer_partial): Likewise.
12209 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
12210 updated.
12211 (spu_xfer_partial): Likewise.
12212 * spu-multiarch.c (spu_xfer_partial): Likewise.
12213 * tracepoint.c (tfile_xfer_partial): Likewise.
12214 * windows-nat.c (windows_xfer_memory): Likewise.
12215 (windows_xfer_shared_libraries): Likewise.
12216 (windows_xfer_partial): Likewise.
12217 * valprint.c: Replace 'target_xfer_error' with
12218 'target_xfer_status' in comments.
12219
a8e63083
JB
122202014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
12221
12222 Checked in by Joel Brobecker <brobecker@adacore.com>.
12223 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
12224
e86b67d3
JB
122252014-02-11 Joel Brobecker <brobecker@adacore.com>
12226
12227 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
12228 function parameters.
12229
4b7d1f7f
WN
122302014-02-10 Will Newton <will.newton@linaro.org>
12231
12232 * elfread.c (elf_rel_plt_read): Look for a .got section if
12233 looking up .got.plt fails.
12234 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
12235 on address passed to elf_gnu_ifunc_record_cache.
12236 (elf_gnu_ifunc_resolve_addr): Likewise.
12237 (elf_gnu_ifunc_resolver_return_stop): Likewise.
12238
961842b2
JM
122392014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
12240
12241 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
12242 (X_RETTURN): New macro.
12243 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
12244
12245 * sparc64-tdep.c (sparc64_init_abi): Hook
12246 sparc_in_function_epilogue_p.
12247
3f03e7b1
GB
122482014-02-10 Gary Benson <gbenson@redhat.com>
12249
12250 * symfile-debug.c (debug_qf_expand_symtabs_matching):
12251 Rename name_matcher to symbol_matcher.
12252
96f861ef
GB
122532014-02-10 Gary Benson <gbenson@redhat.com>
12254
12255 * symfile-debug.c (debug_qf_expand_symtabs_matching):
12256 Use expand_symtabs_file_matcher_ftype and
12257 expand_symtabs_symbol_matcher_ftype.
12258
ee01b665
JB
122592014-02-10 Joel Brobecker <brobecker@adacore.com>
12260
12261 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
12262 (struct ada_symbol_cache): New.
12263 (ada_free_symbol_cache): Forward declare.
12264 (struct ada_pspace_data): New.
12265 (ada_pspace_data_handle): New static global.
12266 (get_ada_pspace_data, ada_pspace_data_cleanup)
12267 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
12268 (cache_space, cache): Delete, now folded inside struct
12269 ada_pspace_data.
12270 (ada_get_symbol_cache): New function.
12271 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
12272 implementation.
12273 (_initialize_ada_language): Remove initialization of cache_space.
12274 Move call to observer_attach_inferior_exit up, grouping it
12275 with the other observer registrations inside this function.
12276 Rename command to be more general. Add call to
12277 register_program_space_data_with_cleanup.
12278
143adbbf
JB
122792014-02-10 Joel Brobecker <brobecker@adacore.com>
12280
12281 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
12282 ada_new_objfile_observer.
12283 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
12284 (_initialize_tasks): Update uses of ada_new_objfile_observer
12285 and ada_tasks_normal_stop_observer.
12286
aa4fb036
JB
122872014-02-10 Joel Brobecker <brobecker@adacore.com>
12288
12289 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
12290 returned by the 'Length attribute to integer.
12291
9dee8cc6
JB
122922014-02-10 Joel Brobecker <brobecker@adacore.com>
12293
12294 * ada-lang.c (_initialize_ada_language): Initialize
12295 cache_space obstack.
12296
3d9434b5
JB
122972014-02-10 Joel Brobecker <brobecker@adacore.com>
12298
12299 * ada-lang.c (HASH_SIZE): New macro.
12300 (struct cache_entry): New type.
12301 (cache_space, cache): New static globals.
12302 (ada_clear_symbol_cache, find_entry): New functions.
12303 (lookup_cached_symbol, cache_symbol): Implement.
12304 (ada_new_objfile_observer, ada_free_objfile_observer): New.
12305 (_initialize_ada_language): Attach ada_new_objfile_observer
12306 and ada_free_objfile_observer.
12307
f0c5f9b2
JB
123082014-02-10 Joel Brobecker <brobecker@adacore.com>
12309
12310 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
12311 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
12312 struct block * parameter.
12313 (ada_lookup_symbol_list_worker): Constify local variable "block".
12314 Remove cast which is no longer necessary.
12315
ed3ef339
DE
123162014-02-10 Doug Evans <xdje42@gmail.com>
12317
12318 Add Guile as an extension language.
12319 * NEWS: Mention Guile scripting.
12320 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
12321 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
12322 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
12323 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
12324 (CLIBS): Add GUILE_LIBS.
12325 (install-guile): New rule.
12326 (guile.o): New rule.
12327 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
12328 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
12329 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
12330 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
12331 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
12332 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
12333 (scm-type.o, scm-utils.o, scm-value.o): New rules.
12334 * configure.ac: New option --with-guile.
12335 * configure: Regenerate.
12336 * config.in: Regenerate.
12337 * auto-load.c: Remove #include "python/python.h". Add #include
12338 "gdb/section-scripts.h".
12339 (source_section_scripts): Handle Guile scripts.
12340 (_initialize_auto_load): Add name of Guile objfile script to
12341 scripts-directory help text.
12342 * breakpoint.c (condition_command): Tweak comment to include Scheme.
12343 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
12344 (struct breakpoint): New member scm_bp_object.
12345 * defs.h (enum command_control_type): New value guile_control.
12346 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
12347 "extension.h".
12348 (show_user): Update comment.
12349 (_initialize_cli_cmds): Update help text for "show user". Update help
12350 text for max-user-call-depth.
12351 * cli/cli-script.c: Remove #include "python/python.h". Add #include
12352 "extension.h".
12353 (multi_line_command_p): Add guile_control.
12354 (print_command_lines): Handle guile_control.
12355 (execute_control_command, recurse_read_control_structure): Ditto.
12356 (process_next_line): Recognize "guile" commands.
12357 * disasm.c (gdb_disassemble_info): Make non-static.
12358 * disasm.h: #include "dis-asm.h".
12359 (struct gdbarch): Add forward decl.
12360 (gdb_disassemble_info): Declare.
12361 * extension.c: #include "guile/guile.h".
12362 (extension_languages): Add guile.
12363 (get_ext_lang_defn): Handle EXT_LANG_GDB.
12364 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
12365 * gdbtypes.c (get_unsigned_type_max): New function.
12366 (get_signed_type_minmax): New function.
12367 * gdbtypes.h (get_unsigned_type_max): Declare.
12368 (get_signed_type_minmax): Declare.
12369 * guile/README: New file.
12370 * guile/guile-internal.h: New file.
12371 * guile/guile.c: New file.
12372 * guile/guile.h: New file.
12373 * guile/scm-arch.c: New file.
12374 * guile/scm-auto-load.c: New file.
12375 * guile/scm-block.c: New file.
12376 * guile/scm-breakpoint.c: New file.
12377 * guile/scm-disasm.c: New file.
12378 * guile/scm-exception.c: New file.
12379 * guile/scm-frame.c: New file.
12380 * guile/scm-gsmob.c: New file.
12381 * guile/scm-iterator.c: New file.
12382 * guile/scm-lazy-string.c: New file.
12383 * guile/scm-math.c: New file.
12384 * guile/scm-objfile.c: New file.
12385 * guile/scm-ports.c: New file.
12386 * guile/scm-pretty-print.c: New file.
12387 * guile/scm-safe-call.c: New file.
12388 * guile/scm-string.c: New file.
12389 * guile/scm-symbol.c: New file.
12390 * guile/scm-symtab.c: New file.
12391 * guile/scm-type.c: New file.
12392 * guile/scm-utils.c: New file.
12393 * guile/scm-value.c: New file.
12394 * guile/lib/gdb.scm: New file.
12395 * guile/lib/gdb/boot.scm: New file.
12396 * guile/lib/gdb/experimental.scm: New file.
12397 * guile/lib/gdb/init.scm: New file.
12398 * guile/lib/gdb/iterator.scm: New file.
12399 * guile/lib/gdb/printing.scm: New file.
12400 * guile/lib/gdb/types.scm: New file.
12401 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
12402 (VPATH): Add $(GUILE_SRCDIR).
12403 (GUILE_DIR): New variable.
12404 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
12405 (all): Add stamp-guile dependency.
12406 (stamp-guile): New rule.
12407 (clean-guile, install-guile, uninstall-guile): New rules.
12408 (install-only): Add install-guile dependency.
12409 (uninstall): Add uninstall-guile dependency.
12410 (clean): Add clean-guile dependency.
12411
ac020ec5
DE
124122014-02-09 Doug Evans <xdje42@gmail.com>
12413
12414 Revert this patch (which I approved, mea culpa).
12415
12416 2014-02-08 Mark Kettenis <kettenis@gnu.org>
12417
12418 * Makefile.in (all-lib): Remove.
12419 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12420
2a081c59
JK
124212014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
12422
12423 Fix Python stack corruption.
12424 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
12425 gdb_py_longest.
12426
0a6bd22d
MK
124272014-02-08 Mark Kettenis <kettenis@gnu.org>
12428
12429 * Makefile.in (all-lib): Remove.
12430 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12431
1a860409
DE
124322014-02-07 Doug Evans <dje@google.com>
12433
12434 * extension-priv.h (extension_language_script_ops): Add comment.
12435 (extension_language_ops): Add comment.
caf5a491 12436 (active_ext_lang_state): Fix typo in comment.
1a860409 12437
d137e6dc
PA
124382014-02-07 Pedro Alves <palves@redhat.com>
12439
0dcb32c3 12440 PR breakpoints/16292
d137e6dc
PA
12441 * infrun.c (handle_signal_stop) <signal arrives while stepping
12442 over a breakpoint>: Switch back to the stepping thread.
12443
ce6d0892
YQ
124442014-02-07 Yao Qi <yao@codesourcery.com>
12445
12446 * target.c (target_xfer_partial): Return zero if LEN is zero.
12447
2ed4b548
YQ
124482014-02-07 Yao Qi <yao@codesourcery.com>
12449
12450 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
12451 (ld_so_xfer_auxv): Likewise.
12452 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12453 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12454 * corelow.c (core_xfer_partial): Likewise.
12455 * ctf.c (ctf_xfer_partial): Likewise.
12456 * darwin-nat.c (darwin_read_dyld_info): Likewise.
12457 (darwin_xfer_partial): Likewise.
12458 * exec.c (exec_xfer_partial): Likewise.
12459 * gnu-nat.c (gnu_xfer_partial): Likewise.
12460 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
12461 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
12462 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
12463 * linux-nat.c (linux_xfer_siginfo): Likewise.
12464 (linux_proc_xfer_spu): Likewise.
12465 * procfs.c (procfs_xfer_partial): Likewise.
12466 * record-full.c (record_full_xfer_partial): Likewise.
12467 (record_full_core_xfer_partial): Likewise.
12468 * remote-sim.c (gdbsim_xfer_partial): Likewise.
12469 * remote.c (remote_write_qxfer): Likewise.
12470 (remote_write_qxfer, remote_read_qxfer): Likewise.
12471 (remote_xfer_partial): Likewise.
12472 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12473 (rs6000_xfer_shared_libraries): Likewise.
12474 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12475 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12476 (spu_xfer_partial): Likewise.
12477 * target.c (memory_xfer_partial_1): Likewise.
12478 * tracepoint.c (tfile_xfer_partial): Likewise.
12479 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
12480 (windows_xfer_partial): Likewise.
12481
c09f20e4
YQ
124822014-02-07 Yao Qi <yao@codesourcery.com>
12483
12484 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
12485 comments.
12486 (core_xfer_shared_libraries_aix): Likewise.
12487 * gdbarch.c, gdbarch.h: Regenerated.
12488 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
12489 ULONGEST. Change 'len_avail' type to ULONGEST.
12490 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12491 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12492 declaration.
12493 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
12494
8635b3bf
YQ
124952014-02-07 Yao Qi <yao@codesourcery.com>
12496
12497 * corefile.c (memory_error): Get 'exception' from ERR and pass
12498 'exception' to throw_error.
12499
6dddc817
DE
125002014-02-06 Doug Evans <xdje42@gmail.com>
12501
12502 * configure.ac (libpython checking): Remove all but python.o from
12503 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
12504 * configure: Regenerate.
12505
12506 * Makefile.in (SFILES): Add extension.c.
12507 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
12508 (COMMON_OBS): Add extension.o.
12509 * extension.h: New file.
12510 * extension-priv.h: New file.
12511 * extension.c: New file.
12512
12513 * python/python-internal.h: #include "extension.h".
12514 (gdbpy_auto_load_enabled): Declare.
12515 (gdbpy_apply_val_pretty_printer): Declare.
12516 (gdbpy_apply_frame_filter): Declare.
12517 (gdbpy_preserve_values): Declare.
12518 (gdbpy_breakpoint_cond_says_stop): Declare.
12519 (gdbpy_breakpoint_has_cond): Declare.
12520 (void source_python_script_for_objfile): Delete.
12521 * python/python.c: #include "extension-priv.h".
12522 Delete inclusion of "observer.h".
12523 (extension_language_python): Moved here and renamed from
12524 script_language_python in py-auto-load.c.
12525 Redefined to be of type extension_language_defn.
12526 (python_extension_script_ops): New global.
12527 (python_extension_ops): New global.
12528 (struct python_env): New member previous_active.
12529 (restore_python_env): Call restore_active_ext_lang.
12530 (ensure_python_env): Call set_active_ext_lang.
12531 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
12532 New arg extlang.
12533 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
12534 New arg extlang.
12535 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
12536 New arg extlang.
12537 (gdbpy_eval_from_control_command): Renamed from
12538 eval_python_from_control_command, made static. New arg extlang.
12539 (gdbpy_source_script) Renamed from source_python_script, made static.
12540 New arg extlang.
12541 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
12542 result to int. New arg extlang.
12543 (gdbpy_source_objfile_script): Renamed from
12544 source_python_script_for_objfile, made static. New arg extlang.
12545 (gdbpy_start_type_printers): Renamed from start_type_printers, made
12546 static. New args extlang, extlang_printers. Change result type to
12547 "void".
12548 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
12549 static. New arg extlang. Rename arg printers to extlang_printers
12550 and change type to ext_lang_type_printers *.
12551 (gdbpy_free_type_printers): Renamed from free_type_printers, made
12552 static. Replace argument arg with extlang, extlang_printers.
12553 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
12554 (!HAVE_PYTHON, source_python_script): Delete.
12555 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
12556 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
12557 (!HAVE_PYTHON, start_type_printers): Delete.
12558 (!HAVE_PYTHON, apply_type_printers): Delete.
12559 (!HAVE_PYTHON, free_type_printers): Delete.
12560 (_initialize_python): Delete call to observer_attach_before_prompt.
12561 (finalize_python): Set/restore active extension language.
12562 (gdbpy_finish_initialization) Renamed from
12563 finish_python_initialization, made static. New arg extlang.
12564 (gdbpy_initialized): New function.
12565 * python/python.h: #include "extension.h". Delete #include
12566 "value.h", "mi/mi-cmds.h".
12567 (extension_language_python): Declare.
12568 (GDBPY_AUTO_FILE_NAME): Delete.
12569 (enum py_bt_status): Moved to extension.h and renamed to
12570 ext_lang_bt_status.
12571 (enum frame_filter_flags): Moved to extension.h.
12572 (enum py_frame_args): Moved to extension.h and renamed to
12573 ext_lang_frame_args.
12574 (finish_python_initialization): Delete.
12575 (eval_python_from_control_command): Delete.
12576 (source_python_script): Delete.
12577 (apply_val_pretty_printer): Delete.
12578 (apply_frame_filter): Delete.
12579 (preserve_python_values): Delete.
12580 (gdbpy_script_language_defn): Delete.
12581 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
12582 (start_type_printers, apply_type_printers, free_type_printers): Delete.
12583
12584 * auto-load.c: #include "extension.h".
12585 (GDB_AUTO_FILE_NAME): Delete.
12586 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
12587 (script_language_gdb): Delete, moved to extension.c and renamed to
12588 extension_language_gdb.
12589 (source_gdb_script_for_objfile): Delete.
12590 (auto_load_pspace_info): New member unsupported_script_warning_printed.
12591 (loaded_script): Change type of language member to
12592 struct extension_language_defn *.
12593 (init_loaded_scripts_info): Initialize
12594 unsupported_script_warning_printed.
12595 (maybe_add_script): Make static. Change type of language arg to
12596 struct extension_language_defn *.
12597 (clear_section_scripts): Reset unsupported_script_warning_printed.
12598 (auto_load_objfile_script_1): Rewrite to use extension language API.
12599 (auto_load_objfile_script): Make public. Remove support-compiled-in
12600 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
12601 (source_section_scripts): Rewrite to use extension language API.
12602 (load_auto_scripts_for_objfile): Rewrite to use
12603 auto_load_scripts_for_objfile.
12604 (collect_matching_scripts_data): Change type of language member to
12605 struct extension_language_defn *.
12606 (auto_load_info_scripts): Change type of language arg to
12607 struct extension_language_defn *.
12608 (unsupported_script_warning_print): New function.
12609 (script_not_found_warning_print): Make static.
12610 (_initialize_auto_load): Rewrite construction of scripts-directory
12611 help.
12612 * auto-load.h (struct objfile): Add forward decl.
12613 (struct script_language): Delete.
12614 (struct auto_load_pspace_info): Add forward decl.
12615 (struct extension_language_defn): Add forward decl.
12616 (maybe_add_script): Delete.
12617 (auto_load_objfile_script): Declare.
12618 (script_not_found_warning_print): Delete.
12619 (auto_load_info_scripts): Update prototype.
12620 (auto_load_gdb_scripts_enabled): Declare.
12621 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
12622 auto_load_python_scripts_enabled and made public.
12623 (script_language_python): Delete, moved to python.c.
12624 (gdbpy_script_language_defn): Delete.
12625 (info_auto_load_python_scripts): Update to use
12626 extension_language_python.
12627
12628 * breakpoint.c (condition_command): Replace call to
12629 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
12630 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
12631 with call to breakpoint_ext_lang_cond_says_stop.
12632 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
12633 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
12634 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
12635 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
12636 New arg slang.
12637 (local_setattro): Print name of extension language with existing
12638 stop condition.
12639
12640 * valprint.c (val_print, value_print): Update to call
12641 apply_ext_lang_val_pretty_printer.
12642 * cp-valprint.c (cp_print_value): Update call to
12643 apply_ext_lang_val_pretty_printer.
12644 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
12645 (gdbpy_apply_val_pretty_printer): Renamed from
12646 apply_val_pretty_printer. New arg extlang.
12647 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
12648
12649 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
12650 extension language API.
12651 * cli/cli-script.c (execute_control_command): Update to call
12652 eval_ext_lang_from_control_command.
12653
12654 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
12655 enum ext_lang_bt_status values. Update call to
12656 apply_ext_lang_frame_filter.
12657 (mi_cmd_stack_list_locals): Ditto.
12658 (mi_cmd_stack_list_args): Ditto.
12659 (mi_cmd_stack_list_variables): Ditto.
12660 * mi/mi-main.c: Delete #include "python/python-internal.h".
12661 Add #include "extension.h".
12662 (mi_cmd_list_features): Replace reference to python internal variable
12663 gdb_python_initialized with call to ext_lang_initialized_p.
12664
12665 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
12666 Update to use enum ext_lang_frame_args. Update to call
12667 apply_ext_lang_frame_filter.
12668 * python/py-framefilter.c (extract_sym): Update to use enum
12669 ext_lang_bt_status.
12670 (extract_value, py_print_type, py_print_value): Ditto.
12671 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
12672 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
12673 (py_print_frame): Ditto.
12674 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
12675 New arg extlang. Update to use enum ext_lang_bt_status.
12676
12677 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
12678 finish_python_initialization. Replace with call to
12679 finish_ext_lang_initialization.
12680
12681 * typeprint.c (do_free_global_table): Update to call
12682 free_ext_lang_type_printers.
12683 (create_global_typedef_table): Update to call
12684 start_ext_lang_type_printers.
12685 (find_global_typedef): Update to call apply_ext_lang_type_printers.
12686 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
12687 (type_print_options): Change type of global_printers from "void *"
12688 to "struct ext_lang_type_printers *".
12689
12690 * value.c (preserve_values): Update to call preserve_ext_lang_values.
12691 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
12692 (gdbpy_preserve_values): Renamed from preserve_python_values.
12693 New arg extlang.
12694 (!HAVE_PYTHON, preserve_python_values): Delete.
12695
12696 * utils.c (quit_flag): Delete, moved to extension.c.
12697 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
12698 extension.c.
12699
12700 * eval.c: Delete #include "python/python.h".
12701 * main.c: Delete #include "python/python.h".
12702
12703 * defs.h: Update comment.
12704
6af79985
JB
127052014-02-06 Joel Brobecker <brobecker@adacore.com>
12706
12707 GDB 7.7 released.
12708
12c5175d
MK
127092014-02-05 Mark Kettenis <kettenis@gnu.org>
12710
12711 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
12712 defined.
12713
8dc5b319
YQ
127142014-02-05 Yao Qi <yao@codesourcery.com>
12715
12716 * remote.c (remote_pass_signals): Remove local 'buf' and use
12717 rs->buf.
12718 (remote_program_signals): Likewise.
12719
de7b2893
YQ
127202014-02-05 Yao Qi <yao@codesourcery.com>
12721
12722 * ctf.c: Include "inferior.h" and "gdbthread.h".
12723 (CTF_PID): A new macro.
12724 (ctf_open): Call inferior_appeared and add_thread_silent.
12725 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
12726 (ctf_thread_alive): New function.
12727 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
12728
66d032ac
YQ
127292014-02-05 Yao Qi <yao@codesourcery.com>
12730
12731 Revert this patch:
12732
12733 2013-05-24 Yao Qi <yao@codesourcery.com>
12734
12735 * tracepoint.c (TFILE_PID): Remove.
12736 (tfile_open): Don't add thread and inferior.
12737 (tfile_close): Don't set 'inferior_ptid'. Don't call
12738 exit_inferior_silent.
12739 (tfile_thread_alive): Remove.
12740 (init_tfile_ops): Don't set field 'to_thread_alive' of
12741 tfile_ops.
12742
f4ccffad
CE
127432014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
12744
12745 * remote.c (remote_start_remote): Call remote_check_symbols even
12746 if only symbol-file (not file) has been given.
12747
591a12a1
UW
127482014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12749
12750 * gdbarch.sh (skip_entrypoint): New callback.
12751 * gdbarch.c, gdbarch.h: Regenerate.
12752 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
12753 * infrun.c (fill_in_stop_func): Likewise.
12754 * ppc-linux-tdep.c: Include "elf/ppc64.h".
12755 (ppc_elfv2_elf_make_msymbol_special): New function.
12756 (ppc_elfv2_skip_entrypoint): Likewise.
12757 (ppc_linux_init_abi): Install them for ELFv2.
12758
cc0e89c5
UW
127592014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12760
12761 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
12762 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
12763 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
12764 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
12765 structures returned in GPRs.
12766
52f548e4
UW
127672014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12768
12769 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
12770 offset to the stack parameter list for the ELFv2 ABI.
12771
d4094b6a
UW
127722014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12773
12774 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
12775 set_gdbarch_convert_from_func_ptr_addr and
12776 set_gdbarch_elf_make_msymbol_special for ELFv1.
12777 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
12778 function descriptors on ELFv1.
12779 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
12780 set up r12 at function entry.
12781
cd453cd0
UW
127822014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12783
12784 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
12785 (struct gdbarch_tdep): New member elf_abi.
12786
12787 * rs6000-tdep.c: Include "elf/ppc64.h".
12788 (rs6000_gdbarch_init): Detect ELF ABI version.
12789
0ff3e01f
UW
127902014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12791
12792 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
12793 within a register pair holding a DFP 128-bit value on little-endian.
12794 (ppc64_sysv_abi_return_value_base): Likewise.
12795 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
12796 (dfp_pseudo_register_write): Likewise.
12797
5b757e5d
UW
127982014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12799
12800 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
12801 offset on little-endian when passing _Decimal32.
12802 (ppc64_sysv_abi_return_value_base): Likewise for return values.
12803
084ee545
UW
128042014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12805
12806 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
12807 of the overlapped FP register within the VSX register on little-
12808 endian platforms.
12809 (efpr_pseudo_register_write): Likewise.
12810
d63167af
UW
128112014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12812
12813 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
12814 offset on little-endian when passing small structures.
12815
e765b44c
UW
128162014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12817
12818 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
12819 (struct ppc64_sysv_argpos): New data structure.
12820 (ppc64_sysv_abi_push_float): Remove.
12821 (ppc64_sysv_abi_push_val): New function.
12822 (ppc64_sysv_abi_push_integer): Likewise.
12823 (ppc64_sysv_abi_push_freg): Likewise.
12824 (ppc64_sysv_abi_push_vreg): Likewise.
12825 (ppc64_sysv_abi_push_param): Likewise.
12826 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
12827 (ppc64_sysv_abi_return_value_base): New function.
12828 (ppc64_sysv_abi_return_value): Refactor to use it.
12829
36c24d95
UW
128302014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12831
12832 * NEWS: Document new target powerpc64le-*-linux*.
12833
26fd9228
MK
128342014-02-04 Mark Kettenis <kettenis@gnu.org>
12835
12836 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
12837 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
12838 core dumps.
12839 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
12840 register set used in ELF core dumps. Add floating-point register set.
12841
c5bb7362
KB
128422014-02-03 Kevin Buettner <kevinb@redhat.com>
12843
74228e77 12844 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
c5bb7362
KB
12845 dwarf2_to_gdb[] table using symbolic constants. Adjust
12846 penultimate entry from number representing the PC register
12847 to symbolic constant representing the MDR register. Add
12848 constant for the PC register to the end of the table.
12849
af09351e
MK
128502014-02-03 Mark Kettenis <kettenis@gnu.org>
12851
12852 * bsd-kvm.c: Include <sys/param.h>
12853
8507e05d
MK
128542014-02-03 Mark Kettenis <kettenis@gnu.org>
12855
12856 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
12857
ae56bfb8
JB
128582014-01-31 Joel Brobecker <brobecker@adacore.com>
12859
12860 * ada-lang.h (clear_ada_sym_cache): Delete.
12861
718ee4dc
UW
128622014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
12863
12864 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
12865
401e27fd
JM
128662014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
12867
12868 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
12869 the sigreturn register save area only if the syscall is
12870 sigreturn.
12871
a7c88acd
JB
128722014-01-29 Joel Brobecker <brobecker@adacore.com>
12873
12874 * valops.c (value_slice): Minor reformatting.
12875
fa0079ea
UW
128762014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
12877
12878 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
12879
c6044dd1
JB
128802014-01-28 Joel Brobecker <brobecker@adacore.com>
12881
12882 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
12883 New static globals.
12884 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
12885 (ada_ignore_descriptive_types_p): New static global.
12886 (find_parallel_type_by_descriptive_type): Return immediately
12887 if ada_ignore_descriptive_types_p is set.
12888 (_initialize_ada_language): Register new commands "maintenance
12889 set ada", "maintenance show ada", "maintenance set ada
12890 ignore-descriptive-types" and "maintenance show ada
12891 ignore-descriptive-types".
12892 * NEWS: Add entry for new "maint ada set/show
12893 ignore-descriptive-types" commands.
12894
568e808b
MM
128952014-01-27 Markus Metzger <markus.t.metzger@intel.com>
12896
12897 * record-btrace.c (record_btrace_close): Call btrace_teardown
12898 for all threads.
12899
467d141b
JB
129002014-01-27 Joel Brobecker <brobecker@adacore.com>
12901
12902 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
12903 "ui-out.h".
12904
fb151210
JB
129052014-01-27 Joel Brobecker <brobecker@adacore.com>
12906
12907 * ada-typeprint (type_is_full_subrange_of_target_type):
12908 New function.
12909 (print_range): Add parameter bounds_prefered_p. If not set,
12910 try printing range types using the name of their base type.
12911 (print_range_type): Add parameter bounds_prefered_p.
12912 Use it in call to print_range.
12913 (print_array_type, ada_print_type): Update calls to print_range
12914 and print_range_type.
12915
aba02109
JB
129162014-01-27 Joel Brobecker <brobecker@adacore.com>
12917
12918 * ada-typeprint.c (print_array_type, print_choices, print_range)
12919 (print_range_bound, print_dynamic_range_bound, print_range_type):
12920 Remove declaration.
12921
e62e21fd
JB
129222014-01-27 Joel Brobecker <brobecker@adacore.com>
12923
12924 * ada-typeprint.c (print_range): Add missing empty line
12925 after local declaration.
12926
859cf5d1
JB
129272014-01-27 Joel Brobecker <brobecker@adacore.com>
12928
12929 * ada-valprint.c (print_optional_low_bound): Get index_type's
12930 target type for as long as it is a TYPE_CODE_RANGE.
12931
25790f6f
JB
129322014-01-27 Joel Brobecker <brobecker@adacore.com>
12933
12934 * procfs.c (procfs_make_note_section): Remove assertion and
12935 associated comment.
12936
6b6aa828
YQ
129372014-01-24 Yao Qi <yao@codesourcery.com>
12938
12939 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
12940 * corelow.c (get_core_siginfo): Likewise.
12941
5d6df423
YQ
129422014-01-24 Yao Qi <yao@codesourcery.com>
12943
12944 * remote.c (remote_write_bytes_aux): Change type of 'len' to
12945 ULONGEST. Don't check 'len' is negative.
12946 (remote_write_bytes): Change type of 'len' to ULONGEST.
12947
83b645b8
TT
129482014-01-23 Tom Tromey <tromey@redhat.com>
12949
12950 PR python/16485:
12951 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
12952 Handle exception from frame.block.
12953 (FrameVars.fetch_frame_locals): Likewise.
12954
0740f8d8
TT
129552014-01-23 Tom Tromey <tromey@redhat.com>
12956
12957 PR python/16487:
12958 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
12959 on a NULL pointer. Move "goto error" to correct place.
12960
21909fa1
TT
129612014-01-23 Tom Tromey <tromey@redhat.com>
12962
12963 PR python/16491:
12964 * python/py-framefilter.c (apply_frame_filter): Call
12965 ensure_python_env after computing gdbarch.
12966
17fde6d0
YQ
129672014-01-23 Yao Qi <yao@codesourcery.com>
12968
12969 * target.c (raw_memory_xfer_partial): Change argument type
12970 from void * to gdb_byte *.
12971 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
12972
87ce2a04
DE
129732014-01-22 Doug Evans <dje@google.com>
12974
12975 New gdbserver option --debug-format=timestamp.
12976 * NEWS: Mention it.
12977
237b092b
AA
129782014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
12979
12980 * syscalls/s390x-linux.xml: New file.
12981 * syscalls/s390-linux.xml: New file.
12982 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
12983 (XML_SYSCALL_FILENAME_S390X): Likewise.
12984 (op_svc): New enum value for SVC opcode.
12985 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
12986 (s390_linux_get_syscall_number): New function.
12987 (s390_gdbarch_init): Register '*get_syscall_number' and the
12988 syscall xml file name.
12989 * data-directory/Makefile.in (SYSCALLS_FILES): Add
12990 "s390-linux.xml" and "s390x-linux.xml".
12991 * NEWS: Announce new feature.
12992
54bff650
BS
129932014-01-22 Baruch Siach <baruch@tkos.co.il>
12994
12995 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
12996
14e361d7
PA
129972014-01-22 Pedro Alves <palves@redhat.com>
12998
12999 * xtensa-config.c: Include defs.h.
13000
46bbb3ed
JB
130012014-01-22 Joel Brobecker <brobecker@adacore.com>
13002
13003 * common/common-utils.h: Add "ARI:" comment beside __func__
13004 reference.
13005
3a80edfc
JB
130062014-01-22 Joel Brobecker <brobecker@adacore.com>
13007
13008 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
13009 documentation a bit.
13010
4869db5e
RM
130112014-01-21 Roland McGrath <mcgrathr@google.com>
13012
13013 * configure.ac: Call AM_PROG_INSTALL_STRIP.
13014 * configure: Regenerate.
13015 * aclocal.m4: Regenerate.
13016 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
13017 New substituted variables.
13018 (install-strip): New target.
13019 (INSTALL_SCRIPT): New substituted variable.
13020 (FLAGS_TO_PASS): Add it.
13021 (install-only): Use $(INSTALL_SCRIPT) rather than
13022 $(INSTALL_PROGRAM) for gcore.
13023
9ea4267d
TT
130242014-01-20 Tom Tromey <tromey@redhat.com>
13025
13026 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
13027 together.
13028
1f2bdf09
TT
130292014-01-20 Tom Tromey <tromey@redhat.com>
13030
13031 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
13032 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
13033 (deprecated_cmd_warning, complete_on_cmdlist): Update.
13034 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
13035 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
13036 (struct cmd_list_element) <flags>: Remove.
13037 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
13038 doc_allocated>: New fields.
13039 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
13040 bitfields.
13041 * maint.c (maintenance_do_deprecate): Update.
13042 * top.c (execute_command): Update.
13043
e671835b
BS
130442014-01-20 Baruch Siach <baruch@tkos.co.il>
13045
13046 * xtensa-linux-nat.c: Include asm/ptrace.h.
13047
50367cd2
IB
130482014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13049
13050 * Makefile.in (SFILES): Add d-support.c.
13051 (COMMON_OBS): Add d-support.o.
13052 * d-lang.h (d_parse_symbol): Add comment, now defined in
13053 d-support.c.
13054 * d-lang.c (parse_call_convention)
13055 (parse_attributes, parse_function_types)
13056 (parse_function_args, parse_type, parse_identifier)
13057 (call_convention_p, d_parse_symbol): Move functions to ...
13058 * d-support.c: ... New file.
13059
ec9f644a
IB
130602014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13061
13062 * d-lang.h (d_parse_symbol): Add declaration.
13063 * d-lang.c (extract_identifiers)
13064 (extract_type_info): Remove functions.
13065 (parse_call_convention, parse_attributes)
13066 (parse_function_types, parse_function_args)
13067 (parse_type, parse_identifier, call_convention_p)
13068 (d_parse_symbol): New functions.
13069 (d_demangle): Use d_parse_symbol to demangle D symbols.
13070
94b1b47e
IB
130712014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13072
13073 * d-lang.h (struct builtin_d_type): New data type.
13074 (builtin_d_type): Add declaration.
13075 * d-lang.c (d_language_arch_info, build_d_types)
13076 (builtin_d_type): New functions.
13077 (enum d_primitive_types): New data type.
13078 (d_language_defn): Change c_language_arch_info to
13079 d_language_arch_info.
13080 (d_type_data): New static variable.
13081 (_initialize_d_language): Initialize d_type_data.
13082
63778547
IB
130832014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13084
13085 * d-lang.h (d_main_name): Add declaration.
13086 * d-lang.c (d_main_name): New function.
13087 * symtab.c (find_main_name): Add call to d_main_name.
13088
3271ba66
IB
130892014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13090
13091 * d-lang.c (d_language_defn): Change macro_expansion_c to
13092 macro_expansion_no.
13093
d36b3012
IB
130942014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13095
13096 * MAINTAINERS: Add myself as a write-after-approval maintainer.
13097
c90a6fb7
SDJ
130982014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
13099
13100 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
13101 gdb_exception" declaration.
13102 * remote.c (getpkt_or_notif_sane): Likewise.
13103
749234e5
DE
131042014-01-17 Doug Evans <dje@google.com>
13105
13106 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
13107 function, contents of dirnames_to_char_ptr_vec_append moved here.
13108 (delim_string_to_char_ptr_vec): New function.
13109 (dirnames_to_char_ptr_vec_append): Rewrite.
13110 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
13111
df049a58
DE
131122014-01-17 Doug Evans <dje@google.com>
13113
13114 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
13115 and moved here ...
13116 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
13117 #include "common-utils.h".
13118 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
13119 * common/vec.h (VEC_ASSERT_PASS): Update.
13120 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
13121 (MACH_CHECK_ERROR): Update.
13122
69f97648
SM
131232014-01-17 Simon Marchi <simon.marchi@ericsson.com>
13124
13125 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
13126 comments.
13127 * gdbarch.h: Regenerate.
13128
98b1cfdc
TT
131292014-01-16 Tom Tromey <tromey@redhat.com>
13130
13131 * value.c (struct value) <regnum>: Move earlier.
13132
77a19445
TT
131332014-01-16 Tom Tromey <tromey@redhat.com>
13134
13135 * remote.c (extended_remote_create_inferior): Rename from
13136 extended_remote_create_inferior_1. Add "ops" argument. Remove
13137 old implementation.
13138
62261490
PA
131392014-01-16 Pedro Alves <palves@redhat.com>
13140
13141 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
13142 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
13143 the backchain.
13144
4d65956b
DE
131452014-01-16 Doug Evans <dje@google.com>
13146
13147 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
13148
52834460
MM
131492014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13150
13151 * btrace.h (btrace_thread_flag): New.
13152 (struct btrace_thread_info) <flags>: New.
13153 * record-btrace.c (record_btrace_resume_thread)
13154 (record_btrace_find_thread_to_move, btrace_step_no_history)
13155 (btrace_step_stopped, record_btrace_start_replaying)
13156 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
13157 (record_btrace_find_resume_thread): New.
13158 (record_btrace_resume, record_btrace_wait): Extend.
13159 (record_btrace_can_execute_reverse): New.
13160 (record_btrace_open): Fail in non-stop mode.
13161 (record_btrace_set_replay): Split into this, ...
13162 (record_btrace_stop_replaying): ... this, ...
13163 (record_btrace_clear_histories): ... and this.
13164 (init_record_btrace_ops): Init to_can_execute_reverse.
13165 * NEWS: Announce it.
13166
118e6252
MM
131672014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13168
13169 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
13170 (forward_target_decr_pc_after_break)
13171 (target_decr_pc_after_break): New.
13172 * target.c (forward_target_decr_pc_after_break)
13173 (target_decr_pc_after_break): New.
13174 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
13175 instead of gdbarch_decr_pc_after_break.
13176 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
13177 instead of gdbarch_decr_pc_after_break.
13178 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
13179 instead of gdbarch_decr_pc_after_break.
13180 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
13181 instead of gdbarch_decr_pc_after_break.
13182 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
13183 instead of gdbarch_decr_pc_after_break.
13184 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
13185 instead of gdbarch_decr_pc_after_break.
13186
6e07b1d2
MM
131872014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13188
13189 * btrace.c: Include regcache.h.
13190 (btrace_add_pc): New.
13191 (btrace_enable): Call btrace_add_pc.
13192 (btrace_is_empty): New.
13193 * btrace.h (btrace_is_empty): New.
13194 * record-btrace.c (require_btrace, record_btrace_info): Call
13195 btrace_is_empty.
13196
969c39fb
MM
131972014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13198
13199 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
13200 Support delta reads.
13201 (linux_disable_btrace): Change return type.
13202 * common/linux-btrace.h (linux_read_btrace): Change parameters
13203 and return type to allow error reporting. Update users.
13204 (linux_disable_btrace): Change return type. Update users.
13205 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
13206 New.
13207 (btrace_error): New.
13208 (btrace_block) <begin>: Comment on BEGIN == 0.
13209 * btrace.c (btrace_compute_ftrace): Start from the end of
13210 the current trace.
13211 (btrace_stitch_trace, btrace_clear_history): New.
13212 (btrace_fetch): Read delta trace, return if replaying.
13213 (btrace_clear): Move clear history code to btrace_clear_history.
13214 (parse_xml_btrace): Throw an error if parsing failed.
13215 * target.h (struct target_ops) <to_read_btrace>: Change parameters
13216 and return type to allow error reporting.
13217 (target_read_btrace): Change parameters and return type to allow
13218 error reporting.
13219 * target.c (target_read_btrace): Update.
13220 * remote.c (remote_read_btrace): Support delta reads. Pass
13221 errors on.
13222 * NEWS: Announce it.
13223
0b722aec
MM
132242014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13225
13226 * record.h (record_btrace_frame_unwind)
13227 (record_btrace_tailcall_frame_unwind): New declarations.
13228 * dwarf2-frame: Include record.h
13229 (dwarf2_frame_cfa): Throw an error for btrace frames.
13230 * record-btrace.c: Include hashtab.h.
13231 (btrace_get_bfun_name): New.
13232 (btrace_call_history): Call btrace_get_bfun_name.
13233 (struct btrace_frame_cache): New.
13234 (bfcache): New.
13235 (bfcache_hash, bfcache_eq, bfcache_new): New.
13236 (btrace_get_frame_function): New.
13237 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
13238 (record_btrace_frame_this_id): Compute own id.
13239 (record_btrace_frame_prev_register): Provide PC, throw_error
13240 for all other registers.
13241 (record_btrace_frame_sniffer): Detect btrace frames.
13242 (record_btrace_tailcall_frame_sniffer): New.
13243 (record_btrace_frame_dealloc_cache): New.
13244 (record_btrace_frame_unwind): Add new functions.
13245 (record_btrace_tailcall_frame_unwind): New.
13246 (_initialize_record_btrace): Allocate cache.
13247 * btrace.c (btrace_clear): Call reinit_frame_cache.
13248 * NEWS: Announce it.
13249
066ce621
MM
132502014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13251
13252 * record-btrace.c (record_btrace_set_replay)
13253 (record_btrace_goto_begin, record_btrace_goto_end)
13254 (record_btrace_goto): New.
13255 (init_record_btrace_ops): Initialize them.
13256 * NEWS: Announce it.
13257
e2887aa3
MM
132582014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13259
13260 * record-btrace.c (record_btrace_find_new_threads)
13261 (record_btrace_thread_alive): New.
13262 (init_record_btrace_ops): Initialize to_find_new_threads and
13263 to_thread_alive.
13264
b2f4cfde
MM
132652014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13266
13267 * record-btrace.c (record_btrace_resume): New.
13268 (record_btrace_wait): New.
13269 (init_record_btrace_ops): Initialize to_wait and to_resume.
13270
633785ff
MM
132712014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13272
13273 * record-btrace.c (record_btrace_xfer_partial)
13274 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
13275 (record_btrace_allow_memory_access): New.
13276 (init_record_btrace_ops): Initialize new methods.
13277 * target.c (raw_memory_xfer_partial): Bail out if target reports
13278 that this memory is not available.
13279
3db08215
MM
132802014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13281
13282 * target.h (target_ops) <to_insert_breakpoint>
13283 <to_remove_breakpoint>: Add target_ops parameter.
13284 (forward_target_insert_breakpoint): New.
13285 (forward_target_remove_breakpoint): New.
13286 (memory_remove_breakpoint, memory_insert_breakpoint):
13287 Add target_ops parameter.
13288 * target.c (target_insert_breakpoint): Split into this and ...
13289 (forward_target_insert_breakpoint): ... this.
13290 (target_remove_breakpoint): Split into this and ...
13291 (forward_target_remove_breakpoint): ... this.
13292 (debug_to_insert_breakpoint): Add target_ops parameter.
13293 Call forward_target_insert_breakpoint.
13294 (debug_to_remove_breakpoint): Add target_ops parameter.
13295 Call forward_target_remove_breakpoint.
13296 (update_current_target): Do not inherit or default to_insert_breakpoint
13297 and to_remove_breakpoint.
13298 * corelow.c (ignore): Add target_ops parameter.
13299 * exec.c (ignore): Add target_ops parameter.
13300 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
13301 Add target_ops parameter.
13302 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
13303 Add target_ops parameter.
13304 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
13305 Add target_ops parameter.
13306 * record-full.c (record_full_beneath_to_insert_breakpoint)
13307 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
13308 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
13309 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
13310 (record_full_core_remove_breakpoint): Add target_ops parameter.
13311 Update users.
13312 (record_full_beneath_to_insert_breakpoint_ops)
13313 (record_full_beneath_to_remove_breakpoint_ops)
13314 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
13315 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
13316 tmp_to_remove_breakpoint_ops,
13317 record_full_beneath_to_insert_breakpoint_ops, and
13318 record_full_beneath_to_remove_breakpoint_ops.
13319 * remote-m32r-sdi.c (m32r_insert_breakpoint)
13320 (m32r_remove_breakpoint): Add target_ops parameter.
13321 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
13322 Add target_ops parameter.
13323 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
13324 Add target_ops parameter.
13325
cecac1ab
MM
133262014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13327 Markus Metzger <markus.t.metzger@intel.com>
13328
13329 * record-btrace.c: Include frame-unwind.h.
13330 (record_btrace_frame_unwind_stop_reason)
13331 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
13332 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
13333 New.
13334 (init_record_btrace_ops): Install it.
13335
824344ca
MM
133362014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13337
13338 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
13339 get_prev_frame_1.
13340
32261e52
MM
133412014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13342
13343 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
13344 earlier.
13345
ea001bdc
MM
133462014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13347
13348 * frame-unwind.c: Include target.h.
13349 (frame_unwind_try_unwinder): New function with code from ...
13350 (frame_unwind_find_by_frame): ... here. New variable
13351 unwinder_from_target, call also target_get_unwinder)
13352 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
13353 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
13354 * target.h (struct target_ops): New fields to_get_unwinder and
13355 to_get_tailcall_unwinder.
13356 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
13357
1f3ef581
MM
133582014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13359
13360 * record-btrace.c (record_btrace_fetch_registers)
13361 (record_btrace_store_registers)
13362 (record_btrace_to_prepare_to_store): New.
13363 (init_record_btrace_ops): Add the above.
13364
f32dbf8c
MM
133652014-01-16 Tom Tromey <tromey@redhat.com>
13366
13367 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
13368 * target.h (struct target_ops) <to_prepare_to_store>: Add
13369 argument.
13370 (target_prepare_to_store): Add argument.
13371 * target.c (debug_to_prepare_to_store): Add argument.
13372 (update_current_target): Update.
13373 * remote.c (remote_prepare_to_store): Add 'self' argument.
13374 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
13375 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
13376 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
13377 * record-full.c (record_full_core_prepare_to_store): Add 'self'
13378 argument.
13379 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
13380 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
13381 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
13382 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
13383 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
13384
07bbe694
MM
133852014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13386
13387 * btrace.h (replay) <replay>: New.
13388 (btrace_is_replaying): New.
13389 * btrace.c (btrace_clear): Free replay iterator.
13390 (btrace_is_replaying): New.
13391 * record-btrace.c (record_btrace_is_replaying): New.
13392 (record_btrace_info): Print insn number if replaying.
13393 (record_btrace_insn_history): Start at replay position.
13394 (record_btrace_call_history): Start at replay position.
13395 (init_record_btrace_ops): Init to_record_is_replaying.
13396
0688d04e
MM
133972014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13398
13399 * record-btrace.c (record_btrace_insn_history_range): Include
13400 end.
13401 (record_btrace_insn_history_from): Adjust range.
13402 (record_btrace_call_history_range): Include
13403 end.
13404 (record_btrace_call_history_from): Adjust range.
13405 * NEWS: Announce changes.
13406
8710b709
MM
134072014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13408
13409 * record.h (enum record_print_flag)
13410 <record_print_indent_calls>: New.
13411 * record.c (get_call_history_modifiers): Recognize /c modifier.
13412 (_initialize_record): Document /c modifier.
13413 * record-btrace.c (btrace_call_history): Add btinfo parameter.
13414 Reorder fields. Optionally indent the function name. Update
13415 all users.
13416 * NEWS: Announce changes.
13417
d0fa7535
MM
134182014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13419
13420 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
13421
5de9129b
MM
134222014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13423
13424 * btrace.c (ftrace_new_function): Start counting at one.
13425 * record-btrace.c (record_btrace_info): Adjust number of calls
13426 and insns.
13427 * NEWS: Announce it.
13428
7acbe133
MM
134292014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13430
13431 * record-btrace.c (btrace_call_history_insn_range): Print
13432 insn range as [begin, end].
13433
23a7fe75
MM
134342014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13435
13436 * btrace.h (struct btrace_func_link): New.
13437 (enum btrace_function_flag): New.
13438 (struct btrace_inst): Rename to ...
13439 (struct btrace_insn): ...this. Update all users.
13440 (struct btrace_func) <ibegin, iend>: Remove.
13441 (struct btrace_func_link): New.
13442 (struct btrace_func): Rename to ...
13443 (struct btrace_function): ...this. Update all users.
13444 (struct btrace_function) <segment, flow, up, insn, insn_offset)
13445 (number, level, flags>: New.
13446 (struct btrace_insn_iterator): Rename to ...
13447 (struct btrace_insn_history): ...this.
13448 Update all users.
13449 (struct btrace_insn_iterator, btrace_call_iterator): New.
13450 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
13451 (struct btrace_target_info) <begin, end, level>
13452 <insn_history, call_history>: New.
13453 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13454 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13455 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13456 (btrace_call_number, btrace_call_begin, btrace_call_end)
13457 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13458 (btrace_find_function_by_number, btrace_set_insn_history)
13459 (btrace_set_call_history): New.
13460 * btrace.c (btrace_init_insn_iterator)
13461 (btrace_init_func_iterator, compute_itrace): Remove.
13462 (ftrace_print_function_name, ftrace_print_filename)
13463 (ftrace_skip_file): Change
13464 parameter to const.
13465 (ftrace_init_func): Remove.
13466 (ftrace_debug): Use new btrace_function fields.
13467 (ftrace_function_switched): Also consider gaining and
13468 losing symbol information).
13469 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
13470 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
13471 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
13472 New.
13473 (ftrace_new_function): Move. Remove debug print.
13474 (ftrace_update_lines, ftrace_update_insns): New.
13475 (ftrace_update_function): Check for call, ret, and jump.
13476 (compute_ftrace): Renamed to ...
13477 (btrace_compute_ftrace): ...this. Rewritten to compute call
13478 stack.
13479 (btrace_fetch, btrace_clear): Updated.
13480 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13481 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13482 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13483 (btrace_call_number, btrace_call_begin, btrace_call_end)
13484 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13485 (btrace_find_function_by_number, btrace_set_insn_history)
13486 (btrace_set_call_history): New.
13487 * record-btrace.c (require_btrace): Use new btrace thread
13488 info fields.
13489 (record_btrace_info, btrace_insn_history)
13490 (record_btrace_insn_history, record_btrace_insn_history_range):
13491 Use new btrace thread info fields and new iterator.
13492 (btrace_func_history_src_line): Rename to ...
13493 (btrace_call_history_src_line): ...this. Use new btrace
13494 thread info fields.
13495 (btrace_func_history): Rename to ...
13496 (btrace_call_history): ...this. Use new btrace thread info
13497 fields and new iterator.
13498 (record_btrace_call_history, record_btrace_call_history_range):
13499 Use new btrace thread info fields and new iterator.
13500
8372a7cb
MM
135012014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13502
13503 * frame.h (frame_id_build_unavailable_stack_special): New.
13504 * frame.c (frame_id_build_unavailable_stack_special): New.
13505
c2170eef
MM
135062014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13507
13508 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
13509 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
13510 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
13511 to gdbarch.
13512 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
13513 (i386_insn_is_jump, i386_jmp_p): New.
13514 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
13515 insn_is_jump to gdbarch.
13516 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
13517 * gdbarch.h: Regenerated.
13518 * gdbarch.c: Regenerated.
13519 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
13520 (default_insn_is_jump): New.
13521 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
13522 (default_insn_is_jump): New.
13523
864089d2
MM
135242014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13525
13526 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
13527 Change to ...
13528 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
13529 (btrace_read_type) <btrace_read_new>: Change to ...
13530 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
13531
ed9edfb5
MM
135322014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13533
13534 * common/linux-btrace.c (linux_read_btrace): Free trace from
13535 previous iteration.
13536
fbcbc3fd
DE
135372014-01-15 Doug Evans <dje@google.com>
13538
13539 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
13540 uint32_t.
13541
3d548a53
TT
135422014-01-15 Tom Tromey <tromey@redhat.com>
13543
13544 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
13545 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
13546 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
13547 (set_objfile_main_name): New function.
13548 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
13549 language_of_main>: New fields.
13550 (set_objfile_main_name): Declare.
13551 * symtab.c (find_main_name): Loop over objfiles to find the main
13552 name and language.
13553 (set_main_name): Now static.
13554 (get_main_info): Add comment.
13555 * symtab.h (set_main_name): Don't declare.
13556
32ac0d11
TT
135572014-01-15 Tom Tromey <tromey@redhat.com>
13558
13559 * symtab.c (main_progspace_key): New global.
13560 (struct main_info): New.
13561 (name_of_main, language_of_main): Remove.
13562 (get_main_info, main_info_cleanup): New function.
13563 (set_main_name, main_name, main_language): Use get_main_info.
13564 (_initialize_symtab): Initialize main_progspace_key.
13565
9e6c82ad
TT
135662014-01-15 Tom Tromey <tromey@redhat.com>
13567
13568 * dbxread.c (process_one_symbol): Update.
13569 * dwarf2read.c (read_partial_die): Update.
13570 * symfile.c (set_initial_language): Call main_language.
13571 * symtab.c (language_of_main): Now static.
13572 (set_main_name): Add 'lang' parameter.
13573 (find_main_name): Update.
13574 (main_language): New function.
13575 (symtab_observer_executable_changed): Update.
13576 * symtab.h (set_main_name): Update.
13577 (language_of_main): Remove.
13578 (main_language): Declare.
13579
6ef55de7
TT
135802014-01-15 Tom Tromey <tromey@redhat.com>
13581
13582 * symfile.c (init_entry_point_info): Use new "initialized" field.
13583 Update.
13584 * objfiles.h (struct entry_point) <initialized>: New field.
13585 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
13586 (struct objfile) <ei>: ...here. Remove.
13587 * objfiles.c (entry_point_address_query): Update.
13588
53eddfa6
TT
135892014-01-15 Tom Tromey <tromey@redhat.com>
13590
13591 * objfiles.c (entry_point_address_query): Relocate entry point
13592 address.
13593 (objfile_relocate1): Do not relocate entry point address.
13594 * objfiles.h (struct entry_info) <entry_point>: Update comment.
13595 <the_bfd_section_index>: New field.
13596 * symfile.c (init_entry_point_info): Find the entry point's
13597 section.
13598
d56e56aa
TT
135992014-01-15 Tom Tromey <tromey@redhat.com>
13600
13601 * solib-frv.c (enable_break): Use entry_point_address_query.
13602
33a97bbe
OJ
136032014-01-15 Omair Javaid <omair.javaid@linaro.org>
13604
13605 * NEWS: Add note on improved process record-replay on
13606 arm*-linux* targets.
13607
c6ec2b30
OJ
136082014-01-15 Omair Javaid <omair.javaid@linaro.org>
13609
13610 * arm-tdep.c (enum arm_record_result): New enum.
13611 (arm_record_unsupported_insn): New function.
13612 (arm_record_coproc_data_proc): Removed.
13613 (thumb2_record_ld_st_multiple): New function.
13614 (thumb2_record_ld_st_dual_ex_tbb): New function.
13615 (thumb2_record_data_proc_sreg_mimm): New function.
13616 (thumb2_record_ps_dest_generic): New function.
13617 (thumb2_record_branch_misc_cntrl): New function.
13618 (thumb2_record_str_single_data): New function.
13619 (thumb2_record_ld_mem_hints): New function.
13620 (thumb2_record_ld_word): New function.
13621 (thumb2_record_lmul_lmla_div): New function.
13622 (thumb2_record_decode_insn_handler): New function.
13623 (decode_insn): Add thumb32 instruction handlers.
13624
97dfe206
OJ
136252014-01-15 Omair Javaid <omair.javaid@linaro.org>
13626
13627 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
13628 (struct arm_linux_record_tdep): Declare.
13629 (arm_canonicalize_syscall): New function.
13630 (arm_all_but_pc_registers_record): New function.
13631 (arm_linux_syscall_record): New function.
13632 (arm_linux_init_abi): Add syscall recording constructs.
13633 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
13634 decoding. (arm_record_coproc_data_proc): Update arm syscall
13635 decoding.
13636 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
13637 <arm_syscall_record>: New field.
13638 * configure.tgt (arm*-*-linux*): Add linux-record.o to
13639 gdb_target_obs.
13640
9904a494
OJ
136412014-01-15 Omair Javaid <omair.javaid@linaro.org>
13642
13643 * arm-tdep.c (thumb_record_misc): Update to use sp as base
13644 register for push instruction recording.
13645
f969241e
OJ
136462014-01-15 Omair Javaid <omair.javaid@linaro.org>
13647
13648 * arm-tdep.c (thumb_record_misc): Update to correct logical
13649 error while recording ldm, ldmia and pop instructions.
13650
bfbbec00
OJ
136512014-01-15 Omair Javaid <omair.javaid@linaro.org>
13652
13653 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
13654
e40adcc9
PA
136552014-01-15 Pedro Alves <palves@redhat.com>
13656
13657 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
13658 (go32_resume, go32_fetch_registers, store_register)
13659 (go32_store_registers, go32_prepare_to_store)
13660 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
13661 (go32_create_inferior, go32_can_run, go32_terminal_init)
13662 (go32_terminal_inferior, go32_terminal_ours): Delete forward
13663 declarations.
13664
b0a16e66
TT
136652014-01-15 Tom Tromey <tromey@redhat.com>
13666
13667 * target.h (async_callback_ftype): New typedef.
13668 (struct target_ops) <to_async>: Use it.
13669
bf7105a4
JB
136702014-01-15 Joel Brobecker <brobecker@adacore.com>
13671
13672 * python/py-value.c (get_field_type): Remove unnecessary curly
13673 braces for single-statement if block.
13674
a8f35c2e
JB
136752014-01-15 Joel Brobecker <brobecker@adacore.com>
13676
13677 * python/py-type.c (convert_field): Add missing empty line
13678 after declarations.
13679
bb4142cf
DE
136802014-01-14 Doug Evans <dje@google.com>
13681
13682 * symfile.h (expand_symtabs_matching): Renamed from
13683 expand_partial_symbol_names. Update prototype.
13684 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
13685 * symfile.c (expand_symtabs_matching): Renamed from
13686 expand_partial_symbol_names. New args file_matcher, kind.
13687 Rename arg fun to symbol_matcher.
13688 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
13689 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
13690 ada_expand_partial_symbol_name.
13691 (ada_make_symbol_completion_list): Update to call
13692 expand_symtabs_matching.
13693 (ada_add_global_exceptions): Call expand_symtabs_matching.
13694 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
13695 call map_symbol_filenames.
13696 * symtab.c (sources_info): Update to call map_symbol_filenames.
13697 (search_symbols): Call expand_symtabs_matching.
13698 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
13699 (default_make_symbol_completion_list_break_on): Update to call
13700 expand_symtabs_matching.
13701 (make_source_files_completion_list): Update to call
13702 map_symbol_filenames.
13703
206f2a57
DE
137042014-01-14 Doug Evans <dje@google.com>
13705
13706 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
13707 (expand_symtabs_symbol_matcher_ftype): New typedef.
13708 (quick_symbol_functions.expand_symtabs_matching): Update to use.
13709 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13710 * symfile.c (expand_partial_symbol_names): Update to use
13711 expand_symtabs_symbol_matcher_ftype.
13712 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
13713 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13714 Arg name_matcher renamed to symbol_matcher.
13715 * psymtab.c (recursively_search_psymtabs): Update to use
13716 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
13717 sym_matcher.
13718 (expand_symtabs_matching_via_partial): Update to use
13719 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13720 Arg name_matcher renamed to symbol_matcher.
13721
540c2971
DE
137222014-01-14 Doug Evans <dje@google.com>
13723
13724 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
13725 (map_partial_symbol_filenames): Ditto.
13726 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
13727 (map_partial_symbol_filenames): Ditto.
13728 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
13729 (map_partial_symbol_filenames): Ditto.
13730 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
13731 (map_partial_symbol_filenames): Ditto.
13732 * symtab.c: Delete #include "psymtab.h".
13733
8213266a
PA
137342014-01-14 Pedro Alves <palves@redhat.com>
13735 Tom Tromey <tromey@redhat.com>
13736
13737 * infrun.c (use_displaced_stepping): Use find_record_target
13738 instead of RECORD_IS_USED.
13739 (adjust_pc_after_break): Use record_full_is_used instead of
13740 RECORD_IS_USED.
13741 * record-btrace.c (record_btrace_open): Call record_preopen
13742 instead of checking RECORD_IS_USED.
13743 * record-full.c (record_full_shortname)
13744 (record_full_core_shortname): New globals.
13745 (record_full_is_used): New function.
13746 (find_full_open): Call record_preopen instead of checking
13747 RECORD_IS_USED.
13748 (init_record_full_ops): Set the target's shortname to
13749 record_full_shortname.
13750 (init_record_full_core_ops): Set the target's shortname to
13751 record_full_core_shortname.
13752 * record-full.h (record_full_is_used): Declare.
13753 * record.c (find_record_target): Make extern.
13754 (record_preopen): New function.
13755 * record.h (RECORD_IS_USED): Delete macro.
13756 (find_record_target, record_preopen): Declare functions.
13757
7ec1862d
YQ
137582014-01-14 Yao Qi <yao@codesourcery.com>
13759
13760 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
13761 'len''s type to ULONGEST.
13762 (core_xfer_shared_libraries_aix): Likewise.
13763 * gdbarch.c, gdbarch.h: Regenerated.
13764 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
13765 Change type of 'len' to ULONGEST.
13766 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13767 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
13768
dea80a27
YQ
137692014-01-14 Yao Qi <yao@codesourcery.com>
13770
13771 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
13772 type of 'len' to ULONGEST.
13773 (linux_xfer_osdata_processgroups): Likewise.
13774 (linux_xfer_osdata_threads): Likewise.
13775 (linux_xfer_osdata_fds): Likewise.
13776 (linux_xfer_osdata_isockets): Likewise.
13777 (linux_xfer_osdata_shm): Likewise.
13778 (linux_xfer_osdata_sem): Likewise.
13779 (linux_xfer_osdata_msg): Likewise.
13780 (linux_common_xfer_osdata): Likewise.
13781 (struct osdata_type) <getter>: Likewise.
13782 * common/linux-osdata.h (linux_common_xfer_osdata): Update
13783 the declaration.
13784
b55e14c7
YQ
137852014-01-14 Yao Qi <yao@codesourcery.com>
13786
13787 * target.h (target_xfer_partial_ftype): Update.
13788 (struct target_ops) <to_xfer_partial>: Change 'len' type to
13789 ULONGEST.
13790 * aix-thread.c (aix_thread_xfer_partial): Change type of
13791 argument 'len' to ULONGEST.
13792 * auxv.c (procfs_xfer_auxv): Likewise.
13793 (ld_so_xfer_auxv): Likewise.
13794 (memory_xfer_auxv): Likewise.
13795 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13796 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13797 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
13798 * corelow.c (core_xfer_partial): Likewise.
13799 * ctf.c (ctf_xfer_partial): Likewise.
13800 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
13801 '%u'.
13802 (darwin_read_dyld_info): Likewise.
13803 (darwin_xfer_partial): Likewise.
13804 * exec.c (section_table_xfer_memory_partial): Likewise.
13805 (exec_xfer_partial): Likewise.
13806 * exec.h (section_table_xfer_memory_partial): Update
13807 declaration.
13808 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
13809 instead of plongest.
13810 (gnu_xfer_partial): Likewise.
13811 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
13812 (ia64_hpux_xfer_solib_got): Likewise.
13813 (ia64_hpux_xfer_partial): Likewise.
13814 * ia64-linux-nat.c (ia64_linux_xfer_partial):
13815 * inf-ptrace.c (inf_ptrace_xfer_partial):
13816 * inf-ttrace.c (inf_ttrace_xfer_partial):
13817 * linux-nat.c (linux_xfer_siginfo): Likewise.
13818 (linux_nat_xfer_partial): Likewise.
13819 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
13820 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
13821 * monitor.c (monitor_xfer_memory): Likewise.
13822 (monitor_xfer_partial): Likewise.
13823 * procfs.c (procfs_xfer_partial): Likewise.
13824 * record-full.c (record_full_xfer_partial): Likewise.
13825 (record_full_core_xfer_partial): Likewise.
13826 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
13827 instead of plongest.
13828 (gdbsim_xfer_partial): Likewise.
13829 * remote.c (remote_xfer_partial): Likewise.
13830 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13831 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
13832 declaration.
13833 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13834 (rs6000_xfer_shared_libraries): Likewise.
13835 * sol-thread.c (sol_thread_xfer_partial): Likewise.
13836 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13837 (sparc_xfer_partial): Likewise.
13838 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13839 (spu_xfer_partial): Likewise.
13840 * spu-multiarch.c (spu_xfer_partial): Likewise.
13841 * target.c (target_read_live_memory): Likewise.
13842 (memory_xfer_live_readonly_partial): Likewise.
13843 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
13844 (target_xfer_partial, default_xfer_partial): Likewise.
13845 (current_xfer_partial): Likewise.
13846 * tracepoint.c (tfile_xfer_partial): Likewise.
13847 * windows-nat.c (windows_xfer_memory): Likewise. Call
13848 pulongest instead of plongest.
13849 (windows_xfer_partial): Likewise.
13850 (windows_xfer_shared_libraries): Likewise.
13851
05804640
YQ
138522014-01-14 Yao Qi <yao@codesourcery.com>
13853
13854 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
13855 target_xfer_partial_ftype.
13856
b5b08fb4
SC
138572014-01-13 Siva Chandra Reddy <sivachandra@google.com>
13858
13859 PR python/15464
13860 PR python/16113
13861 * valops.c (value_struct_elt_bitpos): New function
13862 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
13863 object to 'None' if the field name is an empty string ("").
13864 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
13865 attribute to look for a field when 'name' is 'None'.
13866 (get_field_type): New function
13867
13aaf454
DE
138682014-01-13 Doug Evans <dje@google.com>
13869
13870 PR symtab/16426
13871 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
13872 (try_open_dwop_file): Ditto.
13873 * gdb_bfd.c: #include "vec.h".
13874 (bfdp): New typedef.
13875 (struct gdb_bfd_data): New member included_bfds.
13876 (gdb_bfd_unref): Unref all included bfds.
13877 (gdb_bfd_record_inclusion): New function.
13878 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
13879
c2cec97c
TT
138802014-01-13 Tom Tromey <tromey@redhat.com>
13881
13882 * gdbcore.h (deprecated_core_resize_section_table): Remove.
13883
78e5999d
TT
138842014-01-13 Tom Tromey <tromey@redhat.com>
13885
13886 * defs.h (use_windows): Remove.
13887 * gdb.c (main): Update.
13888 * main.c (captured_main, gdb_main): Update.
13889 * main.h (struct captured_main_args) <use_windows>: Remove.
13890 * top.c (use_windows): Remove.
13891
f2052bbe
TT
138922014-01-13 Tom Tromey <tromey@redhat.com>
13893
13894 * defs.h (deprecated_flush_hook): Remove.
13895
fde4f8ed
JK
138962014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
13897
13898 PR threads/16216
13899 * linux-thread-db.c (try_thread_db_load): Add parameter
13900 check_auto_load_safe. Move here the file_is_auto_load_safe call.
13901 (try_thread_db_load_from_pdir_1): Move it there from here.
13902 (try_thread_db_load_from_sdir): Update caller.
13903 (try_thread_db_load_from_dir): Move it there from here.
13904
bdf61915
PP
139052014-01-13 Patrick Palka <patrick@parcs.ath.cx>
13906
13907 * regformats/regdat.sh: Always rewrite the register file.
13908
f71e1a8d
PA
139092014-01-13 Pedro Alves <palves@redhat.com>
13910
13911 * Makefile.in (CHECK_HEADERS): New variable.
13912 (check-headers:): New rule.
13913
42c85435
TT
139142014-01-13 Tom Tromey <tromey@redhat.com>
13915
13916 * cli/cli-setshow.c (do_set_command): Update.
13917 * defs.h (deprecated_set_hook): Remove.
13918 * top.c (deprecated_set_hook): Remove.
13919
f8de5129
PA
139202014-01-13 Pedro Alves <palves@redhat.com>
13921
13922 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
13923 the tracepoint if the PC is a pseudo-register.
13924
fc270c35
TT
139252014-01-13 Tom Tromey <tromey@redhat.com>
13926
13927 * defs.h (XCALLOC): Remove.
13928 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
13929 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
13930 * dwarf2loc.c (allocate_piece_closure): Likewise.
13931 * elfread.c (elf_symfile_segments): Likewise.
13932 (elf_symfile_segments): Likewise.
13933 * gdbtypes.c (copy_type_recursive): Likewise.
13934 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
13935 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
13936 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
13937 XCALLOC.
13938 * mt-tdep.c (mt_gdbarch_init): Likewise.
13939 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
13940 XCALLOC.
13941 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
13942 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
13943 * registry.c (registry_alloc_data): Likewise.
13944 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
13945 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
13946 * serial.c (serial_fdopen_ops): Likewise.
13947 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
13948 XCALLOC.
13949 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
13950 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
13951 not XCALLOC.
13952
70ba0933
TT
139532014-01-13 Tom Tromey <tromey@redhat.com>
13954
13955 * defs.h (XMALLOC): Remove.
13956 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
13957 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
13958 * cli-out.c (struct ui_out *): Likewise.
13959 * cli/cli-dump.c (add_dump_command): Likewise.
13960 (add_dump_command): Likewise.
13961 * complaints.c (get_complaints): Likewise.
13962 (find_complaint): Likewise.
13963 * dwarf2-frame.c (execute_cfa_program): Likewise.
13964 * dwarf2read.c (abbrev_table_read_table): Likewise.
13965 * gdbarch.sh: Likewise.
13966 * gdbarch.c: Rebuild.
13967 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
13968 * interps.c (interp_new): Likewise.
13969 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
13970 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
13971 * mi/mi-console.c (mi_console_file_new): Likewise.
13972 * mi/mi-interp.c (mi_interpreter_init): Likewise.
13973 * mi/mi-out.c (mi_out_new): Likewise.
13974 * mi/mi-parse.c (mi_parse): Likewise.
13975 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
13976 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
13977 * observer.c (xalloc_observer_list_node): Likewise.
13978 * regcache.c (regcache_xmalloc_1): Likewise.
13979 * reggroups.c (reggroup_new): Likewise.
13980 (_initialize_reggroup): Likewise.
13981 * registry.c (register_data_with_cleanup): Likewise.
13982 * remote.c (remote_notif_stop_alloc_reply): Likewise.
13983 * ser-base.c (serial_ttystate): Likewise.
13984 * ser-mingw.c (make_pipe_state): Likewise.
13985 * ser-pipe.c (pipe_open): Likewise.
13986 * serial.c (serial_open): Likewise.
13987 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
13988 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
13989 (tui_alloc_win_info): Likewise.
13990 (tui_add_content_elements): Likewise.
13991 * tui/tui-file.c (tui_file_new): Likewise.
13992 * tui/tui-out.c (tui_out_new): Likewise.
13993 * ui-file.c (mem_file_new): Likewise.
13994 * ui-out.c (push_level): Likewise.
13995 (make_cleanup_ui_out_end): Likewise.
13996 (append_header_to_list): Likewise.
13997 (ui_out_new): Likewise.
13998 * user-regs.c (user_reg_add_builtin): Likewise.
13999
41bf6aca
TT
140002014-01-13 Tom Tromey <tromey@redhat.com>
14001
14002 * defs.h (XZALLOC): Remove.
14003 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
14004 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
14005 (get_ada_tasks_inferior_data): Likewise.
14006 * auto-load.c (get_auto_load_pspace_data): Likewise.
14007 * auxv.c (get_auxv_inferior_data): Likewise.
14008 * bfd-target.c (target_bfd_reopen): Likewise.
14009 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
14010 (deprecated_insert_raw_breakpoint): Likewise.
14011 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
14012 * corelow.c (core_open): Likewise.
14013 * darwin-nat.c (darwin_check_new_threads): Likewise.
14014 (darwin_attach_pid): Likewise.
14015 * dummy-frame.c (dummy_frame_push): Likewise.
14016 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
14017 * dwarf2loc.c (allocate_piece_closure): Likewise.
14018 * elfread.c (elf_symfile_segments): Likewise.
14019 * eval.c (ptrmath_type_p): Likewise.
14020 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
14021 * gdbtypes.c (alloc_type_arch): Likewise.
14022 (alloc_type_instance): Likewise.
14023 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
14024 * inf-child.c (inf_child_can_use_agent): Likewise.
14025 * inflow.c (get_inflow_inferior_data): Likewise.
14026 * infrun.c (save_infcall_suspend_state): Likewise.
14027 * jit.c (jit_reader_load): Likewise.
14028 (get_jit_objfile_data): Likewise.
14029 (get_jit_program_space_data): Likewise.
14030 (jit_object_open_impl): Likewise.
14031 (jit_symtab_open_impl): Likewise.
14032 (jit_block_open_impl): Likewise.
14033 (jit_frame_sniffer): Likewise.
14034 * linux-fork.c (add_fork): Likewise.
14035 * maint.c (make_command_stats_cleanup): Likewise.
14036 * objfiles.c (get_objfile_pspace_data): Likewise.
14037 * opencl-lang.c (struct lval_closure): Likewise.
14038 * osdata.c (osdata_start_osdata): Likewise.
14039 * progspace.c (new_address_space): Likewise.
14040 (add_program_space): Likewise.
14041 * remote-sim.c (get_sim_inferior_data): Likewise.
14042 * sh-tdep.c (sh_gdbarch_init): Likewise.
14043 * skip.c (Ignore): Likewise.
14044 (skip_delete_command): Likewise.
14045 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
14046 (library_list_start_library): Likewise.
14047 (solib_aix_current_sos): Likewise.
14048 * solib-darwin.c (get_darwin_info): Likewise.
14049 (darwin_current_sos): Likewise.
14050 * solib-dsbt.c (get_dsbt_info): Likewise.
14051 * solib-ia64-hpux.c (new_so_list): Likewise.
14052 (ia64_hpux_get_solib_linkage_addr): Likewise.
14053 * solib-spu.c (append_ocl_sos): Likewise.
14054 (spu_current_sos): Likewise.
14055 * solib-svr4.c (get_svr4_info): Likewise.
14056 (svr4_keep_data_in_core): Likewise.
14057 (library_list_start_library): Likewise.
14058 (svr4_default_sos): Likewise.
14059 (svr4_read_so_list): Likewise.
14060 * solib-target.c (library_list_start_library): Likewise.
14061 (solib_target_current_sos): Likewise.
14062 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
14063 * symfile-debug.c (install_symfile_debug_logging): Likewise.
14064 * symfile.c (default_symfile_segments): Likewise.
14065 * target-descriptions.c (tdesc_data_init): Likewise.
14066 (tdesc_create_reg): Likewise.
14067 (struct tdesc_type *): Likewise.
14068 (tdesc_create_vector): Likewise.
14069 (tdesc_set_struct_size): Likewise.
14070 (struct tdesc_type *): Likewise.
14071 (tdesc_free_feature): Likewise.
14072 (tdesc_create_feature): Likewise.
14073 * windows-nat.c (windows_add_thread): Likewise.
14074 (windows_make_so): Likewise.
14075 * xml-support.c (gdb_xml_body_text): Likewise.
14076 (gdb_xml_create_parser_and_cleanup): Likewise.
14077 (xml_process_xincludes): Likewise.
14078 * xml-syscall.c (allocate_syscalls_info): Likewise.
14079 (syscall_create_syscall_desc): Likewise.
14080
5acfdbae
SDJ
140812014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
14082
14083 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
14084 function, with code from i386_stap_parse_special_token.
14085 (i386_stap_parse_special_token_three_arg_disp): Likewise.
14086 (i386_stap_parse_special_token): Move code to the two functions
14087 above; simplify it.
14088
0000e5cc
PA
140892014-01-09 Pedro Alves <palves@redhat.com>
14090 Hui Zhu <hui@codesourcery.com>
14091
14092 PR gdb/16101
14093 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
14094 bp_err_string. Don't mark the location shlib_disabled if the
14095 error thrown wasn't a generic or memory error. Catch errors
14096 thrown while inserting breakpoints in overlayed code. Output
14097 error message of software breakpoints.
14098 * remote.c (remote_insert_breakpoint): If this breakpoint has
14099 target-side commands but this stub doesn't support Z0 packets,
14100 throw NOT_SUPPORTED_ERROR error.
14101 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
14102 * target.h (target_insert_breakpoint): Extend comment.
14103 (target_insert_hw_breakpoint): Add comment.
14104
b7ea362b
PA
141052014-01-08 Pedro Alves <palves@redhat.com>
14106
14107 * remote.c (remote_add_thread): Add threads silently if starting
14108 up.
14109 (remote_notice_new_inferior): If in all-stop, and starting up,
14110 don't call notice_new_inferior.
14111 (get_current_thread): New function, factored out from ...
14112 (add_current_inferior_and_thread): ... this. Adjust.
14113 (remote_start_remote) <all-stop>: Fetch the thread list. If we
14114 found any thread, then select the remote's current thread as GDB's
14115 current thread too.
14116
b7bba001
JB
141172014-01-08 Joel Brobecker <brobecker@adacore.com>
14118
14119 * NEWS: Create a new section for the next release branch.
14120 Rename the section of the current branch, now that it has
14121 been cut.
14122
16dfbded
JB
141232014-01-08 Joel Brobecker <brobecker@adacore.com>
14124
14125 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
14126 * version.in: Bump version to 7.7.50.DATE-cvs.
14127
22c90ac1
YQ
141282014-01-08 Yao Qi <yao@codesourcery.com>
14129
14130 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
14131 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
14132 (spu_xfer_partial): Cast 'buf' to 'const char *'.
14133
d64ad97c
YQ
141342014-01-08 Yao Qi <yao@codesourcery.com>
14135
14136 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
14137 return value of bfd_get_filename to symbol_file_add_from_bfd.
14138
f93ba80c
PM
141392014-01-08 Pierre Muller <muller@sourceware.org>
14140
14141 Fix PR16201.
14142 * coff-pe-read.c (struct read_pe_section_data): Add index field.
14143 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
14144 to prim_record_mininal_symbol_and_info.
14145 (add_pe_forwarded_sym): Use known section number of forwarded symbol
14146 in call to prim_record_minimal_symbol_and_info.
14147 (read_pe_exported_syms): Set index field of section_data.
14148
a4d9ba85
AP
141492014-01-07 Andrew Pinski <apinski@cavium.com>
14150
14151 * features/aarch64-core.xml (cpsr): Change to be 64bit.
14152 * features/aarch64.c: Regenerate.
14153
1b67eb02
AS
141542014-01-07 Andreas Schwab <schwab@linux-m68k.org>
14155
14156 * target.c (return_null): Define.
14157 (update_current_target): Use it instead of return_zero for
14158 functions that return a pointer.
14159
5e3f4fab
EBM
141602014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
14161
14162 * source.c (add_path): Fix check for duplicated paths in the previously
14163 included paths.
14164
e2616788
HK
141652014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
14166
14167 * ada-lang.c: Remove duplicated include statements.
14168 * alphabsd-nat.c: Ditto.
14169 * amd64-darwin-tdep.c: Ditto.
14170 * amd64fbsd-nat.c: Ditto.
14171 * auto-load.c: Ditto.
14172 * ax-gdb.c: Ditto.
14173 * breakpoint.c: Ditto.
14174 * dbxread.c: Ditto.
14175 * fork-child.c: Ditto.
14176 * gdb_usleep.c: Ditto.
14177 * i386-darwin-tdep.c: Ditto.
14178 * i386fbsd-nat.c: Ditto.
14179 * infcmd.c: Ditto.
14180 * inferior.c: Ditto.
14181 * jv-lang.c: Ditto.
14182 * linux-nat.c: Ditto.
14183 * linux-tdep.c: Ditto.
14184 * m68kbsd-nat.c: Ditto.
14185 * m68klinux-nat.c: Ditto.
14186 * microblaze-tdep.c: Ditto.
14187 * mips-linux-tdep.c: Ditto.
14188 * mn10300-tdep.c: Ditto.
14189 * nto-tdep.c: Ditto.
14190 * opencl-lang.c: Ditto.
14191 * osdata.c: Ditto.
14192 * printcmd.c: Ditto.
14193 * regcache.c: Ditto.
14194 * remote-m32r-sdi.c: Ditto.
14195 * remote.c: Ditto.
14196 * symfile.c: Ditto.
14197 * symtab.c: Ditto.
14198 * tilegx-linux-nat.c: Ditto.
14199 * tilegx-tdep.c: Ditto.
14200 * tracepoint.c: Ditto.
14201 * valops.c: Ditto.
14202 * vaxbsd-nat.c: Ditto.
14203 * windows-nat.c: Ditto.
14204 * xtensa-tdep.c: Ditto.
14205
bd1f7788
YQ
142062014-01-07 Yao Qi <yao@codesourcery.com>
14207
14208 * spu-linux-nat.c (_initialize_spu_nat): Declare.
14209
79301218
JB
142102014-01-07 Yao Qi <yao@codesourcery.com>
14211 Joel Brobecker <brobecker@adacore.com>
14212
14213 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
14214 (pdc_write_regs): Likewise.
14215 (fetch_regs_kernel_thread): Likewise.
14216 (store_regs_kernel_thread): Likewise.
14217
142182014-01-07 Joel Brobecker <brobecker@adacore.com>
14219
14220 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
14221 tagged type objects to their actual type.
14222
8e355c5d
JB
142232014-01-07 Joel Brobecker <brobecker@adacore.com>
14224
14225 * ada-valprint.c (print_field_values): Add "language" parameter.
14226 Update calls to print_field_values and print_variant_part.
14227 Pass new parameter "language" in call to val_print instead
14228 of "current_language". Replace call to ada_val_print by call
14229 to val_print.
14230 (print_variant_part): Add "language" parameter.
14231 (ada_val_print_struct_union): Update call to print_field_values.
14232
4fbf5aa5
JB
142332014-01-07 Joel Brobecker <brobecker@adacore.com>
14234
14235 * ada-valprint.c (ui_memcpy): Delete.
14236 (ada_print_floating): Update documentation. Add empty line
14237 between between function documentation and implementation.
14238 Delete variable "buffer". Use ui_file_xstrdup in place of
14239 ui_file_put. Minor adjustments following this change.
14240
71855601
JB
142412014-01-07 Joel Brobecker <brobecker@adacore.com>
14242
14243 * ada-valprint.c (ada_val_print_string): New function,
14244 extracted from ada_val_print_array.
14245 (ada_val_print_array): Replace extracted code by call
14246 to ada_val_print_string followed by a return. Move
14247 "else" branch to the function's top block.
14248
4eb27a30
JB
142492014-01-07 Joel Brobecker <brobecker@adacore.com>
14250
14251 * ada-valprint.c (ada_val_print_array): Move implementation
14252 down. Rename parameter "offset" and "val" into "offset_aligned"
14253 and "original_value" respectively. Add parameter "offset".
14254
34b27950
JB
142552014-01-07 Joel Brobecker <brobecker@adacore.com>
14256
14257 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
14258 re-organizing the code. Change the "???" message printed
14259 when target type is a TYPE_CODE_UNDEF into
14260 "<ref to undefined type>".
14261
079e4591
JB
142622014-01-07 Joel Brobecker <brobecker@adacore.com>
14263
14264 * ada-valprint.c (print_record): Delete, implementation inlined...
14265 (ada_val_print_struct_union): ... here. Remove call to
14266 ada_check_typedef in inlined implementation.
14267
8004dfd1
JB
142682014-01-07 Joel Brobecker <brobecker@adacore.com>
14269
14270 * ada-valprint.c (ada_val_print_gnat_array): New function,
14271 extracted from ada_val_print_1;
14272 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
14273 (ada_val_print_flt, ada_val_print_struct_union)
14274 (ada_val_print_ref): Likewise.
14275 (ada_val_print_1): Delete variables i and elttype.
14276 Replace extracted-out code by call to corresponding
14277 new functions.
14278
760a2db0
JB
142792014-01-07 Joel Brobecker <brobecker@adacore.com>
14280
14281 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
14282
3a92c861
JB
142832014-01-07 Joel Brobecker <brobecker@adacore.com>
14284
14285 * ada-valprint.c (ada_val_print_1): Replace calls to
14286 ada_val_print_1 by calls to val_print.
14287
cd1630f9
JB
142882014-01-07 Joel Brobecker <brobecker@adacore.com>
14289
14290 * ada-valprint.c (ada_val_print_1): Add parameter "language".
14291 Update calls to self accordingly. Replace calls to c_val_print
14292 by calls to val_print.
14293
bdf779a0
JB
142942014-01-07 Joel Brobecker <brobecker@adacore.com>
14295
14296 * ada-valprint.c (print_record): Delete declaration.
14297 (adjust_type_signedness, ada_val_print_1): Likewise.
14298 (ada_val_print): Move function implementation down.
14299 (print_variant_part, print_field_values, print_record):
14300 Move function implementation up.
14301
c0d48811
JB
143022014-01-07 Joel Brobecker <brobecker@adacore.com>
14303
14304 * python/py-type.c (typy_get_name): New function.
14305 (type_object_getset): Add entry for attribute "name".
14306 * NEWS: Add entry mentioning this new attribute.
14307
c26e9cbb
YQ
143082014-01-07 Yao Qi <yao@codesourcery.com>
14309
14310 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
14311 statement.
14312
0cc6f43d
YQ
143132014-01-07 Yao Qi <yao@codesourcery.com>
14314
14315 * gnu-nat.c (info_port_rights): Add qualifier const to
14316 argument args.
14317
eec03155
YQ
143182014-01-07 Yao Qi <yao@codesourcery.com>
14319
14320 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
14321
f04a82ef
YQ
143222014-01-07 Yao Qi <yao@codesourcery.com>
14323
14324 * gnu-nat.c (make_inf) Update declaration.
14325 (make_inf): Make it static.
14326 (inf_set_traced): Likewise.
14327 (inf_port_to_thread, inf_task_died_status): Likewise.
14328
d57dda0a
YQ
143292014-01-07 Yao Qi <yao@codesourcery.com>
14330
14331 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
14332
3aa8c969
YQ
143332014-01-07 Yao Qi <yao@codesourcery.com>
14334
14335 * gnu-nat.c (_initialize_gnu_nat): Declare.
14336
94123b4f
YQ
143372014-01-07 Yao Qi <yao@codesourcery.com>
14338
14339 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
14340 'enum bfd_endian'.
14341 (struct gdbarch_info) <byte_order>: Change type to
14342 'enum bfd_endian'.
14343 <byte_order_for_code>: Likewise.
14344 * gdbarch.c, gdbarch.h: Regenerated.
14345
dc81d70a
TT
143462014-01-06 Sasha Smundak <asmundak@google.com>
14347
14348 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
14349
cc2f3c35
TT
143502014-01-06 Tom Tromey <tromey@redhat.com>
14351
14352 * doublest.c (convert_doublest_to_floatformat): Use const, not
14353 CONST.
14354 * somread.c (som_symtab_read): Likewise.
14355
adcf2eed
HZ
143562014-01-07 Hui Zhu <hui@codesourcery.com>
14357
14358 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
14359 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
14360 (gdb_bfd_fopen): Ditto.
14361 (gdb_bfd_openr): Ditto.
14362 (gdb_bfd_openw): Ditto.
14363 (gdb_bfd_openr_iovec): Ditto.
14364 (gdb_bfd_fdopenr): Ditto.
14365 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
14366 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
14367 with xstrdup.
14368 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
14369 with xstrdup.
14370 * symfile-mem.c (symbol_file_add_from_memory): Removed
14371 gdb_bfd_stash_filename.
14372
50722198
DE
143732014-01-03 Doug Evans <dje@google.com>
14374
14375 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
14376 output.
14377
2fa4b862
JB
143782014-01-01 Joel Brobecker <brobecker@adacore.com>
14379
14380 Update year range in copyright notice of all files.
14381
28498c42
JB
143822014-01-01 Joel Brobecker <brobecker@adacore.com>
14383
14384 * top.c (print_gdb_version): Set copyright year to 2014.
14385
7b6e1046
JB
143862014-01-01 Joel Brobecker <brobecker@adacore.com>
14387
14388 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
14389
df96af55 14390For older changes see ChangeLog-2013.
c906108c
SS
14391\f
14392Local Variables:
14393mode: change-log
14394left-margin: 8
14395fill-column: 74
14396version-control: never
57da7796 14397coding: utf-8
c906108c 14398End:
This page took 2.301325 seconds and 4 git commands to generate.