Fix skipping stack protector on arm
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
6ae274b7
YQ
12014-10-29 Yao Qi <yao@codesourcery.com>
2
3 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
4 loaded address correctly of ldr instruction.
5
7f5ef605
PA
62014-10-28 Pedro Alves <palves@redhat.com>
7
8 PR gdb/12623
9 * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
10 field.
11 * infrun.c (resume) <stepping breakpoint instruction>: Set the
12 thread's stepped_breakpoint field. Skip if reverse debugging.
13 Add comment.
14 (init_thread_stepping_state, handle_signal_stop): Clear the
15 thread's stepped_breakpoint field.
16
7d1a114c
PA
172014-10-27 Pedro Alves <palves@redhat.com>
18
19 * remote.c (remote_thread_alive): New, factored out from ...
20 (remote_thread_alive): ... this.
21 (remote_update_thread_list): Bail out before deleting threads if
22 the target returned an empty list, and, the current thread has a
23 magic/fake ptid.
24
e5f8a7cc
PA
252014-10-27 Pedro Alves <palves@redhat.com>
26
27 * infrun.c (handle_signal_stop): Also skip handlers when a random
28 signal arrives while handling a "stepi" or a "nexti". Set the
29 thread's 'step_after_step_resume_breakpoint' flag.
30
71e396f9
LM
312014-10-27 Luis Machado <lgustavo@codesourcery.com>
32
33 * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
34 (arm_record_ld_st_imm_offset): Reimplement to cover all
35 load/store cases for ARM opcode 010.
36 (arm_record_ld_st_multiple): Reimplement to cover all
37 load/store cases for ARM opcode 100.
38
3aee438b
DE
392014-10-26 Doug Evans <xdje42@gmail.com>
40
41 * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
42
f88cb4b6
DE
432014-10-26 Doug Evans <xdje42@gmail.com>
44
45 * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
46 parameter "kind" to "block_index".
47 * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
48 "block_index".
49 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
50
a023a30f
DE
512014-10-26 Doug Evans <xdje42@gmail.com>
52
53 * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
54
4c35218e
DE
552014-10-26 Doug Evans <xdje42@gmail.com>
56
57 * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
58 obstack_alloc.
59
f08e8df3
DE
602014-10-26 Doug Evans <xdje42@gmail.com>
61
62 * parser-defs.h (block_found): Move decl from here ...
63 * symtab.h (block_found): ... to here.
64
cf901d3b
DE
652014-10-26 Doug Evans <xdje42@gmail.com>
66
67 * symtab.h (struct field_of_this_result): Fix typo in comment.
68 (lookup_symbol_in_language): Move function comment here.
69 (lookup_symbol): Improve function comment.
70 (basic_lookup_symbol_nonlocal): Ditto.
71 (lookup_symbol_static, lookup_symbol_global): Ditto.
72 (lookup_symbol_aux_block): Ditto.
73 (lookup_language_this): Add function comment.
74 (lookup_static_symbol_aux): Explicitly mark as extern. Improve
75 function comment.
76 (lookup_block_symbol): Improve function comment.
77 (lookup_struct): Fix capitalization in function comment.
78 (lookup_transparent_type): Add function comment.
79 (lookup_global_symbol_from_objfile): Explicitly mark as extern.
80 Improve function comment.
81 (lookup_objfile_from_block): Add function comment.
82 * symtab.c (lookup_symbol_in_language): Update function comment.
83 (lookup_symbol, lookup_language_this): Ditto.
84 (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
85 (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
86 (basic_lookup_symbol_nonlocal): Ditto.
87 (lookup_symbol_static, lookup_symbol_global): Ditto.
88 (lookup_transparent_type, lookup_block_symbol): Ditto.
89
ff6c39cf
DE
902014-10-25 Doug Evans <xdje42@gmail.com>
91
92 * symtab.c (types_info): Delete forward decl.
93 (functions_info, variables_info, sources_info): Ditto.
94 (_initialize_symtab): Rewrite forward decl to use
95 initialize_file_ftype.
96
ec201f0c
DE
972014-10-25 Doug Evans <xdje42@gmail.com>
98
99 * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
100
ca040673
DE
1012014-10-25 Doug Evans <xdje42@gmail.com>
102
103 * dwarf2read.c (process_structure_scope): Remove second (nested) copy
104 of local var child_die.
105
6f259a23
DB
1062014-10-24 Don Breazeal <donb@codesourcery.com>
107
108 * infrun.c (follow_fork_inferior): Update fork message printing
109 to use target_terminal_ours_for_output instead of
110 target_terminal_ours, to use _() for all format strings, to print
111 "vfork" instead of "fork" for vforks, and to add a detach message.
112 (handle_vfork_child_exec_or_exit): Update message printing to use
113 target_terminal_ours_for_output instead of target_terminal_ours, to
114 use _() for all format strings, and to fix some formatting.
115
09dd9a69
PA
1162014-10-24 Pedro Alves <palves@redhat.com>
117
118 * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
119 * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
120 * config/vax/vax.mh: Delete.
121 * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
122 obsolete configurations section.
123 * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
124 * vax-nat.c: Delete file.
125
5ab806de
PA
1262014-10-24 Pedro Alves <palves@redhat.com>
127
128 * NEWS (Removed targets): Add OS/arch column.
129
3433cfa5
SC
1302014-10-24 Siva Chandra Reddy <sivachandra@google.com>
131
132 * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
133 on the arg type of a constructor only if it is of reference type.
134
96ba4233
SL
1352014-10-23 Sandra Loosemore <sandra@codesourcery.com>
136
137 * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
138 accessors and constants from nios2 opcodes update.
139 (nios2_get_next_pc): Likewise.
140
28153fd3
DE
1412014-10-19 Doug Evans <xdje42@gmail.com>
142
143 * gdbthread.h (set_running): Fix comment.
144 (set_executing, finish_thread_state): Fix comment.
145
fc9b8e47
DE
1462014-10-18 Doug Evans <xdje42@gmail.com>
147
148 * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
149
4ffbba72
DE
1502014-10-17 Doug Evans <dje@google.com>
151
152 * NEWS: Mention new event gdb.clear_objfiles.
153 * python/py-event.h (emit_clear_objfiles_event): Clear
154 * python/py-events.h (events_object): New member clear_objfiles.
155 * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
156 event.
157 * python/py-inferior.c (python_new_objfile): If objfile is NULL,
158 emit clear_objfiles event.
159 * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
160 function.
161 (emit_clear_objfiles_event): New function.
162 (clear_objfiles): New event.
163 * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
164 Declare.
165 * python/python.c (_initialize_python): Call
166 gdbpy_initialize_clear_objfiles_event.
167
d096d8c1
DE
1682014-10-17 Doug Evans <dje@google.com>
169
170 * NEWS: Mention new gdb.Objfile.progspace attribute.
171 * python/py-objfile.c (objfpy_get_progspace): New function.
172 (objfile_getset): New entry for "progspace".
173
6c4486e6
PA
1742014-10-17 Pedro Alves <palves@redhat.com>
175
176 PR gdb/17471
177 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
178 returns a copy of the input.
179 (run_command_1, continue_command, step_1, jump_command)
180 (signal_command, until_command, advance_command, finish_command)
181 (attach_command): Adjust and install a cleanup to free the
182 stripped args.
183
0ff33695
PA
1842014-10-17 Pedro Alves <palves@redhat.com>
185
186 PR gdb/17300
187 * infcmd.c (continue_1): If continuing all threads in the
188 foreground, make sure the inferior's terminal settings are put in
189 effect.
190
6fdebc3d
PA
1912014-10-17 Pedro Alves <palves@redhat.com>
192
193 PR gdb/17472
194 * annotate.c (annotate_breakpoints_invalid): Use
195 target_terminal_our_for_output instead of target_terminal_ours.
196 Give back the terminal to the target.
197 (annotate_frames_invalid): Likewise.
198
5842f62a
PA
1992014-10-17 Pedro Alves <palves@redhat.com>
200
201 * target.c (enum terminal_state): New enum.
202 (terminal_state): New global.
203 (target_terminal_init): New function.
204 (target_terminal_inferior): Skip if inferior already owns the
205 terminal.
206 (target_terminal_ours, target_terminal_ours_for_output): New
207 functions.
208 * target.h (target_terminal_init): Convert to function prototype.
209 (target_terminal_ours_for_output): Convert to function prototype
210 and tweak comment.
211 (target_terminal_ours): Convert to function prototype and tweak
212 comment.
213 * windows-nat.c (do_initial_windows_stuff): Call
214 target_terminal_init instead of child_terminal_init_with_pgrp.
215
32a8097b
PA
2162014-10-17 Pedro Alves <palves@redhat.com>
217
218 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
219 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
220 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
221 solib-osf.c.
222 * NEWS: Mention that support for alpha*-*-osf* has been removed.
223 * ada-lang.h [__alpha__ && __osf__]
224 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
225 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
226 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
227 GDB_OSABI_OSF1.
228 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
229 files.
230 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
231 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
232 * configure: Regenerate.
233 * configure.ac: Remove references to osf.
234 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
235 section. Remove all other references to osf.
236 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
237 Remove all other references to osf.
238 * dec-thread.c: Delete file.
239 * defs.h (GDB_OSABI_OSF1): Delete.
240 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
241 defined.
242 * osabi.c (gdb_osabi_names): Delete "OSF/1".
243 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
244 Delete code.
245 (unconditionally_kill_inferior)
246 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
247 * solib-osf.c: Delete file.
248
80134cf5
PA
2492014-10-17 Pedro Alves <palves@redhat.com>
250
251 * remote.c (clear_threads_listing_context): Move higher up, out of
252 the HAVE_LIBEXPAT guard.
253
89c7137f
TG
2542014-10-16 Tristan Gingold <gingold@adacore.com>
255
256 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
257 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
258 on amd64.
259
44ee4a52
PA
2602014-10-15 Pedro Alves <palves@redhat.com>
261
262 * dec-thread.c (dec_thread_count_gdb_threads)
263 (dec_thread_add_gdb_thread): Delete.
264 (dec_thread_update_thread_list): Delete.
265 (dec_thread_find_new_threads): Rename to ...
266 (dec_thread_update_thread_list): ... this. Delete GDB-size
267 threads that are no longer found in dec_thread_list.
268 (resync_thread_list): Delete.
269 (dec_thread_wait): Call dec_thread_update_thread_list instead of
270 resync_thread_list.
271
ab970af1
PA
2722014-10-15 Pedro Alves <palves@redhat.com>
273
274 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
275 * remote.c (remote_update_thread_list): Skip calling prune_threads
276 if any thread listing method is supported, and instead walk over
277 the set of remote threads listed, deleting those that are not
278 found in GDB's thread list.
279
e8032dde
PA
2802014-10-15 Pedro Alves <palves@redhat.com>
281
282 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
283 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
284 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
285 (bsd_uthread_target): Adjust.
286 * corelow.c (core_open): Adjust.
287 * dec-thread.c (dec_thread_find_new_threads): Update comment.
288 (dec_thread_update_thread_list): New function.
289 (init_dec_thread_ops): Adjust.
290 * gdbthread.h (prune_threads): New declaration.
291 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
292 (thread_db_update_thread_list): ... this. Call prune_threads.
293 (init_thread_db_ops): Adjust.
294 * nto-procfs.c (procfs_find_new_threads): Rename to ...
295 (procfs_update_thread_list): ... this. Call prune_threads.
296 (procfs_attach, procfs_create_inferior, init_procfs_targets):
297 Adjust.
298 * obsd-nat.c (obsd_find_new_threads): Rename to ...
299 (obsd_update_thread_list): ... this. Call prune_threads.
300 (obsd_add_target): Adjust.
301 * procfs.c (procfs_target): Adjust.
302 (procfs_notice_thread): Update comment.
303 (procfs_find_new_threads): Rename to ...
304 (procfs_update_thread_list): ... this. Call prune_threads.
305 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
306 comment.
307 (ravenscar_wait): Adjust.
308 (ravenscar_find_new_threads): Rename to ...
309 (ravenscar_update_thread_list): ... this. Call prune_threads.
310 (init_ravenscar_thread_ops): Adjust.
311 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
312 (record_btrace_update_thread_list): ... this. Adjust comment.
313 (init_record_btrace_ops): Adjust.
314 * remote.c (remote_threads_info): Rename to ...
315 (remote_update_thread_list): ... this. Call prune_threads.
316 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
317 Adjust.
318 * sol-thread.c (check_for_thread_db): Adjust.
319 (sol_find_new_threads_callback): Rename to ...
320 (sol_update_thread_list_callback): ... this.
321 (sol_find_new_threads): Rename to ...
322 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
323 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
324 * target-delegates.c: Regenerate.
325 * target.c (target_find_new_threads): Rename to ...
326 (target_update_thread_list): ... this.
327 * target.h (struct target_ops): Rename to_find_new_threads field
328 to to_update_thread_list.
329 (target_find_new_threads): Rename to ...
330 (target_update_thread_list): ... this.
331 * thread.c (prune_threads): Make extern.
332 (update_thread_list): Adjust.
333
6dc54d91
PA
3342014-10-15 Pedro Alves <palves@redhat.com>
335
336 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
337 Add describing comment. Return -1 if the qL packet is not
338 supported.
339 (struct thread_item, thread_item_t): Move higher up in
340 the file. Add comments.
341 (struct threads_parsing_context): Move higher up in
342 the file, add comments, and remote to ...
343 (struct threads_listing_context): ... this.
344 (remote_newthread_step): Don't add the thread to GDB's thread
345 database here. Instead push it to the thread_listing_context
346 list.
347 (remote_find_new_threads): Rename to ...
348 (remote_get_threads_with_ql): ... this. Add target_ops and
349 targets_listing_context parameters. Pass down context.
350 (start_thread): Adjust.
351 (clear_threads_parsing_context): Rename to ...
352 (clear_threads_listing_context): ... this.
353 (remote_get_threads_with_qxfer): New, with parts salvaged from old
354 remote_threads_info.
355 (remote_get_threads_with_qthreadinfo): Ditto.
356 (remote_threads_info): Reimplement.
357
36728e82
PA
3582014-10-15 Pedro Alves <palves@redhat.com>
359
360 * infrun.c (resume): Don't force displaced-stepping for all
361 single-steps on software single-stepping archs.
362
34b7e8a6
PA
3632014-10-15 Pedro Alves <palves@redhat.com>
364
365 * breakpoint.c (single_step_breakpoints): Delete global.
366 (insert_single_step_breakpoint): Adjust to store the breakpoint
367 pointer in the current thread.
368 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
369 (cancel_single_step_breakpoints): Delete functions.
370 (breakpoint_has_location_inserted_here): Make extern.
371 (single_step_breakpoint_inserted_here_p): Adjust to walk the
372 breakpoint list.
373 * breakpoint.h (breakpoint_has_location_inserted_here): New
374 declaration.
375 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
376 (cancel_single_step_breakpoints): Remove declarations.
377 * gdbthread.h (struct thread_control_state)
378 <single_step_breakpoints>: New field.
379 (delete_single_step_breakpoints)
380 (thread_has_single_step_breakpoints_set)
381 (thread_has_single_step_breakpoint_here): New declarations.
382 * infrun.c (follow_exec): Also clear the single-step breakpoints.
383 (singlestep_breakpoints_inserted_p, singlestep_ptid)
384 (singlestep_pc): Delete globals.
385 (infrun_thread_ptid_changed): Remove references to removed
386 globals.
387 (resume_cleanups): Delete the current thread's single-step
388 breakpoints.
389 (maybe_software_singlestep): Remove references to removed globals.
390 (resume): Adjust to use thread_has_single_step_breakpoints_set and
391 delete_single_step_breakpoints.
392 (init_wait_for_inferior): Remove references to removed globals.
393 (delete_thread_infrun_breakpoints): Delete the thread's
394 single-step breakpoints too.
395 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
396 single-step breakpoints here.
397 (delete_stopped_threads_single_step_breakpoints): New function.
398 (adjust_pc_after_break): Adjust to use
399 thread_has_single_step_breakpoints_set.
400 (handle_inferior_event): Remove references to removed globals.
401 Use delete_stopped_threads_single_step_breakpoints.
402 (handle_signal_stop): Adjust to per-thread single-step
403 breakpoints. Swap test order to do cheaper tests first.
404 (switch_back_to_stepped_thread): Extend debug output. Remove
405 references to removed globals.
406 * record-full.c (record_full_wait_1): Adjust to per-thread
407 single-step breakpoints.
408 * thread.c (delete_single_step_breakpoints)
409 (thread_has_single_step_breakpoints_set)
410 (thread_has_single_step_breakpoint_here): New functions.
411 (clear_thread_inferior_resources): Also delete the thread's
412 single-step breakpoints.
413
5b834a0a
PA
4142014-10-15 Pedro Alves <palves@redhat.com>
415
416 * thread.c (delete_thread_breakpoint): New function.
417 (delete_step_resume_breakpoint)
418 (delete_exception_resume_breakpoint): Use it.
419 (delete_at_next_stop): New function.
420 (clear_thread_inferior_resources): Use delete_at_next_stop.
421
a1fd2fa5
PA
4222014-10-15 Pedro Alves <palves@redhat.com>
423
424 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
425 (breakpoint_inserted_here_p): ... here. Remove special case for
426 software single-step breakpoints.
427 (find_non_raw_software_breakpoint_inserted_here): Inline ...
428 (software_breakpoint_inserted_here_p): ... here. Remove special
429 case for software single-step breakpoints.
430 (bp_target_info_copy_insertion_state)
431 (deprecated_insert_raw_breakpoint)
432 (deprecated_remove_raw_breakpoint): Delete functions.
433 * breakpoint.h (deprecated_insert_raw_breakpoint)
434 (deprecated_remove_raw_breakpoint): Remove declarations.
435
7c16b83e
PA
4362014-10-15 Pedro Alves <palves@redhat.com>
437
438 PR breakpoints/9649
439 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
440 Delete array globals.
441 (single_step_breakpoints): New global.
442 (breakpoint_xfer_memory): Remove special handling for single-step
443 breakpoints.
444 (update_breakpoints_after_exec): Delete bp_single_step
445 breakpoints.
446 (detach_breakpoints): Remove special handling for single-step
447 breakpoints.
448 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
449 (bpstat_stop_status): Add comment.
450 (bpstat_what, bptype_string, print_one_breakpoint_location)
451 (adjust_breakpoint_address, init_bp_location): Handle
452 bp_single_step.
453 (new_single_step_breakpoint): New function.
454 (set_momentary_breakpoint, bkpt_remove_location): Remove special
455 handling for single-step breakpoints.
456 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
457 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
458 Rewrite.
459 (detach_single_step_breakpoints, find_single_step_breakpoint):
460 Delete functions.
461 (breakpoint_has_location_inserted_here): New function.
462 (single_step_breakpoint_inserted_here_p): Rewrite.
463 * breakpoint.h: Remove FIXME.
464 (enum bptype) <bp_single_step>: New enum value.
465 (insert_single_step_breakpoint): Update comment.
466 * infrun.c (resume_cleanups)
467 (delete_step_thread_step_resume_breakpoint): Remove single-step
468 breakpoints.
469 (fetch_inferior_event): Install a cleanup that removes infrun
470 breakpoints.
471 (switch_back_to_stepped_thread) <expect thread advanced also>:
472 Clear step-over info.
473
0cbcdb96
PA
4742014-10-15 Pedro Alves <palves@redhat.com>
475
476 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
477 (delete_thread_infrun_breakpoints): New function, with parts
478 salvaged from delete_step_resume_breakpoint_callback.
479 (delete_step_thread_step_resume_breakpoint): Delete.
480 (for_each_just_stopped_thread_callback_func): New typedef.
481 (for_each_just_stopped_thread): New function.
482 (delete_just_stopped_threads_infrun_breakpoints): New function.
483 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
484 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
485 ... this. Adjust.
486 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
487
963f9c80
PA
4882014-10-15 Pedro Alves <palves@redhat.com>
489
490 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
491 trying to step past a non-steppable watchpoint.
492 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
493 field.
494 * infrun.c (struct step_over_info): Add new field
495 'nonsteppable_watchpoint_p' and adjust comments.
496 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
497 Adjust.
498 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
499 (stepping_past_nonsteppable_watchpoint): New function.
500 (step_over_info_valid_p): Also return true if stepping past a
501 nonsteppable watchpoint.
502 (proceed): Adjust call to set_step_over_info. Remove reference to
503 init_infwait_state.
504 (init_wait_for_inferior): Remove reference to init_infwait_state.
505 (waiton_ptid): Delete global.
506 (struct execution_control_state)
507 <stepped_after_stopped_by_watchpoint>: Delete field.
508 (wait_for_inferior, fetch_inferior_event): Always pass
509 minus_one_ptid to target_wait.
510 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
511 field.
512 (init_infwait_state): Delete function.
513 (handle_inferior_event): Remove infwait_state handling.
514 (handle_signal_stop) <watchpoints handling>: Adjust after
515 stepped_after_stopped_by_watchpoint removal. Don't remove
516 breakpoints here nor set infwait_state. Set the thread's
517 stepping_over_watchpoint flag, and call keep_going instead.
518 (keep_going): Handle stepping_over_watchpoint. Adjust
519 set_step_over_info calls.
520 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
521 function.
522
6cc83d2a
PA
5232014-10-15 Pedro Alves <palves@redhat.com>
524
525 * infrun.c (step_over_info_valid_p): New function.
526 (resume): Use step_over_info_valid_p instead of checking the
527 threads's trap_expected flag.
528
6979730b
DE
5292014-10-15 Doug Evans <dje@google.com>
530 Walfred Tedeschi <walfred.tedeschi@intel.com>
531
532 PR python/17364
533 * python/lib/gdb/__init__.py (packages): Add "printer".
534 * python/lib/gdb/command/bound_registers.py: Moved to ...
535 * python/lib/gdb/printer/bound_registers.py: ... here.
536 Add printer to global set of builtin printers. Rename printer from
537 "bound" to "mpx_bound128".
538 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
539 registered as global "builtin" printer.
540 (add_builtin_pretty_printer): New function.
541 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
542 gdb/printer/__init__.py.
543
35a49624
IB
5442014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
545
546 * Makefile.in (SFILES): Remove d-support.c.
547 (COMMON_OBS): Remove d-support.o.
548 * d-lang.h (d_parse_symbol): Remove declaration.
549 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
550 * d-support.c: Remove file.
551
8fa0c4f8
AA
5522014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
553
554 * gdb/infrun.c (process_event_stop_test): Apply
555 gdbarch_addr_bits_remove to longjmp resume address.
556
3666da81
PA
5572014-10-15 Pedro Alves <palves@redhat.com>
558
559 * regformats/microblaze.dat: Delete file.
560
449aa9df
AKA
5612014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
562
563 * features/Makefile (microblaze-expedite): Replace pc with rpc.
564 * regformats/microblaze-with-stack-protect.dat: Regenerate.
565
ebb8ece2
SC
5662014-10-15 Siva Chandra Reddy <sivachandra@google.com>
567
568 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
569 as non-trivial.
570
82c48ac7
SC
5712014-10-15 Siva Chandra Reddy <sivachandra@google.com>
572
573 PR c++/13403
574 PR c++/15154
575 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
576 with qualified args.
577
c40cc657
JB
5782014-10-14 Joel Brobecker <brobecker@adacore.com>
579
580 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
581 of the case where the second operand is a pointer.
582 <BINOP_SUB>: Likewise.
583
0ea5cda8
SDJ
5842014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
585
586 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
587 only if it is not NULL.
588 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
589 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
590 (struct probe_ops) <clear_semaphore>: Likewise.
591 * tracepoint.c (start_tracing): Call set_semaphore only if it is
592 not NULL.
593 (stop_tracing): Likewise, for clear_semaphore.
594
f7088df3
SDJ
5952014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
596
597 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
598 using language_c, instead of current_language.
599
4e1bbde0
DE
6002014-10-13 Doug Evans <dje@google.com>
601
6ff5a0f6 602 * python/py-objfile.c (objfpy_initialize): New function.
4e1bbde0 603 (objfpy_new, objfile_to_objfile_object): Call it.
6ff5a0f6 604 * python/py-progspace.c (pspy_initialize): New function.
4e1bbde0
DE
605 (pspy_new, pspace_to_pspace_object): Call it.
606
c780cc2f
JK
6072014-10-13 Miroslav Franc <mfranc@redhat.com>
608 Jan Kratochvil <jan.kratochvil@redhat.com>
609
610 Fix "save breakpoints" for "catch" command.
611 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
612 newline.
613
99894e11
JK
6142014-10-12 Miroslav Franc <mfranc@redhat.com>
615
616 Fix "save breakpoints" for "disable $bpnum" command.
617 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
618
3831839c
PA
6192014-10-10 Pedro Alves <palves@redhat.com>
620
621 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
622 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
623 (HFILES_NO_SRCDIR): Remove solib-irix.h.
624 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
625 and been removed.
626 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
627 * configure.ac: Remove references to IRIX.
628 * configure.host: Add *-*-irix* to the obsolete hosts section.
629 Remove all other references to irix.
630 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
631 Delete files.
632
cc3afae2
AKA
6332014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
634
635 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
636 isn't valid, release the tdesc arch data and return NULL.
637
cdfa0b0a
PA
6382014-10-10 Pedro Alves <palves@redhat.com>
639
640 * linux-tdep.c: Include observer.h.
641 (linux_inferior_data): New global.
642 (struct linux_info): New structure.
643 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
644 (get_linux_inferior_data): New functions.
645 (linux_vsyscall_range): Rename to ...
646 (linux_vsyscall_range_raw): ... this.
647 (linux_vsyscall_range): New function; handles caching.
648 (_initialize_linux_tdep): Register linux_inferior_data. Install
649 inferior_exit and inferior_appeared observers.
650
8b9a549d
PA
6512014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
652 Pedro Alves <palves@redhat.com>
653
654 PR symtab/14466
655 * solib-svr4.c (svr4_read_so_list): Rename to ...
656 (svr4_current_sos_1): ... this and change the function comment.
657 (svr4_current_sos): New function.
658
3437254d
PA
6592014-10-10 Pedro Alves <palves@redhat.com>
660
661 * arch-utils.c (default_vsyscall_range): New function.
662 * arch-utils.h (default_vsyscall_range): New declaration.
663 * gdbarch.sh (vsyscall_range): New hook.
664 * gdbarch.h, gdbarch.c: Regenerate.
665 * linux-tdep.c (linux_vsyscall_range): New function.
666 (linux_init_abi): Install linux_vsyscall_range as
667 vsyscall_range gdbarch hook.
668 * memrange.c (address_in_mem_range): New function.
669 * memrange.h (address_in_mem_range): New declaration.
670 * symfile-mem.c (find_vdso_size): Delete function.
671 (add_vsyscall_page): Use gdbarch_vsyscall_range.
672
31cc0b80
PA
6732014-10-10 Pedro Alves <palves@redhat.com>
674
675 * infrun.c (normal_stop): Fix typo in comment.
676
3e3286a2
SDJ
6772014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
678
679 PR tdep/9390
680 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
681 typo when using logical AND to determine instruction type.
682
fcbdedf8
YQ
6832014-10-09 Yao Qi <yao@codesourcery.com>
684
685 * infrun.c (handle_signal_stop): Remove local variable
686 'printed'.
687
db984616
SS
6882014-10-08 Stan Shebs <stan@codesourcery.com>
689
690 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
691
3ba37e6c
GB
6922014-10-08 Gary Benson <gbenson@redhat.com>
693
694 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
695
a442d071
GB
6962014-10-08 Gary Benson <gbenson@redhat.com>
697
698 * common/common-defs.h: Include common-exceptions.h.
699 * exceptions.h: Do not include common-exceptions.h.
700
6f1947e8
GB
7012014-10-08 Gary Benson <gbenson@redhat.com>
702
703 * common/common-defs.h: Include cleanups.h.
704 * common/common-exceptions.c: Do not include cleanups.h.
705 * utils.h: Likewise.
706
c765fdb9
GB
7072014-10-08 Gary Benson <gbenson@redhat.com>
708
709 * ada-lang.c: Do not include exceptions.h.
710 * ada-valprint.c: Likewise.
711 * amd64-tdep.c: Likewise.
712 * auto-load.c: Likewise.
713 * block.c: Likewise.
714 * break-catch-throw.c: Likewise.
715 * breakpoint.c: Likewise.
716 * btrace.c: Likewise.
717 * c-lang.c: Likewise.
718 * cli/cli-cmds.c: Likewise.
719 * cli/cli-interp.c: Likewise.
720 * cli/cli-script.c: Likewise.
721 * completer.c: Likewise.
722 * corefile.c: Likewise.
723 * corelow.c: Likewise.
724 * cp-abi.c: Likewise.
725 * cp-support.c: Likewise.
726 * cp-valprint.c: Likewise.
727 * darwin-nat.c: Likewise.
728 * dwarf2-frame-tailcall.c: Likewise.
729 * dwarf2-frame.c: Likewise.
730 * dwarf2loc.c: Likewise.
731 * dwarf2read.c: Likewise.
732 * eval.c: Likewise.
733 * event-loop.c: Likewise.
734 * event-top.c: Likewise.
735 * f-valprint.c: Likewise.
736 * frame-unwind.c: Likewise.
737 * frame.c: Likewise.
738 * gdbtypes.c: Likewise.
739 * gnu-v2-abi.c: Likewise.
740 * gnu-v3-abi.c: Likewise.
741 * guile/scm-auto-load.c: Likewise.
742 * guile/scm-breakpoint.c: Likewise.
743 * guile/scm-cmd.c: Likewise.
744 * guile/scm-frame.c: Likewise.
745 * guile/scm-lazy-string.c: Likewise.
746 * guile/scm-param.c: Likewise.
747 * guile/scm-symbol.c: Likewise.
748 * guile/scm-type.c: Likewise.
749 * hppa-hpux-tdep.c: Likewise.
750 * i386-tdep.c: Likewise.
751 * inf-loop.c: Likewise.
752 * infcall.c: Likewise.
753 * infcmd.c: Likewise.
754 * infrun.c: Likewise.
755 * interps.c: Likewise.
756 * interps.h: Likewise.
757 * jit.c: Likewise.
758 * linespec.c: Likewise.
759 * linux-nat.c: Likewise.
760 * linux-thread-db.c: Likewise.
761 * m32r-rom.c: Likewise.
762 * main.c: Likewise.
763 * memory-map.c: Likewise.
764 * mi/mi-cmd-break.c: Likewise.
765 * mi/mi-cmd-stack.c: Likewise.
766 * mi/mi-interp.c: Likewise.
767 * mi/mi-main.c: Likewise.
768 * monitor.c: Likewise.
769 * nto-procfs.c: Likewise.
770 * objc-lang.c: Likewise.
771 * p-valprint.c: Likewise.
772 * parse.c: Likewise.
773 * ppc-linux-tdep.c: Likewise.
774 * printcmd.c: Likewise.
775 * probe.c: Likewise.
776 * python/py-auto-load.c: Likewise.
777 * python/py-breakpoint.c: Likewise.
778 * python/py-cmd.c: Likewise.
779 * python/py-finishbreakpoint.c: Likewise.
780 * python/py-frame.c: Likewise.
781 * python/py-framefilter.c: Likewise.
782 * python/py-function.c: Likewise.
783 * python/py-gdb-readline.c: Likewise.
784 * python/py-inferior.c: Likewise.
785 * python/py-infthread.c: Likewise.
786 * python/py-lazy-string.c: Likewise.
787 * python/py-linetable.c: Likewise.
788 * python/py-param.c: Likewise.
789 * python/py-prettyprint.c: Likewise.
790 * python/py-symbol.c: Likewise.
791 * python/py-type.c: Likewise.
792 * python/py-value.c: Likewise.
793 * python/python-internal.h: Likewise.
794 * python/python.c: Likewise.
795 * record-btrace.c: Likewise.
796 * record-full.c: Likewise.
797 * regcache.c: Likewise.
798 * remote-fileio.c: Likewise.
799 * remote-mips.c: Likewise.
800 * remote.c: Likewise.
801 * rs6000-aix-tdep.c: Likewise.
802 * rs6000-nat.c: Likewise.
803 * skip.c: Likewise.
804 * solib-darwin.c: Likewise.
805 * solib-dsbt.c: Likewise.
806 * solib-frv.c: Likewise.
807 * solib-ia64-hpux.c: Likewise.
808 * solib-spu.c: Likewise.
809 * solib-svr4.c: Likewise.
810 * solib.c: Likewise.
811 * spu-tdep.c: Likewise.
812 * stack.c: Likewise.
813 * stap-probe.c: Likewise.
814 * symfile-mem.c: Likewise.
815 * symmisc.c: Likewise.
816 * target.c: Likewise.
817 * thread.c: Likewise.
818 * top.c: Likewise.
819 * tracepoint.c: Likewise.
820 * tui/tui-interp.c: Likewise.
821 * typeprint.c: Likewise.
822 * utils.c: Likewise.
823 * valarith.c: Likewise.
824 * valops.c: Likewise.
825 * valprint.c: Likewise.
826 * value.c: Likewise.
827 * varobj.c: Likewise.
828 * windows-nat.c: Likewise.
829 * xml-support.c: Likewise.
830
484933d1
MR
8312014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
832
833 * mips-tdep.c (add_offset_16): Rewrite to implement what the
834 name implies.
835 (extended_mips16_next_pc): Update accordingly.
836
ab50adb6
MR
8372014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
838
839 * mips-tdep.c (mips16_instruction_is_compact_branch): New
840 function.
841 (micromips_instruction_is_compact_branch): Likewise.
842 (mips16_scan_prologue): Terminate scanning upon seeing a branch
843 or a compact jump, reaching a jump delay slot, or seeing a
844 second non-prologue instruction.
845 (micromips_scan_prologue): Also terminate scanning upon seeing a
846 compact branch or jump, or reaching a branch or jump delay slot.
847 (mips32_scan_prologue): Terminate scanning upon reaching a branch
848 or jump delay slot, or seeing a second non-prologue instruction.
849 (mips32_instruction_has_delay_slot): Retain instruction
850 examination code only, update arguments accordingly and move
851 instruction fetch pieces to...
852 (mips32_insn_at_pc_has_delay_slot): ... this new function.
853 (micromips_instruction_has_delay_slot): Likewise and to...
854 (micromips_insn_at_pc_has_delay_slot): ... this new function.
855 (mips16_instruction_has_delay_slot): Likewise and to...
856 (mips16_insn_at_pc_has_delay_slot): ... this new function.
857 (mips_single_step_through_delay): Update accordingly.
858 (mips_adjust_breakpoint_address): Likewise.
859
ae790652
MR
8602014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
861
862 * mips-tdep.c (micromips_instruction_has_delay_slot): When
863 !mustbe32 also return 1 for 32-bit instructions.
864 (mips16_instruction_has_delay_slot): Likewise. Add an
865 explanatory comment.
866
9b807e7b
MR
8672014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
868
869 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
870 symbols special.
871
0d5ed153
MR
8722014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
873
874 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
875 update comments.
876 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
877 for the breakpoint's address. Don't preinitialize `placed_size'.
878 (insert_bp_location): Set `reqstd_address' rather than
879 `placed_address'.
880 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
881 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
882 address.
883 (bkpt_remove_location): Likewise.
884 (deprecated_insert_raw_breakpoint): Likewise.
885 (deprecated_remove_raw_breakpoint): Likewise.
886 (find_single_step_breakpoint): Likewise.
887 * mem-break.c (default_memory_insert_breakpoint): Use
888 `reqstd_address' for the breakpoint's address. Don't set
889 `placed_address' or `placed_size' if breakpoint contents couldn't
890 have been determined.
891 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
892 the breakpoint's address.
893 (remote_insert_hw_breakpoint): Likewise. Don't set
894 `placed_address' or `placed_size' if breakpoint couldn't have been
895 set.
896 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
897 `reqstd_address' for the breakpoint's address.
898 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
899 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
900 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
901 * microblaze-linux-tdep.c
902 (microblaze_linux_memory_remove_breakpoint): Likewise.
903 * monitor.c (monitor_insert_breakpoint): Likewise.
904 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
905 (procfs_insert_hw_breakpoint): Likewise.
906 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
907 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
908 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
909 * remote-mips.c (mips_insert_breakpoint): Likewise.
910 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
911
3e871532
LM
9122014-10-03 Luis Machado <lgustavo@codesourcery.com>
913
914 * valops.c (value_assign): Check for bit field assignments
915 before calling architecture-specific register value
916 conversion functions.
917
ec48dc8b
PM
9182014-10-03 Pierre Muller <muller@sourceware.org>
919
920 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
921
b57bacec
PA
9222014-10-02 Pedro Alves <palves@redhat.com>
923
924 * breakpoint.c (breakpoints_should_be_inserted_now): Use
925 threads_are_executing.
926 * breakpoint.h (breakpoints_should_be_inserted_now): Add
927 describing comment.
928 * gdbthread.h (threads_are_executing): Declare.
929 (handle_signal_stop) <random signals>: Don't print about the
930 signal here if stopping.
931 (end_stepping_range): Don't notify observers here.
932 (normal_stop): Update the thread list. If stopped by a random
933 signal or a stepping range ended, notify observers.
934 * thread.c (threads_executing): New global.
935 (init_thread_list): Clear 'threads_executing'.
936 (set_executing): Set or clear 'threads_executing'.
937 (threads_are_executing): New function.
938 (update_threads_executing): New function.
939 (update_thread_list): Use it.
940
13fd3ff3
PA
9412014-10-02 Pedro Alves <palves@redhat.com>
942
943 PR breakpoints/17431
944 * breakpoint.c (update_breakpoints_after_exec): Don't create
945 overlay, longjmp, std terminate nor exception breakpoints here.
946
32990ada
PA
9472014-10-02 Pedro Alves <palves@redhat.com>
948
949 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
950 Adjust comments.
951 * inferior.c (find_inferior_for_program_space): Give preference to
952 the current inferior.
953 * inferior.h (find_inferior_for_program_space): Update comment.
954 * progspace.c (switch_to_program_space_and_thread): Prefer the
955 current inferior if it's bound to the program space requested. If
956 the inferior found doesn't have a PID yet, don't bother looking up
957 a thread.
958 * progspace.h (switch_to_program_space_and_thread): Adjust
959 comment.
960 * thread.c (any_thread_of_process, any_live_thread_of_process):
961 Give preference to the current thread.
962
0fec99e8
PA
9632014-10-01 Pedro Alves <palves@redhat.com>
964
965 * breakpoint.c (insert_bp_location): Error out if inserting a
966 software breakpoint at a read-only address.
967 * target.c (memory_xfer_check_region): New function, factored out
968 from ...
969 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
970 ULONGEST.
971 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
972 against the memory region attributes.
973
2ddf4301
SM
9742014-10-01 Simon Marchi <simon.marchi@ericsson.com>
975
976 * NEWS: Announce new exit-code field in -list-thread-groups
977 output.
978 * inferior.c (exit_inferior_1): Don't clear exit code.
979 (inferior_appeared): Clear exit code.
980 * mi/mi-main.c (print_one_inferior): Add printing of the exit
981 code.
982
5fdeec1d
PA
9832014-10-01 Pedro Alves <palves@redhat.com>
984
985 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
986 GENERATED" along with emacs/vi read-only markers.
987 * regformats/aarch64.dat: Regenerate.
988 * regformats/arm-with-iwmmxt.dat: Regenerate.
989 * regformats/arm-with-neon.dat: Regenerate.
990 * regformats/arm-with-vfpv2.dat: Regenerate.
991 * regformats/arm-with-vfpv3.dat: Regenerate.
992 * regformats/i386/amd64-avx-linux.dat: Regenerate.
993 * regformats/i386/amd64-avx.dat: Regenerate.
994 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
995 * regformats/i386/amd64-avx512.dat: Regenerate.
996 * regformats/i386/amd64-linux.dat: Regenerate.
997 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
998 * regformats/i386/amd64-mpx.dat: Regenerate.
999 * regformats/i386/amd64.dat: Regenerate.
1000 * regformats/i386/i386-avx-linux.dat: Regenerate.
1001 * regformats/i386/i386-avx.dat: Regenerate.
1002 * regformats/i386/i386-avx512-linux.dat: Regenerate.
1003 * regformats/i386/i386-avx512.dat: Regenerate.
1004 * regformats/i386/i386-linux.dat: Regenerate.
1005 * regformats/i386/i386-mmx-linux.dat: Regenerate.
1006 * regformats/i386/i386-mmx.dat: Regenerate.
1007 * regformats/i386/i386-mpx-linux.dat: Regenerate.
1008 * regformats/i386/i386-mpx.dat: Regenerate.
1009 * regformats/i386/i386.dat: Regenerate.
1010 * regformats/i386/x32-avx-linux.dat: Regenerate.
1011 * regformats/i386/x32-avx.dat: Regenerate.
1012 * regformats/i386/x32-avx512-linux.dat: Regenerate.
1013 * regformats/i386/x32-avx512.dat: Regenerate.
1014 * regformats/i386/x32-linux.dat: Regenerate.
1015 * regformats/i386/x32.dat: Regenerate.
1016 * regformats/microblaze-with-stack-protect.dat: Regenerate.
1017 * regformats/mips-dsp-linux.dat: Regenerate.
1018 * regformats/mips-linux.dat: Regenerate.
1019 * regformats/mips64-dsp-linux.dat: Regenerate.
1020 * regformats/mips64-linux.dat: Regenerate.
1021 * regformats/nios2-linux.dat: Regenerate.
1022 * regformats/rs6000/powerpc-32.dat: Regenerate.
1023 * regformats/rs6000/powerpc-32l.dat: Regenerate.
1024 * regformats/rs6000/powerpc-64l.dat: Regenerate.
1025 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
1026 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
1027 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
1028 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
1029 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
1030 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
1031 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
1032 * regformats/s390-linux32.dat: Regenerate.
1033 * regformats/s390-linux32v1.dat: Regenerate.
1034 * regformats/s390-linux32v2.dat: Regenerate.
1035 * regformats/s390-linux64.dat: Regenerate.
1036 * regformats/s390-linux64v1.dat: Regenerate.
1037 * regformats/s390-linux64v2.dat: Regenerate.
1038 * regformats/s390-te-linux64.dat: Regenerate.
1039 * regformats/s390x-linux64.dat: Regenerate.
1040 * regformats/s390x-linux64v1.dat: Regenerate.
1041 * regformats/s390x-linux64v2.dat: Regenerate.
1042 * regformats/s390x-te-linux64.dat: Regenerate.
1043 * regformats/tic6x-c62x-linux.dat: Regenerate.
1044 * regformats/tic6x-c62x.dat: Regenerate.
1045 * regformats/tic6x-c64x-linux.dat: Regenerate.
1046 * regformats/tic6x-c64x.dat: Regenerate.
1047 * regformats/tic6x-c64xp-linux.dat: Regenerate.
1048 * regformats/tic6x-c64xp.dat: Regenerate.
1049
db74e4ba
PA
10502014-10-01 Pedro Alves <palves@redhat.com>
1051
1052 * features/Makefile: Update comments.
1053 (XMLTOC): List all xml files we build C files from.
1054 (clean-cfiles): New rule.
1055
d63f2f84
PA
10562014-10-01 Pedro Alves <palves@redhat.com>
1057
1058 * features/i386/amd64-avx512-linux.c: Regenerate.
1059 * features/i386/amd64-avx512.c: Regenerate.
1060 * features/i386/x32-avx512-linux.c: Regenerate.
1061 * features/i386/x32-avx512.c: Regenerate.
1062
20ad026d
PA
10632014-10-01 Pedro Alves <palves@redhat.com>
1064
1065 * features/Makefile (WHICH): Remove arm-with-m,
1066 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
1067
acc9fe45
PA
10682014-10-01 Pedro Alves <palves@redhat.com>
1069
1070 * features/Makefile (clean): New rule.
1071
e001e535
PA
10722014-10-01 Pedro Alves <palves@redhat.com>
1073
1074 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
1075 (zmm14h): Add missing end quotes.
1076
bdc14417
PA
10772014-10-01 Pedro Alves <palves@redhat.com>
1078
1079 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
1080 * features/aarch64.c: Regenerate.
1081
d83ad864
DB
10822014-09-30 Don Breazeal <donb@codesourcery.com>
1083
1084 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
1085 code so as to work with follow_fork_inferior.
1086 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
1087 (inf_ttrace_create_inferior): Remove reference to
1088 inf_ttrace_vfork_ppid.
1089 (inf_ttrace_attach): Ditto.
1090 (inf_ttrace_detach): Ditto.
1091 (inf_ttrace_kill): Use current_inferior instead of
1092 inf_ttrace_vfork_ppid.
1093 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
1094 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
1095 inferior away from the parent.
1096 * infrun.c (follow_fork): Call follow_fork_inferior instead of
1097 target_follow_fork.
1098 (follow_fork_inferior): New function.
1099 (follow_inferior_reset_breakpoints): Make function static.
1100 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
1101 * linux-nat.c (linux_child_follow_fork): Move target-independent
1102 code to infrun.c:follow_fork_inferior.
1103
29082443
AA
11042014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1105
1106 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
1107 * gdbarch.c: Regenerate.
1108 * gdbarch.h: Likewise.
1109 * corelow.c (sniff_core_bfd): Drop presence check for deleted
1110 gdbarch method 'regset_from_core_section'.
1111 (get_core_register_section): Remove handling for the case that
1112 regset == NULL and regset_from_core_section is defined.
1113 (get_core_registers): Drop check for deleted method.
1114 * procfs.c (procfs_do_thread_registers): Adjust comment.
1115
f968fe80
AA
11162014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1117
1118 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
1119 (linux_nat_make_corefile_notes): Remove.
1120 (linux_target_install_ops): Do not set target method
1121 'make_corefile_notes'.
1122 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
1123 Remove field.
1124 (linux_corefile_thread_callback): Instead of args->collect, call
1125 linux_collect_thread_registers.
1126 (linux_make_corefile_notes): Remove 'collect' parameter. Return
1127 NULL unless there is a regset iterator.
1128 (linux_make_corefile_notes_1): Remove.
1129 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
1130 by linux_make_corefile_notes.
1131 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
1132
174ad59a
AA
11332014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1134
1135 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
1136 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
1137 Remove.
1138 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
1139
97094034
AA
11402014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1141
1142 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
1143 (xtensa_iterate_over_regset_sections): New.
1144 (xtensa_gdbarch_init): Adjust gdbarch initialization.
1145
f73d3ce7
AA
11462014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1147
1148 * vax-tdep.c (vax_regset_from_core_section): Remove.
1149 (vax_iterate_over_regset_sections): New.
1150 (vax_gdbarch_init): Adjust gdbarch initialization.
1151
cb24567a
AA
11522014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1153
1154 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
1155 (tilegx_regset_from_core_section): Remove.
1156 (tilegx_iterate_over_regset_sections): New.
1157 (tilegx_linux_init_abi): Adjust gdbarch initialization.
1158
e5139de8
AA
11592014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1160
1161 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
1162 (sparc_iterate_over_regset_sections): New.
1163 (sparc32_gdbarch_init): Adjust gdbarch initialization.
1164 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
1165 targets.
1166 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
1167 (sparc64fbsd_init_abi): Call fbsd_init_abi.
1168 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
1169 target method 'make_corefile_notes'.
1170
c6d41a6f
AA
11712014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1172
1173 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
1174 'sizeof_gregset' and 'sizeof_fpregset'.
1175 * sh-tdep.c (sh_regset_from_core_section): Remove.
1176 (sh_iterate_over_regset_sections): New.
1177 (sh_gdbarch_init): Adjust gdbarch initialization.
1178 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
1179 sizeof_fpregset.
1180 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
1181 'sizeof_gregset'.
1182
9845a0b5
AA
11832014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1184
1185 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
1186 (score7_linux_iterate_over_regset_sections): New.
1187 (score_gdbarch_init): Adjust gdbarch initialization.
1188
23ea9aeb
AA
11892014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1190
1191 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
1192 FreeBSD targets.
1193 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
1194 method 'make_corefile_notes'.
1195 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
1196 (ppcfbsd_regset_from_core_section): Remove.
1197 (ppcfbsd_iterate_over_regset_sections): New.
1198 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
1199 initialization.
1200 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
1201 (ppcnbsd_iterate_over_regset_sections): New.
1202 (ppcnbsd_init_abi): Adjust.
1203 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
1204 (ppcobsd_iterate_over_regset_sections): New.
1205 (ppcobsd_init_abi): Adjust.
1206 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
1207 (rs6000_aix_iterate_over_regset_sections): New.
1208 (rs6000_aix_init_osabi): Adjust.
1209
c5b8d704
AA
12102014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1211
1212 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
1213 (nios2_regset_from_core_section): Remove.
1214 (nios2_iterate_over_regset_sections): New.
1215 (nios2_linux_init_abi): Adjust gdbarch initialization.
1216
3636e608
AA
12172014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1218
1219 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
1220 (am33_iterate_over_regset_sections): New.
1221 (am33_linux_init_osabi): Adjust gdbarch initialization.
1222
d4036235
AA
12232014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1224
1225 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
1226 (mips_linux_iterate_over_regset_sections): New.
1227 (mips_linux_init_abi): Adjust gdbarch initialization.
1228 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
1229 (mips64obsd_iterate_over_regset_sections): New.
1230 (mips64obsd_init_abi): Adjust.
1231 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
1232 (mipsnbsd_iterate_over_regset_sections): New.
1233 (mipsnbsd_init_abi): Adjust.
1234
b61ddd6e
AA
12352014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1236
1237 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
1238 (m88k_iterate_over_regset_sections): New.
1239 (m88k_gdbarch_init): Adjust gdbarch initialization.
1240
55a2906a
AA
12412014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1242
1243 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
1244 (ia64_linux_iterate_over_regset_sections): New.
1245 (ia64_linux_init_abi): Adjust gdbarch initialization.
1246
022c98ab
AA
12472014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1248
1249 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
1250 (m68kbsd_iterate_over_regset_sections): New.
1251 (m68kbsd_init_abi): Adjust gdbarch initialization.
1252 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
1253 (m68k_linux_iterate_over_regset_sections): New.
1254 (m68k_linux_init_abi): Adjust gdbarch initialization.
1255
5fac247f
AA
12562014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1257
1258 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
1259 (m32r_linux_regset_from_core_section): Remove.
1260 (m32r_linux_iterate_over_regset_sections): New.
1261 (m32r_linux_init_abi): Adjust gdbarch initialization.
1262
490496c3
AA
12632014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1264
1265 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
1266 (amd64obsd_iterate_over_regset_sections): New.
1267 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
1268 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
1269 Remove.
1270 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
1271 regset_from_core_section initialization.
1272 * i386-tdep.c (i386_regset_from_core_section): Remove.
1273 (i386_iterate_over_regset_sections): New.
1274 (i386_gdbarch_init): Adjust gdbarch initialization.
1275 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
1276 (i386_iterate_over_regset_sections): New prototype.
1277 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
1278 Remove.
1279 (i386obsd_aout_iterate_over_regset_sections): New.
1280 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
1281 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
1282 targets.
1283 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
1284 (amd64fbsd_init_abi): Call fbsd_init_abi.
1285 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
1286 (i386fbsd4_init_abi): Call fbsd_init_abi.
1287 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
1288 target method 'make_corefile_notes'.
1289 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
1290
50c5eb53
AA
12912014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1292
1293 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
1294 (hppa_hpux_iterate_over_regset_sections): New.
1295 (hppa_hpux_init_abi): Adjust gdbarch initialization.
1296 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
1297 (hppa_linux_iterate_over_regset_sections): New.
1298 (hppa_linux_init_abi): Adjust.
1299 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
1300 (hppanbsd_iterate_over_regset_sections): New.
1301 (hppanbsd_init_abi): Adjust.
1302 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
1303 (hppaobsd_iterate_over_regset_sections): New.
1304 (hppaobsd_init_abi): Adjust.
1305
66afae4f
AA
13062014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1307
1308 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
1309 (frv_linux_iterate_over_regset_sections): New.
1310 (frv_linux_init_abi): Adjust gdbarch initialization.
1311
ed09174e
AA
13122014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1313
1314 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
1315 (armbsd_iterate_over_regset_sections): New prototype.
1316 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
1317 (armbsd_iterate_over_regset_sections): New.
1318 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
1319 initialization.
1320
dff2166e
AA
13212014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1322
1323 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
1324 (alpha_linux_iterate_over_regset_sections): New.
1325 (alpha_linux_init_abi): Adjust gdbarch initialization.
1326 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
1327 prototype.
1328 (alphanbsd_iterate_over_regset_sections): New prototype.
1329
4108500a
AA
13302014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1331
1332 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
1333 Remove.
1334 (aarch64_linux_iterate_over_regset_sections): New.
1335 (aarch64_linux_init_abi): Adjust gdbarch initialization.
1336
a904c024
AA
13372014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1338
1339 * fbsd-tdep.c: New file.
1340 * fbsd-tdep.h: New file.
1341 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
1342 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
1343 (ALLDEPFILES): Add fbsd-tdep.c.
1344
8f0435f7
AA
13452014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1346
1347 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
1348 parameter.
1349 * gdbarch.h: Regenerate.
1350 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
1351 iterator.
1352 (get_core_register_section): Add parameter 'regset' and use it, if
1353 set. Add parameter 'min_size' and verify the bfd section size
1354 against it.
1355 (get_core_registers_cb): Add parameter 'regset' and pass it to
1356 get_core_register section. For the "standard" register sections
1357 ".reg" and ".reg2", set an appropriate default for human_name.
1358 (get_core_registers): Don't abort when the gdbarch has an iterator
1359 but no regset_from_core_section. Add NULL/0 for parameters
1360 'regset'/'min_size' in calls to get_core_register_section.
1361 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
1362 'regset' and use it instead of calling the
1363 regset_from_core_section gdbarch method.
1364 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
1365 * i386-tdep.c (i386_supply_xstateregset)
1366 (i386_collect_xstateregset, i386_xstateregset): Moved to
1367 i386-linux-tdep.c.
1368 (i386_regset_from_core_section): Drop handling for .reg-xfp and
1369 .reg-xstate.
1370 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
1371 core file support only if the regset iterator hasn't been set.
1372 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
1373 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
1374 Moved from i386-tdep.c and renamed to *_linux*.
1375 (i386_linux_iterate_over_regset_sections): Add regset parameter to
1376 each callback invocation. Allow any .reg-xstate size when reading
1377 from a core file.
1378 * amd64-tdep.c (amd64_supply_xstateregset)
1379 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
1380 amd64-linux-tdep.c.
1381 (amd64_regset_from_core_section): Remove.
1382 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
1383 install an amd64-specific regset_from_core_section gdbarch method.
1384 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
1385 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
1386 Moved from amd64-tdep.c and renamed to *_linux*.
1387 (amd64_linux_iterate_over_regset_sections): Add regset parameter
1388 to each callback invocation. Allow any .reg-xstate size when
1389 reading from a core file.
1390 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
1391 (arm_linux_iterate_over_regset_sections): Add regset parameter to
1392 each callback invocation.
1393 (arm_linux_init_abi): No longer set the regset_from_core_section
1394 gdbarch method.
1395 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
1396 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
1397 each callback invocation.
1398 (ppc_linux_init_abi): No longer set the regset_from_core_section
1399 gdbarch method.
1400 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
1401 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
1402 (s390_regset_from_core_section): Remove.
1403 (s390_iterate_over_regset_sections): Add regset parameter to each
1404 callback invocation.
1405 (s390_gdbarch_init): No longer set the regset_from_core_section
1406 gdbarch method. Drop initialization of deleted tdep fields.
1407
5aa82d05
AA
14082014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1409
1410 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
1411 (amd64_linux_iterate_over_regset_sections): New.
1412 (amd64_linux_init_abi_common): Don't install the regset section
1413 list, but the new iterator in gdbarch.
1414 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
1415 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
1416 (arm_linux_iterate_over_regset_sections): ...here. New function.
1417 (arm_linux_init_abi): Set iterator instead of section list.
1418 * corelow.c (get_core_registers_cb): New function, logic moved
1419 from...
1420 (get_core_registers): ...loop body here. Use new iterator method
1421 instead of walking through the regset section list.
1422 * gdbarch.sh: Remove 'core_regset_sections'. New method
1423 'iterate_over_regset_sections'. New typedef
1424 'iterate_over_regset_sections_cb'.
1425 * gdbarch.c: Regenerate.
1426 * gdbarch.h: Likewise.
1427 * i386-linux-tdep.c (i386_linux_regset_sections)
1428 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
1429 Remove.
1430 (i386_linux_iterate_over_regset_sections): New.
1431 (i386_linux_init_abi): Don't choose a regset section list, but
1432 install new iterator in gdbarch.
1433 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
1434 (linux_collect_regset_section_cb): New function, logic moved
1435 from...
1436 (linux_collect_thread_registers): ...loop body here. Use iterator
1437 method instead of walking through list.
1438 (linux_make_corefile_notes_1): Check for presence of iterator
1439 method instead of regset section list.
1440 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
1441 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
1442 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
1443 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
1444 (ppc_linux_iterate_over_regset_sections): ...here. New function.
1445 (ppc_linux_init_abi): Don't choose from above regset section
1446 lists, but install new iterator in gdbarch.
1447 * regset.h (struct core_regset_section): Remove.
1448 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
1449 have_linux_v1, have_linux_v2, and have_tdb.
1450 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
1451 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
1452 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
1453 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
1454 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
1455 (s390_iterate_over_regset_sections): ...here. New function. Use
1456 new tdep fields.
1457 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
1458 regset section lists, but install new iterator.
1459
2eca4a8d
JK
14602014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1461
1462 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
1463
a73c2b56
SM
14642014-09-26 Simon Marchi <simon.marchi@ericsson.com>
1465
1466 * progspace.c (print_program_space): Don't prune program spaces
1467 before printing them.
1468
03d46957
PA
14692014-09-25 Pedro Alves <palves@redhat.com>
1470
1471 * infrun.c (user_visible_resume_ptid): Don't check
1472 singlestep_breakpoints_inserted_p.
1473
e558d7c1
PA
14742014-09-25 Pedro Alves <palves@redhat.com>
1475
1476 * breakpoint.c (should_be_inserted): Add debug output.
1477
7f89fd65
PA
14782014-09-25 Pedro Alves <palves@redhat.com>
1479
1480 * infrun.c (stepping_past_instruction_at)
1481 (clear_exit_convenience_vars): Point at infrun.h instead of
1482 inferior.h.
1483 (handle_signal_stop): Fix typo.
1484
b7576e5c
YQ
14852014-09-24 Yao Qi <yao@codesourcery.com>
1486
1487 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
1488 bitmask.
1489
9a6cf368
GB
14902014-09-22 Gary Benson <gbenson@redhat.com>
1491
1492 * target.c (target_stop): Updated comment.
1493
03f4463b
GB
14942014-09-22 Gary Benson <gbenson@redhat.com>
1495
1496 * target/target.h (target_stop_ptid): Renamed as...
1497 (target_stop_and_wait): New function. Updated comment.
1498 All uses updated.
1499 (target_continue_ptid): Renamed as...
1500 (target_continue_no_signal): New function. Updated comment.
1501 All uses updated.
1502
a25a5a45
PA
15032014-09-22 Pedro Alves <palves@redhat.com>
1504
1505 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
1506 and "auto" merged.
1507 * breakpoint.c (enum ugll_insert_mode): New enum.
1508 (always_inserted_mode): Now a plain boolean.
1509 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
1510 (breakpoints_always_inserted_mode): Delete.
1511 (breakpoints_should_be_inserted_now): New function.
1512 (insert_breakpoints): Pass UGLL_INSERT to
1513 update_global_location_list instead of calling
1514 insert_breakpoint_locations manually.
1515 (create_solib_event_breakpoint_1): New, factored out from ...
1516 (create_solib_event_breakpoint): ... this.
1517 (create_and_insert_solib_event_breakpoint): Use
1518 create_solib_event_breakpoint_1 instead of calling
1519 insert_breakpoint_locations manually.
1520 (update_global_location_list): Change parameter type from boolean
1521 to enum ugll_insert_mode. All callers adjusted. Adjust to use
1522 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
1523 (update_global_location_list_nothrow): Change parameter type from
1524 boolean to enum ugll_insert_mode.
1525 (_initialize_breakpoint): "breakpoint always-inserted" option is
1526 now a boolean command. Update help text.
1527 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
1528 (breakpoints_should_be_inserted_now): New declaration.
1529 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
1530 Remove breakpoints_always_inserted_mode check.
1531 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
1532 * remote.c (remote_start_remote): Likewise.
1533
04086b45
PA
15342014-09-22 Pedro Alves <palves@redhat.com>
1535
1536 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
1537 (insert_breakpoints): Don't call insert_breakpoint_locations here.
1538 Instead, pass UGLL_INSERT to update_global_location_list.
1539 (update_global_location_list): Change parameter type from boolean
1540 to enum ugll_insert_mode. All callers adjusted. Adjust to use
1541 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
1542 (create_solib_event_breakpoint_1): New, factored out from ...
1543 (create_solib_event_breakpoint): ... this.
1544 (create_and_insert_solib_event_breakpoint): Use
1545 create_solib_event_breakpoint_1 instead of calling
1546 insert_breakpoint_locations manually.
1547 (update_global_location_list): Handle UGLL_INSERT.
1548
44702360
PA
15492014-09-22 Pedro Alves <palves@redhat.com>
1550
1551 * breakpoint.c (enum ugll_insert_mode): New enum.
1552 (update_global_location_list)
1553 (update_global_location_list_nothrow): Change parameter type from
1554 boolean to enum ugll_insert_mode. All callers adjusted.
1555
93c6145a
JB
15562014-09-19 Joel Brobecker <brobecker@adacore.com>
1557
1558 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
1559 SystemTap support in GDB.
1560
89a5711c
DB
15612014-09-19 Don Breazeal <donb@codesourcery.com>
1562
1563 * linux-nat.c (linux_handle_extended_wait): Call
1564 linux_ptrace_get_extended_event.
1565 (wait_lwp): Call linux_is_extended_waitstatus.
1566 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
1567 and linux_is_extended_waitstatus.
1568 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
1569 linux_ptrace_get_extended_event.
1570 (linux_ptrace_get_extended_event): New function.
1571 (linux_is_extended_waitstatus): New function.
1572 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
1573 (linux_is_extended_waitstatus): New declarations.
1574
c3b7b696
YQ
15752014-09-19 Yao Qi <yao@codesourcery.com>
1576
1577 * dwarf2read.c (dwarf_decode_lines): Update declaration.
1578 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
1579 comments. Callers update.
1580 (dwarf_decode_lines): Likewise.
1581 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
1582 comments. Skip the line table if 'lowpc' is greater than
1583 'address'. Don't check
1584 dwarf2_per_objfile->has_section_at_zero.
1585
2b4fd423
DE
15862014-09-18 Doug Evans <dje@google.com>
1587
1588 * NEWS: Mention new "producer" attribute of gdb.Symtab.
1589 * python/py-symtab.c (stpy_get_producer): New function.
1590 (symtab_object_getset): Add "producer" attribute.
1591
5e43d467
UW
15922014-09-17 Ulrich Weigand  <uweigand@de.ibm.com>
1593
1594 PR gdb/17384
1595 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
1596 (do_captured_read_memory_integer): Remove.
1597 (safe_read_memory_integer): Use target_read_memory directly instead
1598 of catching errors in do_captured_read_memory_integer.
1599
04e79979
MR
16002014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
1601
1602 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
1603 not gdb/doc.
1604
76aeec5b
SDJ
16052014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1606
1607 * objc-lang.c (find_implementation_from_class): Remove dead code.
1608
2f693f9d
SDJ
16092014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1610
1611 PR cli/7233
1612 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
1613 "fprintf_unfiltered (gdb_stdlog...)".
1614
bb9d5f81
PP
16152014-09-16 Patrick Palka <patrick@parcs.ath.cx>
1616
1617 PR breakpoints/12526
1618 * breakpoint.h (struct watchpoint): New fields val_bitpos and
1619 val_bitsize.
1620 * breakpoint.c (watch_command_1): Use these fields to retain
1621 bitfield information.
1622 (extract_bitfield_from_watchpoint_value): New function.
1623 (watchpoint_check): Use it.
1624 (update_watchpoint): Use it. Optimize the address and length of a
1625 HW watchpoint pointing to a bitfield.
1626 * value.h (unpack_value_bitfield): New prototype.
1627 * value.c (unpack_value_bitfield): Make extern.
1628
05db5edd
ST
16292014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
1630
1631 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
1632 x86-dregs.o.
1633 * gnu-nat.c (inf_threads): New function.
1634 * gnu-nat.h (inf_threads_ftype): New typedef.
1635 (inf_threads): New declaration.
1636 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
1637 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
1638 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
1639 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
1640 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
1641 (i386_gnu_dr_get_control): New functions.
1642 (reg_addr): New structure.
1643 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
1644 i386 debugging register hooks.
1645 * NEWS: Mention this.
1646
5a578da5
OJ
16472014-08-13 Omair Javaid <omair.javaid@linaro.org>
1648
1649 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
1650 vector data transfer instructions.
1651 (arm_record_coproc_data_proc): Updated.
1652
f20f80dd
OJ
16532014-08-13 Omair Javaid <omair.javaid@linaro.org>
1654
1655 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
1656 arm_record_exreg_ld_st_insn.
1657 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
1658 load/store insns.
1659
851f26ae
OJ
16602014-08-13 Omair Javaid <omair.javaid@linaro.org>
1661
1662 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
1663 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
1664 processing instructions.
1665
1e1b6563
OJ
16662014-08-13 Omair Javaid <omair.javaid@linaro.org>
1667
1668 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
1669 for advance SIMD struct ld/st insn.
1670 (thumb2_record_decode_insn_handler): Replace stub handler with
1671 thumb2_record_asimd_struct_ld_st.
1672
60cc5e93
OJ
16732014-08-13 Omair Javaid <omair.javaid@linaro.org>
1674
1675 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
1676 for asimd, vfp and coprocessor insns.
1677 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
1678 and coprocessor insns.
1679 (thumb2_record_coproc_insn): New function.
1680 (thumb2_record_decode_insn_handler): Update coprocessor insns record
1681 handlers.
1682 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
1683 opcode 110 insns.
1684
81219e53
DE
16852014-09-13 Doug Evans <xdje42@gmail.com>
1686
1687 * NEWS: Mention new "queue-signal" command.
1688 * infcmd.c (queue_signal_command): New function.
1689 (_initialize_infcmd): Add new queue-signal command.
1690
d36bf488
DE
16912014-09-13 Doug Evans <xdje42@gmail.com>
1692
1693 * linux-nat.c (wait_lwp): Add debugging printf.
1694 (linux_nat_wait_1): Ditto.
1695
f37f681c
PA
16962014-09-12 Pedro Alves <palves@redhat.com>
1697
1698 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
1699 (create_and_insert_solib_event_breakpoint): New functions.
1700 * breakpoint.h (create_and_insert_solib_event_breakpoint)
1701 (remove_solib_event_breakpoints_at_next_stop): New declarations.
1702 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
1703 (remove_dbx_link_breakpoint): Delete function.
1704 (insert_dbx_link_bpt_in_file): Use
1705 create_and_insert_solib_event_breakpoint instead of
1706 deprecated_insert_raw_breakpoint.
1707 (procfs_wait): Don't check whether we hit __dbx_link here.
1708 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
1709 here.
1710 * solib-irix.c (base_breakpoint): Delete global.
1711 (disable_break): Delete function.
1712 (enable_break): Use create_solib_event_breakpoint
1713 instead of deprecated_insert_raw_breakpoint.
1714 (irix_solib_handle_event): New function.
1715 (irix_solib_create_inferior_hook): Don't run the target or disable
1716 the mapping-complete breakpoint here.
1717 (_initialize_irix_solib): Install irix_solib_handle_event as
1718 so_ops->handle_event hook.
1719
9d9bf2df
EBM
17202014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1721 Ulrich Weigand  <uweigand@de.ibm.com>
1722
1723 PR tdep/17379
1724 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
1725 instead of read_memory_unsigned_integer.
1726
b006a80e
GB
17272014-09-12 Gary Benson <gbenson@redhat.com>
1728
1729 * nat/linux-waitpid.c: Include common-defs.h.
1730 [GDBSERVER]: Add FIXME comment.
1731 [!GDBSERVER]: Don't include defs.h or signal.h.
1732 (linux_debug) [!GDBSERVER]: Remove empty block.
1733
296b1496
GB
17342014-09-12 Gary Benson <gbenson@redhat.com>
1735
1736 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
1737 Don't include defs.h or server.h.
1738
53f81362
GB
17392014-09-12 Gary Benson <gbenson@redhat.com>
1740
1741 * nat/linux-btrace.c: Include common-defs.h.
1742 Don't include defs.h, server.h or gdbthread.h.
1743 * nat/linux-btrace.h (struct target_ops): New forward declaration.
1744
727605ca
GB
17452014-09-12 Gary Benson <gbenson@redhat.com>
1746
1747 * common/agent.c: Include common-defs.h.
1748 Don't include defs.h or server.h.
1749 * common/buffer.c: Likewise.
1750 * common/common-debug.c: Likewise.
1751 * common/common-utils.c: Likewise.
1752 * common/errors.c: Likewise.
1753 * common/filestuff.c: Likewise.
1754 * common/format.c: Likewise.
1755 * common/gdb_vecs.c: Likewise.
1756 * common/print-utils.c: Likewise.
1757 * common/ptid.c: Likewise.
1758 * common/rsp-low.c: Likewise.
1759 * common/signals.c: Likewise.
1760 * common/vec.c: Likewise.
1761 * common/xml-utils.c: Likewise.
1762 * nat/linux-osdata.c: Likewise.
1763 * nat/linux-procfs.c: Likewise.
1764 * nat/linux-ptrace.c: Likewise.
1765 * nat/mips-linux-watch.c: Likewise.
1766 * target/waitstatus.c: Likewise.
1767
361c8ade
GB
17682014-09-12 Tom Tromey <tromey@redhat.com>
1769 Gary Benson <gbenson@redhat.com>
1770
1771 * common/common-regcache.h: New file.
1772 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
1773 * regcache.h: Include common-regcache.h.
1774 (regcache_read_pc): Don't declare.
1775 * regcache.c (get_thread_regcache_for_ptid): New function.
1776 * nat/linux-btrace.c: Don't include regcache.h.
1777 Include common-regcache.h.
1778 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
1779
a01cbb49
TS
17802014-09-11 Thomas Schwinge <thomas@codesourcery.com>
1781
1782 * regcache.h (struct regset): Declare.
1783
98880d46
PA
17842014-09-11 Pedro Alves <palves@redhat.com>
1785
1786 PR gdb/17347
1787 * main.c: Include "infrun.h".
1788 (catch_command_errors, catch_command_errors_const): Wait for the
1789 foreground command to complete.
1790 * top.c (maybe_wait_sync_command_done): New function, factored out
1791 from ...
1792 (maybe_wait_sync_command_done): ... here.
1793 * top.h (maybe_wait_sync_command_done): New declaration.
1794
bd9269f7
GB
17952014-09-11 Tom Tromey <tromey@redhat.com>
1796 Gary Benson <gbenson@redhat.com>
1797
1798 * common/symbol.h: New file.
1799 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
1800 * minsyms.c (find_minimal_symbol_address): New function.
1801 * common/agent.c: Include common/symbol.h.
1802 [!GDBSERVER]: Don't include objfiles.h.
1803 (agent_look_up_symbols): Use find_minimal_symbol_address.
1804
f8c1d06b
GB
18052014-09-11 Gary Benson <gbenson@redhat.com>
1806
1807 * target/target.h (target_stop_ptid, target_continue_ptid):
1808 Declare.
1809 * target.c (target_stop_ptid, target_continue_ptid): New
1810 functions.
1811 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
1812 (agent_run_command): Always use target_stop_ptid and
1813 target_continue_ptid.
1814
721ec300
GB
18152014-09-11 Tom Tromey <tromey@redhat.com>
1816 Gary Benson <gbenson@redhat.com>
1817
1818 * target/target.h: New file.
1819 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
1820 * target.h: Include target/target.h.
1821 (target_read_memory, target_write_memory): Don't declare.
1822 * target.c (target_read_uint32): New function.
1823 * common/agent.c: Include target/target.h.
1824 [!GDBSERVER]: Don't include target.h.
1825 (helper_thread_id): Type changed to uint32_t.
1826 (agent_get_helper_thread_id): Use target_read_uint32.
1827 (agent_run_command): Always use target_read_memory and
1828 target_write_memory.
1829 (agent_capability): Type changed to uint32_t.
1830 (agent_capability_check): Use target_read_uint32.
1831
c5e92cca
GB
18322014-09-11 Gary Benson <gbenson@redhat.com>
1833
1834 * common/common-debug.h (show_debug_regs): Declare.
1835 * common/common-debug.c (show_debug_regs): Define.
1836 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
1837 all uses with show_debug_regs. Replace all uses that considered
1838 debug_hw_points as a multi-value integer with straight boolean
1839 uses.
1840 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
1841 with show_debug_regs.
1842 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
1843 all uses with show_debug_regs.
1844 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
1845 uses with show_debug_regs.
1846
eeef931a
UW
18472014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
1848
1849 * findvar.c (address_from_register): Handle targets requiring
1850 a special conversion routine even for plain pointer types.
1851
8efa9855
UW
18522014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
1853
1854 * rs6000-nat.c (exec_one_dummy_insn): Remove.
1855 (store_register): Do not call exec_one_dummy_insn.
1856
eb479039
JB
18572014-09-10 Joel Brobecker <brobecker@adacore.com>
1858
1859 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
1860 dereference it first. Use value_enclosing_type instead of
1861 value_type.
1862 (ada_array_length): Likewise.
1863
deede10c
JB
18642014-09-10 Joel Brobecker <brobecker@adacore.com>
1865
1866 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
1867 Adjust function implementation and documentation accordingly.
1868 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
1869 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
1870 Update call to ada_value_ptr_subscript.
1871
7828a5f5
JB
18722014-09-10 Joel Brobecker <brobecker@adacore.com>
1873
1874 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
1875 instead of VAL's type.
1876
35782f14
JB
18772014-09-10 Joel Brobecker <brobecker@adacore.com>
1878
1879 * amd64-linux-nat.c: Add <sys/uio.h> #include.
1880
d342a0da
DE
18812014-09-09 Doug Evans <xdje42@gmail.com>
1882
1883 PR guile/17367
1884 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
1885 last parameter to pkg-config, not first.
1886 * configure.ac: Pass --with-guile provided pkg-config path to
1887 GDB_GUILE_PROGRAM_NAMES.
1888 * configure: Regenerate.
1889
b4a3d263
GKB
18902014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
1891
1892 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
1893 Bertazi".
1894
6e466374
MR
18952014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
1896
1897 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
1898 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
1899 the list of sections determining GDB_OSABI_IRIX.
1900
a1ada89a
JH
19012014-09-09 James Hogan <james.hogan@imgtec.com>
1902
1903 * MAINTAINERS (Write After Approval): Add "James Hogan".
1904
86db008d
JH
19052014-09-09 James Hogan <james.hogan@imgtec.com>
1906
1907 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
1908
72fde3df
JB
19092014-09-09 Joel Brobecker <brobecker@adacore.com>
1910
1911 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
1912
92d8d229
DE
19132014-09-08 Doug Evans <xdje42@gmail.com>
1914
1915 PR 17247
1916 * guile.c: #include <signal.h>.
1917 (_initialize_guile): Block SIGCHLD while initializing Guile.
1918
1919 Replaces the following, which is reverted.
1920
1921 2014-07-26 Doug Evans <xdje42@gmail.com>
1922
1923 PR 17185
1924 * configure.ac: Add check for header gc/gc.h.
1925 Add check for function setenv.
1926 * configure: Regenerate.
1927 * config.in: Regenerate.
1928 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1929
d81412aa
DE
19302014-09-08 Doug Evans <xdje42@gmail.com>
1931
1932 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
1933 with named constant. Fix style of pointer comparison.
1934 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
1935
a9f116cb
GKB
19362014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
1937
1938 PR gdb/17035
1939 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
1940 decide whether we display the command on "show user".
1941 * cli/cli-script.c (show_user_1): Only verify cmdlines after
1942 printing command name.
1943 * cli/cli-decode.h (cli_user_command_p): Declare new function.
1944 * cli/cli-decode.c (cli_user_command_p): Create helper function
1945 to verify whether cmd_list_element is a user-defined command.
1946
c75bd3a2
JK
19472014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1948
1949 PR python/17355
1950 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
1951 Fix goto out of TRY_CATCH.
1952
faa42425 19532014-09-06 Doug Evans <xdje42@gmail.com>
1a52a81c 1954 Tom Tromey <tromey@redhat.com>
faa42425
DE
1955
1956 PR 15276
1957 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
1958 $_any_caller_matches.
1959 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
1960 * python/lib/gdb/function/caller_is.py: New file.
1961
0d41ba00
DE
19622014-09-06 Doug Evans <xdje42@gmail.com>
1963
1964 * infcmd.c (program_info): Fix typo.
1965
474ca4f6
SDJ
19662014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
1967
1968 PR gdb/17235
1969 * stap-probe.c (stap_parse_single_operand): Delete unused variable
1970 'number'. New variable 'has_digit'. Rewrite code to deal with
1971 subexpressions on SDT probes.
1972
ebf13736
PA
19732014-09-04 Pedro Alves <palves@redhat.com>
1974
1975 * c-exp.y (parse_number): Skip handling base-switching prefixes if
1976 the input is only one character long.
1977
eb0b0463
SDJ
19782014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
1979
1980 PR fortran/17237
1981 * f-valprint.c (f_val_print): Specify the correct print option to
1982 use when printing integer values.
1983
5ee44bfa
GB
19842014-09-04 Gary Benson <gbenson@redhat.com>
1985
1986 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
1987 Remove code to cope with LWPs wrapped as PIDs.
1988 Add assertions to ensure no wrapped LWPs are passed.
1989
4875ffdb
PA
19902014-09-04 Pedro Alves <palves@redhat.com>
1991
1992 * value.c (value_ranges_copy_adjusted): New function, factored out
1993 from ...
1994 (value_contents_copy_raw): ... here.
1995 (unpack_value_bits_as_long_1): Rename back to ...
1996 (unpack_bits_as_long): ... this. Remove 'original_value' and
1997 'result' parameters. Change return type to LONGEST.
1998 (unpack_value_bits_as_long): Delete.
1999 (unpack_value_field_as_long_1): Delete.
2000 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
2001 (unpack_value_bitfield): New function.
2002 (value_field_bitfield): Reimplement using unpack_value_bitfield.
2003 (value_fetch_lazy): Use unpack_value_bitfield.
2004 * value.h (unpack_value_bits_as_long): Delete declaration.
2005
5f3b99cf
SS
20062014-09-03 Sasha Smundak <asmundak@google.com>
2007
2008 * python/py-frame.c (frapy_read_register): New function.
2009
ac740bc7
JH
20102014-09-03 James Hogan <james.hogan@imgtec.com>
2011
2012 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
2013 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
2014
7d793aa9
SDJ
20152014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
2016
2017 PR python/16699
2018 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
2019 function.
2020 (add_cmd): Set "completer_handle_brkchars" to NULL.
2021 * cli/cli-decode.h (struct cmd_list_element)
2022 <completer_handle_brkchars>: New field.
2023 * command.h (completer_ftype_void): New typedef.
2024 (set_cmd_completer_handle_brkchars): New prototype.
2025 * completer.c (set_gdb_completion_word_break_characters): New
2026 function.
2027 (complete_line_internal): Call "completer_handle_brkchars"
2028 callback from command.
2029 * completer.h: Include "command.h".
2030 (set_gdb_completion_word_break_characters): New prototype.
2031 * python/py-cmd.c (cmdpy_completer_helper): New function.
2032 (cmdpy_completer_handle_brkchars): New function.
2033 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
2034 (cmdpy_init): Set completer_handle_brkchars to
2035 cmdpy_completer_handle_brkchars.
2036
97ea6506
GB
20372014-09-03 Gary Benson <gbenson@redhat.com>
2038
2039 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
2040 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
2041 Loop conditions changed to equivalent form.
2042 (struct x86_debug_reg_state): Updated dr_ref_count comment.
2043 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
2044 ALL_DEBUG_ADDRESS_REGISTERS.
2045
d1437815
JB
20462014-09-03 Joel Brobecker <brobecker@adacore.com>
2047
2048 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
2049 description fix.
2050
9b94fcf1
DE
20512014-09-02 Doug Evans <dje@google.com>
2052
2053 * typeprint.c (find_global_typedef): Fix comment.
2054
df7e5265
GB
20552014-09-02 Gary Benson <gbenson@redhat.com>
2056
2057 * i386-nat.h: Renamed as...
2058 * x86-nat.h: New file. All type, function and variable name
2059 prefixes changed from "i386_" to "x86_". All references updated.
2060 * i386-nat.c: Renamed as...
2061 * x86-nat.c: New file. All type, function and variable name
2062 prefixes changed from "i386_" to "x86_". All references updated.
2063 * common/i386-xstate.h: Renamed as...
2064 * common/x86-xstate.h: New file. All type, function and variable
2065 name prefixes changed from "i386_" to "x86_". All references
2066 updated.
2067 * nat/i386-cpuid.h: Renamed as...
2068 * nat/x86-cpuid.h: New file. All type, function and variable name
2069 prefixes changed from "i386_" to "x86_". All references updated.
2070 * nat/i386-gcc-cpuid.h: Renamed as...
2071 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
2072 name prefixes changed from "i386_" to "x86_". All references
2073 updated.
2074 * nat/i386-dregs.h: Renamed as...
2075 * nat/x86-dregs.h: New file. All type, function and variable name
2076 prefixes changed from "i386_" to "x86_". All references updated.
2077 * nat/i386-dregs.c: Renamed as...
2078 * nat/x86-dregs.c: New file. All type, function and variable name
2079 prefixes changed from "i386_" to "x86_". All references updated.
2080
1c3569d4
MR
20812014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
2082
2083 * varobj.c (_initialize_varobj): Move to the end of file.
2084
ff55e1b5
GB
20852014-08-29 Gary Benson <gbenson@redhat.com>
2086
2087 * common/common-exceptions.h: New file.
2088 * common/common-exceptions.c: Likewise.
2089 * Makefile.in (SFILES): Add common/common-exceptions.c.
2090 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
2091 (COMMON_OBS): Add common-exceptions.o.
2092 (common-exceptions.o): New rule.
2093 * exceptions.h (common-exceptions.h): Include.
2094 (gdb_setjmp.h): Do not include.
2095 (return_reason): Moved to common-exceptions.h.
2096 (enum return_reason): Likewise.
2097 (RETURN_MASK): Likewise.
2098 (typedef return_mask): Likewise.
2099 (enum errors): Likewise.
2100 (struct gdb_exception): Likewise.
2101 (exceptions_state_mc_init): Likewise.
2102 (exceptions_state_mc_action_iter): Likewise.
2103 (exceptions_state_mc_action_iter_1): Likewise.
2104 (TRY_CATCH): Likewise.
2105 (throw_exception): Likewise.
2106 (throw_verror): Likewise.
2107 (throw_vquit): Likewise.
2108 (throw_error): Likewise.
2109 (throw_quit): Likewise.
2110 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
2111 (enum catcher_action): Likewise.
2112 (struct catcher): Likewise.
2113 (current_catcher): Likewise.
2114 (catcher_list_size): Likewise.
2115 (exceptions_state_mc_init): Likewise.
2116 (catcher_pop): Likewise.
2117 (exceptions_state_mc): Likewise.
2118 (exceptions_state_mc_action_iter): Likewise.
2119 (exceptions_state_mc_action_iter_1): Likewise.
2120 (throw_exception): Likewise.
2121 (exception_messages): Likewise.
2122 (exception_messages_size): Likewise.
2123 (throw_it): Likewise.
2124 (throw_verror): Likewise.
2125 (throw_vquit): Likewise.
2126 (throw_error): Likewise.
2127 (throw_quit): Likewise.
2128 (prepare_to_throw_exception): New function.
2129
e9bcb658
GB
21302014-08-29 Gary Benson <gbenson@redhat.com>
2131
2132 * common/gdb_setjmp.h: New file.
2133 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
2134 * configure.ac: Move sigsetjmp check...
2135 * common/common.m4: ...here.
2136 * configure: Regenerate.
2137 * cp-support.c (SIGJMP_BUF): Delete.
2138 (SIGSETJMP): Likewise.
2139 (SIGLONGJMP): Likewise.
2140 * exceptions.h (gdb_setjmp.h): Include.
2141 (setjmp.h): Do not include.
2142 (EXCEPTIONS_SIGJMP_BUF): Delete.
2143 (EXCEPTIONS_SIGSETJMP): Likewise.
2144 (EXCEPTIONS_SIGLONGJMP): Likewise.
2145 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
2146 from gdb_setjmp.h.
2147 * exceptions.c: Likewise.
2148
e3180625
GB
21492014-08-29 Gary Benson <gbenson@redhat.com>
2150
2151 * cleanups.h: Moved to...
2152 * common/cleanups.h: New file.
2153 * cleanups.c: Moved to...
2154 * common/cleanups.c: New file. Include common-defs.h and
2155 cleanups.h. Do not include defs.h.
2156 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
2157 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
2158 (cleanups.o): New rule.
2159
e3d6ba5d
GB
21602014-08-29 Gary Benson <gbenson@redhat.com>
2161
2162 * common/errors.h (internal_warning): New declaration.
2163 (internal_vwarning): Likewise.
2164 * common/errors.c (internal_warning): New function.
2165 * utils.h (internal_warning): Don't declare.
2166 (internal_vwarning): Likewise.
2167 * utils.c (internal_warning): Removed.
2168
075c7033
GB
21692014-08-29 Gary Benson <gbenson@redhat.com>
2170
2171 * main.c (captured_main): Use warning during startup.
2172 Prefix startup warning messages with command name.
2173
91b35fd0
GB
21742014-08-29 Gary Benson <gbenson@redhat.com>
2175
2176 * main.c (captured_main): Handle usage errors with error.
2177
b1ec390e
GB
21782014-08-29 Gary Benson <gbenson@redhat.com>
2179
2180 * go32-nat.c (go32_create_inferior): Replace a fprintf/
2181 exit pair with a call to error. Wrap the message with _().
2182
fd0ef3dd
GB
21832014-08-29 Gary Benson <gbenson@redhat.com>
2184
2185 * main.c (captured_main): Replace a fprintf/exit
2186 pair with a call to error. Wrap the message with _().
2187
e0e6bcab
GB
21882014-08-29 Gary Benson <gbenson@redhat.com>
2189
2190 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
2191 pairs with calls to error. Wrap the message with _().
2192
0d2f5c07
GB
21932014-08-29 Gary Benson <gbenson@redhat.com>
2194
2195 * utils.c (vwarning): Protect calls to target_terminal_ours
2196 and wrap_here.
2197
5df43998
GB
21982014-08-29 Gary Benson <gbenson@redhat.com>
2199
2200 * exceptions.c (print_flush): Protect calls to
2201 target_terminal_ours and wrap_here.
2202
2437fd32
GB
22032014-08-29 Gary Benson <gbenson@redhat.com>
2204
2205 * utils.h (filtered_printing_initialized): New declaration.
2206 * utils.c (abort_with_message): New function.
2207 (internal_vproblem): Use abort_with_message for first level
2208 recursive internal problems, and if gdb_stderr is not set up.
2209 Protect calls to target_terminal_ours, begin_line and query.
2210
f1f58506
DE
22112014-08-28 Doug Evans <dje@google.com>
2212
2213 * symtab.c (in_prologue): Move definition to better spot.
2214 (skip_prologue_using_sal): Ditto.
2215
aab2f208
DE
22162014-08-28 Doug Evans <dje@google.com>
2217
2218 * symtab.c (find_function_start_sal): Move definition to better spot.
2219
6b65d1b6
YQ
22202014-08-28 Yao Qi <yao@codesourcery.com>
2221
2222 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
2223 found_stack_adjust in forward scan. Remove condition check
2224 on found_stack_adjust which is always true. Indent the code.
2225
a1b34d15
YQ
22262014-08-28 Yao Qi <yao@codesourcery.com>
2227
2228 * dwarf2read.c (dwarf_decode_lines): Update declaration.
2229 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
2230 (dwarf_decode_lines): Remove argument
2231 want_line_info. Remove condition check on want_line_info.
2232 Callers update.
2233
d5962de5
DE
22342014-08-27 Doug Evans <dje@google.com>
2235
2236 * dwarf2read.c (dwarf_record_line): Fix typo.
2237
9b139002
SDJ
22382014-08-27 Patrick Palka <patrick@parcs.ath.cx>
2239
2240 * target.h (struct target_ops::to_terminal_save_ours): Remove
2241 declaration.
2242 (target_terminal_save_ours): Remove macro.
2243 * target-delegates.c: Regenerate.
2244 * inf-child.c (inf_child_target): Don't set the nonexistent
2245 field to_terminal_save_ours.
2246 * inferior.h (child_terminal_save_ours): Remove declaration.
2247 * terminal.h (gdb_save_tty_state): New declaration.
2248 * inflow.c (child_terminal_save_ours): Rename to ...
2249 (gdb_save_tty_state): ... this.
2250 * tui/tui.c: Include terminal.h.
2251 (tui_enable): Use gdb_save_tty_state instead of
2252 target_terminal_save_ours.
2253 (tui_disable): Likewise.
2254
9debeba0
DE
22552014-08-25 Doug Evans <dje@google.com>
2256
2257 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
2258 Pass NULL instead of 0 for context pointer.
2259
428fc5fc
YQ
22602014-08-25 Yao Qi <yao@codesourcery.com>
2261
2262 * dwarf2read.c: Fix grammatical error.
2263
cdc07690
YQ
22642014-08-24 Yao Qi <yao@codesourcery.com>
2265
2266 * dwarf2read.c (scan_partial_symbols): Update comments.
2267 Rename argument 'need_pc' with 'set_addrmap'.
2268 (add_partial_namespace): Rename argument 'need_pc' with
2269 'set_addrmap'.
2270 (add_partial_module): Likewise.
2271 (add_partial_subprogram): Likewise. Update comments.
2272 (dwarf2_name): Fix typo.
2273
a05a36a5
DE
22742014-08-22 Doug Evans <dje@google.com>
2275
2276 PR 17276
2277 * dwarf2read.c (dwarf_record_line_p): New function.
2278 (dwarf_decode_lines_1): Ignore subsequent line number entries
2279 for the same line if any entry had a non-zero discriminator.
2280
252a6764
DE
22812014-08-22 Doug Evans <dje@google.com>
2282
2283 * buildsym.h (record_line_ftype): New typedef.
2284 (record_line): Use it.
2285 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
2286 (dwarf_decode_lines_1): Call them.
2287
510db052
YQ
22882014-08-22 Yao Qi <yao@codesourcery.com>
2289
2290 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
2291 (ctf_end): Remove code.
2292
22fd09ae
JK
22932014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2294
2295 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
2296 (linux_make_corefile_notes): call update_thread_list, protected against
2297 exceptions.
2298
656e8868
PA
22992014-08-21 Pedro Alves <palves@redhat.com>
2300
2301 * infcmd.c (attach_command): Remove comment.
2302
de589d04
WN
23032014-08-21 Bin Cheng <bin.cheng@arm.com>
2304
2305 * aarch64-linux-nat.c (dr_changed_t): Change the type from
2306 unsigned LONGEST to ULONGEST.
2307
2a31c623
PA
23082014-08-20 Pedro Alves <palves@redhat.com>
2309
2310 * Makefile.in (check-read1): New rule.
2311
d36430db
JB
23122014-08-20 Joel Brobecker <brobecker@adacore.com>
2313
2314 * value.c (value_from_contents_and_address): Strip resolved_type's
2315 typedef layers before checking its TYPE_DATA_LOCATION.
2316
000339af
PA
23172014-08-20 Pedro Alves <palves@redhat.com>
2318
2319 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
2320
5f52445b
YQ
23212014-08-20 Yao Qi <yao@codesourcery.com>
2322
2323 * amd64-tdep.c (amd64_classify): Add a blank line after the
2324 example. Move "*/" to a new line.
2325 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
2326 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
2327 * dwarf2read.c (psymtab_include_file_name): Likewise.
2328
9a0dc9e3
PA
23292014-08-19 Andrew Burgess <aburgess@broadcom.com>
2330 Pedro Alves <palves@redhat.com>
2331
2332 PR symtab/14604
2333 PR symtab/14605
2334 * ada-lang.c (coerce_unspec_val_to_type): Use
2335 value_contents_copy_raw.
2336 * ada-valprint.c (val_print_packed_array_elements): Adjust.
2337 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
2338 * cp-valprint.c (cp_print_value_fields): Let the common printing
2339 code handle optimized out values.
2340 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
2341 * d-valprint.c (dynamic_array_type): Use
2342 value_bits_any_optimized_out.
2343 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
2344 check_any_valid fields.
2345 (check_pieced_value_bits): Delete and inline ...
2346 (check_pieced_synthetic_pointer): ... here.
2347 (check_pieced_value_validity): Delete.
2348 (check_pieced_value_invalid): Delete.
2349 (pieced_value_funcs): Remove check_validity and check_any_valid
2350 fields.
2351 (read_pieced_value): Use mark_value_bits_optimized_out.
2352 (write_pieced_value): Switch to use
2353 mark_value_bytes_optimized_out.
2354 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
2355 of assuming the whole value is optimized out.
2356 * findvar.c (read_frame_register_value): Remove special handling
2357 of optimized out registers.
2358 (value_from_register): Use mark_value_bytes_optimized_out.
2359 * frame-unwind.c (frame_unwind_got_optimized): Use
2360 mark_value_bytes_optimized_out.
2361 * jv-valprint.c (java_value_print): Adjust.
2362 (java_print_value_fields): Let the common printing code handle
2363 optimized out values.
2364 * mips-tdep.c (mips_print_register): Remove special handling of
2365 optimized out registers.
2366 * opencl-lang.c (lval_func_check_validity): Delete.
2367 (lval_func_check_any_valid): Delete.
2368 (opencl_value_funcs): Remove check_validity and check_any_valid
2369 fields.
2370 * p-valprint.c (pascal_object_print_value_fields): Let the common
2371 printing code handle optimized out values.
2372 * stack.c (read_frame_arg): Remove special handling of optimized
2373 out values. Fetch both VAL and ENTRYVAL before comparing
2374 contents. Adjust to value_available_contents_eq rename.
2375 * valprint.c (valprint_check_validity)
2376 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
2377 (val_print_array_elements): Adjust.
2378 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
2379 (value_bits_any_optimized_out): New function.
2380 (value_entirely_covered_by_range_vector): New function, factored
2381 out from value_entirely_unavailable.
2382 (value_entirely_unavailable): Reimplement.
2383 (value_entirely_optimized_out): New function.
2384 (insert_into_bit_range_vector): New function, factored out from
2385 mark_value_bits_unavailable.
2386 (mark_value_bits_unavailable): Reimplement.
2387 (struct ranges_and_idx): New struct.
2388 (find_first_range_overlap_and_match): New function, factored out
2389 from value_available_contents_bits_eq.
2390 (value_available_contents_bits_eq): Rename to ...
2391 (value_contents_bits_eq): ... this. Check both unavailable
2392 contents and optimized out contents.
2393 (value_available_contents_eq): Rename to ...
2394 (value_contents_eq): ... this.
2395 (allocate_value_lazy): Remove reference to the old optimized_out
2396 boolean.
2397 (allocate_optimized_out_value): Use
2398 mark_value_bytes_optimized_out.
2399 (require_not_optimized_out): Adjust to check whether the
2400 optimized_out vec is empty.
2401 (ranges_copy_adjusted): New function, factored out from
2402 value_contents_copy_raw.
2403 (value_contents_copy_raw): Also copy the optimized out ranges.
2404 Assert the destination ranges aren't optimized out.
2405 (value_contents_copy): Update comment, remove call to
2406 require_not_optimized_out.
2407 (value_contents_equal): Adjust to check whether the optimized_out
2408 vec is empty.
2409 (set_value_optimized_out, value_optimized_out_const): Delete.
2410 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
2411 New functions.
2412 (value_entirely_optimized_out, value_bits_valid): Delete.
2413 (value_copy): Take a VEC copy of the 'optimized_out' field.
2414 (value_primitive_field): Remove special handling of optimized out.
2415 (value_fetch_lazy): Assert that lazy values have no unavailable
2416 regions. Use value_bits_any_optimized_out. Remove some special
2417 handling for optimized out values.
2418 * value.h: Add intro comment about <optimized out> and
2419 <unavailable>.
2420 (struct lval_funcs): Remove check_validity and check_any_valid
2421 fields.
2422 (set_value_optimized_out, value_optimized_out_const): Remove.
2423 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
2424 New declarations.
2425 (value_bits_any_optimized_out): New declaration.
2426 (value_bits_valid): Delete declaration.
2427 (value_available_contents_eq): Rename to ...
2428 (value_contents_eq): ... this, and extend comments.
2429
6694c411
JK
24302014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2431
2432 Fix -fsanitize=address on unreadable inferior strings.
2433 * valprint.c (val_print_string): Fix access before BUFFER.
2434
89a1c21a
SM
24352014-08-19 Simon Marchi <simon.marchi@ericsson.com>
2436
2437 * target.c (target_struct_size): Remove.
2438 (target_struct_allocsize): Remove.
2439 (DEFAULT_ALLOCSIZE): Remove.
2440 (target_ops_p): New typedef.
2441 (DEF_VEC_P (target_ops_p)): New vector type.
2442 (target_structs): Change type to VEC (target_ops_p).
2443 (add_target_with_completer): Replace "push" code by VEC_safe_push.
2444 (find_default_run_target): Rewrite for loop following changes to
2445 target_structs.
2446
cb417230
JB
24472014-08-19 Joel Brobecker <brobecker@adacore.com>
2448
2449 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
2450 Adjust code accordingly. Adjust function description comment.
2451
817e0957
YQ
24522014-08-19 Yao Qi <yao@codesourcery.com>
2453
2454 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
2455 types.
2456
2974be62
AM
24572014-08-19 Alan Modra <amodra@gmail.com>
2458
2459 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
2460 * config.in: Regenerate.
2461 * configure: Regenerate.
2462
34abf635
GB
24632014-08-19 Tom Tromey <tromey@redhat.com>
2464 Gary Benson <gbenson@redhat.com>
2465
2466 * common/common-debug.h: New file.
2467 * common/common-debug.c: Likewise.
2468 * debug.c: Likewise.
2469 * Makefile.in (SFILES): Add common/common-debug.c.
2470 (HFILES_NO_SRCDIR): Add common/common-debug.h.
2471 (COMMON_OBS): Add common-debug.o and debug.o.
2472 (common-debug.o): New rule.
2473 * common/common-defs.h: Include common-debug.h.
2474 * common/agent.c (debug_agent_printf): New function.
2475 (DEBUG_AGENT): Redefine.
2476 * nat/i386-dregs.c (debug_printf): Undefine.
2477
f6e94d78
GB
24782014-08-19 Gary Benson <gbenson@redhat.com>
2479
2480 * common/common-defs.h: Include print-utils.h.
2481 * utils.h: Do not include print-utils.h.
2482
9239eeab
GB
24832014-08-19 Tom Tromey <tromey@redhat.com>
2484 Gary Benson <gbenson@redhat.com>
2485
2486 * common/common-types.h: New file.
2487 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
2488 * common/common-defs.h: Include common-types.h.
2489 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
2490 (ULONGEST): Remove.
2491
ef87c8bb
GB
24922014-08-19 Tom Tromey <tromey@redhat.com>
2493 Gary Benson <gbenson@redhat.com>
2494
2495 * common/errors.h: New file.
2496 * common/errors.c: Likewise.
2497 * Makefile.in (SFILES): Add common/errors.c.
2498 (HFILES_NO_SRCDIR): Add common/errors.h.
2499 (COMMON_OBS): Add errors.o.
2500 (errors.o): New rule.
2501 * common/common-defs.h: Include errors.h.
2502 * utils.h (perror_with_name, error, verror, warning, vwarning):
2503 Don't declare.
2504 * common/common-utils.h: (malloc_failure, internal_error):
2505 Likewise.
2506
196a707b
GB
25072014-08-19 Gary Benson <gbenson@redhat.com>
2508
2509 * utils.c (internal_vproblem): Always print the message.
2510
ded4fc8f
DE
25112014-08-18 Doug Evans <dje@google.com>
2512
2513 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
2514
950c97d8
JB
25152014-08-18 Joel Brobecker <brobecker@adacore.com>
2516
2517 * ada-typeprint.c (type_is_full_subrange_of_target_type):
2518 Return 0 if TYPE is dynamic.
2519 (print_range): Add handling of dynamic ranges.
2520
3cdcd0ce
JB
25212014-08-18 Keven Boell <keven.boell@intel.com>
2522 Joel Brobecker <brobecker@adacore.com>
2523
2524 * gdbtypes.h (struct main_type): Add field "data_location".
2525 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
2526 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
2527 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
2528 a dynamic data location.
2529 (resolve_dynamic_type): Add DW_AT_data_location handling.
2530 (copy_recursive, copy_type): Copy the data_location information
2531 when present.
2532 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
2533 * value.c (value_from_contents_and_address): Add
2534 DW_AT_data_location handling.
2535
08412b07
JB
25362014-08-18 Keven Boell <keven.boell@intel.com>
2537 Joel Brobecker <brobecker@adacore.com>
2538
2539 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
2540 field "get_object_address".
2541 * dwarf2expr.c (execute_stack_op): Add handling for
2542 DW_OP_push_object_address.
2543 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
2544 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
2545 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
2546 (dwarf_expr_get_obj_addr): New function.
2547 (dwarf_expr_ctx_funcs): Add get_object_address field.
2548 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
2549 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
2550 (dwarf2_evaluate_property): Add parameter "address". Use it.
2551 (needs_get_obj_addr): New function.
2552 (needs_frame_ctx_funcs): Add get_object_address field.
2553 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
2554 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
2555 (resolve_dynamic_array): Likewise.
2556
84754697
JB
25572014-08-18 Joel Brobecker <brobecker@adacore.com>
2558
2559 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
2560 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
2561 fixed value for records and unions for which some GNAT encodings
2562 are present.
2563
da5c522f
JB
25642014-08-18 Joel Brobecker <brobecker@adacore.com>
2565
2566 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
2567 rewrite to avoid "else if" and "else" constructs. Should be
2568 a no-op in practice.
2569
0d72a7c3
JB
25702014-08-18 Joel Brobecker <brobecker@adacore.com>
2571
2572 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
2573 of lexical block.
2574
e66d4446
SC
25752014-08-15 Siva Chandra Reddy <sivachandra@google.com>
2576
2577 PR c++/17132
2578 * eval.c: Update all calls to find_overload_match.
2579 * valarith.c: Likewise.
2580 (value_user_defined_cpp_op, value_user_defined_op): New
2581 argument NOSIDE. Update all callers.
2582 * valops.c (find_overload_match): New argument NOSIDE.
2583 * value.h (find_overload_match): Update signature.
2584
940df408
SC
25852014-08-15 Siva Chandra Reddy <sivachandra@google.com>
2586
2587 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
2588 'items' methods instead of 'iteritems' method on dictionaries.
2589
699ca60a
DE
25902014-08-15 Doug Evans <dje@google.com>
2591
2592 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
2593 closer to use.
2594
37780ee5
DE
25952014-08-15 Doug Evans <dje@google.com>
2596
2597 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
2598
0ad93d4f
DE
25992014-08-15 Doug Evans <dje@google.com>
2600
2601 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
2602
20d8c372
DE
26032014-08-15 Doug Evans <dje@google.com>
2604
2605 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
2606 unused.
2607
cb039ba4
EZ
26082014-08-15 Eli Zaretskii <eliz@gnu.org>
2609
2610 * dcache.h: Include target.h, to avoid compile time warnings.
2611
eb7a547a
JB
26122014-08-15 Joel Brobecker <brobecker@adacore.com>
2613
2614 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
2615 frame_info" partial declaration.
2616 * gdbarch.h: Regenerate.
2617
783cecc8
YQ
26182014-08-15 Yao Qi <yao@codesourcery.com>
2619
2620 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
2621 Add parameter 'decode_for_pst_p'. Callers update.
2622
65c749e7
YQ
26232014-08-13 Yao Qi <yao@codesourcery.com>
2624
2625 PR build/17104
2626 * configure.ac: Use local variable 'pos'.
2627 * configure: Regenerated.
2628
d769e349
DE
26292014-08-11 Doug Evans <dje@google.com>
2630
2631 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
2632 message, it is redundant with "Reading symbols from ..." message.
2633
24f1235e
DE
26342014-08-10 Doug Evans <xdje42@gmail.com>
2635
2636 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
2637
dcd2e6ef
YQ
26382014-08-09 Yao Qi <yao@codesourcery.com>
2639
2640 PR remote/9053
2641 * remote.c (remote_xfer_partial): Remove dead code.
2642
070bdf0b
AA
26432014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2644
2645 * ia64-linux-tdep.c: Include "regset.h".
2646 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
2647 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
2648 (ia64_linux_supply_fpregset): New function.
2649 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
2650 (ia64_linux_regset_from_core_section): New function.
2651 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
2652 method.
2653
08f9f542
AA
26542014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2655
2656 * m68klinux-tdep.c: Include "regset.h".
2657 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
2658 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
2659 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
2660 (m68k_linux_regset_from_core_section): New function.
2661 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
2662 method.
2663
8f1cee41
AA
26642014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2665
2666 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
2667 function. Move logic to...
2668 (tilegx_linux_regmap): ... this new register map.
2669 (tilegx_linux_regset): Refer to register map, replace supply
2670 method by regcache_supply_regset, and add collect method.
2671 * tilegx-tdep.h (enum tilegx_regnum): New enum value
2672 TILEGX_FIRST_EASY_REGNUM.
2673
c5741217
AA
26742014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2675
2676 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
2677 that calls regcache_supply_regset and handles the EPC register
2678 separately. Move main logic to...
2679 (score7_linux_gregmap): ... this new register map.
2680 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
2681 (score7_linux_gregset): Refer to register map. Add collect method.
2682 (score7_linux_regset_from_core_section): Replace
2683 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
2684 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
2685 (struct regset): Delete unused forward declaraction.
2686 (struct pt_regs): Delete structure definition.
2687 (elf_gregset_t): Delete typedef.
2688
81580573
AA
26892014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2690
2691 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
2692 (nios2_core_regset): Add collect method.
2693
ba199d7d
AA
26942014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2695
2696 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
2697 platform-independent and don't write to read-only input buffer.
2698 (m32r_linux_collect_gregset): New function.
2699 (m32r_linux_gregset): Add collect method.
2700
0006a9da
AA
27012014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2702
2703 * hppa-linux-tdep.c (greg_map): Rename to...
2704 (hppa_linux_gregmap): ... this. Also convert to
2705 regcache_map_entry format.
2706 (hppa_linux_supply_regset): Delete function.
2707 (hppa_linux_supply_fpregset): Delete function. Move logic to...
2708 (hppa_linux_fpregmap): ... this new register map.
2709 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
2710 register map, replace supply method by regcache_supply_regset, and
2711 add collect method regcache_collect_regset.
2712
901e1b23
AA
27132014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2714
2715 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
2716 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
2717 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
2718 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
2719 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
2720 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
2721 (frv_linux_supply_gregset): Replace main logic by call to
2722 regcache_supply_regset, but keep clearing gr32-gr63.
2723 (frv_linux_supply_fpregset): Delete function.
2724 (frv_linux_gregset): Refer to appropriate register map and add
2725 regcache_collect_regset as the collect method.
2726 (frv_linux_fpregset): Likewise. Also exchange the supply method
2727 by regcache_supply_regset.
2728
1d6e7555
AA
27292014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2730
2731 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
2732 by call to alpha_supply_int_regs.
2733 (alpha_linux_collect_gregset): New function.
2734 (alpha_linux_supply_fpregset): Replace logic by call to
2735 alpha_supply_fp_regs.
2736 (alpha_linux_collect_fpregset): New function.
2737 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
2738
d4d793bf
AA
27392014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2740
2741 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
2742 by call to regcache_collect_regset.
2743 (supply_gregset, supply_fpregset): Call regcache_supply_regset
2744 instead of aarch64_linux_supply_gregset/_fpregset.
2745 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
2746 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
2747 header file instead.
2748 (aarch64_linux_supply_gregset, supply_gregset_from_core)
2749 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
2750 functions. Move logic to ...
2751 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
2752 register maps.
2753 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
2754 refer to new register maps, replace *_regset_from_core by
2755 regcache_supply_regset, and also use regcache_collect_regset.
2756 * aarch64-linux-tdep.h: Include "regset.h".
2757 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
2758 Delete prototypes.
2759 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
2760 macros, moved from C source file.
2761 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
2762 variable declarations.
2763
99b7da5d
AA
27642014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2765
2766 * s390-linux-nat.c: Include "regset.h".
2767 (regmap_gregset): Delete macro.
2768 (s390_64_regmap_gregset): New register map for
2769 regcache_supply/_collect_regset.
2770 (s390_64_gregset): New regset.
2771 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
2772 (regmap_fpregset): Delete macro.
2773 (s390_native_supply, s390_native_collect): Delete functions.
2774 (supply_gregset, fill_gregset): Replace s390-specific regmap
2775 handling by a call to regcache_supply/_collect_regset.
2776 (supply_fpregset, fill_fpregset): Call regcache_supply/
2777 _collect_regset instead of s390_native_supply/_collect.
2778 (fetch_regset, store_regset): Likewise. Also change the last
2779 parameter to a regset instead of a regmap.
2780 (s390_linux_fetch_inferior_registers)
2781 (390_linux_store_inferior_registers): Adjust last parameter in
2782 calls to fetch_regset and store_regset.
2783 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
2784 (s390_gregmap): ... this. Also make static const and convert to
2785 regcache_map_entry format.
2786 (s390x_regmap_gregset): Delete.
2787 (s390_regmap_fpregset): Rename to...
2788 (s390_fpregmap): ... this. Make static const and convert to
2789 regcache_map_entry format.
2790 (s390_regmap_upper, s390_regmap_last_break)
2791 (s390x_regmap_last_break, s390_regmap_system_call)
2792 (s390_regmap_tdb): Likewise.
2793 (s390_supply_regset, s390_collect_regset): Remove functions.
2794 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
2795 s390_supply_regset.
2796 (s390_gregset, s390_fpregset, s390_upper_regset)
2797 (s390_last_break_regset, s390x_last_break_regset)
2798 (s390_system_call_regset, s390_tdb_regset): Make global and
2799 replace s390_supply/_collect_regset by regcache_supply/
2800 _collect_regset.
2801 (s390x_gregset): Delete.
2802 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
2803 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
2804 (s390_regmap_fpregset, s390_regmap_last_break)
2805 (s390x_regmap_last_break, s390_regmap_system_call)
2806 (s390_regmap_tdb): Delete global variable declarations.
2807 (s390_gregset, s390_fpregset, s390_last_break_regset)
2808 (s390x_last_break_regset, s390_system_call_regset)
2809 (s390_tdb_regset): New global variable declarations.
2810
0b309272
AA
28112014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2812
2813 * regcache.c: Include "regset.h".
2814 (regcache_transfer_regset): New local function.
2815 (regcache_supply_regset, regcache_collect_regset): New functions.
2816 * regcache.h (struct regcache_map_entry): New structure.
2817 (REGCACHE_MAP_SKIP): New enum value.
2818 (regcache_supply_regset, regcache_collect_regset): New prototypes.
2819
7fefa8d7
AA
28202014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2821
2822 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
2823 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
2824 (ppc_linux_collect_gregset ): Likewise.
2825 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
2826 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
2827 (ppc_collect_vrregset): Likewise.
2828 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
2829 Likewise.
2830
96c4f946
YQ
28312014-08-07 Yao Qi <yao@codesourcery.com>
2832
2833 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
2834 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
2835 * remote.c (remote_read_bytes): Likewise.
2836
fffbe6a8
YQ
28372014-08-07 Yao Qi <yao@codesourcery.com>
2838
2839 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
2840
5ee8a82c
YQ
28412014-08-07 Yao Qi <yao@codesourcery.com>
2842
2843 PR remote/17230
2844 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
2845 TARGET_XFER_OK instead of 0.
2846
bb974a24
GB
28472014-08-07 Gary Benson <gbenson@redhat.com>
2848
2849 * common/common-defs.h: Include errno.h.
2850 * defs.h: Do not include errno.h.
2851 * ada-typeprint.c: Likewise.
2852 * c-typeprint.c: Likewise.
2853 * core-regset.c: Likewise.
2854 * corefile.c: Likewise.
2855 * corelow.c: Likewise.
2856 * event-loop.c: Likewise.
2857 * f-typeprint.c: Likewise.
2858 * gnu-nat.c: Likewise.
2859 * go32-nat.c: Likewise.
2860 * i386gnu-nat.c: Likewise.
2861 * m2-typeprint.c: Likewise.
2862 * nat/linux-btrace.c: Likewise.
2863 * p-typeprint.c: Likewise.
2864 * procfs.c: Likewise.
2865 * remote-sim.c: Likewise.
2866 * rs6000-nat.c: Likewise.
2867 * target.c: Likewise.
2868 * typeprint.c: Likewise.
2869 * ui-file.c: Likewise.
2870 * valops.c: Likewise.
2871 * valprint.c: Likewise.
2872
6d3d12eb
GB
28732014-08-07 Gary Benson <gbenson@redhat.com>
2874
2875 * common/common-defs.h: Include string.h.
2876 * aarch64-tdep.c: Do not include string.h.
2877 * ada-exp.y: Likewise.
2878 * ada-lang.c: Likewise.
2879 * ada-lex.l: Likewise.
2880 * ada-typeprint.c: Likewise.
2881 * ada-valprint.c: Likewise.
2882 * aix-thread.c: Likewise.
2883 * alpha-linux-tdep.c: Likewise.
2884 * alpha-mdebug-tdep.c: Likewise.
2885 * alpha-nat.c: Likewise.
2886 * alpha-osf1-tdep.c: Likewise.
2887 * alpha-tdep.c: Likewise.
2888 * alphanbsd-tdep.c: Likewise.
2889 * amd64-dicos-tdep.c: Likewise.
2890 * amd64-linux-tdep.c: Likewise.
2891 * amd64-nat.c: Likewise.
2892 * amd64-sol2-tdep.c: Likewise.
2893 * amd64fbsd-tdep.c: Likewise.
2894 * amd64obsd-tdep.c: Likewise.
2895 * arch-utils.c: Likewise.
2896 * arm-linux-nat.c: Likewise.
2897 * arm-linux-tdep.c: Likewise.
2898 * arm-tdep.c: Likewise.
2899 * arm-wince-tdep.c: Likewise.
2900 * armbsd-tdep.c: Likewise.
2901 * armnbsd-nat.c: Likewise.
2902 * armnbsd-tdep.c: Likewise.
2903 * armobsd-tdep.c: Likewise.
2904 * avr-tdep.c: Likewise.
2905 * ax-gdb.c: Likewise.
2906 * ax-general.c: Likewise.
2907 * bcache.c: Likewise.
2908 * bfin-tdep.c: Likewise.
2909 * breakpoint.c: Likewise.
2910 * build-id.c: Likewise.
2911 * buildsym.c: Likewise.
2912 * c-exp.y: Likewise.
2913 * c-lang.c: Likewise.
2914 * c-typeprint.c: Likewise.
2915 * c-valprint.c: Likewise.
2916 * charset.c: Likewise.
2917 * cli-out.c: Likewise.
2918 * cli/cli-cmds.c: Likewise.
2919 * cli/cli-decode.c: Likewise.
2920 * cli/cli-dump.c: Likewise.
2921 * cli/cli-interp.c: Likewise.
2922 * cli/cli-logging.c: Likewise.
2923 * cli/cli-script.c: Likewise.
2924 * cli/cli-setshow.c: Likewise.
2925 * cli/cli-utils.c: Likewise.
2926 * coffread.c: Likewise.
2927 * common/agent.c: Likewise.
2928 * common/buffer.c: Likewise.
2929 * common/buffer.h: Likewise.
2930 * common/common-utils.c: Likewise.
2931 * common/filestuff.c: Likewise.
2932 * common/filestuff.c: Likewise.
2933 * common/format.c: Likewise.
2934 * common/print-utils.c: Likewise.
2935 * common/rsp-low.c: Likewise.
2936 * common/signals.c: Likewise.
2937 * common/vec.h: Likewise.
2938 * common/xml-utils.c: Likewise.
2939 * core-regset.c: Likewise.
2940 * corefile.c: Likewise.
2941 * corelow.c: Likewise.
2942 * cp-abi.c: Likewise.
2943 * cp-name-parser.y: Likewise.
2944 * cp-support.c: Likewise.
2945 * cp-valprint.c: Likewise.
2946 * cris-tdep.c: Likewise.
2947 * d-exp.y: Likewise.
2948 * darwin-nat.c: Likewise.
2949 * dbxread.c: Likewise.
2950 * dcache.c: Likewise.
2951 * demangle.c: Likewise.
2952 * dicos-tdep.c: Likewise.
2953 * disasm.c: Likewise.
2954 * doublest.c: Likewise.
2955 * dsrec.c: Likewise.
2956 * dummy-frame.c: Likewise.
2957 * dwarf2-frame.c: Likewise.
2958 * dwarf2loc.c: Likewise.
2959 * dwarf2read.c: Likewise.
2960 * elfread.c: Likewise.
2961 * environ.c: Likewise.
2962 * eval.c: Likewise.
2963 * event-loop.c: Likewise.
2964 * exceptions.c: Likewise.
2965 * exec.c: Likewise.
2966 * expprint.c: Likewise.
2967 * f-exp.y: Likewise.
2968 * f-lang.c: Likewise.
2969 * f-typeprint.c: Likewise.
2970 * f-valprint.c: Likewise.
2971 * fbsd-nat.c: Likewise.
2972 * findcmd.c: Likewise.
2973 * findvar.c: Likewise.
2974 * fork-child.c: Likewise.
2975 * frame.c: Likewise.
2976 * frv-linux-tdep.c: Likewise.
2977 * frv-tdep.c: Likewise.
2978 * gdb.c: Likewise.
2979 * gdb_bfd.c: Likewise.
2980 * gdbarch.c: Likewise.
2981 * gdbarch.sh: Likewise.
2982 * gdbtypes.c: Likewise.
2983 * gnu-nat.c: Likewise.
2984 * gnu-v2-abi.c: Likewise.
2985 * gnu-v3-abi.c: Likewise.
2986 * go-exp.y: Likewise.
2987 * go-lang.c: Likewise.
2988 * go32-nat.c: Likewise.
2989 * guile/guile.c: Likewise.
2990 * guile/scm-auto-load.c: Likewise.
2991 * hppa-hpux-tdep.c: Likewise.
2992 * hppa-linux-nat.c: Likewise.
2993 * hppanbsd-tdep.c: Likewise.
2994 * hppaobsd-tdep.c: Likewise.
2995 * i386-cygwin-tdep.c: Likewise.
2996 * i386-dicos-tdep.c: Likewise.
2997 * i386-linux-tdep.c: Likewise.
2998 * i386-nto-tdep.c: Likewise.
2999 * i386-sol2-tdep.c: Likewise.
3000 * i386-tdep.c: Likewise.
3001 * i386bsd-tdep.c: Likewise.
3002 * i386gnu-nat.c: Likewise.
3003 * i386nbsd-tdep.c: Likewise.
3004 * i386obsd-tdep.c: Likewise.
3005 * i387-tdep.c: Likewise.
3006 * ia64-libunwind-tdep.c: Likewise.
3007 * ia64-linux-nat.c: Likewise.
3008 * inf-child.c: Likewise.
3009 * inf-ptrace.c: Likewise.
3010 * inf-ttrace.c: Likewise.
3011 * infcall.c: Likewise.
3012 * infcmd.c: Likewise.
3013 * inflow.c: Likewise.
3014 * infrun.c: Likewise.
3015 * interps.c: Likewise.
3016 * iq2000-tdep.c: Likewise.
3017 * irix5-nat.c: Likewise.
3018 * jv-exp.y: Likewise.
3019 * jv-lang.c: Likewise.
3020 * jv-typeprint.c: Likewise.
3021 * jv-valprint.c: Likewise.
3022 * language.c: Likewise.
3023 * linux-fork.c: Likewise.
3024 * linux-nat.c: Likewise.
3025 * lm32-tdep.c: Likewise.
3026 * m2-exp.y: Likewise.
3027 * m2-typeprint.c: Likewise.
3028 * m32c-tdep.c: Likewise.
3029 * m32r-linux-nat.c: Likewise.
3030 * m32r-linux-tdep.c: Likewise.
3031 * m32r-rom.c: Likewise.
3032 * m32r-tdep.c: Likewise.
3033 * m68hc11-tdep.c: Likewise.
3034 * m68k-tdep.c: Likewise.
3035 * m68kbsd-tdep.c: Likewise.
3036 * m68klinux-nat.c: Likewise.
3037 * m68klinux-tdep.c: Likewise.
3038 * m88k-tdep.c: Likewise.
3039 * machoread.c: Likewise.
3040 * macrocmd.c: Likewise.
3041 * main.c: Likewise.
3042 * mdebugread.c: Likewise.
3043 * mem-break.c: Likewise.
3044 * memattr.c: Likewise.
3045 * memory-map.c: Likewise.
3046 * mep-tdep.c: Likewise.
3047 * mi/mi-cmd-break.c: Likewise.
3048 * mi/mi-cmd-disas.c: Likewise.
3049 * mi/mi-cmd-env.c: Likewise.
3050 * mi/mi-cmd-stack.c: Likewise.
3051 * mi/mi-cmd-var.c: Likewise.
3052 * mi/mi-cmds.c: Likewise.
3053 * mi/mi-console.c: Likewise.
3054 * mi/mi-getopt.c: Likewise.
3055 * mi/mi-interp.c: Likewise.
3056 * mi/mi-main.c: Likewise.
3057 * mi/mi-parse.c: Likewise.
3058 * microblaze-rom.c: Likewise.
3059 * microblaze-tdep.c: Likewise.
3060 * mingw-hdep.c: Likewise.
3061 * minidebug.c: Likewise.
3062 * minsyms.c: Likewise.
3063 * mips-irix-tdep.c: Likewise.
3064 * mips-linux-tdep.c: Likewise.
3065 * mips-tdep.c: Likewise.
3066 * mips64obsd-tdep.c: Likewise.
3067 * mipsnbsd-tdep.c: Likewise.
3068 * mipsread.c: Likewise.
3069 * mn10300-linux-tdep.c: Likewise.
3070 * mn10300-tdep.c: Likewise.
3071 * monitor.c: Likewise.
3072 * moxie-tdep.c: Likewise.
3073 * mt-tdep.c: Likewise.
3074 * nat/linux-btrace.c: Likewise.
3075 * nat/linux-osdata.c: Likewise.
3076 * nat/linux-procfs.c: Likewise.
3077 * nat/linux-ptrace.c: Likewise.
3078 * nat/linux-waitpid.c: Likewise.
3079 * nbsd-tdep.c: Likewise.
3080 * nios2-linux-tdep.c: Likewise.
3081 * nto-procfs.c: Likewise.
3082 * nto-tdep.c: Likewise.
3083 * objc-lang.c: Likewise.
3084 * objfiles.c: Likewise.
3085 * opencl-lang.c: Likewise.
3086 * osabi.c: Likewise.
3087 * osdata.c: Likewise.
3088 * p-exp.y: Likewise.
3089 * p-lang.c: Likewise.
3090 * p-typeprint.c: Likewise.
3091 * parse.c: Likewise.
3092 * posix-hdep.c: Likewise.
3093 * ppc-linux-nat.c: Likewise.
3094 * ppc-sysv-tdep.c: Likewise.
3095 * ppcfbsd-tdep.c: Likewise.
3096 * ppcnbsd-tdep.c: Likewise.
3097 * ppcobsd-tdep.c: Likewise.
3098 * printcmd.c: Likewise.
3099 * procfs.c: Likewise.
3100 * prologue-value.c: Likewise.
3101 * python/py-auto-load.c: Likewise.
3102 * python/py-gdb-readline.c: Likewise.
3103 * ravenscar-thread.c: Likewise.
3104 * regcache.c: Likewise.
3105 * registry.c: Likewise.
3106 * remote-fileio.c: Likewise.
3107 * remote-m32r-sdi.c: Likewise.
3108 * remote-mips.c: Likewise.
3109 * remote-notif.c: Likewise.
3110 * remote-sim.c: Likewise.
3111 * remote.c: Likewise.
3112 * reverse.c: Likewise.
3113 * rs6000-aix-tdep.c: Likewise.
3114 * ser-base.c: Likewise.
3115 * ser-go32.c: Likewise.
3116 * ser-mingw.c: Likewise.
3117 * ser-pipe.c: Likewise.
3118 * ser-tcp.c: Likewise.
3119 * ser-unix.c: Likewise.
3120 * serial.c: Likewise.
3121 * sh-tdep.c: Likewise.
3122 * sh64-tdep.c: Likewise.
3123 * shnbsd-tdep.c: Likewise.
3124 * skip.c: Likewise.
3125 * sol-thread.c: Likewise.
3126 * solib-dsbt.c: Likewise.
3127 * solib-frv.c: Likewise.
3128 * solib-osf.c: Likewise.
3129 * solib-som.c: Likewise.
3130 * solib-spu.c: Likewise.
3131 * solib-target.c: Likewise.
3132 * solib.c: Likewise.
3133 * somread.c: Likewise.
3134 * source.c: Likewise.
3135 * sparc-nat.c: Likewise.
3136 * sparc-sol2-tdep.c: Likewise.
3137 * sparc-tdep.c: Likewise.
3138 * sparc64-tdep.c: Likewise.
3139 * sparc64fbsd-tdep.c: Likewise.
3140 * sparc64nbsd-tdep.c: Likewise.
3141 * sparcnbsd-tdep.c: Likewise.
3142 * spu-linux-nat.c: Likewise.
3143 * spu-multiarch.c: Likewise.
3144 * spu-tdep.c: Likewise.
3145 * stabsread.c: Likewise.
3146 * stack.c: Likewise.
3147 * std-regs.c: Likewise.
3148 * symfile.c: Likewise.
3149 * symmisc.c: Likewise.
3150 * symtab.c: Likewise.
3151 * target.c: Likewise.
3152 * thread.c: Likewise.
3153 * tilegx-linux-nat.c: Likewise.
3154 * tilegx-tdep.c: Likewise.
3155 * top.c: Likewise.
3156 * tracepoint.c: Likewise.
3157 * tui/tui-command.c: Likewise.
3158 * tui/tui-data.c: Likewise.
3159 * tui/tui-disasm.c: Likewise.
3160 * tui/tui-file.c: Likewise.
3161 * tui/tui-layout.c: Likewise.
3162 * tui/tui-out.c: Likewise.
3163 * tui/tui-regs.c: Likewise.
3164 * tui/tui-source.c: Likewise.
3165 * tui/tui-stack.c: Likewise.
3166 * tui/tui-win.c: Likewise.
3167 * tui/tui-windata.c: Likewise.
3168 * tui/tui-winsource.c: Likewise.
3169 * typeprint.c: Likewise.
3170 * ui-file.c: Likewise.
3171 * ui-out.c: Likewise.
3172 * user-regs.c: Likewise.
3173 * utils.c: Likewise.
3174 * v850-tdep.c: Likewise.
3175 * valarith.c: Likewise.
3176 * valops.c: Likewise.
3177 * valprint.c: Likewise.
3178 * value.c: Likewise.
3179 * varobj.c: Likewise.
3180 * vax-tdep.c: Likewise.
3181 * vaxnbsd-tdep.c: Likewise.
3182 * vaxobsd-tdep.c: Likewise.
3183 * windows-nat.c: Likewise.
3184 * xcoffread.c: Likewise.
3185 * xml-support.c: Likewise.
3186 * xstormy16-tdep.c: Likewise.
3187 * xtensa-linux-nat.c: Likewise.
3188
dccbb609
GB
31892014-08-07 Gary Benson <gbenson@redhat.com>
3190
3191 * common/common-defs.h: Include gdb_assert.h.
3192 * aarch64-tdep.c: Do not include gdb_assert.h.
3193 * addrmap.c: Likewise.
3194 * aix-thread.c: Likewise.
3195 * alpha-linux-tdep.c: Likewise.
3196 * alpha-mdebug-tdep.c: Likewise.
3197 * alphanbsd-tdep.c: Likewise.
3198 * amd64-nat.c: Likewise.
3199 * amd64-tdep.c: Likewise.
3200 * amd64bsd-nat.c: Likewise.
3201 * amd64fbsd-nat.c: Likewise.
3202 * amd64fbsd-tdep.c: Likewise.
3203 * amd64nbsd-nat.c: Likewise.
3204 * amd64nbsd-tdep.c: Likewise.
3205 * amd64obsd-nat.c: Likewise.
3206 * amd64obsd-tdep.c: Likewise.
3207 * arch-utils.c: Likewise.
3208 * arm-tdep.c: Likewise.
3209 * armbsd-tdep.c: Likewise.
3210 * auxv.c: Likewise.
3211 * bcache.c: Likewise.
3212 * bfin-tdep.c: Likewise.
3213 * blockframe.c: Likewise.
3214 * breakpoint.c: Likewise.
3215 * bsd-kvm.c: Likewise.
3216 * bsd-uthread.c: Likewise.
3217 * buildsym.c: Likewise.
3218 * c-exp.y: Likewise.
3219 * c-lang.c: Likewise.
3220 * charset.c: Likewise.
3221 * cleanups.c: Likewise.
3222 * cli-out.c: Likewise.
3223 * cli/cli-decode.c: Likewise.
3224 * cli/cli-dump.c: Likewise.
3225 * cli/cli-logging.c: Likewise.
3226 * cli/cli-script.c: Likewise.
3227 * cli/cli-utils.c: Likewise.
3228 * coffread.c: Likewise.
3229 * common/common-utils.c: Likewise.
3230 * common/queue.h: Likewise.
3231 * common/signals.c: Likewise.
3232 * common/vec.h: Likewise.
3233 * complaints.c: Likewise.
3234 * completer.c: Likewise.
3235 * corelow.c: Likewise.
3236 * cp-abi.c: Likewise.
3237 * cp-name-parser.y: Likewise.
3238 * cp-namespace.c: Likewise.
3239 * cp-support.c: Likewise.
3240 * cris-tdep.c: Likewise.
3241 * dbxread.c: Likewise.
3242 * dictionary.c: Likewise.
3243 * doublest.c: Likewise.
3244 * dsrec.c: Likewise.
3245 * dummy-frame.c: Likewise.
3246 * dwarf2-frame-tailcall.c: Likewise.
3247 * dwarf2-frame.c: Likewise.
3248 * dwarf2expr.c: Likewise.
3249 * dwarf2loc.c: Likewise.
3250 * dwarf2read.c: Likewise.
3251 * eval.c: Likewise.
3252 * event-loop.c: Likewise.
3253 * exceptions.c: Likewise.
3254 * expprint.c: Likewise.
3255 * f-valprint.c: Likewise.
3256 * fbsd-nat.c: Likewise.
3257 * findvar.c: Likewise.
3258 * frame-unwind.c: Likewise.
3259 * frame.c: Likewise.
3260 * frv-tdep.c: Likewise.
3261 * gcore.c: Likewise.
3262 * gdb-dlfcn.c: Likewise.
3263 * gdb_bfd.c: Likewise.
3264 * gdbarch.c: Likewise.
3265 * gdbarch.sh: Likewise.
3266 * gdbtypes.c: Likewise.
3267 * gnu-nat.c: Likewise.
3268 * gnu-v3-abi.c: Likewise.
3269 * go-lang.c: Likewise.
3270 * guile/scm-exception.c: Likewise.
3271 * guile/scm-gsmob.c: Likewise.
3272 * guile/scm-lazy-string.c: Likewise.
3273 * guile/scm-math.c: Likewise.
3274 * guile/scm-pretty-print.c: Likewise.
3275 * guile/scm-safe-call.c: Likewise.
3276 * guile/scm-utils.c: Likewise.
3277 * guile/scm-value.c: Likewise.
3278 * h8300-tdep.c: Likewise.
3279 * hppa-hpux-nat.c: Likewise.
3280 * hppa-tdep.c: Likewise.
3281 * hppanbsd-tdep.c: Likewise.
3282 * hppaobsd-tdep.c: Likewise.
3283 * i386-darwin-nat.c: Likewise.
3284 * i386-darwin-tdep.c: Likewise.
3285 * i386-nto-tdep.c: Likewise.
3286 * i386-tdep.c: Likewise.
3287 * i386bsd-nat.c: Likewise.
3288 * i386fbsd-tdep.c: Likewise.
3289 * i386gnu-nat.c: Likewise.
3290 * i386nbsd-tdep.c: Likewise.
3291 * i386obsd-tdep.c: Likewise.
3292 * i387-tdep.c: Likewise.
3293 * ia64-libunwind-tdep.c: Likewise.
3294 * ia64-tdep.c: Likewise.
3295 * inf-ptrace.c: Likewise.
3296 * inf-ttrace.c: Likewise.
3297 * infcall.c: Likewise.
3298 * infcmd.c: Likewise.
3299 * infrun.c: Likewise.
3300 * inline-frame.c: Likewise.
3301 * interps.c: Likewise.
3302 * jv-lang.c: Likewise.
3303 * jv-typeprint.c: Likewise.
3304 * linux-fork.c: Likewise.
3305 * linux-nat.c: Likewise.
3306 * linux-thread-db.c: Likewise.
3307 * m32c-tdep.c: Likewise.
3308 * m32r-linux-nat.c: Likewise.
3309 * m32r-tdep.c: Likewise.
3310 * m68k-tdep.c: Likewise.
3311 * m68kbsd-nat.c: Likewise.
3312 * m68kbsd-tdep.c: Likewise.
3313 * m88k-tdep.c: Likewise.
3314 * machoread.c: Likewise.
3315 * macroexp.c: Likewise.
3316 * macrotab.c: Likewise.
3317 * maint.c: Likewise.
3318 * mdebugread.c: Likewise.
3319 * memory-map.c: Likewise.
3320 * mep-tdep.c: Likewise.
3321 * mi/mi-common.c: Likewise.
3322 * microblaze-tdep.c: Likewise.
3323 * mingw-hdep.c: Likewise.
3324 * mips-linux-nat.c: Likewise.
3325 * mips-linux-tdep.c: Likewise.
3326 * mips-tdep.c: Likewise.
3327 * mips64obsd-tdep.c: Likewise.
3328 * mipsnbsd-tdep.c: Likewise.
3329 * mn10300-linux-tdep.c: Likewise.
3330 * mn10300-tdep.c: Likewise.
3331 * moxie-tdep.c: Likewise.
3332 * mt-tdep.c: Likewise.
3333 * nat/linux-btrace.c: Likewise.
3334 * nat/linux-osdata.c: Likewise.
3335 * nat/linux-ptrace.c: Likewise.
3336 * nat/mips-linux-watch.c: Likewise.
3337 * nios2-linux-tdep.c: Likewise.
3338 * nios2-tdep.c: Likewise.
3339 * objc-lang.c: Likewise.
3340 * objfiles.c: Likewise.
3341 * obsd-nat.c: Likewise.
3342 * opencl-lang.c: Likewise.
3343 * osabi.c: Likewise.
3344 * parse.c: Likewise.
3345 * ppc-linux-nat.c: Likewise.
3346 * ppc-sysv-tdep.c: Likewise.
3347 * ppcfbsd-nat.c: Likewise.
3348 * ppcfbsd-tdep.c: Likewise.
3349 * ppcnbsd-nat.c: Likewise.
3350 * ppcnbsd-tdep.c: Likewise.
3351 * ppcobsd-nat.c: Likewise.
3352 * ppcobsd-tdep.c: Likewise.
3353 * printcmd.c: Likewise.
3354 * procfs.c: Likewise.
3355 * prologue-value.c: Likewise.
3356 * psymtab.c: Likewise.
3357 * python/py-lazy-string.c: Likewise.
3358 * python/py-value.c: Likewise.
3359 * regcache.c: Likewise.
3360 * reggroups.c: Likewise.
3361 * registry.c: Likewise.
3362 * remote-sim.c: Likewise.
3363 * remote.c: Likewise.
3364 * rs6000-aix-tdep.c: Likewise.
3365 * rs6000-tdep.c: Likewise.
3366 * s390-linux-tdep.c: Likewise.
3367 * score-tdep.c: Likewise.
3368 * ser-base.c: Likewise.
3369 * ser-mingw.c: Likewise.
3370 * sh-tdep.c: Likewise.
3371 * sh64-tdep.c: Likewise.
3372 * solib-darwin.c: Likewise.
3373 * solib-spu.c: Likewise.
3374 * solib-svr4.c: Likewise.
3375 * source.c: Likewise.
3376 * sparc-nat.c: Likewise.
3377 * sparc-sol2-tdep.c: Likewise.
3378 * sparc-tdep.c: Likewise.
3379 * sparc64-sol2-tdep.c: Likewise.
3380 * sparc64-tdep.c: Likewise.
3381 * sparc64fbsd-tdep.c: Likewise.
3382 * sparc64nbsd-tdep.c: Likewise.
3383 * sparc64obsd-tdep.c: Likewise.
3384 * sparcnbsd-tdep.c: Likewise.
3385 * sparcobsd-tdep.c: Likewise.
3386 * spu-multiarch.c: Likewise.
3387 * spu-tdep.c: Likewise.
3388 * stabsread.c: Likewise.
3389 * stack.c: Likewise.
3390 * symfile.c: Likewise.
3391 * symtab.c: Likewise.
3392 * target-descriptions.c: Likewise.
3393 * target-memory.c: Likewise.
3394 * target.c: Likewise.
3395 * tic6x-linux-tdep.c: Likewise.
3396 * tic6x-tdep.c: Likewise.
3397 * tilegx-linux-nat.c: Likewise.
3398 * tilegx-tdep.c: Likewise.
3399 * top.c: Likewise.
3400 * tramp-frame.c: Likewise.
3401 * tui/tui-out.c: Likewise.
3402 * tui/tui-winsource.c: Likewise.
3403 * ui-out.c: Likewise.
3404 * user-regs.c: Likewise.
3405 * utils.c: Likewise.
3406 * v850-tdep.c: Likewise.
3407 * valops.c: Likewise.
3408 * value.c: Likewise.
3409 * varobj.c: Likewise.
3410 * vax-nat.c: Likewise.
3411 * xml-syscall.c: Likewise.
3412 * xml-tdesc.c: Likewise.
3413 * xstormy16-tdep.c: Likewise.
3414 * xtensa-linux-nat.c: Likewise.
3415 * xtensa-tdep.c: Likewise.
3416
e76df0d0
GB
34172014-08-07 Gary Benson <gbenson@redhat.com>
3418
3419 * common/common-defs.h: Include common-utils.h.
3420 * defs.h: Do not include common-utils.h.
3421 * common/gdb_assert.h: Likewise.
3422 * darwin-nat.h: Likewise.
3423 * nat/linux-btrace.c: Likewise.
3424 * target/waitstatus.h: Likewise.
3425
4cb9c816
GB
34262014-08-07 Gary Benson <gbenson@redhat.com>
3427
3428 * common/common-defs.h: Include ptid.h.
3429 * defs.h: Do not include ptid.h.
3430 * inferior.h: Likewise.
3431 * infrun.h: Likewise.
3432 * nat/linux-btrace.h: Likewise.
3433 * nat/linux-osdata.h: Likewise.
3434 * target/waitstatus.h: Likewise.
3435
3995eeee
GB
34362014-08-07 Gary Benson <gbenson@redhat.com>
3437
3438 * common/common-defs.h: Include gdb_locale.h.
3439 * defs.h: Do not include gdb_locale.h.
3440
cb9f1a9b
GB
34412014-08-07 Gary Benson <gbenson@redhat.com>
3442
3443 * common/common-defs.h: Include gdb/signals.h.
3444 * defs.h: Do not include gdb/signals.h.
3445
a5fceff8
GB
34462014-08-07 Gary Benson <gbenson@redhat.com>
3447
3448 * common/common-defs.h: Include pathmax.h.
3449 * defs.h: Do not include pathmax.h.
3450
b9391142
GB
34512014-08-07 Gary Benson <gbenson@redhat.com>
3452
3453 * common/common-defs.h: Include libiberty.h.
3454 * defs.h: Do not include libiberty.h.
3455 * common/queue.h: Likewise.
3456 * cp-name-parser.y: Likewise.
3457 * mi/mi-cmd-catch.c: Likewise.
3458 * python/python.c: Likewise.
3459
0e443c87
GB
34602014-08-07 Gary Benson <gbenson@redhat.com>
3461
3462 * common/common-defs.h: Include ansidecl.h.
3463 * defs.h: Do not include ansidecl.h.
3464 * common/buffer.h: Likewise.
3465 * common/common-utils.h: Likewise.
3466
8ebb3f56
GB
34672014-08-07 Gary Benson <gbenson@redhat.com>
3468
3469 * common/common-defs.h: Include stddef.h.
3470 * defs.h: Do not include stddef.h.
3471 * common/common-utils.h: Likewise.
3472 * amd64fbsd-nat.c: Likewise.
3473 * bcache.c: Likewise.
3474 * charset.c: Likewise.
3475 * common/buffer.h: Likewise.
3476 * common/vec.h: Likewise.
3477 * i386bsd-nat.c: Likewise.
3478 * nat/linux-btrace.h: Likewise.
3479 * ppcfbsd-nat.c: Likewise.
3480 * ppcnbsd-tdep.h: Likewise.
3481 * ppcobsd-nat.c: Likewise.
3482 * ppcobsd-tdep.h: Likewise.
3483 * python/py-gdb-readline.c: Likewise.
3484
8980bdf6
GB
34852014-08-07 Gary Benson <gbenson@redhat.com>
3486
3487 * common/common-defs.h: Include stdarg.h.
3488 * defs.h: Do not include stdarg.h.
3489 * ada-lang.c: Likewise.
3490 * common/common-utils.h: Likewise.
3491 * guile/scm-string.c: Likewise.
3492 * guile/scm-utils.c: Likewise.
3493 * m32c-tdep.c: Likewise.
3494
d7096f71
GB
34952014-08-07 Gary Benson <gbenson@redhat.com>
3496
3497 * common/common-defs.h: Include stdlib.h.
3498 * defs.h: Do not include stdlib.h.
3499 * addrmap.c: Likewise.
3500 * bcache.c: Likewise.
3501 * common/buffer.c: Likewise.
3502 * common/common-utils.c: Likewise.
3503 * cp-name-parser.y: Likewise.
3504 * go32-nat.c: Likewise.
3505 * mn10300-linux-tdep.c: Likewise.
3506 * nat/linux-osdata.c: Likewise.
3507 * tui/tui.c: Likewise.
3508 * windows-nat.c: Likewise.
3509
d02f550d
GB
35102014-08-07 Gary Benson <gbenson@redhat.com>
3511
3512 * common/common-defs.h: Include stdio.h.
3513 * defs.h: Do not include stdio.h.
3514 * ada-lang.c: Likewise.
3515 * common/buffer.c: Likewise.
3516 * common/common-utils.c: Likewise.
3517 * cp-name-parser.y: Likewise.
3518 * gnu-nat.c: Likewise.
3519 * go32-nat.c: Likewise.
3520 * i386gnu-nat.c: Likewise.
3521 * proc-api.c: Likewise.
3522 * proc-events.c: Likewise.
3523 * proc-flags.c: Likewise.
3524 * proc-why.c: Likewise.
3525 * python/python-internal.h: Likewise.
3526 * target-memory.c: Likewise.
3527 * tui/tui-io.c: Likewise.
3528 * tui/tui.c: Likewise.
3529
b6d7a4bf
SM
35302014-08-06 Simon Marchi <simon.marchi@ericsson.com>
3531
3532 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
3533 (scan_dyntag_auxv): Same.
3534
af19829b
YQ
35352014-08-06 Yao Qi <yao@codesourcery.com>
3536
3537 * amd64-linux-nat.c: Remove duplicated include
3538 "x86-linux-nat.h".
3539 * i386-linux-nat.c: Likewise.
3540
8e07a239
YQ
35412014-08-06 Yao Qi <yao@codesourcery.com>
3542
3543 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
3544 operand" with "Special opcode" in comments.
3545
7bfe8241
GB
35462014-08-05 Gary Benson <gbenson@redhat.com>
3547
3548 * interps.c (initialize_interps): Remove prototype.
3549 (interpreter_initialized): Remove static global.
3550 (interp_add): Do not call initialize_interps.
3551 (initialize_interps): Remove function.
3552
d6c95504
GB
35532014-08-05 Gary Benson <gbenson@redhat.com>
3554
3555 * utils.c (vwarning): Remove spurious va_end.
3556
241fd515
AM
35572014-08-05 Alan Modra <amodra@gmail.com>
3558
3559 * charset.c (convert_between_encodings): Cast result of obstack_base.
3560 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
3561 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
3562 (read_unwind_info): Use size_t for some locals.
3563 * jit.c (finalize_symtab): Likewise.
3564 * utils.c (hashtab_obstack_allocate): Likewise.
3565 * symmisc.c (print_objfile_statistics): Update format strings.
3566
dc304a94
JK
35672014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3568
3569 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
3570 (Changes in GDB 7.8): ... here.
3571
3cecbbbe
TT
35722014-08-04 Tom Tromey <tromey@redhat.com>
3573
3574 * target.c (set_targetdebug): New function.
3575 (initialize_targets): Pass set_targetdebug when creating "set
3576 debug target".
3577
6908c509
JB
35782014-08-01 Joel Brobecker <brobecker@adacore.com>
3579
3580 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
3581 if detecting a variable-sized field that is not the last field.
3582 Fix struct type length computation.
3583
53e8f97d
JB
35842014-08-01 Joel Brobecker <brobecker@adacore.com>
3585
3586 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3587 Add debug trace.
3588
e068c55d
JB
35892014-08-01 Joel Brobecker <brobecker@adacore.com>
3590
3591 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3592 Remove "+ 8" offset in computation of CHAIN_VMA.
3593
4d4ca2a1
DE
35942014-07-31 Doug Evans <dje@google.com>
3595
3596 * inflow.c (child_terminal_inferior): Add comment.
3597 (child_terminal_ours_for_output): Add comment.
3598 (child_terminal_ours): Add comment.
3599 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
3600 (linux_nat_terminal_ours): Add comment.
3601
462f517e
GB
36022014-07-31 Gary Benson <gbenson@redhat.com>
3603
3604 * common/btrace-common.h: Do not include defs.h or server.h.
3605 * nat/mips-linux-watch.h: Likewise.
3606 * gdb-dlfcn.h: Do not include defs.h.
3607 * tracefile.h: Likewise.
3608
74228e77
RM
36092014-07-30 Roland McGrath <mcgrathr@google.com>
3610
3611 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
3612
014f9477
TT
36132014-07-30 Tom Tromey <tromey@redhat.com>
3614
3615 * bsd-kvm.c (bsd_kvm_open): Constify.
3616 * corelow.c (core_open): Constify.
3617 * ctf.c (ctf_open): Constify.
3618 * dbug-rom.c (dbug_open): Constify.
3619 * exec.c (exec_open): Constify.
3620 * m32r-rom.c (m32r_open, mon2000_open): Constify.
3621 * microblaze-rom.c (picobug_open): Constify.
3622 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
3623 Constify.
3624 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
3625 * record-btrace.c (record_btrace_open): Constify.
3626 * record-full.c (record_full_core_open_1, record_full_open_1)
3627 (record_full_open): Constify.
3628 * remote-m32r-sdi.c (m32r_open): Constify.
3629 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
3630 (rockhopper_open, lsi_open): Constify.
3631 * remote-sim.c (gdbsim_open): Constify.
3632 * remote.c (remote_open, extended_remote_open, remote_open_1):
3633 Constify.
3634 * target.h (struct target_ops) <to_open>: Make "arg" const.
3635 * tracefile-tfile.c (tfile_open): Constify.
3636
e799154c
TT
36372014-07-30 Tom Tromey <tromey@redhat.com>
3638
3639 * breakpoint.c (map_breakpoint_numbers): Update.
3640 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
3641 (get_number_const): New function.
3642 (get_number): Rewrite using get_number_const.
3643 (init_number_or_range): Make "string" const.
3644 (number_is_in_list): Make "list" const.
3645 * cli/cli-utils.h (get_number_const): Declare.
3646 (struct get_number_or_range_state) <string, end_ptr>: Now const.
3647 (init_number_or_range, number_is_in_list): Update.
3648 * printcmd.c (map_display_numbers): Update.
3649 * value.c (value_from_history_ref): Constify.
3650 * value.h (value_from_history_ref): Update.
3651
5f08566b
TT
36522014-07-30 Tom Tromey <tromey@redhat.com>
3653
3654 * corefile.c (hook_type, call_extra_exec_file_hooks)
3655 (specify_exec_file_hook): Constify.
3656 * exec.c (exec_file_attach): Make "filename" const.
3657 * gdbcore.h (deprecated_exec_file_display_hook)
3658 (specify_exec_file_hook, exec_file_attach): Constify.
3659 * main.c (captured_main): Use catch_command_errors_const.
3660
8981c758
TT
36612014-07-30 Tom Tromey <tromey@redhat.com>
3662
3663 * target.c (open_target): New function.
3664 (add_target_with_completer, add_deprecated_target_alias): Use
3665 set_cmd_sfunc, set_cmd_context.
3666 (debug_to_open): Remove.
3667 (setup_target_debug): Update.
3668
a1c7835a
YQ
36692014-07-30 Yao Qi <yao@codesourcery.com>
3670
3671 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
3672 comments.
3673 * parse.c (exp_iterate): Update comments.
3674
976411d6
GB
36752014-07-30 Gary Benson <gbenson@redhat.com>
3676
3677 * common/common-defs.h: New file.
3678 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
3679 * defs.h: Include common-defs.h.
3680 Do not include config.h or build-gnulib/config.h.
3681
5d4848a4
GB
36822014-07-30 Gary Benson <gbenson@redhat.com>
3683
3684 * common/common-utils.h: Do not include config.h.
3685 * nat/linux-btrace.h: Likewise.
3686
d41f6d8e
GB
36872014-07-30 Gary Benson <gbenson@redhat.com>
3688
3689 * btrace.c: Include defs.h.
3690 * common/ptid.c: Include defs.h or server.h as appropriate.
3691 * nat/mips-linux-watch.c: Likewise.
3692
84202f9c
TT
36932014-07-29 Tom Tromey <tromey@redhat.com>
3694
3695 * target.c (target_is_pushed): Simplify.
3696
2530441c
JB
36972014-07-29 Joel Brobecker <brobecker@adacore.com>
3698
3699 GDB 7.8 released.
3700
7e09a223
YQ
37012014-07-29 Yao Qi <yao@codesourcery.com>
3702
3703 PR gdb/17206
3704 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
3705
7ebdbe92
DE
37062014-07-28 Doug Evans <xdje42@gmail.com>
3707
3708 PR guile/17203
3709 * guile/scm-param.c (pascm_parameter_defined_p): New function.
3710 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
3711 parameters.
3712
f347ffc9
WN
37132014-07-28 Will Newton <will.newton@linaro.org>
3714
3715 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
3716 (THUMB2_SET_R7_SIGRETURN2): Likewise.
3717 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
3718 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
3719 (THUMB2_EABI_SYSCALL): Likewise.
3720 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
3721 struct tramp_frame.
3722 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
3723 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
3724
37c5f1f7
DE
37252014-07-27 Doug Evans <xdje42@gmail.com>
3726
3727 * guile/scm-param.c (pascm_print_param_smob): Fix output.
3728
0c3abbc7
DE
37292014-07-27 Doug Evans <xdje42@gmail.com>
3730
3731 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
3732
e76c5d17
DE
37332014-07-26 Ludovic Courtès <ludo@gnu.org>
3734 Doug Evans <xdje42@gmail.com>
3735
3736 PR guile/17146
3737 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
3738 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
3739 * configure.ac: Try to use guild to compile an scm file, if it fails
3740 then disable guile support.
3741 * configure: Regenerate.
3742 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
3743 GUILE_FILE_LIST.
3744 (GUILE_COMPILED_FILES): New variable.
3745 (GUILE_FILES) Update.
3746 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
3747 (stamp-guile): Compile scm files.
3748 * guile/guile.c (boot_guile_support): New function.
3749 (standard_throw_args_p): New function.
3750 (print_standard_throw_error, print_throw_error): New functions.
3751 (handle_boot_error): New function.
3752 (initialize_scheme_side): Rewrite to call boot_guile_support.
3753 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
3754 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
3755
186fcde0
DE
37562014-07-26 Ludovic Courtès <ludo@gnu.org>
3757 Doug Evans <xdje42@gmail.com>
3758
3759 PR guile/17146
3760 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
3761 * guile/lib/gdb/support.scm: New file.
3762 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
3763 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
3764 All uses updated.
3765 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
3766 All uses updated.
3767 (%assert-type): Ditto, and renamed to assert-type.
3768 (%exception-print-style): Delete.
3769
4df42755
DE
37702014-07-26 Doug Evans <xdje42@gmail.com>
3771
3772 PR build/17105
3773 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
3774 * configure: Regenerate.
3775 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
3776 PYTHON_FILES.
3777 (PYTHON_FILES): New variable.
3778 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
3779 (GUILE_FILES): New variable.
3780 (stamp-python, install-python, uninstall-python): Handle empty
3781 file list.
3782 (stamp-guile, install-guile, uninstall-guile): Ditto.
3783
ee7333ae
DE
37842014-07-26 Doug Evans <xdje42@gmail.com>
3785
3786 PR guile/17177
3787 * guile/lib/gdb.scm (pretty-printers): Export.
3788 (set-pretty-printers!): Export.
3789 * guile/lib/gdb/printing.scm (gdb module): Update.
3790 (prepend-pretty-printer!, append-pretty-printer!): Update.
3791 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
3792 (pretty_printer_list_var): Delete.
3793 (pretty_printer_list): New static global.
3794 (gdbscm_pretty_printers): New function.
3795 (gdbscm_set_pretty_printers_x): New function.
3796 (ppscm_find_pretty_printer_from_gdb): Update.
3797 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
3798 (gdbscm_initialize_pretty_printers): Update.
3799
74edf516
DE
38002014-07-26 Doug Evans <xdje42@gmail.com>
3801
3802 PR 17185
3803 * configure.ac: Add check for header gc/gc.h.
3804 Add check for function setenv.
3805 * configure: Regenerate.
3806 * config.in: Regenerate.
3807 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
3808
d54398a7
MR
38092014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
3810
3811 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
3812 variation in gdbarch matching.
3813
ab16fce8
TT
38142014-07-25 Tom Tromey <tromey@redhat.com>
3815
3816 * exec.c (using_exec_ops): Remove.
3817 (exec_close_1): Update. Remove extraneous block, reindent.
3818 (add_target_sections): Use target_is_pushed.
3819
88056fbb
PA
38202014-07-25 Pedro Alves <palves@redhat.com>
3821
3822 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
3823 * monitor.c (monitor_create_inferior): Likewise.
3824 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
3825 * remote-sim.c (gdbsim_create_inferior): Likewise.
3826 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
3827 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
3828 * windows-nat.c (do_initial_windows_stuff): Likewise.
3829
70509625
PA
38302014-07-25 Pedro Alves <palves@redhat.com>
3831
3832 * NEWS: Mention signal passing and "signal" command changes.
3833 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
3834 comment.
3835 * breakpoint.c (until_break_command): Adjust clear_proceed_status
3836 call.
3837 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
3838 * infcmd.c (proceed_thread_callback, continue_1, step_once)
3839 (jump_command): Adjust clear_proceed_status call.
3840 (signal_command): Warn if other thread that are resumed have
3841 signals that will be delivered. Adjust clear_proceed_status call.
3842 (until_next_command, finish_command)
3843 (proceed_after_attach_callback, attach_command_post_wait)
3844 (attach_command): Adjust clear_proceed_status call.
3845 * infrun.c (proceed_after_vfork_done): Likewise.
3846 (proceed_after_attach_callback): Adjust comment.
3847 (clear_proceed_status_thread): Clear stop_signal if not in pass
3848 state.
3849 (clear_proceed_status_callback): Delete.
3850 (clear_proceed_status): New 'step' parameter. Only clear the
3851 proceed status of threads the command being prepared is about to
3852 resume.
3853 (proceed): If passed in an explicit signal, override stop_signal
3854 with it. Don't pass the last stop signal to the thread we're
3855 resuming.
3856 (init_wait_for_inferior): Adjust clear_proceed_status call.
3857 (switch_back_to_stepped_thread): Clear the signal if it should not
3858 be passed.
3859 * infrun.h (clear_proceed_status): New 'step' parameter.
3860 (user_visible_resume_ptid): Add comment.
3861 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
3862 signal is in pass state.
3863 * remote.c (append_pending_thread_resumptions): Likewise.
3864 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
3865
d8be2939
TT
38662014-07-25 Tom Tromey <tromey@redhat.com>
3867
3868 * target.h (target_stopped_data_address)
3869 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
3870 parentheses.
3871
7d0d9d2b
PL
38722014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
3873
3874 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
3875 comments.
3876 (avr_pointer_to_address): Likewise.
3877
e9e7f724
TT
38782014-07-24 Tom Tromey <tromey@redhat.com>
3879
3880 * monitor.c (compile_pattern): Update.
3881 * target.h (struct target_ops) <to_shortname, to_longname,
3882 to_doc>: Now const.
3883
1947513d
TT
38842014-07-24 Tom Tromey <tromey@redhat.com>
3885
3886 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
3887 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
3888 (add_info_alias, add_com): Make "doc" const.
3889 (print_doc_line): Make "str" const.
3890 (delete_cmd): Update.
3891 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
3892 (print_doc_line): Update.
3893 * cli/cli-script.c (document_command): Update.
3894 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
3895 (add_com, add_info, add_info_alias): Update.
3896 * guile/scm-cmd.c (cmdscm_destroyer): Update.
3897 * python/py-cmd.c (cmdpy_destroyer): Update.
3898
64e61d29
TT
38992014-07-24 Tom Tromey <tromey@redhat.com>
3900
3901 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
3902 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
3903 (help_cmd_list): Constify.
3904 (lookup_cmd): Update.
3905 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
3906 const.
3907 (help_cmd_list, apropos_cmd): Update.
3908 * cli/cli-script.c (show_user): Update.
3909 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
3910 * cli/cli-setshow.h (cmd_show_list): Update.
3911 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
3912 (cmd_show_list): Update.
3913 * guile/scm-cmd.c (cmdscm_destroyer): Update.
3914 * python/py-cmd.c (cmdpy_destroyer): Update.
3915
429e55ea
TT
39162014-07-24 Tom Tromey <tromey@redhat.com>
3917
3918 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
3919 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
3920 const.
3921 * command.h (deprecate_cmd): Update.
3922 * maint.c (maintenance_do_deprecate): Add casts.
3923
64669f3b
TT
39242014-07-24 Tom Tromey <tromey@redhat.com>
3925
3926 * cli/cli-decode.c (help_cmd): Make parameter "const".
3927 * cli/cli-decode.h (help_cmd): Update.
3928
d3d3328b
TT
39292014-07-24 Tom Tromey <tromey@redhat.com>
3930
3931 * stack.c (up_silently_base, down_silently_base): Make argument
3932 const.
3933
414842dc
TT
39342014-07-24 Tom Tromey <tromey@redhat.com>
3935
3936 * solib.c (solib_add): Make "pattern" const.
3937 * solib.h (solib_add): Update.
3938
baa336ce
TT
39392014-07-24 Tom Tromey <tromey@redhat.com>
3940
3941 * remote.c (remote_serial_open, print_packet, putpkt)
3942 (putpkt_binary): Constify.
3943 * remote.h (putpkt): Update.
3944
5a19e2d0
TT
39452014-07-24 Tom Tromey <tromey@redhat.com>
3946
3947 * monitor.c (monitor_open): Make "args" const.
3948 * monitor.h (monitor_open): Update.
3949
fc4baa5e
TT
39502014-07-24 Tom Tromey <tromey@redhat.com>
3951
3952 * maint.c (match_bfd_flags): Make "string" const.
3953 (print_bfd_section_info): Remove casts.
3954 (print_objfile_section_info): Make "string" const.
3955
0d5f0dbe
TT
39562014-07-24 Tom Tromey <tromey@redhat.com>
3957
3958 * inf-child.c (inf_child_open_target): Make "arg" const.
3959 * inf-child.h (inf_child_open_target): Update.
3960
41c77899
TT
39612014-07-24 Tom Tromey <tromey@redhat.com>
3962
3963 * environ.c (unset_in_environ): Make "var" const.
3964 * environ.h (unset_in_environ): Update.
3965
93db0d79
TT
39662014-07-24 Tom Tromey <tromey@redhat.com>
3967
3968 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
3969 Make "cmd" const.
3970 (scan_filename_with_cleanup): Likewise.
3971 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
3972 Make arguments const.
3973 (restore_command): Update.
3974
36d6eb95
PA
39752014-07-24 Pedro Alves <palves@redhat.com>
3976
3977 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
3978
8009206a
TT
39792014-07-24 Tom Tromey <tromey@redhat.com>
3980 Gary Benson <gbenson@redhat.com>
3981
3982 * nat/linux-ptrace.c (additional_flags): New global.
3983 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
3984 additional_flags; don't check GDBSERVER.
3985 (linux_ptrace_set_additional_flags): New function.
3986 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
3987 Declare.
3988 * linux-nat.c (_initialize_linux_nat): Call
3989 linux_ptrace_set_additional_flags.
3990
a7068b60
TT
39912014-07-24 Tom Tromey <tromey@redhat.com>
3992
3993 * make-target-delegates (munge_type, write_debugmethod): New
3994 functions.
3995 (debug_names): New global.
3996 ($TARGET_DEBUG_PRINTER): New global.
3997 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
3998 name.
3999 Write debug methods. Generate init_debug_target.
4000 * target-debug.h: New file.
4001 * target-delegates.c: Rebuild.
4002 * target.c: Include target-debug.h.
4003 (debug_target): Hoist definition.
4004 (target_kill, target_get_section_table, target_memory_map)
4005 (target_flash_erase, target_flash_done, target_detach)
4006 (target_disconnect, target_wait, target_resume)
4007 (target_pass_signals, target_program_signals, target_follow_fork)
4008 (target_mourn_inferior, target_search_memory)
4009 (target_thread_address_space, target_close)
4010 (target_find_new_threads, target_core_of_thread)
4011 (target_verify_memory, target_insert_mask_watchpoint)
4012 (target_remove_mask_watchpoint): Remove targetdebug code.
4013 (debug_to_post_attach, debug_to_prepare_to_store)
4014 (debug_to_files_info, debug_to_insert_breakpoint)
4015 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
4016 (debug_to_region_ok_for_hw_watchpoint)
4017 (debug_to_can_accel_watchpoint_condition)
4018 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
4019 (debug_to_watchpoint_addr_within_range)
4020 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
4021 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
4022 (debug_to_terminal_init, debug_to_terminal_inferior)
4023 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
4024 (debug_to_terminal_save_ours, debug_to_terminal_info)
4025 (debug_to_load, debug_to_post_startup_inferior)
4026 (debug_to_insert_fork_catchpoint)
4027 (debug_to_remove_fork_catchpoint)
4028 (debug_to_insert_vfork_catchpoint)
4029 (debug_to_remove_vfork_catchpoint)
4030 (debug_to_insert_exec_catchpoint)
4031 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
4032 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
4033 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
4034 (setup_target_debug): Call init_debug_target.
4035 * target.h (TARGET_DEBUG_PRINTER): New macro.
4036 (struct target_ops) <to_resume, to_wait, to_pass_signals,
4037 to_program_signals>: Use TARGET_DEBUG_PRINTER.
4038
2c51604d
GB
40392014-07-24 Gary Benson <gbenson@redhat.com>
4040
4041 * exceptions.h (throw_vfatal): Renamed to...
4042 (throw_vquit): New declaration.
4043 (throw_quit): Likewise.
4044 * exceptions.c (throw_vfatal): Renamed to...
4045 (throw_vquit): New function.
4046 (throw_quit): Likewise.
4047 (throw_error): Call throw_verror rather than throw_it.
4048 * utils.h (vfatal): Removed.
4049 (fatal): Likewise.
4050 * utils.c (vfatal): Removed.
4051 (fatal): Likewise.
4052 (internal_verror): Replaced call to fatal with call to throw_quit.
4053 (quit): Replaced calls to fatal with calls to throw_quit.
4054
34211963
ME
40552014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
4056
4057 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
4058 target_read_code.
4059
a52b4d3e
ME
40602014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
4061
4062 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
4063 less than zero in conditional expression.
4064
a8bdc56b
TT
40652014-07-23 Tom Tromey <tromey@redhat.com>
4066
4067 * make-target-delegates ($ARGS_PART): Match trailing close paren.
4068 ($INTRO_PART): Don't match whitespace.
4069 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
4070 argument matching.
4071 ($METHOD): Add $METHOD_TRAILER.
4072 (trim): Rewrite.
4073 (scan_target_h): New sub.
4074 Change main loop not to collect state.
4075 * target-delegates.c: Rebuild.
4076
91b52240
GB
40772014-07-23 Gary Benson <gbenson@redhat.com>
4078
4079 * cp-support.c (gdb_demangle): Fix build on systems without
4080 sigaltstack.
4081
45326f6f
JK
40822014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4083
4084 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
4085 for reference entry value target data value.
4086
e214cf6c
JK
40872014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4088
4089 * stack.c (read_frame_arg): Verify value_optimized_out before calling
4090 value_available_contents_eq.
4091
bddbbedd
PA
40922014-07-22 Pedro Alves <palves@redhat.com>
4093
4094 * value.c (allocate_optimized_out_value): Don't mark value as
4095 non-lazy.
4096
45c71484
JW
40972014-07-22 Jiong Wang <jiong.wang@arm.com>
4098
4099 * MAINTAINERS (Write After Approval): Update my email address.
4100
9597b22a
DE
41012014-07-20 Doug Evans <dje@google.com>
4102
4103 PR server/17147
4104 * remote.c (putpkt_binary): Add text to error message.
4105
91101fe5
YQ
41062014-07-20 Yao Qi <yao@codesourcery.com>
4107
4108 * eval.c: Remove "Chill" from comments.
4109 * gdbtypes.h: Likewise.
4110 * symtab.h: Likewise.
4111
c9402c95
YQ
41122014-07-20 Yao Qi <yao@codesourcery.com>
4113
4114 * std-operator.def: Update comments to TERNOP_SLICE.
4115
ae8fddda
YQ
41162014-07-20 Yao Qi <yao@codesourcery.com>
4117
4118 * std-operator.def: Remove BINOP_RANGE.
4119 * breakpoint.c (watchpoint_exp_is_const): Update.
4120 * expprint.c (dump_subexp_body_standard): Likewise.
4121 * eval.c (init_array_element): Remove dead code.
4122 (evaluate_subexp_standard): Likewise.
4123
9c816640
YQ
41242014-07-20 Yao Qi <yao@codesourcery.com>
4125
4126 * std-operator.def: Remove BINOP_IN.
4127 * breakpoint.c (watchpoint_exp_is_const): Update.
4128 * eval.c (evaluate_subexp_standard): Likewise.
4129 * expprint.c (dump_subexp_body_standard): Likewise.
4130
164224e9
ME
41312014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
4132
4133 * microblaze-tdep.c (microblaze_register_names): Add
4134 the rshr and rslr register names.
4135 (microblaze_gdbarch_init): Use of tdesc_has_registers.
4136 Use of tdesc_find_feature. Use of tdesc_data_alloc.
4137 Use of tdesc_numbered_register. Use of
4138 microblaze_register_g_packet_guesses. Use of
4139 tdesc_use_registers. Use of set_gdbarch_register_type.
4140 (microblaze_register_g_packet_guesses): New.
4141 * microblaze-tdep.h (microblaze_reg_num): Add
4142 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
4143 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
4144 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
4145 * features/microblaze-core.xml: New file.
4146 * features/microblaze-stack-protect.xml: New file.
4147 * features/microblaze-with-stack-protect.c: New file.
4148 * features/microblaze-with-stack-protect.xml: New file.
4149 * features/microblaze.xml: New file.
4150 * features/microblaze.c: New file.
4151 * features/Makefile (microblaze-with-stack-protect): Add
4152 microblaze-with-stack-protect microblaze and microblaze-expedite.
4153 * regformats/microblaze-with-stack-protect.dat: New file.
4154 * regformats/microblaze.dat: New file.
4155 * doc/gdb.texinfo (MicroBlaze Features): Added.
4156
e8b2341c
TT
41572014-07-18 Tom Tromey <tromey@redhat.com>
4158
4159 * exec.c (exec_ops): Now static.
4160 * exec.h (exec_ops): Don't declare.
4161
44e89118
TT
41622014-07-18 Tom Tromey <tromey@redhat.com>
4163
4164 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
4165 to find_target_beneath.
4166 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
4167 find_target_beneath.
4168 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
4169
b0ed115f
TT
41702014-07-18 Tom Tromey <tromey@redhat.com>
4171
4172 PR gdb/17130:
4173 * utils.c (quit): Use target_supports_terminal_ours.
4174 * target.h (target_supports_terminal_ours): Declare.
4175 * target.c (target_supports_delete_record): Don't check
4176 to_delete_record against NULL.
4177 (target_supports_terminal_ours): New function.
4178
e75fdfca
TT
41792014-07-18 Tom Tromey <tromey@redhat.com>
4180
4181 PR gdb/17130:
4182 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
4183 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
4184 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
4185 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
4186 * windows-nat.c (windows_xfer_partial): Always delegate.
4187 * record-btrace.c (record_btrace_xfer_partial): Simplify
4188 delegation.
4189 (record_btrace_fetch_registers, record_btrace_store_registers)
4190 (record_btrace_prepare_to_store, record_btrace_resume)
4191 (record_btrace_wait, record_btrace_find_new_threads)
4192 (record_btrace_thread_alive): Likewise.
4193 * procfs.c (procfs_xfer_partial): Always delegate.
4194 * corelow.c (core_xfer_partial): Always delegate.
4195 * sol-thread.c (sol_find_new_threads): Simplify delegation.
4196
83814951
TT
41972014-07-18 Tom Tromey <tromey@redhat.com>
4198
4199 * exec.c (exec_make_note_section): Move earlier.
4200
b8b8facf
DE
42012014-07-17 Doug Evans <dje@google.com>
4202
74b49205 4203 PR gdb/17170
b8b8facf
DE
4204 * maint.c (count_symtabs_and_blocks): Handle NULL
4205 current_program_space.
4206 (report_command_stats): Check global enabled flag in addition to
4207 recorded enabled flag.
4208 (make_command_stats_cleanup): Handle msg_type == 0, startup.
4209
69ff6be5
PA
42102014-07-16 Pedro Alves <palves@redhat.com>
4211
4212 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
4213
252db1b5
TT
42142014-07-16 Tom Tromey <tromey@redhat.com>
4215
4216 * target.h (struct target_ops) <to_delete_record>: Reformat
4217 comment.
4218
a432721e
TT
42192014-07-16 Tom Tromey <tromey@redhat.com>
4220
4221 * target-delegates.c: Rebuild.
4222
487d9753
PL
42232014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
4224
4225 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
4226 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
4227 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
4228 (avr_pointer_to_address): Likewise.
4229 (avr_address_class_type_flags): New function.
4230 (avr_address_class_type_flags_to_name): Likewise.
4231 (avr_address_class_name_to_type_flags): Likewise.
4232 (avr_gdbarch_init): Set address_class_type_flags,
4233 address_class_type_flags_to_name and
4234 address_class_name_to_type_flags.
4235
57745c90
PA
42362014-07-15 Pedro Alves <palves@redhat.com>
4237
4238 * linux-nat.c (kill_callback): Save errno and work with saved
4239 copy.
4240
2d40be18
SM
42412014-07-15 Simon Marchi <simon.marchi@ericsson.com>
4242
4243 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
4244
572f6555
EBM
42452014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4246
4247 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
4248 breakpoint support correctly.
4249
cc1c52ad
PA
42502014-07-14 Pedro Alves <palves@redhat.com>
4251
4252 * utils.c (prompt_for_continue): Call target_terminal_ours.
4253
1e973570
PA
42542014-07-14 Pedro Alves <palves@redhat.com>
4255
4256 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
4257 catch_errors. Don't re-enable stdin or notify observers where,
4258 and rethrow error.
4259 (fetch_inferior_event_wrapper): Delete.
4260
93d6eb10
PA
42612014-07-14 Pedro Alves <palves@redhat.com>
4262
4263 PR gdb/17072
4264 * top.c: Include "inf-loop.h".
4265 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
4266 field.
4267 (gdb_readline_wrapper_cleanup): Make the target async again, if it
4268 was async before.
4269 (gdb_readline_wrapper): Store whether the target is async, and
4270 make it sync.
4271
0017922d
PA
42722014-07-14 Pedro Alves <palves@redhat.com>
4273
4274 PR gdb/17072
4275 * top.c (gdb_readline_wrapper_line): Tweak comment.
4276 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
4277 the input handler callback.
4278
94696ad3
PA
42792014-07-14 Pedro Alves <palves@redhat.com>
4280
4281 PR gdb/17072
4282 * main.c: Include event-top.h.
4283 (handle_command_errors): New function.
4284 (catch_command_errors, catch_command_errors_const): Use it.
4285
9d1e69a2
PA
42862014-07-14 Pedro Alves <palves@redhat.com>
4287
4288 * exceptions.c (catch_command_errors, catch_command_errors_const):
4289 Moved to main.c.
4290 * exceptions.h (catch_command_errors_ftype)
4291 (catch_command_errors_const_ftype): Moved to main.c.
4292 (catch_command_errors, catch_command_errors_const): Delete
4293 declarations.
4294 * main.c (catch_command_errors_ftype)
4295 (catch_command_errors_const_ftype): Moved here from exceptions.h.
4296 (catch_command_errors, catch_command_errors_const)): Moved here
4297 from exceptions.c and make static.
4298
feefc97b
PA
42992014-07-14 Pedro Alves <palves@redhat.com>
4300
4301 * exceptions.c (print_any_exception): Delete.
4302 (catch_exceptions_with_msg): Use exception_print instead of
4303 print_any_exception.
4304 (catch_errors): Use exception_fprintf instead of
4305 print_any_exception.
4306 (catch_command_errors, catch_command_errors_const): Use
4307 exception_print instead of print_any_exception.
4308
c933f875
PA
43092014-07-14 Pedro Alves <palves@redhat.com>
4310
4311 * infcall.c (run_inferior_call): Set 'sync_execution' while
4312 running the inferior call.
4313
feb6f816
PA
43142014-07-14 Pedro Alves <palves@redhat.com>
4315
4316 * value.c (value_contents_equal): Delete function.
4317 * value.h (value_contents_equal): Delete declaration.
4318
d98b7a16
TT
43192014-07-14 Tom Tromey <tromey@redhat.com>
4320
4321 PR exp/17106:
4322 * gdbtypes.c (is_dynamic_type_internal): New function, from
4323 is_dynamic_type.
4324 (is_dynamic_type): Rewrite.
4325 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
4326 (resolve_dynamic_struct): Likewise.
4327 (resolve_dynamic_type_internal): New function, from
4328 resolve_dynamic_type.
4329 (resolve_dynamic_type): Rewrite.
4330
548740d6
TT
43312014-07-14 Tom Tromey <tromey@redhat.com>
4332
4333 * target.c (target_require_runnable): Also check record_stratum.
4334 Update comment.
4335
808f7ab1
YQ
43362014-07-11 Yao Qi <yao@codesourcery.com>
4337
4338 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
4339 thumb_instruction_restores_sp return true.
4340
540314bd
YQ
43412014-07-11 Yao Qi <yao@codesourcery.com>
4342
4343 * arm-tdep.c (thumb_instruction_restores_sp): New function.
4344 (thumb_in_function_epilogue_p): Call
4345 thumb_instruction_restores_sp.
4346
1db01f22
YQ
43472014-07-11 Yao Qi <yao@codesourcery.com>
4348
4349 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
4350 'add sp, #imm'.
4351 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
4352
3116063b
GB
43532014-07-11 Gary Benson <gbenson@redhat.com>
4354
4355 * amd64-linux-nat.c (gdbcore.h): Remove include.
4356 (regset.h): Likewise.
4357 (nat/linux-btrace.h): Likewise.
4358 (btrace.h): Likewise.
4359 (gdb_assert.h): Likewise.
4360 (string.h): Likewise.
4361 (sys/uio.h): Likewise.
4362 (sys/debugreg.h): Likewise.
4363 (sys/syscall.h): Likewise.
4364 (sys/procfs.h): Likewise.
4365 (sys/user.h): Likewise.
4366 (asm/ptrace.h): Likewise.
4367 (i386-nat.h): Likewise.
4368 * i386-linux-nat.c (i386-nat.h): Likewise.
4369 (regset.h): Likewise.
4370 (target.h): Likewise.
4371 (linux-nat.h): Likewise.
4372 (nat/linux-btrace.h): Likewise.
4373 (btrace.h): Likewise.
4374 (gdb_assert.h): Likewise.
4375 (string.h): Likewise.
4376 (sys/uio.h): Likewise.
4377 (sys/user.h): Likewise.
4378 (sys/procfs.h): Likewise.
4379 (sys/reg.h): Likewise.
4380 (sys/debugreg.h): Likewise.
4381 (ORIG_EAX): Remove definition.
4382
040baaf6
GB
43832014-07-11 Gary Benson <gbenson@redhat.com>
4384
4385 * i386-linux-nat.h: New file.
4386 * x86-linux-nat.h: Likewise.
4387 * x86-linux-nat.c: Likewise.
4388 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
4389 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
4390 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4391 * amd64-linux-nat.c (x86-linux-nat.h): New include.
4392 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
4393 (PTRACE_SETREGSET): Likewise.
4394 (arch_lwp_info): Now in x86-linux-nat.c.
4395 (have_ptrace_getregset): Now in x86-linux-nat.h.
4396 (x86_linux_dr_get): Now in x86-linux-nat.c.
4397 (x86_linux_dr_set): Likewise.
4398 (x86_linux_dr_get_addr): Likewise.
4399 (x86_linux_dr_get_control): Likewise.
4400 (x86_linux_dr_get_status): Likewise.
4401 (update_debug_registers_callback): Likewise.
4402 (x86_linux_dr_set_control): Likewise.
4403 (x86_linux_dr_set_addr): Likewise.
4404 (x86_linux_prepare_to_resume): Likewise.
4405 (x86_linux_new_thread): Likewise.
4406 (x86_linux_new_fork): Likewise.
4407 (x86_linux_get_thread_area): Likewise.
4408 (super_post_startup_inferior): Likewise.
4409 (x86_linux_child_post_startup_inferior): Likewise.
4410 (AMD64_LINUX_USER64_CS): Likewise.
4411 (AMD64_LINUX_X32_DS): Likewise.
4412 (x86_linux_read_description): Likewise.
4413 (x86_linux_enable_btrace): Likewise.
4414 (x86_linux_disable_btrace): Likewise.
4415 (x86_linux_teardown_btrace): Likewise.
4416 (x86_linux_read_btrace): Likewise.
4417 (x86_linux_create_target): Likewise.
4418 (x86_linux_add_target): Likewise.
4419 * i386-linux-nat.c (x86-linux-nat.h): New include.
4420 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
4421 (PTRACE_SETREGSET): Likewise.
4422 (arch_lwp_info): Now in x86-linux-nat.c.
4423 (have_ptrace_getregset): Now in x86-linux-nat.h.
4424 (x86_linux_dr_get): Now in x86-linux-nat.c.
4425 (x86_linux_dr_set): Likewise.
4426 (x86_linux_dr_get_addr): Likewise.
4427 (x86_linux_dr_get_control): Likewise.
4428 (x86_linux_dr_get_status): Likewise.
4429 (update_debug_registers_callback): Likewise.
4430 (x86_linux_dr_set_control): Likewise.
4431 (x86_linux_dr_set_addr): Likewise.
4432 (x86_linux_prepare_to_resume): Likewise.
4433 (x86_linux_new_thread): Likewise.
4434 (x86_linux_new_fork): Likewise.
4435 (x86_linux_get_thread_area): Likewise.
4436 (super_post_startup_inferior): Likewise.
4437 (x86_linux_child_post_startup_inferior): Likewise.
4438 (AMD64_LINUX_USER64_CS): Likewise.
4439 (AMD64_LINUX_X32_DS): Likewise.
4440 (x86_linux_read_description): Likewise.
4441 (x86_linux_enable_btrace): Likewise.
4442 (x86_linux_disable_btrace): Likewise.
4443 (x86_linux_teardown_btrace): Likewise.
4444 (x86_linux_read_btrace): Likewise.
4445 (x86_linux_create_target): Likewise.
4446 (x86_linux_add_target): Likewise.
4447
1aa7e42c
GB
44482014-07-11 Gary Benson <gbenson@redhat.com>
4449
4450 * amd64-linux-nat.c: Comment and whitespace changes.
4451 * i386-linux-nat.c: Comment and whitespace changes.
4452
c1e246a0
GB
44532014-07-11 Gary Benson <gbenson@redhat.com>
4454
4455 * amd64-linux-nat.c (x86_linux_create_target): New function.
4456 (x86_linux_add_target): Likewise.
4457 (_initialize_amd64_linux_nat): Delegate to the above new functions.
4458 * i386-linux-nat.c (x86_linux_create_target): New function.
4459 (x86_linux_add_target): Likewise.
4460 (_initialize_i386_linux_nat): Delegate to the above new functions.
4461
8c420b8d
GB
44622014-07-11 Gary Benson <gbenson@redhat.com>
4463
4464 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
4465 (ps_get_thread_area): Delegate to the above in 32-bit mode.
4466 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
4467 (ps_get_thread_area): Delegate to the above.
4468
cb1da100
GB
44692014-07-11 Gary Benson <gbenson@redhat.com>
4470
4471 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
4472 x86_linux_read_description. All uses updated. amd64-specific
4473 code conditionalized. Conditionalized i386-specific code added.
4474 Redundant cast removed.
4475 * i386-linux-nat.c (i386_linux_read_description): Renamed to
4476 x86_linux_read_description. All uses updated. i386-specific
4477 code conditionalized. Conditionalized amd64-specific code added.
4478 One sizeof replaced with the actual type it is describing.
4479
2acf3cd0
GB
44802014-07-11 Gary Benson <gbenson@redhat.com>
4481
4482 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
4483 x86_linux_dr_get. All uses updated.
4484 (amd64_linux_dr_set): Renamed to
4485 x86_linux_dr_set. All uses updated.
4486 (amd64_linux_dr_get_addr): Renamed to
4487 x86_linux_dr_get_addr. All uses updated.
4488 (amd64_linux_dr_get_control): Renamed to
4489 x86_linux_dr_get_control. All uses updated.
4490 (amd64_linux_dr_get_status): Renamed to
4491 x86_linux_dr_get_status. All uses updated.
4492 (amd64_linux_dr_set_control): Renamed to
4493 x86_linux_dr_set_control. All uses updated.
4494 (amd64_linux_dr_set_addr): Renamed to
4495 x86_linux_dr_set_addr. All uses updated.
4496 (amd64_linux_prepare_to_resume): Renamed to
4497 x86_linux_prepare_to_resume. All uses updated.
4498 (amd64_linux_new_thread): Renamed to
4499 x86_linux_new_thread. All uses updated.
4500 (amd64_linux_new_fork): Renamed to
4501 x86_linux_new_fork. All uses updated.
4502 (amd64_linux_child_post_startup_inferior): Renamed to
4503 x86_linux_child_post_startup_inferior. All uses updated.
4504 (amd64_linux_enable_btrace): Renamed to
4505 x86_linux_enable_btrace. All uses updated.
4506 (amd64_linux_disable_btrace): Renamed to
4507 x86_linux_disable_btrace. All uses updated.
4508 (amd64_linux_teardown_btrace): Renamed to
4509 x86_linux_teardown_btrace. All uses updated.
4510 (amd64_linux_read_btrace): Renamed to
4511 x86_linux_read_btrace. All uses updated.
4512 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
4513 x86_linux_dr_get. All uses updated.
4514 (i386_linux_dr_set): Renamed to
4515 x86_linux_dr_set. All uses updated.
4516 (i386_linux_dr_get_addr): Renamed to
4517 x86_linux_dr_get_addr. All uses updated.
4518 (i386_linux_dr_get_control): Renamed to
4519 x86_linux_dr_get_control. All uses updated.
4520 (i386_linux_dr_get_status): Renamed to
4521 x86_linux_dr_get_status. All uses updated.
4522 (i386_linux_dr_set_control): Renamed to
4523 x86_linux_dr_set_control. All uses updated.
4524 (i386_linux_dr_set_addr): Renamed to
4525 x86_linux_dr_set_addr. All uses updated.
4526 (i386_linux_prepare_to_resume): Renamed to
4527 x86_linux_prepare_to_resume. All uses updated.
4528 (i386_linux_new_thread): Renamed to
4529 x86_linux_new_thread. All uses updated.
4530 (i386_linux_new_fork): Renamed to
4531 x86_linux_new_fork. All uses updated.
4532 (i386_linux_child_post_startup_inferior): Renamed to
4533 x86_linux_child_post_startup_inferior. All uses updated.
4534 (i386_linux_enable_btrace): Renamed to
4535 x86_linux_enable_btrace. All uses updated.
4536 (i386_linux_disable_btrace): Renamed to
4537 x86_linux_disable_btrace. All uses updated.
4538 (i386_linux_teardown_btrace): Renamed to
4539 x86_linux_teardown_btrace. All uses updated.
4540 (i386_linux_read_btrace): Renamed to
4541 x86_linux_read_btrace. All uses updated.
4542
b9c1d481
AS
45432014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
4544
4545 * remote.c (extended_remote_post_attach): New function.
4546 (init_extended_remote_ops): Install it as to_post_attach method.
4547
7180e04a
PA
45482014-07-09 Pedro Alves <palves@redhat.com>
4549
4550 * infcmd.c (attach_command_post_wait): Don't call
4551 target_terminal_inferior here.
4552 (attach_command): Call it here instead.
4553
9a9a7608
AB
45542014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4555
4556 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
4557 field.
4558 * c-varobj.c (c_is_path_expr_parent): New function, moved core
4559 from varobj.c, with additional checks.
4560 (c_varobj_ops): Fill in is_path_expr_parent field.
4561 (cplus_varobj_ops): Fill in is_path_expr_parent field.
4562 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
4563 field.
4564 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
4565 ops method.
4566 (varobj_default_is_path_expr_parent): New function.
4567 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
4568 (varobj_default_is_path_expr_parent): Declare new function.
4569
1f267ae3
MM
45702014-07-08 Markus Metzger <markus.t.metzger@intel.com>
4571
4572 * infcmd.c (finish_backward): Turn internal error into normal error.
4573
b2ee242b
PA
45742014-07-07 Pedro Alves <palves@redhat.com>
4575
8a869bca 4576 PR gdb/17096
b2ee242b
PA
4577 * remote.c (async_handle_remote_sigint)
4578 (async_handle_remote_sigint_twice): Call
4579 gdb_call_async_signal_handler instead of
4580 mark_async_signal_handler.
4581
38e229b2
TT
45822014-07-07 Tom Tromey <tromey@redhat.com>
4583
4584 * target-delegates.c: Rebuild.
4585 * target.c (target_info_record): Remove.
4586 * record.c (info_record_command): Unconditionally call
4587 to_info_record.
4588 * target.h (struct target_ops) <to_info_record>: Use
4589 TARGET_DEFAULT_IGNORE.
4590 (target_info_record): Remove.
4591
f0f9ff95
TT
45922014-07-07 Tom Tromey <tromey@redhat.com>
4593
4594 * target.h (struct target_ops) <to_get_thread_local_address>: Use
4595 TARGET_DEFAULT_NORETURN.
4596 * target.c (generic_tls_error): New function.
4597 (target_translate_tls_address): Don't search target stack.
4598 * target-delegates.c: Rebuild.
4599 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
4600 stack.
4601 * linux-thread-db.c (thread_db_get_thread_local_address):
4602 Unconditionally call beneath target.
4603
4a5be5ee
MK
46042014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
4605
4606 * cli/cli-logging.c (pop_output_files): Assign targerr to
4607 gdb_stdtargerr.
4608
92c3b204
AB
46092014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
4610
4611 * MAINTAINERS (Write After Approval): Update my email address.
4612
9b11e3a7
GB
46132014-07-02 Gary Benson <gbenson@redhat.com>
4614
4615 * proc-service.c (ps_xfer_memory): Update comment.
4616 (ps_pstop): Remove unused function.
4617 (ps_pcontinue): Likewise.
4618 (ps_lstop): Likewise.
4619 (ps_lcontinue): Likewise.
4620 (ps_lgetxregsize): Likewise.
4621 (ps_lgetxregs): Likewise.
4622 (ps_lsetxregs): Likewise.
4623 (ps_plog): Likewise.
4624 (ps_ptread): Likewise.
4625 (ps_ptwrite): Likewise.
4626
cf363f18
MW
46272014-07-01 Mark Wielaard <mjw@redhat.com>
4628
4629 * dwarf2read.c (add_array_cv_type): New function.
4630 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
4631 (read_tag_volatile_type): Likewise.
4632
82ae6c8d
TT
46332014-07-01 Tom Tromey <tromey@redhat.com>
4634
4635 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
4636 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
4637 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
4638 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
4639 * command.h (cmd_cfunc_ftype): Move earlier.
4640 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
4641 (add_com, add_info): Use cmd_cfunc_ftype.
4642
96142726
TT
46432014-06-30 Tom Tromey <tromey@redhat.com>
4644
4645 * symtab.c (operator_chars): Make parameters and return type
4646 const.
4647 (file_matches): Make "files" const.
4648 (struct search_symbols_data) <files>: Now const.
4649 (search_symbols): Make "regexp" and "files" parameters const.
4650 Update.
4651 (symtab_symbol_info): Remove cast.
4652 (rbreak_command): Update.
4653 * symtab.h (search_symbols): Update.
4654
b67a2c6f
YQ
46552014-06-27 Yao Qi <yao@codesourcery.com>
4656
4657 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
4658 Change parameter type to 'struct thread_info *'. Caller
4659 updated.
4660 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
4661 Update declaration.
4662 * dummy-frame.c (struct dummy_frame_id): New.
4663 (dummy_frame_id_eq): New function.
4664 (struct dummy_frame) <id>: Change its type to 'struct
4665 dummy_frame_id'.
4666 (dummy_frame_push): Add parameter ptid and save it in
4667 dummy_frame_id.
4668 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
4669 inferior_ptid.
4670 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
4671 to inferior_ptid.
4672 (lookup_dummy_frame): Change parameter type to 'struct
4673 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
4674 instead of frame_id_eq.
4675 (dummy_frame_pop): Add parameter ptid. Callers updated.
4676 Update comments. Compose dummy_frame_id and pass it to
4677 lookup_dummy_frame.
4678 (dummy_frame_discard): Add parameter ptid.
4679 (dummy_frame_sniffer): Compose dummy_frame_id and call
4680 dummy_frame_id_eq instead of frame_id_eq.
4681 (fprint_dummy_frames): Print ptid.
4682 * dummy-frame.h: Remove comments.
4683 (dummy_frame_push): Add ptid in declaration.
4684 (dummy_frame_pop, dummy_frame_discard): Likewise.
4685
5b10184c
TT
46862014-06-26 Tom Tromey <tromey@redhat.com>
4687
4688 * cli/cli-cmds.c (error_no_arg): Make "why" const.
4689 * command.h (error_no_arg): Update.
4690
06900326
TT
46912014-06-26 Tom Tromey <tromey@redhat.com>
4692
4693 * cli/cli-setshow.c (do_set_command): Make "arg" const.
4694 (do_show_command): Make "arg" const.
4695 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
4696
c2bcbb1d
TT
46972014-06-26 Tom Tromey <tromey@redhat.com>
4698
4699 * record-full.c (record_full_get_bookmark): Make "args" const.
4700 (record_full_goto_bookmark): Make "raw_bookmark" const.
4701 * record.c (record_goto): New function.
4702 (cmd_record_goto): Use it. Now static.
4703 * record.h (record_goto): Declare.
4704 (cmd_record_goto): Remove declaration.
4705 * target-delegates.c: Rebuild.
4706 * target.h (struct target_ops) <to_get_bookmark,
4707 to_goto_bookmark>: Make parameter const.
4708
9cbe5fff
TT
47092014-06-26 Tom Tromey <tromey@redhat.com>
4710
4711 * defs.h (generic_load): Update.
4712 * m32r-rom.c (m32r_load_gen): Make "filename" const.
4713 * monitor.c (monitor_load): Make "args" const.
4714 * remote-m32r-sdi.c (m32r_load): Make "args" const.
4715 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
4716 const.
4717 (mips_load): Make "file" const.
4718 * remote-sim.c (gdbsim_load): Make "args" const.
4719 * remote.c (remote_load): Make "name" const.
4720 * symfile.c (generic_load): Make "args" const.
4721 * target-delegates.c: Rebuild.
4722 * target.c (target_load): Make "arg" const.
4723 (debug_to_load): Make "args" const.
4724 * target.h (struct target_ops) <to_load>: Make parameter const.
4725 (target_load): Update.
4726
34a68019
TT
47272014-06-26 Tom Tromey <tromey@redhat.com>
4728
4729 PR symtab/16902:
4730 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
4731 (dwarf2_physname, read_partial_die)
4732 (guess_partial_die_structure_name, fixup_partial_die)
4733 (guess_full_die_structure_name, anonymous_struct_prefix)
4734 (dwarf2_name): Use per-BFD obstack.
4735
efc889c1
YQ
47362014-06-26 Yao Qi <yao@codesourcery.com>
4737
4738 * dummy-frame.c (dummy_frame_sniffer): Move local variables
4739 dummyframe and this_id into inner block below.
4740
4395285e
YQ
47412014-06-26 Yao Qi <yao@codesourcery.com>
4742
4743 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
4744 with "signal_pass[0]" in the initialization of signal_pass.
4745
aef92902
MM
47462014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4747
4748 * record-btrace.c (record_btrace_generating_corefile)
4749 (record_btrace_prepare_to_generate_core)
4750 (record_btrace_done_generating_core): New.
4751 (record_btrace_xfer_partial, record_btrace_fetch_registers)
4752 (record_btrace_store_registers, record_btrace_prepare_to_store):
4753 Forward request when generating a core file.
4754 (record_btrace_open): Set record_btrace_generating_corefile to zero.
4755 (init_record_btrace_ops): Set to_prepare_to_generate_core and
4756 to_done_generating_core.
4757
5fff78c4
MM
47582014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4759
4760 * target.h (target_ops) <to_prepare_to_generate_core>
4761 <to_done_generating_core>: New.
4762 (target_prepare_to_generate_core, target_done_generating_core): New.
4763 * target.c (target_prepare_to_generate_core)
4764 (target_done_generating_core): New.
4765 * target-delegates.c: Regenerate.
4766 * gcore.c: (write_gcore_file): Rename to ...
4767 (write_gcore_file_1): ...this.
4768 (write_gcore_file): Call target_prepare_to_generate_core
4769 and target_done_generating_core.
4770
1d1f1ccb
MM
47712014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4772
4773 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
4774 * gcore.c (write_gcore_file): Free memory returned from
4775 make_corefile_notes.
4776 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
4777 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
4778
3343ef86
YQ
47792014-06-24 Yao Qi <yao@codesourcery.com>
4780
4781 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
4782 (arm_linux_init_abi): Set skip_trampoline_code with
4783 gdbarch_skip_trampoline_code instead of
4784 find_solib_trampoline_target.
4785
18d18ac8
YQ
47862014-06-24 Yao Qi <yao@codesourcery.com>
4787
4788 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
4789 arm_skip_bx_reg returns non-zero.
4790
80d8d390
YQ
47912014-06-24 Yao Qi <yao@codesourcery.com>
4792
4793 * arm-tdep.c (arm_skip_bx_reg): New function.
4794 (arm_skip_stub): Call arm_skip_bx_reg.
4795
6a18a01c
DB
47962014-06-23 Don Breazeal <donb@codesourcery.com>
4797
4798 * MAINTAINERS: Add myself as write-after-approval maintainer.
4799
8e9db26e
PA
48002014-06-23 Pedro Alves <palves@redhat.com>
4801
4802 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
4803 DR_CONTROL before setting DR0..DR3.
4804 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
4805 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
4806 bits of DR_CONTROL related to the debug register slot being
4807 disabled. If all slots are vacant, clear local slowdown as well,
4808 and assert DR_CONTROL is 0.
4809
70afc5b7
SC
48102014-06-23 Siva Chandra Reddy <sivachandra@google.com>
4811
4812 * python/lib/gdb/command/xmethods.py
4813 (get_method_matchers_in_loci): Lookup xmethod matchers in the
4814 current progspace only if the string "progspace" matches LOCUS_RE.
4815
840ed64d
JK
48162014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4817
4818 Fix --with-system-readline with readline-6.3 patch 5.
4819 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
4820 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
4821 types.
4822
26f2dc30
TT
48232014-06-20 Tom Tromey <tromey@redhat.com>
4824
4825 * dwarf2read.c (dw2_get_real_path): Use correct type in
4826 OBSTACK_CALLOC.
4827 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
4828
125f8a3d
GB
48292014-06-20 Gary Benson <gbenson@redhat.com>
4830
4831 * common/gdb_thread_db.h: Moved to nat. All includes updated.
4832 * common/glibc_thread_db.h: Likewise.
4833 * common/i386-cpuid.h: Likewise.
4834 * common/i386-gcc-cpuid.h: Likewise.
4835 * common/linux-btrace.h: Likewise.
4836 * common/linux-osdata.h: Likewise.
4837 * common/linux-procfs.h: Likewise.
4838 * common/linux-ptrace.h: Likewise.
4839 * common/mips-linux-watch.h: Likewise.
4840 * common/linux-btrace.c: Moved to nat.
4841 * common/linux-osdata.c: Likewise.
4842 * common/linux-procfs.c: Likewise.
4843 * common/linux-ptrace.c: Likewise.
4844 * common/mips-linux-watch.c: Likewise.
4845 * nat/gdb_thread_db.h: Moved from common.
4846 * nat/glibc_thread_db.h: Likewise.
4847 * nat/i386-cpuid.h: Likewise.
4848 * nat/i386-gcc-cpuid.h: Likewise.
4849 * nat/linux-btrace.c: Likewise.
4850 * nat/linux-btrace.h: Likewise.
4851 * nat/linux-osdata.c: Likewise.
4852 * nat/linux-osdata.h: Likewise.
4853 * nat/linux-procfs.c: Likewise.
4854 * nat/linux-procfs.h: Likewise.
4855 * nat/linux-ptrace.c: Likewise.
4856 * nat/linux-ptrace.h: Likewise.
4857 * nat/mips-linux-watch.c: Likewise.
4858 * nat/mips-linux-watch.h: Likewise.
4859 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
4860 (object file files): Reordered.
4861 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
4862 of glibc_thread_db.h.
4863
42995dbd
GB
48642014-06-20 Gary Benson <gbenson@redhat.com>
4865
4866 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
4867 (i386_dr_low_type): Moved to nat/i386-dregs.h.
4868 (i386_dr_low): Likewise.
4869 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
4870 (i386_dr_low_set_addr): Likewise.
4871 (i386_dr_low_get_addr): Likewise.
4872 (i386_dr_low_can_set_control): Likewise.
4873 (i386_dr_low_set_control): Likewise.
4874 (i386_dr_low_get_control): Likewise.
4875 (i386_dr_low_get_status): Likewise.
4876 (i386_get_debug_register_length): Likewise.
4877 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
4878 (i386_dr_low): Likewise.
4879 * nat/i386-dregs.c (i386-low.h): Remove include.
4880 (i386-nat.h): Likewise.
4881 (nat/i386-dregs.h): New include.
4882 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
4883 (i386_dr_low_set_addr): Likewise.
4884 (i386_dr_low_get_addr): Likewise.
4885 (i386_dr_low_can_set_control): Likewise.
4886 (i386_dr_low_set_control): Likewise.
4887 (i386_dr_low_get_control): Likewise.
4888 (i386_dr_low_get_status): Likewise.
4889 (i386_get_debug_register_length): Likewise.
4890 (debug_hw_points): Likewise.
4891
3ed9baed
IB
48922014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
4893
4894 * Makefile.in (SFILES): Add d-exp.y.
4895 (YYFILES): Add d-exp.c.
4896 (YYOBJ): Add d-exp.o.
4897 (local-maintainer-clean): Delete d-exp.c.
4898 * d-exp.y: New file.
4899 * d-lang.h (d_parse): New declaration.
4900 (d_error): New declaration.
4901 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
4902 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
4903 PREC_ORDER operators.
4904 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
4905
78c164b0
YQ
49062014-06-19 Yao Qi <yao@codesourcery.com>
4907
4908 * gdbthread.h (any_running): Remove the declaration.
4909 * thread.c (any_running): Remove.
4910
f6e29b6e
YQ
49112014-06-19 Yao Qi <yao@codesourcery.com>
4912
4913 * gdbthread.h (struct thread_info) <state>: Change its type to
4914 'enum thread_state'. Update comments.
4915
034f788c
PA
49162014-06-19 Pedro Alves <palves@redhat.com>
4917
4918 * gdbthread.h (ALL_THREADS): Delete.
4919 (ALL_NON_EXITED_THREADS): New macro.
4920 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
4921 instead of ALL_THREADS.
4922 * infrun.c (find_thread_needs_step_over)
4923 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
4924 instead of ALL_THREADS.
4925 * record-btrace.c (record_btrace_open)
4926 (record_btrace_stop_recording, record_btrace_close)
4927 (record_btrace_is_replaying, record_btrace_resume)
4928 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
4929 * remote.c (append_pending_thread_resumptions): Likewise.
4930 * thread.c (thread_apply_all_command): Likewise.
4931
46e33252
GB
49322014-06-19 Gary Benson <gbenson@redhat.com>
4933
4934 * i386-nat.c (i386_stopped_by_watchpoint):
4935 Use i386_dr_stopped_by_watchpoint.
4936 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
4937 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
4938
3a8ee006
GB
49392014-06-19 Gary Benson <gbenson@redhat.com>
4940
4941 * nat/i386-dregs.c: New file.
4942 * Makefile.in (i386-dregs.o): New rule.
4943 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
4944 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
4945 * config/i386/darwin.mh (NATDEPFILES): Likewise.
4946 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
4947 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
4948 * config/i386/go32.mh (NATDEPFILES): Likewise.
4949 * config/i386/linux.mh (NATDEPFILES): Likewise.
4950 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4951 * config/i386/mingw.mh (NATDEPFILES): Likewise.
4952 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
4953 * i386-nat.h (debug_hw_points): New declaration.
4954 * i386-nat.c (breakpoint.h): Remove include.
4955 (command.h): Likewise.
4956 (target.h): Likewise.
4957 (gdb_assert.h): Likewise.
4958 (debug_hw_points): Made nonstatic.
4959 (debug_printf): Now in i386-dregs.c.
4960 (TARGET_HAS_DR_LEN_8): Likewise.
4961 (DR_CONTROL_SHIFT): Likewise.
4962 (DR_CONTROL_SIZE): Likewise.
4963 (DR_RW_EXECUTE): Likewise.
4964 (DR_RW_WRITE): Likewise.
4965 (DR_RW_READ): Likewise.
4966 (DR_RW_IORW): Likewise.
4967 (DR_LEN_1): Likewise.
4968 (DR_LEN_2): Likewise.
4969 (DR_LEN_4): Likewise.
4970 (DR_LEN_8): Likewise.
4971 (DR_LOCAL_ENABLE_SHIFT): Likewise.
4972 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
4973 (DR_ENABLE_SIZE): Likewise.
4974 (DR_LOCAL_SLOWDOWN): Likewise.
4975 (DR_GLOBAL_SLOWDOWN): Likewise.
4976 (DR_CONTROL_RESERVED): Likewise.
4977 (I386_DR_CONTROL_MASK): Likewise.
4978 (I386_DR_VACANT): Likewise.
4979 (I386_DR_LOCAL_ENABLE): Likewise.
4980 (I386_DR_GLOBAL_ENABLE): Likewise.
4981 (I386_DR_DISABLE): Likewise.
4982 (I386_DR_SET_RW_LEN): Likewise.
4983 (I386_DR_GET_RW_LEN): Likewise.
4984 (I386_DR_WATCH_HIT): Likewise.
4985 (i386_wp_op_t): Likewise.
4986 (i386_show_dr): Likewise.
4987 (i386_length_and_rw_bits): Likewise.
4988 (i386_insert_aligned_watchpoint): Likewise.
4989 (i386_remove_aligned_watchpoint): Likewise.
4990 (i386_handle_nonaligned_watchpoint): Likewise.
4991 (i386_update_inferior_debug_regs): Likewise.
4992 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
4993 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
4994 (i386_region_ok_for_watchpoint):
4995 Use i386_dr_region_ok_for_watchpoint.
4996 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
4997
322a8e06
GB
49982014-06-19 Gary Benson <gbenson@redhat.com>
4999
5000 * i386-nat.c (i386_insert_hw_breakpoint): Use
5001 i386_insert_watchpoint.
5002 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
5003
8f26655c
GB
50042014-06-19 Gary Benson <gbenson@redhat.com>
5005
5006 * i386-nat.c (i386_dr_show): Renamed to
5007 i386_show_dr and made static. All uses updated.
5008 (i386_dr_length_and_rw_bits): Renamed to
5009 i386_length_and_rw_bits and made static.
5010 All uses updated.
5011 (i386_dr_insert_aligned_watchpoint): Renamed to
5012 i386_insert_aligned_watchpoint and made static.
5013 All uses updated.
5014 (i386_dr_remove_aligned_watchpoint): Renamed to
5015 i386_remove_aligned_watchpoint and made static.
5016 All uses updated.
5017 (i386_dr_update_inferior_debug_regs): Renamed to
5018 i386_update_inferior_debug_regs and made static.
5019 All uses updated.
5020 * nat/i386-dregs.h (i386_dr_show): Removed.
5021 (i386_dr_length_and_rw_bits): Likewise.
5022 (i386_dr_insert_aligned_watchpoint): Likewise.
5023 (i386_dr_remove_aligned_watchpoint): Likewise.
5024 (i386_dr_update_inferior_debug_regs): Likewise.
5025
992c7d70
GB
50262014-06-19 Gary Benson <gbenson@redhat.com>
5027
5028 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
5029 * configure: Regenerate.
5030 * config.in: Likewise.
5031 * main.c (signal.h): New include.
5032 (setup_alternate_signal_stack): New function.
5033 (captured_main): Call the above.
5034 * cp-support.c (signal.h): New include.
5035 (catch_demangler_crashes): New flag.
5036 (SIGJMP_BUF): New define.
5037 (SIGSETJMP): Likewise.
5038 (SIGLONGJMP): Likewise.
5039 (gdb_demangle_jmp_buf): New static global.
5040 (gdb_demangle_attempt_core_dump): Likewise.
5041 (gdb_demangle_signal_handler): New function.
5042 (gdb_demangle): If catch_demangler_crashes is set, install the
5043 above signal handler before calling bfd_demangle, and restore
5044 the original signal handler afterwards. Display the offending
5045 symbol and call demangler_warning the first time a segmentation
5046 fault is caught.
5047 (_initialize_cp_support): New maint set/show command.
5048
eae7090b
GB
50492014-06-19 Gary Benson <gbenson@redhat.com>
5050
5051 * utils.h (resource_limit_kind): New enum.
5052 (can_dump_core): New declaration.
5053 (warn_cant_dump_core): Likewise.
5054 (dump_core): Likewise.
5055 * utils.c (dump_core): Made nonstatic. Added new
5056 parameter "limit_kind".
5057 (can_dump_core): Made nonstatic. Moved printing code to...
5058 (warn_cant_dump_core): New function.
5059 (can_dump_core_warn): Likewise.
5060 (internal_vproblem): Replace calls to can_dump_core with
5061 calls to can_dump_core_warn. Supply new argument to each.
5062
57fcfb1b
GB
50632014-06-19 Gary Benson <gbenson@redhat.com>
5064
5065 * utils.h (demangler_vwarning): New declaration.
5066 (demangler_warning): Likewise.
5067 * utils.c (struct internal_problem)
5068 <user_settable_should_quit>: New field.
5069 <user_settable_should_dump_core>: Likewise
5070 (internal_error_problem): Add values for above new fields.
5071 (internal_warning_problem): Likewise.
5072 (demangler_warning_problem): New static global.
5073 (demangler_vwarning): New function.
5074 (demangler_warning): Likewise.
5075 (add_internal_problem_command): Selectively add commands.
5076 (_initialize_utils): New internal problem command.
5077 * maint.c (maintenance_demangler_warning): New function.
5078 (_initialize_maint_cmds): New command.
5079
17a40b44
TT
50802014-06-18 Tom Tromey <tromey@redhat.com>
5081
5082 * f-valprint.c (info_common_command_for_block): Update.
5083 * symtab.h (struct general_symbol_info) <common_block>: Now
5084 const.
5085
346d1dfe
TT
50862014-06-18 Tom Tromey <tromey@redhat.com>
5087
5088 * symtab.h (struct symtab) <blockvector>: Now const.
5089 * ada-lang.c (ada_add_global_exceptions): Update.
5090 * buildsym.c (augment_type_symtab): Update.
5091 * dwarf2read.c (dw2_lookup_symbol): Update.
5092 * jit.c (finalize_symtab): Update.
5093 * jv-lang.c (add_class_symtab_symbol): Update.
5094 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
5095 Update.
5096 * objfiles.c (objfile_relocate1): Update.
5097 * psymtab.c (lookup_symbol_aux_psymtabs)
5098 (maintenance_check_psymtabs): Update.
5099 * python/py-symtab.c (stpy_global_block, stpy_static_block):
5100 Update.
5101 * spu-tdep.c (spu_catch_start): Update.
5102 * symmisc.c (dump_symtab_1): Update.
5103 * symtab.c (lookup_global_symbol_from_objfile)
5104 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
5105 (basic_lookup_transparent_type_quick)
5106 (basic_lookup_transparent_type, find_pc_sect_symtab)
5107 (find_pc_sect_line, search_symbols): Update.
5108 * block.c (find_block_in_blockvector): Make "bl" const.
5109 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
5110 const.
5111 (blockvector_contains_pc): Make "bv" const.
5112 (block_for_pc_sect): Update.
5113 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
5114 (blockvector_contains_pc): Update.
5115 * breakpoint.c (resolve_sal_pc): Update.
5116 * inline-frame.c (block_starting_point_at): Update.
5117
1834676b
TT
51182014-06-18 Tom Tromey <tromey@redhat.com>
5119
5120 * completer.c (complete_line): Make "line_buffer" const.
5121 * completer.h (complete_line): Update.
5122
ac1a991b
TT
51232014-06-18 Tom Tromey <tromey@redhat.com>
5124
5125 * symtab.c (add_macro_name): Remove unneeded cast.
5126
5bc98e52
TT
51272014-06-18 Tom Tromey <tromey@redhat.com>
5128
5129 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
5130 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
5131
8236def8
TT
51322014-06-18 Tom Tromey <tromey@redhat.com>
5133
5134 * probe.c (info_probes_for_ops): Make "arg" const.
5135 * probe.h (info_probes_for_ops): Update.
5136
3977b71f
TT
51372014-06-18 Tom Tromey <tromey@redhat.com>
5138
5139 * varobj.c (varobj_create): Update.
5140 * valops.c (value_of_this): Update.
5141 * tracepoint.c (add_local_symbols, scope_info): Update.
5142 * symtab.h (struct general_symbol_info) <block>: Now const.
5143 * symtab.c (skip_prologue_sal)
5144 (default_make_symbol_completion_list_break_on)
5145 (skip_prologue_using_sal): Update.
5146 * stack.h (iterate_over_block_locals)
5147 (iterate_over_block_local_vars): Update.
5148 * stack.c (print_frame_args): Update.
5149 (iterate_over_block_locals, iterate_over_block_local_vars): Make
5150 parameter const.
5151 (get_selected_block): Make return type const.
5152 * python/py-frame.c (frapy_block): Update.
5153 * python/py-block.c (gdbpy_block_for_pc): Update.
5154 * p-exp.y (%union) <bval>: Now const.
5155 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
5156 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
5157 * m2-exp.y (%union) <bval>: Now const.
5158 * linespec.c (get_current_search_block): Make return type const.
5159 (create_sals_line_offset, find_label_symbols): Update.
5160 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
5161 Update.
5162 (block_starting_point_at): Make "block" const.
5163 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
5164 (check_exception_resume): Update.
5165 * guile/scm-frame.c (gdbscm_frame_block): Update.
5166 * guile/scm-block.c (gdbscm_lookup_block): Update.
5167 * frame.h (get_frame_block): Update.
5168 (get_selected_block): Make return type const.
5169 * frame.c (frame_id_inner): Update.
5170 * f-valprint.c (info_common_command_for_block)
5171 (info_common_command): Update.
5172 * dwarf2loc.c (dwarf2_find_location_expression)
5173 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
5174 (locexpr_describe_location_piece): Update.
5175 * c-exp.y (%union) <bval>: Now const.
5176 * breakpoint.c (resolve_sal_pc): Update.
5177 * blockframe.c (get_frame_block):Make return type const.
5178 (get_pc_function_start, get_frame_function, find_pc_sect_function)
5179 (block_innermost_frame): Update.
5180 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
5181 (block_for_pc, block_for_pc_sect): Update.
5182 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
5183 'pblock' const.
5184 (block_for_pc_sect, block_for_pc): Make return type const.
5185 * ax-gdb.c (gen_expr): Update.
5186 * alpha-mdebug-tdep.c (find_proc_desc): Update.
5187 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
5188 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
5189 (ada_read_var_value): Update.
5190 * ada-exp.y (struct name_info) <block>: Now const.
5191 (%union): Likewise.
5192 (block_lookup): Constify.
5193
b9228891
GB
51942014-06-18 Gary Benson <gbenson@redhat.com>
5195
5196 * nat/i386-dregs.h: New file.
5197 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
5198 * i386-nat.h (i386-dregs.h): New include.
5199 (DR_FIRSTADDR): Now in i386-dregs.h.
5200 (DR_LASTADDR): Likewise.
5201 (DR_NADDR): Likewise.
5202 (DR_STATUS): Likewise.
5203 (DR_CONTROL): Likewise.
5204 (i386_debug_reg_state): Likewise.
5205 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
5206
a1aa2221
LM
52072014-06-18 Don Breazeal <donb@codesourcery.com>
5208
5209 * breakpoint.c (set_longjmp_breakpoint): Call
5210 momentary_breakpoint_from_master with additional argument.
5211 (set_longjmp_breakpoint_for_call_dummy): Call
5212 momentary_breakpoint_from_master with additional argument.
5213 (set_std_terminate_breakpoint): Call
5214 momentary_breakpoint_from_master with additional argument.
5215 (momentary_breakpoint_from_master): Add argument to function
5216 definition and use it to initialize structure member flag.
74228e77 5217 (clone_momentary_breakpoint): Call
a1aa2221
LM
5218 momentary_breakpoint_from_master with additional argument.
5219 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
5220 member flags set in momentary_breakpoint_from_master.
5221
4be83cc2
GB
52222014-06-18 Gary Benson <gbenson@redhat.com>
5223
5224 * i386-nat.c (i386_show_dr): Renamed to
5225 i386_dr_show and made nonstatic. All uses updated.
5226 (i386_length_and_rw_bits): Renamed to
5227 i386_dr_length_and_rw_bits and made nonstatic.
5228 All uses updated.
5229 (i386_insert_aligned_watchpoint): Renamed to
5230 i386_dr_insert_aligned_watchpoint and made nonstatic.
5231 All uses updated.
5232 (i386_remove_aligned_watchpoint): Renamed to
5233 i386_dr_remove_aligned_watchpoint and made nonstatic.
5234 All uses updated.
5235 (i386_update_inferior_debug_regs): Renamed to
5236 i386_dr_update_inferior_debug_regs and made nonstatic.
5237 All uses updated.
5238
131aa0d4
GB
52392014-06-18 Gary Benson <gbenson@redhat.com>
5240
5241 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
5242 (i386_dr_low_can_set_control): Likewise.
5243 (i386_dr_low_set_addr): Likewise.
5244 (i386_dr_low_set_control): Likewise.
5245 (i386_dr_low_get_addr): Likewise.
5246 (i386_dr_low_get_status): Likewise.
5247 (i386_dr_low_get_control): Likewise.
5248 (i386_insert_aligned_watchpoint): Use new macros.
5249 (i386_update_inferior_debug_regs): Likewise.
5250 (i386_stopped_data_address): Likewise.
5251
d9305f7f
GB
52522014-06-18 Gary Benson <gbenson@redhat.com>
5253
5254 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
5255 New parameter. All uses updated.
5256
ea008da4
GB
52572014-06-18 Gary Benson <gbenson@redhat.com>
5258
5259 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
5260 All uses updated.
5261
1b6d4134
GB
52622014-06-18 Gary Benson <gbenson@redhat.com>
5263
5264 * i386-nat.c (debug_printf): New macro.
5265 (i386_get_debug_register_length): Likewise.
5266 (TARGET_HAS_DR_LEN_8): Use above macro.
5267 (i386_show_dr): Use debug_printf instead of puts_unfiltered
5268 and printf_unfiltered. Use phex to format values.
5269
9b4550ef
GB
52702014-06-18 Gary Benson <gbenson@redhat.com>
5271
5272 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
5273 Make const.
5274
6e62758f
GB
52752014-06-18 Gary Benson <gbenson@redhat.com>
5276
5277 * i386-nat.c: Comment changes.
5278
51c79e94
GB
52792014-06-18 Gary Benson <gbenson@redhat.com>
5280
5281 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
5282
3e11889a
GB
52832014-06-18 Gary Benson <gbenson@redhat.com>
5284
5285 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
5286 (i386_insert_aligned_watchpoint): Likewise.
5287 (i386_remove_aligned_watchpoint): Likewise.
5288 (i386_handle_nonaligned_watchpoint): Likewise.
5289
fc6e2f03
GB
52902014-06-18 Gary Benson <gbenson@redhat.com>
5291
5292 * i386-nat.c: Whitespace changes.
5293
2afe7d50
SB
52942014-06-17 Samuel Bronson <naesten@gmail.com>
5295
5296 * MAINTAINERS: Update Roland McGrath's email address.
5297 Thanks to Sergio Durigan Junior for pointing out that he left
6a83deea 5298 Red Hat a while ago, and giving me a current address.
2afe7d50 5299
3bca49ee
TT
53002014-06-17 Tom Tromey <tromey@redhat.com>
5301
5302 * utils.h (savestring): Remove declaration.
5303
6e366df1
TT
53042014-06-17 Tom Tromey <tromey@redhat.com>
5305
5306 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
5307
6be47f0c
KS
53082014-06-16 Keith Seitz <keiths@redhat.com>
5309
5310 PR mi/15863
5311 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
5312 to update the varobj if inferior_ptid is null_ptid.
5313
7bc112c1
TT
53142014-06-16 Tom Tromey <tromey@redhat.com>
5315
5316 * target.h (struct target_ops) <to_info_proc>: Make parameter
5317 const.
5318 (target_info_proc): Update.
5319 * target.c (target_info_proc): Make "args" const.
5320 * procfs.c (procfs_info_proc): Update.
5321 * linux-tdep.c (linux_info_proc): Update.
5322 (linux_core_info_proc_mappings): Make "args" const.
5323 (linux_core_info_proc): Update.
5324 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
5325 * gdbarch.c: Rebuild.
5326 * gdbarch.h: Rebuild.
5327 * corelow.c (core_info_proc): Update.
5328
fee354ee
TT
53292014-06-16 Tom Tromey <tromey@redhat.com>
5330
5331 * target.h (struct target_ops) <to_disconnect>: Make parameter
5332 const.
5333 (target_disconnect): Update.
5334 * target.c (target_disconnect): Make "args" const.
5335 * target-delegates.c: Rebuild.
5336 * remote.c (remote_disconnect): Update.
5337 * record.h (record_disconnect): Update.
5338 * record.c (record_disconnect): Update.
5339 * inf-child.c (inf_child_disconnect): Update.
5340
a30bf1f1
TT
53412014-06-16 Tom Tromey <tromey@redhat.com>
5342
5343 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
5344 * target.c (debug_to_rcmd, default_rcmd): Update.
5345 * target-delegates.c: Rebuild.
5346 * remote.c (remote_rcmd): Update.
5347 * monitor.c (monitor_rcmd): Update.
5348
d03de421
PA
53492014-06-16 Pedro Alves <palves@redhat.com>
5350
5351 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
5352 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
5353 have OBJF_SHARED set.
5354 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
5355 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
5356 instead of OBJF_USERLOADED.
5357 * objfiles.h (OBJF_SHARED): Update comment.
5358 (userloaded_objfile_contains_address_p): Rename to ...
5359 (shared_objfile_contains_address_p): ... this, and update
5360 comments.
5361 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
5362 new objfile.
5363 (remove_symbol_file_command): Skip objfiles that don't have
5364 OBJF_SHARED set.
5365
99f4262f
TT
53662014-06-16 Tom Tromey <tromey@redhat.com>
5367
5368 * minsyms.h (prim_record_minimal_symbol)
5369 (prim_record_minimal_symbol_and_info): Update comments.
5370
97d66cc6
EZ
53712014-06-14 Eli Zaretskii <eliz@gnu.org>
5372
5373 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
5374 or --without-guile, according to how GDB was built.
5375
635c7e8a
TT
53762014-06-13 Tom Tromey <tromey@redhat.com>
5377
5378 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
5379 to help_list.
5380 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
5381 to help_list.
5382 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
5383 help_list.
5384 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
5385 help_list.Pass all_commands, not -1, to help_list.
5386 * cli/cli-dump.c (dump_command, append_command)
5387 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
5388 (binary_dump_command, binary_append_command): Pass all_commands,
5389 not -1, to help_list.
5390 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
5391 -1, to help_list.
5392 * valprint.c (set_print, set_print_raw): Pass all_commands, not
5393 -1, to help_list.
5394 * typeprint.c (set_print_type): Pass all_commands, not -1, to
5395 help_list.
5396 * top.c (set_history): Pass all_commands, not -1, to help_list.
5397 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
5398 all_commands, not -1, to help_list.
5399 * symfile.c (overlay_command): Pass all_commands, not -1, to
5400 help_list.
5401 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
5402 help_list.
5403 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
5404 help_list.
5405 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
5406 -1, to help_list.
5407 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
5408 not -1, to help_list.
5409 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
5410 not -1, to help_list.
5411 * maint.c (maintenance_command, maintenance_info_command)
5412 (maintenance_print_command, maintenance_set_cmd): Pass
5413 all_commands, not -1, to help_list.
5414 * macrocmd.c (macro_command): Pass all_commands, not -1, to
5415 help_list.
5416 * language.c (set_check): Pass all_commands, not -1, to help_list.
5417 * infcmd.c (unset_command): Pass all_commands, not -1, to
5418 help_list.
5419 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
5420 help_list.
5421 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
5422 help_list.
5423 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
5424 help_list.
5425 * breakpoint.c (save_command): Pass all_commands, not -1, to
5426 help_list.
5427 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
5428 all_commands, not -1, to help_list.
5429
b94ade42
PL
54302014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
5431
5432 * regcache.c (struct register_to_invalidate): New structure.
5433 (do_register_invalidate, make_cleanup_regcache_invalidate): New
5434 functions.
5435 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
5436
31f628ae
YQ
54372014-06-12 Yao Qi <yao@codesourcery.com>
5438
5439 * varobj.c (varobj_get_num_children): Call
5440 varobj_is_dynamic_p.
5441 (varobj_list_children): Likewise.
5442 (varobj_update): Likewise. Update comments.
5443
cde5ef40
YQ
54442014-06-12 Yao Qi <yao@codesourcery.com>
5445
5446 * varobj.c (varobj_pretty_printed_p): Rename to ...
5447 (varobj_is_dynamic_p): ... this. New function.
5448 * varobj.h (varobj_pretty_printed_p): Remove declaration.
5449 (varobj_is_dynamic_p): Declare.
5450 * mi/mi-cmd-var.c (print_varobj): All callers updated.
5451 (mi_print_value_p, varobj_update_one): Likewise.
5452
576ea091
YQ
54532014-06-12 Pedro Alves <pedro@codesourcery.com>
5454 Yao Qi <yao@codesourcery.com>
5455
5456 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
5457 (varobj_get_iterator): Wrap up code for pretty-printer by
5458 "#if HAVE_PYTHON" and "#endif".
5459 (update_dynamic_varobj_children): Likewise.
5460
827f100c
YQ
54612014-06-12 Pedro Alves <pedro@codesourcery.com>
5462 Yao Qi <yao@codesourcery.com>
5463
5464 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
5465 gdb_python_initialized is false. Move some code from varobj.c.
5466 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
5467 * varobj.c: Move "varobj-iter.h" inclusion earlier.
5468 (struct varobj_item): Moved to varobj-iter.h".
5469 (varobj_clear_saved_item): New function.
5470 (update_dynamic_varobj_children): Move python-related code to
5471 py-varobj.c.
5472 (free_variable): Call varobj_clear_saved_item and
5473 varobj_iter_delete.
5474
e5250216
YQ
54752014-06-12 Pedro Alves <pedro@codesourcery.com>
5476 Yao Qi <yao@codesourcery.com>
5477
5478 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
5479 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
5480 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
5481 (py-varobj.o): New rule.
5482 * python/py-varobj.c: New file.
5483 * python/python-internal.h (py_varobj_get_iterator): Declare.
5484 * varobj-iter.h: New file.
5485 * varobj.c: Include "varobj-iter.h"
5486 (struct varobj) <child_iter>: Change its type from "PyObject *"
5487 to "struct varobj_iter *".
5488 <saved_item>: Likewise.
5489 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
5490 [HAVE_PYTHON] (varobj_get_iterator): New function.
5491 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
5492 python-specific code to python/py-varobj.c.
5493 (install_visualizer): Call varobj_iter_delete instead of
5494 Py_XDECREF.
5495 * varobj.h (varobj_ensure_python_env): Declare.
5496
5a2e0d6e
YQ
54972014-06-12 Yao Qi <yao@codesourcery.com>
5498
5499 * varobj.c (struct varobj_item): New structure.
5500 (create_child_with_value): Update declaration.
5501 (varobj_add_child): Replace arguments 'name' and 'value' with
5502 'item'. All callers updated.
5503 (install_dynamic_child): Likewise.
5504 (update_dynamic_varobj_children): Likewise.
5505 (varobj_add_child): Likewise.
5506 (create_child_with_value): Likewise.
5507
919b9a93
JB
55082014-06-11 Joel Brobecker <brobecker@adacore.com>
5509
5510 * NEWS: Create a new section for the next release branch.
5511 Rename the section of the current branch, now that it has
5512 been cut.
5513
71a55bdf
JB
55142014-06-11 Joel Brobecker <brobecker@adacore.com>
5515
5516 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
5517 * version.in: Bump version to 7.8.50.DATE-cvs.
5518
364fe1f7
PA
55192014-06-11 Pedro Alves <palves@redhat.com>
5520
5521 PR remote/17028
5522 * ser-mingw.c (net_windows_socket_check_pending): New function.
5523 (net_windows_select_thread): Ignore spurious wakeups. Use
5524 net_windows_socket_check_pending.
5525 (net_windows_wait_handle): Check for pending events with
5526 ioctlsocket, through net_windows_socket_check_pending, instead of
5527 checking the socket's event.
5528
5a6c7709
SC
55292014-06-10 Siva Chandra Reddy <sivachandra@google.com>
5530
5531 * python/python-internal.h (gdb_PyObject_GetAttrString)
5532 (gdb_PyObject_HasAttrString): New inline function definitions.
5533 * py-value.c (get_field_flag): Remove the now unnecessary cast to
5534 char * of the second argument to PyObject_GetAttrString.
74228e77 5535
0e58ee40
JB
55362014-06-10 Joel Brobecker <brobecker@adacore.com>
5537
5538 * serial.c (serial_write): Fix index of character to be printed
5539 in call to serial_logchar when serial debug traces are enabled.
5540
d190df30
JB
55412014-06-10 Joel Brobecker <brobecker@adacore.com>
5542
5543 * gdbtypes (resolve_dynamic_range): Add function description.
5544
b4b01d36
PA
55452014-06-09 Pedro Alves <palves@redhat.com>
5546
5547 * linux-nat.c (linux_child_follow_fork): Initialize status with
5548 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
5549 inner block. Only pass the signal to PTRACE_DETACH if in pass
5550 state.
5551
3657956b
GB
55522014-06-09 Gary Benson <gbenson@redhat.com>
5553
5554 * common/signals.c (gdb_signal_from_host): Reorder to separate
5555 the always-available ANSI-standard signals from the signals that
5556 require checking.
5557 (do_gdb_signal_to_host): Likewise.
5558 * proc-events.c (signal_table): Likewise.
5559
c077881a
HZ
55602014-06-08 Hui Zhu <hui@codesourcery.com>
5561
5562 * common/linux-ptrace.c (linux_disable_event_reporting): New
5563 function.
5564 * common/linux-ptrace.h (linux_disable_event_reporting): New
5565 declaration.
5566 * linux-nat.c (linux_child_follow_fork): Do a single step before
5567 detach.
5568
4186eb54
KS
55692014-06-07 Keith Seitz <keiths@redhat.com>
5570
5571 Revert:
5572 PR c++/16253
5573 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5574 from symbol_matches_domain in symtab.c. All local callers
5575 of symbol_matches_domain updated.
5576 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5577 search STRUCT_DOMAIN.
5578 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5579 independently. standard_lookup will do that automatically.
5580 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5581 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5582 (cp_lookup_symbol_in_namespace): Likewise.
5583 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5584 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5585 may return a STRUCT_DOMAIN match.
5586 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5587 * cp-support.c: Include language.h.
5588 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5589 VAR_DOMAIN.
5590 * psymtab.c (match_partial_symbol): Compare the requested
5591 domain with the symbol's domain directly.
5592 (lookup_partial_symbol): Likewise.
5593 * symtab.c (lookup_symbol_in_language): Explain when/why
5594 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5595 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5596 appropriate languages.
5597 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5598 and moved to ada-lang.c
5599 (lookup_block_symbol): Explain that this function only returns
5600 symbol matching the requested DOMAIN.
5601 Compare the requested domain with the symbol's domain directly.
5602 (iterate_over_symbols): Compare the requested domain with the
5603 symbol's domain directly.
5604 * symtab.h (symbol_matches_domain): Remove.
5605
25326a28 56062014-06-06 Doug Evans <xdje42@gmail.com>
d2929fdc
DE
5607
5608 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
5609 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
5610 (gdbscm_guile_version_is_at_least): Declare.
5611 (gdbscm_scm_string_to_int): Declare.
5612 * guile/guile.c (gdbscm_guile_major_version): New global.
5613 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
5614 (guile_datadir): New static global.
5615 (gdbscm_guile_data_directory): New function.
5616 (initialize_scheme_side): Update.
5617 (misc_guile_functions): Add guile-data-directory.
5618 (initialize_gdb_module): Fetch guile version number.
5619 * guile/lib/gdb.scm: Remove call to add-to-load-path.
5620 * guile/lib/gdb/init.scm (%initialize!): Ditto.
5621 * guile/lib/gdb/boot.scm: Use guile-data-directory.
5622 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
5623 comments.
5624 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
5625 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
5626 * guile/scm-value.c (gdbscm_value_to_string): Only call
5627 scm_port_conversion_strategy if Guile version >= 2.0.6.
5628
0a770bb2 56292014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
5630
5631 * main.c (print_gdb_help): Add -q and --silent.
5632
73ba372c
GB
56332014-06-06 Gary Benson <gbenson@redhat.com>
5634
5635 * common/signals.c: Remove preprocessor conditionals for
5636 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
5637 SIGSEGV and SIGTERM.
5638 * proc-events.c: Likewise.
5639
c33b2f12
MM
56402014-06-06 Markus Metzger <markus.t.metzger@intel.com>
5641
5642 * symfile.c (symfile_free_objfile): Remove restriction to
5643 OBJF_USERLOADED.
5644 * symfile-mem.c (symbol_file_add_from_memory): Call
5645 add_target_sections_of_objfile.
5646
fb934770
LC
56472014-06-05 Ludovic Courtès <ludo@gnu.org>
5648
5649 * guile/scm-value.c (gdbscm_history_append_x): Use
5650 'vlscm_get_value_smob_arg_unsafe' instead of
5651 'vlscm_scm_to_value'.
5652
6ef284bd
SM
56532014-06-05 Simon Marchi <simon.marchi@ericsson.com>
5654
5655 PR mi/15806
5656 * utils.c (printchar): Don't escape at all if quoter is NUL.
5657 Update function documentation to clarify effect of parameter
5658 QUOTER.
5659 * remote.c (escape_buffer): Pass '\\' as the quoter to
5660 fputstrn_unfiltered.
5661 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
5662 generate the output.
5663 (mi_solib_unloaded): Same.
5664
270c9937
JB
56652014-06-05 Joel Brobecker <brobecker@adacore.com>
5666
5667 * development.sh: Delete.
5668 * Makefile.in (config.status): Adjust dependency on development.sh.
5669 * configure.ac: Adjust development.sh source call.
5670 * configure: Regenerate.
5671
16f691fb
DE
56722014-06-04 Doug Evans <xdje42@gmail.com>
5673
5674 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
5675 is_scheme_bkpt, spec.
5676 (bpscm_make_breakpoint_smob): Initialize new members.
5677 (gdbscm_create_breakpoint_x): Split into two ...
5678 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
5679 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
5680 (scheme_function breakpoint_functions): Update.
5681 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
5682 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
5683 register-breakpoint!.
5684
ef7cab6b
JB
56852014-06-04 Joel Brobecker <brobecker@adacorer.com>
5686
5687 PR server/17023
5688 * mem-break.c (z_type_supported): Return zero if
5689 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
5690
012370f6
TT
56912014-06-04 Tom Tromey <tromey@redhat.com>
5692
5693 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
5694 value_from_contents_and_address_unresolved.
5695 (ada_template_to_fixed_record_type_1): Likewise.
5696 (ada_which_variant_applies): Likewise.
5697 * value.h (value_from_contents_and_address_unresolved): Declare.
5698 * value.c (value_from_contents_and_address_unresolved): New
5699 function.
5700 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
5701 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
5702 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
5703
92e2a17f
TT
57042014-06-04 Tom Tromey <tromey@redhat.com>
5705
5706 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
5707
c0939df1
TT
57082014-06-04 Tom Tromey <tromey@redhat.com>
5709
5710 * procfs.c (procfs_attach): Make "args" const.
5711 * windows-nat.c (windows_attach): Make "args" const.
5712 * nto-procfs.c (procfs_attach): Make "args" const.
5713 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
5714 * go32-nat.c (go32_attach): Make "args" const.
5715 * gnu-nat.c (gnu_attach): Make "args" const.
5716 * darwin-nat.c (darwin_attach): Make "args" const.
5717 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
5718 * linux-nat.c (linux_nat_attach): Make "args" const.
5719 * remote.c (extended_remote_attach_1, extended_remote_attach):
5720 Make "args" const.
5721 * target.h (struct target_ops) <to_attach>: Make "args" const.
5722 (find_default_attach): Likewise.
5723 * utils.c (parse_pid_to_attach): Make "args" const.
5724 * utils.h (parse_pid_to_attach): Update.
5725
8eaff7cd
TT
57262014-06-04 Tom Tromey <tromey@redhat.com>
5727
5728 * target-delegates.c: Rebuild.
5729 * target.c (default_thread_address_space): New function.
5730 (target_thread_address_space): Simplify.
5731 * target.h (struct target_ops) <to_thread_address_space>: Add
5732 TARGET_DEFAULT_FUNC.
5733
1913f160
DE
57342014-06-04 Doug Evans <xdje42@gmail.com>
5735
5736 * guile/scm-type.c (type_smob): Remove duplicate typedef.
5737
70ad5bff
MM
57382014-06-04 Markus Metzger <markus.t.metzger@intel.com>
5739
5740 * record-btrace.c: Include event-loop.h and inf-loop.h.
5741 (record_btrace_resume_exec_dir)
5742 (record_btrace_async_inferior_event_handler)
5743 (record_btrace_handle_async_inferior_event): New.
5744 (record_btrace_open): Create async event handler.
5745 (record_btrace_close): Delete async event handler.
5746 (record_btrace_resume): Set record_btrace_resume_exec_dir,
5747 Mark async event handler.
5748 (record_btrace_execution_direction): New.
5749 (init_record_btrace_ops): Initialize to_execution_direction.
5750
b6210538
DE
57512014-06-03 Doug Evans <xdje42@gmail.com>
5752
5753 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
5754 (gdbscm_make_parameter): Ditto.
5755
a5b1fd27
DE
57562014-06-03 Doug Evans <dje@google.com>
5757
5758 * exec.c (exec_close_1): Call clear_section_table instead of
5759 resize_section_table.
5760 (clear_section_table): New function.
5761 (resize_section_table): Make static. Rename arg num_added to
5762 adjustment.
5763 * exec.h (clear_section_table): Declare.
5764 (resize_section_table): Delete.
5765 * progspace.c (release_program_space): Call clear_section_table
5766 instead of resize_section_table.
5767
0c6e92a5
SC
57682014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5769
5770 * NEWS (Python Scripting): Add entry about the new xmethods
5771 feature.
5772
883964a7
SC
57732014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5774
5775 * python/py-xmethods.c: New file.
5776 * python/py-objfile.c (objfile_object): New field 'xmethods'.
5777 (objfpy_dealloc): XDECREF on the new xmethods field.
5778 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
5779 field.
5780 (objfpy_get_xmethods): New function.
5781 (objfile_getset): New entry 'xmethods'.
5782 * python/py-progspace.c (pspace_object): New field 'xmethods'.
5783 (pspy_dealloc): XDECREF on the new xmethods field.
5784 (pspy_new, pspace_to_pspace_object): Initialize xmethods
5785 field.
5786 (pspy_get_xmethods): New function.
5787 (pspace_getset): New entry 'xmethods'.
5788 * python/python-internal.h: Add declarations for new functions.
5789 * python/python.c (_initialize_python): Invoke
5790 gdbpy_initialize_xmethods.
5791 * python/lib/gdb/__init__.py (xmethods): New
5792 attribute.
5793 * python/lib/gdb/xmethod.py: New file.
5794 * python/lib/gdb/command/xmethods.py: New file.
5795
58992dc5
SC
57962014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5797
5798 * eval.c (evaluate_subexp_standard): Call the xmethod if the
5799 best match method returned by find_overload_match is an xmethod.
5800 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
5801 the best matching operator returned by find_overload_match is an
5802 xmethod.
5803 * valops.c: #include "extension.h".
5804 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
5805 Return void. The list of matching source methods is returned in
5806 "fn_list" and a vector of matching debug method workers is
5807 returned in "xm_worker_vec". Update all callers.
5808 (value_find_oload_method_list): Likewise.
5809 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
5810 non-NULL, then the index of the best matching method in this
5811 vector is returned. Update all callers.
5812 (find_overload_match): Include xmethods while performing overload
5813 resolution.
5814
e81e7f5e
SC
58152014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5816
5817 * defs.h (enum lval_type): New enumerator "lval_xcallable".
5818 * extension-priv.h (struct extension_language_ops): Add the
5819 xmethod interface.
5820 * extension.c (new_xmethod_worker, clone_xmethod_worker,
5821 get_matching_xmethod_workers, get_xmethod_argtypes,
5822 invoke_xmethod, free_xmethod_worker,
5823 free_xmethod_worker_vec): New functions.
5824 * extension.h: #include "common/vec.h".
5825 New function declarations.
5826 (struct xmethod_worker): New struct.
5827 (VEC (xmethod_worker_ptr)): New vector type.
5828 (xmethod_worker_ptr): New typedef.
5829 (xmethod_worker_vec): Likewise.
5830 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
5831 builtin_type.
5832 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
5833 (struct builtin_type): New field "xmethod".
5834 * valarith.c (value_ptradd): Assert that the value argument is not
5835 lval_xcallable.
5836 * valops.c (value_must_coerce_to_target): Return 0 for
5837 lval_xcallable values.
5838 * value.c (struct value): New field XM_WORKER in the field
5839 LOCATION.
5840 (value_address, value_raw_address): Return 0 for lval_xcallable
5841 values.
5842 (set_value_address): Assert that the value is not an
5843 lval_xcallable.
5844 (value_free): Free the associated xmethod worker when freeing
5845 lval_xcallable values.
5846 (set_value_component_location): Assert that the WHOLE value is not
5847 lval_xcallable.
5848 (value_of_xmethod, call_xmethod): New functions.
5849 * value.h: Declare "struct xmethod_worker".
5850 Declare new functions value_of_xmethod, call_xmethod.
5851
ef370185
JB
58522014-06-03 Joel Brobecker <brobecker@adacore.com>
5853 Pedro Alves <palves@redhat.com>
5854
5855 PR breakpoints/17000
5856 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
5857 New function, extracted from software_breakpoint_inserted_here_p.
5858 (software_breakpoint_inserted_here_p): Replace factored out code
5859 by call to find_non_raw_software_breakpoint_inserted_here.
5860 (bp_target_info_copy_insertion_state): New function.
5861 (bkpt_insert_location): Handle the case of a single-step
5862 breakpoint already inserted at the same address.
5863 (bkpt_remove_location): Handle the case of a single-step
5864 breakpoint still inserted at the same address.
5865 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
5866 breakpoint already inserted at the same address.
5867 (deprecated_remove_raw_breakpoint): Handle the case of a
5868 non-raw breakpoint still inserted at the same address.
5869 (find_single_step_breakpoint): New function, extracted from
5870 single_step_breakpoint_inserted_here_p.
5871 (find_single_step_breakpoint): New function,
5872 factored out from single_step_breakpoint_inserted_here_p.
5873 (single_step_breakpoint_inserted_here_p): Reimplement.
5874
1e2ccb61
BM
58752014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
5876
5877 Pushed by Joel Brobecker <brobecker@adacore.com>
5878 * source.c (show_substitute_path_command): Fix display of matching
5879 substitution rules.
5880
d3448d85
GB
58812014-06-03 Gary Benson <gbenson@redhat.com>
5882
5883 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
5884
06eb1586
DE
58852014-06-02 Doug Evans <xdje42@gmail.com>
5886
5887 Add parameter support for Guile.
5888 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
5889 (SUBDIR_GUILE_SRCS): Add scm-param.c.
5890 (scm-param.o): New rule.
5891 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
5892 (gdbscm_misc_error): Declare.
5893 (gdbscm_canonicalize_command_name): Declare.
5894 (gdbscm_scm_to_host_string): Declare.
5895 (gdbscm_scm_from_host_string): Declare.
5896 (gdbscm_initialize_parameters): Declare.
5897 * guile/guile.c (initialize_gdb_module): Call
5898 gdbscm_initialize_parameters.
5899 * guile/lib/gdb.scm: Export parameter symbols.
5900 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
5901 cmdscm_canonicalize_name and made public. All callers updated.
5902 * guile/scm-exception.c (gdbscm_misc_error): New function.
5903 * guile/scm-param.c: New file.
5904 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
5905 (gdbscm_scm_to_host_string): New function.
5906 (gdbscm_scm_from_host_string): New function.
5907 * scm-utils.c (gdbscm_gc_dup_argv): New function.
5908
e698b8c4
DE
59092014-06-02 Doug Evans <xdje42@gmail.com>
5910
5911 Add command support for Guile.
5912 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
5913 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
5914 (scm-cmd.o): New rule.
5915 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
5916 (gdbscm_user_error_p): Declare.
5917 (gdbscm_parse_command_name): Declare.
5918 (gdbscm_valid_command_class_p): Declare.
5919 (gdbscm_initialize_commands): Declare.
5920 * guile/guile.c (initialize_gdb_module): Call
5921 gdbscm_initialize_commands.
5922 * guile/lib/gdb.scm: Export command symbols.
5923 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
5924 (throw-user-error): New function.
5925 * guile/scm-cmd.c: New file.
5926 * guile/scm-exception.c (user_error_symbol): New static global.
5927 (gdbscm_user_error_p): New function.
5928 (gdbscm_initialize_exceptions): Set user_error_symbol.
5929 * scm-utils.c (gdbscm_gc_xstrdup): New function.
5930
fb1f94b0
PM
59312014-06-02 Phil Muldoon <pmuldoon@redhat.com>
5932
5933 * top.c (command_loop): Handle comments here...
5934 (command_line_input): ... not here.
5935
ded03782
DE
59362014-06-02 Doug Evans <xdje42@gmail.com>
5937
5938 Add progspace support for Guile.
5939 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
5940 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
5941 (scm-progspace.o): New rule.
5942 * guile/guile-internal.h (pspace_smob): New typedef.
5943 (psscm_pspace_smob_pretty_printers): Declare.
5944 (psscm_pspace_smob_from_pspace): Declare.
5945 (psscm_scm_from_pspace): Declare.
5946 * guile/guile.c (initialize_gdb_module): Call
5947 gdbscm_initialize_pspaces.
5948 * guile/lib/gdb.scm: Export progspace symbols.
5949 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
5950 support.
5951 (append-pretty-printer!): Ditto.
5952 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
5953 Implement.
5954 * guile/scm-progspace.c: New file.
5955
397998fc
AM
59562014-06-03 Alan Modra <amodra@gmail.com>
5957
5958 * ppc64-tdep.c (ppc64_standard_linkage8): New.
5959 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
5960
6aa5f3a6
DE
59612014-06-02 Doug Evans <dje@google.com>
5962
5963 Add support for skeletonless type units.
5964 * dwarf2read.c (struct dwarf2_per_objfile): New member
5965 n_allocated_type_units.
5966 (struct dwarf2_per_objfile) <tu_stats>: New member
5967 nr_all_type_units_reallocs.
5968 (create_signatured_type_table_from_index): Initialize
5969 n_allocated_type_units
5970 (create_all_type_units): Ditto.
5971 (add_type_unit): Move up in file. New arg slot.
5972 All callers updated. Increase space for all_type_units more
5973 efficiently.
5974 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
5975 (lookup_dwo_signatured_type): Handle skeletonless TUs.
5976 (lookup_dwp_signatured_type): Ditto.
5977 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
5978 All callers updated.
5979 (build_type_psymtabs_1): Leave type_unit_groups as
5980 NULL if no TUs present.
5981 (print_tu_stats): New function.
5982 (process_skeletonless_type_unit): New function.
5983 (process_dwo_file_for_skeletonless_type_units): New
5984 function.
5985 (process_skeletonless_type_units): New function.
5986 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
5987 Call print tu_stats if debugging enabled.
5988
41fac0cf
PA
59892014-06-02 Pedro Alves <palves@redhat.com>
5990
5991 * breakpoint.c (build_target_command_list): Don't build a command
5992 list if we have any duplicate location that isn't a dprintf.
5993
cd1608cc
PA
59942014-06-02 Pedro Alves <palves@redhat.com>
5995
5996 * breakpoint.c (dprintf_breakpoint_hit): New function.
5997 (initialize_breakpoint_ops): Install it as dprintf's
5998 breakpoint_hit method.
5999
486ef3b9
JB
60002014-06-02 Joel Brobecker <brobecker@adacore.com>
6001
6002 * source.c (substitute_path_rule_matches): Simplify using
6003 filename_ncmp instead of FILENAME_CMP.
6004
230cd560
JB
60052014-06-02 Joel Brobecker <brobecker@adacore.com>
6006
6007 * source.c (substitute_path_rule_matches): Remove trailing spaces.
6008
16954d5d
LC
60092014-06-01 Ludovic Courtès <ludo@gnu.org>
6010
6011 * configure.ac: When Guile is available, check for the
6012 availability of 'scm_new_smob'.
6013 * configure, config.h.in: Regenerate.
6014 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
6015 function.
6016
53e8a631
AB
60172014-05-30 Andrew Burgess <aburgess@broadcom.com>
6018
6019 * frame.c (struct frame_info): Add stop_string field.
6020 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
6021 (get_prev_frame_always): Old content moved into
6022 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
6023 TRY_CATCH, handle MEMORY_ERROR exceptions.
6024 (frame_stop_reason_string): New function definition.
6025 * frame.h (unwind_stop_reason_to_string): Extend comment to
6026 mention frame_stop_reason_string.
6027 (frame_stop_reason_string): New function declaration.
6028 * stack.c (frame_info): Switch to frame_stop_reason_string.
6029 (backtrace_command_1): Switch to frame_stop_reason_string.
6030 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
6031 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
6032 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
6033
70e38b8e
AB
60342014-05-30 Andrew Burgess <aburgess@broadcom.com>
6035
6036 * frame.c (frame_stop_reason_string): Rename to ...
6037 (unwind_stop_reason_to_string): this.
6038 * frame.h (frame_stop_reason_string): Rename to ...
6039 (unwind_stop_reason_to_string): this.
6040 * stack.c (frame_info): Update call to frame_stop_reason_string.
6041 (backtrace_command_1): Likewise.
6042 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
6043 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
6044
938f0e2f
AB
60452014-05-30 Andrew Burgess <aburgess@broadcom.com>
6046
6047 * frame.c (remove_prev_frame): New function.
6048 (get_prev_frame_if_no_cycle): Create / discard cleanup using
6049 remove_prev_frame.
6050
a09dd441
PA
60512014-05-29 Pedro Alves <palves@redhat.com>
6052
6053 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
6054 and make it const. When a single-step decays to a continue,
6055 clear 'step', not 'hw_step'. Pass whether the caller wanted
6056 to step to user_visible_resume_ptid, not what we ask the
6057 target to do.
6058
bdc36728
PA
60592014-05-29 Pedro Alves <palves@redhat.com>
6060
6061 * infrun.c (process_event_stop_test, handle_step_into_function)
6062 (handle_step_into_function_backward): Adjust.
6063 Don't set the even thread's stop_step and call stop_waiting before
6064 calling end_stepping_range. Instead do that ...
6065 (end_stepping_range): ... here. Take an ecs pointer parameter.
6066
22bcd14b
PA
60672014-05-29 Pedro Alves <palves@redhat.com>
6068
6069 * infrun.c (stop_stepping): Rename to ...
6070 (stop_waiting): ... this.
6071 (proceed): Update comment.
6072 (process_event_stop_test, handle_inferior_event)
6073 (handle_signal_stop, handle_step_into_function)
6074 (handle_step_into_function_backward): Update.
6075
4ae57c05
PA
60762014-05-29 Pedro Alves <palves@redhat.com>
6077
6078 * infcall.c (run_inferior_call): Don't check whether the current
6079 thread is running after the proceed call.
6080
329ea579
PA
60812014-05-29 Pedro Alves <palves@redhat.com>
6082 Tom Tromey <tromey@redhat.com>
6083
6084 * NEWS: Mention "maint set target-async", "set mi-async", and that
6085 background execution commands are now always available.
6086 * target.h (target_async_permitted): Update comment.
6087 * target.c (target_async_permitted, target_async_permitted_1):
6088 Default to 1.
6089 (set_target_async_command): Rename to ...
6090 (maint_set_target_async_command): ... this.
6091 (show_target_async_command): Rename to ...
6092 (maint_show_target_async_command): ... this.
6093 (_initialize_target): Adjust.
6094 * infcmd.c (prepare_execution_command): Make extern.
6095 * inferior.h (prepare_execution_command): Declare.
6096 * infrun.c (set_observer_mode): Leave target async alone.
6097 * mi/mi-interp.c (mi_interpreter_init): Install
6098 mi_on_sync_execution_done as sync_execution_done observer.
6099 (mi_on_sync_execution_done): New function.
6100 (mi_execute_command_input_handler): Don't print the prompt if we
6101 just started a synchronous command with an async target.
6102 (mi_on_resume): Check sync_execution before printing prompt.
6103 * mi/mi-main.h (mi_async_p): Declare.
6104 * mi/mi-main.c: Include gdbcmd.h.
6105 (mi_async_p): New function.
6106 (mi_async, mi_async_1): New globals.
6107 (set_mi_async_command, show_mi_async_command, mi_async): New
6108 functions.
6109 (exec_continue): Call prepare_execution_command.
6110 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
6111 (mi_execute_async_cli_command): Use mi_async_p.
6112 (_initialize_mi_main): Install "set mi-async". Make
6113 "target-async" a deprecated alias.
6114
92bcb5f9
PA
61152014-05-29 Pedro Alves <palves@redhat.com>
6116
6117 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
6118 (_initialize_cli_interp): Adjust.
6119 * event-loop.c: Include "observer.h".
6120 (start_event_loop): Notify 'command_error' observers instead of
6121 calling display_gdb_prompt. Remove FIXME comment.
6122 * event-top.c (display_gdb_prompt): Remove call into the
6123 interpreters.
6124 * inf-loop.c: Include "observer.h".
6125 (inferior_event_handler): Notify 'command_error' observers instead
6126 of calling display_gdb_prompt.
6127 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
6128 observers instead of calling display_gdb_prompt.
6129 * interps.c (interp_set): Don't call display_gdb_prompt.
6130 (current_interp_display_prompt_p): Delete.
6131 * interps.h (interp_prompt_p): Delete declaration.
6132 (interp_prompt_p_ftype): Delete.
6133 (struct interp_procs) <prompt_proc_p>: Delete field.
6134 (current_interp_display_prompt_p): Delete declaration.
6135 * mi-interp.c (mi_interpreter_prompt_p): Delete.
6136 (_initialize_mi_interp): Adjust.
6137 * tui-interp.c (tui_init): Install 'sync_execution_done' and
6138 'command_error' observers.
6139 (tui_on_sync_execution_done, tui_on_command_error): New
6140 functions.
6141 (tui_display_prompt_p): Delete.
6142 (_initialize_tui_interp): Adjust.
6143
fd664c91
PA
61442014-05-29 Pedro Alves <palves@redhat.com>
6145
6146 PR gdb/13860
6147 * cli/cli-interp.c: Include infrun.h and observer.h.
6148 (cli_uiout, cli_interp): New globals.
6149 (cli_on_signal_received, cli_on_end_stepping_range)
6150 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
6151 functions.
6152 (cli_interpreter_init): Install them as 'end_stepping_range',
6153 'signal_received' 'signal_exited', 'exited' and 'no_history'
6154 observers.
6155 (_initialize_cli_interp): Remove cli_interp local.
6156 * infrun.c (handle_inferior_event): Call the several stop reason
6157 observers instead of printing the stop reason directly.
6158 (end_stepping_range): New function.
6159 (print_end_stepping_range_reason, print_signal_exited_reason)
6160 (print_exited_reason, print_signal_received_reason)
6161 (print_no_history_reason): Make static, and add an uiout
6162 parameter. Print to that instead of to CURRENT_UIOUT.
6163 * infrun.h (print_end_stepping_range_reason)
6164 (print_signal_exited_reason, print_exited_reason)
6165 (print_signal_received_reason print_no_history_reason): New
6166 declarations.
6167 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
6168 'mi_uiout'.
6169 <cli_uiout>: New field.
6170 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
6171 uiout for CLI output. Install 'signal_received',
6172 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
6173 observers.
6174 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
6175 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
6176 (mi_on_no_history): New functions.
6177 (ui_out_free_cleanup): Delete function.
6178 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
6179 instead use the one already stored in the MI interpreter data.
6180 (mi_ui_out): Adjust.
6181 * tui/tui-interp.c: Include infrun.h and observer.h.
6182 (tui_interp): New global.
6183 (tui_on_signal_received, tui_on_end_stepping_range)
6184 (tui_on_signal_exited, tui_on_exited)
6185 (tui_on_no_history): New functions.
6186 (tui_init): Install them as 'end_stepping_range',
6187 'signal_received' 'signal_exited', 'exited' and 'no_history'
6188 observers.
6189 (_initialize_tui_interp): Delete tui_interp local.
6190
8817a6f2
PA
61912014-05-29 Pedro Alves <palves@redhat.com>
6192
6193 PR gdb/15713
6194 * linux-nat.c (linux_nat_resume_callback): Rename the second
6195 parameter to 'except'. Skip LP if it points to EXCEPT.
6196 (linux_nat_resume): Don't mark the event lwp as not stopped
6197 before resuming sibling lwps. Instead ask
6198 linux_nat_resume_callback to skip the event lwp. Mark it as not
6199 stopped after actually resuming it.
6200 (linux_handle_syscall_trap): Mark the lwp as not stopped after
6201 resuming it.
6202 (wait_lwp): Mark the lwp as stopped here.
6203 (stop_wait_callback): Mark the lwp as not stopped right after
6204 resuming it. Don't mark lwps as stopped here.
6205 (linux_nat_filter_event): Mark the lwp as stopped earlier.
6206 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
6207
251bde03
PA
62082014-05-29 Pedro Alves <palves@redhat.com>
6209
6210 PR PR15693
6211 * infrun.c (resume): Determine how much to resume depending on
6212 whether the caller wanted a step, not whether we can hardware step
6213 the target. Mark all threads that we intend to run as running,
6214 unless we're calling an inferior function.
6215 (normal_stop): If the thread is running an infcall, don't finish
6216 thread state.
6217 * target.c (target_resume): Don't mark threads as running here.
6218
7f3c0343
JB
62192014-05-28 Joel Brobecker <brobecker@adacore.com>
6220
6221 * serial.c (_initialize_serial): Remove support for
6222 the "set remotebaud" and "show remotebaud" commands.
6223 * NEWS: Add entry documenting the removal of that command.
6224
ee34b3f9
YQ
62252014-05-28 Yao Qi <yao@codesourcery.com>
6226
6227 * charset.c: Fix typo in comments.
6228
add6c04d
GB
62292014-05-27 Gary Benson <gbenson@redhat.com>
6230
6231 * utils.c (internal_vproblem): Prompt for a bug report.
6232
92c48fc5
AW
62332014-05-26 Andy Wingo <wingo@igalia.com>
6234
6235 * guile/scm-arch.c (arscm_mark_arch_smob):
6236 * guile/scm-block.c (bkscm_mark_block_smob)
6237 (bkscm_mark_block_syms_progress_smob):
6238 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
6239 * guile/scm-exception.c (exscm_mark_exception_smob):
6240 * guile/scm-frame.c (frscm_mark_frame_smob):
6241 * guile/scm-iterator.c (itscm_mark_iterator_smob):
6242 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
6243 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
6244 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
6245 (ppscm_mark_pretty_printer_worker_smob):
6246 * guile/scm-symbol.c (syscm_mark_symbol_smob):
6247 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
6248 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
6249 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
6250 mark functions.
6251 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
6252 function.
6253
b2715b27
AW
62542014-05-26 Andy Wingo <wingo@igalia.com>
6255 Doug Evans <xdje42@gmail.com>
6256
6257 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
6258 empty_base_class. All uses updated.
6259 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
6260 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
6261 Adapt all callers.
6262 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
6263 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
6264 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
6265 (gdbscm_gsmob_has_property_p, add_property_name)
6266 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
6267 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
6268 (gdb-object-has-property?, gdb-object-properties): Remove.
6269 (gdb-object-kind): Renamed from gsmob-kind.
6270
214ab2da
AW
62712014-05-26 Andy Wingo <wingo@igalia.com>
6272
6273 * configure.ac (try_guile_versions): Allow building with guile 2.2.
6274 * configure: Regenerate.
6275
589fdceb
MM
62762014-05-23 Markus Metzger <markus.t.metzger@intel.com>
6277
6278 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
6279
67b5c0c1
MM
62802014-05-23 Markus Metzger <markus.t.metzger@intel.com>
6281
6282 * record-btrace.c (record_btrace_allow_memory_access): Remove.
6283 (replay_memory_access_read_only, replay_memory_access_read_write)
6284 (replay_memory_access_types, replay_memory_access)
6285 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
6286 (cmd_set_record_btrace, cmd_show_record_btrace)
6287 (cmd_show_replay_memory_access): New.
6288 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
6289 (record_btrace_remove_breakpoint): Replace
6290 record_btrace_allow_memory_access with replay_memory_access.
6291 (_initialize_record_btrace): Add commands.
6292 * NEWS: Announce it.
6293
036cd381
RR
62942014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6295
6296 * aarch64-linux-nat.c (asm/ptrace.h): Include.
6297
c77c1e42
RR
62982014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6299
6300 * MAINTAINERS (Write After Approval): Move self back from
6301 paper trail.
6302
45741a9c
PA
63032014-05-22 Pedro Alves <palves@redhat.com>
6304
6305 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
6306 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
6307 (disable_randomization, enum exec_direction_kind)
6308 (execution_direction, stop_registers, start_remote)
6309 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
6310 (wait_for_inferior, normal_stop, get_last_target_status)
6311 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
6312 (insert_step_resume_breakpoint_at_sal)
6313 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
6314 (set_step_info, print_stop_event, signal_stop_state)
6315 (signal_print_state, signal_pass_state, signal_stop_update)
6316 (signal_print_update, signal_pass_update)
6317 (update_signals_program_target, clear_exit_convenience_vars)
6318 (displaced_step_dump_bytes, update_observer_mode)
6319 (signal_catch_update, gdb_signal_from_command): Move
6320 declarations ...
6321 * infrun.h: ... to this new file.
6322 * amd64-tdep.c: Include infrun.h.
6323 * annotate.c: Include infrun.h.
6324 * arch-utils.c: Include infrun.h.
6325 * arm-linux-tdep.c: Include infrun.h.
6326 * arm-tdep.c: Include infrun.h.
6327 * break-catch-sig.c: Include infrun.h.
6328 * breakpoint.c: Include infrun.h.
6329 * common/agent.c: Include infrun.h instead of inferior.h.
6330 * corelow.c: Include infrun.h.
6331 * event-top.c: Include infrun.h.
6332 * go32-nat.c: Include infrun.h.
6333 * i386-tdep.c: Include infrun.h.
6334 * inf-loop.c: Include infrun.h.
6335 * infcall.c: Include infrun.h.
6336 * infcmd.c: Include infrun.h.
6337 * infrun.c: Include infrun.h.
6338 * linux-fork.c: Include infrun.h.
6339 * linux-nat.c: Include infrun.h.
6340 * linux-thread-db.c: Include infrun.h.
6341 * monitor.c: Include infrun.h.
6342 * nto-tdep.c: Include infrun.h.
6343 * procfs.c: Include infrun.h.
6344 * record-btrace.c: Include infrun.h.
6345 * record-full.c: Include infrun.h.
6346 * remote-m32r-sdi.c: Include infrun.h.
6347 * remote-mips.c: Include infrun.h.
6348 * remote-notif.c: Include infrun.h.
6349 * remote-sim.c: Include infrun.h.
6350 * remote.c: Include infrun.h.
6351 * reverse.c: Include infrun.h.
6352 * rs6000-tdep.c: Include infrun.h.
6353 * s390-linux-tdep.c: Include infrun.h.
6354 * solib-irix.c: Include infrun.h.
6355 * solib-osf.c: Include infrun.h.
6356 * solib-svr4.c: Include infrun.h.
6357 * target.c: Include infrun.h.
6358 * top.c: Include infrun.h.
6359 * windows-nat.c: Include infrun.h.
6360 * mi/mi-interp.c: Include infrun.h.
6361 * mi/mi-main.c: Include infrun.h.
6362 * python/py-threadevent.c: Include infrun.h.
6363
98eb56a4
PA
63642014-05-22 Pedro Alves <palves@redhat.com>
6365
6366 * infrun.c (handle_inferior_event): Store the exit code for
6367 --return-child-result here, instead of ...
6368 (print_exited_reason): ... here.
6369
17b2616c
PA
63702014-05-21 Pedro Alves <palves@redhat.com>
6371
6372 PR gdb/13860
6373 * gdbthread.h (struct thread_control_state): New field
6374 `command_interp'.
6375 * infrun.c (follow_fork): Copy the new thread control field to the
6376 child fork thread.
6377 (clear_proceed_status_thread): Clear the new thread control field.
6378 (proceed): Set the new thread control field.
6379 * interps.h (command_interp): Declare.
6380 * interps.c (command_interpreter): New global.
6381 (command_interp): New function.
6382 (interp_exec): Set `command_interpreter' while here.
6383 * cli-out.c (cli_uiout_dtor): New function.
6384 (cli_ui_out_impl): Install it.
6385 * mi/mi-interp.c: Include cli-out.h.
6386 (mi_cmd_interpreter_exec): Add comment.
6387 (restore_current_uiout_cleanup): New function.
6388 (ui_out_free_cleanup): New function.
6389 (mi_on_normal_stop): If finishing an execution command started by
6390 a CLI command, or any kind of breakpoint-like event triggered,
6391 print the stop event to the output (CLI) stream.
6392 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
6393
5166082f
PA
63942014-05-21 Pedro Alves <palves@redhat.com>
6395
6396 * cli/cli-cmds.c (list_command): Handle the first "list" after the
6397 current source line having changed.
6398 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
6399 * infrun.c (normal_stop): Adjust call to
6400 set_current_sal_from_frame.
6401 * source.c (clear_lines_listed_range): New function.
6402 (set_current_source_symtab_and_line, identify_source_line): Clear
6403 the lines listed range.
6404 (line_info): Handle the first "info line" after the current source
6405 line having changed.
6406 * stack.c (print_stack_frame): Remove center handling.
6407 (set_current_sal_from_frame): Remove 'center' parameter. Don't
6408 center sal.line.
6409
c1ee2fb3
PA
64102014-05-21 Pedro Alves <palves@redhat.com>
6411
6412 * inf-child.c (inf_child_mourn_inferior): New function.
6413 * inf-child.h (inf_child_mourn_inferior): New declaration.
6414 * darwin-nat.c (darwin_mourn_inferior): Use
6415 inf_child_mourn_inferior.
6416 * gnu-nat.c (gnu_mourn_inferior): Likewise.
6417 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
6418 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
6419 * nto-procfs.c (procfs_mourn_inferior): Likewise.
6420 * windows-nat.c (windows_mourn_inferior): Likewise.
6421
5c6d4fb2
DE
64222014-05-21 Doug Evans <xdje42@gmail.com>
6423
250748cb 6424 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5c6d4fb2 6425
4a2722c5
DE
64262014-05-21 Doug Evans <xdje42@gmail.com>
6427
17292b30 6428 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4a2722c5
DE
6429 (gdbscm_out_of_range_error): Ditto.
6430 (gdbscm_memory_error): Ditto.
250748cb
DE
6431 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
6432 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4a2722c5
DE
6433 (gdbscm_out_of_range_error): Update.
6434 (gdbscm_memory_error): Update.
6435 (gdbscm_scm_to_target_string_unsafe): Delete.
6436
6a3cb8e8
PA
64372014-05-21 Pedro Alves <palves@redhat.com>
6438
6439 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
6440 globals.
6441 (inf_child_open_target): New function.
6442 (inf_child_open): Use inf_child_open_target to push the target
6443 instead of erroring out.
6444 (inf_child_disconnect, inf_child_close)
6445 (inf_child_maybe_unpush_target): New functions.
6446 (inf_child_target): Install inf_child_disconnect and
6447 inf_child_close. Store a pointer to the returned object.
6448 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
6449 declarations.
6450 * target.c (auto_connect_native_target): New global.
6451 (show_default_run_target): New function.
6452 (find_default_run_target): Return NULL if automatically connecting
6453 to the native target is disabled.
6454 (_initialize_target): Install set/show auto-connect-native-target.
6455 * NEWS: Mention "set auto-connect-native-target", and "target
6456 native".
6457 * linux-nat.c (super_close): New global.
6458 (linux_nat_close): Call super_close.
6459 (linux_nat_add_target): Store a pointer to the base class's
6460 to_close method.
6461 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
6462 inf_child_maybe_unpush.
6463 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
6464 already pushed.
6465 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
6466 the inferior. Use inf_child_maybe_unpush_target.
6467 (inf_ttrace_attach): Don't push the target if it is already
6468 pushed.
6469 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
6470 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
6471 after mourning the inferior. Use inf_child_maybe_unpush_target.
6472 (darwin_attach_pid): Don't push the target if it is already
6473 pushed.
6474 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
6475 mourning the inferior. Use inf_child_maybe_unpush_target.
6476 (gnu_detach): Use inf_child_maybe_unpush_target.
6477 * go32-nat.c (go32_create_inferior): Don't push the target if it
6478 is already pushed.
6479 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
6480 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
6481 (procfs_open): Rename to ...
6482 (procfs_open_1): ... this. Add target_ops parameter. Adjust
6483 comments. Can target_preopen before changing node. Call
6484 inf_child_open_target to push the target explicitly.
6485 (procfs_attach): Don't push the target if it is already pushed.
6486 (procfs_detach): Use inf_child_maybe_unpush_target.
6487 (procfs_create_inferior): Don't push the target if it is already
6488 pushed.
6489 (nto_native_ops): New global.
6490 (procfs_open): Reimplement.
6491 (procfs_native_open): New function.
6492 (init_procfs_targets): Install procfs_native_open as to_open of
6493 "target native". Store a pointer to the "native" target in
6494 nto_native_ops.
6495 * procfs.c (procfs_attach): Don't push the target if it is already
6496 pushed.
6497 (procfs_detach): Use inf_child_maybe_unpush_target.
6498 (procfs_mourn_inferior): Only unpush the target after mourning the
6499 inferior. Use inf_child_maybe_unpush_target.
6500 (procfs_init_inferior): Don't push the target if it is already
6501 pushed.
6502 * windows-nat.c (do_initial_windows_stuff): Don't push the target
6503 if it is already pushed.
6504
930ee1b1
PA
65052014-05-21 Pedro Alves <palves@redhat.com>
6506
6507 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
6508 and "procfs" targets are now called "native" instead.
6509
1f5d1b13
PA
65102014-05-21 Pedro Alves <palves@redhat.com>
6511
6512 * go32-nat.c (go32_open): Delete.
6513 (go32_target): Don't override the to_open method.
6514
132f8e03
PA
65152014-05-21 Pedro Alves <palves@redhat.com>
6516
6517 * nto-procfs.c (procfs_can_run): New function.
6518 (nto_procfs_ops): New global.
6519 (init_procfs_targets): New, based on procfs_target. Install
6520 "target native" in addition to "target procfs".
6521 (_initialize_procfs): Call init_procfs_targets instead of adding
6522 the target here.
6523
03c136c3
PA
65242014-05-21 Pedro Alves <palves@redhat.com>
6525
6526 * windows-nat.c (windows_target): Don't override to_shortname,
6527 to_longname or to_doc.
6528
a635d0f3
PA
65292014-05-21 Pedro Alves <palves@redhat.com>
6530
6531 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
6532 to_doc.
6533
4f9b5133
PA
65342014-05-21 Pedro Alves <palves@redhat.com>
6535
6536 * darwin-nat.c (_initialize_darwin_inferior): Don't override
6537 to_shortname, to_longname or to_doc.
6538
bc85afde
PA
65392014-05-21 Pedro Alves <palves@redhat.com>
6540
6541 * go32-nat.c (go32_target): Don't override to_shortname,
6542 to_longname or to_doc.
6543
4ebfc96e
PA
65442014-05-21 Pedro Alves <palves@redhat.com>
6545
6546 * inf-child.c (inf_child_open): Remove mention of "child".
6547 (inf_child_target): Rename target to "native" instead of "child".
6548
2648dfed
AA
65492014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6550
6551 * Makefile.in (SFILES): Delete "regset.c".
6552 (COMMON_OBS): Delete "regset.o".
6553 * regset.c: Remove.
6554 * regset.h (regset_alloc): Delete prototype.
6555
b13feb94
AA
65562014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6557
6558 * sparc-linux-tdep.c (sparc32_linux_gregset)
6559 (sparc32_linux_fpregset): New static regset structures.
6560 (sparc32_linux_init_abi): Drop dynamic regset allocations.
6561 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
6562 'fpregset' fields.
6563 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
6564 (sparc64_linux_fpregset): New static regset structures.
6565 (sparc64_linux_init_abi): Drop dynamic regset allocations.
6566 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
6567 New static regset structures.
6568 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
6569 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
6570 New static regset structures.
6571 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
6572 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
6573 New static regset structures.
6574 (sparc64obsd_init_abi): Drop dynamic regset allocations.
6575 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
6576 New static regset structures.
6577 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
6578
b4fd25c9
AA
65792014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6580
6581 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
6582 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
6583 register maps ("regmaps") from "*regset" to "*regmap". Do this
6584 for all regmap types and variables.
6585 * sparc-linux-tdep.c (sparc32_linux_step_trap)
6586 (sparc32_linux_supply_core_gregset)
6587 (sparc32_linux_collect_core_gregset)
6588 (sparc32_linux_supply_core_fpregset)
6589 (sparc32_linux_collect_core_fpregset): Likewise.
6590 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
6591 (sparc_gregmap, sparc_fpregmap): ... these.
6592 (sparc_supply_gregset, sparc_collect_gregset)
6593 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6594 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
6595 (_initialize_sparc_nat): Rename regmaps.
6596 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
6597 (sparc_gregmap, sparc_fpregmap): ... these.
6598 (sparc_supply_gregset, sparc_collect_gregset)
6599 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6600 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
6601 Rename macros to...
6602 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
6603 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
6604 Likewise.
6605 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
6606 Rename to...
6607 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
6608 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
6609 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
6610 regmaps.
6611 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6612 (sparc32_bsd_fpregset): Rename to...
6613 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6614 (sparc32_bsd_fpregmap): ... these.
6615 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
6616 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6617 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
6618 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
6619 (struct sparc_gregmap, struct sparc_fpregmap)
6620 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6621 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
6622 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
6623 (sparc32_supply_regset, sparc32_collect_gregset)
6624 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
6625 prototypes.
6626 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
6627 (sparc64_linux_ptrace_gregmap): ... this.
6628 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
6629 (_initialize_sparc64_linux_nat): Rename regmaps.
6630 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
6631 (sparc64_linux_core_gregmap): ... this.
6632 (sparc64_linux_supply_core_gregset)
6633 (sparc64_linux_collect_core_gregset)
6634 (sparc64_linux_supply_core_fpregset)
6635 (sparc64_linux_collect_core_fpregset): Rename regmaps.
6636 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
6637 (sparc64_sol2_fpregset): Rename to...
6638 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
6639 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
6640 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
6641 regmaps.
6642 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
6643 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
6644 (sparc64_bsd_fpregset): Rename to...
6645 (struct sparc_gregmap, sparc64_sol2_gregmap)
6646 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
6647 (sparc64_bsd_fpregmap): ... these.
6648 (sparc64_supply_gregset, sparc64_collect_gregset)
6649 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
6650 prototypes.
6651 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
6652 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
6653 (sparc64fbsd_gregmap): ... this.
6654 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
6655 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
6656 Rename regmaps.
6657 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
6658 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
6659 (sparc64nbsd_collect_fpregset): Likewise.
6660 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
6661 (sparc64nbsd_gregmap): ... this.
6662 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
6663 regmaps.
6664 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
6665 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
6666 (sparc64obsd_gregmap): ... this.
6667 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
6668 regmaps.
6669 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
6670 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
6671 (sparc32nbsd_gregmap): ... this.
6672 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
6673 regmaps.
6674
8fea3224
AA
66752014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6676
6677 * score-tdep.c (score7_linux_gregset): New static regset
6678 structure.
6679 (score7_linux_regset_from_core_section): Remove dynamic regset
6680 allocation.
6681 (score_gdbarch_init): Drop allocation of tdep structure.
6682 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
6683
24534243
AA
66842014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6685
6686 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
6687 regset structures.
6688 (am33_regset_from_core_section): Remove dynamic regset
6689 allocations.
6690
b7195f27
AA
66912014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6692
6693 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
6694 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
6695 structures.
6696 (mips_linux_regset_from_core_section): Remove dynamic regset
6697 allocations.
6698 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6699 'gregset64', 'fpregset', and 'fpregset64'.
6700 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
6701 deleted tdep fields.
6702
ecc37a5a
AA
67032014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6704
6705 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
6706 regset structures.
6707 (amd64_regset_from_core_section): Remove dynamic regset
6708 allocations.
6709 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
6710 structure.
6711 (amd64obsd_regset_from_core_section): Remove dynamic regset
6712 allocation.
6713 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
6714 Likewise.
6715 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
6716 x86-common regset supply function.
6717 * i386-tdep.c (i386_collect_gregset): Make static.
6718 (i386_gregset): New global regset structure.
6719 (i386_fpregset, i386_xstateregset): New static regset structures.
6720 (i386_regset_from_core_section): Remove dynamic regset
6721 allocations.
6722 (i386_gdbarch_init): Remove initialization of tdep fields
6723 'gregset', 'fpregset', and 'xstateregset'.
6724 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6725 'fpregset', and 'xstateregset'.
6726 (i386_collect_gregset): Remove prototype.
6727 (i386_gregset): New declaration.
6728 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
6729 structure.
6730 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
6731 allocation.
6732
b7611c43
AA
67332014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6734
6735 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
6736 (arm_linux_vfpregset): New static regset structures.
6737 (arm_linux_regset_from_core_section): Remove dynamic allocation of
6738 regset structures.
6739 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
6740 and 'vfpregset' fields.
6741
a069a2bd
AA
67422014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6743
6744 * aarch64-linux-tdep.c (aarch64_linux_gregset)
6745 (aarch64_linux_fpregset): New static regset structures.
6746 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
6747 of regset structures.
6748 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
6749 'fpregset' fields.
6750
09424cff
AA
67512014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6752
6753 * regset.h (struct regset): Remove gdbarch field.
6754 * regset.c (regset_alloc): Drop initialization of gdbarch field.
6755 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6756 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
6757 Likewise.
6758 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
6759 (ppc32_linux_fpregset, ppc32_linux_vrregset)
6760 (ppc32_linux_vsxregset): Likewise.
6761 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
6762 via the regcache instead of the regset.
6763 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
6764 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
6765 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
6766 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
6767 Likewise.
6768
3ca7dae4
AA
67692014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6770
6771 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
6772 Constify structures.
6773 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
6774 (alphanbsd_aout_gregset): Likewise.
6775 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
6776 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
6777 Likewise.
6778 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
6779 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
6780 Likewise.
6781 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
6782 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
6783 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
6784 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
6785 * m88k-tdep.c (m88k_gregset): Likewise.
6786 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
6787 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
6788 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6789 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
6790 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
6791 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
6792 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
6793 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
6794 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
6795 Likewise.
6796 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
6797 * sh-tdep.h (sh_corefile_gregset): Likewise.
6798 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
6799 * vax-tdep.c (vax_gregset): Likewise.
6800
5876f503
JK
68012014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6802
6803 Fix TLS access for -static -pthread.
6804 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
6805 (try_thread_db_load_1): Initialize it.
6806 (thread_db_get_thread_local_address): Call it if LM is zero.
6807 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
6808 * target.h (struct target_ops) (to_get_thread_local_address): Add
6809 load_module_addr comment.
6810
0256a6ac
PA
68112014-05-21 Pedro Alves <palves@redhat.com>
6812
6813 * dcache.c (dcache_read_memory_partial): If reading the cache line
6814 fails, fallback to reading just the memory the caller wanted.
6815
227533ac
DE
68162014-05-20 Doug Evans <dje@google.com>
6817
6818 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
6819 instead of get_current_arch.
6820
936d2992
PA
68212014-05-20 Pedro Alves <palves@redhat.com>
6822
6823 * NEWS: Mention that compare-sections now works with all targets.
6824
6825 * remote.c (PACKET_qCRC): New enum value.
6826 (remote_verify_memory): Don't send qCRC if the target has no
6827 execution. Use packet_support/packet_ok. If the target doesn't
6828 support the qCRC packet, fallback to a deep memory copy.
6829 (compare_sections_command): Say "target image" instead of "remote
6830 executable".
6831 (_initialize_remote): Add PACKET_qCRC to the list of config
6832 packets that have no associated command. Extend comment.
6833 * target.c (simple_verify_memory, default_verify_memory): New
6834 function.
6835 * target.h (struct target_ops) <to_verify_memory>: Default to
6836 default_verify_memory.
6837 (simple_verify_memory): New declaration.
6838 * target-delegates.c: Regenerate.
6839
e59fa00f
MM
68402014-05-20 Markus Metzger <markus.t.metzger@intel.com>
6841
6842 * record-btrace.c (record_btrace_step_thread): Check for empty history.
6843
f2205de0
HZ
68442014-05-20 Hui Zhu <hui@codesourcery.com>
6845 Yao Qi <yao@codesourcery.com>
6846
6847 PR backtrace/16558
6848 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
6849 and change address of sp and pc.
6850
c4e54771
TT
68512014-05-19 Tom Tromey <tromey@redhat.com>
6852
6853 * gdbtypes.c (rank_function): Use XNEWVEC.
6854 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
6855
73051182
DE
68562014-05-19 Doug Evans <dje@google.com>
6857
6858 * dwarf2read.c (build_type_psymtabs_1): Renamed from
6859 build_type_unit_groups and moved closer to only caller. Remove
6860 arguments. All references updated. Remove outdated .gdb_index
6861 comment.
6862 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
6863 build_type_psymtabs_1.
6864
8832e7e3
DE
68652014-05-19 Doug Evans <dje@google.com>
6866
6867 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
6868 n_type_unit_groups, all_type_unit_groups. All uses removed.
6869 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
6870 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
6871 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
6872 (add_type_unit_group_to_table): Delete.
6873
cd8ae15e
DE
68742014-05-19 Doug Evans <dje@google.com>
6875
6876 * eval.c (evaluate_subexp_standard): Add some comments.
6877
08f4850b
DE
68782014-05-17 Doug Evans <xdje42@gmail.com>
6879
6880 * progspace.c (remove_program_space): Delete, unused.
6881 * progspace.h (remove_program_space): Ditto.
6882
bed8455c
DE
68832014-05-17 Doug Evans <xdje42@gmail.com>
6884
6885 * inferior.c (prune_inferiors): Fix comment.
6886 (remove_inferior_command): Call prune_program_spaces.
6887
8d551b02
DE
68882014-05-16 Doug Evans <dje@google.com>
6889
6890 New command line option -D.
6891 * NEWS: Mention it.
6892 * main.c (set_gdb_data_directory): New function.
6893 (captured_main): Recognize -D. Flag error for --data-directory "".
6894 Call set_gdb_data_directory.
6895 (print_gdb_help): Print --data-directory, -D.
6896 * main.h (set_gdb_data_directory): Declare.
6897 * top.c (staged_gdb_datadir): New static global.
6898 (set_gdb_datadir): Call set_gdb_data_directory
6899 (show_gdb_datadir): New function.
6900 (init_main): Update init of data-directory parameter.
6901
18848e28
GF
69022014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
6903
6904 Import the "dirfd" gnulib module.
6905 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
6906 * gnulib/aclocal.m4: Update.
6907 * gnulib/config.in: Update.
6908 * gnulib/configure: Update.
6909 * gnulib/import/Makefile.am: Update.
6910 * gnulib/import/Makefile.in: Update.
6911 * gnulib/import/dirfd.c: New.
6912 * gnulib/import/m4/dirfd.m4: New.
6913 * gnulib/import/m4/gnulib-cache.m4: Update.
6914 * gnulib/import/m4/gnulib-comp.m4: Update.
6915
95c64f92
YQ
69162014-05-16 Pierre Muller <muller@sourceware.org>
6917 Yao Qi <yao@codesourcery.com>
6918
6919 * valprint.c (print_wchar): Move the code on checking whether
6920 W is a printable wide char to the default branch of switch
6921 statement below. Call wchar_printable instead of gdb_iswprint.
6922
cac395ea
TM
69232014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
6924
19679eca 6925 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
cac395ea
TM
6926 ldr.w and ldrd instructions.
6927
83655187
DE
69282014-05-15 Doug Evans <dje@google.com>
6929
6930 * dwarf2read.c (read_structure_type): Delete outdated comments.
6931
dd756689
TT
69322014-05-14 Tom Tromey <tromey@redhat.com>
6933
6934 * macrocmd.c (print_macro_definition): Reindent.
6935
75ddda77
DE
69362014-05-13 Doug Evans <xdje42@gmail.com>
6937
6938 * python/py-cmd.c (cmdpy_completer): Add comment.
6939 (completers): Make const.
6940
b0f16a3e
SM
69412014-05-13 Simon Marchi <simon.marchi@ericsson.com>
6942
6943 * infrun.c (resume): Remove should_resume (unused). Move up
6944 declaration of resume_ptid.
6945
033c3379
TT
69462014-05-13 Tom Tromey <tromey@redhat.com>
6947
6948 * language.h (unop_type_check): Remove.
6949 (binop_type_check): Don't declare.
6950
9b44a3a5
AA
69512014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
6952
6953 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
6954 call to regcache_raw_collect.
6955
303a33fa
SM
69562014-05-12 Simon Marchi <simon.marchi@ericsson.com>
6957
6958 * mi/mi-console.c (mi_console_raw_packet): Use the value from
6959 mi_console->quote as the quoting character.
6960
196100a0
SM
69612014-05-12 Simon Marchi <simon.marchi@ericsson.com>
6962
6963 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
6964
f989a1c8
TT
69652014-04-29 Tom Tromey <tromey@redhat.com>
6966
6967 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
6968 "show debug varobj".
6969
9404b58f
KM
69702014-05-07 Kyle McMartin <kyle@redhat.com>
6971
6972 Pushed by Joel Brobecker <brobecker@adacore.com>.
6973 * aarch64-tdep.c (aarch64_software_single_step): New function.
6974 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
6975 with aarch64_software_single_step.
6976
5e49ba57
JB
69772014-05-05 Joel Brobecker <brobecker@adacore.com>
6978
6979 GDB 7.7.1 released.
6980
c888a17d
KS
69812014-05-05 Keith Seitz <keiths@redhat.com>
6982
6983 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
6984 variable or history value is successfully parsed.
6985
290a839c
YQ
69862014-05-05 Yao Qi <yao@codesourcery.com>
6987 Pedro Alves <palves@redhat.com>
6988
6989 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
6990 address of blocks that intersects the requested range. Trim
6991 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
6992 sections.
6993 * ctf.c (ctf_xfer_partial): Likewise.
6994
91256dc2
YQ
69952014-05-05 Yao Qi <yao@codesourcery.com>
6996
6997 * printcmd.c (display_command): Remove the check to
6998 target_has_execution.
6999
07284463
MK
70002014-05-03 Mark Kettenis <kettenis@gnu.org>
7001
7002 * ppcobsd-nat.c: Include "obsd-nat.h".
7003 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
7004 add_target.
7005 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
7006
30a1e6cc
SDJ
70072014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
7008
7009 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
7010 and 16-bit signed and unsigned arguments. Update comment.
7011 (stap_parse_probe_arguments): Extend code to handle such
7012 arguments. Use warning instead of complaint to notify about
7013 unrecognized bitness.
7014
f33da99a
SDJ
70152014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
7016
7017 PR breakpoints/16889
7018 * stap-probe.c (stap_parse_probe_arguments): Simplify
7019 check for non-prefixed probes (i.e., probes whose
7020 arguments do not start with "N@"). Always set the
7021 argument type to a sane value.
7022
95cf3b38
DT
70232014-05-01 David Taylor <dtaylor@emc.com>
7024
7025 * remote.c (compare_sections_command): Add -r option to compare
7026 all loadable read-only sections.
7027
1cfdf534
SC
70282014-04-30 Siva Chandra Reddy <sivachandra@google.com>
7029
7030 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
7031 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
7032 Update all callers.
7033 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
7034 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
7035 Remove unused CORE_ADDR argument. Update all callers.
7036
ca4f7f8b
PA
70372014-04-29 Pedro Alves <palves@redhat.com>
7038
7039 * remote.c (struct packet_config) <detect>: Extend comment.
7040 (add_packet_config_cmd): Don't set the config's detect or support
7041 fields here.
7042 (init_all_packet_configs): Also initialize the config's 'detect'
7043 field.
7044 (reset_all_packet_configs_support): New function.
7045 (remote_open_1): Call reset_all_packet_configs_support instead of
7046 init_all_packet_configs.
7047 (_initialize_remote): Initialize all packet configs. Assert that
7048 all packets have an associated command, except a few known
7049 outliers.
7050
11c1ba78
JB
70512014-04-28 Joel Brobecker <brobecker@adacore.com>
7052
7053 * dwarf2read.c (read_subrange_type): Handle dynamic
7054 DW_AT_lower_bound attributes.
7055
8739bc53
JB
70562014-04-28 Joel Brobecker <brobecker@adacore.com>
7057
7058 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
7059 dynamic bounds before computing its upper bound.
7060 (ada_discrete_type_low_bound): Same as above with the lower bound.
7061
6f8a3220
JB
70622014-04-28 Joel Brobecker <brobecker@adacore.com>
7063
7064 * dwarf2read.c (is_dynamic_type): Return true for dynamic
7065 range types. Adjust the array handling implementation to
7066 take advantage of this change.
7067 (resolve_dynamic_range): New function, mostly extracted from
7068 resolve_dynamic_bounds.
7069 (resolve_dynamic_array): New function, mostly extracted from
7070 resolve_dynamic_bounds.
7071 (resolve_dynamic_bounds): Delete.
7072 (resolve_dynamic_type): Reimplement. Add handling of
7073 TYPE_CODE_RANGE types.
7074
4d072ce4
JB
70752014-04-28 Joel Brobecker <brobecker@adacore.com>
7076
7077 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
7078 handling of parallel ___XA types.
7079
52865325
JB
70802014-04-28 Joel Brobecker <brobecker@adacore.com>
7081
7082 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
7083 unnecessary second call to static_unwrap_type.
7084
433e77fa
HZ
70852014-04-27 Hui Zhu <hui@codesourcery.com>
7086
7087 * stack.c (print_frame_info): Call do_gdb_disassembly with
7088 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
7089
b51a69ee
DE
70902014-04-26 Doug Evans <xdje42@gmail.com>
7091
7092 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
7093
7ae1a6a6
PA
70942014-04-25 Pedro Alves <palves@redhat.com>
7095
7096 PR server/16255
7097 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
7098 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
7099 and newline from built string.
7100 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
7101 (linux_ptrace_attach_fail_reason): ... this.
7102 * linux-nat.c (linux_nat_attach): Adjust to use
7103 linux_ptrace_attach_fail_reason.
7104
4082afcc
PA
71052014-04-25 Pedro Alves <palves@redhat.com>
7106
7107 * remote.c (struct remote_state): Remove multi_process_aware,
7108 non_stop_aware, cond_tracepoints, cond_breakpoints,
7109 breakpoint_commands, fast_tracepoints, static_tracepoints,
7110 install_in_trace, disconnected_tracing,
7111 enable_disable_tracepoints, string_tracing, and
7112 augmented_libraries_svr4_read fields.
7113 (remote_multi_process_p): Move further below in the file.
7114 (struct packet_config): Add comments.
7115 (update_packet_config): Delete function.
7116 (show_packet_config_cmd): Use packet_config_support.
7117 (add_packet_config_cmd): Use NULL as set callback.
7118 (packet_ok): "set remote foo-packet"-style commands no longer
7119 change config->supported -- adjust.
7120 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
7121 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
7122 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
7123 (PACKET_QNonStop, PACKET_multiprocess_feature)
7124 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
7125 (PACKET_DisconnectedTracing_feature)
7126 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
7127 (set_remote_protocol_packet_cmd): Delete function.
7128 (packet_config_support, packet_support): New functions.
7129 (set_remote_protocol_Z_packet_cmd): Don't call
7130 update_packet_config.
7131 (remote_query_attached, remote_pass_signals)
7132 (remote_program_signals, remote_threads_info)
7133 (remote_threads_extra_info, remote_start_remote): Use
7134 packet_support.
7135 (remote_start_remote): Use packet_config_support and
7136 packet_support.
7137 (init_all_packet_configs): Set all packets to unknown support,
7138 instead of calling update_packet_config.
7139 (remote_check_symbols): Use packet_support.
7140 (remote_supported_packet): Unconditionally set the packet config's
7141 support status.
7142 (remote_multi_process_feature, remote_non_stop_feature)
7143 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
7144 (remote_breakpoint_commands_feature)
7145 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
7146 (remote_install_in_trace_feature)
7147 (remote_disconnected_tracing_feature)
7148 (remote_enable_disable_tracepoint_feature)
7149 (remote_string_tracing_feature)
7150 (remote_augmented_libraries_svr4_read_feature): Delete functions.
7151 (remote_protocol_features): Adjust to use remote_supported_packet
7152 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
7153 "ConditionalTracepoints", "ConditionalBreakpoints",
7154 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
7155 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
7156 "EnableDisableTracepoints", and "tracenz".
7157 (remote_query_supported): Use packet_support.
7158 (remote_open_1): Adjust.
7159 (extended_remote_attach_1): Use packet_support. Switch on the
7160 result of packet_ok instead of checking whether the packet ended
7161 up disabled.
7162 (remote_vcont_resume): Use packet_support.
7163 (remote_resume, remote_stop_ns, fetch_register_using_p)
7164 (remote_prepare_to_store, store_register_using_P)
7165 (check_binary_download, remote_write_bytes): Use packet_support.
7166 (remote_vkill): Use packet_support. Switch on the result of
7167 packet_ok instead of checking whether the packet ended up
7168 disabled.
7169 (extended_remote_supports_disable_randomization): Use
7170 packet_support.
7171 (extended_remote_run): Switch on the result of packet_ok instead
7172 of checking whether the packet ended up disabled.
7173 (remote_insert_breakpoint, remote_remove_breakpoint)
7174 (remote_insert_watchpoint, remote_remove_watchpoint)
7175 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
7176 packet_support.
7177 (remote_search_memory): Use packet_config_support.
7178 (remote_get_thread_local_address, remote_get_tib_address)
7179 (remote_hostio_send_command, remote_can_execute_reverse): Use
7180 packet_support.
7181 (remote_supports_cond_tracepoints)
7182 (remote_supports_cond_breakpoints)
7183 (remote_supports_fast_tracepoints)
7184 (remote_supports_static_tracepoints)
7185 (remote_supports_install_in_trace)
7186 (remote_supports_enable_disable_tracepoint)
7187 (remote_supports_string_tracing)
7188 (remote_can_run_breakpoint_commands): Rewrite, checking whether
7189 the packet config says the feature is enabled or disabled.
7190 (remote_download_tracepoint, remote_trace_set_readonly_regions)
7191 (remote_get_trace_status): Use packet_support.
7192 (remote_set_disconnected_tracing): Adjust to check whether the
7193 feature is enabled with packet_support.
7194 (remote_set_trace_buffer_size, remote_use_agent)
7195 (remote_can_use_agent, remote_supports_btrace): Use
7196 packet_support.
7197 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
7198 Use packet_config_support.
7199 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
7200 the packet config says the feature is enabled or disabled.
7201 (set_range_stepping): Use packet_support.
7202
bdb52a22
TT
72032014-04-25 Tom Tromey <tromey@redhat.com>
7204
7205 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
7206 argument.
7207
e9475ead
SA
72082014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
7209
7210 * NEWS: Mention support for C99 variable length arrays.
7211
82eacd52
JB
72122014-04-24 Joel Brobecker <brobecker@adacore.com>
7213
7214 * ada-lang.c (standard_exc): Expand introductory comment.
7215
01f9f808
MS
72162014-04-24 Michael Sturm <michael.sturm@mintel.com>
7217 Walfred Tedeschi <walfred.tedeschi@intel.com>
7218
7219 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
7220 AVX512 registers.
7221 (amd64_linux_read_description): Add code to handle AVX512 xstate
7222 mask and return respective tdesc.
7223 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
7224 and features/i386/x32-avx512-linux.c.
7225 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
7226 (amd64_linux_core_read_description): Add code to handle AVX512
7227 xstate mask and return respective tdesc.
7228 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
7229 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
7230 calculation.
7231 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
7232 (tdesc_amd64_avx512_linux): New prototype.
7233 (tdesc_x32_avx512_linux): Likewise.
7234 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
7235 features/i386/x32-avx512.c.
7236 (amd64_ymm_avx512_names): New register names for pseudo
7237 registers YMM16-31.
7238 (amd64_ymmh_avx512_names): New register names for raw registers
7239 YMMH16-31.
7240 (amd64_k_names): New register names for K registers.
7241 (amd64_zmmh_names): New register names for ZMM raw registers.
7242 (amd64_zmm_names): New registers names for ZMM pseudo registers.
7243 (amd64_xmm_avx512_names): New register names for XMM16-31
7244 registers.
7245 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
7246 registers.
7247 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
7248 if feature is present.
7249 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
7250 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
7251 (AMD64_NUM_REGS): Adjust to new number of registers.
7252 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
7253 registers supplied via XSTATE by AVX512 registers.
7254 (i386_linux_read_description): Add case for AVX512.
7255 * i386-linux-tdep.c: Include i386-avx512-linux.c.
7256 (i386_linux_gregset_reg_offset): Add AVX512 registers.
7257 (i386_linux_core_read_description): Add case for AVX512.
7258 (i386_linux_init_abi): Install supported register note section
7259 for AVX512.
7260 (_initialize_i386_linux_tdep): Add call to tdesc init function for
7261 AVX512.
7262 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
7263 registers to be number of zmm7h + 1.
7264 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
7265 * i386-tdep.c: Include features/i386/i386-avx512.c.
7266 (i386_zmm_names): Add ZMM pseudo register names array.
7267 (i386_zmmh_names): Add ZMM raw register names array.
7268 (i386_k_names): Add K raw register names array.
7269 (num_lower_zmm_regs): Add constant for the number of lower ZMM
7270 registers. AVX512 has 16 more ZMM registers than there are YMM
7271 registers.
7272 (i386_zmmh_regnum_p): Add function to look up register number of
7273 ZMM raw registers.
7274 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
7275 (i386_k_regnum_p): Likewise for K raw registers.
7276 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
7277 registers added by AVX512.
7278 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
7279 registers added by AVX512.
7280 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
7281 added by AVX512.
7282 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
7283 (i386_pseudo_register_name): Add ZMM pseudo registers.
7284 (i386_zmm_type): Construct and return vector registers type for ZMM
7285 registers.
7286 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
7287 ZMM0-31 pseudo registers and K registers.
7288 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
7289 and YMM16-31 registers from register cache.
7290 (i386_pseudo_register_write): Add code to write K, ZMM and
7291 YMM16-31 registers.
7292 (i386_register_reggroup_p): Add code to include/exclude AVX512
7293 registers in/from respective register groups.
7294 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
7295 registers if feature is present in xcr0.
7296 (i386_gdbarch_init): Add code to initialize AVX512 feature
7297 variables in tdep structure, wire in pseudo registers and call
7298 initialize_tdesc_i386_avx512.
7299 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
7300 variables.
7301 (i386_regnum): Add AVX512 registers.
7302 (I386_SSE_NUM_REGS): New define for number of SSE registers.
7303 (I386_AVX_NUM_REGS): Likewise for AVX registers.
7304 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
7305 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
7306 512 bits wide.
7307 (i386_xmm_avx512_regnum_p): New prototype for register look up.
7308 (i386_ymm_avx512_regnum_p): Likewise.
7309 (i386_k_regnum_p): Likewise.
7310 (i386_zmm_regnum_p): Likewise.
7311 (i386_zmmh_regnum_p): Likewise.
7312 * i387-tdep.c : Update year in copyright notice.
7313 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
7314 XSAVE buffer.
7315 (XSAVE_YMM_AVX512_ADDR): New macro.
7316 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
7317 XSAVE buffer.
7318 (XSAVE_XMM_AVX512_ADDR): New macro.
7319 (xsave_avx512_k_offset): New table for K register offsets in
7320 XSAVE buffer.
7321 (XSAVE_AVX512_K_ADDR): New macro.
7322 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
7323 in XSAVE buffer.
7324 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
7325 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
7326 buffer.
7327 (i387_collect_xsave): Add code to collect AVX512 registers from
7328 XSAVE buffer.
7329 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
7330 of XMM16-31 registers.
7331 (I387_NUM_K_REGS): New define for number of K registers.
7332 (I387_K0_REGNUM): New define for K0 register number.
7333 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
7334 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
7335 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
7336 registers.
7337 (I387_YMM16H_REGNUM): New define for YMM16H register number.
7338 (I387_XMM16_REGNUM): New define for XMM16 register number.
7339 (I387_YMM0_REGNUM): New define for YMM0 register number.
7340 (I387_KEND_REGNUM): New define for last K register number.
7341 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
7342 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
7343 number.
7344 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
7345 number.
7346 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
7347 size.
7348 * features/Makefile: Add AVX512 related files.
7349 * features/i386/32bit-avx512.xml: New file.
7350 * features/i386/64bit-avx512.xml: Likewise.
7351 * features/i386/amd64-avx512-linux.c: Likewise.
7352 * features/i386/amd64-avx512-linux.xml: Likewise.
7353 * features/i386/amd64-avx512.c: Likewise.
7354 * features/i386/amd64-avx512.xml: Likewise.
7355 * features/i386/i386-avx512-linux.c: Likewise.
7356 * features/i386/i386-avx512-linux.xml: Likewise.
7357 * features/i386/i386-avx512.c: Likewise.
7358 * features/i386/i386-avx512.xml: Likewise.
7359 * features/i386/x32-avx512-linux.c: Likewise.
7360 * features/i386/x32-avx512-linux.xml: Likewise.
7361 * features/i386/x32-avx512.c: Likewise.
7362 * features/i386/x32-avx512.xml: Likewise.
7363 * regformats/i386/amd64-avx512-linux.dat: New file.
7364 * regformats/i386/amd64-avx512.dat: Likewise.
7365 * regformats/i386/i386-avx512-linux.dat: Likewise.
7366 * regformats/i386/i386-avx512.dat: Likewise.
7367 * regformats/i386/x32-avx512-linux.dat: Likewise.
7368 * regformats/i386/x32-avx512.dat: Likewise.
7369 * NEWS: Add note about new support for AVX512.
7370
7371
08351840
PA
73722014-04-23 Pedro Alves <palves@redhat.com>
7373
7374 * breakpoint.c (insert_bp_location): Tolerate errors if the
7375 breakpoint is set in a user-loaded objfile.
7376 (remove_breakpoint_1): Likewise. Also tolerate errors if the
7377 location is marked shlib_disabled. If the breakpoint is set in a
7378 user-loaded objfile is a GDB-side memory breakpoint, validate it
7379 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
7380 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
7381 flag.
7382 * mem-break.c (memory_validate_breakpoint): New function.
7383 * objfiles.c (userloaded_objfile_contains_address_p): New
7384 function.
7385 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
7386 * target.h (memory_validate_breakpoint): New declaration.
7387
076855f9
PA
73882014-04-23 Pedro Alves <palves@redhat.com>
7389
7390 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
7391 the breakpoint is set in a shared library, only suppress
7392 errors for software breakpoints, not hardware breakpoints.
7393
483805cf
PA
73942014-04-22 Pedro Alves <palves@redhat.com>
7395
7396 * infrun.c (schedlock_applies): New function, factored out from
7397 find_thread_needs_step_over.
7398 (find_thread_needs_step_over): Use it.
7399 (switch_back_to_stepped_thread): Always clear trap_expected if the
7400 step over is finished. Return early if scheduler locking applies.
7401 Look for the stepping thread and a potential step-over thread with
7402 a single loop.
7403 (currently_stepping_or_nexting_callback): Delete.
7404
a75fef0e
NC
74052014-04-22 Nick Clifton <nickc@redhat.com>
7406
7407 * NEWS: Mention that ARM sim now supports tracing.
7408
48b6e87e
YQ
74092014-04-22 Yao Qi <yao@codesourcery.com>
7410
7411 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
7412 to ...
7413 * tracefile.c (tracefile_fetch_registers): ... it. New
7414 function.
7415 * tracefile.h (tracefile_fetch_registers): Declare.
7416 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
7417 tracefile_fetch_registers.
7418
17617f2d
EZ
74192014-04-19 Eli Zaretskii <eliz@gnu.org>
7420
7421 PR gdb/14018
7422 * windows-nat.c (thread_rec): Don't display a warning when
7423 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
7424 fails for any reason, set th->suspended to -1, so that we don't
7425 try to resume such a thread. Also, don't return NULL in these
7426 cases, to avoid completely ruin the session due to "PC register is
7427 not available" error.
7428 (do_windows_fetch_inferior_registers): Check errors in
7429 GetThreadContext call.
7430 (windows_continue): Accept an additional argument KILLED; if not
7431 zero, ignore errors in the SetThreadContext call, since the
7432 inferior was killed and is shutting down.
7433 (windows_resume, get_windows_debug_event)
7434 (windows_create_inferior, windows_mourn_inferior)
7435 (windows_kill_inferior): All callers of windows_continue changed
7436 to adjust to its new calling sequence.
7437
5723a6fd
YQ
74382014-04-19 Yao Qi <yao@codesourcery.com>
7439
7440 * ctf.c (ctf_open): Call post_create_inferior.
7441
614d5099
YQ
74422014-04-19 Yao Qi <yao@codesourcery.com>
7443
7444 * ctf.c (handle_id): New static variable.
7445 (ctf_open_dir): Get handle_id from bt_context_add_trace return
7446 value. Get the declaration of event "register" and get length
7447 of field "contents".
7448
dac3e710
YQ
74492014-04-19 Yao Qi <yao@codesourcery.com>
7450
7451 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
7452
2bca57ba
SC
74532014-04-18 Siva Chandra Reddy <sivachandra@google.com>
7454
7455 * valops.c (oload_method_static): Remove unnecessary argument
7456 METHOD. Update all callers.
7457
51d48146
PA
74582014-04-18 Pedro alves <palves@redhat.com>
7459 Tom Tromey <tromey@redhat.com>
7460
7461 PR backtrace/15558
7462 * frame.c (get_prev_frame_1): Rename to ...
7463 (get_prev_frame_always): ... this, and make extern. Adjust.
7464 (skip_artificial_frames): Use get_prev_frame_always.
7465 (frame_unwind_caller_id, frame_pop, get_prev_frame)
7466 (get_frame_unwind_stop_reason): Adjust to rename.
7467 * frame.h (get_prev_frame_always): Declare.
7468 * inline-frame.c: Include frame.h.
7469 (inline_frame_this_id): Use get_prev_frame_always.
7470
1bdad2e0
TG
74712014-04-18 Tristan Gingold <gingold@adacore.com>
7472
7473 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
7474 code by using bfd_mach_o_get_base_address.
7475
7ce16bd4
UW
74762014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
7477
7478 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
7479 (spu_ax_pseudo_register_collect): New function.
7480 (spu_ax_pseudo_register_push_stack): Likewise.
7481 (spu_dwarf_reg_to_regnum): Likewise.
7482 (spu_gdbarch_init): Install them. Append DWARF unwinders.
7483
2ed3c037
UW
74842014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
7485
7486 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
7487 Replace FRAME argument with FRAME_ID.
7488 * gdbarch.c, gdbarch.h: Regenerate.
7489 * findvar.c (default_value_from_register): Add GDBARCH argument;
7490 replace FRAME by FRAME_ID. No longer call get_frame_id.
7491 (value_from_register): Update call to gdbarch_value_from_register.
7492 * value.h (default_value_from_register): Update prototype.
7493 * s390-linux-tdep.c (s390_value_from_register): Update interface
7494 and call to default_value_from_register.
7495 * spu-tdep.c (spu_value_from_register): Likewise.
7496
7497 * findvar.c (address_from_register): Remove TYPE argument.
7498 Do not call value_from_register; use gdbarch_value_from_register
7499 with null_frame_id instead.
7500 * value.h (address_from_register): Update prototype.
7501 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
7502 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
7503 address_from_register interface change.
7504
71e50e83
YQ
75052014-04-17 Yao Qi <yao@codesourcery.com>
7506
7507 * gdbtypes.h: Update comments to link to types and macros'
7508 definitions.
7509
7a23c549
SC
75102014-04-16 Siva Chandra Reddy <sivachandra@google.com>
7511
7512 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
7513
22869d73
KS
75142014-04-16 Keith Seitz <keiths@redhat.com>
7515
7516 PR gdb/15827
7517 * dwarf2read.c (skip_one_die): Check that all relative-offset
7518 sibling DIEs fall within range of the current reader's buffer.
7519 (read_partial_die): Likewise.
7520
c4f87ca6
KS
75212014-04-16 Keith Seitz <keiths@redhat.com>
7522
7523 PR c++/16597
7524 * cp-namespace.c (lookup_symbol_file): If the type name of
7525 `this' is NULL, return immediately.
7526
b50c8614
KS
75272014-04-14 Keith Seitz <keiths@redhat.com>
7528
7529 PR c++/16253
7530 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
7531 from symbol_matches_domain in symtab.c. All local callers
7532 of symbol_matches_domain updated.
7533 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
7534 search STRUCT_DOMAIN.
7535 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
7536 independently. standard_lookup will do that automatically.
7537 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
7538 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7539 (cp_lookup_symbol_in_namespace): Likewise.
7540 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
7541 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
7542 may return a STRUCT_DOMAIN match.
7543 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
7544 * cp-support.c: Include language.h.
7545 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
7546 VAR_DOMAIN.
7547 * psymtab.c (match_partial_symbol): Compare the requested
7548 domain with the symbol's domain directly.
7549 (lookup_partial_symbol): Likewise.
7550 * symtab.c (lookup_symbol_in_language): Explain when/why
7551 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7552 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
7553 appropriate languages.
7554 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
7555 and moved to ada-lang.c
7556 (lookup_block_symbol): Explain that this function only returns
7557 symbol matching the requested DOMAIN.
7558 Compare the requested domain with the symbol's domain directly.
7559 (iterate_over_symbols): Compare the requested domain with the
7560 symbol's domain directly.
7561 * symtab.h (symbol_matches_domain): Remove.
7562
3d567982
TT
75632014-04-14 Tom Tromey <tromey@redhat.com>
7564
7565 PR c++/15246:
7566 * c-exp.y (type_aggregate_p): New function.
7567 (qualified_name, classify_inner_name): Use it.
7568 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
7569 and TYPE_TARGET_TYPE of an enum type.
7570 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
7571 an enum type.
7572 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
7573 handle TYPE_DECLARED_CLASS.
7574 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
7575 types.
7576 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
7577 * valops.c (enum_constant_from_type): New function.
7578 (value_aggregate_elt): Use it.
7579 * cp-namespace.c (cp_lookup_nested_symbol): Handle
7580 TYPE_CODE_ENUM.
7581
c848d642
TT
75822014-04-14 Tom Tromey <tromey@redhat.com>
7583
7584 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
7585 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
7586 const.
7587 * value.h (value_aggregate_elt): Update.
7588
0626fc76
TT
75892014-04-14 Tom Tromey <tromey@redhat.com>
7590
7591 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
7592
5ecaaa66
SA
75932014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7594
7595 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7596 (evaluate_subexp_standard): Pass noside argument.
7597 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7598 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7599 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7600 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7601 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7602
1612e0c0
SA
76032014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7604
7605 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7606 points to a constant blob.
7607
c451ebe5
SA
76082014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7609
7610 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7611 property and store it as the high bound and flag the range accordingly.
7612 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7613 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7614 * gdbtypes.h (enum range_flags): New enum.
7615 (struct range_bounds): Add flags member.
7616
1d42e4c4
SA
76172014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7618
7619 * c-typeprint.c (c_type_print_varspec_suffix): Added
7620 check for not yet resolved high bound. If unresolved, print
7621 "variable length" string to the console instead of random
7622 length.
7623
9f1f738a
SA
76242014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7625
7626 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
7627 value.
7628 (ada_template_to_fixed_record_type_1): Likewise.
7629 (ada_to_fixed_type_1): Likewise.
7630 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7631 (cp_print_value): Likewise.
7632 * d-valprint.c (dynamic_array_type): Likewise.
7633 * findvar.c (address_of_variable): Likewise.
7634 * jv-valprint.c (java_value_print): Likewise.
7635 * valops.c (value_ind): Likewise.
7636 * value.c (coerce_ref): Likewise.
7637
3c8452d4
SA
76382014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7639
7640 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7641 value and retrieve the dynamic type size.
7642
4ad88275
SA
76432014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7644
7645 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7646 passed to sizeof is dynamic evaluate the argument to compute the length.
7647
80180f79
SA
76482014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7649 Joel Brobecker <brobecker@adacore.com>
7650
7651 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7652 (dwarf2_evaluate_property): New function.
7653 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7654 * dwarf2read.c (attr_to_dynamic_prop): New function.
7655 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7656 attribute.
7657 * gdbtypes.c: Include dwarf2loc.h.
7658 (is_dynamic_type): New function.
7659 (resolve_dynamic_type): New function.
7660 (resolve_dynamic_bounds): New function.
7661 (get_type_length): New function.
7662 (check_typedef): Use get_type_length to compute type length.
7663 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7664 (TYPE_LOW_BOUND_KIND): New macro.
7665 (is_dynamic_type): New function prototype.
7666 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7667 to resolve dynamic properties of the type. Update comment.
7668 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7669
a1556843
RH
76702014-04-14 Richard Henderson <rth@redhat.com>
7671
7672 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
7673
0be03e84
DE
76742014-04-12 Siva Chandra Reddy <sivachandra@google.com>
7675 Doug Evans <xdje42@gmail.com>
7676
7677 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
7678 dereference TYPE_CODE_REF values.
7679
6b662e19
JB
76802014-04-11 Joel Brobecker <brobecker@adacore.com>
7681
7682 Revert the following changes due to regressions:
7683
7684 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7685 (dwarf2_evaluate_property): New function.
7686 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7687 * dwarf2read.c (attr_to_dynamic_prop): New function.
7688 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7689 attribute.
7690 * gdbtypes.c: Include dwarf2loc.h.
7691 (is_dynamic_type): New function.
7692 (resolve_dynamic_type): New function.
7693 (resolve_dynamic_bounds): New function.
7694 (get_type_length): New function.
7695 (check_typedef): Use get_type_length to compute type length.
7696 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7697 (TYPE_LOW_BOUND_KIND): New macro.
7698 (is_dynamic_type): New function prototype.
7699 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7700 to resolve dynamic properties of the type. Update comment.
7701 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7702
7703 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7704 passed to sizeof is dynamic evaluate the argument to compute the length.
7705
7706 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7707 value and retrieve the dynamic type size.
7708
7709 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7710 (ada_template_to_fixed_record_type_1): Likewise.
7711 (ada_to_fixed_type_1): Likewise.
7712 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7713 (cp_print_value): Likewise.
7714 * d-valprint.c (dynamic_array_type): Likewise.
7715 * eval.c (evaluate_subexp_with_coercion): Likewise.
7716 * findvar.c (address_of_variable): Likewise.
7717 * jv-valprint.c (java_value_print): Likewise.
7718 * valops.c (value_ind): Likewise.
7719 * value.c (coerce_ref): Likewise.
7720
7721 * c-typeprint.c (c_type_print_varspec_suffix): Added
7722 check for not yet resolved high bound. If unresolved, print
7723 "variable length" string to the console instead of random
7724 length.
7725
7726 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7727 property and store it as the high bound and flag the range accordingly.
7728 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7729 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7730 * gdbtypes.h (enum range_flags): New enum.
7731 (struct range_bounds): Add flags member.
7732
7733 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7734 points to a constant blob.
7735
7736 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7737 (evaluate_subexp_standard): Pass noside argument.
7738 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7739 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7740 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7741 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7742 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7743
245a5f0b
KS
77442014-04-11 Keith Seitz <keiths@redhat.com>
7745
7746 PR c++/16675
7747 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
7748 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
7749 reference types.
7750
3bce8237
SA
77512014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7752
7753 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7754 (evaluate_subexp_standard): Pass noside argument.
7755 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7756 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7757 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7758 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7759 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7760
92b09522
SA
77612014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7762
7763 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7764 points to a constant blob.
7765
e1969afb
SA
77662014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7767
7768 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7769 property and store it as the high bound and flag the range accordingly.
7770 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7771 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7772 * gdbtypes.h (enum range_flags): New enum.
7773 (struct range_bounds): Add flags member.
7774
b86138fb
SA
77752014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7776
7777 * c-typeprint.c (c_type_print_varspec_suffix): Added
7778 check for not yet resolved high bound. If unresolved, print
7779 "variable length" string to the console instead of random
7780 length.
7781
bcd629a4
SA
77822014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7783
7784 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7785 (ada_template_to_fixed_record_type_1): Likewise.
7786 (ada_to_fixed_type_1): Likewise.
7787 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7788 (cp_print_value): Likewise.
7789 * d-valprint.c (dynamic_array_type): Likewise.
7790 * eval.c (evaluate_subexp_with_coercion): Likewise.
7791 * findvar.c (address_of_variable): Likewise.
7792 * jv-valprint.c (java_value_print): Likewise.
7793 * valops.c (value_ind): Likewise.
7794 * value.c (coerce_ref): Likewise.
7795
04b19544
SA
77962014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7797
7798 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7799 value and retrieve the dynamic type size.
7800
26cb189f
SA
78012014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7802
7803 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7804 passed to sizeof is dynamic evaluate the argument to compute the length.
7805
37c1ab67
SA
78062014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7807
7808 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7809 (dwarf2_evaluate_property): New function.
7810 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7811 * dwarf2read.c (attr_to_dynamic_prop): New function.
7812 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7813 attribute.
7814 * gdbtypes.c: Include dwarf2loc.h.
7815 (is_dynamic_type): New function.
7816 (resolve_dynamic_type): New function.
7817 (resolve_dynamic_bounds): New function.
7818 (get_type_length): New function.
7819 (check_typedef): Use get_type_length to compute type length.
7820 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7821 (TYPE_LOW_BOUND_KIND): New macro.
7822 (is_dynamic_type): New function prototype.
7823 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7824 to resolve dynamic properties of the type. Update comment.
7825 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7826
729efb13
SA
78272014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7828
7829 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
7830 declaring high/low bounds and change uses accordingly. Call
7831 create_range_type instead of create_static_range_type.
7832 * gdbtypes.c (create_range_type): New function.
7833 (create_range_type): Convert bounds into struct bound_prop and pass
7834 them to create_range_type.
7835 * gdbtypes.h (struct bound_prop): New struct.
7836 (create_range_type): New function prototype.
7837 (struct range_bounds): Use struct bound_prop instead of LONGEST for
7838 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
7839 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
7840 part of the bound.
7841 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
7842
0c9c3474
SA
78432014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7844
7845 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
7846 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
7847 * ada-lang.c: All uses of create_range_type updated.
7848 * coffread.c: All uses of create_range_type updated.
7849 * dwarf2read.c: All uses of create_range_type updated.
7850 * f-exp.y: All uses of create_range_type updated.
7851 * m2-valprint.c: All uses of create_range_type updated.
7852 * mdebugread.c: All uses of create_range_type updated.
7853 * stabsread.c: All uses of create_range_type updated.
7854 * valops.c: All uses of create_range_type updated.
7855 * valprint.c: All uses of create_range_type updated.
7856
9d497a19
PA
78572014-04-10 Pedro Alves <palves@redhat.com>
7858
7859 * breakpoint.c (single_step_breakpoints)
7860 (single_step_gdbarch): Move up in the file.
7861 (one_breakpoint_xfer_memory): New function, factored out from ...
7862 (breakpoint_xfer_memory): ... here. Also process single-step
7863 breakpoints.
7864
15a9128a
TG
78652014-04-09 Tristan Gingold <gingold@adacore.com>
7866
7867 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
7868 comments.
7869 (darwin_decode_exception_message): Free port only after use.
7870
9c97a070
PL
78712014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
7872
7873 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
7874 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
7875 when setting the size of call_length.
7876
7af389b8
SC
78772014-04-07 Siva Chandra Reddy <sivachandra@google.com>
7878
7879 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
7880 dereference TYPE_CODE_REF values.
7881
86ad98c3
JB
78822014-04-07 Joel Brobecker <brobecker@adacore.com>
7883
7884 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
7885 end of warning message.
7886
b0aeadb3
DE
78872014-04-03 Doug Evans <dje@google.com>
7888
7889 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
7890 of stub_comp_unit_die, stub_comp_dir is non-NULL.
7891
5979d6b6
AM
78922014-04-02 Alan Modra <amodra@gmail.com>
7893
7894 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
7895 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
7896 (struct symbol_file_add_from_memory_args): Add size field.
7897 (find_vdso_size): New function.
7898 (add_vsyscall_page): Attempt to find vdso size.
7899
0d60c288
DE
79002014-04-01 Doug Evans <dje@google.com>
7901
7902 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
7903
a41f2563
TG
79042014-04-01 Tristan Gingold <gingold@adacore.com>
7905
7906 * darwin-nat.c (darwin_encode_reply): Add prototype.
7907 (darwin_decode_exception_message): Reply to unknown inferiors.
7908 (darwin_decode_message): Handle message by id. Ignore message
7909 to unknown inferior.
7910 (darwin_wait): Discard unknown messages, add debug trace.
7911
11a865c8
DE
79122014-03-31 Doug Evans <dje@google.com>
7913
7914 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
7915 comp_dir_string.
7916
770e7fc7
DE
79172014-03-31 Doug Evans <dje@google.com>
7918
7919 New option "set print symbol-loading".
7920 * NEWS: Mention it.
7921 * solib.c (solib_read_symbols): Only print symbol loading messages
7922 if requested.
7923 (solib_add): If symbol loading is in "brief" mode, notify user
7924 symbols are being loaded.
7925 (reload_shared_libraries_1): Ditto.
7926 * symfile.c (print_symbol_loading_off): New static global.
7927 (print_symbol_loading_brief): New static global.
7928 (print_symbol_loading_full): New static global.
7929 (print_symbol_loading_enums): New static global.
7930 (print_symbol_loading): New static global.
7931 (print_symbol_loading_p): New function.
7932 (symbol_file_add_with_addrs): Only print symbol loading messages
7933 if requested.
7934 (_initialize_symfile): Register "print symbol-loading" set/show
7935 command.
7936 * symfile.h (print_symbol_loading_p): Declare.
7937
c32c64b7
DE
79382014-03-30 Doug Evans <xdje42@gmail.com>
7939
7940 * infrun.c (set_last_target_status): New function.
7941 (handle_inferior_event): Call it.
7942
7c0bc051
DE
79432014-03-30 Doug Evans <xdje42@gmail.com>
7944
7945 * inferior.h (enum stop_kind): Improve comment.
7946
8776cfe9
JB
79472014-03-28 Joel Brobecker <brobecker@adacore.com>
7948
7949 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
7950 a reference, strip the reference layer before calling
7951 the lang_ops value_has_mutated callback.
7952
410a0ff2
SDJ
79532014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
7954
7955 Remove some globals from our parser.
7956 * language.c (unk_lang_parser): Add "struct parser_state"
7957 argument.
7958 * language.h (struct language_defn) <la_parser>: Likewise.
7959 * parse.c (expout, expout_size, expout_ptr): Remove variables.
7960 (initialize_expout): Add "struct parser_state" argument.
7961 Rewrite function to use the parser state.
7962 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
7963 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
7964 write_exp_elt_longcst, write_exp_elt_dblcst,
7965 write_exp_elt_decfloatcst, write_exp_elt_type,
7966 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
7967 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
7968 write_dollar_variable): Likewise.
7969 (parse_exp_in_context_1): Use parser state.
7970 (insert_type_address_space): Add "struct parser_state" argument.
7971 Use parser state.
7972 (increase_expout_size): New function.
7973 * parser-defs.h: Forward declare "struct language_defn" and
7974 "struct parser_state".
7975 (expout, expout_size, expout_ptr): Remove extern declarations.
7976 (parse_gdbarch, parse_language): Rewrite macro declarations to
7977 accept the parser state.
7978 (struct parser_state): New struct.
7979 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
7980 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
7981 write_exp_elt_decfloatcst, write_exp_elt_type,
7982 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
7983 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
7984 write_exp_msymbol, write_dollar_variable,
7985 mark_struct_expression, insert_type_address_space): Add "struct
7986 parser_state" argument.
7987 (increase_expout_size): New function.
7988 * utils.c (do_clear_parser_state): New function.
7989 (make_cleanup_clear_parser_state): Likewise.
7990 * utils.h (make_cleanup_clear_parser_state): New function
7991 prototype.
7992 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
7993 Update calls to write_exp* in order to pass the parser state.
7994 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
7995 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
7996 (i386_stap_parse_special_token_three_arg_disp): Likewise.
7997 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
7998 * stap-probe.c (stap_parse_register_operand): Likewise.
7999 (stap_parse_single_operand): Likewise.
8000 (stap_parse_argument_1): Likewise.
8001 (stap_parse_argument): Use parser state.
8002 * stap-probe.h: Include "parser-defs.h".
8003 (struct stap_parse_info) <pstate>: New field.
8004 * c-exp.y (parse_type): Rewrite to use parser state.
8005 (yyparse): Redefine to c_parse_internal.
8006 (pstate): New global variable.
8007 (parse_number): Add "struct parser_state" argument.
8008 (write_destructor_name): Likewise.
8009 (type_exp): Update calls to write_exp* and similars in order to
8010 use parser state.
8011 (exp1, exp, variable, qualified_name, space_identifier,
8012 typename, typebase): Likewise.
8013 (write_destructor_name, parse_number, lex_one_token,
8014 classify_name, classify_inner_name, c_parse): Add "struct
8015 parser_state" argument. Update function to use parser state.
8016 * c-lang.h: Forward declare "struct parser_state".
8017 (c_parse): Add "struct parser_state" argument.
8018 * ada-exp.y (parse_type): Rewrite macro to use parser state.
8019 (yyparse): Redefine macro to ada_parse_internal.
8020 (pstate): New variable.
8021 (write_int, write_object_renaming, write_var_or_type,
8022 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
8023 type_int, type_long, type_long_long, type_float, type_double,
8024 type_long_double, type_char, type_boolean, type_system_address):
8025 Add "struct parser_state" argument.
8026 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
8027 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
8028 var_or_type, aggregate, aggregate_component_list,
8029 positional_list, others, component_group,
8030 component_associations): Update calls to write_exp* and similar
8031 functions in order to use parser state.
8032 (ada_parse, write_var_from_sym, write_int,
8033 write_exp_op_with_string, write_object_renaming,
8034 find_primitive_type, write_selectors, write_ambiguous_var,
8035 write_var_or_type, write_name_assoc, type_int, type_long,
8036 type_long_long, type_float, type_double, type_long_double,
8037 type_char, type_boolean, type_system_address): Add "struct
8038 parser_state" argument. Adjust function to use parser state.
8039 * ada-lang.c (parse): Likewise.
8040 * ada-lang.h: Forward declare "struct parser_state".
8041 (ada_parse): Add "struct parser_state" argument.
8042 * ada-lex.l (processInt, processReal): Likewise. Adjust all
8043 calls to both functions.
8044 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
8045 parser state.
8046 (yyparse): Redefine macro to f_parse_internal.
8047 (pstate): New variable.
8048 (parse_number): Add "struct parser_state" argument.
8049 (type_exp, exp, subrange, typebase): Update calls to write_exp*
8050 and similars in order to use parser state.
8051 (parse_number): Adjust code to use parser state.
8052 (yylex): Likewise.
8053 (f_parse): New function.
8054 * f-lang.h: Forward declare "struct parser_state".
8055 (f_parse): Add "struct parser_state" argument.
8056 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
8057 parser state.
8058 (yyparse): Redefine macro for java_parse_internal.
8059 (pstate): New variable.
8060 (push_expression_name, push_expression_name, insert_exp): Add
8061 "struct parser_state" argument.
8062 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
8063 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
8064 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
8065 PostIncrementExpression, PostDecrementExpression,
8066 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
8067 UnaryExpressionNotPlusMinus, CastExpression,
8068 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
8069 RelationalExpression, EqualityExpression, AndExpression,
8070 ExclusiveOrExpression, InclusiveOrExpression,
8071 ConditionalAndExpression, ConditionalOrExpression,
8072 ConditionalExpression, Assignment, LeftHandSide): Update
8073 calls to write_exp* and similars in order to use parser state.
8074 (parse_number): Ajust code to use parser state.
8075 (yylex): Likewise.
8076 (java_parse): New function.
8077 (push_variable): Add "struct parser_state" argument. Adjust
8078 code to user parser state.
8079 (push_fieldnames, push_qualified_expression_name,
8080 push_expression_name, insert_exp): Likewise.
8081 * jv-lang.h: Forward declare "struct parser_state".
8082 (java_parse): Add "struct parser_state" argument.
8083 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
8084 parser state.
8085 (yyparse): Redefine macro to m2_parse_internal.
8086 (pstate): New variable.
8087 (type_exp, exp, fblock, variable, type): Update calls to
8088 write_exp* and similars to use parser state.
8089 (yylex): Likewise.
8090 (m2_parse): New function.
8091 * m2-lang.h: Forward declare "struct parser_state".
8092 (m2_parse): Add "struct parser_state" argument.
8093 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
8094 * objc-lang.h: Forward declare "struct parser_state".
8095 (end_msglist): Add "struct parser_state" argument.
8096 * p-exp.y (parse_type): Rewrite macro to use parser state.
8097 (yyparse): Redefine macro to pascal_parse_internal.
8098 (pstate): New variable.
8099 (parse_number): Add "struct parser_state" argument.
8100 (type_exp, exp1, exp, qualified_name, variable): Update calls to
8101 write_exp* and similars in order to use parser state.
8102 (parse_number, yylex): Adjust code to use parser state.
8103 (pascal_parse): New function.
8104 * p-lang.h: Forward declare "struct parser_state".
8105 (pascal_parse): Add "struct parser_state" argument.
8106 * go-exp.y (parse_type): Rewrite macro to use parser state.
8107 (yyparse): Redefine macro to go_parse_internal.
8108 (pstate): New variable.
8109 (parse_number): Add "struct parser_state" argument.
8110 (type_exp, exp1, exp, variable, type): Update calls to
8111 write_exp* and similars in order to use parser state.
8112 (parse_number, lex_one_token, classify_name, yylex): Adjust code
8113 to use parser state.
8114 (go_parse): Likewise.
8115 * go-lang.h: Forward declare "struct parser_state".
8116 (go_parse): Add "struct parser_state" argument.
8117
342587c4
DE
81182014-03-27 Doug Evans <dje@google.com>
8119
8120 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
8121
33e80786
DE
81222014-03-27 Doug Evans <dje@google.com>
8123
8124 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
8125 Remove argument abbrev_section. All callers updated.
8126
1dbab08b
DE
81272014-03-27 Doug Evans <dje@google.com>
8128
8129 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
8130 addr_base, ranges_base.
8131
318d3177
KS
81322014-03-26 Keith Seitz <keiths@redhat.com>
8133
8134 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
8135 types, not VAR_DOMAIN.
8136
1e54db15
SL
81372014-03-25 Sandra Loosemore <sandra@codesourcery.com>
8138
8139 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
8140 "ra" registers.
8141 * features/nios2-linux.c: Regenerated.
8142 * features/nios2.c: Regenerated.
8143
d3839ede
PA
81442014-03-25 Pedro Alves <palves@redhat.com>
8145
8146 * cli/cli-script.c (script_from_file): Force the interpreter to
8147 sync mode.
8148
7588d2ec
PL
81492014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
8150
8151 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
8152 small stack allocation.
8153
a6290449
TG
81542014-03-24 Tristan Gingold <gingold@adacore.com>
8155
8156 * darwin-nat.c (exc_server): Remove unused prototype.
8157 (darwin_dump_message): Correctly display data on x86_64.
8158 (darwin_encode_reply): Fix style.
8159 Add comments and fix indentation.
8160
31ae9d24 81612014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
69fa4030
PL
8162
8163 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
8164
6339bfc4
DE
81652014-03-22 Doug Evans <xdje42@gmail.com>
8166
8167 * infcmd.c: Whitespace fixes.
8168 (interrupt_command): Merge two function comments into one.
8169
0a07590b
DE
81702014-03-22 Doug Evans <xdje42@gmail.com>
8171
8172 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
8173 All uses updated.
8174
b55fbac4
YQ
81752014-03-22 Yao Qi <yao@codesourcery.com>
8176
8177 * remote.c (target_read_live_memory): Remove.
8178 (memory_xfer_live_readonly_partial): Rename it to
8179 remote_xfer_live_readonly_partial. Remove argument 'object'.
8180 All callers updated. Call remote_read_bytes_1
8181 instead of target_read_live_memory.
8182 * tracepoint.c (set_traceframe_number): Remove.
8183 (make_cleanup_restore_traceframe_number): Likewise .
8184 * tracepoint.h (set_traceframe_number): Remove declaration.
8185 (make_cleanup_restore_traceframe_number): Likewise.
8186
9217e74e
YQ
81872014-03-22 Yao Qi <yao@codesourcery.com>
8188
8189 * remote.c (remote_read_bytes): Move code on reading from the
8190 remote stub to ...
8191 (remote_read_bytes_1): ... here. New function.
8192
8acf9577
YQ
81932014-03-22 Yao Qi <yao@codesourcery.com>
8194
8195 * ctf.c (ctf_xfer_partial): Check the return value of
8196 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
8197 return TARGET_XFER_UNAVAILABLE.
8198 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8199 * target.c (target_read_live_memory): Move it to remote.c.
8200 (memory_xfer_live_readonly_partial): Likewise.
8201 (memory_xfer_partial_1): Move some code to remote_read_bytes.
8202 * remote.c (target_read_live_memory): Moved from target.c.
8203 (memory_xfer_live_readonly_partial): Likewise.
8204 (remote_read_bytes): Factored out from
8205 memory_xfer_partial_1.
8206
feef67ab
DE
82072014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
8208
8209 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
8210 NULL pointer.
8211
b65dc60b
PA
82122014-03-21 Pedro Alves <palves@redhat.com>
8213
8214 * infrun.c (normal_stop): Extend comment.
8215
b4ab256d
HZ
82162014-03-21 Hui Zhu <hui@codesourcery.com>
8217 Pedro Alves <palves@redhat.com>
8218
8219 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
8220 static buffer.
8221 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
8222 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
8223 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
8224
deba7593
MR
82252014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
8226
8227 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
8228 `z' formatted output modifier.
8229
1bff71c3
SDJ
82302014-03-20 Tom Tromey <tromey@redhat.com>
8231 Sergio Durigan Junior <sergiodj@redhat.com>
8232
8233 * probe.c (parse_probes): Turn assert into an ordinary error.
8234 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
8235 exceptions when parsing probes. Rearrange the code for clarity.
8236
90e28950
TT
82372014-03-20 Tom Tromey <tromey@redhat.com>
8238
8239 PR gdb/14135
8240 * top.c (execute_command): Only dispatch events if the command
8241 started the target.
8242
beb460e8
PA
82432014-03-20 Tom Tromey <tromey@redhat.com>
8244
8245 PR cli/15718
8246 * infcall.c: Include event-top.h.
8247 (run_inferior_call): Call async_disable_stdin if needed.
8248
99619bea
PA
82492014-03-20 Pedro Alves <palves@redhat.com>
8250
8251 * infrun.c (prepare_to_proceed): Delete.
8252 (thread_still_needs_step_over): New function.
8253 (find_thread_needs_step_over): New function.
8254 (proceed): If the current thread needs a step-over, set its
8255 steping_over_breakpoint flag. Adjust to use
8256 find_thread_needs_step_over instead of prepare_to_proceed.
8257 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
8258 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
8259 breakpoint.
8260 (switch_back_to_stepped_thread): Step over breakpoints of all
8261 threads not the stepping thread, before switching back to the
8262 stepping thread.
8263
2adfaa28
PA
82642014-03-20 Pedro Alves <palves@redhat.com>
8265
8266 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
8267 extern.
8268 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
8269 * infrun.c (saved_singlestep_ptid)
8270 (stepping_past_singlestep_breakpoint): Delete.
8271 (resume): Remove stepping_past_singlestep_breakpoint handling.
8272 (proceed): Store the prev_pc of the stepping thread too.
8273 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
8274 singlestep_pc.
8275 (enum infwait_states): Delete infwait_thread_hop_state.
8276 (struct execution_control_state) <hit_singlestep_breakpoint>: New
8277 field.
8278 (handle_inferior_event): Adjust.
8279 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
8280 handling and the thread-hop code. Before removing single-step
8281 breakpoints, check whether the thread hit a single-step breakpoint
8282 of another thread. If it did, the trap is not a random signal.
8283 (switch_back_to_stepped_thread): If the event thread hit a
8284 single-step breakpoint, unblock it before switching to the
8285 stepping thread. Handle the case of the stepped thread having
8286 advanced already.
8287 (keep_going): Handle the case of the current thread moving past a
8288 single-step breakpoint.
8289
31e77af2
PA
82902014-03-20 Pedro Alves <palves@redhat.com>
8291
8292 PR breakpoints/7143
8293 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
8294 are being stepped over.
8295 (breakpoint_address_match): Make extern.
8296 * breakpoint.h (breakpoint_address_match): New declaration.
8297 * inferior.h (stepping_past_instruction_at): New declaration.
8298 * infrun.c (struct step_over_info): New type.
8299 (step_over_info): New global.
8300 (set_step_over_info, clear_step_over_info)
8301 (stepping_past_instruction_at): New functions.
8302 (handle_inferior_event): Clear the step-over info when
8303 trap_expected is cleared.
8304 (resume): Remove now stale comment.
8305 (clear_proceed_status): Clear step-over info.
8306 (proceed): Adjust step-over handling to set or clear the step-over
8307 info instead of removing all breakpoints.
8308 (handle_signal_stop): When setting up a thread-hop, don't remove
8309 breakpoints here.
8310 (stop_stepping): Clear step-over info.
8311 (keep_going): Adjust step-over handling to set or clear step-over
8312 info and then always inserting breakpoints, instead of removing
8313 all breakpoints when stepping over one.
8314
b9f437de
PA
83152014-03-20 Pedro Alves <palves@redhat.com>
8316
8317 * infrun.c (previous_inferior_ptid): Adjust comment.
8318 (deferred_step_ptid): Delete.
8319 (infrun_thread_ptid_changed, prepare_to_proceed)
8320 (init_wait_for_inferior): Adjust.
8321 (handle_signal_stop): Delete deferred_step_ptid handling.
8322
06c868a8
JK
83232014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
8324
8325 PR gdb/15358
8326 * defs.h (sync_quit_force_run): New declaration.
8327 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
8328 * event-top.c (async_sigterm_handler): New declaration.
8329 (async_sigterm_token): New variable.
8330 (async_init_signals): Create also async_sigterm_token.
8331 (async_sigterm_handler): New function.
8332 (sync_quit_force_run): New variable.
8333 (handle_sigterm): Replace quit_force call by other calls.
8334 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
8335
dea80df0
MR
83362014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
8337
8338 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
8339 offset into SPE pseudo registers.
8340
0c7e1a46
PA
83412014-03-18 Pedro Alves <palves@redhat.com>
8342
8343 PR gdb/13860
8344 * inferior.h (print_stop_event): Declare.
8345 * infrun.c (print_stop_event): New, factored out from ...
8346 (normal_stop): ... this.
8347 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
8348 of bpstat_print/print_stack_frame.
8349
9c1fcd01
TT
83502014-03-17 Tom Tromey <tromey@redhat.com>
8351
8352 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
8353
11aa919a
PMR
83542014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
8355
8356 * ada-lang.c (decode_constrained_packed_array): Perform a
8357 minimal coercion for reference with coerce_ref instead of
8358 ada_coerce_ref.
8359
d4ccb5e0
TG
83602014-03-17 Tristan Gingold <gingold@adacore.com>
8361
8362 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
8363 (darwin_solib_create_inferior_hook): Emit a warning if version
8364 is unhandled.
8365
49840f2a
UW
83662014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
8367
8368 * python/py-value.c (get_field_flag): Cast flag_name argument to
8369 PyObject_GetAttrString to support Python 2.4.
8370
ed4123e5
JK
83712014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8372
8373 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
8374 (Global Maintainers): Remove Jan Kratochvil.
8375
d6b64346
PA
83762014-03-14 Pedro Alves <palves@redhat.com>
8377
8378 * inferior.h (terminal_ours_for_output): Rename to ...
8379 (child_terminal_ours_for_output): ... this.
8380 (terminal_save_ours): Rename to ...
8381 (child_terminal_save_ours): ... this.
8382 (terminal_ours): Rename to ...
8383 (child_terminal_ours): ... this.
8384 (terminal_inferior): Rename to ...
8385 (child_terminal_inferior): ... this.
8386 (terminal_init_inferior): Rename to ...
8387 (child_terminal_init_inferior): ... this.
8388 (terminal_init_inferior_with_pgrp): Rename to ...
8389 (child_terminal_init_inferior_with_pgrp): ... this.
8390 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
8391 (child_terminal_init_with_pgrp): ... this.
8392 (terminal_save_ours): Rename to ...
8393 (child_terminal_save_ours): ... this.
8394 (terminal_init_inferior): Rename to ...
8395 (child_terminal_init): ... this. Adjust.
8396 (terminal_inferior): Rename to ...
8397 (child_terminal_inferior): ... this.
8398 (terminal_ours_for_output): Rename to ...
8399 (child_terminal_ours_for_output): ... this. Adjust.
8400 (terminal_ours): Rename to ...
8401 (child_terminal_ours): ... this.
8402 (terminal_ours_1): Rename to ...
8403 (child_terminal_ours_1): ... this. Adjust.
8404 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
8405 * windows-nat.c (do_initial_windows_stuff): Adjust.
8406 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
8407 (gnu_terminal_init): ... this. Adjust.
8408 (gnu_target): Adjust.
8409 * inf-child.c (inf_child_target): Adjust.
8410
5a1e8c7a
DE
84112014-03-13 Doug Evans <xdje42@gmail.com>
8412
8413 PR guile/16612
8414 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
8415 new eq?-hashtab.
8416
350e1a76
DE
84172014-03-13 Doug Evans <xdje42@gmail.com>
8418
8419 * value.c (record_latest_value): Call release_value_or_incref
8420 instead of release_value.
8421
a69900ae
PA
84222014-03-13 Pedro Alves <palves@redhat.com>
8423
8424 * procfs.c (procfs_target): Don't override to_shortname,
8425 to_longname or to_doc.
8426
5db9f0bd
PA
84272014-03-13 Pedro Alves <palves@redhat.com>
8428
8429 * inf-child.c (inf_child_open, inf_child_target): Don't mention
8430 Unix in user visible strings.
8431
5e3a2c38
SS
84322014-03-12 Stan Shebs <stan@codesourcery.com>
8433
8434 * gdbtypes.h: Annotate comments for Doxygen, add a page
8435 block comment with some general info.
8436
8bc2fe48
PA
84372014-03-12 Pedro Alves <palves@redhat.com>
8438
8439 * infcmd.c (prepare_execution_command): New function, factored out
8440 from several execution commands.
8441 (run_command_1, continue_command, step_1, jump_command)
8442 (signal_command, until_command, advance_command, finish_command)
8443 (attach_command): Use prepare_execution_command.
8444
638c5f49
OJ
84452014-03-12 Omair Javaid <omair.javaid@linaro.org>
8446
8447 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
8448 (MAX_BPTS): Define.
8449 (MAX_WPTS): Define.
8450 (struct arm_linux_thread_points): Removed.
8451 (struct arm_linux_process_info): New.
8452 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
8453 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
8454 (arm_linux_find_breakpoints_by_tid): Removed.
8455 (struct arch_lwp_info): New.
8456 (arm_linux_find_process_pid): New functions.
8457 (arm_linux_add_process): New functions.
8458 (arm_linux_process_info_get): New functions.
8459 (arm_linux_forget_process): New function.
8460 (arm_linux_get_debug_reg_state): New function.
8461 (struct update_registers_data): New.
8462 (update_registers_callback): New function.
8463 (arm_linux_insert_hw_breakpoint1): Updated.
8464 (arm_linux_remove_hw_breakpoint1): Updated.
8465 (arm_linux_insert_hw_breakpoint): Updated.
8466 (arm_linux_remove_hw_breakpoint): Updated.
8467 (arm_linux_insert_watchpoint): Updated.
8468 (arm_linux_remove_watchpoint): Updated.
8469 (arm_linux_new_thread): Updated.
8470 (arm_linux_prepare_to_resume): New function.
8471 (arm_linux_new_fork): New function.
8472 (_initialize_arm_linux_nat): Updated.
8473
6d03af93
PA
84742014-03-12 Pedro Alves <palves@redhat.com>
8475
8476 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
8477
b3ccfe11
TT
84782014-03-12 Tom Tromey <tromey@redhat.com>
8479
8480 * inf-child.c (return_zero): New function.
8481 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
8482 * aix-thread.c (aix_thread_inferior_created): New function.
8483 (aix_thread_attach): Remove.
8484 (init_aix_thread_ops): Don't set to_attach.
8485 (_initialize_aix_thread): Register inferior_created observer.
8486 * corelow.c (init_core_ops): Don't set to_attach or
8487 to_create_inferior.
8488 * exec.c (init_exec_ops): Don't set to_attach or
8489 to_create_inferior.
8490 * infcmd.c (run_command_1): Use find_run_target. Make direct
8491 target calls.
8492 (attach_command): Use find_attach_target. Make direct target
8493 calls.
8494 * record-btrace.c (init_record_btrace_ops): Don't set
8495 to_create_inferior.
8496 * record-full.c (record_full_can_async_p, record_full_is_async_p):
8497 Remove.
8498 (init_record_full_ops, init_record_full_core_ops): Update. Don't
8499 set to_create_inferior.
8500 * target.c (complete_target_initialization): Add assertion.
8501 (target_create_inferior): Remove.
8502 (find_default_attach, find_default_create_inferior): Remove.
8503 (find_attach_target, find_run_target): New functions.
8504 (find_default_is_async_p, find_default_can_async_p)
8505 (target_supports_non_stop, target_attach): Remove.
8506 (init_dummy_target): Don't set to_create_inferior or
8507 to_supports_non_stop.
8508 * target.h (struct target_ops) <to_attach>: Add comment. Remove
8509 TARGET_DEFAULT_FUNC.
8510 <to_create_inferior>: Add comment.
8511 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
8512 TARGET_DEFAULT_RETURN.
8513 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
8514 (find_attach_target, find_run_target): Declare.
8515 (target_create_inferior): Remove.
8516 (target_has_execution_1): Update comment.
8517 (target_supports_non_stop): Remove.
8518 * target-delegates.c: Rebuild.
8519
91f83b02
PA
85202014-03-12 Pedro Alves <palves@redhat.com>
8521
8522 * inf-child.h: Update comment to not mention Unix.
8523
f1aea813
PA
85242014-03-12 Pedro Alves <palves@redhat.com>
8525
8526 * inf-child.c: Update top comment to not mention Unix. Add
8527 generic comment describing how this target is meant to be used.
8528 (inf_child_post_attach, inf_child_post_startup_inferior)
8529 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
8530 Unix in comment.
8531
ee8e9165
PA
85322014-03-12 Pedro Alves <palves@redhat.com>
8533
8534 * nto-procfs.c: Include inf-child.h.
8535 (procfs_ops): Delete global.
8536 (procfs_can_run): Delete method.
8537 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
8538 target pointer instead of referencing procfs_ops.
8539 (procfs_prepare_to_store): Delete.
8540 (init_procfs_ops): Delete function.
8541 (procfs_target): New function, based on init_procfs_ops, but
8542 inherit inf_child_target.
8543 (_initialize_procfs): Use procfs_target.
8544
51a9c8c5
PA
85452014-03-12 Pedro Alves <palves@redhat.com>
8546
8547 * windows-nat.c: Include inf-child.h.
8548 (windows_ops): Delete global.
8549 (windows_open, windows_prepare_to_store, windows_can_run): Delete
8550 methods.
8551 (init_windows_ops): Delete function.
8552 (windows_target): New function, based on init_windows_ops, but
8553 inherit inf_child_target.
8554 (_initialize_windows_nat): Use windows_target. Install x86
8555 specific target methods here.
8556
c1966e26
DE
85572014-03-10 Doug Evans <xdje42@gmail.com>
8558
8559 * guile/guile.c (call_initialize_gdb_module): New function.
8560 (initialize_guile): Replace call to scm_init_guile with call to
8561 scm_with_guile.
8562
023db19c
JB
85632014-03-10 Joel Brobecker <brobecker@adacore.com>
8564
8565 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
8566 in call to TYPE_CODE macro.
8567
5ec18f2b
JG
85682014-03-10 Jerome Guitton <guitton@adacore.com>
8569
8668be63
JB
8570 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
8571 Resolve tagged types to full view.
5ec18f2b 8572
7d03f2eb
HZ
85732014-03-10 Hui Zhu <hui@codesourcery.com>
8574
8575 * target.h (target_insert_breakpoint): Remove "hardware" from its
8576 comments.
8577
c5164cbc
DE
85782014-03-07 Doug Evans <dje@google.com>
8579
8580 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
8581
c4a3fee2
DE
85822014-03-07 Doug Evans <dje@google.com>
8583
8584 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
8585 Remove unused local comp_dir_attr. Assert exactly one of
8586 stub_comp_unit_die, stub_comp_dir is non-NULL.
8587
3156469c
JB
85882014-03-07 Joel Brobecker <brobecker@adacore.com>
8589
8590 * target.h (complete_target_initialization, add_target):
8591 Add comment.
8592
c1a7b7c6
PA
85932014-03-07 Pedro Alves <palves@redhat.com>
8594
8595 * go32-nat.c: Include inf-child.h.
8596 (go32_ops): Delete global.
8597 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
8598 Delete methods.
8599 (go32_create_inferior): Push the passed in target pointer instead
8600 of referencing go32_ops.
8601 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
8602 (go32_target): New function, based on init_go32_ops, but inherit
8603 inf_child_target.
8604 (_initialize_go32_nat): Use go32_target. Move parts of
8605 init_go32_ops here.
8606
d3c1a85f
JB
86072014-03-06 Joel Brobecker <brobecker@adacore.com>
8608
8609 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
8610 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
8611 SYMBOL_VALUE_ADDRESS.
8612 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
8613
5fa1d40e
YQ
86142014-03-06 Yao Qi <yao@codesourcery.com>
8615
8616 * breakpoint.c (get_tracepoint_by_number): Remove argument
8617 optional_p. All callers updated. Adjust comments. Update
8618 output message.
8619 * breakpoint.h (get_tracepoint_by_number): Update declaration.
8620
0c13193f
YQ
86212014-03-06 Yao Qi <yao@codesourcery.com>
8622
8623 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
8624 early if get_number returns zero. Use 'p' instead of 'args'.
8625
2217da06
YQ
86262014-03-06 Yao Qi <yao@codesourcery.com>
8627
8628 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
8629 message.
8630
cc3da688
YQ
86312014-03-06 Yao Qi <yao@codesourcery.com>
8632
8633 PR breakpoints/16508
8634 * tracepoint.c (check_trace_running): New function.
8635 (trace_find_command): Move code to check_trace_running and
8636 call check_trace_running.
8637 (trace_find_pc_command): Likewise.
8638 (trace_find_tracepoint_command): Likewise.
8639 (trace_find_line_command): Likewise.
8640 (trace_find_range_command): Likewise.
8641 * tracepoint.h (check_trace_running): Likewise.
8642 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
8643
6a5f844b
YQ
86442014-03-06 Yao Qi <yao@codesourcery.com>
8645
8646 * target.h (struct target_ops) <to_traceframe_info>: Use
8647 TARGET_DEFAULT_NORETURN (tcomplain ()).
8648 * target-delegates.c: Regenerated.
8649
0f26cec1
PA
86502014-03-05 Pedro Alves <palves@redhat.com>
8651
8652 PR gdb/16575
8653 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
8654 void. Update comment.
8655 (dcache_xfer_memory): Delete.
8656 (dcache_read_memory_partial): New, based on the read bits of
8657 dcache_xfer_memory.
8658 (dcache_update): Add status parameter. Use ULONGEST for len, and
8659 adjust. Discard cache lines if the reason for the update was
8660 error.
8661 * dcache.h (dcache_xfer_memory): Delete declaration.
8662 (dcache_read_memory_partial): New declaration.
8663 (dcache_update): Update prototype.
8664 * target.c (raw_memory_xfer_partial): Update the dcache here.
8665 (memory_xfer_partial_1): Don't handle dcache writes here.
8666
b2b255bd
MF
86672014-03-05 Mike Frysinger <vapier@gentoo.org>
8668
8669 * remote-sim.c (gdbsim_load): Add const to prog.
8670
5d9cf8a4
TT
86712014-03-03 Tom Tromey <tromey@redhat.com>
8672
8673 * elfread.c (probe_key): Change to bfd_data.
8674 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
8675 now per-BFD, not per-objfile.
8676 * stap-probe.c (stap_probe_destroy): Update comment.
8677 (handle_stap_probe): Allocate on the per-BFD obstack.
8678
729662a5
TT
86792014-03-03 Tom Tromey <tromey@redhat.com>
8680
8681 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
8682 * breakpoint.c (create_longjmp_master_breakpoint): Use
8683 get_probe_address.
8684 (add_location_to_breakpoint, bkpt_probe_insert_location)
8685 (bkpt_probe_remove_location): Update.
8686 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
8687 * elfread.c (elf_symfile_relocate_probe): Remove.
8688 (elf_probe_fns): Update.
8689 (insert_exception_resume_breakpoint): Change type of "probe"
8690 parameter to bound_probe.
8691 (check_exception_resume): Update.
8692 * objfiles.c (objfile_relocate1): Don't relocate probes.
8693 * probe.c (bound_probe_s): New typedef.
8694 (parse_probes): Use get_probe_address. Set sal's objfile.
8695 (find_probe_by_pc): Return a bound_probe.
8696 (collect_probes): Return a VEC(bound_probe_s).
8697 (compare_probes): Update.
8698 (gen_ui_out_table_header_info): Change type of "probes"
8699 parameter. Update.
8700 (info_probes_for_ops): Update.
8701 (get_probe_address): New function.
8702 (probe_safe_evaluate_at_pc): Update.
8703 * probe.h (struct probe_ops) <get_probe_address>: New field.
8704 <set_semaphore, clear_semaphore>: Add objfile parameter.
8705 (struct probe) <objfile>: Remove field.
8706 <arch>: New field.
8707 <address>: Update comment.
8708 (struct bound_probe): New.
8709 (find_probe_by_pc): Return a bound_probe.
8710 (get_probe_address): Declare.
8711 * solib-svr4.c (struct probe_and_action) <address>: New field.
8712 (hash_probe_and_action, equal_probe_and_action): Update.
8713 (register_solib_event_probe): Add address parameter.
8714 (solib_event_probe_at): Update.
8715 (svr4_create_probe_breakpoints): Add objfile parameter. Use
8716 get_probe_address.
8717 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
8718 (stap_get_probe_address): New function.
8719 (stap_can_evaluate_probe_arguments, compute_probe_arg)
8720 (compile_probe_arg): Update.
8721 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
8722 address.
8723 (handle_stap_probe): Don't relocate the probe.
8724 (stap_relocate): Remove.
8725 (stap_gen_info_probes_table_values): Update.
8726 (stap_probe_ops): Remove stap_relocate.
8727 * symfile-debug.c (debug_sym_relocate_probe): Remove.
8728 (debug_sym_probe_fns): Update.
8729 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
8730 * symtab.c (init_sal): Use memset.
8731 * symtab.h (struct symtab_and_line) <objfile>: New field.
8732 * tracepoint.c (start_tracing, stop_tracing): Update.
8733
ff887920
TT
87342014-03-03 Tom Tromey <tromey@redhat.com>
8735
8736 * probe.h (parse_probes, find_probe_by_pc)
8737 (find_probes_in_objfile): Fix comments.
8738
f0407826
DE
87392014-03-02 Doug Evans <xdje42@gmail.com>
8740
8741 * infrun.c (handle_signal_stop): Replace test for
8742 TARGET_WAITKIND_STOPPED with an assert.
8743
35e6a711
DE
87442014-03-02 Doug Evans <xdje42@gmail.com>
8745
8746 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
8747
667f9d0b
DE
87482014-03-02 Doug Evans <xdje42@gmail.com>
8749
8750 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
8751
dc92ace0
MK
87522014-03-01 Mark Kettenis <kettenis@gnu.org>
8753
8754 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
8755
a900370f
MK
87562014-03-01 Mark Kettenis <kettenis@gnu.org>
8757
8758 * i386obsd-nat.c: Include "obsd-nat.h".
8759 (_initialize_i386obsd_nat): Call obsd_add_target instead of
8760 add_target.
8761 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8762
b72a7981
MK
87632014-03-01 Mark Kettenis <kettenis@gnu.org>
8764
8765 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
8766
96c70aba
MK
87672014-03-01 Mark Kettenis <kettenis@gnu.org>
8768
8769 * mips64obsd-nat.c: Include "obsd-nath".
8770 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
8771 add_target
8772 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8773
874a80af
MK
87742014-03-01 Mark Kettenis <kettenis@gnu.org>
8775
8fd408f1
MK
8776 * amd64obsd-nat.c: Include "obsd-nat,h.
8777 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
8778 add_target.
874a80af
MK
8779 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8780
9cf95373
SC
87812014-02-28 Siva Chandra Reddy <sivachandra@google.com>
8782
8783 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
8784 (find_overload_match): Update call to find_oload_champ.
8785 (find_oload_champ_namespace_loop): Likewise
8786
863e4da4
MK
87872014-02-28 Mark Kettenis <kettenis@gnu.org>
8788
025cac40
MK
8789 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
8790
1ed586ce
MK
8791 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
8792 * config/sparc/obsd64.mh: New file.
8793 * sparc64obsd-nat.c: New file.
8794
863e4da4
MK
8795 * obsd-nat.h: New file.
8796 * obsd-nat.c: New file.
8797 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
8798 (ALLDEPFILES): Add obsd-nat.c.
8799
89de4da4
TT
88002014-02-28 Tom Tromey <tromey@redhat.com>
8801
8802 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
8803 * cli-out.h (cli_ui_out_impl): Now const.
8804 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
8805 * ui-out.c (struct ui_out) <impl>: Now const.
8806 (default_ui_out_impl): Now const.
8807 (ui_out_new): Make 'impl' parameter const.
8808 * ui-out.h (ui_out_new): Update.
8809
c725e7b6
MK
88102014-02-27 Mark Kettenis <kettenis@gnu.org>
8811
8812 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
8813
670b46b3
MK
88142014-02-27 Mark Kettenis <kettenis@gnu.org>
8815
8816 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
8817
c91550fc
JK
88182014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
8819
8820 Additional PR 8882 fix.
8821 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
8822
2fa0369e
PA
88232014-02-27 Pedro Alves <palves@redhat.com>
8824
8825 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
8826 isn't set.
8827
d632a097
PA
88282014-02-27 Pedro Alves <palves@redhat.com>
8829
8830 PR 12702
8831 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
8832 * nat/linux-waitpid.c: Include string.h.
8833 (status_to_str): Moved here and made extern.
8834 * nat/linux-waitpid.h (status_to_str): New declaration.
8835
2ebd5a35
HZ
88362014-02-27 Hui Zhu <hui@codesourcery.com>
8837
8838 PR 12702
8839 * infrun.c (ptid_match): Move ...
8840 * common/ptid.c (ptid_match): ... here.
8841 * inferior.h (ptid_match): Move ...
8842 * common/ptid.h (ptid_match): ... here.
8843
3cdd631f
MK
88442014-02-27 Mark Kettenis <kettenis@gnu.org>
8845
8846 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
8847 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
8848 gdb_target_obs.
8849
bee30a64
MK
88502014-02-27 Mark Kettenis <kettenis@gnu.org>
8851
8852 * obsd-tdep.c (obsd_auxv_parse): New function.
8853 (obsd_init_abi): Set auxv_parse.
27a48a92
MK
8854
8855 * gdbarch.sh (auxv_parse): New.
8856 * gdbarch.h: Regenerated.
8857 * gdbarch.c: Regenerated.
8858 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
8859
7a5a839f
LC
88602014-02-26 Ludovic Courtès <ludo@gnu.org>
8861
8862 * guile/scm-value.c (gdbscm_history_append_x): New function.
8863 (value_functions): Add it.
8864
31aa7e4e
JB
88652014-02-27 Joel Brobecker <brobecker@adacore.com>
8866
8867 * dwarf2read.c (attr_value_as_address): New function.
8868 (dwarf2_find_base_address, read_call_site_scope): Use
8869 attr_value_as_address in place of DW_ADDR.
8870 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
8871 the low and high addresses. Slight rework of the handling
8872 of the high pc being a constant form, and limit it to
8873 DWARF verson 4 or higher.
8874 (dwarf2_record_block_ranges): Likewise.
8875 (read_partial_die): Likewise.
8876 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
8877
9b333ba3
TT
88782014-02-26 Tom Tromey <tromey@redhat.com>
8879
8880 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
8881
5f6cac40
TT
88822014-02-26 Tom Tromey <tromey@redhat.com>
8883
8884 * elfread.c (elf_read_minimal_symbols): Return early if
8885 minimal symbols have already been read. Add "ei" parameter.
8886 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
8887 * minsyms.c (prim_record_minimal_symbol_full): Update.
8888 * objfiles.h (struct objstats) <n_minsyms>: Move...
8889 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
8890 * symmisc.c (print_objfile_statistics): Update.
8891
2750ef27
TT
88922014-02-26 Tom Tromey <tromey@redhat.com>
8893
8894 * elfread.c (elf_read_minimal_symbols): New function, from
8895 elf_symfile_read.
8896 (elf_symfile_read): Call it.
8897
34643a32
TT
88982014-02-26 Tom Tromey <tromey@redhat.com>
8899
8900 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
8901 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
8902 (lookup_minimal_symbol_solib_trampoline)
8903 (lookup_minimal_symbol_by_pc_section_1)
8904 (lookup_minimal_symbol_and_objfile): Update.
8905 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
8906 Don't allocate a minimal symbol if minsyms have already been read.
8907 (build_minimal_symbol_hash_tables): Update.
8908 (install_minimal_symbols): Do nothing if minsyms already read.
8909 Use the per-BFD obstack.
8910 (terminate_minimal_symbol_table): Use the per-BFD obstack.
8911 * objfiles.c (allocate_objfile): Call
8912 terminate_minimal_symbol_table later.
8913 (have_minimal_symbols): Update.
8914 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
8915 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
8916 Move from struct objfile.
8917 <minsyms_read>: New field.
8918 (struct objfile) <msymbols, minimal_symbol_count,
8919 msymbol_hash, msymbol_demangled_hash>: Move.
8920 (ALL_OBJFILE_MSYMBOLS): Update.
8921 * symfile.c (read_symbols): Set minsyms_read.
8922 (reread_symbols): Update.
8923 * symmisc.c (dump_objfile, dump_msymbols): Update.
8924
2273f0ac
TT
89252014-02-26 Tom Tromey <tromey@redhat.com>
8926
8927 * minsyms.c (msymbols_sort): Remove.
8928 * minsyms.h (msymbols_sort): Remove.
8929 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
8930 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
8931 * elfread.c (elf_symtab_read): Don't add section offsets.
8932 * xcoffread.c (record_minimal_symbol): Don't add section offset
8933 to minimal symbol address.
8934 * somread.c (text_offset, data_offset): Remove.
8935 (som_symtab_read): Don't add section offsets to minimal symbol
8936 addresses.
8937 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
8938 Don't add section offsets to minimal symbols.
8939 * coffread.c (coff_symtab_read): Don't add section offsets
8940 to minimal symbol addresses.
8941 * machoread.c (macho_symtab_add_minsym): Don't add section offset
8942 to minimal symbol addresses.
8943 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
8944 section offset to minimal symbol addresses.
8945 * mdebugread.c (parse_partial_symbols): Don't add section
8946 offset to minimal symbol addresses.
8947 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
8948 offset to minimal symbol addresses.
8949
77e371c0
TT
89502014-02-26 Tom Tromey <tromey@redhat.com>
8951
8952 * ada-lang.c (ada_main_name): Update.
8953 (ada_add_standard_exceptions): Update.
8954 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
8955 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8956 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
8957 * auxv.c (ld_so_xfer_auxv): Update.
8958 * avr-tdep.c (avr_scan_prologue): Update.
8959 * ax-gdb.c (gen_var_ref): Update.
8960 * blockframe.c (get_pc_function_start)
8961 (find_pc_partial_function_gnu_ifunc): Update.
8962 * breakpoint.c (create_overlay_event_breakpoint)
8963 (create_longjmp_master_breakpoint)
8964 (create_std_terminate_master_breakpoint)
8965 (create_exception_master_breakpoint): Update.
8966 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8967 * c-valprint.c (c_val_print): Update.
8968 * coff-pe-read.c (add_pe_forwarded_sym): Update.
8969 * common/agent.c (agent_look_up_symbols): Update.
8970 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
8971 * dwarf2loc.c (call_site_to_target_addr): Update.
8972 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
8973 * elfread.c (elf_gnu_ifunc_record_cache)
8974 (elf_gnu_ifunc_resolve_by_got): Update.
8975 * findvar.c (default_read_var_value): Update.
8976 * frame.c (inside_main_func): Update.
8977 * frv-tdep.c (frv_frame_this_id): Update.
8978 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8979 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
8980 Update.
8981 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
8982 (hppa_hpux_find_dummy_bpaddr): Update.
8983 * hppa-tdep.c (hppa_symbol_address): Update.
8984 * infcmd.c (until_next_command): Update.
8985 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
8986 Update.
8987 * linespec.c (minsym_found, add_minsym): Update.
8988 * linux-nat.c (get_signo): Update.
8989 * linux-thread-db.c (inferior_has_bug): Update.
8990 * m32c-tdep.c (m32c_return_value)
8991 (m32c_m16c_address_to_pointer): Update.
8992 * m32r-tdep.c (m32r_frame_this_id): Update.
8993 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8994 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8995 * maint.c (maintenance_translate_address): Update.
8996 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
8997 (frob_address): New function.
8998 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
8999 frob_address. Rename parameter to "pc_in".
9000 (compare_minimal_symbols, compact_minimal_symbols): Use raw
9001 addresses.
9002 (find_solib_trampoline_target, minimal_symbol_upper_bound):
9003 Update.
9004 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9005 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
9006 * objc-lang.c (find_objc_msgsend): Update.
9007 * objfiles.c (objfile_relocate1): Update.
9008 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9009 * p-valprint.c (pascal_val_print): Update.
9010 * parse.c (write_exp_msymbol): Update.
9011 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
9012 (ppc_elfv2_skip_entrypoint): Update.
9013 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9014 * printcmd.c (build_address_symbolic, msym_info)
9015 (address_info): Update.
9016 * proc-service.c (ps_pglobal_lookup): Update.
9017 * psymtab.c (find_pc_sect_psymtab_closer)
9018 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
9019 Change msymbol parameter to bound_minimal_symbol.
9020 * ravenscar-thread.c (get_running_thread_id): Update.
9021 * remote.c (remote_check_symbols): Update.
9022 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
9023 address.
9024 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9025 * solib-dsbt.c (lm_base): Update.
9026 * solib-frv.c (lm_base, main_got): Update.
9027 * solib-irix.c (locate_base): Update.
9028 * solib-som.c (som_solib_create_inferior_hook)
9029 (link_map_start): Update.
9030 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
9031 * solib-svr4.c (elf_locate_base, enable_break): Update.
9032 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
9033 (flush_ea_cache): Update.
9034 * stabsread.c (define_symbol, scan_file_globals): Update.
9035 * stack.c (find_frame_funname): Update.
9036 * symfile-debug.c (debug_qf_expand_symtabs_matching)
9037 (debug_qf_find_pc_sect_symtab): Update.
9038 * symfile.c (simple_read_overlay_table)
9039 (simple_overlay_update): Update.
9040 * symfile.h (struct quick_symbol_functions)
9041 <find_pc_sect_symtab>: Change type of msymbol to
9042 bound_minimal_symbol.
9043 * symmisc.c (dump_msymbols): Update.
9044 * symtab.c (find_pc_sect_symtab_via_partial)
9045 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
9046 (search_symbols, print_msymbol_info): Update.
9047 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
9048 (MSYMBOL_VALUE_ADDRESS): Redefine.
9049 (BMSYMBOL_VALUE_ADDRESS): New macro.
9050 * tracepoint.c (scope_info): Update.
9051 * tui/tui-disasm.c (tui_find_disassembly_address)
9052 (tui_get_begin_asm_address): Update.
9053 * valops.c (find_function_in_inferior): Update.
9054 * value.c (value_static_field, value_fn_field): Update.
9055
3b7344d5
TT
90562014-02-26 Tom Tromey <tromey@redhat.com>
9057
9058 * ada-lang.c (ada_update_initial_language): Update.
9059 (ada_main_name, ada_has_this_exception_support): Update.
9060 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
9061 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9062 * arm-tdep.c (arm_skip_stub): Update.
9063 * auxv.c (ld_so_xfer_auxv): Update.
9064 * avr-tdep.c (avr_scan_prologue): Update.
9065 * ax-gdb.c (gen_var_ref): Update.
9066 * breakpoint.c (struct breakpoint_objfile_data)
9067 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
9068 type to bound_minimal_symbol.
9069 (create_overlay_event_breakpoint)
9070 (create_longjmp_master_breakpoint)
9071 (create_std_terminate_master_breakpoint)
9072 (create_exception_master_breakpoint): Update.
9073 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9074 * c-exp.y (classify_name): Update.
9075 * coffread.c (coff_symfile_read): Update.
9076 * common/agent.c (agent_look_up_symbols): Update.
9077 * d-lang.c (d_main_name): Update.
9078 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
9079 * dec-thread.c (enable_dec_thread): Update.
9080 * dwarf2loc.c (call_site_to_target_addr): Update.
9081 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
9082 * eval.c (evaluate_subexp_standard): Update.
9083 * findvar.c (struct minsym_lookup_data) <result>: Change type
9084 to bound_minimal_symbol.
9085 <objfile>: Remove.
9086 (minsym_lookup_iterator_cb, default_read_var_value): Update.
9087 * frame.c (inside_main_func): Update.
9088 * frv-tdep.c (frv_frame_this_id): Update.
9089 * gcore.c (call_target_sbrk): Update.
9090 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9091 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
9092 Update.
9093 * go-lang.c (go_main_name): Update.
9094 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
9095 (hppa_hpux_find_import_stub_for_addr): Update.
9096 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
9097 Update. Change return type.
9098 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
9099 type.
9100 * jit.c (jit_breakpoint_re_set_internal): Update.
9101 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
9102 Update.
9103 * linux-nat.c (get_signo): Update.
9104 * linux-thread-db.c (inferior_has_bug): Update
9105 * m32c-tdep.c (m32c_return_value)
9106 (m32c_m16c_address_to_pointer): Update.
9107 * m32r-tdep.c (m32r_frame_this_id): Update.
9108 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9109 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9110 * minsyms.c (lookup_minimal_symbol_internal): Rename to
9111 lookup_minimal_symbol. Change return type.
9112 (lookup_minimal_symbol): Remove.
9113 (lookup_bound_minimal_symbol): Update.
9114 (lookup_minimal_symbol_text): Change return type.
9115 (lookup_minimal_symbol_solib_trampoline): Change return type.
9116 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
9117 (lookup_minimal_symbol_solib_trampoline): Change return type.
9118 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9119 * objc-lang.c (lookup_objc_class, lookup_child_selector)
9120 (value_nsstring, find_imps): Update.
9121 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9122 * p-lang.c (pascal_main_name): Update.
9123 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
9124 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9125 * proc-service.c (ps_pglobal_lookup): Update.
9126 * ravenscar-thread.c (get_running_thread_msymbol): Change
9127 return type.
9128 (has_ravenscar_runtime, get_running_thread_id): Update.
9129 * remote.c (remote_check_symbols): Update.
9130 * sol-thread.c (ps_pglobal_lookup): Update.
9131 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9132 * solib-dsbt.c (lm_base): Update.
9133 * solib-frv.c (lm_base, frv_relocate_section_addresses):
9134 Update.
9135 * solib-irix.c (locate_base): Update.
9136 * solib-som.c (som_solib_create_inferior_hook)
9137 (som_solib_desire_dynamic_linker_symbols, link_map_start):
9138 Update.
9139 * solib-spu.c (spu_enable_break): Update.
9140 * solib-svr4.c (elf_locate_base, enable_break): Update.
9141 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
9142 (flush_ea_cache): Update.
9143 * stabsread.c (define_symbol): Update.
9144 * symfile.c (simple_read_overlay_table): Update.
9145 * symtab.c (find_pc_sect_line): Update.
9146 * tracepoint.c (scope_info): Update.
9147 * tui-disasm.c (tui_get_begin_asm_address): Update.
9148 * value.c (value_static_field): Update.
9149
40c1a007
TT
91502014-02-26 Tom Tromey <tromey@redhat.com>
9151
9152 * minsyms.c (prim_record_minimal_symbol_full): Use
9153 SET_MSYMBOL_VALUE_ADDRESS.
9154 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
9155 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
9156 SET_MSYMBOL_VALUE_ADDRESS.
9157 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
9158 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
9159
efd66ac6
TT
91602014-02-26 Tom Tromey <tromey@redhat.com>
9161
9162 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
9163 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
9164 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
9165 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
9166 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
9167 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
9168 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
9169 * ada-lang.c (ada_main_name): Update.
9170 (ada_lookup_simple_minsym): Update.
9171 (ada_make_symbol_completion_list): Update.
9172 (ada_add_standard_exceptions): Update.
9173 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
9174 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9175 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
9176 * arm-tdep.c (skip_prologue_function): Update.
9177 (arm_skip_stack_protector, arm_skip_stub): Update.
9178 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
9179 (arm_wince_skip_main_prologue): Update.
9180 * auxv.c (ld_so_xfer_auxv): Update.
9181 * avr-tdep.c (avr_scan_prologue): Update.
9182 * ax-gdb.c (gen_var_ref): Update.
9183 * block.c (call_site_for_pc): Update.
9184 * blockframe.c (get_pc_function_start): Update.
9185 (find_pc_partial_function_gnu_ifunc): Update.
9186 * breakpoint.c (create_overlay_event_breakpoint): Update.
9187 (create_longjmp_master_breakpoint): Update.
9188 (create_std_terminate_master_breakpoint): Update.
9189 (create_exception_master_breakpoint): Update.
9190 (resolve_sal_pc): Update.
9191 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9192 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
9193 Update.
9194 * c-valprint.c (c_val_print): Update.
9195 * coff-pe-read.c (add_pe_forwarded_sym): Update.
9196 * coffread.c (coff_symfile_read): Update.
9197 * common/agent.c (agent_look_up_symbols): Update.
9198 * dbxread.c (find_stab_function_addr): Update.
9199 (end_psymtab): Update.
9200 * dwarf2loc.c (call_site_to_target_addr): Update.
9201 (func_verify_no_selftailcall): Update.
9202 (tailcall_dump): Update.
9203 (call_site_find_chain_1): Update.
9204 (dwarf_expr_reg_to_entry_parameter): Update.
9205 * elfread.c (elf_gnu_ifunc_record_cache): Update.
9206 (elf_gnu_ifunc_resolve_by_got): Update.
9207 * f-valprint.c (info_common_command): Update.
9208 * findvar.c (read_var_value): Update.
9209 * frame.c (get_prev_frame_1): Update.
9210 (inside_main_func): Update.
9211 * frv-tdep.c (frv_skip_main_prologue): Update.
9212 (frv_frame_this_id): Update.
9213 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9214 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
9215 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
9216 (gnuv3_skip_trampoline): Update.
9217 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
9218 (hppa64_hpux_in_solib_call_trampoline): Update.
9219 (hppa_hpux_skip_trampoline_code): Update.
9220 (hppa64_hpux_search_dummy_call_sequence): Update.
9221 (hppa_hpux_find_import_stub_for_addr): Update.
9222 (hppa_hpux_find_dummy_bpaddr): Update.
9223 * hppa-tdep.c (hppa_symbol_address)
9224 (hppa_lookup_stub_minimal_symbol): Update.
9225 * i386-tdep.c (i386_skip_main_prologue): Update.
9226 (i386_pe_skip_trampoline_code): Update.
9227 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
9228 * infcall.c (get_function_name): Update.
9229 * infcmd.c (until_next_command): Update.
9230 * jit.c (jit_breakpoint_re_set_internal): Update.
9231 (jit_inferior_init): Update.
9232 * linespec.c (minsym_found): Update.
9233 (add_minsym): Update.
9234 * linux-fork.c (info_checkpoints_command): Update.
9235 * linux-nat.c (get_signo): Update.
9236 * linux-thread-db.c (inferior_has_bug): Update.
9237 * m32c-tdep.c (m32c_return_value): Update.
9238 (m32c_m16c_address_to_pointer): Update.
9239 (m32c_m16c_pointer_to_address): Update.
9240 * m32r-tdep.c (m32r_frame_this_id): Update.
9241 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9242 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9243 * maint.c (maintenance_translate_address): Update.
9244 * minsyms.c (add_minsym_to_hash_table): Update.
9245 (add_minsym_to_demangled_hash_table): Update.
9246 (msymbol_objfile): Update.
9247 (lookup_minimal_symbol): Update.
9248 (iterate_over_minimal_symbols): Update.
9249 (lookup_minimal_symbol_text): Update.
9250 (lookup_minimal_symbol_by_pc_name): Update.
9251 (lookup_minimal_symbol_solib_trampoline): Update.
9252 (lookup_minimal_symbol_by_pc_section_1): Update.
9253 (lookup_minimal_symbol_and_objfile): Update.
9254 (prim_record_minimal_symbol_full): Update.
9255 (compare_minimal_symbols): Update.
9256 (compact_minimal_symbols): Update.
9257 (build_minimal_symbol_hash_tables): Update.
9258 (install_minimal_symbols): Update.
9259 (terminate_minimal_symbol_table): Update.
9260 (find_solib_trampoline_target): Update.
9261 (minimal_symbol_upper_bound): Update.
9262 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9263 * mips-tdep.c (mips_stub_frame_sniffer): Update.
9264 (mips_skip_pic_trampoline_code): Update.
9265 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
9266 * objc-lang.c (selectors_info): Update.
9267 (classes_info): Update.
9268 (find_methods): Update.
9269 (find_imps): Update.
9270 (find_objc_msgsend): Update.
9271 * objfiles.c (objfile_relocate1): Update.
9272 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
9273 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9274 * p-valprint.c (pascal_val_print): Update.
9275 * parse.c (write_exp_msymbol): Update.
9276 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
9277 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
9278 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9279 * printcmd.c (build_address_symbolic): Update.
9280 (sym_info): Update.
9281 (address_info): Update.
9282 * proc-service.c (ps_pglobal_lookup): Update.
9283 * psymtab.c (find_pc_sect_psymtab_closer): Update.
9284 (find_pc_sect_psymtab): Update.
9285 * python/py-framefilter.c (py_print_frame): Update.
9286 * ravenscar-thread.c (get_running_thread_id): Update.
9287 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
9288 Update.
9289 * remote.c (remote_check_symbols): Update.
9290 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
9291 (rs6000_skip_trampoline_code): Update.
9292 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
9293 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9294 * solib-dsbt.c (lm_base): Update.
9295 * solib-frv.c (lm_base): Update.
9296 (main_got): Update.
9297 * solib-irix.c (locate_base): Update.
9298 * solib-som.c (som_solib_create_inferior_hook): Update.
9299 (som_solib_desire_dynamic_linker_symbols): Update.
9300 (link_map_start): Update.
9301 * solib-spu.c (spu_enable_break): Update.
9302 (ocl_enable_break): Update.
9303 * solib-svr4.c (elf_locate_base): Update.
9304 (enable_break): Update.
9305 * spu-tdep.c (spu_get_overlay_table): Update.
9306 (spu_catch_start): Update.
9307 (flush_ea_cache): Update.
9308 * stabsread.c (define_symbol): Update.
9309 (scan_file_globals): Update.
9310 * stack.c (find_frame_funname): Update.
9311 (frame_info): Update.
9312 * symfile.c (simple_read_overlay_table): Update.
9313 (simple_overlay_update): Update.
9314 * symmisc.c (dump_msymbols): Update.
9315 * symtab.c (fixup_section): Update.
9316 (find_pc_sect_line): Update.
9317 (skip_prologue_sal): Update.
9318 (search_symbols): Update.
9319 (print_msymbol_info): Update.
9320 (rbreak_command): Update.
9321 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
9322 (completion_list_objc_symbol): Update.
9323 (default_make_symbol_completion_list_break_on): Update.
9324 * tracepoint.c (scope_info): Update.
9325 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
9326 (tui_get_begin_asm_address): Update.
9327 * valops.c (find_function_in_inferior): Update.
9328 * value.c (value_static_field): Update.
9329 (value_fn_field): Update.
9330
50e65b17
TT
93312014-02-26 Tom Tromey <tromey@redhat.com>
9332
9333 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
9334 bound minimal symbols. Move code that knows about minsym
9335 table layout...
9336 * minsyms.c (minimal_symbol_upper_bound): ... here. New
9337 function.
9338 * minsyms.h (minimal_symbol_upper_bound): Declare.
9339 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
9340 minimal_symbol_upper_bound.
9341
1b588015
JB
93422014-02-27 Joel Brobecker <brobecker@adacore.com>
9343
9344 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
9345 Use the type's name if its basic type does not have a tag.
9346
dbb9c2b1
JB
93472014-02-27 Joel Brobecker <brobecker@adacore.com>
9348
9349 * dwarf2read.c (read_subrange_type): Add comment.
9350
55426c9d
JB
93512014-02-27 Joel Brobecker <brobecker@adacore.com>
9352
9353 * dwarf2read.c (update_enumeration_type_from_children): New
9354 function, mostly extracted from process_structure_scope.
9355 (read_enumeration_type): Call update_enumeration_type_from_children.
9356 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
9357 and flag_flag_enum fields.
9358
f2fce0ca
PA
93592014-02-26 Pedro Alves <palves@redhat.com>
9360
9361 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
9362 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
9363 to_xfer_partial method.
9364
7a44e40e
PA
93652014-02-26 Pedro Alves <palves@redhat.com>
9366
9367 * target.c (complete_target_initialization): Don't install
9368 default_xfer_partial as to_xfer_partial hook.
9369 (nomemory): Delete.
9370 (update_current_target): Don't INHERIT nor de_fault
9371 deprecated_xfer_memory. Delete de_fault macro.
9372 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
9373 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
9374 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
9375 field.
9376
bd265cd0
PA
93772014-02-26 Pedro Alves <palves@redhat.com>
9378
9379 * go32-nat.c (my_write_child): New function.
9380 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
9381 (go32_xfer_partial): New function.
9382 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
9383 Instead install a to_xfer_partial hook.
9384
9d46c4e5
PA
93852014-02-26 Pedro Alves <palves@redhat.com>
9386
9387 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
9388 to_xfer_partial helper. Rewrite.
9389 (procfs_xfer_partial): New function.
9390 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
9391 Install a to_xfer_partial hook.
9392
a1583b1f
PA
93932014-02-26 Pedro Alves <palves@redhat.com>
9394
9395 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
9396 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
9397 (m32r_xfer_partial): New function.
9398 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
9399 Install a to_xfer_partial hook.
9400
6df1b29f
PA
94012014-02-26 Pedro Alves <palves@redhat.com>
9402
9403 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
9404 helper.
9405 (mips_xfer_partial): New function.
9406 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
9407 hook. Install a to_xfer_partial hook.
9408
dc53a7ad
JB
94092014-02-26 Joel Brobecker <brobecker@adacore.com>
9410
9411 * gdbtypes.h (create_array_type_with_stride): Add declaration.
9412 * gdbtypes.c (create_array_type_with_stride): New function,
9413 renaming create_array_type, but with an added parameter
9414 called "bit_stride".
9415 (create_array_type): Re-implement using
9416 create_array_type_with_stride.
9417 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
9418 and DW_AT_bit_stride attributes.
9419
12ab52e9
PA
94202014-02-26 Pedro Alves <palves@redhat.com>
9421
9422 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
9423 task-specific breakpoints.
9424
d16461ae
PA
94252014-02-25 Pedro Alves <palves@redhat.com>
9426
9427 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
9428 handling of object == TARGET_OBJECT_UNWIND_TABLE.
9429
a8b16220
SS
94302014-02-25 Stan Shebs <stan@codesourcery.com>
9431
9432 * defs.h: Annotate comments for Doxygen.
9433
b9e795ee
TT
94342014-02-25 Tom Tromey <tromey@redhat.com>
9435
9436 * target.h (target_ignore): Don't declare.
9437 * target.c (target_ignore): Remove.
9438
849c862e
JK
94392014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
9440
9441 PR gdb/16626
9442 * auto-load.c (auto_load_objfile_script_1): Change filename to
9443 debugfile.
9444
475109d8
JB
94452014-02-25 Joel Brobecker <brobecker@adacore.com>
9446
9447 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
9448 documentation. Adjust prototype to match the target_ops
9449 to_xfer_partial method. Adjust implementation accordingly.
9450
e186c3bd
HZ
94512014-02-25 Hui Zhu <hui@codesourcery.com>
9452
9453 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
9454 to_traceframe_info.
9455
6d451942
KB
94562014-02-25 Kevin Buettner <kevinb@redhat.com>
9457
041ab8b4 9458 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
6d451942
KB
9459 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
9460 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
9461 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
9462 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
9463 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
9464 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
9465 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
9466 New constants.
9467 (rl78_register_type): Use a data pointer type for SP and
9468 new pseudo registers mentioned above. Use a 16 bit integer
9469 type for all other register pairs.
9470 (rl78_register_name, rl78_g10_register_name): Update for
9471 new pseudo registers.
9472 (rl78_pseudo_register_read): Likewise.
9473 (rl78_pseudo_register_write): Likewise.
9474 (rl78_dwarf_reg_to_regnum): Return register numbers representing
9475 to the newly added pseudo registers.
9476
eddf0bae
DE
94772014-02-24 Doug Evans <dje@google.com>
9478
9479 * value.c (record_latest_value): Fix comment.
9480 * printcmd.c (print_command_1): Remove code to handle -1 return from
9481 record_latest_value.
9482
e96027e0
PA
94832014-02-24 Pedro Alves <palves@redhat.com>
9484
9485 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
9486 deprecated_xfer_memory hook.
9487 (procfs_xfer_partial): Call procfs_xfer_memory instead
9488 of the deprecated_xfer_memory target hook.
9489 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
9490 helper.
9491
0837c976
YZ
94922014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
9493
9494 * windows-nat.c (windows_xfer_shared_libraries): Return
9495 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
9496 requested object is TARGET_OBJECT_LIBRARIES.
9497
bc113b4e
YQ
94982014-02-24 Yao Qi <yao@codesourcery.com>
9499
9500 * target.h (enum target_xfer_status)
9501 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
9502 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
9503 explicitly. New.
9504 * corefile.c (memory_error_message): User updated.
9505 * exec.c (section_table_read_available_memory): Likewise.
9506 * record-btrace.c (record_btrace_xfer_partial): Likewise.
9507 * target.c (target_xfer_status_to_string): Likewise.
9508 (raw_memory_xfer_partial): Likewise.
9509 (memory_xfer_partial_1, target_xfer_partial): Likewise.
9510 * valops.c (read_value_memory): Likewise.
9511 * exec.h: Update comments.
9512
01cb8804
YQ
95132014-02-24 Yao Qi <yao@codesourcery.com>
9514
9515 * target.c (target_xfer_status_to_string): Rename argument err
9516 to status.
9517 * target.h (target_xfer_status_to_string): Update declaration.
9518 Replace target_xfer_error_to_string with
9519 target_xfer_status_to_string in comment.
9520
93063aa6
YQ
95212014-02-24 Yao Qi <yao@codesourcery.com>
9522
9523 * mips-linux-nat.c (super_close): Update its type.
9524 (mips_linux_close): Pass 'self' to super_close.
9525
5c328c05
YQ
95262014-02-24 Yao Qi <yao@codesourcery.com>
9527
9528 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
9529 * corefile.c (read_memory): Adjusted.
9530 * target.c (target_write_with_progress): Adjusted.
9531
f73023dd
YQ
95322014-02-23 Yao Qi <yao@codesourcery.com>
9533
9534 Revert two patches:
9535
9536 2013-10-25 Yao Qi <yao@codesourcery.com>
9537
9538 * remote.c (remote_traceframe_info): Return early if
9539 traceframe is not selected.
9540
9541 2013-07-19 Yao Qi <yao@codesourcery.com>
9542
9543 * target.c (update_current_target): Change the default action
9544 of 'to_traceframe_info' from tcomplain to return_zero.
9545 * target.h (struct target_ops) <to_traceframe_info>: Add more
9546 comments.
9547
5a2eb0ef
YQ
95482014-02-23 Yao Qi <yao@codesourcery.com>
9549
9550 * valops.c (read_value_memory): Rewrite it. Call
9551 target_xfer_partial in a loop.
9552 * exec.h (section_table_available_memory): Remove declaration.
9553 Move comments to ...
9554 * exec.c (section_table_available_memory): ... here. Make it
9555 static.
9556
1ee79381
YQ
95572014-02-23 Yao Qi <yao@codesourcery.com>
9558
9559 * exec.c (section_table_read_available_memory): New function.
9560 * exec.h (section_table_read_available_memory): Declare.
9561 * ctf.c (ctf_xfer_partial): Call
9562 section_table_read_available_memory.
9563 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9564
1ca49d37
YQ
95652014-02-23 Yao Qi <yao@codesourcery.com>
9566
9567 * ctf.c (ctf_xfer_partial): Move code to ...
9568 * exec.c (exec_read_partial_read_only): ... it. New function.
9569 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9570 * tracefile.c: Include "exec.h".
9571 * exec.h (exec_read_partial_read_only): Declare.
9572
a283690e
YQ
95732014-02-23 Yao Qi <yao@codesourcery.com>
9574
9575 * tracefile-tfile.c (tfile_has_all_memory): Remove.
9576 (tfile_has_memory): Remove.
9577 (init_tfile_ops): Don't set fields to_has_all_memory and
9578 to_has_memory of tfile_ops.
9579 * tracefile.c (tracefile_has_all_memory): New function.
9580 (tracefile_has_memory): New function.
9581 (init_tracefile_ops): Initialize fields to_has_all_memory and
9582 to_has_memory of 'ops'.
9583
12e03cd0
YQ
95842014-02-23 Yao Qi <yao@codesourcery.com>
9585
9586 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
9587 (ctf_thread_alive, ctf_get_trace_status): Remove.
9588 (init_ctf_ops): Don't set some fields of ctf_ops. Call
9589 init_tracefile_ops.
9590 * tracefile-tfile.c (tfile_get_trace_status): Remove.
9591 (tfile_has_stack, tfile_has_registers): Remove.
9592 (tfile_thread_alive): Remove.
9593 (init_tfile_ops): Don't set some fields of tfile_ops. Call
9594 init_tracefile_ops.
9595 * tracefile.c (tracefile_has_stack): New function.
9596 (tracefile_has_registers): New function.
9597 (tracefile_thread_alive): New function.
9598 (tracefile_get_trace_status): New function.
9599 (init_tracefile_ops): New function.
9600 * tracefile.h (init_tracefile_ops): Declare.
9601
11395323
YQ
96022014-02-23 Yao Qi <yao@codesourcery.com>
9603
9604 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
9605 (O_LARGEFILE): Likewise.
9606 (tfile_ops): Likewise.
9607 (TRACE_HEADER_SIZE): Likewise.
9608 (trace_fd, trace_frames_offset, cur_offset): Likewise.
9609 (cur_data_size): Likewise.
9610 (tfile_read, tfile_open, tfile_interp_line): Likewise.
9611 (tfile_close, tfile_files_info): Likewise.
9612 (tfile_get_trace_status): Likewise.
9613 (tfile_get_tracepoint_status): Likewise.
9614 (tfile_get_traceframe_address): Likewise.
9615 (tfile_trace_find, match_blocktype): Likewise.
9616 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
9617 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
9618 (tfile_get_trace_state_variable_value): Likewise.
9619 (tfile_has_all_memory, tfile_has_memory): Likewise.
9620 (tfile_has_stack, tfile_has_registers): Likewise.
9621 (tfile_thread_alive, build_traceframe_info): Likewise.
9622 (tfile_traceframe_info, init_tfile_ops): Likewise.
9623 (_initialize_tracepoint): Don't call init_tfile_ops
9624 and add_target_with_completer.
9625 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
9626 exec.h, completer.h and filenames.h.
9627 (_initialize_tracefile_tfile): New function.
9628
7951c4eb
YQ
96292014-02-23 Yao Qi <yao@codesourcery.com>
9630
9631 * Makefile.in (REMOTE_OBS): Append tracefile.o and
9632 tracefile-tfile.o.
9633 (HFILES_NO_SRCDIR): Add tracefile.h.
9634 * ctf.c: Include "tracefile.h".
9635 * tracefile.h: New file.
9636 * tracefile.c: New file
9637 * tracefile-tfile.c: New file.
9638 * tracepoint.c: Include "tracefile.h".
9639 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
9640 (stop_reason_names): Add const.
9641 (trace_file_writer_xfree): Move it to tracefile.c.
9642 (trace_save, trace_save_command, trace_save_tfile): Likewise.
9643 (trace_save_ctf): Likewise.
9644 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
9645 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
9646 (tfile_write_header, tfile_write_regblock_type): Likewise.
9647 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
9648 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
9649 (tfile_write_raw_data, tfile_end): Likewise.
9650 (tfile_trace_file_writer_new): Likewise.
9651 (free_uploaded_tp): Make it extern.
9652 (free_uploaded_tsv): Make it extern.
9653 (_initialize_tracepoint): Move code to register command 'tsave'
9654 to tracefile.c.
9655 * tracepoint.h (stop_reason_names): Declare.
9656 (struct trace_frame_write_ops): Move it to tracefile.h.
9657 (struct trace_file_write_ops): Likewise.
9658 (struct trace_file_writer): Likewise.
9659 (free_uploaded_tsvs, free_uploaded_tps): Declare.
9660
184cd072
JK
96612014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9662
9663 PR gdb/16594
9664 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
9665 process name.
9666 (get_cores_used_by_process): New parameter num_cores, use it.
9667 (linux_xfer_osdata_processes): Pass num_cores to it.
9668 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
9669 process name.
9670
c63528fc
AK
96712014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
9672
9673 * target.c (memory_xfer_partial): Fix length arg in call to
9674 breakpoint_xfer_memory.
9675
d7b30f67
SDJ
96762014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9677
9678 PR tdep/16397
9679 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
9680 number comes after the + or - signs. Adjust length of register
9681 name to be extracted.
9682
8838afaf
TT
96832014-02-20 Tom Tromey <tromey@redhat.com>
9684
9685 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
9686 (ada_varobj_ops): Mark "extern".
9687
05227d14
TT
96882014-02-20 Tom Tromey <tromey@redhat.com>
9689
9690 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
9691
1254eefc
DE
96922014-02-20 Doug Evans <xdje42@gmail.com>
9693
9694 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
9695 All callers updated.
9696 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
9697 All callers updated.
9698 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
9699 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
9700
adde2bff
DE
97012014-02-20 lin zuojian <manjian2006@gmail.com>
9702 Joel Brobecker <brobecker@adacore.com>
9703 Doug Evans <xdje42@gmail.com>
9704
9705 PR symtab/16581
9706 * dwarf2read.c (struct die_info): New member in_process.
9707 (reset_die_in_process): New function.
9708 (process_die): Set it at the start, reset when returning.
9709 (inherit_abstract_dies): Only call process_die if origin_child_die
9710 not already being processed.
9711
3be75f87
JB
97122014-02-20 Joel Brobecker <brobecker@adacore.com>
9713
9714 * windows-nat.c (handle_unload_dll): Add function documentation.
9715 (do_initial_windows_stuff): Add comment explaining why we wait
9716 until after inferior initialization has finished before
9717 processing all DLLs.
9718
47f7ffdb
JB
97192014-02-20 Joel Brobecker <brobecker@adacore.com>
9720
9721 * windows-nat.c (get_module_name): Delete.
9722 (windows_get_exec_module_filename): New function, mostly
9723 inspired from get_module_name.
9724 (windows_pid_to_exec_file): Replace call to get_module_name
9725 by call to windows_get_exec_module_filename.
9726
1cd9feab
JB
97272014-02-20 Joel Brobecker <brobecker@adacore.com>
9728
9729 * windows-nat.c (handle_load_dll): Rewrite this function's
9730 introductory comment. Remove code using get_module_name
9731 to get the DLL's name.
9732
ea39ad35
JB
97332014-02-20 Joel Brobecker <brobecker@adacore.com>
9734
9735 * windows-nat.c (get_windows_debug_event): Ignore
9736 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
9737 if windows_initialization_done == 0.
9738 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
9739 Adjust implementation to always load all DLLs.
9740 (do_initial_windows_stuff): Replace call to
9741 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
9742
95060284
JB
97432014-02-20 Joel Brobecker <brobecker@adacore.com>
9744
9745 * windows-nat.c (_initialize_windows_nat): Deprecate the
9746 "dll-symbols" command. Turn the "add-shared-symbol-files"
9747 and "assf" aliases into commands, and deprecate them as well.
9748 * NEWS: Add entry explaining that "dll-symbols" and its two
9749 aliases are now deprecated.
9750
8d4fdb12
JB
97512014-02-20 Joel Brobecker <brobecker@adacore.com>
9752
9753 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
9754 new-line in debug string. Remove trailing spaces.
9755
1b281443
SS
97562014-02-19 Stan Shebs <stan@codesourcery.com>
9757
9758 * darwin-nat.c (darwin_xfer_partial): Fix return type.
9759
f7bd0f78
SC
97602014-02-19 Siva Chandra Reddy <sivachandra@google.com>
9761
9762 * NEWS: Add entry for the new feature
9763 * python/py-value.c (valpy_binop): Call value_x_binop for struct
9764 and class values.
9765
399ebc3d
SS
97662014-02-19 Stan Shebs <stan@codesourcery.com>
9767
9768 * MAINTAINERS: List Yao Qi as nios2 maintainer.
9769
c658158d
PA
97702014-02-19 Pedro Alves <palves@redhat.com>
9771
9772 * common/ptid.h (struct ptid): Mention that process_stratum
9773 targets should prefer ptid.lwp.
9774
ba348170
PA
97752014-02-19 Pedro Alves <palves@redhat.com>
9776
9777 * remote.c (remote_thread_alive, write_ptid, read_ptid)
9778 (read_ptid, remote_newthread_step, remote_threads_extra_info)
9779 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
9780 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
9781 store remote thread ids rather than ptid.tid.
9782 (_initialize_remote): Adjust.
9783
ac01945b
TT
97842014-02-19 Tom Tromey <tromey@redhat.com>
9785
9786 * target.c (target_get_unwinder): Rewrite.
9787 (target_get_tailcall_unwinder): Rewrite.
9788 * record-btrace.c (record_btrace_to_get_unwinder): New function.
9789 (record_btrace_to_get_tailcall_unwinder): New function.
9790 (init_record_btrace_ops): Update.
9791 * target.h (struct target_ops) <to_get_unwinder,
9792 to_get_tailcall_unwinder>: Now function pointers. Use
9793 TARGET_DEFAULT_RETURN.
9794
8476dc92
TT
97952014-02-19 Tom Tromey <tromey@redhat.com>
9796
9797 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
9798 argument.
9799 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
9800
c0eca49f
TT
98012014-02-19 Tom Tromey <tromey@redhat.com>
9802
9803 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
9804 directly.
9805 * target-delegates.c: Rebuild.
9806 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
9807 TARGET_DEFAULT_FUNC.
9808 * target.c (default_target_decr_pc_after_break): Rename from
9809 forward_target_decr_pc_after_break. Simplify.
9810 (target_decr_pc_after_break): Rely on delegation.
9811
596b6b39
TT
98122014-02-19 Tom Tromey <tromey@redhat.com>
9813
9814 * target.c (update_current_target): Do not INHERIT to_doc or
9815 to_magic. Do not de_fault to_open or to_close.
9816
b427c1bc
TT
98172014-02-19 Tom Tromey <tromey@redhat.com>
9818
9819 * gcore.h (objfile_find_memory_regions): Declare.
9820 * gcore.c (objfile_find_memory_regions): No longer static. Add
9821 "self" argument.
9822 (_initialize_gcore): Don't call exec_set_find_memory_regions.
9823 * exec.c: Include gcore.h.
9824 (exec_set_find_memory_regions): Remove.
9825 (exec_find_memory_regions): Remove.
9826 (exec_do_find_memory_regions): Remove.
9827 (init_exec_ops): Update.
9828 * defs.h (exec_set_find_memory_regions): Remove.
9829
9b144037
TT
98302014-02-19 Tom Tromey <tromey@redhat.com>
9831
9832 * target-delegates.c: Rebuild.
9833 * target.h (struct target_ops) <to_extra_thread_info,
9834 to_thread_name, to_pid_to_exec_file, to_get_section_table,
9835 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
9836 not 0, in TARGET_DEFAULT_RETURN.
9837
555bbdeb
TT
98382014-02-19 Tom Tromey <tromey@redhat.com>
9839
9840 * target.c (complete_target_initialization): Remove casts. Use
9841 return_zero_has_execution.
9842 (return_zero): Add "ignore" argument.
9843 (return_zero_has_execution): New function.
9844 (init_dummy_target): Remove casts. Use
9845 return_zero_has_execution.
9846
be4ddd36
TT
98472014-02-19 Tom Tromey <tromey@redhat.com>
9848
9849 * target.c (update_current_target): Update comments. Do not
9850 INHERIT to_stratum.
9851
2117c711
TT
98522014-02-19 Tom Tromey <tromey@redhat.com>
9853
9854 * arm-linux-nat.c (arm_linux_read_description): Delegate when
9855 needed.
9856 * corelow.c (core_read_description): Delegate when needed.
9857 * remote.c (remote_read_description): Delegate when needed.
9858 * target-delegates.c: Rebuild.
9859 * target.c (target_read_description): Rewrite.
9860 * target.h (struct target_ops) <to_read_description>: Update
9861 comment. Use TARGET_DEFAULT_RETURN.
9862
e88ef65c
TT
98632014-02-19 Tom Tromey <tromey@redhat.com>
9864
9865 * target-delegates.c: Rebuild.
9866 * target.c (update_current_target): Don't inherit or default
9867 to_can_run.
9868 (find_default_run_target): Check against delegate_can_run.
9869 * target.h (struct target_ops) <to_can_run>: Use
9870 TARGET_DEFAULT_RETURN.
9871
86a0854a
TT
98722014-02-19 Tom Tromey <tromey@redhat.com>
9873
9874 * target-delegates.c: Rebuild.
9875 * target.c (target_disconnect): Unconditionally delegate.
9876 * target.h (struct target_ops) <to_disconnect>: Use
9877 TARGET_DEFAULT_NORETURN.
9878
ee97f592
TT
98792014-02-19 Tom Tromey <tromey@redhat.com>
9880
9881 * record.c (record_stop): Unconditionally delegate.
9882 * target-delegates.c: Rebuild.
9883 * target.c (target_stop_recording): Unconditionally delegate.
9884 * target.h (struct target_ops) <to_stop_recording>: Use
9885 TARGET_DEFAULT_IGNORE.
9886
6dc7fcf4
TT
98872014-02-19 Tom Tromey <tromey@redhat.com>
9888
9889 * target-delegates.c: Rebuild.
9890 * target.c (target_enable_btrace): Unconditionally delegate.
9891 * target.h (struct target_ops) <to_enable_btrace>: Use
9892 TARGET_DEFAULT_NORETURN.
9893
eb5b20d4
TT
98942014-02-19 Tom Tromey <tromey@redhat.com>
9895
9896 * target-delegates.c: Rebuild.
9897 * target.c (target_read_btrace): Unconditionally delegate.
9898 * target.h (struct target_ops) <to_read_btrace>: Use
9899 TARGET_DEFAULT_NORETURN.
9900
9ace480d
TT
99012014-02-19 Tom Tromey <tromey@redhat.com>
9902
9903 * target-delegates.c: Rebuild.
9904 * target.c (target_teardown_btrace): Unconditionally delegate.
9905 * target.h (struct target_ops) <to_teardown_btrace>: Use
9906 TARGET_DEFAULT_NORETURN.
9907
8dc292d3
TT
99082014-02-19 Tom Tromey <tromey@redhat.com>
9909
9910 * target-delegates.c: Rebuild.
9911 * target.c (target_disable_btrace): Unconditionally delegate.
9912 * target.h (struct target_ops) <to_disable_btrace>: Use
9913 TARGET_DEFAULT_NORETURN.
9914
58a5184e
TT
99152014-02-19 Tom Tromey <tromey@redhat.com>
9916
9917 * target-delegates.c: Rebuild.
9918 * target.c (default_search_memory): New function.
9919 (simple_search_memory): Update comment.
9920 (target_search_memory): Unconditionally delegate.
9921 * target.h (struct target_ops) <to_search_memory>: Use
9922 TARGET_DEFAULT_FUNC.
9923
8de71aab
TT
99242014-02-19 Tom Tromey <tromey@redhat.com>
9925
9926 * auxv.c (default_auxv_parse): No longer static.
9927 (target_auxv_parse): Unconditionally delegate.
9928 * auxv.h (default_auxv_parse): Declare.
9929 * target-delegates.c: Rebuild.
9930 * target.c: Include auxv.h.
9931 * target.h (struct target_ops) <to_auxv_parse>: Use
9932 TARGET_DEFAULT_FUNC.
9933
6b2c5a57
TT
99342014-02-19 Tom Tromey <tromey@redhat.com>
9935
9936 * target-delegates.c: Rebuild.
9937 * target.c (target_memory_map): Unconditionally delegate.
9938 * target.h (struct target_ops) <to_memory_map>: Use
9939 TARGET_DEFAULT_RETURN.
9940
cbffc065
TT
99412014-02-19 Tom Tromey <tromey@redhat.com>
9942
9943 * target-delegates.c: Rebuild.
9944 * target.c (target_thread_alive): Unconditionally delegate.
9945 * target.h (struct target_ops) <to_thread_alive>: Use
9946 TARGET_DEFAULT_RETURN.
9947
f09e2107
TT
99482014-02-19 Tom Tromey <tromey@redhat.com>
9949
9950 * target-delegates.c: Rebuild.
9951 * target.c (target_save_record): Unconditionally delegate.
9952 * target.h (struct target_ops) <to_save_record>: Use
9953 TARGET_DEFAULT_NORETURN.
9954
07366925
TT
99552014-02-19 Tom Tromey <tromey@redhat.com>
9956
9957 * target-delegates.c: Rebuild.
9958 * target.c (target_delete_record): Unconditionally delegate.
9959 * target.h (struct target_ops) <to_delete_record>: Use
9960 TARGET_DEFAULT_NORETURN.
9961
dd2e9d25
TT
99622014-02-19 Tom Tromey <tromey@redhat.com>
9963
9964 * target-delegates.c: Rebuild.
9965 * target.c (target_record_is_replaying): Unconditionally
9966 delegate.
9967 * target.h (struct target_ops) <to_record_is_replaying>: Use
9968 TARGET_DEFAULT_RETURN.
9969
671e76cc
TT
99702014-02-19 Tom Tromey <tromey@redhat.com>
9971
9972 * target-delegates.c: Rebuild.
9973 * target.c (target_goto_record_begin): Unconditionally delegate.
9974 * target.h (struct target_ops) <to_goto_record_begin>: Use
9975 TARGET_DEFAULT_NORETURN.
9976
e9179bb3
TT
99772014-02-19 Tom Tromey <tromey@redhat.com>
9978
9979 * target-delegates.c: Rebuild.
9980 * target.c (target_goto_record_end): Unconditionally delegate.
9981 * target.h (struct target_ops) <to_goto_record_end>: Use
9982 TARGET_DEFAULT_NORETURN.
9983
05969c84
TT
99842014-02-19 Tom Tromey <tromey@redhat.com>
9985
9986 * target-delegates.c: Rebuild.
9987 * target.c (target_goto_record): Unconditionally delegate.
9988 * target.h (struct target_ops) <to_goto_record>: Use
9989 TARGET_DEFAULT_NORETURN.
9990
3679abfa
TT
99912014-02-19 Tom Tromey <tromey@redhat.com>
9992
9993 * target-delegates.c: Rebuild.
9994 * target.c (target_insn_history): Unconditionally delegate.
9995 * target.h (struct target_ops) <to_insn_history>: Use
9996 TARGET_DEFAULT_NORETURN.
9997
8444ab58
TT
99982014-02-19 Tom Tromey <tromey@redhat.com>
9999
10000 * target-delegates.c: Rebuild.
10001 * target.c (target_insn_history_from): Unconditionally delegate.
10002 * target.h (struct target_ops) <to_insn_history_from>: Use
10003 TARGET_DEFAULT_NORETURN.
10004
c29302cc
TT
100052014-02-19 Tom Tromey <tromey@redhat.com>
10006
10007 * target-delegates.c: Rebuild.
10008 * target.c (target_insn_history_range): Unconditionally delegate.
10009 * target.h (struct target_ops) <to_insn_history_range>: Use
10010 TARGET_DEFAULT_NORETURN.
10011
170049d4
TT
100122014-02-19 Tom Tromey <tromey@redhat.com>
10013
10014 * target-delegates.c: Rebuild.
10015 * target.c (target_call_history): Unconditionally delegate.
10016 * target.h (struct target_ops) <to_call_history>: Use
10017 TARGET_DEFAULT_NORETURN.
10018
16fc27d6
TT
100192014-02-19 Tom Tromey <tromey@redhat.com>
10020
10021 * target-delegates.c: Rebuild.
10022 * target.c (target_call_history_from): Unconditionally delegate.
10023 * target.h (struct target_ops) <to_call_history_from>: Use
10024 TARGET_DEFAULT_NORETURN.
10025
115d9817
TT
100262014-02-19 Tom Tromey <tromey@redhat.com>
10027
10028 * target-delegates.c: Rebuild.
10029 * target.c (target_call_history_range): Unconditionally delegate.
10030 * target.h (struct target_ops) <to_call_history_range>: Use
10031 TARGET_DEFAULT_NORETURN.
10032
eb276a6b
TT
100332014-02-19 Tom Tromey <tromey@redhat.com>
10034
10035 * target-delegates.c: Rebuild.
10036 * target.c (target_verify_memory): Unconditionally delegate.
10037 * target.h (struct target_ops) <to_verify_memory>: Use
10038 TARGET_DEFAULT_NORETURN.
10039
9e538d0d
TT
100402014-02-19 Tom Tromey <tromey@redhat.com>
10041
10042 * target-delegates.c: Rebuild.
10043 * target.c (target_core_of_thread): Unconditionally delegate.
10044 * target.h (struct target_ops) <to_core_of_thread>: Use
10045 TARGET_DEFAULT_RETURN.
10046
f6fb2925
TT
100472014-02-19 Tom Tromey <tromey@redhat.com>
10048
10049 * target-delegates.c: Rebuild.
10050 * target.c (target_flash_done): Unconditionally delegate.
10051 * target.h (struct target_ops) <to_flash_done>: Use
10052 TARGET_DEFAULT_NORETURN.
10053
e8a6c6ac
TT
100542014-02-19 Tom Tromey <tromey@redhat.com>
10055
10056 * target-delegates.c: Rebuild.
10057 * target.c (target_flash_erase): Unconditionally delegate.
10058 * target.h (struct target_ops) <to_flash_erase>: Use
10059 TARGET_DEFAULT_NORETURN.
10060
7e35c012
TT
100612014-02-19 Tom Tromey <tromey@redhat.com>
10062
10063 * target-delegates.c: Rebuild.
10064 * target.c (target_get_section_table): Unconditionally delegate.
10065 * target.h (struct target_ops) <to_get_section_table>: Use
10066 TARGET_DEFAULT_RETURN.
10067
770234d3
TT
100682014-02-19 Tom Tromey <tromey@redhat.com>
10069
10070 * target-delegates.c: Rebuild.
10071 * target.c (target_pid_to_str): Unconditionally delegate.
10072 (init_dummy_target): Don't initialize to_pid_to_str.
10073 (default_pid_to_str): Rename from dummy_pid_to_str.
10074 * target.h (struct target_ops) <to_pid_to_str>: Use
10075 TARGET_DEFAULT_FUNC.
10076
09b0dc2b
TT
100772014-02-19 Tom Tromey <tromey@redhat.com>
10078
10079 * target-delegates.c: Rebuild.
10080 * target.c (target_find_new_threads): Unconditionally delegate.
10081 * target.h (struct target_ops) <to_find_new_threads>: Use
10082 TARGET_DEFAULT_RETURN.
10083
7d4f8efa
TT
100842014-02-19 Tom Tromey <tromey@redhat.com>
10085
10086 * target-delegates.c: Rebuild.
10087 * target.c (target_program_signals): Unconditionally delegate.
10088 * target.h (struct target_ops) <to_program_signals>: Use
10089 TARGET_DEFAULT_IGNORE.
10090
035cad7f
TT
100912014-02-19 Tom Tromey <tromey@redhat.com>
10092
10093 * target-delegates.c: Rebuild.
10094 * target.c (target_pass_signals): Unconditionally delegate.
10095 * target.h (struct target_ops) <to_pass_signals>: Use
10096 TARGET_DEFAULT_IGNORE.
10097
8d657035
TT
100982014-02-19 Tom Tromey <tromey@redhat.com>
10099
10100 * target-delegates.c: Rebuild.
10101 * target.c (default_mourn_inferior): New function.
10102 (target_mourn_inferior): Unconditionally delegate.
10103 * target.h (struct target_ops) <to_mourn_inferior>: Use
10104 TARGET_DEFAULT_FUNC.
10105
098dba18
TT
101062014-02-19 Tom Tromey <tromey@redhat.com>
10107
10108 * target-delegates.c: Rebuild.
10109 * target.c (default_follow_fork): New function.
10110 (target_follow_fork): Unconditionally delegate.
10111 * target.h (struct target_ops) <to_follow_fork>: Use
10112 TARGET_DEFAULT_FUNC.
10113
423a4807
TT
101142014-02-19 Tom Tromey <tromey@redhat.com>
10115
10116 * target-delegates.c: Rebuild.
10117 * target.c (target_kill): Unconditionally delegate.
10118 * target.h (struct target_ops) <to_kill>: Use
10119 TARGET_DEFAULT_NORETURN.
10120
6c7e5e5c
TT
101212014-02-19 Tom Tromey <tromey@redhat.com>
10122
10123 * target-delegates.c: Rebuild.
10124 * target.c (target_masked_watch_num_registers): Unconditionally
10125 delegate.
10126 * target.h (struct target_ops) <to_masked_watch_num_registers>:
10127 Use TARGET_DEFAULT_RETURN.
10128
8b1c364c
TT
101292014-02-19 Tom Tromey <tromey@redhat.com>
10130
10131 * target-delegates.c: Rebuild.
10132 * target.c (target_remove_mask_watchpoint): Unconditionally
10133 delegate.
10134 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
10135 TARGET_DEFAULT_RETURN.
10136
cd4ae029
TT
101372014-02-19 Tom Tromey <tromey@redhat.com>
10138
10139 * target-delegates.c: Rebuild.
10140 * target.c (target_insert_mask_watchpoint): Unconditionally
10141 delegate.
10142 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
10143 TARGET_DEFAULT_RETURN.
10144
a134316b
TT
101452014-02-19 Tom Tromey <tromey@redhat.com>
10146
10147 * target-delegates.c: Rebuild.
10148 * target.c (target_ranged_break_num_registers): Unconditionally
10149 delegate.
10150 * target.h (struct target_ops) <to_ranged_break_num_registers>:
10151 Use TARGET_DEFAULT_RETURN.
10152
ad5989bd
TT
101532014-02-19 Tom Tromey <tromey@redhat.com>
10154
10155 * target-delegates.c: Rebuild.
10156 * target.c (target_fetch_registers): Unconditionally delegate.
10157 * target.h (struct target_ops) <to_fetch_registers>: Use
10158 TARGET_DEFAULT_NORETURN.
10159
46ee7e8d
TT
101602014-02-19 Tom Tromey <tromey@redhat.com>
10161
10162 * target-delegates.c: Rebuild.
10163 * target.c (update_current_target): Don't inherit or default
10164 to_stop.
10165 * target.h (struct target_ops) <to_stop>: Use
10166 TARGET_DEFAULT_IGNORE.
10167
843f59ed
TT
101682014-02-19 Tom Tromey <tromey@redhat.com>
10169
10170 * target-delegates.c: Rebuild.
10171 * target.c (update_current_target): Don't inherit or default
10172 to_can_run_breakpoint_commands.
10173 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
10174 Use TARGET_DEFAULT_RETURN.
10175
ccfde2a0
TT
101762014-02-19 Tom Tromey <tromey@redhat.com>
10177
10178 * target-delegates.c: Rebuild.
10179 * target.c (update_current_target): Don't inherit or default
10180 to_supports_evaluation_of_breakpoint_conditions.
10181 * target.h (struct target_ops)
10182 <to_supports_evaluation_of_breakpoint_conditions>: Use
10183 TARGET_DEFAULT_RETURN.
10184
0de91722
TT
101852014-02-19 Tom Tromey <tromey@redhat.com>
10186
10187 * target-delegates.c: Rebuild.
10188 * target.c (update_current_target): Don't inherit or default
10189 to_augmented_libraries_svr4_read.
10190 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
10191 Use TARGET_DEFAULT_RETURN.
10192
9a7d8b48
TT
101932014-02-19 Tom Tromey <tromey@redhat.com>
10194
10195 * target-delegates.c: Rebuild.
10196 * target.c (update_current_target): Don't inherit or default
10197 to_can_use_agent.
10198 * target.h (struct target_ops) <to_can_use_agent>: Use
10199 TARGET_DEFAULT_RETURN.
10200
d9db5b21
TT
102012014-02-19 Tom Tromey <tromey@redhat.com>
10202
10203 * target-delegates.c: Rebuild.
10204 * target.c (update_current_target): Don't inherit or default
10205 to_use_agent.
10206 * target.h (struct target_ops) <to_use_agent>: Use
10207 TARGET_DEFAULT_NORETURN.
10208
92155eeb
TT
102092014-02-19 Tom Tromey <tromey@redhat.com>
10210
10211 * target-delegates.c: Rebuild.
10212 * target.c (update_current_target): Don't inherit or default
10213 to_traceframe_info.
10214 (return_null): Remove.
10215 * target.h (struct target_ops) <to_traceframe_info>: Use
10216 TARGET_DEFAULT_RETURN.
10217
d6522a22
TT
102182014-02-19 Tom Tromey <tromey@redhat.com>
10219
10220 * target-delegates.c: Rebuild.
10221 * target.c (update_current_target): Don't inherit or default
10222 to_static_tracepoint_markers_by_strid.
10223 * target.h (struct target_ops)
10224 <to_static_tracepoint_markers_by_strid>: Use
10225 TARGET_DEFAULT_NORETURN.
10226
4c3e4425
TT
102272014-02-19 Tom Tromey <tromey@redhat.com>
10228
10229 * target-delegates.c: Rebuild.
10230 * target.c (update_current_target): Don't inherit or default
10231 to_static_tracepoint_marker_at.
10232 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
10233 Use TARGET_DEFAULT_RETURN.
10234
dcd6917f
TT
102352014-02-19 Tom Tromey <tromey@redhat.com>
10236
10237 * target-delegates.c: Rebuild.
10238 * target.c (update_current_target): Don't inherit or default
10239 to_set_permissions.
10240 * target.h (struct target_ops) <to_set_permissions>: Use
10241 TARGET_DEFAULT_IGNORE.
10242
22bcceee
TT
102432014-02-19 Tom Tromey <tromey@redhat.com>
10244
10245 * target-delegates.c: Rebuild.
10246 * target.c (update_current_target): Don't inherit or default
10247 to_get_tib_address.
10248 * target.h (struct target_ops) <to_get_tib_address>: Use
10249 TARGET_DEFAULT_NORETURN.
10250
8586ccaa
TT
102512014-02-19 Tom Tromey <tromey@redhat.com>
10252
10253 * target-delegates.c: Rebuild.
10254 * target.c (update_current_target): Don't inherit or default
10255 to_set_trace_notes.
10256 * target.h (struct target_ops) <to_set_trace_notes>: Use
10257 TARGET_DEFAULT_RETURN.
10258
91df8d1d
TT
102592014-02-19 Tom Tromey <tromey@redhat.com>
10260
10261 * target-delegates.c: Rebuild.
10262 * target.c (update_current_target): Don't initialize
10263 to_set_trace_buffer_size.
10264 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
10265 TARGET_DEFAULT_IGNORE.
10266
8d526939
TT
102672014-02-19 Tom Tromey <tromey@redhat.com>
10268
10269 * target-delegates.c: Rebuild.
10270 * target.c (update_current_target): Don't inherit or default
10271 to_set_circular_trace_buffer.
10272 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
10273 TARGET_DEFAULT_IGNORE.
10274
0bcfeddf
TT
102752014-02-19 Tom Tromey <tromey@redhat.com>
10276
10277 * target-delegates.c: Rebuild.
10278 * target.c (update_current_target): Don't inherit or default
10279 to_set_disconnected_tracing.
10280 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
10281 TARGET_DEFAULT_IGNORE.
10282
9249843f
TT
102832014-02-19 Tom Tromey <tromey@redhat.com>
10284
10285 * target-delegates.c: Rebuild.
10286 * target.c (update_current_target): Don't inherit or default
10287 to_get_min_fast_tracepoint_insn_len.
10288 (return_minus_one): Remove.
10289 * target.h (struct target_ops)
10290 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
10291
ace92e7d
TT
102922014-02-19 Tom Tromey <tromey@redhat.com>
10293
10294 * target-delegates.c: Rebuild.
10295 * target.c (update_current_target): Don't inherit or default
10296 to_get_raw_trace_data.
10297 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
10298 TARGET_DEFAULT_NORETURN.
10299
08120467
TT
103002014-02-19 Tom Tromey <tromey@redhat.com>
10301
10302 * target-delegates.c: Rebuild.
10303 * target.c (update_current_target): Don't inherit or default
10304 to_upload_trace_state_variables.
10305 * target.h (struct target_ops) <to_upload_trace_state_variables>:
10306 Use TARGET_DEFAULT_RETURN.
10307
1e949b00
TT
103082014-02-19 Tom Tromey <tromey@redhat.com>
10309
10310 * target-delegates.c: Rebuild.
10311 * target.c (update_current_target): Don't inherit or default
10312 to_upload_tracepoints.
10313 * target.h (struct target_ops) <to_upload_tracepoints>: Use
10314 TARGET_DEFAULT_RETURN.
10315
a2e6c147
TT
103162014-02-19 Tom Tromey <tromey@redhat.com>
10317
10318 * target-delegates.c: Rebuild.
10319 * target.c (update_current_target): Don't inherit or default
10320 to_save_trace_data.
10321 * target.h (struct target_ops) <to_save_trace_data>: Use
10322 TARGET_DEFAULT_NORETURN.
10323
959bcd0b
TT
103242014-02-19 Tom Tromey <tromey@redhat.com>
10325
10326 * target-delegates.c: Rebuild.
10327 * target.c (update_current_target): Don't inherit or default
10328 to_get_trace_state_variable_value.
10329 * target.h (struct target_ops)
10330 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
10331
afc94e66
TT
103322014-02-19 Tom Tromey <tromey@redhat.com>
10333
10334 * target-delegates.c: Rebuild.
10335 * target.c (update_current_target): Don't inherit or default
10336 to_trace_find.
10337 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
10338
e51c07ea
TT
103392014-02-19 Tom Tromey <tromey@redhat.com>
10340
10341 * target-delegates.c: Rebuild.
10342 * target.c (update_current_target): Don't inherit or default
10343 to_trace_stop.
10344 * target.h (struct target_ops) <to_trace_stop>: Use
10345 TARGET_DEFAULT_NORETURN.
10346
6fea14cd
TT
103472014-02-19 Tom Tromey <tromey@redhat.com>
10348
10349 * target-delegates.c: Rebuild.
10350 * target.c (update_current_target): Don't inherit or default
10351 to_get_tracepoint_status.
10352 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
10353 TARGET_DEFAULT_NORETURN.
10354
4072d4ff
TT
103552014-02-19 Tom Tromey <tromey@redhat.com>
10356
10357 * target-delegates.c: Rebuild.
10358 * target.c (update_current_target): Don't inherit or default
10359 to_get_trace_status.
10360 * target.h (struct target_ops) <to_get_trace_status>: Use
10361 TARGET_DEFAULT_RETURN.
10362
25da2e80
TT
103632014-02-19 Tom Tromey <tromey@redhat.com>
10364
10365 * target-delegates.c: Rebuild.
10366 * target.c (update_current_target): Don't inherit or default
10367 to_trace_start.
10368 * target.h (struct target_ops) <to_trace_start>: Use
10369 TARGET_DEFAULT_NORETURN.
10370
86dd181d
TT
103712014-02-19 Tom Tromey <tromey@redhat.com>
10372
10373 * target-delegates.c: Rebuild.
10374 * target.c (update_current_target): Don't inherit or default
10375 to_trace_set_readonly_regions.
10376 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
10377 Use TARGET_DEFAULT_NORETURN.
10378
05c41993
TT
103792014-02-19 Tom Tromey <tromey@redhat.com>
10380
10381 * target-delegates.c: Rebuild.
10382 * target.c (update_current_target): Don't inherit or default
10383 to_disable_tracepoint.
10384 * target.h (struct target_ops) <to_disable_tracepoint>: Use
10385 TARGET_DEFAULT_NORETURN.
10386
151f70f1
TT
103872014-02-19 Tom Tromey <tromey@redhat.com>
10388
10389 * target-delegates.c: Rebuild.
10390 * target.c (update_current_target): Don't inherit or default
10391 to_enable_tracepoint.
10392 * target.h (struct target_ops) <to_enable_tracepoint>: Use
10393 TARGET_DEFAULT_NORETURN.
10394
94eb98b9
TT
103952014-02-19 Tom Tromey <tromey@redhat.com>
10396
10397 * target-delegates.c: Rebuild.
10398 * target.c (update_current_target): Don't inherit or default
10399 to_download_trace_state_variable.
10400 * target.h (struct target_ops) <to_download_trace_state_variable>:
10401 Use TARGET_DEFAULT_NORETURN.
10402
719acc4a
TT
104032014-02-19 Tom Tromey <tromey@redhat.com>
10404
10405 * target-delegates.c: Rebuild.
10406 * target.c (update_current_target): Don't inherit or default
10407 to_can_download_tracepoint.
10408 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
10409 TARGET_DEFAULT_RETURN.
10410
9a980a22
TT
104112014-02-19 Tom Tromey <tromey@redhat.com>
10412
10413 * target-delegates.c: Rebuild.
10414 * target.c (update_current_target): Don't inherit or default
10415 to_download_tracepoint.
10416 * target.h (struct target_ops) <to_download_tracepoint>: Use
10417 TARGET_DEFAULT_NORETURN.
10418
5536135b
TT
104192014-02-19 Tom Tromey <tromey@redhat.com>
10420
10421 * target-delegates.c: Rebuild.
10422 * target.c (update_current_target): Don't inherit or default
10423 to_trace_init.
10424 * target.h (struct target_ops) <to_trace_init>: Use
10425 TARGET_DEFAULT_RETURN.
10426
9409d39e
TT
104272014-02-19 Tom Tromey <tromey@redhat.com>
10428
10429 * target-delegates.c: Rebuild.
10430 * target.c (update_current_target): Don't inherit or default
10431 to_supports_string_tracing.
10432 * target.h (struct target_ops) <to_supports_string_tracing>: Use
10433 TARGET_DEFAULT_RETURN.
10434
aab1b22d
TT
104352014-02-19 Tom Tromey <tromey@redhat.com>
10436
10437 * target-delegates.c: Rebuild.
10438 * target.c (update_current_target): Don't inherit or default
10439 to_supports_enable_disable_tracepoint.
10440 * target.h (struct target_ops)
10441 <to_supports_enable_disable_tracepoint>: Use
10442 TARGET_DEFAULT_RETURN.
10443
a7304748
TT
104442014-02-19 Tom Tromey <tromey@redhat.com>
10445
10446 * target-delegates.c: Rebuild.
10447 * target.c (update_current_target): Don't inherit or default
10448 to_supports_multi_process.
10449 * target.h (struct target_ops) <to_supports_multi_process>: Use
10450 TARGET_DEFAULT_RETURN.
10451
4229b31d
TT
104522014-02-19 Tom Tromey <tromey@redhat.com>
10453
10454 * target-delegates.c: Rebuild.
10455 * target.c (update_current_target): Don't inherit or default
10456 to_get_ada_task_ptid.
10457 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
10458 TARGET_DEFAULT_FUNC.
10459
43eba180
TT
104602014-02-19 Tom Tromey <tromey@redhat.com>
10461
10462 * target-delegates.c: Rebuild.
10463 * target.c (update_current_target): Don't inherit or default
10464 to_thread_architecture.
10465 * target.h (struct target_ops) <to_thread_architecture>: Use
10466 TARGET_DEFAULT_FUNC.
10467
fe31bf5b
TT
104682014-02-19 Tom Tromey <tromey@redhat.com>
10469
10470 * target-delegates.c: Rebuild.
10471 * target.c (update_current_target): Don't inherit or default
10472 to_execution_direction.
10473 * target.h (struct target_ops) <to_execution_direction>: Use
10474 TARGET_DEFAULT_FUNC.
10475
53e1cfc7
TT
104762014-02-19 Tom Tromey <tromey@redhat.com>
10477
10478 * target-delegates.c: Rebuild.
10479 * target.c (update_current_target): Don't inherit or default
10480 to_can_execute_reverse.
10481 * target.h (struct target_ops) <to_can_execute_reverse>: Use
10482 TARGET_DEFAULT_RETURN.
10483 (target_can_execute_reverse): Unconditionally delegate.
10484
9bb9d61d
TT
104852014-02-19 Tom Tromey <tromey@redhat.com>
10486
10487 * target-delegates.c: Rebuild.
10488 * target.c (update_current_target): Don't inherit or default
10489 to_goto_bookmark.
10490 (dummy_goto_bookmark): Remove.
10491 (init_dummy_target): Don't inherit or default to_goto_bookmark.
10492 * target.h (struct target_ops) <to_goto_bookmark>: Use
10493 TARGET_DEFAULT_NORETURN.
10494
3dbafbbb
TT
104952014-02-19 Tom Tromey <tromey@redhat.com>
10496
10497 * target-delegates.c: Rebuild.
10498 * target.c (update_current_target): Don't inherit or default
10499 to_get_bookmark.
10500 (dummy_get_bookmark): Remove.
10501 (init_dummy_target): Don't inherit or default to_get_bookmark.
10502 * target.h (struct target_ops) <to_get_bookmark>: Use
10503 TARGET_DEFAULT_NORETURN
10504
16f796b1
TT
105052014-02-19 Tom Tromey <tromey@redhat.com>
10506
10507 * target-delegates.c: Rebuild.
10508 * target.c (update_current_target): Don't inherit or default
10509 to_make_corefile_notes.
10510 (init_dummy_target): Don't initialize to_make_corefile_notes.
10511 * target.h (struct target_ops) <to_make_corefile_notes>: Use
10512 TARGET_DEFAULT_FUNC.
10513
0b5a2719
TT
105142014-02-19 Tom Tromey <tromey@redhat.com>
10515
10516 * target-delegates.c: Rebuild.
10517 * target.c (update_current_target): Don't inherit or default
10518 to_find_memory_regions.
10519 (init_dummy_target): Don't initialize to_find_memory_regions.
10520 * target.h (struct target_ops) <to_find_memory_regions>: Use
10521 TARGET_DEFAULT_FUNC.
10522
d9cb0195
TT
105232014-02-19 Tom Tromey <tromey@redhat.com>
10524
10525 * target-delegates.c: Rebuild.
10526 * target.c (update_current_target): Don't inherit or default
10527 to_log_command.
10528 * target.h (struct target_ops) <to_log_command>: Use
10529 TARGET_DEFAULT_IGNORE.
10530 (target_log_command): Unconditionally delegate.
10531
830ca330
TT
105322014-02-19 Tom Tromey <tromey@redhat.com>
10533
10534 * target-delegates.c: Rebuild.
10535 * target.c (update_current_target): Don't inherit or default
10536 to_pid_to_exec_file.
10537 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
10538 TARGET_DEFAULT_RETURN.
10539
825828fc
TT
105402014-02-19 Tom Tromey <tromey@redhat.com>
10541
10542 * target-delegates.c: Rebuild.
10543 * target.c (update_current_target): Don't inherit or default
10544 to_thread_name.
10545 (target_thread_name): Unconditionally delegate.
10546 * target.h (struct target_ops) <to_thread_name>: Use
10547 TARGET_DEFAULT_RETURN.
10548
4a7e6dda
TT
105492014-02-19 Tom Tromey <tromey@redhat.com>
10550
10551 * target-delegates.c: Rebuild.
10552 * target.c (update_current_target): Don't inherit or default
10553 to_extra_thread_info.
10554 * target.h (struct target_ops) <to_extra_thread_info>: Use
10555 TARGET_DEFAULT_RETURN.
10556
0db88c1d
TT
105572014-02-19 Tom Tromey <tromey@redhat.com>
10558
10559 * target-delegates.c: Rebuild.
10560 * target.c (update_current_target): Don't inherit or default
10561 to_has_exited.
10562 * target.h (struct target_ops) <to_has_exited>: Use
10563 TARGET_DEFAULT_RETURN..
10564
6a9fa051
TT
105652014-02-19 Tom Tromey <tromey@redhat.com>
10566
10567 * target-delegates.c: Rebuild.
10568 * target.c (update_current_target): Don't inherit or default
10569 to_set_syscall_catchpoint.
10570 (return_one): Remove.
10571 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
10572 TARGET_DEFAULT_RETURN.
10573
62f64d7a
TT
105742014-02-19 Tom Tromey <tromey@redhat.com>
10575
10576 * target-delegates.c: Rebuild.
10577 * target.c (update_current_target): Don't inherit or default
10578 to_insert_exec_catchpoint.
10579 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
10580 TARGET_DEFAULT_RETURN.
10581
cda0f38c
TT
105822014-01-08 Tom Tromey <tromey@redhat.com>
10583
10584 * target-delegates.c: Rebuild.
10585 * target.c (update_current_target): Don't inherit or default
10586 to_insert_exec_catchpoint.
10587 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
10588 TARGET_DEFAULT_RETURN.
10589
95c3375e
TT
105902014-02-19 Tom Tromey <tromey@redhat.com>
10591
10592 * target-delegates.c: Rebuild.
10593 * target.c (update_current_target): Don't inherit or default
10594 to_remove_vfork_catchpoint.
10595 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
10596 TARGET_DEFAULT_RETURN.
10597
7e18a8dc
TT
105982014-02-19 Tom Tromey <tromey@redhat.com>
10599
10600 * target-delegates.c: Rebuild.
10601 * target.c (update_current_target): Don't inherit or default
10602 to_insert_vfork_catchpoint.
10603 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
10604 TARGET_DEFAULT_RETURN.
10605
e1a21fb7
TT
106062014-02-19 Tom Tromey <tromey@redhat.com>
10607
10608 * target-delegates.c: Rebuild.
10609 * target.c (update_current_target): Don't inherit or default
10610 to_remove_fork_catchpoint.
10611 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
10612 TARGET_DEFAULT_RETURN.
10613
5958ebeb
TT
106142014-02-19 Tom Tromey <tromey@redhat.com>
10615
10616 * target-delegates.c: Rebuild.
10617 * target.c (update_current_target): Don't inherit or default
10618 to_insert_fork_catchpoint.
10619 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
10620 TARGET_DEFAULT_RETURN.
10621
340ba4bf
TT
106222014-02-19 Tom Tromey <tromey@redhat.com>
10623
10624 * target-delegates.c: Rebuild.
10625 * target.c (update_current_target): Don't inherit or default
10626 to_post_startup_inferior.
10627 * target.h (struct target_ops) <to_post_startup_inferior>: Use
10628 TARGET_DEFAULT_IGNORE.
10629
7634da87
TT
106302014-02-19 Tom Tromey <tromey@redhat.com>
10631
10632 * target-delegates.c: Rebuild.
10633 * target.c (update_current_target): Don't inherit or default
10634 to_load.
10635 * target.h (struct target_ops) <to_load>: Use
10636 TARGET_DEFAULT_NORETURN.
10637
e19e919f
TT
106382014-02-19 Tom Tromey <tromey@redhat.com>
10639
10640 * target-delegates.c: Rebuild.
10641 * target.c (update_current_target): Don't inherit or default
10642 to_terminal_info.
10643 * target.h (struct target_ops) <to_terminal_info>: Use
10644 TARGET_DEFAULT_FUNC.
10645
c6ea8f79
TT
106462014-02-19 Tom Tromey <tromey@redhat.com>
10647
10648 * target-delegates.c: Rebuild.
10649 * target.c (update_current_target): Don't inherit or default
10650 to_terminal_save_ours.
10651 * target.h (struct target_ops) <to_terminal_save_ours>: Use
10652 TARGET_DEFAULT_IGNORE.
10653
e4a733f1
TT
106542014-02-19 Tom Tromey <tromey@redhat.com>
10655
10656 * target-delegates.c: Rebuild.
10657 * target.c (update_current_target): Don't inherit or default
10658 to_terminal_ours.
10659 * target.h (struct target_ops) <to_terminal_ours>: Use
10660 TARGET_DEFAULT_IGNORE.
10661
74fcbef9
TT
106622014-02-19 Tom Tromey <tromey@redhat.com>
10663
10664 * target-delegates.c: Rebuild.
10665 * target.c (update_current_target): Don't inherit or default
10666 to_terminal_ours_for_output.
10667 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
10668 TARGET_DEFAULT_IGNORE.
10669
ddeaacc9
TT
106702014-02-19 Tom Tromey <tromey@redhat.com>
10671
10672 * target-delegates.c: Rebuild.
10673 * target.c (update_current_target): Don't inherit or default
10674 to_terminal_inferior.
10675 * target.h (struct target_ops) <to_terminal_inferior>: Use
10676 TARGET_DEFAULT_IGNORE.
10677
0343661d
TT
106782014-02-19 Tom Tromey <tromey@redhat.com>
10679
10680 * target-delegates.c: Rebuild.
10681 * target.c (update_current_target): Don't inherit or default
10682 to_terminal_init.
10683 * target.h (struct target_ops) <to_terminal_init>: Use
10684 TARGET_DEFAULT_IGNORE.
10685
77cdffe9
TT
106862014-02-19 Tom Tromey <tromey@redhat.com>
10687
10688 * target-delegates.c: Rebuild.
10689 * target.c (update_current_target): Don't inherit or default
10690 to_can_accel_watchpoint_condition.
10691 * target.h (struct target_ops)
10692 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
10693
d03655e4
TT
106942014-02-19 Tom Tromey <tromey@redhat.com>
10695
10696 * target-delegates.c: Rebuild.
10697 * target.c (update_current_target): Don't inherit or default
10698 to_region_ok_for_hw_watchpoint.
10699 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10700 Use TARGET_DEFAULT_FUNC.
10701
65f160a9
TT
107022014-02-19 Tom Tromey <tromey@redhat.com>
10703
10704 * target-delegates.c: Rebuild.
10705 * target.c (update_current_target): Don't inherit or default
10706 to_watchpoint_addr_within_range.
10707 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
10708 Use TARGET_DEFAULT_FUNC.
10709
61dd109f
TT
107102014-02-19 Tom Tromey <tromey@redhat.com>
10711
10712 * target-delegates.c: Rebuild.
10713 * target.c (update_current_target): Don't inherit or default
10714 to_remove_watchpoint.
10715 * target.h (struct target_ops) <to_remove_watchpoint>: Use
10716 TARGET_DEFAULT_NORETURN.
10717
016facd4
TT
107182014-02-19 Tom Tromey <tromey@redhat.com>
10719
10720 * target-delegates.c: Rebuild.
10721 * target.c (update_current_target): Don't inherit or default
10722 to_insert_watchpoint.
10723 * target.h (struct target_ops) <to_insert_watchpoint>: Use
10724 TARGET_DEFAULT_RETURN.
10725
418dabac
TT
107262014-02-19 Tom Tromey <tromey@redhat.com>
10727
10728 * target-delegates.c: Rebuild.
10729 * target.c (update_current_target): Don't inherit or default
10730 to_remove_hw_breakpoint.
10731 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
10732 TARGET_DEFAULT_RETURN.
10733
61b371f9
TT
107342014-02-19 Tom Tromey <tromey@redhat.com>
10735
10736 * target-delegates.c: Rebuild.
10737 * target.c (update_current_target): Don't inherit or default
10738 to_insert_hw_breakpoint.
10739 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
10740 TARGET_DEFAULT_RETURN.
10741
52b51d06
TT
107422014-02-19 Tom Tromey <tromey@redhat.com>
10743
10744 * target-delegates.c: Rebuild.
10745 * target.c (update_current_target): Don't inherit or default
10746 to_can_use_hw_breakpoint.
10747 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
10748 TARGET_DEFAULT_RETURN.
10749
f86e59b2
TT
107502014-02-19 Tom Tromey <tromey@redhat.com>
10751
10752 * target-delegates.c: Rebuild.
10753 * target.c (update_current_target): Don't inherit or default
10754 to_files_info.
10755 * target.h (struct target_ops) <to_files_info>: Use
10756 TARGET_DEFAULT_IGNORE.
10757
6c628163
TT
107582014-02-19 Tom Tromey <tromey@redhat.com>
10759
10760 * target-delegates.c: Rebuild.
10761 * target.c (update_current_target): Don't inherit or default
10762 to_store.
10763 * target.h (struct target_ops) <to_store>: Use
10764 TARGET_DEFAULT_NORETURN.
10765
bebd3233
TT
107662014-02-19 Tom Tromey <tromey@redhat.com>
10767
10768 * target-delegates.c: Rebuild.
10769 * target.c (update_current_target): Don't inherit or default
10770 to_post_attach.
10771 * target.h (struct target_ops) <to_post_attach>: Use
10772 TARGET_DEFAULT_IGNORE.
10773
a53f3625
TT
107742014-02-19 Tom Tromey <tromey@redhat.com>
10775
10776 * target-delegates.c: Rebuild.
10777 * target.c (update_current_target): Don't inherit or default
10778 to_rcmd.
10779 (default_rcmd): New function.
10780 (do_monitor_command): Unconditionally delegate.
10781 * target.h (struct target_ops) <to_rmcd>: Use
10782 TARGET_DEFAULT_FUNC.
10783
e9a29200
TT
107842014-02-19 Tom Tromey <tromey@redhat.com>
10785
10786 * target-delegates.c: Rebuild.
10787 * target.c (init_dummy_target): Don't initialize to_attach.
10788 (target_attach): Unconditionally delegate.
10789 * target.h (struct target_ops) <to_attach>: Use
10790 TARGET_DEFAULT_FUNC.
10791
09da0d0a
TT
107922014-02-19 Tom Tromey <tromey@redhat.com>
10793
10794 * target-delegates.c: Rebuild.
10795 * target.c (target_detach): Unconditionally delegate.
10796 (init_dummy_target): Don't initialize to_detach.
10797 * target.h (struct target_ops) <to_detach>: Use
10798 TARGET_DEFAULT_IGNORE.
10799
5436ff03
TT
108002014-02-19 Tom Tromey <tromey@redhat.com>
10801
10802 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
10803 Add argument.
10804 (target_augmented_libraries_svr4_read): Add argument.
10805 * target.c (update_current_target): Update.
10806 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
10807 argument.
10808
f0d960ea
TT
108092014-02-19 Tom Tromey <tromey@redhat.com>
10810
10811 * target.h (struct target_ops) <to_call_history_range>: Add
10812 argument.
10813 * target.c (target_call_history_range): Add argument.
10814 * record-btrace.c (record_btrace_call_history_range): Add 'self'
10815 argument.
10816 (record_btrace_call_history_from): Update.
10817
ec0aea04
TT
108182014-02-19 Tom Tromey <tromey@redhat.com>
10819
10820 * target.h (struct target_ops) <to_call_history_from>: Add
10821 argument.
10822 * target.c (target_call_history_from): Add argument.
10823 * record-btrace.c (record_btrace_call_history_from): Add 'self'
10824 argument.
10825
5df2fcba
TT
108262014-02-19 Tom Tromey <tromey@redhat.com>
10827
10828 * target.h (struct target_ops) <to_call_history>: Add argument.
10829 * target.c (target_call_history): Add argument.
10830 * record-btrace.c (record_btrace_call_history): Add 'self'
10831 argument.
10832
4e99c6b7
TT
108332014-02-19 Tom Tromey <tromey@redhat.com>
10834
10835 * target.h (struct target_ops) <to_insn_history_range>: Add
10836 argument.
10837 * target.c (target_insn_history_range): Add argument.
10838 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
10839 argument.
10840 (record_btrace_insn_history_from): Update.
10841
9abc3ff3
TT
108422014-02-19 Tom Tromey <tromey@redhat.com>
10843
10844 * target.h (struct target_ops) <to_insn_history_from>: Add
10845 argument.
10846 * target.c (target_insn_history_from): Add argument.
10847 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
10848 argument.
10849
7a6c5609
TT
108502014-02-19 Tom Tromey <tromey@redhat.com>
10851
10852 * target.h (struct target_ops) <to_insn_history>: Add argument.
10853 * target.c (target_insn_history): Add argument.
10854 * record-btrace.c (record_btrace_insn_history): Add 'self'
10855 argument.
10856
606183ac
TT
108572014-02-19 Tom Tromey <tromey@redhat.com>
10858
10859 * target.h (struct target_ops) <to_goto_record>: Add argument.
10860 * target.c (target_goto_record): Add argument.
10861 * record-full.c (record_full_goto): Add 'self' argument.
10862 * record-btrace.c (record_btrace_goto): Add 'self' argument.
10863
307a1b91
TT
108642014-02-19 Tom Tromey <tromey@redhat.com>
10865
10866 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
10867 * target.c (target_goto_record_end): Add argument.
10868 * record-full.c (record_full_goto_end): Add 'self' argument.
10869 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
10870
08475817
TT
108712014-02-19 Tom Tromey <tromey@redhat.com>
10872
10873 * target.h (struct target_ops) <to_goto_record_begin>: Add
10874 argument.
10875 * target.c (target_goto_record_begin): Add argument.
10876 * record-full.c (record_full_goto_begin): Add 'self' argument.
10877 * record-btrace.c (record_btrace_goto_begin): Add 'self'
10878 argument.
10879
1c63c994
TT
108802014-02-19 Tom Tromey <tromey@redhat.com>
10881
10882 * target.h (struct target_ops) <to_record_is_replaying>: Add
10883 argument.
10884 * target.c (target_record_is_replaying): Add argument.
10885 * record-full.c (record_full_is_replaying): Add 'self' argument.
10886 * record-btrace.c (record_btrace_is_replaying): Add 'self'
10887 argument.
10888 (record_btrace_xfer_partial, record_btrace_store_registers)
10889 (record_btrace_prepare_to_store, record_btrace_resume)
10890 (record_btrace_wait, record_btrace_decr_pc_after_break)
10891 (record_btrace_find_new_threads, record_btrace_thread_alive):
10892 Update.
10893
d1b55219
TT
108942014-02-19 Tom Tromey <tromey@redhat.com>
10895
10896 * target.h (struct target_ops) <to_delete_record>: Add argument.
10897 * target.c (target_delete_record): Add argument.
10898 * record-full.c (record_full_delete): Add 'self' argument.
10899
1390f529
TT
109002014-02-19 Tom Tromey <tromey@redhat.com>
10901
10902 * target.h (struct target_ops) <to_save_record>: Add argument.
10903 * target.c (target_save_record): Add argument.
10904 * record-full.c (record_full_save): Add 'self' argument.
10905 (record_full_save): Add 'self' argument.
10906
630d6a4a
TT
109072014-02-19 Tom Tromey <tromey@redhat.com>
10908
10909 * target.h (struct target_ops) <to_info_record>: Add argument.
10910 * target.c (target_info_record): Add argument.
10911 * record.c (info_record_command): Add argument.
10912 * record-full.c (record_full_info): Add 'self' argument.
10913 * record-btrace.c (record_btrace_info): Add 'self' argument.
10914
c6cd7c02
TT
109152014-02-19 Tom Tromey <tromey@redhat.com>
10916
10917 * target.h (struct target_ops) <to_stop_recording>: Add argument.
10918 * target.c (target_stop_recording): Add argument.
10919 * record.c (record_stop): Add argument.
10920 * record-btrace.c (record_btrace_stop_recording): Add 'self'
10921 argument.
10922
39c49f83
TT
109232014-02-19 Tom Tromey <tromey@redhat.com>
10924
10925 * target.h (struct target_ops) <to_read_btrace>: Add argument.
10926 * target.c (struct target_ops) <to_read_btrace>: Add argument.
10927 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
10928 argument.
10929 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
10930 (_initialize_amd64_linux_nat): Use it.
10931 * i386-linux-nat.c (i386_linux_read_btrace): New function.
10932 (_initialize_i386_linux_nat): Use it.
10933
1777056d
TT
109342014-02-19 Tom Tromey <tromey@redhat.com>
10935
10936 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
10937 * target.c (target_teardown_btrace): Add argument.
10938 * remote.c (remote_teardown_btrace): Add 'self' argument.
10939 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
10940 argument.
10941 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
10942 argument.
10943
25e95349
TT
109442014-02-19 Tom Tromey <tromey@redhat.com>
10945
10946 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
10947 * target.c (target_disable_btrace): Add argument.
10948 * remote.c (remote_disable_btrace): Add 'self' argument.
10949 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
10950 argument.
10951 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
10952 argument.
10953
e3c49f88
TT
109542014-02-19 Tom Tromey <tromey@redhat.com>
10955
10956 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
10957 * target.c (target_enable_btrace): Add argument.
10958 * remote.c (remote_enable_btrace): Add 'self' argument.
10959 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
10960 argument.
10961 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
10962 argument.
10963
fe38f897
TT
109642014-02-19 Tom Tromey <tromey@redhat.com>
10965
10966 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
10967 (target_can_use_agent): Add argument.
10968 * target.c (update_current_target): Update.
10969 * remote.c (remote_can_use_agent): Add 'self' argument.
10970 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
10971
2c152180
TT
109722014-02-19 Tom Tromey <tromey@redhat.com>
10973
10974 * target.h (struct target_ops) <to_use_agent>: Add argument.
10975 (target_use_agent): Add argument.
10976 * target.c (update_current_target): Update.
10977 * remote.c (remote_use_agent): Add 'self' argument.
10978 * inf-child.c (inf_child_use_agent): Add 'self' argument.
10979
a893e81f
TT
109802014-02-19 Tom Tromey <tromey@redhat.com>
10981
10982 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
10983 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
10984 (target_traceframe_info): Add argument.
10985 * target.c (update_current_target): Update.
10986 * remote.c (remote_traceframe_info): Add 'self' argument.
10987 * ctf.c (ctf_traceframe_info): Add 'self' argument.
10988
c686c57f
TT
109892014-02-19 Tom Tromey <tromey@redhat.com>
10990
10991 * target.h (target_static_tracepoint_markers_by_strid): Add
10992 argument.
10993 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
10994 'self' argument.
10995 * target.c (update_current_target): Update.
10996 * remote.c (struct target_ops)
10997 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
10998 * linux-nat.c (struct target_ops)
10999 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
11000
61fc905d
TT
110012014-02-19 Tom Tromey <tromey@redhat.com>
11002
11003 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
11004 Add argument.
11005 (target_static_tracepoint_marker_at): Add argument.
11006 * target.c (update_current_target): Update.
11007 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
11008 argument.
11009
c378d69d
TT
110102014-02-19 Tom Tromey <tromey@redhat.com>
11011
11012 * target.h (struct target_ops) <to_set_permissions>: Add argument.
11013 (target_set_permissions): Add argument.
11014 * target.c (update_current_target): Update.
11015 * remote.c (remote_set_permissions): Add 'self' argument.
11016 (remote_start_remote): Update.
11017
bd7ae0f5
TT
110182014-02-19 Tom Tromey <tromey@redhat.com>
11019
11020 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
11021 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
11022 (target_get_tib_address): Add argument.
11023 * target.c (update_current_target): Update.
11024 * remote.c (remote_get_tib_address): Add 'self' argument.
11025
d9e68a2c
TT
110262014-02-19 Tom Tromey <tromey@redhat.com>
11027
11028 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
11029 (target_set_trace_notes): Add argument.
11030 * target.c (update_current_target): Update.
11031 * remote.c (remote_set_trace_notes): Add 'self' argument.
11032
4da384be
TT
110332014-02-19 Tom Tromey <tromey@redhat.com>
11034
11035 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
11036 argument.
11037 (target_set_trace_buffer_size): Add argument.
11038 * target.c (update_current_target): Update.
11039 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
11040
736d5b1f
TT
110412014-02-19 Tom Tromey <tromey@redhat.com>
11042
11043 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
11044 argument.
11045 (target_set_circular_trace_buffer): Add argument.
11046 * target.c (update_current_target): Update.
11047 * remote.c (remote_set_circular_trace_buffer): Add 'self'
11048 argument.
11049
37b25738
TT
110502014-02-19 Tom Tromey <tromey@redhat.com>
11051
11052 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
11053 argument.
11054 (target_set_disconnected_tracing): Add argument.
11055 * target.c (update_current_target): Update.
11056 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
11057
0e67620a
TT
110582014-02-19 Tom Tromey <tromey@redhat.com>
11059
11060 * target.h (struct target_ops)
11061 <to_get_min_fast_tracepoint_insn_len>: Add argument.
11062 (target_get_min_fast_tracepoint_insn_len): Add argument.
11063 * target.c (update_current_target): Update.
11064 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
11065 argument.
11066
88ee6f45
TT
110672014-02-19 Tom Tromey <tromey@redhat.com>
11068
11069 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
11070 argument.
11071 (target_get_raw_trace_data): Add argument.
11072 * target.c (update_current_target): Update.
11073 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
11074
181e3713
TT
110752014-02-19 Tom Tromey <tromey@redhat.com>
11076
11077 * target.h (struct target_ops) <to_upload_trace_state_variables>:
11078 Add argument.
11079 (target_upload_trace_state_variables): Add argument.
11080 * target.c (update_current_target): Update.
11081 * remote.c (remote_upload_trace_state_variables): Add 'self'
11082 argument.
11083 (remote_start_remote): Update.
11084
ab6617cc
TT
110852014-02-19 Tom Tromey <tromey@redhat.com>
11086
11087 * target.h (struct target_ops) <to_upload_tracepoints>: Add
11088 argument.
11089 (target_upload_tracepoints): Add argument.
11090 * target.c (update_current_target): Update.
11091 * remote.c (remote_upload_tracepoints): Add 'self' argument.
11092 (remote_start_remote): Update.
11093
dc3decaf
TT
110942014-02-19 Tom Tromey <tromey@redhat.com>
11095
11096 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
11097 (target_save_trace_data): Add argument.
11098 * target.c (update_current_target): Update.
11099 * remote.c (remote_save_trace_data): Add 'self' argument.
11100
4011015b
TT
111012014-02-19 Tom Tromey <tromey@redhat.com>
11102
11103 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
11104 argument.
11105 * target.h (struct target_ops)
11106 <to_get_trace_state_variable_value>: Add argument.
11107 (target_get_trace_state_variable_value): Add argument.
11108 * target.c (update_current_target): Update.
11109 * remote.c (remote_get_trace_state_variable_value): Add 'self'
11110 argument.
11111 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
11112
bd4c6793
TT
111132014-02-19 Tom Tromey <tromey@redhat.com>
11114
11115 * tracepoint.c (tfile_trace_find): Add 'self' argument.
11116 * target.h (struct target_ops) <to_trace_find>: Add argument.
11117 (target_trace_find): Add argument.
11118 * target.c (update_current_target): Update.
11119 * remote.c (remote_trace_find): Add 'self' argument.
11120 * ctf.c (ctf_trace_find): Add 'self' argument.
11121
74499f1b
TT
111222014-02-19 Tom Tromey <tromey@redhat.com>
11123
11124 * target.h (struct target_ops) <to_trace_stop>: Add argument.
11125 (target_trace_stop): Add argument.
11126 * target.c (update_current_target): Update.
11127 * remote.c (remote_trace_stop): Add 'self' argument.
11128
db90e85c
TT
111292014-02-19 Tom Tromey <tromey@redhat.com>
11130
11131 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
11132 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
11133 argument.
11134 (target_get_tracepoint_status): Add argument.
11135 * target.c (update_current_target): Update.
11136 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
11137
8bd200f1
TT
111382014-02-19 Tom Tromey <tromey@redhat.com>
11139
11140 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
11141 * target.h (struct target_ops) <to_get_trace_status>: Add
11142 argument.
11143 (target_get_trace_status): Add argument.
11144 * target.c (update_current_target): Update.
11145 * remote.c (remote_get_trace_status): Add 'self' argument.
11146 (remote_start_remote, remote_can_download_tracepoint): Update.
11147 * ctf.c (ctf_get_trace_status): Add 'self' argument.
11148
e2d1aae3
TT
111492014-02-19 Tom Tromey <tromey@redhat.com>
11150
11151 * target.h (struct target_ops) <to_trace_start>: Add argument.
11152 (target_trace_start): Add argument.
11153 * target.c (update_current_target): Update.
11154 * remote.c (remote_trace_start): Add 'self' argument.
11155
583f9a86
TT
111562014-02-19 Tom Tromey <tromey@redhat.com>
11157
11158 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
11159 Add argument.
11160 (target_trace_set_readonly_regions): Add argument.
11161 * target.c (update_current_target): Update.
11162 * remote.c (remote_trace_set_readonly_regions): Add 'self'
11163 argument.
11164
780b049c
TT
111652014-02-19 Tom Tromey <tromey@redhat.com>
11166
11167 * target.h (struct target_ops) <to_disable_tracepoint>: Add
11168 argument.
11169 (target_disable_tracepoint): Add argument.
11170 * target.c (update_current_target): Update.
11171 * remote.c (remote_disable_tracepoint): Add 'self' argument.
11172
46670d57
TT
111732014-02-19 Tom Tromey <tromey@redhat.com>
11174
11175 * target.h (struct target_ops) <to_enable_tracepoint>: Add
11176 argument.
11177 (target_enable_tracepoint): Add argument.
11178 * target.c (update_current_target): Update.
11179 * remote.c (remote_enable_tracepoint): Add 'self' argument.
11180
559d2b81
TT
111812014-02-19 Tom Tromey <tromey@redhat.com>
11182
11183 * target.h (struct target_ops) <to_download_trace_state_variable>:
11184 Add argument.
11185 (target_download_trace_state_variable): Add argument.
11186 * target.c (update_current_target): Update.
11187 * remote.c (remote_download_trace_state_variable): Add 'self'
11188 argument.
11189
a52a8357
TT
111902014-02-19 Tom Tromey <tromey@redhat.com>
11191
11192 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
11193 argument.
11194 (target_can_download_tracepoint): Add argument.
11195 * target.c (update_current_target): Update.
11196 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
11197
548f7808
TT
111982014-02-19 Tom Tromey <tromey@redhat.com>
11199
11200 * target.h (struct target_ops) <to_download_tracepoint>: Add
11201 argument.
11202 (target_download_tracepoint): Add argument.
11203 * target.c (update_current_target): Update.
11204 * remote.c (remote_download_tracepoint): Add 'self' argument.
11205
ecae04e1
TT
112062014-02-19 Tom Tromey <tromey@redhat.com>
11207
11208 * target.h (struct target_ops) <to_trace_init>: Add argument.
11209 (target_trace_init): Add argument.
11210 * target.c (update_current_target): Update.
11211 * remote.c (remote_trace_init): Add 'self' argument.
11212
fab5aa7c
TT
112132014-02-19 Tom Tromey <tromey@redhat.com>
11214
11215 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
11216 * target.c (target_fileio_readlink): Add argument.
11217 * remote.c (remote_hostio_readlink): Add 'self' argument.
11218 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
11219
dbbca37d
TT
112202014-02-19 Tom Tromey <tromey@redhat.com>
11221
11222 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
11223 * target.c (target_fileio_unlink): Add argument.
11224 * remote.c (remote_hostio_unlink): Add 'self' argument.
11225 (remote_file_delete): Update.
11226 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
11227
df39ea25
TT
112282014-02-19 Tom Tromey <tromey@redhat.com>
11229
11230 * target.h (struct target_ops) <to_fileio_close>: Add argument.
11231 * target.c (target_fileio_close): Add argument.
11232 * remote.c (remote_hostio_close): Add 'self' argument.
11233 (remote_hostio_close_cleanup): Update.
11234 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
11235 Update.
11236 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
11237
a3be983c
TT
112382014-02-19 Tom Tromey <tromey@redhat.com>
11239
11240 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
11241 * target.c (target_fileio_pread): Add argument.
11242 * remote.c (remote_hostio_pread): Add 'self' argument.
11243 (remote_bfd_iovec_pread, remote_file_get): Update.
11244 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
11245
0d866f62
TT
112462014-02-19 Tom Tromey <tromey@redhat.com>
11247
11248 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
11249 * target.c (target_fileio_pwrite): Add argument.
11250 * remote.c (remote_hostio_pwrite): Add 'self' argument.
11251 (remote_file_put): Update.
11252 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
11253
cd897586
TT
112542014-02-19 Tom Tromey <tromey@redhat.com>
11255
11256 * target.h (struct target_ops) <to_fileio_open>: Add argument.
11257 * target.c (target_fileio_open): Add argument.
11258 * remote.c (remote_hostio_open): Add 'self' argument.
11259 (remote_bfd_iovec_open): Add 'self' argument.
11260 (remote_file_put): Add 'self' argument.
11261 (remote_file_get): Add 'self' argument.
11262 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
11263
78eff0ec
TT
112642014-02-19 Tom Tromey <tromey@redhat.com>
11265
11266 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
11267 Add argument.
11268 (target_can_run_breakpoint_commands): Add argument.
11269 * target.c (update_current_target): Update.
11270 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
11271 argument.
11272 (remote_insert_breakpoint): Add 'self' argument.
11273 (remote_insert_hw_breakpoint): Add 'self' argument.
11274 (remote_can_run_breakpoint_commands): Add 'self' argument.
11275
efcc2da7
TT
112762014-02-19 Tom Tromey <tromey@redhat.com>
11277
11278 * target.h (struct target_ops)
11279 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
11280 (target_supports_evaluation_of_breakpoint_conditions): Add
11281 argument.
11282 * target.c (update_current_target): Update.
11283 * remote.c (remote_supports_cond_breakpoints): Add 'self'
11284 argument.
11285 (remote_insert_breakpoint): Add 'self' argument.
11286 (remote_insert_hw_breakpoint): Add 'self' argument.
11287 (remote_supports_cond_breakpoints): Add 'self' argument.
11288
6de37a3a
TT
112892014-02-19 Tom Tromey <tromey@redhat.com>
11290
11291 * target.h (struct target_ops) <to_supports_string_tracing>: Add
11292 argument.
11293 (target_supports_string_tracing): Add argument.
11294 * target.c (update_current_target): Update.
11295 * remote.c (remote_supports_string_tracing): Add 'self' argument.
11296
2bfc0540
TT
112972014-02-19 Tom Tromey <tromey@redhat.com>
11298
11299 * target.h (struct target_ops)
11300 <to_supports_disable_randomization>: Add argument.
11301 * target.c (find_default_supports_disable_randomization): Add
11302 argument.
11303 (target_supports_disable_randomization): Add argument.
11304 (find_default_supports_disable_randomization): Add 'self'
11305 argument.
11306 * remote.c (extended_remote_supports_disable_randomization): Add
11307 'self' argument.
11308 (remote_supports_disable_randomization): Add 'self' argument.
11309 (extended_remote_create_inferior): Update.
11310 * linux-nat.c (linux_nat_supports_disable_randomization): Add
11311 'self' argument.
11312
7d178d6a
TT
113132014-02-19 Tom Tromey <tromey@redhat.com>
11314
11315 * target.h (struct target_ops)
11316 <to_supports_enable_disable_tracepoint>: Add argument.
11317 (target_supports_enable_disable_tracepoint): Add argument.
11318 * target.c (update_current_target): Update.
11319 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
11320 argument.
11321
86ce2668
TT
113222014-02-19 Tom Tromey <tromey@redhat.com>
11323
11324 * target.h (struct target_ops) <to_supports_multi_process>: Add
11325 argument.
11326 (target_supports_multi_process): Add argument.
11327 * target.c (update_current_target): Update.
11328 * remote.c (remote_supports_multi_process): Add 'self' argument.
11329 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
11330 argument.
11331 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
11332 argument.
11333
4c612759
TT
113342014-02-19 Tom Tromey <tromey@redhat.com>
11335
11336 * target.h (struct target_ops) <to_execution_direction>: Add
11337 argument.
11338 (target_execution_direction): Add argument.
11339 * target.c (default_execution_direction): Add 'self' argument.
11340 * record-full.c (record_full_execution_direction): Add 'self'
11341 argument.
11342
19db3e69
TT
113432014-02-19 Tom Tromey <tromey@redhat.com>
11344
11345 * target.h (struct target_ops) <to_can_execute_reverse>: Add
11346 argument.
11347 (target_can_execute_reverse): Add argument.
11348 * remote.c (remote_can_execute_reverse): Add 'self' argument.
11349 * record-full.c (record_full_can_execute_reverse): Add 'self'
11350 argument.
11351 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
11352 argument.
11353
1e6b91a4
TT
113542014-02-19 Tom Tromey <tromey@redhat.com>
11355
11356 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
11357 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
11358 argument.
11359 (target_get_ada_task_ptid): Add argument.
11360 * target.c (update_current_target): Update.
11361 (default_get_ada_task_ptid): Add 'self' argument.
11362 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
11363 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
11364 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
11365 argument.
11366 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
11367 argument.
11368 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
11369 argument.
11370 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
11371 argument.
11372 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
11373 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
11374 argument.
11375
3c80fb48
TT
113762014-02-19 Tom Tromey <tromey@redhat.com>
11377
11378 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
11379 (target_goto_bookmark): Add argument.
11380 * target.c (dummy_goto_bookmark): Add 'self' argument.
11381 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
11382
dd0e2830
TT
113832014-02-19 Tom Tromey <tromey@redhat.com>
11384
11385 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
11386 (target_get_bookmark): Add argument.
11387 * target.c (dummy_get_bookmark): Add 'self' argument.
11388 * record-full.c (record_full_get_bookmark): Add 'self' argument.
11389
fc6691b2
TT
113902014-02-19 Tom Tromey <tromey@redhat.com>
11391
11392 * target.h (struct target_ops) <to_make_corefile_notes>: Add
11393 argument.
11394 (target_make_corefile_notes): Add argument.
11395 * target.c (dummy_make_corefile_notes): Add 'self' argument.
11396 * procfs.c (procfs_make_note_section): Add 'self' argument.
11397 (procfs_make_note_section): Add 'self' argument.
11398 (procfs_make_note_section): Add 'self' argument.
11399 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
11400 argument.
11401 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
11402 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
11403 * exec.c (exec_make_note_section): Add 'self' argument.
11404 (exec_make_note_section): Add 'self' argument.
11405
2e73927c
TT
114062014-02-19 Tom Tromey <tromey@redhat.com>
11407
11408 * target.h (struct target_ops) <to_find_memory_regions>: Add
11409 argument.
11410 (target_find_memory_regions): Add argument.
11411 * target.c (dummy_find_memory_regions): Add 'self' argument.
11412 * procfs.c (proc_find_memory_regions): Add 'self' argument.
11413 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
11414 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
11415 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
11416 * exec. (exec_do_find_memory_regions): New global.
11417 (exec_set_find_memory_regions): Rewrite.
11418 (exec_find_memory_regions): New function.
11419 (init_exec_ops): Use exec_find_memory_regions.
11420
2a9a2795
TT
114212014-02-19 Tom Tromey <tromey@redhat.com>
11422
11423 * target.h (struct target_ops) <to_supports_non_stop>: Add
11424 argument.
11425 * target.c (find_default_supports_non_stop): Add argument.
11426 (target_supports_non_stop): Add argument.
11427 (find_default_supports_non_stop): Add 'self' argument.
11428 * remote.c (remote_supports_non_stop): Add 'self' argument.
11429 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
11430
4ab76ea3
TT
114312014-02-19 Tom Tromey <tromey@redhat.com>
11432
11433 * target.h (struct target_ops) <to_log_command>: Add argument.
11434 (target_log_command): Add argument.
11435 * serial.h (serial_log_command): Add 'self' argument.
11436 * serial.c (serial_log_command): Add 'self' argument.
11437
8dd27370
TT
114382014-02-19 Tom Tromey <tromey@redhat.com>
11439
11440 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
11441 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
11442 argument.
11443 (target_pid_to_exec_file): Add argument.
11444 * target.c (debug_to_pid_to_exec_file): Add argument.
11445 (update_current_target): Update.
11446 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
11447 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
11448 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
11449 (linux_handle_extended_wait): Update.
11450 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
11451 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
11452 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
11453 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
11454
1aac633b
TT
114552014-02-19 Tom Tromey <tromey@redhat.com>
11456
11457 * target.h (struct target_ops) <to_rcmd>: Add argument.
11458 (target_rcmd): Add argument.
11459 * target.c (debug_to_rcmd): Add argument.
11460 (update_current_target, do_monitor_command): Update.
11461 * remote.c (remote_rcmd): Add 'self' argument.
11462 * monitor.c (monitor_rcmd): Add 'self' argument.
11463
1eab8a48
TT
114642014-02-19 Tom Tromey <tromey@redhat.com>
11465
11466 * windows-nat.c (windows_stop): Add 'self' argument.
11467 * target.h (struct target_ops) <to_stop>: Add argument.
11468 * target.c (target_stop): Add argument.
11469 (debug_to_stop): Add argument.
11470 (update_current_target): Update.
11471 * remote.c (remote_stop): Add 'self' argument.
11472 * remote-sim.c (gdbsim_stop): Add 'self' argument.
11473 (gdbsim_cntrl_c): Update.
11474 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
11475 * procfs.c (procfs_stop): Add 'self' argument.
11476 * nto-procfs.c (procfs_stop): Add 'self' argument.
11477 * monitor.c (monitor_stop): Add 'self' argument.
11478 (monitor_open): Update.
11479 * linux-nat.c (linux_nat_stop): Add argument.
11480 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
11481 * gnu-nat.c (gnu_stop): Add 'self' argument.
11482 * darwin-nat.c (darwin_stop): Add 'self' argument.
11483
503a628d
TT
114842014-02-19 Tom Tromey <tromey@redhat.com>
11485
11486 * target.h (struct target_ops) <to_thread_name>: Add argument.
11487 * target.c (target_thread_name): Add argument.
11488 (update_current_target): Update.
11489 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
11490
c15906d8
TT
114912014-02-19 Tom Tromey <tromey@redhat.com>
11492
11493 * target.h (struct target_ops) <to_extra_thread_info>: Add
11494 argument.
11495 (target_extra_thread_info): Add argument.
11496 * target.c (update_current_target): Update.
11497 * remote.c (remote_threads_extra_info): Add 'self' argument.
11498 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
11499 argument.
11500 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
11501 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
11502 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
11503 argument.
11504 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
11505 argument.
11506 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
11507 argument.
11508 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
11509 argument.
11510
daf5e9b6
TT
115112014-02-19 Tom Tromey <tromey@redhat.com>
11512
11513 * target.h (struct target_ops) <to_program_signals>: Add argument.
11514 * target.c (target_program_signals): Add argument.
11515 * remote.c (remote_program_signals): Add 'self' argument.
11516
94bedb42
TT
115172014-02-19 Tom Tromey <tromey@redhat.com>
11518
11519 * target.h (struct target_ops) <to_pass_signals>: Add argument.
11520 * target.c (target_pass_signals): Add argument.
11521 * remote.c (remote_pass_signals): Add 'self' argument.
11522 (remote_start_remote): Update.
11523 * procfs.c (procfs_pass_signals): Add 'self' argument.
11524 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
11525 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
11526 (linux_nat_create_inferior, linux_nat_attach): Update.
11527
da82bd6b
TT
115282014-02-19 Tom Tromey <tromey@redhat.com>
11529
11530 * windows-nat.c (windows_can_run): Add 'self' argument.
11531 * target.h (struct target_ops) <to_can_run>: Add argument.
11532 (target_can_run): Add argument.
11533 * target.c (debug_to_can_run): Add argument.
11534 (update_current_target): Update.
11535 * nto-procfs.c (procfs_can_run): Add 'self' argument.
11536 * inf-child.c (inf_child_can_run): Add 'self' argument.
11537 * go32-nat.c (go32_can_run): Add 'self' argument.
11538
d796e1d6
TT
115392014-02-19 Tom Tromey <tromey@redhat.com>
11540
11541 * target.h (struct target_ops) <to_has_exited>: Add argument.
11542 (target_has_exited): Add argument.
11543 * target.c (debug_to_has_exited): Add argument.
11544 (update_current_target): Update.
11545
ff214e67
TT
115462014-02-19 Tom Tromey <tromey@redhat.com>
11547
11548 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
11549 argument.
11550 (target_set_syscall_catchpoint): Add argument.
11551 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
11552 argument.
11553 * target.c (update_current_target): Update.
11554
758e29d2
TT
115552014-02-19 Tom Tromey <tromey@redhat.com>
11556
11557 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
11558 argument.
11559 (target_remove_exec_catchpoint): Add argument.
11560 * target.c (debug_to_remove_exec_catchpoint): Add argument.
11561 (update_current_target): Update.
11562 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
11563 argument.
11564
ba025e51
TT
115652014-02-19 Tom Tromey <tromey@redhat.com>
11566
11567 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
11568 argument.
11569 (target_insert_exec_catchpoint): Add argument.
11570 * target.c (debug_to_insert_exec_catchpoint): Add argument.
11571 (update_current_target): Update.
11572 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
11573 argument.
11574
e98cf0cd
TT
115752014-02-19 Tom Tromey <tromey@redhat.com>
11576
11577 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
11578 argument.
11579 (target_remove_vfork_catchpoint): Add argument.
11580 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
11581 (update_current_target): Update.
11582 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
11583 argument.
11584
3ecc7da0
TT
115852014-02-19 Tom Tromey <tromey@redhat.com>
11586
11587 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
11588 argument.
11589 (target_insert_vfork_catchpoint): Add argument.
11590 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
11591 (update_current_target): Update.
11592 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
11593 argument.
11594
973fc227
TT
115952014-02-19 Tom Tromey <tromey@redhat.com>
11596
11597 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
11598 argument.
11599 (target_remove_fork_catchpoint): Add argument.
11600 * target.c (debug_to_remove_fork_catchpoint): Add argument.
11601 (update_current_target): Update.
11602 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
11603 argument.
11604
a863b201
TT
116052014-02-19 Tom Tromey <tromey@redhat.com>
11606
11607 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
11608 argument.
11609 (target_insert_fork_catchpoint): Add argument.
11610 * target.c (debug_to_insert_fork_catchpoint): Add argument.
11611 (update_current_target): Update.
11612 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
11613 argument.
11614
2e97a79e
TT
116152014-02-19 Tom Tromey <tromey@redhat.com>
11616
11617 * target.h (struct target_ops) <to_post_startup_inferior>: Add
11618 argument.
11619 (target_post_startup_inferior): Add argument.
11620 * target.c (debug_to_post_startup_inferior): Add argument.
11621 (update_current_target): Update.
11622 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
11623 argument.
11624 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
11625 argument.
11626 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
11627 argument.
11628 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
11629 argument.
11630 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
11631 'self' argument.
11632 (super_post_startup_inferior): Likewise.
11633 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
11634 'self' argument.
11635 (super_post_startup_inferior): Likewise.
11636 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
11637 Add 'self' argument.
11638 (super_post_startup_inferior): Likewise.
11639
71a9f134
TT
116402014-02-19 Tom Tromey <tromey@redhat.com>
11641
11642 * target.h (struct target_ops) <to_load>: Add argument.
11643 * target.c (target_load): Add argument.
11644 (debug_to_load): Add argument.
11645 (update_current_target): Update.
11646 * remote.c (remote_load): Add 'self' argument.
11647 * remote-sim.c (gdbsim_load): Add 'self' argument.
11648 * remote-mips.c (mips_load): Add 'self' argument.
11649 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
11650 * monitor.c (monitor_load): Add 'self' argument.
11651 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
11652
0a4f40a2
TT
116532014-02-19 Tom Tromey <tromey@redhat.com>
11654
11655 * target.h (struct target_ops) <to_terminal_info>: Add argument.
11656 (target_terminal_info): Add argument.
11657 * target.c (debug_to_terminal_info): Add argument.
11658 (default_terminal_info): Likewise.
11659 * inflow.c (child_terminal_info): Add 'self' argument.
11660 * inferior.h (child_terminal_info): Add 'self' argument.
11661 * go32-nat.c (go32_terminal_info): Add 'self' argument.
11662
ae3bd431
TT
116632014-02-19 Tom Tromey <tromey@redhat.com>
11664
11665 * target.h (struct target_ops) <to_terminal_save_ours>: Add
11666 argument.
11667 (target_terminal_save_ours): Add argument.
11668 * target.c (debug_to_terminal_save_ours): Add argument.
11669 (update_current_target): Update.
11670 * inflow.c (terminal_save_ours): Add 'self' argument.
11671 * inferior.h (terminal_save_ours): Add 'self' argument.
11672
e3594fd1
TT
116732014-02-19 Tom Tromey <tromey@redhat.com>
11674
11675 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
11676 (target_terminal_ours): Add argument.
11677 * target.c (debug_to_terminal_ours): Add argument.
11678 (update_current_target): Update.
11679 * remote.c (remote_terminal_ours): Add 'self' argument.
11680 (remote_close): Update.
11681 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
11682 * inflow.c (terminal_ours): Add 'self' argument.
11683 * inferior.h (terminal_ours): Add 'self' argument.
11684 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11685
2e1e1a19
TT
116862014-02-19 Pedro Alves <palves@redhat.com>
11687 Tom Tromey <tromey@redhat.com>
11688
11689 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
11690 argument.
11691 (target_terminal_ours_for_output): Add argument.
11692 * target.c (debug_to_terminal_ours_for_output): Add argument.
11693 (update_current_target): Update.
11694 * inflow.c (terminal_ours_for_output): Add 'self' argument.
11695 * inferior.h (terminal_ours_for_output): Add 'self' argument.
11696 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11697
d2f640d4
TT
116982014-02-19 Tom Tromey <tromey@redhat.com>
11699
11700 * target.h (struct target_ops) <to_terminal_inferior>: Add
11701 argument.
11702 * target.c (target_terminal_inferior): Add argument.
11703 (update_current_target): Update.
11704 * remote.c (remote_terminal_inferior): Add 'self' argument.
11705 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
11706 * inflow.c (terminal_inferior): Add 'self' argument.
11707 * inferior.h (terminal_inferior): Add 'self' argument.
11708 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
11709 (go32_terminal_inferior): Add 'self' argument.
11710
c42bf286
TT
117112014-02-19 Tom Tromey <tromey@redhat.com>
11712
11713 * target.h (struct target_ops) <to_terminal_init>: Add argument.
11714 (target_terminal_init): Add argument.
11715 * target.c (debug_to_terminal_init): Add argument.
11716 (update_current_target): Update.
11717 * inflow.c (terminal_init_inferior): Add 'self' argument.
11718 * inferior.h (terminal_init_inferior): Add 'self' argument.
11719 * go32-nat.c (go32_terminal_init): Add 'self' argument.
11720 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
11721
c3a5ff89
TT
117222014-02-19 Tom Tromey <tromey@redhat.com>
11723
11724 * target.h (struct target_ops)
11725 <to_can_accel_watchpoint_condition>: Add argument.
11726 (target_can_accel_watchpoint_condition): Add argument.
11727 * target.c (debug_to_can_accel_watchpoint_condition): Add
11728 argument.
11729 (update_current_target): Update.
11730 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
11731 'self' argument.
11732
31568a15
TT
117332014-02-19 Tom Tromey <tromey@redhat.com>
11734
11735 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11736 Add argument.
11737 (target_region_ok_for_hw_watchpoint): Add argument.
11738 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
11739 (default_region_ok_for_hw_watchpoint): Add argument.
11740 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
11741 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
11742 argument.
11743 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
11744 argument.
11745 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
11746 argument.
11747 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
11748 'self' argument.
11749 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
11750 'self' argument.
11751 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
11752 'self' argument.
11753 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
11754 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
11755 'self' argument.
11756 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
11757 Add 'self' argument.
11758
7bb99c53
TT
117592014-02-19 Tom Tromey <tromey@redhat.com>
11760
11761 * target.h (struct target_ops) <to_insert_watchpoint>: Add
11762 argument.
11763 (target_insert_watchpoint): Add argument.
11764 * target.c (debug_to_insert_watchpoint): Add argument.
11765 (update_current_target): Update.
11766 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
11767 * remote.c (remote_insert_watchpoint): Add 'self' argument.
11768 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
11769 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
11770 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
11771 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
11772 argument.
11773 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
11774 (procfs_insert_hw_watchpoint): Add 'self' argument.
11775 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
11776 argument.
11777 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
11778 argument.
11779 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
11780 argument.
11781 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
11782 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
11783 argument.
11784 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
11785 'self' argument.
11786
11b5219a
TT
117872014-02-19 Tom Tromey <tromey@redhat.com>
11788
11789 * target.h (struct target_ops) <to_remove_watchpoint>: Add
11790 argument.
11791 (target_remove_watchpoint): Add argument.
11792 * target.c (debug_to_remove_watchpoint): Add argument.
11793 (update_current_target): Update.
11794 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
11795 * remote.c (remote_remove_watchpoint): Add 'self' argument.
11796 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
11797 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
11798 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
11799 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
11800 argument.
11801 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
11802 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
11803 argument.
11804 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
11805 argument.
11806 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
11807 argument.
11808 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
11809 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
11810 argument.
11811 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
11812 'self' argument.
11813
a64dc96c
TT
118142014-02-19 Tom Tromey <tromey@redhat.com>
11815
11816 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
11817 argument.
11818 (target_remove_hw_breakpoint): Add argument.
11819 * target.c (debug_to_remove_hw_breakpoint): Add argument.
11820 (update_current_target): Update.
11821 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
11822 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
11823 argument.
11824 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
11825 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
11826 argument.
11827 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
11828 'self' argument.
11829
23a26771
TT
118302014-02-19 Tom Tromey <tromey@redhat.com>
11831
11832 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
11833 argument.
11834 (target_insert_hw_breakpoint): Add argument.
11835 * target.c (debug_to_insert_hw_breakpoint): Add argument.
11836 (update_current_target): Update.
11837 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
11838 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
11839 argument.
11840 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
11841 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
11842 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
11843 argument.
11844 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
11845 'self' argument.
11846
5461485a
TT
118472014-02-19 Tom Tromey <tromey@redhat.com>
11848
11849 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
11850 argument.
11851 (target_can_use_hardware_watchpoint): Add argument.
11852 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
11853 (update_current_target): Update.
11854 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
11855 argument.
11856 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
11857 argument.
11858 * remote.c (remote_check_watch_resources): Add 'self' argument.
11859 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
11860 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
11861 argument.
11862 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
11863 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
11864 argument.
11865 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
11866 argument.
11867 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
11868 argument.
11869 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
11870 argument.
11871 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
11872 argument.
11873 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
11874 argument.
11875 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
11876 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
11877 argument.
11878 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
11879 'self' argument.
11880
f045800c
TT
118812014-02-19 Tom Tromey <tromey@redhat.com>
11882
11883 * target.h (struct target_ops) <to_post_attach>: Add argument.
11884 (target_post_attach): Add argument.
11885 * target.c (debug_to_post_attach): Add argument.
11886 (update_current_target): Update.
11887 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
11888 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
11889 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
11890 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
11891 * inf-child.c (inf_child_post_attach): Add 'self' argument.
11892
de90e03d
TT
118932014-02-19 Tom Tromey <tromey@redhat.com>
11894
11895 * windows-nat.c (windows_close): Add 'self' argument.
11896 * tracepoint.c (tfile_close): Add 'self' argument.
11897 * target.h (struct target_ops) <to_close>: Add argument.
11898 * target.c (target_close): Add argument.
11899 (update_current_target): Update.
11900 * remote.c (remote_close): Add 'self' argument.
11901 * remote-sim.c (gdbsim_close): Add 'self' argument.
11902 * remote-mips.c (mips_close): Add 'self' argument.
11903 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
11904 * record-full.c (record_full_close): Add 'self' argument.
11905 * record-btrace.c (record_btrace_close): Add 'self' argument.
11906 * monitor.h (monitor_close): Add 'self' argument.
11907 * monitor.c (monitor_close): Add 'self' argument.
11908 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
11909 * linux-nat.c (linux_nat_close): Add argument.
11910 * go32-nat.c (go32_close): Add 'self' argument.
11911 * exec.c (exec_close_1): Add 'self' argument.
11912 * ctf.c (ctf_close): Add 'self' argument.
11913 * corelow.c (core_close): Add 'self' argument.
11914 (core_close_cleanup): Update.
11915 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
11916 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
11917
9dd130a0
TT
119182014-02-19 Tom Tromey <tromey@redhat.com>
11919
11920 * remote.c (remote_load): New function.
11921 (init_remote_ops): Use it.
11922
46917d26
TT
119232014-02-19 Tom Tromey <tromey@redhat.com>
11924
11925 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
11926 argument.
11927 * common/linux-btrace.h (linux_supports_btrace): Update.
11928 * remote.c (remote_supports_btrace): Add "self" argument.
11929 * target-delegates.c: Rebuild.
11930 * target.c (target_supports_btrace): Remove.
11931 * target.h (struct target_ops) <to_supports_btrace>: Add
11932 target_ops argument.
11933 (target_supports_btrace): New define.
11934
6b84065d
TT
119352014-02-19 Tom Tromey <tromey@redhat.com>
11936
11937 * record-full.c (record_full_beneath_to_resume_ops)
11938 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
11939 (record_full_beneath_to_wait)
11940 (record_full_beneath_to_store_registers_ops)
11941 (record_full_beneath_to_store_registers)
11942 (record_full_beneath_to_xfer_partial_ops)
11943 (record_full_beneath_to_xfer_partial)
11944 (record_full_beneath_to_insert_breakpoint_ops)
11945 (record_full_beneath_to_insert_breakpoint)
11946 (record_full_beneath_to_remove_breakpoint_ops)
11947 (record_full_beneath_to_remove_breakpoint)
11948 (record_full_beneath_to_stopped_by_watchpoint)
11949 (record_full_beneath_to_stopped_data_address)
11950 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
11951 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
11952 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
11953 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
11954 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
11955 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
11956 (tmp_to_stopped_data_address, tmp_to_async): Remove.
11957 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
11958 (record_full_resume, record_full_wait_1)
11959 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
11960 (record_full_store_registers, record_full_xfer_partial)
11961 (record_full_insert_breakpoint, record_full_remove_breakpoint)
11962 (record_full_async, record_full_core_xfer_partial): Use target
11963 delegation.
11964 * target-delegates.c: Rebuild.
11965 * target.c (current_xfer_partial): Remove.
11966 (update_current_target): Do not INHERIT or de_fault
11967 to_insert_breakpoint, to_remove_breakpoint,
11968 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
11969 to_is_async_p, to_async. Do not set to_xfer_partial field.
11970 (default_xfer_partial): Simplify.
11971 (current_xfer_partial): Remove.
11972 (target_wait, target_resume): Simplify.
11973 (find_default_can_async_p, find_default_is_async_p): Update.
11974 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
11975 to_xfer_partial, to_stopped_by_watchpoint,
11976 to_stopped_data_address.
11977 (target_store_registers): Simplify.
11978 (forward_target_remove_breakpoint)
11979 (forward_target_insert_breakpoint): Remove.
11980 (target_remove_breakpoint, target_insert_breakpoint)
11981 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
11982 * target.h (struct target_ops) <to_resume, to_wait,
11983 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
11984 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
11985 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
11986 markup.
11987 (forward_target_remove_breakpoint)
11988 (forward_target_insert_breakpoint): Remove.
11989 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
11990 directly.
11991 (record_btrace_insert_breakpoint): Delegate directly.
11992
1101cb7b
TT
119932014-02-19 Tom Tromey <tromey@redhat.com>
11994
11995 PR build/7701:
11996 * target-delegates.c: New file.
11997 * target.c: Include target-delegates.c.
11998 (init_dummy_target): Call install_dummy_methods.
11999 (complete_target_initialization): Call install_delegators.
12000 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
12001 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
12002 * make-target-delegates: New file.
12003
8b06beed
TT
120042014-02-19 Tom Tromey <tromey@redhat.com>
12005
12006 * record.c (find_record_target): Use find_target_at.
12007 * target.c (find_target_at): New function.
12008 * target.h (find_target_at): Declare.
12009
6a109b6b
TT
120102014-02-19 Tom Tromey <tromey@redhat.com>
12011
12012 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
12013 Add 'ops' argument.
12014 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
12015 'ops' argument.
12016 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
12017 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
12018 'ops' argument.
12019 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
12020 argument.
12021 * linux-nat.c (save_sigtrap): Update.
12022 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
12023 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
12024 (linux_nat_close): Update.
12025 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
12026 argument.
12027 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
12028 argument.
12029 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
12030 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
12031 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
12032 (tmp_to_async): Add 'ops' argument.
12033 (record_full_stopped_by_watchpoint, record_full_async)
12034 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
12035 argument.
12036 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
12037 (m32r_stopped_by_watchpoint): Add 'ops' argument.
12038 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
12039 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
12040 (remote_is_async_p, remote_async): Add 'ops' argument.
12041 (remote_stopped_data_address): Update.
12042 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
12043 * target.c (update_current_target)
12044 (find_default_can_async_p, find_default_is_async_p): Update.
12045 (init_dummy_target): Update.
12046 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
12047 * target.h (struct target_ops) <to_stopped_by_watchpoint,
12048 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
12049 (target_can_async_p, target_is_async_p, target_async)
12050 (target_stopped_by_watchpoint): Update.
12051
e095146b
YQ
120522014-02-19 Yao Qi <yao@codesourcery.com>
12053
12054 PR gdb/16220
12055 * gdbarch.sh: Remove startup_gdbarch.
12056 * gdbarch.c: Regenerated.
12057 * gdbarch.h: Likewise.
12058
bc3c6b36
KB
120592014-02-17 Kevin Buettner <kevinb@redhat.com>
12060
12061 * rl78-tdep.c (rl78_g10_register_name): New function.
12062 (rl78_return_value): Add g10 support.
12063 (rl78_gdbarch_init): Register rl78_g10_register_name for the
12064 g10.
12065
98dc0167 120662014-02-17 Doug Evans <xdje42@gmail.com>
f01c1940
DE
12067
12068 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
12069 (SUBDIR_GUILE_SRCS): Ditto.
12070 (scm-gsmob.o): Ditto.
12071
842c05cd
YQ
120722014-02-17 Yao Qi <yao@codesourcery.com>
12073
12074 * gnu-nat.c (ILL_RPC): Declare defined function.
12075
25c0bd04
YQ
120762014-02-17 Yao Qi <yao@codesourcery.com>
12077
12078 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
12079 mach_msg_type_number_t.
12080 (gnu_write_inferior): Likewise.
12081
a9a758e3
YQ
120822014-02-17 Yao Qi <yao@codesourcery.com>
12083
12084 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
12085 in format string.
12086 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
12087 (inf_validate_procs, inf_signal): Likewise.
12088 (S_exception_raise_request): Likewise.
12089 (do_mach_notify_dead_name): Likewise.
12090 (steal_exc_port): Likewise.
12091 (gnu_read_inferior): Change 'copy_count''s type to
12092 mach_msg_type_number_t.
12093 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
12094 format string.
12095
bae8023e
TS
120962014-02-16 Thomas Schwinge <thomas@codesourcery.com>
12097
c82f56d9
TS
12098 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
12099 flag. Adjust all users; in particular...
12100 (gnu_wait): ..., don't decrement its value in here...
12101 (gnu_create_inferior): ..., and instead set the flag in here,
12102 around the startup_inferior call, and call that one with
12103 START_INFERIOR_TRAPS_EXPECTED.
12104
3398af6a
TS
12105 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
12106 (ILL_RPC): ... new macro.
12107 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
12108 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
12109 (do_mach_notify_send_once, S_proc_setmsgport_reply)
12110 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
12111 functions with ILL_RPC macro.
12112 (S_proc_pid2task_reply, S_proc_task2pid_reply)
12113 (S_proc_task2proc_reply, S_proc_proc2task_reply)
12114 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
12115 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
12116 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
12117 (S_proc_getlogin_reply, S_proc_getsid_reply)
12118 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
12119 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
12120 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
12121 (S_proc_getnports_reply, S_proc_is_important_reply)
12122 (S_proc_get_code_reply): New stub functions, generated with
12123 ILL_RPC macro.
12124
d47642c9
TS
12125 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
12126 collected the type check structures.
12127
bae8023e
TS
12128 * reply_mig_hack.awk: Don't expect to see the auto keyword.
12129
8a55ffb0
DE
121302014-02-14 Doug Evans <dje@google.com>
12131
12132 * target.c (target_write_partial): Fix result type.
12133
c2853f3d
JM
121342014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
12135
12136 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
12137 the proper offsets to access fpregset_t.
12138
ac61d2db
SA
121392014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
12140
12141 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
12142 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
12143 * h8300-tdep.c (setmachinelist): Remove global.
12144 * hppa-tdep.c (hppa_sigtramp): Remove global.
12145 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
12146 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
12147 * ravenscar-thread.c (update_target_observer): Remove global.
12148 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
12149
9d2d0b8b
TT
121502014-02-12 Tom Tromey <tromey@redhat.com>
12151
12152 * common/rsp-low.c: Update comments.
12153 * common/rsp-low.h: Update comments.
12154
a7191e8b
TT
121552014-02-12 Tom Tromey <tromey@redhat.com>
12156
12157 * common/rsp-low.c (convert_ascii_to_int): Remove.
12158 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
12159
ff0e980e
TT
121602014-02-12 Tom Tromey <tromey@redhat.com>
12161
12162 * common/rsp-low.h (unhexify): Don't declare.
12163 * common/rsp-low.c (unhexify): Remove.
12164
e9371aff
TT
121652014-02-12 Tom Tromey <tromey@redhat.com>
12166
12167 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
12168 * common/rsp-low.c (convert_int_to_ascii): Remove.
12169
971dc0b8
TT
121702014-02-12 Tom Tromey <tromey@redhat.com>
12171
12172 * common/rsp-low.h (hexify): Don't declare.
12173 * common/rsp-low.c (hexify): Remove.
12174
0a822afb
TT
121752014-02-12 Tom Tromey <tromey@redhat.com>
12176
12177 * common/rsp-low.c (hexify): Never take strlen of argument.
12178
9f1b45b0
TT
121792014-02-12 Tom Tromey <tromey@redhat.com>
12180
12181 * common/rsp-low.c (bin2hex): Never take strlen of argument.
12182 * remote.c (extended_remote_run, remote_rcmd)
12183 (remote_download_trace_state_variable, remote_save_trace_data)
12184 (remote_set_trace_notes): Update.
12185 * tracepoint.c (encode_source_string, tfile_write_status)
12186 (tfile_write_uploaded_tsv): Update.
12187
9c3d6531
TT
121882014-02-12 Tom Tromey <tromey@redhat.com>
12189
12190 * tracepoint.c: Include rsp-low.h.
12191 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
12192 * remote.c: Include rsp-low.h.
12193 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
12194 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
12195 (remote_unescape_input): Move to common/rsp-low.c.
12196 * common/rsp-low.h: New file.
12197 * common/rsp-low.c: New file.
12198 * Makefile.in (SFILES): Add common/rsp-low.c.
12199 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
12200 (COMMON_OBS): Add rsp-low.o.
12201 (rsp-low.o): New target.
12202
01fd3ea5
TT
122032014-02-12 Tom Tromey <tromey@redhat.com>
12204
12205 * utils.h: Include print-utils.h.
12206 (host_address_to_string, plongest, pulongest, phex, phex_nz)
12207 (int_string, core_addr_to_string, core_addr_to_string_nz)
12208 (hex_string, hex_string_custom): Don't declare.
12209 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
12210 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
12211 (hex_string_custom, int_string, core_addr_to_string)
12212 (core_addr_to_string_nz, host_address_to_string): Move to
12213 common/print-utils.c.
12214 * common/print-utils.h: New file.
12215 * common/print-utils.c: New file
12216 * Makefile.in (SFILES): Add common/print-utils.c.
12217 (HFILES_NO_SRCDIR): Add common/print-utils.h.
12218 (COMMON_OBS): Add print-utils.o.
12219 (print-utils.o): New target.
12220
9fb50108
TT
122212014-02-12 Tom Tromey <tromey@redhat.com>
12222
12223 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
12224
0548b5db
MK
122252014-02-12 Mark Kettenis <kettenis@gnu.org>
12226
12227 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
12228
493443a4
MK
122292014-02-12 Mark Kettenis <kettenis@gnu.org>
12230
12231 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
12232 if a PT_IO ptrace request returns sucessfully but indicates that 0
12233 bytes were transferred.
12234
706d0883
PA
122352014-02-12 Pedro Alves <palves@redhat.com>
12236 Kevin Buettner <kevinb@redhat.com>
12237
12238 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
12239 TYPE_INSTANCE_FLAG_CODE_SPACE.
12240
5caa2f0b
PA
122412014-02-12 Pedro Alves <palves@redhat.com>
12242
12243 * h8300-tdep.c (pseudo_from_raw_register)
12244 (raw_from_pseudo_register): New functions.
12245 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
12246 them.
12247
76fd5f74
PA
122482014-02-12 Pedro Alves <palves@redhat.com>
12249
12250 * h8300-tdep.c (h8300_register_sim_regno): New function.
12251 (h8300_gdbarch_init): Install h8300_register_sim_regno as
12252 gdbarch_register_sim_regno hook.
12253
8f008406
SA
122542014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
12255
12256 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
12257
195abc10
SA
122582014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
12259
12260 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
12261
93ffa5b9
MK
122622014-02-12 Mark Kettenis <kettenis@gnu.org>
12263
12264 * obsd-tdep.h (obsd_init_abi): New prototype.
12265 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
12266 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
12267 (obsd_init_abi): New functions.
12268 * i386obsd-tdep.c: Include "obsd-tdep.h".
12269 (i386obsd_init_abi): Call obsd_init_abi.
12270 * amd64obsd-tdep.c: Include "obsd-tdep.h".
12271 (amd64obsd_init_abi): Call obsd_init_abi.
12272 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
12273 obsd-tdep.c to gdb_target_obs.
12274
49caec94
JM
122752014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
12276
12277 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
12278 double float arguments to 16-byte in the argument slots.
12279
e1402065
DE
122802014-02-11 Doug Evans <xdje42@gmail.com>
12281
12282 * configure.ac: Don't crash if pkg-config is not found and guile
12283 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
12284 in guile checks.
12285 * configure: Regenerate.
12286
edcc890f
YQ
122872014-02-11 Yao Qi <yao@codesourcery.com>
12288
12289 * aix-thread.c (aix_thread_xfer_partial): Update comments.
12290 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
12291 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
12292 * gnu-nat.c (gnu_xfer_memory): Likewise.
12293 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
12294 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12295 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12296 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12297
9b409511
YQ
122982014-02-11 Yao Qi <yao@codesourcery.com>
12299
12300 * target.h (enum target_xfer_error): Rename to ...
12301 (enum target_xfer_status): ... it. New. All users updated.
12302 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
12303 New.
12304 (TARGET_XFER_STATUS_ERROR_P): New macro.
12305 (target_xfer_error_to_string): Remove declaration.
12306 (target_xfer_status_to_string): Declare.
12307 (target_xfer_partial_ftype): Adjust it.
12308 (struct target_ops) <to_xfer_partial>: Return
12309 target_xfer_status. Add argument xfered_len. Update
12310 comments.
12311 * target.c (target_xfer_error_to_string): Rename to ...
12312 (target_xfer_status_to_string): ... it. New. All callers
12313 updated.
12314 (target_read_live_memory): Likewise. Call target_xfer_partial
12315 instead of target_read.
12316 (memory_xfer_live_readonly_partial): Return
12317 target_xfer_status. Add argument xfered_len.
12318 (raw_memory_xfer_partial): Likewise.
12319 (memory_xfer_partial_1): Likewise.
12320 (memory_xfer_partial): Likewise.
12321 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
12322 properly. Update debug message.
12323 (default_xfer_partial, current_xfer_partial): Likewise.
12324 (target_write_partial): Likewise.
12325 (target_read_partial): Likewise. All callers updated.
12326 (read_whatever_is_readable): Likewise.
12327 (target_write_with_progress): Likewise.
12328 (target_read_alloc_1): Likewise.
12329
12330 * aix-thread.c (aix_thread_xfer_partial): Likewise.
12331 * auxv.c (procfs_xfer_auxv): Likewise.
12332 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
12333 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12334 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12335 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
12336 * corefile.c (read_memory): Adjust.
12337 * corelow.c (core_xfer_partial): Likewise.
12338 * ctf.c (ctf_xfer_partial): Likewise.
12339 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
12340 updated.
12341 (darwin_xfer_partial): Likewise.
12342 * exec.c (section_table_xfer_memory_partial): Likewise. All
12343 callers updated.
12344 (exec_xfer_partial): Likewise.
12345 * exec.h (section_table_xfer_memory_partial): Update
12346 declaration.
12347 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
12348 negative.
12349 (gnu_xfer_partial): Likewise.
12350 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
12351 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
12352 (ia64_hpux_xfer_solib_got): Likewise.
12353 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
12354 type of 'partial_len' to ULONGEST.
12355 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
12356 * linux-nat.c (linux_xfer_siginfo ): Likewise.
12357 (linux_nat_xfer_partial): Likewise.
12358 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
12359 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
12360 * monitor.c (monitor_xfer_memory): Likewise.
12361 (monitor_xfer_partial): Likewise.
12362 * procfs.c (procfs_xfer_partial): Likewise.
12363 * record-btrace.c (record_btrace_xfer_partial): Likewise.
12364 * record-full.c (record_full_xfer_partial): Likewise.
12365 (record_full_core_xfer_partial): Likewise.
12366 * remote-sim.c (gdbsim_xfer_memory): Likewise.
12367 (gdbsim_xfer_partial): Likewise.
12368 * remote.c (remote_write_bytes_aux): Likewise. All callers
12369 updated.
12370 (remote_write_bytes, remote_read_bytes): Likewise. All
12371 callers updated.
12372 (remote_flash_erase): Likewise. All callers updated.
12373 (remote_write_qxfer): Likewise. All callers updated.
12374 (remote_read_qxfer): Likewise. All callers updated.
12375 (remote_xfer_partial): Likewise.
12376 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12377 (rs6000_xfer_shared_libraries): Likewise.
12378 * sol-thread.c (sol_thread_xfer_partial): Likewise.
12379 (sol_thread_xfer_partial): Likewise.
12380 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12381 (sparc_xfer_partial): Likewise.
12382 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
12383 updated.
12384 (spu_xfer_partial): Likewise.
12385 * spu-multiarch.c (spu_xfer_partial): Likewise.
12386 * tracepoint.c (tfile_xfer_partial): Likewise.
12387 * windows-nat.c (windows_xfer_memory): Likewise.
12388 (windows_xfer_shared_libraries): Likewise.
12389 (windows_xfer_partial): Likewise.
12390 * valprint.c: Replace 'target_xfer_error' with
12391 'target_xfer_status' in comments.
12392
a8e63083
JB
123932014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
12394
12395 Checked in by Joel Brobecker <brobecker@adacore.com>.
12396 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
12397
e86b67d3
JB
123982014-02-11 Joel Brobecker <brobecker@adacore.com>
12399
12400 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
12401 function parameters.
12402
4b7d1f7f
WN
124032014-02-10 Will Newton <will.newton@linaro.org>
12404
12405 * elfread.c (elf_rel_plt_read): Look for a .got section if
12406 looking up .got.plt fails.
12407 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
12408 on address passed to elf_gnu_ifunc_record_cache.
12409 (elf_gnu_ifunc_resolve_addr): Likewise.
12410 (elf_gnu_ifunc_resolver_return_stop): Likewise.
12411
961842b2
JM
124122014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
12413
12414 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
12415 (X_RETTURN): New macro.
12416 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
12417
12418 * sparc64-tdep.c (sparc64_init_abi): Hook
12419 sparc_in_function_epilogue_p.
12420
3f03e7b1
GB
124212014-02-10 Gary Benson <gbenson@redhat.com>
12422
12423 * symfile-debug.c (debug_qf_expand_symtabs_matching):
12424 Rename name_matcher to symbol_matcher.
12425
96f861ef
GB
124262014-02-10 Gary Benson <gbenson@redhat.com>
12427
12428 * symfile-debug.c (debug_qf_expand_symtabs_matching):
12429 Use expand_symtabs_file_matcher_ftype and
12430 expand_symtabs_symbol_matcher_ftype.
12431
ee01b665
JB
124322014-02-10 Joel Brobecker <brobecker@adacore.com>
12433
12434 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
12435 (struct ada_symbol_cache): New.
12436 (ada_free_symbol_cache): Forward declare.
12437 (struct ada_pspace_data): New.
12438 (ada_pspace_data_handle): New static global.
12439 (get_ada_pspace_data, ada_pspace_data_cleanup)
12440 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
12441 (cache_space, cache): Delete, now folded inside struct
12442 ada_pspace_data.
12443 (ada_get_symbol_cache): New function.
12444 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
12445 implementation.
12446 (_initialize_ada_language): Remove initialization of cache_space.
12447 Move call to observer_attach_inferior_exit up, grouping it
12448 with the other observer registrations inside this function.
12449 Rename command to be more general. Add call to
12450 register_program_space_data_with_cleanup.
12451
143adbbf
JB
124522014-02-10 Joel Brobecker <brobecker@adacore.com>
12453
12454 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
12455 ada_new_objfile_observer.
12456 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
12457 (_initialize_tasks): Update uses of ada_new_objfile_observer
12458 and ada_tasks_normal_stop_observer.
12459
aa4fb036
JB
124602014-02-10 Joel Brobecker <brobecker@adacore.com>
12461
12462 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
12463 returned by the 'Length attribute to integer.
12464
9dee8cc6
JB
124652014-02-10 Joel Brobecker <brobecker@adacore.com>
12466
12467 * ada-lang.c (_initialize_ada_language): Initialize
12468 cache_space obstack.
12469
3d9434b5
JB
124702014-02-10 Joel Brobecker <brobecker@adacore.com>
12471
12472 * ada-lang.c (HASH_SIZE): New macro.
12473 (struct cache_entry): New type.
12474 (cache_space, cache): New static globals.
12475 (ada_clear_symbol_cache, find_entry): New functions.
12476 (lookup_cached_symbol, cache_symbol): Implement.
12477 (ada_new_objfile_observer, ada_free_objfile_observer): New.
12478 (_initialize_ada_language): Attach ada_new_objfile_observer
12479 and ada_free_objfile_observer.
12480
f0c5f9b2
JB
124812014-02-10 Joel Brobecker <brobecker@adacore.com>
12482
12483 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
12484 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
12485 struct block * parameter.
12486 (ada_lookup_symbol_list_worker): Constify local variable "block".
12487 Remove cast which is no longer necessary.
12488
ed3ef339
DE
124892014-02-10 Doug Evans <xdje42@gmail.com>
12490
12491 Add Guile as an extension language.
12492 * NEWS: Mention Guile scripting.
12493 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
12494 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
12495 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
12496 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
12497 (CLIBS): Add GUILE_LIBS.
12498 (install-guile): New rule.
12499 (guile.o): New rule.
12500 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
12501 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
12502 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
12503 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
12504 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
12505 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
12506 (scm-type.o, scm-utils.o, scm-value.o): New rules.
12507 * configure.ac: New option --with-guile.
12508 * configure: Regenerate.
12509 * config.in: Regenerate.
12510 * auto-load.c: Remove #include "python/python.h". Add #include
12511 "gdb/section-scripts.h".
12512 (source_section_scripts): Handle Guile scripts.
12513 (_initialize_auto_load): Add name of Guile objfile script to
12514 scripts-directory help text.
12515 * breakpoint.c (condition_command): Tweak comment to include Scheme.
12516 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
12517 (struct breakpoint): New member scm_bp_object.
12518 * defs.h (enum command_control_type): New value guile_control.
12519 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
12520 "extension.h".
12521 (show_user): Update comment.
12522 (_initialize_cli_cmds): Update help text for "show user". Update help
12523 text for max-user-call-depth.
12524 * cli/cli-script.c: Remove #include "python/python.h". Add #include
12525 "extension.h".
12526 (multi_line_command_p): Add guile_control.
12527 (print_command_lines): Handle guile_control.
12528 (execute_control_command, recurse_read_control_structure): Ditto.
12529 (process_next_line): Recognize "guile" commands.
12530 * disasm.c (gdb_disassemble_info): Make non-static.
12531 * disasm.h: #include "dis-asm.h".
12532 (struct gdbarch): Add forward decl.
12533 (gdb_disassemble_info): Declare.
12534 * extension.c: #include "guile/guile.h".
12535 (extension_languages): Add guile.
12536 (get_ext_lang_defn): Handle EXT_LANG_GDB.
12537 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
12538 * gdbtypes.c (get_unsigned_type_max): New function.
12539 (get_signed_type_minmax): New function.
12540 * gdbtypes.h (get_unsigned_type_max): Declare.
12541 (get_signed_type_minmax): Declare.
12542 * guile/README: New file.
12543 * guile/guile-internal.h: New file.
12544 * guile/guile.c: New file.
12545 * guile/guile.h: New file.
12546 * guile/scm-arch.c: New file.
12547 * guile/scm-auto-load.c: New file.
12548 * guile/scm-block.c: New file.
12549 * guile/scm-breakpoint.c: New file.
12550 * guile/scm-disasm.c: New file.
12551 * guile/scm-exception.c: New file.
12552 * guile/scm-frame.c: New file.
12553 * guile/scm-gsmob.c: New file.
12554 * guile/scm-iterator.c: New file.
12555 * guile/scm-lazy-string.c: New file.
12556 * guile/scm-math.c: New file.
12557 * guile/scm-objfile.c: New file.
12558 * guile/scm-ports.c: New file.
12559 * guile/scm-pretty-print.c: New file.
12560 * guile/scm-safe-call.c: New file.
12561 * guile/scm-string.c: New file.
12562 * guile/scm-symbol.c: New file.
12563 * guile/scm-symtab.c: New file.
12564 * guile/scm-type.c: New file.
12565 * guile/scm-utils.c: New file.
12566 * guile/scm-value.c: New file.
12567 * guile/lib/gdb.scm: New file.
12568 * guile/lib/gdb/boot.scm: New file.
12569 * guile/lib/gdb/experimental.scm: New file.
12570 * guile/lib/gdb/init.scm: New file.
12571 * guile/lib/gdb/iterator.scm: New file.
12572 * guile/lib/gdb/printing.scm: New file.
12573 * guile/lib/gdb/types.scm: New file.
12574 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
12575 (VPATH): Add $(GUILE_SRCDIR).
12576 (GUILE_DIR): New variable.
12577 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
12578 (all): Add stamp-guile dependency.
12579 (stamp-guile): New rule.
12580 (clean-guile, install-guile, uninstall-guile): New rules.
12581 (install-only): Add install-guile dependency.
12582 (uninstall): Add uninstall-guile dependency.
12583 (clean): Add clean-guile dependency.
12584
ac020ec5
DE
125852014-02-09 Doug Evans <xdje42@gmail.com>
12586
12587 Revert this patch (which I approved, mea culpa).
12588
12589 2014-02-08 Mark Kettenis <kettenis@gnu.org>
12590
12591 * Makefile.in (all-lib): Remove.
12592 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12593
2a081c59
JK
125942014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
12595
12596 Fix Python stack corruption.
12597 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
12598 gdb_py_longest.
12599
0a6bd22d
MK
126002014-02-08 Mark Kettenis <kettenis@gnu.org>
12601
12602 * Makefile.in (all-lib): Remove.
12603 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12604
1a860409
DE
126052014-02-07 Doug Evans <dje@google.com>
12606
12607 * extension-priv.h (extension_language_script_ops): Add comment.
12608 (extension_language_ops): Add comment.
caf5a491 12609 (active_ext_lang_state): Fix typo in comment.
1a860409 12610
d137e6dc
PA
126112014-02-07 Pedro Alves <palves@redhat.com>
12612
0dcb32c3 12613 PR breakpoints/16292
d137e6dc
PA
12614 * infrun.c (handle_signal_stop) <signal arrives while stepping
12615 over a breakpoint>: Switch back to the stepping thread.
12616
ce6d0892
YQ
126172014-02-07 Yao Qi <yao@codesourcery.com>
12618
12619 * target.c (target_xfer_partial): Return zero if LEN is zero.
12620
2ed4b548
YQ
126212014-02-07 Yao Qi <yao@codesourcery.com>
12622
12623 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
12624 (ld_so_xfer_auxv): Likewise.
12625 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12626 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12627 * corelow.c (core_xfer_partial): Likewise.
12628 * ctf.c (ctf_xfer_partial): Likewise.
12629 * darwin-nat.c (darwin_read_dyld_info): Likewise.
12630 (darwin_xfer_partial): Likewise.
12631 * exec.c (exec_xfer_partial): Likewise.
12632 * gnu-nat.c (gnu_xfer_partial): Likewise.
12633 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
12634 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
12635 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
12636 * linux-nat.c (linux_xfer_siginfo): Likewise.
12637 (linux_proc_xfer_spu): Likewise.
12638 * procfs.c (procfs_xfer_partial): Likewise.
12639 * record-full.c (record_full_xfer_partial): Likewise.
12640 (record_full_core_xfer_partial): Likewise.
12641 * remote-sim.c (gdbsim_xfer_partial): Likewise.
12642 * remote.c (remote_write_qxfer): Likewise.
12643 (remote_write_qxfer, remote_read_qxfer): Likewise.
12644 (remote_xfer_partial): Likewise.
12645 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12646 (rs6000_xfer_shared_libraries): Likewise.
12647 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12648 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12649 (spu_xfer_partial): Likewise.
12650 * target.c (memory_xfer_partial_1): Likewise.
12651 * tracepoint.c (tfile_xfer_partial): Likewise.
12652 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
12653 (windows_xfer_partial): Likewise.
12654
c09f20e4
YQ
126552014-02-07 Yao Qi <yao@codesourcery.com>
12656
12657 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
12658 comments.
12659 (core_xfer_shared_libraries_aix): Likewise.
12660 * gdbarch.c, gdbarch.h: Regenerated.
12661 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
12662 ULONGEST. Change 'len_avail' type to ULONGEST.
12663 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12664 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12665 declaration.
12666 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
12667
8635b3bf
YQ
126682014-02-07 Yao Qi <yao@codesourcery.com>
12669
12670 * corefile.c (memory_error): Get 'exception' from ERR and pass
12671 'exception' to throw_error.
12672
6dddc817
DE
126732014-02-06 Doug Evans <xdje42@gmail.com>
12674
12675 * configure.ac (libpython checking): Remove all but python.o from
12676 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
12677 * configure: Regenerate.
12678
12679 * Makefile.in (SFILES): Add extension.c.
12680 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
12681 (COMMON_OBS): Add extension.o.
12682 * extension.h: New file.
12683 * extension-priv.h: New file.
12684 * extension.c: New file.
12685
12686 * python/python-internal.h: #include "extension.h".
12687 (gdbpy_auto_load_enabled): Declare.
12688 (gdbpy_apply_val_pretty_printer): Declare.
12689 (gdbpy_apply_frame_filter): Declare.
12690 (gdbpy_preserve_values): Declare.
12691 (gdbpy_breakpoint_cond_says_stop): Declare.
12692 (gdbpy_breakpoint_has_cond): Declare.
12693 (void source_python_script_for_objfile): Delete.
12694 * python/python.c: #include "extension-priv.h".
12695 Delete inclusion of "observer.h".
12696 (extension_language_python): Moved here and renamed from
12697 script_language_python in py-auto-load.c.
12698 Redefined to be of type extension_language_defn.
12699 (python_extension_script_ops): New global.
12700 (python_extension_ops): New global.
12701 (struct python_env): New member previous_active.
12702 (restore_python_env): Call restore_active_ext_lang.
12703 (ensure_python_env): Call set_active_ext_lang.
12704 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
12705 New arg extlang.
12706 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
12707 New arg extlang.
12708 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
12709 New arg extlang.
12710 (gdbpy_eval_from_control_command): Renamed from
12711 eval_python_from_control_command, made static. New arg extlang.
12712 (gdbpy_source_script) Renamed from source_python_script, made static.
12713 New arg extlang.
12714 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
12715 result to int. New arg extlang.
12716 (gdbpy_source_objfile_script): Renamed from
12717 source_python_script_for_objfile, made static. New arg extlang.
12718 (gdbpy_start_type_printers): Renamed from start_type_printers, made
12719 static. New args extlang, extlang_printers. Change result type to
12720 "void".
12721 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
12722 static. New arg extlang. Rename arg printers to extlang_printers
12723 and change type to ext_lang_type_printers *.
12724 (gdbpy_free_type_printers): Renamed from free_type_printers, made
12725 static. Replace argument arg with extlang, extlang_printers.
12726 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
12727 (!HAVE_PYTHON, source_python_script): Delete.
12728 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
12729 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
12730 (!HAVE_PYTHON, start_type_printers): Delete.
12731 (!HAVE_PYTHON, apply_type_printers): Delete.
12732 (!HAVE_PYTHON, free_type_printers): Delete.
12733 (_initialize_python): Delete call to observer_attach_before_prompt.
12734 (finalize_python): Set/restore active extension language.
12735 (gdbpy_finish_initialization) Renamed from
12736 finish_python_initialization, made static. New arg extlang.
12737 (gdbpy_initialized): New function.
12738 * python/python.h: #include "extension.h". Delete #include
12739 "value.h", "mi/mi-cmds.h".
12740 (extension_language_python): Declare.
12741 (GDBPY_AUTO_FILE_NAME): Delete.
12742 (enum py_bt_status): Moved to extension.h and renamed to
12743 ext_lang_bt_status.
12744 (enum frame_filter_flags): Moved to extension.h.
12745 (enum py_frame_args): Moved to extension.h and renamed to
12746 ext_lang_frame_args.
12747 (finish_python_initialization): Delete.
12748 (eval_python_from_control_command): Delete.
12749 (source_python_script): Delete.
12750 (apply_val_pretty_printer): Delete.
12751 (apply_frame_filter): Delete.
12752 (preserve_python_values): Delete.
12753 (gdbpy_script_language_defn): Delete.
12754 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
12755 (start_type_printers, apply_type_printers, free_type_printers): Delete.
12756
12757 * auto-load.c: #include "extension.h".
12758 (GDB_AUTO_FILE_NAME): Delete.
12759 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
12760 (script_language_gdb): Delete, moved to extension.c and renamed to
12761 extension_language_gdb.
12762 (source_gdb_script_for_objfile): Delete.
12763 (auto_load_pspace_info): New member unsupported_script_warning_printed.
12764 (loaded_script): Change type of language member to
12765 struct extension_language_defn *.
12766 (init_loaded_scripts_info): Initialize
12767 unsupported_script_warning_printed.
12768 (maybe_add_script): Make static. Change type of language arg to
12769 struct extension_language_defn *.
12770 (clear_section_scripts): Reset unsupported_script_warning_printed.
12771 (auto_load_objfile_script_1): Rewrite to use extension language API.
12772 (auto_load_objfile_script): Make public. Remove support-compiled-in
12773 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
12774 (source_section_scripts): Rewrite to use extension language API.
12775 (load_auto_scripts_for_objfile): Rewrite to use
12776 auto_load_scripts_for_objfile.
12777 (collect_matching_scripts_data): Change type of language member to
12778 struct extension_language_defn *.
12779 (auto_load_info_scripts): Change type of language arg to
12780 struct extension_language_defn *.
12781 (unsupported_script_warning_print): New function.
12782 (script_not_found_warning_print): Make static.
12783 (_initialize_auto_load): Rewrite construction of scripts-directory
12784 help.
12785 * auto-load.h (struct objfile): Add forward decl.
12786 (struct script_language): Delete.
12787 (struct auto_load_pspace_info): Add forward decl.
12788 (struct extension_language_defn): Add forward decl.
12789 (maybe_add_script): Delete.
12790 (auto_load_objfile_script): Declare.
12791 (script_not_found_warning_print): Delete.
12792 (auto_load_info_scripts): Update prototype.
12793 (auto_load_gdb_scripts_enabled): Declare.
12794 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
12795 auto_load_python_scripts_enabled and made public.
12796 (script_language_python): Delete, moved to python.c.
12797 (gdbpy_script_language_defn): Delete.
12798 (info_auto_load_python_scripts): Update to use
12799 extension_language_python.
12800
12801 * breakpoint.c (condition_command): Replace call to
12802 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
12803 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
12804 with call to breakpoint_ext_lang_cond_says_stop.
12805 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
12806 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
12807 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
12808 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
12809 New arg slang.
12810 (local_setattro): Print name of extension language with existing
12811 stop condition.
12812
12813 * valprint.c (val_print, value_print): Update to call
12814 apply_ext_lang_val_pretty_printer.
12815 * cp-valprint.c (cp_print_value): Update call to
12816 apply_ext_lang_val_pretty_printer.
12817 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
12818 (gdbpy_apply_val_pretty_printer): Renamed from
12819 apply_val_pretty_printer. New arg extlang.
12820 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
12821
12822 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
12823 extension language API.
12824 * cli/cli-script.c (execute_control_command): Update to call
12825 eval_ext_lang_from_control_command.
12826
12827 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
12828 enum ext_lang_bt_status values. Update call to
12829 apply_ext_lang_frame_filter.
12830 (mi_cmd_stack_list_locals): Ditto.
12831 (mi_cmd_stack_list_args): Ditto.
12832 (mi_cmd_stack_list_variables): Ditto.
12833 * mi/mi-main.c: Delete #include "python/python-internal.h".
12834 Add #include "extension.h".
12835 (mi_cmd_list_features): Replace reference to python internal variable
12836 gdb_python_initialized with call to ext_lang_initialized_p.
12837
12838 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
12839 Update to use enum ext_lang_frame_args. Update to call
12840 apply_ext_lang_frame_filter.
12841 * python/py-framefilter.c (extract_sym): Update to use enum
12842 ext_lang_bt_status.
12843 (extract_value, py_print_type, py_print_value): Ditto.
12844 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
12845 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
12846 (py_print_frame): Ditto.
12847 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
12848 New arg extlang. Update to use enum ext_lang_bt_status.
12849
12850 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
12851 finish_python_initialization. Replace with call to
12852 finish_ext_lang_initialization.
12853
12854 * typeprint.c (do_free_global_table): Update to call
12855 free_ext_lang_type_printers.
12856 (create_global_typedef_table): Update to call
12857 start_ext_lang_type_printers.
12858 (find_global_typedef): Update to call apply_ext_lang_type_printers.
12859 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
12860 (type_print_options): Change type of global_printers from "void *"
12861 to "struct ext_lang_type_printers *".
12862
12863 * value.c (preserve_values): Update to call preserve_ext_lang_values.
12864 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
12865 (gdbpy_preserve_values): Renamed from preserve_python_values.
12866 New arg extlang.
12867 (!HAVE_PYTHON, preserve_python_values): Delete.
12868
12869 * utils.c (quit_flag): Delete, moved to extension.c.
12870 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
12871 extension.c.
12872
12873 * eval.c: Delete #include "python/python.h".
12874 * main.c: Delete #include "python/python.h".
12875
12876 * defs.h: Update comment.
12877
6af79985
JB
128782014-02-06 Joel Brobecker <brobecker@adacore.com>
12879
12880 GDB 7.7 released.
12881
12c5175d
MK
128822014-02-05 Mark Kettenis <kettenis@gnu.org>
12883
12884 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
12885 defined.
12886
8dc5b319
YQ
128872014-02-05 Yao Qi <yao@codesourcery.com>
12888
12889 * remote.c (remote_pass_signals): Remove local 'buf' and use
12890 rs->buf.
12891 (remote_program_signals): Likewise.
12892
de7b2893
YQ
128932014-02-05 Yao Qi <yao@codesourcery.com>
12894
12895 * ctf.c: Include "inferior.h" and "gdbthread.h".
12896 (CTF_PID): A new macro.
12897 (ctf_open): Call inferior_appeared and add_thread_silent.
12898 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
12899 (ctf_thread_alive): New function.
12900 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
12901
66d032ac
YQ
129022014-02-05 Yao Qi <yao@codesourcery.com>
12903
12904 Revert this patch:
12905
12906 2013-05-24 Yao Qi <yao@codesourcery.com>
12907
12908 * tracepoint.c (TFILE_PID): Remove.
12909 (tfile_open): Don't add thread and inferior.
12910 (tfile_close): Don't set 'inferior_ptid'. Don't call
12911 exit_inferior_silent.
12912 (tfile_thread_alive): Remove.
12913 (init_tfile_ops): Don't set field 'to_thread_alive' of
12914 tfile_ops.
12915
f4ccffad
CE
129162014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
12917
12918 * remote.c (remote_start_remote): Call remote_check_symbols even
12919 if only symbol-file (not file) has been given.
12920
591a12a1
UW
129212014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12922
12923 * gdbarch.sh (skip_entrypoint): New callback.
12924 * gdbarch.c, gdbarch.h: Regenerate.
12925 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
12926 * infrun.c (fill_in_stop_func): Likewise.
12927 * ppc-linux-tdep.c: Include "elf/ppc64.h".
12928 (ppc_elfv2_elf_make_msymbol_special): New function.
12929 (ppc_elfv2_skip_entrypoint): Likewise.
12930 (ppc_linux_init_abi): Install them for ELFv2.
12931
cc0e89c5
UW
129322014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12933
12934 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
12935 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
12936 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
12937 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
12938 structures returned in GPRs.
12939
52f548e4
UW
129402014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12941
12942 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
12943 offset to the stack parameter list for the ELFv2 ABI.
12944
d4094b6a
UW
129452014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12946
12947 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
12948 set_gdbarch_convert_from_func_ptr_addr and
12949 set_gdbarch_elf_make_msymbol_special for ELFv1.
12950 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
12951 function descriptors on ELFv1.
12952 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
12953 set up r12 at function entry.
12954
cd453cd0
UW
129552014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12956
12957 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
12958 (struct gdbarch_tdep): New member elf_abi.
12959
12960 * rs6000-tdep.c: Include "elf/ppc64.h".
12961 (rs6000_gdbarch_init): Detect ELF ABI version.
12962
0ff3e01f
UW
129632014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12964
12965 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
12966 within a register pair holding a DFP 128-bit value on little-endian.
12967 (ppc64_sysv_abi_return_value_base): Likewise.
12968 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
12969 (dfp_pseudo_register_write): Likewise.
12970
5b757e5d
UW
129712014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12972
12973 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
12974 offset on little-endian when passing _Decimal32.
12975 (ppc64_sysv_abi_return_value_base): Likewise for return values.
12976
084ee545
UW
129772014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12978
12979 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
12980 of the overlapped FP register within the VSX register on little-
12981 endian platforms.
12982 (efpr_pseudo_register_write): Likewise.
12983
d63167af
UW
129842014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12985
12986 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
12987 offset on little-endian when passing small structures.
12988
e765b44c
UW
129892014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12990
12991 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
12992 (struct ppc64_sysv_argpos): New data structure.
12993 (ppc64_sysv_abi_push_float): Remove.
12994 (ppc64_sysv_abi_push_val): New function.
12995 (ppc64_sysv_abi_push_integer): Likewise.
12996 (ppc64_sysv_abi_push_freg): Likewise.
12997 (ppc64_sysv_abi_push_vreg): Likewise.
12998 (ppc64_sysv_abi_push_param): Likewise.
12999 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
13000 (ppc64_sysv_abi_return_value_base): New function.
13001 (ppc64_sysv_abi_return_value): Refactor to use it.
13002
36c24d95
UW
130032014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13004
13005 * NEWS: Document new target powerpc64le-*-linux*.
13006
26fd9228
MK
130072014-02-04 Mark Kettenis <kettenis@gnu.org>
13008
13009 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
13010 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
13011 core dumps.
13012 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
13013 register set used in ELF core dumps. Add floating-point register set.
13014
c5bb7362
KB
130152014-02-03 Kevin Buettner <kevinb@redhat.com>
13016
74228e77 13017 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
c5bb7362
KB
13018 dwarf2_to_gdb[] table using symbolic constants. Adjust
13019 penultimate entry from number representing the PC register
13020 to symbolic constant representing the MDR register. Add
13021 constant for the PC register to the end of the table.
13022
af09351e
MK
130232014-02-03 Mark Kettenis <kettenis@gnu.org>
13024
13025 * bsd-kvm.c: Include <sys/param.h>
13026
8507e05d
MK
130272014-02-03 Mark Kettenis <kettenis@gnu.org>
13028
13029 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
13030
ae56bfb8
JB
130312014-01-31 Joel Brobecker <brobecker@adacore.com>
13032
13033 * ada-lang.h (clear_ada_sym_cache): Delete.
13034
718ee4dc
UW
130352014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
13036
13037 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
13038
401e27fd
JM
130392014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
13040
13041 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
13042 the sigreturn register save area only if the syscall is
13043 sigreturn.
13044
a7c88acd
JB
130452014-01-29 Joel Brobecker <brobecker@adacore.com>
13046
13047 * valops.c (value_slice): Minor reformatting.
13048
fa0079ea
UW
130492014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
13050
13051 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
13052
c6044dd1
JB
130532014-01-28 Joel Brobecker <brobecker@adacore.com>
13054
13055 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
13056 New static globals.
13057 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
13058 (ada_ignore_descriptive_types_p): New static global.
13059 (find_parallel_type_by_descriptive_type): Return immediately
13060 if ada_ignore_descriptive_types_p is set.
13061 (_initialize_ada_language): Register new commands "maintenance
13062 set ada", "maintenance show ada", "maintenance set ada
13063 ignore-descriptive-types" and "maintenance show ada
13064 ignore-descriptive-types".
13065 * NEWS: Add entry for new "maint ada set/show
13066 ignore-descriptive-types" commands.
13067
568e808b
MM
130682014-01-27 Markus Metzger <markus.t.metzger@intel.com>
13069
13070 * record-btrace.c (record_btrace_close): Call btrace_teardown
13071 for all threads.
13072
467d141b
JB
130732014-01-27 Joel Brobecker <brobecker@adacore.com>
13074
13075 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
13076 "ui-out.h".
13077
fb151210
JB
130782014-01-27 Joel Brobecker <brobecker@adacore.com>
13079
13080 * ada-typeprint (type_is_full_subrange_of_target_type):
13081 New function.
13082 (print_range): Add parameter bounds_prefered_p. If not set,
13083 try printing range types using the name of their base type.
13084 (print_range_type): Add parameter bounds_prefered_p.
13085 Use it in call to print_range.
13086 (print_array_type, ada_print_type): Update calls to print_range
13087 and print_range_type.
13088
aba02109
JB
130892014-01-27 Joel Brobecker <brobecker@adacore.com>
13090
13091 * ada-typeprint.c (print_array_type, print_choices, print_range)
13092 (print_range_bound, print_dynamic_range_bound, print_range_type):
13093 Remove declaration.
13094
e62e21fd
JB
130952014-01-27 Joel Brobecker <brobecker@adacore.com>
13096
13097 * ada-typeprint.c (print_range): Add missing empty line
13098 after local declaration.
13099
859cf5d1
JB
131002014-01-27 Joel Brobecker <brobecker@adacore.com>
13101
13102 * ada-valprint.c (print_optional_low_bound): Get index_type's
13103 target type for as long as it is a TYPE_CODE_RANGE.
13104
25790f6f
JB
131052014-01-27 Joel Brobecker <brobecker@adacore.com>
13106
13107 * procfs.c (procfs_make_note_section): Remove assertion and
13108 associated comment.
13109
6b6aa828
YQ
131102014-01-24 Yao Qi <yao@codesourcery.com>
13111
13112 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
13113 * corelow.c (get_core_siginfo): Likewise.
13114
5d6df423
YQ
131152014-01-24 Yao Qi <yao@codesourcery.com>
13116
13117 * remote.c (remote_write_bytes_aux): Change type of 'len' to
13118 ULONGEST. Don't check 'len' is negative.
13119 (remote_write_bytes): Change type of 'len' to ULONGEST.
13120
83b645b8
TT
131212014-01-23 Tom Tromey <tromey@redhat.com>
13122
13123 PR python/16485:
13124 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
13125 Handle exception from frame.block.
13126 (FrameVars.fetch_frame_locals): Likewise.
13127
0740f8d8
TT
131282014-01-23 Tom Tromey <tromey@redhat.com>
13129
13130 PR python/16487:
13131 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
13132 on a NULL pointer. Move "goto error" to correct place.
13133
21909fa1
TT
131342014-01-23 Tom Tromey <tromey@redhat.com>
13135
13136 PR python/16491:
13137 * python/py-framefilter.c (apply_frame_filter): Call
13138 ensure_python_env after computing gdbarch.
13139
17fde6d0
YQ
131402014-01-23 Yao Qi <yao@codesourcery.com>
13141
13142 * target.c (raw_memory_xfer_partial): Change argument type
13143 from void * to gdb_byte *.
13144 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
13145
87ce2a04
DE
131462014-01-22 Doug Evans <dje@google.com>
13147
13148 New gdbserver option --debug-format=timestamp.
13149 * NEWS: Mention it.
13150
237b092b
AA
131512014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
13152
13153 * syscalls/s390x-linux.xml: New file.
13154 * syscalls/s390-linux.xml: New file.
13155 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
13156 (XML_SYSCALL_FILENAME_S390X): Likewise.
13157 (op_svc): New enum value for SVC opcode.
13158 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
13159 (s390_linux_get_syscall_number): New function.
13160 (s390_gdbarch_init): Register '*get_syscall_number' and the
13161 syscall xml file name.
13162 * data-directory/Makefile.in (SYSCALLS_FILES): Add
13163 "s390-linux.xml" and "s390x-linux.xml".
13164 * NEWS: Announce new feature.
13165
54bff650
BS
131662014-01-22 Baruch Siach <baruch@tkos.co.il>
13167
13168 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
13169
14e361d7
PA
131702014-01-22 Pedro Alves <palves@redhat.com>
13171
13172 * xtensa-config.c: Include defs.h.
13173
46bbb3ed
JB
131742014-01-22 Joel Brobecker <brobecker@adacore.com>
13175
13176 * common/common-utils.h: Add "ARI:" comment beside __func__
13177 reference.
13178
3a80edfc
JB
131792014-01-22 Joel Brobecker <brobecker@adacore.com>
13180
13181 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
13182 documentation a bit.
13183
4869db5e
RM
131842014-01-21 Roland McGrath <mcgrathr@google.com>
13185
13186 * configure.ac: Call AM_PROG_INSTALL_STRIP.
13187 * configure: Regenerate.
13188 * aclocal.m4: Regenerate.
13189 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
13190 New substituted variables.
13191 (install-strip): New target.
13192 (INSTALL_SCRIPT): New substituted variable.
13193 (FLAGS_TO_PASS): Add it.
13194 (install-only): Use $(INSTALL_SCRIPT) rather than
13195 $(INSTALL_PROGRAM) for gcore.
13196
9ea4267d
TT
131972014-01-20 Tom Tromey <tromey@redhat.com>
13198
13199 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
13200 together.
13201
1f2bdf09
TT
132022014-01-20 Tom Tromey <tromey@redhat.com>
13203
13204 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
13205 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
13206 (deprecated_cmd_warning, complete_on_cmdlist): Update.
13207 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
13208 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
13209 (struct cmd_list_element) <flags>: Remove.
13210 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
13211 doc_allocated>: New fields.
13212 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
13213 bitfields.
13214 * maint.c (maintenance_do_deprecate): Update.
13215 * top.c (execute_command): Update.
13216
e671835b
BS
132172014-01-20 Baruch Siach <baruch@tkos.co.il>
13218
13219 * xtensa-linux-nat.c: Include asm/ptrace.h.
13220
50367cd2
IB
132212014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13222
13223 * Makefile.in (SFILES): Add d-support.c.
13224 (COMMON_OBS): Add d-support.o.
13225 * d-lang.h (d_parse_symbol): Add comment, now defined in
13226 d-support.c.
13227 * d-lang.c (parse_call_convention)
13228 (parse_attributes, parse_function_types)
13229 (parse_function_args, parse_type, parse_identifier)
13230 (call_convention_p, d_parse_symbol): Move functions to ...
13231 * d-support.c: ... New file.
13232
ec9f644a
IB
132332014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13234
13235 * d-lang.h (d_parse_symbol): Add declaration.
13236 * d-lang.c (extract_identifiers)
13237 (extract_type_info): Remove functions.
13238 (parse_call_convention, parse_attributes)
13239 (parse_function_types, parse_function_args)
13240 (parse_type, parse_identifier, call_convention_p)
13241 (d_parse_symbol): New functions.
13242 (d_demangle): Use d_parse_symbol to demangle D symbols.
13243
94b1b47e
IB
132442014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13245
13246 * d-lang.h (struct builtin_d_type): New data type.
13247 (builtin_d_type): Add declaration.
13248 * d-lang.c (d_language_arch_info, build_d_types)
13249 (builtin_d_type): New functions.
13250 (enum d_primitive_types): New data type.
13251 (d_language_defn): Change c_language_arch_info to
13252 d_language_arch_info.
13253 (d_type_data): New static variable.
13254 (_initialize_d_language): Initialize d_type_data.
13255
63778547
IB
132562014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13257
13258 * d-lang.h (d_main_name): Add declaration.
13259 * d-lang.c (d_main_name): New function.
13260 * symtab.c (find_main_name): Add call to d_main_name.
13261
3271ba66
IB
132622014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13263
13264 * d-lang.c (d_language_defn): Change macro_expansion_c to
13265 macro_expansion_no.
13266
d36b3012
IB
132672014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13268
13269 * MAINTAINERS: Add myself as a write-after-approval maintainer.
13270
c90a6fb7
SDJ
132712014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
13272
13273 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
13274 gdb_exception" declaration.
13275 * remote.c (getpkt_or_notif_sane): Likewise.
13276
749234e5
DE
132772014-01-17 Doug Evans <dje@google.com>
13278
13279 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
13280 function, contents of dirnames_to_char_ptr_vec_append moved here.
13281 (delim_string_to_char_ptr_vec): New function.
13282 (dirnames_to_char_ptr_vec_append): Rewrite.
13283 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
13284
df049a58
DE
132852014-01-17 Doug Evans <dje@google.com>
13286
13287 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
13288 and moved here ...
13289 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
13290 #include "common-utils.h".
13291 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
13292 * common/vec.h (VEC_ASSERT_PASS): Update.
13293 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
13294 (MACH_CHECK_ERROR): Update.
13295
69f97648
SM
132962014-01-17 Simon Marchi <simon.marchi@ericsson.com>
13297
13298 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
13299 comments.
13300 * gdbarch.h: Regenerate.
13301
98b1cfdc
TT
133022014-01-16 Tom Tromey <tromey@redhat.com>
13303
13304 * value.c (struct value) <regnum>: Move earlier.
13305
77a19445
TT
133062014-01-16 Tom Tromey <tromey@redhat.com>
13307
13308 * remote.c (extended_remote_create_inferior): Rename from
13309 extended_remote_create_inferior_1. Add "ops" argument. Remove
13310 old implementation.
13311
62261490
PA
133122014-01-16 Pedro Alves <palves@redhat.com>
13313
13314 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
13315 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
13316 the backchain.
13317
4d65956b
DE
133182014-01-16 Doug Evans <dje@google.com>
13319
13320 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
13321
52834460
MM
133222014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13323
13324 * btrace.h (btrace_thread_flag): New.
13325 (struct btrace_thread_info) <flags>: New.
13326 * record-btrace.c (record_btrace_resume_thread)
13327 (record_btrace_find_thread_to_move, btrace_step_no_history)
13328 (btrace_step_stopped, record_btrace_start_replaying)
13329 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
13330 (record_btrace_find_resume_thread): New.
13331 (record_btrace_resume, record_btrace_wait): Extend.
13332 (record_btrace_can_execute_reverse): New.
13333 (record_btrace_open): Fail in non-stop mode.
13334 (record_btrace_set_replay): Split into this, ...
13335 (record_btrace_stop_replaying): ... this, ...
13336 (record_btrace_clear_histories): ... and this.
13337 (init_record_btrace_ops): Init to_can_execute_reverse.
13338 * NEWS: Announce it.
13339
118e6252
MM
133402014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13341
13342 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
13343 (forward_target_decr_pc_after_break)
13344 (target_decr_pc_after_break): New.
13345 * target.c (forward_target_decr_pc_after_break)
13346 (target_decr_pc_after_break): New.
13347 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
13348 instead of gdbarch_decr_pc_after_break.
13349 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
13350 instead of gdbarch_decr_pc_after_break.
13351 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
13352 instead of gdbarch_decr_pc_after_break.
13353 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
13354 instead of gdbarch_decr_pc_after_break.
13355 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
13356 instead of gdbarch_decr_pc_after_break.
13357 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
13358 instead of gdbarch_decr_pc_after_break.
13359
6e07b1d2
MM
133602014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13361
13362 * btrace.c: Include regcache.h.
13363 (btrace_add_pc): New.
13364 (btrace_enable): Call btrace_add_pc.
13365 (btrace_is_empty): New.
13366 * btrace.h (btrace_is_empty): New.
13367 * record-btrace.c (require_btrace, record_btrace_info): Call
13368 btrace_is_empty.
13369
969c39fb
MM
133702014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13371
13372 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
13373 Support delta reads.
13374 (linux_disable_btrace): Change return type.
13375 * common/linux-btrace.h (linux_read_btrace): Change parameters
13376 and return type to allow error reporting. Update users.
13377 (linux_disable_btrace): Change return type. Update users.
13378 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
13379 New.
13380 (btrace_error): New.
13381 (btrace_block) <begin>: Comment on BEGIN == 0.
13382 * btrace.c (btrace_compute_ftrace): Start from the end of
13383 the current trace.
13384 (btrace_stitch_trace, btrace_clear_history): New.
13385 (btrace_fetch): Read delta trace, return if replaying.
13386 (btrace_clear): Move clear history code to btrace_clear_history.
13387 (parse_xml_btrace): Throw an error if parsing failed.
13388 * target.h (struct target_ops) <to_read_btrace>: Change parameters
13389 and return type to allow error reporting.
13390 (target_read_btrace): Change parameters and return type to allow
13391 error reporting.
13392 * target.c (target_read_btrace): Update.
13393 * remote.c (remote_read_btrace): Support delta reads. Pass
13394 errors on.
13395 * NEWS: Announce it.
13396
0b722aec
MM
133972014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13398
13399 * record.h (record_btrace_frame_unwind)
13400 (record_btrace_tailcall_frame_unwind): New declarations.
13401 * dwarf2-frame: Include record.h
13402 (dwarf2_frame_cfa): Throw an error for btrace frames.
13403 * record-btrace.c: Include hashtab.h.
13404 (btrace_get_bfun_name): New.
13405 (btrace_call_history): Call btrace_get_bfun_name.
13406 (struct btrace_frame_cache): New.
13407 (bfcache): New.
13408 (bfcache_hash, bfcache_eq, bfcache_new): New.
13409 (btrace_get_frame_function): New.
13410 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
13411 (record_btrace_frame_this_id): Compute own id.
13412 (record_btrace_frame_prev_register): Provide PC, throw_error
13413 for all other registers.
13414 (record_btrace_frame_sniffer): Detect btrace frames.
13415 (record_btrace_tailcall_frame_sniffer): New.
13416 (record_btrace_frame_dealloc_cache): New.
13417 (record_btrace_frame_unwind): Add new functions.
13418 (record_btrace_tailcall_frame_unwind): New.
13419 (_initialize_record_btrace): Allocate cache.
13420 * btrace.c (btrace_clear): Call reinit_frame_cache.
13421 * NEWS: Announce it.
13422
066ce621
MM
134232014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13424
13425 * record-btrace.c (record_btrace_set_replay)
13426 (record_btrace_goto_begin, record_btrace_goto_end)
13427 (record_btrace_goto): New.
13428 (init_record_btrace_ops): Initialize them.
13429 * NEWS: Announce it.
13430
e2887aa3
MM
134312014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13432
13433 * record-btrace.c (record_btrace_find_new_threads)
13434 (record_btrace_thread_alive): New.
13435 (init_record_btrace_ops): Initialize to_find_new_threads and
13436 to_thread_alive.
13437
b2f4cfde
MM
134382014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13439
13440 * record-btrace.c (record_btrace_resume): New.
13441 (record_btrace_wait): New.
13442 (init_record_btrace_ops): Initialize to_wait and to_resume.
13443
633785ff
MM
134442014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13445
13446 * record-btrace.c (record_btrace_xfer_partial)
13447 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
13448 (record_btrace_allow_memory_access): New.
13449 (init_record_btrace_ops): Initialize new methods.
13450 * target.c (raw_memory_xfer_partial): Bail out if target reports
13451 that this memory is not available.
13452
3db08215
MM
134532014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13454
13455 * target.h (target_ops) <to_insert_breakpoint>
13456 <to_remove_breakpoint>: Add target_ops parameter.
13457 (forward_target_insert_breakpoint): New.
13458 (forward_target_remove_breakpoint): New.
13459 (memory_remove_breakpoint, memory_insert_breakpoint):
13460 Add target_ops parameter.
13461 * target.c (target_insert_breakpoint): Split into this and ...
13462 (forward_target_insert_breakpoint): ... this.
13463 (target_remove_breakpoint): Split into this and ...
13464 (forward_target_remove_breakpoint): ... this.
13465 (debug_to_insert_breakpoint): Add target_ops parameter.
13466 Call forward_target_insert_breakpoint.
13467 (debug_to_remove_breakpoint): Add target_ops parameter.
13468 Call forward_target_remove_breakpoint.
13469 (update_current_target): Do not inherit or default to_insert_breakpoint
13470 and to_remove_breakpoint.
13471 * corelow.c (ignore): Add target_ops parameter.
13472 * exec.c (ignore): Add target_ops parameter.
13473 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
13474 Add target_ops parameter.
13475 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
13476 Add target_ops parameter.
13477 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
13478 Add target_ops parameter.
13479 * record-full.c (record_full_beneath_to_insert_breakpoint)
13480 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
13481 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
13482 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
13483 (record_full_core_remove_breakpoint): Add target_ops parameter.
13484 Update users.
13485 (record_full_beneath_to_insert_breakpoint_ops)
13486 (record_full_beneath_to_remove_breakpoint_ops)
13487 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
13488 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
13489 tmp_to_remove_breakpoint_ops,
13490 record_full_beneath_to_insert_breakpoint_ops, and
13491 record_full_beneath_to_remove_breakpoint_ops.
13492 * remote-m32r-sdi.c (m32r_insert_breakpoint)
13493 (m32r_remove_breakpoint): Add target_ops parameter.
13494 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
13495 Add target_ops parameter.
13496 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
13497 Add target_ops parameter.
13498
cecac1ab
MM
134992014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13500 Markus Metzger <markus.t.metzger@intel.com>
13501
13502 * record-btrace.c: Include frame-unwind.h.
13503 (record_btrace_frame_unwind_stop_reason)
13504 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
13505 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
13506 New.
13507 (init_record_btrace_ops): Install it.
13508
824344ca
MM
135092014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13510
13511 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
13512 get_prev_frame_1.
13513
32261e52
MM
135142014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13515
13516 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
13517 earlier.
13518
ea001bdc
MM
135192014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13520
13521 * frame-unwind.c: Include target.h.
13522 (frame_unwind_try_unwinder): New function with code from ...
13523 (frame_unwind_find_by_frame): ... here. New variable
13524 unwinder_from_target, call also target_get_unwinder)
13525 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
13526 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
13527 * target.h (struct target_ops): New fields to_get_unwinder and
13528 to_get_tailcall_unwinder.
13529 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
13530
1f3ef581
MM
135312014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13532
13533 * record-btrace.c (record_btrace_fetch_registers)
13534 (record_btrace_store_registers)
13535 (record_btrace_to_prepare_to_store): New.
13536 (init_record_btrace_ops): Add the above.
13537
f32dbf8c
MM
135382014-01-16 Tom Tromey <tromey@redhat.com>
13539
13540 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
13541 * target.h (struct target_ops) <to_prepare_to_store>: Add
13542 argument.
13543 (target_prepare_to_store): Add argument.
13544 * target.c (debug_to_prepare_to_store): Add argument.
13545 (update_current_target): Update.
13546 * remote.c (remote_prepare_to_store): Add 'self' argument.
13547 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
13548 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
13549 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
13550 * record-full.c (record_full_core_prepare_to_store): Add 'self'
13551 argument.
13552 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
13553 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
13554 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
13555 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
13556 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
13557
07bbe694
MM
135582014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13559
13560 * btrace.h (replay) <replay>: New.
13561 (btrace_is_replaying): New.
13562 * btrace.c (btrace_clear): Free replay iterator.
13563 (btrace_is_replaying): New.
13564 * record-btrace.c (record_btrace_is_replaying): New.
13565 (record_btrace_info): Print insn number if replaying.
13566 (record_btrace_insn_history): Start at replay position.
13567 (record_btrace_call_history): Start at replay position.
13568 (init_record_btrace_ops): Init to_record_is_replaying.
13569
0688d04e
MM
135702014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13571
13572 * record-btrace.c (record_btrace_insn_history_range): Include
13573 end.
13574 (record_btrace_insn_history_from): Adjust range.
13575 (record_btrace_call_history_range): Include
13576 end.
13577 (record_btrace_call_history_from): Adjust range.
13578 * NEWS: Announce changes.
13579
8710b709
MM
135802014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13581
13582 * record.h (enum record_print_flag)
13583 <record_print_indent_calls>: New.
13584 * record.c (get_call_history_modifiers): Recognize /c modifier.
13585 (_initialize_record): Document /c modifier.
13586 * record-btrace.c (btrace_call_history): Add btinfo parameter.
13587 Reorder fields. Optionally indent the function name. Update
13588 all users.
13589 * NEWS: Announce changes.
13590
d0fa7535
MM
135912014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13592
13593 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
13594
5de9129b
MM
135952014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13596
13597 * btrace.c (ftrace_new_function): Start counting at one.
13598 * record-btrace.c (record_btrace_info): Adjust number of calls
13599 and insns.
13600 * NEWS: Announce it.
13601
7acbe133
MM
136022014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13603
13604 * record-btrace.c (btrace_call_history_insn_range): Print
13605 insn range as [begin, end].
13606
23a7fe75
MM
136072014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13608
13609 * btrace.h (struct btrace_func_link): New.
13610 (enum btrace_function_flag): New.
13611 (struct btrace_inst): Rename to ...
13612 (struct btrace_insn): ...this. Update all users.
13613 (struct btrace_func) <ibegin, iend>: Remove.
13614 (struct btrace_func_link): New.
13615 (struct btrace_func): Rename to ...
13616 (struct btrace_function): ...this. Update all users.
13617 (struct btrace_function) <segment, flow, up, insn, insn_offset)
13618 (number, level, flags>: New.
13619 (struct btrace_insn_iterator): Rename to ...
13620 (struct btrace_insn_history): ...this.
13621 Update all users.
13622 (struct btrace_insn_iterator, btrace_call_iterator): New.
13623 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
13624 (struct btrace_target_info) <begin, end, level>
13625 <insn_history, call_history>: New.
13626 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13627 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13628 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13629 (btrace_call_number, btrace_call_begin, btrace_call_end)
13630 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13631 (btrace_find_function_by_number, btrace_set_insn_history)
13632 (btrace_set_call_history): New.
13633 * btrace.c (btrace_init_insn_iterator)
13634 (btrace_init_func_iterator, compute_itrace): Remove.
13635 (ftrace_print_function_name, ftrace_print_filename)
13636 (ftrace_skip_file): Change
13637 parameter to const.
13638 (ftrace_init_func): Remove.
13639 (ftrace_debug): Use new btrace_function fields.
13640 (ftrace_function_switched): Also consider gaining and
13641 losing symbol information).
13642 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
13643 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
13644 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
13645 New.
13646 (ftrace_new_function): Move. Remove debug print.
13647 (ftrace_update_lines, ftrace_update_insns): New.
13648 (ftrace_update_function): Check for call, ret, and jump.
13649 (compute_ftrace): Renamed to ...
13650 (btrace_compute_ftrace): ...this. Rewritten to compute call
13651 stack.
13652 (btrace_fetch, btrace_clear): Updated.
13653 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13654 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13655 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13656 (btrace_call_number, btrace_call_begin, btrace_call_end)
13657 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13658 (btrace_find_function_by_number, btrace_set_insn_history)
13659 (btrace_set_call_history): New.
13660 * record-btrace.c (require_btrace): Use new btrace thread
13661 info fields.
13662 (record_btrace_info, btrace_insn_history)
13663 (record_btrace_insn_history, record_btrace_insn_history_range):
13664 Use new btrace thread info fields and new iterator.
13665 (btrace_func_history_src_line): Rename to ...
13666 (btrace_call_history_src_line): ...this. Use new btrace
13667 thread info fields.
13668 (btrace_func_history): Rename to ...
13669 (btrace_call_history): ...this. Use new btrace thread info
13670 fields and new iterator.
13671 (record_btrace_call_history, record_btrace_call_history_range):
13672 Use new btrace thread info fields and new iterator.
13673
8372a7cb
MM
136742014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13675
13676 * frame.h (frame_id_build_unavailable_stack_special): New.
13677 * frame.c (frame_id_build_unavailable_stack_special): New.
13678
c2170eef
MM
136792014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13680
13681 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
13682 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
13683 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
13684 to gdbarch.
13685 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
13686 (i386_insn_is_jump, i386_jmp_p): New.
13687 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
13688 insn_is_jump to gdbarch.
13689 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
13690 * gdbarch.h: Regenerated.
13691 * gdbarch.c: Regenerated.
13692 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
13693 (default_insn_is_jump): New.
13694 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
13695 (default_insn_is_jump): New.
13696
864089d2
MM
136972014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13698
13699 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
13700 Change to ...
13701 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
13702 (btrace_read_type) <btrace_read_new>: Change to ...
13703 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
13704
ed9edfb5
MM
137052014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13706
13707 * common/linux-btrace.c (linux_read_btrace): Free trace from
13708 previous iteration.
13709
fbcbc3fd
DE
137102014-01-15 Doug Evans <dje@google.com>
13711
13712 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
13713 uint32_t.
13714
3d548a53
TT
137152014-01-15 Tom Tromey <tromey@redhat.com>
13716
13717 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
13718 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
13719 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
13720 (set_objfile_main_name): New function.
13721 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
13722 language_of_main>: New fields.
13723 (set_objfile_main_name): Declare.
13724 * symtab.c (find_main_name): Loop over objfiles to find the main
13725 name and language.
13726 (set_main_name): Now static.
13727 (get_main_info): Add comment.
13728 * symtab.h (set_main_name): Don't declare.
13729
32ac0d11
TT
137302014-01-15 Tom Tromey <tromey@redhat.com>
13731
13732 * symtab.c (main_progspace_key): New global.
13733 (struct main_info): New.
13734 (name_of_main, language_of_main): Remove.
13735 (get_main_info, main_info_cleanup): New function.
13736 (set_main_name, main_name, main_language): Use get_main_info.
13737 (_initialize_symtab): Initialize main_progspace_key.
13738
9e6c82ad
TT
137392014-01-15 Tom Tromey <tromey@redhat.com>
13740
13741 * dbxread.c (process_one_symbol): Update.
13742 * dwarf2read.c (read_partial_die): Update.
13743 * symfile.c (set_initial_language): Call main_language.
13744 * symtab.c (language_of_main): Now static.
13745 (set_main_name): Add 'lang' parameter.
13746 (find_main_name): Update.
13747 (main_language): New function.
13748 (symtab_observer_executable_changed): Update.
13749 * symtab.h (set_main_name): Update.
13750 (language_of_main): Remove.
13751 (main_language): Declare.
13752
6ef55de7
TT
137532014-01-15 Tom Tromey <tromey@redhat.com>
13754
13755 * symfile.c (init_entry_point_info): Use new "initialized" field.
13756 Update.
13757 * objfiles.h (struct entry_point) <initialized>: New field.
13758 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
13759 (struct objfile) <ei>: ...here. Remove.
13760 * objfiles.c (entry_point_address_query): Update.
13761
53eddfa6
TT
137622014-01-15 Tom Tromey <tromey@redhat.com>
13763
13764 * objfiles.c (entry_point_address_query): Relocate entry point
13765 address.
13766 (objfile_relocate1): Do not relocate entry point address.
13767 * objfiles.h (struct entry_info) <entry_point>: Update comment.
13768 <the_bfd_section_index>: New field.
13769 * symfile.c (init_entry_point_info): Find the entry point's
13770 section.
13771
d56e56aa
TT
137722014-01-15 Tom Tromey <tromey@redhat.com>
13773
13774 * solib-frv.c (enable_break): Use entry_point_address_query.
13775
33a97bbe
OJ
137762014-01-15 Omair Javaid <omair.javaid@linaro.org>
13777
13778 * NEWS: Add note on improved process record-replay on
13779 arm*-linux* targets.
13780
c6ec2b30
OJ
137812014-01-15 Omair Javaid <omair.javaid@linaro.org>
13782
13783 * arm-tdep.c (enum arm_record_result): New enum.
13784 (arm_record_unsupported_insn): New function.
13785 (arm_record_coproc_data_proc): Removed.
13786 (thumb2_record_ld_st_multiple): New function.
13787 (thumb2_record_ld_st_dual_ex_tbb): New function.
13788 (thumb2_record_data_proc_sreg_mimm): New function.
13789 (thumb2_record_ps_dest_generic): New function.
13790 (thumb2_record_branch_misc_cntrl): New function.
13791 (thumb2_record_str_single_data): New function.
13792 (thumb2_record_ld_mem_hints): New function.
13793 (thumb2_record_ld_word): New function.
13794 (thumb2_record_lmul_lmla_div): New function.
13795 (thumb2_record_decode_insn_handler): New function.
13796 (decode_insn): Add thumb32 instruction handlers.
13797
97dfe206
OJ
137982014-01-15 Omair Javaid <omair.javaid@linaro.org>
13799
13800 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
13801 (struct arm_linux_record_tdep): Declare.
13802 (arm_canonicalize_syscall): New function.
13803 (arm_all_but_pc_registers_record): New function.
13804 (arm_linux_syscall_record): New function.
13805 (arm_linux_init_abi): Add syscall recording constructs.
13806 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
13807 decoding. (arm_record_coproc_data_proc): Update arm syscall
13808 decoding.
13809 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
13810 <arm_syscall_record>: New field.
13811 * configure.tgt (arm*-*-linux*): Add linux-record.o to
13812 gdb_target_obs.
13813
9904a494
OJ
138142014-01-15 Omair Javaid <omair.javaid@linaro.org>
13815
13816 * arm-tdep.c (thumb_record_misc): Update to use sp as base
13817 register for push instruction recording.
13818
f969241e
OJ
138192014-01-15 Omair Javaid <omair.javaid@linaro.org>
13820
13821 * arm-tdep.c (thumb_record_misc): Update to correct logical
13822 error while recording ldm, ldmia and pop instructions.
13823
bfbbec00
OJ
138242014-01-15 Omair Javaid <omair.javaid@linaro.org>
13825
13826 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
13827
e40adcc9
PA
138282014-01-15 Pedro Alves <palves@redhat.com>
13829
13830 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
13831 (go32_resume, go32_fetch_registers, store_register)
13832 (go32_store_registers, go32_prepare_to_store)
13833 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
13834 (go32_create_inferior, go32_can_run, go32_terminal_init)
13835 (go32_terminal_inferior, go32_terminal_ours): Delete forward
13836 declarations.
13837
b0a16e66
TT
138382014-01-15 Tom Tromey <tromey@redhat.com>
13839
13840 * target.h (async_callback_ftype): New typedef.
13841 (struct target_ops) <to_async>: Use it.
13842
bf7105a4
JB
138432014-01-15 Joel Brobecker <brobecker@adacore.com>
13844
13845 * python/py-value.c (get_field_type): Remove unnecessary curly
13846 braces for single-statement if block.
13847
a8f35c2e
JB
138482014-01-15 Joel Brobecker <brobecker@adacore.com>
13849
13850 * python/py-type.c (convert_field): Add missing empty line
13851 after declarations.
13852
bb4142cf
DE
138532014-01-14 Doug Evans <dje@google.com>
13854
13855 * symfile.h (expand_symtabs_matching): Renamed from
13856 expand_partial_symbol_names. Update prototype.
13857 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
13858 * symfile.c (expand_symtabs_matching): Renamed from
13859 expand_partial_symbol_names. New args file_matcher, kind.
13860 Rename arg fun to symbol_matcher.
13861 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
13862 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
13863 ada_expand_partial_symbol_name.
13864 (ada_make_symbol_completion_list): Update to call
13865 expand_symtabs_matching.
13866 (ada_add_global_exceptions): Call expand_symtabs_matching.
13867 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
13868 call map_symbol_filenames.
13869 * symtab.c (sources_info): Update to call map_symbol_filenames.
13870 (search_symbols): Call expand_symtabs_matching.
13871 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
13872 (default_make_symbol_completion_list_break_on): Update to call
13873 expand_symtabs_matching.
13874 (make_source_files_completion_list): Update to call
13875 map_symbol_filenames.
13876
206f2a57
DE
138772014-01-14 Doug Evans <dje@google.com>
13878
13879 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
13880 (expand_symtabs_symbol_matcher_ftype): New typedef.
13881 (quick_symbol_functions.expand_symtabs_matching): Update to use.
13882 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13883 * symfile.c (expand_partial_symbol_names): Update to use
13884 expand_symtabs_symbol_matcher_ftype.
13885 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
13886 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13887 Arg name_matcher renamed to symbol_matcher.
13888 * psymtab.c (recursively_search_psymtabs): Update to use
13889 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
13890 sym_matcher.
13891 (expand_symtabs_matching_via_partial): Update to use
13892 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13893 Arg name_matcher renamed to symbol_matcher.
13894
540c2971
DE
138952014-01-14 Doug Evans <dje@google.com>
13896
13897 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
13898 (map_partial_symbol_filenames): Ditto.
13899 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
13900 (map_partial_symbol_filenames): Ditto.
13901 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
13902 (map_partial_symbol_filenames): Ditto.
13903 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
13904 (map_partial_symbol_filenames): Ditto.
13905 * symtab.c: Delete #include "psymtab.h".
13906
8213266a
PA
139072014-01-14 Pedro Alves <palves@redhat.com>
13908 Tom Tromey <tromey@redhat.com>
13909
13910 * infrun.c (use_displaced_stepping): Use find_record_target
13911 instead of RECORD_IS_USED.
13912 (adjust_pc_after_break): Use record_full_is_used instead of
13913 RECORD_IS_USED.
13914 * record-btrace.c (record_btrace_open): Call record_preopen
13915 instead of checking RECORD_IS_USED.
13916 * record-full.c (record_full_shortname)
13917 (record_full_core_shortname): New globals.
13918 (record_full_is_used): New function.
13919 (find_full_open): Call record_preopen instead of checking
13920 RECORD_IS_USED.
13921 (init_record_full_ops): Set the target's shortname to
13922 record_full_shortname.
13923 (init_record_full_core_ops): Set the target's shortname to
13924 record_full_core_shortname.
13925 * record-full.h (record_full_is_used): Declare.
13926 * record.c (find_record_target): Make extern.
13927 (record_preopen): New function.
13928 * record.h (RECORD_IS_USED): Delete macro.
13929 (find_record_target, record_preopen): Declare functions.
13930
7ec1862d
YQ
139312014-01-14 Yao Qi <yao@codesourcery.com>
13932
13933 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
13934 'len''s type to ULONGEST.
13935 (core_xfer_shared_libraries_aix): Likewise.
13936 * gdbarch.c, gdbarch.h: Regenerated.
13937 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
13938 Change type of 'len' to ULONGEST.
13939 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13940 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
13941
dea80a27
YQ
139422014-01-14 Yao Qi <yao@codesourcery.com>
13943
13944 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
13945 type of 'len' to ULONGEST.
13946 (linux_xfer_osdata_processgroups): Likewise.
13947 (linux_xfer_osdata_threads): Likewise.
13948 (linux_xfer_osdata_fds): Likewise.
13949 (linux_xfer_osdata_isockets): Likewise.
13950 (linux_xfer_osdata_shm): Likewise.
13951 (linux_xfer_osdata_sem): Likewise.
13952 (linux_xfer_osdata_msg): Likewise.
13953 (linux_common_xfer_osdata): Likewise.
13954 (struct osdata_type) <getter>: Likewise.
13955 * common/linux-osdata.h (linux_common_xfer_osdata): Update
13956 the declaration.
13957
b55e14c7
YQ
139582014-01-14 Yao Qi <yao@codesourcery.com>
13959
13960 * target.h (target_xfer_partial_ftype): Update.
13961 (struct target_ops) <to_xfer_partial>: Change 'len' type to
13962 ULONGEST.
13963 * aix-thread.c (aix_thread_xfer_partial): Change type of
13964 argument 'len' to ULONGEST.
13965 * auxv.c (procfs_xfer_auxv): Likewise.
13966 (ld_so_xfer_auxv): Likewise.
13967 (memory_xfer_auxv): Likewise.
13968 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13969 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13970 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
13971 * corelow.c (core_xfer_partial): Likewise.
13972 * ctf.c (ctf_xfer_partial): Likewise.
13973 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
13974 '%u'.
13975 (darwin_read_dyld_info): Likewise.
13976 (darwin_xfer_partial): Likewise.
13977 * exec.c (section_table_xfer_memory_partial): Likewise.
13978 (exec_xfer_partial): Likewise.
13979 * exec.h (section_table_xfer_memory_partial): Update
13980 declaration.
13981 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
13982 instead of plongest.
13983 (gnu_xfer_partial): Likewise.
13984 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
13985 (ia64_hpux_xfer_solib_got): Likewise.
13986 (ia64_hpux_xfer_partial): Likewise.
13987 * ia64-linux-nat.c (ia64_linux_xfer_partial):
13988 * inf-ptrace.c (inf_ptrace_xfer_partial):
13989 * inf-ttrace.c (inf_ttrace_xfer_partial):
13990 * linux-nat.c (linux_xfer_siginfo): Likewise.
13991 (linux_nat_xfer_partial): Likewise.
13992 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
13993 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
13994 * monitor.c (monitor_xfer_memory): Likewise.
13995 (monitor_xfer_partial): Likewise.
13996 * procfs.c (procfs_xfer_partial): Likewise.
13997 * record-full.c (record_full_xfer_partial): Likewise.
13998 (record_full_core_xfer_partial): Likewise.
13999 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
14000 instead of plongest.
14001 (gdbsim_xfer_partial): Likewise.
14002 * remote.c (remote_xfer_partial): Likewise.
14003 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14004 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
14005 declaration.
14006 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14007 (rs6000_xfer_shared_libraries): Likewise.
14008 * sol-thread.c (sol_thread_xfer_partial): Likewise.
14009 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14010 (sparc_xfer_partial): Likewise.
14011 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
14012 (spu_xfer_partial): Likewise.
14013 * spu-multiarch.c (spu_xfer_partial): Likewise.
14014 * target.c (target_read_live_memory): Likewise.
14015 (memory_xfer_live_readonly_partial): Likewise.
14016 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
14017 (target_xfer_partial, default_xfer_partial): Likewise.
14018 (current_xfer_partial): Likewise.
14019 * tracepoint.c (tfile_xfer_partial): Likewise.
14020 * windows-nat.c (windows_xfer_memory): Likewise. Call
14021 pulongest instead of plongest.
14022 (windows_xfer_partial): Likewise.
14023 (windows_xfer_shared_libraries): Likewise.
14024
05804640
YQ
140252014-01-14 Yao Qi <yao@codesourcery.com>
14026
14027 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
14028 target_xfer_partial_ftype.
14029
b5b08fb4
SC
140302014-01-13 Siva Chandra Reddy <sivachandra@google.com>
14031
14032 PR python/15464
14033 PR python/16113
14034 * valops.c (value_struct_elt_bitpos): New function
14035 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
14036 object to 'None' if the field name is an empty string ("").
14037 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
14038 attribute to look for a field when 'name' is 'None'.
14039 (get_field_type): New function
14040
13aaf454
DE
140412014-01-13 Doug Evans <dje@google.com>
14042
14043 PR symtab/16426
14044 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
14045 (try_open_dwop_file): Ditto.
14046 * gdb_bfd.c: #include "vec.h".
14047 (bfdp): New typedef.
14048 (struct gdb_bfd_data): New member included_bfds.
14049 (gdb_bfd_unref): Unref all included bfds.
14050 (gdb_bfd_record_inclusion): New function.
14051 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
14052
c2cec97c
TT
140532014-01-13 Tom Tromey <tromey@redhat.com>
14054
14055 * gdbcore.h (deprecated_core_resize_section_table): Remove.
14056
78e5999d
TT
140572014-01-13 Tom Tromey <tromey@redhat.com>
14058
14059 * defs.h (use_windows): Remove.
14060 * gdb.c (main): Update.
14061 * main.c (captured_main, gdb_main): Update.
14062 * main.h (struct captured_main_args) <use_windows>: Remove.
14063 * top.c (use_windows): Remove.
14064
f2052bbe
TT
140652014-01-13 Tom Tromey <tromey@redhat.com>
14066
14067 * defs.h (deprecated_flush_hook): Remove.
14068
fde4f8ed
JK
140692014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
14070
14071 PR threads/16216
14072 * linux-thread-db.c (try_thread_db_load): Add parameter
14073 check_auto_load_safe. Move here the file_is_auto_load_safe call.
14074 (try_thread_db_load_from_pdir_1): Move it there from here.
14075 (try_thread_db_load_from_sdir): Update caller.
14076 (try_thread_db_load_from_dir): Move it there from here.
14077
bdf61915
PP
140782014-01-13 Patrick Palka <patrick@parcs.ath.cx>
14079
14080 * regformats/regdat.sh: Always rewrite the register file.
14081
f71e1a8d
PA
140822014-01-13 Pedro Alves <palves@redhat.com>
14083
14084 * Makefile.in (CHECK_HEADERS): New variable.
14085 (check-headers:): New rule.
14086
42c85435
TT
140872014-01-13 Tom Tromey <tromey@redhat.com>
14088
14089 * cli/cli-setshow.c (do_set_command): Update.
14090 * defs.h (deprecated_set_hook): Remove.
14091 * top.c (deprecated_set_hook): Remove.
14092
f8de5129
PA
140932014-01-13 Pedro Alves <palves@redhat.com>
14094
14095 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
14096 the tracepoint if the PC is a pseudo-register.
14097
fc270c35
TT
140982014-01-13 Tom Tromey <tromey@redhat.com>
14099
14100 * defs.h (XCALLOC): Remove.
14101 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
14102 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
14103 * dwarf2loc.c (allocate_piece_closure): Likewise.
14104 * elfread.c (elf_symfile_segments): Likewise.
14105 (elf_symfile_segments): Likewise.
14106 * gdbtypes.c (copy_type_recursive): Likewise.
14107 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
14108 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
14109 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
14110 XCALLOC.
14111 * mt-tdep.c (mt_gdbarch_init): Likewise.
14112 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
14113 XCALLOC.
14114 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
14115 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
14116 * registry.c (registry_alloc_data): Likewise.
14117 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
14118 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
14119 * serial.c (serial_fdopen_ops): Likewise.
14120 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
14121 XCALLOC.
14122 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
14123 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
14124 not XCALLOC.
14125
70ba0933
TT
141262014-01-13 Tom Tromey <tromey@redhat.com>
14127
14128 * defs.h (XMALLOC): Remove.
14129 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
14130 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
14131 * cli-out.c (struct ui_out *): Likewise.
14132 * cli/cli-dump.c (add_dump_command): Likewise.
14133 (add_dump_command): Likewise.
14134 * complaints.c (get_complaints): Likewise.
14135 (find_complaint): Likewise.
14136 * dwarf2-frame.c (execute_cfa_program): Likewise.
14137 * dwarf2read.c (abbrev_table_read_table): Likewise.
14138 * gdbarch.sh: Likewise.
14139 * gdbarch.c: Rebuild.
14140 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
14141 * interps.c (interp_new): Likewise.
14142 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
14143 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
14144 * mi/mi-console.c (mi_console_file_new): Likewise.
14145 * mi/mi-interp.c (mi_interpreter_init): Likewise.
14146 * mi/mi-out.c (mi_out_new): Likewise.
14147 * mi/mi-parse.c (mi_parse): Likewise.
14148 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
14149 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
14150 * observer.c (xalloc_observer_list_node): Likewise.
14151 * regcache.c (regcache_xmalloc_1): Likewise.
14152 * reggroups.c (reggroup_new): Likewise.
14153 (_initialize_reggroup): Likewise.
14154 * registry.c (register_data_with_cleanup): Likewise.
14155 * remote.c (remote_notif_stop_alloc_reply): Likewise.
14156 * ser-base.c (serial_ttystate): Likewise.
14157 * ser-mingw.c (make_pipe_state): Likewise.
14158 * ser-pipe.c (pipe_open): Likewise.
14159 * serial.c (serial_open): Likewise.
14160 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
14161 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
14162 (tui_alloc_win_info): Likewise.
14163 (tui_add_content_elements): Likewise.
14164 * tui/tui-file.c (tui_file_new): Likewise.
14165 * tui/tui-out.c (tui_out_new): Likewise.
14166 * ui-file.c (mem_file_new): Likewise.
14167 * ui-out.c (push_level): Likewise.
14168 (make_cleanup_ui_out_end): Likewise.
14169 (append_header_to_list): Likewise.
14170 (ui_out_new): Likewise.
14171 * user-regs.c (user_reg_add_builtin): Likewise.
14172
41bf6aca
TT
141732014-01-13 Tom Tromey <tromey@redhat.com>
14174
14175 * defs.h (XZALLOC): Remove.
14176 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
14177 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
14178 (get_ada_tasks_inferior_data): Likewise.
14179 * auto-load.c (get_auto_load_pspace_data): Likewise.
14180 * auxv.c (get_auxv_inferior_data): Likewise.
14181 * bfd-target.c (target_bfd_reopen): Likewise.
14182 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
14183 (deprecated_insert_raw_breakpoint): Likewise.
14184 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
14185 * corelow.c (core_open): Likewise.
14186 * darwin-nat.c (darwin_check_new_threads): Likewise.
14187 (darwin_attach_pid): Likewise.
14188 * dummy-frame.c (dummy_frame_push): Likewise.
14189 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
14190 * dwarf2loc.c (allocate_piece_closure): Likewise.
14191 * elfread.c (elf_symfile_segments): Likewise.
14192 * eval.c (ptrmath_type_p): Likewise.
14193 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
14194 * gdbtypes.c (alloc_type_arch): Likewise.
14195 (alloc_type_instance): Likewise.
14196 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
14197 * inf-child.c (inf_child_can_use_agent): Likewise.
14198 * inflow.c (get_inflow_inferior_data): Likewise.
14199 * infrun.c (save_infcall_suspend_state): Likewise.
14200 * jit.c (jit_reader_load): Likewise.
14201 (get_jit_objfile_data): Likewise.
14202 (get_jit_program_space_data): Likewise.
14203 (jit_object_open_impl): Likewise.
14204 (jit_symtab_open_impl): Likewise.
14205 (jit_block_open_impl): Likewise.
14206 (jit_frame_sniffer): Likewise.
14207 * linux-fork.c (add_fork): Likewise.
14208 * maint.c (make_command_stats_cleanup): Likewise.
14209 * objfiles.c (get_objfile_pspace_data): Likewise.
14210 * opencl-lang.c (struct lval_closure): Likewise.
14211 * osdata.c (osdata_start_osdata): Likewise.
14212 * progspace.c (new_address_space): Likewise.
14213 (add_program_space): Likewise.
14214 * remote-sim.c (get_sim_inferior_data): Likewise.
14215 * sh-tdep.c (sh_gdbarch_init): Likewise.
14216 * skip.c (Ignore): Likewise.
14217 (skip_delete_command): Likewise.
14218 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
14219 (library_list_start_library): Likewise.
14220 (solib_aix_current_sos): Likewise.
14221 * solib-darwin.c (get_darwin_info): Likewise.
14222 (darwin_current_sos): Likewise.
14223 * solib-dsbt.c (get_dsbt_info): Likewise.
14224 * solib-ia64-hpux.c (new_so_list): Likewise.
14225 (ia64_hpux_get_solib_linkage_addr): Likewise.
14226 * solib-spu.c (append_ocl_sos): Likewise.
14227 (spu_current_sos): Likewise.
14228 * solib-svr4.c (get_svr4_info): Likewise.
14229 (svr4_keep_data_in_core): Likewise.
14230 (library_list_start_library): Likewise.
14231 (svr4_default_sos): Likewise.
14232 (svr4_read_so_list): Likewise.
14233 * solib-target.c (library_list_start_library): Likewise.
14234 (solib_target_current_sos): Likewise.
14235 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
14236 * symfile-debug.c (install_symfile_debug_logging): Likewise.
14237 * symfile.c (default_symfile_segments): Likewise.
14238 * target-descriptions.c (tdesc_data_init): Likewise.
14239 (tdesc_create_reg): Likewise.
14240 (struct tdesc_type *): Likewise.
14241 (tdesc_create_vector): Likewise.
14242 (tdesc_set_struct_size): Likewise.
14243 (struct tdesc_type *): Likewise.
14244 (tdesc_free_feature): Likewise.
14245 (tdesc_create_feature): Likewise.
14246 * windows-nat.c (windows_add_thread): Likewise.
14247 (windows_make_so): Likewise.
14248 * xml-support.c (gdb_xml_body_text): Likewise.
14249 (gdb_xml_create_parser_and_cleanup): Likewise.
14250 (xml_process_xincludes): Likewise.
14251 * xml-syscall.c (allocate_syscalls_info): Likewise.
14252 (syscall_create_syscall_desc): Likewise.
14253
5acfdbae
SDJ
142542014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
14255
14256 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
14257 function, with code from i386_stap_parse_special_token.
14258 (i386_stap_parse_special_token_three_arg_disp): Likewise.
14259 (i386_stap_parse_special_token): Move code to the two functions
14260 above; simplify it.
14261
0000e5cc
PA
142622014-01-09 Pedro Alves <palves@redhat.com>
14263 Hui Zhu <hui@codesourcery.com>
14264
14265 PR gdb/16101
14266 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
14267 bp_err_string. Don't mark the location shlib_disabled if the
14268 error thrown wasn't a generic or memory error. Catch errors
14269 thrown while inserting breakpoints in overlayed code. Output
14270 error message of software breakpoints.
14271 * remote.c (remote_insert_breakpoint): If this breakpoint has
14272 target-side commands but this stub doesn't support Z0 packets,
14273 throw NOT_SUPPORTED_ERROR error.
14274 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
14275 * target.h (target_insert_breakpoint): Extend comment.
14276 (target_insert_hw_breakpoint): Add comment.
14277
b7ea362b
PA
142782014-01-08 Pedro Alves <palves@redhat.com>
14279
14280 * remote.c (remote_add_thread): Add threads silently if starting
14281 up.
14282 (remote_notice_new_inferior): If in all-stop, and starting up,
14283 don't call notice_new_inferior.
14284 (get_current_thread): New function, factored out from ...
14285 (add_current_inferior_and_thread): ... this. Adjust.
14286 (remote_start_remote) <all-stop>: Fetch the thread list. If we
14287 found any thread, then select the remote's current thread as GDB's
14288 current thread too.
14289
b7bba001
JB
142902014-01-08 Joel Brobecker <brobecker@adacore.com>
14291
14292 * NEWS: Create a new section for the next release branch.
14293 Rename the section of the current branch, now that it has
14294 been cut.
14295
16dfbded
JB
142962014-01-08 Joel Brobecker <brobecker@adacore.com>
14297
14298 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
14299 * version.in: Bump version to 7.7.50.DATE-cvs.
14300
22c90ac1
YQ
143012014-01-08 Yao Qi <yao@codesourcery.com>
14302
14303 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
14304 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
14305 (spu_xfer_partial): Cast 'buf' to 'const char *'.
14306
d64ad97c
YQ
143072014-01-08 Yao Qi <yao@codesourcery.com>
14308
14309 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
14310 return value of bfd_get_filename to symbol_file_add_from_bfd.
14311
f93ba80c
PM
143122014-01-08 Pierre Muller <muller@sourceware.org>
14313
14314 Fix PR16201.
14315 * coff-pe-read.c (struct read_pe_section_data): Add index field.
14316 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
14317 to prim_record_mininal_symbol_and_info.
14318 (add_pe_forwarded_sym): Use known section number of forwarded symbol
14319 in call to prim_record_minimal_symbol_and_info.
14320 (read_pe_exported_syms): Set index field of section_data.
14321
a4d9ba85
AP
143222014-01-07 Andrew Pinski <apinski@cavium.com>
14323
14324 * features/aarch64-core.xml (cpsr): Change to be 64bit.
14325 * features/aarch64.c: Regenerate.
14326
1b67eb02
AS
143272014-01-07 Andreas Schwab <schwab@linux-m68k.org>
14328
14329 * target.c (return_null): Define.
14330 (update_current_target): Use it instead of return_zero for
14331 functions that return a pointer.
14332
5e3f4fab
EBM
143332014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
14334
14335 * source.c (add_path): Fix check for duplicated paths in the previously
14336 included paths.
14337
e2616788
HK
143382014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
14339
14340 * ada-lang.c: Remove duplicated include statements.
14341 * alphabsd-nat.c: Ditto.
14342 * amd64-darwin-tdep.c: Ditto.
14343 * amd64fbsd-nat.c: Ditto.
14344 * auto-load.c: Ditto.
14345 * ax-gdb.c: Ditto.
14346 * breakpoint.c: Ditto.
14347 * dbxread.c: Ditto.
14348 * fork-child.c: Ditto.
14349 * gdb_usleep.c: Ditto.
14350 * i386-darwin-tdep.c: Ditto.
14351 * i386fbsd-nat.c: Ditto.
14352 * infcmd.c: Ditto.
14353 * inferior.c: Ditto.
14354 * jv-lang.c: Ditto.
14355 * linux-nat.c: Ditto.
14356 * linux-tdep.c: Ditto.
14357 * m68kbsd-nat.c: Ditto.
14358 * m68klinux-nat.c: Ditto.
14359 * microblaze-tdep.c: Ditto.
14360 * mips-linux-tdep.c: Ditto.
14361 * mn10300-tdep.c: Ditto.
14362 * nto-tdep.c: Ditto.
14363 * opencl-lang.c: Ditto.
14364 * osdata.c: Ditto.
14365 * printcmd.c: Ditto.
14366 * regcache.c: Ditto.
14367 * remote-m32r-sdi.c: Ditto.
14368 * remote.c: Ditto.
14369 * symfile.c: Ditto.
14370 * symtab.c: Ditto.
14371 * tilegx-linux-nat.c: Ditto.
14372 * tilegx-tdep.c: Ditto.
14373 * tracepoint.c: Ditto.
14374 * valops.c: Ditto.
14375 * vaxbsd-nat.c: Ditto.
14376 * windows-nat.c: Ditto.
14377 * xtensa-tdep.c: Ditto.
14378
bd1f7788
YQ
143792014-01-07 Yao Qi <yao@codesourcery.com>
14380
14381 * spu-linux-nat.c (_initialize_spu_nat): Declare.
14382
79301218
JB
143832014-01-07 Yao Qi <yao@codesourcery.com>
14384 Joel Brobecker <brobecker@adacore.com>
14385
14386 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
14387 (pdc_write_regs): Likewise.
14388 (fetch_regs_kernel_thread): Likewise.
14389 (store_regs_kernel_thread): Likewise.
14390
143912014-01-07 Joel Brobecker <brobecker@adacore.com>
14392
14393 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
14394 tagged type objects to their actual type.
14395
8e355c5d
JB
143962014-01-07 Joel Brobecker <brobecker@adacore.com>
14397
14398 * ada-valprint.c (print_field_values): Add "language" parameter.
14399 Update calls to print_field_values and print_variant_part.
14400 Pass new parameter "language" in call to val_print instead
14401 of "current_language". Replace call to ada_val_print by call
14402 to val_print.
14403 (print_variant_part): Add "language" parameter.
14404 (ada_val_print_struct_union): Update call to print_field_values.
14405
4fbf5aa5
JB
144062014-01-07 Joel Brobecker <brobecker@adacore.com>
14407
14408 * ada-valprint.c (ui_memcpy): Delete.
14409 (ada_print_floating): Update documentation. Add empty line
14410 between between function documentation and implementation.
14411 Delete variable "buffer". Use ui_file_xstrdup in place of
14412 ui_file_put. Minor adjustments following this change.
14413
71855601
JB
144142014-01-07 Joel Brobecker <brobecker@adacore.com>
14415
14416 * ada-valprint.c (ada_val_print_string): New function,
14417 extracted from ada_val_print_array.
14418 (ada_val_print_array): Replace extracted code by call
14419 to ada_val_print_string followed by a return. Move
14420 "else" branch to the function's top block.
14421
4eb27a30
JB
144222014-01-07 Joel Brobecker <brobecker@adacore.com>
14423
14424 * ada-valprint.c (ada_val_print_array): Move implementation
14425 down. Rename parameter "offset" and "val" into "offset_aligned"
14426 and "original_value" respectively. Add parameter "offset".
14427
34b27950
JB
144282014-01-07 Joel Brobecker <brobecker@adacore.com>
14429
14430 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
14431 re-organizing the code. Change the "???" message printed
14432 when target type is a TYPE_CODE_UNDEF into
14433 "<ref to undefined type>".
14434
079e4591
JB
144352014-01-07 Joel Brobecker <brobecker@adacore.com>
14436
14437 * ada-valprint.c (print_record): Delete, implementation inlined...
14438 (ada_val_print_struct_union): ... here. Remove call to
14439 ada_check_typedef in inlined implementation.
14440
8004dfd1
JB
144412014-01-07 Joel Brobecker <brobecker@adacore.com>
14442
14443 * ada-valprint.c (ada_val_print_gnat_array): New function,
14444 extracted from ada_val_print_1;
14445 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
14446 (ada_val_print_flt, ada_val_print_struct_union)
14447 (ada_val_print_ref): Likewise.
14448 (ada_val_print_1): Delete variables i and elttype.
14449 Replace extracted-out code by call to corresponding
14450 new functions.
14451
760a2db0
JB
144522014-01-07 Joel Brobecker <brobecker@adacore.com>
14453
14454 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
14455
3a92c861
JB
144562014-01-07 Joel Brobecker <brobecker@adacore.com>
14457
14458 * ada-valprint.c (ada_val_print_1): Replace calls to
14459 ada_val_print_1 by calls to val_print.
14460
cd1630f9
JB
144612014-01-07 Joel Brobecker <brobecker@adacore.com>
14462
14463 * ada-valprint.c (ada_val_print_1): Add parameter "language".
14464 Update calls to self accordingly. Replace calls to c_val_print
14465 by calls to val_print.
14466
bdf779a0
JB
144672014-01-07 Joel Brobecker <brobecker@adacore.com>
14468
14469 * ada-valprint.c (print_record): Delete declaration.
14470 (adjust_type_signedness, ada_val_print_1): Likewise.
14471 (ada_val_print): Move function implementation down.
14472 (print_variant_part, print_field_values, print_record):
14473 Move function implementation up.
14474
c0d48811
JB
144752014-01-07 Joel Brobecker <brobecker@adacore.com>
14476
14477 * python/py-type.c (typy_get_name): New function.
14478 (type_object_getset): Add entry for attribute "name".
14479 * NEWS: Add entry mentioning this new attribute.
14480
c26e9cbb
YQ
144812014-01-07 Yao Qi <yao@codesourcery.com>
14482
14483 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
14484 statement.
14485
0cc6f43d
YQ
144862014-01-07 Yao Qi <yao@codesourcery.com>
14487
14488 * gnu-nat.c (info_port_rights): Add qualifier const to
14489 argument args.
14490
eec03155
YQ
144912014-01-07 Yao Qi <yao@codesourcery.com>
14492
14493 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
14494
f04a82ef
YQ
144952014-01-07 Yao Qi <yao@codesourcery.com>
14496
14497 * gnu-nat.c (make_inf) Update declaration.
14498 (make_inf): Make it static.
14499 (inf_set_traced): Likewise.
14500 (inf_port_to_thread, inf_task_died_status): Likewise.
14501
d57dda0a
YQ
145022014-01-07 Yao Qi <yao@codesourcery.com>
14503
14504 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
14505
3aa8c969
YQ
145062014-01-07 Yao Qi <yao@codesourcery.com>
14507
14508 * gnu-nat.c (_initialize_gnu_nat): Declare.
14509
94123b4f
YQ
145102014-01-07 Yao Qi <yao@codesourcery.com>
14511
14512 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
14513 'enum bfd_endian'.
14514 (struct gdbarch_info) <byte_order>: Change type to
14515 'enum bfd_endian'.
14516 <byte_order_for_code>: Likewise.
14517 * gdbarch.c, gdbarch.h: Regenerated.
14518
dc81d70a
TT
145192014-01-06 Sasha Smundak <asmundak@google.com>
14520
14521 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
14522
cc2f3c35
TT
145232014-01-06 Tom Tromey <tromey@redhat.com>
14524
14525 * doublest.c (convert_doublest_to_floatformat): Use const, not
14526 CONST.
14527 * somread.c (som_symtab_read): Likewise.
14528
adcf2eed
HZ
145292014-01-07 Hui Zhu <hui@codesourcery.com>
14530
14531 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
14532 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
14533 (gdb_bfd_fopen): Ditto.
14534 (gdb_bfd_openr): Ditto.
14535 (gdb_bfd_openw): Ditto.
14536 (gdb_bfd_openr_iovec): Ditto.
14537 (gdb_bfd_fdopenr): Ditto.
14538 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
14539 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
14540 with xstrdup.
14541 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
14542 with xstrdup.
14543 * symfile-mem.c (symbol_file_add_from_memory): Removed
14544 gdb_bfd_stash_filename.
14545
50722198
DE
145462014-01-03 Doug Evans <dje@google.com>
14547
14548 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
14549 output.
14550
2fa4b862
JB
145512014-01-01 Joel Brobecker <brobecker@adacore.com>
14552
14553 Update year range in copyright notice of all files.
14554
28498c42
JB
145552014-01-01 Joel Brobecker <brobecker@adacore.com>
14556
14557 * top.c (print_gdb_version): Set copyright year to 2014.
14558
7b6e1046
JB
145592014-01-01 Joel Brobecker <brobecker@adacore.com>
14560
14561 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
14562
df96af55 14563For older changes see ChangeLog-2013.
c906108c
SS
14564\f
14565Local Variables:
14566mode: change-log
14567left-margin: 8
14568fill-column: 74
14569version-control: never
57da7796 14570coding: utf-8
c906108c 14571End:
This page took 2.327677 seconds and 4 git commands to generate.