daily update
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
f88cb4b6
DE
12014-10-26 Doug Evans <xdje42@gmail.com>
2
3 * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
4 parameter "kind" to "block_index".
5 * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
6 "block_index".
7 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
8
a023a30f
DE
92014-10-26 Doug Evans <xdje42@gmail.com>
10
11 * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
12
4c35218e
DE
132014-10-26 Doug Evans <xdje42@gmail.com>
14
15 * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
16 obstack_alloc.
17
f08e8df3
DE
182014-10-26 Doug Evans <xdje42@gmail.com>
19
20 * parser-defs.h (block_found): Move decl from here ...
21 * symtab.h (block_found): ... to here.
22
cf901d3b
DE
232014-10-26 Doug Evans <xdje42@gmail.com>
24
25 * symtab.h (struct field_of_this_result): Fix typo in comment.
26 (lookup_symbol_in_language): Move function comment here.
27 (lookup_symbol): Improve function comment.
28 (basic_lookup_symbol_nonlocal): Ditto.
29 (lookup_symbol_static, lookup_symbol_global): Ditto.
30 (lookup_symbol_aux_block): Ditto.
31 (lookup_language_this): Add function comment.
32 (lookup_static_symbol_aux): Explicitly mark as extern. Improve
33 function comment.
34 (lookup_block_symbol): Improve function comment.
35 (lookup_struct): Fix capitalization in function comment.
36 (lookup_transparent_type): Add function comment.
37 (lookup_global_symbol_from_objfile): Explicitly mark as extern.
38 Improve function comment.
39 (lookup_objfile_from_block): Add function comment.
40 * symtab.c (lookup_symbol_in_language): Update function comment.
41 (lookup_symbol, lookup_language_this): Ditto.
42 (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
43 (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
44 (basic_lookup_symbol_nonlocal): Ditto.
45 (lookup_symbol_static, lookup_symbol_global): Ditto.
46 (lookup_transparent_type, lookup_block_symbol): Ditto.
47
ff6c39cf
DE
482014-10-25 Doug Evans <xdje42@gmail.com>
49
50 * symtab.c (types_info): Delete forward decl.
51 (functions_info, variables_info, sources_info): Ditto.
52 (_initialize_symtab): Rewrite forward decl to use
53 initialize_file_ftype.
54
ec201f0c
DE
552014-10-25 Doug Evans <xdje42@gmail.com>
56
57 * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
58
ca040673
DE
592014-10-25 Doug Evans <xdje42@gmail.com>
60
61 * dwarf2read.c (process_structure_scope): Remove second (nested) copy
62 of local var child_die.
63
6f259a23
DB
642014-10-24 Don Breazeal <donb@codesourcery.com>
65
66 * infrun.c (follow_fork_inferior): Update fork message printing
67 to use target_terminal_ours_for_output instead of
68 target_terminal_ours, to use _() for all format strings, to print
69 "vfork" instead of "fork" for vforks, and to add a detach message.
70 (handle_vfork_child_exec_or_exit): Update message printing to use
71 target_terminal_ours_for_output instead of target_terminal_ours, to
72 use _() for all format strings, and to fix some formatting.
73
09dd9a69
PA
742014-10-24 Pedro Alves <palves@redhat.com>
75
76 * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
77 * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
78 * config/vax/vax.mh: Delete.
79 * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
80 obsolete configurations section.
81 * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
82 * vax-nat.c: Delete file.
83
5ab806de
PA
842014-10-24 Pedro Alves <palves@redhat.com>
85
86 * NEWS (Removed targets): Add OS/arch column.
87
3433cfa5
SC
882014-10-24 Siva Chandra Reddy <sivachandra@google.com>
89
90 * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
91 on the arg type of a constructor only if it is of reference type.
92
96ba4233
SL
932014-10-23 Sandra Loosemore <sandra@codesourcery.com>
94
95 * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
96 accessors and constants from nios2 opcodes update.
97 (nios2_get_next_pc): Likewise.
98
28153fd3
DE
992014-10-19 Doug Evans <xdje42@gmail.com>
100
101 * gdbthread.h (set_running): Fix comment.
102 (set_executing, finish_thread_state): Fix comment.
103
fc9b8e47
DE
1042014-10-18 Doug Evans <xdje42@gmail.com>
105
106 * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
107
4ffbba72
DE
1082014-10-17 Doug Evans <dje@google.com>
109
110 * NEWS: Mention new event gdb.clear_objfiles.
111 * python/py-event.h (emit_clear_objfiles_event): Clear
112 * python/py-events.h (events_object): New member clear_objfiles.
113 * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
114 event.
115 * python/py-inferior.c (python_new_objfile): If objfile is NULL,
116 emit clear_objfiles event.
117 * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
118 function.
119 (emit_clear_objfiles_event): New function.
120 (clear_objfiles): New event.
121 * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
122 Declare.
123 * python/python.c (_initialize_python): Call
124 gdbpy_initialize_clear_objfiles_event.
125
d096d8c1
DE
1262014-10-17 Doug Evans <dje@google.com>
127
128 * NEWS: Mention new gdb.Objfile.progspace attribute.
129 * python/py-objfile.c (objfpy_get_progspace): New function.
130 (objfile_getset): New entry for "progspace".
131
6c4486e6
PA
1322014-10-17 Pedro Alves <palves@redhat.com>
133
134 PR gdb/17471
135 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
136 returns a copy of the input.
137 (run_command_1, continue_command, step_1, jump_command)
138 (signal_command, until_command, advance_command, finish_command)
139 (attach_command): Adjust and install a cleanup to free the
140 stripped args.
141
0ff33695
PA
1422014-10-17 Pedro Alves <palves@redhat.com>
143
144 PR gdb/17300
145 * infcmd.c (continue_1): If continuing all threads in the
146 foreground, make sure the inferior's terminal settings are put in
147 effect.
148
6fdebc3d
PA
1492014-10-17 Pedro Alves <palves@redhat.com>
150
151 PR gdb/17472
152 * annotate.c (annotate_breakpoints_invalid): Use
153 target_terminal_our_for_output instead of target_terminal_ours.
154 Give back the terminal to the target.
155 (annotate_frames_invalid): Likewise.
156
5842f62a
PA
1572014-10-17 Pedro Alves <palves@redhat.com>
158
159 * target.c (enum terminal_state): New enum.
160 (terminal_state): New global.
161 (target_terminal_init): New function.
162 (target_terminal_inferior): Skip if inferior already owns the
163 terminal.
164 (target_terminal_ours, target_terminal_ours_for_output): New
165 functions.
166 * target.h (target_terminal_init): Convert to function prototype.
167 (target_terminal_ours_for_output): Convert to function prototype
168 and tweak comment.
169 (target_terminal_ours): Convert to function prototype and tweak
170 comment.
171 * windows-nat.c (do_initial_windows_stuff): Call
172 target_terminal_init instead of child_terminal_init_with_pgrp.
173
32a8097b
PA
1742014-10-17 Pedro Alves <palves@redhat.com>
175
176 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
177 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
178 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
179 solib-osf.c.
180 * NEWS: Mention that support for alpha*-*-osf* has been removed.
181 * ada-lang.h [__alpha__ && __osf__]
182 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
183 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
184 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
185 GDB_OSABI_OSF1.
186 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
187 files.
188 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
189 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
190 * configure: Regenerate.
191 * configure.ac: Remove references to osf.
192 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
193 section. Remove all other references to osf.
194 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
195 Remove all other references to osf.
196 * dec-thread.c: Delete file.
197 * defs.h (GDB_OSABI_OSF1): Delete.
198 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
199 defined.
200 * osabi.c (gdb_osabi_names): Delete "OSF/1".
201 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
202 Delete code.
203 (unconditionally_kill_inferior)
204 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
205 * solib-osf.c: Delete file.
206
80134cf5
PA
2072014-10-17 Pedro Alves <palves@redhat.com>
208
209 * remote.c (clear_threads_listing_context): Move higher up, out of
210 the HAVE_LIBEXPAT guard.
211
89c7137f
TG
2122014-10-16 Tristan Gingold <gingold@adacore.com>
213
214 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
215 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
216 on amd64.
217
44ee4a52
PA
2182014-10-15 Pedro Alves <palves@redhat.com>
219
220 * dec-thread.c (dec_thread_count_gdb_threads)
221 (dec_thread_add_gdb_thread): Delete.
222 (dec_thread_update_thread_list): Delete.
223 (dec_thread_find_new_threads): Rename to ...
224 (dec_thread_update_thread_list): ... this. Delete GDB-size
225 threads that are no longer found in dec_thread_list.
226 (resync_thread_list): Delete.
227 (dec_thread_wait): Call dec_thread_update_thread_list instead of
228 resync_thread_list.
229
ab970af1
PA
2302014-10-15 Pedro Alves <palves@redhat.com>
231
232 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
233 * remote.c (remote_update_thread_list): Skip calling prune_threads
234 if any thread listing method is supported, and instead walk over
235 the set of remote threads listed, deleting those that are not
236 found in GDB's thread list.
237
e8032dde
PA
2382014-10-15 Pedro Alves <palves@redhat.com>
239
240 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
241 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
242 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
243 (bsd_uthread_target): Adjust.
244 * corelow.c (core_open): Adjust.
245 * dec-thread.c (dec_thread_find_new_threads): Update comment.
246 (dec_thread_update_thread_list): New function.
247 (init_dec_thread_ops): Adjust.
248 * gdbthread.h (prune_threads): New declaration.
249 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
250 (thread_db_update_thread_list): ... this. Call prune_threads.
251 (init_thread_db_ops): Adjust.
252 * nto-procfs.c (procfs_find_new_threads): Rename to ...
253 (procfs_update_thread_list): ... this. Call prune_threads.
254 (procfs_attach, procfs_create_inferior, init_procfs_targets):
255 Adjust.
256 * obsd-nat.c (obsd_find_new_threads): Rename to ...
257 (obsd_update_thread_list): ... this. Call prune_threads.
258 (obsd_add_target): Adjust.
259 * procfs.c (procfs_target): Adjust.
260 (procfs_notice_thread): Update comment.
261 (procfs_find_new_threads): Rename to ...
262 (procfs_update_thread_list): ... this. Call prune_threads.
263 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
264 comment.
265 (ravenscar_wait): Adjust.
266 (ravenscar_find_new_threads): Rename to ...
267 (ravenscar_update_thread_list): ... this. Call prune_threads.
268 (init_ravenscar_thread_ops): Adjust.
269 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
270 (record_btrace_update_thread_list): ... this. Adjust comment.
271 (init_record_btrace_ops): Adjust.
272 * remote.c (remote_threads_info): Rename to ...
273 (remote_update_thread_list): ... this. Call prune_threads.
274 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
275 Adjust.
276 * sol-thread.c (check_for_thread_db): Adjust.
277 (sol_find_new_threads_callback): Rename to ...
278 (sol_update_thread_list_callback): ... this.
279 (sol_find_new_threads): Rename to ...
280 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
281 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
282 * target-delegates.c: Regenerate.
283 * target.c (target_find_new_threads): Rename to ...
284 (target_update_thread_list): ... this.
285 * target.h (struct target_ops): Rename to_find_new_threads field
286 to to_update_thread_list.
287 (target_find_new_threads): Rename to ...
288 (target_update_thread_list): ... this.
289 * thread.c (prune_threads): Make extern.
290 (update_thread_list): Adjust.
291
6dc54d91
PA
2922014-10-15 Pedro Alves <palves@redhat.com>
293
294 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
295 Add describing comment. Return -1 if the qL packet is not
296 supported.
297 (struct thread_item, thread_item_t): Move higher up in
298 the file. Add comments.
299 (struct threads_parsing_context): Move higher up in
300 the file, add comments, and remote to ...
301 (struct threads_listing_context): ... this.
302 (remote_newthread_step): Don't add the thread to GDB's thread
303 database here. Instead push it to the thread_listing_context
304 list.
305 (remote_find_new_threads): Rename to ...
306 (remote_get_threads_with_ql): ... this. Add target_ops and
307 targets_listing_context parameters. Pass down context.
308 (start_thread): Adjust.
309 (clear_threads_parsing_context): Rename to ...
310 (clear_threads_listing_context): ... this.
311 (remote_get_threads_with_qxfer): New, with parts salvaged from old
312 remote_threads_info.
313 (remote_get_threads_with_qthreadinfo): Ditto.
314 (remote_threads_info): Reimplement.
315
36728e82
PA
3162014-10-15 Pedro Alves <palves@redhat.com>
317
318 * infrun.c (resume): Don't force displaced-stepping for all
319 single-steps on software single-stepping archs.
320
34b7e8a6
PA
3212014-10-15 Pedro Alves <palves@redhat.com>
322
323 * breakpoint.c (single_step_breakpoints): Delete global.
324 (insert_single_step_breakpoint): Adjust to store the breakpoint
325 pointer in the current thread.
326 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
327 (cancel_single_step_breakpoints): Delete functions.
328 (breakpoint_has_location_inserted_here): Make extern.
329 (single_step_breakpoint_inserted_here_p): Adjust to walk the
330 breakpoint list.
331 * breakpoint.h (breakpoint_has_location_inserted_here): New
332 declaration.
333 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
334 (cancel_single_step_breakpoints): Remove declarations.
335 * gdbthread.h (struct thread_control_state)
336 <single_step_breakpoints>: New field.
337 (delete_single_step_breakpoints)
338 (thread_has_single_step_breakpoints_set)
339 (thread_has_single_step_breakpoint_here): New declarations.
340 * infrun.c (follow_exec): Also clear the single-step breakpoints.
341 (singlestep_breakpoints_inserted_p, singlestep_ptid)
342 (singlestep_pc): Delete globals.
343 (infrun_thread_ptid_changed): Remove references to removed
344 globals.
345 (resume_cleanups): Delete the current thread's single-step
346 breakpoints.
347 (maybe_software_singlestep): Remove references to removed globals.
348 (resume): Adjust to use thread_has_single_step_breakpoints_set and
349 delete_single_step_breakpoints.
350 (init_wait_for_inferior): Remove references to removed globals.
351 (delete_thread_infrun_breakpoints): Delete the thread's
352 single-step breakpoints too.
353 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
354 single-step breakpoints here.
355 (delete_stopped_threads_single_step_breakpoints): New function.
356 (adjust_pc_after_break): Adjust to use
357 thread_has_single_step_breakpoints_set.
358 (handle_inferior_event): Remove references to removed globals.
359 Use delete_stopped_threads_single_step_breakpoints.
360 (handle_signal_stop): Adjust to per-thread single-step
361 breakpoints. Swap test order to do cheaper tests first.
362 (switch_back_to_stepped_thread): Extend debug output. Remove
363 references to removed globals.
364 * record-full.c (record_full_wait_1): Adjust to per-thread
365 single-step breakpoints.
366 * thread.c (delete_single_step_breakpoints)
367 (thread_has_single_step_breakpoints_set)
368 (thread_has_single_step_breakpoint_here): New functions.
369 (clear_thread_inferior_resources): Also delete the thread's
370 single-step breakpoints.
371
5b834a0a
PA
3722014-10-15 Pedro Alves <palves@redhat.com>
373
374 * thread.c (delete_thread_breakpoint): New function.
375 (delete_step_resume_breakpoint)
376 (delete_exception_resume_breakpoint): Use it.
377 (delete_at_next_stop): New function.
378 (clear_thread_inferior_resources): Use delete_at_next_stop.
379
a1fd2fa5
PA
3802014-10-15 Pedro Alves <palves@redhat.com>
381
382 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
383 (breakpoint_inserted_here_p): ... here. Remove special case for
384 software single-step breakpoints.
385 (find_non_raw_software_breakpoint_inserted_here): Inline ...
386 (software_breakpoint_inserted_here_p): ... here. Remove special
387 case for software single-step breakpoints.
388 (bp_target_info_copy_insertion_state)
389 (deprecated_insert_raw_breakpoint)
390 (deprecated_remove_raw_breakpoint): Delete functions.
391 * breakpoint.h (deprecated_insert_raw_breakpoint)
392 (deprecated_remove_raw_breakpoint): Remove declarations.
393
7c16b83e
PA
3942014-10-15 Pedro Alves <palves@redhat.com>
395
396 PR breakpoints/9649
397 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
398 Delete array globals.
399 (single_step_breakpoints): New global.
400 (breakpoint_xfer_memory): Remove special handling for single-step
401 breakpoints.
402 (update_breakpoints_after_exec): Delete bp_single_step
403 breakpoints.
404 (detach_breakpoints): Remove special handling for single-step
405 breakpoints.
406 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
407 (bpstat_stop_status): Add comment.
408 (bpstat_what, bptype_string, print_one_breakpoint_location)
409 (adjust_breakpoint_address, init_bp_location): Handle
410 bp_single_step.
411 (new_single_step_breakpoint): New function.
412 (set_momentary_breakpoint, bkpt_remove_location): Remove special
413 handling for single-step breakpoints.
414 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
415 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
416 Rewrite.
417 (detach_single_step_breakpoints, find_single_step_breakpoint):
418 Delete functions.
419 (breakpoint_has_location_inserted_here): New function.
420 (single_step_breakpoint_inserted_here_p): Rewrite.
421 * breakpoint.h: Remove FIXME.
422 (enum bptype) <bp_single_step>: New enum value.
423 (insert_single_step_breakpoint): Update comment.
424 * infrun.c (resume_cleanups)
425 (delete_step_thread_step_resume_breakpoint): Remove single-step
426 breakpoints.
427 (fetch_inferior_event): Install a cleanup that removes infrun
428 breakpoints.
429 (switch_back_to_stepped_thread) <expect thread advanced also>:
430 Clear step-over info.
431
0cbcdb96
PA
4322014-10-15 Pedro Alves <palves@redhat.com>
433
434 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
435 (delete_thread_infrun_breakpoints): New function, with parts
436 salvaged from delete_step_resume_breakpoint_callback.
437 (delete_step_thread_step_resume_breakpoint): Delete.
438 (for_each_just_stopped_thread_callback_func): New typedef.
439 (for_each_just_stopped_thread): New function.
440 (delete_just_stopped_threads_infrun_breakpoints): New function.
441 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
442 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
443 ... this. Adjust.
444 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
445
963f9c80
PA
4462014-10-15 Pedro Alves <palves@redhat.com>
447
448 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
449 trying to step past a non-steppable watchpoint.
450 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
451 field.
452 * infrun.c (struct step_over_info): Add new field
453 'nonsteppable_watchpoint_p' and adjust comments.
454 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
455 Adjust.
456 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
457 (stepping_past_nonsteppable_watchpoint): New function.
458 (step_over_info_valid_p): Also return true if stepping past a
459 nonsteppable watchpoint.
460 (proceed): Adjust call to set_step_over_info. Remove reference to
461 init_infwait_state.
462 (init_wait_for_inferior): Remove reference to init_infwait_state.
463 (waiton_ptid): Delete global.
464 (struct execution_control_state)
465 <stepped_after_stopped_by_watchpoint>: Delete field.
466 (wait_for_inferior, fetch_inferior_event): Always pass
467 minus_one_ptid to target_wait.
468 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
469 field.
470 (init_infwait_state): Delete function.
471 (handle_inferior_event): Remove infwait_state handling.
472 (handle_signal_stop) <watchpoints handling>: Adjust after
473 stepped_after_stopped_by_watchpoint removal. Don't remove
474 breakpoints here nor set infwait_state. Set the thread's
475 stepping_over_watchpoint flag, and call keep_going instead.
476 (keep_going): Handle stepping_over_watchpoint. Adjust
477 set_step_over_info calls.
478 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
479 function.
480
6cc83d2a
PA
4812014-10-15 Pedro Alves <palves@redhat.com>
482
483 * infrun.c (step_over_info_valid_p): New function.
484 (resume): Use step_over_info_valid_p instead of checking the
485 threads's trap_expected flag.
486
6979730b
DE
4872014-10-15 Doug Evans <dje@google.com>
488 Walfred Tedeschi <walfred.tedeschi@intel.com>
489
490 PR python/17364
491 * python/lib/gdb/__init__.py (packages): Add "printer".
492 * python/lib/gdb/command/bound_registers.py: Moved to ...
493 * python/lib/gdb/printer/bound_registers.py: ... here.
494 Add printer to global set of builtin printers. Rename printer from
495 "bound" to "mpx_bound128".
496 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
497 registered as global "builtin" printer.
498 (add_builtin_pretty_printer): New function.
499 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
500 gdb/printer/__init__.py.
501
35a49624
IB
5022014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
503
504 * Makefile.in (SFILES): Remove d-support.c.
505 (COMMON_OBS): Remove d-support.o.
506 * d-lang.h (d_parse_symbol): Remove declaration.
507 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
508 * d-support.c: Remove file.
509
8fa0c4f8
AA
5102014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
511
512 * gdb/infrun.c (process_event_stop_test): Apply
513 gdbarch_addr_bits_remove to longjmp resume address.
514
3666da81
PA
5152014-10-15 Pedro Alves <palves@redhat.com>
516
517 * regformats/microblaze.dat: Delete file.
518
449aa9df
AKA
5192014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
520
521 * features/Makefile (microblaze-expedite): Replace pc with rpc.
522 * regformats/microblaze-with-stack-protect.dat: Regenerate.
523
ebb8ece2
SC
5242014-10-15 Siva Chandra Reddy <sivachandra@google.com>
525
526 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
527 as non-trivial.
528
82c48ac7
SC
5292014-10-15 Siva Chandra Reddy <sivachandra@google.com>
530
531 PR c++/13403
532 PR c++/15154
533 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
534 with qualified args.
535
c40cc657
JB
5362014-10-14 Joel Brobecker <brobecker@adacore.com>
537
538 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
539 of the case where the second operand is a pointer.
540 <BINOP_SUB>: Likewise.
541
0ea5cda8
SDJ
5422014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
543
544 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
545 only if it is not NULL.
546 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
547 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
548 (struct probe_ops) <clear_semaphore>: Likewise.
549 * tracepoint.c (start_tracing): Call set_semaphore only if it is
550 not NULL.
551 (stop_tracing): Likewise, for clear_semaphore.
552
f7088df3
SDJ
5532014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
554
555 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
556 using language_c, instead of current_language.
557
4e1bbde0
DE
5582014-10-13 Doug Evans <dje@google.com>
559
6ff5a0f6 560 * python/py-objfile.c (objfpy_initialize): New function.
4e1bbde0 561 (objfpy_new, objfile_to_objfile_object): Call it.
6ff5a0f6 562 * python/py-progspace.c (pspy_initialize): New function.
4e1bbde0
DE
563 (pspy_new, pspace_to_pspace_object): Call it.
564
c780cc2f
JK
5652014-10-13 Miroslav Franc <mfranc@redhat.com>
566 Jan Kratochvil <jan.kratochvil@redhat.com>
567
568 Fix "save breakpoints" for "catch" command.
569 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
570 newline.
571
99894e11
JK
5722014-10-12 Miroslav Franc <mfranc@redhat.com>
573
574 Fix "save breakpoints" for "disable $bpnum" command.
575 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
576
3831839c
PA
5772014-10-10 Pedro Alves <palves@redhat.com>
578
579 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
580 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
581 (HFILES_NO_SRCDIR): Remove solib-irix.h.
582 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
583 and been removed.
584 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
585 * configure.ac: Remove references to IRIX.
586 * configure.host: Add *-*-irix* to the obsolete hosts section.
587 Remove all other references to irix.
588 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
589 Delete files.
590
cc3afae2
AKA
5912014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
592
593 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
594 isn't valid, release the tdesc arch data and return NULL.
595
cdfa0b0a
PA
5962014-10-10 Pedro Alves <palves@redhat.com>
597
598 * linux-tdep.c: Include observer.h.
599 (linux_inferior_data): New global.
600 (struct linux_info): New structure.
601 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
602 (get_linux_inferior_data): New functions.
603 (linux_vsyscall_range): Rename to ...
604 (linux_vsyscall_range_raw): ... this.
605 (linux_vsyscall_range): New function; handles caching.
606 (_initialize_linux_tdep): Register linux_inferior_data. Install
607 inferior_exit and inferior_appeared observers.
608
8b9a549d
PA
6092014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
610 Pedro Alves <palves@redhat.com>
611
612 PR symtab/14466
613 * solib-svr4.c (svr4_read_so_list): Rename to ...
614 (svr4_current_sos_1): ... this and change the function comment.
615 (svr4_current_sos): New function.
616
3437254d
PA
6172014-10-10 Pedro Alves <palves@redhat.com>
618
619 * arch-utils.c (default_vsyscall_range): New function.
620 * arch-utils.h (default_vsyscall_range): New declaration.
621 * gdbarch.sh (vsyscall_range): New hook.
622 * gdbarch.h, gdbarch.c: Regenerate.
623 * linux-tdep.c (linux_vsyscall_range): New function.
624 (linux_init_abi): Install linux_vsyscall_range as
625 vsyscall_range gdbarch hook.
626 * memrange.c (address_in_mem_range): New function.
627 * memrange.h (address_in_mem_range): New declaration.
628 * symfile-mem.c (find_vdso_size): Delete function.
629 (add_vsyscall_page): Use gdbarch_vsyscall_range.
630
31cc0b80
PA
6312014-10-10 Pedro Alves <palves@redhat.com>
632
633 * infrun.c (normal_stop): Fix typo in comment.
634
3e3286a2
SDJ
6352014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
636
637 PR tdep/9390
638 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
639 typo when using logical AND to determine instruction type.
640
fcbdedf8
YQ
6412014-10-09 Yao Qi <yao@codesourcery.com>
642
643 * infrun.c (handle_signal_stop): Remove local variable
644 'printed'.
645
db984616
SS
6462014-10-08 Stan Shebs <stan@codesourcery.com>
647
648 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
649
3ba37e6c
GB
6502014-10-08 Gary Benson <gbenson@redhat.com>
651
652 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
653
a442d071
GB
6542014-10-08 Gary Benson <gbenson@redhat.com>
655
656 * common/common-defs.h: Include common-exceptions.h.
657 * exceptions.h: Do not include common-exceptions.h.
658
6f1947e8
GB
6592014-10-08 Gary Benson <gbenson@redhat.com>
660
661 * common/common-defs.h: Include cleanups.h.
662 * common/common-exceptions.c: Do not include cleanups.h.
663 * utils.h: Likewise.
664
c765fdb9
GB
6652014-10-08 Gary Benson <gbenson@redhat.com>
666
667 * ada-lang.c: Do not include exceptions.h.
668 * ada-valprint.c: Likewise.
669 * amd64-tdep.c: Likewise.
670 * auto-load.c: Likewise.
671 * block.c: Likewise.
672 * break-catch-throw.c: Likewise.
673 * breakpoint.c: Likewise.
674 * btrace.c: Likewise.
675 * c-lang.c: Likewise.
676 * cli/cli-cmds.c: Likewise.
677 * cli/cli-interp.c: Likewise.
678 * cli/cli-script.c: Likewise.
679 * completer.c: Likewise.
680 * corefile.c: Likewise.
681 * corelow.c: Likewise.
682 * cp-abi.c: Likewise.
683 * cp-support.c: Likewise.
684 * cp-valprint.c: Likewise.
685 * darwin-nat.c: Likewise.
686 * dwarf2-frame-tailcall.c: Likewise.
687 * dwarf2-frame.c: Likewise.
688 * dwarf2loc.c: Likewise.
689 * dwarf2read.c: Likewise.
690 * eval.c: Likewise.
691 * event-loop.c: Likewise.
692 * event-top.c: Likewise.
693 * f-valprint.c: Likewise.
694 * frame-unwind.c: Likewise.
695 * frame.c: Likewise.
696 * gdbtypes.c: Likewise.
697 * gnu-v2-abi.c: Likewise.
698 * gnu-v3-abi.c: Likewise.
699 * guile/scm-auto-load.c: Likewise.
700 * guile/scm-breakpoint.c: Likewise.
701 * guile/scm-cmd.c: Likewise.
702 * guile/scm-frame.c: Likewise.
703 * guile/scm-lazy-string.c: Likewise.
704 * guile/scm-param.c: Likewise.
705 * guile/scm-symbol.c: Likewise.
706 * guile/scm-type.c: Likewise.
707 * hppa-hpux-tdep.c: Likewise.
708 * i386-tdep.c: Likewise.
709 * inf-loop.c: Likewise.
710 * infcall.c: Likewise.
711 * infcmd.c: Likewise.
712 * infrun.c: Likewise.
713 * interps.c: Likewise.
714 * interps.h: Likewise.
715 * jit.c: Likewise.
716 * linespec.c: Likewise.
717 * linux-nat.c: Likewise.
718 * linux-thread-db.c: Likewise.
719 * m32r-rom.c: Likewise.
720 * main.c: Likewise.
721 * memory-map.c: Likewise.
722 * mi/mi-cmd-break.c: Likewise.
723 * mi/mi-cmd-stack.c: Likewise.
724 * mi/mi-interp.c: Likewise.
725 * mi/mi-main.c: Likewise.
726 * monitor.c: Likewise.
727 * nto-procfs.c: Likewise.
728 * objc-lang.c: Likewise.
729 * p-valprint.c: Likewise.
730 * parse.c: Likewise.
731 * ppc-linux-tdep.c: Likewise.
732 * printcmd.c: Likewise.
733 * probe.c: Likewise.
734 * python/py-auto-load.c: Likewise.
735 * python/py-breakpoint.c: Likewise.
736 * python/py-cmd.c: Likewise.
737 * python/py-finishbreakpoint.c: Likewise.
738 * python/py-frame.c: Likewise.
739 * python/py-framefilter.c: Likewise.
740 * python/py-function.c: Likewise.
741 * python/py-gdb-readline.c: Likewise.
742 * python/py-inferior.c: Likewise.
743 * python/py-infthread.c: Likewise.
744 * python/py-lazy-string.c: Likewise.
745 * python/py-linetable.c: Likewise.
746 * python/py-param.c: Likewise.
747 * python/py-prettyprint.c: Likewise.
748 * python/py-symbol.c: Likewise.
749 * python/py-type.c: Likewise.
750 * python/py-value.c: Likewise.
751 * python/python-internal.h: Likewise.
752 * python/python.c: Likewise.
753 * record-btrace.c: Likewise.
754 * record-full.c: Likewise.
755 * regcache.c: Likewise.
756 * remote-fileio.c: Likewise.
757 * remote-mips.c: Likewise.
758 * remote.c: Likewise.
759 * rs6000-aix-tdep.c: Likewise.
760 * rs6000-nat.c: Likewise.
761 * skip.c: Likewise.
762 * solib-darwin.c: Likewise.
763 * solib-dsbt.c: Likewise.
764 * solib-frv.c: Likewise.
765 * solib-ia64-hpux.c: Likewise.
766 * solib-spu.c: Likewise.
767 * solib-svr4.c: Likewise.
768 * solib.c: Likewise.
769 * spu-tdep.c: Likewise.
770 * stack.c: Likewise.
771 * stap-probe.c: Likewise.
772 * symfile-mem.c: Likewise.
773 * symmisc.c: Likewise.
774 * target.c: Likewise.
775 * thread.c: Likewise.
776 * top.c: Likewise.
777 * tracepoint.c: Likewise.
778 * tui/tui-interp.c: Likewise.
779 * typeprint.c: Likewise.
780 * utils.c: Likewise.
781 * valarith.c: Likewise.
782 * valops.c: Likewise.
783 * valprint.c: Likewise.
784 * value.c: Likewise.
785 * varobj.c: Likewise.
786 * windows-nat.c: Likewise.
787 * xml-support.c: Likewise.
788
484933d1
MR
7892014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
790
791 * mips-tdep.c (add_offset_16): Rewrite to implement what the
792 name implies.
793 (extended_mips16_next_pc): Update accordingly.
794
ab50adb6
MR
7952014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
796
797 * mips-tdep.c (mips16_instruction_is_compact_branch): New
798 function.
799 (micromips_instruction_is_compact_branch): Likewise.
800 (mips16_scan_prologue): Terminate scanning upon seeing a branch
801 or a compact jump, reaching a jump delay slot, or seeing a
802 second non-prologue instruction.
803 (micromips_scan_prologue): Also terminate scanning upon seeing a
804 compact branch or jump, or reaching a branch or jump delay slot.
805 (mips32_scan_prologue): Terminate scanning upon reaching a branch
806 or jump delay slot, or seeing a second non-prologue instruction.
807 (mips32_instruction_has_delay_slot): Retain instruction
808 examination code only, update arguments accordingly and move
809 instruction fetch pieces to...
810 (mips32_insn_at_pc_has_delay_slot): ... this new function.
811 (micromips_instruction_has_delay_slot): Likewise and to...
812 (micromips_insn_at_pc_has_delay_slot): ... this new function.
813 (mips16_instruction_has_delay_slot): Likewise and to...
814 (mips16_insn_at_pc_has_delay_slot): ... this new function.
815 (mips_single_step_through_delay): Update accordingly.
816 (mips_adjust_breakpoint_address): Likewise.
817
ae790652
MR
8182014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
819
820 * mips-tdep.c (micromips_instruction_has_delay_slot): When
821 !mustbe32 also return 1 for 32-bit instructions.
822 (mips16_instruction_has_delay_slot): Likewise. Add an
823 explanatory comment.
824
9b807e7b
MR
8252014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
826
827 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
828 symbols special.
829
0d5ed153
MR
8302014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
831
832 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
833 update comments.
834 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
835 for the breakpoint's address. Don't preinitialize `placed_size'.
836 (insert_bp_location): Set `reqstd_address' rather than
837 `placed_address'.
838 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
839 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
840 address.
841 (bkpt_remove_location): Likewise.
842 (deprecated_insert_raw_breakpoint): Likewise.
843 (deprecated_remove_raw_breakpoint): Likewise.
844 (find_single_step_breakpoint): Likewise.
845 * mem-break.c (default_memory_insert_breakpoint): Use
846 `reqstd_address' for the breakpoint's address. Don't set
847 `placed_address' or `placed_size' if breakpoint contents couldn't
848 have been determined.
849 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
850 the breakpoint's address.
851 (remote_insert_hw_breakpoint): Likewise. Don't set
852 `placed_address' or `placed_size' if breakpoint couldn't have been
853 set.
854 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
855 `reqstd_address' for the breakpoint's address.
856 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
857 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
858 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
859 * microblaze-linux-tdep.c
860 (microblaze_linux_memory_remove_breakpoint): Likewise.
861 * monitor.c (monitor_insert_breakpoint): Likewise.
862 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
863 (procfs_insert_hw_breakpoint): Likewise.
864 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
865 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
866 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
867 * remote-mips.c (mips_insert_breakpoint): Likewise.
868 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
869
3e871532
LM
8702014-10-03 Luis Machado <lgustavo@codesourcery.com>
871
872 * valops.c (value_assign): Check for bit field assignments
873 before calling architecture-specific register value
874 conversion functions.
875
ec48dc8b
PM
8762014-10-03 Pierre Muller <muller@sourceware.org>
877
878 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
879
b57bacec
PA
8802014-10-02 Pedro Alves <palves@redhat.com>
881
882 * breakpoint.c (breakpoints_should_be_inserted_now): Use
883 threads_are_executing.
884 * breakpoint.h (breakpoints_should_be_inserted_now): Add
885 describing comment.
886 * gdbthread.h (threads_are_executing): Declare.
887 (handle_signal_stop) <random signals>: Don't print about the
888 signal here if stopping.
889 (end_stepping_range): Don't notify observers here.
890 (normal_stop): Update the thread list. If stopped by a random
891 signal or a stepping range ended, notify observers.
892 * thread.c (threads_executing): New global.
893 (init_thread_list): Clear 'threads_executing'.
894 (set_executing): Set or clear 'threads_executing'.
895 (threads_are_executing): New function.
896 (update_threads_executing): New function.
897 (update_thread_list): Use it.
898
13fd3ff3
PA
8992014-10-02 Pedro Alves <palves@redhat.com>
900
901 PR breakpoints/17431
902 * breakpoint.c (update_breakpoints_after_exec): Don't create
903 overlay, longjmp, std terminate nor exception breakpoints here.
904
32990ada
PA
9052014-10-02 Pedro Alves <palves@redhat.com>
906
907 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
908 Adjust comments.
909 * inferior.c (find_inferior_for_program_space): Give preference to
910 the current inferior.
911 * inferior.h (find_inferior_for_program_space): Update comment.
912 * progspace.c (switch_to_program_space_and_thread): Prefer the
913 current inferior if it's bound to the program space requested. If
914 the inferior found doesn't have a PID yet, don't bother looking up
915 a thread.
916 * progspace.h (switch_to_program_space_and_thread): Adjust
917 comment.
918 * thread.c (any_thread_of_process, any_live_thread_of_process):
919 Give preference to the current thread.
920
0fec99e8
PA
9212014-10-01 Pedro Alves <palves@redhat.com>
922
923 * breakpoint.c (insert_bp_location): Error out if inserting a
924 software breakpoint at a read-only address.
925 * target.c (memory_xfer_check_region): New function, factored out
926 from ...
927 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
928 ULONGEST.
929 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
930 against the memory region attributes.
931
2ddf4301
SM
9322014-10-01 Simon Marchi <simon.marchi@ericsson.com>
933
934 * NEWS: Announce new exit-code field in -list-thread-groups
935 output.
936 * inferior.c (exit_inferior_1): Don't clear exit code.
937 (inferior_appeared): Clear exit code.
938 * mi/mi-main.c (print_one_inferior): Add printing of the exit
939 code.
940
5fdeec1d
PA
9412014-10-01 Pedro Alves <palves@redhat.com>
942
943 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
944 GENERATED" along with emacs/vi read-only markers.
945 * regformats/aarch64.dat: Regenerate.
946 * regformats/arm-with-iwmmxt.dat: Regenerate.
947 * regformats/arm-with-neon.dat: Regenerate.
948 * regformats/arm-with-vfpv2.dat: Regenerate.
949 * regformats/arm-with-vfpv3.dat: Regenerate.
950 * regformats/i386/amd64-avx-linux.dat: Regenerate.
951 * regformats/i386/amd64-avx.dat: Regenerate.
952 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
953 * regformats/i386/amd64-avx512.dat: Regenerate.
954 * regformats/i386/amd64-linux.dat: Regenerate.
955 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
956 * regformats/i386/amd64-mpx.dat: Regenerate.
957 * regformats/i386/amd64.dat: Regenerate.
958 * regformats/i386/i386-avx-linux.dat: Regenerate.
959 * regformats/i386/i386-avx.dat: Regenerate.
960 * regformats/i386/i386-avx512-linux.dat: Regenerate.
961 * regformats/i386/i386-avx512.dat: Regenerate.
962 * regformats/i386/i386-linux.dat: Regenerate.
963 * regformats/i386/i386-mmx-linux.dat: Regenerate.
964 * regformats/i386/i386-mmx.dat: Regenerate.
965 * regformats/i386/i386-mpx-linux.dat: Regenerate.
966 * regformats/i386/i386-mpx.dat: Regenerate.
967 * regformats/i386/i386.dat: Regenerate.
968 * regformats/i386/x32-avx-linux.dat: Regenerate.
969 * regformats/i386/x32-avx.dat: Regenerate.
970 * regformats/i386/x32-avx512-linux.dat: Regenerate.
971 * regformats/i386/x32-avx512.dat: Regenerate.
972 * regformats/i386/x32-linux.dat: Regenerate.
973 * regformats/i386/x32.dat: Regenerate.
974 * regformats/microblaze-with-stack-protect.dat: Regenerate.
975 * regformats/mips-dsp-linux.dat: Regenerate.
976 * regformats/mips-linux.dat: Regenerate.
977 * regformats/mips64-dsp-linux.dat: Regenerate.
978 * regformats/mips64-linux.dat: Regenerate.
979 * regformats/nios2-linux.dat: Regenerate.
980 * regformats/rs6000/powerpc-32.dat: Regenerate.
981 * regformats/rs6000/powerpc-32l.dat: Regenerate.
982 * regformats/rs6000/powerpc-64l.dat: Regenerate.
983 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
984 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
985 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
986 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
987 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
988 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
989 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
990 * regformats/s390-linux32.dat: Regenerate.
991 * regformats/s390-linux32v1.dat: Regenerate.
992 * regformats/s390-linux32v2.dat: Regenerate.
993 * regformats/s390-linux64.dat: Regenerate.
994 * regformats/s390-linux64v1.dat: Regenerate.
995 * regformats/s390-linux64v2.dat: Regenerate.
996 * regformats/s390-te-linux64.dat: Regenerate.
997 * regformats/s390x-linux64.dat: Regenerate.
998 * regformats/s390x-linux64v1.dat: Regenerate.
999 * regformats/s390x-linux64v2.dat: Regenerate.
1000 * regformats/s390x-te-linux64.dat: Regenerate.
1001 * regformats/tic6x-c62x-linux.dat: Regenerate.
1002 * regformats/tic6x-c62x.dat: Regenerate.
1003 * regformats/tic6x-c64x-linux.dat: Regenerate.
1004 * regformats/tic6x-c64x.dat: Regenerate.
1005 * regformats/tic6x-c64xp-linux.dat: Regenerate.
1006 * regformats/tic6x-c64xp.dat: Regenerate.
1007
db74e4ba
PA
10082014-10-01 Pedro Alves <palves@redhat.com>
1009
1010 * features/Makefile: Update comments.
1011 (XMLTOC): List all xml files we build C files from.
1012 (clean-cfiles): New rule.
1013
d63f2f84
PA
10142014-10-01 Pedro Alves <palves@redhat.com>
1015
1016 * features/i386/amd64-avx512-linux.c: Regenerate.
1017 * features/i386/amd64-avx512.c: Regenerate.
1018 * features/i386/x32-avx512-linux.c: Regenerate.
1019 * features/i386/x32-avx512.c: Regenerate.
1020
20ad026d
PA
10212014-10-01 Pedro Alves <palves@redhat.com>
1022
1023 * features/Makefile (WHICH): Remove arm-with-m,
1024 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
1025
acc9fe45
PA
10262014-10-01 Pedro Alves <palves@redhat.com>
1027
1028 * features/Makefile (clean): New rule.
1029
e001e535
PA
10302014-10-01 Pedro Alves <palves@redhat.com>
1031
1032 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
1033 (zmm14h): Add missing end quotes.
1034
bdc14417
PA
10352014-10-01 Pedro Alves <palves@redhat.com>
1036
1037 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
1038 * features/aarch64.c: Regenerate.
1039
d83ad864
DB
10402014-09-30 Don Breazeal <donb@codesourcery.com>
1041
1042 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
1043 code so as to work with follow_fork_inferior.
1044 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
1045 (inf_ttrace_create_inferior): Remove reference to
1046 inf_ttrace_vfork_ppid.
1047 (inf_ttrace_attach): Ditto.
1048 (inf_ttrace_detach): Ditto.
1049 (inf_ttrace_kill): Use current_inferior instead of
1050 inf_ttrace_vfork_ppid.
1051 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
1052 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
1053 inferior away from the parent.
1054 * infrun.c (follow_fork): Call follow_fork_inferior instead of
1055 target_follow_fork.
1056 (follow_fork_inferior): New function.
1057 (follow_inferior_reset_breakpoints): Make function static.
1058 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
1059 * linux-nat.c (linux_child_follow_fork): Move target-independent
1060 code to infrun.c:follow_fork_inferior.
1061
29082443
AA
10622014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1063
1064 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
1065 * gdbarch.c: Regenerate.
1066 * gdbarch.h: Likewise.
1067 * corelow.c (sniff_core_bfd): Drop presence check for deleted
1068 gdbarch method 'regset_from_core_section'.
1069 (get_core_register_section): Remove handling for the case that
1070 regset == NULL and regset_from_core_section is defined.
1071 (get_core_registers): Drop check for deleted method.
1072 * procfs.c (procfs_do_thread_registers): Adjust comment.
1073
f968fe80
AA
10742014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1075
1076 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
1077 (linux_nat_make_corefile_notes): Remove.
1078 (linux_target_install_ops): Do not set target method
1079 'make_corefile_notes'.
1080 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
1081 Remove field.
1082 (linux_corefile_thread_callback): Instead of args->collect, call
1083 linux_collect_thread_registers.
1084 (linux_make_corefile_notes): Remove 'collect' parameter. Return
1085 NULL unless there is a regset iterator.
1086 (linux_make_corefile_notes_1): Remove.
1087 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
1088 by linux_make_corefile_notes.
1089 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
1090
174ad59a
AA
10912014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1092
1093 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
1094 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
1095 Remove.
1096 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
1097
97094034
AA
10982014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1099
1100 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
1101 (xtensa_iterate_over_regset_sections): New.
1102 (xtensa_gdbarch_init): Adjust gdbarch initialization.
1103
f73d3ce7
AA
11042014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1105
1106 * vax-tdep.c (vax_regset_from_core_section): Remove.
1107 (vax_iterate_over_regset_sections): New.
1108 (vax_gdbarch_init): Adjust gdbarch initialization.
1109
cb24567a
AA
11102014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1111
1112 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
1113 (tilegx_regset_from_core_section): Remove.
1114 (tilegx_iterate_over_regset_sections): New.
1115 (tilegx_linux_init_abi): Adjust gdbarch initialization.
1116
e5139de8
AA
11172014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1118
1119 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
1120 (sparc_iterate_over_regset_sections): New.
1121 (sparc32_gdbarch_init): Adjust gdbarch initialization.
1122 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
1123 targets.
1124 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
1125 (sparc64fbsd_init_abi): Call fbsd_init_abi.
1126 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
1127 target method 'make_corefile_notes'.
1128
c6d41a6f
AA
11292014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1130
1131 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
1132 'sizeof_gregset' and 'sizeof_fpregset'.
1133 * sh-tdep.c (sh_regset_from_core_section): Remove.
1134 (sh_iterate_over_regset_sections): New.
1135 (sh_gdbarch_init): Adjust gdbarch initialization.
1136 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
1137 sizeof_fpregset.
1138 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
1139 'sizeof_gregset'.
1140
9845a0b5
AA
11412014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1142
1143 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
1144 (score7_linux_iterate_over_regset_sections): New.
1145 (score_gdbarch_init): Adjust gdbarch initialization.
1146
23ea9aeb
AA
11472014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1148
1149 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
1150 FreeBSD targets.
1151 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
1152 method 'make_corefile_notes'.
1153 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
1154 (ppcfbsd_regset_from_core_section): Remove.
1155 (ppcfbsd_iterate_over_regset_sections): New.
1156 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
1157 initialization.
1158 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
1159 (ppcnbsd_iterate_over_regset_sections): New.
1160 (ppcnbsd_init_abi): Adjust.
1161 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
1162 (ppcobsd_iterate_over_regset_sections): New.
1163 (ppcobsd_init_abi): Adjust.
1164 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
1165 (rs6000_aix_iterate_over_regset_sections): New.
1166 (rs6000_aix_init_osabi): Adjust.
1167
c5b8d704
AA
11682014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1169
1170 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
1171 (nios2_regset_from_core_section): Remove.
1172 (nios2_iterate_over_regset_sections): New.
1173 (nios2_linux_init_abi): Adjust gdbarch initialization.
1174
3636e608
AA
11752014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1176
1177 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
1178 (am33_iterate_over_regset_sections): New.
1179 (am33_linux_init_osabi): Adjust gdbarch initialization.
1180
d4036235
AA
11812014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1182
1183 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
1184 (mips_linux_iterate_over_regset_sections): New.
1185 (mips_linux_init_abi): Adjust gdbarch initialization.
1186 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
1187 (mips64obsd_iterate_over_regset_sections): New.
1188 (mips64obsd_init_abi): Adjust.
1189 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
1190 (mipsnbsd_iterate_over_regset_sections): New.
1191 (mipsnbsd_init_abi): Adjust.
1192
b61ddd6e
AA
11932014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1194
1195 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
1196 (m88k_iterate_over_regset_sections): New.
1197 (m88k_gdbarch_init): Adjust gdbarch initialization.
1198
55a2906a
AA
11992014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1200
1201 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
1202 (ia64_linux_iterate_over_regset_sections): New.
1203 (ia64_linux_init_abi): Adjust gdbarch initialization.
1204
022c98ab
AA
12052014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1206
1207 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
1208 (m68kbsd_iterate_over_regset_sections): New.
1209 (m68kbsd_init_abi): Adjust gdbarch initialization.
1210 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
1211 (m68k_linux_iterate_over_regset_sections): New.
1212 (m68k_linux_init_abi): Adjust gdbarch initialization.
1213
5fac247f
AA
12142014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1215
1216 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
1217 (m32r_linux_regset_from_core_section): Remove.
1218 (m32r_linux_iterate_over_regset_sections): New.
1219 (m32r_linux_init_abi): Adjust gdbarch initialization.
1220
490496c3
AA
12212014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1222
1223 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
1224 (amd64obsd_iterate_over_regset_sections): New.
1225 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
1226 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
1227 Remove.
1228 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
1229 regset_from_core_section initialization.
1230 * i386-tdep.c (i386_regset_from_core_section): Remove.
1231 (i386_iterate_over_regset_sections): New.
1232 (i386_gdbarch_init): Adjust gdbarch initialization.
1233 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
1234 (i386_iterate_over_regset_sections): New prototype.
1235 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
1236 Remove.
1237 (i386obsd_aout_iterate_over_regset_sections): New.
1238 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
1239 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
1240 targets.
1241 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
1242 (amd64fbsd_init_abi): Call fbsd_init_abi.
1243 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
1244 (i386fbsd4_init_abi): Call fbsd_init_abi.
1245 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
1246 target method 'make_corefile_notes'.
1247 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
1248
50c5eb53
AA
12492014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1250
1251 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
1252 (hppa_hpux_iterate_over_regset_sections): New.
1253 (hppa_hpux_init_abi): Adjust gdbarch initialization.
1254 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
1255 (hppa_linux_iterate_over_regset_sections): New.
1256 (hppa_linux_init_abi): Adjust.
1257 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
1258 (hppanbsd_iterate_over_regset_sections): New.
1259 (hppanbsd_init_abi): Adjust.
1260 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
1261 (hppaobsd_iterate_over_regset_sections): New.
1262 (hppaobsd_init_abi): Adjust.
1263
66afae4f
AA
12642014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1265
1266 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
1267 (frv_linux_iterate_over_regset_sections): New.
1268 (frv_linux_init_abi): Adjust gdbarch initialization.
1269
ed09174e
AA
12702014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1271
1272 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
1273 (armbsd_iterate_over_regset_sections): New prototype.
1274 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
1275 (armbsd_iterate_over_regset_sections): New.
1276 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
1277 initialization.
1278
dff2166e
AA
12792014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1280
1281 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
1282 (alpha_linux_iterate_over_regset_sections): New.
1283 (alpha_linux_init_abi): Adjust gdbarch initialization.
1284 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
1285 prototype.
1286 (alphanbsd_iterate_over_regset_sections): New prototype.
1287
4108500a
AA
12882014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1289
1290 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
1291 Remove.
1292 (aarch64_linux_iterate_over_regset_sections): New.
1293 (aarch64_linux_init_abi): Adjust gdbarch initialization.
1294
a904c024
AA
12952014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1296
1297 * fbsd-tdep.c: New file.
1298 * fbsd-tdep.h: New file.
1299 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
1300 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
1301 (ALLDEPFILES): Add fbsd-tdep.c.
1302
8f0435f7
AA
13032014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1304
1305 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
1306 parameter.
1307 * gdbarch.h: Regenerate.
1308 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
1309 iterator.
1310 (get_core_register_section): Add parameter 'regset' and use it, if
1311 set. Add parameter 'min_size' and verify the bfd section size
1312 against it.
1313 (get_core_registers_cb): Add parameter 'regset' and pass it to
1314 get_core_register section. For the "standard" register sections
1315 ".reg" and ".reg2", set an appropriate default for human_name.
1316 (get_core_registers): Don't abort when the gdbarch has an iterator
1317 but no regset_from_core_section. Add NULL/0 for parameters
1318 'regset'/'min_size' in calls to get_core_register_section.
1319 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
1320 'regset' and use it instead of calling the
1321 regset_from_core_section gdbarch method.
1322 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
1323 * i386-tdep.c (i386_supply_xstateregset)
1324 (i386_collect_xstateregset, i386_xstateregset): Moved to
1325 i386-linux-tdep.c.
1326 (i386_regset_from_core_section): Drop handling for .reg-xfp and
1327 .reg-xstate.
1328 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
1329 core file support only if the regset iterator hasn't been set.
1330 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
1331 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
1332 Moved from i386-tdep.c and renamed to *_linux*.
1333 (i386_linux_iterate_over_regset_sections): Add regset parameter to
1334 each callback invocation. Allow any .reg-xstate size when reading
1335 from a core file.
1336 * amd64-tdep.c (amd64_supply_xstateregset)
1337 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
1338 amd64-linux-tdep.c.
1339 (amd64_regset_from_core_section): Remove.
1340 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
1341 install an amd64-specific regset_from_core_section gdbarch method.
1342 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
1343 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
1344 Moved from amd64-tdep.c and renamed to *_linux*.
1345 (amd64_linux_iterate_over_regset_sections): Add regset parameter
1346 to each callback invocation. Allow any .reg-xstate size when
1347 reading from a core file.
1348 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
1349 (arm_linux_iterate_over_regset_sections): Add regset parameter to
1350 each callback invocation.
1351 (arm_linux_init_abi): No longer set the regset_from_core_section
1352 gdbarch method.
1353 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
1354 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
1355 each callback invocation.
1356 (ppc_linux_init_abi): No longer set the regset_from_core_section
1357 gdbarch method.
1358 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
1359 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
1360 (s390_regset_from_core_section): Remove.
1361 (s390_iterate_over_regset_sections): Add regset parameter to each
1362 callback invocation.
1363 (s390_gdbarch_init): No longer set the regset_from_core_section
1364 gdbarch method. Drop initialization of deleted tdep fields.
1365
5aa82d05
AA
13662014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1367
1368 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
1369 (amd64_linux_iterate_over_regset_sections): New.
1370 (amd64_linux_init_abi_common): Don't install the regset section
1371 list, but the new iterator in gdbarch.
1372 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
1373 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
1374 (arm_linux_iterate_over_regset_sections): ...here. New function.
1375 (arm_linux_init_abi): Set iterator instead of section list.
1376 * corelow.c (get_core_registers_cb): New function, logic moved
1377 from...
1378 (get_core_registers): ...loop body here. Use new iterator method
1379 instead of walking through the regset section list.
1380 * gdbarch.sh: Remove 'core_regset_sections'. New method
1381 'iterate_over_regset_sections'. New typedef
1382 'iterate_over_regset_sections_cb'.
1383 * gdbarch.c: Regenerate.
1384 * gdbarch.h: Likewise.
1385 * i386-linux-tdep.c (i386_linux_regset_sections)
1386 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
1387 Remove.
1388 (i386_linux_iterate_over_regset_sections): New.
1389 (i386_linux_init_abi): Don't choose a regset section list, but
1390 install new iterator in gdbarch.
1391 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
1392 (linux_collect_regset_section_cb): New function, logic moved
1393 from...
1394 (linux_collect_thread_registers): ...loop body here. Use iterator
1395 method instead of walking through list.
1396 (linux_make_corefile_notes_1): Check for presence of iterator
1397 method instead of regset section list.
1398 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
1399 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
1400 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
1401 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
1402 (ppc_linux_iterate_over_regset_sections): ...here. New function.
1403 (ppc_linux_init_abi): Don't choose from above regset section
1404 lists, but install new iterator in gdbarch.
1405 * regset.h (struct core_regset_section): Remove.
1406 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
1407 have_linux_v1, have_linux_v2, and have_tdb.
1408 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
1409 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
1410 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
1411 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
1412 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
1413 (s390_iterate_over_regset_sections): ...here. New function. Use
1414 new tdep fields.
1415 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
1416 regset section lists, but install new iterator.
1417
2eca4a8d
JK
14182014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1419
1420 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
1421
a73c2b56
SM
14222014-09-26 Simon Marchi <simon.marchi@ericsson.com>
1423
1424 * progspace.c (print_program_space): Don't prune program spaces
1425 before printing them.
1426
03d46957
PA
14272014-09-25 Pedro Alves <palves@redhat.com>
1428
1429 * infrun.c (user_visible_resume_ptid): Don't check
1430 singlestep_breakpoints_inserted_p.
1431
e558d7c1
PA
14322014-09-25 Pedro Alves <palves@redhat.com>
1433
1434 * breakpoint.c (should_be_inserted): Add debug output.
1435
7f89fd65
PA
14362014-09-25 Pedro Alves <palves@redhat.com>
1437
1438 * infrun.c (stepping_past_instruction_at)
1439 (clear_exit_convenience_vars): Point at infrun.h instead of
1440 inferior.h.
1441 (handle_signal_stop): Fix typo.
1442
b7576e5c
YQ
14432014-09-24 Yao Qi <yao@codesourcery.com>
1444
1445 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
1446 bitmask.
1447
9a6cf368
GB
14482014-09-22 Gary Benson <gbenson@redhat.com>
1449
1450 * target.c (target_stop): Updated comment.
1451
03f4463b
GB
14522014-09-22 Gary Benson <gbenson@redhat.com>
1453
1454 * target/target.h (target_stop_ptid): Renamed as...
1455 (target_stop_and_wait): New function. Updated comment.
1456 All uses updated.
1457 (target_continue_ptid): Renamed as...
1458 (target_continue_no_signal): New function. Updated comment.
1459 All uses updated.
1460
a25a5a45
PA
14612014-09-22 Pedro Alves <palves@redhat.com>
1462
1463 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
1464 and "auto" merged.
1465 * breakpoint.c (enum ugll_insert_mode): New enum.
1466 (always_inserted_mode): Now a plain boolean.
1467 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
1468 (breakpoints_always_inserted_mode): Delete.
1469 (breakpoints_should_be_inserted_now): New function.
1470 (insert_breakpoints): Pass UGLL_INSERT to
1471 update_global_location_list instead of calling
1472 insert_breakpoint_locations manually.
1473 (create_solib_event_breakpoint_1): New, factored out from ...
1474 (create_solib_event_breakpoint): ... this.
1475 (create_and_insert_solib_event_breakpoint): Use
1476 create_solib_event_breakpoint_1 instead of calling
1477 insert_breakpoint_locations manually.
1478 (update_global_location_list): Change parameter type from boolean
1479 to enum ugll_insert_mode. All callers adjusted. Adjust to use
1480 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
1481 (update_global_location_list_nothrow): Change parameter type from
1482 boolean to enum ugll_insert_mode.
1483 (_initialize_breakpoint): "breakpoint always-inserted" option is
1484 now a boolean command. Update help text.
1485 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
1486 (breakpoints_should_be_inserted_now): New declaration.
1487 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
1488 Remove breakpoints_always_inserted_mode check.
1489 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
1490 * remote.c (remote_start_remote): Likewise.
1491
04086b45
PA
14922014-09-22 Pedro Alves <palves@redhat.com>
1493
1494 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
1495 (insert_breakpoints): Don't call insert_breakpoint_locations here.
1496 Instead, pass UGLL_INSERT to update_global_location_list.
1497 (update_global_location_list): Change parameter type from boolean
1498 to enum ugll_insert_mode. All callers adjusted. Adjust to use
1499 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
1500 (create_solib_event_breakpoint_1): New, factored out from ...
1501 (create_solib_event_breakpoint): ... this.
1502 (create_and_insert_solib_event_breakpoint): Use
1503 create_solib_event_breakpoint_1 instead of calling
1504 insert_breakpoint_locations manually.
1505 (update_global_location_list): Handle UGLL_INSERT.
1506
44702360
PA
15072014-09-22 Pedro Alves <palves@redhat.com>
1508
1509 * breakpoint.c (enum ugll_insert_mode): New enum.
1510 (update_global_location_list)
1511 (update_global_location_list_nothrow): Change parameter type from
1512 boolean to enum ugll_insert_mode. All callers adjusted.
1513
93c6145a
JB
15142014-09-19 Joel Brobecker <brobecker@adacore.com>
1515
1516 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
1517 SystemTap support in GDB.
1518
89a5711c
DB
15192014-09-19 Don Breazeal <donb@codesourcery.com>
1520
1521 * linux-nat.c (linux_handle_extended_wait): Call
1522 linux_ptrace_get_extended_event.
1523 (wait_lwp): Call linux_is_extended_waitstatus.
1524 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
1525 and linux_is_extended_waitstatus.
1526 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
1527 linux_ptrace_get_extended_event.
1528 (linux_ptrace_get_extended_event): New function.
1529 (linux_is_extended_waitstatus): New function.
1530 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
1531 (linux_is_extended_waitstatus): New declarations.
1532
c3b7b696
YQ
15332014-09-19 Yao Qi <yao@codesourcery.com>
1534
1535 * dwarf2read.c (dwarf_decode_lines): Update declaration.
1536 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
1537 comments. Callers update.
1538 (dwarf_decode_lines): Likewise.
1539 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
1540 comments. Skip the line table if 'lowpc' is greater than
1541 'address'. Don't check
1542 dwarf2_per_objfile->has_section_at_zero.
1543
2b4fd423
DE
15442014-09-18 Doug Evans <dje@google.com>
1545
1546 * NEWS: Mention new "producer" attribute of gdb.Symtab.
1547 * python/py-symtab.c (stpy_get_producer): New function.
1548 (symtab_object_getset): Add "producer" attribute.
1549
5e43d467
UW
15502014-09-17 Ulrich Weigand  <uweigand@de.ibm.com>
1551
1552 PR gdb/17384
1553 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
1554 (do_captured_read_memory_integer): Remove.
1555 (safe_read_memory_integer): Use target_read_memory directly instead
1556 of catching errors in do_captured_read_memory_integer.
1557
04e79979
MR
15582014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
1559
1560 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
1561 not gdb/doc.
1562
76aeec5b
SDJ
15632014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1564
1565 * objc-lang.c (find_implementation_from_class): Remove dead code.
1566
2f693f9d
SDJ
15672014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1568
1569 PR cli/7233
1570 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
1571 "fprintf_unfiltered (gdb_stdlog...)".
1572
bb9d5f81
PP
15732014-09-16 Patrick Palka <patrick@parcs.ath.cx>
1574
1575 PR breakpoints/12526
1576 * breakpoint.h (struct watchpoint): New fields val_bitpos and
1577 val_bitsize.
1578 * breakpoint.c (watch_command_1): Use these fields to retain
1579 bitfield information.
1580 (extract_bitfield_from_watchpoint_value): New function.
1581 (watchpoint_check): Use it.
1582 (update_watchpoint): Use it. Optimize the address and length of a
1583 HW watchpoint pointing to a bitfield.
1584 * value.h (unpack_value_bitfield): New prototype.
1585 * value.c (unpack_value_bitfield): Make extern.
1586
05db5edd
ST
15872014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
1588
1589 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
1590 x86-dregs.o.
1591 * gnu-nat.c (inf_threads): New function.
1592 * gnu-nat.h (inf_threads_ftype): New typedef.
1593 (inf_threads): New declaration.
1594 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
1595 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
1596 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
1597 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
1598 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
1599 (i386_gnu_dr_get_control): New functions.
1600 (reg_addr): New structure.
1601 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
1602 i386 debugging register hooks.
1603 * NEWS: Mention this.
1604
5a578da5
OJ
16052014-08-13 Omair Javaid <omair.javaid@linaro.org>
1606
1607 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
1608 vector data transfer instructions.
1609 (arm_record_coproc_data_proc): Updated.
1610
f20f80dd
OJ
16112014-08-13 Omair Javaid <omair.javaid@linaro.org>
1612
1613 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
1614 arm_record_exreg_ld_st_insn.
1615 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
1616 load/store insns.
1617
851f26ae
OJ
16182014-08-13 Omair Javaid <omair.javaid@linaro.org>
1619
1620 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
1621 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
1622 processing instructions.
1623
1e1b6563
OJ
16242014-08-13 Omair Javaid <omair.javaid@linaro.org>
1625
1626 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
1627 for advance SIMD struct ld/st insn.
1628 (thumb2_record_decode_insn_handler): Replace stub handler with
1629 thumb2_record_asimd_struct_ld_st.
1630
60cc5e93
OJ
16312014-08-13 Omair Javaid <omair.javaid@linaro.org>
1632
1633 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
1634 for asimd, vfp and coprocessor insns.
1635 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
1636 and coprocessor insns.
1637 (thumb2_record_coproc_insn): New function.
1638 (thumb2_record_decode_insn_handler): Update coprocessor insns record
1639 handlers.
1640 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
1641 opcode 110 insns.
1642
81219e53
DE
16432014-09-13 Doug Evans <xdje42@gmail.com>
1644
1645 * NEWS: Mention new "queue-signal" command.
1646 * infcmd.c (queue_signal_command): New function.
1647 (_initialize_infcmd): Add new queue-signal command.
1648
d36bf488
DE
16492014-09-13 Doug Evans <xdje42@gmail.com>
1650
1651 * linux-nat.c (wait_lwp): Add debugging printf.
1652 (linux_nat_wait_1): Ditto.
1653
f37f681c
PA
16542014-09-12 Pedro Alves <palves@redhat.com>
1655
1656 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
1657 (create_and_insert_solib_event_breakpoint): New functions.
1658 * breakpoint.h (create_and_insert_solib_event_breakpoint)
1659 (remove_solib_event_breakpoints_at_next_stop): New declarations.
1660 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
1661 (remove_dbx_link_breakpoint): Delete function.
1662 (insert_dbx_link_bpt_in_file): Use
1663 create_and_insert_solib_event_breakpoint instead of
1664 deprecated_insert_raw_breakpoint.
1665 (procfs_wait): Don't check whether we hit __dbx_link here.
1666 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
1667 here.
1668 * solib-irix.c (base_breakpoint): Delete global.
1669 (disable_break): Delete function.
1670 (enable_break): Use create_solib_event_breakpoint
1671 instead of deprecated_insert_raw_breakpoint.
1672 (irix_solib_handle_event): New function.
1673 (irix_solib_create_inferior_hook): Don't run the target or disable
1674 the mapping-complete breakpoint here.
1675 (_initialize_irix_solib): Install irix_solib_handle_event as
1676 so_ops->handle_event hook.
1677
9d9bf2df
EBM
16782014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1679 Ulrich Weigand  <uweigand@de.ibm.com>
1680
1681 PR tdep/17379
1682 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
1683 instead of read_memory_unsigned_integer.
1684
b006a80e
GB
16852014-09-12 Gary Benson <gbenson@redhat.com>
1686
1687 * nat/linux-waitpid.c: Include common-defs.h.
1688 [GDBSERVER]: Add FIXME comment.
1689 [!GDBSERVER]: Don't include defs.h or signal.h.
1690 (linux_debug) [!GDBSERVER]: Remove empty block.
1691
296b1496
GB
16922014-09-12 Gary Benson <gbenson@redhat.com>
1693
1694 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
1695 Don't include defs.h or server.h.
1696
53f81362
GB
16972014-09-12 Gary Benson <gbenson@redhat.com>
1698
1699 * nat/linux-btrace.c: Include common-defs.h.
1700 Don't include defs.h, server.h or gdbthread.h.
1701 * nat/linux-btrace.h (struct target_ops): New forward declaration.
1702
727605ca
GB
17032014-09-12 Gary Benson <gbenson@redhat.com>
1704
1705 * common/agent.c: Include common-defs.h.
1706 Don't include defs.h or server.h.
1707 * common/buffer.c: Likewise.
1708 * common/common-debug.c: Likewise.
1709 * common/common-utils.c: Likewise.
1710 * common/errors.c: Likewise.
1711 * common/filestuff.c: Likewise.
1712 * common/format.c: Likewise.
1713 * common/gdb_vecs.c: Likewise.
1714 * common/print-utils.c: Likewise.
1715 * common/ptid.c: Likewise.
1716 * common/rsp-low.c: Likewise.
1717 * common/signals.c: Likewise.
1718 * common/vec.c: Likewise.
1719 * common/xml-utils.c: Likewise.
1720 * nat/linux-osdata.c: Likewise.
1721 * nat/linux-procfs.c: Likewise.
1722 * nat/linux-ptrace.c: Likewise.
1723 * nat/mips-linux-watch.c: Likewise.
1724 * target/waitstatus.c: Likewise.
1725
361c8ade
GB
17262014-09-12 Tom Tromey <tromey@redhat.com>
1727 Gary Benson <gbenson@redhat.com>
1728
1729 * common/common-regcache.h: New file.
1730 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
1731 * regcache.h: Include common-regcache.h.
1732 (regcache_read_pc): Don't declare.
1733 * regcache.c (get_thread_regcache_for_ptid): New function.
1734 * nat/linux-btrace.c: Don't include regcache.h.
1735 Include common-regcache.h.
1736 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
1737
a01cbb49
TS
17382014-09-11 Thomas Schwinge <thomas@codesourcery.com>
1739
1740 * regcache.h (struct regset): Declare.
1741
98880d46
PA
17422014-09-11 Pedro Alves <palves@redhat.com>
1743
1744 PR gdb/17347
1745 * main.c: Include "infrun.h".
1746 (catch_command_errors, catch_command_errors_const): Wait for the
1747 foreground command to complete.
1748 * top.c (maybe_wait_sync_command_done): New function, factored out
1749 from ...
1750 (maybe_wait_sync_command_done): ... here.
1751 * top.h (maybe_wait_sync_command_done): New declaration.
1752
bd9269f7
GB
17532014-09-11 Tom Tromey <tromey@redhat.com>
1754 Gary Benson <gbenson@redhat.com>
1755
1756 * common/symbol.h: New file.
1757 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
1758 * minsyms.c (find_minimal_symbol_address): New function.
1759 * common/agent.c: Include common/symbol.h.
1760 [!GDBSERVER]: Don't include objfiles.h.
1761 (agent_look_up_symbols): Use find_minimal_symbol_address.
1762
f8c1d06b
GB
17632014-09-11 Gary Benson <gbenson@redhat.com>
1764
1765 * target/target.h (target_stop_ptid, target_continue_ptid):
1766 Declare.
1767 * target.c (target_stop_ptid, target_continue_ptid): New
1768 functions.
1769 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
1770 (agent_run_command): Always use target_stop_ptid and
1771 target_continue_ptid.
1772
721ec300
GB
17732014-09-11 Tom Tromey <tromey@redhat.com>
1774 Gary Benson <gbenson@redhat.com>
1775
1776 * target/target.h: New file.
1777 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
1778 * target.h: Include target/target.h.
1779 (target_read_memory, target_write_memory): Don't declare.
1780 * target.c (target_read_uint32): New function.
1781 * common/agent.c: Include target/target.h.
1782 [!GDBSERVER]: Don't include target.h.
1783 (helper_thread_id): Type changed to uint32_t.
1784 (agent_get_helper_thread_id): Use target_read_uint32.
1785 (agent_run_command): Always use target_read_memory and
1786 target_write_memory.
1787 (agent_capability): Type changed to uint32_t.
1788 (agent_capability_check): Use target_read_uint32.
1789
c5e92cca
GB
17902014-09-11 Gary Benson <gbenson@redhat.com>
1791
1792 * common/common-debug.h (show_debug_regs): Declare.
1793 * common/common-debug.c (show_debug_regs): Define.
1794 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
1795 all uses with show_debug_regs. Replace all uses that considered
1796 debug_hw_points as a multi-value integer with straight boolean
1797 uses.
1798 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
1799 with show_debug_regs.
1800 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
1801 all uses with show_debug_regs.
1802 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
1803 uses with show_debug_regs.
1804
eeef931a
UW
18052014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
1806
1807 * findvar.c (address_from_register): Handle targets requiring
1808 a special conversion routine even for plain pointer types.
1809
8efa9855
UW
18102014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
1811
1812 * rs6000-nat.c (exec_one_dummy_insn): Remove.
1813 (store_register): Do not call exec_one_dummy_insn.
1814
eb479039
JB
18152014-09-10 Joel Brobecker <brobecker@adacore.com>
1816
1817 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
1818 dereference it first. Use value_enclosing_type instead of
1819 value_type.
1820 (ada_array_length): Likewise.
1821
deede10c
JB
18222014-09-10 Joel Brobecker <brobecker@adacore.com>
1823
1824 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
1825 Adjust function implementation and documentation accordingly.
1826 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
1827 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
1828 Update call to ada_value_ptr_subscript.
1829
7828a5f5
JB
18302014-09-10 Joel Brobecker <brobecker@adacore.com>
1831
1832 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
1833 instead of VAL's type.
1834
35782f14
JB
18352014-09-10 Joel Brobecker <brobecker@adacore.com>
1836
1837 * amd64-linux-nat.c: Add <sys/uio.h> #include.
1838
d342a0da
DE
18392014-09-09 Doug Evans <xdje42@gmail.com>
1840
1841 PR guile/17367
1842 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
1843 last parameter to pkg-config, not first.
1844 * configure.ac: Pass --with-guile provided pkg-config path to
1845 GDB_GUILE_PROGRAM_NAMES.
1846 * configure: Regenerate.
1847
b4a3d263
GKB
18482014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
1849
1850 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
1851 Bertazi".
1852
6e466374
MR
18532014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
1854
1855 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
1856 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
1857 the list of sections determining GDB_OSABI_IRIX.
1858
a1ada89a
JH
18592014-09-09 James Hogan <james.hogan@imgtec.com>
1860
1861 * MAINTAINERS (Write After Approval): Add "James Hogan".
1862
86db008d
JH
18632014-09-09 James Hogan <james.hogan@imgtec.com>
1864
1865 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
1866
72fde3df
JB
18672014-09-09 Joel Brobecker <brobecker@adacore.com>
1868
1869 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
1870
92d8d229
DE
18712014-09-08 Doug Evans <xdje42@gmail.com>
1872
1873 PR 17247
1874 * guile.c: #include <signal.h>.
1875 (_initialize_guile): Block SIGCHLD while initializing Guile.
1876
1877 Replaces the following, which is reverted.
1878
1879 2014-07-26 Doug Evans <xdje42@gmail.com>
1880
1881 PR 17185
1882 * configure.ac: Add check for header gc/gc.h.
1883 Add check for function setenv.
1884 * configure: Regenerate.
1885 * config.in: Regenerate.
1886 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1887
d81412aa
DE
18882014-09-08 Doug Evans <xdje42@gmail.com>
1889
1890 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
1891 with named constant. Fix style of pointer comparison.
1892 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
1893
a9f116cb
GKB
18942014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
1895
1896 PR gdb/17035
1897 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
1898 decide whether we display the command on "show user".
1899 * cli/cli-script.c (show_user_1): Only verify cmdlines after
1900 printing command name.
1901 * cli/cli-decode.h (cli_user_command_p): Declare new function.
1902 * cli/cli-decode.c (cli_user_command_p): Create helper function
1903 to verify whether cmd_list_element is a user-defined command.
1904
c75bd3a2
JK
19052014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1906
1907 PR python/17355
1908 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
1909 Fix goto out of TRY_CATCH.
1910
faa42425 19112014-09-06 Doug Evans <xdje42@gmail.com>
1a52a81c 1912 Tom Tromey <tromey@redhat.com>
faa42425
DE
1913
1914 PR 15276
1915 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
1916 $_any_caller_matches.
1917 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
1918 * python/lib/gdb/function/caller_is.py: New file.
1919
0d41ba00
DE
19202014-09-06 Doug Evans <xdje42@gmail.com>
1921
1922 * infcmd.c (program_info): Fix typo.
1923
474ca4f6
SDJ
19242014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
1925
1926 PR gdb/17235
1927 * stap-probe.c (stap_parse_single_operand): Delete unused variable
1928 'number'. New variable 'has_digit'. Rewrite code to deal with
1929 subexpressions on SDT probes.
1930
ebf13736
PA
19312014-09-04 Pedro Alves <palves@redhat.com>
1932
1933 * c-exp.y (parse_number): Skip handling base-switching prefixes if
1934 the input is only one character long.
1935
eb0b0463
SDJ
19362014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
1937
1938 PR fortran/17237
1939 * f-valprint.c (f_val_print): Specify the correct print option to
1940 use when printing integer values.
1941
5ee44bfa
GB
19422014-09-04 Gary Benson <gbenson@redhat.com>
1943
1944 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
1945 Remove code to cope with LWPs wrapped as PIDs.
1946 Add assertions to ensure no wrapped LWPs are passed.
1947
4875ffdb
PA
19482014-09-04 Pedro Alves <palves@redhat.com>
1949
1950 * value.c (value_ranges_copy_adjusted): New function, factored out
1951 from ...
1952 (value_contents_copy_raw): ... here.
1953 (unpack_value_bits_as_long_1): Rename back to ...
1954 (unpack_bits_as_long): ... this. Remove 'original_value' and
1955 'result' parameters. Change return type to LONGEST.
1956 (unpack_value_bits_as_long): Delete.
1957 (unpack_value_field_as_long_1): Delete.
1958 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
1959 (unpack_value_bitfield): New function.
1960 (value_field_bitfield): Reimplement using unpack_value_bitfield.
1961 (value_fetch_lazy): Use unpack_value_bitfield.
1962 * value.h (unpack_value_bits_as_long): Delete declaration.
1963
5f3b99cf
SS
19642014-09-03 Sasha Smundak <asmundak@google.com>
1965
1966 * python/py-frame.c (frapy_read_register): New function.
1967
ac740bc7
JH
19682014-09-03 James Hogan <james.hogan@imgtec.com>
1969
1970 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
1971 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
1972
7d793aa9
SDJ
19732014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
1974
1975 PR python/16699
1976 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
1977 function.
1978 (add_cmd): Set "completer_handle_brkchars" to NULL.
1979 * cli/cli-decode.h (struct cmd_list_element)
1980 <completer_handle_brkchars>: New field.
1981 * command.h (completer_ftype_void): New typedef.
1982 (set_cmd_completer_handle_brkchars): New prototype.
1983 * completer.c (set_gdb_completion_word_break_characters): New
1984 function.
1985 (complete_line_internal): Call "completer_handle_brkchars"
1986 callback from command.
1987 * completer.h: Include "command.h".
1988 (set_gdb_completion_word_break_characters): New prototype.
1989 * python/py-cmd.c (cmdpy_completer_helper): New function.
1990 (cmdpy_completer_handle_brkchars): New function.
1991 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
1992 (cmdpy_init): Set completer_handle_brkchars to
1993 cmdpy_completer_handle_brkchars.
1994
97ea6506
GB
19952014-09-03 Gary Benson <gbenson@redhat.com>
1996
1997 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
1998 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
1999 Loop conditions changed to equivalent form.
2000 (struct x86_debug_reg_state): Updated dr_ref_count comment.
2001 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
2002 ALL_DEBUG_ADDRESS_REGISTERS.
2003
d1437815
JB
20042014-09-03 Joel Brobecker <brobecker@adacore.com>
2005
2006 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
2007 description fix.
2008
9b94fcf1
DE
20092014-09-02 Doug Evans <dje@google.com>
2010
2011 * typeprint.c (find_global_typedef): Fix comment.
2012
df7e5265
GB
20132014-09-02 Gary Benson <gbenson@redhat.com>
2014
2015 * i386-nat.h: Renamed as...
2016 * x86-nat.h: New file. All type, function and variable name
2017 prefixes changed from "i386_" to "x86_". All references updated.
2018 * i386-nat.c: Renamed as...
2019 * x86-nat.c: New file. All type, function and variable name
2020 prefixes changed from "i386_" to "x86_". All references updated.
2021 * common/i386-xstate.h: Renamed as...
2022 * common/x86-xstate.h: New file. All type, function and variable
2023 name prefixes changed from "i386_" to "x86_". All references
2024 updated.
2025 * nat/i386-cpuid.h: Renamed as...
2026 * nat/x86-cpuid.h: New file. All type, function and variable name
2027 prefixes changed from "i386_" to "x86_". All references updated.
2028 * nat/i386-gcc-cpuid.h: Renamed as...
2029 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
2030 name prefixes changed from "i386_" to "x86_". All references
2031 updated.
2032 * nat/i386-dregs.h: Renamed as...
2033 * nat/x86-dregs.h: New file. All type, function and variable name
2034 prefixes changed from "i386_" to "x86_". All references updated.
2035 * nat/i386-dregs.c: Renamed as...
2036 * nat/x86-dregs.c: New file. All type, function and variable name
2037 prefixes changed from "i386_" to "x86_". All references updated.
2038
1c3569d4
MR
20392014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
2040
2041 * varobj.c (_initialize_varobj): Move to the end of file.
2042
ff55e1b5
GB
20432014-08-29 Gary Benson <gbenson@redhat.com>
2044
2045 * common/common-exceptions.h: New file.
2046 * common/common-exceptions.c: Likewise.
2047 * Makefile.in (SFILES): Add common/common-exceptions.c.
2048 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
2049 (COMMON_OBS): Add common-exceptions.o.
2050 (common-exceptions.o): New rule.
2051 * exceptions.h (common-exceptions.h): Include.
2052 (gdb_setjmp.h): Do not include.
2053 (return_reason): Moved to common-exceptions.h.
2054 (enum return_reason): Likewise.
2055 (RETURN_MASK): Likewise.
2056 (typedef return_mask): Likewise.
2057 (enum errors): Likewise.
2058 (struct gdb_exception): Likewise.
2059 (exceptions_state_mc_init): Likewise.
2060 (exceptions_state_mc_action_iter): Likewise.
2061 (exceptions_state_mc_action_iter_1): Likewise.
2062 (TRY_CATCH): Likewise.
2063 (throw_exception): Likewise.
2064 (throw_verror): Likewise.
2065 (throw_vquit): Likewise.
2066 (throw_error): Likewise.
2067 (throw_quit): Likewise.
2068 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
2069 (enum catcher_action): Likewise.
2070 (struct catcher): Likewise.
2071 (current_catcher): Likewise.
2072 (catcher_list_size): Likewise.
2073 (exceptions_state_mc_init): Likewise.
2074 (catcher_pop): Likewise.
2075 (exceptions_state_mc): Likewise.
2076 (exceptions_state_mc_action_iter): Likewise.
2077 (exceptions_state_mc_action_iter_1): Likewise.
2078 (throw_exception): Likewise.
2079 (exception_messages): Likewise.
2080 (exception_messages_size): Likewise.
2081 (throw_it): Likewise.
2082 (throw_verror): Likewise.
2083 (throw_vquit): Likewise.
2084 (throw_error): Likewise.
2085 (throw_quit): Likewise.
2086 (prepare_to_throw_exception): New function.
2087
e9bcb658
GB
20882014-08-29 Gary Benson <gbenson@redhat.com>
2089
2090 * common/gdb_setjmp.h: New file.
2091 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
2092 * configure.ac: Move sigsetjmp check...
2093 * common/common.m4: ...here.
2094 * configure: Regenerate.
2095 * cp-support.c (SIGJMP_BUF): Delete.
2096 (SIGSETJMP): Likewise.
2097 (SIGLONGJMP): Likewise.
2098 * exceptions.h (gdb_setjmp.h): Include.
2099 (setjmp.h): Do not include.
2100 (EXCEPTIONS_SIGJMP_BUF): Delete.
2101 (EXCEPTIONS_SIGSETJMP): Likewise.
2102 (EXCEPTIONS_SIGLONGJMP): Likewise.
2103 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
2104 from gdb_setjmp.h.
2105 * exceptions.c: Likewise.
2106
e3180625
GB
21072014-08-29 Gary Benson <gbenson@redhat.com>
2108
2109 * cleanups.h: Moved to...
2110 * common/cleanups.h: New file.
2111 * cleanups.c: Moved to...
2112 * common/cleanups.c: New file. Include common-defs.h and
2113 cleanups.h. Do not include defs.h.
2114 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
2115 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
2116 (cleanups.o): New rule.
2117
e3d6ba5d
GB
21182014-08-29 Gary Benson <gbenson@redhat.com>
2119
2120 * common/errors.h (internal_warning): New declaration.
2121 (internal_vwarning): Likewise.
2122 * common/errors.c (internal_warning): New function.
2123 * utils.h (internal_warning): Don't declare.
2124 (internal_vwarning): Likewise.
2125 * utils.c (internal_warning): Removed.
2126
075c7033
GB
21272014-08-29 Gary Benson <gbenson@redhat.com>
2128
2129 * main.c (captured_main): Use warning during startup.
2130 Prefix startup warning messages with command name.
2131
91b35fd0
GB
21322014-08-29 Gary Benson <gbenson@redhat.com>
2133
2134 * main.c (captured_main): Handle usage errors with error.
2135
b1ec390e
GB
21362014-08-29 Gary Benson <gbenson@redhat.com>
2137
2138 * go32-nat.c (go32_create_inferior): Replace a fprintf/
2139 exit pair with a call to error. Wrap the message with _().
2140
fd0ef3dd
GB
21412014-08-29 Gary Benson <gbenson@redhat.com>
2142
2143 * main.c (captured_main): Replace a fprintf/exit
2144 pair with a call to error. Wrap the message with _().
2145
e0e6bcab
GB
21462014-08-29 Gary Benson <gbenson@redhat.com>
2147
2148 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
2149 pairs with calls to error. Wrap the message with _().
2150
0d2f5c07
GB
21512014-08-29 Gary Benson <gbenson@redhat.com>
2152
2153 * utils.c (vwarning): Protect calls to target_terminal_ours
2154 and wrap_here.
2155
5df43998
GB
21562014-08-29 Gary Benson <gbenson@redhat.com>
2157
2158 * exceptions.c (print_flush): Protect calls to
2159 target_terminal_ours and wrap_here.
2160
2437fd32
GB
21612014-08-29 Gary Benson <gbenson@redhat.com>
2162
2163 * utils.h (filtered_printing_initialized): New declaration.
2164 * utils.c (abort_with_message): New function.
2165 (internal_vproblem): Use abort_with_message for first level
2166 recursive internal problems, and if gdb_stderr is not set up.
2167 Protect calls to target_terminal_ours, begin_line and query.
2168
f1f58506
DE
21692014-08-28 Doug Evans <dje@google.com>
2170
2171 * symtab.c (in_prologue): Move definition to better spot.
2172 (skip_prologue_using_sal): Ditto.
2173
aab2f208
DE
21742014-08-28 Doug Evans <dje@google.com>
2175
2176 * symtab.c (find_function_start_sal): Move definition to better spot.
2177
6b65d1b6
YQ
21782014-08-28 Yao Qi <yao@codesourcery.com>
2179
2180 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
2181 found_stack_adjust in forward scan. Remove condition check
2182 on found_stack_adjust which is always true. Indent the code.
2183
a1b34d15
YQ
21842014-08-28 Yao Qi <yao@codesourcery.com>
2185
2186 * dwarf2read.c (dwarf_decode_lines): Update declaration.
2187 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
2188 (dwarf_decode_lines): Remove argument
2189 want_line_info. Remove condition check on want_line_info.
2190 Callers update.
2191
d5962de5
DE
21922014-08-27 Doug Evans <dje@google.com>
2193
2194 * dwarf2read.c (dwarf_record_line): Fix typo.
2195
9b139002
SDJ
21962014-08-27 Patrick Palka <patrick@parcs.ath.cx>
2197
2198 * target.h (struct target_ops::to_terminal_save_ours): Remove
2199 declaration.
2200 (target_terminal_save_ours): Remove macro.
2201 * target-delegates.c: Regenerate.
2202 * inf-child.c (inf_child_target): Don't set the nonexistent
2203 field to_terminal_save_ours.
2204 * inferior.h (child_terminal_save_ours): Remove declaration.
2205 * terminal.h (gdb_save_tty_state): New declaration.
2206 * inflow.c (child_terminal_save_ours): Rename to ...
2207 (gdb_save_tty_state): ... this.
2208 * tui/tui.c: Include terminal.h.
2209 (tui_enable): Use gdb_save_tty_state instead of
2210 target_terminal_save_ours.
2211 (tui_disable): Likewise.
2212
9debeba0
DE
22132014-08-25 Doug Evans <dje@google.com>
2214
2215 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
2216 Pass NULL instead of 0 for context pointer.
2217
428fc5fc
YQ
22182014-08-25 Yao Qi <yao@codesourcery.com>
2219
2220 * dwarf2read.c: Fix grammatical error.
2221
cdc07690
YQ
22222014-08-24 Yao Qi <yao@codesourcery.com>
2223
2224 * dwarf2read.c (scan_partial_symbols): Update comments.
2225 Rename argument 'need_pc' with 'set_addrmap'.
2226 (add_partial_namespace): Rename argument 'need_pc' with
2227 'set_addrmap'.
2228 (add_partial_module): Likewise.
2229 (add_partial_subprogram): Likewise. Update comments.
2230 (dwarf2_name): Fix typo.
2231
a05a36a5
DE
22322014-08-22 Doug Evans <dje@google.com>
2233
2234 PR 17276
2235 * dwarf2read.c (dwarf_record_line_p): New function.
2236 (dwarf_decode_lines_1): Ignore subsequent line number entries
2237 for the same line if any entry had a non-zero discriminator.
2238
252a6764
DE
22392014-08-22 Doug Evans <dje@google.com>
2240
2241 * buildsym.h (record_line_ftype): New typedef.
2242 (record_line): Use it.
2243 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
2244 (dwarf_decode_lines_1): Call them.
2245
510db052
YQ
22462014-08-22 Yao Qi <yao@codesourcery.com>
2247
2248 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
2249 (ctf_end): Remove code.
2250
22fd09ae
JK
22512014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2252
2253 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
2254 (linux_make_corefile_notes): call update_thread_list, protected against
2255 exceptions.
2256
656e8868
PA
22572014-08-21 Pedro Alves <palves@redhat.com>
2258
2259 * infcmd.c (attach_command): Remove comment.
2260
de589d04
WN
22612014-08-21 Bin Cheng <bin.cheng@arm.com>
2262
2263 * aarch64-linux-nat.c (dr_changed_t): Change the type from
2264 unsigned LONGEST to ULONGEST.
2265
2a31c623
PA
22662014-08-20 Pedro Alves <palves@redhat.com>
2267
2268 * Makefile.in (check-read1): New rule.
2269
d36430db
JB
22702014-08-20 Joel Brobecker <brobecker@adacore.com>
2271
2272 * value.c (value_from_contents_and_address): Strip resolved_type's
2273 typedef layers before checking its TYPE_DATA_LOCATION.
2274
000339af
PA
22752014-08-20 Pedro Alves <palves@redhat.com>
2276
2277 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
2278
5f52445b
YQ
22792014-08-20 Yao Qi <yao@codesourcery.com>
2280
2281 * amd64-tdep.c (amd64_classify): Add a blank line after the
2282 example. Move "*/" to a new line.
2283 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
2284 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
2285 * dwarf2read.c (psymtab_include_file_name): Likewise.
2286
9a0dc9e3
PA
22872014-08-19 Andrew Burgess <aburgess@broadcom.com>
2288 Pedro Alves <palves@redhat.com>
2289
2290 PR symtab/14604
2291 PR symtab/14605
2292 * ada-lang.c (coerce_unspec_val_to_type): Use
2293 value_contents_copy_raw.
2294 * ada-valprint.c (val_print_packed_array_elements): Adjust.
2295 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
2296 * cp-valprint.c (cp_print_value_fields): Let the common printing
2297 code handle optimized out values.
2298 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
2299 * d-valprint.c (dynamic_array_type): Use
2300 value_bits_any_optimized_out.
2301 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
2302 check_any_valid fields.
2303 (check_pieced_value_bits): Delete and inline ...
2304 (check_pieced_synthetic_pointer): ... here.
2305 (check_pieced_value_validity): Delete.
2306 (check_pieced_value_invalid): Delete.
2307 (pieced_value_funcs): Remove check_validity and check_any_valid
2308 fields.
2309 (read_pieced_value): Use mark_value_bits_optimized_out.
2310 (write_pieced_value): Switch to use
2311 mark_value_bytes_optimized_out.
2312 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
2313 of assuming the whole value is optimized out.
2314 * findvar.c (read_frame_register_value): Remove special handling
2315 of optimized out registers.
2316 (value_from_register): Use mark_value_bytes_optimized_out.
2317 * frame-unwind.c (frame_unwind_got_optimized): Use
2318 mark_value_bytes_optimized_out.
2319 * jv-valprint.c (java_value_print): Adjust.
2320 (java_print_value_fields): Let the common printing code handle
2321 optimized out values.
2322 * mips-tdep.c (mips_print_register): Remove special handling of
2323 optimized out registers.
2324 * opencl-lang.c (lval_func_check_validity): Delete.
2325 (lval_func_check_any_valid): Delete.
2326 (opencl_value_funcs): Remove check_validity and check_any_valid
2327 fields.
2328 * p-valprint.c (pascal_object_print_value_fields): Let the common
2329 printing code handle optimized out values.
2330 * stack.c (read_frame_arg): Remove special handling of optimized
2331 out values. Fetch both VAL and ENTRYVAL before comparing
2332 contents. Adjust to value_available_contents_eq rename.
2333 * valprint.c (valprint_check_validity)
2334 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
2335 (val_print_array_elements): Adjust.
2336 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
2337 (value_bits_any_optimized_out): New function.
2338 (value_entirely_covered_by_range_vector): New function, factored
2339 out from value_entirely_unavailable.
2340 (value_entirely_unavailable): Reimplement.
2341 (value_entirely_optimized_out): New function.
2342 (insert_into_bit_range_vector): New function, factored out from
2343 mark_value_bits_unavailable.
2344 (mark_value_bits_unavailable): Reimplement.
2345 (struct ranges_and_idx): New struct.
2346 (find_first_range_overlap_and_match): New function, factored out
2347 from value_available_contents_bits_eq.
2348 (value_available_contents_bits_eq): Rename to ...
2349 (value_contents_bits_eq): ... this. Check both unavailable
2350 contents and optimized out contents.
2351 (value_available_contents_eq): Rename to ...
2352 (value_contents_eq): ... this.
2353 (allocate_value_lazy): Remove reference to the old optimized_out
2354 boolean.
2355 (allocate_optimized_out_value): Use
2356 mark_value_bytes_optimized_out.
2357 (require_not_optimized_out): Adjust to check whether the
2358 optimized_out vec is empty.
2359 (ranges_copy_adjusted): New function, factored out from
2360 value_contents_copy_raw.
2361 (value_contents_copy_raw): Also copy the optimized out ranges.
2362 Assert the destination ranges aren't optimized out.
2363 (value_contents_copy): Update comment, remove call to
2364 require_not_optimized_out.
2365 (value_contents_equal): Adjust to check whether the optimized_out
2366 vec is empty.
2367 (set_value_optimized_out, value_optimized_out_const): Delete.
2368 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
2369 New functions.
2370 (value_entirely_optimized_out, value_bits_valid): Delete.
2371 (value_copy): Take a VEC copy of the 'optimized_out' field.
2372 (value_primitive_field): Remove special handling of optimized out.
2373 (value_fetch_lazy): Assert that lazy values have no unavailable
2374 regions. Use value_bits_any_optimized_out. Remove some special
2375 handling for optimized out values.
2376 * value.h: Add intro comment about <optimized out> and
2377 <unavailable>.
2378 (struct lval_funcs): Remove check_validity and check_any_valid
2379 fields.
2380 (set_value_optimized_out, value_optimized_out_const): Remove.
2381 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
2382 New declarations.
2383 (value_bits_any_optimized_out): New declaration.
2384 (value_bits_valid): Delete declaration.
2385 (value_available_contents_eq): Rename to ...
2386 (value_contents_eq): ... this, and extend comments.
2387
6694c411
JK
23882014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2389
2390 Fix -fsanitize=address on unreadable inferior strings.
2391 * valprint.c (val_print_string): Fix access before BUFFER.
2392
89a1c21a
SM
23932014-08-19 Simon Marchi <simon.marchi@ericsson.com>
2394
2395 * target.c (target_struct_size): Remove.
2396 (target_struct_allocsize): Remove.
2397 (DEFAULT_ALLOCSIZE): Remove.
2398 (target_ops_p): New typedef.
2399 (DEF_VEC_P (target_ops_p)): New vector type.
2400 (target_structs): Change type to VEC (target_ops_p).
2401 (add_target_with_completer): Replace "push" code by VEC_safe_push.
2402 (find_default_run_target): Rewrite for loop following changes to
2403 target_structs.
2404
cb417230
JB
24052014-08-19 Joel Brobecker <brobecker@adacore.com>
2406
2407 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
2408 Adjust code accordingly. Adjust function description comment.
2409
817e0957
YQ
24102014-08-19 Yao Qi <yao@codesourcery.com>
2411
2412 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
2413 types.
2414
2974be62
AM
24152014-08-19 Alan Modra <amodra@gmail.com>
2416
2417 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
2418 * config.in: Regenerate.
2419 * configure: Regenerate.
2420
34abf635
GB
24212014-08-19 Tom Tromey <tromey@redhat.com>
2422 Gary Benson <gbenson@redhat.com>
2423
2424 * common/common-debug.h: New file.
2425 * common/common-debug.c: Likewise.
2426 * debug.c: Likewise.
2427 * Makefile.in (SFILES): Add common/common-debug.c.
2428 (HFILES_NO_SRCDIR): Add common/common-debug.h.
2429 (COMMON_OBS): Add common-debug.o and debug.o.
2430 (common-debug.o): New rule.
2431 * common/common-defs.h: Include common-debug.h.
2432 * common/agent.c (debug_agent_printf): New function.
2433 (DEBUG_AGENT): Redefine.
2434 * nat/i386-dregs.c (debug_printf): Undefine.
2435
f6e94d78
GB
24362014-08-19 Gary Benson <gbenson@redhat.com>
2437
2438 * common/common-defs.h: Include print-utils.h.
2439 * utils.h: Do not include print-utils.h.
2440
9239eeab
GB
24412014-08-19 Tom Tromey <tromey@redhat.com>
2442 Gary Benson <gbenson@redhat.com>
2443
2444 * common/common-types.h: New file.
2445 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
2446 * common/common-defs.h: Include common-types.h.
2447 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
2448 (ULONGEST): Remove.
2449
ef87c8bb
GB
24502014-08-19 Tom Tromey <tromey@redhat.com>
2451 Gary Benson <gbenson@redhat.com>
2452
2453 * common/errors.h: New file.
2454 * common/errors.c: Likewise.
2455 * Makefile.in (SFILES): Add common/errors.c.
2456 (HFILES_NO_SRCDIR): Add common/errors.h.
2457 (COMMON_OBS): Add errors.o.
2458 (errors.o): New rule.
2459 * common/common-defs.h: Include errors.h.
2460 * utils.h (perror_with_name, error, verror, warning, vwarning):
2461 Don't declare.
2462 * common/common-utils.h: (malloc_failure, internal_error):
2463 Likewise.
2464
196a707b
GB
24652014-08-19 Gary Benson <gbenson@redhat.com>
2466
2467 * utils.c (internal_vproblem): Always print the message.
2468
ded4fc8f
DE
24692014-08-18 Doug Evans <dje@google.com>
2470
2471 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
2472
950c97d8
JB
24732014-08-18 Joel Brobecker <brobecker@adacore.com>
2474
2475 * ada-typeprint.c (type_is_full_subrange_of_target_type):
2476 Return 0 if TYPE is dynamic.
2477 (print_range): Add handling of dynamic ranges.
2478
3cdcd0ce
JB
24792014-08-18 Keven Boell <keven.boell@intel.com>
2480 Joel Brobecker <brobecker@adacore.com>
2481
2482 * gdbtypes.h (struct main_type): Add field "data_location".
2483 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
2484 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
2485 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
2486 a dynamic data location.
2487 (resolve_dynamic_type): Add DW_AT_data_location handling.
2488 (copy_recursive, copy_type): Copy the data_location information
2489 when present.
2490 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
2491 * value.c (value_from_contents_and_address): Add
2492 DW_AT_data_location handling.
2493
08412b07
JB
24942014-08-18 Keven Boell <keven.boell@intel.com>
2495 Joel Brobecker <brobecker@adacore.com>
2496
2497 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
2498 field "get_object_address".
2499 * dwarf2expr.c (execute_stack_op): Add handling for
2500 DW_OP_push_object_address.
2501 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
2502 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
2503 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
2504 (dwarf_expr_get_obj_addr): New function.
2505 (dwarf_expr_ctx_funcs): Add get_object_address field.
2506 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
2507 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
2508 (dwarf2_evaluate_property): Add parameter "address". Use it.
2509 (needs_get_obj_addr): New function.
2510 (needs_frame_ctx_funcs): Add get_object_address field.
2511 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
2512 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
2513 (resolve_dynamic_array): Likewise.
2514
84754697
JB
25152014-08-18 Joel Brobecker <brobecker@adacore.com>
2516
2517 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
2518 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
2519 fixed value for records and unions for which some GNAT encodings
2520 are present.
2521
da5c522f
JB
25222014-08-18 Joel Brobecker <brobecker@adacore.com>
2523
2524 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
2525 rewrite to avoid "else if" and "else" constructs. Should be
2526 a no-op in practice.
2527
0d72a7c3
JB
25282014-08-18 Joel Brobecker <brobecker@adacore.com>
2529
2530 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
2531 of lexical block.
2532
e66d4446
SC
25332014-08-15 Siva Chandra Reddy <sivachandra@google.com>
2534
2535 PR c++/17132
2536 * eval.c: Update all calls to find_overload_match.
2537 * valarith.c: Likewise.
2538 (value_user_defined_cpp_op, value_user_defined_op): New
2539 argument NOSIDE. Update all callers.
2540 * valops.c (find_overload_match): New argument NOSIDE.
2541 * value.h (find_overload_match): Update signature.
2542
940df408
SC
25432014-08-15 Siva Chandra Reddy <sivachandra@google.com>
2544
2545 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
2546 'items' methods instead of 'iteritems' method on dictionaries.
2547
699ca60a
DE
25482014-08-15 Doug Evans <dje@google.com>
2549
2550 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
2551 closer to use.
2552
37780ee5
DE
25532014-08-15 Doug Evans <dje@google.com>
2554
2555 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
2556
0ad93d4f
DE
25572014-08-15 Doug Evans <dje@google.com>
2558
2559 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
2560
20d8c372
DE
25612014-08-15 Doug Evans <dje@google.com>
2562
2563 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
2564 unused.
2565
cb039ba4
EZ
25662014-08-15 Eli Zaretskii <eliz@gnu.org>
2567
2568 * dcache.h: Include target.h, to avoid compile time warnings.
2569
eb7a547a
JB
25702014-08-15 Joel Brobecker <brobecker@adacore.com>
2571
2572 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
2573 frame_info" partial declaration.
2574 * gdbarch.h: Regenerate.
2575
783cecc8
YQ
25762014-08-15 Yao Qi <yao@codesourcery.com>
2577
2578 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
2579 Add parameter 'decode_for_pst_p'. Callers update.
2580
65c749e7
YQ
25812014-08-13 Yao Qi <yao@codesourcery.com>
2582
2583 PR build/17104
2584 * configure.ac: Use local variable 'pos'.
2585 * configure: Regenerated.
2586
d769e349
DE
25872014-08-11 Doug Evans <dje@google.com>
2588
2589 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
2590 message, it is redundant with "Reading symbols from ..." message.
2591
24f1235e
DE
25922014-08-10 Doug Evans <xdje42@gmail.com>
2593
2594 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
2595
dcd2e6ef
YQ
25962014-08-09 Yao Qi <yao@codesourcery.com>
2597
2598 PR remote/9053
2599 * remote.c (remote_xfer_partial): Remove dead code.
2600
070bdf0b
AA
26012014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2602
2603 * ia64-linux-tdep.c: Include "regset.h".
2604 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
2605 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
2606 (ia64_linux_supply_fpregset): New function.
2607 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
2608 (ia64_linux_regset_from_core_section): New function.
2609 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
2610 method.
2611
08f9f542
AA
26122014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2613
2614 * m68klinux-tdep.c: Include "regset.h".
2615 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
2616 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
2617 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
2618 (m68k_linux_regset_from_core_section): New function.
2619 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
2620 method.
2621
8f1cee41
AA
26222014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2623
2624 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
2625 function. Move logic to...
2626 (tilegx_linux_regmap): ... this new register map.
2627 (tilegx_linux_regset): Refer to register map, replace supply
2628 method by regcache_supply_regset, and add collect method.
2629 * tilegx-tdep.h (enum tilegx_regnum): New enum value
2630 TILEGX_FIRST_EASY_REGNUM.
2631
c5741217
AA
26322014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2633
2634 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
2635 that calls regcache_supply_regset and handles the EPC register
2636 separately. Move main logic to...
2637 (score7_linux_gregmap): ... this new register map.
2638 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
2639 (score7_linux_gregset): Refer to register map. Add collect method.
2640 (score7_linux_regset_from_core_section): Replace
2641 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
2642 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
2643 (struct regset): Delete unused forward declaraction.
2644 (struct pt_regs): Delete structure definition.
2645 (elf_gregset_t): Delete typedef.
2646
81580573
AA
26472014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2648
2649 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
2650 (nios2_core_regset): Add collect method.
2651
ba199d7d
AA
26522014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2653
2654 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
2655 platform-independent and don't write to read-only input buffer.
2656 (m32r_linux_collect_gregset): New function.
2657 (m32r_linux_gregset): Add collect method.
2658
0006a9da
AA
26592014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2660
2661 * hppa-linux-tdep.c (greg_map): Rename to...
2662 (hppa_linux_gregmap): ... this. Also convert to
2663 regcache_map_entry format.
2664 (hppa_linux_supply_regset): Delete function.
2665 (hppa_linux_supply_fpregset): Delete function. Move logic to...
2666 (hppa_linux_fpregmap): ... this new register map.
2667 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
2668 register map, replace supply method by regcache_supply_regset, and
2669 add collect method regcache_collect_regset.
2670
901e1b23
AA
26712014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2672
2673 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
2674 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
2675 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
2676 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
2677 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
2678 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
2679 (frv_linux_supply_gregset): Replace main logic by call to
2680 regcache_supply_regset, but keep clearing gr32-gr63.
2681 (frv_linux_supply_fpregset): Delete function.
2682 (frv_linux_gregset): Refer to appropriate register map and add
2683 regcache_collect_regset as the collect method.
2684 (frv_linux_fpregset): Likewise. Also exchange the supply method
2685 by regcache_supply_regset.
2686
1d6e7555
AA
26872014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2688
2689 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
2690 by call to alpha_supply_int_regs.
2691 (alpha_linux_collect_gregset): New function.
2692 (alpha_linux_supply_fpregset): Replace logic by call to
2693 alpha_supply_fp_regs.
2694 (alpha_linux_collect_fpregset): New function.
2695 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
2696
d4d793bf
AA
26972014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2698
2699 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
2700 by call to regcache_collect_regset.
2701 (supply_gregset, supply_fpregset): Call regcache_supply_regset
2702 instead of aarch64_linux_supply_gregset/_fpregset.
2703 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
2704 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
2705 header file instead.
2706 (aarch64_linux_supply_gregset, supply_gregset_from_core)
2707 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
2708 functions. Move logic to ...
2709 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
2710 register maps.
2711 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
2712 refer to new register maps, replace *_regset_from_core by
2713 regcache_supply_regset, and also use regcache_collect_regset.
2714 * aarch64-linux-tdep.h: Include "regset.h".
2715 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
2716 Delete prototypes.
2717 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
2718 macros, moved from C source file.
2719 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
2720 variable declarations.
2721
99b7da5d
AA
27222014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2723
2724 * s390-linux-nat.c: Include "regset.h".
2725 (regmap_gregset): Delete macro.
2726 (s390_64_regmap_gregset): New register map for
2727 regcache_supply/_collect_regset.
2728 (s390_64_gregset): New regset.
2729 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
2730 (regmap_fpregset): Delete macro.
2731 (s390_native_supply, s390_native_collect): Delete functions.
2732 (supply_gregset, fill_gregset): Replace s390-specific regmap
2733 handling by a call to regcache_supply/_collect_regset.
2734 (supply_fpregset, fill_fpregset): Call regcache_supply/
2735 _collect_regset instead of s390_native_supply/_collect.
2736 (fetch_regset, store_regset): Likewise. Also change the last
2737 parameter to a regset instead of a regmap.
2738 (s390_linux_fetch_inferior_registers)
2739 (390_linux_store_inferior_registers): Adjust last parameter in
2740 calls to fetch_regset and store_regset.
2741 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
2742 (s390_gregmap): ... this. Also make static const and convert to
2743 regcache_map_entry format.
2744 (s390x_regmap_gregset): Delete.
2745 (s390_regmap_fpregset): Rename to...
2746 (s390_fpregmap): ... this. Make static const and convert to
2747 regcache_map_entry format.
2748 (s390_regmap_upper, s390_regmap_last_break)
2749 (s390x_regmap_last_break, s390_regmap_system_call)
2750 (s390_regmap_tdb): Likewise.
2751 (s390_supply_regset, s390_collect_regset): Remove functions.
2752 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
2753 s390_supply_regset.
2754 (s390_gregset, s390_fpregset, s390_upper_regset)
2755 (s390_last_break_regset, s390x_last_break_regset)
2756 (s390_system_call_regset, s390_tdb_regset): Make global and
2757 replace s390_supply/_collect_regset by regcache_supply/
2758 _collect_regset.
2759 (s390x_gregset): Delete.
2760 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
2761 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
2762 (s390_regmap_fpregset, s390_regmap_last_break)
2763 (s390x_regmap_last_break, s390_regmap_system_call)
2764 (s390_regmap_tdb): Delete global variable declarations.
2765 (s390_gregset, s390_fpregset, s390_last_break_regset)
2766 (s390x_last_break_regset, s390_system_call_regset)
2767 (s390_tdb_regset): New global variable declarations.
2768
0b309272
AA
27692014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2770
2771 * regcache.c: Include "regset.h".
2772 (regcache_transfer_regset): New local function.
2773 (regcache_supply_regset, regcache_collect_regset): New functions.
2774 * regcache.h (struct regcache_map_entry): New structure.
2775 (REGCACHE_MAP_SKIP): New enum value.
2776 (regcache_supply_regset, regcache_collect_regset): New prototypes.
2777
7fefa8d7
AA
27782014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2779
2780 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
2781 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
2782 (ppc_linux_collect_gregset ): Likewise.
2783 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
2784 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
2785 (ppc_collect_vrregset): Likewise.
2786 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
2787 Likewise.
2788
96c4f946
YQ
27892014-08-07 Yao Qi <yao@codesourcery.com>
2790
2791 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
2792 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
2793 * remote.c (remote_read_bytes): Likewise.
2794
fffbe6a8
YQ
27952014-08-07 Yao Qi <yao@codesourcery.com>
2796
2797 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
2798
5ee8a82c
YQ
27992014-08-07 Yao Qi <yao@codesourcery.com>
2800
2801 PR remote/17230
2802 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
2803 TARGET_XFER_OK instead of 0.
2804
bb974a24
GB
28052014-08-07 Gary Benson <gbenson@redhat.com>
2806
2807 * common/common-defs.h: Include errno.h.
2808 * defs.h: Do not include errno.h.
2809 * ada-typeprint.c: Likewise.
2810 * c-typeprint.c: Likewise.
2811 * core-regset.c: Likewise.
2812 * corefile.c: Likewise.
2813 * corelow.c: Likewise.
2814 * event-loop.c: Likewise.
2815 * f-typeprint.c: Likewise.
2816 * gnu-nat.c: Likewise.
2817 * go32-nat.c: Likewise.
2818 * i386gnu-nat.c: Likewise.
2819 * m2-typeprint.c: Likewise.
2820 * nat/linux-btrace.c: Likewise.
2821 * p-typeprint.c: Likewise.
2822 * procfs.c: Likewise.
2823 * remote-sim.c: Likewise.
2824 * rs6000-nat.c: Likewise.
2825 * target.c: Likewise.
2826 * typeprint.c: Likewise.
2827 * ui-file.c: Likewise.
2828 * valops.c: Likewise.
2829 * valprint.c: Likewise.
2830
6d3d12eb
GB
28312014-08-07 Gary Benson <gbenson@redhat.com>
2832
2833 * common/common-defs.h: Include string.h.
2834 * aarch64-tdep.c: Do not include string.h.
2835 * ada-exp.y: Likewise.
2836 * ada-lang.c: Likewise.
2837 * ada-lex.l: Likewise.
2838 * ada-typeprint.c: Likewise.
2839 * ada-valprint.c: Likewise.
2840 * aix-thread.c: Likewise.
2841 * alpha-linux-tdep.c: Likewise.
2842 * alpha-mdebug-tdep.c: Likewise.
2843 * alpha-nat.c: Likewise.
2844 * alpha-osf1-tdep.c: Likewise.
2845 * alpha-tdep.c: Likewise.
2846 * alphanbsd-tdep.c: Likewise.
2847 * amd64-dicos-tdep.c: Likewise.
2848 * amd64-linux-tdep.c: Likewise.
2849 * amd64-nat.c: Likewise.
2850 * amd64-sol2-tdep.c: Likewise.
2851 * amd64fbsd-tdep.c: Likewise.
2852 * amd64obsd-tdep.c: Likewise.
2853 * arch-utils.c: Likewise.
2854 * arm-linux-nat.c: Likewise.
2855 * arm-linux-tdep.c: Likewise.
2856 * arm-tdep.c: Likewise.
2857 * arm-wince-tdep.c: Likewise.
2858 * armbsd-tdep.c: Likewise.
2859 * armnbsd-nat.c: Likewise.
2860 * armnbsd-tdep.c: Likewise.
2861 * armobsd-tdep.c: Likewise.
2862 * avr-tdep.c: Likewise.
2863 * ax-gdb.c: Likewise.
2864 * ax-general.c: Likewise.
2865 * bcache.c: Likewise.
2866 * bfin-tdep.c: Likewise.
2867 * breakpoint.c: Likewise.
2868 * build-id.c: Likewise.
2869 * buildsym.c: Likewise.
2870 * c-exp.y: Likewise.
2871 * c-lang.c: Likewise.
2872 * c-typeprint.c: Likewise.
2873 * c-valprint.c: Likewise.
2874 * charset.c: Likewise.
2875 * cli-out.c: Likewise.
2876 * cli/cli-cmds.c: Likewise.
2877 * cli/cli-decode.c: Likewise.
2878 * cli/cli-dump.c: Likewise.
2879 * cli/cli-interp.c: Likewise.
2880 * cli/cli-logging.c: Likewise.
2881 * cli/cli-script.c: Likewise.
2882 * cli/cli-setshow.c: Likewise.
2883 * cli/cli-utils.c: Likewise.
2884 * coffread.c: Likewise.
2885 * common/agent.c: Likewise.
2886 * common/buffer.c: Likewise.
2887 * common/buffer.h: Likewise.
2888 * common/common-utils.c: Likewise.
2889 * common/filestuff.c: Likewise.
2890 * common/filestuff.c: Likewise.
2891 * common/format.c: Likewise.
2892 * common/print-utils.c: Likewise.
2893 * common/rsp-low.c: Likewise.
2894 * common/signals.c: Likewise.
2895 * common/vec.h: Likewise.
2896 * common/xml-utils.c: Likewise.
2897 * core-regset.c: Likewise.
2898 * corefile.c: Likewise.
2899 * corelow.c: Likewise.
2900 * cp-abi.c: Likewise.
2901 * cp-name-parser.y: Likewise.
2902 * cp-support.c: Likewise.
2903 * cp-valprint.c: Likewise.
2904 * cris-tdep.c: Likewise.
2905 * d-exp.y: Likewise.
2906 * darwin-nat.c: Likewise.
2907 * dbxread.c: Likewise.
2908 * dcache.c: Likewise.
2909 * demangle.c: Likewise.
2910 * dicos-tdep.c: Likewise.
2911 * disasm.c: Likewise.
2912 * doublest.c: Likewise.
2913 * dsrec.c: Likewise.
2914 * dummy-frame.c: Likewise.
2915 * dwarf2-frame.c: Likewise.
2916 * dwarf2loc.c: Likewise.
2917 * dwarf2read.c: Likewise.
2918 * elfread.c: Likewise.
2919 * environ.c: Likewise.
2920 * eval.c: Likewise.
2921 * event-loop.c: Likewise.
2922 * exceptions.c: Likewise.
2923 * exec.c: Likewise.
2924 * expprint.c: Likewise.
2925 * f-exp.y: Likewise.
2926 * f-lang.c: Likewise.
2927 * f-typeprint.c: Likewise.
2928 * f-valprint.c: Likewise.
2929 * fbsd-nat.c: Likewise.
2930 * findcmd.c: Likewise.
2931 * findvar.c: Likewise.
2932 * fork-child.c: Likewise.
2933 * frame.c: Likewise.
2934 * frv-linux-tdep.c: Likewise.
2935 * frv-tdep.c: Likewise.
2936 * gdb.c: Likewise.
2937 * gdb_bfd.c: Likewise.
2938 * gdbarch.c: Likewise.
2939 * gdbarch.sh: Likewise.
2940 * gdbtypes.c: Likewise.
2941 * gnu-nat.c: Likewise.
2942 * gnu-v2-abi.c: Likewise.
2943 * gnu-v3-abi.c: Likewise.
2944 * go-exp.y: Likewise.
2945 * go-lang.c: Likewise.
2946 * go32-nat.c: Likewise.
2947 * guile/guile.c: Likewise.
2948 * guile/scm-auto-load.c: Likewise.
2949 * hppa-hpux-tdep.c: Likewise.
2950 * hppa-linux-nat.c: Likewise.
2951 * hppanbsd-tdep.c: Likewise.
2952 * hppaobsd-tdep.c: Likewise.
2953 * i386-cygwin-tdep.c: Likewise.
2954 * i386-dicos-tdep.c: Likewise.
2955 * i386-linux-tdep.c: Likewise.
2956 * i386-nto-tdep.c: Likewise.
2957 * i386-sol2-tdep.c: Likewise.
2958 * i386-tdep.c: Likewise.
2959 * i386bsd-tdep.c: Likewise.
2960 * i386gnu-nat.c: Likewise.
2961 * i386nbsd-tdep.c: Likewise.
2962 * i386obsd-tdep.c: Likewise.
2963 * i387-tdep.c: Likewise.
2964 * ia64-libunwind-tdep.c: Likewise.
2965 * ia64-linux-nat.c: Likewise.
2966 * inf-child.c: Likewise.
2967 * inf-ptrace.c: Likewise.
2968 * inf-ttrace.c: Likewise.
2969 * infcall.c: Likewise.
2970 * infcmd.c: Likewise.
2971 * inflow.c: Likewise.
2972 * infrun.c: Likewise.
2973 * interps.c: Likewise.
2974 * iq2000-tdep.c: Likewise.
2975 * irix5-nat.c: Likewise.
2976 * jv-exp.y: Likewise.
2977 * jv-lang.c: Likewise.
2978 * jv-typeprint.c: Likewise.
2979 * jv-valprint.c: Likewise.
2980 * language.c: Likewise.
2981 * linux-fork.c: Likewise.
2982 * linux-nat.c: Likewise.
2983 * lm32-tdep.c: Likewise.
2984 * m2-exp.y: Likewise.
2985 * m2-typeprint.c: Likewise.
2986 * m32c-tdep.c: Likewise.
2987 * m32r-linux-nat.c: Likewise.
2988 * m32r-linux-tdep.c: Likewise.
2989 * m32r-rom.c: Likewise.
2990 * m32r-tdep.c: Likewise.
2991 * m68hc11-tdep.c: Likewise.
2992 * m68k-tdep.c: Likewise.
2993 * m68kbsd-tdep.c: Likewise.
2994 * m68klinux-nat.c: Likewise.
2995 * m68klinux-tdep.c: Likewise.
2996 * m88k-tdep.c: Likewise.
2997 * machoread.c: Likewise.
2998 * macrocmd.c: Likewise.
2999 * main.c: Likewise.
3000 * mdebugread.c: Likewise.
3001 * mem-break.c: Likewise.
3002 * memattr.c: Likewise.
3003 * memory-map.c: Likewise.
3004 * mep-tdep.c: Likewise.
3005 * mi/mi-cmd-break.c: Likewise.
3006 * mi/mi-cmd-disas.c: Likewise.
3007 * mi/mi-cmd-env.c: Likewise.
3008 * mi/mi-cmd-stack.c: Likewise.
3009 * mi/mi-cmd-var.c: Likewise.
3010 * mi/mi-cmds.c: Likewise.
3011 * mi/mi-console.c: Likewise.
3012 * mi/mi-getopt.c: Likewise.
3013 * mi/mi-interp.c: Likewise.
3014 * mi/mi-main.c: Likewise.
3015 * mi/mi-parse.c: Likewise.
3016 * microblaze-rom.c: Likewise.
3017 * microblaze-tdep.c: Likewise.
3018 * mingw-hdep.c: Likewise.
3019 * minidebug.c: Likewise.
3020 * minsyms.c: Likewise.
3021 * mips-irix-tdep.c: Likewise.
3022 * mips-linux-tdep.c: Likewise.
3023 * mips-tdep.c: Likewise.
3024 * mips64obsd-tdep.c: Likewise.
3025 * mipsnbsd-tdep.c: Likewise.
3026 * mipsread.c: Likewise.
3027 * mn10300-linux-tdep.c: Likewise.
3028 * mn10300-tdep.c: Likewise.
3029 * monitor.c: Likewise.
3030 * moxie-tdep.c: Likewise.
3031 * mt-tdep.c: Likewise.
3032 * nat/linux-btrace.c: Likewise.
3033 * nat/linux-osdata.c: Likewise.
3034 * nat/linux-procfs.c: Likewise.
3035 * nat/linux-ptrace.c: Likewise.
3036 * nat/linux-waitpid.c: Likewise.
3037 * nbsd-tdep.c: Likewise.
3038 * nios2-linux-tdep.c: Likewise.
3039 * nto-procfs.c: Likewise.
3040 * nto-tdep.c: Likewise.
3041 * objc-lang.c: Likewise.
3042 * objfiles.c: Likewise.
3043 * opencl-lang.c: Likewise.
3044 * osabi.c: Likewise.
3045 * osdata.c: Likewise.
3046 * p-exp.y: Likewise.
3047 * p-lang.c: Likewise.
3048 * p-typeprint.c: Likewise.
3049 * parse.c: Likewise.
3050 * posix-hdep.c: Likewise.
3051 * ppc-linux-nat.c: Likewise.
3052 * ppc-sysv-tdep.c: Likewise.
3053 * ppcfbsd-tdep.c: Likewise.
3054 * ppcnbsd-tdep.c: Likewise.
3055 * ppcobsd-tdep.c: Likewise.
3056 * printcmd.c: Likewise.
3057 * procfs.c: Likewise.
3058 * prologue-value.c: Likewise.
3059 * python/py-auto-load.c: Likewise.
3060 * python/py-gdb-readline.c: Likewise.
3061 * ravenscar-thread.c: Likewise.
3062 * regcache.c: Likewise.
3063 * registry.c: Likewise.
3064 * remote-fileio.c: Likewise.
3065 * remote-m32r-sdi.c: Likewise.
3066 * remote-mips.c: Likewise.
3067 * remote-notif.c: Likewise.
3068 * remote-sim.c: Likewise.
3069 * remote.c: Likewise.
3070 * reverse.c: Likewise.
3071 * rs6000-aix-tdep.c: Likewise.
3072 * ser-base.c: Likewise.
3073 * ser-go32.c: Likewise.
3074 * ser-mingw.c: Likewise.
3075 * ser-pipe.c: Likewise.
3076 * ser-tcp.c: Likewise.
3077 * ser-unix.c: Likewise.
3078 * serial.c: Likewise.
3079 * sh-tdep.c: Likewise.
3080 * sh64-tdep.c: Likewise.
3081 * shnbsd-tdep.c: Likewise.
3082 * skip.c: Likewise.
3083 * sol-thread.c: Likewise.
3084 * solib-dsbt.c: Likewise.
3085 * solib-frv.c: Likewise.
3086 * solib-osf.c: Likewise.
3087 * solib-som.c: Likewise.
3088 * solib-spu.c: Likewise.
3089 * solib-target.c: Likewise.
3090 * solib.c: Likewise.
3091 * somread.c: Likewise.
3092 * source.c: Likewise.
3093 * sparc-nat.c: Likewise.
3094 * sparc-sol2-tdep.c: Likewise.
3095 * sparc-tdep.c: Likewise.
3096 * sparc64-tdep.c: Likewise.
3097 * sparc64fbsd-tdep.c: Likewise.
3098 * sparc64nbsd-tdep.c: Likewise.
3099 * sparcnbsd-tdep.c: Likewise.
3100 * spu-linux-nat.c: Likewise.
3101 * spu-multiarch.c: Likewise.
3102 * spu-tdep.c: Likewise.
3103 * stabsread.c: Likewise.
3104 * stack.c: Likewise.
3105 * std-regs.c: Likewise.
3106 * symfile.c: Likewise.
3107 * symmisc.c: Likewise.
3108 * symtab.c: Likewise.
3109 * target.c: Likewise.
3110 * thread.c: Likewise.
3111 * tilegx-linux-nat.c: Likewise.
3112 * tilegx-tdep.c: Likewise.
3113 * top.c: Likewise.
3114 * tracepoint.c: Likewise.
3115 * tui/tui-command.c: Likewise.
3116 * tui/tui-data.c: Likewise.
3117 * tui/tui-disasm.c: Likewise.
3118 * tui/tui-file.c: Likewise.
3119 * tui/tui-layout.c: Likewise.
3120 * tui/tui-out.c: Likewise.
3121 * tui/tui-regs.c: Likewise.
3122 * tui/tui-source.c: Likewise.
3123 * tui/tui-stack.c: Likewise.
3124 * tui/tui-win.c: Likewise.
3125 * tui/tui-windata.c: Likewise.
3126 * tui/tui-winsource.c: Likewise.
3127 * typeprint.c: Likewise.
3128 * ui-file.c: Likewise.
3129 * ui-out.c: Likewise.
3130 * user-regs.c: Likewise.
3131 * utils.c: Likewise.
3132 * v850-tdep.c: Likewise.
3133 * valarith.c: Likewise.
3134 * valops.c: Likewise.
3135 * valprint.c: Likewise.
3136 * value.c: Likewise.
3137 * varobj.c: Likewise.
3138 * vax-tdep.c: Likewise.
3139 * vaxnbsd-tdep.c: Likewise.
3140 * vaxobsd-tdep.c: Likewise.
3141 * windows-nat.c: Likewise.
3142 * xcoffread.c: Likewise.
3143 * xml-support.c: Likewise.
3144 * xstormy16-tdep.c: Likewise.
3145 * xtensa-linux-nat.c: Likewise.
3146
dccbb609
GB
31472014-08-07 Gary Benson <gbenson@redhat.com>
3148
3149 * common/common-defs.h: Include gdb_assert.h.
3150 * aarch64-tdep.c: Do not include gdb_assert.h.
3151 * addrmap.c: Likewise.
3152 * aix-thread.c: Likewise.
3153 * alpha-linux-tdep.c: Likewise.
3154 * alpha-mdebug-tdep.c: Likewise.
3155 * alphanbsd-tdep.c: Likewise.
3156 * amd64-nat.c: Likewise.
3157 * amd64-tdep.c: Likewise.
3158 * amd64bsd-nat.c: Likewise.
3159 * amd64fbsd-nat.c: Likewise.
3160 * amd64fbsd-tdep.c: Likewise.
3161 * amd64nbsd-nat.c: Likewise.
3162 * amd64nbsd-tdep.c: Likewise.
3163 * amd64obsd-nat.c: Likewise.
3164 * amd64obsd-tdep.c: Likewise.
3165 * arch-utils.c: Likewise.
3166 * arm-tdep.c: Likewise.
3167 * armbsd-tdep.c: Likewise.
3168 * auxv.c: Likewise.
3169 * bcache.c: Likewise.
3170 * bfin-tdep.c: Likewise.
3171 * blockframe.c: Likewise.
3172 * breakpoint.c: Likewise.
3173 * bsd-kvm.c: Likewise.
3174 * bsd-uthread.c: Likewise.
3175 * buildsym.c: Likewise.
3176 * c-exp.y: Likewise.
3177 * c-lang.c: Likewise.
3178 * charset.c: Likewise.
3179 * cleanups.c: Likewise.
3180 * cli-out.c: Likewise.
3181 * cli/cli-decode.c: Likewise.
3182 * cli/cli-dump.c: Likewise.
3183 * cli/cli-logging.c: Likewise.
3184 * cli/cli-script.c: Likewise.
3185 * cli/cli-utils.c: Likewise.
3186 * coffread.c: Likewise.
3187 * common/common-utils.c: Likewise.
3188 * common/queue.h: Likewise.
3189 * common/signals.c: Likewise.
3190 * common/vec.h: Likewise.
3191 * complaints.c: Likewise.
3192 * completer.c: Likewise.
3193 * corelow.c: Likewise.
3194 * cp-abi.c: Likewise.
3195 * cp-name-parser.y: Likewise.
3196 * cp-namespace.c: Likewise.
3197 * cp-support.c: Likewise.
3198 * cris-tdep.c: Likewise.
3199 * dbxread.c: Likewise.
3200 * dictionary.c: Likewise.
3201 * doublest.c: Likewise.
3202 * dsrec.c: Likewise.
3203 * dummy-frame.c: Likewise.
3204 * dwarf2-frame-tailcall.c: Likewise.
3205 * dwarf2-frame.c: Likewise.
3206 * dwarf2expr.c: Likewise.
3207 * dwarf2loc.c: Likewise.
3208 * dwarf2read.c: Likewise.
3209 * eval.c: Likewise.
3210 * event-loop.c: Likewise.
3211 * exceptions.c: Likewise.
3212 * expprint.c: Likewise.
3213 * f-valprint.c: Likewise.
3214 * fbsd-nat.c: Likewise.
3215 * findvar.c: Likewise.
3216 * frame-unwind.c: Likewise.
3217 * frame.c: Likewise.
3218 * frv-tdep.c: Likewise.
3219 * gcore.c: Likewise.
3220 * gdb-dlfcn.c: Likewise.
3221 * gdb_bfd.c: Likewise.
3222 * gdbarch.c: Likewise.
3223 * gdbarch.sh: Likewise.
3224 * gdbtypes.c: Likewise.
3225 * gnu-nat.c: Likewise.
3226 * gnu-v3-abi.c: Likewise.
3227 * go-lang.c: Likewise.
3228 * guile/scm-exception.c: Likewise.
3229 * guile/scm-gsmob.c: Likewise.
3230 * guile/scm-lazy-string.c: Likewise.
3231 * guile/scm-math.c: Likewise.
3232 * guile/scm-pretty-print.c: Likewise.
3233 * guile/scm-safe-call.c: Likewise.
3234 * guile/scm-utils.c: Likewise.
3235 * guile/scm-value.c: Likewise.
3236 * h8300-tdep.c: Likewise.
3237 * hppa-hpux-nat.c: Likewise.
3238 * hppa-tdep.c: Likewise.
3239 * hppanbsd-tdep.c: Likewise.
3240 * hppaobsd-tdep.c: Likewise.
3241 * i386-darwin-nat.c: Likewise.
3242 * i386-darwin-tdep.c: Likewise.
3243 * i386-nto-tdep.c: Likewise.
3244 * i386-tdep.c: Likewise.
3245 * i386bsd-nat.c: Likewise.
3246 * i386fbsd-tdep.c: Likewise.
3247 * i386gnu-nat.c: Likewise.
3248 * i386nbsd-tdep.c: Likewise.
3249 * i386obsd-tdep.c: Likewise.
3250 * i387-tdep.c: Likewise.
3251 * ia64-libunwind-tdep.c: Likewise.
3252 * ia64-tdep.c: Likewise.
3253 * inf-ptrace.c: Likewise.
3254 * inf-ttrace.c: Likewise.
3255 * infcall.c: Likewise.
3256 * infcmd.c: Likewise.
3257 * infrun.c: Likewise.
3258 * inline-frame.c: Likewise.
3259 * interps.c: Likewise.
3260 * jv-lang.c: Likewise.
3261 * jv-typeprint.c: Likewise.
3262 * linux-fork.c: Likewise.
3263 * linux-nat.c: Likewise.
3264 * linux-thread-db.c: Likewise.
3265 * m32c-tdep.c: Likewise.
3266 * m32r-linux-nat.c: Likewise.
3267 * m32r-tdep.c: Likewise.
3268 * m68k-tdep.c: Likewise.
3269 * m68kbsd-nat.c: Likewise.
3270 * m68kbsd-tdep.c: Likewise.
3271 * m88k-tdep.c: Likewise.
3272 * machoread.c: Likewise.
3273 * macroexp.c: Likewise.
3274 * macrotab.c: Likewise.
3275 * maint.c: Likewise.
3276 * mdebugread.c: Likewise.
3277 * memory-map.c: Likewise.
3278 * mep-tdep.c: Likewise.
3279 * mi/mi-common.c: Likewise.
3280 * microblaze-tdep.c: Likewise.
3281 * mingw-hdep.c: Likewise.
3282 * mips-linux-nat.c: Likewise.
3283 * mips-linux-tdep.c: Likewise.
3284 * mips-tdep.c: Likewise.
3285 * mips64obsd-tdep.c: Likewise.
3286 * mipsnbsd-tdep.c: Likewise.
3287 * mn10300-linux-tdep.c: Likewise.
3288 * mn10300-tdep.c: Likewise.
3289 * moxie-tdep.c: Likewise.
3290 * mt-tdep.c: Likewise.
3291 * nat/linux-btrace.c: Likewise.
3292 * nat/linux-osdata.c: Likewise.
3293 * nat/linux-ptrace.c: Likewise.
3294 * nat/mips-linux-watch.c: Likewise.
3295 * nios2-linux-tdep.c: Likewise.
3296 * nios2-tdep.c: Likewise.
3297 * objc-lang.c: Likewise.
3298 * objfiles.c: Likewise.
3299 * obsd-nat.c: Likewise.
3300 * opencl-lang.c: Likewise.
3301 * osabi.c: Likewise.
3302 * parse.c: Likewise.
3303 * ppc-linux-nat.c: Likewise.
3304 * ppc-sysv-tdep.c: Likewise.
3305 * ppcfbsd-nat.c: Likewise.
3306 * ppcfbsd-tdep.c: Likewise.
3307 * ppcnbsd-nat.c: Likewise.
3308 * ppcnbsd-tdep.c: Likewise.
3309 * ppcobsd-nat.c: Likewise.
3310 * ppcobsd-tdep.c: Likewise.
3311 * printcmd.c: Likewise.
3312 * procfs.c: Likewise.
3313 * prologue-value.c: Likewise.
3314 * psymtab.c: Likewise.
3315 * python/py-lazy-string.c: Likewise.
3316 * python/py-value.c: Likewise.
3317 * regcache.c: Likewise.
3318 * reggroups.c: Likewise.
3319 * registry.c: Likewise.
3320 * remote-sim.c: Likewise.
3321 * remote.c: Likewise.
3322 * rs6000-aix-tdep.c: Likewise.
3323 * rs6000-tdep.c: Likewise.
3324 * s390-linux-tdep.c: Likewise.
3325 * score-tdep.c: Likewise.
3326 * ser-base.c: Likewise.
3327 * ser-mingw.c: Likewise.
3328 * sh-tdep.c: Likewise.
3329 * sh64-tdep.c: Likewise.
3330 * solib-darwin.c: Likewise.
3331 * solib-spu.c: Likewise.
3332 * solib-svr4.c: Likewise.
3333 * source.c: Likewise.
3334 * sparc-nat.c: Likewise.
3335 * sparc-sol2-tdep.c: Likewise.
3336 * sparc-tdep.c: Likewise.
3337 * sparc64-sol2-tdep.c: Likewise.
3338 * sparc64-tdep.c: Likewise.
3339 * sparc64fbsd-tdep.c: Likewise.
3340 * sparc64nbsd-tdep.c: Likewise.
3341 * sparc64obsd-tdep.c: Likewise.
3342 * sparcnbsd-tdep.c: Likewise.
3343 * sparcobsd-tdep.c: Likewise.
3344 * spu-multiarch.c: Likewise.
3345 * spu-tdep.c: Likewise.
3346 * stabsread.c: Likewise.
3347 * stack.c: Likewise.
3348 * symfile.c: Likewise.
3349 * symtab.c: Likewise.
3350 * target-descriptions.c: Likewise.
3351 * target-memory.c: Likewise.
3352 * target.c: Likewise.
3353 * tic6x-linux-tdep.c: Likewise.
3354 * tic6x-tdep.c: Likewise.
3355 * tilegx-linux-nat.c: Likewise.
3356 * tilegx-tdep.c: Likewise.
3357 * top.c: Likewise.
3358 * tramp-frame.c: Likewise.
3359 * tui/tui-out.c: Likewise.
3360 * tui/tui-winsource.c: Likewise.
3361 * ui-out.c: Likewise.
3362 * user-regs.c: Likewise.
3363 * utils.c: Likewise.
3364 * v850-tdep.c: Likewise.
3365 * valops.c: Likewise.
3366 * value.c: Likewise.
3367 * varobj.c: Likewise.
3368 * vax-nat.c: Likewise.
3369 * xml-syscall.c: Likewise.
3370 * xml-tdesc.c: Likewise.
3371 * xstormy16-tdep.c: Likewise.
3372 * xtensa-linux-nat.c: Likewise.
3373 * xtensa-tdep.c: Likewise.
3374
e76df0d0
GB
33752014-08-07 Gary Benson <gbenson@redhat.com>
3376
3377 * common/common-defs.h: Include common-utils.h.
3378 * defs.h: Do not include common-utils.h.
3379 * common/gdb_assert.h: Likewise.
3380 * darwin-nat.h: Likewise.
3381 * nat/linux-btrace.c: Likewise.
3382 * target/waitstatus.h: Likewise.
3383
4cb9c816
GB
33842014-08-07 Gary Benson <gbenson@redhat.com>
3385
3386 * common/common-defs.h: Include ptid.h.
3387 * defs.h: Do not include ptid.h.
3388 * inferior.h: Likewise.
3389 * infrun.h: Likewise.
3390 * nat/linux-btrace.h: Likewise.
3391 * nat/linux-osdata.h: Likewise.
3392 * target/waitstatus.h: Likewise.
3393
3995eeee
GB
33942014-08-07 Gary Benson <gbenson@redhat.com>
3395
3396 * common/common-defs.h: Include gdb_locale.h.
3397 * defs.h: Do not include gdb_locale.h.
3398
cb9f1a9b
GB
33992014-08-07 Gary Benson <gbenson@redhat.com>
3400
3401 * common/common-defs.h: Include gdb/signals.h.
3402 * defs.h: Do not include gdb/signals.h.
3403
a5fceff8
GB
34042014-08-07 Gary Benson <gbenson@redhat.com>
3405
3406 * common/common-defs.h: Include pathmax.h.
3407 * defs.h: Do not include pathmax.h.
3408
b9391142
GB
34092014-08-07 Gary Benson <gbenson@redhat.com>
3410
3411 * common/common-defs.h: Include libiberty.h.
3412 * defs.h: Do not include libiberty.h.
3413 * common/queue.h: Likewise.
3414 * cp-name-parser.y: Likewise.
3415 * mi/mi-cmd-catch.c: Likewise.
3416 * python/python.c: Likewise.
3417
0e443c87
GB
34182014-08-07 Gary Benson <gbenson@redhat.com>
3419
3420 * common/common-defs.h: Include ansidecl.h.
3421 * defs.h: Do not include ansidecl.h.
3422 * common/buffer.h: Likewise.
3423 * common/common-utils.h: Likewise.
3424
8ebb3f56
GB
34252014-08-07 Gary Benson <gbenson@redhat.com>
3426
3427 * common/common-defs.h: Include stddef.h.
3428 * defs.h: Do not include stddef.h.
3429 * common/common-utils.h: Likewise.
3430 * amd64fbsd-nat.c: Likewise.
3431 * bcache.c: Likewise.
3432 * charset.c: Likewise.
3433 * common/buffer.h: Likewise.
3434 * common/vec.h: Likewise.
3435 * i386bsd-nat.c: Likewise.
3436 * nat/linux-btrace.h: Likewise.
3437 * ppcfbsd-nat.c: Likewise.
3438 * ppcnbsd-tdep.h: Likewise.
3439 * ppcobsd-nat.c: Likewise.
3440 * ppcobsd-tdep.h: Likewise.
3441 * python/py-gdb-readline.c: Likewise.
3442
8980bdf6
GB
34432014-08-07 Gary Benson <gbenson@redhat.com>
3444
3445 * common/common-defs.h: Include stdarg.h.
3446 * defs.h: Do not include stdarg.h.
3447 * ada-lang.c: Likewise.
3448 * common/common-utils.h: Likewise.
3449 * guile/scm-string.c: Likewise.
3450 * guile/scm-utils.c: Likewise.
3451 * m32c-tdep.c: Likewise.
3452
d7096f71
GB
34532014-08-07 Gary Benson <gbenson@redhat.com>
3454
3455 * common/common-defs.h: Include stdlib.h.
3456 * defs.h: Do not include stdlib.h.
3457 * addrmap.c: Likewise.
3458 * bcache.c: Likewise.
3459 * common/buffer.c: Likewise.
3460 * common/common-utils.c: Likewise.
3461 * cp-name-parser.y: Likewise.
3462 * go32-nat.c: Likewise.
3463 * mn10300-linux-tdep.c: Likewise.
3464 * nat/linux-osdata.c: Likewise.
3465 * tui/tui.c: Likewise.
3466 * windows-nat.c: Likewise.
3467
d02f550d
GB
34682014-08-07 Gary Benson <gbenson@redhat.com>
3469
3470 * common/common-defs.h: Include stdio.h.
3471 * defs.h: Do not include stdio.h.
3472 * ada-lang.c: Likewise.
3473 * common/buffer.c: Likewise.
3474 * common/common-utils.c: Likewise.
3475 * cp-name-parser.y: Likewise.
3476 * gnu-nat.c: Likewise.
3477 * go32-nat.c: Likewise.
3478 * i386gnu-nat.c: Likewise.
3479 * proc-api.c: Likewise.
3480 * proc-events.c: Likewise.
3481 * proc-flags.c: Likewise.
3482 * proc-why.c: Likewise.
3483 * python/python-internal.h: Likewise.
3484 * target-memory.c: Likewise.
3485 * tui/tui-io.c: Likewise.
3486 * tui/tui.c: Likewise.
3487
b6d7a4bf
SM
34882014-08-06 Simon Marchi <simon.marchi@ericsson.com>
3489
3490 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
3491 (scan_dyntag_auxv): Same.
3492
af19829b
YQ
34932014-08-06 Yao Qi <yao@codesourcery.com>
3494
3495 * amd64-linux-nat.c: Remove duplicated include
3496 "x86-linux-nat.h".
3497 * i386-linux-nat.c: Likewise.
3498
8e07a239
YQ
34992014-08-06 Yao Qi <yao@codesourcery.com>
3500
3501 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
3502 operand" with "Special opcode" in comments.
3503
7bfe8241
GB
35042014-08-05 Gary Benson <gbenson@redhat.com>
3505
3506 * interps.c (initialize_interps): Remove prototype.
3507 (interpreter_initialized): Remove static global.
3508 (interp_add): Do not call initialize_interps.
3509 (initialize_interps): Remove function.
3510
d6c95504
GB
35112014-08-05 Gary Benson <gbenson@redhat.com>
3512
3513 * utils.c (vwarning): Remove spurious va_end.
3514
241fd515
AM
35152014-08-05 Alan Modra <amodra@gmail.com>
3516
3517 * charset.c (convert_between_encodings): Cast result of obstack_base.
3518 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
3519 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
3520 (read_unwind_info): Use size_t for some locals.
3521 * jit.c (finalize_symtab): Likewise.
3522 * utils.c (hashtab_obstack_allocate): Likewise.
3523 * symmisc.c (print_objfile_statistics): Update format strings.
3524
dc304a94
JK
35252014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3526
3527 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
3528 (Changes in GDB 7.8): ... here.
3529
3cecbbbe
TT
35302014-08-04 Tom Tromey <tromey@redhat.com>
3531
3532 * target.c (set_targetdebug): New function.
3533 (initialize_targets): Pass set_targetdebug when creating "set
3534 debug target".
3535
6908c509
JB
35362014-08-01 Joel Brobecker <brobecker@adacore.com>
3537
3538 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
3539 if detecting a variable-sized field that is not the last field.
3540 Fix struct type length computation.
3541
53e8f97d
JB
35422014-08-01 Joel Brobecker <brobecker@adacore.com>
3543
3544 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3545 Add debug trace.
3546
e068c55d
JB
35472014-08-01 Joel Brobecker <brobecker@adacore.com>
3548
3549 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3550 Remove "+ 8" offset in computation of CHAIN_VMA.
3551
4d4ca2a1
DE
35522014-07-31 Doug Evans <dje@google.com>
3553
3554 * inflow.c (child_terminal_inferior): Add comment.
3555 (child_terminal_ours_for_output): Add comment.
3556 (child_terminal_ours): Add comment.
3557 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
3558 (linux_nat_terminal_ours): Add comment.
3559
462f517e
GB
35602014-07-31 Gary Benson <gbenson@redhat.com>
3561
3562 * common/btrace-common.h: Do not include defs.h or server.h.
3563 * nat/mips-linux-watch.h: Likewise.
3564 * gdb-dlfcn.h: Do not include defs.h.
3565 * tracefile.h: Likewise.
3566
74228e77
RM
35672014-07-30 Roland McGrath <mcgrathr@google.com>
3568
3569 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
3570
014f9477
TT
35712014-07-30 Tom Tromey <tromey@redhat.com>
3572
3573 * bsd-kvm.c (bsd_kvm_open): Constify.
3574 * corelow.c (core_open): Constify.
3575 * ctf.c (ctf_open): Constify.
3576 * dbug-rom.c (dbug_open): Constify.
3577 * exec.c (exec_open): Constify.
3578 * m32r-rom.c (m32r_open, mon2000_open): Constify.
3579 * microblaze-rom.c (picobug_open): Constify.
3580 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
3581 Constify.
3582 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
3583 * record-btrace.c (record_btrace_open): Constify.
3584 * record-full.c (record_full_core_open_1, record_full_open_1)
3585 (record_full_open): Constify.
3586 * remote-m32r-sdi.c (m32r_open): Constify.
3587 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
3588 (rockhopper_open, lsi_open): Constify.
3589 * remote-sim.c (gdbsim_open): Constify.
3590 * remote.c (remote_open, extended_remote_open, remote_open_1):
3591 Constify.
3592 * target.h (struct target_ops) <to_open>: Make "arg" const.
3593 * tracefile-tfile.c (tfile_open): Constify.
3594
e799154c
TT
35952014-07-30 Tom Tromey <tromey@redhat.com>
3596
3597 * breakpoint.c (map_breakpoint_numbers): Update.
3598 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
3599 (get_number_const): New function.
3600 (get_number): Rewrite using get_number_const.
3601 (init_number_or_range): Make "string" const.
3602 (number_is_in_list): Make "list" const.
3603 * cli/cli-utils.h (get_number_const): Declare.
3604 (struct get_number_or_range_state) <string, end_ptr>: Now const.
3605 (init_number_or_range, number_is_in_list): Update.
3606 * printcmd.c (map_display_numbers): Update.
3607 * value.c (value_from_history_ref): Constify.
3608 * value.h (value_from_history_ref): Update.
3609
5f08566b
TT
36102014-07-30 Tom Tromey <tromey@redhat.com>
3611
3612 * corefile.c (hook_type, call_extra_exec_file_hooks)
3613 (specify_exec_file_hook): Constify.
3614 * exec.c (exec_file_attach): Make "filename" const.
3615 * gdbcore.h (deprecated_exec_file_display_hook)
3616 (specify_exec_file_hook, exec_file_attach): Constify.
3617 * main.c (captured_main): Use catch_command_errors_const.
3618
8981c758
TT
36192014-07-30 Tom Tromey <tromey@redhat.com>
3620
3621 * target.c (open_target): New function.
3622 (add_target_with_completer, add_deprecated_target_alias): Use
3623 set_cmd_sfunc, set_cmd_context.
3624 (debug_to_open): Remove.
3625 (setup_target_debug): Update.
3626
a1c7835a
YQ
36272014-07-30 Yao Qi <yao@codesourcery.com>
3628
3629 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
3630 comments.
3631 * parse.c (exp_iterate): Update comments.
3632
976411d6
GB
36332014-07-30 Gary Benson <gbenson@redhat.com>
3634
3635 * common/common-defs.h: New file.
3636 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
3637 * defs.h: Include common-defs.h.
3638 Do not include config.h or build-gnulib/config.h.
3639
5d4848a4
GB
36402014-07-30 Gary Benson <gbenson@redhat.com>
3641
3642 * common/common-utils.h: Do not include config.h.
3643 * nat/linux-btrace.h: Likewise.
3644
d41f6d8e
GB
36452014-07-30 Gary Benson <gbenson@redhat.com>
3646
3647 * btrace.c: Include defs.h.
3648 * common/ptid.c: Include defs.h or server.h as appropriate.
3649 * nat/mips-linux-watch.c: Likewise.
3650
84202f9c
TT
36512014-07-29 Tom Tromey <tromey@redhat.com>
3652
3653 * target.c (target_is_pushed): Simplify.
3654
2530441c
JB
36552014-07-29 Joel Brobecker <brobecker@adacore.com>
3656
3657 GDB 7.8 released.
3658
7e09a223
YQ
36592014-07-29 Yao Qi <yao@codesourcery.com>
3660
3661 PR gdb/17206
3662 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
3663
7ebdbe92
DE
36642014-07-28 Doug Evans <xdje42@gmail.com>
3665
3666 PR guile/17203
3667 * guile/scm-param.c (pascm_parameter_defined_p): New function.
3668 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
3669 parameters.
3670
f347ffc9
WN
36712014-07-28 Will Newton <will.newton@linaro.org>
3672
3673 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
3674 (THUMB2_SET_R7_SIGRETURN2): Likewise.
3675 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
3676 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
3677 (THUMB2_EABI_SYSCALL): Likewise.
3678 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
3679 struct tramp_frame.
3680 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
3681 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
3682
37c5f1f7
DE
36832014-07-27 Doug Evans <xdje42@gmail.com>
3684
3685 * guile/scm-param.c (pascm_print_param_smob): Fix output.
3686
0c3abbc7
DE
36872014-07-27 Doug Evans <xdje42@gmail.com>
3688
3689 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
3690
e76c5d17
DE
36912014-07-26 Ludovic Courtès <ludo@gnu.org>
3692 Doug Evans <xdje42@gmail.com>
3693
3694 PR guile/17146
3695 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
3696 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
3697 * configure.ac: Try to use guild to compile an scm file, if it fails
3698 then disable guile support.
3699 * configure: Regenerate.
3700 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
3701 GUILE_FILE_LIST.
3702 (GUILE_COMPILED_FILES): New variable.
3703 (GUILE_FILES) Update.
3704 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
3705 (stamp-guile): Compile scm files.
3706 * guile/guile.c (boot_guile_support): New function.
3707 (standard_throw_args_p): New function.
3708 (print_standard_throw_error, print_throw_error): New functions.
3709 (handle_boot_error): New function.
3710 (initialize_scheme_side): Rewrite to call boot_guile_support.
3711 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
3712 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
3713
186fcde0
DE
37142014-07-26 Ludovic Courtès <ludo@gnu.org>
3715 Doug Evans <xdje42@gmail.com>
3716
3717 PR guile/17146
3718 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
3719 * guile/lib/gdb/support.scm: New file.
3720 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
3721 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
3722 All uses updated.
3723 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
3724 All uses updated.
3725 (%assert-type): Ditto, and renamed to assert-type.
3726 (%exception-print-style): Delete.
3727
4df42755
DE
37282014-07-26 Doug Evans <xdje42@gmail.com>
3729
3730 PR build/17105
3731 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
3732 * configure: Regenerate.
3733 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
3734 PYTHON_FILES.
3735 (PYTHON_FILES): New variable.
3736 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
3737 (GUILE_FILES): New variable.
3738 (stamp-python, install-python, uninstall-python): Handle empty
3739 file list.
3740 (stamp-guile, install-guile, uninstall-guile): Ditto.
3741
ee7333ae
DE
37422014-07-26 Doug Evans <xdje42@gmail.com>
3743
3744 PR guile/17177
3745 * guile/lib/gdb.scm (pretty-printers): Export.
3746 (set-pretty-printers!): Export.
3747 * guile/lib/gdb/printing.scm (gdb module): Update.
3748 (prepend-pretty-printer!, append-pretty-printer!): Update.
3749 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
3750 (pretty_printer_list_var): Delete.
3751 (pretty_printer_list): New static global.
3752 (gdbscm_pretty_printers): New function.
3753 (gdbscm_set_pretty_printers_x): New function.
3754 (ppscm_find_pretty_printer_from_gdb): Update.
3755 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
3756 (gdbscm_initialize_pretty_printers): Update.
3757
74edf516
DE
37582014-07-26 Doug Evans <xdje42@gmail.com>
3759
3760 PR 17185
3761 * configure.ac: Add check for header gc/gc.h.
3762 Add check for function setenv.
3763 * configure: Regenerate.
3764 * config.in: Regenerate.
3765 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
3766
d54398a7
MR
37672014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
3768
3769 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
3770 variation in gdbarch matching.
3771
ab16fce8
TT
37722014-07-25 Tom Tromey <tromey@redhat.com>
3773
3774 * exec.c (using_exec_ops): Remove.
3775 (exec_close_1): Update. Remove extraneous block, reindent.
3776 (add_target_sections): Use target_is_pushed.
3777
88056fbb
PA
37782014-07-25 Pedro Alves <palves@redhat.com>
3779
3780 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
3781 * monitor.c (monitor_create_inferior): Likewise.
3782 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
3783 * remote-sim.c (gdbsim_create_inferior): Likewise.
3784 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
3785 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
3786 * windows-nat.c (do_initial_windows_stuff): Likewise.
3787
70509625
PA
37882014-07-25 Pedro Alves <palves@redhat.com>
3789
3790 * NEWS: Mention signal passing and "signal" command changes.
3791 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
3792 comment.
3793 * breakpoint.c (until_break_command): Adjust clear_proceed_status
3794 call.
3795 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
3796 * infcmd.c (proceed_thread_callback, continue_1, step_once)
3797 (jump_command): Adjust clear_proceed_status call.
3798 (signal_command): Warn if other thread that are resumed have
3799 signals that will be delivered. Adjust clear_proceed_status call.
3800 (until_next_command, finish_command)
3801 (proceed_after_attach_callback, attach_command_post_wait)
3802 (attach_command): Adjust clear_proceed_status call.
3803 * infrun.c (proceed_after_vfork_done): Likewise.
3804 (proceed_after_attach_callback): Adjust comment.
3805 (clear_proceed_status_thread): Clear stop_signal if not in pass
3806 state.
3807 (clear_proceed_status_callback): Delete.
3808 (clear_proceed_status): New 'step' parameter. Only clear the
3809 proceed status of threads the command being prepared is about to
3810 resume.
3811 (proceed): If passed in an explicit signal, override stop_signal
3812 with it. Don't pass the last stop signal to the thread we're
3813 resuming.
3814 (init_wait_for_inferior): Adjust clear_proceed_status call.
3815 (switch_back_to_stepped_thread): Clear the signal if it should not
3816 be passed.
3817 * infrun.h (clear_proceed_status): New 'step' parameter.
3818 (user_visible_resume_ptid): Add comment.
3819 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
3820 signal is in pass state.
3821 * remote.c (append_pending_thread_resumptions): Likewise.
3822 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
3823
d8be2939
TT
38242014-07-25 Tom Tromey <tromey@redhat.com>
3825
3826 * target.h (target_stopped_data_address)
3827 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
3828 parentheses.
3829
7d0d9d2b
PL
38302014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
3831
3832 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
3833 comments.
3834 (avr_pointer_to_address): Likewise.
3835
e9e7f724
TT
38362014-07-24 Tom Tromey <tromey@redhat.com>
3837
3838 * monitor.c (compile_pattern): Update.
3839 * target.h (struct target_ops) <to_shortname, to_longname,
3840 to_doc>: Now const.
3841
1947513d
TT
38422014-07-24 Tom Tromey <tromey@redhat.com>
3843
3844 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
3845 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
3846 (add_info_alias, add_com): Make "doc" const.
3847 (print_doc_line): Make "str" const.
3848 (delete_cmd): Update.
3849 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
3850 (print_doc_line): Update.
3851 * cli/cli-script.c (document_command): Update.
3852 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
3853 (add_com, add_info, add_info_alias): Update.
3854 * guile/scm-cmd.c (cmdscm_destroyer): Update.
3855 * python/py-cmd.c (cmdpy_destroyer): Update.
3856
64e61d29
TT
38572014-07-24 Tom Tromey <tromey@redhat.com>
3858
3859 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
3860 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
3861 (help_cmd_list): Constify.
3862 (lookup_cmd): Update.
3863 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
3864 const.
3865 (help_cmd_list, apropos_cmd): Update.
3866 * cli/cli-script.c (show_user): Update.
3867 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
3868 * cli/cli-setshow.h (cmd_show_list): Update.
3869 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
3870 (cmd_show_list): Update.
3871 * guile/scm-cmd.c (cmdscm_destroyer): Update.
3872 * python/py-cmd.c (cmdpy_destroyer): Update.
3873
429e55ea
TT
38742014-07-24 Tom Tromey <tromey@redhat.com>
3875
3876 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
3877 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
3878 const.
3879 * command.h (deprecate_cmd): Update.
3880 * maint.c (maintenance_do_deprecate): Add casts.
3881
64669f3b
TT
38822014-07-24 Tom Tromey <tromey@redhat.com>
3883
3884 * cli/cli-decode.c (help_cmd): Make parameter "const".
3885 * cli/cli-decode.h (help_cmd): Update.
3886
d3d3328b
TT
38872014-07-24 Tom Tromey <tromey@redhat.com>
3888
3889 * stack.c (up_silently_base, down_silently_base): Make argument
3890 const.
3891
414842dc
TT
38922014-07-24 Tom Tromey <tromey@redhat.com>
3893
3894 * solib.c (solib_add): Make "pattern" const.
3895 * solib.h (solib_add): Update.
3896
baa336ce
TT
38972014-07-24 Tom Tromey <tromey@redhat.com>
3898
3899 * remote.c (remote_serial_open, print_packet, putpkt)
3900 (putpkt_binary): Constify.
3901 * remote.h (putpkt): Update.
3902
5a19e2d0
TT
39032014-07-24 Tom Tromey <tromey@redhat.com>
3904
3905 * monitor.c (monitor_open): Make "args" const.
3906 * monitor.h (monitor_open): Update.
3907
fc4baa5e
TT
39082014-07-24 Tom Tromey <tromey@redhat.com>
3909
3910 * maint.c (match_bfd_flags): Make "string" const.
3911 (print_bfd_section_info): Remove casts.
3912 (print_objfile_section_info): Make "string" const.
3913
0d5f0dbe
TT
39142014-07-24 Tom Tromey <tromey@redhat.com>
3915
3916 * inf-child.c (inf_child_open_target): Make "arg" const.
3917 * inf-child.h (inf_child_open_target): Update.
3918
41c77899
TT
39192014-07-24 Tom Tromey <tromey@redhat.com>
3920
3921 * environ.c (unset_in_environ): Make "var" const.
3922 * environ.h (unset_in_environ): Update.
3923
93db0d79
TT
39242014-07-24 Tom Tromey <tromey@redhat.com>
3925
3926 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
3927 Make "cmd" const.
3928 (scan_filename_with_cleanup): Likewise.
3929 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
3930 Make arguments const.
3931 (restore_command): Update.
3932
36d6eb95
PA
39332014-07-24 Pedro Alves <palves@redhat.com>
3934
3935 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
3936
8009206a
TT
39372014-07-24 Tom Tromey <tromey@redhat.com>
3938 Gary Benson <gbenson@redhat.com>
3939
3940 * nat/linux-ptrace.c (additional_flags): New global.
3941 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
3942 additional_flags; don't check GDBSERVER.
3943 (linux_ptrace_set_additional_flags): New function.
3944 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
3945 Declare.
3946 * linux-nat.c (_initialize_linux_nat): Call
3947 linux_ptrace_set_additional_flags.
3948
a7068b60
TT
39492014-07-24 Tom Tromey <tromey@redhat.com>
3950
3951 * make-target-delegates (munge_type, write_debugmethod): New
3952 functions.
3953 (debug_names): New global.
3954 ($TARGET_DEBUG_PRINTER): New global.
3955 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
3956 name.
3957 Write debug methods. Generate init_debug_target.
3958 * target-debug.h: New file.
3959 * target-delegates.c: Rebuild.
3960 * target.c: Include target-debug.h.
3961 (debug_target): Hoist definition.
3962 (target_kill, target_get_section_table, target_memory_map)
3963 (target_flash_erase, target_flash_done, target_detach)
3964 (target_disconnect, target_wait, target_resume)
3965 (target_pass_signals, target_program_signals, target_follow_fork)
3966 (target_mourn_inferior, target_search_memory)
3967 (target_thread_address_space, target_close)
3968 (target_find_new_threads, target_core_of_thread)
3969 (target_verify_memory, target_insert_mask_watchpoint)
3970 (target_remove_mask_watchpoint): Remove targetdebug code.
3971 (debug_to_post_attach, debug_to_prepare_to_store)
3972 (debug_to_files_info, debug_to_insert_breakpoint)
3973 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
3974 (debug_to_region_ok_for_hw_watchpoint)
3975 (debug_to_can_accel_watchpoint_condition)
3976 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
3977 (debug_to_watchpoint_addr_within_range)
3978 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
3979 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
3980 (debug_to_terminal_init, debug_to_terminal_inferior)
3981 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
3982 (debug_to_terminal_save_ours, debug_to_terminal_info)
3983 (debug_to_load, debug_to_post_startup_inferior)
3984 (debug_to_insert_fork_catchpoint)
3985 (debug_to_remove_fork_catchpoint)
3986 (debug_to_insert_vfork_catchpoint)
3987 (debug_to_remove_vfork_catchpoint)
3988 (debug_to_insert_exec_catchpoint)
3989 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
3990 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
3991 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
3992 (setup_target_debug): Call init_debug_target.
3993 * target.h (TARGET_DEBUG_PRINTER): New macro.
3994 (struct target_ops) <to_resume, to_wait, to_pass_signals,
3995 to_program_signals>: Use TARGET_DEBUG_PRINTER.
3996
2c51604d
GB
39972014-07-24 Gary Benson <gbenson@redhat.com>
3998
3999 * exceptions.h (throw_vfatal): Renamed to...
4000 (throw_vquit): New declaration.
4001 (throw_quit): Likewise.
4002 * exceptions.c (throw_vfatal): Renamed to...
4003 (throw_vquit): New function.
4004 (throw_quit): Likewise.
4005 (throw_error): Call throw_verror rather than throw_it.
4006 * utils.h (vfatal): Removed.
4007 (fatal): Likewise.
4008 * utils.c (vfatal): Removed.
4009 (fatal): Likewise.
4010 (internal_verror): Replaced call to fatal with call to throw_quit.
4011 (quit): Replaced calls to fatal with calls to throw_quit.
4012
34211963
ME
40132014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
4014
4015 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
4016 target_read_code.
4017
a52b4d3e
ME
40182014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
4019
4020 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
4021 less than zero in conditional expression.
4022
a8bdc56b
TT
40232014-07-23 Tom Tromey <tromey@redhat.com>
4024
4025 * make-target-delegates ($ARGS_PART): Match trailing close paren.
4026 ($INTRO_PART): Don't match whitespace.
4027 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
4028 argument matching.
4029 ($METHOD): Add $METHOD_TRAILER.
4030 (trim): Rewrite.
4031 (scan_target_h): New sub.
4032 Change main loop not to collect state.
4033 * target-delegates.c: Rebuild.
4034
91b52240
GB
40352014-07-23 Gary Benson <gbenson@redhat.com>
4036
4037 * cp-support.c (gdb_demangle): Fix build on systems without
4038 sigaltstack.
4039
45326f6f
JK
40402014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4041
4042 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
4043 for reference entry value target data value.
4044
e214cf6c
JK
40452014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4046
4047 * stack.c (read_frame_arg): Verify value_optimized_out before calling
4048 value_available_contents_eq.
4049
bddbbedd
PA
40502014-07-22 Pedro Alves <palves@redhat.com>
4051
4052 * value.c (allocate_optimized_out_value): Don't mark value as
4053 non-lazy.
4054
45c71484
JW
40552014-07-22 Jiong Wang <jiong.wang@arm.com>
4056
4057 * MAINTAINERS (Write After Approval): Update my email address.
4058
9597b22a
DE
40592014-07-20 Doug Evans <dje@google.com>
4060
4061 PR server/17147
4062 * remote.c (putpkt_binary): Add text to error message.
4063
91101fe5
YQ
40642014-07-20 Yao Qi <yao@codesourcery.com>
4065
4066 * eval.c: Remove "Chill" from comments.
4067 * gdbtypes.h: Likewise.
4068 * symtab.h: Likewise.
4069
c9402c95
YQ
40702014-07-20 Yao Qi <yao@codesourcery.com>
4071
4072 * std-operator.def: Update comments to TERNOP_SLICE.
4073
ae8fddda
YQ
40742014-07-20 Yao Qi <yao@codesourcery.com>
4075
4076 * std-operator.def: Remove BINOP_RANGE.
4077 * breakpoint.c (watchpoint_exp_is_const): Update.
4078 * expprint.c (dump_subexp_body_standard): Likewise.
4079 * eval.c (init_array_element): Remove dead code.
4080 (evaluate_subexp_standard): Likewise.
4081
9c816640
YQ
40822014-07-20 Yao Qi <yao@codesourcery.com>
4083
4084 * std-operator.def: Remove BINOP_IN.
4085 * breakpoint.c (watchpoint_exp_is_const): Update.
4086 * eval.c (evaluate_subexp_standard): Likewise.
4087 * expprint.c (dump_subexp_body_standard): Likewise.
4088
164224e9
ME
40892014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
4090
4091 * microblaze-tdep.c (microblaze_register_names): Add
4092 the rshr and rslr register names.
4093 (microblaze_gdbarch_init): Use of tdesc_has_registers.
4094 Use of tdesc_find_feature. Use of tdesc_data_alloc.
4095 Use of tdesc_numbered_register. Use of
4096 microblaze_register_g_packet_guesses. Use of
4097 tdesc_use_registers. Use of set_gdbarch_register_type.
4098 (microblaze_register_g_packet_guesses): New.
4099 * microblaze-tdep.h (microblaze_reg_num): Add
4100 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
4101 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
4102 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
4103 * features/microblaze-core.xml: New file.
4104 * features/microblaze-stack-protect.xml: New file.
4105 * features/microblaze-with-stack-protect.c: New file.
4106 * features/microblaze-with-stack-protect.xml: New file.
4107 * features/microblaze.xml: New file.
4108 * features/microblaze.c: New file.
4109 * features/Makefile (microblaze-with-stack-protect): Add
4110 microblaze-with-stack-protect microblaze and microblaze-expedite.
4111 * regformats/microblaze-with-stack-protect.dat: New file.
4112 * regformats/microblaze.dat: New file.
4113 * doc/gdb.texinfo (MicroBlaze Features): Added.
4114
e8b2341c
TT
41152014-07-18 Tom Tromey <tromey@redhat.com>
4116
4117 * exec.c (exec_ops): Now static.
4118 * exec.h (exec_ops): Don't declare.
4119
44e89118
TT
41202014-07-18 Tom Tromey <tromey@redhat.com>
4121
4122 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
4123 to find_target_beneath.
4124 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
4125 find_target_beneath.
4126 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
4127
b0ed115f
TT
41282014-07-18 Tom Tromey <tromey@redhat.com>
4129
4130 PR gdb/17130:
4131 * utils.c (quit): Use target_supports_terminal_ours.
4132 * target.h (target_supports_terminal_ours): Declare.
4133 * target.c (target_supports_delete_record): Don't check
4134 to_delete_record against NULL.
4135 (target_supports_terminal_ours): New function.
4136
e75fdfca
TT
41372014-07-18 Tom Tromey <tromey@redhat.com>
4138
4139 PR gdb/17130:
4140 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
4141 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
4142 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
4143 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
4144 * windows-nat.c (windows_xfer_partial): Always delegate.
4145 * record-btrace.c (record_btrace_xfer_partial): Simplify
4146 delegation.
4147 (record_btrace_fetch_registers, record_btrace_store_registers)
4148 (record_btrace_prepare_to_store, record_btrace_resume)
4149 (record_btrace_wait, record_btrace_find_new_threads)
4150 (record_btrace_thread_alive): Likewise.
4151 * procfs.c (procfs_xfer_partial): Always delegate.
4152 * corelow.c (core_xfer_partial): Always delegate.
4153 * sol-thread.c (sol_find_new_threads): Simplify delegation.
4154
83814951
TT
41552014-07-18 Tom Tromey <tromey@redhat.com>
4156
4157 * exec.c (exec_make_note_section): Move earlier.
4158
b8b8facf
DE
41592014-07-17 Doug Evans <dje@google.com>
4160
74b49205 4161 PR gdb/17170
b8b8facf
DE
4162 * maint.c (count_symtabs_and_blocks): Handle NULL
4163 current_program_space.
4164 (report_command_stats): Check global enabled flag in addition to
4165 recorded enabled flag.
4166 (make_command_stats_cleanup): Handle msg_type == 0, startup.
4167
69ff6be5
PA
41682014-07-16 Pedro Alves <palves@redhat.com>
4169
4170 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
4171
252db1b5
TT
41722014-07-16 Tom Tromey <tromey@redhat.com>
4173
4174 * target.h (struct target_ops) <to_delete_record>: Reformat
4175 comment.
4176
a432721e
TT
41772014-07-16 Tom Tromey <tromey@redhat.com>
4178
4179 * target-delegates.c: Rebuild.
4180
487d9753
PL
41812014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
4182
4183 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
4184 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
4185 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
4186 (avr_pointer_to_address): Likewise.
4187 (avr_address_class_type_flags): New function.
4188 (avr_address_class_type_flags_to_name): Likewise.
4189 (avr_address_class_name_to_type_flags): Likewise.
4190 (avr_gdbarch_init): Set address_class_type_flags,
4191 address_class_type_flags_to_name and
4192 address_class_name_to_type_flags.
4193
57745c90
PA
41942014-07-15 Pedro Alves <palves@redhat.com>
4195
4196 * linux-nat.c (kill_callback): Save errno and work with saved
4197 copy.
4198
2d40be18
SM
41992014-07-15 Simon Marchi <simon.marchi@ericsson.com>
4200
4201 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
4202
572f6555
EBM
42032014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4204
4205 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
4206 breakpoint support correctly.
4207
cc1c52ad
PA
42082014-07-14 Pedro Alves <palves@redhat.com>
4209
4210 * utils.c (prompt_for_continue): Call target_terminal_ours.
4211
1e973570
PA
42122014-07-14 Pedro Alves <palves@redhat.com>
4213
4214 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
4215 catch_errors. Don't re-enable stdin or notify observers where,
4216 and rethrow error.
4217 (fetch_inferior_event_wrapper): Delete.
4218
93d6eb10
PA
42192014-07-14 Pedro Alves <palves@redhat.com>
4220
4221 PR gdb/17072
4222 * top.c: Include "inf-loop.h".
4223 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
4224 field.
4225 (gdb_readline_wrapper_cleanup): Make the target async again, if it
4226 was async before.
4227 (gdb_readline_wrapper): Store whether the target is async, and
4228 make it sync.
4229
0017922d
PA
42302014-07-14 Pedro Alves <palves@redhat.com>
4231
4232 PR gdb/17072
4233 * top.c (gdb_readline_wrapper_line): Tweak comment.
4234 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
4235 the input handler callback.
4236
94696ad3
PA
42372014-07-14 Pedro Alves <palves@redhat.com>
4238
4239 PR gdb/17072
4240 * main.c: Include event-top.h.
4241 (handle_command_errors): New function.
4242 (catch_command_errors, catch_command_errors_const): Use it.
4243
9d1e69a2
PA
42442014-07-14 Pedro Alves <palves@redhat.com>
4245
4246 * exceptions.c (catch_command_errors, catch_command_errors_const):
4247 Moved to main.c.
4248 * exceptions.h (catch_command_errors_ftype)
4249 (catch_command_errors_const_ftype): Moved to main.c.
4250 (catch_command_errors, catch_command_errors_const): Delete
4251 declarations.
4252 * main.c (catch_command_errors_ftype)
4253 (catch_command_errors_const_ftype): Moved here from exceptions.h.
4254 (catch_command_errors, catch_command_errors_const)): Moved here
4255 from exceptions.c and make static.
4256
feefc97b
PA
42572014-07-14 Pedro Alves <palves@redhat.com>
4258
4259 * exceptions.c (print_any_exception): Delete.
4260 (catch_exceptions_with_msg): Use exception_print instead of
4261 print_any_exception.
4262 (catch_errors): Use exception_fprintf instead of
4263 print_any_exception.
4264 (catch_command_errors, catch_command_errors_const): Use
4265 exception_print instead of print_any_exception.
4266
c933f875
PA
42672014-07-14 Pedro Alves <palves@redhat.com>
4268
4269 * infcall.c (run_inferior_call): Set 'sync_execution' while
4270 running the inferior call.
4271
feb6f816
PA
42722014-07-14 Pedro Alves <palves@redhat.com>
4273
4274 * value.c (value_contents_equal): Delete function.
4275 * value.h (value_contents_equal): Delete declaration.
4276
d98b7a16
TT
42772014-07-14 Tom Tromey <tromey@redhat.com>
4278
4279 PR exp/17106:
4280 * gdbtypes.c (is_dynamic_type_internal): New function, from
4281 is_dynamic_type.
4282 (is_dynamic_type): Rewrite.
4283 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
4284 (resolve_dynamic_struct): Likewise.
4285 (resolve_dynamic_type_internal): New function, from
4286 resolve_dynamic_type.
4287 (resolve_dynamic_type): Rewrite.
4288
548740d6
TT
42892014-07-14 Tom Tromey <tromey@redhat.com>
4290
4291 * target.c (target_require_runnable): Also check record_stratum.
4292 Update comment.
4293
808f7ab1
YQ
42942014-07-11 Yao Qi <yao@codesourcery.com>
4295
4296 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
4297 thumb_instruction_restores_sp return true.
4298
540314bd
YQ
42992014-07-11 Yao Qi <yao@codesourcery.com>
4300
4301 * arm-tdep.c (thumb_instruction_restores_sp): New function.
4302 (thumb_in_function_epilogue_p): Call
4303 thumb_instruction_restores_sp.
4304
1db01f22
YQ
43052014-07-11 Yao Qi <yao@codesourcery.com>
4306
4307 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
4308 'add sp, #imm'.
4309 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
4310
3116063b
GB
43112014-07-11 Gary Benson <gbenson@redhat.com>
4312
4313 * amd64-linux-nat.c (gdbcore.h): Remove include.
4314 (regset.h): Likewise.
4315 (nat/linux-btrace.h): Likewise.
4316 (btrace.h): Likewise.
4317 (gdb_assert.h): Likewise.
4318 (string.h): Likewise.
4319 (sys/uio.h): Likewise.
4320 (sys/debugreg.h): Likewise.
4321 (sys/syscall.h): Likewise.
4322 (sys/procfs.h): Likewise.
4323 (sys/user.h): Likewise.
4324 (asm/ptrace.h): Likewise.
4325 (i386-nat.h): Likewise.
4326 * i386-linux-nat.c (i386-nat.h): Likewise.
4327 (regset.h): Likewise.
4328 (target.h): Likewise.
4329 (linux-nat.h): Likewise.
4330 (nat/linux-btrace.h): Likewise.
4331 (btrace.h): Likewise.
4332 (gdb_assert.h): Likewise.
4333 (string.h): Likewise.
4334 (sys/uio.h): Likewise.
4335 (sys/user.h): Likewise.
4336 (sys/procfs.h): Likewise.
4337 (sys/reg.h): Likewise.
4338 (sys/debugreg.h): Likewise.
4339 (ORIG_EAX): Remove definition.
4340
040baaf6
GB
43412014-07-11 Gary Benson <gbenson@redhat.com>
4342
4343 * i386-linux-nat.h: New file.
4344 * x86-linux-nat.h: Likewise.
4345 * x86-linux-nat.c: Likewise.
4346 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
4347 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
4348 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4349 * amd64-linux-nat.c (x86-linux-nat.h): New include.
4350 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
4351 (PTRACE_SETREGSET): Likewise.
4352 (arch_lwp_info): Now in x86-linux-nat.c.
4353 (have_ptrace_getregset): Now in x86-linux-nat.h.
4354 (x86_linux_dr_get): Now in x86-linux-nat.c.
4355 (x86_linux_dr_set): Likewise.
4356 (x86_linux_dr_get_addr): Likewise.
4357 (x86_linux_dr_get_control): Likewise.
4358 (x86_linux_dr_get_status): Likewise.
4359 (update_debug_registers_callback): Likewise.
4360 (x86_linux_dr_set_control): Likewise.
4361 (x86_linux_dr_set_addr): Likewise.
4362 (x86_linux_prepare_to_resume): Likewise.
4363 (x86_linux_new_thread): Likewise.
4364 (x86_linux_new_fork): Likewise.
4365 (x86_linux_get_thread_area): Likewise.
4366 (super_post_startup_inferior): Likewise.
4367 (x86_linux_child_post_startup_inferior): Likewise.
4368 (AMD64_LINUX_USER64_CS): Likewise.
4369 (AMD64_LINUX_X32_DS): Likewise.
4370 (x86_linux_read_description): Likewise.
4371 (x86_linux_enable_btrace): Likewise.
4372 (x86_linux_disable_btrace): Likewise.
4373 (x86_linux_teardown_btrace): Likewise.
4374 (x86_linux_read_btrace): Likewise.
4375 (x86_linux_create_target): Likewise.
4376 (x86_linux_add_target): Likewise.
4377 * i386-linux-nat.c (x86-linux-nat.h): New include.
4378 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
4379 (PTRACE_SETREGSET): Likewise.
4380 (arch_lwp_info): Now in x86-linux-nat.c.
4381 (have_ptrace_getregset): Now in x86-linux-nat.h.
4382 (x86_linux_dr_get): Now in x86-linux-nat.c.
4383 (x86_linux_dr_set): Likewise.
4384 (x86_linux_dr_get_addr): Likewise.
4385 (x86_linux_dr_get_control): Likewise.
4386 (x86_linux_dr_get_status): Likewise.
4387 (update_debug_registers_callback): Likewise.
4388 (x86_linux_dr_set_control): Likewise.
4389 (x86_linux_dr_set_addr): Likewise.
4390 (x86_linux_prepare_to_resume): Likewise.
4391 (x86_linux_new_thread): Likewise.
4392 (x86_linux_new_fork): Likewise.
4393 (x86_linux_get_thread_area): Likewise.
4394 (super_post_startup_inferior): Likewise.
4395 (x86_linux_child_post_startup_inferior): Likewise.
4396 (AMD64_LINUX_USER64_CS): Likewise.
4397 (AMD64_LINUX_X32_DS): Likewise.
4398 (x86_linux_read_description): Likewise.
4399 (x86_linux_enable_btrace): Likewise.
4400 (x86_linux_disable_btrace): Likewise.
4401 (x86_linux_teardown_btrace): Likewise.
4402 (x86_linux_read_btrace): Likewise.
4403 (x86_linux_create_target): Likewise.
4404 (x86_linux_add_target): Likewise.
4405
1aa7e42c
GB
44062014-07-11 Gary Benson <gbenson@redhat.com>
4407
4408 * amd64-linux-nat.c: Comment and whitespace changes.
4409 * i386-linux-nat.c: Comment and whitespace changes.
4410
c1e246a0
GB
44112014-07-11 Gary Benson <gbenson@redhat.com>
4412
4413 * amd64-linux-nat.c (x86_linux_create_target): New function.
4414 (x86_linux_add_target): Likewise.
4415 (_initialize_amd64_linux_nat): Delegate to the above new functions.
4416 * i386-linux-nat.c (x86_linux_create_target): New function.
4417 (x86_linux_add_target): Likewise.
4418 (_initialize_i386_linux_nat): Delegate to the above new functions.
4419
8c420b8d
GB
44202014-07-11 Gary Benson <gbenson@redhat.com>
4421
4422 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
4423 (ps_get_thread_area): Delegate to the above in 32-bit mode.
4424 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
4425 (ps_get_thread_area): Delegate to the above.
4426
cb1da100
GB
44272014-07-11 Gary Benson <gbenson@redhat.com>
4428
4429 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
4430 x86_linux_read_description. All uses updated. amd64-specific
4431 code conditionalized. Conditionalized i386-specific code added.
4432 Redundant cast removed.
4433 * i386-linux-nat.c (i386_linux_read_description): Renamed to
4434 x86_linux_read_description. All uses updated. i386-specific
4435 code conditionalized. Conditionalized amd64-specific code added.
4436 One sizeof replaced with the actual type it is describing.
4437
2acf3cd0
GB
44382014-07-11 Gary Benson <gbenson@redhat.com>
4439
4440 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
4441 x86_linux_dr_get. All uses updated.
4442 (amd64_linux_dr_set): Renamed to
4443 x86_linux_dr_set. All uses updated.
4444 (amd64_linux_dr_get_addr): Renamed to
4445 x86_linux_dr_get_addr. All uses updated.
4446 (amd64_linux_dr_get_control): Renamed to
4447 x86_linux_dr_get_control. All uses updated.
4448 (amd64_linux_dr_get_status): Renamed to
4449 x86_linux_dr_get_status. All uses updated.
4450 (amd64_linux_dr_set_control): Renamed to
4451 x86_linux_dr_set_control. All uses updated.
4452 (amd64_linux_dr_set_addr): Renamed to
4453 x86_linux_dr_set_addr. All uses updated.
4454 (amd64_linux_prepare_to_resume): Renamed to
4455 x86_linux_prepare_to_resume. All uses updated.
4456 (amd64_linux_new_thread): Renamed to
4457 x86_linux_new_thread. All uses updated.
4458 (amd64_linux_new_fork): Renamed to
4459 x86_linux_new_fork. All uses updated.
4460 (amd64_linux_child_post_startup_inferior): Renamed to
4461 x86_linux_child_post_startup_inferior. All uses updated.
4462 (amd64_linux_enable_btrace): Renamed to
4463 x86_linux_enable_btrace. All uses updated.
4464 (amd64_linux_disable_btrace): Renamed to
4465 x86_linux_disable_btrace. All uses updated.
4466 (amd64_linux_teardown_btrace): Renamed to
4467 x86_linux_teardown_btrace. All uses updated.
4468 (amd64_linux_read_btrace): Renamed to
4469 x86_linux_read_btrace. All uses updated.
4470 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
4471 x86_linux_dr_get. All uses updated.
4472 (i386_linux_dr_set): Renamed to
4473 x86_linux_dr_set. All uses updated.
4474 (i386_linux_dr_get_addr): Renamed to
4475 x86_linux_dr_get_addr. All uses updated.
4476 (i386_linux_dr_get_control): Renamed to
4477 x86_linux_dr_get_control. All uses updated.
4478 (i386_linux_dr_get_status): Renamed to
4479 x86_linux_dr_get_status. All uses updated.
4480 (i386_linux_dr_set_control): Renamed to
4481 x86_linux_dr_set_control. All uses updated.
4482 (i386_linux_dr_set_addr): Renamed to
4483 x86_linux_dr_set_addr. All uses updated.
4484 (i386_linux_prepare_to_resume): Renamed to
4485 x86_linux_prepare_to_resume. All uses updated.
4486 (i386_linux_new_thread): Renamed to
4487 x86_linux_new_thread. All uses updated.
4488 (i386_linux_new_fork): Renamed to
4489 x86_linux_new_fork. All uses updated.
4490 (i386_linux_child_post_startup_inferior): Renamed to
4491 x86_linux_child_post_startup_inferior. All uses updated.
4492 (i386_linux_enable_btrace): Renamed to
4493 x86_linux_enable_btrace. All uses updated.
4494 (i386_linux_disable_btrace): Renamed to
4495 x86_linux_disable_btrace. All uses updated.
4496 (i386_linux_teardown_btrace): Renamed to
4497 x86_linux_teardown_btrace. All uses updated.
4498 (i386_linux_read_btrace): Renamed to
4499 x86_linux_read_btrace. All uses updated.
4500
b9c1d481
AS
45012014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
4502
4503 * remote.c (extended_remote_post_attach): New function.
4504 (init_extended_remote_ops): Install it as to_post_attach method.
4505
7180e04a
PA
45062014-07-09 Pedro Alves <palves@redhat.com>
4507
4508 * infcmd.c (attach_command_post_wait): Don't call
4509 target_terminal_inferior here.
4510 (attach_command): Call it here instead.
4511
9a9a7608
AB
45122014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4513
4514 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
4515 field.
4516 * c-varobj.c (c_is_path_expr_parent): New function, moved core
4517 from varobj.c, with additional checks.
4518 (c_varobj_ops): Fill in is_path_expr_parent field.
4519 (cplus_varobj_ops): Fill in is_path_expr_parent field.
4520 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
4521 field.
4522 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
4523 ops method.
4524 (varobj_default_is_path_expr_parent): New function.
4525 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
4526 (varobj_default_is_path_expr_parent): Declare new function.
4527
1f267ae3
MM
45282014-07-08 Markus Metzger <markus.t.metzger@intel.com>
4529
4530 * infcmd.c (finish_backward): Turn internal error into normal error.
4531
b2ee242b
PA
45322014-07-07 Pedro Alves <palves@redhat.com>
4533
8a869bca 4534 PR gdb/17096
b2ee242b
PA
4535 * remote.c (async_handle_remote_sigint)
4536 (async_handle_remote_sigint_twice): Call
4537 gdb_call_async_signal_handler instead of
4538 mark_async_signal_handler.
4539
38e229b2
TT
45402014-07-07 Tom Tromey <tromey@redhat.com>
4541
4542 * target-delegates.c: Rebuild.
4543 * target.c (target_info_record): Remove.
4544 * record.c (info_record_command): Unconditionally call
4545 to_info_record.
4546 * target.h (struct target_ops) <to_info_record>: Use
4547 TARGET_DEFAULT_IGNORE.
4548 (target_info_record): Remove.
4549
f0f9ff95
TT
45502014-07-07 Tom Tromey <tromey@redhat.com>
4551
4552 * target.h (struct target_ops) <to_get_thread_local_address>: Use
4553 TARGET_DEFAULT_NORETURN.
4554 * target.c (generic_tls_error): New function.
4555 (target_translate_tls_address): Don't search target stack.
4556 * target-delegates.c: Rebuild.
4557 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
4558 stack.
4559 * linux-thread-db.c (thread_db_get_thread_local_address):
4560 Unconditionally call beneath target.
4561
4a5be5ee
MK
45622014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
4563
4564 * cli/cli-logging.c (pop_output_files): Assign targerr to
4565 gdb_stdtargerr.
4566
92c3b204
AB
45672014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
4568
4569 * MAINTAINERS (Write After Approval): Update my email address.
4570
9b11e3a7
GB
45712014-07-02 Gary Benson <gbenson@redhat.com>
4572
4573 * proc-service.c (ps_xfer_memory): Update comment.
4574 (ps_pstop): Remove unused function.
4575 (ps_pcontinue): Likewise.
4576 (ps_lstop): Likewise.
4577 (ps_lcontinue): Likewise.
4578 (ps_lgetxregsize): Likewise.
4579 (ps_lgetxregs): Likewise.
4580 (ps_lsetxregs): Likewise.
4581 (ps_plog): Likewise.
4582 (ps_ptread): Likewise.
4583 (ps_ptwrite): Likewise.
4584
cf363f18
MW
45852014-07-01 Mark Wielaard <mjw@redhat.com>
4586
4587 * dwarf2read.c (add_array_cv_type): New function.
4588 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
4589 (read_tag_volatile_type): Likewise.
4590
82ae6c8d
TT
45912014-07-01 Tom Tromey <tromey@redhat.com>
4592
4593 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
4594 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
4595 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
4596 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
4597 * command.h (cmd_cfunc_ftype): Move earlier.
4598 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
4599 (add_com, add_info): Use cmd_cfunc_ftype.
4600
96142726
TT
46012014-06-30 Tom Tromey <tromey@redhat.com>
4602
4603 * symtab.c (operator_chars): Make parameters and return type
4604 const.
4605 (file_matches): Make "files" const.
4606 (struct search_symbols_data) <files>: Now const.
4607 (search_symbols): Make "regexp" and "files" parameters const.
4608 Update.
4609 (symtab_symbol_info): Remove cast.
4610 (rbreak_command): Update.
4611 * symtab.h (search_symbols): Update.
4612
b67a2c6f
YQ
46132014-06-27 Yao Qi <yao@codesourcery.com>
4614
4615 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
4616 Change parameter type to 'struct thread_info *'. Caller
4617 updated.
4618 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
4619 Update declaration.
4620 * dummy-frame.c (struct dummy_frame_id): New.
4621 (dummy_frame_id_eq): New function.
4622 (struct dummy_frame) <id>: Change its type to 'struct
4623 dummy_frame_id'.
4624 (dummy_frame_push): Add parameter ptid and save it in
4625 dummy_frame_id.
4626 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
4627 inferior_ptid.
4628 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
4629 to inferior_ptid.
4630 (lookup_dummy_frame): Change parameter type to 'struct
4631 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
4632 instead of frame_id_eq.
4633 (dummy_frame_pop): Add parameter ptid. Callers updated.
4634 Update comments. Compose dummy_frame_id and pass it to
4635 lookup_dummy_frame.
4636 (dummy_frame_discard): Add parameter ptid.
4637 (dummy_frame_sniffer): Compose dummy_frame_id and call
4638 dummy_frame_id_eq instead of frame_id_eq.
4639 (fprint_dummy_frames): Print ptid.
4640 * dummy-frame.h: Remove comments.
4641 (dummy_frame_push): Add ptid in declaration.
4642 (dummy_frame_pop, dummy_frame_discard): Likewise.
4643
5b10184c
TT
46442014-06-26 Tom Tromey <tromey@redhat.com>
4645
4646 * cli/cli-cmds.c (error_no_arg): Make "why" const.
4647 * command.h (error_no_arg): Update.
4648
06900326
TT
46492014-06-26 Tom Tromey <tromey@redhat.com>
4650
4651 * cli/cli-setshow.c (do_set_command): Make "arg" const.
4652 (do_show_command): Make "arg" const.
4653 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
4654
c2bcbb1d
TT
46552014-06-26 Tom Tromey <tromey@redhat.com>
4656
4657 * record-full.c (record_full_get_bookmark): Make "args" const.
4658 (record_full_goto_bookmark): Make "raw_bookmark" const.
4659 * record.c (record_goto): New function.
4660 (cmd_record_goto): Use it. Now static.
4661 * record.h (record_goto): Declare.
4662 (cmd_record_goto): Remove declaration.
4663 * target-delegates.c: Rebuild.
4664 * target.h (struct target_ops) <to_get_bookmark,
4665 to_goto_bookmark>: Make parameter const.
4666
9cbe5fff
TT
46672014-06-26 Tom Tromey <tromey@redhat.com>
4668
4669 * defs.h (generic_load): Update.
4670 * m32r-rom.c (m32r_load_gen): Make "filename" const.
4671 * monitor.c (monitor_load): Make "args" const.
4672 * remote-m32r-sdi.c (m32r_load): Make "args" const.
4673 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
4674 const.
4675 (mips_load): Make "file" const.
4676 * remote-sim.c (gdbsim_load): Make "args" const.
4677 * remote.c (remote_load): Make "name" const.
4678 * symfile.c (generic_load): Make "args" const.
4679 * target-delegates.c: Rebuild.
4680 * target.c (target_load): Make "arg" const.
4681 (debug_to_load): Make "args" const.
4682 * target.h (struct target_ops) <to_load>: Make parameter const.
4683 (target_load): Update.
4684
34a68019
TT
46852014-06-26 Tom Tromey <tromey@redhat.com>
4686
4687 PR symtab/16902:
4688 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
4689 (dwarf2_physname, read_partial_die)
4690 (guess_partial_die_structure_name, fixup_partial_die)
4691 (guess_full_die_structure_name, anonymous_struct_prefix)
4692 (dwarf2_name): Use per-BFD obstack.
4693
efc889c1
YQ
46942014-06-26 Yao Qi <yao@codesourcery.com>
4695
4696 * dummy-frame.c (dummy_frame_sniffer): Move local variables
4697 dummyframe and this_id into inner block below.
4698
4395285e
YQ
46992014-06-26 Yao Qi <yao@codesourcery.com>
4700
4701 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
4702 with "signal_pass[0]" in the initialization of signal_pass.
4703
aef92902
MM
47042014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4705
4706 * record-btrace.c (record_btrace_generating_corefile)
4707 (record_btrace_prepare_to_generate_core)
4708 (record_btrace_done_generating_core): New.
4709 (record_btrace_xfer_partial, record_btrace_fetch_registers)
4710 (record_btrace_store_registers, record_btrace_prepare_to_store):
4711 Forward request when generating a core file.
4712 (record_btrace_open): Set record_btrace_generating_corefile to zero.
4713 (init_record_btrace_ops): Set to_prepare_to_generate_core and
4714 to_done_generating_core.
4715
5fff78c4
MM
47162014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4717
4718 * target.h (target_ops) <to_prepare_to_generate_core>
4719 <to_done_generating_core>: New.
4720 (target_prepare_to_generate_core, target_done_generating_core): New.
4721 * target.c (target_prepare_to_generate_core)
4722 (target_done_generating_core): New.
4723 * target-delegates.c: Regenerate.
4724 * gcore.c: (write_gcore_file): Rename to ...
4725 (write_gcore_file_1): ...this.
4726 (write_gcore_file): Call target_prepare_to_generate_core
4727 and target_done_generating_core.
4728
1d1f1ccb
MM
47292014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4730
4731 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
4732 * gcore.c (write_gcore_file): Free memory returned from
4733 make_corefile_notes.
4734 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
4735 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
4736
3343ef86
YQ
47372014-06-24 Yao Qi <yao@codesourcery.com>
4738
4739 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
4740 (arm_linux_init_abi): Set skip_trampoline_code with
4741 gdbarch_skip_trampoline_code instead of
4742 find_solib_trampoline_target.
4743
18d18ac8
YQ
47442014-06-24 Yao Qi <yao@codesourcery.com>
4745
4746 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
4747 arm_skip_bx_reg returns non-zero.
4748
80d8d390
YQ
47492014-06-24 Yao Qi <yao@codesourcery.com>
4750
4751 * arm-tdep.c (arm_skip_bx_reg): New function.
4752 (arm_skip_stub): Call arm_skip_bx_reg.
4753
6a18a01c
DB
47542014-06-23 Don Breazeal <donb@codesourcery.com>
4755
4756 * MAINTAINERS: Add myself as write-after-approval maintainer.
4757
8e9db26e
PA
47582014-06-23 Pedro Alves <palves@redhat.com>
4759
4760 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
4761 DR_CONTROL before setting DR0..DR3.
4762 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
4763 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
4764 bits of DR_CONTROL related to the debug register slot being
4765 disabled. If all slots are vacant, clear local slowdown as well,
4766 and assert DR_CONTROL is 0.
4767
70afc5b7
SC
47682014-06-23 Siva Chandra Reddy <sivachandra@google.com>
4769
4770 * python/lib/gdb/command/xmethods.py
4771 (get_method_matchers_in_loci): Lookup xmethod matchers in the
4772 current progspace only if the string "progspace" matches LOCUS_RE.
4773
840ed64d
JK
47742014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4775
4776 Fix --with-system-readline with readline-6.3 patch 5.
4777 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
4778 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
4779 types.
4780
26f2dc30
TT
47812014-06-20 Tom Tromey <tromey@redhat.com>
4782
4783 * dwarf2read.c (dw2_get_real_path): Use correct type in
4784 OBSTACK_CALLOC.
4785 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
4786
125f8a3d
GB
47872014-06-20 Gary Benson <gbenson@redhat.com>
4788
4789 * common/gdb_thread_db.h: Moved to nat. All includes updated.
4790 * common/glibc_thread_db.h: Likewise.
4791 * common/i386-cpuid.h: Likewise.
4792 * common/i386-gcc-cpuid.h: Likewise.
4793 * common/linux-btrace.h: Likewise.
4794 * common/linux-osdata.h: Likewise.
4795 * common/linux-procfs.h: Likewise.
4796 * common/linux-ptrace.h: Likewise.
4797 * common/mips-linux-watch.h: Likewise.
4798 * common/linux-btrace.c: Moved to nat.
4799 * common/linux-osdata.c: Likewise.
4800 * common/linux-procfs.c: Likewise.
4801 * common/linux-ptrace.c: Likewise.
4802 * common/mips-linux-watch.c: Likewise.
4803 * nat/gdb_thread_db.h: Moved from common.
4804 * nat/glibc_thread_db.h: Likewise.
4805 * nat/i386-cpuid.h: Likewise.
4806 * nat/i386-gcc-cpuid.h: Likewise.
4807 * nat/linux-btrace.c: Likewise.
4808 * nat/linux-btrace.h: Likewise.
4809 * nat/linux-osdata.c: Likewise.
4810 * nat/linux-osdata.h: Likewise.
4811 * nat/linux-procfs.c: Likewise.
4812 * nat/linux-procfs.h: Likewise.
4813 * nat/linux-ptrace.c: Likewise.
4814 * nat/linux-ptrace.h: Likewise.
4815 * nat/mips-linux-watch.c: Likewise.
4816 * nat/mips-linux-watch.h: Likewise.
4817 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
4818 (object file files): Reordered.
4819 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
4820 of glibc_thread_db.h.
4821
42995dbd
GB
48222014-06-20 Gary Benson <gbenson@redhat.com>
4823
4824 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
4825 (i386_dr_low_type): Moved to nat/i386-dregs.h.
4826 (i386_dr_low): Likewise.
4827 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
4828 (i386_dr_low_set_addr): Likewise.
4829 (i386_dr_low_get_addr): Likewise.
4830 (i386_dr_low_can_set_control): Likewise.
4831 (i386_dr_low_set_control): Likewise.
4832 (i386_dr_low_get_control): Likewise.
4833 (i386_dr_low_get_status): Likewise.
4834 (i386_get_debug_register_length): Likewise.
4835 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
4836 (i386_dr_low): Likewise.
4837 * nat/i386-dregs.c (i386-low.h): Remove include.
4838 (i386-nat.h): Likewise.
4839 (nat/i386-dregs.h): New include.
4840 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
4841 (i386_dr_low_set_addr): Likewise.
4842 (i386_dr_low_get_addr): Likewise.
4843 (i386_dr_low_can_set_control): Likewise.
4844 (i386_dr_low_set_control): Likewise.
4845 (i386_dr_low_get_control): Likewise.
4846 (i386_dr_low_get_status): Likewise.
4847 (i386_get_debug_register_length): Likewise.
4848 (debug_hw_points): Likewise.
4849
3ed9baed
IB
48502014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
4851
4852 * Makefile.in (SFILES): Add d-exp.y.
4853 (YYFILES): Add d-exp.c.
4854 (YYOBJ): Add d-exp.o.
4855 (local-maintainer-clean): Delete d-exp.c.
4856 * d-exp.y: New file.
4857 * d-lang.h (d_parse): New declaration.
4858 (d_error): New declaration.
4859 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
4860 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
4861 PREC_ORDER operators.
4862 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
4863
78c164b0
YQ
48642014-06-19 Yao Qi <yao@codesourcery.com>
4865
4866 * gdbthread.h (any_running): Remove the declaration.
4867 * thread.c (any_running): Remove.
4868
f6e29b6e
YQ
48692014-06-19 Yao Qi <yao@codesourcery.com>
4870
4871 * gdbthread.h (struct thread_info) <state>: Change its type to
4872 'enum thread_state'. Update comments.
4873
034f788c
PA
48742014-06-19 Pedro Alves <palves@redhat.com>
4875
4876 * gdbthread.h (ALL_THREADS): Delete.
4877 (ALL_NON_EXITED_THREADS): New macro.
4878 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
4879 instead of ALL_THREADS.
4880 * infrun.c (find_thread_needs_step_over)
4881 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
4882 instead of ALL_THREADS.
4883 * record-btrace.c (record_btrace_open)
4884 (record_btrace_stop_recording, record_btrace_close)
4885 (record_btrace_is_replaying, record_btrace_resume)
4886 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
4887 * remote.c (append_pending_thread_resumptions): Likewise.
4888 * thread.c (thread_apply_all_command): Likewise.
4889
46e33252
GB
48902014-06-19 Gary Benson <gbenson@redhat.com>
4891
4892 * i386-nat.c (i386_stopped_by_watchpoint):
4893 Use i386_dr_stopped_by_watchpoint.
4894 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
4895 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
4896
3a8ee006
GB
48972014-06-19 Gary Benson <gbenson@redhat.com>
4898
4899 * nat/i386-dregs.c: New file.
4900 * Makefile.in (i386-dregs.o): New rule.
4901 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
4902 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
4903 * config/i386/darwin.mh (NATDEPFILES): Likewise.
4904 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
4905 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
4906 * config/i386/go32.mh (NATDEPFILES): Likewise.
4907 * config/i386/linux.mh (NATDEPFILES): Likewise.
4908 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4909 * config/i386/mingw.mh (NATDEPFILES): Likewise.
4910 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
4911 * i386-nat.h (debug_hw_points): New declaration.
4912 * i386-nat.c (breakpoint.h): Remove include.
4913 (command.h): Likewise.
4914 (target.h): Likewise.
4915 (gdb_assert.h): Likewise.
4916 (debug_hw_points): Made nonstatic.
4917 (debug_printf): Now in i386-dregs.c.
4918 (TARGET_HAS_DR_LEN_8): Likewise.
4919 (DR_CONTROL_SHIFT): Likewise.
4920 (DR_CONTROL_SIZE): Likewise.
4921 (DR_RW_EXECUTE): Likewise.
4922 (DR_RW_WRITE): Likewise.
4923 (DR_RW_READ): Likewise.
4924 (DR_RW_IORW): Likewise.
4925 (DR_LEN_1): Likewise.
4926 (DR_LEN_2): Likewise.
4927 (DR_LEN_4): Likewise.
4928 (DR_LEN_8): Likewise.
4929 (DR_LOCAL_ENABLE_SHIFT): Likewise.
4930 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
4931 (DR_ENABLE_SIZE): Likewise.
4932 (DR_LOCAL_SLOWDOWN): Likewise.
4933 (DR_GLOBAL_SLOWDOWN): Likewise.
4934 (DR_CONTROL_RESERVED): Likewise.
4935 (I386_DR_CONTROL_MASK): Likewise.
4936 (I386_DR_VACANT): Likewise.
4937 (I386_DR_LOCAL_ENABLE): Likewise.
4938 (I386_DR_GLOBAL_ENABLE): Likewise.
4939 (I386_DR_DISABLE): Likewise.
4940 (I386_DR_SET_RW_LEN): Likewise.
4941 (I386_DR_GET_RW_LEN): Likewise.
4942 (I386_DR_WATCH_HIT): Likewise.
4943 (i386_wp_op_t): Likewise.
4944 (i386_show_dr): Likewise.
4945 (i386_length_and_rw_bits): Likewise.
4946 (i386_insert_aligned_watchpoint): Likewise.
4947 (i386_remove_aligned_watchpoint): Likewise.
4948 (i386_handle_nonaligned_watchpoint): Likewise.
4949 (i386_update_inferior_debug_regs): Likewise.
4950 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
4951 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
4952 (i386_region_ok_for_watchpoint):
4953 Use i386_dr_region_ok_for_watchpoint.
4954 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
4955
322a8e06
GB
49562014-06-19 Gary Benson <gbenson@redhat.com>
4957
4958 * i386-nat.c (i386_insert_hw_breakpoint): Use
4959 i386_insert_watchpoint.
4960 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
4961
8f26655c
GB
49622014-06-19 Gary Benson <gbenson@redhat.com>
4963
4964 * i386-nat.c (i386_dr_show): Renamed to
4965 i386_show_dr and made static. All uses updated.
4966 (i386_dr_length_and_rw_bits): Renamed to
4967 i386_length_and_rw_bits and made static.
4968 All uses updated.
4969 (i386_dr_insert_aligned_watchpoint): Renamed to
4970 i386_insert_aligned_watchpoint and made static.
4971 All uses updated.
4972 (i386_dr_remove_aligned_watchpoint): Renamed to
4973 i386_remove_aligned_watchpoint and made static.
4974 All uses updated.
4975 (i386_dr_update_inferior_debug_regs): Renamed to
4976 i386_update_inferior_debug_regs and made static.
4977 All uses updated.
4978 * nat/i386-dregs.h (i386_dr_show): Removed.
4979 (i386_dr_length_and_rw_bits): Likewise.
4980 (i386_dr_insert_aligned_watchpoint): Likewise.
4981 (i386_dr_remove_aligned_watchpoint): Likewise.
4982 (i386_dr_update_inferior_debug_regs): Likewise.
4983
992c7d70
GB
49842014-06-19 Gary Benson <gbenson@redhat.com>
4985
4986 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
4987 * configure: Regenerate.
4988 * config.in: Likewise.
4989 * main.c (signal.h): New include.
4990 (setup_alternate_signal_stack): New function.
4991 (captured_main): Call the above.
4992 * cp-support.c (signal.h): New include.
4993 (catch_demangler_crashes): New flag.
4994 (SIGJMP_BUF): New define.
4995 (SIGSETJMP): Likewise.
4996 (SIGLONGJMP): Likewise.
4997 (gdb_demangle_jmp_buf): New static global.
4998 (gdb_demangle_attempt_core_dump): Likewise.
4999 (gdb_demangle_signal_handler): New function.
5000 (gdb_demangle): If catch_demangler_crashes is set, install the
5001 above signal handler before calling bfd_demangle, and restore
5002 the original signal handler afterwards. Display the offending
5003 symbol and call demangler_warning the first time a segmentation
5004 fault is caught.
5005 (_initialize_cp_support): New maint set/show command.
5006
eae7090b
GB
50072014-06-19 Gary Benson <gbenson@redhat.com>
5008
5009 * utils.h (resource_limit_kind): New enum.
5010 (can_dump_core): New declaration.
5011 (warn_cant_dump_core): Likewise.
5012 (dump_core): Likewise.
5013 * utils.c (dump_core): Made nonstatic. Added new
5014 parameter "limit_kind".
5015 (can_dump_core): Made nonstatic. Moved printing code to...
5016 (warn_cant_dump_core): New function.
5017 (can_dump_core_warn): Likewise.
5018 (internal_vproblem): Replace calls to can_dump_core with
5019 calls to can_dump_core_warn. Supply new argument to each.
5020
57fcfb1b
GB
50212014-06-19 Gary Benson <gbenson@redhat.com>
5022
5023 * utils.h (demangler_vwarning): New declaration.
5024 (demangler_warning): Likewise.
5025 * utils.c (struct internal_problem)
5026 <user_settable_should_quit>: New field.
5027 <user_settable_should_dump_core>: Likewise
5028 (internal_error_problem): Add values for above new fields.
5029 (internal_warning_problem): Likewise.
5030 (demangler_warning_problem): New static global.
5031 (demangler_vwarning): New function.
5032 (demangler_warning): Likewise.
5033 (add_internal_problem_command): Selectively add commands.
5034 (_initialize_utils): New internal problem command.
5035 * maint.c (maintenance_demangler_warning): New function.
5036 (_initialize_maint_cmds): New command.
5037
17a40b44
TT
50382014-06-18 Tom Tromey <tromey@redhat.com>
5039
5040 * f-valprint.c (info_common_command_for_block): Update.
5041 * symtab.h (struct general_symbol_info) <common_block>: Now
5042 const.
5043
346d1dfe
TT
50442014-06-18 Tom Tromey <tromey@redhat.com>
5045
5046 * symtab.h (struct symtab) <blockvector>: Now const.
5047 * ada-lang.c (ada_add_global_exceptions): Update.
5048 * buildsym.c (augment_type_symtab): Update.
5049 * dwarf2read.c (dw2_lookup_symbol): Update.
5050 * jit.c (finalize_symtab): Update.
5051 * jv-lang.c (add_class_symtab_symbol): Update.
5052 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
5053 Update.
5054 * objfiles.c (objfile_relocate1): Update.
5055 * psymtab.c (lookup_symbol_aux_psymtabs)
5056 (maintenance_check_psymtabs): Update.
5057 * python/py-symtab.c (stpy_global_block, stpy_static_block):
5058 Update.
5059 * spu-tdep.c (spu_catch_start): Update.
5060 * symmisc.c (dump_symtab_1): Update.
5061 * symtab.c (lookup_global_symbol_from_objfile)
5062 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
5063 (basic_lookup_transparent_type_quick)
5064 (basic_lookup_transparent_type, find_pc_sect_symtab)
5065 (find_pc_sect_line, search_symbols): Update.
5066 * block.c (find_block_in_blockvector): Make "bl" const.
5067 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
5068 const.
5069 (blockvector_contains_pc): Make "bv" const.
5070 (block_for_pc_sect): Update.
5071 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
5072 (blockvector_contains_pc): Update.
5073 * breakpoint.c (resolve_sal_pc): Update.
5074 * inline-frame.c (block_starting_point_at): Update.
5075
1834676b
TT
50762014-06-18 Tom Tromey <tromey@redhat.com>
5077
5078 * completer.c (complete_line): Make "line_buffer" const.
5079 * completer.h (complete_line): Update.
5080
ac1a991b
TT
50812014-06-18 Tom Tromey <tromey@redhat.com>
5082
5083 * symtab.c (add_macro_name): Remove unneeded cast.
5084
5bc98e52
TT
50852014-06-18 Tom Tromey <tromey@redhat.com>
5086
5087 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
5088 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
5089
8236def8
TT
50902014-06-18 Tom Tromey <tromey@redhat.com>
5091
5092 * probe.c (info_probes_for_ops): Make "arg" const.
5093 * probe.h (info_probes_for_ops): Update.
5094
3977b71f
TT
50952014-06-18 Tom Tromey <tromey@redhat.com>
5096
5097 * varobj.c (varobj_create): Update.
5098 * valops.c (value_of_this): Update.
5099 * tracepoint.c (add_local_symbols, scope_info): Update.
5100 * symtab.h (struct general_symbol_info) <block>: Now const.
5101 * symtab.c (skip_prologue_sal)
5102 (default_make_symbol_completion_list_break_on)
5103 (skip_prologue_using_sal): Update.
5104 * stack.h (iterate_over_block_locals)
5105 (iterate_over_block_local_vars): Update.
5106 * stack.c (print_frame_args): Update.
5107 (iterate_over_block_locals, iterate_over_block_local_vars): Make
5108 parameter const.
5109 (get_selected_block): Make return type const.
5110 * python/py-frame.c (frapy_block): Update.
5111 * python/py-block.c (gdbpy_block_for_pc): Update.
5112 * p-exp.y (%union) <bval>: Now const.
5113 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
5114 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
5115 * m2-exp.y (%union) <bval>: Now const.
5116 * linespec.c (get_current_search_block): Make return type const.
5117 (create_sals_line_offset, find_label_symbols): Update.
5118 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
5119 Update.
5120 (block_starting_point_at): Make "block" const.
5121 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
5122 (check_exception_resume): Update.
5123 * guile/scm-frame.c (gdbscm_frame_block): Update.
5124 * guile/scm-block.c (gdbscm_lookup_block): Update.
5125 * frame.h (get_frame_block): Update.
5126 (get_selected_block): Make return type const.
5127 * frame.c (frame_id_inner): Update.
5128 * f-valprint.c (info_common_command_for_block)
5129 (info_common_command): Update.
5130 * dwarf2loc.c (dwarf2_find_location_expression)
5131 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
5132 (locexpr_describe_location_piece): Update.
5133 * c-exp.y (%union) <bval>: Now const.
5134 * breakpoint.c (resolve_sal_pc): Update.
5135 * blockframe.c (get_frame_block):Make return type const.
5136 (get_pc_function_start, get_frame_function, find_pc_sect_function)
5137 (block_innermost_frame): Update.
5138 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
5139 (block_for_pc, block_for_pc_sect): Update.
5140 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
5141 'pblock' const.
5142 (block_for_pc_sect, block_for_pc): Make return type const.
5143 * ax-gdb.c (gen_expr): Update.
5144 * alpha-mdebug-tdep.c (find_proc_desc): Update.
5145 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
5146 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
5147 (ada_read_var_value): Update.
5148 * ada-exp.y (struct name_info) <block>: Now const.
5149 (%union): Likewise.
5150 (block_lookup): Constify.
5151
b9228891
GB
51522014-06-18 Gary Benson <gbenson@redhat.com>
5153
5154 * nat/i386-dregs.h: New file.
5155 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
5156 * i386-nat.h (i386-dregs.h): New include.
5157 (DR_FIRSTADDR): Now in i386-dregs.h.
5158 (DR_LASTADDR): Likewise.
5159 (DR_NADDR): Likewise.
5160 (DR_STATUS): Likewise.
5161 (DR_CONTROL): Likewise.
5162 (i386_debug_reg_state): Likewise.
5163 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
5164
a1aa2221
LM
51652014-06-18 Don Breazeal <donb@codesourcery.com>
5166
5167 * breakpoint.c (set_longjmp_breakpoint): Call
5168 momentary_breakpoint_from_master with additional argument.
5169 (set_longjmp_breakpoint_for_call_dummy): Call
5170 momentary_breakpoint_from_master with additional argument.
5171 (set_std_terminate_breakpoint): Call
5172 momentary_breakpoint_from_master with additional argument.
5173 (momentary_breakpoint_from_master): Add argument to function
5174 definition and use it to initialize structure member flag.
74228e77 5175 (clone_momentary_breakpoint): Call
a1aa2221
LM
5176 momentary_breakpoint_from_master with additional argument.
5177 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
5178 member flags set in momentary_breakpoint_from_master.
5179
4be83cc2
GB
51802014-06-18 Gary Benson <gbenson@redhat.com>
5181
5182 * i386-nat.c (i386_show_dr): Renamed to
5183 i386_dr_show and made nonstatic. All uses updated.
5184 (i386_length_and_rw_bits): Renamed to
5185 i386_dr_length_and_rw_bits and made nonstatic.
5186 All uses updated.
5187 (i386_insert_aligned_watchpoint): Renamed to
5188 i386_dr_insert_aligned_watchpoint and made nonstatic.
5189 All uses updated.
5190 (i386_remove_aligned_watchpoint): Renamed to
5191 i386_dr_remove_aligned_watchpoint and made nonstatic.
5192 All uses updated.
5193 (i386_update_inferior_debug_regs): Renamed to
5194 i386_dr_update_inferior_debug_regs and made nonstatic.
5195 All uses updated.
5196
131aa0d4
GB
51972014-06-18 Gary Benson <gbenson@redhat.com>
5198
5199 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
5200 (i386_dr_low_can_set_control): Likewise.
5201 (i386_dr_low_set_addr): Likewise.
5202 (i386_dr_low_set_control): Likewise.
5203 (i386_dr_low_get_addr): Likewise.
5204 (i386_dr_low_get_status): Likewise.
5205 (i386_dr_low_get_control): Likewise.
5206 (i386_insert_aligned_watchpoint): Use new macros.
5207 (i386_update_inferior_debug_regs): Likewise.
5208 (i386_stopped_data_address): Likewise.
5209
d9305f7f
GB
52102014-06-18 Gary Benson <gbenson@redhat.com>
5211
5212 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
5213 New parameter. All uses updated.
5214
ea008da4
GB
52152014-06-18 Gary Benson <gbenson@redhat.com>
5216
5217 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
5218 All uses updated.
5219
1b6d4134
GB
52202014-06-18 Gary Benson <gbenson@redhat.com>
5221
5222 * i386-nat.c (debug_printf): New macro.
5223 (i386_get_debug_register_length): Likewise.
5224 (TARGET_HAS_DR_LEN_8): Use above macro.
5225 (i386_show_dr): Use debug_printf instead of puts_unfiltered
5226 and printf_unfiltered. Use phex to format values.
5227
9b4550ef
GB
52282014-06-18 Gary Benson <gbenson@redhat.com>
5229
5230 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
5231 Make const.
5232
6e62758f
GB
52332014-06-18 Gary Benson <gbenson@redhat.com>
5234
5235 * i386-nat.c: Comment changes.
5236
51c79e94
GB
52372014-06-18 Gary Benson <gbenson@redhat.com>
5238
5239 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
5240
3e11889a
GB
52412014-06-18 Gary Benson <gbenson@redhat.com>
5242
5243 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
5244 (i386_insert_aligned_watchpoint): Likewise.
5245 (i386_remove_aligned_watchpoint): Likewise.
5246 (i386_handle_nonaligned_watchpoint): Likewise.
5247
fc6e2f03
GB
52482014-06-18 Gary Benson <gbenson@redhat.com>
5249
5250 * i386-nat.c: Whitespace changes.
5251
2afe7d50
SB
52522014-06-17 Samuel Bronson <naesten@gmail.com>
5253
5254 * MAINTAINERS: Update Roland McGrath's email address.
5255 Thanks to Sergio Durigan Junior for pointing out that he left
6a83deea 5256 Red Hat a while ago, and giving me a current address.
2afe7d50 5257
3bca49ee
TT
52582014-06-17 Tom Tromey <tromey@redhat.com>
5259
5260 * utils.h (savestring): Remove declaration.
5261
6e366df1
TT
52622014-06-17 Tom Tromey <tromey@redhat.com>
5263
5264 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
5265
6be47f0c
KS
52662014-06-16 Keith Seitz <keiths@redhat.com>
5267
5268 PR mi/15863
5269 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
5270 to update the varobj if inferior_ptid is null_ptid.
5271
7bc112c1
TT
52722014-06-16 Tom Tromey <tromey@redhat.com>
5273
5274 * target.h (struct target_ops) <to_info_proc>: Make parameter
5275 const.
5276 (target_info_proc): Update.
5277 * target.c (target_info_proc): Make "args" const.
5278 * procfs.c (procfs_info_proc): Update.
5279 * linux-tdep.c (linux_info_proc): Update.
5280 (linux_core_info_proc_mappings): Make "args" const.
5281 (linux_core_info_proc): Update.
5282 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
5283 * gdbarch.c: Rebuild.
5284 * gdbarch.h: Rebuild.
5285 * corelow.c (core_info_proc): Update.
5286
fee354ee
TT
52872014-06-16 Tom Tromey <tromey@redhat.com>
5288
5289 * target.h (struct target_ops) <to_disconnect>: Make parameter
5290 const.
5291 (target_disconnect): Update.
5292 * target.c (target_disconnect): Make "args" const.
5293 * target-delegates.c: Rebuild.
5294 * remote.c (remote_disconnect): Update.
5295 * record.h (record_disconnect): Update.
5296 * record.c (record_disconnect): Update.
5297 * inf-child.c (inf_child_disconnect): Update.
5298
a30bf1f1
TT
52992014-06-16 Tom Tromey <tromey@redhat.com>
5300
5301 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
5302 * target.c (debug_to_rcmd, default_rcmd): Update.
5303 * target-delegates.c: Rebuild.
5304 * remote.c (remote_rcmd): Update.
5305 * monitor.c (monitor_rcmd): Update.
5306
d03de421
PA
53072014-06-16 Pedro Alves <palves@redhat.com>
5308
5309 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
5310 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
5311 have OBJF_SHARED set.
5312 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
5313 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
5314 instead of OBJF_USERLOADED.
5315 * objfiles.h (OBJF_SHARED): Update comment.
5316 (userloaded_objfile_contains_address_p): Rename to ...
5317 (shared_objfile_contains_address_p): ... this, and update
5318 comments.
5319 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
5320 new objfile.
5321 (remove_symbol_file_command): Skip objfiles that don't have
5322 OBJF_SHARED set.
5323
99f4262f
TT
53242014-06-16 Tom Tromey <tromey@redhat.com>
5325
5326 * minsyms.h (prim_record_minimal_symbol)
5327 (prim_record_minimal_symbol_and_info): Update comments.
5328
97d66cc6
EZ
53292014-06-14 Eli Zaretskii <eliz@gnu.org>
5330
5331 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
5332 or --without-guile, according to how GDB was built.
5333
635c7e8a
TT
53342014-06-13 Tom Tromey <tromey@redhat.com>
5335
5336 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
5337 to help_list.
5338 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
5339 to help_list.
5340 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
5341 help_list.
5342 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
5343 help_list.Pass all_commands, not -1, to help_list.
5344 * cli/cli-dump.c (dump_command, append_command)
5345 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
5346 (binary_dump_command, binary_append_command): Pass all_commands,
5347 not -1, to help_list.
5348 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
5349 -1, to help_list.
5350 * valprint.c (set_print, set_print_raw): Pass all_commands, not
5351 -1, to help_list.
5352 * typeprint.c (set_print_type): Pass all_commands, not -1, to
5353 help_list.
5354 * top.c (set_history): Pass all_commands, not -1, to help_list.
5355 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
5356 all_commands, not -1, to help_list.
5357 * symfile.c (overlay_command): Pass all_commands, not -1, to
5358 help_list.
5359 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
5360 help_list.
5361 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
5362 help_list.
5363 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
5364 -1, to help_list.
5365 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
5366 not -1, to help_list.
5367 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
5368 not -1, to help_list.
5369 * maint.c (maintenance_command, maintenance_info_command)
5370 (maintenance_print_command, maintenance_set_cmd): Pass
5371 all_commands, not -1, to help_list.
5372 * macrocmd.c (macro_command): Pass all_commands, not -1, to
5373 help_list.
5374 * language.c (set_check): Pass all_commands, not -1, to help_list.
5375 * infcmd.c (unset_command): Pass all_commands, not -1, to
5376 help_list.
5377 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
5378 help_list.
5379 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
5380 help_list.
5381 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
5382 help_list.
5383 * breakpoint.c (save_command): Pass all_commands, not -1, to
5384 help_list.
5385 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
5386 all_commands, not -1, to help_list.
5387
b94ade42
PL
53882014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
5389
5390 * regcache.c (struct register_to_invalidate): New structure.
5391 (do_register_invalidate, make_cleanup_regcache_invalidate): New
5392 functions.
5393 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
5394
31f628ae
YQ
53952014-06-12 Yao Qi <yao@codesourcery.com>
5396
5397 * varobj.c (varobj_get_num_children): Call
5398 varobj_is_dynamic_p.
5399 (varobj_list_children): Likewise.
5400 (varobj_update): Likewise. Update comments.
5401
cde5ef40
YQ
54022014-06-12 Yao Qi <yao@codesourcery.com>
5403
5404 * varobj.c (varobj_pretty_printed_p): Rename to ...
5405 (varobj_is_dynamic_p): ... this. New function.
5406 * varobj.h (varobj_pretty_printed_p): Remove declaration.
5407 (varobj_is_dynamic_p): Declare.
5408 * mi/mi-cmd-var.c (print_varobj): All callers updated.
5409 (mi_print_value_p, varobj_update_one): Likewise.
5410
576ea091
YQ
54112014-06-12 Pedro Alves <pedro@codesourcery.com>
5412 Yao Qi <yao@codesourcery.com>
5413
5414 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
5415 (varobj_get_iterator): Wrap up code for pretty-printer by
5416 "#if HAVE_PYTHON" and "#endif".
5417 (update_dynamic_varobj_children): Likewise.
5418
827f100c
YQ
54192014-06-12 Pedro Alves <pedro@codesourcery.com>
5420 Yao Qi <yao@codesourcery.com>
5421
5422 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
5423 gdb_python_initialized is false. Move some code from varobj.c.
5424 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
5425 * varobj.c: Move "varobj-iter.h" inclusion earlier.
5426 (struct varobj_item): Moved to varobj-iter.h".
5427 (varobj_clear_saved_item): New function.
5428 (update_dynamic_varobj_children): Move python-related code to
5429 py-varobj.c.
5430 (free_variable): Call varobj_clear_saved_item and
5431 varobj_iter_delete.
5432
e5250216
YQ
54332014-06-12 Pedro Alves <pedro@codesourcery.com>
5434 Yao Qi <yao@codesourcery.com>
5435
5436 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
5437 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
5438 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
5439 (py-varobj.o): New rule.
5440 * python/py-varobj.c: New file.
5441 * python/python-internal.h (py_varobj_get_iterator): Declare.
5442 * varobj-iter.h: New file.
5443 * varobj.c: Include "varobj-iter.h"
5444 (struct varobj) <child_iter>: Change its type from "PyObject *"
5445 to "struct varobj_iter *".
5446 <saved_item>: Likewise.
5447 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
5448 [HAVE_PYTHON] (varobj_get_iterator): New function.
5449 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
5450 python-specific code to python/py-varobj.c.
5451 (install_visualizer): Call varobj_iter_delete instead of
5452 Py_XDECREF.
5453 * varobj.h (varobj_ensure_python_env): Declare.
5454
5a2e0d6e
YQ
54552014-06-12 Yao Qi <yao@codesourcery.com>
5456
5457 * varobj.c (struct varobj_item): New structure.
5458 (create_child_with_value): Update declaration.
5459 (varobj_add_child): Replace arguments 'name' and 'value' with
5460 'item'. All callers updated.
5461 (install_dynamic_child): Likewise.
5462 (update_dynamic_varobj_children): Likewise.
5463 (varobj_add_child): Likewise.
5464 (create_child_with_value): Likewise.
5465
919b9a93
JB
54662014-06-11 Joel Brobecker <brobecker@adacore.com>
5467
5468 * NEWS: Create a new section for the next release branch.
5469 Rename the section of the current branch, now that it has
5470 been cut.
5471
71a55bdf
JB
54722014-06-11 Joel Brobecker <brobecker@adacore.com>
5473
5474 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
5475 * version.in: Bump version to 7.8.50.DATE-cvs.
5476
364fe1f7
PA
54772014-06-11 Pedro Alves <palves@redhat.com>
5478
5479 PR remote/17028
5480 * ser-mingw.c (net_windows_socket_check_pending): New function.
5481 (net_windows_select_thread): Ignore spurious wakeups. Use
5482 net_windows_socket_check_pending.
5483 (net_windows_wait_handle): Check for pending events with
5484 ioctlsocket, through net_windows_socket_check_pending, instead of
5485 checking the socket's event.
5486
5a6c7709
SC
54872014-06-10 Siva Chandra Reddy <sivachandra@google.com>
5488
5489 * python/python-internal.h (gdb_PyObject_GetAttrString)
5490 (gdb_PyObject_HasAttrString): New inline function definitions.
5491 * py-value.c (get_field_flag): Remove the now unnecessary cast to
5492 char * of the second argument to PyObject_GetAttrString.
74228e77 5493
0e58ee40
JB
54942014-06-10 Joel Brobecker <brobecker@adacore.com>
5495
5496 * serial.c (serial_write): Fix index of character to be printed
5497 in call to serial_logchar when serial debug traces are enabled.
5498
d190df30
JB
54992014-06-10 Joel Brobecker <brobecker@adacore.com>
5500
5501 * gdbtypes (resolve_dynamic_range): Add function description.
5502
b4b01d36
PA
55032014-06-09 Pedro Alves <palves@redhat.com>
5504
5505 * linux-nat.c (linux_child_follow_fork): Initialize status with
5506 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
5507 inner block. Only pass the signal to PTRACE_DETACH if in pass
5508 state.
5509
3657956b
GB
55102014-06-09 Gary Benson <gbenson@redhat.com>
5511
5512 * common/signals.c (gdb_signal_from_host): Reorder to separate
5513 the always-available ANSI-standard signals from the signals that
5514 require checking.
5515 (do_gdb_signal_to_host): Likewise.
5516 * proc-events.c (signal_table): Likewise.
5517
c077881a
HZ
55182014-06-08 Hui Zhu <hui@codesourcery.com>
5519
5520 * common/linux-ptrace.c (linux_disable_event_reporting): New
5521 function.
5522 * common/linux-ptrace.h (linux_disable_event_reporting): New
5523 declaration.
5524 * linux-nat.c (linux_child_follow_fork): Do a single step before
5525 detach.
5526
4186eb54
KS
55272014-06-07 Keith Seitz <keiths@redhat.com>
5528
5529 Revert:
5530 PR c++/16253
5531 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5532 from symbol_matches_domain in symtab.c. All local callers
5533 of symbol_matches_domain updated.
5534 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5535 search STRUCT_DOMAIN.
5536 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5537 independently. standard_lookup will do that automatically.
5538 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5539 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5540 (cp_lookup_symbol_in_namespace): Likewise.
5541 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5542 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5543 may return a STRUCT_DOMAIN match.
5544 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5545 * cp-support.c: Include language.h.
5546 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5547 VAR_DOMAIN.
5548 * psymtab.c (match_partial_symbol): Compare the requested
5549 domain with the symbol's domain directly.
5550 (lookup_partial_symbol): Likewise.
5551 * symtab.c (lookup_symbol_in_language): Explain when/why
5552 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5553 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5554 appropriate languages.
5555 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5556 and moved to ada-lang.c
5557 (lookup_block_symbol): Explain that this function only returns
5558 symbol matching the requested DOMAIN.
5559 Compare the requested domain with the symbol's domain directly.
5560 (iterate_over_symbols): Compare the requested domain with the
5561 symbol's domain directly.
5562 * symtab.h (symbol_matches_domain): Remove.
5563
25326a28 55642014-06-06 Doug Evans <xdje42@gmail.com>
d2929fdc
DE
5565
5566 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
5567 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
5568 (gdbscm_guile_version_is_at_least): Declare.
5569 (gdbscm_scm_string_to_int): Declare.
5570 * guile/guile.c (gdbscm_guile_major_version): New global.
5571 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
5572 (guile_datadir): New static global.
5573 (gdbscm_guile_data_directory): New function.
5574 (initialize_scheme_side): Update.
5575 (misc_guile_functions): Add guile-data-directory.
5576 (initialize_gdb_module): Fetch guile version number.
5577 * guile/lib/gdb.scm: Remove call to add-to-load-path.
5578 * guile/lib/gdb/init.scm (%initialize!): Ditto.
5579 * guile/lib/gdb/boot.scm: Use guile-data-directory.
5580 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
5581 comments.
5582 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
5583 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
5584 * guile/scm-value.c (gdbscm_value_to_string): Only call
5585 scm_port_conversion_strategy if Guile version >= 2.0.6.
5586
0a770bb2 55872014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
5588
5589 * main.c (print_gdb_help): Add -q and --silent.
5590
73ba372c
GB
55912014-06-06 Gary Benson <gbenson@redhat.com>
5592
5593 * common/signals.c: Remove preprocessor conditionals for
5594 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
5595 SIGSEGV and SIGTERM.
5596 * proc-events.c: Likewise.
5597
c33b2f12
MM
55982014-06-06 Markus Metzger <markus.t.metzger@intel.com>
5599
5600 * symfile.c (symfile_free_objfile): Remove restriction to
5601 OBJF_USERLOADED.
5602 * symfile-mem.c (symbol_file_add_from_memory): Call
5603 add_target_sections_of_objfile.
5604
fb934770
LC
56052014-06-05 Ludovic Courtès <ludo@gnu.org>
5606
5607 * guile/scm-value.c (gdbscm_history_append_x): Use
5608 'vlscm_get_value_smob_arg_unsafe' instead of
5609 'vlscm_scm_to_value'.
5610
6ef284bd
SM
56112014-06-05 Simon Marchi <simon.marchi@ericsson.com>
5612
5613 PR mi/15806
5614 * utils.c (printchar): Don't escape at all if quoter is NUL.
5615 Update function documentation to clarify effect of parameter
5616 QUOTER.
5617 * remote.c (escape_buffer): Pass '\\' as the quoter to
5618 fputstrn_unfiltered.
5619 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
5620 generate the output.
5621 (mi_solib_unloaded): Same.
5622
270c9937
JB
56232014-06-05 Joel Brobecker <brobecker@adacore.com>
5624
5625 * development.sh: Delete.
5626 * Makefile.in (config.status): Adjust dependency on development.sh.
5627 * configure.ac: Adjust development.sh source call.
5628 * configure: Regenerate.
5629
16f691fb
DE
56302014-06-04 Doug Evans <xdje42@gmail.com>
5631
5632 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
5633 is_scheme_bkpt, spec.
5634 (bpscm_make_breakpoint_smob): Initialize new members.
5635 (gdbscm_create_breakpoint_x): Split into two ...
5636 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
5637 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
5638 (scheme_function breakpoint_functions): Update.
5639 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
5640 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
5641 register-breakpoint!.
5642
ef7cab6b
JB
56432014-06-04 Joel Brobecker <brobecker@adacorer.com>
5644
5645 PR server/17023
5646 * mem-break.c (z_type_supported): Return zero if
5647 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
5648
012370f6
TT
56492014-06-04 Tom Tromey <tromey@redhat.com>
5650
5651 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
5652 value_from_contents_and_address_unresolved.
5653 (ada_template_to_fixed_record_type_1): Likewise.
5654 (ada_which_variant_applies): Likewise.
5655 * value.h (value_from_contents_and_address_unresolved): Declare.
5656 * value.c (value_from_contents_and_address_unresolved): New
5657 function.
5658 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
5659 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
5660 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
5661
92e2a17f
TT
56622014-06-04 Tom Tromey <tromey@redhat.com>
5663
5664 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
5665
c0939df1
TT
56662014-06-04 Tom Tromey <tromey@redhat.com>
5667
5668 * procfs.c (procfs_attach): Make "args" const.
5669 * windows-nat.c (windows_attach): Make "args" const.
5670 * nto-procfs.c (procfs_attach): Make "args" const.
5671 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
5672 * go32-nat.c (go32_attach): Make "args" const.
5673 * gnu-nat.c (gnu_attach): Make "args" const.
5674 * darwin-nat.c (darwin_attach): Make "args" const.
5675 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
5676 * linux-nat.c (linux_nat_attach): Make "args" const.
5677 * remote.c (extended_remote_attach_1, extended_remote_attach):
5678 Make "args" const.
5679 * target.h (struct target_ops) <to_attach>: Make "args" const.
5680 (find_default_attach): Likewise.
5681 * utils.c (parse_pid_to_attach): Make "args" const.
5682 * utils.h (parse_pid_to_attach): Update.
5683
8eaff7cd
TT
56842014-06-04 Tom Tromey <tromey@redhat.com>
5685
5686 * target-delegates.c: Rebuild.
5687 * target.c (default_thread_address_space): New function.
5688 (target_thread_address_space): Simplify.
5689 * target.h (struct target_ops) <to_thread_address_space>: Add
5690 TARGET_DEFAULT_FUNC.
5691
1913f160
DE
56922014-06-04 Doug Evans <xdje42@gmail.com>
5693
5694 * guile/scm-type.c (type_smob): Remove duplicate typedef.
5695
70ad5bff
MM
56962014-06-04 Markus Metzger <markus.t.metzger@intel.com>
5697
5698 * record-btrace.c: Include event-loop.h and inf-loop.h.
5699 (record_btrace_resume_exec_dir)
5700 (record_btrace_async_inferior_event_handler)
5701 (record_btrace_handle_async_inferior_event): New.
5702 (record_btrace_open): Create async event handler.
5703 (record_btrace_close): Delete async event handler.
5704 (record_btrace_resume): Set record_btrace_resume_exec_dir,
5705 Mark async event handler.
5706 (record_btrace_execution_direction): New.
5707 (init_record_btrace_ops): Initialize to_execution_direction.
5708
b6210538
DE
57092014-06-03 Doug Evans <xdje42@gmail.com>
5710
5711 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
5712 (gdbscm_make_parameter): Ditto.
5713
a5b1fd27
DE
57142014-06-03 Doug Evans <dje@google.com>
5715
5716 * exec.c (exec_close_1): Call clear_section_table instead of
5717 resize_section_table.
5718 (clear_section_table): New function.
5719 (resize_section_table): Make static. Rename arg num_added to
5720 adjustment.
5721 * exec.h (clear_section_table): Declare.
5722 (resize_section_table): Delete.
5723 * progspace.c (release_program_space): Call clear_section_table
5724 instead of resize_section_table.
5725
0c6e92a5
SC
57262014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5727
5728 * NEWS (Python Scripting): Add entry about the new xmethods
5729 feature.
5730
883964a7
SC
57312014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5732
5733 * python/py-xmethods.c: New file.
5734 * python/py-objfile.c (objfile_object): New field 'xmethods'.
5735 (objfpy_dealloc): XDECREF on the new xmethods field.
5736 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
5737 field.
5738 (objfpy_get_xmethods): New function.
5739 (objfile_getset): New entry 'xmethods'.
5740 * python/py-progspace.c (pspace_object): New field 'xmethods'.
5741 (pspy_dealloc): XDECREF on the new xmethods field.
5742 (pspy_new, pspace_to_pspace_object): Initialize xmethods
5743 field.
5744 (pspy_get_xmethods): New function.
5745 (pspace_getset): New entry 'xmethods'.
5746 * python/python-internal.h: Add declarations for new functions.
5747 * python/python.c (_initialize_python): Invoke
5748 gdbpy_initialize_xmethods.
5749 * python/lib/gdb/__init__.py (xmethods): New
5750 attribute.
5751 * python/lib/gdb/xmethod.py: New file.
5752 * python/lib/gdb/command/xmethods.py: New file.
5753
58992dc5
SC
57542014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5755
5756 * eval.c (evaluate_subexp_standard): Call the xmethod if the
5757 best match method returned by find_overload_match is an xmethod.
5758 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
5759 the best matching operator returned by find_overload_match is an
5760 xmethod.
5761 * valops.c: #include "extension.h".
5762 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
5763 Return void. The list of matching source methods is returned in
5764 "fn_list" and a vector of matching debug method workers is
5765 returned in "xm_worker_vec". Update all callers.
5766 (value_find_oload_method_list): Likewise.
5767 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
5768 non-NULL, then the index of the best matching method in this
5769 vector is returned. Update all callers.
5770 (find_overload_match): Include xmethods while performing overload
5771 resolution.
5772
e81e7f5e
SC
57732014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5774
5775 * defs.h (enum lval_type): New enumerator "lval_xcallable".
5776 * extension-priv.h (struct extension_language_ops): Add the
5777 xmethod interface.
5778 * extension.c (new_xmethod_worker, clone_xmethod_worker,
5779 get_matching_xmethod_workers, get_xmethod_argtypes,
5780 invoke_xmethod, free_xmethod_worker,
5781 free_xmethod_worker_vec): New functions.
5782 * extension.h: #include "common/vec.h".
5783 New function declarations.
5784 (struct xmethod_worker): New struct.
5785 (VEC (xmethod_worker_ptr)): New vector type.
5786 (xmethod_worker_ptr): New typedef.
5787 (xmethod_worker_vec): Likewise.
5788 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
5789 builtin_type.
5790 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
5791 (struct builtin_type): New field "xmethod".
5792 * valarith.c (value_ptradd): Assert that the value argument is not
5793 lval_xcallable.
5794 * valops.c (value_must_coerce_to_target): Return 0 for
5795 lval_xcallable values.
5796 * value.c (struct value): New field XM_WORKER in the field
5797 LOCATION.
5798 (value_address, value_raw_address): Return 0 for lval_xcallable
5799 values.
5800 (set_value_address): Assert that the value is not an
5801 lval_xcallable.
5802 (value_free): Free the associated xmethod worker when freeing
5803 lval_xcallable values.
5804 (set_value_component_location): Assert that the WHOLE value is not
5805 lval_xcallable.
5806 (value_of_xmethod, call_xmethod): New functions.
5807 * value.h: Declare "struct xmethod_worker".
5808 Declare new functions value_of_xmethod, call_xmethod.
5809
ef370185
JB
58102014-06-03 Joel Brobecker <brobecker@adacore.com>
5811 Pedro Alves <palves@redhat.com>
5812
5813 PR breakpoints/17000
5814 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
5815 New function, extracted from software_breakpoint_inserted_here_p.
5816 (software_breakpoint_inserted_here_p): Replace factored out code
5817 by call to find_non_raw_software_breakpoint_inserted_here.
5818 (bp_target_info_copy_insertion_state): New function.
5819 (bkpt_insert_location): Handle the case of a single-step
5820 breakpoint already inserted at the same address.
5821 (bkpt_remove_location): Handle the case of a single-step
5822 breakpoint still inserted at the same address.
5823 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
5824 breakpoint already inserted at the same address.
5825 (deprecated_remove_raw_breakpoint): Handle the case of a
5826 non-raw breakpoint still inserted at the same address.
5827 (find_single_step_breakpoint): New function, extracted from
5828 single_step_breakpoint_inserted_here_p.
5829 (find_single_step_breakpoint): New function,
5830 factored out from single_step_breakpoint_inserted_here_p.
5831 (single_step_breakpoint_inserted_here_p): Reimplement.
5832
1e2ccb61
BM
58332014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
5834
5835 Pushed by Joel Brobecker <brobecker@adacore.com>
5836 * source.c (show_substitute_path_command): Fix display of matching
5837 substitution rules.
5838
d3448d85
GB
58392014-06-03 Gary Benson <gbenson@redhat.com>
5840
5841 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
5842
06eb1586
DE
58432014-06-02 Doug Evans <xdje42@gmail.com>
5844
5845 Add parameter support for Guile.
5846 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
5847 (SUBDIR_GUILE_SRCS): Add scm-param.c.
5848 (scm-param.o): New rule.
5849 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
5850 (gdbscm_misc_error): Declare.
5851 (gdbscm_canonicalize_command_name): Declare.
5852 (gdbscm_scm_to_host_string): Declare.
5853 (gdbscm_scm_from_host_string): Declare.
5854 (gdbscm_initialize_parameters): Declare.
5855 * guile/guile.c (initialize_gdb_module): Call
5856 gdbscm_initialize_parameters.
5857 * guile/lib/gdb.scm: Export parameter symbols.
5858 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
5859 cmdscm_canonicalize_name and made public. All callers updated.
5860 * guile/scm-exception.c (gdbscm_misc_error): New function.
5861 * guile/scm-param.c: New file.
5862 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
5863 (gdbscm_scm_to_host_string): New function.
5864 (gdbscm_scm_from_host_string): New function.
5865 * scm-utils.c (gdbscm_gc_dup_argv): New function.
5866
e698b8c4
DE
58672014-06-02 Doug Evans <xdje42@gmail.com>
5868
5869 Add command support for Guile.
5870 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
5871 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
5872 (scm-cmd.o): New rule.
5873 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
5874 (gdbscm_user_error_p): Declare.
5875 (gdbscm_parse_command_name): Declare.
5876 (gdbscm_valid_command_class_p): Declare.
5877 (gdbscm_initialize_commands): Declare.
5878 * guile/guile.c (initialize_gdb_module): Call
5879 gdbscm_initialize_commands.
5880 * guile/lib/gdb.scm: Export command symbols.
5881 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
5882 (throw-user-error): New function.
5883 * guile/scm-cmd.c: New file.
5884 * guile/scm-exception.c (user_error_symbol): New static global.
5885 (gdbscm_user_error_p): New function.
5886 (gdbscm_initialize_exceptions): Set user_error_symbol.
5887 * scm-utils.c (gdbscm_gc_xstrdup): New function.
5888
fb1f94b0
PM
58892014-06-02 Phil Muldoon <pmuldoon@redhat.com>
5890
5891 * top.c (command_loop): Handle comments here...
5892 (command_line_input): ... not here.
5893
ded03782
DE
58942014-06-02 Doug Evans <xdje42@gmail.com>
5895
5896 Add progspace support for Guile.
5897 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
5898 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
5899 (scm-progspace.o): New rule.
5900 * guile/guile-internal.h (pspace_smob): New typedef.
5901 (psscm_pspace_smob_pretty_printers): Declare.
5902 (psscm_pspace_smob_from_pspace): Declare.
5903 (psscm_scm_from_pspace): Declare.
5904 * guile/guile.c (initialize_gdb_module): Call
5905 gdbscm_initialize_pspaces.
5906 * guile/lib/gdb.scm: Export progspace symbols.
5907 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
5908 support.
5909 (append-pretty-printer!): Ditto.
5910 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
5911 Implement.
5912 * guile/scm-progspace.c: New file.
5913
397998fc
AM
59142014-06-03 Alan Modra <amodra@gmail.com>
5915
5916 * ppc64-tdep.c (ppc64_standard_linkage8): New.
5917 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
5918
6aa5f3a6
DE
59192014-06-02 Doug Evans <dje@google.com>
5920
5921 Add support for skeletonless type units.
5922 * dwarf2read.c (struct dwarf2_per_objfile): New member
5923 n_allocated_type_units.
5924 (struct dwarf2_per_objfile) <tu_stats>: New member
5925 nr_all_type_units_reallocs.
5926 (create_signatured_type_table_from_index): Initialize
5927 n_allocated_type_units
5928 (create_all_type_units): Ditto.
5929 (add_type_unit): Move up in file. New arg slot.
5930 All callers updated. Increase space for all_type_units more
5931 efficiently.
5932 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
5933 (lookup_dwo_signatured_type): Handle skeletonless TUs.
5934 (lookup_dwp_signatured_type): Ditto.
5935 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
5936 All callers updated.
5937 (build_type_psymtabs_1): Leave type_unit_groups as
5938 NULL if no TUs present.
5939 (print_tu_stats): New function.
5940 (process_skeletonless_type_unit): New function.
5941 (process_dwo_file_for_skeletonless_type_units): New
5942 function.
5943 (process_skeletonless_type_units): New function.
5944 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
5945 Call print tu_stats if debugging enabled.
5946
41fac0cf
PA
59472014-06-02 Pedro Alves <palves@redhat.com>
5948
5949 * breakpoint.c (build_target_command_list): Don't build a command
5950 list if we have any duplicate location that isn't a dprintf.
5951
cd1608cc
PA
59522014-06-02 Pedro Alves <palves@redhat.com>
5953
5954 * breakpoint.c (dprintf_breakpoint_hit): New function.
5955 (initialize_breakpoint_ops): Install it as dprintf's
5956 breakpoint_hit method.
5957
486ef3b9
JB
59582014-06-02 Joel Brobecker <brobecker@adacore.com>
5959
5960 * source.c (substitute_path_rule_matches): Simplify using
5961 filename_ncmp instead of FILENAME_CMP.
5962
230cd560
JB
59632014-06-02 Joel Brobecker <brobecker@adacore.com>
5964
5965 * source.c (substitute_path_rule_matches): Remove trailing spaces.
5966
16954d5d
LC
59672014-06-01 Ludovic Courtès <ludo@gnu.org>
5968
5969 * configure.ac: When Guile is available, check for the
5970 availability of 'scm_new_smob'.
5971 * configure, config.h.in: Regenerate.
5972 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
5973 function.
5974
53e8a631
AB
59752014-05-30 Andrew Burgess <aburgess@broadcom.com>
5976
5977 * frame.c (struct frame_info): Add stop_string field.
5978 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
5979 (get_prev_frame_always): Old content moved into
5980 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
5981 TRY_CATCH, handle MEMORY_ERROR exceptions.
5982 (frame_stop_reason_string): New function definition.
5983 * frame.h (unwind_stop_reason_to_string): Extend comment to
5984 mention frame_stop_reason_string.
5985 (frame_stop_reason_string): New function declaration.
5986 * stack.c (frame_info): Switch to frame_stop_reason_string.
5987 (backtrace_command_1): Switch to frame_stop_reason_string.
5988 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
5989 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
5990 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
5991
70e38b8e
AB
59922014-05-30 Andrew Burgess <aburgess@broadcom.com>
5993
5994 * frame.c (frame_stop_reason_string): Rename to ...
5995 (unwind_stop_reason_to_string): this.
5996 * frame.h (frame_stop_reason_string): Rename to ...
5997 (unwind_stop_reason_to_string): this.
5998 * stack.c (frame_info): Update call to frame_stop_reason_string.
5999 (backtrace_command_1): Likewise.
6000 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
6001 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
6002
938f0e2f
AB
60032014-05-30 Andrew Burgess <aburgess@broadcom.com>
6004
6005 * frame.c (remove_prev_frame): New function.
6006 (get_prev_frame_if_no_cycle): Create / discard cleanup using
6007 remove_prev_frame.
6008
a09dd441
PA
60092014-05-29 Pedro Alves <palves@redhat.com>
6010
6011 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
6012 and make it const. When a single-step decays to a continue,
6013 clear 'step', not 'hw_step'. Pass whether the caller wanted
6014 to step to user_visible_resume_ptid, not what we ask the
6015 target to do.
6016
bdc36728
PA
60172014-05-29 Pedro Alves <palves@redhat.com>
6018
6019 * infrun.c (process_event_stop_test, handle_step_into_function)
6020 (handle_step_into_function_backward): Adjust.
6021 Don't set the even thread's stop_step and call stop_waiting before
6022 calling end_stepping_range. Instead do that ...
6023 (end_stepping_range): ... here. Take an ecs pointer parameter.
6024
22bcd14b
PA
60252014-05-29 Pedro Alves <palves@redhat.com>
6026
6027 * infrun.c (stop_stepping): Rename to ...
6028 (stop_waiting): ... this.
6029 (proceed): Update comment.
6030 (process_event_stop_test, handle_inferior_event)
6031 (handle_signal_stop, handle_step_into_function)
6032 (handle_step_into_function_backward): Update.
6033
4ae57c05
PA
60342014-05-29 Pedro Alves <palves@redhat.com>
6035
6036 * infcall.c (run_inferior_call): Don't check whether the current
6037 thread is running after the proceed call.
6038
329ea579
PA
60392014-05-29 Pedro Alves <palves@redhat.com>
6040 Tom Tromey <tromey@redhat.com>
6041
6042 * NEWS: Mention "maint set target-async", "set mi-async", and that
6043 background execution commands are now always available.
6044 * target.h (target_async_permitted): Update comment.
6045 * target.c (target_async_permitted, target_async_permitted_1):
6046 Default to 1.
6047 (set_target_async_command): Rename to ...
6048 (maint_set_target_async_command): ... this.
6049 (show_target_async_command): Rename to ...
6050 (maint_show_target_async_command): ... this.
6051 (_initialize_target): Adjust.
6052 * infcmd.c (prepare_execution_command): Make extern.
6053 * inferior.h (prepare_execution_command): Declare.
6054 * infrun.c (set_observer_mode): Leave target async alone.
6055 * mi/mi-interp.c (mi_interpreter_init): Install
6056 mi_on_sync_execution_done as sync_execution_done observer.
6057 (mi_on_sync_execution_done): New function.
6058 (mi_execute_command_input_handler): Don't print the prompt if we
6059 just started a synchronous command with an async target.
6060 (mi_on_resume): Check sync_execution before printing prompt.
6061 * mi/mi-main.h (mi_async_p): Declare.
6062 * mi/mi-main.c: Include gdbcmd.h.
6063 (mi_async_p): New function.
6064 (mi_async, mi_async_1): New globals.
6065 (set_mi_async_command, show_mi_async_command, mi_async): New
6066 functions.
6067 (exec_continue): Call prepare_execution_command.
6068 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
6069 (mi_execute_async_cli_command): Use mi_async_p.
6070 (_initialize_mi_main): Install "set mi-async". Make
6071 "target-async" a deprecated alias.
6072
92bcb5f9
PA
60732014-05-29 Pedro Alves <palves@redhat.com>
6074
6075 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
6076 (_initialize_cli_interp): Adjust.
6077 * event-loop.c: Include "observer.h".
6078 (start_event_loop): Notify 'command_error' observers instead of
6079 calling display_gdb_prompt. Remove FIXME comment.
6080 * event-top.c (display_gdb_prompt): Remove call into the
6081 interpreters.
6082 * inf-loop.c: Include "observer.h".
6083 (inferior_event_handler): Notify 'command_error' observers instead
6084 of calling display_gdb_prompt.
6085 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
6086 observers instead of calling display_gdb_prompt.
6087 * interps.c (interp_set): Don't call display_gdb_prompt.
6088 (current_interp_display_prompt_p): Delete.
6089 * interps.h (interp_prompt_p): Delete declaration.
6090 (interp_prompt_p_ftype): Delete.
6091 (struct interp_procs) <prompt_proc_p>: Delete field.
6092 (current_interp_display_prompt_p): Delete declaration.
6093 * mi-interp.c (mi_interpreter_prompt_p): Delete.
6094 (_initialize_mi_interp): Adjust.
6095 * tui-interp.c (tui_init): Install 'sync_execution_done' and
6096 'command_error' observers.
6097 (tui_on_sync_execution_done, tui_on_command_error): New
6098 functions.
6099 (tui_display_prompt_p): Delete.
6100 (_initialize_tui_interp): Adjust.
6101
fd664c91
PA
61022014-05-29 Pedro Alves <palves@redhat.com>
6103
6104 PR gdb/13860
6105 * cli/cli-interp.c: Include infrun.h and observer.h.
6106 (cli_uiout, cli_interp): New globals.
6107 (cli_on_signal_received, cli_on_end_stepping_range)
6108 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
6109 functions.
6110 (cli_interpreter_init): Install them as 'end_stepping_range',
6111 'signal_received' 'signal_exited', 'exited' and 'no_history'
6112 observers.
6113 (_initialize_cli_interp): Remove cli_interp local.
6114 * infrun.c (handle_inferior_event): Call the several stop reason
6115 observers instead of printing the stop reason directly.
6116 (end_stepping_range): New function.
6117 (print_end_stepping_range_reason, print_signal_exited_reason)
6118 (print_exited_reason, print_signal_received_reason)
6119 (print_no_history_reason): Make static, and add an uiout
6120 parameter. Print to that instead of to CURRENT_UIOUT.
6121 * infrun.h (print_end_stepping_range_reason)
6122 (print_signal_exited_reason, print_exited_reason)
6123 (print_signal_received_reason print_no_history_reason): New
6124 declarations.
6125 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
6126 'mi_uiout'.
6127 <cli_uiout>: New field.
6128 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
6129 uiout for CLI output. Install 'signal_received',
6130 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
6131 observers.
6132 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
6133 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
6134 (mi_on_no_history): New functions.
6135 (ui_out_free_cleanup): Delete function.
6136 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
6137 instead use the one already stored in the MI interpreter data.
6138 (mi_ui_out): Adjust.
6139 * tui/tui-interp.c: Include infrun.h and observer.h.
6140 (tui_interp): New global.
6141 (tui_on_signal_received, tui_on_end_stepping_range)
6142 (tui_on_signal_exited, tui_on_exited)
6143 (tui_on_no_history): New functions.
6144 (tui_init): Install them as 'end_stepping_range',
6145 'signal_received' 'signal_exited', 'exited' and 'no_history'
6146 observers.
6147 (_initialize_tui_interp): Delete tui_interp local.
6148
8817a6f2
PA
61492014-05-29 Pedro Alves <palves@redhat.com>
6150
6151 PR gdb/15713
6152 * linux-nat.c (linux_nat_resume_callback): Rename the second
6153 parameter to 'except'. Skip LP if it points to EXCEPT.
6154 (linux_nat_resume): Don't mark the event lwp as not stopped
6155 before resuming sibling lwps. Instead ask
6156 linux_nat_resume_callback to skip the event lwp. Mark it as not
6157 stopped after actually resuming it.
6158 (linux_handle_syscall_trap): Mark the lwp as not stopped after
6159 resuming it.
6160 (wait_lwp): Mark the lwp as stopped here.
6161 (stop_wait_callback): Mark the lwp as not stopped right after
6162 resuming it. Don't mark lwps as stopped here.
6163 (linux_nat_filter_event): Mark the lwp as stopped earlier.
6164 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
6165
251bde03
PA
61662014-05-29 Pedro Alves <palves@redhat.com>
6167
6168 PR PR15693
6169 * infrun.c (resume): Determine how much to resume depending on
6170 whether the caller wanted a step, not whether we can hardware step
6171 the target. Mark all threads that we intend to run as running,
6172 unless we're calling an inferior function.
6173 (normal_stop): If the thread is running an infcall, don't finish
6174 thread state.
6175 * target.c (target_resume): Don't mark threads as running here.
6176
7f3c0343
JB
61772014-05-28 Joel Brobecker <brobecker@adacore.com>
6178
6179 * serial.c (_initialize_serial): Remove support for
6180 the "set remotebaud" and "show remotebaud" commands.
6181 * NEWS: Add entry documenting the removal of that command.
6182
ee34b3f9
YQ
61832014-05-28 Yao Qi <yao@codesourcery.com>
6184
6185 * charset.c: Fix typo in comments.
6186
add6c04d
GB
61872014-05-27 Gary Benson <gbenson@redhat.com>
6188
6189 * utils.c (internal_vproblem): Prompt for a bug report.
6190
92c48fc5
AW
61912014-05-26 Andy Wingo <wingo@igalia.com>
6192
6193 * guile/scm-arch.c (arscm_mark_arch_smob):
6194 * guile/scm-block.c (bkscm_mark_block_smob)
6195 (bkscm_mark_block_syms_progress_smob):
6196 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
6197 * guile/scm-exception.c (exscm_mark_exception_smob):
6198 * guile/scm-frame.c (frscm_mark_frame_smob):
6199 * guile/scm-iterator.c (itscm_mark_iterator_smob):
6200 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
6201 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
6202 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
6203 (ppscm_mark_pretty_printer_worker_smob):
6204 * guile/scm-symbol.c (syscm_mark_symbol_smob):
6205 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
6206 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
6207 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
6208 mark functions.
6209 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
6210 function.
6211
b2715b27
AW
62122014-05-26 Andy Wingo <wingo@igalia.com>
6213 Doug Evans <xdje42@gmail.com>
6214
6215 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
6216 empty_base_class. All uses updated.
6217 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
6218 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
6219 Adapt all callers.
6220 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
6221 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
6222 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
6223 (gdbscm_gsmob_has_property_p, add_property_name)
6224 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
6225 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
6226 (gdb-object-has-property?, gdb-object-properties): Remove.
6227 (gdb-object-kind): Renamed from gsmob-kind.
6228
214ab2da
AW
62292014-05-26 Andy Wingo <wingo@igalia.com>
6230
6231 * configure.ac (try_guile_versions): Allow building with guile 2.2.
6232 * configure: Regenerate.
6233
589fdceb
MM
62342014-05-23 Markus Metzger <markus.t.metzger@intel.com>
6235
6236 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
6237
67b5c0c1
MM
62382014-05-23 Markus Metzger <markus.t.metzger@intel.com>
6239
6240 * record-btrace.c (record_btrace_allow_memory_access): Remove.
6241 (replay_memory_access_read_only, replay_memory_access_read_write)
6242 (replay_memory_access_types, replay_memory_access)
6243 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
6244 (cmd_set_record_btrace, cmd_show_record_btrace)
6245 (cmd_show_replay_memory_access): New.
6246 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
6247 (record_btrace_remove_breakpoint): Replace
6248 record_btrace_allow_memory_access with replay_memory_access.
6249 (_initialize_record_btrace): Add commands.
6250 * NEWS: Announce it.
6251
036cd381
RR
62522014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6253
6254 * aarch64-linux-nat.c (asm/ptrace.h): Include.
6255
c77c1e42
RR
62562014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6257
6258 * MAINTAINERS (Write After Approval): Move self back from
6259 paper trail.
6260
45741a9c
PA
62612014-05-22 Pedro Alves <palves@redhat.com>
6262
6263 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
6264 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
6265 (disable_randomization, enum exec_direction_kind)
6266 (execution_direction, stop_registers, start_remote)
6267 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
6268 (wait_for_inferior, normal_stop, get_last_target_status)
6269 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
6270 (insert_step_resume_breakpoint_at_sal)
6271 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
6272 (set_step_info, print_stop_event, signal_stop_state)
6273 (signal_print_state, signal_pass_state, signal_stop_update)
6274 (signal_print_update, signal_pass_update)
6275 (update_signals_program_target, clear_exit_convenience_vars)
6276 (displaced_step_dump_bytes, update_observer_mode)
6277 (signal_catch_update, gdb_signal_from_command): Move
6278 declarations ...
6279 * infrun.h: ... to this new file.
6280 * amd64-tdep.c: Include infrun.h.
6281 * annotate.c: Include infrun.h.
6282 * arch-utils.c: Include infrun.h.
6283 * arm-linux-tdep.c: Include infrun.h.
6284 * arm-tdep.c: Include infrun.h.
6285 * break-catch-sig.c: Include infrun.h.
6286 * breakpoint.c: Include infrun.h.
6287 * common/agent.c: Include infrun.h instead of inferior.h.
6288 * corelow.c: Include infrun.h.
6289 * event-top.c: Include infrun.h.
6290 * go32-nat.c: Include infrun.h.
6291 * i386-tdep.c: Include infrun.h.
6292 * inf-loop.c: Include infrun.h.
6293 * infcall.c: Include infrun.h.
6294 * infcmd.c: Include infrun.h.
6295 * infrun.c: Include infrun.h.
6296 * linux-fork.c: Include infrun.h.
6297 * linux-nat.c: Include infrun.h.
6298 * linux-thread-db.c: Include infrun.h.
6299 * monitor.c: Include infrun.h.
6300 * nto-tdep.c: Include infrun.h.
6301 * procfs.c: Include infrun.h.
6302 * record-btrace.c: Include infrun.h.
6303 * record-full.c: Include infrun.h.
6304 * remote-m32r-sdi.c: Include infrun.h.
6305 * remote-mips.c: Include infrun.h.
6306 * remote-notif.c: Include infrun.h.
6307 * remote-sim.c: Include infrun.h.
6308 * remote.c: Include infrun.h.
6309 * reverse.c: Include infrun.h.
6310 * rs6000-tdep.c: Include infrun.h.
6311 * s390-linux-tdep.c: Include infrun.h.
6312 * solib-irix.c: Include infrun.h.
6313 * solib-osf.c: Include infrun.h.
6314 * solib-svr4.c: Include infrun.h.
6315 * target.c: Include infrun.h.
6316 * top.c: Include infrun.h.
6317 * windows-nat.c: Include infrun.h.
6318 * mi/mi-interp.c: Include infrun.h.
6319 * mi/mi-main.c: Include infrun.h.
6320 * python/py-threadevent.c: Include infrun.h.
6321
98eb56a4
PA
63222014-05-22 Pedro Alves <palves@redhat.com>
6323
6324 * infrun.c (handle_inferior_event): Store the exit code for
6325 --return-child-result here, instead of ...
6326 (print_exited_reason): ... here.
6327
17b2616c
PA
63282014-05-21 Pedro Alves <palves@redhat.com>
6329
6330 PR gdb/13860
6331 * gdbthread.h (struct thread_control_state): New field
6332 `command_interp'.
6333 * infrun.c (follow_fork): Copy the new thread control field to the
6334 child fork thread.
6335 (clear_proceed_status_thread): Clear the new thread control field.
6336 (proceed): Set the new thread control field.
6337 * interps.h (command_interp): Declare.
6338 * interps.c (command_interpreter): New global.
6339 (command_interp): New function.
6340 (interp_exec): Set `command_interpreter' while here.
6341 * cli-out.c (cli_uiout_dtor): New function.
6342 (cli_ui_out_impl): Install it.
6343 * mi/mi-interp.c: Include cli-out.h.
6344 (mi_cmd_interpreter_exec): Add comment.
6345 (restore_current_uiout_cleanup): New function.
6346 (ui_out_free_cleanup): New function.
6347 (mi_on_normal_stop): If finishing an execution command started by
6348 a CLI command, or any kind of breakpoint-like event triggered,
6349 print the stop event to the output (CLI) stream.
6350 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
6351
5166082f
PA
63522014-05-21 Pedro Alves <palves@redhat.com>
6353
6354 * cli/cli-cmds.c (list_command): Handle the first "list" after the
6355 current source line having changed.
6356 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
6357 * infrun.c (normal_stop): Adjust call to
6358 set_current_sal_from_frame.
6359 * source.c (clear_lines_listed_range): New function.
6360 (set_current_source_symtab_and_line, identify_source_line): Clear
6361 the lines listed range.
6362 (line_info): Handle the first "info line" after the current source
6363 line having changed.
6364 * stack.c (print_stack_frame): Remove center handling.
6365 (set_current_sal_from_frame): Remove 'center' parameter. Don't
6366 center sal.line.
6367
c1ee2fb3
PA
63682014-05-21 Pedro Alves <palves@redhat.com>
6369
6370 * inf-child.c (inf_child_mourn_inferior): New function.
6371 * inf-child.h (inf_child_mourn_inferior): New declaration.
6372 * darwin-nat.c (darwin_mourn_inferior): Use
6373 inf_child_mourn_inferior.
6374 * gnu-nat.c (gnu_mourn_inferior): Likewise.
6375 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
6376 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
6377 * nto-procfs.c (procfs_mourn_inferior): Likewise.
6378 * windows-nat.c (windows_mourn_inferior): Likewise.
6379
5c6d4fb2
DE
63802014-05-21 Doug Evans <xdje42@gmail.com>
6381
250748cb 6382 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5c6d4fb2 6383
4a2722c5
DE
63842014-05-21 Doug Evans <xdje42@gmail.com>
6385
17292b30 6386 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4a2722c5
DE
6387 (gdbscm_out_of_range_error): Ditto.
6388 (gdbscm_memory_error): Ditto.
250748cb
DE
6389 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
6390 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4a2722c5
DE
6391 (gdbscm_out_of_range_error): Update.
6392 (gdbscm_memory_error): Update.
6393 (gdbscm_scm_to_target_string_unsafe): Delete.
6394
6a3cb8e8
PA
63952014-05-21 Pedro Alves <palves@redhat.com>
6396
6397 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
6398 globals.
6399 (inf_child_open_target): New function.
6400 (inf_child_open): Use inf_child_open_target to push the target
6401 instead of erroring out.
6402 (inf_child_disconnect, inf_child_close)
6403 (inf_child_maybe_unpush_target): New functions.
6404 (inf_child_target): Install inf_child_disconnect and
6405 inf_child_close. Store a pointer to the returned object.
6406 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
6407 declarations.
6408 * target.c (auto_connect_native_target): New global.
6409 (show_default_run_target): New function.
6410 (find_default_run_target): Return NULL if automatically connecting
6411 to the native target is disabled.
6412 (_initialize_target): Install set/show auto-connect-native-target.
6413 * NEWS: Mention "set auto-connect-native-target", and "target
6414 native".
6415 * linux-nat.c (super_close): New global.
6416 (linux_nat_close): Call super_close.
6417 (linux_nat_add_target): Store a pointer to the base class's
6418 to_close method.
6419 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
6420 inf_child_maybe_unpush.
6421 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
6422 already pushed.
6423 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
6424 the inferior. Use inf_child_maybe_unpush_target.
6425 (inf_ttrace_attach): Don't push the target if it is already
6426 pushed.
6427 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
6428 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
6429 after mourning the inferior. Use inf_child_maybe_unpush_target.
6430 (darwin_attach_pid): Don't push the target if it is already
6431 pushed.
6432 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
6433 mourning the inferior. Use inf_child_maybe_unpush_target.
6434 (gnu_detach): Use inf_child_maybe_unpush_target.
6435 * go32-nat.c (go32_create_inferior): Don't push the target if it
6436 is already pushed.
6437 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
6438 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
6439 (procfs_open): Rename to ...
6440 (procfs_open_1): ... this. Add target_ops parameter. Adjust
6441 comments. Can target_preopen before changing node. Call
6442 inf_child_open_target to push the target explicitly.
6443 (procfs_attach): Don't push the target if it is already pushed.
6444 (procfs_detach): Use inf_child_maybe_unpush_target.
6445 (procfs_create_inferior): Don't push the target if it is already
6446 pushed.
6447 (nto_native_ops): New global.
6448 (procfs_open): Reimplement.
6449 (procfs_native_open): New function.
6450 (init_procfs_targets): Install procfs_native_open as to_open of
6451 "target native". Store a pointer to the "native" target in
6452 nto_native_ops.
6453 * procfs.c (procfs_attach): Don't push the target if it is already
6454 pushed.
6455 (procfs_detach): Use inf_child_maybe_unpush_target.
6456 (procfs_mourn_inferior): Only unpush the target after mourning the
6457 inferior. Use inf_child_maybe_unpush_target.
6458 (procfs_init_inferior): Don't push the target if it is already
6459 pushed.
6460 * windows-nat.c (do_initial_windows_stuff): Don't push the target
6461 if it is already pushed.
6462
930ee1b1
PA
64632014-05-21 Pedro Alves <palves@redhat.com>
6464
6465 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
6466 and "procfs" targets are now called "native" instead.
6467
1f5d1b13
PA
64682014-05-21 Pedro Alves <palves@redhat.com>
6469
6470 * go32-nat.c (go32_open): Delete.
6471 (go32_target): Don't override the to_open method.
6472
132f8e03
PA
64732014-05-21 Pedro Alves <palves@redhat.com>
6474
6475 * nto-procfs.c (procfs_can_run): New function.
6476 (nto_procfs_ops): New global.
6477 (init_procfs_targets): New, based on procfs_target. Install
6478 "target native" in addition to "target procfs".
6479 (_initialize_procfs): Call init_procfs_targets instead of adding
6480 the target here.
6481
03c136c3
PA
64822014-05-21 Pedro Alves <palves@redhat.com>
6483
6484 * windows-nat.c (windows_target): Don't override to_shortname,
6485 to_longname or to_doc.
6486
a635d0f3
PA
64872014-05-21 Pedro Alves <palves@redhat.com>
6488
6489 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
6490 to_doc.
6491
4f9b5133
PA
64922014-05-21 Pedro Alves <palves@redhat.com>
6493
6494 * darwin-nat.c (_initialize_darwin_inferior): Don't override
6495 to_shortname, to_longname or to_doc.
6496
bc85afde
PA
64972014-05-21 Pedro Alves <palves@redhat.com>
6498
6499 * go32-nat.c (go32_target): Don't override to_shortname,
6500 to_longname or to_doc.
6501
4ebfc96e
PA
65022014-05-21 Pedro Alves <palves@redhat.com>
6503
6504 * inf-child.c (inf_child_open): Remove mention of "child".
6505 (inf_child_target): Rename target to "native" instead of "child".
6506
2648dfed
AA
65072014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6508
6509 * Makefile.in (SFILES): Delete "regset.c".
6510 (COMMON_OBS): Delete "regset.o".
6511 * regset.c: Remove.
6512 * regset.h (regset_alloc): Delete prototype.
6513
b13feb94
AA
65142014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6515
6516 * sparc-linux-tdep.c (sparc32_linux_gregset)
6517 (sparc32_linux_fpregset): New static regset structures.
6518 (sparc32_linux_init_abi): Drop dynamic regset allocations.
6519 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
6520 'fpregset' fields.
6521 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
6522 (sparc64_linux_fpregset): New static regset structures.
6523 (sparc64_linux_init_abi): Drop dynamic regset allocations.
6524 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
6525 New static regset structures.
6526 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
6527 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
6528 New static regset structures.
6529 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
6530 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
6531 New static regset structures.
6532 (sparc64obsd_init_abi): Drop dynamic regset allocations.
6533 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
6534 New static regset structures.
6535 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
6536
b4fd25c9
AA
65372014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6538
6539 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
6540 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
6541 register maps ("regmaps") from "*regset" to "*regmap". Do this
6542 for all regmap types and variables.
6543 * sparc-linux-tdep.c (sparc32_linux_step_trap)
6544 (sparc32_linux_supply_core_gregset)
6545 (sparc32_linux_collect_core_gregset)
6546 (sparc32_linux_supply_core_fpregset)
6547 (sparc32_linux_collect_core_fpregset): Likewise.
6548 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
6549 (sparc_gregmap, sparc_fpregmap): ... these.
6550 (sparc_supply_gregset, sparc_collect_gregset)
6551 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6552 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
6553 (_initialize_sparc_nat): Rename regmaps.
6554 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
6555 (sparc_gregmap, sparc_fpregmap): ... these.
6556 (sparc_supply_gregset, sparc_collect_gregset)
6557 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6558 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
6559 Rename macros to...
6560 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
6561 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
6562 Likewise.
6563 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
6564 Rename to...
6565 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
6566 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
6567 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
6568 regmaps.
6569 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6570 (sparc32_bsd_fpregset): Rename to...
6571 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6572 (sparc32_bsd_fpregmap): ... these.
6573 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
6574 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6575 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
6576 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
6577 (struct sparc_gregmap, struct sparc_fpregmap)
6578 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6579 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
6580 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
6581 (sparc32_supply_regset, sparc32_collect_gregset)
6582 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
6583 prototypes.
6584 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
6585 (sparc64_linux_ptrace_gregmap): ... this.
6586 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
6587 (_initialize_sparc64_linux_nat): Rename regmaps.
6588 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
6589 (sparc64_linux_core_gregmap): ... this.
6590 (sparc64_linux_supply_core_gregset)
6591 (sparc64_linux_collect_core_gregset)
6592 (sparc64_linux_supply_core_fpregset)
6593 (sparc64_linux_collect_core_fpregset): Rename regmaps.
6594 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
6595 (sparc64_sol2_fpregset): Rename to...
6596 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
6597 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
6598 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
6599 regmaps.
6600 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
6601 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
6602 (sparc64_bsd_fpregset): Rename to...
6603 (struct sparc_gregmap, sparc64_sol2_gregmap)
6604 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
6605 (sparc64_bsd_fpregmap): ... these.
6606 (sparc64_supply_gregset, sparc64_collect_gregset)
6607 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
6608 prototypes.
6609 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
6610 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
6611 (sparc64fbsd_gregmap): ... this.
6612 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
6613 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
6614 Rename regmaps.
6615 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
6616 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
6617 (sparc64nbsd_collect_fpregset): Likewise.
6618 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
6619 (sparc64nbsd_gregmap): ... this.
6620 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
6621 regmaps.
6622 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
6623 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
6624 (sparc64obsd_gregmap): ... this.
6625 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
6626 regmaps.
6627 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
6628 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
6629 (sparc32nbsd_gregmap): ... this.
6630 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
6631 regmaps.
6632
8fea3224
AA
66332014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6634
6635 * score-tdep.c (score7_linux_gregset): New static regset
6636 structure.
6637 (score7_linux_regset_from_core_section): Remove dynamic regset
6638 allocation.
6639 (score_gdbarch_init): Drop allocation of tdep structure.
6640 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
6641
24534243
AA
66422014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6643
6644 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
6645 regset structures.
6646 (am33_regset_from_core_section): Remove dynamic regset
6647 allocations.
6648
b7195f27
AA
66492014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6650
6651 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
6652 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
6653 structures.
6654 (mips_linux_regset_from_core_section): Remove dynamic regset
6655 allocations.
6656 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6657 'gregset64', 'fpregset', and 'fpregset64'.
6658 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
6659 deleted tdep fields.
6660
ecc37a5a
AA
66612014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6662
6663 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
6664 regset structures.
6665 (amd64_regset_from_core_section): Remove dynamic regset
6666 allocations.
6667 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
6668 structure.
6669 (amd64obsd_regset_from_core_section): Remove dynamic regset
6670 allocation.
6671 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
6672 Likewise.
6673 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
6674 x86-common regset supply function.
6675 * i386-tdep.c (i386_collect_gregset): Make static.
6676 (i386_gregset): New global regset structure.
6677 (i386_fpregset, i386_xstateregset): New static regset structures.
6678 (i386_regset_from_core_section): Remove dynamic regset
6679 allocations.
6680 (i386_gdbarch_init): Remove initialization of tdep fields
6681 'gregset', 'fpregset', and 'xstateregset'.
6682 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6683 'fpregset', and 'xstateregset'.
6684 (i386_collect_gregset): Remove prototype.
6685 (i386_gregset): New declaration.
6686 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
6687 structure.
6688 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
6689 allocation.
6690
b7611c43
AA
66912014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6692
6693 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
6694 (arm_linux_vfpregset): New static regset structures.
6695 (arm_linux_regset_from_core_section): Remove dynamic allocation of
6696 regset structures.
6697 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
6698 and 'vfpregset' fields.
6699
a069a2bd
AA
67002014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6701
6702 * aarch64-linux-tdep.c (aarch64_linux_gregset)
6703 (aarch64_linux_fpregset): New static regset structures.
6704 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
6705 of regset structures.
6706 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
6707 'fpregset' fields.
6708
09424cff
AA
67092014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6710
6711 * regset.h (struct regset): Remove gdbarch field.
6712 * regset.c (regset_alloc): Drop initialization of gdbarch field.
6713 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6714 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
6715 Likewise.
6716 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
6717 (ppc32_linux_fpregset, ppc32_linux_vrregset)
6718 (ppc32_linux_vsxregset): Likewise.
6719 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
6720 via the regcache instead of the regset.
6721 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
6722 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
6723 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
6724 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
6725 Likewise.
6726
3ca7dae4
AA
67272014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6728
6729 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
6730 Constify structures.
6731 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
6732 (alphanbsd_aout_gregset): Likewise.
6733 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
6734 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
6735 Likewise.
6736 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
6737 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
6738 Likewise.
6739 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
6740 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
6741 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
6742 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
6743 * m88k-tdep.c (m88k_gregset): Likewise.
6744 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
6745 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
6746 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6747 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
6748 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
6749 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
6750 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
6751 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
6752 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
6753 Likewise.
6754 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
6755 * sh-tdep.h (sh_corefile_gregset): Likewise.
6756 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
6757 * vax-tdep.c (vax_gregset): Likewise.
6758
5876f503
JK
67592014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6760
6761 Fix TLS access for -static -pthread.
6762 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
6763 (try_thread_db_load_1): Initialize it.
6764 (thread_db_get_thread_local_address): Call it if LM is zero.
6765 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
6766 * target.h (struct target_ops) (to_get_thread_local_address): Add
6767 load_module_addr comment.
6768
0256a6ac
PA
67692014-05-21 Pedro Alves <palves@redhat.com>
6770
6771 * dcache.c (dcache_read_memory_partial): If reading the cache line
6772 fails, fallback to reading just the memory the caller wanted.
6773
227533ac
DE
67742014-05-20 Doug Evans <dje@google.com>
6775
6776 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
6777 instead of get_current_arch.
6778
936d2992
PA
67792014-05-20 Pedro Alves <palves@redhat.com>
6780
6781 * NEWS: Mention that compare-sections now works with all targets.
6782
6783 * remote.c (PACKET_qCRC): New enum value.
6784 (remote_verify_memory): Don't send qCRC if the target has no
6785 execution. Use packet_support/packet_ok. If the target doesn't
6786 support the qCRC packet, fallback to a deep memory copy.
6787 (compare_sections_command): Say "target image" instead of "remote
6788 executable".
6789 (_initialize_remote): Add PACKET_qCRC to the list of config
6790 packets that have no associated command. Extend comment.
6791 * target.c (simple_verify_memory, default_verify_memory): New
6792 function.
6793 * target.h (struct target_ops) <to_verify_memory>: Default to
6794 default_verify_memory.
6795 (simple_verify_memory): New declaration.
6796 * target-delegates.c: Regenerate.
6797
e59fa00f
MM
67982014-05-20 Markus Metzger <markus.t.metzger@intel.com>
6799
6800 * record-btrace.c (record_btrace_step_thread): Check for empty history.
6801
f2205de0
HZ
68022014-05-20 Hui Zhu <hui@codesourcery.com>
6803 Yao Qi <yao@codesourcery.com>
6804
6805 PR backtrace/16558
6806 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
6807 and change address of sp and pc.
6808
c4e54771
TT
68092014-05-19 Tom Tromey <tromey@redhat.com>
6810
6811 * gdbtypes.c (rank_function): Use XNEWVEC.
6812 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
6813
73051182
DE
68142014-05-19 Doug Evans <dje@google.com>
6815
6816 * dwarf2read.c (build_type_psymtabs_1): Renamed from
6817 build_type_unit_groups and moved closer to only caller. Remove
6818 arguments. All references updated. Remove outdated .gdb_index
6819 comment.
6820 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
6821 build_type_psymtabs_1.
6822
8832e7e3
DE
68232014-05-19 Doug Evans <dje@google.com>
6824
6825 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
6826 n_type_unit_groups, all_type_unit_groups. All uses removed.
6827 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
6828 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
6829 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
6830 (add_type_unit_group_to_table): Delete.
6831
cd8ae15e
DE
68322014-05-19 Doug Evans <dje@google.com>
6833
6834 * eval.c (evaluate_subexp_standard): Add some comments.
6835
08f4850b
DE
68362014-05-17 Doug Evans <xdje42@gmail.com>
6837
6838 * progspace.c (remove_program_space): Delete, unused.
6839 * progspace.h (remove_program_space): Ditto.
6840
bed8455c
DE
68412014-05-17 Doug Evans <xdje42@gmail.com>
6842
6843 * inferior.c (prune_inferiors): Fix comment.
6844 (remove_inferior_command): Call prune_program_spaces.
6845
8d551b02
DE
68462014-05-16 Doug Evans <dje@google.com>
6847
6848 New command line option -D.
6849 * NEWS: Mention it.
6850 * main.c (set_gdb_data_directory): New function.
6851 (captured_main): Recognize -D. Flag error for --data-directory "".
6852 Call set_gdb_data_directory.
6853 (print_gdb_help): Print --data-directory, -D.
6854 * main.h (set_gdb_data_directory): Declare.
6855 * top.c (staged_gdb_datadir): New static global.
6856 (set_gdb_datadir): Call set_gdb_data_directory
6857 (show_gdb_datadir): New function.
6858 (init_main): Update init of data-directory parameter.
6859
18848e28
GF
68602014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
6861
6862 Import the "dirfd" gnulib module.
6863 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
6864 * gnulib/aclocal.m4: Update.
6865 * gnulib/config.in: Update.
6866 * gnulib/configure: Update.
6867 * gnulib/import/Makefile.am: Update.
6868 * gnulib/import/Makefile.in: Update.
6869 * gnulib/import/dirfd.c: New.
6870 * gnulib/import/m4/dirfd.m4: New.
6871 * gnulib/import/m4/gnulib-cache.m4: Update.
6872 * gnulib/import/m4/gnulib-comp.m4: Update.
6873
95c64f92
YQ
68742014-05-16 Pierre Muller <muller@sourceware.org>
6875 Yao Qi <yao@codesourcery.com>
6876
6877 * valprint.c (print_wchar): Move the code on checking whether
6878 W is a printable wide char to the default branch of switch
6879 statement below. Call wchar_printable instead of gdb_iswprint.
6880
cac395ea
TM
68812014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
6882
19679eca 6883 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
cac395ea
TM
6884 ldr.w and ldrd instructions.
6885
83655187
DE
68862014-05-15 Doug Evans <dje@google.com>
6887
6888 * dwarf2read.c (read_structure_type): Delete outdated comments.
6889
dd756689
TT
68902014-05-14 Tom Tromey <tromey@redhat.com>
6891
6892 * macrocmd.c (print_macro_definition): Reindent.
6893
75ddda77
DE
68942014-05-13 Doug Evans <xdje42@gmail.com>
6895
6896 * python/py-cmd.c (cmdpy_completer): Add comment.
6897 (completers): Make const.
6898
b0f16a3e
SM
68992014-05-13 Simon Marchi <simon.marchi@ericsson.com>
6900
6901 * infrun.c (resume): Remove should_resume (unused). Move up
6902 declaration of resume_ptid.
6903
033c3379
TT
69042014-05-13 Tom Tromey <tromey@redhat.com>
6905
6906 * language.h (unop_type_check): Remove.
6907 (binop_type_check): Don't declare.
6908
9b44a3a5
AA
69092014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
6910
6911 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
6912 call to regcache_raw_collect.
6913
303a33fa
SM
69142014-05-12 Simon Marchi <simon.marchi@ericsson.com>
6915
6916 * mi/mi-console.c (mi_console_raw_packet): Use the value from
6917 mi_console->quote as the quoting character.
6918
196100a0
SM
69192014-05-12 Simon Marchi <simon.marchi@ericsson.com>
6920
6921 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
6922
f989a1c8
TT
69232014-04-29 Tom Tromey <tromey@redhat.com>
6924
6925 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
6926 "show debug varobj".
6927
9404b58f
KM
69282014-05-07 Kyle McMartin <kyle@redhat.com>
6929
6930 Pushed by Joel Brobecker <brobecker@adacore.com>.
6931 * aarch64-tdep.c (aarch64_software_single_step): New function.
6932 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
6933 with aarch64_software_single_step.
6934
5e49ba57
JB
69352014-05-05 Joel Brobecker <brobecker@adacore.com>
6936
6937 GDB 7.7.1 released.
6938
c888a17d
KS
69392014-05-05 Keith Seitz <keiths@redhat.com>
6940
6941 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
6942 variable or history value is successfully parsed.
6943
290a839c
YQ
69442014-05-05 Yao Qi <yao@codesourcery.com>
6945 Pedro Alves <palves@redhat.com>
6946
6947 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
6948 address of blocks that intersects the requested range. Trim
6949 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
6950 sections.
6951 * ctf.c (ctf_xfer_partial): Likewise.
6952
91256dc2
YQ
69532014-05-05 Yao Qi <yao@codesourcery.com>
6954
6955 * printcmd.c (display_command): Remove the check to
6956 target_has_execution.
6957
07284463
MK
69582014-05-03 Mark Kettenis <kettenis@gnu.org>
6959
6960 * ppcobsd-nat.c: Include "obsd-nat.h".
6961 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
6962 add_target.
6963 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
6964
30a1e6cc
SDJ
69652014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
6966
6967 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
6968 and 16-bit signed and unsigned arguments. Update comment.
6969 (stap_parse_probe_arguments): Extend code to handle such
6970 arguments. Use warning instead of complaint to notify about
6971 unrecognized bitness.
6972
f33da99a
SDJ
69732014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
6974
6975 PR breakpoints/16889
6976 * stap-probe.c (stap_parse_probe_arguments): Simplify
6977 check for non-prefixed probes (i.e., probes whose
6978 arguments do not start with "N@"). Always set the
6979 argument type to a sane value.
6980
95cf3b38
DT
69812014-05-01 David Taylor <dtaylor@emc.com>
6982
6983 * remote.c (compare_sections_command): Add -r option to compare
6984 all loadable read-only sections.
6985
1cfdf534
SC
69862014-04-30 Siva Chandra Reddy <sivachandra@google.com>
6987
6988 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
6989 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
6990 Update all callers.
6991 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
6992 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
6993 Remove unused CORE_ADDR argument. Update all callers.
6994
ca4f7f8b
PA
69952014-04-29 Pedro Alves <palves@redhat.com>
6996
6997 * remote.c (struct packet_config) <detect>: Extend comment.
6998 (add_packet_config_cmd): Don't set the config's detect or support
6999 fields here.
7000 (init_all_packet_configs): Also initialize the config's 'detect'
7001 field.
7002 (reset_all_packet_configs_support): New function.
7003 (remote_open_1): Call reset_all_packet_configs_support instead of
7004 init_all_packet_configs.
7005 (_initialize_remote): Initialize all packet configs. Assert that
7006 all packets have an associated command, except a few known
7007 outliers.
7008
11c1ba78
JB
70092014-04-28 Joel Brobecker <brobecker@adacore.com>
7010
7011 * dwarf2read.c (read_subrange_type): Handle dynamic
7012 DW_AT_lower_bound attributes.
7013
8739bc53
JB
70142014-04-28 Joel Brobecker <brobecker@adacore.com>
7015
7016 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
7017 dynamic bounds before computing its upper bound.
7018 (ada_discrete_type_low_bound): Same as above with the lower bound.
7019
6f8a3220
JB
70202014-04-28 Joel Brobecker <brobecker@adacore.com>
7021
7022 * dwarf2read.c (is_dynamic_type): Return true for dynamic
7023 range types. Adjust the array handling implementation to
7024 take advantage of this change.
7025 (resolve_dynamic_range): New function, mostly extracted from
7026 resolve_dynamic_bounds.
7027 (resolve_dynamic_array): New function, mostly extracted from
7028 resolve_dynamic_bounds.
7029 (resolve_dynamic_bounds): Delete.
7030 (resolve_dynamic_type): Reimplement. Add handling of
7031 TYPE_CODE_RANGE types.
7032
4d072ce4
JB
70332014-04-28 Joel Brobecker <brobecker@adacore.com>
7034
7035 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
7036 handling of parallel ___XA types.
7037
52865325
JB
70382014-04-28 Joel Brobecker <brobecker@adacore.com>
7039
7040 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
7041 unnecessary second call to static_unwrap_type.
7042
433e77fa
HZ
70432014-04-27 Hui Zhu <hui@codesourcery.com>
7044
7045 * stack.c (print_frame_info): Call do_gdb_disassembly with
7046 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
7047
b51a69ee
DE
70482014-04-26 Doug Evans <xdje42@gmail.com>
7049
7050 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
7051
7ae1a6a6
PA
70522014-04-25 Pedro Alves <palves@redhat.com>
7053
7054 PR server/16255
7055 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
7056 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
7057 and newline from built string.
7058 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
7059 (linux_ptrace_attach_fail_reason): ... this.
7060 * linux-nat.c (linux_nat_attach): Adjust to use
7061 linux_ptrace_attach_fail_reason.
7062
4082afcc
PA
70632014-04-25 Pedro Alves <palves@redhat.com>
7064
7065 * remote.c (struct remote_state): Remove multi_process_aware,
7066 non_stop_aware, cond_tracepoints, cond_breakpoints,
7067 breakpoint_commands, fast_tracepoints, static_tracepoints,
7068 install_in_trace, disconnected_tracing,
7069 enable_disable_tracepoints, string_tracing, and
7070 augmented_libraries_svr4_read fields.
7071 (remote_multi_process_p): Move further below in the file.
7072 (struct packet_config): Add comments.
7073 (update_packet_config): Delete function.
7074 (show_packet_config_cmd): Use packet_config_support.
7075 (add_packet_config_cmd): Use NULL as set callback.
7076 (packet_ok): "set remote foo-packet"-style commands no longer
7077 change config->supported -- adjust.
7078 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
7079 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
7080 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
7081 (PACKET_QNonStop, PACKET_multiprocess_feature)
7082 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
7083 (PACKET_DisconnectedTracing_feature)
7084 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
7085 (set_remote_protocol_packet_cmd): Delete function.
7086 (packet_config_support, packet_support): New functions.
7087 (set_remote_protocol_Z_packet_cmd): Don't call
7088 update_packet_config.
7089 (remote_query_attached, remote_pass_signals)
7090 (remote_program_signals, remote_threads_info)
7091 (remote_threads_extra_info, remote_start_remote): Use
7092 packet_support.
7093 (remote_start_remote): Use packet_config_support and
7094 packet_support.
7095 (init_all_packet_configs): Set all packets to unknown support,
7096 instead of calling update_packet_config.
7097 (remote_check_symbols): Use packet_support.
7098 (remote_supported_packet): Unconditionally set the packet config's
7099 support status.
7100 (remote_multi_process_feature, remote_non_stop_feature)
7101 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
7102 (remote_breakpoint_commands_feature)
7103 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
7104 (remote_install_in_trace_feature)
7105 (remote_disconnected_tracing_feature)
7106 (remote_enable_disable_tracepoint_feature)
7107 (remote_string_tracing_feature)
7108 (remote_augmented_libraries_svr4_read_feature): Delete functions.
7109 (remote_protocol_features): Adjust to use remote_supported_packet
7110 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
7111 "ConditionalTracepoints", "ConditionalBreakpoints",
7112 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
7113 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
7114 "EnableDisableTracepoints", and "tracenz".
7115 (remote_query_supported): Use packet_support.
7116 (remote_open_1): Adjust.
7117 (extended_remote_attach_1): Use packet_support. Switch on the
7118 result of packet_ok instead of checking whether the packet ended
7119 up disabled.
7120 (remote_vcont_resume): Use packet_support.
7121 (remote_resume, remote_stop_ns, fetch_register_using_p)
7122 (remote_prepare_to_store, store_register_using_P)
7123 (check_binary_download, remote_write_bytes): Use packet_support.
7124 (remote_vkill): Use packet_support. Switch on the result of
7125 packet_ok instead of checking whether the packet ended up
7126 disabled.
7127 (extended_remote_supports_disable_randomization): Use
7128 packet_support.
7129 (extended_remote_run): Switch on the result of packet_ok instead
7130 of checking whether the packet ended up disabled.
7131 (remote_insert_breakpoint, remote_remove_breakpoint)
7132 (remote_insert_watchpoint, remote_remove_watchpoint)
7133 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
7134 packet_support.
7135 (remote_search_memory): Use packet_config_support.
7136 (remote_get_thread_local_address, remote_get_tib_address)
7137 (remote_hostio_send_command, remote_can_execute_reverse): Use
7138 packet_support.
7139 (remote_supports_cond_tracepoints)
7140 (remote_supports_cond_breakpoints)
7141 (remote_supports_fast_tracepoints)
7142 (remote_supports_static_tracepoints)
7143 (remote_supports_install_in_trace)
7144 (remote_supports_enable_disable_tracepoint)
7145 (remote_supports_string_tracing)
7146 (remote_can_run_breakpoint_commands): Rewrite, checking whether
7147 the packet config says the feature is enabled or disabled.
7148 (remote_download_tracepoint, remote_trace_set_readonly_regions)
7149 (remote_get_trace_status): Use packet_support.
7150 (remote_set_disconnected_tracing): Adjust to check whether the
7151 feature is enabled with packet_support.
7152 (remote_set_trace_buffer_size, remote_use_agent)
7153 (remote_can_use_agent, remote_supports_btrace): Use
7154 packet_support.
7155 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
7156 Use packet_config_support.
7157 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
7158 the packet config says the feature is enabled or disabled.
7159 (set_range_stepping): Use packet_support.
7160
bdb52a22
TT
71612014-04-25 Tom Tromey <tromey@redhat.com>
7162
7163 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
7164 argument.
7165
e9475ead
SA
71662014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
7167
7168 * NEWS: Mention support for C99 variable length arrays.
7169
82eacd52
JB
71702014-04-24 Joel Brobecker <brobecker@adacore.com>
7171
7172 * ada-lang.c (standard_exc): Expand introductory comment.
7173
01f9f808
MS
71742014-04-24 Michael Sturm <michael.sturm@mintel.com>
7175 Walfred Tedeschi <walfred.tedeschi@intel.com>
7176
7177 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
7178 AVX512 registers.
7179 (amd64_linux_read_description): Add code to handle AVX512 xstate
7180 mask and return respective tdesc.
7181 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
7182 and features/i386/x32-avx512-linux.c.
7183 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
7184 (amd64_linux_core_read_description): Add code to handle AVX512
7185 xstate mask and return respective tdesc.
7186 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
7187 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
7188 calculation.
7189 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
7190 (tdesc_amd64_avx512_linux): New prototype.
7191 (tdesc_x32_avx512_linux): Likewise.
7192 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
7193 features/i386/x32-avx512.c.
7194 (amd64_ymm_avx512_names): New register names for pseudo
7195 registers YMM16-31.
7196 (amd64_ymmh_avx512_names): New register names for raw registers
7197 YMMH16-31.
7198 (amd64_k_names): New register names for K registers.
7199 (amd64_zmmh_names): New register names for ZMM raw registers.
7200 (amd64_zmm_names): New registers names for ZMM pseudo registers.
7201 (amd64_xmm_avx512_names): New register names for XMM16-31
7202 registers.
7203 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
7204 registers.
7205 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
7206 if feature is present.
7207 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
7208 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
7209 (AMD64_NUM_REGS): Adjust to new number of registers.
7210 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
7211 registers supplied via XSTATE by AVX512 registers.
7212 (i386_linux_read_description): Add case for AVX512.
7213 * i386-linux-tdep.c: Include i386-avx512-linux.c.
7214 (i386_linux_gregset_reg_offset): Add AVX512 registers.
7215 (i386_linux_core_read_description): Add case for AVX512.
7216 (i386_linux_init_abi): Install supported register note section
7217 for AVX512.
7218 (_initialize_i386_linux_tdep): Add call to tdesc init function for
7219 AVX512.
7220 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
7221 registers to be number of zmm7h + 1.
7222 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
7223 * i386-tdep.c: Include features/i386/i386-avx512.c.
7224 (i386_zmm_names): Add ZMM pseudo register names array.
7225 (i386_zmmh_names): Add ZMM raw register names array.
7226 (i386_k_names): Add K raw register names array.
7227 (num_lower_zmm_regs): Add constant for the number of lower ZMM
7228 registers. AVX512 has 16 more ZMM registers than there are YMM
7229 registers.
7230 (i386_zmmh_regnum_p): Add function to look up register number of
7231 ZMM raw registers.
7232 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
7233 (i386_k_regnum_p): Likewise for K raw registers.
7234 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
7235 registers added by AVX512.
7236 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
7237 registers added by AVX512.
7238 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
7239 added by AVX512.
7240 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
7241 (i386_pseudo_register_name): Add ZMM pseudo registers.
7242 (i386_zmm_type): Construct and return vector registers type for ZMM
7243 registers.
7244 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
7245 ZMM0-31 pseudo registers and K registers.
7246 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
7247 and YMM16-31 registers from register cache.
7248 (i386_pseudo_register_write): Add code to write K, ZMM and
7249 YMM16-31 registers.
7250 (i386_register_reggroup_p): Add code to include/exclude AVX512
7251 registers in/from respective register groups.
7252 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
7253 registers if feature is present in xcr0.
7254 (i386_gdbarch_init): Add code to initialize AVX512 feature
7255 variables in tdep structure, wire in pseudo registers and call
7256 initialize_tdesc_i386_avx512.
7257 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
7258 variables.
7259 (i386_regnum): Add AVX512 registers.
7260 (I386_SSE_NUM_REGS): New define for number of SSE registers.
7261 (I386_AVX_NUM_REGS): Likewise for AVX registers.
7262 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
7263 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
7264 512 bits wide.
7265 (i386_xmm_avx512_regnum_p): New prototype for register look up.
7266 (i386_ymm_avx512_regnum_p): Likewise.
7267 (i386_k_regnum_p): Likewise.
7268 (i386_zmm_regnum_p): Likewise.
7269 (i386_zmmh_regnum_p): Likewise.
7270 * i387-tdep.c : Update year in copyright notice.
7271 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
7272 XSAVE buffer.
7273 (XSAVE_YMM_AVX512_ADDR): New macro.
7274 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
7275 XSAVE buffer.
7276 (XSAVE_XMM_AVX512_ADDR): New macro.
7277 (xsave_avx512_k_offset): New table for K register offsets in
7278 XSAVE buffer.
7279 (XSAVE_AVX512_K_ADDR): New macro.
7280 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
7281 in XSAVE buffer.
7282 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
7283 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
7284 buffer.
7285 (i387_collect_xsave): Add code to collect AVX512 registers from
7286 XSAVE buffer.
7287 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
7288 of XMM16-31 registers.
7289 (I387_NUM_K_REGS): New define for number of K registers.
7290 (I387_K0_REGNUM): New define for K0 register number.
7291 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
7292 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
7293 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
7294 registers.
7295 (I387_YMM16H_REGNUM): New define for YMM16H register number.
7296 (I387_XMM16_REGNUM): New define for XMM16 register number.
7297 (I387_YMM0_REGNUM): New define for YMM0 register number.
7298 (I387_KEND_REGNUM): New define for last K register number.
7299 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
7300 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
7301 number.
7302 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
7303 number.
7304 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
7305 size.
7306 * features/Makefile: Add AVX512 related files.
7307 * features/i386/32bit-avx512.xml: New file.
7308 * features/i386/64bit-avx512.xml: Likewise.
7309 * features/i386/amd64-avx512-linux.c: Likewise.
7310 * features/i386/amd64-avx512-linux.xml: Likewise.
7311 * features/i386/amd64-avx512.c: Likewise.
7312 * features/i386/amd64-avx512.xml: Likewise.
7313 * features/i386/i386-avx512-linux.c: Likewise.
7314 * features/i386/i386-avx512-linux.xml: Likewise.
7315 * features/i386/i386-avx512.c: Likewise.
7316 * features/i386/i386-avx512.xml: Likewise.
7317 * features/i386/x32-avx512-linux.c: Likewise.
7318 * features/i386/x32-avx512-linux.xml: Likewise.
7319 * features/i386/x32-avx512.c: Likewise.
7320 * features/i386/x32-avx512.xml: Likewise.
7321 * regformats/i386/amd64-avx512-linux.dat: New file.
7322 * regformats/i386/amd64-avx512.dat: Likewise.
7323 * regformats/i386/i386-avx512-linux.dat: Likewise.
7324 * regformats/i386/i386-avx512.dat: Likewise.
7325 * regformats/i386/x32-avx512-linux.dat: Likewise.
7326 * regformats/i386/x32-avx512.dat: Likewise.
7327 * NEWS: Add note about new support for AVX512.
7328
7329
08351840
PA
73302014-04-23 Pedro Alves <palves@redhat.com>
7331
7332 * breakpoint.c (insert_bp_location): Tolerate errors if the
7333 breakpoint is set in a user-loaded objfile.
7334 (remove_breakpoint_1): Likewise. Also tolerate errors if the
7335 location is marked shlib_disabled. If the breakpoint is set in a
7336 user-loaded objfile is a GDB-side memory breakpoint, validate it
7337 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
7338 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
7339 flag.
7340 * mem-break.c (memory_validate_breakpoint): New function.
7341 * objfiles.c (userloaded_objfile_contains_address_p): New
7342 function.
7343 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
7344 * target.h (memory_validate_breakpoint): New declaration.
7345
076855f9
PA
73462014-04-23 Pedro Alves <palves@redhat.com>
7347
7348 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
7349 the breakpoint is set in a shared library, only suppress
7350 errors for software breakpoints, not hardware breakpoints.
7351
483805cf
PA
73522014-04-22 Pedro Alves <palves@redhat.com>
7353
7354 * infrun.c (schedlock_applies): New function, factored out from
7355 find_thread_needs_step_over.
7356 (find_thread_needs_step_over): Use it.
7357 (switch_back_to_stepped_thread): Always clear trap_expected if the
7358 step over is finished. Return early if scheduler locking applies.
7359 Look for the stepping thread and a potential step-over thread with
7360 a single loop.
7361 (currently_stepping_or_nexting_callback): Delete.
7362
a75fef0e
NC
73632014-04-22 Nick Clifton <nickc@redhat.com>
7364
7365 * NEWS: Mention that ARM sim now supports tracing.
7366
48b6e87e
YQ
73672014-04-22 Yao Qi <yao@codesourcery.com>
7368
7369 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
7370 to ...
7371 * tracefile.c (tracefile_fetch_registers): ... it. New
7372 function.
7373 * tracefile.h (tracefile_fetch_registers): Declare.
7374 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
7375 tracefile_fetch_registers.
7376
17617f2d
EZ
73772014-04-19 Eli Zaretskii <eliz@gnu.org>
7378
7379 PR gdb/14018
7380 * windows-nat.c (thread_rec): Don't display a warning when
7381 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
7382 fails for any reason, set th->suspended to -1, so that we don't
7383 try to resume such a thread. Also, don't return NULL in these
7384 cases, to avoid completely ruin the session due to "PC register is
7385 not available" error.
7386 (do_windows_fetch_inferior_registers): Check errors in
7387 GetThreadContext call.
7388 (windows_continue): Accept an additional argument KILLED; if not
7389 zero, ignore errors in the SetThreadContext call, since the
7390 inferior was killed and is shutting down.
7391 (windows_resume, get_windows_debug_event)
7392 (windows_create_inferior, windows_mourn_inferior)
7393 (windows_kill_inferior): All callers of windows_continue changed
7394 to adjust to its new calling sequence.
7395
5723a6fd
YQ
73962014-04-19 Yao Qi <yao@codesourcery.com>
7397
7398 * ctf.c (ctf_open): Call post_create_inferior.
7399
614d5099
YQ
74002014-04-19 Yao Qi <yao@codesourcery.com>
7401
7402 * ctf.c (handle_id): New static variable.
7403 (ctf_open_dir): Get handle_id from bt_context_add_trace return
7404 value. Get the declaration of event "register" and get length
7405 of field "contents".
7406
dac3e710
YQ
74072014-04-19 Yao Qi <yao@codesourcery.com>
7408
7409 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
7410
2bca57ba
SC
74112014-04-18 Siva Chandra Reddy <sivachandra@google.com>
7412
7413 * valops.c (oload_method_static): Remove unnecessary argument
7414 METHOD. Update all callers.
7415
51d48146
PA
74162014-04-18 Pedro alves <palves@redhat.com>
7417 Tom Tromey <tromey@redhat.com>
7418
7419 PR backtrace/15558
7420 * frame.c (get_prev_frame_1): Rename to ...
7421 (get_prev_frame_always): ... this, and make extern. Adjust.
7422 (skip_artificial_frames): Use get_prev_frame_always.
7423 (frame_unwind_caller_id, frame_pop, get_prev_frame)
7424 (get_frame_unwind_stop_reason): Adjust to rename.
7425 * frame.h (get_prev_frame_always): Declare.
7426 * inline-frame.c: Include frame.h.
7427 (inline_frame_this_id): Use get_prev_frame_always.
7428
1bdad2e0
TG
74292014-04-18 Tristan Gingold <gingold@adacore.com>
7430
7431 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
7432 code by using bfd_mach_o_get_base_address.
7433
7ce16bd4
UW
74342014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
7435
7436 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
7437 (spu_ax_pseudo_register_collect): New function.
7438 (spu_ax_pseudo_register_push_stack): Likewise.
7439 (spu_dwarf_reg_to_regnum): Likewise.
7440 (spu_gdbarch_init): Install them. Append DWARF unwinders.
7441
2ed3c037
UW
74422014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
7443
7444 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
7445 Replace FRAME argument with FRAME_ID.
7446 * gdbarch.c, gdbarch.h: Regenerate.
7447 * findvar.c (default_value_from_register): Add GDBARCH argument;
7448 replace FRAME by FRAME_ID. No longer call get_frame_id.
7449 (value_from_register): Update call to gdbarch_value_from_register.
7450 * value.h (default_value_from_register): Update prototype.
7451 * s390-linux-tdep.c (s390_value_from_register): Update interface
7452 and call to default_value_from_register.
7453 * spu-tdep.c (spu_value_from_register): Likewise.
7454
7455 * findvar.c (address_from_register): Remove TYPE argument.
7456 Do not call value_from_register; use gdbarch_value_from_register
7457 with null_frame_id instead.
7458 * value.h (address_from_register): Update prototype.
7459 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
7460 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
7461 address_from_register interface change.
7462
71e50e83
YQ
74632014-04-17 Yao Qi <yao@codesourcery.com>
7464
7465 * gdbtypes.h: Update comments to link to types and macros'
7466 definitions.
7467
7a23c549
SC
74682014-04-16 Siva Chandra Reddy <sivachandra@google.com>
7469
7470 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
7471
22869d73
KS
74722014-04-16 Keith Seitz <keiths@redhat.com>
7473
7474 PR gdb/15827
7475 * dwarf2read.c (skip_one_die): Check that all relative-offset
7476 sibling DIEs fall within range of the current reader's buffer.
7477 (read_partial_die): Likewise.
7478
c4f87ca6
KS
74792014-04-16 Keith Seitz <keiths@redhat.com>
7480
7481 PR c++/16597
7482 * cp-namespace.c (lookup_symbol_file): If the type name of
7483 `this' is NULL, return immediately.
7484
b50c8614
KS
74852014-04-14 Keith Seitz <keiths@redhat.com>
7486
7487 PR c++/16253
7488 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
7489 from symbol_matches_domain in symtab.c. All local callers
7490 of symbol_matches_domain updated.
7491 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
7492 search STRUCT_DOMAIN.
7493 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
7494 independently. standard_lookup will do that automatically.
7495 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
7496 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7497 (cp_lookup_symbol_in_namespace): Likewise.
7498 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
7499 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
7500 may return a STRUCT_DOMAIN match.
7501 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
7502 * cp-support.c: Include language.h.
7503 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
7504 VAR_DOMAIN.
7505 * psymtab.c (match_partial_symbol): Compare the requested
7506 domain with the symbol's domain directly.
7507 (lookup_partial_symbol): Likewise.
7508 * symtab.c (lookup_symbol_in_language): Explain when/why
7509 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7510 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
7511 appropriate languages.
7512 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
7513 and moved to ada-lang.c
7514 (lookup_block_symbol): Explain that this function only returns
7515 symbol matching the requested DOMAIN.
7516 Compare the requested domain with the symbol's domain directly.
7517 (iterate_over_symbols): Compare the requested domain with the
7518 symbol's domain directly.
7519 * symtab.h (symbol_matches_domain): Remove.
7520
3d567982
TT
75212014-04-14 Tom Tromey <tromey@redhat.com>
7522
7523 PR c++/15246:
7524 * c-exp.y (type_aggregate_p): New function.
7525 (qualified_name, classify_inner_name): Use it.
7526 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
7527 and TYPE_TARGET_TYPE of an enum type.
7528 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
7529 an enum type.
7530 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
7531 handle TYPE_DECLARED_CLASS.
7532 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
7533 types.
7534 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
7535 * valops.c (enum_constant_from_type): New function.
7536 (value_aggregate_elt): Use it.
7537 * cp-namespace.c (cp_lookup_nested_symbol): Handle
7538 TYPE_CODE_ENUM.
7539
c848d642
TT
75402014-04-14 Tom Tromey <tromey@redhat.com>
7541
7542 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
7543 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
7544 const.
7545 * value.h (value_aggregate_elt): Update.
7546
0626fc76
TT
75472014-04-14 Tom Tromey <tromey@redhat.com>
7548
7549 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
7550
5ecaaa66
SA
75512014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7552
7553 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7554 (evaluate_subexp_standard): Pass noside argument.
7555 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7556 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7557 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7558 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7559 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7560
1612e0c0
SA
75612014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7562
7563 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7564 points to a constant blob.
7565
c451ebe5
SA
75662014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7567
7568 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7569 property and store it as the high bound and flag the range accordingly.
7570 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7571 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7572 * gdbtypes.h (enum range_flags): New enum.
7573 (struct range_bounds): Add flags member.
7574
1d42e4c4
SA
75752014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7576
7577 * c-typeprint.c (c_type_print_varspec_suffix): Added
7578 check for not yet resolved high bound. If unresolved, print
7579 "variable length" string to the console instead of random
7580 length.
7581
9f1f738a
SA
75822014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7583
7584 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
7585 value.
7586 (ada_template_to_fixed_record_type_1): Likewise.
7587 (ada_to_fixed_type_1): Likewise.
7588 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7589 (cp_print_value): Likewise.
7590 * d-valprint.c (dynamic_array_type): Likewise.
7591 * findvar.c (address_of_variable): Likewise.
7592 * jv-valprint.c (java_value_print): Likewise.
7593 * valops.c (value_ind): Likewise.
7594 * value.c (coerce_ref): Likewise.
7595
3c8452d4
SA
75962014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7597
7598 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7599 value and retrieve the dynamic type size.
7600
4ad88275
SA
76012014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7602
7603 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7604 passed to sizeof is dynamic evaluate the argument to compute the length.
7605
80180f79
SA
76062014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7607 Joel Brobecker <brobecker@adacore.com>
7608
7609 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7610 (dwarf2_evaluate_property): New function.
7611 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7612 * dwarf2read.c (attr_to_dynamic_prop): New function.
7613 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7614 attribute.
7615 * gdbtypes.c: Include dwarf2loc.h.
7616 (is_dynamic_type): New function.
7617 (resolve_dynamic_type): New function.
7618 (resolve_dynamic_bounds): New function.
7619 (get_type_length): New function.
7620 (check_typedef): Use get_type_length to compute type length.
7621 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7622 (TYPE_LOW_BOUND_KIND): New macro.
7623 (is_dynamic_type): New function prototype.
7624 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7625 to resolve dynamic properties of the type. Update comment.
7626 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7627
a1556843
RH
76282014-04-14 Richard Henderson <rth@redhat.com>
7629
7630 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
7631
0be03e84
DE
76322014-04-12 Siva Chandra Reddy <sivachandra@google.com>
7633 Doug Evans <xdje42@gmail.com>
7634
7635 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
7636 dereference TYPE_CODE_REF values.
7637
6b662e19
JB
76382014-04-11 Joel Brobecker <brobecker@adacore.com>
7639
7640 Revert the following changes due to regressions:
7641
7642 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7643 (dwarf2_evaluate_property): New function.
7644 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7645 * dwarf2read.c (attr_to_dynamic_prop): New function.
7646 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7647 attribute.
7648 * gdbtypes.c: Include dwarf2loc.h.
7649 (is_dynamic_type): New function.
7650 (resolve_dynamic_type): New function.
7651 (resolve_dynamic_bounds): New function.
7652 (get_type_length): New function.
7653 (check_typedef): Use get_type_length to compute type length.
7654 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7655 (TYPE_LOW_BOUND_KIND): New macro.
7656 (is_dynamic_type): New function prototype.
7657 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7658 to resolve dynamic properties of the type. Update comment.
7659 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7660
7661 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7662 passed to sizeof is dynamic evaluate the argument to compute the length.
7663
7664 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7665 value and retrieve the dynamic type size.
7666
7667 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7668 (ada_template_to_fixed_record_type_1): Likewise.
7669 (ada_to_fixed_type_1): Likewise.
7670 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7671 (cp_print_value): Likewise.
7672 * d-valprint.c (dynamic_array_type): Likewise.
7673 * eval.c (evaluate_subexp_with_coercion): Likewise.
7674 * findvar.c (address_of_variable): Likewise.
7675 * jv-valprint.c (java_value_print): Likewise.
7676 * valops.c (value_ind): Likewise.
7677 * value.c (coerce_ref): Likewise.
7678
7679 * c-typeprint.c (c_type_print_varspec_suffix): Added
7680 check for not yet resolved high bound. If unresolved, print
7681 "variable length" string to the console instead of random
7682 length.
7683
7684 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7685 property and store it as the high bound and flag the range accordingly.
7686 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7687 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7688 * gdbtypes.h (enum range_flags): New enum.
7689 (struct range_bounds): Add flags member.
7690
7691 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7692 points to a constant blob.
7693
7694 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7695 (evaluate_subexp_standard): Pass noside argument.
7696 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7697 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7698 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7699 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7700 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7701
245a5f0b
KS
77022014-04-11 Keith Seitz <keiths@redhat.com>
7703
7704 PR c++/16675
7705 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
7706 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
7707 reference types.
7708
3bce8237
SA
77092014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7710
7711 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7712 (evaluate_subexp_standard): Pass noside argument.
7713 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7714 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7715 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7716 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7717 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7718
92b09522
SA
77192014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7720
7721 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7722 points to a constant blob.
7723
e1969afb
SA
77242014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7725
7726 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7727 property and store it as the high bound and flag the range accordingly.
7728 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7729 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7730 * gdbtypes.h (enum range_flags): New enum.
7731 (struct range_bounds): Add flags member.
7732
b86138fb
SA
77332014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7734
7735 * c-typeprint.c (c_type_print_varspec_suffix): Added
7736 check for not yet resolved high bound. If unresolved, print
7737 "variable length" string to the console instead of random
7738 length.
7739
bcd629a4
SA
77402014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7741
7742 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7743 (ada_template_to_fixed_record_type_1): Likewise.
7744 (ada_to_fixed_type_1): Likewise.
7745 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7746 (cp_print_value): Likewise.
7747 * d-valprint.c (dynamic_array_type): Likewise.
7748 * eval.c (evaluate_subexp_with_coercion): Likewise.
7749 * findvar.c (address_of_variable): Likewise.
7750 * jv-valprint.c (java_value_print): Likewise.
7751 * valops.c (value_ind): Likewise.
7752 * value.c (coerce_ref): Likewise.
7753
04b19544
SA
77542014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7755
7756 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7757 value and retrieve the dynamic type size.
7758
26cb189f
SA
77592014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7760
7761 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7762 passed to sizeof is dynamic evaluate the argument to compute the length.
7763
37c1ab67
SA
77642014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7765
7766 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7767 (dwarf2_evaluate_property): New function.
7768 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7769 * dwarf2read.c (attr_to_dynamic_prop): New function.
7770 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7771 attribute.
7772 * gdbtypes.c: Include dwarf2loc.h.
7773 (is_dynamic_type): New function.
7774 (resolve_dynamic_type): New function.
7775 (resolve_dynamic_bounds): New function.
7776 (get_type_length): New function.
7777 (check_typedef): Use get_type_length to compute type length.
7778 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7779 (TYPE_LOW_BOUND_KIND): New macro.
7780 (is_dynamic_type): New function prototype.
7781 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7782 to resolve dynamic properties of the type. Update comment.
7783 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7784
729efb13
SA
77852014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7786
7787 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
7788 declaring high/low bounds and change uses accordingly. Call
7789 create_range_type instead of create_static_range_type.
7790 * gdbtypes.c (create_range_type): New function.
7791 (create_range_type): Convert bounds into struct bound_prop and pass
7792 them to create_range_type.
7793 * gdbtypes.h (struct bound_prop): New struct.
7794 (create_range_type): New function prototype.
7795 (struct range_bounds): Use struct bound_prop instead of LONGEST for
7796 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
7797 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
7798 part of the bound.
7799 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
7800
0c9c3474
SA
78012014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7802
7803 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
7804 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
7805 * ada-lang.c: All uses of create_range_type updated.
7806 * coffread.c: All uses of create_range_type updated.
7807 * dwarf2read.c: All uses of create_range_type updated.
7808 * f-exp.y: All uses of create_range_type updated.
7809 * m2-valprint.c: All uses of create_range_type updated.
7810 * mdebugread.c: All uses of create_range_type updated.
7811 * stabsread.c: All uses of create_range_type updated.
7812 * valops.c: All uses of create_range_type updated.
7813 * valprint.c: All uses of create_range_type updated.
7814
9d497a19
PA
78152014-04-10 Pedro Alves <palves@redhat.com>
7816
7817 * breakpoint.c (single_step_breakpoints)
7818 (single_step_gdbarch): Move up in the file.
7819 (one_breakpoint_xfer_memory): New function, factored out from ...
7820 (breakpoint_xfer_memory): ... here. Also process single-step
7821 breakpoints.
7822
15a9128a
TG
78232014-04-09 Tristan Gingold <gingold@adacore.com>
7824
7825 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
7826 comments.
7827 (darwin_decode_exception_message): Free port only after use.
7828
9c97a070
PL
78292014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
7830
7831 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
7832 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
7833 when setting the size of call_length.
7834
7af389b8
SC
78352014-04-07 Siva Chandra Reddy <sivachandra@google.com>
7836
7837 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
7838 dereference TYPE_CODE_REF values.
7839
86ad98c3
JB
78402014-04-07 Joel Brobecker <brobecker@adacore.com>
7841
7842 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
7843 end of warning message.
7844
b0aeadb3
DE
78452014-04-03 Doug Evans <dje@google.com>
7846
7847 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
7848 of stub_comp_unit_die, stub_comp_dir is non-NULL.
7849
5979d6b6
AM
78502014-04-02 Alan Modra <amodra@gmail.com>
7851
7852 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
7853 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
7854 (struct symbol_file_add_from_memory_args): Add size field.
7855 (find_vdso_size): New function.
7856 (add_vsyscall_page): Attempt to find vdso size.
7857
0d60c288
DE
78582014-04-01 Doug Evans <dje@google.com>
7859
7860 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
7861
a41f2563
TG
78622014-04-01 Tristan Gingold <gingold@adacore.com>
7863
7864 * darwin-nat.c (darwin_encode_reply): Add prototype.
7865 (darwin_decode_exception_message): Reply to unknown inferiors.
7866 (darwin_decode_message): Handle message by id. Ignore message
7867 to unknown inferior.
7868 (darwin_wait): Discard unknown messages, add debug trace.
7869
11a865c8
DE
78702014-03-31 Doug Evans <dje@google.com>
7871
7872 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
7873 comp_dir_string.
7874
770e7fc7
DE
78752014-03-31 Doug Evans <dje@google.com>
7876
7877 New option "set print symbol-loading".
7878 * NEWS: Mention it.
7879 * solib.c (solib_read_symbols): Only print symbol loading messages
7880 if requested.
7881 (solib_add): If symbol loading is in "brief" mode, notify user
7882 symbols are being loaded.
7883 (reload_shared_libraries_1): Ditto.
7884 * symfile.c (print_symbol_loading_off): New static global.
7885 (print_symbol_loading_brief): New static global.
7886 (print_symbol_loading_full): New static global.
7887 (print_symbol_loading_enums): New static global.
7888 (print_symbol_loading): New static global.
7889 (print_symbol_loading_p): New function.
7890 (symbol_file_add_with_addrs): Only print symbol loading messages
7891 if requested.
7892 (_initialize_symfile): Register "print symbol-loading" set/show
7893 command.
7894 * symfile.h (print_symbol_loading_p): Declare.
7895
c32c64b7
DE
78962014-03-30 Doug Evans <xdje42@gmail.com>
7897
7898 * infrun.c (set_last_target_status): New function.
7899 (handle_inferior_event): Call it.
7900
7c0bc051
DE
79012014-03-30 Doug Evans <xdje42@gmail.com>
7902
7903 * inferior.h (enum stop_kind): Improve comment.
7904
8776cfe9
JB
79052014-03-28 Joel Brobecker <brobecker@adacore.com>
7906
7907 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
7908 a reference, strip the reference layer before calling
7909 the lang_ops value_has_mutated callback.
7910
410a0ff2
SDJ
79112014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
7912
7913 Remove some globals from our parser.
7914 * language.c (unk_lang_parser): Add "struct parser_state"
7915 argument.
7916 * language.h (struct language_defn) <la_parser>: Likewise.
7917 * parse.c (expout, expout_size, expout_ptr): Remove variables.
7918 (initialize_expout): Add "struct parser_state" argument.
7919 Rewrite function to use the parser state.
7920 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
7921 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
7922 write_exp_elt_longcst, write_exp_elt_dblcst,
7923 write_exp_elt_decfloatcst, write_exp_elt_type,
7924 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
7925 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
7926 write_dollar_variable): Likewise.
7927 (parse_exp_in_context_1): Use parser state.
7928 (insert_type_address_space): Add "struct parser_state" argument.
7929 Use parser state.
7930 (increase_expout_size): New function.
7931 * parser-defs.h: Forward declare "struct language_defn" and
7932 "struct parser_state".
7933 (expout, expout_size, expout_ptr): Remove extern declarations.
7934 (parse_gdbarch, parse_language): Rewrite macro declarations to
7935 accept the parser state.
7936 (struct parser_state): New struct.
7937 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
7938 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
7939 write_exp_elt_decfloatcst, write_exp_elt_type,
7940 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
7941 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
7942 write_exp_msymbol, write_dollar_variable,
7943 mark_struct_expression, insert_type_address_space): Add "struct
7944 parser_state" argument.
7945 (increase_expout_size): New function.
7946 * utils.c (do_clear_parser_state): New function.
7947 (make_cleanup_clear_parser_state): Likewise.
7948 * utils.h (make_cleanup_clear_parser_state): New function
7949 prototype.
7950 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
7951 Update calls to write_exp* in order to pass the parser state.
7952 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
7953 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
7954 (i386_stap_parse_special_token_three_arg_disp): Likewise.
7955 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
7956 * stap-probe.c (stap_parse_register_operand): Likewise.
7957 (stap_parse_single_operand): Likewise.
7958 (stap_parse_argument_1): Likewise.
7959 (stap_parse_argument): Use parser state.
7960 * stap-probe.h: Include "parser-defs.h".
7961 (struct stap_parse_info) <pstate>: New field.
7962 * c-exp.y (parse_type): Rewrite to use parser state.
7963 (yyparse): Redefine to c_parse_internal.
7964 (pstate): New global variable.
7965 (parse_number): Add "struct parser_state" argument.
7966 (write_destructor_name): Likewise.
7967 (type_exp): Update calls to write_exp* and similars in order to
7968 use parser state.
7969 (exp1, exp, variable, qualified_name, space_identifier,
7970 typename, typebase): Likewise.
7971 (write_destructor_name, parse_number, lex_one_token,
7972 classify_name, classify_inner_name, c_parse): Add "struct
7973 parser_state" argument. Update function to use parser state.
7974 * c-lang.h: Forward declare "struct parser_state".
7975 (c_parse): Add "struct parser_state" argument.
7976 * ada-exp.y (parse_type): Rewrite macro to use parser state.
7977 (yyparse): Redefine macro to ada_parse_internal.
7978 (pstate): New variable.
7979 (write_int, write_object_renaming, write_var_or_type,
7980 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
7981 type_int, type_long, type_long_long, type_float, type_double,
7982 type_long_double, type_char, type_boolean, type_system_address):
7983 Add "struct parser_state" argument.
7984 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
7985 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
7986 var_or_type, aggregate, aggregate_component_list,
7987 positional_list, others, component_group,
7988 component_associations): Update calls to write_exp* and similar
7989 functions in order to use parser state.
7990 (ada_parse, write_var_from_sym, write_int,
7991 write_exp_op_with_string, write_object_renaming,
7992 find_primitive_type, write_selectors, write_ambiguous_var,
7993 write_var_or_type, write_name_assoc, type_int, type_long,
7994 type_long_long, type_float, type_double, type_long_double,
7995 type_char, type_boolean, type_system_address): Add "struct
7996 parser_state" argument. Adjust function to use parser state.
7997 * ada-lang.c (parse): Likewise.
7998 * ada-lang.h: Forward declare "struct parser_state".
7999 (ada_parse): Add "struct parser_state" argument.
8000 * ada-lex.l (processInt, processReal): Likewise. Adjust all
8001 calls to both functions.
8002 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
8003 parser state.
8004 (yyparse): Redefine macro to f_parse_internal.
8005 (pstate): New variable.
8006 (parse_number): Add "struct parser_state" argument.
8007 (type_exp, exp, subrange, typebase): Update calls to write_exp*
8008 and similars in order to use parser state.
8009 (parse_number): Adjust code to use parser state.
8010 (yylex): Likewise.
8011 (f_parse): New function.
8012 * f-lang.h: Forward declare "struct parser_state".
8013 (f_parse): Add "struct parser_state" argument.
8014 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
8015 parser state.
8016 (yyparse): Redefine macro for java_parse_internal.
8017 (pstate): New variable.
8018 (push_expression_name, push_expression_name, insert_exp): Add
8019 "struct parser_state" argument.
8020 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
8021 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
8022 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
8023 PostIncrementExpression, PostDecrementExpression,
8024 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
8025 UnaryExpressionNotPlusMinus, CastExpression,
8026 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
8027 RelationalExpression, EqualityExpression, AndExpression,
8028 ExclusiveOrExpression, InclusiveOrExpression,
8029 ConditionalAndExpression, ConditionalOrExpression,
8030 ConditionalExpression, Assignment, LeftHandSide): Update
8031 calls to write_exp* and similars in order to use parser state.
8032 (parse_number): Ajust code to use parser state.
8033 (yylex): Likewise.
8034 (java_parse): New function.
8035 (push_variable): Add "struct parser_state" argument. Adjust
8036 code to user parser state.
8037 (push_fieldnames, push_qualified_expression_name,
8038 push_expression_name, insert_exp): Likewise.
8039 * jv-lang.h: Forward declare "struct parser_state".
8040 (java_parse): Add "struct parser_state" argument.
8041 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
8042 parser state.
8043 (yyparse): Redefine macro to m2_parse_internal.
8044 (pstate): New variable.
8045 (type_exp, exp, fblock, variable, type): Update calls to
8046 write_exp* and similars to use parser state.
8047 (yylex): Likewise.
8048 (m2_parse): New function.
8049 * m2-lang.h: Forward declare "struct parser_state".
8050 (m2_parse): Add "struct parser_state" argument.
8051 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
8052 * objc-lang.h: Forward declare "struct parser_state".
8053 (end_msglist): Add "struct parser_state" argument.
8054 * p-exp.y (parse_type): Rewrite macro to use parser state.
8055 (yyparse): Redefine macro to pascal_parse_internal.
8056 (pstate): New variable.
8057 (parse_number): Add "struct parser_state" argument.
8058 (type_exp, exp1, exp, qualified_name, variable): Update calls to
8059 write_exp* and similars in order to use parser state.
8060 (parse_number, yylex): Adjust code to use parser state.
8061 (pascal_parse): New function.
8062 * p-lang.h: Forward declare "struct parser_state".
8063 (pascal_parse): Add "struct parser_state" argument.
8064 * go-exp.y (parse_type): Rewrite macro to use parser state.
8065 (yyparse): Redefine macro to go_parse_internal.
8066 (pstate): New variable.
8067 (parse_number): Add "struct parser_state" argument.
8068 (type_exp, exp1, exp, variable, type): Update calls to
8069 write_exp* and similars in order to use parser state.
8070 (parse_number, lex_one_token, classify_name, yylex): Adjust code
8071 to use parser state.
8072 (go_parse): Likewise.
8073 * go-lang.h: Forward declare "struct parser_state".
8074 (go_parse): Add "struct parser_state" argument.
8075
342587c4
DE
80762014-03-27 Doug Evans <dje@google.com>
8077
8078 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
8079
33e80786
DE
80802014-03-27 Doug Evans <dje@google.com>
8081
8082 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
8083 Remove argument abbrev_section. All callers updated.
8084
1dbab08b
DE
80852014-03-27 Doug Evans <dje@google.com>
8086
8087 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
8088 addr_base, ranges_base.
8089
318d3177
KS
80902014-03-26 Keith Seitz <keiths@redhat.com>
8091
8092 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
8093 types, not VAR_DOMAIN.
8094
1e54db15
SL
80952014-03-25 Sandra Loosemore <sandra@codesourcery.com>
8096
8097 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
8098 "ra" registers.
8099 * features/nios2-linux.c: Regenerated.
8100 * features/nios2.c: Regenerated.
8101
d3839ede
PA
81022014-03-25 Pedro Alves <palves@redhat.com>
8103
8104 * cli/cli-script.c (script_from_file): Force the interpreter to
8105 sync mode.
8106
7588d2ec
PL
81072014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
8108
8109 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
8110 small stack allocation.
8111
a6290449
TG
81122014-03-24 Tristan Gingold <gingold@adacore.com>
8113
8114 * darwin-nat.c (exc_server): Remove unused prototype.
8115 (darwin_dump_message): Correctly display data on x86_64.
8116 (darwin_encode_reply): Fix style.
8117 Add comments and fix indentation.
8118
31ae9d24 81192014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
69fa4030
PL
8120
8121 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
8122
6339bfc4
DE
81232014-03-22 Doug Evans <xdje42@gmail.com>
8124
8125 * infcmd.c: Whitespace fixes.
8126 (interrupt_command): Merge two function comments into one.
8127
0a07590b
DE
81282014-03-22 Doug Evans <xdje42@gmail.com>
8129
8130 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
8131 All uses updated.
8132
b55fbac4
YQ
81332014-03-22 Yao Qi <yao@codesourcery.com>
8134
8135 * remote.c (target_read_live_memory): Remove.
8136 (memory_xfer_live_readonly_partial): Rename it to
8137 remote_xfer_live_readonly_partial. Remove argument 'object'.
8138 All callers updated. Call remote_read_bytes_1
8139 instead of target_read_live_memory.
8140 * tracepoint.c (set_traceframe_number): Remove.
8141 (make_cleanup_restore_traceframe_number): Likewise .
8142 * tracepoint.h (set_traceframe_number): Remove declaration.
8143 (make_cleanup_restore_traceframe_number): Likewise.
8144
9217e74e
YQ
81452014-03-22 Yao Qi <yao@codesourcery.com>
8146
8147 * remote.c (remote_read_bytes): Move code on reading from the
8148 remote stub to ...
8149 (remote_read_bytes_1): ... here. New function.
8150
8acf9577
YQ
81512014-03-22 Yao Qi <yao@codesourcery.com>
8152
8153 * ctf.c (ctf_xfer_partial): Check the return value of
8154 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
8155 return TARGET_XFER_UNAVAILABLE.
8156 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8157 * target.c (target_read_live_memory): Move it to remote.c.
8158 (memory_xfer_live_readonly_partial): Likewise.
8159 (memory_xfer_partial_1): Move some code to remote_read_bytes.
8160 * remote.c (target_read_live_memory): Moved from target.c.
8161 (memory_xfer_live_readonly_partial): Likewise.
8162 (remote_read_bytes): Factored out from
8163 memory_xfer_partial_1.
8164
feef67ab
DE
81652014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
8166
8167 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
8168 NULL pointer.
8169
b65dc60b
PA
81702014-03-21 Pedro Alves <palves@redhat.com>
8171
8172 * infrun.c (normal_stop): Extend comment.
8173
b4ab256d
HZ
81742014-03-21 Hui Zhu <hui@codesourcery.com>
8175 Pedro Alves <palves@redhat.com>
8176
8177 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
8178 static buffer.
8179 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
8180 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
8181 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
8182
deba7593
MR
81832014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
8184
8185 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
8186 `z' formatted output modifier.
8187
1bff71c3
SDJ
81882014-03-20 Tom Tromey <tromey@redhat.com>
8189 Sergio Durigan Junior <sergiodj@redhat.com>
8190
8191 * probe.c (parse_probes): Turn assert into an ordinary error.
8192 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
8193 exceptions when parsing probes. Rearrange the code for clarity.
8194
90e28950
TT
81952014-03-20 Tom Tromey <tromey@redhat.com>
8196
8197 PR gdb/14135
8198 * top.c (execute_command): Only dispatch events if the command
8199 started the target.
8200
beb460e8
PA
82012014-03-20 Tom Tromey <tromey@redhat.com>
8202
8203 PR cli/15718
8204 * infcall.c: Include event-top.h.
8205 (run_inferior_call): Call async_disable_stdin if needed.
8206
99619bea
PA
82072014-03-20 Pedro Alves <palves@redhat.com>
8208
8209 * infrun.c (prepare_to_proceed): Delete.
8210 (thread_still_needs_step_over): New function.
8211 (find_thread_needs_step_over): New function.
8212 (proceed): If the current thread needs a step-over, set its
8213 steping_over_breakpoint flag. Adjust to use
8214 find_thread_needs_step_over instead of prepare_to_proceed.
8215 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
8216 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
8217 breakpoint.
8218 (switch_back_to_stepped_thread): Step over breakpoints of all
8219 threads not the stepping thread, before switching back to the
8220 stepping thread.
8221
2adfaa28
PA
82222014-03-20 Pedro Alves <palves@redhat.com>
8223
8224 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
8225 extern.
8226 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
8227 * infrun.c (saved_singlestep_ptid)
8228 (stepping_past_singlestep_breakpoint): Delete.
8229 (resume): Remove stepping_past_singlestep_breakpoint handling.
8230 (proceed): Store the prev_pc of the stepping thread too.
8231 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
8232 singlestep_pc.
8233 (enum infwait_states): Delete infwait_thread_hop_state.
8234 (struct execution_control_state) <hit_singlestep_breakpoint>: New
8235 field.
8236 (handle_inferior_event): Adjust.
8237 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
8238 handling and the thread-hop code. Before removing single-step
8239 breakpoints, check whether the thread hit a single-step breakpoint
8240 of another thread. If it did, the trap is not a random signal.
8241 (switch_back_to_stepped_thread): If the event thread hit a
8242 single-step breakpoint, unblock it before switching to the
8243 stepping thread. Handle the case of the stepped thread having
8244 advanced already.
8245 (keep_going): Handle the case of the current thread moving past a
8246 single-step breakpoint.
8247
31e77af2
PA
82482014-03-20 Pedro Alves <palves@redhat.com>
8249
8250 PR breakpoints/7143
8251 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
8252 are being stepped over.
8253 (breakpoint_address_match): Make extern.
8254 * breakpoint.h (breakpoint_address_match): New declaration.
8255 * inferior.h (stepping_past_instruction_at): New declaration.
8256 * infrun.c (struct step_over_info): New type.
8257 (step_over_info): New global.
8258 (set_step_over_info, clear_step_over_info)
8259 (stepping_past_instruction_at): New functions.
8260 (handle_inferior_event): Clear the step-over info when
8261 trap_expected is cleared.
8262 (resume): Remove now stale comment.
8263 (clear_proceed_status): Clear step-over info.
8264 (proceed): Adjust step-over handling to set or clear the step-over
8265 info instead of removing all breakpoints.
8266 (handle_signal_stop): When setting up a thread-hop, don't remove
8267 breakpoints here.
8268 (stop_stepping): Clear step-over info.
8269 (keep_going): Adjust step-over handling to set or clear step-over
8270 info and then always inserting breakpoints, instead of removing
8271 all breakpoints when stepping over one.
8272
b9f437de
PA
82732014-03-20 Pedro Alves <palves@redhat.com>
8274
8275 * infrun.c (previous_inferior_ptid): Adjust comment.
8276 (deferred_step_ptid): Delete.
8277 (infrun_thread_ptid_changed, prepare_to_proceed)
8278 (init_wait_for_inferior): Adjust.
8279 (handle_signal_stop): Delete deferred_step_ptid handling.
8280
06c868a8
JK
82812014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
8282
8283 PR gdb/15358
8284 * defs.h (sync_quit_force_run): New declaration.
8285 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
8286 * event-top.c (async_sigterm_handler): New declaration.
8287 (async_sigterm_token): New variable.
8288 (async_init_signals): Create also async_sigterm_token.
8289 (async_sigterm_handler): New function.
8290 (sync_quit_force_run): New variable.
8291 (handle_sigterm): Replace quit_force call by other calls.
8292 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
8293
dea80df0
MR
82942014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
8295
8296 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
8297 offset into SPE pseudo registers.
8298
0c7e1a46
PA
82992014-03-18 Pedro Alves <palves@redhat.com>
8300
8301 PR gdb/13860
8302 * inferior.h (print_stop_event): Declare.
8303 * infrun.c (print_stop_event): New, factored out from ...
8304 (normal_stop): ... this.
8305 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
8306 of bpstat_print/print_stack_frame.
8307
9c1fcd01
TT
83082014-03-17 Tom Tromey <tromey@redhat.com>
8309
8310 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
8311
11aa919a
PMR
83122014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
8313
8314 * ada-lang.c (decode_constrained_packed_array): Perform a
8315 minimal coercion for reference with coerce_ref instead of
8316 ada_coerce_ref.
8317
d4ccb5e0
TG
83182014-03-17 Tristan Gingold <gingold@adacore.com>
8319
8320 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
8321 (darwin_solib_create_inferior_hook): Emit a warning if version
8322 is unhandled.
8323
49840f2a
UW
83242014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
8325
8326 * python/py-value.c (get_field_flag): Cast flag_name argument to
8327 PyObject_GetAttrString to support Python 2.4.
8328
ed4123e5
JK
83292014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8330
8331 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
8332 (Global Maintainers): Remove Jan Kratochvil.
8333
d6b64346
PA
83342014-03-14 Pedro Alves <palves@redhat.com>
8335
8336 * inferior.h (terminal_ours_for_output): Rename to ...
8337 (child_terminal_ours_for_output): ... this.
8338 (terminal_save_ours): Rename to ...
8339 (child_terminal_save_ours): ... this.
8340 (terminal_ours): Rename to ...
8341 (child_terminal_ours): ... this.
8342 (terminal_inferior): Rename to ...
8343 (child_terminal_inferior): ... this.
8344 (terminal_init_inferior): Rename to ...
8345 (child_terminal_init_inferior): ... this.
8346 (terminal_init_inferior_with_pgrp): Rename to ...
8347 (child_terminal_init_inferior_with_pgrp): ... this.
8348 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
8349 (child_terminal_init_with_pgrp): ... this.
8350 (terminal_save_ours): Rename to ...
8351 (child_terminal_save_ours): ... this.
8352 (terminal_init_inferior): Rename to ...
8353 (child_terminal_init): ... this. Adjust.
8354 (terminal_inferior): Rename to ...
8355 (child_terminal_inferior): ... this.
8356 (terminal_ours_for_output): Rename to ...
8357 (child_terminal_ours_for_output): ... this. Adjust.
8358 (terminal_ours): Rename to ...
8359 (child_terminal_ours): ... this.
8360 (terminal_ours_1): Rename to ...
8361 (child_terminal_ours_1): ... this. Adjust.
8362 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
8363 * windows-nat.c (do_initial_windows_stuff): Adjust.
8364 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
8365 (gnu_terminal_init): ... this. Adjust.
8366 (gnu_target): Adjust.
8367 * inf-child.c (inf_child_target): Adjust.
8368
5a1e8c7a
DE
83692014-03-13 Doug Evans <xdje42@gmail.com>
8370
8371 PR guile/16612
8372 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
8373 new eq?-hashtab.
8374
350e1a76
DE
83752014-03-13 Doug Evans <xdje42@gmail.com>
8376
8377 * value.c (record_latest_value): Call release_value_or_incref
8378 instead of release_value.
8379
a69900ae
PA
83802014-03-13 Pedro Alves <palves@redhat.com>
8381
8382 * procfs.c (procfs_target): Don't override to_shortname,
8383 to_longname or to_doc.
8384
5db9f0bd
PA
83852014-03-13 Pedro Alves <palves@redhat.com>
8386
8387 * inf-child.c (inf_child_open, inf_child_target): Don't mention
8388 Unix in user visible strings.
8389
5e3a2c38
SS
83902014-03-12 Stan Shebs <stan@codesourcery.com>
8391
8392 * gdbtypes.h: Annotate comments for Doxygen, add a page
8393 block comment with some general info.
8394
8bc2fe48
PA
83952014-03-12 Pedro Alves <palves@redhat.com>
8396
8397 * infcmd.c (prepare_execution_command): New function, factored out
8398 from several execution commands.
8399 (run_command_1, continue_command, step_1, jump_command)
8400 (signal_command, until_command, advance_command, finish_command)
8401 (attach_command): Use prepare_execution_command.
8402
638c5f49
OJ
84032014-03-12 Omair Javaid <omair.javaid@linaro.org>
8404
8405 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
8406 (MAX_BPTS): Define.
8407 (MAX_WPTS): Define.
8408 (struct arm_linux_thread_points): Removed.
8409 (struct arm_linux_process_info): New.
8410 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
8411 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
8412 (arm_linux_find_breakpoints_by_tid): Removed.
8413 (struct arch_lwp_info): New.
8414 (arm_linux_find_process_pid): New functions.
8415 (arm_linux_add_process): New functions.
8416 (arm_linux_process_info_get): New functions.
8417 (arm_linux_forget_process): New function.
8418 (arm_linux_get_debug_reg_state): New function.
8419 (struct update_registers_data): New.
8420 (update_registers_callback): New function.
8421 (arm_linux_insert_hw_breakpoint1): Updated.
8422 (arm_linux_remove_hw_breakpoint1): Updated.
8423 (arm_linux_insert_hw_breakpoint): Updated.
8424 (arm_linux_remove_hw_breakpoint): Updated.
8425 (arm_linux_insert_watchpoint): Updated.
8426 (arm_linux_remove_watchpoint): Updated.
8427 (arm_linux_new_thread): Updated.
8428 (arm_linux_prepare_to_resume): New function.
8429 (arm_linux_new_fork): New function.
8430 (_initialize_arm_linux_nat): Updated.
8431
6d03af93
PA
84322014-03-12 Pedro Alves <palves@redhat.com>
8433
8434 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
8435
b3ccfe11
TT
84362014-03-12 Tom Tromey <tromey@redhat.com>
8437
8438 * inf-child.c (return_zero): New function.
8439 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
8440 * aix-thread.c (aix_thread_inferior_created): New function.
8441 (aix_thread_attach): Remove.
8442 (init_aix_thread_ops): Don't set to_attach.
8443 (_initialize_aix_thread): Register inferior_created observer.
8444 * corelow.c (init_core_ops): Don't set to_attach or
8445 to_create_inferior.
8446 * exec.c (init_exec_ops): Don't set to_attach or
8447 to_create_inferior.
8448 * infcmd.c (run_command_1): Use find_run_target. Make direct
8449 target calls.
8450 (attach_command): Use find_attach_target. Make direct target
8451 calls.
8452 * record-btrace.c (init_record_btrace_ops): Don't set
8453 to_create_inferior.
8454 * record-full.c (record_full_can_async_p, record_full_is_async_p):
8455 Remove.
8456 (init_record_full_ops, init_record_full_core_ops): Update. Don't
8457 set to_create_inferior.
8458 * target.c (complete_target_initialization): Add assertion.
8459 (target_create_inferior): Remove.
8460 (find_default_attach, find_default_create_inferior): Remove.
8461 (find_attach_target, find_run_target): New functions.
8462 (find_default_is_async_p, find_default_can_async_p)
8463 (target_supports_non_stop, target_attach): Remove.
8464 (init_dummy_target): Don't set to_create_inferior or
8465 to_supports_non_stop.
8466 * target.h (struct target_ops) <to_attach>: Add comment. Remove
8467 TARGET_DEFAULT_FUNC.
8468 <to_create_inferior>: Add comment.
8469 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
8470 TARGET_DEFAULT_RETURN.
8471 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
8472 (find_attach_target, find_run_target): Declare.
8473 (target_create_inferior): Remove.
8474 (target_has_execution_1): Update comment.
8475 (target_supports_non_stop): Remove.
8476 * target-delegates.c: Rebuild.
8477
91f83b02
PA
84782014-03-12 Pedro Alves <palves@redhat.com>
8479
8480 * inf-child.h: Update comment to not mention Unix.
8481
f1aea813
PA
84822014-03-12 Pedro Alves <palves@redhat.com>
8483
8484 * inf-child.c: Update top comment to not mention Unix. Add
8485 generic comment describing how this target is meant to be used.
8486 (inf_child_post_attach, inf_child_post_startup_inferior)
8487 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
8488 Unix in comment.
8489
ee8e9165
PA
84902014-03-12 Pedro Alves <palves@redhat.com>
8491
8492 * nto-procfs.c: Include inf-child.h.
8493 (procfs_ops): Delete global.
8494 (procfs_can_run): Delete method.
8495 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
8496 target pointer instead of referencing procfs_ops.
8497 (procfs_prepare_to_store): Delete.
8498 (init_procfs_ops): Delete function.
8499 (procfs_target): New function, based on init_procfs_ops, but
8500 inherit inf_child_target.
8501 (_initialize_procfs): Use procfs_target.
8502
51a9c8c5
PA
85032014-03-12 Pedro Alves <palves@redhat.com>
8504
8505 * windows-nat.c: Include inf-child.h.
8506 (windows_ops): Delete global.
8507 (windows_open, windows_prepare_to_store, windows_can_run): Delete
8508 methods.
8509 (init_windows_ops): Delete function.
8510 (windows_target): New function, based on init_windows_ops, but
8511 inherit inf_child_target.
8512 (_initialize_windows_nat): Use windows_target. Install x86
8513 specific target methods here.
8514
c1966e26
DE
85152014-03-10 Doug Evans <xdje42@gmail.com>
8516
8517 * guile/guile.c (call_initialize_gdb_module): New function.
8518 (initialize_guile): Replace call to scm_init_guile with call to
8519 scm_with_guile.
8520
023db19c
JB
85212014-03-10 Joel Brobecker <brobecker@adacore.com>
8522
8523 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
8524 in call to TYPE_CODE macro.
8525
5ec18f2b
JG
85262014-03-10 Jerome Guitton <guitton@adacore.com>
8527
8668be63
JB
8528 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
8529 Resolve tagged types to full view.
5ec18f2b 8530
7d03f2eb
HZ
85312014-03-10 Hui Zhu <hui@codesourcery.com>
8532
8533 * target.h (target_insert_breakpoint): Remove "hardware" from its
8534 comments.
8535
c5164cbc
DE
85362014-03-07 Doug Evans <dje@google.com>
8537
8538 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
8539
c4a3fee2
DE
85402014-03-07 Doug Evans <dje@google.com>
8541
8542 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
8543 Remove unused local comp_dir_attr. Assert exactly one of
8544 stub_comp_unit_die, stub_comp_dir is non-NULL.
8545
3156469c
JB
85462014-03-07 Joel Brobecker <brobecker@adacore.com>
8547
8548 * target.h (complete_target_initialization, add_target):
8549 Add comment.
8550
c1a7b7c6
PA
85512014-03-07 Pedro Alves <palves@redhat.com>
8552
8553 * go32-nat.c: Include inf-child.h.
8554 (go32_ops): Delete global.
8555 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
8556 Delete methods.
8557 (go32_create_inferior): Push the passed in target pointer instead
8558 of referencing go32_ops.
8559 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
8560 (go32_target): New function, based on init_go32_ops, but inherit
8561 inf_child_target.
8562 (_initialize_go32_nat): Use go32_target. Move parts of
8563 init_go32_ops here.
8564
d3c1a85f
JB
85652014-03-06 Joel Brobecker <brobecker@adacore.com>
8566
8567 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
8568 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
8569 SYMBOL_VALUE_ADDRESS.
8570 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
8571
5fa1d40e
YQ
85722014-03-06 Yao Qi <yao@codesourcery.com>
8573
8574 * breakpoint.c (get_tracepoint_by_number): Remove argument
8575 optional_p. All callers updated. Adjust comments. Update
8576 output message.
8577 * breakpoint.h (get_tracepoint_by_number): Update declaration.
8578
0c13193f
YQ
85792014-03-06 Yao Qi <yao@codesourcery.com>
8580
8581 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
8582 early if get_number returns zero. Use 'p' instead of 'args'.
8583
2217da06
YQ
85842014-03-06 Yao Qi <yao@codesourcery.com>
8585
8586 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
8587 message.
8588
cc3da688
YQ
85892014-03-06 Yao Qi <yao@codesourcery.com>
8590
8591 PR breakpoints/16508
8592 * tracepoint.c (check_trace_running): New function.
8593 (trace_find_command): Move code to check_trace_running and
8594 call check_trace_running.
8595 (trace_find_pc_command): Likewise.
8596 (trace_find_tracepoint_command): Likewise.
8597 (trace_find_line_command): Likewise.
8598 (trace_find_range_command): Likewise.
8599 * tracepoint.h (check_trace_running): Likewise.
8600 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
8601
6a5f844b
YQ
86022014-03-06 Yao Qi <yao@codesourcery.com>
8603
8604 * target.h (struct target_ops) <to_traceframe_info>: Use
8605 TARGET_DEFAULT_NORETURN (tcomplain ()).
8606 * target-delegates.c: Regenerated.
8607
0f26cec1
PA
86082014-03-05 Pedro Alves <palves@redhat.com>
8609
8610 PR gdb/16575
8611 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
8612 void. Update comment.
8613 (dcache_xfer_memory): Delete.
8614 (dcache_read_memory_partial): New, based on the read bits of
8615 dcache_xfer_memory.
8616 (dcache_update): Add status parameter. Use ULONGEST for len, and
8617 adjust. Discard cache lines if the reason for the update was
8618 error.
8619 * dcache.h (dcache_xfer_memory): Delete declaration.
8620 (dcache_read_memory_partial): New declaration.
8621 (dcache_update): Update prototype.
8622 * target.c (raw_memory_xfer_partial): Update the dcache here.
8623 (memory_xfer_partial_1): Don't handle dcache writes here.
8624
b2b255bd
MF
86252014-03-05 Mike Frysinger <vapier@gentoo.org>
8626
8627 * remote-sim.c (gdbsim_load): Add const to prog.
8628
5d9cf8a4
TT
86292014-03-03 Tom Tromey <tromey@redhat.com>
8630
8631 * elfread.c (probe_key): Change to bfd_data.
8632 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
8633 now per-BFD, not per-objfile.
8634 * stap-probe.c (stap_probe_destroy): Update comment.
8635 (handle_stap_probe): Allocate on the per-BFD obstack.
8636
729662a5
TT
86372014-03-03 Tom Tromey <tromey@redhat.com>
8638
8639 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
8640 * breakpoint.c (create_longjmp_master_breakpoint): Use
8641 get_probe_address.
8642 (add_location_to_breakpoint, bkpt_probe_insert_location)
8643 (bkpt_probe_remove_location): Update.
8644 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
8645 * elfread.c (elf_symfile_relocate_probe): Remove.
8646 (elf_probe_fns): Update.
8647 (insert_exception_resume_breakpoint): Change type of "probe"
8648 parameter to bound_probe.
8649 (check_exception_resume): Update.
8650 * objfiles.c (objfile_relocate1): Don't relocate probes.
8651 * probe.c (bound_probe_s): New typedef.
8652 (parse_probes): Use get_probe_address. Set sal's objfile.
8653 (find_probe_by_pc): Return a bound_probe.
8654 (collect_probes): Return a VEC(bound_probe_s).
8655 (compare_probes): Update.
8656 (gen_ui_out_table_header_info): Change type of "probes"
8657 parameter. Update.
8658 (info_probes_for_ops): Update.
8659 (get_probe_address): New function.
8660 (probe_safe_evaluate_at_pc): Update.
8661 * probe.h (struct probe_ops) <get_probe_address>: New field.
8662 <set_semaphore, clear_semaphore>: Add objfile parameter.
8663 (struct probe) <objfile>: Remove field.
8664 <arch>: New field.
8665 <address>: Update comment.
8666 (struct bound_probe): New.
8667 (find_probe_by_pc): Return a bound_probe.
8668 (get_probe_address): Declare.
8669 * solib-svr4.c (struct probe_and_action) <address>: New field.
8670 (hash_probe_and_action, equal_probe_and_action): Update.
8671 (register_solib_event_probe): Add address parameter.
8672 (solib_event_probe_at): Update.
8673 (svr4_create_probe_breakpoints): Add objfile parameter. Use
8674 get_probe_address.
8675 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
8676 (stap_get_probe_address): New function.
8677 (stap_can_evaluate_probe_arguments, compute_probe_arg)
8678 (compile_probe_arg): Update.
8679 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
8680 address.
8681 (handle_stap_probe): Don't relocate the probe.
8682 (stap_relocate): Remove.
8683 (stap_gen_info_probes_table_values): Update.
8684 (stap_probe_ops): Remove stap_relocate.
8685 * symfile-debug.c (debug_sym_relocate_probe): Remove.
8686 (debug_sym_probe_fns): Update.
8687 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
8688 * symtab.c (init_sal): Use memset.
8689 * symtab.h (struct symtab_and_line) <objfile>: New field.
8690 * tracepoint.c (start_tracing, stop_tracing): Update.
8691
ff887920
TT
86922014-03-03 Tom Tromey <tromey@redhat.com>
8693
8694 * probe.h (parse_probes, find_probe_by_pc)
8695 (find_probes_in_objfile): Fix comments.
8696
f0407826
DE
86972014-03-02 Doug Evans <xdje42@gmail.com>
8698
8699 * infrun.c (handle_signal_stop): Replace test for
8700 TARGET_WAITKIND_STOPPED with an assert.
8701
35e6a711
DE
87022014-03-02 Doug Evans <xdje42@gmail.com>
8703
8704 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
8705
667f9d0b
DE
87062014-03-02 Doug Evans <xdje42@gmail.com>
8707
8708 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
8709
dc92ace0
MK
87102014-03-01 Mark Kettenis <kettenis@gnu.org>
8711
8712 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
8713
a900370f
MK
87142014-03-01 Mark Kettenis <kettenis@gnu.org>
8715
8716 * i386obsd-nat.c: Include "obsd-nat.h".
8717 (_initialize_i386obsd_nat): Call obsd_add_target instead of
8718 add_target.
8719 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8720
b72a7981
MK
87212014-03-01 Mark Kettenis <kettenis@gnu.org>
8722
8723 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
8724
96c70aba
MK
87252014-03-01 Mark Kettenis <kettenis@gnu.org>
8726
8727 * mips64obsd-nat.c: Include "obsd-nath".
8728 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
8729 add_target
8730 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8731
874a80af
MK
87322014-03-01 Mark Kettenis <kettenis@gnu.org>
8733
8fd408f1
MK
8734 * amd64obsd-nat.c: Include "obsd-nat,h.
8735 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
8736 add_target.
874a80af
MK
8737 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8738
9cf95373
SC
87392014-02-28 Siva Chandra Reddy <sivachandra@google.com>
8740
8741 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
8742 (find_overload_match): Update call to find_oload_champ.
8743 (find_oload_champ_namespace_loop): Likewise
8744
863e4da4
MK
87452014-02-28 Mark Kettenis <kettenis@gnu.org>
8746
025cac40
MK
8747 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
8748
1ed586ce
MK
8749 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
8750 * config/sparc/obsd64.mh: New file.
8751 * sparc64obsd-nat.c: New file.
8752
863e4da4
MK
8753 * obsd-nat.h: New file.
8754 * obsd-nat.c: New file.
8755 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
8756 (ALLDEPFILES): Add obsd-nat.c.
8757
89de4da4
TT
87582014-02-28 Tom Tromey <tromey@redhat.com>
8759
8760 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
8761 * cli-out.h (cli_ui_out_impl): Now const.
8762 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
8763 * ui-out.c (struct ui_out) <impl>: Now const.
8764 (default_ui_out_impl): Now const.
8765 (ui_out_new): Make 'impl' parameter const.
8766 * ui-out.h (ui_out_new): Update.
8767
c725e7b6
MK
87682014-02-27 Mark Kettenis <kettenis@gnu.org>
8769
8770 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
8771
670b46b3
MK
87722014-02-27 Mark Kettenis <kettenis@gnu.org>
8773
8774 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
8775
c91550fc
JK
87762014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
8777
8778 Additional PR 8882 fix.
8779 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
8780
2fa0369e
PA
87812014-02-27 Pedro Alves <palves@redhat.com>
8782
8783 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
8784 isn't set.
8785
d632a097
PA
87862014-02-27 Pedro Alves <palves@redhat.com>
8787
8788 PR 12702
8789 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
8790 * nat/linux-waitpid.c: Include string.h.
8791 (status_to_str): Moved here and made extern.
8792 * nat/linux-waitpid.h (status_to_str): New declaration.
8793
2ebd5a35
HZ
87942014-02-27 Hui Zhu <hui@codesourcery.com>
8795
8796 PR 12702
8797 * infrun.c (ptid_match): Move ...
8798 * common/ptid.c (ptid_match): ... here.
8799 * inferior.h (ptid_match): Move ...
8800 * common/ptid.h (ptid_match): ... here.
8801
3cdd631f
MK
88022014-02-27 Mark Kettenis <kettenis@gnu.org>
8803
8804 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
8805 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
8806 gdb_target_obs.
8807
bee30a64
MK
88082014-02-27 Mark Kettenis <kettenis@gnu.org>
8809
8810 * obsd-tdep.c (obsd_auxv_parse): New function.
8811 (obsd_init_abi): Set auxv_parse.
27a48a92
MK
8812
8813 * gdbarch.sh (auxv_parse): New.
8814 * gdbarch.h: Regenerated.
8815 * gdbarch.c: Regenerated.
8816 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
8817
7a5a839f
LC
88182014-02-26 Ludovic Courtès <ludo@gnu.org>
8819
8820 * guile/scm-value.c (gdbscm_history_append_x): New function.
8821 (value_functions): Add it.
8822
31aa7e4e
JB
88232014-02-27 Joel Brobecker <brobecker@adacore.com>
8824
8825 * dwarf2read.c (attr_value_as_address): New function.
8826 (dwarf2_find_base_address, read_call_site_scope): Use
8827 attr_value_as_address in place of DW_ADDR.
8828 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
8829 the low and high addresses. Slight rework of the handling
8830 of the high pc being a constant form, and limit it to
8831 DWARF verson 4 or higher.
8832 (dwarf2_record_block_ranges): Likewise.
8833 (read_partial_die): Likewise.
8834 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
8835
9b333ba3
TT
88362014-02-26 Tom Tromey <tromey@redhat.com>
8837
8838 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
8839
5f6cac40
TT
88402014-02-26 Tom Tromey <tromey@redhat.com>
8841
8842 * elfread.c (elf_read_minimal_symbols): Return early if
8843 minimal symbols have already been read. Add "ei" parameter.
8844 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
8845 * minsyms.c (prim_record_minimal_symbol_full): Update.
8846 * objfiles.h (struct objstats) <n_minsyms>: Move...
8847 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
8848 * symmisc.c (print_objfile_statistics): Update.
8849
2750ef27
TT
88502014-02-26 Tom Tromey <tromey@redhat.com>
8851
8852 * elfread.c (elf_read_minimal_symbols): New function, from
8853 elf_symfile_read.
8854 (elf_symfile_read): Call it.
8855
34643a32
TT
88562014-02-26 Tom Tromey <tromey@redhat.com>
8857
8858 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
8859 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
8860 (lookup_minimal_symbol_solib_trampoline)
8861 (lookup_minimal_symbol_by_pc_section_1)
8862 (lookup_minimal_symbol_and_objfile): Update.
8863 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
8864 Don't allocate a minimal symbol if minsyms have already been read.
8865 (build_minimal_symbol_hash_tables): Update.
8866 (install_minimal_symbols): Do nothing if minsyms already read.
8867 Use the per-BFD obstack.
8868 (terminate_minimal_symbol_table): Use the per-BFD obstack.
8869 * objfiles.c (allocate_objfile): Call
8870 terminate_minimal_symbol_table later.
8871 (have_minimal_symbols): Update.
8872 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
8873 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
8874 Move from struct objfile.
8875 <minsyms_read>: New field.
8876 (struct objfile) <msymbols, minimal_symbol_count,
8877 msymbol_hash, msymbol_demangled_hash>: Move.
8878 (ALL_OBJFILE_MSYMBOLS): Update.
8879 * symfile.c (read_symbols): Set minsyms_read.
8880 (reread_symbols): Update.
8881 * symmisc.c (dump_objfile, dump_msymbols): Update.
8882
2273f0ac
TT
88832014-02-26 Tom Tromey <tromey@redhat.com>
8884
8885 * minsyms.c (msymbols_sort): Remove.
8886 * minsyms.h (msymbols_sort): Remove.
8887 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
8888 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
8889 * elfread.c (elf_symtab_read): Don't add section offsets.
8890 * xcoffread.c (record_minimal_symbol): Don't add section offset
8891 to minimal symbol address.
8892 * somread.c (text_offset, data_offset): Remove.
8893 (som_symtab_read): Don't add section offsets to minimal symbol
8894 addresses.
8895 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
8896 Don't add section offsets to minimal symbols.
8897 * coffread.c (coff_symtab_read): Don't add section offsets
8898 to minimal symbol addresses.
8899 * machoread.c (macho_symtab_add_minsym): Don't add section offset
8900 to minimal symbol addresses.
8901 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
8902 section offset to minimal symbol addresses.
8903 * mdebugread.c (parse_partial_symbols): Don't add section
8904 offset to minimal symbol addresses.
8905 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
8906 offset to minimal symbol addresses.
8907
77e371c0
TT
89082014-02-26 Tom Tromey <tromey@redhat.com>
8909
8910 * ada-lang.c (ada_main_name): Update.
8911 (ada_add_standard_exceptions): Update.
8912 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
8913 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8914 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
8915 * auxv.c (ld_so_xfer_auxv): Update.
8916 * avr-tdep.c (avr_scan_prologue): Update.
8917 * ax-gdb.c (gen_var_ref): Update.
8918 * blockframe.c (get_pc_function_start)
8919 (find_pc_partial_function_gnu_ifunc): Update.
8920 * breakpoint.c (create_overlay_event_breakpoint)
8921 (create_longjmp_master_breakpoint)
8922 (create_std_terminate_master_breakpoint)
8923 (create_exception_master_breakpoint): Update.
8924 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8925 * c-valprint.c (c_val_print): Update.
8926 * coff-pe-read.c (add_pe_forwarded_sym): Update.
8927 * common/agent.c (agent_look_up_symbols): Update.
8928 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
8929 * dwarf2loc.c (call_site_to_target_addr): Update.
8930 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
8931 * elfread.c (elf_gnu_ifunc_record_cache)
8932 (elf_gnu_ifunc_resolve_by_got): Update.
8933 * findvar.c (default_read_var_value): Update.
8934 * frame.c (inside_main_func): Update.
8935 * frv-tdep.c (frv_frame_this_id): Update.
8936 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8937 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
8938 Update.
8939 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
8940 (hppa_hpux_find_dummy_bpaddr): Update.
8941 * hppa-tdep.c (hppa_symbol_address): Update.
8942 * infcmd.c (until_next_command): Update.
8943 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
8944 Update.
8945 * linespec.c (minsym_found, add_minsym): Update.
8946 * linux-nat.c (get_signo): Update.
8947 * linux-thread-db.c (inferior_has_bug): Update.
8948 * m32c-tdep.c (m32c_return_value)
8949 (m32c_m16c_address_to_pointer): Update.
8950 * m32r-tdep.c (m32r_frame_this_id): Update.
8951 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8952 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8953 * maint.c (maintenance_translate_address): Update.
8954 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
8955 (frob_address): New function.
8956 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
8957 frob_address. Rename parameter to "pc_in".
8958 (compare_minimal_symbols, compact_minimal_symbols): Use raw
8959 addresses.
8960 (find_solib_trampoline_target, minimal_symbol_upper_bound):
8961 Update.
8962 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8963 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
8964 * objc-lang.c (find_objc_msgsend): Update.
8965 * objfiles.c (objfile_relocate1): Update.
8966 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8967 * p-valprint.c (pascal_val_print): Update.
8968 * parse.c (write_exp_msymbol): Update.
8969 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
8970 (ppc_elfv2_skip_entrypoint): Update.
8971 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8972 * printcmd.c (build_address_symbolic, msym_info)
8973 (address_info): Update.
8974 * proc-service.c (ps_pglobal_lookup): Update.
8975 * psymtab.c (find_pc_sect_psymtab_closer)
8976 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
8977 Change msymbol parameter to bound_minimal_symbol.
8978 * ravenscar-thread.c (get_running_thread_id): Update.
8979 * remote.c (remote_check_symbols): Update.
8980 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
8981 address.
8982 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8983 * solib-dsbt.c (lm_base): Update.
8984 * solib-frv.c (lm_base, main_got): Update.
8985 * solib-irix.c (locate_base): Update.
8986 * solib-som.c (som_solib_create_inferior_hook)
8987 (link_map_start): Update.
8988 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
8989 * solib-svr4.c (elf_locate_base, enable_break): Update.
8990 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
8991 (flush_ea_cache): Update.
8992 * stabsread.c (define_symbol, scan_file_globals): Update.
8993 * stack.c (find_frame_funname): Update.
8994 * symfile-debug.c (debug_qf_expand_symtabs_matching)
8995 (debug_qf_find_pc_sect_symtab): Update.
8996 * symfile.c (simple_read_overlay_table)
8997 (simple_overlay_update): Update.
8998 * symfile.h (struct quick_symbol_functions)
8999 <find_pc_sect_symtab>: Change type of msymbol to
9000 bound_minimal_symbol.
9001 * symmisc.c (dump_msymbols): Update.
9002 * symtab.c (find_pc_sect_symtab_via_partial)
9003 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
9004 (search_symbols, print_msymbol_info): Update.
9005 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
9006 (MSYMBOL_VALUE_ADDRESS): Redefine.
9007 (BMSYMBOL_VALUE_ADDRESS): New macro.
9008 * tracepoint.c (scope_info): Update.
9009 * tui/tui-disasm.c (tui_find_disassembly_address)
9010 (tui_get_begin_asm_address): Update.
9011 * valops.c (find_function_in_inferior): Update.
9012 * value.c (value_static_field, value_fn_field): Update.
9013
3b7344d5
TT
90142014-02-26 Tom Tromey <tromey@redhat.com>
9015
9016 * ada-lang.c (ada_update_initial_language): Update.
9017 (ada_main_name, ada_has_this_exception_support): Update.
9018 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
9019 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9020 * arm-tdep.c (arm_skip_stub): Update.
9021 * auxv.c (ld_so_xfer_auxv): Update.
9022 * avr-tdep.c (avr_scan_prologue): Update.
9023 * ax-gdb.c (gen_var_ref): Update.
9024 * breakpoint.c (struct breakpoint_objfile_data)
9025 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
9026 type to bound_minimal_symbol.
9027 (create_overlay_event_breakpoint)
9028 (create_longjmp_master_breakpoint)
9029 (create_std_terminate_master_breakpoint)
9030 (create_exception_master_breakpoint): Update.
9031 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9032 * c-exp.y (classify_name): Update.
9033 * coffread.c (coff_symfile_read): Update.
9034 * common/agent.c (agent_look_up_symbols): Update.
9035 * d-lang.c (d_main_name): Update.
9036 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
9037 * dec-thread.c (enable_dec_thread): Update.
9038 * dwarf2loc.c (call_site_to_target_addr): Update.
9039 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
9040 * eval.c (evaluate_subexp_standard): Update.
9041 * findvar.c (struct minsym_lookup_data) <result>: Change type
9042 to bound_minimal_symbol.
9043 <objfile>: Remove.
9044 (minsym_lookup_iterator_cb, default_read_var_value): Update.
9045 * frame.c (inside_main_func): Update.
9046 * frv-tdep.c (frv_frame_this_id): Update.
9047 * gcore.c (call_target_sbrk): Update.
9048 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9049 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
9050 Update.
9051 * go-lang.c (go_main_name): Update.
9052 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
9053 (hppa_hpux_find_import_stub_for_addr): Update.
9054 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
9055 Update. Change return type.
9056 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
9057 type.
9058 * jit.c (jit_breakpoint_re_set_internal): Update.
9059 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
9060 Update.
9061 * linux-nat.c (get_signo): Update.
9062 * linux-thread-db.c (inferior_has_bug): Update
9063 * m32c-tdep.c (m32c_return_value)
9064 (m32c_m16c_address_to_pointer): Update.
9065 * m32r-tdep.c (m32r_frame_this_id): Update.
9066 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9067 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9068 * minsyms.c (lookup_minimal_symbol_internal): Rename to
9069 lookup_minimal_symbol. Change return type.
9070 (lookup_minimal_symbol): Remove.
9071 (lookup_bound_minimal_symbol): Update.
9072 (lookup_minimal_symbol_text): Change return type.
9073 (lookup_minimal_symbol_solib_trampoline): Change return type.
9074 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
9075 (lookup_minimal_symbol_solib_trampoline): Change return type.
9076 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9077 * objc-lang.c (lookup_objc_class, lookup_child_selector)
9078 (value_nsstring, find_imps): Update.
9079 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9080 * p-lang.c (pascal_main_name): Update.
9081 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
9082 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9083 * proc-service.c (ps_pglobal_lookup): Update.
9084 * ravenscar-thread.c (get_running_thread_msymbol): Change
9085 return type.
9086 (has_ravenscar_runtime, get_running_thread_id): Update.
9087 * remote.c (remote_check_symbols): Update.
9088 * sol-thread.c (ps_pglobal_lookup): Update.
9089 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9090 * solib-dsbt.c (lm_base): Update.
9091 * solib-frv.c (lm_base, frv_relocate_section_addresses):
9092 Update.
9093 * solib-irix.c (locate_base): Update.
9094 * solib-som.c (som_solib_create_inferior_hook)
9095 (som_solib_desire_dynamic_linker_symbols, link_map_start):
9096 Update.
9097 * solib-spu.c (spu_enable_break): Update.
9098 * solib-svr4.c (elf_locate_base, enable_break): Update.
9099 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
9100 (flush_ea_cache): Update.
9101 * stabsread.c (define_symbol): Update.
9102 * symfile.c (simple_read_overlay_table): Update.
9103 * symtab.c (find_pc_sect_line): Update.
9104 * tracepoint.c (scope_info): Update.
9105 * tui-disasm.c (tui_get_begin_asm_address): Update.
9106 * value.c (value_static_field): Update.
9107
40c1a007
TT
91082014-02-26 Tom Tromey <tromey@redhat.com>
9109
9110 * minsyms.c (prim_record_minimal_symbol_full): Use
9111 SET_MSYMBOL_VALUE_ADDRESS.
9112 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
9113 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
9114 SET_MSYMBOL_VALUE_ADDRESS.
9115 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
9116 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
9117
efd66ac6
TT
91182014-02-26 Tom Tromey <tromey@redhat.com>
9119
9120 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
9121 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
9122 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
9123 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
9124 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
9125 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
9126 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
9127 * ada-lang.c (ada_main_name): Update.
9128 (ada_lookup_simple_minsym): Update.
9129 (ada_make_symbol_completion_list): Update.
9130 (ada_add_standard_exceptions): Update.
9131 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
9132 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9133 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
9134 * arm-tdep.c (skip_prologue_function): Update.
9135 (arm_skip_stack_protector, arm_skip_stub): Update.
9136 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
9137 (arm_wince_skip_main_prologue): Update.
9138 * auxv.c (ld_so_xfer_auxv): Update.
9139 * avr-tdep.c (avr_scan_prologue): Update.
9140 * ax-gdb.c (gen_var_ref): Update.
9141 * block.c (call_site_for_pc): Update.
9142 * blockframe.c (get_pc_function_start): Update.
9143 (find_pc_partial_function_gnu_ifunc): Update.
9144 * breakpoint.c (create_overlay_event_breakpoint): Update.
9145 (create_longjmp_master_breakpoint): Update.
9146 (create_std_terminate_master_breakpoint): Update.
9147 (create_exception_master_breakpoint): Update.
9148 (resolve_sal_pc): Update.
9149 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9150 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
9151 Update.
9152 * c-valprint.c (c_val_print): Update.
9153 * coff-pe-read.c (add_pe_forwarded_sym): Update.
9154 * coffread.c (coff_symfile_read): Update.
9155 * common/agent.c (agent_look_up_symbols): Update.
9156 * dbxread.c (find_stab_function_addr): Update.
9157 (end_psymtab): Update.
9158 * dwarf2loc.c (call_site_to_target_addr): Update.
9159 (func_verify_no_selftailcall): Update.
9160 (tailcall_dump): Update.
9161 (call_site_find_chain_1): Update.
9162 (dwarf_expr_reg_to_entry_parameter): Update.
9163 * elfread.c (elf_gnu_ifunc_record_cache): Update.
9164 (elf_gnu_ifunc_resolve_by_got): Update.
9165 * f-valprint.c (info_common_command): Update.
9166 * findvar.c (read_var_value): Update.
9167 * frame.c (get_prev_frame_1): Update.
9168 (inside_main_func): Update.
9169 * frv-tdep.c (frv_skip_main_prologue): Update.
9170 (frv_frame_this_id): Update.
9171 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9172 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
9173 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
9174 (gnuv3_skip_trampoline): Update.
9175 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
9176 (hppa64_hpux_in_solib_call_trampoline): Update.
9177 (hppa_hpux_skip_trampoline_code): Update.
9178 (hppa64_hpux_search_dummy_call_sequence): Update.
9179 (hppa_hpux_find_import_stub_for_addr): Update.
9180 (hppa_hpux_find_dummy_bpaddr): Update.
9181 * hppa-tdep.c (hppa_symbol_address)
9182 (hppa_lookup_stub_minimal_symbol): Update.
9183 * i386-tdep.c (i386_skip_main_prologue): Update.
9184 (i386_pe_skip_trampoline_code): Update.
9185 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
9186 * infcall.c (get_function_name): Update.
9187 * infcmd.c (until_next_command): Update.
9188 * jit.c (jit_breakpoint_re_set_internal): Update.
9189 (jit_inferior_init): Update.
9190 * linespec.c (minsym_found): Update.
9191 (add_minsym): Update.
9192 * linux-fork.c (info_checkpoints_command): Update.
9193 * linux-nat.c (get_signo): Update.
9194 * linux-thread-db.c (inferior_has_bug): Update.
9195 * m32c-tdep.c (m32c_return_value): Update.
9196 (m32c_m16c_address_to_pointer): Update.
9197 (m32c_m16c_pointer_to_address): Update.
9198 * m32r-tdep.c (m32r_frame_this_id): Update.
9199 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9200 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9201 * maint.c (maintenance_translate_address): Update.
9202 * minsyms.c (add_minsym_to_hash_table): Update.
9203 (add_minsym_to_demangled_hash_table): Update.
9204 (msymbol_objfile): Update.
9205 (lookup_minimal_symbol): Update.
9206 (iterate_over_minimal_symbols): Update.
9207 (lookup_minimal_symbol_text): Update.
9208 (lookup_minimal_symbol_by_pc_name): Update.
9209 (lookup_minimal_symbol_solib_trampoline): Update.
9210 (lookup_minimal_symbol_by_pc_section_1): Update.
9211 (lookup_minimal_symbol_and_objfile): Update.
9212 (prim_record_minimal_symbol_full): Update.
9213 (compare_minimal_symbols): Update.
9214 (compact_minimal_symbols): Update.
9215 (build_minimal_symbol_hash_tables): Update.
9216 (install_minimal_symbols): Update.
9217 (terminate_minimal_symbol_table): Update.
9218 (find_solib_trampoline_target): Update.
9219 (minimal_symbol_upper_bound): Update.
9220 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9221 * mips-tdep.c (mips_stub_frame_sniffer): Update.
9222 (mips_skip_pic_trampoline_code): Update.
9223 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
9224 * objc-lang.c (selectors_info): Update.
9225 (classes_info): Update.
9226 (find_methods): Update.
9227 (find_imps): Update.
9228 (find_objc_msgsend): Update.
9229 * objfiles.c (objfile_relocate1): Update.
9230 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
9231 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9232 * p-valprint.c (pascal_val_print): Update.
9233 * parse.c (write_exp_msymbol): Update.
9234 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
9235 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
9236 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9237 * printcmd.c (build_address_symbolic): Update.
9238 (sym_info): Update.
9239 (address_info): Update.
9240 * proc-service.c (ps_pglobal_lookup): Update.
9241 * psymtab.c (find_pc_sect_psymtab_closer): Update.
9242 (find_pc_sect_psymtab): Update.
9243 * python/py-framefilter.c (py_print_frame): Update.
9244 * ravenscar-thread.c (get_running_thread_id): Update.
9245 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
9246 Update.
9247 * remote.c (remote_check_symbols): Update.
9248 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
9249 (rs6000_skip_trampoline_code): Update.
9250 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
9251 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9252 * solib-dsbt.c (lm_base): Update.
9253 * solib-frv.c (lm_base): Update.
9254 (main_got): Update.
9255 * solib-irix.c (locate_base): Update.
9256 * solib-som.c (som_solib_create_inferior_hook): Update.
9257 (som_solib_desire_dynamic_linker_symbols): Update.
9258 (link_map_start): Update.
9259 * solib-spu.c (spu_enable_break): Update.
9260 (ocl_enable_break): Update.
9261 * solib-svr4.c (elf_locate_base): Update.
9262 (enable_break): Update.
9263 * spu-tdep.c (spu_get_overlay_table): Update.
9264 (spu_catch_start): Update.
9265 (flush_ea_cache): Update.
9266 * stabsread.c (define_symbol): Update.
9267 (scan_file_globals): Update.
9268 * stack.c (find_frame_funname): Update.
9269 (frame_info): Update.
9270 * symfile.c (simple_read_overlay_table): Update.
9271 (simple_overlay_update): Update.
9272 * symmisc.c (dump_msymbols): Update.
9273 * symtab.c (fixup_section): Update.
9274 (find_pc_sect_line): Update.
9275 (skip_prologue_sal): Update.
9276 (search_symbols): Update.
9277 (print_msymbol_info): Update.
9278 (rbreak_command): Update.
9279 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
9280 (completion_list_objc_symbol): Update.
9281 (default_make_symbol_completion_list_break_on): Update.
9282 * tracepoint.c (scope_info): Update.
9283 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
9284 (tui_get_begin_asm_address): Update.
9285 * valops.c (find_function_in_inferior): Update.
9286 * value.c (value_static_field): Update.
9287 (value_fn_field): Update.
9288
50e65b17
TT
92892014-02-26 Tom Tromey <tromey@redhat.com>
9290
9291 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
9292 bound minimal symbols. Move code that knows about minsym
9293 table layout...
9294 * minsyms.c (minimal_symbol_upper_bound): ... here. New
9295 function.
9296 * minsyms.h (minimal_symbol_upper_bound): Declare.
9297 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
9298 minimal_symbol_upper_bound.
9299
1b588015
JB
93002014-02-27 Joel Brobecker <brobecker@adacore.com>
9301
9302 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
9303 Use the type's name if its basic type does not have a tag.
9304
dbb9c2b1
JB
93052014-02-27 Joel Brobecker <brobecker@adacore.com>
9306
9307 * dwarf2read.c (read_subrange_type): Add comment.
9308
55426c9d
JB
93092014-02-27 Joel Brobecker <brobecker@adacore.com>
9310
9311 * dwarf2read.c (update_enumeration_type_from_children): New
9312 function, mostly extracted from process_structure_scope.
9313 (read_enumeration_type): Call update_enumeration_type_from_children.
9314 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
9315 and flag_flag_enum fields.
9316
f2fce0ca
PA
93172014-02-26 Pedro Alves <palves@redhat.com>
9318
9319 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
9320 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
9321 to_xfer_partial method.
9322
7a44e40e
PA
93232014-02-26 Pedro Alves <palves@redhat.com>
9324
9325 * target.c (complete_target_initialization): Don't install
9326 default_xfer_partial as to_xfer_partial hook.
9327 (nomemory): Delete.
9328 (update_current_target): Don't INHERIT nor de_fault
9329 deprecated_xfer_memory. Delete de_fault macro.
9330 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
9331 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
9332 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
9333 field.
9334
bd265cd0
PA
93352014-02-26 Pedro Alves <palves@redhat.com>
9336
9337 * go32-nat.c (my_write_child): New function.
9338 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
9339 (go32_xfer_partial): New function.
9340 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
9341 Instead install a to_xfer_partial hook.
9342
9d46c4e5
PA
93432014-02-26 Pedro Alves <palves@redhat.com>
9344
9345 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
9346 to_xfer_partial helper. Rewrite.
9347 (procfs_xfer_partial): New function.
9348 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
9349 Install a to_xfer_partial hook.
9350
a1583b1f
PA
93512014-02-26 Pedro Alves <palves@redhat.com>
9352
9353 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
9354 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
9355 (m32r_xfer_partial): New function.
9356 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
9357 Install a to_xfer_partial hook.
9358
6df1b29f
PA
93592014-02-26 Pedro Alves <palves@redhat.com>
9360
9361 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
9362 helper.
9363 (mips_xfer_partial): New function.
9364 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
9365 hook. Install a to_xfer_partial hook.
9366
dc53a7ad
JB
93672014-02-26 Joel Brobecker <brobecker@adacore.com>
9368
9369 * gdbtypes.h (create_array_type_with_stride): Add declaration.
9370 * gdbtypes.c (create_array_type_with_stride): New function,
9371 renaming create_array_type, but with an added parameter
9372 called "bit_stride".
9373 (create_array_type): Re-implement using
9374 create_array_type_with_stride.
9375 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
9376 and DW_AT_bit_stride attributes.
9377
12ab52e9
PA
93782014-02-26 Pedro Alves <palves@redhat.com>
9379
9380 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
9381 task-specific breakpoints.
9382
d16461ae
PA
93832014-02-25 Pedro Alves <palves@redhat.com>
9384
9385 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
9386 handling of object == TARGET_OBJECT_UNWIND_TABLE.
9387
a8b16220
SS
93882014-02-25 Stan Shebs <stan@codesourcery.com>
9389
9390 * defs.h: Annotate comments for Doxygen.
9391
b9e795ee
TT
93922014-02-25 Tom Tromey <tromey@redhat.com>
9393
9394 * target.h (target_ignore): Don't declare.
9395 * target.c (target_ignore): Remove.
9396
849c862e
JK
93972014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
9398
9399 PR gdb/16626
9400 * auto-load.c (auto_load_objfile_script_1): Change filename to
9401 debugfile.
9402
475109d8
JB
94032014-02-25 Joel Brobecker <brobecker@adacore.com>
9404
9405 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
9406 documentation. Adjust prototype to match the target_ops
9407 to_xfer_partial method. Adjust implementation accordingly.
9408
e186c3bd
HZ
94092014-02-25 Hui Zhu <hui@codesourcery.com>
9410
9411 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
9412 to_traceframe_info.
9413
6d451942
KB
94142014-02-25 Kevin Buettner <kevinb@redhat.com>
9415
041ab8b4 9416 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
6d451942
KB
9417 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
9418 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
9419 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
9420 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
9421 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
9422 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
9423 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
9424 New constants.
9425 (rl78_register_type): Use a data pointer type for SP and
9426 new pseudo registers mentioned above. Use a 16 bit integer
9427 type for all other register pairs.
9428 (rl78_register_name, rl78_g10_register_name): Update for
9429 new pseudo registers.
9430 (rl78_pseudo_register_read): Likewise.
9431 (rl78_pseudo_register_write): Likewise.
9432 (rl78_dwarf_reg_to_regnum): Return register numbers representing
9433 to the newly added pseudo registers.
9434
eddf0bae
DE
94352014-02-24 Doug Evans <dje@google.com>
9436
9437 * value.c (record_latest_value): Fix comment.
9438 * printcmd.c (print_command_1): Remove code to handle -1 return from
9439 record_latest_value.
9440
e96027e0
PA
94412014-02-24 Pedro Alves <palves@redhat.com>
9442
9443 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
9444 deprecated_xfer_memory hook.
9445 (procfs_xfer_partial): Call procfs_xfer_memory instead
9446 of the deprecated_xfer_memory target hook.
9447 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
9448 helper.
9449
0837c976
YZ
94502014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
9451
9452 * windows-nat.c (windows_xfer_shared_libraries): Return
9453 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
9454 requested object is TARGET_OBJECT_LIBRARIES.
9455
bc113b4e
YQ
94562014-02-24 Yao Qi <yao@codesourcery.com>
9457
9458 * target.h (enum target_xfer_status)
9459 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
9460 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
9461 explicitly. New.
9462 * corefile.c (memory_error_message): User updated.
9463 * exec.c (section_table_read_available_memory): Likewise.
9464 * record-btrace.c (record_btrace_xfer_partial): Likewise.
9465 * target.c (target_xfer_status_to_string): Likewise.
9466 (raw_memory_xfer_partial): Likewise.
9467 (memory_xfer_partial_1, target_xfer_partial): Likewise.
9468 * valops.c (read_value_memory): Likewise.
9469 * exec.h: Update comments.
9470
01cb8804
YQ
94712014-02-24 Yao Qi <yao@codesourcery.com>
9472
9473 * target.c (target_xfer_status_to_string): Rename argument err
9474 to status.
9475 * target.h (target_xfer_status_to_string): Update declaration.
9476 Replace target_xfer_error_to_string with
9477 target_xfer_status_to_string in comment.
9478
93063aa6
YQ
94792014-02-24 Yao Qi <yao@codesourcery.com>
9480
9481 * mips-linux-nat.c (super_close): Update its type.
9482 (mips_linux_close): Pass 'self' to super_close.
9483
5c328c05
YQ
94842014-02-24 Yao Qi <yao@codesourcery.com>
9485
9486 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
9487 * corefile.c (read_memory): Adjusted.
9488 * target.c (target_write_with_progress): Adjusted.
9489
f73023dd
YQ
94902014-02-23 Yao Qi <yao@codesourcery.com>
9491
9492 Revert two patches:
9493
9494 2013-10-25 Yao Qi <yao@codesourcery.com>
9495
9496 * remote.c (remote_traceframe_info): Return early if
9497 traceframe is not selected.
9498
9499 2013-07-19 Yao Qi <yao@codesourcery.com>
9500
9501 * target.c (update_current_target): Change the default action
9502 of 'to_traceframe_info' from tcomplain to return_zero.
9503 * target.h (struct target_ops) <to_traceframe_info>: Add more
9504 comments.
9505
5a2eb0ef
YQ
95062014-02-23 Yao Qi <yao@codesourcery.com>
9507
9508 * valops.c (read_value_memory): Rewrite it. Call
9509 target_xfer_partial in a loop.
9510 * exec.h (section_table_available_memory): Remove declaration.
9511 Move comments to ...
9512 * exec.c (section_table_available_memory): ... here. Make it
9513 static.
9514
1ee79381
YQ
95152014-02-23 Yao Qi <yao@codesourcery.com>
9516
9517 * exec.c (section_table_read_available_memory): New function.
9518 * exec.h (section_table_read_available_memory): Declare.
9519 * ctf.c (ctf_xfer_partial): Call
9520 section_table_read_available_memory.
9521 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9522
1ca49d37
YQ
95232014-02-23 Yao Qi <yao@codesourcery.com>
9524
9525 * ctf.c (ctf_xfer_partial): Move code to ...
9526 * exec.c (exec_read_partial_read_only): ... it. New function.
9527 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9528 * tracefile.c: Include "exec.h".
9529 * exec.h (exec_read_partial_read_only): Declare.
9530
a283690e
YQ
95312014-02-23 Yao Qi <yao@codesourcery.com>
9532
9533 * tracefile-tfile.c (tfile_has_all_memory): Remove.
9534 (tfile_has_memory): Remove.
9535 (init_tfile_ops): Don't set fields to_has_all_memory and
9536 to_has_memory of tfile_ops.
9537 * tracefile.c (tracefile_has_all_memory): New function.
9538 (tracefile_has_memory): New function.
9539 (init_tracefile_ops): Initialize fields to_has_all_memory and
9540 to_has_memory of 'ops'.
9541
12e03cd0
YQ
95422014-02-23 Yao Qi <yao@codesourcery.com>
9543
9544 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
9545 (ctf_thread_alive, ctf_get_trace_status): Remove.
9546 (init_ctf_ops): Don't set some fields of ctf_ops. Call
9547 init_tracefile_ops.
9548 * tracefile-tfile.c (tfile_get_trace_status): Remove.
9549 (tfile_has_stack, tfile_has_registers): Remove.
9550 (tfile_thread_alive): Remove.
9551 (init_tfile_ops): Don't set some fields of tfile_ops. Call
9552 init_tracefile_ops.
9553 * tracefile.c (tracefile_has_stack): New function.
9554 (tracefile_has_registers): New function.
9555 (tracefile_thread_alive): New function.
9556 (tracefile_get_trace_status): New function.
9557 (init_tracefile_ops): New function.
9558 * tracefile.h (init_tracefile_ops): Declare.
9559
11395323
YQ
95602014-02-23 Yao Qi <yao@codesourcery.com>
9561
9562 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
9563 (O_LARGEFILE): Likewise.
9564 (tfile_ops): Likewise.
9565 (TRACE_HEADER_SIZE): Likewise.
9566 (trace_fd, trace_frames_offset, cur_offset): Likewise.
9567 (cur_data_size): Likewise.
9568 (tfile_read, tfile_open, tfile_interp_line): Likewise.
9569 (tfile_close, tfile_files_info): Likewise.
9570 (tfile_get_trace_status): Likewise.
9571 (tfile_get_tracepoint_status): Likewise.
9572 (tfile_get_traceframe_address): Likewise.
9573 (tfile_trace_find, match_blocktype): Likewise.
9574 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
9575 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
9576 (tfile_get_trace_state_variable_value): Likewise.
9577 (tfile_has_all_memory, tfile_has_memory): Likewise.
9578 (tfile_has_stack, tfile_has_registers): Likewise.
9579 (tfile_thread_alive, build_traceframe_info): Likewise.
9580 (tfile_traceframe_info, init_tfile_ops): Likewise.
9581 (_initialize_tracepoint): Don't call init_tfile_ops
9582 and add_target_with_completer.
9583 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
9584 exec.h, completer.h and filenames.h.
9585 (_initialize_tracefile_tfile): New function.
9586
7951c4eb
YQ
95872014-02-23 Yao Qi <yao@codesourcery.com>
9588
9589 * Makefile.in (REMOTE_OBS): Append tracefile.o and
9590 tracefile-tfile.o.
9591 (HFILES_NO_SRCDIR): Add tracefile.h.
9592 * ctf.c: Include "tracefile.h".
9593 * tracefile.h: New file.
9594 * tracefile.c: New file
9595 * tracefile-tfile.c: New file.
9596 * tracepoint.c: Include "tracefile.h".
9597 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
9598 (stop_reason_names): Add const.
9599 (trace_file_writer_xfree): Move it to tracefile.c.
9600 (trace_save, trace_save_command, trace_save_tfile): Likewise.
9601 (trace_save_ctf): Likewise.
9602 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
9603 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
9604 (tfile_write_header, tfile_write_regblock_type): Likewise.
9605 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
9606 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
9607 (tfile_write_raw_data, tfile_end): Likewise.
9608 (tfile_trace_file_writer_new): Likewise.
9609 (free_uploaded_tp): Make it extern.
9610 (free_uploaded_tsv): Make it extern.
9611 (_initialize_tracepoint): Move code to register command 'tsave'
9612 to tracefile.c.
9613 * tracepoint.h (stop_reason_names): Declare.
9614 (struct trace_frame_write_ops): Move it to tracefile.h.
9615 (struct trace_file_write_ops): Likewise.
9616 (struct trace_file_writer): Likewise.
9617 (free_uploaded_tsvs, free_uploaded_tps): Declare.
9618
184cd072
JK
96192014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9620
9621 PR gdb/16594
9622 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
9623 process name.
9624 (get_cores_used_by_process): New parameter num_cores, use it.
9625 (linux_xfer_osdata_processes): Pass num_cores to it.
9626 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
9627 process name.
9628
c63528fc
AK
96292014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
9630
9631 * target.c (memory_xfer_partial): Fix length arg in call to
9632 breakpoint_xfer_memory.
9633
d7b30f67
SDJ
96342014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9635
9636 PR tdep/16397
9637 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
9638 number comes after the + or - signs. Adjust length of register
9639 name to be extracted.
9640
8838afaf
TT
96412014-02-20 Tom Tromey <tromey@redhat.com>
9642
9643 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
9644 (ada_varobj_ops): Mark "extern".
9645
05227d14
TT
96462014-02-20 Tom Tromey <tromey@redhat.com>
9647
9648 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
9649
1254eefc
DE
96502014-02-20 Doug Evans <xdje42@gmail.com>
9651
9652 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
9653 All callers updated.
9654 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
9655 All callers updated.
9656 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
9657 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
9658
adde2bff
DE
96592014-02-20 lin zuojian <manjian2006@gmail.com>
9660 Joel Brobecker <brobecker@adacore.com>
9661 Doug Evans <xdje42@gmail.com>
9662
9663 PR symtab/16581
9664 * dwarf2read.c (struct die_info): New member in_process.
9665 (reset_die_in_process): New function.
9666 (process_die): Set it at the start, reset when returning.
9667 (inherit_abstract_dies): Only call process_die if origin_child_die
9668 not already being processed.
9669
3be75f87
JB
96702014-02-20 Joel Brobecker <brobecker@adacore.com>
9671
9672 * windows-nat.c (handle_unload_dll): Add function documentation.
9673 (do_initial_windows_stuff): Add comment explaining why we wait
9674 until after inferior initialization has finished before
9675 processing all DLLs.
9676
47f7ffdb
JB
96772014-02-20 Joel Brobecker <brobecker@adacore.com>
9678
9679 * windows-nat.c (get_module_name): Delete.
9680 (windows_get_exec_module_filename): New function, mostly
9681 inspired from get_module_name.
9682 (windows_pid_to_exec_file): Replace call to get_module_name
9683 by call to windows_get_exec_module_filename.
9684
1cd9feab
JB
96852014-02-20 Joel Brobecker <brobecker@adacore.com>
9686
9687 * windows-nat.c (handle_load_dll): Rewrite this function's
9688 introductory comment. Remove code using get_module_name
9689 to get the DLL's name.
9690
ea39ad35
JB
96912014-02-20 Joel Brobecker <brobecker@adacore.com>
9692
9693 * windows-nat.c (get_windows_debug_event): Ignore
9694 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
9695 if windows_initialization_done == 0.
9696 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
9697 Adjust implementation to always load all DLLs.
9698 (do_initial_windows_stuff): Replace call to
9699 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
9700
95060284
JB
97012014-02-20 Joel Brobecker <brobecker@adacore.com>
9702
9703 * windows-nat.c (_initialize_windows_nat): Deprecate the
9704 "dll-symbols" command. Turn the "add-shared-symbol-files"
9705 and "assf" aliases into commands, and deprecate them as well.
9706 * NEWS: Add entry explaining that "dll-symbols" and its two
9707 aliases are now deprecated.
9708
8d4fdb12
JB
97092014-02-20 Joel Brobecker <brobecker@adacore.com>
9710
9711 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
9712 new-line in debug string. Remove trailing spaces.
9713
1b281443
SS
97142014-02-19 Stan Shebs <stan@codesourcery.com>
9715
9716 * darwin-nat.c (darwin_xfer_partial): Fix return type.
9717
f7bd0f78
SC
97182014-02-19 Siva Chandra Reddy <sivachandra@google.com>
9719
9720 * NEWS: Add entry for the new feature
9721 * python/py-value.c (valpy_binop): Call value_x_binop for struct
9722 and class values.
9723
399ebc3d
SS
97242014-02-19 Stan Shebs <stan@codesourcery.com>
9725
9726 * MAINTAINERS: List Yao Qi as nios2 maintainer.
9727
c658158d
PA
97282014-02-19 Pedro Alves <palves@redhat.com>
9729
9730 * common/ptid.h (struct ptid): Mention that process_stratum
9731 targets should prefer ptid.lwp.
9732
ba348170
PA
97332014-02-19 Pedro Alves <palves@redhat.com>
9734
9735 * remote.c (remote_thread_alive, write_ptid, read_ptid)
9736 (read_ptid, remote_newthread_step, remote_threads_extra_info)
9737 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
9738 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
9739 store remote thread ids rather than ptid.tid.
9740 (_initialize_remote): Adjust.
9741
ac01945b
TT
97422014-02-19 Tom Tromey <tromey@redhat.com>
9743
9744 * target.c (target_get_unwinder): Rewrite.
9745 (target_get_tailcall_unwinder): Rewrite.
9746 * record-btrace.c (record_btrace_to_get_unwinder): New function.
9747 (record_btrace_to_get_tailcall_unwinder): New function.
9748 (init_record_btrace_ops): Update.
9749 * target.h (struct target_ops) <to_get_unwinder,
9750 to_get_tailcall_unwinder>: Now function pointers. Use
9751 TARGET_DEFAULT_RETURN.
9752
8476dc92
TT
97532014-02-19 Tom Tromey <tromey@redhat.com>
9754
9755 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
9756 argument.
9757 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
9758
c0eca49f
TT
97592014-02-19 Tom Tromey <tromey@redhat.com>
9760
9761 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
9762 directly.
9763 * target-delegates.c: Rebuild.
9764 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
9765 TARGET_DEFAULT_FUNC.
9766 * target.c (default_target_decr_pc_after_break): Rename from
9767 forward_target_decr_pc_after_break. Simplify.
9768 (target_decr_pc_after_break): Rely on delegation.
9769
596b6b39
TT
97702014-02-19 Tom Tromey <tromey@redhat.com>
9771
9772 * target.c (update_current_target): Do not INHERIT to_doc or
9773 to_magic. Do not de_fault to_open or to_close.
9774
b427c1bc
TT
97752014-02-19 Tom Tromey <tromey@redhat.com>
9776
9777 * gcore.h (objfile_find_memory_regions): Declare.
9778 * gcore.c (objfile_find_memory_regions): No longer static. Add
9779 "self" argument.
9780 (_initialize_gcore): Don't call exec_set_find_memory_regions.
9781 * exec.c: Include gcore.h.
9782 (exec_set_find_memory_regions): Remove.
9783 (exec_find_memory_regions): Remove.
9784 (exec_do_find_memory_regions): Remove.
9785 (init_exec_ops): Update.
9786 * defs.h (exec_set_find_memory_regions): Remove.
9787
9b144037
TT
97882014-02-19 Tom Tromey <tromey@redhat.com>
9789
9790 * target-delegates.c: Rebuild.
9791 * target.h (struct target_ops) <to_extra_thread_info,
9792 to_thread_name, to_pid_to_exec_file, to_get_section_table,
9793 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
9794 not 0, in TARGET_DEFAULT_RETURN.
9795
555bbdeb
TT
97962014-02-19 Tom Tromey <tromey@redhat.com>
9797
9798 * target.c (complete_target_initialization): Remove casts. Use
9799 return_zero_has_execution.
9800 (return_zero): Add "ignore" argument.
9801 (return_zero_has_execution): New function.
9802 (init_dummy_target): Remove casts. Use
9803 return_zero_has_execution.
9804
be4ddd36
TT
98052014-02-19 Tom Tromey <tromey@redhat.com>
9806
9807 * target.c (update_current_target): Update comments. Do not
9808 INHERIT to_stratum.
9809
2117c711
TT
98102014-02-19 Tom Tromey <tromey@redhat.com>
9811
9812 * arm-linux-nat.c (arm_linux_read_description): Delegate when
9813 needed.
9814 * corelow.c (core_read_description): Delegate when needed.
9815 * remote.c (remote_read_description): Delegate when needed.
9816 * target-delegates.c: Rebuild.
9817 * target.c (target_read_description): Rewrite.
9818 * target.h (struct target_ops) <to_read_description>: Update
9819 comment. Use TARGET_DEFAULT_RETURN.
9820
e88ef65c
TT
98212014-02-19 Tom Tromey <tromey@redhat.com>
9822
9823 * target-delegates.c: Rebuild.
9824 * target.c (update_current_target): Don't inherit or default
9825 to_can_run.
9826 (find_default_run_target): Check against delegate_can_run.
9827 * target.h (struct target_ops) <to_can_run>: Use
9828 TARGET_DEFAULT_RETURN.
9829
86a0854a
TT
98302014-02-19 Tom Tromey <tromey@redhat.com>
9831
9832 * target-delegates.c: Rebuild.
9833 * target.c (target_disconnect): Unconditionally delegate.
9834 * target.h (struct target_ops) <to_disconnect>: Use
9835 TARGET_DEFAULT_NORETURN.
9836
ee97f592
TT
98372014-02-19 Tom Tromey <tromey@redhat.com>
9838
9839 * record.c (record_stop): Unconditionally delegate.
9840 * target-delegates.c: Rebuild.
9841 * target.c (target_stop_recording): Unconditionally delegate.
9842 * target.h (struct target_ops) <to_stop_recording>: Use
9843 TARGET_DEFAULT_IGNORE.
9844
6dc7fcf4
TT
98452014-02-19 Tom Tromey <tromey@redhat.com>
9846
9847 * target-delegates.c: Rebuild.
9848 * target.c (target_enable_btrace): Unconditionally delegate.
9849 * target.h (struct target_ops) <to_enable_btrace>: Use
9850 TARGET_DEFAULT_NORETURN.
9851
eb5b20d4
TT
98522014-02-19 Tom Tromey <tromey@redhat.com>
9853
9854 * target-delegates.c: Rebuild.
9855 * target.c (target_read_btrace): Unconditionally delegate.
9856 * target.h (struct target_ops) <to_read_btrace>: Use
9857 TARGET_DEFAULT_NORETURN.
9858
9ace480d
TT
98592014-02-19 Tom Tromey <tromey@redhat.com>
9860
9861 * target-delegates.c: Rebuild.
9862 * target.c (target_teardown_btrace): Unconditionally delegate.
9863 * target.h (struct target_ops) <to_teardown_btrace>: Use
9864 TARGET_DEFAULT_NORETURN.
9865
8dc292d3
TT
98662014-02-19 Tom Tromey <tromey@redhat.com>
9867
9868 * target-delegates.c: Rebuild.
9869 * target.c (target_disable_btrace): Unconditionally delegate.
9870 * target.h (struct target_ops) <to_disable_btrace>: Use
9871 TARGET_DEFAULT_NORETURN.
9872
58a5184e
TT
98732014-02-19 Tom Tromey <tromey@redhat.com>
9874
9875 * target-delegates.c: Rebuild.
9876 * target.c (default_search_memory): New function.
9877 (simple_search_memory): Update comment.
9878 (target_search_memory): Unconditionally delegate.
9879 * target.h (struct target_ops) <to_search_memory>: Use
9880 TARGET_DEFAULT_FUNC.
9881
8de71aab
TT
98822014-02-19 Tom Tromey <tromey@redhat.com>
9883
9884 * auxv.c (default_auxv_parse): No longer static.
9885 (target_auxv_parse): Unconditionally delegate.
9886 * auxv.h (default_auxv_parse): Declare.
9887 * target-delegates.c: Rebuild.
9888 * target.c: Include auxv.h.
9889 * target.h (struct target_ops) <to_auxv_parse>: Use
9890 TARGET_DEFAULT_FUNC.
9891
6b2c5a57
TT
98922014-02-19 Tom Tromey <tromey@redhat.com>
9893
9894 * target-delegates.c: Rebuild.
9895 * target.c (target_memory_map): Unconditionally delegate.
9896 * target.h (struct target_ops) <to_memory_map>: Use
9897 TARGET_DEFAULT_RETURN.
9898
cbffc065
TT
98992014-02-19 Tom Tromey <tromey@redhat.com>
9900
9901 * target-delegates.c: Rebuild.
9902 * target.c (target_thread_alive): Unconditionally delegate.
9903 * target.h (struct target_ops) <to_thread_alive>: Use
9904 TARGET_DEFAULT_RETURN.
9905
f09e2107
TT
99062014-02-19 Tom Tromey <tromey@redhat.com>
9907
9908 * target-delegates.c: Rebuild.
9909 * target.c (target_save_record): Unconditionally delegate.
9910 * target.h (struct target_ops) <to_save_record>: Use
9911 TARGET_DEFAULT_NORETURN.
9912
07366925
TT
99132014-02-19 Tom Tromey <tromey@redhat.com>
9914
9915 * target-delegates.c: Rebuild.
9916 * target.c (target_delete_record): Unconditionally delegate.
9917 * target.h (struct target_ops) <to_delete_record>: Use
9918 TARGET_DEFAULT_NORETURN.
9919
dd2e9d25
TT
99202014-02-19 Tom Tromey <tromey@redhat.com>
9921
9922 * target-delegates.c: Rebuild.
9923 * target.c (target_record_is_replaying): Unconditionally
9924 delegate.
9925 * target.h (struct target_ops) <to_record_is_replaying>: Use
9926 TARGET_DEFAULT_RETURN.
9927
671e76cc
TT
99282014-02-19 Tom Tromey <tromey@redhat.com>
9929
9930 * target-delegates.c: Rebuild.
9931 * target.c (target_goto_record_begin): Unconditionally delegate.
9932 * target.h (struct target_ops) <to_goto_record_begin>: Use
9933 TARGET_DEFAULT_NORETURN.
9934
e9179bb3
TT
99352014-02-19 Tom Tromey <tromey@redhat.com>
9936
9937 * target-delegates.c: Rebuild.
9938 * target.c (target_goto_record_end): Unconditionally delegate.
9939 * target.h (struct target_ops) <to_goto_record_end>: Use
9940 TARGET_DEFAULT_NORETURN.
9941
05969c84
TT
99422014-02-19 Tom Tromey <tromey@redhat.com>
9943
9944 * target-delegates.c: Rebuild.
9945 * target.c (target_goto_record): Unconditionally delegate.
9946 * target.h (struct target_ops) <to_goto_record>: Use
9947 TARGET_DEFAULT_NORETURN.
9948
3679abfa
TT
99492014-02-19 Tom Tromey <tromey@redhat.com>
9950
9951 * target-delegates.c: Rebuild.
9952 * target.c (target_insn_history): Unconditionally delegate.
9953 * target.h (struct target_ops) <to_insn_history>: Use
9954 TARGET_DEFAULT_NORETURN.
9955
8444ab58
TT
99562014-02-19 Tom Tromey <tromey@redhat.com>
9957
9958 * target-delegates.c: Rebuild.
9959 * target.c (target_insn_history_from): Unconditionally delegate.
9960 * target.h (struct target_ops) <to_insn_history_from>: Use
9961 TARGET_DEFAULT_NORETURN.
9962
c29302cc
TT
99632014-02-19 Tom Tromey <tromey@redhat.com>
9964
9965 * target-delegates.c: Rebuild.
9966 * target.c (target_insn_history_range): Unconditionally delegate.
9967 * target.h (struct target_ops) <to_insn_history_range>: Use
9968 TARGET_DEFAULT_NORETURN.
9969
170049d4
TT
99702014-02-19 Tom Tromey <tromey@redhat.com>
9971
9972 * target-delegates.c: Rebuild.
9973 * target.c (target_call_history): Unconditionally delegate.
9974 * target.h (struct target_ops) <to_call_history>: Use
9975 TARGET_DEFAULT_NORETURN.
9976
16fc27d6
TT
99772014-02-19 Tom Tromey <tromey@redhat.com>
9978
9979 * target-delegates.c: Rebuild.
9980 * target.c (target_call_history_from): Unconditionally delegate.
9981 * target.h (struct target_ops) <to_call_history_from>: Use
9982 TARGET_DEFAULT_NORETURN.
9983
115d9817
TT
99842014-02-19 Tom Tromey <tromey@redhat.com>
9985
9986 * target-delegates.c: Rebuild.
9987 * target.c (target_call_history_range): Unconditionally delegate.
9988 * target.h (struct target_ops) <to_call_history_range>: Use
9989 TARGET_DEFAULT_NORETURN.
9990
eb276a6b
TT
99912014-02-19 Tom Tromey <tromey@redhat.com>
9992
9993 * target-delegates.c: Rebuild.
9994 * target.c (target_verify_memory): Unconditionally delegate.
9995 * target.h (struct target_ops) <to_verify_memory>: Use
9996 TARGET_DEFAULT_NORETURN.
9997
9e538d0d
TT
99982014-02-19 Tom Tromey <tromey@redhat.com>
9999
10000 * target-delegates.c: Rebuild.
10001 * target.c (target_core_of_thread): Unconditionally delegate.
10002 * target.h (struct target_ops) <to_core_of_thread>: Use
10003 TARGET_DEFAULT_RETURN.
10004
f6fb2925
TT
100052014-02-19 Tom Tromey <tromey@redhat.com>
10006
10007 * target-delegates.c: Rebuild.
10008 * target.c (target_flash_done): Unconditionally delegate.
10009 * target.h (struct target_ops) <to_flash_done>: Use
10010 TARGET_DEFAULT_NORETURN.
10011
e8a6c6ac
TT
100122014-02-19 Tom Tromey <tromey@redhat.com>
10013
10014 * target-delegates.c: Rebuild.
10015 * target.c (target_flash_erase): Unconditionally delegate.
10016 * target.h (struct target_ops) <to_flash_erase>: Use
10017 TARGET_DEFAULT_NORETURN.
10018
7e35c012
TT
100192014-02-19 Tom Tromey <tromey@redhat.com>
10020
10021 * target-delegates.c: Rebuild.
10022 * target.c (target_get_section_table): Unconditionally delegate.
10023 * target.h (struct target_ops) <to_get_section_table>: Use
10024 TARGET_DEFAULT_RETURN.
10025
770234d3
TT
100262014-02-19 Tom Tromey <tromey@redhat.com>
10027
10028 * target-delegates.c: Rebuild.
10029 * target.c (target_pid_to_str): Unconditionally delegate.
10030 (init_dummy_target): Don't initialize to_pid_to_str.
10031 (default_pid_to_str): Rename from dummy_pid_to_str.
10032 * target.h (struct target_ops) <to_pid_to_str>: Use
10033 TARGET_DEFAULT_FUNC.
10034
09b0dc2b
TT
100352014-02-19 Tom Tromey <tromey@redhat.com>
10036
10037 * target-delegates.c: Rebuild.
10038 * target.c (target_find_new_threads): Unconditionally delegate.
10039 * target.h (struct target_ops) <to_find_new_threads>: Use
10040 TARGET_DEFAULT_RETURN.
10041
7d4f8efa
TT
100422014-02-19 Tom Tromey <tromey@redhat.com>
10043
10044 * target-delegates.c: Rebuild.
10045 * target.c (target_program_signals): Unconditionally delegate.
10046 * target.h (struct target_ops) <to_program_signals>: Use
10047 TARGET_DEFAULT_IGNORE.
10048
035cad7f
TT
100492014-02-19 Tom Tromey <tromey@redhat.com>
10050
10051 * target-delegates.c: Rebuild.
10052 * target.c (target_pass_signals): Unconditionally delegate.
10053 * target.h (struct target_ops) <to_pass_signals>: Use
10054 TARGET_DEFAULT_IGNORE.
10055
8d657035
TT
100562014-02-19 Tom Tromey <tromey@redhat.com>
10057
10058 * target-delegates.c: Rebuild.
10059 * target.c (default_mourn_inferior): New function.
10060 (target_mourn_inferior): Unconditionally delegate.
10061 * target.h (struct target_ops) <to_mourn_inferior>: Use
10062 TARGET_DEFAULT_FUNC.
10063
098dba18
TT
100642014-02-19 Tom Tromey <tromey@redhat.com>
10065
10066 * target-delegates.c: Rebuild.
10067 * target.c (default_follow_fork): New function.
10068 (target_follow_fork): Unconditionally delegate.
10069 * target.h (struct target_ops) <to_follow_fork>: Use
10070 TARGET_DEFAULT_FUNC.
10071
423a4807
TT
100722014-02-19 Tom Tromey <tromey@redhat.com>
10073
10074 * target-delegates.c: Rebuild.
10075 * target.c (target_kill): Unconditionally delegate.
10076 * target.h (struct target_ops) <to_kill>: Use
10077 TARGET_DEFAULT_NORETURN.
10078
6c7e5e5c
TT
100792014-02-19 Tom Tromey <tromey@redhat.com>
10080
10081 * target-delegates.c: Rebuild.
10082 * target.c (target_masked_watch_num_registers): Unconditionally
10083 delegate.
10084 * target.h (struct target_ops) <to_masked_watch_num_registers>:
10085 Use TARGET_DEFAULT_RETURN.
10086
8b1c364c
TT
100872014-02-19 Tom Tromey <tromey@redhat.com>
10088
10089 * target-delegates.c: Rebuild.
10090 * target.c (target_remove_mask_watchpoint): Unconditionally
10091 delegate.
10092 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
10093 TARGET_DEFAULT_RETURN.
10094
cd4ae029
TT
100952014-02-19 Tom Tromey <tromey@redhat.com>
10096
10097 * target-delegates.c: Rebuild.
10098 * target.c (target_insert_mask_watchpoint): Unconditionally
10099 delegate.
10100 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
10101 TARGET_DEFAULT_RETURN.
10102
a134316b
TT
101032014-02-19 Tom Tromey <tromey@redhat.com>
10104
10105 * target-delegates.c: Rebuild.
10106 * target.c (target_ranged_break_num_registers): Unconditionally
10107 delegate.
10108 * target.h (struct target_ops) <to_ranged_break_num_registers>:
10109 Use TARGET_DEFAULT_RETURN.
10110
ad5989bd
TT
101112014-02-19 Tom Tromey <tromey@redhat.com>
10112
10113 * target-delegates.c: Rebuild.
10114 * target.c (target_fetch_registers): Unconditionally delegate.
10115 * target.h (struct target_ops) <to_fetch_registers>: Use
10116 TARGET_DEFAULT_NORETURN.
10117
46ee7e8d
TT
101182014-02-19 Tom Tromey <tromey@redhat.com>
10119
10120 * target-delegates.c: Rebuild.
10121 * target.c (update_current_target): Don't inherit or default
10122 to_stop.
10123 * target.h (struct target_ops) <to_stop>: Use
10124 TARGET_DEFAULT_IGNORE.
10125
843f59ed
TT
101262014-02-19 Tom Tromey <tromey@redhat.com>
10127
10128 * target-delegates.c: Rebuild.
10129 * target.c (update_current_target): Don't inherit or default
10130 to_can_run_breakpoint_commands.
10131 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
10132 Use TARGET_DEFAULT_RETURN.
10133
ccfde2a0
TT
101342014-02-19 Tom Tromey <tromey@redhat.com>
10135
10136 * target-delegates.c: Rebuild.
10137 * target.c (update_current_target): Don't inherit or default
10138 to_supports_evaluation_of_breakpoint_conditions.
10139 * target.h (struct target_ops)
10140 <to_supports_evaluation_of_breakpoint_conditions>: Use
10141 TARGET_DEFAULT_RETURN.
10142
0de91722
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_augmented_libraries_svr4_read.
10148 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
10149 Use TARGET_DEFAULT_RETURN.
10150
9a7d8b48
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_can_use_agent.
10156 * target.h (struct target_ops) <to_can_use_agent>: Use
10157 TARGET_DEFAULT_RETURN.
10158
d9db5b21
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_use_agent.
10164 * target.h (struct target_ops) <to_use_agent>: Use
10165 TARGET_DEFAULT_NORETURN.
10166
92155eeb
TT
101672014-02-19 Tom Tromey <tromey@redhat.com>
10168
10169 * target-delegates.c: Rebuild.
10170 * target.c (update_current_target): Don't inherit or default
10171 to_traceframe_info.
10172 (return_null): Remove.
10173 * target.h (struct target_ops) <to_traceframe_info>: Use
10174 TARGET_DEFAULT_RETURN.
10175
d6522a22
TT
101762014-02-19 Tom Tromey <tromey@redhat.com>
10177
10178 * target-delegates.c: Rebuild.
10179 * target.c (update_current_target): Don't inherit or default
10180 to_static_tracepoint_markers_by_strid.
10181 * target.h (struct target_ops)
10182 <to_static_tracepoint_markers_by_strid>: Use
10183 TARGET_DEFAULT_NORETURN.
10184
4c3e4425
TT
101852014-02-19 Tom Tromey <tromey@redhat.com>
10186
10187 * target-delegates.c: Rebuild.
10188 * target.c (update_current_target): Don't inherit or default
10189 to_static_tracepoint_marker_at.
10190 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
10191 Use TARGET_DEFAULT_RETURN.
10192
dcd6917f
TT
101932014-02-19 Tom Tromey <tromey@redhat.com>
10194
10195 * target-delegates.c: Rebuild.
10196 * target.c (update_current_target): Don't inherit or default
10197 to_set_permissions.
10198 * target.h (struct target_ops) <to_set_permissions>: Use
10199 TARGET_DEFAULT_IGNORE.
10200
22bcceee
TT
102012014-02-19 Tom Tromey <tromey@redhat.com>
10202
10203 * target-delegates.c: Rebuild.
10204 * target.c (update_current_target): Don't inherit or default
10205 to_get_tib_address.
10206 * target.h (struct target_ops) <to_get_tib_address>: Use
10207 TARGET_DEFAULT_NORETURN.
10208
8586ccaa
TT
102092014-02-19 Tom Tromey <tromey@redhat.com>
10210
10211 * target-delegates.c: Rebuild.
10212 * target.c (update_current_target): Don't inherit or default
10213 to_set_trace_notes.
10214 * target.h (struct target_ops) <to_set_trace_notes>: Use
10215 TARGET_DEFAULT_RETURN.
10216
91df8d1d
TT
102172014-02-19 Tom Tromey <tromey@redhat.com>
10218
10219 * target-delegates.c: Rebuild.
10220 * target.c (update_current_target): Don't initialize
10221 to_set_trace_buffer_size.
10222 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
10223 TARGET_DEFAULT_IGNORE.
10224
8d526939
TT
102252014-02-19 Tom Tromey <tromey@redhat.com>
10226
10227 * target-delegates.c: Rebuild.
10228 * target.c (update_current_target): Don't inherit or default
10229 to_set_circular_trace_buffer.
10230 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
10231 TARGET_DEFAULT_IGNORE.
10232
0bcfeddf
TT
102332014-02-19 Tom Tromey <tromey@redhat.com>
10234
10235 * target-delegates.c: Rebuild.
10236 * target.c (update_current_target): Don't inherit or default
10237 to_set_disconnected_tracing.
10238 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
10239 TARGET_DEFAULT_IGNORE.
10240
9249843f
TT
102412014-02-19 Tom Tromey <tromey@redhat.com>
10242
10243 * target-delegates.c: Rebuild.
10244 * target.c (update_current_target): Don't inherit or default
10245 to_get_min_fast_tracepoint_insn_len.
10246 (return_minus_one): Remove.
10247 * target.h (struct target_ops)
10248 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
10249
ace92e7d
TT
102502014-02-19 Tom Tromey <tromey@redhat.com>
10251
10252 * target-delegates.c: Rebuild.
10253 * target.c (update_current_target): Don't inherit or default
10254 to_get_raw_trace_data.
10255 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
10256 TARGET_DEFAULT_NORETURN.
10257
08120467
TT
102582014-02-19 Tom Tromey <tromey@redhat.com>
10259
10260 * target-delegates.c: Rebuild.
10261 * target.c (update_current_target): Don't inherit or default
10262 to_upload_trace_state_variables.
10263 * target.h (struct target_ops) <to_upload_trace_state_variables>:
10264 Use TARGET_DEFAULT_RETURN.
10265
1e949b00
TT
102662014-02-19 Tom Tromey <tromey@redhat.com>
10267
10268 * target-delegates.c: Rebuild.
10269 * target.c (update_current_target): Don't inherit or default
10270 to_upload_tracepoints.
10271 * target.h (struct target_ops) <to_upload_tracepoints>: Use
10272 TARGET_DEFAULT_RETURN.
10273
a2e6c147
TT
102742014-02-19 Tom Tromey <tromey@redhat.com>
10275
10276 * target-delegates.c: Rebuild.
10277 * target.c (update_current_target): Don't inherit or default
10278 to_save_trace_data.
10279 * target.h (struct target_ops) <to_save_trace_data>: Use
10280 TARGET_DEFAULT_NORETURN.
10281
959bcd0b
TT
102822014-02-19 Tom Tromey <tromey@redhat.com>
10283
10284 * target-delegates.c: Rebuild.
10285 * target.c (update_current_target): Don't inherit or default
10286 to_get_trace_state_variable_value.
10287 * target.h (struct target_ops)
10288 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
10289
afc94e66
TT
102902014-02-19 Tom Tromey <tromey@redhat.com>
10291
10292 * target-delegates.c: Rebuild.
10293 * target.c (update_current_target): Don't inherit or default
10294 to_trace_find.
10295 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
10296
e51c07ea
TT
102972014-02-19 Tom Tromey <tromey@redhat.com>
10298
10299 * target-delegates.c: Rebuild.
10300 * target.c (update_current_target): Don't inherit or default
10301 to_trace_stop.
10302 * target.h (struct target_ops) <to_trace_stop>: Use
10303 TARGET_DEFAULT_NORETURN.
10304
6fea14cd
TT
103052014-02-19 Tom Tromey <tromey@redhat.com>
10306
10307 * target-delegates.c: Rebuild.
10308 * target.c (update_current_target): Don't inherit or default
10309 to_get_tracepoint_status.
10310 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
10311 TARGET_DEFAULT_NORETURN.
10312
4072d4ff
TT
103132014-02-19 Tom Tromey <tromey@redhat.com>
10314
10315 * target-delegates.c: Rebuild.
10316 * target.c (update_current_target): Don't inherit or default
10317 to_get_trace_status.
10318 * target.h (struct target_ops) <to_get_trace_status>: Use
10319 TARGET_DEFAULT_RETURN.
10320
25da2e80
TT
103212014-02-19 Tom Tromey <tromey@redhat.com>
10322
10323 * target-delegates.c: Rebuild.
10324 * target.c (update_current_target): Don't inherit or default
10325 to_trace_start.
10326 * target.h (struct target_ops) <to_trace_start>: Use
10327 TARGET_DEFAULT_NORETURN.
10328
86dd181d
TT
103292014-02-19 Tom Tromey <tromey@redhat.com>
10330
10331 * target-delegates.c: Rebuild.
10332 * target.c (update_current_target): Don't inherit or default
10333 to_trace_set_readonly_regions.
10334 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
10335 Use TARGET_DEFAULT_NORETURN.
10336
05c41993
TT
103372014-02-19 Tom Tromey <tromey@redhat.com>
10338
10339 * target-delegates.c: Rebuild.
10340 * target.c (update_current_target): Don't inherit or default
10341 to_disable_tracepoint.
10342 * target.h (struct target_ops) <to_disable_tracepoint>: Use
10343 TARGET_DEFAULT_NORETURN.
10344
151f70f1
TT
103452014-02-19 Tom Tromey <tromey@redhat.com>
10346
10347 * target-delegates.c: Rebuild.
10348 * target.c (update_current_target): Don't inherit or default
10349 to_enable_tracepoint.
10350 * target.h (struct target_ops) <to_enable_tracepoint>: Use
10351 TARGET_DEFAULT_NORETURN.
10352
94eb98b9
TT
103532014-02-19 Tom Tromey <tromey@redhat.com>
10354
10355 * target-delegates.c: Rebuild.
10356 * target.c (update_current_target): Don't inherit or default
10357 to_download_trace_state_variable.
10358 * target.h (struct target_ops) <to_download_trace_state_variable>:
10359 Use TARGET_DEFAULT_NORETURN.
10360
719acc4a
TT
103612014-02-19 Tom Tromey <tromey@redhat.com>
10362
10363 * target-delegates.c: Rebuild.
10364 * target.c (update_current_target): Don't inherit or default
10365 to_can_download_tracepoint.
10366 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
10367 TARGET_DEFAULT_RETURN.
10368
9a980a22
TT
103692014-02-19 Tom Tromey <tromey@redhat.com>
10370
10371 * target-delegates.c: Rebuild.
10372 * target.c (update_current_target): Don't inherit or default
10373 to_download_tracepoint.
10374 * target.h (struct target_ops) <to_download_tracepoint>: Use
10375 TARGET_DEFAULT_NORETURN.
10376
5536135b
TT
103772014-02-19 Tom Tromey <tromey@redhat.com>
10378
10379 * target-delegates.c: Rebuild.
10380 * target.c (update_current_target): Don't inherit or default
10381 to_trace_init.
10382 * target.h (struct target_ops) <to_trace_init>: Use
10383 TARGET_DEFAULT_RETURN.
10384
9409d39e
TT
103852014-02-19 Tom Tromey <tromey@redhat.com>
10386
10387 * target-delegates.c: Rebuild.
10388 * target.c (update_current_target): Don't inherit or default
10389 to_supports_string_tracing.
10390 * target.h (struct target_ops) <to_supports_string_tracing>: Use
10391 TARGET_DEFAULT_RETURN.
10392
aab1b22d
TT
103932014-02-19 Tom Tromey <tromey@redhat.com>
10394
10395 * target-delegates.c: Rebuild.
10396 * target.c (update_current_target): Don't inherit or default
10397 to_supports_enable_disable_tracepoint.
10398 * target.h (struct target_ops)
10399 <to_supports_enable_disable_tracepoint>: Use
10400 TARGET_DEFAULT_RETURN.
10401
a7304748
TT
104022014-02-19 Tom Tromey <tromey@redhat.com>
10403
10404 * target-delegates.c: Rebuild.
10405 * target.c (update_current_target): Don't inherit or default
10406 to_supports_multi_process.
10407 * target.h (struct target_ops) <to_supports_multi_process>: Use
10408 TARGET_DEFAULT_RETURN.
10409
4229b31d
TT
104102014-02-19 Tom Tromey <tromey@redhat.com>
10411
10412 * target-delegates.c: Rebuild.
10413 * target.c (update_current_target): Don't inherit or default
10414 to_get_ada_task_ptid.
10415 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
10416 TARGET_DEFAULT_FUNC.
10417
43eba180
TT
104182014-02-19 Tom Tromey <tromey@redhat.com>
10419
10420 * target-delegates.c: Rebuild.
10421 * target.c (update_current_target): Don't inherit or default
10422 to_thread_architecture.
10423 * target.h (struct target_ops) <to_thread_architecture>: Use
10424 TARGET_DEFAULT_FUNC.
10425
fe31bf5b
TT
104262014-02-19 Tom Tromey <tromey@redhat.com>
10427
10428 * target-delegates.c: Rebuild.
10429 * target.c (update_current_target): Don't inherit or default
10430 to_execution_direction.
10431 * target.h (struct target_ops) <to_execution_direction>: Use
10432 TARGET_DEFAULT_FUNC.
10433
53e1cfc7
TT
104342014-02-19 Tom Tromey <tromey@redhat.com>
10435
10436 * target-delegates.c: Rebuild.
10437 * target.c (update_current_target): Don't inherit or default
10438 to_can_execute_reverse.
10439 * target.h (struct target_ops) <to_can_execute_reverse>: Use
10440 TARGET_DEFAULT_RETURN.
10441 (target_can_execute_reverse): Unconditionally delegate.
10442
9bb9d61d
TT
104432014-02-19 Tom Tromey <tromey@redhat.com>
10444
10445 * target-delegates.c: Rebuild.
10446 * target.c (update_current_target): Don't inherit or default
10447 to_goto_bookmark.
10448 (dummy_goto_bookmark): Remove.
10449 (init_dummy_target): Don't inherit or default to_goto_bookmark.
10450 * target.h (struct target_ops) <to_goto_bookmark>: Use
10451 TARGET_DEFAULT_NORETURN.
10452
3dbafbbb
TT
104532014-02-19 Tom Tromey <tromey@redhat.com>
10454
10455 * target-delegates.c: Rebuild.
10456 * target.c (update_current_target): Don't inherit or default
10457 to_get_bookmark.
10458 (dummy_get_bookmark): Remove.
10459 (init_dummy_target): Don't inherit or default to_get_bookmark.
10460 * target.h (struct target_ops) <to_get_bookmark>: Use
10461 TARGET_DEFAULT_NORETURN
10462
16f796b1
TT
104632014-02-19 Tom Tromey <tromey@redhat.com>
10464
10465 * target-delegates.c: Rebuild.
10466 * target.c (update_current_target): Don't inherit or default
10467 to_make_corefile_notes.
10468 (init_dummy_target): Don't initialize to_make_corefile_notes.
10469 * target.h (struct target_ops) <to_make_corefile_notes>: Use
10470 TARGET_DEFAULT_FUNC.
10471
0b5a2719
TT
104722014-02-19 Tom Tromey <tromey@redhat.com>
10473
10474 * target-delegates.c: Rebuild.
10475 * target.c (update_current_target): Don't inherit or default
10476 to_find_memory_regions.
10477 (init_dummy_target): Don't initialize to_find_memory_regions.
10478 * target.h (struct target_ops) <to_find_memory_regions>: Use
10479 TARGET_DEFAULT_FUNC.
10480
d9cb0195
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_log_command.
10486 * target.h (struct target_ops) <to_log_command>: Use
10487 TARGET_DEFAULT_IGNORE.
10488 (target_log_command): Unconditionally delegate.
10489
830ca330
TT
104902014-02-19 Tom Tromey <tromey@redhat.com>
10491
10492 * target-delegates.c: Rebuild.
10493 * target.c (update_current_target): Don't inherit or default
10494 to_pid_to_exec_file.
10495 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
10496 TARGET_DEFAULT_RETURN.
10497
825828fc
TT
104982014-02-19 Tom Tromey <tromey@redhat.com>
10499
10500 * target-delegates.c: Rebuild.
10501 * target.c (update_current_target): Don't inherit or default
10502 to_thread_name.
10503 (target_thread_name): Unconditionally delegate.
10504 * target.h (struct target_ops) <to_thread_name>: Use
10505 TARGET_DEFAULT_RETURN.
10506
4a7e6dda
TT
105072014-02-19 Tom Tromey <tromey@redhat.com>
10508
10509 * target-delegates.c: Rebuild.
10510 * target.c (update_current_target): Don't inherit or default
10511 to_extra_thread_info.
10512 * target.h (struct target_ops) <to_extra_thread_info>: Use
10513 TARGET_DEFAULT_RETURN.
10514
0db88c1d
TT
105152014-02-19 Tom Tromey <tromey@redhat.com>
10516
10517 * target-delegates.c: Rebuild.
10518 * target.c (update_current_target): Don't inherit or default
10519 to_has_exited.
10520 * target.h (struct target_ops) <to_has_exited>: Use
10521 TARGET_DEFAULT_RETURN..
10522
6a9fa051
TT
105232014-02-19 Tom Tromey <tromey@redhat.com>
10524
10525 * target-delegates.c: Rebuild.
10526 * target.c (update_current_target): Don't inherit or default
10527 to_set_syscall_catchpoint.
10528 (return_one): Remove.
10529 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
10530 TARGET_DEFAULT_RETURN.
10531
62f64d7a
TT
105322014-02-19 Tom Tromey <tromey@redhat.com>
10533
10534 * target-delegates.c: Rebuild.
10535 * target.c (update_current_target): Don't inherit or default
10536 to_insert_exec_catchpoint.
10537 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
10538 TARGET_DEFAULT_RETURN.
10539
cda0f38c
TT
105402014-01-08 Tom Tromey <tromey@redhat.com>
10541
10542 * target-delegates.c: Rebuild.
10543 * target.c (update_current_target): Don't inherit or default
10544 to_insert_exec_catchpoint.
10545 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
10546 TARGET_DEFAULT_RETURN.
10547
95c3375e
TT
105482014-02-19 Tom Tromey <tromey@redhat.com>
10549
10550 * target-delegates.c: Rebuild.
10551 * target.c (update_current_target): Don't inherit or default
10552 to_remove_vfork_catchpoint.
10553 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
10554 TARGET_DEFAULT_RETURN.
10555
7e18a8dc
TT
105562014-02-19 Tom Tromey <tromey@redhat.com>
10557
10558 * target-delegates.c: Rebuild.
10559 * target.c (update_current_target): Don't inherit or default
10560 to_insert_vfork_catchpoint.
10561 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
10562 TARGET_DEFAULT_RETURN.
10563
e1a21fb7
TT
105642014-02-19 Tom Tromey <tromey@redhat.com>
10565
10566 * target-delegates.c: Rebuild.
10567 * target.c (update_current_target): Don't inherit or default
10568 to_remove_fork_catchpoint.
10569 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
10570 TARGET_DEFAULT_RETURN.
10571
5958ebeb
TT
105722014-02-19 Tom Tromey <tromey@redhat.com>
10573
10574 * target-delegates.c: Rebuild.
10575 * target.c (update_current_target): Don't inherit or default
10576 to_insert_fork_catchpoint.
10577 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
10578 TARGET_DEFAULT_RETURN.
10579
340ba4bf
TT
105802014-02-19 Tom Tromey <tromey@redhat.com>
10581
10582 * target-delegates.c: Rebuild.
10583 * target.c (update_current_target): Don't inherit or default
10584 to_post_startup_inferior.
10585 * target.h (struct target_ops) <to_post_startup_inferior>: Use
10586 TARGET_DEFAULT_IGNORE.
10587
7634da87
TT
105882014-02-19 Tom Tromey <tromey@redhat.com>
10589
10590 * target-delegates.c: Rebuild.
10591 * target.c (update_current_target): Don't inherit or default
10592 to_load.
10593 * target.h (struct target_ops) <to_load>: Use
10594 TARGET_DEFAULT_NORETURN.
10595
e19e919f
TT
105962014-02-19 Tom Tromey <tromey@redhat.com>
10597
10598 * target-delegates.c: Rebuild.
10599 * target.c (update_current_target): Don't inherit or default
10600 to_terminal_info.
10601 * target.h (struct target_ops) <to_terminal_info>: Use
10602 TARGET_DEFAULT_FUNC.
10603
c6ea8f79
TT
106042014-02-19 Tom Tromey <tromey@redhat.com>
10605
10606 * target-delegates.c: Rebuild.
10607 * target.c (update_current_target): Don't inherit or default
10608 to_terminal_save_ours.
10609 * target.h (struct target_ops) <to_terminal_save_ours>: Use
10610 TARGET_DEFAULT_IGNORE.
10611
e4a733f1
TT
106122014-02-19 Tom Tromey <tromey@redhat.com>
10613
10614 * target-delegates.c: Rebuild.
10615 * target.c (update_current_target): Don't inherit or default
10616 to_terminal_ours.
10617 * target.h (struct target_ops) <to_terminal_ours>: Use
10618 TARGET_DEFAULT_IGNORE.
10619
74fcbef9
TT
106202014-02-19 Tom Tromey <tromey@redhat.com>
10621
10622 * target-delegates.c: Rebuild.
10623 * target.c (update_current_target): Don't inherit or default
10624 to_terminal_ours_for_output.
10625 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
10626 TARGET_DEFAULT_IGNORE.
10627
ddeaacc9
TT
106282014-02-19 Tom Tromey <tromey@redhat.com>
10629
10630 * target-delegates.c: Rebuild.
10631 * target.c (update_current_target): Don't inherit or default
10632 to_terminal_inferior.
10633 * target.h (struct target_ops) <to_terminal_inferior>: Use
10634 TARGET_DEFAULT_IGNORE.
10635
0343661d
TT
106362014-02-19 Tom Tromey <tromey@redhat.com>
10637
10638 * target-delegates.c: Rebuild.
10639 * target.c (update_current_target): Don't inherit or default
10640 to_terminal_init.
10641 * target.h (struct target_ops) <to_terminal_init>: Use
10642 TARGET_DEFAULT_IGNORE.
10643
77cdffe9
TT
106442014-02-19 Tom Tromey <tromey@redhat.com>
10645
10646 * target-delegates.c: Rebuild.
10647 * target.c (update_current_target): Don't inherit or default
10648 to_can_accel_watchpoint_condition.
10649 * target.h (struct target_ops)
10650 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
10651
d03655e4
TT
106522014-02-19 Tom Tromey <tromey@redhat.com>
10653
10654 * target-delegates.c: Rebuild.
10655 * target.c (update_current_target): Don't inherit or default
10656 to_region_ok_for_hw_watchpoint.
10657 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10658 Use TARGET_DEFAULT_FUNC.
10659
65f160a9
TT
106602014-02-19 Tom Tromey <tromey@redhat.com>
10661
10662 * target-delegates.c: Rebuild.
10663 * target.c (update_current_target): Don't inherit or default
10664 to_watchpoint_addr_within_range.
10665 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
10666 Use TARGET_DEFAULT_FUNC.
10667
61dd109f
TT
106682014-02-19 Tom Tromey <tromey@redhat.com>
10669
10670 * target-delegates.c: Rebuild.
10671 * target.c (update_current_target): Don't inherit or default
10672 to_remove_watchpoint.
10673 * target.h (struct target_ops) <to_remove_watchpoint>: Use
10674 TARGET_DEFAULT_NORETURN.
10675
016facd4
TT
106762014-02-19 Tom Tromey <tromey@redhat.com>
10677
10678 * target-delegates.c: Rebuild.
10679 * target.c (update_current_target): Don't inherit or default
10680 to_insert_watchpoint.
10681 * target.h (struct target_ops) <to_insert_watchpoint>: Use
10682 TARGET_DEFAULT_RETURN.
10683
418dabac
TT
106842014-02-19 Tom Tromey <tromey@redhat.com>
10685
10686 * target-delegates.c: Rebuild.
10687 * target.c (update_current_target): Don't inherit or default
10688 to_remove_hw_breakpoint.
10689 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
10690 TARGET_DEFAULT_RETURN.
10691
61b371f9
TT
106922014-02-19 Tom Tromey <tromey@redhat.com>
10693
10694 * target-delegates.c: Rebuild.
10695 * target.c (update_current_target): Don't inherit or default
10696 to_insert_hw_breakpoint.
10697 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
10698 TARGET_DEFAULT_RETURN.
10699
52b51d06
TT
107002014-02-19 Tom Tromey <tromey@redhat.com>
10701
10702 * target-delegates.c: Rebuild.
10703 * target.c (update_current_target): Don't inherit or default
10704 to_can_use_hw_breakpoint.
10705 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
10706 TARGET_DEFAULT_RETURN.
10707
f86e59b2
TT
107082014-02-19 Tom Tromey <tromey@redhat.com>
10709
10710 * target-delegates.c: Rebuild.
10711 * target.c (update_current_target): Don't inherit or default
10712 to_files_info.
10713 * target.h (struct target_ops) <to_files_info>: Use
10714 TARGET_DEFAULT_IGNORE.
10715
6c628163
TT
107162014-02-19 Tom Tromey <tromey@redhat.com>
10717
10718 * target-delegates.c: Rebuild.
10719 * target.c (update_current_target): Don't inherit or default
10720 to_store.
10721 * target.h (struct target_ops) <to_store>: Use
10722 TARGET_DEFAULT_NORETURN.
10723
bebd3233
TT
107242014-02-19 Tom Tromey <tromey@redhat.com>
10725
10726 * target-delegates.c: Rebuild.
10727 * target.c (update_current_target): Don't inherit or default
10728 to_post_attach.
10729 * target.h (struct target_ops) <to_post_attach>: Use
10730 TARGET_DEFAULT_IGNORE.
10731
a53f3625
TT
107322014-02-19 Tom Tromey <tromey@redhat.com>
10733
10734 * target-delegates.c: Rebuild.
10735 * target.c (update_current_target): Don't inherit or default
10736 to_rcmd.
10737 (default_rcmd): New function.
10738 (do_monitor_command): Unconditionally delegate.
10739 * target.h (struct target_ops) <to_rmcd>: Use
10740 TARGET_DEFAULT_FUNC.
10741
e9a29200
TT
107422014-02-19 Tom Tromey <tromey@redhat.com>
10743
10744 * target-delegates.c: Rebuild.
10745 * target.c (init_dummy_target): Don't initialize to_attach.
10746 (target_attach): Unconditionally delegate.
10747 * target.h (struct target_ops) <to_attach>: Use
10748 TARGET_DEFAULT_FUNC.
10749
09da0d0a
TT
107502014-02-19 Tom Tromey <tromey@redhat.com>
10751
10752 * target-delegates.c: Rebuild.
10753 * target.c (target_detach): Unconditionally delegate.
10754 (init_dummy_target): Don't initialize to_detach.
10755 * target.h (struct target_ops) <to_detach>: Use
10756 TARGET_DEFAULT_IGNORE.
10757
5436ff03
TT
107582014-02-19 Tom Tromey <tromey@redhat.com>
10759
10760 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
10761 Add argument.
10762 (target_augmented_libraries_svr4_read): Add argument.
10763 * target.c (update_current_target): Update.
10764 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
10765 argument.
10766
f0d960ea
TT
107672014-02-19 Tom Tromey <tromey@redhat.com>
10768
10769 * target.h (struct target_ops) <to_call_history_range>: Add
10770 argument.
10771 * target.c (target_call_history_range): Add argument.
10772 * record-btrace.c (record_btrace_call_history_range): Add 'self'
10773 argument.
10774 (record_btrace_call_history_from): Update.
10775
ec0aea04
TT
107762014-02-19 Tom Tromey <tromey@redhat.com>
10777
10778 * target.h (struct target_ops) <to_call_history_from>: Add
10779 argument.
10780 * target.c (target_call_history_from): Add argument.
10781 * record-btrace.c (record_btrace_call_history_from): Add 'self'
10782 argument.
10783
5df2fcba
TT
107842014-02-19 Tom Tromey <tromey@redhat.com>
10785
10786 * target.h (struct target_ops) <to_call_history>: Add argument.
10787 * target.c (target_call_history): Add argument.
10788 * record-btrace.c (record_btrace_call_history): Add 'self'
10789 argument.
10790
4e99c6b7
TT
107912014-02-19 Tom Tromey <tromey@redhat.com>
10792
10793 * target.h (struct target_ops) <to_insn_history_range>: Add
10794 argument.
10795 * target.c (target_insn_history_range): Add argument.
10796 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
10797 argument.
10798 (record_btrace_insn_history_from): Update.
10799
9abc3ff3
TT
108002014-02-19 Tom Tromey <tromey@redhat.com>
10801
10802 * target.h (struct target_ops) <to_insn_history_from>: Add
10803 argument.
10804 * target.c (target_insn_history_from): Add argument.
10805 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
10806 argument.
10807
7a6c5609
TT
108082014-02-19 Tom Tromey <tromey@redhat.com>
10809
10810 * target.h (struct target_ops) <to_insn_history>: Add argument.
10811 * target.c (target_insn_history): Add argument.
10812 * record-btrace.c (record_btrace_insn_history): Add 'self'
10813 argument.
10814
606183ac
TT
108152014-02-19 Tom Tromey <tromey@redhat.com>
10816
10817 * target.h (struct target_ops) <to_goto_record>: Add argument.
10818 * target.c (target_goto_record): Add argument.
10819 * record-full.c (record_full_goto): Add 'self' argument.
10820 * record-btrace.c (record_btrace_goto): Add 'self' argument.
10821
307a1b91
TT
108222014-02-19 Tom Tromey <tromey@redhat.com>
10823
10824 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
10825 * target.c (target_goto_record_end): Add argument.
10826 * record-full.c (record_full_goto_end): Add 'self' argument.
10827 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
10828
08475817
TT
108292014-02-19 Tom Tromey <tromey@redhat.com>
10830
10831 * target.h (struct target_ops) <to_goto_record_begin>: Add
10832 argument.
10833 * target.c (target_goto_record_begin): Add argument.
10834 * record-full.c (record_full_goto_begin): Add 'self' argument.
10835 * record-btrace.c (record_btrace_goto_begin): Add 'self'
10836 argument.
10837
1c63c994
TT
108382014-02-19 Tom Tromey <tromey@redhat.com>
10839
10840 * target.h (struct target_ops) <to_record_is_replaying>: Add
10841 argument.
10842 * target.c (target_record_is_replaying): Add argument.
10843 * record-full.c (record_full_is_replaying): Add 'self' argument.
10844 * record-btrace.c (record_btrace_is_replaying): Add 'self'
10845 argument.
10846 (record_btrace_xfer_partial, record_btrace_store_registers)
10847 (record_btrace_prepare_to_store, record_btrace_resume)
10848 (record_btrace_wait, record_btrace_decr_pc_after_break)
10849 (record_btrace_find_new_threads, record_btrace_thread_alive):
10850 Update.
10851
d1b55219
TT
108522014-02-19 Tom Tromey <tromey@redhat.com>
10853
10854 * target.h (struct target_ops) <to_delete_record>: Add argument.
10855 * target.c (target_delete_record): Add argument.
10856 * record-full.c (record_full_delete): Add 'self' argument.
10857
1390f529
TT
108582014-02-19 Tom Tromey <tromey@redhat.com>
10859
10860 * target.h (struct target_ops) <to_save_record>: Add argument.
10861 * target.c (target_save_record): Add argument.
10862 * record-full.c (record_full_save): Add 'self' argument.
10863 (record_full_save): Add 'self' argument.
10864
630d6a4a
TT
108652014-02-19 Tom Tromey <tromey@redhat.com>
10866
10867 * target.h (struct target_ops) <to_info_record>: Add argument.
10868 * target.c (target_info_record): Add argument.
10869 * record.c (info_record_command): Add argument.
10870 * record-full.c (record_full_info): Add 'self' argument.
10871 * record-btrace.c (record_btrace_info): Add 'self' argument.
10872
c6cd7c02
TT
108732014-02-19 Tom Tromey <tromey@redhat.com>
10874
10875 * target.h (struct target_ops) <to_stop_recording>: Add argument.
10876 * target.c (target_stop_recording): Add argument.
10877 * record.c (record_stop): Add argument.
10878 * record-btrace.c (record_btrace_stop_recording): Add 'self'
10879 argument.
10880
39c49f83
TT
108812014-02-19 Tom Tromey <tromey@redhat.com>
10882
10883 * target.h (struct target_ops) <to_read_btrace>: Add argument.
10884 * target.c (struct target_ops) <to_read_btrace>: Add argument.
10885 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
10886 argument.
10887 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
10888 (_initialize_amd64_linux_nat): Use it.
10889 * i386-linux-nat.c (i386_linux_read_btrace): New function.
10890 (_initialize_i386_linux_nat): Use it.
10891
1777056d
TT
108922014-02-19 Tom Tromey <tromey@redhat.com>
10893
10894 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
10895 * target.c (target_teardown_btrace): Add argument.
10896 * remote.c (remote_teardown_btrace): Add 'self' argument.
10897 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
10898 argument.
10899 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
10900 argument.
10901
25e95349
TT
109022014-02-19 Tom Tromey <tromey@redhat.com>
10903
10904 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
10905 * target.c (target_disable_btrace): Add argument.
10906 * remote.c (remote_disable_btrace): Add 'self' argument.
10907 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
10908 argument.
10909 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
10910 argument.
10911
e3c49f88
TT
109122014-02-19 Tom Tromey <tromey@redhat.com>
10913
10914 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
10915 * target.c (target_enable_btrace): Add argument.
10916 * remote.c (remote_enable_btrace): Add 'self' argument.
10917 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
10918 argument.
10919 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
10920 argument.
10921
fe38f897
TT
109222014-02-19 Tom Tromey <tromey@redhat.com>
10923
10924 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
10925 (target_can_use_agent): Add argument.
10926 * target.c (update_current_target): Update.
10927 * remote.c (remote_can_use_agent): Add 'self' argument.
10928 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
10929
2c152180
TT
109302014-02-19 Tom Tromey <tromey@redhat.com>
10931
10932 * target.h (struct target_ops) <to_use_agent>: Add argument.
10933 (target_use_agent): Add argument.
10934 * target.c (update_current_target): Update.
10935 * remote.c (remote_use_agent): Add 'self' argument.
10936 * inf-child.c (inf_child_use_agent): Add 'self' argument.
10937
a893e81f
TT
109382014-02-19 Tom Tromey <tromey@redhat.com>
10939
10940 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
10941 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
10942 (target_traceframe_info): Add argument.
10943 * target.c (update_current_target): Update.
10944 * remote.c (remote_traceframe_info): Add 'self' argument.
10945 * ctf.c (ctf_traceframe_info): Add 'self' argument.
10946
c686c57f
TT
109472014-02-19 Tom Tromey <tromey@redhat.com>
10948
10949 * target.h (target_static_tracepoint_markers_by_strid): Add
10950 argument.
10951 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
10952 'self' argument.
10953 * target.c (update_current_target): Update.
10954 * remote.c (struct target_ops)
10955 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
10956 * linux-nat.c (struct target_ops)
10957 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
10958
61fc905d
TT
109592014-02-19 Tom Tromey <tromey@redhat.com>
10960
10961 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
10962 Add argument.
10963 (target_static_tracepoint_marker_at): Add argument.
10964 * target.c (update_current_target): Update.
10965 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
10966 argument.
10967
c378d69d
TT
109682014-02-19 Tom Tromey <tromey@redhat.com>
10969
10970 * target.h (struct target_ops) <to_set_permissions>: Add argument.
10971 (target_set_permissions): Add argument.
10972 * target.c (update_current_target): Update.
10973 * remote.c (remote_set_permissions): Add 'self' argument.
10974 (remote_start_remote): Update.
10975
bd7ae0f5
TT
109762014-02-19 Tom Tromey <tromey@redhat.com>
10977
10978 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
10979 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
10980 (target_get_tib_address): Add argument.
10981 * target.c (update_current_target): Update.
10982 * remote.c (remote_get_tib_address): Add 'self' argument.
10983
d9e68a2c
TT
109842014-02-19 Tom Tromey <tromey@redhat.com>
10985
10986 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
10987 (target_set_trace_notes): Add argument.
10988 * target.c (update_current_target): Update.
10989 * remote.c (remote_set_trace_notes): Add 'self' argument.
10990
4da384be
TT
109912014-02-19 Tom Tromey <tromey@redhat.com>
10992
10993 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
10994 argument.
10995 (target_set_trace_buffer_size): Add argument.
10996 * target.c (update_current_target): Update.
10997 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
10998
736d5b1f
TT
109992014-02-19 Tom Tromey <tromey@redhat.com>
11000
11001 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
11002 argument.
11003 (target_set_circular_trace_buffer): Add argument.
11004 * target.c (update_current_target): Update.
11005 * remote.c (remote_set_circular_trace_buffer): Add 'self'
11006 argument.
11007
37b25738
TT
110082014-02-19 Tom Tromey <tromey@redhat.com>
11009
11010 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
11011 argument.
11012 (target_set_disconnected_tracing): Add argument.
11013 * target.c (update_current_target): Update.
11014 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
11015
0e67620a
TT
110162014-02-19 Tom Tromey <tromey@redhat.com>
11017
11018 * target.h (struct target_ops)
11019 <to_get_min_fast_tracepoint_insn_len>: Add argument.
11020 (target_get_min_fast_tracepoint_insn_len): Add argument.
11021 * target.c (update_current_target): Update.
11022 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
11023 argument.
11024
88ee6f45
TT
110252014-02-19 Tom Tromey <tromey@redhat.com>
11026
11027 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
11028 argument.
11029 (target_get_raw_trace_data): Add argument.
11030 * target.c (update_current_target): Update.
11031 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
11032
181e3713
TT
110332014-02-19 Tom Tromey <tromey@redhat.com>
11034
11035 * target.h (struct target_ops) <to_upload_trace_state_variables>:
11036 Add argument.
11037 (target_upload_trace_state_variables): Add argument.
11038 * target.c (update_current_target): Update.
11039 * remote.c (remote_upload_trace_state_variables): Add 'self'
11040 argument.
11041 (remote_start_remote): Update.
11042
ab6617cc
TT
110432014-02-19 Tom Tromey <tromey@redhat.com>
11044
11045 * target.h (struct target_ops) <to_upload_tracepoints>: Add
11046 argument.
11047 (target_upload_tracepoints): Add argument.
11048 * target.c (update_current_target): Update.
11049 * remote.c (remote_upload_tracepoints): Add 'self' argument.
11050 (remote_start_remote): Update.
11051
dc3decaf
TT
110522014-02-19 Tom Tromey <tromey@redhat.com>
11053
11054 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
11055 (target_save_trace_data): Add argument.
11056 * target.c (update_current_target): Update.
11057 * remote.c (remote_save_trace_data): Add 'self' argument.
11058
4011015b
TT
110592014-02-19 Tom Tromey <tromey@redhat.com>
11060
11061 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
11062 argument.
11063 * target.h (struct target_ops)
11064 <to_get_trace_state_variable_value>: Add argument.
11065 (target_get_trace_state_variable_value): Add argument.
11066 * target.c (update_current_target): Update.
11067 * remote.c (remote_get_trace_state_variable_value): Add 'self'
11068 argument.
11069 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
11070
bd4c6793
TT
110712014-02-19 Tom Tromey <tromey@redhat.com>
11072
11073 * tracepoint.c (tfile_trace_find): Add 'self' argument.
11074 * target.h (struct target_ops) <to_trace_find>: Add argument.
11075 (target_trace_find): Add argument.
11076 * target.c (update_current_target): Update.
11077 * remote.c (remote_trace_find): Add 'self' argument.
11078 * ctf.c (ctf_trace_find): Add 'self' argument.
11079
74499f1b
TT
110802014-02-19 Tom Tromey <tromey@redhat.com>
11081
11082 * target.h (struct target_ops) <to_trace_stop>: Add argument.
11083 (target_trace_stop): Add argument.
11084 * target.c (update_current_target): Update.
11085 * remote.c (remote_trace_stop): Add 'self' argument.
11086
db90e85c
TT
110872014-02-19 Tom Tromey <tromey@redhat.com>
11088
11089 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
11090 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
11091 argument.
11092 (target_get_tracepoint_status): Add argument.
11093 * target.c (update_current_target): Update.
11094 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
11095
8bd200f1
TT
110962014-02-19 Tom Tromey <tromey@redhat.com>
11097
11098 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
11099 * target.h (struct target_ops) <to_get_trace_status>: Add
11100 argument.
11101 (target_get_trace_status): Add argument.
11102 * target.c (update_current_target): Update.
11103 * remote.c (remote_get_trace_status): Add 'self' argument.
11104 (remote_start_remote, remote_can_download_tracepoint): Update.
11105 * ctf.c (ctf_get_trace_status): Add 'self' argument.
11106
e2d1aae3
TT
111072014-02-19 Tom Tromey <tromey@redhat.com>
11108
11109 * target.h (struct target_ops) <to_trace_start>: Add argument.
11110 (target_trace_start): Add argument.
11111 * target.c (update_current_target): Update.
11112 * remote.c (remote_trace_start): Add 'self' argument.
11113
583f9a86
TT
111142014-02-19 Tom Tromey <tromey@redhat.com>
11115
11116 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
11117 Add argument.
11118 (target_trace_set_readonly_regions): Add argument.
11119 * target.c (update_current_target): Update.
11120 * remote.c (remote_trace_set_readonly_regions): Add 'self'
11121 argument.
11122
780b049c
TT
111232014-02-19 Tom Tromey <tromey@redhat.com>
11124
11125 * target.h (struct target_ops) <to_disable_tracepoint>: Add
11126 argument.
11127 (target_disable_tracepoint): Add argument.
11128 * target.c (update_current_target): Update.
11129 * remote.c (remote_disable_tracepoint): Add 'self' argument.
11130
46670d57
TT
111312014-02-19 Tom Tromey <tromey@redhat.com>
11132
11133 * target.h (struct target_ops) <to_enable_tracepoint>: Add
11134 argument.
11135 (target_enable_tracepoint): Add argument.
11136 * target.c (update_current_target): Update.
11137 * remote.c (remote_enable_tracepoint): Add 'self' argument.
11138
559d2b81
TT
111392014-02-19 Tom Tromey <tromey@redhat.com>
11140
11141 * target.h (struct target_ops) <to_download_trace_state_variable>:
11142 Add argument.
11143 (target_download_trace_state_variable): Add argument.
11144 * target.c (update_current_target): Update.
11145 * remote.c (remote_download_trace_state_variable): Add 'self'
11146 argument.
11147
a52a8357
TT
111482014-02-19 Tom Tromey <tromey@redhat.com>
11149
11150 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
11151 argument.
11152 (target_can_download_tracepoint): Add argument.
11153 * target.c (update_current_target): Update.
11154 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
11155
548f7808
TT
111562014-02-19 Tom Tromey <tromey@redhat.com>
11157
11158 * target.h (struct target_ops) <to_download_tracepoint>: Add
11159 argument.
11160 (target_download_tracepoint): Add argument.
11161 * target.c (update_current_target): Update.
11162 * remote.c (remote_download_tracepoint): Add 'self' argument.
11163
ecae04e1
TT
111642014-02-19 Tom Tromey <tromey@redhat.com>
11165
11166 * target.h (struct target_ops) <to_trace_init>: Add argument.
11167 (target_trace_init): Add argument.
11168 * target.c (update_current_target): Update.
11169 * remote.c (remote_trace_init): Add 'self' argument.
11170
fab5aa7c
TT
111712014-02-19 Tom Tromey <tromey@redhat.com>
11172
11173 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
11174 * target.c (target_fileio_readlink): Add argument.
11175 * remote.c (remote_hostio_readlink): Add 'self' argument.
11176 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
11177
dbbca37d
TT
111782014-02-19 Tom Tromey <tromey@redhat.com>
11179
11180 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
11181 * target.c (target_fileio_unlink): Add argument.
11182 * remote.c (remote_hostio_unlink): Add 'self' argument.
11183 (remote_file_delete): Update.
11184 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
11185
df39ea25
TT
111862014-02-19 Tom Tromey <tromey@redhat.com>
11187
11188 * target.h (struct target_ops) <to_fileio_close>: Add argument.
11189 * target.c (target_fileio_close): Add argument.
11190 * remote.c (remote_hostio_close): Add 'self' argument.
11191 (remote_hostio_close_cleanup): Update.
11192 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
11193 Update.
11194 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
11195
a3be983c
TT
111962014-02-19 Tom Tromey <tromey@redhat.com>
11197
11198 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
11199 * target.c (target_fileio_pread): Add argument.
11200 * remote.c (remote_hostio_pread): Add 'self' argument.
11201 (remote_bfd_iovec_pread, remote_file_get): Update.
11202 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
11203
0d866f62
TT
112042014-02-19 Tom Tromey <tromey@redhat.com>
11205
11206 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
11207 * target.c (target_fileio_pwrite): Add argument.
11208 * remote.c (remote_hostio_pwrite): Add 'self' argument.
11209 (remote_file_put): Update.
11210 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
11211
cd897586
TT
112122014-02-19 Tom Tromey <tromey@redhat.com>
11213
11214 * target.h (struct target_ops) <to_fileio_open>: Add argument.
11215 * target.c (target_fileio_open): Add argument.
11216 * remote.c (remote_hostio_open): Add 'self' argument.
11217 (remote_bfd_iovec_open): Add 'self' argument.
11218 (remote_file_put): Add 'self' argument.
11219 (remote_file_get): Add 'self' argument.
11220 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
11221
78eff0ec
TT
112222014-02-19 Tom Tromey <tromey@redhat.com>
11223
11224 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
11225 Add argument.
11226 (target_can_run_breakpoint_commands): Add argument.
11227 * target.c (update_current_target): Update.
11228 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
11229 argument.
11230 (remote_insert_breakpoint): Add 'self' argument.
11231 (remote_insert_hw_breakpoint): Add 'self' argument.
11232 (remote_can_run_breakpoint_commands): Add 'self' argument.
11233
efcc2da7
TT
112342014-02-19 Tom Tromey <tromey@redhat.com>
11235
11236 * target.h (struct target_ops)
11237 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
11238 (target_supports_evaluation_of_breakpoint_conditions): Add
11239 argument.
11240 * target.c (update_current_target): Update.
11241 * remote.c (remote_supports_cond_breakpoints): Add 'self'
11242 argument.
11243 (remote_insert_breakpoint): Add 'self' argument.
11244 (remote_insert_hw_breakpoint): Add 'self' argument.
11245 (remote_supports_cond_breakpoints): Add 'self' argument.
11246
6de37a3a
TT
112472014-02-19 Tom Tromey <tromey@redhat.com>
11248
11249 * target.h (struct target_ops) <to_supports_string_tracing>: Add
11250 argument.
11251 (target_supports_string_tracing): Add argument.
11252 * target.c (update_current_target): Update.
11253 * remote.c (remote_supports_string_tracing): Add 'self' argument.
11254
2bfc0540
TT
112552014-02-19 Tom Tromey <tromey@redhat.com>
11256
11257 * target.h (struct target_ops)
11258 <to_supports_disable_randomization>: Add argument.
11259 * target.c (find_default_supports_disable_randomization): Add
11260 argument.
11261 (target_supports_disable_randomization): Add argument.
11262 (find_default_supports_disable_randomization): Add 'self'
11263 argument.
11264 * remote.c (extended_remote_supports_disable_randomization): Add
11265 'self' argument.
11266 (remote_supports_disable_randomization): Add 'self' argument.
11267 (extended_remote_create_inferior): Update.
11268 * linux-nat.c (linux_nat_supports_disable_randomization): Add
11269 'self' argument.
11270
7d178d6a
TT
112712014-02-19 Tom Tromey <tromey@redhat.com>
11272
11273 * target.h (struct target_ops)
11274 <to_supports_enable_disable_tracepoint>: Add argument.
11275 (target_supports_enable_disable_tracepoint): Add argument.
11276 * target.c (update_current_target): Update.
11277 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
11278 argument.
11279
86ce2668
TT
112802014-02-19 Tom Tromey <tromey@redhat.com>
11281
11282 * target.h (struct target_ops) <to_supports_multi_process>: Add
11283 argument.
11284 (target_supports_multi_process): Add argument.
11285 * target.c (update_current_target): Update.
11286 * remote.c (remote_supports_multi_process): Add 'self' argument.
11287 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
11288 argument.
11289 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
11290 argument.
11291
4c612759
TT
112922014-02-19 Tom Tromey <tromey@redhat.com>
11293
11294 * target.h (struct target_ops) <to_execution_direction>: Add
11295 argument.
11296 (target_execution_direction): Add argument.
11297 * target.c (default_execution_direction): Add 'self' argument.
11298 * record-full.c (record_full_execution_direction): Add 'self'
11299 argument.
11300
19db3e69
TT
113012014-02-19 Tom Tromey <tromey@redhat.com>
11302
11303 * target.h (struct target_ops) <to_can_execute_reverse>: Add
11304 argument.
11305 (target_can_execute_reverse): Add argument.
11306 * remote.c (remote_can_execute_reverse): Add 'self' argument.
11307 * record-full.c (record_full_can_execute_reverse): Add 'self'
11308 argument.
11309 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
11310 argument.
11311
1e6b91a4
TT
113122014-02-19 Tom Tromey <tromey@redhat.com>
11313
11314 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
11315 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
11316 argument.
11317 (target_get_ada_task_ptid): Add argument.
11318 * target.c (update_current_target): Update.
11319 (default_get_ada_task_ptid): Add 'self' argument.
11320 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
11321 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
11322 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
11323 argument.
11324 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
11325 argument.
11326 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
11327 argument.
11328 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
11329 argument.
11330 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
11331 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
11332 argument.
11333
3c80fb48
TT
113342014-02-19 Tom Tromey <tromey@redhat.com>
11335
11336 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
11337 (target_goto_bookmark): Add argument.
11338 * target.c (dummy_goto_bookmark): Add 'self' argument.
11339 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
11340
dd0e2830
TT
113412014-02-19 Tom Tromey <tromey@redhat.com>
11342
11343 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
11344 (target_get_bookmark): Add argument.
11345 * target.c (dummy_get_bookmark): Add 'self' argument.
11346 * record-full.c (record_full_get_bookmark): Add 'self' argument.
11347
fc6691b2
TT
113482014-02-19 Tom Tromey <tromey@redhat.com>
11349
11350 * target.h (struct target_ops) <to_make_corefile_notes>: Add
11351 argument.
11352 (target_make_corefile_notes): Add argument.
11353 * target.c (dummy_make_corefile_notes): Add 'self' argument.
11354 * procfs.c (procfs_make_note_section): Add 'self' argument.
11355 (procfs_make_note_section): Add 'self' argument.
11356 (procfs_make_note_section): Add 'self' argument.
11357 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
11358 argument.
11359 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
11360 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
11361 * exec.c (exec_make_note_section): Add 'self' argument.
11362 (exec_make_note_section): Add 'self' argument.
11363
2e73927c
TT
113642014-02-19 Tom Tromey <tromey@redhat.com>
11365
11366 * target.h (struct target_ops) <to_find_memory_regions>: Add
11367 argument.
11368 (target_find_memory_regions): Add argument.
11369 * target.c (dummy_find_memory_regions): Add 'self' argument.
11370 * procfs.c (proc_find_memory_regions): Add 'self' argument.
11371 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
11372 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
11373 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
11374 * exec. (exec_do_find_memory_regions): New global.
11375 (exec_set_find_memory_regions): Rewrite.
11376 (exec_find_memory_regions): New function.
11377 (init_exec_ops): Use exec_find_memory_regions.
11378
2a9a2795
TT
113792014-02-19 Tom Tromey <tromey@redhat.com>
11380
11381 * target.h (struct target_ops) <to_supports_non_stop>: Add
11382 argument.
11383 * target.c (find_default_supports_non_stop): Add argument.
11384 (target_supports_non_stop): Add argument.
11385 (find_default_supports_non_stop): Add 'self' argument.
11386 * remote.c (remote_supports_non_stop): Add 'self' argument.
11387 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
11388
4ab76ea3
TT
113892014-02-19 Tom Tromey <tromey@redhat.com>
11390
11391 * target.h (struct target_ops) <to_log_command>: Add argument.
11392 (target_log_command): Add argument.
11393 * serial.h (serial_log_command): Add 'self' argument.
11394 * serial.c (serial_log_command): Add 'self' argument.
11395
8dd27370
TT
113962014-02-19 Tom Tromey <tromey@redhat.com>
11397
11398 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
11399 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
11400 argument.
11401 (target_pid_to_exec_file): Add argument.
11402 * target.c (debug_to_pid_to_exec_file): Add argument.
11403 (update_current_target): Update.
11404 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
11405 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
11406 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
11407 (linux_handle_extended_wait): Update.
11408 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
11409 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
11410 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
11411 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
11412
1aac633b
TT
114132014-02-19 Tom Tromey <tromey@redhat.com>
11414
11415 * target.h (struct target_ops) <to_rcmd>: Add argument.
11416 (target_rcmd): Add argument.
11417 * target.c (debug_to_rcmd): Add argument.
11418 (update_current_target, do_monitor_command): Update.
11419 * remote.c (remote_rcmd): Add 'self' argument.
11420 * monitor.c (monitor_rcmd): Add 'self' argument.
11421
1eab8a48
TT
114222014-02-19 Tom Tromey <tromey@redhat.com>
11423
11424 * windows-nat.c (windows_stop): Add 'self' argument.
11425 * target.h (struct target_ops) <to_stop>: Add argument.
11426 * target.c (target_stop): Add argument.
11427 (debug_to_stop): Add argument.
11428 (update_current_target): Update.
11429 * remote.c (remote_stop): Add 'self' argument.
11430 * remote-sim.c (gdbsim_stop): Add 'self' argument.
11431 (gdbsim_cntrl_c): Update.
11432 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
11433 * procfs.c (procfs_stop): Add 'self' argument.
11434 * nto-procfs.c (procfs_stop): Add 'self' argument.
11435 * monitor.c (monitor_stop): Add 'self' argument.
11436 (monitor_open): Update.
11437 * linux-nat.c (linux_nat_stop): Add argument.
11438 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
11439 * gnu-nat.c (gnu_stop): Add 'self' argument.
11440 * darwin-nat.c (darwin_stop): Add 'self' argument.
11441
503a628d
TT
114422014-02-19 Tom Tromey <tromey@redhat.com>
11443
11444 * target.h (struct target_ops) <to_thread_name>: Add argument.
11445 * target.c (target_thread_name): Add argument.
11446 (update_current_target): Update.
11447 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
11448
c15906d8
TT
114492014-02-19 Tom Tromey <tromey@redhat.com>
11450
11451 * target.h (struct target_ops) <to_extra_thread_info>: Add
11452 argument.
11453 (target_extra_thread_info): Add argument.
11454 * target.c (update_current_target): Update.
11455 * remote.c (remote_threads_extra_info): Add 'self' argument.
11456 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
11457 argument.
11458 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
11459 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
11460 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
11461 argument.
11462 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
11463 argument.
11464 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
11465 argument.
11466 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
11467 argument.
11468
daf5e9b6
TT
114692014-02-19 Tom Tromey <tromey@redhat.com>
11470
11471 * target.h (struct target_ops) <to_program_signals>: Add argument.
11472 * target.c (target_program_signals): Add argument.
11473 * remote.c (remote_program_signals): Add 'self' argument.
11474
94bedb42
TT
114752014-02-19 Tom Tromey <tromey@redhat.com>
11476
11477 * target.h (struct target_ops) <to_pass_signals>: Add argument.
11478 * target.c (target_pass_signals): Add argument.
11479 * remote.c (remote_pass_signals): Add 'self' argument.
11480 (remote_start_remote): Update.
11481 * procfs.c (procfs_pass_signals): Add 'self' argument.
11482 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
11483 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
11484 (linux_nat_create_inferior, linux_nat_attach): Update.
11485
da82bd6b
TT
114862014-02-19 Tom Tromey <tromey@redhat.com>
11487
11488 * windows-nat.c (windows_can_run): Add 'self' argument.
11489 * target.h (struct target_ops) <to_can_run>: Add argument.
11490 (target_can_run): Add argument.
11491 * target.c (debug_to_can_run): Add argument.
11492 (update_current_target): Update.
11493 * nto-procfs.c (procfs_can_run): Add 'self' argument.
11494 * inf-child.c (inf_child_can_run): Add 'self' argument.
11495 * go32-nat.c (go32_can_run): Add 'self' argument.
11496
d796e1d6
TT
114972014-02-19 Tom Tromey <tromey@redhat.com>
11498
11499 * target.h (struct target_ops) <to_has_exited>: Add argument.
11500 (target_has_exited): Add argument.
11501 * target.c (debug_to_has_exited): Add argument.
11502 (update_current_target): Update.
11503
ff214e67
TT
115042014-02-19 Tom Tromey <tromey@redhat.com>
11505
11506 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
11507 argument.
11508 (target_set_syscall_catchpoint): Add argument.
11509 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
11510 argument.
11511 * target.c (update_current_target): Update.
11512
758e29d2
TT
115132014-02-19 Tom Tromey <tromey@redhat.com>
11514
11515 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
11516 argument.
11517 (target_remove_exec_catchpoint): Add argument.
11518 * target.c (debug_to_remove_exec_catchpoint): Add argument.
11519 (update_current_target): Update.
11520 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
11521 argument.
11522
ba025e51
TT
115232014-02-19 Tom Tromey <tromey@redhat.com>
11524
11525 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
11526 argument.
11527 (target_insert_exec_catchpoint): Add argument.
11528 * target.c (debug_to_insert_exec_catchpoint): Add argument.
11529 (update_current_target): Update.
11530 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
11531 argument.
11532
e98cf0cd
TT
115332014-02-19 Tom Tromey <tromey@redhat.com>
11534
11535 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
11536 argument.
11537 (target_remove_vfork_catchpoint): Add argument.
11538 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
11539 (update_current_target): Update.
11540 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
11541 argument.
11542
3ecc7da0
TT
115432014-02-19 Tom Tromey <tromey@redhat.com>
11544
11545 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
11546 argument.
11547 (target_insert_vfork_catchpoint): Add argument.
11548 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
11549 (update_current_target): Update.
11550 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
11551 argument.
11552
973fc227
TT
115532014-02-19 Tom Tromey <tromey@redhat.com>
11554
11555 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
11556 argument.
11557 (target_remove_fork_catchpoint): Add argument.
11558 * target.c (debug_to_remove_fork_catchpoint): Add argument.
11559 (update_current_target): Update.
11560 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
11561 argument.
11562
a863b201
TT
115632014-02-19 Tom Tromey <tromey@redhat.com>
11564
11565 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
11566 argument.
11567 (target_insert_fork_catchpoint): Add argument.
11568 * target.c (debug_to_insert_fork_catchpoint): Add argument.
11569 (update_current_target): Update.
11570 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
11571 argument.
11572
2e97a79e
TT
115732014-02-19 Tom Tromey <tromey@redhat.com>
11574
11575 * target.h (struct target_ops) <to_post_startup_inferior>: Add
11576 argument.
11577 (target_post_startup_inferior): Add argument.
11578 * target.c (debug_to_post_startup_inferior): Add argument.
11579 (update_current_target): Update.
11580 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
11581 argument.
11582 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
11583 argument.
11584 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
11585 argument.
11586 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
11587 argument.
11588 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
11589 'self' argument.
11590 (super_post_startup_inferior): Likewise.
11591 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
11592 'self' argument.
11593 (super_post_startup_inferior): Likewise.
11594 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
11595 Add 'self' argument.
11596 (super_post_startup_inferior): Likewise.
11597
71a9f134
TT
115982014-02-19 Tom Tromey <tromey@redhat.com>
11599
11600 * target.h (struct target_ops) <to_load>: Add argument.
11601 * target.c (target_load): Add argument.
11602 (debug_to_load): Add argument.
11603 (update_current_target): Update.
11604 * remote.c (remote_load): Add 'self' argument.
11605 * remote-sim.c (gdbsim_load): Add 'self' argument.
11606 * remote-mips.c (mips_load): Add 'self' argument.
11607 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
11608 * monitor.c (monitor_load): Add 'self' argument.
11609 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
11610
0a4f40a2
TT
116112014-02-19 Tom Tromey <tromey@redhat.com>
11612
11613 * target.h (struct target_ops) <to_terminal_info>: Add argument.
11614 (target_terminal_info): Add argument.
11615 * target.c (debug_to_terminal_info): Add argument.
11616 (default_terminal_info): Likewise.
11617 * inflow.c (child_terminal_info): Add 'self' argument.
11618 * inferior.h (child_terminal_info): Add 'self' argument.
11619 * go32-nat.c (go32_terminal_info): Add 'self' argument.
11620
ae3bd431
TT
116212014-02-19 Tom Tromey <tromey@redhat.com>
11622
11623 * target.h (struct target_ops) <to_terminal_save_ours>: Add
11624 argument.
11625 (target_terminal_save_ours): Add argument.
11626 * target.c (debug_to_terminal_save_ours): Add argument.
11627 (update_current_target): Update.
11628 * inflow.c (terminal_save_ours): Add 'self' argument.
11629 * inferior.h (terminal_save_ours): Add 'self' argument.
11630
e3594fd1
TT
116312014-02-19 Tom Tromey <tromey@redhat.com>
11632
11633 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
11634 (target_terminal_ours): Add argument.
11635 * target.c (debug_to_terminal_ours): Add argument.
11636 (update_current_target): Update.
11637 * remote.c (remote_terminal_ours): Add 'self' argument.
11638 (remote_close): Update.
11639 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
11640 * inflow.c (terminal_ours): Add 'self' argument.
11641 * inferior.h (terminal_ours): Add 'self' argument.
11642 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11643
2e1e1a19
TT
116442014-02-19 Pedro Alves <palves@redhat.com>
11645 Tom Tromey <tromey@redhat.com>
11646
11647 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
11648 argument.
11649 (target_terminal_ours_for_output): Add argument.
11650 * target.c (debug_to_terminal_ours_for_output): Add argument.
11651 (update_current_target): Update.
11652 * inflow.c (terminal_ours_for_output): Add 'self' argument.
11653 * inferior.h (terminal_ours_for_output): Add 'self' argument.
11654 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11655
d2f640d4
TT
116562014-02-19 Tom Tromey <tromey@redhat.com>
11657
11658 * target.h (struct target_ops) <to_terminal_inferior>: Add
11659 argument.
11660 * target.c (target_terminal_inferior): Add argument.
11661 (update_current_target): Update.
11662 * remote.c (remote_terminal_inferior): Add 'self' argument.
11663 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
11664 * inflow.c (terminal_inferior): Add 'self' argument.
11665 * inferior.h (terminal_inferior): Add 'self' argument.
11666 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
11667 (go32_terminal_inferior): Add 'self' argument.
11668
c42bf286
TT
116692014-02-19 Tom Tromey <tromey@redhat.com>
11670
11671 * target.h (struct target_ops) <to_terminal_init>: Add argument.
11672 (target_terminal_init): Add argument.
11673 * target.c (debug_to_terminal_init): Add argument.
11674 (update_current_target): Update.
11675 * inflow.c (terminal_init_inferior): Add 'self' argument.
11676 * inferior.h (terminal_init_inferior): Add 'self' argument.
11677 * go32-nat.c (go32_terminal_init): Add 'self' argument.
11678 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
11679
c3a5ff89
TT
116802014-02-19 Tom Tromey <tromey@redhat.com>
11681
11682 * target.h (struct target_ops)
11683 <to_can_accel_watchpoint_condition>: Add argument.
11684 (target_can_accel_watchpoint_condition): Add argument.
11685 * target.c (debug_to_can_accel_watchpoint_condition): Add
11686 argument.
11687 (update_current_target): Update.
11688 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
11689 'self' argument.
11690
31568a15
TT
116912014-02-19 Tom Tromey <tromey@redhat.com>
11692
11693 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11694 Add argument.
11695 (target_region_ok_for_hw_watchpoint): Add argument.
11696 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
11697 (default_region_ok_for_hw_watchpoint): Add argument.
11698 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
11699 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
11700 argument.
11701 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
11702 argument.
11703 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
11704 argument.
11705 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
11706 'self' argument.
11707 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
11708 'self' argument.
11709 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
11710 'self' argument.
11711 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
11712 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
11713 'self' argument.
11714 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
11715 Add 'self' argument.
11716
7bb99c53
TT
117172014-02-19 Tom Tromey <tromey@redhat.com>
11718
11719 * target.h (struct target_ops) <to_insert_watchpoint>: Add
11720 argument.
11721 (target_insert_watchpoint): Add argument.
11722 * target.c (debug_to_insert_watchpoint): Add argument.
11723 (update_current_target): Update.
11724 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
11725 * remote.c (remote_insert_watchpoint): Add 'self' argument.
11726 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
11727 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
11728 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
11729 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
11730 argument.
11731 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
11732 (procfs_insert_hw_watchpoint): Add 'self' argument.
11733 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
11734 argument.
11735 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
11736 argument.
11737 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
11738 argument.
11739 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
11740 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
11741 argument.
11742 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
11743 'self' argument.
11744
11b5219a
TT
117452014-02-19 Tom Tromey <tromey@redhat.com>
11746
11747 * target.h (struct target_ops) <to_remove_watchpoint>: Add
11748 argument.
11749 (target_remove_watchpoint): Add argument.
11750 * target.c (debug_to_remove_watchpoint): Add argument.
11751 (update_current_target): Update.
11752 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
11753 * remote.c (remote_remove_watchpoint): Add 'self' argument.
11754 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
11755 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
11756 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
11757 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
11758 argument.
11759 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
11760 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
11761 argument.
11762 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
11763 argument.
11764 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
11765 argument.
11766 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
11767 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
11768 argument.
11769 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
11770 'self' argument.
11771
a64dc96c
TT
117722014-02-19 Tom Tromey <tromey@redhat.com>
11773
11774 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
11775 argument.
11776 (target_remove_hw_breakpoint): Add argument.
11777 * target.c (debug_to_remove_hw_breakpoint): Add argument.
11778 (update_current_target): Update.
11779 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
11780 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
11781 argument.
11782 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
11783 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
11784 argument.
11785 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
11786 'self' argument.
11787
23a26771
TT
117882014-02-19 Tom Tromey <tromey@redhat.com>
11789
11790 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
11791 argument.
11792 (target_insert_hw_breakpoint): Add argument.
11793 * target.c (debug_to_insert_hw_breakpoint): Add argument.
11794 (update_current_target): Update.
11795 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
11796 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
11797 argument.
11798 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
11799 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
11800 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
11801 argument.
11802 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
11803 'self' argument.
11804
5461485a
TT
118052014-02-19 Tom Tromey <tromey@redhat.com>
11806
11807 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
11808 argument.
11809 (target_can_use_hardware_watchpoint): Add argument.
11810 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
11811 (update_current_target): Update.
11812 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
11813 argument.
11814 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
11815 argument.
11816 * remote.c (remote_check_watch_resources): Add 'self' argument.
11817 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
11818 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
11819 argument.
11820 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
11821 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
11822 argument.
11823 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
11824 argument.
11825 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
11826 argument.
11827 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
11828 argument.
11829 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
11830 argument.
11831 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
11832 argument.
11833 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
11834 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
11835 argument.
11836 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
11837 'self' argument.
11838
f045800c
TT
118392014-02-19 Tom Tromey <tromey@redhat.com>
11840
11841 * target.h (struct target_ops) <to_post_attach>: Add argument.
11842 (target_post_attach): Add argument.
11843 * target.c (debug_to_post_attach): Add argument.
11844 (update_current_target): Update.
11845 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
11846 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
11847 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
11848 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
11849 * inf-child.c (inf_child_post_attach): Add 'self' argument.
11850
de90e03d
TT
118512014-02-19 Tom Tromey <tromey@redhat.com>
11852
11853 * windows-nat.c (windows_close): Add 'self' argument.
11854 * tracepoint.c (tfile_close): Add 'self' argument.
11855 * target.h (struct target_ops) <to_close>: Add argument.
11856 * target.c (target_close): Add argument.
11857 (update_current_target): Update.
11858 * remote.c (remote_close): Add 'self' argument.
11859 * remote-sim.c (gdbsim_close): Add 'self' argument.
11860 * remote-mips.c (mips_close): Add 'self' argument.
11861 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
11862 * record-full.c (record_full_close): Add 'self' argument.
11863 * record-btrace.c (record_btrace_close): Add 'self' argument.
11864 * monitor.h (monitor_close): Add 'self' argument.
11865 * monitor.c (monitor_close): Add 'self' argument.
11866 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
11867 * linux-nat.c (linux_nat_close): Add argument.
11868 * go32-nat.c (go32_close): Add 'self' argument.
11869 * exec.c (exec_close_1): Add 'self' argument.
11870 * ctf.c (ctf_close): Add 'self' argument.
11871 * corelow.c (core_close): Add 'self' argument.
11872 (core_close_cleanup): Update.
11873 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
11874 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
11875
9dd130a0
TT
118762014-02-19 Tom Tromey <tromey@redhat.com>
11877
11878 * remote.c (remote_load): New function.
11879 (init_remote_ops): Use it.
11880
46917d26
TT
118812014-02-19 Tom Tromey <tromey@redhat.com>
11882
11883 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
11884 argument.
11885 * common/linux-btrace.h (linux_supports_btrace): Update.
11886 * remote.c (remote_supports_btrace): Add "self" argument.
11887 * target-delegates.c: Rebuild.
11888 * target.c (target_supports_btrace): Remove.
11889 * target.h (struct target_ops) <to_supports_btrace>: Add
11890 target_ops argument.
11891 (target_supports_btrace): New define.
11892
6b84065d
TT
118932014-02-19 Tom Tromey <tromey@redhat.com>
11894
11895 * record-full.c (record_full_beneath_to_resume_ops)
11896 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
11897 (record_full_beneath_to_wait)
11898 (record_full_beneath_to_store_registers_ops)
11899 (record_full_beneath_to_store_registers)
11900 (record_full_beneath_to_xfer_partial_ops)
11901 (record_full_beneath_to_xfer_partial)
11902 (record_full_beneath_to_insert_breakpoint_ops)
11903 (record_full_beneath_to_insert_breakpoint)
11904 (record_full_beneath_to_remove_breakpoint_ops)
11905 (record_full_beneath_to_remove_breakpoint)
11906 (record_full_beneath_to_stopped_by_watchpoint)
11907 (record_full_beneath_to_stopped_data_address)
11908 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
11909 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
11910 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
11911 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
11912 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
11913 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
11914 (tmp_to_stopped_data_address, tmp_to_async): Remove.
11915 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
11916 (record_full_resume, record_full_wait_1)
11917 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
11918 (record_full_store_registers, record_full_xfer_partial)
11919 (record_full_insert_breakpoint, record_full_remove_breakpoint)
11920 (record_full_async, record_full_core_xfer_partial): Use target
11921 delegation.
11922 * target-delegates.c: Rebuild.
11923 * target.c (current_xfer_partial): Remove.
11924 (update_current_target): Do not INHERIT or de_fault
11925 to_insert_breakpoint, to_remove_breakpoint,
11926 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
11927 to_is_async_p, to_async. Do not set to_xfer_partial field.
11928 (default_xfer_partial): Simplify.
11929 (current_xfer_partial): Remove.
11930 (target_wait, target_resume): Simplify.
11931 (find_default_can_async_p, find_default_is_async_p): Update.
11932 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
11933 to_xfer_partial, to_stopped_by_watchpoint,
11934 to_stopped_data_address.
11935 (target_store_registers): Simplify.
11936 (forward_target_remove_breakpoint)
11937 (forward_target_insert_breakpoint): Remove.
11938 (target_remove_breakpoint, target_insert_breakpoint)
11939 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
11940 * target.h (struct target_ops) <to_resume, to_wait,
11941 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
11942 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
11943 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
11944 markup.
11945 (forward_target_remove_breakpoint)
11946 (forward_target_insert_breakpoint): Remove.
11947 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
11948 directly.
11949 (record_btrace_insert_breakpoint): Delegate directly.
11950
1101cb7b
TT
119512014-02-19 Tom Tromey <tromey@redhat.com>
11952
11953 PR build/7701:
11954 * target-delegates.c: New file.
11955 * target.c: Include target-delegates.c.
11956 (init_dummy_target): Call install_dummy_methods.
11957 (complete_target_initialization): Call install_delegators.
11958 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
11959 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
11960 * make-target-delegates: New file.
11961
8b06beed
TT
119622014-02-19 Tom Tromey <tromey@redhat.com>
11963
11964 * record.c (find_record_target): Use find_target_at.
11965 * target.c (find_target_at): New function.
11966 * target.h (find_target_at): Declare.
11967
6a109b6b
TT
119682014-02-19 Tom Tromey <tromey@redhat.com>
11969
11970 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
11971 Add 'ops' argument.
11972 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
11973 'ops' argument.
11974 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
11975 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
11976 'ops' argument.
11977 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
11978 argument.
11979 * linux-nat.c (save_sigtrap): Update.
11980 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
11981 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
11982 (linux_nat_close): Update.
11983 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
11984 argument.
11985 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
11986 argument.
11987 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
11988 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
11989 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
11990 (tmp_to_async): Add 'ops' argument.
11991 (record_full_stopped_by_watchpoint, record_full_async)
11992 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
11993 argument.
11994 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
11995 (m32r_stopped_by_watchpoint): Add 'ops' argument.
11996 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
11997 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
11998 (remote_is_async_p, remote_async): Add 'ops' argument.
11999 (remote_stopped_data_address): Update.
12000 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
12001 * target.c (update_current_target)
12002 (find_default_can_async_p, find_default_is_async_p): Update.
12003 (init_dummy_target): Update.
12004 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
12005 * target.h (struct target_ops) <to_stopped_by_watchpoint,
12006 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
12007 (target_can_async_p, target_is_async_p, target_async)
12008 (target_stopped_by_watchpoint): Update.
12009
e095146b
YQ
120102014-02-19 Yao Qi <yao@codesourcery.com>
12011
12012 PR gdb/16220
12013 * gdbarch.sh: Remove startup_gdbarch.
12014 * gdbarch.c: Regenerated.
12015 * gdbarch.h: Likewise.
12016
bc3c6b36
KB
120172014-02-17 Kevin Buettner <kevinb@redhat.com>
12018
12019 * rl78-tdep.c (rl78_g10_register_name): New function.
12020 (rl78_return_value): Add g10 support.
12021 (rl78_gdbarch_init): Register rl78_g10_register_name for the
12022 g10.
12023
98dc0167 120242014-02-17 Doug Evans <xdje42@gmail.com>
f01c1940
DE
12025
12026 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
12027 (SUBDIR_GUILE_SRCS): Ditto.
12028 (scm-gsmob.o): Ditto.
12029
842c05cd
YQ
120302014-02-17 Yao Qi <yao@codesourcery.com>
12031
12032 * gnu-nat.c (ILL_RPC): Declare defined function.
12033
25c0bd04
YQ
120342014-02-17 Yao Qi <yao@codesourcery.com>
12035
12036 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
12037 mach_msg_type_number_t.
12038 (gnu_write_inferior): Likewise.
12039
a9a758e3
YQ
120402014-02-17 Yao Qi <yao@codesourcery.com>
12041
12042 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
12043 in format string.
12044 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
12045 (inf_validate_procs, inf_signal): Likewise.
12046 (S_exception_raise_request): Likewise.
12047 (do_mach_notify_dead_name): Likewise.
12048 (steal_exc_port): Likewise.
12049 (gnu_read_inferior): Change 'copy_count''s type to
12050 mach_msg_type_number_t.
12051 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
12052 format string.
12053
bae8023e
TS
120542014-02-16 Thomas Schwinge <thomas@codesourcery.com>
12055
c82f56d9
TS
12056 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
12057 flag. Adjust all users; in particular...
12058 (gnu_wait): ..., don't decrement its value in here...
12059 (gnu_create_inferior): ..., and instead set the flag in here,
12060 around the startup_inferior call, and call that one with
12061 START_INFERIOR_TRAPS_EXPECTED.
12062
3398af6a
TS
12063 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
12064 (ILL_RPC): ... new macro.
12065 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
12066 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
12067 (do_mach_notify_send_once, S_proc_setmsgport_reply)
12068 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
12069 functions with ILL_RPC macro.
12070 (S_proc_pid2task_reply, S_proc_task2pid_reply)
12071 (S_proc_task2proc_reply, S_proc_proc2task_reply)
12072 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
12073 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
12074 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
12075 (S_proc_getlogin_reply, S_proc_getsid_reply)
12076 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
12077 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
12078 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
12079 (S_proc_getnports_reply, S_proc_is_important_reply)
12080 (S_proc_get_code_reply): New stub functions, generated with
12081 ILL_RPC macro.
12082
d47642c9
TS
12083 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
12084 collected the type check structures.
12085
bae8023e
TS
12086 * reply_mig_hack.awk: Don't expect to see the auto keyword.
12087
8a55ffb0
DE
120882014-02-14 Doug Evans <dje@google.com>
12089
12090 * target.c (target_write_partial): Fix result type.
12091
c2853f3d
JM
120922014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
12093
12094 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
12095 the proper offsets to access fpregset_t.
12096
ac61d2db
SA
120972014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
12098
12099 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
12100 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
12101 * h8300-tdep.c (setmachinelist): Remove global.
12102 * hppa-tdep.c (hppa_sigtramp): Remove global.
12103 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
12104 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
12105 * ravenscar-thread.c (update_target_observer): Remove global.
12106 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
12107
9d2d0b8b
TT
121082014-02-12 Tom Tromey <tromey@redhat.com>
12109
12110 * common/rsp-low.c: Update comments.
12111 * common/rsp-low.h: Update comments.
12112
a7191e8b
TT
121132014-02-12 Tom Tromey <tromey@redhat.com>
12114
12115 * common/rsp-low.c (convert_ascii_to_int): Remove.
12116 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
12117
ff0e980e
TT
121182014-02-12 Tom Tromey <tromey@redhat.com>
12119
12120 * common/rsp-low.h (unhexify): Don't declare.
12121 * common/rsp-low.c (unhexify): Remove.
12122
e9371aff
TT
121232014-02-12 Tom Tromey <tromey@redhat.com>
12124
12125 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
12126 * common/rsp-low.c (convert_int_to_ascii): Remove.
12127
971dc0b8
TT
121282014-02-12 Tom Tromey <tromey@redhat.com>
12129
12130 * common/rsp-low.h (hexify): Don't declare.
12131 * common/rsp-low.c (hexify): Remove.
12132
0a822afb
TT
121332014-02-12 Tom Tromey <tromey@redhat.com>
12134
12135 * common/rsp-low.c (hexify): Never take strlen of argument.
12136
9f1b45b0
TT
121372014-02-12 Tom Tromey <tromey@redhat.com>
12138
12139 * common/rsp-low.c (bin2hex): Never take strlen of argument.
12140 * remote.c (extended_remote_run, remote_rcmd)
12141 (remote_download_trace_state_variable, remote_save_trace_data)
12142 (remote_set_trace_notes): Update.
12143 * tracepoint.c (encode_source_string, tfile_write_status)
12144 (tfile_write_uploaded_tsv): Update.
12145
9c3d6531
TT
121462014-02-12 Tom Tromey <tromey@redhat.com>
12147
12148 * tracepoint.c: Include rsp-low.h.
12149 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
12150 * remote.c: Include rsp-low.h.
12151 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
12152 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
12153 (remote_unescape_input): Move to common/rsp-low.c.
12154 * common/rsp-low.h: New file.
12155 * common/rsp-low.c: New file.
12156 * Makefile.in (SFILES): Add common/rsp-low.c.
12157 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
12158 (COMMON_OBS): Add rsp-low.o.
12159 (rsp-low.o): New target.
12160
01fd3ea5
TT
121612014-02-12 Tom Tromey <tromey@redhat.com>
12162
12163 * utils.h: Include print-utils.h.
12164 (host_address_to_string, plongest, pulongest, phex, phex_nz)
12165 (int_string, core_addr_to_string, core_addr_to_string_nz)
12166 (hex_string, hex_string_custom): Don't declare.
12167 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
12168 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
12169 (hex_string_custom, int_string, core_addr_to_string)
12170 (core_addr_to_string_nz, host_address_to_string): Move to
12171 common/print-utils.c.
12172 * common/print-utils.h: New file.
12173 * common/print-utils.c: New file
12174 * Makefile.in (SFILES): Add common/print-utils.c.
12175 (HFILES_NO_SRCDIR): Add common/print-utils.h.
12176 (COMMON_OBS): Add print-utils.o.
12177 (print-utils.o): New target.
12178
9fb50108
TT
121792014-02-12 Tom Tromey <tromey@redhat.com>
12180
12181 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
12182
0548b5db
MK
121832014-02-12 Mark Kettenis <kettenis@gnu.org>
12184
12185 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
12186
493443a4
MK
121872014-02-12 Mark Kettenis <kettenis@gnu.org>
12188
12189 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
12190 if a PT_IO ptrace request returns sucessfully but indicates that 0
12191 bytes were transferred.
12192
706d0883
PA
121932014-02-12 Pedro Alves <palves@redhat.com>
12194 Kevin Buettner <kevinb@redhat.com>
12195
12196 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
12197 TYPE_INSTANCE_FLAG_CODE_SPACE.
12198
5caa2f0b
PA
121992014-02-12 Pedro Alves <palves@redhat.com>
12200
12201 * h8300-tdep.c (pseudo_from_raw_register)
12202 (raw_from_pseudo_register): New functions.
12203 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
12204 them.
12205
76fd5f74
PA
122062014-02-12 Pedro Alves <palves@redhat.com>
12207
12208 * h8300-tdep.c (h8300_register_sim_regno): New function.
12209 (h8300_gdbarch_init): Install h8300_register_sim_regno as
12210 gdbarch_register_sim_regno hook.
12211
8f008406
SA
122122014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
12213
12214 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
12215
195abc10
SA
122162014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
12217
12218 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
12219
93ffa5b9
MK
122202014-02-12 Mark Kettenis <kettenis@gnu.org>
12221
12222 * obsd-tdep.h (obsd_init_abi): New prototype.
12223 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
12224 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
12225 (obsd_init_abi): New functions.
12226 * i386obsd-tdep.c: Include "obsd-tdep.h".
12227 (i386obsd_init_abi): Call obsd_init_abi.
12228 * amd64obsd-tdep.c: Include "obsd-tdep.h".
12229 (amd64obsd_init_abi): Call obsd_init_abi.
12230 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
12231 obsd-tdep.c to gdb_target_obs.
12232
49caec94
JM
122332014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
12234
12235 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
12236 double float arguments to 16-byte in the argument slots.
12237
e1402065
DE
122382014-02-11 Doug Evans <xdje42@gmail.com>
12239
12240 * configure.ac: Don't crash if pkg-config is not found and guile
12241 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
12242 in guile checks.
12243 * configure: Regenerate.
12244
edcc890f
YQ
122452014-02-11 Yao Qi <yao@codesourcery.com>
12246
12247 * aix-thread.c (aix_thread_xfer_partial): Update comments.
12248 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
12249 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
12250 * gnu-nat.c (gnu_xfer_memory): Likewise.
12251 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
12252 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12253 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12254 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12255
9b409511
YQ
122562014-02-11 Yao Qi <yao@codesourcery.com>
12257
12258 * target.h (enum target_xfer_error): Rename to ...
12259 (enum target_xfer_status): ... it. New. All users updated.
12260 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
12261 New.
12262 (TARGET_XFER_STATUS_ERROR_P): New macro.
12263 (target_xfer_error_to_string): Remove declaration.
12264 (target_xfer_status_to_string): Declare.
12265 (target_xfer_partial_ftype): Adjust it.
12266 (struct target_ops) <to_xfer_partial>: Return
12267 target_xfer_status. Add argument xfered_len. Update
12268 comments.
12269 * target.c (target_xfer_error_to_string): Rename to ...
12270 (target_xfer_status_to_string): ... it. New. All callers
12271 updated.
12272 (target_read_live_memory): Likewise. Call target_xfer_partial
12273 instead of target_read.
12274 (memory_xfer_live_readonly_partial): Return
12275 target_xfer_status. Add argument xfered_len.
12276 (raw_memory_xfer_partial): Likewise.
12277 (memory_xfer_partial_1): Likewise.
12278 (memory_xfer_partial): Likewise.
12279 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
12280 properly. Update debug message.
12281 (default_xfer_partial, current_xfer_partial): Likewise.
12282 (target_write_partial): Likewise.
12283 (target_read_partial): Likewise. All callers updated.
12284 (read_whatever_is_readable): Likewise.
12285 (target_write_with_progress): Likewise.
12286 (target_read_alloc_1): Likewise.
12287
12288 * aix-thread.c (aix_thread_xfer_partial): Likewise.
12289 * auxv.c (procfs_xfer_auxv): Likewise.
12290 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
12291 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12292 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12293 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
12294 * corefile.c (read_memory): Adjust.
12295 * corelow.c (core_xfer_partial): Likewise.
12296 * ctf.c (ctf_xfer_partial): Likewise.
12297 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
12298 updated.
12299 (darwin_xfer_partial): Likewise.
12300 * exec.c (section_table_xfer_memory_partial): Likewise. All
12301 callers updated.
12302 (exec_xfer_partial): Likewise.
12303 * exec.h (section_table_xfer_memory_partial): Update
12304 declaration.
12305 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
12306 negative.
12307 (gnu_xfer_partial): Likewise.
12308 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
12309 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
12310 (ia64_hpux_xfer_solib_got): Likewise.
12311 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
12312 type of 'partial_len' to ULONGEST.
12313 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
12314 * linux-nat.c (linux_xfer_siginfo ): Likewise.
12315 (linux_nat_xfer_partial): Likewise.
12316 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
12317 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
12318 * monitor.c (monitor_xfer_memory): Likewise.
12319 (monitor_xfer_partial): Likewise.
12320 * procfs.c (procfs_xfer_partial): Likewise.
12321 * record-btrace.c (record_btrace_xfer_partial): Likewise.
12322 * record-full.c (record_full_xfer_partial): Likewise.
12323 (record_full_core_xfer_partial): Likewise.
12324 * remote-sim.c (gdbsim_xfer_memory): Likewise.
12325 (gdbsim_xfer_partial): Likewise.
12326 * remote.c (remote_write_bytes_aux): Likewise. All callers
12327 updated.
12328 (remote_write_bytes, remote_read_bytes): Likewise. All
12329 callers updated.
12330 (remote_flash_erase): Likewise. All callers updated.
12331 (remote_write_qxfer): Likewise. All callers updated.
12332 (remote_read_qxfer): Likewise. All callers updated.
12333 (remote_xfer_partial): Likewise.
12334 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12335 (rs6000_xfer_shared_libraries): Likewise.
12336 * sol-thread.c (sol_thread_xfer_partial): Likewise.
12337 (sol_thread_xfer_partial): Likewise.
12338 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12339 (sparc_xfer_partial): Likewise.
12340 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
12341 updated.
12342 (spu_xfer_partial): Likewise.
12343 * spu-multiarch.c (spu_xfer_partial): Likewise.
12344 * tracepoint.c (tfile_xfer_partial): Likewise.
12345 * windows-nat.c (windows_xfer_memory): Likewise.
12346 (windows_xfer_shared_libraries): Likewise.
12347 (windows_xfer_partial): Likewise.
12348 * valprint.c: Replace 'target_xfer_error' with
12349 'target_xfer_status' in comments.
12350
a8e63083
JB
123512014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
12352
12353 Checked in by Joel Brobecker <brobecker@adacore.com>.
12354 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
12355
e86b67d3
JB
123562014-02-11 Joel Brobecker <brobecker@adacore.com>
12357
12358 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
12359 function parameters.
12360
4b7d1f7f
WN
123612014-02-10 Will Newton <will.newton@linaro.org>
12362
12363 * elfread.c (elf_rel_plt_read): Look for a .got section if
12364 looking up .got.plt fails.
12365 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
12366 on address passed to elf_gnu_ifunc_record_cache.
12367 (elf_gnu_ifunc_resolve_addr): Likewise.
12368 (elf_gnu_ifunc_resolver_return_stop): Likewise.
12369
961842b2
JM
123702014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
12371
12372 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
12373 (X_RETTURN): New macro.
12374 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
12375
12376 * sparc64-tdep.c (sparc64_init_abi): Hook
12377 sparc_in_function_epilogue_p.
12378
3f03e7b1
GB
123792014-02-10 Gary Benson <gbenson@redhat.com>
12380
12381 * symfile-debug.c (debug_qf_expand_symtabs_matching):
12382 Rename name_matcher to symbol_matcher.
12383
96f861ef
GB
123842014-02-10 Gary Benson <gbenson@redhat.com>
12385
12386 * symfile-debug.c (debug_qf_expand_symtabs_matching):
12387 Use expand_symtabs_file_matcher_ftype and
12388 expand_symtabs_symbol_matcher_ftype.
12389
ee01b665
JB
123902014-02-10 Joel Brobecker <brobecker@adacore.com>
12391
12392 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
12393 (struct ada_symbol_cache): New.
12394 (ada_free_symbol_cache): Forward declare.
12395 (struct ada_pspace_data): New.
12396 (ada_pspace_data_handle): New static global.
12397 (get_ada_pspace_data, ada_pspace_data_cleanup)
12398 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
12399 (cache_space, cache): Delete, now folded inside struct
12400 ada_pspace_data.
12401 (ada_get_symbol_cache): New function.
12402 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
12403 implementation.
12404 (_initialize_ada_language): Remove initialization of cache_space.
12405 Move call to observer_attach_inferior_exit up, grouping it
12406 with the other observer registrations inside this function.
12407 Rename command to be more general. Add call to
12408 register_program_space_data_with_cleanup.
12409
143adbbf
JB
124102014-02-10 Joel Brobecker <brobecker@adacore.com>
12411
12412 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
12413 ada_new_objfile_observer.
12414 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
12415 (_initialize_tasks): Update uses of ada_new_objfile_observer
12416 and ada_tasks_normal_stop_observer.
12417
aa4fb036
JB
124182014-02-10 Joel Brobecker <brobecker@adacore.com>
12419
12420 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
12421 returned by the 'Length attribute to integer.
12422
9dee8cc6
JB
124232014-02-10 Joel Brobecker <brobecker@adacore.com>
12424
12425 * ada-lang.c (_initialize_ada_language): Initialize
12426 cache_space obstack.
12427
3d9434b5
JB
124282014-02-10 Joel Brobecker <brobecker@adacore.com>
12429
12430 * ada-lang.c (HASH_SIZE): New macro.
12431 (struct cache_entry): New type.
12432 (cache_space, cache): New static globals.
12433 (ada_clear_symbol_cache, find_entry): New functions.
12434 (lookup_cached_symbol, cache_symbol): Implement.
12435 (ada_new_objfile_observer, ada_free_objfile_observer): New.
12436 (_initialize_ada_language): Attach ada_new_objfile_observer
12437 and ada_free_objfile_observer.
12438
f0c5f9b2
JB
124392014-02-10 Joel Brobecker <brobecker@adacore.com>
12440
12441 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
12442 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
12443 struct block * parameter.
12444 (ada_lookup_symbol_list_worker): Constify local variable "block".
12445 Remove cast which is no longer necessary.
12446
ed3ef339
DE
124472014-02-10 Doug Evans <xdje42@gmail.com>
12448
12449 Add Guile as an extension language.
12450 * NEWS: Mention Guile scripting.
12451 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
12452 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
12453 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
12454 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
12455 (CLIBS): Add GUILE_LIBS.
12456 (install-guile): New rule.
12457 (guile.o): New rule.
12458 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
12459 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
12460 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
12461 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
12462 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
12463 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
12464 (scm-type.o, scm-utils.o, scm-value.o): New rules.
12465 * configure.ac: New option --with-guile.
12466 * configure: Regenerate.
12467 * config.in: Regenerate.
12468 * auto-load.c: Remove #include "python/python.h". Add #include
12469 "gdb/section-scripts.h".
12470 (source_section_scripts): Handle Guile scripts.
12471 (_initialize_auto_load): Add name of Guile objfile script to
12472 scripts-directory help text.
12473 * breakpoint.c (condition_command): Tweak comment to include Scheme.
12474 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
12475 (struct breakpoint): New member scm_bp_object.
12476 * defs.h (enum command_control_type): New value guile_control.
12477 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
12478 "extension.h".
12479 (show_user): Update comment.
12480 (_initialize_cli_cmds): Update help text for "show user". Update help
12481 text for max-user-call-depth.
12482 * cli/cli-script.c: Remove #include "python/python.h". Add #include
12483 "extension.h".
12484 (multi_line_command_p): Add guile_control.
12485 (print_command_lines): Handle guile_control.
12486 (execute_control_command, recurse_read_control_structure): Ditto.
12487 (process_next_line): Recognize "guile" commands.
12488 * disasm.c (gdb_disassemble_info): Make non-static.
12489 * disasm.h: #include "dis-asm.h".
12490 (struct gdbarch): Add forward decl.
12491 (gdb_disassemble_info): Declare.
12492 * extension.c: #include "guile/guile.h".
12493 (extension_languages): Add guile.
12494 (get_ext_lang_defn): Handle EXT_LANG_GDB.
12495 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
12496 * gdbtypes.c (get_unsigned_type_max): New function.
12497 (get_signed_type_minmax): New function.
12498 * gdbtypes.h (get_unsigned_type_max): Declare.
12499 (get_signed_type_minmax): Declare.
12500 * guile/README: New file.
12501 * guile/guile-internal.h: New file.
12502 * guile/guile.c: New file.
12503 * guile/guile.h: New file.
12504 * guile/scm-arch.c: New file.
12505 * guile/scm-auto-load.c: New file.
12506 * guile/scm-block.c: New file.
12507 * guile/scm-breakpoint.c: New file.
12508 * guile/scm-disasm.c: New file.
12509 * guile/scm-exception.c: New file.
12510 * guile/scm-frame.c: New file.
12511 * guile/scm-gsmob.c: New file.
12512 * guile/scm-iterator.c: New file.
12513 * guile/scm-lazy-string.c: New file.
12514 * guile/scm-math.c: New file.
12515 * guile/scm-objfile.c: New file.
12516 * guile/scm-ports.c: New file.
12517 * guile/scm-pretty-print.c: New file.
12518 * guile/scm-safe-call.c: New file.
12519 * guile/scm-string.c: New file.
12520 * guile/scm-symbol.c: New file.
12521 * guile/scm-symtab.c: New file.
12522 * guile/scm-type.c: New file.
12523 * guile/scm-utils.c: New file.
12524 * guile/scm-value.c: New file.
12525 * guile/lib/gdb.scm: New file.
12526 * guile/lib/gdb/boot.scm: New file.
12527 * guile/lib/gdb/experimental.scm: New file.
12528 * guile/lib/gdb/init.scm: New file.
12529 * guile/lib/gdb/iterator.scm: New file.
12530 * guile/lib/gdb/printing.scm: New file.
12531 * guile/lib/gdb/types.scm: New file.
12532 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
12533 (VPATH): Add $(GUILE_SRCDIR).
12534 (GUILE_DIR): New variable.
12535 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
12536 (all): Add stamp-guile dependency.
12537 (stamp-guile): New rule.
12538 (clean-guile, install-guile, uninstall-guile): New rules.
12539 (install-only): Add install-guile dependency.
12540 (uninstall): Add uninstall-guile dependency.
12541 (clean): Add clean-guile dependency.
12542
ac020ec5
DE
125432014-02-09 Doug Evans <xdje42@gmail.com>
12544
12545 Revert this patch (which I approved, mea culpa).
12546
12547 2014-02-08 Mark Kettenis <kettenis@gnu.org>
12548
12549 * Makefile.in (all-lib): Remove.
12550 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12551
2a081c59
JK
125522014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
12553
12554 Fix Python stack corruption.
12555 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
12556 gdb_py_longest.
12557
0a6bd22d
MK
125582014-02-08 Mark Kettenis <kettenis@gnu.org>
12559
12560 * Makefile.in (all-lib): Remove.
12561 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12562
1a860409
DE
125632014-02-07 Doug Evans <dje@google.com>
12564
12565 * extension-priv.h (extension_language_script_ops): Add comment.
12566 (extension_language_ops): Add comment.
caf5a491 12567 (active_ext_lang_state): Fix typo in comment.
1a860409 12568
d137e6dc
PA
125692014-02-07 Pedro Alves <palves@redhat.com>
12570
0dcb32c3 12571 PR breakpoints/16292
d137e6dc
PA
12572 * infrun.c (handle_signal_stop) <signal arrives while stepping
12573 over a breakpoint>: Switch back to the stepping thread.
12574
ce6d0892
YQ
125752014-02-07 Yao Qi <yao@codesourcery.com>
12576
12577 * target.c (target_xfer_partial): Return zero if LEN is zero.
12578
2ed4b548
YQ
125792014-02-07 Yao Qi <yao@codesourcery.com>
12580
12581 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
12582 (ld_so_xfer_auxv): Likewise.
12583 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12584 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12585 * corelow.c (core_xfer_partial): Likewise.
12586 * ctf.c (ctf_xfer_partial): Likewise.
12587 * darwin-nat.c (darwin_read_dyld_info): Likewise.
12588 (darwin_xfer_partial): Likewise.
12589 * exec.c (exec_xfer_partial): Likewise.
12590 * gnu-nat.c (gnu_xfer_partial): Likewise.
12591 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
12592 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
12593 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
12594 * linux-nat.c (linux_xfer_siginfo): Likewise.
12595 (linux_proc_xfer_spu): Likewise.
12596 * procfs.c (procfs_xfer_partial): Likewise.
12597 * record-full.c (record_full_xfer_partial): Likewise.
12598 (record_full_core_xfer_partial): Likewise.
12599 * remote-sim.c (gdbsim_xfer_partial): Likewise.
12600 * remote.c (remote_write_qxfer): Likewise.
12601 (remote_write_qxfer, remote_read_qxfer): Likewise.
12602 (remote_xfer_partial): Likewise.
12603 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12604 (rs6000_xfer_shared_libraries): Likewise.
12605 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12606 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12607 (spu_xfer_partial): Likewise.
12608 * target.c (memory_xfer_partial_1): Likewise.
12609 * tracepoint.c (tfile_xfer_partial): Likewise.
12610 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
12611 (windows_xfer_partial): Likewise.
12612
c09f20e4
YQ
126132014-02-07 Yao Qi <yao@codesourcery.com>
12614
12615 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
12616 comments.
12617 (core_xfer_shared_libraries_aix): Likewise.
12618 * gdbarch.c, gdbarch.h: Regenerated.
12619 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
12620 ULONGEST. Change 'len_avail' type to ULONGEST.
12621 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12622 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12623 declaration.
12624 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
12625
8635b3bf
YQ
126262014-02-07 Yao Qi <yao@codesourcery.com>
12627
12628 * corefile.c (memory_error): Get 'exception' from ERR and pass
12629 'exception' to throw_error.
12630
6dddc817
DE
126312014-02-06 Doug Evans <xdje42@gmail.com>
12632
12633 * configure.ac (libpython checking): Remove all but python.o from
12634 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
12635 * configure: Regenerate.
12636
12637 * Makefile.in (SFILES): Add extension.c.
12638 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
12639 (COMMON_OBS): Add extension.o.
12640 * extension.h: New file.
12641 * extension-priv.h: New file.
12642 * extension.c: New file.
12643
12644 * python/python-internal.h: #include "extension.h".
12645 (gdbpy_auto_load_enabled): Declare.
12646 (gdbpy_apply_val_pretty_printer): Declare.
12647 (gdbpy_apply_frame_filter): Declare.
12648 (gdbpy_preserve_values): Declare.
12649 (gdbpy_breakpoint_cond_says_stop): Declare.
12650 (gdbpy_breakpoint_has_cond): Declare.
12651 (void source_python_script_for_objfile): Delete.
12652 * python/python.c: #include "extension-priv.h".
12653 Delete inclusion of "observer.h".
12654 (extension_language_python): Moved here and renamed from
12655 script_language_python in py-auto-load.c.
12656 Redefined to be of type extension_language_defn.
12657 (python_extension_script_ops): New global.
12658 (python_extension_ops): New global.
12659 (struct python_env): New member previous_active.
12660 (restore_python_env): Call restore_active_ext_lang.
12661 (ensure_python_env): Call set_active_ext_lang.
12662 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
12663 New arg extlang.
12664 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
12665 New arg extlang.
12666 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
12667 New arg extlang.
12668 (gdbpy_eval_from_control_command): Renamed from
12669 eval_python_from_control_command, made static. New arg extlang.
12670 (gdbpy_source_script) Renamed from source_python_script, made static.
12671 New arg extlang.
12672 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
12673 result to int. New arg extlang.
12674 (gdbpy_source_objfile_script): Renamed from
12675 source_python_script_for_objfile, made static. New arg extlang.
12676 (gdbpy_start_type_printers): Renamed from start_type_printers, made
12677 static. New args extlang, extlang_printers. Change result type to
12678 "void".
12679 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
12680 static. New arg extlang. Rename arg printers to extlang_printers
12681 and change type to ext_lang_type_printers *.
12682 (gdbpy_free_type_printers): Renamed from free_type_printers, made
12683 static. Replace argument arg with extlang, extlang_printers.
12684 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
12685 (!HAVE_PYTHON, source_python_script): Delete.
12686 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
12687 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
12688 (!HAVE_PYTHON, start_type_printers): Delete.
12689 (!HAVE_PYTHON, apply_type_printers): Delete.
12690 (!HAVE_PYTHON, free_type_printers): Delete.
12691 (_initialize_python): Delete call to observer_attach_before_prompt.
12692 (finalize_python): Set/restore active extension language.
12693 (gdbpy_finish_initialization) Renamed from
12694 finish_python_initialization, made static. New arg extlang.
12695 (gdbpy_initialized): New function.
12696 * python/python.h: #include "extension.h". Delete #include
12697 "value.h", "mi/mi-cmds.h".
12698 (extension_language_python): Declare.
12699 (GDBPY_AUTO_FILE_NAME): Delete.
12700 (enum py_bt_status): Moved to extension.h and renamed to
12701 ext_lang_bt_status.
12702 (enum frame_filter_flags): Moved to extension.h.
12703 (enum py_frame_args): Moved to extension.h and renamed to
12704 ext_lang_frame_args.
12705 (finish_python_initialization): Delete.
12706 (eval_python_from_control_command): Delete.
12707 (source_python_script): Delete.
12708 (apply_val_pretty_printer): Delete.
12709 (apply_frame_filter): Delete.
12710 (preserve_python_values): Delete.
12711 (gdbpy_script_language_defn): Delete.
12712 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
12713 (start_type_printers, apply_type_printers, free_type_printers): Delete.
12714
12715 * auto-load.c: #include "extension.h".
12716 (GDB_AUTO_FILE_NAME): Delete.
12717 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
12718 (script_language_gdb): Delete, moved to extension.c and renamed to
12719 extension_language_gdb.
12720 (source_gdb_script_for_objfile): Delete.
12721 (auto_load_pspace_info): New member unsupported_script_warning_printed.
12722 (loaded_script): Change type of language member to
12723 struct extension_language_defn *.
12724 (init_loaded_scripts_info): Initialize
12725 unsupported_script_warning_printed.
12726 (maybe_add_script): Make static. Change type of language arg to
12727 struct extension_language_defn *.
12728 (clear_section_scripts): Reset unsupported_script_warning_printed.
12729 (auto_load_objfile_script_1): Rewrite to use extension language API.
12730 (auto_load_objfile_script): Make public. Remove support-compiled-in
12731 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
12732 (source_section_scripts): Rewrite to use extension language API.
12733 (load_auto_scripts_for_objfile): Rewrite to use
12734 auto_load_scripts_for_objfile.
12735 (collect_matching_scripts_data): Change type of language member to
12736 struct extension_language_defn *.
12737 (auto_load_info_scripts): Change type of language arg to
12738 struct extension_language_defn *.
12739 (unsupported_script_warning_print): New function.
12740 (script_not_found_warning_print): Make static.
12741 (_initialize_auto_load): Rewrite construction of scripts-directory
12742 help.
12743 * auto-load.h (struct objfile): Add forward decl.
12744 (struct script_language): Delete.
12745 (struct auto_load_pspace_info): Add forward decl.
12746 (struct extension_language_defn): Add forward decl.
12747 (maybe_add_script): Delete.
12748 (auto_load_objfile_script): Declare.
12749 (script_not_found_warning_print): Delete.
12750 (auto_load_info_scripts): Update prototype.
12751 (auto_load_gdb_scripts_enabled): Declare.
12752 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
12753 auto_load_python_scripts_enabled and made public.
12754 (script_language_python): Delete, moved to python.c.
12755 (gdbpy_script_language_defn): Delete.
12756 (info_auto_load_python_scripts): Update to use
12757 extension_language_python.
12758
12759 * breakpoint.c (condition_command): Replace call to
12760 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
12761 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
12762 with call to breakpoint_ext_lang_cond_says_stop.
12763 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
12764 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
12765 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
12766 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
12767 New arg slang.
12768 (local_setattro): Print name of extension language with existing
12769 stop condition.
12770
12771 * valprint.c (val_print, value_print): Update to call
12772 apply_ext_lang_val_pretty_printer.
12773 * cp-valprint.c (cp_print_value): Update call to
12774 apply_ext_lang_val_pretty_printer.
12775 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
12776 (gdbpy_apply_val_pretty_printer): Renamed from
12777 apply_val_pretty_printer. New arg extlang.
12778 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
12779
12780 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
12781 extension language API.
12782 * cli/cli-script.c (execute_control_command): Update to call
12783 eval_ext_lang_from_control_command.
12784
12785 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
12786 enum ext_lang_bt_status values. Update call to
12787 apply_ext_lang_frame_filter.
12788 (mi_cmd_stack_list_locals): Ditto.
12789 (mi_cmd_stack_list_args): Ditto.
12790 (mi_cmd_stack_list_variables): Ditto.
12791 * mi/mi-main.c: Delete #include "python/python-internal.h".
12792 Add #include "extension.h".
12793 (mi_cmd_list_features): Replace reference to python internal variable
12794 gdb_python_initialized with call to ext_lang_initialized_p.
12795
12796 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
12797 Update to use enum ext_lang_frame_args. Update to call
12798 apply_ext_lang_frame_filter.
12799 * python/py-framefilter.c (extract_sym): Update to use enum
12800 ext_lang_bt_status.
12801 (extract_value, py_print_type, py_print_value): Ditto.
12802 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
12803 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
12804 (py_print_frame): Ditto.
12805 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
12806 New arg extlang. Update to use enum ext_lang_bt_status.
12807
12808 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
12809 finish_python_initialization. Replace with call to
12810 finish_ext_lang_initialization.
12811
12812 * typeprint.c (do_free_global_table): Update to call
12813 free_ext_lang_type_printers.
12814 (create_global_typedef_table): Update to call
12815 start_ext_lang_type_printers.
12816 (find_global_typedef): Update to call apply_ext_lang_type_printers.
12817 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
12818 (type_print_options): Change type of global_printers from "void *"
12819 to "struct ext_lang_type_printers *".
12820
12821 * value.c (preserve_values): Update to call preserve_ext_lang_values.
12822 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
12823 (gdbpy_preserve_values): Renamed from preserve_python_values.
12824 New arg extlang.
12825 (!HAVE_PYTHON, preserve_python_values): Delete.
12826
12827 * utils.c (quit_flag): Delete, moved to extension.c.
12828 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
12829 extension.c.
12830
12831 * eval.c: Delete #include "python/python.h".
12832 * main.c: Delete #include "python/python.h".
12833
12834 * defs.h: Update comment.
12835
6af79985
JB
128362014-02-06 Joel Brobecker <brobecker@adacore.com>
12837
12838 GDB 7.7 released.
12839
12c5175d
MK
128402014-02-05 Mark Kettenis <kettenis@gnu.org>
12841
12842 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
12843 defined.
12844
8dc5b319
YQ
128452014-02-05 Yao Qi <yao@codesourcery.com>
12846
12847 * remote.c (remote_pass_signals): Remove local 'buf' and use
12848 rs->buf.
12849 (remote_program_signals): Likewise.
12850
de7b2893
YQ
128512014-02-05 Yao Qi <yao@codesourcery.com>
12852
12853 * ctf.c: Include "inferior.h" and "gdbthread.h".
12854 (CTF_PID): A new macro.
12855 (ctf_open): Call inferior_appeared and add_thread_silent.
12856 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
12857 (ctf_thread_alive): New function.
12858 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
12859
66d032ac
YQ
128602014-02-05 Yao Qi <yao@codesourcery.com>
12861
12862 Revert this patch:
12863
12864 2013-05-24 Yao Qi <yao@codesourcery.com>
12865
12866 * tracepoint.c (TFILE_PID): Remove.
12867 (tfile_open): Don't add thread and inferior.
12868 (tfile_close): Don't set 'inferior_ptid'. Don't call
12869 exit_inferior_silent.
12870 (tfile_thread_alive): Remove.
12871 (init_tfile_ops): Don't set field 'to_thread_alive' of
12872 tfile_ops.
12873
f4ccffad
CE
128742014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
12875
12876 * remote.c (remote_start_remote): Call remote_check_symbols even
12877 if only symbol-file (not file) has been given.
12878
591a12a1
UW
128792014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12880
12881 * gdbarch.sh (skip_entrypoint): New callback.
12882 * gdbarch.c, gdbarch.h: Regenerate.
12883 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
12884 * infrun.c (fill_in_stop_func): Likewise.
12885 * ppc-linux-tdep.c: Include "elf/ppc64.h".
12886 (ppc_elfv2_elf_make_msymbol_special): New function.
12887 (ppc_elfv2_skip_entrypoint): Likewise.
12888 (ppc_linux_init_abi): Install them for ELFv2.
12889
cc0e89c5
UW
128902014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12891
12892 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
12893 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
12894 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
12895 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
12896 structures returned in GPRs.
12897
52f548e4
UW
128982014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12899
12900 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
12901 offset to the stack parameter list for the ELFv2 ABI.
12902
d4094b6a
UW
129032014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12904
12905 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
12906 set_gdbarch_convert_from_func_ptr_addr and
12907 set_gdbarch_elf_make_msymbol_special for ELFv1.
12908 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
12909 function descriptors on ELFv1.
12910 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
12911 set up r12 at function entry.
12912
cd453cd0
UW
129132014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12914
12915 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
12916 (struct gdbarch_tdep): New member elf_abi.
12917
12918 * rs6000-tdep.c: Include "elf/ppc64.h".
12919 (rs6000_gdbarch_init): Detect ELF ABI version.
12920
0ff3e01f
UW
129212014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12922
12923 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
12924 within a register pair holding a DFP 128-bit value on little-endian.
12925 (ppc64_sysv_abi_return_value_base): Likewise.
12926 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
12927 (dfp_pseudo_register_write): Likewise.
12928
5b757e5d
UW
129292014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12930
12931 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
12932 offset on little-endian when passing _Decimal32.
12933 (ppc64_sysv_abi_return_value_base): Likewise for return values.
12934
084ee545
UW
129352014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12936
12937 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
12938 of the overlapped FP register within the VSX register on little-
12939 endian platforms.
12940 (efpr_pseudo_register_write): Likewise.
12941
d63167af
UW
129422014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12943
12944 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
12945 offset on little-endian when passing small structures.
12946
e765b44c
UW
129472014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12948
12949 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
12950 (struct ppc64_sysv_argpos): New data structure.
12951 (ppc64_sysv_abi_push_float): Remove.
12952 (ppc64_sysv_abi_push_val): New function.
12953 (ppc64_sysv_abi_push_integer): Likewise.
12954 (ppc64_sysv_abi_push_freg): Likewise.
12955 (ppc64_sysv_abi_push_vreg): Likewise.
12956 (ppc64_sysv_abi_push_param): Likewise.
12957 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
12958 (ppc64_sysv_abi_return_value_base): New function.
12959 (ppc64_sysv_abi_return_value): Refactor to use it.
12960
36c24d95
UW
129612014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12962
12963 * NEWS: Document new target powerpc64le-*-linux*.
12964
26fd9228
MK
129652014-02-04 Mark Kettenis <kettenis@gnu.org>
12966
12967 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
12968 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
12969 core dumps.
12970 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
12971 register set used in ELF core dumps. Add floating-point register set.
12972
c5bb7362
KB
129732014-02-03 Kevin Buettner <kevinb@redhat.com>
12974
74228e77 12975 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
c5bb7362
KB
12976 dwarf2_to_gdb[] table using symbolic constants. Adjust
12977 penultimate entry from number representing the PC register
12978 to symbolic constant representing the MDR register. Add
12979 constant for the PC register to the end of the table.
12980
af09351e
MK
129812014-02-03 Mark Kettenis <kettenis@gnu.org>
12982
12983 * bsd-kvm.c: Include <sys/param.h>
12984
8507e05d
MK
129852014-02-03 Mark Kettenis <kettenis@gnu.org>
12986
12987 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
12988
ae56bfb8
JB
129892014-01-31 Joel Brobecker <brobecker@adacore.com>
12990
12991 * ada-lang.h (clear_ada_sym_cache): Delete.
12992
718ee4dc
UW
129932014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
12994
12995 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
12996
401e27fd
JM
129972014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
12998
12999 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
13000 the sigreturn register save area only if the syscall is
13001 sigreturn.
13002
a7c88acd
JB
130032014-01-29 Joel Brobecker <brobecker@adacore.com>
13004
13005 * valops.c (value_slice): Minor reformatting.
13006
fa0079ea
UW
130072014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
13008
13009 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
13010
c6044dd1
JB
130112014-01-28 Joel Brobecker <brobecker@adacore.com>
13012
13013 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
13014 New static globals.
13015 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
13016 (ada_ignore_descriptive_types_p): New static global.
13017 (find_parallel_type_by_descriptive_type): Return immediately
13018 if ada_ignore_descriptive_types_p is set.
13019 (_initialize_ada_language): Register new commands "maintenance
13020 set ada", "maintenance show ada", "maintenance set ada
13021 ignore-descriptive-types" and "maintenance show ada
13022 ignore-descriptive-types".
13023 * NEWS: Add entry for new "maint ada set/show
13024 ignore-descriptive-types" commands.
13025
568e808b
MM
130262014-01-27 Markus Metzger <markus.t.metzger@intel.com>
13027
13028 * record-btrace.c (record_btrace_close): Call btrace_teardown
13029 for all threads.
13030
467d141b
JB
130312014-01-27 Joel Brobecker <brobecker@adacore.com>
13032
13033 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
13034 "ui-out.h".
13035
fb151210
JB
130362014-01-27 Joel Brobecker <brobecker@adacore.com>
13037
13038 * ada-typeprint (type_is_full_subrange_of_target_type):
13039 New function.
13040 (print_range): Add parameter bounds_prefered_p. If not set,
13041 try printing range types using the name of their base type.
13042 (print_range_type): Add parameter bounds_prefered_p.
13043 Use it in call to print_range.
13044 (print_array_type, ada_print_type): Update calls to print_range
13045 and print_range_type.
13046
aba02109
JB
130472014-01-27 Joel Brobecker <brobecker@adacore.com>
13048
13049 * ada-typeprint.c (print_array_type, print_choices, print_range)
13050 (print_range_bound, print_dynamic_range_bound, print_range_type):
13051 Remove declaration.
13052
e62e21fd
JB
130532014-01-27 Joel Brobecker <brobecker@adacore.com>
13054
13055 * ada-typeprint.c (print_range): Add missing empty line
13056 after local declaration.
13057
859cf5d1
JB
130582014-01-27 Joel Brobecker <brobecker@adacore.com>
13059
13060 * ada-valprint.c (print_optional_low_bound): Get index_type's
13061 target type for as long as it is a TYPE_CODE_RANGE.
13062
25790f6f
JB
130632014-01-27 Joel Brobecker <brobecker@adacore.com>
13064
13065 * procfs.c (procfs_make_note_section): Remove assertion and
13066 associated comment.
13067
6b6aa828
YQ
130682014-01-24 Yao Qi <yao@codesourcery.com>
13069
13070 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
13071 * corelow.c (get_core_siginfo): Likewise.
13072
5d6df423
YQ
130732014-01-24 Yao Qi <yao@codesourcery.com>
13074
13075 * remote.c (remote_write_bytes_aux): Change type of 'len' to
13076 ULONGEST. Don't check 'len' is negative.
13077 (remote_write_bytes): Change type of 'len' to ULONGEST.
13078
83b645b8
TT
130792014-01-23 Tom Tromey <tromey@redhat.com>
13080
13081 PR python/16485:
13082 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
13083 Handle exception from frame.block.
13084 (FrameVars.fetch_frame_locals): Likewise.
13085
0740f8d8
TT
130862014-01-23 Tom Tromey <tromey@redhat.com>
13087
13088 PR python/16487:
13089 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
13090 on a NULL pointer. Move "goto error" to correct place.
13091
21909fa1
TT
130922014-01-23 Tom Tromey <tromey@redhat.com>
13093
13094 PR python/16491:
13095 * python/py-framefilter.c (apply_frame_filter): Call
13096 ensure_python_env after computing gdbarch.
13097
17fde6d0
YQ
130982014-01-23 Yao Qi <yao@codesourcery.com>
13099
13100 * target.c (raw_memory_xfer_partial): Change argument type
13101 from void * to gdb_byte *.
13102 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
13103
87ce2a04
DE
131042014-01-22 Doug Evans <dje@google.com>
13105
13106 New gdbserver option --debug-format=timestamp.
13107 * NEWS: Mention it.
13108
237b092b
AA
131092014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
13110
13111 * syscalls/s390x-linux.xml: New file.
13112 * syscalls/s390-linux.xml: New file.
13113 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
13114 (XML_SYSCALL_FILENAME_S390X): Likewise.
13115 (op_svc): New enum value for SVC opcode.
13116 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
13117 (s390_linux_get_syscall_number): New function.
13118 (s390_gdbarch_init): Register '*get_syscall_number' and the
13119 syscall xml file name.
13120 * data-directory/Makefile.in (SYSCALLS_FILES): Add
13121 "s390-linux.xml" and "s390x-linux.xml".
13122 * NEWS: Announce new feature.
13123
54bff650
BS
131242014-01-22 Baruch Siach <baruch@tkos.co.il>
13125
13126 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
13127
14e361d7
PA
131282014-01-22 Pedro Alves <palves@redhat.com>
13129
13130 * xtensa-config.c: Include defs.h.
13131
46bbb3ed
JB
131322014-01-22 Joel Brobecker <brobecker@adacore.com>
13133
13134 * common/common-utils.h: Add "ARI:" comment beside __func__
13135 reference.
13136
3a80edfc
JB
131372014-01-22 Joel Brobecker <brobecker@adacore.com>
13138
13139 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
13140 documentation a bit.
13141
4869db5e
RM
131422014-01-21 Roland McGrath <mcgrathr@google.com>
13143
13144 * configure.ac: Call AM_PROG_INSTALL_STRIP.
13145 * configure: Regenerate.
13146 * aclocal.m4: Regenerate.
13147 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
13148 New substituted variables.
13149 (install-strip): New target.
13150 (INSTALL_SCRIPT): New substituted variable.
13151 (FLAGS_TO_PASS): Add it.
13152 (install-only): Use $(INSTALL_SCRIPT) rather than
13153 $(INSTALL_PROGRAM) for gcore.
13154
9ea4267d
TT
131552014-01-20 Tom Tromey <tromey@redhat.com>
13156
13157 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
13158 together.
13159
1f2bdf09
TT
131602014-01-20 Tom Tromey <tromey@redhat.com>
13161
13162 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
13163 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
13164 (deprecated_cmd_warning, complete_on_cmdlist): Update.
13165 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
13166 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
13167 (struct cmd_list_element) <flags>: Remove.
13168 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
13169 doc_allocated>: New fields.
13170 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
13171 bitfields.
13172 * maint.c (maintenance_do_deprecate): Update.
13173 * top.c (execute_command): Update.
13174
e671835b
BS
131752014-01-20 Baruch Siach <baruch@tkos.co.il>
13176
13177 * xtensa-linux-nat.c: Include asm/ptrace.h.
13178
50367cd2
IB
131792014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13180
13181 * Makefile.in (SFILES): Add d-support.c.
13182 (COMMON_OBS): Add d-support.o.
13183 * d-lang.h (d_parse_symbol): Add comment, now defined in
13184 d-support.c.
13185 * d-lang.c (parse_call_convention)
13186 (parse_attributes, parse_function_types)
13187 (parse_function_args, parse_type, parse_identifier)
13188 (call_convention_p, d_parse_symbol): Move functions to ...
13189 * d-support.c: ... New file.
13190
ec9f644a
IB
131912014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13192
13193 * d-lang.h (d_parse_symbol): Add declaration.
13194 * d-lang.c (extract_identifiers)
13195 (extract_type_info): Remove functions.
13196 (parse_call_convention, parse_attributes)
13197 (parse_function_types, parse_function_args)
13198 (parse_type, parse_identifier, call_convention_p)
13199 (d_parse_symbol): New functions.
13200 (d_demangle): Use d_parse_symbol to demangle D symbols.
13201
94b1b47e
IB
132022014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13203
13204 * d-lang.h (struct builtin_d_type): New data type.
13205 (builtin_d_type): Add declaration.
13206 * d-lang.c (d_language_arch_info, build_d_types)
13207 (builtin_d_type): New functions.
13208 (enum d_primitive_types): New data type.
13209 (d_language_defn): Change c_language_arch_info to
13210 d_language_arch_info.
13211 (d_type_data): New static variable.
13212 (_initialize_d_language): Initialize d_type_data.
13213
63778547
IB
132142014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13215
13216 * d-lang.h (d_main_name): Add declaration.
13217 * d-lang.c (d_main_name): New function.
13218 * symtab.c (find_main_name): Add call to d_main_name.
13219
3271ba66
IB
132202014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13221
13222 * d-lang.c (d_language_defn): Change macro_expansion_c to
13223 macro_expansion_no.
13224
d36b3012
IB
132252014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13226
13227 * MAINTAINERS: Add myself as a write-after-approval maintainer.
13228
c90a6fb7
SDJ
132292014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
13230
13231 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
13232 gdb_exception" declaration.
13233 * remote.c (getpkt_or_notif_sane): Likewise.
13234
749234e5
DE
132352014-01-17 Doug Evans <dje@google.com>
13236
13237 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
13238 function, contents of dirnames_to_char_ptr_vec_append moved here.
13239 (delim_string_to_char_ptr_vec): New function.
13240 (dirnames_to_char_ptr_vec_append): Rewrite.
13241 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
13242
df049a58
DE
132432014-01-17 Doug Evans <dje@google.com>
13244
13245 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
13246 and moved here ...
13247 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
13248 #include "common-utils.h".
13249 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
13250 * common/vec.h (VEC_ASSERT_PASS): Update.
13251 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
13252 (MACH_CHECK_ERROR): Update.
13253
69f97648
SM
132542014-01-17 Simon Marchi <simon.marchi@ericsson.com>
13255
13256 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
13257 comments.
13258 * gdbarch.h: Regenerate.
13259
98b1cfdc
TT
132602014-01-16 Tom Tromey <tromey@redhat.com>
13261
13262 * value.c (struct value) <regnum>: Move earlier.
13263
77a19445
TT
132642014-01-16 Tom Tromey <tromey@redhat.com>
13265
13266 * remote.c (extended_remote_create_inferior): Rename from
13267 extended_remote_create_inferior_1. Add "ops" argument. Remove
13268 old implementation.
13269
62261490
PA
132702014-01-16 Pedro Alves <palves@redhat.com>
13271
13272 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
13273 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
13274 the backchain.
13275
4d65956b
DE
132762014-01-16 Doug Evans <dje@google.com>
13277
13278 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
13279
52834460
MM
132802014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13281
13282 * btrace.h (btrace_thread_flag): New.
13283 (struct btrace_thread_info) <flags>: New.
13284 * record-btrace.c (record_btrace_resume_thread)
13285 (record_btrace_find_thread_to_move, btrace_step_no_history)
13286 (btrace_step_stopped, record_btrace_start_replaying)
13287 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
13288 (record_btrace_find_resume_thread): New.
13289 (record_btrace_resume, record_btrace_wait): Extend.
13290 (record_btrace_can_execute_reverse): New.
13291 (record_btrace_open): Fail in non-stop mode.
13292 (record_btrace_set_replay): Split into this, ...
13293 (record_btrace_stop_replaying): ... this, ...
13294 (record_btrace_clear_histories): ... and this.
13295 (init_record_btrace_ops): Init to_can_execute_reverse.
13296 * NEWS: Announce it.
13297
118e6252
MM
132982014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13299
13300 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
13301 (forward_target_decr_pc_after_break)
13302 (target_decr_pc_after_break): New.
13303 * target.c (forward_target_decr_pc_after_break)
13304 (target_decr_pc_after_break): New.
13305 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
13306 instead of gdbarch_decr_pc_after_break.
13307 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
13308 instead of gdbarch_decr_pc_after_break.
13309 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
13310 instead of gdbarch_decr_pc_after_break.
13311 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
13312 instead of gdbarch_decr_pc_after_break.
13313 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
13314 instead of gdbarch_decr_pc_after_break.
13315 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
13316 instead of gdbarch_decr_pc_after_break.
13317
6e07b1d2
MM
133182014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13319
13320 * btrace.c: Include regcache.h.
13321 (btrace_add_pc): New.
13322 (btrace_enable): Call btrace_add_pc.
13323 (btrace_is_empty): New.
13324 * btrace.h (btrace_is_empty): New.
13325 * record-btrace.c (require_btrace, record_btrace_info): Call
13326 btrace_is_empty.
13327
969c39fb
MM
133282014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13329
13330 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
13331 Support delta reads.
13332 (linux_disable_btrace): Change return type.
13333 * common/linux-btrace.h (linux_read_btrace): Change parameters
13334 and return type to allow error reporting. Update users.
13335 (linux_disable_btrace): Change return type. Update users.
13336 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
13337 New.
13338 (btrace_error): New.
13339 (btrace_block) <begin>: Comment on BEGIN == 0.
13340 * btrace.c (btrace_compute_ftrace): Start from the end of
13341 the current trace.
13342 (btrace_stitch_trace, btrace_clear_history): New.
13343 (btrace_fetch): Read delta trace, return if replaying.
13344 (btrace_clear): Move clear history code to btrace_clear_history.
13345 (parse_xml_btrace): Throw an error if parsing failed.
13346 * target.h (struct target_ops) <to_read_btrace>: Change parameters
13347 and return type to allow error reporting.
13348 (target_read_btrace): Change parameters and return type to allow
13349 error reporting.
13350 * target.c (target_read_btrace): Update.
13351 * remote.c (remote_read_btrace): Support delta reads. Pass
13352 errors on.
13353 * NEWS: Announce it.
13354
0b722aec
MM
133552014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13356
13357 * record.h (record_btrace_frame_unwind)
13358 (record_btrace_tailcall_frame_unwind): New declarations.
13359 * dwarf2-frame: Include record.h
13360 (dwarf2_frame_cfa): Throw an error for btrace frames.
13361 * record-btrace.c: Include hashtab.h.
13362 (btrace_get_bfun_name): New.
13363 (btrace_call_history): Call btrace_get_bfun_name.
13364 (struct btrace_frame_cache): New.
13365 (bfcache): New.
13366 (bfcache_hash, bfcache_eq, bfcache_new): New.
13367 (btrace_get_frame_function): New.
13368 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
13369 (record_btrace_frame_this_id): Compute own id.
13370 (record_btrace_frame_prev_register): Provide PC, throw_error
13371 for all other registers.
13372 (record_btrace_frame_sniffer): Detect btrace frames.
13373 (record_btrace_tailcall_frame_sniffer): New.
13374 (record_btrace_frame_dealloc_cache): New.
13375 (record_btrace_frame_unwind): Add new functions.
13376 (record_btrace_tailcall_frame_unwind): New.
13377 (_initialize_record_btrace): Allocate cache.
13378 * btrace.c (btrace_clear): Call reinit_frame_cache.
13379 * NEWS: Announce it.
13380
066ce621
MM
133812014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13382
13383 * record-btrace.c (record_btrace_set_replay)
13384 (record_btrace_goto_begin, record_btrace_goto_end)
13385 (record_btrace_goto): New.
13386 (init_record_btrace_ops): Initialize them.
13387 * NEWS: Announce it.
13388
e2887aa3
MM
133892014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13390
13391 * record-btrace.c (record_btrace_find_new_threads)
13392 (record_btrace_thread_alive): New.
13393 (init_record_btrace_ops): Initialize to_find_new_threads and
13394 to_thread_alive.
13395
b2f4cfde
MM
133962014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13397
13398 * record-btrace.c (record_btrace_resume): New.
13399 (record_btrace_wait): New.
13400 (init_record_btrace_ops): Initialize to_wait and to_resume.
13401
633785ff
MM
134022014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13403
13404 * record-btrace.c (record_btrace_xfer_partial)
13405 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
13406 (record_btrace_allow_memory_access): New.
13407 (init_record_btrace_ops): Initialize new methods.
13408 * target.c (raw_memory_xfer_partial): Bail out if target reports
13409 that this memory is not available.
13410
3db08215
MM
134112014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13412
13413 * target.h (target_ops) <to_insert_breakpoint>
13414 <to_remove_breakpoint>: Add target_ops parameter.
13415 (forward_target_insert_breakpoint): New.
13416 (forward_target_remove_breakpoint): New.
13417 (memory_remove_breakpoint, memory_insert_breakpoint):
13418 Add target_ops parameter.
13419 * target.c (target_insert_breakpoint): Split into this and ...
13420 (forward_target_insert_breakpoint): ... this.
13421 (target_remove_breakpoint): Split into this and ...
13422 (forward_target_remove_breakpoint): ... this.
13423 (debug_to_insert_breakpoint): Add target_ops parameter.
13424 Call forward_target_insert_breakpoint.
13425 (debug_to_remove_breakpoint): Add target_ops parameter.
13426 Call forward_target_remove_breakpoint.
13427 (update_current_target): Do not inherit or default to_insert_breakpoint
13428 and to_remove_breakpoint.
13429 * corelow.c (ignore): Add target_ops parameter.
13430 * exec.c (ignore): Add target_ops parameter.
13431 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
13432 Add target_ops parameter.
13433 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
13434 Add target_ops parameter.
13435 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
13436 Add target_ops parameter.
13437 * record-full.c (record_full_beneath_to_insert_breakpoint)
13438 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
13439 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
13440 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
13441 (record_full_core_remove_breakpoint): Add target_ops parameter.
13442 Update users.
13443 (record_full_beneath_to_insert_breakpoint_ops)
13444 (record_full_beneath_to_remove_breakpoint_ops)
13445 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
13446 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
13447 tmp_to_remove_breakpoint_ops,
13448 record_full_beneath_to_insert_breakpoint_ops, and
13449 record_full_beneath_to_remove_breakpoint_ops.
13450 * remote-m32r-sdi.c (m32r_insert_breakpoint)
13451 (m32r_remove_breakpoint): Add target_ops parameter.
13452 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
13453 Add target_ops parameter.
13454 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
13455 Add target_ops parameter.
13456
cecac1ab
MM
134572014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13458 Markus Metzger <markus.t.metzger@intel.com>
13459
13460 * record-btrace.c: Include frame-unwind.h.
13461 (record_btrace_frame_unwind_stop_reason)
13462 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
13463 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
13464 New.
13465 (init_record_btrace_ops): Install it.
13466
824344ca
MM
134672014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13468
13469 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
13470 get_prev_frame_1.
13471
32261e52
MM
134722014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13473
13474 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
13475 earlier.
13476
ea001bdc
MM
134772014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13478
13479 * frame-unwind.c: Include target.h.
13480 (frame_unwind_try_unwinder): New function with code from ...
13481 (frame_unwind_find_by_frame): ... here. New variable
13482 unwinder_from_target, call also target_get_unwinder)
13483 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
13484 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
13485 * target.h (struct target_ops): New fields to_get_unwinder and
13486 to_get_tailcall_unwinder.
13487 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
13488
1f3ef581
MM
134892014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13490
13491 * record-btrace.c (record_btrace_fetch_registers)
13492 (record_btrace_store_registers)
13493 (record_btrace_to_prepare_to_store): New.
13494 (init_record_btrace_ops): Add the above.
13495
f32dbf8c
MM
134962014-01-16 Tom Tromey <tromey@redhat.com>
13497
13498 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
13499 * target.h (struct target_ops) <to_prepare_to_store>: Add
13500 argument.
13501 (target_prepare_to_store): Add argument.
13502 * target.c (debug_to_prepare_to_store): Add argument.
13503 (update_current_target): Update.
13504 * remote.c (remote_prepare_to_store): Add 'self' argument.
13505 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
13506 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
13507 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
13508 * record-full.c (record_full_core_prepare_to_store): Add 'self'
13509 argument.
13510 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
13511 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
13512 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
13513 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
13514 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
13515
07bbe694
MM
135162014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13517
13518 * btrace.h (replay) <replay>: New.
13519 (btrace_is_replaying): New.
13520 * btrace.c (btrace_clear): Free replay iterator.
13521 (btrace_is_replaying): New.
13522 * record-btrace.c (record_btrace_is_replaying): New.
13523 (record_btrace_info): Print insn number if replaying.
13524 (record_btrace_insn_history): Start at replay position.
13525 (record_btrace_call_history): Start at replay position.
13526 (init_record_btrace_ops): Init to_record_is_replaying.
13527
0688d04e
MM
135282014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13529
13530 * record-btrace.c (record_btrace_insn_history_range): Include
13531 end.
13532 (record_btrace_insn_history_from): Adjust range.
13533 (record_btrace_call_history_range): Include
13534 end.
13535 (record_btrace_call_history_from): Adjust range.
13536 * NEWS: Announce changes.
13537
8710b709
MM
135382014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13539
13540 * record.h (enum record_print_flag)
13541 <record_print_indent_calls>: New.
13542 * record.c (get_call_history_modifiers): Recognize /c modifier.
13543 (_initialize_record): Document /c modifier.
13544 * record-btrace.c (btrace_call_history): Add btinfo parameter.
13545 Reorder fields. Optionally indent the function name. Update
13546 all users.
13547 * NEWS: Announce changes.
13548
d0fa7535
MM
135492014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13550
13551 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
13552
5de9129b
MM
135532014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13554
13555 * btrace.c (ftrace_new_function): Start counting at one.
13556 * record-btrace.c (record_btrace_info): Adjust number of calls
13557 and insns.
13558 * NEWS: Announce it.
13559
7acbe133
MM
135602014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13561
13562 * record-btrace.c (btrace_call_history_insn_range): Print
13563 insn range as [begin, end].
13564
23a7fe75
MM
135652014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13566
13567 * btrace.h (struct btrace_func_link): New.
13568 (enum btrace_function_flag): New.
13569 (struct btrace_inst): Rename to ...
13570 (struct btrace_insn): ...this. Update all users.
13571 (struct btrace_func) <ibegin, iend>: Remove.
13572 (struct btrace_func_link): New.
13573 (struct btrace_func): Rename to ...
13574 (struct btrace_function): ...this. Update all users.
13575 (struct btrace_function) <segment, flow, up, insn, insn_offset)
13576 (number, level, flags>: New.
13577 (struct btrace_insn_iterator): Rename to ...
13578 (struct btrace_insn_history): ...this.
13579 Update all users.
13580 (struct btrace_insn_iterator, btrace_call_iterator): New.
13581 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
13582 (struct btrace_target_info) <begin, end, level>
13583 <insn_history, call_history>: New.
13584 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13585 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13586 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13587 (btrace_call_number, btrace_call_begin, btrace_call_end)
13588 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13589 (btrace_find_function_by_number, btrace_set_insn_history)
13590 (btrace_set_call_history): New.
13591 * btrace.c (btrace_init_insn_iterator)
13592 (btrace_init_func_iterator, compute_itrace): Remove.
13593 (ftrace_print_function_name, ftrace_print_filename)
13594 (ftrace_skip_file): Change
13595 parameter to const.
13596 (ftrace_init_func): Remove.
13597 (ftrace_debug): Use new btrace_function fields.
13598 (ftrace_function_switched): Also consider gaining and
13599 losing symbol information).
13600 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
13601 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
13602 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
13603 New.
13604 (ftrace_new_function): Move. Remove debug print.
13605 (ftrace_update_lines, ftrace_update_insns): New.
13606 (ftrace_update_function): Check for call, ret, and jump.
13607 (compute_ftrace): Renamed to ...
13608 (btrace_compute_ftrace): ...this. Rewritten to compute call
13609 stack.
13610 (btrace_fetch, btrace_clear): Updated.
13611 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13612 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13613 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13614 (btrace_call_number, btrace_call_begin, btrace_call_end)
13615 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13616 (btrace_find_function_by_number, btrace_set_insn_history)
13617 (btrace_set_call_history): New.
13618 * record-btrace.c (require_btrace): Use new btrace thread
13619 info fields.
13620 (record_btrace_info, btrace_insn_history)
13621 (record_btrace_insn_history, record_btrace_insn_history_range):
13622 Use new btrace thread info fields and new iterator.
13623 (btrace_func_history_src_line): Rename to ...
13624 (btrace_call_history_src_line): ...this. Use new btrace
13625 thread info fields.
13626 (btrace_func_history): Rename to ...
13627 (btrace_call_history): ...this. Use new btrace thread info
13628 fields and new iterator.
13629 (record_btrace_call_history, record_btrace_call_history_range):
13630 Use new btrace thread info fields and new iterator.
13631
8372a7cb
MM
136322014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13633
13634 * frame.h (frame_id_build_unavailable_stack_special): New.
13635 * frame.c (frame_id_build_unavailable_stack_special): New.
13636
c2170eef
MM
136372014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13638
13639 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
13640 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
13641 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
13642 to gdbarch.
13643 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
13644 (i386_insn_is_jump, i386_jmp_p): New.
13645 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
13646 insn_is_jump to gdbarch.
13647 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
13648 * gdbarch.h: Regenerated.
13649 * gdbarch.c: Regenerated.
13650 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
13651 (default_insn_is_jump): New.
13652 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
13653 (default_insn_is_jump): New.
13654
864089d2
MM
136552014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13656
13657 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
13658 Change to ...
13659 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
13660 (btrace_read_type) <btrace_read_new>: Change to ...
13661 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
13662
ed9edfb5
MM
136632014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13664
13665 * common/linux-btrace.c (linux_read_btrace): Free trace from
13666 previous iteration.
13667
fbcbc3fd
DE
136682014-01-15 Doug Evans <dje@google.com>
13669
13670 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
13671 uint32_t.
13672
3d548a53
TT
136732014-01-15 Tom Tromey <tromey@redhat.com>
13674
13675 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
13676 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
13677 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
13678 (set_objfile_main_name): New function.
13679 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
13680 language_of_main>: New fields.
13681 (set_objfile_main_name): Declare.
13682 * symtab.c (find_main_name): Loop over objfiles to find the main
13683 name and language.
13684 (set_main_name): Now static.
13685 (get_main_info): Add comment.
13686 * symtab.h (set_main_name): Don't declare.
13687
32ac0d11
TT
136882014-01-15 Tom Tromey <tromey@redhat.com>
13689
13690 * symtab.c (main_progspace_key): New global.
13691 (struct main_info): New.
13692 (name_of_main, language_of_main): Remove.
13693 (get_main_info, main_info_cleanup): New function.
13694 (set_main_name, main_name, main_language): Use get_main_info.
13695 (_initialize_symtab): Initialize main_progspace_key.
13696
9e6c82ad
TT
136972014-01-15 Tom Tromey <tromey@redhat.com>
13698
13699 * dbxread.c (process_one_symbol): Update.
13700 * dwarf2read.c (read_partial_die): Update.
13701 * symfile.c (set_initial_language): Call main_language.
13702 * symtab.c (language_of_main): Now static.
13703 (set_main_name): Add 'lang' parameter.
13704 (find_main_name): Update.
13705 (main_language): New function.
13706 (symtab_observer_executable_changed): Update.
13707 * symtab.h (set_main_name): Update.
13708 (language_of_main): Remove.
13709 (main_language): Declare.
13710
6ef55de7
TT
137112014-01-15 Tom Tromey <tromey@redhat.com>
13712
13713 * symfile.c (init_entry_point_info): Use new "initialized" field.
13714 Update.
13715 * objfiles.h (struct entry_point) <initialized>: New field.
13716 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
13717 (struct objfile) <ei>: ...here. Remove.
13718 * objfiles.c (entry_point_address_query): Update.
13719
53eddfa6
TT
137202014-01-15 Tom Tromey <tromey@redhat.com>
13721
13722 * objfiles.c (entry_point_address_query): Relocate entry point
13723 address.
13724 (objfile_relocate1): Do not relocate entry point address.
13725 * objfiles.h (struct entry_info) <entry_point>: Update comment.
13726 <the_bfd_section_index>: New field.
13727 * symfile.c (init_entry_point_info): Find the entry point's
13728 section.
13729
d56e56aa
TT
137302014-01-15 Tom Tromey <tromey@redhat.com>
13731
13732 * solib-frv.c (enable_break): Use entry_point_address_query.
13733
33a97bbe
OJ
137342014-01-15 Omair Javaid <omair.javaid@linaro.org>
13735
13736 * NEWS: Add note on improved process record-replay on
13737 arm*-linux* targets.
13738
c6ec2b30
OJ
137392014-01-15 Omair Javaid <omair.javaid@linaro.org>
13740
13741 * arm-tdep.c (enum arm_record_result): New enum.
13742 (arm_record_unsupported_insn): New function.
13743 (arm_record_coproc_data_proc): Removed.
13744 (thumb2_record_ld_st_multiple): New function.
13745 (thumb2_record_ld_st_dual_ex_tbb): New function.
13746 (thumb2_record_data_proc_sreg_mimm): New function.
13747 (thumb2_record_ps_dest_generic): New function.
13748 (thumb2_record_branch_misc_cntrl): New function.
13749 (thumb2_record_str_single_data): New function.
13750 (thumb2_record_ld_mem_hints): New function.
13751 (thumb2_record_ld_word): New function.
13752 (thumb2_record_lmul_lmla_div): New function.
13753 (thumb2_record_decode_insn_handler): New function.
13754 (decode_insn): Add thumb32 instruction handlers.
13755
97dfe206
OJ
137562014-01-15 Omair Javaid <omair.javaid@linaro.org>
13757
13758 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
13759 (struct arm_linux_record_tdep): Declare.
13760 (arm_canonicalize_syscall): New function.
13761 (arm_all_but_pc_registers_record): New function.
13762 (arm_linux_syscall_record): New function.
13763 (arm_linux_init_abi): Add syscall recording constructs.
13764 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
13765 decoding. (arm_record_coproc_data_proc): Update arm syscall
13766 decoding.
13767 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
13768 <arm_syscall_record>: New field.
13769 * configure.tgt (arm*-*-linux*): Add linux-record.o to
13770 gdb_target_obs.
13771
9904a494
OJ
137722014-01-15 Omair Javaid <omair.javaid@linaro.org>
13773
13774 * arm-tdep.c (thumb_record_misc): Update to use sp as base
13775 register for push instruction recording.
13776
f969241e
OJ
137772014-01-15 Omair Javaid <omair.javaid@linaro.org>
13778
13779 * arm-tdep.c (thumb_record_misc): Update to correct logical
13780 error while recording ldm, ldmia and pop instructions.
13781
bfbbec00
OJ
137822014-01-15 Omair Javaid <omair.javaid@linaro.org>
13783
13784 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
13785
e40adcc9
PA
137862014-01-15 Pedro Alves <palves@redhat.com>
13787
13788 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
13789 (go32_resume, go32_fetch_registers, store_register)
13790 (go32_store_registers, go32_prepare_to_store)
13791 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
13792 (go32_create_inferior, go32_can_run, go32_terminal_init)
13793 (go32_terminal_inferior, go32_terminal_ours): Delete forward
13794 declarations.
13795
b0a16e66
TT
137962014-01-15 Tom Tromey <tromey@redhat.com>
13797
13798 * target.h (async_callback_ftype): New typedef.
13799 (struct target_ops) <to_async>: Use it.
13800
bf7105a4
JB
138012014-01-15 Joel Brobecker <brobecker@adacore.com>
13802
13803 * python/py-value.c (get_field_type): Remove unnecessary curly
13804 braces for single-statement if block.
13805
a8f35c2e
JB
138062014-01-15 Joel Brobecker <brobecker@adacore.com>
13807
13808 * python/py-type.c (convert_field): Add missing empty line
13809 after declarations.
13810
bb4142cf
DE
138112014-01-14 Doug Evans <dje@google.com>
13812
13813 * symfile.h (expand_symtabs_matching): Renamed from
13814 expand_partial_symbol_names. Update prototype.
13815 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
13816 * symfile.c (expand_symtabs_matching): Renamed from
13817 expand_partial_symbol_names. New args file_matcher, kind.
13818 Rename arg fun to symbol_matcher.
13819 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
13820 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
13821 ada_expand_partial_symbol_name.
13822 (ada_make_symbol_completion_list): Update to call
13823 expand_symtabs_matching.
13824 (ada_add_global_exceptions): Call expand_symtabs_matching.
13825 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
13826 call map_symbol_filenames.
13827 * symtab.c (sources_info): Update to call map_symbol_filenames.
13828 (search_symbols): Call expand_symtabs_matching.
13829 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
13830 (default_make_symbol_completion_list_break_on): Update to call
13831 expand_symtabs_matching.
13832 (make_source_files_completion_list): Update to call
13833 map_symbol_filenames.
13834
206f2a57
DE
138352014-01-14 Doug Evans <dje@google.com>
13836
13837 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
13838 (expand_symtabs_symbol_matcher_ftype): New typedef.
13839 (quick_symbol_functions.expand_symtabs_matching): Update to use.
13840 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13841 * symfile.c (expand_partial_symbol_names): Update to use
13842 expand_symtabs_symbol_matcher_ftype.
13843 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
13844 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13845 Arg name_matcher renamed to symbol_matcher.
13846 * psymtab.c (recursively_search_psymtabs): Update to use
13847 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
13848 sym_matcher.
13849 (expand_symtabs_matching_via_partial): Update to use
13850 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13851 Arg name_matcher renamed to symbol_matcher.
13852
540c2971
DE
138532014-01-14 Doug Evans <dje@google.com>
13854
13855 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
13856 (map_partial_symbol_filenames): Ditto.
13857 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
13858 (map_partial_symbol_filenames): Ditto.
13859 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
13860 (map_partial_symbol_filenames): Ditto.
13861 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
13862 (map_partial_symbol_filenames): Ditto.
13863 * symtab.c: Delete #include "psymtab.h".
13864
8213266a
PA
138652014-01-14 Pedro Alves <palves@redhat.com>
13866 Tom Tromey <tromey@redhat.com>
13867
13868 * infrun.c (use_displaced_stepping): Use find_record_target
13869 instead of RECORD_IS_USED.
13870 (adjust_pc_after_break): Use record_full_is_used instead of
13871 RECORD_IS_USED.
13872 * record-btrace.c (record_btrace_open): Call record_preopen
13873 instead of checking RECORD_IS_USED.
13874 * record-full.c (record_full_shortname)
13875 (record_full_core_shortname): New globals.
13876 (record_full_is_used): New function.
13877 (find_full_open): Call record_preopen instead of checking
13878 RECORD_IS_USED.
13879 (init_record_full_ops): Set the target's shortname to
13880 record_full_shortname.
13881 (init_record_full_core_ops): Set the target's shortname to
13882 record_full_core_shortname.
13883 * record-full.h (record_full_is_used): Declare.
13884 * record.c (find_record_target): Make extern.
13885 (record_preopen): New function.
13886 * record.h (RECORD_IS_USED): Delete macro.
13887 (find_record_target, record_preopen): Declare functions.
13888
7ec1862d
YQ
138892014-01-14 Yao Qi <yao@codesourcery.com>
13890
13891 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
13892 'len''s type to ULONGEST.
13893 (core_xfer_shared_libraries_aix): Likewise.
13894 * gdbarch.c, gdbarch.h: Regenerated.
13895 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
13896 Change type of 'len' to ULONGEST.
13897 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13898 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
13899
dea80a27
YQ
139002014-01-14 Yao Qi <yao@codesourcery.com>
13901
13902 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
13903 type of 'len' to ULONGEST.
13904 (linux_xfer_osdata_processgroups): Likewise.
13905 (linux_xfer_osdata_threads): Likewise.
13906 (linux_xfer_osdata_fds): Likewise.
13907 (linux_xfer_osdata_isockets): Likewise.
13908 (linux_xfer_osdata_shm): Likewise.
13909 (linux_xfer_osdata_sem): Likewise.
13910 (linux_xfer_osdata_msg): Likewise.
13911 (linux_common_xfer_osdata): Likewise.
13912 (struct osdata_type) <getter>: Likewise.
13913 * common/linux-osdata.h (linux_common_xfer_osdata): Update
13914 the declaration.
13915
b55e14c7
YQ
139162014-01-14 Yao Qi <yao@codesourcery.com>
13917
13918 * target.h (target_xfer_partial_ftype): Update.
13919 (struct target_ops) <to_xfer_partial>: Change 'len' type to
13920 ULONGEST.
13921 * aix-thread.c (aix_thread_xfer_partial): Change type of
13922 argument 'len' to ULONGEST.
13923 * auxv.c (procfs_xfer_auxv): Likewise.
13924 (ld_so_xfer_auxv): Likewise.
13925 (memory_xfer_auxv): Likewise.
13926 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13927 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13928 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
13929 * corelow.c (core_xfer_partial): Likewise.
13930 * ctf.c (ctf_xfer_partial): Likewise.
13931 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
13932 '%u'.
13933 (darwin_read_dyld_info): Likewise.
13934 (darwin_xfer_partial): Likewise.
13935 * exec.c (section_table_xfer_memory_partial): Likewise.
13936 (exec_xfer_partial): Likewise.
13937 * exec.h (section_table_xfer_memory_partial): Update
13938 declaration.
13939 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
13940 instead of plongest.
13941 (gnu_xfer_partial): Likewise.
13942 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
13943 (ia64_hpux_xfer_solib_got): Likewise.
13944 (ia64_hpux_xfer_partial): Likewise.
13945 * ia64-linux-nat.c (ia64_linux_xfer_partial):
13946 * inf-ptrace.c (inf_ptrace_xfer_partial):
13947 * inf-ttrace.c (inf_ttrace_xfer_partial):
13948 * linux-nat.c (linux_xfer_siginfo): Likewise.
13949 (linux_nat_xfer_partial): Likewise.
13950 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
13951 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
13952 * monitor.c (monitor_xfer_memory): Likewise.
13953 (monitor_xfer_partial): Likewise.
13954 * procfs.c (procfs_xfer_partial): Likewise.
13955 * record-full.c (record_full_xfer_partial): Likewise.
13956 (record_full_core_xfer_partial): Likewise.
13957 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
13958 instead of plongest.
13959 (gdbsim_xfer_partial): Likewise.
13960 * remote.c (remote_xfer_partial): Likewise.
13961 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13962 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
13963 declaration.
13964 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13965 (rs6000_xfer_shared_libraries): Likewise.
13966 * sol-thread.c (sol_thread_xfer_partial): Likewise.
13967 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13968 (sparc_xfer_partial): Likewise.
13969 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13970 (spu_xfer_partial): Likewise.
13971 * spu-multiarch.c (spu_xfer_partial): Likewise.
13972 * target.c (target_read_live_memory): Likewise.
13973 (memory_xfer_live_readonly_partial): Likewise.
13974 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
13975 (target_xfer_partial, default_xfer_partial): Likewise.
13976 (current_xfer_partial): Likewise.
13977 * tracepoint.c (tfile_xfer_partial): Likewise.
13978 * windows-nat.c (windows_xfer_memory): Likewise. Call
13979 pulongest instead of plongest.
13980 (windows_xfer_partial): Likewise.
13981 (windows_xfer_shared_libraries): Likewise.
13982
05804640
YQ
139832014-01-14 Yao Qi <yao@codesourcery.com>
13984
13985 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
13986 target_xfer_partial_ftype.
13987
b5b08fb4
SC
139882014-01-13 Siva Chandra Reddy <sivachandra@google.com>
13989
13990 PR python/15464
13991 PR python/16113
13992 * valops.c (value_struct_elt_bitpos): New function
13993 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
13994 object to 'None' if the field name is an empty string ("").
13995 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
13996 attribute to look for a field when 'name' is 'None'.
13997 (get_field_type): New function
13998
13aaf454
DE
139992014-01-13 Doug Evans <dje@google.com>
14000
14001 PR symtab/16426
14002 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
14003 (try_open_dwop_file): Ditto.
14004 * gdb_bfd.c: #include "vec.h".
14005 (bfdp): New typedef.
14006 (struct gdb_bfd_data): New member included_bfds.
14007 (gdb_bfd_unref): Unref all included bfds.
14008 (gdb_bfd_record_inclusion): New function.
14009 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
14010
c2cec97c
TT
140112014-01-13 Tom Tromey <tromey@redhat.com>
14012
14013 * gdbcore.h (deprecated_core_resize_section_table): Remove.
14014
78e5999d
TT
140152014-01-13 Tom Tromey <tromey@redhat.com>
14016
14017 * defs.h (use_windows): Remove.
14018 * gdb.c (main): Update.
14019 * main.c (captured_main, gdb_main): Update.
14020 * main.h (struct captured_main_args) <use_windows>: Remove.
14021 * top.c (use_windows): Remove.
14022
f2052bbe
TT
140232014-01-13 Tom Tromey <tromey@redhat.com>
14024
14025 * defs.h (deprecated_flush_hook): Remove.
14026
fde4f8ed
JK
140272014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
14028
14029 PR threads/16216
14030 * linux-thread-db.c (try_thread_db_load): Add parameter
14031 check_auto_load_safe. Move here the file_is_auto_load_safe call.
14032 (try_thread_db_load_from_pdir_1): Move it there from here.
14033 (try_thread_db_load_from_sdir): Update caller.
14034 (try_thread_db_load_from_dir): Move it there from here.
14035
bdf61915
PP
140362014-01-13 Patrick Palka <patrick@parcs.ath.cx>
14037
14038 * regformats/regdat.sh: Always rewrite the register file.
14039
f71e1a8d
PA
140402014-01-13 Pedro Alves <palves@redhat.com>
14041
14042 * Makefile.in (CHECK_HEADERS): New variable.
14043 (check-headers:): New rule.
14044
42c85435
TT
140452014-01-13 Tom Tromey <tromey@redhat.com>
14046
14047 * cli/cli-setshow.c (do_set_command): Update.
14048 * defs.h (deprecated_set_hook): Remove.
14049 * top.c (deprecated_set_hook): Remove.
14050
f8de5129
PA
140512014-01-13 Pedro Alves <palves@redhat.com>
14052
14053 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
14054 the tracepoint if the PC is a pseudo-register.
14055
fc270c35
TT
140562014-01-13 Tom Tromey <tromey@redhat.com>
14057
14058 * defs.h (XCALLOC): Remove.
14059 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
14060 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
14061 * dwarf2loc.c (allocate_piece_closure): Likewise.
14062 * elfread.c (elf_symfile_segments): Likewise.
14063 (elf_symfile_segments): Likewise.
14064 * gdbtypes.c (copy_type_recursive): Likewise.
14065 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
14066 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
14067 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
14068 XCALLOC.
14069 * mt-tdep.c (mt_gdbarch_init): Likewise.
14070 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
14071 XCALLOC.
14072 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
14073 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
14074 * registry.c (registry_alloc_data): Likewise.
14075 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
14076 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
14077 * serial.c (serial_fdopen_ops): Likewise.
14078 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
14079 XCALLOC.
14080 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
14081 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
14082 not XCALLOC.
14083
70ba0933
TT
140842014-01-13 Tom Tromey <tromey@redhat.com>
14085
14086 * defs.h (XMALLOC): Remove.
14087 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
14088 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
14089 * cli-out.c (struct ui_out *): Likewise.
14090 * cli/cli-dump.c (add_dump_command): Likewise.
14091 (add_dump_command): Likewise.
14092 * complaints.c (get_complaints): Likewise.
14093 (find_complaint): Likewise.
14094 * dwarf2-frame.c (execute_cfa_program): Likewise.
14095 * dwarf2read.c (abbrev_table_read_table): Likewise.
14096 * gdbarch.sh: Likewise.
14097 * gdbarch.c: Rebuild.
14098 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
14099 * interps.c (interp_new): Likewise.
14100 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
14101 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
14102 * mi/mi-console.c (mi_console_file_new): Likewise.
14103 * mi/mi-interp.c (mi_interpreter_init): Likewise.
14104 * mi/mi-out.c (mi_out_new): Likewise.
14105 * mi/mi-parse.c (mi_parse): Likewise.
14106 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
14107 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
14108 * observer.c (xalloc_observer_list_node): Likewise.
14109 * regcache.c (regcache_xmalloc_1): Likewise.
14110 * reggroups.c (reggroup_new): Likewise.
14111 (_initialize_reggroup): Likewise.
14112 * registry.c (register_data_with_cleanup): Likewise.
14113 * remote.c (remote_notif_stop_alloc_reply): Likewise.
14114 * ser-base.c (serial_ttystate): Likewise.
14115 * ser-mingw.c (make_pipe_state): Likewise.
14116 * ser-pipe.c (pipe_open): Likewise.
14117 * serial.c (serial_open): Likewise.
14118 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
14119 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
14120 (tui_alloc_win_info): Likewise.
14121 (tui_add_content_elements): Likewise.
14122 * tui/tui-file.c (tui_file_new): Likewise.
14123 * tui/tui-out.c (tui_out_new): Likewise.
14124 * ui-file.c (mem_file_new): Likewise.
14125 * ui-out.c (push_level): Likewise.
14126 (make_cleanup_ui_out_end): Likewise.
14127 (append_header_to_list): Likewise.
14128 (ui_out_new): Likewise.
14129 * user-regs.c (user_reg_add_builtin): Likewise.
14130
41bf6aca
TT
141312014-01-13 Tom Tromey <tromey@redhat.com>
14132
14133 * defs.h (XZALLOC): Remove.
14134 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
14135 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
14136 (get_ada_tasks_inferior_data): Likewise.
14137 * auto-load.c (get_auto_load_pspace_data): Likewise.
14138 * auxv.c (get_auxv_inferior_data): Likewise.
14139 * bfd-target.c (target_bfd_reopen): Likewise.
14140 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
14141 (deprecated_insert_raw_breakpoint): Likewise.
14142 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
14143 * corelow.c (core_open): Likewise.
14144 * darwin-nat.c (darwin_check_new_threads): Likewise.
14145 (darwin_attach_pid): Likewise.
14146 * dummy-frame.c (dummy_frame_push): Likewise.
14147 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
14148 * dwarf2loc.c (allocate_piece_closure): Likewise.
14149 * elfread.c (elf_symfile_segments): Likewise.
14150 * eval.c (ptrmath_type_p): Likewise.
14151 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
14152 * gdbtypes.c (alloc_type_arch): Likewise.
14153 (alloc_type_instance): Likewise.
14154 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
14155 * inf-child.c (inf_child_can_use_agent): Likewise.
14156 * inflow.c (get_inflow_inferior_data): Likewise.
14157 * infrun.c (save_infcall_suspend_state): Likewise.
14158 * jit.c (jit_reader_load): Likewise.
14159 (get_jit_objfile_data): Likewise.
14160 (get_jit_program_space_data): Likewise.
14161 (jit_object_open_impl): Likewise.
14162 (jit_symtab_open_impl): Likewise.
14163 (jit_block_open_impl): Likewise.
14164 (jit_frame_sniffer): Likewise.
14165 * linux-fork.c (add_fork): Likewise.
14166 * maint.c (make_command_stats_cleanup): Likewise.
14167 * objfiles.c (get_objfile_pspace_data): Likewise.
14168 * opencl-lang.c (struct lval_closure): Likewise.
14169 * osdata.c (osdata_start_osdata): Likewise.
14170 * progspace.c (new_address_space): Likewise.
14171 (add_program_space): Likewise.
14172 * remote-sim.c (get_sim_inferior_data): Likewise.
14173 * sh-tdep.c (sh_gdbarch_init): Likewise.
14174 * skip.c (Ignore): Likewise.
14175 (skip_delete_command): Likewise.
14176 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
14177 (library_list_start_library): Likewise.
14178 (solib_aix_current_sos): Likewise.
14179 * solib-darwin.c (get_darwin_info): Likewise.
14180 (darwin_current_sos): Likewise.
14181 * solib-dsbt.c (get_dsbt_info): Likewise.
14182 * solib-ia64-hpux.c (new_so_list): Likewise.
14183 (ia64_hpux_get_solib_linkage_addr): Likewise.
14184 * solib-spu.c (append_ocl_sos): Likewise.
14185 (spu_current_sos): Likewise.
14186 * solib-svr4.c (get_svr4_info): Likewise.
14187 (svr4_keep_data_in_core): Likewise.
14188 (library_list_start_library): Likewise.
14189 (svr4_default_sos): Likewise.
14190 (svr4_read_so_list): Likewise.
14191 * solib-target.c (library_list_start_library): Likewise.
14192 (solib_target_current_sos): Likewise.
14193 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
14194 * symfile-debug.c (install_symfile_debug_logging): Likewise.
14195 * symfile.c (default_symfile_segments): Likewise.
14196 * target-descriptions.c (tdesc_data_init): Likewise.
14197 (tdesc_create_reg): Likewise.
14198 (struct tdesc_type *): Likewise.
14199 (tdesc_create_vector): Likewise.
14200 (tdesc_set_struct_size): Likewise.
14201 (struct tdesc_type *): Likewise.
14202 (tdesc_free_feature): Likewise.
14203 (tdesc_create_feature): Likewise.
14204 * windows-nat.c (windows_add_thread): Likewise.
14205 (windows_make_so): Likewise.
14206 * xml-support.c (gdb_xml_body_text): Likewise.
14207 (gdb_xml_create_parser_and_cleanup): Likewise.
14208 (xml_process_xincludes): Likewise.
14209 * xml-syscall.c (allocate_syscalls_info): Likewise.
14210 (syscall_create_syscall_desc): Likewise.
14211
5acfdbae
SDJ
142122014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
14213
14214 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
14215 function, with code from i386_stap_parse_special_token.
14216 (i386_stap_parse_special_token_three_arg_disp): Likewise.
14217 (i386_stap_parse_special_token): Move code to the two functions
14218 above; simplify it.
14219
0000e5cc
PA
142202014-01-09 Pedro Alves <palves@redhat.com>
14221 Hui Zhu <hui@codesourcery.com>
14222
14223 PR gdb/16101
14224 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
14225 bp_err_string. Don't mark the location shlib_disabled if the
14226 error thrown wasn't a generic or memory error. Catch errors
14227 thrown while inserting breakpoints in overlayed code. Output
14228 error message of software breakpoints.
14229 * remote.c (remote_insert_breakpoint): If this breakpoint has
14230 target-side commands but this stub doesn't support Z0 packets,
14231 throw NOT_SUPPORTED_ERROR error.
14232 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
14233 * target.h (target_insert_breakpoint): Extend comment.
14234 (target_insert_hw_breakpoint): Add comment.
14235
b7ea362b
PA
142362014-01-08 Pedro Alves <palves@redhat.com>
14237
14238 * remote.c (remote_add_thread): Add threads silently if starting
14239 up.
14240 (remote_notice_new_inferior): If in all-stop, and starting up,
14241 don't call notice_new_inferior.
14242 (get_current_thread): New function, factored out from ...
14243 (add_current_inferior_and_thread): ... this. Adjust.
14244 (remote_start_remote) <all-stop>: Fetch the thread list. If we
14245 found any thread, then select the remote's current thread as GDB's
14246 current thread too.
14247
b7bba001
JB
142482014-01-08 Joel Brobecker <brobecker@adacore.com>
14249
14250 * NEWS: Create a new section for the next release branch.
14251 Rename the section of the current branch, now that it has
14252 been cut.
14253
16dfbded
JB
142542014-01-08 Joel Brobecker <brobecker@adacore.com>
14255
14256 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
14257 * version.in: Bump version to 7.7.50.DATE-cvs.
14258
22c90ac1
YQ
142592014-01-08 Yao Qi <yao@codesourcery.com>
14260
14261 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
14262 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
14263 (spu_xfer_partial): Cast 'buf' to 'const char *'.
14264
d64ad97c
YQ
142652014-01-08 Yao Qi <yao@codesourcery.com>
14266
14267 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
14268 return value of bfd_get_filename to symbol_file_add_from_bfd.
14269
f93ba80c
PM
142702014-01-08 Pierre Muller <muller@sourceware.org>
14271
14272 Fix PR16201.
14273 * coff-pe-read.c (struct read_pe_section_data): Add index field.
14274 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
14275 to prim_record_mininal_symbol_and_info.
14276 (add_pe_forwarded_sym): Use known section number of forwarded symbol
14277 in call to prim_record_minimal_symbol_and_info.
14278 (read_pe_exported_syms): Set index field of section_data.
14279
a4d9ba85
AP
142802014-01-07 Andrew Pinski <apinski@cavium.com>
14281
14282 * features/aarch64-core.xml (cpsr): Change to be 64bit.
14283 * features/aarch64.c: Regenerate.
14284
1b67eb02
AS
142852014-01-07 Andreas Schwab <schwab@linux-m68k.org>
14286
14287 * target.c (return_null): Define.
14288 (update_current_target): Use it instead of return_zero for
14289 functions that return a pointer.
14290
5e3f4fab
EBM
142912014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
14292
14293 * source.c (add_path): Fix check for duplicated paths in the previously
14294 included paths.
14295
e2616788
HK
142962014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
14297
14298 * ada-lang.c: Remove duplicated include statements.
14299 * alphabsd-nat.c: Ditto.
14300 * amd64-darwin-tdep.c: Ditto.
14301 * amd64fbsd-nat.c: Ditto.
14302 * auto-load.c: Ditto.
14303 * ax-gdb.c: Ditto.
14304 * breakpoint.c: Ditto.
14305 * dbxread.c: Ditto.
14306 * fork-child.c: Ditto.
14307 * gdb_usleep.c: Ditto.
14308 * i386-darwin-tdep.c: Ditto.
14309 * i386fbsd-nat.c: Ditto.
14310 * infcmd.c: Ditto.
14311 * inferior.c: Ditto.
14312 * jv-lang.c: Ditto.
14313 * linux-nat.c: Ditto.
14314 * linux-tdep.c: Ditto.
14315 * m68kbsd-nat.c: Ditto.
14316 * m68klinux-nat.c: Ditto.
14317 * microblaze-tdep.c: Ditto.
14318 * mips-linux-tdep.c: Ditto.
14319 * mn10300-tdep.c: Ditto.
14320 * nto-tdep.c: Ditto.
14321 * opencl-lang.c: Ditto.
14322 * osdata.c: Ditto.
14323 * printcmd.c: Ditto.
14324 * regcache.c: Ditto.
14325 * remote-m32r-sdi.c: Ditto.
14326 * remote.c: Ditto.
14327 * symfile.c: Ditto.
14328 * symtab.c: Ditto.
14329 * tilegx-linux-nat.c: Ditto.
14330 * tilegx-tdep.c: Ditto.
14331 * tracepoint.c: Ditto.
14332 * valops.c: Ditto.
14333 * vaxbsd-nat.c: Ditto.
14334 * windows-nat.c: Ditto.
14335 * xtensa-tdep.c: Ditto.
14336
bd1f7788
YQ
143372014-01-07 Yao Qi <yao@codesourcery.com>
14338
14339 * spu-linux-nat.c (_initialize_spu_nat): Declare.
14340
79301218
JB
143412014-01-07 Yao Qi <yao@codesourcery.com>
14342 Joel Brobecker <brobecker@adacore.com>
14343
14344 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
14345 (pdc_write_regs): Likewise.
14346 (fetch_regs_kernel_thread): Likewise.
14347 (store_regs_kernel_thread): Likewise.
14348
143492014-01-07 Joel Brobecker <brobecker@adacore.com>
14350
14351 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
14352 tagged type objects to their actual type.
14353
8e355c5d
JB
143542014-01-07 Joel Brobecker <brobecker@adacore.com>
14355
14356 * ada-valprint.c (print_field_values): Add "language" parameter.
14357 Update calls to print_field_values and print_variant_part.
14358 Pass new parameter "language" in call to val_print instead
14359 of "current_language". Replace call to ada_val_print by call
14360 to val_print.
14361 (print_variant_part): Add "language" parameter.
14362 (ada_val_print_struct_union): Update call to print_field_values.
14363
4fbf5aa5
JB
143642014-01-07 Joel Brobecker <brobecker@adacore.com>
14365
14366 * ada-valprint.c (ui_memcpy): Delete.
14367 (ada_print_floating): Update documentation. Add empty line
14368 between between function documentation and implementation.
14369 Delete variable "buffer". Use ui_file_xstrdup in place of
14370 ui_file_put. Minor adjustments following this change.
14371
71855601
JB
143722014-01-07 Joel Brobecker <brobecker@adacore.com>
14373
14374 * ada-valprint.c (ada_val_print_string): New function,
14375 extracted from ada_val_print_array.
14376 (ada_val_print_array): Replace extracted code by call
14377 to ada_val_print_string followed by a return. Move
14378 "else" branch to the function's top block.
14379
4eb27a30
JB
143802014-01-07 Joel Brobecker <brobecker@adacore.com>
14381
14382 * ada-valprint.c (ada_val_print_array): Move implementation
14383 down. Rename parameter "offset" and "val" into "offset_aligned"
14384 and "original_value" respectively. Add parameter "offset".
14385
34b27950
JB
143862014-01-07 Joel Brobecker <brobecker@adacore.com>
14387
14388 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
14389 re-organizing the code. Change the "???" message printed
14390 when target type is a TYPE_CODE_UNDEF into
14391 "<ref to undefined type>".
14392
079e4591
JB
143932014-01-07 Joel Brobecker <brobecker@adacore.com>
14394
14395 * ada-valprint.c (print_record): Delete, implementation inlined...
14396 (ada_val_print_struct_union): ... here. Remove call to
14397 ada_check_typedef in inlined implementation.
14398
8004dfd1
JB
143992014-01-07 Joel Brobecker <brobecker@adacore.com>
14400
14401 * ada-valprint.c (ada_val_print_gnat_array): New function,
14402 extracted from ada_val_print_1;
14403 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
14404 (ada_val_print_flt, ada_val_print_struct_union)
14405 (ada_val_print_ref): Likewise.
14406 (ada_val_print_1): Delete variables i and elttype.
14407 Replace extracted-out code by call to corresponding
14408 new functions.
14409
760a2db0
JB
144102014-01-07 Joel Brobecker <brobecker@adacore.com>
14411
14412 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
14413
3a92c861
JB
144142014-01-07 Joel Brobecker <brobecker@adacore.com>
14415
14416 * ada-valprint.c (ada_val_print_1): Replace calls to
14417 ada_val_print_1 by calls to val_print.
14418
cd1630f9
JB
144192014-01-07 Joel Brobecker <brobecker@adacore.com>
14420
14421 * ada-valprint.c (ada_val_print_1): Add parameter "language".
14422 Update calls to self accordingly. Replace calls to c_val_print
14423 by calls to val_print.
14424
bdf779a0
JB
144252014-01-07 Joel Brobecker <brobecker@adacore.com>
14426
14427 * ada-valprint.c (print_record): Delete declaration.
14428 (adjust_type_signedness, ada_val_print_1): Likewise.
14429 (ada_val_print): Move function implementation down.
14430 (print_variant_part, print_field_values, print_record):
14431 Move function implementation up.
14432
c0d48811
JB
144332014-01-07 Joel Brobecker <brobecker@adacore.com>
14434
14435 * python/py-type.c (typy_get_name): New function.
14436 (type_object_getset): Add entry for attribute "name".
14437 * NEWS: Add entry mentioning this new attribute.
14438
c26e9cbb
YQ
144392014-01-07 Yao Qi <yao@codesourcery.com>
14440
14441 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
14442 statement.
14443
0cc6f43d
YQ
144442014-01-07 Yao Qi <yao@codesourcery.com>
14445
14446 * gnu-nat.c (info_port_rights): Add qualifier const to
14447 argument args.
14448
eec03155
YQ
144492014-01-07 Yao Qi <yao@codesourcery.com>
14450
14451 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
14452
f04a82ef
YQ
144532014-01-07 Yao Qi <yao@codesourcery.com>
14454
14455 * gnu-nat.c (make_inf) Update declaration.
14456 (make_inf): Make it static.
14457 (inf_set_traced): Likewise.
14458 (inf_port_to_thread, inf_task_died_status): Likewise.
14459
d57dda0a
YQ
144602014-01-07 Yao Qi <yao@codesourcery.com>
14461
14462 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
14463
3aa8c969
YQ
144642014-01-07 Yao Qi <yao@codesourcery.com>
14465
14466 * gnu-nat.c (_initialize_gnu_nat): Declare.
14467
94123b4f
YQ
144682014-01-07 Yao Qi <yao@codesourcery.com>
14469
14470 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
14471 'enum bfd_endian'.
14472 (struct gdbarch_info) <byte_order>: Change type to
14473 'enum bfd_endian'.
14474 <byte_order_for_code>: Likewise.
14475 * gdbarch.c, gdbarch.h: Regenerated.
14476
dc81d70a
TT
144772014-01-06 Sasha Smundak <asmundak@google.com>
14478
14479 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
14480
cc2f3c35
TT
144812014-01-06 Tom Tromey <tromey@redhat.com>
14482
14483 * doublest.c (convert_doublest_to_floatformat): Use const, not
14484 CONST.
14485 * somread.c (som_symtab_read): Likewise.
14486
adcf2eed
HZ
144872014-01-07 Hui Zhu <hui@codesourcery.com>
14488
14489 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
14490 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
14491 (gdb_bfd_fopen): Ditto.
14492 (gdb_bfd_openr): Ditto.
14493 (gdb_bfd_openw): Ditto.
14494 (gdb_bfd_openr_iovec): Ditto.
14495 (gdb_bfd_fdopenr): Ditto.
14496 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
14497 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
14498 with xstrdup.
14499 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
14500 with xstrdup.
14501 * symfile-mem.c (symbol_file_add_from_memory): Removed
14502 gdb_bfd_stash_filename.
14503
50722198
DE
145042014-01-03 Doug Evans <dje@google.com>
14505
14506 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
14507 output.
14508
2fa4b862
JB
145092014-01-01 Joel Brobecker <brobecker@adacore.com>
14510
14511 Update year range in copyright notice of all files.
14512
28498c42
JB
145132014-01-01 Joel Brobecker <brobecker@adacore.com>
14514
14515 * top.c (print_gdb_version): Set copyright year to 2014.
14516
7b6e1046
JB
145172014-01-01 Joel Brobecker <brobecker@adacore.com>
14518
14519 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
14520
df96af55 14521For older changes see ChangeLog-2013.
c906108c
SS
14522\f
14523Local Variables:
14524mode: change-log
14525left-margin: 8
14526fill-column: 74
14527version-control: never
57da7796 14528coding: utf-8
c906108c 14529End:
This page took 2.248033 seconds and 4 git commands to generate.