This fixes more seg-faults in tools like "strings" and "objdump" when
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
71e396f9
LM
12014-10-27 Luis Machado <lgustavo@codesourcery.com>
2
3 * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
4 (arm_record_ld_st_imm_offset): Reimplement to cover all
5 load/store cases for ARM opcode 010.
6 (arm_record_ld_st_multiple): Reimplement to cover all
7 load/store cases for ARM opcode 100.
8
3aee438b
DE
92014-10-26 Doug Evans <xdje42@gmail.com>
10
11 * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
12
f88cb4b6
DE
132014-10-26 Doug Evans <xdje42@gmail.com>
14
15 * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
16 parameter "kind" to "block_index".
17 * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
18 "block_index".
19 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
20
a023a30f
DE
212014-10-26 Doug Evans <xdje42@gmail.com>
22
23 * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
24
4c35218e
DE
252014-10-26 Doug Evans <xdje42@gmail.com>
26
27 * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
28 obstack_alloc.
29
f08e8df3
DE
302014-10-26 Doug Evans <xdje42@gmail.com>
31
32 * parser-defs.h (block_found): Move decl from here ...
33 * symtab.h (block_found): ... to here.
34
cf901d3b
DE
352014-10-26 Doug Evans <xdje42@gmail.com>
36
37 * symtab.h (struct field_of_this_result): Fix typo in comment.
38 (lookup_symbol_in_language): Move function comment here.
39 (lookup_symbol): Improve function comment.
40 (basic_lookup_symbol_nonlocal): Ditto.
41 (lookup_symbol_static, lookup_symbol_global): Ditto.
42 (lookup_symbol_aux_block): Ditto.
43 (lookup_language_this): Add function comment.
44 (lookup_static_symbol_aux): Explicitly mark as extern. Improve
45 function comment.
46 (lookup_block_symbol): Improve function comment.
47 (lookup_struct): Fix capitalization in function comment.
48 (lookup_transparent_type): Add function comment.
49 (lookup_global_symbol_from_objfile): Explicitly mark as extern.
50 Improve function comment.
51 (lookup_objfile_from_block): Add function comment.
52 * symtab.c (lookup_symbol_in_language): Update function comment.
53 (lookup_symbol, lookup_language_this): Ditto.
54 (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
55 (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
56 (basic_lookup_symbol_nonlocal): Ditto.
57 (lookup_symbol_static, lookup_symbol_global): Ditto.
58 (lookup_transparent_type, lookup_block_symbol): Ditto.
59
ff6c39cf
DE
602014-10-25 Doug Evans <xdje42@gmail.com>
61
62 * symtab.c (types_info): Delete forward decl.
63 (functions_info, variables_info, sources_info): Ditto.
64 (_initialize_symtab): Rewrite forward decl to use
65 initialize_file_ftype.
66
ec201f0c
DE
672014-10-25 Doug Evans <xdje42@gmail.com>
68
69 * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
70
ca040673
DE
712014-10-25 Doug Evans <xdje42@gmail.com>
72
73 * dwarf2read.c (process_structure_scope): Remove second (nested) copy
74 of local var child_die.
75
6f259a23
DB
762014-10-24 Don Breazeal <donb@codesourcery.com>
77
78 * infrun.c (follow_fork_inferior): Update fork message printing
79 to use target_terminal_ours_for_output instead of
80 target_terminal_ours, to use _() for all format strings, to print
81 "vfork" instead of "fork" for vforks, and to add a detach message.
82 (handle_vfork_child_exec_or_exit): Update message printing to use
83 target_terminal_ours_for_output instead of target_terminal_ours, to
84 use _() for all format strings, and to fix some formatting.
85
09dd9a69
PA
862014-10-24 Pedro Alves <palves@redhat.com>
87
88 * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
89 * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
90 * config/vax/vax.mh: Delete.
91 * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
92 obsolete configurations section.
93 * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
94 * vax-nat.c: Delete file.
95
5ab806de
PA
962014-10-24 Pedro Alves <palves@redhat.com>
97
98 * NEWS (Removed targets): Add OS/arch column.
99
3433cfa5
SC
1002014-10-24 Siva Chandra Reddy <sivachandra@google.com>
101
102 * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
103 on the arg type of a constructor only if it is of reference type.
104
96ba4233
SL
1052014-10-23 Sandra Loosemore <sandra@codesourcery.com>
106
107 * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
108 accessors and constants from nios2 opcodes update.
109 (nios2_get_next_pc): Likewise.
110
28153fd3
DE
1112014-10-19 Doug Evans <xdje42@gmail.com>
112
113 * gdbthread.h (set_running): Fix comment.
114 (set_executing, finish_thread_state): Fix comment.
115
fc9b8e47
DE
1162014-10-18 Doug Evans <xdje42@gmail.com>
117
118 * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
119
4ffbba72
DE
1202014-10-17 Doug Evans <dje@google.com>
121
122 * NEWS: Mention new event gdb.clear_objfiles.
123 * python/py-event.h (emit_clear_objfiles_event): Clear
124 * python/py-events.h (events_object): New member clear_objfiles.
125 * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
126 event.
127 * python/py-inferior.c (python_new_objfile): If objfile is NULL,
128 emit clear_objfiles event.
129 * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
130 function.
131 (emit_clear_objfiles_event): New function.
132 (clear_objfiles): New event.
133 * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
134 Declare.
135 * python/python.c (_initialize_python): Call
136 gdbpy_initialize_clear_objfiles_event.
137
d096d8c1
DE
1382014-10-17 Doug Evans <dje@google.com>
139
140 * NEWS: Mention new gdb.Objfile.progspace attribute.
141 * python/py-objfile.c (objfpy_get_progspace): New function.
142 (objfile_getset): New entry for "progspace".
143
6c4486e6
PA
1442014-10-17 Pedro Alves <palves@redhat.com>
145
146 PR gdb/17471
147 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
148 returns a copy of the input.
149 (run_command_1, continue_command, step_1, jump_command)
150 (signal_command, until_command, advance_command, finish_command)
151 (attach_command): Adjust and install a cleanup to free the
152 stripped args.
153
0ff33695
PA
1542014-10-17 Pedro Alves <palves@redhat.com>
155
156 PR gdb/17300
157 * infcmd.c (continue_1): If continuing all threads in the
158 foreground, make sure the inferior's terminal settings are put in
159 effect.
160
6fdebc3d
PA
1612014-10-17 Pedro Alves <palves@redhat.com>
162
163 PR gdb/17472
164 * annotate.c (annotate_breakpoints_invalid): Use
165 target_terminal_our_for_output instead of target_terminal_ours.
166 Give back the terminal to the target.
167 (annotate_frames_invalid): Likewise.
168
5842f62a
PA
1692014-10-17 Pedro Alves <palves@redhat.com>
170
171 * target.c (enum terminal_state): New enum.
172 (terminal_state): New global.
173 (target_terminal_init): New function.
174 (target_terminal_inferior): Skip if inferior already owns the
175 terminal.
176 (target_terminal_ours, target_terminal_ours_for_output): New
177 functions.
178 * target.h (target_terminal_init): Convert to function prototype.
179 (target_terminal_ours_for_output): Convert to function prototype
180 and tweak comment.
181 (target_terminal_ours): Convert to function prototype and tweak
182 comment.
183 * windows-nat.c (do_initial_windows_stuff): Call
184 target_terminal_init instead of child_terminal_init_with_pgrp.
185
32a8097b
PA
1862014-10-17 Pedro Alves <palves@redhat.com>
187
188 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
189 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
190 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
191 solib-osf.c.
192 * NEWS: Mention that support for alpha*-*-osf* has been removed.
193 * ada-lang.h [__alpha__ && __osf__]
194 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
195 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
196 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
197 GDB_OSABI_OSF1.
198 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
199 files.
200 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
201 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
202 * configure: Regenerate.
203 * configure.ac: Remove references to osf.
204 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
205 section. Remove all other references to osf.
206 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
207 Remove all other references to osf.
208 * dec-thread.c: Delete file.
209 * defs.h (GDB_OSABI_OSF1): Delete.
210 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
211 defined.
212 * osabi.c (gdb_osabi_names): Delete "OSF/1".
213 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
214 Delete code.
215 (unconditionally_kill_inferior)
216 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
217 * solib-osf.c: Delete file.
218
80134cf5
PA
2192014-10-17 Pedro Alves <palves@redhat.com>
220
221 * remote.c (clear_threads_listing_context): Move higher up, out of
222 the HAVE_LIBEXPAT guard.
223
89c7137f
TG
2242014-10-16 Tristan Gingold <gingold@adacore.com>
225
226 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
227 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
228 on amd64.
229
44ee4a52
PA
2302014-10-15 Pedro Alves <palves@redhat.com>
231
232 * dec-thread.c (dec_thread_count_gdb_threads)
233 (dec_thread_add_gdb_thread): Delete.
234 (dec_thread_update_thread_list): Delete.
235 (dec_thread_find_new_threads): Rename to ...
236 (dec_thread_update_thread_list): ... this. Delete GDB-size
237 threads that are no longer found in dec_thread_list.
238 (resync_thread_list): Delete.
239 (dec_thread_wait): Call dec_thread_update_thread_list instead of
240 resync_thread_list.
241
ab970af1
PA
2422014-10-15 Pedro Alves <palves@redhat.com>
243
244 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
245 * remote.c (remote_update_thread_list): Skip calling prune_threads
246 if any thread listing method is supported, and instead walk over
247 the set of remote threads listed, deleting those that are not
248 found in GDB's thread list.
249
e8032dde
PA
2502014-10-15 Pedro Alves <palves@redhat.com>
251
252 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
253 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
254 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
255 (bsd_uthread_target): Adjust.
256 * corelow.c (core_open): Adjust.
257 * dec-thread.c (dec_thread_find_new_threads): Update comment.
258 (dec_thread_update_thread_list): New function.
259 (init_dec_thread_ops): Adjust.
260 * gdbthread.h (prune_threads): New declaration.
261 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
262 (thread_db_update_thread_list): ... this. Call prune_threads.
263 (init_thread_db_ops): Adjust.
264 * nto-procfs.c (procfs_find_new_threads): Rename to ...
265 (procfs_update_thread_list): ... this. Call prune_threads.
266 (procfs_attach, procfs_create_inferior, init_procfs_targets):
267 Adjust.
268 * obsd-nat.c (obsd_find_new_threads): Rename to ...
269 (obsd_update_thread_list): ... this. Call prune_threads.
270 (obsd_add_target): Adjust.
271 * procfs.c (procfs_target): Adjust.
272 (procfs_notice_thread): Update comment.
273 (procfs_find_new_threads): Rename to ...
274 (procfs_update_thread_list): ... this. Call prune_threads.
275 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
276 comment.
277 (ravenscar_wait): Adjust.
278 (ravenscar_find_new_threads): Rename to ...
279 (ravenscar_update_thread_list): ... this. Call prune_threads.
280 (init_ravenscar_thread_ops): Adjust.
281 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
282 (record_btrace_update_thread_list): ... this. Adjust comment.
283 (init_record_btrace_ops): Adjust.
284 * remote.c (remote_threads_info): Rename to ...
285 (remote_update_thread_list): ... this. Call prune_threads.
286 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
287 Adjust.
288 * sol-thread.c (check_for_thread_db): Adjust.
289 (sol_find_new_threads_callback): Rename to ...
290 (sol_update_thread_list_callback): ... this.
291 (sol_find_new_threads): Rename to ...
292 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
293 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
294 * target-delegates.c: Regenerate.
295 * target.c (target_find_new_threads): Rename to ...
296 (target_update_thread_list): ... this.
297 * target.h (struct target_ops): Rename to_find_new_threads field
298 to to_update_thread_list.
299 (target_find_new_threads): Rename to ...
300 (target_update_thread_list): ... this.
301 * thread.c (prune_threads): Make extern.
302 (update_thread_list): Adjust.
303
6dc54d91
PA
3042014-10-15 Pedro Alves <palves@redhat.com>
305
306 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
307 Add describing comment. Return -1 if the qL packet is not
308 supported.
309 (struct thread_item, thread_item_t): Move higher up in
310 the file. Add comments.
311 (struct threads_parsing_context): Move higher up in
312 the file, add comments, and remote to ...
313 (struct threads_listing_context): ... this.
314 (remote_newthread_step): Don't add the thread to GDB's thread
315 database here. Instead push it to the thread_listing_context
316 list.
317 (remote_find_new_threads): Rename to ...
318 (remote_get_threads_with_ql): ... this. Add target_ops and
319 targets_listing_context parameters. Pass down context.
320 (start_thread): Adjust.
321 (clear_threads_parsing_context): Rename to ...
322 (clear_threads_listing_context): ... this.
323 (remote_get_threads_with_qxfer): New, with parts salvaged from old
324 remote_threads_info.
325 (remote_get_threads_with_qthreadinfo): Ditto.
326 (remote_threads_info): Reimplement.
327
36728e82
PA
3282014-10-15 Pedro Alves <palves@redhat.com>
329
330 * infrun.c (resume): Don't force displaced-stepping for all
331 single-steps on software single-stepping archs.
332
34b7e8a6
PA
3332014-10-15 Pedro Alves <palves@redhat.com>
334
335 * breakpoint.c (single_step_breakpoints): Delete global.
336 (insert_single_step_breakpoint): Adjust to store the breakpoint
337 pointer in the current thread.
338 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
339 (cancel_single_step_breakpoints): Delete functions.
340 (breakpoint_has_location_inserted_here): Make extern.
341 (single_step_breakpoint_inserted_here_p): Adjust to walk the
342 breakpoint list.
343 * breakpoint.h (breakpoint_has_location_inserted_here): New
344 declaration.
345 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
346 (cancel_single_step_breakpoints): Remove declarations.
347 * gdbthread.h (struct thread_control_state)
348 <single_step_breakpoints>: New field.
349 (delete_single_step_breakpoints)
350 (thread_has_single_step_breakpoints_set)
351 (thread_has_single_step_breakpoint_here): New declarations.
352 * infrun.c (follow_exec): Also clear the single-step breakpoints.
353 (singlestep_breakpoints_inserted_p, singlestep_ptid)
354 (singlestep_pc): Delete globals.
355 (infrun_thread_ptid_changed): Remove references to removed
356 globals.
357 (resume_cleanups): Delete the current thread's single-step
358 breakpoints.
359 (maybe_software_singlestep): Remove references to removed globals.
360 (resume): Adjust to use thread_has_single_step_breakpoints_set and
361 delete_single_step_breakpoints.
362 (init_wait_for_inferior): Remove references to removed globals.
363 (delete_thread_infrun_breakpoints): Delete the thread's
364 single-step breakpoints too.
365 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
366 single-step breakpoints here.
367 (delete_stopped_threads_single_step_breakpoints): New function.
368 (adjust_pc_after_break): Adjust to use
369 thread_has_single_step_breakpoints_set.
370 (handle_inferior_event): Remove references to removed globals.
371 Use delete_stopped_threads_single_step_breakpoints.
372 (handle_signal_stop): Adjust to per-thread single-step
373 breakpoints. Swap test order to do cheaper tests first.
374 (switch_back_to_stepped_thread): Extend debug output. Remove
375 references to removed globals.
376 * record-full.c (record_full_wait_1): Adjust to per-thread
377 single-step breakpoints.
378 * thread.c (delete_single_step_breakpoints)
379 (thread_has_single_step_breakpoints_set)
380 (thread_has_single_step_breakpoint_here): New functions.
381 (clear_thread_inferior_resources): Also delete the thread's
382 single-step breakpoints.
383
5b834a0a
PA
3842014-10-15 Pedro Alves <palves@redhat.com>
385
386 * thread.c (delete_thread_breakpoint): New function.
387 (delete_step_resume_breakpoint)
388 (delete_exception_resume_breakpoint): Use it.
389 (delete_at_next_stop): New function.
390 (clear_thread_inferior_resources): Use delete_at_next_stop.
391
a1fd2fa5
PA
3922014-10-15 Pedro Alves <palves@redhat.com>
393
394 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
395 (breakpoint_inserted_here_p): ... here. Remove special case for
396 software single-step breakpoints.
397 (find_non_raw_software_breakpoint_inserted_here): Inline ...
398 (software_breakpoint_inserted_here_p): ... here. Remove special
399 case for software single-step breakpoints.
400 (bp_target_info_copy_insertion_state)
401 (deprecated_insert_raw_breakpoint)
402 (deprecated_remove_raw_breakpoint): Delete functions.
403 * breakpoint.h (deprecated_insert_raw_breakpoint)
404 (deprecated_remove_raw_breakpoint): Remove declarations.
405
7c16b83e
PA
4062014-10-15 Pedro Alves <palves@redhat.com>
407
408 PR breakpoints/9649
409 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
410 Delete array globals.
411 (single_step_breakpoints): New global.
412 (breakpoint_xfer_memory): Remove special handling for single-step
413 breakpoints.
414 (update_breakpoints_after_exec): Delete bp_single_step
415 breakpoints.
416 (detach_breakpoints): Remove special handling for single-step
417 breakpoints.
418 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
419 (bpstat_stop_status): Add comment.
420 (bpstat_what, bptype_string, print_one_breakpoint_location)
421 (adjust_breakpoint_address, init_bp_location): Handle
422 bp_single_step.
423 (new_single_step_breakpoint): New function.
424 (set_momentary_breakpoint, bkpt_remove_location): Remove special
425 handling for single-step breakpoints.
426 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
427 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
428 Rewrite.
429 (detach_single_step_breakpoints, find_single_step_breakpoint):
430 Delete functions.
431 (breakpoint_has_location_inserted_here): New function.
432 (single_step_breakpoint_inserted_here_p): Rewrite.
433 * breakpoint.h: Remove FIXME.
434 (enum bptype) <bp_single_step>: New enum value.
435 (insert_single_step_breakpoint): Update comment.
436 * infrun.c (resume_cleanups)
437 (delete_step_thread_step_resume_breakpoint): Remove single-step
438 breakpoints.
439 (fetch_inferior_event): Install a cleanup that removes infrun
440 breakpoints.
441 (switch_back_to_stepped_thread) <expect thread advanced also>:
442 Clear step-over info.
443
0cbcdb96
PA
4442014-10-15 Pedro Alves <palves@redhat.com>
445
446 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
447 (delete_thread_infrun_breakpoints): New function, with parts
448 salvaged from delete_step_resume_breakpoint_callback.
449 (delete_step_thread_step_resume_breakpoint): Delete.
450 (for_each_just_stopped_thread_callback_func): New typedef.
451 (for_each_just_stopped_thread): New function.
452 (delete_just_stopped_threads_infrun_breakpoints): New function.
453 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
454 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
455 ... this. Adjust.
456 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
457
963f9c80
PA
4582014-10-15 Pedro Alves <palves@redhat.com>
459
460 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
461 trying to step past a non-steppable watchpoint.
462 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
463 field.
464 * infrun.c (struct step_over_info): Add new field
465 'nonsteppable_watchpoint_p' and adjust comments.
466 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
467 Adjust.
468 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
469 (stepping_past_nonsteppable_watchpoint): New function.
470 (step_over_info_valid_p): Also return true if stepping past a
471 nonsteppable watchpoint.
472 (proceed): Adjust call to set_step_over_info. Remove reference to
473 init_infwait_state.
474 (init_wait_for_inferior): Remove reference to init_infwait_state.
475 (waiton_ptid): Delete global.
476 (struct execution_control_state)
477 <stepped_after_stopped_by_watchpoint>: Delete field.
478 (wait_for_inferior, fetch_inferior_event): Always pass
479 minus_one_ptid to target_wait.
480 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
481 field.
482 (init_infwait_state): Delete function.
483 (handle_inferior_event): Remove infwait_state handling.
484 (handle_signal_stop) <watchpoints handling>: Adjust after
485 stepped_after_stopped_by_watchpoint removal. Don't remove
486 breakpoints here nor set infwait_state. Set the thread's
487 stepping_over_watchpoint flag, and call keep_going instead.
488 (keep_going): Handle stepping_over_watchpoint. Adjust
489 set_step_over_info calls.
490 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
491 function.
492
6cc83d2a
PA
4932014-10-15 Pedro Alves <palves@redhat.com>
494
495 * infrun.c (step_over_info_valid_p): New function.
496 (resume): Use step_over_info_valid_p instead of checking the
497 threads's trap_expected flag.
498
6979730b
DE
4992014-10-15 Doug Evans <dje@google.com>
500 Walfred Tedeschi <walfred.tedeschi@intel.com>
501
502 PR python/17364
503 * python/lib/gdb/__init__.py (packages): Add "printer".
504 * python/lib/gdb/command/bound_registers.py: Moved to ...
505 * python/lib/gdb/printer/bound_registers.py: ... here.
506 Add printer to global set of builtin printers. Rename printer from
507 "bound" to "mpx_bound128".
508 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
509 registered as global "builtin" printer.
510 (add_builtin_pretty_printer): New function.
511 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
512 gdb/printer/__init__.py.
513
35a49624
IB
5142014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
515
516 * Makefile.in (SFILES): Remove d-support.c.
517 (COMMON_OBS): Remove d-support.o.
518 * d-lang.h (d_parse_symbol): Remove declaration.
519 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
520 * d-support.c: Remove file.
521
8fa0c4f8
AA
5222014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
523
524 * gdb/infrun.c (process_event_stop_test): Apply
525 gdbarch_addr_bits_remove to longjmp resume address.
526
3666da81
PA
5272014-10-15 Pedro Alves <palves@redhat.com>
528
529 * regformats/microblaze.dat: Delete file.
530
449aa9df
AKA
5312014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
532
533 * features/Makefile (microblaze-expedite): Replace pc with rpc.
534 * regformats/microblaze-with-stack-protect.dat: Regenerate.
535
ebb8ece2
SC
5362014-10-15 Siva Chandra Reddy <sivachandra@google.com>
537
538 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
539 as non-trivial.
540
82c48ac7
SC
5412014-10-15 Siva Chandra Reddy <sivachandra@google.com>
542
543 PR c++/13403
544 PR c++/15154
545 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
546 with qualified args.
547
c40cc657
JB
5482014-10-14 Joel Brobecker <brobecker@adacore.com>
549
550 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
551 of the case where the second operand is a pointer.
552 <BINOP_SUB>: Likewise.
553
0ea5cda8
SDJ
5542014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
555
556 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
557 only if it is not NULL.
558 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
559 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
560 (struct probe_ops) <clear_semaphore>: Likewise.
561 * tracepoint.c (start_tracing): Call set_semaphore only if it is
562 not NULL.
563 (stop_tracing): Likewise, for clear_semaphore.
564
f7088df3
SDJ
5652014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
566
567 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
568 using language_c, instead of current_language.
569
4e1bbde0
DE
5702014-10-13 Doug Evans <dje@google.com>
571
6ff5a0f6 572 * python/py-objfile.c (objfpy_initialize): New function.
4e1bbde0 573 (objfpy_new, objfile_to_objfile_object): Call it.
6ff5a0f6 574 * python/py-progspace.c (pspy_initialize): New function.
4e1bbde0
DE
575 (pspy_new, pspace_to_pspace_object): Call it.
576
c780cc2f
JK
5772014-10-13 Miroslav Franc <mfranc@redhat.com>
578 Jan Kratochvil <jan.kratochvil@redhat.com>
579
580 Fix "save breakpoints" for "catch" command.
581 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
582 newline.
583
99894e11
JK
5842014-10-12 Miroslav Franc <mfranc@redhat.com>
585
586 Fix "save breakpoints" for "disable $bpnum" command.
587 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
588
3831839c
PA
5892014-10-10 Pedro Alves <palves@redhat.com>
590
591 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
592 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
593 (HFILES_NO_SRCDIR): Remove solib-irix.h.
594 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
595 and been removed.
596 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
597 * configure.ac: Remove references to IRIX.
598 * configure.host: Add *-*-irix* to the obsolete hosts section.
599 Remove all other references to irix.
600 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
601 Delete files.
602
cc3afae2
AKA
6032014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
604
605 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
606 isn't valid, release the tdesc arch data and return NULL.
607
cdfa0b0a
PA
6082014-10-10 Pedro Alves <palves@redhat.com>
609
610 * linux-tdep.c: Include observer.h.
611 (linux_inferior_data): New global.
612 (struct linux_info): New structure.
613 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
614 (get_linux_inferior_data): New functions.
615 (linux_vsyscall_range): Rename to ...
616 (linux_vsyscall_range_raw): ... this.
617 (linux_vsyscall_range): New function; handles caching.
618 (_initialize_linux_tdep): Register linux_inferior_data. Install
619 inferior_exit and inferior_appeared observers.
620
8b9a549d
PA
6212014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
622 Pedro Alves <palves@redhat.com>
623
624 PR symtab/14466
625 * solib-svr4.c (svr4_read_so_list): Rename to ...
626 (svr4_current_sos_1): ... this and change the function comment.
627 (svr4_current_sos): New function.
628
3437254d
PA
6292014-10-10 Pedro Alves <palves@redhat.com>
630
631 * arch-utils.c (default_vsyscall_range): New function.
632 * arch-utils.h (default_vsyscall_range): New declaration.
633 * gdbarch.sh (vsyscall_range): New hook.
634 * gdbarch.h, gdbarch.c: Regenerate.
635 * linux-tdep.c (linux_vsyscall_range): New function.
636 (linux_init_abi): Install linux_vsyscall_range as
637 vsyscall_range gdbarch hook.
638 * memrange.c (address_in_mem_range): New function.
639 * memrange.h (address_in_mem_range): New declaration.
640 * symfile-mem.c (find_vdso_size): Delete function.
641 (add_vsyscall_page): Use gdbarch_vsyscall_range.
642
31cc0b80
PA
6432014-10-10 Pedro Alves <palves@redhat.com>
644
645 * infrun.c (normal_stop): Fix typo in comment.
646
3e3286a2
SDJ
6472014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
648
649 PR tdep/9390
650 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
651 typo when using logical AND to determine instruction type.
652
fcbdedf8
YQ
6532014-10-09 Yao Qi <yao@codesourcery.com>
654
655 * infrun.c (handle_signal_stop): Remove local variable
656 'printed'.
657
db984616
SS
6582014-10-08 Stan Shebs <stan@codesourcery.com>
659
660 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
661
3ba37e6c
GB
6622014-10-08 Gary Benson <gbenson@redhat.com>
663
664 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
665
a442d071
GB
6662014-10-08 Gary Benson <gbenson@redhat.com>
667
668 * common/common-defs.h: Include common-exceptions.h.
669 * exceptions.h: Do not include common-exceptions.h.
670
6f1947e8
GB
6712014-10-08 Gary Benson <gbenson@redhat.com>
672
673 * common/common-defs.h: Include cleanups.h.
674 * common/common-exceptions.c: Do not include cleanups.h.
675 * utils.h: Likewise.
676
c765fdb9
GB
6772014-10-08 Gary Benson <gbenson@redhat.com>
678
679 * ada-lang.c: Do not include exceptions.h.
680 * ada-valprint.c: Likewise.
681 * amd64-tdep.c: Likewise.
682 * auto-load.c: Likewise.
683 * block.c: Likewise.
684 * break-catch-throw.c: Likewise.
685 * breakpoint.c: Likewise.
686 * btrace.c: Likewise.
687 * c-lang.c: Likewise.
688 * cli/cli-cmds.c: Likewise.
689 * cli/cli-interp.c: Likewise.
690 * cli/cli-script.c: Likewise.
691 * completer.c: Likewise.
692 * corefile.c: Likewise.
693 * corelow.c: Likewise.
694 * cp-abi.c: Likewise.
695 * cp-support.c: Likewise.
696 * cp-valprint.c: Likewise.
697 * darwin-nat.c: Likewise.
698 * dwarf2-frame-tailcall.c: Likewise.
699 * dwarf2-frame.c: Likewise.
700 * dwarf2loc.c: Likewise.
701 * dwarf2read.c: Likewise.
702 * eval.c: Likewise.
703 * event-loop.c: Likewise.
704 * event-top.c: Likewise.
705 * f-valprint.c: Likewise.
706 * frame-unwind.c: Likewise.
707 * frame.c: Likewise.
708 * gdbtypes.c: Likewise.
709 * gnu-v2-abi.c: Likewise.
710 * gnu-v3-abi.c: Likewise.
711 * guile/scm-auto-load.c: Likewise.
712 * guile/scm-breakpoint.c: Likewise.
713 * guile/scm-cmd.c: Likewise.
714 * guile/scm-frame.c: Likewise.
715 * guile/scm-lazy-string.c: Likewise.
716 * guile/scm-param.c: Likewise.
717 * guile/scm-symbol.c: Likewise.
718 * guile/scm-type.c: Likewise.
719 * hppa-hpux-tdep.c: Likewise.
720 * i386-tdep.c: Likewise.
721 * inf-loop.c: Likewise.
722 * infcall.c: Likewise.
723 * infcmd.c: Likewise.
724 * infrun.c: Likewise.
725 * interps.c: Likewise.
726 * interps.h: Likewise.
727 * jit.c: Likewise.
728 * linespec.c: Likewise.
729 * linux-nat.c: Likewise.
730 * linux-thread-db.c: Likewise.
731 * m32r-rom.c: Likewise.
732 * main.c: Likewise.
733 * memory-map.c: Likewise.
734 * mi/mi-cmd-break.c: Likewise.
735 * mi/mi-cmd-stack.c: Likewise.
736 * mi/mi-interp.c: Likewise.
737 * mi/mi-main.c: Likewise.
738 * monitor.c: Likewise.
739 * nto-procfs.c: Likewise.
740 * objc-lang.c: Likewise.
741 * p-valprint.c: Likewise.
742 * parse.c: Likewise.
743 * ppc-linux-tdep.c: Likewise.
744 * printcmd.c: Likewise.
745 * probe.c: Likewise.
746 * python/py-auto-load.c: Likewise.
747 * python/py-breakpoint.c: Likewise.
748 * python/py-cmd.c: Likewise.
749 * python/py-finishbreakpoint.c: Likewise.
750 * python/py-frame.c: Likewise.
751 * python/py-framefilter.c: Likewise.
752 * python/py-function.c: Likewise.
753 * python/py-gdb-readline.c: Likewise.
754 * python/py-inferior.c: Likewise.
755 * python/py-infthread.c: Likewise.
756 * python/py-lazy-string.c: Likewise.
757 * python/py-linetable.c: Likewise.
758 * python/py-param.c: Likewise.
759 * python/py-prettyprint.c: Likewise.
760 * python/py-symbol.c: Likewise.
761 * python/py-type.c: Likewise.
762 * python/py-value.c: Likewise.
763 * python/python-internal.h: Likewise.
764 * python/python.c: Likewise.
765 * record-btrace.c: Likewise.
766 * record-full.c: Likewise.
767 * regcache.c: Likewise.
768 * remote-fileio.c: Likewise.
769 * remote-mips.c: Likewise.
770 * remote.c: Likewise.
771 * rs6000-aix-tdep.c: Likewise.
772 * rs6000-nat.c: Likewise.
773 * skip.c: Likewise.
774 * solib-darwin.c: Likewise.
775 * solib-dsbt.c: Likewise.
776 * solib-frv.c: Likewise.
777 * solib-ia64-hpux.c: Likewise.
778 * solib-spu.c: Likewise.
779 * solib-svr4.c: Likewise.
780 * solib.c: Likewise.
781 * spu-tdep.c: Likewise.
782 * stack.c: Likewise.
783 * stap-probe.c: Likewise.
784 * symfile-mem.c: Likewise.
785 * symmisc.c: Likewise.
786 * target.c: Likewise.
787 * thread.c: Likewise.
788 * top.c: Likewise.
789 * tracepoint.c: Likewise.
790 * tui/tui-interp.c: Likewise.
791 * typeprint.c: Likewise.
792 * utils.c: Likewise.
793 * valarith.c: Likewise.
794 * valops.c: Likewise.
795 * valprint.c: Likewise.
796 * value.c: Likewise.
797 * varobj.c: Likewise.
798 * windows-nat.c: Likewise.
799 * xml-support.c: Likewise.
800
484933d1
MR
8012014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
802
803 * mips-tdep.c (add_offset_16): Rewrite to implement what the
804 name implies.
805 (extended_mips16_next_pc): Update accordingly.
806
ab50adb6
MR
8072014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
808
809 * mips-tdep.c (mips16_instruction_is_compact_branch): New
810 function.
811 (micromips_instruction_is_compact_branch): Likewise.
812 (mips16_scan_prologue): Terminate scanning upon seeing a branch
813 or a compact jump, reaching a jump delay slot, or seeing a
814 second non-prologue instruction.
815 (micromips_scan_prologue): Also terminate scanning upon seeing a
816 compact branch or jump, or reaching a branch or jump delay slot.
817 (mips32_scan_prologue): Terminate scanning upon reaching a branch
818 or jump delay slot, or seeing a second non-prologue instruction.
819 (mips32_instruction_has_delay_slot): Retain instruction
820 examination code only, update arguments accordingly and move
821 instruction fetch pieces to...
822 (mips32_insn_at_pc_has_delay_slot): ... this new function.
823 (micromips_instruction_has_delay_slot): Likewise and to...
824 (micromips_insn_at_pc_has_delay_slot): ... this new function.
825 (mips16_instruction_has_delay_slot): Likewise and to...
826 (mips16_insn_at_pc_has_delay_slot): ... this new function.
827 (mips_single_step_through_delay): Update accordingly.
828 (mips_adjust_breakpoint_address): Likewise.
829
ae790652
MR
8302014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
831
832 * mips-tdep.c (micromips_instruction_has_delay_slot): When
833 !mustbe32 also return 1 for 32-bit instructions.
834 (mips16_instruction_has_delay_slot): Likewise. Add an
835 explanatory comment.
836
9b807e7b
MR
8372014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
838
839 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
840 symbols special.
841
0d5ed153
MR
8422014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
843
844 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
845 update comments.
846 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
847 for the breakpoint's address. Don't preinitialize `placed_size'.
848 (insert_bp_location): Set `reqstd_address' rather than
849 `placed_address'.
850 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
851 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
852 address.
853 (bkpt_remove_location): Likewise.
854 (deprecated_insert_raw_breakpoint): Likewise.
855 (deprecated_remove_raw_breakpoint): Likewise.
856 (find_single_step_breakpoint): Likewise.
857 * mem-break.c (default_memory_insert_breakpoint): Use
858 `reqstd_address' for the breakpoint's address. Don't set
859 `placed_address' or `placed_size' if breakpoint contents couldn't
860 have been determined.
861 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
862 the breakpoint's address.
863 (remote_insert_hw_breakpoint): Likewise. Don't set
864 `placed_address' or `placed_size' if breakpoint couldn't have been
865 set.
866 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
867 `reqstd_address' for the breakpoint's address.
868 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
869 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
870 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
871 * microblaze-linux-tdep.c
872 (microblaze_linux_memory_remove_breakpoint): Likewise.
873 * monitor.c (monitor_insert_breakpoint): Likewise.
874 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
875 (procfs_insert_hw_breakpoint): Likewise.
876 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
877 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
878 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
879 * remote-mips.c (mips_insert_breakpoint): Likewise.
880 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
881
3e871532
LM
8822014-10-03 Luis Machado <lgustavo@codesourcery.com>
883
884 * valops.c (value_assign): Check for bit field assignments
885 before calling architecture-specific register value
886 conversion functions.
887
ec48dc8b
PM
8882014-10-03 Pierre Muller <muller@sourceware.org>
889
890 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
891
b57bacec
PA
8922014-10-02 Pedro Alves <palves@redhat.com>
893
894 * breakpoint.c (breakpoints_should_be_inserted_now): Use
895 threads_are_executing.
896 * breakpoint.h (breakpoints_should_be_inserted_now): Add
897 describing comment.
898 * gdbthread.h (threads_are_executing): Declare.
899 (handle_signal_stop) <random signals>: Don't print about the
900 signal here if stopping.
901 (end_stepping_range): Don't notify observers here.
902 (normal_stop): Update the thread list. If stopped by a random
903 signal or a stepping range ended, notify observers.
904 * thread.c (threads_executing): New global.
905 (init_thread_list): Clear 'threads_executing'.
906 (set_executing): Set or clear 'threads_executing'.
907 (threads_are_executing): New function.
908 (update_threads_executing): New function.
909 (update_thread_list): Use it.
910
13fd3ff3
PA
9112014-10-02 Pedro Alves <palves@redhat.com>
912
913 PR breakpoints/17431
914 * breakpoint.c (update_breakpoints_after_exec): Don't create
915 overlay, longjmp, std terminate nor exception breakpoints here.
916
32990ada
PA
9172014-10-02 Pedro Alves <palves@redhat.com>
918
919 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
920 Adjust comments.
921 * inferior.c (find_inferior_for_program_space): Give preference to
922 the current inferior.
923 * inferior.h (find_inferior_for_program_space): Update comment.
924 * progspace.c (switch_to_program_space_and_thread): Prefer the
925 current inferior if it's bound to the program space requested. If
926 the inferior found doesn't have a PID yet, don't bother looking up
927 a thread.
928 * progspace.h (switch_to_program_space_and_thread): Adjust
929 comment.
930 * thread.c (any_thread_of_process, any_live_thread_of_process):
931 Give preference to the current thread.
932
0fec99e8
PA
9332014-10-01 Pedro Alves <palves@redhat.com>
934
935 * breakpoint.c (insert_bp_location): Error out if inserting a
936 software breakpoint at a read-only address.
937 * target.c (memory_xfer_check_region): New function, factored out
938 from ...
939 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
940 ULONGEST.
941 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
942 against the memory region attributes.
943
2ddf4301
SM
9442014-10-01 Simon Marchi <simon.marchi@ericsson.com>
945
946 * NEWS: Announce new exit-code field in -list-thread-groups
947 output.
948 * inferior.c (exit_inferior_1): Don't clear exit code.
949 (inferior_appeared): Clear exit code.
950 * mi/mi-main.c (print_one_inferior): Add printing of the exit
951 code.
952
5fdeec1d
PA
9532014-10-01 Pedro Alves <palves@redhat.com>
954
955 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
956 GENERATED" along with emacs/vi read-only markers.
957 * regformats/aarch64.dat: Regenerate.
958 * regformats/arm-with-iwmmxt.dat: Regenerate.
959 * regformats/arm-with-neon.dat: Regenerate.
960 * regformats/arm-with-vfpv2.dat: Regenerate.
961 * regformats/arm-with-vfpv3.dat: Regenerate.
962 * regformats/i386/amd64-avx-linux.dat: Regenerate.
963 * regformats/i386/amd64-avx.dat: Regenerate.
964 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
965 * regformats/i386/amd64-avx512.dat: Regenerate.
966 * regformats/i386/amd64-linux.dat: Regenerate.
967 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
968 * regformats/i386/amd64-mpx.dat: Regenerate.
969 * regformats/i386/amd64.dat: Regenerate.
970 * regformats/i386/i386-avx-linux.dat: Regenerate.
971 * regformats/i386/i386-avx.dat: Regenerate.
972 * regformats/i386/i386-avx512-linux.dat: Regenerate.
973 * regformats/i386/i386-avx512.dat: Regenerate.
974 * regformats/i386/i386-linux.dat: Regenerate.
975 * regformats/i386/i386-mmx-linux.dat: Regenerate.
976 * regformats/i386/i386-mmx.dat: Regenerate.
977 * regformats/i386/i386-mpx-linux.dat: Regenerate.
978 * regformats/i386/i386-mpx.dat: Regenerate.
979 * regformats/i386/i386.dat: Regenerate.
980 * regformats/i386/x32-avx-linux.dat: Regenerate.
981 * regformats/i386/x32-avx.dat: Regenerate.
982 * regformats/i386/x32-avx512-linux.dat: Regenerate.
983 * regformats/i386/x32-avx512.dat: Regenerate.
984 * regformats/i386/x32-linux.dat: Regenerate.
985 * regformats/i386/x32.dat: Regenerate.
986 * regformats/microblaze-with-stack-protect.dat: Regenerate.
987 * regformats/mips-dsp-linux.dat: Regenerate.
988 * regformats/mips-linux.dat: Regenerate.
989 * regformats/mips64-dsp-linux.dat: Regenerate.
990 * regformats/mips64-linux.dat: Regenerate.
991 * regformats/nios2-linux.dat: Regenerate.
992 * regformats/rs6000/powerpc-32.dat: Regenerate.
993 * regformats/rs6000/powerpc-32l.dat: Regenerate.
994 * regformats/rs6000/powerpc-64l.dat: Regenerate.
995 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
996 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
997 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
998 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
999 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
1000 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
1001 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
1002 * regformats/s390-linux32.dat: Regenerate.
1003 * regformats/s390-linux32v1.dat: Regenerate.
1004 * regformats/s390-linux32v2.dat: Regenerate.
1005 * regformats/s390-linux64.dat: Regenerate.
1006 * regformats/s390-linux64v1.dat: Regenerate.
1007 * regformats/s390-linux64v2.dat: Regenerate.
1008 * regformats/s390-te-linux64.dat: Regenerate.
1009 * regformats/s390x-linux64.dat: Regenerate.
1010 * regformats/s390x-linux64v1.dat: Regenerate.
1011 * regformats/s390x-linux64v2.dat: Regenerate.
1012 * regformats/s390x-te-linux64.dat: Regenerate.
1013 * regformats/tic6x-c62x-linux.dat: Regenerate.
1014 * regformats/tic6x-c62x.dat: Regenerate.
1015 * regformats/tic6x-c64x-linux.dat: Regenerate.
1016 * regformats/tic6x-c64x.dat: Regenerate.
1017 * regformats/tic6x-c64xp-linux.dat: Regenerate.
1018 * regformats/tic6x-c64xp.dat: Regenerate.
1019
db74e4ba
PA
10202014-10-01 Pedro Alves <palves@redhat.com>
1021
1022 * features/Makefile: Update comments.
1023 (XMLTOC): List all xml files we build C files from.
1024 (clean-cfiles): New rule.
1025
d63f2f84
PA
10262014-10-01 Pedro Alves <palves@redhat.com>
1027
1028 * features/i386/amd64-avx512-linux.c: Regenerate.
1029 * features/i386/amd64-avx512.c: Regenerate.
1030 * features/i386/x32-avx512-linux.c: Regenerate.
1031 * features/i386/x32-avx512.c: Regenerate.
1032
20ad026d
PA
10332014-10-01 Pedro Alves <palves@redhat.com>
1034
1035 * features/Makefile (WHICH): Remove arm-with-m,
1036 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
1037
acc9fe45
PA
10382014-10-01 Pedro Alves <palves@redhat.com>
1039
1040 * features/Makefile (clean): New rule.
1041
e001e535
PA
10422014-10-01 Pedro Alves <palves@redhat.com>
1043
1044 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
1045 (zmm14h): Add missing end quotes.
1046
bdc14417
PA
10472014-10-01 Pedro Alves <palves@redhat.com>
1048
1049 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
1050 * features/aarch64.c: Regenerate.
1051
d83ad864
DB
10522014-09-30 Don Breazeal <donb@codesourcery.com>
1053
1054 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
1055 code so as to work with follow_fork_inferior.
1056 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
1057 (inf_ttrace_create_inferior): Remove reference to
1058 inf_ttrace_vfork_ppid.
1059 (inf_ttrace_attach): Ditto.
1060 (inf_ttrace_detach): Ditto.
1061 (inf_ttrace_kill): Use current_inferior instead of
1062 inf_ttrace_vfork_ppid.
1063 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
1064 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
1065 inferior away from the parent.
1066 * infrun.c (follow_fork): Call follow_fork_inferior instead of
1067 target_follow_fork.
1068 (follow_fork_inferior): New function.
1069 (follow_inferior_reset_breakpoints): Make function static.
1070 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
1071 * linux-nat.c (linux_child_follow_fork): Move target-independent
1072 code to infrun.c:follow_fork_inferior.
1073
29082443
AA
10742014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1075
1076 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
1077 * gdbarch.c: Regenerate.
1078 * gdbarch.h: Likewise.
1079 * corelow.c (sniff_core_bfd): Drop presence check for deleted
1080 gdbarch method 'regset_from_core_section'.
1081 (get_core_register_section): Remove handling for the case that
1082 regset == NULL and regset_from_core_section is defined.
1083 (get_core_registers): Drop check for deleted method.
1084 * procfs.c (procfs_do_thread_registers): Adjust comment.
1085
f968fe80
AA
10862014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1087
1088 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
1089 (linux_nat_make_corefile_notes): Remove.
1090 (linux_target_install_ops): Do not set target method
1091 'make_corefile_notes'.
1092 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
1093 Remove field.
1094 (linux_corefile_thread_callback): Instead of args->collect, call
1095 linux_collect_thread_registers.
1096 (linux_make_corefile_notes): Remove 'collect' parameter. Return
1097 NULL unless there is a regset iterator.
1098 (linux_make_corefile_notes_1): Remove.
1099 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
1100 by linux_make_corefile_notes.
1101 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
1102
174ad59a
AA
11032014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1104
1105 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
1106 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
1107 Remove.
1108 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
1109
97094034
AA
11102014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1111
1112 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
1113 (xtensa_iterate_over_regset_sections): New.
1114 (xtensa_gdbarch_init): Adjust gdbarch initialization.
1115
f73d3ce7
AA
11162014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1117
1118 * vax-tdep.c (vax_regset_from_core_section): Remove.
1119 (vax_iterate_over_regset_sections): New.
1120 (vax_gdbarch_init): Adjust gdbarch initialization.
1121
cb24567a
AA
11222014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1123
1124 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
1125 (tilegx_regset_from_core_section): Remove.
1126 (tilegx_iterate_over_regset_sections): New.
1127 (tilegx_linux_init_abi): Adjust gdbarch initialization.
1128
e5139de8
AA
11292014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1130
1131 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
1132 (sparc_iterate_over_regset_sections): New.
1133 (sparc32_gdbarch_init): Adjust gdbarch initialization.
1134 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
1135 targets.
1136 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
1137 (sparc64fbsd_init_abi): Call fbsd_init_abi.
1138 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
1139 target method 'make_corefile_notes'.
1140
c6d41a6f
AA
11412014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1142
1143 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
1144 'sizeof_gregset' and 'sizeof_fpregset'.
1145 * sh-tdep.c (sh_regset_from_core_section): Remove.
1146 (sh_iterate_over_regset_sections): New.
1147 (sh_gdbarch_init): Adjust gdbarch initialization.
1148 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
1149 sizeof_fpregset.
1150 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
1151 'sizeof_gregset'.
1152
9845a0b5
AA
11532014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1154
1155 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
1156 (score7_linux_iterate_over_regset_sections): New.
1157 (score_gdbarch_init): Adjust gdbarch initialization.
1158
23ea9aeb
AA
11592014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1160
1161 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
1162 FreeBSD targets.
1163 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
1164 method 'make_corefile_notes'.
1165 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
1166 (ppcfbsd_regset_from_core_section): Remove.
1167 (ppcfbsd_iterate_over_regset_sections): New.
1168 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
1169 initialization.
1170 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
1171 (ppcnbsd_iterate_over_regset_sections): New.
1172 (ppcnbsd_init_abi): Adjust.
1173 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
1174 (ppcobsd_iterate_over_regset_sections): New.
1175 (ppcobsd_init_abi): Adjust.
1176 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
1177 (rs6000_aix_iterate_over_regset_sections): New.
1178 (rs6000_aix_init_osabi): Adjust.
1179
c5b8d704
AA
11802014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1181
1182 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
1183 (nios2_regset_from_core_section): Remove.
1184 (nios2_iterate_over_regset_sections): New.
1185 (nios2_linux_init_abi): Adjust gdbarch initialization.
1186
3636e608
AA
11872014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1188
1189 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
1190 (am33_iterate_over_regset_sections): New.
1191 (am33_linux_init_osabi): Adjust gdbarch initialization.
1192
d4036235
AA
11932014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1194
1195 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
1196 (mips_linux_iterate_over_regset_sections): New.
1197 (mips_linux_init_abi): Adjust gdbarch initialization.
1198 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
1199 (mips64obsd_iterate_over_regset_sections): New.
1200 (mips64obsd_init_abi): Adjust.
1201 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
1202 (mipsnbsd_iterate_over_regset_sections): New.
1203 (mipsnbsd_init_abi): Adjust.
1204
b61ddd6e
AA
12052014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1206
1207 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
1208 (m88k_iterate_over_regset_sections): New.
1209 (m88k_gdbarch_init): Adjust gdbarch initialization.
1210
55a2906a
AA
12112014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1212
1213 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
1214 (ia64_linux_iterate_over_regset_sections): New.
1215 (ia64_linux_init_abi): Adjust gdbarch initialization.
1216
022c98ab
AA
12172014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1218
1219 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
1220 (m68kbsd_iterate_over_regset_sections): New.
1221 (m68kbsd_init_abi): Adjust gdbarch initialization.
1222 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
1223 (m68k_linux_iterate_over_regset_sections): New.
1224 (m68k_linux_init_abi): Adjust gdbarch initialization.
1225
5fac247f
AA
12262014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1227
1228 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
1229 (m32r_linux_regset_from_core_section): Remove.
1230 (m32r_linux_iterate_over_regset_sections): New.
1231 (m32r_linux_init_abi): Adjust gdbarch initialization.
1232
490496c3
AA
12332014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1234
1235 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
1236 (amd64obsd_iterate_over_regset_sections): New.
1237 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
1238 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
1239 Remove.
1240 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
1241 regset_from_core_section initialization.
1242 * i386-tdep.c (i386_regset_from_core_section): Remove.
1243 (i386_iterate_over_regset_sections): New.
1244 (i386_gdbarch_init): Adjust gdbarch initialization.
1245 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
1246 (i386_iterate_over_regset_sections): New prototype.
1247 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
1248 Remove.
1249 (i386obsd_aout_iterate_over_regset_sections): New.
1250 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
1251 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
1252 targets.
1253 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
1254 (amd64fbsd_init_abi): Call fbsd_init_abi.
1255 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
1256 (i386fbsd4_init_abi): Call fbsd_init_abi.
1257 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
1258 target method 'make_corefile_notes'.
1259 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
1260
50c5eb53
AA
12612014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1262
1263 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
1264 (hppa_hpux_iterate_over_regset_sections): New.
1265 (hppa_hpux_init_abi): Adjust gdbarch initialization.
1266 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
1267 (hppa_linux_iterate_over_regset_sections): New.
1268 (hppa_linux_init_abi): Adjust.
1269 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
1270 (hppanbsd_iterate_over_regset_sections): New.
1271 (hppanbsd_init_abi): Adjust.
1272 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
1273 (hppaobsd_iterate_over_regset_sections): New.
1274 (hppaobsd_init_abi): Adjust.
1275
66afae4f
AA
12762014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1277
1278 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
1279 (frv_linux_iterate_over_regset_sections): New.
1280 (frv_linux_init_abi): Adjust gdbarch initialization.
1281
ed09174e
AA
12822014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1283
1284 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
1285 (armbsd_iterate_over_regset_sections): New prototype.
1286 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
1287 (armbsd_iterate_over_regset_sections): New.
1288 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
1289 initialization.
1290
dff2166e
AA
12912014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1292
1293 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
1294 (alpha_linux_iterate_over_regset_sections): New.
1295 (alpha_linux_init_abi): Adjust gdbarch initialization.
1296 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
1297 prototype.
1298 (alphanbsd_iterate_over_regset_sections): New prototype.
1299
4108500a
AA
13002014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1301
1302 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
1303 Remove.
1304 (aarch64_linux_iterate_over_regset_sections): New.
1305 (aarch64_linux_init_abi): Adjust gdbarch initialization.
1306
a904c024
AA
13072014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1308
1309 * fbsd-tdep.c: New file.
1310 * fbsd-tdep.h: New file.
1311 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
1312 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
1313 (ALLDEPFILES): Add fbsd-tdep.c.
1314
8f0435f7
AA
13152014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1316
1317 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
1318 parameter.
1319 * gdbarch.h: Regenerate.
1320 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
1321 iterator.
1322 (get_core_register_section): Add parameter 'regset' and use it, if
1323 set. Add parameter 'min_size' and verify the bfd section size
1324 against it.
1325 (get_core_registers_cb): Add parameter 'regset' and pass it to
1326 get_core_register section. For the "standard" register sections
1327 ".reg" and ".reg2", set an appropriate default for human_name.
1328 (get_core_registers): Don't abort when the gdbarch has an iterator
1329 but no regset_from_core_section. Add NULL/0 for parameters
1330 'regset'/'min_size' in calls to get_core_register_section.
1331 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
1332 'regset' and use it instead of calling the
1333 regset_from_core_section gdbarch method.
1334 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
1335 * i386-tdep.c (i386_supply_xstateregset)
1336 (i386_collect_xstateregset, i386_xstateregset): Moved to
1337 i386-linux-tdep.c.
1338 (i386_regset_from_core_section): Drop handling for .reg-xfp and
1339 .reg-xstate.
1340 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
1341 core file support only if the regset iterator hasn't been set.
1342 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
1343 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
1344 Moved from i386-tdep.c and renamed to *_linux*.
1345 (i386_linux_iterate_over_regset_sections): Add regset parameter to
1346 each callback invocation. Allow any .reg-xstate size when reading
1347 from a core file.
1348 * amd64-tdep.c (amd64_supply_xstateregset)
1349 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
1350 amd64-linux-tdep.c.
1351 (amd64_regset_from_core_section): Remove.
1352 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
1353 install an amd64-specific regset_from_core_section gdbarch method.
1354 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
1355 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
1356 Moved from amd64-tdep.c and renamed to *_linux*.
1357 (amd64_linux_iterate_over_regset_sections): Add regset parameter
1358 to each callback invocation. Allow any .reg-xstate size when
1359 reading from a core file.
1360 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
1361 (arm_linux_iterate_over_regset_sections): Add regset parameter to
1362 each callback invocation.
1363 (arm_linux_init_abi): No longer set the regset_from_core_section
1364 gdbarch method.
1365 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
1366 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
1367 each callback invocation.
1368 (ppc_linux_init_abi): No longer set the regset_from_core_section
1369 gdbarch method.
1370 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
1371 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
1372 (s390_regset_from_core_section): Remove.
1373 (s390_iterate_over_regset_sections): Add regset parameter to each
1374 callback invocation.
1375 (s390_gdbarch_init): No longer set the regset_from_core_section
1376 gdbarch method. Drop initialization of deleted tdep fields.
1377
5aa82d05
AA
13782014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1379
1380 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
1381 (amd64_linux_iterate_over_regset_sections): New.
1382 (amd64_linux_init_abi_common): Don't install the regset section
1383 list, but the new iterator in gdbarch.
1384 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
1385 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
1386 (arm_linux_iterate_over_regset_sections): ...here. New function.
1387 (arm_linux_init_abi): Set iterator instead of section list.
1388 * corelow.c (get_core_registers_cb): New function, logic moved
1389 from...
1390 (get_core_registers): ...loop body here. Use new iterator method
1391 instead of walking through the regset section list.
1392 * gdbarch.sh: Remove 'core_regset_sections'. New method
1393 'iterate_over_regset_sections'. New typedef
1394 'iterate_over_regset_sections_cb'.
1395 * gdbarch.c: Regenerate.
1396 * gdbarch.h: Likewise.
1397 * i386-linux-tdep.c (i386_linux_regset_sections)
1398 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
1399 Remove.
1400 (i386_linux_iterate_over_regset_sections): New.
1401 (i386_linux_init_abi): Don't choose a regset section list, but
1402 install new iterator in gdbarch.
1403 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
1404 (linux_collect_regset_section_cb): New function, logic moved
1405 from...
1406 (linux_collect_thread_registers): ...loop body here. Use iterator
1407 method instead of walking through list.
1408 (linux_make_corefile_notes_1): Check for presence of iterator
1409 method instead of regset section list.
1410 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
1411 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
1412 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
1413 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
1414 (ppc_linux_iterate_over_regset_sections): ...here. New function.
1415 (ppc_linux_init_abi): Don't choose from above regset section
1416 lists, but install new iterator in gdbarch.
1417 * regset.h (struct core_regset_section): Remove.
1418 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
1419 have_linux_v1, have_linux_v2, and have_tdb.
1420 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
1421 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
1422 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
1423 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
1424 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
1425 (s390_iterate_over_regset_sections): ...here. New function. Use
1426 new tdep fields.
1427 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
1428 regset section lists, but install new iterator.
1429
2eca4a8d
JK
14302014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1431
1432 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
1433
a73c2b56
SM
14342014-09-26 Simon Marchi <simon.marchi@ericsson.com>
1435
1436 * progspace.c (print_program_space): Don't prune program spaces
1437 before printing them.
1438
03d46957
PA
14392014-09-25 Pedro Alves <palves@redhat.com>
1440
1441 * infrun.c (user_visible_resume_ptid): Don't check
1442 singlestep_breakpoints_inserted_p.
1443
e558d7c1
PA
14442014-09-25 Pedro Alves <palves@redhat.com>
1445
1446 * breakpoint.c (should_be_inserted): Add debug output.
1447
7f89fd65
PA
14482014-09-25 Pedro Alves <palves@redhat.com>
1449
1450 * infrun.c (stepping_past_instruction_at)
1451 (clear_exit_convenience_vars): Point at infrun.h instead of
1452 inferior.h.
1453 (handle_signal_stop): Fix typo.
1454
b7576e5c
YQ
14552014-09-24 Yao Qi <yao@codesourcery.com>
1456
1457 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
1458 bitmask.
1459
9a6cf368
GB
14602014-09-22 Gary Benson <gbenson@redhat.com>
1461
1462 * target.c (target_stop): Updated comment.
1463
03f4463b
GB
14642014-09-22 Gary Benson <gbenson@redhat.com>
1465
1466 * target/target.h (target_stop_ptid): Renamed as...
1467 (target_stop_and_wait): New function. Updated comment.
1468 All uses updated.
1469 (target_continue_ptid): Renamed as...
1470 (target_continue_no_signal): New function. Updated comment.
1471 All uses updated.
1472
a25a5a45
PA
14732014-09-22 Pedro Alves <palves@redhat.com>
1474
1475 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
1476 and "auto" merged.
1477 * breakpoint.c (enum ugll_insert_mode): New enum.
1478 (always_inserted_mode): Now a plain boolean.
1479 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
1480 (breakpoints_always_inserted_mode): Delete.
1481 (breakpoints_should_be_inserted_now): New function.
1482 (insert_breakpoints): Pass UGLL_INSERT to
1483 update_global_location_list instead of calling
1484 insert_breakpoint_locations manually.
1485 (create_solib_event_breakpoint_1): New, factored out from ...
1486 (create_solib_event_breakpoint): ... this.
1487 (create_and_insert_solib_event_breakpoint): Use
1488 create_solib_event_breakpoint_1 instead of calling
1489 insert_breakpoint_locations manually.
1490 (update_global_location_list): Change parameter type from boolean
1491 to enum ugll_insert_mode. All callers adjusted. Adjust to use
1492 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
1493 (update_global_location_list_nothrow): Change parameter type from
1494 boolean to enum ugll_insert_mode.
1495 (_initialize_breakpoint): "breakpoint always-inserted" option is
1496 now a boolean command. Update help text.
1497 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
1498 (breakpoints_should_be_inserted_now): New declaration.
1499 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
1500 Remove breakpoints_always_inserted_mode check.
1501 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
1502 * remote.c (remote_start_remote): Likewise.
1503
04086b45
PA
15042014-09-22 Pedro Alves <palves@redhat.com>
1505
1506 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
1507 (insert_breakpoints): Don't call insert_breakpoint_locations here.
1508 Instead, pass UGLL_INSERT to update_global_location_list.
1509 (update_global_location_list): Change parameter type from boolean
1510 to enum ugll_insert_mode. All callers adjusted. Adjust to use
1511 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
1512 (create_solib_event_breakpoint_1): New, factored out from ...
1513 (create_solib_event_breakpoint): ... this.
1514 (create_and_insert_solib_event_breakpoint): Use
1515 create_solib_event_breakpoint_1 instead of calling
1516 insert_breakpoint_locations manually.
1517 (update_global_location_list): Handle UGLL_INSERT.
1518
44702360
PA
15192014-09-22 Pedro Alves <palves@redhat.com>
1520
1521 * breakpoint.c (enum ugll_insert_mode): New enum.
1522 (update_global_location_list)
1523 (update_global_location_list_nothrow): Change parameter type from
1524 boolean to enum ugll_insert_mode. All callers adjusted.
1525
93c6145a
JB
15262014-09-19 Joel Brobecker <brobecker@adacore.com>
1527
1528 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
1529 SystemTap support in GDB.
1530
89a5711c
DB
15312014-09-19 Don Breazeal <donb@codesourcery.com>
1532
1533 * linux-nat.c (linux_handle_extended_wait): Call
1534 linux_ptrace_get_extended_event.
1535 (wait_lwp): Call linux_is_extended_waitstatus.
1536 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
1537 and linux_is_extended_waitstatus.
1538 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
1539 linux_ptrace_get_extended_event.
1540 (linux_ptrace_get_extended_event): New function.
1541 (linux_is_extended_waitstatus): New function.
1542 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
1543 (linux_is_extended_waitstatus): New declarations.
1544
c3b7b696
YQ
15452014-09-19 Yao Qi <yao@codesourcery.com>
1546
1547 * dwarf2read.c (dwarf_decode_lines): Update declaration.
1548 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
1549 comments. Callers update.
1550 (dwarf_decode_lines): Likewise.
1551 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
1552 comments. Skip the line table if 'lowpc' is greater than
1553 'address'. Don't check
1554 dwarf2_per_objfile->has_section_at_zero.
1555
2b4fd423
DE
15562014-09-18 Doug Evans <dje@google.com>
1557
1558 * NEWS: Mention new "producer" attribute of gdb.Symtab.
1559 * python/py-symtab.c (stpy_get_producer): New function.
1560 (symtab_object_getset): Add "producer" attribute.
1561
5e43d467
UW
15622014-09-17 Ulrich Weigand  <uweigand@de.ibm.com>
1563
1564 PR gdb/17384
1565 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
1566 (do_captured_read_memory_integer): Remove.
1567 (safe_read_memory_integer): Use target_read_memory directly instead
1568 of catching errors in do_captured_read_memory_integer.
1569
04e79979
MR
15702014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
1571
1572 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
1573 not gdb/doc.
1574
76aeec5b
SDJ
15752014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1576
1577 * objc-lang.c (find_implementation_from_class): Remove dead code.
1578
2f693f9d
SDJ
15792014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1580
1581 PR cli/7233
1582 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
1583 "fprintf_unfiltered (gdb_stdlog...)".
1584
bb9d5f81
PP
15852014-09-16 Patrick Palka <patrick@parcs.ath.cx>
1586
1587 PR breakpoints/12526
1588 * breakpoint.h (struct watchpoint): New fields val_bitpos and
1589 val_bitsize.
1590 * breakpoint.c (watch_command_1): Use these fields to retain
1591 bitfield information.
1592 (extract_bitfield_from_watchpoint_value): New function.
1593 (watchpoint_check): Use it.
1594 (update_watchpoint): Use it. Optimize the address and length of a
1595 HW watchpoint pointing to a bitfield.
1596 * value.h (unpack_value_bitfield): New prototype.
1597 * value.c (unpack_value_bitfield): Make extern.
1598
05db5edd
ST
15992014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
1600
1601 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
1602 x86-dregs.o.
1603 * gnu-nat.c (inf_threads): New function.
1604 * gnu-nat.h (inf_threads_ftype): New typedef.
1605 (inf_threads): New declaration.
1606 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
1607 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
1608 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
1609 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
1610 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
1611 (i386_gnu_dr_get_control): New functions.
1612 (reg_addr): New structure.
1613 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
1614 i386 debugging register hooks.
1615 * NEWS: Mention this.
1616
5a578da5
OJ
16172014-08-13 Omair Javaid <omair.javaid@linaro.org>
1618
1619 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
1620 vector data transfer instructions.
1621 (arm_record_coproc_data_proc): Updated.
1622
f20f80dd
OJ
16232014-08-13 Omair Javaid <omair.javaid@linaro.org>
1624
1625 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
1626 arm_record_exreg_ld_st_insn.
1627 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
1628 load/store insns.
1629
851f26ae
OJ
16302014-08-13 Omair Javaid <omair.javaid@linaro.org>
1631
1632 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
1633 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
1634 processing instructions.
1635
1e1b6563
OJ
16362014-08-13 Omair Javaid <omair.javaid@linaro.org>
1637
1638 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
1639 for advance SIMD struct ld/st insn.
1640 (thumb2_record_decode_insn_handler): Replace stub handler with
1641 thumb2_record_asimd_struct_ld_st.
1642
60cc5e93
OJ
16432014-08-13 Omair Javaid <omair.javaid@linaro.org>
1644
1645 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
1646 for asimd, vfp and coprocessor insns.
1647 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
1648 and coprocessor insns.
1649 (thumb2_record_coproc_insn): New function.
1650 (thumb2_record_decode_insn_handler): Update coprocessor insns record
1651 handlers.
1652 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
1653 opcode 110 insns.
1654
81219e53
DE
16552014-09-13 Doug Evans <xdje42@gmail.com>
1656
1657 * NEWS: Mention new "queue-signal" command.
1658 * infcmd.c (queue_signal_command): New function.
1659 (_initialize_infcmd): Add new queue-signal command.
1660
d36bf488
DE
16612014-09-13 Doug Evans <xdje42@gmail.com>
1662
1663 * linux-nat.c (wait_lwp): Add debugging printf.
1664 (linux_nat_wait_1): Ditto.
1665
f37f681c
PA
16662014-09-12 Pedro Alves <palves@redhat.com>
1667
1668 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
1669 (create_and_insert_solib_event_breakpoint): New functions.
1670 * breakpoint.h (create_and_insert_solib_event_breakpoint)
1671 (remove_solib_event_breakpoints_at_next_stop): New declarations.
1672 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
1673 (remove_dbx_link_breakpoint): Delete function.
1674 (insert_dbx_link_bpt_in_file): Use
1675 create_and_insert_solib_event_breakpoint instead of
1676 deprecated_insert_raw_breakpoint.
1677 (procfs_wait): Don't check whether we hit __dbx_link here.
1678 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
1679 here.
1680 * solib-irix.c (base_breakpoint): Delete global.
1681 (disable_break): Delete function.
1682 (enable_break): Use create_solib_event_breakpoint
1683 instead of deprecated_insert_raw_breakpoint.
1684 (irix_solib_handle_event): New function.
1685 (irix_solib_create_inferior_hook): Don't run the target or disable
1686 the mapping-complete breakpoint here.
1687 (_initialize_irix_solib): Install irix_solib_handle_event as
1688 so_ops->handle_event hook.
1689
9d9bf2df
EBM
16902014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1691 Ulrich Weigand  <uweigand@de.ibm.com>
1692
1693 PR tdep/17379
1694 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
1695 instead of read_memory_unsigned_integer.
1696
b006a80e
GB
16972014-09-12 Gary Benson <gbenson@redhat.com>
1698
1699 * nat/linux-waitpid.c: Include common-defs.h.
1700 [GDBSERVER]: Add FIXME comment.
1701 [!GDBSERVER]: Don't include defs.h or signal.h.
1702 (linux_debug) [!GDBSERVER]: Remove empty block.
1703
296b1496
GB
17042014-09-12 Gary Benson <gbenson@redhat.com>
1705
1706 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
1707 Don't include defs.h or server.h.
1708
53f81362
GB
17092014-09-12 Gary Benson <gbenson@redhat.com>
1710
1711 * nat/linux-btrace.c: Include common-defs.h.
1712 Don't include defs.h, server.h or gdbthread.h.
1713 * nat/linux-btrace.h (struct target_ops): New forward declaration.
1714
727605ca
GB
17152014-09-12 Gary Benson <gbenson@redhat.com>
1716
1717 * common/agent.c: Include common-defs.h.
1718 Don't include defs.h or server.h.
1719 * common/buffer.c: Likewise.
1720 * common/common-debug.c: Likewise.
1721 * common/common-utils.c: Likewise.
1722 * common/errors.c: Likewise.
1723 * common/filestuff.c: Likewise.
1724 * common/format.c: Likewise.
1725 * common/gdb_vecs.c: Likewise.
1726 * common/print-utils.c: Likewise.
1727 * common/ptid.c: Likewise.
1728 * common/rsp-low.c: Likewise.
1729 * common/signals.c: Likewise.
1730 * common/vec.c: Likewise.
1731 * common/xml-utils.c: Likewise.
1732 * nat/linux-osdata.c: Likewise.
1733 * nat/linux-procfs.c: Likewise.
1734 * nat/linux-ptrace.c: Likewise.
1735 * nat/mips-linux-watch.c: Likewise.
1736 * target/waitstatus.c: Likewise.
1737
361c8ade
GB
17382014-09-12 Tom Tromey <tromey@redhat.com>
1739 Gary Benson <gbenson@redhat.com>
1740
1741 * common/common-regcache.h: New file.
1742 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
1743 * regcache.h: Include common-regcache.h.
1744 (regcache_read_pc): Don't declare.
1745 * regcache.c (get_thread_regcache_for_ptid): New function.
1746 * nat/linux-btrace.c: Don't include regcache.h.
1747 Include common-regcache.h.
1748 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
1749
a01cbb49
TS
17502014-09-11 Thomas Schwinge <thomas@codesourcery.com>
1751
1752 * regcache.h (struct regset): Declare.
1753
98880d46
PA
17542014-09-11 Pedro Alves <palves@redhat.com>
1755
1756 PR gdb/17347
1757 * main.c: Include "infrun.h".
1758 (catch_command_errors, catch_command_errors_const): Wait for the
1759 foreground command to complete.
1760 * top.c (maybe_wait_sync_command_done): New function, factored out
1761 from ...
1762 (maybe_wait_sync_command_done): ... here.
1763 * top.h (maybe_wait_sync_command_done): New declaration.
1764
bd9269f7
GB
17652014-09-11 Tom Tromey <tromey@redhat.com>
1766 Gary Benson <gbenson@redhat.com>
1767
1768 * common/symbol.h: New file.
1769 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
1770 * minsyms.c (find_minimal_symbol_address): New function.
1771 * common/agent.c: Include common/symbol.h.
1772 [!GDBSERVER]: Don't include objfiles.h.
1773 (agent_look_up_symbols): Use find_minimal_symbol_address.
1774
f8c1d06b
GB
17752014-09-11 Gary Benson <gbenson@redhat.com>
1776
1777 * target/target.h (target_stop_ptid, target_continue_ptid):
1778 Declare.
1779 * target.c (target_stop_ptid, target_continue_ptid): New
1780 functions.
1781 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
1782 (agent_run_command): Always use target_stop_ptid and
1783 target_continue_ptid.
1784
721ec300
GB
17852014-09-11 Tom Tromey <tromey@redhat.com>
1786 Gary Benson <gbenson@redhat.com>
1787
1788 * target/target.h: New file.
1789 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
1790 * target.h: Include target/target.h.
1791 (target_read_memory, target_write_memory): Don't declare.
1792 * target.c (target_read_uint32): New function.
1793 * common/agent.c: Include target/target.h.
1794 [!GDBSERVER]: Don't include target.h.
1795 (helper_thread_id): Type changed to uint32_t.
1796 (agent_get_helper_thread_id): Use target_read_uint32.
1797 (agent_run_command): Always use target_read_memory and
1798 target_write_memory.
1799 (agent_capability): Type changed to uint32_t.
1800 (agent_capability_check): Use target_read_uint32.
1801
c5e92cca
GB
18022014-09-11 Gary Benson <gbenson@redhat.com>
1803
1804 * common/common-debug.h (show_debug_regs): Declare.
1805 * common/common-debug.c (show_debug_regs): Define.
1806 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
1807 all uses with show_debug_regs. Replace all uses that considered
1808 debug_hw_points as a multi-value integer with straight boolean
1809 uses.
1810 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
1811 with show_debug_regs.
1812 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
1813 all uses with show_debug_regs.
1814 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
1815 uses with show_debug_regs.
1816
eeef931a
UW
18172014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
1818
1819 * findvar.c (address_from_register): Handle targets requiring
1820 a special conversion routine even for plain pointer types.
1821
8efa9855
UW
18222014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
1823
1824 * rs6000-nat.c (exec_one_dummy_insn): Remove.
1825 (store_register): Do not call exec_one_dummy_insn.
1826
eb479039
JB
18272014-09-10 Joel Brobecker <brobecker@adacore.com>
1828
1829 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
1830 dereference it first. Use value_enclosing_type instead of
1831 value_type.
1832 (ada_array_length): Likewise.
1833
deede10c
JB
18342014-09-10 Joel Brobecker <brobecker@adacore.com>
1835
1836 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
1837 Adjust function implementation and documentation accordingly.
1838 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
1839 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
1840 Update call to ada_value_ptr_subscript.
1841
7828a5f5
JB
18422014-09-10 Joel Brobecker <brobecker@adacore.com>
1843
1844 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
1845 instead of VAL's type.
1846
35782f14
JB
18472014-09-10 Joel Brobecker <brobecker@adacore.com>
1848
1849 * amd64-linux-nat.c: Add <sys/uio.h> #include.
1850
d342a0da
DE
18512014-09-09 Doug Evans <xdje42@gmail.com>
1852
1853 PR guile/17367
1854 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
1855 last parameter to pkg-config, not first.
1856 * configure.ac: Pass --with-guile provided pkg-config path to
1857 GDB_GUILE_PROGRAM_NAMES.
1858 * configure: Regenerate.
1859
b4a3d263
GKB
18602014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
1861
1862 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
1863 Bertazi".
1864
6e466374
MR
18652014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
1866
1867 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
1868 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
1869 the list of sections determining GDB_OSABI_IRIX.
1870
a1ada89a
JH
18712014-09-09 James Hogan <james.hogan@imgtec.com>
1872
1873 * MAINTAINERS (Write After Approval): Add "James Hogan".
1874
86db008d
JH
18752014-09-09 James Hogan <james.hogan@imgtec.com>
1876
1877 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
1878
72fde3df
JB
18792014-09-09 Joel Brobecker <brobecker@adacore.com>
1880
1881 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
1882
92d8d229
DE
18832014-09-08 Doug Evans <xdje42@gmail.com>
1884
1885 PR 17247
1886 * guile.c: #include <signal.h>.
1887 (_initialize_guile): Block SIGCHLD while initializing Guile.
1888
1889 Replaces the following, which is reverted.
1890
1891 2014-07-26 Doug Evans <xdje42@gmail.com>
1892
1893 PR 17185
1894 * configure.ac: Add check for header gc/gc.h.
1895 Add check for function setenv.
1896 * configure: Regenerate.
1897 * config.in: Regenerate.
1898 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1899
d81412aa
DE
19002014-09-08 Doug Evans <xdje42@gmail.com>
1901
1902 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
1903 with named constant. Fix style of pointer comparison.
1904 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
1905
a9f116cb
GKB
19062014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
1907
1908 PR gdb/17035
1909 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
1910 decide whether we display the command on "show user".
1911 * cli/cli-script.c (show_user_1): Only verify cmdlines after
1912 printing command name.
1913 * cli/cli-decode.h (cli_user_command_p): Declare new function.
1914 * cli/cli-decode.c (cli_user_command_p): Create helper function
1915 to verify whether cmd_list_element is a user-defined command.
1916
c75bd3a2
JK
19172014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1918
1919 PR python/17355
1920 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
1921 Fix goto out of TRY_CATCH.
1922
faa42425 19232014-09-06 Doug Evans <xdje42@gmail.com>
1a52a81c 1924 Tom Tromey <tromey@redhat.com>
faa42425
DE
1925
1926 PR 15276
1927 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
1928 $_any_caller_matches.
1929 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
1930 * python/lib/gdb/function/caller_is.py: New file.
1931
0d41ba00
DE
19322014-09-06 Doug Evans <xdje42@gmail.com>
1933
1934 * infcmd.c (program_info): Fix typo.
1935
474ca4f6
SDJ
19362014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
1937
1938 PR gdb/17235
1939 * stap-probe.c (stap_parse_single_operand): Delete unused variable
1940 'number'. New variable 'has_digit'. Rewrite code to deal with
1941 subexpressions on SDT probes.
1942
ebf13736
PA
19432014-09-04 Pedro Alves <palves@redhat.com>
1944
1945 * c-exp.y (parse_number): Skip handling base-switching prefixes if
1946 the input is only one character long.
1947
eb0b0463
SDJ
19482014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
1949
1950 PR fortran/17237
1951 * f-valprint.c (f_val_print): Specify the correct print option to
1952 use when printing integer values.
1953
5ee44bfa
GB
19542014-09-04 Gary Benson <gbenson@redhat.com>
1955
1956 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
1957 Remove code to cope with LWPs wrapped as PIDs.
1958 Add assertions to ensure no wrapped LWPs are passed.
1959
4875ffdb
PA
19602014-09-04 Pedro Alves <palves@redhat.com>
1961
1962 * value.c (value_ranges_copy_adjusted): New function, factored out
1963 from ...
1964 (value_contents_copy_raw): ... here.
1965 (unpack_value_bits_as_long_1): Rename back to ...
1966 (unpack_bits_as_long): ... this. Remove 'original_value' and
1967 'result' parameters. Change return type to LONGEST.
1968 (unpack_value_bits_as_long): Delete.
1969 (unpack_value_field_as_long_1): Delete.
1970 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
1971 (unpack_value_bitfield): New function.
1972 (value_field_bitfield): Reimplement using unpack_value_bitfield.
1973 (value_fetch_lazy): Use unpack_value_bitfield.
1974 * value.h (unpack_value_bits_as_long): Delete declaration.
1975
5f3b99cf
SS
19762014-09-03 Sasha Smundak <asmundak@google.com>
1977
1978 * python/py-frame.c (frapy_read_register): New function.
1979
ac740bc7
JH
19802014-09-03 James Hogan <james.hogan@imgtec.com>
1981
1982 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
1983 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
1984
7d793aa9
SDJ
19852014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
1986
1987 PR python/16699
1988 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
1989 function.
1990 (add_cmd): Set "completer_handle_brkchars" to NULL.
1991 * cli/cli-decode.h (struct cmd_list_element)
1992 <completer_handle_brkchars>: New field.
1993 * command.h (completer_ftype_void): New typedef.
1994 (set_cmd_completer_handle_brkchars): New prototype.
1995 * completer.c (set_gdb_completion_word_break_characters): New
1996 function.
1997 (complete_line_internal): Call "completer_handle_brkchars"
1998 callback from command.
1999 * completer.h: Include "command.h".
2000 (set_gdb_completion_word_break_characters): New prototype.
2001 * python/py-cmd.c (cmdpy_completer_helper): New function.
2002 (cmdpy_completer_handle_brkchars): New function.
2003 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
2004 (cmdpy_init): Set completer_handle_brkchars to
2005 cmdpy_completer_handle_brkchars.
2006
97ea6506
GB
20072014-09-03 Gary Benson <gbenson@redhat.com>
2008
2009 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
2010 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
2011 Loop conditions changed to equivalent form.
2012 (struct x86_debug_reg_state): Updated dr_ref_count comment.
2013 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
2014 ALL_DEBUG_ADDRESS_REGISTERS.
2015
d1437815
JB
20162014-09-03 Joel Brobecker <brobecker@adacore.com>
2017
2018 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
2019 description fix.
2020
9b94fcf1
DE
20212014-09-02 Doug Evans <dje@google.com>
2022
2023 * typeprint.c (find_global_typedef): Fix comment.
2024
df7e5265
GB
20252014-09-02 Gary Benson <gbenson@redhat.com>
2026
2027 * i386-nat.h: Renamed as...
2028 * x86-nat.h: New file. All type, function and variable name
2029 prefixes changed from "i386_" to "x86_". All references updated.
2030 * i386-nat.c: Renamed as...
2031 * x86-nat.c: New file. All type, function and variable name
2032 prefixes changed from "i386_" to "x86_". All references updated.
2033 * common/i386-xstate.h: Renamed as...
2034 * common/x86-xstate.h: New file. All type, function and variable
2035 name prefixes changed from "i386_" to "x86_". All references
2036 updated.
2037 * nat/i386-cpuid.h: Renamed as...
2038 * nat/x86-cpuid.h: New file. All type, function and variable name
2039 prefixes changed from "i386_" to "x86_". All references updated.
2040 * nat/i386-gcc-cpuid.h: Renamed as...
2041 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
2042 name prefixes changed from "i386_" to "x86_". All references
2043 updated.
2044 * nat/i386-dregs.h: Renamed as...
2045 * nat/x86-dregs.h: New file. All type, function and variable name
2046 prefixes changed from "i386_" to "x86_". All references updated.
2047 * nat/i386-dregs.c: Renamed as...
2048 * nat/x86-dregs.c: New file. All type, function and variable name
2049 prefixes changed from "i386_" to "x86_". All references updated.
2050
1c3569d4
MR
20512014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
2052
2053 * varobj.c (_initialize_varobj): Move to the end of file.
2054
ff55e1b5
GB
20552014-08-29 Gary Benson <gbenson@redhat.com>
2056
2057 * common/common-exceptions.h: New file.
2058 * common/common-exceptions.c: Likewise.
2059 * Makefile.in (SFILES): Add common/common-exceptions.c.
2060 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
2061 (COMMON_OBS): Add common-exceptions.o.
2062 (common-exceptions.o): New rule.
2063 * exceptions.h (common-exceptions.h): Include.
2064 (gdb_setjmp.h): Do not include.
2065 (return_reason): Moved to common-exceptions.h.
2066 (enum return_reason): Likewise.
2067 (RETURN_MASK): Likewise.
2068 (typedef return_mask): Likewise.
2069 (enum errors): Likewise.
2070 (struct gdb_exception): Likewise.
2071 (exceptions_state_mc_init): Likewise.
2072 (exceptions_state_mc_action_iter): Likewise.
2073 (exceptions_state_mc_action_iter_1): Likewise.
2074 (TRY_CATCH): Likewise.
2075 (throw_exception): Likewise.
2076 (throw_verror): Likewise.
2077 (throw_vquit): Likewise.
2078 (throw_error): Likewise.
2079 (throw_quit): Likewise.
2080 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
2081 (enum catcher_action): Likewise.
2082 (struct catcher): Likewise.
2083 (current_catcher): Likewise.
2084 (catcher_list_size): Likewise.
2085 (exceptions_state_mc_init): Likewise.
2086 (catcher_pop): Likewise.
2087 (exceptions_state_mc): Likewise.
2088 (exceptions_state_mc_action_iter): Likewise.
2089 (exceptions_state_mc_action_iter_1): Likewise.
2090 (throw_exception): Likewise.
2091 (exception_messages): Likewise.
2092 (exception_messages_size): Likewise.
2093 (throw_it): Likewise.
2094 (throw_verror): Likewise.
2095 (throw_vquit): Likewise.
2096 (throw_error): Likewise.
2097 (throw_quit): Likewise.
2098 (prepare_to_throw_exception): New function.
2099
e9bcb658
GB
21002014-08-29 Gary Benson <gbenson@redhat.com>
2101
2102 * common/gdb_setjmp.h: New file.
2103 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
2104 * configure.ac: Move sigsetjmp check...
2105 * common/common.m4: ...here.
2106 * configure: Regenerate.
2107 * cp-support.c (SIGJMP_BUF): Delete.
2108 (SIGSETJMP): Likewise.
2109 (SIGLONGJMP): Likewise.
2110 * exceptions.h (gdb_setjmp.h): Include.
2111 (setjmp.h): Do not include.
2112 (EXCEPTIONS_SIGJMP_BUF): Delete.
2113 (EXCEPTIONS_SIGSETJMP): Likewise.
2114 (EXCEPTIONS_SIGLONGJMP): Likewise.
2115 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
2116 from gdb_setjmp.h.
2117 * exceptions.c: Likewise.
2118
e3180625
GB
21192014-08-29 Gary Benson <gbenson@redhat.com>
2120
2121 * cleanups.h: Moved to...
2122 * common/cleanups.h: New file.
2123 * cleanups.c: Moved to...
2124 * common/cleanups.c: New file. Include common-defs.h and
2125 cleanups.h. Do not include defs.h.
2126 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
2127 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
2128 (cleanups.o): New rule.
2129
e3d6ba5d
GB
21302014-08-29 Gary Benson <gbenson@redhat.com>
2131
2132 * common/errors.h (internal_warning): New declaration.
2133 (internal_vwarning): Likewise.
2134 * common/errors.c (internal_warning): New function.
2135 * utils.h (internal_warning): Don't declare.
2136 (internal_vwarning): Likewise.
2137 * utils.c (internal_warning): Removed.
2138
075c7033
GB
21392014-08-29 Gary Benson <gbenson@redhat.com>
2140
2141 * main.c (captured_main): Use warning during startup.
2142 Prefix startup warning messages with command name.
2143
91b35fd0
GB
21442014-08-29 Gary Benson <gbenson@redhat.com>
2145
2146 * main.c (captured_main): Handle usage errors with error.
2147
b1ec390e
GB
21482014-08-29 Gary Benson <gbenson@redhat.com>
2149
2150 * go32-nat.c (go32_create_inferior): Replace a fprintf/
2151 exit pair with a call to error. Wrap the message with _().
2152
fd0ef3dd
GB
21532014-08-29 Gary Benson <gbenson@redhat.com>
2154
2155 * main.c (captured_main): Replace a fprintf/exit
2156 pair with a call to error. Wrap the message with _().
2157
e0e6bcab
GB
21582014-08-29 Gary Benson <gbenson@redhat.com>
2159
2160 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
2161 pairs with calls to error. Wrap the message with _().
2162
0d2f5c07
GB
21632014-08-29 Gary Benson <gbenson@redhat.com>
2164
2165 * utils.c (vwarning): Protect calls to target_terminal_ours
2166 and wrap_here.
2167
5df43998
GB
21682014-08-29 Gary Benson <gbenson@redhat.com>
2169
2170 * exceptions.c (print_flush): Protect calls to
2171 target_terminal_ours and wrap_here.
2172
2437fd32
GB
21732014-08-29 Gary Benson <gbenson@redhat.com>
2174
2175 * utils.h (filtered_printing_initialized): New declaration.
2176 * utils.c (abort_with_message): New function.
2177 (internal_vproblem): Use abort_with_message for first level
2178 recursive internal problems, and if gdb_stderr is not set up.
2179 Protect calls to target_terminal_ours, begin_line and query.
2180
f1f58506
DE
21812014-08-28 Doug Evans <dje@google.com>
2182
2183 * symtab.c (in_prologue): Move definition to better spot.
2184 (skip_prologue_using_sal): Ditto.
2185
aab2f208
DE
21862014-08-28 Doug Evans <dje@google.com>
2187
2188 * symtab.c (find_function_start_sal): Move definition to better spot.
2189
6b65d1b6
YQ
21902014-08-28 Yao Qi <yao@codesourcery.com>
2191
2192 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
2193 found_stack_adjust in forward scan. Remove condition check
2194 on found_stack_adjust which is always true. Indent the code.
2195
a1b34d15
YQ
21962014-08-28 Yao Qi <yao@codesourcery.com>
2197
2198 * dwarf2read.c (dwarf_decode_lines): Update declaration.
2199 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
2200 (dwarf_decode_lines): Remove argument
2201 want_line_info. Remove condition check on want_line_info.
2202 Callers update.
2203
d5962de5
DE
22042014-08-27 Doug Evans <dje@google.com>
2205
2206 * dwarf2read.c (dwarf_record_line): Fix typo.
2207
9b139002
SDJ
22082014-08-27 Patrick Palka <patrick@parcs.ath.cx>
2209
2210 * target.h (struct target_ops::to_terminal_save_ours): Remove
2211 declaration.
2212 (target_terminal_save_ours): Remove macro.
2213 * target-delegates.c: Regenerate.
2214 * inf-child.c (inf_child_target): Don't set the nonexistent
2215 field to_terminal_save_ours.
2216 * inferior.h (child_terminal_save_ours): Remove declaration.
2217 * terminal.h (gdb_save_tty_state): New declaration.
2218 * inflow.c (child_terminal_save_ours): Rename to ...
2219 (gdb_save_tty_state): ... this.
2220 * tui/tui.c: Include terminal.h.
2221 (tui_enable): Use gdb_save_tty_state instead of
2222 target_terminal_save_ours.
2223 (tui_disable): Likewise.
2224
9debeba0
DE
22252014-08-25 Doug Evans <dje@google.com>
2226
2227 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
2228 Pass NULL instead of 0 for context pointer.
2229
428fc5fc
YQ
22302014-08-25 Yao Qi <yao@codesourcery.com>
2231
2232 * dwarf2read.c: Fix grammatical error.
2233
cdc07690
YQ
22342014-08-24 Yao Qi <yao@codesourcery.com>
2235
2236 * dwarf2read.c (scan_partial_symbols): Update comments.
2237 Rename argument 'need_pc' with 'set_addrmap'.
2238 (add_partial_namespace): Rename argument 'need_pc' with
2239 'set_addrmap'.
2240 (add_partial_module): Likewise.
2241 (add_partial_subprogram): Likewise. Update comments.
2242 (dwarf2_name): Fix typo.
2243
a05a36a5
DE
22442014-08-22 Doug Evans <dje@google.com>
2245
2246 PR 17276
2247 * dwarf2read.c (dwarf_record_line_p): New function.
2248 (dwarf_decode_lines_1): Ignore subsequent line number entries
2249 for the same line if any entry had a non-zero discriminator.
2250
252a6764
DE
22512014-08-22 Doug Evans <dje@google.com>
2252
2253 * buildsym.h (record_line_ftype): New typedef.
2254 (record_line): Use it.
2255 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
2256 (dwarf_decode_lines_1): Call them.
2257
510db052
YQ
22582014-08-22 Yao Qi <yao@codesourcery.com>
2259
2260 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
2261 (ctf_end): Remove code.
2262
22fd09ae
JK
22632014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2264
2265 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
2266 (linux_make_corefile_notes): call update_thread_list, protected against
2267 exceptions.
2268
656e8868
PA
22692014-08-21 Pedro Alves <palves@redhat.com>
2270
2271 * infcmd.c (attach_command): Remove comment.
2272
de589d04
WN
22732014-08-21 Bin Cheng <bin.cheng@arm.com>
2274
2275 * aarch64-linux-nat.c (dr_changed_t): Change the type from
2276 unsigned LONGEST to ULONGEST.
2277
2a31c623
PA
22782014-08-20 Pedro Alves <palves@redhat.com>
2279
2280 * Makefile.in (check-read1): New rule.
2281
d36430db
JB
22822014-08-20 Joel Brobecker <brobecker@adacore.com>
2283
2284 * value.c (value_from_contents_and_address): Strip resolved_type's
2285 typedef layers before checking its TYPE_DATA_LOCATION.
2286
000339af
PA
22872014-08-20 Pedro Alves <palves@redhat.com>
2288
2289 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
2290
5f52445b
YQ
22912014-08-20 Yao Qi <yao@codesourcery.com>
2292
2293 * amd64-tdep.c (amd64_classify): Add a blank line after the
2294 example. Move "*/" to a new line.
2295 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
2296 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
2297 * dwarf2read.c (psymtab_include_file_name): Likewise.
2298
9a0dc9e3
PA
22992014-08-19 Andrew Burgess <aburgess@broadcom.com>
2300 Pedro Alves <palves@redhat.com>
2301
2302 PR symtab/14604
2303 PR symtab/14605
2304 * ada-lang.c (coerce_unspec_val_to_type): Use
2305 value_contents_copy_raw.
2306 * ada-valprint.c (val_print_packed_array_elements): Adjust.
2307 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
2308 * cp-valprint.c (cp_print_value_fields): Let the common printing
2309 code handle optimized out values.
2310 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
2311 * d-valprint.c (dynamic_array_type): Use
2312 value_bits_any_optimized_out.
2313 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
2314 check_any_valid fields.
2315 (check_pieced_value_bits): Delete and inline ...
2316 (check_pieced_synthetic_pointer): ... here.
2317 (check_pieced_value_validity): Delete.
2318 (check_pieced_value_invalid): Delete.
2319 (pieced_value_funcs): Remove check_validity and check_any_valid
2320 fields.
2321 (read_pieced_value): Use mark_value_bits_optimized_out.
2322 (write_pieced_value): Switch to use
2323 mark_value_bytes_optimized_out.
2324 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
2325 of assuming the whole value is optimized out.
2326 * findvar.c (read_frame_register_value): Remove special handling
2327 of optimized out registers.
2328 (value_from_register): Use mark_value_bytes_optimized_out.
2329 * frame-unwind.c (frame_unwind_got_optimized): Use
2330 mark_value_bytes_optimized_out.
2331 * jv-valprint.c (java_value_print): Adjust.
2332 (java_print_value_fields): Let the common printing code handle
2333 optimized out values.
2334 * mips-tdep.c (mips_print_register): Remove special handling of
2335 optimized out registers.
2336 * opencl-lang.c (lval_func_check_validity): Delete.
2337 (lval_func_check_any_valid): Delete.
2338 (opencl_value_funcs): Remove check_validity and check_any_valid
2339 fields.
2340 * p-valprint.c (pascal_object_print_value_fields): Let the common
2341 printing code handle optimized out values.
2342 * stack.c (read_frame_arg): Remove special handling of optimized
2343 out values. Fetch both VAL and ENTRYVAL before comparing
2344 contents. Adjust to value_available_contents_eq rename.
2345 * valprint.c (valprint_check_validity)
2346 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
2347 (val_print_array_elements): Adjust.
2348 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
2349 (value_bits_any_optimized_out): New function.
2350 (value_entirely_covered_by_range_vector): New function, factored
2351 out from value_entirely_unavailable.
2352 (value_entirely_unavailable): Reimplement.
2353 (value_entirely_optimized_out): New function.
2354 (insert_into_bit_range_vector): New function, factored out from
2355 mark_value_bits_unavailable.
2356 (mark_value_bits_unavailable): Reimplement.
2357 (struct ranges_and_idx): New struct.
2358 (find_first_range_overlap_and_match): New function, factored out
2359 from value_available_contents_bits_eq.
2360 (value_available_contents_bits_eq): Rename to ...
2361 (value_contents_bits_eq): ... this. Check both unavailable
2362 contents and optimized out contents.
2363 (value_available_contents_eq): Rename to ...
2364 (value_contents_eq): ... this.
2365 (allocate_value_lazy): Remove reference to the old optimized_out
2366 boolean.
2367 (allocate_optimized_out_value): Use
2368 mark_value_bytes_optimized_out.
2369 (require_not_optimized_out): Adjust to check whether the
2370 optimized_out vec is empty.
2371 (ranges_copy_adjusted): New function, factored out from
2372 value_contents_copy_raw.
2373 (value_contents_copy_raw): Also copy the optimized out ranges.
2374 Assert the destination ranges aren't optimized out.
2375 (value_contents_copy): Update comment, remove call to
2376 require_not_optimized_out.
2377 (value_contents_equal): Adjust to check whether the optimized_out
2378 vec is empty.
2379 (set_value_optimized_out, value_optimized_out_const): Delete.
2380 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
2381 New functions.
2382 (value_entirely_optimized_out, value_bits_valid): Delete.
2383 (value_copy): Take a VEC copy of the 'optimized_out' field.
2384 (value_primitive_field): Remove special handling of optimized out.
2385 (value_fetch_lazy): Assert that lazy values have no unavailable
2386 regions. Use value_bits_any_optimized_out. Remove some special
2387 handling for optimized out values.
2388 * value.h: Add intro comment about <optimized out> and
2389 <unavailable>.
2390 (struct lval_funcs): Remove check_validity and check_any_valid
2391 fields.
2392 (set_value_optimized_out, value_optimized_out_const): Remove.
2393 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
2394 New declarations.
2395 (value_bits_any_optimized_out): New declaration.
2396 (value_bits_valid): Delete declaration.
2397 (value_available_contents_eq): Rename to ...
2398 (value_contents_eq): ... this, and extend comments.
2399
6694c411
JK
24002014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2401
2402 Fix -fsanitize=address on unreadable inferior strings.
2403 * valprint.c (val_print_string): Fix access before BUFFER.
2404
89a1c21a
SM
24052014-08-19 Simon Marchi <simon.marchi@ericsson.com>
2406
2407 * target.c (target_struct_size): Remove.
2408 (target_struct_allocsize): Remove.
2409 (DEFAULT_ALLOCSIZE): Remove.
2410 (target_ops_p): New typedef.
2411 (DEF_VEC_P (target_ops_p)): New vector type.
2412 (target_structs): Change type to VEC (target_ops_p).
2413 (add_target_with_completer): Replace "push" code by VEC_safe_push.
2414 (find_default_run_target): Rewrite for loop following changes to
2415 target_structs.
2416
cb417230
JB
24172014-08-19 Joel Brobecker <brobecker@adacore.com>
2418
2419 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
2420 Adjust code accordingly. Adjust function description comment.
2421
817e0957
YQ
24222014-08-19 Yao Qi <yao@codesourcery.com>
2423
2424 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
2425 types.
2426
2974be62
AM
24272014-08-19 Alan Modra <amodra@gmail.com>
2428
2429 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
2430 * config.in: Regenerate.
2431 * configure: Regenerate.
2432
34abf635
GB
24332014-08-19 Tom Tromey <tromey@redhat.com>
2434 Gary Benson <gbenson@redhat.com>
2435
2436 * common/common-debug.h: New file.
2437 * common/common-debug.c: Likewise.
2438 * debug.c: Likewise.
2439 * Makefile.in (SFILES): Add common/common-debug.c.
2440 (HFILES_NO_SRCDIR): Add common/common-debug.h.
2441 (COMMON_OBS): Add common-debug.o and debug.o.
2442 (common-debug.o): New rule.
2443 * common/common-defs.h: Include common-debug.h.
2444 * common/agent.c (debug_agent_printf): New function.
2445 (DEBUG_AGENT): Redefine.
2446 * nat/i386-dregs.c (debug_printf): Undefine.
2447
f6e94d78
GB
24482014-08-19 Gary Benson <gbenson@redhat.com>
2449
2450 * common/common-defs.h: Include print-utils.h.
2451 * utils.h: Do not include print-utils.h.
2452
9239eeab
GB
24532014-08-19 Tom Tromey <tromey@redhat.com>
2454 Gary Benson <gbenson@redhat.com>
2455
2456 * common/common-types.h: New file.
2457 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
2458 * common/common-defs.h: Include common-types.h.
2459 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
2460 (ULONGEST): Remove.
2461
ef87c8bb
GB
24622014-08-19 Tom Tromey <tromey@redhat.com>
2463 Gary Benson <gbenson@redhat.com>
2464
2465 * common/errors.h: New file.
2466 * common/errors.c: Likewise.
2467 * Makefile.in (SFILES): Add common/errors.c.
2468 (HFILES_NO_SRCDIR): Add common/errors.h.
2469 (COMMON_OBS): Add errors.o.
2470 (errors.o): New rule.
2471 * common/common-defs.h: Include errors.h.
2472 * utils.h (perror_with_name, error, verror, warning, vwarning):
2473 Don't declare.
2474 * common/common-utils.h: (malloc_failure, internal_error):
2475 Likewise.
2476
196a707b
GB
24772014-08-19 Gary Benson <gbenson@redhat.com>
2478
2479 * utils.c (internal_vproblem): Always print the message.
2480
ded4fc8f
DE
24812014-08-18 Doug Evans <dje@google.com>
2482
2483 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
2484
950c97d8
JB
24852014-08-18 Joel Brobecker <brobecker@adacore.com>
2486
2487 * ada-typeprint.c (type_is_full_subrange_of_target_type):
2488 Return 0 if TYPE is dynamic.
2489 (print_range): Add handling of dynamic ranges.
2490
3cdcd0ce
JB
24912014-08-18 Keven Boell <keven.boell@intel.com>
2492 Joel Brobecker <brobecker@adacore.com>
2493
2494 * gdbtypes.h (struct main_type): Add field "data_location".
2495 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
2496 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
2497 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
2498 a dynamic data location.
2499 (resolve_dynamic_type): Add DW_AT_data_location handling.
2500 (copy_recursive, copy_type): Copy the data_location information
2501 when present.
2502 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
2503 * value.c (value_from_contents_and_address): Add
2504 DW_AT_data_location handling.
2505
08412b07
JB
25062014-08-18 Keven Boell <keven.boell@intel.com>
2507 Joel Brobecker <brobecker@adacore.com>
2508
2509 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
2510 field "get_object_address".
2511 * dwarf2expr.c (execute_stack_op): Add handling for
2512 DW_OP_push_object_address.
2513 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
2514 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
2515 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
2516 (dwarf_expr_get_obj_addr): New function.
2517 (dwarf_expr_ctx_funcs): Add get_object_address field.
2518 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
2519 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
2520 (dwarf2_evaluate_property): Add parameter "address". Use it.
2521 (needs_get_obj_addr): New function.
2522 (needs_frame_ctx_funcs): Add get_object_address field.
2523 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
2524 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
2525 (resolve_dynamic_array): Likewise.
2526
84754697
JB
25272014-08-18 Joel Brobecker <brobecker@adacore.com>
2528
2529 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
2530 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
2531 fixed value for records and unions for which some GNAT encodings
2532 are present.
2533
da5c522f
JB
25342014-08-18 Joel Brobecker <brobecker@adacore.com>
2535
2536 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
2537 rewrite to avoid "else if" and "else" constructs. Should be
2538 a no-op in practice.
2539
0d72a7c3
JB
25402014-08-18 Joel Brobecker <brobecker@adacore.com>
2541
2542 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
2543 of lexical block.
2544
e66d4446
SC
25452014-08-15 Siva Chandra Reddy <sivachandra@google.com>
2546
2547 PR c++/17132
2548 * eval.c: Update all calls to find_overload_match.
2549 * valarith.c: Likewise.
2550 (value_user_defined_cpp_op, value_user_defined_op): New
2551 argument NOSIDE. Update all callers.
2552 * valops.c (find_overload_match): New argument NOSIDE.
2553 * value.h (find_overload_match): Update signature.
2554
940df408
SC
25552014-08-15 Siva Chandra Reddy <sivachandra@google.com>
2556
2557 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
2558 'items' methods instead of 'iteritems' method on dictionaries.
2559
699ca60a
DE
25602014-08-15 Doug Evans <dje@google.com>
2561
2562 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
2563 closer to use.
2564
37780ee5
DE
25652014-08-15 Doug Evans <dje@google.com>
2566
2567 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
2568
0ad93d4f
DE
25692014-08-15 Doug Evans <dje@google.com>
2570
2571 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
2572
20d8c372
DE
25732014-08-15 Doug Evans <dje@google.com>
2574
2575 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
2576 unused.
2577
cb039ba4
EZ
25782014-08-15 Eli Zaretskii <eliz@gnu.org>
2579
2580 * dcache.h: Include target.h, to avoid compile time warnings.
2581
eb7a547a
JB
25822014-08-15 Joel Brobecker <brobecker@adacore.com>
2583
2584 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
2585 frame_info" partial declaration.
2586 * gdbarch.h: Regenerate.
2587
783cecc8
YQ
25882014-08-15 Yao Qi <yao@codesourcery.com>
2589
2590 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
2591 Add parameter 'decode_for_pst_p'. Callers update.
2592
65c749e7
YQ
25932014-08-13 Yao Qi <yao@codesourcery.com>
2594
2595 PR build/17104
2596 * configure.ac: Use local variable 'pos'.
2597 * configure: Regenerated.
2598
d769e349
DE
25992014-08-11 Doug Evans <dje@google.com>
2600
2601 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
2602 message, it is redundant with "Reading symbols from ..." message.
2603
24f1235e
DE
26042014-08-10 Doug Evans <xdje42@gmail.com>
2605
2606 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
2607
dcd2e6ef
YQ
26082014-08-09 Yao Qi <yao@codesourcery.com>
2609
2610 PR remote/9053
2611 * remote.c (remote_xfer_partial): Remove dead code.
2612
070bdf0b
AA
26132014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2614
2615 * ia64-linux-tdep.c: Include "regset.h".
2616 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
2617 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
2618 (ia64_linux_supply_fpregset): New function.
2619 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
2620 (ia64_linux_regset_from_core_section): New function.
2621 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
2622 method.
2623
08f9f542
AA
26242014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2625
2626 * m68klinux-tdep.c: Include "regset.h".
2627 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
2628 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
2629 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
2630 (m68k_linux_regset_from_core_section): New function.
2631 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
2632 method.
2633
8f1cee41
AA
26342014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2635
2636 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
2637 function. Move logic to...
2638 (tilegx_linux_regmap): ... this new register map.
2639 (tilegx_linux_regset): Refer to register map, replace supply
2640 method by regcache_supply_regset, and add collect method.
2641 * tilegx-tdep.h (enum tilegx_regnum): New enum value
2642 TILEGX_FIRST_EASY_REGNUM.
2643
c5741217
AA
26442014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2645
2646 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
2647 that calls regcache_supply_regset and handles the EPC register
2648 separately. Move main logic to...
2649 (score7_linux_gregmap): ... this new register map.
2650 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
2651 (score7_linux_gregset): Refer to register map. Add collect method.
2652 (score7_linux_regset_from_core_section): Replace
2653 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
2654 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
2655 (struct regset): Delete unused forward declaraction.
2656 (struct pt_regs): Delete structure definition.
2657 (elf_gregset_t): Delete typedef.
2658
81580573
AA
26592014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2660
2661 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
2662 (nios2_core_regset): Add collect method.
2663
ba199d7d
AA
26642014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2665
2666 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
2667 platform-independent and don't write to read-only input buffer.
2668 (m32r_linux_collect_gregset): New function.
2669 (m32r_linux_gregset): Add collect method.
2670
0006a9da
AA
26712014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2672
2673 * hppa-linux-tdep.c (greg_map): Rename to...
2674 (hppa_linux_gregmap): ... this. Also convert to
2675 regcache_map_entry format.
2676 (hppa_linux_supply_regset): Delete function.
2677 (hppa_linux_supply_fpregset): Delete function. Move logic to...
2678 (hppa_linux_fpregmap): ... this new register map.
2679 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
2680 register map, replace supply method by regcache_supply_regset, and
2681 add collect method regcache_collect_regset.
2682
901e1b23
AA
26832014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2684
2685 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
2686 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
2687 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
2688 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
2689 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
2690 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
2691 (frv_linux_supply_gregset): Replace main logic by call to
2692 regcache_supply_regset, but keep clearing gr32-gr63.
2693 (frv_linux_supply_fpregset): Delete function.
2694 (frv_linux_gregset): Refer to appropriate register map and add
2695 regcache_collect_regset as the collect method.
2696 (frv_linux_fpregset): Likewise. Also exchange the supply method
2697 by regcache_supply_regset.
2698
1d6e7555
AA
26992014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2700
2701 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
2702 by call to alpha_supply_int_regs.
2703 (alpha_linux_collect_gregset): New function.
2704 (alpha_linux_supply_fpregset): Replace logic by call to
2705 alpha_supply_fp_regs.
2706 (alpha_linux_collect_fpregset): New function.
2707 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
2708
d4d793bf
AA
27092014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2710
2711 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
2712 by call to regcache_collect_regset.
2713 (supply_gregset, supply_fpregset): Call regcache_supply_regset
2714 instead of aarch64_linux_supply_gregset/_fpregset.
2715 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
2716 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
2717 header file instead.
2718 (aarch64_linux_supply_gregset, supply_gregset_from_core)
2719 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
2720 functions. Move logic to ...
2721 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
2722 register maps.
2723 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
2724 refer to new register maps, replace *_regset_from_core by
2725 regcache_supply_regset, and also use regcache_collect_regset.
2726 * aarch64-linux-tdep.h: Include "regset.h".
2727 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
2728 Delete prototypes.
2729 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
2730 macros, moved from C source file.
2731 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
2732 variable declarations.
2733
99b7da5d
AA
27342014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2735
2736 * s390-linux-nat.c: Include "regset.h".
2737 (regmap_gregset): Delete macro.
2738 (s390_64_regmap_gregset): New register map for
2739 regcache_supply/_collect_regset.
2740 (s390_64_gregset): New regset.
2741 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
2742 (regmap_fpregset): Delete macro.
2743 (s390_native_supply, s390_native_collect): Delete functions.
2744 (supply_gregset, fill_gregset): Replace s390-specific regmap
2745 handling by a call to regcache_supply/_collect_regset.
2746 (supply_fpregset, fill_fpregset): Call regcache_supply/
2747 _collect_regset instead of s390_native_supply/_collect.
2748 (fetch_regset, store_regset): Likewise. Also change the last
2749 parameter to a regset instead of a regmap.
2750 (s390_linux_fetch_inferior_registers)
2751 (390_linux_store_inferior_registers): Adjust last parameter in
2752 calls to fetch_regset and store_regset.
2753 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
2754 (s390_gregmap): ... this. Also make static const and convert to
2755 regcache_map_entry format.
2756 (s390x_regmap_gregset): Delete.
2757 (s390_regmap_fpregset): Rename to...
2758 (s390_fpregmap): ... this. Make static const and convert to
2759 regcache_map_entry format.
2760 (s390_regmap_upper, s390_regmap_last_break)
2761 (s390x_regmap_last_break, s390_regmap_system_call)
2762 (s390_regmap_tdb): Likewise.
2763 (s390_supply_regset, s390_collect_regset): Remove functions.
2764 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
2765 s390_supply_regset.
2766 (s390_gregset, s390_fpregset, s390_upper_regset)
2767 (s390_last_break_regset, s390x_last_break_regset)
2768 (s390_system_call_regset, s390_tdb_regset): Make global and
2769 replace s390_supply/_collect_regset by regcache_supply/
2770 _collect_regset.
2771 (s390x_gregset): Delete.
2772 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
2773 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
2774 (s390_regmap_fpregset, s390_regmap_last_break)
2775 (s390x_regmap_last_break, s390_regmap_system_call)
2776 (s390_regmap_tdb): Delete global variable declarations.
2777 (s390_gregset, s390_fpregset, s390_last_break_regset)
2778 (s390x_last_break_regset, s390_system_call_regset)
2779 (s390_tdb_regset): New global variable declarations.
2780
0b309272
AA
27812014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2782
2783 * regcache.c: Include "regset.h".
2784 (regcache_transfer_regset): New local function.
2785 (regcache_supply_regset, regcache_collect_regset): New functions.
2786 * regcache.h (struct regcache_map_entry): New structure.
2787 (REGCACHE_MAP_SKIP): New enum value.
2788 (regcache_supply_regset, regcache_collect_regset): New prototypes.
2789
7fefa8d7
AA
27902014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2791
2792 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
2793 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
2794 (ppc_linux_collect_gregset ): Likewise.
2795 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
2796 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
2797 (ppc_collect_vrregset): Likewise.
2798 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
2799 Likewise.
2800
96c4f946
YQ
28012014-08-07 Yao Qi <yao@codesourcery.com>
2802
2803 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
2804 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
2805 * remote.c (remote_read_bytes): Likewise.
2806
fffbe6a8
YQ
28072014-08-07 Yao Qi <yao@codesourcery.com>
2808
2809 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
2810
5ee8a82c
YQ
28112014-08-07 Yao Qi <yao@codesourcery.com>
2812
2813 PR remote/17230
2814 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
2815 TARGET_XFER_OK instead of 0.
2816
bb974a24
GB
28172014-08-07 Gary Benson <gbenson@redhat.com>
2818
2819 * common/common-defs.h: Include errno.h.
2820 * defs.h: Do not include errno.h.
2821 * ada-typeprint.c: Likewise.
2822 * c-typeprint.c: Likewise.
2823 * core-regset.c: Likewise.
2824 * corefile.c: Likewise.
2825 * corelow.c: Likewise.
2826 * event-loop.c: Likewise.
2827 * f-typeprint.c: Likewise.
2828 * gnu-nat.c: Likewise.
2829 * go32-nat.c: Likewise.
2830 * i386gnu-nat.c: Likewise.
2831 * m2-typeprint.c: Likewise.
2832 * nat/linux-btrace.c: Likewise.
2833 * p-typeprint.c: Likewise.
2834 * procfs.c: Likewise.
2835 * remote-sim.c: Likewise.
2836 * rs6000-nat.c: Likewise.
2837 * target.c: Likewise.
2838 * typeprint.c: Likewise.
2839 * ui-file.c: Likewise.
2840 * valops.c: Likewise.
2841 * valprint.c: Likewise.
2842
6d3d12eb
GB
28432014-08-07 Gary Benson <gbenson@redhat.com>
2844
2845 * common/common-defs.h: Include string.h.
2846 * aarch64-tdep.c: Do not include string.h.
2847 * ada-exp.y: Likewise.
2848 * ada-lang.c: Likewise.
2849 * ada-lex.l: Likewise.
2850 * ada-typeprint.c: Likewise.
2851 * ada-valprint.c: Likewise.
2852 * aix-thread.c: Likewise.
2853 * alpha-linux-tdep.c: Likewise.
2854 * alpha-mdebug-tdep.c: Likewise.
2855 * alpha-nat.c: Likewise.
2856 * alpha-osf1-tdep.c: Likewise.
2857 * alpha-tdep.c: Likewise.
2858 * alphanbsd-tdep.c: Likewise.
2859 * amd64-dicos-tdep.c: Likewise.
2860 * amd64-linux-tdep.c: Likewise.
2861 * amd64-nat.c: Likewise.
2862 * amd64-sol2-tdep.c: Likewise.
2863 * amd64fbsd-tdep.c: Likewise.
2864 * amd64obsd-tdep.c: Likewise.
2865 * arch-utils.c: Likewise.
2866 * arm-linux-nat.c: Likewise.
2867 * arm-linux-tdep.c: Likewise.
2868 * arm-tdep.c: Likewise.
2869 * arm-wince-tdep.c: Likewise.
2870 * armbsd-tdep.c: Likewise.
2871 * armnbsd-nat.c: Likewise.
2872 * armnbsd-tdep.c: Likewise.
2873 * armobsd-tdep.c: Likewise.
2874 * avr-tdep.c: Likewise.
2875 * ax-gdb.c: Likewise.
2876 * ax-general.c: Likewise.
2877 * bcache.c: Likewise.
2878 * bfin-tdep.c: Likewise.
2879 * breakpoint.c: Likewise.
2880 * build-id.c: Likewise.
2881 * buildsym.c: Likewise.
2882 * c-exp.y: Likewise.
2883 * c-lang.c: Likewise.
2884 * c-typeprint.c: Likewise.
2885 * c-valprint.c: Likewise.
2886 * charset.c: Likewise.
2887 * cli-out.c: Likewise.
2888 * cli/cli-cmds.c: Likewise.
2889 * cli/cli-decode.c: Likewise.
2890 * cli/cli-dump.c: Likewise.
2891 * cli/cli-interp.c: Likewise.
2892 * cli/cli-logging.c: Likewise.
2893 * cli/cli-script.c: Likewise.
2894 * cli/cli-setshow.c: Likewise.
2895 * cli/cli-utils.c: Likewise.
2896 * coffread.c: Likewise.
2897 * common/agent.c: Likewise.
2898 * common/buffer.c: Likewise.
2899 * common/buffer.h: Likewise.
2900 * common/common-utils.c: Likewise.
2901 * common/filestuff.c: Likewise.
2902 * common/filestuff.c: Likewise.
2903 * common/format.c: Likewise.
2904 * common/print-utils.c: Likewise.
2905 * common/rsp-low.c: Likewise.
2906 * common/signals.c: Likewise.
2907 * common/vec.h: Likewise.
2908 * common/xml-utils.c: Likewise.
2909 * core-regset.c: Likewise.
2910 * corefile.c: Likewise.
2911 * corelow.c: Likewise.
2912 * cp-abi.c: Likewise.
2913 * cp-name-parser.y: Likewise.
2914 * cp-support.c: Likewise.
2915 * cp-valprint.c: Likewise.
2916 * cris-tdep.c: Likewise.
2917 * d-exp.y: Likewise.
2918 * darwin-nat.c: Likewise.
2919 * dbxread.c: Likewise.
2920 * dcache.c: Likewise.
2921 * demangle.c: Likewise.
2922 * dicos-tdep.c: Likewise.
2923 * disasm.c: Likewise.
2924 * doublest.c: Likewise.
2925 * dsrec.c: Likewise.
2926 * dummy-frame.c: Likewise.
2927 * dwarf2-frame.c: Likewise.
2928 * dwarf2loc.c: Likewise.
2929 * dwarf2read.c: Likewise.
2930 * elfread.c: Likewise.
2931 * environ.c: Likewise.
2932 * eval.c: Likewise.
2933 * event-loop.c: Likewise.
2934 * exceptions.c: Likewise.
2935 * exec.c: Likewise.
2936 * expprint.c: Likewise.
2937 * f-exp.y: Likewise.
2938 * f-lang.c: Likewise.
2939 * f-typeprint.c: Likewise.
2940 * f-valprint.c: Likewise.
2941 * fbsd-nat.c: Likewise.
2942 * findcmd.c: Likewise.
2943 * findvar.c: Likewise.
2944 * fork-child.c: Likewise.
2945 * frame.c: Likewise.
2946 * frv-linux-tdep.c: Likewise.
2947 * frv-tdep.c: Likewise.
2948 * gdb.c: Likewise.
2949 * gdb_bfd.c: Likewise.
2950 * gdbarch.c: Likewise.
2951 * gdbarch.sh: Likewise.
2952 * gdbtypes.c: Likewise.
2953 * gnu-nat.c: Likewise.
2954 * gnu-v2-abi.c: Likewise.
2955 * gnu-v3-abi.c: Likewise.
2956 * go-exp.y: Likewise.
2957 * go-lang.c: Likewise.
2958 * go32-nat.c: Likewise.
2959 * guile/guile.c: Likewise.
2960 * guile/scm-auto-load.c: Likewise.
2961 * hppa-hpux-tdep.c: Likewise.
2962 * hppa-linux-nat.c: Likewise.
2963 * hppanbsd-tdep.c: Likewise.
2964 * hppaobsd-tdep.c: Likewise.
2965 * i386-cygwin-tdep.c: Likewise.
2966 * i386-dicos-tdep.c: Likewise.
2967 * i386-linux-tdep.c: Likewise.
2968 * i386-nto-tdep.c: Likewise.
2969 * i386-sol2-tdep.c: Likewise.
2970 * i386-tdep.c: Likewise.
2971 * i386bsd-tdep.c: Likewise.
2972 * i386gnu-nat.c: Likewise.
2973 * i386nbsd-tdep.c: Likewise.
2974 * i386obsd-tdep.c: Likewise.
2975 * i387-tdep.c: Likewise.
2976 * ia64-libunwind-tdep.c: Likewise.
2977 * ia64-linux-nat.c: Likewise.
2978 * inf-child.c: Likewise.
2979 * inf-ptrace.c: Likewise.
2980 * inf-ttrace.c: Likewise.
2981 * infcall.c: Likewise.
2982 * infcmd.c: Likewise.
2983 * inflow.c: Likewise.
2984 * infrun.c: Likewise.
2985 * interps.c: Likewise.
2986 * iq2000-tdep.c: Likewise.
2987 * irix5-nat.c: Likewise.
2988 * jv-exp.y: Likewise.
2989 * jv-lang.c: Likewise.
2990 * jv-typeprint.c: Likewise.
2991 * jv-valprint.c: Likewise.
2992 * language.c: Likewise.
2993 * linux-fork.c: Likewise.
2994 * linux-nat.c: Likewise.
2995 * lm32-tdep.c: Likewise.
2996 * m2-exp.y: Likewise.
2997 * m2-typeprint.c: Likewise.
2998 * m32c-tdep.c: Likewise.
2999 * m32r-linux-nat.c: Likewise.
3000 * m32r-linux-tdep.c: Likewise.
3001 * m32r-rom.c: Likewise.
3002 * m32r-tdep.c: Likewise.
3003 * m68hc11-tdep.c: Likewise.
3004 * m68k-tdep.c: Likewise.
3005 * m68kbsd-tdep.c: Likewise.
3006 * m68klinux-nat.c: Likewise.
3007 * m68klinux-tdep.c: Likewise.
3008 * m88k-tdep.c: Likewise.
3009 * machoread.c: Likewise.
3010 * macrocmd.c: Likewise.
3011 * main.c: Likewise.
3012 * mdebugread.c: Likewise.
3013 * mem-break.c: Likewise.
3014 * memattr.c: Likewise.
3015 * memory-map.c: Likewise.
3016 * mep-tdep.c: Likewise.
3017 * mi/mi-cmd-break.c: Likewise.
3018 * mi/mi-cmd-disas.c: Likewise.
3019 * mi/mi-cmd-env.c: Likewise.
3020 * mi/mi-cmd-stack.c: Likewise.
3021 * mi/mi-cmd-var.c: Likewise.
3022 * mi/mi-cmds.c: Likewise.
3023 * mi/mi-console.c: Likewise.
3024 * mi/mi-getopt.c: Likewise.
3025 * mi/mi-interp.c: Likewise.
3026 * mi/mi-main.c: Likewise.
3027 * mi/mi-parse.c: Likewise.
3028 * microblaze-rom.c: Likewise.
3029 * microblaze-tdep.c: Likewise.
3030 * mingw-hdep.c: Likewise.
3031 * minidebug.c: Likewise.
3032 * minsyms.c: Likewise.
3033 * mips-irix-tdep.c: Likewise.
3034 * mips-linux-tdep.c: Likewise.
3035 * mips-tdep.c: Likewise.
3036 * mips64obsd-tdep.c: Likewise.
3037 * mipsnbsd-tdep.c: Likewise.
3038 * mipsread.c: Likewise.
3039 * mn10300-linux-tdep.c: Likewise.
3040 * mn10300-tdep.c: Likewise.
3041 * monitor.c: Likewise.
3042 * moxie-tdep.c: Likewise.
3043 * mt-tdep.c: Likewise.
3044 * nat/linux-btrace.c: Likewise.
3045 * nat/linux-osdata.c: Likewise.
3046 * nat/linux-procfs.c: Likewise.
3047 * nat/linux-ptrace.c: Likewise.
3048 * nat/linux-waitpid.c: Likewise.
3049 * nbsd-tdep.c: Likewise.
3050 * nios2-linux-tdep.c: Likewise.
3051 * nto-procfs.c: Likewise.
3052 * nto-tdep.c: Likewise.
3053 * objc-lang.c: Likewise.
3054 * objfiles.c: Likewise.
3055 * opencl-lang.c: Likewise.
3056 * osabi.c: Likewise.
3057 * osdata.c: Likewise.
3058 * p-exp.y: Likewise.
3059 * p-lang.c: Likewise.
3060 * p-typeprint.c: Likewise.
3061 * parse.c: Likewise.
3062 * posix-hdep.c: Likewise.
3063 * ppc-linux-nat.c: Likewise.
3064 * ppc-sysv-tdep.c: Likewise.
3065 * ppcfbsd-tdep.c: Likewise.
3066 * ppcnbsd-tdep.c: Likewise.
3067 * ppcobsd-tdep.c: Likewise.
3068 * printcmd.c: Likewise.
3069 * procfs.c: Likewise.
3070 * prologue-value.c: Likewise.
3071 * python/py-auto-load.c: Likewise.
3072 * python/py-gdb-readline.c: Likewise.
3073 * ravenscar-thread.c: Likewise.
3074 * regcache.c: Likewise.
3075 * registry.c: Likewise.
3076 * remote-fileio.c: Likewise.
3077 * remote-m32r-sdi.c: Likewise.
3078 * remote-mips.c: Likewise.
3079 * remote-notif.c: Likewise.
3080 * remote-sim.c: Likewise.
3081 * remote.c: Likewise.
3082 * reverse.c: Likewise.
3083 * rs6000-aix-tdep.c: Likewise.
3084 * ser-base.c: Likewise.
3085 * ser-go32.c: Likewise.
3086 * ser-mingw.c: Likewise.
3087 * ser-pipe.c: Likewise.
3088 * ser-tcp.c: Likewise.
3089 * ser-unix.c: Likewise.
3090 * serial.c: Likewise.
3091 * sh-tdep.c: Likewise.
3092 * sh64-tdep.c: Likewise.
3093 * shnbsd-tdep.c: Likewise.
3094 * skip.c: Likewise.
3095 * sol-thread.c: Likewise.
3096 * solib-dsbt.c: Likewise.
3097 * solib-frv.c: Likewise.
3098 * solib-osf.c: Likewise.
3099 * solib-som.c: Likewise.
3100 * solib-spu.c: Likewise.
3101 * solib-target.c: Likewise.
3102 * solib.c: Likewise.
3103 * somread.c: Likewise.
3104 * source.c: Likewise.
3105 * sparc-nat.c: Likewise.
3106 * sparc-sol2-tdep.c: Likewise.
3107 * sparc-tdep.c: Likewise.
3108 * sparc64-tdep.c: Likewise.
3109 * sparc64fbsd-tdep.c: Likewise.
3110 * sparc64nbsd-tdep.c: Likewise.
3111 * sparcnbsd-tdep.c: Likewise.
3112 * spu-linux-nat.c: Likewise.
3113 * spu-multiarch.c: Likewise.
3114 * spu-tdep.c: Likewise.
3115 * stabsread.c: Likewise.
3116 * stack.c: Likewise.
3117 * std-regs.c: Likewise.
3118 * symfile.c: Likewise.
3119 * symmisc.c: Likewise.
3120 * symtab.c: Likewise.
3121 * target.c: Likewise.
3122 * thread.c: Likewise.
3123 * tilegx-linux-nat.c: Likewise.
3124 * tilegx-tdep.c: Likewise.
3125 * top.c: Likewise.
3126 * tracepoint.c: Likewise.
3127 * tui/tui-command.c: Likewise.
3128 * tui/tui-data.c: Likewise.
3129 * tui/tui-disasm.c: Likewise.
3130 * tui/tui-file.c: Likewise.
3131 * tui/tui-layout.c: Likewise.
3132 * tui/tui-out.c: Likewise.
3133 * tui/tui-regs.c: Likewise.
3134 * tui/tui-source.c: Likewise.
3135 * tui/tui-stack.c: Likewise.
3136 * tui/tui-win.c: Likewise.
3137 * tui/tui-windata.c: Likewise.
3138 * tui/tui-winsource.c: Likewise.
3139 * typeprint.c: Likewise.
3140 * ui-file.c: Likewise.
3141 * ui-out.c: Likewise.
3142 * user-regs.c: Likewise.
3143 * utils.c: Likewise.
3144 * v850-tdep.c: Likewise.
3145 * valarith.c: Likewise.
3146 * valops.c: Likewise.
3147 * valprint.c: Likewise.
3148 * value.c: Likewise.
3149 * varobj.c: Likewise.
3150 * vax-tdep.c: Likewise.
3151 * vaxnbsd-tdep.c: Likewise.
3152 * vaxobsd-tdep.c: Likewise.
3153 * windows-nat.c: Likewise.
3154 * xcoffread.c: Likewise.
3155 * xml-support.c: Likewise.
3156 * xstormy16-tdep.c: Likewise.
3157 * xtensa-linux-nat.c: Likewise.
3158
dccbb609
GB
31592014-08-07 Gary Benson <gbenson@redhat.com>
3160
3161 * common/common-defs.h: Include gdb_assert.h.
3162 * aarch64-tdep.c: Do not include gdb_assert.h.
3163 * addrmap.c: Likewise.
3164 * aix-thread.c: Likewise.
3165 * alpha-linux-tdep.c: Likewise.
3166 * alpha-mdebug-tdep.c: Likewise.
3167 * alphanbsd-tdep.c: Likewise.
3168 * amd64-nat.c: Likewise.
3169 * amd64-tdep.c: Likewise.
3170 * amd64bsd-nat.c: Likewise.
3171 * amd64fbsd-nat.c: Likewise.
3172 * amd64fbsd-tdep.c: Likewise.
3173 * amd64nbsd-nat.c: Likewise.
3174 * amd64nbsd-tdep.c: Likewise.
3175 * amd64obsd-nat.c: Likewise.
3176 * amd64obsd-tdep.c: Likewise.
3177 * arch-utils.c: Likewise.
3178 * arm-tdep.c: Likewise.
3179 * armbsd-tdep.c: Likewise.
3180 * auxv.c: Likewise.
3181 * bcache.c: Likewise.
3182 * bfin-tdep.c: Likewise.
3183 * blockframe.c: Likewise.
3184 * breakpoint.c: Likewise.
3185 * bsd-kvm.c: Likewise.
3186 * bsd-uthread.c: Likewise.
3187 * buildsym.c: Likewise.
3188 * c-exp.y: Likewise.
3189 * c-lang.c: Likewise.
3190 * charset.c: Likewise.
3191 * cleanups.c: Likewise.
3192 * cli-out.c: Likewise.
3193 * cli/cli-decode.c: Likewise.
3194 * cli/cli-dump.c: Likewise.
3195 * cli/cli-logging.c: Likewise.
3196 * cli/cli-script.c: Likewise.
3197 * cli/cli-utils.c: Likewise.
3198 * coffread.c: Likewise.
3199 * common/common-utils.c: Likewise.
3200 * common/queue.h: Likewise.
3201 * common/signals.c: Likewise.
3202 * common/vec.h: Likewise.
3203 * complaints.c: Likewise.
3204 * completer.c: Likewise.
3205 * corelow.c: Likewise.
3206 * cp-abi.c: Likewise.
3207 * cp-name-parser.y: Likewise.
3208 * cp-namespace.c: Likewise.
3209 * cp-support.c: Likewise.
3210 * cris-tdep.c: Likewise.
3211 * dbxread.c: Likewise.
3212 * dictionary.c: Likewise.
3213 * doublest.c: Likewise.
3214 * dsrec.c: Likewise.
3215 * dummy-frame.c: Likewise.
3216 * dwarf2-frame-tailcall.c: Likewise.
3217 * dwarf2-frame.c: Likewise.
3218 * dwarf2expr.c: Likewise.
3219 * dwarf2loc.c: Likewise.
3220 * dwarf2read.c: Likewise.
3221 * eval.c: Likewise.
3222 * event-loop.c: Likewise.
3223 * exceptions.c: Likewise.
3224 * expprint.c: Likewise.
3225 * f-valprint.c: Likewise.
3226 * fbsd-nat.c: Likewise.
3227 * findvar.c: Likewise.
3228 * frame-unwind.c: Likewise.
3229 * frame.c: Likewise.
3230 * frv-tdep.c: Likewise.
3231 * gcore.c: Likewise.
3232 * gdb-dlfcn.c: Likewise.
3233 * gdb_bfd.c: Likewise.
3234 * gdbarch.c: Likewise.
3235 * gdbarch.sh: Likewise.
3236 * gdbtypes.c: Likewise.
3237 * gnu-nat.c: Likewise.
3238 * gnu-v3-abi.c: Likewise.
3239 * go-lang.c: Likewise.
3240 * guile/scm-exception.c: Likewise.
3241 * guile/scm-gsmob.c: Likewise.
3242 * guile/scm-lazy-string.c: Likewise.
3243 * guile/scm-math.c: Likewise.
3244 * guile/scm-pretty-print.c: Likewise.
3245 * guile/scm-safe-call.c: Likewise.
3246 * guile/scm-utils.c: Likewise.
3247 * guile/scm-value.c: Likewise.
3248 * h8300-tdep.c: Likewise.
3249 * hppa-hpux-nat.c: Likewise.
3250 * hppa-tdep.c: Likewise.
3251 * hppanbsd-tdep.c: Likewise.
3252 * hppaobsd-tdep.c: Likewise.
3253 * i386-darwin-nat.c: Likewise.
3254 * i386-darwin-tdep.c: Likewise.
3255 * i386-nto-tdep.c: Likewise.
3256 * i386-tdep.c: Likewise.
3257 * i386bsd-nat.c: Likewise.
3258 * i386fbsd-tdep.c: Likewise.
3259 * i386gnu-nat.c: Likewise.
3260 * i386nbsd-tdep.c: Likewise.
3261 * i386obsd-tdep.c: Likewise.
3262 * i387-tdep.c: Likewise.
3263 * ia64-libunwind-tdep.c: Likewise.
3264 * ia64-tdep.c: Likewise.
3265 * inf-ptrace.c: Likewise.
3266 * inf-ttrace.c: Likewise.
3267 * infcall.c: Likewise.
3268 * infcmd.c: Likewise.
3269 * infrun.c: Likewise.
3270 * inline-frame.c: Likewise.
3271 * interps.c: Likewise.
3272 * jv-lang.c: Likewise.
3273 * jv-typeprint.c: Likewise.
3274 * linux-fork.c: Likewise.
3275 * linux-nat.c: Likewise.
3276 * linux-thread-db.c: Likewise.
3277 * m32c-tdep.c: Likewise.
3278 * m32r-linux-nat.c: Likewise.
3279 * m32r-tdep.c: Likewise.
3280 * m68k-tdep.c: Likewise.
3281 * m68kbsd-nat.c: Likewise.
3282 * m68kbsd-tdep.c: Likewise.
3283 * m88k-tdep.c: Likewise.
3284 * machoread.c: Likewise.
3285 * macroexp.c: Likewise.
3286 * macrotab.c: Likewise.
3287 * maint.c: Likewise.
3288 * mdebugread.c: Likewise.
3289 * memory-map.c: Likewise.
3290 * mep-tdep.c: Likewise.
3291 * mi/mi-common.c: Likewise.
3292 * microblaze-tdep.c: Likewise.
3293 * mingw-hdep.c: Likewise.
3294 * mips-linux-nat.c: Likewise.
3295 * mips-linux-tdep.c: Likewise.
3296 * mips-tdep.c: Likewise.
3297 * mips64obsd-tdep.c: Likewise.
3298 * mipsnbsd-tdep.c: Likewise.
3299 * mn10300-linux-tdep.c: Likewise.
3300 * mn10300-tdep.c: Likewise.
3301 * moxie-tdep.c: Likewise.
3302 * mt-tdep.c: Likewise.
3303 * nat/linux-btrace.c: Likewise.
3304 * nat/linux-osdata.c: Likewise.
3305 * nat/linux-ptrace.c: Likewise.
3306 * nat/mips-linux-watch.c: Likewise.
3307 * nios2-linux-tdep.c: Likewise.
3308 * nios2-tdep.c: Likewise.
3309 * objc-lang.c: Likewise.
3310 * objfiles.c: Likewise.
3311 * obsd-nat.c: Likewise.
3312 * opencl-lang.c: Likewise.
3313 * osabi.c: Likewise.
3314 * parse.c: Likewise.
3315 * ppc-linux-nat.c: Likewise.
3316 * ppc-sysv-tdep.c: Likewise.
3317 * ppcfbsd-nat.c: Likewise.
3318 * ppcfbsd-tdep.c: Likewise.
3319 * ppcnbsd-nat.c: Likewise.
3320 * ppcnbsd-tdep.c: Likewise.
3321 * ppcobsd-nat.c: Likewise.
3322 * ppcobsd-tdep.c: Likewise.
3323 * printcmd.c: Likewise.
3324 * procfs.c: Likewise.
3325 * prologue-value.c: Likewise.
3326 * psymtab.c: Likewise.
3327 * python/py-lazy-string.c: Likewise.
3328 * python/py-value.c: Likewise.
3329 * regcache.c: Likewise.
3330 * reggroups.c: Likewise.
3331 * registry.c: Likewise.
3332 * remote-sim.c: Likewise.
3333 * remote.c: Likewise.
3334 * rs6000-aix-tdep.c: Likewise.
3335 * rs6000-tdep.c: Likewise.
3336 * s390-linux-tdep.c: Likewise.
3337 * score-tdep.c: Likewise.
3338 * ser-base.c: Likewise.
3339 * ser-mingw.c: Likewise.
3340 * sh-tdep.c: Likewise.
3341 * sh64-tdep.c: Likewise.
3342 * solib-darwin.c: Likewise.
3343 * solib-spu.c: Likewise.
3344 * solib-svr4.c: Likewise.
3345 * source.c: Likewise.
3346 * sparc-nat.c: Likewise.
3347 * sparc-sol2-tdep.c: Likewise.
3348 * sparc-tdep.c: Likewise.
3349 * sparc64-sol2-tdep.c: Likewise.
3350 * sparc64-tdep.c: Likewise.
3351 * sparc64fbsd-tdep.c: Likewise.
3352 * sparc64nbsd-tdep.c: Likewise.
3353 * sparc64obsd-tdep.c: Likewise.
3354 * sparcnbsd-tdep.c: Likewise.
3355 * sparcobsd-tdep.c: Likewise.
3356 * spu-multiarch.c: Likewise.
3357 * spu-tdep.c: Likewise.
3358 * stabsread.c: Likewise.
3359 * stack.c: Likewise.
3360 * symfile.c: Likewise.
3361 * symtab.c: Likewise.
3362 * target-descriptions.c: Likewise.
3363 * target-memory.c: Likewise.
3364 * target.c: Likewise.
3365 * tic6x-linux-tdep.c: Likewise.
3366 * tic6x-tdep.c: Likewise.
3367 * tilegx-linux-nat.c: Likewise.
3368 * tilegx-tdep.c: Likewise.
3369 * top.c: Likewise.
3370 * tramp-frame.c: Likewise.
3371 * tui/tui-out.c: Likewise.
3372 * tui/tui-winsource.c: Likewise.
3373 * ui-out.c: Likewise.
3374 * user-regs.c: Likewise.
3375 * utils.c: Likewise.
3376 * v850-tdep.c: Likewise.
3377 * valops.c: Likewise.
3378 * value.c: Likewise.
3379 * varobj.c: Likewise.
3380 * vax-nat.c: Likewise.
3381 * xml-syscall.c: Likewise.
3382 * xml-tdesc.c: Likewise.
3383 * xstormy16-tdep.c: Likewise.
3384 * xtensa-linux-nat.c: Likewise.
3385 * xtensa-tdep.c: Likewise.
3386
e76df0d0
GB
33872014-08-07 Gary Benson <gbenson@redhat.com>
3388
3389 * common/common-defs.h: Include common-utils.h.
3390 * defs.h: Do not include common-utils.h.
3391 * common/gdb_assert.h: Likewise.
3392 * darwin-nat.h: Likewise.
3393 * nat/linux-btrace.c: Likewise.
3394 * target/waitstatus.h: Likewise.
3395
4cb9c816
GB
33962014-08-07 Gary Benson <gbenson@redhat.com>
3397
3398 * common/common-defs.h: Include ptid.h.
3399 * defs.h: Do not include ptid.h.
3400 * inferior.h: Likewise.
3401 * infrun.h: Likewise.
3402 * nat/linux-btrace.h: Likewise.
3403 * nat/linux-osdata.h: Likewise.
3404 * target/waitstatus.h: Likewise.
3405
3995eeee
GB
34062014-08-07 Gary Benson <gbenson@redhat.com>
3407
3408 * common/common-defs.h: Include gdb_locale.h.
3409 * defs.h: Do not include gdb_locale.h.
3410
cb9f1a9b
GB
34112014-08-07 Gary Benson <gbenson@redhat.com>
3412
3413 * common/common-defs.h: Include gdb/signals.h.
3414 * defs.h: Do not include gdb/signals.h.
3415
a5fceff8
GB
34162014-08-07 Gary Benson <gbenson@redhat.com>
3417
3418 * common/common-defs.h: Include pathmax.h.
3419 * defs.h: Do not include pathmax.h.
3420
b9391142
GB
34212014-08-07 Gary Benson <gbenson@redhat.com>
3422
3423 * common/common-defs.h: Include libiberty.h.
3424 * defs.h: Do not include libiberty.h.
3425 * common/queue.h: Likewise.
3426 * cp-name-parser.y: Likewise.
3427 * mi/mi-cmd-catch.c: Likewise.
3428 * python/python.c: Likewise.
3429
0e443c87
GB
34302014-08-07 Gary Benson <gbenson@redhat.com>
3431
3432 * common/common-defs.h: Include ansidecl.h.
3433 * defs.h: Do not include ansidecl.h.
3434 * common/buffer.h: Likewise.
3435 * common/common-utils.h: Likewise.
3436
8ebb3f56
GB
34372014-08-07 Gary Benson <gbenson@redhat.com>
3438
3439 * common/common-defs.h: Include stddef.h.
3440 * defs.h: Do not include stddef.h.
3441 * common/common-utils.h: Likewise.
3442 * amd64fbsd-nat.c: Likewise.
3443 * bcache.c: Likewise.
3444 * charset.c: Likewise.
3445 * common/buffer.h: Likewise.
3446 * common/vec.h: Likewise.
3447 * i386bsd-nat.c: Likewise.
3448 * nat/linux-btrace.h: Likewise.
3449 * ppcfbsd-nat.c: Likewise.
3450 * ppcnbsd-tdep.h: Likewise.
3451 * ppcobsd-nat.c: Likewise.
3452 * ppcobsd-tdep.h: Likewise.
3453 * python/py-gdb-readline.c: Likewise.
3454
8980bdf6
GB
34552014-08-07 Gary Benson <gbenson@redhat.com>
3456
3457 * common/common-defs.h: Include stdarg.h.
3458 * defs.h: Do not include stdarg.h.
3459 * ada-lang.c: Likewise.
3460 * common/common-utils.h: Likewise.
3461 * guile/scm-string.c: Likewise.
3462 * guile/scm-utils.c: Likewise.
3463 * m32c-tdep.c: Likewise.
3464
d7096f71
GB
34652014-08-07 Gary Benson <gbenson@redhat.com>
3466
3467 * common/common-defs.h: Include stdlib.h.
3468 * defs.h: Do not include stdlib.h.
3469 * addrmap.c: Likewise.
3470 * bcache.c: Likewise.
3471 * common/buffer.c: Likewise.
3472 * common/common-utils.c: Likewise.
3473 * cp-name-parser.y: Likewise.
3474 * go32-nat.c: Likewise.
3475 * mn10300-linux-tdep.c: Likewise.
3476 * nat/linux-osdata.c: Likewise.
3477 * tui/tui.c: Likewise.
3478 * windows-nat.c: Likewise.
3479
d02f550d
GB
34802014-08-07 Gary Benson <gbenson@redhat.com>
3481
3482 * common/common-defs.h: Include stdio.h.
3483 * defs.h: Do not include stdio.h.
3484 * ada-lang.c: Likewise.
3485 * common/buffer.c: Likewise.
3486 * common/common-utils.c: Likewise.
3487 * cp-name-parser.y: Likewise.
3488 * gnu-nat.c: Likewise.
3489 * go32-nat.c: Likewise.
3490 * i386gnu-nat.c: Likewise.
3491 * proc-api.c: Likewise.
3492 * proc-events.c: Likewise.
3493 * proc-flags.c: Likewise.
3494 * proc-why.c: Likewise.
3495 * python/python-internal.h: Likewise.
3496 * target-memory.c: Likewise.
3497 * tui/tui-io.c: Likewise.
3498 * tui/tui.c: Likewise.
3499
b6d7a4bf
SM
35002014-08-06 Simon Marchi <simon.marchi@ericsson.com>
3501
3502 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
3503 (scan_dyntag_auxv): Same.
3504
af19829b
YQ
35052014-08-06 Yao Qi <yao@codesourcery.com>
3506
3507 * amd64-linux-nat.c: Remove duplicated include
3508 "x86-linux-nat.h".
3509 * i386-linux-nat.c: Likewise.
3510
8e07a239
YQ
35112014-08-06 Yao Qi <yao@codesourcery.com>
3512
3513 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
3514 operand" with "Special opcode" in comments.
3515
7bfe8241
GB
35162014-08-05 Gary Benson <gbenson@redhat.com>
3517
3518 * interps.c (initialize_interps): Remove prototype.
3519 (interpreter_initialized): Remove static global.
3520 (interp_add): Do not call initialize_interps.
3521 (initialize_interps): Remove function.
3522
d6c95504
GB
35232014-08-05 Gary Benson <gbenson@redhat.com>
3524
3525 * utils.c (vwarning): Remove spurious va_end.
3526
241fd515
AM
35272014-08-05 Alan Modra <amodra@gmail.com>
3528
3529 * charset.c (convert_between_encodings): Cast result of obstack_base.
3530 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
3531 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
3532 (read_unwind_info): Use size_t for some locals.
3533 * jit.c (finalize_symtab): Likewise.
3534 * utils.c (hashtab_obstack_allocate): Likewise.
3535 * symmisc.c (print_objfile_statistics): Update format strings.
3536
dc304a94
JK
35372014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3538
3539 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
3540 (Changes in GDB 7.8): ... here.
3541
3cecbbbe
TT
35422014-08-04 Tom Tromey <tromey@redhat.com>
3543
3544 * target.c (set_targetdebug): New function.
3545 (initialize_targets): Pass set_targetdebug when creating "set
3546 debug target".
3547
6908c509
JB
35482014-08-01 Joel Brobecker <brobecker@adacore.com>
3549
3550 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
3551 if detecting a variable-sized field that is not the last field.
3552 Fix struct type length computation.
3553
53e8f97d
JB
35542014-08-01 Joel Brobecker <brobecker@adacore.com>
3555
3556 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3557 Add debug trace.
3558
e068c55d
JB
35592014-08-01 Joel Brobecker <brobecker@adacore.com>
3560
3561 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3562 Remove "+ 8" offset in computation of CHAIN_VMA.
3563
4d4ca2a1
DE
35642014-07-31 Doug Evans <dje@google.com>
3565
3566 * inflow.c (child_terminal_inferior): Add comment.
3567 (child_terminal_ours_for_output): Add comment.
3568 (child_terminal_ours): Add comment.
3569 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
3570 (linux_nat_terminal_ours): Add comment.
3571
462f517e
GB
35722014-07-31 Gary Benson <gbenson@redhat.com>
3573
3574 * common/btrace-common.h: Do not include defs.h or server.h.
3575 * nat/mips-linux-watch.h: Likewise.
3576 * gdb-dlfcn.h: Do not include defs.h.
3577 * tracefile.h: Likewise.
3578
74228e77
RM
35792014-07-30 Roland McGrath <mcgrathr@google.com>
3580
3581 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
3582
014f9477
TT
35832014-07-30 Tom Tromey <tromey@redhat.com>
3584
3585 * bsd-kvm.c (bsd_kvm_open): Constify.
3586 * corelow.c (core_open): Constify.
3587 * ctf.c (ctf_open): Constify.
3588 * dbug-rom.c (dbug_open): Constify.
3589 * exec.c (exec_open): Constify.
3590 * m32r-rom.c (m32r_open, mon2000_open): Constify.
3591 * microblaze-rom.c (picobug_open): Constify.
3592 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
3593 Constify.
3594 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
3595 * record-btrace.c (record_btrace_open): Constify.
3596 * record-full.c (record_full_core_open_1, record_full_open_1)
3597 (record_full_open): Constify.
3598 * remote-m32r-sdi.c (m32r_open): Constify.
3599 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
3600 (rockhopper_open, lsi_open): Constify.
3601 * remote-sim.c (gdbsim_open): Constify.
3602 * remote.c (remote_open, extended_remote_open, remote_open_1):
3603 Constify.
3604 * target.h (struct target_ops) <to_open>: Make "arg" const.
3605 * tracefile-tfile.c (tfile_open): Constify.
3606
e799154c
TT
36072014-07-30 Tom Tromey <tromey@redhat.com>
3608
3609 * breakpoint.c (map_breakpoint_numbers): Update.
3610 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
3611 (get_number_const): New function.
3612 (get_number): Rewrite using get_number_const.
3613 (init_number_or_range): Make "string" const.
3614 (number_is_in_list): Make "list" const.
3615 * cli/cli-utils.h (get_number_const): Declare.
3616 (struct get_number_or_range_state) <string, end_ptr>: Now const.
3617 (init_number_or_range, number_is_in_list): Update.
3618 * printcmd.c (map_display_numbers): Update.
3619 * value.c (value_from_history_ref): Constify.
3620 * value.h (value_from_history_ref): Update.
3621
5f08566b
TT
36222014-07-30 Tom Tromey <tromey@redhat.com>
3623
3624 * corefile.c (hook_type, call_extra_exec_file_hooks)
3625 (specify_exec_file_hook): Constify.
3626 * exec.c (exec_file_attach): Make "filename" const.
3627 * gdbcore.h (deprecated_exec_file_display_hook)
3628 (specify_exec_file_hook, exec_file_attach): Constify.
3629 * main.c (captured_main): Use catch_command_errors_const.
3630
8981c758
TT
36312014-07-30 Tom Tromey <tromey@redhat.com>
3632
3633 * target.c (open_target): New function.
3634 (add_target_with_completer, add_deprecated_target_alias): Use
3635 set_cmd_sfunc, set_cmd_context.
3636 (debug_to_open): Remove.
3637 (setup_target_debug): Update.
3638
a1c7835a
YQ
36392014-07-30 Yao Qi <yao@codesourcery.com>
3640
3641 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
3642 comments.
3643 * parse.c (exp_iterate): Update comments.
3644
976411d6
GB
36452014-07-30 Gary Benson <gbenson@redhat.com>
3646
3647 * common/common-defs.h: New file.
3648 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
3649 * defs.h: Include common-defs.h.
3650 Do not include config.h or build-gnulib/config.h.
3651
5d4848a4
GB
36522014-07-30 Gary Benson <gbenson@redhat.com>
3653
3654 * common/common-utils.h: Do not include config.h.
3655 * nat/linux-btrace.h: Likewise.
3656
d41f6d8e
GB
36572014-07-30 Gary Benson <gbenson@redhat.com>
3658
3659 * btrace.c: Include defs.h.
3660 * common/ptid.c: Include defs.h or server.h as appropriate.
3661 * nat/mips-linux-watch.c: Likewise.
3662
84202f9c
TT
36632014-07-29 Tom Tromey <tromey@redhat.com>
3664
3665 * target.c (target_is_pushed): Simplify.
3666
2530441c
JB
36672014-07-29 Joel Brobecker <brobecker@adacore.com>
3668
3669 GDB 7.8 released.
3670
7e09a223
YQ
36712014-07-29 Yao Qi <yao@codesourcery.com>
3672
3673 PR gdb/17206
3674 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
3675
7ebdbe92
DE
36762014-07-28 Doug Evans <xdje42@gmail.com>
3677
3678 PR guile/17203
3679 * guile/scm-param.c (pascm_parameter_defined_p): New function.
3680 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
3681 parameters.
3682
f347ffc9
WN
36832014-07-28 Will Newton <will.newton@linaro.org>
3684
3685 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
3686 (THUMB2_SET_R7_SIGRETURN2): Likewise.
3687 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
3688 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
3689 (THUMB2_EABI_SYSCALL): Likewise.
3690 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
3691 struct tramp_frame.
3692 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
3693 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
3694
37c5f1f7
DE
36952014-07-27 Doug Evans <xdje42@gmail.com>
3696
3697 * guile/scm-param.c (pascm_print_param_smob): Fix output.
3698
0c3abbc7
DE
36992014-07-27 Doug Evans <xdje42@gmail.com>
3700
3701 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
3702
e76c5d17
DE
37032014-07-26 Ludovic Courtès <ludo@gnu.org>
3704 Doug Evans <xdje42@gmail.com>
3705
3706 PR guile/17146
3707 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
3708 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
3709 * configure.ac: Try to use guild to compile an scm file, if it fails
3710 then disable guile support.
3711 * configure: Regenerate.
3712 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
3713 GUILE_FILE_LIST.
3714 (GUILE_COMPILED_FILES): New variable.
3715 (GUILE_FILES) Update.
3716 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
3717 (stamp-guile): Compile scm files.
3718 * guile/guile.c (boot_guile_support): New function.
3719 (standard_throw_args_p): New function.
3720 (print_standard_throw_error, print_throw_error): New functions.
3721 (handle_boot_error): New function.
3722 (initialize_scheme_side): Rewrite to call boot_guile_support.
3723 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
3724 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
3725
186fcde0
DE
37262014-07-26 Ludovic Courtès <ludo@gnu.org>
3727 Doug Evans <xdje42@gmail.com>
3728
3729 PR guile/17146
3730 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
3731 * guile/lib/gdb/support.scm: New file.
3732 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
3733 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
3734 All uses updated.
3735 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
3736 All uses updated.
3737 (%assert-type): Ditto, and renamed to assert-type.
3738 (%exception-print-style): Delete.
3739
4df42755
DE
37402014-07-26 Doug Evans <xdje42@gmail.com>
3741
3742 PR build/17105
3743 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
3744 * configure: Regenerate.
3745 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
3746 PYTHON_FILES.
3747 (PYTHON_FILES): New variable.
3748 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
3749 (GUILE_FILES): New variable.
3750 (stamp-python, install-python, uninstall-python): Handle empty
3751 file list.
3752 (stamp-guile, install-guile, uninstall-guile): Ditto.
3753
ee7333ae
DE
37542014-07-26 Doug Evans <xdje42@gmail.com>
3755
3756 PR guile/17177
3757 * guile/lib/gdb.scm (pretty-printers): Export.
3758 (set-pretty-printers!): Export.
3759 * guile/lib/gdb/printing.scm (gdb module): Update.
3760 (prepend-pretty-printer!, append-pretty-printer!): Update.
3761 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
3762 (pretty_printer_list_var): Delete.
3763 (pretty_printer_list): New static global.
3764 (gdbscm_pretty_printers): New function.
3765 (gdbscm_set_pretty_printers_x): New function.
3766 (ppscm_find_pretty_printer_from_gdb): Update.
3767 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
3768 (gdbscm_initialize_pretty_printers): Update.
3769
74edf516
DE
37702014-07-26 Doug Evans <xdje42@gmail.com>
3771
3772 PR 17185
3773 * configure.ac: Add check for header gc/gc.h.
3774 Add check for function setenv.
3775 * configure: Regenerate.
3776 * config.in: Regenerate.
3777 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
3778
d54398a7
MR
37792014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
3780
3781 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
3782 variation in gdbarch matching.
3783
ab16fce8
TT
37842014-07-25 Tom Tromey <tromey@redhat.com>
3785
3786 * exec.c (using_exec_ops): Remove.
3787 (exec_close_1): Update. Remove extraneous block, reindent.
3788 (add_target_sections): Use target_is_pushed.
3789
88056fbb
PA
37902014-07-25 Pedro Alves <palves@redhat.com>
3791
3792 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
3793 * monitor.c (monitor_create_inferior): Likewise.
3794 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
3795 * remote-sim.c (gdbsim_create_inferior): Likewise.
3796 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
3797 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
3798 * windows-nat.c (do_initial_windows_stuff): Likewise.
3799
70509625
PA
38002014-07-25 Pedro Alves <palves@redhat.com>
3801
3802 * NEWS: Mention signal passing and "signal" command changes.
3803 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
3804 comment.
3805 * breakpoint.c (until_break_command): Adjust clear_proceed_status
3806 call.
3807 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
3808 * infcmd.c (proceed_thread_callback, continue_1, step_once)
3809 (jump_command): Adjust clear_proceed_status call.
3810 (signal_command): Warn if other thread that are resumed have
3811 signals that will be delivered. Adjust clear_proceed_status call.
3812 (until_next_command, finish_command)
3813 (proceed_after_attach_callback, attach_command_post_wait)
3814 (attach_command): Adjust clear_proceed_status call.
3815 * infrun.c (proceed_after_vfork_done): Likewise.
3816 (proceed_after_attach_callback): Adjust comment.
3817 (clear_proceed_status_thread): Clear stop_signal if not in pass
3818 state.
3819 (clear_proceed_status_callback): Delete.
3820 (clear_proceed_status): New 'step' parameter. Only clear the
3821 proceed status of threads the command being prepared is about to
3822 resume.
3823 (proceed): If passed in an explicit signal, override stop_signal
3824 with it. Don't pass the last stop signal to the thread we're
3825 resuming.
3826 (init_wait_for_inferior): Adjust clear_proceed_status call.
3827 (switch_back_to_stepped_thread): Clear the signal if it should not
3828 be passed.
3829 * infrun.h (clear_proceed_status): New 'step' parameter.
3830 (user_visible_resume_ptid): Add comment.
3831 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
3832 signal is in pass state.
3833 * remote.c (append_pending_thread_resumptions): Likewise.
3834 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
3835
d8be2939
TT
38362014-07-25 Tom Tromey <tromey@redhat.com>
3837
3838 * target.h (target_stopped_data_address)
3839 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
3840 parentheses.
3841
7d0d9d2b
PL
38422014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
3843
3844 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
3845 comments.
3846 (avr_pointer_to_address): Likewise.
3847
e9e7f724
TT
38482014-07-24 Tom Tromey <tromey@redhat.com>
3849
3850 * monitor.c (compile_pattern): Update.
3851 * target.h (struct target_ops) <to_shortname, to_longname,
3852 to_doc>: Now const.
3853
1947513d
TT
38542014-07-24 Tom Tromey <tromey@redhat.com>
3855
3856 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
3857 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
3858 (add_info_alias, add_com): Make "doc" const.
3859 (print_doc_line): Make "str" const.
3860 (delete_cmd): Update.
3861 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
3862 (print_doc_line): Update.
3863 * cli/cli-script.c (document_command): Update.
3864 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
3865 (add_com, add_info, add_info_alias): Update.
3866 * guile/scm-cmd.c (cmdscm_destroyer): Update.
3867 * python/py-cmd.c (cmdpy_destroyer): Update.
3868
64e61d29
TT
38692014-07-24 Tom Tromey <tromey@redhat.com>
3870
3871 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
3872 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
3873 (help_cmd_list): Constify.
3874 (lookup_cmd): Update.
3875 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
3876 const.
3877 (help_cmd_list, apropos_cmd): Update.
3878 * cli/cli-script.c (show_user): Update.
3879 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
3880 * cli/cli-setshow.h (cmd_show_list): Update.
3881 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
3882 (cmd_show_list): Update.
3883 * guile/scm-cmd.c (cmdscm_destroyer): Update.
3884 * python/py-cmd.c (cmdpy_destroyer): Update.
3885
429e55ea
TT
38862014-07-24 Tom Tromey <tromey@redhat.com>
3887
3888 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
3889 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
3890 const.
3891 * command.h (deprecate_cmd): Update.
3892 * maint.c (maintenance_do_deprecate): Add casts.
3893
64669f3b
TT
38942014-07-24 Tom Tromey <tromey@redhat.com>
3895
3896 * cli/cli-decode.c (help_cmd): Make parameter "const".
3897 * cli/cli-decode.h (help_cmd): Update.
3898
d3d3328b
TT
38992014-07-24 Tom Tromey <tromey@redhat.com>
3900
3901 * stack.c (up_silently_base, down_silently_base): Make argument
3902 const.
3903
414842dc
TT
39042014-07-24 Tom Tromey <tromey@redhat.com>
3905
3906 * solib.c (solib_add): Make "pattern" const.
3907 * solib.h (solib_add): Update.
3908
baa336ce
TT
39092014-07-24 Tom Tromey <tromey@redhat.com>
3910
3911 * remote.c (remote_serial_open, print_packet, putpkt)
3912 (putpkt_binary): Constify.
3913 * remote.h (putpkt): Update.
3914
5a19e2d0
TT
39152014-07-24 Tom Tromey <tromey@redhat.com>
3916
3917 * monitor.c (monitor_open): Make "args" const.
3918 * monitor.h (monitor_open): Update.
3919
fc4baa5e
TT
39202014-07-24 Tom Tromey <tromey@redhat.com>
3921
3922 * maint.c (match_bfd_flags): Make "string" const.
3923 (print_bfd_section_info): Remove casts.
3924 (print_objfile_section_info): Make "string" const.
3925
0d5f0dbe
TT
39262014-07-24 Tom Tromey <tromey@redhat.com>
3927
3928 * inf-child.c (inf_child_open_target): Make "arg" const.
3929 * inf-child.h (inf_child_open_target): Update.
3930
41c77899
TT
39312014-07-24 Tom Tromey <tromey@redhat.com>
3932
3933 * environ.c (unset_in_environ): Make "var" const.
3934 * environ.h (unset_in_environ): Update.
3935
93db0d79
TT
39362014-07-24 Tom Tromey <tromey@redhat.com>
3937
3938 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
3939 Make "cmd" const.
3940 (scan_filename_with_cleanup): Likewise.
3941 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
3942 Make arguments const.
3943 (restore_command): Update.
3944
36d6eb95
PA
39452014-07-24 Pedro Alves <palves@redhat.com>
3946
3947 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
3948
8009206a
TT
39492014-07-24 Tom Tromey <tromey@redhat.com>
3950 Gary Benson <gbenson@redhat.com>
3951
3952 * nat/linux-ptrace.c (additional_flags): New global.
3953 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
3954 additional_flags; don't check GDBSERVER.
3955 (linux_ptrace_set_additional_flags): New function.
3956 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
3957 Declare.
3958 * linux-nat.c (_initialize_linux_nat): Call
3959 linux_ptrace_set_additional_flags.
3960
a7068b60
TT
39612014-07-24 Tom Tromey <tromey@redhat.com>
3962
3963 * make-target-delegates (munge_type, write_debugmethod): New
3964 functions.
3965 (debug_names): New global.
3966 ($TARGET_DEBUG_PRINTER): New global.
3967 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
3968 name.
3969 Write debug methods. Generate init_debug_target.
3970 * target-debug.h: New file.
3971 * target-delegates.c: Rebuild.
3972 * target.c: Include target-debug.h.
3973 (debug_target): Hoist definition.
3974 (target_kill, target_get_section_table, target_memory_map)
3975 (target_flash_erase, target_flash_done, target_detach)
3976 (target_disconnect, target_wait, target_resume)
3977 (target_pass_signals, target_program_signals, target_follow_fork)
3978 (target_mourn_inferior, target_search_memory)
3979 (target_thread_address_space, target_close)
3980 (target_find_new_threads, target_core_of_thread)
3981 (target_verify_memory, target_insert_mask_watchpoint)
3982 (target_remove_mask_watchpoint): Remove targetdebug code.
3983 (debug_to_post_attach, debug_to_prepare_to_store)
3984 (debug_to_files_info, debug_to_insert_breakpoint)
3985 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
3986 (debug_to_region_ok_for_hw_watchpoint)
3987 (debug_to_can_accel_watchpoint_condition)
3988 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
3989 (debug_to_watchpoint_addr_within_range)
3990 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
3991 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
3992 (debug_to_terminal_init, debug_to_terminal_inferior)
3993 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
3994 (debug_to_terminal_save_ours, debug_to_terminal_info)
3995 (debug_to_load, debug_to_post_startup_inferior)
3996 (debug_to_insert_fork_catchpoint)
3997 (debug_to_remove_fork_catchpoint)
3998 (debug_to_insert_vfork_catchpoint)
3999 (debug_to_remove_vfork_catchpoint)
4000 (debug_to_insert_exec_catchpoint)
4001 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
4002 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
4003 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
4004 (setup_target_debug): Call init_debug_target.
4005 * target.h (TARGET_DEBUG_PRINTER): New macro.
4006 (struct target_ops) <to_resume, to_wait, to_pass_signals,
4007 to_program_signals>: Use TARGET_DEBUG_PRINTER.
4008
2c51604d
GB
40092014-07-24 Gary Benson <gbenson@redhat.com>
4010
4011 * exceptions.h (throw_vfatal): Renamed to...
4012 (throw_vquit): New declaration.
4013 (throw_quit): Likewise.
4014 * exceptions.c (throw_vfatal): Renamed to...
4015 (throw_vquit): New function.
4016 (throw_quit): Likewise.
4017 (throw_error): Call throw_verror rather than throw_it.
4018 * utils.h (vfatal): Removed.
4019 (fatal): Likewise.
4020 * utils.c (vfatal): Removed.
4021 (fatal): Likewise.
4022 (internal_verror): Replaced call to fatal with call to throw_quit.
4023 (quit): Replaced calls to fatal with calls to throw_quit.
4024
34211963
ME
40252014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
4026
4027 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
4028 target_read_code.
4029
a52b4d3e
ME
40302014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
4031
4032 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
4033 less than zero in conditional expression.
4034
a8bdc56b
TT
40352014-07-23 Tom Tromey <tromey@redhat.com>
4036
4037 * make-target-delegates ($ARGS_PART): Match trailing close paren.
4038 ($INTRO_PART): Don't match whitespace.
4039 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
4040 argument matching.
4041 ($METHOD): Add $METHOD_TRAILER.
4042 (trim): Rewrite.
4043 (scan_target_h): New sub.
4044 Change main loop not to collect state.
4045 * target-delegates.c: Rebuild.
4046
91b52240
GB
40472014-07-23 Gary Benson <gbenson@redhat.com>
4048
4049 * cp-support.c (gdb_demangle): Fix build on systems without
4050 sigaltstack.
4051
45326f6f
JK
40522014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4053
4054 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
4055 for reference entry value target data value.
4056
e214cf6c
JK
40572014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4058
4059 * stack.c (read_frame_arg): Verify value_optimized_out before calling
4060 value_available_contents_eq.
4061
bddbbedd
PA
40622014-07-22 Pedro Alves <palves@redhat.com>
4063
4064 * value.c (allocate_optimized_out_value): Don't mark value as
4065 non-lazy.
4066
45c71484
JW
40672014-07-22 Jiong Wang <jiong.wang@arm.com>
4068
4069 * MAINTAINERS (Write After Approval): Update my email address.
4070
9597b22a
DE
40712014-07-20 Doug Evans <dje@google.com>
4072
4073 PR server/17147
4074 * remote.c (putpkt_binary): Add text to error message.
4075
91101fe5
YQ
40762014-07-20 Yao Qi <yao@codesourcery.com>
4077
4078 * eval.c: Remove "Chill" from comments.
4079 * gdbtypes.h: Likewise.
4080 * symtab.h: Likewise.
4081
c9402c95
YQ
40822014-07-20 Yao Qi <yao@codesourcery.com>
4083
4084 * std-operator.def: Update comments to TERNOP_SLICE.
4085
ae8fddda
YQ
40862014-07-20 Yao Qi <yao@codesourcery.com>
4087
4088 * std-operator.def: Remove BINOP_RANGE.
4089 * breakpoint.c (watchpoint_exp_is_const): Update.
4090 * expprint.c (dump_subexp_body_standard): Likewise.
4091 * eval.c (init_array_element): Remove dead code.
4092 (evaluate_subexp_standard): Likewise.
4093
9c816640
YQ
40942014-07-20 Yao Qi <yao@codesourcery.com>
4095
4096 * std-operator.def: Remove BINOP_IN.
4097 * breakpoint.c (watchpoint_exp_is_const): Update.
4098 * eval.c (evaluate_subexp_standard): Likewise.
4099 * expprint.c (dump_subexp_body_standard): Likewise.
4100
164224e9
ME
41012014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
4102
4103 * microblaze-tdep.c (microblaze_register_names): Add
4104 the rshr and rslr register names.
4105 (microblaze_gdbarch_init): Use of tdesc_has_registers.
4106 Use of tdesc_find_feature. Use of tdesc_data_alloc.
4107 Use of tdesc_numbered_register. Use of
4108 microblaze_register_g_packet_guesses. Use of
4109 tdesc_use_registers. Use of set_gdbarch_register_type.
4110 (microblaze_register_g_packet_guesses): New.
4111 * microblaze-tdep.h (microblaze_reg_num): Add
4112 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
4113 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
4114 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
4115 * features/microblaze-core.xml: New file.
4116 * features/microblaze-stack-protect.xml: New file.
4117 * features/microblaze-with-stack-protect.c: New file.
4118 * features/microblaze-with-stack-protect.xml: New file.
4119 * features/microblaze.xml: New file.
4120 * features/microblaze.c: New file.
4121 * features/Makefile (microblaze-with-stack-protect): Add
4122 microblaze-with-stack-protect microblaze and microblaze-expedite.
4123 * regformats/microblaze-with-stack-protect.dat: New file.
4124 * regformats/microblaze.dat: New file.
4125 * doc/gdb.texinfo (MicroBlaze Features): Added.
4126
e8b2341c
TT
41272014-07-18 Tom Tromey <tromey@redhat.com>
4128
4129 * exec.c (exec_ops): Now static.
4130 * exec.h (exec_ops): Don't declare.
4131
44e89118
TT
41322014-07-18 Tom Tromey <tromey@redhat.com>
4133
4134 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
4135 to find_target_beneath.
4136 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
4137 find_target_beneath.
4138 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
4139
b0ed115f
TT
41402014-07-18 Tom Tromey <tromey@redhat.com>
4141
4142 PR gdb/17130:
4143 * utils.c (quit): Use target_supports_terminal_ours.
4144 * target.h (target_supports_terminal_ours): Declare.
4145 * target.c (target_supports_delete_record): Don't check
4146 to_delete_record against NULL.
4147 (target_supports_terminal_ours): New function.
4148
e75fdfca
TT
41492014-07-18 Tom Tromey <tromey@redhat.com>
4150
4151 PR gdb/17130:
4152 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
4153 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
4154 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
4155 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
4156 * windows-nat.c (windows_xfer_partial): Always delegate.
4157 * record-btrace.c (record_btrace_xfer_partial): Simplify
4158 delegation.
4159 (record_btrace_fetch_registers, record_btrace_store_registers)
4160 (record_btrace_prepare_to_store, record_btrace_resume)
4161 (record_btrace_wait, record_btrace_find_new_threads)
4162 (record_btrace_thread_alive): Likewise.
4163 * procfs.c (procfs_xfer_partial): Always delegate.
4164 * corelow.c (core_xfer_partial): Always delegate.
4165 * sol-thread.c (sol_find_new_threads): Simplify delegation.
4166
83814951
TT
41672014-07-18 Tom Tromey <tromey@redhat.com>
4168
4169 * exec.c (exec_make_note_section): Move earlier.
4170
b8b8facf
DE
41712014-07-17 Doug Evans <dje@google.com>
4172
74b49205 4173 PR gdb/17170
b8b8facf
DE
4174 * maint.c (count_symtabs_and_blocks): Handle NULL
4175 current_program_space.
4176 (report_command_stats): Check global enabled flag in addition to
4177 recorded enabled flag.
4178 (make_command_stats_cleanup): Handle msg_type == 0, startup.
4179
69ff6be5
PA
41802014-07-16 Pedro Alves <palves@redhat.com>
4181
4182 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
4183
252db1b5
TT
41842014-07-16 Tom Tromey <tromey@redhat.com>
4185
4186 * target.h (struct target_ops) <to_delete_record>: Reformat
4187 comment.
4188
a432721e
TT
41892014-07-16 Tom Tromey <tromey@redhat.com>
4190
4191 * target-delegates.c: Rebuild.
4192
487d9753
PL
41932014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
4194
4195 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
4196 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
4197 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
4198 (avr_pointer_to_address): Likewise.
4199 (avr_address_class_type_flags): New function.
4200 (avr_address_class_type_flags_to_name): Likewise.
4201 (avr_address_class_name_to_type_flags): Likewise.
4202 (avr_gdbarch_init): Set address_class_type_flags,
4203 address_class_type_flags_to_name and
4204 address_class_name_to_type_flags.
4205
57745c90
PA
42062014-07-15 Pedro Alves <palves@redhat.com>
4207
4208 * linux-nat.c (kill_callback): Save errno and work with saved
4209 copy.
4210
2d40be18
SM
42112014-07-15 Simon Marchi <simon.marchi@ericsson.com>
4212
4213 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
4214
572f6555
EBM
42152014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4216
4217 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
4218 breakpoint support correctly.
4219
cc1c52ad
PA
42202014-07-14 Pedro Alves <palves@redhat.com>
4221
4222 * utils.c (prompt_for_continue): Call target_terminal_ours.
4223
1e973570
PA
42242014-07-14 Pedro Alves <palves@redhat.com>
4225
4226 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
4227 catch_errors. Don't re-enable stdin or notify observers where,
4228 and rethrow error.
4229 (fetch_inferior_event_wrapper): Delete.
4230
93d6eb10
PA
42312014-07-14 Pedro Alves <palves@redhat.com>
4232
4233 PR gdb/17072
4234 * top.c: Include "inf-loop.h".
4235 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
4236 field.
4237 (gdb_readline_wrapper_cleanup): Make the target async again, if it
4238 was async before.
4239 (gdb_readline_wrapper): Store whether the target is async, and
4240 make it sync.
4241
0017922d
PA
42422014-07-14 Pedro Alves <palves@redhat.com>
4243
4244 PR gdb/17072
4245 * top.c (gdb_readline_wrapper_line): Tweak comment.
4246 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
4247 the input handler callback.
4248
94696ad3
PA
42492014-07-14 Pedro Alves <palves@redhat.com>
4250
4251 PR gdb/17072
4252 * main.c: Include event-top.h.
4253 (handle_command_errors): New function.
4254 (catch_command_errors, catch_command_errors_const): Use it.
4255
9d1e69a2
PA
42562014-07-14 Pedro Alves <palves@redhat.com>
4257
4258 * exceptions.c (catch_command_errors, catch_command_errors_const):
4259 Moved to main.c.
4260 * exceptions.h (catch_command_errors_ftype)
4261 (catch_command_errors_const_ftype): Moved to main.c.
4262 (catch_command_errors, catch_command_errors_const): Delete
4263 declarations.
4264 * main.c (catch_command_errors_ftype)
4265 (catch_command_errors_const_ftype): Moved here from exceptions.h.
4266 (catch_command_errors, catch_command_errors_const)): Moved here
4267 from exceptions.c and make static.
4268
feefc97b
PA
42692014-07-14 Pedro Alves <palves@redhat.com>
4270
4271 * exceptions.c (print_any_exception): Delete.
4272 (catch_exceptions_with_msg): Use exception_print instead of
4273 print_any_exception.
4274 (catch_errors): Use exception_fprintf instead of
4275 print_any_exception.
4276 (catch_command_errors, catch_command_errors_const): Use
4277 exception_print instead of print_any_exception.
4278
c933f875
PA
42792014-07-14 Pedro Alves <palves@redhat.com>
4280
4281 * infcall.c (run_inferior_call): Set 'sync_execution' while
4282 running the inferior call.
4283
feb6f816
PA
42842014-07-14 Pedro Alves <palves@redhat.com>
4285
4286 * value.c (value_contents_equal): Delete function.
4287 * value.h (value_contents_equal): Delete declaration.
4288
d98b7a16
TT
42892014-07-14 Tom Tromey <tromey@redhat.com>
4290
4291 PR exp/17106:
4292 * gdbtypes.c (is_dynamic_type_internal): New function, from
4293 is_dynamic_type.
4294 (is_dynamic_type): Rewrite.
4295 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
4296 (resolve_dynamic_struct): Likewise.
4297 (resolve_dynamic_type_internal): New function, from
4298 resolve_dynamic_type.
4299 (resolve_dynamic_type): Rewrite.
4300
548740d6
TT
43012014-07-14 Tom Tromey <tromey@redhat.com>
4302
4303 * target.c (target_require_runnable): Also check record_stratum.
4304 Update comment.
4305
808f7ab1
YQ
43062014-07-11 Yao Qi <yao@codesourcery.com>
4307
4308 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
4309 thumb_instruction_restores_sp return true.
4310
540314bd
YQ
43112014-07-11 Yao Qi <yao@codesourcery.com>
4312
4313 * arm-tdep.c (thumb_instruction_restores_sp): New function.
4314 (thumb_in_function_epilogue_p): Call
4315 thumb_instruction_restores_sp.
4316
1db01f22
YQ
43172014-07-11 Yao Qi <yao@codesourcery.com>
4318
4319 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
4320 'add sp, #imm'.
4321 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
4322
3116063b
GB
43232014-07-11 Gary Benson <gbenson@redhat.com>
4324
4325 * amd64-linux-nat.c (gdbcore.h): Remove include.
4326 (regset.h): Likewise.
4327 (nat/linux-btrace.h): Likewise.
4328 (btrace.h): Likewise.
4329 (gdb_assert.h): Likewise.
4330 (string.h): Likewise.
4331 (sys/uio.h): Likewise.
4332 (sys/debugreg.h): Likewise.
4333 (sys/syscall.h): Likewise.
4334 (sys/procfs.h): Likewise.
4335 (sys/user.h): Likewise.
4336 (asm/ptrace.h): Likewise.
4337 (i386-nat.h): Likewise.
4338 * i386-linux-nat.c (i386-nat.h): Likewise.
4339 (regset.h): Likewise.
4340 (target.h): Likewise.
4341 (linux-nat.h): Likewise.
4342 (nat/linux-btrace.h): Likewise.
4343 (btrace.h): Likewise.
4344 (gdb_assert.h): Likewise.
4345 (string.h): Likewise.
4346 (sys/uio.h): Likewise.
4347 (sys/user.h): Likewise.
4348 (sys/procfs.h): Likewise.
4349 (sys/reg.h): Likewise.
4350 (sys/debugreg.h): Likewise.
4351 (ORIG_EAX): Remove definition.
4352
040baaf6
GB
43532014-07-11 Gary Benson <gbenson@redhat.com>
4354
4355 * i386-linux-nat.h: New file.
4356 * x86-linux-nat.h: Likewise.
4357 * x86-linux-nat.c: Likewise.
4358 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
4359 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
4360 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4361 * amd64-linux-nat.c (x86-linux-nat.h): New include.
4362 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
4363 (PTRACE_SETREGSET): Likewise.
4364 (arch_lwp_info): Now in x86-linux-nat.c.
4365 (have_ptrace_getregset): Now in x86-linux-nat.h.
4366 (x86_linux_dr_get): Now in x86-linux-nat.c.
4367 (x86_linux_dr_set): Likewise.
4368 (x86_linux_dr_get_addr): Likewise.
4369 (x86_linux_dr_get_control): Likewise.
4370 (x86_linux_dr_get_status): Likewise.
4371 (update_debug_registers_callback): Likewise.
4372 (x86_linux_dr_set_control): Likewise.
4373 (x86_linux_dr_set_addr): Likewise.
4374 (x86_linux_prepare_to_resume): Likewise.
4375 (x86_linux_new_thread): Likewise.
4376 (x86_linux_new_fork): Likewise.
4377 (x86_linux_get_thread_area): Likewise.
4378 (super_post_startup_inferior): Likewise.
4379 (x86_linux_child_post_startup_inferior): Likewise.
4380 (AMD64_LINUX_USER64_CS): Likewise.
4381 (AMD64_LINUX_X32_DS): Likewise.
4382 (x86_linux_read_description): Likewise.
4383 (x86_linux_enable_btrace): Likewise.
4384 (x86_linux_disable_btrace): Likewise.
4385 (x86_linux_teardown_btrace): Likewise.
4386 (x86_linux_read_btrace): Likewise.
4387 (x86_linux_create_target): Likewise.
4388 (x86_linux_add_target): Likewise.
4389 * i386-linux-nat.c (x86-linux-nat.h): New include.
4390 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
4391 (PTRACE_SETREGSET): Likewise.
4392 (arch_lwp_info): Now in x86-linux-nat.c.
4393 (have_ptrace_getregset): Now in x86-linux-nat.h.
4394 (x86_linux_dr_get): Now in x86-linux-nat.c.
4395 (x86_linux_dr_set): Likewise.
4396 (x86_linux_dr_get_addr): Likewise.
4397 (x86_linux_dr_get_control): Likewise.
4398 (x86_linux_dr_get_status): Likewise.
4399 (update_debug_registers_callback): Likewise.
4400 (x86_linux_dr_set_control): Likewise.
4401 (x86_linux_dr_set_addr): Likewise.
4402 (x86_linux_prepare_to_resume): Likewise.
4403 (x86_linux_new_thread): Likewise.
4404 (x86_linux_new_fork): Likewise.
4405 (x86_linux_get_thread_area): Likewise.
4406 (super_post_startup_inferior): Likewise.
4407 (x86_linux_child_post_startup_inferior): Likewise.
4408 (AMD64_LINUX_USER64_CS): Likewise.
4409 (AMD64_LINUX_X32_DS): Likewise.
4410 (x86_linux_read_description): Likewise.
4411 (x86_linux_enable_btrace): Likewise.
4412 (x86_linux_disable_btrace): Likewise.
4413 (x86_linux_teardown_btrace): Likewise.
4414 (x86_linux_read_btrace): Likewise.
4415 (x86_linux_create_target): Likewise.
4416 (x86_linux_add_target): Likewise.
4417
1aa7e42c
GB
44182014-07-11 Gary Benson <gbenson@redhat.com>
4419
4420 * amd64-linux-nat.c: Comment and whitespace changes.
4421 * i386-linux-nat.c: Comment and whitespace changes.
4422
c1e246a0
GB
44232014-07-11 Gary Benson <gbenson@redhat.com>
4424
4425 * amd64-linux-nat.c (x86_linux_create_target): New function.
4426 (x86_linux_add_target): Likewise.
4427 (_initialize_amd64_linux_nat): Delegate to the above new functions.
4428 * i386-linux-nat.c (x86_linux_create_target): New function.
4429 (x86_linux_add_target): Likewise.
4430 (_initialize_i386_linux_nat): Delegate to the above new functions.
4431
8c420b8d
GB
44322014-07-11 Gary Benson <gbenson@redhat.com>
4433
4434 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
4435 (ps_get_thread_area): Delegate to the above in 32-bit mode.
4436 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
4437 (ps_get_thread_area): Delegate to the above.
4438
cb1da100
GB
44392014-07-11 Gary Benson <gbenson@redhat.com>
4440
4441 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
4442 x86_linux_read_description. All uses updated. amd64-specific
4443 code conditionalized. Conditionalized i386-specific code added.
4444 Redundant cast removed.
4445 * i386-linux-nat.c (i386_linux_read_description): Renamed to
4446 x86_linux_read_description. All uses updated. i386-specific
4447 code conditionalized. Conditionalized amd64-specific code added.
4448 One sizeof replaced with the actual type it is describing.
4449
2acf3cd0
GB
44502014-07-11 Gary Benson <gbenson@redhat.com>
4451
4452 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
4453 x86_linux_dr_get. All uses updated.
4454 (amd64_linux_dr_set): Renamed to
4455 x86_linux_dr_set. All uses updated.
4456 (amd64_linux_dr_get_addr): Renamed to
4457 x86_linux_dr_get_addr. All uses updated.
4458 (amd64_linux_dr_get_control): Renamed to
4459 x86_linux_dr_get_control. All uses updated.
4460 (amd64_linux_dr_get_status): Renamed to
4461 x86_linux_dr_get_status. All uses updated.
4462 (amd64_linux_dr_set_control): Renamed to
4463 x86_linux_dr_set_control. All uses updated.
4464 (amd64_linux_dr_set_addr): Renamed to
4465 x86_linux_dr_set_addr. All uses updated.
4466 (amd64_linux_prepare_to_resume): Renamed to
4467 x86_linux_prepare_to_resume. All uses updated.
4468 (amd64_linux_new_thread): Renamed to
4469 x86_linux_new_thread. All uses updated.
4470 (amd64_linux_new_fork): Renamed to
4471 x86_linux_new_fork. All uses updated.
4472 (amd64_linux_child_post_startup_inferior): Renamed to
4473 x86_linux_child_post_startup_inferior. All uses updated.
4474 (amd64_linux_enable_btrace): Renamed to
4475 x86_linux_enable_btrace. All uses updated.
4476 (amd64_linux_disable_btrace): Renamed to
4477 x86_linux_disable_btrace. All uses updated.
4478 (amd64_linux_teardown_btrace): Renamed to
4479 x86_linux_teardown_btrace. All uses updated.
4480 (amd64_linux_read_btrace): Renamed to
4481 x86_linux_read_btrace. All uses updated.
4482 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
4483 x86_linux_dr_get. All uses updated.
4484 (i386_linux_dr_set): Renamed to
4485 x86_linux_dr_set. All uses updated.
4486 (i386_linux_dr_get_addr): Renamed to
4487 x86_linux_dr_get_addr. All uses updated.
4488 (i386_linux_dr_get_control): Renamed to
4489 x86_linux_dr_get_control. All uses updated.
4490 (i386_linux_dr_get_status): Renamed to
4491 x86_linux_dr_get_status. All uses updated.
4492 (i386_linux_dr_set_control): Renamed to
4493 x86_linux_dr_set_control. All uses updated.
4494 (i386_linux_dr_set_addr): Renamed to
4495 x86_linux_dr_set_addr. All uses updated.
4496 (i386_linux_prepare_to_resume): Renamed to
4497 x86_linux_prepare_to_resume. All uses updated.
4498 (i386_linux_new_thread): Renamed to
4499 x86_linux_new_thread. All uses updated.
4500 (i386_linux_new_fork): Renamed to
4501 x86_linux_new_fork. All uses updated.
4502 (i386_linux_child_post_startup_inferior): Renamed to
4503 x86_linux_child_post_startup_inferior. All uses updated.
4504 (i386_linux_enable_btrace): Renamed to
4505 x86_linux_enable_btrace. All uses updated.
4506 (i386_linux_disable_btrace): Renamed to
4507 x86_linux_disable_btrace. All uses updated.
4508 (i386_linux_teardown_btrace): Renamed to
4509 x86_linux_teardown_btrace. All uses updated.
4510 (i386_linux_read_btrace): Renamed to
4511 x86_linux_read_btrace. All uses updated.
4512
b9c1d481
AS
45132014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
4514
4515 * remote.c (extended_remote_post_attach): New function.
4516 (init_extended_remote_ops): Install it as to_post_attach method.
4517
7180e04a
PA
45182014-07-09 Pedro Alves <palves@redhat.com>
4519
4520 * infcmd.c (attach_command_post_wait): Don't call
4521 target_terminal_inferior here.
4522 (attach_command): Call it here instead.
4523
9a9a7608
AB
45242014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4525
4526 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
4527 field.
4528 * c-varobj.c (c_is_path_expr_parent): New function, moved core
4529 from varobj.c, with additional checks.
4530 (c_varobj_ops): Fill in is_path_expr_parent field.
4531 (cplus_varobj_ops): Fill in is_path_expr_parent field.
4532 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
4533 field.
4534 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
4535 ops method.
4536 (varobj_default_is_path_expr_parent): New function.
4537 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
4538 (varobj_default_is_path_expr_parent): Declare new function.
4539
1f267ae3
MM
45402014-07-08 Markus Metzger <markus.t.metzger@intel.com>
4541
4542 * infcmd.c (finish_backward): Turn internal error into normal error.
4543
b2ee242b
PA
45442014-07-07 Pedro Alves <palves@redhat.com>
4545
8a869bca 4546 PR gdb/17096
b2ee242b
PA
4547 * remote.c (async_handle_remote_sigint)
4548 (async_handle_remote_sigint_twice): Call
4549 gdb_call_async_signal_handler instead of
4550 mark_async_signal_handler.
4551
38e229b2
TT
45522014-07-07 Tom Tromey <tromey@redhat.com>
4553
4554 * target-delegates.c: Rebuild.
4555 * target.c (target_info_record): Remove.
4556 * record.c (info_record_command): Unconditionally call
4557 to_info_record.
4558 * target.h (struct target_ops) <to_info_record>: Use
4559 TARGET_DEFAULT_IGNORE.
4560 (target_info_record): Remove.
4561
f0f9ff95
TT
45622014-07-07 Tom Tromey <tromey@redhat.com>
4563
4564 * target.h (struct target_ops) <to_get_thread_local_address>: Use
4565 TARGET_DEFAULT_NORETURN.
4566 * target.c (generic_tls_error): New function.
4567 (target_translate_tls_address): Don't search target stack.
4568 * target-delegates.c: Rebuild.
4569 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
4570 stack.
4571 * linux-thread-db.c (thread_db_get_thread_local_address):
4572 Unconditionally call beneath target.
4573
4a5be5ee
MK
45742014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
4575
4576 * cli/cli-logging.c (pop_output_files): Assign targerr to
4577 gdb_stdtargerr.
4578
92c3b204
AB
45792014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
4580
4581 * MAINTAINERS (Write After Approval): Update my email address.
4582
9b11e3a7
GB
45832014-07-02 Gary Benson <gbenson@redhat.com>
4584
4585 * proc-service.c (ps_xfer_memory): Update comment.
4586 (ps_pstop): Remove unused function.
4587 (ps_pcontinue): Likewise.
4588 (ps_lstop): Likewise.
4589 (ps_lcontinue): Likewise.
4590 (ps_lgetxregsize): Likewise.
4591 (ps_lgetxregs): Likewise.
4592 (ps_lsetxregs): Likewise.
4593 (ps_plog): Likewise.
4594 (ps_ptread): Likewise.
4595 (ps_ptwrite): Likewise.
4596
cf363f18
MW
45972014-07-01 Mark Wielaard <mjw@redhat.com>
4598
4599 * dwarf2read.c (add_array_cv_type): New function.
4600 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
4601 (read_tag_volatile_type): Likewise.
4602
82ae6c8d
TT
46032014-07-01 Tom Tromey <tromey@redhat.com>
4604
4605 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
4606 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
4607 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
4608 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
4609 * command.h (cmd_cfunc_ftype): Move earlier.
4610 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
4611 (add_com, add_info): Use cmd_cfunc_ftype.
4612
96142726
TT
46132014-06-30 Tom Tromey <tromey@redhat.com>
4614
4615 * symtab.c (operator_chars): Make parameters and return type
4616 const.
4617 (file_matches): Make "files" const.
4618 (struct search_symbols_data) <files>: Now const.
4619 (search_symbols): Make "regexp" and "files" parameters const.
4620 Update.
4621 (symtab_symbol_info): Remove cast.
4622 (rbreak_command): Update.
4623 * symtab.h (search_symbols): Update.
4624
b67a2c6f
YQ
46252014-06-27 Yao Qi <yao@codesourcery.com>
4626
4627 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
4628 Change parameter type to 'struct thread_info *'. Caller
4629 updated.
4630 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
4631 Update declaration.
4632 * dummy-frame.c (struct dummy_frame_id): New.
4633 (dummy_frame_id_eq): New function.
4634 (struct dummy_frame) <id>: Change its type to 'struct
4635 dummy_frame_id'.
4636 (dummy_frame_push): Add parameter ptid and save it in
4637 dummy_frame_id.
4638 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
4639 inferior_ptid.
4640 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
4641 to inferior_ptid.
4642 (lookup_dummy_frame): Change parameter type to 'struct
4643 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
4644 instead of frame_id_eq.
4645 (dummy_frame_pop): Add parameter ptid. Callers updated.
4646 Update comments. Compose dummy_frame_id and pass it to
4647 lookup_dummy_frame.
4648 (dummy_frame_discard): Add parameter ptid.
4649 (dummy_frame_sniffer): Compose dummy_frame_id and call
4650 dummy_frame_id_eq instead of frame_id_eq.
4651 (fprint_dummy_frames): Print ptid.
4652 * dummy-frame.h: Remove comments.
4653 (dummy_frame_push): Add ptid in declaration.
4654 (dummy_frame_pop, dummy_frame_discard): Likewise.
4655
5b10184c
TT
46562014-06-26 Tom Tromey <tromey@redhat.com>
4657
4658 * cli/cli-cmds.c (error_no_arg): Make "why" const.
4659 * command.h (error_no_arg): Update.
4660
06900326
TT
46612014-06-26 Tom Tromey <tromey@redhat.com>
4662
4663 * cli/cli-setshow.c (do_set_command): Make "arg" const.
4664 (do_show_command): Make "arg" const.
4665 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
4666
c2bcbb1d
TT
46672014-06-26 Tom Tromey <tromey@redhat.com>
4668
4669 * record-full.c (record_full_get_bookmark): Make "args" const.
4670 (record_full_goto_bookmark): Make "raw_bookmark" const.
4671 * record.c (record_goto): New function.
4672 (cmd_record_goto): Use it. Now static.
4673 * record.h (record_goto): Declare.
4674 (cmd_record_goto): Remove declaration.
4675 * target-delegates.c: Rebuild.
4676 * target.h (struct target_ops) <to_get_bookmark,
4677 to_goto_bookmark>: Make parameter const.
4678
9cbe5fff
TT
46792014-06-26 Tom Tromey <tromey@redhat.com>
4680
4681 * defs.h (generic_load): Update.
4682 * m32r-rom.c (m32r_load_gen): Make "filename" const.
4683 * monitor.c (monitor_load): Make "args" const.
4684 * remote-m32r-sdi.c (m32r_load): Make "args" const.
4685 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
4686 const.
4687 (mips_load): Make "file" const.
4688 * remote-sim.c (gdbsim_load): Make "args" const.
4689 * remote.c (remote_load): Make "name" const.
4690 * symfile.c (generic_load): Make "args" const.
4691 * target-delegates.c: Rebuild.
4692 * target.c (target_load): Make "arg" const.
4693 (debug_to_load): Make "args" const.
4694 * target.h (struct target_ops) <to_load>: Make parameter const.
4695 (target_load): Update.
4696
34a68019
TT
46972014-06-26 Tom Tromey <tromey@redhat.com>
4698
4699 PR symtab/16902:
4700 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
4701 (dwarf2_physname, read_partial_die)
4702 (guess_partial_die_structure_name, fixup_partial_die)
4703 (guess_full_die_structure_name, anonymous_struct_prefix)
4704 (dwarf2_name): Use per-BFD obstack.
4705
efc889c1
YQ
47062014-06-26 Yao Qi <yao@codesourcery.com>
4707
4708 * dummy-frame.c (dummy_frame_sniffer): Move local variables
4709 dummyframe and this_id into inner block below.
4710
4395285e
YQ
47112014-06-26 Yao Qi <yao@codesourcery.com>
4712
4713 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
4714 with "signal_pass[0]" in the initialization of signal_pass.
4715
aef92902
MM
47162014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4717
4718 * record-btrace.c (record_btrace_generating_corefile)
4719 (record_btrace_prepare_to_generate_core)
4720 (record_btrace_done_generating_core): New.
4721 (record_btrace_xfer_partial, record_btrace_fetch_registers)
4722 (record_btrace_store_registers, record_btrace_prepare_to_store):
4723 Forward request when generating a core file.
4724 (record_btrace_open): Set record_btrace_generating_corefile to zero.
4725 (init_record_btrace_ops): Set to_prepare_to_generate_core and
4726 to_done_generating_core.
4727
5fff78c4
MM
47282014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4729
4730 * target.h (target_ops) <to_prepare_to_generate_core>
4731 <to_done_generating_core>: New.
4732 (target_prepare_to_generate_core, target_done_generating_core): New.
4733 * target.c (target_prepare_to_generate_core)
4734 (target_done_generating_core): New.
4735 * target-delegates.c: Regenerate.
4736 * gcore.c: (write_gcore_file): Rename to ...
4737 (write_gcore_file_1): ...this.
4738 (write_gcore_file): Call target_prepare_to_generate_core
4739 and target_done_generating_core.
4740
1d1f1ccb
MM
47412014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4742
4743 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
4744 * gcore.c (write_gcore_file): Free memory returned from
4745 make_corefile_notes.
4746 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
4747 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
4748
3343ef86
YQ
47492014-06-24 Yao Qi <yao@codesourcery.com>
4750
4751 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
4752 (arm_linux_init_abi): Set skip_trampoline_code with
4753 gdbarch_skip_trampoline_code instead of
4754 find_solib_trampoline_target.
4755
18d18ac8
YQ
47562014-06-24 Yao Qi <yao@codesourcery.com>
4757
4758 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
4759 arm_skip_bx_reg returns non-zero.
4760
80d8d390
YQ
47612014-06-24 Yao Qi <yao@codesourcery.com>
4762
4763 * arm-tdep.c (arm_skip_bx_reg): New function.
4764 (arm_skip_stub): Call arm_skip_bx_reg.
4765
6a18a01c
DB
47662014-06-23 Don Breazeal <donb@codesourcery.com>
4767
4768 * MAINTAINERS: Add myself as write-after-approval maintainer.
4769
8e9db26e
PA
47702014-06-23 Pedro Alves <palves@redhat.com>
4771
4772 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
4773 DR_CONTROL before setting DR0..DR3.
4774 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
4775 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
4776 bits of DR_CONTROL related to the debug register slot being
4777 disabled. If all slots are vacant, clear local slowdown as well,
4778 and assert DR_CONTROL is 0.
4779
70afc5b7
SC
47802014-06-23 Siva Chandra Reddy <sivachandra@google.com>
4781
4782 * python/lib/gdb/command/xmethods.py
4783 (get_method_matchers_in_loci): Lookup xmethod matchers in the
4784 current progspace only if the string "progspace" matches LOCUS_RE.
4785
840ed64d
JK
47862014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4787
4788 Fix --with-system-readline with readline-6.3 patch 5.
4789 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
4790 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
4791 types.
4792
26f2dc30
TT
47932014-06-20 Tom Tromey <tromey@redhat.com>
4794
4795 * dwarf2read.c (dw2_get_real_path): Use correct type in
4796 OBSTACK_CALLOC.
4797 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
4798
125f8a3d
GB
47992014-06-20 Gary Benson <gbenson@redhat.com>
4800
4801 * common/gdb_thread_db.h: Moved to nat. All includes updated.
4802 * common/glibc_thread_db.h: Likewise.
4803 * common/i386-cpuid.h: Likewise.
4804 * common/i386-gcc-cpuid.h: Likewise.
4805 * common/linux-btrace.h: Likewise.
4806 * common/linux-osdata.h: Likewise.
4807 * common/linux-procfs.h: Likewise.
4808 * common/linux-ptrace.h: Likewise.
4809 * common/mips-linux-watch.h: Likewise.
4810 * common/linux-btrace.c: Moved to nat.
4811 * common/linux-osdata.c: Likewise.
4812 * common/linux-procfs.c: Likewise.
4813 * common/linux-ptrace.c: Likewise.
4814 * common/mips-linux-watch.c: Likewise.
4815 * nat/gdb_thread_db.h: Moved from common.
4816 * nat/glibc_thread_db.h: Likewise.
4817 * nat/i386-cpuid.h: Likewise.
4818 * nat/i386-gcc-cpuid.h: Likewise.
4819 * nat/linux-btrace.c: Likewise.
4820 * nat/linux-btrace.h: Likewise.
4821 * nat/linux-osdata.c: Likewise.
4822 * nat/linux-osdata.h: Likewise.
4823 * nat/linux-procfs.c: Likewise.
4824 * nat/linux-procfs.h: Likewise.
4825 * nat/linux-ptrace.c: Likewise.
4826 * nat/linux-ptrace.h: Likewise.
4827 * nat/mips-linux-watch.c: Likewise.
4828 * nat/mips-linux-watch.h: Likewise.
4829 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
4830 (object file files): Reordered.
4831 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
4832 of glibc_thread_db.h.
4833
42995dbd
GB
48342014-06-20 Gary Benson <gbenson@redhat.com>
4835
4836 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
4837 (i386_dr_low_type): Moved to nat/i386-dregs.h.
4838 (i386_dr_low): Likewise.
4839 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
4840 (i386_dr_low_set_addr): Likewise.
4841 (i386_dr_low_get_addr): Likewise.
4842 (i386_dr_low_can_set_control): Likewise.
4843 (i386_dr_low_set_control): Likewise.
4844 (i386_dr_low_get_control): Likewise.
4845 (i386_dr_low_get_status): Likewise.
4846 (i386_get_debug_register_length): Likewise.
4847 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
4848 (i386_dr_low): Likewise.
4849 * nat/i386-dregs.c (i386-low.h): Remove include.
4850 (i386-nat.h): Likewise.
4851 (nat/i386-dregs.h): New include.
4852 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
4853 (i386_dr_low_set_addr): Likewise.
4854 (i386_dr_low_get_addr): Likewise.
4855 (i386_dr_low_can_set_control): Likewise.
4856 (i386_dr_low_set_control): Likewise.
4857 (i386_dr_low_get_control): Likewise.
4858 (i386_dr_low_get_status): Likewise.
4859 (i386_get_debug_register_length): Likewise.
4860 (debug_hw_points): Likewise.
4861
3ed9baed
IB
48622014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
4863
4864 * Makefile.in (SFILES): Add d-exp.y.
4865 (YYFILES): Add d-exp.c.
4866 (YYOBJ): Add d-exp.o.
4867 (local-maintainer-clean): Delete d-exp.c.
4868 * d-exp.y: New file.
4869 * d-lang.h (d_parse): New declaration.
4870 (d_error): New declaration.
4871 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
4872 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
4873 PREC_ORDER operators.
4874 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
4875
78c164b0
YQ
48762014-06-19 Yao Qi <yao@codesourcery.com>
4877
4878 * gdbthread.h (any_running): Remove the declaration.
4879 * thread.c (any_running): Remove.
4880
f6e29b6e
YQ
48812014-06-19 Yao Qi <yao@codesourcery.com>
4882
4883 * gdbthread.h (struct thread_info) <state>: Change its type to
4884 'enum thread_state'. Update comments.
4885
034f788c
PA
48862014-06-19 Pedro Alves <palves@redhat.com>
4887
4888 * gdbthread.h (ALL_THREADS): Delete.
4889 (ALL_NON_EXITED_THREADS): New macro.
4890 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
4891 instead of ALL_THREADS.
4892 * infrun.c (find_thread_needs_step_over)
4893 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
4894 instead of ALL_THREADS.
4895 * record-btrace.c (record_btrace_open)
4896 (record_btrace_stop_recording, record_btrace_close)
4897 (record_btrace_is_replaying, record_btrace_resume)
4898 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
4899 * remote.c (append_pending_thread_resumptions): Likewise.
4900 * thread.c (thread_apply_all_command): Likewise.
4901
46e33252
GB
49022014-06-19 Gary Benson <gbenson@redhat.com>
4903
4904 * i386-nat.c (i386_stopped_by_watchpoint):
4905 Use i386_dr_stopped_by_watchpoint.
4906 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
4907 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
4908
3a8ee006
GB
49092014-06-19 Gary Benson <gbenson@redhat.com>
4910
4911 * nat/i386-dregs.c: New file.
4912 * Makefile.in (i386-dregs.o): New rule.
4913 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
4914 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
4915 * config/i386/darwin.mh (NATDEPFILES): Likewise.
4916 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
4917 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
4918 * config/i386/go32.mh (NATDEPFILES): Likewise.
4919 * config/i386/linux.mh (NATDEPFILES): Likewise.
4920 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4921 * config/i386/mingw.mh (NATDEPFILES): Likewise.
4922 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
4923 * i386-nat.h (debug_hw_points): New declaration.
4924 * i386-nat.c (breakpoint.h): Remove include.
4925 (command.h): Likewise.
4926 (target.h): Likewise.
4927 (gdb_assert.h): Likewise.
4928 (debug_hw_points): Made nonstatic.
4929 (debug_printf): Now in i386-dregs.c.
4930 (TARGET_HAS_DR_LEN_8): Likewise.
4931 (DR_CONTROL_SHIFT): Likewise.
4932 (DR_CONTROL_SIZE): Likewise.
4933 (DR_RW_EXECUTE): Likewise.
4934 (DR_RW_WRITE): Likewise.
4935 (DR_RW_READ): Likewise.
4936 (DR_RW_IORW): Likewise.
4937 (DR_LEN_1): Likewise.
4938 (DR_LEN_2): Likewise.
4939 (DR_LEN_4): Likewise.
4940 (DR_LEN_8): Likewise.
4941 (DR_LOCAL_ENABLE_SHIFT): Likewise.
4942 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
4943 (DR_ENABLE_SIZE): Likewise.
4944 (DR_LOCAL_SLOWDOWN): Likewise.
4945 (DR_GLOBAL_SLOWDOWN): Likewise.
4946 (DR_CONTROL_RESERVED): Likewise.
4947 (I386_DR_CONTROL_MASK): Likewise.
4948 (I386_DR_VACANT): Likewise.
4949 (I386_DR_LOCAL_ENABLE): Likewise.
4950 (I386_DR_GLOBAL_ENABLE): Likewise.
4951 (I386_DR_DISABLE): Likewise.
4952 (I386_DR_SET_RW_LEN): Likewise.
4953 (I386_DR_GET_RW_LEN): Likewise.
4954 (I386_DR_WATCH_HIT): Likewise.
4955 (i386_wp_op_t): Likewise.
4956 (i386_show_dr): Likewise.
4957 (i386_length_and_rw_bits): Likewise.
4958 (i386_insert_aligned_watchpoint): Likewise.
4959 (i386_remove_aligned_watchpoint): Likewise.
4960 (i386_handle_nonaligned_watchpoint): Likewise.
4961 (i386_update_inferior_debug_regs): Likewise.
4962 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
4963 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
4964 (i386_region_ok_for_watchpoint):
4965 Use i386_dr_region_ok_for_watchpoint.
4966 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
4967
322a8e06
GB
49682014-06-19 Gary Benson <gbenson@redhat.com>
4969
4970 * i386-nat.c (i386_insert_hw_breakpoint): Use
4971 i386_insert_watchpoint.
4972 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
4973
8f26655c
GB
49742014-06-19 Gary Benson <gbenson@redhat.com>
4975
4976 * i386-nat.c (i386_dr_show): Renamed to
4977 i386_show_dr and made static. All uses updated.
4978 (i386_dr_length_and_rw_bits): Renamed to
4979 i386_length_and_rw_bits and made static.
4980 All uses updated.
4981 (i386_dr_insert_aligned_watchpoint): Renamed to
4982 i386_insert_aligned_watchpoint and made static.
4983 All uses updated.
4984 (i386_dr_remove_aligned_watchpoint): Renamed to
4985 i386_remove_aligned_watchpoint and made static.
4986 All uses updated.
4987 (i386_dr_update_inferior_debug_regs): Renamed to
4988 i386_update_inferior_debug_regs and made static.
4989 All uses updated.
4990 * nat/i386-dregs.h (i386_dr_show): Removed.
4991 (i386_dr_length_and_rw_bits): Likewise.
4992 (i386_dr_insert_aligned_watchpoint): Likewise.
4993 (i386_dr_remove_aligned_watchpoint): Likewise.
4994 (i386_dr_update_inferior_debug_regs): Likewise.
4995
992c7d70
GB
49962014-06-19 Gary Benson <gbenson@redhat.com>
4997
4998 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
4999 * configure: Regenerate.
5000 * config.in: Likewise.
5001 * main.c (signal.h): New include.
5002 (setup_alternate_signal_stack): New function.
5003 (captured_main): Call the above.
5004 * cp-support.c (signal.h): New include.
5005 (catch_demangler_crashes): New flag.
5006 (SIGJMP_BUF): New define.
5007 (SIGSETJMP): Likewise.
5008 (SIGLONGJMP): Likewise.
5009 (gdb_demangle_jmp_buf): New static global.
5010 (gdb_demangle_attempt_core_dump): Likewise.
5011 (gdb_demangle_signal_handler): New function.
5012 (gdb_demangle): If catch_demangler_crashes is set, install the
5013 above signal handler before calling bfd_demangle, and restore
5014 the original signal handler afterwards. Display the offending
5015 symbol and call demangler_warning the first time a segmentation
5016 fault is caught.
5017 (_initialize_cp_support): New maint set/show command.
5018
eae7090b
GB
50192014-06-19 Gary Benson <gbenson@redhat.com>
5020
5021 * utils.h (resource_limit_kind): New enum.
5022 (can_dump_core): New declaration.
5023 (warn_cant_dump_core): Likewise.
5024 (dump_core): Likewise.
5025 * utils.c (dump_core): Made nonstatic. Added new
5026 parameter "limit_kind".
5027 (can_dump_core): Made nonstatic. Moved printing code to...
5028 (warn_cant_dump_core): New function.
5029 (can_dump_core_warn): Likewise.
5030 (internal_vproblem): Replace calls to can_dump_core with
5031 calls to can_dump_core_warn. Supply new argument to each.
5032
57fcfb1b
GB
50332014-06-19 Gary Benson <gbenson@redhat.com>
5034
5035 * utils.h (demangler_vwarning): New declaration.
5036 (demangler_warning): Likewise.
5037 * utils.c (struct internal_problem)
5038 <user_settable_should_quit>: New field.
5039 <user_settable_should_dump_core>: Likewise
5040 (internal_error_problem): Add values for above new fields.
5041 (internal_warning_problem): Likewise.
5042 (demangler_warning_problem): New static global.
5043 (demangler_vwarning): New function.
5044 (demangler_warning): Likewise.
5045 (add_internal_problem_command): Selectively add commands.
5046 (_initialize_utils): New internal problem command.
5047 * maint.c (maintenance_demangler_warning): New function.
5048 (_initialize_maint_cmds): New command.
5049
17a40b44
TT
50502014-06-18 Tom Tromey <tromey@redhat.com>
5051
5052 * f-valprint.c (info_common_command_for_block): Update.
5053 * symtab.h (struct general_symbol_info) <common_block>: Now
5054 const.
5055
346d1dfe
TT
50562014-06-18 Tom Tromey <tromey@redhat.com>
5057
5058 * symtab.h (struct symtab) <blockvector>: Now const.
5059 * ada-lang.c (ada_add_global_exceptions): Update.
5060 * buildsym.c (augment_type_symtab): Update.
5061 * dwarf2read.c (dw2_lookup_symbol): Update.
5062 * jit.c (finalize_symtab): Update.
5063 * jv-lang.c (add_class_symtab_symbol): Update.
5064 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
5065 Update.
5066 * objfiles.c (objfile_relocate1): Update.
5067 * psymtab.c (lookup_symbol_aux_psymtabs)
5068 (maintenance_check_psymtabs): Update.
5069 * python/py-symtab.c (stpy_global_block, stpy_static_block):
5070 Update.
5071 * spu-tdep.c (spu_catch_start): Update.
5072 * symmisc.c (dump_symtab_1): Update.
5073 * symtab.c (lookup_global_symbol_from_objfile)
5074 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
5075 (basic_lookup_transparent_type_quick)
5076 (basic_lookup_transparent_type, find_pc_sect_symtab)
5077 (find_pc_sect_line, search_symbols): Update.
5078 * block.c (find_block_in_blockvector): Make "bl" const.
5079 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
5080 const.
5081 (blockvector_contains_pc): Make "bv" const.
5082 (block_for_pc_sect): Update.
5083 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
5084 (blockvector_contains_pc): Update.
5085 * breakpoint.c (resolve_sal_pc): Update.
5086 * inline-frame.c (block_starting_point_at): Update.
5087
1834676b
TT
50882014-06-18 Tom Tromey <tromey@redhat.com>
5089
5090 * completer.c (complete_line): Make "line_buffer" const.
5091 * completer.h (complete_line): Update.
5092
ac1a991b
TT
50932014-06-18 Tom Tromey <tromey@redhat.com>
5094
5095 * symtab.c (add_macro_name): Remove unneeded cast.
5096
5bc98e52
TT
50972014-06-18 Tom Tromey <tromey@redhat.com>
5098
5099 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
5100 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
5101
8236def8
TT
51022014-06-18 Tom Tromey <tromey@redhat.com>
5103
5104 * probe.c (info_probes_for_ops): Make "arg" const.
5105 * probe.h (info_probes_for_ops): Update.
5106
3977b71f
TT
51072014-06-18 Tom Tromey <tromey@redhat.com>
5108
5109 * varobj.c (varobj_create): Update.
5110 * valops.c (value_of_this): Update.
5111 * tracepoint.c (add_local_symbols, scope_info): Update.
5112 * symtab.h (struct general_symbol_info) <block>: Now const.
5113 * symtab.c (skip_prologue_sal)
5114 (default_make_symbol_completion_list_break_on)
5115 (skip_prologue_using_sal): Update.
5116 * stack.h (iterate_over_block_locals)
5117 (iterate_over_block_local_vars): Update.
5118 * stack.c (print_frame_args): Update.
5119 (iterate_over_block_locals, iterate_over_block_local_vars): Make
5120 parameter const.
5121 (get_selected_block): Make return type const.
5122 * python/py-frame.c (frapy_block): Update.
5123 * python/py-block.c (gdbpy_block_for_pc): Update.
5124 * p-exp.y (%union) <bval>: Now const.
5125 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
5126 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
5127 * m2-exp.y (%union) <bval>: Now const.
5128 * linespec.c (get_current_search_block): Make return type const.
5129 (create_sals_line_offset, find_label_symbols): Update.
5130 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
5131 Update.
5132 (block_starting_point_at): Make "block" const.
5133 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
5134 (check_exception_resume): Update.
5135 * guile/scm-frame.c (gdbscm_frame_block): Update.
5136 * guile/scm-block.c (gdbscm_lookup_block): Update.
5137 * frame.h (get_frame_block): Update.
5138 (get_selected_block): Make return type const.
5139 * frame.c (frame_id_inner): Update.
5140 * f-valprint.c (info_common_command_for_block)
5141 (info_common_command): Update.
5142 * dwarf2loc.c (dwarf2_find_location_expression)
5143 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
5144 (locexpr_describe_location_piece): Update.
5145 * c-exp.y (%union) <bval>: Now const.
5146 * breakpoint.c (resolve_sal_pc): Update.
5147 * blockframe.c (get_frame_block):Make return type const.
5148 (get_pc_function_start, get_frame_function, find_pc_sect_function)
5149 (block_innermost_frame): Update.
5150 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
5151 (block_for_pc, block_for_pc_sect): Update.
5152 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
5153 'pblock' const.
5154 (block_for_pc_sect, block_for_pc): Make return type const.
5155 * ax-gdb.c (gen_expr): Update.
5156 * alpha-mdebug-tdep.c (find_proc_desc): Update.
5157 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
5158 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
5159 (ada_read_var_value): Update.
5160 * ada-exp.y (struct name_info) <block>: Now const.
5161 (%union): Likewise.
5162 (block_lookup): Constify.
5163
b9228891
GB
51642014-06-18 Gary Benson <gbenson@redhat.com>
5165
5166 * nat/i386-dregs.h: New file.
5167 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
5168 * i386-nat.h (i386-dregs.h): New include.
5169 (DR_FIRSTADDR): Now in i386-dregs.h.
5170 (DR_LASTADDR): Likewise.
5171 (DR_NADDR): Likewise.
5172 (DR_STATUS): Likewise.
5173 (DR_CONTROL): Likewise.
5174 (i386_debug_reg_state): Likewise.
5175 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
5176
a1aa2221
LM
51772014-06-18 Don Breazeal <donb@codesourcery.com>
5178
5179 * breakpoint.c (set_longjmp_breakpoint): Call
5180 momentary_breakpoint_from_master with additional argument.
5181 (set_longjmp_breakpoint_for_call_dummy): Call
5182 momentary_breakpoint_from_master with additional argument.
5183 (set_std_terminate_breakpoint): Call
5184 momentary_breakpoint_from_master with additional argument.
5185 (momentary_breakpoint_from_master): Add argument to function
5186 definition and use it to initialize structure member flag.
74228e77 5187 (clone_momentary_breakpoint): Call
a1aa2221
LM
5188 momentary_breakpoint_from_master with additional argument.
5189 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
5190 member flags set in momentary_breakpoint_from_master.
5191
4be83cc2
GB
51922014-06-18 Gary Benson <gbenson@redhat.com>
5193
5194 * i386-nat.c (i386_show_dr): Renamed to
5195 i386_dr_show and made nonstatic. All uses updated.
5196 (i386_length_and_rw_bits): Renamed to
5197 i386_dr_length_and_rw_bits and made nonstatic.
5198 All uses updated.
5199 (i386_insert_aligned_watchpoint): Renamed to
5200 i386_dr_insert_aligned_watchpoint and made nonstatic.
5201 All uses updated.
5202 (i386_remove_aligned_watchpoint): Renamed to
5203 i386_dr_remove_aligned_watchpoint and made nonstatic.
5204 All uses updated.
5205 (i386_update_inferior_debug_regs): Renamed to
5206 i386_dr_update_inferior_debug_regs and made nonstatic.
5207 All uses updated.
5208
131aa0d4
GB
52092014-06-18 Gary Benson <gbenson@redhat.com>
5210
5211 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
5212 (i386_dr_low_can_set_control): Likewise.
5213 (i386_dr_low_set_addr): Likewise.
5214 (i386_dr_low_set_control): Likewise.
5215 (i386_dr_low_get_addr): Likewise.
5216 (i386_dr_low_get_status): Likewise.
5217 (i386_dr_low_get_control): Likewise.
5218 (i386_insert_aligned_watchpoint): Use new macros.
5219 (i386_update_inferior_debug_regs): Likewise.
5220 (i386_stopped_data_address): Likewise.
5221
d9305f7f
GB
52222014-06-18 Gary Benson <gbenson@redhat.com>
5223
5224 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
5225 New parameter. All uses updated.
5226
ea008da4
GB
52272014-06-18 Gary Benson <gbenson@redhat.com>
5228
5229 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
5230 All uses updated.
5231
1b6d4134
GB
52322014-06-18 Gary Benson <gbenson@redhat.com>
5233
5234 * i386-nat.c (debug_printf): New macro.
5235 (i386_get_debug_register_length): Likewise.
5236 (TARGET_HAS_DR_LEN_8): Use above macro.
5237 (i386_show_dr): Use debug_printf instead of puts_unfiltered
5238 and printf_unfiltered. Use phex to format values.
5239
9b4550ef
GB
52402014-06-18 Gary Benson <gbenson@redhat.com>
5241
5242 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
5243 Make const.
5244
6e62758f
GB
52452014-06-18 Gary Benson <gbenson@redhat.com>
5246
5247 * i386-nat.c: Comment changes.
5248
51c79e94
GB
52492014-06-18 Gary Benson <gbenson@redhat.com>
5250
5251 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
5252
3e11889a
GB
52532014-06-18 Gary Benson <gbenson@redhat.com>
5254
5255 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
5256 (i386_insert_aligned_watchpoint): Likewise.
5257 (i386_remove_aligned_watchpoint): Likewise.
5258 (i386_handle_nonaligned_watchpoint): Likewise.
5259
fc6e2f03
GB
52602014-06-18 Gary Benson <gbenson@redhat.com>
5261
5262 * i386-nat.c: Whitespace changes.
5263
2afe7d50
SB
52642014-06-17 Samuel Bronson <naesten@gmail.com>
5265
5266 * MAINTAINERS: Update Roland McGrath's email address.
5267 Thanks to Sergio Durigan Junior for pointing out that he left
6a83deea 5268 Red Hat a while ago, and giving me a current address.
2afe7d50 5269
3bca49ee
TT
52702014-06-17 Tom Tromey <tromey@redhat.com>
5271
5272 * utils.h (savestring): Remove declaration.
5273
6e366df1
TT
52742014-06-17 Tom Tromey <tromey@redhat.com>
5275
5276 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
5277
6be47f0c
KS
52782014-06-16 Keith Seitz <keiths@redhat.com>
5279
5280 PR mi/15863
5281 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
5282 to update the varobj if inferior_ptid is null_ptid.
5283
7bc112c1
TT
52842014-06-16 Tom Tromey <tromey@redhat.com>
5285
5286 * target.h (struct target_ops) <to_info_proc>: Make parameter
5287 const.
5288 (target_info_proc): Update.
5289 * target.c (target_info_proc): Make "args" const.
5290 * procfs.c (procfs_info_proc): Update.
5291 * linux-tdep.c (linux_info_proc): Update.
5292 (linux_core_info_proc_mappings): Make "args" const.
5293 (linux_core_info_proc): Update.
5294 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
5295 * gdbarch.c: Rebuild.
5296 * gdbarch.h: Rebuild.
5297 * corelow.c (core_info_proc): Update.
5298
fee354ee
TT
52992014-06-16 Tom Tromey <tromey@redhat.com>
5300
5301 * target.h (struct target_ops) <to_disconnect>: Make parameter
5302 const.
5303 (target_disconnect): Update.
5304 * target.c (target_disconnect): Make "args" const.
5305 * target-delegates.c: Rebuild.
5306 * remote.c (remote_disconnect): Update.
5307 * record.h (record_disconnect): Update.
5308 * record.c (record_disconnect): Update.
5309 * inf-child.c (inf_child_disconnect): Update.
5310
a30bf1f1
TT
53112014-06-16 Tom Tromey <tromey@redhat.com>
5312
5313 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
5314 * target.c (debug_to_rcmd, default_rcmd): Update.
5315 * target-delegates.c: Rebuild.
5316 * remote.c (remote_rcmd): Update.
5317 * monitor.c (monitor_rcmd): Update.
5318
d03de421
PA
53192014-06-16 Pedro Alves <palves@redhat.com>
5320
5321 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
5322 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
5323 have OBJF_SHARED set.
5324 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
5325 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
5326 instead of OBJF_USERLOADED.
5327 * objfiles.h (OBJF_SHARED): Update comment.
5328 (userloaded_objfile_contains_address_p): Rename to ...
5329 (shared_objfile_contains_address_p): ... this, and update
5330 comments.
5331 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
5332 new objfile.
5333 (remove_symbol_file_command): Skip objfiles that don't have
5334 OBJF_SHARED set.
5335
99f4262f
TT
53362014-06-16 Tom Tromey <tromey@redhat.com>
5337
5338 * minsyms.h (prim_record_minimal_symbol)
5339 (prim_record_minimal_symbol_and_info): Update comments.
5340
97d66cc6
EZ
53412014-06-14 Eli Zaretskii <eliz@gnu.org>
5342
5343 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
5344 or --without-guile, according to how GDB was built.
5345
635c7e8a
TT
53462014-06-13 Tom Tromey <tromey@redhat.com>
5347
5348 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
5349 to help_list.
5350 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
5351 to help_list.
5352 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
5353 help_list.
5354 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
5355 help_list.Pass all_commands, not -1, to help_list.
5356 * cli/cli-dump.c (dump_command, append_command)
5357 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
5358 (binary_dump_command, binary_append_command): Pass all_commands,
5359 not -1, to help_list.
5360 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
5361 -1, to help_list.
5362 * valprint.c (set_print, set_print_raw): Pass all_commands, not
5363 -1, to help_list.
5364 * typeprint.c (set_print_type): Pass all_commands, not -1, to
5365 help_list.
5366 * top.c (set_history): Pass all_commands, not -1, to help_list.
5367 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
5368 all_commands, not -1, to help_list.
5369 * symfile.c (overlay_command): Pass all_commands, not -1, to
5370 help_list.
5371 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
5372 help_list.
5373 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
5374 help_list.
5375 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
5376 -1, to help_list.
5377 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
5378 not -1, to help_list.
5379 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
5380 not -1, to help_list.
5381 * maint.c (maintenance_command, maintenance_info_command)
5382 (maintenance_print_command, maintenance_set_cmd): Pass
5383 all_commands, not -1, to help_list.
5384 * macrocmd.c (macro_command): Pass all_commands, not -1, to
5385 help_list.
5386 * language.c (set_check): Pass all_commands, not -1, to help_list.
5387 * infcmd.c (unset_command): Pass all_commands, not -1, to
5388 help_list.
5389 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
5390 help_list.
5391 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
5392 help_list.
5393 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
5394 help_list.
5395 * breakpoint.c (save_command): Pass all_commands, not -1, to
5396 help_list.
5397 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
5398 all_commands, not -1, to help_list.
5399
b94ade42
PL
54002014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
5401
5402 * regcache.c (struct register_to_invalidate): New structure.
5403 (do_register_invalidate, make_cleanup_regcache_invalidate): New
5404 functions.
5405 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
5406
31f628ae
YQ
54072014-06-12 Yao Qi <yao@codesourcery.com>
5408
5409 * varobj.c (varobj_get_num_children): Call
5410 varobj_is_dynamic_p.
5411 (varobj_list_children): Likewise.
5412 (varobj_update): Likewise. Update comments.
5413
cde5ef40
YQ
54142014-06-12 Yao Qi <yao@codesourcery.com>
5415
5416 * varobj.c (varobj_pretty_printed_p): Rename to ...
5417 (varobj_is_dynamic_p): ... this. New function.
5418 * varobj.h (varobj_pretty_printed_p): Remove declaration.
5419 (varobj_is_dynamic_p): Declare.
5420 * mi/mi-cmd-var.c (print_varobj): All callers updated.
5421 (mi_print_value_p, varobj_update_one): Likewise.
5422
576ea091
YQ
54232014-06-12 Pedro Alves <pedro@codesourcery.com>
5424 Yao Qi <yao@codesourcery.com>
5425
5426 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
5427 (varobj_get_iterator): Wrap up code for pretty-printer by
5428 "#if HAVE_PYTHON" and "#endif".
5429 (update_dynamic_varobj_children): Likewise.
5430
827f100c
YQ
54312014-06-12 Pedro Alves <pedro@codesourcery.com>
5432 Yao Qi <yao@codesourcery.com>
5433
5434 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
5435 gdb_python_initialized is false. Move some code from varobj.c.
5436 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
5437 * varobj.c: Move "varobj-iter.h" inclusion earlier.
5438 (struct varobj_item): Moved to varobj-iter.h".
5439 (varobj_clear_saved_item): New function.
5440 (update_dynamic_varobj_children): Move python-related code to
5441 py-varobj.c.
5442 (free_variable): Call varobj_clear_saved_item and
5443 varobj_iter_delete.
5444
e5250216
YQ
54452014-06-12 Pedro Alves <pedro@codesourcery.com>
5446 Yao Qi <yao@codesourcery.com>
5447
5448 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
5449 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
5450 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
5451 (py-varobj.o): New rule.
5452 * python/py-varobj.c: New file.
5453 * python/python-internal.h (py_varobj_get_iterator): Declare.
5454 * varobj-iter.h: New file.
5455 * varobj.c: Include "varobj-iter.h"
5456 (struct varobj) <child_iter>: Change its type from "PyObject *"
5457 to "struct varobj_iter *".
5458 <saved_item>: Likewise.
5459 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
5460 [HAVE_PYTHON] (varobj_get_iterator): New function.
5461 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
5462 python-specific code to python/py-varobj.c.
5463 (install_visualizer): Call varobj_iter_delete instead of
5464 Py_XDECREF.
5465 * varobj.h (varobj_ensure_python_env): Declare.
5466
5a2e0d6e
YQ
54672014-06-12 Yao Qi <yao@codesourcery.com>
5468
5469 * varobj.c (struct varobj_item): New structure.
5470 (create_child_with_value): Update declaration.
5471 (varobj_add_child): Replace arguments 'name' and 'value' with
5472 'item'. All callers updated.
5473 (install_dynamic_child): Likewise.
5474 (update_dynamic_varobj_children): Likewise.
5475 (varobj_add_child): Likewise.
5476 (create_child_with_value): Likewise.
5477
919b9a93
JB
54782014-06-11 Joel Brobecker <brobecker@adacore.com>
5479
5480 * NEWS: Create a new section for the next release branch.
5481 Rename the section of the current branch, now that it has
5482 been cut.
5483
71a55bdf
JB
54842014-06-11 Joel Brobecker <brobecker@adacore.com>
5485
5486 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
5487 * version.in: Bump version to 7.8.50.DATE-cvs.
5488
364fe1f7
PA
54892014-06-11 Pedro Alves <palves@redhat.com>
5490
5491 PR remote/17028
5492 * ser-mingw.c (net_windows_socket_check_pending): New function.
5493 (net_windows_select_thread): Ignore spurious wakeups. Use
5494 net_windows_socket_check_pending.
5495 (net_windows_wait_handle): Check for pending events with
5496 ioctlsocket, through net_windows_socket_check_pending, instead of
5497 checking the socket's event.
5498
5a6c7709
SC
54992014-06-10 Siva Chandra Reddy <sivachandra@google.com>
5500
5501 * python/python-internal.h (gdb_PyObject_GetAttrString)
5502 (gdb_PyObject_HasAttrString): New inline function definitions.
5503 * py-value.c (get_field_flag): Remove the now unnecessary cast to
5504 char * of the second argument to PyObject_GetAttrString.
74228e77 5505
0e58ee40
JB
55062014-06-10 Joel Brobecker <brobecker@adacore.com>
5507
5508 * serial.c (serial_write): Fix index of character to be printed
5509 in call to serial_logchar when serial debug traces are enabled.
5510
d190df30
JB
55112014-06-10 Joel Brobecker <brobecker@adacore.com>
5512
5513 * gdbtypes (resolve_dynamic_range): Add function description.
5514
b4b01d36
PA
55152014-06-09 Pedro Alves <palves@redhat.com>
5516
5517 * linux-nat.c (linux_child_follow_fork): Initialize status with
5518 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
5519 inner block. Only pass the signal to PTRACE_DETACH if in pass
5520 state.
5521
3657956b
GB
55222014-06-09 Gary Benson <gbenson@redhat.com>
5523
5524 * common/signals.c (gdb_signal_from_host): Reorder to separate
5525 the always-available ANSI-standard signals from the signals that
5526 require checking.
5527 (do_gdb_signal_to_host): Likewise.
5528 * proc-events.c (signal_table): Likewise.
5529
c077881a
HZ
55302014-06-08 Hui Zhu <hui@codesourcery.com>
5531
5532 * common/linux-ptrace.c (linux_disable_event_reporting): New
5533 function.
5534 * common/linux-ptrace.h (linux_disable_event_reporting): New
5535 declaration.
5536 * linux-nat.c (linux_child_follow_fork): Do a single step before
5537 detach.
5538
4186eb54
KS
55392014-06-07 Keith Seitz <keiths@redhat.com>
5540
5541 Revert:
5542 PR c++/16253
5543 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5544 from symbol_matches_domain in symtab.c. All local callers
5545 of symbol_matches_domain updated.
5546 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5547 search STRUCT_DOMAIN.
5548 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5549 independently. standard_lookup will do that automatically.
5550 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5551 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5552 (cp_lookup_symbol_in_namespace): Likewise.
5553 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5554 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5555 may return a STRUCT_DOMAIN match.
5556 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5557 * cp-support.c: Include language.h.
5558 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5559 VAR_DOMAIN.
5560 * psymtab.c (match_partial_symbol): Compare the requested
5561 domain with the symbol's domain directly.
5562 (lookup_partial_symbol): Likewise.
5563 * symtab.c (lookup_symbol_in_language): Explain when/why
5564 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5565 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5566 appropriate languages.
5567 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5568 and moved to ada-lang.c
5569 (lookup_block_symbol): Explain that this function only returns
5570 symbol matching the requested DOMAIN.
5571 Compare the requested domain with the symbol's domain directly.
5572 (iterate_over_symbols): Compare the requested domain with the
5573 symbol's domain directly.
5574 * symtab.h (symbol_matches_domain): Remove.
5575
25326a28 55762014-06-06 Doug Evans <xdje42@gmail.com>
d2929fdc
DE
5577
5578 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
5579 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
5580 (gdbscm_guile_version_is_at_least): Declare.
5581 (gdbscm_scm_string_to_int): Declare.
5582 * guile/guile.c (gdbscm_guile_major_version): New global.
5583 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
5584 (guile_datadir): New static global.
5585 (gdbscm_guile_data_directory): New function.
5586 (initialize_scheme_side): Update.
5587 (misc_guile_functions): Add guile-data-directory.
5588 (initialize_gdb_module): Fetch guile version number.
5589 * guile/lib/gdb.scm: Remove call to add-to-load-path.
5590 * guile/lib/gdb/init.scm (%initialize!): Ditto.
5591 * guile/lib/gdb/boot.scm: Use guile-data-directory.
5592 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
5593 comments.
5594 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
5595 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
5596 * guile/scm-value.c (gdbscm_value_to_string): Only call
5597 scm_port_conversion_strategy if Guile version >= 2.0.6.
5598
0a770bb2 55992014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
5600
5601 * main.c (print_gdb_help): Add -q and --silent.
5602
73ba372c
GB
56032014-06-06 Gary Benson <gbenson@redhat.com>
5604
5605 * common/signals.c: Remove preprocessor conditionals for
5606 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
5607 SIGSEGV and SIGTERM.
5608 * proc-events.c: Likewise.
5609
c33b2f12
MM
56102014-06-06 Markus Metzger <markus.t.metzger@intel.com>
5611
5612 * symfile.c (symfile_free_objfile): Remove restriction to
5613 OBJF_USERLOADED.
5614 * symfile-mem.c (symbol_file_add_from_memory): Call
5615 add_target_sections_of_objfile.
5616
fb934770
LC
56172014-06-05 Ludovic Courtès <ludo@gnu.org>
5618
5619 * guile/scm-value.c (gdbscm_history_append_x): Use
5620 'vlscm_get_value_smob_arg_unsafe' instead of
5621 'vlscm_scm_to_value'.
5622
6ef284bd
SM
56232014-06-05 Simon Marchi <simon.marchi@ericsson.com>
5624
5625 PR mi/15806
5626 * utils.c (printchar): Don't escape at all if quoter is NUL.
5627 Update function documentation to clarify effect of parameter
5628 QUOTER.
5629 * remote.c (escape_buffer): Pass '\\' as the quoter to
5630 fputstrn_unfiltered.
5631 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
5632 generate the output.
5633 (mi_solib_unloaded): Same.
5634
270c9937
JB
56352014-06-05 Joel Brobecker <brobecker@adacore.com>
5636
5637 * development.sh: Delete.
5638 * Makefile.in (config.status): Adjust dependency on development.sh.
5639 * configure.ac: Adjust development.sh source call.
5640 * configure: Regenerate.
5641
16f691fb
DE
56422014-06-04 Doug Evans <xdje42@gmail.com>
5643
5644 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
5645 is_scheme_bkpt, spec.
5646 (bpscm_make_breakpoint_smob): Initialize new members.
5647 (gdbscm_create_breakpoint_x): Split into two ...
5648 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
5649 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
5650 (scheme_function breakpoint_functions): Update.
5651 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
5652 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
5653 register-breakpoint!.
5654
ef7cab6b
JB
56552014-06-04 Joel Brobecker <brobecker@adacorer.com>
5656
5657 PR server/17023
5658 * mem-break.c (z_type_supported): Return zero if
5659 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
5660
012370f6
TT
56612014-06-04 Tom Tromey <tromey@redhat.com>
5662
5663 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
5664 value_from_contents_and_address_unresolved.
5665 (ada_template_to_fixed_record_type_1): Likewise.
5666 (ada_which_variant_applies): Likewise.
5667 * value.h (value_from_contents_and_address_unresolved): Declare.
5668 * value.c (value_from_contents_and_address_unresolved): New
5669 function.
5670 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
5671 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
5672 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
5673
92e2a17f
TT
56742014-06-04 Tom Tromey <tromey@redhat.com>
5675
5676 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
5677
c0939df1
TT
56782014-06-04 Tom Tromey <tromey@redhat.com>
5679
5680 * procfs.c (procfs_attach): Make "args" const.
5681 * windows-nat.c (windows_attach): Make "args" const.
5682 * nto-procfs.c (procfs_attach): Make "args" const.
5683 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
5684 * go32-nat.c (go32_attach): Make "args" const.
5685 * gnu-nat.c (gnu_attach): Make "args" const.
5686 * darwin-nat.c (darwin_attach): Make "args" const.
5687 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
5688 * linux-nat.c (linux_nat_attach): Make "args" const.
5689 * remote.c (extended_remote_attach_1, extended_remote_attach):
5690 Make "args" const.
5691 * target.h (struct target_ops) <to_attach>: Make "args" const.
5692 (find_default_attach): Likewise.
5693 * utils.c (parse_pid_to_attach): Make "args" const.
5694 * utils.h (parse_pid_to_attach): Update.
5695
8eaff7cd
TT
56962014-06-04 Tom Tromey <tromey@redhat.com>
5697
5698 * target-delegates.c: Rebuild.
5699 * target.c (default_thread_address_space): New function.
5700 (target_thread_address_space): Simplify.
5701 * target.h (struct target_ops) <to_thread_address_space>: Add
5702 TARGET_DEFAULT_FUNC.
5703
1913f160
DE
57042014-06-04 Doug Evans <xdje42@gmail.com>
5705
5706 * guile/scm-type.c (type_smob): Remove duplicate typedef.
5707
70ad5bff
MM
57082014-06-04 Markus Metzger <markus.t.metzger@intel.com>
5709
5710 * record-btrace.c: Include event-loop.h and inf-loop.h.
5711 (record_btrace_resume_exec_dir)
5712 (record_btrace_async_inferior_event_handler)
5713 (record_btrace_handle_async_inferior_event): New.
5714 (record_btrace_open): Create async event handler.
5715 (record_btrace_close): Delete async event handler.
5716 (record_btrace_resume): Set record_btrace_resume_exec_dir,
5717 Mark async event handler.
5718 (record_btrace_execution_direction): New.
5719 (init_record_btrace_ops): Initialize to_execution_direction.
5720
b6210538
DE
57212014-06-03 Doug Evans <xdje42@gmail.com>
5722
5723 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
5724 (gdbscm_make_parameter): Ditto.
5725
a5b1fd27
DE
57262014-06-03 Doug Evans <dje@google.com>
5727
5728 * exec.c (exec_close_1): Call clear_section_table instead of
5729 resize_section_table.
5730 (clear_section_table): New function.
5731 (resize_section_table): Make static. Rename arg num_added to
5732 adjustment.
5733 * exec.h (clear_section_table): Declare.
5734 (resize_section_table): Delete.
5735 * progspace.c (release_program_space): Call clear_section_table
5736 instead of resize_section_table.
5737
0c6e92a5
SC
57382014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5739
5740 * NEWS (Python Scripting): Add entry about the new xmethods
5741 feature.
5742
883964a7
SC
57432014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5744
5745 * python/py-xmethods.c: New file.
5746 * python/py-objfile.c (objfile_object): New field 'xmethods'.
5747 (objfpy_dealloc): XDECREF on the new xmethods field.
5748 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
5749 field.
5750 (objfpy_get_xmethods): New function.
5751 (objfile_getset): New entry 'xmethods'.
5752 * python/py-progspace.c (pspace_object): New field 'xmethods'.
5753 (pspy_dealloc): XDECREF on the new xmethods field.
5754 (pspy_new, pspace_to_pspace_object): Initialize xmethods
5755 field.
5756 (pspy_get_xmethods): New function.
5757 (pspace_getset): New entry 'xmethods'.
5758 * python/python-internal.h: Add declarations for new functions.
5759 * python/python.c (_initialize_python): Invoke
5760 gdbpy_initialize_xmethods.
5761 * python/lib/gdb/__init__.py (xmethods): New
5762 attribute.
5763 * python/lib/gdb/xmethod.py: New file.
5764 * python/lib/gdb/command/xmethods.py: New file.
5765
58992dc5
SC
57662014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5767
5768 * eval.c (evaluate_subexp_standard): Call the xmethod if the
5769 best match method returned by find_overload_match is an xmethod.
5770 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
5771 the best matching operator returned by find_overload_match is an
5772 xmethod.
5773 * valops.c: #include "extension.h".
5774 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
5775 Return void. The list of matching source methods is returned in
5776 "fn_list" and a vector of matching debug method workers is
5777 returned in "xm_worker_vec". Update all callers.
5778 (value_find_oload_method_list): Likewise.
5779 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
5780 non-NULL, then the index of the best matching method in this
5781 vector is returned. Update all callers.
5782 (find_overload_match): Include xmethods while performing overload
5783 resolution.
5784
e81e7f5e
SC
57852014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5786
5787 * defs.h (enum lval_type): New enumerator "lval_xcallable".
5788 * extension-priv.h (struct extension_language_ops): Add the
5789 xmethod interface.
5790 * extension.c (new_xmethod_worker, clone_xmethod_worker,
5791 get_matching_xmethod_workers, get_xmethod_argtypes,
5792 invoke_xmethod, free_xmethod_worker,
5793 free_xmethod_worker_vec): New functions.
5794 * extension.h: #include "common/vec.h".
5795 New function declarations.
5796 (struct xmethod_worker): New struct.
5797 (VEC (xmethod_worker_ptr)): New vector type.
5798 (xmethod_worker_ptr): New typedef.
5799 (xmethod_worker_vec): Likewise.
5800 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
5801 builtin_type.
5802 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
5803 (struct builtin_type): New field "xmethod".
5804 * valarith.c (value_ptradd): Assert that the value argument is not
5805 lval_xcallable.
5806 * valops.c (value_must_coerce_to_target): Return 0 for
5807 lval_xcallable values.
5808 * value.c (struct value): New field XM_WORKER in the field
5809 LOCATION.
5810 (value_address, value_raw_address): Return 0 for lval_xcallable
5811 values.
5812 (set_value_address): Assert that the value is not an
5813 lval_xcallable.
5814 (value_free): Free the associated xmethod worker when freeing
5815 lval_xcallable values.
5816 (set_value_component_location): Assert that the WHOLE value is not
5817 lval_xcallable.
5818 (value_of_xmethod, call_xmethod): New functions.
5819 * value.h: Declare "struct xmethod_worker".
5820 Declare new functions value_of_xmethod, call_xmethod.
5821
ef370185
JB
58222014-06-03 Joel Brobecker <brobecker@adacore.com>
5823 Pedro Alves <palves@redhat.com>
5824
5825 PR breakpoints/17000
5826 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
5827 New function, extracted from software_breakpoint_inserted_here_p.
5828 (software_breakpoint_inserted_here_p): Replace factored out code
5829 by call to find_non_raw_software_breakpoint_inserted_here.
5830 (bp_target_info_copy_insertion_state): New function.
5831 (bkpt_insert_location): Handle the case of a single-step
5832 breakpoint already inserted at the same address.
5833 (bkpt_remove_location): Handle the case of a single-step
5834 breakpoint still inserted at the same address.
5835 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
5836 breakpoint already inserted at the same address.
5837 (deprecated_remove_raw_breakpoint): Handle the case of a
5838 non-raw breakpoint still inserted at the same address.
5839 (find_single_step_breakpoint): New function, extracted from
5840 single_step_breakpoint_inserted_here_p.
5841 (find_single_step_breakpoint): New function,
5842 factored out from single_step_breakpoint_inserted_here_p.
5843 (single_step_breakpoint_inserted_here_p): Reimplement.
5844
1e2ccb61
BM
58452014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
5846
5847 Pushed by Joel Brobecker <brobecker@adacore.com>
5848 * source.c (show_substitute_path_command): Fix display of matching
5849 substitution rules.
5850
d3448d85
GB
58512014-06-03 Gary Benson <gbenson@redhat.com>
5852
5853 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
5854
06eb1586
DE
58552014-06-02 Doug Evans <xdje42@gmail.com>
5856
5857 Add parameter support for Guile.
5858 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
5859 (SUBDIR_GUILE_SRCS): Add scm-param.c.
5860 (scm-param.o): New rule.
5861 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
5862 (gdbscm_misc_error): Declare.
5863 (gdbscm_canonicalize_command_name): Declare.
5864 (gdbscm_scm_to_host_string): Declare.
5865 (gdbscm_scm_from_host_string): Declare.
5866 (gdbscm_initialize_parameters): Declare.
5867 * guile/guile.c (initialize_gdb_module): Call
5868 gdbscm_initialize_parameters.
5869 * guile/lib/gdb.scm: Export parameter symbols.
5870 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
5871 cmdscm_canonicalize_name and made public. All callers updated.
5872 * guile/scm-exception.c (gdbscm_misc_error): New function.
5873 * guile/scm-param.c: New file.
5874 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
5875 (gdbscm_scm_to_host_string): New function.
5876 (gdbscm_scm_from_host_string): New function.
5877 * scm-utils.c (gdbscm_gc_dup_argv): New function.
5878
e698b8c4
DE
58792014-06-02 Doug Evans <xdje42@gmail.com>
5880
5881 Add command support for Guile.
5882 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
5883 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
5884 (scm-cmd.o): New rule.
5885 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
5886 (gdbscm_user_error_p): Declare.
5887 (gdbscm_parse_command_name): Declare.
5888 (gdbscm_valid_command_class_p): Declare.
5889 (gdbscm_initialize_commands): Declare.
5890 * guile/guile.c (initialize_gdb_module): Call
5891 gdbscm_initialize_commands.
5892 * guile/lib/gdb.scm: Export command symbols.
5893 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
5894 (throw-user-error): New function.
5895 * guile/scm-cmd.c: New file.
5896 * guile/scm-exception.c (user_error_symbol): New static global.
5897 (gdbscm_user_error_p): New function.
5898 (gdbscm_initialize_exceptions): Set user_error_symbol.
5899 * scm-utils.c (gdbscm_gc_xstrdup): New function.
5900
fb1f94b0
PM
59012014-06-02 Phil Muldoon <pmuldoon@redhat.com>
5902
5903 * top.c (command_loop): Handle comments here...
5904 (command_line_input): ... not here.
5905
ded03782
DE
59062014-06-02 Doug Evans <xdje42@gmail.com>
5907
5908 Add progspace support for Guile.
5909 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
5910 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
5911 (scm-progspace.o): New rule.
5912 * guile/guile-internal.h (pspace_smob): New typedef.
5913 (psscm_pspace_smob_pretty_printers): Declare.
5914 (psscm_pspace_smob_from_pspace): Declare.
5915 (psscm_scm_from_pspace): Declare.
5916 * guile/guile.c (initialize_gdb_module): Call
5917 gdbscm_initialize_pspaces.
5918 * guile/lib/gdb.scm: Export progspace symbols.
5919 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
5920 support.
5921 (append-pretty-printer!): Ditto.
5922 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
5923 Implement.
5924 * guile/scm-progspace.c: New file.
5925
397998fc
AM
59262014-06-03 Alan Modra <amodra@gmail.com>
5927
5928 * ppc64-tdep.c (ppc64_standard_linkage8): New.
5929 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
5930
6aa5f3a6
DE
59312014-06-02 Doug Evans <dje@google.com>
5932
5933 Add support for skeletonless type units.
5934 * dwarf2read.c (struct dwarf2_per_objfile): New member
5935 n_allocated_type_units.
5936 (struct dwarf2_per_objfile) <tu_stats>: New member
5937 nr_all_type_units_reallocs.
5938 (create_signatured_type_table_from_index): Initialize
5939 n_allocated_type_units
5940 (create_all_type_units): Ditto.
5941 (add_type_unit): Move up in file. New arg slot.
5942 All callers updated. Increase space for all_type_units more
5943 efficiently.
5944 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
5945 (lookup_dwo_signatured_type): Handle skeletonless TUs.
5946 (lookup_dwp_signatured_type): Ditto.
5947 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
5948 All callers updated.
5949 (build_type_psymtabs_1): Leave type_unit_groups as
5950 NULL if no TUs present.
5951 (print_tu_stats): New function.
5952 (process_skeletonless_type_unit): New function.
5953 (process_dwo_file_for_skeletonless_type_units): New
5954 function.
5955 (process_skeletonless_type_units): New function.
5956 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
5957 Call print tu_stats if debugging enabled.
5958
41fac0cf
PA
59592014-06-02 Pedro Alves <palves@redhat.com>
5960
5961 * breakpoint.c (build_target_command_list): Don't build a command
5962 list if we have any duplicate location that isn't a dprintf.
5963
cd1608cc
PA
59642014-06-02 Pedro Alves <palves@redhat.com>
5965
5966 * breakpoint.c (dprintf_breakpoint_hit): New function.
5967 (initialize_breakpoint_ops): Install it as dprintf's
5968 breakpoint_hit method.
5969
486ef3b9
JB
59702014-06-02 Joel Brobecker <brobecker@adacore.com>
5971
5972 * source.c (substitute_path_rule_matches): Simplify using
5973 filename_ncmp instead of FILENAME_CMP.
5974
230cd560
JB
59752014-06-02 Joel Brobecker <brobecker@adacore.com>
5976
5977 * source.c (substitute_path_rule_matches): Remove trailing spaces.
5978
16954d5d
LC
59792014-06-01 Ludovic Courtès <ludo@gnu.org>
5980
5981 * configure.ac: When Guile is available, check for the
5982 availability of 'scm_new_smob'.
5983 * configure, config.h.in: Regenerate.
5984 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
5985 function.
5986
53e8a631
AB
59872014-05-30 Andrew Burgess <aburgess@broadcom.com>
5988
5989 * frame.c (struct frame_info): Add stop_string field.
5990 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
5991 (get_prev_frame_always): Old content moved into
5992 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
5993 TRY_CATCH, handle MEMORY_ERROR exceptions.
5994 (frame_stop_reason_string): New function definition.
5995 * frame.h (unwind_stop_reason_to_string): Extend comment to
5996 mention frame_stop_reason_string.
5997 (frame_stop_reason_string): New function declaration.
5998 * stack.c (frame_info): Switch to frame_stop_reason_string.
5999 (backtrace_command_1): Switch to frame_stop_reason_string.
6000 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
6001 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
6002 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
6003
70e38b8e
AB
60042014-05-30 Andrew Burgess <aburgess@broadcom.com>
6005
6006 * frame.c (frame_stop_reason_string): Rename to ...
6007 (unwind_stop_reason_to_string): this.
6008 * frame.h (frame_stop_reason_string): Rename to ...
6009 (unwind_stop_reason_to_string): this.
6010 * stack.c (frame_info): Update call to frame_stop_reason_string.
6011 (backtrace_command_1): Likewise.
6012 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
6013 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
6014
938f0e2f
AB
60152014-05-30 Andrew Burgess <aburgess@broadcom.com>
6016
6017 * frame.c (remove_prev_frame): New function.
6018 (get_prev_frame_if_no_cycle): Create / discard cleanup using
6019 remove_prev_frame.
6020
a09dd441
PA
60212014-05-29 Pedro Alves <palves@redhat.com>
6022
6023 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
6024 and make it const. When a single-step decays to a continue,
6025 clear 'step', not 'hw_step'. Pass whether the caller wanted
6026 to step to user_visible_resume_ptid, not what we ask the
6027 target to do.
6028
bdc36728
PA
60292014-05-29 Pedro Alves <palves@redhat.com>
6030
6031 * infrun.c (process_event_stop_test, handle_step_into_function)
6032 (handle_step_into_function_backward): Adjust.
6033 Don't set the even thread's stop_step and call stop_waiting before
6034 calling end_stepping_range. Instead do that ...
6035 (end_stepping_range): ... here. Take an ecs pointer parameter.
6036
22bcd14b
PA
60372014-05-29 Pedro Alves <palves@redhat.com>
6038
6039 * infrun.c (stop_stepping): Rename to ...
6040 (stop_waiting): ... this.
6041 (proceed): Update comment.
6042 (process_event_stop_test, handle_inferior_event)
6043 (handle_signal_stop, handle_step_into_function)
6044 (handle_step_into_function_backward): Update.
6045
4ae57c05
PA
60462014-05-29 Pedro Alves <palves@redhat.com>
6047
6048 * infcall.c (run_inferior_call): Don't check whether the current
6049 thread is running after the proceed call.
6050
329ea579
PA
60512014-05-29 Pedro Alves <palves@redhat.com>
6052 Tom Tromey <tromey@redhat.com>
6053
6054 * NEWS: Mention "maint set target-async", "set mi-async", and that
6055 background execution commands are now always available.
6056 * target.h (target_async_permitted): Update comment.
6057 * target.c (target_async_permitted, target_async_permitted_1):
6058 Default to 1.
6059 (set_target_async_command): Rename to ...
6060 (maint_set_target_async_command): ... this.
6061 (show_target_async_command): Rename to ...
6062 (maint_show_target_async_command): ... this.
6063 (_initialize_target): Adjust.
6064 * infcmd.c (prepare_execution_command): Make extern.
6065 * inferior.h (prepare_execution_command): Declare.
6066 * infrun.c (set_observer_mode): Leave target async alone.
6067 * mi/mi-interp.c (mi_interpreter_init): Install
6068 mi_on_sync_execution_done as sync_execution_done observer.
6069 (mi_on_sync_execution_done): New function.
6070 (mi_execute_command_input_handler): Don't print the prompt if we
6071 just started a synchronous command with an async target.
6072 (mi_on_resume): Check sync_execution before printing prompt.
6073 * mi/mi-main.h (mi_async_p): Declare.
6074 * mi/mi-main.c: Include gdbcmd.h.
6075 (mi_async_p): New function.
6076 (mi_async, mi_async_1): New globals.
6077 (set_mi_async_command, show_mi_async_command, mi_async): New
6078 functions.
6079 (exec_continue): Call prepare_execution_command.
6080 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
6081 (mi_execute_async_cli_command): Use mi_async_p.
6082 (_initialize_mi_main): Install "set mi-async". Make
6083 "target-async" a deprecated alias.
6084
92bcb5f9
PA
60852014-05-29 Pedro Alves <palves@redhat.com>
6086
6087 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
6088 (_initialize_cli_interp): Adjust.
6089 * event-loop.c: Include "observer.h".
6090 (start_event_loop): Notify 'command_error' observers instead of
6091 calling display_gdb_prompt. Remove FIXME comment.
6092 * event-top.c (display_gdb_prompt): Remove call into the
6093 interpreters.
6094 * inf-loop.c: Include "observer.h".
6095 (inferior_event_handler): Notify 'command_error' observers instead
6096 of calling display_gdb_prompt.
6097 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
6098 observers instead of calling display_gdb_prompt.
6099 * interps.c (interp_set): Don't call display_gdb_prompt.
6100 (current_interp_display_prompt_p): Delete.
6101 * interps.h (interp_prompt_p): Delete declaration.
6102 (interp_prompt_p_ftype): Delete.
6103 (struct interp_procs) <prompt_proc_p>: Delete field.
6104 (current_interp_display_prompt_p): Delete declaration.
6105 * mi-interp.c (mi_interpreter_prompt_p): Delete.
6106 (_initialize_mi_interp): Adjust.
6107 * tui-interp.c (tui_init): Install 'sync_execution_done' and
6108 'command_error' observers.
6109 (tui_on_sync_execution_done, tui_on_command_error): New
6110 functions.
6111 (tui_display_prompt_p): Delete.
6112 (_initialize_tui_interp): Adjust.
6113
fd664c91
PA
61142014-05-29 Pedro Alves <palves@redhat.com>
6115
6116 PR gdb/13860
6117 * cli/cli-interp.c: Include infrun.h and observer.h.
6118 (cli_uiout, cli_interp): New globals.
6119 (cli_on_signal_received, cli_on_end_stepping_range)
6120 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
6121 functions.
6122 (cli_interpreter_init): Install them as 'end_stepping_range',
6123 'signal_received' 'signal_exited', 'exited' and 'no_history'
6124 observers.
6125 (_initialize_cli_interp): Remove cli_interp local.
6126 * infrun.c (handle_inferior_event): Call the several stop reason
6127 observers instead of printing the stop reason directly.
6128 (end_stepping_range): New function.
6129 (print_end_stepping_range_reason, print_signal_exited_reason)
6130 (print_exited_reason, print_signal_received_reason)
6131 (print_no_history_reason): Make static, and add an uiout
6132 parameter. Print to that instead of to CURRENT_UIOUT.
6133 * infrun.h (print_end_stepping_range_reason)
6134 (print_signal_exited_reason, print_exited_reason)
6135 (print_signal_received_reason print_no_history_reason): New
6136 declarations.
6137 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
6138 'mi_uiout'.
6139 <cli_uiout>: New field.
6140 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
6141 uiout for CLI output. Install 'signal_received',
6142 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
6143 observers.
6144 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
6145 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
6146 (mi_on_no_history): New functions.
6147 (ui_out_free_cleanup): Delete function.
6148 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
6149 instead use the one already stored in the MI interpreter data.
6150 (mi_ui_out): Adjust.
6151 * tui/tui-interp.c: Include infrun.h and observer.h.
6152 (tui_interp): New global.
6153 (tui_on_signal_received, tui_on_end_stepping_range)
6154 (tui_on_signal_exited, tui_on_exited)
6155 (tui_on_no_history): New functions.
6156 (tui_init): Install them as 'end_stepping_range',
6157 'signal_received' 'signal_exited', 'exited' and 'no_history'
6158 observers.
6159 (_initialize_tui_interp): Delete tui_interp local.
6160
8817a6f2
PA
61612014-05-29 Pedro Alves <palves@redhat.com>
6162
6163 PR gdb/15713
6164 * linux-nat.c (linux_nat_resume_callback): Rename the second
6165 parameter to 'except'. Skip LP if it points to EXCEPT.
6166 (linux_nat_resume): Don't mark the event lwp as not stopped
6167 before resuming sibling lwps. Instead ask
6168 linux_nat_resume_callback to skip the event lwp. Mark it as not
6169 stopped after actually resuming it.
6170 (linux_handle_syscall_trap): Mark the lwp as not stopped after
6171 resuming it.
6172 (wait_lwp): Mark the lwp as stopped here.
6173 (stop_wait_callback): Mark the lwp as not stopped right after
6174 resuming it. Don't mark lwps as stopped here.
6175 (linux_nat_filter_event): Mark the lwp as stopped earlier.
6176 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
6177
251bde03
PA
61782014-05-29 Pedro Alves <palves@redhat.com>
6179
6180 PR PR15693
6181 * infrun.c (resume): Determine how much to resume depending on
6182 whether the caller wanted a step, not whether we can hardware step
6183 the target. Mark all threads that we intend to run as running,
6184 unless we're calling an inferior function.
6185 (normal_stop): If the thread is running an infcall, don't finish
6186 thread state.
6187 * target.c (target_resume): Don't mark threads as running here.
6188
7f3c0343
JB
61892014-05-28 Joel Brobecker <brobecker@adacore.com>
6190
6191 * serial.c (_initialize_serial): Remove support for
6192 the "set remotebaud" and "show remotebaud" commands.
6193 * NEWS: Add entry documenting the removal of that command.
6194
ee34b3f9
YQ
61952014-05-28 Yao Qi <yao@codesourcery.com>
6196
6197 * charset.c: Fix typo in comments.
6198
add6c04d
GB
61992014-05-27 Gary Benson <gbenson@redhat.com>
6200
6201 * utils.c (internal_vproblem): Prompt for a bug report.
6202
92c48fc5
AW
62032014-05-26 Andy Wingo <wingo@igalia.com>
6204
6205 * guile/scm-arch.c (arscm_mark_arch_smob):
6206 * guile/scm-block.c (bkscm_mark_block_smob)
6207 (bkscm_mark_block_syms_progress_smob):
6208 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
6209 * guile/scm-exception.c (exscm_mark_exception_smob):
6210 * guile/scm-frame.c (frscm_mark_frame_smob):
6211 * guile/scm-iterator.c (itscm_mark_iterator_smob):
6212 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
6213 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
6214 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
6215 (ppscm_mark_pretty_printer_worker_smob):
6216 * guile/scm-symbol.c (syscm_mark_symbol_smob):
6217 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
6218 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
6219 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
6220 mark functions.
6221 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
6222 function.
6223
b2715b27
AW
62242014-05-26 Andy Wingo <wingo@igalia.com>
6225 Doug Evans <xdje42@gmail.com>
6226
6227 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
6228 empty_base_class. All uses updated.
6229 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
6230 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
6231 Adapt all callers.
6232 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
6233 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
6234 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
6235 (gdbscm_gsmob_has_property_p, add_property_name)
6236 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
6237 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
6238 (gdb-object-has-property?, gdb-object-properties): Remove.
6239 (gdb-object-kind): Renamed from gsmob-kind.
6240
214ab2da
AW
62412014-05-26 Andy Wingo <wingo@igalia.com>
6242
6243 * configure.ac (try_guile_versions): Allow building with guile 2.2.
6244 * configure: Regenerate.
6245
589fdceb
MM
62462014-05-23 Markus Metzger <markus.t.metzger@intel.com>
6247
6248 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
6249
67b5c0c1
MM
62502014-05-23 Markus Metzger <markus.t.metzger@intel.com>
6251
6252 * record-btrace.c (record_btrace_allow_memory_access): Remove.
6253 (replay_memory_access_read_only, replay_memory_access_read_write)
6254 (replay_memory_access_types, replay_memory_access)
6255 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
6256 (cmd_set_record_btrace, cmd_show_record_btrace)
6257 (cmd_show_replay_memory_access): New.
6258 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
6259 (record_btrace_remove_breakpoint): Replace
6260 record_btrace_allow_memory_access with replay_memory_access.
6261 (_initialize_record_btrace): Add commands.
6262 * NEWS: Announce it.
6263
036cd381
RR
62642014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6265
6266 * aarch64-linux-nat.c (asm/ptrace.h): Include.
6267
c77c1e42
RR
62682014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6269
6270 * MAINTAINERS (Write After Approval): Move self back from
6271 paper trail.
6272
45741a9c
PA
62732014-05-22 Pedro Alves <palves@redhat.com>
6274
6275 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
6276 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
6277 (disable_randomization, enum exec_direction_kind)
6278 (execution_direction, stop_registers, start_remote)
6279 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
6280 (wait_for_inferior, normal_stop, get_last_target_status)
6281 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
6282 (insert_step_resume_breakpoint_at_sal)
6283 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
6284 (set_step_info, print_stop_event, signal_stop_state)
6285 (signal_print_state, signal_pass_state, signal_stop_update)
6286 (signal_print_update, signal_pass_update)
6287 (update_signals_program_target, clear_exit_convenience_vars)
6288 (displaced_step_dump_bytes, update_observer_mode)
6289 (signal_catch_update, gdb_signal_from_command): Move
6290 declarations ...
6291 * infrun.h: ... to this new file.
6292 * amd64-tdep.c: Include infrun.h.
6293 * annotate.c: Include infrun.h.
6294 * arch-utils.c: Include infrun.h.
6295 * arm-linux-tdep.c: Include infrun.h.
6296 * arm-tdep.c: Include infrun.h.
6297 * break-catch-sig.c: Include infrun.h.
6298 * breakpoint.c: Include infrun.h.
6299 * common/agent.c: Include infrun.h instead of inferior.h.
6300 * corelow.c: Include infrun.h.
6301 * event-top.c: Include infrun.h.
6302 * go32-nat.c: Include infrun.h.
6303 * i386-tdep.c: Include infrun.h.
6304 * inf-loop.c: Include infrun.h.
6305 * infcall.c: Include infrun.h.
6306 * infcmd.c: Include infrun.h.
6307 * infrun.c: Include infrun.h.
6308 * linux-fork.c: Include infrun.h.
6309 * linux-nat.c: Include infrun.h.
6310 * linux-thread-db.c: Include infrun.h.
6311 * monitor.c: Include infrun.h.
6312 * nto-tdep.c: Include infrun.h.
6313 * procfs.c: Include infrun.h.
6314 * record-btrace.c: Include infrun.h.
6315 * record-full.c: Include infrun.h.
6316 * remote-m32r-sdi.c: Include infrun.h.
6317 * remote-mips.c: Include infrun.h.
6318 * remote-notif.c: Include infrun.h.
6319 * remote-sim.c: Include infrun.h.
6320 * remote.c: Include infrun.h.
6321 * reverse.c: Include infrun.h.
6322 * rs6000-tdep.c: Include infrun.h.
6323 * s390-linux-tdep.c: Include infrun.h.
6324 * solib-irix.c: Include infrun.h.
6325 * solib-osf.c: Include infrun.h.
6326 * solib-svr4.c: Include infrun.h.
6327 * target.c: Include infrun.h.
6328 * top.c: Include infrun.h.
6329 * windows-nat.c: Include infrun.h.
6330 * mi/mi-interp.c: Include infrun.h.
6331 * mi/mi-main.c: Include infrun.h.
6332 * python/py-threadevent.c: Include infrun.h.
6333
98eb56a4
PA
63342014-05-22 Pedro Alves <palves@redhat.com>
6335
6336 * infrun.c (handle_inferior_event): Store the exit code for
6337 --return-child-result here, instead of ...
6338 (print_exited_reason): ... here.
6339
17b2616c
PA
63402014-05-21 Pedro Alves <palves@redhat.com>
6341
6342 PR gdb/13860
6343 * gdbthread.h (struct thread_control_state): New field
6344 `command_interp'.
6345 * infrun.c (follow_fork): Copy the new thread control field to the
6346 child fork thread.
6347 (clear_proceed_status_thread): Clear the new thread control field.
6348 (proceed): Set the new thread control field.
6349 * interps.h (command_interp): Declare.
6350 * interps.c (command_interpreter): New global.
6351 (command_interp): New function.
6352 (interp_exec): Set `command_interpreter' while here.
6353 * cli-out.c (cli_uiout_dtor): New function.
6354 (cli_ui_out_impl): Install it.
6355 * mi/mi-interp.c: Include cli-out.h.
6356 (mi_cmd_interpreter_exec): Add comment.
6357 (restore_current_uiout_cleanup): New function.
6358 (ui_out_free_cleanup): New function.
6359 (mi_on_normal_stop): If finishing an execution command started by
6360 a CLI command, or any kind of breakpoint-like event triggered,
6361 print the stop event to the output (CLI) stream.
6362 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
6363
5166082f
PA
63642014-05-21 Pedro Alves <palves@redhat.com>
6365
6366 * cli/cli-cmds.c (list_command): Handle the first "list" after the
6367 current source line having changed.
6368 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
6369 * infrun.c (normal_stop): Adjust call to
6370 set_current_sal_from_frame.
6371 * source.c (clear_lines_listed_range): New function.
6372 (set_current_source_symtab_and_line, identify_source_line): Clear
6373 the lines listed range.
6374 (line_info): Handle the first "info line" after the current source
6375 line having changed.
6376 * stack.c (print_stack_frame): Remove center handling.
6377 (set_current_sal_from_frame): Remove 'center' parameter. Don't
6378 center sal.line.
6379
c1ee2fb3
PA
63802014-05-21 Pedro Alves <palves@redhat.com>
6381
6382 * inf-child.c (inf_child_mourn_inferior): New function.
6383 * inf-child.h (inf_child_mourn_inferior): New declaration.
6384 * darwin-nat.c (darwin_mourn_inferior): Use
6385 inf_child_mourn_inferior.
6386 * gnu-nat.c (gnu_mourn_inferior): Likewise.
6387 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
6388 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
6389 * nto-procfs.c (procfs_mourn_inferior): Likewise.
6390 * windows-nat.c (windows_mourn_inferior): Likewise.
6391
5c6d4fb2
DE
63922014-05-21 Doug Evans <xdje42@gmail.com>
6393
250748cb 6394 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5c6d4fb2 6395
4a2722c5
DE
63962014-05-21 Doug Evans <xdje42@gmail.com>
6397
17292b30 6398 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4a2722c5
DE
6399 (gdbscm_out_of_range_error): Ditto.
6400 (gdbscm_memory_error): Ditto.
250748cb
DE
6401 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
6402 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4a2722c5
DE
6403 (gdbscm_out_of_range_error): Update.
6404 (gdbscm_memory_error): Update.
6405 (gdbscm_scm_to_target_string_unsafe): Delete.
6406
6a3cb8e8
PA
64072014-05-21 Pedro Alves <palves@redhat.com>
6408
6409 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
6410 globals.
6411 (inf_child_open_target): New function.
6412 (inf_child_open): Use inf_child_open_target to push the target
6413 instead of erroring out.
6414 (inf_child_disconnect, inf_child_close)
6415 (inf_child_maybe_unpush_target): New functions.
6416 (inf_child_target): Install inf_child_disconnect and
6417 inf_child_close. Store a pointer to the returned object.
6418 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
6419 declarations.
6420 * target.c (auto_connect_native_target): New global.
6421 (show_default_run_target): New function.
6422 (find_default_run_target): Return NULL if automatically connecting
6423 to the native target is disabled.
6424 (_initialize_target): Install set/show auto-connect-native-target.
6425 * NEWS: Mention "set auto-connect-native-target", and "target
6426 native".
6427 * linux-nat.c (super_close): New global.
6428 (linux_nat_close): Call super_close.
6429 (linux_nat_add_target): Store a pointer to the base class's
6430 to_close method.
6431 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
6432 inf_child_maybe_unpush.
6433 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
6434 already pushed.
6435 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
6436 the inferior. Use inf_child_maybe_unpush_target.
6437 (inf_ttrace_attach): Don't push the target if it is already
6438 pushed.
6439 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
6440 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
6441 after mourning the inferior. Use inf_child_maybe_unpush_target.
6442 (darwin_attach_pid): Don't push the target if it is already
6443 pushed.
6444 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
6445 mourning the inferior. Use inf_child_maybe_unpush_target.
6446 (gnu_detach): Use inf_child_maybe_unpush_target.
6447 * go32-nat.c (go32_create_inferior): Don't push the target if it
6448 is already pushed.
6449 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
6450 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
6451 (procfs_open): Rename to ...
6452 (procfs_open_1): ... this. Add target_ops parameter. Adjust
6453 comments. Can target_preopen before changing node. Call
6454 inf_child_open_target to push the target explicitly.
6455 (procfs_attach): Don't push the target if it is already pushed.
6456 (procfs_detach): Use inf_child_maybe_unpush_target.
6457 (procfs_create_inferior): Don't push the target if it is already
6458 pushed.
6459 (nto_native_ops): New global.
6460 (procfs_open): Reimplement.
6461 (procfs_native_open): New function.
6462 (init_procfs_targets): Install procfs_native_open as to_open of
6463 "target native". Store a pointer to the "native" target in
6464 nto_native_ops.
6465 * procfs.c (procfs_attach): Don't push the target if it is already
6466 pushed.
6467 (procfs_detach): Use inf_child_maybe_unpush_target.
6468 (procfs_mourn_inferior): Only unpush the target after mourning the
6469 inferior. Use inf_child_maybe_unpush_target.
6470 (procfs_init_inferior): Don't push the target if it is already
6471 pushed.
6472 * windows-nat.c (do_initial_windows_stuff): Don't push the target
6473 if it is already pushed.
6474
930ee1b1
PA
64752014-05-21 Pedro Alves <palves@redhat.com>
6476
6477 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
6478 and "procfs" targets are now called "native" instead.
6479
1f5d1b13
PA
64802014-05-21 Pedro Alves <palves@redhat.com>
6481
6482 * go32-nat.c (go32_open): Delete.
6483 (go32_target): Don't override the to_open method.
6484
132f8e03
PA
64852014-05-21 Pedro Alves <palves@redhat.com>
6486
6487 * nto-procfs.c (procfs_can_run): New function.
6488 (nto_procfs_ops): New global.
6489 (init_procfs_targets): New, based on procfs_target. Install
6490 "target native" in addition to "target procfs".
6491 (_initialize_procfs): Call init_procfs_targets instead of adding
6492 the target here.
6493
03c136c3
PA
64942014-05-21 Pedro Alves <palves@redhat.com>
6495
6496 * windows-nat.c (windows_target): Don't override to_shortname,
6497 to_longname or to_doc.
6498
a635d0f3
PA
64992014-05-21 Pedro Alves <palves@redhat.com>
6500
6501 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
6502 to_doc.
6503
4f9b5133
PA
65042014-05-21 Pedro Alves <palves@redhat.com>
6505
6506 * darwin-nat.c (_initialize_darwin_inferior): Don't override
6507 to_shortname, to_longname or to_doc.
6508
bc85afde
PA
65092014-05-21 Pedro Alves <palves@redhat.com>
6510
6511 * go32-nat.c (go32_target): Don't override to_shortname,
6512 to_longname or to_doc.
6513
4ebfc96e
PA
65142014-05-21 Pedro Alves <palves@redhat.com>
6515
6516 * inf-child.c (inf_child_open): Remove mention of "child".
6517 (inf_child_target): Rename target to "native" instead of "child".
6518
2648dfed
AA
65192014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6520
6521 * Makefile.in (SFILES): Delete "regset.c".
6522 (COMMON_OBS): Delete "regset.o".
6523 * regset.c: Remove.
6524 * regset.h (regset_alloc): Delete prototype.
6525
b13feb94
AA
65262014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6527
6528 * sparc-linux-tdep.c (sparc32_linux_gregset)
6529 (sparc32_linux_fpregset): New static regset structures.
6530 (sparc32_linux_init_abi): Drop dynamic regset allocations.
6531 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
6532 'fpregset' fields.
6533 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
6534 (sparc64_linux_fpregset): New static regset structures.
6535 (sparc64_linux_init_abi): Drop dynamic regset allocations.
6536 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
6537 New static regset structures.
6538 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
6539 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
6540 New static regset structures.
6541 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
6542 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
6543 New static regset structures.
6544 (sparc64obsd_init_abi): Drop dynamic regset allocations.
6545 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
6546 New static regset structures.
6547 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
6548
b4fd25c9
AA
65492014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6550
6551 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
6552 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
6553 register maps ("regmaps") from "*regset" to "*regmap". Do this
6554 for all regmap types and variables.
6555 * sparc-linux-tdep.c (sparc32_linux_step_trap)
6556 (sparc32_linux_supply_core_gregset)
6557 (sparc32_linux_collect_core_gregset)
6558 (sparc32_linux_supply_core_fpregset)
6559 (sparc32_linux_collect_core_fpregset): Likewise.
6560 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
6561 (sparc_gregmap, sparc_fpregmap): ... these.
6562 (sparc_supply_gregset, sparc_collect_gregset)
6563 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6564 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
6565 (_initialize_sparc_nat): Rename regmaps.
6566 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
6567 (sparc_gregmap, sparc_fpregmap): ... these.
6568 (sparc_supply_gregset, sparc_collect_gregset)
6569 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6570 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
6571 Rename macros to...
6572 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
6573 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
6574 Likewise.
6575 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
6576 Rename to...
6577 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
6578 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
6579 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
6580 regmaps.
6581 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6582 (sparc32_bsd_fpregset): Rename to...
6583 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6584 (sparc32_bsd_fpregmap): ... these.
6585 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
6586 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6587 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
6588 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
6589 (struct sparc_gregmap, struct sparc_fpregmap)
6590 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6591 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
6592 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
6593 (sparc32_supply_regset, sparc32_collect_gregset)
6594 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
6595 prototypes.
6596 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
6597 (sparc64_linux_ptrace_gregmap): ... this.
6598 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
6599 (_initialize_sparc64_linux_nat): Rename regmaps.
6600 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
6601 (sparc64_linux_core_gregmap): ... this.
6602 (sparc64_linux_supply_core_gregset)
6603 (sparc64_linux_collect_core_gregset)
6604 (sparc64_linux_supply_core_fpregset)
6605 (sparc64_linux_collect_core_fpregset): Rename regmaps.
6606 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
6607 (sparc64_sol2_fpregset): Rename to...
6608 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
6609 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
6610 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
6611 regmaps.
6612 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
6613 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
6614 (sparc64_bsd_fpregset): Rename to...
6615 (struct sparc_gregmap, sparc64_sol2_gregmap)
6616 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
6617 (sparc64_bsd_fpregmap): ... these.
6618 (sparc64_supply_gregset, sparc64_collect_gregset)
6619 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
6620 prototypes.
6621 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
6622 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
6623 (sparc64fbsd_gregmap): ... this.
6624 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
6625 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
6626 Rename regmaps.
6627 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
6628 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
6629 (sparc64nbsd_collect_fpregset): Likewise.
6630 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
6631 (sparc64nbsd_gregmap): ... this.
6632 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
6633 regmaps.
6634 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
6635 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
6636 (sparc64obsd_gregmap): ... this.
6637 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
6638 regmaps.
6639 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
6640 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
6641 (sparc32nbsd_gregmap): ... this.
6642 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
6643 regmaps.
6644
8fea3224
AA
66452014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6646
6647 * score-tdep.c (score7_linux_gregset): New static regset
6648 structure.
6649 (score7_linux_regset_from_core_section): Remove dynamic regset
6650 allocation.
6651 (score_gdbarch_init): Drop allocation of tdep structure.
6652 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
6653
24534243
AA
66542014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6655
6656 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
6657 regset structures.
6658 (am33_regset_from_core_section): Remove dynamic regset
6659 allocations.
6660
b7195f27
AA
66612014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6662
6663 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
6664 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
6665 structures.
6666 (mips_linux_regset_from_core_section): Remove dynamic regset
6667 allocations.
6668 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6669 'gregset64', 'fpregset', and 'fpregset64'.
6670 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
6671 deleted tdep fields.
6672
ecc37a5a
AA
66732014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6674
6675 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
6676 regset structures.
6677 (amd64_regset_from_core_section): Remove dynamic regset
6678 allocations.
6679 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
6680 structure.
6681 (amd64obsd_regset_from_core_section): Remove dynamic regset
6682 allocation.
6683 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
6684 Likewise.
6685 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
6686 x86-common regset supply function.
6687 * i386-tdep.c (i386_collect_gregset): Make static.
6688 (i386_gregset): New global regset structure.
6689 (i386_fpregset, i386_xstateregset): New static regset structures.
6690 (i386_regset_from_core_section): Remove dynamic regset
6691 allocations.
6692 (i386_gdbarch_init): Remove initialization of tdep fields
6693 'gregset', 'fpregset', and 'xstateregset'.
6694 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6695 'fpregset', and 'xstateregset'.
6696 (i386_collect_gregset): Remove prototype.
6697 (i386_gregset): New declaration.
6698 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
6699 structure.
6700 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
6701 allocation.
6702
b7611c43
AA
67032014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6704
6705 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
6706 (arm_linux_vfpregset): New static regset structures.
6707 (arm_linux_regset_from_core_section): Remove dynamic allocation of
6708 regset structures.
6709 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
6710 and 'vfpregset' fields.
6711
a069a2bd
AA
67122014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6713
6714 * aarch64-linux-tdep.c (aarch64_linux_gregset)
6715 (aarch64_linux_fpregset): New static regset structures.
6716 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
6717 of regset structures.
6718 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
6719 'fpregset' fields.
6720
09424cff
AA
67212014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6722
6723 * regset.h (struct regset): Remove gdbarch field.
6724 * regset.c (regset_alloc): Drop initialization of gdbarch field.
6725 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6726 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
6727 Likewise.
6728 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
6729 (ppc32_linux_fpregset, ppc32_linux_vrregset)
6730 (ppc32_linux_vsxregset): Likewise.
6731 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
6732 via the regcache instead of the regset.
6733 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
6734 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
6735 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
6736 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
6737 Likewise.
6738
3ca7dae4
AA
67392014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6740
6741 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
6742 Constify structures.
6743 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
6744 (alphanbsd_aout_gregset): Likewise.
6745 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
6746 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
6747 Likewise.
6748 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
6749 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
6750 Likewise.
6751 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
6752 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
6753 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
6754 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
6755 * m88k-tdep.c (m88k_gregset): Likewise.
6756 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
6757 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
6758 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6759 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
6760 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
6761 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
6762 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
6763 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
6764 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
6765 Likewise.
6766 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
6767 * sh-tdep.h (sh_corefile_gregset): Likewise.
6768 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
6769 * vax-tdep.c (vax_gregset): Likewise.
6770
5876f503
JK
67712014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6772
6773 Fix TLS access for -static -pthread.
6774 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
6775 (try_thread_db_load_1): Initialize it.
6776 (thread_db_get_thread_local_address): Call it if LM is zero.
6777 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
6778 * target.h (struct target_ops) (to_get_thread_local_address): Add
6779 load_module_addr comment.
6780
0256a6ac
PA
67812014-05-21 Pedro Alves <palves@redhat.com>
6782
6783 * dcache.c (dcache_read_memory_partial): If reading the cache line
6784 fails, fallback to reading just the memory the caller wanted.
6785
227533ac
DE
67862014-05-20 Doug Evans <dje@google.com>
6787
6788 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
6789 instead of get_current_arch.
6790
936d2992
PA
67912014-05-20 Pedro Alves <palves@redhat.com>
6792
6793 * NEWS: Mention that compare-sections now works with all targets.
6794
6795 * remote.c (PACKET_qCRC): New enum value.
6796 (remote_verify_memory): Don't send qCRC if the target has no
6797 execution. Use packet_support/packet_ok. If the target doesn't
6798 support the qCRC packet, fallback to a deep memory copy.
6799 (compare_sections_command): Say "target image" instead of "remote
6800 executable".
6801 (_initialize_remote): Add PACKET_qCRC to the list of config
6802 packets that have no associated command. Extend comment.
6803 * target.c (simple_verify_memory, default_verify_memory): New
6804 function.
6805 * target.h (struct target_ops) <to_verify_memory>: Default to
6806 default_verify_memory.
6807 (simple_verify_memory): New declaration.
6808 * target-delegates.c: Regenerate.
6809
e59fa00f
MM
68102014-05-20 Markus Metzger <markus.t.metzger@intel.com>
6811
6812 * record-btrace.c (record_btrace_step_thread): Check for empty history.
6813
f2205de0
HZ
68142014-05-20 Hui Zhu <hui@codesourcery.com>
6815 Yao Qi <yao@codesourcery.com>
6816
6817 PR backtrace/16558
6818 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
6819 and change address of sp and pc.
6820
c4e54771
TT
68212014-05-19 Tom Tromey <tromey@redhat.com>
6822
6823 * gdbtypes.c (rank_function): Use XNEWVEC.
6824 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
6825
73051182
DE
68262014-05-19 Doug Evans <dje@google.com>
6827
6828 * dwarf2read.c (build_type_psymtabs_1): Renamed from
6829 build_type_unit_groups and moved closer to only caller. Remove
6830 arguments. All references updated. Remove outdated .gdb_index
6831 comment.
6832 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
6833 build_type_psymtabs_1.
6834
8832e7e3
DE
68352014-05-19 Doug Evans <dje@google.com>
6836
6837 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
6838 n_type_unit_groups, all_type_unit_groups. All uses removed.
6839 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
6840 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
6841 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
6842 (add_type_unit_group_to_table): Delete.
6843
cd8ae15e
DE
68442014-05-19 Doug Evans <dje@google.com>
6845
6846 * eval.c (evaluate_subexp_standard): Add some comments.
6847
08f4850b
DE
68482014-05-17 Doug Evans <xdje42@gmail.com>
6849
6850 * progspace.c (remove_program_space): Delete, unused.
6851 * progspace.h (remove_program_space): Ditto.
6852
bed8455c
DE
68532014-05-17 Doug Evans <xdje42@gmail.com>
6854
6855 * inferior.c (prune_inferiors): Fix comment.
6856 (remove_inferior_command): Call prune_program_spaces.
6857
8d551b02
DE
68582014-05-16 Doug Evans <dje@google.com>
6859
6860 New command line option -D.
6861 * NEWS: Mention it.
6862 * main.c (set_gdb_data_directory): New function.
6863 (captured_main): Recognize -D. Flag error for --data-directory "".
6864 Call set_gdb_data_directory.
6865 (print_gdb_help): Print --data-directory, -D.
6866 * main.h (set_gdb_data_directory): Declare.
6867 * top.c (staged_gdb_datadir): New static global.
6868 (set_gdb_datadir): Call set_gdb_data_directory
6869 (show_gdb_datadir): New function.
6870 (init_main): Update init of data-directory parameter.
6871
18848e28
GF
68722014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
6873
6874 Import the "dirfd" gnulib module.
6875 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
6876 * gnulib/aclocal.m4: Update.
6877 * gnulib/config.in: Update.
6878 * gnulib/configure: Update.
6879 * gnulib/import/Makefile.am: Update.
6880 * gnulib/import/Makefile.in: Update.
6881 * gnulib/import/dirfd.c: New.
6882 * gnulib/import/m4/dirfd.m4: New.
6883 * gnulib/import/m4/gnulib-cache.m4: Update.
6884 * gnulib/import/m4/gnulib-comp.m4: Update.
6885
95c64f92
YQ
68862014-05-16 Pierre Muller <muller@sourceware.org>
6887 Yao Qi <yao@codesourcery.com>
6888
6889 * valprint.c (print_wchar): Move the code on checking whether
6890 W is a printable wide char to the default branch of switch
6891 statement below. Call wchar_printable instead of gdb_iswprint.
6892
cac395ea
TM
68932014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
6894
19679eca 6895 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
cac395ea
TM
6896 ldr.w and ldrd instructions.
6897
83655187
DE
68982014-05-15 Doug Evans <dje@google.com>
6899
6900 * dwarf2read.c (read_structure_type): Delete outdated comments.
6901
dd756689
TT
69022014-05-14 Tom Tromey <tromey@redhat.com>
6903
6904 * macrocmd.c (print_macro_definition): Reindent.
6905
75ddda77
DE
69062014-05-13 Doug Evans <xdje42@gmail.com>
6907
6908 * python/py-cmd.c (cmdpy_completer): Add comment.
6909 (completers): Make const.
6910
b0f16a3e
SM
69112014-05-13 Simon Marchi <simon.marchi@ericsson.com>
6912
6913 * infrun.c (resume): Remove should_resume (unused). Move up
6914 declaration of resume_ptid.
6915
033c3379
TT
69162014-05-13 Tom Tromey <tromey@redhat.com>
6917
6918 * language.h (unop_type_check): Remove.
6919 (binop_type_check): Don't declare.
6920
9b44a3a5
AA
69212014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
6922
6923 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
6924 call to regcache_raw_collect.
6925
303a33fa
SM
69262014-05-12 Simon Marchi <simon.marchi@ericsson.com>
6927
6928 * mi/mi-console.c (mi_console_raw_packet): Use the value from
6929 mi_console->quote as the quoting character.
6930
196100a0
SM
69312014-05-12 Simon Marchi <simon.marchi@ericsson.com>
6932
6933 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
6934
f989a1c8
TT
69352014-04-29 Tom Tromey <tromey@redhat.com>
6936
6937 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
6938 "show debug varobj".
6939
9404b58f
KM
69402014-05-07 Kyle McMartin <kyle@redhat.com>
6941
6942 Pushed by Joel Brobecker <brobecker@adacore.com>.
6943 * aarch64-tdep.c (aarch64_software_single_step): New function.
6944 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
6945 with aarch64_software_single_step.
6946
5e49ba57
JB
69472014-05-05 Joel Brobecker <brobecker@adacore.com>
6948
6949 GDB 7.7.1 released.
6950
c888a17d
KS
69512014-05-05 Keith Seitz <keiths@redhat.com>
6952
6953 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
6954 variable or history value is successfully parsed.
6955
290a839c
YQ
69562014-05-05 Yao Qi <yao@codesourcery.com>
6957 Pedro Alves <palves@redhat.com>
6958
6959 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
6960 address of blocks that intersects the requested range. Trim
6961 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
6962 sections.
6963 * ctf.c (ctf_xfer_partial): Likewise.
6964
91256dc2
YQ
69652014-05-05 Yao Qi <yao@codesourcery.com>
6966
6967 * printcmd.c (display_command): Remove the check to
6968 target_has_execution.
6969
07284463
MK
69702014-05-03 Mark Kettenis <kettenis@gnu.org>
6971
6972 * ppcobsd-nat.c: Include "obsd-nat.h".
6973 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
6974 add_target.
6975 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
6976
30a1e6cc
SDJ
69772014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
6978
6979 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
6980 and 16-bit signed and unsigned arguments. Update comment.
6981 (stap_parse_probe_arguments): Extend code to handle such
6982 arguments. Use warning instead of complaint to notify about
6983 unrecognized bitness.
6984
f33da99a
SDJ
69852014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
6986
6987 PR breakpoints/16889
6988 * stap-probe.c (stap_parse_probe_arguments): Simplify
6989 check for non-prefixed probes (i.e., probes whose
6990 arguments do not start with "N@"). Always set the
6991 argument type to a sane value.
6992
95cf3b38
DT
69932014-05-01 David Taylor <dtaylor@emc.com>
6994
6995 * remote.c (compare_sections_command): Add -r option to compare
6996 all loadable read-only sections.
6997
1cfdf534
SC
69982014-04-30 Siva Chandra Reddy <sivachandra@google.com>
6999
7000 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
7001 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
7002 Update all callers.
7003 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
7004 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
7005 Remove unused CORE_ADDR argument. Update all callers.
7006
ca4f7f8b
PA
70072014-04-29 Pedro Alves <palves@redhat.com>
7008
7009 * remote.c (struct packet_config) <detect>: Extend comment.
7010 (add_packet_config_cmd): Don't set the config's detect or support
7011 fields here.
7012 (init_all_packet_configs): Also initialize the config's 'detect'
7013 field.
7014 (reset_all_packet_configs_support): New function.
7015 (remote_open_1): Call reset_all_packet_configs_support instead of
7016 init_all_packet_configs.
7017 (_initialize_remote): Initialize all packet configs. Assert that
7018 all packets have an associated command, except a few known
7019 outliers.
7020
11c1ba78
JB
70212014-04-28 Joel Brobecker <brobecker@adacore.com>
7022
7023 * dwarf2read.c (read_subrange_type): Handle dynamic
7024 DW_AT_lower_bound attributes.
7025
8739bc53
JB
70262014-04-28 Joel Brobecker <brobecker@adacore.com>
7027
7028 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
7029 dynamic bounds before computing its upper bound.
7030 (ada_discrete_type_low_bound): Same as above with the lower bound.
7031
6f8a3220
JB
70322014-04-28 Joel Brobecker <brobecker@adacore.com>
7033
7034 * dwarf2read.c (is_dynamic_type): Return true for dynamic
7035 range types. Adjust the array handling implementation to
7036 take advantage of this change.
7037 (resolve_dynamic_range): New function, mostly extracted from
7038 resolve_dynamic_bounds.
7039 (resolve_dynamic_array): New function, mostly extracted from
7040 resolve_dynamic_bounds.
7041 (resolve_dynamic_bounds): Delete.
7042 (resolve_dynamic_type): Reimplement. Add handling of
7043 TYPE_CODE_RANGE types.
7044
4d072ce4
JB
70452014-04-28 Joel Brobecker <brobecker@adacore.com>
7046
7047 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
7048 handling of parallel ___XA types.
7049
52865325
JB
70502014-04-28 Joel Brobecker <brobecker@adacore.com>
7051
7052 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
7053 unnecessary second call to static_unwrap_type.
7054
433e77fa
HZ
70552014-04-27 Hui Zhu <hui@codesourcery.com>
7056
7057 * stack.c (print_frame_info): Call do_gdb_disassembly with
7058 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
7059
b51a69ee
DE
70602014-04-26 Doug Evans <xdje42@gmail.com>
7061
7062 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
7063
7ae1a6a6
PA
70642014-04-25 Pedro Alves <palves@redhat.com>
7065
7066 PR server/16255
7067 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
7068 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
7069 and newline from built string.
7070 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
7071 (linux_ptrace_attach_fail_reason): ... this.
7072 * linux-nat.c (linux_nat_attach): Adjust to use
7073 linux_ptrace_attach_fail_reason.
7074
4082afcc
PA
70752014-04-25 Pedro Alves <palves@redhat.com>
7076
7077 * remote.c (struct remote_state): Remove multi_process_aware,
7078 non_stop_aware, cond_tracepoints, cond_breakpoints,
7079 breakpoint_commands, fast_tracepoints, static_tracepoints,
7080 install_in_trace, disconnected_tracing,
7081 enable_disable_tracepoints, string_tracing, and
7082 augmented_libraries_svr4_read fields.
7083 (remote_multi_process_p): Move further below in the file.
7084 (struct packet_config): Add comments.
7085 (update_packet_config): Delete function.
7086 (show_packet_config_cmd): Use packet_config_support.
7087 (add_packet_config_cmd): Use NULL as set callback.
7088 (packet_ok): "set remote foo-packet"-style commands no longer
7089 change config->supported -- adjust.
7090 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
7091 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
7092 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
7093 (PACKET_QNonStop, PACKET_multiprocess_feature)
7094 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
7095 (PACKET_DisconnectedTracing_feature)
7096 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
7097 (set_remote_protocol_packet_cmd): Delete function.
7098 (packet_config_support, packet_support): New functions.
7099 (set_remote_protocol_Z_packet_cmd): Don't call
7100 update_packet_config.
7101 (remote_query_attached, remote_pass_signals)
7102 (remote_program_signals, remote_threads_info)
7103 (remote_threads_extra_info, remote_start_remote): Use
7104 packet_support.
7105 (remote_start_remote): Use packet_config_support and
7106 packet_support.
7107 (init_all_packet_configs): Set all packets to unknown support,
7108 instead of calling update_packet_config.
7109 (remote_check_symbols): Use packet_support.
7110 (remote_supported_packet): Unconditionally set the packet config's
7111 support status.
7112 (remote_multi_process_feature, remote_non_stop_feature)
7113 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
7114 (remote_breakpoint_commands_feature)
7115 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
7116 (remote_install_in_trace_feature)
7117 (remote_disconnected_tracing_feature)
7118 (remote_enable_disable_tracepoint_feature)
7119 (remote_string_tracing_feature)
7120 (remote_augmented_libraries_svr4_read_feature): Delete functions.
7121 (remote_protocol_features): Adjust to use remote_supported_packet
7122 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
7123 "ConditionalTracepoints", "ConditionalBreakpoints",
7124 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
7125 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
7126 "EnableDisableTracepoints", and "tracenz".
7127 (remote_query_supported): Use packet_support.
7128 (remote_open_1): Adjust.
7129 (extended_remote_attach_1): Use packet_support. Switch on the
7130 result of packet_ok instead of checking whether the packet ended
7131 up disabled.
7132 (remote_vcont_resume): Use packet_support.
7133 (remote_resume, remote_stop_ns, fetch_register_using_p)
7134 (remote_prepare_to_store, store_register_using_P)
7135 (check_binary_download, remote_write_bytes): Use packet_support.
7136 (remote_vkill): Use packet_support. Switch on the result of
7137 packet_ok instead of checking whether the packet ended up
7138 disabled.
7139 (extended_remote_supports_disable_randomization): Use
7140 packet_support.
7141 (extended_remote_run): Switch on the result of packet_ok instead
7142 of checking whether the packet ended up disabled.
7143 (remote_insert_breakpoint, remote_remove_breakpoint)
7144 (remote_insert_watchpoint, remote_remove_watchpoint)
7145 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
7146 packet_support.
7147 (remote_search_memory): Use packet_config_support.
7148 (remote_get_thread_local_address, remote_get_tib_address)
7149 (remote_hostio_send_command, remote_can_execute_reverse): Use
7150 packet_support.
7151 (remote_supports_cond_tracepoints)
7152 (remote_supports_cond_breakpoints)
7153 (remote_supports_fast_tracepoints)
7154 (remote_supports_static_tracepoints)
7155 (remote_supports_install_in_trace)
7156 (remote_supports_enable_disable_tracepoint)
7157 (remote_supports_string_tracing)
7158 (remote_can_run_breakpoint_commands): Rewrite, checking whether
7159 the packet config says the feature is enabled or disabled.
7160 (remote_download_tracepoint, remote_trace_set_readonly_regions)
7161 (remote_get_trace_status): Use packet_support.
7162 (remote_set_disconnected_tracing): Adjust to check whether the
7163 feature is enabled with packet_support.
7164 (remote_set_trace_buffer_size, remote_use_agent)
7165 (remote_can_use_agent, remote_supports_btrace): Use
7166 packet_support.
7167 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
7168 Use packet_config_support.
7169 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
7170 the packet config says the feature is enabled or disabled.
7171 (set_range_stepping): Use packet_support.
7172
bdb52a22
TT
71732014-04-25 Tom Tromey <tromey@redhat.com>
7174
7175 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
7176 argument.
7177
e9475ead
SA
71782014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
7179
7180 * NEWS: Mention support for C99 variable length arrays.
7181
82eacd52
JB
71822014-04-24 Joel Brobecker <brobecker@adacore.com>
7183
7184 * ada-lang.c (standard_exc): Expand introductory comment.
7185
01f9f808
MS
71862014-04-24 Michael Sturm <michael.sturm@mintel.com>
7187 Walfred Tedeschi <walfred.tedeschi@intel.com>
7188
7189 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
7190 AVX512 registers.
7191 (amd64_linux_read_description): Add code to handle AVX512 xstate
7192 mask and return respective tdesc.
7193 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
7194 and features/i386/x32-avx512-linux.c.
7195 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
7196 (amd64_linux_core_read_description): Add code to handle AVX512
7197 xstate mask and return respective tdesc.
7198 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
7199 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
7200 calculation.
7201 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
7202 (tdesc_amd64_avx512_linux): New prototype.
7203 (tdesc_x32_avx512_linux): Likewise.
7204 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
7205 features/i386/x32-avx512.c.
7206 (amd64_ymm_avx512_names): New register names for pseudo
7207 registers YMM16-31.
7208 (amd64_ymmh_avx512_names): New register names for raw registers
7209 YMMH16-31.
7210 (amd64_k_names): New register names for K registers.
7211 (amd64_zmmh_names): New register names for ZMM raw registers.
7212 (amd64_zmm_names): New registers names for ZMM pseudo registers.
7213 (amd64_xmm_avx512_names): New register names for XMM16-31
7214 registers.
7215 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
7216 registers.
7217 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
7218 if feature is present.
7219 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
7220 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
7221 (AMD64_NUM_REGS): Adjust to new number of registers.
7222 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
7223 registers supplied via XSTATE by AVX512 registers.
7224 (i386_linux_read_description): Add case for AVX512.
7225 * i386-linux-tdep.c: Include i386-avx512-linux.c.
7226 (i386_linux_gregset_reg_offset): Add AVX512 registers.
7227 (i386_linux_core_read_description): Add case for AVX512.
7228 (i386_linux_init_abi): Install supported register note section
7229 for AVX512.
7230 (_initialize_i386_linux_tdep): Add call to tdesc init function for
7231 AVX512.
7232 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
7233 registers to be number of zmm7h + 1.
7234 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
7235 * i386-tdep.c: Include features/i386/i386-avx512.c.
7236 (i386_zmm_names): Add ZMM pseudo register names array.
7237 (i386_zmmh_names): Add ZMM raw register names array.
7238 (i386_k_names): Add K raw register names array.
7239 (num_lower_zmm_regs): Add constant for the number of lower ZMM
7240 registers. AVX512 has 16 more ZMM registers than there are YMM
7241 registers.
7242 (i386_zmmh_regnum_p): Add function to look up register number of
7243 ZMM raw registers.
7244 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
7245 (i386_k_regnum_p): Likewise for K raw registers.
7246 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
7247 registers added by AVX512.
7248 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
7249 registers added by AVX512.
7250 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
7251 added by AVX512.
7252 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
7253 (i386_pseudo_register_name): Add ZMM pseudo registers.
7254 (i386_zmm_type): Construct and return vector registers type for ZMM
7255 registers.
7256 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
7257 ZMM0-31 pseudo registers and K registers.
7258 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
7259 and YMM16-31 registers from register cache.
7260 (i386_pseudo_register_write): Add code to write K, ZMM and
7261 YMM16-31 registers.
7262 (i386_register_reggroup_p): Add code to include/exclude AVX512
7263 registers in/from respective register groups.
7264 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
7265 registers if feature is present in xcr0.
7266 (i386_gdbarch_init): Add code to initialize AVX512 feature
7267 variables in tdep structure, wire in pseudo registers and call
7268 initialize_tdesc_i386_avx512.
7269 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
7270 variables.
7271 (i386_regnum): Add AVX512 registers.
7272 (I386_SSE_NUM_REGS): New define for number of SSE registers.
7273 (I386_AVX_NUM_REGS): Likewise for AVX registers.
7274 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
7275 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
7276 512 bits wide.
7277 (i386_xmm_avx512_regnum_p): New prototype for register look up.
7278 (i386_ymm_avx512_regnum_p): Likewise.
7279 (i386_k_regnum_p): Likewise.
7280 (i386_zmm_regnum_p): Likewise.
7281 (i386_zmmh_regnum_p): Likewise.
7282 * i387-tdep.c : Update year in copyright notice.
7283 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
7284 XSAVE buffer.
7285 (XSAVE_YMM_AVX512_ADDR): New macro.
7286 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
7287 XSAVE buffer.
7288 (XSAVE_XMM_AVX512_ADDR): New macro.
7289 (xsave_avx512_k_offset): New table for K register offsets in
7290 XSAVE buffer.
7291 (XSAVE_AVX512_K_ADDR): New macro.
7292 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
7293 in XSAVE buffer.
7294 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
7295 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
7296 buffer.
7297 (i387_collect_xsave): Add code to collect AVX512 registers from
7298 XSAVE buffer.
7299 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
7300 of XMM16-31 registers.
7301 (I387_NUM_K_REGS): New define for number of K registers.
7302 (I387_K0_REGNUM): New define for K0 register number.
7303 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
7304 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
7305 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
7306 registers.
7307 (I387_YMM16H_REGNUM): New define for YMM16H register number.
7308 (I387_XMM16_REGNUM): New define for XMM16 register number.
7309 (I387_YMM0_REGNUM): New define for YMM0 register number.
7310 (I387_KEND_REGNUM): New define for last K register number.
7311 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
7312 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
7313 number.
7314 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
7315 number.
7316 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
7317 size.
7318 * features/Makefile: Add AVX512 related files.
7319 * features/i386/32bit-avx512.xml: New file.
7320 * features/i386/64bit-avx512.xml: Likewise.
7321 * features/i386/amd64-avx512-linux.c: Likewise.
7322 * features/i386/amd64-avx512-linux.xml: Likewise.
7323 * features/i386/amd64-avx512.c: Likewise.
7324 * features/i386/amd64-avx512.xml: Likewise.
7325 * features/i386/i386-avx512-linux.c: Likewise.
7326 * features/i386/i386-avx512-linux.xml: Likewise.
7327 * features/i386/i386-avx512.c: Likewise.
7328 * features/i386/i386-avx512.xml: Likewise.
7329 * features/i386/x32-avx512-linux.c: Likewise.
7330 * features/i386/x32-avx512-linux.xml: Likewise.
7331 * features/i386/x32-avx512.c: Likewise.
7332 * features/i386/x32-avx512.xml: Likewise.
7333 * regformats/i386/amd64-avx512-linux.dat: New file.
7334 * regformats/i386/amd64-avx512.dat: Likewise.
7335 * regformats/i386/i386-avx512-linux.dat: Likewise.
7336 * regformats/i386/i386-avx512.dat: Likewise.
7337 * regformats/i386/x32-avx512-linux.dat: Likewise.
7338 * regformats/i386/x32-avx512.dat: Likewise.
7339 * NEWS: Add note about new support for AVX512.
7340
7341
08351840
PA
73422014-04-23 Pedro Alves <palves@redhat.com>
7343
7344 * breakpoint.c (insert_bp_location): Tolerate errors if the
7345 breakpoint is set in a user-loaded objfile.
7346 (remove_breakpoint_1): Likewise. Also tolerate errors if the
7347 location is marked shlib_disabled. If the breakpoint is set in a
7348 user-loaded objfile is a GDB-side memory breakpoint, validate it
7349 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
7350 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
7351 flag.
7352 * mem-break.c (memory_validate_breakpoint): New function.
7353 * objfiles.c (userloaded_objfile_contains_address_p): New
7354 function.
7355 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
7356 * target.h (memory_validate_breakpoint): New declaration.
7357
076855f9
PA
73582014-04-23 Pedro Alves <palves@redhat.com>
7359
7360 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
7361 the breakpoint is set in a shared library, only suppress
7362 errors for software breakpoints, not hardware breakpoints.
7363
483805cf
PA
73642014-04-22 Pedro Alves <palves@redhat.com>
7365
7366 * infrun.c (schedlock_applies): New function, factored out from
7367 find_thread_needs_step_over.
7368 (find_thread_needs_step_over): Use it.
7369 (switch_back_to_stepped_thread): Always clear trap_expected if the
7370 step over is finished. Return early if scheduler locking applies.
7371 Look for the stepping thread and a potential step-over thread with
7372 a single loop.
7373 (currently_stepping_or_nexting_callback): Delete.
7374
a75fef0e
NC
73752014-04-22 Nick Clifton <nickc@redhat.com>
7376
7377 * NEWS: Mention that ARM sim now supports tracing.
7378
48b6e87e
YQ
73792014-04-22 Yao Qi <yao@codesourcery.com>
7380
7381 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
7382 to ...
7383 * tracefile.c (tracefile_fetch_registers): ... it. New
7384 function.
7385 * tracefile.h (tracefile_fetch_registers): Declare.
7386 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
7387 tracefile_fetch_registers.
7388
17617f2d
EZ
73892014-04-19 Eli Zaretskii <eliz@gnu.org>
7390
7391 PR gdb/14018
7392 * windows-nat.c (thread_rec): Don't display a warning when
7393 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
7394 fails for any reason, set th->suspended to -1, so that we don't
7395 try to resume such a thread. Also, don't return NULL in these
7396 cases, to avoid completely ruin the session due to "PC register is
7397 not available" error.
7398 (do_windows_fetch_inferior_registers): Check errors in
7399 GetThreadContext call.
7400 (windows_continue): Accept an additional argument KILLED; if not
7401 zero, ignore errors in the SetThreadContext call, since the
7402 inferior was killed and is shutting down.
7403 (windows_resume, get_windows_debug_event)
7404 (windows_create_inferior, windows_mourn_inferior)
7405 (windows_kill_inferior): All callers of windows_continue changed
7406 to adjust to its new calling sequence.
7407
5723a6fd
YQ
74082014-04-19 Yao Qi <yao@codesourcery.com>
7409
7410 * ctf.c (ctf_open): Call post_create_inferior.
7411
614d5099
YQ
74122014-04-19 Yao Qi <yao@codesourcery.com>
7413
7414 * ctf.c (handle_id): New static variable.
7415 (ctf_open_dir): Get handle_id from bt_context_add_trace return
7416 value. Get the declaration of event "register" and get length
7417 of field "contents".
7418
dac3e710
YQ
74192014-04-19 Yao Qi <yao@codesourcery.com>
7420
7421 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
7422
2bca57ba
SC
74232014-04-18 Siva Chandra Reddy <sivachandra@google.com>
7424
7425 * valops.c (oload_method_static): Remove unnecessary argument
7426 METHOD. Update all callers.
7427
51d48146
PA
74282014-04-18 Pedro alves <palves@redhat.com>
7429 Tom Tromey <tromey@redhat.com>
7430
7431 PR backtrace/15558
7432 * frame.c (get_prev_frame_1): Rename to ...
7433 (get_prev_frame_always): ... this, and make extern. Adjust.
7434 (skip_artificial_frames): Use get_prev_frame_always.
7435 (frame_unwind_caller_id, frame_pop, get_prev_frame)
7436 (get_frame_unwind_stop_reason): Adjust to rename.
7437 * frame.h (get_prev_frame_always): Declare.
7438 * inline-frame.c: Include frame.h.
7439 (inline_frame_this_id): Use get_prev_frame_always.
7440
1bdad2e0
TG
74412014-04-18 Tristan Gingold <gingold@adacore.com>
7442
7443 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
7444 code by using bfd_mach_o_get_base_address.
7445
7ce16bd4
UW
74462014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
7447
7448 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
7449 (spu_ax_pseudo_register_collect): New function.
7450 (spu_ax_pseudo_register_push_stack): Likewise.
7451 (spu_dwarf_reg_to_regnum): Likewise.
7452 (spu_gdbarch_init): Install them. Append DWARF unwinders.
7453
2ed3c037
UW
74542014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
7455
7456 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
7457 Replace FRAME argument with FRAME_ID.
7458 * gdbarch.c, gdbarch.h: Regenerate.
7459 * findvar.c (default_value_from_register): Add GDBARCH argument;
7460 replace FRAME by FRAME_ID. No longer call get_frame_id.
7461 (value_from_register): Update call to gdbarch_value_from_register.
7462 * value.h (default_value_from_register): Update prototype.
7463 * s390-linux-tdep.c (s390_value_from_register): Update interface
7464 and call to default_value_from_register.
7465 * spu-tdep.c (spu_value_from_register): Likewise.
7466
7467 * findvar.c (address_from_register): Remove TYPE argument.
7468 Do not call value_from_register; use gdbarch_value_from_register
7469 with null_frame_id instead.
7470 * value.h (address_from_register): Update prototype.
7471 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
7472 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
7473 address_from_register interface change.
7474
71e50e83
YQ
74752014-04-17 Yao Qi <yao@codesourcery.com>
7476
7477 * gdbtypes.h: Update comments to link to types and macros'
7478 definitions.
7479
7a23c549
SC
74802014-04-16 Siva Chandra Reddy <sivachandra@google.com>
7481
7482 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
7483
22869d73
KS
74842014-04-16 Keith Seitz <keiths@redhat.com>
7485
7486 PR gdb/15827
7487 * dwarf2read.c (skip_one_die): Check that all relative-offset
7488 sibling DIEs fall within range of the current reader's buffer.
7489 (read_partial_die): Likewise.
7490
c4f87ca6
KS
74912014-04-16 Keith Seitz <keiths@redhat.com>
7492
7493 PR c++/16597
7494 * cp-namespace.c (lookup_symbol_file): If the type name of
7495 `this' is NULL, return immediately.
7496
b50c8614
KS
74972014-04-14 Keith Seitz <keiths@redhat.com>
7498
7499 PR c++/16253
7500 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
7501 from symbol_matches_domain in symtab.c. All local callers
7502 of symbol_matches_domain updated.
7503 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
7504 search STRUCT_DOMAIN.
7505 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
7506 independently. standard_lookup will do that automatically.
7507 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
7508 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7509 (cp_lookup_symbol_in_namespace): Likewise.
7510 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
7511 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
7512 may return a STRUCT_DOMAIN match.
7513 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
7514 * cp-support.c: Include language.h.
7515 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
7516 VAR_DOMAIN.
7517 * psymtab.c (match_partial_symbol): Compare the requested
7518 domain with the symbol's domain directly.
7519 (lookup_partial_symbol): Likewise.
7520 * symtab.c (lookup_symbol_in_language): Explain when/why
7521 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7522 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
7523 appropriate languages.
7524 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
7525 and moved to ada-lang.c
7526 (lookup_block_symbol): Explain that this function only returns
7527 symbol matching the requested DOMAIN.
7528 Compare the requested domain with the symbol's domain directly.
7529 (iterate_over_symbols): Compare the requested domain with the
7530 symbol's domain directly.
7531 * symtab.h (symbol_matches_domain): Remove.
7532
3d567982
TT
75332014-04-14 Tom Tromey <tromey@redhat.com>
7534
7535 PR c++/15246:
7536 * c-exp.y (type_aggregate_p): New function.
7537 (qualified_name, classify_inner_name): Use it.
7538 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
7539 and TYPE_TARGET_TYPE of an enum type.
7540 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
7541 an enum type.
7542 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
7543 handle TYPE_DECLARED_CLASS.
7544 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
7545 types.
7546 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
7547 * valops.c (enum_constant_from_type): New function.
7548 (value_aggregate_elt): Use it.
7549 * cp-namespace.c (cp_lookup_nested_symbol): Handle
7550 TYPE_CODE_ENUM.
7551
c848d642
TT
75522014-04-14 Tom Tromey <tromey@redhat.com>
7553
7554 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
7555 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
7556 const.
7557 * value.h (value_aggregate_elt): Update.
7558
0626fc76
TT
75592014-04-14 Tom Tromey <tromey@redhat.com>
7560
7561 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
7562
5ecaaa66
SA
75632014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7564
7565 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7566 (evaluate_subexp_standard): Pass noside argument.
7567 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7568 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7569 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7570 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7571 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7572
1612e0c0
SA
75732014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7574
7575 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7576 points to a constant blob.
7577
c451ebe5
SA
75782014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7579
7580 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7581 property and store it as the high bound and flag the range accordingly.
7582 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7583 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7584 * gdbtypes.h (enum range_flags): New enum.
7585 (struct range_bounds): Add flags member.
7586
1d42e4c4
SA
75872014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7588
7589 * c-typeprint.c (c_type_print_varspec_suffix): Added
7590 check for not yet resolved high bound. If unresolved, print
7591 "variable length" string to the console instead of random
7592 length.
7593
9f1f738a
SA
75942014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7595
7596 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
7597 value.
7598 (ada_template_to_fixed_record_type_1): Likewise.
7599 (ada_to_fixed_type_1): Likewise.
7600 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7601 (cp_print_value): Likewise.
7602 * d-valprint.c (dynamic_array_type): Likewise.
7603 * findvar.c (address_of_variable): Likewise.
7604 * jv-valprint.c (java_value_print): Likewise.
7605 * valops.c (value_ind): Likewise.
7606 * value.c (coerce_ref): Likewise.
7607
3c8452d4
SA
76082014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7609
7610 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7611 value and retrieve the dynamic type size.
7612
4ad88275
SA
76132014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7614
7615 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7616 passed to sizeof is dynamic evaluate the argument to compute the length.
7617
80180f79
SA
76182014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7619 Joel Brobecker <brobecker@adacore.com>
7620
7621 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7622 (dwarf2_evaluate_property): New function.
7623 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7624 * dwarf2read.c (attr_to_dynamic_prop): New function.
7625 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7626 attribute.
7627 * gdbtypes.c: Include dwarf2loc.h.
7628 (is_dynamic_type): New function.
7629 (resolve_dynamic_type): New function.
7630 (resolve_dynamic_bounds): New function.
7631 (get_type_length): New function.
7632 (check_typedef): Use get_type_length to compute type length.
7633 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7634 (TYPE_LOW_BOUND_KIND): New macro.
7635 (is_dynamic_type): New function prototype.
7636 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7637 to resolve dynamic properties of the type. Update comment.
7638 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7639
a1556843
RH
76402014-04-14 Richard Henderson <rth@redhat.com>
7641
7642 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
7643
0be03e84
DE
76442014-04-12 Siva Chandra Reddy <sivachandra@google.com>
7645 Doug Evans <xdje42@gmail.com>
7646
7647 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
7648 dereference TYPE_CODE_REF values.
7649
6b662e19
JB
76502014-04-11 Joel Brobecker <brobecker@adacore.com>
7651
7652 Revert the following changes due to regressions:
7653
7654 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7655 (dwarf2_evaluate_property): New function.
7656 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7657 * dwarf2read.c (attr_to_dynamic_prop): New function.
7658 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7659 attribute.
7660 * gdbtypes.c: Include dwarf2loc.h.
7661 (is_dynamic_type): New function.
7662 (resolve_dynamic_type): New function.
7663 (resolve_dynamic_bounds): New function.
7664 (get_type_length): New function.
7665 (check_typedef): Use get_type_length to compute type length.
7666 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7667 (TYPE_LOW_BOUND_KIND): New macro.
7668 (is_dynamic_type): New function prototype.
7669 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7670 to resolve dynamic properties of the type. Update comment.
7671 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7672
7673 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7674 passed to sizeof is dynamic evaluate the argument to compute the length.
7675
7676 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7677 value and retrieve the dynamic type size.
7678
7679 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7680 (ada_template_to_fixed_record_type_1): Likewise.
7681 (ada_to_fixed_type_1): Likewise.
7682 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7683 (cp_print_value): Likewise.
7684 * d-valprint.c (dynamic_array_type): Likewise.
7685 * eval.c (evaluate_subexp_with_coercion): Likewise.
7686 * findvar.c (address_of_variable): Likewise.
7687 * jv-valprint.c (java_value_print): Likewise.
7688 * valops.c (value_ind): Likewise.
7689 * value.c (coerce_ref): Likewise.
7690
7691 * c-typeprint.c (c_type_print_varspec_suffix): Added
7692 check for not yet resolved high bound. If unresolved, print
7693 "variable length" string to the console instead of random
7694 length.
7695
7696 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7697 property and store it as the high bound and flag the range accordingly.
7698 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7699 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7700 * gdbtypes.h (enum range_flags): New enum.
7701 (struct range_bounds): Add flags member.
7702
7703 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7704 points to a constant blob.
7705
7706 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7707 (evaluate_subexp_standard): Pass noside argument.
7708 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7709 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7710 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7711 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7712 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7713
245a5f0b
KS
77142014-04-11 Keith Seitz <keiths@redhat.com>
7715
7716 PR c++/16675
7717 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
7718 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
7719 reference types.
7720
3bce8237
SA
77212014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7722
7723 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7724 (evaluate_subexp_standard): Pass noside argument.
7725 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7726 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7727 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7728 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7729 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7730
92b09522
SA
77312014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7732
7733 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7734 points to a constant blob.
7735
e1969afb
SA
77362014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7737
7738 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7739 property and store it as the high bound and flag the range accordingly.
7740 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7741 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7742 * gdbtypes.h (enum range_flags): New enum.
7743 (struct range_bounds): Add flags member.
7744
b86138fb
SA
77452014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7746
7747 * c-typeprint.c (c_type_print_varspec_suffix): Added
7748 check for not yet resolved high bound. If unresolved, print
7749 "variable length" string to the console instead of random
7750 length.
7751
bcd629a4
SA
77522014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7753
7754 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7755 (ada_template_to_fixed_record_type_1): Likewise.
7756 (ada_to_fixed_type_1): Likewise.
7757 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7758 (cp_print_value): Likewise.
7759 * d-valprint.c (dynamic_array_type): Likewise.
7760 * eval.c (evaluate_subexp_with_coercion): Likewise.
7761 * findvar.c (address_of_variable): Likewise.
7762 * jv-valprint.c (java_value_print): Likewise.
7763 * valops.c (value_ind): Likewise.
7764 * value.c (coerce_ref): Likewise.
7765
04b19544
SA
77662014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7767
7768 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7769 value and retrieve the dynamic type size.
7770
26cb189f
SA
77712014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7772
7773 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7774 passed to sizeof is dynamic evaluate the argument to compute the length.
7775
37c1ab67
SA
77762014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7777
7778 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7779 (dwarf2_evaluate_property): New function.
7780 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7781 * dwarf2read.c (attr_to_dynamic_prop): New function.
7782 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7783 attribute.
7784 * gdbtypes.c: Include dwarf2loc.h.
7785 (is_dynamic_type): New function.
7786 (resolve_dynamic_type): New function.
7787 (resolve_dynamic_bounds): New function.
7788 (get_type_length): New function.
7789 (check_typedef): Use get_type_length to compute type length.
7790 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7791 (TYPE_LOW_BOUND_KIND): New macro.
7792 (is_dynamic_type): New function prototype.
7793 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7794 to resolve dynamic properties of the type. Update comment.
7795 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7796
729efb13
SA
77972014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7798
7799 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
7800 declaring high/low bounds and change uses accordingly. Call
7801 create_range_type instead of create_static_range_type.
7802 * gdbtypes.c (create_range_type): New function.
7803 (create_range_type): Convert bounds into struct bound_prop and pass
7804 them to create_range_type.
7805 * gdbtypes.h (struct bound_prop): New struct.
7806 (create_range_type): New function prototype.
7807 (struct range_bounds): Use struct bound_prop instead of LONGEST for
7808 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
7809 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
7810 part of the bound.
7811 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
7812
0c9c3474
SA
78132014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7814
7815 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
7816 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
7817 * ada-lang.c: All uses of create_range_type updated.
7818 * coffread.c: All uses of create_range_type updated.
7819 * dwarf2read.c: All uses of create_range_type updated.
7820 * f-exp.y: All uses of create_range_type updated.
7821 * m2-valprint.c: All uses of create_range_type updated.
7822 * mdebugread.c: All uses of create_range_type updated.
7823 * stabsread.c: All uses of create_range_type updated.
7824 * valops.c: All uses of create_range_type updated.
7825 * valprint.c: All uses of create_range_type updated.
7826
9d497a19
PA
78272014-04-10 Pedro Alves <palves@redhat.com>
7828
7829 * breakpoint.c (single_step_breakpoints)
7830 (single_step_gdbarch): Move up in the file.
7831 (one_breakpoint_xfer_memory): New function, factored out from ...
7832 (breakpoint_xfer_memory): ... here. Also process single-step
7833 breakpoints.
7834
15a9128a
TG
78352014-04-09 Tristan Gingold <gingold@adacore.com>
7836
7837 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
7838 comments.
7839 (darwin_decode_exception_message): Free port only after use.
7840
9c97a070
PL
78412014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
7842
7843 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
7844 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
7845 when setting the size of call_length.
7846
7af389b8
SC
78472014-04-07 Siva Chandra Reddy <sivachandra@google.com>
7848
7849 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
7850 dereference TYPE_CODE_REF values.
7851
86ad98c3
JB
78522014-04-07 Joel Brobecker <brobecker@adacore.com>
7853
7854 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
7855 end of warning message.
7856
b0aeadb3
DE
78572014-04-03 Doug Evans <dje@google.com>
7858
7859 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
7860 of stub_comp_unit_die, stub_comp_dir is non-NULL.
7861
5979d6b6
AM
78622014-04-02 Alan Modra <amodra@gmail.com>
7863
7864 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
7865 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
7866 (struct symbol_file_add_from_memory_args): Add size field.
7867 (find_vdso_size): New function.
7868 (add_vsyscall_page): Attempt to find vdso size.
7869
0d60c288
DE
78702014-04-01 Doug Evans <dje@google.com>
7871
7872 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
7873
a41f2563
TG
78742014-04-01 Tristan Gingold <gingold@adacore.com>
7875
7876 * darwin-nat.c (darwin_encode_reply): Add prototype.
7877 (darwin_decode_exception_message): Reply to unknown inferiors.
7878 (darwin_decode_message): Handle message by id. Ignore message
7879 to unknown inferior.
7880 (darwin_wait): Discard unknown messages, add debug trace.
7881
11a865c8
DE
78822014-03-31 Doug Evans <dje@google.com>
7883
7884 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
7885 comp_dir_string.
7886
770e7fc7
DE
78872014-03-31 Doug Evans <dje@google.com>
7888
7889 New option "set print symbol-loading".
7890 * NEWS: Mention it.
7891 * solib.c (solib_read_symbols): Only print symbol loading messages
7892 if requested.
7893 (solib_add): If symbol loading is in "brief" mode, notify user
7894 symbols are being loaded.
7895 (reload_shared_libraries_1): Ditto.
7896 * symfile.c (print_symbol_loading_off): New static global.
7897 (print_symbol_loading_brief): New static global.
7898 (print_symbol_loading_full): New static global.
7899 (print_symbol_loading_enums): New static global.
7900 (print_symbol_loading): New static global.
7901 (print_symbol_loading_p): New function.
7902 (symbol_file_add_with_addrs): Only print symbol loading messages
7903 if requested.
7904 (_initialize_symfile): Register "print symbol-loading" set/show
7905 command.
7906 * symfile.h (print_symbol_loading_p): Declare.
7907
c32c64b7
DE
79082014-03-30 Doug Evans <xdje42@gmail.com>
7909
7910 * infrun.c (set_last_target_status): New function.
7911 (handle_inferior_event): Call it.
7912
7c0bc051
DE
79132014-03-30 Doug Evans <xdje42@gmail.com>
7914
7915 * inferior.h (enum stop_kind): Improve comment.
7916
8776cfe9
JB
79172014-03-28 Joel Brobecker <brobecker@adacore.com>
7918
7919 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
7920 a reference, strip the reference layer before calling
7921 the lang_ops value_has_mutated callback.
7922
410a0ff2
SDJ
79232014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
7924
7925 Remove some globals from our parser.
7926 * language.c (unk_lang_parser): Add "struct parser_state"
7927 argument.
7928 * language.h (struct language_defn) <la_parser>: Likewise.
7929 * parse.c (expout, expout_size, expout_ptr): Remove variables.
7930 (initialize_expout): Add "struct parser_state" argument.
7931 Rewrite function to use the parser state.
7932 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
7933 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
7934 write_exp_elt_longcst, write_exp_elt_dblcst,
7935 write_exp_elt_decfloatcst, write_exp_elt_type,
7936 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
7937 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
7938 write_dollar_variable): Likewise.
7939 (parse_exp_in_context_1): Use parser state.
7940 (insert_type_address_space): Add "struct parser_state" argument.
7941 Use parser state.
7942 (increase_expout_size): New function.
7943 * parser-defs.h: Forward declare "struct language_defn" and
7944 "struct parser_state".
7945 (expout, expout_size, expout_ptr): Remove extern declarations.
7946 (parse_gdbarch, parse_language): Rewrite macro declarations to
7947 accept the parser state.
7948 (struct parser_state): New struct.
7949 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
7950 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
7951 write_exp_elt_decfloatcst, write_exp_elt_type,
7952 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
7953 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
7954 write_exp_msymbol, write_dollar_variable,
7955 mark_struct_expression, insert_type_address_space): Add "struct
7956 parser_state" argument.
7957 (increase_expout_size): New function.
7958 * utils.c (do_clear_parser_state): New function.
7959 (make_cleanup_clear_parser_state): Likewise.
7960 * utils.h (make_cleanup_clear_parser_state): New function
7961 prototype.
7962 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
7963 Update calls to write_exp* in order to pass the parser state.
7964 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
7965 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
7966 (i386_stap_parse_special_token_three_arg_disp): Likewise.
7967 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
7968 * stap-probe.c (stap_parse_register_operand): Likewise.
7969 (stap_parse_single_operand): Likewise.
7970 (stap_parse_argument_1): Likewise.
7971 (stap_parse_argument): Use parser state.
7972 * stap-probe.h: Include "parser-defs.h".
7973 (struct stap_parse_info) <pstate>: New field.
7974 * c-exp.y (parse_type): Rewrite to use parser state.
7975 (yyparse): Redefine to c_parse_internal.
7976 (pstate): New global variable.
7977 (parse_number): Add "struct parser_state" argument.
7978 (write_destructor_name): Likewise.
7979 (type_exp): Update calls to write_exp* and similars in order to
7980 use parser state.
7981 (exp1, exp, variable, qualified_name, space_identifier,
7982 typename, typebase): Likewise.
7983 (write_destructor_name, parse_number, lex_one_token,
7984 classify_name, classify_inner_name, c_parse): Add "struct
7985 parser_state" argument. Update function to use parser state.
7986 * c-lang.h: Forward declare "struct parser_state".
7987 (c_parse): Add "struct parser_state" argument.
7988 * ada-exp.y (parse_type): Rewrite macro to use parser state.
7989 (yyparse): Redefine macro to ada_parse_internal.
7990 (pstate): New variable.
7991 (write_int, write_object_renaming, write_var_or_type,
7992 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
7993 type_int, type_long, type_long_long, type_float, type_double,
7994 type_long_double, type_char, type_boolean, type_system_address):
7995 Add "struct parser_state" argument.
7996 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
7997 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
7998 var_or_type, aggregate, aggregate_component_list,
7999 positional_list, others, component_group,
8000 component_associations): Update calls to write_exp* and similar
8001 functions in order to use parser state.
8002 (ada_parse, write_var_from_sym, write_int,
8003 write_exp_op_with_string, write_object_renaming,
8004 find_primitive_type, write_selectors, write_ambiguous_var,
8005 write_var_or_type, write_name_assoc, type_int, type_long,
8006 type_long_long, type_float, type_double, type_long_double,
8007 type_char, type_boolean, type_system_address): Add "struct
8008 parser_state" argument. Adjust function to use parser state.
8009 * ada-lang.c (parse): Likewise.
8010 * ada-lang.h: Forward declare "struct parser_state".
8011 (ada_parse): Add "struct parser_state" argument.
8012 * ada-lex.l (processInt, processReal): Likewise. Adjust all
8013 calls to both functions.
8014 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
8015 parser state.
8016 (yyparse): Redefine macro to f_parse_internal.
8017 (pstate): New variable.
8018 (parse_number): Add "struct parser_state" argument.
8019 (type_exp, exp, subrange, typebase): Update calls to write_exp*
8020 and similars in order to use parser state.
8021 (parse_number): Adjust code to use parser state.
8022 (yylex): Likewise.
8023 (f_parse): New function.
8024 * f-lang.h: Forward declare "struct parser_state".
8025 (f_parse): Add "struct parser_state" argument.
8026 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
8027 parser state.
8028 (yyparse): Redefine macro for java_parse_internal.
8029 (pstate): New variable.
8030 (push_expression_name, push_expression_name, insert_exp): Add
8031 "struct parser_state" argument.
8032 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
8033 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
8034 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
8035 PostIncrementExpression, PostDecrementExpression,
8036 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
8037 UnaryExpressionNotPlusMinus, CastExpression,
8038 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
8039 RelationalExpression, EqualityExpression, AndExpression,
8040 ExclusiveOrExpression, InclusiveOrExpression,
8041 ConditionalAndExpression, ConditionalOrExpression,
8042 ConditionalExpression, Assignment, LeftHandSide): Update
8043 calls to write_exp* and similars in order to use parser state.
8044 (parse_number): Ajust code to use parser state.
8045 (yylex): Likewise.
8046 (java_parse): New function.
8047 (push_variable): Add "struct parser_state" argument. Adjust
8048 code to user parser state.
8049 (push_fieldnames, push_qualified_expression_name,
8050 push_expression_name, insert_exp): Likewise.
8051 * jv-lang.h: Forward declare "struct parser_state".
8052 (java_parse): Add "struct parser_state" argument.
8053 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
8054 parser state.
8055 (yyparse): Redefine macro to m2_parse_internal.
8056 (pstate): New variable.
8057 (type_exp, exp, fblock, variable, type): Update calls to
8058 write_exp* and similars to use parser state.
8059 (yylex): Likewise.
8060 (m2_parse): New function.
8061 * m2-lang.h: Forward declare "struct parser_state".
8062 (m2_parse): Add "struct parser_state" argument.
8063 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
8064 * objc-lang.h: Forward declare "struct parser_state".
8065 (end_msglist): Add "struct parser_state" argument.
8066 * p-exp.y (parse_type): Rewrite macro to use parser state.
8067 (yyparse): Redefine macro to pascal_parse_internal.
8068 (pstate): New variable.
8069 (parse_number): Add "struct parser_state" argument.
8070 (type_exp, exp1, exp, qualified_name, variable): Update calls to
8071 write_exp* and similars in order to use parser state.
8072 (parse_number, yylex): Adjust code to use parser state.
8073 (pascal_parse): New function.
8074 * p-lang.h: Forward declare "struct parser_state".
8075 (pascal_parse): Add "struct parser_state" argument.
8076 * go-exp.y (parse_type): Rewrite macro to use parser state.
8077 (yyparse): Redefine macro to go_parse_internal.
8078 (pstate): New variable.
8079 (parse_number): Add "struct parser_state" argument.
8080 (type_exp, exp1, exp, variable, type): Update calls to
8081 write_exp* and similars in order to use parser state.
8082 (parse_number, lex_one_token, classify_name, yylex): Adjust code
8083 to use parser state.
8084 (go_parse): Likewise.
8085 * go-lang.h: Forward declare "struct parser_state".
8086 (go_parse): Add "struct parser_state" argument.
8087
342587c4
DE
80882014-03-27 Doug Evans <dje@google.com>
8089
8090 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
8091
33e80786
DE
80922014-03-27 Doug Evans <dje@google.com>
8093
8094 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
8095 Remove argument abbrev_section. All callers updated.
8096
1dbab08b
DE
80972014-03-27 Doug Evans <dje@google.com>
8098
8099 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
8100 addr_base, ranges_base.
8101
318d3177
KS
81022014-03-26 Keith Seitz <keiths@redhat.com>
8103
8104 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
8105 types, not VAR_DOMAIN.
8106
1e54db15
SL
81072014-03-25 Sandra Loosemore <sandra@codesourcery.com>
8108
8109 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
8110 "ra" registers.
8111 * features/nios2-linux.c: Regenerated.
8112 * features/nios2.c: Regenerated.
8113
d3839ede
PA
81142014-03-25 Pedro Alves <palves@redhat.com>
8115
8116 * cli/cli-script.c (script_from_file): Force the interpreter to
8117 sync mode.
8118
7588d2ec
PL
81192014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
8120
8121 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
8122 small stack allocation.
8123
a6290449
TG
81242014-03-24 Tristan Gingold <gingold@adacore.com>
8125
8126 * darwin-nat.c (exc_server): Remove unused prototype.
8127 (darwin_dump_message): Correctly display data on x86_64.
8128 (darwin_encode_reply): Fix style.
8129 Add comments and fix indentation.
8130
31ae9d24 81312014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
69fa4030
PL
8132
8133 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
8134
6339bfc4
DE
81352014-03-22 Doug Evans <xdje42@gmail.com>
8136
8137 * infcmd.c: Whitespace fixes.
8138 (interrupt_command): Merge two function comments into one.
8139
0a07590b
DE
81402014-03-22 Doug Evans <xdje42@gmail.com>
8141
8142 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
8143 All uses updated.
8144
b55fbac4
YQ
81452014-03-22 Yao Qi <yao@codesourcery.com>
8146
8147 * remote.c (target_read_live_memory): Remove.
8148 (memory_xfer_live_readonly_partial): Rename it to
8149 remote_xfer_live_readonly_partial. Remove argument 'object'.
8150 All callers updated. Call remote_read_bytes_1
8151 instead of target_read_live_memory.
8152 * tracepoint.c (set_traceframe_number): Remove.
8153 (make_cleanup_restore_traceframe_number): Likewise .
8154 * tracepoint.h (set_traceframe_number): Remove declaration.
8155 (make_cleanup_restore_traceframe_number): Likewise.
8156
9217e74e
YQ
81572014-03-22 Yao Qi <yao@codesourcery.com>
8158
8159 * remote.c (remote_read_bytes): Move code on reading from the
8160 remote stub to ...
8161 (remote_read_bytes_1): ... here. New function.
8162
8acf9577
YQ
81632014-03-22 Yao Qi <yao@codesourcery.com>
8164
8165 * ctf.c (ctf_xfer_partial): Check the return value of
8166 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
8167 return TARGET_XFER_UNAVAILABLE.
8168 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8169 * target.c (target_read_live_memory): Move it to remote.c.
8170 (memory_xfer_live_readonly_partial): Likewise.
8171 (memory_xfer_partial_1): Move some code to remote_read_bytes.
8172 * remote.c (target_read_live_memory): Moved from target.c.
8173 (memory_xfer_live_readonly_partial): Likewise.
8174 (remote_read_bytes): Factored out from
8175 memory_xfer_partial_1.
8176
feef67ab
DE
81772014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
8178
8179 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
8180 NULL pointer.
8181
b65dc60b
PA
81822014-03-21 Pedro Alves <palves@redhat.com>
8183
8184 * infrun.c (normal_stop): Extend comment.
8185
b4ab256d
HZ
81862014-03-21 Hui Zhu <hui@codesourcery.com>
8187 Pedro Alves <palves@redhat.com>
8188
8189 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
8190 static buffer.
8191 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
8192 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
8193 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
8194
deba7593
MR
81952014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
8196
8197 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
8198 `z' formatted output modifier.
8199
1bff71c3
SDJ
82002014-03-20 Tom Tromey <tromey@redhat.com>
8201 Sergio Durigan Junior <sergiodj@redhat.com>
8202
8203 * probe.c (parse_probes): Turn assert into an ordinary error.
8204 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
8205 exceptions when parsing probes. Rearrange the code for clarity.
8206
90e28950
TT
82072014-03-20 Tom Tromey <tromey@redhat.com>
8208
8209 PR gdb/14135
8210 * top.c (execute_command): Only dispatch events if the command
8211 started the target.
8212
beb460e8
PA
82132014-03-20 Tom Tromey <tromey@redhat.com>
8214
8215 PR cli/15718
8216 * infcall.c: Include event-top.h.
8217 (run_inferior_call): Call async_disable_stdin if needed.
8218
99619bea
PA
82192014-03-20 Pedro Alves <palves@redhat.com>
8220
8221 * infrun.c (prepare_to_proceed): Delete.
8222 (thread_still_needs_step_over): New function.
8223 (find_thread_needs_step_over): New function.
8224 (proceed): If the current thread needs a step-over, set its
8225 steping_over_breakpoint flag. Adjust to use
8226 find_thread_needs_step_over instead of prepare_to_proceed.
8227 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
8228 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
8229 breakpoint.
8230 (switch_back_to_stepped_thread): Step over breakpoints of all
8231 threads not the stepping thread, before switching back to the
8232 stepping thread.
8233
2adfaa28
PA
82342014-03-20 Pedro Alves <palves@redhat.com>
8235
8236 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
8237 extern.
8238 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
8239 * infrun.c (saved_singlestep_ptid)
8240 (stepping_past_singlestep_breakpoint): Delete.
8241 (resume): Remove stepping_past_singlestep_breakpoint handling.
8242 (proceed): Store the prev_pc of the stepping thread too.
8243 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
8244 singlestep_pc.
8245 (enum infwait_states): Delete infwait_thread_hop_state.
8246 (struct execution_control_state) <hit_singlestep_breakpoint>: New
8247 field.
8248 (handle_inferior_event): Adjust.
8249 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
8250 handling and the thread-hop code. Before removing single-step
8251 breakpoints, check whether the thread hit a single-step breakpoint
8252 of another thread. If it did, the trap is not a random signal.
8253 (switch_back_to_stepped_thread): If the event thread hit a
8254 single-step breakpoint, unblock it before switching to the
8255 stepping thread. Handle the case of the stepped thread having
8256 advanced already.
8257 (keep_going): Handle the case of the current thread moving past a
8258 single-step breakpoint.
8259
31e77af2
PA
82602014-03-20 Pedro Alves <palves@redhat.com>
8261
8262 PR breakpoints/7143
8263 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
8264 are being stepped over.
8265 (breakpoint_address_match): Make extern.
8266 * breakpoint.h (breakpoint_address_match): New declaration.
8267 * inferior.h (stepping_past_instruction_at): New declaration.
8268 * infrun.c (struct step_over_info): New type.
8269 (step_over_info): New global.
8270 (set_step_over_info, clear_step_over_info)
8271 (stepping_past_instruction_at): New functions.
8272 (handle_inferior_event): Clear the step-over info when
8273 trap_expected is cleared.
8274 (resume): Remove now stale comment.
8275 (clear_proceed_status): Clear step-over info.
8276 (proceed): Adjust step-over handling to set or clear the step-over
8277 info instead of removing all breakpoints.
8278 (handle_signal_stop): When setting up a thread-hop, don't remove
8279 breakpoints here.
8280 (stop_stepping): Clear step-over info.
8281 (keep_going): Adjust step-over handling to set or clear step-over
8282 info and then always inserting breakpoints, instead of removing
8283 all breakpoints when stepping over one.
8284
b9f437de
PA
82852014-03-20 Pedro Alves <palves@redhat.com>
8286
8287 * infrun.c (previous_inferior_ptid): Adjust comment.
8288 (deferred_step_ptid): Delete.
8289 (infrun_thread_ptid_changed, prepare_to_proceed)
8290 (init_wait_for_inferior): Adjust.
8291 (handle_signal_stop): Delete deferred_step_ptid handling.
8292
06c868a8
JK
82932014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
8294
8295 PR gdb/15358
8296 * defs.h (sync_quit_force_run): New declaration.
8297 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
8298 * event-top.c (async_sigterm_handler): New declaration.
8299 (async_sigterm_token): New variable.
8300 (async_init_signals): Create also async_sigterm_token.
8301 (async_sigterm_handler): New function.
8302 (sync_quit_force_run): New variable.
8303 (handle_sigterm): Replace quit_force call by other calls.
8304 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
8305
dea80df0
MR
83062014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
8307
8308 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
8309 offset into SPE pseudo registers.
8310
0c7e1a46
PA
83112014-03-18 Pedro Alves <palves@redhat.com>
8312
8313 PR gdb/13860
8314 * inferior.h (print_stop_event): Declare.
8315 * infrun.c (print_stop_event): New, factored out from ...
8316 (normal_stop): ... this.
8317 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
8318 of bpstat_print/print_stack_frame.
8319
9c1fcd01
TT
83202014-03-17 Tom Tromey <tromey@redhat.com>
8321
8322 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
8323
11aa919a
PMR
83242014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
8325
8326 * ada-lang.c (decode_constrained_packed_array): Perform a
8327 minimal coercion for reference with coerce_ref instead of
8328 ada_coerce_ref.
8329
d4ccb5e0
TG
83302014-03-17 Tristan Gingold <gingold@adacore.com>
8331
8332 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
8333 (darwin_solib_create_inferior_hook): Emit a warning if version
8334 is unhandled.
8335
49840f2a
UW
83362014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
8337
8338 * python/py-value.c (get_field_flag): Cast flag_name argument to
8339 PyObject_GetAttrString to support Python 2.4.
8340
ed4123e5
JK
83412014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8342
8343 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
8344 (Global Maintainers): Remove Jan Kratochvil.
8345
d6b64346
PA
83462014-03-14 Pedro Alves <palves@redhat.com>
8347
8348 * inferior.h (terminal_ours_for_output): Rename to ...
8349 (child_terminal_ours_for_output): ... this.
8350 (terminal_save_ours): Rename to ...
8351 (child_terminal_save_ours): ... this.
8352 (terminal_ours): Rename to ...
8353 (child_terminal_ours): ... this.
8354 (terminal_inferior): Rename to ...
8355 (child_terminal_inferior): ... this.
8356 (terminal_init_inferior): Rename to ...
8357 (child_terminal_init_inferior): ... this.
8358 (terminal_init_inferior_with_pgrp): Rename to ...
8359 (child_terminal_init_inferior_with_pgrp): ... this.
8360 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
8361 (child_terminal_init_with_pgrp): ... this.
8362 (terminal_save_ours): Rename to ...
8363 (child_terminal_save_ours): ... this.
8364 (terminal_init_inferior): Rename to ...
8365 (child_terminal_init): ... this. Adjust.
8366 (terminal_inferior): Rename to ...
8367 (child_terminal_inferior): ... this.
8368 (terminal_ours_for_output): Rename to ...
8369 (child_terminal_ours_for_output): ... this. Adjust.
8370 (terminal_ours): Rename to ...
8371 (child_terminal_ours): ... this.
8372 (terminal_ours_1): Rename to ...
8373 (child_terminal_ours_1): ... this. Adjust.
8374 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
8375 * windows-nat.c (do_initial_windows_stuff): Adjust.
8376 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
8377 (gnu_terminal_init): ... this. Adjust.
8378 (gnu_target): Adjust.
8379 * inf-child.c (inf_child_target): Adjust.
8380
5a1e8c7a
DE
83812014-03-13 Doug Evans <xdje42@gmail.com>
8382
8383 PR guile/16612
8384 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
8385 new eq?-hashtab.
8386
350e1a76
DE
83872014-03-13 Doug Evans <xdje42@gmail.com>
8388
8389 * value.c (record_latest_value): Call release_value_or_incref
8390 instead of release_value.
8391
a69900ae
PA
83922014-03-13 Pedro Alves <palves@redhat.com>
8393
8394 * procfs.c (procfs_target): Don't override to_shortname,
8395 to_longname or to_doc.
8396
5db9f0bd
PA
83972014-03-13 Pedro Alves <palves@redhat.com>
8398
8399 * inf-child.c (inf_child_open, inf_child_target): Don't mention
8400 Unix in user visible strings.
8401
5e3a2c38
SS
84022014-03-12 Stan Shebs <stan@codesourcery.com>
8403
8404 * gdbtypes.h: Annotate comments for Doxygen, add a page
8405 block comment with some general info.
8406
8bc2fe48
PA
84072014-03-12 Pedro Alves <palves@redhat.com>
8408
8409 * infcmd.c (prepare_execution_command): New function, factored out
8410 from several execution commands.
8411 (run_command_1, continue_command, step_1, jump_command)
8412 (signal_command, until_command, advance_command, finish_command)
8413 (attach_command): Use prepare_execution_command.
8414
638c5f49
OJ
84152014-03-12 Omair Javaid <omair.javaid@linaro.org>
8416
8417 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
8418 (MAX_BPTS): Define.
8419 (MAX_WPTS): Define.
8420 (struct arm_linux_thread_points): Removed.
8421 (struct arm_linux_process_info): New.
8422 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
8423 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
8424 (arm_linux_find_breakpoints_by_tid): Removed.
8425 (struct arch_lwp_info): New.
8426 (arm_linux_find_process_pid): New functions.
8427 (arm_linux_add_process): New functions.
8428 (arm_linux_process_info_get): New functions.
8429 (arm_linux_forget_process): New function.
8430 (arm_linux_get_debug_reg_state): New function.
8431 (struct update_registers_data): New.
8432 (update_registers_callback): New function.
8433 (arm_linux_insert_hw_breakpoint1): Updated.
8434 (arm_linux_remove_hw_breakpoint1): Updated.
8435 (arm_linux_insert_hw_breakpoint): Updated.
8436 (arm_linux_remove_hw_breakpoint): Updated.
8437 (arm_linux_insert_watchpoint): Updated.
8438 (arm_linux_remove_watchpoint): Updated.
8439 (arm_linux_new_thread): Updated.
8440 (arm_linux_prepare_to_resume): New function.
8441 (arm_linux_new_fork): New function.
8442 (_initialize_arm_linux_nat): Updated.
8443
6d03af93
PA
84442014-03-12 Pedro Alves <palves@redhat.com>
8445
8446 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
8447
b3ccfe11
TT
84482014-03-12 Tom Tromey <tromey@redhat.com>
8449
8450 * inf-child.c (return_zero): New function.
8451 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
8452 * aix-thread.c (aix_thread_inferior_created): New function.
8453 (aix_thread_attach): Remove.
8454 (init_aix_thread_ops): Don't set to_attach.
8455 (_initialize_aix_thread): Register inferior_created observer.
8456 * corelow.c (init_core_ops): Don't set to_attach or
8457 to_create_inferior.
8458 * exec.c (init_exec_ops): Don't set to_attach or
8459 to_create_inferior.
8460 * infcmd.c (run_command_1): Use find_run_target. Make direct
8461 target calls.
8462 (attach_command): Use find_attach_target. Make direct target
8463 calls.
8464 * record-btrace.c (init_record_btrace_ops): Don't set
8465 to_create_inferior.
8466 * record-full.c (record_full_can_async_p, record_full_is_async_p):
8467 Remove.
8468 (init_record_full_ops, init_record_full_core_ops): Update. Don't
8469 set to_create_inferior.
8470 * target.c (complete_target_initialization): Add assertion.
8471 (target_create_inferior): Remove.
8472 (find_default_attach, find_default_create_inferior): Remove.
8473 (find_attach_target, find_run_target): New functions.
8474 (find_default_is_async_p, find_default_can_async_p)
8475 (target_supports_non_stop, target_attach): Remove.
8476 (init_dummy_target): Don't set to_create_inferior or
8477 to_supports_non_stop.
8478 * target.h (struct target_ops) <to_attach>: Add comment. Remove
8479 TARGET_DEFAULT_FUNC.
8480 <to_create_inferior>: Add comment.
8481 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
8482 TARGET_DEFAULT_RETURN.
8483 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
8484 (find_attach_target, find_run_target): Declare.
8485 (target_create_inferior): Remove.
8486 (target_has_execution_1): Update comment.
8487 (target_supports_non_stop): Remove.
8488 * target-delegates.c: Rebuild.
8489
91f83b02
PA
84902014-03-12 Pedro Alves <palves@redhat.com>
8491
8492 * inf-child.h: Update comment to not mention Unix.
8493
f1aea813
PA
84942014-03-12 Pedro Alves <palves@redhat.com>
8495
8496 * inf-child.c: Update top comment to not mention Unix. Add
8497 generic comment describing how this target is meant to be used.
8498 (inf_child_post_attach, inf_child_post_startup_inferior)
8499 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
8500 Unix in comment.
8501
ee8e9165
PA
85022014-03-12 Pedro Alves <palves@redhat.com>
8503
8504 * nto-procfs.c: Include inf-child.h.
8505 (procfs_ops): Delete global.
8506 (procfs_can_run): Delete method.
8507 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
8508 target pointer instead of referencing procfs_ops.
8509 (procfs_prepare_to_store): Delete.
8510 (init_procfs_ops): Delete function.
8511 (procfs_target): New function, based on init_procfs_ops, but
8512 inherit inf_child_target.
8513 (_initialize_procfs): Use procfs_target.
8514
51a9c8c5
PA
85152014-03-12 Pedro Alves <palves@redhat.com>
8516
8517 * windows-nat.c: Include inf-child.h.
8518 (windows_ops): Delete global.
8519 (windows_open, windows_prepare_to_store, windows_can_run): Delete
8520 methods.
8521 (init_windows_ops): Delete function.
8522 (windows_target): New function, based on init_windows_ops, but
8523 inherit inf_child_target.
8524 (_initialize_windows_nat): Use windows_target. Install x86
8525 specific target methods here.
8526
c1966e26
DE
85272014-03-10 Doug Evans <xdje42@gmail.com>
8528
8529 * guile/guile.c (call_initialize_gdb_module): New function.
8530 (initialize_guile): Replace call to scm_init_guile with call to
8531 scm_with_guile.
8532
023db19c
JB
85332014-03-10 Joel Brobecker <brobecker@adacore.com>
8534
8535 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
8536 in call to TYPE_CODE macro.
8537
5ec18f2b
JG
85382014-03-10 Jerome Guitton <guitton@adacore.com>
8539
8668be63
JB
8540 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
8541 Resolve tagged types to full view.
5ec18f2b 8542
7d03f2eb
HZ
85432014-03-10 Hui Zhu <hui@codesourcery.com>
8544
8545 * target.h (target_insert_breakpoint): Remove "hardware" from its
8546 comments.
8547
c5164cbc
DE
85482014-03-07 Doug Evans <dje@google.com>
8549
8550 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
8551
c4a3fee2
DE
85522014-03-07 Doug Evans <dje@google.com>
8553
8554 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
8555 Remove unused local comp_dir_attr. Assert exactly one of
8556 stub_comp_unit_die, stub_comp_dir is non-NULL.
8557
3156469c
JB
85582014-03-07 Joel Brobecker <brobecker@adacore.com>
8559
8560 * target.h (complete_target_initialization, add_target):
8561 Add comment.
8562
c1a7b7c6
PA
85632014-03-07 Pedro Alves <palves@redhat.com>
8564
8565 * go32-nat.c: Include inf-child.h.
8566 (go32_ops): Delete global.
8567 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
8568 Delete methods.
8569 (go32_create_inferior): Push the passed in target pointer instead
8570 of referencing go32_ops.
8571 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
8572 (go32_target): New function, based on init_go32_ops, but inherit
8573 inf_child_target.
8574 (_initialize_go32_nat): Use go32_target. Move parts of
8575 init_go32_ops here.
8576
d3c1a85f
JB
85772014-03-06 Joel Brobecker <brobecker@adacore.com>
8578
8579 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
8580 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
8581 SYMBOL_VALUE_ADDRESS.
8582 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
8583
5fa1d40e
YQ
85842014-03-06 Yao Qi <yao@codesourcery.com>
8585
8586 * breakpoint.c (get_tracepoint_by_number): Remove argument
8587 optional_p. All callers updated. Adjust comments. Update
8588 output message.
8589 * breakpoint.h (get_tracepoint_by_number): Update declaration.
8590
0c13193f
YQ
85912014-03-06 Yao Qi <yao@codesourcery.com>
8592
8593 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
8594 early if get_number returns zero. Use 'p' instead of 'args'.
8595
2217da06
YQ
85962014-03-06 Yao Qi <yao@codesourcery.com>
8597
8598 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
8599 message.
8600
cc3da688
YQ
86012014-03-06 Yao Qi <yao@codesourcery.com>
8602
8603 PR breakpoints/16508
8604 * tracepoint.c (check_trace_running): New function.
8605 (trace_find_command): Move code to check_trace_running and
8606 call check_trace_running.
8607 (trace_find_pc_command): Likewise.
8608 (trace_find_tracepoint_command): Likewise.
8609 (trace_find_line_command): Likewise.
8610 (trace_find_range_command): Likewise.
8611 * tracepoint.h (check_trace_running): Likewise.
8612 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
8613
6a5f844b
YQ
86142014-03-06 Yao Qi <yao@codesourcery.com>
8615
8616 * target.h (struct target_ops) <to_traceframe_info>: Use
8617 TARGET_DEFAULT_NORETURN (tcomplain ()).
8618 * target-delegates.c: Regenerated.
8619
0f26cec1
PA
86202014-03-05 Pedro Alves <palves@redhat.com>
8621
8622 PR gdb/16575
8623 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
8624 void. Update comment.
8625 (dcache_xfer_memory): Delete.
8626 (dcache_read_memory_partial): New, based on the read bits of
8627 dcache_xfer_memory.
8628 (dcache_update): Add status parameter. Use ULONGEST for len, and
8629 adjust. Discard cache lines if the reason for the update was
8630 error.
8631 * dcache.h (dcache_xfer_memory): Delete declaration.
8632 (dcache_read_memory_partial): New declaration.
8633 (dcache_update): Update prototype.
8634 * target.c (raw_memory_xfer_partial): Update the dcache here.
8635 (memory_xfer_partial_1): Don't handle dcache writes here.
8636
b2b255bd
MF
86372014-03-05 Mike Frysinger <vapier@gentoo.org>
8638
8639 * remote-sim.c (gdbsim_load): Add const to prog.
8640
5d9cf8a4
TT
86412014-03-03 Tom Tromey <tromey@redhat.com>
8642
8643 * elfread.c (probe_key): Change to bfd_data.
8644 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
8645 now per-BFD, not per-objfile.
8646 * stap-probe.c (stap_probe_destroy): Update comment.
8647 (handle_stap_probe): Allocate on the per-BFD obstack.
8648
729662a5
TT
86492014-03-03 Tom Tromey <tromey@redhat.com>
8650
8651 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
8652 * breakpoint.c (create_longjmp_master_breakpoint): Use
8653 get_probe_address.
8654 (add_location_to_breakpoint, bkpt_probe_insert_location)
8655 (bkpt_probe_remove_location): Update.
8656 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
8657 * elfread.c (elf_symfile_relocate_probe): Remove.
8658 (elf_probe_fns): Update.
8659 (insert_exception_resume_breakpoint): Change type of "probe"
8660 parameter to bound_probe.
8661 (check_exception_resume): Update.
8662 * objfiles.c (objfile_relocate1): Don't relocate probes.
8663 * probe.c (bound_probe_s): New typedef.
8664 (parse_probes): Use get_probe_address. Set sal's objfile.
8665 (find_probe_by_pc): Return a bound_probe.
8666 (collect_probes): Return a VEC(bound_probe_s).
8667 (compare_probes): Update.
8668 (gen_ui_out_table_header_info): Change type of "probes"
8669 parameter. Update.
8670 (info_probes_for_ops): Update.
8671 (get_probe_address): New function.
8672 (probe_safe_evaluate_at_pc): Update.
8673 * probe.h (struct probe_ops) <get_probe_address>: New field.
8674 <set_semaphore, clear_semaphore>: Add objfile parameter.
8675 (struct probe) <objfile>: Remove field.
8676 <arch>: New field.
8677 <address>: Update comment.
8678 (struct bound_probe): New.
8679 (find_probe_by_pc): Return a bound_probe.
8680 (get_probe_address): Declare.
8681 * solib-svr4.c (struct probe_and_action) <address>: New field.
8682 (hash_probe_and_action, equal_probe_and_action): Update.
8683 (register_solib_event_probe): Add address parameter.
8684 (solib_event_probe_at): Update.
8685 (svr4_create_probe_breakpoints): Add objfile parameter. Use
8686 get_probe_address.
8687 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
8688 (stap_get_probe_address): New function.
8689 (stap_can_evaluate_probe_arguments, compute_probe_arg)
8690 (compile_probe_arg): Update.
8691 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
8692 address.
8693 (handle_stap_probe): Don't relocate the probe.
8694 (stap_relocate): Remove.
8695 (stap_gen_info_probes_table_values): Update.
8696 (stap_probe_ops): Remove stap_relocate.
8697 * symfile-debug.c (debug_sym_relocate_probe): Remove.
8698 (debug_sym_probe_fns): Update.
8699 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
8700 * symtab.c (init_sal): Use memset.
8701 * symtab.h (struct symtab_and_line) <objfile>: New field.
8702 * tracepoint.c (start_tracing, stop_tracing): Update.
8703
ff887920
TT
87042014-03-03 Tom Tromey <tromey@redhat.com>
8705
8706 * probe.h (parse_probes, find_probe_by_pc)
8707 (find_probes_in_objfile): Fix comments.
8708
f0407826
DE
87092014-03-02 Doug Evans <xdje42@gmail.com>
8710
8711 * infrun.c (handle_signal_stop): Replace test for
8712 TARGET_WAITKIND_STOPPED with an assert.
8713
35e6a711
DE
87142014-03-02 Doug Evans <xdje42@gmail.com>
8715
8716 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
8717
667f9d0b
DE
87182014-03-02 Doug Evans <xdje42@gmail.com>
8719
8720 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
8721
dc92ace0
MK
87222014-03-01 Mark Kettenis <kettenis@gnu.org>
8723
8724 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
8725
a900370f
MK
87262014-03-01 Mark Kettenis <kettenis@gnu.org>
8727
8728 * i386obsd-nat.c: Include "obsd-nat.h".
8729 (_initialize_i386obsd_nat): Call obsd_add_target instead of
8730 add_target.
8731 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8732
b72a7981
MK
87332014-03-01 Mark Kettenis <kettenis@gnu.org>
8734
8735 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
8736
96c70aba
MK
87372014-03-01 Mark Kettenis <kettenis@gnu.org>
8738
8739 * mips64obsd-nat.c: Include "obsd-nath".
8740 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
8741 add_target
8742 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8743
874a80af
MK
87442014-03-01 Mark Kettenis <kettenis@gnu.org>
8745
8fd408f1
MK
8746 * amd64obsd-nat.c: Include "obsd-nat,h.
8747 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
8748 add_target.
874a80af
MK
8749 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8750
9cf95373
SC
87512014-02-28 Siva Chandra Reddy <sivachandra@google.com>
8752
8753 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
8754 (find_overload_match): Update call to find_oload_champ.
8755 (find_oload_champ_namespace_loop): Likewise
8756
863e4da4
MK
87572014-02-28 Mark Kettenis <kettenis@gnu.org>
8758
025cac40
MK
8759 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
8760
1ed586ce
MK
8761 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
8762 * config/sparc/obsd64.mh: New file.
8763 * sparc64obsd-nat.c: New file.
8764
863e4da4
MK
8765 * obsd-nat.h: New file.
8766 * obsd-nat.c: New file.
8767 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
8768 (ALLDEPFILES): Add obsd-nat.c.
8769
89de4da4
TT
87702014-02-28 Tom Tromey <tromey@redhat.com>
8771
8772 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
8773 * cli-out.h (cli_ui_out_impl): Now const.
8774 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
8775 * ui-out.c (struct ui_out) <impl>: Now const.
8776 (default_ui_out_impl): Now const.
8777 (ui_out_new): Make 'impl' parameter const.
8778 * ui-out.h (ui_out_new): Update.
8779
c725e7b6
MK
87802014-02-27 Mark Kettenis <kettenis@gnu.org>
8781
8782 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
8783
670b46b3
MK
87842014-02-27 Mark Kettenis <kettenis@gnu.org>
8785
8786 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
8787
c91550fc
JK
87882014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
8789
8790 Additional PR 8882 fix.
8791 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
8792
2fa0369e
PA
87932014-02-27 Pedro Alves <palves@redhat.com>
8794
8795 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
8796 isn't set.
8797
d632a097
PA
87982014-02-27 Pedro Alves <palves@redhat.com>
8799
8800 PR 12702
8801 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
8802 * nat/linux-waitpid.c: Include string.h.
8803 (status_to_str): Moved here and made extern.
8804 * nat/linux-waitpid.h (status_to_str): New declaration.
8805
2ebd5a35
HZ
88062014-02-27 Hui Zhu <hui@codesourcery.com>
8807
8808 PR 12702
8809 * infrun.c (ptid_match): Move ...
8810 * common/ptid.c (ptid_match): ... here.
8811 * inferior.h (ptid_match): Move ...
8812 * common/ptid.h (ptid_match): ... here.
8813
3cdd631f
MK
88142014-02-27 Mark Kettenis <kettenis@gnu.org>
8815
8816 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
8817 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
8818 gdb_target_obs.
8819
bee30a64
MK
88202014-02-27 Mark Kettenis <kettenis@gnu.org>
8821
8822 * obsd-tdep.c (obsd_auxv_parse): New function.
8823 (obsd_init_abi): Set auxv_parse.
27a48a92
MK
8824
8825 * gdbarch.sh (auxv_parse): New.
8826 * gdbarch.h: Regenerated.
8827 * gdbarch.c: Regenerated.
8828 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
8829
7a5a839f
LC
88302014-02-26 Ludovic Courtès <ludo@gnu.org>
8831
8832 * guile/scm-value.c (gdbscm_history_append_x): New function.
8833 (value_functions): Add it.
8834
31aa7e4e
JB
88352014-02-27 Joel Brobecker <brobecker@adacore.com>
8836
8837 * dwarf2read.c (attr_value_as_address): New function.
8838 (dwarf2_find_base_address, read_call_site_scope): Use
8839 attr_value_as_address in place of DW_ADDR.
8840 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
8841 the low and high addresses. Slight rework of the handling
8842 of the high pc being a constant form, and limit it to
8843 DWARF verson 4 or higher.
8844 (dwarf2_record_block_ranges): Likewise.
8845 (read_partial_die): Likewise.
8846 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
8847
9b333ba3
TT
88482014-02-26 Tom Tromey <tromey@redhat.com>
8849
8850 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
8851
5f6cac40
TT
88522014-02-26 Tom Tromey <tromey@redhat.com>
8853
8854 * elfread.c (elf_read_minimal_symbols): Return early if
8855 minimal symbols have already been read. Add "ei" parameter.
8856 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
8857 * minsyms.c (prim_record_minimal_symbol_full): Update.
8858 * objfiles.h (struct objstats) <n_minsyms>: Move...
8859 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
8860 * symmisc.c (print_objfile_statistics): Update.
8861
2750ef27
TT
88622014-02-26 Tom Tromey <tromey@redhat.com>
8863
8864 * elfread.c (elf_read_minimal_symbols): New function, from
8865 elf_symfile_read.
8866 (elf_symfile_read): Call it.
8867
34643a32
TT
88682014-02-26 Tom Tromey <tromey@redhat.com>
8869
8870 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
8871 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
8872 (lookup_minimal_symbol_solib_trampoline)
8873 (lookup_minimal_symbol_by_pc_section_1)
8874 (lookup_minimal_symbol_and_objfile): Update.
8875 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
8876 Don't allocate a minimal symbol if minsyms have already been read.
8877 (build_minimal_symbol_hash_tables): Update.
8878 (install_minimal_symbols): Do nothing if minsyms already read.
8879 Use the per-BFD obstack.
8880 (terminate_minimal_symbol_table): Use the per-BFD obstack.
8881 * objfiles.c (allocate_objfile): Call
8882 terminate_minimal_symbol_table later.
8883 (have_minimal_symbols): Update.
8884 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
8885 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
8886 Move from struct objfile.
8887 <minsyms_read>: New field.
8888 (struct objfile) <msymbols, minimal_symbol_count,
8889 msymbol_hash, msymbol_demangled_hash>: Move.
8890 (ALL_OBJFILE_MSYMBOLS): Update.
8891 * symfile.c (read_symbols): Set minsyms_read.
8892 (reread_symbols): Update.
8893 * symmisc.c (dump_objfile, dump_msymbols): Update.
8894
2273f0ac
TT
88952014-02-26 Tom Tromey <tromey@redhat.com>
8896
8897 * minsyms.c (msymbols_sort): Remove.
8898 * minsyms.h (msymbols_sort): Remove.
8899 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
8900 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
8901 * elfread.c (elf_symtab_read): Don't add section offsets.
8902 * xcoffread.c (record_minimal_symbol): Don't add section offset
8903 to minimal symbol address.
8904 * somread.c (text_offset, data_offset): Remove.
8905 (som_symtab_read): Don't add section offsets to minimal symbol
8906 addresses.
8907 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
8908 Don't add section offsets to minimal symbols.
8909 * coffread.c (coff_symtab_read): Don't add section offsets
8910 to minimal symbol addresses.
8911 * machoread.c (macho_symtab_add_minsym): Don't add section offset
8912 to minimal symbol addresses.
8913 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
8914 section offset to minimal symbol addresses.
8915 * mdebugread.c (parse_partial_symbols): Don't add section
8916 offset to minimal symbol addresses.
8917 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
8918 offset to minimal symbol addresses.
8919
77e371c0
TT
89202014-02-26 Tom Tromey <tromey@redhat.com>
8921
8922 * ada-lang.c (ada_main_name): Update.
8923 (ada_add_standard_exceptions): Update.
8924 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
8925 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8926 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
8927 * auxv.c (ld_so_xfer_auxv): Update.
8928 * avr-tdep.c (avr_scan_prologue): Update.
8929 * ax-gdb.c (gen_var_ref): Update.
8930 * blockframe.c (get_pc_function_start)
8931 (find_pc_partial_function_gnu_ifunc): Update.
8932 * breakpoint.c (create_overlay_event_breakpoint)
8933 (create_longjmp_master_breakpoint)
8934 (create_std_terminate_master_breakpoint)
8935 (create_exception_master_breakpoint): Update.
8936 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8937 * c-valprint.c (c_val_print): Update.
8938 * coff-pe-read.c (add_pe_forwarded_sym): Update.
8939 * common/agent.c (agent_look_up_symbols): Update.
8940 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
8941 * dwarf2loc.c (call_site_to_target_addr): Update.
8942 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
8943 * elfread.c (elf_gnu_ifunc_record_cache)
8944 (elf_gnu_ifunc_resolve_by_got): Update.
8945 * findvar.c (default_read_var_value): Update.
8946 * frame.c (inside_main_func): Update.
8947 * frv-tdep.c (frv_frame_this_id): Update.
8948 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8949 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
8950 Update.
8951 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
8952 (hppa_hpux_find_dummy_bpaddr): Update.
8953 * hppa-tdep.c (hppa_symbol_address): Update.
8954 * infcmd.c (until_next_command): Update.
8955 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
8956 Update.
8957 * linespec.c (minsym_found, add_minsym): Update.
8958 * linux-nat.c (get_signo): Update.
8959 * linux-thread-db.c (inferior_has_bug): Update.
8960 * m32c-tdep.c (m32c_return_value)
8961 (m32c_m16c_address_to_pointer): Update.
8962 * m32r-tdep.c (m32r_frame_this_id): Update.
8963 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8964 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8965 * maint.c (maintenance_translate_address): Update.
8966 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
8967 (frob_address): New function.
8968 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
8969 frob_address. Rename parameter to "pc_in".
8970 (compare_minimal_symbols, compact_minimal_symbols): Use raw
8971 addresses.
8972 (find_solib_trampoline_target, minimal_symbol_upper_bound):
8973 Update.
8974 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8975 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
8976 * objc-lang.c (find_objc_msgsend): Update.
8977 * objfiles.c (objfile_relocate1): Update.
8978 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8979 * p-valprint.c (pascal_val_print): Update.
8980 * parse.c (write_exp_msymbol): Update.
8981 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
8982 (ppc_elfv2_skip_entrypoint): Update.
8983 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8984 * printcmd.c (build_address_symbolic, msym_info)
8985 (address_info): Update.
8986 * proc-service.c (ps_pglobal_lookup): Update.
8987 * psymtab.c (find_pc_sect_psymtab_closer)
8988 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
8989 Change msymbol parameter to bound_minimal_symbol.
8990 * ravenscar-thread.c (get_running_thread_id): Update.
8991 * remote.c (remote_check_symbols): Update.
8992 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
8993 address.
8994 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8995 * solib-dsbt.c (lm_base): Update.
8996 * solib-frv.c (lm_base, main_got): Update.
8997 * solib-irix.c (locate_base): Update.
8998 * solib-som.c (som_solib_create_inferior_hook)
8999 (link_map_start): Update.
9000 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
9001 * solib-svr4.c (elf_locate_base, enable_break): Update.
9002 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
9003 (flush_ea_cache): Update.
9004 * stabsread.c (define_symbol, scan_file_globals): Update.
9005 * stack.c (find_frame_funname): Update.
9006 * symfile-debug.c (debug_qf_expand_symtabs_matching)
9007 (debug_qf_find_pc_sect_symtab): Update.
9008 * symfile.c (simple_read_overlay_table)
9009 (simple_overlay_update): Update.
9010 * symfile.h (struct quick_symbol_functions)
9011 <find_pc_sect_symtab>: Change type of msymbol to
9012 bound_minimal_symbol.
9013 * symmisc.c (dump_msymbols): Update.
9014 * symtab.c (find_pc_sect_symtab_via_partial)
9015 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
9016 (search_symbols, print_msymbol_info): Update.
9017 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
9018 (MSYMBOL_VALUE_ADDRESS): Redefine.
9019 (BMSYMBOL_VALUE_ADDRESS): New macro.
9020 * tracepoint.c (scope_info): Update.
9021 * tui/tui-disasm.c (tui_find_disassembly_address)
9022 (tui_get_begin_asm_address): Update.
9023 * valops.c (find_function_in_inferior): Update.
9024 * value.c (value_static_field, value_fn_field): Update.
9025
3b7344d5
TT
90262014-02-26 Tom Tromey <tromey@redhat.com>
9027
9028 * ada-lang.c (ada_update_initial_language): Update.
9029 (ada_main_name, ada_has_this_exception_support): Update.
9030 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
9031 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9032 * arm-tdep.c (arm_skip_stub): Update.
9033 * auxv.c (ld_so_xfer_auxv): Update.
9034 * avr-tdep.c (avr_scan_prologue): Update.
9035 * ax-gdb.c (gen_var_ref): Update.
9036 * breakpoint.c (struct breakpoint_objfile_data)
9037 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
9038 type to bound_minimal_symbol.
9039 (create_overlay_event_breakpoint)
9040 (create_longjmp_master_breakpoint)
9041 (create_std_terminate_master_breakpoint)
9042 (create_exception_master_breakpoint): Update.
9043 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9044 * c-exp.y (classify_name): Update.
9045 * coffread.c (coff_symfile_read): Update.
9046 * common/agent.c (agent_look_up_symbols): Update.
9047 * d-lang.c (d_main_name): Update.
9048 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
9049 * dec-thread.c (enable_dec_thread): Update.
9050 * dwarf2loc.c (call_site_to_target_addr): Update.
9051 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
9052 * eval.c (evaluate_subexp_standard): Update.
9053 * findvar.c (struct minsym_lookup_data) <result>: Change type
9054 to bound_minimal_symbol.
9055 <objfile>: Remove.
9056 (minsym_lookup_iterator_cb, default_read_var_value): Update.
9057 * frame.c (inside_main_func): Update.
9058 * frv-tdep.c (frv_frame_this_id): Update.
9059 * gcore.c (call_target_sbrk): Update.
9060 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9061 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
9062 Update.
9063 * go-lang.c (go_main_name): Update.
9064 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
9065 (hppa_hpux_find_import_stub_for_addr): Update.
9066 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
9067 Update. Change return type.
9068 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
9069 type.
9070 * jit.c (jit_breakpoint_re_set_internal): Update.
9071 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
9072 Update.
9073 * linux-nat.c (get_signo): Update.
9074 * linux-thread-db.c (inferior_has_bug): Update
9075 * m32c-tdep.c (m32c_return_value)
9076 (m32c_m16c_address_to_pointer): Update.
9077 * m32r-tdep.c (m32r_frame_this_id): Update.
9078 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9079 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9080 * minsyms.c (lookup_minimal_symbol_internal): Rename to
9081 lookup_minimal_symbol. Change return type.
9082 (lookup_minimal_symbol): Remove.
9083 (lookup_bound_minimal_symbol): Update.
9084 (lookup_minimal_symbol_text): Change return type.
9085 (lookup_minimal_symbol_solib_trampoline): Change return type.
9086 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
9087 (lookup_minimal_symbol_solib_trampoline): Change return type.
9088 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9089 * objc-lang.c (lookup_objc_class, lookup_child_selector)
9090 (value_nsstring, find_imps): Update.
9091 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9092 * p-lang.c (pascal_main_name): Update.
9093 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
9094 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9095 * proc-service.c (ps_pglobal_lookup): Update.
9096 * ravenscar-thread.c (get_running_thread_msymbol): Change
9097 return type.
9098 (has_ravenscar_runtime, get_running_thread_id): Update.
9099 * remote.c (remote_check_symbols): Update.
9100 * sol-thread.c (ps_pglobal_lookup): Update.
9101 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9102 * solib-dsbt.c (lm_base): Update.
9103 * solib-frv.c (lm_base, frv_relocate_section_addresses):
9104 Update.
9105 * solib-irix.c (locate_base): Update.
9106 * solib-som.c (som_solib_create_inferior_hook)
9107 (som_solib_desire_dynamic_linker_symbols, link_map_start):
9108 Update.
9109 * solib-spu.c (spu_enable_break): Update.
9110 * solib-svr4.c (elf_locate_base, enable_break): Update.
9111 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
9112 (flush_ea_cache): Update.
9113 * stabsread.c (define_symbol): Update.
9114 * symfile.c (simple_read_overlay_table): Update.
9115 * symtab.c (find_pc_sect_line): Update.
9116 * tracepoint.c (scope_info): Update.
9117 * tui-disasm.c (tui_get_begin_asm_address): Update.
9118 * value.c (value_static_field): Update.
9119
40c1a007
TT
91202014-02-26 Tom Tromey <tromey@redhat.com>
9121
9122 * minsyms.c (prim_record_minimal_symbol_full): Use
9123 SET_MSYMBOL_VALUE_ADDRESS.
9124 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
9125 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
9126 SET_MSYMBOL_VALUE_ADDRESS.
9127 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
9128 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
9129
efd66ac6
TT
91302014-02-26 Tom Tromey <tromey@redhat.com>
9131
9132 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
9133 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
9134 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
9135 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
9136 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
9137 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
9138 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
9139 * ada-lang.c (ada_main_name): Update.
9140 (ada_lookup_simple_minsym): Update.
9141 (ada_make_symbol_completion_list): Update.
9142 (ada_add_standard_exceptions): Update.
9143 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
9144 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9145 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
9146 * arm-tdep.c (skip_prologue_function): Update.
9147 (arm_skip_stack_protector, arm_skip_stub): Update.
9148 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
9149 (arm_wince_skip_main_prologue): Update.
9150 * auxv.c (ld_so_xfer_auxv): Update.
9151 * avr-tdep.c (avr_scan_prologue): Update.
9152 * ax-gdb.c (gen_var_ref): Update.
9153 * block.c (call_site_for_pc): Update.
9154 * blockframe.c (get_pc_function_start): Update.
9155 (find_pc_partial_function_gnu_ifunc): Update.
9156 * breakpoint.c (create_overlay_event_breakpoint): Update.
9157 (create_longjmp_master_breakpoint): Update.
9158 (create_std_terminate_master_breakpoint): Update.
9159 (create_exception_master_breakpoint): Update.
9160 (resolve_sal_pc): Update.
9161 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9162 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
9163 Update.
9164 * c-valprint.c (c_val_print): Update.
9165 * coff-pe-read.c (add_pe_forwarded_sym): Update.
9166 * coffread.c (coff_symfile_read): Update.
9167 * common/agent.c (agent_look_up_symbols): Update.
9168 * dbxread.c (find_stab_function_addr): Update.
9169 (end_psymtab): Update.
9170 * dwarf2loc.c (call_site_to_target_addr): Update.
9171 (func_verify_no_selftailcall): Update.
9172 (tailcall_dump): Update.
9173 (call_site_find_chain_1): Update.
9174 (dwarf_expr_reg_to_entry_parameter): Update.
9175 * elfread.c (elf_gnu_ifunc_record_cache): Update.
9176 (elf_gnu_ifunc_resolve_by_got): Update.
9177 * f-valprint.c (info_common_command): Update.
9178 * findvar.c (read_var_value): Update.
9179 * frame.c (get_prev_frame_1): Update.
9180 (inside_main_func): Update.
9181 * frv-tdep.c (frv_skip_main_prologue): Update.
9182 (frv_frame_this_id): Update.
9183 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9184 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
9185 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
9186 (gnuv3_skip_trampoline): Update.
9187 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
9188 (hppa64_hpux_in_solib_call_trampoline): Update.
9189 (hppa_hpux_skip_trampoline_code): Update.
9190 (hppa64_hpux_search_dummy_call_sequence): Update.
9191 (hppa_hpux_find_import_stub_for_addr): Update.
9192 (hppa_hpux_find_dummy_bpaddr): Update.
9193 * hppa-tdep.c (hppa_symbol_address)
9194 (hppa_lookup_stub_minimal_symbol): Update.
9195 * i386-tdep.c (i386_skip_main_prologue): Update.
9196 (i386_pe_skip_trampoline_code): Update.
9197 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
9198 * infcall.c (get_function_name): Update.
9199 * infcmd.c (until_next_command): Update.
9200 * jit.c (jit_breakpoint_re_set_internal): Update.
9201 (jit_inferior_init): Update.
9202 * linespec.c (minsym_found): Update.
9203 (add_minsym): Update.
9204 * linux-fork.c (info_checkpoints_command): Update.
9205 * linux-nat.c (get_signo): Update.
9206 * linux-thread-db.c (inferior_has_bug): Update.
9207 * m32c-tdep.c (m32c_return_value): Update.
9208 (m32c_m16c_address_to_pointer): Update.
9209 (m32c_m16c_pointer_to_address): Update.
9210 * m32r-tdep.c (m32r_frame_this_id): Update.
9211 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9212 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9213 * maint.c (maintenance_translate_address): Update.
9214 * minsyms.c (add_minsym_to_hash_table): Update.
9215 (add_minsym_to_demangled_hash_table): Update.
9216 (msymbol_objfile): Update.
9217 (lookup_minimal_symbol): Update.
9218 (iterate_over_minimal_symbols): Update.
9219 (lookup_minimal_symbol_text): Update.
9220 (lookup_minimal_symbol_by_pc_name): Update.
9221 (lookup_minimal_symbol_solib_trampoline): Update.
9222 (lookup_minimal_symbol_by_pc_section_1): Update.
9223 (lookup_minimal_symbol_and_objfile): Update.
9224 (prim_record_minimal_symbol_full): Update.
9225 (compare_minimal_symbols): Update.
9226 (compact_minimal_symbols): Update.
9227 (build_minimal_symbol_hash_tables): Update.
9228 (install_minimal_symbols): Update.
9229 (terminate_minimal_symbol_table): Update.
9230 (find_solib_trampoline_target): Update.
9231 (minimal_symbol_upper_bound): Update.
9232 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9233 * mips-tdep.c (mips_stub_frame_sniffer): Update.
9234 (mips_skip_pic_trampoline_code): Update.
9235 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
9236 * objc-lang.c (selectors_info): Update.
9237 (classes_info): Update.
9238 (find_methods): Update.
9239 (find_imps): Update.
9240 (find_objc_msgsend): Update.
9241 * objfiles.c (objfile_relocate1): Update.
9242 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
9243 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9244 * p-valprint.c (pascal_val_print): Update.
9245 * parse.c (write_exp_msymbol): Update.
9246 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
9247 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
9248 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9249 * printcmd.c (build_address_symbolic): Update.
9250 (sym_info): Update.
9251 (address_info): Update.
9252 * proc-service.c (ps_pglobal_lookup): Update.
9253 * psymtab.c (find_pc_sect_psymtab_closer): Update.
9254 (find_pc_sect_psymtab): Update.
9255 * python/py-framefilter.c (py_print_frame): Update.
9256 * ravenscar-thread.c (get_running_thread_id): Update.
9257 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
9258 Update.
9259 * remote.c (remote_check_symbols): Update.
9260 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
9261 (rs6000_skip_trampoline_code): Update.
9262 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
9263 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9264 * solib-dsbt.c (lm_base): Update.
9265 * solib-frv.c (lm_base): Update.
9266 (main_got): Update.
9267 * solib-irix.c (locate_base): Update.
9268 * solib-som.c (som_solib_create_inferior_hook): Update.
9269 (som_solib_desire_dynamic_linker_symbols): Update.
9270 (link_map_start): Update.
9271 * solib-spu.c (spu_enable_break): Update.
9272 (ocl_enable_break): Update.
9273 * solib-svr4.c (elf_locate_base): Update.
9274 (enable_break): Update.
9275 * spu-tdep.c (spu_get_overlay_table): Update.
9276 (spu_catch_start): Update.
9277 (flush_ea_cache): Update.
9278 * stabsread.c (define_symbol): Update.
9279 (scan_file_globals): Update.
9280 * stack.c (find_frame_funname): Update.
9281 (frame_info): Update.
9282 * symfile.c (simple_read_overlay_table): Update.
9283 (simple_overlay_update): Update.
9284 * symmisc.c (dump_msymbols): Update.
9285 * symtab.c (fixup_section): Update.
9286 (find_pc_sect_line): Update.
9287 (skip_prologue_sal): Update.
9288 (search_symbols): Update.
9289 (print_msymbol_info): Update.
9290 (rbreak_command): Update.
9291 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
9292 (completion_list_objc_symbol): Update.
9293 (default_make_symbol_completion_list_break_on): Update.
9294 * tracepoint.c (scope_info): Update.
9295 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
9296 (tui_get_begin_asm_address): Update.
9297 * valops.c (find_function_in_inferior): Update.
9298 * value.c (value_static_field): Update.
9299 (value_fn_field): Update.
9300
50e65b17
TT
93012014-02-26 Tom Tromey <tromey@redhat.com>
9302
9303 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
9304 bound minimal symbols. Move code that knows about minsym
9305 table layout...
9306 * minsyms.c (minimal_symbol_upper_bound): ... here. New
9307 function.
9308 * minsyms.h (minimal_symbol_upper_bound): Declare.
9309 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
9310 minimal_symbol_upper_bound.
9311
1b588015
JB
93122014-02-27 Joel Brobecker <brobecker@adacore.com>
9313
9314 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
9315 Use the type's name if its basic type does not have a tag.
9316
dbb9c2b1
JB
93172014-02-27 Joel Brobecker <brobecker@adacore.com>
9318
9319 * dwarf2read.c (read_subrange_type): Add comment.
9320
55426c9d
JB
93212014-02-27 Joel Brobecker <brobecker@adacore.com>
9322
9323 * dwarf2read.c (update_enumeration_type_from_children): New
9324 function, mostly extracted from process_structure_scope.
9325 (read_enumeration_type): Call update_enumeration_type_from_children.
9326 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
9327 and flag_flag_enum fields.
9328
f2fce0ca
PA
93292014-02-26 Pedro Alves <palves@redhat.com>
9330
9331 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
9332 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
9333 to_xfer_partial method.
9334
7a44e40e
PA
93352014-02-26 Pedro Alves <palves@redhat.com>
9336
9337 * target.c (complete_target_initialization): Don't install
9338 default_xfer_partial as to_xfer_partial hook.
9339 (nomemory): Delete.
9340 (update_current_target): Don't INHERIT nor de_fault
9341 deprecated_xfer_memory. Delete de_fault macro.
9342 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
9343 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
9344 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
9345 field.
9346
bd265cd0
PA
93472014-02-26 Pedro Alves <palves@redhat.com>
9348
9349 * go32-nat.c (my_write_child): New function.
9350 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
9351 (go32_xfer_partial): New function.
9352 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
9353 Instead install a to_xfer_partial hook.
9354
9d46c4e5
PA
93552014-02-26 Pedro Alves <palves@redhat.com>
9356
9357 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
9358 to_xfer_partial helper. Rewrite.
9359 (procfs_xfer_partial): New function.
9360 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
9361 Install a to_xfer_partial hook.
9362
a1583b1f
PA
93632014-02-26 Pedro Alves <palves@redhat.com>
9364
9365 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
9366 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
9367 (m32r_xfer_partial): New function.
9368 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
9369 Install a to_xfer_partial hook.
9370
6df1b29f
PA
93712014-02-26 Pedro Alves <palves@redhat.com>
9372
9373 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
9374 helper.
9375 (mips_xfer_partial): New function.
9376 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
9377 hook. Install a to_xfer_partial hook.
9378
dc53a7ad
JB
93792014-02-26 Joel Brobecker <brobecker@adacore.com>
9380
9381 * gdbtypes.h (create_array_type_with_stride): Add declaration.
9382 * gdbtypes.c (create_array_type_with_stride): New function,
9383 renaming create_array_type, but with an added parameter
9384 called "bit_stride".
9385 (create_array_type): Re-implement using
9386 create_array_type_with_stride.
9387 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
9388 and DW_AT_bit_stride attributes.
9389
12ab52e9
PA
93902014-02-26 Pedro Alves <palves@redhat.com>
9391
9392 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
9393 task-specific breakpoints.
9394
d16461ae
PA
93952014-02-25 Pedro Alves <palves@redhat.com>
9396
9397 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
9398 handling of object == TARGET_OBJECT_UNWIND_TABLE.
9399
a8b16220
SS
94002014-02-25 Stan Shebs <stan@codesourcery.com>
9401
9402 * defs.h: Annotate comments for Doxygen.
9403
b9e795ee
TT
94042014-02-25 Tom Tromey <tromey@redhat.com>
9405
9406 * target.h (target_ignore): Don't declare.
9407 * target.c (target_ignore): Remove.
9408
849c862e
JK
94092014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
9410
9411 PR gdb/16626
9412 * auto-load.c (auto_load_objfile_script_1): Change filename to
9413 debugfile.
9414
475109d8
JB
94152014-02-25 Joel Brobecker <brobecker@adacore.com>
9416
9417 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
9418 documentation. Adjust prototype to match the target_ops
9419 to_xfer_partial method. Adjust implementation accordingly.
9420
e186c3bd
HZ
94212014-02-25 Hui Zhu <hui@codesourcery.com>
9422
9423 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
9424 to_traceframe_info.
9425
6d451942
KB
94262014-02-25 Kevin Buettner <kevinb@redhat.com>
9427
041ab8b4 9428 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
6d451942
KB
9429 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
9430 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
9431 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
9432 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
9433 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
9434 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
9435 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
9436 New constants.
9437 (rl78_register_type): Use a data pointer type for SP and
9438 new pseudo registers mentioned above. Use a 16 bit integer
9439 type for all other register pairs.
9440 (rl78_register_name, rl78_g10_register_name): Update for
9441 new pseudo registers.
9442 (rl78_pseudo_register_read): Likewise.
9443 (rl78_pseudo_register_write): Likewise.
9444 (rl78_dwarf_reg_to_regnum): Return register numbers representing
9445 to the newly added pseudo registers.
9446
eddf0bae
DE
94472014-02-24 Doug Evans <dje@google.com>
9448
9449 * value.c (record_latest_value): Fix comment.
9450 * printcmd.c (print_command_1): Remove code to handle -1 return from
9451 record_latest_value.
9452
e96027e0
PA
94532014-02-24 Pedro Alves <palves@redhat.com>
9454
9455 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
9456 deprecated_xfer_memory hook.
9457 (procfs_xfer_partial): Call procfs_xfer_memory instead
9458 of the deprecated_xfer_memory target hook.
9459 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
9460 helper.
9461
0837c976
YZ
94622014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
9463
9464 * windows-nat.c (windows_xfer_shared_libraries): Return
9465 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
9466 requested object is TARGET_OBJECT_LIBRARIES.
9467
bc113b4e
YQ
94682014-02-24 Yao Qi <yao@codesourcery.com>
9469
9470 * target.h (enum target_xfer_status)
9471 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
9472 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
9473 explicitly. New.
9474 * corefile.c (memory_error_message): User updated.
9475 * exec.c (section_table_read_available_memory): Likewise.
9476 * record-btrace.c (record_btrace_xfer_partial): Likewise.
9477 * target.c (target_xfer_status_to_string): Likewise.
9478 (raw_memory_xfer_partial): Likewise.
9479 (memory_xfer_partial_1, target_xfer_partial): Likewise.
9480 * valops.c (read_value_memory): Likewise.
9481 * exec.h: Update comments.
9482
01cb8804
YQ
94832014-02-24 Yao Qi <yao@codesourcery.com>
9484
9485 * target.c (target_xfer_status_to_string): Rename argument err
9486 to status.
9487 * target.h (target_xfer_status_to_string): Update declaration.
9488 Replace target_xfer_error_to_string with
9489 target_xfer_status_to_string in comment.
9490
93063aa6
YQ
94912014-02-24 Yao Qi <yao@codesourcery.com>
9492
9493 * mips-linux-nat.c (super_close): Update its type.
9494 (mips_linux_close): Pass 'self' to super_close.
9495
5c328c05
YQ
94962014-02-24 Yao Qi <yao@codesourcery.com>
9497
9498 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
9499 * corefile.c (read_memory): Adjusted.
9500 * target.c (target_write_with_progress): Adjusted.
9501
f73023dd
YQ
95022014-02-23 Yao Qi <yao@codesourcery.com>
9503
9504 Revert two patches:
9505
9506 2013-10-25 Yao Qi <yao@codesourcery.com>
9507
9508 * remote.c (remote_traceframe_info): Return early if
9509 traceframe is not selected.
9510
9511 2013-07-19 Yao Qi <yao@codesourcery.com>
9512
9513 * target.c (update_current_target): Change the default action
9514 of 'to_traceframe_info' from tcomplain to return_zero.
9515 * target.h (struct target_ops) <to_traceframe_info>: Add more
9516 comments.
9517
5a2eb0ef
YQ
95182014-02-23 Yao Qi <yao@codesourcery.com>
9519
9520 * valops.c (read_value_memory): Rewrite it. Call
9521 target_xfer_partial in a loop.
9522 * exec.h (section_table_available_memory): Remove declaration.
9523 Move comments to ...
9524 * exec.c (section_table_available_memory): ... here. Make it
9525 static.
9526
1ee79381
YQ
95272014-02-23 Yao Qi <yao@codesourcery.com>
9528
9529 * exec.c (section_table_read_available_memory): New function.
9530 * exec.h (section_table_read_available_memory): Declare.
9531 * ctf.c (ctf_xfer_partial): Call
9532 section_table_read_available_memory.
9533 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9534
1ca49d37
YQ
95352014-02-23 Yao Qi <yao@codesourcery.com>
9536
9537 * ctf.c (ctf_xfer_partial): Move code to ...
9538 * exec.c (exec_read_partial_read_only): ... it. New function.
9539 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9540 * tracefile.c: Include "exec.h".
9541 * exec.h (exec_read_partial_read_only): Declare.
9542
a283690e
YQ
95432014-02-23 Yao Qi <yao@codesourcery.com>
9544
9545 * tracefile-tfile.c (tfile_has_all_memory): Remove.
9546 (tfile_has_memory): Remove.
9547 (init_tfile_ops): Don't set fields to_has_all_memory and
9548 to_has_memory of tfile_ops.
9549 * tracefile.c (tracefile_has_all_memory): New function.
9550 (tracefile_has_memory): New function.
9551 (init_tracefile_ops): Initialize fields to_has_all_memory and
9552 to_has_memory of 'ops'.
9553
12e03cd0
YQ
95542014-02-23 Yao Qi <yao@codesourcery.com>
9555
9556 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
9557 (ctf_thread_alive, ctf_get_trace_status): Remove.
9558 (init_ctf_ops): Don't set some fields of ctf_ops. Call
9559 init_tracefile_ops.
9560 * tracefile-tfile.c (tfile_get_trace_status): Remove.
9561 (tfile_has_stack, tfile_has_registers): Remove.
9562 (tfile_thread_alive): Remove.
9563 (init_tfile_ops): Don't set some fields of tfile_ops. Call
9564 init_tracefile_ops.
9565 * tracefile.c (tracefile_has_stack): New function.
9566 (tracefile_has_registers): New function.
9567 (tracefile_thread_alive): New function.
9568 (tracefile_get_trace_status): New function.
9569 (init_tracefile_ops): New function.
9570 * tracefile.h (init_tracefile_ops): Declare.
9571
11395323
YQ
95722014-02-23 Yao Qi <yao@codesourcery.com>
9573
9574 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
9575 (O_LARGEFILE): Likewise.
9576 (tfile_ops): Likewise.
9577 (TRACE_HEADER_SIZE): Likewise.
9578 (trace_fd, trace_frames_offset, cur_offset): Likewise.
9579 (cur_data_size): Likewise.
9580 (tfile_read, tfile_open, tfile_interp_line): Likewise.
9581 (tfile_close, tfile_files_info): Likewise.
9582 (tfile_get_trace_status): Likewise.
9583 (tfile_get_tracepoint_status): Likewise.
9584 (tfile_get_traceframe_address): Likewise.
9585 (tfile_trace_find, match_blocktype): Likewise.
9586 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
9587 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
9588 (tfile_get_trace_state_variable_value): Likewise.
9589 (tfile_has_all_memory, tfile_has_memory): Likewise.
9590 (tfile_has_stack, tfile_has_registers): Likewise.
9591 (tfile_thread_alive, build_traceframe_info): Likewise.
9592 (tfile_traceframe_info, init_tfile_ops): Likewise.
9593 (_initialize_tracepoint): Don't call init_tfile_ops
9594 and add_target_with_completer.
9595 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
9596 exec.h, completer.h and filenames.h.
9597 (_initialize_tracefile_tfile): New function.
9598
7951c4eb
YQ
95992014-02-23 Yao Qi <yao@codesourcery.com>
9600
9601 * Makefile.in (REMOTE_OBS): Append tracefile.o and
9602 tracefile-tfile.o.
9603 (HFILES_NO_SRCDIR): Add tracefile.h.
9604 * ctf.c: Include "tracefile.h".
9605 * tracefile.h: New file.
9606 * tracefile.c: New file
9607 * tracefile-tfile.c: New file.
9608 * tracepoint.c: Include "tracefile.h".
9609 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
9610 (stop_reason_names): Add const.
9611 (trace_file_writer_xfree): Move it to tracefile.c.
9612 (trace_save, trace_save_command, trace_save_tfile): Likewise.
9613 (trace_save_ctf): Likewise.
9614 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
9615 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
9616 (tfile_write_header, tfile_write_regblock_type): Likewise.
9617 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
9618 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
9619 (tfile_write_raw_data, tfile_end): Likewise.
9620 (tfile_trace_file_writer_new): Likewise.
9621 (free_uploaded_tp): Make it extern.
9622 (free_uploaded_tsv): Make it extern.
9623 (_initialize_tracepoint): Move code to register command 'tsave'
9624 to tracefile.c.
9625 * tracepoint.h (stop_reason_names): Declare.
9626 (struct trace_frame_write_ops): Move it to tracefile.h.
9627 (struct trace_file_write_ops): Likewise.
9628 (struct trace_file_writer): Likewise.
9629 (free_uploaded_tsvs, free_uploaded_tps): Declare.
9630
184cd072
JK
96312014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9632
9633 PR gdb/16594
9634 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
9635 process name.
9636 (get_cores_used_by_process): New parameter num_cores, use it.
9637 (linux_xfer_osdata_processes): Pass num_cores to it.
9638 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
9639 process name.
9640
c63528fc
AK
96412014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
9642
9643 * target.c (memory_xfer_partial): Fix length arg in call to
9644 breakpoint_xfer_memory.
9645
d7b30f67
SDJ
96462014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9647
9648 PR tdep/16397
9649 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
9650 number comes after the + or - signs. Adjust length of register
9651 name to be extracted.
9652
8838afaf
TT
96532014-02-20 Tom Tromey <tromey@redhat.com>
9654
9655 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
9656 (ada_varobj_ops): Mark "extern".
9657
05227d14
TT
96582014-02-20 Tom Tromey <tromey@redhat.com>
9659
9660 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
9661
1254eefc
DE
96622014-02-20 Doug Evans <xdje42@gmail.com>
9663
9664 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
9665 All callers updated.
9666 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
9667 All callers updated.
9668 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
9669 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
9670
adde2bff
DE
96712014-02-20 lin zuojian <manjian2006@gmail.com>
9672 Joel Brobecker <brobecker@adacore.com>
9673 Doug Evans <xdje42@gmail.com>
9674
9675 PR symtab/16581
9676 * dwarf2read.c (struct die_info): New member in_process.
9677 (reset_die_in_process): New function.
9678 (process_die): Set it at the start, reset when returning.
9679 (inherit_abstract_dies): Only call process_die if origin_child_die
9680 not already being processed.
9681
3be75f87
JB
96822014-02-20 Joel Brobecker <brobecker@adacore.com>
9683
9684 * windows-nat.c (handle_unload_dll): Add function documentation.
9685 (do_initial_windows_stuff): Add comment explaining why we wait
9686 until after inferior initialization has finished before
9687 processing all DLLs.
9688
47f7ffdb
JB
96892014-02-20 Joel Brobecker <brobecker@adacore.com>
9690
9691 * windows-nat.c (get_module_name): Delete.
9692 (windows_get_exec_module_filename): New function, mostly
9693 inspired from get_module_name.
9694 (windows_pid_to_exec_file): Replace call to get_module_name
9695 by call to windows_get_exec_module_filename.
9696
1cd9feab
JB
96972014-02-20 Joel Brobecker <brobecker@adacore.com>
9698
9699 * windows-nat.c (handle_load_dll): Rewrite this function's
9700 introductory comment. Remove code using get_module_name
9701 to get the DLL's name.
9702
ea39ad35
JB
97032014-02-20 Joel Brobecker <brobecker@adacore.com>
9704
9705 * windows-nat.c (get_windows_debug_event): Ignore
9706 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
9707 if windows_initialization_done == 0.
9708 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
9709 Adjust implementation to always load all DLLs.
9710 (do_initial_windows_stuff): Replace call to
9711 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
9712
95060284
JB
97132014-02-20 Joel Brobecker <brobecker@adacore.com>
9714
9715 * windows-nat.c (_initialize_windows_nat): Deprecate the
9716 "dll-symbols" command. Turn the "add-shared-symbol-files"
9717 and "assf" aliases into commands, and deprecate them as well.
9718 * NEWS: Add entry explaining that "dll-symbols" and its two
9719 aliases are now deprecated.
9720
8d4fdb12
JB
97212014-02-20 Joel Brobecker <brobecker@adacore.com>
9722
9723 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
9724 new-line in debug string. Remove trailing spaces.
9725
1b281443
SS
97262014-02-19 Stan Shebs <stan@codesourcery.com>
9727
9728 * darwin-nat.c (darwin_xfer_partial): Fix return type.
9729
f7bd0f78
SC
97302014-02-19 Siva Chandra Reddy <sivachandra@google.com>
9731
9732 * NEWS: Add entry for the new feature
9733 * python/py-value.c (valpy_binop): Call value_x_binop for struct
9734 and class values.
9735
399ebc3d
SS
97362014-02-19 Stan Shebs <stan@codesourcery.com>
9737
9738 * MAINTAINERS: List Yao Qi as nios2 maintainer.
9739
c658158d
PA
97402014-02-19 Pedro Alves <palves@redhat.com>
9741
9742 * common/ptid.h (struct ptid): Mention that process_stratum
9743 targets should prefer ptid.lwp.
9744
ba348170
PA
97452014-02-19 Pedro Alves <palves@redhat.com>
9746
9747 * remote.c (remote_thread_alive, write_ptid, read_ptid)
9748 (read_ptid, remote_newthread_step, remote_threads_extra_info)
9749 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
9750 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
9751 store remote thread ids rather than ptid.tid.
9752 (_initialize_remote): Adjust.
9753
ac01945b
TT
97542014-02-19 Tom Tromey <tromey@redhat.com>
9755
9756 * target.c (target_get_unwinder): Rewrite.
9757 (target_get_tailcall_unwinder): Rewrite.
9758 * record-btrace.c (record_btrace_to_get_unwinder): New function.
9759 (record_btrace_to_get_tailcall_unwinder): New function.
9760 (init_record_btrace_ops): Update.
9761 * target.h (struct target_ops) <to_get_unwinder,
9762 to_get_tailcall_unwinder>: Now function pointers. Use
9763 TARGET_DEFAULT_RETURN.
9764
8476dc92
TT
97652014-02-19 Tom Tromey <tromey@redhat.com>
9766
9767 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
9768 argument.
9769 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
9770
c0eca49f
TT
97712014-02-19 Tom Tromey <tromey@redhat.com>
9772
9773 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
9774 directly.
9775 * target-delegates.c: Rebuild.
9776 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
9777 TARGET_DEFAULT_FUNC.
9778 * target.c (default_target_decr_pc_after_break): Rename from
9779 forward_target_decr_pc_after_break. Simplify.
9780 (target_decr_pc_after_break): Rely on delegation.
9781
596b6b39
TT
97822014-02-19 Tom Tromey <tromey@redhat.com>
9783
9784 * target.c (update_current_target): Do not INHERIT to_doc or
9785 to_magic. Do not de_fault to_open or to_close.
9786
b427c1bc
TT
97872014-02-19 Tom Tromey <tromey@redhat.com>
9788
9789 * gcore.h (objfile_find_memory_regions): Declare.
9790 * gcore.c (objfile_find_memory_regions): No longer static. Add
9791 "self" argument.
9792 (_initialize_gcore): Don't call exec_set_find_memory_regions.
9793 * exec.c: Include gcore.h.
9794 (exec_set_find_memory_regions): Remove.
9795 (exec_find_memory_regions): Remove.
9796 (exec_do_find_memory_regions): Remove.
9797 (init_exec_ops): Update.
9798 * defs.h (exec_set_find_memory_regions): Remove.
9799
9b144037
TT
98002014-02-19 Tom Tromey <tromey@redhat.com>
9801
9802 * target-delegates.c: Rebuild.
9803 * target.h (struct target_ops) <to_extra_thread_info,
9804 to_thread_name, to_pid_to_exec_file, to_get_section_table,
9805 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
9806 not 0, in TARGET_DEFAULT_RETURN.
9807
555bbdeb
TT
98082014-02-19 Tom Tromey <tromey@redhat.com>
9809
9810 * target.c (complete_target_initialization): Remove casts. Use
9811 return_zero_has_execution.
9812 (return_zero): Add "ignore" argument.
9813 (return_zero_has_execution): New function.
9814 (init_dummy_target): Remove casts. Use
9815 return_zero_has_execution.
9816
be4ddd36
TT
98172014-02-19 Tom Tromey <tromey@redhat.com>
9818
9819 * target.c (update_current_target): Update comments. Do not
9820 INHERIT to_stratum.
9821
2117c711
TT
98222014-02-19 Tom Tromey <tromey@redhat.com>
9823
9824 * arm-linux-nat.c (arm_linux_read_description): Delegate when
9825 needed.
9826 * corelow.c (core_read_description): Delegate when needed.
9827 * remote.c (remote_read_description): Delegate when needed.
9828 * target-delegates.c: Rebuild.
9829 * target.c (target_read_description): Rewrite.
9830 * target.h (struct target_ops) <to_read_description>: Update
9831 comment. Use TARGET_DEFAULT_RETURN.
9832
e88ef65c
TT
98332014-02-19 Tom Tromey <tromey@redhat.com>
9834
9835 * target-delegates.c: Rebuild.
9836 * target.c (update_current_target): Don't inherit or default
9837 to_can_run.
9838 (find_default_run_target): Check against delegate_can_run.
9839 * target.h (struct target_ops) <to_can_run>: Use
9840 TARGET_DEFAULT_RETURN.
9841
86a0854a
TT
98422014-02-19 Tom Tromey <tromey@redhat.com>
9843
9844 * target-delegates.c: Rebuild.
9845 * target.c (target_disconnect): Unconditionally delegate.
9846 * target.h (struct target_ops) <to_disconnect>: Use
9847 TARGET_DEFAULT_NORETURN.
9848
ee97f592
TT
98492014-02-19 Tom Tromey <tromey@redhat.com>
9850
9851 * record.c (record_stop): Unconditionally delegate.
9852 * target-delegates.c: Rebuild.
9853 * target.c (target_stop_recording): Unconditionally delegate.
9854 * target.h (struct target_ops) <to_stop_recording>: Use
9855 TARGET_DEFAULT_IGNORE.
9856
6dc7fcf4
TT
98572014-02-19 Tom Tromey <tromey@redhat.com>
9858
9859 * target-delegates.c: Rebuild.
9860 * target.c (target_enable_btrace): Unconditionally delegate.
9861 * target.h (struct target_ops) <to_enable_btrace>: Use
9862 TARGET_DEFAULT_NORETURN.
9863
eb5b20d4
TT
98642014-02-19 Tom Tromey <tromey@redhat.com>
9865
9866 * target-delegates.c: Rebuild.
9867 * target.c (target_read_btrace): Unconditionally delegate.
9868 * target.h (struct target_ops) <to_read_btrace>: Use
9869 TARGET_DEFAULT_NORETURN.
9870
9ace480d
TT
98712014-02-19 Tom Tromey <tromey@redhat.com>
9872
9873 * target-delegates.c: Rebuild.
9874 * target.c (target_teardown_btrace): Unconditionally delegate.
9875 * target.h (struct target_ops) <to_teardown_btrace>: Use
9876 TARGET_DEFAULT_NORETURN.
9877
8dc292d3
TT
98782014-02-19 Tom Tromey <tromey@redhat.com>
9879
9880 * target-delegates.c: Rebuild.
9881 * target.c (target_disable_btrace): Unconditionally delegate.
9882 * target.h (struct target_ops) <to_disable_btrace>: Use
9883 TARGET_DEFAULT_NORETURN.
9884
58a5184e
TT
98852014-02-19 Tom Tromey <tromey@redhat.com>
9886
9887 * target-delegates.c: Rebuild.
9888 * target.c (default_search_memory): New function.
9889 (simple_search_memory): Update comment.
9890 (target_search_memory): Unconditionally delegate.
9891 * target.h (struct target_ops) <to_search_memory>: Use
9892 TARGET_DEFAULT_FUNC.
9893
8de71aab
TT
98942014-02-19 Tom Tromey <tromey@redhat.com>
9895
9896 * auxv.c (default_auxv_parse): No longer static.
9897 (target_auxv_parse): Unconditionally delegate.
9898 * auxv.h (default_auxv_parse): Declare.
9899 * target-delegates.c: Rebuild.
9900 * target.c: Include auxv.h.
9901 * target.h (struct target_ops) <to_auxv_parse>: Use
9902 TARGET_DEFAULT_FUNC.
9903
6b2c5a57
TT
99042014-02-19 Tom Tromey <tromey@redhat.com>
9905
9906 * target-delegates.c: Rebuild.
9907 * target.c (target_memory_map): Unconditionally delegate.
9908 * target.h (struct target_ops) <to_memory_map>: Use
9909 TARGET_DEFAULT_RETURN.
9910
cbffc065
TT
99112014-02-19 Tom Tromey <tromey@redhat.com>
9912
9913 * target-delegates.c: Rebuild.
9914 * target.c (target_thread_alive): Unconditionally delegate.
9915 * target.h (struct target_ops) <to_thread_alive>: Use
9916 TARGET_DEFAULT_RETURN.
9917
f09e2107
TT
99182014-02-19 Tom Tromey <tromey@redhat.com>
9919
9920 * target-delegates.c: Rebuild.
9921 * target.c (target_save_record): Unconditionally delegate.
9922 * target.h (struct target_ops) <to_save_record>: Use
9923 TARGET_DEFAULT_NORETURN.
9924
07366925
TT
99252014-02-19 Tom Tromey <tromey@redhat.com>
9926
9927 * target-delegates.c: Rebuild.
9928 * target.c (target_delete_record): Unconditionally delegate.
9929 * target.h (struct target_ops) <to_delete_record>: Use
9930 TARGET_DEFAULT_NORETURN.
9931
dd2e9d25
TT
99322014-02-19 Tom Tromey <tromey@redhat.com>
9933
9934 * target-delegates.c: Rebuild.
9935 * target.c (target_record_is_replaying): Unconditionally
9936 delegate.
9937 * target.h (struct target_ops) <to_record_is_replaying>: Use
9938 TARGET_DEFAULT_RETURN.
9939
671e76cc
TT
99402014-02-19 Tom Tromey <tromey@redhat.com>
9941
9942 * target-delegates.c: Rebuild.
9943 * target.c (target_goto_record_begin): Unconditionally delegate.
9944 * target.h (struct target_ops) <to_goto_record_begin>: Use
9945 TARGET_DEFAULT_NORETURN.
9946
e9179bb3
TT
99472014-02-19 Tom Tromey <tromey@redhat.com>
9948
9949 * target-delegates.c: Rebuild.
9950 * target.c (target_goto_record_end): Unconditionally delegate.
9951 * target.h (struct target_ops) <to_goto_record_end>: Use
9952 TARGET_DEFAULT_NORETURN.
9953
05969c84
TT
99542014-02-19 Tom Tromey <tromey@redhat.com>
9955
9956 * target-delegates.c: Rebuild.
9957 * target.c (target_goto_record): Unconditionally delegate.
9958 * target.h (struct target_ops) <to_goto_record>: Use
9959 TARGET_DEFAULT_NORETURN.
9960
3679abfa
TT
99612014-02-19 Tom Tromey <tromey@redhat.com>
9962
9963 * target-delegates.c: Rebuild.
9964 * target.c (target_insn_history): Unconditionally delegate.
9965 * target.h (struct target_ops) <to_insn_history>: Use
9966 TARGET_DEFAULT_NORETURN.
9967
8444ab58
TT
99682014-02-19 Tom Tromey <tromey@redhat.com>
9969
9970 * target-delegates.c: Rebuild.
9971 * target.c (target_insn_history_from): Unconditionally delegate.
9972 * target.h (struct target_ops) <to_insn_history_from>: Use
9973 TARGET_DEFAULT_NORETURN.
9974
c29302cc
TT
99752014-02-19 Tom Tromey <tromey@redhat.com>
9976
9977 * target-delegates.c: Rebuild.
9978 * target.c (target_insn_history_range): Unconditionally delegate.
9979 * target.h (struct target_ops) <to_insn_history_range>: Use
9980 TARGET_DEFAULT_NORETURN.
9981
170049d4
TT
99822014-02-19 Tom Tromey <tromey@redhat.com>
9983
9984 * target-delegates.c: Rebuild.
9985 * target.c (target_call_history): Unconditionally delegate.
9986 * target.h (struct target_ops) <to_call_history>: Use
9987 TARGET_DEFAULT_NORETURN.
9988
16fc27d6
TT
99892014-02-19 Tom Tromey <tromey@redhat.com>
9990
9991 * target-delegates.c: Rebuild.
9992 * target.c (target_call_history_from): Unconditionally delegate.
9993 * target.h (struct target_ops) <to_call_history_from>: Use
9994 TARGET_DEFAULT_NORETURN.
9995
115d9817
TT
99962014-02-19 Tom Tromey <tromey@redhat.com>
9997
9998 * target-delegates.c: Rebuild.
9999 * target.c (target_call_history_range): Unconditionally delegate.
10000 * target.h (struct target_ops) <to_call_history_range>: Use
10001 TARGET_DEFAULT_NORETURN.
10002
eb276a6b
TT
100032014-02-19 Tom Tromey <tromey@redhat.com>
10004
10005 * target-delegates.c: Rebuild.
10006 * target.c (target_verify_memory): Unconditionally delegate.
10007 * target.h (struct target_ops) <to_verify_memory>: Use
10008 TARGET_DEFAULT_NORETURN.
10009
9e538d0d
TT
100102014-02-19 Tom Tromey <tromey@redhat.com>
10011
10012 * target-delegates.c: Rebuild.
10013 * target.c (target_core_of_thread): Unconditionally delegate.
10014 * target.h (struct target_ops) <to_core_of_thread>: Use
10015 TARGET_DEFAULT_RETURN.
10016
f6fb2925
TT
100172014-02-19 Tom Tromey <tromey@redhat.com>
10018
10019 * target-delegates.c: Rebuild.
10020 * target.c (target_flash_done): Unconditionally delegate.
10021 * target.h (struct target_ops) <to_flash_done>: Use
10022 TARGET_DEFAULT_NORETURN.
10023
e8a6c6ac
TT
100242014-02-19 Tom Tromey <tromey@redhat.com>
10025
10026 * target-delegates.c: Rebuild.
10027 * target.c (target_flash_erase): Unconditionally delegate.
10028 * target.h (struct target_ops) <to_flash_erase>: Use
10029 TARGET_DEFAULT_NORETURN.
10030
7e35c012
TT
100312014-02-19 Tom Tromey <tromey@redhat.com>
10032
10033 * target-delegates.c: Rebuild.
10034 * target.c (target_get_section_table): Unconditionally delegate.
10035 * target.h (struct target_ops) <to_get_section_table>: Use
10036 TARGET_DEFAULT_RETURN.
10037
770234d3
TT
100382014-02-19 Tom Tromey <tromey@redhat.com>
10039
10040 * target-delegates.c: Rebuild.
10041 * target.c (target_pid_to_str): Unconditionally delegate.
10042 (init_dummy_target): Don't initialize to_pid_to_str.
10043 (default_pid_to_str): Rename from dummy_pid_to_str.
10044 * target.h (struct target_ops) <to_pid_to_str>: Use
10045 TARGET_DEFAULT_FUNC.
10046
09b0dc2b
TT
100472014-02-19 Tom Tromey <tromey@redhat.com>
10048
10049 * target-delegates.c: Rebuild.
10050 * target.c (target_find_new_threads): Unconditionally delegate.
10051 * target.h (struct target_ops) <to_find_new_threads>: Use
10052 TARGET_DEFAULT_RETURN.
10053
7d4f8efa
TT
100542014-02-19 Tom Tromey <tromey@redhat.com>
10055
10056 * target-delegates.c: Rebuild.
10057 * target.c (target_program_signals): Unconditionally delegate.
10058 * target.h (struct target_ops) <to_program_signals>: Use
10059 TARGET_DEFAULT_IGNORE.
10060
035cad7f
TT
100612014-02-19 Tom Tromey <tromey@redhat.com>
10062
10063 * target-delegates.c: Rebuild.
10064 * target.c (target_pass_signals): Unconditionally delegate.
10065 * target.h (struct target_ops) <to_pass_signals>: Use
10066 TARGET_DEFAULT_IGNORE.
10067
8d657035
TT
100682014-02-19 Tom Tromey <tromey@redhat.com>
10069
10070 * target-delegates.c: Rebuild.
10071 * target.c (default_mourn_inferior): New function.
10072 (target_mourn_inferior): Unconditionally delegate.
10073 * target.h (struct target_ops) <to_mourn_inferior>: Use
10074 TARGET_DEFAULT_FUNC.
10075
098dba18
TT
100762014-02-19 Tom Tromey <tromey@redhat.com>
10077
10078 * target-delegates.c: Rebuild.
10079 * target.c (default_follow_fork): New function.
10080 (target_follow_fork): Unconditionally delegate.
10081 * target.h (struct target_ops) <to_follow_fork>: Use
10082 TARGET_DEFAULT_FUNC.
10083
423a4807
TT
100842014-02-19 Tom Tromey <tromey@redhat.com>
10085
10086 * target-delegates.c: Rebuild.
10087 * target.c (target_kill): Unconditionally delegate.
10088 * target.h (struct target_ops) <to_kill>: Use
10089 TARGET_DEFAULT_NORETURN.
10090
6c7e5e5c
TT
100912014-02-19 Tom Tromey <tromey@redhat.com>
10092
10093 * target-delegates.c: Rebuild.
10094 * target.c (target_masked_watch_num_registers): Unconditionally
10095 delegate.
10096 * target.h (struct target_ops) <to_masked_watch_num_registers>:
10097 Use TARGET_DEFAULT_RETURN.
10098
8b1c364c
TT
100992014-02-19 Tom Tromey <tromey@redhat.com>
10100
10101 * target-delegates.c: Rebuild.
10102 * target.c (target_remove_mask_watchpoint): Unconditionally
10103 delegate.
10104 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
10105 TARGET_DEFAULT_RETURN.
10106
cd4ae029
TT
101072014-02-19 Tom Tromey <tromey@redhat.com>
10108
10109 * target-delegates.c: Rebuild.
10110 * target.c (target_insert_mask_watchpoint): Unconditionally
10111 delegate.
10112 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
10113 TARGET_DEFAULT_RETURN.
10114
a134316b
TT
101152014-02-19 Tom Tromey <tromey@redhat.com>
10116
10117 * target-delegates.c: Rebuild.
10118 * target.c (target_ranged_break_num_registers): Unconditionally
10119 delegate.
10120 * target.h (struct target_ops) <to_ranged_break_num_registers>:
10121 Use TARGET_DEFAULT_RETURN.
10122
ad5989bd
TT
101232014-02-19 Tom Tromey <tromey@redhat.com>
10124
10125 * target-delegates.c: Rebuild.
10126 * target.c (target_fetch_registers): Unconditionally delegate.
10127 * target.h (struct target_ops) <to_fetch_registers>: Use
10128 TARGET_DEFAULT_NORETURN.
10129
46ee7e8d
TT
101302014-02-19 Tom Tromey <tromey@redhat.com>
10131
10132 * target-delegates.c: Rebuild.
10133 * target.c (update_current_target): Don't inherit or default
10134 to_stop.
10135 * target.h (struct target_ops) <to_stop>: Use
10136 TARGET_DEFAULT_IGNORE.
10137
843f59ed
TT
101382014-02-19 Tom Tromey <tromey@redhat.com>
10139
10140 * target-delegates.c: Rebuild.
10141 * target.c (update_current_target): Don't inherit or default
10142 to_can_run_breakpoint_commands.
10143 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
10144 Use TARGET_DEFAULT_RETURN.
10145
ccfde2a0
TT
101462014-02-19 Tom Tromey <tromey@redhat.com>
10147
10148 * target-delegates.c: Rebuild.
10149 * target.c (update_current_target): Don't inherit or default
10150 to_supports_evaluation_of_breakpoint_conditions.
10151 * target.h (struct target_ops)
10152 <to_supports_evaluation_of_breakpoint_conditions>: Use
10153 TARGET_DEFAULT_RETURN.
10154
0de91722
TT
101552014-02-19 Tom Tromey <tromey@redhat.com>
10156
10157 * target-delegates.c: Rebuild.
10158 * target.c (update_current_target): Don't inherit or default
10159 to_augmented_libraries_svr4_read.
10160 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
10161 Use TARGET_DEFAULT_RETURN.
10162
9a7d8b48
TT
101632014-02-19 Tom Tromey <tromey@redhat.com>
10164
10165 * target-delegates.c: Rebuild.
10166 * target.c (update_current_target): Don't inherit or default
10167 to_can_use_agent.
10168 * target.h (struct target_ops) <to_can_use_agent>: Use
10169 TARGET_DEFAULT_RETURN.
10170
d9db5b21
TT
101712014-02-19 Tom Tromey <tromey@redhat.com>
10172
10173 * target-delegates.c: Rebuild.
10174 * target.c (update_current_target): Don't inherit or default
10175 to_use_agent.
10176 * target.h (struct target_ops) <to_use_agent>: Use
10177 TARGET_DEFAULT_NORETURN.
10178
92155eeb
TT
101792014-02-19 Tom Tromey <tromey@redhat.com>
10180
10181 * target-delegates.c: Rebuild.
10182 * target.c (update_current_target): Don't inherit or default
10183 to_traceframe_info.
10184 (return_null): Remove.
10185 * target.h (struct target_ops) <to_traceframe_info>: Use
10186 TARGET_DEFAULT_RETURN.
10187
d6522a22
TT
101882014-02-19 Tom Tromey <tromey@redhat.com>
10189
10190 * target-delegates.c: Rebuild.
10191 * target.c (update_current_target): Don't inherit or default
10192 to_static_tracepoint_markers_by_strid.
10193 * target.h (struct target_ops)
10194 <to_static_tracepoint_markers_by_strid>: Use
10195 TARGET_DEFAULT_NORETURN.
10196
4c3e4425
TT
101972014-02-19 Tom Tromey <tromey@redhat.com>
10198
10199 * target-delegates.c: Rebuild.
10200 * target.c (update_current_target): Don't inherit or default
10201 to_static_tracepoint_marker_at.
10202 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
10203 Use TARGET_DEFAULT_RETURN.
10204
dcd6917f
TT
102052014-02-19 Tom Tromey <tromey@redhat.com>
10206
10207 * target-delegates.c: Rebuild.
10208 * target.c (update_current_target): Don't inherit or default
10209 to_set_permissions.
10210 * target.h (struct target_ops) <to_set_permissions>: Use
10211 TARGET_DEFAULT_IGNORE.
10212
22bcceee
TT
102132014-02-19 Tom Tromey <tromey@redhat.com>
10214
10215 * target-delegates.c: Rebuild.
10216 * target.c (update_current_target): Don't inherit or default
10217 to_get_tib_address.
10218 * target.h (struct target_ops) <to_get_tib_address>: Use
10219 TARGET_DEFAULT_NORETURN.
10220
8586ccaa
TT
102212014-02-19 Tom Tromey <tromey@redhat.com>
10222
10223 * target-delegates.c: Rebuild.
10224 * target.c (update_current_target): Don't inherit or default
10225 to_set_trace_notes.
10226 * target.h (struct target_ops) <to_set_trace_notes>: Use
10227 TARGET_DEFAULT_RETURN.
10228
91df8d1d
TT
102292014-02-19 Tom Tromey <tromey@redhat.com>
10230
10231 * target-delegates.c: Rebuild.
10232 * target.c (update_current_target): Don't initialize
10233 to_set_trace_buffer_size.
10234 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
10235 TARGET_DEFAULT_IGNORE.
10236
8d526939
TT
102372014-02-19 Tom Tromey <tromey@redhat.com>
10238
10239 * target-delegates.c: Rebuild.
10240 * target.c (update_current_target): Don't inherit or default
10241 to_set_circular_trace_buffer.
10242 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
10243 TARGET_DEFAULT_IGNORE.
10244
0bcfeddf
TT
102452014-02-19 Tom Tromey <tromey@redhat.com>
10246
10247 * target-delegates.c: Rebuild.
10248 * target.c (update_current_target): Don't inherit or default
10249 to_set_disconnected_tracing.
10250 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
10251 TARGET_DEFAULT_IGNORE.
10252
9249843f
TT
102532014-02-19 Tom Tromey <tromey@redhat.com>
10254
10255 * target-delegates.c: Rebuild.
10256 * target.c (update_current_target): Don't inherit or default
10257 to_get_min_fast_tracepoint_insn_len.
10258 (return_minus_one): Remove.
10259 * target.h (struct target_ops)
10260 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
10261
ace92e7d
TT
102622014-02-19 Tom Tromey <tromey@redhat.com>
10263
10264 * target-delegates.c: Rebuild.
10265 * target.c (update_current_target): Don't inherit or default
10266 to_get_raw_trace_data.
10267 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
10268 TARGET_DEFAULT_NORETURN.
10269
08120467
TT
102702014-02-19 Tom Tromey <tromey@redhat.com>
10271
10272 * target-delegates.c: Rebuild.
10273 * target.c (update_current_target): Don't inherit or default
10274 to_upload_trace_state_variables.
10275 * target.h (struct target_ops) <to_upload_trace_state_variables>:
10276 Use TARGET_DEFAULT_RETURN.
10277
1e949b00
TT
102782014-02-19 Tom Tromey <tromey@redhat.com>
10279
10280 * target-delegates.c: Rebuild.
10281 * target.c (update_current_target): Don't inherit or default
10282 to_upload_tracepoints.
10283 * target.h (struct target_ops) <to_upload_tracepoints>: Use
10284 TARGET_DEFAULT_RETURN.
10285
a2e6c147
TT
102862014-02-19 Tom Tromey <tromey@redhat.com>
10287
10288 * target-delegates.c: Rebuild.
10289 * target.c (update_current_target): Don't inherit or default
10290 to_save_trace_data.
10291 * target.h (struct target_ops) <to_save_trace_data>: Use
10292 TARGET_DEFAULT_NORETURN.
10293
959bcd0b
TT
102942014-02-19 Tom Tromey <tromey@redhat.com>
10295
10296 * target-delegates.c: Rebuild.
10297 * target.c (update_current_target): Don't inherit or default
10298 to_get_trace_state_variable_value.
10299 * target.h (struct target_ops)
10300 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
10301
afc94e66
TT
103022014-02-19 Tom Tromey <tromey@redhat.com>
10303
10304 * target-delegates.c: Rebuild.
10305 * target.c (update_current_target): Don't inherit or default
10306 to_trace_find.
10307 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
10308
e51c07ea
TT
103092014-02-19 Tom Tromey <tromey@redhat.com>
10310
10311 * target-delegates.c: Rebuild.
10312 * target.c (update_current_target): Don't inherit or default
10313 to_trace_stop.
10314 * target.h (struct target_ops) <to_trace_stop>: Use
10315 TARGET_DEFAULT_NORETURN.
10316
6fea14cd
TT
103172014-02-19 Tom Tromey <tromey@redhat.com>
10318
10319 * target-delegates.c: Rebuild.
10320 * target.c (update_current_target): Don't inherit or default
10321 to_get_tracepoint_status.
10322 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
10323 TARGET_DEFAULT_NORETURN.
10324
4072d4ff
TT
103252014-02-19 Tom Tromey <tromey@redhat.com>
10326
10327 * target-delegates.c: Rebuild.
10328 * target.c (update_current_target): Don't inherit or default
10329 to_get_trace_status.
10330 * target.h (struct target_ops) <to_get_trace_status>: Use
10331 TARGET_DEFAULT_RETURN.
10332
25da2e80
TT
103332014-02-19 Tom Tromey <tromey@redhat.com>
10334
10335 * target-delegates.c: Rebuild.
10336 * target.c (update_current_target): Don't inherit or default
10337 to_trace_start.
10338 * target.h (struct target_ops) <to_trace_start>: Use
10339 TARGET_DEFAULT_NORETURN.
10340
86dd181d
TT
103412014-02-19 Tom Tromey <tromey@redhat.com>
10342
10343 * target-delegates.c: Rebuild.
10344 * target.c (update_current_target): Don't inherit or default
10345 to_trace_set_readonly_regions.
10346 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
10347 Use TARGET_DEFAULT_NORETURN.
10348
05c41993
TT
103492014-02-19 Tom Tromey <tromey@redhat.com>
10350
10351 * target-delegates.c: Rebuild.
10352 * target.c (update_current_target): Don't inherit or default
10353 to_disable_tracepoint.
10354 * target.h (struct target_ops) <to_disable_tracepoint>: Use
10355 TARGET_DEFAULT_NORETURN.
10356
151f70f1
TT
103572014-02-19 Tom Tromey <tromey@redhat.com>
10358
10359 * target-delegates.c: Rebuild.
10360 * target.c (update_current_target): Don't inherit or default
10361 to_enable_tracepoint.
10362 * target.h (struct target_ops) <to_enable_tracepoint>: Use
10363 TARGET_DEFAULT_NORETURN.
10364
94eb98b9
TT
103652014-02-19 Tom Tromey <tromey@redhat.com>
10366
10367 * target-delegates.c: Rebuild.
10368 * target.c (update_current_target): Don't inherit or default
10369 to_download_trace_state_variable.
10370 * target.h (struct target_ops) <to_download_trace_state_variable>:
10371 Use TARGET_DEFAULT_NORETURN.
10372
719acc4a
TT
103732014-02-19 Tom Tromey <tromey@redhat.com>
10374
10375 * target-delegates.c: Rebuild.
10376 * target.c (update_current_target): Don't inherit or default
10377 to_can_download_tracepoint.
10378 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
10379 TARGET_DEFAULT_RETURN.
10380
9a980a22
TT
103812014-02-19 Tom Tromey <tromey@redhat.com>
10382
10383 * target-delegates.c: Rebuild.
10384 * target.c (update_current_target): Don't inherit or default
10385 to_download_tracepoint.
10386 * target.h (struct target_ops) <to_download_tracepoint>: Use
10387 TARGET_DEFAULT_NORETURN.
10388
5536135b
TT
103892014-02-19 Tom Tromey <tromey@redhat.com>
10390
10391 * target-delegates.c: Rebuild.
10392 * target.c (update_current_target): Don't inherit or default
10393 to_trace_init.
10394 * target.h (struct target_ops) <to_trace_init>: Use
10395 TARGET_DEFAULT_RETURN.
10396
9409d39e
TT
103972014-02-19 Tom Tromey <tromey@redhat.com>
10398
10399 * target-delegates.c: Rebuild.
10400 * target.c (update_current_target): Don't inherit or default
10401 to_supports_string_tracing.
10402 * target.h (struct target_ops) <to_supports_string_tracing>: Use
10403 TARGET_DEFAULT_RETURN.
10404
aab1b22d
TT
104052014-02-19 Tom Tromey <tromey@redhat.com>
10406
10407 * target-delegates.c: Rebuild.
10408 * target.c (update_current_target): Don't inherit or default
10409 to_supports_enable_disable_tracepoint.
10410 * target.h (struct target_ops)
10411 <to_supports_enable_disable_tracepoint>: Use
10412 TARGET_DEFAULT_RETURN.
10413
a7304748
TT
104142014-02-19 Tom Tromey <tromey@redhat.com>
10415
10416 * target-delegates.c: Rebuild.
10417 * target.c (update_current_target): Don't inherit or default
10418 to_supports_multi_process.
10419 * target.h (struct target_ops) <to_supports_multi_process>: Use
10420 TARGET_DEFAULT_RETURN.
10421
4229b31d
TT
104222014-02-19 Tom Tromey <tromey@redhat.com>
10423
10424 * target-delegates.c: Rebuild.
10425 * target.c (update_current_target): Don't inherit or default
10426 to_get_ada_task_ptid.
10427 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
10428 TARGET_DEFAULT_FUNC.
10429
43eba180
TT
104302014-02-19 Tom Tromey <tromey@redhat.com>
10431
10432 * target-delegates.c: Rebuild.
10433 * target.c (update_current_target): Don't inherit or default
10434 to_thread_architecture.
10435 * target.h (struct target_ops) <to_thread_architecture>: Use
10436 TARGET_DEFAULT_FUNC.
10437
fe31bf5b
TT
104382014-02-19 Tom Tromey <tromey@redhat.com>
10439
10440 * target-delegates.c: Rebuild.
10441 * target.c (update_current_target): Don't inherit or default
10442 to_execution_direction.
10443 * target.h (struct target_ops) <to_execution_direction>: Use
10444 TARGET_DEFAULT_FUNC.
10445
53e1cfc7
TT
104462014-02-19 Tom Tromey <tromey@redhat.com>
10447
10448 * target-delegates.c: Rebuild.
10449 * target.c (update_current_target): Don't inherit or default
10450 to_can_execute_reverse.
10451 * target.h (struct target_ops) <to_can_execute_reverse>: Use
10452 TARGET_DEFAULT_RETURN.
10453 (target_can_execute_reverse): Unconditionally delegate.
10454
9bb9d61d
TT
104552014-02-19 Tom Tromey <tromey@redhat.com>
10456
10457 * target-delegates.c: Rebuild.
10458 * target.c (update_current_target): Don't inherit or default
10459 to_goto_bookmark.
10460 (dummy_goto_bookmark): Remove.
10461 (init_dummy_target): Don't inherit or default to_goto_bookmark.
10462 * target.h (struct target_ops) <to_goto_bookmark>: Use
10463 TARGET_DEFAULT_NORETURN.
10464
3dbafbbb
TT
104652014-02-19 Tom Tromey <tromey@redhat.com>
10466
10467 * target-delegates.c: Rebuild.
10468 * target.c (update_current_target): Don't inherit or default
10469 to_get_bookmark.
10470 (dummy_get_bookmark): Remove.
10471 (init_dummy_target): Don't inherit or default to_get_bookmark.
10472 * target.h (struct target_ops) <to_get_bookmark>: Use
10473 TARGET_DEFAULT_NORETURN
10474
16f796b1
TT
104752014-02-19 Tom Tromey <tromey@redhat.com>
10476
10477 * target-delegates.c: Rebuild.
10478 * target.c (update_current_target): Don't inherit or default
10479 to_make_corefile_notes.
10480 (init_dummy_target): Don't initialize to_make_corefile_notes.
10481 * target.h (struct target_ops) <to_make_corefile_notes>: Use
10482 TARGET_DEFAULT_FUNC.
10483
0b5a2719
TT
104842014-02-19 Tom Tromey <tromey@redhat.com>
10485
10486 * target-delegates.c: Rebuild.
10487 * target.c (update_current_target): Don't inherit or default
10488 to_find_memory_regions.
10489 (init_dummy_target): Don't initialize to_find_memory_regions.
10490 * target.h (struct target_ops) <to_find_memory_regions>: Use
10491 TARGET_DEFAULT_FUNC.
10492
d9cb0195
TT
104932014-02-19 Tom Tromey <tromey@redhat.com>
10494
10495 * target-delegates.c: Rebuild.
10496 * target.c (update_current_target): Don't inherit or default
10497 to_log_command.
10498 * target.h (struct target_ops) <to_log_command>: Use
10499 TARGET_DEFAULT_IGNORE.
10500 (target_log_command): Unconditionally delegate.
10501
830ca330
TT
105022014-02-19 Tom Tromey <tromey@redhat.com>
10503
10504 * target-delegates.c: Rebuild.
10505 * target.c (update_current_target): Don't inherit or default
10506 to_pid_to_exec_file.
10507 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
10508 TARGET_DEFAULT_RETURN.
10509
825828fc
TT
105102014-02-19 Tom Tromey <tromey@redhat.com>
10511
10512 * target-delegates.c: Rebuild.
10513 * target.c (update_current_target): Don't inherit or default
10514 to_thread_name.
10515 (target_thread_name): Unconditionally delegate.
10516 * target.h (struct target_ops) <to_thread_name>: Use
10517 TARGET_DEFAULT_RETURN.
10518
4a7e6dda
TT
105192014-02-19 Tom Tromey <tromey@redhat.com>
10520
10521 * target-delegates.c: Rebuild.
10522 * target.c (update_current_target): Don't inherit or default
10523 to_extra_thread_info.
10524 * target.h (struct target_ops) <to_extra_thread_info>: Use
10525 TARGET_DEFAULT_RETURN.
10526
0db88c1d
TT
105272014-02-19 Tom Tromey <tromey@redhat.com>
10528
10529 * target-delegates.c: Rebuild.
10530 * target.c (update_current_target): Don't inherit or default
10531 to_has_exited.
10532 * target.h (struct target_ops) <to_has_exited>: Use
10533 TARGET_DEFAULT_RETURN..
10534
6a9fa051
TT
105352014-02-19 Tom Tromey <tromey@redhat.com>
10536
10537 * target-delegates.c: Rebuild.
10538 * target.c (update_current_target): Don't inherit or default
10539 to_set_syscall_catchpoint.
10540 (return_one): Remove.
10541 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
10542 TARGET_DEFAULT_RETURN.
10543
62f64d7a
TT
105442014-02-19 Tom Tromey <tromey@redhat.com>
10545
10546 * target-delegates.c: Rebuild.
10547 * target.c (update_current_target): Don't inherit or default
10548 to_insert_exec_catchpoint.
10549 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
10550 TARGET_DEFAULT_RETURN.
10551
cda0f38c
TT
105522014-01-08 Tom Tromey <tromey@redhat.com>
10553
10554 * target-delegates.c: Rebuild.
10555 * target.c (update_current_target): Don't inherit or default
10556 to_insert_exec_catchpoint.
10557 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
10558 TARGET_DEFAULT_RETURN.
10559
95c3375e
TT
105602014-02-19 Tom Tromey <tromey@redhat.com>
10561
10562 * target-delegates.c: Rebuild.
10563 * target.c (update_current_target): Don't inherit or default
10564 to_remove_vfork_catchpoint.
10565 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
10566 TARGET_DEFAULT_RETURN.
10567
7e18a8dc
TT
105682014-02-19 Tom Tromey <tromey@redhat.com>
10569
10570 * target-delegates.c: Rebuild.
10571 * target.c (update_current_target): Don't inherit or default
10572 to_insert_vfork_catchpoint.
10573 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
10574 TARGET_DEFAULT_RETURN.
10575
e1a21fb7
TT
105762014-02-19 Tom Tromey <tromey@redhat.com>
10577
10578 * target-delegates.c: Rebuild.
10579 * target.c (update_current_target): Don't inherit or default
10580 to_remove_fork_catchpoint.
10581 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
10582 TARGET_DEFAULT_RETURN.
10583
5958ebeb
TT
105842014-02-19 Tom Tromey <tromey@redhat.com>
10585
10586 * target-delegates.c: Rebuild.
10587 * target.c (update_current_target): Don't inherit or default
10588 to_insert_fork_catchpoint.
10589 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
10590 TARGET_DEFAULT_RETURN.
10591
340ba4bf
TT
105922014-02-19 Tom Tromey <tromey@redhat.com>
10593
10594 * target-delegates.c: Rebuild.
10595 * target.c (update_current_target): Don't inherit or default
10596 to_post_startup_inferior.
10597 * target.h (struct target_ops) <to_post_startup_inferior>: Use
10598 TARGET_DEFAULT_IGNORE.
10599
7634da87
TT
106002014-02-19 Tom Tromey <tromey@redhat.com>
10601
10602 * target-delegates.c: Rebuild.
10603 * target.c (update_current_target): Don't inherit or default
10604 to_load.
10605 * target.h (struct target_ops) <to_load>: Use
10606 TARGET_DEFAULT_NORETURN.
10607
e19e919f
TT
106082014-02-19 Tom Tromey <tromey@redhat.com>
10609
10610 * target-delegates.c: Rebuild.
10611 * target.c (update_current_target): Don't inherit or default
10612 to_terminal_info.
10613 * target.h (struct target_ops) <to_terminal_info>: Use
10614 TARGET_DEFAULT_FUNC.
10615
c6ea8f79
TT
106162014-02-19 Tom Tromey <tromey@redhat.com>
10617
10618 * target-delegates.c: Rebuild.
10619 * target.c (update_current_target): Don't inherit or default
10620 to_terminal_save_ours.
10621 * target.h (struct target_ops) <to_terminal_save_ours>: Use
10622 TARGET_DEFAULT_IGNORE.
10623
e4a733f1
TT
106242014-02-19 Tom Tromey <tromey@redhat.com>
10625
10626 * target-delegates.c: Rebuild.
10627 * target.c (update_current_target): Don't inherit or default
10628 to_terminal_ours.
10629 * target.h (struct target_ops) <to_terminal_ours>: Use
10630 TARGET_DEFAULT_IGNORE.
10631
74fcbef9
TT
106322014-02-19 Tom Tromey <tromey@redhat.com>
10633
10634 * target-delegates.c: Rebuild.
10635 * target.c (update_current_target): Don't inherit or default
10636 to_terminal_ours_for_output.
10637 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
10638 TARGET_DEFAULT_IGNORE.
10639
ddeaacc9
TT
106402014-02-19 Tom Tromey <tromey@redhat.com>
10641
10642 * target-delegates.c: Rebuild.
10643 * target.c (update_current_target): Don't inherit or default
10644 to_terminal_inferior.
10645 * target.h (struct target_ops) <to_terminal_inferior>: Use
10646 TARGET_DEFAULT_IGNORE.
10647
0343661d
TT
106482014-02-19 Tom Tromey <tromey@redhat.com>
10649
10650 * target-delegates.c: Rebuild.
10651 * target.c (update_current_target): Don't inherit or default
10652 to_terminal_init.
10653 * target.h (struct target_ops) <to_terminal_init>: Use
10654 TARGET_DEFAULT_IGNORE.
10655
77cdffe9
TT
106562014-02-19 Tom Tromey <tromey@redhat.com>
10657
10658 * target-delegates.c: Rebuild.
10659 * target.c (update_current_target): Don't inherit or default
10660 to_can_accel_watchpoint_condition.
10661 * target.h (struct target_ops)
10662 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
10663
d03655e4
TT
106642014-02-19 Tom Tromey <tromey@redhat.com>
10665
10666 * target-delegates.c: Rebuild.
10667 * target.c (update_current_target): Don't inherit or default
10668 to_region_ok_for_hw_watchpoint.
10669 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10670 Use TARGET_DEFAULT_FUNC.
10671
65f160a9
TT
106722014-02-19 Tom Tromey <tromey@redhat.com>
10673
10674 * target-delegates.c: Rebuild.
10675 * target.c (update_current_target): Don't inherit or default
10676 to_watchpoint_addr_within_range.
10677 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
10678 Use TARGET_DEFAULT_FUNC.
10679
61dd109f
TT
106802014-02-19 Tom Tromey <tromey@redhat.com>
10681
10682 * target-delegates.c: Rebuild.
10683 * target.c (update_current_target): Don't inherit or default
10684 to_remove_watchpoint.
10685 * target.h (struct target_ops) <to_remove_watchpoint>: Use
10686 TARGET_DEFAULT_NORETURN.
10687
016facd4
TT
106882014-02-19 Tom Tromey <tromey@redhat.com>
10689
10690 * target-delegates.c: Rebuild.
10691 * target.c (update_current_target): Don't inherit or default
10692 to_insert_watchpoint.
10693 * target.h (struct target_ops) <to_insert_watchpoint>: Use
10694 TARGET_DEFAULT_RETURN.
10695
418dabac
TT
106962014-02-19 Tom Tromey <tromey@redhat.com>
10697
10698 * target-delegates.c: Rebuild.
10699 * target.c (update_current_target): Don't inherit or default
10700 to_remove_hw_breakpoint.
10701 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
10702 TARGET_DEFAULT_RETURN.
10703
61b371f9
TT
107042014-02-19 Tom Tromey <tromey@redhat.com>
10705
10706 * target-delegates.c: Rebuild.
10707 * target.c (update_current_target): Don't inherit or default
10708 to_insert_hw_breakpoint.
10709 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
10710 TARGET_DEFAULT_RETURN.
10711
52b51d06
TT
107122014-02-19 Tom Tromey <tromey@redhat.com>
10713
10714 * target-delegates.c: Rebuild.
10715 * target.c (update_current_target): Don't inherit or default
10716 to_can_use_hw_breakpoint.
10717 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
10718 TARGET_DEFAULT_RETURN.
10719
f86e59b2
TT
107202014-02-19 Tom Tromey <tromey@redhat.com>
10721
10722 * target-delegates.c: Rebuild.
10723 * target.c (update_current_target): Don't inherit or default
10724 to_files_info.
10725 * target.h (struct target_ops) <to_files_info>: Use
10726 TARGET_DEFAULT_IGNORE.
10727
6c628163
TT
107282014-02-19 Tom Tromey <tromey@redhat.com>
10729
10730 * target-delegates.c: Rebuild.
10731 * target.c (update_current_target): Don't inherit or default
10732 to_store.
10733 * target.h (struct target_ops) <to_store>: Use
10734 TARGET_DEFAULT_NORETURN.
10735
bebd3233
TT
107362014-02-19 Tom Tromey <tromey@redhat.com>
10737
10738 * target-delegates.c: Rebuild.
10739 * target.c (update_current_target): Don't inherit or default
10740 to_post_attach.
10741 * target.h (struct target_ops) <to_post_attach>: Use
10742 TARGET_DEFAULT_IGNORE.
10743
a53f3625
TT
107442014-02-19 Tom Tromey <tromey@redhat.com>
10745
10746 * target-delegates.c: Rebuild.
10747 * target.c (update_current_target): Don't inherit or default
10748 to_rcmd.
10749 (default_rcmd): New function.
10750 (do_monitor_command): Unconditionally delegate.
10751 * target.h (struct target_ops) <to_rmcd>: Use
10752 TARGET_DEFAULT_FUNC.
10753
e9a29200
TT
107542014-02-19 Tom Tromey <tromey@redhat.com>
10755
10756 * target-delegates.c: Rebuild.
10757 * target.c (init_dummy_target): Don't initialize to_attach.
10758 (target_attach): Unconditionally delegate.
10759 * target.h (struct target_ops) <to_attach>: Use
10760 TARGET_DEFAULT_FUNC.
10761
09da0d0a
TT
107622014-02-19 Tom Tromey <tromey@redhat.com>
10763
10764 * target-delegates.c: Rebuild.
10765 * target.c (target_detach): Unconditionally delegate.
10766 (init_dummy_target): Don't initialize to_detach.
10767 * target.h (struct target_ops) <to_detach>: Use
10768 TARGET_DEFAULT_IGNORE.
10769
5436ff03
TT
107702014-02-19 Tom Tromey <tromey@redhat.com>
10771
10772 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
10773 Add argument.
10774 (target_augmented_libraries_svr4_read): Add argument.
10775 * target.c (update_current_target): Update.
10776 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
10777 argument.
10778
f0d960ea
TT
107792014-02-19 Tom Tromey <tromey@redhat.com>
10780
10781 * target.h (struct target_ops) <to_call_history_range>: Add
10782 argument.
10783 * target.c (target_call_history_range): Add argument.
10784 * record-btrace.c (record_btrace_call_history_range): Add 'self'
10785 argument.
10786 (record_btrace_call_history_from): Update.
10787
ec0aea04
TT
107882014-02-19 Tom Tromey <tromey@redhat.com>
10789
10790 * target.h (struct target_ops) <to_call_history_from>: Add
10791 argument.
10792 * target.c (target_call_history_from): Add argument.
10793 * record-btrace.c (record_btrace_call_history_from): Add 'self'
10794 argument.
10795
5df2fcba
TT
107962014-02-19 Tom Tromey <tromey@redhat.com>
10797
10798 * target.h (struct target_ops) <to_call_history>: Add argument.
10799 * target.c (target_call_history): Add argument.
10800 * record-btrace.c (record_btrace_call_history): Add 'self'
10801 argument.
10802
4e99c6b7
TT
108032014-02-19 Tom Tromey <tromey@redhat.com>
10804
10805 * target.h (struct target_ops) <to_insn_history_range>: Add
10806 argument.
10807 * target.c (target_insn_history_range): Add argument.
10808 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
10809 argument.
10810 (record_btrace_insn_history_from): Update.
10811
9abc3ff3
TT
108122014-02-19 Tom Tromey <tromey@redhat.com>
10813
10814 * target.h (struct target_ops) <to_insn_history_from>: Add
10815 argument.
10816 * target.c (target_insn_history_from): Add argument.
10817 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
10818 argument.
10819
7a6c5609
TT
108202014-02-19 Tom Tromey <tromey@redhat.com>
10821
10822 * target.h (struct target_ops) <to_insn_history>: Add argument.
10823 * target.c (target_insn_history): Add argument.
10824 * record-btrace.c (record_btrace_insn_history): Add 'self'
10825 argument.
10826
606183ac
TT
108272014-02-19 Tom Tromey <tromey@redhat.com>
10828
10829 * target.h (struct target_ops) <to_goto_record>: Add argument.
10830 * target.c (target_goto_record): Add argument.
10831 * record-full.c (record_full_goto): Add 'self' argument.
10832 * record-btrace.c (record_btrace_goto): Add 'self' argument.
10833
307a1b91
TT
108342014-02-19 Tom Tromey <tromey@redhat.com>
10835
10836 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
10837 * target.c (target_goto_record_end): Add argument.
10838 * record-full.c (record_full_goto_end): Add 'self' argument.
10839 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
10840
08475817
TT
108412014-02-19 Tom Tromey <tromey@redhat.com>
10842
10843 * target.h (struct target_ops) <to_goto_record_begin>: Add
10844 argument.
10845 * target.c (target_goto_record_begin): Add argument.
10846 * record-full.c (record_full_goto_begin): Add 'self' argument.
10847 * record-btrace.c (record_btrace_goto_begin): Add 'self'
10848 argument.
10849
1c63c994
TT
108502014-02-19 Tom Tromey <tromey@redhat.com>
10851
10852 * target.h (struct target_ops) <to_record_is_replaying>: Add
10853 argument.
10854 * target.c (target_record_is_replaying): Add argument.
10855 * record-full.c (record_full_is_replaying): Add 'self' argument.
10856 * record-btrace.c (record_btrace_is_replaying): Add 'self'
10857 argument.
10858 (record_btrace_xfer_partial, record_btrace_store_registers)
10859 (record_btrace_prepare_to_store, record_btrace_resume)
10860 (record_btrace_wait, record_btrace_decr_pc_after_break)
10861 (record_btrace_find_new_threads, record_btrace_thread_alive):
10862 Update.
10863
d1b55219
TT
108642014-02-19 Tom Tromey <tromey@redhat.com>
10865
10866 * target.h (struct target_ops) <to_delete_record>: Add argument.
10867 * target.c (target_delete_record): Add argument.
10868 * record-full.c (record_full_delete): Add 'self' argument.
10869
1390f529
TT
108702014-02-19 Tom Tromey <tromey@redhat.com>
10871
10872 * target.h (struct target_ops) <to_save_record>: Add argument.
10873 * target.c (target_save_record): Add argument.
10874 * record-full.c (record_full_save): Add 'self' argument.
10875 (record_full_save): Add 'self' argument.
10876
630d6a4a
TT
108772014-02-19 Tom Tromey <tromey@redhat.com>
10878
10879 * target.h (struct target_ops) <to_info_record>: Add argument.
10880 * target.c (target_info_record): Add argument.
10881 * record.c (info_record_command): Add argument.
10882 * record-full.c (record_full_info): Add 'self' argument.
10883 * record-btrace.c (record_btrace_info): Add 'self' argument.
10884
c6cd7c02
TT
108852014-02-19 Tom Tromey <tromey@redhat.com>
10886
10887 * target.h (struct target_ops) <to_stop_recording>: Add argument.
10888 * target.c (target_stop_recording): Add argument.
10889 * record.c (record_stop): Add argument.
10890 * record-btrace.c (record_btrace_stop_recording): Add 'self'
10891 argument.
10892
39c49f83
TT
108932014-02-19 Tom Tromey <tromey@redhat.com>
10894
10895 * target.h (struct target_ops) <to_read_btrace>: Add argument.
10896 * target.c (struct target_ops) <to_read_btrace>: Add argument.
10897 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
10898 argument.
10899 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
10900 (_initialize_amd64_linux_nat): Use it.
10901 * i386-linux-nat.c (i386_linux_read_btrace): New function.
10902 (_initialize_i386_linux_nat): Use it.
10903
1777056d
TT
109042014-02-19 Tom Tromey <tromey@redhat.com>
10905
10906 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
10907 * target.c (target_teardown_btrace): Add argument.
10908 * remote.c (remote_teardown_btrace): Add 'self' argument.
10909 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
10910 argument.
10911 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
10912 argument.
10913
25e95349
TT
109142014-02-19 Tom Tromey <tromey@redhat.com>
10915
10916 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
10917 * target.c (target_disable_btrace): Add argument.
10918 * remote.c (remote_disable_btrace): Add 'self' argument.
10919 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
10920 argument.
10921 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
10922 argument.
10923
e3c49f88
TT
109242014-02-19 Tom Tromey <tromey@redhat.com>
10925
10926 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
10927 * target.c (target_enable_btrace): Add argument.
10928 * remote.c (remote_enable_btrace): Add 'self' argument.
10929 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
10930 argument.
10931 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
10932 argument.
10933
fe38f897
TT
109342014-02-19 Tom Tromey <tromey@redhat.com>
10935
10936 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
10937 (target_can_use_agent): Add argument.
10938 * target.c (update_current_target): Update.
10939 * remote.c (remote_can_use_agent): Add 'self' argument.
10940 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
10941
2c152180
TT
109422014-02-19 Tom Tromey <tromey@redhat.com>
10943
10944 * target.h (struct target_ops) <to_use_agent>: Add argument.
10945 (target_use_agent): Add argument.
10946 * target.c (update_current_target): Update.
10947 * remote.c (remote_use_agent): Add 'self' argument.
10948 * inf-child.c (inf_child_use_agent): Add 'self' argument.
10949
a893e81f
TT
109502014-02-19 Tom Tromey <tromey@redhat.com>
10951
10952 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
10953 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
10954 (target_traceframe_info): Add argument.
10955 * target.c (update_current_target): Update.
10956 * remote.c (remote_traceframe_info): Add 'self' argument.
10957 * ctf.c (ctf_traceframe_info): Add 'self' argument.
10958
c686c57f
TT
109592014-02-19 Tom Tromey <tromey@redhat.com>
10960
10961 * target.h (target_static_tracepoint_markers_by_strid): Add
10962 argument.
10963 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
10964 'self' argument.
10965 * target.c (update_current_target): Update.
10966 * remote.c (struct target_ops)
10967 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
10968 * linux-nat.c (struct target_ops)
10969 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
10970
61fc905d
TT
109712014-02-19 Tom Tromey <tromey@redhat.com>
10972
10973 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
10974 Add argument.
10975 (target_static_tracepoint_marker_at): Add argument.
10976 * target.c (update_current_target): Update.
10977 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
10978 argument.
10979
c378d69d
TT
109802014-02-19 Tom Tromey <tromey@redhat.com>
10981
10982 * target.h (struct target_ops) <to_set_permissions>: Add argument.
10983 (target_set_permissions): Add argument.
10984 * target.c (update_current_target): Update.
10985 * remote.c (remote_set_permissions): Add 'self' argument.
10986 (remote_start_remote): Update.
10987
bd7ae0f5
TT
109882014-02-19 Tom Tromey <tromey@redhat.com>
10989
10990 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
10991 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
10992 (target_get_tib_address): Add argument.
10993 * target.c (update_current_target): Update.
10994 * remote.c (remote_get_tib_address): Add 'self' argument.
10995
d9e68a2c
TT
109962014-02-19 Tom Tromey <tromey@redhat.com>
10997
10998 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
10999 (target_set_trace_notes): Add argument.
11000 * target.c (update_current_target): Update.
11001 * remote.c (remote_set_trace_notes): Add 'self' argument.
11002
4da384be
TT
110032014-02-19 Tom Tromey <tromey@redhat.com>
11004
11005 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
11006 argument.
11007 (target_set_trace_buffer_size): Add argument.
11008 * target.c (update_current_target): Update.
11009 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
11010
736d5b1f
TT
110112014-02-19 Tom Tromey <tromey@redhat.com>
11012
11013 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
11014 argument.
11015 (target_set_circular_trace_buffer): Add argument.
11016 * target.c (update_current_target): Update.
11017 * remote.c (remote_set_circular_trace_buffer): Add 'self'
11018 argument.
11019
37b25738
TT
110202014-02-19 Tom Tromey <tromey@redhat.com>
11021
11022 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
11023 argument.
11024 (target_set_disconnected_tracing): Add argument.
11025 * target.c (update_current_target): Update.
11026 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
11027
0e67620a
TT
110282014-02-19 Tom Tromey <tromey@redhat.com>
11029
11030 * target.h (struct target_ops)
11031 <to_get_min_fast_tracepoint_insn_len>: Add argument.
11032 (target_get_min_fast_tracepoint_insn_len): Add argument.
11033 * target.c (update_current_target): Update.
11034 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
11035 argument.
11036
88ee6f45
TT
110372014-02-19 Tom Tromey <tromey@redhat.com>
11038
11039 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
11040 argument.
11041 (target_get_raw_trace_data): Add argument.
11042 * target.c (update_current_target): Update.
11043 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
11044
181e3713
TT
110452014-02-19 Tom Tromey <tromey@redhat.com>
11046
11047 * target.h (struct target_ops) <to_upload_trace_state_variables>:
11048 Add argument.
11049 (target_upload_trace_state_variables): Add argument.
11050 * target.c (update_current_target): Update.
11051 * remote.c (remote_upload_trace_state_variables): Add 'self'
11052 argument.
11053 (remote_start_remote): Update.
11054
ab6617cc
TT
110552014-02-19 Tom Tromey <tromey@redhat.com>
11056
11057 * target.h (struct target_ops) <to_upload_tracepoints>: Add
11058 argument.
11059 (target_upload_tracepoints): Add argument.
11060 * target.c (update_current_target): Update.
11061 * remote.c (remote_upload_tracepoints): Add 'self' argument.
11062 (remote_start_remote): Update.
11063
dc3decaf
TT
110642014-02-19 Tom Tromey <tromey@redhat.com>
11065
11066 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
11067 (target_save_trace_data): Add argument.
11068 * target.c (update_current_target): Update.
11069 * remote.c (remote_save_trace_data): Add 'self' argument.
11070
4011015b
TT
110712014-02-19 Tom Tromey <tromey@redhat.com>
11072
11073 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
11074 argument.
11075 * target.h (struct target_ops)
11076 <to_get_trace_state_variable_value>: Add argument.
11077 (target_get_trace_state_variable_value): Add argument.
11078 * target.c (update_current_target): Update.
11079 * remote.c (remote_get_trace_state_variable_value): Add 'self'
11080 argument.
11081 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
11082
bd4c6793
TT
110832014-02-19 Tom Tromey <tromey@redhat.com>
11084
11085 * tracepoint.c (tfile_trace_find): Add 'self' argument.
11086 * target.h (struct target_ops) <to_trace_find>: Add argument.
11087 (target_trace_find): Add argument.
11088 * target.c (update_current_target): Update.
11089 * remote.c (remote_trace_find): Add 'self' argument.
11090 * ctf.c (ctf_trace_find): Add 'self' argument.
11091
74499f1b
TT
110922014-02-19 Tom Tromey <tromey@redhat.com>
11093
11094 * target.h (struct target_ops) <to_trace_stop>: Add argument.
11095 (target_trace_stop): Add argument.
11096 * target.c (update_current_target): Update.
11097 * remote.c (remote_trace_stop): Add 'self' argument.
11098
db90e85c
TT
110992014-02-19 Tom Tromey <tromey@redhat.com>
11100
11101 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
11102 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
11103 argument.
11104 (target_get_tracepoint_status): Add argument.
11105 * target.c (update_current_target): Update.
11106 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
11107
8bd200f1
TT
111082014-02-19 Tom Tromey <tromey@redhat.com>
11109
11110 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
11111 * target.h (struct target_ops) <to_get_trace_status>: Add
11112 argument.
11113 (target_get_trace_status): Add argument.
11114 * target.c (update_current_target): Update.
11115 * remote.c (remote_get_trace_status): Add 'self' argument.
11116 (remote_start_remote, remote_can_download_tracepoint): Update.
11117 * ctf.c (ctf_get_trace_status): Add 'self' argument.
11118
e2d1aae3
TT
111192014-02-19 Tom Tromey <tromey@redhat.com>
11120
11121 * target.h (struct target_ops) <to_trace_start>: Add argument.
11122 (target_trace_start): Add argument.
11123 * target.c (update_current_target): Update.
11124 * remote.c (remote_trace_start): Add 'self' argument.
11125
583f9a86
TT
111262014-02-19 Tom Tromey <tromey@redhat.com>
11127
11128 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
11129 Add argument.
11130 (target_trace_set_readonly_regions): Add argument.
11131 * target.c (update_current_target): Update.
11132 * remote.c (remote_trace_set_readonly_regions): Add 'self'
11133 argument.
11134
780b049c
TT
111352014-02-19 Tom Tromey <tromey@redhat.com>
11136
11137 * target.h (struct target_ops) <to_disable_tracepoint>: Add
11138 argument.
11139 (target_disable_tracepoint): Add argument.
11140 * target.c (update_current_target): Update.
11141 * remote.c (remote_disable_tracepoint): Add 'self' argument.
11142
46670d57
TT
111432014-02-19 Tom Tromey <tromey@redhat.com>
11144
11145 * target.h (struct target_ops) <to_enable_tracepoint>: Add
11146 argument.
11147 (target_enable_tracepoint): Add argument.
11148 * target.c (update_current_target): Update.
11149 * remote.c (remote_enable_tracepoint): Add 'self' argument.
11150
559d2b81
TT
111512014-02-19 Tom Tromey <tromey@redhat.com>
11152
11153 * target.h (struct target_ops) <to_download_trace_state_variable>:
11154 Add argument.
11155 (target_download_trace_state_variable): Add argument.
11156 * target.c (update_current_target): Update.
11157 * remote.c (remote_download_trace_state_variable): Add 'self'
11158 argument.
11159
a52a8357
TT
111602014-02-19 Tom Tromey <tromey@redhat.com>
11161
11162 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
11163 argument.
11164 (target_can_download_tracepoint): Add argument.
11165 * target.c (update_current_target): Update.
11166 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
11167
548f7808
TT
111682014-02-19 Tom Tromey <tromey@redhat.com>
11169
11170 * target.h (struct target_ops) <to_download_tracepoint>: Add
11171 argument.
11172 (target_download_tracepoint): Add argument.
11173 * target.c (update_current_target): Update.
11174 * remote.c (remote_download_tracepoint): Add 'self' argument.
11175
ecae04e1
TT
111762014-02-19 Tom Tromey <tromey@redhat.com>
11177
11178 * target.h (struct target_ops) <to_trace_init>: Add argument.
11179 (target_trace_init): Add argument.
11180 * target.c (update_current_target): Update.
11181 * remote.c (remote_trace_init): Add 'self' argument.
11182
fab5aa7c
TT
111832014-02-19 Tom Tromey <tromey@redhat.com>
11184
11185 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
11186 * target.c (target_fileio_readlink): Add argument.
11187 * remote.c (remote_hostio_readlink): Add 'self' argument.
11188 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
11189
dbbca37d
TT
111902014-02-19 Tom Tromey <tromey@redhat.com>
11191
11192 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
11193 * target.c (target_fileio_unlink): Add argument.
11194 * remote.c (remote_hostio_unlink): Add 'self' argument.
11195 (remote_file_delete): Update.
11196 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
11197
df39ea25
TT
111982014-02-19 Tom Tromey <tromey@redhat.com>
11199
11200 * target.h (struct target_ops) <to_fileio_close>: Add argument.
11201 * target.c (target_fileio_close): Add argument.
11202 * remote.c (remote_hostio_close): Add 'self' argument.
11203 (remote_hostio_close_cleanup): Update.
11204 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
11205 Update.
11206 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
11207
a3be983c
TT
112082014-02-19 Tom Tromey <tromey@redhat.com>
11209
11210 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
11211 * target.c (target_fileio_pread): Add argument.
11212 * remote.c (remote_hostio_pread): Add 'self' argument.
11213 (remote_bfd_iovec_pread, remote_file_get): Update.
11214 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
11215
0d866f62
TT
112162014-02-19 Tom Tromey <tromey@redhat.com>
11217
11218 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
11219 * target.c (target_fileio_pwrite): Add argument.
11220 * remote.c (remote_hostio_pwrite): Add 'self' argument.
11221 (remote_file_put): Update.
11222 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
11223
cd897586
TT
112242014-02-19 Tom Tromey <tromey@redhat.com>
11225
11226 * target.h (struct target_ops) <to_fileio_open>: Add argument.
11227 * target.c (target_fileio_open): Add argument.
11228 * remote.c (remote_hostio_open): Add 'self' argument.
11229 (remote_bfd_iovec_open): Add 'self' argument.
11230 (remote_file_put): Add 'self' argument.
11231 (remote_file_get): Add 'self' argument.
11232 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
11233
78eff0ec
TT
112342014-02-19 Tom Tromey <tromey@redhat.com>
11235
11236 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
11237 Add argument.
11238 (target_can_run_breakpoint_commands): Add argument.
11239 * target.c (update_current_target): Update.
11240 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
11241 argument.
11242 (remote_insert_breakpoint): Add 'self' argument.
11243 (remote_insert_hw_breakpoint): Add 'self' argument.
11244 (remote_can_run_breakpoint_commands): Add 'self' argument.
11245
efcc2da7
TT
112462014-02-19 Tom Tromey <tromey@redhat.com>
11247
11248 * target.h (struct target_ops)
11249 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
11250 (target_supports_evaluation_of_breakpoint_conditions): Add
11251 argument.
11252 * target.c (update_current_target): Update.
11253 * remote.c (remote_supports_cond_breakpoints): Add 'self'
11254 argument.
11255 (remote_insert_breakpoint): Add 'self' argument.
11256 (remote_insert_hw_breakpoint): Add 'self' argument.
11257 (remote_supports_cond_breakpoints): Add 'self' argument.
11258
6de37a3a
TT
112592014-02-19 Tom Tromey <tromey@redhat.com>
11260
11261 * target.h (struct target_ops) <to_supports_string_tracing>: Add
11262 argument.
11263 (target_supports_string_tracing): Add argument.
11264 * target.c (update_current_target): Update.
11265 * remote.c (remote_supports_string_tracing): Add 'self' argument.
11266
2bfc0540
TT
112672014-02-19 Tom Tromey <tromey@redhat.com>
11268
11269 * target.h (struct target_ops)
11270 <to_supports_disable_randomization>: Add argument.
11271 * target.c (find_default_supports_disable_randomization): Add
11272 argument.
11273 (target_supports_disable_randomization): Add argument.
11274 (find_default_supports_disable_randomization): Add 'self'
11275 argument.
11276 * remote.c (extended_remote_supports_disable_randomization): Add
11277 'self' argument.
11278 (remote_supports_disable_randomization): Add 'self' argument.
11279 (extended_remote_create_inferior): Update.
11280 * linux-nat.c (linux_nat_supports_disable_randomization): Add
11281 'self' argument.
11282
7d178d6a
TT
112832014-02-19 Tom Tromey <tromey@redhat.com>
11284
11285 * target.h (struct target_ops)
11286 <to_supports_enable_disable_tracepoint>: Add argument.
11287 (target_supports_enable_disable_tracepoint): Add argument.
11288 * target.c (update_current_target): Update.
11289 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
11290 argument.
11291
86ce2668
TT
112922014-02-19 Tom Tromey <tromey@redhat.com>
11293
11294 * target.h (struct target_ops) <to_supports_multi_process>: Add
11295 argument.
11296 (target_supports_multi_process): Add argument.
11297 * target.c (update_current_target): Update.
11298 * remote.c (remote_supports_multi_process): Add 'self' argument.
11299 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
11300 argument.
11301 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
11302 argument.
11303
4c612759
TT
113042014-02-19 Tom Tromey <tromey@redhat.com>
11305
11306 * target.h (struct target_ops) <to_execution_direction>: Add
11307 argument.
11308 (target_execution_direction): Add argument.
11309 * target.c (default_execution_direction): Add 'self' argument.
11310 * record-full.c (record_full_execution_direction): Add 'self'
11311 argument.
11312
19db3e69
TT
113132014-02-19 Tom Tromey <tromey@redhat.com>
11314
11315 * target.h (struct target_ops) <to_can_execute_reverse>: Add
11316 argument.
11317 (target_can_execute_reverse): Add argument.
11318 * remote.c (remote_can_execute_reverse): Add 'self' argument.
11319 * record-full.c (record_full_can_execute_reverse): Add 'self'
11320 argument.
11321 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
11322 argument.
11323
1e6b91a4
TT
113242014-02-19 Tom Tromey <tromey@redhat.com>
11325
11326 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
11327 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
11328 argument.
11329 (target_get_ada_task_ptid): Add argument.
11330 * target.c (update_current_target): Update.
11331 (default_get_ada_task_ptid): Add 'self' argument.
11332 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
11333 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
11334 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
11335 argument.
11336 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
11337 argument.
11338 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
11339 argument.
11340 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
11341 argument.
11342 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
11343 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
11344 argument.
11345
3c80fb48
TT
113462014-02-19 Tom Tromey <tromey@redhat.com>
11347
11348 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
11349 (target_goto_bookmark): Add argument.
11350 * target.c (dummy_goto_bookmark): Add 'self' argument.
11351 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
11352
dd0e2830
TT
113532014-02-19 Tom Tromey <tromey@redhat.com>
11354
11355 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
11356 (target_get_bookmark): Add argument.
11357 * target.c (dummy_get_bookmark): Add 'self' argument.
11358 * record-full.c (record_full_get_bookmark): Add 'self' argument.
11359
fc6691b2
TT
113602014-02-19 Tom Tromey <tromey@redhat.com>
11361
11362 * target.h (struct target_ops) <to_make_corefile_notes>: Add
11363 argument.
11364 (target_make_corefile_notes): Add argument.
11365 * target.c (dummy_make_corefile_notes): Add 'self' argument.
11366 * procfs.c (procfs_make_note_section): Add 'self' argument.
11367 (procfs_make_note_section): Add 'self' argument.
11368 (procfs_make_note_section): Add 'self' argument.
11369 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
11370 argument.
11371 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
11372 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
11373 * exec.c (exec_make_note_section): Add 'self' argument.
11374 (exec_make_note_section): Add 'self' argument.
11375
2e73927c
TT
113762014-02-19 Tom Tromey <tromey@redhat.com>
11377
11378 * target.h (struct target_ops) <to_find_memory_regions>: Add
11379 argument.
11380 (target_find_memory_regions): Add argument.
11381 * target.c (dummy_find_memory_regions): Add 'self' argument.
11382 * procfs.c (proc_find_memory_regions): Add 'self' argument.
11383 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
11384 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
11385 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
11386 * exec. (exec_do_find_memory_regions): New global.
11387 (exec_set_find_memory_regions): Rewrite.
11388 (exec_find_memory_regions): New function.
11389 (init_exec_ops): Use exec_find_memory_regions.
11390
2a9a2795
TT
113912014-02-19 Tom Tromey <tromey@redhat.com>
11392
11393 * target.h (struct target_ops) <to_supports_non_stop>: Add
11394 argument.
11395 * target.c (find_default_supports_non_stop): Add argument.
11396 (target_supports_non_stop): Add argument.
11397 (find_default_supports_non_stop): Add 'self' argument.
11398 * remote.c (remote_supports_non_stop): Add 'self' argument.
11399 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
11400
4ab76ea3
TT
114012014-02-19 Tom Tromey <tromey@redhat.com>
11402
11403 * target.h (struct target_ops) <to_log_command>: Add argument.
11404 (target_log_command): Add argument.
11405 * serial.h (serial_log_command): Add 'self' argument.
11406 * serial.c (serial_log_command): Add 'self' argument.
11407
8dd27370
TT
114082014-02-19 Tom Tromey <tromey@redhat.com>
11409
11410 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
11411 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
11412 argument.
11413 (target_pid_to_exec_file): Add argument.
11414 * target.c (debug_to_pid_to_exec_file): Add argument.
11415 (update_current_target): Update.
11416 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
11417 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
11418 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
11419 (linux_handle_extended_wait): Update.
11420 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
11421 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
11422 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
11423 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
11424
1aac633b
TT
114252014-02-19 Tom Tromey <tromey@redhat.com>
11426
11427 * target.h (struct target_ops) <to_rcmd>: Add argument.
11428 (target_rcmd): Add argument.
11429 * target.c (debug_to_rcmd): Add argument.
11430 (update_current_target, do_monitor_command): Update.
11431 * remote.c (remote_rcmd): Add 'self' argument.
11432 * monitor.c (monitor_rcmd): Add 'self' argument.
11433
1eab8a48
TT
114342014-02-19 Tom Tromey <tromey@redhat.com>
11435
11436 * windows-nat.c (windows_stop): Add 'self' argument.
11437 * target.h (struct target_ops) <to_stop>: Add argument.
11438 * target.c (target_stop): Add argument.
11439 (debug_to_stop): Add argument.
11440 (update_current_target): Update.
11441 * remote.c (remote_stop): Add 'self' argument.
11442 * remote-sim.c (gdbsim_stop): Add 'self' argument.
11443 (gdbsim_cntrl_c): Update.
11444 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
11445 * procfs.c (procfs_stop): Add 'self' argument.
11446 * nto-procfs.c (procfs_stop): Add 'self' argument.
11447 * monitor.c (monitor_stop): Add 'self' argument.
11448 (monitor_open): Update.
11449 * linux-nat.c (linux_nat_stop): Add argument.
11450 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
11451 * gnu-nat.c (gnu_stop): Add 'self' argument.
11452 * darwin-nat.c (darwin_stop): Add 'self' argument.
11453
503a628d
TT
114542014-02-19 Tom Tromey <tromey@redhat.com>
11455
11456 * target.h (struct target_ops) <to_thread_name>: Add argument.
11457 * target.c (target_thread_name): Add argument.
11458 (update_current_target): Update.
11459 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
11460
c15906d8
TT
114612014-02-19 Tom Tromey <tromey@redhat.com>
11462
11463 * target.h (struct target_ops) <to_extra_thread_info>: Add
11464 argument.
11465 (target_extra_thread_info): Add argument.
11466 * target.c (update_current_target): Update.
11467 * remote.c (remote_threads_extra_info): Add 'self' argument.
11468 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
11469 argument.
11470 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
11471 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
11472 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
11473 argument.
11474 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
11475 argument.
11476 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
11477 argument.
11478 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
11479 argument.
11480
daf5e9b6
TT
114812014-02-19 Tom Tromey <tromey@redhat.com>
11482
11483 * target.h (struct target_ops) <to_program_signals>: Add argument.
11484 * target.c (target_program_signals): Add argument.
11485 * remote.c (remote_program_signals): Add 'self' argument.
11486
94bedb42
TT
114872014-02-19 Tom Tromey <tromey@redhat.com>
11488
11489 * target.h (struct target_ops) <to_pass_signals>: Add argument.
11490 * target.c (target_pass_signals): Add argument.
11491 * remote.c (remote_pass_signals): Add 'self' argument.
11492 (remote_start_remote): Update.
11493 * procfs.c (procfs_pass_signals): Add 'self' argument.
11494 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
11495 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
11496 (linux_nat_create_inferior, linux_nat_attach): Update.
11497
da82bd6b
TT
114982014-02-19 Tom Tromey <tromey@redhat.com>
11499
11500 * windows-nat.c (windows_can_run): Add 'self' argument.
11501 * target.h (struct target_ops) <to_can_run>: Add argument.
11502 (target_can_run): Add argument.
11503 * target.c (debug_to_can_run): Add argument.
11504 (update_current_target): Update.
11505 * nto-procfs.c (procfs_can_run): Add 'self' argument.
11506 * inf-child.c (inf_child_can_run): Add 'self' argument.
11507 * go32-nat.c (go32_can_run): Add 'self' argument.
11508
d796e1d6
TT
115092014-02-19 Tom Tromey <tromey@redhat.com>
11510
11511 * target.h (struct target_ops) <to_has_exited>: Add argument.
11512 (target_has_exited): Add argument.
11513 * target.c (debug_to_has_exited): Add argument.
11514 (update_current_target): Update.
11515
ff214e67
TT
115162014-02-19 Tom Tromey <tromey@redhat.com>
11517
11518 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
11519 argument.
11520 (target_set_syscall_catchpoint): Add argument.
11521 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
11522 argument.
11523 * target.c (update_current_target): Update.
11524
758e29d2
TT
115252014-02-19 Tom Tromey <tromey@redhat.com>
11526
11527 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
11528 argument.
11529 (target_remove_exec_catchpoint): Add argument.
11530 * target.c (debug_to_remove_exec_catchpoint): Add argument.
11531 (update_current_target): Update.
11532 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
11533 argument.
11534
ba025e51
TT
115352014-02-19 Tom Tromey <tromey@redhat.com>
11536
11537 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
11538 argument.
11539 (target_insert_exec_catchpoint): Add argument.
11540 * target.c (debug_to_insert_exec_catchpoint): Add argument.
11541 (update_current_target): Update.
11542 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
11543 argument.
11544
e98cf0cd
TT
115452014-02-19 Tom Tromey <tromey@redhat.com>
11546
11547 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
11548 argument.
11549 (target_remove_vfork_catchpoint): Add argument.
11550 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
11551 (update_current_target): Update.
11552 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
11553 argument.
11554
3ecc7da0
TT
115552014-02-19 Tom Tromey <tromey@redhat.com>
11556
11557 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
11558 argument.
11559 (target_insert_vfork_catchpoint): Add argument.
11560 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
11561 (update_current_target): Update.
11562 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
11563 argument.
11564
973fc227
TT
115652014-02-19 Tom Tromey <tromey@redhat.com>
11566
11567 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
11568 argument.
11569 (target_remove_fork_catchpoint): Add argument.
11570 * target.c (debug_to_remove_fork_catchpoint): Add argument.
11571 (update_current_target): Update.
11572 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
11573 argument.
11574
a863b201
TT
115752014-02-19 Tom Tromey <tromey@redhat.com>
11576
11577 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
11578 argument.
11579 (target_insert_fork_catchpoint): Add argument.
11580 * target.c (debug_to_insert_fork_catchpoint): Add argument.
11581 (update_current_target): Update.
11582 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
11583 argument.
11584
2e97a79e
TT
115852014-02-19 Tom Tromey <tromey@redhat.com>
11586
11587 * target.h (struct target_ops) <to_post_startup_inferior>: Add
11588 argument.
11589 (target_post_startup_inferior): Add argument.
11590 * target.c (debug_to_post_startup_inferior): Add argument.
11591 (update_current_target): Update.
11592 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
11593 argument.
11594 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
11595 argument.
11596 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
11597 argument.
11598 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
11599 argument.
11600 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
11601 'self' argument.
11602 (super_post_startup_inferior): Likewise.
11603 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
11604 'self' argument.
11605 (super_post_startup_inferior): Likewise.
11606 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
11607 Add 'self' argument.
11608 (super_post_startup_inferior): Likewise.
11609
71a9f134
TT
116102014-02-19 Tom Tromey <tromey@redhat.com>
11611
11612 * target.h (struct target_ops) <to_load>: Add argument.
11613 * target.c (target_load): Add argument.
11614 (debug_to_load): Add argument.
11615 (update_current_target): Update.
11616 * remote.c (remote_load): Add 'self' argument.
11617 * remote-sim.c (gdbsim_load): Add 'self' argument.
11618 * remote-mips.c (mips_load): Add 'self' argument.
11619 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
11620 * monitor.c (monitor_load): Add 'self' argument.
11621 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
11622
0a4f40a2
TT
116232014-02-19 Tom Tromey <tromey@redhat.com>
11624
11625 * target.h (struct target_ops) <to_terminal_info>: Add argument.
11626 (target_terminal_info): Add argument.
11627 * target.c (debug_to_terminal_info): Add argument.
11628 (default_terminal_info): Likewise.
11629 * inflow.c (child_terminal_info): Add 'self' argument.
11630 * inferior.h (child_terminal_info): Add 'self' argument.
11631 * go32-nat.c (go32_terminal_info): Add 'self' argument.
11632
ae3bd431
TT
116332014-02-19 Tom Tromey <tromey@redhat.com>
11634
11635 * target.h (struct target_ops) <to_terminal_save_ours>: Add
11636 argument.
11637 (target_terminal_save_ours): Add argument.
11638 * target.c (debug_to_terminal_save_ours): Add argument.
11639 (update_current_target): Update.
11640 * inflow.c (terminal_save_ours): Add 'self' argument.
11641 * inferior.h (terminal_save_ours): Add 'self' argument.
11642
e3594fd1
TT
116432014-02-19 Tom Tromey <tromey@redhat.com>
11644
11645 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
11646 (target_terminal_ours): Add argument.
11647 * target.c (debug_to_terminal_ours): Add argument.
11648 (update_current_target): Update.
11649 * remote.c (remote_terminal_ours): Add 'self' argument.
11650 (remote_close): Update.
11651 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
11652 * inflow.c (terminal_ours): Add 'self' argument.
11653 * inferior.h (terminal_ours): Add 'self' argument.
11654 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11655
2e1e1a19
TT
116562014-02-19 Pedro Alves <palves@redhat.com>
11657 Tom Tromey <tromey@redhat.com>
11658
11659 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
11660 argument.
11661 (target_terminal_ours_for_output): Add argument.
11662 * target.c (debug_to_terminal_ours_for_output): Add argument.
11663 (update_current_target): Update.
11664 * inflow.c (terminal_ours_for_output): Add 'self' argument.
11665 * inferior.h (terminal_ours_for_output): Add 'self' argument.
11666 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11667
d2f640d4
TT
116682014-02-19 Tom Tromey <tromey@redhat.com>
11669
11670 * target.h (struct target_ops) <to_terminal_inferior>: Add
11671 argument.
11672 * target.c (target_terminal_inferior): Add argument.
11673 (update_current_target): Update.
11674 * remote.c (remote_terminal_inferior): Add 'self' argument.
11675 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
11676 * inflow.c (terminal_inferior): Add 'self' argument.
11677 * inferior.h (terminal_inferior): Add 'self' argument.
11678 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
11679 (go32_terminal_inferior): Add 'self' argument.
11680
c42bf286
TT
116812014-02-19 Tom Tromey <tromey@redhat.com>
11682
11683 * target.h (struct target_ops) <to_terminal_init>: Add argument.
11684 (target_terminal_init): Add argument.
11685 * target.c (debug_to_terminal_init): Add argument.
11686 (update_current_target): Update.
11687 * inflow.c (terminal_init_inferior): Add 'self' argument.
11688 * inferior.h (terminal_init_inferior): Add 'self' argument.
11689 * go32-nat.c (go32_terminal_init): Add 'self' argument.
11690 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
11691
c3a5ff89
TT
116922014-02-19 Tom Tromey <tromey@redhat.com>
11693
11694 * target.h (struct target_ops)
11695 <to_can_accel_watchpoint_condition>: Add argument.
11696 (target_can_accel_watchpoint_condition): Add argument.
11697 * target.c (debug_to_can_accel_watchpoint_condition): Add
11698 argument.
11699 (update_current_target): Update.
11700 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
11701 'self' argument.
11702
31568a15
TT
117032014-02-19 Tom Tromey <tromey@redhat.com>
11704
11705 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11706 Add argument.
11707 (target_region_ok_for_hw_watchpoint): Add argument.
11708 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
11709 (default_region_ok_for_hw_watchpoint): Add argument.
11710 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
11711 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
11712 argument.
11713 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
11714 argument.
11715 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
11716 argument.
11717 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
11718 'self' argument.
11719 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
11720 'self' argument.
11721 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
11722 'self' argument.
11723 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
11724 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
11725 'self' argument.
11726 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
11727 Add 'self' argument.
11728
7bb99c53
TT
117292014-02-19 Tom Tromey <tromey@redhat.com>
11730
11731 * target.h (struct target_ops) <to_insert_watchpoint>: Add
11732 argument.
11733 (target_insert_watchpoint): Add argument.
11734 * target.c (debug_to_insert_watchpoint): Add argument.
11735 (update_current_target): Update.
11736 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
11737 * remote.c (remote_insert_watchpoint): Add 'self' argument.
11738 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
11739 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
11740 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
11741 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
11742 argument.
11743 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
11744 (procfs_insert_hw_watchpoint): Add 'self' argument.
11745 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
11746 argument.
11747 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
11748 argument.
11749 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
11750 argument.
11751 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
11752 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
11753 argument.
11754 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
11755 'self' argument.
11756
11b5219a
TT
117572014-02-19 Tom Tromey <tromey@redhat.com>
11758
11759 * target.h (struct target_ops) <to_remove_watchpoint>: Add
11760 argument.
11761 (target_remove_watchpoint): Add argument.
11762 * target.c (debug_to_remove_watchpoint): Add argument.
11763 (update_current_target): Update.
11764 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
11765 * remote.c (remote_remove_watchpoint): Add 'self' argument.
11766 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
11767 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
11768 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
11769 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
11770 argument.
11771 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
11772 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
11773 argument.
11774 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
11775 argument.
11776 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
11777 argument.
11778 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
11779 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
11780 argument.
11781 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
11782 'self' argument.
11783
a64dc96c
TT
117842014-02-19 Tom Tromey <tromey@redhat.com>
11785
11786 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
11787 argument.
11788 (target_remove_hw_breakpoint): Add argument.
11789 * target.c (debug_to_remove_hw_breakpoint): Add argument.
11790 (update_current_target): Update.
11791 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
11792 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
11793 argument.
11794 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
11795 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
11796 argument.
11797 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
11798 'self' argument.
11799
23a26771
TT
118002014-02-19 Tom Tromey <tromey@redhat.com>
11801
11802 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
11803 argument.
11804 (target_insert_hw_breakpoint): Add argument.
11805 * target.c (debug_to_insert_hw_breakpoint): Add argument.
11806 (update_current_target): Update.
11807 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
11808 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
11809 argument.
11810 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
11811 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
11812 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
11813 argument.
11814 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
11815 'self' argument.
11816
5461485a
TT
118172014-02-19 Tom Tromey <tromey@redhat.com>
11818
11819 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
11820 argument.
11821 (target_can_use_hardware_watchpoint): Add argument.
11822 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
11823 (update_current_target): Update.
11824 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
11825 argument.
11826 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
11827 argument.
11828 * remote.c (remote_check_watch_resources): Add 'self' argument.
11829 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
11830 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
11831 argument.
11832 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
11833 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
11834 argument.
11835 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
11836 argument.
11837 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
11838 argument.
11839 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
11840 argument.
11841 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
11842 argument.
11843 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
11844 argument.
11845 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
11846 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
11847 argument.
11848 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
11849 'self' argument.
11850
f045800c
TT
118512014-02-19 Tom Tromey <tromey@redhat.com>
11852
11853 * target.h (struct target_ops) <to_post_attach>: Add argument.
11854 (target_post_attach): Add argument.
11855 * target.c (debug_to_post_attach): Add argument.
11856 (update_current_target): Update.
11857 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
11858 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
11859 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
11860 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
11861 * inf-child.c (inf_child_post_attach): Add 'self' argument.
11862
de90e03d
TT
118632014-02-19 Tom Tromey <tromey@redhat.com>
11864
11865 * windows-nat.c (windows_close): Add 'self' argument.
11866 * tracepoint.c (tfile_close): Add 'self' argument.
11867 * target.h (struct target_ops) <to_close>: Add argument.
11868 * target.c (target_close): Add argument.
11869 (update_current_target): Update.
11870 * remote.c (remote_close): Add 'self' argument.
11871 * remote-sim.c (gdbsim_close): Add 'self' argument.
11872 * remote-mips.c (mips_close): Add 'self' argument.
11873 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
11874 * record-full.c (record_full_close): Add 'self' argument.
11875 * record-btrace.c (record_btrace_close): Add 'self' argument.
11876 * monitor.h (monitor_close): Add 'self' argument.
11877 * monitor.c (monitor_close): Add 'self' argument.
11878 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
11879 * linux-nat.c (linux_nat_close): Add argument.
11880 * go32-nat.c (go32_close): Add 'self' argument.
11881 * exec.c (exec_close_1): Add 'self' argument.
11882 * ctf.c (ctf_close): Add 'self' argument.
11883 * corelow.c (core_close): Add 'self' argument.
11884 (core_close_cleanup): Update.
11885 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
11886 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
11887
9dd130a0
TT
118882014-02-19 Tom Tromey <tromey@redhat.com>
11889
11890 * remote.c (remote_load): New function.
11891 (init_remote_ops): Use it.
11892
46917d26
TT
118932014-02-19 Tom Tromey <tromey@redhat.com>
11894
11895 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
11896 argument.
11897 * common/linux-btrace.h (linux_supports_btrace): Update.
11898 * remote.c (remote_supports_btrace): Add "self" argument.
11899 * target-delegates.c: Rebuild.
11900 * target.c (target_supports_btrace): Remove.
11901 * target.h (struct target_ops) <to_supports_btrace>: Add
11902 target_ops argument.
11903 (target_supports_btrace): New define.
11904
6b84065d
TT
119052014-02-19 Tom Tromey <tromey@redhat.com>
11906
11907 * record-full.c (record_full_beneath_to_resume_ops)
11908 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
11909 (record_full_beneath_to_wait)
11910 (record_full_beneath_to_store_registers_ops)
11911 (record_full_beneath_to_store_registers)
11912 (record_full_beneath_to_xfer_partial_ops)
11913 (record_full_beneath_to_xfer_partial)
11914 (record_full_beneath_to_insert_breakpoint_ops)
11915 (record_full_beneath_to_insert_breakpoint)
11916 (record_full_beneath_to_remove_breakpoint_ops)
11917 (record_full_beneath_to_remove_breakpoint)
11918 (record_full_beneath_to_stopped_by_watchpoint)
11919 (record_full_beneath_to_stopped_data_address)
11920 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
11921 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
11922 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
11923 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
11924 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
11925 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
11926 (tmp_to_stopped_data_address, tmp_to_async): Remove.
11927 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
11928 (record_full_resume, record_full_wait_1)
11929 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
11930 (record_full_store_registers, record_full_xfer_partial)
11931 (record_full_insert_breakpoint, record_full_remove_breakpoint)
11932 (record_full_async, record_full_core_xfer_partial): Use target
11933 delegation.
11934 * target-delegates.c: Rebuild.
11935 * target.c (current_xfer_partial): Remove.
11936 (update_current_target): Do not INHERIT or de_fault
11937 to_insert_breakpoint, to_remove_breakpoint,
11938 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
11939 to_is_async_p, to_async. Do not set to_xfer_partial field.
11940 (default_xfer_partial): Simplify.
11941 (current_xfer_partial): Remove.
11942 (target_wait, target_resume): Simplify.
11943 (find_default_can_async_p, find_default_is_async_p): Update.
11944 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
11945 to_xfer_partial, to_stopped_by_watchpoint,
11946 to_stopped_data_address.
11947 (target_store_registers): Simplify.
11948 (forward_target_remove_breakpoint)
11949 (forward_target_insert_breakpoint): Remove.
11950 (target_remove_breakpoint, target_insert_breakpoint)
11951 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
11952 * target.h (struct target_ops) <to_resume, to_wait,
11953 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
11954 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
11955 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
11956 markup.
11957 (forward_target_remove_breakpoint)
11958 (forward_target_insert_breakpoint): Remove.
11959 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
11960 directly.
11961 (record_btrace_insert_breakpoint): Delegate directly.
11962
1101cb7b
TT
119632014-02-19 Tom Tromey <tromey@redhat.com>
11964
11965 PR build/7701:
11966 * target-delegates.c: New file.
11967 * target.c: Include target-delegates.c.
11968 (init_dummy_target): Call install_dummy_methods.
11969 (complete_target_initialization): Call install_delegators.
11970 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
11971 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
11972 * make-target-delegates: New file.
11973
8b06beed
TT
119742014-02-19 Tom Tromey <tromey@redhat.com>
11975
11976 * record.c (find_record_target): Use find_target_at.
11977 * target.c (find_target_at): New function.
11978 * target.h (find_target_at): Declare.
11979
6a109b6b
TT
119802014-02-19 Tom Tromey <tromey@redhat.com>
11981
11982 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
11983 Add 'ops' argument.
11984 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
11985 'ops' argument.
11986 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
11987 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
11988 'ops' argument.
11989 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
11990 argument.
11991 * linux-nat.c (save_sigtrap): Update.
11992 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
11993 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
11994 (linux_nat_close): Update.
11995 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
11996 argument.
11997 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
11998 argument.
11999 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
12000 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
12001 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
12002 (tmp_to_async): Add 'ops' argument.
12003 (record_full_stopped_by_watchpoint, record_full_async)
12004 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
12005 argument.
12006 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
12007 (m32r_stopped_by_watchpoint): Add 'ops' argument.
12008 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
12009 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
12010 (remote_is_async_p, remote_async): Add 'ops' argument.
12011 (remote_stopped_data_address): Update.
12012 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
12013 * target.c (update_current_target)
12014 (find_default_can_async_p, find_default_is_async_p): Update.
12015 (init_dummy_target): Update.
12016 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
12017 * target.h (struct target_ops) <to_stopped_by_watchpoint,
12018 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
12019 (target_can_async_p, target_is_async_p, target_async)
12020 (target_stopped_by_watchpoint): Update.
12021
e095146b
YQ
120222014-02-19 Yao Qi <yao@codesourcery.com>
12023
12024 PR gdb/16220
12025 * gdbarch.sh: Remove startup_gdbarch.
12026 * gdbarch.c: Regenerated.
12027 * gdbarch.h: Likewise.
12028
bc3c6b36
KB
120292014-02-17 Kevin Buettner <kevinb@redhat.com>
12030
12031 * rl78-tdep.c (rl78_g10_register_name): New function.
12032 (rl78_return_value): Add g10 support.
12033 (rl78_gdbarch_init): Register rl78_g10_register_name for the
12034 g10.
12035
98dc0167 120362014-02-17 Doug Evans <xdje42@gmail.com>
f01c1940
DE
12037
12038 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
12039 (SUBDIR_GUILE_SRCS): Ditto.
12040 (scm-gsmob.o): Ditto.
12041
842c05cd
YQ
120422014-02-17 Yao Qi <yao@codesourcery.com>
12043
12044 * gnu-nat.c (ILL_RPC): Declare defined function.
12045
25c0bd04
YQ
120462014-02-17 Yao Qi <yao@codesourcery.com>
12047
12048 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
12049 mach_msg_type_number_t.
12050 (gnu_write_inferior): Likewise.
12051
a9a758e3
YQ
120522014-02-17 Yao Qi <yao@codesourcery.com>
12053
12054 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
12055 in format string.
12056 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
12057 (inf_validate_procs, inf_signal): Likewise.
12058 (S_exception_raise_request): Likewise.
12059 (do_mach_notify_dead_name): Likewise.
12060 (steal_exc_port): Likewise.
12061 (gnu_read_inferior): Change 'copy_count''s type to
12062 mach_msg_type_number_t.
12063 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
12064 format string.
12065
bae8023e
TS
120662014-02-16 Thomas Schwinge <thomas@codesourcery.com>
12067
c82f56d9
TS
12068 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
12069 flag. Adjust all users; in particular...
12070 (gnu_wait): ..., don't decrement its value in here...
12071 (gnu_create_inferior): ..., and instead set the flag in here,
12072 around the startup_inferior call, and call that one with
12073 START_INFERIOR_TRAPS_EXPECTED.
12074
3398af6a
TS
12075 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
12076 (ILL_RPC): ... new macro.
12077 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
12078 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
12079 (do_mach_notify_send_once, S_proc_setmsgport_reply)
12080 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
12081 functions with ILL_RPC macro.
12082 (S_proc_pid2task_reply, S_proc_task2pid_reply)
12083 (S_proc_task2proc_reply, S_proc_proc2task_reply)
12084 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
12085 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
12086 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
12087 (S_proc_getlogin_reply, S_proc_getsid_reply)
12088 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
12089 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
12090 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
12091 (S_proc_getnports_reply, S_proc_is_important_reply)
12092 (S_proc_get_code_reply): New stub functions, generated with
12093 ILL_RPC macro.
12094
d47642c9
TS
12095 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
12096 collected the type check structures.
12097
bae8023e
TS
12098 * reply_mig_hack.awk: Don't expect to see the auto keyword.
12099
8a55ffb0
DE
121002014-02-14 Doug Evans <dje@google.com>
12101
12102 * target.c (target_write_partial): Fix result type.
12103
c2853f3d
JM
121042014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
12105
12106 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
12107 the proper offsets to access fpregset_t.
12108
ac61d2db
SA
121092014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
12110
12111 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
12112 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
12113 * h8300-tdep.c (setmachinelist): Remove global.
12114 * hppa-tdep.c (hppa_sigtramp): Remove global.
12115 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
12116 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
12117 * ravenscar-thread.c (update_target_observer): Remove global.
12118 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
12119
9d2d0b8b
TT
121202014-02-12 Tom Tromey <tromey@redhat.com>
12121
12122 * common/rsp-low.c: Update comments.
12123 * common/rsp-low.h: Update comments.
12124
a7191e8b
TT
121252014-02-12 Tom Tromey <tromey@redhat.com>
12126
12127 * common/rsp-low.c (convert_ascii_to_int): Remove.
12128 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
12129
ff0e980e
TT
121302014-02-12 Tom Tromey <tromey@redhat.com>
12131
12132 * common/rsp-low.h (unhexify): Don't declare.
12133 * common/rsp-low.c (unhexify): Remove.
12134
e9371aff
TT
121352014-02-12 Tom Tromey <tromey@redhat.com>
12136
12137 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
12138 * common/rsp-low.c (convert_int_to_ascii): Remove.
12139
971dc0b8
TT
121402014-02-12 Tom Tromey <tromey@redhat.com>
12141
12142 * common/rsp-low.h (hexify): Don't declare.
12143 * common/rsp-low.c (hexify): Remove.
12144
0a822afb
TT
121452014-02-12 Tom Tromey <tromey@redhat.com>
12146
12147 * common/rsp-low.c (hexify): Never take strlen of argument.
12148
9f1b45b0
TT
121492014-02-12 Tom Tromey <tromey@redhat.com>
12150
12151 * common/rsp-low.c (bin2hex): Never take strlen of argument.
12152 * remote.c (extended_remote_run, remote_rcmd)
12153 (remote_download_trace_state_variable, remote_save_trace_data)
12154 (remote_set_trace_notes): Update.
12155 * tracepoint.c (encode_source_string, tfile_write_status)
12156 (tfile_write_uploaded_tsv): Update.
12157
9c3d6531
TT
121582014-02-12 Tom Tromey <tromey@redhat.com>
12159
12160 * tracepoint.c: Include rsp-low.h.
12161 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
12162 * remote.c: Include rsp-low.h.
12163 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
12164 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
12165 (remote_unescape_input): Move to common/rsp-low.c.
12166 * common/rsp-low.h: New file.
12167 * common/rsp-low.c: New file.
12168 * Makefile.in (SFILES): Add common/rsp-low.c.
12169 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
12170 (COMMON_OBS): Add rsp-low.o.
12171 (rsp-low.o): New target.
12172
01fd3ea5
TT
121732014-02-12 Tom Tromey <tromey@redhat.com>
12174
12175 * utils.h: Include print-utils.h.
12176 (host_address_to_string, plongest, pulongest, phex, phex_nz)
12177 (int_string, core_addr_to_string, core_addr_to_string_nz)
12178 (hex_string, hex_string_custom): Don't declare.
12179 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
12180 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
12181 (hex_string_custom, int_string, core_addr_to_string)
12182 (core_addr_to_string_nz, host_address_to_string): Move to
12183 common/print-utils.c.
12184 * common/print-utils.h: New file.
12185 * common/print-utils.c: New file
12186 * Makefile.in (SFILES): Add common/print-utils.c.
12187 (HFILES_NO_SRCDIR): Add common/print-utils.h.
12188 (COMMON_OBS): Add print-utils.o.
12189 (print-utils.o): New target.
12190
9fb50108
TT
121912014-02-12 Tom Tromey <tromey@redhat.com>
12192
12193 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
12194
0548b5db
MK
121952014-02-12 Mark Kettenis <kettenis@gnu.org>
12196
12197 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
12198
493443a4
MK
121992014-02-12 Mark Kettenis <kettenis@gnu.org>
12200
12201 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
12202 if a PT_IO ptrace request returns sucessfully but indicates that 0
12203 bytes were transferred.
12204
706d0883
PA
122052014-02-12 Pedro Alves <palves@redhat.com>
12206 Kevin Buettner <kevinb@redhat.com>
12207
12208 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
12209 TYPE_INSTANCE_FLAG_CODE_SPACE.
12210
5caa2f0b
PA
122112014-02-12 Pedro Alves <palves@redhat.com>
12212
12213 * h8300-tdep.c (pseudo_from_raw_register)
12214 (raw_from_pseudo_register): New functions.
12215 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
12216 them.
12217
76fd5f74
PA
122182014-02-12 Pedro Alves <palves@redhat.com>
12219
12220 * h8300-tdep.c (h8300_register_sim_regno): New function.
12221 (h8300_gdbarch_init): Install h8300_register_sim_regno as
12222 gdbarch_register_sim_regno hook.
12223
8f008406
SA
122242014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
12225
12226 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
12227
195abc10
SA
122282014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
12229
12230 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
12231
93ffa5b9
MK
122322014-02-12 Mark Kettenis <kettenis@gnu.org>
12233
12234 * obsd-tdep.h (obsd_init_abi): New prototype.
12235 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
12236 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
12237 (obsd_init_abi): New functions.
12238 * i386obsd-tdep.c: Include "obsd-tdep.h".
12239 (i386obsd_init_abi): Call obsd_init_abi.
12240 * amd64obsd-tdep.c: Include "obsd-tdep.h".
12241 (amd64obsd_init_abi): Call obsd_init_abi.
12242 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
12243 obsd-tdep.c to gdb_target_obs.
12244
49caec94
JM
122452014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
12246
12247 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
12248 double float arguments to 16-byte in the argument slots.
12249
e1402065
DE
122502014-02-11 Doug Evans <xdje42@gmail.com>
12251
12252 * configure.ac: Don't crash if pkg-config is not found and guile
12253 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
12254 in guile checks.
12255 * configure: Regenerate.
12256
edcc890f
YQ
122572014-02-11 Yao Qi <yao@codesourcery.com>
12258
12259 * aix-thread.c (aix_thread_xfer_partial): Update comments.
12260 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
12261 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
12262 * gnu-nat.c (gnu_xfer_memory): Likewise.
12263 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
12264 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12265 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12266 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12267
9b409511
YQ
122682014-02-11 Yao Qi <yao@codesourcery.com>
12269
12270 * target.h (enum target_xfer_error): Rename to ...
12271 (enum target_xfer_status): ... it. New. All users updated.
12272 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
12273 New.
12274 (TARGET_XFER_STATUS_ERROR_P): New macro.
12275 (target_xfer_error_to_string): Remove declaration.
12276 (target_xfer_status_to_string): Declare.
12277 (target_xfer_partial_ftype): Adjust it.
12278 (struct target_ops) <to_xfer_partial>: Return
12279 target_xfer_status. Add argument xfered_len. Update
12280 comments.
12281 * target.c (target_xfer_error_to_string): Rename to ...
12282 (target_xfer_status_to_string): ... it. New. All callers
12283 updated.
12284 (target_read_live_memory): Likewise. Call target_xfer_partial
12285 instead of target_read.
12286 (memory_xfer_live_readonly_partial): Return
12287 target_xfer_status. Add argument xfered_len.
12288 (raw_memory_xfer_partial): Likewise.
12289 (memory_xfer_partial_1): Likewise.
12290 (memory_xfer_partial): Likewise.
12291 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
12292 properly. Update debug message.
12293 (default_xfer_partial, current_xfer_partial): Likewise.
12294 (target_write_partial): Likewise.
12295 (target_read_partial): Likewise. All callers updated.
12296 (read_whatever_is_readable): Likewise.
12297 (target_write_with_progress): Likewise.
12298 (target_read_alloc_1): Likewise.
12299
12300 * aix-thread.c (aix_thread_xfer_partial): Likewise.
12301 * auxv.c (procfs_xfer_auxv): Likewise.
12302 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
12303 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12304 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12305 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
12306 * corefile.c (read_memory): Adjust.
12307 * corelow.c (core_xfer_partial): Likewise.
12308 * ctf.c (ctf_xfer_partial): Likewise.
12309 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
12310 updated.
12311 (darwin_xfer_partial): Likewise.
12312 * exec.c (section_table_xfer_memory_partial): Likewise. All
12313 callers updated.
12314 (exec_xfer_partial): Likewise.
12315 * exec.h (section_table_xfer_memory_partial): Update
12316 declaration.
12317 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
12318 negative.
12319 (gnu_xfer_partial): Likewise.
12320 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
12321 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
12322 (ia64_hpux_xfer_solib_got): Likewise.
12323 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
12324 type of 'partial_len' to ULONGEST.
12325 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
12326 * linux-nat.c (linux_xfer_siginfo ): Likewise.
12327 (linux_nat_xfer_partial): Likewise.
12328 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
12329 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
12330 * monitor.c (monitor_xfer_memory): Likewise.
12331 (monitor_xfer_partial): Likewise.
12332 * procfs.c (procfs_xfer_partial): Likewise.
12333 * record-btrace.c (record_btrace_xfer_partial): Likewise.
12334 * record-full.c (record_full_xfer_partial): Likewise.
12335 (record_full_core_xfer_partial): Likewise.
12336 * remote-sim.c (gdbsim_xfer_memory): Likewise.
12337 (gdbsim_xfer_partial): Likewise.
12338 * remote.c (remote_write_bytes_aux): Likewise. All callers
12339 updated.
12340 (remote_write_bytes, remote_read_bytes): Likewise. All
12341 callers updated.
12342 (remote_flash_erase): Likewise. All callers updated.
12343 (remote_write_qxfer): Likewise. All callers updated.
12344 (remote_read_qxfer): Likewise. All callers updated.
12345 (remote_xfer_partial): Likewise.
12346 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12347 (rs6000_xfer_shared_libraries): Likewise.
12348 * sol-thread.c (sol_thread_xfer_partial): Likewise.
12349 (sol_thread_xfer_partial): Likewise.
12350 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12351 (sparc_xfer_partial): Likewise.
12352 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
12353 updated.
12354 (spu_xfer_partial): Likewise.
12355 * spu-multiarch.c (spu_xfer_partial): Likewise.
12356 * tracepoint.c (tfile_xfer_partial): Likewise.
12357 * windows-nat.c (windows_xfer_memory): Likewise.
12358 (windows_xfer_shared_libraries): Likewise.
12359 (windows_xfer_partial): Likewise.
12360 * valprint.c: Replace 'target_xfer_error' with
12361 'target_xfer_status' in comments.
12362
a8e63083
JB
123632014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
12364
12365 Checked in by Joel Brobecker <brobecker@adacore.com>.
12366 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
12367
e86b67d3
JB
123682014-02-11 Joel Brobecker <brobecker@adacore.com>
12369
12370 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
12371 function parameters.
12372
4b7d1f7f
WN
123732014-02-10 Will Newton <will.newton@linaro.org>
12374
12375 * elfread.c (elf_rel_plt_read): Look for a .got section if
12376 looking up .got.plt fails.
12377 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
12378 on address passed to elf_gnu_ifunc_record_cache.
12379 (elf_gnu_ifunc_resolve_addr): Likewise.
12380 (elf_gnu_ifunc_resolver_return_stop): Likewise.
12381
961842b2
JM
123822014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
12383
12384 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
12385 (X_RETTURN): New macro.
12386 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
12387
12388 * sparc64-tdep.c (sparc64_init_abi): Hook
12389 sparc_in_function_epilogue_p.
12390
3f03e7b1
GB
123912014-02-10 Gary Benson <gbenson@redhat.com>
12392
12393 * symfile-debug.c (debug_qf_expand_symtabs_matching):
12394 Rename name_matcher to symbol_matcher.
12395
96f861ef
GB
123962014-02-10 Gary Benson <gbenson@redhat.com>
12397
12398 * symfile-debug.c (debug_qf_expand_symtabs_matching):
12399 Use expand_symtabs_file_matcher_ftype and
12400 expand_symtabs_symbol_matcher_ftype.
12401
ee01b665
JB
124022014-02-10 Joel Brobecker <brobecker@adacore.com>
12403
12404 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
12405 (struct ada_symbol_cache): New.
12406 (ada_free_symbol_cache): Forward declare.
12407 (struct ada_pspace_data): New.
12408 (ada_pspace_data_handle): New static global.
12409 (get_ada_pspace_data, ada_pspace_data_cleanup)
12410 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
12411 (cache_space, cache): Delete, now folded inside struct
12412 ada_pspace_data.
12413 (ada_get_symbol_cache): New function.
12414 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
12415 implementation.
12416 (_initialize_ada_language): Remove initialization of cache_space.
12417 Move call to observer_attach_inferior_exit up, grouping it
12418 with the other observer registrations inside this function.
12419 Rename command to be more general. Add call to
12420 register_program_space_data_with_cleanup.
12421
143adbbf
JB
124222014-02-10 Joel Brobecker <brobecker@adacore.com>
12423
12424 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
12425 ada_new_objfile_observer.
12426 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
12427 (_initialize_tasks): Update uses of ada_new_objfile_observer
12428 and ada_tasks_normal_stop_observer.
12429
aa4fb036
JB
124302014-02-10 Joel Brobecker <brobecker@adacore.com>
12431
12432 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
12433 returned by the 'Length attribute to integer.
12434
9dee8cc6
JB
124352014-02-10 Joel Brobecker <brobecker@adacore.com>
12436
12437 * ada-lang.c (_initialize_ada_language): Initialize
12438 cache_space obstack.
12439
3d9434b5
JB
124402014-02-10 Joel Brobecker <brobecker@adacore.com>
12441
12442 * ada-lang.c (HASH_SIZE): New macro.
12443 (struct cache_entry): New type.
12444 (cache_space, cache): New static globals.
12445 (ada_clear_symbol_cache, find_entry): New functions.
12446 (lookup_cached_symbol, cache_symbol): Implement.
12447 (ada_new_objfile_observer, ada_free_objfile_observer): New.
12448 (_initialize_ada_language): Attach ada_new_objfile_observer
12449 and ada_free_objfile_observer.
12450
f0c5f9b2
JB
124512014-02-10 Joel Brobecker <brobecker@adacore.com>
12452
12453 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
12454 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
12455 struct block * parameter.
12456 (ada_lookup_symbol_list_worker): Constify local variable "block".
12457 Remove cast which is no longer necessary.
12458
ed3ef339
DE
124592014-02-10 Doug Evans <xdje42@gmail.com>
12460
12461 Add Guile as an extension language.
12462 * NEWS: Mention Guile scripting.
12463 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
12464 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
12465 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
12466 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
12467 (CLIBS): Add GUILE_LIBS.
12468 (install-guile): New rule.
12469 (guile.o): New rule.
12470 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
12471 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
12472 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
12473 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
12474 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
12475 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
12476 (scm-type.o, scm-utils.o, scm-value.o): New rules.
12477 * configure.ac: New option --with-guile.
12478 * configure: Regenerate.
12479 * config.in: Regenerate.
12480 * auto-load.c: Remove #include "python/python.h". Add #include
12481 "gdb/section-scripts.h".
12482 (source_section_scripts): Handle Guile scripts.
12483 (_initialize_auto_load): Add name of Guile objfile script to
12484 scripts-directory help text.
12485 * breakpoint.c (condition_command): Tweak comment to include Scheme.
12486 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
12487 (struct breakpoint): New member scm_bp_object.
12488 * defs.h (enum command_control_type): New value guile_control.
12489 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
12490 "extension.h".
12491 (show_user): Update comment.
12492 (_initialize_cli_cmds): Update help text for "show user". Update help
12493 text for max-user-call-depth.
12494 * cli/cli-script.c: Remove #include "python/python.h". Add #include
12495 "extension.h".
12496 (multi_line_command_p): Add guile_control.
12497 (print_command_lines): Handle guile_control.
12498 (execute_control_command, recurse_read_control_structure): Ditto.
12499 (process_next_line): Recognize "guile" commands.
12500 * disasm.c (gdb_disassemble_info): Make non-static.
12501 * disasm.h: #include "dis-asm.h".
12502 (struct gdbarch): Add forward decl.
12503 (gdb_disassemble_info): Declare.
12504 * extension.c: #include "guile/guile.h".
12505 (extension_languages): Add guile.
12506 (get_ext_lang_defn): Handle EXT_LANG_GDB.
12507 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
12508 * gdbtypes.c (get_unsigned_type_max): New function.
12509 (get_signed_type_minmax): New function.
12510 * gdbtypes.h (get_unsigned_type_max): Declare.
12511 (get_signed_type_minmax): Declare.
12512 * guile/README: New file.
12513 * guile/guile-internal.h: New file.
12514 * guile/guile.c: New file.
12515 * guile/guile.h: New file.
12516 * guile/scm-arch.c: New file.
12517 * guile/scm-auto-load.c: New file.
12518 * guile/scm-block.c: New file.
12519 * guile/scm-breakpoint.c: New file.
12520 * guile/scm-disasm.c: New file.
12521 * guile/scm-exception.c: New file.
12522 * guile/scm-frame.c: New file.
12523 * guile/scm-gsmob.c: New file.
12524 * guile/scm-iterator.c: New file.
12525 * guile/scm-lazy-string.c: New file.
12526 * guile/scm-math.c: New file.
12527 * guile/scm-objfile.c: New file.
12528 * guile/scm-ports.c: New file.
12529 * guile/scm-pretty-print.c: New file.
12530 * guile/scm-safe-call.c: New file.
12531 * guile/scm-string.c: New file.
12532 * guile/scm-symbol.c: New file.
12533 * guile/scm-symtab.c: New file.
12534 * guile/scm-type.c: New file.
12535 * guile/scm-utils.c: New file.
12536 * guile/scm-value.c: New file.
12537 * guile/lib/gdb.scm: New file.
12538 * guile/lib/gdb/boot.scm: New file.
12539 * guile/lib/gdb/experimental.scm: New file.
12540 * guile/lib/gdb/init.scm: New file.
12541 * guile/lib/gdb/iterator.scm: New file.
12542 * guile/lib/gdb/printing.scm: New file.
12543 * guile/lib/gdb/types.scm: New file.
12544 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
12545 (VPATH): Add $(GUILE_SRCDIR).
12546 (GUILE_DIR): New variable.
12547 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
12548 (all): Add stamp-guile dependency.
12549 (stamp-guile): New rule.
12550 (clean-guile, install-guile, uninstall-guile): New rules.
12551 (install-only): Add install-guile dependency.
12552 (uninstall): Add uninstall-guile dependency.
12553 (clean): Add clean-guile dependency.
12554
ac020ec5
DE
125552014-02-09 Doug Evans <xdje42@gmail.com>
12556
12557 Revert this patch (which I approved, mea culpa).
12558
12559 2014-02-08 Mark Kettenis <kettenis@gnu.org>
12560
12561 * Makefile.in (all-lib): Remove.
12562 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12563
2a081c59
JK
125642014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
12565
12566 Fix Python stack corruption.
12567 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
12568 gdb_py_longest.
12569
0a6bd22d
MK
125702014-02-08 Mark Kettenis <kettenis@gnu.org>
12571
12572 * Makefile.in (all-lib): Remove.
12573 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12574
1a860409
DE
125752014-02-07 Doug Evans <dje@google.com>
12576
12577 * extension-priv.h (extension_language_script_ops): Add comment.
12578 (extension_language_ops): Add comment.
caf5a491 12579 (active_ext_lang_state): Fix typo in comment.
1a860409 12580
d137e6dc
PA
125812014-02-07 Pedro Alves <palves@redhat.com>
12582
0dcb32c3 12583 PR breakpoints/16292
d137e6dc
PA
12584 * infrun.c (handle_signal_stop) <signal arrives while stepping
12585 over a breakpoint>: Switch back to the stepping thread.
12586
ce6d0892
YQ
125872014-02-07 Yao Qi <yao@codesourcery.com>
12588
12589 * target.c (target_xfer_partial): Return zero if LEN is zero.
12590
2ed4b548
YQ
125912014-02-07 Yao Qi <yao@codesourcery.com>
12592
12593 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
12594 (ld_so_xfer_auxv): Likewise.
12595 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12596 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12597 * corelow.c (core_xfer_partial): Likewise.
12598 * ctf.c (ctf_xfer_partial): Likewise.
12599 * darwin-nat.c (darwin_read_dyld_info): Likewise.
12600 (darwin_xfer_partial): Likewise.
12601 * exec.c (exec_xfer_partial): Likewise.
12602 * gnu-nat.c (gnu_xfer_partial): Likewise.
12603 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
12604 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
12605 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
12606 * linux-nat.c (linux_xfer_siginfo): Likewise.
12607 (linux_proc_xfer_spu): Likewise.
12608 * procfs.c (procfs_xfer_partial): Likewise.
12609 * record-full.c (record_full_xfer_partial): Likewise.
12610 (record_full_core_xfer_partial): Likewise.
12611 * remote-sim.c (gdbsim_xfer_partial): Likewise.
12612 * remote.c (remote_write_qxfer): Likewise.
12613 (remote_write_qxfer, remote_read_qxfer): Likewise.
12614 (remote_xfer_partial): Likewise.
12615 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12616 (rs6000_xfer_shared_libraries): Likewise.
12617 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12618 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12619 (spu_xfer_partial): Likewise.
12620 * target.c (memory_xfer_partial_1): Likewise.
12621 * tracepoint.c (tfile_xfer_partial): Likewise.
12622 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
12623 (windows_xfer_partial): Likewise.
12624
c09f20e4
YQ
126252014-02-07 Yao Qi <yao@codesourcery.com>
12626
12627 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
12628 comments.
12629 (core_xfer_shared_libraries_aix): Likewise.
12630 * gdbarch.c, gdbarch.h: Regenerated.
12631 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
12632 ULONGEST. Change 'len_avail' type to ULONGEST.
12633 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12634 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12635 declaration.
12636 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
12637
8635b3bf
YQ
126382014-02-07 Yao Qi <yao@codesourcery.com>
12639
12640 * corefile.c (memory_error): Get 'exception' from ERR and pass
12641 'exception' to throw_error.
12642
6dddc817
DE
126432014-02-06 Doug Evans <xdje42@gmail.com>
12644
12645 * configure.ac (libpython checking): Remove all but python.o from
12646 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
12647 * configure: Regenerate.
12648
12649 * Makefile.in (SFILES): Add extension.c.
12650 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
12651 (COMMON_OBS): Add extension.o.
12652 * extension.h: New file.
12653 * extension-priv.h: New file.
12654 * extension.c: New file.
12655
12656 * python/python-internal.h: #include "extension.h".
12657 (gdbpy_auto_load_enabled): Declare.
12658 (gdbpy_apply_val_pretty_printer): Declare.
12659 (gdbpy_apply_frame_filter): Declare.
12660 (gdbpy_preserve_values): Declare.
12661 (gdbpy_breakpoint_cond_says_stop): Declare.
12662 (gdbpy_breakpoint_has_cond): Declare.
12663 (void source_python_script_for_objfile): Delete.
12664 * python/python.c: #include "extension-priv.h".
12665 Delete inclusion of "observer.h".
12666 (extension_language_python): Moved here and renamed from
12667 script_language_python in py-auto-load.c.
12668 Redefined to be of type extension_language_defn.
12669 (python_extension_script_ops): New global.
12670 (python_extension_ops): New global.
12671 (struct python_env): New member previous_active.
12672 (restore_python_env): Call restore_active_ext_lang.
12673 (ensure_python_env): Call set_active_ext_lang.
12674 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
12675 New arg extlang.
12676 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
12677 New arg extlang.
12678 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
12679 New arg extlang.
12680 (gdbpy_eval_from_control_command): Renamed from
12681 eval_python_from_control_command, made static. New arg extlang.
12682 (gdbpy_source_script) Renamed from source_python_script, made static.
12683 New arg extlang.
12684 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
12685 result to int. New arg extlang.
12686 (gdbpy_source_objfile_script): Renamed from
12687 source_python_script_for_objfile, made static. New arg extlang.
12688 (gdbpy_start_type_printers): Renamed from start_type_printers, made
12689 static. New args extlang, extlang_printers. Change result type to
12690 "void".
12691 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
12692 static. New arg extlang. Rename arg printers to extlang_printers
12693 and change type to ext_lang_type_printers *.
12694 (gdbpy_free_type_printers): Renamed from free_type_printers, made
12695 static. Replace argument arg with extlang, extlang_printers.
12696 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
12697 (!HAVE_PYTHON, source_python_script): Delete.
12698 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
12699 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
12700 (!HAVE_PYTHON, start_type_printers): Delete.
12701 (!HAVE_PYTHON, apply_type_printers): Delete.
12702 (!HAVE_PYTHON, free_type_printers): Delete.
12703 (_initialize_python): Delete call to observer_attach_before_prompt.
12704 (finalize_python): Set/restore active extension language.
12705 (gdbpy_finish_initialization) Renamed from
12706 finish_python_initialization, made static. New arg extlang.
12707 (gdbpy_initialized): New function.
12708 * python/python.h: #include "extension.h". Delete #include
12709 "value.h", "mi/mi-cmds.h".
12710 (extension_language_python): Declare.
12711 (GDBPY_AUTO_FILE_NAME): Delete.
12712 (enum py_bt_status): Moved to extension.h and renamed to
12713 ext_lang_bt_status.
12714 (enum frame_filter_flags): Moved to extension.h.
12715 (enum py_frame_args): Moved to extension.h and renamed to
12716 ext_lang_frame_args.
12717 (finish_python_initialization): Delete.
12718 (eval_python_from_control_command): Delete.
12719 (source_python_script): Delete.
12720 (apply_val_pretty_printer): Delete.
12721 (apply_frame_filter): Delete.
12722 (preserve_python_values): Delete.
12723 (gdbpy_script_language_defn): Delete.
12724 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
12725 (start_type_printers, apply_type_printers, free_type_printers): Delete.
12726
12727 * auto-load.c: #include "extension.h".
12728 (GDB_AUTO_FILE_NAME): Delete.
12729 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
12730 (script_language_gdb): Delete, moved to extension.c and renamed to
12731 extension_language_gdb.
12732 (source_gdb_script_for_objfile): Delete.
12733 (auto_load_pspace_info): New member unsupported_script_warning_printed.
12734 (loaded_script): Change type of language member to
12735 struct extension_language_defn *.
12736 (init_loaded_scripts_info): Initialize
12737 unsupported_script_warning_printed.
12738 (maybe_add_script): Make static. Change type of language arg to
12739 struct extension_language_defn *.
12740 (clear_section_scripts): Reset unsupported_script_warning_printed.
12741 (auto_load_objfile_script_1): Rewrite to use extension language API.
12742 (auto_load_objfile_script): Make public. Remove support-compiled-in
12743 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
12744 (source_section_scripts): Rewrite to use extension language API.
12745 (load_auto_scripts_for_objfile): Rewrite to use
12746 auto_load_scripts_for_objfile.
12747 (collect_matching_scripts_data): Change type of language member to
12748 struct extension_language_defn *.
12749 (auto_load_info_scripts): Change type of language arg to
12750 struct extension_language_defn *.
12751 (unsupported_script_warning_print): New function.
12752 (script_not_found_warning_print): Make static.
12753 (_initialize_auto_load): Rewrite construction of scripts-directory
12754 help.
12755 * auto-load.h (struct objfile): Add forward decl.
12756 (struct script_language): Delete.
12757 (struct auto_load_pspace_info): Add forward decl.
12758 (struct extension_language_defn): Add forward decl.
12759 (maybe_add_script): Delete.
12760 (auto_load_objfile_script): Declare.
12761 (script_not_found_warning_print): Delete.
12762 (auto_load_info_scripts): Update prototype.
12763 (auto_load_gdb_scripts_enabled): Declare.
12764 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
12765 auto_load_python_scripts_enabled and made public.
12766 (script_language_python): Delete, moved to python.c.
12767 (gdbpy_script_language_defn): Delete.
12768 (info_auto_load_python_scripts): Update to use
12769 extension_language_python.
12770
12771 * breakpoint.c (condition_command): Replace call to
12772 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
12773 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
12774 with call to breakpoint_ext_lang_cond_says_stop.
12775 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
12776 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
12777 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
12778 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
12779 New arg slang.
12780 (local_setattro): Print name of extension language with existing
12781 stop condition.
12782
12783 * valprint.c (val_print, value_print): Update to call
12784 apply_ext_lang_val_pretty_printer.
12785 * cp-valprint.c (cp_print_value): Update call to
12786 apply_ext_lang_val_pretty_printer.
12787 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
12788 (gdbpy_apply_val_pretty_printer): Renamed from
12789 apply_val_pretty_printer. New arg extlang.
12790 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
12791
12792 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
12793 extension language API.
12794 * cli/cli-script.c (execute_control_command): Update to call
12795 eval_ext_lang_from_control_command.
12796
12797 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
12798 enum ext_lang_bt_status values. Update call to
12799 apply_ext_lang_frame_filter.
12800 (mi_cmd_stack_list_locals): Ditto.
12801 (mi_cmd_stack_list_args): Ditto.
12802 (mi_cmd_stack_list_variables): Ditto.
12803 * mi/mi-main.c: Delete #include "python/python-internal.h".
12804 Add #include "extension.h".
12805 (mi_cmd_list_features): Replace reference to python internal variable
12806 gdb_python_initialized with call to ext_lang_initialized_p.
12807
12808 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
12809 Update to use enum ext_lang_frame_args. Update to call
12810 apply_ext_lang_frame_filter.
12811 * python/py-framefilter.c (extract_sym): Update to use enum
12812 ext_lang_bt_status.
12813 (extract_value, py_print_type, py_print_value): Ditto.
12814 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
12815 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
12816 (py_print_frame): Ditto.
12817 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
12818 New arg extlang. Update to use enum ext_lang_bt_status.
12819
12820 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
12821 finish_python_initialization. Replace with call to
12822 finish_ext_lang_initialization.
12823
12824 * typeprint.c (do_free_global_table): Update to call
12825 free_ext_lang_type_printers.
12826 (create_global_typedef_table): Update to call
12827 start_ext_lang_type_printers.
12828 (find_global_typedef): Update to call apply_ext_lang_type_printers.
12829 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
12830 (type_print_options): Change type of global_printers from "void *"
12831 to "struct ext_lang_type_printers *".
12832
12833 * value.c (preserve_values): Update to call preserve_ext_lang_values.
12834 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
12835 (gdbpy_preserve_values): Renamed from preserve_python_values.
12836 New arg extlang.
12837 (!HAVE_PYTHON, preserve_python_values): Delete.
12838
12839 * utils.c (quit_flag): Delete, moved to extension.c.
12840 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
12841 extension.c.
12842
12843 * eval.c: Delete #include "python/python.h".
12844 * main.c: Delete #include "python/python.h".
12845
12846 * defs.h: Update comment.
12847
6af79985
JB
128482014-02-06 Joel Brobecker <brobecker@adacore.com>
12849
12850 GDB 7.7 released.
12851
12c5175d
MK
128522014-02-05 Mark Kettenis <kettenis@gnu.org>
12853
12854 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
12855 defined.
12856
8dc5b319
YQ
128572014-02-05 Yao Qi <yao@codesourcery.com>
12858
12859 * remote.c (remote_pass_signals): Remove local 'buf' and use
12860 rs->buf.
12861 (remote_program_signals): Likewise.
12862
de7b2893
YQ
128632014-02-05 Yao Qi <yao@codesourcery.com>
12864
12865 * ctf.c: Include "inferior.h" and "gdbthread.h".
12866 (CTF_PID): A new macro.
12867 (ctf_open): Call inferior_appeared and add_thread_silent.
12868 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
12869 (ctf_thread_alive): New function.
12870 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
12871
66d032ac
YQ
128722014-02-05 Yao Qi <yao@codesourcery.com>
12873
12874 Revert this patch:
12875
12876 2013-05-24 Yao Qi <yao@codesourcery.com>
12877
12878 * tracepoint.c (TFILE_PID): Remove.
12879 (tfile_open): Don't add thread and inferior.
12880 (tfile_close): Don't set 'inferior_ptid'. Don't call
12881 exit_inferior_silent.
12882 (tfile_thread_alive): Remove.
12883 (init_tfile_ops): Don't set field 'to_thread_alive' of
12884 tfile_ops.
12885
f4ccffad
CE
128862014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
12887
12888 * remote.c (remote_start_remote): Call remote_check_symbols even
12889 if only symbol-file (not file) has been given.
12890
591a12a1
UW
128912014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12892
12893 * gdbarch.sh (skip_entrypoint): New callback.
12894 * gdbarch.c, gdbarch.h: Regenerate.
12895 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
12896 * infrun.c (fill_in_stop_func): Likewise.
12897 * ppc-linux-tdep.c: Include "elf/ppc64.h".
12898 (ppc_elfv2_elf_make_msymbol_special): New function.
12899 (ppc_elfv2_skip_entrypoint): Likewise.
12900 (ppc_linux_init_abi): Install them for ELFv2.
12901
cc0e89c5
UW
129022014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12903
12904 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
12905 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
12906 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
12907 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
12908 structures returned in GPRs.
12909
52f548e4
UW
129102014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12911
12912 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
12913 offset to the stack parameter list for the ELFv2 ABI.
12914
d4094b6a
UW
129152014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12916
12917 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
12918 set_gdbarch_convert_from_func_ptr_addr and
12919 set_gdbarch_elf_make_msymbol_special for ELFv1.
12920 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
12921 function descriptors on ELFv1.
12922 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
12923 set up r12 at function entry.
12924
cd453cd0
UW
129252014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12926
12927 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
12928 (struct gdbarch_tdep): New member elf_abi.
12929
12930 * rs6000-tdep.c: Include "elf/ppc64.h".
12931 (rs6000_gdbarch_init): Detect ELF ABI version.
12932
0ff3e01f
UW
129332014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12934
12935 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
12936 within a register pair holding a DFP 128-bit value on little-endian.
12937 (ppc64_sysv_abi_return_value_base): Likewise.
12938 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
12939 (dfp_pseudo_register_write): Likewise.
12940
5b757e5d
UW
129412014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12942
12943 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
12944 offset on little-endian when passing _Decimal32.
12945 (ppc64_sysv_abi_return_value_base): Likewise for return values.
12946
084ee545
UW
129472014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12948
12949 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
12950 of the overlapped FP register within the VSX register on little-
12951 endian platforms.
12952 (efpr_pseudo_register_write): Likewise.
12953
d63167af
UW
129542014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12955
12956 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
12957 offset on little-endian when passing small structures.
12958
e765b44c
UW
129592014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12960
12961 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
12962 (struct ppc64_sysv_argpos): New data structure.
12963 (ppc64_sysv_abi_push_float): Remove.
12964 (ppc64_sysv_abi_push_val): New function.
12965 (ppc64_sysv_abi_push_integer): Likewise.
12966 (ppc64_sysv_abi_push_freg): Likewise.
12967 (ppc64_sysv_abi_push_vreg): Likewise.
12968 (ppc64_sysv_abi_push_param): Likewise.
12969 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
12970 (ppc64_sysv_abi_return_value_base): New function.
12971 (ppc64_sysv_abi_return_value): Refactor to use it.
12972
36c24d95
UW
129732014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12974
12975 * NEWS: Document new target powerpc64le-*-linux*.
12976
26fd9228
MK
129772014-02-04 Mark Kettenis <kettenis@gnu.org>
12978
12979 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
12980 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
12981 core dumps.
12982 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
12983 register set used in ELF core dumps. Add floating-point register set.
12984
c5bb7362
KB
129852014-02-03 Kevin Buettner <kevinb@redhat.com>
12986
74228e77 12987 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
c5bb7362
KB
12988 dwarf2_to_gdb[] table using symbolic constants. Adjust
12989 penultimate entry from number representing the PC register
12990 to symbolic constant representing the MDR register. Add
12991 constant for the PC register to the end of the table.
12992
af09351e
MK
129932014-02-03 Mark Kettenis <kettenis@gnu.org>
12994
12995 * bsd-kvm.c: Include <sys/param.h>
12996
8507e05d
MK
129972014-02-03 Mark Kettenis <kettenis@gnu.org>
12998
12999 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
13000
ae56bfb8
JB
130012014-01-31 Joel Brobecker <brobecker@adacore.com>
13002
13003 * ada-lang.h (clear_ada_sym_cache): Delete.
13004
718ee4dc
UW
130052014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
13006
13007 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
13008
401e27fd
JM
130092014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
13010
13011 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
13012 the sigreturn register save area only if the syscall is
13013 sigreturn.
13014
a7c88acd
JB
130152014-01-29 Joel Brobecker <brobecker@adacore.com>
13016
13017 * valops.c (value_slice): Minor reformatting.
13018
fa0079ea
UW
130192014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
13020
13021 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
13022
c6044dd1
JB
130232014-01-28 Joel Brobecker <brobecker@adacore.com>
13024
13025 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
13026 New static globals.
13027 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
13028 (ada_ignore_descriptive_types_p): New static global.
13029 (find_parallel_type_by_descriptive_type): Return immediately
13030 if ada_ignore_descriptive_types_p is set.
13031 (_initialize_ada_language): Register new commands "maintenance
13032 set ada", "maintenance show ada", "maintenance set ada
13033 ignore-descriptive-types" and "maintenance show ada
13034 ignore-descriptive-types".
13035 * NEWS: Add entry for new "maint ada set/show
13036 ignore-descriptive-types" commands.
13037
568e808b
MM
130382014-01-27 Markus Metzger <markus.t.metzger@intel.com>
13039
13040 * record-btrace.c (record_btrace_close): Call btrace_teardown
13041 for all threads.
13042
467d141b
JB
130432014-01-27 Joel Brobecker <brobecker@adacore.com>
13044
13045 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
13046 "ui-out.h".
13047
fb151210
JB
130482014-01-27 Joel Brobecker <brobecker@adacore.com>
13049
13050 * ada-typeprint (type_is_full_subrange_of_target_type):
13051 New function.
13052 (print_range): Add parameter bounds_prefered_p. If not set,
13053 try printing range types using the name of their base type.
13054 (print_range_type): Add parameter bounds_prefered_p.
13055 Use it in call to print_range.
13056 (print_array_type, ada_print_type): Update calls to print_range
13057 and print_range_type.
13058
aba02109
JB
130592014-01-27 Joel Brobecker <brobecker@adacore.com>
13060
13061 * ada-typeprint.c (print_array_type, print_choices, print_range)
13062 (print_range_bound, print_dynamic_range_bound, print_range_type):
13063 Remove declaration.
13064
e62e21fd
JB
130652014-01-27 Joel Brobecker <brobecker@adacore.com>
13066
13067 * ada-typeprint.c (print_range): Add missing empty line
13068 after local declaration.
13069
859cf5d1
JB
130702014-01-27 Joel Brobecker <brobecker@adacore.com>
13071
13072 * ada-valprint.c (print_optional_low_bound): Get index_type's
13073 target type for as long as it is a TYPE_CODE_RANGE.
13074
25790f6f
JB
130752014-01-27 Joel Brobecker <brobecker@adacore.com>
13076
13077 * procfs.c (procfs_make_note_section): Remove assertion and
13078 associated comment.
13079
6b6aa828
YQ
130802014-01-24 Yao Qi <yao@codesourcery.com>
13081
13082 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
13083 * corelow.c (get_core_siginfo): Likewise.
13084
5d6df423
YQ
130852014-01-24 Yao Qi <yao@codesourcery.com>
13086
13087 * remote.c (remote_write_bytes_aux): Change type of 'len' to
13088 ULONGEST. Don't check 'len' is negative.
13089 (remote_write_bytes): Change type of 'len' to ULONGEST.
13090
83b645b8
TT
130912014-01-23 Tom Tromey <tromey@redhat.com>
13092
13093 PR python/16485:
13094 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
13095 Handle exception from frame.block.
13096 (FrameVars.fetch_frame_locals): Likewise.
13097
0740f8d8
TT
130982014-01-23 Tom Tromey <tromey@redhat.com>
13099
13100 PR python/16487:
13101 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
13102 on a NULL pointer. Move "goto error" to correct place.
13103
21909fa1
TT
131042014-01-23 Tom Tromey <tromey@redhat.com>
13105
13106 PR python/16491:
13107 * python/py-framefilter.c (apply_frame_filter): Call
13108 ensure_python_env after computing gdbarch.
13109
17fde6d0
YQ
131102014-01-23 Yao Qi <yao@codesourcery.com>
13111
13112 * target.c (raw_memory_xfer_partial): Change argument type
13113 from void * to gdb_byte *.
13114 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
13115
87ce2a04
DE
131162014-01-22 Doug Evans <dje@google.com>
13117
13118 New gdbserver option --debug-format=timestamp.
13119 * NEWS: Mention it.
13120
237b092b
AA
131212014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
13122
13123 * syscalls/s390x-linux.xml: New file.
13124 * syscalls/s390-linux.xml: New file.
13125 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
13126 (XML_SYSCALL_FILENAME_S390X): Likewise.
13127 (op_svc): New enum value for SVC opcode.
13128 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
13129 (s390_linux_get_syscall_number): New function.
13130 (s390_gdbarch_init): Register '*get_syscall_number' and the
13131 syscall xml file name.
13132 * data-directory/Makefile.in (SYSCALLS_FILES): Add
13133 "s390-linux.xml" and "s390x-linux.xml".
13134 * NEWS: Announce new feature.
13135
54bff650
BS
131362014-01-22 Baruch Siach <baruch@tkos.co.il>
13137
13138 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
13139
14e361d7
PA
131402014-01-22 Pedro Alves <palves@redhat.com>
13141
13142 * xtensa-config.c: Include defs.h.
13143
46bbb3ed
JB
131442014-01-22 Joel Brobecker <brobecker@adacore.com>
13145
13146 * common/common-utils.h: Add "ARI:" comment beside __func__
13147 reference.
13148
3a80edfc
JB
131492014-01-22 Joel Brobecker <brobecker@adacore.com>
13150
13151 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
13152 documentation a bit.
13153
4869db5e
RM
131542014-01-21 Roland McGrath <mcgrathr@google.com>
13155
13156 * configure.ac: Call AM_PROG_INSTALL_STRIP.
13157 * configure: Regenerate.
13158 * aclocal.m4: Regenerate.
13159 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
13160 New substituted variables.
13161 (install-strip): New target.
13162 (INSTALL_SCRIPT): New substituted variable.
13163 (FLAGS_TO_PASS): Add it.
13164 (install-only): Use $(INSTALL_SCRIPT) rather than
13165 $(INSTALL_PROGRAM) for gcore.
13166
9ea4267d
TT
131672014-01-20 Tom Tromey <tromey@redhat.com>
13168
13169 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
13170 together.
13171
1f2bdf09
TT
131722014-01-20 Tom Tromey <tromey@redhat.com>
13173
13174 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
13175 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
13176 (deprecated_cmd_warning, complete_on_cmdlist): Update.
13177 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
13178 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
13179 (struct cmd_list_element) <flags>: Remove.
13180 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
13181 doc_allocated>: New fields.
13182 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
13183 bitfields.
13184 * maint.c (maintenance_do_deprecate): Update.
13185 * top.c (execute_command): Update.
13186
e671835b
BS
131872014-01-20 Baruch Siach <baruch@tkos.co.il>
13188
13189 * xtensa-linux-nat.c: Include asm/ptrace.h.
13190
50367cd2
IB
131912014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13192
13193 * Makefile.in (SFILES): Add d-support.c.
13194 (COMMON_OBS): Add d-support.o.
13195 * d-lang.h (d_parse_symbol): Add comment, now defined in
13196 d-support.c.
13197 * d-lang.c (parse_call_convention)
13198 (parse_attributes, parse_function_types)
13199 (parse_function_args, parse_type, parse_identifier)
13200 (call_convention_p, d_parse_symbol): Move functions to ...
13201 * d-support.c: ... New file.
13202
ec9f644a
IB
132032014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13204
13205 * d-lang.h (d_parse_symbol): Add declaration.
13206 * d-lang.c (extract_identifiers)
13207 (extract_type_info): Remove functions.
13208 (parse_call_convention, parse_attributes)
13209 (parse_function_types, parse_function_args)
13210 (parse_type, parse_identifier, call_convention_p)
13211 (d_parse_symbol): New functions.
13212 (d_demangle): Use d_parse_symbol to demangle D symbols.
13213
94b1b47e
IB
132142014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13215
13216 * d-lang.h (struct builtin_d_type): New data type.
13217 (builtin_d_type): Add declaration.
13218 * d-lang.c (d_language_arch_info, build_d_types)
13219 (builtin_d_type): New functions.
13220 (enum d_primitive_types): New data type.
13221 (d_language_defn): Change c_language_arch_info to
13222 d_language_arch_info.
13223 (d_type_data): New static variable.
13224 (_initialize_d_language): Initialize d_type_data.
13225
63778547
IB
132262014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13227
13228 * d-lang.h (d_main_name): Add declaration.
13229 * d-lang.c (d_main_name): New function.
13230 * symtab.c (find_main_name): Add call to d_main_name.
13231
3271ba66
IB
132322014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13233
13234 * d-lang.c (d_language_defn): Change macro_expansion_c to
13235 macro_expansion_no.
13236
d36b3012
IB
132372014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13238
13239 * MAINTAINERS: Add myself as a write-after-approval maintainer.
13240
c90a6fb7
SDJ
132412014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
13242
13243 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
13244 gdb_exception" declaration.
13245 * remote.c (getpkt_or_notif_sane): Likewise.
13246
749234e5
DE
132472014-01-17 Doug Evans <dje@google.com>
13248
13249 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
13250 function, contents of dirnames_to_char_ptr_vec_append moved here.
13251 (delim_string_to_char_ptr_vec): New function.
13252 (dirnames_to_char_ptr_vec_append): Rewrite.
13253 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
13254
df049a58
DE
132552014-01-17 Doug Evans <dje@google.com>
13256
13257 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
13258 and moved here ...
13259 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
13260 #include "common-utils.h".
13261 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
13262 * common/vec.h (VEC_ASSERT_PASS): Update.
13263 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
13264 (MACH_CHECK_ERROR): Update.
13265
69f97648
SM
132662014-01-17 Simon Marchi <simon.marchi@ericsson.com>
13267
13268 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
13269 comments.
13270 * gdbarch.h: Regenerate.
13271
98b1cfdc
TT
132722014-01-16 Tom Tromey <tromey@redhat.com>
13273
13274 * value.c (struct value) <regnum>: Move earlier.
13275
77a19445
TT
132762014-01-16 Tom Tromey <tromey@redhat.com>
13277
13278 * remote.c (extended_remote_create_inferior): Rename from
13279 extended_remote_create_inferior_1. Add "ops" argument. Remove
13280 old implementation.
13281
62261490
PA
132822014-01-16 Pedro Alves <palves@redhat.com>
13283
13284 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
13285 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
13286 the backchain.
13287
4d65956b
DE
132882014-01-16 Doug Evans <dje@google.com>
13289
13290 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
13291
52834460
MM
132922014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13293
13294 * btrace.h (btrace_thread_flag): New.
13295 (struct btrace_thread_info) <flags>: New.
13296 * record-btrace.c (record_btrace_resume_thread)
13297 (record_btrace_find_thread_to_move, btrace_step_no_history)
13298 (btrace_step_stopped, record_btrace_start_replaying)
13299 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
13300 (record_btrace_find_resume_thread): New.
13301 (record_btrace_resume, record_btrace_wait): Extend.
13302 (record_btrace_can_execute_reverse): New.
13303 (record_btrace_open): Fail in non-stop mode.
13304 (record_btrace_set_replay): Split into this, ...
13305 (record_btrace_stop_replaying): ... this, ...
13306 (record_btrace_clear_histories): ... and this.
13307 (init_record_btrace_ops): Init to_can_execute_reverse.
13308 * NEWS: Announce it.
13309
118e6252
MM
133102014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13311
13312 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
13313 (forward_target_decr_pc_after_break)
13314 (target_decr_pc_after_break): New.
13315 * target.c (forward_target_decr_pc_after_break)
13316 (target_decr_pc_after_break): New.
13317 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
13318 instead of gdbarch_decr_pc_after_break.
13319 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
13320 instead of gdbarch_decr_pc_after_break.
13321 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
13322 instead of gdbarch_decr_pc_after_break.
13323 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
13324 instead of gdbarch_decr_pc_after_break.
13325 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
13326 instead of gdbarch_decr_pc_after_break.
13327 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
13328 instead of gdbarch_decr_pc_after_break.
13329
6e07b1d2
MM
133302014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13331
13332 * btrace.c: Include regcache.h.
13333 (btrace_add_pc): New.
13334 (btrace_enable): Call btrace_add_pc.
13335 (btrace_is_empty): New.
13336 * btrace.h (btrace_is_empty): New.
13337 * record-btrace.c (require_btrace, record_btrace_info): Call
13338 btrace_is_empty.
13339
969c39fb
MM
133402014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13341
13342 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
13343 Support delta reads.
13344 (linux_disable_btrace): Change return type.
13345 * common/linux-btrace.h (linux_read_btrace): Change parameters
13346 and return type to allow error reporting. Update users.
13347 (linux_disable_btrace): Change return type. Update users.
13348 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
13349 New.
13350 (btrace_error): New.
13351 (btrace_block) <begin>: Comment on BEGIN == 0.
13352 * btrace.c (btrace_compute_ftrace): Start from the end of
13353 the current trace.
13354 (btrace_stitch_trace, btrace_clear_history): New.
13355 (btrace_fetch): Read delta trace, return if replaying.
13356 (btrace_clear): Move clear history code to btrace_clear_history.
13357 (parse_xml_btrace): Throw an error if parsing failed.
13358 * target.h (struct target_ops) <to_read_btrace>: Change parameters
13359 and return type to allow error reporting.
13360 (target_read_btrace): Change parameters and return type to allow
13361 error reporting.
13362 * target.c (target_read_btrace): Update.
13363 * remote.c (remote_read_btrace): Support delta reads. Pass
13364 errors on.
13365 * NEWS: Announce it.
13366
0b722aec
MM
133672014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13368
13369 * record.h (record_btrace_frame_unwind)
13370 (record_btrace_tailcall_frame_unwind): New declarations.
13371 * dwarf2-frame: Include record.h
13372 (dwarf2_frame_cfa): Throw an error for btrace frames.
13373 * record-btrace.c: Include hashtab.h.
13374 (btrace_get_bfun_name): New.
13375 (btrace_call_history): Call btrace_get_bfun_name.
13376 (struct btrace_frame_cache): New.
13377 (bfcache): New.
13378 (bfcache_hash, bfcache_eq, bfcache_new): New.
13379 (btrace_get_frame_function): New.
13380 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
13381 (record_btrace_frame_this_id): Compute own id.
13382 (record_btrace_frame_prev_register): Provide PC, throw_error
13383 for all other registers.
13384 (record_btrace_frame_sniffer): Detect btrace frames.
13385 (record_btrace_tailcall_frame_sniffer): New.
13386 (record_btrace_frame_dealloc_cache): New.
13387 (record_btrace_frame_unwind): Add new functions.
13388 (record_btrace_tailcall_frame_unwind): New.
13389 (_initialize_record_btrace): Allocate cache.
13390 * btrace.c (btrace_clear): Call reinit_frame_cache.
13391 * NEWS: Announce it.
13392
066ce621
MM
133932014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13394
13395 * record-btrace.c (record_btrace_set_replay)
13396 (record_btrace_goto_begin, record_btrace_goto_end)
13397 (record_btrace_goto): New.
13398 (init_record_btrace_ops): Initialize them.
13399 * NEWS: Announce it.
13400
e2887aa3
MM
134012014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13402
13403 * record-btrace.c (record_btrace_find_new_threads)
13404 (record_btrace_thread_alive): New.
13405 (init_record_btrace_ops): Initialize to_find_new_threads and
13406 to_thread_alive.
13407
b2f4cfde
MM
134082014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13409
13410 * record-btrace.c (record_btrace_resume): New.
13411 (record_btrace_wait): New.
13412 (init_record_btrace_ops): Initialize to_wait and to_resume.
13413
633785ff
MM
134142014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13415
13416 * record-btrace.c (record_btrace_xfer_partial)
13417 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
13418 (record_btrace_allow_memory_access): New.
13419 (init_record_btrace_ops): Initialize new methods.
13420 * target.c (raw_memory_xfer_partial): Bail out if target reports
13421 that this memory is not available.
13422
3db08215
MM
134232014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13424
13425 * target.h (target_ops) <to_insert_breakpoint>
13426 <to_remove_breakpoint>: Add target_ops parameter.
13427 (forward_target_insert_breakpoint): New.
13428 (forward_target_remove_breakpoint): New.
13429 (memory_remove_breakpoint, memory_insert_breakpoint):
13430 Add target_ops parameter.
13431 * target.c (target_insert_breakpoint): Split into this and ...
13432 (forward_target_insert_breakpoint): ... this.
13433 (target_remove_breakpoint): Split into this and ...
13434 (forward_target_remove_breakpoint): ... this.
13435 (debug_to_insert_breakpoint): Add target_ops parameter.
13436 Call forward_target_insert_breakpoint.
13437 (debug_to_remove_breakpoint): Add target_ops parameter.
13438 Call forward_target_remove_breakpoint.
13439 (update_current_target): Do not inherit or default to_insert_breakpoint
13440 and to_remove_breakpoint.
13441 * corelow.c (ignore): Add target_ops parameter.
13442 * exec.c (ignore): Add target_ops parameter.
13443 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
13444 Add target_ops parameter.
13445 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
13446 Add target_ops parameter.
13447 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
13448 Add target_ops parameter.
13449 * record-full.c (record_full_beneath_to_insert_breakpoint)
13450 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
13451 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
13452 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
13453 (record_full_core_remove_breakpoint): Add target_ops parameter.
13454 Update users.
13455 (record_full_beneath_to_insert_breakpoint_ops)
13456 (record_full_beneath_to_remove_breakpoint_ops)
13457 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
13458 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
13459 tmp_to_remove_breakpoint_ops,
13460 record_full_beneath_to_insert_breakpoint_ops, and
13461 record_full_beneath_to_remove_breakpoint_ops.
13462 * remote-m32r-sdi.c (m32r_insert_breakpoint)
13463 (m32r_remove_breakpoint): Add target_ops parameter.
13464 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
13465 Add target_ops parameter.
13466 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
13467 Add target_ops parameter.
13468
cecac1ab
MM
134692014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13470 Markus Metzger <markus.t.metzger@intel.com>
13471
13472 * record-btrace.c: Include frame-unwind.h.
13473 (record_btrace_frame_unwind_stop_reason)
13474 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
13475 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
13476 New.
13477 (init_record_btrace_ops): Install it.
13478
824344ca
MM
134792014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13480
13481 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
13482 get_prev_frame_1.
13483
32261e52
MM
134842014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13485
13486 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
13487 earlier.
13488
ea001bdc
MM
134892014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13490
13491 * frame-unwind.c: Include target.h.
13492 (frame_unwind_try_unwinder): New function with code from ...
13493 (frame_unwind_find_by_frame): ... here. New variable
13494 unwinder_from_target, call also target_get_unwinder)
13495 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
13496 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
13497 * target.h (struct target_ops): New fields to_get_unwinder and
13498 to_get_tailcall_unwinder.
13499 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
13500
1f3ef581
MM
135012014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13502
13503 * record-btrace.c (record_btrace_fetch_registers)
13504 (record_btrace_store_registers)
13505 (record_btrace_to_prepare_to_store): New.
13506 (init_record_btrace_ops): Add the above.
13507
f32dbf8c
MM
135082014-01-16 Tom Tromey <tromey@redhat.com>
13509
13510 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
13511 * target.h (struct target_ops) <to_prepare_to_store>: Add
13512 argument.
13513 (target_prepare_to_store): Add argument.
13514 * target.c (debug_to_prepare_to_store): Add argument.
13515 (update_current_target): Update.
13516 * remote.c (remote_prepare_to_store): Add 'self' argument.
13517 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
13518 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
13519 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
13520 * record-full.c (record_full_core_prepare_to_store): Add 'self'
13521 argument.
13522 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
13523 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
13524 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
13525 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
13526 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
13527
07bbe694
MM
135282014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13529
13530 * btrace.h (replay) <replay>: New.
13531 (btrace_is_replaying): New.
13532 * btrace.c (btrace_clear): Free replay iterator.
13533 (btrace_is_replaying): New.
13534 * record-btrace.c (record_btrace_is_replaying): New.
13535 (record_btrace_info): Print insn number if replaying.
13536 (record_btrace_insn_history): Start at replay position.
13537 (record_btrace_call_history): Start at replay position.
13538 (init_record_btrace_ops): Init to_record_is_replaying.
13539
0688d04e
MM
135402014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13541
13542 * record-btrace.c (record_btrace_insn_history_range): Include
13543 end.
13544 (record_btrace_insn_history_from): Adjust range.
13545 (record_btrace_call_history_range): Include
13546 end.
13547 (record_btrace_call_history_from): Adjust range.
13548 * NEWS: Announce changes.
13549
8710b709
MM
135502014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13551
13552 * record.h (enum record_print_flag)
13553 <record_print_indent_calls>: New.
13554 * record.c (get_call_history_modifiers): Recognize /c modifier.
13555 (_initialize_record): Document /c modifier.
13556 * record-btrace.c (btrace_call_history): Add btinfo parameter.
13557 Reorder fields. Optionally indent the function name. Update
13558 all users.
13559 * NEWS: Announce changes.
13560
d0fa7535
MM
135612014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13562
13563 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
13564
5de9129b
MM
135652014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13566
13567 * btrace.c (ftrace_new_function): Start counting at one.
13568 * record-btrace.c (record_btrace_info): Adjust number of calls
13569 and insns.
13570 * NEWS: Announce it.
13571
7acbe133
MM
135722014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13573
13574 * record-btrace.c (btrace_call_history_insn_range): Print
13575 insn range as [begin, end].
13576
23a7fe75
MM
135772014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13578
13579 * btrace.h (struct btrace_func_link): New.
13580 (enum btrace_function_flag): New.
13581 (struct btrace_inst): Rename to ...
13582 (struct btrace_insn): ...this. Update all users.
13583 (struct btrace_func) <ibegin, iend>: Remove.
13584 (struct btrace_func_link): New.
13585 (struct btrace_func): Rename to ...
13586 (struct btrace_function): ...this. Update all users.
13587 (struct btrace_function) <segment, flow, up, insn, insn_offset)
13588 (number, level, flags>: New.
13589 (struct btrace_insn_iterator): Rename to ...
13590 (struct btrace_insn_history): ...this.
13591 Update all users.
13592 (struct btrace_insn_iterator, btrace_call_iterator): New.
13593 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
13594 (struct btrace_target_info) <begin, end, level>
13595 <insn_history, call_history>: New.
13596 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13597 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13598 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13599 (btrace_call_number, btrace_call_begin, btrace_call_end)
13600 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13601 (btrace_find_function_by_number, btrace_set_insn_history)
13602 (btrace_set_call_history): New.
13603 * btrace.c (btrace_init_insn_iterator)
13604 (btrace_init_func_iterator, compute_itrace): Remove.
13605 (ftrace_print_function_name, ftrace_print_filename)
13606 (ftrace_skip_file): Change
13607 parameter to const.
13608 (ftrace_init_func): Remove.
13609 (ftrace_debug): Use new btrace_function fields.
13610 (ftrace_function_switched): Also consider gaining and
13611 losing symbol information).
13612 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
13613 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
13614 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
13615 New.
13616 (ftrace_new_function): Move. Remove debug print.
13617 (ftrace_update_lines, ftrace_update_insns): New.
13618 (ftrace_update_function): Check for call, ret, and jump.
13619 (compute_ftrace): Renamed to ...
13620 (btrace_compute_ftrace): ...this. Rewritten to compute call
13621 stack.
13622 (btrace_fetch, btrace_clear): Updated.
13623 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13624 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13625 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13626 (btrace_call_number, btrace_call_begin, btrace_call_end)
13627 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13628 (btrace_find_function_by_number, btrace_set_insn_history)
13629 (btrace_set_call_history): New.
13630 * record-btrace.c (require_btrace): Use new btrace thread
13631 info fields.
13632 (record_btrace_info, btrace_insn_history)
13633 (record_btrace_insn_history, record_btrace_insn_history_range):
13634 Use new btrace thread info fields and new iterator.
13635 (btrace_func_history_src_line): Rename to ...
13636 (btrace_call_history_src_line): ...this. Use new btrace
13637 thread info fields.
13638 (btrace_func_history): Rename to ...
13639 (btrace_call_history): ...this. Use new btrace thread info
13640 fields and new iterator.
13641 (record_btrace_call_history, record_btrace_call_history_range):
13642 Use new btrace thread info fields and new iterator.
13643
8372a7cb
MM
136442014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13645
13646 * frame.h (frame_id_build_unavailable_stack_special): New.
13647 * frame.c (frame_id_build_unavailable_stack_special): New.
13648
c2170eef
MM
136492014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13650
13651 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
13652 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
13653 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
13654 to gdbarch.
13655 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
13656 (i386_insn_is_jump, i386_jmp_p): New.
13657 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
13658 insn_is_jump to gdbarch.
13659 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
13660 * gdbarch.h: Regenerated.
13661 * gdbarch.c: Regenerated.
13662 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
13663 (default_insn_is_jump): New.
13664 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
13665 (default_insn_is_jump): New.
13666
864089d2
MM
136672014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13668
13669 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
13670 Change to ...
13671 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
13672 (btrace_read_type) <btrace_read_new>: Change to ...
13673 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
13674
ed9edfb5
MM
136752014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13676
13677 * common/linux-btrace.c (linux_read_btrace): Free trace from
13678 previous iteration.
13679
fbcbc3fd
DE
136802014-01-15 Doug Evans <dje@google.com>
13681
13682 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
13683 uint32_t.
13684
3d548a53
TT
136852014-01-15 Tom Tromey <tromey@redhat.com>
13686
13687 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
13688 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
13689 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
13690 (set_objfile_main_name): New function.
13691 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
13692 language_of_main>: New fields.
13693 (set_objfile_main_name): Declare.
13694 * symtab.c (find_main_name): Loop over objfiles to find the main
13695 name and language.
13696 (set_main_name): Now static.
13697 (get_main_info): Add comment.
13698 * symtab.h (set_main_name): Don't declare.
13699
32ac0d11
TT
137002014-01-15 Tom Tromey <tromey@redhat.com>
13701
13702 * symtab.c (main_progspace_key): New global.
13703 (struct main_info): New.
13704 (name_of_main, language_of_main): Remove.
13705 (get_main_info, main_info_cleanup): New function.
13706 (set_main_name, main_name, main_language): Use get_main_info.
13707 (_initialize_symtab): Initialize main_progspace_key.
13708
9e6c82ad
TT
137092014-01-15 Tom Tromey <tromey@redhat.com>
13710
13711 * dbxread.c (process_one_symbol): Update.
13712 * dwarf2read.c (read_partial_die): Update.
13713 * symfile.c (set_initial_language): Call main_language.
13714 * symtab.c (language_of_main): Now static.
13715 (set_main_name): Add 'lang' parameter.
13716 (find_main_name): Update.
13717 (main_language): New function.
13718 (symtab_observer_executable_changed): Update.
13719 * symtab.h (set_main_name): Update.
13720 (language_of_main): Remove.
13721 (main_language): Declare.
13722
6ef55de7
TT
137232014-01-15 Tom Tromey <tromey@redhat.com>
13724
13725 * symfile.c (init_entry_point_info): Use new "initialized" field.
13726 Update.
13727 * objfiles.h (struct entry_point) <initialized>: New field.
13728 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
13729 (struct objfile) <ei>: ...here. Remove.
13730 * objfiles.c (entry_point_address_query): Update.
13731
53eddfa6
TT
137322014-01-15 Tom Tromey <tromey@redhat.com>
13733
13734 * objfiles.c (entry_point_address_query): Relocate entry point
13735 address.
13736 (objfile_relocate1): Do not relocate entry point address.
13737 * objfiles.h (struct entry_info) <entry_point>: Update comment.
13738 <the_bfd_section_index>: New field.
13739 * symfile.c (init_entry_point_info): Find the entry point's
13740 section.
13741
d56e56aa
TT
137422014-01-15 Tom Tromey <tromey@redhat.com>
13743
13744 * solib-frv.c (enable_break): Use entry_point_address_query.
13745
33a97bbe
OJ
137462014-01-15 Omair Javaid <omair.javaid@linaro.org>
13747
13748 * NEWS: Add note on improved process record-replay on
13749 arm*-linux* targets.
13750
c6ec2b30
OJ
137512014-01-15 Omair Javaid <omair.javaid@linaro.org>
13752
13753 * arm-tdep.c (enum arm_record_result): New enum.
13754 (arm_record_unsupported_insn): New function.
13755 (arm_record_coproc_data_proc): Removed.
13756 (thumb2_record_ld_st_multiple): New function.
13757 (thumb2_record_ld_st_dual_ex_tbb): New function.
13758 (thumb2_record_data_proc_sreg_mimm): New function.
13759 (thumb2_record_ps_dest_generic): New function.
13760 (thumb2_record_branch_misc_cntrl): New function.
13761 (thumb2_record_str_single_data): New function.
13762 (thumb2_record_ld_mem_hints): New function.
13763 (thumb2_record_ld_word): New function.
13764 (thumb2_record_lmul_lmla_div): New function.
13765 (thumb2_record_decode_insn_handler): New function.
13766 (decode_insn): Add thumb32 instruction handlers.
13767
97dfe206
OJ
137682014-01-15 Omair Javaid <omair.javaid@linaro.org>
13769
13770 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
13771 (struct arm_linux_record_tdep): Declare.
13772 (arm_canonicalize_syscall): New function.
13773 (arm_all_but_pc_registers_record): New function.
13774 (arm_linux_syscall_record): New function.
13775 (arm_linux_init_abi): Add syscall recording constructs.
13776 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
13777 decoding. (arm_record_coproc_data_proc): Update arm syscall
13778 decoding.
13779 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
13780 <arm_syscall_record>: New field.
13781 * configure.tgt (arm*-*-linux*): Add linux-record.o to
13782 gdb_target_obs.
13783
9904a494
OJ
137842014-01-15 Omair Javaid <omair.javaid@linaro.org>
13785
13786 * arm-tdep.c (thumb_record_misc): Update to use sp as base
13787 register for push instruction recording.
13788
f969241e
OJ
137892014-01-15 Omair Javaid <omair.javaid@linaro.org>
13790
13791 * arm-tdep.c (thumb_record_misc): Update to correct logical
13792 error while recording ldm, ldmia and pop instructions.
13793
bfbbec00
OJ
137942014-01-15 Omair Javaid <omair.javaid@linaro.org>
13795
13796 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
13797
e40adcc9
PA
137982014-01-15 Pedro Alves <palves@redhat.com>
13799
13800 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
13801 (go32_resume, go32_fetch_registers, store_register)
13802 (go32_store_registers, go32_prepare_to_store)
13803 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
13804 (go32_create_inferior, go32_can_run, go32_terminal_init)
13805 (go32_terminal_inferior, go32_terminal_ours): Delete forward
13806 declarations.
13807
b0a16e66
TT
138082014-01-15 Tom Tromey <tromey@redhat.com>
13809
13810 * target.h (async_callback_ftype): New typedef.
13811 (struct target_ops) <to_async>: Use it.
13812
bf7105a4
JB
138132014-01-15 Joel Brobecker <brobecker@adacore.com>
13814
13815 * python/py-value.c (get_field_type): Remove unnecessary curly
13816 braces for single-statement if block.
13817
a8f35c2e
JB
138182014-01-15 Joel Brobecker <brobecker@adacore.com>
13819
13820 * python/py-type.c (convert_field): Add missing empty line
13821 after declarations.
13822
bb4142cf
DE
138232014-01-14 Doug Evans <dje@google.com>
13824
13825 * symfile.h (expand_symtabs_matching): Renamed from
13826 expand_partial_symbol_names. Update prototype.
13827 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
13828 * symfile.c (expand_symtabs_matching): Renamed from
13829 expand_partial_symbol_names. New args file_matcher, kind.
13830 Rename arg fun to symbol_matcher.
13831 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
13832 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
13833 ada_expand_partial_symbol_name.
13834 (ada_make_symbol_completion_list): Update to call
13835 expand_symtabs_matching.
13836 (ada_add_global_exceptions): Call expand_symtabs_matching.
13837 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
13838 call map_symbol_filenames.
13839 * symtab.c (sources_info): Update to call map_symbol_filenames.
13840 (search_symbols): Call expand_symtabs_matching.
13841 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
13842 (default_make_symbol_completion_list_break_on): Update to call
13843 expand_symtabs_matching.
13844 (make_source_files_completion_list): Update to call
13845 map_symbol_filenames.
13846
206f2a57
DE
138472014-01-14 Doug Evans <dje@google.com>
13848
13849 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
13850 (expand_symtabs_symbol_matcher_ftype): New typedef.
13851 (quick_symbol_functions.expand_symtabs_matching): Update to use.
13852 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13853 * symfile.c (expand_partial_symbol_names): Update to use
13854 expand_symtabs_symbol_matcher_ftype.
13855 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
13856 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13857 Arg name_matcher renamed to symbol_matcher.
13858 * psymtab.c (recursively_search_psymtabs): Update to use
13859 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
13860 sym_matcher.
13861 (expand_symtabs_matching_via_partial): Update to use
13862 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13863 Arg name_matcher renamed to symbol_matcher.
13864
540c2971
DE
138652014-01-14 Doug Evans <dje@google.com>
13866
13867 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
13868 (map_partial_symbol_filenames): Ditto.
13869 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
13870 (map_partial_symbol_filenames): Ditto.
13871 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
13872 (map_partial_symbol_filenames): Ditto.
13873 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
13874 (map_partial_symbol_filenames): Ditto.
13875 * symtab.c: Delete #include "psymtab.h".
13876
8213266a
PA
138772014-01-14 Pedro Alves <palves@redhat.com>
13878 Tom Tromey <tromey@redhat.com>
13879
13880 * infrun.c (use_displaced_stepping): Use find_record_target
13881 instead of RECORD_IS_USED.
13882 (adjust_pc_after_break): Use record_full_is_used instead of
13883 RECORD_IS_USED.
13884 * record-btrace.c (record_btrace_open): Call record_preopen
13885 instead of checking RECORD_IS_USED.
13886 * record-full.c (record_full_shortname)
13887 (record_full_core_shortname): New globals.
13888 (record_full_is_used): New function.
13889 (find_full_open): Call record_preopen instead of checking
13890 RECORD_IS_USED.
13891 (init_record_full_ops): Set the target's shortname to
13892 record_full_shortname.
13893 (init_record_full_core_ops): Set the target's shortname to
13894 record_full_core_shortname.
13895 * record-full.h (record_full_is_used): Declare.
13896 * record.c (find_record_target): Make extern.
13897 (record_preopen): New function.
13898 * record.h (RECORD_IS_USED): Delete macro.
13899 (find_record_target, record_preopen): Declare functions.
13900
7ec1862d
YQ
139012014-01-14 Yao Qi <yao@codesourcery.com>
13902
13903 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
13904 'len''s type to ULONGEST.
13905 (core_xfer_shared_libraries_aix): Likewise.
13906 * gdbarch.c, gdbarch.h: Regenerated.
13907 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
13908 Change type of 'len' to ULONGEST.
13909 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13910 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
13911
dea80a27
YQ
139122014-01-14 Yao Qi <yao@codesourcery.com>
13913
13914 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
13915 type of 'len' to ULONGEST.
13916 (linux_xfer_osdata_processgroups): Likewise.
13917 (linux_xfer_osdata_threads): Likewise.
13918 (linux_xfer_osdata_fds): Likewise.
13919 (linux_xfer_osdata_isockets): Likewise.
13920 (linux_xfer_osdata_shm): Likewise.
13921 (linux_xfer_osdata_sem): Likewise.
13922 (linux_xfer_osdata_msg): Likewise.
13923 (linux_common_xfer_osdata): Likewise.
13924 (struct osdata_type) <getter>: Likewise.
13925 * common/linux-osdata.h (linux_common_xfer_osdata): Update
13926 the declaration.
13927
b55e14c7
YQ
139282014-01-14 Yao Qi <yao@codesourcery.com>
13929
13930 * target.h (target_xfer_partial_ftype): Update.
13931 (struct target_ops) <to_xfer_partial>: Change 'len' type to
13932 ULONGEST.
13933 * aix-thread.c (aix_thread_xfer_partial): Change type of
13934 argument 'len' to ULONGEST.
13935 * auxv.c (procfs_xfer_auxv): Likewise.
13936 (ld_so_xfer_auxv): Likewise.
13937 (memory_xfer_auxv): Likewise.
13938 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13939 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13940 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
13941 * corelow.c (core_xfer_partial): Likewise.
13942 * ctf.c (ctf_xfer_partial): Likewise.
13943 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
13944 '%u'.
13945 (darwin_read_dyld_info): Likewise.
13946 (darwin_xfer_partial): Likewise.
13947 * exec.c (section_table_xfer_memory_partial): Likewise.
13948 (exec_xfer_partial): Likewise.
13949 * exec.h (section_table_xfer_memory_partial): Update
13950 declaration.
13951 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
13952 instead of plongest.
13953 (gnu_xfer_partial): Likewise.
13954 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
13955 (ia64_hpux_xfer_solib_got): Likewise.
13956 (ia64_hpux_xfer_partial): Likewise.
13957 * ia64-linux-nat.c (ia64_linux_xfer_partial):
13958 * inf-ptrace.c (inf_ptrace_xfer_partial):
13959 * inf-ttrace.c (inf_ttrace_xfer_partial):
13960 * linux-nat.c (linux_xfer_siginfo): Likewise.
13961 (linux_nat_xfer_partial): Likewise.
13962 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
13963 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
13964 * monitor.c (monitor_xfer_memory): Likewise.
13965 (monitor_xfer_partial): Likewise.
13966 * procfs.c (procfs_xfer_partial): Likewise.
13967 * record-full.c (record_full_xfer_partial): Likewise.
13968 (record_full_core_xfer_partial): Likewise.
13969 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
13970 instead of plongest.
13971 (gdbsim_xfer_partial): Likewise.
13972 * remote.c (remote_xfer_partial): Likewise.
13973 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13974 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
13975 declaration.
13976 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13977 (rs6000_xfer_shared_libraries): Likewise.
13978 * sol-thread.c (sol_thread_xfer_partial): Likewise.
13979 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13980 (sparc_xfer_partial): Likewise.
13981 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13982 (spu_xfer_partial): Likewise.
13983 * spu-multiarch.c (spu_xfer_partial): Likewise.
13984 * target.c (target_read_live_memory): Likewise.
13985 (memory_xfer_live_readonly_partial): Likewise.
13986 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
13987 (target_xfer_partial, default_xfer_partial): Likewise.
13988 (current_xfer_partial): Likewise.
13989 * tracepoint.c (tfile_xfer_partial): Likewise.
13990 * windows-nat.c (windows_xfer_memory): Likewise. Call
13991 pulongest instead of plongest.
13992 (windows_xfer_partial): Likewise.
13993 (windows_xfer_shared_libraries): Likewise.
13994
05804640
YQ
139952014-01-14 Yao Qi <yao@codesourcery.com>
13996
13997 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
13998 target_xfer_partial_ftype.
13999
b5b08fb4
SC
140002014-01-13 Siva Chandra Reddy <sivachandra@google.com>
14001
14002 PR python/15464
14003 PR python/16113
14004 * valops.c (value_struct_elt_bitpos): New function
14005 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
14006 object to 'None' if the field name is an empty string ("").
14007 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
14008 attribute to look for a field when 'name' is 'None'.
14009 (get_field_type): New function
14010
13aaf454
DE
140112014-01-13 Doug Evans <dje@google.com>
14012
14013 PR symtab/16426
14014 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
14015 (try_open_dwop_file): Ditto.
14016 * gdb_bfd.c: #include "vec.h".
14017 (bfdp): New typedef.
14018 (struct gdb_bfd_data): New member included_bfds.
14019 (gdb_bfd_unref): Unref all included bfds.
14020 (gdb_bfd_record_inclusion): New function.
14021 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
14022
c2cec97c
TT
140232014-01-13 Tom Tromey <tromey@redhat.com>
14024
14025 * gdbcore.h (deprecated_core_resize_section_table): Remove.
14026
78e5999d
TT
140272014-01-13 Tom Tromey <tromey@redhat.com>
14028
14029 * defs.h (use_windows): Remove.
14030 * gdb.c (main): Update.
14031 * main.c (captured_main, gdb_main): Update.
14032 * main.h (struct captured_main_args) <use_windows>: Remove.
14033 * top.c (use_windows): Remove.
14034
f2052bbe
TT
140352014-01-13 Tom Tromey <tromey@redhat.com>
14036
14037 * defs.h (deprecated_flush_hook): Remove.
14038
fde4f8ed
JK
140392014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
14040
14041 PR threads/16216
14042 * linux-thread-db.c (try_thread_db_load): Add parameter
14043 check_auto_load_safe. Move here the file_is_auto_load_safe call.
14044 (try_thread_db_load_from_pdir_1): Move it there from here.
14045 (try_thread_db_load_from_sdir): Update caller.
14046 (try_thread_db_load_from_dir): Move it there from here.
14047
bdf61915
PP
140482014-01-13 Patrick Palka <patrick@parcs.ath.cx>
14049
14050 * regformats/regdat.sh: Always rewrite the register file.
14051
f71e1a8d
PA
140522014-01-13 Pedro Alves <palves@redhat.com>
14053
14054 * Makefile.in (CHECK_HEADERS): New variable.
14055 (check-headers:): New rule.
14056
42c85435
TT
140572014-01-13 Tom Tromey <tromey@redhat.com>
14058
14059 * cli/cli-setshow.c (do_set_command): Update.
14060 * defs.h (deprecated_set_hook): Remove.
14061 * top.c (deprecated_set_hook): Remove.
14062
f8de5129
PA
140632014-01-13 Pedro Alves <palves@redhat.com>
14064
14065 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
14066 the tracepoint if the PC is a pseudo-register.
14067
fc270c35
TT
140682014-01-13 Tom Tromey <tromey@redhat.com>
14069
14070 * defs.h (XCALLOC): Remove.
14071 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
14072 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
14073 * dwarf2loc.c (allocate_piece_closure): Likewise.
14074 * elfread.c (elf_symfile_segments): Likewise.
14075 (elf_symfile_segments): Likewise.
14076 * gdbtypes.c (copy_type_recursive): Likewise.
14077 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
14078 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
14079 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
14080 XCALLOC.
14081 * mt-tdep.c (mt_gdbarch_init): Likewise.
14082 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
14083 XCALLOC.
14084 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
14085 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
14086 * registry.c (registry_alloc_data): Likewise.
14087 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
14088 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
14089 * serial.c (serial_fdopen_ops): Likewise.
14090 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
14091 XCALLOC.
14092 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
14093 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
14094 not XCALLOC.
14095
70ba0933
TT
140962014-01-13 Tom Tromey <tromey@redhat.com>
14097
14098 * defs.h (XMALLOC): Remove.
14099 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
14100 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
14101 * cli-out.c (struct ui_out *): Likewise.
14102 * cli/cli-dump.c (add_dump_command): Likewise.
14103 (add_dump_command): Likewise.
14104 * complaints.c (get_complaints): Likewise.
14105 (find_complaint): Likewise.
14106 * dwarf2-frame.c (execute_cfa_program): Likewise.
14107 * dwarf2read.c (abbrev_table_read_table): Likewise.
14108 * gdbarch.sh: Likewise.
14109 * gdbarch.c: Rebuild.
14110 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
14111 * interps.c (interp_new): Likewise.
14112 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
14113 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
14114 * mi/mi-console.c (mi_console_file_new): Likewise.
14115 * mi/mi-interp.c (mi_interpreter_init): Likewise.
14116 * mi/mi-out.c (mi_out_new): Likewise.
14117 * mi/mi-parse.c (mi_parse): Likewise.
14118 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
14119 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
14120 * observer.c (xalloc_observer_list_node): Likewise.
14121 * regcache.c (regcache_xmalloc_1): Likewise.
14122 * reggroups.c (reggroup_new): Likewise.
14123 (_initialize_reggroup): Likewise.
14124 * registry.c (register_data_with_cleanup): Likewise.
14125 * remote.c (remote_notif_stop_alloc_reply): Likewise.
14126 * ser-base.c (serial_ttystate): Likewise.
14127 * ser-mingw.c (make_pipe_state): Likewise.
14128 * ser-pipe.c (pipe_open): Likewise.
14129 * serial.c (serial_open): Likewise.
14130 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
14131 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
14132 (tui_alloc_win_info): Likewise.
14133 (tui_add_content_elements): Likewise.
14134 * tui/tui-file.c (tui_file_new): Likewise.
14135 * tui/tui-out.c (tui_out_new): Likewise.
14136 * ui-file.c (mem_file_new): Likewise.
14137 * ui-out.c (push_level): Likewise.
14138 (make_cleanup_ui_out_end): Likewise.
14139 (append_header_to_list): Likewise.
14140 (ui_out_new): Likewise.
14141 * user-regs.c (user_reg_add_builtin): Likewise.
14142
41bf6aca
TT
141432014-01-13 Tom Tromey <tromey@redhat.com>
14144
14145 * defs.h (XZALLOC): Remove.
14146 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
14147 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
14148 (get_ada_tasks_inferior_data): Likewise.
14149 * auto-load.c (get_auto_load_pspace_data): Likewise.
14150 * auxv.c (get_auxv_inferior_data): Likewise.
14151 * bfd-target.c (target_bfd_reopen): Likewise.
14152 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
14153 (deprecated_insert_raw_breakpoint): Likewise.
14154 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
14155 * corelow.c (core_open): Likewise.
14156 * darwin-nat.c (darwin_check_new_threads): Likewise.
14157 (darwin_attach_pid): Likewise.
14158 * dummy-frame.c (dummy_frame_push): Likewise.
14159 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
14160 * dwarf2loc.c (allocate_piece_closure): Likewise.
14161 * elfread.c (elf_symfile_segments): Likewise.
14162 * eval.c (ptrmath_type_p): Likewise.
14163 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
14164 * gdbtypes.c (alloc_type_arch): Likewise.
14165 (alloc_type_instance): Likewise.
14166 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
14167 * inf-child.c (inf_child_can_use_agent): Likewise.
14168 * inflow.c (get_inflow_inferior_data): Likewise.
14169 * infrun.c (save_infcall_suspend_state): Likewise.
14170 * jit.c (jit_reader_load): Likewise.
14171 (get_jit_objfile_data): Likewise.
14172 (get_jit_program_space_data): Likewise.
14173 (jit_object_open_impl): Likewise.
14174 (jit_symtab_open_impl): Likewise.
14175 (jit_block_open_impl): Likewise.
14176 (jit_frame_sniffer): Likewise.
14177 * linux-fork.c (add_fork): Likewise.
14178 * maint.c (make_command_stats_cleanup): Likewise.
14179 * objfiles.c (get_objfile_pspace_data): Likewise.
14180 * opencl-lang.c (struct lval_closure): Likewise.
14181 * osdata.c (osdata_start_osdata): Likewise.
14182 * progspace.c (new_address_space): Likewise.
14183 (add_program_space): Likewise.
14184 * remote-sim.c (get_sim_inferior_data): Likewise.
14185 * sh-tdep.c (sh_gdbarch_init): Likewise.
14186 * skip.c (Ignore): Likewise.
14187 (skip_delete_command): Likewise.
14188 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
14189 (library_list_start_library): Likewise.
14190 (solib_aix_current_sos): Likewise.
14191 * solib-darwin.c (get_darwin_info): Likewise.
14192 (darwin_current_sos): Likewise.
14193 * solib-dsbt.c (get_dsbt_info): Likewise.
14194 * solib-ia64-hpux.c (new_so_list): Likewise.
14195 (ia64_hpux_get_solib_linkage_addr): Likewise.
14196 * solib-spu.c (append_ocl_sos): Likewise.
14197 (spu_current_sos): Likewise.
14198 * solib-svr4.c (get_svr4_info): Likewise.
14199 (svr4_keep_data_in_core): Likewise.
14200 (library_list_start_library): Likewise.
14201 (svr4_default_sos): Likewise.
14202 (svr4_read_so_list): Likewise.
14203 * solib-target.c (library_list_start_library): Likewise.
14204 (solib_target_current_sos): Likewise.
14205 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
14206 * symfile-debug.c (install_symfile_debug_logging): Likewise.
14207 * symfile.c (default_symfile_segments): Likewise.
14208 * target-descriptions.c (tdesc_data_init): Likewise.
14209 (tdesc_create_reg): Likewise.
14210 (struct tdesc_type *): Likewise.
14211 (tdesc_create_vector): Likewise.
14212 (tdesc_set_struct_size): Likewise.
14213 (struct tdesc_type *): Likewise.
14214 (tdesc_free_feature): Likewise.
14215 (tdesc_create_feature): Likewise.
14216 * windows-nat.c (windows_add_thread): Likewise.
14217 (windows_make_so): Likewise.
14218 * xml-support.c (gdb_xml_body_text): Likewise.
14219 (gdb_xml_create_parser_and_cleanup): Likewise.
14220 (xml_process_xincludes): Likewise.
14221 * xml-syscall.c (allocate_syscalls_info): Likewise.
14222 (syscall_create_syscall_desc): Likewise.
14223
5acfdbae
SDJ
142242014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
14225
14226 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
14227 function, with code from i386_stap_parse_special_token.
14228 (i386_stap_parse_special_token_three_arg_disp): Likewise.
14229 (i386_stap_parse_special_token): Move code to the two functions
14230 above; simplify it.
14231
0000e5cc
PA
142322014-01-09 Pedro Alves <palves@redhat.com>
14233 Hui Zhu <hui@codesourcery.com>
14234
14235 PR gdb/16101
14236 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
14237 bp_err_string. Don't mark the location shlib_disabled if the
14238 error thrown wasn't a generic or memory error. Catch errors
14239 thrown while inserting breakpoints in overlayed code. Output
14240 error message of software breakpoints.
14241 * remote.c (remote_insert_breakpoint): If this breakpoint has
14242 target-side commands but this stub doesn't support Z0 packets,
14243 throw NOT_SUPPORTED_ERROR error.
14244 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
14245 * target.h (target_insert_breakpoint): Extend comment.
14246 (target_insert_hw_breakpoint): Add comment.
14247
b7ea362b
PA
142482014-01-08 Pedro Alves <palves@redhat.com>
14249
14250 * remote.c (remote_add_thread): Add threads silently if starting
14251 up.
14252 (remote_notice_new_inferior): If in all-stop, and starting up,
14253 don't call notice_new_inferior.
14254 (get_current_thread): New function, factored out from ...
14255 (add_current_inferior_and_thread): ... this. Adjust.
14256 (remote_start_remote) <all-stop>: Fetch the thread list. If we
14257 found any thread, then select the remote's current thread as GDB's
14258 current thread too.
14259
b7bba001
JB
142602014-01-08 Joel Brobecker <brobecker@adacore.com>
14261
14262 * NEWS: Create a new section for the next release branch.
14263 Rename the section of the current branch, now that it has
14264 been cut.
14265
16dfbded
JB
142662014-01-08 Joel Brobecker <brobecker@adacore.com>
14267
14268 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
14269 * version.in: Bump version to 7.7.50.DATE-cvs.
14270
22c90ac1
YQ
142712014-01-08 Yao Qi <yao@codesourcery.com>
14272
14273 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
14274 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
14275 (spu_xfer_partial): Cast 'buf' to 'const char *'.
14276
d64ad97c
YQ
142772014-01-08 Yao Qi <yao@codesourcery.com>
14278
14279 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
14280 return value of bfd_get_filename to symbol_file_add_from_bfd.
14281
f93ba80c
PM
142822014-01-08 Pierre Muller <muller@sourceware.org>
14283
14284 Fix PR16201.
14285 * coff-pe-read.c (struct read_pe_section_data): Add index field.
14286 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
14287 to prim_record_mininal_symbol_and_info.
14288 (add_pe_forwarded_sym): Use known section number of forwarded symbol
14289 in call to prim_record_minimal_symbol_and_info.
14290 (read_pe_exported_syms): Set index field of section_data.
14291
a4d9ba85
AP
142922014-01-07 Andrew Pinski <apinski@cavium.com>
14293
14294 * features/aarch64-core.xml (cpsr): Change to be 64bit.
14295 * features/aarch64.c: Regenerate.
14296
1b67eb02
AS
142972014-01-07 Andreas Schwab <schwab@linux-m68k.org>
14298
14299 * target.c (return_null): Define.
14300 (update_current_target): Use it instead of return_zero for
14301 functions that return a pointer.
14302
5e3f4fab
EBM
143032014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
14304
14305 * source.c (add_path): Fix check for duplicated paths in the previously
14306 included paths.
14307
e2616788
HK
143082014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
14309
14310 * ada-lang.c: Remove duplicated include statements.
14311 * alphabsd-nat.c: Ditto.
14312 * amd64-darwin-tdep.c: Ditto.
14313 * amd64fbsd-nat.c: Ditto.
14314 * auto-load.c: Ditto.
14315 * ax-gdb.c: Ditto.
14316 * breakpoint.c: Ditto.
14317 * dbxread.c: Ditto.
14318 * fork-child.c: Ditto.
14319 * gdb_usleep.c: Ditto.
14320 * i386-darwin-tdep.c: Ditto.
14321 * i386fbsd-nat.c: Ditto.
14322 * infcmd.c: Ditto.
14323 * inferior.c: Ditto.
14324 * jv-lang.c: Ditto.
14325 * linux-nat.c: Ditto.
14326 * linux-tdep.c: Ditto.
14327 * m68kbsd-nat.c: Ditto.
14328 * m68klinux-nat.c: Ditto.
14329 * microblaze-tdep.c: Ditto.
14330 * mips-linux-tdep.c: Ditto.
14331 * mn10300-tdep.c: Ditto.
14332 * nto-tdep.c: Ditto.
14333 * opencl-lang.c: Ditto.
14334 * osdata.c: Ditto.
14335 * printcmd.c: Ditto.
14336 * regcache.c: Ditto.
14337 * remote-m32r-sdi.c: Ditto.
14338 * remote.c: Ditto.
14339 * symfile.c: Ditto.
14340 * symtab.c: Ditto.
14341 * tilegx-linux-nat.c: Ditto.
14342 * tilegx-tdep.c: Ditto.
14343 * tracepoint.c: Ditto.
14344 * valops.c: Ditto.
14345 * vaxbsd-nat.c: Ditto.
14346 * windows-nat.c: Ditto.
14347 * xtensa-tdep.c: Ditto.
14348
bd1f7788
YQ
143492014-01-07 Yao Qi <yao@codesourcery.com>
14350
14351 * spu-linux-nat.c (_initialize_spu_nat): Declare.
14352
79301218
JB
143532014-01-07 Yao Qi <yao@codesourcery.com>
14354 Joel Brobecker <brobecker@adacore.com>
14355
14356 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
14357 (pdc_write_regs): Likewise.
14358 (fetch_regs_kernel_thread): Likewise.
14359 (store_regs_kernel_thread): Likewise.
14360
143612014-01-07 Joel Brobecker <brobecker@adacore.com>
14362
14363 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
14364 tagged type objects to their actual type.
14365
8e355c5d
JB
143662014-01-07 Joel Brobecker <brobecker@adacore.com>
14367
14368 * ada-valprint.c (print_field_values): Add "language" parameter.
14369 Update calls to print_field_values and print_variant_part.
14370 Pass new parameter "language" in call to val_print instead
14371 of "current_language". Replace call to ada_val_print by call
14372 to val_print.
14373 (print_variant_part): Add "language" parameter.
14374 (ada_val_print_struct_union): Update call to print_field_values.
14375
4fbf5aa5
JB
143762014-01-07 Joel Brobecker <brobecker@adacore.com>
14377
14378 * ada-valprint.c (ui_memcpy): Delete.
14379 (ada_print_floating): Update documentation. Add empty line
14380 between between function documentation and implementation.
14381 Delete variable "buffer". Use ui_file_xstrdup in place of
14382 ui_file_put. Minor adjustments following this change.
14383
71855601
JB
143842014-01-07 Joel Brobecker <brobecker@adacore.com>
14385
14386 * ada-valprint.c (ada_val_print_string): New function,
14387 extracted from ada_val_print_array.
14388 (ada_val_print_array): Replace extracted code by call
14389 to ada_val_print_string followed by a return. Move
14390 "else" branch to the function's top block.
14391
4eb27a30
JB
143922014-01-07 Joel Brobecker <brobecker@adacore.com>
14393
14394 * ada-valprint.c (ada_val_print_array): Move implementation
14395 down. Rename parameter "offset" and "val" into "offset_aligned"
14396 and "original_value" respectively. Add parameter "offset".
14397
34b27950
JB
143982014-01-07 Joel Brobecker <brobecker@adacore.com>
14399
14400 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
14401 re-organizing the code. Change the "???" message printed
14402 when target type is a TYPE_CODE_UNDEF into
14403 "<ref to undefined type>".
14404
079e4591
JB
144052014-01-07 Joel Brobecker <brobecker@adacore.com>
14406
14407 * ada-valprint.c (print_record): Delete, implementation inlined...
14408 (ada_val_print_struct_union): ... here. Remove call to
14409 ada_check_typedef in inlined implementation.
14410
8004dfd1
JB
144112014-01-07 Joel Brobecker <brobecker@adacore.com>
14412
14413 * ada-valprint.c (ada_val_print_gnat_array): New function,
14414 extracted from ada_val_print_1;
14415 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
14416 (ada_val_print_flt, ada_val_print_struct_union)
14417 (ada_val_print_ref): Likewise.
14418 (ada_val_print_1): Delete variables i and elttype.
14419 Replace extracted-out code by call to corresponding
14420 new functions.
14421
760a2db0
JB
144222014-01-07 Joel Brobecker <brobecker@adacore.com>
14423
14424 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
14425
3a92c861
JB
144262014-01-07 Joel Brobecker <brobecker@adacore.com>
14427
14428 * ada-valprint.c (ada_val_print_1): Replace calls to
14429 ada_val_print_1 by calls to val_print.
14430
cd1630f9
JB
144312014-01-07 Joel Brobecker <brobecker@adacore.com>
14432
14433 * ada-valprint.c (ada_val_print_1): Add parameter "language".
14434 Update calls to self accordingly. Replace calls to c_val_print
14435 by calls to val_print.
14436
bdf779a0
JB
144372014-01-07 Joel Brobecker <brobecker@adacore.com>
14438
14439 * ada-valprint.c (print_record): Delete declaration.
14440 (adjust_type_signedness, ada_val_print_1): Likewise.
14441 (ada_val_print): Move function implementation down.
14442 (print_variant_part, print_field_values, print_record):
14443 Move function implementation up.
14444
c0d48811
JB
144452014-01-07 Joel Brobecker <brobecker@adacore.com>
14446
14447 * python/py-type.c (typy_get_name): New function.
14448 (type_object_getset): Add entry for attribute "name".
14449 * NEWS: Add entry mentioning this new attribute.
14450
c26e9cbb
YQ
144512014-01-07 Yao Qi <yao@codesourcery.com>
14452
14453 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
14454 statement.
14455
0cc6f43d
YQ
144562014-01-07 Yao Qi <yao@codesourcery.com>
14457
14458 * gnu-nat.c (info_port_rights): Add qualifier const to
14459 argument args.
14460
eec03155
YQ
144612014-01-07 Yao Qi <yao@codesourcery.com>
14462
14463 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
14464
f04a82ef
YQ
144652014-01-07 Yao Qi <yao@codesourcery.com>
14466
14467 * gnu-nat.c (make_inf) Update declaration.
14468 (make_inf): Make it static.
14469 (inf_set_traced): Likewise.
14470 (inf_port_to_thread, inf_task_died_status): Likewise.
14471
d57dda0a
YQ
144722014-01-07 Yao Qi <yao@codesourcery.com>
14473
14474 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
14475
3aa8c969
YQ
144762014-01-07 Yao Qi <yao@codesourcery.com>
14477
14478 * gnu-nat.c (_initialize_gnu_nat): Declare.
14479
94123b4f
YQ
144802014-01-07 Yao Qi <yao@codesourcery.com>
14481
14482 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
14483 'enum bfd_endian'.
14484 (struct gdbarch_info) <byte_order>: Change type to
14485 'enum bfd_endian'.
14486 <byte_order_for_code>: Likewise.
14487 * gdbarch.c, gdbarch.h: Regenerated.
14488
dc81d70a
TT
144892014-01-06 Sasha Smundak <asmundak@google.com>
14490
14491 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
14492
cc2f3c35
TT
144932014-01-06 Tom Tromey <tromey@redhat.com>
14494
14495 * doublest.c (convert_doublest_to_floatformat): Use const, not
14496 CONST.
14497 * somread.c (som_symtab_read): Likewise.
14498
adcf2eed
HZ
144992014-01-07 Hui Zhu <hui@codesourcery.com>
14500
14501 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
14502 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
14503 (gdb_bfd_fopen): Ditto.
14504 (gdb_bfd_openr): Ditto.
14505 (gdb_bfd_openw): Ditto.
14506 (gdb_bfd_openr_iovec): Ditto.
14507 (gdb_bfd_fdopenr): Ditto.
14508 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
14509 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
14510 with xstrdup.
14511 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
14512 with xstrdup.
14513 * symfile-mem.c (symbol_file_add_from_memory): Removed
14514 gdb_bfd_stash_filename.
14515
50722198
DE
145162014-01-03 Doug Evans <dje@google.com>
14517
14518 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
14519 output.
14520
2fa4b862
JB
145212014-01-01 Joel Brobecker <brobecker@adacore.com>
14522
14523 Update year range in copyright notice of all files.
14524
28498c42
JB
145252014-01-01 Joel Brobecker <brobecker@adacore.com>
14526
14527 * top.c (print_gdb_version): Set copyright year to 2014.
14528
7b6e1046
JB
145292014-01-01 Joel Brobecker <brobecker@adacore.com>
14530
14531 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
14532
df96af55 14533For older changes see ChangeLog-2013.
c906108c
SS
14534\f
14535Local Variables:
14536mode: change-log
14537left-margin: 8
14538fill-column: 74
14539version-control: never
57da7796 14540coding: utf-8
c906108c 14541End:
This page took 4.36325 seconds and 4 git commands to generate.