ARM: stricter __stack_chk_guard check during prologue analysis
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
6041179a
JB
12014-10-29 Joel Brobecker <brobecker@adacore.com>
2
3 * arm-tdep.c (arm_skip_stack_protector): Return early if
4 address loaded by first "ldr" instruction does not have
5 a corresponding minimal symbol. Update comment.
6
6ae274b7
YQ
72014-10-29 Yao Qi <yao@codesourcery.com>
8
9 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
10 loaded address correctly of ldr instruction.
11
7f5ef605
PA
122014-10-28 Pedro Alves <palves@redhat.com>
13
14 PR gdb/12623
15 * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
16 field.
17 * infrun.c (resume) <stepping breakpoint instruction>: Set the
18 thread's stepped_breakpoint field. Skip if reverse debugging.
19 Add comment.
20 (init_thread_stepping_state, handle_signal_stop): Clear the
21 thread's stepped_breakpoint field.
22
7d1a114c
PA
232014-10-27 Pedro Alves <palves@redhat.com>
24
25 * remote.c (remote_thread_alive): New, factored out from ...
26 (remote_thread_alive): ... this.
27 (remote_update_thread_list): Bail out before deleting threads if
28 the target returned an empty list, and, the current thread has a
29 magic/fake ptid.
30
e5f8a7cc
PA
312014-10-27 Pedro Alves <palves@redhat.com>
32
33 * infrun.c (handle_signal_stop): Also skip handlers when a random
34 signal arrives while handling a "stepi" or a "nexti". Set the
35 thread's 'step_after_step_resume_breakpoint' flag.
36
71e396f9
LM
372014-10-27 Luis Machado <lgustavo@codesourcery.com>
38
39 * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
40 (arm_record_ld_st_imm_offset): Reimplement to cover all
41 load/store cases for ARM opcode 010.
42 (arm_record_ld_st_multiple): Reimplement to cover all
43 load/store cases for ARM opcode 100.
44
3aee438b
DE
452014-10-26 Doug Evans <xdje42@gmail.com>
46
47 * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
48
f88cb4b6
DE
492014-10-26 Doug Evans <xdje42@gmail.com>
50
51 * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
52 parameter "kind" to "block_index".
53 * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
54 "block_index".
55 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
56
a023a30f
DE
572014-10-26 Doug Evans <xdje42@gmail.com>
58
59 * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
60
4c35218e
DE
612014-10-26 Doug Evans <xdje42@gmail.com>
62
63 * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
64 obstack_alloc.
65
f08e8df3
DE
662014-10-26 Doug Evans <xdje42@gmail.com>
67
68 * parser-defs.h (block_found): Move decl from here ...
69 * symtab.h (block_found): ... to here.
70
cf901d3b
DE
712014-10-26 Doug Evans <xdje42@gmail.com>
72
73 * symtab.h (struct field_of_this_result): Fix typo in comment.
74 (lookup_symbol_in_language): Move function comment here.
75 (lookup_symbol): Improve function comment.
76 (basic_lookup_symbol_nonlocal): Ditto.
77 (lookup_symbol_static, lookup_symbol_global): Ditto.
78 (lookup_symbol_aux_block): Ditto.
79 (lookup_language_this): Add function comment.
80 (lookup_static_symbol_aux): Explicitly mark as extern. Improve
81 function comment.
82 (lookup_block_symbol): Improve function comment.
83 (lookup_struct): Fix capitalization in function comment.
84 (lookup_transparent_type): Add function comment.
85 (lookup_global_symbol_from_objfile): Explicitly mark as extern.
86 Improve function comment.
87 (lookup_objfile_from_block): Add function comment.
88 * symtab.c (lookup_symbol_in_language): Update function comment.
89 (lookup_symbol, lookup_language_this): Ditto.
90 (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
91 (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
92 (basic_lookup_symbol_nonlocal): Ditto.
93 (lookup_symbol_static, lookup_symbol_global): Ditto.
94 (lookup_transparent_type, lookup_block_symbol): Ditto.
95
ff6c39cf
DE
962014-10-25 Doug Evans <xdje42@gmail.com>
97
98 * symtab.c (types_info): Delete forward decl.
99 (functions_info, variables_info, sources_info): Ditto.
100 (_initialize_symtab): Rewrite forward decl to use
101 initialize_file_ftype.
102
ec201f0c
DE
1032014-10-25 Doug Evans <xdje42@gmail.com>
104
105 * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
106
ca040673
DE
1072014-10-25 Doug Evans <xdje42@gmail.com>
108
109 * dwarf2read.c (process_structure_scope): Remove second (nested) copy
110 of local var child_die.
111
6f259a23
DB
1122014-10-24 Don Breazeal <donb@codesourcery.com>
113
114 * infrun.c (follow_fork_inferior): Update fork message printing
115 to use target_terminal_ours_for_output instead of
116 target_terminal_ours, to use _() for all format strings, to print
117 "vfork" instead of "fork" for vforks, and to add a detach message.
118 (handle_vfork_child_exec_or_exit): Update message printing to use
119 target_terminal_ours_for_output instead of target_terminal_ours, to
120 use _() for all format strings, and to fix some formatting.
121
09dd9a69
PA
1222014-10-24 Pedro Alves <palves@redhat.com>
123
124 * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
125 * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
126 * config/vax/vax.mh: Delete.
127 * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
128 obsolete configurations section.
129 * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
130 * vax-nat.c: Delete file.
131
5ab806de
PA
1322014-10-24 Pedro Alves <palves@redhat.com>
133
134 * NEWS (Removed targets): Add OS/arch column.
135
3433cfa5
SC
1362014-10-24 Siva Chandra Reddy <sivachandra@google.com>
137
138 * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
139 on the arg type of a constructor only if it is of reference type.
140
96ba4233
SL
1412014-10-23 Sandra Loosemore <sandra@codesourcery.com>
142
143 * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
144 accessors and constants from nios2 opcodes update.
145 (nios2_get_next_pc): Likewise.
146
28153fd3
DE
1472014-10-19 Doug Evans <xdje42@gmail.com>
148
149 * gdbthread.h (set_running): Fix comment.
150 (set_executing, finish_thread_state): Fix comment.
151
fc9b8e47
DE
1522014-10-18 Doug Evans <xdje42@gmail.com>
153
154 * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
155
4ffbba72
DE
1562014-10-17 Doug Evans <dje@google.com>
157
158 * NEWS: Mention new event gdb.clear_objfiles.
159 * python/py-event.h (emit_clear_objfiles_event): Clear
160 * python/py-events.h (events_object): New member clear_objfiles.
161 * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
162 event.
163 * python/py-inferior.c (python_new_objfile): If objfile is NULL,
164 emit clear_objfiles event.
165 * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
166 function.
167 (emit_clear_objfiles_event): New function.
168 (clear_objfiles): New event.
169 * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
170 Declare.
171 * python/python.c (_initialize_python): Call
172 gdbpy_initialize_clear_objfiles_event.
173
d096d8c1
DE
1742014-10-17 Doug Evans <dje@google.com>
175
176 * NEWS: Mention new gdb.Objfile.progspace attribute.
177 * python/py-objfile.c (objfpy_get_progspace): New function.
178 (objfile_getset): New entry for "progspace".
179
6c4486e6
PA
1802014-10-17 Pedro Alves <palves@redhat.com>
181
182 PR gdb/17471
183 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
184 returns a copy of the input.
185 (run_command_1, continue_command, step_1, jump_command)
186 (signal_command, until_command, advance_command, finish_command)
187 (attach_command): Adjust and install a cleanup to free the
188 stripped args.
189
0ff33695
PA
1902014-10-17 Pedro Alves <palves@redhat.com>
191
192 PR gdb/17300
193 * infcmd.c (continue_1): If continuing all threads in the
194 foreground, make sure the inferior's terminal settings are put in
195 effect.
196
6fdebc3d
PA
1972014-10-17 Pedro Alves <palves@redhat.com>
198
199 PR gdb/17472
200 * annotate.c (annotate_breakpoints_invalid): Use
201 target_terminal_our_for_output instead of target_terminal_ours.
202 Give back the terminal to the target.
203 (annotate_frames_invalid): Likewise.
204
5842f62a
PA
2052014-10-17 Pedro Alves <palves@redhat.com>
206
207 * target.c (enum terminal_state): New enum.
208 (terminal_state): New global.
209 (target_terminal_init): New function.
210 (target_terminal_inferior): Skip if inferior already owns the
211 terminal.
212 (target_terminal_ours, target_terminal_ours_for_output): New
213 functions.
214 * target.h (target_terminal_init): Convert to function prototype.
215 (target_terminal_ours_for_output): Convert to function prototype
216 and tweak comment.
217 (target_terminal_ours): Convert to function prototype and tweak
218 comment.
219 * windows-nat.c (do_initial_windows_stuff): Call
220 target_terminal_init instead of child_terminal_init_with_pgrp.
221
32a8097b
PA
2222014-10-17 Pedro Alves <palves@redhat.com>
223
224 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
225 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
226 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
227 solib-osf.c.
228 * NEWS: Mention that support for alpha*-*-osf* has been removed.
229 * ada-lang.h [__alpha__ && __osf__]
230 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
231 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
232 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
233 GDB_OSABI_OSF1.
234 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
235 files.
236 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
237 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
238 * configure: Regenerate.
239 * configure.ac: Remove references to osf.
240 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
241 section. Remove all other references to osf.
242 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
243 Remove all other references to osf.
244 * dec-thread.c: Delete file.
245 * defs.h (GDB_OSABI_OSF1): Delete.
246 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
247 defined.
248 * osabi.c (gdb_osabi_names): Delete "OSF/1".
249 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
250 Delete code.
251 (unconditionally_kill_inferior)
252 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
253 * solib-osf.c: Delete file.
254
80134cf5
PA
2552014-10-17 Pedro Alves <palves@redhat.com>
256
257 * remote.c (clear_threads_listing_context): Move higher up, out of
258 the HAVE_LIBEXPAT guard.
259
89c7137f
TG
2602014-10-16 Tristan Gingold <gingold@adacore.com>
261
262 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
263 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
264 on amd64.
265
44ee4a52
PA
2662014-10-15 Pedro Alves <palves@redhat.com>
267
268 * dec-thread.c (dec_thread_count_gdb_threads)
269 (dec_thread_add_gdb_thread): Delete.
270 (dec_thread_update_thread_list): Delete.
271 (dec_thread_find_new_threads): Rename to ...
272 (dec_thread_update_thread_list): ... this. Delete GDB-size
273 threads that are no longer found in dec_thread_list.
274 (resync_thread_list): Delete.
275 (dec_thread_wait): Call dec_thread_update_thread_list instead of
276 resync_thread_list.
277
ab970af1
PA
2782014-10-15 Pedro Alves <palves@redhat.com>
279
280 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
281 * remote.c (remote_update_thread_list): Skip calling prune_threads
282 if any thread listing method is supported, and instead walk over
283 the set of remote threads listed, deleting those that are not
284 found in GDB's thread list.
285
e8032dde
PA
2862014-10-15 Pedro Alves <palves@redhat.com>
287
288 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
289 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
290 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
291 (bsd_uthread_target): Adjust.
292 * corelow.c (core_open): Adjust.
293 * dec-thread.c (dec_thread_find_new_threads): Update comment.
294 (dec_thread_update_thread_list): New function.
295 (init_dec_thread_ops): Adjust.
296 * gdbthread.h (prune_threads): New declaration.
297 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
298 (thread_db_update_thread_list): ... this. Call prune_threads.
299 (init_thread_db_ops): Adjust.
300 * nto-procfs.c (procfs_find_new_threads): Rename to ...
301 (procfs_update_thread_list): ... this. Call prune_threads.
302 (procfs_attach, procfs_create_inferior, init_procfs_targets):
303 Adjust.
304 * obsd-nat.c (obsd_find_new_threads): Rename to ...
305 (obsd_update_thread_list): ... this. Call prune_threads.
306 (obsd_add_target): Adjust.
307 * procfs.c (procfs_target): Adjust.
308 (procfs_notice_thread): Update comment.
309 (procfs_find_new_threads): Rename to ...
310 (procfs_update_thread_list): ... this. Call prune_threads.
311 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
312 comment.
313 (ravenscar_wait): Adjust.
314 (ravenscar_find_new_threads): Rename to ...
315 (ravenscar_update_thread_list): ... this. Call prune_threads.
316 (init_ravenscar_thread_ops): Adjust.
317 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
318 (record_btrace_update_thread_list): ... this. Adjust comment.
319 (init_record_btrace_ops): Adjust.
320 * remote.c (remote_threads_info): Rename to ...
321 (remote_update_thread_list): ... this. Call prune_threads.
322 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
323 Adjust.
324 * sol-thread.c (check_for_thread_db): Adjust.
325 (sol_find_new_threads_callback): Rename to ...
326 (sol_update_thread_list_callback): ... this.
327 (sol_find_new_threads): Rename to ...
328 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
329 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
330 * target-delegates.c: Regenerate.
331 * target.c (target_find_new_threads): Rename to ...
332 (target_update_thread_list): ... this.
333 * target.h (struct target_ops): Rename to_find_new_threads field
334 to to_update_thread_list.
335 (target_find_new_threads): Rename to ...
336 (target_update_thread_list): ... this.
337 * thread.c (prune_threads): Make extern.
338 (update_thread_list): Adjust.
339
6dc54d91
PA
3402014-10-15 Pedro Alves <palves@redhat.com>
341
342 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
343 Add describing comment. Return -1 if the qL packet is not
344 supported.
345 (struct thread_item, thread_item_t): Move higher up in
346 the file. Add comments.
347 (struct threads_parsing_context): Move higher up in
348 the file, add comments, and remote to ...
349 (struct threads_listing_context): ... this.
350 (remote_newthread_step): Don't add the thread to GDB's thread
351 database here. Instead push it to the thread_listing_context
352 list.
353 (remote_find_new_threads): Rename to ...
354 (remote_get_threads_with_ql): ... this. Add target_ops and
355 targets_listing_context parameters. Pass down context.
356 (start_thread): Adjust.
357 (clear_threads_parsing_context): Rename to ...
358 (clear_threads_listing_context): ... this.
359 (remote_get_threads_with_qxfer): New, with parts salvaged from old
360 remote_threads_info.
361 (remote_get_threads_with_qthreadinfo): Ditto.
362 (remote_threads_info): Reimplement.
363
36728e82
PA
3642014-10-15 Pedro Alves <palves@redhat.com>
365
366 * infrun.c (resume): Don't force displaced-stepping for all
367 single-steps on software single-stepping archs.
368
34b7e8a6
PA
3692014-10-15 Pedro Alves <palves@redhat.com>
370
371 * breakpoint.c (single_step_breakpoints): Delete global.
372 (insert_single_step_breakpoint): Adjust to store the breakpoint
373 pointer in the current thread.
374 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
375 (cancel_single_step_breakpoints): Delete functions.
376 (breakpoint_has_location_inserted_here): Make extern.
377 (single_step_breakpoint_inserted_here_p): Adjust to walk the
378 breakpoint list.
379 * breakpoint.h (breakpoint_has_location_inserted_here): New
380 declaration.
381 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
382 (cancel_single_step_breakpoints): Remove declarations.
383 * gdbthread.h (struct thread_control_state)
384 <single_step_breakpoints>: New field.
385 (delete_single_step_breakpoints)
386 (thread_has_single_step_breakpoints_set)
387 (thread_has_single_step_breakpoint_here): New declarations.
388 * infrun.c (follow_exec): Also clear the single-step breakpoints.
389 (singlestep_breakpoints_inserted_p, singlestep_ptid)
390 (singlestep_pc): Delete globals.
391 (infrun_thread_ptid_changed): Remove references to removed
392 globals.
393 (resume_cleanups): Delete the current thread's single-step
394 breakpoints.
395 (maybe_software_singlestep): Remove references to removed globals.
396 (resume): Adjust to use thread_has_single_step_breakpoints_set and
397 delete_single_step_breakpoints.
398 (init_wait_for_inferior): Remove references to removed globals.
399 (delete_thread_infrun_breakpoints): Delete the thread's
400 single-step breakpoints too.
401 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
402 single-step breakpoints here.
403 (delete_stopped_threads_single_step_breakpoints): New function.
404 (adjust_pc_after_break): Adjust to use
405 thread_has_single_step_breakpoints_set.
406 (handle_inferior_event): Remove references to removed globals.
407 Use delete_stopped_threads_single_step_breakpoints.
408 (handle_signal_stop): Adjust to per-thread single-step
409 breakpoints. Swap test order to do cheaper tests first.
410 (switch_back_to_stepped_thread): Extend debug output. Remove
411 references to removed globals.
412 * record-full.c (record_full_wait_1): Adjust to per-thread
413 single-step breakpoints.
414 * thread.c (delete_single_step_breakpoints)
415 (thread_has_single_step_breakpoints_set)
416 (thread_has_single_step_breakpoint_here): New functions.
417 (clear_thread_inferior_resources): Also delete the thread's
418 single-step breakpoints.
419
5b834a0a
PA
4202014-10-15 Pedro Alves <palves@redhat.com>
421
422 * thread.c (delete_thread_breakpoint): New function.
423 (delete_step_resume_breakpoint)
424 (delete_exception_resume_breakpoint): Use it.
425 (delete_at_next_stop): New function.
426 (clear_thread_inferior_resources): Use delete_at_next_stop.
427
a1fd2fa5
PA
4282014-10-15 Pedro Alves <palves@redhat.com>
429
430 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
431 (breakpoint_inserted_here_p): ... here. Remove special case for
432 software single-step breakpoints.
433 (find_non_raw_software_breakpoint_inserted_here): Inline ...
434 (software_breakpoint_inserted_here_p): ... here. Remove special
435 case for software single-step breakpoints.
436 (bp_target_info_copy_insertion_state)
437 (deprecated_insert_raw_breakpoint)
438 (deprecated_remove_raw_breakpoint): Delete functions.
439 * breakpoint.h (deprecated_insert_raw_breakpoint)
440 (deprecated_remove_raw_breakpoint): Remove declarations.
441
7c16b83e
PA
4422014-10-15 Pedro Alves <palves@redhat.com>
443
444 PR breakpoints/9649
445 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
446 Delete array globals.
447 (single_step_breakpoints): New global.
448 (breakpoint_xfer_memory): Remove special handling for single-step
449 breakpoints.
450 (update_breakpoints_after_exec): Delete bp_single_step
451 breakpoints.
452 (detach_breakpoints): Remove special handling for single-step
453 breakpoints.
454 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
455 (bpstat_stop_status): Add comment.
456 (bpstat_what, bptype_string, print_one_breakpoint_location)
457 (adjust_breakpoint_address, init_bp_location): Handle
458 bp_single_step.
459 (new_single_step_breakpoint): New function.
460 (set_momentary_breakpoint, bkpt_remove_location): Remove special
461 handling for single-step breakpoints.
462 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
463 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
464 Rewrite.
465 (detach_single_step_breakpoints, find_single_step_breakpoint):
466 Delete functions.
467 (breakpoint_has_location_inserted_here): New function.
468 (single_step_breakpoint_inserted_here_p): Rewrite.
469 * breakpoint.h: Remove FIXME.
470 (enum bptype) <bp_single_step>: New enum value.
471 (insert_single_step_breakpoint): Update comment.
472 * infrun.c (resume_cleanups)
473 (delete_step_thread_step_resume_breakpoint): Remove single-step
474 breakpoints.
475 (fetch_inferior_event): Install a cleanup that removes infrun
476 breakpoints.
477 (switch_back_to_stepped_thread) <expect thread advanced also>:
478 Clear step-over info.
479
0cbcdb96
PA
4802014-10-15 Pedro Alves <palves@redhat.com>
481
482 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
483 (delete_thread_infrun_breakpoints): New function, with parts
484 salvaged from delete_step_resume_breakpoint_callback.
485 (delete_step_thread_step_resume_breakpoint): Delete.
486 (for_each_just_stopped_thread_callback_func): New typedef.
487 (for_each_just_stopped_thread): New function.
488 (delete_just_stopped_threads_infrun_breakpoints): New function.
489 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
490 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
491 ... this. Adjust.
492 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
493
963f9c80
PA
4942014-10-15 Pedro Alves <palves@redhat.com>
495
496 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
497 trying to step past a non-steppable watchpoint.
498 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
499 field.
500 * infrun.c (struct step_over_info): Add new field
501 'nonsteppable_watchpoint_p' and adjust comments.
502 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
503 Adjust.
504 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
505 (stepping_past_nonsteppable_watchpoint): New function.
506 (step_over_info_valid_p): Also return true if stepping past a
507 nonsteppable watchpoint.
508 (proceed): Adjust call to set_step_over_info. Remove reference to
509 init_infwait_state.
510 (init_wait_for_inferior): Remove reference to init_infwait_state.
511 (waiton_ptid): Delete global.
512 (struct execution_control_state)
513 <stepped_after_stopped_by_watchpoint>: Delete field.
514 (wait_for_inferior, fetch_inferior_event): Always pass
515 minus_one_ptid to target_wait.
516 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
517 field.
518 (init_infwait_state): Delete function.
519 (handle_inferior_event): Remove infwait_state handling.
520 (handle_signal_stop) <watchpoints handling>: Adjust after
521 stepped_after_stopped_by_watchpoint removal. Don't remove
522 breakpoints here nor set infwait_state. Set the thread's
523 stepping_over_watchpoint flag, and call keep_going instead.
524 (keep_going): Handle stepping_over_watchpoint. Adjust
525 set_step_over_info calls.
526 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
527 function.
528
6cc83d2a
PA
5292014-10-15 Pedro Alves <palves@redhat.com>
530
531 * infrun.c (step_over_info_valid_p): New function.
532 (resume): Use step_over_info_valid_p instead of checking the
533 threads's trap_expected flag.
534
6979730b
DE
5352014-10-15 Doug Evans <dje@google.com>
536 Walfred Tedeschi <walfred.tedeschi@intel.com>
537
538 PR python/17364
539 * python/lib/gdb/__init__.py (packages): Add "printer".
540 * python/lib/gdb/command/bound_registers.py: Moved to ...
541 * python/lib/gdb/printer/bound_registers.py: ... here.
542 Add printer to global set of builtin printers. Rename printer from
543 "bound" to "mpx_bound128".
544 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
545 registered as global "builtin" printer.
546 (add_builtin_pretty_printer): New function.
547 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
548 gdb/printer/__init__.py.
549
35a49624
IB
5502014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
551
552 * Makefile.in (SFILES): Remove d-support.c.
553 (COMMON_OBS): Remove d-support.o.
554 * d-lang.h (d_parse_symbol): Remove declaration.
555 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
556 * d-support.c: Remove file.
557
8fa0c4f8
AA
5582014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
559
560 * gdb/infrun.c (process_event_stop_test): Apply
561 gdbarch_addr_bits_remove to longjmp resume address.
562
3666da81
PA
5632014-10-15 Pedro Alves <palves@redhat.com>
564
565 * regformats/microblaze.dat: Delete file.
566
449aa9df
AKA
5672014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
568
569 * features/Makefile (microblaze-expedite): Replace pc with rpc.
570 * regformats/microblaze-with-stack-protect.dat: Regenerate.
571
ebb8ece2
SC
5722014-10-15 Siva Chandra Reddy <sivachandra@google.com>
573
574 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
575 as non-trivial.
576
82c48ac7
SC
5772014-10-15 Siva Chandra Reddy <sivachandra@google.com>
578
579 PR c++/13403
580 PR c++/15154
581 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
582 with qualified args.
583
c40cc657
JB
5842014-10-14 Joel Brobecker <brobecker@adacore.com>
585
586 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
587 of the case where the second operand is a pointer.
588 <BINOP_SUB>: Likewise.
589
0ea5cda8
SDJ
5902014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
591
592 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
593 only if it is not NULL.
594 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
595 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
596 (struct probe_ops) <clear_semaphore>: Likewise.
597 * tracepoint.c (start_tracing): Call set_semaphore only if it is
598 not NULL.
599 (stop_tracing): Likewise, for clear_semaphore.
600
f7088df3
SDJ
6012014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
602
603 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
604 using language_c, instead of current_language.
605
4e1bbde0
DE
6062014-10-13 Doug Evans <dje@google.com>
607
6ff5a0f6 608 * python/py-objfile.c (objfpy_initialize): New function.
4e1bbde0 609 (objfpy_new, objfile_to_objfile_object): Call it.
6ff5a0f6 610 * python/py-progspace.c (pspy_initialize): New function.
4e1bbde0
DE
611 (pspy_new, pspace_to_pspace_object): Call it.
612
c780cc2f
JK
6132014-10-13 Miroslav Franc <mfranc@redhat.com>
614 Jan Kratochvil <jan.kratochvil@redhat.com>
615
616 Fix "save breakpoints" for "catch" command.
617 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
618 newline.
619
99894e11
JK
6202014-10-12 Miroslav Franc <mfranc@redhat.com>
621
622 Fix "save breakpoints" for "disable $bpnum" command.
623 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
624
3831839c
PA
6252014-10-10 Pedro Alves <palves@redhat.com>
626
627 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
628 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
629 (HFILES_NO_SRCDIR): Remove solib-irix.h.
630 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
631 and been removed.
632 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
633 * configure.ac: Remove references to IRIX.
634 * configure.host: Add *-*-irix* to the obsolete hosts section.
635 Remove all other references to irix.
636 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
637 Delete files.
638
cc3afae2
AKA
6392014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
640
641 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
642 isn't valid, release the tdesc arch data and return NULL.
643
cdfa0b0a
PA
6442014-10-10 Pedro Alves <palves@redhat.com>
645
646 * linux-tdep.c: Include observer.h.
647 (linux_inferior_data): New global.
648 (struct linux_info): New structure.
649 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
650 (get_linux_inferior_data): New functions.
651 (linux_vsyscall_range): Rename to ...
652 (linux_vsyscall_range_raw): ... this.
653 (linux_vsyscall_range): New function; handles caching.
654 (_initialize_linux_tdep): Register linux_inferior_data. Install
655 inferior_exit and inferior_appeared observers.
656
8b9a549d
PA
6572014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
658 Pedro Alves <palves@redhat.com>
659
660 PR symtab/14466
661 * solib-svr4.c (svr4_read_so_list): Rename to ...
662 (svr4_current_sos_1): ... this and change the function comment.
663 (svr4_current_sos): New function.
664
3437254d
PA
6652014-10-10 Pedro Alves <palves@redhat.com>
666
667 * arch-utils.c (default_vsyscall_range): New function.
668 * arch-utils.h (default_vsyscall_range): New declaration.
669 * gdbarch.sh (vsyscall_range): New hook.
670 * gdbarch.h, gdbarch.c: Regenerate.
671 * linux-tdep.c (linux_vsyscall_range): New function.
672 (linux_init_abi): Install linux_vsyscall_range as
673 vsyscall_range gdbarch hook.
674 * memrange.c (address_in_mem_range): New function.
675 * memrange.h (address_in_mem_range): New declaration.
676 * symfile-mem.c (find_vdso_size): Delete function.
677 (add_vsyscall_page): Use gdbarch_vsyscall_range.
678
31cc0b80
PA
6792014-10-10 Pedro Alves <palves@redhat.com>
680
681 * infrun.c (normal_stop): Fix typo in comment.
682
3e3286a2
SDJ
6832014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
684
685 PR tdep/9390
686 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
687 typo when using logical AND to determine instruction type.
688
fcbdedf8
YQ
6892014-10-09 Yao Qi <yao@codesourcery.com>
690
691 * infrun.c (handle_signal_stop): Remove local variable
692 'printed'.
693
db984616
SS
6942014-10-08 Stan Shebs <stan@codesourcery.com>
695
696 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
697
3ba37e6c
GB
6982014-10-08 Gary Benson <gbenson@redhat.com>
699
700 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
701
a442d071
GB
7022014-10-08 Gary Benson <gbenson@redhat.com>
703
704 * common/common-defs.h: Include common-exceptions.h.
705 * exceptions.h: Do not include common-exceptions.h.
706
6f1947e8
GB
7072014-10-08 Gary Benson <gbenson@redhat.com>
708
709 * common/common-defs.h: Include cleanups.h.
710 * common/common-exceptions.c: Do not include cleanups.h.
711 * utils.h: Likewise.
712
c765fdb9
GB
7132014-10-08 Gary Benson <gbenson@redhat.com>
714
715 * ada-lang.c: Do not include exceptions.h.
716 * ada-valprint.c: Likewise.
717 * amd64-tdep.c: Likewise.
718 * auto-load.c: Likewise.
719 * block.c: Likewise.
720 * break-catch-throw.c: Likewise.
721 * breakpoint.c: Likewise.
722 * btrace.c: Likewise.
723 * c-lang.c: Likewise.
724 * cli/cli-cmds.c: Likewise.
725 * cli/cli-interp.c: Likewise.
726 * cli/cli-script.c: Likewise.
727 * completer.c: Likewise.
728 * corefile.c: Likewise.
729 * corelow.c: Likewise.
730 * cp-abi.c: Likewise.
731 * cp-support.c: Likewise.
732 * cp-valprint.c: Likewise.
733 * darwin-nat.c: Likewise.
734 * dwarf2-frame-tailcall.c: Likewise.
735 * dwarf2-frame.c: Likewise.
736 * dwarf2loc.c: Likewise.
737 * dwarf2read.c: Likewise.
738 * eval.c: Likewise.
739 * event-loop.c: Likewise.
740 * event-top.c: Likewise.
741 * f-valprint.c: Likewise.
742 * frame-unwind.c: Likewise.
743 * frame.c: Likewise.
744 * gdbtypes.c: Likewise.
745 * gnu-v2-abi.c: Likewise.
746 * gnu-v3-abi.c: Likewise.
747 * guile/scm-auto-load.c: Likewise.
748 * guile/scm-breakpoint.c: Likewise.
749 * guile/scm-cmd.c: Likewise.
750 * guile/scm-frame.c: Likewise.
751 * guile/scm-lazy-string.c: Likewise.
752 * guile/scm-param.c: Likewise.
753 * guile/scm-symbol.c: Likewise.
754 * guile/scm-type.c: Likewise.
755 * hppa-hpux-tdep.c: Likewise.
756 * i386-tdep.c: Likewise.
757 * inf-loop.c: Likewise.
758 * infcall.c: Likewise.
759 * infcmd.c: Likewise.
760 * infrun.c: Likewise.
761 * interps.c: Likewise.
762 * interps.h: Likewise.
763 * jit.c: Likewise.
764 * linespec.c: Likewise.
765 * linux-nat.c: Likewise.
766 * linux-thread-db.c: Likewise.
767 * m32r-rom.c: Likewise.
768 * main.c: Likewise.
769 * memory-map.c: Likewise.
770 * mi/mi-cmd-break.c: Likewise.
771 * mi/mi-cmd-stack.c: Likewise.
772 * mi/mi-interp.c: Likewise.
773 * mi/mi-main.c: Likewise.
774 * monitor.c: Likewise.
775 * nto-procfs.c: Likewise.
776 * objc-lang.c: Likewise.
777 * p-valprint.c: Likewise.
778 * parse.c: Likewise.
779 * ppc-linux-tdep.c: Likewise.
780 * printcmd.c: Likewise.
781 * probe.c: Likewise.
782 * python/py-auto-load.c: Likewise.
783 * python/py-breakpoint.c: Likewise.
784 * python/py-cmd.c: Likewise.
785 * python/py-finishbreakpoint.c: Likewise.
786 * python/py-frame.c: Likewise.
787 * python/py-framefilter.c: Likewise.
788 * python/py-function.c: Likewise.
789 * python/py-gdb-readline.c: Likewise.
790 * python/py-inferior.c: Likewise.
791 * python/py-infthread.c: Likewise.
792 * python/py-lazy-string.c: Likewise.
793 * python/py-linetable.c: Likewise.
794 * python/py-param.c: Likewise.
795 * python/py-prettyprint.c: Likewise.
796 * python/py-symbol.c: Likewise.
797 * python/py-type.c: Likewise.
798 * python/py-value.c: Likewise.
799 * python/python-internal.h: Likewise.
800 * python/python.c: Likewise.
801 * record-btrace.c: Likewise.
802 * record-full.c: Likewise.
803 * regcache.c: Likewise.
804 * remote-fileio.c: Likewise.
805 * remote-mips.c: Likewise.
806 * remote.c: Likewise.
807 * rs6000-aix-tdep.c: Likewise.
808 * rs6000-nat.c: Likewise.
809 * skip.c: Likewise.
810 * solib-darwin.c: Likewise.
811 * solib-dsbt.c: Likewise.
812 * solib-frv.c: Likewise.
813 * solib-ia64-hpux.c: Likewise.
814 * solib-spu.c: Likewise.
815 * solib-svr4.c: Likewise.
816 * solib.c: Likewise.
817 * spu-tdep.c: Likewise.
818 * stack.c: Likewise.
819 * stap-probe.c: Likewise.
820 * symfile-mem.c: Likewise.
821 * symmisc.c: Likewise.
822 * target.c: Likewise.
823 * thread.c: Likewise.
824 * top.c: Likewise.
825 * tracepoint.c: Likewise.
826 * tui/tui-interp.c: Likewise.
827 * typeprint.c: Likewise.
828 * utils.c: Likewise.
829 * valarith.c: Likewise.
830 * valops.c: Likewise.
831 * valprint.c: Likewise.
832 * value.c: Likewise.
833 * varobj.c: Likewise.
834 * windows-nat.c: Likewise.
835 * xml-support.c: Likewise.
836
484933d1
MR
8372014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
838
839 * mips-tdep.c (add_offset_16): Rewrite to implement what the
840 name implies.
841 (extended_mips16_next_pc): Update accordingly.
842
ab50adb6
MR
8432014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
844
845 * mips-tdep.c (mips16_instruction_is_compact_branch): New
846 function.
847 (micromips_instruction_is_compact_branch): Likewise.
848 (mips16_scan_prologue): Terminate scanning upon seeing a branch
849 or a compact jump, reaching a jump delay slot, or seeing a
850 second non-prologue instruction.
851 (micromips_scan_prologue): Also terminate scanning upon seeing a
852 compact branch or jump, or reaching a branch or jump delay slot.
853 (mips32_scan_prologue): Terminate scanning upon reaching a branch
854 or jump delay slot, or seeing a second non-prologue instruction.
855 (mips32_instruction_has_delay_slot): Retain instruction
856 examination code only, update arguments accordingly and move
857 instruction fetch pieces to...
858 (mips32_insn_at_pc_has_delay_slot): ... this new function.
859 (micromips_instruction_has_delay_slot): Likewise and to...
860 (micromips_insn_at_pc_has_delay_slot): ... this new function.
861 (mips16_instruction_has_delay_slot): Likewise and to...
862 (mips16_insn_at_pc_has_delay_slot): ... this new function.
863 (mips_single_step_through_delay): Update accordingly.
864 (mips_adjust_breakpoint_address): Likewise.
865
ae790652
MR
8662014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
867
868 * mips-tdep.c (micromips_instruction_has_delay_slot): When
869 !mustbe32 also return 1 for 32-bit instructions.
870 (mips16_instruction_has_delay_slot): Likewise. Add an
871 explanatory comment.
872
9b807e7b
MR
8732014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
874
875 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
876 symbols special.
877
0d5ed153
MR
8782014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
879
880 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
881 update comments.
882 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
883 for the breakpoint's address. Don't preinitialize `placed_size'.
884 (insert_bp_location): Set `reqstd_address' rather than
885 `placed_address'.
886 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
887 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
888 address.
889 (bkpt_remove_location): Likewise.
890 (deprecated_insert_raw_breakpoint): Likewise.
891 (deprecated_remove_raw_breakpoint): Likewise.
892 (find_single_step_breakpoint): Likewise.
893 * mem-break.c (default_memory_insert_breakpoint): Use
894 `reqstd_address' for the breakpoint's address. Don't set
895 `placed_address' or `placed_size' if breakpoint contents couldn't
896 have been determined.
897 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
898 the breakpoint's address.
899 (remote_insert_hw_breakpoint): Likewise. Don't set
900 `placed_address' or `placed_size' if breakpoint couldn't have been
901 set.
902 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
903 `reqstd_address' for the breakpoint's address.
904 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
905 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
906 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
907 * microblaze-linux-tdep.c
908 (microblaze_linux_memory_remove_breakpoint): Likewise.
909 * monitor.c (monitor_insert_breakpoint): Likewise.
910 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
911 (procfs_insert_hw_breakpoint): Likewise.
912 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
913 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
914 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
915 * remote-mips.c (mips_insert_breakpoint): Likewise.
916 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
917
3e871532
LM
9182014-10-03 Luis Machado <lgustavo@codesourcery.com>
919
920 * valops.c (value_assign): Check for bit field assignments
921 before calling architecture-specific register value
922 conversion functions.
923
ec48dc8b
PM
9242014-10-03 Pierre Muller <muller@sourceware.org>
925
926 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
927
b57bacec
PA
9282014-10-02 Pedro Alves <palves@redhat.com>
929
930 * breakpoint.c (breakpoints_should_be_inserted_now): Use
931 threads_are_executing.
932 * breakpoint.h (breakpoints_should_be_inserted_now): Add
933 describing comment.
934 * gdbthread.h (threads_are_executing): Declare.
935 (handle_signal_stop) <random signals>: Don't print about the
936 signal here if stopping.
937 (end_stepping_range): Don't notify observers here.
938 (normal_stop): Update the thread list. If stopped by a random
939 signal or a stepping range ended, notify observers.
940 * thread.c (threads_executing): New global.
941 (init_thread_list): Clear 'threads_executing'.
942 (set_executing): Set or clear 'threads_executing'.
943 (threads_are_executing): New function.
944 (update_threads_executing): New function.
945 (update_thread_list): Use it.
946
13fd3ff3
PA
9472014-10-02 Pedro Alves <palves@redhat.com>
948
949 PR breakpoints/17431
950 * breakpoint.c (update_breakpoints_after_exec): Don't create
951 overlay, longjmp, std terminate nor exception breakpoints here.
952
32990ada
PA
9532014-10-02 Pedro Alves <palves@redhat.com>
954
955 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
956 Adjust comments.
957 * inferior.c (find_inferior_for_program_space): Give preference to
958 the current inferior.
959 * inferior.h (find_inferior_for_program_space): Update comment.
960 * progspace.c (switch_to_program_space_and_thread): Prefer the
961 current inferior if it's bound to the program space requested. If
962 the inferior found doesn't have a PID yet, don't bother looking up
963 a thread.
964 * progspace.h (switch_to_program_space_and_thread): Adjust
965 comment.
966 * thread.c (any_thread_of_process, any_live_thread_of_process):
967 Give preference to the current thread.
968
0fec99e8
PA
9692014-10-01 Pedro Alves <palves@redhat.com>
970
971 * breakpoint.c (insert_bp_location): Error out if inserting a
972 software breakpoint at a read-only address.
973 * target.c (memory_xfer_check_region): New function, factored out
974 from ...
975 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
976 ULONGEST.
977 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
978 against the memory region attributes.
979
2ddf4301
SM
9802014-10-01 Simon Marchi <simon.marchi@ericsson.com>
981
982 * NEWS: Announce new exit-code field in -list-thread-groups
983 output.
984 * inferior.c (exit_inferior_1): Don't clear exit code.
985 (inferior_appeared): Clear exit code.
986 * mi/mi-main.c (print_one_inferior): Add printing of the exit
987 code.
988
5fdeec1d
PA
9892014-10-01 Pedro Alves <palves@redhat.com>
990
991 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
992 GENERATED" along with emacs/vi read-only markers.
993 * regformats/aarch64.dat: Regenerate.
994 * regformats/arm-with-iwmmxt.dat: Regenerate.
995 * regformats/arm-with-neon.dat: Regenerate.
996 * regformats/arm-with-vfpv2.dat: Regenerate.
997 * regformats/arm-with-vfpv3.dat: Regenerate.
998 * regformats/i386/amd64-avx-linux.dat: Regenerate.
999 * regformats/i386/amd64-avx.dat: Regenerate.
1000 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
1001 * regformats/i386/amd64-avx512.dat: Regenerate.
1002 * regformats/i386/amd64-linux.dat: Regenerate.
1003 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
1004 * regformats/i386/amd64-mpx.dat: Regenerate.
1005 * regformats/i386/amd64.dat: Regenerate.
1006 * regformats/i386/i386-avx-linux.dat: Regenerate.
1007 * regformats/i386/i386-avx.dat: Regenerate.
1008 * regformats/i386/i386-avx512-linux.dat: Regenerate.
1009 * regformats/i386/i386-avx512.dat: Regenerate.
1010 * regformats/i386/i386-linux.dat: Regenerate.
1011 * regformats/i386/i386-mmx-linux.dat: Regenerate.
1012 * regformats/i386/i386-mmx.dat: Regenerate.
1013 * regformats/i386/i386-mpx-linux.dat: Regenerate.
1014 * regformats/i386/i386-mpx.dat: Regenerate.
1015 * regformats/i386/i386.dat: Regenerate.
1016 * regformats/i386/x32-avx-linux.dat: Regenerate.
1017 * regformats/i386/x32-avx.dat: Regenerate.
1018 * regformats/i386/x32-avx512-linux.dat: Regenerate.
1019 * regformats/i386/x32-avx512.dat: Regenerate.
1020 * regformats/i386/x32-linux.dat: Regenerate.
1021 * regformats/i386/x32.dat: Regenerate.
1022 * regformats/microblaze-with-stack-protect.dat: Regenerate.
1023 * regformats/mips-dsp-linux.dat: Regenerate.
1024 * regformats/mips-linux.dat: Regenerate.
1025 * regformats/mips64-dsp-linux.dat: Regenerate.
1026 * regformats/mips64-linux.dat: Regenerate.
1027 * regformats/nios2-linux.dat: Regenerate.
1028 * regformats/rs6000/powerpc-32.dat: Regenerate.
1029 * regformats/rs6000/powerpc-32l.dat: Regenerate.
1030 * regformats/rs6000/powerpc-64l.dat: Regenerate.
1031 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
1032 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
1033 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
1034 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
1035 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
1036 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
1037 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
1038 * regformats/s390-linux32.dat: Regenerate.
1039 * regformats/s390-linux32v1.dat: Regenerate.
1040 * regformats/s390-linux32v2.dat: Regenerate.
1041 * regformats/s390-linux64.dat: Regenerate.
1042 * regformats/s390-linux64v1.dat: Regenerate.
1043 * regformats/s390-linux64v2.dat: Regenerate.
1044 * regformats/s390-te-linux64.dat: Regenerate.
1045 * regformats/s390x-linux64.dat: Regenerate.
1046 * regformats/s390x-linux64v1.dat: Regenerate.
1047 * regformats/s390x-linux64v2.dat: Regenerate.
1048 * regformats/s390x-te-linux64.dat: Regenerate.
1049 * regformats/tic6x-c62x-linux.dat: Regenerate.
1050 * regformats/tic6x-c62x.dat: Regenerate.
1051 * regformats/tic6x-c64x-linux.dat: Regenerate.
1052 * regformats/tic6x-c64x.dat: Regenerate.
1053 * regformats/tic6x-c64xp-linux.dat: Regenerate.
1054 * regformats/tic6x-c64xp.dat: Regenerate.
1055
db74e4ba
PA
10562014-10-01 Pedro Alves <palves@redhat.com>
1057
1058 * features/Makefile: Update comments.
1059 (XMLTOC): List all xml files we build C files from.
1060 (clean-cfiles): New rule.
1061
d63f2f84
PA
10622014-10-01 Pedro Alves <palves@redhat.com>
1063
1064 * features/i386/amd64-avx512-linux.c: Regenerate.
1065 * features/i386/amd64-avx512.c: Regenerate.
1066 * features/i386/x32-avx512-linux.c: Regenerate.
1067 * features/i386/x32-avx512.c: Regenerate.
1068
20ad026d
PA
10692014-10-01 Pedro Alves <palves@redhat.com>
1070
1071 * features/Makefile (WHICH): Remove arm-with-m,
1072 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
1073
acc9fe45
PA
10742014-10-01 Pedro Alves <palves@redhat.com>
1075
1076 * features/Makefile (clean): New rule.
1077
e001e535
PA
10782014-10-01 Pedro Alves <palves@redhat.com>
1079
1080 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
1081 (zmm14h): Add missing end quotes.
1082
bdc14417
PA
10832014-10-01 Pedro Alves <palves@redhat.com>
1084
1085 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
1086 * features/aarch64.c: Regenerate.
1087
d83ad864
DB
10882014-09-30 Don Breazeal <donb@codesourcery.com>
1089
1090 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
1091 code so as to work with follow_fork_inferior.
1092 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
1093 (inf_ttrace_create_inferior): Remove reference to
1094 inf_ttrace_vfork_ppid.
1095 (inf_ttrace_attach): Ditto.
1096 (inf_ttrace_detach): Ditto.
1097 (inf_ttrace_kill): Use current_inferior instead of
1098 inf_ttrace_vfork_ppid.
1099 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
1100 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
1101 inferior away from the parent.
1102 * infrun.c (follow_fork): Call follow_fork_inferior instead of
1103 target_follow_fork.
1104 (follow_fork_inferior): New function.
1105 (follow_inferior_reset_breakpoints): Make function static.
1106 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
1107 * linux-nat.c (linux_child_follow_fork): Move target-independent
1108 code to infrun.c:follow_fork_inferior.
1109
29082443
AA
11102014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1111
1112 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
1113 * gdbarch.c: Regenerate.
1114 * gdbarch.h: Likewise.
1115 * corelow.c (sniff_core_bfd): Drop presence check for deleted
1116 gdbarch method 'regset_from_core_section'.
1117 (get_core_register_section): Remove handling for the case that
1118 regset == NULL and regset_from_core_section is defined.
1119 (get_core_registers): Drop check for deleted method.
1120 * procfs.c (procfs_do_thread_registers): Adjust comment.
1121
f968fe80
AA
11222014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1123
1124 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
1125 (linux_nat_make_corefile_notes): Remove.
1126 (linux_target_install_ops): Do not set target method
1127 'make_corefile_notes'.
1128 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
1129 Remove field.
1130 (linux_corefile_thread_callback): Instead of args->collect, call
1131 linux_collect_thread_registers.
1132 (linux_make_corefile_notes): Remove 'collect' parameter. Return
1133 NULL unless there is a regset iterator.
1134 (linux_make_corefile_notes_1): Remove.
1135 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
1136 by linux_make_corefile_notes.
1137 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
1138
174ad59a
AA
11392014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1140
1141 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
1142 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
1143 Remove.
1144 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
1145
97094034
AA
11462014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1147
1148 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
1149 (xtensa_iterate_over_regset_sections): New.
1150 (xtensa_gdbarch_init): Adjust gdbarch initialization.
1151
f73d3ce7
AA
11522014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1153
1154 * vax-tdep.c (vax_regset_from_core_section): Remove.
1155 (vax_iterate_over_regset_sections): New.
1156 (vax_gdbarch_init): Adjust gdbarch initialization.
1157
cb24567a
AA
11582014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1159
1160 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
1161 (tilegx_regset_from_core_section): Remove.
1162 (tilegx_iterate_over_regset_sections): New.
1163 (tilegx_linux_init_abi): Adjust gdbarch initialization.
1164
e5139de8
AA
11652014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1166
1167 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
1168 (sparc_iterate_over_regset_sections): New.
1169 (sparc32_gdbarch_init): Adjust gdbarch initialization.
1170 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
1171 targets.
1172 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
1173 (sparc64fbsd_init_abi): Call fbsd_init_abi.
1174 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
1175 target method 'make_corefile_notes'.
1176
c6d41a6f
AA
11772014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1178
1179 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
1180 'sizeof_gregset' and 'sizeof_fpregset'.
1181 * sh-tdep.c (sh_regset_from_core_section): Remove.
1182 (sh_iterate_over_regset_sections): New.
1183 (sh_gdbarch_init): Adjust gdbarch initialization.
1184 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
1185 sizeof_fpregset.
1186 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
1187 'sizeof_gregset'.
1188
9845a0b5
AA
11892014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1190
1191 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
1192 (score7_linux_iterate_over_regset_sections): New.
1193 (score_gdbarch_init): Adjust gdbarch initialization.
1194
23ea9aeb
AA
11952014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1196
1197 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
1198 FreeBSD targets.
1199 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
1200 method 'make_corefile_notes'.
1201 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
1202 (ppcfbsd_regset_from_core_section): Remove.
1203 (ppcfbsd_iterate_over_regset_sections): New.
1204 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
1205 initialization.
1206 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
1207 (ppcnbsd_iterate_over_regset_sections): New.
1208 (ppcnbsd_init_abi): Adjust.
1209 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
1210 (ppcobsd_iterate_over_regset_sections): New.
1211 (ppcobsd_init_abi): Adjust.
1212 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
1213 (rs6000_aix_iterate_over_regset_sections): New.
1214 (rs6000_aix_init_osabi): Adjust.
1215
c5b8d704
AA
12162014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1217
1218 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
1219 (nios2_regset_from_core_section): Remove.
1220 (nios2_iterate_over_regset_sections): New.
1221 (nios2_linux_init_abi): Adjust gdbarch initialization.
1222
3636e608
AA
12232014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1224
1225 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
1226 (am33_iterate_over_regset_sections): New.
1227 (am33_linux_init_osabi): Adjust gdbarch initialization.
1228
d4036235
AA
12292014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1230
1231 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
1232 (mips_linux_iterate_over_regset_sections): New.
1233 (mips_linux_init_abi): Adjust gdbarch initialization.
1234 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
1235 (mips64obsd_iterate_over_regset_sections): New.
1236 (mips64obsd_init_abi): Adjust.
1237 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
1238 (mipsnbsd_iterate_over_regset_sections): New.
1239 (mipsnbsd_init_abi): Adjust.
1240
b61ddd6e
AA
12412014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1242
1243 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
1244 (m88k_iterate_over_regset_sections): New.
1245 (m88k_gdbarch_init): Adjust gdbarch initialization.
1246
55a2906a
AA
12472014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1248
1249 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
1250 (ia64_linux_iterate_over_regset_sections): New.
1251 (ia64_linux_init_abi): Adjust gdbarch initialization.
1252
022c98ab
AA
12532014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1254
1255 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
1256 (m68kbsd_iterate_over_regset_sections): New.
1257 (m68kbsd_init_abi): Adjust gdbarch initialization.
1258 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
1259 (m68k_linux_iterate_over_regset_sections): New.
1260 (m68k_linux_init_abi): Adjust gdbarch initialization.
1261
5fac247f
AA
12622014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1263
1264 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
1265 (m32r_linux_regset_from_core_section): Remove.
1266 (m32r_linux_iterate_over_regset_sections): New.
1267 (m32r_linux_init_abi): Adjust gdbarch initialization.
1268
490496c3
AA
12692014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1270
1271 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
1272 (amd64obsd_iterate_over_regset_sections): New.
1273 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
1274 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
1275 Remove.
1276 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
1277 regset_from_core_section initialization.
1278 * i386-tdep.c (i386_regset_from_core_section): Remove.
1279 (i386_iterate_over_regset_sections): New.
1280 (i386_gdbarch_init): Adjust gdbarch initialization.
1281 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
1282 (i386_iterate_over_regset_sections): New prototype.
1283 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
1284 Remove.
1285 (i386obsd_aout_iterate_over_regset_sections): New.
1286 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
1287 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
1288 targets.
1289 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
1290 (amd64fbsd_init_abi): Call fbsd_init_abi.
1291 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
1292 (i386fbsd4_init_abi): Call fbsd_init_abi.
1293 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
1294 target method 'make_corefile_notes'.
1295 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
1296
50c5eb53
AA
12972014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1298
1299 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
1300 (hppa_hpux_iterate_over_regset_sections): New.
1301 (hppa_hpux_init_abi): Adjust gdbarch initialization.
1302 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
1303 (hppa_linux_iterate_over_regset_sections): New.
1304 (hppa_linux_init_abi): Adjust.
1305 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
1306 (hppanbsd_iterate_over_regset_sections): New.
1307 (hppanbsd_init_abi): Adjust.
1308 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
1309 (hppaobsd_iterate_over_regset_sections): New.
1310 (hppaobsd_init_abi): Adjust.
1311
66afae4f
AA
13122014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1313
1314 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
1315 (frv_linux_iterate_over_regset_sections): New.
1316 (frv_linux_init_abi): Adjust gdbarch initialization.
1317
ed09174e
AA
13182014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1319
1320 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
1321 (armbsd_iterate_over_regset_sections): New prototype.
1322 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
1323 (armbsd_iterate_over_regset_sections): New.
1324 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
1325 initialization.
1326
dff2166e
AA
13272014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1328
1329 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
1330 (alpha_linux_iterate_over_regset_sections): New.
1331 (alpha_linux_init_abi): Adjust gdbarch initialization.
1332 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
1333 prototype.
1334 (alphanbsd_iterate_over_regset_sections): New prototype.
1335
4108500a
AA
13362014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1337
1338 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
1339 Remove.
1340 (aarch64_linux_iterate_over_regset_sections): New.
1341 (aarch64_linux_init_abi): Adjust gdbarch initialization.
1342
a904c024
AA
13432014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1344
1345 * fbsd-tdep.c: New file.
1346 * fbsd-tdep.h: New file.
1347 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
1348 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
1349 (ALLDEPFILES): Add fbsd-tdep.c.
1350
8f0435f7
AA
13512014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1352
1353 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
1354 parameter.
1355 * gdbarch.h: Regenerate.
1356 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
1357 iterator.
1358 (get_core_register_section): Add parameter 'regset' and use it, if
1359 set. Add parameter 'min_size' and verify the bfd section size
1360 against it.
1361 (get_core_registers_cb): Add parameter 'regset' and pass it to
1362 get_core_register section. For the "standard" register sections
1363 ".reg" and ".reg2", set an appropriate default for human_name.
1364 (get_core_registers): Don't abort when the gdbarch has an iterator
1365 but no regset_from_core_section. Add NULL/0 for parameters
1366 'regset'/'min_size' in calls to get_core_register_section.
1367 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
1368 'regset' and use it instead of calling the
1369 regset_from_core_section gdbarch method.
1370 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
1371 * i386-tdep.c (i386_supply_xstateregset)
1372 (i386_collect_xstateregset, i386_xstateregset): Moved to
1373 i386-linux-tdep.c.
1374 (i386_regset_from_core_section): Drop handling for .reg-xfp and
1375 .reg-xstate.
1376 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
1377 core file support only if the regset iterator hasn't been set.
1378 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
1379 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
1380 Moved from i386-tdep.c and renamed to *_linux*.
1381 (i386_linux_iterate_over_regset_sections): Add regset parameter to
1382 each callback invocation. Allow any .reg-xstate size when reading
1383 from a core file.
1384 * amd64-tdep.c (amd64_supply_xstateregset)
1385 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
1386 amd64-linux-tdep.c.
1387 (amd64_regset_from_core_section): Remove.
1388 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
1389 install an amd64-specific regset_from_core_section gdbarch method.
1390 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
1391 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
1392 Moved from amd64-tdep.c and renamed to *_linux*.
1393 (amd64_linux_iterate_over_regset_sections): Add regset parameter
1394 to each callback invocation. Allow any .reg-xstate size when
1395 reading from a core file.
1396 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
1397 (arm_linux_iterate_over_regset_sections): Add regset parameter to
1398 each callback invocation.
1399 (arm_linux_init_abi): No longer set the regset_from_core_section
1400 gdbarch method.
1401 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
1402 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
1403 each callback invocation.
1404 (ppc_linux_init_abi): No longer set the regset_from_core_section
1405 gdbarch method.
1406 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
1407 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
1408 (s390_regset_from_core_section): Remove.
1409 (s390_iterate_over_regset_sections): Add regset parameter to each
1410 callback invocation.
1411 (s390_gdbarch_init): No longer set the regset_from_core_section
1412 gdbarch method. Drop initialization of deleted tdep fields.
1413
5aa82d05
AA
14142014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1415
1416 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
1417 (amd64_linux_iterate_over_regset_sections): New.
1418 (amd64_linux_init_abi_common): Don't install the regset section
1419 list, but the new iterator in gdbarch.
1420 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
1421 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
1422 (arm_linux_iterate_over_regset_sections): ...here. New function.
1423 (arm_linux_init_abi): Set iterator instead of section list.
1424 * corelow.c (get_core_registers_cb): New function, logic moved
1425 from...
1426 (get_core_registers): ...loop body here. Use new iterator method
1427 instead of walking through the regset section list.
1428 * gdbarch.sh: Remove 'core_regset_sections'. New method
1429 'iterate_over_regset_sections'. New typedef
1430 'iterate_over_regset_sections_cb'.
1431 * gdbarch.c: Regenerate.
1432 * gdbarch.h: Likewise.
1433 * i386-linux-tdep.c (i386_linux_regset_sections)
1434 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
1435 Remove.
1436 (i386_linux_iterate_over_regset_sections): New.
1437 (i386_linux_init_abi): Don't choose a regset section list, but
1438 install new iterator in gdbarch.
1439 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
1440 (linux_collect_regset_section_cb): New function, logic moved
1441 from...
1442 (linux_collect_thread_registers): ...loop body here. Use iterator
1443 method instead of walking through list.
1444 (linux_make_corefile_notes_1): Check for presence of iterator
1445 method instead of regset section list.
1446 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
1447 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
1448 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
1449 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
1450 (ppc_linux_iterate_over_regset_sections): ...here. New function.
1451 (ppc_linux_init_abi): Don't choose from above regset section
1452 lists, but install new iterator in gdbarch.
1453 * regset.h (struct core_regset_section): Remove.
1454 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
1455 have_linux_v1, have_linux_v2, and have_tdb.
1456 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
1457 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
1458 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
1459 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
1460 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
1461 (s390_iterate_over_regset_sections): ...here. New function. Use
1462 new tdep fields.
1463 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
1464 regset section lists, but install new iterator.
1465
2eca4a8d
JK
14662014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1467
1468 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
1469
a73c2b56
SM
14702014-09-26 Simon Marchi <simon.marchi@ericsson.com>
1471
1472 * progspace.c (print_program_space): Don't prune program spaces
1473 before printing them.
1474
03d46957
PA
14752014-09-25 Pedro Alves <palves@redhat.com>
1476
1477 * infrun.c (user_visible_resume_ptid): Don't check
1478 singlestep_breakpoints_inserted_p.
1479
e558d7c1
PA
14802014-09-25 Pedro Alves <palves@redhat.com>
1481
1482 * breakpoint.c (should_be_inserted): Add debug output.
1483
7f89fd65
PA
14842014-09-25 Pedro Alves <palves@redhat.com>
1485
1486 * infrun.c (stepping_past_instruction_at)
1487 (clear_exit_convenience_vars): Point at infrun.h instead of
1488 inferior.h.
1489 (handle_signal_stop): Fix typo.
1490
b7576e5c
YQ
14912014-09-24 Yao Qi <yao@codesourcery.com>
1492
1493 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
1494 bitmask.
1495
9a6cf368
GB
14962014-09-22 Gary Benson <gbenson@redhat.com>
1497
1498 * target.c (target_stop): Updated comment.
1499
03f4463b
GB
15002014-09-22 Gary Benson <gbenson@redhat.com>
1501
1502 * target/target.h (target_stop_ptid): Renamed as...
1503 (target_stop_and_wait): New function. Updated comment.
1504 All uses updated.
1505 (target_continue_ptid): Renamed as...
1506 (target_continue_no_signal): New function. Updated comment.
1507 All uses updated.
1508
a25a5a45
PA
15092014-09-22 Pedro Alves <palves@redhat.com>
1510
1511 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
1512 and "auto" merged.
1513 * breakpoint.c (enum ugll_insert_mode): New enum.
1514 (always_inserted_mode): Now a plain boolean.
1515 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
1516 (breakpoints_always_inserted_mode): Delete.
1517 (breakpoints_should_be_inserted_now): New function.
1518 (insert_breakpoints): Pass UGLL_INSERT to
1519 update_global_location_list instead of calling
1520 insert_breakpoint_locations manually.
1521 (create_solib_event_breakpoint_1): New, factored out from ...
1522 (create_solib_event_breakpoint): ... this.
1523 (create_and_insert_solib_event_breakpoint): Use
1524 create_solib_event_breakpoint_1 instead of calling
1525 insert_breakpoint_locations manually.
1526 (update_global_location_list): Change parameter type from boolean
1527 to enum ugll_insert_mode. All callers adjusted. Adjust to use
1528 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
1529 (update_global_location_list_nothrow): Change parameter type from
1530 boolean to enum ugll_insert_mode.
1531 (_initialize_breakpoint): "breakpoint always-inserted" option is
1532 now a boolean command. Update help text.
1533 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
1534 (breakpoints_should_be_inserted_now): New declaration.
1535 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
1536 Remove breakpoints_always_inserted_mode check.
1537 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
1538 * remote.c (remote_start_remote): Likewise.
1539
04086b45
PA
15402014-09-22 Pedro Alves <palves@redhat.com>
1541
1542 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
1543 (insert_breakpoints): Don't call insert_breakpoint_locations here.
1544 Instead, pass UGLL_INSERT to update_global_location_list.
1545 (update_global_location_list): Change parameter type from boolean
1546 to enum ugll_insert_mode. All callers adjusted. Adjust to use
1547 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
1548 (create_solib_event_breakpoint_1): New, factored out from ...
1549 (create_solib_event_breakpoint): ... this.
1550 (create_and_insert_solib_event_breakpoint): Use
1551 create_solib_event_breakpoint_1 instead of calling
1552 insert_breakpoint_locations manually.
1553 (update_global_location_list): Handle UGLL_INSERT.
1554
44702360
PA
15552014-09-22 Pedro Alves <palves@redhat.com>
1556
1557 * breakpoint.c (enum ugll_insert_mode): New enum.
1558 (update_global_location_list)
1559 (update_global_location_list_nothrow): Change parameter type from
1560 boolean to enum ugll_insert_mode. All callers adjusted.
1561
93c6145a
JB
15622014-09-19 Joel Brobecker <brobecker@adacore.com>
1563
1564 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
1565 SystemTap support in GDB.
1566
89a5711c
DB
15672014-09-19 Don Breazeal <donb@codesourcery.com>
1568
1569 * linux-nat.c (linux_handle_extended_wait): Call
1570 linux_ptrace_get_extended_event.
1571 (wait_lwp): Call linux_is_extended_waitstatus.
1572 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
1573 and linux_is_extended_waitstatus.
1574 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
1575 linux_ptrace_get_extended_event.
1576 (linux_ptrace_get_extended_event): New function.
1577 (linux_is_extended_waitstatus): New function.
1578 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
1579 (linux_is_extended_waitstatus): New declarations.
1580
c3b7b696
YQ
15812014-09-19 Yao Qi <yao@codesourcery.com>
1582
1583 * dwarf2read.c (dwarf_decode_lines): Update declaration.
1584 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
1585 comments. Callers update.
1586 (dwarf_decode_lines): Likewise.
1587 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
1588 comments. Skip the line table if 'lowpc' is greater than
1589 'address'. Don't check
1590 dwarf2_per_objfile->has_section_at_zero.
1591
2b4fd423
DE
15922014-09-18 Doug Evans <dje@google.com>
1593
1594 * NEWS: Mention new "producer" attribute of gdb.Symtab.
1595 * python/py-symtab.c (stpy_get_producer): New function.
1596 (symtab_object_getset): Add "producer" attribute.
1597
5e43d467
UW
15982014-09-17 Ulrich Weigand  <uweigand@de.ibm.com>
1599
1600 PR gdb/17384
1601 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
1602 (do_captured_read_memory_integer): Remove.
1603 (safe_read_memory_integer): Use target_read_memory directly instead
1604 of catching errors in do_captured_read_memory_integer.
1605
04e79979
MR
16062014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
1607
1608 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
1609 not gdb/doc.
1610
76aeec5b
SDJ
16112014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1612
1613 * objc-lang.c (find_implementation_from_class): Remove dead code.
1614
2f693f9d
SDJ
16152014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1616
1617 PR cli/7233
1618 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
1619 "fprintf_unfiltered (gdb_stdlog...)".
1620
bb9d5f81
PP
16212014-09-16 Patrick Palka <patrick@parcs.ath.cx>
1622
1623 PR breakpoints/12526
1624 * breakpoint.h (struct watchpoint): New fields val_bitpos and
1625 val_bitsize.
1626 * breakpoint.c (watch_command_1): Use these fields to retain
1627 bitfield information.
1628 (extract_bitfield_from_watchpoint_value): New function.
1629 (watchpoint_check): Use it.
1630 (update_watchpoint): Use it. Optimize the address and length of a
1631 HW watchpoint pointing to a bitfield.
1632 * value.h (unpack_value_bitfield): New prototype.
1633 * value.c (unpack_value_bitfield): Make extern.
1634
05db5edd
ST
16352014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
1636
1637 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
1638 x86-dregs.o.
1639 * gnu-nat.c (inf_threads): New function.
1640 * gnu-nat.h (inf_threads_ftype): New typedef.
1641 (inf_threads): New declaration.
1642 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
1643 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
1644 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
1645 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
1646 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
1647 (i386_gnu_dr_get_control): New functions.
1648 (reg_addr): New structure.
1649 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
1650 i386 debugging register hooks.
1651 * NEWS: Mention this.
1652
5a578da5
OJ
16532014-08-13 Omair Javaid <omair.javaid@linaro.org>
1654
1655 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
1656 vector data transfer instructions.
1657 (arm_record_coproc_data_proc): Updated.
1658
f20f80dd
OJ
16592014-08-13 Omair Javaid <omair.javaid@linaro.org>
1660
1661 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
1662 arm_record_exreg_ld_st_insn.
1663 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
1664 load/store insns.
1665
851f26ae
OJ
16662014-08-13 Omair Javaid <omair.javaid@linaro.org>
1667
1668 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
1669 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
1670 processing instructions.
1671
1e1b6563
OJ
16722014-08-13 Omair Javaid <omair.javaid@linaro.org>
1673
1674 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
1675 for advance SIMD struct ld/st insn.
1676 (thumb2_record_decode_insn_handler): Replace stub handler with
1677 thumb2_record_asimd_struct_ld_st.
1678
60cc5e93
OJ
16792014-08-13 Omair Javaid <omair.javaid@linaro.org>
1680
1681 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
1682 for asimd, vfp and coprocessor insns.
1683 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
1684 and coprocessor insns.
1685 (thumb2_record_coproc_insn): New function.
1686 (thumb2_record_decode_insn_handler): Update coprocessor insns record
1687 handlers.
1688 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
1689 opcode 110 insns.
1690
81219e53
DE
16912014-09-13 Doug Evans <xdje42@gmail.com>
1692
1693 * NEWS: Mention new "queue-signal" command.
1694 * infcmd.c (queue_signal_command): New function.
1695 (_initialize_infcmd): Add new queue-signal command.
1696
d36bf488
DE
16972014-09-13 Doug Evans <xdje42@gmail.com>
1698
1699 * linux-nat.c (wait_lwp): Add debugging printf.
1700 (linux_nat_wait_1): Ditto.
1701
f37f681c
PA
17022014-09-12 Pedro Alves <palves@redhat.com>
1703
1704 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
1705 (create_and_insert_solib_event_breakpoint): New functions.
1706 * breakpoint.h (create_and_insert_solib_event_breakpoint)
1707 (remove_solib_event_breakpoints_at_next_stop): New declarations.
1708 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
1709 (remove_dbx_link_breakpoint): Delete function.
1710 (insert_dbx_link_bpt_in_file): Use
1711 create_and_insert_solib_event_breakpoint instead of
1712 deprecated_insert_raw_breakpoint.
1713 (procfs_wait): Don't check whether we hit __dbx_link here.
1714 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
1715 here.
1716 * solib-irix.c (base_breakpoint): Delete global.
1717 (disable_break): Delete function.
1718 (enable_break): Use create_solib_event_breakpoint
1719 instead of deprecated_insert_raw_breakpoint.
1720 (irix_solib_handle_event): New function.
1721 (irix_solib_create_inferior_hook): Don't run the target or disable
1722 the mapping-complete breakpoint here.
1723 (_initialize_irix_solib): Install irix_solib_handle_event as
1724 so_ops->handle_event hook.
1725
9d9bf2df
EBM
17262014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1727 Ulrich Weigand  <uweigand@de.ibm.com>
1728
1729 PR tdep/17379
1730 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
1731 instead of read_memory_unsigned_integer.
1732
b006a80e
GB
17332014-09-12 Gary Benson <gbenson@redhat.com>
1734
1735 * nat/linux-waitpid.c: Include common-defs.h.
1736 [GDBSERVER]: Add FIXME comment.
1737 [!GDBSERVER]: Don't include defs.h or signal.h.
1738 (linux_debug) [!GDBSERVER]: Remove empty block.
1739
296b1496
GB
17402014-09-12 Gary Benson <gbenson@redhat.com>
1741
1742 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
1743 Don't include defs.h or server.h.
1744
53f81362
GB
17452014-09-12 Gary Benson <gbenson@redhat.com>
1746
1747 * nat/linux-btrace.c: Include common-defs.h.
1748 Don't include defs.h, server.h or gdbthread.h.
1749 * nat/linux-btrace.h (struct target_ops): New forward declaration.
1750
727605ca
GB
17512014-09-12 Gary Benson <gbenson@redhat.com>
1752
1753 * common/agent.c: Include common-defs.h.
1754 Don't include defs.h or server.h.
1755 * common/buffer.c: Likewise.
1756 * common/common-debug.c: Likewise.
1757 * common/common-utils.c: Likewise.
1758 * common/errors.c: Likewise.
1759 * common/filestuff.c: Likewise.
1760 * common/format.c: Likewise.
1761 * common/gdb_vecs.c: Likewise.
1762 * common/print-utils.c: Likewise.
1763 * common/ptid.c: Likewise.
1764 * common/rsp-low.c: Likewise.
1765 * common/signals.c: Likewise.
1766 * common/vec.c: Likewise.
1767 * common/xml-utils.c: Likewise.
1768 * nat/linux-osdata.c: Likewise.
1769 * nat/linux-procfs.c: Likewise.
1770 * nat/linux-ptrace.c: Likewise.
1771 * nat/mips-linux-watch.c: Likewise.
1772 * target/waitstatus.c: Likewise.
1773
361c8ade
GB
17742014-09-12 Tom Tromey <tromey@redhat.com>
1775 Gary Benson <gbenson@redhat.com>
1776
1777 * common/common-regcache.h: New file.
1778 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
1779 * regcache.h: Include common-regcache.h.
1780 (regcache_read_pc): Don't declare.
1781 * regcache.c (get_thread_regcache_for_ptid): New function.
1782 * nat/linux-btrace.c: Don't include regcache.h.
1783 Include common-regcache.h.
1784 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
1785
a01cbb49
TS
17862014-09-11 Thomas Schwinge <thomas@codesourcery.com>
1787
1788 * regcache.h (struct regset): Declare.
1789
98880d46
PA
17902014-09-11 Pedro Alves <palves@redhat.com>
1791
1792 PR gdb/17347
1793 * main.c: Include "infrun.h".
1794 (catch_command_errors, catch_command_errors_const): Wait for the
1795 foreground command to complete.
1796 * top.c (maybe_wait_sync_command_done): New function, factored out
1797 from ...
1798 (maybe_wait_sync_command_done): ... here.
1799 * top.h (maybe_wait_sync_command_done): New declaration.
1800
bd9269f7
GB
18012014-09-11 Tom Tromey <tromey@redhat.com>
1802 Gary Benson <gbenson@redhat.com>
1803
1804 * common/symbol.h: New file.
1805 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
1806 * minsyms.c (find_minimal_symbol_address): New function.
1807 * common/agent.c: Include common/symbol.h.
1808 [!GDBSERVER]: Don't include objfiles.h.
1809 (agent_look_up_symbols): Use find_minimal_symbol_address.
1810
f8c1d06b
GB
18112014-09-11 Gary Benson <gbenson@redhat.com>
1812
1813 * target/target.h (target_stop_ptid, target_continue_ptid):
1814 Declare.
1815 * target.c (target_stop_ptid, target_continue_ptid): New
1816 functions.
1817 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
1818 (agent_run_command): Always use target_stop_ptid and
1819 target_continue_ptid.
1820
721ec300
GB
18212014-09-11 Tom Tromey <tromey@redhat.com>
1822 Gary Benson <gbenson@redhat.com>
1823
1824 * target/target.h: New file.
1825 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
1826 * target.h: Include target/target.h.
1827 (target_read_memory, target_write_memory): Don't declare.
1828 * target.c (target_read_uint32): New function.
1829 * common/agent.c: Include target/target.h.
1830 [!GDBSERVER]: Don't include target.h.
1831 (helper_thread_id): Type changed to uint32_t.
1832 (agent_get_helper_thread_id): Use target_read_uint32.
1833 (agent_run_command): Always use target_read_memory and
1834 target_write_memory.
1835 (agent_capability): Type changed to uint32_t.
1836 (agent_capability_check): Use target_read_uint32.
1837
c5e92cca
GB
18382014-09-11 Gary Benson <gbenson@redhat.com>
1839
1840 * common/common-debug.h (show_debug_regs): Declare.
1841 * common/common-debug.c (show_debug_regs): Define.
1842 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
1843 all uses with show_debug_regs. Replace all uses that considered
1844 debug_hw_points as a multi-value integer with straight boolean
1845 uses.
1846 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
1847 with show_debug_regs.
1848 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
1849 all uses with show_debug_regs.
1850 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
1851 uses with show_debug_regs.
1852
eeef931a
UW
18532014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
1854
1855 * findvar.c (address_from_register): Handle targets requiring
1856 a special conversion routine even for plain pointer types.
1857
8efa9855
UW
18582014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
1859
1860 * rs6000-nat.c (exec_one_dummy_insn): Remove.
1861 (store_register): Do not call exec_one_dummy_insn.
1862
eb479039
JB
18632014-09-10 Joel Brobecker <brobecker@adacore.com>
1864
1865 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
1866 dereference it first. Use value_enclosing_type instead of
1867 value_type.
1868 (ada_array_length): Likewise.
1869
deede10c
JB
18702014-09-10 Joel Brobecker <brobecker@adacore.com>
1871
1872 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
1873 Adjust function implementation and documentation accordingly.
1874 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
1875 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
1876 Update call to ada_value_ptr_subscript.
1877
7828a5f5
JB
18782014-09-10 Joel Brobecker <brobecker@adacore.com>
1879
1880 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
1881 instead of VAL's type.
1882
35782f14
JB
18832014-09-10 Joel Brobecker <brobecker@adacore.com>
1884
1885 * amd64-linux-nat.c: Add <sys/uio.h> #include.
1886
d342a0da
DE
18872014-09-09 Doug Evans <xdje42@gmail.com>
1888
1889 PR guile/17367
1890 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
1891 last parameter to pkg-config, not first.
1892 * configure.ac: Pass --with-guile provided pkg-config path to
1893 GDB_GUILE_PROGRAM_NAMES.
1894 * configure: Regenerate.
1895
b4a3d263
GKB
18962014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
1897
1898 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
1899 Bertazi".
1900
6e466374
MR
19012014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
1902
1903 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
1904 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
1905 the list of sections determining GDB_OSABI_IRIX.
1906
a1ada89a
JH
19072014-09-09 James Hogan <james.hogan@imgtec.com>
1908
1909 * MAINTAINERS (Write After Approval): Add "James Hogan".
1910
86db008d
JH
19112014-09-09 James Hogan <james.hogan@imgtec.com>
1912
1913 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
1914
72fde3df
JB
19152014-09-09 Joel Brobecker <brobecker@adacore.com>
1916
1917 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
1918
92d8d229
DE
19192014-09-08 Doug Evans <xdje42@gmail.com>
1920
1921 PR 17247
1922 * guile.c: #include <signal.h>.
1923 (_initialize_guile): Block SIGCHLD while initializing Guile.
1924
1925 Replaces the following, which is reverted.
1926
1927 2014-07-26 Doug Evans <xdje42@gmail.com>
1928
1929 PR 17185
1930 * configure.ac: Add check for header gc/gc.h.
1931 Add check for function setenv.
1932 * configure: Regenerate.
1933 * config.in: Regenerate.
1934 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1935
d81412aa
DE
19362014-09-08 Doug Evans <xdje42@gmail.com>
1937
1938 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
1939 with named constant. Fix style of pointer comparison.
1940 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
1941
a9f116cb
GKB
19422014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
1943
1944 PR gdb/17035
1945 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
1946 decide whether we display the command on "show user".
1947 * cli/cli-script.c (show_user_1): Only verify cmdlines after
1948 printing command name.
1949 * cli/cli-decode.h (cli_user_command_p): Declare new function.
1950 * cli/cli-decode.c (cli_user_command_p): Create helper function
1951 to verify whether cmd_list_element is a user-defined command.
1952
c75bd3a2
JK
19532014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1954
1955 PR python/17355
1956 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
1957 Fix goto out of TRY_CATCH.
1958
faa42425 19592014-09-06 Doug Evans <xdje42@gmail.com>
1a52a81c 1960 Tom Tromey <tromey@redhat.com>
faa42425
DE
1961
1962 PR 15276
1963 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
1964 $_any_caller_matches.
1965 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
1966 * python/lib/gdb/function/caller_is.py: New file.
1967
0d41ba00
DE
19682014-09-06 Doug Evans <xdje42@gmail.com>
1969
1970 * infcmd.c (program_info): Fix typo.
1971
474ca4f6
SDJ
19722014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
1973
1974 PR gdb/17235
1975 * stap-probe.c (stap_parse_single_operand): Delete unused variable
1976 'number'. New variable 'has_digit'. Rewrite code to deal with
1977 subexpressions on SDT probes.
1978
ebf13736
PA
19792014-09-04 Pedro Alves <palves@redhat.com>
1980
1981 * c-exp.y (parse_number): Skip handling base-switching prefixes if
1982 the input is only one character long.
1983
eb0b0463
SDJ
19842014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
1985
1986 PR fortran/17237
1987 * f-valprint.c (f_val_print): Specify the correct print option to
1988 use when printing integer values.
1989
5ee44bfa
GB
19902014-09-04 Gary Benson <gbenson@redhat.com>
1991
1992 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
1993 Remove code to cope with LWPs wrapped as PIDs.
1994 Add assertions to ensure no wrapped LWPs are passed.
1995
4875ffdb
PA
19962014-09-04 Pedro Alves <palves@redhat.com>
1997
1998 * value.c (value_ranges_copy_adjusted): New function, factored out
1999 from ...
2000 (value_contents_copy_raw): ... here.
2001 (unpack_value_bits_as_long_1): Rename back to ...
2002 (unpack_bits_as_long): ... this. Remove 'original_value' and
2003 'result' parameters. Change return type to LONGEST.
2004 (unpack_value_bits_as_long): Delete.
2005 (unpack_value_field_as_long_1): Delete.
2006 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
2007 (unpack_value_bitfield): New function.
2008 (value_field_bitfield): Reimplement using unpack_value_bitfield.
2009 (value_fetch_lazy): Use unpack_value_bitfield.
2010 * value.h (unpack_value_bits_as_long): Delete declaration.
2011
5f3b99cf
SS
20122014-09-03 Sasha Smundak <asmundak@google.com>
2013
2014 * python/py-frame.c (frapy_read_register): New function.
2015
ac740bc7
JH
20162014-09-03 James Hogan <james.hogan@imgtec.com>
2017
2018 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
2019 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
2020
7d793aa9
SDJ
20212014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
2022
2023 PR python/16699
2024 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
2025 function.
2026 (add_cmd): Set "completer_handle_brkchars" to NULL.
2027 * cli/cli-decode.h (struct cmd_list_element)
2028 <completer_handle_brkchars>: New field.
2029 * command.h (completer_ftype_void): New typedef.
2030 (set_cmd_completer_handle_brkchars): New prototype.
2031 * completer.c (set_gdb_completion_word_break_characters): New
2032 function.
2033 (complete_line_internal): Call "completer_handle_brkchars"
2034 callback from command.
2035 * completer.h: Include "command.h".
2036 (set_gdb_completion_word_break_characters): New prototype.
2037 * python/py-cmd.c (cmdpy_completer_helper): New function.
2038 (cmdpy_completer_handle_brkchars): New function.
2039 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
2040 (cmdpy_init): Set completer_handle_brkchars to
2041 cmdpy_completer_handle_brkchars.
2042
97ea6506
GB
20432014-09-03 Gary Benson <gbenson@redhat.com>
2044
2045 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
2046 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
2047 Loop conditions changed to equivalent form.
2048 (struct x86_debug_reg_state): Updated dr_ref_count comment.
2049 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
2050 ALL_DEBUG_ADDRESS_REGISTERS.
2051
d1437815
JB
20522014-09-03 Joel Brobecker <brobecker@adacore.com>
2053
2054 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
2055 description fix.
2056
9b94fcf1
DE
20572014-09-02 Doug Evans <dje@google.com>
2058
2059 * typeprint.c (find_global_typedef): Fix comment.
2060
df7e5265
GB
20612014-09-02 Gary Benson <gbenson@redhat.com>
2062
2063 * i386-nat.h: Renamed as...
2064 * x86-nat.h: New file. All type, function and variable name
2065 prefixes changed from "i386_" to "x86_". All references updated.
2066 * i386-nat.c: Renamed as...
2067 * x86-nat.c: New file. All type, function and variable name
2068 prefixes changed from "i386_" to "x86_". All references updated.
2069 * common/i386-xstate.h: Renamed as...
2070 * common/x86-xstate.h: New file. All type, function and variable
2071 name prefixes changed from "i386_" to "x86_". All references
2072 updated.
2073 * nat/i386-cpuid.h: Renamed as...
2074 * nat/x86-cpuid.h: New file. All type, function and variable name
2075 prefixes changed from "i386_" to "x86_". All references updated.
2076 * nat/i386-gcc-cpuid.h: Renamed as...
2077 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
2078 name prefixes changed from "i386_" to "x86_". All references
2079 updated.
2080 * nat/i386-dregs.h: Renamed as...
2081 * nat/x86-dregs.h: New file. All type, function and variable name
2082 prefixes changed from "i386_" to "x86_". All references updated.
2083 * nat/i386-dregs.c: Renamed as...
2084 * nat/x86-dregs.c: New file. All type, function and variable name
2085 prefixes changed from "i386_" to "x86_". All references updated.
2086
1c3569d4
MR
20872014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
2088
2089 * varobj.c (_initialize_varobj): Move to the end of file.
2090
ff55e1b5
GB
20912014-08-29 Gary Benson <gbenson@redhat.com>
2092
2093 * common/common-exceptions.h: New file.
2094 * common/common-exceptions.c: Likewise.
2095 * Makefile.in (SFILES): Add common/common-exceptions.c.
2096 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
2097 (COMMON_OBS): Add common-exceptions.o.
2098 (common-exceptions.o): New rule.
2099 * exceptions.h (common-exceptions.h): Include.
2100 (gdb_setjmp.h): Do not include.
2101 (return_reason): Moved to common-exceptions.h.
2102 (enum return_reason): Likewise.
2103 (RETURN_MASK): Likewise.
2104 (typedef return_mask): Likewise.
2105 (enum errors): Likewise.
2106 (struct gdb_exception): Likewise.
2107 (exceptions_state_mc_init): Likewise.
2108 (exceptions_state_mc_action_iter): Likewise.
2109 (exceptions_state_mc_action_iter_1): Likewise.
2110 (TRY_CATCH): Likewise.
2111 (throw_exception): Likewise.
2112 (throw_verror): Likewise.
2113 (throw_vquit): Likewise.
2114 (throw_error): Likewise.
2115 (throw_quit): Likewise.
2116 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
2117 (enum catcher_action): Likewise.
2118 (struct catcher): Likewise.
2119 (current_catcher): Likewise.
2120 (catcher_list_size): Likewise.
2121 (exceptions_state_mc_init): Likewise.
2122 (catcher_pop): Likewise.
2123 (exceptions_state_mc): Likewise.
2124 (exceptions_state_mc_action_iter): Likewise.
2125 (exceptions_state_mc_action_iter_1): Likewise.
2126 (throw_exception): Likewise.
2127 (exception_messages): Likewise.
2128 (exception_messages_size): Likewise.
2129 (throw_it): Likewise.
2130 (throw_verror): Likewise.
2131 (throw_vquit): Likewise.
2132 (throw_error): Likewise.
2133 (throw_quit): Likewise.
2134 (prepare_to_throw_exception): New function.
2135
e9bcb658
GB
21362014-08-29 Gary Benson <gbenson@redhat.com>
2137
2138 * common/gdb_setjmp.h: New file.
2139 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
2140 * configure.ac: Move sigsetjmp check...
2141 * common/common.m4: ...here.
2142 * configure: Regenerate.
2143 * cp-support.c (SIGJMP_BUF): Delete.
2144 (SIGSETJMP): Likewise.
2145 (SIGLONGJMP): Likewise.
2146 * exceptions.h (gdb_setjmp.h): Include.
2147 (setjmp.h): Do not include.
2148 (EXCEPTIONS_SIGJMP_BUF): Delete.
2149 (EXCEPTIONS_SIGSETJMP): Likewise.
2150 (EXCEPTIONS_SIGLONGJMP): Likewise.
2151 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
2152 from gdb_setjmp.h.
2153 * exceptions.c: Likewise.
2154
e3180625
GB
21552014-08-29 Gary Benson <gbenson@redhat.com>
2156
2157 * cleanups.h: Moved to...
2158 * common/cleanups.h: New file.
2159 * cleanups.c: Moved to...
2160 * common/cleanups.c: New file. Include common-defs.h and
2161 cleanups.h. Do not include defs.h.
2162 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
2163 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
2164 (cleanups.o): New rule.
2165
e3d6ba5d
GB
21662014-08-29 Gary Benson <gbenson@redhat.com>
2167
2168 * common/errors.h (internal_warning): New declaration.
2169 (internal_vwarning): Likewise.
2170 * common/errors.c (internal_warning): New function.
2171 * utils.h (internal_warning): Don't declare.
2172 (internal_vwarning): Likewise.
2173 * utils.c (internal_warning): Removed.
2174
075c7033
GB
21752014-08-29 Gary Benson <gbenson@redhat.com>
2176
2177 * main.c (captured_main): Use warning during startup.
2178 Prefix startup warning messages with command name.
2179
91b35fd0
GB
21802014-08-29 Gary Benson <gbenson@redhat.com>
2181
2182 * main.c (captured_main): Handle usage errors with error.
2183
b1ec390e
GB
21842014-08-29 Gary Benson <gbenson@redhat.com>
2185
2186 * go32-nat.c (go32_create_inferior): Replace a fprintf/
2187 exit pair with a call to error. Wrap the message with _().
2188
fd0ef3dd
GB
21892014-08-29 Gary Benson <gbenson@redhat.com>
2190
2191 * main.c (captured_main): Replace a fprintf/exit
2192 pair with a call to error. Wrap the message with _().
2193
e0e6bcab
GB
21942014-08-29 Gary Benson <gbenson@redhat.com>
2195
2196 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
2197 pairs with calls to error. Wrap the message with _().
2198
0d2f5c07
GB
21992014-08-29 Gary Benson <gbenson@redhat.com>
2200
2201 * utils.c (vwarning): Protect calls to target_terminal_ours
2202 and wrap_here.
2203
5df43998
GB
22042014-08-29 Gary Benson <gbenson@redhat.com>
2205
2206 * exceptions.c (print_flush): Protect calls to
2207 target_terminal_ours and wrap_here.
2208
2437fd32
GB
22092014-08-29 Gary Benson <gbenson@redhat.com>
2210
2211 * utils.h (filtered_printing_initialized): New declaration.
2212 * utils.c (abort_with_message): New function.
2213 (internal_vproblem): Use abort_with_message for first level
2214 recursive internal problems, and if gdb_stderr is not set up.
2215 Protect calls to target_terminal_ours, begin_line and query.
2216
f1f58506
DE
22172014-08-28 Doug Evans <dje@google.com>
2218
2219 * symtab.c (in_prologue): Move definition to better spot.
2220 (skip_prologue_using_sal): Ditto.
2221
aab2f208
DE
22222014-08-28 Doug Evans <dje@google.com>
2223
2224 * symtab.c (find_function_start_sal): Move definition to better spot.
2225
6b65d1b6
YQ
22262014-08-28 Yao Qi <yao@codesourcery.com>
2227
2228 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
2229 found_stack_adjust in forward scan. Remove condition check
2230 on found_stack_adjust which is always true. Indent the code.
2231
a1b34d15
YQ
22322014-08-28 Yao Qi <yao@codesourcery.com>
2233
2234 * dwarf2read.c (dwarf_decode_lines): Update declaration.
2235 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
2236 (dwarf_decode_lines): Remove argument
2237 want_line_info. Remove condition check on want_line_info.
2238 Callers update.
2239
d5962de5
DE
22402014-08-27 Doug Evans <dje@google.com>
2241
2242 * dwarf2read.c (dwarf_record_line): Fix typo.
2243
9b139002
SDJ
22442014-08-27 Patrick Palka <patrick@parcs.ath.cx>
2245
2246 * target.h (struct target_ops::to_terminal_save_ours): Remove
2247 declaration.
2248 (target_terminal_save_ours): Remove macro.
2249 * target-delegates.c: Regenerate.
2250 * inf-child.c (inf_child_target): Don't set the nonexistent
2251 field to_terminal_save_ours.
2252 * inferior.h (child_terminal_save_ours): Remove declaration.
2253 * terminal.h (gdb_save_tty_state): New declaration.
2254 * inflow.c (child_terminal_save_ours): Rename to ...
2255 (gdb_save_tty_state): ... this.
2256 * tui/tui.c: Include terminal.h.
2257 (tui_enable): Use gdb_save_tty_state instead of
2258 target_terminal_save_ours.
2259 (tui_disable): Likewise.
2260
9debeba0
DE
22612014-08-25 Doug Evans <dje@google.com>
2262
2263 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
2264 Pass NULL instead of 0 for context pointer.
2265
428fc5fc
YQ
22662014-08-25 Yao Qi <yao@codesourcery.com>
2267
2268 * dwarf2read.c: Fix grammatical error.
2269
cdc07690
YQ
22702014-08-24 Yao Qi <yao@codesourcery.com>
2271
2272 * dwarf2read.c (scan_partial_symbols): Update comments.
2273 Rename argument 'need_pc' with 'set_addrmap'.
2274 (add_partial_namespace): Rename argument 'need_pc' with
2275 'set_addrmap'.
2276 (add_partial_module): Likewise.
2277 (add_partial_subprogram): Likewise. Update comments.
2278 (dwarf2_name): Fix typo.
2279
a05a36a5
DE
22802014-08-22 Doug Evans <dje@google.com>
2281
2282 PR 17276
2283 * dwarf2read.c (dwarf_record_line_p): New function.
2284 (dwarf_decode_lines_1): Ignore subsequent line number entries
2285 for the same line if any entry had a non-zero discriminator.
2286
252a6764
DE
22872014-08-22 Doug Evans <dje@google.com>
2288
2289 * buildsym.h (record_line_ftype): New typedef.
2290 (record_line): Use it.
2291 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
2292 (dwarf_decode_lines_1): Call them.
2293
510db052
YQ
22942014-08-22 Yao Qi <yao@codesourcery.com>
2295
2296 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
2297 (ctf_end): Remove code.
2298
22fd09ae
JK
22992014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2300
2301 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
2302 (linux_make_corefile_notes): call update_thread_list, protected against
2303 exceptions.
2304
656e8868
PA
23052014-08-21 Pedro Alves <palves@redhat.com>
2306
2307 * infcmd.c (attach_command): Remove comment.
2308
de589d04
WN
23092014-08-21 Bin Cheng <bin.cheng@arm.com>
2310
2311 * aarch64-linux-nat.c (dr_changed_t): Change the type from
2312 unsigned LONGEST to ULONGEST.
2313
2a31c623
PA
23142014-08-20 Pedro Alves <palves@redhat.com>
2315
2316 * Makefile.in (check-read1): New rule.
2317
d36430db
JB
23182014-08-20 Joel Brobecker <brobecker@adacore.com>
2319
2320 * value.c (value_from_contents_and_address): Strip resolved_type's
2321 typedef layers before checking its TYPE_DATA_LOCATION.
2322
000339af
PA
23232014-08-20 Pedro Alves <palves@redhat.com>
2324
2325 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
2326
5f52445b
YQ
23272014-08-20 Yao Qi <yao@codesourcery.com>
2328
2329 * amd64-tdep.c (amd64_classify): Add a blank line after the
2330 example. Move "*/" to a new line.
2331 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
2332 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
2333 * dwarf2read.c (psymtab_include_file_name): Likewise.
2334
9a0dc9e3
PA
23352014-08-19 Andrew Burgess <aburgess@broadcom.com>
2336 Pedro Alves <palves@redhat.com>
2337
2338 PR symtab/14604
2339 PR symtab/14605
2340 * ada-lang.c (coerce_unspec_val_to_type): Use
2341 value_contents_copy_raw.
2342 * ada-valprint.c (val_print_packed_array_elements): Adjust.
2343 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
2344 * cp-valprint.c (cp_print_value_fields): Let the common printing
2345 code handle optimized out values.
2346 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
2347 * d-valprint.c (dynamic_array_type): Use
2348 value_bits_any_optimized_out.
2349 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
2350 check_any_valid fields.
2351 (check_pieced_value_bits): Delete and inline ...
2352 (check_pieced_synthetic_pointer): ... here.
2353 (check_pieced_value_validity): Delete.
2354 (check_pieced_value_invalid): Delete.
2355 (pieced_value_funcs): Remove check_validity and check_any_valid
2356 fields.
2357 (read_pieced_value): Use mark_value_bits_optimized_out.
2358 (write_pieced_value): Switch to use
2359 mark_value_bytes_optimized_out.
2360 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
2361 of assuming the whole value is optimized out.
2362 * findvar.c (read_frame_register_value): Remove special handling
2363 of optimized out registers.
2364 (value_from_register): Use mark_value_bytes_optimized_out.
2365 * frame-unwind.c (frame_unwind_got_optimized): Use
2366 mark_value_bytes_optimized_out.
2367 * jv-valprint.c (java_value_print): Adjust.
2368 (java_print_value_fields): Let the common printing code handle
2369 optimized out values.
2370 * mips-tdep.c (mips_print_register): Remove special handling of
2371 optimized out registers.
2372 * opencl-lang.c (lval_func_check_validity): Delete.
2373 (lval_func_check_any_valid): Delete.
2374 (opencl_value_funcs): Remove check_validity and check_any_valid
2375 fields.
2376 * p-valprint.c (pascal_object_print_value_fields): Let the common
2377 printing code handle optimized out values.
2378 * stack.c (read_frame_arg): Remove special handling of optimized
2379 out values. Fetch both VAL and ENTRYVAL before comparing
2380 contents. Adjust to value_available_contents_eq rename.
2381 * valprint.c (valprint_check_validity)
2382 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
2383 (val_print_array_elements): Adjust.
2384 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
2385 (value_bits_any_optimized_out): New function.
2386 (value_entirely_covered_by_range_vector): New function, factored
2387 out from value_entirely_unavailable.
2388 (value_entirely_unavailable): Reimplement.
2389 (value_entirely_optimized_out): New function.
2390 (insert_into_bit_range_vector): New function, factored out from
2391 mark_value_bits_unavailable.
2392 (mark_value_bits_unavailable): Reimplement.
2393 (struct ranges_and_idx): New struct.
2394 (find_first_range_overlap_and_match): New function, factored out
2395 from value_available_contents_bits_eq.
2396 (value_available_contents_bits_eq): Rename to ...
2397 (value_contents_bits_eq): ... this. Check both unavailable
2398 contents and optimized out contents.
2399 (value_available_contents_eq): Rename to ...
2400 (value_contents_eq): ... this.
2401 (allocate_value_lazy): Remove reference to the old optimized_out
2402 boolean.
2403 (allocate_optimized_out_value): Use
2404 mark_value_bytes_optimized_out.
2405 (require_not_optimized_out): Adjust to check whether the
2406 optimized_out vec is empty.
2407 (ranges_copy_adjusted): New function, factored out from
2408 value_contents_copy_raw.
2409 (value_contents_copy_raw): Also copy the optimized out ranges.
2410 Assert the destination ranges aren't optimized out.
2411 (value_contents_copy): Update comment, remove call to
2412 require_not_optimized_out.
2413 (value_contents_equal): Adjust to check whether the optimized_out
2414 vec is empty.
2415 (set_value_optimized_out, value_optimized_out_const): Delete.
2416 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
2417 New functions.
2418 (value_entirely_optimized_out, value_bits_valid): Delete.
2419 (value_copy): Take a VEC copy of the 'optimized_out' field.
2420 (value_primitive_field): Remove special handling of optimized out.
2421 (value_fetch_lazy): Assert that lazy values have no unavailable
2422 regions. Use value_bits_any_optimized_out. Remove some special
2423 handling for optimized out values.
2424 * value.h: Add intro comment about <optimized out> and
2425 <unavailable>.
2426 (struct lval_funcs): Remove check_validity and check_any_valid
2427 fields.
2428 (set_value_optimized_out, value_optimized_out_const): Remove.
2429 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
2430 New declarations.
2431 (value_bits_any_optimized_out): New declaration.
2432 (value_bits_valid): Delete declaration.
2433 (value_available_contents_eq): Rename to ...
2434 (value_contents_eq): ... this, and extend comments.
2435
6694c411
JK
24362014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2437
2438 Fix -fsanitize=address on unreadable inferior strings.
2439 * valprint.c (val_print_string): Fix access before BUFFER.
2440
89a1c21a
SM
24412014-08-19 Simon Marchi <simon.marchi@ericsson.com>
2442
2443 * target.c (target_struct_size): Remove.
2444 (target_struct_allocsize): Remove.
2445 (DEFAULT_ALLOCSIZE): Remove.
2446 (target_ops_p): New typedef.
2447 (DEF_VEC_P (target_ops_p)): New vector type.
2448 (target_structs): Change type to VEC (target_ops_p).
2449 (add_target_with_completer): Replace "push" code by VEC_safe_push.
2450 (find_default_run_target): Rewrite for loop following changes to
2451 target_structs.
2452
cb417230
JB
24532014-08-19 Joel Brobecker <brobecker@adacore.com>
2454
2455 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
2456 Adjust code accordingly. Adjust function description comment.
2457
817e0957
YQ
24582014-08-19 Yao Qi <yao@codesourcery.com>
2459
2460 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
2461 types.
2462
2974be62
AM
24632014-08-19 Alan Modra <amodra@gmail.com>
2464
2465 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
2466 * config.in: Regenerate.
2467 * configure: Regenerate.
2468
34abf635
GB
24692014-08-19 Tom Tromey <tromey@redhat.com>
2470 Gary Benson <gbenson@redhat.com>
2471
2472 * common/common-debug.h: New file.
2473 * common/common-debug.c: Likewise.
2474 * debug.c: Likewise.
2475 * Makefile.in (SFILES): Add common/common-debug.c.
2476 (HFILES_NO_SRCDIR): Add common/common-debug.h.
2477 (COMMON_OBS): Add common-debug.o and debug.o.
2478 (common-debug.o): New rule.
2479 * common/common-defs.h: Include common-debug.h.
2480 * common/agent.c (debug_agent_printf): New function.
2481 (DEBUG_AGENT): Redefine.
2482 * nat/i386-dregs.c (debug_printf): Undefine.
2483
f6e94d78
GB
24842014-08-19 Gary Benson <gbenson@redhat.com>
2485
2486 * common/common-defs.h: Include print-utils.h.
2487 * utils.h: Do not include print-utils.h.
2488
9239eeab
GB
24892014-08-19 Tom Tromey <tromey@redhat.com>
2490 Gary Benson <gbenson@redhat.com>
2491
2492 * common/common-types.h: New file.
2493 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
2494 * common/common-defs.h: Include common-types.h.
2495 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
2496 (ULONGEST): Remove.
2497
ef87c8bb
GB
24982014-08-19 Tom Tromey <tromey@redhat.com>
2499 Gary Benson <gbenson@redhat.com>
2500
2501 * common/errors.h: New file.
2502 * common/errors.c: Likewise.
2503 * Makefile.in (SFILES): Add common/errors.c.
2504 (HFILES_NO_SRCDIR): Add common/errors.h.
2505 (COMMON_OBS): Add errors.o.
2506 (errors.o): New rule.
2507 * common/common-defs.h: Include errors.h.
2508 * utils.h (perror_with_name, error, verror, warning, vwarning):
2509 Don't declare.
2510 * common/common-utils.h: (malloc_failure, internal_error):
2511 Likewise.
2512
196a707b
GB
25132014-08-19 Gary Benson <gbenson@redhat.com>
2514
2515 * utils.c (internal_vproblem): Always print the message.
2516
ded4fc8f
DE
25172014-08-18 Doug Evans <dje@google.com>
2518
2519 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
2520
950c97d8
JB
25212014-08-18 Joel Brobecker <brobecker@adacore.com>
2522
2523 * ada-typeprint.c (type_is_full_subrange_of_target_type):
2524 Return 0 if TYPE is dynamic.
2525 (print_range): Add handling of dynamic ranges.
2526
3cdcd0ce
JB
25272014-08-18 Keven Boell <keven.boell@intel.com>
2528 Joel Brobecker <brobecker@adacore.com>
2529
2530 * gdbtypes.h (struct main_type): Add field "data_location".
2531 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
2532 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
2533 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
2534 a dynamic data location.
2535 (resolve_dynamic_type): Add DW_AT_data_location handling.
2536 (copy_recursive, copy_type): Copy the data_location information
2537 when present.
2538 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
2539 * value.c (value_from_contents_and_address): Add
2540 DW_AT_data_location handling.
2541
08412b07
JB
25422014-08-18 Keven Boell <keven.boell@intel.com>
2543 Joel Brobecker <brobecker@adacore.com>
2544
2545 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
2546 field "get_object_address".
2547 * dwarf2expr.c (execute_stack_op): Add handling for
2548 DW_OP_push_object_address.
2549 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
2550 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
2551 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
2552 (dwarf_expr_get_obj_addr): New function.
2553 (dwarf_expr_ctx_funcs): Add get_object_address field.
2554 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
2555 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
2556 (dwarf2_evaluate_property): Add parameter "address". Use it.
2557 (needs_get_obj_addr): New function.
2558 (needs_frame_ctx_funcs): Add get_object_address field.
2559 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
2560 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
2561 (resolve_dynamic_array): Likewise.
2562
84754697
JB
25632014-08-18 Joel Brobecker <brobecker@adacore.com>
2564
2565 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
2566 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
2567 fixed value for records and unions for which some GNAT encodings
2568 are present.
2569
da5c522f
JB
25702014-08-18 Joel Brobecker <brobecker@adacore.com>
2571
2572 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
2573 rewrite to avoid "else if" and "else" constructs. Should be
2574 a no-op in practice.
2575
0d72a7c3
JB
25762014-08-18 Joel Brobecker <brobecker@adacore.com>
2577
2578 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
2579 of lexical block.
2580
e66d4446
SC
25812014-08-15 Siva Chandra Reddy <sivachandra@google.com>
2582
2583 PR c++/17132
2584 * eval.c: Update all calls to find_overload_match.
2585 * valarith.c: Likewise.
2586 (value_user_defined_cpp_op, value_user_defined_op): New
2587 argument NOSIDE. Update all callers.
2588 * valops.c (find_overload_match): New argument NOSIDE.
2589 * value.h (find_overload_match): Update signature.
2590
940df408
SC
25912014-08-15 Siva Chandra Reddy <sivachandra@google.com>
2592
2593 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
2594 'items' methods instead of 'iteritems' method on dictionaries.
2595
699ca60a
DE
25962014-08-15 Doug Evans <dje@google.com>
2597
2598 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
2599 closer to use.
2600
37780ee5
DE
26012014-08-15 Doug Evans <dje@google.com>
2602
2603 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
2604
0ad93d4f
DE
26052014-08-15 Doug Evans <dje@google.com>
2606
2607 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
2608
20d8c372
DE
26092014-08-15 Doug Evans <dje@google.com>
2610
2611 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
2612 unused.
2613
cb039ba4
EZ
26142014-08-15 Eli Zaretskii <eliz@gnu.org>
2615
2616 * dcache.h: Include target.h, to avoid compile time warnings.
2617
eb7a547a
JB
26182014-08-15 Joel Brobecker <brobecker@adacore.com>
2619
2620 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
2621 frame_info" partial declaration.
2622 * gdbarch.h: Regenerate.
2623
783cecc8
YQ
26242014-08-15 Yao Qi <yao@codesourcery.com>
2625
2626 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
2627 Add parameter 'decode_for_pst_p'. Callers update.
2628
65c749e7
YQ
26292014-08-13 Yao Qi <yao@codesourcery.com>
2630
2631 PR build/17104
2632 * configure.ac: Use local variable 'pos'.
2633 * configure: Regenerated.
2634
d769e349
DE
26352014-08-11 Doug Evans <dje@google.com>
2636
2637 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
2638 message, it is redundant with "Reading symbols from ..." message.
2639
24f1235e
DE
26402014-08-10 Doug Evans <xdje42@gmail.com>
2641
2642 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
2643
dcd2e6ef
YQ
26442014-08-09 Yao Qi <yao@codesourcery.com>
2645
2646 PR remote/9053
2647 * remote.c (remote_xfer_partial): Remove dead code.
2648
070bdf0b
AA
26492014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2650
2651 * ia64-linux-tdep.c: Include "regset.h".
2652 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
2653 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
2654 (ia64_linux_supply_fpregset): New function.
2655 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
2656 (ia64_linux_regset_from_core_section): New function.
2657 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
2658 method.
2659
08f9f542
AA
26602014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2661
2662 * m68klinux-tdep.c: Include "regset.h".
2663 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
2664 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
2665 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
2666 (m68k_linux_regset_from_core_section): New function.
2667 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
2668 method.
2669
8f1cee41
AA
26702014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2671
2672 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
2673 function. Move logic to...
2674 (tilegx_linux_regmap): ... this new register map.
2675 (tilegx_linux_regset): Refer to register map, replace supply
2676 method by regcache_supply_regset, and add collect method.
2677 * tilegx-tdep.h (enum tilegx_regnum): New enum value
2678 TILEGX_FIRST_EASY_REGNUM.
2679
c5741217
AA
26802014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2681
2682 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
2683 that calls regcache_supply_regset and handles the EPC register
2684 separately. Move main logic to...
2685 (score7_linux_gregmap): ... this new register map.
2686 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
2687 (score7_linux_gregset): Refer to register map. Add collect method.
2688 (score7_linux_regset_from_core_section): Replace
2689 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
2690 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
2691 (struct regset): Delete unused forward declaraction.
2692 (struct pt_regs): Delete structure definition.
2693 (elf_gregset_t): Delete typedef.
2694
81580573
AA
26952014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2696
2697 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
2698 (nios2_core_regset): Add collect method.
2699
ba199d7d
AA
27002014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2701
2702 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
2703 platform-independent and don't write to read-only input buffer.
2704 (m32r_linux_collect_gregset): New function.
2705 (m32r_linux_gregset): Add collect method.
2706
0006a9da
AA
27072014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2708
2709 * hppa-linux-tdep.c (greg_map): Rename to...
2710 (hppa_linux_gregmap): ... this. Also convert to
2711 regcache_map_entry format.
2712 (hppa_linux_supply_regset): Delete function.
2713 (hppa_linux_supply_fpregset): Delete function. Move logic to...
2714 (hppa_linux_fpregmap): ... this new register map.
2715 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
2716 register map, replace supply method by regcache_supply_regset, and
2717 add collect method regcache_collect_regset.
2718
901e1b23
AA
27192014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2720
2721 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
2722 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
2723 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
2724 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
2725 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
2726 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
2727 (frv_linux_supply_gregset): Replace main logic by call to
2728 regcache_supply_regset, but keep clearing gr32-gr63.
2729 (frv_linux_supply_fpregset): Delete function.
2730 (frv_linux_gregset): Refer to appropriate register map and add
2731 regcache_collect_regset as the collect method.
2732 (frv_linux_fpregset): Likewise. Also exchange the supply method
2733 by regcache_supply_regset.
2734
1d6e7555
AA
27352014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2736
2737 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
2738 by call to alpha_supply_int_regs.
2739 (alpha_linux_collect_gregset): New function.
2740 (alpha_linux_supply_fpregset): Replace logic by call to
2741 alpha_supply_fp_regs.
2742 (alpha_linux_collect_fpregset): New function.
2743 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
2744
d4d793bf
AA
27452014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2746
2747 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
2748 by call to regcache_collect_regset.
2749 (supply_gregset, supply_fpregset): Call regcache_supply_regset
2750 instead of aarch64_linux_supply_gregset/_fpregset.
2751 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
2752 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
2753 header file instead.
2754 (aarch64_linux_supply_gregset, supply_gregset_from_core)
2755 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
2756 functions. Move logic to ...
2757 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
2758 register maps.
2759 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
2760 refer to new register maps, replace *_regset_from_core by
2761 regcache_supply_regset, and also use regcache_collect_regset.
2762 * aarch64-linux-tdep.h: Include "regset.h".
2763 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
2764 Delete prototypes.
2765 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
2766 macros, moved from C source file.
2767 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
2768 variable declarations.
2769
99b7da5d
AA
27702014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2771
2772 * s390-linux-nat.c: Include "regset.h".
2773 (regmap_gregset): Delete macro.
2774 (s390_64_regmap_gregset): New register map for
2775 regcache_supply/_collect_regset.
2776 (s390_64_gregset): New regset.
2777 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
2778 (regmap_fpregset): Delete macro.
2779 (s390_native_supply, s390_native_collect): Delete functions.
2780 (supply_gregset, fill_gregset): Replace s390-specific regmap
2781 handling by a call to regcache_supply/_collect_regset.
2782 (supply_fpregset, fill_fpregset): Call regcache_supply/
2783 _collect_regset instead of s390_native_supply/_collect.
2784 (fetch_regset, store_regset): Likewise. Also change the last
2785 parameter to a regset instead of a regmap.
2786 (s390_linux_fetch_inferior_registers)
2787 (390_linux_store_inferior_registers): Adjust last parameter in
2788 calls to fetch_regset and store_regset.
2789 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
2790 (s390_gregmap): ... this. Also make static const and convert to
2791 regcache_map_entry format.
2792 (s390x_regmap_gregset): Delete.
2793 (s390_regmap_fpregset): Rename to...
2794 (s390_fpregmap): ... this. Make static const and convert to
2795 regcache_map_entry format.
2796 (s390_regmap_upper, s390_regmap_last_break)
2797 (s390x_regmap_last_break, s390_regmap_system_call)
2798 (s390_regmap_tdb): Likewise.
2799 (s390_supply_regset, s390_collect_regset): Remove functions.
2800 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
2801 s390_supply_regset.
2802 (s390_gregset, s390_fpregset, s390_upper_regset)
2803 (s390_last_break_regset, s390x_last_break_regset)
2804 (s390_system_call_regset, s390_tdb_regset): Make global and
2805 replace s390_supply/_collect_regset by regcache_supply/
2806 _collect_regset.
2807 (s390x_gregset): Delete.
2808 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
2809 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
2810 (s390_regmap_fpregset, s390_regmap_last_break)
2811 (s390x_regmap_last_break, s390_regmap_system_call)
2812 (s390_regmap_tdb): Delete global variable declarations.
2813 (s390_gregset, s390_fpregset, s390_last_break_regset)
2814 (s390x_last_break_regset, s390_system_call_regset)
2815 (s390_tdb_regset): New global variable declarations.
2816
0b309272
AA
28172014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2818
2819 * regcache.c: Include "regset.h".
2820 (regcache_transfer_regset): New local function.
2821 (regcache_supply_regset, regcache_collect_regset): New functions.
2822 * regcache.h (struct regcache_map_entry): New structure.
2823 (REGCACHE_MAP_SKIP): New enum value.
2824 (regcache_supply_regset, regcache_collect_regset): New prototypes.
2825
7fefa8d7
AA
28262014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2827
2828 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
2829 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
2830 (ppc_linux_collect_gregset ): Likewise.
2831 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
2832 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
2833 (ppc_collect_vrregset): Likewise.
2834 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
2835 Likewise.
2836
96c4f946
YQ
28372014-08-07 Yao Qi <yao@codesourcery.com>
2838
2839 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
2840 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
2841 * remote.c (remote_read_bytes): Likewise.
2842
fffbe6a8
YQ
28432014-08-07 Yao Qi <yao@codesourcery.com>
2844
2845 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
2846
5ee8a82c
YQ
28472014-08-07 Yao Qi <yao@codesourcery.com>
2848
2849 PR remote/17230
2850 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
2851 TARGET_XFER_OK instead of 0.
2852
bb974a24
GB
28532014-08-07 Gary Benson <gbenson@redhat.com>
2854
2855 * common/common-defs.h: Include errno.h.
2856 * defs.h: Do not include errno.h.
2857 * ada-typeprint.c: Likewise.
2858 * c-typeprint.c: Likewise.
2859 * core-regset.c: Likewise.
2860 * corefile.c: Likewise.
2861 * corelow.c: Likewise.
2862 * event-loop.c: Likewise.
2863 * f-typeprint.c: Likewise.
2864 * gnu-nat.c: Likewise.
2865 * go32-nat.c: Likewise.
2866 * i386gnu-nat.c: Likewise.
2867 * m2-typeprint.c: Likewise.
2868 * nat/linux-btrace.c: Likewise.
2869 * p-typeprint.c: Likewise.
2870 * procfs.c: Likewise.
2871 * remote-sim.c: Likewise.
2872 * rs6000-nat.c: Likewise.
2873 * target.c: Likewise.
2874 * typeprint.c: Likewise.
2875 * ui-file.c: Likewise.
2876 * valops.c: Likewise.
2877 * valprint.c: Likewise.
2878
6d3d12eb
GB
28792014-08-07 Gary Benson <gbenson@redhat.com>
2880
2881 * common/common-defs.h: Include string.h.
2882 * aarch64-tdep.c: Do not include string.h.
2883 * ada-exp.y: Likewise.
2884 * ada-lang.c: Likewise.
2885 * ada-lex.l: Likewise.
2886 * ada-typeprint.c: Likewise.
2887 * ada-valprint.c: Likewise.
2888 * aix-thread.c: Likewise.
2889 * alpha-linux-tdep.c: Likewise.
2890 * alpha-mdebug-tdep.c: Likewise.
2891 * alpha-nat.c: Likewise.
2892 * alpha-osf1-tdep.c: Likewise.
2893 * alpha-tdep.c: Likewise.
2894 * alphanbsd-tdep.c: Likewise.
2895 * amd64-dicos-tdep.c: Likewise.
2896 * amd64-linux-tdep.c: Likewise.
2897 * amd64-nat.c: Likewise.
2898 * amd64-sol2-tdep.c: Likewise.
2899 * amd64fbsd-tdep.c: Likewise.
2900 * amd64obsd-tdep.c: Likewise.
2901 * arch-utils.c: Likewise.
2902 * arm-linux-nat.c: Likewise.
2903 * arm-linux-tdep.c: Likewise.
2904 * arm-tdep.c: Likewise.
2905 * arm-wince-tdep.c: Likewise.
2906 * armbsd-tdep.c: Likewise.
2907 * armnbsd-nat.c: Likewise.
2908 * armnbsd-tdep.c: Likewise.
2909 * armobsd-tdep.c: Likewise.
2910 * avr-tdep.c: Likewise.
2911 * ax-gdb.c: Likewise.
2912 * ax-general.c: Likewise.
2913 * bcache.c: Likewise.
2914 * bfin-tdep.c: Likewise.
2915 * breakpoint.c: Likewise.
2916 * build-id.c: Likewise.
2917 * buildsym.c: Likewise.
2918 * c-exp.y: Likewise.
2919 * c-lang.c: Likewise.
2920 * c-typeprint.c: Likewise.
2921 * c-valprint.c: Likewise.
2922 * charset.c: Likewise.
2923 * cli-out.c: Likewise.
2924 * cli/cli-cmds.c: Likewise.
2925 * cli/cli-decode.c: Likewise.
2926 * cli/cli-dump.c: Likewise.
2927 * cli/cli-interp.c: Likewise.
2928 * cli/cli-logging.c: Likewise.
2929 * cli/cli-script.c: Likewise.
2930 * cli/cli-setshow.c: Likewise.
2931 * cli/cli-utils.c: Likewise.
2932 * coffread.c: Likewise.
2933 * common/agent.c: Likewise.
2934 * common/buffer.c: Likewise.
2935 * common/buffer.h: Likewise.
2936 * common/common-utils.c: Likewise.
2937 * common/filestuff.c: Likewise.
2938 * common/filestuff.c: Likewise.
2939 * common/format.c: Likewise.
2940 * common/print-utils.c: Likewise.
2941 * common/rsp-low.c: Likewise.
2942 * common/signals.c: Likewise.
2943 * common/vec.h: Likewise.
2944 * common/xml-utils.c: Likewise.
2945 * core-regset.c: Likewise.
2946 * corefile.c: Likewise.
2947 * corelow.c: Likewise.
2948 * cp-abi.c: Likewise.
2949 * cp-name-parser.y: Likewise.
2950 * cp-support.c: Likewise.
2951 * cp-valprint.c: Likewise.
2952 * cris-tdep.c: Likewise.
2953 * d-exp.y: Likewise.
2954 * darwin-nat.c: Likewise.
2955 * dbxread.c: Likewise.
2956 * dcache.c: Likewise.
2957 * demangle.c: Likewise.
2958 * dicos-tdep.c: Likewise.
2959 * disasm.c: Likewise.
2960 * doublest.c: Likewise.
2961 * dsrec.c: Likewise.
2962 * dummy-frame.c: Likewise.
2963 * dwarf2-frame.c: Likewise.
2964 * dwarf2loc.c: Likewise.
2965 * dwarf2read.c: Likewise.
2966 * elfread.c: Likewise.
2967 * environ.c: Likewise.
2968 * eval.c: Likewise.
2969 * event-loop.c: Likewise.
2970 * exceptions.c: Likewise.
2971 * exec.c: Likewise.
2972 * expprint.c: Likewise.
2973 * f-exp.y: Likewise.
2974 * f-lang.c: Likewise.
2975 * f-typeprint.c: Likewise.
2976 * f-valprint.c: Likewise.
2977 * fbsd-nat.c: Likewise.
2978 * findcmd.c: Likewise.
2979 * findvar.c: Likewise.
2980 * fork-child.c: Likewise.
2981 * frame.c: Likewise.
2982 * frv-linux-tdep.c: Likewise.
2983 * frv-tdep.c: Likewise.
2984 * gdb.c: Likewise.
2985 * gdb_bfd.c: Likewise.
2986 * gdbarch.c: Likewise.
2987 * gdbarch.sh: Likewise.
2988 * gdbtypes.c: Likewise.
2989 * gnu-nat.c: Likewise.
2990 * gnu-v2-abi.c: Likewise.
2991 * gnu-v3-abi.c: Likewise.
2992 * go-exp.y: Likewise.
2993 * go-lang.c: Likewise.
2994 * go32-nat.c: Likewise.
2995 * guile/guile.c: Likewise.
2996 * guile/scm-auto-load.c: Likewise.
2997 * hppa-hpux-tdep.c: Likewise.
2998 * hppa-linux-nat.c: Likewise.
2999 * hppanbsd-tdep.c: Likewise.
3000 * hppaobsd-tdep.c: Likewise.
3001 * i386-cygwin-tdep.c: Likewise.
3002 * i386-dicos-tdep.c: Likewise.
3003 * i386-linux-tdep.c: Likewise.
3004 * i386-nto-tdep.c: Likewise.
3005 * i386-sol2-tdep.c: Likewise.
3006 * i386-tdep.c: Likewise.
3007 * i386bsd-tdep.c: Likewise.
3008 * i386gnu-nat.c: Likewise.
3009 * i386nbsd-tdep.c: Likewise.
3010 * i386obsd-tdep.c: Likewise.
3011 * i387-tdep.c: Likewise.
3012 * ia64-libunwind-tdep.c: Likewise.
3013 * ia64-linux-nat.c: Likewise.
3014 * inf-child.c: Likewise.
3015 * inf-ptrace.c: Likewise.
3016 * inf-ttrace.c: Likewise.
3017 * infcall.c: Likewise.
3018 * infcmd.c: Likewise.
3019 * inflow.c: Likewise.
3020 * infrun.c: Likewise.
3021 * interps.c: Likewise.
3022 * iq2000-tdep.c: Likewise.
3023 * irix5-nat.c: Likewise.
3024 * jv-exp.y: Likewise.
3025 * jv-lang.c: Likewise.
3026 * jv-typeprint.c: Likewise.
3027 * jv-valprint.c: Likewise.
3028 * language.c: Likewise.
3029 * linux-fork.c: Likewise.
3030 * linux-nat.c: Likewise.
3031 * lm32-tdep.c: Likewise.
3032 * m2-exp.y: Likewise.
3033 * m2-typeprint.c: Likewise.
3034 * m32c-tdep.c: Likewise.
3035 * m32r-linux-nat.c: Likewise.
3036 * m32r-linux-tdep.c: Likewise.
3037 * m32r-rom.c: Likewise.
3038 * m32r-tdep.c: Likewise.
3039 * m68hc11-tdep.c: Likewise.
3040 * m68k-tdep.c: Likewise.
3041 * m68kbsd-tdep.c: Likewise.
3042 * m68klinux-nat.c: Likewise.
3043 * m68klinux-tdep.c: Likewise.
3044 * m88k-tdep.c: Likewise.
3045 * machoread.c: Likewise.
3046 * macrocmd.c: Likewise.
3047 * main.c: Likewise.
3048 * mdebugread.c: Likewise.
3049 * mem-break.c: Likewise.
3050 * memattr.c: Likewise.
3051 * memory-map.c: Likewise.
3052 * mep-tdep.c: Likewise.
3053 * mi/mi-cmd-break.c: Likewise.
3054 * mi/mi-cmd-disas.c: Likewise.
3055 * mi/mi-cmd-env.c: Likewise.
3056 * mi/mi-cmd-stack.c: Likewise.
3057 * mi/mi-cmd-var.c: Likewise.
3058 * mi/mi-cmds.c: Likewise.
3059 * mi/mi-console.c: Likewise.
3060 * mi/mi-getopt.c: Likewise.
3061 * mi/mi-interp.c: Likewise.
3062 * mi/mi-main.c: Likewise.
3063 * mi/mi-parse.c: Likewise.
3064 * microblaze-rom.c: Likewise.
3065 * microblaze-tdep.c: Likewise.
3066 * mingw-hdep.c: Likewise.
3067 * minidebug.c: Likewise.
3068 * minsyms.c: Likewise.
3069 * mips-irix-tdep.c: Likewise.
3070 * mips-linux-tdep.c: Likewise.
3071 * mips-tdep.c: Likewise.
3072 * mips64obsd-tdep.c: Likewise.
3073 * mipsnbsd-tdep.c: Likewise.
3074 * mipsread.c: Likewise.
3075 * mn10300-linux-tdep.c: Likewise.
3076 * mn10300-tdep.c: Likewise.
3077 * monitor.c: Likewise.
3078 * moxie-tdep.c: Likewise.
3079 * mt-tdep.c: Likewise.
3080 * nat/linux-btrace.c: Likewise.
3081 * nat/linux-osdata.c: Likewise.
3082 * nat/linux-procfs.c: Likewise.
3083 * nat/linux-ptrace.c: Likewise.
3084 * nat/linux-waitpid.c: Likewise.
3085 * nbsd-tdep.c: Likewise.
3086 * nios2-linux-tdep.c: Likewise.
3087 * nto-procfs.c: Likewise.
3088 * nto-tdep.c: Likewise.
3089 * objc-lang.c: Likewise.
3090 * objfiles.c: Likewise.
3091 * opencl-lang.c: Likewise.
3092 * osabi.c: Likewise.
3093 * osdata.c: Likewise.
3094 * p-exp.y: Likewise.
3095 * p-lang.c: Likewise.
3096 * p-typeprint.c: Likewise.
3097 * parse.c: Likewise.
3098 * posix-hdep.c: Likewise.
3099 * ppc-linux-nat.c: Likewise.
3100 * ppc-sysv-tdep.c: Likewise.
3101 * ppcfbsd-tdep.c: Likewise.
3102 * ppcnbsd-tdep.c: Likewise.
3103 * ppcobsd-tdep.c: Likewise.
3104 * printcmd.c: Likewise.
3105 * procfs.c: Likewise.
3106 * prologue-value.c: Likewise.
3107 * python/py-auto-load.c: Likewise.
3108 * python/py-gdb-readline.c: Likewise.
3109 * ravenscar-thread.c: Likewise.
3110 * regcache.c: Likewise.
3111 * registry.c: Likewise.
3112 * remote-fileio.c: Likewise.
3113 * remote-m32r-sdi.c: Likewise.
3114 * remote-mips.c: Likewise.
3115 * remote-notif.c: Likewise.
3116 * remote-sim.c: Likewise.
3117 * remote.c: Likewise.
3118 * reverse.c: Likewise.
3119 * rs6000-aix-tdep.c: Likewise.
3120 * ser-base.c: Likewise.
3121 * ser-go32.c: Likewise.
3122 * ser-mingw.c: Likewise.
3123 * ser-pipe.c: Likewise.
3124 * ser-tcp.c: Likewise.
3125 * ser-unix.c: Likewise.
3126 * serial.c: Likewise.
3127 * sh-tdep.c: Likewise.
3128 * sh64-tdep.c: Likewise.
3129 * shnbsd-tdep.c: Likewise.
3130 * skip.c: Likewise.
3131 * sol-thread.c: Likewise.
3132 * solib-dsbt.c: Likewise.
3133 * solib-frv.c: Likewise.
3134 * solib-osf.c: Likewise.
3135 * solib-som.c: Likewise.
3136 * solib-spu.c: Likewise.
3137 * solib-target.c: Likewise.
3138 * solib.c: Likewise.
3139 * somread.c: Likewise.
3140 * source.c: Likewise.
3141 * sparc-nat.c: Likewise.
3142 * sparc-sol2-tdep.c: Likewise.
3143 * sparc-tdep.c: Likewise.
3144 * sparc64-tdep.c: Likewise.
3145 * sparc64fbsd-tdep.c: Likewise.
3146 * sparc64nbsd-tdep.c: Likewise.
3147 * sparcnbsd-tdep.c: Likewise.
3148 * spu-linux-nat.c: Likewise.
3149 * spu-multiarch.c: Likewise.
3150 * spu-tdep.c: Likewise.
3151 * stabsread.c: Likewise.
3152 * stack.c: Likewise.
3153 * std-regs.c: Likewise.
3154 * symfile.c: Likewise.
3155 * symmisc.c: Likewise.
3156 * symtab.c: Likewise.
3157 * target.c: Likewise.
3158 * thread.c: Likewise.
3159 * tilegx-linux-nat.c: Likewise.
3160 * tilegx-tdep.c: Likewise.
3161 * top.c: Likewise.
3162 * tracepoint.c: Likewise.
3163 * tui/tui-command.c: Likewise.
3164 * tui/tui-data.c: Likewise.
3165 * tui/tui-disasm.c: Likewise.
3166 * tui/tui-file.c: Likewise.
3167 * tui/tui-layout.c: Likewise.
3168 * tui/tui-out.c: Likewise.
3169 * tui/tui-regs.c: Likewise.
3170 * tui/tui-source.c: Likewise.
3171 * tui/tui-stack.c: Likewise.
3172 * tui/tui-win.c: Likewise.
3173 * tui/tui-windata.c: Likewise.
3174 * tui/tui-winsource.c: Likewise.
3175 * typeprint.c: Likewise.
3176 * ui-file.c: Likewise.
3177 * ui-out.c: Likewise.
3178 * user-regs.c: Likewise.
3179 * utils.c: Likewise.
3180 * v850-tdep.c: Likewise.
3181 * valarith.c: Likewise.
3182 * valops.c: Likewise.
3183 * valprint.c: Likewise.
3184 * value.c: Likewise.
3185 * varobj.c: Likewise.
3186 * vax-tdep.c: Likewise.
3187 * vaxnbsd-tdep.c: Likewise.
3188 * vaxobsd-tdep.c: Likewise.
3189 * windows-nat.c: Likewise.
3190 * xcoffread.c: Likewise.
3191 * xml-support.c: Likewise.
3192 * xstormy16-tdep.c: Likewise.
3193 * xtensa-linux-nat.c: Likewise.
3194
dccbb609
GB
31952014-08-07 Gary Benson <gbenson@redhat.com>
3196
3197 * common/common-defs.h: Include gdb_assert.h.
3198 * aarch64-tdep.c: Do not include gdb_assert.h.
3199 * addrmap.c: Likewise.
3200 * aix-thread.c: Likewise.
3201 * alpha-linux-tdep.c: Likewise.
3202 * alpha-mdebug-tdep.c: Likewise.
3203 * alphanbsd-tdep.c: Likewise.
3204 * amd64-nat.c: Likewise.
3205 * amd64-tdep.c: Likewise.
3206 * amd64bsd-nat.c: Likewise.
3207 * amd64fbsd-nat.c: Likewise.
3208 * amd64fbsd-tdep.c: Likewise.
3209 * amd64nbsd-nat.c: Likewise.
3210 * amd64nbsd-tdep.c: Likewise.
3211 * amd64obsd-nat.c: Likewise.
3212 * amd64obsd-tdep.c: Likewise.
3213 * arch-utils.c: Likewise.
3214 * arm-tdep.c: Likewise.
3215 * armbsd-tdep.c: Likewise.
3216 * auxv.c: Likewise.
3217 * bcache.c: Likewise.
3218 * bfin-tdep.c: Likewise.
3219 * blockframe.c: Likewise.
3220 * breakpoint.c: Likewise.
3221 * bsd-kvm.c: Likewise.
3222 * bsd-uthread.c: Likewise.
3223 * buildsym.c: Likewise.
3224 * c-exp.y: Likewise.
3225 * c-lang.c: Likewise.
3226 * charset.c: Likewise.
3227 * cleanups.c: Likewise.
3228 * cli-out.c: Likewise.
3229 * cli/cli-decode.c: Likewise.
3230 * cli/cli-dump.c: Likewise.
3231 * cli/cli-logging.c: Likewise.
3232 * cli/cli-script.c: Likewise.
3233 * cli/cli-utils.c: Likewise.
3234 * coffread.c: Likewise.
3235 * common/common-utils.c: Likewise.
3236 * common/queue.h: Likewise.
3237 * common/signals.c: Likewise.
3238 * common/vec.h: Likewise.
3239 * complaints.c: Likewise.
3240 * completer.c: Likewise.
3241 * corelow.c: Likewise.
3242 * cp-abi.c: Likewise.
3243 * cp-name-parser.y: Likewise.
3244 * cp-namespace.c: Likewise.
3245 * cp-support.c: Likewise.
3246 * cris-tdep.c: Likewise.
3247 * dbxread.c: Likewise.
3248 * dictionary.c: Likewise.
3249 * doublest.c: Likewise.
3250 * dsrec.c: Likewise.
3251 * dummy-frame.c: Likewise.
3252 * dwarf2-frame-tailcall.c: Likewise.
3253 * dwarf2-frame.c: Likewise.
3254 * dwarf2expr.c: Likewise.
3255 * dwarf2loc.c: Likewise.
3256 * dwarf2read.c: Likewise.
3257 * eval.c: Likewise.
3258 * event-loop.c: Likewise.
3259 * exceptions.c: Likewise.
3260 * expprint.c: Likewise.
3261 * f-valprint.c: Likewise.
3262 * fbsd-nat.c: Likewise.
3263 * findvar.c: Likewise.
3264 * frame-unwind.c: Likewise.
3265 * frame.c: Likewise.
3266 * frv-tdep.c: Likewise.
3267 * gcore.c: Likewise.
3268 * gdb-dlfcn.c: Likewise.
3269 * gdb_bfd.c: Likewise.
3270 * gdbarch.c: Likewise.
3271 * gdbarch.sh: Likewise.
3272 * gdbtypes.c: Likewise.
3273 * gnu-nat.c: Likewise.
3274 * gnu-v3-abi.c: Likewise.
3275 * go-lang.c: Likewise.
3276 * guile/scm-exception.c: Likewise.
3277 * guile/scm-gsmob.c: Likewise.
3278 * guile/scm-lazy-string.c: Likewise.
3279 * guile/scm-math.c: Likewise.
3280 * guile/scm-pretty-print.c: Likewise.
3281 * guile/scm-safe-call.c: Likewise.
3282 * guile/scm-utils.c: Likewise.
3283 * guile/scm-value.c: Likewise.
3284 * h8300-tdep.c: Likewise.
3285 * hppa-hpux-nat.c: Likewise.
3286 * hppa-tdep.c: Likewise.
3287 * hppanbsd-tdep.c: Likewise.
3288 * hppaobsd-tdep.c: Likewise.
3289 * i386-darwin-nat.c: Likewise.
3290 * i386-darwin-tdep.c: Likewise.
3291 * i386-nto-tdep.c: Likewise.
3292 * i386-tdep.c: Likewise.
3293 * i386bsd-nat.c: Likewise.
3294 * i386fbsd-tdep.c: Likewise.
3295 * i386gnu-nat.c: Likewise.
3296 * i386nbsd-tdep.c: Likewise.
3297 * i386obsd-tdep.c: Likewise.
3298 * i387-tdep.c: Likewise.
3299 * ia64-libunwind-tdep.c: Likewise.
3300 * ia64-tdep.c: Likewise.
3301 * inf-ptrace.c: Likewise.
3302 * inf-ttrace.c: Likewise.
3303 * infcall.c: Likewise.
3304 * infcmd.c: Likewise.
3305 * infrun.c: Likewise.
3306 * inline-frame.c: Likewise.
3307 * interps.c: Likewise.
3308 * jv-lang.c: Likewise.
3309 * jv-typeprint.c: Likewise.
3310 * linux-fork.c: Likewise.
3311 * linux-nat.c: Likewise.
3312 * linux-thread-db.c: Likewise.
3313 * m32c-tdep.c: Likewise.
3314 * m32r-linux-nat.c: Likewise.
3315 * m32r-tdep.c: Likewise.
3316 * m68k-tdep.c: Likewise.
3317 * m68kbsd-nat.c: Likewise.
3318 * m68kbsd-tdep.c: Likewise.
3319 * m88k-tdep.c: Likewise.
3320 * machoread.c: Likewise.
3321 * macroexp.c: Likewise.
3322 * macrotab.c: Likewise.
3323 * maint.c: Likewise.
3324 * mdebugread.c: Likewise.
3325 * memory-map.c: Likewise.
3326 * mep-tdep.c: Likewise.
3327 * mi/mi-common.c: Likewise.
3328 * microblaze-tdep.c: Likewise.
3329 * mingw-hdep.c: Likewise.
3330 * mips-linux-nat.c: Likewise.
3331 * mips-linux-tdep.c: Likewise.
3332 * mips-tdep.c: Likewise.
3333 * mips64obsd-tdep.c: Likewise.
3334 * mipsnbsd-tdep.c: Likewise.
3335 * mn10300-linux-tdep.c: Likewise.
3336 * mn10300-tdep.c: Likewise.
3337 * moxie-tdep.c: Likewise.
3338 * mt-tdep.c: Likewise.
3339 * nat/linux-btrace.c: Likewise.
3340 * nat/linux-osdata.c: Likewise.
3341 * nat/linux-ptrace.c: Likewise.
3342 * nat/mips-linux-watch.c: Likewise.
3343 * nios2-linux-tdep.c: Likewise.
3344 * nios2-tdep.c: Likewise.
3345 * objc-lang.c: Likewise.
3346 * objfiles.c: Likewise.
3347 * obsd-nat.c: Likewise.
3348 * opencl-lang.c: Likewise.
3349 * osabi.c: Likewise.
3350 * parse.c: Likewise.
3351 * ppc-linux-nat.c: Likewise.
3352 * ppc-sysv-tdep.c: Likewise.
3353 * ppcfbsd-nat.c: Likewise.
3354 * ppcfbsd-tdep.c: Likewise.
3355 * ppcnbsd-nat.c: Likewise.
3356 * ppcnbsd-tdep.c: Likewise.
3357 * ppcobsd-nat.c: Likewise.
3358 * ppcobsd-tdep.c: Likewise.
3359 * printcmd.c: Likewise.
3360 * procfs.c: Likewise.
3361 * prologue-value.c: Likewise.
3362 * psymtab.c: Likewise.
3363 * python/py-lazy-string.c: Likewise.
3364 * python/py-value.c: Likewise.
3365 * regcache.c: Likewise.
3366 * reggroups.c: Likewise.
3367 * registry.c: Likewise.
3368 * remote-sim.c: Likewise.
3369 * remote.c: Likewise.
3370 * rs6000-aix-tdep.c: Likewise.
3371 * rs6000-tdep.c: Likewise.
3372 * s390-linux-tdep.c: Likewise.
3373 * score-tdep.c: Likewise.
3374 * ser-base.c: Likewise.
3375 * ser-mingw.c: Likewise.
3376 * sh-tdep.c: Likewise.
3377 * sh64-tdep.c: Likewise.
3378 * solib-darwin.c: Likewise.
3379 * solib-spu.c: Likewise.
3380 * solib-svr4.c: Likewise.
3381 * source.c: Likewise.
3382 * sparc-nat.c: Likewise.
3383 * sparc-sol2-tdep.c: Likewise.
3384 * sparc-tdep.c: Likewise.
3385 * sparc64-sol2-tdep.c: Likewise.
3386 * sparc64-tdep.c: Likewise.
3387 * sparc64fbsd-tdep.c: Likewise.
3388 * sparc64nbsd-tdep.c: Likewise.
3389 * sparc64obsd-tdep.c: Likewise.
3390 * sparcnbsd-tdep.c: Likewise.
3391 * sparcobsd-tdep.c: Likewise.
3392 * spu-multiarch.c: Likewise.
3393 * spu-tdep.c: Likewise.
3394 * stabsread.c: Likewise.
3395 * stack.c: Likewise.
3396 * symfile.c: Likewise.
3397 * symtab.c: Likewise.
3398 * target-descriptions.c: Likewise.
3399 * target-memory.c: Likewise.
3400 * target.c: Likewise.
3401 * tic6x-linux-tdep.c: Likewise.
3402 * tic6x-tdep.c: Likewise.
3403 * tilegx-linux-nat.c: Likewise.
3404 * tilegx-tdep.c: Likewise.
3405 * top.c: Likewise.
3406 * tramp-frame.c: Likewise.
3407 * tui/tui-out.c: Likewise.
3408 * tui/tui-winsource.c: Likewise.
3409 * ui-out.c: Likewise.
3410 * user-regs.c: Likewise.
3411 * utils.c: Likewise.
3412 * v850-tdep.c: Likewise.
3413 * valops.c: Likewise.
3414 * value.c: Likewise.
3415 * varobj.c: Likewise.
3416 * vax-nat.c: Likewise.
3417 * xml-syscall.c: Likewise.
3418 * xml-tdesc.c: Likewise.
3419 * xstormy16-tdep.c: Likewise.
3420 * xtensa-linux-nat.c: Likewise.
3421 * xtensa-tdep.c: Likewise.
3422
e76df0d0
GB
34232014-08-07 Gary Benson <gbenson@redhat.com>
3424
3425 * common/common-defs.h: Include common-utils.h.
3426 * defs.h: Do not include common-utils.h.
3427 * common/gdb_assert.h: Likewise.
3428 * darwin-nat.h: Likewise.
3429 * nat/linux-btrace.c: Likewise.
3430 * target/waitstatus.h: Likewise.
3431
4cb9c816
GB
34322014-08-07 Gary Benson <gbenson@redhat.com>
3433
3434 * common/common-defs.h: Include ptid.h.
3435 * defs.h: Do not include ptid.h.
3436 * inferior.h: Likewise.
3437 * infrun.h: Likewise.
3438 * nat/linux-btrace.h: Likewise.
3439 * nat/linux-osdata.h: Likewise.
3440 * target/waitstatus.h: Likewise.
3441
3995eeee
GB
34422014-08-07 Gary Benson <gbenson@redhat.com>
3443
3444 * common/common-defs.h: Include gdb_locale.h.
3445 * defs.h: Do not include gdb_locale.h.
3446
cb9f1a9b
GB
34472014-08-07 Gary Benson <gbenson@redhat.com>
3448
3449 * common/common-defs.h: Include gdb/signals.h.
3450 * defs.h: Do not include gdb/signals.h.
3451
a5fceff8
GB
34522014-08-07 Gary Benson <gbenson@redhat.com>
3453
3454 * common/common-defs.h: Include pathmax.h.
3455 * defs.h: Do not include pathmax.h.
3456
b9391142
GB
34572014-08-07 Gary Benson <gbenson@redhat.com>
3458
3459 * common/common-defs.h: Include libiberty.h.
3460 * defs.h: Do not include libiberty.h.
3461 * common/queue.h: Likewise.
3462 * cp-name-parser.y: Likewise.
3463 * mi/mi-cmd-catch.c: Likewise.
3464 * python/python.c: Likewise.
3465
0e443c87
GB
34662014-08-07 Gary Benson <gbenson@redhat.com>
3467
3468 * common/common-defs.h: Include ansidecl.h.
3469 * defs.h: Do not include ansidecl.h.
3470 * common/buffer.h: Likewise.
3471 * common/common-utils.h: Likewise.
3472
8ebb3f56
GB
34732014-08-07 Gary Benson <gbenson@redhat.com>
3474
3475 * common/common-defs.h: Include stddef.h.
3476 * defs.h: Do not include stddef.h.
3477 * common/common-utils.h: Likewise.
3478 * amd64fbsd-nat.c: Likewise.
3479 * bcache.c: Likewise.
3480 * charset.c: Likewise.
3481 * common/buffer.h: Likewise.
3482 * common/vec.h: Likewise.
3483 * i386bsd-nat.c: Likewise.
3484 * nat/linux-btrace.h: Likewise.
3485 * ppcfbsd-nat.c: Likewise.
3486 * ppcnbsd-tdep.h: Likewise.
3487 * ppcobsd-nat.c: Likewise.
3488 * ppcobsd-tdep.h: Likewise.
3489 * python/py-gdb-readline.c: Likewise.
3490
8980bdf6
GB
34912014-08-07 Gary Benson <gbenson@redhat.com>
3492
3493 * common/common-defs.h: Include stdarg.h.
3494 * defs.h: Do not include stdarg.h.
3495 * ada-lang.c: Likewise.
3496 * common/common-utils.h: Likewise.
3497 * guile/scm-string.c: Likewise.
3498 * guile/scm-utils.c: Likewise.
3499 * m32c-tdep.c: Likewise.
3500
d7096f71
GB
35012014-08-07 Gary Benson <gbenson@redhat.com>
3502
3503 * common/common-defs.h: Include stdlib.h.
3504 * defs.h: Do not include stdlib.h.
3505 * addrmap.c: Likewise.
3506 * bcache.c: Likewise.
3507 * common/buffer.c: Likewise.
3508 * common/common-utils.c: Likewise.
3509 * cp-name-parser.y: Likewise.
3510 * go32-nat.c: Likewise.
3511 * mn10300-linux-tdep.c: Likewise.
3512 * nat/linux-osdata.c: Likewise.
3513 * tui/tui.c: Likewise.
3514 * windows-nat.c: Likewise.
3515
d02f550d
GB
35162014-08-07 Gary Benson <gbenson@redhat.com>
3517
3518 * common/common-defs.h: Include stdio.h.
3519 * defs.h: Do not include stdio.h.
3520 * ada-lang.c: Likewise.
3521 * common/buffer.c: Likewise.
3522 * common/common-utils.c: Likewise.
3523 * cp-name-parser.y: Likewise.
3524 * gnu-nat.c: Likewise.
3525 * go32-nat.c: Likewise.
3526 * i386gnu-nat.c: Likewise.
3527 * proc-api.c: Likewise.
3528 * proc-events.c: Likewise.
3529 * proc-flags.c: Likewise.
3530 * proc-why.c: Likewise.
3531 * python/python-internal.h: Likewise.
3532 * target-memory.c: Likewise.
3533 * tui/tui-io.c: Likewise.
3534 * tui/tui.c: Likewise.
3535
b6d7a4bf
SM
35362014-08-06 Simon Marchi <simon.marchi@ericsson.com>
3537
3538 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
3539 (scan_dyntag_auxv): Same.
3540
af19829b
YQ
35412014-08-06 Yao Qi <yao@codesourcery.com>
3542
3543 * amd64-linux-nat.c: Remove duplicated include
3544 "x86-linux-nat.h".
3545 * i386-linux-nat.c: Likewise.
3546
8e07a239
YQ
35472014-08-06 Yao Qi <yao@codesourcery.com>
3548
3549 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
3550 operand" with "Special opcode" in comments.
3551
7bfe8241
GB
35522014-08-05 Gary Benson <gbenson@redhat.com>
3553
3554 * interps.c (initialize_interps): Remove prototype.
3555 (interpreter_initialized): Remove static global.
3556 (interp_add): Do not call initialize_interps.
3557 (initialize_interps): Remove function.
3558
d6c95504
GB
35592014-08-05 Gary Benson <gbenson@redhat.com>
3560
3561 * utils.c (vwarning): Remove spurious va_end.
3562
241fd515
AM
35632014-08-05 Alan Modra <amodra@gmail.com>
3564
3565 * charset.c (convert_between_encodings): Cast result of obstack_base.
3566 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
3567 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
3568 (read_unwind_info): Use size_t for some locals.
3569 * jit.c (finalize_symtab): Likewise.
3570 * utils.c (hashtab_obstack_allocate): Likewise.
3571 * symmisc.c (print_objfile_statistics): Update format strings.
3572
dc304a94
JK
35732014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3574
3575 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
3576 (Changes in GDB 7.8): ... here.
3577
3cecbbbe
TT
35782014-08-04 Tom Tromey <tromey@redhat.com>
3579
3580 * target.c (set_targetdebug): New function.
3581 (initialize_targets): Pass set_targetdebug when creating "set
3582 debug target".
3583
6908c509
JB
35842014-08-01 Joel Brobecker <brobecker@adacore.com>
3585
3586 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
3587 if detecting a variable-sized field that is not the last field.
3588 Fix struct type length computation.
3589
53e8f97d
JB
35902014-08-01 Joel Brobecker <brobecker@adacore.com>
3591
3592 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3593 Add debug trace.
3594
e068c55d
JB
35952014-08-01 Joel Brobecker <brobecker@adacore.com>
3596
3597 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3598 Remove "+ 8" offset in computation of CHAIN_VMA.
3599
4d4ca2a1
DE
36002014-07-31 Doug Evans <dje@google.com>
3601
3602 * inflow.c (child_terminal_inferior): Add comment.
3603 (child_terminal_ours_for_output): Add comment.
3604 (child_terminal_ours): Add comment.
3605 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
3606 (linux_nat_terminal_ours): Add comment.
3607
462f517e
GB
36082014-07-31 Gary Benson <gbenson@redhat.com>
3609
3610 * common/btrace-common.h: Do not include defs.h or server.h.
3611 * nat/mips-linux-watch.h: Likewise.
3612 * gdb-dlfcn.h: Do not include defs.h.
3613 * tracefile.h: Likewise.
3614
74228e77
RM
36152014-07-30 Roland McGrath <mcgrathr@google.com>
3616
3617 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
3618
014f9477
TT
36192014-07-30 Tom Tromey <tromey@redhat.com>
3620
3621 * bsd-kvm.c (bsd_kvm_open): Constify.
3622 * corelow.c (core_open): Constify.
3623 * ctf.c (ctf_open): Constify.
3624 * dbug-rom.c (dbug_open): Constify.
3625 * exec.c (exec_open): Constify.
3626 * m32r-rom.c (m32r_open, mon2000_open): Constify.
3627 * microblaze-rom.c (picobug_open): Constify.
3628 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
3629 Constify.
3630 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
3631 * record-btrace.c (record_btrace_open): Constify.
3632 * record-full.c (record_full_core_open_1, record_full_open_1)
3633 (record_full_open): Constify.
3634 * remote-m32r-sdi.c (m32r_open): Constify.
3635 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
3636 (rockhopper_open, lsi_open): Constify.
3637 * remote-sim.c (gdbsim_open): Constify.
3638 * remote.c (remote_open, extended_remote_open, remote_open_1):
3639 Constify.
3640 * target.h (struct target_ops) <to_open>: Make "arg" const.
3641 * tracefile-tfile.c (tfile_open): Constify.
3642
e799154c
TT
36432014-07-30 Tom Tromey <tromey@redhat.com>
3644
3645 * breakpoint.c (map_breakpoint_numbers): Update.
3646 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
3647 (get_number_const): New function.
3648 (get_number): Rewrite using get_number_const.
3649 (init_number_or_range): Make "string" const.
3650 (number_is_in_list): Make "list" const.
3651 * cli/cli-utils.h (get_number_const): Declare.
3652 (struct get_number_or_range_state) <string, end_ptr>: Now const.
3653 (init_number_or_range, number_is_in_list): Update.
3654 * printcmd.c (map_display_numbers): Update.
3655 * value.c (value_from_history_ref): Constify.
3656 * value.h (value_from_history_ref): Update.
3657
5f08566b
TT
36582014-07-30 Tom Tromey <tromey@redhat.com>
3659
3660 * corefile.c (hook_type, call_extra_exec_file_hooks)
3661 (specify_exec_file_hook): Constify.
3662 * exec.c (exec_file_attach): Make "filename" const.
3663 * gdbcore.h (deprecated_exec_file_display_hook)
3664 (specify_exec_file_hook, exec_file_attach): Constify.
3665 * main.c (captured_main): Use catch_command_errors_const.
3666
8981c758
TT
36672014-07-30 Tom Tromey <tromey@redhat.com>
3668
3669 * target.c (open_target): New function.
3670 (add_target_with_completer, add_deprecated_target_alias): Use
3671 set_cmd_sfunc, set_cmd_context.
3672 (debug_to_open): Remove.
3673 (setup_target_debug): Update.
3674
a1c7835a
YQ
36752014-07-30 Yao Qi <yao@codesourcery.com>
3676
3677 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
3678 comments.
3679 * parse.c (exp_iterate): Update comments.
3680
976411d6
GB
36812014-07-30 Gary Benson <gbenson@redhat.com>
3682
3683 * common/common-defs.h: New file.
3684 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
3685 * defs.h: Include common-defs.h.
3686 Do not include config.h or build-gnulib/config.h.
3687
5d4848a4
GB
36882014-07-30 Gary Benson <gbenson@redhat.com>
3689
3690 * common/common-utils.h: Do not include config.h.
3691 * nat/linux-btrace.h: Likewise.
3692
d41f6d8e
GB
36932014-07-30 Gary Benson <gbenson@redhat.com>
3694
3695 * btrace.c: Include defs.h.
3696 * common/ptid.c: Include defs.h or server.h as appropriate.
3697 * nat/mips-linux-watch.c: Likewise.
3698
84202f9c
TT
36992014-07-29 Tom Tromey <tromey@redhat.com>
3700
3701 * target.c (target_is_pushed): Simplify.
3702
2530441c
JB
37032014-07-29 Joel Brobecker <brobecker@adacore.com>
3704
3705 GDB 7.8 released.
3706
7e09a223
YQ
37072014-07-29 Yao Qi <yao@codesourcery.com>
3708
3709 PR gdb/17206
3710 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
3711
7ebdbe92
DE
37122014-07-28 Doug Evans <xdje42@gmail.com>
3713
3714 PR guile/17203
3715 * guile/scm-param.c (pascm_parameter_defined_p): New function.
3716 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
3717 parameters.
3718
f347ffc9
WN
37192014-07-28 Will Newton <will.newton@linaro.org>
3720
3721 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
3722 (THUMB2_SET_R7_SIGRETURN2): Likewise.
3723 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
3724 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
3725 (THUMB2_EABI_SYSCALL): Likewise.
3726 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
3727 struct tramp_frame.
3728 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
3729 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
3730
37c5f1f7
DE
37312014-07-27 Doug Evans <xdje42@gmail.com>
3732
3733 * guile/scm-param.c (pascm_print_param_smob): Fix output.
3734
0c3abbc7
DE
37352014-07-27 Doug Evans <xdje42@gmail.com>
3736
3737 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
3738
e76c5d17
DE
37392014-07-26 Ludovic Courtès <ludo@gnu.org>
3740 Doug Evans <xdje42@gmail.com>
3741
3742 PR guile/17146
3743 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
3744 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
3745 * configure.ac: Try to use guild to compile an scm file, if it fails
3746 then disable guile support.
3747 * configure: Regenerate.
3748 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
3749 GUILE_FILE_LIST.
3750 (GUILE_COMPILED_FILES): New variable.
3751 (GUILE_FILES) Update.
3752 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
3753 (stamp-guile): Compile scm files.
3754 * guile/guile.c (boot_guile_support): New function.
3755 (standard_throw_args_p): New function.
3756 (print_standard_throw_error, print_throw_error): New functions.
3757 (handle_boot_error): New function.
3758 (initialize_scheme_side): Rewrite to call boot_guile_support.
3759 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
3760 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
3761
186fcde0
DE
37622014-07-26 Ludovic Courtès <ludo@gnu.org>
3763 Doug Evans <xdje42@gmail.com>
3764
3765 PR guile/17146
3766 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
3767 * guile/lib/gdb/support.scm: New file.
3768 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
3769 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
3770 All uses updated.
3771 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
3772 All uses updated.
3773 (%assert-type): Ditto, and renamed to assert-type.
3774 (%exception-print-style): Delete.
3775
4df42755
DE
37762014-07-26 Doug Evans <xdje42@gmail.com>
3777
3778 PR build/17105
3779 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
3780 * configure: Regenerate.
3781 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
3782 PYTHON_FILES.
3783 (PYTHON_FILES): New variable.
3784 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
3785 (GUILE_FILES): New variable.
3786 (stamp-python, install-python, uninstall-python): Handle empty
3787 file list.
3788 (stamp-guile, install-guile, uninstall-guile): Ditto.
3789
ee7333ae
DE
37902014-07-26 Doug Evans <xdje42@gmail.com>
3791
3792 PR guile/17177
3793 * guile/lib/gdb.scm (pretty-printers): Export.
3794 (set-pretty-printers!): Export.
3795 * guile/lib/gdb/printing.scm (gdb module): Update.
3796 (prepend-pretty-printer!, append-pretty-printer!): Update.
3797 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
3798 (pretty_printer_list_var): Delete.
3799 (pretty_printer_list): New static global.
3800 (gdbscm_pretty_printers): New function.
3801 (gdbscm_set_pretty_printers_x): New function.
3802 (ppscm_find_pretty_printer_from_gdb): Update.
3803 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
3804 (gdbscm_initialize_pretty_printers): Update.
3805
74edf516
DE
38062014-07-26 Doug Evans <xdje42@gmail.com>
3807
3808 PR 17185
3809 * configure.ac: Add check for header gc/gc.h.
3810 Add check for function setenv.
3811 * configure: Regenerate.
3812 * config.in: Regenerate.
3813 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
3814
d54398a7
MR
38152014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
3816
3817 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
3818 variation in gdbarch matching.
3819
ab16fce8
TT
38202014-07-25 Tom Tromey <tromey@redhat.com>
3821
3822 * exec.c (using_exec_ops): Remove.
3823 (exec_close_1): Update. Remove extraneous block, reindent.
3824 (add_target_sections): Use target_is_pushed.
3825
88056fbb
PA
38262014-07-25 Pedro Alves <palves@redhat.com>
3827
3828 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
3829 * monitor.c (monitor_create_inferior): Likewise.
3830 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
3831 * remote-sim.c (gdbsim_create_inferior): Likewise.
3832 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
3833 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
3834 * windows-nat.c (do_initial_windows_stuff): Likewise.
3835
70509625
PA
38362014-07-25 Pedro Alves <palves@redhat.com>
3837
3838 * NEWS: Mention signal passing and "signal" command changes.
3839 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
3840 comment.
3841 * breakpoint.c (until_break_command): Adjust clear_proceed_status
3842 call.
3843 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
3844 * infcmd.c (proceed_thread_callback, continue_1, step_once)
3845 (jump_command): Adjust clear_proceed_status call.
3846 (signal_command): Warn if other thread that are resumed have
3847 signals that will be delivered. Adjust clear_proceed_status call.
3848 (until_next_command, finish_command)
3849 (proceed_after_attach_callback, attach_command_post_wait)
3850 (attach_command): Adjust clear_proceed_status call.
3851 * infrun.c (proceed_after_vfork_done): Likewise.
3852 (proceed_after_attach_callback): Adjust comment.
3853 (clear_proceed_status_thread): Clear stop_signal if not in pass
3854 state.
3855 (clear_proceed_status_callback): Delete.
3856 (clear_proceed_status): New 'step' parameter. Only clear the
3857 proceed status of threads the command being prepared is about to
3858 resume.
3859 (proceed): If passed in an explicit signal, override stop_signal
3860 with it. Don't pass the last stop signal to the thread we're
3861 resuming.
3862 (init_wait_for_inferior): Adjust clear_proceed_status call.
3863 (switch_back_to_stepped_thread): Clear the signal if it should not
3864 be passed.
3865 * infrun.h (clear_proceed_status): New 'step' parameter.
3866 (user_visible_resume_ptid): Add comment.
3867 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
3868 signal is in pass state.
3869 * remote.c (append_pending_thread_resumptions): Likewise.
3870 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
3871
d8be2939
TT
38722014-07-25 Tom Tromey <tromey@redhat.com>
3873
3874 * target.h (target_stopped_data_address)
3875 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
3876 parentheses.
3877
7d0d9d2b
PL
38782014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
3879
3880 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
3881 comments.
3882 (avr_pointer_to_address): Likewise.
3883
e9e7f724
TT
38842014-07-24 Tom Tromey <tromey@redhat.com>
3885
3886 * monitor.c (compile_pattern): Update.
3887 * target.h (struct target_ops) <to_shortname, to_longname,
3888 to_doc>: Now const.
3889
1947513d
TT
38902014-07-24 Tom Tromey <tromey@redhat.com>
3891
3892 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
3893 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
3894 (add_info_alias, add_com): Make "doc" const.
3895 (print_doc_line): Make "str" const.
3896 (delete_cmd): Update.
3897 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
3898 (print_doc_line): Update.
3899 * cli/cli-script.c (document_command): Update.
3900 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
3901 (add_com, add_info, add_info_alias): Update.
3902 * guile/scm-cmd.c (cmdscm_destroyer): Update.
3903 * python/py-cmd.c (cmdpy_destroyer): Update.
3904
64e61d29
TT
39052014-07-24 Tom Tromey <tromey@redhat.com>
3906
3907 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
3908 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
3909 (help_cmd_list): Constify.
3910 (lookup_cmd): Update.
3911 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
3912 const.
3913 (help_cmd_list, apropos_cmd): Update.
3914 * cli/cli-script.c (show_user): Update.
3915 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
3916 * cli/cli-setshow.h (cmd_show_list): Update.
3917 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
3918 (cmd_show_list): Update.
3919 * guile/scm-cmd.c (cmdscm_destroyer): Update.
3920 * python/py-cmd.c (cmdpy_destroyer): Update.
3921
429e55ea
TT
39222014-07-24 Tom Tromey <tromey@redhat.com>
3923
3924 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
3925 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
3926 const.
3927 * command.h (deprecate_cmd): Update.
3928 * maint.c (maintenance_do_deprecate): Add casts.
3929
64669f3b
TT
39302014-07-24 Tom Tromey <tromey@redhat.com>
3931
3932 * cli/cli-decode.c (help_cmd): Make parameter "const".
3933 * cli/cli-decode.h (help_cmd): Update.
3934
d3d3328b
TT
39352014-07-24 Tom Tromey <tromey@redhat.com>
3936
3937 * stack.c (up_silently_base, down_silently_base): Make argument
3938 const.
3939
414842dc
TT
39402014-07-24 Tom Tromey <tromey@redhat.com>
3941
3942 * solib.c (solib_add): Make "pattern" const.
3943 * solib.h (solib_add): Update.
3944
baa336ce
TT
39452014-07-24 Tom Tromey <tromey@redhat.com>
3946
3947 * remote.c (remote_serial_open, print_packet, putpkt)
3948 (putpkt_binary): Constify.
3949 * remote.h (putpkt): Update.
3950
5a19e2d0
TT
39512014-07-24 Tom Tromey <tromey@redhat.com>
3952
3953 * monitor.c (monitor_open): Make "args" const.
3954 * monitor.h (monitor_open): Update.
3955
fc4baa5e
TT
39562014-07-24 Tom Tromey <tromey@redhat.com>
3957
3958 * maint.c (match_bfd_flags): Make "string" const.
3959 (print_bfd_section_info): Remove casts.
3960 (print_objfile_section_info): Make "string" const.
3961
0d5f0dbe
TT
39622014-07-24 Tom Tromey <tromey@redhat.com>
3963
3964 * inf-child.c (inf_child_open_target): Make "arg" const.
3965 * inf-child.h (inf_child_open_target): Update.
3966
41c77899
TT
39672014-07-24 Tom Tromey <tromey@redhat.com>
3968
3969 * environ.c (unset_in_environ): Make "var" const.
3970 * environ.h (unset_in_environ): Update.
3971
93db0d79
TT
39722014-07-24 Tom Tromey <tromey@redhat.com>
3973
3974 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
3975 Make "cmd" const.
3976 (scan_filename_with_cleanup): Likewise.
3977 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
3978 Make arguments const.
3979 (restore_command): Update.
3980
36d6eb95
PA
39812014-07-24 Pedro Alves <palves@redhat.com>
3982
3983 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
3984
8009206a
TT
39852014-07-24 Tom Tromey <tromey@redhat.com>
3986 Gary Benson <gbenson@redhat.com>
3987
3988 * nat/linux-ptrace.c (additional_flags): New global.
3989 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
3990 additional_flags; don't check GDBSERVER.
3991 (linux_ptrace_set_additional_flags): New function.
3992 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
3993 Declare.
3994 * linux-nat.c (_initialize_linux_nat): Call
3995 linux_ptrace_set_additional_flags.
3996
a7068b60
TT
39972014-07-24 Tom Tromey <tromey@redhat.com>
3998
3999 * make-target-delegates (munge_type, write_debugmethod): New
4000 functions.
4001 (debug_names): New global.
4002 ($TARGET_DEBUG_PRINTER): New global.
4003 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
4004 name.
4005 Write debug methods. Generate init_debug_target.
4006 * target-debug.h: New file.
4007 * target-delegates.c: Rebuild.
4008 * target.c: Include target-debug.h.
4009 (debug_target): Hoist definition.
4010 (target_kill, target_get_section_table, target_memory_map)
4011 (target_flash_erase, target_flash_done, target_detach)
4012 (target_disconnect, target_wait, target_resume)
4013 (target_pass_signals, target_program_signals, target_follow_fork)
4014 (target_mourn_inferior, target_search_memory)
4015 (target_thread_address_space, target_close)
4016 (target_find_new_threads, target_core_of_thread)
4017 (target_verify_memory, target_insert_mask_watchpoint)
4018 (target_remove_mask_watchpoint): Remove targetdebug code.
4019 (debug_to_post_attach, debug_to_prepare_to_store)
4020 (debug_to_files_info, debug_to_insert_breakpoint)
4021 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
4022 (debug_to_region_ok_for_hw_watchpoint)
4023 (debug_to_can_accel_watchpoint_condition)
4024 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
4025 (debug_to_watchpoint_addr_within_range)
4026 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
4027 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
4028 (debug_to_terminal_init, debug_to_terminal_inferior)
4029 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
4030 (debug_to_terminal_save_ours, debug_to_terminal_info)
4031 (debug_to_load, debug_to_post_startup_inferior)
4032 (debug_to_insert_fork_catchpoint)
4033 (debug_to_remove_fork_catchpoint)
4034 (debug_to_insert_vfork_catchpoint)
4035 (debug_to_remove_vfork_catchpoint)
4036 (debug_to_insert_exec_catchpoint)
4037 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
4038 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
4039 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
4040 (setup_target_debug): Call init_debug_target.
4041 * target.h (TARGET_DEBUG_PRINTER): New macro.
4042 (struct target_ops) <to_resume, to_wait, to_pass_signals,
4043 to_program_signals>: Use TARGET_DEBUG_PRINTER.
4044
2c51604d
GB
40452014-07-24 Gary Benson <gbenson@redhat.com>
4046
4047 * exceptions.h (throw_vfatal): Renamed to...
4048 (throw_vquit): New declaration.
4049 (throw_quit): Likewise.
4050 * exceptions.c (throw_vfatal): Renamed to...
4051 (throw_vquit): New function.
4052 (throw_quit): Likewise.
4053 (throw_error): Call throw_verror rather than throw_it.
4054 * utils.h (vfatal): Removed.
4055 (fatal): Likewise.
4056 * utils.c (vfatal): Removed.
4057 (fatal): Likewise.
4058 (internal_verror): Replaced call to fatal with call to throw_quit.
4059 (quit): Replaced calls to fatal with calls to throw_quit.
4060
34211963
ME
40612014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
4062
4063 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
4064 target_read_code.
4065
a52b4d3e
ME
40662014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
4067
4068 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
4069 less than zero in conditional expression.
4070
a8bdc56b
TT
40712014-07-23 Tom Tromey <tromey@redhat.com>
4072
4073 * make-target-delegates ($ARGS_PART): Match trailing close paren.
4074 ($INTRO_PART): Don't match whitespace.
4075 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
4076 argument matching.
4077 ($METHOD): Add $METHOD_TRAILER.
4078 (trim): Rewrite.
4079 (scan_target_h): New sub.
4080 Change main loop not to collect state.
4081 * target-delegates.c: Rebuild.
4082
91b52240
GB
40832014-07-23 Gary Benson <gbenson@redhat.com>
4084
4085 * cp-support.c (gdb_demangle): Fix build on systems without
4086 sigaltstack.
4087
45326f6f
JK
40882014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4089
4090 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
4091 for reference entry value target data value.
4092
e214cf6c
JK
40932014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4094
4095 * stack.c (read_frame_arg): Verify value_optimized_out before calling
4096 value_available_contents_eq.
4097
bddbbedd
PA
40982014-07-22 Pedro Alves <palves@redhat.com>
4099
4100 * value.c (allocate_optimized_out_value): Don't mark value as
4101 non-lazy.
4102
45c71484
JW
41032014-07-22 Jiong Wang <jiong.wang@arm.com>
4104
4105 * MAINTAINERS (Write After Approval): Update my email address.
4106
9597b22a
DE
41072014-07-20 Doug Evans <dje@google.com>
4108
4109 PR server/17147
4110 * remote.c (putpkt_binary): Add text to error message.
4111
91101fe5
YQ
41122014-07-20 Yao Qi <yao@codesourcery.com>
4113
4114 * eval.c: Remove "Chill" from comments.
4115 * gdbtypes.h: Likewise.
4116 * symtab.h: Likewise.
4117
c9402c95
YQ
41182014-07-20 Yao Qi <yao@codesourcery.com>
4119
4120 * std-operator.def: Update comments to TERNOP_SLICE.
4121
ae8fddda
YQ
41222014-07-20 Yao Qi <yao@codesourcery.com>
4123
4124 * std-operator.def: Remove BINOP_RANGE.
4125 * breakpoint.c (watchpoint_exp_is_const): Update.
4126 * expprint.c (dump_subexp_body_standard): Likewise.
4127 * eval.c (init_array_element): Remove dead code.
4128 (evaluate_subexp_standard): Likewise.
4129
9c816640
YQ
41302014-07-20 Yao Qi <yao@codesourcery.com>
4131
4132 * std-operator.def: Remove BINOP_IN.
4133 * breakpoint.c (watchpoint_exp_is_const): Update.
4134 * eval.c (evaluate_subexp_standard): Likewise.
4135 * expprint.c (dump_subexp_body_standard): Likewise.
4136
164224e9
ME
41372014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
4138
4139 * microblaze-tdep.c (microblaze_register_names): Add
4140 the rshr and rslr register names.
4141 (microblaze_gdbarch_init): Use of tdesc_has_registers.
4142 Use of tdesc_find_feature. Use of tdesc_data_alloc.
4143 Use of tdesc_numbered_register. Use of
4144 microblaze_register_g_packet_guesses. Use of
4145 tdesc_use_registers. Use of set_gdbarch_register_type.
4146 (microblaze_register_g_packet_guesses): New.
4147 * microblaze-tdep.h (microblaze_reg_num): Add
4148 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
4149 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
4150 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
4151 * features/microblaze-core.xml: New file.
4152 * features/microblaze-stack-protect.xml: New file.
4153 * features/microblaze-with-stack-protect.c: New file.
4154 * features/microblaze-with-stack-protect.xml: New file.
4155 * features/microblaze.xml: New file.
4156 * features/microblaze.c: New file.
4157 * features/Makefile (microblaze-with-stack-protect): Add
4158 microblaze-with-stack-protect microblaze and microblaze-expedite.
4159 * regformats/microblaze-with-stack-protect.dat: New file.
4160 * regformats/microblaze.dat: New file.
4161 * doc/gdb.texinfo (MicroBlaze Features): Added.
4162
e8b2341c
TT
41632014-07-18 Tom Tromey <tromey@redhat.com>
4164
4165 * exec.c (exec_ops): Now static.
4166 * exec.h (exec_ops): Don't declare.
4167
44e89118
TT
41682014-07-18 Tom Tromey <tromey@redhat.com>
4169
4170 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
4171 to find_target_beneath.
4172 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
4173 find_target_beneath.
4174 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
4175
b0ed115f
TT
41762014-07-18 Tom Tromey <tromey@redhat.com>
4177
4178 PR gdb/17130:
4179 * utils.c (quit): Use target_supports_terminal_ours.
4180 * target.h (target_supports_terminal_ours): Declare.
4181 * target.c (target_supports_delete_record): Don't check
4182 to_delete_record against NULL.
4183 (target_supports_terminal_ours): New function.
4184
e75fdfca
TT
41852014-07-18 Tom Tromey <tromey@redhat.com>
4186
4187 PR gdb/17130:
4188 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
4189 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
4190 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
4191 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
4192 * windows-nat.c (windows_xfer_partial): Always delegate.
4193 * record-btrace.c (record_btrace_xfer_partial): Simplify
4194 delegation.
4195 (record_btrace_fetch_registers, record_btrace_store_registers)
4196 (record_btrace_prepare_to_store, record_btrace_resume)
4197 (record_btrace_wait, record_btrace_find_new_threads)
4198 (record_btrace_thread_alive): Likewise.
4199 * procfs.c (procfs_xfer_partial): Always delegate.
4200 * corelow.c (core_xfer_partial): Always delegate.
4201 * sol-thread.c (sol_find_new_threads): Simplify delegation.
4202
83814951
TT
42032014-07-18 Tom Tromey <tromey@redhat.com>
4204
4205 * exec.c (exec_make_note_section): Move earlier.
4206
b8b8facf
DE
42072014-07-17 Doug Evans <dje@google.com>
4208
74b49205 4209 PR gdb/17170
b8b8facf
DE
4210 * maint.c (count_symtabs_and_blocks): Handle NULL
4211 current_program_space.
4212 (report_command_stats): Check global enabled flag in addition to
4213 recorded enabled flag.
4214 (make_command_stats_cleanup): Handle msg_type == 0, startup.
4215
69ff6be5
PA
42162014-07-16 Pedro Alves <palves@redhat.com>
4217
4218 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
4219
252db1b5
TT
42202014-07-16 Tom Tromey <tromey@redhat.com>
4221
4222 * target.h (struct target_ops) <to_delete_record>: Reformat
4223 comment.
4224
a432721e
TT
42252014-07-16 Tom Tromey <tromey@redhat.com>
4226
4227 * target-delegates.c: Rebuild.
4228
487d9753
PL
42292014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
4230
4231 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
4232 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
4233 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
4234 (avr_pointer_to_address): Likewise.
4235 (avr_address_class_type_flags): New function.
4236 (avr_address_class_type_flags_to_name): Likewise.
4237 (avr_address_class_name_to_type_flags): Likewise.
4238 (avr_gdbarch_init): Set address_class_type_flags,
4239 address_class_type_flags_to_name and
4240 address_class_name_to_type_flags.
4241
57745c90
PA
42422014-07-15 Pedro Alves <palves@redhat.com>
4243
4244 * linux-nat.c (kill_callback): Save errno and work with saved
4245 copy.
4246
2d40be18
SM
42472014-07-15 Simon Marchi <simon.marchi@ericsson.com>
4248
4249 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
4250
572f6555
EBM
42512014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4252
4253 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
4254 breakpoint support correctly.
4255
cc1c52ad
PA
42562014-07-14 Pedro Alves <palves@redhat.com>
4257
4258 * utils.c (prompt_for_continue): Call target_terminal_ours.
4259
1e973570
PA
42602014-07-14 Pedro Alves <palves@redhat.com>
4261
4262 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
4263 catch_errors. Don't re-enable stdin or notify observers where,
4264 and rethrow error.
4265 (fetch_inferior_event_wrapper): Delete.
4266
93d6eb10
PA
42672014-07-14 Pedro Alves <palves@redhat.com>
4268
4269 PR gdb/17072
4270 * top.c: Include "inf-loop.h".
4271 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
4272 field.
4273 (gdb_readline_wrapper_cleanup): Make the target async again, if it
4274 was async before.
4275 (gdb_readline_wrapper): Store whether the target is async, and
4276 make it sync.
4277
0017922d
PA
42782014-07-14 Pedro Alves <palves@redhat.com>
4279
4280 PR gdb/17072
4281 * top.c (gdb_readline_wrapper_line): Tweak comment.
4282 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
4283 the input handler callback.
4284
94696ad3
PA
42852014-07-14 Pedro Alves <palves@redhat.com>
4286
4287 PR gdb/17072
4288 * main.c: Include event-top.h.
4289 (handle_command_errors): New function.
4290 (catch_command_errors, catch_command_errors_const): Use it.
4291
9d1e69a2
PA
42922014-07-14 Pedro Alves <palves@redhat.com>
4293
4294 * exceptions.c (catch_command_errors, catch_command_errors_const):
4295 Moved to main.c.
4296 * exceptions.h (catch_command_errors_ftype)
4297 (catch_command_errors_const_ftype): Moved to main.c.
4298 (catch_command_errors, catch_command_errors_const): Delete
4299 declarations.
4300 * main.c (catch_command_errors_ftype)
4301 (catch_command_errors_const_ftype): Moved here from exceptions.h.
4302 (catch_command_errors, catch_command_errors_const)): Moved here
4303 from exceptions.c and make static.
4304
feefc97b
PA
43052014-07-14 Pedro Alves <palves@redhat.com>
4306
4307 * exceptions.c (print_any_exception): Delete.
4308 (catch_exceptions_with_msg): Use exception_print instead of
4309 print_any_exception.
4310 (catch_errors): Use exception_fprintf instead of
4311 print_any_exception.
4312 (catch_command_errors, catch_command_errors_const): Use
4313 exception_print instead of print_any_exception.
4314
c933f875
PA
43152014-07-14 Pedro Alves <palves@redhat.com>
4316
4317 * infcall.c (run_inferior_call): Set 'sync_execution' while
4318 running the inferior call.
4319
feb6f816
PA
43202014-07-14 Pedro Alves <palves@redhat.com>
4321
4322 * value.c (value_contents_equal): Delete function.
4323 * value.h (value_contents_equal): Delete declaration.
4324
d98b7a16
TT
43252014-07-14 Tom Tromey <tromey@redhat.com>
4326
4327 PR exp/17106:
4328 * gdbtypes.c (is_dynamic_type_internal): New function, from
4329 is_dynamic_type.
4330 (is_dynamic_type): Rewrite.
4331 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
4332 (resolve_dynamic_struct): Likewise.
4333 (resolve_dynamic_type_internal): New function, from
4334 resolve_dynamic_type.
4335 (resolve_dynamic_type): Rewrite.
4336
548740d6
TT
43372014-07-14 Tom Tromey <tromey@redhat.com>
4338
4339 * target.c (target_require_runnable): Also check record_stratum.
4340 Update comment.
4341
808f7ab1
YQ
43422014-07-11 Yao Qi <yao@codesourcery.com>
4343
4344 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
4345 thumb_instruction_restores_sp return true.
4346
540314bd
YQ
43472014-07-11 Yao Qi <yao@codesourcery.com>
4348
4349 * arm-tdep.c (thumb_instruction_restores_sp): New function.
4350 (thumb_in_function_epilogue_p): Call
4351 thumb_instruction_restores_sp.
4352
1db01f22
YQ
43532014-07-11 Yao Qi <yao@codesourcery.com>
4354
4355 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
4356 'add sp, #imm'.
4357 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
4358
3116063b
GB
43592014-07-11 Gary Benson <gbenson@redhat.com>
4360
4361 * amd64-linux-nat.c (gdbcore.h): Remove include.
4362 (regset.h): Likewise.
4363 (nat/linux-btrace.h): Likewise.
4364 (btrace.h): Likewise.
4365 (gdb_assert.h): Likewise.
4366 (string.h): Likewise.
4367 (sys/uio.h): Likewise.
4368 (sys/debugreg.h): Likewise.
4369 (sys/syscall.h): Likewise.
4370 (sys/procfs.h): Likewise.
4371 (sys/user.h): Likewise.
4372 (asm/ptrace.h): Likewise.
4373 (i386-nat.h): Likewise.
4374 * i386-linux-nat.c (i386-nat.h): Likewise.
4375 (regset.h): Likewise.
4376 (target.h): Likewise.
4377 (linux-nat.h): Likewise.
4378 (nat/linux-btrace.h): Likewise.
4379 (btrace.h): Likewise.
4380 (gdb_assert.h): Likewise.
4381 (string.h): Likewise.
4382 (sys/uio.h): Likewise.
4383 (sys/user.h): Likewise.
4384 (sys/procfs.h): Likewise.
4385 (sys/reg.h): Likewise.
4386 (sys/debugreg.h): Likewise.
4387 (ORIG_EAX): Remove definition.
4388
040baaf6
GB
43892014-07-11 Gary Benson <gbenson@redhat.com>
4390
4391 * i386-linux-nat.h: New file.
4392 * x86-linux-nat.h: Likewise.
4393 * x86-linux-nat.c: Likewise.
4394 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
4395 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
4396 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4397 * amd64-linux-nat.c (x86-linux-nat.h): New include.
4398 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
4399 (PTRACE_SETREGSET): Likewise.
4400 (arch_lwp_info): Now in x86-linux-nat.c.
4401 (have_ptrace_getregset): Now in x86-linux-nat.h.
4402 (x86_linux_dr_get): Now in x86-linux-nat.c.
4403 (x86_linux_dr_set): Likewise.
4404 (x86_linux_dr_get_addr): Likewise.
4405 (x86_linux_dr_get_control): Likewise.
4406 (x86_linux_dr_get_status): Likewise.
4407 (update_debug_registers_callback): Likewise.
4408 (x86_linux_dr_set_control): Likewise.
4409 (x86_linux_dr_set_addr): Likewise.
4410 (x86_linux_prepare_to_resume): Likewise.
4411 (x86_linux_new_thread): Likewise.
4412 (x86_linux_new_fork): Likewise.
4413 (x86_linux_get_thread_area): Likewise.
4414 (super_post_startup_inferior): Likewise.
4415 (x86_linux_child_post_startup_inferior): Likewise.
4416 (AMD64_LINUX_USER64_CS): Likewise.
4417 (AMD64_LINUX_X32_DS): Likewise.
4418 (x86_linux_read_description): Likewise.
4419 (x86_linux_enable_btrace): Likewise.
4420 (x86_linux_disable_btrace): Likewise.
4421 (x86_linux_teardown_btrace): Likewise.
4422 (x86_linux_read_btrace): Likewise.
4423 (x86_linux_create_target): Likewise.
4424 (x86_linux_add_target): Likewise.
4425 * i386-linux-nat.c (x86-linux-nat.h): New include.
4426 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
4427 (PTRACE_SETREGSET): Likewise.
4428 (arch_lwp_info): Now in x86-linux-nat.c.
4429 (have_ptrace_getregset): Now in x86-linux-nat.h.
4430 (x86_linux_dr_get): Now in x86-linux-nat.c.
4431 (x86_linux_dr_set): Likewise.
4432 (x86_linux_dr_get_addr): Likewise.
4433 (x86_linux_dr_get_control): Likewise.
4434 (x86_linux_dr_get_status): Likewise.
4435 (update_debug_registers_callback): Likewise.
4436 (x86_linux_dr_set_control): Likewise.
4437 (x86_linux_dr_set_addr): Likewise.
4438 (x86_linux_prepare_to_resume): Likewise.
4439 (x86_linux_new_thread): Likewise.
4440 (x86_linux_new_fork): Likewise.
4441 (x86_linux_get_thread_area): Likewise.
4442 (super_post_startup_inferior): Likewise.
4443 (x86_linux_child_post_startup_inferior): Likewise.
4444 (AMD64_LINUX_USER64_CS): Likewise.
4445 (AMD64_LINUX_X32_DS): Likewise.
4446 (x86_linux_read_description): Likewise.
4447 (x86_linux_enable_btrace): Likewise.
4448 (x86_linux_disable_btrace): Likewise.
4449 (x86_linux_teardown_btrace): Likewise.
4450 (x86_linux_read_btrace): Likewise.
4451 (x86_linux_create_target): Likewise.
4452 (x86_linux_add_target): Likewise.
4453
1aa7e42c
GB
44542014-07-11 Gary Benson <gbenson@redhat.com>
4455
4456 * amd64-linux-nat.c: Comment and whitespace changes.
4457 * i386-linux-nat.c: Comment and whitespace changes.
4458
c1e246a0
GB
44592014-07-11 Gary Benson <gbenson@redhat.com>
4460
4461 * amd64-linux-nat.c (x86_linux_create_target): New function.
4462 (x86_linux_add_target): Likewise.
4463 (_initialize_amd64_linux_nat): Delegate to the above new functions.
4464 * i386-linux-nat.c (x86_linux_create_target): New function.
4465 (x86_linux_add_target): Likewise.
4466 (_initialize_i386_linux_nat): Delegate to the above new functions.
4467
8c420b8d
GB
44682014-07-11 Gary Benson <gbenson@redhat.com>
4469
4470 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
4471 (ps_get_thread_area): Delegate to the above in 32-bit mode.
4472 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
4473 (ps_get_thread_area): Delegate to the above.
4474
cb1da100
GB
44752014-07-11 Gary Benson <gbenson@redhat.com>
4476
4477 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
4478 x86_linux_read_description. All uses updated. amd64-specific
4479 code conditionalized. Conditionalized i386-specific code added.
4480 Redundant cast removed.
4481 * i386-linux-nat.c (i386_linux_read_description): Renamed to
4482 x86_linux_read_description. All uses updated. i386-specific
4483 code conditionalized. Conditionalized amd64-specific code added.
4484 One sizeof replaced with the actual type it is describing.
4485
2acf3cd0
GB
44862014-07-11 Gary Benson <gbenson@redhat.com>
4487
4488 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
4489 x86_linux_dr_get. All uses updated.
4490 (amd64_linux_dr_set): Renamed to
4491 x86_linux_dr_set. All uses updated.
4492 (amd64_linux_dr_get_addr): Renamed to
4493 x86_linux_dr_get_addr. All uses updated.
4494 (amd64_linux_dr_get_control): Renamed to
4495 x86_linux_dr_get_control. All uses updated.
4496 (amd64_linux_dr_get_status): Renamed to
4497 x86_linux_dr_get_status. All uses updated.
4498 (amd64_linux_dr_set_control): Renamed to
4499 x86_linux_dr_set_control. All uses updated.
4500 (amd64_linux_dr_set_addr): Renamed to
4501 x86_linux_dr_set_addr. All uses updated.
4502 (amd64_linux_prepare_to_resume): Renamed to
4503 x86_linux_prepare_to_resume. All uses updated.
4504 (amd64_linux_new_thread): Renamed to
4505 x86_linux_new_thread. All uses updated.
4506 (amd64_linux_new_fork): Renamed to
4507 x86_linux_new_fork. All uses updated.
4508 (amd64_linux_child_post_startup_inferior): Renamed to
4509 x86_linux_child_post_startup_inferior. All uses updated.
4510 (amd64_linux_enable_btrace): Renamed to
4511 x86_linux_enable_btrace. All uses updated.
4512 (amd64_linux_disable_btrace): Renamed to
4513 x86_linux_disable_btrace. All uses updated.
4514 (amd64_linux_teardown_btrace): Renamed to
4515 x86_linux_teardown_btrace. All uses updated.
4516 (amd64_linux_read_btrace): Renamed to
4517 x86_linux_read_btrace. All uses updated.
4518 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
4519 x86_linux_dr_get. All uses updated.
4520 (i386_linux_dr_set): Renamed to
4521 x86_linux_dr_set. All uses updated.
4522 (i386_linux_dr_get_addr): Renamed to
4523 x86_linux_dr_get_addr. All uses updated.
4524 (i386_linux_dr_get_control): Renamed to
4525 x86_linux_dr_get_control. All uses updated.
4526 (i386_linux_dr_get_status): Renamed to
4527 x86_linux_dr_get_status. All uses updated.
4528 (i386_linux_dr_set_control): Renamed to
4529 x86_linux_dr_set_control. All uses updated.
4530 (i386_linux_dr_set_addr): Renamed to
4531 x86_linux_dr_set_addr. All uses updated.
4532 (i386_linux_prepare_to_resume): Renamed to
4533 x86_linux_prepare_to_resume. All uses updated.
4534 (i386_linux_new_thread): Renamed to
4535 x86_linux_new_thread. All uses updated.
4536 (i386_linux_new_fork): Renamed to
4537 x86_linux_new_fork. All uses updated.
4538 (i386_linux_child_post_startup_inferior): Renamed to
4539 x86_linux_child_post_startup_inferior. All uses updated.
4540 (i386_linux_enable_btrace): Renamed to
4541 x86_linux_enable_btrace. All uses updated.
4542 (i386_linux_disable_btrace): Renamed to
4543 x86_linux_disable_btrace. All uses updated.
4544 (i386_linux_teardown_btrace): Renamed to
4545 x86_linux_teardown_btrace. All uses updated.
4546 (i386_linux_read_btrace): Renamed to
4547 x86_linux_read_btrace. All uses updated.
4548
b9c1d481
AS
45492014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
4550
4551 * remote.c (extended_remote_post_attach): New function.
4552 (init_extended_remote_ops): Install it as to_post_attach method.
4553
7180e04a
PA
45542014-07-09 Pedro Alves <palves@redhat.com>
4555
4556 * infcmd.c (attach_command_post_wait): Don't call
4557 target_terminal_inferior here.
4558 (attach_command): Call it here instead.
4559
9a9a7608
AB
45602014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4561
4562 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
4563 field.
4564 * c-varobj.c (c_is_path_expr_parent): New function, moved core
4565 from varobj.c, with additional checks.
4566 (c_varobj_ops): Fill in is_path_expr_parent field.
4567 (cplus_varobj_ops): Fill in is_path_expr_parent field.
4568 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
4569 field.
4570 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
4571 ops method.
4572 (varobj_default_is_path_expr_parent): New function.
4573 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
4574 (varobj_default_is_path_expr_parent): Declare new function.
4575
1f267ae3
MM
45762014-07-08 Markus Metzger <markus.t.metzger@intel.com>
4577
4578 * infcmd.c (finish_backward): Turn internal error into normal error.
4579
b2ee242b
PA
45802014-07-07 Pedro Alves <palves@redhat.com>
4581
8a869bca 4582 PR gdb/17096
b2ee242b
PA
4583 * remote.c (async_handle_remote_sigint)
4584 (async_handle_remote_sigint_twice): Call
4585 gdb_call_async_signal_handler instead of
4586 mark_async_signal_handler.
4587
38e229b2
TT
45882014-07-07 Tom Tromey <tromey@redhat.com>
4589
4590 * target-delegates.c: Rebuild.
4591 * target.c (target_info_record): Remove.
4592 * record.c (info_record_command): Unconditionally call
4593 to_info_record.
4594 * target.h (struct target_ops) <to_info_record>: Use
4595 TARGET_DEFAULT_IGNORE.
4596 (target_info_record): Remove.
4597
f0f9ff95
TT
45982014-07-07 Tom Tromey <tromey@redhat.com>
4599
4600 * target.h (struct target_ops) <to_get_thread_local_address>: Use
4601 TARGET_DEFAULT_NORETURN.
4602 * target.c (generic_tls_error): New function.
4603 (target_translate_tls_address): Don't search target stack.
4604 * target-delegates.c: Rebuild.
4605 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
4606 stack.
4607 * linux-thread-db.c (thread_db_get_thread_local_address):
4608 Unconditionally call beneath target.
4609
4a5be5ee
MK
46102014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
4611
4612 * cli/cli-logging.c (pop_output_files): Assign targerr to
4613 gdb_stdtargerr.
4614
92c3b204
AB
46152014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
4616
4617 * MAINTAINERS (Write After Approval): Update my email address.
4618
9b11e3a7
GB
46192014-07-02 Gary Benson <gbenson@redhat.com>
4620
4621 * proc-service.c (ps_xfer_memory): Update comment.
4622 (ps_pstop): Remove unused function.
4623 (ps_pcontinue): Likewise.
4624 (ps_lstop): Likewise.
4625 (ps_lcontinue): Likewise.
4626 (ps_lgetxregsize): Likewise.
4627 (ps_lgetxregs): Likewise.
4628 (ps_lsetxregs): Likewise.
4629 (ps_plog): Likewise.
4630 (ps_ptread): Likewise.
4631 (ps_ptwrite): Likewise.
4632
cf363f18
MW
46332014-07-01 Mark Wielaard <mjw@redhat.com>
4634
4635 * dwarf2read.c (add_array_cv_type): New function.
4636 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
4637 (read_tag_volatile_type): Likewise.
4638
82ae6c8d
TT
46392014-07-01 Tom Tromey <tromey@redhat.com>
4640
4641 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
4642 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
4643 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
4644 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
4645 * command.h (cmd_cfunc_ftype): Move earlier.
4646 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
4647 (add_com, add_info): Use cmd_cfunc_ftype.
4648
96142726
TT
46492014-06-30 Tom Tromey <tromey@redhat.com>
4650
4651 * symtab.c (operator_chars): Make parameters and return type
4652 const.
4653 (file_matches): Make "files" const.
4654 (struct search_symbols_data) <files>: Now const.
4655 (search_symbols): Make "regexp" and "files" parameters const.
4656 Update.
4657 (symtab_symbol_info): Remove cast.
4658 (rbreak_command): Update.
4659 * symtab.h (search_symbols): Update.
4660
b67a2c6f
YQ
46612014-06-27 Yao Qi <yao@codesourcery.com>
4662
4663 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
4664 Change parameter type to 'struct thread_info *'. Caller
4665 updated.
4666 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
4667 Update declaration.
4668 * dummy-frame.c (struct dummy_frame_id): New.
4669 (dummy_frame_id_eq): New function.
4670 (struct dummy_frame) <id>: Change its type to 'struct
4671 dummy_frame_id'.
4672 (dummy_frame_push): Add parameter ptid and save it in
4673 dummy_frame_id.
4674 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
4675 inferior_ptid.
4676 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
4677 to inferior_ptid.
4678 (lookup_dummy_frame): Change parameter type to 'struct
4679 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
4680 instead of frame_id_eq.
4681 (dummy_frame_pop): Add parameter ptid. Callers updated.
4682 Update comments. Compose dummy_frame_id and pass it to
4683 lookup_dummy_frame.
4684 (dummy_frame_discard): Add parameter ptid.
4685 (dummy_frame_sniffer): Compose dummy_frame_id and call
4686 dummy_frame_id_eq instead of frame_id_eq.
4687 (fprint_dummy_frames): Print ptid.
4688 * dummy-frame.h: Remove comments.
4689 (dummy_frame_push): Add ptid in declaration.
4690 (dummy_frame_pop, dummy_frame_discard): Likewise.
4691
5b10184c
TT
46922014-06-26 Tom Tromey <tromey@redhat.com>
4693
4694 * cli/cli-cmds.c (error_no_arg): Make "why" const.
4695 * command.h (error_no_arg): Update.
4696
06900326
TT
46972014-06-26 Tom Tromey <tromey@redhat.com>
4698
4699 * cli/cli-setshow.c (do_set_command): Make "arg" const.
4700 (do_show_command): Make "arg" const.
4701 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
4702
c2bcbb1d
TT
47032014-06-26 Tom Tromey <tromey@redhat.com>
4704
4705 * record-full.c (record_full_get_bookmark): Make "args" const.
4706 (record_full_goto_bookmark): Make "raw_bookmark" const.
4707 * record.c (record_goto): New function.
4708 (cmd_record_goto): Use it. Now static.
4709 * record.h (record_goto): Declare.
4710 (cmd_record_goto): Remove declaration.
4711 * target-delegates.c: Rebuild.
4712 * target.h (struct target_ops) <to_get_bookmark,
4713 to_goto_bookmark>: Make parameter const.
4714
9cbe5fff
TT
47152014-06-26 Tom Tromey <tromey@redhat.com>
4716
4717 * defs.h (generic_load): Update.
4718 * m32r-rom.c (m32r_load_gen): Make "filename" const.
4719 * monitor.c (monitor_load): Make "args" const.
4720 * remote-m32r-sdi.c (m32r_load): Make "args" const.
4721 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
4722 const.
4723 (mips_load): Make "file" const.
4724 * remote-sim.c (gdbsim_load): Make "args" const.
4725 * remote.c (remote_load): Make "name" const.
4726 * symfile.c (generic_load): Make "args" const.
4727 * target-delegates.c: Rebuild.
4728 * target.c (target_load): Make "arg" const.
4729 (debug_to_load): Make "args" const.
4730 * target.h (struct target_ops) <to_load>: Make parameter const.
4731 (target_load): Update.
4732
34a68019
TT
47332014-06-26 Tom Tromey <tromey@redhat.com>
4734
4735 PR symtab/16902:
4736 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
4737 (dwarf2_physname, read_partial_die)
4738 (guess_partial_die_structure_name, fixup_partial_die)
4739 (guess_full_die_structure_name, anonymous_struct_prefix)
4740 (dwarf2_name): Use per-BFD obstack.
4741
efc889c1
YQ
47422014-06-26 Yao Qi <yao@codesourcery.com>
4743
4744 * dummy-frame.c (dummy_frame_sniffer): Move local variables
4745 dummyframe and this_id into inner block below.
4746
4395285e
YQ
47472014-06-26 Yao Qi <yao@codesourcery.com>
4748
4749 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
4750 with "signal_pass[0]" in the initialization of signal_pass.
4751
aef92902
MM
47522014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4753
4754 * record-btrace.c (record_btrace_generating_corefile)
4755 (record_btrace_prepare_to_generate_core)
4756 (record_btrace_done_generating_core): New.
4757 (record_btrace_xfer_partial, record_btrace_fetch_registers)
4758 (record_btrace_store_registers, record_btrace_prepare_to_store):
4759 Forward request when generating a core file.
4760 (record_btrace_open): Set record_btrace_generating_corefile to zero.
4761 (init_record_btrace_ops): Set to_prepare_to_generate_core and
4762 to_done_generating_core.
4763
5fff78c4
MM
47642014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4765
4766 * target.h (target_ops) <to_prepare_to_generate_core>
4767 <to_done_generating_core>: New.
4768 (target_prepare_to_generate_core, target_done_generating_core): New.
4769 * target.c (target_prepare_to_generate_core)
4770 (target_done_generating_core): New.
4771 * target-delegates.c: Regenerate.
4772 * gcore.c: (write_gcore_file): Rename to ...
4773 (write_gcore_file_1): ...this.
4774 (write_gcore_file): Call target_prepare_to_generate_core
4775 and target_done_generating_core.
4776
1d1f1ccb
MM
47772014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4778
4779 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
4780 * gcore.c (write_gcore_file): Free memory returned from
4781 make_corefile_notes.
4782 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
4783 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
4784
3343ef86
YQ
47852014-06-24 Yao Qi <yao@codesourcery.com>
4786
4787 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
4788 (arm_linux_init_abi): Set skip_trampoline_code with
4789 gdbarch_skip_trampoline_code instead of
4790 find_solib_trampoline_target.
4791
18d18ac8
YQ
47922014-06-24 Yao Qi <yao@codesourcery.com>
4793
4794 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
4795 arm_skip_bx_reg returns non-zero.
4796
80d8d390
YQ
47972014-06-24 Yao Qi <yao@codesourcery.com>
4798
4799 * arm-tdep.c (arm_skip_bx_reg): New function.
4800 (arm_skip_stub): Call arm_skip_bx_reg.
4801
6a18a01c
DB
48022014-06-23 Don Breazeal <donb@codesourcery.com>
4803
4804 * MAINTAINERS: Add myself as write-after-approval maintainer.
4805
8e9db26e
PA
48062014-06-23 Pedro Alves <palves@redhat.com>
4807
4808 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
4809 DR_CONTROL before setting DR0..DR3.
4810 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
4811 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
4812 bits of DR_CONTROL related to the debug register slot being
4813 disabled. If all slots are vacant, clear local slowdown as well,
4814 and assert DR_CONTROL is 0.
4815
70afc5b7
SC
48162014-06-23 Siva Chandra Reddy <sivachandra@google.com>
4817
4818 * python/lib/gdb/command/xmethods.py
4819 (get_method_matchers_in_loci): Lookup xmethod matchers in the
4820 current progspace only if the string "progspace" matches LOCUS_RE.
4821
840ed64d
JK
48222014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4823
4824 Fix --with-system-readline with readline-6.3 patch 5.
4825 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
4826 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
4827 types.
4828
26f2dc30
TT
48292014-06-20 Tom Tromey <tromey@redhat.com>
4830
4831 * dwarf2read.c (dw2_get_real_path): Use correct type in
4832 OBSTACK_CALLOC.
4833 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
4834
125f8a3d
GB
48352014-06-20 Gary Benson <gbenson@redhat.com>
4836
4837 * common/gdb_thread_db.h: Moved to nat. All includes updated.
4838 * common/glibc_thread_db.h: Likewise.
4839 * common/i386-cpuid.h: Likewise.
4840 * common/i386-gcc-cpuid.h: Likewise.
4841 * common/linux-btrace.h: Likewise.
4842 * common/linux-osdata.h: Likewise.
4843 * common/linux-procfs.h: Likewise.
4844 * common/linux-ptrace.h: Likewise.
4845 * common/mips-linux-watch.h: Likewise.
4846 * common/linux-btrace.c: Moved to nat.
4847 * common/linux-osdata.c: Likewise.
4848 * common/linux-procfs.c: Likewise.
4849 * common/linux-ptrace.c: Likewise.
4850 * common/mips-linux-watch.c: Likewise.
4851 * nat/gdb_thread_db.h: Moved from common.
4852 * nat/glibc_thread_db.h: Likewise.
4853 * nat/i386-cpuid.h: Likewise.
4854 * nat/i386-gcc-cpuid.h: Likewise.
4855 * nat/linux-btrace.c: Likewise.
4856 * nat/linux-btrace.h: Likewise.
4857 * nat/linux-osdata.c: Likewise.
4858 * nat/linux-osdata.h: Likewise.
4859 * nat/linux-procfs.c: Likewise.
4860 * nat/linux-procfs.h: Likewise.
4861 * nat/linux-ptrace.c: Likewise.
4862 * nat/linux-ptrace.h: Likewise.
4863 * nat/mips-linux-watch.c: Likewise.
4864 * nat/mips-linux-watch.h: Likewise.
4865 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
4866 (object file files): Reordered.
4867 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
4868 of glibc_thread_db.h.
4869
42995dbd
GB
48702014-06-20 Gary Benson <gbenson@redhat.com>
4871
4872 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
4873 (i386_dr_low_type): Moved to nat/i386-dregs.h.
4874 (i386_dr_low): Likewise.
4875 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
4876 (i386_dr_low_set_addr): Likewise.
4877 (i386_dr_low_get_addr): Likewise.
4878 (i386_dr_low_can_set_control): Likewise.
4879 (i386_dr_low_set_control): Likewise.
4880 (i386_dr_low_get_control): Likewise.
4881 (i386_dr_low_get_status): Likewise.
4882 (i386_get_debug_register_length): Likewise.
4883 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
4884 (i386_dr_low): Likewise.
4885 * nat/i386-dregs.c (i386-low.h): Remove include.
4886 (i386-nat.h): Likewise.
4887 (nat/i386-dregs.h): New include.
4888 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
4889 (i386_dr_low_set_addr): Likewise.
4890 (i386_dr_low_get_addr): Likewise.
4891 (i386_dr_low_can_set_control): Likewise.
4892 (i386_dr_low_set_control): Likewise.
4893 (i386_dr_low_get_control): Likewise.
4894 (i386_dr_low_get_status): Likewise.
4895 (i386_get_debug_register_length): Likewise.
4896 (debug_hw_points): Likewise.
4897
3ed9baed
IB
48982014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
4899
4900 * Makefile.in (SFILES): Add d-exp.y.
4901 (YYFILES): Add d-exp.c.
4902 (YYOBJ): Add d-exp.o.
4903 (local-maintainer-clean): Delete d-exp.c.
4904 * d-exp.y: New file.
4905 * d-lang.h (d_parse): New declaration.
4906 (d_error): New declaration.
4907 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
4908 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
4909 PREC_ORDER operators.
4910 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
4911
78c164b0
YQ
49122014-06-19 Yao Qi <yao@codesourcery.com>
4913
4914 * gdbthread.h (any_running): Remove the declaration.
4915 * thread.c (any_running): Remove.
4916
f6e29b6e
YQ
49172014-06-19 Yao Qi <yao@codesourcery.com>
4918
4919 * gdbthread.h (struct thread_info) <state>: Change its type to
4920 'enum thread_state'. Update comments.
4921
034f788c
PA
49222014-06-19 Pedro Alves <palves@redhat.com>
4923
4924 * gdbthread.h (ALL_THREADS): Delete.
4925 (ALL_NON_EXITED_THREADS): New macro.
4926 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
4927 instead of ALL_THREADS.
4928 * infrun.c (find_thread_needs_step_over)
4929 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
4930 instead of ALL_THREADS.
4931 * record-btrace.c (record_btrace_open)
4932 (record_btrace_stop_recording, record_btrace_close)
4933 (record_btrace_is_replaying, record_btrace_resume)
4934 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
4935 * remote.c (append_pending_thread_resumptions): Likewise.
4936 * thread.c (thread_apply_all_command): Likewise.
4937
46e33252
GB
49382014-06-19 Gary Benson <gbenson@redhat.com>
4939
4940 * i386-nat.c (i386_stopped_by_watchpoint):
4941 Use i386_dr_stopped_by_watchpoint.
4942 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
4943 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
4944
3a8ee006
GB
49452014-06-19 Gary Benson <gbenson@redhat.com>
4946
4947 * nat/i386-dregs.c: New file.
4948 * Makefile.in (i386-dregs.o): New rule.
4949 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
4950 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
4951 * config/i386/darwin.mh (NATDEPFILES): Likewise.
4952 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
4953 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
4954 * config/i386/go32.mh (NATDEPFILES): Likewise.
4955 * config/i386/linux.mh (NATDEPFILES): Likewise.
4956 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4957 * config/i386/mingw.mh (NATDEPFILES): Likewise.
4958 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
4959 * i386-nat.h (debug_hw_points): New declaration.
4960 * i386-nat.c (breakpoint.h): Remove include.
4961 (command.h): Likewise.
4962 (target.h): Likewise.
4963 (gdb_assert.h): Likewise.
4964 (debug_hw_points): Made nonstatic.
4965 (debug_printf): Now in i386-dregs.c.
4966 (TARGET_HAS_DR_LEN_8): Likewise.
4967 (DR_CONTROL_SHIFT): Likewise.
4968 (DR_CONTROL_SIZE): Likewise.
4969 (DR_RW_EXECUTE): Likewise.
4970 (DR_RW_WRITE): Likewise.
4971 (DR_RW_READ): Likewise.
4972 (DR_RW_IORW): Likewise.
4973 (DR_LEN_1): Likewise.
4974 (DR_LEN_2): Likewise.
4975 (DR_LEN_4): Likewise.
4976 (DR_LEN_8): Likewise.
4977 (DR_LOCAL_ENABLE_SHIFT): Likewise.
4978 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
4979 (DR_ENABLE_SIZE): Likewise.
4980 (DR_LOCAL_SLOWDOWN): Likewise.
4981 (DR_GLOBAL_SLOWDOWN): Likewise.
4982 (DR_CONTROL_RESERVED): Likewise.
4983 (I386_DR_CONTROL_MASK): Likewise.
4984 (I386_DR_VACANT): Likewise.
4985 (I386_DR_LOCAL_ENABLE): Likewise.
4986 (I386_DR_GLOBAL_ENABLE): Likewise.
4987 (I386_DR_DISABLE): Likewise.
4988 (I386_DR_SET_RW_LEN): Likewise.
4989 (I386_DR_GET_RW_LEN): Likewise.
4990 (I386_DR_WATCH_HIT): Likewise.
4991 (i386_wp_op_t): Likewise.
4992 (i386_show_dr): Likewise.
4993 (i386_length_and_rw_bits): Likewise.
4994 (i386_insert_aligned_watchpoint): Likewise.
4995 (i386_remove_aligned_watchpoint): Likewise.
4996 (i386_handle_nonaligned_watchpoint): Likewise.
4997 (i386_update_inferior_debug_regs): Likewise.
4998 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
4999 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
5000 (i386_region_ok_for_watchpoint):
5001 Use i386_dr_region_ok_for_watchpoint.
5002 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
5003
322a8e06
GB
50042014-06-19 Gary Benson <gbenson@redhat.com>
5005
5006 * i386-nat.c (i386_insert_hw_breakpoint): Use
5007 i386_insert_watchpoint.
5008 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
5009
8f26655c
GB
50102014-06-19 Gary Benson <gbenson@redhat.com>
5011
5012 * i386-nat.c (i386_dr_show): Renamed to
5013 i386_show_dr and made static. All uses updated.
5014 (i386_dr_length_and_rw_bits): Renamed to
5015 i386_length_and_rw_bits and made static.
5016 All uses updated.
5017 (i386_dr_insert_aligned_watchpoint): Renamed to
5018 i386_insert_aligned_watchpoint and made static.
5019 All uses updated.
5020 (i386_dr_remove_aligned_watchpoint): Renamed to
5021 i386_remove_aligned_watchpoint and made static.
5022 All uses updated.
5023 (i386_dr_update_inferior_debug_regs): Renamed to
5024 i386_update_inferior_debug_regs and made static.
5025 All uses updated.
5026 * nat/i386-dregs.h (i386_dr_show): Removed.
5027 (i386_dr_length_and_rw_bits): Likewise.
5028 (i386_dr_insert_aligned_watchpoint): Likewise.
5029 (i386_dr_remove_aligned_watchpoint): Likewise.
5030 (i386_dr_update_inferior_debug_regs): Likewise.
5031
992c7d70
GB
50322014-06-19 Gary Benson <gbenson@redhat.com>
5033
5034 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
5035 * configure: Regenerate.
5036 * config.in: Likewise.
5037 * main.c (signal.h): New include.
5038 (setup_alternate_signal_stack): New function.
5039 (captured_main): Call the above.
5040 * cp-support.c (signal.h): New include.
5041 (catch_demangler_crashes): New flag.
5042 (SIGJMP_BUF): New define.
5043 (SIGSETJMP): Likewise.
5044 (SIGLONGJMP): Likewise.
5045 (gdb_demangle_jmp_buf): New static global.
5046 (gdb_demangle_attempt_core_dump): Likewise.
5047 (gdb_demangle_signal_handler): New function.
5048 (gdb_demangle): If catch_demangler_crashes is set, install the
5049 above signal handler before calling bfd_demangle, and restore
5050 the original signal handler afterwards. Display the offending
5051 symbol and call demangler_warning the first time a segmentation
5052 fault is caught.
5053 (_initialize_cp_support): New maint set/show command.
5054
eae7090b
GB
50552014-06-19 Gary Benson <gbenson@redhat.com>
5056
5057 * utils.h (resource_limit_kind): New enum.
5058 (can_dump_core): New declaration.
5059 (warn_cant_dump_core): Likewise.
5060 (dump_core): Likewise.
5061 * utils.c (dump_core): Made nonstatic. Added new
5062 parameter "limit_kind".
5063 (can_dump_core): Made nonstatic. Moved printing code to...
5064 (warn_cant_dump_core): New function.
5065 (can_dump_core_warn): Likewise.
5066 (internal_vproblem): Replace calls to can_dump_core with
5067 calls to can_dump_core_warn. Supply new argument to each.
5068
57fcfb1b
GB
50692014-06-19 Gary Benson <gbenson@redhat.com>
5070
5071 * utils.h (demangler_vwarning): New declaration.
5072 (demangler_warning): Likewise.
5073 * utils.c (struct internal_problem)
5074 <user_settable_should_quit>: New field.
5075 <user_settable_should_dump_core>: Likewise
5076 (internal_error_problem): Add values for above new fields.
5077 (internal_warning_problem): Likewise.
5078 (demangler_warning_problem): New static global.
5079 (demangler_vwarning): New function.
5080 (demangler_warning): Likewise.
5081 (add_internal_problem_command): Selectively add commands.
5082 (_initialize_utils): New internal problem command.
5083 * maint.c (maintenance_demangler_warning): New function.
5084 (_initialize_maint_cmds): New command.
5085
17a40b44
TT
50862014-06-18 Tom Tromey <tromey@redhat.com>
5087
5088 * f-valprint.c (info_common_command_for_block): Update.
5089 * symtab.h (struct general_symbol_info) <common_block>: Now
5090 const.
5091
346d1dfe
TT
50922014-06-18 Tom Tromey <tromey@redhat.com>
5093
5094 * symtab.h (struct symtab) <blockvector>: Now const.
5095 * ada-lang.c (ada_add_global_exceptions): Update.
5096 * buildsym.c (augment_type_symtab): Update.
5097 * dwarf2read.c (dw2_lookup_symbol): Update.
5098 * jit.c (finalize_symtab): Update.
5099 * jv-lang.c (add_class_symtab_symbol): Update.
5100 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
5101 Update.
5102 * objfiles.c (objfile_relocate1): Update.
5103 * psymtab.c (lookup_symbol_aux_psymtabs)
5104 (maintenance_check_psymtabs): Update.
5105 * python/py-symtab.c (stpy_global_block, stpy_static_block):
5106 Update.
5107 * spu-tdep.c (spu_catch_start): Update.
5108 * symmisc.c (dump_symtab_1): Update.
5109 * symtab.c (lookup_global_symbol_from_objfile)
5110 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
5111 (basic_lookup_transparent_type_quick)
5112 (basic_lookup_transparent_type, find_pc_sect_symtab)
5113 (find_pc_sect_line, search_symbols): Update.
5114 * block.c (find_block_in_blockvector): Make "bl" const.
5115 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
5116 const.
5117 (blockvector_contains_pc): Make "bv" const.
5118 (block_for_pc_sect): Update.
5119 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
5120 (blockvector_contains_pc): Update.
5121 * breakpoint.c (resolve_sal_pc): Update.
5122 * inline-frame.c (block_starting_point_at): Update.
5123
1834676b
TT
51242014-06-18 Tom Tromey <tromey@redhat.com>
5125
5126 * completer.c (complete_line): Make "line_buffer" const.
5127 * completer.h (complete_line): Update.
5128
ac1a991b
TT
51292014-06-18 Tom Tromey <tromey@redhat.com>
5130
5131 * symtab.c (add_macro_name): Remove unneeded cast.
5132
5bc98e52
TT
51332014-06-18 Tom Tromey <tromey@redhat.com>
5134
5135 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
5136 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
5137
8236def8
TT
51382014-06-18 Tom Tromey <tromey@redhat.com>
5139
5140 * probe.c (info_probes_for_ops): Make "arg" const.
5141 * probe.h (info_probes_for_ops): Update.
5142
3977b71f
TT
51432014-06-18 Tom Tromey <tromey@redhat.com>
5144
5145 * varobj.c (varobj_create): Update.
5146 * valops.c (value_of_this): Update.
5147 * tracepoint.c (add_local_symbols, scope_info): Update.
5148 * symtab.h (struct general_symbol_info) <block>: Now const.
5149 * symtab.c (skip_prologue_sal)
5150 (default_make_symbol_completion_list_break_on)
5151 (skip_prologue_using_sal): Update.
5152 * stack.h (iterate_over_block_locals)
5153 (iterate_over_block_local_vars): Update.
5154 * stack.c (print_frame_args): Update.
5155 (iterate_over_block_locals, iterate_over_block_local_vars): Make
5156 parameter const.
5157 (get_selected_block): Make return type const.
5158 * python/py-frame.c (frapy_block): Update.
5159 * python/py-block.c (gdbpy_block_for_pc): Update.
5160 * p-exp.y (%union) <bval>: Now const.
5161 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
5162 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
5163 * m2-exp.y (%union) <bval>: Now const.
5164 * linespec.c (get_current_search_block): Make return type const.
5165 (create_sals_line_offset, find_label_symbols): Update.
5166 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
5167 Update.
5168 (block_starting_point_at): Make "block" const.
5169 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
5170 (check_exception_resume): Update.
5171 * guile/scm-frame.c (gdbscm_frame_block): Update.
5172 * guile/scm-block.c (gdbscm_lookup_block): Update.
5173 * frame.h (get_frame_block): Update.
5174 (get_selected_block): Make return type const.
5175 * frame.c (frame_id_inner): Update.
5176 * f-valprint.c (info_common_command_for_block)
5177 (info_common_command): Update.
5178 * dwarf2loc.c (dwarf2_find_location_expression)
5179 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
5180 (locexpr_describe_location_piece): Update.
5181 * c-exp.y (%union) <bval>: Now const.
5182 * breakpoint.c (resolve_sal_pc): Update.
5183 * blockframe.c (get_frame_block):Make return type const.
5184 (get_pc_function_start, get_frame_function, find_pc_sect_function)
5185 (block_innermost_frame): Update.
5186 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
5187 (block_for_pc, block_for_pc_sect): Update.
5188 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
5189 'pblock' const.
5190 (block_for_pc_sect, block_for_pc): Make return type const.
5191 * ax-gdb.c (gen_expr): Update.
5192 * alpha-mdebug-tdep.c (find_proc_desc): Update.
5193 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
5194 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
5195 (ada_read_var_value): Update.
5196 * ada-exp.y (struct name_info) <block>: Now const.
5197 (%union): Likewise.
5198 (block_lookup): Constify.
5199
b9228891
GB
52002014-06-18 Gary Benson <gbenson@redhat.com>
5201
5202 * nat/i386-dregs.h: New file.
5203 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
5204 * i386-nat.h (i386-dregs.h): New include.
5205 (DR_FIRSTADDR): Now in i386-dregs.h.
5206 (DR_LASTADDR): Likewise.
5207 (DR_NADDR): Likewise.
5208 (DR_STATUS): Likewise.
5209 (DR_CONTROL): Likewise.
5210 (i386_debug_reg_state): Likewise.
5211 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
5212
a1aa2221
LM
52132014-06-18 Don Breazeal <donb@codesourcery.com>
5214
5215 * breakpoint.c (set_longjmp_breakpoint): Call
5216 momentary_breakpoint_from_master with additional argument.
5217 (set_longjmp_breakpoint_for_call_dummy): Call
5218 momentary_breakpoint_from_master with additional argument.
5219 (set_std_terminate_breakpoint): Call
5220 momentary_breakpoint_from_master with additional argument.
5221 (momentary_breakpoint_from_master): Add argument to function
5222 definition and use it to initialize structure member flag.
74228e77 5223 (clone_momentary_breakpoint): Call
a1aa2221
LM
5224 momentary_breakpoint_from_master with additional argument.
5225 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
5226 member flags set in momentary_breakpoint_from_master.
5227
4be83cc2
GB
52282014-06-18 Gary Benson <gbenson@redhat.com>
5229
5230 * i386-nat.c (i386_show_dr): Renamed to
5231 i386_dr_show and made nonstatic. All uses updated.
5232 (i386_length_and_rw_bits): Renamed to
5233 i386_dr_length_and_rw_bits and made nonstatic.
5234 All uses updated.
5235 (i386_insert_aligned_watchpoint): Renamed to
5236 i386_dr_insert_aligned_watchpoint and made nonstatic.
5237 All uses updated.
5238 (i386_remove_aligned_watchpoint): Renamed to
5239 i386_dr_remove_aligned_watchpoint and made nonstatic.
5240 All uses updated.
5241 (i386_update_inferior_debug_regs): Renamed to
5242 i386_dr_update_inferior_debug_regs and made nonstatic.
5243 All uses updated.
5244
131aa0d4
GB
52452014-06-18 Gary Benson <gbenson@redhat.com>
5246
5247 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
5248 (i386_dr_low_can_set_control): Likewise.
5249 (i386_dr_low_set_addr): Likewise.
5250 (i386_dr_low_set_control): Likewise.
5251 (i386_dr_low_get_addr): Likewise.
5252 (i386_dr_low_get_status): Likewise.
5253 (i386_dr_low_get_control): Likewise.
5254 (i386_insert_aligned_watchpoint): Use new macros.
5255 (i386_update_inferior_debug_regs): Likewise.
5256 (i386_stopped_data_address): Likewise.
5257
d9305f7f
GB
52582014-06-18 Gary Benson <gbenson@redhat.com>
5259
5260 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
5261 New parameter. All uses updated.
5262
ea008da4
GB
52632014-06-18 Gary Benson <gbenson@redhat.com>
5264
5265 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
5266 All uses updated.
5267
1b6d4134
GB
52682014-06-18 Gary Benson <gbenson@redhat.com>
5269
5270 * i386-nat.c (debug_printf): New macro.
5271 (i386_get_debug_register_length): Likewise.
5272 (TARGET_HAS_DR_LEN_8): Use above macro.
5273 (i386_show_dr): Use debug_printf instead of puts_unfiltered
5274 and printf_unfiltered. Use phex to format values.
5275
9b4550ef
GB
52762014-06-18 Gary Benson <gbenson@redhat.com>
5277
5278 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
5279 Make const.
5280
6e62758f
GB
52812014-06-18 Gary Benson <gbenson@redhat.com>
5282
5283 * i386-nat.c: Comment changes.
5284
51c79e94
GB
52852014-06-18 Gary Benson <gbenson@redhat.com>
5286
5287 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
5288
3e11889a
GB
52892014-06-18 Gary Benson <gbenson@redhat.com>
5290
5291 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
5292 (i386_insert_aligned_watchpoint): Likewise.
5293 (i386_remove_aligned_watchpoint): Likewise.
5294 (i386_handle_nonaligned_watchpoint): Likewise.
5295
fc6e2f03
GB
52962014-06-18 Gary Benson <gbenson@redhat.com>
5297
5298 * i386-nat.c: Whitespace changes.
5299
2afe7d50
SB
53002014-06-17 Samuel Bronson <naesten@gmail.com>
5301
5302 * MAINTAINERS: Update Roland McGrath's email address.
5303 Thanks to Sergio Durigan Junior for pointing out that he left
6a83deea 5304 Red Hat a while ago, and giving me a current address.
2afe7d50 5305
3bca49ee
TT
53062014-06-17 Tom Tromey <tromey@redhat.com>
5307
5308 * utils.h (savestring): Remove declaration.
5309
6e366df1
TT
53102014-06-17 Tom Tromey <tromey@redhat.com>
5311
5312 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
5313
6be47f0c
KS
53142014-06-16 Keith Seitz <keiths@redhat.com>
5315
5316 PR mi/15863
5317 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
5318 to update the varobj if inferior_ptid is null_ptid.
5319
7bc112c1
TT
53202014-06-16 Tom Tromey <tromey@redhat.com>
5321
5322 * target.h (struct target_ops) <to_info_proc>: Make parameter
5323 const.
5324 (target_info_proc): Update.
5325 * target.c (target_info_proc): Make "args" const.
5326 * procfs.c (procfs_info_proc): Update.
5327 * linux-tdep.c (linux_info_proc): Update.
5328 (linux_core_info_proc_mappings): Make "args" const.
5329 (linux_core_info_proc): Update.
5330 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
5331 * gdbarch.c: Rebuild.
5332 * gdbarch.h: Rebuild.
5333 * corelow.c (core_info_proc): Update.
5334
fee354ee
TT
53352014-06-16 Tom Tromey <tromey@redhat.com>
5336
5337 * target.h (struct target_ops) <to_disconnect>: Make parameter
5338 const.
5339 (target_disconnect): Update.
5340 * target.c (target_disconnect): Make "args" const.
5341 * target-delegates.c: Rebuild.
5342 * remote.c (remote_disconnect): Update.
5343 * record.h (record_disconnect): Update.
5344 * record.c (record_disconnect): Update.
5345 * inf-child.c (inf_child_disconnect): Update.
5346
a30bf1f1
TT
53472014-06-16 Tom Tromey <tromey@redhat.com>
5348
5349 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
5350 * target.c (debug_to_rcmd, default_rcmd): Update.
5351 * target-delegates.c: Rebuild.
5352 * remote.c (remote_rcmd): Update.
5353 * monitor.c (monitor_rcmd): Update.
5354
d03de421
PA
53552014-06-16 Pedro Alves <palves@redhat.com>
5356
5357 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
5358 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
5359 have OBJF_SHARED set.
5360 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
5361 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
5362 instead of OBJF_USERLOADED.
5363 * objfiles.h (OBJF_SHARED): Update comment.
5364 (userloaded_objfile_contains_address_p): Rename to ...
5365 (shared_objfile_contains_address_p): ... this, and update
5366 comments.
5367 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
5368 new objfile.
5369 (remove_symbol_file_command): Skip objfiles that don't have
5370 OBJF_SHARED set.
5371
99f4262f
TT
53722014-06-16 Tom Tromey <tromey@redhat.com>
5373
5374 * minsyms.h (prim_record_minimal_symbol)
5375 (prim_record_minimal_symbol_and_info): Update comments.
5376
97d66cc6
EZ
53772014-06-14 Eli Zaretskii <eliz@gnu.org>
5378
5379 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
5380 or --without-guile, according to how GDB was built.
5381
635c7e8a
TT
53822014-06-13 Tom Tromey <tromey@redhat.com>
5383
5384 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
5385 to help_list.
5386 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
5387 to help_list.
5388 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
5389 help_list.
5390 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
5391 help_list.Pass all_commands, not -1, to help_list.
5392 * cli/cli-dump.c (dump_command, append_command)
5393 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
5394 (binary_dump_command, binary_append_command): Pass all_commands,
5395 not -1, to help_list.
5396 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
5397 -1, to help_list.
5398 * valprint.c (set_print, set_print_raw): Pass all_commands, not
5399 -1, to help_list.
5400 * typeprint.c (set_print_type): Pass all_commands, not -1, to
5401 help_list.
5402 * top.c (set_history): Pass all_commands, not -1, to help_list.
5403 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
5404 all_commands, not -1, to help_list.
5405 * symfile.c (overlay_command): Pass all_commands, not -1, to
5406 help_list.
5407 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
5408 help_list.
5409 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
5410 help_list.
5411 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
5412 -1, to help_list.
5413 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
5414 not -1, to help_list.
5415 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
5416 not -1, to help_list.
5417 * maint.c (maintenance_command, maintenance_info_command)
5418 (maintenance_print_command, maintenance_set_cmd): Pass
5419 all_commands, not -1, to help_list.
5420 * macrocmd.c (macro_command): Pass all_commands, not -1, to
5421 help_list.
5422 * language.c (set_check): Pass all_commands, not -1, to help_list.
5423 * infcmd.c (unset_command): Pass all_commands, not -1, to
5424 help_list.
5425 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
5426 help_list.
5427 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
5428 help_list.
5429 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
5430 help_list.
5431 * breakpoint.c (save_command): Pass all_commands, not -1, to
5432 help_list.
5433 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
5434 all_commands, not -1, to help_list.
5435
b94ade42
PL
54362014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
5437
5438 * regcache.c (struct register_to_invalidate): New structure.
5439 (do_register_invalidate, make_cleanup_regcache_invalidate): New
5440 functions.
5441 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
5442
31f628ae
YQ
54432014-06-12 Yao Qi <yao@codesourcery.com>
5444
5445 * varobj.c (varobj_get_num_children): Call
5446 varobj_is_dynamic_p.
5447 (varobj_list_children): Likewise.
5448 (varobj_update): Likewise. Update comments.
5449
cde5ef40
YQ
54502014-06-12 Yao Qi <yao@codesourcery.com>
5451
5452 * varobj.c (varobj_pretty_printed_p): Rename to ...
5453 (varobj_is_dynamic_p): ... this. New function.
5454 * varobj.h (varobj_pretty_printed_p): Remove declaration.
5455 (varobj_is_dynamic_p): Declare.
5456 * mi/mi-cmd-var.c (print_varobj): All callers updated.
5457 (mi_print_value_p, varobj_update_one): Likewise.
5458
576ea091
YQ
54592014-06-12 Pedro Alves <pedro@codesourcery.com>
5460 Yao Qi <yao@codesourcery.com>
5461
5462 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
5463 (varobj_get_iterator): Wrap up code for pretty-printer by
5464 "#if HAVE_PYTHON" and "#endif".
5465 (update_dynamic_varobj_children): Likewise.
5466
827f100c
YQ
54672014-06-12 Pedro Alves <pedro@codesourcery.com>
5468 Yao Qi <yao@codesourcery.com>
5469
5470 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
5471 gdb_python_initialized is false. Move some code from varobj.c.
5472 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
5473 * varobj.c: Move "varobj-iter.h" inclusion earlier.
5474 (struct varobj_item): Moved to varobj-iter.h".
5475 (varobj_clear_saved_item): New function.
5476 (update_dynamic_varobj_children): Move python-related code to
5477 py-varobj.c.
5478 (free_variable): Call varobj_clear_saved_item and
5479 varobj_iter_delete.
5480
e5250216
YQ
54812014-06-12 Pedro Alves <pedro@codesourcery.com>
5482 Yao Qi <yao@codesourcery.com>
5483
5484 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
5485 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
5486 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
5487 (py-varobj.o): New rule.
5488 * python/py-varobj.c: New file.
5489 * python/python-internal.h (py_varobj_get_iterator): Declare.
5490 * varobj-iter.h: New file.
5491 * varobj.c: Include "varobj-iter.h"
5492 (struct varobj) <child_iter>: Change its type from "PyObject *"
5493 to "struct varobj_iter *".
5494 <saved_item>: Likewise.
5495 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
5496 [HAVE_PYTHON] (varobj_get_iterator): New function.
5497 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
5498 python-specific code to python/py-varobj.c.
5499 (install_visualizer): Call varobj_iter_delete instead of
5500 Py_XDECREF.
5501 * varobj.h (varobj_ensure_python_env): Declare.
5502
5a2e0d6e
YQ
55032014-06-12 Yao Qi <yao@codesourcery.com>
5504
5505 * varobj.c (struct varobj_item): New structure.
5506 (create_child_with_value): Update declaration.
5507 (varobj_add_child): Replace arguments 'name' and 'value' with
5508 'item'. All callers updated.
5509 (install_dynamic_child): Likewise.
5510 (update_dynamic_varobj_children): Likewise.
5511 (varobj_add_child): Likewise.
5512 (create_child_with_value): Likewise.
5513
919b9a93
JB
55142014-06-11 Joel Brobecker <brobecker@adacore.com>
5515
5516 * NEWS: Create a new section for the next release branch.
5517 Rename the section of the current branch, now that it has
5518 been cut.
5519
71a55bdf
JB
55202014-06-11 Joel Brobecker <brobecker@adacore.com>
5521
5522 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
5523 * version.in: Bump version to 7.8.50.DATE-cvs.
5524
364fe1f7
PA
55252014-06-11 Pedro Alves <palves@redhat.com>
5526
5527 PR remote/17028
5528 * ser-mingw.c (net_windows_socket_check_pending): New function.
5529 (net_windows_select_thread): Ignore spurious wakeups. Use
5530 net_windows_socket_check_pending.
5531 (net_windows_wait_handle): Check for pending events with
5532 ioctlsocket, through net_windows_socket_check_pending, instead of
5533 checking the socket's event.
5534
5a6c7709
SC
55352014-06-10 Siva Chandra Reddy <sivachandra@google.com>
5536
5537 * python/python-internal.h (gdb_PyObject_GetAttrString)
5538 (gdb_PyObject_HasAttrString): New inline function definitions.
5539 * py-value.c (get_field_flag): Remove the now unnecessary cast to
5540 char * of the second argument to PyObject_GetAttrString.
74228e77 5541
0e58ee40
JB
55422014-06-10 Joel Brobecker <brobecker@adacore.com>
5543
5544 * serial.c (serial_write): Fix index of character to be printed
5545 in call to serial_logchar when serial debug traces are enabled.
5546
d190df30
JB
55472014-06-10 Joel Brobecker <brobecker@adacore.com>
5548
5549 * gdbtypes (resolve_dynamic_range): Add function description.
5550
b4b01d36
PA
55512014-06-09 Pedro Alves <palves@redhat.com>
5552
5553 * linux-nat.c (linux_child_follow_fork): Initialize status with
5554 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
5555 inner block. Only pass the signal to PTRACE_DETACH if in pass
5556 state.
5557
3657956b
GB
55582014-06-09 Gary Benson <gbenson@redhat.com>
5559
5560 * common/signals.c (gdb_signal_from_host): Reorder to separate
5561 the always-available ANSI-standard signals from the signals that
5562 require checking.
5563 (do_gdb_signal_to_host): Likewise.
5564 * proc-events.c (signal_table): Likewise.
5565
c077881a
HZ
55662014-06-08 Hui Zhu <hui@codesourcery.com>
5567
5568 * common/linux-ptrace.c (linux_disable_event_reporting): New
5569 function.
5570 * common/linux-ptrace.h (linux_disable_event_reporting): New
5571 declaration.
5572 * linux-nat.c (linux_child_follow_fork): Do a single step before
5573 detach.
5574
4186eb54
KS
55752014-06-07 Keith Seitz <keiths@redhat.com>
5576
5577 Revert:
5578 PR c++/16253
5579 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5580 from symbol_matches_domain in symtab.c. All local callers
5581 of symbol_matches_domain updated.
5582 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5583 search STRUCT_DOMAIN.
5584 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5585 independently. standard_lookup will do that automatically.
5586 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5587 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5588 (cp_lookup_symbol_in_namespace): Likewise.
5589 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5590 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5591 may return a STRUCT_DOMAIN match.
5592 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5593 * cp-support.c: Include language.h.
5594 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5595 VAR_DOMAIN.
5596 * psymtab.c (match_partial_symbol): Compare the requested
5597 domain with the symbol's domain directly.
5598 (lookup_partial_symbol): Likewise.
5599 * symtab.c (lookup_symbol_in_language): Explain when/why
5600 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5601 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5602 appropriate languages.
5603 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5604 and moved to ada-lang.c
5605 (lookup_block_symbol): Explain that this function only returns
5606 symbol matching the requested DOMAIN.
5607 Compare the requested domain with the symbol's domain directly.
5608 (iterate_over_symbols): Compare the requested domain with the
5609 symbol's domain directly.
5610 * symtab.h (symbol_matches_domain): Remove.
5611
25326a28 56122014-06-06 Doug Evans <xdje42@gmail.com>
d2929fdc
DE
5613
5614 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
5615 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
5616 (gdbscm_guile_version_is_at_least): Declare.
5617 (gdbscm_scm_string_to_int): Declare.
5618 * guile/guile.c (gdbscm_guile_major_version): New global.
5619 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
5620 (guile_datadir): New static global.
5621 (gdbscm_guile_data_directory): New function.
5622 (initialize_scheme_side): Update.
5623 (misc_guile_functions): Add guile-data-directory.
5624 (initialize_gdb_module): Fetch guile version number.
5625 * guile/lib/gdb.scm: Remove call to add-to-load-path.
5626 * guile/lib/gdb/init.scm (%initialize!): Ditto.
5627 * guile/lib/gdb/boot.scm: Use guile-data-directory.
5628 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
5629 comments.
5630 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
5631 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
5632 * guile/scm-value.c (gdbscm_value_to_string): Only call
5633 scm_port_conversion_strategy if Guile version >= 2.0.6.
5634
0a770bb2 56352014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
5636
5637 * main.c (print_gdb_help): Add -q and --silent.
5638
73ba372c
GB
56392014-06-06 Gary Benson <gbenson@redhat.com>
5640
5641 * common/signals.c: Remove preprocessor conditionals for
5642 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
5643 SIGSEGV and SIGTERM.
5644 * proc-events.c: Likewise.
5645
c33b2f12
MM
56462014-06-06 Markus Metzger <markus.t.metzger@intel.com>
5647
5648 * symfile.c (symfile_free_objfile): Remove restriction to
5649 OBJF_USERLOADED.
5650 * symfile-mem.c (symbol_file_add_from_memory): Call
5651 add_target_sections_of_objfile.
5652
fb934770
LC
56532014-06-05 Ludovic Courtès <ludo@gnu.org>
5654
5655 * guile/scm-value.c (gdbscm_history_append_x): Use
5656 'vlscm_get_value_smob_arg_unsafe' instead of
5657 'vlscm_scm_to_value'.
5658
6ef284bd
SM
56592014-06-05 Simon Marchi <simon.marchi@ericsson.com>
5660
5661 PR mi/15806
5662 * utils.c (printchar): Don't escape at all if quoter is NUL.
5663 Update function documentation to clarify effect of parameter
5664 QUOTER.
5665 * remote.c (escape_buffer): Pass '\\' as the quoter to
5666 fputstrn_unfiltered.
5667 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
5668 generate the output.
5669 (mi_solib_unloaded): Same.
5670
270c9937
JB
56712014-06-05 Joel Brobecker <brobecker@adacore.com>
5672
5673 * development.sh: Delete.
5674 * Makefile.in (config.status): Adjust dependency on development.sh.
5675 * configure.ac: Adjust development.sh source call.
5676 * configure: Regenerate.
5677
16f691fb
DE
56782014-06-04 Doug Evans <xdje42@gmail.com>
5679
5680 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
5681 is_scheme_bkpt, spec.
5682 (bpscm_make_breakpoint_smob): Initialize new members.
5683 (gdbscm_create_breakpoint_x): Split into two ...
5684 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
5685 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
5686 (scheme_function breakpoint_functions): Update.
5687 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
5688 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
5689 register-breakpoint!.
5690
ef7cab6b
JB
56912014-06-04 Joel Brobecker <brobecker@adacorer.com>
5692
5693 PR server/17023
5694 * mem-break.c (z_type_supported): Return zero if
5695 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
5696
012370f6
TT
56972014-06-04 Tom Tromey <tromey@redhat.com>
5698
5699 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
5700 value_from_contents_and_address_unresolved.
5701 (ada_template_to_fixed_record_type_1): Likewise.
5702 (ada_which_variant_applies): Likewise.
5703 * value.h (value_from_contents_and_address_unresolved): Declare.
5704 * value.c (value_from_contents_and_address_unresolved): New
5705 function.
5706 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
5707 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
5708 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
5709
92e2a17f
TT
57102014-06-04 Tom Tromey <tromey@redhat.com>
5711
5712 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
5713
c0939df1
TT
57142014-06-04 Tom Tromey <tromey@redhat.com>
5715
5716 * procfs.c (procfs_attach): Make "args" const.
5717 * windows-nat.c (windows_attach): Make "args" const.
5718 * nto-procfs.c (procfs_attach): Make "args" const.
5719 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
5720 * go32-nat.c (go32_attach): Make "args" const.
5721 * gnu-nat.c (gnu_attach): Make "args" const.
5722 * darwin-nat.c (darwin_attach): Make "args" const.
5723 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
5724 * linux-nat.c (linux_nat_attach): Make "args" const.
5725 * remote.c (extended_remote_attach_1, extended_remote_attach):
5726 Make "args" const.
5727 * target.h (struct target_ops) <to_attach>: Make "args" const.
5728 (find_default_attach): Likewise.
5729 * utils.c (parse_pid_to_attach): Make "args" const.
5730 * utils.h (parse_pid_to_attach): Update.
5731
8eaff7cd
TT
57322014-06-04 Tom Tromey <tromey@redhat.com>
5733
5734 * target-delegates.c: Rebuild.
5735 * target.c (default_thread_address_space): New function.
5736 (target_thread_address_space): Simplify.
5737 * target.h (struct target_ops) <to_thread_address_space>: Add
5738 TARGET_DEFAULT_FUNC.
5739
1913f160
DE
57402014-06-04 Doug Evans <xdje42@gmail.com>
5741
5742 * guile/scm-type.c (type_smob): Remove duplicate typedef.
5743
70ad5bff
MM
57442014-06-04 Markus Metzger <markus.t.metzger@intel.com>
5745
5746 * record-btrace.c: Include event-loop.h and inf-loop.h.
5747 (record_btrace_resume_exec_dir)
5748 (record_btrace_async_inferior_event_handler)
5749 (record_btrace_handle_async_inferior_event): New.
5750 (record_btrace_open): Create async event handler.
5751 (record_btrace_close): Delete async event handler.
5752 (record_btrace_resume): Set record_btrace_resume_exec_dir,
5753 Mark async event handler.
5754 (record_btrace_execution_direction): New.
5755 (init_record_btrace_ops): Initialize to_execution_direction.
5756
b6210538
DE
57572014-06-03 Doug Evans <xdje42@gmail.com>
5758
5759 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
5760 (gdbscm_make_parameter): Ditto.
5761
a5b1fd27
DE
57622014-06-03 Doug Evans <dje@google.com>
5763
5764 * exec.c (exec_close_1): Call clear_section_table instead of
5765 resize_section_table.
5766 (clear_section_table): New function.
5767 (resize_section_table): Make static. Rename arg num_added to
5768 adjustment.
5769 * exec.h (clear_section_table): Declare.
5770 (resize_section_table): Delete.
5771 * progspace.c (release_program_space): Call clear_section_table
5772 instead of resize_section_table.
5773
0c6e92a5
SC
57742014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5775
5776 * NEWS (Python Scripting): Add entry about the new xmethods
5777 feature.
5778
883964a7
SC
57792014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5780
5781 * python/py-xmethods.c: New file.
5782 * python/py-objfile.c (objfile_object): New field 'xmethods'.
5783 (objfpy_dealloc): XDECREF on the new xmethods field.
5784 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
5785 field.
5786 (objfpy_get_xmethods): New function.
5787 (objfile_getset): New entry 'xmethods'.
5788 * python/py-progspace.c (pspace_object): New field 'xmethods'.
5789 (pspy_dealloc): XDECREF on the new xmethods field.
5790 (pspy_new, pspace_to_pspace_object): Initialize xmethods
5791 field.
5792 (pspy_get_xmethods): New function.
5793 (pspace_getset): New entry 'xmethods'.
5794 * python/python-internal.h: Add declarations for new functions.
5795 * python/python.c (_initialize_python): Invoke
5796 gdbpy_initialize_xmethods.
5797 * python/lib/gdb/__init__.py (xmethods): New
5798 attribute.
5799 * python/lib/gdb/xmethod.py: New file.
5800 * python/lib/gdb/command/xmethods.py: New file.
5801
58992dc5
SC
58022014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5803
5804 * eval.c (evaluate_subexp_standard): Call the xmethod if the
5805 best match method returned by find_overload_match is an xmethod.
5806 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
5807 the best matching operator returned by find_overload_match is an
5808 xmethod.
5809 * valops.c: #include "extension.h".
5810 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
5811 Return void. The list of matching source methods is returned in
5812 "fn_list" and a vector of matching debug method workers is
5813 returned in "xm_worker_vec". Update all callers.
5814 (value_find_oload_method_list): Likewise.
5815 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
5816 non-NULL, then the index of the best matching method in this
5817 vector is returned. Update all callers.
5818 (find_overload_match): Include xmethods while performing overload
5819 resolution.
5820
e81e7f5e
SC
58212014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5822
5823 * defs.h (enum lval_type): New enumerator "lval_xcallable".
5824 * extension-priv.h (struct extension_language_ops): Add the
5825 xmethod interface.
5826 * extension.c (new_xmethod_worker, clone_xmethod_worker,
5827 get_matching_xmethod_workers, get_xmethod_argtypes,
5828 invoke_xmethod, free_xmethod_worker,
5829 free_xmethod_worker_vec): New functions.
5830 * extension.h: #include "common/vec.h".
5831 New function declarations.
5832 (struct xmethod_worker): New struct.
5833 (VEC (xmethod_worker_ptr)): New vector type.
5834 (xmethod_worker_ptr): New typedef.
5835 (xmethod_worker_vec): Likewise.
5836 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
5837 builtin_type.
5838 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
5839 (struct builtin_type): New field "xmethod".
5840 * valarith.c (value_ptradd): Assert that the value argument is not
5841 lval_xcallable.
5842 * valops.c (value_must_coerce_to_target): Return 0 for
5843 lval_xcallable values.
5844 * value.c (struct value): New field XM_WORKER in the field
5845 LOCATION.
5846 (value_address, value_raw_address): Return 0 for lval_xcallable
5847 values.
5848 (set_value_address): Assert that the value is not an
5849 lval_xcallable.
5850 (value_free): Free the associated xmethod worker when freeing
5851 lval_xcallable values.
5852 (set_value_component_location): Assert that the WHOLE value is not
5853 lval_xcallable.
5854 (value_of_xmethod, call_xmethod): New functions.
5855 * value.h: Declare "struct xmethod_worker".
5856 Declare new functions value_of_xmethod, call_xmethod.
5857
ef370185
JB
58582014-06-03 Joel Brobecker <brobecker@adacore.com>
5859 Pedro Alves <palves@redhat.com>
5860
5861 PR breakpoints/17000
5862 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
5863 New function, extracted from software_breakpoint_inserted_here_p.
5864 (software_breakpoint_inserted_here_p): Replace factored out code
5865 by call to find_non_raw_software_breakpoint_inserted_here.
5866 (bp_target_info_copy_insertion_state): New function.
5867 (bkpt_insert_location): Handle the case of a single-step
5868 breakpoint already inserted at the same address.
5869 (bkpt_remove_location): Handle the case of a single-step
5870 breakpoint still inserted at the same address.
5871 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
5872 breakpoint already inserted at the same address.
5873 (deprecated_remove_raw_breakpoint): Handle the case of a
5874 non-raw breakpoint still inserted at the same address.
5875 (find_single_step_breakpoint): New function, extracted from
5876 single_step_breakpoint_inserted_here_p.
5877 (find_single_step_breakpoint): New function,
5878 factored out from single_step_breakpoint_inserted_here_p.
5879 (single_step_breakpoint_inserted_here_p): Reimplement.
5880
1e2ccb61
BM
58812014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
5882
5883 Pushed by Joel Brobecker <brobecker@adacore.com>
5884 * source.c (show_substitute_path_command): Fix display of matching
5885 substitution rules.
5886
d3448d85
GB
58872014-06-03 Gary Benson <gbenson@redhat.com>
5888
5889 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
5890
06eb1586
DE
58912014-06-02 Doug Evans <xdje42@gmail.com>
5892
5893 Add parameter support for Guile.
5894 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
5895 (SUBDIR_GUILE_SRCS): Add scm-param.c.
5896 (scm-param.o): New rule.
5897 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
5898 (gdbscm_misc_error): Declare.
5899 (gdbscm_canonicalize_command_name): Declare.
5900 (gdbscm_scm_to_host_string): Declare.
5901 (gdbscm_scm_from_host_string): Declare.
5902 (gdbscm_initialize_parameters): Declare.
5903 * guile/guile.c (initialize_gdb_module): Call
5904 gdbscm_initialize_parameters.
5905 * guile/lib/gdb.scm: Export parameter symbols.
5906 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
5907 cmdscm_canonicalize_name and made public. All callers updated.
5908 * guile/scm-exception.c (gdbscm_misc_error): New function.
5909 * guile/scm-param.c: New file.
5910 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
5911 (gdbscm_scm_to_host_string): New function.
5912 (gdbscm_scm_from_host_string): New function.
5913 * scm-utils.c (gdbscm_gc_dup_argv): New function.
5914
e698b8c4
DE
59152014-06-02 Doug Evans <xdje42@gmail.com>
5916
5917 Add command support for Guile.
5918 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
5919 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
5920 (scm-cmd.o): New rule.
5921 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
5922 (gdbscm_user_error_p): Declare.
5923 (gdbscm_parse_command_name): Declare.
5924 (gdbscm_valid_command_class_p): Declare.
5925 (gdbscm_initialize_commands): Declare.
5926 * guile/guile.c (initialize_gdb_module): Call
5927 gdbscm_initialize_commands.
5928 * guile/lib/gdb.scm: Export command symbols.
5929 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
5930 (throw-user-error): New function.
5931 * guile/scm-cmd.c: New file.
5932 * guile/scm-exception.c (user_error_symbol): New static global.
5933 (gdbscm_user_error_p): New function.
5934 (gdbscm_initialize_exceptions): Set user_error_symbol.
5935 * scm-utils.c (gdbscm_gc_xstrdup): New function.
5936
fb1f94b0
PM
59372014-06-02 Phil Muldoon <pmuldoon@redhat.com>
5938
5939 * top.c (command_loop): Handle comments here...
5940 (command_line_input): ... not here.
5941
ded03782
DE
59422014-06-02 Doug Evans <xdje42@gmail.com>
5943
5944 Add progspace support for Guile.
5945 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
5946 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
5947 (scm-progspace.o): New rule.
5948 * guile/guile-internal.h (pspace_smob): New typedef.
5949 (psscm_pspace_smob_pretty_printers): Declare.
5950 (psscm_pspace_smob_from_pspace): Declare.
5951 (psscm_scm_from_pspace): Declare.
5952 * guile/guile.c (initialize_gdb_module): Call
5953 gdbscm_initialize_pspaces.
5954 * guile/lib/gdb.scm: Export progspace symbols.
5955 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
5956 support.
5957 (append-pretty-printer!): Ditto.
5958 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
5959 Implement.
5960 * guile/scm-progspace.c: New file.
5961
397998fc
AM
59622014-06-03 Alan Modra <amodra@gmail.com>
5963
5964 * ppc64-tdep.c (ppc64_standard_linkage8): New.
5965 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
5966
6aa5f3a6
DE
59672014-06-02 Doug Evans <dje@google.com>
5968
5969 Add support for skeletonless type units.
5970 * dwarf2read.c (struct dwarf2_per_objfile): New member
5971 n_allocated_type_units.
5972 (struct dwarf2_per_objfile) <tu_stats>: New member
5973 nr_all_type_units_reallocs.
5974 (create_signatured_type_table_from_index): Initialize
5975 n_allocated_type_units
5976 (create_all_type_units): Ditto.
5977 (add_type_unit): Move up in file. New arg slot.
5978 All callers updated. Increase space for all_type_units more
5979 efficiently.
5980 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
5981 (lookup_dwo_signatured_type): Handle skeletonless TUs.
5982 (lookup_dwp_signatured_type): Ditto.
5983 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
5984 All callers updated.
5985 (build_type_psymtabs_1): Leave type_unit_groups as
5986 NULL if no TUs present.
5987 (print_tu_stats): New function.
5988 (process_skeletonless_type_unit): New function.
5989 (process_dwo_file_for_skeletonless_type_units): New
5990 function.
5991 (process_skeletonless_type_units): New function.
5992 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
5993 Call print tu_stats if debugging enabled.
5994
41fac0cf
PA
59952014-06-02 Pedro Alves <palves@redhat.com>
5996
5997 * breakpoint.c (build_target_command_list): Don't build a command
5998 list if we have any duplicate location that isn't a dprintf.
5999
cd1608cc
PA
60002014-06-02 Pedro Alves <palves@redhat.com>
6001
6002 * breakpoint.c (dprintf_breakpoint_hit): New function.
6003 (initialize_breakpoint_ops): Install it as dprintf's
6004 breakpoint_hit method.
6005
486ef3b9
JB
60062014-06-02 Joel Brobecker <brobecker@adacore.com>
6007
6008 * source.c (substitute_path_rule_matches): Simplify using
6009 filename_ncmp instead of FILENAME_CMP.
6010
230cd560
JB
60112014-06-02 Joel Brobecker <brobecker@adacore.com>
6012
6013 * source.c (substitute_path_rule_matches): Remove trailing spaces.
6014
16954d5d
LC
60152014-06-01 Ludovic Courtès <ludo@gnu.org>
6016
6017 * configure.ac: When Guile is available, check for the
6018 availability of 'scm_new_smob'.
6019 * configure, config.h.in: Regenerate.
6020 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
6021 function.
6022
53e8a631
AB
60232014-05-30 Andrew Burgess <aburgess@broadcom.com>
6024
6025 * frame.c (struct frame_info): Add stop_string field.
6026 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
6027 (get_prev_frame_always): Old content moved into
6028 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
6029 TRY_CATCH, handle MEMORY_ERROR exceptions.
6030 (frame_stop_reason_string): New function definition.
6031 * frame.h (unwind_stop_reason_to_string): Extend comment to
6032 mention frame_stop_reason_string.
6033 (frame_stop_reason_string): New function declaration.
6034 * stack.c (frame_info): Switch to frame_stop_reason_string.
6035 (backtrace_command_1): Switch to frame_stop_reason_string.
6036 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
6037 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
6038 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
6039
70e38b8e
AB
60402014-05-30 Andrew Burgess <aburgess@broadcom.com>
6041
6042 * frame.c (frame_stop_reason_string): Rename to ...
6043 (unwind_stop_reason_to_string): this.
6044 * frame.h (frame_stop_reason_string): Rename to ...
6045 (unwind_stop_reason_to_string): this.
6046 * stack.c (frame_info): Update call to frame_stop_reason_string.
6047 (backtrace_command_1): Likewise.
6048 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
6049 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
6050
938f0e2f
AB
60512014-05-30 Andrew Burgess <aburgess@broadcom.com>
6052
6053 * frame.c (remove_prev_frame): New function.
6054 (get_prev_frame_if_no_cycle): Create / discard cleanup using
6055 remove_prev_frame.
6056
a09dd441
PA
60572014-05-29 Pedro Alves <palves@redhat.com>
6058
6059 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
6060 and make it const. When a single-step decays to a continue,
6061 clear 'step', not 'hw_step'. Pass whether the caller wanted
6062 to step to user_visible_resume_ptid, not what we ask the
6063 target to do.
6064
bdc36728
PA
60652014-05-29 Pedro Alves <palves@redhat.com>
6066
6067 * infrun.c (process_event_stop_test, handle_step_into_function)
6068 (handle_step_into_function_backward): Adjust.
6069 Don't set the even thread's stop_step and call stop_waiting before
6070 calling end_stepping_range. Instead do that ...
6071 (end_stepping_range): ... here. Take an ecs pointer parameter.
6072
22bcd14b
PA
60732014-05-29 Pedro Alves <palves@redhat.com>
6074
6075 * infrun.c (stop_stepping): Rename to ...
6076 (stop_waiting): ... this.
6077 (proceed): Update comment.
6078 (process_event_stop_test, handle_inferior_event)
6079 (handle_signal_stop, handle_step_into_function)
6080 (handle_step_into_function_backward): Update.
6081
4ae57c05
PA
60822014-05-29 Pedro Alves <palves@redhat.com>
6083
6084 * infcall.c (run_inferior_call): Don't check whether the current
6085 thread is running after the proceed call.
6086
329ea579
PA
60872014-05-29 Pedro Alves <palves@redhat.com>
6088 Tom Tromey <tromey@redhat.com>
6089
6090 * NEWS: Mention "maint set target-async", "set mi-async", and that
6091 background execution commands are now always available.
6092 * target.h (target_async_permitted): Update comment.
6093 * target.c (target_async_permitted, target_async_permitted_1):
6094 Default to 1.
6095 (set_target_async_command): Rename to ...
6096 (maint_set_target_async_command): ... this.
6097 (show_target_async_command): Rename to ...
6098 (maint_show_target_async_command): ... this.
6099 (_initialize_target): Adjust.
6100 * infcmd.c (prepare_execution_command): Make extern.
6101 * inferior.h (prepare_execution_command): Declare.
6102 * infrun.c (set_observer_mode): Leave target async alone.
6103 * mi/mi-interp.c (mi_interpreter_init): Install
6104 mi_on_sync_execution_done as sync_execution_done observer.
6105 (mi_on_sync_execution_done): New function.
6106 (mi_execute_command_input_handler): Don't print the prompt if we
6107 just started a synchronous command with an async target.
6108 (mi_on_resume): Check sync_execution before printing prompt.
6109 * mi/mi-main.h (mi_async_p): Declare.
6110 * mi/mi-main.c: Include gdbcmd.h.
6111 (mi_async_p): New function.
6112 (mi_async, mi_async_1): New globals.
6113 (set_mi_async_command, show_mi_async_command, mi_async): New
6114 functions.
6115 (exec_continue): Call prepare_execution_command.
6116 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
6117 (mi_execute_async_cli_command): Use mi_async_p.
6118 (_initialize_mi_main): Install "set mi-async". Make
6119 "target-async" a deprecated alias.
6120
92bcb5f9
PA
61212014-05-29 Pedro Alves <palves@redhat.com>
6122
6123 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
6124 (_initialize_cli_interp): Adjust.
6125 * event-loop.c: Include "observer.h".
6126 (start_event_loop): Notify 'command_error' observers instead of
6127 calling display_gdb_prompt. Remove FIXME comment.
6128 * event-top.c (display_gdb_prompt): Remove call into the
6129 interpreters.
6130 * inf-loop.c: Include "observer.h".
6131 (inferior_event_handler): Notify 'command_error' observers instead
6132 of calling display_gdb_prompt.
6133 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
6134 observers instead of calling display_gdb_prompt.
6135 * interps.c (interp_set): Don't call display_gdb_prompt.
6136 (current_interp_display_prompt_p): Delete.
6137 * interps.h (interp_prompt_p): Delete declaration.
6138 (interp_prompt_p_ftype): Delete.
6139 (struct interp_procs) <prompt_proc_p>: Delete field.
6140 (current_interp_display_prompt_p): Delete declaration.
6141 * mi-interp.c (mi_interpreter_prompt_p): Delete.
6142 (_initialize_mi_interp): Adjust.
6143 * tui-interp.c (tui_init): Install 'sync_execution_done' and
6144 'command_error' observers.
6145 (tui_on_sync_execution_done, tui_on_command_error): New
6146 functions.
6147 (tui_display_prompt_p): Delete.
6148 (_initialize_tui_interp): Adjust.
6149
fd664c91
PA
61502014-05-29 Pedro Alves <palves@redhat.com>
6151
6152 PR gdb/13860
6153 * cli/cli-interp.c: Include infrun.h and observer.h.
6154 (cli_uiout, cli_interp): New globals.
6155 (cli_on_signal_received, cli_on_end_stepping_range)
6156 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
6157 functions.
6158 (cli_interpreter_init): Install them as 'end_stepping_range',
6159 'signal_received' 'signal_exited', 'exited' and 'no_history'
6160 observers.
6161 (_initialize_cli_interp): Remove cli_interp local.
6162 * infrun.c (handle_inferior_event): Call the several stop reason
6163 observers instead of printing the stop reason directly.
6164 (end_stepping_range): New function.
6165 (print_end_stepping_range_reason, print_signal_exited_reason)
6166 (print_exited_reason, print_signal_received_reason)
6167 (print_no_history_reason): Make static, and add an uiout
6168 parameter. Print to that instead of to CURRENT_UIOUT.
6169 * infrun.h (print_end_stepping_range_reason)
6170 (print_signal_exited_reason, print_exited_reason)
6171 (print_signal_received_reason print_no_history_reason): New
6172 declarations.
6173 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
6174 'mi_uiout'.
6175 <cli_uiout>: New field.
6176 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
6177 uiout for CLI output. Install 'signal_received',
6178 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
6179 observers.
6180 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
6181 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
6182 (mi_on_no_history): New functions.
6183 (ui_out_free_cleanup): Delete function.
6184 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
6185 instead use the one already stored in the MI interpreter data.
6186 (mi_ui_out): Adjust.
6187 * tui/tui-interp.c: Include infrun.h and observer.h.
6188 (tui_interp): New global.
6189 (tui_on_signal_received, tui_on_end_stepping_range)
6190 (tui_on_signal_exited, tui_on_exited)
6191 (tui_on_no_history): New functions.
6192 (tui_init): Install them as 'end_stepping_range',
6193 'signal_received' 'signal_exited', 'exited' and 'no_history'
6194 observers.
6195 (_initialize_tui_interp): Delete tui_interp local.
6196
8817a6f2
PA
61972014-05-29 Pedro Alves <palves@redhat.com>
6198
6199 PR gdb/15713
6200 * linux-nat.c (linux_nat_resume_callback): Rename the second
6201 parameter to 'except'. Skip LP if it points to EXCEPT.
6202 (linux_nat_resume): Don't mark the event lwp as not stopped
6203 before resuming sibling lwps. Instead ask
6204 linux_nat_resume_callback to skip the event lwp. Mark it as not
6205 stopped after actually resuming it.
6206 (linux_handle_syscall_trap): Mark the lwp as not stopped after
6207 resuming it.
6208 (wait_lwp): Mark the lwp as stopped here.
6209 (stop_wait_callback): Mark the lwp as not stopped right after
6210 resuming it. Don't mark lwps as stopped here.
6211 (linux_nat_filter_event): Mark the lwp as stopped earlier.
6212 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
6213
251bde03
PA
62142014-05-29 Pedro Alves <palves@redhat.com>
6215
6216 PR PR15693
6217 * infrun.c (resume): Determine how much to resume depending on
6218 whether the caller wanted a step, not whether we can hardware step
6219 the target. Mark all threads that we intend to run as running,
6220 unless we're calling an inferior function.
6221 (normal_stop): If the thread is running an infcall, don't finish
6222 thread state.
6223 * target.c (target_resume): Don't mark threads as running here.
6224
7f3c0343
JB
62252014-05-28 Joel Brobecker <brobecker@adacore.com>
6226
6227 * serial.c (_initialize_serial): Remove support for
6228 the "set remotebaud" and "show remotebaud" commands.
6229 * NEWS: Add entry documenting the removal of that command.
6230
ee34b3f9
YQ
62312014-05-28 Yao Qi <yao@codesourcery.com>
6232
6233 * charset.c: Fix typo in comments.
6234
add6c04d
GB
62352014-05-27 Gary Benson <gbenson@redhat.com>
6236
6237 * utils.c (internal_vproblem): Prompt for a bug report.
6238
92c48fc5
AW
62392014-05-26 Andy Wingo <wingo@igalia.com>
6240
6241 * guile/scm-arch.c (arscm_mark_arch_smob):
6242 * guile/scm-block.c (bkscm_mark_block_smob)
6243 (bkscm_mark_block_syms_progress_smob):
6244 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
6245 * guile/scm-exception.c (exscm_mark_exception_smob):
6246 * guile/scm-frame.c (frscm_mark_frame_smob):
6247 * guile/scm-iterator.c (itscm_mark_iterator_smob):
6248 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
6249 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
6250 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
6251 (ppscm_mark_pretty_printer_worker_smob):
6252 * guile/scm-symbol.c (syscm_mark_symbol_smob):
6253 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
6254 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
6255 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
6256 mark functions.
6257 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
6258 function.
6259
b2715b27
AW
62602014-05-26 Andy Wingo <wingo@igalia.com>
6261 Doug Evans <xdje42@gmail.com>
6262
6263 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
6264 empty_base_class. All uses updated.
6265 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
6266 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
6267 Adapt all callers.
6268 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
6269 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
6270 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
6271 (gdbscm_gsmob_has_property_p, add_property_name)
6272 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
6273 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
6274 (gdb-object-has-property?, gdb-object-properties): Remove.
6275 (gdb-object-kind): Renamed from gsmob-kind.
6276
214ab2da
AW
62772014-05-26 Andy Wingo <wingo@igalia.com>
6278
6279 * configure.ac (try_guile_versions): Allow building with guile 2.2.
6280 * configure: Regenerate.
6281
589fdceb
MM
62822014-05-23 Markus Metzger <markus.t.metzger@intel.com>
6283
6284 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
6285
67b5c0c1
MM
62862014-05-23 Markus Metzger <markus.t.metzger@intel.com>
6287
6288 * record-btrace.c (record_btrace_allow_memory_access): Remove.
6289 (replay_memory_access_read_only, replay_memory_access_read_write)
6290 (replay_memory_access_types, replay_memory_access)
6291 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
6292 (cmd_set_record_btrace, cmd_show_record_btrace)
6293 (cmd_show_replay_memory_access): New.
6294 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
6295 (record_btrace_remove_breakpoint): Replace
6296 record_btrace_allow_memory_access with replay_memory_access.
6297 (_initialize_record_btrace): Add commands.
6298 * NEWS: Announce it.
6299
036cd381
RR
63002014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6301
6302 * aarch64-linux-nat.c (asm/ptrace.h): Include.
6303
c77c1e42
RR
63042014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6305
6306 * MAINTAINERS (Write After Approval): Move self back from
6307 paper trail.
6308
45741a9c
PA
63092014-05-22 Pedro Alves <palves@redhat.com>
6310
6311 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
6312 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
6313 (disable_randomization, enum exec_direction_kind)
6314 (execution_direction, stop_registers, start_remote)
6315 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
6316 (wait_for_inferior, normal_stop, get_last_target_status)
6317 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
6318 (insert_step_resume_breakpoint_at_sal)
6319 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
6320 (set_step_info, print_stop_event, signal_stop_state)
6321 (signal_print_state, signal_pass_state, signal_stop_update)
6322 (signal_print_update, signal_pass_update)
6323 (update_signals_program_target, clear_exit_convenience_vars)
6324 (displaced_step_dump_bytes, update_observer_mode)
6325 (signal_catch_update, gdb_signal_from_command): Move
6326 declarations ...
6327 * infrun.h: ... to this new file.
6328 * amd64-tdep.c: Include infrun.h.
6329 * annotate.c: Include infrun.h.
6330 * arch-utils.c: Include infrun.h.
6331 * arm-linux-tdep.c: Include infrun.h.
6332 * arm-tdep.c: Include infrun.h.
6333 * break-catch-sig.c: Include infrun.h.
6334 * breakpoint.c: Include infrun.h.
6335 * common/agent.c: Include infrun.h instead of inferior.h.
6336 * corelow.c: Include infrun.h.
6337 * event-top.c: Include infrun.h.
6338 * go32-nat.c: Include infrun.h.
6339 * i386-tdep.c: Include infrun.h.
6340 * inf-loop.c: Include infrun.h.
6341 * infcall.c: Include infrun.h.
6342 * infcmd.c: Include infrun.h.
6343 * infrun.c: Include infrun.h.
6344 * linux-fork.c: Include infrun.h.
6345 * linux-nat.c: Include infrun.h.
6346 * linux-thread-db.c: Include infrun.h.
6347 * monitor.c: Include infrun.h.
6348 * nto-tdep.c: Include infrun.h.
6349 * procfs.c: Include infrun.h.
6350 * record-btrace.c: Include infrun.h.
6351 * record-full.c: Include infrun.h.
6352 * remote-m32r-sdi.c: Include infrun.h.
6353 * remote-mips.c: Include infrun.h.
6354 * remote-notif.c: Include infrun.h.
6355 * remote-sim.c: Include infrun.h.
6356 * remote.c: Include infrun.h.
6357 * reverse.c: Include infrun.h.
6358 * rs6000-tdep.c: Include infrun.h.
6359 * s390-linux-tdep.c: Include infrun.h.
6360 * solib-irix.c: Include infrun.h.
6361 * solib-osf.c: Include infrun.h.
6362 * solib-svr4.c: Include infrun.h.
6363 * target.c: Include infrun.h.
6364 * top.c: Include infrun.h.
6365 * windows-nat.c: Include infrun.h.
6366 * mi/mi-interp.c: Include infrun.h.
6367 * mi/mi-main.c: Include infrun.h.
6368 * python/py-threadevent.c: Include infrun.h.
6369
98eb56a4
PA
63702014-05-22 Pedro Alves <palves@redhat.com>
6371
6372 * infrun.c (handle_inferior_event): Store the exit code for
6373 --return-child-result here, instead of ...
6374 (print_exited_reason): ... here.
6375
17b2616c
PA
63762014-05-21 Pedro Alves <palves@redhat.com>
6377
6378 PR gdb/13860
6379 * gdbthread.h (struct thread_control_state): New field
6380 `command_interp'.
6381 * infrun.c (follow_fork): Copy the new thread control field to the
6382 child fork thread.
6383 (clear_proceed_status_thread): Clear the new thread control field.
6384 (proceed): Set the new thread control field.
6385 * interps.h (command_interp): Declare.
6386 * interps.c (command_interpreter): New global.
6387 (command_interp): New function.
6388 (interp_exec): Set `command_interpreter' while here.
6389 * cli-out.c (cli_uiout_dtor): New function.
6390 (cli_ui_out_impl): Install it.
6391 * mi/mi-interp.c: Include cli-out.h.
6392 (mi_cmd_interpreter_exec): Add comment.
6393 (restore_current_uiout_cleanup): New function.
6394 (ui_out_free_cleanup): New function.
6395 (mi_on_normal_stop): If finishing an execution command started by
6396 a CLI command, or any kind of breakpoint-like event triggered,
6397 print the stop event to the output (CLI) stream.
6398 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
6399
5166082f
PA
64002014-05-21 Pedro Alves <palves@redhat.com>
6401
6402 * cli/cli-cmds.c (list_command): Handle the first "list" after the
6403 current source line having changed.
6404 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
6405 * infrun.c (normal_stop): Adjust call to
6406 set_current_sal_from_frame.
6407 * source.c (clear_lines_listed_range): New function.
6408 (set_current_source_symtab_and_line, identify_source_line): Clear
6409 the lines listed range.
6410 (line_info): Handle the first "info line" after the current source
6411 line having changed.
6412 * stack.c (print_stack_frame): Remove center handling.
6413 (set_current_sal_from_frame): Remove 'center' parameter. Don't
6414 center sal.line.
6415
c1ee2fb3
PA
64162014-05-21 Pedro Alves <palves@redhat.com>
6417
6418 * inf-child.c (inf_child_mourn_inferior): New function.
6419 * inf-child.h (inf_child_mourn_inferior): New declaration.
6420 * darwin-nat.c (darwin_mourn_inferior): Use
6421 inf_child_mourn_inferior.
6422 * gnu-nat.c (gnu_mourn_inferior): Likewise.
6423 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
6424 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
6425 * nto-procfs.c (procfs_mourn_inferior): Likewise.
6426 * windows-nat.c (windows_mourn_inferior): Likewise.
6427
5c6d4fb2
DE
64282014-05-21 Doug Evans <xdje42@gmail.com>
6429
250748cb 6430 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5c6d4fb2 6431
4a2722c5
DE
64322014-05-21 Doug Evans <xdje42@gmail.com>
6433
17292b30 6434 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4a2722c5
DE
6435 (gdbscm_out_of_range_error): Ditto.
6436 (gdbscm_memory_error): Ditto.
250748cb
DE
6437 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
6438 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4a2722c5
DE
6439 (gdbscm_out_of_range_error): Update.
6440 (gdbscm_memory_error): Update.
6441 (gdbscm_scm_to_target_string_unsafe): Delete.
6442
6a3cb8e8
PA
64432014-05-21 Pedro Alves <palves@redhat.com>
6444
6445 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
6446 globals.
6447 (inf_child_open_target): New function.
6448 (inf_child_open): Use inf_child_open_target to push the target
6449 instead of erroring out.
6450 (inf_child_disconnect, inf_child_close)
6451 (inf_child_maybe_unpush_target): New functions.
6452 (inf_child_target): Install inf_child_disconnect and
6453 inf_child_close. Store a pointer to the returned object.
6454 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
6455 declarations.
6456 * target.c (auto_connect_native_target): New global.
6457 (show_default_run_target): New function.
6458 (find_default_run_target): Return NULL if automatically connecting
6459 to the native target is disabled.
6460 (_initialize_target): Install set/show auto-connect-native-target.
6461 * NEWS: Mention "set auto-connect-native-target", and "target
6462 native".
6463 * linux-nat.c (super_close): New global.
6464 (linux_nat_close): Call super_close.
6465 (linux_nat_add_target): Store a pointer to the base class's
6466 to_close method.
6467 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
6468 inf_child_maybe_unpush.
6469 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
6470 already pushed.
6471 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
6472 the inferior. Use inf_child_maybe_unpush_target.
6473 (inf_ttrace_attach): Don't push the target if it is already
6474 pushed.
6475 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
6476 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
6477 after mourning the inferior. Use inf_child_maybe_unpush_target.
6478 (darwin_attach_pid): Don't push the target if it is already
6479 pushed.
6480 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
6481 mourning the inferior. Use inf_child_maybe_unpush_target.
6482 (gnu_detach): Use inf_child_maybe_unpush_target.
6483 * go32-nat.c (go32_create_inferior): Don't push the target if it
6484 is already pushed.
6485 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
6486 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
6487 (procfs_open): Rename to ...
6488 (procfs_open_1): ... this. Add target_ops parameter. Adjust
6489 comments. Can target_preopen before changing node. Call
6490 inf_child_open_target to push the target explicitly.
6491 (procfs_attach): Don't push the target if it is already pushed.
6492 (procfs_detach): Use inf_child_maybe_unpush_target.
6493 (procfs_create_inferior): Don't push the target if it is already
6494 pushed.
6495 (nto_native_ops): New global.
6496 (procfs_open): Reimplement.
6497 (procfs_native_open): New function.
6498 (init_procfs_targets): Install procfs_native_open as to_open of
6499 "target native". Store a pointer to the "native" target in
6500 nto_native_ops.
6501 * procfs.c (procfs_attach): Don't push the target if it is already
6502 pushed.
6503 (procfs_detach): Use inf_child_maybe_unpush_target.
6504 (procfs_mourn_inferior): Only unpush the target after mourning the
6505 inferior. Use inf_child_maybe_unpush_target.
6506 (procfs_init_inferior): Don't push the target if it is already
6507 pushed.
6508 * windows-nat.c (do_initial_windows_stuff): Don't push the target
6509 if it is already pushed.
6510
930ee1b1
PA
65112014-05-21 Pedro Alves <palves@redhat.com>
6512
6513 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
6514 and "procfs" targets are now called "native" instead.
6515
1f5d1b13
PA
65162014-05-21 Pedro Alves <palves@redhat.com>
6517
6518 * go32-nat.c (go32_open): Delete.
6519 (go32_target): Don't override the to_open method.
6520
132f8e03
PA
65212014-05-21 Pedro Alves <palves@redhat.com>
6522
6523 * nto-procfs.c (procfs_can_run): New function.
6524 (nto_procfs_ops): New global.
6525 (init_procfs_targets): New, based on procfs_target. Install
6526 "target native" in addition to "target procfs".
6527 (_initialize_procfs): Call init_procfs_targets instead of adding
6528 the target here.
6529
03c136c3
PA
65302014-05-21 Pedro Alves <palves@redhat.com>
6531
6532 * windows-nat.c (windows_target): Don't override to_shortname,
6533 to_longname or to_doc.
6534
a635d0f3
PA
65352014-05-21 Pedro Alves <palves@redhat.com>
6536
6537 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
6538 to_doc.
6539
4f9b5133
PA
65402014-05-21 Pedro Alves <palves@redhat.com>
6541
6542 * darwin-nat.c (_initialize_darwin_inferior): Don't override
6543 to_shortname, to_longname or to_doc.
6544
bc85afde
PA
65452014-05-21 Pedro Alves <palves@redhat.com>
6546
6547 * go32-nat.c (go32_target): Don't override to_shortname,
6548 to_longname or to_doc.
6549
4ebfc96e
PA
65502014-05-21 Pedro Alves <palves@redhat.com>
6551
6552 * inf-child.c (inf_child_open): Remove mention of "child".
6553 (inf_child_target): Rename target to "native" instead of "child".
6554
2648dfed
AA
65552014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6556
6557 * Makefile.in (SFILES): Delete "regset.c".
6558 (COMMON_OBS): Delete "regset.o".
6559 * regset.c: Remove.
6560 * regset.h (regset_alloc): Delete prototype.
6561
b13feb94
AA
65622014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6563
6564 * sparc-linux-tdep.c (sparc32_linux_gregset)
6565 (sparc32_linux_fpregset): New static regset structures.
6566 (sparc32_linux_init_abi): Drop dynamic regset allocations.
6567 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
6568 'fpregset' fields.
6569 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
6570 (sparc64_linux_fpregset): New static regset structures.
6571 (sparc64_linux_init_abi): Drop dynamic regset allocations.
6572 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
6573 New static regset structures.
6574 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
6575 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
6576 New static regset structures.
6577 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
6578 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
6579 New static regset structures.
6580 (sparc64obsd_init_abi): Drop dynamic regset allocations.
6581 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
6582 New static regset structures.
6583 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
6584
b4fd25c9
AA
65852014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6586
6587 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
6588 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
6589 register maps ("regmaps") from "*regset" to "*regmap". Do this
6590 for all regmap types and variables.
6591 * sparc-linux-tdep.c (sparc32_linux_step_trap)
6592 (sparc32_linux_supply_core_gregset)
6593 (sparc32_linux_collect_core_gregset)
6594 (sparc32_linux_supply_core_fpregset)
6595 (sparc32_linux_collect_core_fpregset): Likewise.
6596 * sparc-nat.c (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_fetch_inferior_registers, sparc_store_inferior_registers)
6601 (_initialize_sparc_nat): Rename regmaps.
6602 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
6603 (sparc_gregmap, sparc_fpregmap): ... these.
6604 (sparc_supply_gregset, sparc_collect_gregset)
6605 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6606 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
6607 Rename macros to...
6608 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
6609 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
6610 Likewise.
6611 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
6612 Rename to...
6613 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
6614 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
6615 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
6616 regmaps.
6617 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6618 (sparc32_bsd_fpregset): Rename to...
6619 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6620 (sparc32_bsd_fpregmap): ... these.
6621 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
6622 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6623 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
6624 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
6625 (struct sparc_gregmap, struct sparc_fpregmap)
6626 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6627 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
6628 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
6629 (sparc32_supply_regset, sparc32_collect_gregset)
6630 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
6631 prototypes.
6632 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
6633 (sparc64_linux_ptrace_gregmap): ... this.
6634 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
6635 (_initialize_sparc64_linux_nat): Rename regmaps.
6636 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
6637 (sparc64_linux_core_gregmap): ... this.
6638 (sparc64_linux_supply_core_gregset)
6639 (sparc64_linux_collect_core_gregset)
6640 (sparc64_linux_supply_core_fpregset)
6641 (sparc64_linux_collect_core_fpregset): Rename regmaps.
6642 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
6643 (sparc64_sol2_fpregset): Rename to...
6644 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
6645 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
6646 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
6647 regmaps.
6648 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
6649 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
6650 (sparc64_bsd_fpregset): Rename to...
6651 (struct sparc_gregmap, sparc64_sol2_gregmap)
6652 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
6653 (sparc64_bsd_fpregmap): ... these.
6654 (sparc64_supply_gregset, sparc64_collect_gregset)
6655 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
6656 prototypes.
6657 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
6658 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
6659 (sparc64fbsd_gregmap): ... this.
6660 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
6661 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
6662 Rename regmaps.
6663 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
6664 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
6665 (sparc64nbsd_collect_fpregset): Likewise.
6666 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
6667 (sparc64nbsd_gregmap): ... this.
6668 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
6669 regmaps.
6670 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
6671 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
6672 (sparc64obsd_gregmap): ... this.
6673 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
6674 regmaps.
6675 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
6676 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
6677 (sparc32nbsd_gregmap): ... this.
6678 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
6679 regmaps.
6680
8fea3224
AA
66812014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6682
6683 * score-tdep.c (score7_linux_gregset): New static regset
6684 structure.
6685 (score7_linux_regset_from_core_section): Remove dynamic regset
6686 allocation.
6687 (score_gdbarch_init): Drop allocation of tdep structure.
6688 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
6689
24534243
AA
66902014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6691
6692 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
6693 regset structures.
6694 (am33_regset_from_core_section): Remove dynamic regset
6695 allocations.
6696
b7195f27
AA
66972014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6698
6699 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
6700 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
6701 structures.
6702 (mips_linux_regset_from_core_section): Remove dynamic regset
6703 allocations.
6704 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6705 'gregset64', 'fpregset', and 'fpregset64'.
6706 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
6707 deleted tdep fields.
6708
ecc37a5a
AA
67092014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6710
6711 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
6712 regset structures.
6713 (amd64_regset_from_core_section): Remove dynamic regset
6714 allocations.
6715 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
6716 structure.
6717 (amd64obsd_regset_from_core_section): Remove dynamic regset
6718 allocation.
6719 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
6720 Likewise.
6721 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
6722 x86-common regset supply function.
6723 * i386-tdep.c (i386_collect_gregset): Make static.
6724 (i386_gregset): New global regset structure.
6725 (i386_fpregset, i386_xstateregset): New static regset structures.
6726 (i386_regset_from_core_section): Remove dynamic regset
6727 allocations.
6728 (i386_gdbarch_init): Remove initialization of tdep fields
6729 'gregset', 'fpregset', and 'xstateregset'.
6730 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6731 'fpregset', and 'xstateregset'.
6732 (i386_collect_gregset): Remove prototype.
6733 (i386_gregset): New declaration.
6734 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
6735 structure.
6736 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
6737 allocation.
6738
b7611c43
AA
67392014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6740
6741 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
6742 (arm_linux_vfpregset): New static regset structures.
6743 (arm_linux_regset_from_core_section): Remove dynamic allocation of
6744 regset structures.
6745 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
6746 and 'vfpregset' fields.
6747
a069a2bd
AA
67482014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6749
6750 * aarch64-linux-tdep.c (aarch64_linux_gregset)
6751 (aarch64_linux_fpregset): New static regset structures.
6752 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
6753 of regset structures.
6754 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
6755 'fpregset' fields.
6756
09424cff
AA
67572014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6758
6759 * regset.h (struct regset): Remove gdbarch field.
6760 * regset.c (regset_alloc): Drop initialization of gdbarch field.
6761 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6762 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
6763 Likewise.
6764 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
6765 (ppc32_linux_fpregset, ppc32_linux_vrregset)
6766 (ppc32_linux_vsxregset): Likewise.
6767 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
6768 via the regcache instead of the regset.
6769 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
6770 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
6771 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
6772 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
6773 Likewise.
6774
3ca7dae4
AA
67752014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6776
6777 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
6778 Constify structures.
6779 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
6780 (alphanbsd_aout_gregset): Likewise.
6781 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
6782 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
6783 Likewise.
6784 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
6785 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
6786 Likewise.
6787 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
6788 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
6789 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
6790 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
6791 * m88k-tdep.c (m88k_gregset): Likewise.
6792 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
6793 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
6794 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6795 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
6796 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
6797 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
6798 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
6799 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
6800 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
6801 Likewise.
6802 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
6803 * sh-tdep.h (sh_corefile_gregset): Likewise.
6804 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
6805 * vax-tdep.c (vax_gregset): Likewise.
6806
5876f503
JK
68072014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6808
6809 Fix TLS access for -static -pthread.
6810 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
6811 (try_thread_db_load_1): Initialize it.
6812 (thread_db_get_thread_local_address): Call it if LM is zero.
6813 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
6814 * target.h (struct target_ops) (to_get_thread_local_address): Add
6815 load_module_addr comment.
6816
0256a6ac
PA
68172014-05-21 Pedro Alves <palves@redhat.com>
6818
6819 * dcache.c (dcache_read_memory_partial): If reading the cache line
6820 fails, fallback to reading just the memory the caller wanted.
6821
227533ac
DE
68222014-05-20 Doug Evans <dje@google.com>
6823
6824 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
6825 instead of get_current_arch.
6826
936d2992
PA
68272014-05-20 Pedro Alves <palves@redhat.com>
6828
6829 * NEWS: Mention that compare-sections now works with all targets.
6830
6831 * remote.c (PACKET_qCRC): New enum value.
6832 (remote_verify_memory): Don't send qCRC if the target has no
6833 execution. Use packet_support/packet_ok. If the target doesn't
6834 support the qCRC packet, fallback to a deep memory copy.
6835 (compare_sections_command): Say "target image" instead of "remote
6836 executable".
6837 (_initialize_remote): Add PACKET_qCRC to the list of config
6838 packets that have no associated command. Extend comment.
6839 * target.c (simple_verify_memory, default_verify_memory): New
6840 function.
6841 * target.h (struct target_ops) <to_verify_memory>: Default to
6842 default_verify_memory.
6843 (simple_verify_memory): New declaration.
6844 * target-delegates.c: Regenerate.
6845
e59fa00f
MM
68462014-05-20 Markus Metzger <markus.t.metzger@intel.com>
6847
6848 * record-btrace.c (record_btrace_step_thread): Check for empty history.
6849
f2205de0
HZ
68502014-05-20 Hui Zhu <hui@codesourcery.com>
6851 Yao Qi <yao@codesourcery.com>
6852
6853 PR backtrace/16558
6854 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
6855 and change address of sp and pc.
6856
c4e54771
TT
68572014-05-19 Tom Tromey <tromey@redhat.com>
6858
6859 * gdbtypes.c (rank_function): Use XNEWVEC.
6860 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
6861
73051182
DE
68622014-05-19 Doug Evans <dje@google.com>
6863
6864 * dwarf2read.c (build_type_psymtabs_1): Renamed from
6865 build_type_unit_groups and moved closer to only caller. Remove
6866 arguments. All references updated. Remove outdated .gdb_index
6867 comment.
6868 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
6869 build_type_psymtabs_1.
6870
8832e7e3
DE
68712014-05-19 Doug Evans <dje@google.com>
6872
6873 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
6874 n_type_unit_groups, all_type_unit_groups. All uses removed.
6875 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
6876 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
6877 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
6878 (add_type_unit_group_to_table): Delete.
6879
cd8ae15e
DE
68802014-05-19 Doug Evans <dje@google.com>
6881
6882 * eval.c (evaluate_subexp_standard): Add some comments.
6883
08f4850b
DE
68842014-05-17 Doug Evans <xdje42@gmail.com>
6885
6886 * progspace.c (remove_program_space): Delete, unused.
6887 * progspace.h (remove_program_space): Ditto.
6888
bed8455c
DE
68892014-05-17 Doug Evans <xdje42@gmail.com>
6890
6891 * inferior.c (prune_inferiors): Fix comment.
6892 (remove_inferior_command): Call prune_program_spaces.
6893
8d551b02
DE
68942014-05-16 Doug Evans <dje@google.com>
6895
6896 New command line option -D.
6897 * NEWS: Mention it.
6898 * main.c (set_gdb_data_directory): New function.
6899 (captured_main): Recognize -D. Flag error for --data-directory "".
6900 Call set_gdb_data_directory.
6901 (print_gdb_help): Print --data-directory, -D.
6902 * main.h (set_gdb_data_directory): Declare.
6903 * top.c (staged_gdb_datadir): New static global.
6904 (set_gdb_datadir): Call set_gdb_data_directory
6905 (show_gdb_datadir): New function.
6906 (init_main): Update init of data-directory parameter.
6907
18848e28
GF
69082014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
6909
6910 Import the "dirfd" gnulib module.
6911 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
6912 * gnulib/aclocal.m4: Update.
6913 * gnulib/config.in: Update.
6914 * gnulib/configure: Update.
6915 * gnulib/import/Makefile.am: Update.
6916 * gnulib/import/Makefile.in: Update.
6917 * gnulib/import/dirfd.c: New.
6918 * gnulib/import/m4/dirfd.m4: New.
6919 * gnulib/import/m4/gnulib-cache.m4: Update.
6920 * gnulib/import/m4/gnulib-comp.m4: Update.
6921
95c64f92
YQ
69222014-05-16 Pierre Muller <muller@sourceware.org>
6923 Yao Qi <yao@codesourcery.com>
6924
6925 * valprint.c (print_wchar): Move the code on checking whether
6926 W is a printable wide char to the default branch of switch
6927 statement below. Call wchar_printable instead of gdb_iswprint.
6928
cac395ea
TM
69292014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
6930
19679eca 6931 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
cac395ea
TM
6932 ldr.w and ldrd instructions.
6933
83655187
DE
69342014-05-15 Doug Evans <dje@google.com>
6935
6936 * dwarf2read.c (read_structure_type): Delete outdated comments.
6937
dd756689
TT
69382014-05-14 Tom Tromey <tromey@redhat.com>
6939
6940 * macrocmd.c (print_macro_definition): Reindent.
6941
75ddda77
DE
69422014-05-13 Doug Evans <xdje42@gmail.com>
6943
6944 * python/py-cmd.c (cmdpy_completer): Add comment.
6945 (completers): Make const.
6946
b0f16a3e
SM
69472014-05-13 Simon Marchi <simon.marchi@ericsson.com>
6948
6949 * infrun.c (resume): Remove should_resume (unused). Move up
6950 declaration of resume_ptid.
6951
033c3379
TT
69522014-05-13 Tom Tromey <tromey@redhat.com>
6953
6954 * language.h (unop_type_check): Remove.
6955 (binop_type_check): Don't declare.
6956
9b44a3a5
AA
69572014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
6958
6959 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
6960 call to regcache_raw_collect.
6961
303a33fa
SM
69622014-05-12 Simon Marchi <simon.marchi@ericsson.com>
6963
6964 * mi/mi-console.c (mi_console_raw_packet): Use the value from
6965 mi_console->quote as the quoting character.
6966
196100a0
SM
69672014-05-12 Simon Marchi <simon.marchi@ericsson.com>
6968
6969 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
6970
f989a1c8
TT
69712014-04-29 Tom Tromey <tromey@redhat.com>
6972
6973 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
6974 "show debug varobj".
6975
9404b58f
KM
69762014-05-07 Kyle McMartin <kyle@redhat.com>
6977
6978 Pushed by Joel Brobecker <brobecker@adacore.com>.
6979 * aarch64-tdep.c (aarch64_software_single_step): New function.
6980 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
6981 with aarch64_software_single_step.
6982
5e49ba57
JB
69832014-05-05 Joel Brobecker <brobecker@adacore.com>
6984
6985 GDB 7.7.1 released.
6986
c888a17d
KS
69872014-05-05 Keith Seitz <keiths@redhat.com>
6988
6989 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
6990 variable or history value is successfully parsed.
6991
290a839c
YQ
69922014-05-05 Yao Qi <yao@codesourcery.com>
6993 Pedro Alves <palves@redhat.com>
6994
6995 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
6996 address of blocks that intersects the requested range. Trim
6997 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
6998 sections.
6999 * ctf.c (ctf_xfer_partial): Likewise.
7000
91256dc2
YQ
70012014-05-05 Yao Qi <yao@codesourcery.com>
7002
7003 * printcmd.c (display_command): Remove the check to
7004 target_has_execution.
7005
07284463
MK
70062014-05-03 Mark Kettenis <kettenis@gnu.org>
7007
7008 * ppcobsd-nat.c: Include "obsd-nat.h".
7009 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
7010 add_target.
7011 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
7012
30a1e6cc
SDJ
70132014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
7014
7015 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
7016 and 16-bit signed and unsigned arguments. Update comment.
7017 (stap_parse_probe_arguments): Extend code to handle such
7018 arguments. Use warning instead of complaint to notify about
7019 unrecognized bitness.
7020
f33da99a
SDJ
70212014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
7022
7023 PR breakpoints/16889
7024 * stap-probe.c (stap_parse_probe_arguments): Simplify
7025 check for non-prefixed probes (i.e., probes whose
7026 arguments do not start with "N@"). Always set the
7027 argument type to a sane value.
7028
95cf3b38
DT
70292014-05-01 David Taylor <dtaylor@emc.com>
7030
7031 * remote.c (compare_sections_command): Add -r option to compare
7032 all loadable read-only sections.
7033
1cfdf534
SC
70342014-04-30 Siva Chandra Reddy <sivachandra@google.com>
7035
7036 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
7037 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
7038 Update all callers.
7039 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
7040 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
7041 Remove unused CORE_ADDR argument. Update all callers.
7042
ca4f7f8b
PA
70432014-04-29 Pedro Alves <palves@redhat.com>
7044
7045 * remote.c (struct packet_config) <detect>: Extend comment.
7046 (add_packet_config_cmd): Don't set the config's detect or support
7047 fields here.
7048 (init_all_packet_configs): Also initialize the config's 'detect'
7049 field.
7050 (reset_all_packet_configs_support): New function.
7051 (remote_open_1): Call reset_all_packet_configs_support instead of
7052 init_all_packet_configs.
7053 (_initialize_remote): Initialize all packet configs. Assert that
7054 all packets have an associated command, except a few known
7055 outliers.
7056
11c1ba78
JB
70572014-04-28 Joel Brobecker <brobecker@adacore.com>
7058
7059 * dwarf2read.c (read_subrange_type): Handle dynamic
7060 DW_AT_lower_bound attributes.
7061
8739bc53
JB
70622014-04-28 Joel Brobecker <brobecker@adacore.com>
7063
7064 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
7065 dynamic bounds before computing its upper bound.
7066 (ada_discrete_type_low_bound): Same as above with the lower bound.
7067
6f8a3220
JB
70682014-04-28 Joel Brobecker <brobecker@adacore.com>
7069
7070 * dwarf2read.c (is_dynamic_type): Return true for dynamic
7071 range types. Adjust the array handling implementation to
7072 take advantage of this change.
7073 (resolve_dynamic_range): New function, mostly extracted from
7074 resolve_dynamic_bounds.
7075 (resolve_dynamic_array): New function, mostly extracted from
7076 resolve_dynamic_bounds.
7077 (resolve_dynamic_bounds): Delete.
7078 (resolve_dynamic_type): Reimplement. Add handling of
7079 TYPE_CODE_RANGE types.
7080
4d072ce4
JB
70812014-04-28 Joel Brobecker <brobecker@adacore.com>
7082
7083 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
7084 handling of parallel ___XA types.
7085
52865325
JB
70862014-04-28 Joel Brobecker <brobecker@adacore.com>
7087
7088 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
7089 unnecessary second call to static_unwrap_type.
7090
433e77fa
HZ
70912014-04-27 Hui Zhu <hui@codesourcery.com>
7092
7093 * stack.c (print_frame_info): Call do_gdb_disassembly with
7094 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
7095
b51a69ee
DE
70962014-04-26 Doug Evans <xdje42@gmail.com>
7097
7098 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
7099
7ae1a6a6
PA
71002014-04-25 Pedro Alves <palves@redhat.com>
7101
7102 PR server/16255
7103 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
7104 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
7105 and newline from built string.
7106 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
7107 (linux_ptrace_attach_fail_reason): ... this.
7108 * linux-nat.c (linux_nat_attach): Adjust to use
7109 linux_ptrace_attach_fail_reason.
7110
4082afcc
PA
71112014-04-25 Pedro Alves <palves@redhat.com>
7112
7113 * remote.c (struct remote_state): Remove multi_process_aware,
7114 non_stop_aware, cond_tracepoints, cond_breakpoints,
7115 breakpoint_commands, fast_tracepoints, static_tracepoints,
7116 install_in_trace, disconnected_tracing,
7117 enable_disable_tracepoints, string_tracing, and
7118 augmented_libraries_svr4_read fields.
7119 (remote_multi_process_p): Move further below in the file.
7120 (struct packet_config): Add comments.
7121 (update_packet_config): Delete function.
7122 (show_packet_config_cmd): Use packet_config_support.
7123 (add_packet_config_cmd): Use NULL as set callback.
7124 (packet_ok): "set remote foo-packet"-style commands no longer
7125 change config->supported -- adjust.
7126 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
7127 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
7128 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
7129 (PACKET_QNonStop, PACKET_multiprocess_feature)
7130 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
7131 (PACKET_DisconnectedTracing_feature)
7132 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
7133 (set_remote_protocol_packet_cmd): Delete function.
7134 (packet_config_support, packet_support): New functions.
7135 (set_remote_protocol_Z_packet_cmd): Don't call
7136 update_packet_config.
7137 (remote_query_attached, remote_pass_signals)
7138 (remote_program_signals, remote_threads_info)
7139 (remote_threads_extra_info, remote_start_remote): Use
7140 packet_support.
7141 (remote_start_remote): Use packet_config_support and
7142 packet_support.
7143 (init_all_packet_configs): Set all packets to unknown support,
7144 instead of calling update_packet_config.
7145 (remote_check_symbols): Use packet_support.
7146 (remote_supported_packet): Unconditionally set the packet config's
7147 support status.
7148 (remote_multi_process_feature, remote_non_stop_feature)
7149 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
7150 (remote_breakpoint_commands_feature)
7151 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
7152 (remote_install_in_trace_feature)
7153 (remote_disconnected_tracing_feature)
7154 (remote_enable_disable_tracepoint_feature)
7155 (remote_string_tracing_feature)
7156 (remote_augmented_libraries_svr4_read_feature): Delete functions.
7157 (remote_protocol_features): Adjust to use remote_supported_packet
7158 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
7159 "ConditionalTracepoints", "ConditionalBreakpoints",
7160 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
7161 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
7162 "EnableDisableTracepoints", and "tracenz".
7163 (remote_query_supported): Use packet_support.
7164 (remote_open_1): Adjust.
7165 (extended_remote_attach_1): Use packet_support. Switch on the
7166 result of packet_ok instead of checking whether the packet ended
7167 up disabled.
7168 (remote_vcont_resume): Use packet_support.
7169 (remote_resume, remote_stop_ns, fetch_register_using_p)
7170 (remote_prepare_to_store, store_register_using_P)
7171 (check_binary_download, remote_write_bytes): Use packet_support.
7172 (remote_vkill): Use packet_support. Switch on the result of
7173 packet_ok instead of checking whether the packet ended up
7174 disabled.
7175 (extended_remote_supports_disable_randomization): Use
7176 packet_support.
7177 (extended_remote_run): Switch on the result of packet_ok instead
7178 of checking whether the packet ended up disabled.
7179 (remote_insert_breakpoint, remote_remove_breakpoint)
7180 (remote_insert_watchpoint, remote_remove_watchpoint)
7181 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
7182 packet_support.
7183 (remote_search_memory): Use packet_config_support.
7184 (remote_get_thread_local_address, remote_get_tib_address)
7185 (remote_hostio_send_command, remote_can_execute_reverse): Use
7186 packet_support.
7187 (remote_supports_cond_tracepoints)
7188 (remote_supports_cond_breakpoints)
7189 (remote_supports_fast_tracepoints)
7190 (remote_supports_static_tracepoints)
7191 (remote_supports_install_in_trace)
7192 (remote_supports_enable_disable_tracepoint)
7193 (remote_supports_string_tracing)
7194 (remote_can_run_breakpoint_commands): Rewrite, checking whether
7195 the packet config says the feature is enabled or disabled.
7196 (remote_download_tracepoint, remote_trace_set_readonly_regions)
7197 (remote_get_trace_status): Use packet_support.
7198 (remote_set_disconnected_tracing): Adjust to check whether the
7199 feature is enabled with packet_support.
7200 (remote_set_trace_buffer_size, remote_use_agent)
7201 (remote_can_use_agent, remote_supports_btrace): Use
7202 packet_support.
7203 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
7204 Use packet_config_support.
7205 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
7206 the packet config says the feature is enabled or disabled.
7207 (set_range_stepping): Use packet_support.
7208
bdb52a22
TT
72092014-04-25 Tom Tromey <tromey@redhat.com>
7210
7211 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
7212 argument.
7213
e9475ead
SA
72142014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
7215
7216 * NEWS: Mention support for C99 variable length arrays.
7217
82eacd52
JB
72182014-04-24 Joel Brobecker <brobecker@adacore.com>
7219
7220 * ada-lang.c (standard_exc): Expand introductory comment.
7221
01f9f808
MS
72222014-04-24 Michael Sturm <michael.sturm@mintel.com>
7223 Walfred Tedeschi <walfred.tedeschi@intel.com>
7224
7225 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
7226 AVX512 registers.
7227 (amd64_linux_read_description): Add code to handle AVX512 xstate
7228 mask and return respective tdesc.
7229 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
7230 and features/i386/x32-avx512-linux.c.
7231 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
7232 (amd64_linux_core_read_description): Add code to handle AVX512
7233 xstate mask and return respective tdesc.
7234 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
7235 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
7236 calculation.
7237 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
7238 (tdesc_amd64_avx512_linux): New prototype.
7239 (tdesc_x32_avx512_linux): Likewise.
7240 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
7241 features/i386/x32-avx512.c.
7242 (amd64_ymm_avx512_names): New register names for pseudo
7243 registers YMM16-31.
7244 (amd64_ymmh_avx512_names): New register names for raw registers
7245 YMMH16-31.
7246 (amd64_k_names): New register names for K registers.
7247 (amd64_zmmh_names): New register names for ZMM raw registers.
7248 (amd64_zmm_names): New registers names for ZMM pseudo registers.
7249 (amd64_xmm_avx512_names): New register names for XMM16-31
7250 registers.
7251 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
7252 registers.
7253 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
7254 if feature is present.
7255 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
7256 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
7257 (AMD64_NUM_REGS): Adjust to new number of registers.
7258 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
7259 registers supplied via XSTATE by AVX512 registers.
7260 (i386_linux_read_description): Add case for AVX512.
7261 * i386-linux-tdep.c: Include i386-avx512-linux.c.
7262 (i386_linux_gregset_reg_offset): Add AVX512 registers.
7263 (i386_linux_core_read_description): Add case for AVX512.
7264 (i386_linux_init_abi): Install supported register note section
7265 for AVX512.
7266 (_initialize_i386_linux_tdep): Add call to tdesc init function for
7267 AVX512.
7268 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
7269 registers to be number of zmm7h + 1.
7270 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
7271 * i386-tdep.c: Include features/i386/i386-avx512.c.
7272 (i386_zmm_names): Add ZMM pseudo register names array.
7273 (i386_zmmh_names): Add ZMM raw register names array.
7274 (i386_k_names): Add K raw register names array.
7275 (num_lower_zmm_regs): Add constant for the number of lower ZMM
7276 registers. AVX512 has 16 more ZMM registers than there are YMM
7277 registers.
7278 (i386_zmmh_regnum_p): Add function to look up register number of
7279 ZMM raw registers.
7280 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
7281 (i386_k_regnum_p): Likewise for K raw registers.
7282 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
7283 registers added by AVX512.
7284 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
7285 registers added by AVX512.
7286 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
7287 added by AVX512.
7288 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
7289 (i386_pseudo_register_name): Add ZMM pseudo registers.
7290 (i386_zmm_type): Construct and return vector registers type for ZMM
7291 registers.
7292 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
7293 ZMM0-31 pseudo registers and K registers.
7294 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
7295 and YMM16-31 registers from register cache.
7296 (i386_pseudo_register_write): Add code to write K, ZMM and
7297 YMM16-31 registers.
7298 (i386_register_reggroup_p): Add code to include/exclude AVX512
7299 registers in/from respective register groups.
7300 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
7301 registers if feature is present in xcr0.
7302 (i386_gdbarch_init): Add code to initialize AVX512 feature
7303 variables in tdep structure, wire in pseudo registers and call
7304 initialize_tdesc_i386_avx512.
7305 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
7306 variables.
7307 (i386_regnum): Add AVX512 registers.
7308 (I386_SSE_NUM_REGS): New define for number of SSE registers.
7309 (I386_AVX_NUM_REGS): Likewise for AVX registers.
7310 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
7311 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
7312 512 bits wide.
7313 (i386_xmm_avx512_regnum_p): New prototype for register look up.
7314 (i386_ymm_avx512_regnum_p): Likewise.
7315 (i386_k_regnum_p): Likewise.
7316 (i386_zmm_regnum_p): Likewise.
7317 (i386_zmmh_regnum_p): Likewise.
7318 * i387-tdep.c : Update year in copyright notice.
7319 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
7320 XSAVE buffer.
7321 (XSAVE_YMM_AVX512_ADDR): New macro.
7322 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
7323 XSAVE buffer.
7324 (XSAVE_XMM_AVX512_ADDR): New macro.
7325 (xsave_avx512_k_offset): New table for K register offsets in
7326 XSAVE buffer.
7327 (XSAVE_AVX512_K_ADDR): New macro.
7328 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
7329 in XSAVE buffer.
7330 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
7331 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
7332 buffer.
7333 (i387_collect_xsave): Add code to collect AVX512 registers from
7334 XSAVE buffer.
7335 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
7336 of XMM16-31 registers.
7337 (I387_NUM_K_REGS): New define for number of K registers.
7338 (I387_K0_REGNUM): New define for K0 register number.
7339 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
7340 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
7341 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
7342 registers.
7343 (I387_YMM16H_REGNUM): New define for YMM16H register number.
7344 (I387_XMM16_REGNUM): New define for XMM16 register number.
7345 (I387_YMM0_REGNUM): New define for YMM0 register number.
7346 (I387_KEND_REGNUM): New define for last K register number.
7347 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
7348 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
7349 number.
7350 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
7351 number.
7352 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
7353 size.
7354 * features/Makefile: Add AVX512 related files.
7355 * features/i386/32bit-avx512.xml: New file.
7356 * features/i386/64bit-avx512.xml: Likewise.
7357 * features/i386/amd64-avx512-linux.c: Likewise.
7358 * features/i386/amd64-avx512-linux.xml: Likewise.
7359 * features/i386/amd64-avx512.c: Likewise.
7360 * features/i386/amd64-avx512.xml: Likewise.
7361 * features/i386/i386-avx512-linux.c: Likewise.
7362 * features/i386/i386-avx512-linux.xml: Likewise.
7363 * features/i386/i386-avx512.c: Likewise.
7364 * features/i386/i386-avx512.xml: Likewise.
7365 * features/i386/x32-avx512-linux.c: Likewise.
7366 * features/i386/x32-avx512-linux.xml: Likewise.
7367 * features/i386/x32-avx512.c: Likewise.
7368 * features/i386/x32-avx512.xml: Likewise.
7369 * regformats/i386/amd64-avx512-linux.dat: New file.
7370 * regformats/i386/amd64-avx512.dat: Likewise.
7371 * regformats/i386/i386-avx512-linux.dat: Likewise.
7372 * regformats/i386/i386-avx512.dat: Likewise.
7373 * regformats/i386/x32-avx512-linux.dat: Likewise.
7374 * regformats/i386/x32-avx512.dat: Likewise.
7375 * NEWS: Add note about new support for AVX512.
7376
7377
08351840
PA
73782014-04-23 Pedro Alves <palves@redhat.com>
7379
7380 * breakpoint.c (insert_bp_location): Tolerate errors if the
7381 breakpoint is set in a user-loaded objfile.
7382 (remove_breakpoint_1): Likewise. Also tolerate errors if the
7383 location is marked shlib_disabled. If the breakpoint is set in a
7384 user-loaded objfile is a GDB-side memory breakpoint, validate it
7385 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
7386 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
7387 flag.
7388 * mem-break.c (memory_validate_breakpoint): New function.
7389 * objfiles.c (userloaded_objfile_contains_address_p): New
7390 function.
7391 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
7392 * target.h (memory_validate_breakpoint): New declaration.
7393
076855f9
PA
73942014-04-23 Pedro Alves <palves@redhat.com>
7395
7396 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
7397 the breakpoint is set in a shared library, only suppress
7398 errors for software breakpoints, not hardware breakpoints.
7399
483805cf
PA
74002014-04-22 Pedro Alves <palves@redhat.com>
7401
7402 * infrun.c (schedlock_applies): New function, factored out from
7403 find_thread_needs_step_over.
7404 (find_thread_needs_step_over): Use it.
7405 (switch_back_to_stepped_thread): Always clear trap_expected if the
7406 step over is finished. Return early if scheduler locking applies.
7407 Look for the stepping thread and a potential step-over thread with
7408 a single loop.
7409 (currently_stepping_or_nexting_callback): Delete.
7410
a75fef0e
NC
74112014-04-22 Nick Clifton <nickc@redhat.com>
7412
7413 * NEWS: Mention that ARM sim now supports tracing.
7414
48b6e87e
YQ
74152014-04-22 Yao Qi <yao@codesourcery.com>
7416
7417 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
7418 to ...
7419 * tracefile.c (tracefile_fetch_registers): ... it. New
7420 function.
7421 * tracefile.h (tracefile_fetch_registers): Declare.
7422 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
7423 tracefile_fetch_registers.
7424
17617f2d
EZ
74252014-04-19 Eli Zaretskii <eliz@gnu.org>
7426
7427 PR gdb/14018
7428 * windows-nat.c (thread_rec): Don't display a warning when
7429 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
7430 fails for any reason, set th->suspended to -1, so that we don't
7431 try to resume such a thread. Also, don't return NULL in these
7432 cases, to avoid completely ruin the session due to "PC register is
7433 not available" error.
7434 (do_windows_fetch_inferior_registers): Check errors in
7435 GetThreadContext call.
7436 (windows_continue): Accept an additional argument KILLED; if not
7437 zero, ignore errors in the SetThreadContext call, since the
7438 inferior was killed and is shutting down.
7439 (windows_resume, get_windows_debug_event)
7440 (windows_create_inferior, windows_mourn_inferior)
7441 (windows_kill_inferior): All callers of windows_continue changed
7442 to adjust to its new calling sequence.
7443
5723a6fd
YQ
74442014-04-19 Yao Qi <yao@codesourcery.com>
7445
7446 * ctf.c (ctf_open): Call post_create_inferior.
7447
614d5099
YQ
74482014-04-19 Yao Qi <yao@codesourcery.com>
7449
7450 * ctf.c (handle_id): New static variable.
7451 (ctf_open_dir): Get handle_id from bt_context_add_trace return
7452 value. Get the declaration of event "register" and get length
7453 of field "contents".
7454
dac3e710
YQ
74552014-04-19 Yao Qi <yao@codesourcery.com>
7456
7457 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
7458
2bca57ba
SC
74592014-04-18 Siva Chandra Reddy <sivachandra@google.com>
7460
7461 * valops.c (oload_method_static): Remove unnecessary argument
7462 METHOD. Update all callers.
7463
51d48146
PA
74642014-04-18 Pedro alves <palves@redhat.com>
7465 Tom Tromey <tromey@redhat.com>
7466
7467 PR backtrace/15558
7468 * frame.c (get_prev_frame_1): Rename to ...
7469 (get_prev_frame_always): ... this, and make extern. Adjust.
7470 (skip_artificial_frames): Use get_prev_frame_always.
7471 (frame_unwind_caller_id, frame_pop, get_prev_frame)
7472 (get_frame_unwind_stop_reason): Adjust to rename.
7473 * frame.h (get_prev_frame_always): Declare.
7474 * inline-frame.c: Include frame.h.
7475 (inline_frame_this_id): Use get_prev_frame_always.
7476
1bdad2e0
TG
74772014-04-18 Tristan Gingold <gingold@adacore.com>
7478
7479 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
7480 code by using bfd_mach_o_get_base_address.
7481
7ce16bd4
UW
74822014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
7483
7484 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
7485 (spu_ax_pseudo_register_collect): New function.
7486 (spu_ax_pseudo_register_push_stack): Likewise.
7487 (spu_dwarf_reg_to_regnum): Likewise.
7488 (spu_gdbarch_init): Install them. Append DWARF unwinders.
7489
2ed3c037
UW
74902014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
7491
7492 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
7493 Replace FRAME argument with FRAME_ID.
7494 * gdbarch.c, gdbarch.h: Regenerate.
7495 * findvar.c (default_value_from_register): Add GDBARCH argument;
7496 replace FRAME by FRAME_ID. No longer call get_frame_id.
7497 (value_from_register): Update call to gdbarch_value_from_register.
7498 * value.h (default_value_from_register): Update prototype.
7499 * s390-linux-tdep.c (s390_value_from_register): Update interface
7500 and call to default_value_from_register.
7501 * spu-tdep.c (spu_value_from_register): Likewise.
7502
7503 * findvar.c (address_from_register): Remove TYPE argument.
7504 Do not call value_from_register; use gdbarch_value_from_register
7505 with null_frame_id instead.
7506 * value.h (address_from_register): Update prototype.
7507 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
7508 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
7509 address_from_register interface change.
7510
71e50e83
YQ
75112014-04-17 Yao Qi <yao@codesourcery.com>
7512
7513 * gdbtypes.h: Update comments to link to types and macros'
7514 definitions.
7515
7a23c549
SC
75162014-04-16 Siva Chandra Reddy <sivachandra@google.com>
7517
7518 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
7519
22869d73
KS
75202014-04-16 Keith Seitz <keiths@redhat.com>
7521
7522 PR gdb/15827
7523 * dwarf2read.c (skip_one_die): Check that all relative-offset
7524 sibling DIEs fall within range of the current reader's buffer.
7525 (read_partial_die): Likewise.
7526
c4f87ca6
KS
75272014-04-16 Keith Seitz <keiths@redhat.com>
7528
7529 PR c++/16597
7530 * cp-namespace.c (lookup_symbol_file): If the type name of
7531 `this' is NULL, return immediately.
7532
b50c8614
KS
75332014-04-14 Keith Seitz <keiths@redhat.com>
7534
7535 PR c++/16253
7536 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
7537 from symbol_matches_domain in symtab.c. All local callers
7538 of symbol_matches_domain updated.
7539 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
7540 search STRUCT_DOMAIN.
7541 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
7542 independently. standard_lookup will do that automatically.
7543 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
7544 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7545 (cp_lookup_symbol_in_namespace): Likewise.
7546 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
7547 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
7548 may return a STRUCT_DOMAIN match.
7549 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
7550 * cp-support.c: Include language.h.
7551 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
7552 VAR_DOMAIN.
7553 * psymtab.c (match_partial_symbol): Compare the requested
7554 domain with the symbol's domain directly.
7555 (lookup_partial_symbol): Likewise.
7556 * symtab.c (lookup_symbol_in_language): Explain when/why
7557 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7558 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
7559 appropriate languages.
7560 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
7561 and moved to ada-lang.c
7562 (lookup_block_symbol): Explain that this function only returns
7563 symbol matching the requested DOMAIN.
7564 Compare the requested domain with the symbol's domain directly.
7565 (iterate_over_symbols): Compare the requested domain with the
7566 symbol's domain directly.
7567 * symtab.h (symbol_matches_domain): Remove.
7568
3d567982
TT
75692014-04-14 Tom Tromey <tromey@redhat.com>
7570
7571 PR c++/15246:
7572 * c-exp.y (type_aggregate_p): New function.
7573 (qualified_name, classify_inner_name): Use it.
7574 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
7575 and TYPE_TARGET_TYPE of an enum type.
7576 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
7577 an enum type.
7578 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
7579 handle TYPE_DECLARED_CLASS.
7580 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
7581 types.
7582 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
7583 * valops.c (enum_constant_from_type): New function.
7584 (value_aggregate_elt): Use it.
7585 * cp-namespace.c (cp_lookup_nested_symbol): Handle
7586 TYPE_CODE_ENUM.
7587
c848d642
TT
75882014-04-14 Tom Tromey <tromey@redhat.com>
7589
7590 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
7591 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
7592 const.
7593 * value.h (value_aggregate_elt): Update.
7594
0626fc76
TT
75952014-04-14 Tom Tromey <tromey@redhat.com>
7596
7597 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
7598
5ecaaa66
SA
75992014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7600
7601 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7602 (evaluate_subexp_standard): Pass noside argument.
7603 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7604 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7605 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7606 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7607 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7608
1612e0c0
SA
76092014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7610
7611 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7612 points to a constant blob.
7613
c451ebe5
SA
76142014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7615
7616 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7617 property and store it as the high bound and flag the range accordingly.
7618 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7619 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7620 * gdbtypes.h (enum range_flags): New enum.
7621 (struct range_bounds): Add flags member.
7622
1d42e4c4
SA
76232014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7624
7625 * c-typeprint.c (c_type_print_varspec_suffix): Added
7626 check for not yet resolved high bound. If unresolved, print
7627 "variable length" string to the console instead of random
7628 length.
7629
9f1f738a
SA
76302014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7631
7632 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
7633 value.
7634 (ada_template_to_fixed_record_type_1): Likewise.
7635 (ada_to_fixed_type_1): Likewise.
7636 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7637 (cp_print_value): Likewise.
7638 * d-valprint.c (dynamic_array_type): Likewise.
7639 * findvar.c (address_of_variable): Likewise.
7640 * jv-valprint.c (java_value_print): Likewise.
7641 * valops.c (value_ind): Likewise.
7642 * value.c (coerce_ref): Likewise.
7643
3c8452d4
SA
76442014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7645
7646 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7647 value and retrieve the dynamic type size.
7648
4ad88275
SA
76492014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7650
7651 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7652 passed to sizeof is dynamic evaluate the argument to compute the length.
7653
80180f79
SA
76542014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7655 Joel Brobecker <brobecker@adacore.com>
7656
7657 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7658 (dwarf2_evaluate_property): New function.
7659 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7660 * dwarf2read.c (attr_to_dynamic_prop): New function.
7661 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7662 attribute.
7663 * gdbtypes.c: Include dwarf2loc.h.
7664 (is_dynamic_type): New function.
7665 (resolve_dynamic_type): New function.
7666 (resolve_dynamic_bounds): New function.
7667 (get_type_length): New function.
7668 (check_typedef): Use get_type_length to compute type length.
7669 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7670 (TYPE_LOW_BOUND_KIND): New macro.
7671 (is_dynamic_type): New function prototype.
7672 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7673 to resolve dynamic properties of the type. Update comment.
7674 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7675
a1556843
RH
76762014-04-14 Richard Henderson <rth@redhat.com>
7677
7678 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
7679
0be03e84
DE
76802014-04-12 Siva Chandra Reddy <sivachandra@google.com>
7681 Doug Evans <xdje42@gmail.com>
7682
7683 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
7684 dereference TYPE_CODE_REF values.
7685
6b662e19
JB
76862014-04-11 Joel Brobecker <brobecker@adacore.com>
7687
7688 Revert the following changes due to regressions:
7689
7690 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7691 (dwarf2_evaluate_property): New function.
7692 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7693 * dwarf2read.c (attr_to_dynamic_prop): New function.
7694 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7695 attribute.
7696 * gdbtypes.c: Include dwarf2loc.h.
7697 (is_dynamic_type): New function.
7698 (resolve_dynamic_type): New function.
7699 (resolve_dynamic_bounds): New function.
7700 (get_type_length): New function.
7701 (check_typedef): Use get_type_length to compute type length.
7702 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7703 (TYPE_LOW_BOUND_KIND): New macro.
7704 (is_dynamic_type): New function prototype.
7705 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7706 to resolve dynamic properties of the type. Update comment.
7707 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7708
7709 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7710 passed to sizeof is dynamic evaluate the argument to compute the length.
7711
7712 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7713 value and retrieve the dynamic type size.
7714
7715 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7716 (ada_template_to_fixed_record_type_1): Likewise.
7717 (ada_to_fixed_type_1): Likewise.
7718 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7719 (cp_print_value): Likewise.
7720 * d-valprint.c (dynamic_array_type): Likewise.
7721 * eval.c (evaluate_subexp_with_coercion): Likewise.
7722 * findvar.c (address_of_variable): Likewise.
7723 * jv-valprint.c (java_value_print): Likewise.
7724 * valops.c (value_ind): Likewise.
7725 * value.c (coerce_ref): Likewise.
7726
7727 * c-typeprint.c (c_type_print_varspec_suffix): Added
7728 check for not yet resolved high bound. If unresolved, print
7729 "variable length" string to the console instead of random
7730 length.
7731
7732 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7733 property and store it as the high bound and flag the range accordingly.
7734 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7735 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7736 * gdbtypes.h (enum range_flags): New enum.
7737 (struct range_bounds): Add flags member.
7738
7739 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7740 points to a constant blob.
7741
7742 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7743 (evaluate_subexp_standard): Pass noside argument.
7744 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7745 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7746 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7747 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7748 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7749
245a5f0b
KS
77502014-04-11 Keith Seitz <keiths@redhat.com>
7751
7752 PR c++/16675
7753 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
7754 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
7755 reference types.
7756
3bce8237
SA
77572014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7758
7759 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7760 (evaluate_subexp_standard): Pass noside argument.
7761 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7762 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7763 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7764 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7765 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7766
92b09522
SA
77672014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7768
7769 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7770 points to a constant blob.
7771
e1969afb
SA
77722014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7773
7774 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7775 property and store it as the high bound and flag the range accordingly.
7776 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7777 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7778 * gdbtypes.h (enum range_flags): New enum.
7779 (struct range_bounds): Add flags member.
7780
b86138fb
SA
77812014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7782
7783 * c-typeprint.c (c_type_print_varspec_suffix): Added
7784 check for not yet resolved high bound. If unresolved, print
7785 "variable length" string to the console instead of random
7786 length.
7787
bcd629a4
SA
77882014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7789
7790 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7791 (ada_template_to_fixed_record_type_1): Likewise.
7792 (ada_to_fixed_type_1): Likewise.
7793 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7794 (cp_print_value): Likewise.
7795 * d-valprint.c (dynamic_array_type): Likewise.
7796 * eval.c (evaluate_subexp_with_coercion): Likewise.
7797 * findvar.c (address_of_variable): Likewise.
7798 * jv-valprint.c (java_value_print): Likewise.
7799 * valops.c (value_ind): Likewise.
7800 * value.c (coerce_ref): Likewise.
7801
04b19544
SA
78022014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7803
7804 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7805 value and retrieve the dynamic type size.
7806
26cb189f
SA
78072014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7808
7809 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7810 passed to sizeof is dynamic evaluate the argument to compute the length.
7811
37c1ab67
SA
78122014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7813
7814 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7815 (dwarf2_evaluate_property): New function.
7816 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7817 * dwarf2read.c (attr_to_dynamic_prop): New function.
7818 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7819 attribute.
7820 * gdbtypes.c: Include dwarf2loc.h.
7821 (is_dynamic_type): New function.
7822 (resolve_dynamic_type): New function.
7823 (resolve_dynamic_bounds): New function.
7824 (get_type_length): New function.
7825 (check_typedef): Use get_type_length to compute type length.
7826 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7827 (TYPE_LOW_BOUND_KIND): New macro.
7828 (is_dynamic_type): New function prototype.
7829 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7830 to resolve dynamic properties of the type. Update comment.
7831 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7832
729efb13
SA
78332014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7834
7835 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
7836 declaring high/low bounds and change uses accordingly. Call
7837 create_range_type instead of create_static_range_type.
7838 * gdbtypes.c (create_range_type): New function.
7839 (create_range_type): Convert bounds into struct bound_prop and pass
7840 them to create_range_type.
7841 * gdbtypes.h (struct bound_prop): New struct.
7842 (create_range_type): New function prototype.
7843 (struct range_bounds): Use struct bound_prop instead of LONGEST for
7844 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
7845 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
7846 part of the bound.
7847 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
7848
0c9c3474
SA
78492014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7850
7851 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
7852 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
7853 * ada-lang.c: All uses of create_range_type updated.
7854 * coffread.c: All uses of create_range_type updated.
7855 * dwarf2read.c: All uses of create_range_type updated.
7856 * f-exp.y: All uses of create_range_type updated.
7857 * m2-valprint.c: All uses of create_range_type updated.
7858 * mdebugread.c: All uses of create_range_type updated.
7859 * stabsread.c: All uses of create_range_type updated.
7860 * valops.c: All uses of create_range_type updated.
7861 * valprint.c: All uses of create_range_type updated.
7862
9d497a19
PA
78632014-04-10 Pedro Alves <palves@redhat.com>
7864
7865 * breakpoint.c (single_step_breakpoints)
7866 (single_step_gdbarch): Move up in the file.
7867 (one_breakpoint_xfer_memory): New function, factored out from ...
7868 (breakpoint_xfer_memory): ... here. Also process single-step
7869 breakpoints.
7870
15a9128a
TG
78712014-04-09 Tristan Gingold <gingold@adacore.com>
7872
7873 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
7874 comments.
7875 (darwin_decode_exception_message): Free port only after use.
7876
9c97a070
PL
78772014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
7878
7879 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
7880 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
7881 when setting the size of call_length.
7882
7af389b8
SC
78832014-04-07 Siva Chandra Reddy <sivachandra@google.com>
7884
7885 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
7886 dereference TYPE_CODE_REF values.
7887
86ad98c3
JB
78882014-04-07 Joel Brobecker <brobecker@adacore.com>
7889
7890 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
7891 end of warning message.
7892
b0aeadb3
DE
78932014-04-03 Doug Evans <dje@google.com>
7894
7895 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
7896 of stub_comp_unit_die, stub_comp_dir is non-NULL.
7897
5979d6b6
AM
78982014-04-02 Alan Modra <amodra@gmail.com>
7899
7900 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
7901 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
7902 (struct symbol_file_add_from_memory_args): Add size field.
7903 (find_vdso_size): New function.
7904 (add_vsyscall_page): Attempt to find vdso size.
7905
0d60c288
DE
79062014-04-01 Doug Evans <dje@google.com>
7907
7908 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
7909
a41f2563
TG
79102014-04-01 Tristan Gingold <gingold@adacore.com>
7911
7912 * darwin-nat.c (darwin_encode_reply): Add prototype.
7913 (darwin_decode_exception_message): Reply to unknown inferiors.
7914 (darwin_decode_message): Handle message by id. Ignore message
7915 to unknown inferior.
7916 (darwin_wait): Discard unknown messages, add debug trace.
7917
11a865c8
DE
79182014-03-31 Doug Evans <dje@google.com>
7919
7920 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
7921 comp_dir_string.
7922
770e7fc7
DE
79232014-03-31 Doug Evans <dje@google.com>
7924
7925 New option "set print symbol-loading".
7926 * NEWS: Mention it.
7927 * solib.c (solib_read_symbols): Only print symbol loading messages
7928 if requested.
7929 (solib_add): If symbol loading is in "brief" mode, notify user
7930 symbols are being loaded.
7931 (reload_shared_libraries_1): Ditto.
7932 * symfile.c (print_symbol_loading_off): New static global.
7933 (print_symbol_loading_brief): New static global.
7934 (print_symbol_loading_full): New static global.
7935 (print_symbol_loading_enums): New static global.
7936 (print_symbol_loading): New static global.
7937 (print_symbol_loading_p): New function.
7938 (symbol_file_add_with_addrs): Only print symbol loading messages
7939 if requested.
7940 (_initialize_symfile): Register "print symbol-loading" set/show
7941 command.
7942 * symfile.h (print_symbol_loading_p): Declare.
7943
c32c64b7
DE
79442014-03-30 Doug Evans <xdje42@gmail.com>
7945
7946 * infrun.c (set_last_target_status): New function.
7947 (handle_inferior_event): Call it.
7948
7c0bc051
DE
79492014-03-30 Doug Evans <xdje42@gmail.com>
7950
7951 * inferior.h (enum stop_kind): Improve comment.
7952
8776cfe9
JB
79532014-03-28 Joel Brobecker <brobecker@adacore.com>
7954
7955 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
7956 a reference, strip the reference layer before calling
7957 the lang_ops value_has_mutated callback.
7958
410a0ff2
SDJ
79592014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
7960
7961 Remove some globals from our parser.
7962 * language.c (unk_lang_parser): Add "struct parser_state"
7963 argument.
7964 * language.h (struct language_defn) <la_parser>: Likewise.
7965 * parse.c (expout, expout_size, expout_ptr): Remove variables.
7966 (initialize_expout): Add "struct parser_state" argument.
7967 Rewrite function to use the parser state.
7968 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
7969 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
7970 write_exp_elt_longcst, write_exp_elt_dblcst,
7971 write_exp_elt_decfloatcst, write_exp_elt_type,
7972 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
7973 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
7974 write_dollar_variable): Likewise.
7975 (parse_exp_in_context_1): Use parser state.
7976 (insert_type_address_space): Add "struct parser_state" argument.
7977 Use parser state.
7978 (increase_expout_size): New function.
7979 * parser-defs.h: Forward declare "struct language_defn" and
7980 "struct parser_state".
7981 (expout, expout_size, expout_ptr): Remove extern declarations.
7982 (parse_gdbarch, parse_language): Rewrite macro declarations to
7983 accept the parser state.
7984 (struct parser_state): New struct.
7985 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
7986 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
7987 write_exp_elt_decfloatcst, write_exp_elt_type,
7988 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
7989 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
7990 write_exp_msymbol, write_dollar_variable,
7991 mark_struct_expression, insert_type_address_space): Add "struct
7992 parser_state" argument.
7993 (increase_expout_size): New function.
7994 * utils.c (do_clear_parser_state): New function.
7995 (make_cleanup_clear_parser_state): Likewise.
7996 * utils.h (make_cleanup_clear_parser_state): New function
7997 prototype.
7998 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
7999 Update calls to write_exp* in order to pass the parser state.
8000 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
8001 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
8002 (i386_stap_parse_special_token_three_arg_disp): Likewise.
8003 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
8004 * stap-probe.c (stap_parse_register_operand): Likewise.
8005 (stap_parse_single_operand): Likewise.
8006 (stap_parse_argument_1): Likewise.
8007 (stap_parse_argument): Use parser state.
8008 * stap-probe.h: Include "parser-defs.h".
8009 (struct stap_parse_info) <pstate>: New field.
8010 * c-exp.y (parse_type): Rewrite to use parser state.
8011 (yyparse): Redefine to c_parse_internal.
8012 (pstate): New global variable.
8013 (parse_number): Add "struct parser_state" argument.
8014 (write_destructor_name): Likewise.
8015 (type_exp): Update calls to write_exp* and similars in order to
8016 use parser state.
8017 (exp1, exp, variable, qualified_name, space_identifier,
8018 typename, typebase): Likewise.
8019 (write_destructor_name, parse_number, lex_one_token,
8020 classify_name, classify_inner_name, c_parse): Add "struct
8021 parser_state" argument. Update function to use parser state.
8022 * c-lang.h: Forward declare "struct parser_state".
8023 (c_parse): Add "struct parser_state" argument.
8024 * ada-exp.y (parse_type): Rewrite macro to use parser state.
8025 (yyparse): Redefine macro to ada_parse_internal.
8026 (pstate): New variable.
8027 (write_int, write_object_renaming, write_var_or_type,
8028 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
8029 type_int, type_long, type_long_long, type_float, type_double,
8030 type_long_double, type_char, type_boolean, type_system_address):
8031 Add "struct parser_state" argument.
8032 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
8033 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
8034 var_or_type, aggregate, aggregate_component_list,
8035 positional_list, others, component_group,
8036 component_associations): Update calls to write_exp* and similar
8037 functions in order to use parser state.
8038 (ada_parse, write_var_from_sym, write_int,
8039 write_exp_op_with_string, write_object_renaming,
8040 find_primitive_type, write_selectors, write_ambiguous_var,
8041 write_var_or_type, write_name_assoc, type_int, type_long,
8042 type_long_long, type_float, type_double, type_long_double,
8043 type_char, type_boolean, type_system_address): Add "struct
8044 parser_state" argument. Adjust function to use parser state.
8045 * ada-lang.c (parse): Likewise.
8046 * ada-lang.h: Forward declare "struct parser_state".
8047 (ada_parse): Add "struct parser_state" argument.
8048 * ada-lex.l (processInt, processReal): Likewise. Adjust all
8049 calls to both functions.
8050 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
8051 parser state.
8052 (yyparse): Redefine macro to f_parse_internal.
8053 (pstate): New variable.
8054 (parse_number): Add "struct parser_state" argument.
8055 (type_exp, exp, subrange, typebase): Update calls to write_exp*
8056 and similars in order to use parser state.
8057 (parse_number): Adjust code to use parser state.
8058 (yylex): Likewise.
8059 (f_parse): New function.
8060 * f-lang.h: Forward declare "struct parser_state".
8061 (f_parse): Add "struct parser_state" argument.
8062 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
8063 parser state.
8064 (yyparse): Redefine macro for java_parse_internal.
8065 (pstate): New variable.
8066 (push_expression_name, push_expression_name, insert_exp): Add
8067 "struct parser_state" argument.
8068 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
8069 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
8070 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
8071 PostIncrementExpression, PostDecrementExpression,
8072 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
8073 UnaryExpressionNotPlusMinus, CastExpression,
8074 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
8075 RelationalExpression, EqualityExpression, AndExpression,
8076 ExclusiveOrExpression, InclusiveOrExpression,
8077 ConditionalAndExpression, ConditionalOrExpression,
8078 ConditionalExpression, Assignment, LeftHandSide): Update
8079 calls to write_exp* and similars in order to use parser state.
8080 (parse_number): Ajust code to use parser state.
8081 (yylex): Likewise.
8082 (java_parse): New function.
8083 (push_variable): Add "struct parser_state" argument. Adjust
8084 code to user parser state.
8085 (push_fieldnames, push_qualified_expression_name,
8086 push_expression_name, insert_exp): Likewise.
8087 * jv-lang.h: Forward declare "struct parser_state".
8088 (java_parse): Add "struct parser_state" argument.
8089 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
8090 parser state.
8091 (yyparse): Redefine macro to m2_parse_internal.
8092 (pstate): New variable.
8093 (type_exp, exp, fblock, variable, type): Update calls to
8094 write_exp* and similars to use parser state.
8095 (yylex): Likewise.
8096 (m2_parse): New function.
8097 * m2-lang.h: Forward declare "struct parser_state".
8098 (m2_parse): Add "struct parser_state" argument.
8099 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
8100 * objc-lang.h: Forward declare "struct parser_state".
8101 (end_msglist): Add "struct parser_state" argument.
8102 * p-exp.y (parse_type): Rewrite macro to use parser state.
8103 (yyparse): Redefine macro to pascal_parse_internal.
8104 (pstate): New variable.
8105 (parse_number): Add "struct parser_state" argument.
8106 (type_exp, exp1, exp, qualified_name, variable): Update calls to
8107 write_exp* and similars in order to use parser state.
8108 (parse_number, yylex): Adjust code to use parser state.
8109 (pascal_parse): New function.
8110 * p-lang.h: Forward declare "struct parser_state".
8111 (pascal_parse): Add "struct parser_state" argument.
8112 * go-exp.y (parse_type): Rewrite macro to use parser state.
8113 (yyparse): Redefine macro to go_parse_internal.
8114 (pstate): New variable.
8115 (parse_number): Add "struct parser_state" argument.
8116 (type_exp, exp1, exp, variable, type): Update calls to
8117 write_exp* and similars in order to use parser state.
8118 (parse_number, lex_one_token, classify_name, yylex): Adjust code
8119 to use parser state.
8120 (go_parse): Likewise.
8121 * go-lang.h: Forward declare "struct parser_state".
8122 (go_parse): Add "struct parser_state" argument.
8123
342587c4
DE
81242014-03-27 Doug Evans <dje@google.com>
8125
8126 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
8127
33e80786
DE
81282014-03-27 Doug Evans <dje@google.com>
8129
8130 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
8131 Remove argument abbrev_section. All callers updated.
8132
1dbab08b
DE
81332014-03-27 Doug Evans <dje@google.com>
8134
8135 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
8136 addr_base, ranges_base.
8137
318d3177
KS
81382014-03-26 Keith Seitz <keiths@redhat.com>
8139
8140 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
8141 types, not VAR_DOMAIN.
8142
1e54db15
SL
81432014-03-25 Sandra Loosemore <sandra@codesourcery.com>
8144
8145 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
8146 "ra" registers.
8147 * features/nios2-linux.c: Regenerated.
8148 * features/nios2.c: Regenerated.
8149
d3839ede
PA
81502014-03-25 Pedro Alves <palves@redhat.com>
8151
8152 * cli/cli-script.c (script_from_file): Force the interpreter to
8153 sync mode.
8154
7588d2ec
PL
81552014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
8156
8157 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
8158 small stack allocation.
8159
a6290449
TG
81602014-03-24 Tristan Gingold <gingold@adacore.com>
8161
8162 * darwin-nat.c (exc_server): Remove unused prototype.
8163 (darwin_dump_message): Correctly display data on x86_64.
8164 (darwin_encode_reply): Fix style.
8165 Add comments and fix indentation.
8166
31ae9d24 81672014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
69fa4030
PL
8168
8169 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
8170
6339bfc4
DE
81712014-03-22 Doug Evans <xdje42@gmail.com>
8172
8173 * infcmd.c: Whitespace fixes.
8174 (interrupt_command): Merge two function comments into one.
8175
0a07590b
DE
81762014-03-22 Doug Evans <xdje42@gmail.com>
8177
8178 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
8179 All uses updated.
8180
b55fbac4
YQ
81812014-03-22 Yao Qi <yao@codesourcery.com>
8182
8183 * remote.c (target_read_live_memory): Remove.
8184 (memory_xfer_live_readonly_partial): Rename it to
8185 remote_xfer_live_readonly_partial. Remove argument 'object'.
8186 All callers updated. Call remote_read_bytes_1
8187 instead of target_read_live_memory.
8188 * tracepoint.c (set_traceframe_number): Remove.
8189 (make_cleanup_restore_traceframe_number): Likewise .
8190 * tracepoint.h (set_traceframe_number): Remove declaration.
8191 (make_cleanup_restore_traceframe_number): Likewise.
8192
9217e74e
YQ
81932014-03-22 Yao Qi <yao@codesourcery.com>
8194
8195 * remote.c (remote_read_bytes): Move code on reading from the
8196 remote stub to ...
8197 (remote_read_bytes_1): ... here. New function.
8198
8acf9577
YQ
81992014-03-22 Yao Qi <yao@codesourcery.com>
8200
8201 * ctf.c (ctf_xfer_partial): Check the return value of
8202 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
8203 return TARGET_XFER_UNAVAILABLE.
8204 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8205 * target.c (target_read_live_memory): Move it to remote.c.
8206 (memory_xfer_live_readonly_partial): Likewise.
8207 (memory_xfer_partial_1): Move some code to remote_read_bytes.
8208 * remote.c (target_read_live_memory): Moved from target.c.
8209 (memory_xfer_live_readonly_partial): Likewise.
8210 (remote_read_bytes): Factored out from
8211 memory_xfer_partial_1.
8212
feef67ab
DE
82132014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
8214
8215 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
8216 NULL pointer.
8217
b65dc60b
PA
82182014-03-21 Pedro Alves <palves@redhat.com>
8219
8220 * infrun.c (normal_stop): Extend comment.
8221
b4ab256d
HZ
82222014-03-21 Hui Zhu <hui@codesourcery.com>
8223 Pedro Alves <palves@redhat.com>
8224
8225 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
8226 static buffer.
8227 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
8228 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
8229 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
8230
deba7593
MR
82312014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
8232
8233 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
8234 `z' formatted output modifier.
8235
1bff71c3
SDJ
82362014-03-20 Tom Tromey <tromey@redhat.com>
8237 Sergio Durigan Junior <sergiodj@redhat.com>
8238
8239 * probe.c (parse_probes): Turn assert into an ordinary error.
8240 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
8241 exceptions when parsing probes. Rearrange the code for clarity.
8242
90e28950
TT
82432014-03-20 Tom Tromey <tromey@redhat.com>
8244
8245 PR gdb/14135
8246 * top.c (execute_command): Only dispatch events if the command
8247 started the target.
8248
beb460e8
PA
82492014-03-20 Tom Tromey <tromey@redhat.com>
8250
8251 PR cli/15718
8252 * infcall.c: Include event-top.h.
8253 (run_inferior_call): Call async_disable_stdin if needed.
8254
99619bea
PA
82552014-03-20 Pedro Alves <palves@redhat.com>
8256
8257 * infrun.c (prepare_to_proceed): Delete.
8258 (thread_still_needs_step_over): New function.
8259 (find_thread_needs_step_over): New function.
8260 (proceed): If the current thread needs a step-over, set its
8261 steping_over_breakpoint flag. Adjust to use
8262 find_thread_needs_step_over instead of prepare_to_proceed.
8263 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
8264 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
8265 breakpoint.
8266 (switch_back_to_stepped_thread): Step over breakpoints of all
8267 threads not the stepping thread, before switching back to the
8268 stepping thread.
8269
2adfaa28
PA
82702014-03-20 Pedro Alves <palves@redhat.com>
8271
8272 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
8273 extern.
8274 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
8275 * infrun.c (saved_singlestep_ptid)
8276 (stepping_past_singlestep_breakpoint): Delete.
8277 (resume): Remove stepping_past_singlestep_breakpoint handling.
8278 (proceed): Store the prev_pc of the stepping thread too.
8279 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
8280 singlestep_pc.
8281 (enum infwait_states): Delete infwait_thread_hop_state.
8282 (struct execution_control_state) <hit_singlestep_breakpoint>: New
8283 field.
8284 (handle_inferior_event): Adjust.
8285 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
8286 handling and the thread-hop code. Before removing single-step
8287 breakpoints, check whether the thread hit a single-step breakpoint
8288 of another thread. If it did, the trap is not a random signal.
8289 (switch_back_to_stepped_thread): If the event thread hit a
8290 single-step breakpoint, unblock it before switching to the
8291 stepping thread. Handle the case of the stepped thread having
8292 advanced already.
8293 (keep_going): Handle the case of the current thread moving past a
8294 single-step breakpoint.
8295
31e77af2
PA
82962014-03-20 Pedro Alves <palves@redhat.com>
8297
8298 PR breakpoints/7143
8299 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
8300 are being stepped over.
8301 (breakpoint_address_match): Make extern.
8302 * breakpoint.h (breakpoint_address_match): New declaration.
8303 * inferior.h (stepping_past_instruction_at): New declaration.
8304 * infrun.c (struct step_over_info): New type.
8305 (step_over_info): New global.
8306 (set_step_over_info, clear_step_over_info)
8307 (stepping_past_instruction_at): New functions.
8308 (handle_inferior_event): Clear the step-over info when
8309 trap_expected is cleared.
8310 (resume): Remove now stale comment.
8311 (clear_proceed_status): Clear step-over info.
8312 (proceed): Adjust step-over handling to set or clear the step-over
8313 info instead of removing all breakpoints.
8314 (handle_signal_stop): When setting up a thread-hop, don't remove
8315 breakpoints here.
8316 (stop_stepping): Clear step-over info.
8317 (keep_going): Adjust step-over handling to set or clear step-over
8318 info and then always inserting breakpoints, instead of removing
8319 all breakpoints when stepping over one.
8320
b9f437de
PA
83212014-03-20 Pedro Alves <palves@redhat.com>
8322
8323 * infrun.c (previous_inferior_ptid): Adjust comment.
8324 (deferred_step_ptid): Delete.
8325 (infrun_thread_ptid_changed, prepare_to_proceed)
8326 (init_wait_for_inferior): Adjust.
8327 (handle_signal_stop): Delete deferred_step_ptid handling.
8328
06c868a8
JK
83292014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
8330
8331 PR gdb/15358
8332 * defs.h (sync_quit_force_run): New declaration.
8333 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
8334 * event-top.c (async_sigterm_handler): New declaration.
8335 (async_sigterm_token): New variable.
8336 (async_init_signals): Create also async_sigterm_token.
8337 (async_sigterm_handler): New function.
8338 (sync_quit_force_run): New variable.
8339 (handle_sigterm): Replace quit_force call by other calls.
8340 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
8341
dea80df0
MR
83422014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
8343
8344 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
8345 offset into SPE pseudo registers.
8346
0c7e1a46
PA
83472014-03-18 Pedro Alves <palves@redhat.com>
8348
8349 PR gdb/13860
8350 * inferior.h (print_stop_event): Declare.
8351 * infrun.c (print_stop_event): New, factored out from ...
8352 (normal_stop): ... this.
8353 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
8354 of bpstat_print/print_stack_frame.
8355
9c1fcd01
TT
83562014-03-17 Tom Tromey <tromey@redhat.com>
8357
8358 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
8359
11aa919a
PMR
83602014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
8361
8362 * ada-lang.c (decode_constrained_packed_array): Perform a
8363 minimal coercion for reference with coerce_ref instead of
8364 ada_coerce_ref.
8365
d4ccb5e0
TG
83662014-03-17 Tristan Gingold <gingold@adacore.com>
8367
8368 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
8369 (darwin_solib_create_inferior_hook): Emit a warning if version
8370 is unhandled.
8371
49840f2a
UW
83722014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
8373
8374 * python/py-value.c (get_field_flag): Cast flag_name argument to
8375 PyObject_GetAttrString to support Python 2.4.
8376
ed4123e5
JK
83772014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8378
8379 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
8380 (Global Maintainers): Remove Jan Kratochvil.
8381
d6b64346
PA
83822014-03-14 Pedro Alves <palves@redhat.com>
8383
8384 * inferior.h (terminal_ours_for_output): Rename to ...
8385 (child_terminal_ours_for_output): ... this.
8386 (terminal_save_ours): Rename to ...
8387 (child_terminal_save_ours): ... this.
8388 (terminal_ours): Rename to ...
8389 (child_terminal_ours): ... this.
8390 (terminal_inferior): Rename to ...
8391 (child_terminal_inferior): ... this.
8392 (terminal_init_inferior): Rename to ...
8393 (child_terminal_init_inferior): ... this.
8394 (terminal_init_inferior_with_pgrp): Rename to ...
8395 (child_terminal_init_inferior_with_pgrp): ... this.
8396 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
8397 (child_terminal_init_with_pgrp): ... this.
8398 (terminal_save_ours): Rename to ...
8399 (child_terminal_save_ours): ... this.
8400 (terminal_init_inferior): Rename to ...
8401 (child_terminal_init): ... this. Adjust.
8402 (terminal_inferior): Rename to ...
8403 (child_terminal_inferior): ... this.
8404 (terminal_ours_for_output): Rename to ...
8405 (child_terminal_ours_for_output): ... this. Adjust.
8406 (terminal_ours): Rename to ...
8407 (child_terminal_ours): ... this.
8408 (terminal_ours_1): Rename to ...
8409 (child_terminal_ours_1): ... this. Adjust.
8410 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
8411 * windows-nat.c (do_initial_windows_stuff): Adjust.
8412 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
8413 (gnu_terminal_init): ... this. Adjust.
8414 (gnu_target): Adjust.
8415 * inf-child.c (inf_child_target): Adjust.
8416
5a1e8c7a
DE
84172014-03-13 Doug Evans <xdje42@gmail.com>
8418
8419 PR guile/16612
8420 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
8421 new eq?-hashtab.
8422
350e1a76
DE
84232014-03-13 Doug Evans <xdje42@gmail.com>
8424
8425 * value.c (record_latest_value): Call release_value_or_incref
8426 instead of release_value.
8427
a69900ae
PA
84282014-03-13 Pedro Alves <palves@redhat.com>
8429
8430 * procfs.c (procfs_target): Don't override to_shortname,
8431 to_longname or to_doc.
8432
5db9f0bd
PA
84332014-03-13 Pedro Alves <palves@redhat.com>
8434
8435 * inf-child.c (inf_child_open, inf_child_target): Don't mention
8436 Unix in user visible strings.
8437
5e3a2c38
SS
84382014-03-12 Stan Shebs <stan@codesourcery.com>
8439
8440 * gdbtypes.h: Annotate comments for Doxygen, add a page
8441 block comment with some general info.
8442
8bc2fe48
PA
84432014-03-12 Pedro Alves <palves@redhat.com>
8444
8445 * infcmd.c (prepare_execution_command): New function, factored out
8446 from several execution commands.
8447 (run_command_1, continue_command, step_1, jump_command)
8448 (signal_command, until_command, advance_command, finish_command)
8449 (attach_command): Use prepare_execution_command.
8450
638c5f49
OJ
84512014-03-12 Omair Javaid <omair.javaid@linaro.org>
8452
8453 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
8454 (MAX_BPTS): Define.
8455 (MAX_WPTS): Define.
8456 (struct arm_linux_thread_points): Removed.
8457 (struct arm_linux_process_info): New.
8458 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
8459 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
8460 (arm_linux_find_breakpoints_by_tid): Removed.
8461 (struct arch_lwp_info): New.
8462 (arm_linux_find_process_pid): New functions.
8463 (arm_linux_add_process): New functions.
8464 (arm_linux_process_info_get): New functions.
8465 (arm_linux_forget_process): New function.
8466 (arm_linux_get_debug_reg_state): New function.
8467 (struct update_registers_data): New.
8468 (update_registers_callback): New function.
8469 (arm_linux_insert_hw_breakpoint1): Updated.
8470 (arm_linux_remove_hw_breakpoint1): Updated.
8471 (arm_linux_insert_hw_breakpoint): Updated.
8472 (arm_linux_remove_hw_breakpoint): Updated.
8473 (arm_linux_insert_watchpoint): Updated.
8474 (arm_linux_remove_watchpoint): Updated.
8475 (arm_linux_new_thread): Updated.
8476 (arm_linux_prepare_to_resume): New function.
8477 (arm_linux_new_fork): New function.
8478 (_initialize_arm_linux_nat): Updated.
8479
6d03af93
PA
84802014-03-12 Pedro Alves <palves@redhat.com>
8481
8482 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
8483
b3ccfe11
TT
84842014-03-12 Tom Tromey <tromey@redhat.com>
8485
8486 * inf-child.c (return_zero): New function.
8487 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
8488 * aix-thread.c (aix_thread_inferior_created): New function.
8489 (aix_thread_attach): Remove.
8490 (init_aix_thread_ops): Don't set to_attach.
8491 (_initialize_aix_thread): Register inferior_created observer.
8492 * corelow.c (init_core_ops): Don't set to_attach or
8493 to_create_inferior.
8494 * exec.c (init_exec_ops): Don't set to_attach or
8495 to_create_inferior.
8496 * infcmd.c (run_command_1): Use find_run_target. Make direct
8497 target calls.
8498 (attach_command): Use find_attach_target. Make direct target
8499 calls.
8500 * record-btrace.c (init_record_btrace_ops): Don't set
8501 to_create_inferior.
8502 * record-full.c (record_full_can_async_p, record_full_is_async_p):
8503 Remove.
8504 (init_record_full_ops, init_record_full_core_ops): Update. Don't
8505 set to_create_inferior.
8506 * target.c (complete_target_initialization): Add assertion.
8507 (target_create_inferior): Remove.
8508 (find_default_attach, find_default_create_inferior): Remove.
8509 (find_attach_target, find_run_target): New functions.
8510 (find_default_is_async_p, find_default_can_async_p)
8511 (target_supports_non_stop, target_attach): Remove.
8512 (init_dummy_target): Don't set to_create_inferior or
8513 to_supports_non_stop.
8514 * target.h (struct target_ops) <to_attach>: Add comment. Remove
8515 TARGET_DEFAULT_FUNC.
8516 <to_create_inferior>: Add comment.
8517 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
8518 TARGET_DEFAULT_RETURN.
8519 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
8520 (find_attach_target, find_run_target): Declare.
8521 (target_create_inferior): Remove.
8522 (target_has_execution_1): Update comment.
8523 (target_supports_non_stop): Remove.
8524 * target-delegates.c: Rebuild.
8525
91f83b02
PA
85262014-03-12 Pedro Alves <palves@redhat.com>
8527
8528 * inf-child.h: Update comment to not mention Unix.
8529
f1aea813
PA
85302014-03-12 Pedro Alves <palves@redhat.com>
8531
8532 * inf-child.c: Update top comment to not mention Unix. Add
8533 generic comment describing how this target is meant to be used.
8534 (inf_child_post_attach, inf_child_post_startup_inferior)
8535 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
8536 Unix in comment.
8537
ee8e9165
PA
85382014-03-12 Pedro Alves <palves@redhat.com>
8539
8540 * nto-procfs.c: Include inf-child.h.
8541 (procfs_ops): Delete global.
8542 (procfs_can_run): Delete method.
8543 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
8544 target pointer instead of referencing procfs_ops.
8545 (procfs_prepare_to_store): Delete.
8546 (init_procfs_ops): Delete function.
8547 (procfs_target): New function, based on init_procfs_ops, but
8548 inherit inf_child_target.
8549 (_initialize_procfs): Use procfs_target.
8550
51a9c8c5
PA
85512014-03-12 Pedro Alves <palves@redhat.com>
8552
8553 * windows-nat.c: Include inf-child.h.
8554 (windows_ops): Delete global.
8555 (windows_open, windows_prepare_to_store, windows_can_run): Delete
8556 methods.
8557 (init_windows_ops): Delete function.
8558 (windows_target): New function, based on init_windows_ops, but
8559 inherit inf_child_target.
8560 (_initialize_windows_nat): Use windows_target. Install x86
8561 specific target methods here.
8562
c1966e26
DE
85632014-03-10 Doug Evans <xdje42@gmail.com>
8564
8565 * guile/guile.c (call_initialize_gdb_module): New function.
8566 (initialize_guile): Replace call to scm_init_guile with call to
8567 scm_with_guile.
8568
023db19c
JB
85692014-03-10 Joel Brobecker <brobecker@adacore.com>
8570
8571 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
8572 in call to TYPE_CODE macro.
8573
5ec18f2b
JG
85742014-03-10 Jerome Guitton <guitton@adacore.com>
8575
8668be63
JB
8576 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
8577 Resolve tagged types to full view.
5ec18f2b 8578
7d03f2eb
HZ
85792014-03-10 Hui Zhu <hui@codesourcery.com>
8580
8581 * target.h (target_insert_breakpoint): Remove "hardware" from its
8582 comments.
8583
c5164cbc
DE
85842014-03-07 Doug Evans <dje@google.com>
8585
8586 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
8587
c4a3fee2
DE
85882014-03-07 Doug Evans <dje@google.com>
8589
8590 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
8591 Remove unused local comp_dir_attr. Assert exactly one of
8592 stub_comp_unit_die, stub_comp_dir is non-NULL.
8593
3156469c
JB
85942014-03-07 Joel Brobecker <brobecker@adacore.com>
8595
8596 * target.h (complete_target_initialization, add_target):
8597 Add comment.
8598
c1a7b7c6
PA
85992014-03-07 Pedro Alves <palves@redhat.com>
8600
8601 * go32-nat.c: Include inf-child.h.
8602 (go32_ops): Delete global.
8603 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
8604 Delete methods.
8605 (go32_create_inferior): Push the passed in target pointer instead
8606 of referencing go32_ops.
8607 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
8608 (go32_target): New function, based on init_go32_ops, but inherit
8609 inf_child_target.
8610 (_initialize_go32_nat): Use go32_target. Move parts of
8611 init_go32_ops here.
8612
d3c1a85f
JB
86132014-03-06 Joel Brobecker <brobecker@adacore.com>
8614
8615 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
8616 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
8617 SYMBOL_VALUE_ADDRESS.
8618 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
8619
5fa1d40e
YQ
86202014-03-06 Yao Qi <yao@codesourcery.com>
8621
8622 * breakpoint.c (get_tracepoint_by_number): Remove argument
8623 optional_p. All callers updated. Adjust comments. Update
8624 output message.
8625 * breakpoint.h (get_tracepoint_by_number): Update declaration.
8626
0c13193f
YQ
86272014-03-06 Yao Qi <yao@codesourcery.com>
8628
8629 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
8630 early if get_number returns zero. Use 'p' instead of 'args'.
8631
2217da06
YQ
86322014-03-06 Yao Qi <yao@codesourcery.com>
8633
8634 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
8635 message.
8636
cc3da688
YQ
86372014-03-06 Yao Qi <yao@codesourcery.com>
8638
8639 PR breakpoints/16508
8640 * tracepoint.c (check_trace_running): New function.
8641 (trace_find_command): Move code to check_trace_running and
8642 call check_trace_running.
8643 (trace_find_pc_command): Likewise.
8644 (trace_find_tracepoint_command): Likewise.
8645 (trace_find_line_command): Likewise.
8646 (trace_find_range_command): Likewise.
8647 * tracepoint.h (check_trace_running): Likewise.
8648 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
8649
6a5f844b
YQ
86502014-03-06 Yao Qi <yao@codesourcery.com>
8651
8652 * target.h (struct target_ops) <to_traceframe_info>: Use
8653 TARGET_DEFAULT_NORETURN (tcomplain ()).
8654 * target-delegates.c: Regenerated.
8655
0f26cec1
PA
86562014-03-05 Pedro Alves <palves@redhat.com>
8657
8658 PR gdb/16575
8659 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
8660 void. Update comment.
8661 (dcache_xfer_memory): Delete.
8662 (dcache_read_memory_partial): New, based on the read bits of
8663 dcache_xfer_memory.
8664 (dcache_update): Add status parameter. Use ULONGEST for len, and
8665 adjust. Discard cache lines if the reason for the update was
8666 error.
8667 * dcache.h (dcache_xfer_memory): Delete declaration.
8668 (dcache_read_memory_partial): New declaration.
8669 (dcache_update): Update prototype.
8670 * target.c (raw_memory_xfer_partial): Update the dcache here.
8671 (memory_xfer_partial_1): Don't handle dcache writes here.
8672
b2b255bd
MF
86732014-03-05 Mike Frysinger <vapier@gentoo.org>
8674
8675 * remote-sim.c (gdbsim_load): Add const to prog.
8676
5d9cf8a4
TT
86772014-03-03 Tom Tromey <tromey@redhat.com>
8678
8679 * elfread.c (probe_key): Change to bfd_data.
8680 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
8681 now per-BFD, not per-objfile.
8682 * stap-probe.c (stap_probe_destroy): Update comment.
8683 (handle_stap_probe): Allocate on the per-BFD obstack.
8684
729662a5
TT
86852014-03-03 Tom Tromey <tromey@redhat.com>
8686
8687 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
8688 * breakpoint.c (create_longjmp_master_breakpoint): Use
8689 get_probe_address.
8690 (add_location_to_breakpoint, bkpt_probe_insert_location)
8691 (bkpt_probe_remove_location): Update.
8692 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
8693 * elfread.c (elf_symfile_relocate_probe): Remove.
8694 (elf_probe_fns): Update.
8695 (insert_exception_resume_breakpoint): Change type of "probe"
8696 parameter to bound_probe.
8697 (check_exception_resume): Update.
8698 * objfiles.c (objfile_relocate1): Don't relocate probes.
8699 * probe.c (bound_probe_s): New typedef.
8700 (parse_probes): Use get_probe_address. Set sal's objfile.
8701 (find_probe_by_pc): Return a bound_probe.
8702 (collect_probes): Return a VEC(bound_probe_s).
8703 (compare_probes): Update.
8704 (gen_ui_out_table_header_info): Change type of "probes"
8705 parameter. Update.
8706 (info_probes_for_ops): Update.
8707 (get_probe_address): New function.
8708 (probe_safe_evaluate_at_pc): Update.
8709 * probe.h (struct probe_ops) <get_probe_address>: New field.
8710 <set_semaphore, clear_semaphore>: Add objfile parameter.
8711 (struct probe) <objfile>: Remove field.
8712 <arch>: New field.
8713 <address>: Update comment.
8714 (struct bound_probe): New.
8715 (find_probe_by_pc): Return a bound_probe.
8716 (get_probe_address): Declare.
8717 * solib-svr4.c (struct probe_and_action) <address>: New field.
8718 (hash_probe_and_action, equal_probe_and_action): Update.
8719 (register_solib_event_probe): Add address parameter.
8720 (solib_event_probe_at): Update.
8721 (svr4_create_probe_breakpoints): Add objfile parameter. Use
8722 get_probe_address.
8723 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
8724 (stap_get_probe_address): New function.
8725 (stap_can_evaluate_probe_arguments, compute_probe_arg)
8726 (compile_probe_arg): Update.
8727 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
8728 address.
8729 (handle_stap_probe): Don't relocate the probe.
8730 (stap_relocate): Remove.
8731 (stap_gen_info_probes_table_values): Update.
8732 (stap_probe_ops): Remove stap_relocate.
8733 * symfile-debug.c (debug_sym_relocate_probe): Remove.
8734 (debug_sym_probe_fns): Update.
8735 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
8736 * symtab.c (init_sal): Use memset.
8737 * symtab.h (struct symtab_and_line) <objfile>: New field.
8738 * tracepoint.c (start_tracing, stop_tracing): Update.
8739
ff887920
TT
87402014-03-03 Tom Tromey <tromey@redhat.com>
8741
8742 * probe.h (parse_probes, find_probe_by_pc)
8743 (find_probes_in_objfile): Fix comments.
8744
f0407826
DE
87452014-03-02 Doug Evans <xdje42@gmail.com>
8746
8747 * infrun.c (handle_signal_stop): Replace test for
8748 TARGET_WAITKIND_STOPPED with an assert.
8749
35e6a711
DE
87502014-03-02 Doug Evans <xdje42@gmail.com>
8751
8752 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
8753
667f9d0b
DE
87542014-03-02 Doug Evans <xdje42@gmail.com>
8755
8756 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
8757
dc92ace0
MK
87582014-03-01 Mark Kettenis <kettenis@gnu.org>
8759
8760 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
8761
a900370f
MK
87622014-03-01 Mark Kettenis <kettenis@gnu.org>
8763
8764 * i386obsd-nat.c: Include "obsd-nat.h".
8765 (_initialize_i386obsd_nat): Call obsd_add_target instead of
8766 add_target.
8767 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8768
b72a7981
MK
87692014-03-01 Mark Kettenis <kettenis@gnu.org>
8770
8771 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
8772
96c70aba
MK
87732014-03-01 Mark Kettenis <kettenis@gnu.org>
8774
8775 * mips64obsd-nat.c: Include "obsd-nath".
8776 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
8777 add_target
8778 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8779
874a80af
MK
87802014-03-01 Mark Kettenis <kettenis@gnu.org>
8781
8fd408f1
MK
8782 * amd64obsd-nat.c: Include "obsd-nat,h.
8783 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
8784 add_target.
874a80af
MK
8785 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8786
9cf95373
SC
87872014-02-28 Siva Chandra Reddy <sivachandra@google.com>
8788
8789 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
8790 (find_overload_match): Update call to find_oload_champ.
8791 (find_oload_champ_namespace_loop): Likewise
8792
863e4da4
MK
87932014-02-28 Mark Kettenis <kettenis@gnu.org>
8794
025cac40
MK
8795 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
8796
1ed586ce
MK
8797 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
8798 * config/sparc/obsd64.mh: New file.
8799 * sparc64obsd-nat.c: New file.
8800
863e4da4
MK
8801 * obsd-nat.h: New file.
8802 * obsd-nat.c: New file.
8803 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
8804 (ALLDEPFILES): Add obsd-nat.c.
8805
89de4da4
TT
88062014-02-28 Tom Tromey <tromey@redhat.com>
8807
8808 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
8809 * cli-out.h (cli_ui_out_impl): Now const.
8810 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
8811 * ui-out.c (struct ui_out) <impl>: Now const.
8812 (default_ui_out_impl): Now const.
8813 (ui_out_new): Make 'impl' parameter const.
8814 * ui-out.h (ui_out_new): Update.
8815
c725e7b6
MK
88162014-02-27 Mark Kettenis <kettenis@gnu.org>
8817
8818 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
8819
670b46b3
MK
88202014-02-27 Mark Kettenis <kettenis@gnu.org>
8821
8822 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
8823
c91550fc
JK
88242014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
8825
8826 Additional PR 8882 fix.
8827 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
8828
2fa0369e
PA
88292014-02-27 Pedro Alves <palves@redhat.com>
8830
8831 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
8832 isn't set.
8833
d632a097
PA
88342014-02-27 Pedro Alves <palves@redhat.com>
8835
8836 PR 12702
8837 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
8838 * nat/linux-waitpid.c: Include string.h.
8839 (status_to_str): Moved here and made extern.
8840 * nat/linux-waitpid.h (status_to_str): New declaration.
8841
2ebd5a35
HZ
88422014-02-27 Hui Zhu <hui@codesourcery.com>
8843
8844 PR 12702
8845 * infrun.c (ptid_match): Move ...
8846 * common/ptid.c (ptid_match): ... here.
8847 * inferior.h (ptid_match): Move ...
8848 * common/ptid.h (ptid_match): ... here.
8849
3cdd631f
MK
88502014-02-27 Mark Kettenis <kettenis@gnu.org>
8851
8852 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
8853 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
8854 gdb_target_obs.
8855
bee30a64
MK
88562014-02-27 Mark Kettenis <kettenis@gnu.org>
8857
8858 * obsd-tdep.c (obsd_auxv_parse): New function.
8859 (obsd_init_abi): Set auxv_parse.
27a48a92
MK
8860
8861 * gdbarch.sh (auxv_parse): New.
8862 * gdbarch.h: Regenerated.
8863 * gdbarch.c: Regenerated.
8864 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
8865
7a5a839f
LC
88662014-02-26 Ludovic Courtès <ludo@gnu.org>
8867
8868 * guile/scm-value.c (gdbscm_history_append_x): New function.
8869 (value_functions): Add it.
8870
31aa7e4e
JB
88712014-02-27 Joel Brobecker <brobecker@adacore.com>
8872
8873 * dwarf2read.c (attr_value_as_address): New function.
8874 (dwarf2_find_base_address, read_call_site_scope): Use
8875 attr_value_as_address in place of DW_ADDR.
8876 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
8877 the low and high addresses. Slight rework of the handling
8878 of the high pc being a constant form, and limit it to
8879 DWARF verson 4 or higher.
8880 (dwarf2_record_block_ranges): Likewise.
8881 (read_partial_die): Likewise.
8882 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
8883
9b333ba3
TT
88842014-02-26 Tom Tromey <tromey@redhat.com>
8885
8886 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
8887
5f6cac40
TT
88882014-02-26 Tom Tromey <tromey@redhat.com>
8889
8890 * elfread.c (elf_read_minimal_symbols): Return early if
8891 minimal symbols have already been read. Add "ei" parameter.
8892 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
8893 * minsyms.c (prim_record_minimal_symbol_full): Update.
8894 * objfiles.h (struct objstats) <n_minsyms>: Move...
8895 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
8896 * symmisc.c (print_objfile_statistics): Update.
8897
2750ef27
TT
88982014-02-26 Tom Tromey <tromey@redhat.com>
8899
8900 * elfread.c (elf_read_minimal_symbols): New function, from
8901 elf_symfile_read.
8902 (elf_symfile_read): Call it.
8903
34643a32
TT
89042014-02-26 Tom Tromey <tromey@redhat.com>
8905
8906 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
8907 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
8908 (lookup_minimal_symbol_solib_trampoline)
8909 (lookup_minimal_symbol_by_pc_section_1)
8910 (lookup_minimal_symbol_and_objfile): Update.
8911 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
8912 Don't allocate a minimal symbol if minsyms have already been read.
8913 (build_minimal_symbol_hash_tables): Update.
8914 (install_minimal_symbols): Do nothing if minsyms already read.
8915 Use the per-BFD obstack.
8916 (terminate_minimal_symbol_table): Use the per-BFD obstack.
8917 * objfiles.c (allocate_objfile): Call
8918 terminate_minimal_symbol_table later.
8919 (have_minimal_symbols): Update.
8920 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
8921 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
8922 Move from struct objfile.
8923 <minsyms_read>: New field.
8924 (struct objfile) <msymbols, minimal_symbol_count,
8925 msymbol_hash, msymbol_demangled_hash>: Move.
8926 (ALL_OBJFILE_MSYMBOLS): Update.
8927 * symfile.c (read_symbols): Set minsyms_read.
8928 (reread_symbols): Update.
8929 * symmisc.c (dump_objfile, dump_msymbols): Update.
8930
2273f0ac
TT
89312014-02-26 Tom Tromey <tromey@redhat.com>
8932
8933 * minsyms.c (msymbols_sort): Remove.
8934 * minsyms.h (msymbols_sort): Remove.
8935 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
8936 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
8937 * elfread.c (elf_symtab_read): Don't add section offsets.
8938 * xcoffread.c (record_minimal_symbol): Don't add section offset
8939 to minimal symbol address.
8940 * somread.c (text_offset, data_offset): Remove.
8941 (som_symtab_read): Don't add section offsets to minimal symbol
8942 addresses.
8943 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
8944 Don't add section offsets to minimal symbols.
8945 * coffread.c (coff_symtab_read): Don't add section offsets
8946 to minimal symbol addresses.
8947 * machoread.c (macho_symtab_add_minsym): Don't add section offset
8948 to minimal symbol addresses.
8949 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
8950 section offset to minimal symbol addresses.
8951 * mdebugread.c (parse_partial_symbols): Don't add section
8952 offset to minimal symbol addresses.
8953 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
8954 offset to minimal symbol addresses.
8955
77e371c0
TT
89562014-02-26 Tom Tromey <tromey@redhat.com>
8957
8958 * ada-lang.c (ada_main_name): Update.
8959 (ada_add_standard_exceptions): Update.
8960 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
8961 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8962 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
8963 * auxv.c (ld_so_xfer_auxv): Update.
8964 * avr-tdep.c (avr_scan_prologue): Update.
8965 * ax-gdb.c (gen_var_ref): Update.
8966 * blockframe.c (get_pc_function_start)
8967 (find_pc_partial_function_gnu_ifunc): Update.
8968 * breakpoint.c (create_overlay_event_breakpoint)
8969 (create_longjmp_master_breakpoint)
8970 (create_std_terminate_master_breakpoint)
8971 (create_exception_master_breakpoint): Update.
8972 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8973 * c-valprint.c (c_val_print): Update.
8974 * coff-pe-read.c (add_pe_forwarded_sym): Update.
8975 * common/agent.c (agent_look_up_symbols): Update.
8976 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
8977 * dwarf2loc.c (call_site_to_target_addr): Update.
8978 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
8979 * elfread.c (elf_gnu_ifunc_record_cache)
8980 (elf_gnu_ifunc_resolve_by_got): Update.
8981 * findvar.c (default_read_var_value): Update.
8982 * frame.c (inside_main_func): Update.
8983 * frv-tdep.c (frv_frame_this_id): Update.
8984 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8985 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
8986 Update.
8987 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
8988 (hppa_hpux_find_dummy_bpaddr): Update.
8989 * hppa-tdep.c (hppa_symbol_address): Update.
8990 * infcmd.c (until_next_command): Update.
8991 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
8992 Update.
8993 * linespec.c (minsym_found, add_minsym): Update.
8994 * linux-nat.c (get_signo): Update.
8995 * linux-thread-db.c (inferior_has_bug): Update.
8996 * m32c-tdep.c (m32c_return_value)
8997 (m32c_m16c_address_to_pointer): Update.
8998 * m32r-tdep.c (m32r_frame_this_id): Update.
8999 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9000 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9001 * maint.c (maintenance_translate_address): Update.
9002 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
9003 (frob_address): New function.
9004 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
9005 frob_address. Rename parameter to "pc_in".
9006 (compare_minimal_symbols, compact_minimal_symbols): Use raw
9007 addresses.
9008 (find_solib_trampoline_target, minimal_symbol_upper_bound):
9009 Update.
9010 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9011 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
9012 * objc-lang.c (find_objc_msgsend): Update.
9013 * objfiles.c (objfile_relocate1): Update.
9014 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9015 * p-valprint.c (pascal_val_print): Update.
9016 * parse.c (write_exp_msymbol): Update.
9017 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
9018 (ppc_elfv2_skip_entrypoint): Update.
9019 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9020 * printcmd.c (build_address_symbolic, msym_info)
9021 (address_info): Update.
9022 * proc-service.c (ps_pglobal_lookup): Update.
9023 * psymtab.c (find_pc_sect_psymtab_closer)
9024 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
9025 Change msymbol parameter to bound_minimal_symbol.
9026 * ravenscar-thread.c (get_running_thread_id): Update.
9027 * remote.c (remote_check_symbols): Update.
9028 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
9029 address.
9030 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9031 * solib-dsbt.c (lm_base): Update.
9032 * solib-frv.c (lm_base, main_got): Update.
9033 * solib-irix.c (locate_base): Update.
9034 * solib-som.c (som_solib_create_inferior_hook)
9035 (link_map_start): Update.
9036 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
9037 * solib-svr4.c (elf_locate_base, enable_break): Update.
9038 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
9039 (flush_ea_cache): Update.
9040 * stabsread.c (define_symbol, scan_file_globals): Update.
9041 * stack.c (find_frame_funname): Update.
9042 * symfile-debug.c (debug_qf_expand_symtabs_matching)
9043 (debug_qf_find_pc_sect_symtab): Update.
9044 * symfile.c (simple_read_overlay_table)
9045 (simple_overlay_update): Update.
9046 * symfile.h (struct quick_symbol_functions)
9047 <find_pc_sect_symtab>: Change type of msymbol to
9048 bound_minimal_symbol.
9049 * symmisc.c (dump_msymbols): Update.
9050 * symtab.c (find_pc_sect_symtab_via_partial)
9051 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
9052 (search_symbols, print_msymbol_info): Update.
9053 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
9054 (MSYMBOL_VALUE_ADDRESS): Redefine.
9055 (BMSYMBOL_VALUE_ADDRESS): New macro.
9056 * tracepoint.c (scope_info): Update.
9057 * tui/tui-disasm.c (tui_find_disassembly_address)
9058 (tui_get_begin_asm_address): Update.
9059 * valops.c (find_function_in_inferior): Update.
9060 * value.c (value_static_field, value_fn_field): Update.
9061
3b7344d5
TT
90622014-02-26 Tom Tromey <tromey@redhat.com>
9063
9064 * ada-lang.c (ada_update_initial_language): Update.
9065 (ada_main_name, ada_has_this_exception_support): Update.
9066 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
9067 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9068 * arm-tdep.c (arm_skip_stub): Update.
9069 * auxv.c (ld_so_xfer_auxv): Update.
9070 * avr-tdep.c (avr_scan_prologue): Update.
9071 * ax-gdb.c (gen_var_ref): Update.
9072 * breakpoint.c (struct breakpoint_objfile_data)
9073 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
9074 type to bound_minimal_symbol.
9075 (create_overlay_event_breakpoint)
9076 (create_longjmp_master_breakpoint)
9077 (create_std_terminate_master_breakpoint)
9078 (create_exception_master_breakpoint): Update.
9079 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9080 * c-exp.y (classify_name): Update.
9081 * coffread.c (coff_symfile_read): Update.
9082 * common/agent.c (agent_look_up_symbols): Update.
9083 * d-lang.c (d_main_name): Update.
9084 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
9085 * dec-thread.c (enable_dec_thread): Update.
9086 * dwarf2loc.c (call_site_to_target_addr): Update.
9087 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
9088 * eval.c (evaluate_subexp_standard): Update.
9089 * findvar.c (struct minsym_lookup_data) <result>: Change type
9090 to bound_minimal_symbol.
9091 <objfile>: Remove.
9092 (minsym_lookup_iterator_cb, default_read_var_value): Update.
9093 * frame.c (inside_main_func): Update.
9094 * frv-tdep.c (frv_frame_this_id): Update.
9095 * gcore.c (call_target_sbrk): Update.
9096 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9097 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
9098 Update.
9099 * go-lang.c (go_main_name): Update.
9100 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
9101 (hppa_hpux_find_import_stub_for_addr): Update.
9102 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
9103 Update. Change return type.
9104 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
9105 type.
9106 * jit.c (jit_breakpoint_re_set_internal): Update.
9107 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
9108 Update.
9109 * linux-nat.c (get_signo): Update.
9110 * linux-thread-db.c (inferior_has_bug): Update
9111 * m32c-tdep.c (m32c_return_value)
9112 (m32c_m16c_address_to_pointer): Update.
9113 * m32r-tdep.c (m32r_frame_this_id): Update.
9114 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9115 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9116 * minsyms.c (lookup_minimal_symbol_internal): Rename to
9117 lookup_minimal_symbol. Change return type.
9118 (lookup_minimal_symbol): Remove.
9119 (lookup_bound_minimal_symbol): Update.
9120 (lookup_minimal_symbol_text): Change return type.
9121 (lookup_minimal_symbol_solib_trampoline): Change return type.
9122 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
9123 (lookup_minimal_symbol_solib_trampoline): Change return type.
9124 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9125 * objc-lang.c (lookup_objc_class, lookup_child_selector)
9126 (value_nsstring, find_imps): Update.
9127 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9128 * p-lang.c (pascal_main_name): Update.
9129 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
9130 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9131 * proc-service.c (ps_pglobal_lookup): Update.
9132 * ravenscar-thread.c (get_running_thread_msymbol): Change
9133 return type.
9134 (has_ravenscar_runtime, get_running_thread_id): Update.
9135 * remote.c (remote_check_symbols): Update.
9136 * sol-thread.c (ps_pglobal_lookup): Update.
9137 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9138 * solib-dsbt.c (lm_base): Update.
9139 * solib-frv.c (lm_base, frv_relocate_section_addresses):
9140 Update.
9141 * solib-irix.c (locate_base): Update.
9142 * solib-som.c (som_solib_create_inferior_hook)
9143 (som_solib_desire_dynamic_linker_symbols, link_map_start):
9144 Update.
9145 * solib-spu.c (spu_enable_break): Update.
9146 * solib-svr4.c (elf_locate_base, enable_break): Update.
9147 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
9148 (flush_ea_cache): Update.
9149 * stabsread.c (define_symbol): Update.
9150 * symfile.c (simple_read_overlay_table): Update.
9151 * symtab.c (find_pc_sect_line): Update.
9152 * tracepoint.c (scope_info): Update.
9153 * tui-disasm.c (tui_get_begin_asm_address): Update.
9154 * value.c (value_static_field): Update.
9155
40c1a007
TT
91562014-02-26 Tom Tromey <tromey@redhat.com>
9157
9158 * minsyms.c (prim_record_minimal_symbol_full): Use
9159 SET_MSYMBOL_VALUE_ADDRESS.
9160 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
9161 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
9162 SET_MSYMBOL_VALUE_ADDRESS.
9163 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
9164 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
9165
efd66ac6
TT
91662014-02-26 Tom Tromey <tromey@redhat.com>
9167
9168 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
9169 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
9170 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
9171 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
9172 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
9173 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
9174 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
9175 * ada-lang.c (ada_main_name): Update.
9176 (ada_lookup_simple_minsym): Update.
9177 (ada_make_symbol_completion_list): Update.
9178 (ada_add_standard_exceptions): Update.
9179 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
9180 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9181 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
9182 * arm-tdep.c (skip_prologue_function): Update.
9183 (arm_skip_stack_protector, arm_skip_stub): Update.
9184 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
9185 (arm_wince_skip_main_prologue): Update.
9186 * auxv.c (ld_so_xfer_auxv): Update.
9187 * avr-tdep.c (avr_scan_prologue): Update.
9188 * ax-gdb.c (gen_var_ref): Update.
9189 * block.c (call_site_for_pc): Update.
9190 * blockframe.c (get_pc_function_start): Update.
9191 (find_pc_partial_function_gnu_ifunc): Update.
9192 * breakpoint.c (create_overlay_event_breakpoint): Update.
9193 (create_longjmp_master_breakpoint): Update.
9194 (create_std_terminate_master_breakpoint): Update.
9195 (create_exception_master_breakpoint): Update.
9196 (resolve_sal_pc): Update.
9197 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9198 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
9199 Update.
9200 * c-valprint.c (c_val_print): Update.
9201 * coff-pe-read.c (add_pe_forwarded_sym): Update.
9202 * coffread.c (coff_symfile_read): Update.
9203 * common/agent.c (agent_look_up_symbols): Update.
9204 * dbxread.c (find_stab_function_addr): Update.
9205 (end_psymtab): Update.
9206 * dwarf2loc.c (call_site_to_target_addr): Update.
9207 (func_verify_no_selftailcall): Update.
9208 (tailcall_dump): Update.
9209 (call_site_find_chain_1): Update.
9210 (dwarf_expr_reg_to_entry_parameter): Update.
9211 * elfread.c (elf_gnu_ifunc_record_cache): Update.
9212 (elf_gnu_ifunc_resolve_by_got): Update.
9213 * f-valprint.c (info_common_command): Update.
9214 * findvar.c (read_var_value): Update.
9215 * frame.c (get_prev_frame_1): Update.
9216 (inside_main_func): Update.
9217 * frv-tdep.c (frv_skip_main_prologue): Update.
9218 (frv_frame_this_id): Update.
9219 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9220 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
9221 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
9222 (gnuv3_skip_trampoline): Update.
9223 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
9224 (hppa64_hpux_in_solib_call_trampoline): Update.
9225 (hppa_hpux_skip_trampoline_code): Update.
9226 (hppa64_hpux_search_dummy_call_sequence): Update.
9227 (hppa_hpux_find_import_stub_for_addr): Update.
9228 (hppa_hpux_find_dummy_bpaddr): Update.
9229 * hppa-tdep.c (hppa_symbol_address)
9230 (hppa_lookup_stub_minimal_symbol): Update.
9231 * i386-tdep.c (i386_skip_main_prologue): Update.
9232 (i386_pe_skip_trampoline_code): Update.
9233 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
9234 * infcall.c (get_function_name): Update.
9235 * infcmd.c (until_next_command): Update.
9236 * jit.c (jit_breakpoint_re_set_internal): Update.
9237 (jit_inferior_init): Update.
9238 * linespec.c (minsym_found): Update.
9239 (add_minsym): Update.
9240 * linux-fork.c (info_checkpoints_command): Update.
9241 * linux-nat.c (get_signo): Update.
9242 * linux-thread-db.c (inferior_has_bug): Update.
9243 * m32c-tdep.c (m32c_return_value): Update.
9244 (m32c_m16c_address_to_pointer): Update.
9245 (m32c_m16c_pointer_to_address): Update.
9246 * m32r-tdep.c (m32r_frame_this_id): Update.
9247 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9248 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9249 * maint.c (maintenance_translate_address): Update.
9250 * minsyms.c (add_minsym_to_hash_table): Update.
9251 (add_minsym_to_demangled_hash_table): Update.
9252 (msymbol_objfile): Update.
9253 (lookup_minimal_symbol): Update.
9254 (iterate_over_minimal_symbols): Update.
9255 (lookup_minimal_symbol_text): Update.
9256 (lookup_minimal_symbol_by_pc_name): Update.
9257 (lookup_minimal_symbol_solib_trampoline): Update.
9258 (lookup_minimal_symbol_by_pc_section_1): Update.
9259 (lookup_minimal_symbol_and_objfile): Update.
9260 (prim_record_minimal_symbol_full): Update.
9261 (compare_minimal_symbols): Update.
9262 (compact_minimal_symbols): Update.
9263 (build_minimal_symbol_hash_tables): Update.
9264 (install_minimal_symbols): Update.
9265 (terminate_minimal_symbol_table): Update.
9266 (find_solib_trampoline_target): Update.
9267 (minimal_symbol_upper_bound): Update.
9268 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9269 * mips-tdep.c (mips_stub_frame_sniffer): Update.
9270 (mips_skip_pic_trampoline_code): Update.
9271 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
9272 * objc-lang.c (selectors_info): Update.
9273 (classes_info): Update.
9274 (find_methods): Update.
9275 (find_imps): Update.
9276 (find_objc_msgsend): Update.
9277 * objfiles.c (objfile_relocate1): Update.
9278 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
9279 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9280 * p-valprint.c (pascal_val_print): Update.
9281 * parse.c (write_exp_msymbol): Update.
9282 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
9283 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
9284 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9285 * printcmd.c (build_address_symbolic): Update.
9286 (sym_info): Update.
9287 (address_info): Update.
9288 * proc-service.c (ps_pglobal_lookup): Update.
9289 * psymtab.c (find_pc_sect_psymtab_closer): Update.
9290 (find_pc_sect_psymtab): Update.
9291 * python/py-framefilter.c (py_print_frame): Update.
9292 * ravenscar-thread.c (get_running_thread_id): Update.
9293 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
9294 Update.
9295 * remote.c (remote_check_symbols): Update.
9296 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
9297 (rs6000_skip_trampoline_code): Update.
9298 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
9299 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9300 * solib-dsbt.c (lm_base): Update.
9301 * solib-frv.c (lm_base): Update.
9302 (main_got): Update.
9303 * solib-irix.c (locate_base): Update.
9304 * solib-som.c (som_solib_create_inferior_hook): Update.
9305 (som_solib_desire_dynamic_linker_symbols): Update.
9306 (link_map_start): Update.
9307 * solib-spu.c (spu_enable_break): Update.
9308 (ocl_enable_break): Update.
9309 * solib-svr4.c (elf_locate_base): Update.
9310 (enable_break): Update.
9311 * spu-tdep.c (spu_get_overlay_table): Update.
9312 (spu_catch_start): Update.
9313 (flush_ea_cache): Update.
9314 * stabsread.c (define_symbol): Update.
9315 (scan_file_globals): Update.
9316 * stack.c (find_frame_funname): Update.
9317 (frame_info): Update.
9318 * symfile.c (simple_read_overlay_table): Update.
9319 (simple_overlay_update): Update.
9320 * symmisc.c (dump_msymbols): Update.
9321 * symtab.c (fixup_section): Update.
9322 (find_pc_sect_line): Update.
9323 (skip_prologue_sal): Update.
9324 (search_symbols): Update.
9325 (print_msymbol_info): Update.
9326 (rbreak_command): Update.
9327 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
9328 (completion_list_objc_symbol): Update.
9329 (default_make_symbol_completion_list_break_on): Update.
9330 * tracepoint.c (scope_info): Update.
9331 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
9332 (tui_get_begin_asm_address): Update.
9333 * valops.c (find_function_in_inferior): Update.
9334 * value.c (value_static_field): Update.
9335 (value_fn_field): Update.
9336
50e65b17
TT
93372014-02-26 Tom Tromey <tromey@redhat.com>
9338
9339 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
9340 bound minimal symbols. Move code that knows about minsym
9341 table layout...
9342 * minsyms.c (minimal_symbol_upper_bound): ... here. New
9343 function.
9344 * minsyms.h (minimal_symbol_upper_bound): Declare.
9345 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
9346 minimal_symbol_upper_bound.
9347
1b588015
JB
93482014-02-27 Joel Brobecker <brobecker@adacore.com>
9349
9350 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
9351 Use the type's name if its basic type does not have a tag.
9352
dbb9c2b1
JB
93532014-02-27 Joel Brobecker <brobecker@adacore.com>
9354
9355 * dwarf2read.c (read_subrange_type): Add comment.
9356
55426c9d
JB
93572014-02-27 Joel Brobecker <brobecker@adacore.com>
9358
9359 * dwarf2read.c (update_enumeration_type_from_children): New
9360 function, mostly extracted from process_structure_scope.
9361 (read_enumeration_type): Call update_enumeration_type_from_children.
9362 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
9363 and flag_flag_enum fields.
9364
f2fce0ca
PA
93652014-02-26 Pedro Alves <palves@redhat.com>
9366
9367 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
9368 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
9369 to_xfer_partial method.
9370
7a44e40e
PA
93712014-02-26 Pedro Alves <palves@redhat.com>
9372
9373 * target.c (complete_target_initialization): Don't install
9374 default_xfer_partial as to_xfer_partial hook.
9375 (nomemory): Delete.
9376 (update_current_target): Don't INHERIT nor de_fault
9377 deprecated_xfer_memory. Delete de_fault macro.
9378 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
9379 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
9380 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
9381 field.
9382
bd265cd0
PA
93832014-02-26 Pedro Alves <palves@redhat.com>
9384
9385 * go32-nat.c (my_write_child): New function.
9386 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
9387 (go32_xfer_partial): New function.
9388 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
9389 Instead install a to_xfer_partial hook.
9390
9d46c4e5
PA
93912014-02-26 Pedro Alves <palves@redhat.com>
9392
9393 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
9394 to_xfer_partial helper. Rewrite.
9395 (procfs_xfer_partial): New function.
9396 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
9397 Install a to_xfer_partial hook.
9398
a1583b1f
PA
93992014-02-26 Pedro Alves <palves@redhat.com>
9400
9401 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
9402 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
9403 (m32r_xfer_partial): New function.
9404 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
9405 Install a to_xfer_partial hook.
9406
6df1b29f
PA
94072014-02-26 Pedro Alves <palves@redhat.com>
9408
9409 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
9410 helper.
9411 (mips_xfer_partial): New function.
9412 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
9413 hook. Install a to_xfer_partial hook.
9414
dc53a7ad
JB
94152014-02-26 Joel Brobecker <brobecker@adacore.com>
9416
9417 * gdbtypes.h (create_array_type_with_stride): Add declaration.
9418 * gdbtypes.c (create_array_type_with_stride): New function,
9419 renaming create_array_type, but with an added parameter
9420 called "bit_stride".
9421 (create_array_type): Re-implement using
9422 create_array_type_with_stride.
9423 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
9424 and DW_AT_bit_stride attributes.
9425
12ab52e9
PA
94262014-02-26 Pedro Alves <palves@redhat.com>
9427
9428 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
9429 task-specific breakpoints.
9430
d16461ae
PA
94312014-02-25 Pedro Alves <palves@redhat.com>
9432
9433 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
9434 handling of object == TARGET_OBJECT_UNWIND_TABLE.
9435
a8b16220
SS
94362014-02-25 Stan Shebs <stan@codesourcery.com>
9437
9438 * defs.h: Annotate comments for Doxygen.
9439
b9e795ee
TT
94402014-02-25 Tom Tromey <tromey@redhat.com>
9441
9442 * target.h (target_ignore): Don't declare.
9443 * target.c (target_ignore): Remove.
9444
849c862e
JK
94452014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
9446
9447 PR gdb/16626
9448 * auto-load.c (auto_load_objfile_script_1): Change filename to
9449 debugfile.
9450
475109d8
JB
94512014-02-25 Joel Brobecker <brobecker@adacore.com>
9452
9453 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
9454 documentation. Adjust prototype to match the target_ops
9455 to_xfer_partial method. Adjust implementation accordingly.
9456
e186c3bd
HZ
94572014-02-25 Hui Zhu <hui@codesourcery.com>
9458
9459 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
9460 to_traceframe_info.
9461
6d451942
KB
94622014-02-25 Kevin Buettner <kevinb@redhat.com>
9463
041ab8b4 9464 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
6d451942
KB
9465 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
9466 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
9467 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
9468 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
9469 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
9470 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
9471 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
9472 New constants.
9473 (rl78_register_type): Use a data pointer type for SP and
9474 new pseudo registers mentioned above. Use a 16 bit integer
9475 type for all other register pairs.
9476 (rl78_register_name, rl78_g10_register_name): Update for
9477 new pseudo registers.
9478 (rl78_pseudo_register_read): Likewise.
9479 (rl78_pseudo_register_write): Likewise.
9480 (rl78_dwarf_reg_to_regnum): Return register numbers representing
9481 to the newly added pseudo registers.
9482
eddf0bae
DE
94832014-02-24 Doug Evans <dje@google.com>
9484
9485 * value.c (record_latest_value): Fix comment.
9486 * printcmd.c (print_command_1): Remove code to handle -1 return from
9487 record_latest_value.
9488
e96027e0
PA
94892014-02-24 Pedro Alves <palves@redhat.com>
9490
9491 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
9492 deprecated_xfer_memory hook.
9493 (procfs_xfer_partial): Call procfs_xfer_memory instead
9494 of the deprecated_xfer_memory target hook.
9495 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
9496 helper.
9497
0837c976
YZ
94982014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
9499
9500 * windows-nat.c (windows_xfer_shared_libraries): Return
9501 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
9502 requested object is TARGET_OBJECT_LIBRARIES.
9503
bc113b4e
YQ
95042014-02-24 Yao Qi <yao@codesourcery.com>
9505
9506 * target.h (enum target_xfer_status)
9507 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
9508 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
9509 explicitly. New.
9510 * corefile.c (memory_error_message): User updated.
9511 * exec.c (section_table_read_available_memory): Likewise.
9512 * record-btrace.c (record_btrace_xfer_partial): Likewise.
9513 * target.c (target_xfer_status_to_string): Likewise.
9514 (raw_memory_xfer_partial): Likewise.
9515 (memory_xfer_partial_1, target_xfer_partial): Likewise.
9516 * valops.c (read_value_memory): Likewise.
9517 * exec.h: Update comments.
9518
01cb8804
YQ
95192014-02-24 Yao Qi <yao@codesourcery.com>
9520
9521 * target.c (target_xfer_status_to_string): Rename argument err
9522 to status.
9523 * target.h (target_xfer_status_to_string): Update declaration.
9524 Replace target_xfer_error_to_string with
9525 target_xfer_status_to_string in comment.
9526
93063aa6
YQ
95272014-02-24 Yao Qi <yao@codesourcery.com>
9528
9529 * mips-linux-nat.c (super_close): Update its type.
9530 (mips_linux_close): Pass 'self' to super_close.
9531
5c328c05
YQ
95322014-02-24 Yao Qi <yao@codesourcery.com>
9533
9534 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
9535 * corefile.c (read_memory): Adjusted.
9536 * target.c (target_write_with_progress): Adjusted.
9537
f73023dd
YQ
95382014-02-23 Yao Qi <yao@codesourcery.com>
9539
9540 Revert two patches:
9541
9542 2013-10-25 Yao Qi <yao@codesourcery.com>
9543
9544 * remote.c (remote_traceframe_info): Return early if
9545 traceframe is not selected.
9546
9547 2013-07-19 Yao Qi <yao@codesourcery.com>
9548
9549 * target.c (update_current_target): Change the default action
9550 of 'to_traceframe_info' from tcomplain to return_zero.
9551 * target.h (struct target_ops) <to_traceframe_info>: Add more
9552 comments.
9553
5a2eb0ef
YQ
95542014-02-23 Yao Qi <yao@codesourcery.com>
9555
9556 * valops.c (read_value_memory): Rewrite it. Call
9557 target_xfer_partial in a loop.
9558 * exec.h (section_table_available_memory): Remove declaration.
9559 Move comments to ...
9560 * exec.c (section_table_available_memory): ... here. Make it
9561 static.
9562
1ee79381
YQ
95632014-02-23 Yao Qi <yao@codesourcery.com>
9564
9565 * exec.c (section_table_read_available_memory): New function.
9566 * exec.h (section_table_read_available_memory): Declare.
9567 * ctf.c (ctf_xfer_partial): Call
9568 section_table_read_available_memory.
9569 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9570
1ca49d37
YQ
95712014-02-23 Yao Qi <yao@codesourcery.com>
9572
9573 * ctf.c (ctf_xfer_partial): Move code to ...
9574 * exec.c (exec_read_partial_read_only): ... it. New function.
9575 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9576 * tracefile.c: Include "exec.h".
9577 * exec.h (exec_read_partial_read_only): Declare.
9578
a283690e
YQ
95792014-02-23 Yao Qi <yao@codesourcery.com>
9580
9581 * tracefile-tfile.c (tfile_has_all_memory): Remove.
9582 (tfile_has_memory): Remove.
9583 (init_tfile_ops): Don't set fields to_has_all_memory and
9584 to_has_memory of tfile_ops.
9585 * tracefile.c (tracefile_has_all_memory): New function.
9586 (tracefile_has_memory): New function.
9587 (init_tracefile_ops): Initialize fields to_has_all_memory and
9588 to_has_memory of 'ops'.
9589
12e03cd0
YQ
95902014-02-23 Yao Qi <yao@codesourcery.com>
9591
9592 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
9593 (ctf_thread_alive, ctf_get_trace_status): Remove.
9594 (init_ctf_ops): Don't set some fields of ctf_ops. Call
9595 init_tracefile_ops.
9596 * tracefile-tfile.c (tfile_get_trace_status): Remove.
9597 (tfile_has_stack, tfile_has_registers): Remove.
9598 (tfile_thread_alive): Remove.
9599 (init_tfile_ops): Don't set some fields of tfile_ops. Call
9600 init_tracefile_ops.
9601 * tracefile.c (tracefile_has_stack): New function.
9602 (tracefile_has_registers): New function.
9603 (tracefile_thread_alive): New function.
9604 (tracefile_get_trace_status): New function.
9605 (init_tracefile_ops): New function.
9606 * tracefile.h (init_tracefile_ops): Declare.
9607
11395323
YQ
96082014-02-23 Yao Qi <yao@codesourcery.com>
9609
9610 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
9611 (O_LARGEFILE): Likewise.
9612 (tfile_ops): Likewise.
9613 (TRACE_HEADER_SIZE): Likewise.
9614 (trace_fd, trace_frames_offset, cur_offset): Likewise.
9615 (cur_data_size): Likewise.
9616 (tfile_read, tfile_open, tfile_interp_line): Likewise.
9617 (tfile_close, tfile_files_info): Likewise.
9618 (tfile_get_trace_status): Likewise.
9619 (tfile_get_tracepoint_status): Likewise.
9620 (tfile_get_traceframe_address): Likewise.
9621 (tfile_trace_find, match_blocktype): Likewise.
9622 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
9623 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
9624 (tfile_get_trace_state_variable_value): Likewise.
9625 (tfile_has_all_memory, tfile_has_memory): Likewise.
9626 (tfile_has_stack, tfile_has_registers): Likewise.
9627 (tfile_thread_alive, build_traceframe_info): Likewise.
9628 (tfile_traceframe_info, init_tfile_ops): Likewise.
9629 (_initialize_tracepoint): Don't call init_tfile_ops
9630 and add_target_with_completer.
9631 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
9632 exec.h, completer.h and filenames.h.
9633 (_initialize_tracefile_tfile): New function.
9634
7951c4eb
YQ
96352014-02-23 Yao Qi <yao@codesourcery.com>
9636
9637 * Makefile.in (REMOTE_OBS): Append tracefile.o and
9638 tracefile-tfile.o.
9639 (HFILES_NO_SRCDIR): Add tracefile.h.
9640 * ctf.c: Include "tracefile.h".
9641 * tracefile.h: New file.
9642 * tracefile.c: New file
9643 * tracefile-tfile.c: New file.
9644 * tracepoint.c: Include "tracefile.h".
9645 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
9646 (stop_reason_names): Add const.
9647 (trace_file_writer_xfree): Move it to tracefile.c.
9648 (trace_save, trace_save_command, trace_save_tfile): Likewise.
9649 (trace_save_ctf): Likewise.
9650 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
9651 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
9652 (tfile_write_header, tfile_write_regblock_type): Likewise.
9653 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
9654 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
9655 (tfile_write_raw_data, tfile_end): Likewise.
9656 (tfile_trace_file_writer_new): Likewise.
9657 (free_uploaded_tp): Make it extern.
9658 (free_uploaded_tsv): Make it extern.
9659 (_initialize_tracepoint): Move code to register command 'tsave'
9660 to tracefile.c.
9661 * tracepoint.h (stop_reason_names): Declare.
9662 (struct trace_frame_write_ops): Move it to tracefile.h.
9663 (struct trace_file_write_ops): Likewise.
9664 (struct trace_file_writer): Likewise.
9665 (free_uploaded_tsvs, free_uploaded_tps): Declare.
9666
184cd072
JK
96672014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9668
9669 PR gdb/16594
9670 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
9671 process name.
9672 (get_cores_used_by_process): New parameter num_cores, use it.
9673 (linux_xfer_osdata_processes): Pass num_cores to it.
9674 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
9675 process name.
9676
c63528fc
AK
96772014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
9678
9679 * target.c (memory_xfer_partial): Fix length arg in call to
9680 breakpoint_xfer_memory.
9681
d7b30f67
SDJ
96822014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9683
9684 PR tdep/16397
9685 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
9686 number comes after the + or - signs. Adjust length of register
9687 name to be extracted.
9688
8838afaf
TT
96892014-02-20 Tom Tromey <tromey@redhat.com>
9690
9691 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
9692 (ada_varobj_ops): Mark "extern".
9693
05227d14
TT
96942014-02-20 Tom Tromey <tromey@redhat.com>
9695
9696 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
9697
1254eefc
DE
96982014-02-20 Doug Evans <xdje42@gmail.com>
9699
9700 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
9701 All callers updated.
9702 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
9703 All callers updated.
9704 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
9705 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
9706
adde2bff
DE
97072014-02-20 lin zuojian <manjian2006@gmail.com>
9708 Joel Brobecker <brobecker@adacore.com>
9709 Doug Evans <xdje42@gmail.com>
9710
9711 PR symtab/16581
9712 * dwarf2read.c (struct die_info): New member in_process.
9713 (reset_die_in_process): New function.
9714 (process_die): Set it at the start, reset when returning.
9715 (inherit_abstract_dies): Only call process_die if origin_child_die
9716 not already being processed.
9717
3be75f87
JB
97182014-02-20 Joel Brobecker <brobecker@adacore.com>
9719
9720 * windows-nat.c (handle_unload_dll): Add function documentation.
9721 (do_initial_windows_stuff): Add comment explaining why we wait
9722 until after inferior initialization has finished before
9723 processing all DLLs.
9724
47f7ffdb
JB
97252014-02-20 Joel Brobecker <brobecker@adacore.com>
9726
9727 * windows-nat.c (get_module_name): Delete.
9728 (windows_get_exec_module_filename): New function, mostly
9729 inspired from get_module_name.
9730 (windows_pid_to_exec_file): Replace call to get_module_name
9731 by call to windows_get_exec_module_filename.
9732
1cd9feab
JB
97332014-02-20 Joel Brobecker <brobecker@adacore.com>
9734
9735 * windows-nat.c (handle_load_dll): Rewrite this function's
9736 introductory comment. Remove code using get_module_name
9737 to get the DLL's name.
9738
ea39ad35
JB
97392014-02-20 Joel Brobecker <brobecker@adacore.com>
9740
9741 * windows-nat.c (get_windows_debug_event): Ignore
9742 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
9743 if windows_initialization_done == 0.
9744 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
9745 Adjust implementation to always load all DLLs.
9746 (do_initial_windows_stuff): Replace call to
9747 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
9748
95060284
JB
97492014-02-20 Joel Brobecker <brobecker@adacore.com>
9750
9751 * windows-nat.c (_initialize_windows_nat): Deprecate the
9752 "dll-symbols" command. Turn the "add-shared-symbol-files"
9753 and "assf" aliases into commands, and deprecate them as well.
9754 * NEWS: Add entry explaining that "dll-symbols" and its two
9755 aliases are now deprecated.
9756
8d4fdb12
JB
97572014-02-20 Joel Brobecker <brobecker@adacore.com>
9758
9759 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
9760 new-line in debug string. Remove trailing spaces.
9761
1b281443
SS
97622014-02-19 Stan Shebs <stan@codesourcery.com>
9763
9764 * darwin-nat.c (darwin_xfer_partial): Fix return type.
9765
f7bd0f78
SC
97662014-02-19 Siva Chandra Reddy <sivachandra@google.com>
9767
9768 * NEWS: Add entry for the new feature
9769 * python/py-value.c (valpy_binop): Call value_x_binop for struct
9770 and class values.
9771
399ebc3d
SS
97722014-02-19 Stan Shebs <stan@codesourcery.com>
9773
9774 * MAINTAINERS: List Yao Qi as nios2 maintainer.
9775
c658158d
PA
97762014-02-19 Pedro Alves <palves@redhat.com>
9777
9778 * common/ptid.h (struct ptid): Mention that process_stratum
9779 targets should prefer ptid.lwp.
9780
ba348170
PA
97812014-02-19 Pedro Alves <palves@redhat.com>
9782
9783 * remote.c (remote_thread_alive, write_ptid, read_ptid)
9784 (read_ptid, remote_newthread_step, remote_threads_extra_info)
9785 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
9786 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
9787 store remote thread ids rather than ptid.tid.
9788 (_initialize_remote): Adjust.
9789
ac01945b
TT
97902014-02-19 Tom Tromey <tromey@redhat.com>
9791
9792 * target.c (target_get_unwinder): Rewrite.
9793 (target_get_tailcall_unwinder): Rewrite.
9794 * record-btrace.c (record_btrace_to_get_unwinder): New function.
9795 (record_btrace_to_get_tailcall_unwinder): New function.
9796 (init_record_btrace_ops): Update.
9797 * target.h (struct target_ops) <to_get_unwinder,
9798 to_get_tailcall_unwinder>: Now function pointers. Use
9799 TARGET_DEFAULT_RETURN.
9800
8476dc92
TT
98012014-02-19 Tom Tromey <tromey@redhat.com>
9802
9803 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
9804 argument.
9805 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
9806
c0eca49f
TT
98072014-02-19 Tom Tromey <tromey@redhat.com>
9808
9809 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
9810 directly.
9811 * target-delegates.c: Rebuild.
9812 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
9813 TARGET_DEFAULT_FUNC.
9814 * target.c (default_target_decr_pc_after_break): Rename from
9815 forward_target_decr_pc_after_break. Simplify.
9816 (target_decr_pc_after_break): Rely on delegation.
9817
596b6b39
TT
98182014-02-19 Tom Tromey <tromey@redhat.com>
9819
9820 * target.c (update_current_target): Do not INHERIT to_doc or
9821 to_magic. Do not de_fault to_open or to_close.
9822
b427c1bc
TT
98232014-02-19 Tom Tromey <tromey@redhat.com>
9824
9825 * gcore.h (objfile_find_memory_regions): Declare.
9826 * gcore.c (objfile_find_memory_regions): No longer static. Add
9827 "self" argument.
9828 (_initialize_gcore): Don't call exec_set_find_memory_regions.
9829 * exec.c: Include gcore.h.
9830 (exec_set_find_memory_regions): Remove.
9831 (exec_find_memory_regions): Remove.
9832 (exec_do_find_memory_regions): Remove.
9833 (init_exec_ops): Update.
9834 * defs.h (exec_set_find_memory_regions): Remove.
9835
9b144037
TT
98362014-02-19 Tom Tromey <tromey@redhat.com>
9837
9838 * target-delegates.c: Rebuild.
9839 * target.h (struct target_ops) <to_extra_thread_info,
9840 to_thread_name, to_pid_to_exec_file, to_get_section_table,
9841 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
9842 not 0, in TARGET_DEFAULT_RETURN.
9843
555bbdeb
TT
98442014-02-19 Tom Tromey <tromey@redhat.com>
9845
9846 * target.c (complete_target_initialization): Remove casts. Use
9847 return_zero_has_execution.
9848 (return_zero): Add "ignore" argument.
9849 (return_zero_has_execution): New function.
9850 (init_dummy_target): Remove casts. Use
9851 return_zero_has_execution.
9852
be4ddd36
TT
98532014-02-19 Tom Tromey <tromey@redhat.com>
9854
9855 * target.c (update_current_target): Update comments. Do not
9856 INHERIT to_stratum.
9857
2117c711
TT
98582014-02-19 Tom Tromey <tromey@redhat.com>
9859
9860 * arm-linux-nat.c (arm_linux_read_description): Delegate when
9861 needed.
9862 * corelow.c (core_read_description): Delegate when needed.
9863 * remote.c (remote_read_description): Delegate when needed.
9864 * target-delegates.c: Rebuild.
9865 * target.c (target_read_description): Rewrite.
9866 * target.h (struct target_ops) <to_read_description>: Update
9867 comment. Use TARGET_DEFAULT_RETURN.
9868
e88ef65c
TT
98692014-02-19 Tom Tromey <tromey@redhat.com>
9870
9871 * target-delegates.c: Rebuild.
9872 * target.c (update_current_target): Don't inherit or default
9873 to_can_run.
9874 (find_default_run_target): Check against delegate_can_run.
9875 * target.h (struct target_ops) <to_can_run>: Use
9876 TARGET_DEFAULT_RETURN.
9877
86a0854a
TT
98782014-02-19 Tom Tromey <tromey@redhat.com>
9879
9880 * target-delegates.c: Rebuild.
9881 * target.c (target_disconnect): Unconditionally delegate.
9882 * target.h (struct target_ops) <to_disconnect>: Use
9883 TARGET_DEFAULT_NORETURN.
9884
ee97f592
TT
98852014-02-19 Tom Tromey <tromey@redhat.com>
9886
9887 * record.c (record_stop): Unconditionally delegate.
9888 * target-delegates.c: Rebuild.
9889 * target.c (target_stop_recording): Unconditionally delegate.
9890 * target.h (struct target_ops) <to_stop_recording>: Use
9891 TARGET_DEFAULT_IGNORE.
9892
6dc7fcf4
TT
98932014-02-19 Tom Tromey <tromey@redhat.com>
9894
9895 * target-delegates.c: Rebuild.
9896 * target.c (target_enable_btrace): Unconditionally delegate.
9897 * target.h (struct target_ops) <to_enable_btrace>: Use
9898 TARGET_DEFAULT_NORETURN.
9899
eb5b20d4
TT
99002014-02-19 Tom Tromey <tromey@redhat.com>
9901
9902 * target-delegates.c: Rebuild.
9903 * target.c (target_read_btrace): Unconditionally delegate.
9904 * target.h (struct target_ops) <to_read_btrace>: Use
9905 TARGET_DEFAULT_NORETURN.
9906
9ace480d
TT
99072014-02-19 Tom Tromey <tromey@redhat.com>
9908
9909 * target-delegates.c: Rebuild.
9910 * target.c (target_teardown_btrace): Unconditionally delegate.
9911 * target.h (struct target_ops) <to_teardown_btrace>: Use
9912 TARGET_DEFAULT_NORETURN.
9913
8dc292d3
TT
99142014-02-19 Tom Tromey <tromey@redhat.com>
9915
9916 * target-delegates.c: Rebuild.
9917 * target.c (target_disable_btrace): Unconditionally delegate.
9918 * target.h (struct target_ops) <to_disable_btrace>: Use
9919 TARGET_DEFAULT_NORETURN.
9920
58a5184e
TT
99212014-02-19 Tom Tromey <tromey@redhat.com>
9922
9923 * target-delegates.c: Rebuild.
9924 * target.c (default_search_memory): New function.
9925 (simple_search_memory): Update comment.
9926 (target_search_memory): Unconditionally delegate.
9927 * target.h (struct target_ops) <to_search_memory>: Use
9928 TARGET_DEFAULT_FUNC.
9929
8de71aab
TT
99302014-02-19 Tom Tromey <tromey@redhat.com>
9931
9932 * auxv.c (default_auxv_parse): No longer static.
9933 (target_auxv_parse): Unconditionally delegate.
9934 * auxv.h (default_auxv_parse): Declare.
9935 * target-delegates.c: Rebuild.
9936 * target.c: Include auxv.h.
9937 * target.h (struct target_ops) <to_auxv_parse>: Use
9938 TARGET_DEFAULT_FUNC.
9939
6b2c5a57
TT
99402014-02-19 Tom Tromey <tromey@redhat.com>
9941
9942 * target-delegates.c: Rebuild.
9943 * target.c (target_memory_map): Unconditionally delegate.
9944 * target.h (struct target_ops) <to_memory_map>: Use
9945 TARGET_DEFAULT_RETURN.
9946
cbffc065
TT
99472014-02-19 Tom Tromey <tromey@redhat.com>
9948
9949 * target-delegates.c: Rebuild.
9950 * target.c (target_thread_alive): Unconditionally delegate.
9951 * target.h (struct target_ops) <to_thread_alive>: Use
9952 TARGET_DEFAULT_RETURN.
9953
f09e2107
TT
99542014-02-19 Tom Tromey <tromey@redhat.com>
9955
9956 * target-delegates.c: Rebuild.
9957 * target.c (target_save_record): Unconditionally delegate.
9958 * target.h (struct target_ops) <to_save_record>: Use
9959 TARGET_DEFAULT_NORETURN.
9960
07366925
TT
99612014-02-19 Tom Tromey <tromey@redhat.com>
9962
9963 * target-delegates.c: Rebuild.
9964 * target.c (target_delete_record): Unconditionally delegate.
9965 * target.h (struct target_ops) <to_delete_record>: Use
9966 TARGET_DEFAULT_NORETURN.
9967
dd2e9d25
TT
99682014-02-19 Tom Tromey <tromey@redhat.com>
9969
9970 * target-delegates.c: Rebuild.
9971 * target.c (target_record_is_replaying): Unconditionally
9972 delegate.
9973 * target.h (struct target_ops) <to_record_is_replaying>: Use
9974 TARGET_DEFAULT_RETURN.
9975
671e76cc
TT
99762014-02-19 Tom Tromey <tromey@redhat.com>
9977
9978 * target-delegates.c: Rebuild.
9979 * target.c (target_goto_record_begin): Unconditionally delegate.
9980 * target.h (struct target_ops) <to_goto_record_begin>: Use
9981 TARGET_DEFAULT_NORETURN.
9982
e9179bb3
TT
99832014-02-19 Tom Tromey <tromey@redhat.com>
9984
9985 * target-delegates.c: Rebuild.
9986 * target.c (target_goto_record_end): Unconditionally delegate.
9987 * target.h (struct target_ops) <to_goto_record_end>: Use
9988 TARGET_DEFAULT_NORETURN.
9989
05969c84
TT
99902014-02-19 Tom Tromey <tromey@redhat.com>
9991
9992 * target-delegates.c: Rebuild.
9993 * target.c (target_goto_record): Unconditionally delegate.
9994 * target.h (struct target_ops) <to_goto_record>: Use
9995 TARGET_DEFAULT_NORETURN.
9996
3679abfa
TT
99972014-02-19 Tom Tromey <tromey@redhat.com>
9998
9999 * target-delegates.c: Rebuild.
10000 * target.c (target_insn_history): Unconditionally delegate.
10001 * target.h (struct target_ops) <to_insn_history>: Use
10002 TARGET_DEFAULT_NORETURN.
10003
8444ab58
TT
100042014-02-19 Tom Tromey <tromey@redhat.com>
10005
10006 * target-delegates.c: Rebuild.
10007 * target.c (target_insn_history_from): Unconditionally delegate.
10008 * target.h (struct target_ops) <to_insn_history_from>: Use
10009 TARGET_DEFAULT_NORETURN.
10010
c29302cc
TT
100112014-02-19 Tom Tromey <tromey@redhat.com>
10012
10013 * target-delegates.c: Rebuild.
10014 * target.c (target_insn_history_range): Unconditionally delegate.
10015 * target.h (struct target_ops) <to_insn_history_range>: Use
10016 TARGET_DEFAULT_NORETURN.
10017
170049d4
TT
100182014-02-19 Tom Tromey <tromey@redhat.com>
10019
10020 * target-delegates.c: Rebuild.
10021 * target.c (target_call_history): Unconditionally delegate.
10022 * target.h (struct target_ops) <to_call_history>: Use
10023 TARGET_DEFAULT_NORETURN.
10024
16fc27d6
TT
100252014-02-19 Tom Tromey <tromey@redhat.com>
10026
10027 * target-delegates.c: Rebuild.
10028 * target.c (target_call_history_from): Unconditionally delegate.
10029 * target.h (struct target_ops) <to_call_history_from>: Use
10030 TARGET_DEFAULT_NORETURN.
10031
115d9817
TT
100322014-02-19 Tom Tromey <tromey@redhat.com>
10033
10034 * target-delegates.c: Rebuild.
10035 * target.c (target_call_history_range): Unconditionally delegate.
10036 * target.h (struct target_ops) <to_call_history_range>: Use
10037 TARGET_DEFAULT_NORETURN.
10038
eb276a6b
TT
100392014-02-19 Tom Tromey <tromey@redhat.com>
10040
10041 * target-delegates.c: Rebuild.
10042 * target.c (target_verify_memory): Unconditionally delegate.
10043 * target.h (struct target_ops) <to_verify_memory>: Use
10044 TARGET_DEFAULT_NORETURN.
10045
9e538d0d
TT
100462014-02-19 Tom Tromey <tromey@redhat.com>
10047
10048 * target-delegates.c: Rebuild.
10049 * target.c (target_core_of_thread): Unconditionally delegate.
10050 * target.h (struct target_ops) <to_core_of_thread>: Use
10051 TARGET_DEFAULT_RETURN.
10052
f6fb2925
TT
100532014-02-19 Tom Tromey <tromey@redhat.com>
10054
10055 * target-delegates.c: Rebuild.
10056 * target.c (target_flash_done): Unconditionally delegate.
10057 * target.h (struct target_ops) <to_flash_done>: Use
10058 TARGET_DEFAULT_NORETURN.
10059
e8a6c6ac
TT
100602014-02-19 Tom Tromey <tromey@redhat.com>
10061
10062 * target-delegates.c: Rebuild.
10063 * target.c (target_flash_erase): Unconditionally delegate.
10064 * target.h (struct target_ops) <to_flash_erase>: Use
10065 TARGET_DEFAULT_NORETURN.
10066
7e35c012
TT
100672014-02-19 Tom Tromey <tromey@redhat.com>
10068
10069 * target-delegates.c: Rebuild.
10070 * target.c (target_get_section_table): Unconditionally delegate.
10071 * target.h (struct target_ops) <to_get_section_table>: Use
10072 TARGET_DEFAULT_RETURN.
10073
770234d3
TT
100742014-02-19 Tom Tromey <tromey@redhat.com>
10075
10076 * target-delegates.c: Rebuild.
10077 * target.c (target_pid_to_str): Unconditionally delegate.
10078 (init_dummy_target): Don't initialize to_pid_to_str.
10079 (default_pid_to_str): Rename from dummy_pid_to_str.
10080 * target.h (struct target_ops) <to_pid_to_str>: Use
10081 TARGET_DEFAULT_FUNC.
10082
09b0dc2b
TT
100832014-02-19 Tom Tromey <tromey@redhat.com>
10084
10085 * target-delegates.c: Rebuild.
10086 * target.c (target_find_new_threads): Unconditionally delegate.
10087 * target.h (struct target_ops) <to_find_new_threads>: Use
10088 TARGET_DEFAULT_RETURN.
10089
7d4f8efa
TT
100902014-02-19 Tom Tromey <tromey@redhat.com>
10091
10092 * target-delegates.c: Rebuild.
10093 * target.c (target_program_signals): Unconditionally delegate.
10094 * target.h (struct target_ops) <to_program_signals>: Use
10095 TARGET_DEFAULT_IGNORE.
10096
035cad7f
TT
100972014-02-19 Tom Tromey <tromey@redhat.com>
10098
10099 * target-delegates.c: Rebuild.
10100 * target.c (target_pass_signals): Unconditionally delegate.
10101 * target.h (struct target_ops) <to_pass_signals>: Use
10102 TARGET_DEFAULT_IGNORE.
10103
8d657035
TT
101042014-02-19 Tom Tromey <tromey@redhat.com>
10105
10106 * target-delegates.c: Rebuild.
10107 * target.c (default_mourn_inferior): New function.
10108 (target_mourn_inferior): Unconditionally delegate.
10109 * target.h (struct target_ops) <to_mourn_inferior>: Use
10110 TARGET_DEFAULT_FUNC.
10111
098dba18
TT
101122014-02-19 Tom Tromey <tromey@redhat.com>
10113
10114 * target-delegates.c: Rebuild.
10115 * target.c (default_follow_fork): New function.
10116 (target_follow_fork): Unconditionally delegate.
10117 * target.h (struct target_ops) <to_follow_fork>: Use
10118 TARGET_DEFAULT_FUNC.
10119
423a4807
TT
101202014-02-19 Tom Tromey <tromey@redhat.com>
10121
10122 * target-delegates.c: Rebuild.
10123 * target.c (target_kill): Unconditionally delegate.
10124 * target.h (struct target_ops) <to_kill>: Use
10125 TARGET_DEFAULT_NORETURN.
10126
6c7e5e5c
TT
101272014-02-19 Tom Tromey <tromey@redhat.com>
10128
10129 * target-delegates.c: Rebuild.
10130 * target.c (target_masked_watch_num_registers): Unconditionally
10131 delegate.
10132 * target.h (struct target_ops) <to_masked_watch_num_registers>:
10133 Use TARGET_DEFAULT_RETURN.
10134
8b1c364c
TT
101352014-02-19 Tom Tromey <tromey@redhat.com>
10136
10137 * target-delegates.c: Rebuild.
10138 * target.c (target_remove_mask_watchpoint): Unconditionally
10139 delegate.
10140 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
10141 TARGET_DEFAULT_RETURN.
10142
cd4ae029
TT
101432014-02-19 Tom Tromey <tromey@redhat.com>
10144
10145 * target-delegates.c: Rebuild.
10146 * target.c (target_insert_mask_watchpoint): Unconditionally
10147 delegate.
10148 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
10149 TARGET_DEFAULT_RETURN.
10150
a134316b
TT
101512014-02-19 Tom Tromey <tromey@redhat.com>
10152
10153 * target-delegates.c: Rebuild.
10154 * target.c (target_ranged_break_num_registers): Unconditionally
10155 delegate.
10156 * target.h (struct target_ops) <to_ranged_break_num_registers>:
10157 Use TARGET_DEFAULT_RETURN.
10158
ad5989bd
TT
101592014-02-19 Tom Tromey <tromey@redhat.com>
10160
10161 * target-delegates.c: Rebuild.
10162 * target.c (target_fetch_registers): Unconditionally delegate.
10163 * target.h (struct target_ops) <to_fetch_registers>: Use
10164 TARGET_DEFAULT_NORETURN.
10165
46ee7e8d
TT
101662014-02-19 Tom Tromey <tromey@redhat.com>
10167
10168 * target-delegates.c: Rebuild.
10169 * target.c (update_current_target): Don't inherit or default
10170 to_stop.
10171 * target.h (struct target_ops) <to_stop>: Use
10172 TARGET_DEFAULT_IGNORE.
10173
843f59ed
TT
101742014-02-19 Tom Tromey <tromey@redhat.com>
10175
10176 * target-delegates.c: Rebuild.
10177 * target.c (update_current_target): Don't inherit or default
10178 to_can_run_breakpoint_commands.
10179 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
10180 Use TARGET_DEFAULT_RETURN.
10181
ccfde2a0
TT
101822014-02-19 Tom Tromey <tromey@redhat.com>
10183
10184 * target-delegates.c: Rebuild.
10185 * target.c (update_current_target): Don't inherit or default
10186 to_supports_evaluation_of_breakpoint_conditions.
10187 * target.h (struct target_ops)
10188 <to_supports_evaluation_of_breakpoint_conditions>: Use
10189 TARGET_DEFAULT_RETURN.
10190
0de91722
TT
101912014-02-19 Tom Tromey <tromey@redhat.com>
10192
10193 * target-delegates.c: Rebuild.
10194 * target.c (update_current_target): Don't inherit or default
10195 to_augmented_libraries_svr4_read.
10196 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
10197 Use TARGET_DEFAULT_RETURN.
10198
9a7d8b48
TT
101992014-02-19 Tom Tromey <tromey@redhat.com>
10200
10201 * target-delegates.c: Rebuild.
10202 * target.c (update_current_target): Don't inherit or default
10203 to_can_use_agent.
10204 * target.h (struct target_ops) <to_can_use_agent>: Use
10205 TARGET_DEFAULT_RETURN.
10206
d9db5b21
TT
102072014-02-19 Tom Tromey <tromey@redhat.com>
10208
10209 * target-delegates.c: Rebuild.
10210 * target.c (update_current_target): Don't inherit or default
10211 to_use_agent.
10212 * target.h (struct target_ops) <to_use_agent>: Use
10213 TARGET_DEFAULT_NORETURN.
10214
92155eeb
TT
102152014-02-19 Tom Tromey <tromey@redhat.com>
10216
10217 * target-delegates.c: Rebuild.
10218 * target.c (update_current_target): Don't inherit or default
10219 to_traceframe_info.
10220 (return_null): Remove.
10221 * target.h (struct target_ops) <to_traceframe_info>: Use
10222 TARGET_DEFAULT_RETURN.
10223
d6522a22
TT
102242014-02-19 Tom Tromey <tromey@redhat.com>
10225
10226 * target-delegates.c: Rebuild.
10227 * target.c (update_current_target): Don't inherit or default
10228 to_static_tracepoint_markers_by_strid.
10229 * target.h (struct target_ops)
10230 <to_static_tracepoint_markers_by_strid>: Use
10231 TARGET_DEFAULT_NORETURN.
10232
4c3e4425
TT
102332014-02-19 Tom Tromey <tromey@redhat.com>
10234
10235 * target-delegates.c: Rebuild.
10236 * target.c (update_current_target): Don't inherit or default
10237 to_static_tracepoint_marker_at.
10238 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
10239 Use TARGET_DEFAULT_RETURN.
10240
dcd6917f
TT
102412014-02-19 Tom Tromey <tromey@redhat.com>
10242
10243 * target-delegates.c: Rebuild.
10244 * target.c (update_current_target): Don't inherit or default
10245 to_set_permissions.
10246 * target.h (struct target_ops) <to_set_permissions>: Use
10247 TARGET_DEFAULT_IGNORE.
10248
22bcceee
TT
102492014-02-19 Tom Tromey <tromey@redhat.com>
10250
10251 * target-delegates.c: Rebuild.
10252 * target.c (update_current_target): Don't inherit or default
10253 to_get_tib_address.
10254 * target.h (struct target_ops) <to_get_tib_address>: Use
10255 TARGET_DEFAULT_NORETURN.
10256
8586ccaa
TT
102572014-02-19 Tom Tromey <tromey@redhat.com>
10258
10259 * target-delegates.c: Rebuild.
10260 * target.c (update_current_target): Don't inherit or default
10261 to_set_trace_notes.
10262 * target.h (struct target_ops) <to_set_trace_notes>: Use
10263 TARGET_DEFAULT_RETURN.
10264
91df8d1d
TT
102652014-02-19 Tom Tromey <tromey@redhat.com>
10266
10267 * target-delegates.c: Rebuild.
10268 * target.c (update_current_target): Don't initialize
10269 to_set_trace_buffer_size.
10270 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
10271 TARGET_DEFAULT_IGNORE.
10272
8d526939
TT
102732014-02-19 Tom Tromey <tromey@redhat.com>
10274
10275 * target-delegates.c: Rebuild.
10276 * target.c (update_current_target): Don't inherit or default
10277 to_set_circular_trace_buffer.
10278 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
10279 TARGET_DEFAULT_IGNORE.
10280
0bcfeddf
TT
102812014-02-19 Tom Tromey <tromey@redhat.com>
10282
10283 * target-delegates.c: Rebuild.
10284 * target.c (update_current_target): Don't inherit or default
10285 to_set_disconnected_tracing.
10286 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
10287 TARGET_DEFAULT_IGNORE.
10288
9249843f
TT
102892014-02-19 Tom Tromey <tromey@redhat.com>
10290
10291 * target-delegates.c: Rebuild.
10292 * target.c (update_current_target): Don't inherit or default
10293 to_get_min_fast_tracepoint_insn_len.
10294 (return_minus_one): Remove.
10295 * target.h (struct target_ops)
10296 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
10297
ace92e7d
TT
102982014-02-19 Tom Tromey <tromey@redhat.com>
10299
10300 * target-delegates.c: Rebuild.
10301 * target.c (update_current_target): Don't inherit or default
10302 to_get_raw_trace_data.
10303 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
10304 TARGET_DEFAULT_NORETURN.
10305
08120467
TT
103062014-02-19 Tom Tromey <tromey@redhat.com>
10307
10308 * target-delegates.c: Rebuild.
10309 * target.c (update_current_target): Don't inherit or default
10310 to_upload_trace_state_variables.
10311 * target.h (struct target_ops) <to_upload_trace_state_variables>:
10312 Use TARGET_DEFAULT_RETURN.
10313
1e949b00
TT
103142014-02-19 Tom Tromey <tromey@redhat.com>
10315
10316 * target-delegates.c: Rebuild.
10317 * target.c (update_current_target): Don't inherit or default
10318 to_upload_tracepoints.
10319 * target.h (struct target_ops) <to_upload_tracepoints>: Use
10320 TARGET_DEFAULT_RETURN.
10321
a2e6c147
TT
103222014-02-19 Tom Tromey <tromey@redhat.com>
10323
10324 * target-delegates.c: Rebuild.
10325 * target.c (update_current_target): Don't inherit or default
10326 to_save_trace_data.
10327 * target.h (struct target_ops) <to_save_trace_data>: Use
10328 TARGET_DEFAULT_NORETURN.
10329
959bcd0b
TT
103302014-02-19 Tom Tromey <tromey@redhat.com>
10331
10332 * target-delegates.c: Rebuild.
10333 * target.c (update_current_target): Don't inherit or default
10334 to_get_trace_state_variable_value.
10335 * target.h (struct target_ops)
10336 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
10337
afc94e66
TT
103382014-02-19 Tom Tromey <tromey@redhat.com>
10339
10340 * target-delegates.c: Rebuild.
10341 * target.c (update_current_target): Don't inherit or default
10342 to_trace_find.
10343 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
10344
e51c07ea
TT
103452014-02-19 Tom Tromey <tromey@redhat.com>
10346
10347 * target-delegates.c: Rebuild.
10348 * target.c (update_current_target): Don't inherit or default
10349 to_trace_stop.
10350 * target.h (struct target_ops) <to_trace_stop>: Use
10351 TARGET_DEFAULT_NORETURN.
10352
6fea14cd
TT
103532014-02-19 Tom Tromey <tromey@redhat.com>
10354
10355 * target-delegates.c: Rebuild.
10356 * target.c (update_current_target): Don't inherit or default
10357 to_get_tracepoint_status.
10358 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
10359 TARGET_DEFAULT_NORETURN.
10360
4072d4ff
TT
103612014-02-19 Tom Tromey <tromey@redhat.com>
10362
10363 * target-delegates.c: Rebuild.
10364 * target.c (update_current_target): Don't inherit or default
10365 to_get_trace_status.
10366 * target.h (struct target_ops) <to_get_trace_status>: Use
10367 TARGET_DEFAULT_RETURN.
10368
25da2e80
TT
103692014-02-19 Tom Tromey <tromey@redhat.com>
10370
10371 * target-delegates.c: Rebuild.
10372 * target.c (update_current_target): Don't inherit or default
10373 to_trace_start.
10374 * target.h (struct target_ops) <to_trace_start>: Use
10375 TARGET_DEFAULT_NORETURN.
10376
86dd181d
TT
103772014-02-19 Tom Tromey <tromey@redhat.com>
10378
10379 * target-delegates.c: Rebuild.
10380 * target.c (update_current_target): Don't inherit or default
10381 to_trace_set_readonly_regions.
10382 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
10383 Use TARGET_DEFAULT_NORETURN.
10384
05c41993
TT
103852014-02-19 Tom Tromey <tromey@redhat.com>
10386
10387 * target-delegates.c: Rebuild.
10388 * target.c (update_current_target): Don't inherit or default
10389 to_disable_tracepoint.
10390 * target.h (struct target_ops) <to_disable_tracepoint>: Use
10391 TARGET_DEFAULT_NORETURN.
10392
151f70f1
TT
103932014-02-19 Tom Tromey <tromey@redhat.com>
10394
10395 * target-delegates.c: Rebuild.
10396 * target.c (update_current_target): Don't inherit or default
10397 to_enable_tracepoint.
10398 * target.h (struct target_ops) <to_enable_tracepoint>: Use
10399 TARGET_DEFAULT_NORETURN.
10400
94eb98b9
TT
104012014-02-19 Tom Tromey <tromey@redhat.com>
10402
10403 * target-delegates.c: Rebuild.
10404 * target.c (update_current_target): Don't inherit or default
10405 to_download_trace_state_variable.
10406 * target.h (struct target_ops) <to_download_trace_state_variable>:
10407 Use TARGET_DEFAULT_NORETURN.
10408
719acc4a
TT
104092014-02-19 Tom Tromey <tromey@redhat.com>
10410
10411 * target-delegates.c: Rebuild.
10412 * target.c (update_current_target): Don't inherit or default
10413 to_can_download_tracepoint.
10414 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
10415 TARGET_DEFAULT_RETURN.
10416
9a980a22
TT
104172014-02-19 Tom Tromey <tromey@redhat.com>
10418
10419 * target-delegates.c: Rebuild.
10420 * target.c (update_current_target): Don't inherit or default
10421 to_download_tracepoint.
10422 * target.h (struct target_ops) <to_download_tracepoint>: Use
10423 TARGET_DEFAULT_NORETURN.
10424
5536135b
TT
104252014-02-19 Tom Tromey <tromey@redhat.com>
10426
10427 * target-delegates.c: Rebuild.
10428 * target.c (update_current_target): Don't inherit or default
10429 to_trace_init.
10430 * target.h (struct target_ops) <to_trace_init>: Use
10431 TARGET_DEFAULT_RETURN.
10432
9409d39e
TT
104332014-02-19 Tom Tromey <tromey@redhat.com>
10434
10435 * target-delegates.c: Rebuild.
10436 * target.c (update_current_target): Don't inherit or default
10437 to_supports_string_tracing.
10438 * target.h (struct target_ops) <to_supports_string_tracing>: Use
10439 TARGET_DEFAULT_RETURN.
10440
aab1b22d
TT
104412014-02-19 Tom Tromey <tromey@redhat.com>
10442
10443 * target-delegates.c: Rebuild.
10444 * target.c (update_current_target): Don't inherit or default
10445 to_supports_enable_disable_tracepoint.
10446 * target.h (struct target_ops)
10447 <to_supports_enable_disable_tracepoint>: Use
10448 TARGET_DEFAULT_RETURN.
10449
a7304748
TT
104502014-02-19 Tom Tromey <tromey@redhat.com>
10451
10452 * target-delegates.c: Rebuild.
10453 * target.c (update_current_target): Don't inherit or default
10454 to_supports_multi_process.
10455 * target.h (struct target_ops) <to_supports_multi_process>: Use
10456 TARGET_DEFAULT_RETURN.
10457
4229b31d
TT
104582014-02-19 Tom Tromey <tromey@redhat.com>
10459
10460 * target-delegates.c: Rebuild.
10461 * target.c (update_current_target): Don't inherit or default
10462 to_get_ada_task_ptid.
10463 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
10464 TARGET_DEFAULT_FUNC.
10465
43eba180
TT
104662014-02-19 Tom Tromey <tromey@redhat.com>
10467
10468 * target-delegates.c: Rebuild.
10469 * target.c (update_current_target): Don't inherit or default
10470 to_thread_architecture.
10471 * target.h (struct target_ops) <to_thread_architecture>: Use
10472 TARGET_DEFAULT_FUNC.
10473
fe31bf5b
TT
104742014-02-19 Tom Tromey <tromey@redhat.com>
10475
10476 * target-delegates.c: Rebuild.
10477 * target.c (update_current_target): Don't inherit or default
10478 to_execution_direction.
10479 * target.h (struct target_ops) <to_execution_direction>: Use
10480 TARGET_DEFAULT_FUNC.
10481
53e1cfc7
TT
104822014-02-19 Tom Tromey <tromey@redhat.com>
10483
10484 * target-delegates.c: Rebuild.
10485 * target.c (update_current_target): Don't inherit or default
10486 to_can_execute_reverse.
10487 * target.h (struct target_ops) <to_can_execute_reverse>: Use
10488 TARGET_DEFAULT_RETURN.
10489 (target_can_execute_reverse): Unconditionally delegate.
10490
9bb9d61d
TT
104912014-02-19 Tom Tromey <tromey@redhat.com>
10492
10493 * target-delegates.c: Rebuild.
10494 * target.c (update_current_target): Don't inherit or default
10495 to_goto_bookmark.
10496 (dummy_goto_bookmark): Remove.
10497 (init_dummy_target): Don't inherit or default to_goto_bookmark.
10498 * target.h (struct target_ops) <to_goto_bookmark>: Use
10499 TARGET_DEFAULT_NORETURN.
10500
3dbafbbb
TT
105012014-02-19 Tom Tromey <tromey@redhat.com>
10502
10503 * target-delegates.c: Rebuild.
10504 * target.c (update_current_target): Don't inherit or default
10505 to_get_bookmark.
10506 (dummy_get_bookmark): Remove.
10507 (init_dummy_target): Don't inherit or default to_get_bookmark.
10508 * target.h (struct target_ops) <to_get_bookmark>: Use
10509 TARGET_DEFAULT_NORETURN
10510
16f796b1
TT
105112014-02-19 Tom Tromey <tromey@redhat.com>
10512
10513 * target-delegates.c: Rebuild.
10514 * target.c (update_current_target): Don't inherit or default
10515 to_make_corefile_notes.
10516 (init_dummy_target): Don't initialize to_make_corefile_notes.
10517 * target.h (struct target_ops) <to_make_corefile_notes>: Use
10518 TARGET_DEFAULT_FUNC.
10519
0b5a2719
TT
105202014-02-19 Tom Tromey <tromey@redhat.com>
10521
10522 * target-delegates.c: Rebuild.
10523 * target.c (update_current_target): Don't inherit or default
10524 to_find_memory_regions.
10525 (init_dummy_target): Don't initialize to_find_memory_regions.
10526 * target.h (struct target_ops) <to_find_memory_regions>: Use
10527 TARGET_DEFAULT_FUNC.
10528
d9cb0195
TT
105292014-02-19 Tom Tromey <tromey@redhat.com>
10530
10531 * target-delegates.c: Rebuild.
10532 * target.c (update_current_target): Don't inherit or default
10533 to_log_command.
10534 * target.h (struct target_ops) <to_log_command>: Use
10535 TARGET_DEFAULT_IGNORE.
10536 (target_log_command): Unconditionally delegate.
10537
830ca330
TT
105382014-02-19 Tom Tromey <tromey@redhat.com>
10539
10540 * target-delegates.c: Rebuild.
10541 * target.c (update_current_target): Don't inherit or default
10542 to_pid_to_exec_file.
10543 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
10544 TARGET_DEFAULT_RETURN.
10545
825828fc
TT
105462014-02-19 Tom Tromey <tromey@redhat.com>
10547
10548 * target-delegates.c: Rebuild.
10549 * target.c (update_current_target): Don't inherit or default
10550 to_thread_name.
10551 (target_thread_name): Unconditionally delegate.
10552 * target.h (struct target_ops) <to_thread_name>: Use
10553 TARGET_DEFAULT_RETURN.
10554
4a7e6dda
TT
105552014-02-19 Tom Tromey <tromey@redhat.com>
10556
10557 * target-delegates.c: Rebuild.
10558 * target.c (update_current_target): Don't inherit or default
10559 to_extra_thread_info.
10560 * target.h (struct target_ops) <to_extra_thread_info>: Use
10561 TARGET_DEFAULT_RETURN.
10562
0db88c1d
TT
105632014-02-19 Tom Tromey <tromey@redhat.com>
10564
10565 * target-delegates.c: Rebuild.
10566 * target.c (update_current_target): Don't inherit or default
10567 to_has_exited.
10568 * target.h (struct target_ops) <to_has_exited>: Use
10569 TARGET_DEFAULT_RETURN..
10570
6a9fa051
TT
105712014-02-19 Tom Tromey <tromey@redhat.com>
10572
10573 * target-delegates.c: Rebuild.
10574 * target.c (update_current_target): Don't inherit or default
10575 to_set_syscall_catchpoint.
10576 (return_one): Remove.
10577 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
10578 TARGET_DEFAULT_RETURN.
10579
62f64d7a
TT
105802014-02-19 Tom Tromey <tromey@redhat.com>
10581
10582 * target-delegates.c: Rebuild.
10583 * target.c (update_current_target): Don't inherit or default
10584 to_insert_exec_catchpoint.
10585 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
10586 TARGET_DEFAULT_RETURN.
10587
cda0f38c
TT
105882014-01-08 Tom Tromey <tromey@redhat.com>
10589
10590 * target-delegates.c: Rebuild.
10591 * target.c (update_current_target): Don't inherit or default
10592 to_insert_exec_catchpoint.
10593 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
10594 TARGET_DEFAULT_RETURN.
10595
95c3375e
TT
105962014-02-19 Tom Tromey <tromey@redhat.com>
10597
10598 * target-delegates.c: Rebuild.
10599 * target.c (update_current_target): Don't inherit or default
10600 to_remove_vfork_catchpoint.
10601 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
10602 TARGET_DEFAULT_RETURN.
10603
7e18a8dc
TT
106042014-02-19 Tom Tromey <tromey@redhat.com>
10605
10606 * target-delegates.c: Rebuild.
10607 * target.c (update_current_target): Don't inherit or default
10608 to_insert_vfork_catchpoint.
10609 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
10610 TARGET_DEFAULT_RETURN.
10611
e1a21fb7
TT
106122014-02-19 Tom Tromey <tromey@redhat.com>
10613
10614 * target-delegates.c: Rebuild.
10615 * target.c (update_current_target): Don't inherit or default
10616 to_remove_fork_catchpoint.
10617 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
10618 TARGET_DEFAULT_RETURN.
10619
5958ebeb
TT
106202014-02-19 Tom Tromey <tromey@redhat.com>
10621
10622 * target-delegates.c: Rebuild.
10623 * target.c (update_current_target): Don't inherit or default
10624 to_insert_fork_catchpoint.
10625 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
10626 TARGET_DEFAULT_RETURN.
10627
340ba4bf
TT
106282014-02-19 Tom Tromey <tromey@redhat.com>
10629
10630 * target-delegates.c: Rebuild.
10631 * target.c (update_current_target): Don't inherit or default
10632 to_post_startup_inferior.
10633 * target.h (struct target_ops) <to_post_startup_inferior>: Use
10634 TARGET_DEFAULT_IGNORE.
10635
7634da87
TT
106362014-02-19 Tom Tromey <tromey@redhat.com>
10637
10638 * target-delegates.c: Rebuild.
10639 * target.c (update_current_target): Don't inherit or default
10640 to_load.
10641 * target.h (struct target_ops) <to_load>: Use
10642 TARGET_DEFAULT_NORETURN.
10643
e19e919f
TT
106442014-02-19 Tom Tromey <tromey@redhat.com>
10645
10646 * target-delegates.c: Rebuild.
10647 * target.c (update_current_target): Don't inherit or default
10648 to_terminal_info.
10649 * target.h (struct target_ops) <to_terminal_info>: Use
10650 TARGET_DEFAULT_FUNC.
10651
c6ea8f79
TT
106522014-02-19 Tom Tromey <tromey@redhat.com>
10653
10654 * target-delegates.c: Rebuild.
10655 * target.c (update_current_target): Don't inherit or default
10656 to_terminal_save_ours.
10657 * target.h (struct target_ops) <to_terminal_save_ours>: Use
10658 TARGET_DEFAULT_IGNORE.
10659
e4a733f1
TT
106602014-02-19 Tom Tromey <tromey@redhat.com>
10661
10662 * target-delegates.c: Rebuild.
10663 * target.c (update_current_target): Don't inherit or default
10664 to_terminal_ours.
10665 * target.h (struct target_ops) <to_terminal_ours>: Use
10666 TARGET_DEFAULT_IGNORE.
10667
74fcbef9
TT
106682014-02-19 Tom Tromey <tromey@redhat.com>
10669
10670 * target-delegates.c: Rebuild.
10671 * target.c (update_current_target): Don't inherit or default
10672 to_terminal_ours_for_output.
10673 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
10674 TARGET_DEFAULT_IGNORE.
10675
ddeaacc9
TT
106762014-02-19 Tom Tromey <tromey@redhat.com>
10677
10678 * target-delegates.c: Rebuild.
10679 * target.c (update_current_target): Don't inherit or default
10680 to_terminal_inferior.
10681 * target.h (struct target_ops) <to_terminal_inferior>: Use
10682 TARGET_DEFAULT_IGNORE.
10683
0343661d
TT
106842014-02-19 Tom Tromey <tromey@redhat.com>
10685
10686 * target-delegates.c: Rebuild.
10687 * target.c (update_current_target): Don't inherit or default
10688 to_terminal_init.
10689 * target.h (struct target_ops) <to_terminal_init>: Use
10690 TARGET_DEFAULT_IGNORE.
10691
77cdffe9
TT
106922014-02-19 Tom Tromey <tromey@redhat.com>
10693
10694 * target-delegates.c: Rebuild.
10695 * target.c (update_current_target): Don't inherit or default
10696 to_can_accel_watchpoint_condition.
10697 * target.h (struct target_ops)
10698 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
10699
d03655e4
TT
107002014-02-19 Tom Tromey <tromey@redhat.com>
10701
10702 * target-delegates.c: Rebuild.
10703 * target.c (update_current_target): Don't inherit or default
10704 to_region_ok_for_hw_watchpoint.
10705 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10706 Use TARGET_DEFAULT_FUNC.
10707
65f160a9
TT
107082014-02-19 Tom Tromey <tromey@redhat.com>
10709
10710 * target-delegates.c: Rebuild.
10711 * target.c (update_current_target): Don't inherit or default
10712 to_watchpoint_addr_within_range.
10713 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
10714 Use TARGET_DEFAULT_FUNC.
10715
61dd109f
TT
107162014-02-19 Tom Tromey <tromey@redhat.com>
10717
10718 * target-delegates.c: Rebuild.
10719 * target.c (update_current_target): Don't inherit or default
10720 to_remove_watchpoint.
10721 * target.h (struct target_ops) <to_remove_watchpoint>: Use
10722 TARGET_DEFAULT_NORETURN.
10723
016facd4
TT
107242014-02-19 Tom Tromey <tromey@redhat.com>
10725
10726 * target-delegates.c: Rebuild.
10727 * target.c (update_current_target): Don't inherit or default
10728 to_insert_watchpoint.
10729 * target.h (struct target_ops) <to_insert_watchpoint>: Use
10730 TARGET_DEFAULT_RETURN.
10731
418dabac
TT
107322014-02-19 Tom Tromey <tromey@redhat.com>
10733
10734 * target-delegates.c: Rebuild.
10735 * target.c (update_current_target): Don't inherit or default
10736 to_remove_hw_breakpoint.
10737 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
10738 TARGET_DEFAULT_RETURN.
10739
61b371f9
TT
107402014-02-19 Tom Tromey <tromey@redhat.com>
10741
10742 * target-delegates.c: Rebuild.
10743 * target.c (update_current_target): Don't inherit or default
10744 to_insert_hw_breakpoint.
10745 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
10746 TARGET_DEFAULT_RETURN.
10747
52b51d06
TT
107482014-02-19 Tom Tromey <tromey@redhat.com>
10749
10750 * target-delegates.c: Rebuild.
10751 * target.c (update_current_target): Don't inherit or default
10752 to_can_use_hw_breakpoint.
10753 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
10754 TARGET_DEFAULT_RETURN.
10755
f86e59b2
TT
107562014-02-19 Tom Tromey <tromey@redhat.com>
10757
10758 * target-delegates.c: Rebuild.
10759 * target.c (update_current_target): Don't inherit or default
10760 to_files_info.
10761 * target.h (struct target_ops) <to_files_info>: Use
10762 TARGET_DEFAULT_IGNORE.
10763
6c628163
TT
107642014-02-19 Tom Tromey <tromey@redhat.com>
10765
10766 * target-delegates.c: Rebuild.
10767 * target.c (update_current_target): Don't inherit or default
10768 to_store.
10769 * target.h (struct target_ops) <to_store>: Use
10770 TARGET_DEFAULT_NORETURN.
10771
bebd3233
TT
107722014-02-19 Tom Tromey <tromey@redhat.com>
10773
10774 * target-delegates.c: Rebuild.
10775 * target.c (update_current_target): Don't inherit or default
10776 to_post_attach.
10777 * target.h (struct target_ops) <to_post_attach>: Use
10778 TARGET_DEFAULT_IGNORE.
10779
a53f3625
TT
107802014-02-19 Tom Tromey <tromey@redhat.com>
10781
10782 * target-delegates.c: Rebuild.
10783 * target.c (update_current_target): Don't inherit or default
10784 to_rcmd.
10785 (default_rcmd): New function.
10786 (do_monitor_command): Unconditionally delegate.
10787 * target.h (struct target_ops) <to_rmcd>: Use
10788 TARGET_DEFAULT_FUNC.
10789
e9a29200
TT
107902014-02-19 Tom Tromey <tromey@redhat.com>
10791
10792 * target-delegates.c: Rebuild.
10793 * target.c (init_dummy_target): Don't initialize to_attach.
10794 (target_attach): Unconditionally delegate.
10795 * target.h (struct target_ops) <to_attach>: Use
10796 TARGET_DEFAULT_FUNC.
10797
09da0d0a
TT
107982014-02-19 Tom Tromey <tromey@redhat.com>
10799
10800 * target-delegates.c: Rebuild.
10801 * target.c (target_detach): Unconditionally delegate.
10802 (init_dummy_target): Don't initialize to_detach.
10803 * target.h (struct target_ops) <to_detach>: Use
10804 TARGET_DEFAULT_IGNORE.
10805
5436ff03
TT
108062014-02-19 Tom Tromey <tromey@redhat.com>
10807
10808 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
10809 Add argument.
10810 (target_augmented_libraries_svr4_read): Add argument.
10811 * target.c (update_current_target): Update.
10812 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
10813 argument.
10814
f0d960ea
TT
108152014-02-19 Tom Tromey <tromey@redhat.com>
10816
10817 * target.h (struct target_ops) <to_call_history_range>: Add
10818 argument.
10819 * target.c (target_call_history_range): Add argument.
10820 * record-btrace.c (record_btrace_call_history_range): Add 'self'
10821 argument.
10822 (record_btrace_call_history_from): Update.
10823
ec0aea04
TT
108242014-02-19 Tom Tromey <tromey@redhat.com>
10825
10826 * target.h (struct target_ops) <to_call_history_from>: Add
10827 argument.
10828 * target.c (target_call_history_from): Add argument.
10829 * record-btrace.c (record_btrace_call_history_from): Add 'self'
10830 argument.
10831
5df2fcba
TT
108322014-02-19 Tom Tromey <tromey@redhat.com>
10833
10834 * target.h (struct target_ops) <to_call_history>: Add argument.
10835 * target.c (target_call_history): Add argument.
10836 * record-btrace.c (record_btrace_call_history): Add 'self'
10837 argument.
10838
4e99c6b7
TT
108392014-02-19 Tom Tromey <tromey@redhat.com>
10840
10841 * target.h (struct target_ops) <to_insn_history_range>: Add
10842 argument.
10843 * target.c (target_insn_history_range): Add argument.
10844 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
10845 argument.
10846 (record_btrace_insn_history_from): Update.
10847
9abc3ff3
TT
108482014-02-19 Tom Tromey <tromey@redhat.com>
10849
10850 * target.h (struct target_ops) <to_insn_history_from>: Add
10851 argument.
10852 * target.c (target_insn_history_from): Add argument.
10853 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
10854 argument.
10855
7a6c5609
TT
108562014-02-19 Tom Tromey <tromey@redhat.com>
10857
10858 * target.h (struct target_ops) <to_insn_history>: Add argument.
10859 * target.c (target_insn_history): Add argument.
10860 * record-btrace.c (record_btrace_insn_history): Add 'self'
10861 argument.
10862
606183ac
TT
108632014-02-19 Tom Tromey <tromey@redhat.com>
10864
10865 * target.h (struct target_ops) <to_goto_record>: Add argument.
10866 * target.c (target_goto_record): Add argument.
10867 * record-full.c (record_full_goto): Add 'self' argument.
10868 * record-btrace.c (record_btrace_goto): Add 'self' argument.
10869
307a1b91
TT
108702014-02-19 Tom Tromey <tromey@redhat.com>
10871
10872 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
10873 * target.c (target_goto_record_end): Add argument.
10874 * record-full.c (record_full_goto_end): Add 'self' argument.
10875 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
10876
08475817
TT
108772014-02-19 Tom Tromey <tromey@redhat.com>
10878
10879 * target.h (struct target_ops) <to_goto_record_begin>: Add
10880 argument.
10881 * target.c (target_goto_record_begin): Add argument.
10882 * record-full.c (record_full_goto_begin): Add 'self' argument.
10883 * record-btrace.c (record_btrace_goto_begin): Add 'self'
10884 argument.
10885
1c63c994
TT
108862014-02-19 Tom Tromey <tromey@redhat.com>
10887
10888 * target.h (struct target_ops) <to_record_is_replaying>: Add
10889 argument.
10890 * target.c (target_record_is_replaying): Add argument.
10891 * record-full.c (record_full_is_replaying): Add 'self' argument.
10892 * record-btrace.c (record_btrace_is_replaying): Add 'self'
10893 argument.
10894 (record_btrace_xfer_partial, record_btrace_store_registers)
10895 (record_btrace_prepare_to_store, record_btrace_resume)
10896 (record_btrace_wait, record_btrace_decr_pc_after_break)
10897 (record_btrace_find_new_threads, record_btrace_thread_alive):
10898 Update.
10899
d1b55219
TT
109002014-02-19 Tom Tromey <tromey@redhat.com>
10901
10902 * target.h (struct target_ops) <to_delete_record>: Add argument.
10903 * target.c (target_delete_record): Add argument.
10904 * record-full.c (record_full_delete): Add 'self' argument.
10905
1390f529
TT
109062014-02-19 Tom Tromey <tromey@redhat.com>
10907
10908 * target.h (struct target_ops) <to_save_record>: Add argument.
10909 * target.c (target_save_record): Add argument.
10910 * record-full.c (record_full_save): Add 'self' argument.
10911 (record_full_save): Add 'self' argument.
10912
630d6a4a
TT
109132014-02-19 Tom Tromey <tromey@redhat.com>
10914
10915 * target.h (struct target_ops) <to_info_record>: Add argument.
10916 * target.c (target_info_record): Add argument.
10917 * record.c (info_record_command): Add argument.
10918 * record-full.c (record_full_info): Add 'self' argument.
10919 * record-btrace.c (record_btrace_info): Add 'self' argument.
10920
c6cd7c02
TT
109212014-02-19 Tom Tromey <tromey@redhat.com>
10922
10923 * target.h (struct target_ops) <to_stop_recording>: Add argument.
10924 * target.c (target_stop_recording): Add argument.
10925 * record.c (record_stop): Add argument.
10926 * record-btrace.c (record_btrace_stop_recording): Add 'self'
10927 argument.
10928
39c49f83
TT
109292014-02-19 Tom Tromey <tromey@redhat.com>
10930
10931 * target.h (struct target_ops) <to_read_btrace>: Add argument.
10932 * target.c (struct target_ops) <to_read_btrace>: Add argument.
10933 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
10934 argument.
10935 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
10936 (_initialize_amd64_linux_nat): Use it.
10937 * i386-linux-nat.c (i386_linux_read_btrace): New function.
10938 (_initialize_i386_linux_nat): Use it.
10939
1777056d
TT
109402014-02-19 Tom Tromey <tromey@redhat.com>
10941
10942 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
10943 * target.c (target_teardown_btrace): Add argument.
10944 * remote.c (remote_teardown_btrace): Add 'self' argument.
10945 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
10946 argument.
10947 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
10948 argument.
10949
25e95349
TT
109502014-02-19 Tom Tromey <tromey@redhat.com>
10951
10952 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
10953 * target.c (target_disable_btrace): Add argument.
10954 * remote.c (remote_disable_btrace): Add 'self' argument.
10955 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
10956 argument.
10957 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
10958 argument.
10959
e3c49f88
TT
109602014-02-19 Tom Tromey <tromey@redhat.com>
10961
10962 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
10963 * target.c (target_enable_btrace): Add argument.
10964 * remote.c (remote_enable_btrace): Add 'self' argument.
10965 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
10966 argument.
10967 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
10968 argument.
10969
fe38f897
TT
109702014-02-19 Tom Tromey <tromey@redhat.com>
10971
10972 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
10973 (target_can_use_agent): Add argument.
10974 * target.c (update_current_target): Update.
10975 * remote.c (remote_can_use_agent): Add 'self' argument.
10976 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
10977
2c152180
TT
109782014-02-19 Tom Tromey <tromey@redhat.com>
10979
10980 * target.h (struct target_ops) <to_use_agent>: Add argument.
10981 (target_use_agent): Add argument.
10982 * target.c (update_current_target): Update.
10983 * remote.c (remote_use_agent): Add 'self' argument.
10984 * inf-child.c (inf_child_use_agent): Add 'self' argument.
10985
a893e81f
TT
109862014-02-19 Tom Tromey <tromey@redhat.com>
10987
10988 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
10989 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
10990 (target_traceframe_info): Add argument.
10991 * target.c (update_current_target): Update.
10992 * remote.c (remote_traceframe_info): Add 'self' argument.
10993 * ctf.c (ctf_traceframe_info): Add 'self' argument.
10994
c686c57f
TT
109952014-02-19 Tom Tromey <tromey@redhat.com>
10996
10997 * target.h (target_static_tracepoint_markers_by_strid): Add
10998 argument.
10999 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
11000 'self' argument.
11001 * target.c (update_current_target): Update.
11002 * remote.c (struct target_ops)
11003 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
11004 * linux-nat.c (struct target_ops)
11005 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
11006
61fc905d
TT
110072014-02-19 Tom Tromey <tromey@redhat.com>
11008
11009 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
11010 Add argument.
11011 (target_static_tracepoint_marker_at): Add argument.
11012 * target.c (update_current_target): Update.
11013 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
11014 argument.
11015
c378d69d
TT
110162014-02-19 Tom Tromey <tromey@redhat.com>
11017
11018 * target.h (struct target_ops) <to_set_permissions>: Add argument.
11019 (target_set_permissions): Add argument.
11020 * target.c (update_current_target): Update.
11021 * remote.c (remote_set_permissions): Add 'self' argument.
11022 (remote_start_remote): Update.
11023
bd7ae0f5
TT
110242014-02-19 Tom Tromey <tromey@redhat.com>
11025
11026 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
11027 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
11028 (target_get_tib_address): Add argument.
11029 * target.c (update_current_target): Update.
11030 * remote.c (remote_get_tib_address): Add 'self' argument.
11031
d9e68a2c
TT
110322014-02-19 Tom Tromey <tromey@redhat.com>
11033
11034 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
11035 (target_set_trace_notes): Add argument.
11036 * target.c (update_current_target): Update.
11037 * remote.c (remote_set_trace_notes): Add 'self' argument.
11038
4da384be
TT
110392014-02-19 Tom Tromey <tromey@redhat.com>
11040
11041 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
11042 argument.
11043 (target_set_trace_buffer_size): Add argument.
11044 * target.c (update_current_target): Update.
11045 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
11046
736d5b1f
TT
110472014-02-19 Tom Tromey <tromey@redhat.com>
11048
11049 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
11050 argument.
11051 (target_set_circular_trace_buffer): Add argument.
11052 * target.c (update_current_target): Update.
11053 * remote.c (remote_set_circular_trace_buffer): Add 'self'
11054 argument.
11055
37b25738
TT
110562014-02-19 Tom Tromey <tromey@redhat.com>
11057
11058 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
11059 argument.
11060 (target_set_disconnected_tracing): Add argument.
11061 * target.c (update_current_target): Update.
11062 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
11063
0e67620a
TT
110642014-02-19 Tom Tromey <tromey@redhat.com>
11065
11066 * target.h (struct target_ops)
11067 <to_get_min_fast_tracepoint_insn_len>: Add argument.
11068 (target_get_min_fast_tracepoint_insn_len): Add argument.
11069 * target.c (update_current_target): Update.
11070 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
11071 argument.
11072
88ee6f45
TT
110732014-02-19 Tom Tromey <tromey@redhat.com>
11074
11075 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
11076 argument.
11077 (target_get_raw_trace_data): Add argument.
11078 * target.c (update_current_target): Update.
11079 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
11080
181e3713
TT
110812014-02-19 Tom Tromey <tromey@redhat.com>
11082
11083 * target.h (struct target_ops) <to_upload_trace_state_variables>:
11084 Add argument.
11085 (target_upload_trace_state_variables): Add argument.
11086 * target.c (update_current_target): Update.
11087 * remote.c (remote_upload_trace_state_variables): Add 'self'
11088 argument.
11089 (remote_start_remote): Update.
11090
ab6617cc
TT
110912014-02-19 Tom Tromey <tromey@redhat.com>
11092
11093 * target.h (struct target_ops) <to_upload_tracepoints>: Add
11094 argument.
11095 (target_upload_tracepoints): Add argument.
11096 * target.c (update_current_target): Update.
11097 * remote.c (remote_upload_tracepoints): Add 'self' argument.
11098 (remote_start_remote): Update.
11099
dc3decaf
TT
111002014-02-19 Tom Tromey <tromey@redhat.com>
11101
11102 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
11103 (target_save_trace_data): Add argument.
11104 * target.c (update_current_target): Update.
11105 * remote.c (remote_save_trace_data): Add 'self' argument.
11106
4011015b
TT
111072014-02-19 Tom Tromey <tromey@redhat.com>
11108
11109 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
11110 argument.
11111 * target.h (struct target_ops)
11112 <to_get_trace_state_variable_value>: Add argument.
11113 (target_get_trace_state_variable_value): Add argument.
11114 * target.c (update_current_target): Update.
11115 * remote.c (remote_get_trace_state_variable_value): Add 'self'
11116 argument.
11117 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
11118
bd4c6793
TT
111192014-02-19 Tom Tromey <tromey@redhat.com>
11120
11121 * tracepoint.c (tfile_trace_find): Add 'self' argument.
11122 * target.h (struct target_ops) <to_trace_find>: Add argument.
11123 (target_trace_find): Add argument.
11124 * target.c (update_current_target): Update.
11125 * remote.c (remote_trace_find): Add 'self' argument.
11126 * ctf.c (ctf_trace_find): Add 'self' argument.
11127
74499f1b
TT
111282014-02-19 Tom Tromey <tromey@redhat.com>
11129
11130 * target.h (struct target_ops) <to_trace_stop>: Add argument.
11131 (target_trace_stop): Add argument.
11132 * target.c (update_current_target): Update.
11133 * remote.c (remote_trace_stop): Add 'self' argument.
11134
db90e85c
TT
111352014-02-19 Tom Tromey <tromey@redhat.com>
11136
11137 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
11138 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
11139 argument.
11140 (target_get_tracepoint_status): Add argument.
11141 * target.c (update_current_target): Update.
11142 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
11143
8bd200f1
TT
111442014-02-19 Tom Tromey <tromey@redhat.com>
11145
11146 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
11147 * target.h (struct target_ops) <to_get_trace_status>: Add
11148 argument.
11149 (target_get_trace_status): Add argument.
11150 * target.c (update_current_target): Update.
11151 * remote.c (remote_get_trace_status): Add 'self' argument.
11152 (remote_start_remote, remote_can_download_tracepoint): Update.
11153 * ctf.c (ctf_get_trace_status): Add 'self' argument.
11154
e2d1aae3
TT
111552014-02-19 Tom Tromey <tromey@redhat.com>
11156
11157 * target.h (struct target_ops) <to_trace_start>: Add argument.
11158 (target_trace_start): Add argument.
11159 * target.c (update_current_target): Update.
11160 * remote.c (remote_trace_start): Add 'self' argument.
11161
583f9a86
TT
111622014-02-19 Tom Tromey <tromey@redhat.com>
11163
11164 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
11165 Add argument.
11166 (target_trace_set_readonly_regions): Add argument.
11167 * target.c (update_current_target): Update.
11168 * remote.c (remote_trace_set_readonly_regions): Add 'self'
11169 argument.
11170
780b049c
TT
111712014-02-19 Tom Tromey <tromey@redhat.com>
11172
11173 * target.h (struct target_ops) <to_disable_tracepoint>: Add
11174 argument.
11175 (target_disable_tracepoint): Add argument.
11176 * target.c (update_current_target): Update.
11177 * remote.c (remote_disable_tracepoint): Add 'self' argument.
11178
46670d57
TT
111792014-02-19 Tom Tromey <tromey@redhat.com>
11180
11181 * target.h (struct target_ops) <to_enable_tracepoint>: Add
11182 argument.
11183 (target_enable_tracepoint): Add argument.
11184 * target.c (update_current_target): Update.
11185 * remote.c (remote_enable_tracepoint): Add 'self' argument.
11186
559d2b81
TT
111872014-02-19 Tom Tromey <tromey@redhat.com>
11188
11189 * target.h (struct target_ops) <to_download_trace_state_variable>:
11190 Add argument.
11191 (target_download_trace_state_variable): Add argument.
11192 * target.c (update_current_target): Update.
11193 * remote.c (remote_download_trace_state_variable): Add 'self'
11194 argument.
11195
a52a8357
TT
111962014-02-19 Tom Tromey <tromey@redhat.com>
11197
11198 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
11199 argument.
11200 (target_can_download_tracepoint): Add argument.
11201 * target.c (update_current_target): Update.
11202 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
11203
548f7808
TT
112042014-02-19 Tom Tromey <tromey@redhat.com>
11205
11206 * target.h (struct target_ops) <to_download_tracepoint>: Add
11207 argument.
11208 (target_download_tracepoint): Add argument.
11209 * target.c (update_current_target): Update.
11210 * remote.c (remote_download_tracepoint): Add 'self' argument.
11211
ecae04e1
TT
112122014-02-19 Tom Tromey <tromey@redhat.com>
11213
11214 * target.h (struct target_ops) <to_trace_init>: Add argument.
11215 (target_trace_init): Add argument.
11216 * target.c (update_current_target): Update.
11217 * remote.c (remote_trace_init): Add 'self' argument.
11218
fab5aa7c
TT
112192014-02-19 Tom Tromey <tromey@redhat.com>
11220
11221 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
11222 * target.c (target_fileio_readlink): Add argument.
11223 * remote.c (remote_hostio_readlink): Add 'self' argument.
11224 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
11225
dbbca37d
TT
112262014-02-19 Tom Tromey <tromey@redhat.com>
11227
11228 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
11229 * target.c (target_fileio_unlink): Add argument.
11230 * remote.c (remote_hostio_unlink): Add 'self' argument.
11231 (remote_file_delete): Update.
11232 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
11233
df39ea25
TT
112342014-02-19 Tom Tromey <tromey@redhat.com>
11235
11236 * target.h (struct target_ops) <to_fileio_close>: Add argument.
11237 * target.c (target_fileio_close): Add argument.
11238 * remote.c (remote_hostio_close): Add 'self' argument.
11239 (remote_hostio_close_cleanup): Update.
11240 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
11241 Update.
11242 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
11243
a3be983c
TT
112442014-02-19 Tom Tromey <tromey@redhat.com>
11245
11246 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
11247 * target.c (target_fileio_pread): Add argument.
11248 * remote.c (remote_hostio_pread): Add 'self' argument.
11249 (remote_bfd_iovec_pread, remote_file_get): Update.
11250 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
11251
0d866f62
TT
112522014-02-19 Tom Tromey <tromey@redhat.com>
11253
11254 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
11255 * target.c (target_fileio_pwrite): Add argument.
11256 * remote.c (remote_hostio_pwrite): Add 'self' argument.
11257 (remote_file_put): Update.
11258 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
11259
cd897586
TT
112602014-02-19 Tom Tromey <tromey@redhat.com>
11261
11262 * target.h (struct target_ops) <to_fileio_open>: Add argument.
11263 * target.c (target_fileio_open): Add argument.
11264 * remote.c (remote_hostio_open): Add 'self' argument.
11265 (remote_bfd_iovec_open): Add 'self' argument.
11266 (remote_file_put): Add 'self' argument.
11267 (remote_file_get): Add 'self' argument.
11268 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
11269
78eff0ec
TT
112702014-02-19 Tom Tromey <tromey@redhat.com>
11271
11272 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
11273 Add argument.
11274 (target_can_run_breakpoint_commands): Add argument.
11275 * target.c (update_current_target): Update.
11276 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
11277 argument.
11278 (remote_insert_breakpoint): Add 'self' argument.
11279 (remote_insert_hw_breakpoint): Add 'self' argument.
11280 (remote_can_run_breakpoint_commands): Add 'self' argument.
11281
efcc2da7
TT
112822014-02-19 Tom Tromey <tromey@redhat.com>
11283
11284 * target.h (struct target_ops)
11285 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
11286 (target_supports_evaluation_of_breakpoint_conditions): Add
11287 argument.
11288 * target.c (update_current_target): Update.
11289 * remote.c (remote_supports_cond_breakpoints): Add 'self'
11290 argument.
11291 (remote_insert_breakpoint): Add 'self' argument.
11292 (remote_insert_hw_breakpoint): Add 'self' argument.
11293 (remote_supports_cond_breakpoints): Add 'self' argument.
11294
6de37a3a
TT
112952014-02-19 Tom Tromey <tromey@redhat.com>
11296
11297 * target.h (struct target_ops) <to_supports_string_tracing>: Add
11298 argument.
11299 (target_supports_string_tracing): Add argument.
11300 * target.c (update_current_target): Update.
11301 * remote.c (remote_supports_string_tracing): Add 'self' argument.
11302
2bfc0540
TT
113032014-02-19 Tom Tromey <tromey@redhat.com>
11304
11305 * target.h (struct target_ops)
11306 <to_supports_disable_randomization>: Add argument.
11307 * target.c (find_default_supports_disable_randomization): Add
11308 argument.
11309 (target_supports_disable_randomization): Add argument.
11310 (find_default_supports_disable_randomization): Add 'self'
11311 argument.
11312 * remote.c (extended_remote_supports_disable_randomization): Add
11313 'self' argument.
11314 (remote_supports_disable_randomization): Add 'self' argument.
11315 (extended_remote_create_inferior): Update.
11316 * linux-nat.c (linux_nat_supports_disable_randomization): Add
11317 'self' argument.
11318
7d178d6a
TT
113192014-02-19 Tom Tromey <tromey@redhat.com>
11320
11321 * target.h (struct target_ops)
11322 <to_supports_enable_disable_tracepoint>: Add argument.
11323 (target_supports_enable_disable_tracepoint): Add argument.
11324 * target.c (update_current_target): Update.
11325 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
11326 argument.
11327
86ce2668
TT
113282014-02-19 Tom Tromey <tromey@redhat.com>
11329
11330 * target.h (struct target_ops) <to_supports_multi_process>: Add
11331 argument.
11332 (target_supports_multi_process): Add argument.
11333 * target.c (update_current_target): Update.
11334 * remote.c (remote_supports_multi_process): Add 'self' argument.
11335 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
11336 argument.
11337 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
11338 argument.
11339
4c612759
TT
113402014-02-19 Tom Tromey <tromey@redhat.com>
11341
11342 * target.h (struct target_ops) <to_execution_direction>: Add
11343 argument.
11344 (target_execution_direction): Add argument.
11345 * target.c (default_execution_direction): Add 'self' argument.
11346 * record-full.c (record_full_execution_direction): Add 'self'
11347 argument.
11348
19db3e69
TT
113492014-02-19 Tom Tromey <tromey@redhat.com>
11350
11351 * target.h (struct target_ops) <to_can_execute_reverse>: Add
11352 argument.
11353 (target_can_execute_reverse): Add argument.
11354 * remote.c (remote_can_execute_reverse): Add 'self' argument.
11355 * record-full.c (record_full_can_execute_reverse): Add 'self'
11356 argument.
11357 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
11358 argument.
11359
1e6b91a4
TT
113602014-02-19 Tom Tromey <tromey@redhat.com>
11361
11362 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
11363 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
11364 argument.
11365 (target_get_ada_task_ptid): Add argument.
11366 * target.c (update_current_target): Update.
11367 (default_get_ada_task_ptid): Add 'self' argument.
11368 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
11369 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
11370 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
11371 argument.
11372 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
11373 argument.
11374 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
11375 argument.
11376 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
11377 argument.
11378 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
11379 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
11380 argument.
11381
3c80fb48
TT
113822014-02-19 Tom Tromey <tromey@redhat.com>
11383
11384 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
11385 (target_goto_bookmark): Add argument.
11386 * target.c (dummy_goto_bookmark): Add 'self' argument.
11387 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
11388
dd0e2830
TT
113892014-02-19 Tom Tromey <tromey@redhat.com>
11390
11391 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
11392 (target_get_bookmark): Add argument.
11393 * target.c (dummy_get_bookmark): Add 'self' argument.
11394 * record-full.c (record_full_get_bookmark): Add 'self' argument.
11395
fc6691b2
TT
113962014-02-19 Tom Tromey <tromey@redhat.com>
11397
11398 * target.h (struct target_ops) <to_make_corefile_notes>: Add
11399 argument.
11400 (target_make_corefile_notes): Add argument.
11401 * target.c (dummy_make_corefile_notes): Add 'self' argument.
11402 * procfs.c (procfs_make_note_section): Add 'self' argument.
11403 (procfs_make_note_section): Add 'self' argument.
11404 (procfs_make_note_section): Add 'self' argument.
11405 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
11406 argument.
11407 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
11408 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
11409 * exec.c (exec_make_note_section): Add 'self' argument.
11410 (exec_make_note_section): Add 'self' argument.
11411
2e73927c
TT
114122014-02-19 Tom Tromey <tromey@redhat.com>
11413
11414 * target.h (struct target_ops) <to_find_memory_regions>: Add
11415 argument.
11416 (target_find_memory_regions): Add argument.
11417 * target.c (dummy_find_memory_regions): Add 'self' argument.
11418 * procfs.c (proc_find_memory_regions): Add 'self' argument.
11419 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
11420 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
11421 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
11422 * exec. (exec_do_find_memory_regions): New global.
11423 (exec_set_find_memory_regions): Rewrite.
11424 (exec_find_memory_regions): New function.
11425 (init_exec_ops): Use exec_find_memory_regions.
11426
2a9a2795
TT
114272014-02-19 Tom Tromey <tromey@redhat.com>
11428
11429 * target.h (struct target_ops) <to_supports_non_stop>: Add
11430 argument.
11431 * target.c (find_default_supports_non_stop): Add argument.
11432 (target_supports_non_stop): Add argument.
11433 (find_default_supports_non_stop): Add 'self' argument.
11434 * remote.c (remote_supports_non_stop): Add 'self' argument.
11435 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
11436
4ab76ea3
TT
114372014-02-19 Tom Tromey <tromey@redhat.com>
11438
11439 * target.h (struct target_ops) <to_log_command>: Add argument.
11440 (target_log_command): Add argument.
11441 * serial.h (serial_log_command): Add 'self' argument.
11442 * serial.c (serial_log_command): Add 'self' argument.
11443
8dd27370
TT
114442014-02-19 Tom Tromey <tromey@redhat.com>
11445
11446 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
11447 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
11448 argument.
11449 (target_pid_to_exec_file): Add argument.
11450 * target.c (debug_to_pid_to_exec_file): Add argument.
11451 (update_current_target): Update.
11452 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
11453 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
11454 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
11455 (linux_handle_extended_wait): Update.
11456 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
11457 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
11458 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
11459 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
11460
1aac633b
TT
114612014-02-19 Tom Tromey <tromey@redhat.com>
11462
11463 * target.h (struct target_ops) <to_rcmd>: Add argument.
11464 (target_rcmd): Add argument.
11465 * target.c (debug_to_rcmd): Add argument.
11466 (update_current_target, do_monitor_command): Update.
11467 * remote.c (remote_rcmd): Add 'self' argument.
11468 * monitor.c (monitor_rcmd): Add 'self' argument.
11469
1eab8a48
TT
114702014-02-19 Tom Tromey <tromey@redhat.com>
11471
11472 * windows-nat.c (windows_stop): Add 'self' argument.
11473 * target.h (struct target_ops) <to_stop>: Add argument.
11474 * target.c (target_stop): Add argument.
11475 (debug_to_stop): Add argument.
11476 (update_current_target): Update.
11477 * remote.c (remote_stop): Add 'self' argument.
11478 * remote-sim.c (gdbsim_stop): Add 'self' argument.
11479 (gdbsim_cntrl_c): Update.
11480 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
11481 * procfs.c (procfs_stop): Add 'self' argument.
11482 * nto-procfs.c (procfs_stop): Add 'self' argument.
11483 * monitor.c (monitor_stop): Add 'self' argument.
11484 (monitor_open): Update.
11485 * linux-nat.c (linux_nat_stop): Add argument.
11486 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
11487 * gnu-nat.c (gnu_stop): Add 'self' argument.
11488 * darwin-nat.c (darwin_stop): Add 'self' argument.
11489
503a628d
TT
114902014-02-19 Tom Tromey <tromey@redhat.com>
11491
11492 * target.h (struct target_ops) <to_thread_name>: Add argument.
11493 * target.c (target_thread_name): Add argument.
11494 (update_current_target): Update.
11495 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
11496
c15906d8
TT
114972014-02-19 Tom Tromey <tromey@redhat.com>
11498
11499 * target.h (struct target_ops) <to_extra_thread_info>: Add
11500 argument.
11501 (target_extra_thread_info): Add argument.
11502 * target.c (update_current_target): Update.
11503 * remote.c (remote_threads_extra_info): Add 'self' argument.
11504 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
11505 argument.
11506 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
11507 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
11508 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
11509 argument.
11510 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
11511 argument.
11512 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
11513 argument.
11514 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
11515 argument.
11516
daf5e9b6
TT
115172014-02-19 Tom Tromey <tromey@redhat.com>
11518
11519 * target.h (struct target_ops) <to_program_signals>: Add argument.
11520 * target.c (target_program_signals): Add argument.
11521 * remote.c (remote_program_signals): Add 'self' argument.
11522
94bedb42
TT
115232014-02-19 Tom Tromey <tromey@redhat.com>
11524
11525 * target.h (struct target_ops) <to_pass_signals>: Add argument.
11526 * target.c (target_pass_signals): Add argument.
11527 * remote.c (remote_pass_signals): Add 'self' argument.
11528 (remote_start_remote): Update.
11529 * procfs.c (procfs_pass_signals): Add 'self' argument.
11530 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
11531 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
11532 (linux_nat_create_inferior, linux_nat_attach): Update.
11533
da82bd6b
TT
115342014-02-19 Tom Tromey <tromey@redhat.com>
11535
11536 * windows-nat.c (windows_can_run): Add 'self' argument.
11537 * target.h (struct target_ops) <to_can_run>: Add argument.
11538 (target_can_run): Add argument.
11539 * target.c (debug_to_can_run): Add argument.
11540 (update_current_target): Update.
11541 * nto-procfs.c (procfs_can_run): Add 'self' argument.
11542 * inf-child.c (inf_child_can_run): Add 'self' argument.
11543 * go32-nat.c (go32_can_run): Add 'self' argument.
11544
d796e1d6
TT
115452014-02-19 Tom Tromey <tromey@redhat.com>
11546
11547 * target.h (struct target_ops) <to_has_exited>: Add argument.
11548 (target_has_exited): Add argument.
11549 * target.c (debug_to_has_exited): Add argument.
11550 (update_current_target): Update.
11551
ff214e67
TT
115522014-02-19 Tom Tromey <tromey@redhat.com>
11553
11554 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
11555 argument.
11556 (target_set_syscall_catchpoint): Add argument.
11557 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
11558 argument.
11559 * target.c (update_current_target): Update.
11560
758e29d2
TT
115612014-02-19 Tom Tromey <tromey@redhat.com>
11562
11563 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
11564 argument.
11565 (target_remove_exec_catchpoint): Add argument.
11566 * target.c (debug_to_remove_exec_catchpoint): Add argument.
11567 (update_current_target): Update.
11568 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
11569 argument.
11570
ba025e51
TT
115712014-02-19 Tom Tromey <tromey@redhat.com>
11572
11573 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
11574 argument.
11575 (target_insert_exec_catchpoint): Add argument.
11576 * target.c (debug_to_insert_exec_catchpoint): Add argument.
11577 (update_current_target): Update.
11578 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
11579 argument.
11580
e98cf0cd
TT
115812014-02-19 Tom Tromey <tromey@redhat.com>
11582
11583 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
11584 argument.
11585 (target_remove_vfork_catchpoint): Add argument.
11586 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
11587 (update_current_target): Update.
11588 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
11589 argument.
11590
3ecc7da0
TT
115912014-02-19 Tom Tromey <tromey@redhat.com>
11592
11593 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
11594 argument.
11595 (target_insert_vfork_catchpoint): Add argument.
11596 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
11597 (update_current_target): Update.
11598 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
11599 argument.
11600
973fc227
TT
116012014-02-19 Tom Tromey <tromey@redhat.com>
11602
11603 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
11604 argument.
11605 (target_remove_fork_catchpoint): Add argument.
11606 * target.c (debug_to_remove_fork_catchpoint): Add argument.
11607 (update_current_target): Update.
11608 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
11609 argument.
11610
a863b201
TT
116112014-02-19 Tom Tromey <tromey@redhat.com>
11612
11613 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
11614 argument.
11615 (target_insert_fork_catchpoint): Add argument.
11616 * target.c (debug_to_insert_fork_catchpoint): Add argument.
11617 (update_current_target): Update.
11618 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
11619 argument.
11620
2e97a79e
TT
116212014-02-19 Tom Tromey <tromey@redhat.com>
11622
11623 * target.h (struct target_ops) <to_post_startup_inferior>: Add
11624 argument.
11625 (target_post_startup_inferior): Add argument.
11626 * target.c (debug_to_post_startup_inferior): Add argument.
11627 (update_current_target): Update.
11628 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
11629 argument.
11630 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
11631 argument.
11632 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
11633 argument.
11634 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
11635 argument.
11636 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
11637 'self' argument.
11638 (super_post_startup_inferior): Likewise.
11639 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
11640 'self' argument.
11641 (super_post_startup_inferior): Likewise.
11642 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
11643 Add 'self' argument.
11644 (super_post_startup_inferior): Likewise.
11645
71a9f134
TT
116462014-02-19 Tom Tromey <tromey@redhat.com>
11647
11648 * target.h (struct target_ops) <to_load>: Add argument.
11649 * target.c (target_load): Add argument.
11650 (debug_to_load): Add argument.
11651 (update_current_target): Update.
11652 * remote.c (remote_load): Add 'self' argument.
11653 * remote-sim.c (gdbsim_load): Add 'self' argument.
11654 * remote-mips.c (mips_load): Add 'self' argument.
11655 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
11656 * monitor.c (monitor_load): Add 'self' argument.
11657 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
11658
0a4f40a2
TT
116592014-02-19 Tom Tromey <tromey@redhat.com>
11660
11661 * target.h (struct target_ops) <to_terminal_info>: Add argument.
11662 (target_terminal_info): Add argument.
11663 * target.c (debug_to_terminal_info): Add argument.
11664 (default_terminal_info): Likewise.
11665 * inflow.c (child_terminal_info): Add 'self' argument.
11666 * inferior.h (child_terminal_info): Add 'self' argument.
11667 * go32-nat.c (go32_terminal_info): Add 'self' argument.
11668
ae3bd431
TT
116692014-02-19 Tom Tromey <tromey@redhat.com>
11670
11671 * target.h (struct target_ops) <to_terminal_save_ours>: Add
11672 argument.
11673 (target_terminal_save_ours): Add argument.
11674 * target.c (debug_to_terminal_save_ours): Add argument.
11675 (update_current_target): Update.
11676 * inflow.c (terminal_save_ours): Add 'self' argument.
11677 * inferior.h (terminal_save_ours): Add 'self' argument.
11678
e3594fd1
TT
116792014-02-19 Tom Tromey <tromey@redhat.com>
11680
11681 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
11682 (target_terminal_ours): Add argument.
11683 * target.c (debug_to_terminal_ours): Add argument.
11684 (update_current_target): Update.
11685 * remote.c (remote_terminal_ours): Add 'self' argument.
11686 (remote_close): Update.
11687 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
11688 * inflow.c (terminal_ours): Add 'self' argument.
11689 * inferior.h (terminal_ours): Add 'self' argument.
11690 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11691
2e1e1a19
TT
116922014-02-19 Pedro Alves <palves@redhat.com>
11693 Tom Tromey <tromey@redhat.com>
11694
11695 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
11696 argument.
11697 (target_terminal_ours_for_output): Add argument.
11698 * target.c (debug_to_terminal_ours_for_output): Add argument.
11699 (update_current_target): Update.
11700 * inflow.c (terminal_ours_for_output): Add 'self' argument.
11701 * inferior.h (terminal_ours_for_output): Add 'self' argument.
11702 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11703
d2f640d4
TT
117042014-02-19 Tom Tromey <tromey@redhat.com>
11705
11706 * target.h (struct target_ops) <to_terminal_inferior>: Add
11707 argument.
11708 * target.c (target_terminal_inferior): Add argument.
11709 (update_current_target): Update.
11710 * remote.c (remote_terminal_inferior): Add 'self' argument.
11711 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
11712 * inflow.c (terminal_inferior): Add 'self' argument.
11713 * inferior.h (terminal_inferior): Add 'self' argument.
11714 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
11715 (go32_terminal_inferior): Add 'self' argument.
11716
c42bf286
TT
117172014-02-19 Tom Tromey <tromey@redhat.com>
11718
11719 * target.h (struct target_ops) <to_terminal_init>: Add argument.
11720 (target_terminal_init): Add argument.
11721 * target.c (debug_to_terminal_init): Add argument.
11722 (update_current_target): Update.
11723 * inflow.c (terminal_init_inferior): Add 'self' argument.
11724 * inferior.h (terminal_init_inferior): Add 'self' argument.
11725 * go32-nat.c (go32_terminal_init): Add 'self' argument.
11726 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
11727
c3a5ff89
TT
117282014-02-19 Tom Tromey <tromey@redhat.com>
11729
11730 * target.h (struct target_ops)
11731 <to_can_accel_watchpoint_condition>: Add argument.
11732 (target_can_accel_watchpoint_condition): Add argument.
11733 * target.c (debug_to_can_accel_watchpoint_condition): Add
11734 argument.
11735 (update_current_target): Update.
11736 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
11737 'self' argument.
11738
31568a15
TT
117392014-02-19 Tom Tromey <tromey@redhat.com>
11740
11741 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11742 Add argument.
11743 (target_region_ok_for_hw_watchpoint): Add argument.
11744 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
11745 (default_region_ok_for_hw_watchpoint): Add argument.
11746 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
11747 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
11748 argument.
11749 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
11750 argument.
11751 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
11752 argument.
11753 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
11754 'self' argument.
11755 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
11756 'self' argument.
11757 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
11758 'self' argument.
11759 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
11760 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
11761 'self' argument.
11762 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
11763 Add 'self' argument.
11764
7bb99c53
TT
117652014-02-19 Tom Tromey <tromey@redhat.com>
11766
11767 * target.h (struct target_ops) <to_insert_watchpoint>: Add
11768 argument.
11769 (target_insert_watchpoint): Add argument.
11770 * target.c (debug_to_insert_watchpoint): Add argument.
11771 (update_current_target): Update.
11772 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
11773 * remote.c (remote_insert_watchpoint): Add 'self' argument.
11774 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
11775 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
11776 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
11777 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
11778 argument.
11779 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
11780 (procfs_insert_hw_watchpoint): Add 'self' argument.
11781 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
11782 argument.
11783 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
11784 argument.
11785 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
11786 argument.
11787 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
11788 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
11789 argument.
11790 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
11791 'self' argument.
11792
11b5219a
TT
117932014-02-19 Tom Tromey <tromey@redhat.com>
11794
11795 * target.h (struct target_ops) <to_remove_watchpoint>: Add
11796 argument.
11797 (target_remove_watchpoint): Add argument.
11798 * target.c (debug_to_remove_watchpoint): Add argument.
11799 (update_current_target): Update.
11800 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
11801 * remote.c (remote_remove_watchpoint): Add 'self' argument.
11802 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
11803 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
11804 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
11805 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
11806 argument.
11807 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
11808 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
11809 argument.
11810 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
11811 argument.
11812 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
11813 argument.
11814 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
11815 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
11816 argument.
11817 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
11818 'self' argument.
11819
a64dc96c
TT
118202014-02-19 Tom Tromey <tromey@redhat.com>
11821
11822 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
11823 argument.
11824 (target_remove_hw_breakpoint): Add argument.
11825 * target.c (debug_to_remove_hw_breakpoint): Add argument.
11826 (update_current_target): Update.
11827 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
11828 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
11829 argument.
11830 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
11831 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
11832 argument.
11833 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
11834 'self' argument.
11835
23a26771
TT
118362014-02-19 Tom Tromey <tromey@redhat.com>
11837
11838 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
11839 argument.
11840 (target_insert_hw_breakpoint): Add argument.
11841 * target.c (debug_to_insert_hw_breakpoint): Add argument.
11842 (update_current_target): Update.
11843 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
11844 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
11845 argument.
11846 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
11847 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
11848 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
11849 argument.
11850 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
11851 'self' argument.
11852
5461485a
TT
118532014-02-19 Tom Tromey <tromey@redhat.com>
11854
11855 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
11856 argument.
11857 (target_can_use_hardware_watchpoint): Add argument.
11858 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
11859 (update_current_target): Update.
11860 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
11861 argument.
11862 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
11863 argument.
11864 * remote.c (remote_check_watch_resources): Add 'self' argument.
11865 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
11866 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
11867 argument.
11868 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
11869 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
11870 argument.
11871 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
11872 argument.
11873 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
11874 argument.
11875 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
11876 argument.
11877 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
11878 argument.
11879 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
11880 argument.
11881 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
11882 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
11883 argument.
11884 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
11885 'self' argument.
11886
f045800c
TT
118872014-02-19 Tom Tromey <tromey@redhat.com>
11888
11889 * target.h (struct target_ops) <to_post_attach>: Add argument.
11890 (target_post_attach): Add argument.
11891 * target.c (debug_to_post_attach): Add argument.
11892 (update_current_target): Update.
11893 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
11894 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
11895 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
11896 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
11897 * inf-child.c (inf_child_post_attach): Add 'self' argument.
11898
de90e03d
TT
118992014-02-19 Tom Tromey <tromey@redhat.com>
11900
11901 * windows-nat.c (windows_close): Add 'self' argument.
11902 * tracepoint.c (tfile_close): Add 'self' argument.
11903 * target.h (struct target_ops) <to_close>: Add argument.
11904 * target.c (target_close): Add argument.
11905 (update_current_target): Update.
11906 * remote.c (remote_close): Add 'self' argument.
11907 * remote-sim.c (gdbsim_close): Add 'self' argument.
11908 * remote-mips.c (mips_close): Add 'self' argument.
11909 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
11910 * record-full.c (record_full_close): Add 'self' argument.
11911 * record-btrace.c (record_btrace_close): Add 'self' argument.
11912 * monitor.h (monitor_close): Add 'self' argument.
11913 * monitor.c (monitor_close): Add 'self' argument.
11914 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
11915 * linux-nat.c (linux_nat_close): Add argument.
11916 * go32-nat.c (go32_close): Add 'self' argument.
11917 * exec.c (exec_close_1): Add 'self' argument.
11918 * ctf.c (ctf_close): Add 'self' argument.
11919 * corelow.c (core_close): Add 'self' argument.
11920 (core_close_cleanup): Update.
11921 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
11922 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
11923
9dd130a0
TT
119242014-02-19 Tom Tromey <tromey@redhat.com>
11925
11926 * remote.c (remote_load): New function.
11927 (init_remote_ops): Use it.
11928
46917d26
TT
119292014-02-19 Tom Tromey <tromey@redhat.com>
11930
11931 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
11932 argument.
11933 * common/linux-btrace.h (linux_supports_btrace): Update.
11934 * remote.c (remote_supports_btrace): Add "self" argument.
11935 * target-delegates.c: Rebuild.
11936 * target.c (target_supports_btrace): Remove.
11937 * target.h (struct target_ops) <to_supports_btrace>: Add
11938 target_ops argument.
11939 (target_supports_btrace): New define.
11940
6b84065d
TT
119412014-02-19 Tom Tromey <tromey@redhat.com>
11942
11943 * record-full.c (record_full_beneath_to_resume_ops)
11944 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
11945 (record_full_beneath_to_wait)
11946 (record_full_beneath_to_store_registers_ops)
11947 (record_full_beneath_to_store_registers)
11948 (record_full_beneath_to_xfer_partial_ops)
11949 (record_full_beneath_to_xfer_partial)
11950 (record_full_beneath_to_insert_breakpoint_ops)
11951 (record_full_beneath_to_insert_breakpoint)
11952 (record_full_beneath_to_remove_breakpoint_ops)
11953 (record_full_beneath_to_remove_breakpoint)
11954 (record_full_beneath_to_stopped_by_watchpoint)
11955 (record_full_beneath_to_stopped_data_address)
11956 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
11957 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
11958 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
11959 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
11960 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
11961 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
11962 (tmp_to_stopped_data_address, tmp_to_async): Remove.
11963 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
11964 (record_full_resume, record_full_wait_1)
11965 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
11966 (record_full_store_registers, record_full_xfer_partial)
11967 (record_full_insert_breakpoint, record_full_remove_breakpoint)
11968 (record_full_async, record_full_core_xfer_partial): Use target
11969 delegation.
11970 * target-delegates.c: Rebuild.
11971 * target.c (current_xfer_partial): Remove.
11972 (update_current_target): Do not INHERIT or de_fault
11973 to_insert_breakpoint, to_remove_breakpoint,
11974 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
11975 to_is_async_p, to_async. Do not set to_xfer_partial field.
11976 (default_xfer_partial): Simplify.
11977 (current_xfer_partial): Remove.
11978 (target_wait, target_resume): Simplify.
11979 (find_default_can_async_p, find_default_is_async_p): Update.
11980 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
11981 to_xfer_partial, to_stopped_by_watchpoint,
11982 to_stopped_data_address.
11983 (target_store_registers): Simplify.
11984 (forward_target_remove_breakpoint)
11985 (forward_target_insert_breakpoint): Remove.
11986 (target_remove_breakpoint, target_insert_breakpoint)
11987 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
11988 * target.h (struct target_ops) <to_resume, to_wait,
11989 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
11990 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
11991 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
11992 markup.
11993 (forward_target_remove_breakpoint)
11994 (forward_target_insert_breakpoint): Remove.
11995 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
11996 directly.
11997 (record_btrace_insert_breakpoint): Delegate directly.
11998
1101cb7b
TT
119992014-02-19 Tom Tromey <tromey@redhat.com>
12000
12001 PR build/7701:
12002 * target-delegates.c: New file.
12003 * target.c: Include target-delegates.c.
12004 (init_dummy_target): Call install_dummy_methods.
12005 (complete_target_initialization): Call install_delegators.
12006 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
12007 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
12008 * make-target-delegates: New file.
12009
8b06beed
TT
120102014-02-19 Tom Tromey <tromey@redhat.com>
12011
12012 * record.c (find_record_target): Use find_target_at.
12013 * target.c (find_target_at): New function.
12014 * target.h (find_target_at): Declare.
12015
6a109b6b
TT
120162014-02-19 Tom Tromey <tromey@redhat.com>
12017
12018 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
12019 Add 'ops' argument.
12020 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
12021 'ops' argument.
12022 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
12023 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
12024 'ops' argument.
12025 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
12026 argument.
12027 * linux-nat.c (save_sigtrap): Update.
12028 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
12029 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
12030 (linux_nat_close): Update.
12031 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
12032 argument.
12033 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
12034 argument.
12035 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
12036 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
12037 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
12038 (tmp_to_async): Add 'ops' argument.
12039 (record_full_stopped_by_watchpoint, record_full_async)
12040 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
12041 argument.
12042 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
12043 (m32r_stopped_by_watchpoint): Add 'ops' argument.
12044 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
12045 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
12046 (remote_is_async_p, remote_async): Add 'ops' argument.
12047 (remote_stopped_data_address): Update.
12048 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
12049 * target.c (update_current_target)
12050 (find_default_can_async_p, find_default_is_async_p): Update.
12051 (init_dummy_target): Update.
12052 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
12053 * target.h (struct target_ops) <to_stopped_by_watchpoint,
12054 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
12055 (target_can_async_p, target_is_async_p, target_async)
12056 (target_stopped_by_watchpoint): Update.
12057
e095146b
YQ
120582014-02-19 Yao Qi <yao@codesourcery.com>
12059
12060 PR gdb/16220
12061 * gdbarch.sh: Remove startup_gdbarch.
12062 * gdbarch.c: Regenerated.
12063 * gdbarch.h: Likewise.
12064
bc3c6b36
KB
120652014-02-17 Kevin Buettner <kevinb@redhat.com>
12066
12067 * rl78-tdep.c (rl78_g10_register_name): New function.
12068 (rl78_return_value): Add g10 support.
12069 (rl78_gdbarch_init): Register rl78_g10_register_name for the
12070 g10.
12071
98dc0167 120722014-02-17 Doug Evans <xdje42@gmail.com>
f01c1940
DE
12073
12074 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
12075 (SUBDIR_GUILE_SRCS): Ditto.
12076 (scm-gsmob.o): Ditto.
12077
842c05cd
YQ
120782014-02-17 Yao Qi <yao@codesourcery.com>
12079
12080 * gnu-nat.c (ILL_RPC): Declare defined function.
12081
25c0bd04
YQ
120822014-02-17 Yao Qi <yao@codesourcery.com>
12083
12084 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
12085 mach_msg_type_number_t.
12086 (gnu_write_inferior): Likewise.
12087
a9a758e3
YQ
120882014-02-17 Yao Qi <yao@codesourcery.com>
12089
12090 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
12091 in format string.
12092 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
12093 (inf_validate_procs, inf_signal): Likewise.
12094 (S_exception_raise_request): Likewise.
12095 (do_mach_notify_dead_name): Likewise.
12096 (steal_exc_port): Likewise.
12097 (gnu_read_inferior): Change 'copy_count''s type to
12098 mach_msg_type_number_t.
12099 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
12100 format string.
12101
bae8023e
TS
121022014-02-16 Thomas Schwinge <thomas@codesourcery.com>
12103
c82f56d9
TS
12104 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
12105 flag. Adjust all users; in particular...
12106 (gnu_wait): ..., don't decrement its value in here...
12107 (gnu_create_inferior): ..., and instead set the flag in here,
12108 around the startup_inferior call, and call that one with
12109 START_INFERIOR_TRAPS_EXPECTED.
12110
3398af6a
TS
12111 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
12112 (ILL_RPC): ... new macro.
12113 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
12114 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
12115 (do_mach_notify_send_once, S_proc_setmsgport_reply)
12116 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
12117 functions with ILL_RPC macro.
12118 (S_proc_pid2task_reply, S_proc_task2pid_reply)
12119 (S_proc_task2proc_reply, S_proc_proc2task_reply)
12120 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
12121 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
12122 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
12123 (S_proc_getlogin_reply, S_proc_getsid_reply)
12124 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
12125 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
12126 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
12127 (S_proc_getnports_reply, S_proc_is_important_reply)
12128 (S_proc_get_code_reply): New stub functions, generated with
12129 ILL_RPC macro.
12130
d47642c9
TS
12131 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
12132 collected the type check structures.
12133
bae8023e
TS
12134 * reply_mig_hack.awk: Don't expect to see the auto keyword.
12135
8a55ffb0
DE
121362014-02-14 Doug Evans <dje@google.com>
12137
12138 * target.c (target_write_partial): Fix result type.
12139
c2853f3d
JM
121402014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
12141
12142 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
12143 the proper offsets to access fpregset_t.
12144
ac61d2db
SA
121452014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
12146
12147 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
12148 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
12149 * h8300-tdep.c (setmachinelist): Remove global.
12150 * hppa-tdep.c (hppa_sigtramp): Remove global.
12151 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
12152 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
12153 * ravenscar-thread.c (update_target_observer): Remove global.
12154 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
12155
9d2d0b8b
TT
121562014-02-12 Tom Tromey <tromey@redhat.com>
12157
12158 * common/rsp-low.c: Update comments.
12159 * common/rsp-low.h: Update comments.
12160
a7191e8b
TT
121612014-02-12 Tom Tromey <tromey@redhat.com>
12162
12163 * common/rsp-low.c (convert_ascii_to_int): Remove.
12164 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
12165
ff0e980e
TT
121662014-02-12 Tom Tromey <tromey@redhat.com>
12167
12168 * common/rsp-low.h (unhexify): Don't declare.
12169 * common/rsp-low.c (unhexify): Remove.
12170
e9371aff
TT
121712014-02-12 Tom Tromey <tromey@redhat.com>
12172
12173 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
12174 * common/rsp-low.c (convert_int_to_ascii): Remove.
12175
971dc0b8
TT
121762014-02-12 Tom Tromey <tromey@redhat.com>
12177
12178 * common/rsp-low.h (hexify): Don't declare.
12179 * common/rsp-low.c (hexify): Remove.
12180
0a822afb
TT
121812014-02-12 Tom Tromey <tromey@redhat.com>
12182
12183 * common/rsp-low.c (hexify): Never take strlen of argument.
12184
9f1b45b0
TT
121852014-02-12 Tom Tromey <tromey@redhat.com>
12186
12187 * common/rsp-low.c (bin2hex): Never take strlen of argument.
12188 * remote.c (extended_remote_run, remote_rcmd)
12189 (remote_download_trace_state_variable, remote_save_trace_data)
12190 (remote_set_trace_notes): Update.
12191 * tracepoint.c (encode_source_string, tfile_write_status)
12192 (tfile_write_uploaded_tsv): Update.
12193
9c3d6531
TT
121942014-02-12 Tom Tromey <tromey@redhat.com>
12195
12196 * tracepoint.c: Include rsp-low.h.
12197 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
12198 * remote.c: Include rsp-low.h.
12199 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
12200 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
12201 (remote_unescape_input): Move to common/rsp-low.c.
12202 * common/rsp-low.h: New file.
12203 * common/rsp-low.c: New file.
12204 * Makefile.in (SFILES): Add common/rsp-low.c.
12205 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
12206 (COMMON_OBS): Add rsp-low.o.
12207 (rsp-low.o): New target.
12208
01fd3ea5
TT
122092014-02-12 Tom Tromey <tromey@redhat.com>
12210
12211 * utils.h: Include print-utils.h.
12212 (host_address_to_string, plongest, pulongest, phex, phex_nz)
12213 (int_string, core_addr_to_string, core_addr_to_string_nz)
12214 (hex_string, hex_string_custom): Don't declare.
12215 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
12216 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
12217 (hex_string_custom, int_string, core_addr_to_string)
12218 (core_addr_to_string_nz, host_address_to_string): Move to
12219 common/print-utils.c.
12220 * common/print-utils.h: New file.
12221 * common/print-utils.c: New file
12222 * Makefile.in (SFILES): Add common/print-utils.c.
12223 (HFILES_NO_SRCDIR): Add common/print-utils.h.
12224 (COMMON_OBS): Add print-utils.o.
12225 (print-utils.o): New target.
12226
9fb50108
TT
122272014-02-12 Tom Tromey <tromey@redhat.com>
12228
12229 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
12230
0548b5db
MK
122312014-02-12 Mark Kettenis <kettenis@gnu.org>
12232
12233 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
12234
493443a4
MK
122352014-02-12 Mark Kettenis <kettenis@gnu.org>
12236
12237 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
12238 if a PT_IO ptrace request returns sucessfully but indicates that 0
12239 bytes were transferred.
12240
706d0883
PA
122412014-02-12 Pedro Alves <palves@redhat.com>
12242 Kevin Buettner <kevinb@redhat.com>
12243
12244 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
12245 TYPE_INSTANCE_FLAG_CODE_SPACE.
12246
5caa2f0b
PA
122472014-02-12 Pedro Alves <palves@redhat.com>
12248
12249 * h8300-tdep.c (pseudo_from_raw_register)
12250 (raw_from_pseudo_register): New functions.
12251 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
12252 them.
12253
76fd5f74
PA
122542014-02-12 Pedro Alves <palves@redhat.com>
12255
12256 * h8300-tdep.c (h8300_register_sim_regno): New function.
12257 (h8300_gdbarch_init): Install h8300_register_sim_regno as
12258 gdbarch_register_sim_regno hook.
12259
8f008406
SA
122602014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
12261
12262 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
12263
195abc10
SA
122642014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
12265
12266 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
12267
93ffa5b9
MK
122682014-02-12 Mark Kettenis <kettenis@gnu.org>
12269
12270 * obsd-tdep.h (obsd_init_abi): New prototype.
12271 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
12272 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
12273 (obsd_init_abi): New functions.
12274 * i386obsd-tdep.c: Include "obsd-tdep.h".
12275 (i386obsd_init_abi): Call obsd_init_abi.
12276 * amd64obsd-tdep.c: Include "obsd-tdep.h".
12277 (amd64obsd_init_abi): Call obsd_init_abi.
12278 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
12279 obsd-tdep.c to gdb_target_obs.
12280
49caec94
JM
122812014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
12282
12283 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
12284 double float arguments to 16-byte in the argument slots.
12285
e1402065
DE
122862014-02-11 Doug Evans <xdje42@gmail.com>
12287
12288 * configure.ac: Don't crash if pkg-config is not found and guile
12289 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
12290 in guile checks.
12291 * configure: Regenerate.
12292
edcc890f
YQ
122932014-02-11 Yao Qi <yao@codesourcery.com>
12294
12295 * aix-thread.c (aix_thread_xfer_partial): Update comments.
12296 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
12297 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
12298 * gnu-nat.c (gnu_xfer_memory): Likewise.
12299 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
12300 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12301 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12302 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12303
9b409511
YQ
123042014-02-11 Yao Qi <yao@codesourcery.com>
12305
12306 * target.h (enum target_xfer_error): Rename to ...
12307 (enum target_xfer_status): ... it. New. All users updated.
12308 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
12309 New.
12310 (TARGET_XFER_STATUS_ERROR_P): New macro.
12311 (target_xfer_error_to_string): Remove declaration.
12312 (target_xfer_status_to_string): Declare.
12313 (target_xfer_partial_ftype): Adjust it.
12314 (struct target_ops) <to_xfer_partial>: Return
12315 target_xfer_status. Add argument xfered_len. Update
12316 comments.
12317 * target.c (target_xfer_error_to_string): Rename to ...
12318 (target_xfer_status_to_string): ... it. New. All callers
12319 updated.
12320 (target_read_live_memory): Likewise. Call target_xfer_partial
12321 instead of target_read.
12322 (memory_xfer_live_readonly_partial): Return
12323 target_xfer_status. Add argument xfered_len.
12324 (raw_memory_xfer_partial): Likewise.
12325 (memory_xfer_partial_1): Likewise.
12326 (memory_xfer_partial): Likewise.
12327 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
12328 properly. Update debug message.
12329 (default_xfer_partial, current_xfer_partial): Likewise.
12330 (target_write_partial): Likewise.
12331 (target_read_partial): Likewise. All callers updated.
12332 (read_whatever_is_readable): Likewise.
12333 (target_write_with_progress): Likewise.
12334 (target_read_alloc_1): Likewise.
12335
12336 * aix-thread.c (aix_thread_xfer_partial): Likewise.
12337 * auxv.c (procfs_xfer_auxv): Likewise.
12338 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
12339 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12340 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12341 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
12342 * corefile.c (read_memory): Adjust.
12343 * corelow.c (core_xfer_partial): Likewise.
12344 * ctf.c (ctf_xfer_partial): Likewise.
12345 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
12346 updated.
12347 (darwin_xfer_partial): Likewise.
12348 * exec.c (section_table_xfer_memory_partial): Likewise. All
12349 callers updated.
12350 (exec_xfer_partial): Likewise.
12351 * exec.h (section_table_xfer_memory_partial): Update
12352 declaration.
12353 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
12354 negative.
12355 (gnu_xfer_partial): Likewise.
12356 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
12357 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
12358 (ia64_hpux_xfer_solib_got): Likewise.
12359 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
12360 type of 'partial_len' to ULONGEST.
12361 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
12362 * linux-nat.c (linux_xfer_siginfo ): Likewise.
12363 (linux_nat_xfer_partial): Likewise.
12364 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
12365 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
12366 * monitor.c (monitor_xfer_memory): Likewise.
12367 (monitor_xfer_partial): Likewise.
12368 * procfs.c (procfs_xfer_partial): Likewise.
12369 * record-btrace.c (record_btrace_xfer_partial): Likewise.
12370 * record-full.c (record_full_xfer_partial): Likewise.
12371 (record_full_core_xfer_partial): Likewise.
12372 * remote-sim.c (gdbsim_xfer_memory): Likewise.
12373 (gdbsim_xfer_partial): Likewise.
12374 * remote.c (remote_write_bytes_aux): Likewise. All callers
12375 updated.
12376 (remote_write_bytes, remote_read_bytes): Likewise. All
12377 callers updated.
12378 (remote_flash_erase): Likewise. All callers updated.
12379 (remote_write_qxfer): Likewise. All callers updated.
12380 (remote_read_qxfer): Likewise. All callers updated.
12381 (remote_xfer_partial): Likewise.
12382 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12383 (rs6000_xfer_shared_libraries): Likewise.
12384 * sol-thread.c (sol_thread_xfer_partial): Likewise.
12385 (sol_thread_xfer_partial): Likewise.
12386 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12387 (sparc_xfer_partial): Likewise.
12388 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
12389 updated.
12390 (spu_xfer_partial): Likewise.
12391 * spu-multiarch.c (spu_xfer_partial): Likewise.
12392 * tracepoint.c (tfile_xfer_partial): Likewise.
12393 * windows-nat.c (windows_xfer_memory): Likewise.
12394 (windows_xfer_shared_libraries): Likewise.
12395 (windows_xfer_partial): Likewise.
12396 * valprint.c: Replace 'target_xfer_error' with
12397 'target_xfer_status' in comments.
12398
a8e63083
JB
123992014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
12400
12401 Checked in by Joel Brobecker <brobecker@adacore.com>.
12402 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
12403
e86b67d3
JB
124042014-02-11 Joel Brobecker <brobecker@adacore.com>
12405
12406 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
12407 function parameters.
12408
4b7d1f7f
WN
124092014-02-10 Will Newton <will.newton@linaro.org>
12410
12411 * elfread.c (elf_rel_plt_read): Look for a .got section if
12412 looking up .got.plt fails.
12413 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
12414 on address passed to elf_gnu_ifunc_record_cache.
12415 (elf_gnu_ifunc_resolve_addr): Likewise.
12416 (elf_gnu_ifunc_resolver_return_stop): Likewise.
12417
961842b2
JM
124182014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
12419
12420 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
12421 (X_RETTURN): New macro.
12422 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
12423
12424 * sparc64-tdep.c (sparc64_init_abi): Hook
12425 sparc_in_function_epilogue_p.
12426
3f03e7b1
GB
124272014-02-10 Gary Benson <gbenson@redhat.com>
12428
12429 * symfile-debug.c (debug_qf_expand_symtabs_matching):
12430 Rename name_matcher to symbol_matcher.
12431
96f861ef
GB
124322014-02-10 Gary Benson <gbenson@redhat.com>
12433
12434 * symfile-debug.c (debug_qf_expand_symtabs_matching):
12435 Use expand_symtabs_file_matcher_ftype and
12436 expand_symtabs_symbol_matcher_ftype.
12437
ee01b665
JB
124382014-02-10 Joel Brobecker <brobecker@adacore.com>
12439
12440 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
12441 (struct ada_symbol_cache): New.
12442 (ada_free_symbol_cache): Forward declare.
12443 (struct ada_pspace_data): New.
12444 (ada_pspace_data_handle): New static global.
12445 (get_ada_pspace_data, ada_pspace_data_cleanup)
12446 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
12447 (cache_space, cache): Delete, now folded inside struct
12448 ada_pspace_data.
12449 (ada_get_symbol_cache): New function.
12450 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
12451 implementation.
12452 (_initialize_ada_language): Remove initialization of cache_space.
12453 Move call to observer_attach_inferior_exit up, grouping it
12454 with the other observer registrations inside this function.
12455 Rename command to be more general. Add call to
12456 register_program_space_data_with_cleanup.
12457
143adbbf
JB
124582014-02-10 Joel Brobecker <brobecker@adacore.com>
12459
12460 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
12461 ada_new_objfile_observer.
12462 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
12463 (_initialize_tasks): Update uses of ada_new_objfile_observer
12464 and ada_tasks_normal_stop_observer.
12465
aa4fb036
JB
124662014-02-10 Joel Brobecker <brobecker@adacore.com>
12467
12468 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
12469 returned by the 'Length attribute to integer.
12470
9dee8cc6
JB
124712014-02-10 Joel Brobecker <brobecker@adacore.com>
12472
12473 * ada-lang.c (_initialize_ada_language): Initialize
12474 cache_space obstack.
12475
3d9434b5
JB
124762014-02-10 Joel Brobecker <brobecker@adacore.com>
12477
12478 * ada-lang.c (HASH_SIZE): New macro.
12479 (struct cache_entry): New type.
12480 (cache_space, cache): New static globals.
12481 (ada_clear_symbol_cache, find_entry): New functions.
12482 (lookup_cached_symbol, cache_symbol): Implement.
12483 (ada_new_objfile_observer, ada_free_objfile_observer): New.
12484 (_initialize_ada_language): Attach ada_new_objfile_observer
12485 and ada_free_objfile_observer.
12486
f0c5f9b2
JB
124872014-02-10 Joel Brobecker <brobecker@adacore.com>
12488
12489 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
12490 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
12491 struct block * parameter.
12492 (ada_lookup_symbol_list_worker): Constify local variable "block".
12493 Remove cast which is no longer necessary.
12494
ed3ef339
DE
124952014-02-10 Doug Evans <xdje42@gmail.com>
12496
12497 Add Guile as an extension language.
12498 * NEWS: Mention Guile scripting.
12499 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
12500 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
12501 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
12502 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
12503 (CLIBS): Add GUILE_LIBS.
12504 (install-guile): New rule.
12505 (guile.o): New rule.
12506 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
12507 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
12508 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
12509 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
12510 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
12511 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
12512 (scm-type.o, scm-utils.o, scm-value.o): New rules.
12513 * configure.ac: New option --with-guile.
12514 * configure: Regenerate.
12515 * config.in: Regenerate.
12516 * auto-load.c: Remove #include "python/python.h". Add #include
12517 "gdb/section-scripts.h".
12518 (source_section_scripts): Handle Guile scripts.
12519 (_initialize_auto_load): Add name of Guile objfile script to
12520 scripts-directory help text.
12521 * breakpoint.c (condition_command): Tweak comment to include Scheme.
12522 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
12523 (struct breakpoint): New member scm_bp_object.
12524 * defs.h (enum command_control_type): New value guile_control.
12525 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
12526 "extension.h".
12527 (show_user): Update comment.
12528 (_initialize_cli_cmds): Update help text for "show user". Update help
12529 text for max-user-call-depth.
12530 * cli/cli-script.c: Remove #include "python/python.h". Add #include
12531 "extension.h".
12532 (multi_line_command_p): Add guile_control.
12533 (print_command_lines): Handle guile_control.
12534 (execute_control_command, recurse_read_control_structure): Ditto.
12535 (process_next_line): Recognize "guile" commands.
12536 * disasm.c (gdb_disassemble_info): Make non-static.
12537 * disasm.h: #include "dis-asm.h".
12538 (struct gdbarch): Add forward decl.
12539 (gdb_disassemble_info): Declare.
12540 * extension.c: #include "guile/guile.h".
12541 (extension_languages): Add guile.
12542 (get_ext_lang_defn): Handle EXT_LANG_GDB.
12543 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
12544 * gdbtypes.c (get_unsigned_type_max): New function.
12545 (get_signed_type_minmax): New function.
12546 * gdbtypes.h (get_unsigned_type_max): Declare.
12547 (get_signed_type_minmax): Declare.
12548 * guile/README: New file.
12549 * guile/guile-internal.h: New file.
12550 * guile/guile.c: New file.
12551 * guile/guile.h: New file.
12552 * guile/scm-arch.c: New file.
12553 * guile/scm-auto-load.c: New file.
12554 * guile/scm-block.c: New file.
12555 * guile/scm-breakpoint.c: New file.
12556 * guile/scm-disasm.c: New file.
12557 * guile/scm-exception.c: New file.
12558 * guile/scm-frame.c: New file.
12559 * guile/scm-gsmob.c: New file.
12560 * guile/scm-iterator.c: New file.
12561 * guile/scm-lazy-string.c: New file.
12562 * guile/scm-math.c: New file.
12563 * guile/scm-objfile.c: New file.
12564 * guile/scm-ports.c: New file.
12565 * guile/scm-pretty-print.c: New file.
12566 * guile/scm-safe-call.c: New file.
12567 * guile/scm-string.c: New file.
12568 * guile/scm-symbol.c: New file.
12569 * guile/scm-symtab.c: New file.
12570 * guile/scm-type.c: New file.
12571 * guile/scm-utils.c: New file.
12572 * guile/scm-value.c: New file.
12573 * guile/lib/gdb.scm: New file.
12574 * guile/lib/gdb/boot.scm: New file.
12575 * guile/lib/gdb/experimental.scm: New file.
12576 * guile/lib/gdb/init.scm: New file.
12577 * guile/lib/gdb/iterator.scm: New file.
12578 * guile/lib/gdb/printing.scm: New file.
12579 * guile/lib/gdb/types.scm: New file.
12580 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
12581 (VPATH): Add $(GUILE_SRCDIR).
12582 (GUILE_DIR): New variable.
12583 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
12584 (all): Add stamp-guile dependency.
12585 (stamp-guile): New rule.
12586 (clean-guile, install-guile, uninstall-guile): New rules.
12587 (install-only): Add install-guile dependency.
12588 (uninstall): Add uninstall-guile dependency.
12589 (clean): Add clean-guile dependency.
12590
ac020ec5
DE
125912014-02-09 Doug Evans <xdje42@gmail.com>
12592
12593 Revert this patch (which I approved, mea culpa).
12594
12595 2014-02-08 Mark Kettenis <kettenis@gnu.org>
12596
12597 * Makefile.in (all-lib): Remove.
12598 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12599
2a081c59
JK
126002014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
12601
12602 Fix Python stack corruption.
12603 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
12604 gdb_py_longest.
12605
0a6bd22d
MK
126062014-02-08 Mark Kettenis <kettenis@gnu.org>
12607
12608 * Makefile.in (all-lib): Remove.
12609 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12610
1a860409
DE
126112014-02-07 Doug Evans <dje@google.com>
12612
12613 * extension-priv.h (extension_language_script_ops): Add comment.
12614 (extension_language_ops): Add comment.
caf5a491 12615 (active_ext_lang_state): Fix typo in comment.
1a860409 12616
d137e6dc
PA
126172014-02-07 Pedro Alves <palves@redhat.com>
12618
0dcb32c3 12619 PR breakpoints/16292
d137e6dc
PA
12620 * infrun.c (handle_signal_stop) <signal arrives while stepping
12621 over a breakpoint>: Switch back to the stepping thread.
12622
ce6d0892
YQ
126232014-02-07 Yao Qi <yao@codesourcery.com>
12624
12625 * target.c (target_xfer_partial): Return zero if LEN is zero.
12626
2ed4b548
YQ
126272014-02-07 Yao Qi <yao@codesourcery.com>
12628
12629 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
12630 (ld_so_xfer_auxv): Likewise.
12631 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12632 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12633 * corelow.c (core_xfer_partial): Likewise.
12634 * ctf.c (ctf_xfer_partial): Likewise.
12635 * darwin-nat.c (darwin_read_dyld_info): Likewise.
12636 (darwin_xfer_partial): Likewise.
12637 * exec.c (exec_xfer_partial): Likewise.
12638 * gnu-nat.c (gnu_xfer_partial): Likewise.
12639 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
12640 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
12641 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
12642 * linux-nat.c (linux_xfer_siginfo): Likewise.
12643 (linux_proc_xfer_spu): Likewise.
12644 * procfs.c (procfs_xfer_partial): Likewise.
12645 * record-full.c (record_full_xfer_partial): Likewise.
12646 (record_full_core_xfer_partial): Likewise.
12647 * remote-sim.c (gdbsim_xfer_partial): Likewise.
12648 * remote.c (remote_write_qxfer): Likewise.
12649 (remote_write_qxfer, remote_read_qxfer): Likewise.
12650 (remote_xfer_partial): Likewise.
12651 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12652 (rs6000_xfer_shared_libraries): Likewise.
12653 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12654 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12655 (spu_xfer_partial): Likewise.
12656 * target.c (memory_xfer_partial_1): Likewise.
12657 * tracepoint.c (tfile_xfer_partial): Likewise.
12658 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
12659 (windows_xfer_partial): Likewise.
12660
c09f20e4
YQ
126612014-02-07 Yao Qi <yao@codesourcery.com>
12662
12663 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
12664 comments.
12665 (core_xfer_shared_libraries_aix): Likewise.
12666 * gdbarch.c, gdbarch.h: Regenerated.
12667 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
12668 ULONGEST. Change 'len_avail' type to ULONGEST.
12669 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12670 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12671 declaration.
12672 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
12673
8635b3bf
YQ
126742014-02-07 Yao Qi <yao@codesourcery.com>
12675
12676 * corefile.c (memory_error): Get 'exception' from ERR and pass
12677 'exception' to throw_error.
12678
6dddc817
DE
126792014-02-06 Doug Evans <xdje42@gmail.com>
12680
12681 * configure.ac (libpython checking): Remove all but python.o from
12682 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
12683 * configure: Regenerate.
12684
12685 * Makefile.in (SFILES): Add extension.c.
12686 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
12687 (COMMON_OBS): Add extension.o.
12688 * extension.h: New file.
12689 * extension-priv.h: New file.
12690 * extension.c: New file.
12691
12692 * python/python-internal.h: #include "extension.h".
12693 (gdbpy_auto_load_enabled): Declare.
12694 (gdbpy_apply_val_pretty_printer): Declare.
12695 (gdbpy_apply_frame_filter): Declare.
12696 (gdbpy_preserve_values): Declare.
12697 (gdbpy_breakpoint_cond_says_stop): Declare.
12698 (gdbpy_breakpoint_has_cond): Declare.
12699 (void source_python_script_for_objfile): Delete.
12700 * python/python.c: #include "extension-priv.h".
12701 Delete inclusion of "observer.h".
12702 (extension_language_python): Moved here and renamed from
12703 script_language_python in py-auto-load.c.
12704 Redefined to be of type extension_language_defn.
12705 (python_extension_script_ops): New global.
12706 (python_extension_ops): New global.
12707 (struct python_env): New member previous_active.
12708 (restore_python_env): Call restore_active_ext_lang.
12709 (ensure_python_env): Call set_active_ext_lang.
12710 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
12711 New arg extlang.
12712 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
12713 New arg extlang.
12714 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
12715 New arg extlang.
12716 (gdbpy_eval_from_control_command): Renamed from
12717 eval_python_from_control_command, made static. New arg extlang.
12718 (gdbpy_source_script) Renamed from source_python_script, made static.
12719 New arg extlang.
12720 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
12721 result to int. New arg extlang.
12722 (gdbpy_source_objfile_script): Renamed from
12723 source_python_script_for_objfile, made static. New arg extlang.
12724 (gdbpy_start_type_printers): Renamed from start_type_printers, made
12725 static. New args extlang, extlang_printers. Change result type to
12726 "void".
12727 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
12728 static. New arg extlang. Rename arg printers to extlang_printers
12729 and change type to ext_lang_type_printers *.
12730 (gdbpy_free_type_printers): Renamed from free_type_printers, made
12731 static. Replace argument arg with extlang, extlang_printers.
12732 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
12733 (!HAVE_PYTHON, source_python_script): Delete.
12734 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
12735 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
12736 (!HAVE_PYTHON, start_type_printers): Delete.
12737 (!HAVE_PYTHON, apply_type_printers): Delete.
12738 (!HAVE_PYTHON, free_type_printers): Delete.
12739 (_initialize_python): Delete call to observer_attach_before_prompt.
12740 (finalize_python): Set/restore active extension language.
12741 (gdbpy_finish_initialization) Renamed from
12742 finish_python_initialization, made static. New arg extlang.
12743 (gdbpy_initialized): New function.
12744 * python/python.h: #include "extension.h". Delete #include
12745 "value.h", "mi/mi-cmds.h".
12746 (extension_language_python): Declare.
12747 (GDBPY_AUTO_FILE_NAME): Delete.
12748 (enum py_bt_status): Moved to extension.h and renamed to
12749 ext_lang_bt_status.
12750 (enum frame_filter_flags): Moved to extension.h.
12751 (enum py_frame_args): Moved to extension.h and renamed to
12752 ext_lang_frame_args.
12753 (finish_python_initialization): Delete.
12754 (eval_python_from_control_command): Delete.
12755 (source_python_script): Delete.
12756 (apply_val_pretty_printer): Delete.
12757 (apply_frame_filter): Delete.
12758 (preserve_python_values): Delete.
12759 (gdbpy_script_language_defn): Delete.
12760 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
12761 (start_type_printers, apply_type_printers, free_type_printers): Delete.
12762
12763 * auto-load.c: #include "extension.h".
12764 (GDB_AUTO_FILE_NAME): Delete.
12765 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
12766 (script_language_gdb): Delete, moved to extension.c and renamed to
12767 extension_language_gdb.
12768 (source_gdb_script_for_objfile): Delete.
12769 (auto_load_pspace_info): New member unsupported_script_warning_printed.
12770 (loaded_script): Change type of language member to
12771 struct extension_language_defn *.
12772 (init_loaded_scripts_info): Initialize
12773 unsupported_script_warning_printed.
12774 (maybe_add_script): Make static. Change type of language arg to
12775 struct extension_language_defn *.
12776 (clear_section_scripts): Reset unsupported_script_warning_printed.
12777 (auto_load_objfile_script_1): Rewrite to use extension language API.
12778 (auto_load_objfile_script): Make public. Remove support-compiled-in
12779 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
12780 (source_section_scripts): Rewrite to use extension language API.
12781 (load_auto_scripts_for_objfile): Rewrite to use
12782 auto_load_scripts_for_objfile.
12783 (collect_matching_scripts_data): Change type of language member to
12784 struct extension_language_defn *.
12785 (auto_load_info_scripts): Change type of language arg to
12786 struct extension_language_defn *.
12787 (unsupported_script_warning_print): New function.
12788 (script_not_found_warning_print): Make static.
12789 (_initialize_auto_load): Rewrite construction of scripts-directory
12790 help.
12791 * auto-load.h (struct objfile): Add forward decl.
12792 (struct script_language): Delete.
12793 (struct auto_load_pspace_info): Add forward decl.
12794 (struct extension_language_defn): Add forward decl.
12795 (maybe_add_script): Delete.
12796 (auto_load_objfile_script): Declare.
12797 (script_not_found_warning_print): Delete.
12798 (auto_load_info_scripts): Update prototype.
12799 (auto_load_gdb_scripts_enabled): Declare.
12800 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
12801 auto_load_python_scripts_enabled and made public.
12802 (script_language_python): Delete, moved to python.c.
12803 (gdbpy_script_language_defn): Delete.
12804 (info_auto_load_python_scripts): Update to use
12805 extension_language_python.
12806
12807 * breakpoint.c (condition_command): Replace call to
12808 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
12809 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
12810 with call to breakpoint_ext_lang_cond_says_stop.
12811 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
12812 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
12813 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
12814 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
12815 New arg slang.
12816 (local_setattro): Print name of extension language with existing
12817 stop condition.
12818
12819 * valprint.c (val_print, value_print): Update to call
12820 apply_ext_lang_val_pretty_printer.
12821 * cp-valprint.c (cp_print_value): Update call to
12822 apply_ext_lang_val_pretty_printer.
12823 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
12824 (gdbpy_apply_val_pretty_printer): Renamed from
12825 apply_val_pretty_printer. New arg extlang.
12826 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
12827
12828 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
12829 extension language API.
12830 * cli/cli-script.c (execute_control_command): Update to call
12831 eval_ext_lang_from_control_command.
12832
12833 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
12834 enum ext_lang_bt_status values. Update call to
12835 apply_ext_lang_frame_filter.
12836 (mi_cmd_stack_list_locals): Ditto.
12837 (mi_cmd_stack_list_args): Ditto.
12838 (mi_cmd_stack_list_variables): Ditto.
12839 * mi/mi-main.c: Delete #include "python/python-internal.h".
12840 Add #include "extension.h".
12841 (mi_cmd_list_features): Replace reference to python internal variable
12842 gdb_python_initialized with call to ext_lang_initialized_p.
12843
12844 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
12845 Update to use enum ext_lang_frame_args. Update to call
12846 apply_ext_lang_frame_filter.
12847 * python/py-framefilter.c (extract_sym): Update to use enum
12848 ext_lang_bt_status.
12849 (extract_value, py_print_type, py_print_value): Ditto.
12850 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
12851 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
12852 (py_print_frame): Ditto.
12853 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
12854 New arg extlang. Update to use enum ext_lang_bt_status.
12855
12856 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
12857 finish_python_initialization. Replace with call to
12858 finish_ext_lang_initialization.
12859
12860 * typeprint.c (do_free_global_table): Update to call
12861 free_ext_lang_type_printers.
12862 (create_global_typedef_table): Update to call
12863 start_ext_lang_type_printers.
12864 (find_global_typedef): Update to call apply_ext_lang_type_printers.
12865 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
12866 (type_print_options): Change type of global_printers from "void *"
12867 to "struct ext_lang_type_printers *".
12868
12869 * value.c (preserve_values): Update to call preserve_ext_lang_values.
12870 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
12871 (gdbpy_preserve_values): Renamed from preserve_python_values.
12872 New arg extlang.
12873 (!HAVE_PYTHON, preserve_python_values): Delete.
12874
12875 * utils.c (quit_flag): Delete, moved to extension.c.
12876 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
12877 extension.c.
12878
12879 * eval.c: Delete #include "python/python.h".
12880 * main.c: Delete #include "python/python.h".
12881
12882 * defs.h: Update comment.
12883
6af79985
JB
128842014-02-06 Joel Brobecker <brobecker@adacore.com>
12885
12886 GDB 7.7 released.
12887
12c5175d
MK
128882014-02-05 Mark Kettenis <kettenis@gnu.org>
12889
12890 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
12891 defined.
12892
8dc5b319
YQ
128932014-02-05 Yao Qi <yao@codesourcery.com>
12894
12895 * remote.c (remote_pass_signals): Remove local 'buf' and use
12896 rs->buf.
12897 (remote_program_signals): Likewise.
12898
de7b2893
YQ
128992014-02-05 Yao Qi <yao@codesourcery.com>
12900
12901 * ctf.c: Include "inferior.h" and "gdbthread.h".
12902 (CTF_PID): A new macro.
12903 (ctf_open): Call inferior_appeared and add_thread_silent.
12904 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
12905 (ctf_thread_alive): New function.
12906 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
12907
66d032ac
YQ
129082014-02-05 Yao Qi <yao@codesourcery.com>
12909
12910 Revert this patch:
12911
12912 2013-05-24 Yao Qi <yao@codesourcery.com>
12913
12914 * tracepoint.c (TFILE_PID): Remove.
12915 (tfile_open): Don't add thread and inferior.
12916 (tfile_close): Don't set 'inferior_ptid'. Don't call
12917 exit_inferior_silent.
12918 (tfile_thread_alive): Remove.
12919 (init_tfile_ops): Don't set field 'to_thread_alive' of
12920 tfile_ops.
12921
f4ccffad
CE
129222014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
12923
12924 * remote.c (remote_start_remote): Call remote_check_symbols even
12925 if only symbol-file (not file) has been given.
12926
591a12a1
UW
129272014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12928
12929 * gdbarch.sh (skip_entrypoint): New callback.
12930 * gdbarch.c, gdbarch.h: Regenerate.
12931 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
12932 * infrun.c (fill_in_stop_func): Likewise.
12933 * ppc-linux-tdep.c: Include "elf/ppc64.h".
12934 (ppc_elfv2_elf_make_msymbol_special): New function.
12935 (ppc_elfv2_skip_entrypoint): Likewise.
12936 (ppc_linux_init_abi): Install them for ELFv2.
12937
cc0e89c5
UW
129382014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12939
12940 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
12941 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
12942 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
12943 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
12944 structures returned in GPRs.
12945
52f548e4
UW
129462014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12947
12948 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
12949 offset to the stack parameter list for the ELFv2 ABI.
12950
d4094b6a
UW
129512014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12952
12953 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
12954 set_gdbarch_convert_from_func_ptr_addr and
12955 set_gdbarch_elf_make_msymbol_special for ELFv1.
12956 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
12957 function descriptors on ELFv1.
12958 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
12959 set up r12 at function entry.
12960
cd453cd0
UW
129612014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12962
12963 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
12964 (struct gdbarch_tdep): New member elf_abi.
12965
12966 * rs6000-tdep.c: Include "elf/ppc64.h".
12967 (rs6000_gdbarch_init): Detect ELF ABI version.
12968
0ff3e01f
UW
129692014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12970
12971 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
12972 within a register pair holding a DFP 128-bit value on little-endian.
12973 (ppc64_sysv_abi_return_value_base): Likewise.
12974 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
12975 (dfp_pseudo_register_write): Likewise.
12976
5b757e5d
UW
129772014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12978
12979 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
12980 offset on little-endian when passing _Decimal32.
12981 (ppc64_sysv_abi_return_value_base): Likewise for return values.
12982
084ee545
UW
129832014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12984
12985 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
12986 of the overlapped FP register within the VSX register on little-
12987 endian platforms.
12988 (efpr_pseudo_register_write): Likewise.
12989
d63167af
UW
129902014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12991
12992 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
12993 offset on little-endian when passing small structures.
12994
e765b44c
UW
129952014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12996
12997 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
12998 (struct ppc64_sysv_argpos): New data structure.
12999 (ppc64_sysv_abi_push_float): Remove.
13000 (ppc64_sysv_abi_push_val): New function.
13001 (ppc64_sysv_abi_push_integer): Likewise.
13002 (ppc64_sysv_abi_push_freg): Likewise.
13003 (ppc64_sysv_abi_push_vreg): Likewise.
13004 (ppc64_sysv_abi_push_param): Likewise.
13005 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
13006 (ppc64_sysv_abi_return_value_base): New function.
13007 (ppc64_sysv_abi_return_value): Refactor to use it.
13008
36c24d95
UW
130092014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13010
13011 * NEWS: Document new target powerpc64le-*-linux*.
13012
26fd9228
MK
130132014-02-04 Mark Kettenis <kettenis@gnu.org>
13014
13015 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
13016 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
13017 core dumps.
13018 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
13019 register set used in ELF core dumps. Add floating-point register set.
13020
c5bb7362
KB
130212014-02-03 Kevin Buettner <kevinb@redhat.com>
13022
74228e77 13023 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
c5bb7362
KB
13024 dwarf2_to_gdb[] table using symbolic constants. Adjust
13025 penultimate entry from number representing the PC register
13026 to symbolic constant representing the MDR register. Add
13027 constant for the PC register to the end of the table.
13028
af09351e
MK
130292014-02-03 Mark Kettenis <kettenis@gnu.org>
13030
13031 * bsd-kvm.c: Include <sys/param.h>
13032
8507e05d
MK
130332014-02-03 Mark Kettenis <kettenis@gnu.org>
13034
13035 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
13036
ae56bfb8
JB
130372014-01-31 Joel Brobecker <brobecker@adacore.com>
13038
13039 * ada-lang.h (clear_ada_sym_cache): Delete.
13040
718ee4dc
UW
130412014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
13042
13043 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
13044
401e27fd
JM
130452014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
13046
13047 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
13048 the sigreturn register save area only if the syscall is
13049 sigreturn.
13050
a7c88acd
JB
130512014-01-29 Joel Brobecker <brobecker@adacore.com>
13052
13053 * valops.c (value_slice): Minor reformatting.
13054
fa0079ea
UW
130552014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
13056
13057 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
13058
c6044dd1
JB
130592014-01-28 Joel Brobecker <brobecker@adacore.com>
13060
13061 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
13062 New static globals.
13063 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
13064 (ada_ignore_descriptive_types_p): New static global.
13065 (find_parallel_type_by_descriptive_type): Return immediately
13066 if ada_ignore_descriptive_types_p is set.
13067 (_initialize_ada_language): Register new commands "maintenance
13068 set ada", "maintenance show ada", "maintenance set ada
13069 ignore-descriptive-types" and "maintenance show ada
13070 ignore-descriptive-types".
13071 * NEWS: Add entry for new "maint ada set/show
13072 ignore-descriptive-types" commands.
13073
568e808b
MM
130742014-01-27 Markus Metzger <markus.t.metzger@intel.com>
13075
13076 * record-btrace.c (record_btrace_close): Call btrace_teardown
13077 for all threads.
13078
467d141b
JB
130792014-01-27 Joel Brobecker <brobecker@adacore.com>
13080
13081 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
13082 "ui-out.h".
13083
fb151210
JB
130842014-01-27 Joel Brobecker <brobecker@adacore.com>
13085
13086 * ada-typeprint (type_is_full_subrange_of_target_type):
13087 New function.
13088 (print_range): Add parameter bounds_prefered_p. If not set,
13089 try printing range types using the name of their base type.
13090 (print_range_type): Add parameter bounds_prefered_p.
13091 Use it in call to print_range.
13092 (print_array_type, ada_print_type): Update calls to print_range
13093 and print_range_type.
13094
aba02109
JB
130952014-01-27 Joel Brobecker <brobecker@adacore.com>
13096
13097 * ada-typeprint.c (print_array_type, print_choices, print_range)
13098 (print_range_bound, print_dynamic_range_bound, print_range_type):
13099 Remove declaration.
13100
e62e21fd
JB
131012014-01-27 Joel Brobecker <brobecker@adacore.com>
13102
13103 * ada-typeprint.c (print_range): Add missing empty line
13104 after local declaration.
13105
859cf5d1
JB
131062014-01-27 Joel Brobecker <brobecker@adacore.com>
13107
13108 * ada-valprint.c (print_optional_low_bound): Get index_type's
13109 target type for as long as it is a TYPE_CODE_RANGE.
13110
25790f6f
JB
131112014-01-27 Joel Brobecker <brobecker@adacore.com>
13112
13113 * procfs.c (procfs_make_note_section): Remove assertion and
13114 associated comment.
13115
6b6aa828
YQ
131162014-01-24 Yao Qi <yao@codesourcery.com>
13117
13118 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
13119 * corelow.c (get_core_siginfo): Likewise.
13120
5d6df423
YQ
131212014-01-24 Yao Qi <yao@codesourcery.com>
13122
13123 * remote.c (remote_write_bytes_aux): Change type of 'len' to
13124 ULONGEST. Don't check 'len' is negative.
13125 (remote_write_bytes): Change type of 'len' to ULONGEST.
13126
83b645b8
TT
131272014-01-23 Tom Tromey <tromey@redhat.com>
13128
13129 PR python/16485:
13130 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
13131 Handle exception from frame.block.
13132 (FrameVars.fetch_frame_locals): Likewise.
13133
0740f8d8
TT
131342014-01-23 Tom Tromey <tromey@redhat.com>
13135
13136 PR python/16487:
13137 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
13138 on a NULL pointer. Move "goto error" to correct place.
13139
21909fa1
TT
131402014-01-23 Tom Tromey <tromey@redhat.com>
13141
13142 PR python/16491:
13143 * python/py-framefilter.c (apply_frame_filter): Call
13144 ensure_python_env after computing gdbarch.
13145
17fde6d0
YQ
131462014-01-23 Yao Qi <yao@codesourcery.com>
13147
13148 * target.c (raw_memory_xfer_partial): Change argument type
13149 from void * to gdb_byte *.
13150 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
13151
87ce2a04
DE
131522014-01-22 Doug Evans <dje@google.com>
13153
13154 New gdbserver option --debug-format=timestamp.
13155 * NEWS: Mention it.
13156
237b092b
AA
131572014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
13158
13159 * syscalls/s390x-linux.xml: New file.
13160 * syscalls/s390-linux.xml: New file.
13161 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
13162 (XML_SYSCALL_FILENAME_S390X): Likewise.
13163 (op_svc): New enum value for SVC opcode.
13164 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
13165 (s390_linux_get_syscall_number): New function.
13166 (s390_gdbarch_init): Register '*get_syscall_number' and the
13167 syscall xml file name.
13168 * data-directory/Makefile.in (SYSCALLS_FILES): Add
13169 "s390-linux.xml" and "s390x-linux.xml".
13170 * NEWS: Announce new feature.
13171
54bff650
BS
131722014-01-22 Baruch Siach <baruch@tkos.co.il>
13173
13174 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
13175
14e361d7
PA
131762014-01-22 Pedro Alves <palves@redhat.com>
13177
13178 * xtensa-config.c: Include defs.h.
13179
46bbb3ed
JB
131802014-01-22 Joel Brobecker <brobecker@adacore.com>
13181
13182 * common/common-utils.h: Add "ARI:" comment beside __func__
13183 reference.
13184
3a80edfc
JB
131852014-01-22 Joel Brobecker <brobecker@adacore.com>
13186
13187 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
13188 documentation a bit.
13189
4869db5e
RM
131902014-01-21 Roland McGrath <mcgrathr@google.com>
13191
13192 * configure.ac: Call AM_PROG_INSTALL_STRIP.
13193 * configure: Regenerate.
13194 * aclocal.m4: Regenerate.
13195 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
13196 New substituted variables.
13197 (install-strip): New target.
13198 (INSTALL_SCRIPT): New substituted variable.
13199 (FLAGS_TO_PASS): Add it.
13200 (install-only): Use $(INSTALL_SCRIPT) rather than
13201 $(INSTALL_PROGRAM) for gcore.
13202
9ea4267d
TT
132032014-01-20 Tom Tromey <tromey@redhat.com>
13204
13205 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
13206 together.
13207
1f2bdf09
TT
132082014-01-20 Tom Tromey <tromey@redhat.com>
13209
13210 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
13211 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
13212 (deprecated_cmd_warning, complete_on_cmdlist): Update.
13213 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
13214 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
13215 (struct cmd_list_element) <flags>: Remove.
13216 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
13217 doc_allocated>: New fields.
13218 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
13219 bitfields.
13220 * maint.c (maintenance_do_deprecate): Update.
13221 * top.c (execute_command): Update.
13222
e671835b
BS
132232014-01-20 Baruch Siach <baruch@tkos.co.il>
13224
13225 * xtensa-linux-nat.c: Include asm/ptrace.h.
13226
50367cd2
IB
132272014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13228
13229 * Makefile.in (SFILES): Add d-support.c.
13230 (COMMON_OBS): Add d-support.o.
13231 * d-lang.h (d_parse_symbol): Add comment, now defined in
13232 d-support.c.
13233 * d-lang.c (parse_call_convention)
13234 (parse_attributes, parse_function_types)
13235 (parse_function_args, parse_type, parse_identifier)
13236 (call_convention_p, d_parse_symbol): Move functions to ...
13237 * d-support.c: ... New file.
13238
ec9f644a
IB
132392014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13240
13241 * d-lang.h (d_parse_symbol): Add declaration.
13242 * d-lang.c (extract_identifiers)
13243 (extract_type_info): Remove functions.
13244 (parse_call_convention, parse_attributes)
13245 (parse_function_types, parse_function_args)
13246 (parse_type, parse_identifier, call_convention_p)
13247 (d_parse_symbol): New functions.
13248 (d_demangle): Use d_parse_symbol to demangle D symbols.
13249
94b1b47e
IB
132502014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13251
13252 * d-lang.h (struct builtin_d_type): New data type.
13253 (builtin_d_type): Add declaration.
13254 * d-lang.c (d_language_arch_info, build_d_types)
13255 (builtin_d_type): New functions.
13256 (enum d_primitive_types): New data type.
13257 (d_language_defn): Change c_language_arch_info to
13258 d_language_arch_info.
13259 (d_type_data): New static variable.
13260 (_initialize_d_language): Initialize d_type_data.
13261
63778547
IB
132622014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13263
13264 * d-lang.h (d_main_name): Add declaration.
13265 * d-lang.c (d_main_name): New function.
13266 * symtab.c (find_main_name): Add call to d_main_name.
13267
3271ba66
IB
132682014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13269
13270 * d-lang.c (d_language_defn): Change macro_expansion_c to
13271 macro_expansion_no.
13272
d36b3012
IB
132732014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13274
13275 * MAINTAINERS: Add myself as a write-after-approval maintainer.
13276
c90a6fb7
SDJ
132772014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
13278
13279 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
13280 gdb_exception" declaration.
13281 * remote.c (getpkt_or_notif_sane): Likewise.
13282
749234e5
DE
132832014-01-17 Doug Evans <dje@google.com>
13284
13285 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
13286 function, contents of dirnames_to_char_ptr_vec_append moved here.
13287 (delim_string_to_char_ptr_vec): New function.
13288 (dirnames_to_char_ptr_vec_append): Rewrite.
13289 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
13290
df049a58
DE
132912014-01-17 Doug Evans <dje@google.com>
13292
13293 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
13294 and moved here ...
13295 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
13296 #include "common-utils.h".
13297 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
13298 * common/vec.h (VEC_ASSERT_PASS): Update.
13299 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
13300 (MACH_CHECK_ERROR): Update.
13301
69f97648
SM
133022014-01-17 Simon Marchi <simon.marchi@ericsson.com>
13303
13304 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
13305 comments.
13306 * gdbarch.h: Regenerate.
13307
98b1cfdc
TT
133082014-01-16 Tom Tromey <tromey@redhat.com>
13309
13310 * value.c (struct value) <regnum>: Move earlier.
13311
77a19445
TT
133122014-01-16 Tom Tromey <tromey@redhat.com>
13313
13314 * remote.c (extended_remote_create_inferior): Rename from
13315 extended_remote_create_inferior_1. Add "ops" argument. Remove
13316 old implementation.
13317
62261490
PA
133182014-01-16 Pedro Alves <palves@redhat.com>
13319
13320 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
13321 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
13322 the backchain.
13323
4d65956b
DE
133242014-01-16 Doug Evans <dje@google.com>
13325
13326 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
13327
52834460
MM
133282014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13329
13330 * btrace.h (btrace_thread_flag): New.
13331 (struct btrace_thread_info) <flags>: New.
13332 * record-btrace.c (record_btrace_resume_thread)
13333 (record_btrace_find_thread_to_move, btrace_step_no_history)
13334 (btrace_step_stopped, record_btrace_start_replaying)
13335 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
13336 (record_btrace_find_resume_thread): New.
13337 (record_btrace_resume, record_btrace_wait): Extend.
13338 (record_btrace_can_execute_reverse): New.
13339 (record_btrace_open): Fail in non-stop mode.
13340 (record_btrace_set_replay): Split into this, ...
13341 (record_btrace_stop_replaying): ... this, ...
13342 (record_btrace_clear_histories): ... and this.
13343 (init_record_btrace_ops): Init to_can_execute_reverse.
13344 * NEWS: Announce it.
13345
118e6252
MM
133462014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13347
13348 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
13349 (forward_target_decr_pc_after_break)
13350 (target_decr_pc_after_break): New.
13351 * target.c (forward_target_decr_pc_after_break)
13352 (target_decr_pc_after_break): New.
13353 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
13354 instead of gdbarch_decr_pc_after_break.
13355 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
13356 instead of gdbarch_decr_pc_after_break.
13357 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
13358 instead of gdbarch_decr_pc_after_break.
13359 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
13360 instead of gdbarch_decr_pc_after_break.
13361 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
13362 instead of gdbarch_decr_pc_after_break.
13363 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
13364 instead of gdbarch_decr_pc_after_break.
13365
6e07b1d2
MM
133662014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13367
13368 * btrace.c: Include regcache.h.
13369 (btrace_add_pc): New.
13370 (btrace_enable): Call btrace_add_pc.
13371 (btrace_is_empty): New.
13372 * btrace.h (btrace_is_empty): New.
13373 * record-btrace.c (require_btrace, record_btrace_info): Call
13374 btrace_is_empty.
13375
969c39fb
MM
133762014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13377
13378 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
13379 Support delta reads.
13380 (linux_disable_btrace): Change return type.
13381 * common/linux-btrace.h (linux_read_btrace): Change parameters
13382 and return type to allow error reporting. Update users.
13383 (linux_disable_btrace): Change return type. Update users.
13384 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
13385 New.
13386 (btrace_error): New.
13387 (btrace_block) <begin>: Comment on BEGIN == 0.
13388 * btrace.c (btrace_compute_ftrace): Start from the end of
13389 the current trace.
13390 (btrace_stitch_trace, btrace_clear_history): New.
13391 (btrace_fetch): Read delta trace, return if replaying.
13392 (btrace_clear): Move clear history code to btrace_clear_history.
13393 (parse_xml_btrace): Throw an error if parsing failed.
13394 * target.h (struct target_ops) <to_read_btrace>: Change parameters
13395 and return type to allow error reporting.
13396 (target_read_btrace): Change parameters and return type to allow
13397 error reporting.
13398 * target.c (target_read_btrace): Update.
13399 * remote.c (remote_read_btrace): Support delta reads. Pass
13400 errors on.
13401 * NEWS: Announce it.
13402
0b722aec
MM
134032014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13404
13405 * record.h (record_btrace_frame_unwind)
13406 (record_btrace_tailcall_frame_unwind): New declarations.
13407 * dwarf2-frame: Include record.h
13408 (dwarf2_frame_cfa): Throw an error for btrace frames.
13409 * record-btrace.c: Include hashtab.h.
13410 (btrace_get_bfun_name): New.
13411 (btrace_call_history): Call btrace_get_bfun_name.
13412 (struct btrace_frame_cache): New.
13413 (bfcache): New.
13414 (bfcache_hash, bfcache_eq, bfcache_new): New.
13415 (btrace_get_frame_function): New.
13416 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
13417 (record_btrace_frame_this_id): Compute own id.
13418 (record_btrace_frame_prev_register): Provide PC, throw_error
13419 for all other registers.
13420 (record_btrace_frame_sniffer): Detect btrace frames.
13421 (record_btrace_tailcall_frame_sniffer): New.
13422 (record_btrace_frame_dealloc_cache): New.
13423 (record_btrace_frame_unwind): Add new functions.
13424 (record_btrace_tailcall_frame_unwind): New.
13425 (_initialize_record_btrace): Allocate cache.
13426 * btrace.c (btrace_clear): Call reinit_frame_cache.
13427 * NEWS: Announce it.
13428
066ce621
MM
134292014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13430
13431 * record-btrace.c (record_btrace_set_replay)
13432 (record_btrace_goto_begin, record_btrace_goto_end)
13433 (record_btrace_goto): New.
13434 (init_record_btrace_ops): Initialize them.
13435 * NEWS: Announce it.
13436
e2887aa3
MM
134372014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13438
13439 * record-btrace.c (record_btrace_find_new_threads)
13440 (record_btrace_thread_alive): New.
13441 (init_record_btrace_ops): Initialize to_find_new_threads and
13442 to_thread_alive.
13443
b2f4cfde
MM
134442014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13445
13446 * record-btrace.c (record_btrace_resume): New.
13447 (record_btrace_wait): New.
13448 (init_record_btrace_ops): Initialize to_wait and to_resume.
13449
633785ff
MM
134502014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13451
13452 * record-btrace.c (record_btrace_xfer_partial)
13453 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
13454 (record_btrace_allow_memory_access): New.
13455 (init_record_btrace_ops): Initialize new methods.
13456 * target.c (raw_memory_xfer_partial): Bail out if target reports
13457 that this memory is not available.
13458
3db08215
MM
134592014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13460
13461 * target.h (target_ops) <to_insert_breakpoint>
13462 <to_remove_breakpoint>: Add target_ops parameter.
13463 (forward_target_insert_breakpoint): New.
13464 (forward_target_remove_breakpoint): New.
13465 (memory_remove_breakpoint, memory_insert_breakpoint):
13466 Add target_ops parameter.
13467 * target.c (target_insert_breakpoint): Split into this and ...
13468 (forward_target_insert_breakpoint): ... this.
13469 (target_remove_breakpoint): Split into this and ...
13470 (forward_target_remove_breakpoint): ... this.
13471 (debug_to_insert_breakpoint): Add target_ops parameter.
13472 Call forward_target_insert_breakpoint.
13473 (debug_to_remove_breakpoint): Add target_ops parameter.
13474 Call forward_target_remove_breakpoint.
13475 (update_current_target): Do not inherit or default to_insert_breakpoint
13476 and to_remove_breakpoint.
13477 * corelow.c (ignore): Add target_ops parameter.
13478 * exec.c (ignore): Add target_ops parameter.
13479 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
13480 Add target_ops parameter.
13481 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
13482 Add target_ops parameter.
13483 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
13484 Add target_ops parameter.
13485 * record-full.c (record_full_beneath_to_insert_breakpoint)
13486 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
13487 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
13488 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
13489 (record_full_core_remove_breakpoint): Add target_ops parameter.
13490 Update users.
13491 (record_full_beneath_to_insert_breakpoint_ops)
13492 (record_full_beneath_to_remove_breakpoint_ops)
13493 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
13494 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
13495 tmp_to_remove_breakpoint_ops,
13496 record_full_beneath_to_insert_breakpoint_ops, and
13497 record_full_beneath_to_remove_breakpoint_ops.
13498 * remote-m32r-sdi.c (m32r_insert_breakpoint)
13499 (m32r_remove_breakpoint): Add target_ops parameter.
13500 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
13501 Add target_ops parameter.
13502 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
13503 Add target_ops parameter.
13504
cecac1ab
MM
135052014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13506 Markus Metzger <markus.t.metzger@intel.com>
13507
13508 * record-btrace.c: Include frame-unwind.h.
13509 (record_btrace_frame_unwind_stop_reason)
13510 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
13511 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
13512 New.
13513 (init_record_btrace_ops): Install it.
13514
824344ca
MM
135152014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13516
13517 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
13518 get_prev_frame_1.
13519
32261e52
MM
135202014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13521
13522 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
13523 earlier.
13524
ea001bdc
MM
135252014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13526
13527 * frame-unwind.c: Include target.h.
13528 (frame_unwind_try_unwinder): New function with code from ...
13529 (frame_unwind_find_by_frame): ... here. New variable
13530 unwinder_from_target, call also target_get_unwinder)
13531 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
13532 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
13533 * target.h (struct target_ops): New fields to_get_unwinder and
13534 to_get_tailcall_unwinder.
13535 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
13536
1f3ef581
MM
135372014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13538
13539 * record-btrace.c (record_btrace_fetch_registers)
13540 (record_btrace_store_registers)
13541 (record_btrace_to_prepare_to_store): New.
13542 (init_record_btrace_ops): Add the above.
13543
f32dbf8c
MM
135442014-01-16 Tom Tromey <tromey@redhat.com>
13545
13546 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
13547 * target.h (struct target_ops) <to_prepare_to_store>: Add
13548 argument.
13549 (target_prepare_to_store): Add argument.
13550 * target.c (debug_to_prepare_to_store): Add argument.
13551 (update_current_target): Update.
13552 * remote.c (remote_prepare_to_store): Add 'self' argument.
13553 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
13554 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
13555 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
13556 * record-full.c (record_full_core_prepare_to_store): Add 'self'
13557 argument.
13558 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
13559 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
13560 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
13561 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
13562 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
13563
07bbe694
MM
135642014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13565
13566 * btrace.h (replay) <replay>: New.
13567 (btrace_is_replaying): New.
13568 * btrace.c (btrace_clear): Free replay iterator.
13569 (btrace_is_replaying): New.
13570 * record-btrace.c (record_btrace_is_replaying): New.
13571 (record_btrace_info): Print insn number if replaying.
13572 (record_btrace_insn_history): Start at replay position.
13573 (record_btrace_call_history): Start at replay position.
13574 (init_record_btrace_ops): Init to_record_is_replaying.
13575
0688d04e
MM
135762014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13577
13578 * record-btrace.c (record_btrace_insn_history_range): Include
13579 end.
13580 (record_btrace_insn_history_from): Adjust range.
13581 (record_btrace_call_history_range): Include
13582 end.
13583 (record_btrace_call_history_from): Adjust range.
13584 * NEWS: Announce changes.
13585
8710b709
MM
135862014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13587
13588 * record.h (enum record_print_flag)
13589 <record_print_indent_calls>: New.
13590 * record.c (get_call_history_modifiers): Recognize /c modifier.
13591 (_initialize_record): Document /c modifier.
13592 * record-btrace.c (btrace_call_history): Add btinfo parameter.
13593 Reorder fields. Optionally indent the function name. Update
13594 all users.
13595 * NEWS: Announce changes.
13596
d0fa7535
MM
135972014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13598
13599 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
13600
5de9129b
MM
136012014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13602
13603 * btrace.c (ftrace_new_function): Start counting at one.
13604 * record-btrace.c (record_btrace_info): Adjust number of calls
13605 and insns.
13606 * NEWS: Announce it.
13607
7acbe133
MM
136082014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13609
13610 * record-btrace.c (btrace_call_history_insn_range): Print
13611 insn range as [begin, end].
13612
23a7fe75
MM
136132014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13614
13615 * btrace.h (struct btrace_func_link): New.
13616 (enum btrace_function_flag): New.
13617 (struct btrace_inst): Rename to ...
13618 (struct btrace_insn): ...this. Update all users.
13619 (struct btrace_func) <ibegin, iend>: Remove.
13620 (struct btrace_func_link): New.
13621 (struct btrace_func): Rename to ...
13622 (struct btrace_function): ...this. Update all users.
13623 (struct btrace_function) <segment, flow, up, insn, insn_offset)
13624 (number, level, flags>: New.
13625 (struct btrace_insn_iterator): Rename to ...
13626 (struct btrace_insn_history): ...this.
13627 Update all users.
13628 (struct btrace_insn_iterator, btrace_call_iterator): New.
13629 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
13630 (struct btrace_target_info) <begin, end, level>
13631 <insn_history, call_history>: New.
13632 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13633 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13634 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13635 (btrace_call_number, btrace_call_begin, btrace_call_end)
13636 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13637 (btrace_find_function_by_number, btrace_set_insn_history)
13638 (btrace_set_call_history): New.
13639 * btrace.c (btrace_init_insn_iterator)
13640 (btrace_init_func_iterator, compute_itrace): Remove.
13641 (ftrace_print_function_name, ftrace_print_filename)
13642 (ftrace_skip_file): Change
13643 parameter to const.
13644 (ftrace_init_func): Remove.
13645 (ftrace_debug): Use new btrace_function fields.
13646 (ftrace_function_switched): Also consider gaining and
13647 losing symbol information).
13648 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
13649 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
13650 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
13651 New.
13652 (ftrace_new_function): Move. Remove debug print.
13653 (ftrace_update_lines, ftrace_update_insns): New.
13654 (ftrace_update_function): Check for call, ret, and jump.
13655 (compute_ftrace): Renamed to ...
13656 (btrace_compute_ftrace): ...this. Rewritten to compute call
13657 stack.
13658 (btrace_fetch, btrace_clear): Updated.
13659 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13660 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13661 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13662 (btrace_call_number, btrace_call_begin, btrace_call_end)
13663 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13664 (btrace_find_function_by_number, btrace_set_insn_history)
13665 (btrace_set_call_history): New.
13666 * record-btrace.c (require_btrace): Use new btrace thread
13667 info fields.
13668 (record_btrace_info, btrace_insn_history)
13669 (record_btrace_insn_history, record_btrace_insn_history_range):
13670 Use new btrace thread info fields and new iterator.
13671 (btrace_func_history_src_line): Rename to ...
13672 (btrace_call_history_src_line): ...this. Use new btrace
13673 thread info fields.
13674 (btrace_func_history): Rename to ...
13675 (btrace_call_history): ...this. Use new btrace thread info
13676 fields and new iterator.
13677 (record_btrace_call_history, record_btrace_call_history_range):
13678 Use new btrace thread info fields and new iterator.
13679
8372a7cb
MM
136802014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13681
13682 * frame.h (frame_id_build_unavailable_stack_special): New.
13683 * frame.c (frame_id_build_unavailable_stack_special): New.
13684
c2170eef
MM
136852014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13686
13687 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
13688 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
13689 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
13690 to gdbarch.
13691 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
13692 (i386_insn_is_jump, i386_jmp_p): New.
13693 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
13694 insn_is_jump to gdbarch.
13695 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
13696 * gdbarch.h: Regenerated.
13697 * gdbarch.c: Regenerated.
13698 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
13699 (default_insn_is_jump): New.
13700 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
13701 (default_insn_is_jump): New.
13702
864089d2
MM
137032014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13704
13705 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
13706 Change to ...
13707 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
13708 (btrace_read_type) <btrace_read_new>: Change to ...
13709 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
13710
ed9edfb5
MM
137112014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13712
13713 * common/linux-btrace.c (linux_read_btrace): Free trace from
13714 previous iteration.
13715
fbcbc3fd
DE
137162014-01-15 Doug Evans <dje@google.com>
13717
13718 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
13719 uint32_t.
13720
3d548a53
TT
137212014-01-15 Tom Tromey <tromey@redhat.com>
13722
13723 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
13724 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
13725 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
13726 (set_objfile_main_name): New function.
13727 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
13728 language_of_main>: New fields.
13729 (set_objfile_main_name): Declare.
13730 * symtab.c (find_main_name): Loop over objfiles to find the main
13731 name and language.
13732 (set_main_name): Now static.
13733 (get_main_info): Add comment.
13734 * symtab.h (set_main_name): Don't declare.
13735
32ac0d11
TT
137362014-01-15 Tom Tromey <tromey@redhat.com>
13737
13738 * symtab.c (main_progspace_key): New global.
13739 (struct main_info): New.
13740 (name_of_main, language_of_main): Remove.
13741 (get_main_info, main_info_cleanup): New function.
13742 (set_main_name, main_name, main_language): Use get_main_info.
13743 (_initialize_symtab): Initialize main_progspace_key.
13744
9e6c82ad
TT
137452014-01-15 Tom Tromey <tromey@redhat.com>
13746
13747 * dbxread.c (process_one_symbol): Update.
13748 * dwarf2read.c (read_partial_die): Update.
13749 * symfile.c (set_initial_language): Call main_language.
13750 * symtab.c (language_of_main): Now static.
13751 (set_main_name): Add 'lang' parameter.
13752 (find_main_name): Update.
13753 (main_language): New function.
13754 (symtab_observer_executable_changed): Update.
13755 * symtab.h (set_main_name): Update.
13756 (language_of_main): Remove.
13757 (main_language): Declare.
13758
6ef55de7
TT
137592014-01-15 Tom Tromey <tromey@redhat.com>
13760
13761 * symfile.c (init_entry_point_info): Use new "initialized" field.
13762 Update.
13763 * objfiles.h (struct entry_point) <initialized>: New field.
13764 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
13765 (struct objfile) <ei>: ...here. Remove.
13766 * objfiles.c (entry_point_address_query): Update.
13767
53eddfa6
TT
137682014-01-15 Tom Tromey <tromey@redhat.com>
13769
13770 * objfiles.c (entry_point_address_query): Relocate entry point
13771 address.
13772 (objfile_relocate1): Do not relocate entry point address.
13773 * objfiles.h (struct entry_info) <entry_point>: Update comment.
13774 <the_bfd_section_index>: New field.
13775 * symfile.c (init_entry_point_info): Find the entry point's
13776 section.
13777
d56e56aa
TT
137782014-01-15 Tom Tromey <tromey@redhat.com>
13779
13780 * solib-frv.c (enable_break): Use entry_point_address_query.
13781
33a97bbe
OJ
137822014-01-15 Omair Javaid <omair.javaid@linaro.org>
13783
13784 * NEWS: Add note on improved process record-replay on
13785 arm*-linux* targets.
13786
c6ec2b30
OJ
137872014-01-15 Omair Javaid <omair.javaid@linaro.org>
13788
13789 * arm-tdep.c (enum arm_record_result): New enum.
13790 (arm_record_unsupported_insn): New function.
13791 (arm_record_coproc_data_proc): Removed.
13792 (thumb2_record_ld_st_multiple): New function.
13793 (thumb2_record_ld_st_dual_ex_tbb): New function.
13794 (thumb2_record_data_proc_sreg_mimm): New function.
13795 (thumb2_record_ps_dest_generic): New function.
13796 (thumb2_record_branch_misc_cntrl): New function.
13797 (thumb2_record_str_single_data): New function.
13798 (thumb2_record_ld_mem_hints): New function.
13799 (thumb2_record_ld_word): New function.
13800 (thumb2_record_lmul_lmla_div): New function.
13801 (thumb2_record_decode_insn_handler): New function.
13802 (decode_insn): Add thumb32 instruction handlers.
13803
97dfe206
OJ
138042014-01-15 Omair Javaid <omair.javaid@linaro.org>
13805
13806 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
13807 (struct arm_linux_record_tdep): Declare.
13808 (arm_canonicalize_syscall): New function.
13809 (arm_all_but_pc_registers_record): New function.
13810 (arm_linux_syscall_record): New function.
13811 (arm_linux_init_abi): Add syscall recording constructs.
13812 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
13813 decoding. (arm_record_coproc_data_proc): Update arm syscall
13814 decoding.
13815 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
13816 <arm_syscall_record>: New field.
13817 * configure.tgt (arm*-*-linux*): Add linux-record.o to
13818 gdb_target_obs.
13819
9904a494
OJ
138202014-01-15 Omair Javaid <omair.javaid@linaro.org>
13821
13822 * arm-tdep.c (thumb_record_misc): Update to use sp as base
13823 register for push instruction recording.
13824
f969241e
OJ
138252014-01-15 Omair Javaid <omair.javaid@linaro.org>
13826
13827 * arm-tdep.c (thumb_record_misc): Update to correct logical
13828 error while recording ldm, ldmia and pop instructions.
13829
bfbbec00
OJ
138302014-01-15 Omair Javaid <omair.javaid@linaro.org>
13831
13832 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
13833
e40adcc9
PA
138342014-01-15 Pedro Alves <palves@redhat.com>
13835
13836 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
13837 (go32_resume, go32_fetch_registers, store_register)
13838 (go32_store_registers, go32_prepare_to_store)
13839 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
13840 (go32_create_inferior, go32_can_run, go32_terminal_init)
13841 (go32_terminal_inferior, go32_terminal_ours): Delete forward
13842 declarations.
13843
b0a16e66
TT
138442014-01-15 Tom Tromey <tromey@redhat.com>
13845
13846 * target.h (async_callback_ftype): New typedef.
13847 (struct target_ops) <to_async>: Use it.
13848
bf7105a4
JB
138492014-01-15 Joel Brobecker <brobecker@adacore.com>
13850
13851 * python/py-value.c (get_field_type): Remove unnecessary curly
13852 braces for single-statement if block.
13853
a8f35c2e
JB
138542014-01-15 Joel Brobecker <brobecker@adacore.com>
13855
13856 * python/py-type.c (convert_field): Add missing empty line
13857 after declarations.
13858
bb4142cf
DE
138592014-01-14 Doug Evans <dje@google.com>
13860
13861 * symfile.h (expand_symtabs_matching): Renamed from
13862 expand_partial_symbol_names. Update prototype.
13863 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
13864 * symfile.c (expand_symtabs_matching): Renamed from
13865 expand_partial_symbol_names. New args file_matcher, kind.
13866 Rename arg fun to symbol_matcher.
13867 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
13868 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
13869 ada_expand_partial_symbol_name.
13870 (ada_make_symbol_completion_list): Update to call
13871 expand_symtabs_matching.
13872 (ada_add_global_exceptions): Call expand_symtabs_matching.
13873 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
13874 call map_symbol_filenames.
13875 * symtab.c (sources_info): Update to call map_symbol_filenames.
13876 (search_symbols): Call expand_symtabs_matching.
13877 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
13878 (default_make_symbol_completion_list_break_on): Update to call
13879 expand_symtabs_matching.
13880 (make_source_files_completion_list): Update to call
13881 map_symbol_filenames.
13882
206f2a57
DE
138832014-01-14 Doug Evans <dje@google.com>
13884
13885 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
13886 (expand_symtabs_symbol_matcher_ftype): New typedef.
13887 (quick_symbol_functions.expand_symtabs_matching): Update to use.
13888 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13889 * symfile.c (expand_partial_symbol_names): Update to use
13890 expand_symtabs_symbol_matcher_ftype.
13891 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
13892 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13893 Arg name_matcher renamed to symbol_matcher.
13894 * psymtab.c (recursively_search_psymtabs): Update to use
13895 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
13896 sym_matcher.
13897 (expand_symtabs_matching_via_partial): Update to use
13898 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13899 Arg name_matcher renamed to symbol_matcher.
13900
540c2971
DE
139012014-01-14 Doug Evans <dje@google.com>
13902
13903 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
13904 (map_partial_symbol_filenames): Ditto.
13905 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
13906 (map_partial_symbol_filenames): Ditto.
13907 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
13908 (map_partial_symbol_filenames): Ditto.
13909 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
13910 (map_partial_symbol_filenames): Ditto.
13911 * symtab.c: Delete #include "psymtab.h".
13912
8213266a
PA
139132014-01-14 Pedro Alves <palves@redhat.com>
13914 Tom Tromey <tromey@redhat.com>
13915
13916 * infrun.c (use_displaced_stepping): Use find_record_target
13917 instead of RECORD_IS_USED.
13918 (adjust_pc_after_break): Use record_full_is_used instead of
13919 RECORD_IS_USED.
13920 * record-btrace.c (record_btrace_open): Call record_preopen
13921 instead of checking RECORD_IS_USED.
13922 * record-full.c (record_full_shortname)
13923 (record_full_core_shortname): New globals.
13924 (record_full_is_used): New function.
13925 (find_full_open): Call record_preopen instead of checking
13926 RECORD_IS_USED.
13927 (init_record_full_ops): Set the target's shortname to
13928 record_full_shortname.
13929 (init_record_full_core_ops): Set the target's shortname to
13930 record_full_core_shortname.
13931 * record-full.h (record_full_is_used): Declare.
13932 * record.c (find_record_target): Make extern.
13933 (record_preopen): New function.
13934 * record.h (RECORD_IS_USED): Delete macro.
13935 (find_record_target, record_preopen): Declare functions.
13936
7ec1862d
YQ
139372014-01-14 Yao Qi <yao@codesourcery.com>
13938
13939 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
13940 'len''s type to ULONGEST.
13941 (core_xfer_shared_libraries_aix): Likewise.
13942 * gdbarch.c, gdbarch.h: Regenerated.
13943 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
13944 Change type of 'len' to ULONGEST.
13945 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13946 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
13947
dea80a27
YQ
139482014-01-14 Yao Qi <yao@codesourcery.com>
13949
13950 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
13951 type of 'len' to ULONGEST.
13952 (linux_xfer_osdata_processgroups): Likewise.
13953 (linux_xfer_osdata_threads): Likewise.
13954 (linux_xfer_osdata_fds): Likewise.
13955 (linux_xfer_osdata_isockets): Likewise.
13956 (linux_xfer_osdata_shm): Likewise.
13957 (linux_xfer_osdata_sem): Likewise.
13958 (linux_xfer_osdata_msg): Likewise.
13959 (linux_common_xfer_osdata): Likewise.
13960 (struct osdata_type) <getter>: Likewise.
13961 * common/linux-osdata.h (linux_common_xfer_osdata): Update
13962 the declaration.
13963
b55e14c7
YQ
139642014-01-14 Yao Qi <yao@codesourcery.com>
13965
13966 * target.h (target_xfer_partial_ftype): Update.
13967 (struct target_ops) <to_xfer_partial>: Change 'len' type to
13968 ULONGEST.
13969 * aix-thread.c (aix_thread_xfer_partial): Change type of
13970 argument 'len' to ULONGEST.
13971 * auxv.c (procfs_xfer_auxv): Likewise.
13972 (ld_so_xfer_auxv): Likewise.
13973 (memory_xfer_auxv): Likewise.
13974 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13975 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13976 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
13977 * corelow.c (core_xfer_partial): Likewise.
13978 * ctf.c (ctf_xfer_partial): Likewise.
13979 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
13980 '%u'.
13981 (darwin_read_dyld_info): Likewise.
13982 (darwin_xfer_partial): Likewise.
13983 * exec.c (section_table_xfer_memory_partial): Likewise.
13984 (exec_xfer_partial): Likewise.
13985 * exec.h (section_table_xfer_memory_partial): Update
13986 declaration.
13987 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
13988 instead of plongest.
13989 (gnu_xfer_partial): Likewise.
13990 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
13991 (ia64_hpux_xfer_solib_got): Likewise.
13992 (ia64_hpux_xfer_partial): Likewise.
13993 * ia64-linux-nat.c (ia64_linux_xfer_partial):
13994 * inf-ptrace.c (inf_ptrace_xfer_partial):
13995 * inf-ttrace.c (inf_ttrace_xfer_partial):
13996 * linux-nat.c (linux_xfer_siginfo): Likewise.
13997 (linux_nat_xfer_partial): Likewise.
13998 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
13999 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
14000 * monitor.c (monitor_xfer_memory): Likewise.
14001 (monitor_xfer_partial): Likewise.
14002 * procfs.c (procfs_xfer_partial): Likewise.
14003 * record-full.c (record_full_xfer_partial): Likewise.
14004 (record_full_core_xfer_partial): Likewise.
14005 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
14006 instead of plongest.
14007 (gdbsim_xfer_partial): Likewise.
14008 * remote.c (remote_xfer_partial): Likewise.
14009 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14010 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
14011 declaration.
14012 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14013 (rs6000_xfer_shared_libraries): Likewise.
14014 * sol-thread.c (sol_thread_xfer_partial): Likewise.
14015 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14016 (sparc_xfer_partial): Likewise.
14017 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
14018 (spu_xfer_partial): Likewise.
14019 * spu-multiarch.c (spu_xfer_partial): Likewise.
14020 * target.c (target_read_live_memory): Likewise.
14021 (memory_xfer_live_readonly_partial): Likewise.
14022 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
14023 (target_xfer_partial, default_xfer_partial): Likewise.
14024 (current_xfer_partial): Likewise.
14025 * tracepoint.c (tfile_xfer_partial): Likewise.
14026 * windows-nat.c (windows_xfer_memory): Likewise. Call
14027 pulongest instead of plongest.
14028 (windows_xfer_partial): Likewise.
14029 (windows_xfer_shared_libraries): Likewise.
14030
05804640
YQ
140312014-01-14 Yao Qi <yao@codesourcery.com>
14032
14033 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
14034 target_xfer_partial_ftype.
14035
b5b08fb4
SC
140362014-01-13 Siva Chandra Reddy <sivachandra@google.com>
14037
14038 PR python/15464
14039 PR python/16113
14040 * valops.c (value_struct_elt_bitpos): New function
14041 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
14042 object to 'None' if the field name is an empty string ("").
14043 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
14044 attribute to look for a field when 'name' is 'None'.
14045 (get_field_type): New function
14046
13aaf454
DE
140472014-01-13 Doug Evans <dje@google.com>
14048
14049 PR symtab/16426
14050 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
14051 (try_open_dwop_file): Ditto.
14052 * gdb_bfd.c: #include "vec.h".
14053 (bfdp): New typedef.
14054 (struct gdb_bfd_data): New member included_bfds.
14055 (gdb_bfd_unref): Unref all included bfds.
14056 (gdb_bfd_record_inclusion): New function.
14057 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
14058
c2cec97c
TT
140592014-01-13 Tom Tromey <tromey@redhat.com>
14060
14061 * gdbcore.h (deprecated_core_resize_section_table): Remove.
14062
78e5999d
TT
140632014-01-13 Tom Tromey <tromey@redhat.com>
14064
14065 * defs.h (use_windows): Remove.
14066 * gdb.c (main): Update.
14067 * main.c (captured_main, gdb_main): Update.
14068 * main.h (struct captured_main_args) <use_windows>: Remove.
14069 * top.c (use_windows): Remove.
14070
f2052bbe
TT
140712014-01-13 Tom Tromey <tromey@redhat.com>
14072
14073 * defs.h (deprecated_flush_hook): Remove.
14074
fde4f8ed
JK
140752014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
14076
14077 PR threads/16216
14078 * linux-thread-db.c (try_thread_db_load): Add parameter
14079 check_auto_load_safe. Move here the file_is_auto_load_safe call.
14080 (try_thread_db_load_from_pdir_1): Move it there from here.
14081 (try_thread_db_load_from_sdir): Update caller.
14082 (try_thread_db_load_from_dir): Move it there from here.
14083
bdf61915
PP
140842014-01-13 Patrick Palka <patrick@parcs.ath.cx>
14085
14086 * regformats/regdat.sh: Always rewrite the register file.
14087
f71e1a8d
PA
140882014-01-13 Pedro Alves <palves@redhat.com>
14089
14090 * Makefile.in (CHECK_HEADERS): New variable.
14091 (check-headers:): New rule.
14092
42c85435
TT
140932014-01-13 Tom Tromey <tromey@redhat.com>
14094
14095 * cli/cli-setshow.c (do_set_command): Update.
14096 * defs.h (deprecated_set_hook): Remove.
14097 * top.c (deprecated_set_hook): Remove.
14098
f8de5129
PA
140992014-01-13 Pedro Alves <palves@redhat.com>
14100
14101 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
14102 the tracepoint if the PC is a pseudo-register.
14103
fc270c35
TT
141042014-01-13 Tom Tromey <tromey@redhat.com>
14105
14106 * defs.h (XCALLOC): Remove.
14107 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
14108 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
14109 * dwarf2loc.c (allocate_piece_closure): Likewise.
14110 * elfread.c (elf_symfile_segments): Likewise.
14111 (elf_symfile_segments): Likewise.
14112 * gdbtypes.c (copy_type_recursive): Likewise.
14113 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
14114 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
14115 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
14116 XCALLOC.
14117 * mt-tdep.c (mt_gdbarch_init): Likewise.
14118 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
14119 XCALLOC.
14120 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
14121 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
14122 * registry.c (registry_alloc_data): Likewise.
14123 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
14124 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
14125 * serial.c (serial_fdopen_ops): Likewise.
14126 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
14127 XCALLOC.
14128 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
14129 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
14130 not XCALLOC.
14131
70ba0933
TT
141322014-01-13 Tom Tromey <tromey@redhat.com>
14133
14134 * defs.h (XMALLOC): Remove.
14135 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
14136 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
14137 * cli-out.c (struct ui_out *): Likewise.
14138 * cli/cli-dump.c (add_dump_command): Likewise.
14139 (add_dump_command): Likewise.
14140 * complaints.c (get_complaints): Likewise.
14141 (find_complaint): Likewise.
14142 * dwarf2-frame.c (execute_cfa_program): Likewise.
14143 * dwarf2read.c (abbrev_table_read_table): Likewise.
14144 * gdbarch.sh: Likewise.
14145 * gdbarch.c: Rebuild.
14146 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
14147 * interps.c (interp_new): Likewise.
14148 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
14149 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
14150 * mi/mi-console.c (mi_console_file_new): Likewise.
14151 * mi/mi-interp.c (mi_interpreter_init): Likewise.
14152 * mi/mi-out.c (mi_out_new): Likewise.
14153 * mi/mi-parse.c (mi_parse): Likewise.
14154 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
14155 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
14156 * observer.c (xalloc_observer_list_node): Likewise.
14157 * regcache.c (regcache_xmalloc_1): Likewise.
14158 * reggroups.c (reggroup_new): Likewise.
14159 (_initialize_reggroup): Likewise.
14160 * registry.c (register_data_with_cleanup): Likewise.
14161 * remote.c (remote_notif_stop_alloc_reply): Likewise.
14162 * ser-base.c (serial_ttystate): Likewise.
14163 * ser-mingw.c (make_pipe_state): Likewise.
14164 * ser-pipe.c (pipe_open): Likewise.
14165 * serial.c (serial_open): Likewise.
14166 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
14167 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
14168 (tui_alloc_win_info): Likewise.
14169 (tui_add_content_elements): Likewise.
14170 * tui/tui-file.c (tui_file_new): Likewise.
14171 * tui/tui-out.c (tui_out_new): Likewise.
14172 * ui-file.c (mem_file_new): Likewise.
14173 * ui-out.c (push_level): Likewise.
14174 (make_cleanup_ui_out_end): Likewise.
14175 (append_header_to_list): Likewise.
14176 (ui_out_new): Likewise.
14177 * user-regs.c (user_reg_add_builtin): Likewise.
14178
41bf6aca
TT
141792014-01-13 Tom Tromey <tromey@redhat.com>
14180
14181 * defs.h (XZALLOC): Remove.
14182 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
14183 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
14184 (get_ada_tasks_inferior_data): Likewise.
14185 * auto-load.c (get_auto_load_pspace_data): Likewise.
14186 * auxv.c (get_auxv_inferior_data): Likewise.
14187 * bfd-target.c (target_bfd_reopen): Likewise.
14188 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
14189 (deprecated_insert_raw_breakpoint): Likewise.
14190 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
14191 * corelow.c (core_open): Likewise.
14192 * darwin-nat.c (darwin_check_new_threads): Likewise.
14193 (darwin_attach_pid): Likewise.
14194 * dummy-frame.c (dummy_frame_push): Likewise.
14195 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
14196 * dwarf2loc.c (allocate_piece_closure): Likewise.
14197 * elfread.c (elf_symfile_segments): Likewise.
14198 * eval.c (ptrmath_type_p): Likewise.
14199 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
14200 * gdbtypes.c (alloc_type_arch): Likewise.
14201 (alloc_type_instance): Likewise.
14202 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
14203 * inf-child.c (inf_child_can_use_agent): Likewise.
14204 * inflow.c (get_inflow_inferior_data): Likewise.
14205 * infrun.c (save_infcall_suspend_state): Likewise.
14206 * jit.c (jit_reader_load): Likewise.
14207 (get_jit_objfile_data): Likewise.
14208 (get_jit_program_space_data): Likewise.
14209 (jit_object_open_impl): Likewise.
14210 (jit_symtab_open_impl): Likewise.
14211 (jit_block_open_impl): Likewise.
14212 (jit_frame_sniffer): Likewise.
14213 * linux-fork.c (add_fork): Likewise.
14214 * maint.c (make_command_stats_cleanup): Likewise.
14215 * objfiles.c (get_objfile_pspace_data): Likewise.
14216 * opencl-lang.c (struct lval_closure): Likewise.
14217 * osdata.c (osdata_start_osdata): Likewise.
14218 * progspace.c (new_address_space): Likewise.
14219 (add_program_space): Likewise.
14220 * remote-sim.c (get_sim_inferior_data): Likewise.
14221 * sh-tdep.c (sh_gdbarch_init): Likewise.
14222 * skip.c (Ignore): Likewise.
14223 (skip_delete_command): Likewise.
14224 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
14225 (library_list_start_library): Likewise.
14226 (solib_aix_current_sos): Likewise.
14227 * solib-darwin.c (get_darwin_info): Likewise.
14228 (darwin_current_sos): Likewise.
14229 * solib-dsbt.c (get_dsbt_info): Likewise.
14230 * solib-ia64-hpux.c (new_so_list): Likewise.
14231 (ia64_hpux_get_solib_linkage_addr): Likewise.
14232 * solib-spu.c (append_ocl_sos): Likewise.
14233 (spu_current_sos): Likewise.
14234 * solib-svr4.c (get_svr4_info): Likewise.
14235 (svr4_keep_data_in_core): Likewise.
14236 (library_list_start_library): Likewise.
14237 (svr4_default_sos): Likewise.
14238 (svr4_read_so_list): Likewise.
14239 * solib-target.c (library_list_start_library): Likewise.
14240 (solib_target_current_sos): Likewise.
14241 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
14242 * symfile-debug.c (install_symfile_debug_logging): Likewise.
14243 * symfile.c (default_symfile_segments): Likewise.
14244 * target-descriptions.c (tdesc_data_init): Likewise.
14245 (tdesc_create_reg): Likewise.
14246 (struct tdesc_type *): Likewise.
14247 (tdesc_create_vector): Likewise.
14248 (tdesc_set_struct_size): Likewise.
14249 (struct tdesc_type *): Likewise.
14250 (tdesc_free_feature): Likewise.
14251 (tdesc_create_feature): Likewise.
14252 * windows-nat.c (windows_add_thread): Likewise.
14253 (windows_make_so): Likewise.
14254 * xml-support.c (gdb_xml_body_text): Likewise.
14255 (gdb_xml_create_parser_and_cleanup): Likewise.
14256 (xml_process_xincludes): Likewise.
14257 * xml-syscall.c (allocate_syscalls_info): Likewise.
14258 (syscall_create_syscall_desc): Likewise.
14259
5acfdbae
SDJ
142602014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
14261
14262 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
14263 function, with code from i386_stap_parse_special_token.
14264 (i386_stap_parse_special_token_three_arg_disp): Likewise.
14265 (i386_stap_parse_special_token): Move code to the two functions
14266 above; simplify it.
14267
0000e5cc
PA
142682014-01-09 Pedro Alves <palves@redhat.com>
14269 Hui Zhu <hui@codesourcery.com>
14270
14271 PR gdb/16101
14272 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
14273 bp_err_string. Don't mark the location shlib_disabled if the
14274 error thrown wasn't a generic or memory error. Catch errors
14275 thrown while inserting breakpoints in overlayed code. Output
14276 error message of software breakpoints.
14277 * remote.c (remote_insert_breakpoint): If this breakpoint has
14278 target-side commands but this stub doesn't support Z0 packets,
14279 throw NOT_SUPPORTED_ERROR error.
14280 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
14281 * target.h (target_insert_breakpoint): Extend comment.
14282 (target_insert_hw_breakpoint): Add comment.
14283
b7ea362b
PA
142842014-01-08 Pedro Alves <palves@redhat.com>
14285
14286 * remote.c (remote_add_thread): Add threads silently if starting
14287 up.
14288 (remote_notice_new_inferior): If in all-stop, and starting up,
14289 don't call notice_new_inferior.
14290 (get_current_thread): New function, factored out from ...
14291 (add_current_inferior_and_thread): ... this. Adjust.
14292 (remote_start_remote) <all-stop>: Fetch the thread list. If we
14293 found any thread, then select the remote's current thread as GDB's
14294 current thread too.
14295
b7bba001
JB
142962014-01-08 Joel Brobecker <brobecker@adacore.com>
14297
14298 * NEWS: Create a new section for the next release branch.
14299 Rename the section of the current branch, now that it has
14300 been cut.
14301
16dfbded
JB
143022014-01-08 Joel Brobecker <brobecker@adacore.com>
14303
14304 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
14305 * version.in: Bump version to 7.7.50.DATE-cvs.
14306
22c90ac1
YQ
143072014-01-08 Yao Qi <yao@codesourcery.com>
14308
14309 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
14310 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
14311 (spu_xfer_partial): Cast 'buf' to 'const char *'.
14312
d64ad97c
YQ
143132014-01-08 Yao Qi <yao@codesourcery.com>
14314
14315 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
14316 return value of bfd_get_filename to symbol_file_add_from_bfd.
14317
f93ba80c
PM
143182014-01-08 Pierre Muller <muller@sourceware.org>
14319
14320 Fix PR16201.
14321 * coff-pe-read.c (struct read_pe_section_data): Add index field.
14322 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
14323 to prim_record_mininal_symbol_and_info.
14324 (add_pe_forwarded_sym): Use known section number of forwarded symbol
14325 in call to prim_record_minimal_symbol_and_info.
14326 (read_pe_exported_syms): Set index field of section_data.
14327
a4d9ba85
AP
143282014-01-07 Andrew Pinski <apinski@cavium.com>
14329
14330 * features/aarch64-core.xml (cpsr): Change to be 64bit.
14331 * features/aarch64.c: Regenerate.
14332
1b67eb02
AS
143332014-01-07 Andreas Schwab <schwab@linux-m68k.org>
14334
14335 * target.c (return_null): Define.
14336 (update_current_target): Use it instead of return_zero for
14337 functions that return a pointer.
14338
5e3f4fab
EBM
143392014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
14340
14341 * source.c (add_path): Fix check for duplicated paths in the previously
14342 included paths.
14343
e2616788
HK
143442014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
14345
14346 * ada-lang.c: Remove duplicated include statements.
14347 * alphabsd-nat.c: Ditto.
14348 * amd64-darwin-tdep.c: Ditto.
14349 * amd64fbsd-nat.c: Ditto.
14350 * auto-load.c: Ditto.
14351 * ax-gdb.c: Ditto.
14352 * breakpoint.c: Ditto.
14353 * dbxread.c: Ditto.
14354 * fork-child.c: Ditto.
14355 * gdb_usleep.c: Ditto.
14356 * i386-darwin-tdep.c: Ditto.
14357 * i386fbsd-nat.c: Ditto.
14358 * infcmd.c: Ditto.
14359 * inferior.c: Ditto.
14360 * jv-lang.c: Ditto.
14361 * linux-nat.c: Ditto.
14362 * linux-tdep.c: Ditto.
14363 * m68kbsd-nat.c: Ditto.
14364 * m68klinux-nat.c: Ditto.
14365 * microblaze-tdep.c: Ditto.
14366 * mips-linux-tdep.c: Ditto.
14367 * mn10300-tdep.c: Ditto.
14368 * nto-tdep.c: Ditto.
14369 * opencl-lang.c: Ditto.
14370 * osdata.c: Ditto.
14371 * printcmd.c: Ditto.
14372 * regcache.c: Ditto.
14373 * remote-m32r-sdi.c: Ditto.
14374 * remote.c: Ditto.
14375 * symfile.c: Ditto.
14376 * symtab.c: Ditto.
14377 * tilegx-linux-nat.c: Ditto.
14378 * tilegx-tdep.c: Ditto.
14379 * tracepoint.c: Ditto.
14380 * valops.c: Ditto.
14381 * vaxbsd-nat.c: Ditto.
14382 * windows-nat.c: Ditto.
14383 * xtensa-tdep.c: Ditto.
14384
bd1f7788
YQ
143852014-01-07 Yao Qi <yao@codesourcery.com>
14386
14387 * spu-linux-nat.c (_initialize_spu_nat): Declare.
14388
79301218
JB
143892014-01-07 Yao Qi <yao@codesourcery.com>
14390 Joel Brobecker <brobecker@adacore.com>
14391
14392 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
14393 (pdc_write_regs): Likewise.
14394 (fetch_regs_kernel_thread): Likewise.
14395 (store_regs_kernel_thread): Likewise.
14396
143972014-01-07 Joel Brobecker <brobecker@adacore.com>
14398
14399 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
14400 tagged type objects to their actual type.
14401
8e355c5d
JB
144022014-01-07 Joel Brobecker <brobecker@adacore.com>
14403
14404 * ada-valprint.c (print_field_values): Add "language" parameter.
14405 Update calls to print_field_values and print_variant_part.
14406 Pass new parameter "language" in call to val_print instead
14407 of "current_language". Replace call to ada_val_print by call
14408 to val_print.
14409 (print_variant_part): Add "language" parameter.
14410 (ada_val_print_struct_union): Update call to print_field_values.
14411
4fbf5aa5
JB
144122014-01-07 Joel Brobecker <brobecker@adacore.com>
14413
14414 * ada-valprint.c (ui_memcpy): Delete.
14415 (ada_print_floating): Update documentation. Add empty line
14416 between between function documentation and implementation.
14417 Delete variable "buffer". Use ui_file_xstrdup in place of
14418 ui_file_put. Minor adjustments following this change.
14419
71855601
JB
144202014-01-07 Joel Brobecker <brobecker@adacore.com>
14421
14422 * ada-valprint.c (ada_val_print_string): New function,
14423 extracted from ada_val_print_array.
14424 (ada_val_print_array): Replace extracted code by call
14425 to ada_val_print_string followed by a return. Move
14426 "else" branch to the function's top block.
14427
4eb27a30
JB
144282014-01-07 Joel Brobecker <brobecker@adacore.com>
14429
14430 * ada-valprint.c (ada_val_print_array): Move implementation
14431 down. Rename parameter "offset" and "val" into "offset_aligned"
14432 and "original_value" respectively. Add parameter "offset".
14433
34b27950
JB
144342014-01-07 Joel Brobecker <brobecker@adacore.com>
14435
14436 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
14437 re-organizing the code. Change the "???" message printed
14438 when target type is a TYPE_CODE_UNDEF into
14439 "<ref to undefined type>".
14440
079e4591
JB
144412014-01-07 Joel Brobecker <brobecker@adacore.com>
14442
14443 * ada-valprint.c (print_record): Delete, implementation inlined...
14444 (ada_val_print_struct_union): ... here. Remove call to
14445 ada_check_typedef in inlined implementation.
14446
8004dfd1
JB
144472014-01-07 Joel Brobecker <brobecker@adacore.com>
14448
14449 * ada-valprint.c (ada_val_print_gnat_array): New function,
14450 extracted from ada_val_print_1;
14451 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
14452 (ada_val_print_flt, ada_val_print_struct_union)
14453 (ada_val_print_ref): Likewise.
14454 (ada_val_print_1): Delete variables i and elttype.
14455 Replace extracted-out code by call to corresponding
14456 new functions.
14457
760a2db0
JB
144582014-01-07 Joel Brobecker <brobecker@adacore.com>
14459
14460 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
14461
3a92c861
JB
144622014-01-07 Joel Brobecker <brobecker@adacore.com>
14463
14464 * ada-valprint.c (ada_val_print_1): Replace calls to
14465 ada_val_print_1 by calls to val_print.
14466
cd1630f9
JB
144672014-01-07 Joel Brobecker <brobecker@adacore.com>
14468
14469 * ada-valprint.c (ada_val_print_1): Add parameter "language".
14470 Update calls to self accordingly. Replace calls to c_val_print
14471 by calls to val_print.
14472
bdf779a0
JB
144732014-01-07 Joel Brobecker <brobecker@adacore.com>
14474
14475 * ada-valprint.c (print_record): Delete declaration.
14476 (adjust_type_signedness, ada_val_print_1): Likewise.
14477 (ada_val_print): Move function implementation down.
14478 (print_variant_part, print_field_values, print_record):
14479 Move function implementation up.
14480
c0d48811
JB
144812014-01-07 Joel Brobecker <brobecker@adacore.com>
14482
14483 * python/py-type.c (typy_get_name): New function.
14484 (type_object_getset): Add entry for attribute "name".
14485 * NEWS: Add entry mentioning this new attribute.
14486
c26e9cbb
YQ
144872014-01-07 Yao Qi <yao@codesourcery.com>
14488
14489 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
14490 statement.
14491
0cc6f43d
YQ
144922014-01-07 Yao Qi <yao@codesourcery.com>
14493
14494 * gnu-nat.c (info_port_rights): Add qualifier const to
14495 argument args.
14496
eec03155
YQ
144972014-01-07 Yao Qi <yao@codesourcery.com>
14498
14499 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
14500
f04a82ef
YQ
145012014-01-07 Yao Qi <yao@codesourcery.com>
14502
14503 * gnu-nat.c (make_inf) Update declaration.
14504 (make_inf): Make it static.
14505 (inf_set_traced): Likewise.
14506 (inf_port_to_thread, inf_task_died_status): Likewise.
14507
d57dda0a
YQ
145082014-01-07 Yao Qi <yao@codesourcery.com>
14509
14510 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
14511
3aa8c969
YQ
145122014-01-07 Yao Qi <yao@codesourcery.com>
14513
14514 * gnu-nat.c (_initialize_gnu_nat): Declare.
14515
94123b4f
YQ
145162014-01-07 Yao Qi <yao@codesourcery.com>
14517
14518 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
14519 'enum bfd_endian'.
14520 (struct gdbarch_info) <byte_order>: Change type to
14521 'enum bfd_endian'.
14522 <byte_order_for_code>: Likewise.
14523 * gdbarch.c, gdbarch.h: Regenerated.
14524
dc81d70a
TT
145252014-01-06 Sasha Smundak <asmundak@google.com>
14526
14527 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
14528
cc2f3c35
TT
145292014-01-06 Tom Tromey <tromey@redhat.com>
14530
14531 * doublest.c (convert_doublest_to_floatformat): Use const, not
14532 CONST.
14533 * somread.c (som_symtab_read): Likewise.
14534
adcf2eed
HZ
145352014-01-07 Hui Zhu <hui@codesourcery.com>
14536
14537 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
14538 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
14539 (gdb_bfd_fopen): Ditto.
14540 (gdb_bfd_openr): Ditto.
14541 (gdb_bfd_openw): Ditto.
14542 (gdb_bfd_openr_iovec): Ditto.
14543 (gdb_bfd_fdopenr): Ditto.
14544 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
14545 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
14546 with xstrdup.
14547 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
14548 with xstrdup.
14549 * symfile-mem.c (symbol_file_add_from_memory): Removed
14550 gdb_bfd_stash_filename.
14551
50722198
DE
145522014-01-03 Doug Evans <dje@google.com>
14553
14554 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
14555 output.
14556
2fa4b862
JB
145572014-01-01 Joel Brobecker <brobecker@adacore.com>
14558
14559 Update year range in copyright notice of all files.
14560
28498c42
JB
145612014-01-01 Joel Brobecker <brobecker@adacore.com>
14562
14563 * top.c (print_gdb_version): Set copyright year to 2014.
14564
7b6e1046
JB
145652014-01-01 Joel Brobecker <brobecker@adacore.com>
14566
14567 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
14568
df96af55 14569For older changes see ChangeLog-2013.
c906108c
SS
14570\f
14571Local Variables:
14572mode: change-log
14573left-margin: 8
14574fill-column: 74
14575version-control: never
57da7796 14576coding: utf-8
c906108c 14577End:
This page took 2.314435 seconds and 4 git commands to generate.