Misc about gold for aarch64 backend.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
ab917dfb
PA
12014-10-29 Pedro Alves <palves@redhat.com>
2
3 PR gdb/17408
4 * infrun.c (switch_back_to_stepped_thread): Use currently_stepping
5 instead of assuming a thread with a stepping range is always
6 stepping.
7
d3d4baed
PA
82014-10-29 Pedro Alves <palves@redhat.com>
9
10 PR python/17372
11 * event-top.c (change_line_handler): Call
12 gdb_rl_callback_handler_remove instead of
13 rl_callback_handler_remove.
14 (callback_handler_installed): New global.
15 (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
16 (gdb_rl_callback_handler_reinstall): New functions.
17 (display_gdb_prompt): Call gdb_rl_callback_handler_remove and
18 gdb_rl_callback_handler_install instead of
19 rl_callback_handler_remove and rl_callback_handler_install.
20 (gdb_disable_readline): Call gdb_rl_callback_handler_remove
21 instead of rl_callback_handler_remove.
22 * event-top.h (gdb_rl_callback_handler_remove)
23 (gdb_rl_callback_handler_install)
24 (gdb_rl_callback_handler_reinstall): New declarations.
25 * infrun.c (reinstall_readline_callback_handler_cleanup): New
26 cleanup function.
27 (fetch_inferior_event): Install it.
28 * top.c (gdb_readline_wrapper_line) Call
29 gdb_rl_callback_handler_remove instead of
30 rl_callback_handler_remove.
31 (gdb_readline_wrapper_cleanup): Don't call
32 rl_callback_handler_install.
33
6e5d7f39
PA
342014-10-29 Pedro Alves <palves@redhat.com>
35
36 * event-top.c (command_line_handler): Clear the first byte of
37 linebuffer, when it is first allocated.
38
551cb6a5
PA
392014-10-29 Pedro Alves <palves@redhat.com>
40
41 * tui/tui.c (tui_rl_switch_mode): Wrap tui_enable/tui_disable in
42 TRY_CATCH.
43
1e1e619b
PA
442014-10-29 Pedro Alves <palves@redhat.com>
45
46 PR tui/16138
47 PR tui/17519
48 * tui/tui-interp.c (tui_is_toplevel): Delete global.
49 (tui_allowed_p): Delete function.
50 * tui/tui.c: Include "interps.h".
51 (tui_enable): Don't use tui_allowed_p. Error out here with
52 detailed error messages if the TUI is the top level interpreter,
53 or if output is not a terminal. Use newterm instead of initscr,
54 and error out if initializing the terminal fails. Also error out if
55 the terminal doesn't support cursor addressing.
56 * tui/tui.h (tui_allowed_p): Delete declaration.
57
6041179a
JB
582014-10-29 Joel Brobecker <brobecker@adacore.com>
59
60 * arm-tdep.c (arm_skip_stack_protector): Return early if
61 address loaded by first "ldr" instruction does not have
62 a corresponding minimal symbol. Update comment.
63
6ae274b7
YQ
642014-10-29 Yao Qi <yao@codesourcery.com>
65
66 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
67 loaded address correctly of ldr instruction.
68
7f5ef605
PA
692014-10-28 Pedro Alves <palves@redhat.com>
70
71 PR gdb/12623
72 * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
73 field.
74 * infrun.c (resume) <stepping breakpoint instruction>: Set the
75 thread's stepped_breakpoint field. Skip if reverse debugging.
76 Add comment.
77 (init_thread_stepping_state, handle_signal_stop): Clear the
78 thread's stepped_breakpoint field.
79
7d1a114c
PA
802014-10-27 Pedro Alves <palves@redhat.com>
81
82 * remote.c (remote_thread_alive): New, factored out from ...
83 (remote_thread_alive): ... this.
84 (remote_update_thread_list): Bail out before deleting threads if
85 the target returned an empty list, and, the current thread has a
86 magic/fake ptid.
87
e5f8a7cc
PA
882014-10-27 Pedro Alves <palves@redhat.com>
89
90 * infrun.c (handle_signal_stop): Also skip handlers when a random
91 signal arrives while handling a "stepi" or a "nexti". Set the
92 thread's 'step_after_step_resume_breakpoint' flag.
93
71e396f9
LM
942014-10-27 Luis Machado <lgustavo@codesourcery.com>
95
96 * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
97 (arm_record_ld_st_imm_offset): Reimplement to cover all
98 load/store cases for ARM opcode 010.
99 (arm_record_ld_st_multiple): Reimplement to cover all
100 load/store cases for ARM opcode 100.
101
3aee438b
DE
1022014-10-26 Doug Evans <xdje42@gmail.com>
103
104 * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
105
f88cb4b6
DE
1062014-10-26 Doug Evans <xdje42@gmail.com>
107
108 * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
109 parameter "kind" to "block_index".
110 * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
111 "block_index".
112 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
113
a023a30f
DE
1142014-10-26 Doug Evans <xdje42@gmail.com>
115
116 * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
117
4c35218e
DE
1182014-10-26 Doug Evans <xdje42@gmail.com>
119
120 * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
121 obstack_alloc.
122
f08e8df3
DE
1232014-10-26 Doug Evans <xdje42@gmail.com>
124
125 * parser-defs.h (block_found): Move decl from here ...
126 * symtab.h (block_found): ... to here.
127
cf901d3b
DE
1282014-10-26 Doug Evans <xdje42@gmail.com>
129
130 * symtab.h (struct field_of_this_result): Fix typo in comment.
131 (lookup_symbol_in_language): Move function comment here.
132 (lookup_symbol): Improve function comment.
133 (basic_lookup_symbol_nonlocal): Ditto.
134 (lookup_symbol_static, lookup_symbol_global): Ditto.
135 (lookup_symbol_aux_block): Ditto.
136 (lookup_language_this): Add function comment.
137 (lookup_static_symbol_aux): Explicitly mark as extern. Improve
138 function comment.
139 (lookup_block_symbol): Improve function comment.
140 (lookup_struct): Fix capitalization in function comment.
141 (lookup_transparent_type): Add function comment.
142 (lookup_global_symbol_from_objfile): Explicitly mark as extern.
143 Improve function comment.
144 (lookup_objfile_from_block): Add function comment.
145 * symtab.c (lookup_symbol_in_language): Update function comment.
146 (lookup_symbol, lookup_language_this): Ditto.
147 (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
148 (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
149 (basic_lookup_symbol_nonlocal): Ditto.
150 (lookup_symbol_static, lookup_symbol_global): Ditto.
151 (lookup_transparent_type, lookup_block_symbol): Ditto.
152
ff6c39cf
DE
1532014-10-25 Doug Evans <xdje42@gmail.com>
154
155 * symtab.c (types_info): Delete forward decl.
156 (functions_info, variables_info, sources_info): Ditto.
157 (_initialize_symtab): Rewrite forward decl to use
158 initialize_file_ftype.
159
ec201f0c
DE
1602014-10-25 Doug Evans <xdje42@gmail.com>
161
162 * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
163
ca040673
DE
1642014-10-25 Doug Evans <xdje42@gmail.com>
165
166 * dwarf2read.c (process_structure_scope): Remove second (nested) copy
167 of local var child_die.
168
6f259a23
DB
1692014-10-24 Don Breazeal <donb@codesourcery.com>
170
171 * infrun.c (follow_fork_inferior): Update fork message printing
172 to use target_terminal_ours_for_output instead of
173 target_terminal_ours, to use _() for all format strings, to print
174 "vfork" instead of "fork" for vforks, and to add a detach message.
175 (handle_vfork_child_exec_or_exit): Update message printing to use
176 target_terminal_ours_for_output instead of target_terminal_ours, to
177 use _() for all format strings, and to fix some formatting.
178
09dd9a69
PA
1792014-10-24 Pedro Alves <palves@redhat.com>
180
181 * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
182 * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
183 * config/vax/vax.mh: Delete.
184 * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
185 obsolete configurations section.
186 * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
187 * vax-nat.c: Delete file.
188
5ab806de
PA
1892014-10-24 Pedro Alves <palves@redhat.com>
190
191 * NEWS (Removed targets): Add OS/arch column.
192
3433cfa5
SC
1932014-10-24 Siva Chandra Reddy <sivachandra@google.com>
194
195 * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
196 on the arg type of a constructor only if it is of reference type.
197
96ba4233
SL
1982014-10-23 Sandra Loosemore <sandra@codesourcery.com>
199
200 * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
201 accessors and constants from nios2 opcodes update.
202 (nios2_get_next_pc): Likewise.
203
28153fd3
DE
2042014-10-19 Doug Evans <xdje42@gmail.com>
205
206 * gdbthread.h (set_running): Fix comment.
207 (set_executing, finish_thread_state): Fix comment.
208
fc9b8e47
DE
2092014-10-18 Doug Evans <xdje42@gmail.com>
210
211 * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
212
4ffbba72
DE
2132014-10-17 Doug Evans <dje@google.com>
214
215 * NEWS: Mention new event gdb.clear_objfiles.
216 * python/py-event.h (emit_clear_objfiles_event): Clear
217 * python/py-events.h (events_object): New member clear_objfiles.
218 * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
219 event.
220 * python/py-inferior.c (python_new_objfile): If objfile is NULL,
221 emit clear_objfiles event.
222 * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
223 function.
224 (emit_clear_objfiles_event): New function.
225 (clear_objfiles): New event.
226 * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
227 Declare.
228 * python/python.c (_initialize_python): Call
229 gdbpy_initialize_clear_objfiles_event.
230
d096d8c1
DE
2312014-10-17 Doug Evans <dje@google.com>
232
233 * NEWS: Mention new gdb.Objfile.progspace attribute.
234 * python/py-objfile.c (objfpy_get_progspace): New function.
235 (objfile_getset): New entry for "progspace".
236
6c4486e6
PA
2372014-10-17 Pedro Alves <palves@redhat.com>
238
239 PR gdb/17471
240 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
241 returns a copy of the input.
242 (run_command_1, continue_command, step_1, jump_command)
243 (signal_command, until_command, advance_command, finish_command)
244 (attach_command): Adjust and install a cleanup to free the
245 stripped args.
246
0ff33695
PA
2472014-10-17 Pedro Alves <palves@redhat.com>
248
249 PR gdb/17300
250 * infcmd.c (continue_1): If continuing all threads in the
251 foreground, make sure the inferior's terminal settings are put in
252 effect.
253
6fdebc3d
PA
2542014-10-17 Pedro Alves <palves@redhat.com>
255
256 PR gdb/17472
257 * annotate.c (annotate_breakpoints_invalid): Use
258 target_terminal_our_for_output instead of target_terminal_ours.
259 Give back the terminal to the target.
260 (annotate_frames_invalid): Likewise.
261
5842f62a
PA
2622014-10-17 Pedro Alves <palves@redhat.com>
263
264 * target.c (enum terminal_state): New enum.
265 (terminal_state): New global.
266 (target_terminal_init): New function.
267 (target_terminal_inferior): Skip if inferior already owns the
268 terminal.
269 (target_terminal_ours, target_terminal_ours_for_output): New
270 functions.
271 * target.h (target_terminal_init): Convert to function prototype.
272 (target_terminal_ours_for_output): Convert to function prototype
273 and tweak comment.
274 (target_terminal_ours): Convert to function prototype and tweak
275 comment.
276 * windows-nat.c (do_initial_windows_stuff): Call
277 target_terminal_init instead of child_terminal_init_with_pgrp.
278
32a8097b
PA
2792014-10-17 Pedro Alves <palves@redhat.com>
280
281 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
282 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
283 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
284 solib-osf.c.
285 * NEWS: Mention that support for alpha*-*-osf* has been removed.
286 * ada-lang.h [__alpha__ && __osf__]
287 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
288 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
289 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
290 GDB_OSABI_OSF1.
291 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
292 files.
293 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
294 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
295 * configure: Regenerate.
296 * configure.ac: Remove references to osf.
297 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
298 section. Remove all other references to osf.
299 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
300 Remove all other references to osf.
301 * dec-thread.c: Delete file.
302 * defs.h (GDB_OSABI_OSF1): Delete.
303 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
304 defined.
305 * osabi.c (gdb_osabi_names): Delete "OSF/1".
306 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
307 Delete code.
308 (unconditionally_kill_inferior)
309 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
310 * solib-osf.c: Delete file.
311
80134cf5
PA
3122014-10-17 Pedro Alves <palves@redhat.com>
313
314 * remote.c (clear_threads_listing_context): Move higher up, out of
315 the HAVE_LIBEXPAT guard.
316
89c7137f
TG
3172014-10-16 Tristan Gingold <gingold@adacore.com>
318
319 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
320 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
321 on amd64.
322
44ee4a52
PA
3232014-10-15 Pedro Alves <palves@redhat.com>
324
325 * dec-thread.c (dec_thread_count_gdb_threads)
326 (dec_thread_add_gdb_thread): Delete.
327 (dec_thread_update_thread_list): Delete.
328 (dec_thread_find_new_threads): Rename to ...
329 (dec_thread_update_thread_list): ... this. Delete GDB-size
330 threads that are no longer found in dec_thread_list.
331 (resync_thread_list): Delete.
332 (dec_thread_wait): Call dec_thread_update_thread_list instead of
333 resync_thread_list.
334
ab970af1
PA
3352014-10-15 Pedro Alves <palves@redhat.com>
336
337 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
338 * remote.c (remote_update_thread_list): Skip calling prune_threads
339 if any thread listing method is supported, and instead walk over
340 the set of remote threads listed, deleting those that are not
341 found in GDB's thread list.
342
e8032dde
PA
3432014-10-15 Pedro Alves <palves@redhat.com>
344
345 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
346 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
347 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
348 (bsd_uthread_target): Adjust.
349 * corelow.c (core_open): Adjust.
350 * dec-thread.c (dec_thread_find_new_threads): Update comment.
351 (dec_thread_update_thread_list): New function.
352 (init_dec_thread_ops): Adjust.
353 * gdbthread.h (prune_threads): New declaration.
354 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
355 (thread_db_update_thread_list): ... this. Call prune_threads.
356 (init_thread_db_ops): Adjust.
357 * nto-procfs.c (procfs_find_new_threads): Rename to ...
358 (procfs_update_thread_list): ... this. Call prune_threads.
359 (procfs_attach, procfs_create_inferior, init_procfs_targets):
360 Adjust.
361 * obsd-nat.c (obsd_find_new_threads): Rename to ...
362 (obsd_update_thread_list): ... this. Call prune_threads.
363 (obsd_add_target): Adjust.
364 * procfs.c (procfs_target): Adjust.
365 (procfs_notice_thread): Update comment.
366 (procfs_find_new_threads): Rename to ...
367 (procfs_update_thread_list): ... this. Call prune_threads.
368 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
369 comment.
370 (ravenscar_wait): Adjust.
371 (ravenscar_find_new_threads): Rename to ...
372 (ravenscar_update_thread_list): ... this. Call prune_threads.
373 (init_ravenscar_thread_ops): Adjust.
374 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
375 (record_btrace_update_thread_list): ... this. Adjust comment.
376 (init_record_btrace_ops): Adjust.
377 * remote.c (remote_threads_info): Rename to ...
378 (remote_update_thread_list): ... this. Call prune_threads.
379 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
380 Adjust.
381 * sol-thread.c (check_for_thread_db): Adjust.
382 (sol_find_new_threads_callback): Rename to ...
383 (sol_update_thread_list_callback): ... this.
384 (sol_find_new_threads): Rename to ...
385 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
386 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
387 * target-delegates.c: Regenerate.
388 * target.c (target_find_new_threads): Rename to ...
389 (target_update_thread_list): ... this.
390 * target.h (struct target_ops): Rename to_find_new_threads field
391 to to_update_thread_list.
392 (target_find_new_threads): Rename to ...
393 (target_update_thread_list): ... this.
394 * thread.c (prune_threads): Make extern.
395 (update_thread_list): Adjust.
396
6dc54d91
PA
3972014-10-15 Pedro Alves <palves@redhat.com>
398
399 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
400 Add describing comment. Return -1 if the qL packet is not
401 supported.
402 (struct thread_item, thread_item_t): Move higher up in
403 the file. Add comments.
404 (struct threads_parsing_context): Move higher up in
405 the file, add comments, and remote to ...
406 (struct threads_listing_context): ... this.
407 (remote_newthread_step): Don't add the thread to GDB's thread
408 database here. Instead push it to the thread_listing_context
409 list.
410 (remote_find_new_threads): Rename to ...
411 (remote_get_threads_with_ql): ... this. Add target_ops and
412 targets_listing_context parameters. Pass down context.
413 (start_thread): Adjust.
414 (clear_threads_parsing_context): Rename to ...
415 (clear_threads_listing_context): ... this.
416 (remote_get_threads_with_qxfer): New, with parts salvaged from old
417 remote_threads_info.
418 (remote_get_threads_with_qthreadinfo): Ditto.
419 (remote_threads_info): Reimplement.
420
36728e82
PA
4212014-10-15 Pedro Alves <palves@redhat.com>
422
423 * infrun.c (resume): Don't force displaced-stepping for all
424 single-steps on software single-stepping archs.
425
34b7e8a6
PA
4262014-10-15 Pedro Alves <palves@redhat.com>
427
428 * breakpoint.c (single_step_breakpoints): Delete global.
429 (insert_single_step_breakpoint): Adjust to store the breakpoint
430 pointer in the current thread.
431 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
432 (cancel_single_step_breakpoints): Delete functions.
433 (breakpoint_has_location_inserted_here): Make extern.
434 (single_step_breakpoint_inserted_here_p): Adjust to walk the
435 breakpoint list.
436 * breakpoint.h (breakpoint_has_location_inserted_here): New
437 declaration.
438 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
439 (cancel_single_step_breakpoints): Remove declarations.
440 * gdbthread.h (struct thread_control_state)
441 <single_step_breakpoints>: New field.
442 (delete_single_step_breakpoints)
443 (thread_has_single_step_breakpoints_set)
444 (thread_has_single_step_breakpoint_here): New declarations.
445 * infrun.c (follow_exec): Also clear the single-step breakpoints.
446 (singlestep_breakpoints_inserted_p, singlestep_ptid)
447 (singlestep_pc): Delete globals.
448 (infrun_thread_ptid_changed): Remove references to removed
449 globals.
450 (resume_cleanups): Delete the current thread's single-step
451 breakpoints.
452 (maybe_software_singlestep): Remove references to removed globals.
453 (resume): Adjust to use thread_has_single_step_breakpoints_set and
454 delete_single_step_breakpoints.
455 (init_wait_for_inferior): Remove references to removed globals.
456 (delete_thread_infrun_breakpoints): Delete the thread's
457 single-step breakpoints too.
458 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
459 single-step breakpoints here.
460 (delete_stopped_threads_single_step_breakpoints): New function.
461 (adjust_pc_after_break): Adjust to use
462 thread_has_single_step_breakpoints_set.
463 (handle_inferior_event): Remove references to removed globals.
464 Use delete_stopped_threads_single_step_breakpoints.
465 (handle_signal_stop): Adjust to per-thread single-step
466 breakpoints. Swap test order to do cheaper tests first.
467 (switch_back_to_stepped_thread): Extend debug output. Remove
468 references to removed globals.
469 * record-full.c (record_full_wait_1): Adjust to per-thread
470 single-step breakpoints.
471 * thread.c (delete_single_step_breakpoints)
472 (thread_has_single_step_breakpoints_set)
473 (thread_has_single_step_breakpoint_here): New functions.
474 (clear_thread_inferior_resources): Also delete the thread's
475 single-step breakpoints.
476
5b834a0a
PA
4772014-10-15 Pedro Alves <palves@redhat.com>
478
479 * thread.c (delete_thread_breakpoint): New function.
480 (delete_step_resume_breakpoint)
481 (delete_exception_resume_breakpoint): Use it.
482 (delete_at_next_stop): New function.
483 (clear_thread_inferior_resources): Use delete_at_next_stop.
484
a1fd2fa5
PA
4852014-10-15 Pedro Alves <palves@redhat.com>
486
487 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
488 (breakpoint_inserted_here_p): ... here. Remove special case for
489 software single-step breakpoints.
490 (find_non_raw_software_breakpoint_inserted_here): Inline ...
491 (software_breakpoint_inserted_here_p): ... here. Remove special
492 case for software single-step breakpoints.
493 (bp_target_info_copy_insertion_state)
494 (deprecated_insert_raw_breakpoint)
495 (deprecated_remove_raw_breakpoint): Delete functions.
496 * breakpoint.h (deprecated_insert_raw_breakpoint)
497 (deprecated_remove_raw_breakpoint): Remove declarations.
498
7c16b83e
PA
4992014-10-15 Pedro Alves <palves@redhat.com>
500
501 PR breakpoints/9649
502 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
503 Delete array globals.
504 (single_step_breakpoints): New global.
505 (breakpoint_xfer_memory): Remove special handling for single-step
506 breakpoints.
507 (update_breakpoints_after_exec): Delete bp_single_step
508 breakpoints.
509 (detach_breakpoints): Remove special handling for single-step
510 breakpoints.
511 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
512 (bpstat_stop_status): Add comment.
513 (bpstat_what, bptype_string, print_one_breakpoint_location)
514 (adjust_breakpoint_address, init_bp_location): Handle
515 bp_single_step.
516 (new_single_step_breakpoint): New function.
517 (set_momentary_breakpoint, bkpt_remove_location): Remove special
518 handling for single-step breakpoints.
519 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
520 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
521 Rewrite.
522 (detach_single_step_breakpoints, find_single_step_breakpoint):
523 Delete functions.
524 (breakpoint_has_location_inserted_here): New function.
525 (single_step_breakpoint_inserted_here_p): Rewrite.
526 * breakpoint.h: Remove FIXME.
527 (enum bptype) <bp_single_step>: New enum value.
528 (insert_single_step_breakpoint): Update comment.
529 * infrun.c (resume_cleanups)
530 (delete_step_thread_step_resume_breakpoint): Remove single-step
531 breakpoints.
532 (fetch_inferior_event): Install a cleanup that removes infrun
533 breakpoints.
534 (switch_back_to_stepped_thread) <expect thread advanced also>:
535 Clear step-over info.
536
0cbcdb96
PA
5372014-10-15 Pedro Alves <palves@redhat.com>
538
539 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
540 (delete_thread_infrun_breakpoints): New function, with parts
541 salvaged from delete_step_resume_breakpoint_callback.
542 (delete_step_thread_step_resume_breakpoint): Delete.
543 (for_each_just_stopped_thread_callback_func): New typedef.
544 (for_each_just_stopped_thread): New function.
545 (delete_just_stopped_threads_infrun_breakpoints): New function.
546 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
547 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
548 ... this. Adjust.
549 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
550
963f9c80
PA
5512014-10-15 Pedro Alves <palves@redhat.com>
552
553 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
554 trying to step past a non-steppable watchpoint.
555 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
556 field.
557 * infrun.c (struct step_over_info): Add new field
558 'nonsteppable_watchpoint_p' and adjust comments.
559 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
560 Adjust.
561 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
562 (stepping_past_nonsteppable_watchpoint): New function.
563 (step_over_info_valid_p): Also return true if stepping past a
564 nonsteppable watchpoint.
565 (proceed): Adjust call to set_step_over_info. Remove reference to
566 init_infwait_state.
567 (init_wait_for_inferior): Remove reference to init_infwait_state.
568 (waiton_ptid): Delete global.
569 (struct execution_control_state)
570 <stepped_after_stopped_by_watchpoint>: Delete field.
571 (wait_for_inferior, fetch_inferior_event): Always pass
572 minus_one_ptid to target_wait.
573 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
574 field.
575 (init_infwait_state): Delete function.
576 (handle_inferior_event): Remove infwait_state handling.
577 (handle_signal_stop) <watchpoints handling>: Adjust after
578 stepped_after_stopped_by_watchpoint removal. Don't remove
579 breakpoints here nor set infwait_state. Set the thread's
580 stepping_over_watchpoint flag, and call keep_going instead.
581 (keep_going): Handle stepping_over_watchpoint. Adjust
582 set_step_over_info calls.
583 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
584 function.
585
6cc83d2a
PA
5862014-10-15 Pedro Alves <palves@redhat.com>
587
588 * infrun.c (step_over_info_valid_p): New function.
589 (resume): Use step_over_info_valid_p instead of checking the
590 threads's trap_expected flag.
591
6979730b
DE
5922014-10-15 Doug Evans <dje@google.com>
593 Walfred Tedeschi <walfred.tedeschi@intel.com>
594
595 PR python/17364
596 * python/lib/gdb/__init__.py (packages): Add "printer".
597 * python/lib/gdb/command/bound_registers.py: Moved to ...
598 * python/lib/gdb/printer/bound_registers.py: ... here.
599 Add printer to global set of builtin printers. Rename printer from
600 "bound" to "mpx_bound128".
601 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
602 registered as global "builtin" printer.
603 (add_builtin_pretty_printer): New function.
604 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
605 gdb/printer/__init__.py.
606
35a49624
IB
6072014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
608
609 * Makefile.in (SFILES): Remove d-support.c.
610 (COMMON_OBS): Remove d-support.o.
611 * d-lang.h (d_parse_symbol): Remove declaration.
612 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
613 * d-support.c: Remove file.
614
8fa0c4f8
AA
6152014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
616
617 * gdb/infrun.c (process_event_stop_test): Apply
618 gdbarch_addr_bits_remove to longjmp resume address.
619
3666da81
PA
6202014-10-15 Pedro Alves <palves@redhat.com>
621
622 * regformats/microblaze.dat: Delete file.
623
449aa9df
AKA
6242014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
625
626 * features/Makefile (microblaze-expedite): Replace pc with rpc.
627 * regformats/microblaze-with-stack-protect.dat: Regenerate.
628
ebb8ece2
SC
6292014-10-15 Siva Chandra Reddy <sivachandra@google.com>
630
631 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
632 as non-trivial.
633
82c48ac7
SC
6342014-10-15 Siva Chandra Reddy <sivachandra@google.com>
635
636 PR c++/13403
637 PR c++/15154
638 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
639 with qualified args.
640
c40cc657
JB
6412014-10-14 Joel Brobecker <brobecker@adacore.com>
642
643 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
644 of the case where the second operand is a pointer.
645 <BINOP_SUB>: Likewise.
646
0ea5cda8
SDJ
6472014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
648
649 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
650 only if it is not NULL.
651 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
652 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
653 (struct probe_ops) <clear_semaphore>: Likewise.
654 * tracepoint.c (start_tracing): Call set_semaphore only if it is
655 not NULL.
656 (stop_tracing): Likewise, for clear_semaphore.
657
f7088df3
SDJ
6582014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
659
660 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
661 using language_c, instead of current_language.
662
4e1bbde0
DE
6632014-10-13 Doug Evans <dje@google.com>
664
6ff5a0f6 665 * python/py-objfile.c (objfpy_initialize): New function.
4e1bbde0 666 (objfpy_new, objfile_to_objfile_object): Call it.
6ff5a0f6 667 * python/py-progspace.c (pspy_initialize): New function.
4e1bbde0
DE
668 (pspy_new, pspace_to_pspace_object): Call it.
669
c780cc2f
JK
6702014-10-13 Miroslav Franc <mfranc@redhat.com>
671 Jan Kratochvil <jan.kratochvil@redhat.com>
672
673 Fix "save breakpoints" for "catch" command.
674 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
675 newline.
676
99894e11
JK
6772014-10-12 Miroslav Franc <mfranc@redhat.com>
678
679 Fix "save breakpoints" for "disable $bpnum" command.
680 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
681
3831839c
PA
6822014-10-10 Pedro Alves <palves@redhat.com>
683
684 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
685 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
686 (HFILES_NO_SRCDIR): Remove solib-irix.h.
687 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
688 and been removed.
689 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
690 * configure.ac: Remove references to IRIX.
691 * configure.host: Add *-*-irix* to the obsolete hosts section.
692 Remove all other references to irix.
693 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
694 Delete files.
695
cc3afae2
AKA
6962014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
697
698 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
699 isn't valid, release the tdesc arch data and return NULL.
700
cdfa0b0a
PA
7012014-10-10 Pedro Alves <palves@redhat.com>
702
703 * linux-tdep.c: Include observer.h.
704 (linux_inferior_data): New global.
705 (struct linux_info): New structure.
706 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
707 (get_linux_inferior_data): New functions.
708 (linux_vsyscall_range): Rename to ...
709 (linux_vsyscall_range_raw): ... this.
710 (linux_vsyscall_range): New function; handles caching.
711 (_initialize_linux_tdep): Register linux_inferior_data. Install
712 inferior_exit and inferior_appeared observers.
713
8b9a549d
PA
7142014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
715 Pedro Alves <palves@redhat.com>
716
717 PR symtab/14466
718 * solib-svr4.c (svr4_read_so_list): Rename to ...
719 (svr4_current_sos_1): ... this and change the function comment.
720 (svr4_current_sos): New function.
721
3437254d
PA
7222014-10-10 Pedro Alves <palves@redhat.com>
723
724 * arch-utils.c (default_vsyscall_range): New function.
725 * arch-utils.h (default_vsyscall_range): New declaration.
726 * gdbarch.sh (vsyscall_range): New hook.
727 * gdbarch.h, gdbarch.c: Regenerate.
728 * linux-tdep.c (linux_vsyscall_range): New function.
729 (linux_init_abi): Install linux_vsyscall_range as
730 vsyscall_range gdbarch hook.
731 * memrange.c (address_in_mem_range): New function.
732 * memrange.h (address_in_mem_range): New declaration.
733 * symfile-mem.c (find_vdso_size): Delete function.
734 (add_vsyscall_page): Use gdbarch_vsyscall_range.
735
31cc0b80
PA
7362014-10-10 Pedro Alves <palves@redhat.com>
737
738 * infrun.c (normal_stop): Fix typo in comment.
739
3e3286a2
SDJ
7402014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
741
742 PR tdep/9390
743 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
744 typo when using logical AND to determine instruction type.
745
fcbdedf8
YQ
7462014-10-09 Yao Qi <yao@codesourcery.com>
747
748 * infrun.c (handle_signal_stop): Remove local variable
749 'printed'.
750
db984616
SS
7512014-10-08 Stan Shebs <stan@codesourcery.com>
752
753 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
754
3ba37e6c
GB
7552014-10-08 Gary Benson <gbenson@redhat.com>
756
757 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
758
a442d071
GB
7592014-10-08 Gary Benson <gbenson@redhat.com>
760
761 * common/common-defs.h: Include common-exceptions.h.
762 * exceptions.h: Do not include common-exceptions.h.
763
6f1947e8
GB
7642014-10-08 Gary Benson <gbenson@redhat.com>
765
766 * common/common-defs.h: Include cleanups.h.
767 * common/common-exceptions.c: Do not include cleanups.h.
768 * utils.h: Likewise.
769
c765fdb9
GB
7702014-10-08 Gary Benson <gbenson@redhat.com>
771
772 * ada-lang.c: Do not include exceptions.h.
773 * ada-valprint.c: Likewise.
774 * amd64-tdep.c: Likewise.
775 * auto-load.c: Likewise.
776 * block.c: Likewise.
777 * break-catch-throw.c: Likewise.
778 * breakpoint.c: Likewise.
779 * btrace.c: Likewise.
780 * c-lang.c: Likewise.
781 * cli/cli-cmds.c: Likewise.
782 * cli/cli-interp.c: Likewise.
783 * cli/cli-script.c: Likewise.
784 * completer.c: Likewise.
785 * corefile.c: Likewise.
786 * corelow.c: Likewise.
787 * cp-abi.c: Likewise.
788 * cp-support.c: Likewise.
789 * cp-valprint.c: Likewise.
790 * darwin-nat.c: Likewise.
791 * dwarf2-frame-tailcall.c: Likewise.
792 * dwarf2-frame.c: Likewise.
793 * dwarf2loc.c: Likewise.
794 * dwarf2read.c: Likewise.
795 * eval.c: Likewise.
796 * event-loop.c: Likewise.
797 * event-top.c: Likewise.
798 * f-valprint.c: Likewise.
799 * frame-unwind.c: Likewise.
800 * frame.c: Likewise.
801 * gdbtypes.c: Likewise.
802 * gnu-v2-abi.c: Likewise.
803 * gnu-v3-abi.c: Likewise.
804 * guile/scm-auto-load.c: Likewise.
805 * guile/scm-breakpoint.c: Likewise.
806 * guile/scm-cmd.c: Likewise.
807 * guile/scm-frame.c: Likewise.
808 * guile/scm-lazy-string.c: Likewise.
809 * guile/scm-param.c: Likewise.
810 * guile/scm-symbol.c: Likewise.
811 * guile/scm-type.c: Likewise.
812 * hppa-hpux-tdep.c: Likewise.
813 * i386-tdep.c: Likewise.
814 * inf-loop.c: Likewise.
815 * infcall.c: Likewise.
816 * infcmd.c: Likewise.
817 * infrun.c: Likewise.
818 * interps.c: Likewise.
819 * interps.h: Likewise.
820 * jit.c: Likewise.
821 * linespec.c: Likewise.
822 * linux-nat.c: Likewise.
823 * linux-thread-db.c: Likewise.
824 * m32r-rom.c: Likewise.
825 * main.c: Likewise.
826 * memory-map.c: Likewise.
827 * mi/mi-cmd-break.c: Likewise.
828 * mi/mi-cmd-stack.c: Likewise.
829 * mi/mi-interp.c: Likewise.
830 * mi/mi-main.c: Likewise.
831 * monitor.c: Likewise.
832 * nto-procfs.c: Likewise.
833 * objc-lang.c: Likewise.
834 * p-valprint.c: Likewise.
835 * parse.c: Likewise.
836 * ppc-linux-tdep.c: Likewise.
837 * printcmd.c: Likewise.
838 * probe.c: Likewise.
839 * python/py-auto-load.c: Likewise.
840 * python/py-breakpoint.c: Likewise.
841 * python/py-cmd.c: Likewise.
842 * python/py-finishbreakpoint.c: Likewise.
843 * python/py-frame.c: Likewise.
844 * python/py-framefilter.c: Likewise.
845 * python/py-function.c: Likewise.
846 * python/py-gdb-readline.c: Likewise.
847 * python/py-inferior.c: Likewise.
848 * python/py-infthread.c: Likewise.
849 * python/py-lazy-string.c: Likewise.
850 * python/py-linetable.c: Likewise.
851 * python/py-param.c: Likewise.
852 * python/py-prettyprint.c: Likewise.
853 * python/py-symbol.c: Likewise.
854 * python/py-type.c: Likewise.
855 * python/py-value.c: Likewise.
856 * python/python-internal.h: Likewise.
857 * python/python.c: Likewise.
858 * record-btrace.c: Likewise.
859 * record-full.c: Likewise.
860 * regcache.c: Likewise.
861 * remote-fileio.c: Likewise.
862 * remote-mips.c: Likewise.
863 * remote.c: Likewise.
864 * rs6000-aix-tdep.c: Likewise.
865 * rs6000-nat.c: Likewise.
866 * skip.c: Likewise.
867 * solib-darwin.c: Likewise.
868 * solib-dsbt.c: Likewise.
869 * solib-frv.c: Likewise.
870 * solib-ia64-hpux.c: Likewise.
871 * solib-spu.c: Likewise.
872 * solib-svr4.c: Likewise.
873 * solib.c: Likewise.
874 * spu-tdep.c: Likewise.
875 * stack.c: Likewise.
876 * stap-probe.c: Likewise.
877 * symfile-mem.c: Likewise.
878 * symmisc.c: Likewise.
879 * target.c: Likewise.
880 * thread.c: Likewise.
881 * top.c: Likewise.
882 * tracepoint.c: Likewise.
883 * tui/tui-interp.c: Likewise.
884 * typeprint.c: Likewise.
885 * utils.c: Likewise.
886 * valarith.c: Likewise.
887 * valops.c: Likewise.
888 * valprint.c: Likewise.
889 * value.c: Likewise.
890 * varobj.c: Likewise.
891 * windows-nat.c: Likewise.
892 * xml-support.c: Likewise.
893
484933d1
MR
8942014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
895
896 * mips-tdep.c (add_offset_16): Rewrite to implement what the
897 name implies.
898 (extended_mips16_next_pc): Update accordingly.
899
ab50adb6
MR
9002014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
901
902 * mips-tdep.c (mips16_instruction_is_compact_branch): New
903 function.
904 (micromips_instruction_is_compact_branch): Likewise.
905 (mips16_scan_prologue): Terminate scanning upon seeing a branch
906 or a compact jump, reaching a jump delay slot, or seeing a
907 second non-prologue instruction.
908 (micromips_scan_prologue): Also terminate scanning upon seeing a
909 compact branch or jump, or reaching a branch or jump delay slot.
910 (mips32_scan_prologue): Terminate scanning upon reaching a branch
911 or jump delay slot, or seeing a second non-prologue instruction.
912 (mips32_instruction_has_delay_slot): Retain instruction
913 examination code only, update arguments accordingly and move
914 instruction fetch pieces to...
915 (mips32_insn_at_pc_has_delay_slot): ... this new function.
916 (micromips_instruction_has_delay_slot): Likewise and to...
917 (micromips_insn_at_pc_has_delay_slot): ... this new function.
918 (mips16_instruction_has_delay_slot): Likewise and to...
919 (mips16_insn_at_pc_has_delay_slot): ... this new function.
920 (mips_single_step_through_delay): Update accordingly.
921 (mips_adjust_breakpoint_address): Likewise.
922
ae790652
MR
9232014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
924
925 * mips-tdep.c (micromips_instruction_has_delay_slot): When
926 !mustbe32 also return 1 for 32-bit instructions.
927 (mips16_instruction_has_delay_slot): Likewise. Add an
928 explanatory comment.
929
9b807e7b
MR
9302014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
931
932 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
933 symbols special.
934
0d5ed153
MR
9352014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
936
937 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
938 update comments.
939 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
940 for the breakpoint's address. Don't preinitialize `placed_size'.
941 (insert_bp_location): Set `reqstd_address' rather than
942 `placed_address'.
943 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
944 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
945 address.
946 (bkpt_remove_location): Likewise.
947 (deprecated_insert_raw_breakpoint): Likewise.
948 (deprecated_remove_raw_breakpoint): Likewise.
949 (find_single_step_breakpoint): Likewise.
950 * mem-break.c (default_memory_insert_breakpoint): Use
951 `reqstd_address' for the breakpoint's address. Don't set
952 `placed_address' or `placed_size' if breakpoint contents couldn't
953 have been determined.
954 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
955 the breakpoint's address.
956 (remote_insert_hw_breakpoint): Likewise. Don't set
957 `placed_address' or `placed_size' if breakpoint couldn't have been
958 set.
959 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
960 `reqstd_address' for the breakpoint's address.
961 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
962 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
963 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
964 * microblaze-linux-tdep.c
965 (microblaze_linux_memory_remove_breakpoint): Likewise.
966 * monitor.c (monitor_insert_breakpoint): Likewise.
967 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
968 (procfs_insert_hw_breakpoint): Likewise.
969 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
970 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
971 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
972 * remote-mips.c (mips_insert_breakpoint): Likewise.
973 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
974
3e871532
LM
9752014-10-03 Luis Machado <lgustavo@codesourcery.com>
976
977 * valops.c (value_assign): Check for bit field assignments
978 before calling architecture-specific register value
979 conversion functions.
980
ec48dc8b
PM
9812014-10-03 Pierre Muller <muller@sourceware.org>
982
983 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
984
b57bacec
PA
9852014-10-02 Pedro Alves <palves@redhat.com>
986
987 * breakpoint.c (breakpoints_should_be_inserted_now): Use
988 threads_are_executing.
989 * breakpoint.h (breakpoints_should_be_inserted_now): Add
990 describing comment.
991 * gdbthread.h (threads_are_executing): Declare.
992 (handle_signal_stop) <random signals>: Don't print about the
993 signal here if stopping.
994 (end_stepping_range): Don't notify observers here.
995 (normal_stop): Update the thread list. If stopped by a random
996 signal or a stepping range ended, notify observers.
997 * thread.c (threads_executing): New global.
998 (init_thread_list): Clear 'threads_executing'.
999 (set_executing): Set or clear 'threads_executing'.
1000 (threads_are_executing): New function.
1001 (update_threads_executing): New function.
1002 (update_thread_list): Use it.
1003
13fd3ff3
PA
10042014-10-02 Pedro Alves <palves@redhat.com>
1005
1006 PR breakpoints/17431
1007 * breakpoint.c (update_breakpoints_after_exec): Don't create
1008 overlay, longjmp, std terminate nor exception breakpoints here.
1009
32990ada
PA
10102014-10-02 Pedro Alves <palves@redhat.com>
1011
1012 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
1013 Adjust comments.
1014 * inferior.c (find_inferior_for_program_space): Give preference to
1015 the current inferior.
1016 * inferior.h (find_inferior_for_program_space): Update comment.
1017 * progspace.c (switch_to_program_space_and_thread): Prefer the
1018 current inferior if it's bound to the program space requested. If
1019 the inferior found doesn't have a PID yet, don't bother looking up
1020 a thread.
1021 * progspace.h (switch_to_program_space_and_thread): Adjust
1022 comment.
1023 * thread.c (any_thread_of_process, any_live_thread_of_process):
1024 Give preference to the current thread.
1025
0fec99e8
PA
10262014-10-01 Pedro Alves <palves@redhat.com>
1027
1028 * breakpoint.c (insert_bp_location): Error out if inserting a
1029 software breakpoint at a read-only address.
1030 * target.c (memory_xfer_check_region): New function, factored out
1031 from ...
1032 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
1033 ULONGEST.
1034 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
1035 against the memory region attributes.
1036
2ddf4301
SM
10372014-10-01 Simon Marchi <simon.marchi@ericsson.com>
1038
1039 * NEWS: Announce new exit-code field in -list-thread-groups
1040 output.
1041 * inferior.c (exit_inferior_1): Don't clear exit code.
1042 (inferior_appeared): Clear exit code.
1043 * mi/mi-main.c (print_one_inferior): Add printing of the exit
1044 code.
1045
5fdeec1d
PA
10462014-10-01 Pedro Alves <palves@redhat.com>
1047
1048 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
1049 GENERATED" along with emacs/vi read-only markers.
1050 * regformats/aarch64.dat: Regenerate.
1051 * regformats/arm-with-iwmmxt.dat: Regenerate.
1052 * regformats/arm-with-neon.dat: Regenerate.
1053 * regformats/arm-with-vfpv2.dat: Regenerate.
1054 * regformats/arm-with-vfpv3.dat: Regenerate.
1055 * regformats/i386/amd64-avx-linux.dat: Regenerate.
1056 * regformats/i386/amd64-avx.dat: Regenerate.
1057 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
1058 * regformats/i386/amd64-avx512.dat: Regenerate.
1059 * regformats/i386/amd64-linux.dat: Regenerate.
1060 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
1061 * regformats/i386/amd64-mpx.dat: Regenerate.
1062 * regformats/i386/amd64.dat: Regenerate.
1063 * regformats/i386/i386-avx-linux.dat: Regenerate.
1064 * regformats/i386/i386-avx.dat: Regenerate.
1065 * regformats/i386/i386-avx512-linux.dat: Regenerate.
1066 * regformats/i386/i386-avx512.dat: Regenerate.
1067 * regformats/i386/i386-linux.dat: Regenerate.
1068 * regformats/i386/i386-mmx-linux.dat: Regenerate.
1069 * regformats/i386/i386-mmx.dat: Regenerate.
1070 * regformats/i386/i386-mpx-linux.dat: Regenerate.
1071 * regformats/i386/i386-mpx.dat: Regenerate.
1072 * regformats/i386/i386.dat: Regenerate.
1073 * regformats/i386/x32-avx-linux.dat: Regenerate.
1074 * regformats/i386/x32-avx.dat: Regenerate.
1075 * regformats/i386/x32-avx512-linux.dat: Regenerate.
1076 * regformats/i386/x32-avx512.dat: Regenerate.
1077 * regformats/i386/x32-linux.dat: Regenerate.
1078 * regformats/i386/x32.dat: Regenerate.
1079 * regformats/microblaze-with-stack-protect.dat: Regenerate.
1080 * regformats/mips-dsp-linux.dat: Regenerate.
1081 * regformats/mips-linux.dat: Regenerate.
1082 * regformats/mips64-dsp-linux.dat: Regenerate.
1083 * regformats/mips64-linux.dat: Regenerate.
1084 * regformats/nios2-linux.dat: Regenerate.
1085 * regformats/rs6000/powerpc-32.dat: Regenerate.
1086 * regformats/rs6000/powerpc-32l.dat: Regenerate.
1087 * regformats/rs6000/powerpc-64l.dat: Regenerate.
1088 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
1089 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
1090 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
1091 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
1092 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
1093 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
1094 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
1095 * regformats/s390-linux32.dat: Regenerate.
1096 * regformats/s390-linux32v1.dat: Regenerate.
1097 * regformats/s390-linux32v2.dat: Regenerate.
1098 * regformats/s390-linux64.dat: Regenerate.
1099 * regformats/s390-linux64v1.dat: Regenerate.
1100 * regformats/s390-linux64v2.dat: Regenerate.
1101 * regformats/s390-te-linux64.dat: Regenerate.
1102 * regformats/s390x-linux64.dat: Regenerate.
1103 * regformats/s390x-linux64v1.dat: Regenerate.
1104 * regformats/s390x-linux64v2.dat: Regenerate.
1105 * regformats/s390x-te-linux64.dat: Regenerate.
1106 * regformats/tic6x-c62x-linux.dat: Regenerate.
1107 * regformats/tic6x-c62x.dat: Regenerate.
1108 * regformats/tic6x-c64x-linux.dat: Regenerate.
1109 * regformats/tic6x-c64x.dat: Regenerate.
1110 * regformats/tic6x-c64xp-linux.dat: Regenerate.
1111 * regformats/tic6x-c64xp.dat: Regenerate.
1112
db74e4ba
PA
11132014-10-01 Pedro Alves <palves@redhat.com>
1114
1115 * features/Makefile: Update comments.
1116 (XMLTOC): List all xml files we build C files from.
1117 (clean-cfiles): New rule.
1118
d63f2f84
PA
11192014-10-01 Pedro Alves <palves@redhat.com>
1120
1121 * features/i386/amd64-avx512-linux.c: Regenerate.
1122 * features/i386/amd64-avx512.c: Regenerate.
1123 * features/i386/x32-avx512-linux.c: Regenerate.
1124 * features/i386/x32-avx512.c: Regenerate.
1125
20ad026d
PA
11262014-10-01 Pedro Alves <palves@redhat.com>
1127
1128 * features/Makefile (WHICH): Remove arm-with-m,
1129 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
1130
acc9fe45
PA
11312014-10-01 Pedro Alves <palves@redhat.com>
1132
1133 * features/Makefile (clean): New rule.
1134
e001e535
PA
11352014-10-01 Pedro Alves <palves@redhat.com>
1136
1137 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
1138 (zmm14h): Add missing end quotes.
1139
bdc14417
PA
11402014-10-01 Pedro Alves <palves@redhat.com>
1141
1142 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
1143 * features/aarch64.c: Regenerate.
1144
d83ad864
DB
11452014-09-30 Don Breazeal <donb@codesourcery.com>
1146
1147 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
1148 code so as to work with follow_fork_inferior.
1149 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
1150 (inf_ttrace_create_inferior): Remove reference to
1151 inf_ttrace_vfork_ppid.
1152 (inf_ttrace_attach): Ditto.
1153 (inf_ttrace_detach): Ditto.
1154 (inf_ttrace_kill): Use current_inferior instead of
1155 inf_ttrace_vfork_ppid.
1156 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
1157 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
1158 inferior away from the parent.
1159 * infrun.c (follow_fork): Call follow_fork_inferior instead of
1160 target_follow_fork.
1161 (follow_fork_inferior): New function.
1162 (follow_inferior_reset_breakpoints): Make function static.
1163 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
1164 * linux-nat.c (linux_child_follow_fork): Move target-independent
1165 code to infrun.c:follow_fork_inferior.
1166
29082443
AA
11672014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1168
1169 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
1170 * gdbarch.c: Regenerate.
1171 * gdbarch.h: Likewise.
1172 * corelow.c (sniff_core_bfd): Drop presence check for deleted
1173 gdbarch method 'regset_from_core_section'.
1174 (get_core_register_section): Remove handling for the case that
1175 regset == NULL and regset_from_core_section is defined.
1176 (get_core_registers): Drop check for deleted method.
1177 * procfs.c (procfs_do_thread_registers): Adjust comment.
1178
f968fe80
AA
11792014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1180
1181 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
1182 (linux_nat_make_corefile_notes): Remove.
1183 (linux_target_install_ops): Do not set target method
1184 'make_corefile_notes'.
1185 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
1186 Remove field.
1187 (linux_corefile_thread_callback): Instead of args->collect, call
1188 linux_collect_thread_registers.
1189 (linux_make_corefile_notes): Remove 'collect' parameter. Return
1190 NULL unless there is a regset iterator.
1191 (linux_make_corefile_notes_1): Remove.
1192 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
1193 by linux_make_corefile_notes.
1194 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
1195
174ad59a
AA
11962014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1197
1198 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
1199 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
1200 Remove.
1201 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
1202
97094034
AA
12032014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1204
1205 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
1206 (xtensa_iterate_over_regset_sections): New.
1207 (xtensa_gdbarch_init): Adjust gdbarch initialization.
1208
f73d3ce7
AA
12092014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1210
1211 * vax-tdep.c (vax_regset_from_core_section): Remove.
1212 (vax_iterate_over_regset_sections): New.
1213 (vax_gdbarch_init): Adjust gdbarch initialization.
1214
cb24567a
AA
12152014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1216
1217 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
1218 (tilegx_regset_from_core_section): Remove.
1219 (tilegx_iterate_over_regset_sections): New.
1220 (tilegx_linux_init_abi): Adjust gdbarch initialization.
1221
e5139de8
AA
12222014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1223
1224 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
1225 (sparc_iterate_over_regset_sections): New.
1226 (sparc32_gdbarch_init): Adjust gdbarch initialization.
1227 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
1228 targets.
1229 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
1230 (sparc64fbsd_init_abi): Call fbsd_init_abi.
1231 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
1232 target method 'make_corefile_notes'.
1233
c6d41a6f
AA
12342014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1235
1236 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
1237 'sizeof_gregset' and 'sizeof_fpregset'.
1238 * sh-tdep.c (sh_regset_from_core_section): Remove.
1239 (sh_iterate_over_regset_sections): New.
1240 (sh_gdbarch_init): Adjust gdbarch initialization.
1241 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
1242 sizeof_fpregset.
1243 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
1244 'sizeof_gregset'.
1245
9845a0b5
AA
12462014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1247
1248 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
1249 (score7_linux_iterate_over_regset_sections): New.
1250 (score_gdbarch_init): Adjust gdbarch initialization.
1251
23ea9aeb
AA
12522014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1253
1254 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
1255 FreeBSD targets.
1256 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
1257 method 'make_corefile_notes'.
1258 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
1259 (ppcfbsd_regset_from_core_section): Remove.
1260 (ppcfbsd_iterate_over_regset_sections): New.
1261 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
1262 initialization.
1263 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
1264 (ppcnbsd_iterate_over_regset_sections): New.
1265 (ppcnbsd_init_abi): Adjust.
1266 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
1267 (ppcobsd_iterate_over_regset_sections): New.
1268 (ppcobsd_init_abi): Adjust.
1269 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
1270 (rs6000_aix_iterate_over_regset_sections): New.
1271 (rs6000_aix_init_osabi): Adjust.
1272
c5b8d704
AA
12732014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1274
1275 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
1276 (nios2_regset_from_core_section): Remove.
1277 (nios2_iterate_over_regset_sections): New.
1278 (nios2_linux_init_abi): Adjust gdbarch initialization.
1279
3636e608
AA
12802014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1281
1282 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
1283 (am33_iterate_over_regset_sections): New.
1284 (am33_linux_init_osabi): Adjust gdbarch initialization.
1285
d4036235
AA
12862014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1287
1288 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
1289 (mips_linux_iterate_over_regset_sections): New.
1290 (mips_linux_init_abi): Adjust gdbarch initialization.
1291 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
1292 (mips64obsd_iterate_over_regset_sections): New.
1293 (mips64obsd_init_abi): Adjust.
1294 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
1295 (mipsnbsd_iterate_over_regset_sections): New.
1296 (mipsnbsd_init_abi): Adjust.
1297
b61ddd6e
AA
12982014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1299
1300 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
1301 (m88k_iterate_over_regset_sections): New.
1302 (m88k_gdbarch_init): Adjust gdbarch initialization.
1303
55a2906a
AA
13042014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1305
1306 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
1307 (ia64_linux_iterate_over_regset_sections): New.
1308 (ia64_linux_init_abi): Adjust gdbarch initialization.
1309
022c98ab
AA
13102014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1311
1312 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
1313 (m68kbsd_iterate_over_regset_sections): New.
1314 (m68kbsd_init_abi): Adjust gdbarch initialization.
1315 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
1316 (m68k_linux_iterate_over_regset_sections): New.
1317 (m68k_linux_init_abi): Adjust gdbarch initialization.
1318
5fac247f
AA
13192014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1320
1321 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
1322 (m32r_linux_regset_from_core_section): Remove.
1323 (m32r_linux_iterate_over_regset_sections): New.
1324 (m32r_linux_init_abi): Adjust gdbarch initialization.
1325
490496c3
AA
13262014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1327
1328 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
1329 (amd64obsd_iterate_over_regset_sections): New.
1330 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
1331 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
1332 Remove.
1333 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
1334 regset_from_core_section initialization.
1335 * i386-tdep.c (i386_regset_from_core_section): Remove.
1336 (i386_iterate_over_regset_sections): New.
1337 (i386_gdbarch_init): Adjust gdbarch initialization.
1338 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
1339 (i386_iterate_over_regset_sections): New prototype.
1340 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
1341 Remove.
1342 (i386obsd_aout_iterate_over_regset_sections): New.
1343 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
1344 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
1345 targets.
1346 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
1347 (amd64fbsd_init_abi): Call fbsd_init_abi.
1348 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
1349 (i386fbsd4_init_abi): Call fbsd_init_abi.
1350 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
1351 target method 'make_corefile_notes'.
1352 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
1353
50c5eb53
AA
13542014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1355
1356 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
1357 (hppa_hpux_iterate_over_regset_sections): New.
1358 (hppa_hpux_init_abi): Adjust gdbarch initialization.
1359 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
1360 (hppa_linux_iterate_over_regset_sections): New.
1361 (hppa_linux_init_abi): Adjust.
1362 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
1363 (hppanbsd_iterate_over_regset_sections): New.
1364 (hppanbsd_init_abi): Adjust.
1365 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
1366 (hppaobsd_iterate_over_regset_sections): New.
1367 (hppaobsd_init_abi): Adjust.
1368
66afae4f
AA
13692014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1370
1371 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
1372 (frv_linux_iterate_over_regset_sections): New.
1373 (frv_linux_init_abi): Adjust gdbarch initialization.
1374
ed09174e
AA
13752014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1376
1377 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
1378 (armbsd_iterate_over_regset_sections): New prototype.
1379 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
1380 (armbsd_iterate_over_regset_sections): New.
1381 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
1382 initialization.
1383
dff2166e
AA
13842014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1385
1386 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
1387 (alpha_linux_iterate_over_regset_sections): New.
1388 (alpha_linux_init_abi): Adjust gdbarch initialization.
1389 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
1390 prototype.
1391 (alphanbsd_iterate_over_regset_sections): New prototype.
1392
4108500a
AA
13932014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1394
1395 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
1396 Remove.
1397 (aarch64_linux_iterate_over_regset_sections): New.
1398 (aarch64_linux_init_abi): Adjust gdbarch initialization.
1399
a904c024
AA
14002014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1401
1402 * fbsd-tdep.c: New file.
1403 * fbsd-tdep.h: New file.
1404 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
1405 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
1406 (ALLDEPFILES): Add fbsd-tdep.c.
1407
8f0435f7
AA
14082014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1409
1410 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
1411 parameter.
1412 * gdbarch.h: Regenerate.
1413 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
1414 iterator.
1415 (get_core_register_section): Add parameter 'regset' and use it, if
1416 set. Add parameter 'min_size' and verify the bfd section size
1417 against it.
1418 (get_core_registers_cb): Add parameter 'regset' and pass it to
1419 get_core_register section. For the "standard" register sections
1420 ".reg" and ".reg2", set an appropriate default for human_name.
1421 (get_core_registers): Don't abort when the gdbarch has an iterator
1422 but no regset_from_core_section. Add NULL/0 for parameters
1423 'regset'/'min_size' in calls to get_core_register_section.
1424 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
1425 'regset' and use it instead of calling the
1426 regset_from_core_section gdbarch method.
1427 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
1428 * i386-tdep.c (i386_supply_xstateregset)
1429 (i386_collect_xstateregset, i386_xstateregset): Moved to
1430 i386-linux-tdep.c.
1431 (i386_regset_from_core_section): Drop handling for .reg-xfp and
1432 .reg-xstate.
1433 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
1434 core file support only if the regset iterator hasn't been set.
1435 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
1436 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
1437 Moved from i386-tdep.c and renamed to *_linux*.
1438 (i386_linux_iterate_over_regset_sections): Add regset parameter to
1439 each callback invocation. Allow any .reg-xstate size when reading
1440 from a core file.
1441 * amd64-tdep.c (amd64_supply_xstateregset)
1442 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
1443 amd64-linux-tdep.c.
1444 (amd64_regset_from_core_section): Remove.
1445 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
1446 install an amd64-specific regset_from_core_section gdbarch method.
1447 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
1448 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
1449 Moved from amd64-tdep.c and renamed to *_linux*.
1450 (amd64_linux_iterate_over_regset_sections): Add regset parameter
1451 to each callback invocation. Allow any .reg-xstate size when
1452 reading from a core file.
1453 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
1454 (arm_linux_iterate_over_regset_sections): Add regset parameter to
1455 each callback invocation.
1456 (arm_linux_init_abi): No longer set the regset_from_core_section
1457 gdbarch method.
1458 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
1459 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
1460 each callback invocation.
1461 (ppc_linux_init_abi): No longer set the regset_from_core_section
1462 gdbarch method.
1463 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
1464 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
1465 (s390_regset_from_core_section): Remove.
1466 (s390_iterate_over_regset_sections): Add regset parameter to each
1467 callback invocation.
1468 (s390_gdbarch_init): No longer set the regset_from_core_section
1469 gdbarch method. Drop initialization of deleted tdep fields.
1470
5aa82d05
AA
14712014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1472
1473 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
1474 (amd64_linux_iterate_over_regset_sections): New.
1475 (amd64_linux_init_abi_common): Don't install the regset section
1476 list, but the new iterator in gdbarch.
1477 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
1478 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
1479 (arm_linux_iterate_over_regset_sections): ...here. New function.
1480 (arm_linux_init_abi): Set iterator instead of section list.
1481 * corelow.c (get_core_registers_cb): New function, logic moved
1482 from...
1483 (get_core_registers): ...loop body here. Use new iterator method
1484 instead of walking through the regset section list.
1485 * gdbarch.sh: Remove 'core_regset_sections'. New method
1486 'iterate_over_regset_sections'. New typedef
1487 'iterate_over_regset_sections_cb'.
1488 * gdbarch.c: Regenerate.
1489 * gdbarch.h: Likewise.
1490 * i386-linux-tdep.c (i386_linux_regset_sections)
1491 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
1492 Remove.
1493 (i386_linux_iterate_over_regset_sections): New.
1494 (i386_linux_init_abi): Don't choose a regset section list, but
1495 install new iterator in gdbarch.
1496 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
1497 (linux_collect_regset_section_cb): New function, logic moved
1498 from...
1499 (linux_collect_thread_registers): ...loop body here. Use iterator
1500 method instead of walking through list.
1501 (linux_make_corefile_notes_1): Check for presence of iterator
1502 method instead of regset section list.
1503 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
1504 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
1505 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
1506 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
1507 (ppc_linux_iterate_over_regset_sections): ...here. New function.
1508 (ppc_linux_init_abi): Don't choose from above regset section
1509 lists, but install new iterator in gdbarch.
1510 * regset.h (struct core_regset_section): Remove.
1511 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
1512 have_linux_v1, have_linux_v2, and have_tdb.
1513 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
1514 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
1515 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
1516 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
1517 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
1518 (s390_iterate_over_regset_sections): ...here. New function. Use
1519 new tdep fields.
1520 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
1521 regset section lists, but install new iterator.
1522
2eca4a8d
JK
15232014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1524
1525 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
1526
a73c2b56
SM
15272014-09-26 Simon Marchi <simon.marchi@ericsson.com>
1528
1529 * progspace.c (print_program_space): Don't prune program spaces
1530 before printing them.
1531
03d46957
PA
15322014-09-25 Pedro Alves <palves@redhat.com>
1533
1534 * infrun.c (user_visible_resume_ptid): Don't check
1535 singlestep_breakpoints_inserted_p.
1536
e558d7c1
PA
15372014-09-25 Pedro Alves <palves@redhat.com>
1538
1539 * breakpoint.c (should_be_inserted): Add debug output.
1540
7f89fd65
PA
15412014-09-25 Pedro Alves <palves@redhat.com>
1542
1543 * infrun.c (stepping_past_instruction_at)
1544 (clear_exit_convenience_vars): Point at infrun.h instead of
1545 inferior.h.
1546 (handle_signal_stop): Fix typo.
1547
b7576e5c
YQ
15482014-09-24 Yao Qi <yao@codesourcery.com>
1549
1550 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
1551 bitmask.
1552
9a6cf368
GB
15532014-09-22 Gary Benson <gbenson@redhat.com>
1554
1555 * target.c (target_stop): Updated comment.
1556
03f4463b
GB
15572014-09-22 Gary Benson <gbenson@redhat.com>
1558
1559 * target/target.h (target_stop_ptid): Renamed as...
1560 (target_stop_and_wait): New function. Updated comment.
1561 All uses updated.
1562 (target_continue_ptid): Renamed as...
1563 (target_continue_no_signal): New function. Updated comment.
1564 All uses updated.
1565
a25a5a45
PA
15662014-09-22 Pedro Alves <palves@redhat.com>
1567
1568 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
1569 and "auto" merged.
1570 * breakpoint.c (enum ugll_insert_mode): New enum.
1571 (always_inserted_mode): Now a plain boolean.
1572 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
1573 (breakpoints_always_inserted_mode): Delete.
1574 (breakpoints_should_be_inserted_now): New function.
1575 (insert_breakpoints): Pass UGLL_INSERT to
1576 update_global_location_list instead of calling
1577 insert_breakpoint_locations manually.
1578 (create_solib_event_breakpoint_1): New, factored out from ...
1579 (create_solib_event_breakpoint): ... this.
1580 (create_and_insert_solib_event_breakpoint): Use
1581 create_solib_event_breakpoint_1 instead of calling
1582 insert_breakpoint_locations manually.
1583 (update_global_location_list): Change parameter type from boolean
1584 to enum ugll_insert_mode. All callers adjusted. Adjust to use
1585 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
1586 (update_global_location_list_nothrow): Change parameter type from
1587 boolean to enum ugll_insert_mode.
1588 (_initialize_breakpoint): "breakpoint always-inserted" option is
1589 now a boolean command. Update help text.
1590 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
1591 (breakpoints_should_be_inserted_now): New declaration.
1592 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
1593 Remove breakpoints_always_inserted_mode check.
1594 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
1595 * remote.c (remote_start_remote): Likewise.
1596
04086b45
PA
15972014-09-22 Pedro Alves <palves@redhat.com>
1598
1599 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
1600 (insert_breakpoints): Don't call insert_breakpoint_locations here.
1601 Instead, pass UGLL_INSERT to update_global_location_list.
1602 (update_global_location_list): Change parameter type from boolean
1603 to enum ugll_insert_mode. All callers adjusted. Adjust to use
1604 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
1605 (create_solib_event_breakpoint_1): New, factored out from ...
1606 (create_solib_event_breakpoint): ... this.
1607 (create_and_insert_solib_event_breakpoint): Use
1608 create_solib_event_breakpoint_1 instead of calling
1609 insert_breakpoint_locations manually.
1610 (update_global_location_list): Handle UGLL_INSERT.
1611
44702360
PA
16122014-09-22 Pedro Alves <palves@redhat.com>
1613
1614 * breakpoint.c (enum ugll_insert_mode): New enum.
1615 (update_global_location_list)
1616 (update_global_location_list_nothrow): Change parameter type from
1617 boolean to enum ugll_insert_mode. All callers adjusted.
1618
93c6145a
JB
16192014-09-19 Joel Brobecker <brobecker@adacore.com>
1620
1621 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
1622 SystemTap support in GDB.
1623
89a5711c
DB
16242014-09-19 Don Breazeal <donb@codesourcery.com>
1625
1626 * linux-nat.c (linux_handle_extended_wait): Call
1627 linux_ptrace_get_extended_event.
1628 (wait_lwp): Call linux_is_extended_waitstatus.
1629 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
1630 and linux_is_extended_waitstatus.
1631 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
1632 linux_ptrace_get_extended_event.
1633 (linux_ptrace_get_extended_event): New function.
1634 (linux_is_extended_waitstatus): New function.
1635 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
1636 (linux_is_extended_waitstatus): New declarations.
1637
c3b7b696
YQ
16382014-09-19 Yao Qi <yao@codesourcery.com>
1639
1640 * dwarf2read.c (dwarf_decode_lines): Update declaration.
1641 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
1642 comments. Callers update.
1643 (dwarf_decode_lines): Likewise.
1644 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
1645 comments. Skip the line table if 'lowpc' is greater than
1646 'address'. Don't check
1647 dwarf2_per_objfile->has_section_at_zero.
1648
2b4fd423
DE
16492014-09-18 Doug Evans <dje@google.com>
1650
1651 * NEWS: Mention new "producer" attribute of gdb.Symtab.
1652 * python/py-symtab.c (stpy_get_producer): New function.
1653 (symtab_object_getset): Add "producer" attribute.
1654
5e43d467
UW
16552014-09-17 Ulrich Weigand  <uweigand@de.ibm.com>
1656
1657 PR gdb/17384
1658 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
1659 (do_captured_read_memory_integer): Remove.
1660 (safe_read_memory_integer): Use target_read_memory directly instead
1661 of catching errors in do_captured_read_memory_integer.
1662
04e79979
MR
16632014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
1664
1665 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
1666 not gdb/doc.
1667
76aeec5b
SDJ
16682014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1669
1670 * objc-lang.c (find_implementation_from_class): Remove dead code.
1671
2f693f9d
SDJ
16722014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1673
1674 PR cli/7233
1675 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
1676 "fprintf_unfiltered (gdb_stdlog...)".
1677
bb9d5f81
PP
16782014-09-16 Patrick Palka <patrick@parcs.ath.cx>
1679
1680 PR breakpoints/12526
1681 * breakpoint.h (struct watchpoint): New fields val_bitpos and
1682 val_bitsize.
1683 * breakpoint.c (watch_command_1): Use these fields to retain
1684 bitfield information.
1685 (extract_bitfield_from_watchpoint_value): New function.
1686 (watchpoint_check): Use it.
1687 (update_watchpoint): Use it. Optimize the address and length of a
1688 HW watchpoint pointing to a bitfield.
1689 * value.h (unpack_value_bitfield): New prototype.
1690 * value.c (unpack_value_bitfield): Make extern.
1691
05db5edd
ST
16922014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
1693
1694 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
1695 x86-dregs.o.
1696 * gnu-nat.c (inf_threads): New function.
1697 * gnu-nat.h (inf_threads_ftype): New typedef.
1698 (inf_threads): New declaration.
1699 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
1700 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
1701 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
1702 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
1703 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
1704 (i386_gnu_dr_get_control): New functions.
1705 (reg_addr): New structure.
1706 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
1707 i386 debugging register hooks.
1708 * NEWS: Mention this.
1709
5a578da5
OJ
17102014-08-13 Omair Javaid <omair.javaid@linaro.org>
1711
1712 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
1713 vector data transfer instructions.
1714 (arm_record_coproc_data_proc): Updated.
1715
f20f80dd
OJ
17162014-08-13 Omair Javaid <omair.javaid@linaro.org>
1717
1718 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
1719 arm_record_exreg_ld_st_insn.
1720 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
1721 load/store insns.
1722
851f26ae
OJ
17232014-08-13 Omair Javaid <omair.javaid@linaro.org>
1724
1725 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
1726 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
1727 processing instructions.
1728
1e1b6563
OJ
17292014-08-13 Omair Javaid <omair.javaid@linaro.org>
1730
1731 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
1732 for advance SIMD struct ld/st insn.
1733 (thumb2_record_decode_insn_handler): Replace stub handler with
1734 thumb2_record_asimd_struct_ld_st.
1735
60cc5e93
OJ
17362014-08-13 Omair Javaid <omair.javaid@linaro.org>
1737
1738 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
1739 for asimd, vfp and coprocessor insns.
1740 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
1741 and coprocessor insns.
1742 (thumb2_record_coproc_insn): New function.
1743 (thumb2_record_decode_insn_handler): Update coprocessor insns record
1744 handlers.
1745 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
1746 opcode 110 insns.
1747
81219e53
DE
17482014-09-13 Doug Evans <xdje42@gmail.com>
1749
1750 * NEWS: Mention new "queue-signal" command.
1751 * infcmd.c (queue_signal_command): New function.
1752 (_initialize_infcmd): Add new queue-signal command.
1753
d36bf488
DE
17542014-09-13 Doug Evans <xdje42@gmail.com>
1755
1756 * linux-nat.c (wait_lwp): Add debugging printf.
1757 (linux_nat_wait_1): Ditto.
1758
f37f681c
PA
17592014-09-12 Pedro Alves <palves@redhat.com>
1760
1761 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
1762 (create_and_insert_solib_event_breakpoint): New functions.
1763 * breakpoint.h (create_and_insert_solib_event_breakpoint)
1764 (remove_solib_event_breakpoints_at_next_stop): New declarations.
1765 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
1766 (remove_dbx_link_breakpoint): Delete function.
1767 (insert_dbx_link_bpt_in_file): Use
1768 create_and_insert_solib_event_breakpoint instead of
1769 deprecated_insert_raw_breakpoint.
1770 (procfs_wait): Don't check whether we hit __dbx_link here.
1771 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
1772 here.
1773 * solib-irix.c (base_breakpoint): Delete global.
1774 (disable_break): Delete function.
1775 (enable_break): Use create_solib_event_breakpoint
1776 instead of deprecated_insert_raw_breakpoint.
1777 (irix_solib_handle_event): New function.
1778 (irix_solib_create_inferior_hook): Don't run the target or disable
1779 the mapping-complete breakpoint here.
1780 (_initialize_irix_solib): Install irix_solib_handle_event as
1781 so_ops->handle_event hook.
1782
9d9bf2df
EBM
17832014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1784 Ulrich Weigand  <uweigand@de.ibm.com>
1785
1786 PR tdep/17379
1787 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
1788 instead of read_memory_unsigned_integer.
1789
b006a80e
GB
17902014-09-12 Gary Benson <gbenson@redhat.com>
1791
1792 * nat/linux-waitpid.c: Include common-defs.h.
1793 [GDBSERVER]: Add FIXME comment.
1794 [!GDBSERVER]: Don't include defs.h or signal.h.
1795 (linux_debug) [!GDBSERVER]: Remove empty block.
1796
296b1496
GB
17972014-09-12 Gary Benson <gbenson@redhat.com>
1798
1799 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
1800 Don't include defs.h or server.h.
1801
53f81362
GB
18022014-09-12 Gary Benson <gbenson@redhat.com>
1803
1804 * nat/linux-btrace.c: Include common-defs.h.
1805 Don't include defs.h, server.h or gdbthread.h.
1806 * nat/linux-btrace.h (struct target_ops): New forward declaration.
1807
727605ca
GB
18082014-09-12 Gary Benson <gbenson@redhat.com>
1809
1810 * common/agent.c: Include common-defs.h.
1811 Don't include defs.h or server.h.
1812 * common/buffer.c: Likewise.
1813 * common/common-debug.c: Likewise.
1814 * common/common-utils.c: Likewise.
1815 * common/errors.c: Likewise.
1816 * common/filestuff.c: Likewise.
1817 * common/format.c: Likewise.
1818 * common/gdb_vecs.c: Likewise.
1819 * common/print-utils.c: Likewise.
1820 * common/ptid.c: Likewise.
1821 * common/rsp-low.c: Likewise.
1822 * common/signals.c: Likewise.
1823 * common/vec.c: Likewise.
1824 * common/xml-utils.c: Likewise.
1825 * nat/linux-osdata.c: Likewise.
1826 * nat/linux-procfs.c: Likewise.
1827 * nat/linux-ptrace.c: Likewise.
1828 * nat/mips-linux-watch.c: Likewise.
1829 * target/waitstatus.c: Likewise.
1830
361c8ade
GB
18312014-09-12 Tom Tromey <tromey@redhat.com>
1832 Gary Benson <gbenson@redhat.com>
1833
1834 * common/common-regcache.h: New file.
1835 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
1836 * regcache.h: Include common-regcache.h.
1837 (regcache_read_pc): Don't declare.
1838 * regcache.c (get_thread_regcache_for_ptid): New function.
1839 * nat/linux-btrace.c: Don't include regcache.h.
1840 Include common-regcache.h.
1841 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
1842
a01cbb49
TS
18432014-09-11 Thomas Schwinge <thomas@codesourcery.com>
1844
1845 * regcache.h (struct regset): Declare.
1846
98880d46
PA
18472014-09-11 Pedro Alves <palves@redhat.com>
1848
1849 PR gdb/17347
1850 * main.c: Include "infrun.h".
1851 (catch_command_errors, catch_command_errors_const): Wait for the
1852 foreground command to complete.
1853 * top.c (maybe_wait_sync_command_done): New function, factored out
1854 from ...
1855 (maybe_wait_sync_command_done): ... here.
1856 * top.h (maybe_wait_sync_command_done): New declaration.
1857
bd9269f7
GB
18582014-09-11 Tom Tromey <tromey@redhat.com>
1859 Gary Benson <gbenson@redhat.com>
1860
1861 * common/symbol.h: New file.
1862 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
1863 * minsyms.c (find_minimal_symbol_address): New function.
1864 * common/agent.c: Include common/symbol.h.
1865 [!GDBSERVER]: Don't include objfiles.h.
1866 (agent_look_up_symbols): Use find_minimal_symbol_address.
1867
f8c1d06b
GB
18682014-09-11 Gary Benson <gbenson@redhat.com>
1869
1870 * target/target.h (target_stop_ptid, target_continue_ptid):
1871 Declare.
1872 * target.c (target_stop_ptid, target_continue_ptid): New
1873 functions.
1874 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
1875 (agent_run_command): Always use target_stop_ptid and
1876 target_continue_ptid.
1877
721ec300
GB
18782014-09-11 Tom Tromey <tromey@redhat.com>
1879 Gary Benson <gbenson@redhat.com>
1880
1881 * target/target.h: New file.
1882 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
1883 * target.h: Include target/target.h.
1884 (target_read_memory, target_write_memory): Don't declare.
1885 * target.c (target_read_uint32): New function.
1886 * common/agent.c: Include target/target.h.
1887 [!GDBSERVER]: Don't include target.h.
1888 (helper_thread_id): Type changed to uint32_t.
1889 (agent_get_helper_thread_id): Use target_read_uint32.
1890 (agent_run_command): Always use target_read_memory and
1891 target_write_memory.
1892 (agent_capability): Type changed to uint32_t.
1893 (agent_capability_check): Use target_read_uint32.
1894
c5e92cca
GB
18952014-09-11 Gary Benson <gbenson@redhat.com>
1896
1897 * common/common-debug.h (show_debug_regs): Declare.
1898 * common/common-debug.c (show_debug_regs): Define.
1899 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
1900 all uses with show_debug_regs. Replace all uses that considered
1901 debug_hw_points as a multi-value integer with straight boolean
1902 uses.
1903 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
1904 with show_debug_regs.
1905 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
1906 all uses with show_debug_regs.
1907 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
1908 uses with show_debug_regs.
1909
eeef931a
UW
19102014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
1911
1912 * findvar.c (address_from_register): Handle targets requiring
1913 a special conversion routine even for plain pointer types.
1914
8efa9855
UW
19152014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
1916
1917 * rs6000-nat.c (exec_one_dummy_insn): Remove.
1918 (store_register): Do not call exec_one_dummy_insn.
1919
eb479039
JB
19202014-09-10 Joel Brobecker <brobecker@adacore.com>
1921
1922 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
1923 dereference it first. Use value_enclosing_type instead of
1924 value_type.
1925 (ada_array_length): Likewise.
1926
deede10c
JB
19272014-09-10 Joel Brobecker <brobecker@adacore.com>
1928
1929 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
1930 Adjust function implementation and documentation accordingly.
1931 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
1932 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
1933 Update call to ada_value_ptr_subscript.
1934
7828a5f5
JB
19352014-09-10 Joel Brobecker <brobecker@adacore.com>
1936
1937 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
1938 instead of VAL's type.
1939
35782f14
JB
19402014-09-10 Joel Brobecker <brobecker@adacore.com>
1941
1942 * amd64-linux-nat.c: Add <sys/uio.h> #include.
1943
d342a0da
DE
19442014-09-09 Doug Evans <xdje42@gmail.com>
1945
1946 PR guile/17367
1947 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
1948 last parameter to pkg-config, not first.
1949 * configure.ac: Pass --with-guile provided pkg-config path to
1950 GDB_GUILE_PROGRAM_NAMES.
1951 * configure: Regenerate.
1952
b4a3d263
GKB
19532014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
1954
1955 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
1956 Bertazi".
1957
6e466374
MR
19582014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
1959
1960 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
1961 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
1962 the list of sections determining GDB_OSABI_IRIX.
1963
a1ada89a
JH
19642014-09-09 James Hogan <james.hogan@imgtec.com>
1965
1966 * MAINTAINERS (Write After Approval): Add "James Hogan".
1967
86db008d
JH
19682014-09-09 James Hogan <james.hogan@imgtec.com>
1969
1970 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
1971
72fde3df
JB
19722014-09-09 Joel Brobecker <brobecker@adacore.com>
1973
1974 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
1975
92d8d229
DE
19762014-09-08 Doug Evans <xdje42@gmail.com>
1977
1978 PR 17247
1979 * guile.c: #include <signal.h>.
1980 (_initialize_guile): Block SIGCHLD while initializing Guile.
1981
1982 Replaces the following, which is reverted.
1983
1984 2014-07-26 Doug Evans <xdje42@gmail.com>
1985
1986 PR 17185
1987 * configure.ac: Add check for header gc/gc.h.
1988 Add check for function setenv.
1989 * configure: Regenerate.
1990 * config.in: Regenerate.
1991 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1992
d81412aa
DE
19932014-09-08 Doug Evans <xdje42@gmail.com>
1994
1995 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
1996 with named constant. Fix style of pointer comparison.
1997 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
1998
a9f116cb
GKB
19992014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
2000
2001 PR gdb/17035
2002 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
2003 decide whether we display the command on "show user".
2004 * cli/cli-script.c (show_user_1): Only verify cmdlines after
2005 printing command name.
2006 * cli/cli-decode.h (cli_user_command_p): Declare new function.
2007 * cli/cli-decode.c (cli_user_command_p): Create helper function
2008 to verify whether cmd_list_element is a user-defined command.
2009
c75bd3a2
JK
20102014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2011
2012 PR python/17355
2013 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
2014 Fix goto out of TRY_CATCH.
2015
faa42425 20162014-09-06 Doug Evans <xdje42@gmail.com>
1a52a81c 2017 Tom Tromey <tromey@redhat.com>
faa42425
DE
2018
2019 PR 15276
2020 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
2021 $_any_caller_matches.
2022 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
2023 * python/lib/gdb/function/caller_is.py: New file.
2024
0d41ba00
DE
20252014-09-06 Doug Evans <xdje42@gmail.com>
2026
2027 * infcmd.c (program_info): Fix typo.
2028
474ca4f6
SDJ
20292014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
2030
2031 PR gdb/17235
2032 * stap-probe.c (stap_parse_single_operand): Delete unused variable
2033 'number'. New variable 'has_digit'. Rewrite code to deal with
2034 subexpressions on SDT probes.
2035
ebf13736
PA
20362014-09-04 Pedro Alves <palves@redhat.com>
2037
2038 * c-exp.y (parse_number): Skip handling base-switching prefixes if
2039 the input is only one character long.
2040
eb0b0463
SDJ
20412014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
2042
2043 PR fortran/17237
2044 * f-valprint.c (f_val_print): Specify the correct print option to
2045 use when printing integer values.
2046
5ee44bfa
GB
20472014-09-04 Gary Benson <gbenson@redhat.com>
2048
2049 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
2050 Remove code to cope with LWPs wrapped as PIDs.
2051 Add assertions to ensure no wrapped LWPs are passed.
2052
4875ffdb
PA
20532014-09-04 Pedro Alves <palves@redhat.com>
2054
2055 * value.c (value_ranges_copy_adjusted): New function, factored out
2056 from ...
2057 (value_contents_copy_raw): ... here.
2058 (unpack_value_bits_as_long_1): Rename back to ...
2059 (unpack_bits_as_long): ... this. Remove 'original_value' and
2060 'result' parameters. Change return type to LONGEST.
2061 (unpack_value_bits_as_long): Delete.
2062 (unpack_value_field_as_long_1): Delete.
2063 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
2064 (unpack_value_bitfield): New function.
2065 (value_field_bitfield): Reimplement using unpack_value_bitfield.
2066 (value_fetch_lazy): Use unpack_value_bitfield.
2067 * value.h (unpack_value_bits_as_long): Delete declaration.
2068
5f3b99cf
SS
20692014-09-03 Sasha Smundak <asmundak@google.com>
2070
2071 * python/py-frame.c (frapy_read_register): New function.
2072
ac740bc7
JH
20732014-09-03 James Hogan <james.hogan@imgtec.com>
2074
2075 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
2076 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
2077
7d793aa9
SDJ
20782014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
2079
2080 PR python/16699
2081 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
2082 function.
2083 (add_cmd): Set "completer_handle_brkchars" to NULL.
2084 * cli/cli-decode.h (struct cmd_list_element)
2085 <completer_handle_brkchars>: New field.
2086 * command.h (completer_ftype_void): New typedef.
2087 (set_cmd_completer_handle_brkchars): New prototype.
2088 * completer.c (set_gdb_completion_word_break_characters): New
2089 function.
2090 (complete_line_internal): Call "completer_handle_brkchars"
2091 callback from command.
2092 * completer.h: Include "command.h".
2093 (set_gdb_completion_word_break_characters): New prototype.
2094 * python/py-cmd.c (cmdpy_completer_helper): New function.
2095 (cmdpy_completer_handle_brkchars): New function.
2096 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
2097 (cmdpy_init): Set completer_handle_brkchars to
2098 cmdpy_completer_handle_brkchars.
2099
97ea6506
GB
21002014-09-03 Gary Benson <gbenson@redhat.com>
2101
2102 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
2103 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
2104 Loop conditions changed to equivalent form.
2105 (struct x86_debug_reg_state): Updated dr_ref_count comment.
2106 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
2107 ALL_DEBUG_ADDRESS_REGISTERS.
2108
d1437815
JB
21092014-09-03 Joel Brobecker <brobecker@adacore.com>
2110
2111 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
2112 description fix.
2113
9b94fcf1
DE
21142014-09-02 Doug Evans <dje@google.com>
2115
2116 * typeprint.c (find_global_typedef): Fix comment.
2117
df7e5265
GB
21182014-09-02 Gary Benson <gbenson@redhat.com>
2119
2120 * i386-nat.h: Renamed as...
2121 * x86-nat.h: New file. All type, function and variable name
2122 prefixes changed from "i386_" to "x86_". All references updated.
2123 * i386-nat.c: Renamed as...
2124 * x86-nat.c: New file. All type, function and variable name
2125 prefixes changed from "i386_" to "x86_". All references updated.
2126 * common/i386-xstate.h: Renamed as...
2127 * common/x86-xstate.h: New file. All type, function and variable
2128 name prefixes changed from "i386_" to "x86_". All references
2129 updated.
2130 * nat/i386-cpuid.h: Renamed as...
2131 * nat/x86-cpuid.h: New file. All type, function and variable name
2132 prefixes changed from "i386_" to "x86_". All references updated.
2133 * nat/i386-gcc-cpuid.h: Renamed as...
2134 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
2135 name prefixes changed from "i386_" to "x86_". All references
2136 updated.
2137 * nat/i386-dregs.h: Renamed as...
2138 * nat/x86-dregs.h: New file. All type, function and variable name
2139 prefixes changed from "i386_" to "x86_". All references updated.
2140 * nat/i386-dregs.c: Renamed as...
2141 * nat/x86-dregs.c: New file. All type, function and variable name
2142 prefixes changed from "i386_" to "x86_". All references updated.
2143
1c3569d4
MR
21442014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
2145
2146 * varobj.c (_initialize_varobj): Move to the end of file.
2147
ff55e1b5
GB
21482014-08-29 Gary Benson <gbenson@redhat.com>
2149
2150 * common/common-exceptions.h: New file.
2151 * common/common-exceptions.c: Likewise.
2152 * Makefile.in (SFILES): Add common/common-exceptions.c.
2153 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
2154 (COMMON_OBS): Add common-exceptions.o.
2155 (common-exceptions.o): New rule.
2156 * exceptions.h (common-exceptions.h): Include.
2157 (gdb_setjmp.h): Do not include.
2158 (return_reason): Moved to common-exceptions.h.
2159 (enum return_reason): Likewise.
2160 (RETURN_MASK): Likewise.
2161 (typedef return_mask): Likewise.
2162 (enum errors): Likewise.
2163 (struct gdb_exception): Likewise.
2164 (exceptions_state_mc_init): Likewise.
2165 (exceptions_state_mc_action_iter): Likewise.
2166 (exceptions_state_mc_action_iter_1): Likewise.
2167 (TRY_CATCH): Likewise.
2168 (throw_exception): Likewise.
2169 (throw_verror): Likewise.
2170 (throw_vquit): Likewise.
2171 (throw_error): Likewise.
2172 (throw_quit): Likewise.
2173 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
2174 (enum catcher_action): Likewise.
2175 (struct catcher): Likewise.
2176 (current_catcher): Likewise.
2177 (catcher_list_size): Likewise.
2178 (exceptions_state_mc_init): Likewise.
2179 (catcher_pop): Likewise.
2180 (exceptions_state_mc): Likewise.
2181 (exceptions_state_mc_action_iter): Likewise.
2182 (exceptions_state_mc_action_iter_1): Likewise.
2183 (throw_exception): Likewise.
2184 (exception_messages): Likewise.
2185 (exception_messages_size): Likewise.
2186 (throw_it): Likewise.
2187 (throw_verror): Likewise.
2188 (throw_vquit): Likewise.
2189 (throw_error): Likewise.
2190 (throw_quit): Likewise.
2191 (prepare_to_throw_exception): New function.
2192
e9bcb658
GB
21932014-08-29 Gary Benson <gbenson@redhat.com>
2194
2195 * common/gdb_setjmp.h: New file.
2196 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
2197 * configure.ac: Move sigsetjmp check...
2198 * common/common.m4: ...here.
2199 * configure: Regenerate.
2200 * cp-support.c (SIGJMP_BUF): Delete.
2201 (SIGSETJMP): Likewise.
2202 (SIGLONGJMP): Likewise.
2203 * exceptions.h (gdb_setjmp.h): Include.
2204 (setjmp.h): Do not include.
2205 (EXCEPTIONS_SIGJMP_BUF): Delete.
2206 (EXCEPTIONS_SIGSETJMP): Likewise.
2207 (EXCEPTIONS_SIGLONGJMP): Likewise.
2208 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
2209 from gdb_setjmp.h.
2210 * exceptions.c: Likewise.
2211
e3180625
GB
22122014-08-29 Gary Benson <gbenson@redhat.com>
2213
2214 * cleanups.h: Moved to...
2215 * common/cleanups.h: New file.
2216 * cleanups.c: Moved to...
2217 * common/cleanups.c: New file. Include common-defs.h and
2218 cleanups.h. Do not include defs.h.
2219 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
2220 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
2221 (cleanups.o): New rule.
2222
e3d6ba5d
GB
22232014-08-29 Gary Benson <gbenson@redhat.com>
2224
2225 * common/errors.h (internal_warning): New declaration.
2226 (internal_vwarning): Likewise.
2227 * common/errors.c (internal_warning): New function.
2228 * utils.h (internal_warning): Don't declare.
2229 (internal_vwarning): Likewise.
2230 * utils.c (internal_warning): Removed.
2231
075c7033
GB
22322014-08-29 Gary Benson <gbenson@redhat.com>
2233
2234 * main.c (captured_main): Use warning during startup.
2235 Prefix startup warning messages with command name.
2236
91b35fd0
GB
22372014-08-29 Gary Benson <gbenson@redhat.com>
2238
2239 * main.c (captured_main): Handle usage errors with error.
2240
b1ec390e
GB
22412014-08-29 Gary Benson <gbenson@redhat.com>
2242
2243 * go32-nat.c (go32_create_inferior): Replace a fprintf/
2244 exit pair with a call to error. Wrap the message with _().
2245
fd0ef3dd
GB
22462014-08-29 Gary Benson <gbenson@redhat.com>
2247
2248 * main.c (captured_main): Replace a fprintf/exit
2249 pair with a call to error. Wrap the message with _().
2250
e0e6bcab
GB
22512014-08-29 Gary Benson <gbenson@redhat.com>
2252
2253 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
2254 pairs with calls to error. Wrap the message with _().
2255
0d2f5c07
GB
22562014-08-29 Gary Benson <gbenson@redhat.com>
2257
2258 * utils.c (vwarning): Protect calls to target_terminal_ours
2259 and wrap_here.
2260
5df43998
GB
22612014-08-29 Gary Benson <gbenson@redhat.com>
2262
2263 * exceptions.c (print_flush): Protect calls to
2264 target_terminal_ours and wrap_here.
2265
2437fd32
GB
22662014-08-29 Gary Benson <gbenson@redhat.com>
2267
2268 * utils.h (filtered_printing_initialized): New declaration.
2269 * utils.c (abort_with_message): New function.
2270 (internal_vproblem): Use abort_with_message for first level
2271 recursive internal problems, and if gdb_stderr is not set up.
2272 Protect calls to target_terminal_ours, begin_line and query.
2273
f1f58506
DE
22742014-08-28 Doug Evans <dje@google.com>
2275
2276 * symtab.c (in_prologue): Move definition to better spot.
2277 (skip_prologue_using_sal): Ditto.
2278
aab2f208
DE
22792014-08-28 Doug Evans <dje@google.com>
2280
2281 * symtab.c (find_function_start_sal): Move definition to better spot.
2282
6b65d1b6
YQ
22832014-08-28 Yao Qi <yao@codesourcery.com>
2284
2285 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
2286 found_stack_adjust in forward scan. Remove condition check
2287 on found_stack_adjust which is always true. Indent the code.
2288
a1b34d15
YQ
22892014-08-28 Yao Qi <yao@codesourcery.com>
2290
2291 * dwarf2read.c (dwarf_decode_lines): Update declaration.
2292 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
2293 (dwarf_decode_lines): Remove argument
2294 want_line_info. Remove condition check on want_line_info.
2295 Callers update.
2296
d5962de5
DE
22972014-08-27 Doug Evans <dje@google.com>
2298
2299 * dwarf2read.c (dwarf_record_line): Fix typo.
2300
9b139002
SDJ
23012014-08-27 Patrick Palka <patrick@parcs.ath.cx>
2302
2303 * target.h (struct target_ops::to_terminal_save_ours): Remove
2304 declaration.
2305 (target_terminal_save_ours): Remove macro.
2306 * target-delegates.c: Regenerate.
2307 * inf-child.c (inf_child_target): Don't set the nonexistent
2308 field to_terminal_save_ours.
2309 * inferior.h (child_terminal_save_ours): Remove declaration.
2310 * terminal.h (gdb_save_tty_state): New declaration.
2311 * inflow.c (child_terminal_save_ours): Rename to ...
2312 (gdb_save_tty_state): ... this.
2313 * tui/tui.c: Include terminal.h.
2314 (tui_enable): Use gdb_save_tty_state instead of
2315 target_terminal_save_ours.
2316 (tui_disable): Likewise.
2317
9debeba0
DE
23182014-08-25 Doug Evans <dje@google.com>
2319
2320 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
2321 Pass NULL instead of 0 for context pointer.
2322
428fc5fc
YQ
23232014-08-25 Yao Qi <yao@codesourcery.com>
2324
2325 * dwarf2read.c: Fix grammatical error.
2326
cdc07690
YQ
23272014-08-24 Yao Qi <yao@codesourcery.com>
2328
2329 * dwarf2read.c (scan_partial_symbols): Update comments.
2330 Rename argument 'need_pc' with 'set_addrmap'.
2331 (add_partial_namespace): Rename argument 'need_pc' with
2332 'set_addrmap'.
2333 (add_partial_module): Likewise.
2334 (add_partial_subprogram): Likewise. Update comments.
2335 (dwarf2_name): Fix typo.
2336
a05a36a5
DE
23372014-08-22 Doug Evans <dje@google.com>
2338
2339 PR 17276
2340 * dwarf2read.c (dwarf_record_line_p): New function.
2341 (dwarf_decode_lines_1): Ignore subsequent line number entries
2342 for the same line if any entry had a non-zero discriminator.
2343
252a6764
DE
23442014-08-22 Doug Evans <dje@google.com>
2345
2346 * buildsym.h (record_line_ftype): New typedef.
2347 (record_line): Use it.
2348 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
2349 (dwarf_decode_lines_1): Call them.
2350
510db052
YQ
23512014-08-22 Yao Qi <yao@codesourcery.com>
2352
2353 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
2354 (ctf_end): Remove code.
2355
22fd09ae
JK
23562014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2357
2358 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
2359 (linux_make_corefile_notes): call update_thread_list, protected against
2360 exceptions.
2361
656e8868
PA
23622014-08-21 Pedro Alves <palves@redhat.com>
2363
2364 * infcmd.c (attach_command): Remove comment.
2365
de589d04
WN
23662014-08-21 Bin Cheng <bin.cheng@arm.com>
2367
2368 * aarch64-linux-nat.c (dr_changed_t): Change the type from
2369 unsigned LONGEST to ULONGEST.
2370
2a31c623
PA
23712014-08-20 Pedro Alves <palves@redhat.com>
2372
2373 * Makefile.in (check-read1): New rule.
2374
d36430db
JB
23752014-08-20 Joel Brobecker <brobecker@adacore.com>
2376
2377 * value.c (value_from_contents_and_address): Strip resolved_type's
2378 typedef layers before checking its TYPE_DATA_LOCATION.
2379
000339af
PA
23802014-08-20 Pedro Alves <palves@redhat.com>
2381
2382 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
2383
5f52445b
YQ
23842014-08-20 Yao Qi <yao@codesourcery.com>
2385
2386 * amd64-tdep.c (amd64_classify): Add a blank line after the
2387 example. Move "*/" to a new line.
2388 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
2389 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
2390 * dwarf2read.c (psymtab_include_file_name): Likewise.
2391
9a0dc9e3
PA
23922014-08-19 Andrew Burgess <aburgess@broadcom.com>
2393 Pedro Alves <palves@redhat.com>
2394
2395 PR symtab/14604
2396 PR symtab/14605
2397 * ada-lang.c (coerce_unspec_val_to_type): Use
2398 value_contents_copy_raw.
2399 * ada-valprint.c (val_print_packed_array_elements): Adjust.
2400 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
2401 * cp-valprint.c (cp_print_value_fields): Let the common printing
2402 code handle optimized out values.
2403 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
2404 * d-valprint.c (dynamic_array_type): Use
2405 value_bits_any_optimized_out.
2406 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
2407 check_any_valid fields.
2408 (check_pieced_value_bits): Delete and inline ...
2409 (check_pieced_synthetic_pointer): ... here.
2410 (check_pieced_value_validity): Delete.
2411 (check_pieced_value_invalid): Delete.
2412 (pieced_value_funcs): Remove check_validity and check_any_valid
2413 fields.
2414 (read_pieced_value): Use mark_value_bits_optimized_out.
2415 (write_pieced_value): Switch to use
2416 mark_value_bytes_optimized_out.
2417 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
2418 of assuming the whole value is optimized out.
2419 * findvar.c (read_frame_register_value): Remove special handling
2420 of optimized out registers.
2421 (value_from_register): Use mark_value_bytes_optimized_out.
2422 * frame-unwind.c (frame_unwind_got_optimized): Use
2423 mark_value_bytes_optimized_out.
2424 * jv-valprint.c (java_value_print): Adjust.
2425 (java_print_value_fields): Let the common printing code handle
2426 optimized out values.
2427 * mips-tdep.c (mips_print_register): Remove special handling of
2428 optimized out registers.
2429 * opencl-lang.c (lval_func_check_validity): Delete.
2430 (lval_func_check_any_valid): Delete.
2431 (opencl_value_funcs): Remove check_validity and check_any_valid
2432 fields.
2433 * p-valprint.c (pascal_object_print_value_fields): Let the common
2434 printing code handle optimized out values.
2435 * stack.c (read_frame_arg): Remove special handling of optimized
2436 out values. Fetch both VAL and ENTRYVAL before comparing
2437 contents. Adjust to value_available_contents_eq rename.
2438 * valprint.c (valprint_check_validity)
2439 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
2440 (val_print_array_elements): Adjust.
2441 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
2442 (value_bits_any_optimized_out): New function.
2443 (value_entirely_covered_by_range_vector): New function, factored
2444 out from value_entirely_unavailable.
2445 (value_entirely_unavailable): Reimplement.
2446 (value_entirely_optimized_out): New function.
2447 (insert_into_bit_range_vector): New function, factored out from
2448 mark_value_bits_unavailable.
2449 (mark_value_bits_unavailable): Reimplement.
2450 (struct ranges_and_idx): New struct.
2451 (find_first_range_overlap_and_match): New function, factored out
2452 from value_available_contents_bits_eq.
2453 (value_available_contents_bits_eq): Rename to ...
2454 (value_contents_bits_eq): ... this. Check both unavailable
2455 contents and optimized out contents.
2456 (value_available_contents_eq): Rename to ...
2457 (value_contents_eq): ... this.
2458 (allocate_value_lazy): Remove reference to the old optimized_out
2459 boolean.
2460 (allocate_optimized_out_value): Use
2461 mark_value_bytes_optimized_out.
2462 (require_not_optimized_out): Adjust to check whether the
2463 optimized_out vec is empty.
2464 (ranges_copy_adjusted): New function, factored out from
2465 value_contents_copy_raw.
2466 (value_contents_copy_raw): Also copy the optimized out ranges.
2467 Assert the destination ranges aren't optimized out.
2468 (value_contents_copy): Update comment, remove call to
2469 require_not_optimized_out.
2470 (value_contents_equal): Adjust to check whether the optimized_out
2471 vec is empty.
2472 (set_value_optimized_out, value_optimized_out_const): Delete.
2473 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
2474 New functions.
2475 (value_entirely_optimized_out, value_bits_valid): Delete.
2476 (value_copy): Take a VEC copy of the 'optimized_out' field.
2477 (value_primitive_field): Remove special handling of optimized out.
2478 (value_fetch_lazy): Assert that lazy values have no unavailable
2479 regions. Use value_bits_any_optimized_out. Remove some special
2480 handling for optimized out values.
2481 * value.h: Add intro comment about <optimized out> and
2482 <unavailable>.
2483 (struct lval_funcs): Remove check_validity and check_any_valid
2484 fields.
2485 (set_value_optimized_out, value_optimized_out_const): Remove.
2486 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
2487 New declarations.
2488 (value_bits_any_optimized_out): New declaration.
2489 (value_bits_valid): Delete declaration.
2490 (value_available_contents_eq): Rename to ...
2491 (value_contents_eq): ... this, and extend comments.
2492
6694c411
JK
24932014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2494
2495 Fix -fsanitize=address on unreadable inferior strings.
2496 * valprint.c (val_print_string): Fix access before BUFFER.
2497
89a1c21a
SM
24982014-08-19 Simon Marchi <simon.marchi@ericsson.com>
2499
2500 * target.c (target_struct_size): Remove.
2501 (target_struct_allocsize): Remove.
2502 (DEFAULT_ALLOCSIZE): Remove.
2503 (target_ops_p): New typedef.
2504 (DEF_VEC_P (target_ops_p)): New vector type.
2505 (target_structs): Change type to VEC (target_ops_p).
2506 (add_target_with_completer): Replace "push" code by VEC_safe_push.
2507 (find_default_run_target): Rewrite for loop following changes to
2508 target_structs.
2509
cb417230
JB
25102014-08-19 Joel Brobecker <brobecker@adacore.com>
2511
2512 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
2513 Adjust code accordingly. Adjust function description comment.
2514
817e0957
YQ
25152014-08-19 Yao Qi <yao@codesourcery.com>
2516
2517 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
2518 types.
2519
2974be62
AM
25202014-08-19 Alan Modra <amodra@gmail.com>
2521
2522 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
2523 * config.in: Regenerate.
2524 * configure: Regenerate.
2525
34abf635
GB
25262014-08-19 Tom Tromey <tromey@redhat.com>
2527 Gary Benson <gbenson@redhat.com>
2528
2529 * common/common-debug.h: New file.
2530 * common/common-debug.c: Likewise.
2531 * debug.c: Likewise.
2532 * Makefile.in (SFILES): Add common/common-debug.c.
2533 (HFILES_NO_SRCDIR): Add common/common-debug.h.
2534 (COMMON_OBS): Add common-debug.o and debug.o.
2535 (common-debug.o): New rule.
2536 * common/common-defs.h: Include common-debug.h.
2537 * common/agent.c (debug_agent_printf): New function.
2538 (DEBUG_AGENT): Redefine.
2539 * nat/i386-dregs.c (debug_printf): Undefine.
2540
f6e94d78
GB
25412014-08-19 Gary Benson <gbenson@redhat.com>
2542
2543 * common/common-defs.h: Include print-utils.h.
2544 * utils.h: Do not include print-utils.h.
2545
9239eeab
GB
25462014-08-19 Tom Tromey <tromey@redhat.com>
2547 Gary Benson <gbenson@redhat.com>
2548
2549 * common/common-types.h: New file.
2550 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
2551 * common/common-defs.h: Include common-types.h.
2552 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
2553 (ULONGEST): Remove.
2554
ef87c8bb
GB
25552014-08-19 Tom Tromey <tromey@redhat.com>
2556 Gary Benson <gbenson@redhat.com>
2557
2558 * common/errors.h: New file.
2559 * common/errors.c: Likewise.
2560 * Makefile.in (SFILES): Add common/errors.c.
2561 (HFILES_NO_SRCDIR): Add common/errors.h.
2562 (COMMON_OBS): Add errors.o.
2563 (errors.o): New rule.
2564 * common/common-defs.h: Include errors.h.
2565 * utils.h (perror_with_name, error, verror, warning, vwarning):
2566 Don't declare.
2567 * common/common-utils.h: (malloc_failure, internal_error):
2568 Likewise.
2569
196a707b
GB
25702014-08-19 Gary Benson <gbenson@redhat.com>
2571
2572 * utils.c (internal_vproblem): Always print the message.
2573
ded4fc8f
DE
25742014-08-18 Doug Evans <dje@google.com>
2575
2576 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
2577
950c97d8
JB
25782014-08-18 Joel Brobecker <brobecker@adacore.com>
2579
2580 * ada-typeprint.c (type_is_full_subrange_of_target_type):
2581 Return 0 if TYPE is dynamic.
2582 (print_range): Add handling of dynamic ranges.
2583
3cdcd0ce
JB
25842014-08-18 Keven Boell <keven.boell@intel.com>
2585 Joel Brobecker <brobecker@adacore.com>
2586
2587 * gdbtypes.h (struct main_type): Add field "data_location".
2588 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
2589 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
2590 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
2591 a dynamic data location.
2592 (resolve_dynamic_type): Add DW_AT_data_location handling.
2593 (copy_recursive, copy_type): Copy the data_location information
2594 when present.
2595 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
2596 * value.c (value_from_contents_and_address): Add
2597 DW_AT_data_location handling.
2598
08412b07
JB
25992014-08-18 Keven Boell <keven.boell@intel.com>
2600 Joel Brobecker <brobecker@adacore.com>
2601
2602 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
2603 field "get_object_address".
2604 * dwarf2expr.c (execute_stack_op): Add handling for
2605 DW_OP_push_object_address.
2606 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
2607 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
2608 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
2609 (dwarf_expr_get_obj_addr): New function.
2610 (dwarf_expr_ctx_funcs): Add get_object_address field.
2611 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
2612 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
2613 (dwarf2_evaluate_property): Add parameter "address". Use it.
2614 (needs_get_obj_addr): New function.
2615 (needs_frame_ctx_funcs): Add get_object_address field.
2616 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
2617 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
2618 (resolve_dynamic_array): Likewise.
2619
84754697
JB
26202014-08-18 Joel Brobecker <brobecker@adacore.com>
2621
2622 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
2623 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
2624 fixed value for records and unions for which some GNAT encodings
2625 are present.
2626
da5c522f
JB
26272014-08-18 Joel Brobecker <brobecker@adacore.com>
2628
2629 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
2630 rewrite to avoid "else if" and "else" constructs. Should be
2631 a no-op in practice.
2632
0d72a7c3
JB
26332014-08-18 Joel Brobecker <brobecker@adacore.com>
2634
2635 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
2636 of lexical block.
2637
e66d4446
SC
26382014-08-15 Siva Chandra Reddy <sivachandra@google.com>
2639
2640 PR c++/17132
2641 * eval.c: Update all calls to find_overload_match.
2642 * valarith.c: Likewise.
2643 (value_user_defined_cpp_op, value_user_defined_op): New
2644 argument NOSIDE. Update all callers.
2645 * valops.c (find_overload_match): New argument NOSIDE.
2646 * value.h (find_overload_match): Update signature.
2647
940df408
SC
26482014-08-15 Siva Chandra Reddy <sivachandra@google.com>
2649
2650 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
2651 'items' methods instead of 'iteritems' method on dictionaries.
2652
699ca60a
DE
26532014-08-15 Doug Evans <dje@google.com>
2654
2655 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
2656 closer to use.
2657
37780ee5
DE
26582014-08-15 Doug Evans <dje@google.com>
2659
2660 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
2661
0ad93d4f
DE
26622014-08-15 Doug Evans <dje@google.com>
2663
2664 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
2665
20d8c372
DE
26662014-08-15 Doug Evans <dje@google.com>
2667
2668 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
2669 unused.
2670
cb039ba4
EZ
26712014-08-15 Eli Zaretskii <eliz@gnu.org>
2672
2673 * dcache.h: Include target.h, to avoid compile time warnings.
2674
eb7a547a
JB
26752014-08-15 Joel Brobecker <brobecker@adacore.com>
2676
2677 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
2678 frame_info" partial declaration.
2679 * gdbarch.h: Regenerate.
2680
783cecc8
YQ
26812014-08-15 Yao Qi <yao@codesourcery.com>
2682
2683 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
2684 Add parameter 'decode_for_pst_p'. Callers update.
2685
65c749e7
YQ
26862014-08-13 Yao Qi <yao@codesourcery.com>
2687
2688 PR build/17104
2689 * configure.ac: Use local variable 'pos'.
2690 * configure: Regenerated.
2691
d769e349
DE
26922014-08-11 Doug Evans <dje@google.com>
2693
2694 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
2695 message, it is redundant with "Reading symbols from ..." message.
2696
24f1235e
DE
26972014-08-10 Doug Evans <xdje42@gmail.com>
2698
2699 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
2700
dcd2e6ef
YQ
27012014-08-09 Yao Qi <yao@codesourcery.com>
2702
2703 PR remote/9053
2704 * remote.c (remote_xfer_partial): Remove dead code.
2705
070bdf0b
AA
27062014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2707
2708 * ia64-linux-tdep.c: Include "regset.h".
2709 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
2710 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
2711 (ia64_linux_supply_fpregset): New function.
2712 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
2713 (ia64_linux_regset_from_core_section): New function.
2714 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
2715 method.
2716
08f9f542
AA
27172014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2718
2719 * m68klinux-tdep.c: Include "regset.h".
2720 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
2721 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
2722 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
2723 (m68k_linux_regset_from_core_section): New function.
2724 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
2725 method.
2726
8f1cee41
AA
27272014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2728
2729 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
2730 function. Move logic to...
2731 (tilegx_linux_regmap): ... this new register map.
2732 (tilegx_linux_regset): Refer to register map, replace supply
2733 method by regcache_supply_regset, and add collect method.
2734 * tilegx-tdep.h (enum tilegx_regnum): New enum value
2735 TILEGX_FIRST_EASY_REGNUM.
2736
c5741217
AA
27372014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2738
2739 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
2740 that calls regcache_supply_regset and handles the EPC register
2741 separately. Move main logic to...
2742 (score7_linux_gregmap): ... this new register map.
2743 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
2744 (score7_linux_gregset): Refer to register map. Add collect method.
2745 (score7_linux_regset_from_core_section): Replace
2746 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
2747 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
2748 (struct regset): Delete unused forward declaraction.
2749 (struct pt_regs): Delete structure definition.
2750 (elf_gregset_t): Delete typedef.
2751
81580573
AA
27522014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2753
2754 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
2755 (nios2_core_regset): Add collect method.
2756
ba199d7d
AA
27572014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2758
2759 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
2760 platform-independent and don't write to read-only input buffer.
2761 (m32r_linux_collect_gregset): New function.
2762 (m32r_linux_gregset): Add collect method.
2763
0006a9da
AA
27642014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2765
2766 * hppa-linux-tdep.c (greg_map): Rename to...
2767 (hppa_linux_gregmap): ... this. Also convert to
2768 regcache_map_entry format.
2769 (hppa_linux_supply_regset): Delete function.
2770 (hppa_linux_supply_fpregset): Delete function. Move logic to...
2771 (hppa_linux_fpregmap): ... this new register map.
2772 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
2773 register map, replace supply method by regcache_supply_regset, and
2774 add collect method regcache_collect_regset.
2775
901e1b23
AA
27762014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2777
2778 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
2779 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
2780 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
2781 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
2782 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
2783 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
2784 (frv_linux_supply_gregset): Replace main logic by call to
2785 regcache_supply_regset, but keep clearing gr32-gr63.
2786 (frv_linux_supply_fpregset): Delete function.
2787 (frv_linux_gregset): Refer to appropriate register map and add
2788 regcache_collect_regset as the collect method.
2789 (frv_linux_fpregset): Likewise. Also exchange the supply method
2790 by regcache_supply_regset.
2791
1d6e7555
AA
27922014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2793
2794 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
2795 by call to alpha_supply_int_regs.
2796 (alpha_linux_collect_gregset): New function.
2797 (alpha_linux_supply_fpregset): Replace logic by call to
2798 alpha_supply_fp_regs.
2799 (alpha_linux_collect_fpregset): New function.
2800 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
2801
d4d793bf
AA
28022014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2803
2804 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
2805 by call to regcache_collect_regset.
2806 (supply_gregset, supply_fpregset): Call regcache_supply_regset
2807 instead of aarch64_linux_supply_gregset/_fpregset.
2808 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
2809 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
2810 header file instead.
2811 (aarch64_linux_supply_gregset, supply_gregset_from_core)
2812 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
2813 functions. Move logic to ...
2814 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
2815 register maps.
2816 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
2817 refer to new register maps, replace *_regset_from_core by
2818 regcache_supply_regset, and also use regcache_collect_regset.
2819 * aarch64-linux-tdep.h: Include "regset.h".
2820 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
2821 Delete prototypes.
2822 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
2823 macros, moved from C source file.
2824 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
2825 variable declarations.
2826
99b7da5d
AA
28272014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2828
2829 * s390-linux-nat.c: Include "regset.h".
2830 (regmap_gregset): Delete macro.
2831 (s390_64_regmap_gregset): New register map for
2832 regcache_supply/_collect_regset.
2833 (s390_64_gregset): New regset.
2834 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
2835 (regmap_fpregset): Delete macro.
2836 (s390_native_supply, s390_native_collect): Delete functions.
2837 (supply_gregset, fill_gregset): Replace s390-specific regmap
2838 handling by a call to regcache_supply/_collect_regset.
2839 (supply_fpregset, fill_fpregset): Call regcache_supply/
2840 _collect_regset instead of s390_native_supply/_collect.
2841 (fetch_regset, store_regset): Likewise. Also change the last
2842 parameter to a regset instead of a regmap.
2843 (s390_linux_fetch_inferior_registers)
2844 (390_linux_store_inferior_registers): Adjust last parameter in
2845 calls to fetch_regset and store_regset.
2846 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
2847 (s390_gregmap): ... this. Also make static const and convert to
2848 regcache_map_entry format.
2849 (s390x_regmap_gregset): Delete.
2850 (s390_regmap_fpregset): Rename to...
2851 (s390_fpregmap): ... this. Make static const and convert to
2852 regcache_map_entry format.
2853 (s390_regmap_upper, s390_regmap_last_break)
2854 (s390x_regmap_last_break, s390_regmap_system_call)
2855 (s390_regmap_tdb): Likewise.
2856 (s390_supply_regset, s390_collect_regset): Remove functions.
2857 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
2858 s390_supply_regset.
2859 (s390_gregset, s390_fpregset, s390_upper_regset)
2860 (s390_last_break_regset, s390x_last_break_regset)
2861 (s390_system_call_regset, s390_tdb_regset): Make global and
2862 replace s390_supply/_collect_regset by regcache_supply/
2863 _collect_regset.
2864 (s390x_gregset): Delete.
2865 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
2866 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
2867 (s390_regmap_fpregset, s390_regmap_last_break)
2868 (s390x_regmap_last_break, s390_regmap_system_call)
2869 (s390_regmap_tdb): Delete global variable declarations.
2870 (s390_gregset, s390_fpregset, s390_last_break_regset)
2871 (s390x_last_break_regset, s390_system_call_regset)
2872 (s390_tdb_regset): New global variable declarations.
2873
0b309272
AA
28742014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2875
2876 * regcache.c: Include "regset.h".
2877 (regcache_transfer_regset): New local function.
2878 (regcache_supply_regset, regcache_collect_regset): New functions.
2879 * regcache.h (struct regcache_map_entry): New structure.
2880 (REGCACHE_MAP_SKIP): New enum value.
2881 (regcache_supply_regset, regcache_collect_regset): New prototypes.
2882
7fefa8d7
AA
28832014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2884
2885 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
2886 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
2887 (ppc_linux_collect_gregset ): Likewise.
2888 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
2889 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
2890 (ppc_collect_vrregset): Likewise.
2891 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
2892 Likewise.
2893
96c4f946
YQ
28942014-08-07 Yao Qi <yao@codesourcery.com>
2895
2896 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
2897 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
2898 * remote.c (remote_read_bytes): Likewise.
2899
fffbe6a8
YQ
29002014-08-07 Yao Qi <yao@codesourcery.com>
2901
2902 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
2903
5ee8a82c
YQ
29042014-08-07 Yao Qi <yao@codesourcery.com>
2905
2906 PR remote/17230
2907 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
2908 TARGET_XFER_OK instead of 0.
2909
bb974a24
GB
29102014-08-07 Gary Benson <gbenson@redhat.com>
2911
2912 * common/common-defs.h: Include errno.h.
2913 * defs.h: Do not include errno.h.
2914 * ada-typeprint.c: Likewise.
2915 * c-typeprint.c: Likewise.
2916 * core-regset.c: Likewise.
2917 * corefile.c: Likewise.
2918 * corelow.c: Likewise.
2919 * event-loop.c: Likewise.
2920 * f-typeprint.c: Likewise.
2921 * gnu-nat.c: Likewise.
2922 * go32-nat.c: Likewise.
2923 * i386gnu-nat.c: Likewise.
2924 * m2-typeprint.c: Likewise.
2925 * nat/linux-btrace.c: Likewise.
2926 * p-typeprint.c: Likewise.
2927 * procfs.c: Likewise.
2928 * remote-sim.c: Likewise.
2929 * rs6000-nat.c: Likewise.
2930 * target.c: Likewise.
2931 * typeprint.c: Likewise.
2932 * ui-file.c: Likewise.
2933 * valops.c: Likewise.
2934 * valprint.c: Likewise.
2935
6d3d12eb
GB
29362014-08-07 Gary Benson <gbenson@redhat.com>
2937
2938 * common/common-defs.h: Include string.h.
2939 * aarch64-tdep.c: Do not include string.h.
2940 * ada-exp.y: Likewise.
2941 * ada-lang.c: Likewise.
2942 * ada-lex.l: Likewise.
2943 * ada-typeprint.c: Likewise.
2944 * ada-valprint.c: Likewise.
2945 * aix-thread.c: Likewise.
2946 * alpha-linux-tdep.c: Likewise.
2947 * alpha-mdebug-tdep.c: Likewise.
2948 * alpha-nat.c: Likewise.
2949 * alpha-osf1-tdep.c: Likewise.
2950 * alpha-tdep.c: Likewise.
2951 * alphanbsd-tdep.c: Likewise.
2952 * amd64-dicos-tdep.c: Likewise.
2953 * amd64-linux-tdep.c: Likewise.
2954 * amd64-nat.c: Likewise.
2955 * amd64-sol2-tdep.c: Likewise.
2956 * amd64fbsd-tdep.c: Likewise.
2957 * amd64obsd-tdep.c: Likewise.
2958 * arch-utils.c: Likewise.
2959 * arm-linux-nat.c: Likewise.
2960 * arm-linux-tdep.c: Likewise.
2961 * arm-tdep.c: Likewise.
2962 * arm-wince-tdep.c: Likewise.
2963 * armbsd-tdep.c: Likewise.
2964 * armnbsd-nat.c: Likewise.
2965 * armnbsd-tdep.c: Likewise.
2966 * armobsd-tdep.c: Likewise.
2967 * avr-tdep.c: Likewise.
2968 * ax-gdb.c: Likewise.
2969 * ax-general.c: Likewise.
2970 * bcache.c: Likewise.
2971 * bfin-tdep.c: Likewise.
2972 * breakpoint.c: Likewise.
2973 * build-id.c: Likewise.
2974 * buildsym.c: Likewise.
2975 * c-exp.y: Likewise.
2976 * c-lang.c: Likewise.
2977 * c-typeprint.c: Likewise.
2978 * c-valprint.c: Likewise.
2979 * charset.c: Likewise.
2980 * cli-out.c: Likewise.
2981 * cli/cli-cmds.c: Likewise.
2982 * cli/cli-decode.c: Likewise.
2983 * cli/cli-dump.c: Likewise.
2984 * cli/cli-interp.c: Likewise.
2985 * cli/cli-logging.c: Likewise.
2986 * cli/cli-script.c: Likewise.
2987 * cli/cli-setshow.c: Likewise.
2988 * cli/cli-utils.c: Likewise.
2989 * coffread.c: Likewise.
2990 * common/agent.c: Likewise.
2991 * common/buffer.c: Likewise.
2992 * common/buffer.h: Likewise.
2993 * common/common-utils.c: Likewise.
2994 * common/filestuff.c: Likewise.
2995 * common/filestuff.c: Likewise.
2996 * common/format.c: Likewise.
2997 * common/print-utils.c: Likewise.
2998 * common/rsp-low.c: Likewise.
2999 * common/signals.c: Likewise.
3000 * common/vec.h: Likewise.
3001 * common/xml-utils.c: Likewise.
3002 * core-regset.c: Likewise.
3003 * corefile.c: Likewise.
3004 * corelow.c: Likewise.
3005 * cp-abi.c: Likewise.
3006 * cp-name-parser.y: Likewise.
3007 * cp-support.c: Likewise.
3008 * cp-valprint.c: Likewise.
3009 * cris-tdep.c: Likewise.
3010 * d-exp.y: Likewise.
3011 * darwin-nat.c: Likewise.
3012 * dbxread.c: Likewise.
3013 * dcache.c: Likewise.
3014 * demangle.c: Likewise.
3015 * dicos-tdep.c: Likewise.
3016 * disasm.c: Likewise.
3017 * doublest.c: Likewise.
3018 * dsrec.c: Likewise.
3019 * dummy-frame.c: Likewise.
3020 * dwarf2-frame.c: Likewise.
3021 * dwarf2loc.c: Likewise.
3022 * dwarf2read.c: Likewise.
3023 * elfread.c: Likewise.
3024 * environ.c: Likewise.
3025 * eval.c: Likewise.
3026 * event-loop.c: Likewise.
3027 * exceptions.c: Likewise.
3028 * exec.c: Likewise.
3029 * expprint.c: Likewise.
3030 * f-exp.y: Likewise.
3031 * f-lang.c: Likewise.
3032 * f-typeprint.c: Likewise.
3033 * f-valprint.c: Likewise.
3034 * fbsd-nat.c: Likewise.
3035 * findcmd.c: Likewise.
3036 * findvar.c: Likewise.
3037 * fork-child.c: Likewise.
3038 * frame.c: Likewise.
3039 * frv-linux-tdep.c: Likewise.
3040 * frv-tdep.c: Likewise.
3041 * gdb.c: Likewise.
3042 * gdb_bfd.c: Likewise.
3043 * gdbarch.c: Likewise.
3044 * gdbarch.sh: Likewise.
3045 * gdbtypes.c: Likewise.
3046 * gnu-nat.c: Likewise.
3047 * gnu-v2-abi.c: Likewise.
3048 * gnu-v3-abi.c: Likewise.
3049 * go-exp.y: Likewise.
3050 * go-lang.c: Likewise.
3051 * go32-nat.c: Likewise.
3052 * guile/guile.c: Likewise.
3053 * guile/scm-auto-load.c: Likewise.
3054 * hppa-hpux-tdep.c: Likewise.
3055 * hppa-linux-nat.c: Likewise.
3056 * hppanbsd-tdep.c: Likewise.
3057 * hppaobsd-tdep.c: Likewise.
3058 * i386-cygwin-tdep.c: Likewise.
3059 * i386-dicos-tdep.c: Likewise.
3060 * i386-linux-tdep.c: Likewise.
3061 * i386-nto-tdep.c: Likewise.
3062 * i386-sol2-tdep.c: Likewise.
3063 * i386-tdep.c: Likewise.
3064 * i386bsd-tdep.c: Likewise.
3065 * i386gnu-nat.c: Likewise.
3066 * i386nbsd-tdep.c: Likewise.
3067 * i386obsd-tdep.c: Likewise.
3068 * i387-tdep.c: Likewise.
3069 * ia64-libunwind-tdep.c: Likewise.
3070 * ia64-linux-nat.c: Likewise.
3071 * inf-child.c: Likewise.
3072 * inf-ptrace.c: Likewise.
3073 * inf-ttrace.c: Likewise.
3074 * infcall.c: Likewise.
3075 * infcmd.c: Likewise.
3076 * inflow.c: Likewise.
3077 * infrun.c: Likewise.
3078 * interps.c: Likewise.
3079 * iq2000-tdep.c: Likewise.
3080 * irix5-nat.c: Likewise.
3081 * jv-exp.y: Likewise.
3082 * jv-lang.c: Likewise.
3083 * jv-typeprint.c: Likewise.
3084 * jv-valprint.c: Likewise.
3085 * language.c: Likewise.
3086 * linux-fork.c: Likewise.
3087 * linux-nat.c: Likewise.
3088 * lm32-tdep.c: Likewise.
3089 * m2-exp.y: Likewise.
3090 * m2-typeprint.c: Likewise.
3091 * m32c-tdep.c: Likewise.
3092 * m32r-linux-nat.c: Likewise.
3093 * m32r-linux-tdep.c: Likewise.
3094 * m32r-rom.c: Likewise.
3095 * m32r-tdep.c: Likewise.
3096 * m68hc11-tdep.c: Likewise.
3097 * m68k-tdep.c: Likewise.
3098 * m68kbsd-tdep.c: Likewise.
3099 * m68klinux-nat.c: Likewise.
3100 * m68klinux-tdep.c: Likewise.
3101 * m88k-tdep.c: Likewise.
3102 * machoread.c: Likewise.
3103 * macrocmd.c: Likewise.
3104 * main.c: Likewise.
3105 * mdebugread.c: Likewise.
3106 * mem-break.c: Likewise.
3107 * memattr.c: Likewise.
3108 * memory-map.c: Likewise.
3109 * mep-tdep.c: Likewise.
3110 * mi/mi-cmd-break.c: Likewise.
3111 * mi/mi-cmd-disas.c: Likewise.
3112 * mi/mi-cmd-env.c: Likewise.
3113 * mi/mi-cmd-stack.c: Likewise.
3114 * mi/mi-cmd-var.c: Likewise.
3115 * mi/mi-cmds.c: Likewise.
3116 * mi/mi-console.c: Likewise.
3117 * mi/mi-getopt.c: Likewise.
3118 * mi/mi-interp.c: Likewise.
3119 * mi/mi-main.c: Likewise.
3120 * mi/mi-parse.c: Likewise.
3121 * microblaze-rom.c: Likewise.
3122 * microblaze-tdep.c: Likewise.
3123 * mingw-hdep.c: Likewise.
3124 * minidebug.c: Likewise.
3125 * minsyms.c: Likewise.
3126 * mips-irix-tdep.c: Likewise.
3127 * mips-linux-tdep.c: Likewise.
3128 * mips-tdep.c: Likewise.
3129 * mips64obsd-tdep.c: Likewise.
3130 * mipsnbsd-tdep.c: Likewise.
3131 * mipsread.c: Likewise.
3132 * mn10300-linux-tdep.c: Likewise.
3133 * mn10300-tdep.c: Likewise.
3134 * monitor.c: Likewise.
3135 * moxie-tdep.c: Likewise.
3136 * mt-tdep.c: Likewise.
3137 * nat/linux-btrace.c: Likewise.
3138 * nat/linux-osdata.c: Likewise.
3139 * nat/linux-procfs.c: Likewise.
3140 * nat/linux-ptrace.c: Likewise.
3141 * nat/linux-waitpid.c: Likewise.
3142 * nbsd-tdep.c: Likewise.
3143 * nios2-linux-tdep.c: Likewise.
3144 * nto-procfs.c: Likewise.
3145 * nto-tdep.c: Likewise.
3146 * objc-lang.c: Likewise.
3147 * objfiles.c: Likewise.
3148 * opencl-lang.c: Likewise.
3149 * osabi.c: Likewise.
3150 * osdata.c: Likewise.
3151 * p-exp.y: Likewise.
3152 * p-lang.c: Likewise.
3153 * p-typeprint.c: Likewise.
3154 * parse.c: Likewise.
3155 * posix-hdep.c: Likewise.
3156 * ppc-linux-nat.c: Likewise.
3157 * ppc-sysv-tdep.c: Likewise.
3158 * ppcfbsd-tdep.c: Likewise.
3159 * ppcnbsd-tdep.c: Likewise.
3160 * ppcobsd-tdep.c: Likewise.
3161 * printcmd.c: Likewise.
3162 * procfs.c: Likewise.
3163 * prologue-value.c: Likewise.
3164 * python/py-auto-load.c: Likewise.
3165 * python/py-gdb-readline.c: Likewise.
3166 * ravenscar-thread.c: Likewise.
3167 * regcache.c: Likewise.
3168 * registry.c: Likewise.
3169 * remote-fileio.c: Likewise.
3170 * remote-m32r-sdi.c: Likewise.
3171 * remote-mips.c: Likewise.
3172 * remote-notif.c: Likewise.
3173 * remote-sim.c: Likewise.
3174 * remote.c: Likewise.
3175 * reverse.c: Likewise.
3176 * rs6000-aix-tdep.c: Likewise.
3177 * ser-base.c: Likewise.
3178 * ser-go32.c: Likewise.
3179 * ser-mingw.c: Likewise.
3180 * ser-pipe.c: Likewise.
3181 * ser-tcp.c: Likewise.
3182 * ser-unix.c: Likewise.
3183 * serial.c: Likewise.
3184 * sh-tdep.c: Likewise.
3185 * sh64-tdep.c: Likewise.
3186 * shnbsd-tdep.c: Likewise.
3187 * skip.c: Likewise.
3188 * sol-thread.c: Likewise.
3189 * solib-dsbt.c: Likewise.
3190 * solib-frv.c: Likewise.
3191 * solib-osf.c: Likewise.
3192 * solib-som.c: Likewise.
3193 * solib-spu.c: Likewise.
3194 * solib-target.c: Likewise.
3195 * solib.c: Likewise.
3196 * somread.c: Likewise.
3197 * source.c: Likewise.
3198 * sparc-nat.c: Likewise.
3199 * sparc-sol2-tdep.c: Likewise.
3200 * sparc-tdep.c: Likewise.
3201 * sparc64-tdep.c: Likewise.
3202 * sparc64fbsd-tdep.c: Likewise.
3203 * sparc64nbsd-tdep.c: Likewise.
3204 * sparcnbsd-tdep.c: Likewise.
3205 * spu-linux-nat.c: Likewise.
3206 * spu-multiarch.c: Likewise.
3207 * spu-tdep.c: Likewise.
3208 * stabsread.c: Likewise.
3209 * stack.c: Likewise.
3210 * std-regs.c: Likewise.
3211 * symfile.c: Likewise.
3212 * symmisc.c: Likewise.
3213 * symtab.c: Likewise.
3214 * target.c: Likewise.
3215 * thread.c: Likewise.
3216 * tilegx-linux-nat.c: Likewise.
3217 * tilegx-tdep.c: Likewise.
3218 * top.c: Likewise.
3219 * tracepoint.c: Likewise.
3220 * tui/tui-command.c: Likewise.
3221 * tui/tui-data.c: Likewise.
3222 * tui/tui-disasm.c: Likewise.
3223 * tui/tui-file.c: Likewise.
3224 * tui/tui-layout.c: Likewise.
3225 * tui/tui-out.c: Likewise.
3226 * tui/tui-regs.c: Likewise.
3227 * tui/tui-source.c: Likewise.
3228 * tui/tui-stack.c: Likewise.
3229 * tui/tui-win.c: Likewise.
3230 * tui/tui-windata.c: Likewise.
3231 * tui/tui-winsource.c: Likewise.
3232 * typeprint.c: Likewise.
3233 * ui-file.c: Likewise.
3234 * ui-out.c: Likewise.
3235 * user-regs.c: Likewise.
3236 * utils.c: Likewise.
3237 * v850-tdep.c: Likewise.
3238 * valarith.c: Likewise.
3239 * valops.c: Likewise.
3240 * valprint.c: Likewise.
3241 * value.c: Likewise.
3242 * varobj.c: Likewise.
3243 * vax-tdep.c: Likewise.
3244 * vaxnbsd-tdep.c: Likewise.
3245 * vaxobsd-tdep.c: Likewise.
3246 * windows-nat.c: Likewise.
3247 * xcoffread.c: Likewise.
3248 * xml-support.c: Likewise.
3249 * xstormy16-tdep.c: Likewise.
3250 * xtensa-linux-nat.c: Likewise.
3251
dccbb609
GB
32522014-08-07 Gary Benson <gbenson@redhat.com>
3253
3254 * common/common-defs.h: Include gdb_assert.h.
3255 * aarch64-tdep.c: Do not include gdb_assert.h.
3256 * addrmap.c: Likewise.
3257 * aix-thread.c: Likewise.
3258 * alpha-linux-tdep.c: Likewise.
3259 * alpha-mdebug-tdep.c: Likewise.
3260 * alphanbsd-tdep.c: Likewise.
3261 * amd64-nat.c: Likewise.
3262 * amd64-tdep.c: Likewise.
3263 * amd64bsd-nat.c: Likewise.
3264 * amd64fbsd-nat.c: Likewise.
3265 * amd64fbsd-tdep.c: Likewise.
3266 * amd64nbsd-nat.c: Likewise.
3267 * amd64nbsd-tdep.c: Likewise.
3268 * amd64obsd-nat.c: Likewise.
3269 * amd64obsd-tdep.c: Likewise.
3270 * arch-utils.c: Likewise.
3271 * arm-tdep.c: Likewise.
3272 * armbsd-tdep.c: Likewise.
3273 * auxv.c: Likewise.
3274 * bcache.c: Likewise.
3275 * bfin-tdep.c: Likewise.
3276 * blockframe.c: Likewise.
3277 * breakpoint.c: Likewise.
3278 * bsd-kvm.c: Likewise.
3279 * bsd-uthread.c: Likewise.
3280 * buildsym.c: Likewise.
3281 * c-exp.y: Likewise.
3282 * c-lang.c: Likewise.
3283 * charset.c: Likewise.
3284 * cleanups.c: Likewise.
3285 * cli-out.c: Likewise.
3286 * cli/cli-decode.c: Likewise.
3287 * cli/cli-dump.c: Likewise.
3288 * cli/cli-logging.c: Likewise.
3289 * cli/cli-script.c: Likewise.
3290 * cli/cli-utils.c: Likewise.
3291 * coffread.c: Likewise.
3292 * common/common-utils.c: Likewise.
3293 * common/queue.h: Likewise.
3294 * common/signals.c: Likewise.
3295 * common/vec.h: Likewise.
3296 * complaints.c: Likewise.
3297 * completer.c: Likewise.
3298 * corelow.c: Likewise.
3299 * cp-abi.c: Likewise.
3300 * cp-name-parser.y: Likewise.
3301 * cp-namespace.c: Likewise.
3302 * cp-support.c: Likewise.
3303 * cris-tdep.c: Likewise.
3304 * dbxread.c: Likewise.
3305 * dictionary.c: Likewise.
3306 * doublest.c: Likewise.
3307 * dsrec.c: Likewise.
3308 * dummy-frame.c: Likewise.
3309 * dwarf2-frame-tailcall.c: Likewise.
3310 * dwarf2-frame.c: Likewise.
3311 * dwarf2expr.c: Likewise.
3312 * dwarf2loc.c: Likewise.
3313 * dwarf2read.c: Likewise.
3314 * eval.c: Likewise.
3315 * event-loop.c: Likewise.
3316 * exceptions.c: Likewise.
3317 * expprint.c: Likewise.
3318 * f-valprint.c: Likewise.
3319 * fbsd-nat.c: Likewise.
3320 * findvar.c: Likewise.
3321 * frame-unwind.c: Likewise.
3322 * frame.c: Likewise.
3323 * frv-tdep.c: Likewise.
3324 * gcore.c: Likewise.
3325 * gdb-dlfcn.c: Likewise.
3326 * gdb_bfd.c: Likewise.
3327 * gdbarch.c: Likewise.
3328 * gdbarch.sh: Likewise.
3329 * gdbtypes.c: Likewise.
3330 * gnu-nat.c: Likewise.
3331 * gnu-v3-abi.c: Likewise.
3332 * go-lang.c: Likewise.
3333 * guile/scm-exception.c: Likewise.
3334 * guile/scm-gsmob.c: Likewise.
3335 * guile/scm-lazy-string.c: Likewise.
3336 * guile/scm-math.c: Likewise.
3337 * guile/scm-pretty-print.c: Likewise.
3338 * guile/scm-safe-call.c: Likewise.
3339 * guile/scm-utils.c: Likewise.
3340 * guile/scm-value.c: Likewise.
3341 * h8300-tdep.c: Likewise.
3342 * hppa-hpux-nat.c: Likewise.
3343 * hppa-tdep.c: Likewise.
3344 * hppanbsd-tdep.c: Likewise.
3345 * hppaobsd-tdep.c: Likewise.
3346 * i386-darwin-nat.c: Likewise.
3347 * i386-darwin-tdep.c: Likewise.
3348 * i386-nto-tdep.c: Likewise.
3349 * i386-tdep.c: Likewise.
3350 * i386bsd-nat.c: Likewise.
3351 * i386fbsd-tdep.c: Likewise.
3352 * i386gnu-nat.c: Likewise.
3353 * i386nbsd-tdep.c: Likewise.
3354 * i386obsd-tdep.c: Likewise.
3355 * i387-tdep.c: Likewise.
3356 * ia64-libunwind-tdep.c: Likewise.
3357 * ia64-tdep.c: Likewise.
3358 * inf-ptrace.c: Likewise.
3359 * inf-ttrace.c: Likewise.
3360 * infcall.c: Likewise.
3361 * infcmd.c: Likewise.
3362 * infrun.c: Likewise.
3363 * inline-frame.c: Likewise.
3364 * interps.c: Likewise.
3365 * jv-lang.c: Likewise.
3366 * jv-typeprint.c: Likewise.
3367 * linux-fork.c: Likewise.
3368 * linux-nat.c: Likewise.
3369 * linux-thread-db.c: Likewise.
3370 * m32c-tdep.c: Likewise.
3371 * m32r-linux-nat.c: Likewise.
3372 * m32r-tdep.c: Likewise.
3373 * m68k-tdep.c: Likewise.
3374 * m68kbsd-nat.c: Likewise.
3375 * m68kbsd-tdep.c: Likewise.
3376 * m88k-tdep.c: Likewise.
3377 * machoread.c: Likewise.
3378 * macroexp.c: Likewise.
3379 * macrotab.c: Likewise.
3380 * maint.c: Likewise.
3381 * mdebugread.c: Likewise.
3382 * memory-map.c: Likewise.
3383 * mep-tdep.c: Likewise.
3384 * mi/mi-common.c: Likewise.
3385 * microblaze-tdep.c: Likewise.
3386 * mingw-hdep.c: Likewise.
3387 * mips-linux-nat.c: Likewise.
3388 * mips-linux-tdep.c: Likewise.
3389 * mips-tdep.c: Likewise.
3390 * mips64obsd-tdep.c: Likewise.
3391 * mipsnbsd-tdep.c: Likewise.
3392 * mn10300-linux-tdep.c: Likewise.
3393 * mn10300-tdep.c: Likewise.
3394 * moxie-tdep.c: Likewise.
3395 * mt-tdep.c: Likewise.
3396 * nat/linux-btrace.c: Likewise.
3397 * nat/linux-osdata.c: Likewise.
3398 * nat/linux-ptrace.c: Likewise.
3399 * nat/mips-linux-watch.c: Likewise.
3400 * nios2-linux-tdep.c: Likewise.
3401 * nios2-tdep.c: Likewise.
3402 * objc-lang.c: Likewise.
3403 * objfiles.c: Likewise.
3404 * obsd-nat.c: Likewise.
3405 * opencl-lang.c: Likewise.
3406 * osabi.c: Likewise.
3407 * parse.c: Likewise.
3408 * ppc-linux-nat.c: Likewise.
3409 * ppc-sysv-tdep.c: Likewise.
3410 * ppcfbsd-nat.c: Likewise.
3411 * ppcfbsd-tdep.c: Likewise.
3412 * ppcnbsd-nat.c: Likewise.
3413 * ppcnbsd-tdep.c: Likewise.
3414 * ppcobsd-nat.c: Likewise.
3415 * ppcobsd-tdep.c: Likewise.
3416 * printcmd.c: Likewise.
3417 * procfs.c: Likewise.
3418 * prologue-value.c: Likewise.
3419 * psymtab.c: Likewise.
3420 * python/py-lazy-string.c: Likewise.
3421 * python/py-value.c: Likewise.
3422 * regcache.c: Likewise.
3423 * reggroups.c: Likewise.
3424 * registry.c: Likewise.
3425 * remote-sim.c: Likewise.
3426 * remote.c: Likewise.
3427 * rs6000-aix-tdep.c: Likewise.
3428 * rs6000-tdep.c: Likewise.
3429 * s390-linux-tdep.c: Likewise.
3430 * score-tdep.c: Likewise.
3431 * ser-base.c: Likewise.
3432 * ser-mingw.c: Likewise.
3433 * sh-tdep.c: Likewise.
3434 * sh64-tdep.c: Likewise.
3435 * solib-darwin.c: Likewise.
3436 * solib-spu.c: Likewise.
3437 * solib-svr4.c: Likewise.
3438 * source.c: Likewise.
3439 * sparc-nat.c: Likewise.
3440 * sparc-sol2-tdep.c: Likewise.
3441 * sparc-tdep.c: Likewise.
3442 * sparc64-sol2-tdep.c: Likewise.
3443 * sparc64-tdep.c: Likewise.
3444 * sparc64fbsd-tdep.c: Likewise.
3445 * sparc64nbsd-tdep.c: Likewise.
3446 * sparc64obsd-tdep.c: Likewise.
3447 * sparcnbsd-tdep.c: Likewise.
3448 * sparcobsd-tdep.c: Likewise.
3449 * spu-multiarch.c: Likewise.
3450 * spu-tdep.c: Likewise.
3451 * stabsread.c: Likewise.
3452 * stack.c: Likewise.
3453 * symfile.c: Likewise.
3454 * symtab.c: Likewise.
3455 * target-descriptions.c: Likewise.
3456 * target-memory.c: Likewise.
3457 * target.c: Likewise.
3458 * tic6x-linux-tdep.c: Likewise.
3459 * tic6x-tdep.c: Likewise.
3460 * tilegx-linux-nat.c: Likewise.
3461 * tilegx-tdep.c: Likewise.
3462 * top.c: Likewise.
3463 * tramp-frame.c: Likewise.
3464 * tui/tui-out.c: Likewise.
3465 * tui/tui-winsource.c: Likewise.
3466 * ui-out.c: Likewise.
3467 * user-regs.c: Likewise.
3468 * utils.c: Likewise.
3469 * v850-tdep.c: Likewise.
3470 * valops.c: Likewise.
3471 * value.c: Likewise.
3472 * varobj.c: Likewise.
3473 * vax-nat.c: Likewise.
3474 * xml-syscall.c: Likewise.
3475 * xml-tdesc.c: Likewise.
3476 * xstormy16-tdep.c: Likewise.
3477 * xtensa-linux-nat.c: Likewise.
3478 * xtensa-tdep.c: Likewise.
3479
e76df0d0
GB
34802014-08-07 Gary Benson <gbenson@redhat.com>
3481
3482 * common/common-defs.h: Include common-utils.h.
3483 * defs.h: Do not include common-utils.h.
3484 * common/gdb_assert.h: Likewise.
3485 * darwin-nat.h: Likewise.
3486 * nat/linux-btrace.c: Likewise.
3487 * target/waitstatus.h: Likewise.
3488
4cb9c816
GB
34892014-08-07 Gary Benson <gbenson@redhat.com>
3490
3491 * common/common-defs.h: Include ptid.h.
3492 * defs.h: Do not include ptid.h.
3493 * inferior.h: Likewise.
3494 * infrun.h: Likewise.
3495 * nat/linux-btrace.h: Likewise.
3496 * nat/linux-osdata.h: Likewise.
3497 * target/waitstatus.h: Likewise.
3498
3995eeee
GB
34992014-08-07 Gary Benson <gbenson@redhat.com>
3500
3501 * common/common-defs.h: Include gdb_locale.h.
3502 * defs.h: Do not include gdb_locale.h.
3503
cb9f1a9b
GB
35042014-08-07 Gary Benson <gbenson@redhat.com>
3505
3506 * common/common-defs.h: Include gdb/signals.h.
3507 * defs.h: Do not include gdb/signals.h.
3508
a5fceff8
GB
35092014-08-07 Gary Benson <gbenson@redhat.com>
3510
3511 * common/common-defs.h: Include pathmax.h.
3512 * defs.h: Do not include pathmax.h.
3513
b9391142
GB
35142014-08-07 Gary Benson <gbenson@redhat.com>
3515
3516 * common/common-defs.h: Include libiberty.h.
3517 * defs.h: Do not include libiberty.h.
3518 * common/queue.h: Likewise.
3519 * cp-name-parser.y: Likewise.
3520 * mi/mi-cmd-catch.c: Likewise.
3521 * python/python.c: Likewise.
3522
0e443c87
GB
35232014-08-07 Gary Benson <gbenson@redhat.com>
3524
3525 * common/common-defs.h: Include ansidecl.h.
3526 * defs.h: Do not include ansidecl.h.
3527 * common/buffer.h: Likewise.
3528 * common/common-utils.h: Likewise.
3529
8ebb3f56
GB
35302014-08-07 Gary Benson <gbenson@redhat.com>
3531
3532 * common/common-defs.h: Include stddef.h.
3533 * defs.h: Do not include stddef.h.
3534 * common/common-utils.h: Likewise.
3535 * amd64fbsd-nat.c: Likewise.
3536 * bcache.c: Likewise.
3537 * charset.c: Likewise.
3538 * common/buffer.h: Likewise.
3539 * common/vec.h: Likewise.
3540 * i386bsd-nat.c: Likewise.
3541 * nat/linux-btrace.h: Likewise.
3542 * ppcfbsd-nat.c: Likewise.
3543 * ppcnbsd-tdep.h: Likewise.
3544 * ppcobsd-nat.c: Likewise.
3545 * ppcobsd-tdep.h: Likewise.
3546 * python/py-gdb-readline.c: Likewise.
3547
8980bdf6
GB
35482014-08-07 Gary Benson <gbenson@redhat.com>
3549
3550 * common/common-defs.h: Include stdarg.h.
3551 * defs.h: Do not include stdarg.h.
3552 * ada-lang.c: Likewise.
3553 * common/common-utils.h: Likewise.
3554 * guile/scm-string.c: Likewise.
3555 * guile/scm-utils.c: Likewise.
3556 * m32c-tdep.c: Likewise.
3557
d7096f71
GB
35582014-08-07 Gary Benson <gbenson@redhat.com>
3559
3560 * common/common-defs.h: Include stdlib.h.
3561 * defs.h: Do not include stdlib.h.
3562 * addrmap.c: Likewise.
3563 * bcache.c: Likewise.
3564 * common/buffer.c: Likewise.
3565 * common/common-utils.c: Likewise.
3566 * cp-name-parser.y: Likewise.
3567 * go32-nat.c: Likewise.
3568 * mn10300-linux-tdep.c: Likewise.
3569 * nat/linux-osdata.c: Likewise.
3570 * tui/tui.c: Likewise.
3571 * windows-nat.c: Likewise.
3572
d02f550d
GB
35732014-08-07 Gary Benson <gbenson@redhat.com>
3574
3575 * common/common-defs.h: Include stdio.h.
3576 * defs.h: Do not include stdio.h.
3577 * ada-lang.c: Likewise.
3578 * common/buffer.c: Likewise.
3579 * common/common-utils.c: Likewise.
3580 * cp-name-parser.y: Likewise.
3581 * gnu-nat.c: Likewise.
3582 * go32-nat.c: Likewise.
3583 * i386gnu-nat.c: Likewise.
3584 * proc-api.c: Likewise.
3585 * proc-events.c: Likewise.
3586 * proc-flags.c: Likewise.
3587 * proc-why.c: Likewise.
3588 * python/python-internal.h: Likewise.
3589 * target-memory.c: Likewise.
3590 * tui/tui-io.c: Likewise.
3591 * tui/tui.c: Likewise.
3592
b6d7a4bf
SM
35932014-08-06 Simon Marchi <simon.marchi@ericsson.com>
3594
3595 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
3596 (scan_dyntag_auxv): Same.
3597
af19829b
YQ
35982014-08-06 Yao Qi <yao@codesourcery.com>
3599
3600 * amd64-linux-nat.c: Remove duplicated include
3601 "x86-linux-nat.h".
3602 * i386-linux-nat.c: Likewise.
3603
8e07a239
YQ
36042014-08-06 Yao Qi <yao@codesourcery.com>
3605
3606 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
3607 operand" with "Special opcode" in comments.
3608
7bfe8241
GB
36092014-08-05 Gary Benson <gbenson@redhat.com>
3610
3611 * interps.c (initialize_interps): Remove prototype.
3612 (interpreter_initialized): Remove static global.
3613 (interp_add): Do not call initialize_interps.
3614 (initialize_interps): Remove function.
3615
d6c95504
GB
36162014-08-05 Gary Benson <gbenson@redhat.com>
3617
3618 * utils.c (vwarning): Remove spurious va_end.
3619
241fd515
AM
36202014-08-05 Alan Modra <amodra@gmail.com>
3621
3622 * charset.c (convert_between_encodings): Cast result of obstack_base.
3623 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
3624 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
3625 (read_unwind_info): Use size_t for some locals.
3626 * jit.c (finalize_symtab): Likewise.
3627 * utils.c (hashtab_obstack_allocate): Likewise.
3628 * symmisc.c (print_objfile_statistics): Update format strings.
3629
dc304a94
JK
36302014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3631
3632 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
3633 (Changes in GDB 7.8): ... here.
3634
3cecbbbe
TT
36352014-08-04 Tom Tromey <tromey@redhat.com>
3636
3637 * target.c (set_targetdebug): New function.
3638 (initialize_targets): Pass set_targetdebug when creating "set
3639 debug target".
3640
6908c509
JB
36412014-08-01 Joel Brobecker <brobecker@adacore.com>
3642
3643 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
3644 if detecting a variable-sized field that is not the last field.
3645 Fix struct type length computation.
3646
53e8f97d
JB
36472014-08-01 Joel Brobecker <brobecker@adacore.com>
3648
3649 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3650 Add debug trace.
3651
e068c55d
JB
36522014-08-01 Joel Brobecker <brobecker@adacore.com>
3653
3654 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3655 Remove "+ 8" offset in computation of CHAIN_VMA.
3656
4d4ca2a1
DE
36572014-07-31 Doug Evans <dje@google.com>
3658
3659 * inflow.c (child_terminal_inferior): Add comment.
3660 (child_terminal_ours_for_output): Add comment.
3661 (child_terminal_ours): Add comment.
3662 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
3663 (linux_nat_terminal_ours): Add comment.
3664
462f517e
GB
36652014-07-31 Gary Benson <gbenson@redhat.com>
3666
3667 * common/btrace-common.h: Do not include defs.h or server.h.
3668 * nat/mips-linux-watch.h: Likewise.
3669 * gdb-dlfcn.h: Do not include defs.h.
3670 * tracefile.h: Likewise.
3671
74228e77
RM
36722014-07-30 Roland McGrath <mcgrathr@google.com>
3673
3674 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
3675
014f9477
TT
36762014-07-30 Tom Tromey <tromey@redhat.com>
3677
3678 * bsd-kvm.c (bsd_kvm_open): Constify.
3679 * corelow.c (core_open): Constify.
3680 * ctf.c (ctf_open): Constify.
3681 * dbug-rom.c (dbug_open): Constify.
3682 * exec.c (exec_open): Constify.
3683 * m32r-rom.c (m32r_open, mon2000_open): Constify.
3684 * microblaze-rom.c (picobug_open): Constify.
3685 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
3686 Constify.
3687 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
3688 * record-btrace.c (record_btrace_open): Constify.
3689 * record-full.c (record_full_core_open_1, record_full_open_1)
3690 (record_full_open): Constify.
3691 * remote-m32r-sdi.c (m32r_open): Constify.
3692 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
3693 (rockhopper_open, lsi_open): Constify.
3694 * remote-sim.c (gdbsim_open): Constify.
3695 * remote.c (remote_open, extended_remote_open, remote_open_1):
3696 Constify.
3697 * target.h (struct target_ops) <to_open>: Make "arg" const.
3698 * tracefile-tfile.c (tfile_open): Constify.
3699
e799154c
TT
37002014-07-30 Tom Tromey <tromey@redhat.com>
3701
3702 * breakpoint.c (map_breakpoint_numbers): Update.
3703 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
3704 (get_number_const): New function.
3705 (get_number): Rewrite using get_number_const.
3706 (init_number_or_range): Make "string" const.
3707 (number_is_in_list): Make "list" const.
3708 * cli/cli-utils.h (get_number_const): Declare.
3709 (struct get_number_or_range_state) <string, end_ptr>: Now const.
3710 (init_number_or_range, number_is_in_list): Update.
3711 * printcmd.c (map_display_numbers): Update.
3712 * value.c (value_from_history_ref): Constify.
3713 * value.h (value_from_history_ref): Update.
3714
5f08566b
TT
37152014-07-30 Tom Tromey <tromey@redhat.com>
3716
3717 * corefile.c (hook_type, call_extra_exec_file_hooks)
3718 (specify_exec_file_hook): Constify.
3719 * exec.c (exec_file_attach): Make "filename" const.
3720 * gdbcore.h (deprecated_exec_file_display_hook)
3721 (specify_exec_file_hook, exec_file_attach): Constify.
3722 * main.c (captured_main): Use catch_command_errors_const.
3723
8981c758
TT
37242014-07-30 Tom Tromey <tromey@redhat.com>
3725
3726 * target.c (open_target): New function.
3727 (add_target_with_completer, add_deprecated_target_alias): Use
3728 set_cmd_sfunc, set_cmd_context.
3729 (debug_to_open): Remove.
3730 (setup_target_debug): Update.
3731
a1c7835a
YQ
37322014-07-30 Yao Qi <yao@codesourcery.com>
3733
3734 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
3735 comments.
3736 * parse.c (exp_iterate): Update comments.
3737
976411d6
GB
37382014-07-30 Gary Benson <gbenson@redhat.com>
3739
3740 * common/common-defs.h: New file.
3741 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
3742 * defs.h: Include common-defs.h.
3743 Do not include config.h or build-gnulib/config.h.
3744
5d4848a4
GB
37452014-07-30 Gary Benson <gbenson@redhat.com>
3746
3747 * common/common-utils.h: Do not include config.h.
3748 * nat/linux-btrace.h: Likewise.
3749
d41f6d8e
GB
37502014-07-30 Gary Benson <gbenson@redhat.com>
3751
3752 * btrace.c: Include defs.h.
3753 * common/ptid.c: Include defs.h or server.h as appropriate.
3754 * nat/mips-linux-watch.c: Likewise.
3755
84202f9c
TT
37562014-07-29 Tom Tromey <tromey@redhat.com>
3757
3758 * target.c (target_is_pushed): Simplify.
3759
2530441c
JB
37602014-07-29 Joel Brobecker <brobecker@adacore.com>
3761
3762 GDB 7.8 released.
3763
7e09a223
YQ
37642014-07-29 Yao Qi <yao@codesourcery.com>
3765
3766 PR gdb/17206
3767 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
3768
7ebdbe92
DE
37692014-07-28 Doug Evans <xdje42@gmail.com>
3770
3771 PR guile/17203
3772 * guile/scm-param.c (pascm_parameter_defined_p): New function.
3773 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
3774 parameters.
3775
f347ffc9
WN
37762014-07-28 Will Newton <will.newton@linaro.org>
3777
3778 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
3779 (THUMB2_SET_R7_SIGRETURN2): Likewise.
3780 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
3781 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
3782 (THUMB2_EABI_SYSCALL): Likewise.
3783 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
3784 struct tramp_frame.
3785 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
3786 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
3787
37c5f1f7
DE
37882014-07-27 Doug Evans <xdje42@gmail.com>
3789
3790 * guile/scm-param.c (pascm_print_param_smob): Fix output.
3791
0c3abbc7
DE
37922014-07-27 Doug Evans <xdje42@gmail.com>
3793
3794 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
3795
e76c5d17
DE
37962014-07-26 Ludovic Courtès <ludo@gnu.org>
3797 Doug Evans <xdje42@gmail.com>
3798
3799 PR guile/17146
3800 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
3801 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
3802 * configure.ac: Try to use guild to compile an scm file, if it fails
3803 then disable guile support.
3804 * configure: Regenerate.
3805 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
3806 GUILE_FILE_LIST.
3807 (GUILE_COMPILED_FILES): New variable.
3808 (GUILE_FILES) Update.
3809 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
3810 (stamp-guile): Compile scm files.
3811 * guile/guile.c (boot_guile_support): New function.
3812 (standard_throw_args_p): New function.
3813 (print_standard_throw_error, print_throw_error): New functions.
3814 (handle_boot_error): New function.
3815 (initialize_scheme_side): Rewrite to call boot_guile_support.
3816 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
3817 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
3818
186fcde0
DE
38192014-07-26 Ludovic Courtès <ludo@gnu.org>
3820 Doug Evans <xdje42@gmail.com>
3821
3822 PR guile/17146
3823 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
3824 * guile/lib/gdb/support.scm: New file.
3825 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
3826 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
3827 All uses updated.
3828 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
3829 All uses updated.
3830 (%assert-type): Ditto, and renamed to assert-type.
3831 (%exception-print-style): Delete.
3832
4df42755
DE
38332014-07-26 Doug Evans <xdje42@gmail.com>
3834
3835 PR build/17105
3836 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
3837 * configure: Regenerate.
3838 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
3839 PYTHON_FILES.
3840 (PYTHON_FILES): New variable.
3841 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
3842 (GUILE_FILES): New variable.
3843 (stamp-python, install-python, uninstall-python): Handle empty
3844 file list.
3845 (stamp-guile, install-guile, uninstall-guile): Ditto.
3846
ee7333ae
DE
38472014-07-26 Doug Evans <xdje42@gmail.com>
3848
3849 PR guile/17177
3850 * guile/lib/gdb.scm (pretty-printers): Export.
3851 (set-pretty-printers!): Export.
3852 * guile/lib/gdb/printing.scm (gdb module): Update.
3853 (prepend-pretty-printer!, append-pretty-printer!): Update.
3854 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
3855 (pretty_printer_list_var): Delete.
3856 (pretty_printer_list): New static global.
3857 (gdbscm_pretty_printers): New function.
3858 (gdbscm_set_pretty_printers_x): New function.
3859 (ppscm_find_pretty_printer_from_gdb): Update.
3860 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
3861 (gdbscm_initialize_pretty_printers): Update.
3862
74edf516
DE
38632014-07-26 Doug Evans <xdje42@gmail.com>
3864
3865 PR 17185
3866 * configure.ac: Add check for header gc/gc.h.
3867 Add check for function setenv.
3868 * configure: Regenerate.
3869 * config.in: Regenerate.
3870 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
3871
d54398a7
MR
38722014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
3873
3874 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
3875 variation in gdbarch matching.
3876
ab16fce8
TT
38772014-07-25 Tom Tromey <tromey@redhat.com>
3878
3879 * exec.c (using_exec_ops): Remove.
3880 (exec_close_1): Update. Remove extraneous block, reindent.
3881 (add_target_sections): Use target_is_pushed.
3882
88056fbb
PA
38832014-07-25 Pedro Alves <palves@redhat.com>
3884
3885 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
3886 * monitor.c (monitor_create_inferior): Likewise.
3887 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
3888 * remote-sim.c (gdbsim_create_inferior): Likewise.
3889 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
3890 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
3891 * windows-nat.c (do_initial_windows_stuff): Likewise.
3892
70509625
PA
38932014-07-25 Pedro Alves <palves@redhat.com>
3894
3895 * NEWS: Mention signal passing and "signal" command changes.
3896 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
3897 comment.
3898 * breakpoint.c (until_break_command): Adjust clear_proceed_status
3899 call.
3900 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
3901 * infcmd.c (proceed_thread_callback, continue_1, step_once)
3902 (jump_command): Adjust clear_proceed_status call.
3903 (signal_command): Warn if other thread that are resumed have
3904 signals that will be delivered. Adjust clear_proceed_status call.
3905 (until_next_command, finish_command)
3906 (proceed_after_attach_callback, attach_command_post_wait)
3907 (attach_command): Adjust clear_proceed_status call.
3908 * infrun.c (proceed_after_vfork_done): Likewise.
3909 (proceed_after_attach_callback): Adjust comment.
3910 (clear_proceed_status_thread): Clear stop_signal if not in pass
3911 state.
3912 (clear_proceed_status_callback): Delete.
3913 (clear_proceed_status): New 'step' parameter. Only clear the
3914 proceed status of threads the command being prepared is about to
3915 resume.
3916 (proceed): If passed in an explicit signal, override stop_signal
3917 with it. Don't pass the last stop signal to the thread we're
3918 resuming.
3919 (init_wait_for_inferior): Adjust clear_proceed_status call.
3920 (switch_back_to_stepped_thread): Clear the signal if it should not
3921 be passed.
3922 * infrun.h (clear_proceed_status): New 'step' parameter.
3923 (user_visible_resume_ptid): Add comment.
3924 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
3925 signal is in pass state.
3926 * remote.c (append_pending_thread_resumptions): Likewise.
3927 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
3928
d8be2939
TT
39292014-07-25 Tom Tromey <tromey@redhat.com>
3930
3931 * target.h (target_stopped_data_address)
3932 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
3933 parentheses.
3934
7d0d9d2b
PL
39352014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
3936
3937 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
3938 comments.
3939 (avr_pointer_to_address): Likewise.
3940
e9e7f724
TT
39412014-07-24 Tom Tromey <tromey@redhat.com>
3942
3943 * monitor.c (compile_pattern): Update.
3944 * target.h (struct target_ops) <to_shortname, to_longname,
3945 to_doc>: Now const.
3946
1947513d
TT
39472014-07-24 Tom Tromey <tromey@redhat.com>
3948
3949 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
3950 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
3951 (add_info_alias, add_com): Make "doc" const.
3952 (print_doc_line): Make "str" const.
3953 (delete_cmd): Update.
3954 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
3955 (print_doc_line): Update.
3956 * cli/cli-script.c (document_command): Update.
3957 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
3958 (add_com, add_info, add_info_alias): Update.
3959 * guile/scm-cmd.c (cmdscm_destroyer): Update.
3960 * python/py-cmd.c (cmdpy_destroyer): Update.
3961
64e61d29
TT
39622014-07-24 Tom Tromey <tromey@redhat.com>
3963
3964 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
3965 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
3966 (help_cmd_list): Constify.
3967 (lookup_cmd): Update.
3968 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
3969 const.
3970 (help_cmd_list, apropos_cmd): Update.
3971 * cli/cli-script.c (show_user): Update.
3972 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
3973 * cli/cli-setshow.h (cmd_show_list): Update.
3974 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
3975 (cmd_show_list): Update.
3976 * guile/scm-cmd.c (cmdscm_destroyer): Update.
3977 * python/py-cmd.c (cmdpy_destroyer): Update.
3978
429e55ea
TT
39792014-07-24 Tom Tromey <tromey@redhat.com>
3980
3981 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
3982 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
3983 const.
3984 * command.h (deprecate_cmd): Update.
3985 * maint.c (maintenance_do_deprecate): Add casts.
3986
64669f3b
TT
39872014-07-24 Tom Tromey <tromey@redhat.com>
3988
3989 * cli/cli-decode.c (help_cmd): Make parameter "const".
3990 * cli/cli-decode.h (help_cmd): Update.
3991
d3d3328b
TT
39922014-07-24 Tom Tromey <tromey@redhat.com>
3993
3994 * stack.c (up_silently_base, down_silently_base): Make argument
3995 const.
3996
414842dc
TT
39972014-07-24 Tom Tromey <tromey@redhat.com>
3998
3999 * solib.c (solib_add): Make "pattern" const.
4000 * solib.h (solib_add): Update.
4001
baa336ce
TT
40022014-07-24 Tom Tromey <tromey@redhat.com>
4003
4004 * remote.c (remote_serial_open, print_packet, putpkt)
4005 (putpkt_binary): Constify.
4006 * remote.h (putpkt): Update.
4007
5a19e2d0
TT
40082014-07-24 Tom Tromey <tromey@redhat.com>
4009
4010 * monitor.c (monitor_open): Make "args" const.
4011 * monitor.h (monitor_open): Update.
4012
fc4baa5e
TT
40132014-07-24 Tom Tromey <tromey@redhat.com>
4014
4015 * maint.c (match_bfd_flags): Make "string" const.
4016 (print_bfd_section_info): Remove casts.
4017 (print_objfile_section_info): Make "string" const.
4018
0d5f0dbe
TT
40192014-07-24 Tom Tromey <tromey@redhat.com>
4020
4021 * inf-child.c (inf_child_open_target): Make "arg" const.
4022 * inf-child.h (inf_child_open_target): Update.
4023
41c77899
TT
40242014-07-24 Tom Tromey <tromey@redhat.com>
4025
4026 * environ.c (unset_in_environ): Make "var" const.
4027 * environ.h (unset_in_environ): Update.
4028
93db0d79
TT
40292014-07-24 Tom Tromey <tromey@redhat.com>
4030
4031 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
4032 Make "cmd" const.
4033 (scan_filename_with_cleanup): Likewise.
4034 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
4035 Make arguments const.
4036 (restore_command): Update.
4037
36d6eb95
PA
40382014-07-24 Pedro Alves <palves@redhat.com>
4039
4040 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
4041
8009206a
TT
40422014-07-24 Tom Tromey <tromey@redhat.com>
4043 Gary Benson <gbenson@redhat.com>
4044
4045 * nat/linux-ptrace.c (additional_flags): New global.
4046 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
4047 additional_flags; don't check GDBSERVER.
4048 (linux_ptrace_set_additional_flags): New function.
4049 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
4050 Declare.
4051 * linux-nat.c (_initialize_linux_nat): Call
4052 linux_ptrace_set_additional_flags.
4053
a7068b60
TT
40542014-07-24 Tom Tromey <tromey@redhat.com>
4055
4056 * make-target-delegates (munge_type, write_debugmethod): New
4057 functions.
4058 (debug_names): New global.
4059 ($TARGET_DEBUG_PRINTER): New global.
4060 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
4061 name.
4062 Write debug methods. Generate init_debug_target.
4063 * target-debug.h: New file.
4064 * target-delegates.c: Rebuild.
4065 * target.c: Include target-debug.h.
4066 (debug_target): Hoist definition.
4067 (target_kill, target_get_section_table, target_memory_map)
4068 (target_flash_erase, target_flash_done, target_detach)
4069 (target_disconnect, target_wait, target_resume)
4070 (target_pass_signals, target_program_signals, target_follow_fork)
4071 (target_mourn_inferior, target_search_memory)
4072 (target_thread_address_space, target_close)
4073 (target_find_new_threads, target_core_of_thread)
4074 (target_verify_memory, target_insert_mask_watchpoint)
4075 (target_remove_mask_watchpoint): Remove targetdebug code.
4076 (debug_to_post_attach, debug_to_prepare_to_store)
4077 (debug_to_files_info, debug_to_insert_breakpoint)
4078 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
4079 (debug_to_region_ok_for_hw_watchpoint)
4080 (debug_to_can_accel_watchpoint_condition)
4081 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
4082 (debug_to_watchpoint_addr_within_range)
4083 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
4084 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
4085 (debug_to_terminal_init, debug_to_terminal_inferior)
4086 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
4087 (debug_to_terminal_save_ours, debug_to_terminal_info)
4088 (debug_to_load, debug_to_post_startup_inferior)
4089 (debug_to_insert_fork_catchpoint)
4090 (debug_to_remove_fork_catchpoint)
4091 (debug_to_insert_vfork_catchpoint)
4092 (debug_to_remove_vfork_catchpoint)
4093 (debug_to_insert_exec_catchpoint)
4094 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
4095 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
4096 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
4097 (setup_target_debug): Call init_debug_target.
4098 * target.h (TARGET_DEBUG_PRINTER): New macro.
4099 (struct target_ops) <to_resume, to_wait, to_pass_signals,
4100 to_program_signals>: Use TARGET_DEBUG_PRINTER.
4101
2c51604d
GB
41022014-07-24 Gary Benson <gbenson@redhat.com>
4103
4104 * exceptions.h (throw_vfatal): Renamed to...
4105 (throw_vquit): New declaration.
4106 (throw_quit): Likewise.
4107 * exceptions.c (throw_vfatal): Renamed to...
4108 (throw_vquit): New function.
4109 (throw_quit): Likewise.
4110 (throw_error): Call throw_verror rather than throw_it.
4111 * utils.h (vfatal): Removed.
4112 (fatal): Likewise.
4113 * utils.c (vfatal): Removed.
4114 (fatal): Likewise.
4115 (internal_verror): Replaced call to fatal with call to throw_quit.
4116 (quit): Replaced calls to fatal with calls to throw_quit.
4117
34211963
ME
41182014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
4119
4120 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
4121 target_read_code.
4122
a52b4d3e
ME
41232014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
4124
4125 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
4126 less than zero in conditional expression.
4127
a8bdc56b
TT
41282014-07-23 Tom Tromey <tromey@redhat.com>
4129
4130 * make-target-delegates ($ARGS_PART): Match trailing close paren.
4131 ($INTRO_PART): Don't match whitespace.
4132 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
4133 argument matching.
4134 ($METHOD): Add $METHOD_TRAILER.
4135 (trim): Rewrite.
4136 (scan_target_h): New sub.
4137 Change main loop not to collect state.
4138 * target-delegates.c: Rebuild.
4139
91b52240
GB
41402014-07-23 Gary Benson <gbenson@redhat.com>
4141
4142 * cp-support.c (gdb_demangle): Fix build on systems without
4143 sigaltstack.
4144
45326f6f
JK
41452014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4146
4147 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
4148 for reference entry value target data value.
4149
e214cf6c
JK
41502014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4151
4152 * stack.c (read_frame_arg): Verify value_optimized_out before calling
4153 value_available_contents_eq.
4154
bddbbedd
PA
41552014-07-22 Pedro Alves <palves@redhat.com>
4156
4157 * value.c (allocate_optimized_out_value): Don't mark value as
4158 non-lazy.
4159
45c71484
JW
41602014-07-22 Jiong Wang <jiong.wang@arm.com>
4161
4162 * MAINTAINERS (Write After Approval): Update my email address.
4163
9597b22a
DE
41642014-07-20 Doug Evans <dje@google.com>
4165
4166 PR server/17147
4167 * remote.c (putpkt_binary): Add text to error message.
4168
91101fe5
YQ
41692014-07-20 Yao Qi <yao@codesourcery.com>
4170
4171 * eval.c: Remove "Chill" from comments.
4172 * gdbtypes.h: Likewise.
4173 * symtab.h: Likewise.
4174
c9402c95
YQ
41752014-07-20 Yao Qi <yao@codesourcery.com>
4176
4177 * std-operator.def: Update comments to TERNOP_SLICE.
4178
ae8fddda
YQ
41792014-07-20 Yao Qi <yao@codesourcery.com>
4180
4181 * std-operator.def: Remove BINOP_RANGE.
4182 * breakpoint.c (watchpoint_exp_is_const): Update.
4183 * expprint.c (dump_subexp_body_standard): Likewise.
4184 * eval.c (init_array_element): Remove dead code.
4185 (evaluate_subexp_standard): Likewise.
4186
9c816640
YQ
41872014-07-20 Yao Qi <yao@codesourcery.com>
4188
4189 * std-operator.def: Remove BINOP_IN.
4190 * breakpoint.c (watchpoint_exp_is_const): Update.
4191 * eval.c (evaluate_subexp_standard): Likewise.
4192 * expprint.c (dump_subexp_body_standard): Likewise.
4193
164224e9
ME
41942014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
4195
4196 * microblaze-tdep.c (microblaze_register_names): Add
4197 the rshr and rslr register names.
4198 (microblaze_gdbarch_init): Use of tdesc_has_registers.
4199 Use of tdesc_find_feature. Use of tdesc_data_alloc.
4200 Use of tdesc_numbered_register. Use of
4201 microblaze_register_g_packet_guesses. Use of
4202 tdesc_use_registers. Use of set_gdbarch_register_type.
4203 (microblaze_register_g_packet_guesses): New.
4204 * microblaze-tdep.h (microblaze_reg_num): Add
4205 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
4206 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
4207 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
4208 * features/microblaze-core.xml: New file.
4209 * features/microblaze-stack-protect.xml: New file.
4210 * features/microblaze-with-stack-protect.c: New file.
4211 * features/microblaze-with-stack-protect.xml: New file.
4212 * features/microblaze.xml: New file.
4213 * features/microblaze.c: New file.
4214 * features/Makefile (microblaze-with-stack-protect): Add
4215 microblaze-with-stack-protect microblaze and microblaze-expedite.
4216 * regformats/microblaze-with-stack-protect.dat: New file.
4217 * regformats/microblaze.dat: New file.
4218 * doc/gdb.texinfo (MicroBlaze Features): Added.
4219
e8b2341c
TT
42202014-07-18 Tom Tromey <tromey@redhat.com>
4221
4222 * exec.c (exec_ops): Now static.
4223 * exec.h (exec_ops): Don't declare.
4224
44e89118
TT
42252014-07-18 Tom Tromey <tromey@redhat.com>
4226
4227 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
4228 to find_target_beneath.
4229 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
4230 find_target_beneath.
4231 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
4232
b0ed115f
TT
42332014-07-18 Tom Tromey <tromey@redhat.com>
4234
4235 PR gdb/17130:
4236 * utils.c (quit): Use target_supports_terminal_ours.
4237 * target.h (target_supports_terminal_ours): Declare.
4238 * target.c (target_supports_delete_record): Don't check
4239 to_delete_record against NULL.
4240 (target_supports_terminal_ours): New function.
4241
e75fdfca
TT
42422014-07-18 Tom Tromey <tromey@redhat.com>
4243
4244 PR gdb/17130:
4245 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
4246 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
4247 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
4248 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
4249 * windows-nat.c (windows_xfer_partial): Always delegate.
4250 * record-btrace.c (record_btrace_xfer_partial): Simplify
4251 delegation.
4252 (record_btrace_fetch_registers, record_btrace_store_registers)
4253 (record_btrace_prepare_to_store, record_btrace_resume)
4254 (record_btrace_wait, record_btrace_find_new_threads)
4255 (record_btrace_thread_alive): Likewise.
4256 * procfs.c (procfs_xfer_partial): Always delegate.
4257 * corelow.c (core_xfer_partial): Always delegate.
4258 * sol-thread.c (sol_find_new_threads): Simplify delegation.
4259
83814951
TT
42602014-07-18 Tom Tromey <tromey@redhat.com>
4261
4262 * exec.c (exec_make_note_section): Move earlier.
4263
b8b8facf
DE
42642014-07-17 Doug Evans <dje@google.com>
4265
74b49205 4266 PR gdb/17170
b8b8facf
DE
4267 * maint.c (count_symtabs_and_blocks): Handle NULL
4268 current_program_space.
4269 (report_command_stats): Check global enabled flag in addition to
4270 recorded enabled flag.
4271 (make_command_stats_cleanup): Handle msg_type == 0, startup.
4272
69ff6be5
PA
42732014-07-16 Pedro Alves <palves@redhat.com>
4274
4275 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
4276
252db1b5
TT
42772014-07-16 Tom Tromey <tromey@redhat.com>
4278
4279 * target.h (struct target_ops) <to_delete_record>: Reformat
4280 comment.
4281
a432721e
TT
42822014-07-16 Tom Tromey <tromey@redhat.com>
4283
4284 * target-delegates.c: Rebuild.
4285
487d9753
PL
42862014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
4287
4288 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
4289 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
4290 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
4291 (avr_pointer_to_address): Likewise.
4292 (avr_address_class_type_flags): New function.
4293 (avr_address_class_type_flags_to_name): Likewise.
4294 (avr_address_class_name_to_type_flags): Likewise.
4295 (avr_gdbarch_init): Set address_class_type_flags,
4296 address_class_type_flags_to_name and
4297 address_class_name_to_type_flags.
4298
57745c90
PA
42992014-07-15 Pedro Alves <palves@redhat.com>
4300
4301 * linux-nat.c (kill_callback): Save errno and work with saved
4302 copy.
4303
2d40be18
SM
43042014-07-15 Simon Marchi <simon.marchi@ericsson.com>
4305
4306 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
4307
572f6555
EBM
43082014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4309
4310 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
4311 breakpoint support correctly.
4312
cc1c52ad
PA
43132014-07-14 Pedro Alves <palves@redhat.com>
4314
4315 * utils.c (prompt_for_continue): Call target_terminal_ours.
4316
1e973570
PA
43172014-07-14 Pedro Alves <palves@redhat.com>
4318
4319 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
4320 catch_errors. Don't re-enable stdin or notify observers where,
4321 and rethrow error.
4322 (fetch_inferior_event_wrapper): Delete.
4323
93d6eb10
PA
43242014-07-14 Pedro Alves <palves@redhat.com>
4325
4326 PR gdb/17072
4327 * top.c: Include "inf-loop.h".
4328 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
4329 field.
4330 (gdb_readline_wrapper_cleanup): Make the target async again, if it
4331 was async before.
4332 (gdb_readline_wrapper): Store whether the target is async, and
4333 make it sync.
4334
0017922d
PA
43352014-07-14 Pedro Alves <palves@redhat.com>
4336
4337 PR gdb/17072
4338 * top.c (gdb_readline_wrapper_line): Tweak comment.
4339 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
4340 the input handler callback.
4341
94696ad3
PA
43422014-07-14 Pedro Alves <palves@redhat.com>
4343
4344 PR gdb/17072
4345 * main.c: Include event-top.h.
4346 (handle_command_errors): New function.
4347 (catch_command_errors, catch_command_errors_const): Use it.
4348
9d1e69a2
PA
43492014-07-14 Pedro Alves <palves@redhat.com>
4350
4351 * exceptions.c (catch_command_errors, catch_command_errors_const):
4352 Moved to main.c.
4353 * exceptions.h (catch_command_errors_ftype)
4354 (catch_command_errors_const_ftype): Moved to main.c.
4355 (catch_command_errors, catch_command_errors_const): Delete
4356 declarations.
4357 * main.c (catch_command_errors_ftype)
4358 (catch_command_errors_const_ftype): Moved here from exceptions.h.
4359 (catch_command_errors, catch_command_errors_const)): Moved here
4360 from exceptions.c and make static.
4361
feefc97b
PA
43622014-07-14 Pedro Alves <palves@redhat.com>
4363
4364 * exceptions.c (print_any_exception): Delete.
4365 (catch_exceptions_with_msg): Use exception_print instead of
4366 print_any_exception.
4367 (catch_errors): Use exception_fprintf instead of
4368 print_any_exception.
4369 (catch_command_errors, catch_command_errors_const): Use
4370 exception_print instead of print_any_exception.
4371
c933f875
PA
43722014-07-14 Pedro Alves <palves@redhat.com>
4373
4374 * infcall.c (run_inferior_call): Set 'sync_execution' while
4375 running the inferior call.
4376
feb6f816
PA
43772014-07-14 Pedro Alves <palves@redhat.com>
4378
4379 * value.c (value_contents_equal): Delete function.
4380 * value.h (value_contents_equal): Delete declaration.
4381
d98b7a16
TT
43822014-07-14 Tom Tromey <tromey@redhat.com>
4383
4384 PR exp/17106:
4385 * gdbtypes.c (is_dynamic_type_internal): New function, from
4386 is_dynamic_type.
4387 (is_dynamic_type): Rewrite.
4388 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
4389 (resolve_dynamic_struct): Likewise.
4390 (resolve_dynamic_type_internal): New function, from
4391 resolve_dynamic_type.
4392 (resolve_dynamic_type): Rewrite.
4393
548740d6
TT
43942014-07-14 Tom Tromey <tromey@redhat.com>
4395
4396 * target.c (target_require_runnable): Also check record_stratum.
4397 Update comment.
4398
808f7ab1
YQ
43992014-07-11 Yao Qi <yao@codesourcery.com>
4400
4401 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
4402 thumb_instruction_restores_sp return true.
4403
540314bd
YQ
44042014-07-11 Yao Qi <yao@codesourcery.com>
4405
4406 * arm-tdep.c (thumb_instruction_restores_sp): New function.
4407 (thumb_in_function_epilogue_p): Call
4408 thumb_instruction_restores_sp.
4409
1db01f22
YQ
44102014-07-11 Yao Qi <yao@codesourcery.com>
4411
4412 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
4413 'add sp, #imm'.
4414 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
4415
3116063b
GB
44162014-07-11 Gary Benson <gbenson@redhat.com>
4417
4418 * amd64-linux-nat.c (gdbcore.h): Remove include.
4419 (regset.h): Likewise.
4420 (nat/linux-btrace.h): Likewise.
4421 (btrace.h): Likewise.
4422 (gdb_assert.h): Likewise.
4423 (string.h): Likewise.
4424 (sys/uio.h): Likewise.
4425 (sys/debugreg.h): Likewise.
4426 (sys/syscall.h): Likewise.
4427 (sys/procfs.h): Likewise.
4428 (sys/user.h): Likewise.
4429 (asm/ptrace.h): Likewise.
4430 (i386-nat.h): Likewise.
4431 * i386-linux-nat.c (i386-nat.h): Likewise.
4432 (regset.h): Likewise.
4433 (target.h): Likewise.
4434 (linux-nat.h): Likewise.
4435 (nat/linux-btrace.h): Likewise.
4436 (btrace.h): Likewise.
4437 (gdb_assert.h): Likewise.
4438 (string.h): Likewise.
4439 (sys/uio.h): Likewise.
4440 (sys/user.h): Likewise.
4441 (sys/procfs.h): Likewise.
4442 (sys/reg.h): Likewise.
4443 (sys/debugreg.h): Likewise.
4444 (ORIG_EAX): Remove definition.
4445
040baaf6
GB
44462014-07-11 Gary Benson <gbenson@redhat.com>
4447
4448 * i386-linux-nat.h: New file.
4449 * x86-linux-nat.h: Likewise.
4450 * x86-linux-nat.c: Likewise.
4451 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
4452 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
4453 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4454 * amd64-linux-nat.c (x86-linux-nat.h): New include.
4455 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
4456 (PTRACE_SETREGSET): Likewise.
4457 (arch_lwp_info): Now in x86-linux-nat.c.
4458 (have_ptrace_getregset): Now in x86-linux-nat.h.
4459 (x86_linux_dr_get): Now in x86-linux-nat.c.
4460 (x86_linux_dr_set): Likewise.
4461 (x86_linux_dr_get_addr): Likewise.
4462 (x86_linux_dr_get_control): Likewise.
4463 (x86_linux_dr_get_status): Likewise.
4464 (update_debug_registers_callback): Likewise.
4465 (x86_linux_dr_set_control): Likewise.
4466 (x86_linux_dr_set_addr): Likewise.
4467 (x86_linux_prepare_to_resume): Likewise.
4468 (x86_linux_new_thread): Likewise.
4469 (x86_linux_new_fork): Likewise.
4470 (x86_linux_get_thread_area): Likewise.
4471 (super_post_startup_inferior): Likewise.
4472 (x86_linux_child_post_startup_inferior): Likewise.
4473 (AMD64_LINUX_USER64_CS): Likewise.
4474 (AMD64_LINUX_X32_DS): Likewise.
4475 (x86_linux_read_description): Likewise.
4476 (x86_linux_enable_btrace): Likewise.
4477 (x86_linux_disable_btrace): Likewise.
4478 (x86_linux_teardown_btrace): Likewise.
4479 (x86_linux_read_btrace): Likewise.
4480 (x86_linux_create_target): Likewise.
4481 (x86_linux_add_target): Likewise.
4482 * i386-linux-nat.c (x86-linux-nat.h): New include.
4483 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
4484 (PTRACE_SETREGSET): Likewise.
4485 (arch_lwp_info): Now in x86-linux-nat.c.
4486 (have_ptrace_getregset): Now in x86-linux-nat.h.
4487 (x86_linux_dr_get): Now in x86-linux-nat.c.
4488 (x86_linux_dr_set): Likewise.
4489 (x86_linux_dr_get_addr): Likewise.
4490 (x86_linux_dr_get_control): Likewise.
4491 (x86_linux_dr_get_status): Likewise.
4492 (update_debug_registers_callback): Likewise.
4493 (x86_linux_dr_set_control): Likewise.
4494 (x86_linux_dr_set_addr): Likewise.
4495 (x86_linux_prepare_to_resume): Likewise.
4496 (x86_linux_new_thread): Likewise.
4497 (x86_linux_new_fork): Likewise.
4498 (x86_linux_get_thread_area): Likewise.
4499 (super_post_startup_inferior): Likewise.
4500 (x86_linux_child_post_startup_inferior): Likewise.
4501 (AMD64_LINUX_USER64_CS): Likewise.
4502 (AMD64_LINUX_X32_DS): Likewise.
4503 (x86_linux_read_description): Likewise.
4504 (x86_linux_enable_btrace): Likewise.
4505 (x86_linux_disable_btrace): Likewise.
4506 (x86_linux_teardown_btrace): Likewise.
4507 (x86_linux_read_btrace): Likewise.
4508 (x86_linux_create_target): Likewise.
4509 (x86_linux_add_target): Likewise.
4510
1aa7e42c
GB
45112014-07-11 Gary Benson <gbenson@redhat.com>
4512
4513 * amd64-linux-nat.c: Comment and whitespace changes.
4514 * i386-linux-nat.c: Comment and whitespace changes.
4515
c1e246a0
GB
45162014-07-11 Gary Benson <gbenson@redhat.com>
4517
4518 * amd64-linux-nat.c (x86_linux_create_target): New function.
4519 (x86_linux_add_target): Likewise.
4520 (_initialize_amd64_linux_nat): Delegate to the above new functions.
4521 * i386-linux-nat.c (x86_linux_create_target): New function.
4522 (x86_linux_add_target): Likewise.
4523 (_initialize_i386_linux_nat): Delegate to the above new functions.
4524
8c420b8d
GB
45252014-07-11 Gary Benson <gbenson@redhat.com>
4526
4527 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
4528 (ps_get_thread_area): Delegate to the above in 32-bit mode.
4529 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
4530 (ps_get_thread_area): Delegate to the above.
4531
cb1da100
GB
45322014-07-11 Gary Benson <gbenson@redhat.com>
4533
4534 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
4535 x86_linux_read_description. All uses updated. amd64-specific
4536 code conditionalized. Conditionalized i386-specific code added.
4537 Redundant cast removed.
4538 * i386-linux-nat.c (i386_linux_read_description): Renamed to
4539 x86_linux_read_description. All uses updated. i386-specific
4540 code conditionalized. Conditionalized amd64-specific code added.
4541 One sizeof replaced with the actual type it is describing.
4542
2acf3cd0
GB
45432014-07-11 Gary Benson <gbenson@redhat.com>
4544
4545 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
4546 x86_linux_dr_get. All uses updated.
4547 (amd64_linux_dr_set): Renamed to
4548 x86_linux_dr_set. All uses updated.
4549 (amd64_linux_dr_get_addr): Renamed to
4550 x86_linux_dr_get_addr. All uses updated.
4551 (amd64_linux_dr_get_control): Renamed to
4552 x86_linux_dr_get_control. All uses updated.
4553 (amd64_linux_dr_get_status): Renamed to
4554 x86_linux_dr_get_status. All uses updated.
4555 (amd64_linux_dr_set_control): Renamed to
4556 x86_linux_dr_set_control. All uses updated.
4557 (amd64_linux_dr_set_addr): Renamed to
4558 x86_linux_dr_set_addr. All uses updated.
4559 (amd64_linux_prepare_to_resume): Renamed to
4560 x86_linux_prepare_to_resume. All uses updated.
4561 (amd64_linux_new_thread): Renamed to
4562 x86_linux_new_thread. All uses updated.
4563 (amd64_linux_new_fork): Renamed to
4564 x86_linux_new_fork. All uses updated.
4565 (amd64_linux_child_post_startup_inferior): Renamed to
4566 x86_linux_child_post_startup_inferior. All uses updated.
4567 (amd64_linux_enable_btrace): Renamed to
4568 x86_linux_enable_btrace. All uses updated.
4569 (amd64_linux_disable_btrace): Renamed to
4570 x86_linux_disable_btrace. All uses updated.
4571 (amd64_linux_teardown_btrace): Renamed to
4572 x86_linux_teardown_btrace. All uses updated.
4573 (amd64_linux_read_btrace): Renamed to
4574 x86_linux_read_btrace. All uses updated.
4575 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
4576 x86_linux_dr_get. All uses updated.
4577 (i386_linux_dr_set): Renamed to
4578 x86_linux_dr_set. All uses updated.
4579 (i386_linux_dr_get_addr): Renamed to
4580 x86_linux_dr_get_addr. All uses updated.
4581 (i386_linux_dr_get_control): Renamed to
4582 x86_linux_dr_get_control. All uses updated.
4583 (i386_linux_dr_get_status): Renamed to
4584 x86_linux_dr_get_status. All uses updated.
4585 (i386_linux_dr_set_control): Renamed to
4586 x86_linux_dr_set_control. All uses updated.
4587 (i386_linux_dr_set_addr): Renamed to
4588 x86_linux_dr_set_addr. All uses updated.
4589 (i386_linux_prepare_to_resume): Renamed to
4590 x86_linux_prepare_to_resume. All uses updated.
4591 (i386_linux_new_thread): Renamed to
4592 x86_linux_new_thread. All uses updated.
4593 (i386_linux_new_fork): Renamed to
4594 x86_linux_new_fork. All uses updated.
4595 (i386_linux_child_post_startup_inferior): Renamed to
4596 x86_linux_child_post_startup_inferior. All uses updated.
4597 (i386_linux_enable_btrace): Renamed to
4598 x86_linux_enable_btrace. All uses updated.
4599 (i386_linux_disable_btrace): Renamed to
4600 x86_linux_disable_btrace. All uses updated.
4601 (i386_linux_teardown_btrace): Renamed to
4602 x86_linux_teardown_btrace. All uses updated.
4603 (i386_linux_read_btrace): Renamed to
4604 x86_linux_read_btrace. All uses updated.
4605
b9c1d481
AS
46062014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
4607
4608 * remote.c (extended_remote_post_attach): New function.
4609 (init_extended_remote_ops): Install it as to_post_attach method.
4610
7180e04a
PA
46112014-07-09 Pedro Alves <palves@redhat.com>
4612
4613 * infcmd.c (attach_command_post_wait): Don't call
4614 target_terminal_inferior here.
4615 (attach_command): Call it here instead.
4616
9a9a7608
AB
46172014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4618
4619 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
4620 field.
4621 * c-varobj.c (c_is_path_expr_parent): New function, moved core
4622 from varobj.c, with additional checks.
4623 (c_varobj_ops): Fill in is_path_expr_parent field.
4624 (cplus_varobj_ops): Fill in is_path_expr_parent field.
4625 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
4626 field.
4627 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
4628 ops method.
4629 (varobj_default_is_path_expr_parent): New function.
4630 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
4631 (varobj_default_is_path_expr_parent): Declare new function.
4632
1f267ae3
MM
46332014-07-08 Markus Metzger <markus.t.metzger@intel.com>
4634
4635 * infcmd.c (finish_backward): Turn internal error into normal error.
4636
b2ee242b
PA
46372014-07-07 Pedro Alves <palves@redhat.com>
4638
8a869bca 4639 PR gdb/17096
b2ee242b
PA
4640 * remote.c (async_handle_remote_sigint)
4641 (async_handle_remote_sigint_twice): Call
4642 gdb_call_async_signal_handler instead of
4643 mark_async_signal_handler.
4644
38e229b2
TT
46452014-07-07 Tom Tromey <tromey@redhat.com>
4646
4647 * target-delegates.c: Rebuild.
4648 * target.c (target_info_record): Remove.
4649 * record.c (info_record_command): Unconditionally call
4650 to_info_record.
4651 * target.h (struct target_ops) <to_info_record>: Use
4652 TARGET_DEFAULT_IGNORE.
4653 (target_info_record): Remove.
4654
f0f9ff95
TT
46552014-07-07 Tom Tromey <tromey@redhat.com>
4656
4657 * target.h (struct target_ops) <to_get_thread_local_address>: Use
4658 TARGET_DEFAULT_NORETURN.
4659 * target.c (generic_tls_error): New function.
4660 (target_translate_tls_address): Don't search target stack.
4661 * target-delegates.c: Rebuild.
4662 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
4663 stack.
4664 * linux-thread-db.c (thread_db_get_thread_local_address):
4665 Unconditionally call beneath target.
4666
4a5be5ee
MK
46672014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
4668
4669 * cli/cli-logging.c (pop_output_files): Assign targerr to
4670 gdb_stdtargerr.
4671
92c3b204
AB
46722014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
4673
4674 * MAINTAINERS (Write After Approval): Update my email address.
4675
9b11e3a7
GB
46762014-07-02 Gary Benson <gbenson@redhat.com>
4677
4678 * proc-service.c (ps_xfer_memory): Update comment.
4679 (ps_pstop): Remove unused function.
4680 (ps_pcontinue): Likewise.
4681 (ps_lstop): Likewise.
4682 (ps_lcontinue): Likewise.
4683 (ps_lgetxregsize): Likewise.
4684 (ps_lgetxregs): Likewise.
4685 (ps_lsetxregs): Likewise.
4686 (ps_plog): Likewise.
4687 (ps_ptread): Likewise.
4688 (ps_ptwrite): Likewise.
4689
cf363f18
MW
46902014-07-01 Mark Wielaard <mjw@redhat.com>
4691
4692 * dwarf2read.c (add_array_cv_type): New function.
4693 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
4694 (read_tag_volatile_type): Likewise.
4695
82ae6c8d
TT
46962014-07-01 Tom Tromey <tromey@redhat.com>
4697
4698 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
4699 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
4700 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
4701 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
4702 * command.h (cmd_cfunc_ftype): Move earlier.
4703 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
4704 (add_com, add_info): Use cmd_cfunc_ftype.
4705
96142726
TT
47062014-06-30 Tom Tromey <tromey@redhat.com>
4707
4708 * symtab.c (operator_chars): Make parameters and return type
4709 const.
4710 (file_matches): Make "files" const.
4711 (struct search_symbols_data) <files>: Now const.
4712 (search_symbols): Make "regexp" and "files" parameters const.
4713 Update.
4714 (symtab_symbol_info): Remove cast.
4715 (rbreak_command): Update.
4716 * symtab.h (search_symbols): Update.
4717
b67a2c6f
YQ
47182014-06-27 Yao Qi <yao@codesourcery.com>
4719
4720 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
4721 Change parameter type to 'struct thread_info *'. Caller
4722 updated.
4723 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
4724 Update declaration.
4725 * dummy-frame.c (struct dummy_frame_id): New.
4726 (dummy_frame_id_eq): New function.
4727 (struct dummy_frame) <id>: Change its type to 'struct
4728 dummy_frame_id'.
4729 (dummy_frame_push): Add parameter ptid and save it in
4730 dummy_frame_id.
4731 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
4732 inferior_ptid.
4733 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
4734 to inferior_ptid.
4735 (lookup_dummy_frame): Change parameter type to 'struct
4736 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
4737 instead of frame_id_eq.
4738 (dummy_frame_pop): Add parameter ptid. Callers updated.
4739 Update comments. Compose dummy_frame_id and pass it to
4740 lookup_dummy_frame.
4741 (dummy_frame_discard): Add parameter ptid.
4742 (dummy_frame_sniffer): Compose dummy_frame_id and call
4743 dummy_frame_id_eq instead of frame_id_eq.
4744 (fprint_dummy_frames): Print ptid.
4745 * dummy-frame.h: Remove comments.
4746 (dummy_frame_push): Add ptid in declaration.
4747 (dummy_frame_pop, dummy_frame_discard): Likewise.
4748
5b10184c
TT
47492014-06-26 Tom Tromey <tromey@redhat.com>
4750
4751 * cli/cli-cmds.c (error_no_arg): Make "why" const.
4752 * command.h (error_no_arg): Update.
4753
06900326
TT
47542014-06-26 Tom Tromey <tromey@redhat.com>
4755
4756 * cli/cli-setshow.c (do_set_command): Make "arg" const.
4757 (do_show_command): Make "arg" const.
4758 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
4759
c2bcbb1d
TT
47602014-06-26 Tom Tromey <tromey@redhat.com>
4761
4762 * record-full.c (record_full_get_bookmark): Make "args" const.
4763 (record_full_goto_bookmark): Make "raw_bookmark" const.
4764 * record.c (record_goto): New function.
4765 (cmd_record_goto): Use it. Now static.
4766 * record.h (record_goto): Declare.
4767 (cmd_record_goto): Remove declaration.
4768 * target-delegates.c: Rebuild.
4769 * target.h (struct target_ops) <to_get_bookmark,
4770 to_goto_bookmark>: Make parameter const.
4771
9cbe5fff
TT
47722014-06-26 Tom Tromey <tromey@redhat.com>
4773
4774 * defs.h (generic_load): Update.
4775 * m32r-rom.c (m32r_load_gen): Make "filename" const.
4776 * monitor.c (monitor_load): Make "args" const.
4777 * remote-m32r-sdi.c (m32r_load): Make "args" const.
4778 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
4779 const.
4780 (mips_load): Make "file" const.
4781 * remote-sim.c (gdbsim_load): Make "args" const.
4782 * remote.c (remote_load): Make "name" const.
4783 * symfile.c (generic_load): Make "args" const.
4784 * target-delegates.c: Rebuild.
4785 * target.c (target_load): Make "arg" const.
4786 (debug_to_load): Make "args" const.
4787 * target.h (struct target_ops) <to_load>: Make parameter const.
4788 (target_load): Update.
4789
34a68019
TT
47902014-06-26 Tom Tromey <tromey@redhat.com>
4791
4792 PR symtab/16902:
4793 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
4794 (dwarf2_physname, read_partial_die)
4795 (guess_partial_die_structure_name, fixup_partial_die)
4796 (guess_full_die_structure_name, anonymous_struct_prefix)
4797 (dwarf2_name): Use per-BFD obstack.
4798
efc889c1
YQ
47992014-06-26 Yao Qi <yao@codesourcery.com>
4800
4801 * dummy-frame.c (dummy_frame_sniffer): Move local variables
4802 dummyframe and this_id into inner block below.
4803
4395285e
YQ
48042014-06-26 Yao Qi <yao@codesourcery.com>
4805
4806 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
4807 with "signal_pass[0]" in the initialization of signal_pass.
4808
aef92902
MM
48092014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4810
4811 * record-btrace.c (record_btrace_generating_corefile)
4812 (record_btrace_prepare_to_generate_core)
4813 (record_btrace_done_generating_core): New.
4814 (record_btrace_xfer_partial, record_btrace_fetch_registers)
4815 (record_btrace_store_registers, record_btrace_prepare_to_store):
4816 Forward request when generating a core file.
4817 (record_btrace_open): Set record_btrace_generating_corefile to zero.
4818 (init_record_btrace_ops): Set to_prepare_to_generate_core and
4819 to_done_generating_core.
4820
5fff78c4
MM
48212014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4822
4823 * target.h (target_ops) <to_prepare_to_generate_core>
4824 <to_done_generating_core>: New.
4825 (target_prepare_to_generate_core, target_done_generating_core): New.
4826 * target.c (target_prepare_to_generate_core)
4827 (target_done_generating_core): New.
4828 * target-delegates.c: Regenerate.
4829 * gcore.c: (write_gcore_file): Rename to ...
4830 (write_gcore_file_1): ...this.
4831 (write_gcore_file): Call target_prepare_to_generate_core
4832 and target_done_generating_core.
4833
1d1f1ccb
MM
48342014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4835
4836 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
4837 * gcore.c (write_gcore_file): Free memory returned from
4838 make_corefile_notes.
4839 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
4840 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
4841
3343ef86
YQ
48422014-06-24 Yao Qi <yao@codesourcery.com>
4843
4844 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
4845 (arm_linux_init_abi): Set skip_trampoline_code with
4846 gdbarch_skip_trampoline_code instead of
4847 find_solib_trampoline_target.
4848
18d18ac8
YQ
48492014-06-24 Yao Qi <yao@codesourcery.com>
4850
4851 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
4852 arm_skip_bx_reg returns non-zero.
4853
80d8d390
YQ
48542014-06-24 Yao Qi <yao@codesourcery.com>
4855
4856 * arm-tdep.c (arm_skip_bx_reg): New function.
4857 (arm_skip_stub): Call arm_skip_bx_reg.
4858
6a18a01c
DB
48592014-06-23 Don Breazeal <donb@codesourcery.com>
4860
4861 * MAINTAINERS: Add myself as write-after-approval maintainer.
4862
8e9db26e
PA
48632014-06-23 Pedro Alves <palves@redhat.com>
4864
4865 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
4866 DR_CONTROL before setting DR0..DR3.
4867 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
4868 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
4869 bits of DR_CONTROL related to the debug register slot being
4870 disabled. If all slots are vacant, clear local slowdown as well,
4871 and assert DR_CONTROL is 0.
4872
70afc5b7
SC
48732014-06-23 Siva Chandra Reddy <sivachandra@google.com>
4874
4875 * python/lib/gdb/command/xmethods.py
4876 (get_method_matchers_in_loci): Lookup xmethod matchers in the
4877 current progspace only if the string "progspace" matches LOCUS_RE.
4878
840ed64d
JK
48792014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4880
4881 Fix --with-system-readline with readline-6.3 patch 5.
4882 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
4883 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
4884 types.
4885
26f2dc30
TT
48862014-06-20 Tom Tromey <tromey@redhat.com>
4887
4888 * dwarf2read.c (dw2_get_real_path): Use correct type in
4889 OBSTACK_CALLOC.
4890 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
4891
125f8a3d
GB
48922014-06-20 Gary Benson <gbenson@redhat.com>
4893
4894 * common/gdb_thread_db.h: Moved to nat. All includes updated.
4895 * common/glibc_thread_db.h: Likewise.
4896 * common/i386-cpuid.h: Likewise.
4897 * common/i386-gcc-cpuid.h: Likewise.
4898 * common/linux-btrace.h: Likewise.
4899 * common/linux-osdata.h: Likewise.
4900 * common/linux-procfs.h: Likewise.
4901 * common/linux-ptrace.h: Likewise.
4902 * common/mips-linux-watch.h: Likewise.
4903 * common/linux-btrace.c: Moved to nat.
4904 * common/linux-osdata.c: Likewise.
4905 * common/linux-procfs.c: Likewise.
4906 * common/linux-ptrace.c: Likewise.
4907 * common/mips-linux-watch.c: Likewise.
4908 * nat/gdb_thread_db.h: Moved from common.
4909 * nat/glibc_thread_db.h: Likewise.
4910 * nat/i386-cpuid.h: Likewise.
4911 * nat/i386-gcc-cpuid.h: Likewise.
4912 * nat/linux-btrace.c: Likewise.
4913 * nat/linux-btrace.h: Likewise.
4914 * nat/linux-osdata.c: Likewise.
4915 * nat/linux-osdata.h: Likewise.
4916 * nat/linux-procfs.c: Likewise.
4917 * nat/linux-procfs.h: Likewise.
4918 * nat/linux-ptrace.c: Likewise.
4919 * nat/linux-ptrace.h: Likewise.
4920 * nat/mips-linux-watch.c: Likewise.
4921 * nat/mips-linux-watch.h: Likewise.
4922 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
4923 (object file files): Reordered.
4924 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
4925 of glibc_thread_db.h.
4926
42995dbd
GB
49272014-06-20 Gary Benson <gbenson@redhat.com>
4928
4929 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
4930 (i386_dr_low_type): Moved to nat/i386-dregs.h.
4931 (i386_dr_low): Likewise.
4932 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
4933 (i386_dr_low_set_addr): Likewise.
4934 (i386_dr_low_get_addr): Likewise.
4935 (i386_dr_low_can_set_control): Likewise.
4936 (i386_dr_low_set_control): Likewise.
4937 (i386_dr_low_get_control): Likewise.
4938 (i386_dr_low_get_status): Likewise.
4939 (i386_get_debug_register_length): Likewise.
4940 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
4941 (i386_dr_low): Likewise.
4942 * nat/i386-dregs.c (i386-low.h): Remove include.
4943 (i386-nat.h): Likewise.
4944 (nat/i386-dregs.h): New include.
4945 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
4946 (i386_dr_low_set_addr): Likewise.
4947 (i386_dr_low_get_addr): Likewise.
4948 (i386_dr_low_can_set_control): Likewise.
4949 (i386_dr_low_set_control): Likewise.
4950 (i386_dr_low_get_control): Likewise.
4951 (i386_dr_low_get_status): Likewise.
4952 (i386_get_debug_register_length): Likewise.
4953 (debug_hw_points): Likewise.
4954
3ed9baed
IB
49552014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
4956
4957 * Makefile.in (SFILES): Add d-exp.y.
4958 (YYFILES): Add d-exp.c.
4959 (YYOBJ): Add d-exp.o.
4960 (local-maintainer-clean): Delete d-exp.c.
4961 * d-exp.y: New file.
4962 * d-lang.h (d_parse): New declaration.
4963 (d_error): New declaration.
4964 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
4965 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
4966 PREC_ORDER operators.
4967 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
4968
78c164b0
YQ
49692014-06-19 Yao Qi <yao@codesourcery.com>
4970
4971 * gdbthread.h (any_running): Remove the declaration.
4972 * thread.c (any_running): Remove.
4973
f6e29b6e
YQ
49742014-06-19 Yao Qi <yao@codesourcery.com>
4975
4976 * gdbthread.h (struct thread_info) <state>: Change its type to
4977 'enum thread_state'. Update comments.
4978
034f788c
PA
49792014-06-19 Pedro Alves <palves@redhat.com>
4980
4981 * gdbthread.h (ALL_THREADS): Delete.
4982 (ALL_NON_EXITED_THREADS): New macro.
4983 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
4984 instead of ALL_THREADS.
4985 * infrun.c (find_thread_needs_step_over)
4986 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
4987 instead of ALL_THREADS.
4988 * record-btrace.c (record_btrace_open)
4989 (record_btrace_stop_recording, record_btrace_close)
4990 (record_btrace_is_replaying, record_btrace_resume)
4991 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
4992 * remote.c (append_pending_thread_resumptions): Likewise.
4993 * thread.c (thread_apply_all_command): Likewise.
4994
46e33252
GB
49952014-06-19 Gary Benson <gbenson@redhat.com>
4996
4997 * i386-nat.c (i386_stopped_by_watchpoint):
4998 Use i386_dr_stopped_by_watchpoint.
4999 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
5000 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
5001
3a8ee006
GB
50022014-06-19 Gary Benson <gbenson@redhat.com>
5003
5004 * nat/i386-dregs.c: New file.
5005 * Makefile.in (i386-dregs.o): New rule.
5006 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
5007 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
5008 * config/i386/darwin.mh (NATDEPFILES): Likewise.
5009 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
5010 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
5011 * config/i386/go32.mh (NATDEPFILES): Likewise.
5012 * config/i386/linux.mh (NATDEPFILES): Likewise.
5013 * config/i386/linux64.mh (NATDEPFILES): Likewise.
5014 * config/i386/mingw.mh (NATDEPFILES): Likewise.
5015 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
5016 * i386-nat.h (debug_hw_points): New declaration.
5017 * i386-nat.c (breakpoint.h): Remove include.
5018 (command.h): Likewise.
5019 (target.h): Likewise.
5020 (gdb_assert.h): Likewise.
5021 (debug_hw_points): Made nonstatic.
5022 (debug_printf): Now in i386-dregs.c.
5023 (TARGET_HAS_DR_LEN_8): Likewise.
5024 (DR_CONTROL_SHIFT): Likewise.
5025 (DR_CONTROL_SIZE): Likewise.
5026 (DR_RW_EXECUTE): Likewise.
5027 (DR_RW_WRITE): Likewise.
5028 (DR_RW_READ): Likewise.
5029 (DR_RW_IORW): Likewise.
5030 (DR_LEN_1): Likewise.
5031 (DR_LEN_2): Likewise.
5032 (DR_LEN_4): Likewise.
5033 (DR_LEN_8): Likewise.
5034 (DR_LOCAL_ENABLE_SHIFT): Likewise.
5035 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
5036 (DR_ENABLE_SIZE): Likewise.
5037 (DR_LOCAL_SLOWDOWN): Likewise.
5038 (DR_GLOBAL_SLOWDOWN): Likewise.
5039 (DR_CONTROL_RESERVED): Likewise.
5040 (I386_DR_CONTROL_MASK): Likewise.
5041 (I386_DR_VACANT): Likewise.
5042 (I386_DR_LOCAL_ENABLE): Likewise.
5043 (I386_DR_GLOBAL_ENABLE): Likewise.
5044 (I386_DR_DISABLE): Likewise.
5045 (I386_DR_SET_RW_LEN): Likewise.
5046 (I386_DR_GET_RW_LEN): Likewise.
5047 (I386_DR_WATCH_HIT): Likewise.
5048 (i386_wp_op_t): Likewise.
5049 (i386_show_dr): Likewise.
5050 (i386_length_and_rw_bits): Likewise.
5051 (i386_insert_aligned_watchpoint): Likewise.
5052 (i386_remove_aligned_watchpoint): Likewise.
5053 (i386_handle_nonaligned_watchpoint): Likewise.
5054 (i386_update_inferior_debug_regs): Likewise.
5055 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
5056 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
5057 (i386_region_ok_for_watchpoint):
5058 Use i386_dr_region_ok_for_watchpoint.
5059 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
5060
322a8e06
GB
50612014-06-19 Gary Benson <gbenson@redhat.com>
5062
5063 * i386-nat.c (i386_insert_hw_breakpoint): Use
5064 i386_insert_watchpoint.
5065 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
5066
8f26655c
GB
50672014-06-19 Gary Benson <gbenson@redhat.com>
5068
5069 * i386-nat.c (i386_dr_show): Renamed to
5070 i386_show_dr and made static. All uses updated.
5071 (i386_dr_length_and_rw_bits): Renamed to
5072 i386_length_and_rw_bits and made static.
5073 All uses updated.
5074 (i386_dr_insert_aligned_watchpoint): Renamed to
5075 i386_insert_aligned_watchpoint and made static.
5076 All uses updated.
5077 (i386_dr_remove_aligned_watchpoint): Renamed to
5078 i386_remove_aligned_watchpoint and made static.
5079 All uses updated.
5080 (i386_dr_update_inferior_debug_regs): Renamed to
5081 i386_update_inferior_debug_regs and made static.
5082 All uses updated.
5083 * nat/i386-dregs.h (i386_dr_show): Removed.
5084 (i386_dr_length_and_rw_bits): Likewise.
5085 (i386_dr_insert_aligned_watchpoint): Likewise.
5086 (i386_dr_remove_aligned_watchpoint): Likewise.
5087 (i386_dr_update_inferior_debug_regs): Likewise.
5088
992c7d70
GB
50892014-06-19 Gary Benson <gbenson@redhat.com>
5090
5091 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
5092 * configure: Regenerate.
5093 * config.in: Likewise.
5094 * main.c (signal.h): New include.
5095 (setup_alternate_signal_stack): New function.
5096 (captured_main): Call the above.
5097 * cp-support.c (signal.h): New include.
5098 (catch_demangler_crashes): New flag.
5099 (SIGJMP_BUF): New define.
5100 (SIGSETJMP): Likewise.
5101 (SIGLONGJMP): Likewise.
5102 (gdb_demangle_jmp_buf): New static global.
5103 (gdb_demangle_attempt_core_dump): Likewise.
5104 (gdb_demangle_signal_handler): New function.
5105 (gdb_demangle): If catch_demangler_crashes is set, install the
5106 above signal handler before calling bfd_demangle, and restore
5107 the original signal handler afterwards. Display the offending
5108 symbol and call demangler_warning the first time a segmentation
5109 fault is caught.
5110 (_initialize_cp_support): New maint set/show command.
5111
eae7090b
GB
51122014-06-19 Gary Benson <gbenson@redhat.com>
5113
5114 * utils.h (resource_limit_kind): New enum.
5115 (can_dump_core): New declaration.
5116 (warn_cant_dump_core): Likewise.
5117 (dump_core): Likewise.
5118 * utils.c (dump_core): Made nonstatic. Added new
5119 parameter "limit_kind".
5120 (can_dump_core): Made nonstatic. Moved printing code to...
5121 (warn_cant_dump_core): New function.
5122 (can_dump_core_warn): Likewise.
5123 (internal_vproblem): Replace calls to can_dump_core with
5124 calls to can_dump_core_warn. Supply new argument to each.
5125
57fcfb1b
GB
51262014-06-19 Gary Benson <gbenson@redhat.com>
5127
5128 * utils.h (demangler_vwarning): New declaration.
5129 (demangler_warning): Likewise.
5130 * utils.c (struct internal_problem)
5131 <user_settable_should_quit>: New field.
5132 <user_settable_should_dump_core>: Likewise
5133 (internal_error_problem): Add values for above new fields.
5134 (internal_warning_problem): Likewise.
5135 (demangler_warning_problem): New static global.
5136 (demangler_vwarning): New function.
5137 (demangler_warning): Likewise.
5138 (add_internal_problem_command): Selectively add commands.
5139 (_initialize_utils): New internal problem command.
5140 * maint.c (maintenance_demangler_warning): New function.
5141 (_initialize_maint_cmds): New command.
5142
17a40b44
TT
51432014-06-18 Tom Tromey <tromey@redhat.com>
5144
5145 * f-valprint.c (info_common_command_for_block): Update.
5146 * symtab.h (struct general_symbol_info) <common_block>: Now
5147 const.
5148
346d1dfe
TT
51492014-06-18 Tom Tromey <tromey@redhat.com>
5150
5151 * symtab.h (struct symtab) <blockvector>: Now const.
5152 * ada-lang.c (ada_add_global_exceptions): Update.
5153 * buildsym.c (augment_type_symtab): Update.
5154 * dwarf2read.c (dw2_lookup_symbol): Update.
5155 * jit.c (finalize_symtab): Update.
5156 * jv-lang.c (add_class_symtab_symbol): Update.
5157 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
5158 Update.
5159 * objfiles.c (objfile_relocate1): Update.
5160 * psymtab.c (lookup_symbol_aux_psymtabs)
5161 (maintenance_check_psymtabs): Update.
5162 * python/py-symtab.c (stpy_global_block, stpy_static_block):
5163 Update.
5164 * spu-tdep.c (spu_catch_start): Update.
5165 * symmisc.c (dump_symtab_1): Update.
5166 * symtab.c (lookup_global_symbol_from_objfile)
5167 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
5168 (basic_lookup_transparent_type_quick)
5169 (basic_lookup_transparent_type, find_pc_sect_symtab)
5170 (find_pc_sect_line, search_symbols): Update.
5171 * block.c (find_block_in_blockvector): Make "bl" const.
5172 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
5173 const.
5174 (blockvector_contains_pc): Make "bv" const.
5175 (block_for_pc_sect): Update.
5176 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
5177 (blockvector_contains_pc): Update.
5178 * breakpoint.c (resolve_sal_pc): Update.
5179 * inline-frame.c (block_starting_point_at): Update.
5180
1834676b
TT
51812014-06-18 Tom Tromey <tromey@redhat.com>
5182
5183 * completer.c (complete_line): Make "line_buffer" const.
5184 * completer.h (complete_line): Update.
5185
ac1a991b
TT
51862014-06-18 Tom Tromey <tromey@redhat.com>
5187
5188 * symtab.c (add_macro_name): Remove unneeded cast.
5189
5bc98e52
TT
51902014-06-18 Tom Tromey <tromey@redhat.com>
5191
5192 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
5193 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
5194
8236def8
TT
51952014-06-18 Tom Tromey <tromey@redhat.com>
5196
5197 * probe.c (info_probes_for_ops): Make "arg" const.
5198 * probe.h (info_probes_for_ops): Update.
5199
3977b71f
TT
52002014-06-18 Tom Tromey <tromey@redhat.com>
5201
5202 * varobj.c (varobj_create): Update.
5203 * valops.c (value_of_this): Update.
5204 * tracepoint.c (add_local_symbols, scope_info): Update.
5205 * symtab.h (struct general_symbol_info) <block>: Now const.
5206 * symtab.c (skip_prologue_sal)
5207 (default_make_symbol_completion_list_break_on)
5208 (skip_prologue_using_sal): Update.
5209 * stack.h (iterate_over_block_locals)
5210 (iterate_over_block_local_vars): Update.
5211 * stack.c (print_frame_args): Update.
5212 (iterate_over_block_locals, iterate_over_block_local_vars): Make
5213 parameter const.
5214 (get_selected_block): Make return type const.
5215 * python/py-frame.c (frapy_block): Update.
5216 * python/py-block.c (gdbpy_block_for_pc): Update.
5217 * p-exp.y (%union) <bval>: Now const.
5218 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
5219 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
5220 * m2-exp.y (%union) <bval>: Now const.
5221 * linespec.c (get_current_search_block): Make return type const.
5222 (create_sals_line_offset, find_label_symbols): Update.
5223 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
5224 Update.
5225 (block_starting_point_at): Make "block" const.
5226 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
5227 (check_exception_resume): Update.
5228 * guile/scm-frame.c (gdbscm_frame_block): Update.
5229 * guile/scm-block.c (gdbscm_lookup_block): Update.
5230 * frame.h (get_frame_block): Update.
5231 (get_selected_block): Make return type const.
5232 * frame.c (frame_id_inner): Update.
5233 * f-valprint.c (info_common_command_for_block)
5234 (info_common_command): Update.
5235 * dwarf2loc.c (dwarf2_find_location_expression)
5236 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
5237 (locexpr_describe_location_piece): Update.
5238 * c-exp.y (%union) <bval>: Now const.
5239 * breakpoint.c (resolve_sal_pc): Update.
5240 * blockframe.c (get_frame_block):Make return type const.
5241 (get_pc_function_start, get_frame_function, find_pc_sect_function)
5242 (block_innermost_frame): Update.
5243 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
5244 (block_for_pc, block_for_pc_sect): Update.
5245 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
5246 'pblock' const.
5247 (block_for_pc_sect, block_for_pc): Make return type const.
5248 * ax-gdb.c (gen_expr): Update.
5249 * alpha-mdebug-tdep.c (find_proc_desc): Update.
5250 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
5251 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
5252 (ada_read_var_value): Update.
5253 * ada-exp.y (struct name_info) <block>: Now const.
5254 (%union): Likewise.
5255 (block_lookup): Constify.
5256
b9228891
GB
52572014-06-18 Gary Benson <gbenson@redhat.com>
5258
5259 * nat/i386-dregs.h: New file.
5260 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
5261 * i386-nat.h (i386-dregs.h): New include.
5262 (DR_FIRSTADDR): Now in i386-dregs.h.
5263 (DR_LASTADDR): Likewise.
5264 (DR_NADDR): Likewise.
5265 (DR_STATUS): Likewise.
5266 (DR_CONTROL): Likewise.
5267 (i386_debug_reg_state): Likewise.
5268 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
5269
a1aa2221
LM
52702014-06-18 Don Breazeal <donb@codesourcery.com>
5271
5272 * breakpoint.c (set_longjmp_breakpoint): Call
5273 momentary_breakpoint_from_master with additional argument.
5274 (set_longjmp_breakpoint_for_call_dummy): Call
5275 momentary_breakpoint_from_master with additional argument.
5276 (set_std_terminate_breakpoint): Call
5277 momentary_breakpoint_from_master with additional argument.
5278 (momentary_breakpoint_from_master): Add argument to function
5279 definition and use it to initialize structure member flag.
74228e77 5280 (clone_momentary_breakpoint): Call
a1aa2221
LM
5281 momentary_breakpoint_from_master with additional argument.
5282 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
5283 member flags set in momentary_breakpoint_from_master.
5284
4be83cc2
GB
52852014-06-18 Gary Benson <gbenson@redhat.com>
5286
5287 * i386-nat.c (i386_show_dr): Renamed to
5288 i386_dr_show and made nonstatic. All uses updated.
5289 (i386_length_and_rw_bits): Renamed to
5290 i386_dr_length_and_rw_bits and made nonstatic.
5291 All uses updated.
5292 (i386_insert_aligned_watchpoint): Renamed to
5293 i386_dr_insert_aligned_watchpoint and made nonstatic.
5294 All uses updated.
5295 (i386_remove_aligned_watchpoint): Renamed to
5296 i386_dr_remove_aligned_watchpoint and made nonstatic.
5297 All uses updated.
5298 (i386_update_inferior_debug_regs): Renamed to
5299 i386_dr_update_inferior_debug_regs and made nonstatic.
5300 All uses updated.
5301
131aa0d4
GB
53022014-06-18 Gary Benson <gbenson@redhat.com>
5303
5304 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
5305 (i386_dr_low_can_set_control): Likewise.
5306 (i386_dr_low_set_addr): Likewise.
5307 (i386_dr_low_set_control): Likewise.
5308 (i386_dr_low_get_addr): Likewise.
5309 (i386_dr_low_get_status): Likewise.
5310 (i386_dr_low_get_control): Likewise.
5311 (i386_insert_aligned_watchpoint): Use new macros.
5312 (i386_update_inferior_debug_regs): Likewise.
5313 (i386_stopped_data_address): Likewise.
5314
d9305f7f
GB
53152014-06-18 Gary Benson <gbenson@redhat.com>
5316
5317 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
5318 New parameter. All uses updated.
5319
ea008da4
GB
53202014-06-18 Gary Benson <gbenson@redhat.com>
5321
5322 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
5323 All uses updated.
5324
1b6d4134
GB
53252014-06-18 Gary Benson <gbenson@redhat.com>
5326
5327 * i386-nat.c (debug_printf): New macro.
5328 (i386_get_debug_register_length): Likewise.
5329 (TARGET_HAS_DR_LEN_8): Use above macro.
5330 (i386_show_dr): Use debug_printf instead of puts_unfiltered
5331 and printf_unfiltered. Use phex to format values.
5332
9b4550ef
GB
53332014-06-18 Gary Benson <gbenson@redhat.com>
5334
5335 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
5336 Make const.
5337
6e62758f
GB
53382014-06-18 Gary Benson <gbenson@redhat.com>
5339
5340 * i386-nat.c: Comment changes.
5341
51c79e94
GB
53422014-06-18 Gary Benson <gbenson@redhat.com>
5343
5344 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
5345
3e11889a
GB
53462014-06-18 Gary Benson <gbenson@redhat.com>
5347
5348 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
5349 (i386_insert_aligned_watchpoint): Likewise.
5350 (i386_remove_aligned_watchpoint): Likewise.
5351 (i386_handle_nonaligned_watchpoint): Likewise.
5352
fc6e2f03
GB
53532014-06-18 Gary Benson <gbenson@redhat.com>
5354
5355 * i386-nat.c: Whitespace changes.
5356
2afe7d50
SB
53572014-06-17 Samuel Bronson <naesten@gmail.com>
5358
5359 * MAINTAINERS: Update Roland McGrath's email address.
5360 Thanks to Sergio Durigan Junior for pointing out that he left
6a83deea 5361 Red Hat a while ago, and giving me a current address.
2afe7d50 5362
3bca49ee
TT
53632014-06-17 Tom Tromey <tromey@redhat.com>
5364
5365 * utils.h (savestring): Remove declaration.
5366
6e366df1
TT
53672014-06-17 Tom Tromey <tromey@redhat.com>
5368
5369 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
5370
6be47f0c
KS
53712014-06-16 Keith Seitz <keiths@redhat.com>
5372
5373 PR mi/15863
5374 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
5375 to update the varobj if inferior_ptid is null_ptid.
5376
7bc112c1
TT
53772014-06-16 Tom Tromey <tromey@redhat.com>
5378
5379 * target.h (struct target_ops) <to_info_proc>: Make parameter
5380 const.
5381 (target_info_proc): Update.
5382 * target.c (target_info_proc): Make "args" const.
5383 * procfs.c (procfs_info_proc): Update.
5384 * linux-tdep.c (linux_info_proc): Update.
5385 (linux_core_info_proc_mappings): Make "args" const.
5386 (linux_core_info_proc): Update.
5387 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
5388 * gdbarch.c: Rebuild.
5389 * gdbarch.h: Rebuild.
5390 * corelow.c (core_info_proc): Update.
5391
fee354ee
TT
53922014-06-16 Tom Tromey <tromey@redhat.com>
5393
5394 * target.h (struct target_ops) <to_disconnect>: Make parameter
5395 const.
5396 (target_disconnect): Update.
5397 * target.c (target_disconnect): Make "args" const.
5398 * target-delegates.c: Rebuild.
5399 * remote.c (remote_disconnect): Update.
5400 * record.h (record_disconnect): Update.
5401 * record.c (record_disconnect): Update.
5402 * inf-child.c (inf_child_disconnect): Update.
5403
a30bf1f1
TT
54042014-06-16 Tom Tromey <tromey@redhat.com>
5405
5406 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
5407 * target.c (debug_to_rcmd, default_rcmd): Update.
5408 * target-delegates.c: Rebuild.
5409 * remote.c (remote_rcmd): Update.
5410 * monitor.c (monitor_rcmd): Update.
5411
d03de421
PA
54122014-06-16 Pedro Alves <palves@redhat.com>
5413
5414 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
5415 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
5416 have OBJF_SHARED set.
5417 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
5418 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
5419 instead of OBJF_USERLOADED.
5420 * objfiles.h (OBJF_SHARED): Update comment.
5421 (userloaded_objfile_contains_address_p): Rename to ...
5422 (shared_objfile_contains_address_p): ... this, and update
5423 comments.
5424 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
5425 new objfile.
5426 (remove_symbol_file_command): Skip objfiles that don't have
5427 OBJF_SHARED set.
5428
99f4262f
TT
54292014-06-16 Tom Tromey <tromey@redhat.com>
5430
5431 * minsyms.h (prim_record_minimal_symbol)
5432 (prim_record_minimal_symbol_and_info): Update comments.
5433
97d66cc6
EZ
54342014-06-14 Eli Zaretskii <eliz@gnu.org>
5435
5436 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
5437 or --without-guile, according to how GDB was built.
5438
635c7e8a
TT
54392014-06-13 Tom Tromey <tromey@redhat.com>
5440
5441 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
5442 to help_list.
5443 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
5444 to help_list.
5445 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
5446 help_list.
5447 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
5448 help_list.Pass all_commands, not -1, to help_list.
5449 * cli/cli-dump.c (dump_command, append_command)
5450 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
5451 (binary_dump_command, binary_append_command): Pass all_commands,
5452 not -1, to help_list.
5453 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
5454 -1, to help_list.
5455 * valprint.c (set_print, set_print_raw): Pass all_commands, not
5456 -1, to help_list.
5457 * typeprint.c (set_print_type): Pass all_commands, not -1, to
5458 help_list.
5459 * top.c (set_history): Pass all_commands, not -1, to help_list.
5460 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
5461 all_commands, not -1, to help_list.
5462 * symfile.c (overlay_command): Pass all_commands, not -1, to
5463 help_list.
5464 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
5465 help_list.
5466 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
5467 help_list.
5468 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
5469 -1, to help_list.
5470 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
5471 not -1, to help_list.
5472 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
5473 not -1, to help_list.
5474 * maint.c (maintenance_command, maintenance_info_command)
5475 (maintenance_print_command, maintenance_set_cmd): Pass
5476 all_commands, not -1, to help_list.
5477 * macrocmd.c (macro_command): Pass all_commands, not -1, to
5478 help_list.
5479 * language.c (set_check): Pass all_commands, not -1, to help_list.
5480 * infcmd.c (unset_command): Pass all_commands, not -1, to
5481 help_list.
5482 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
5483 help_list.
5484 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
5485 help_list.
5486 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
5487 help_list.
5488 * breakpoint.c (save_command): Pass all_commands, not -1, to
5489 help_list.
5490 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
5491 all_commands, not -1, to help_list.
5492
b94ade42
PL
54932014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
5494
5495 * regcache.c (struct register_to_invalidate): New structure.
5496 (do_register_invalidate, make_cleanup_regcache_invalidate): New
5497 functions.
5498 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
5499
31f628ae
YQ
55002014-06-12 Yao Qi <yao@codesourcery.com>
5501
5502 * varobj.c (varobj_get_num_children): Call
5503 varobj_is_dynamic_p.
5504 (varobj_list_children): Likewise.
5505 (varobj_update): Likewise. Update comments.
5506
cde5ef40
YQ
55072014-06-12 Yao Qi <yao@codesourcery.com>
5508
5509 * varobj.c (varobj_pretty_printed_p): Rename to ...
5510 (varobj_is_dynamic_p): ... this. New function.
5511 * varobj.h (varobj_pretty_printed_p): Remove declaration.
5512 (varobj_is_dynamic_p): Declare.
5513 * mi/mi-cmd-var.c (print_varobj): All callers updated.
5514 (mi_print_value_p, varobj_update_one): Likewise.
5515
576ea091
YQ
55162014-06-12 Pedro Alves <pedro@codesourcery.com>
5517 Yao Qi <yao@codesourcery.com>
5518
5519 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
5520 (varobj_get_iterator): Wrap up code for pretty-printer by
5521 "#if HAVE_PYTHON" and "#endif".
5522 (update_dynamic_varobj_children): Likewise.
5523
827f100c
YQ
55242014-06-12 Pedro Alves <pedro@codesourcery.com>
5525 Yao Qi <yao@codesourcery.com>
5526
5527 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
5528 gdb_python_initialized is false. Move some code from varobj.c.
5529 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
5530 * varobj.c: Move "varobj-iter.h" inclusion earlier.
5531 (struct varobj_item): Moved to varobj-iter.h".
5532 (varobj_clear_saved_item): New function.
5533 (update_dynamic_varobj_children): Move python-related code to
5534 py-varobj.c.
5535 (free_variable): Call varobj_clear_saved_item and
5536 varobj_iter_delete.
5537
e5250216
YQ
55382014-06-12 Pedro Alves <pedro@codesourcery.com>
5539 Yao Qi <yao@codesourcery.com>
5540
5541 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
5542 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
5543 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
5544 (py-varobj.o): New rule.
5545 * python/py-varobj.c: New file.
5546 * python/python-internal.h (py_varobj_get_iterator): Declare.
5547 * varobj-iter.h: New file.
5548 * varobj.c: Include "varobj-iter.h"
5549 (struct varobj) <child_iter>: Change its type from "PyObject *"
5550 to "struct varobj_iter *".
5551 <saved_item>: Likewise.
5552 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
5553 [HAVE_PYTHON] (varobj_get_iterator): New function.
5554 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
5555 python-specific code to python/py-varobj.c.
5556 (install_visualizer): Call varobj_iter_delete instead of
5557 Py_XDECREF.
5558 * varobj.h (varobj_ensure_python_env): Declare.
5559
5a2e0d6e
YQ
55602014-06-12 Yao Qi <yao@codesourcery.com>
5561
5562 * varobj.c (struct varobj_item): New structure.
5563 (create_child_with_value): Update declaration.
5564 (varobj_add_child): Replace arguments 'name' and 'value' with
5565 'item'. All callers updated.
5566 (install_dynamic_child): Likewise.
5567 (update_dynamic_varobj_children): Likewise.
5568 (varobj_add_child): Likewise.
5569 (create_child_with_value): Likewise.
5570
919b9a93
JB
55712014-06-11 Joel Brobecker <brobecker@adacore.com>
5572
5573 * NEWS: Create a new section for the next release branch.
5574 Rename the section of the current branch, now that it has
5575 been cut.
5576
71a55bdf
JB
55772014-06-11 Joel Brobecker <brobecker@adacore.com>
5578
5579 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
5580 * version.in: Bump version to 7.8.50.DATE-cvs.
5581
364fe1f7
PA
55822014-06-11 Pedro Alves <palves@redhat.com>
5583
5584 PR remote/17028
5585 * ser-mingw.c (net_windows_socket_check_pending): New function.
5586 (net_windows_select_thread): Ignore spurious wakeups. Use
5587 net_windows_socket_check_pending.
5588 (net_windows_wait_handle): Check for pending events with
5589 ioctlsocket, through net_windows_socket_check_pending, instead of
5590 checking the socket's event.
5591
5a6c7709
SC
55922014-06-10 Siva Chandra Reddy <sivachandra@google.com>
5593
5594 * python/python-internal.h (gdb_PyObject_GetAttrString)
5595 (gdb_PyObject_HasAttrString): New inline function definitions.
5596 * py-value.c (get_field_flag): Remove the now unnecessary cast to
5597 char * of the second argument to PyObject_GetAttrString.
74228e77 5598
0e58ee40
JB
55992014-06-10 Joel Brobecker <brobecker@adacore.com>
5600
5601 * serial.c (serial_write): Fix index of character to be printed
5602 in call to serial_logchar when serial debug traces are enabled.
5603
d190df30
JB
56042014-06-10 Joel Brobecker <brobecker@adacore.com>
5605
5606 * gdbtypes (resolve_dynamic_range): Add function description.
5607
b4b01d36
PA
56082014-06-09 Pedro Alves <palves@redhat.com>
5609
5610 * linux-nat.c (linux_child_follow_fork): Initialize status with
5611 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
5612 inner block. Only pass the signal to PTRACE_DETACH if in pass
5613 state.
5614
3657956b
GB
56152014-06-09 Gary Benson <gbenson@redhat.com>
5616
5617 * common/signals.c (gdb_signal_from_host): Reorder to separate
5618 the always-available ANSI-standard signals from the signals that
5619 require checking.
5620 (do_gdb_signal_to_host): Likewise.
5621 * proc-events.c (signal_table): Likewise.
5622
c077881a
HZ
56232014-06-08 Hui Zhu <hui@codesourcery.com>
5624
5625 * common/linux-ptrace.c (linux_disable_event_reporting): New
5626 function.
5627 * common/linux-ptrace.h (linux_disable_event_reporting): New
5628 declaration.
5629 * linux-nat.c (linux_child_follow_fork): Do a single step before
5630 detach.
5631
4186eb54
KS
56322014-06-07 Keith Seitz <keiths@redhat.com>
5633
5634 Revert:
5635 PR c++/16253
5636 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5637 from symbol_matches_domain in symtab.c. All local callers
5638 of symbol_matches_domain updated.
5639 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5640 search STRUCT_DOMAIN.
5641 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5642 independently. standard_lookup will do that automatically.
5643 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5644 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5645 (cp_lookup_symbol_in_namespace): Likewise.
5646 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5647 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5648 may return a STRUCT_DOMAIN match.
5649 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5650 * cp-support.c: Include language.h.
5651 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5652 VAR_DOMAIN.
5653 * psymtab.c (match_partial_symbol): Compare the requested
5654 domain with the symbol's domain directly.
5655 (lookup_partial_symbol): Likewise.
5656 * symtab.c (lookup_symbol_in_language): Explain when/why
5657 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5658 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5659 appropriate languages.
5660 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5661 and moved to ada-lang.c
5662 (lookup_block_symbol): Explain that this function only returns
5663 symbol matching the requested DOMAIN.
5664 Compare the requested domain with the symbol's domain directly.
5665 (iterate_over_symbols): Compare the requested domain with the
5666 symbol's domain directly.
5667 * symtab.h (symbol_matches_domain): Remove.
5668
25326a28 56692014-06-06 Doug Evans <xdje42@gmail.com>
d2929fdc
DE
5670
5671 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
5672 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
5673 (gdbscm_guile_version_is_at_least): Declare.
5674 (gdbscm_scm_string_to_int): Declare.
5675 * guile/guile.c (gdbscm_guile_major_version): New global.
5676 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
5677 (guile_datadir): New static global.
5678 (gdbscm_guile_data_directory): New function.
5679 (initialize_scheme_side): Update.
5680 (misc_guile_functions): Add guile-data-directory.
5681 (initialize_gdb_module): Fetch guile version number.
5682 * guile/lib/gdb.scm: Remove call to add-to-load-path.
5683 * guile/lib/gdb/init.scm (%initialize!): Ditto.
5684 * guile/lib/gdb/boot.scm: Use guile-data-directory.
5685 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
5686 comments.
5687 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
5688 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
5689 * guile/scm-value.c (gdbscm_value_to_string): Only call
5690 scm_port_conversion_strategy if Guile version >= 2.0.6.
5691
0a770bb2 56922014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
5693
5694 * main.c (print_gdb_help): Add -q and --silent.
5695
73ba372c
GB
56962014-06-06 Gary Benson <gbenson@redhat.com>
5697
5698 * common/signals.c: Remove preprocessor conditionals for
5699 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
5700 SIGSEGV and SIGTERM.
5701 * proc-events.c: Likewise.
5702
c33b2f12
MM
57032014-06-06 Markus Metzger <markus.t.metzger@intel.com>
5704
5705 * symfile.c (symfile_free_objfile): Remove restriction to
5706 OBJF_USERLOADED.
5707 * symfile-mem.c (symbol_file_add_from_memory): Call
5708 add_target_sections_of_objfile.
5709
fb934770
LC
57102014-06-05 Ludovic Courtès <ludo@gnu.org>
5711
5712 * guile/scm-value.c (gdbscm_history_append_x): Use
5713 'vlscm_get_value_smob_arg_unsafe' instead of
5714 'vlscm_scm_to_value'.
5715
6ef284bd
SM
57162014-06-05 Simon Marchi <simon.marchi@ericsson.com>
5717
5718 PR mi/15806
5719 * utils.c (printchar): Don't escape at all if quoter is NUL.
5720 Update function documentation to clarify effect of parameter
5721 QUOTER.
5722 * remote.c (escape_buffer): Pass '\\' as the quoter to
5723 fputstrn_unfiltered.
5724 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
5725 generate the output.
5726 (mi_solib_unloaded): Same.
5727
270c9937
JB
57282014-06-05 Joel Brobecker <brobecker@adacore.com>
5729
5730 * development.sh: Delete.
5731 * Makefile.in (config.status): Adjust dependency on development.sh.
5732 * configure.ac: Adjust development.sh source call.
5733 * configure: Regenerate.
5734
16f691fb
DE
57352014-06-04 Doug Evans <xdje42@gmail.com>
5736
5737 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
5738 is_scheme_bkpt, spec.
5739 (bpscm_make_breakpoint_smob): Initialize new members.
5740 (gdbscm_create_breakpoint_x): Split into two ...
5741 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
5742 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
5743 (scheme_function breakpoint_functions): Update.
5744 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
5745 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
5746 register-breakpoint!.
5747
ef7cab6b
JB
57482014-06-04 Joel Brobecker <brobecker@adacorer.com>
5749
5750 PR server/17023
5751 * mem-break.c (z_type_supported): Return zero if
5752 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
5753
012370f6
TT
57542014-06-04 Tom Tromey <tromey@redhat.com>
5755
5756 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
5757 value_from_contents_and_address_unresolved.
5758 (ada_template_to_fixed_record_type_1): Likewise.
5759 (ada_which_variant_applies): Likewise.
5760 * value.h (value_from_contents_and_address_unresolved): Declare.
5761 * value.c (value_from_contents_and_address_unresolved): New
5762 function.
5763 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
5764 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
5765 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
5766
92e2a17f
TT
57672014-06-04 Tom Tromey <tromey@redhat.com>
5768
5769 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
5770
c0939df1
TT
57712014-06-04 Tom Tromey <tromey@redhat.com>
5772
5773 * procfs.c (procfs_attach): Make "args" const.
5774 * windows-nat.c (windows_attach): Make "args" const.
5775 * nto-procfs.c (procfs_attach): Make "args" const.
5776 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
5777 * go32-nat.c (go32_attach): Make "args" const.
5778 * gnu-nat.c (gnu_attach): Make "args" const.
5779 * darwin-nat.c (darwin_attach): Make "args" const.
5780 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
5781 * linux-nat.c (linux_nat_attach): Make "args" const.
5782 * remote.c (extended_remote_attach_1, extended_remote_attach):
5783 Make "args" const.
5784 * target.h (struct target_ops) <to_attach>: Make "args" const.
5785 (find_default_attach): Likewise.
5786 * utils.c (parse_pid_to_attach): Make "args" const.
5787 * utils.h (parse_pid_to_attach): Update.
5788
8eaff7cd
TT
57892014-06-04 Tom Tromey <tromey@redhat.com>
5790
5791 * target-delegates.c: Rebuild.
5792 * target.c (default_thread_address_space): New function.
5793 (target_thread_address_space): Simplify.
5794 * target.h (struct target_ops) <to_thread_address_space>: Add
5795 TARGET_DEFAULT_FUNC.
5796
1913f160
DE
57972014-06-04 Doug Evans <xdje42@gmail.com>
5798
5799 * guile/scm-type.c (type_smob): Remove duplicate typedef.
5800
70ad5bff
MM
58012014-06-04 Markus Metzger <markus.t.metzger@intel.com>
5802
5803 * record-btrace.c: Include event-loop.h and inf-loop.h.
5804 (record_btrace_resume_exec_dir)
5805 (record_btrace_async_inferior_event_handler)
5806 (record_btrace_handle_async_inferior_event): New.
5807 (record_btrace_open): Create async event handler.
5808 (record_btrace_close): Delete async event handler.
5809 (record_btrace_resume): Set record_btrace_resume_exec_dir,
5810 Mark async event handler.
5811 (record_btrace_execution_direction): New.
5812 (init_record_btrace_ops): Initialize to_execution_direction.
5813
b6210538
DE
58142014-06-03 Doug Evans <xdje42@gmail.com>
5815
5816 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
5817 (gdbscm_make_parameter): Ditto.
5818
a5b1fd27
DE
58192014-06-03 Doug Evans <dje@google.com>
5820
5821 * exec.c (exec_close_1): Call clear_section_table instead of
5822 resize_section_table.
5823 (clear_section_table): New function.
5824 (resize_section_table): Make static. Rename arg num_added to
5825 adjustment.
5826 * exec.h (clear_section_table): Declare.
5827 (resize_section_table): Delete.
5828 * progspace.c (release_program_space): Call clear_section_table
5829 instead of resize_section_table.
5830
0c6e92a5
SC
58312014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5832
5833 * NEWS (Python Scripting): Add entry about the new xmethods
5834 feature.
5835
883964a7
SC
58362014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5837
5838 * python/py-xmethods.c: New file.
5839 * python/py-objfile.c (objfile_object): New field 'xmethods'.
5840 (objfpy_dealloc): XDECREF on the new xmethods field.
5841 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
5842 field.
5843 (objfpy_get_xmethods): New function.
5844 (objfile_getset): New entry 'xmethods'.
5845 * python/py-progspace.c (pspace_object): New field 'xmethods'.
5846 (pspy_dealloc): XDECREF on the new xmethods field.
5847 (pspy_new, pspace_to_pspace_object): Initialize xmethods
5848 field.
5849 (pspy_get_xmethods): New function.
5850 (pspace_getset): New entry 'xmethods'.
5851 * python/python-internal.h: Add declarations for new functions.
5852 * python/python.c (_initialize_python): Invoke
5853 gdbpy_initialize_xmethods.
5854 * python/lib/gdb/__init__.py (xmethods): New
5855 attribute.
5856 * python/lib/gdb/xmethod.py: New file.
5857 * python/lib/gdb/command/xmethods.py: New file.
5858
58992dc5
SC
58592014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5860
5861 * eval.c (evaluate_subexp_standard): Call the xmethod if the
5862 best match method returned by find_overload_match is an xmethod.
5863 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
5864 the best matching operator returned by find_overload_match is an
5865 xmethod.
5866 * valops.c: #include "extension.h".
5867 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
5868 Return void. The list of matching source methods is returned in
5869 "fn_list" and a vector of matching debug method workers is
5870 returned in "xm_worker_vec". Update all callers.
5871 (value_find_oload_method_list): Likewise.
5872 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
5873 non-NULL, then the index of the best matching method in this
5874 vector is returned. Update all callers.
5875 (find_overload_match): Include xmethods while performing overload
5876 resolution.
5877
e81e7f5e
SC
58782014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5879
5880 * defs.h (enum lval_type): New enumerator "lval_xcallable".
5881 * extension-priv.h (struct extension_language_ops): Add the
5882 xmethod interface.
5883 * extension.c (new_xmethod_worker, clone_xmethod_worker,
5884 get_matching_xmethod_workers, get_xmethod_argtypes,
5885 invoke_xmethod, free_xmethod_worker,
5886 free_xmethod_worker_vec): New functions.
5887 * extension.h: #include "common/vec.h".
5888 New function declarations.
5889 (struct xmethod_worker): New struct.
5890 (VEC (xmethod_worker_ptr)): New vector type.
5891 (xmethod_worker_ptr): New typedef.
5892 (xmethod_worker_vec): Likewise.
5893 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
5894 builtin_type.
5895 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
5896 (struct builtin_type): New field "xmethod".
5897 * valarith.c (value_ptradd): Assert that the value argument is not
5898 lval_xcallable.
5899 * valops.c (value_must_coerce_to_target): Return 0 for
5900 lval_xcallable values.
5901 * value.c (struct value): New field XM_WORKER in the field
5902 LOCATION.
5903 (value_address, value_raw_address): Return 0 for lval_xcallable
5904 values.
5905 (set_value_address): Assert that the value is not an
5906 lval_xcallable.
5907 (value_free): Free the associated xmethod worker when freeing
5908 lval_xcallable values.
5909 (set_value_component_location): Assert that the WHOLE value is not
5910 lval_xcallable.
5911 (value_of_xmethod, call_xmethod): New functions.
5912 * value.h: Declare "struct xmethod_worker".
5913 Declare new functions value_of_xmethod, call_xmethod.
5914
ef370185
JB
59152014-06-03 Joel Brobecker <brobecker@adacore.com>
5916 Pedro Alves <palves@redhat.com>
5917
5918 PR breakpoints/17000
5919 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
5920 New function, extracted from software_breakpoint_inserted_here_p.
5921 (software_breakpoint_inserted_here_p): Replace factored out code
5922 by call to find_non_raw_software_breakpoint_inserted_here.
5923 (bp_target_info_copy_insertion_state): New function.
5924 (bkpt_insert_location): Handle the case of a single-step
5925 breakpoint already inserted at the same address.
5926 (bkpt_remove_location): Handle the case of a single-step
5927 breakpoint still inserted at the same address.
5928 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
5929 breakpoint already inserted at the same address.
5930 (deprecated_remove_raw_breakpoint): Handle the case of a
5931 non-raw breakpoint still inserted at the same address.
5932 (find_single_step_breakpoint): New function, extracted from
5933 single_step_breakpoint_inserted_here_p.
5934 (find_single_step_breakpoint): New function,
5935 factored out from single_step_breakpoint_inserted_here_p.
5936 (single_step_breakpoint_inserted_here_p): Reimplement.
5937
1e2ccb61
BM
59382014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
5939
5940 Pushed by Joel Brobecker <brobecker@adacore.com>
5941 * source.c (show_substitute_path_command): Fix display of matching
5942 substitution rules.
5943
d3448d85
GB
59442014-06-03 Gary Benson <gbenson@redhat.com>
5945
5946 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
5947
06eb1586
DE
59482014-06-02 Doug Evans <xdje42@gmail.com>
5949
5950 Add parameter support for Guile.
5951 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
5952 (SUBDIR_GUILE_SRCS): Add scm-param.c.
5953 (scm-param.o): New rule.
5954 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
5955 (gdbscm_misc_error): Declare.
5956 (gdbscm_canonicalize_command_name): Declare.
5957 (gdbscm_scm_to_host_string): Declare.
5958 (gdbscm_scm_from_host_string): Declare.
5959 (gdbscm_initialize_parameters): Declare.
5960 * guile/guile.c (initialize_gdb_module): Call
5961 gdbscm_initialize_parameters.
5962 * guile/lib/gdb.scm: Export parameter symbols.
5963 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
5964 cmdscm_canonicalize_name and made public. All callers updated.
5965 * guile/scm-exception.c (gdbscm_misc_error): New function.
5966 * guile/scm-param.c: New file.
5967 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
5968 (gdbscm_scm_to_host_string): New function.
5969 (gdbscm_scm_from_host_string): New function.
5970 * scm-utils.c (gdbscm_gc_dup_argv): New function.
5971
e698b8c4
DE
59722014-06-02 Doug Evans <xdje42@gmail.com>
5973
5974 Add command support for Guile.
5975 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
5976 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
5977 (scm-cmd.o): New rule.
5978 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
5979 (gdbscm_user_error_p): Declare.
5980 (gdbscm_parse_command_name): Declare.
5981 (gdbscm_valid_command_class_p): Declare.
5982 (gdbscm_initialize_commands): Declare.
5983 * guile/guile.c (initialize_gdb_module): Call
5984 gdbscm_initialize_commands.
5985 * guile/lib/gdb.scm: Export command symbols.
5986 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
5987 (throw-user-error): New function.
5988 * guile/scm-cmd.c: New file.
5989 * guile/scm-exception.c (user_error_symbol): New static global.
5990 (gdbscm_user_error_p): New function.
5991 (gdbscm_initialize_exceptions): Set user_error_symbol.
5992 * scm-utils.c (gdbscm_gc_xstrdup): New function.
5993
fb1f94b0
PM
59942014-06-02 Phil Muldoon <pmuldoon@redhat.com>
5995
5996 * top.c (command_loop): Handle comments here...
5997 (command_line_input): ... not here.
5998
ded03782
DE
59992014-06-02 Doug Evans <xdje42@gmail.com>
6000
6001 Add progspace support for Guile.
6002 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
6003 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
6004 (scm-progspace.o): New rule.
6005 * guile/guile-internal.h (pspace_smob): New typedef.
6006 (psscm_pspace_smob_pretty_printers): Declare.
6007 (psscm_pspace_smob_from_pspace): Declare.
6008 (psscm_scm_from_pspace): Declare.
6009 * guile/guile.c (initialize_gdb_module): Call
6010 gdbscm_initialize_pspaces.
6011 * guile/lib/gdb.scm: Export progspace symbols.
6012 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
6013 support.
6014 (append-pretty-printer!): Ditto.
6015 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
6016 Implement.
6017 * guile/scm-progspace.c: New file.
6018
397998fc
AM
60192014-06-03 Alan Modra <amodra@gmail.com>
6020
6021 * ppc64-tdep.c (ppc64_standard_linkage8): New.
6022 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
6023
6aa5f3a6
DE
60242014-06-02 Doug Evans <dje@google.com>
6025
6026 Add support for skeletonless type units.
6027 * dwarf2read.c (struct dwarf2_per_objfile): New member
6028 n_allocated_type_units.
6029 (struct dwarf2_per_objfile) <tu_stats>: New member
6030 nr_all_type_units_reallocs.
6031 (create_signatured_type_table_from_index): Initialize
6032 n_allocated_type_units
6033 (create_all_type_units): Ditto.
6034 (add_type_unit): Move up in file. New arg slot.
6035 All callers updated. Increase space for all_type_units more
6036 efficiently.
6037 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
6038 (lookup_dwo_signatured_type): Handle skeletonless TUs.
6039 (lookup_dwp_signatured_type): Ditto.
6040 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
6041 All callers updated.
6042 (build_type_psymtabs_1): Leave type_unit_groups as
6043 NULL if no TUs present.
6044 (print_tu_stats): New function.
6045 (process_skeletonless_type_unit): New function.
6046 (process_dwo_file_for_skeletonless_type_units): New
6047 function.
6048 (process_skeletonless_type_units): New function.
6049 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
6050 Call print tu_stats if debugging enabled.
6051
41fac0cf
PA
60522014-06-02 Pedro Alves <palves@redhat.com>
6053
6054 * breakpoint.c (build_target_command_list): Don't build a command
6055 list if we have any duplicate location that isn't a dprintf.
6056
cd1608cc
PA
60572014-06-02 Pedro Alves <palves@redhat.com>
6058
6059 * breakpoint.c (dprintf_breakpoint_hit): New function.
6060 (initialize_breakpoint_ops): Install it as dprintf's
6061 breakpoint_hit method.
6062
486ef3b9
JB
60632014-06-02 Joel Brobecker <brobecker@adacore.com>
6064
6065 * source.c (substitute_path_rule_matches): Simplify using
6066 filename_ncmp instead of FILENAME_CMP.
6067
230cd560
JB
60682014-06-02 Joel Brobecker <brobecker@adacore.com>
6069
6070 * source.c (substitute_path_rule_matches): Remove trailing spaces.
6071
16954d5d
LC
60722014-06-01 Ludovic Courtès <ludo@gnu.org>
6073
6074 * configure.ac: When Guile is available, check for the
6075 availability of 'scm_new_smob'.
6076 * configure, config.h.in: Regenerate.
6077 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
6078 function.
6079
53e8a631
AB
60802014-05-30 Andrew Burgess <aburgess@broadcom.com>
6081
6082 * frame.c (struct frame_info): Add stop_string field.
6083 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
6084 (get_prev_frame_always): Old content moved into
6085 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
6086 TRY_CATCH, handle MEMORY_ERROR exceptions.
6087 (frame_stop_reason_string): New function definition.
6088 * frame.h (unwind_stop_reason_to_string): Extend comment to
6089 mention frame_stop_reason_string.
6090 (frame_stop_reason_string): New function declaration.
6091 * stack.c (frame_info): Switch to frame_stop_reason_string.
6092 (backtrace_command_1): Switch to frame_stop_reason_string.
6093 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
6094 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
6095 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
6096
70e38b8e
AB
60972014-05-30 Andrew Burgess <aburgess@broadcom.com>
6098
6099 * frame.c (frame_stop_reason_string): Rename to ...
6100 (unwind_stop_reason_to_string): this.
6101 * frame.h (frame_stop_reason_string): Rename to ...
6102 (unwind_stop_reason_to_string): this.
6103 * stack.c (frame_info): Update call to frame_stop_reason_string.
6104 (backtrace_command_1): Likewise.
6105 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
6106 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
6107
938f0e2f
AB
61082014-05-30 Andrew Burgess <aburgess@broadcom.com>
6109
6110 * frame.c (remove_prev_frame): New function.
6111 (get_prev_frame_if_no_cycle): Create / discard cleanup using
6112 remove_prev_frame.
6113
a09dd441
PA
61142014-05-29 Pedro Alves <palves@redhat.com>
6115
6116 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
6117 and make it const. When a single-step decays to a continue,
6118 clear 'step', not 'hw_step'. Pass whether the caller wanted
6119 to step to user_visible_resume_ptid, not what we ask the
6120 target to do.
6121
bdc36728
PA
61222014-05-29 Pedro Alves <palves@redhat.com>
6123
6124 * infrun.c (process_event_stop_test, handle_step_into_function)
6125 (handle_step_into_function_backward): Adjust.
6126 Don't set the even thread's stop_step and call stop_waiting before
6127 calling end_stepping_range. Instead do that ...
6128 (end_stepping_range): ... here. Take an ecs pointer parameter.
6129
22bcd14b
PA
61302014-05-29 Pedro Alves <palves@redhat.com>
6131
6132 * infrun.c (stop_stepping): Rename to ...
6133 (stop_waiting): ... this.
6134 (proceed): Update comment.
6135 (process_event_stop_test, handle_inferior_event)
6136 (handle_signal_stop, handle_step_into_function)
6137 (handle_step_into_function_backward): Update.
6138
4ae57c05
PA
61392014-05-29 Pedro Alves <palves@redhat.com>
6140
6141 * infcall.c (run_inferior_call): Don't check whether the current
6142 thread is running after the proceed call.
6143
329ea579
PA
61442014-05-29 Pedro Alves <palves@redhat.com>
6145 Tom Tromey <tromey@redhat.com>
6146
6147 * NEWS: Mention "maint set target-async", "set mi-async", and that
6148 background execution commands are now always available.
6149 * target.h (target_async_permitted): Update comment.
6150 * target.c (target_async_permitted, target_async_permitted_1):
6151 Default to 1.
6152 (set_target_async_command): Rename to ...
6153 (maint_set_target_async_command): ... this.
6154 (show_target_async_command): Rename to ...
6155 (maint_show_target_async_command): ... this.
6156 (_initialize_target): Adjust.
6157 * infcmd.c (prepare_execution_command): Make extern.
6158 * inferior.h (prepare_execution_command): Declare.
6159 * infrun.c (set_observer_mode): Leave target async alone.
6160 * mi/mi-interp.c (mi_interpreter_init): Install
6161 mi_on_sync_execution_done as sync_execution_done observer.
6162 (mi_on_sync_execution_done): New function.
6163 (mi_execute_command_input_handler): Don't print the prompt if we
6164 just started a synchronous command with an async target.
6165 (mi_on_resume): Check sync_execution before printing prompt.
6166 * mi/mi-main.h (mi_async_p): Declare.
6167 * mi/mi-main.c: Include gdbcmd.h.
6168 (mi_async_p): New function.
6169 (mi_async, mi_async_1): New globals.
6170 (set_mi_async_command, show_mi_async_command, mi_async): New
6171 functions.
6172 (exec_continue): Call prepare_execution_command.
6173 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
6174 (mi_execute_async_cli_command): Use mi_async_p.
6175 (_initialize_mi_main): Install "set mi-async". Make
6176 "target-async" a deprecated alias.
6177
92bcb5f9
PA
61782014-05-29 Pedro Alves <palves@redhat.com>
6179
6180 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
6181 (_initialize_cli_interp): Adjust.
6182 * event-loop.c: Include "observer.h".
6183 (start_event_loop): Notify 'command_error' observers instead of
6184 calling display_gdb_prompt. Remove FIXME comment.
6185 * event-top.c (display_gdb_prompt): Remove call into the
6186 interpreters.
6187 * inf-loop.c: Include "observer.h".
6188 (inferior_event_handler): Notify 'command_error' observers instead
6189 of calling display_gdb_prompt.
6190 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
6191 observers instead of calling display_gdb_prompt.
6192 * interps.c (interp_set): Don't call display_gdb_prompt.
6193 (current_interp_display_prompt_p): Delete.
6194 * interps.h (interp_prompt_p): Delete declaration.
6195 (interp_prompt_p_ftype): Delete.
6196 (struct interp_procs) <prompt_proc_p>: Delete field.
6197 (current_interp_display_prompt_p): Delete declaration.
6198 * mi-interp.c (mi_interpreter_prompt_p): Delete.
6199 (_initialize_mi_interp): Adjust.
6200 * tui-interp.c (tui_init): Install 'sync_execution_done' and
6201 'command_error' observers.
6202 (tui_on_sync_execution_done, tui_on_command_error): New
6203 functions.
6204 (tui_display_prompt_p): Delete.
6205 (_initialize_tui_interp): Adjust.
6206
fd664c91
PA
62072014-05-29 Pedro Alves <palves@redhat.com>
6208
6209 PR gdb/13860
6210 * cli/cli-interp.c: Include infrun.h and observer.h.
6211 (cli_uiout, cli_interp): New globals.
6212 (cli_on_signal_received, cli_on_end_stepping_range)
6213 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
6214 functions.
6215 (cli_interpreter_init): Install them as 'end_stepping_range',
6216 'signal_received' 'signal_exited', 'exited' and 'no_history'
6217 observers.
6218 (_initialize_cli_interp): Remove cli_interp local.
6219 * infrun.c (handle_inferior_event): Call the several stop reason
6220 observers instead of printing the stop reason directly.
6221 (end_stepping_range): New function.
6222 (print_end_stepping_range_reason, print_signal_exited_reason)
6223 (print_exited_reason, print_signal_received_reason)
6224 (print_no_history_reason): Make static, and add an uiout
6225 parameter. Print to that instead of to CURRENT_UIOUT.
6226 * infrun.h (print_end_stepping_range_reason)
6227 (print_signal_exited_reason, print_exited_reason)
6228 (print_signal_received_reason print_no_history_reason): New
6229 declarations.
6230 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
6231 'mi_uiout'.
6232 <cli_uiout>: New field.
6233 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
6234 uiout for CLI output. Install 'signal_received',
6235 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
6236 observers.
6237 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
6238 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
6239 (mi_on_no_history): New functions.
6240 (ui_out_free_cleanup): Delete function.
6241 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
6242 instead use the one already stored in the MI interpreter data.
6243 (mi_ui_out): Adjust.
6244 * tui/tui-interp.c: Include infrun.h and observer.h.
6245 (tui_interp): New global.
6246 (tui_on_signal_received, tui_on_end_stepping_range)
6247 (tui_on_signal_exited, tui_on_exited)
6248 (tui_on_no_history): New functions.
6249 (tui_init): Install them as 'end_stepping_range',
6250 'signal_received' 'signal_exited', 'exited' and 'no_history'
6251 observers.
6252 (_initialize_tui_interp): Delete tui_interp local.
6253
8817a6f2
PA
62542014-05-29 Pedro Alves <palves@redhat.com>
6255
6256 PR gdb/15713
6257 * linux-nat.c (linux_nat_resume_callback): Rename the second
6258 parameter to 'except'. Skip LP if it points to EXCEPT.
6259 (linux_nat_resume): Don't mark the event lwp as not stopped
6260 before resuming sibling lwps. Instead ask
6261 linux_nat_resume_callback to skip the event lwp. Mark it as not
6262 stopped after actually resuming it.
6263 (linux_handle_syscall_trap): Mark the lwp as not stopped after
6264 resuming it.
6265 (wait_lwp): Mark the lwp as stopped here.
6266 (stop_wait_callback): Mark the lwp as not stopped right after
6267 resuming it. Don't mark lwps as stopped here.
6268 (linux_nat_filter_event): Mark the lwp as stopped earlier.
6269 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
6270
251bde03
PA
62712014-05-29 Pedro Alves <palves@redhat.com>
6272
6273 PR PR15693
6274 * infrun.c (resume): Determine how much to resume depending on
6275 whether the caller wanted a step, not whether we can hardware step
6276 the target. Mark all threads that we intend to run as running,
6277 unless we're calling an inferior function.
6278 (normal_stop): If the thread is running an infcall, don't finish
6279 thread state.
6280 * target.c (target_resume): Don't mark threads as running here.
6281
7f3c0343
JB
62822014-05-28 Joel Brobecker <brobecker@adacore.com>
6283
6284 * serial.c (_initialize_serial): Remove support for
6285 the "set remotebaud" and "show remotebaud" commands.
6286 * NEWS: Add entry documenting the removal of that command.
6287
ee34b3f9
YQ
62882014-05-28 Yao Qi <yao@codesourcery.com>
6289
6290 * charset.c: Fix typo in comments.
6291
add6c04d
GB
62922014-05-27 Gary Benson <gbenson@redhat.com>
6293
6294 * utils.c (internal_vproblem): Prompt for a bug report.
6295
92c48fc5
AW
62962014-05-26 Andy Wingo <wingo@igalia.com>
6297
6298 * guile/scm-arch.c (arscm_mark_arch_smob):
6299 * guile/scm-block.c (bkscm_mark_block_smob)
6300 (bkscm_mark_block_syms_progress_smob):
6301 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
6302 * guile/scm-exception.c (exscm_mark_exception_smob):
6303 * guile/scm-frame.c (frscm_mark_frame_smob):
6304 * guile/scm-iterator.c (itscm_mark_iterator_smob):
6305 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
6306 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
6307 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
6308 (ppscm_mark_pretty_printer_worker_smob):
6309 * guile/scm-symbol.c (syscm_mark_symbol_smob):
6310 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
6311 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
6312 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
6313 mark functions.
6314 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
6315 function.
6316
b2715b27
AW
63172014-05-26 Andy Wingo <wingo@igalia.com>
6318 Doug Evans <xdje42@gmail.com>
6319
6320 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
6321 empty_base_class. All uses updated.
6322 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
6323 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
6324 Adapt all callers.
6325 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
6326 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
6327 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
6328 (gdbscm_gsmob_has_property_p, add_property_name)
6329 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
6330 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
6331 (gdb-object-has-property?, gdb-object-properties): Remove.
6332 (gdb-object-kind): Renamed from gsmob-kind.
6333
214ab2da
AW
63342014-05-26 Andy Wingo <wingo@igalia.com>
6335
6336 * configure.ac (try_guile_versions): Allow building with guile 2.2.
6337 * configure: Regenerate.
6338
589fdceb
MM
63392014-05-23 Markus Metzger <markus.t.metzger@intel.com>
6340
6341 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
6342
67b5c0c1
MM
63432014-05-23 Markus Metzger <markus.t.metzger@intel.com>
6344
6345 * record-btrace.c (record_btrace_allow_memory_access): Remove.
6346 (replay_memory_access_read_only, replay_memory_access_read_write)
6347 (replay_memory_access_types, replay_memory_access)
6348 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
6349 (cmd_set_record_btrace, cmd_show_record_btrace)
6350 (cmd_show_replay_memory_access): New.
6351 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
6352 (record_btrace_remove_breakpoint): Replace
6353 record_btrace_allow_memory_access with replay_memory_access.
6354 (_initialize_record_btrace): Add commands.
6355 * NEWS: Announce it.
6356
036cd381
RR
63572014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6358
6359 * aarch64-linux-nat.c (asm/ptrace.h): Include.
6360
c77c1e42
RR
63612014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6362
6363 * MAINTAINERS (Write After Approval): Move self back from
6364 paper trail.
6365
45741a9c
PA
63662014-05-22 Pedro Alves <palves@redhat.com>
6367
6368 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
6369 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
6370 (disable_randomization, enum exec_direction_kind)
6371 (execution_direction, stop_registers, start_remote)
6372 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
6373 (wait_for_inferior, normal_stop, get_last_target_status)
6374 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
6375 (insert_step_resume_breakpoint_at_sal)
6376 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
6377 (set_step_info, print_stop_event, signal_stop_state)
6378 (signal_print_state, signal_pass_state, signal_stop_update)
6379 (signal_print_update, signal_pass_update)
6380 (update_signals_program_target, clear_exit_convenience_vars)
6381 (displaced_step_dump_bytes, update_observer_mode)
6382 (signal_catch_update, gdb_signal_from_command): Move
6383 declarations ...
6384 * infrun.h: ... to this new file.
6385 * amd64-tdep.c: Include infrun.h.
6386 * annotate.c: Include infrun.h.
6387 * arch-utils.c: Include infrun.h.
6388 * arm-linux-tdep.c: Include infrun.h.
6389 * arm-tdep.c: Include infrun.h.
6390 * break-catch-sig.c: Include infrun.h.
6391 * breakpoint.c: Include infrun.h.
6392 * common/agent.c: Include infrun.h instead of inferior.h.
6393 * corelow.c: Include infrun.h.
6394 * event-top.c: Include infrun.h.
6395 * go32-nat.c: Include infrun.h.
6396 * i386-tdep.c: Include infrun.h.
6397 * inf-loop.c: Include infrun.h.
6398 * infcall.c: Include infrun.h.
6399 * infcmd.c: Include infrun.h.
6400 * infrun.c: Include infrun.h.
6401 * linux-fork.c: Include infrun.h.
6402 * linux-nat.c: Include infrun.h.
6403 * linux-thread-db.c: Include infrun.h.
6404 * monitor.c: Include infrun.h.
6405 * nto-tdep.c: Include infrun.h.
6406 * procfs.c: Include infrun.h.
6407 * record-btrace.c: Include infrun.h.
6408 * record-full.c: Include infrun.h.
6409 * remote-m32r-sdi.c: Include infrun.h.
6410 * remote-mips.c: Include infrun.h.
6411 * remote-notif.c: Include infrun.h.
6412 * remote-sim.c: Include infrun.h.
6413 * remote.c: Include infrun.h.
6414 * reverse.c: Include infrun.h.
6415 * rs6000-tdep.c: Include infrun.h.
6416 * s390-linux-tdep.c: Include infrun.h.
6417 * solib-irix.c: Include infrun.h.
6418 * solib-osf.c: Include infrun.h.
6419 * solib-svr4.c: Include infrun.h.
6420 * target.c: Include infrun.h.
6421 * top.c: Include infrun.h.
6422 * windows-nat.c: Include infrun.h.
6423 * mi/mi-interp.c: Include infrun.h.
6424 * mi/mi-main.c: Include infrun.h.
6425 * python/py-threadevent.c: Include infrun.h.
6426
98eb56a4
PA
64272014-05-22 Pedro Alves <palves@redhat.com>
6428
6429 * infrun.c (handle_inferior_event): Store the exit code for
6430 --return-child-result here, instead of ...
6431 (print_exited_reason): ... here.
6432
17b2616c
PA
64332014-05-21 Pedro Alves <palves@redhat.com>
6434
6435 PR gdb/13860
6436 * gdbthread.h (struct thread_control_state): New field
6437 `command_interp'.
6438 * infrun.c (follow_fork): Copy the new thread control field to the
6439 child fork thread.
6440 (clear_proceed_status_thread): Clear the new thread control field.
6441 (proceed): Set the new thread control field.
6442 * interps.h (command_interp): Declare.
6443 * interps.c (command_interpreter): New global.
6444 (command_interp): New function.
6445 (interp_exec): Set `command_interpreter' while here.
6446 * cli-out.c (cli_uiout_dtor): New function.
6447 (cli_ui_out_impl): Install it.
6448 * mi/mi-interp.c: Include cli-out.h.
6449 (mi_cmd_interpreter_exec): Add comment.
6450 (restore_current_uiout_cleanup): New function.
6451 (ui_out_free_cleanup): New function.
6452 (mi_on_normal_stop): If finishing an execution command started by
6453 a CLI command, or any kind of breakpoint-like event triggered,
6454 print the stop event to the output (CLI) stream.
6455 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
6456
5166082f
PA
64572014-05-21 Pedro Alves <palves@redhat.com>
6458
6459 * cli/cli-cmds.c (list_command): Handle the first "list" after the
6460 current source line having changed.
6461 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
6462 * infrun.c (normal_stop): Adjust call to
6463 set_current_sal_from_frame.
6464 * source.c (clear_lines_listed_range): New function.
6465 (set_current_source_symtab_and_line, identify_source_line): Clear
6466 the lines listed range.
6467 (line_info): Handle the first "info line" after the current source
6468 line having changed.
6469 * stack.c (print_stack_frame): Remove center handling.
6470 (set_current_sal_from_frame): Remove 'center' parameter. Don't
6471 center sal.line.
6472
c1ee2fb3
PA
64732014-05-21 Pedro Alves <palves@redhat.com>
6474
6475 * inf-child.c (inf_child_mourn_inferior): New function.
6476 * inf-child.h (inf_child_mourn_inferior): New declaration.
6477 * darwin-nat.c (darwin_mourn_inferior): Use
6478 inf_child_mourn_inferior.
6479 * gnu-nat.c (gnu_mourn_inferior): Likewise.
6480 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
6481 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
6482 * nto-procfs.c (procfs_mourn_inferior): Likewise.
6483 * windows-nat.c (windows_mourn_inferior): Likewise.
6484
5c6d4fb2
DE
64852014-05-21 Doug Evans <xdje42@gmail.com>
6486
250748cb 6487 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5c6d4fb2 6488
4a2722c5
DE
64892014-05-21 Doug Evans <xdje42@gmail.com>
6490
17292b30 6491 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4a2722c5
DE
6492 (gdbscm_out_of_range_error): Ditto.
6493 (gdbscm_memory_error): Ditto.
250748cb
DE
6494 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
6495 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4a2722c5
DE
6496 (gdbscm_out_of_range_error): Update.
6497 (gdbscm_memory_error): Update.
6498 (gdbscm_scm_to_target_string_unsafe): Delete.
6499
6a3cb8e8
PA
65002014-05-21 Pedro Alves <palves@redhat.com>
6501
6502 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
6503 globals.
6504 (inf_child_open_target): New function.
6505 (inf_child_open): Use inf_child_open_target to push the target
6506 instead of erroring out.
6507 (inf_child_disconnect, inf_child_close)
6508 (inf_child_maybe_unpush_target): New functions.
6509 (inf_child_target): Install inf_child_disconnect and
6510 inf_child_close. Store a pointer to the returned object.
6511 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
6512 declarations.
6513 * target.c (auto_connect_native_target): New global.
6514 (show_default_run_target): New function.
6515 (find_default_run_target): Return NULL if automatically connecting
6516 to the native target is disabled.
6517 (_initialize_target): Install set/show auto-connect-native-target.
6518 * NEWS: Mention "set auto-connect-native-target", and "target
6519 native".
6520 * linux-nat.c (super_close): New global.
6521 (linux_nat_close): Call super_close.
6522 (linux_nat_add_target): Store a pointer to the base class's
6523 to_close method.
6524 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
6525 inf_child_maybe_unpush.
6526 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
6527 already pushed.
6528 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
6529 the inferior. Use inf_child_maybe_unpush_target.
6530 (inf_ttrace_attach): Don't push the target if it is already
6531 pushed.
6532 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
6533 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
6534 after mourning the inferior. Use inf_child_maybe_unpush_target.
6535 (darwin_attach_pid): Don't push the target if it is already
6536 pushed.
6537 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
6538 mourning the inferior. Use inf_child_maybe_unpush_target.
6539 (gnu_detach): Use inf_child_maybe_unpush_target.
6540 * go32-nat.c (go32_create_inferior): Don't push the target if it
6541 is already pushed.
6542 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
6543 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
6544 (procfs_open): Rename to ...
6545 (procfs_open_1): ... this. Add target_ops parameter. Adjust
6546 comments. Can target_preopen before changing node. Call
6547 inf_child_open_target to push the target explicitly.
6548 (procfs_attach): Don't push the target if it is already pushed.
6549 (procfs_detach): Use inf_child_maybe_unpush_target.
6550 (procfs_create_inferior): Don't push the target if it is already
6551 pushed.
6552 (nto_native_ops): New global.
6553 (procfs_open): Reimplement.
6554 (procfs_native_open): New function.
6555 (init_procfs_targets): Install procfs_native_open as to_open of
6556 "target native". Store a pointer to the "native" target in
6557 nto_native_ops.
6558 * procfs.c (procfs_attach): Don't push the target if it is already
6559 pushed.
6560 (procfs_detach): Use inf_child_maybe_unpush_target.
6561 (procfs_mourn_inferior): Only unpush the target after mourning the
6562 inferior. Use inf_child_maybe_unpush_target.
6563 (procfs_init_inferior): Don't push the target if it is already
6564 pushed.
6565 * windows-nat.c (do_initial_windows_stuff): Don't push the target
6566 if it is already pushed.
6567
930ee1b1
PA
65682014-05-21 Pedro Alves <palves@redhat.com>
6569
6570 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
6571 and "procfs" targets are now called "native" instead.
6572
1f5d1b13
PA
65732014-05-21 Pedro Alves <palves@redhat.com>
6574
6575 * go32-nat.c (go32_open): Delete.
6576 (go32_target): Don't override the to_open method.
6577
132f8e03
PA
65782014-05-21 Pedro Alves <palves@redhat.com>
6579
6580 * nto-procfs.c (procfs_can_run): New function.
6581 (nto_procfs_ops): New global.
6582 (init_procfs_targets): New, based on procfs_target. Install
6583 "target native" in addition to "target procfs".
6584 (_initialize_procfs): Call init_procfs_targets instead of adding
6585 the target here.
6586
03c136c3
PA
65872014-05-21 Pedro Alves <palves@redhat.com>
6588
6589 * windows-nat.c (windows_target): Don't override to_shortname,
6590 to_longname or to_doc.
6591
a635d0f3
PA
65922014-05-21 Pedro Alves <palves@redhat.com>
6593
6594 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
6595 to_doc.
6596
4f9b5133
PA
65972014-05-21 Pedro Alves <palves@redhat.com>
6598
6599 * darwin-nat.c (_initialize_darwin_inferior): Don't override
6600 to_shortname, to_longname or to_doc.
6601
bc85afde
PA
66022014-05-21 Pedro Alves <palves@redhat.com>
6603
6604 * go32-nat.c (go32_target): Don't override to_shortname,
6605 to_longname or to_doc.
6606
4ebfc96e
PA
66072014-05-21 Pedro Alves <palves@redhat.com>
6608
6609 * inf-child.c (inf_child_open): Remove mention of "child".
6610 (inf_child_target): Rename target to "native" instead of "child".
6611
2648dfed
AA
66122014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6613
6614 * Makefile.in (SFILES): Delete "regset.c".
6615 (COMMON_OBS): Delete "regset.o".
6616 * regset.c: Remove.
6617 * regset.h (regset_alloc): Delete prototype.
6618
b13feb94
AA
66192014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6620
6621 * sparc-linux-tdep.c (sparc32_linux_gregset)
6622 (sparc32_linux_fpregset): New static regset structures.
6623 (sparc32_linux_init_abi): Drop dynamic regset allocations.
6624 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
6625 'fpregset' fields.
6626 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
6627 (sparc64_linux_fpregset): New static regset structures.
6628 (sparc64_linux_init_abi): Drop dynamic regset allocations.
6629 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
6630 New static regset structures.
6631 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
6632 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
6633 New static regset structures.
6634 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
6635 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
6636 New static regset structures.
6637 (sparc64obsd_init_abi): Drop dynamic regset allocations.
6638 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
6639 New static regset structures.
6640 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
6641
b4fd25c9
AA
66422014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6643
6644 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
6645 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
6646 register maps ("regmaps") from "*regset" to "*regmap". Do this
6647 for all regmap types and variables.
6648 * sparc-linux-tdep.c (sparc32_linux_step_trap)
6649 (sparc32_linux_supply_core_gregset)
6650 (sparc32_linux_collect_core_gregset)
6651 (sparc32_linux_supply_core_fpregset)
6652 (sparc32_linux_collect_core_fpregset): Likewise.
6653 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
6654 (sparc_gregmap, sparc_fpregmap): ... these.
6655 (sparc_supply_gregset, sparc_collect_gregset)
6656 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6657 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
6658 (_initialize_sparc_nat): Rename regmaps.
6659 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
6660 (sparc_gregmap, sparc_fpregmap): ... these.
6661 (sparc_supply_gregset, sparc_collect_gregset)
6662 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6663 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
6664 Rename macros to...
6665 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
6666 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
6667 Likewise.
6668 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
6669 Rename to...
6670 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
6671 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
6672 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
6673 regmaps.
6674 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6675 (sparc32_bsd_fpregset): Rename to...
6676 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6677 (sparc32_bsd_fpregmap): ... these.
6678 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
6679 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6680 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
6681 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
6682 (struct sparc_gregmap, struct sparc_fpregmap)
6683 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6684 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
6685 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
6686 (sparc32_supply_regset, sparc32_collect_gregset)
6687 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
6688 prototypes.
6689 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
6690 (sparc64_linux_ptrace_gregmap): ... this.
6691 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
6692 (_initialize_sparc64_linux_nat): Rename regmaps.
6693 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
6694 (sparc64_linux_core_gregmap): ... this.
6695 (sparc64_linux_supply_core_gregset)
6696 (sparc64_linux_collect_core_gregset)
6697 (sparc64_linux_supply_core_fpregset)
6698 (sparc64_linux_collect_core_fpregset): Rename regmaps.
6699 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
6700 (sparc64_sol2_fpregset): Rename to...
6701 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
6702 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
6703 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
6704 regmaps.
6705 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
6706 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
6707 (sparc64_bsd_fpregset): Rename to...
6708 (struct sparc_gregmap, sparc64_sol2_gregmap)
6709 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
6710 (sparc64_bsd_fpregmap): ... these.
6711 (sparc64_supply_gregset, sparc64_collect_gregset)
6712 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
6713 prototypes.
6714 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
6715 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
6716 (sparc64fbsd_gregmap): ... this.
6717 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
6718 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
6719 Rename regmaps.
6720 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
6721 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
6722 (sparc64nbsd_collect_fpregset): Likewise.
6723 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
6724 (sparc64nbsd_gregmap): ... this.
6725 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
6726 regmaps.
6727 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
6728 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
6729 (sparc64obsd_gregmap): ... this.
6730 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
6731 regmaps.
6732 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
6733 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
6734 (sparc32nbsd_gregmap): ... this.
6735 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
6736 regmaps.
6737
8fea3224
AA
67382014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6739
6740 * score-tdep.c (score7_linux_gregset): New static regset
6741 structure.
6742 (score7_linux_regset_from_core_section): Remove dynamic regset
6743 allocation.
6744 (score_gdbarch_init): Drop allocation of tdep structure.
6745 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
6746
24534243
AA
67472014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6748
6749 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
6750 regset structures.
6751 (am33_regset_from_core_section): Remove dynamic regset
6752 allocations.
6753
b7195f27
AA
67542014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6755
6756 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
6757 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
6758 structures.
6759 (mips_linux_regset_from_core_section): Remove dynamic regset
6760 allocations.
6761 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6762 'gregset64', 'fpregset', and 'fpregset64'.
6763 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
6764 deleted tdep fields.
6765
ecc37a5a
AA
67662014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6767
6768 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
6769 regset structures.
6770 (amd64_regset_from_core_section): Remove dynamic regset
6771 allocations.
6772 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
6773 structure.
6774 (amd64obsd_regset_from_core_section): Remove dynamic regset
6775 allocation.
6776 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
6777 Likewise.
6778 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
6779 x86-common regset supply function.
6780 * i386-tdep.c (i386_collect_gregset): Make static.
6781 (i386_gregset): New global regset structure.
6782 (i386_fpregset, i386_xstateregset): New static regset structures.
6783 (i386_regset_from_core_section): Remove dynamic regset
6784 allocations.
6785 (i386_gdbarch_init): Remove initialization of tdep fields
6786 'gregset', 'fpregset', and 'xstateregset'.
6787 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6788 'fpregset', and 'xstateregset'.
6789 (i386_collect_gregset): Remove prototype.
6790 (i386_gregset): New declaration.
6791 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
6792 structure.
6793 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
6794 allocation.
6795
b7611c43
AA
67962014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6797
6798 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
6799 (arm_linux_vfpregset): New static regset structures.
6800 (arm_linux_regset_from_core_section): Remove dynamic allocation of
6801 regset structures.
6802 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
6803 and 'vfpregset' fields.
6804
a069a2bd
AA
68052014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6806
6807 * aarch64-linux-tdep.c (aarch64_linux_gregset)
6808 (aarch64_linux_fpregset): New static regset structures.
6809 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
6810 of regset structures.
6811 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
6812 'fpregset' fields.
6813
09424cff
AA
68142014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6815
6816 * regset.h (struct regset): Remove gdbarch field.
6817 * regset.c (regset_alloc): Drop initialization of gdbarch field.
6818 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6819 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
6820 Likewise.
6821 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
6822 (ppc32_linux_fpregset, ppc32_linux_vrregset)
6823 (ppc32_linux_vsxregset): Likewise.
6824 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
6825 via the regcache instead of the regset.
6826 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
6827 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
6828 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
6829 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
6830 Likewise.
6831
3ca7dae4
AA
68322014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6833
6834 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
6835 Constify structures.
6836 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
6837 (alphanbsd_aout_gregset): Likewise.
6838 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
6839 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
6840 Likewise.
6841 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
6842 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
6843 Likewise.
6844 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
6845 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
6846 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
6847 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
6848 * m88k-tdep.c (m88k_gregset): Likewise.
6849 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
6850 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
6851 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6852 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
6853 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
6854 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
6855 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
6856 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
6857 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
6858 Likewise.
6859 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
6860 * sh-tdep.h (sh_corefile_gregset): Likewise.
6861 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
6862 * vax-tdep.c (vax_gregset): Likewise.
6863
5876f503
JK
68642014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6865
6866 Fix TLS access for -static -pthread.
6867 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
6868 (try_thread_db_load_1): Initialize it.
6869 (thread_db_get_thread_local_address): Call it if LM is zero.
6870 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
6871 * target.h (struct target_ops) (to_get_thread_local_address): Add
6872 load_module_addr comment.
6873
0256a6ac
PA
68742014-05-21 Pedro Alves <palves@redhat.com>
6875
6876 * dcache.c (dcache_read_memory_partial): If reading the cache line
6877 fails, fallback to reading just the memory the caller wanted.
6878
227533ac
DE
68792014-05-20 Doug Evans <dje@google.com>
6880
6881 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
6882 instead of get_current_arch.
6883
936d2992
PA
68842014-05-20 Pedro Alves <palves@redhat.com>
6885
6886 * NEWS: Mention that compare-sections now works with all targets.
6887
6888 * remote.c (PACKET_qCRC): New enum value.
6889 (remote_verify_memory): Don't send qCRC if the target has no
6890 execution. Use packet_support/packet_ok. If the target doesn't
6891 support the qCRC packet, fallback to a deep memory copy.
6892 (compare_sections_command): Say "target image" instead of "remote
6893 executable".
6894 (_initialize_remote): Add PACKET_qCRC to the list of config
6895 packets that have no associated command. Extend comment.
6896 * target.c (simple_verify_memory, default_verify_memory): New
6897 function.
6898 * target.h (struct target_ops) <to_verify_memory>: Default to
6899 default_verify_memory.
6900 (simple_verify_memory): New declaration.
6901 * target-delegates.c: Regenerate.
6902
e59fa00f
MM
69032014-05-20 Markus Metzger <markus.t.metzger@intel.com>
6904
6905 * record-btrace.c (record_btrace_step_thread): Check for empty history.
6906
f2205de0
HZ
69072014-05-20 Hui Zhu <hui@codesourcery.com>
6908 Yao Qi <yao@codesourcery.com>
6909
6910 PR backtrace/16558
6911 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
6912 and change address of sp and pc.
6913
c4e54771
TT
69142014-05-19 Tom Tromey <tromey@redhat.com>
6915
6916 * gdbtypes.c (rank_function): Use XNEWVEC.
6917 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
6918
73051182
DE
69192014-05-19 Doug Evans <dje@google.com>
6920
6921 * dwarf2read.c (build_type_psymtabs_1): Renamed from
6922 build_type_unit_groups and moved closer to only caller. Remove
6923 arguments. All references updated. Remove outdated .gdb_index
6924 comment.
6925 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
6926 build_type_psymtabs_1.
6927
8832e7e3
DE
69282014-05-19 Doug Evans <dje@google.com>
6929
6930 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
6931 n_type_unit_groups, all_type_unit_groups. All uses removed.
6932 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
6933 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
6934 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
6935 (add_type_unit_group_to_table): Delete.
6936
cd8ae15e
DE
69372014-05-19 Doug Evans <dje@google.com>
6938
6939 * eval.c (evaluate_subexp_standard): Add some comments.
6940
08f4850b
DE
69412014-05-17 Doug Evans <xdje42@gmail.com>
6942
6943 * progspace.c (remove_program_space): Delete, unused.
6944 * progspace.h (remove_program_space): Ditto.
6945
bed8455c
DE
69462014-05-17 Doug Evans <xdje42@gmail.com>
6947
6948 * inferior.c (prune_inferiors): Fix comment.
6949 (remove_inferior_command): Call prune_program_spaces.
6950
8d551b02
DE
69512014-05-16 Doug Evans <dje@google.com>
6952
6953 New command line option -D.
6954 * NEWS: Mention it.
6955 * main.c (set_gdb_data_directory): New function.
6956 (captured_main): Recognize -D. Flag error for --data-directory "".
6957 Call set_gdb_data_directory.
6958 (print_gdb_help): Print --data-directory, -D.
6959 * main.h (set_gdb_data_directory): Declare.
6960 * top.c (staged_gdb_datadir): New static global.
6961 (set_gdb_datadir): Call set_gdb_data_directory
6962 (show_gdb_datadir): New function.
6963 (init_main): Update init of data-directory parameter.
6964
18848e28
GF
69652014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
6966
6967 Import the "dirfd" gnulib module.
6968 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
6969 * gnulib/aclocal.m4: Update.
6970 * gnulib/config.in: Update.
6971 * gnulib/configure: Update.
6972 * gnulib/import/Makefile.am: Update.
6973 * gnulib/import/Makefile.in: Update.
6974 * gnulib/import/dirfd.c: New.
6975 * gnulib/import/m4/dirfd.m4: New.
6976 * gnulib/import/m4/gnulib-cache.m4: Update.
6977 * gnulib/import/m4/gnulib-comp.m4: Update.
6978
95c64f92
YQ
69792014-05-16 Pierre Muller <muller@sourceware.org>
6980 Yao Qi <yao@codesourcery.com>
6981
6982 * valprint.c (print_wchar): Move the code on checking whether
6983 W is a printable wide char to the default branch of switch
6984 statement below. Call wchar_printable instead of gdb_iswprint.
6985
cac395ea
TM
69862014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
6987
19679eca 6988 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
cac395ea
TM
6989 ldr.w and ldrd instructions.
6990
83655187
DE
69912014-05-15 Doug Evans <dje@google.com>
6992
6993 * dwarf2read.c (read_structure_type): Delete outdated comments.
6994
dd756689
TT
69952014-05-14 Tom Tromey <tromey@redhat.com>
6996
6997 * macrocmd.c (print_macro_definition): Reindent.
6998
75ddda77
DE
69992014-05-13 Doug Evans <xdje42@gmail.com>
7000
7001 * python/py-cmd.c (cmdpy_completer): Add comment.
7002 (completers): Make const.
7003
b0f16a3e
SM
70042014-05-13 Simon Marchi <simon.marchi@ericsson.com>
7005
7006 * infrun.c (resume): Remove should_resume (unused). Move up
7007 declaration of resume_ptid.
7008
033c3379
TT
70092014-05-13 Tom Tromey <tromey@redhat.com>
7010
7011 * language.h (unop_type_check): Remove.
7012 (binop_type_check): Don't declare.
7013
9b44a3a5
AA
70142014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
7015
7016 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
7017 call to regcache_raw_collect.
7018
303a33fa
SM
70192014-05-12 Simon Marchi <simon.marchi@ericsson.com>
7020
7021 * mi/mi-console.c (mi_console_raw_packet): Use the value from
7022 mi_console->quote as the quoting character.
7023
196100a0
SM
70242014-05-12 Simon Marchi <simon.marchi@ericsson.com>
7025
7026 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
7027
f989a1c8
TT
70282014-04-29 Tom Tromey <tromey@redhat.com>
7029
7030 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
7031 "show debug varobj".
7032
9404b58f
KM
70332014-05-07 Kyle McMartin <kyle@redhat.com>
7034
7035 Pushed by Joel Brobecker <brobecker@adacore.com>.
7036 * aarch64-tdep.c (aarch64_software_single_step): New function.
7037 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
7038 with aarch64_software_single_step.
7039
5e49ba57
JB
70402014-05-05 Joel Brobecker <brobecker@adacore.com>
7041
7042 GDB 7.7.1 released.
7043
c888a17d
KS
70442014-05-05 Keith Seitz <keiths@redhat.com>
7045
7046 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
7047 variable or history value is successfully parsed.
7048
290a839c
YQ
70492014-05-05 Yao Qi <yao@codesourcery.com>
7050 Pedro Alves <palves@redhat.com>
7051
7052 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
7053 address of blocks that intersects the requested range. Trim
7054 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
7055 sections.
7056 * ctf.c (ctf_xfer_partial): Likewise.
7057
91256dc2
YQ
70582014-05-05 Yao Qi <yao@codesourcery.com>
7059
7060 * printcmd.c (display_command): Remove the check to
7061 target_has_execution.
7062
07284463
MK
70632014-05-03 Mark Kettenis <kettenis@gnu.org>
7064
7065 * ppcobsd-nat.c: Include "obsd-nat.h".
7066 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
7067 add_target.
7068 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
7069
30a1e6cc
SDJ
70702014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
7071
7072 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
7073 and 16-bit signed and unsigned arguments. Update comment.
7074 (stap_parse_probe_arguments): Extend code to handle such
7075 arguments. Use warning instead of complaint to notify about
7076 unrecognized bitness.
7077
f33da99a
SDJ
70782014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
7079
7080 PR breakpoints/16889
7081 * stap-probe.c (stap_parse_probe_arguments): Simplify
7082 check for non-prefixed probes (i.e., probes whose
7083 arguments do not start with "N@"). Always set the
7084 argument type to a sane value.
7085
95cf3b38
DT
70862014-05-01 David Taylor <dtaylor@emc.com>
7087
7088 * remote.c (compare_sections_command): Add -r option to compare
7089 all loadable read-only sections.
7090
1cfdf534
SC
70912014-04-30 Siva Chandra Reddy <sivachandra@google.com>
7092
7093 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
7094 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
7095 Update all callers.
7096 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
7097 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
7098 Remove unused CORE_ADDR argument. Update all callers.
7099
ca4f7f8b
PA
71002014-04-29 Pedro Alves <palves@redhat.com>
7101
7102 * remote.c (struct packet_config) <detect>: Extend comment.
7103 (add_packet_config_cmd): Don't set the config's detect or support
7104 fields here.
7105 (init_all_packet_configs): Also initialize the config's 'detect'
7106 field.
7107 (reset_all_packet_configs_support): New function.
7108 (remote_open_1): Call reset_all_packet_configs_support instead of
7109 init_all_packet_configs.
7110 (_initialize_remote): Initialize all packet configs. Assert that
7111 all packets have an associated command, except a few known
7112 outliers.
7113
11c1ba78
JB
71142014-04-28 Joel Brobecker <brobecker@adacore.com>
7115
7116 * dwarf2read.c (read_subrange_type): Handle dynamic
7117 DW_AT_lower_bound attributes.
7118
8739bc53
JB
71192014-04-28 Joel Brobecker <brobecker@adacore.com>
7120
7121 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
7122 dynamic bounds before computing its upper bound.
7123 (ada_discrete_type_low_bound): Same as above with the lower bound.
7124
6f8a3220
JB
71252014-04-28 Joel Brobecker <brobecker@adacore.com>
7126
7127 * dwarf2read.c (is_dynamic_type): Return true for dynamic
7128 range types. Adjust the array handling implementation to
7129 take advantage of this change.
7130 (resolve_dynamic_range): New function, mostly extracted from
7131 resolve_dynamic_bounds.
7132 (resolve_dynamic_array): New function, mostly extracted from
7133 resolve_dynamic_bounds.
7134 (resolve_dynamic_bounds): Delete.
7135 (resolve_dynamic_type): Reimplement. Add handling of
7136 TYPE_CODE_RANGE types.
7137
4d072ce4
JB
71382014-04-28 Joel Brobecker <brobecker@adacore.com>
7139
7140 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
7141 handling of parallel ___XA types.
7142
52865325
JB
71432014-04-28 Joel Brobecker <brobecker@adacore.com>
7144
7145 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
7146 unnecessary second call to static_unwrap_type.
7147
433e77fa
HZ
71482014-04-27 Hui Zhu <hui@codesourcery.com>
7149
7150 * stack.c (print_frame_info): Call do_gdb_disassembly with
7151 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
7152
b51a69ee
DE
71532014-04-26 Doug Evans <xdje42@gmail.com>
7154
7155 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
7156
7ae1a6a6
PA
71572014-04-25 Pedro Alves <palves@redhat.com>
7158
7159 PR server/16255
7160 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
7161 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
7162 and newline from built string.
7163 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
7164 (linux_ptrace_attach_fail_reason): ... this.
7165 * linux-nat.c (linux_nat_attach): Adjust to use
7166 linux_ptrace_attach_fail_reason.
7167
4082afcc
PA
71682014-04-25 Pedro Alves <palves@redhat.com>
7169
7170 * remote.c (struct remote_state): Remove multi_process_aware,
7171 non_stop_aware, cond_tracepoints, cond_breakpoints,
7172 breakpoint_commands, fast_tracepoints, static_tracepoints,
7173 install_in_trace, disconnected_tracing,
7174 enable_disable_tracepoints, string_tracing, and
7175 augmented_libraries_svr4_read fields.
7176 (remote_multi_process_p): Move further below in the file.
7177 (struct packet_config): Add comments.
7178 (update_packet_config): Delete function.
7179 (show_packet_config_cmd): Use packet_config_support.
7180 (add_packet_config_cmd): Use NULL as set callback.
7181 (packet_ok): "set remote foo-packet"-style commands no longer
7182 change config->supported -- adjust.
7183 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
7184 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
7185 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
7186 (PACKET_QNonStop, PACKET_multiprocess_feature)
7187 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
7188 (PACKET_DisconnectedTracing_feature)
7189 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
7190 (set_remote_protocol_packet_cmd): Delete function.
7191 (packet_config_support, packet_support): New functions.
7192 (set_remote_protocol_Z_packet_cmd): Don't call
7193 update_packet_config.
7194 (remote_query_attached, remote_pass_signals)
7195 (remote_program_signals, remote_threads_info)
7196 (remote_threads_extra_info, remote_start_remote): Use
7197 packet_support.
7198 (remote_start_remote): Use packet_config_support and
7199 packet_support.
7200 (init_all_packet_configs): Set all packets to unknown support,
7201 instead of calling update_packet_config.
7202 (remote_check_symbols): Use packet_support.
7203 (remote_supported_packet): Unconditionally set the packet config's
7204 support status.
7205 (remote_multi_process_feature, remote_non_stop_feature)
7206 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
7207 (remote_breakpoint_commands_feature)
7208 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
7209 (remote_install_in_trace_feature)
7210 (remote_disconnected_tracing_feature)
7211 (remote_enable_disable_tracepoint_feature)
7212 (remote_string_tracing_feature)
7213 (remote_augmented_libraries_svr4_read_feature): Delete functions.
7214 (remote_protocol_features): Adjust to use remote_supported_packet
7215 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
7216 "ConditionalTracepoints", "ConditionalBreakpoints",
7217 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
7218 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
7219 "EnableDisableTracepoints", and "tracenz".
7220 (remote_query_supported): Use packet_support.
7221 (remote_open_1): Adjust.
7222 (extended_remote_attach_1): Use packet_support. Switch on the
7223 result of packet_ok instead of checking whether the packet ended
7224 up disabled.
7225 (remote_vcont_resume): Use packet_support.
7226 (remote_resume, remote_stop_ns, fetch_register_using_p)
7227 (remote_prepare_to_store, store_register_using_P)
7228 (check_binary_download, remote_write_bytes): Use packet_support.
7229 (remote_vkill): Use packet_support. Switch on the result of
7230 packet_ok instead of checking whether the packet ended up
7231 disabled.
7232 (extended_remote_supports_disable_randomization): Use
7233 packet_support.
7234 (extended_remote_run): Switch on the result of packet_ok instead
7235 of checking whether the packet ended up disabled.
7236 (remote_insert_breakpoint, remote_remove_breakpoint)
7237 (remote_insert_watchpoint, remote_remove_watchpoint)
7238 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
7239 packet_support.
7240 (remote_search_memory): Use packet_config_support.
7241 (remote_get_thread_local_address, remote_get_tib_address)
7242 (remote_hostio_send_command, remote_can_execute_reverse): Use
7243 packet_support.
7244 (remote_supports_cond_tracepoints)
7245 (remote_supports_cond_breakpoints)
7246 (remote_supports_fast_tracepoints)
7247 (remote_supports_static_tracepoints)
7248 (remote_supports_install_in_trace)
7249 (remote_supports_enable_disable_tracepoint)
7250 (remote_supports_string_tracing)
7251 (remote_can_run_breakpoint_commands): Rewrite, checking whether
7252 the packet config says the feature is enabled or disabled.
7253 (remote_download_tracepoint, remote_trace_set_readonly_regions)
7254 (remote_get_trace_status): Use packet_support.
7255 (remote_set_disconnected_tracing): Adjust to check whether the
7256 feature is enabled with packet_support.
7257 (remote_set_trace_buffer_size, remote_use_agent)
7258 (remote_can_use_agent, remote_supports_btrace): Use
7259 packet_support.
7260 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
7261 Use packet_config_support.
7262 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
7263 the packet config says the feature is enabled or disabled.
7264 (set_range_stepping): Use packet_support.
7265
bdb52a22
TT
72662014-04-25 Tom Tromey <tromey@redhat.com>
7267
7268 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
7269 argument.
7270
e9475ead
SA
72712014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
7272
7273 * NEWS: Mention support for C99 variable length arrays.
7274
82eacd52
JB
72752014-04-24 Joel Brobecker <brobecker@adacore.com>
7276
7277 * ada-lang.c (standard_exc): Expand introductory comment.
7278
01f9f808
MS
72792014-04-24 Michael Sturm <michael.sturm@mintel.com>
7280 Walfred Tedeschi <walfred.tedeschi@intel.com>
7281
7282 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
7283 AVX512 registers.
7284 (amd64_linux_read_description): Add code to handle AVX512 xstate
7285 mask and return respective tdesc.
7286 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
7287 and features/i386/x32-avx512-linux.c.
7288 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
7289 (amd64_linux_core_read_description): Add code to handle AVX512
7290 xstate mask and return respective tdesc.
7291 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
7292 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
7293 calculation.
7294 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
7295 (tdesc_amd64_avx512_linux): New prototype.
7296 (tdesc_x32_avx512_linux): Likewise.
7297 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
7298 features/i386/x32-avx512.c.
7299 (amd64_ymm_avx512_names): New register names for pseudo
7300 registers YMM16-31.
7301 (amd64_ymmh_avx512_names): New register names for raw registers
7302 YMMH16-31.
7303 (amd64_k_names): New register names for K registers.
7304 (amd64_zmmh_names): New register names for ZMM raw registers.
7305 (amd64_zmm_names): New registers names for ZMM pseudo registers.
7306 (amd64_xmm_avx512_names): New register names for XMM16-31
7307 registers.
7308 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
7309 registers.
7310 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
7311 if feature is present.
7312 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
7313 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
7314 (AMD64_NUM_REGS): Adjust to new number of registers.
7315 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
7316 registers supplied via XSTATE by AVX512 registers.
7317 (i386_linux_read_description): Add case for AVX512.
7318 * i386-linux-tdep.c: Include i386-avx512-linux.c.
7319 (i386_linux_gregset_reg_offset): Add AVX512 registers.
7320 (i386_linux_core_read_description): Add case for AVX512.
7321 (i386_linux_init_abi): Install supported register note section
7322 for AVX512.
7323 (_initialize_i386_linux_tdep): Add call to tdesc init function for
7324 AVX512.
7325 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
7326 registers to be number of zmm7h + 1.
7327 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
7328 * i386-tdep.c: Include features/i386/i386-avx512.c.
7329 (i386_zmm_names): Add ZMM pseudo register names array.
7330 (i386_zmmh_names): Add ZMM raw register names array.
7331 (i386_k_names): Add K raw register names array.
7332 (num_lower_zmm_regs): Add constant for the number of lower ZMM
7333 registers. AVX512 has 16 more ZMM registers than there are YMM
7334 registers.
7335 (i386_zmmh_regnum_p): Add function to look up register number of
7336 ZMM raw registers.
7337 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
7338 (i386_k_regnum_p): Likewise for K raw registers.
7339 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
7340 registers added by AVX512.
7341 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
7342 registers added by AVX512.
7343 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
7344 added by AVX512.
7345 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
7346 (i386_pseudo_register_name): Add ZMM pseudo registers.
7347 (i386_zmm_type): Construct and return vector registers type for ZMM
7348 registers.
7349 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
7350 ZMM0-31 pseudo registers and K registers.
7351 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
7352 and YMM16-31 registers from register cache.
7353 (i386_pseudo_register_write): Add code to write K, ZMM and
7354 YMM16-31 registers.
7355 (i386_register_reggroup_p): Add code to include/exclude AVX512
7356 registers in/from respective register groups.
7357 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
7358 registers if feature is present in xcr0.
7359 (i386_gdbarch_init): Add code to initialize AVX512 feature
7360 variables in tdep structure, wire in pseudo registers and call
7361 initialize_tdesc_i386_avx512.
7362 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
7363 variables.
7364 (i386_regnum): Add AVX512 registers.
7365 (I386_SSE_NUM_REGS): New define for number of SSE registers.
7366 (I386_AVX_NUM_REGS): Likewise for AVX registers.
7367 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
7368 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
7369 512 bits wide.
7370 (i386_xmm_avx512_regnum_p): New prototype for register look up.
7371 (i386_ymm_avx512_regnum_p): Likewise.
7372 (i386_k_regnum_p): Likewise.
7373 (i386_zmm_regnum_p): Likewise.
7374 (i386_zmmh_regnum_p): Likewise.
7375 * i387-tdep.c : Update year in copyright notice.
7376 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
7377 XSAVE buffer.
7378 (XSAVE_YMM_AVX512_ADDR): New macro.
7379 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
7380 XSAVE buffer.
7381 (XSAVE_XMM_AVX512_ADDR): New macro.
7382 (xsave_avx512_k_offset): New table for K register offsets in
7383 XSAVE buffer.
7384 (XSAVE_AVX512_K_ADDR): New macro.
7385 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
7386 in XSAVE buffer.
7387 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
7388 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
7389 buffer.
7390 (i387_collect_xsave): Add code to collect AVX512 registers from
7391 XSAVE buffer.
7392 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
7393 of XMM16-31 registers.
7394 (I387_NUM_K_REGS): New define for number of K registers.
7395 (I387_K0_REGNUM): New define for K0 register number.
7396 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
7397 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
7398 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
7399 registers.
7400 (I387_YMM16H_REGNUM): New define for YMM16H register number.
7401 (I387_XMM16_REGNUM): New define for XMM16 register number.
7402 (I387_YMM0_REGNUM): New define for YMM0 register number.
7403 (I387_KEND_REGNUM): New define for last K register number.
7404 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
7405 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
7406 number.
7407 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
7408 number.
7409 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
7410 size.
7411 * features/Makefile: Add AVX512 related files.
7412 * features/i386/32bit-avx512.xml: New file.
7413 * features/i386/64bit-avx512.xml: Likewise.
7414 * features/i386/amd64-avx512-linux.c: Likewise.
7415 * features/i386/amd64-avx512-linux.xml: Likewise.
7416 * features/i386/amd64-avx512.c: Likewise.
7417 * features/i386/amd64-avx512.xml: Likewise.
7418 * features/i386/i386-avx512-linux.c: Likewise.
7419 * features/i386/i386-avx512-linux.xml: Likewise.
7420 * features/i386/i386-avx512.c: Likewise.
7421 * features/i386/i386-avx512.xml: Likewise.
7422 * features/i386/x32-avx512-linux.c: Likewise.
7423 * features/i386/x32-avx512-linux.xml: Likewise.
7424 * features/i386/x32-avx512.c: Likewise.
7425 * features/i386/x32-avx512.xml: Likewise.
7426 * regformats/i386/amd64-avx512-linux.dat: New file.
7427 * regformats/i386/amd64-avx512.dat: Likewise.
7428 * regformats/i386/i386-avx512-linux.dat: Likewise.
7429 * regformats/i386/i386-avx512.dat: Likewise.
7430 * regformats/i386/x32-avx512-linux.dat: Likewise.
7431 * regformats/i386/x32-avx512.dat: Likewise.
7432 * NEWS: Add note about new support for AVX512.
7433
7434
08351840
PA
74352014-04-23 Pedro Alves <palves@redhat.com>
7436
7437 * breakpoint.c (insert_bp_location): Tolerate errors if the
7438 breakpoint is set in a user-loaded objfile.
7439 (remove_breakpoint_1): Likewise. Also tolerate errors if the
7440 location is marked shlib_disabled. If the breakpoint is set in a
7441 user-loaded objfile is a GDB-side memory breakpoint, validate it
7442 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
7443 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
7444 flag.
7445 * mem-break.c (memory_validate_breakpoint): New function.
7446 * objfiles.c (userloaded_objfile_contains_address_p): New
7447 function.
7448 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
7449 * target.h (memory_validate_breakpoint): New declaration.
7450
076855f9
PA
74512014-04-23 Pedro Alves <palves@redhat.com>
7452
7453 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
7454 the breakpoint is set in a shared library, only suppress
7455 errors for software breakpoints, not hardware breakpoints.
7456
483805cf
PA
74572014-04-22 Pedro Alves <palves@redhat.com>
7458
7459 * infrun.c (schedlock_applies): New function, factored out from
7460 find_thread_needs_step_over.
7461 (find_thread_needs_step_over): Use it.
7462 (switch_back_to_stepped_thread): Always clear trap_expected if the
7463 step over is finished. Return early if scheduler locking applies.
7464 Look for the stepping thread and a potential step-over thread with
7465 a single loop.
7466 (currently_stepping_or_nexting_callback): Delete.
7467
a75fef0e
NC
74682014-04-22 Nick Clifton <nickc@redhat.com>
7469
7470 * NEWS: Mention that ARM sim now supports tracing.
7471
48b6e87e
YQ
74722014-04-22 Yao Qi <yao@codesourcery.com>
7473
7474 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
7475 to ...
7476 * tracefile.c (tracefile_fetch_registers): ... it. New
7477 function.
7478 * tracefile.h (tracefile_fetch_registers): Declare.
7479 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
7480 tracefile_fetch_registers.
7481
17617f2d
EZ
74822014-04-19 Eli Zaretskii <eliz@gnu.org>
7483
7484 PR gdb/14018
7485 * windows-nat.c (thread_rec): Don't display a warning when
7486 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
7487 fails for any reason, set th->suspended to -1, so that we don't
7488 try to resume such a thread. Also, don't return NULL in these
7489 cases, to avoid completely ruin the session due to "PC register is
7490 not available" error.
7491 (do_windows_fetch_inferior_registers): Check errors in
7492 GetThreadContext call.
7493 (windows_continue): Accept an additional argument KILLED; if not
7494 zero, ignore errors in the SetThreadContext call, since the
7495 inferior was killed and is shutting down.
7496 (windows_resume, get_windows_debug_event)
7497 (windows_create_inferior, windows_mourn_inferior)
7498 (windows_kill_inferior): All callers of windows_continue changed
7499 to adjust to its new calling sequence.
7500
5723a6fd
YQ
75012014-04-19 Yao Qi <yao@codesourcery.com>
7502
7503 * ctf.c (ctf_open): Call post_create_inferior.
7504
614d5099
YQ
75052014-04-19 Yao Qi <yao@codesourcery.com>
7506
7507 * ctf.c (handle_id): New static variable.
7508 (ctf_open_dir): Get handle_id from bt_context_add_trace return
7509 value. Get the declaration of event "register" and get length
7510 of field "contents".
7511
dac3e710
YQ
75122014-04-19 Yao Qi <yao@codesourcery.com>
7513
7514 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
7515
2bca57ba
SC
75162014-04-18 Siva Chandra Reddy <sivachandra@google.com>
7517
7518 * valops.c (oload_method_static): Remove unnecessary argument
7519 METHOD. Update all callers.
7520
51d48146
PA
75212014-04-18 Pedro alves <palves@redhat.com>
7522 Tom Tromey <tromey@redhat.com>
7523
7524 PR backtrace/15558
7525 * frame.c (get_prev_frame_1): Rename to ...
7526 (get_prev_frame_always): ... this, and make extern. Adjust.
7527 (skip_artificial_frames): Use get_prev_frame_always.
7528 (frame_unwind_caller_id, frame_pop, get_prev_frame)
7529 (get_frame_unwind_stop_reason): Adjust to rename.
7530 * frame.h (get_prev_frame_always): Declare.
7531 * inline-frame.c: Include frame.h.
7532 (inline_frame_this_id): Use get_prev_frame_always.
7533
1bdad2e0
TG
75342014-04-18 Tristan Gingold <gingold@adacore.com>
7535
7536 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
7537 code by using bfd_mach_o_get_base_address.
7538
7ce16bd4
UW
75392014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
7540
7541 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
7542 (spu_ax_pseudo_register_collect): New function.
7543 (spu_ax_pseudo_register_push_stack): Likewise.
7544 (spu_dwarf_reg_to_regnum): Likewise.
7545 (spu_gdbarch_init): Install them. Append DWARF unwinders.
7546
2ed3c037
UW
75472014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
7548
7549 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
7550 Replace FRAME argument with FRAME_ID.
7551 * gdbarch.c, gdbarch.h: Regenerate.
7552 * findvar.c (default_value_from_register): Add GDBARCH argument;
7553 replace FRAME by FRAME_ID. No longer call get_frame_id.
7554 (value_from_register): Update call to gdbarch_value_from_register.
7555 * value.h (default_value_from_register): Update prototype.
7556 * s390-linux-tdep.c (s390_value_from_register): Update interface
7557 and call to default_value_from_register.
7558 * spu-tdep.c (spu_value_from_register): Likewise.
7559
7560 * findvar.c (address_from_register): Remove TYPE argument.
7561 Do not call value_from_register; use gdbarch_value_from_register
7562 with null_frame_id instead.
7563 * value.h (address_from_register): Update prototype.
7564 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
7565 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
7566 address_from_register interface change.
7567
71e50e83
YQ
75682014-04-17 Yao Qi <yao@codesourcery.com>
7569
7570 * gdbtypes.h: Update comments to link to types and macros'
7571 definitions.
7572
7a23c549
SC
75732014-04-16 Siva Chandra Reddy <sivachandra@google.com>
7574
7575 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
7576
22869d73
KS
75772014-04-16 Keith Seitz <keiths@redhat.com>
7578
7579 PR gdb/15827
7580 * dwarf2read.c (skip_one_die): Check that all relative-offset
7581 sibling DIEs fall within range of the current reader's buffer.
7582 (read_partial_die): Likewise.
7583
c4f87ca6
KS
75842014-04-16 Keith Seitz <keiths@redhat.com>
7585
7586 PR c++/16597
7587 * cp-namespace.c (lookup_symbol_file): If the type name of
7588 `this' is NULL, return immediately.
7589
b50c8614
KS
75902014-04-14 Keith Seitz <keiths@redhat.com>
7591
7592 PR c++/16253
7593 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
7594 from symbol_matches_domain in symtab.c. All local callers
7595 of symbol_matches_domain updated.
7596 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
7597 search STRUCT_DOMAIN.
7598 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
7599 independently. standard_lookup will do that automatically.
7600 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
7601 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7602 (cp_lookup_symbol_in_namespace): Likewise.
7603 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
7604 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
7605 may return a STRUCT_DOMAIN match.
7606 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
7607 * cp-support.c: Include language.h.
7608 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
7609 VAR_DOMAIN.
7610 * psymtab.c (match_partial_symbol): Compare the requested
7611 domain with the symbol's domain directly.
7612 (lookup_partial_symbol): Likewise.
7613 * symtab.c (lookup_symbol_in_language): Explain when/why
7614 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7615 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
7616 appropriate languages.
7617 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
7618 and moved to ada-lang.c
7619 (lookup_block_symbol): Explain that this function only returns
7620 symbol matching the requested DOMAIN.
7621 Compare the requested domain with the symbol's domain directly.
7622 (iterate_over_symbols): Compare the requested domain with the
7623 symbol's domain directly.
7624 * symtab.h (symbol_matches_domain): Remove.
7625
3d567982
TT
76262014-04-14 Tom Tromey <tromey@redhat.com>
7627
7628 PR c++/15246:
7629 * c-exp.y (type_aggregate_p): New function.
7630 (qualified_name, classify_inner_name): Use it.
7631 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
7632 and TYPE_TARGET_TYPE of an enum type.
7633 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
7634 an enum type.
7635 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
7636 handle TYPE_DECLARED_CLASS.
7637 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
7638 types.
7639 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
7640 * valops.c (enum_constant_from_type): New function.
7641 (value_aggregate_elt): Use it.
7642 * cp-namespace.c (cp_lookup_nested_symbol): Handle
7643 TYPE_CODE_ENUM.
7644
c848d642
TT
76452014-04-14 Tom Tromey <tromey@redhat.com>
7646
7647 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
7648 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
7649 const.
7650 * value.h (value_aggregate_elt): Update.
7651
0626fc76
TT
76522014-04-14 Tom Tromey <tromey@redhat.com>
7653
7654 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
7655
5ecaaa66
SA
76562014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7657
7658 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7659 (evaluate_subexp_standard): Pass noside argument.
7660 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7661 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7662 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7663 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7664 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7665
1612e0c0
SA
76662014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7667
7668 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7669 points to a constant blob.
7670
c451ebe5
SA
76712014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7672
7673 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7674 property and store it as the high bound and flag the range accordingly.
7675 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7676 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7677 * gdbtypes.h (enum range_flags): New enum.
7678 (struct range_bounds): Add flags member.
7679
1d42e4c4
SA
76802014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7681
7682 * c-typeprint.c (c_type_print_varspec_suffix): Added
7683 check for not yet resolved high bound. If unresolved, print
7684 "variable length" string to the console instead of random
7685 length.
7686
9f1f738a
SA
76872014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7688
7689 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
7690 value.
7691 (ada_template_to_fixed_record_type_1): Likewise.
7692 (ada_to_fixed_type_1): Likewise.
7693 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7694 (cp_print_value): Likewise.
7695 * d-valprint.c (dynamic_array_type): Likewise.
7696 * findvar.c (address_of_variable): Likewise.
7697 * jv-valprint.c (java_value_print): Likewise.
7698 * valops.c (value_ind): Likewise.
7699 * value.c (coerce_ref): Likewise.
7700
3c8452d4
SA
77012014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7702
7703 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7704 value and retrieve the dynamic type size.
7705
4ad88275
SA
77062014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7707
7708 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7709 passed to sizeof is dynamic evaluate the argument to compute the length.
7710
80180f79
SA
77112014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7712 Joel Brobecker <brobecker@adacore.com>
7713
7714 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7715 (dwarf2_evaluate_property): New function.
7716 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7717 * dwarf2read.c (attr_to_dynamic_prop): New function.
7718 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7719 attribute.
7720 * gdbtypes.c: Include dwarf2loc.h.
7721 (is_dynamic_type): New function.
7722 (resolve_dynamic_type): New function.
7723 (resolve_dynamic_bounds): New function.
7724 (get_type_length): New function.
7725 (check_typedef): Use get_type_length to compute type length.
7726 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7727 (TYPE_LOW_BOUND_KIND): New macro.
7728 (is_dynamic_type): New function prototype.
7729 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7730 to resolve dynamic properties of the type. Update comment.
7731 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7732
a1556843
RH
77332014-04-14 Richard Henderson <rth@redhat.com>
7734
7735 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
7736
0be03e84
DE
77372014-04-12 Siva Chandra Reddy <sivachandra@google.com>
7738 Doug Evans <xdje42@gmail.com>
7739
7740 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
7741 dereference TYPE_CODE_REF values.
7742
6b662e19
JB
77432014-04-11 Joel Brobecker <brobecker@adacore.com>
7744
7745 Revert the following changes due to regressions:
7746
7747 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7748 (dwarf2_evaluate_property): New function.
7749 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7750 * dwarf2read.c (attr_to_dynamic_prop): New function.
7751 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7752 attribute.
7753 * gdbtypes.c: Include dwarf2loc.h.
7754 (is_dynamic_type): New function.
7755 (resolve_dynamic_type): New function.
7756 (resolve_dynamic_bounds): New function.
7757 (get_type_length): New function.
7758 (check_typedef): Use get_type_length to compute type length.
7759 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7760 (TYPE_LOW_BOUND_KIND): New macro.
7761 (is_dynamic_type): New function prototype.
7762 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7763 to resolve dynamic properties of the type. Update comment.
7764 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7765
7766 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7767 passed to sizeof is dynamic evaluate the argument to compute the length.
7768
7769 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7770 value and retrieve the dynamic type size.
7771
7772 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7773 (ada_template_to_fixed_record_type_1): Likewise.
7774 (ada_to_fixed_type_1): Likewise.
7775 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7776 (cp_print_value): Likewise.
7777 * d-valprint.c (dynamic_array_type): Likewise.
7778 * eval.c (evaluate_subexp_with_coercion): Likewise.
7779 * findvar.c (address_of_variable): Likewise.
7780 * jv-valprint.c (java_value_print): Likewise.
7781 * valops.c (value_ind): Likewise.
7782 * value.c (coerce_ref): Likewise.
7783
7784 * c-typeprint.c (c_type_print_varspec_suffix): Added
7785 check for not yet resolved high bound. If unresolved, print
7786 "variable length" string to the console instead of random
7787 length.
7788
7789 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7790 property and store it as the high bound and flag the range accordingly.
7791 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7792 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7793 * gdbtypes.h (enum range_flags): New enum.
7794 (struct range_bounds): Add flags member.
7795
7796 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7797 points to a constant blob.
7798
7799 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7800 (evaluate_subexp_standard): Pass noside argument.
7801 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7802 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7803 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7804 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7805 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7806
245a5f0b
KS
78072014-04-11 Keith Seitz <keiths@redhat.com>
7808
7809 PR c++/16675
7810 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
7811 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
7812 reference types.
7813
3bce8237
SA
78142014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7815
7816 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7817 (evaluate_subexp_standard): Pass noside argument.
7818 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7819 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7820 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7821 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7822 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7823
92b09522
SA
78242014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7825
7826 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7827 points to a constant blob.
7828
e1969afb
SA
78292014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7830
7831 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7832 property and store it as the high bound and flag the range accordingly.
7833 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7834 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7835 * gdbtypes.h (enum range_flags): New enum.
7836 (struct range_bounds): Add flags member.
7837
b86138fb
SA
78382014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7839
7840 * c-typeprint.c (c_type_print_varspec_suffix): Added
7841 check for not yet resolved high bound. If unresolved, print
7842 "variable length" string to the console instead of random
7843 length.
7844
bcd629a4
SA
78452014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7846
7847 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7848 (ada_template_to_fixed_record_type_1): Likewise.
7849 (ada_to_fixed_type_1): Likewise.
7850 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7851 (cp_print_value): Likewise.
7852 * d-valprint.c (dynamic_array_type): Likewise.
7853 * eval.c (evaluate_subexp_with_coercion): Likewise.
7854 * findvar.c (address_of_variable): Likewise.
7855 * jv-valprint.c (java_value_print): Likewise.
7856 * valops.c (value_ind): Likewise.
7857 * value.c (coerce_ref): Likewise.
7858
04b19544
SA
78592014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7860
7861 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7862 value and retrieve the dynamic type size.
7863
26cb189f
SA
78642014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7865
7866 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7867 passed to sizeof is dynamic evaluate the argument to compute the length.
7868
37c1ab67
SA
78692014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7870
7871 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7872 (dwarf2_evaluate_property): New function.
7873 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7874 * dwarf2read.c (attr_to_dynamic_prop): New function.
7875 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7876 attribute.
7877 * gdbtypes.c: Include dwarf2loc.h.
7878 (is_dynamic_type): New function.
7879 (resolve_dynamic_type): New function.
7880 (resolve_dynamic_bounds): New function.
7881 (get_type_length): New function.
7882 (check_typedef): Use get_type_length to compute type length.
7883 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7884 (TYPE_LOW_BOUND_KIND): New macro.
7885 (is_dynamic_type): New function prototype.
7886 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7887 to resolve dynamic properties of the type. Update comment.
7888 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7889
729efb13
SA
78902014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7891
7892 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
7893 declaring high/low bounds and change uses accordingly. Call
7894 create_range_type instead of create_static_range_type.
7895 * gdbtypes.c (create_range_type): New function.
7896 (create_range_type): Convert bounds into struct bound_prop and pass
7897 them to create_range_type.
7898 * gdbtypes.h (struct bound_prop): New struct.
7899 (create_range_type): New function prototype.
7900 (struct range_bounds): Use struct bound_prop instead of LONGEST for
7901 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
7902 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
7903 part of the bound.
7904 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
7905
0c9c3474
SA
79062014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7907
7908 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
7909 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
7910 * ada-lang.c: All uses of create_range_type updated.
7911 * coffread.c: All uses of create_range_type updated.
7912 * dwarf2read.c: All uses of create_range_type updated.
7913 * f-exp.y: All uses of create_range_type updated.
7914 * m2-valprint.c: All uses of create_range_type updated.
7915 * mdebugread.c: All uses of create_range_type updated.
7916 * stabsread.c: All uses of create_range_type updated.
7917 * valops.c: All uses of create_range_type updated.
7918 * valprint.c: All uses of create_range_type updated.
7919
9d497a19
PA
79202014-04-10 Pedro Alves <palves@redhat.com>
7921
7922 * breakpoint.c (single_step_breakpoints)
7923 (single_step_gdbarch): Move up in the file.
7924 (one_breakpoint_xfer_memory): New function, factored out from ...
7925 (breakpoint_xfer_memory): ... here. Also process single-step
7926 breakpoints.
7927
15a9128a
TG
79282014-04-09 Tristan Gingold <gingold@adacore.com>
7929
7930 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
7931 comments.
7932 (darwin_decode_exception_message): Free port only after use.
7933
9c97a070
PL
79342014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
7935
7936 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
7937 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
7938 when setting the size of call_length.
7939
7af389b8
SC
79402014-04-07 Siva Chandra Reddy <sivachandra@google.com>
7941
7942 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
7943 dereference TYPE_CODE_REF values.
7944
86ad98c3
JB
79452014-04-07 Joel Brobecker <brobecker@adacore.com>
7946
7947 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
7948 end of warning message.
7949
b0aeadb3
DE
79502014-04-03 Doug Evans <dje@google.com>
7951
7952 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
7953 of stub_comp_unit_die, stub_comp_dir is non-NULL.
7954
5979d6b6
AM
79552014-04-02 Alan Modra <amodra@gmail.com>
7956
7957 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
7958 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
7959 (struct symbol_file_add_from_memory_args): Add size field.
7960 (find_vdso_size): New function.
7961 (add_vsyscall_page): Attempt to find vdso size.
7962
0d60c288
DE
79632014-04-01 Doug Evans <dje@google.com>
7964
7965 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
7966
a41f2563
TG
79672014-04-01 Tristan Gingold <gingold@adacore.com>
7968
7969 * darwin-nat.c (darwin_encode_reply): Add prototype.
7970 (darwin_decode_exception_message): Reply to unknown inferiors.
7971 (darwin_decode_message): Handle message by id. Ignore message
7972 to unknown inferior.
7973 (darwin_wait): Discard unknown messages, add debug trace.
7974
11a865c8
DE
79752014-03-31 Doug Evans <dje@google.com>
7976
7977 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
7978 comp_dir_string.
7979
770e7fc7
DE
79802014-03-31 Doug Evans <dje@google.com>
7981
7982 New option "set print symbol-loading".
7983 * NEWS: Mention it.
7984 * solib.c (solib_read_symbols): Only print symbol loading messages
7985 if requested.
7986 (solib_add): If symbol loading is in "brief" mode, notify user
7987 symbols are being loaded.
7988 (reload_shared_libraries_1): Ditto.
7989 * symfile.c (print_symbol_loading_off): New static global.
7990 (print_symbol_loading_brief): New static global.
7991 (print_symbol_loading_full): New static global.
7992 (print_symbol_loading_enums): New static global.
7993 (print_symbol_loading): New static global.
7994 (print_symbol_loading_p): New function.
7995 (symbol_file_add_with_addrs): Only print symbol loading messages
7996 if requested.
7997 (_initialize_symfile): Register "print symbol-loading" set/show
7998 command.
7999 * symfile.h (print_symbol_loading_p): Declare.
8000
c32c64b7
DE
80012014-03-30 Doug Evans <xdje42@gmail.com>
8002
8003 * infrun.c (set_last_target_status): New function.
8004 (handle_inferior_event): Call it.
8005
7c0bc051
DE
80062014-03-30 Doug Evans <xdje42@gmail.com>
8007
8008 * inferior.h (enum stop_kind): Improve comment.
8009
8776cfe9
JB
80102014-03-28 Joel Brobecker <brobecker@adacore.com>
8011
8012 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
8013 a reference, strip the reference layer before calling
8014 the lang_ops value_has_mutated callback.
8015
410a0ff2
SDJ
80162014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
8017
8018 Remove some globals from our parser.
8019 * language.c (unk_lang_parser): Add "struct parser_state"
8020 argument.
8021 * language.h (struct language_defn) <la_parser>: Likewise.
8022 * parse.c (expout, expout_size, expout_ptr): Remove variables.
8023 (initialize_expout): Add "struct parser_state" argument.
8024 Rewrite function to use the parser state.
8025 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
8026 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
8027 write_exp_elt_longcst, write_exp_elt_dblcst,
8028 write_exp_elt_decfloatcst, write_exp_elt_type,
8029 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
8030 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
8031 write_dollar_variable): Likewise.
8032 (parse_exp_in_context_1): Use parser state.
8033 (insert_type_address_space): Add "struct parser_state" argument.
8034 Use parser state.
8035 (increase_expout_size): New function.
8036 * parser-defs.h: Forward declare "struct language_defn" and
8037 "struct parser_state".
8038 (expout, expout_size, expout_ptr): Remove extern declarations.
8039 (parse_gdbarch, parse_language): Rewrite macro declarations to
8040 accept the parser state.
8041 (struct parser_state): New struct.
8042 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
8043 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
8044 write_exp_elt_decfloatcst, write_exp_elt_type,
8045 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
8046 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
8047 write_exp_msymbol, write_dollar_variable,
8048 mark_struct_expression, insert_type_address_space): Add "struct
8049 parser_state" argument.
8050 (increase_expout_size): New function.
8051 * utils.c (do_clear_parser_state): New function.
8052 (make_cleanup_clear_parser_state): Likewise.
8053 * utils.h (make_cleanup_clear_parser_state): New function
8054 prototype.
8055 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
8056 Update calls to write_exp* in order to pass the parser state.
8057 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
8058 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
8059 (i386_stap_parse_special_token_three_arg_disp): Likewise.
8060 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
8061 * stap-probe.c (stap_parse_register_operand): Likewise.
8062 (stap_parse_single_operand): Likewise.
8063 (stap_parse_argument_1): Likewise.
8064 (stap_parse_argument): Use parser state.
8065 * stap-probe.h: Include "parser-defs.h".
8066 (struct stap_parse_info) <pstate>: New field.
8067 * c-exp.y (parse_type): Rewrite to use parser state.
8068 (yyparse): Redefine to c_parse_internal.
8069 (pstate): New global variable.
8070 (parse_number): Add "struct parser_state" argument.
8071 (write_destructor_name): Likewise.
8072 (type_exp): Update calls to write_exp* and similars in order to
8073 use parser state.
8074 (exp1, exp, variable, qualified_name, space_identifier,
8075 typename, typebase): Likewise.
8076 (write_destructor_name, parse_number, lex_one_token,
8077 classify_name, classify_inner_name, c_parse): Add "struct
8078 parser_state" argument. Update function to use parser state.
8079 * c-lang.h: Forward declare "struct parser_state".
8080 (c_parse): Add "struct parser_state" argument.
8081 * ada-exp.y (parse_type): Rewrite macro to use parser state.
8082 (yyparse): Redefine macro to ada_parse_internal.
8083 (pstate): New variable.
8084 (write_int, write_object_renaming, write_var_or_type,
8085 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
8086 type_int, type_long, type_long_long, type_float, type_double,
8087 type_long_double, type_char, type_boolean, type_system_address):
8088 Add "struct parser_state" argument.
8089 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
8090 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
8091 var_or_type, aggregate, aggregate_component_list,
8092 positional_list, others, component_group,
8093 component_associations): Update calls to write_exp* and similar
8094 functions in order to use parser state.
8095 (ada_parse, write_var_from_sym, write_int,
8096 write_exp_op_with_string, write_object_renaming,
8097 find_primitive_type, write_selectors, write_ambiguous_var,
8098 write_var_or_type, write_name_assoc, type_int, type_long,
8099 type_long_long, type_float, type_double, type_long_double,
8100 type_char, type_boolean, type_system_address): Add "struct
8101 parser_state" argument. Adjust function to use parser state.
8102 * ada-lang.c (parse): Likewise.
8103 * ada-lang.h: Forward declare "struct parser_state".
8104 (ada_parse): Add "struct parser_state" argument.
8105 * ada-lex.l (processInt, processReal): Likewise. Adjust all
8106 calls to both functions.
8107 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
8108 parser state.
8109 (yyparse): Redefine macro to f_parse_internal.
8110 (pstate): New variable.
8111 (parse_number): Add "struct parser_state" argument.
8112 (type_exp, exp, subrange, typebase): Update calls to write_exp*
8113 and similars in order to use parser state.
8114 (parse_number): Adjust code to use parser state.
8115 (yylex): Likewise.
8116 (f_parse): New function.
8117 * f-lang.h: Forward declare "struct parser_state".
8118 (f_parse): Add "struct parser_state" argument.
8119 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
8120 parser state.
8121 (yyparse): Redefine macro for java_parse_internal.
8122 (pstate): New variable.
8123 (push_expression_name, push_expression_name, insert_exp): Add
8124 "struct parser_state" argument.
8125 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
8126 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
8127 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
8128 PostIncrementExpression, PostDecrementExpression,
8129 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
8130 UnaryExpressionNotPlusMinus, CastExpression,
8131 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
8132 RelationalExpression, EqualityExpression, AndExpression,
8133 ExclusiveOrExpression, InclusiveOrExpression,
8134 ConditionalAndExpression, ConditionalOrExpression,
8135 ConditionalExpression, Assignment, LeftHandSide): Update
8136 calls to write_exp* and similars in order to use parser state.
8137 (parse_number): Ajust code to use parser state.
8138 (yylex): Likewise.
8139 (java_parse): New function.
8140 (push_variable): Add "struct parser_state" argument. Adjust
8141 code to user parser state.
8142 (push_fieldnames, push_qualified_expression_name,
8143 push_expression_name, insert_exp): Likewise.
8144 * jv-lang.h: Forward declare "struct parser_state".
8145 (java_parse): Add "struct parser_state" argument.
8146 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
8147 parser state.
8148 (yyparse): Redefine macro to m2_parse_internal.
8149 (pstate): New variable.
8150 (type_exp, exp, fblock, variable, type): Update calls to
8151 write_exp* and similars to use parser state.
8152 (yylex): Likewise.
8153 (m2_parse): New function.
8154 * m2-lang.h: Forward declare "struct parser_state".
8155 (m2_parse): Add "struct parser_state" argument.
8156 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
8157 * objc-lang.h: Forward declare "struct parser_state".
8158 (end_msglist): Add "struct parser_state" argument.
8159 * p-exp.y (parse_type): Rewrite macro to use parser state.
8160 (yyparse): Redefine macro to pascal_parse_internal.
8161 (pstate): New variable.
8162 (parse_number): Add "struct parser_state" argument.
8163 (type_exp, exp1, exp, qualified_name, variable): Update calls to
8164 write_exp* and similars in order to use parser state.
8165 (parse_number, yylex): Adjust code to use parser state.
8166 (pascal_parse): New function.
8167 * p-lang.h: Forward declare "struct parser_state".
8168 (pascal_parse): Add "struct parser_state" argument.
8169 * go-exp.y (parse_type): Rewrite macro to use parser state.
8170 (yyparse): Redefine macro to go_parse_internal.
8171 (pstate): New variable.
8172 (parse_number): Add "struct parser_state" argument.
8173 (type_exp, exp1, exp, variable, type): Update calls to
8174 write_exp* and similars in order to use parser state.
8175 (parse_number, lex_one_token, classify_name, yylex): Adjust code
8176 to use parser state.
8177 (go_parse): Likewise.
8178 * go-lang.h: Forward declare "struct parser_state".
8179 (go_parse): Add "struct parser_state" argument.
8180
342587c4
DE
81812014-03-27 Doug Evans <dje@google.com>
8182
8183 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
8184
33e80786
DE
81852014-03-27 Doug Evans <dje@google.com>
8186
8187 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
8188 Remove argument abbrev_section. All callers updated.
8189
1dbab08b
DE
81902014-03-27 Doug Evans <dje@google.com>
8191
8192 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
8193 addr_base, ranges_base.
8194
318d3177
KS
81952014-03-26 Keith Seitz <keiths@redhat.com>
8196
8197 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
8198 types, not VAR_DOMAIN.
8199
1e54db15
SL
82002014-03-25 Sandra Loosemore <sandra@codesourcery.com>
8201
8202 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
8203 "ra" registers.
8204 * features/nios2-linux.c: Regenerated.
8205 * features/nios2.c: Regenerated.
8206
d3839ede
PA
82072014-03-25 Pedro Alves <palves@redhat.com>
8208
8209 * cli/cli-script.c (script_from_file): Force the interpreter to
8210 sync mode.
8211
7588d2ec
PL
82122014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
8213
8214 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
8215 small stack allocation.
8216
a6290449
TG
82172014-03-24 Tristan Gingold <gingold@adacore.com>
8218
8219 * darwin-nat.c (exc_server): Remove unused prototype.
8220 (darwin_dump_message): Correctly display data on x86_64.
8221 (darwin_encode_reply): Fix style.
8222 Add comments and fix indentation.
8223
31ae9d24 82242014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
69fa4030
PL
8225
8226 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
8227
6339bfc4
DE
82282014-03-22 Doug Evans <xdje42@gmail.com>
8229
8230 * infcmd.c: Whitespace fixes.
8231 (interrupt_command): Merge two function comments into one.
8232
0a07590b
DE
82332014-03-22 Doug Evans <xdje42@gmail.com>
8234
8235 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
8236 All uses updated.
8237
b55fbac4
YQ
82382014-03-22 Yao Qi <yao@codesourcery.com>
8239
8240 * remote.c (target_read_live_memory): Remove.
8241 (memory_xfer_live_readonly_partial): Rename it to
8242 remote_xfer_live_readonly_partial. Remove argument 'object'.
8243 All callers updated. Call remote_read_bytes_1
8244 instead of target_read_live_memory.
8245 * tracepoint.c (set_traceframe_number): Remove.
8246 (make_cleanup_restore_traceframe_number): Likewise .
8247 * tracepoint.h (set_traceframe_number): Remove declaration.
8248 (make_cleanup_restore_traceframe_number): Likewise.
8249
9217e74e
YQ
82502014-03-22 Yao Qi <yao@codesourcery.com>
8251
8252 * remote.c (remote_read_bytes): Move code on reading from the
8253 remote stub to ...
8254 (remote_read_bytes_1): ... here. New function.
8255
8acf9577
YQ
82562014-03-22 Yao Qi <yao@codesourcery.com>
8257
8258 * ctf.c (ctf_xfer_partial): Check the return value of
8259 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
8260 return TARGET_XFER_UNAVAILABLE.
8261 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8262 * target.c (target_read_live_memory): Move it to remote.c.
8263 (memory_xfer_live_readonly_partial): Likewise.
8264 (memory_xfer_partial_1): Move some code to remote_read_bytes.
8265 * remote.c (target_read_live_memory): Moved from target.c.
8266 (memory_xfer_live_readonly_partial): Likewise.
8267 (remote_read_bytes): Factored out from
8268 memory_xfer_partial_1.
8269
feef67ab
DE
82702014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
8271
8272 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
8273 NULL pointer.
8274
b65dc60b
PA
82752014-03-21 Pedro Alves <palves@redhat.com>
8276
8277 * infrun.c (normal_stop): Extend comment.
8278
b4ab256d
HZ
82792014-03-21 Hui Zhu <hui@codesourcery.com>
8280 Pedro Alves <palves@redhat.com>
8281
8282 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
8283 static buffer.
8284 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
8285 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
8286 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
8287
deba7593
MR
82882014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
8289
8290 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
8291 `z' formatted output modifier.
8292
1bff71c3
SDJ
82932014-03-20 Tom Tromey <tromey@redhat.com>
8294 Sergio Durigan Junior <sergiodj@redhat.com>
8295
8296 * probe.c (parse_probes): Turn assert into an ordinary error.
8297 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
8298 exceptions when parsing probes. Rearrange the code for clarity.
8299
90e28950
TT
83002014-03-20 Tom Tromey <tromey@redhat.com>
8301
8302 PR gdb/14135
8303 * top.c (execute_command): Only dispatch events if the command
8304 started the target.
8305
beb460e8
PA
83062014-03-20 Tom Tromey <tromey@redhat.com>
8307
8308 PR cli/15718
8309 * infcall.c: Include event-top.h.
8310 (run_inferior_call): Call async_disable_stdin if needed.
8311
99619bea
PA
83122014-03-20 Pedro Alves <palves@redhat.com>
8313
8314 * infrun.c (prepare_to_proceed): Delete.
8315 (thread_still_needs_step_over): New function.
8316 (find_thread_needs_step_over): New function.
8317 (proceed): If the current thread needs a step-over, set its
8318 steping_over_breakpoint flag. Adjust to use
8319 find_thread_needs_step_over instead of prepare_to_proceed.
8320 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
8321 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
8322 breakpoint.
8323 (switch_back_to_stepped_thread): Step over breakpoints of all
8324 threads not the stepping thread, before switching back to the
8325 stepping thread.
8326
2adfaa28
PA
83272014-03-20 Pedro Alves <palves@redhat.com>
8328
8329 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
8330 extern.
8331 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
8332 * infrun.c (saved_singlestep_ptid)
8333 (stepping_past_singlestep_breakpoint): Delete.
8334 (resume): Remove stepping_past_singlestep_breakpoint handling.
8335 (proceed): Store the prev_pc of the stepping thread too.
8336 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
8337 singlestep_pc.
8338 (enum infwait_states): Delete infwait_thread_hop_state.
8339 (struct execution_control_state) <hit_singlestep_breakpoint>: New
8340 field.
8341 (handle_inferior_event): Adjust.
8342 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
8343 handling and the thread-hop code. Before removing single-step
8344 breakpoints, check whether the thread hit a single-step breakpoint
8345 of another thread. If it did, the trap is not a random signal.
8346 (switch_back_to_stepped_thread): If the event thread hit a
8347 single-step breakpoint, unblock it before switching to the
8348 stepping thread. Handle the case of the stepped thread having
8349 advanced already.
8350 (keep_going): Handle the case of the current thread moving past a
8351 single-step breakpoint.
8352
31e77af2
PA
83532014-03-20 Pedro Alves <palves@redhat.com>
8354
8355 PR breakpoints/7143
8356 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
8357 are being stepped over.
8358 (breakpoint_address_match): Make extern.
8359 * breakpoint.h (breakpoint_address_match): New declaration.
8360 * inferior.h (stepping_past_instruction_at): New declaration.
8361 * infrun.c (struct step_over_info): New type.
8362 (step_over_info): New global.
8363 (set_step_over_info, clear_step_over_info)
8364 (stepping_past_instruction_at): New functions.
8365 (handle_inferior_event): Clear the step-over info when
8366 trap_expected is cleared.
8367 (resume): Remove now stale comment.
8368 (clear_proceed_status): Clear step-over info.
8369 (proceed): Adjust step-over handling to set or clear the step-over
8370 info instead of removing all breakpoints.
8371 (handle_signal_stop): When setting up a thread-hop, don't remove
8372 breakpoints here.
8373 (stop_stepping): Clear step-over info.
8374 (keep_going): Adjust step-over handling to set or clear step-over
8375 info and then always inserting breakpoints, instead of removing
8376 all breakpoints when stepping over one.
8377
b9f437de
PA
83782014-03-20 Pedro Alves <palves@redhat.com>
8379
8380 * infrun.c (previous_inferior_ptid): Adjust comment.
8381 (deferred_step_ptid): Delete.
8382 (infrun_thread_ptid_changed, prepare_to_proceed)
8383 (init_wait_for_inferior): Adjust.
8384 (handle_signal_stop): Delete deferred_step_ptid handling.
8385
06c868a8
JK
83862014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
8387
8388 PR gdb/15358
8389 * defs.h (sync_quit_force_run): New declaration.
8390 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
8391 * event-top.c (async_sigterm_handler): New declaration.
8392 (async_sigterm_token): New variable.
8393 (async_init_signals): Create also async_sigterm_token.
8394 (async_sigterm_handler): New function.
8395 (sync_quit_force_run): New variable.
8396 (handle_sigterm): Replace quit_force call by other calls.
8397 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
8398
dea80df0
MR
83992014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
8400
8401 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
8402 offset into SPE pseudo registers.
8403
0c7e1a46
PA
84042014-03-18 Pedro Alves <palves@redhat.com>
8405
8406 PR gdb/13860
8407 * inferior.h (print_stop_event): Declare.
8408 * infrun.c (print_stop_event): New, factored out from ...
8409 (normal_stop): ... this.
8410 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
8411 of bpstat_print/print_stack_frame.
8412
9c1fcd01
TT
84132014-03-17 Tom Tromey <tromey@redhat.com>
8414
8415 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
8416
11aa919a
PMR
84172014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
8418
8419 * ada-lang.c (decode_constrained_packed_array): Perform a
8420 minimal coercion for reference with coerce_ref instead of
8421 ada_coerce_ref.
8422
d4ccb5e0
TG
84232014-03-17 Tristan Gingold <gingold@adacore.com>
8424
8425 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
8426 (darwin_solib_create_inferior_hook): Emit a warning if version
8427 is unhandled.
8428
49840f2a
UW
84292014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
8430
8431 * python/py-value.c (get_field_flag): Cast flag_name argument to
8432 PyObject_GetAttrString to support Python 2.4.
8433
ed4123e5
JK
84342014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8435
8436 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
8437 (Global Maintainers): Remove Jan Kratochvil.
8438
d6b64346
PA
84392014-03-14 Pedro Alves <palves@redhat.com>
8440
8441 * inferior.h (terminal_ours_for_output): Rename to ...
8442 (child_terminal_ours_for_output): ... this.
8443 (terminal_save_ours): Rename to ...
8444 (child_terminal_save_ours): ... this.
8445 (terminal_ours): Rename to ...
8446 (child_terminal_ours): ... this.
8447 (terminal_inferior): Rename to ...
8448 (child_terminal_inferior): ... this.
8449 (terminal_init_inferior): Rename to ...
8450 (child_terminal_init_inferior): ... this.
8451 (terminal_init_inferior_with_pgrp): Rename to ...
8452 (child_terminal_init_inferior_with_pgrp): ... this.
8453 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
8454 (child_terminal_init_with_pgrp): ... this.
8455 (terminal_save_ours): Rename to ...
8456 (child_terminal_save_ours): ... this.
8457 (terminal_init_inferior): Rename to ...
8458 (child_terminal_init): ... this. Adjust.
8459 (terminal_inferior): Rename to ...
8460 (child_terminal_inferior): ... this.
8461 (terminal_ours_for_output): Rename to ...
8462 (child_terminal_ours_for_output): ... this. Adjust.
8463 (terminal_ours): Rename to ...
8464 (child_terminal_ours): ... this.
8465 (terminal_ours_1): Rename to ...
8466 (child_terminal_ours_1): ... this. Adjust.
8467 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
8468 * windows-nat.c (do_initial_windows_stuff): Adjust.
8469 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
8470 (gnu_terminal_init): ... this. Adjust.
8471 (gnu_target): Adjust.
8472 * inf-child.c (inf_child_target): Adjust.
8473
5a1e8c7a
DE
84742014-03-13 Doug Evans <xdje42@gmail.com>
8475
8476 PR guile/16612
8477 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
8478 new eq?-hashtab.
8479
350e1a76
DE
84802014-03-13 Doug Evans <xdje42@gmail.com>
8481
8482 * value.c (record_latest_value): Call release_value_or_incref
8483 instead of release_value.
8484
a69900ae
PA
84852014-03-13 Pedro Alves <palves@redhat.com>
8486
8487 * procfs.c (procfs_target): Don't override to_shortname,
8488 to_longname or to_doc.
8489
5db9f0bd
PA
84902014-03-13 Pedro Alves <palves@redhat.com>
8491
8492 * inf-child.c (inf_child_open, inf_child_target): Don't mention
8493 Unix in user visible strings.
8494
5e3a2c38
SS
84952014-03-12 Stan Shebs <stan@codesourcery.com>
8496
8497 * gdbtypes.h: Annotate comments for Doxygen, add a page
8498 block comment with some general info.
8499
8bc2fe48
PA
85002014-03-12 Pedro Alves <palves@redhat.com>
8501
8502 * infcmd.c (prepare_execution_command): New function, factored out
8503 from several execution commands.
8504 (run_command_1, continue_command, step_1, jump_command)
8505 (signal_command, until_command, advance_command, finish_command)
8506 (attach_command): Use prepare_execution_command.
8507
638c5f49
OJ
85082014-03-12 Omair Javaid <omair.javaid@linaro.org>
8509
8510 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
8511 (MAX_BPTS): Define.
8512 (MAX_WPTS): Define.
8513 (struct arm_linux_thread_points): Removed.
8514 (struct arm_linux_process_info): New.
8515 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
8516 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
8517 (arm_linux_find_breakpoints_by_tid): Removed.
8518 (struct arch_lwp_info): New.
8519 (arm_linux_find_process_pid): New functions.
8520 (arm_linux_add_process): New functions.
8521 (arm_linux_process_info_get): New functions.
8522 (arm_linux_forget_process): New function.
8523 (arm_linux_get_debug_reg_state): New function.
8524 (struct update_registers_data): New.
8525 (update_registers_callback): New function.
8526 (arm_linux_insert_hw_breakpoint1): Updated.
8527 (arm_linux_remove_hw_breakpoint1): Updated.
8528 (arm_linux_insert_hw_breakpoint): Updated.
8529 (arm_linux_remove_hw_breakpoint): Updated.
8530 (arm_linux_insert_watchpoint): Updated.
8531 (arm_linux_remove_watchpoint): Updated.
8532 (arm_linux_new_thread): Updated.
8533 (arm_linux_prepare_to_resume): New function.
8534 (arm_linux_new_fork): New function.
8535 (_initialize_arm_linux_nat): Updated.
8536
6d03af93
PA
85372014-03-12 Pedro Alves <palves@redhat.com>
8538
8539 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
8540
b3ccfe11
TT
85412014-03-12 Tom Tromey <tromey@redhat.com>
8542
8543 * inf-child.c (return_zero): New function.
8544 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
8545 * aix-thread.c (aix_thread_inferior_created): New function.
8546 (aix_thread_attach): Remove.
8547 (init_aix_thread_ops): Don't set to_attach.
8548 (_initialize_aix_thread): Register inferior_created observer.
8549 * corelow.c (init_core_ops): Don't set to_attach or
8550 to_create_inferior.
8551 * exec.c (init_exec_ops): Don't set to_attach or
8552 to_create_inferior.
8553 * infcmd.c (run_command_1): Use find_run_target. Make direct
8554 target calls.
8555 (attach_command): Use find_attach_target. Make direct target
8556 calls.
8557 * record-btrace.c (init_record_btrace_ops): Don't set
8558 to_create_inferior.
8559 * record-full.c (record_full_can_async_p, record_full_is_async_p):
8560 Remove.
8561 (init_record_full_ops, init_record_full_core_ops): Update. Don't
8562 set to_create_inferior.
8563 * target.c (complete_target_initialization): Add assertion.
8564 (target_create_inferior): Remove.
8565 (find_default_attach, find_default_create_inferior): Remove.
8566 (find_attach_target, find_run_target): New functions.
8567 (find_default_is_async_p, find_default_can_async_p)
8568 (target_supports_non_stop, target_attach): Remove.
8569 (init_dummy_target): Don't set to_create_inferior or
8570 to_supports_non_stop.
8571 * target.h (struct target_ops) <to_attach>: Add comment. Remove
8572 TARGET_DEFAULT_FUNC.
8573 <to_create_inferior>: Add comment.
8574 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
8575 TARGET_DEFAULT_RETURN.
8576 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
8577 (find_attach_target, find_run_target): Declare.
8578 (target_create_inferior): Remove.
8579 (target_has_execution_1): Update comment.
8580 (target_supports_non_stop): Remove.
8581 * target-delegates.c: Rebuild.
8582
91f83b02
PA
85832014-03-12 Pedro Alves <palves@redhat.com>
8584
8585 * inf-child.h: Update comment to not mention Unix.
8586
f1aea813
PA
85872014-03-12 Pedro Alves <palves@redhat.com>
8588
8589 * inf-child.c: Update top comment to not mention Unix. Add
8590 generic comment describing how this target is meant to be used.
8591 (inf_child_post_attach, inf_child_post_startup_inferior)
8592 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
8593 Unix in comment.
8594
ee8e9165
PA
85952014-03-12 Pedro Alves <palves@redhat.com>
8596
8597 * nto-procfs.c: Include inf-child.h.
8598 (procfs_ops): Delete global.
8599 (procfs_can_run): Delete method.
8600 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
8601 target pointer instead of referencing procfs_ops.
8602 (procfs_prepare_to_store): Delete.
8603 (init_procfs_ops): Delete function.
8604 (procfs_target): New function, based on init_procfs_ops, but
8605 inherit inf_child_target.
8606 (_initialize_procfs): Use procfs_target.
8607
51a9c8c5
PA
86082014-03-12 Pedro Alves <palves@redhat.com>
8609
8610 * windows-nat.c: Include inf-child.h.
8611 (windows_ops): Delete global.
8612 (windows_open, windows_prepare_to_store, windows_can_run): Delete
8613 methods.
8614 (init_windows_ops): Delete function.
8615 (windows_target): New function, based on init_windows_ops, but
8616 inherit inf_child_target.
8617 (_initialize_windows_nat): Use windows_target. Install x86
8618 specific target methods here.
8619
c1966e26
DE
86202014-03-10 Doug Evans <xdje42@gmail.com>
8621
8622 * guile/guile.c (call_initialize_gdb_module): New function.
8623 (initialize_guile): Replace call to scm_init_guile with call to
8624 scm_with_guile.
8625
023db19c
JB
86262014-03-10 Joel Brobecker <brobecker@adacore.com>
8627
8628 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
8629 in call to TYPE_CODE macro.
8630
5ec18f2b
JG
86312014-03-10 Jerome Guitton <guitton@adacore.com>
8632
8668be63
JB
8633 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
8634 Resolve tagged types to full view.
5ec18f2b 8635
7d03f2eb
HZ
86362014-03-10 Hui Zhu <hui@codesourcery.com>
8637
8638 * target.h (target_insert_breakpoint): Remove "hardware" from its
8639 comments.
8640
c5164cbc
DE
86412014-03-07 Doug Evans <dje@google.com>
8642
8643 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
8644
c4a3fee2
DE
86452014-03-07 Doug Evans <dje@google.com>
8646
8647 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
8648 Remove unused local comp_dir_attr. Assert exactly one of
8649 stub_comp_unit_die, stub_comp_dir is non-NULL.
8650
3156469c
JB
86512014-03-07 Joel Brobecker <brobecker@adacore.com>
8652
8653 * target.h (complete_target_initialization, add_target):
8654 Add comment.
8655
c1a7b7c6
PA
86562014-03-07 Pedro Alves <palves@redhat.com>
8657
8658 * go32-nat.c: Include inf-child.h.
8659 (go32_ops): Delete global.
8660 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
8661 Delete methods.
8662 (go32_create_inferior): Push the passed in target pointer instead
8663 of referencing go32_ops.
8664 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
8665 (go32_target): New function, based on init_go32_ops, but inherit
8666 inf_child_target.
8667 (_initialize_go32_nat): Use go32_target. Move parts of
8668 init_go32_ops here.
8669
d3c1a85f
JB
86702014-03-06 Joel Brobecker <brobecker@adacore.com>
8671
8672 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
8673 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
8674 SYMBOL_VALUE_ADDRESS.
8675 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
8676
5fa1d40e
YQ
86772014-03-06 Yao Qi <yao@codesourcery.com>
8678
8679 * breakpoint.c (get_tracepoint_by_number): Remove argument
8680 optional_p. All callers updated. Adjust comments. Update
8681 output message.
8682 * breakpoint.h (get_tracepoint_by_number): Update declaration.
8683
0c13193f
YQ
86842014-03-06 Yao Qi <yao@codesourcery.com>
8685
8686 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
8687 early if get_number returns zero. Use 'p' instead of 'args'.
8688
2217da06
YQ
86892014-03-06 Yao Qi <yao@codesourcery.com>
8690
8691 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
8692 message.
8693
cc3da688
YQ
86942014-03-06 Yao Qi <yao@codesourcery.com>
8695
8696 PR breakpoints/16508
8697 * tracepoint.c (check_trace_running): New function.
8698 (trace_find_command): Move code to check_trace_running and
8699 call check_trace_running.
8700 (trace_find_pc_command): Likewise.
8701 (trace_find_tracepoint_command): Likewise.
8702 (trace_find_line_command): Likewise.
8703 (trace_find_range_command): Likewise.
8704 * tracepoint.h (check_trace_running): Likewise.
8705 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
8706
6a5f844b
YQ
87072014-03-06 Yao Qi <yao@codesourcery.com>
8708
8709 * target.h (struct target_ops) <to_traceframe_info>: Use
8710 TARGET_DEFAULT_NORETURN (tcomplain ()).
8711 * target-delegates.c: Regenerated.
8712
0f26cec1
PA
87132014-03-05 Pedro Alves <palves@redhat.com>
8714
8715 PR gdb/16575
8716 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
8717 void. Update comment.
8718 (dcache_xfer_memory): Delete.
8719 (dcache_read_memory_partial): New, based on the read bits of
8720 dcache_xfer_memory.
8721 (dcache_update): Add status parameter. Use ULONGEST for len, and
8722 adjust. Discard cache lines if the reason for the update was
8723 error.
8724 * dcache.h (dcache_xfer_memory): Delete declaration.
8725 (dcache_read_memory_partial): New declaration.
8726 (dcache_update): Update prototype.
8727 * target.c (raw_memory_xfer_partial): Update the dcache here.
8728 (memory_xfer_partial_1): Don't handle dcache writes here.
8729
b2b255bd
MF
87302014-03-05 Mike Frysinger <vapier@gentoo.org>
8731
8732 * remote-sim.c (gdbsim_load): Add const to prog.
8733
5d9cf8a4
TT
87342014-03-03 Tom Tromey <tromey@redhat.com>
8735
8736 * elfread.c (probe_key): Change to bfd_data.
8737 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
8738 now per-BFD, not per-objfile.
8739 * stap-probe.c (stap_probe_destroy): Update comment.
8740 (handle_stap_probe): Allocate on the per-BFD obstack.
8741
729662a5
TT
87422014-03-03 Tom Tromey <tromey@redhat.com>
8743
8744 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
8745 * breakpoint.c (create_longjmp_master_breakpoint): Use
8746 get_probe_address.
8747 (add_location_to_breakpoint, bkpt_probe_insert_location)
8748 (bkpt_probe_remove_location): Update.
8749 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
8750 * elfread.c (elf_symfile_relocate_probe): Remove.
8751 (elf_probe_fns): Update.
8752 (insert_exception_resume_breakpoint): Change type of "probe"
8753 parameter to bound_probe.
8754 (check_exception_resume): Update.
8755 * objfiles.c (objfile_relocate1): Don't relocate probes.
8756 * probe.c (bound_probe_s): New typedef.
8757 (parse_probes): Use get_probe_address. Set sal's objfile.
8758 (find_probe_by_pc): Return a bound_probe.
8759 (collect_probes): Return a VEC(bound_probe_s).
8760 (compare_probes): Update.
8761 (gen_ui_out_table_header_info): Change type of "probes"
8762 parameter. Update.
8763 (info_probes_for_ops): Update.
8764 (get_probe_address): New function.
8765 (probe_safe_evaluate_at_pc): Update.
8766 * probe.h (struct probe_ops) <get_probe_address>: New field.
8767 <set_semaphore, clear_semaphore>: Add objfile parameter.
8768 (struct probe) <objfile>: Remove field.
8769 <arch>: New field.
8770 <address>: Update comment.
8771 (struct bound_probe): New.
8772 (find_probe_by_pc): Return a bound_probe.
8773 (get_probe_address): Declare.
8774 * solib-svr4.c (struct probe_and_action) <address>: New field.
8775 (hash_probe_and_action, equal_probe_and_action): Update.
8776 (register_solib_event_probe): Add address parameter.
8777 (solib_event_probe_at): Update.
8778 (svr4_create_probe_breakpoints): Add objfile parameter. Use
8779 get_probe_address.
8780 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
8781 (stap_get_probe_address): New function.
8782 (stap_can_evaluate_probe_arguments, compute_probe_arg)
8783 (compile_probe_arg): Update.
8784 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
8785 address.
8786 (handle_stap_probe): Don't relocate the probe.
8787 (stap_relocate): Remove.
8788 (stap_gen_info_probes_table_values): Update.
8789 (stap_probe_ops): Remove stap_relocate.
8790 * symfile-debug.c (debug_sym_relocate_probe): Remove.
8791 (debug_sym_probe_fns): Update.
8792 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
8793 * symtab.c (init_sal): Use memset.
8794 * symtab.h (struct symtab_and_line) <objfile>: New field.
8795 * tracepoint.c (start_tracing, stop_tracing): Update.
8796
ff887920
TT
87972014-03-03 Tom Tromey <tromey@redhat.com>
8798
8799 * probe.h (parse_probes, find_probe_by_pc)
8800 (find_probes_in_objfile): Fix comments.
8801
f0407826
DE
88022014-03-02 Doug Evans <xdje42@gmail.com>
8803
8804 * infrun.c (handle_signal_stop): Replace test for
8805 TARGET_WAITKIND_STOPPED with an assert.
8806
35e6a711
DE
88072014-03-02 Doug Evans <xdje42@gmail.com>
8808
8809 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
8810
667f9d0b
DE
88112014-03-02 Doug Evans <xdje42@gmail.com>
8812
8813 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
8814
dc92ace0
MK
88152014-03-01 Mark Kettenis <kettenis@gnu.org>
8816
8817 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
8818
a900370f
MK
88192014-03-01 Mark Kettenis <kettenis@gnu.org>
8820
8821 * i386obsd-nat.c: Include "obsd-nat.h".
8822 (_initialize_i386obsd_nat): Call obsd_add_target instead of
8823 add_target.
8824 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8825
b72a7981
MK
88262014-03-01 Mark Kettenis <kettenis@gnu.org>
8827
8828 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
8829
96c70aba
MK
88302014-03-01 Mark Kettenis <kettenis@gnu.org>
8831
8832 * mips64obsd-nat.c: Include "obsd-nath".
8833 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
8834 add_target
8835 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8836
874a80af
MK
88372014-03-01 Mark Kettenis <kettenis@gnu.org>
8838
8fd408f1
MK
8839 * amd64obsd-nat.c: Include "obsd-nat,h.
8840 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
8841 add_target.
874a80af
MK
8842 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8843
9cf95373
SC
88442014-02-28 Siva Chandra Reddy <sivachandra@google.com>
8845
8846 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
8847 (find_overload_match): Update call to find_oload_champ.
8848 (find_oload_champ_namespace_loop): Likewise
8849
863e4da4
MK
88502014-02-28 Mark Kettenis <kettenis@gnu.org>
8851
025cac40
MK
8852 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
8853
1ed586ce
MK
8854 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
8855 * config/sparc/obsd64.mh: New file.
8856 * sparc64obsd-nat.c: New file.
8857
863e4da4
MK
8858 * obsd-nat.h: New file.
8859 * obsd-nat.c: New file.
8860 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
8861 (ALLDEPFILES): Add obsd-nat.c.
8862
89de4da4
TT
88632014-02-28 Tom Tromey <tromey@redhat.com>
8864
8865 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
8866 * cli-out.h (cli_ui_out_impl): Now const.
8867 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
8868 * ui-out.c (struct ui_out) <impl>: Now const.
8869 (default_ui_out_impl): Now const.
8870 (ui_out_new): Make 'impl' parameter const.
8871 * ui-out.h (ui_out_new): Update.
8872
c725e7b6
MK
88732014-02-27 Mark Kettenis <kettenis@gnu.org>
8874
8875 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
8876
670b46b3
MK
88772014-02-27 Mark Kettenis <kettenis@gnu.org>
8878
8879 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
8880
c91550fc
JK
88812014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
8882
8883 Additional PR 8882 fix.
8884 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
8885
2fa0369e
PA
88862014-02-27 Pedro Alves <palves@redhat.com>
8887
8888 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
8889 isn't set.
8890
d632a097
PA
88912014-02-27 Pedro Alves <palves@redhat.com>
8892
8893 PR 12702
8894 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
8895 * nat/linux-waitpid.c: Include string.h.
8896 (status_to_str): Moved here and made extern.
8897 * nat/linux-waitpid.h (status_to_str): New declaration.
8898
2ebd5a35
HZ
88992014-02-27 Hui Zhu <hui@codesourcery.com>
8900
8901 PR 12702
8902 * infrun.c (ptid_match): Move ...
8903 * common/ptid.c (ptid_match): ... here.
8904 * inferior.h (ptid_match): Move ...
8905 * common/ptid.h (ptid_match): ... here.
8906
3cdd631f
MK
89072014-02-27 Mark Kettenis <kettenis@gnu.org>
8908
8909 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
8910 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
8911 gdb_target_obs.
8912
bee30a64
MK
89132014-02-27 Mark Kettenis <kettenis@gnu.org>
8914
8915 * obsd-tdep.c (obsd_auxv_parse): New function.
8916 (obsd_init_abi): Set auxv_parse.
27a48a92
MK
8917
8918 * gdbarch.sh (auxv_parse): New.
8919 * gdbarch.h: Regenerated.
8920 * gdbarch.c: Regenerated.
8921 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
8922
7a5a839f
LC
89232014-02-26 Ludovic Courtès <ludo@gnu.org>
8924
8925 * guile/scm-value.c (gdbscm_history_append_x): New function.
8926 (value_functions): Add it.
8927
31aa7e4e
JB
89282014-02-27 Joel Brobecker <brobecker@adacore.com>
8929
8930 * dwarf2read.c (attr_value_as_address): New function.
8931 (dwarf2_find_base_address, read_call_site_scope): Use
8932 attr_value_as_address in place of DW_ADDR.
8933 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
8934 the low and high addresses. Slight rework of the handling
8935 of the high pc being a constant form, and limit it to
8936 DWARF verson 4 or higher.
8937 (dwarf2_record_block_ranges): Likewise.
8938 (read_partial_die): Likewise.
8939 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
8940
9b333ba3
TT
89412014-02-26 Tom Tromey <tromey@redhat.com>
8942
8943 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
8944
5f6cac40
TT
89452014-02-26 Tom Tromey <tromey@redhat.com>
8946
8947 * elfread.c (elf_read_minimal_symbols): Return early if
8948 minimal symbols have already been read. Add "ei" parameter.
8949 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
8950 * minsyms.c (prim_record_minimal_symbol_full): Update.
8951 * objfiles.h (struct objstats) <n_minsyms>: Move...
8952 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
8953 * symmisc.c (print_objfile_statistics): Update.
8954
2750ef27
TT
89552014-02-26 Tom Tromey <tromey@redhat.com>
8956
8957 * elfread.c (elf_read_minimal_symbols): New function, from
8958 elf_symfile_read.
8959 (elf_symfile_read): Call it.
8960
34643a32
TT
89612014-02-26 Tom Tromey <tromey@redhat.com>
8962
8963 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
8964 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
8965 (lookup_minimal_symbol_solib_trampoline)
8966 (lookup_minimal_symbol_by_pc_section_1)
8967 (lookup_minimal_symbol_and_objfile): Update.
8968 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
8969 Don't allocate a minimal symbol if minsyms have already been read.
8970 (build_minimal_symbol_hash_tables): Update.
8971 (install_minimal_symbols): Do nothing if minsyms already read.
8972 Use the per-BFD obstack.
8973 (terminate_minimal_symbol_table): Use the per-BFD obstack.
8974 * objfiles.c (allocate_objfile): Call
8975 terminate_minimal_symbol_table later.
8976 (have_minimal_symbols): Update.
8977 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
8978 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
8979 Move from struct objfile.
8980 <minsyms_read>: New field.
8981 (struct objfile) <msymbols, minimal_symbol_count,
8982 msymbol_hash, msymbol_demangled_hash>: Move.
8983 (ALL_OBJFILE_MSYMBOLS): Update.
8984 * symfile.c (read_symbols): Set minsyms_read.
8985 (reread_symbols): Update.
8986 * symmisc.c (dump_objfile, dump_msymbols): Update.
8987
2273f0ac
TT
89882014-02-26 Tom Tromey <tromey@redhat.com>
8989
8990 * minsyms.c (msymbols_sort): Remove.
8991 * minsyms.h (msymbols_sort): Remove.
8992 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
8993 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
8994 * elfread.c (elf_symtab_read): Don't add section offsets.
8995 * xcoffread.c (record_minimal_symbol): Don't add section offset
8996 to minimal symbol address.
8997 * somread.c (text_offset, data_offset): Remove.
8998 (som_symtab_read): Don't add section offsets to minimal symbol
8999 addresses.
9000 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
9001 Don't add section offsets to minimal symbols.
9002 * coffread.c (coff_symtab_read): Don't add section offsets
9003 to minimal symbol addresses.
9004 * machoread.c (macho_symtab_add_minsym): Don't add section offset
9005 to minimal symbol addresses.
9006 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
9007 section offset to minimal symbol addresses.
9008 * mdebugread.c (parse_partial_symbols): Don't add section
9009 offset to minimal symbol addresses.
9010 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
9011 offset to minimal symbol addresses.
9012
77e371c0
TT
90132014-02-26 Tom Tromey <tromey@redhat.com>
9014
9015 * ada-lang.c (ada_main_name): Update.
9016 (ada_add_standard_exceptions): Update.
9017 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
9018 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9019 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
9020 * auxv.c (ld_so_xfer_auxv): Update.
9021 * avr-tdep.c (avr_scan_prologue): Update.
9022 * ax-gdb.c (gen_var_ref): Update.
9023 * blockframe.c (get_pc_function_start)
9024 (find_pc_partial_function_gnu_ifunc): Update.
9025 * breakpoint.c (create_overlay_event_breakpoint)
9026 (create_longjmp_master_breakpoint)
9027 (create_std_terminate_master_breakpoint)
9028 (create_exception_master_breakpoint): Update.
9029 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9030 * c-valprint.c (c_val_print): Update.
9031 * coff-pe-read.c (add_pe_forwarded_sym): Update.
9032 * common/agent.c (agent_look_up_symbols): Update.
9033 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
9034 * dwarf2loc.c (call_site_to_target_addr): Update.
9035 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
9036 * elfread.c (elf_gnu_ifunc_record_cache)
9037 (elf_gnu_ifunc_resolve_by_got): Update.
9038 * findvar.c (default_read_var_value): Update.
9039 * frame.c (inside_main_func): Update.
9040 * frv-tdep.c (frv_frame_this_id): Update.
9041 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9042 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
9043 Update.
9044 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
9045 (hppa_hpux_find_dummy_bpaddr): Update.
9046 * hppa-tdep.c (hppa_symbol_address): Update.
9047 * infcmd.c (until_next_command): Update.
9048 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
9049 Update.
9050 * linespec.c (minsym_found, add_minsym): Update.
9051 * linux-nat.c (get_signo): Update.
9052 * linux-thread-db.c (inferior_has_bug): Update.
9053 * m32c-tdep.c (m32c_return_value)
9054 (m32c_m16c_address_to_pointer): Update.
9055 * m32r-tdep.c (m32r_frame_this_id): Update.
9056 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9057 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9058 * maint.c (maintenance_translate_address): Update.
9059 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
9060 (frob_address): New function.
9061 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
9062 frob_address. Rename parameter to "pc_in".
9063 (compare_minimal_symbols, compact_minimal_symbols): Use raw
9064 addresses.
9065 (find_solib_trampoline_target, minimal_symbol_upper_bound):
9066 Update.
9067 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9068 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
9069 * objc-lang.c (find_objc_msgsend): Update.
9070 * objfiles.c (objfile_relocate1): Update.
9071 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9072 * p-valprint.c (pascal_val_print): Update.
9073 * parse.c (write_exp_msymbol): Update.
9074 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
9075 (ppc_elfv2_skip_entrypoint): Update.
9076 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9077 * printcmd.c (build_address_symbolic, msym_info)
9078 (address_info): Update.
9079 * proc-service.c (ps_pglobal_lookup): Update.
9080 * psymtab.c (find_pc_sect_psymtab_closer)
9081 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
9082 Change msymbol parameter to bound_minimal_symbol.
9083 * ravenscar-thread.c (get_running_thread_id): Update.
9084 * remote.c (remote_check_symbols): Update.
9085 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
9086 address.
9087 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9088 * solib-dsbt.c (lm_base): Update.
9089 * solib-frv.c (lm_base, main_got): Update.
9090 * solib-irix.c (locate_base): Update.
9091 * solib-som.c (som_solib_create_inferior_hook)
9092 (link_map_start): Update.
9093 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
9094 * solib-svr4.c (elf_locate_base, enable_break): Update.
9095 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
9096 (flush_ea_cache): Update.
9097 * stabsread.c (define_symbol, scan_file_globals): Update.
9098 * stack.c (find_frame_funname): Update.
9099 * symfile-debug.c (debug_qf_expand_symtabs_matching)
9100 (debug_qf_find_pc_sect_symtab): Update.
9101 * symfile.c (simple_read_overlay_table)
9102 (simple_overlay_update): Update.
9103 * symfile.h (struct quick_symbol_functions)
9104 <find_pc_sect_symtab>: Change type of msymbol to
9105 bound_minimal_symbol.
9106 * symmisc.c (dump_msymbols): Update.
9107 * symtab.c (find_pc_sect_symtab_via_partial)
9108 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
9109 (search_symbols, print_msymbol_info): Update.
9110 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
9111 (MSYMBOL_VALUE_ADDRESS): Redefine.
9112 (BMSYMBOL_VALUE_ADDRESS): New macro.
9113 * tracepoint.c (scope_info): Update.
9114 * tui/tui-disasm.c (tui_find_disassembly_address)
9115 (tui_get_begin_asm_address): Update.
9116 * valops.c (find_function_in_inferior): Update.
9117 * value.c (value_static_field, value_fn_field): Update.
9118
3b7344d5
TT
91192014-02-26 Tom Tromey <tromey@redhat.com>
9120
9121 * ada-lang.c (ada_update_initial_language): Update.
9122 (ada_main_name, ada_has_this_exception_support): Update.
9123 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
9124 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9125 * arm-tdep.c (arm_skip_stub): Update.
9126 * auxv.c (ld_so_xfer_auxv): Update.
9127 * avr-tdep.c (avr_scan_prologue): Update.
9128 * ax-gdb.c (gen_var_ref): Update.
9129 * breakpoint.c (struct breakpoint_objfile_data)
9130 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
9131 type to bound_minimal_symbol.
9132 (create_overlay_event_breakpoint)
9133 (create_longjmp_master_breakpoint)
9134 (create_std_terminate_master_breakpoint)
9135 (create_exception_master_breakpoint): Update.
9136 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9137 * c-exp.y (classify_name): Update.
9138 * coffread.c (coff_symfile_read): Update.
9139 * common/agent.c (agent_look_up_symbols): Update.
9140 * d-lang.c (d_main_name): Update.
9141 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
9142 * dec-thread.c (enable_dec_thread): Update.
9143 * dwarf2loc.c (call_site_to_target_addr): Update.
9144 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
9145 * eval.c (evaluate_subexp_standard): Update.
9146 * findvar.c (struct minsym_lookup_data) <result>: Change type
9147 to bound_minimal_symbol.
9148 <objfile>: Remove.
9149 (minsym_lookup_iterator_cb, default_read_var_value): Update.
9150 * frame.c (inside_main_func): Update.
9151 * frv-tdep.c (frv_frame_this_id): Update.
9152 * gcore.c (call_target_sbrk): Update.
9153 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9154 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
9155 Update.
9156 * go-lang.c (go_main_name): Update.
9157 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
9158 (hppa_hpux_find_import_stub_for_addr): Update.
9159 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
9160 Update. Change return type.
9161 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
9162 type.
9163 * jit.c (jit_breakpoint_re_set_internal): Update.
9164 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
9165 Update.
9166 * linux-nat.c (get_signo): Update.
9167 * linux-thread-db.c (inferior_has_bug): Update
9168 * m32c-tdep.c (m32c_return_value)
9169 (m32c_m16c_address_to_pointer): Update.
9170 * m32r-tdep.c (m32r_frame_this_id): Update.
9171 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9172 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9173 * minsyms.c (lookup_minimal_symbol_internal): Rename to
9174 lookup_minimal_symbol. Change return type.
9175 (lookup_minimal_symbol): Remove.
9176 (lookup_bound_minimal_symbol): Update.
9177 (lookup_minimal_symbol_text): Change return type.
9178 (lookup_minimal_symbol_solib_trampoline): Change return type.
9179 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
9180 (lookup_minimal_symbol_solib_trampoline): Change return type.
9181 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9182 * objc-lang.c (lookup_objc_class, lookup_child_selector)
9183 (value_nsstring, find_imps): Update.
9184 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9185 * p-lang.c (pascal_main_name): Update.
9186 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
9187 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9188 * proc-service.c (ps_pglobal_lookup): Update.
9189 * ravenscar-thread.c (get_running_thread_msymbol): Change
9190 return type.
9191 (has_ravenscar_runtime, get_running_thread_id): Update.
9192 * remote.c (remote_check_symbols): Update.
9193 * sol-thread.c (ps_pglobal_lookup): Update.
9194 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9195 * solib-dsbt.c (lm_base): Update.
9196 * solib-frv.c (lm_base, frv_relocate_section_addresses):
9197 Update.
9198 * solib-irix.c (locate_base): Update.
9199 * solib-som.c (som_solib_create_inferior_hook)
9200 (som_solib_desire_dynamic_linker_symbols, link_map_start):
9201 Update.
9202 * solib-spu.c (spu_enable_break): Update.
9203 * solib-svr4.c (elf_locate_base, enable_break): Update.
9204 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
9205 (flush_ea_cache): Update.
9206 * stabsread.c (define_symbol): Update.
9207 * symfile.c (simple_read_overlay_table): Update.
9208 * symtab.c (find_pc_sect_line): Update.
9209 * tracepoint.c (scope_info): Update.
9210 * tui-disasm.c (tui_get_begin_asm_address): Update.
9211 * value.c (value_static_field): Update.
9212
40c1a007
TT
92132014-02-26 Tom Tromey <tromey@redhat.com>
9214
9215 * minsyms.c (prim_record_minimal_symbol_full): Use
9216 SET_MSYMBOL_VALUE_ADDRESS.
9217 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
9218 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
9219 SET_MSYMBOL_VALUE_ADDRESS.
9220 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
9221 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
9222
efd66ac6
TT
92232014-02-26 Tom Tromey <tromey@redhat.com>
9224
9225 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
9226 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
9227 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
9228 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
9229 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
9230 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
9231 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
9232 * ada-lang.c (ada_main_name): Update.
9233 (ada_lookup_simple_minsym): Update.
9234 (ada_make_symbol_completion_list): Update.
9235 (ada_add_standard_exceptions): Update.
9236 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
9237 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9238 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
9239 * arm-tdep.c (skip_prologue_function): Update.
9240 (arm_skip_stack_protector, arm_skip_stub): Update.
9241 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
9242 (arm_wince_skip_main_prologue): Update.
9243 * auxv.c (ld_so_xfer_auxv): Update.
9244 * avr-tdep.c (avr_scan_prologue): Update.
9245 * ax-gdb.c (gen_var_ref): Update.
9246 * block.c (call_site_for_pc): Update.
9247 * blockframe.c (get_pc_function_start): Update.
9248 (find_pc_partial_function_gnu_ifunc): Update.
9249 * breakpoint.c (create_overlay_event_breakpoint): Update.
9250 (create_longjmp_master_breakpoint): Update.
9251 (create_std_terminate_master_breakpoint): Update.
9252 (create_exception_master_breakpoint): Update.
9253 (resolve_sal_pc): Update.
9254 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9255 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
9256 Update.
9257 * c-valprint.c (c_val_print): Update.
9258 * coff-pe-read.c (add_pe_forwarded_sym): Update.
9259 * coffread.c (coff_symfile_read): Update.
9260 * common/agent.c (agent_look_up_symbols): Update.
9261 * dbxread.c (find_stab_function_addr): Update.
9262 (end_psymtab): Update.
9263 * dwarf2loc.c (call_site_to_target_addr): Update.
9264 (func_verify_no_selftailcall): Update.
9265 (tailcall_dump): Update.
9266 (call_site_find_chain_1): Update.
9267 (dwarf_expr_reg_to_entry_parameter): Update.
9268 * elfread.c (elf_gnu_ifunc_record_cache): Update.
9269 (elf_gnu_ifunc_resolve_by_got): Update.
9270 * f-valprint.c (info_common_command): Update.
9271 * findvar.c (read_var_value): Update.
9272 * frame.c (get_prev_frame_1): Update.
9273 (inside_main_func): Update.
9274 * frv-tdep.c (frv_skip_main_prologue): Update.
9275 (frv_frame_this_id): Update.
9276 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9277 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
9278 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
9279 (gnuv3_skip_trampoline): Update.
9280 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
9281 (hppa64_hpux_in_solib_call_trampoline): Update.
9282 (hppa_hpux_skip_trampoline_code): Update.
9283 (hppa64_hpux_search_dummy_call_sequence): Update.
9284 (hppa_hpux_find_import_stub_for_addr): Update.
9285 (hppa_hpux_find_dummy_bpaddr): Update.
9286 * hppa-tdep.c (hppa_symbol_address)
9287 (hppa_lookup_stub_minimal_symbol): Update.
9288 * i386-tdep.c (i386_skip_main_prologue): Update.
9289 (i386_pe_skip_trampoline_code): Update.
9290 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
9291 * infcall.c (get_function_name): Update.
9292 * infcmd.c (until_next_command): Update.
9293 * jit.c (jit_breakpoint_re_set_internal): Update.
9294 (jit_inferior_init): Update.
9295 * linespec.c (minsym_found): Update.
9296 (add_minsym): Update.
9297 * linux-fork.c (info_checkpoints_command): Update.
9298 * linux-nat.c (get_signo): Update.
9299 * linux-thread-db.c (inferior_has_bug): Update.
9300 * m32c-tdep.c (m32c_return_value): Update.
9301 (m32c_m16c_address_to_pointer): Update.
9302 (m32c_m16c_pointer_to_address): Update.
9303 * m32r-tdep.c (m32r_frame_this_id): Update.
9304 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9305 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9306 * maint.c (maintenance_translate_address): Update.
9307 * minsyms.c (add_minsym_to_hash_table): Update.
9308 (add_minsym_to_demangled_hash_table): Update.
9309 (msymbol_objfile): Update.
9310 (lookup_minimal_symbol): Update.
9311 (iterate_over_minimal_symbols): Update.
9312 (lookup_minimal_symbol_text): Update.
9313 (lookup_minimal_symbol_by_pc_name): Update.
9314 (lookup_minimal_symbol_solib_trampoline): Update.
9315 (lookup_minimal_symbol_by_pc_section_1): Update.
9316 (lookup_minimal_symbol_and_objfile): Update.
9317 (prim_record_minimal_symbol_full): Update.
9318 (compare_minimal_symbols): Update.
9319 (compact_minimal_symbols): Update.
9320 (build_minimal_symbol_hash_tables): Update.
9321 (install_minimal_symbols): Update.
9322 (terminate_minimal_symbol_table): Update.
9323 (find_solib_trampoline_target): Update.
9324 (minimal_symbol_upper_bound): Update.
9325 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9326 * mips-tdep.c (mips_stub_frame_sniffer): Update.
9327 (mips_skip_pic_trampoline_code): Update.
9328 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
9329 * objc-lang.c (selectors_info): Update.
9330 (classes_info): Update.
9331 (find_methods): Update.
9332 (find_imps): Update.
9333 (find_objc_msgsend): Update.
9334 * objfiles.c (objfile_relocate1): Update.
9335 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
9336 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9337 * p-valprint.c (pascal_val_print): Update.
9338 * parse.c (write_exp_msymbol): Update.
9339 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
9340 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
9341 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9342 * printcmd.c (build_address_symbolic): Update.
9343 (sym_info): Update.
9344 (address_info): Update.
9345 * proc-service.c (ps_pglobal_lookup): Update.
9346 * psymtab.c (find_pc_sect_psymtab_closer): Update.
9347 (find_pc_sect_psymtab): Update.
9348 * python/py-framefilter.c (py_print_frame): Update.
9349 * ravenscar-thread.c (get_running_thread_id): Update.
9350 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
9351 Update.
9352 * remote.c (remote_check_symbols): Update.
9353 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
9354 (rs6000_skip_trampoline_code): Update.
9355 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
9356 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9357 * solib-dsbt.c (lm_base): Update.
9358 * solib-frv.c (lm_base): Update.
9359 (main_got): Update.
9360 * solib-irix.c (locate_base): Update.
9361 * solib-som.c (som_solib_create_inferior_hook): Update.
9362 (som_solib_desire_dynamic_linker_symbols): Update.
9363 (link_map_start): Update.
9364 * solib-spu.c (spu_enable_break): Update.
9365 (ocl_enable_break): Update.
9366 * solib-svr4.c (elf_locate_base): Update.
9367 (enable_break): Update.
9368 * spu-tdep.c (spu_get_overlay_table): Update.
9369 (spu_catch_start): Update.
9370 (flush_ea_cache): Update.
9371 * stabsread.c (define_symbol): Update.
9372 (scan_file_globals): Update.
9373 * stack.c (find_frame_funname): Update.
9374 (frame_info): Update.
9375 * symfile.c (simple_read_overlay_table): Update.
9376 (simple_overlay_update): Update.
9377 * symmisc.c (dump_msymbols): Update.
9378 * symtab.c (fixup_section): Update.
9379 (find_pc_sect_line): Update.
9380 (skip_prologue_sal): Update.
9381 (search_symbols): Update.
9382 (print_msymbol_info): Update.
9383 (rbreak_command): Update.
9384 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
9385 (completion_list_objc_symbol): Update.
9386 (default_make_symbol_completion_list_break_on): Update.
9387 * tracepoint.c (scope_info): Update.
9388 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
9389 (tui_get_begin_asm_address): Update.
9390 * valops.c (find_function_in_inferior): Update.
9391 * value.c (value_static_field): Update.
9392 (value_fn_field): Update.
9393
50e65b17
TT
93942014-02-26 Tom Tromey <tromey@redhat.com>
9395
9396 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
9397 bound minimal symbols. Move code that knows about minsym
9398 table layout...
9399 * minsyms.c (minimal_symbol_upper_bound): ... here. New
9400 function.
9401 * minsyms.h (minimal_symbol_upper_bound): Declare.
9402 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
9403 minimal_symbol_upper_bound.
9404
1b588015
JB
94052014-02-27 Joel Brobecker <brobecker@adacore.com>
9406
9407 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
9408 Use the type's name if its basic type does not have a tag.
9409
dbb9c2b1
JB
94102014-02-27 Joel Brobecker <brobecker@adacore.com>
9411
9412 * dwarf2read.c (read_subrange_type): Add comment.
9413
55426c9d
JB
94142014-02-27 Joel Brobecker <brobecker@adacore.com>
9415
9416 * dwarf2read.c (update_enumeration_type_from_children): New
9417 function, mostly extracted from process_structure_scope.
9418 (read_enumeration_type): Call update_enumeration_type_from_children.
9419 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
9420 and flag_flag_enum fields.
9421
f2fce0ca
PA
94222014-02-26 Pedro Alves <palves@redhat.com>
9423
9424 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
9425 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
9426 to_xfer_partial method.
9427
7a44e40e
PA
94282014-02-26 Pedro Alves <palves@redhat.com>
9429
9430 * target.c (complete_target_initialization): Don't install
9431 default_xfer_partial as to_xfer_partial hook.
9432 (nomemory): Delete.
9433 (update_current_target): Don't INHERIT nor de_fault
9434 deprecated_xfer_memory. Delete de_fault macro.
9435 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
9436 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
9437 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
9438 field.
9439
bd265cd0
PA
94402014-02-26 Pedro Alves <palves@redhat.com>
9441
9442 * go32-nat.c (my_write_child): New function.
9443 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
9444 (go32_xfer_partial): New function.
9445 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
9446 Instead install a to_xfer_partial hook.
9447
9d46c4e5
PA
94482014-02-26 Pedro Alves <palves@redhat.com>
9449
9450 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
9451 to_xfer_partial helper. Rewrite.
9452 (procfs_xfer_partial): New function.
9453 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
9454 Install a to_xfer_partial hook.
9455
a1583b1f
PA
94562014-02-26 Pedro Alves <palves@redhat.com>
9457
9458 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
9459 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
9460 (m32r_xfer_partial): New function.
9461 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
9462 Install a to_xfer_partial hook.
9463
6df1b29f
PA
94642014-02-26 Pedro Alves <palves@redhat.com>
9465
9466 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
9467 helper.
9468 (mips_xfer_partial): New function.
9469 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
9470 hook. Install a to_xfer_partial hook.
9471
dc53a7ad
JB
94722014-02-26 Joel Brobecker <brobecker@adacore.com>
9473
9474 * gdbtypes.h (create_array_type_with_stride): Add declaration.
9475 * gdbtypes.c (create_array_type_with_stride): New function,
9476 renaming create_array_type, but with an added parameter
9477 called "bit_stride".
9478 (create_array_type): Re-implement using
9479 create_array_type_with_stride.
9480 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
9481 and DW_AT_bit_stride attributes.
9482
12ab52e9
PA
94832014-02-26 Pedro Alves <palves@redhat.com>
9484
9485 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
9486 task-specific breakpoints.
9487
d16461ae
PA
94882014-02-25 Pedro Alves <palves@redhat.com>
9489
9490 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
9491 handling of object == TARGET_OBJECT_UNWIND_TABLE.
9492
a8b16220
SS
94932014-02-25 Stan Shebs <stan@codesourcery.com>
9494
9495 * defs.h: Annotate comments for Doxygen.
9496
b9e795ee
TT
94972014-02-25 Tom Tromey <tromey@redhat.com>
9498
9499 * target.h (target_ignore): Don't declare.
9500 * target.c (target_ignore): Remove.
9501
849c862e
JK
95022014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
9503
9504 PR gdb/16626
9505 * auto-load.c (auto_load_objfile_script_1): Change filename to
9506 debugfile.
9507
475109d8
JB
95082014-02-25 Joel Brobecker <brobecker@adacore.com>
9509
9510 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
9511 documentation. Adjust prototype to match the target_ops
9512 to_xfer_partial method. Adjust implementation accordingly.
9513
e186c3bd
HZ
95142014-02-25 Hui Zhu <hui@codesourcery.com>
9515
9516 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
9517 to_traceframe_info.
9518
6d451942
KB
95192014-02-25 Kevin Buettner <kevinb@redhat.com>
9520
041ab8b4 9521 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
6d451942
KB
9522 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
9523 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
9524 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
9525 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
9526 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
9527 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
9528 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
9529 New constants.
9530 (rl78_register_type): Use a data pointer type for SP and
9531 new pseudo registers mentioned above. Use a 16 bit integer
9532 type for all other register pairs.
9533 (rl78_register_name, rl78_g10_register_name): Update for
9534 new pseudo registers.
9535 (rl78_pseudo_register_read): Likewise.
9536 (rl78_pseudo_register_write): Likewise.
9537 (rl78_dwarf_reg_to_regnum): Return register numbers representing
9538 to the newly added pseudo registers.
9539
eddf0bae
DE
95402014-02-24 Doug Evans <dje@google.com>
9541
9542 * value.c (record_latest_value): Fix comment.
9543 * printcmd.c (print_command_1): Remove code to handle -1 return from
9544 record_latest_value.
9545
e96027e0
PA
95462014-02-24 Pedro Alves <palves@redhat.com>
9547
9548 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
9549 deprecated_xfer_memory hook.
9550 (procfs_xfer_partial): Call procfs_xfer_memory instead
9551 of the deprecated_xfer_memory target hook.
9552 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
9553 helper.
9554
0837c976
YZ
95552014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
9556
9557 * windows-nat.c (windows_xfer_shared_libraries): Return
9558 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
9559 requested object is TARGET_OBJECT_LIBRARIES.
9560
bc113b4e
YQ
95612014-02-24 Yao Qi <yao@codesourcery.com>
9562
9563 * target.h (enum target_xfer_status)
9564 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
9565 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
9566 explicitly. New.
9567 * corefile.c (memory_error_message): User updated.
9568 * exec.c (section_table_read_available_memory): Likewise.
9569 * record-btrace.c (record_btrace_xfer_partial): Likewise.
9570 * target.c (target_xfer_status_to_string): Likewise.
9571 (raw_memory_xfer_partial): Likewise.
9572 (memory_xfer_partial_1, target_xfer_partial): Likewise.
9573 * valops.c (read_value_memory): Likewise.
9574 * exec.h: Update comments.
9575
01cb8804
YQ
95762014-02-24 Yao Qi <yao@codesourcery.com>
9577
9578 * target.c (target_xfer_status_to_string): Rename argument err
9579 to status.
9580 * target.h (target_xfer_status_to_string): Update declaration.
9581 Replace target_xfer_error_to_string with
9582 target_xfer_status_to_string in comment.
9583
93063aa6
YQ
95842014-02-24 Yao Qi <yao@codesourcery.com>
9585
9586 * mips-linux-nat.c (super_close): Update its type.
9587 (mips_linux_close): Pass 'self' to super_close.
9588
5c328c05
YQ
95892014-02-24 Yao Qi <yao@codesourcery.com>
9590
9591 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
9592 * corefile.c (read_memory): Adjusted.
9593 * target.c (target_write_with_progress): Adjusted.
9594
f73023dd
YQ
95952014-02-23 Yao Qi <yao@codesourcery.com>
9596
9597 Revert two patches:
9598
9599 2013-10-25 Yao Qi <yao@codesourcery.com>
9600
9601 * remote.c (remote_traceframe_info): Return early if
9602 traceframe is not selected.
9603
9604 2013-07-19 Yao Qi <yao@codesourcery.com>
9605
9606 * target.c (update_current_target): Change the default action
9607 of 'to_traceframe_info' from tcomplain to return_zero.
9608 * target.h (struct target_ops) <to_traceframe_info>: Add more
9609 comments.
9610
5a2eb0ef
YQ
96112014-02-23 Yao Qi <yao@codesourcery.com>
9612
9613 * valops.c (read_value_memory): Rewrite it. Call
9614 target_xfer_partial in a loop.
9615 * exec.h (section_table_available_memory): Remove declaration.
9616 Move comments to ...
9617 * exec.c (section_table_available_memory): ... here. Make it
9618 static.
9619
1ee79381
YQ
96202014-02-23 Yao Qi <yao@codesourcery.com>
9621
9622 * exec.c (section_table_read_available_memory): New function.
9623 * exec.h (section_table_read_available_memory): Declare.
9624 * ctf.c (ctf_xfer_partial): Call
9625 section_table_read_available_memory.
9626 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9627
1ca49d37
YQ
96282014-02-23 Yao Qi <yao@codesourcery.com>
9629
9630 * ctf.c (ctf_xfer_partial): Move code to ...
9631 * exec.c (exec_read_partial_read_only): ... it. New function.
9632 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9633 * tracefile.c: Include "exec.h".
9634 * exec.h (exec_read_partial_read_only): Declare.
9635
a283690e
YQ
96362014-02-23 Yao Qi <yao@codesourcery.com>
9637
9638 * tracefile-tfile.c (tfile_has_all_memory): Remove.
9639 (tfile_has_memory): Remove.
9640 (init_tfile_ops): Don't set fields to_has_all_memory and
9641 to_has_memory of tfile_ops.
9642 * tracefile.c (tracefile_has_all_memory): New function.
9643 (tracefile_has_memory): New function.
9644 (init_tracefile_ops): Initialize fields to_has_all_memory and
9645 to_has_memory of 'ops'.
9646
12e03cd0
YQ
96472014-02-23 Yao Qi <yao@codesourcery.com>
9648
9649 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
9650 (ctf_thread_alive, ctf_get_trace_status): Remove.
9651 (init_ctf_ops): Don't set some fields of ctf_ops. Call
9652 init_tracefile_ops.
9653 * tracefile-tfile.c (tfile_get_trace_status): Remove.
9654 (tfile_has_stack, tfile_has_registers): Remove.
9655 (tfile_thread_alive): Remove.
9656 (init_tfile_ops): Don't set some fields of tfile_ops. Call
9657 init_tracefile_ops.
9658 * tracefile.c (tracefile_has_stack): New function.
9659 (tracefile_has_registers): New function.
9660 (tracefile_thread_alive): New function.
9661 (tracefile_get_trace_status): New function.
9662 (init_tracefile_ops): New function.
9663 * tracefile.h (init_tracefile_ops): Declare.
9664
11395323
YQ
96652014-02-23 Yao Qi <yao@codesourcery.com>
9666
9667 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
9668 (O_LARGEFILE): Likewise.
9669 (tfile_ops): Likewise.
9670 (TRACE_HEADER_SIZE): Likewise.
9671 (trace_fd, trace_frames_offset, cur_offset): Likewise.
9672 (cur_data_size): Likewise.
9673 (tfile_read, tfile_open, tfile_interp_line): Likewise.
9674 (tfile_close, tfile_files_info): Likewise.
9675 (tfile_get_trace_status): Likewise.
9676 (tfile_get_tracepoint_status): Likewise.
9677 (tfile_get_traceframe_address): Likewise.
9678 (tfile_trace_find, match_blocktype): Likewise.
9679 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
9680 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
9681 (tfile_get_trace_state_variable_value): Likewise.
9682 (tfile_has_all_memory, tfile_has_memory): Likewise.
9683 (tfile_has_stack, tfile_has_registers): Likewise.
9684 (tfile_thread_alive, build_traceframe_info): Likewise.
9685 (tfile_traceframe_info, init_tfile_ops): Likewise.
9686 (_initialize_tracepoint): Don't call init_tfile_ops
9687 and add_target_with_completer.
9688 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
9689 exec.h, completer.h and filenames.h.
9690 (_initialize_tracefile_tfile): New function.
9691
7951c4eb
YQ
96922014-02-23 Yao Qi <yao@codesourcery.com>
9693
9694 * Makefile.in (REMOTE_OBS): Append tracefile.o and
9695 tracefile-tfile.o.
9696 (HFILES_NO_SRCDIR): Add tracefile.h.
9697 * ctf.c: Include "tracefile.h".
9698 * tracefile.h: New file.
9699 * tracefile.c: New file
9700 * tracefile-tfile.c: New file.
9701 * tracepoint.c: Include "tracefile.h".
9702 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
9703 (stop_reason_names): Add const.
9704 (trace_file_writer_xfree): Move it to tracefile.c.
9705 (trace_save, trace_save_command, trace_save_tfile): Likewise.
9706 (trace_save_ctf): Likewise.
9707 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
9708 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
9709 (tfile_write_header, tfile_write_regblock_type): Likewise.
9710 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
9711 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
9712 (tfile_write_raw_data, tfile_end): Likewise.
9713 (tfile_trace_file_writer_new): Likewise.
9714 (free_uploaded_tp): Make it extern.
9715 (free_uploaded_tsv): Make it extern.
9716 (_initialize_tracepoint): Move code to register command 'tsave'
9717 to tracefile.c.
9718 * tracepoint.h (stop_reason_names): Declare.
9719 (struct trace_frame_write_ops): Move it to tracefile.h.
9720 (struct trace_file_write_ops): Likewise.
9721 (struct trace_file_writer): Likewise.
9722 (free_uploaded_tsvs, free_uploaded_tps): Declare.
9723
184cd072
JK
97242014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9725
9726 PR gdb/16594
9727 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
9728 process name.
9729 (get_cores_used_by_process): New parameter num_cores, use it.
9730 (linux_xfer_osdata_processes): Pass num_cores to it.
9731 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
9732 process name.
9733
c63528fc
AK
97342014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
9735
9736 * target.c (memory_xfer_partial): Fix length arg in call to
9737 breakpoint_xfer_memory.
9738
d7b30f67
SDJ
97392014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9740
9741 PR tdep/16397
9742 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
9743 number comes after the + or - signs. Adjust length of register
9744 name to be extracted.
9745
8838afaf
TT
97462014-02-20 Tom Tromey <tromey@redhat.com>
9747
9748 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
9749 (ada_varobj_ops): Mark "extern".
9750
05227d14
TT
97512014-02-20 Tom Tromey <tromey@redhat.com>
9752
9753 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
9754
1254eefc
DE
97552014-02-20 Doug Evans <xdje42@gmail.com>
9756
9757 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
9758 All callers updated.
9759 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
9760 All callers updated.
9761 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
9762 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
9763
adde2bff
DE
97642014-02-20 lin zuojian <manjian2006@gmail.com>
9765 Joel Brobecker <brobecker@adacore.com>
9766 Doug Evans <xdje42@gmail.com>
9767
9768 PR symtab/16581
9769 * dwarf2read.c (struct die_info): New member in_process.
9770 (reset_die_in_process): New function.
9771 (process_die): Set it at the start, reset when returning.
9772 (inherit_abstract_dies): Only call process_die if origin_child_die
9773 not already being processed.
9774
3be75f87
JB
97752014-02-20 Joel Brobecker <brobecker@adacore.com>
9776
9777 * windows-nat.c (handle_unload_dll): Add function documentation.
9778 (do_initial_windows_stuff): Add comment explaining why we wait
9779 until after inferior initialization has finished before
9780 processing all DLLs.
9781
47f7ffdb
JB
97822014-02-20 Joel Brobecker <brobecker@adacore.com>
9783
9784 * windows-nat.c (get_module_name): Delete.
9785 (windows_get_exec_module_filename): New function, mostly
9786 inspired from get_module_name.
9787 (windows_pid_to_exec_file): Replace call to get_module_name
9788 by call to windows_get_exec_module_filename.
9789
1cd9feab
JB
97902014-02-20 Joel Brobecker <brobecker@adacore.com>
9791
9792 * windows-nat.c (handle_load_dll): Rewrite this function's
9793 introductory comment. Remove code using get_module_name
9794 to get the DLL's name.
9795
ea39ad35
JB
97962014-02-20 Joel Brobecker <brobecker@adacore.com>
9797
9798 * windows-nat.c (get_windows_debug_event): Ignore
9799 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
9800 if windows_initialization_done == 0.
9801 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
9802 Adjust implementation to always load all DLLs.
9803 (do_initial_windows_stuff): Replace call to
9804 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
9805
95060284
JB
98062014-02-20 Joel Brobecker <brobecker@adacore.com>
9807
9808 * windows-nat.c (_initialize_windows_nat): Deprecate the
9809 "dll-symbols" command. Turn the "add-shared-symbol-files"
9810 and "assf" aliases into commands, and deprecate them as well.
9811 * NEWS: Add entry explaining that "dll-symbols" and its two
9812 aliases are now deprecated.
9813
8d4fdb12
JB
98142014-02-20 Joel Brobecker <brobecker@adacore.com>
9815
9816 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
9817 new-line in debug string. Remove trailing spaces.
9818
1b281443
SS
98192014-02-19 Stan Shebs <stan@codesourcery.com>
9820
9821 * darwin-nat.c (darwin_xfer_partial): Fix return type.
9822
f7bd0f78
SC
98232014-02-19 Siva Chandra Reddy <sivachandra@google.com>
9824
9825 * NEWS: Add entry for the new feature
9826 * python/py-value.c (valpy_binop): Call value_x_binop for struct
9827 and class values.
9828
399ebc3d
SS
98292014-02-19 Stan Shebs <stan@codesourcery.com>
9830
9831 * MAINTAINERS: List Yao Qi as nios2 maintainer.
9832
c658158d
PA
98332014-02-19 Pedro Alves <palves@redhat.com>
9834
9835 * common/ptid.h (struct ptid): Mention that process_stratum
9836 targets should prefer ptid.lwp.
9837
ba348170
PA
98382014-02-19 Pedro Alves <palves@redhat.com>
9839
9840 * remote.c (remote_thread_alive, write_ptid, read_ptid)
9841 (read_ptid, remote_newthread_step, remote_threads_extra_info)
9842 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
9843 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
9844 store remote thread ids rather than ptid.tid.
9845 (_initialize_remote): Adjust.
9846
ac01945b
TT
98472014-02-19 Tom Tromey <tromey@redhat.com>
9848
9849 * target.c (target_get_unwinder): Rewrite.
9850 (target_get_tailcall_unwinder): Rewrite.
9851 * record-btrace.c (record_btrace_to_get_unwinder): New function.
9852 (record_btrace_to_get_tailcall_unwinder): New function.
9853 (init_record_btrace_ops): Update.
9854 * target.h (struct target_ops) <to_get_unwinder,
9855 to_get_tailcall_unwinder>: Now function pointers. Use
9856 TARGET_DEFAULT_RETURN.
9857
8476dc92
TT
98582014-02-19 Tom Tromey <tromey@redhat.com>
9859
9860 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
9861 argument.
9862 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
9863
c0eca49f
TT
98642014-02-19 Tom Tromey <tromey@redhat.com>
9865
9866 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
9867 directly.
9868 * target-delegates.c: Rebuild.
9869 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
9870 TARGET_DEFAULT_FUNC.
9871 * target.c (default_target_decr_pc_after_break): Rename from
9872 forward_target_decr_pc_after_break. Simplify.
9873 (target_decr_pc_after_break): Rely on delegation.
9874
596b6b39
TT
98752014-02-19 Tom Tromey <tromey@redhat.com>
9876
9877 * target.c (update_current_target): Do not INHERIT to_doc or
9878 to_magic. Do not de_fault to_open or to_close.
9879
b427c1bc
TT
98802014-02-19 Tom Tromey <tromey@redhat.com>
9881
9882 * gcore.h (objfile_find_memory_regions): Declare.
9883 * gcore.c (objfile_find_memory_regions): No longer static. Add
9884 "self" argument.
9885 (_initialize_gcore): Don't call exec_set_find_memory_regions.
9886 * exec.c: Include gcore.h.
9887 (exec_set_find_memory_regions): Remove.
9888 (exec_find_memory_regions): Remove.
9889 (exec_do_find_memory_regions): Remove.
9890 (init_exec_ops): Update.
9891 * defs.h (exec_set_find_memory_regions): Remove.
9892
9b144037
TT
98932014-02-19 Tom Tromey <tromey@redhat.com>
9894
9895 * target-delegates.c: Rebuild.
9896 * target.h (struct target_ops) <to_extra_thread_info,
9897 to_thread_name, to_pid_to_exec_file, to_get_section_table,
9898 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
9899 not 0, in TARGET_DEFAULT_RETURN.
9900
555bbdeb
TT
99012014-02-19 Tom Tromey <tromey@redhat.com>
9902
9903 * target.c (complete_target_initialization): Remove casts. Use
9904 return_zero_has_execution.
9905 (return_zero): Add "ignore" argument.
9906 (return_zero_has_execution): New function.
9907 (init_dummy_target): Remove casts. Use
9908 return_zero_has_execution.
9909
be4ddd36
TT
99102014-02-19 Tom Tromey <tromey@redhat.com>
9911
9912 * target.c (update_current_target): Update comments. Do not
9913 INHERIT to_stratum.
9914
2117c711
TT
99152014-02-19 Tom Tromey <tromey@redhat.com>
9916
9917 * arm-linux-nat.c (arm_linux_read_description): Delegate when
9918 needed.
9919 * corelow.c (core_read_description): Delegate when needed.
9920 * remote.c (remote_read_description): Delegate when needed.
9921 * target-delegates.c: Rebuild.
9922 * target.c (target_read_description): Rewrite.
9923 * target.h (struct target_ops) <to_read_description>: Update
9924 comment. Use TARGET_DEFAULT_RETURN.
9925
e88ef65c
TT
99262014-02-19 Tom Tromey <tromey@redhat.com>
9927
9928 * target-delegates.c: Rebuild.
9929 * target.c (update_current_target): Don't inherit or default
9930 to_can_run.
9931 (find_default_run_target): Check against delegate_can_run.
9932 * target.h (struct target_ops) <to_can_run>: Use
9933 TARGET_DEFAULT_RETURN.
9934
86a0854a
TT
99352014-02-19 Tom Tromey <tromey@redhat.com>
9936
9937 * target-delegates.c: Rebuild.
9938 * target.c (target_disconnect): Unconditionally delegate.
9939 * target.h (struct target_ops) <to_disconnect>: Use
9940 TARGET_DEFAULT_NORETURN.
9941
ee97f592
TT
99422014-02-19 Tom Tromey <tromey@redhat.com>
9943
9944 * record.c (record_stop): Unconditionally delegate.
9945 * target-delegates.c: Rebuild.
9946 * target.c (target_stop_recording): Unconditionally delegate.
9947 * target.h (struct target_ops) <to_stop_recording>: Use
9948 TARGET_DEFAULT_IGNORE.
9949
6dc7fcf4
TT
99502014-02-19 Tom Tromey <tromey@redhat.com>
9951
9952 * target-delegates.c: Rebuild.
9953 * target.c (target_enable_btrace): Unconditionally delegate.
9954 * target.h (struct target_ops) <to_enable_btrace>: Use
9955 TARGET_DEFAULT_NORETURN.
9956
eb5b20d4
TT
99572014-02-19 Tom Tromey <tromey@redhat.com>
9958
9959 * target-delegates.c: Rebuild.
9960 * target.c (target_read_btrace): Unconditionally delegate.
9961 * target.h (struct target_ops) <to_read_btrace>: Use
9962 TARGET_DEFAULT_NORETURN.
9963
9ace480d
TT
99642014-02-19 Tom Tromey <tromey@redhat.com>
9965
9966 * target-delegates.c: Rebuild.
9967 * target.c (target_teardown_btrace): Unconditionally delegate.
9968 * target.h (struct target_ops) <to_teardown_btrace>: Use
9969 TARGET_DEFAULT_NORETURN.
9970
8dc292d3
TT
99712014-02-19 Tom Tromey <tromey@redhat.com>
9972
9973 * target-delegates.c: Rebuild.
9974 * target.c (target_disable_btrace): Unconditionally delegate.
9975 * target.h (struct target_ops) <to_disable_btrace>: Use
9976 TARGET_DEFAULT_NORETURN.
9977
58a5184e
TT
99782014-02-19 Tom Tromey <tromey@redhat.com>
9979
9980 * target-delegates.c: Rebuild.
9981 * target.c (default_search_memory): New function.
9982 (simple_search_memory): Update comment.
9983 (target_search_memory): Unconditionally delegate.
9984 * target.h (struct target_ops) <to_search_memory>: Use
9985 TARGET_DEFAULT_FUNC.
9986
8de71aab
TT
99872014-02-19 Tom Tromey <tromey@redhat.com>
9988
9989 * auxv.c (default_auxv_parse): No longer static.
9990 (target_auxv_parse): Unconditionally delegate.
9991 * auxv.h (default_auxv_parse): Declare.
9992 * target-delegates.c: Rebuild.
9993 * target.c: Include auxv.h.
9994 * target.h (struct target_ops) <to_auxv_parse>: Use
9995 TARGET_DEFAULT_FUNC.
9996
6b2c5a57
TT
99972014-02-19 Tom Tromey <tromey@redhat.com>
9998
9999 * target-delegates.c: Rebuild.
10000 * target.c (target_memory_map): Unconditionally delegate.
10001 * target.h (struct target_ops) <to_memory_map>: Use
10002 TARGET_DEFAULT_RETURN.
10003
cbffc065
TT
100042014-02-19 Tom Tromey <tromey@redhat.com>
10005
10006 * target-delegates.c: Rebuild.
10007 * target.c (target_thread_alive): Unconditionally delegate.
10008 * target.h (struct target_ops) <to_thread_alive>: Use
10009 TARGET_DEFAULT_RETURN.
10010
f09e2107
TT
100112014-02-19 Tom Tromey <tromey@redhat.com>
10012
10013 * target-delegates.c: Rebuild.
10014 * target.c (target_save_record): Unconditionally delegate.
10015 * target.h (struct target_ops) <to_save_record>: Use
10016 TARGET_DEFAULT_NORETURN.
10017
07366925
TT
100182014-02-19 Tom Tromey <tromey@redhat.com>
10019
10020 * target-delegates.c: Rebuild.
10021 * target.c (target_delete_record): Unconditionally delegate.
10022 * target.h (struct target_ops) <to_delete_record>: Use
10023 TARGET_DEFAULT_NORETURN.
10024
dd2e9d25
TT
100252014-02-19 Tom Tromey <tromey@redhat.com>
10026
10027 * target-delegates.c: Rebuild.
10028 * target.c (target_record_is_replaying): Unconditionally
10029 delegate.
10030 * target.h (struct target_ops) <to_record_is_replaying>: Use
10031 TARGET_DEFAULT_RETURN.
10032
671e76cc
TT
100332014-02-19 Tom Tromey <tromey@redhat.com>
10034
10035 * target-delegates.c: Rebuild.
10036 * target.c (target_goto_record_begin): Unconditionally delegate.
10037 * target.h (struct target_ops) <to_goto_record_begin>: Use
10038 TARGET_DEFAULT_NORETURN.
10039
e9179bb3
TT
100402014-02-19 Tom Tromey <tromey@redhat.com>
10041
10042 * target-delegates.c: Rebuild.
10043 * target.c (target_goto_record_end): Unconditionally delegate.
10044 * target.h (struct target_ops) <to_goto_record_end>: Use
10045 TARGET_DEFAULT_NORETURN.
10046
05969c84
TT
100472014-02-19 Tom Tromey <tromey@redhat.com>
10048
10049 * target-delegates.c: Rebuild.
10050 * target.c (target_goto_record): Unconditionally delegate.
10051 * target.h (struct target_ops) <to_goto_record>: Use
10052 TARGET_DEFAULT_NORETURN.
10053
3679abfa
TT
100542014-02-19 Tom Tromey <tromey@redhat.com>
10055
10056 * target-delegates.c: Rebuild.
10057 * target.c (target_insn_history): Unconditionally delegate.
10058 * target.h (struct target_ops) <to_insn_history>: Use
10059 TARGET_DEFAULT_NORETURN.
10060
8444ab58
TT
100612014-02-19 Tom Tromey <tromey@redhat.com>
10062
10063 * target-delegates.c: Rebuild.
10064 * target.c (target_insn_history_from): Unconditionally delegate.
10065 * target.h (struct target_ops) <to_insn_history_from>: Use
10066 TARGET_DEFAULT_NORETURN.
10067
c29302cc
TT
100682014-02-19 Tom Tromey <tromey@redhat.com>
10069
10070 * target-delegates.c: Rebuild.
10071 * target.c (target_insn_history_range): Unconditionally delegate.
10072 * target.h (struct target_ops) <to_insn_history_range>: Use
10073 TARGET_DEFAULT_NORETURN.
10074
170049d4
TT
100752014-02-19 Tom Tromey <tromey@redhat.com>
10076
10077 * target-delegates.c: Rebuild.
10078 * target.c (target_call_history): Unconditionally delegate.
10079 * target.h (struct target_ops) <to_call_history>: Use
10080 TARGET_DEFAULT_NORETURN.
10081
16fc27d6
TT
100822014-02-19 Tom Tromey <tromey@redhat.com>
10083
10084 * target-delegates.c: Rebuild.
10085 * target.c (target_call_history_from): Unconditionally delegate.
10086 * target.h (struct target_ops) <to_call_history_from>: Use
10087 TARGET_DEFAULT_NORETURN.
10088
115d9817
TT
100892014-02-19 Tom Tromey <tromey@redhat.com>
10090
10091 * target-delegates.c: Rebuild.
10092 * target.c (target_call_history_range): Unconditionally delegate.
10093 * target.h (struct target_ops) <to_call_history_range>: Use
10094 TARGET_DEFAULT_NORETURN.
10095
eb276a6b
TT
100962014-02-19 Tom Tromey <tromey@redhat.com>
10097
10098 * target-delegates.c: Rebuild.
10099 * target.c (target_verify_memory): Unconditionally delegate.
10100 * target.h (struct target_ops) <to_verify_memory>: Use
10101 TARGET_DEFAULT_NORETURN.
10102
9e538d0d
TT
101032014-02-19 Tom Tromey <tromey@redhat.com>
10104
10105 * target-delegates.c: Rebuild.
10106 * target.c (target_core_of_thread): Unconditionally delegate.
10107 * target.h (struct target_ops) <to_core_of_thread>: Use
10108 TARGET_DEFAULT_RETURN.
10109
f6fb2925
TT
101102014-02-19 Tom Tromey <tromey@redhat.com>
10111
10112 * target-delegates.c: Rebuild.
10113 * target.c (target_flash_done): Unconditionally delegate.
10114 * target.h (struct target_ops) <to_flash_done>: Use
10115 TARGET_DEFAULT_NORETURN.
10116
e8a6c6ac
TT
101172014-02-19 Tom Tromey <tromey@redhat.com>
10118
10119 * target-delegates.c: Rebuild.
10120 * target.c (target_flash_erase): Unconditionally delegate.
10121 * target.h (struct target_ops) <to_flash_erase>: Use
10122 TARGET_DEFAULT_NORETURN.
10123
7e35c012
TT
101242014-02-19 Tom Tromey <tromey@redhat.com>
10125
10126 * target-delegates.c: Rebuild.
10127 * target.c (target_get_section_table): Unconditionally delegate.
10128 * target.h (struct target_ops) <to_get_section_table>: Use
10129 TARGET_DEFAULT_RETURN.
10130
770234d3
TT
101312014-02-19 Tom Tromey <tromey@redhat.com>
10132
10133 * target-delegates.c: Rebuild.
10134 * target.c (target_pid_to_str): Unconditionally delegate.
10135 (init_dummy_target): Don't initialize to_pid_to_str.
10136 (default_pid_to_str): Rename from dummy_pid_to_str.
10137 * target.h (struct target_ops) <to_pid_to_str>: Use
10138 TARGET_DEFAULT_FUNC.
10139
09b0dc2b
TT
101402014-02-19 Tom Tromey <tromey@redhat.com>
10141
10142 * target-delegates.c: Rebuild.
10143 * target.c (target_find_new_threads): Unconditionally delegate.
10144 * target.h (struct target_ops) <to_find_new_threads>: Use
10145 TARGET_DEFAULT_RETURN.
10146
7d4f8efa
TT
101472014-02-19 Tom Tromey <tromey@redhat.com>
10148
10149 * target-delegates.c: Rebuild.
10150 * target.c (target_program_signals): Unconditionally delegate.
10151 * target.h (struct target_ops) <to_program_signals>: Use
10152 TARGET_DEFAULT_IGNORE.
10153
035cad7f
TT
101542014-02-19 Tom Tromey <tromey@redhat.com>
10155
10156 * target-delegates.c: Rebuild.
10157 * target.c (target_pass_signals): Unconditionally delegate.
10158 * target.h (struct target_ops) <to_pass_signals>: Use
10159 TARGET_DEFAULT_IGNORE.
10160
8d657035
TT
101612014-02-19 Tom Tromey <tromey@redhat.com>
10162
10163 * target-delegates.c: Rebuild.
10164 * target.c (default_mourn_inferior): New function.
10165 (target_mourn_inferior): Unconditionally delegate.
10166 * target.h (struct target_ops) <to_mourn_inferior>: Use
10167 TARGET_DEFAULT_FUNC.
10168
098dba18
TT
101692014-02-19 Tom Tromey <tromey@redhat.com>
10170
10171 * target-delegates.c: Rebuild.
10172 * target.c (default_follow_fork): New function.
10173 (target_follow_fork): Unconditionally delegate.
10174 * target.h (struct target_ops) <to_follow_fork>: Use
10175 TARGET_DEFAULT_FUNC.
10176
423a4807
TT
101772014-02-19 Tom Tromey <tromey@redhat.com>
10178
10179 * target-delegates.c: Rebuild.
10180 * target.c (target_kill): Unconditionally delegate.
10181 * target.h (struct target_ops) <to_kill>: Use
10182 TARGET_DEFAULT_NORETURN.
10183
6c7e5e5c
TT
101842014-02-19 Tom Tromey <tromey@redhat.com>
10185
10186 * target-delegates.c: Rebuild.
10187 * target.c (target_masked_watch_num_registers): Unconditionally
10188 delegate.
10189 * target.h (struct target_ops) <to_masked_watch_num_registers>:
10190 Use TARGET_DEFAULT_RETURN.
10191
8b1c364c
TT
101922014-02-19 Tom Tromey <tromey@redhat.com>
10193
10194 * target-delegates.c: Rebuild.
10195 * target.c (target_remove_mask_watchpoint): Unconditionally
10196 delegate.
10197 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
10198 TARGET_DEFAULT_RETURN.
10199
cd4ae029
TT
102002014-02-19 Tom Tromey <tromey@redhat.com>
10201
10202 * target-delegates.c: Rebuild.
10203 * target.c (target_insert_mask_watchpoint): Unconditionally
10204 delegate.
10205 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
10206 TARGET_DEFAULT_RETURN.
10207
a134316b
TT
102082014-02-19 Tom Tromey <tromey@redhat.com>
10209
10210 * target-delegates.c: Rebuild.
10211 * target.c (target_ranged_break_num_registers): Unconditionally
10212 delegate.
10213 * target.h (struct target_ops) <to_ranged_break_num_registers>:
10214 Use TARGET_DEFAULT_RETURN.
10215
ad5989bd
TT
102162014-02-19 Tom Tromey <tromey@redhat.com>
10217
10218 * target-delegates.c: Rebuild.
10219 * target.c (target_fetch_registers): Unconditionally delegate.
10220 * target.h (struct target_ops) <to_fetch_registers>: Use
10221 TARGET_DEFAULT_NORETURN.
10222
46ee7e8d
TT
102232014-02-19 Tom Tromey <tromey@redhat.com>
10224
10225 * target-delegates.c: Rebuild.
10226 * target.c (update_current_target): Don't inherit or default
10227 to_stop.
10228 * target.h (struct target_ops) <to_stop>: Use
10229 TARGET_DEFAULT_IGNORE.
10230
843f59ed
TT
102312014-02-19 Tom Tromey <tromey@redhat.com>
10232
10233 * target-delegates.c: Rebuild.
10234 * target.c (update_current_target): Don't inherit or default
10235 to_can_run_breakpoint_commands.
10236 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
10237 Use TARGET_DEFAULT_RETURN.
10238
ccfde2a0
TT
102392014-02-19 Tom Tromey <tromey@redhat.com>
10240
10241 * target-delegates.c: Rebuild.
10242 * target.c (update_current_target): Don't inherit or default
10243 to_supports_evaluation_of_breakpoint_conditions.
10244 * target.h (struct target_ops)
10245 <to_supports_evaluation_of_breakpoint_conditions>: Use
10246 TARGET_DEFAULT_RETURN.
10247
0de91722
TT
102482014-02-19 Tom Tromey <tromey@redhat.com>
10249
10250 * target-delegates.c: Rebuild.
10251 * target.c (update_current_target): Don't inherit or default
10252 to_augmented_libraries_svr4_read.
10253 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
10254 Use TARGET_DEFAULT_RETURN.
10255
9a7d8b48
TT
102562014-02-19 Tom Tromey <tromey@redhat.com>
10257
10258 * target-delegates.c: Rebuild.
10259 * target.c (update_current_target): Don't inherit or default
10260 to_can_use_agent.
10261 * target.h (struct target_ops) <to_can_use_agent>: Use
10262 TARGET_DEFAULT_RETURN.
10263
d9db5b21
TT
102642014-02-19 Tom Tromey <tromey@redhat.com>
10265
10266 * target-delegates.c: Rebuild.
10267 * target.c (update_current_target): Don't inherit or default
10268 to_use_agent.
10269 * target.h (struct target_ops) <to_use_agent>: Use
10270 TARGET_DEFAULT_NORETURN.
10271
92155eeb
TT
102722014-02-19 Tom Tromey <tromey@redhat.com>
10273
10274 * target-delegates.c: Rebuild.
10275 * target.c (update_current_target): Don't inherit or default
10276 to_traceframe_info.
10277 (return_null): Remove.
10278 * target.h (struct target_ops) <to_traceframe_info>: Use
10279 TARGET_DEFAULT_RETURN.
10280
d6522a22
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_static_tracepoint_markers_by_strid.
10286 * target.h (struct target_ops)
10287 <to_static_tracepoint_markers_by_strid>: Use
10288 TARGET_DEFAULT_NORETURN.
10289
4c3e4425
TT
102902014-02-19 Tom Tromey <tromey@redhat.com>
10291
10292 * target-delegates.c: Rebuild.
10293 * target.c (update_current_target): Don't inherit or default
10294 to_static_tracepoint_marker_at.
10295 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
10296 Use TARGET_DEFAULT_RETURN.
10297
dcd6917f
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_set_permissions.
10303 * target.h (struct target_ops) <to_set_permissions>: Use
10304 TARGET_DEFAULT_IGNORE.
10305
22bcceee
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_get_tib_address.
10311 * target.h (struct target_ops) <to_get_tib_address>: Use
10312 TARGET_DEFAULT_NORETURN.
10313
8586ccaa
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_set_trace_notes.
10319 * target.h (struct target_ops) <to_set_trace_notes>: Use
10320 TARGET_DEFAULT_RETURN.
10321
91df8d1d
TT
103222014-02-19 Tom Tromey <tromey@redhat.com>
10323
10324 * target-delegates.c: Rebuild.
10325 * target.c (update_current_target): Don't initialize
10326 to_set_trace_buffer_size.
10327 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
10328 TARGET_DEFAULT_IGNORE.
10329
8d526939
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_set_circular_trace_buffer.
10335 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
10336 TARGET_DEFAULT_IGNORE.
10337
0bcfeddf
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_set_disconnected_tracing.
10343 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
10344 TARGET_DEFAULT_IGNORE.
10345
9249843f
TT
103462014-02-19 Tom Tromey <tromey@redhat.com>
10347
10348 * target-delegates.c: Rebuild.
10349 * target.c (update_current_target): Don't inherit or default
10350 to_get_min_fast_tracepoint_insn_len.
10351 (return_minus_one): Remove.
10352 * target.h (struct target_ops)
10353 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
10354
ace92e7d
TT
103552014-02-19 Tom Tromey <tromey@redhat.com>
10356
10357 * target-delegates.c: Rebuild.
10358 * target.c (update_current_target): Don't inherit or default
10359 to_get_raw_trace_data.
10360 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
10361 TARGET_DEFAULT_NORETURN.
10362
08120467
TT
103632014-02-19 Tom Tromey <tromey@redhat.com>
10364
10365 * target-delegates.c: Rebuild.
10366 * target.c (update_current_target): Don't inherit or default
10367 to_upload_trace_state_variables.
10368 * target.h (struct target_ops) <to_upload_trace_state_variables>:
10369 Use TARGET_DEFAULT_RETURN.
10370
1e949b00
TT
103712014-02-19 Tom Tromey <tromey@redhat.com>
10372
10373 * target-delegates.c: Rebuild.
10374 * target.c (update_current_target): Don't inherit or default
10375 to_upload_tracepoints.
10376 * target.h (struct target_ops) <to_upload_tracepoints>: Use
10377 TARGET_DEFAULT_RETURN.
10378
a2e6c147
TT
103792014-02-19 Tom Tromey <tromey@redhat.com>
10380
10381 * target-delegates.c: Rebuild.
10382 * target.c (update_current_target): Don't inherit or default
10383 to_save_trace_data.
10384 * target.h (struct target_ops) <to_save_trace_data>: Use
10385 TARGET_DEFAULT_NORETURN.
10386
959bcd0b
TT
103872014-02-19 Tom Tromey <tromey@redhat.com>
10388
10389 * target-delegates.c: Rebuild.
10390 * target.c (update_current_target): Don't inherit or default
10391 to_get_trace_state_variable_value.
10392 * target.h (struct target_ops)
10393 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
10394
afc94e66
TT
103952014-02-19 Tom Tromey <tromey@redhat.com>
10396
10397 * target-delegates.c: Rebuild.
10398 * target.c (update_current_target): Don't inherit or default
10399 to_trace_find.
10400 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
10401
e51c07ea
TT
104022014-02-19 Tom Tromey <tromey@redhat.com>
10403
10404 * target-delegates.c: Rebuild.
10405 * target.c (update_current_target): Don't inherit or default
10406 to_trace_stop.
10407 * target.h (struct target_ops) <to_trace_stop>: Use
10408 TARGET_DEFAULT_NORETURN.
10409
6fea14cd
TT
104102014-02-19 Tom Tromey <tromey@redhat.com>
10411
10412 * target-delegates.c: Rebuild.
10413 * target.c (update_current_target): Don't inherit or default
10414 to_get_tracepoint_status.
10415 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
10416 TARGET_DEFAULT_NORETURN.
10417
4072d4ff
TT
104182014-02-19 Tom Tromey <tromey@redhat.com>
10419
10420 * target-delegates.c: Rebuild.
10421 * target.c (update_current_target): Don't inherit or default
10422 to_get_trace_status.
10423 * target.h (struct target_ops) <to_get_trace_status>: Use
10424 TARGET_DEFAULT_RETURN.
10425
25da2e80
TT
104262014-02-19 Tom Tromey <tromey@redhat.com>
10427
10428 * target-delegates.c: Rebuild.
10429 * target.c (update_current_target): Don't inherit or default
10430 to_trace_start.
10431 * target.h (struct target_ops) <to_trace_start>: Use
10432 TARGET_DEFAULT_NORETURN.
10433
86dd181d
TT
104342014-02-19 Tom Tromey <tromey@redhat.com>
10435
10436 * target-delegates.c: Rebuild.
10437 * target.c (update_current_target): Don't inherit or default
10438 to_trace_set_readonly_regions.
10439 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
10440 Use TARGET_DEFAULT_NORETURN.
10441
05c41993
TT
104422014-02-19 Tom Tromey <tromey@redhat.com>
10443
10444 * target-delegates.c: Rebuild.
10445 * target.c (update_current_target): Don't inherit or default
10446 to_disable_tracepoint.
10447 * target.h (struct target_ops) <to_disable_tracepoint>: Use
10448 TARGET_DEFAULT_NORETURN.
10449
151f70f1
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_enable_tracepoint.
10455 * target.h (struct target_ops) <to_enable_tracepoint>: Use
10456 TARGET_DEFAULT_NORETURN.
10457
94eb98b9
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_download_trace_state_variable.
10463 * target.h (struct target_ops) <to_download_trace_state_variable>:
10464 Use TARGET_DEFAULT_NORETURN.
10465
719acc4a
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_can_download_tracepoint.
10471 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
10472 TARGET_DEFAULT_RETURN.
10473
9a980a22
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_download_tracepoint.
10479 * target.h (struct target_ops) <to_download_tracepoint>: Use
10480 TARGET_DEFAULT_NORETURN.
10481
5536135b
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_trace_init.
10487 * target.h (struct target_ops) <to_trace_init>: Use
10488 TARGET_DEFAULT_RETURN.
10489
9409d39e
TT
104902014-02-19 Tom Tromey <tromey@redhat.com>
10491
10492 * target-delegates.c: Rebuild.
10493 * target.c (update_current_target): Don't inherit or default
10494 to_supports_string_tracing.
10495 * target.h (struct target_ops) <to_supports_string_tracing>: Use
10496 TARGET_DEFAULT_RETURN.
10497
aab1b22d
TT
104982014-02-19 Tom Tromey <tromey@redhat.com>
10499
10500 * target-delegates.c: Rebuild.
10501 * target.c (update_current_target): Don't inherit or default
10502 to_supports_enable_disable_tracepoint.
10503 * target.h (struct target_ops)
10504 <to_supports_enable_disable_tracepoint>: Use
10505 TARGET_DEFAULT_RETURN.
10506
a7304748
TT
105072014-02-19 Tom Tromey <tromey@redhat.com>
10508
10509 * target-delegates.c: Rebuild.
10510 * target.c (update_current_target): Don't inherit or default
10511 to_supports_multi_process.
10512 * target.h (struct target_ops) <to_supports_multi_process>: Use
10513 TARGET_DEFAULT_RETURN.
10514
4229b31d
TT
105152014-02-19 Tom Tromey <tromey@redhat.com>
10516
10517 * target-delegates.c: Rebuild.
10518 * target.c (update_current_target): Don't inherit or default
10519 to_get_ada_task_ptid.
10520 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
10521 TARGET_DEFAULT_FUNC.
10522
43eba180
TT
105232014-02-19 Tom Tromey <tromey@redhat.com>
10524
10525 * target-delegates.c: Rebuild.
10526 * target.c (update_current_target): Don't inherit or default
10527 to_thread_architecture.
10528 * target.h (struct target_ops) <to_thread_architecture>: Use
10529 TARGET_DEFAULT_FUNC.
10530
fe31bf5b
TT
105312014-02-19 Tom Tromey <tromey@redhat.com>
10532
10533 * target-delegates.c: Rebuild.
10534 * target.c (update_current_target): Don't inherit or default
10535 to_execution_direction.
10536 * target.h (struct target_ops) <to_execution_direction>: Use
10537 TARGET_DEFAULT_FUNC.
10538
53e1cfc7
TT
105392014-02-19 Tom Tromey <tromey@redhat.com>
10540
10541 * target-delegates.c: Rebuild.
10542 * target.c (update_current_target): Don't inherit or default
10543 to_can_execute_reverse.
10544 * target.h (struct target_ops) <to_can_execute_reverse>: Use
10545 TARGET_DEFAULT_RETURN.
10546 (target_can_execute_reverse): Unconditionally delegate.
10547
9bb9d61d
TT
105482014-02-19 Tom Tromey <tromey@redhat.com>
10549
10550 * target-delegates.c: Rebuild.
10551 * target.c (update_current_target): Don't inherit or default
10552 to_goto_bookmark.
10553 (dummy_goto_bookmark): Remove.
10554 (init_dummy_target): Don't inherit or default to_goto_bookmark.
10555 * target.h (struct target_ops) <to_goto_bookmark>: Use
10556 TARGET_DEFAULT_NORETURN.
10557
3dbafbbb
TT
105582014-02-19 Tom Tromey <tromey@redhat.com>
10559
10560 * target-delegates.c: Rebuild.
10561 * target.c (update_current_target): Don't inherit or default
10562 to_get_bookmark.
10563 (dummy_get_bookmark): Remove.
10564 (init_dummy_target): Don't inherit or default to_get_bookmark.
10565 * target.h (struct target_ops) <to_get_bookmark>: Use
10566 TARGET_DEFAULT_NORETURN
10567
16f796b1
TT
105682014-02-19 Tom Tromey <tromey@redhat.com>
10569
10570 * target-delegates.c: Rebuild.
10571 * target.c (update_current_target): Don't inherit or default
10572 to_make_corefile_notes.
10573 (init_dummy_target): Don't initialize to_make_corefile_notes.
10574 * target.h (struct target_ops) <to_make_corefile_notes>: Use
10575 TARGET_DEFAULT_FUNC.
10576
0b5a2719
TT
105772014-02-19 Tom Tromey <tromey@redhat.com>
10578
10579 * target-delegates.c: Rebuild.
10580 * target.c (update_current_target): Don't inherit or default
10581 to_find_memory_regions.
10582 (init_dummy_target): Don't initialize to_find_memory_regions.
10583 * target.h (struct target_ops) <to_find_memory_regions>: Use
10584 TARGET_DEFAULT_FUNC.
10585
d9cb0195
TT
105862014-02-19 Tom Tromey <tromey@redhat.com>
10587
10588 * target-delegates.c: Rebuild.
10589 * target.c (update_current_target): Don't inherit or default
10590 to_log_command.
10591 * target.h (struct target_ops) <to_log_command>: Use
10592 TARGET_DEFAULT_IGNORE.
10593 (target_log_command): Unconditionally delegate.
10594
830ca330
TT
105952014-02-19 Tom Tromey <tromey@redhat.com>
10596
10597 * target-delegates.c: Rebuild.
10598 * target.c (update_current_target): Don't inherit or default
10599 to_pid_to_exec_file.
10600 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
10601 TARGET_DEFAULT_RETURN.
10602
825828fc
TT
106032014-02-19 Tom Tromey <tromey@redhat.com>
10604
10605 * target-delegates.c: Rebuild.
10606 * target.c (update_current_target): Don't inherit or default
10607 to_thread_name.
10608 (target_thread_name): Unconditionally delegate.
10609 * target.h (struct target_ops) <to_thread_name>: Use
10610 TARGET_DEFAULT_RETURN.
10611
4a7e6dda
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_extra_thread_info.
10617 * target.h (struct target_ops) <to_extra_thread_info>: Use
10618 TARGET_DEFAULT_RETURN.
10619
0db88c1d
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_has_exited.
10625 * target.h (struct target_ops) <to_has_exited>: Use
10626 TARGET_DEFAULT_RETURN..
10627
6a9fa051
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_set_syscall_catchpoint.
10633 (return_one): Remove.
10634 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
10635 TARGET_DEFAULT_RETURN.
10636
62f64d7a
TT
106372014-02-19 Tom Tromey <tromey@redhat.com>
10638
10639 * target-delegates.c: Rebuild.
10640 * target.c (update_current_target): Don't inherit or default
10641 to_insert_exec_catchpoint.
10642 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
10643 TARGET_DEFAULT_RETURN.
10644
cda0f38c
TT
106452014-01-08 Tom Tromey <tromey@redhat.com>
10646
10647 * target-delegates.c: Rebuild.
10648 * target.c (update_current_target): Don't inherit or default
10649 to_insert_exec_catchpoint.
10650 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
10651 TARGET_DEFAULT_RETURN.
10652
95c3375e
TT
106532014-02-19 Tom Tromey <tromey@redhat.com>
10654
10655 * target-delegates.c: Rebuild.
10656 * target.c (update_current_target): Don't inherit or default
10657 to_remove_vfork_catchpoint.
10658 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
10659 TARGET_DEFAULT_RETURN.
10660
7e18a8dc
TT
106612014-02-19 Tom Tromey <tromey@redhat.com>
10662
10663 * target-delegates.c: Rebuild.
10664 * target.c (update_current_target): Don't inherit or default
10665 to_insert_vfork_catchpoint.
10666 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
10667 TARGET_DEFAULT_RETURN.
10668
e1a21fb7
TT
106692014-02-19 Tom Tromey <tromey@redhat.com>
10670
10671 * target-delegates.c: Rebuild.
10672 * target.c (update_current_target): Don't inherit or default
10673 to_remove_fork_catchpoint.
10674 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
10675 TARGET_DEFAULT_RETURN.
10676
5958ebeb
TT
106772014-02-19 Tom Tromey <tromey@redhat.com>
10678
10679 * target-delegates.c: Rebuild.
10680 * target.c (update_current_target): Don't inherit or default
10681 to_insert_fork_catchpoint.
10682 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
10683 TARGET_DEFAULT_RETURN.
10684
340ba4bf
TT
106852014-02-19 Tom Tromey <tromey@redhat.com>
10686
10687 * target-delegates.c: Rebuild.
10688 * target.c (update_current_target): Don't inherit or default
10689 to_post_startup_inferior.
10690 * target.h (struct target_ops) <to_post_startup_inferior>: Use
10691 TARGET_DEFAULT_IGNORE.
10692
7634da87
TT
106932014-02-19 Tom Tromey <tromey@redhat.com>
10694
10695 * target-delegates.c: Rebuild.
10696 * target.c (update_current_target): Don't inherit or default
10697 to_load.
10698 * target.h (struct target_ops) <to_load>: Use
10699 TARGET_DEFAULT_NORETURN.
10700
e19e919f
TT
107012014-02-19 Tom Tromey <tromey@redhat.com>
10702
10703 * target-delegates.c: Rebuild.
10704 * target.c (update_current_target): Don't inherit or default
10705 to_terminal_info.
10706 * target.h (struct target_ops) <to_terminal_info>: Use
10707 TARGET_DEFAULT_FUNC.
10708
c6ea8f79
TT
107092014-02-19 Tom Tromey <tromey@redhat.com>
10710
10711 * target-delegates.c: Rebuild.
10712 * target.c (update_current_target): Don't inherit or default
10713 to_terminal_save_ours.
10714 * target.h (struct target_ops) <to_terminal_save_ours>: Use
10715 TARGET_DEFAULT_IGNORE.
10716
e4a733f1
TT
107172014-02-19 Tom Tromey <tromey@redhat.com>
10718
10719 * target-delegates.c: Rebuild.
10720 * target.c (update_current_target): Don't inherit or default
10721 to_terminal_ours.
10722 * target.h (struct target_ops) <to_terminal_ours>: Use
10723 TARGET_DEFAULT_IGNORE.
10724
74fcbef9
TT
107252014-02-19 Tom Tromey <tromey@redhat.com>
10726
10727 * target-delegates.c: Rebuild.
10728 * target.c (update_current_target): Don't inherit or default
10729 to_terminal_ours_for_output.
10730 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
10731 TARGET_DEFAULT_IGNORE.
10732
ddeaacc9
TT
107332014-02-19 Tom Tromey <tromey@redhat.com>
10734
10735 * target-delegates.c: Rebuild.
10736 * target.c (update_current_target): Don't inherit or default
10737 to_terminal_inferior.
10738 * target.h (struct target_ops) <to_terminal_inferior>: Use
10739 TARGET_DEFAULT_IGNORE.
10740
0343661d
TT
107412014-02-19 Tom Tromey <tromey@redhat.com>
10742
10743 * target-delegates.c: Rebuild.
10744 * target.c (update_current_target): Don't inherit or default
10745 to_terminal_init.
10746 * target.h (struct target_ops) <to_terminal_init>: Use
10747 TARGET_DEFAULT_IGNORE.
10748
77cdffe9
TT
107492014-02-19 Tom Tromey <tromey@redhat.com>
10750
10751 * target-delegates.c: Rebuild.
10752 * target.c (update_current_target): Don't inherit or default
10753 to_can_accel_watchpoint_condition.
10754 * target.h (struct target_ops)
10755 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
10756
d03655e4
TT
107572014-02-19 Tom Tromey <tromey@redhat.com>
10758
10759 * target-delegates.c: Rebuild.
10760 * target.c (update_current_target): Don't inherit or default
10761 to_region_ok_for_hw_watchpoint.
10762 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10763 Use TARGET_DEFAULT_FUNC.
10764
65f160a9
TT
107652014-02-19 Tom Tromey <tromey@redhat.com>
10766
10767 * target-delegates.c: Rebuild.
10768 * target.c (update_current_target): Don't inherit or default
10769 to_watchpoint_addr_within_range.
10770 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
10771 Use TARGET_DEFAULT_FUNC.
10772
61dd109f
TT
107732014-02-19 Tom Tromey <tromey@redhat.com>
10774
10775 * target-delegates.c: Rebuild.
10776 * target.c (update_current_target): Don't inherit or default
10777 to_remove_watchpoint.
10778 * target.h (struct target_ops) <to_remove_watchpoint>: Use
10779 TARGET_DEFAULT_NORETURN.
10780
016facd4
TT
107812014-02-19 Tom Tromey <tromey@redhat.com>
10782
10783 * target-delegates.c: Rebuild.
10784 * target.c (update_current_target): Don't inherit or default
10785 to_insert_watchpoint.
10786 * target.h (struct target_ops) <to_insert_watchpoint>: Use
10787 TARGET_DEFAULT_RETURN.
10788
418dabac
TT
107892014-02-19 Tom Tromey <tromey@redhat.com>
10790
10791 * target-delegates.c: Rebuild.
10792 * target.c (update_current_target): Don't inherit or default
10793 to_remove_hw_breakpoint.
10794 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
10795 TARGET_DEFAULT_RETURN.
10796
61b371f9
TT
107972014-02-19 Tom Tromey <tromey@redhat.com>
10798
10799 * target-delegates.c: Rebuild.
10800 * target.c (update_current_target): Don't inherit or default
10801 to_insert_hw_breakpoint.
10802 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
10803 TARGET_DEFAULT_RETURN.
10804
52b51d06
TT
108052014-02-19 Tom Tromey <tromey@redhat.com>
10806
10807 * target-delegates.c: Rebuild.
10808 * target.c (update_current_target): Don't inherit or default
10809 to_can_use_hw_breakpoint.
10810 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
10811 TARGET_DEFAULT_RETURN.
10812
f86e59b2
TT
108132014-02-19 Tom Tromey <tromey@redhat.com>
10814
10815 * target-delegates.c: Rebuild.
10816 * target.c (update_current_target): Don't inherit or default
10817 to_files_info.
10818 * target.h (struct target_ops) <to_files_info>: Use
10819 TARGET_DEFAULT_IGNORE.
10820
6c628163
TT
108212014-02-19 Tom Tromey <tromey@redhat.com>
10822
10823 * target-delegates.c: Rebuild.
10824 * target.c (update_current_target): Don't inherit or default
10825 to_store.
10826 * target.h (struct target_ops) <to_store>: Use
10827 TARGET_DEFAULT_NORETURN.
10828
bebd3233
TT
108292014-02-19 Tom Tromey <tromey@redhat.com>
10830
10831 * target-delegates.c: Rebuild.
10832 * target.c (update_current_target): Don't inherit or default
10833 to_post_attach.
10834 * target.h (struct target_ops) <to_post_attach>: Use
10835 TARGET_DEFAULT_IGNORE.
10836
a53f3625
TT
108372014-02-19 Tom Tromey <tromey@redhat.com>
10838
10839 * target-delegates.c: Rebuild.
10840 * target.c (update_current_target): Don't inherit or default
10841 to_rcmd.
10842 (default_rcmd): New function.
10843 (do_monitor_command): Unconditionally delegate.
10844 * target.h (struct target_ops) <to_rmcd>: Use
10845 TARGET_DEFAULT_FUNC.
10846
e9a29200
TT
108472014-02-19 Tom Tromey <tromey@redhat.com>
10848
10849 * target-delegates.c: Rebuild.
10850 * target.c (init_dummy_target): Don't initialize to_attach.
10851 (target_attach): Unconditionally delegate.
10852 * target.h (struct target_ops) <to_attach>: Use
10853 TARGET_DEFAULT_FUNC.
10854
09da0d0a
TT
108552014-02-19 Tom Tromey <tromey@redhat.com>
10856
10857 * target-delegates.c: Rebuild.
10858 * target.c (target_detach): Unconditionally delegate.
10859 (init_dummy_target): Don't initialize to_detach.
10860 * target.h (struct target_ops) <to_detach>: Use
10861 TARGET_DEFAULT_IGNORE.
10862
5436ff03
TT
108632014-02-19 Tom Tromey <tromey@redhat.com>
10864
10865 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
10866 Add argument.
10867 (target_augmented_libraries_svr4_read): Add argument.
10868 * target.c (update_current_target): Update.
10869 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
10870 argument.
10871
f0d960ea
TT
108722014-02-19 Tom Tromey <tromey@redhat.com>
10873
10874 * target.h (struct target_ops) <to_call_history_range>: Add
10875 argument.
10876 * target.c (target_call_history_range): Add argument.
10877 * record-btrace.c (record_btrace_call_history_range): Add 'self'
10878 argument.
10879 (record_btrace_call_history_from): Update.
10880
ec0aea04
TT
108812014-02-19 Tom Tromey <tromey@redhat.com>
10882
10883 * target.h (struct target_ops) <to_call_history_from>: Add
10884 argument.
10885 * target.c (target_call_history_from): Add argument.
10886 * record-btrace.c (record_btrace_call_history_from): Add 'self'
10887 argument.
10888
5df2fcba
TT
108892014-02-19 Tom Tromey <tromey@redhat.com>
10890
10891 * target.h (struct target_ops) <to_call_history>: Add argument.
10892 * target.c (target_call_history): Add argument.
10893 * record-btrace.c (record_btrace_call_history): Add 'self'
10894 argument.
10895
4e99c6b7
TT
108962014-02-19 Tom Tromey <tromey@redhat.com>
10897
10898 * target.h (struct target_ops) <to_insn_history_range>: Add
10899 argument.
10900 * target.c (target_insn_history_range): Add argument.
10901 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
10902 argument.
10903 (record_btrace_insn_history_from): Update.
10904
9abc3ff3
TT
109052014-02-19 Tom Tromey <tromey@redhat.com>
10906
10907 * target.h (struct target_ops) <to_insn_history_from>: Add
10908 argument.
10909 * target.c (target_insn_history_from): Add argument.
10910 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
10911 argument.
10912
7a6c5609
TT
109132014-02-19 Tom Tromey <tromey@redhat.com>
10914
10915 * target.h (struct target_ops) <to_insn_history>: Add argument.
10916 * target.c (target_insn_history): Add argument.
10917 * record-btrace.c (record_btrace_insn_history): Add 'self'
10918 argument.
10919
606183ac
TT
109202014-02-19 Tom Tromey <tromey@redhat.com>
10921
10922 * target.h (struct target_ops) <to_goto_record>: Add argument.
10923 * target.c (target_goto_record): Add argument.
10924 * record-full.c (record_full_goto): Add 'self' argument.
10925 * record-btrace.c (record_btrace_goto): Add 'self' argument.
10926
307a1b91
TT
109272014-02-19 Tom Tromey <tromey@redhat.com>
10928
10929 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
10930 * target.c (target_goto_record_end): Add argument.
10931 * record-full.c (record_full_goto_end): Add 'self' argument.
10932 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
10933
08475817
TT
109342014-02-19 Tom Tromey <tromey@redhat.com>
10935
10936 * target.h (struct target_ops) <to_goto_record_begin>: Add
10937 argument.
10938 * target.c (target_goto_record_begin): Add argument.
10939 * record-full.c (record_full_goto_begin): Add 'self' argument.
10940 * record-btrace.c (record_btrace_goto_begin): Add 'self'
10941 argument.
10942
1c63c994
TT
109432014-02-19 Tom Tromey <tromey@redhat.com>
10944
10945 * target.h (struct target_ops) <to_record_is_replaying>: Add
10946 argument.
10947 * target.c (target_record_is_replaying): Add argument.
10948 * record-full.c (record_full_is_replaying): Add 'self' argument.
10949 * record-btrace.c (record_btrace_is_replaying): Add 'self'
10950 argument.
10951 (record_btrace_xfer_partial, record_btrace_store_registers)
10952 (record_btrace_prepare_to_store, record_btrace_resume)
10953 (record_btrace_wait, record_btrace_decr_pc_after_break)
10954 (record_btrace_find_new_threads, record_btrace_thread_alive):
10955 Update.
10956
d1b55219
TT
109572014-02-19 Tom Tromey <tromey@redhat.com>
10958
10959 * target.h (struct target_ops) <to_delete_record>: Add argument.
10960 * target.c (target_delete_record): Add argument.
10961 * record-full.c (record_full_delete): Add 'self' argument.
10962
1390f529
TT
109632014-02-19 Tom Tromey <tromey@redhat.com>
10964
10965 * target.h (struct target_ops) <to_save_record>: Add argument.
10966 * target.c (target_save_record): Add argument.
10967 * record-full.c (record_full_save): Add 'self' argument.
10968 (record_full_save): Add 'self' argument.
10969
630d6a4a
TT
109702014-02-19 Tom Tromey <tromey@redhat.com>
10971
10972 * target.h (struct target_ops) <to_info_record>: Add argument.
10973 * target.c (target_info_record): Add argument.
10974 * record.c (info_record_command): Add argument.
10975 * record-full.c (record_full_info): Add 'self' argument.
10976 * record-btrace.c (record_btrace_info): Add 'self' argument.
10977
c6cd7c02
TT
109782014-02-19 Tom Tromey <tromey@redhat.com>
10979
10980 * target.h (struct target_ops) <to_stop_recording>: Add argument.
10981 * target.c (target_stop_recording): Add argument.
10982 * record.c (record_stop): Add argument.
10983 * record-btrace.c (record_btrace_stop_recording): Add 'self'
10984 argument.
10985
39c49f83
TT
109862014-02-19 Tom Tromey <tromey@redhat.com>
10987
10988 * target.h (struct target_ops) <to_read_btrace>: Add argument.
10989 * target.c (struct target_ops) <to_read_btrace>: Add argument.
10990 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
10991 argument.
10992 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
10993 (_initialize_amd64_linux_nat): Use it.
10994 * i386-linux-nat.c (i386_linux_read_btrace): New function.
10995 (_initialize_i386_linux_nat): Use it.
10996
1777056d
TT
109972014-02-19 Tom Tromey <tromey@redhat.com>
10998
10999 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
11000 * target.c (target_teardown_btrace): Add argument.
11001 * remote.c (remote_teardown_btrace): Add 'self' argument.
11002 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
11003 argument.
11004 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
11005 argument.
11006
25e95349
TT
110072014-02-19 Tom Tromey <tromey@redhat.com>
11008
11009 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
11010 * target.c (target_disable_btrace): Add argument.
11011 * remote.c (remote_disable_btrace): Add 'self' argument.
11012 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
11013 argument.
11014 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
11015 argument.
11016
e3c49f88
TT
110172014-02-19 Tom Tromey <tromey@redhat.com>
11018
11019 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
11020 * target.c (target_enable_btrace): Add argument.
11021 * remote.c (remote_enable_btrace): Add 'self' argument.
11022 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
11023 argument.
11024 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
11025 argument.
11026
fe38f897
TT
110272014-02-19 Tom Tromey <tromey@redhat.com>
11028
11029 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
11030 (target_can_use_agent): Add argument.
11031 * target.c (update_current_target): Update.
11032 * remote.c (remote_can_use_agent): Add 'self' argument.
11033 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
11034
2c152180
TT
110352014-02-19 Tom Tromey <tromey@redhat.com>
11036
11037 * target.h (struct target_ops) <to_use_agent>: Add argument.
11038 (target_use_agent): Add argument.
11039 * target.c (update_current_target): Update.
11040 * remote.c (remote_use_agent): Add 'self' argument.
11041 * inf-child.c (inf_child_use_agent): Add 'self' argument.
11042
a893e81f
TT
110432014-02-19 Tom Tromey <tromey@redhat.com>
11044
11045 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
11046 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
11047 (target_traceframe_info): Add argument.
11048 * target.c (update_current_target): Update.
11049 * remote.c (remote_traceframe_info): Add 'self' argument.
11050 * ctf.c (ctf_traceframe_info): Add 'self' argument.
11051
c686c57f
TT
110522014-02-19 Tom Tromey <tromey@redhat.com>
11053
11054 * target.h (target_static_tracepoint_markers_by_strid): Add
11055 argument.
11056 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
11057 'self' argument.
11058 * target.c (update_current_target): Update.
11059 * remote.c (struct target_ops)
11060 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
11061 * linux-nat.c (struct target_ops)
11062 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
11063
61fc905d
TT
110642014-02-19 Tom Tromey <tromey@redhat.com>
11065
11066 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
11067 Add argument.
11068 (target_static_tracepoint_marker_at): Add argument.
11069 * target.c (update_current_target): Update.
11070 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
11071 argument.
11072
c378d69d
TT
110732014-02-19 Tom Tromey <tromey@redhat.com>
11074
11075 * target.h (struct target_ops) <to_set_permissions>: Add argument.
11076 (target_set_permissions): Add argument.
11077 * target.c (update_current_target): Update.
11078 * remote.c (remote_set_permissions): Add 'self' argument.
11079 (remote_start_remote): Update.
11080
bd7ae0f5
TT
110812014-02-19 Tom Tromey <tromey@redhat.com>
11082
11083 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
11084 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
11085 (target_get_tib_address): Add argument.
11086 * target.c (update_current_target): Update.
11087 * remote.c (remote_get_tib_address): Add 'self' argument.
11088
d9e68a2c
TT
110892014-02-19 Tom Tromey <tromey@redhat.com>
11090
11091 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
11092 (target_set_trace_notes): Add argument.
11093 * target.c (update_current_target): Update.
11094 * remote.c (remote_set_trace_notes): Add 'self' argument.
11095
4da384be
TT
110962014-02-19 Tom Tromey <tromey@redhat.com>
11097
11098 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
11099 argument.
11100 (target_set_trace_buffer_size): Add argument.
11101 * target.c (update_current_target): Update.
11102 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
11103
736d5b1f
TT
111042014-02-19 Tom Tromey <tromey@redhat.com>
11105
11106 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
11107 argument.
11108 (target_set_circular_trace_buffer): Add argument.
11109 * target.c (update_current_target): Update.
11110 * remote.c (remote_set_circular_trace_buffer): Add 'self'
11111 argument.
11112
37b25738
TT
111132014-02-19 Tom Tromey <tromey@redhat.com>
11114
11115 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
11116 argument.
11117 (target_set_disconnected_tracing): Add argument.
11118 * target.c (update_current_target): Update.
11119 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
11120
0e67620a
TT
111212014-02-19 Tom Tromey <tromey@redhat.com>
11122
11123 * target.h (struct target_ops)
11124 <to_get_min_fast_tracepoint_insn_len>: Add argument.
11125 (target_get_min_fast_tracepoint_insn_len): Add argument.
11126 * target.c (update_current_target): Update.
11127 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
11128 argument.
11129
88ee6f45
TT
111302014-02-19 Tom Tromey <tromey@redhat.com>
11131
11132 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
11133 argument.
11134 (target_get_raw_trace_data): Add argument.
11135 * target.c (update_current_target): Update.
11136 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
11137
181e3713
TT
111382014-02-19 Tom Tromey <tromey@redhat.com>
11139
11140 * target.h (struct target_ops) <to_upload_trace_state_variables>:
11141 Add argument.
11142 (target_upload_trace_state_variables): Add argument.
11143 * target.c (update_current_target): Update.
11144 * remote.c (remote_upload_trace_state_variables): Add 'self'
11145 argument.
11146 (remote_start_remote): Update.
11147
ab6617cc
TT
111482014-02-19 Tom Tromey <tromey@redhat.com>
11149
11150 * target.h (struct target_ops) <to_upload_tracepoints>: Add
11151 argument.
11152 (target_upload_tracepoints): Add argument.
11153 * target.c (update_current_target): Update.
11154 * remote.c (remote_upload_tracepoints): Add 'self' argument.
11155 (remote_start_remote): Update.
11156
dc3decaf
TT
111572014-02-19 Tom Tromey <tromey@redhat.com>
11158
11159 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
11160 (target_save_trace_data): Add argument.
11161 * target.c (update_current_target): Update.
11162 * remote.c (remote_save_trace_data): Add 'self' argument.
11163
4011015b
TT
111642014-02-19 Tom Tromey <tromey@redhat.com>
11165
11166 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
11167 argument.
11168 * target.h (struct target_ops)
11169 <to_get_trace_state_variable_value>: Add argument.
11170 (target_get_trace_state_variable_value): Add argument.
11171 * target.c (update_current_target): Update.
11172 * remote.c (remote_get_trace_state_variable_value): Add 'self'
11173 argument.
11174 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
11175
bd4c6793
TT
111762014-02-19 Tom Tromey <tromey@redhat.com>
11177
11178 * tracepoint.c (tfile_trace_find): Add 'self' argument.
11179 * target.h (struct target_ops) <to_trace_find>: Add argument.
11180 (target_trace_find): Add argument.
11181 * target.c (update_current_target): Update.
11182 * remote.c (remote_trace_find): Add 'self' argument.
11183 * ctf.c (ctf_trace_find): Add 'self' argument.
11184
74499f1b
TT
111852014-02-19 Tom Tromey <tromey@redhat.com>
11186
11187 * target.h (struct target_ops) <to_trace_stop>: Add argument.
11188 (target_trace_stop): Add argument.
11189 * target.c (update_current_target): Update.
11190 * remote.c (remote_trace_stop): Add 'self' argument.
11191
db90e85c
TT
111922014-02-19 Tom Tromey <tromey@redhat.com>
11193
11194 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
11195 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
11196 argument.
11197 (target_get_tracepoint_status): Add argument.
11198 * target.c (update_current_target): Update.
11199 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
11200
8bd200f1
TT
112012014-02-19 Tom Tromey <tromey@redhat.com>
11202
11203 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
11204 * target.h (struct target_ops) <to_get_trace_status>: Add
11205 argument.
11206 (target_get_trace_status): Add argument.
11207 * target.c (update_current_target): Update.
11208 * remote.c (remote_get_trace_status): Add 'self' argument.
11209 (remote_start_remote, remote_can_download_tracepoint): Update.
11210 * ctf.c (ctf_get_trace_status): Add 'self' argument.
11211
e2d1aae3
TT
112122014-02-19 Tom Tromey <tromey@redhat.com>
11213
11214 * target.h (struct target_ops) <to_trace_start>: Add argument.
11215 (target_trace_start): Add argument.
11216 * target.c (update_current_target): Update.
11217 * remote.c (remote_trace_start): Add 'self' argument.
11218
583f9a86
TT
112192014-02-19 Tom Tromey <tromey@redhat.com>
11220
11221 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
11222 Add argument.
11223 (target_trace_set_readonly_regions): Add argument.
11224 * target.c (update_current_target): Update.
11225 * remote.c (remote_trace_set_readonly_regions): Add 'self'
11226 argument.
11227
780b049c
TT
112282014-02-19 Tom Tromey <tromey@redhat.com>
11229
11230 * target.h (struct target_ops) <to_disable_tracepoint>: Add
11231 argument.
11232 (target_disable_tracepoint): Add argument.
11233 * target.c (update_current_target): Update.
11234 * remote.c (remote_disable_tracepoint): Add 'self' argument.
11235
46670d57
TT
112362014-02-19 Tom Tromey <tromey@redhat.com>
11237
11238 * target.h (struct target_ops) <to_enable_tracepoint>: Add
11239 argument.
11240 (target_enable_tracepoint): Add argument.
11241 * target.c (update_current_target): Update.
11242 * remote.c (remote_enable_tracepoint): Add 'self' argument.
11243
559d2b81
TT
112442014-02-19 Tom Tromey <tromey@redhat.com>
11245
11246 * target.h (struct target_ops) <to_download_trace_state_variable>:
11247 Add argument.
11248 (target_download_trace_state_variable): Add argument.
11249 * target.c (update_current_target): Update.
11250 * remote.c (remote_download_trace_state_variable): Add 'self'
11251 argument.
11252
a52a8357
TT
112532014-02-19 Tom Tromey <tromey@redhat.com>
11254
11255 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
11256 argument.
11257 (target_can_download_tracepoint): Add argument.
11258 * target.c (update_current_target): Update.
11259 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
11260
548f7808
TT
112612014-02-19 Tom Tromey <tromey@redhat.com>
11262
11263 * target.h (struct target_ops) <to_download_tracepoint>: Add
11264 argument.
11265 (target_download_tracepoint): Add argument.
11266 * target.c (update_current_target): Update.
11267 * remote.c (remote_download_tracepoint): Add 'self' argument.
11268
ecae04e1
TT
112692014-02-19 Tom Tromey <tromey@redhat.com>
11270
11271 * target.h (struct target_ops) <to_trace_init>: Add argument.
11272 (target_trace_init): Add argument.
11273 * target.c (update_current_target): Update.
11274 * remote.c (remote_trace_init): Add 'self' argument.
11275
fab5aa7c
TT
112762014-02-19 Tom Tromey <tromey@redhat.com>
11277
11278 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
11279 * target.c (target_fileio_readlink): Add argument.
11280 * remote.c (remote_hostio_readlink): Add 'self' argument.
11281 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
11282
dbbca37d
TT
112832014-02-19 Tom Tromey <tromey@redhat.com>
11284
11285 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
11286 * target.c (target_fileio_unlink): Add argument.
11287 * remote.c (remote_hostio_unlink): Add 'self' argument.
11288 (remote_file_delete): Update.
11289 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
11290
df39ea25
TT
112912014-02-19 Tom Tromey <tromey@redhat.com>
11292
11293 * target.h (struct target_ops) <to_fileio_close>: Add argument.
11294 * target.c (target_fileio_close): Add argument.
11295 * remote.c (remote_hostio_close): Add 'self' argument.
11296 (remote_hostio_close_cleanup): Update.
11297 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
11298 Update.
11299 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
11300
a3be983c
TT
113012014-02-19 Tom Tromey <tromey@redhat.com>
11302
11303 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
11304 * target.c (target_fileio_pread): Add argument.
11305 * remote.c (remote_hostio_pread): Add 'self' argument.
11306 (remote_bfd_iovec_pread, remote_file_get): Update.
11307 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
11308
0d866f62
TT
113092014-02-19 Tom Tromey <tromey@redhat.com>
11310
11311 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
11312 * target.c (target_fileio_pwrite): Add argument.
11313 * remote.c (remote_hostio_pwrite): Add 'self' argument.
11314 (remote_file_put): Update.
11315 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
11316
cd897586
TT
113172014-02-19 Tom Tromey <tromey@redhat.com>
11318
11319 * target.h (struct target_ops) <to_fileio_open>: Add argument.
11320 * target.c (target_fileio_open): Add argument.
11321 * remote.c (remote_hostio_open): Add 'self' argument.
11322 (remote_bfd_iovec_open): Add 'self' argument.
11323 (remote_file_put): Add 'self' argument.
11324 (remote_file_get): Add 'self' argument.
11325 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
11326
78eff0ec
TT
113272014-02-19 Tom Tromey <tromey@redhat.com>
11328
11329 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
11330 Add argument.
11331 (target_can_run_breakpoint_commands): Add argument.
11332 * target.c (update_current_target): Update.
11333 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
11334 argument.
11335 (remote_insert_breakpoint): Add 'self' argument.
11336 (remote_insert_hw_breakpoint): Add 'self' argument.
11337 (remote_can_run_breakpoint_commands): Add 'self' argument.
11338
efcc2da7
TT
113392014-02-19 Tom Tromey <tromey@redhat.com>
11340
11341 * target.h (struct target_ops)
11342 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
11343 (target_supports_evaluation_of_breakpoint_conditions): Add
11344 argument.
11345 * target.c (update_current_target): Update.
11346 * remote.c (remote_supports_cond_breakpoints): Add 'self'
11347 argument.
11348 (remote_insert_breakpoint): Add 'self' argument.
11349 (remote_insert_hw_breakpoint): Add 'self' argument.
11350 (remote_supports_cond_breakpoints): Add 'self' argument.
11351
6de37a3a
TT
113522014-02-19 Tom Tromey <tromey@redhat.com>
11353
11354 * target.h (struct target_ops) <to_supports_string_tracing>: Add
11355 argument.
11356 (target_supports_string_tracing): Add argument.
11357 * target.c (update_current_target): Update.
11358 * remote.c (remote_supports_string_tracing): Add 'self' argument.
11359
2bfc0540
TT
113602014-02-19 Tom Tromey <tromey@redhat.com>
11361
11362 * target.h (struct target_ops)
11363 <to_supports_disable_randomization>: Add argument.
11364 * target.c (find_default_supports_disable_randomization): Add
11365 argument.
11366 (target_supports_disable_randomization): Add argument.
11367 (find_default_supports_disable_randomization): Add 'self'
11368 argument.
11369 * remote.c (extended_remote_supports_disable_randomization): Add
11370 'self' argument.
11371 (remote_supports_disable_randomization): Add 'self' argument.
11372 (extended_remote_create_inferior): Update.
11373 * linux-nat.c (linux_nat_supports_disable_randomization): Add
11374 'self' argument.
11375
7d178d6a
TT
113762014-02-19 Tom Tromey <tromey@redhat.com>
11377
11378 * target.h (struct target_ops)
11379 <to_supports_enable_disable_tracepoint>: Add argument.
11380 (target_supports_enable_disable_tracepoint): Add argument.
11381 * target.c (update_current_target): Update.
11382 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
11383 argument.
11384
86ce2668
TT
113852014-02-19 Tom Tromey <tromey@redhat.com>
11386
11387 * target.h (struct target_ops) <to_supports_multi_process>: Add
11388 argument.
11389 (target_supports_multi_process): Add argument.
11390 * target.c (update_current_target): Update.
11391 * remote.c (remote_supports_multi_process): Add 'self' argument.
11392 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
11393 argument.
11394 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
11395 argument.
11396
4c612759
TT
113972014-02-19 Tom Tromey <tromey@redhat.com>
11398
11399 * target.h (struct target_ops) <to_execution_direction>: Add
11400 argument.
11401 (target_execution_direction): Add argument.
11402 * target.c (default_execution_direction): Add 'self' argument.
11403 * record-full.c (record_full_execution_direction): Add 'self'
11404 argument.
11405
19db3e69
TT
114062014-02-19 Tom Tromey <tromey@redhat.com>
11407
11408 * target.h (struct target_ops) <to_can_execute_reverse>: Add
11409 argument.
11410 (target_can_execute_reverse): Add argument.
11411 * remote.c (remote_can_execute_reverse): Add 'self' argument.
11412 * record-full.c (record_full_can_execute_reverse): Add 'self'
11413 argument.
11414 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
11415 argument.
11416
1e6b91a4
TT
114172014-02-19 Tom Tromey <tromey@redhat.com>
11418
11419 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
11420 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
11421 argument.
11422 (target_get_ada_task_ptid): Add argument.
11423 * target.c (update_current_target): Update.
11424 (default_get_ada_task_ptid): Add 'self' argument.
11425 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
11426 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
11427 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
11428 argument.
11429 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
11430 argument.
11431 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
11432 argument.
11433 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
11434 argument.
11435 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
11436 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
11437 argument.
11438
3c80fb48
TT
114392014-02-19 Tom Tromey <tromey@redhat.com>
11440
11441 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
11442 (target_goto_bookmark): Add argument.
11443 * target.c (dummy_goto_bookmark): Add 'self' argument.
11444 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
11445
dd0e2830
TT
114462014-02-19 Tom Tromey <tromey@redhat.com>
11447
11448 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
11449 (target_get_bookmark): Add argument.
11450 * target.c (dummy_get_bookmark): Add 'self' argument.
11451 * record-full.c (record_full_get_bookmark): Add 'self' argument.
11452
fc6691b2
TT
114532014-02-19 Tom Tromey <tromey@redhat.com>
11454
11455 * target.h (struct target_ops) <to_make_corefile_notes>: Add
11456 argument.
11457 (target_make_corefile_notes): Add argument.
11458 * target.c (dummy_make_corefile_notes): Add 'self' argument.
11459 * procfs.c (procfs_make_note_section): Add 'self' argument.
11460 (procfs_make_note_section): Add 'self' argument.
11461 (procfs_make_note_section): Add 'self' argument.
11462 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
11463 argument.
11464 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
11465 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
11466 * exec.c (exec_make_note_section): Add 'self' argument.
11467 (exec_make_note_section): Add 'self' argument.
11468
2e73927c
TT
114692014-02-19 Tom Tromey <tromey@redhat.com>
11470
11471 * target.h (struct target_ops) <to_find_memory_regions>: Add
11472 argument.
11473 (target_find_memory_regions): Add argument.
11474 * target.c (dummy_find_memory_regions): Add 'self' argument.
11475 * procfs.c (proc_find_memory_regions): Add 'self' argument.
11476 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
11477 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
11478 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
11479 * exec. (exec_do_find_memory_regions): New global.
11480 (exec_set_find_memory_regions): Rewrite.
11481 (exec_find_memory_regions): New function.
11482 (init_exec_ops): Use exec_find_memory_regions.
11483
2a9a2795
TT
114842014-02-19 Tom Tromey <tromey@redhat.com>
11485
11486 * target.h (struct target_ops) <to_supports_non_stop>: Add
11487 argument.
11488 * target.c (find_default_supports_non_stop): Add argument.
11489 (target_supports_non_stop): Add argument.
11490 (find_default_supports_non_stop): Add 'self' argument.
11491 * remote.c (remote_supports_non_stop): Add 'self' argument.
11492 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
11493
4ab76ea3
TT
114942014-02-19 Tom Tromey <tromey@redhat.com>
11495
11496 * target.h (struct target_ops) <to_log_command>: Add argument.
11497 (target_log_command): Add argument.
11498 * serial.h (serial_log_command): Add 'self' argument.
11499 * serial.c (serial_log_command): Add 'self' argument.
11500
8dd27370
TT
115012014-02-19 Tom Tromey <tromey@redhat.com>
11502
11503 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
11504 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
11505 argument.
11506 (target_pid_to_exec_file): Add argument.
11507 * target.c (debug_to_pid_to_exec_file): Add argument.
11508 (update_current_target): Update.
11509 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
11510 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
11511 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
11512 (linux_handle_extended_wait): Update.
11513 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
11514 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
11515 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
11516 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
11517
1aac633b
TT
115182014-02-19 Tom Tromey <tromey@redhat.com>
11519
11520 * target.h (struct target_ops) <to_rcmd>: Add argument.
11521 (target_rcmd): Add argument.
11522 * target.c (debug_to_rcmd): Add argument.
11523 (update_current_target, do_monitor_command): Update.
11524 * remote.c (remote_rcmd): Add 'self' argument.
11525 * monitor.c (monitor_rcmd): Add 'self' argument.
11526
1eab8a48
TT
115272014-02-19 Tom Tromey <tromey@redhat.com>
11528
11529 * windows-nat.c (windows_stop): Add 'self' argument.
11530 * target.h (struct target_ops) <to_stop>: Add argument.
11531 * target.c (target_stop): Add argument.
11532 (debug_to_stop): Add argument.
11533 (update_current_target): Update.
11534 * remote.c (remote_stop): Add 'self' argument.
11535 * remote-sim.c (gdbsim_stop): Add 'self' argument.
11536 (gdbsim_cntrl_c): Update.
11537 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
11538 * procfs.c (procfs_stop): Add 'self' argument.
11539 * nto-procfs.c (procfs_stop): Add 'self' argument.
11540 * monitor.c (monitor_stop): Add 'self' argument.
11541 (monitor_open): Update.
11542 * linux-nat.c (linux_nat_stop): Add argument.
11543 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
11544 * gnu-nat.c (gnu_stop): Add 'self' argument.
11545 * darwin-nat.c (darwin_stop): Add 'self' argument.
11546
503a628d
TT
115472014-02-19 Tom Tromey <tromey@redhat.com>
11548
11549 * target.h (struct target_ops) <to_thread_name>: Add argument.
11550 * target.c (target_thread_name): Add argument.
11551 (update_current_target): Update.
11552 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
11553
c15906d8
TT
115542014-02-19 Tom Tromey <tromey@redhat.com>
11555
11556 * target.h (struct target_ops) <to_extra_thread_info>: Add
11557 argument.
11558 (target_extra_thread_info): Add argument.
11559 * target.c (update_current_target): Update.
11560 * remote.c (remote_threads_extra_info): Add 'self' argument.
11561 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
11562 argument.
11563 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
11564 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
11565 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
11566 argument.
11567 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
11568 argument.
11569 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
11570 argument.
11571 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
11572 argument.
11573
daf5e9b6
TT
115742014-02-19 Tom Tromey <tromey@redhat.com>
11575
11576 * target.h (struct target_ops) <to_program_signals>: Add argument.
11577 * target.c (target_program_signals): Add argument.
11578 * remote.c (remote_program_signals): Add 'self' argument.
11579
94bedb42
TT
115802014-02-19 Tom Tromey <tromey@redhat.com>
11581
11582 * target.h (struct target_ops) <to_pass_signals>: Add argument.
11583 * target.c (target_pass_signals): Add argument.
11584 * remote.c (remote_pass_signals): Add 'self' argument.
11585 (remote_start_remote): Update.
11586 * procfs.c (procfs_pass_signals): Add 'self' argument.
11587 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
11588 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
11589 (linux_nat_create_inferior, linux_nat_attach): Update.
11590
da82bd6b
TT
115912014-02-19 Tom Tromey <tromey@redhat.com>
11592
11593 * windows-nat.c (windows_can_run): Add 'self' argument.
11594 * target.h (struct target_ops) <to_can_run>: Add argument.
11595 (target_can_run): Add argument.
11596 * target.c (debug_to_can_run): Add argument.
11597 (update_current_target): Update.
11598 * nto-procfs.c (procfs_can_run): Add 'self' argument.
11599 * inf-child.c (inf_child_can_run): Add 'self' argument.
11600 * go32-nat.c (go32_can_run): Add 'self' argument.
11601
d796e1d6
TT
116022014-02-19 Tom Tromey <tromey@redhat.com>
11603
11604 * target.h (struct target_ops) <to_has_exited>: Add argument.
11605 (target_has_exited): Add argument.
11606 * target.c (debug_to_has_exited): Add argument.
11607 (update_current_target): Update.
11608
ff214e67
TT
116092014-02-19 Tom Tromey <tromey@redhat.com>
11610
11611 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
11612 argument.
11613 (target_set_syscall_catchpoint): Add argument.
11614 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
11615 argument.
11616 * target.c (update_current_target): Update.
11617
758e29d2
TT
116182014-02-19 Tom Tromey <tromey@redhat.com>
11619
11620 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
11621 argument.
11622 (target_remove_exec_catchpoint): Add argument.
11623 * target.c (debug_to_remove_exec_catchpoint): Add argument.
11624 (update_current_target): Update.
11625 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
11626 argument.
11627
ba025e51
TT
116282014-02-19 Tom Tromey <tromey@redhat.com>
11629
11630 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
11631 argument.
11632 (target_insert_exec_catchpoint): Add argument.
11633 * target.c (debug_to_insert_exec_catchpoint): Add argument.
11634 (update_current_target): Update.
11635 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
11636 argument.
11637
e98cf0cd
TT
116382014-02-19 Tom Tromey <tromey@redhat.com>
11639
11640 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
11641 argument.
11642 (target_remove_vfork_catchpoint): Add argument.
11643 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
11644 (update_current_target): Update.
11645 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
11646 argument.
11647
3ecc7da0
TT
116482014-02-19 Tom Tromey <tromey@redhat.com>
11649
11650 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
11651 argument.
11652 (target_insert_vfork_catchpoint): Add argument.
11653 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
11654 (update_current_target): Update.
11655 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
11656 argument.
11657
973fc227
TT
116582014-02-19 Tom Tromey <tromey@redhat.com>
11659
11660 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
11661 argument.
11662 (target_remove_fork_catchpoint): Add argument.
11663 * target.c (debug_to_remove_fork_catchpoint): Add argument.
11664 (update_current_target): Update.
11665 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
11666 argument.
11667
a863b201
TT
116682014-02-19 Tom Tromey <tromey@redhat.com>
11669
11670 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
11671 argument.
11672 (target_insert_fork_catchpoint): Add argument.
11673 * target.c (debug_to_insert_fork_catchpoint): Add argument.
11674 (update_current_target): Update.
11675 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
11676 argument.
11677
2e97a79e
TT
116782014-02-19 Tom Tromey <tromey@redhat.com>
11679
11680 * target.h (struct target_ops) <to_post_startup_inferior>: Add
11681 argument.
11682 (target_post_startup_inferior): Add argument.
11683 * target.c (debug_to_post_startup_inferior): Add argument.
11684 (update_current_target): Update.
11685 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
11686 argument.
11687 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
11688 argument.
11689 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
11690 argument.
11691 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
11692 argument.
11693 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
11694 'self' argument.
11695 (super_post_startup_inferior): Likewise.
11696 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
11697 'self' argument.
11698 (super_post_startup_inferior): Likewise.
11699 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
11700 Add 'self' argument.
11701 (super_post_startup_inferior): Likewise.
11702
71a9f134
TT
117032014-02-19 Tom Tromey <tromey@redhat.com>
11704
11705 * target.h (struct target_ops) <to_load>: Add argument.
11706 * target.c (target_load): Add argument.
11707 (debug_to_load): Add argument.
11708 (update_current_target): Update.
11709 * remote.c (remote_load): Add 'self' argument.
11710 * remote-sim.c (gdbsim_load): Add 'self' argument.
11711 * remote-mips.c (mips_load): Add 'self' argument.
11712 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
11713 * monitor.c (monitor_load): Add 'self' argument.
11714 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
11715
0a4f40a2
TT
117162014-02-19 Tom Tromey <tromey@redhat.com>
11717
11718 * target.h (struct target_ops) <to_terminal_info>: Add argument.
11719 (target_terminal_info): Add argument.
11720 * target.c (debug_to_terminal_info): Add argument.
11721 (default_terminal_info): Likewise.
11722 * inflow.c (child_terminal_info): Add 'self' argument.
11723 * inferior.h (child_terminal_info): Add 'self' argument.
11724 * go32-nat.c (go32_terminal_info): Add 'self' argument.
11725
ae3bd431
TT
117262014-02-19 Tom Tromey <tromey@redhat.com>
11727
11728 * target.h (struct target_ops) <to_terminal_save_ours>: Add
11729 argument.
11730 (target_terminal_save_ours): Add argument.
11731 * target.c (debug_to_terminal_save_ours): Add argument.
11732 (update_current_target): Update.
11733 * inflow.c (terminal_save_ours): Add 'self' argument.
11734 * inferior.h (terminal_save_ours): Add 'self' argument.
11735
e3594fd1
TT
117362014-02-19 Tom Tromey <tromey@redhat.com>
11737
11738 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
11739 (target_terminal_ours): Add argument.
11740 * target.c (debug_to_terminal_ours): Add argument.
11741 (update_current_target): Update.
11742 * remote.c (remote_terminal_ours): Add 'self' argument.
11743 (remote_close): Update.
11744 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
11745 * inflow.c (terminal_ours): Add 'self' argument.
11746 * inferior.h (terminal_ours): Add 'self' argument.
11747 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11748
2e1e1a19
TT
117492014-02-19 Pedro Alves <palves@redhat.com>
11750 Tom Tromey <tromey@redhat.com>
11751
11752 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
11753 argument.
11754 (target_terminal_ours_for_output): Add argument.
11755 * target.c (debug_to_terminal_ours_for_output): Add argument.
11756 (update_current_target): Update.
11757 * inflow.c (terminal_ours_for_output): Add 'self' argument.
11758 * inferior.h (terminal_ours_for_output): Add 'self' argument.
11759 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11760
d2f640d4
TT
117612014-02-19 Tom Tromey <tromey@redhat.com>
11762
11763 * target.h (struct target_ops) <to_terminal_inferior>: Add
11764 argument.
11765 * target.c (target_terminal_inferior): Add argument.
11766 (update_current_target): Update.
11767 * remote.c (remote_terminal_inferior): Add 'self' argument.
11768 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
11769 * inflow.c (terminal_inferior): Add 'self' argument.
11770 * inferior.h (terminal_inferior): Add 'self' argument.
11771 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
11772 (go32_terminal_inferior): Add 'self' argument.
11773
c42bf286
TT
117742014-02-19 Tom Tromey <tromey@redhat.com>
11775
11776 * target.h (struct target_ops) <to_terminal_init>: Add argument.
11777 (target_terminal_init): Add argument.
11778 * target.c (debug_to_terminal_init): Add argument.
11779 (update_current_target): Update.
11780 * inflow.c (terminal_init_inferior): Add 'self' argument.
11781 * inferior.h (terminal_init_inferior): Add 'self' argument.
11782 * go32-nat.c (go32_terminal_init): Add 'self' argument.
11783 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
11784
c3a5ff89
TT
117852014-02-19 Tom Tromey <tromey@redhat.com>
11786
11787 * target.h (struct target_ops)
11788 <to_can_accel_watchpoint_condition>: Add argument.
11789 (target_can_accel_watchpoint_condition): Add argument.
11790 * target.c (debug_to_can_accel_watchpoint_condition): Add
11791 argument.
11792 (update_current_target): Update.
11793 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
11794 'self' argument.
11795
31568a15
TT
117962014-02-19 Tom Tromey <tromey@redhat.com>
11797
11798 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11799 Add argument.
11800 (target_region_ok_for_hw_watchpoint): Add argument.
11801 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
11802 (default_region_ok_for_hw_watchpoint): Add argument.
11803 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
11804 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
11805 argument.
11806 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
11807 argument.
11808 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
11809 argument.
11810 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
11811 'self' argument.
11812 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
11813 'self' argument.
11814 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
11815 'self' argument.
11816 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
11817 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
11818 'self' argument.
11819 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
11820 Add 'self' argument.
11821
7bb99c53
TT
118222014-02-19 Tom Tromey <tromey@redhat.com>
11823
11824 * target.h (struct target_ops) <to_insert_watchpoint>: Add
11825 argument.
11826 (target_insert_watchpoint): Add argument.
11827 * target.c (debug_to_insert_watchpoint): Add argument.
11828 (update_current_target): Update.
11829 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
11830 * remote.c (remote_insert_watchpoint): Add 'self' argument.
11831 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
11832 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
11833 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
11834 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
11835 argument.
11836 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
11837 (procfs_insert_hw_watchpoint): Add 'self' argument.
11838 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
11839 argument.
11840 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
11841 argument.
11842 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
11843 argument.
11844 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
11845 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
11846 argument.
11847 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
11848 'self' argument.
11849
11b5219a
TT
118502014-02-19 Tom Tromey <tromey@redhat.com>
11851
11852 * target.h (struct target_ops) <to_remove_watchpoint>: Add
11853 argument.
11854 (target_remove_watchpoint): Add argument.
11855 * target.c (debug_to_remove_watchpoint): Add argument.
11856 (update_current_target): Update.
11857 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
11858 * remote.c (remote_remove_watchpoint): Add 'self' argument.
11859 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
11860 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
11861 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
11862 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
11863 argument.
11864 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
11865 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
11866 argument.
11867 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
11868 argument.
11869 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
11870 argument.
11871 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
11872 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
11873 argument.
11874 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
11875 'self' argument.
11876
a64dc96c
TT
118772014-02-19 Tom Tromey <tromey@redhat.com>
11878
11879 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
11880 argument.
11881 (target_remove_hw_breakpoint): Add argument.
11882 * target.c (debug_to_remove_hw_breakpoint): Add argument.
11883 (update_current_target): Update.
11884 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
11885 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
11886 argument.
11887 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
11888 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
11889 argument.
11890 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
11891 'self' argument.
11892
23a26771
TT
118932014-02-19 Tom Tromey <tromey@redhat.com>
11894
11895 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
11896 argument.
11897 (target_insert_hw_breakpoint): Add argument.
11898 * target.c (debug_to_insert_hw_breakpoint): Add argument.
11899 (update_current_target): Update.
11900 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
11901 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
11902 argument.
11903 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
11904 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
11905 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
11906 argument.
11907 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
11908 'self' argument.
11909
5461485a
TT
119102014-02-19 Tom Tromey <tromey@redhat.com>
11911
11912 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
11913 argument.
11914 (target_can_use_hardware_watchpoint): Add argument.
11915 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
11916 (update_current_target): Update.
11917 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
11918 argument.
11919 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
11920 argument.
11921 * remote.c (remote_check_watch_resources): Add 'self' argument.
11922 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
11923 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
11924 argument.
11925 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
11926 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
11927 argument.
11928 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
11929 argument.
11930 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
11931 argument.
11932 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
11933 argument.
11934 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
11935 argument.
11936 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
11937 argument.
11938 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
11939 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
11940 argument.
11941 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
11942 'self' argument.
11943
f045800c
TT
119442014-02-19 Tom Tromey <tromey@redhat.com>
11945
11946 * target.h (struct target_ops) <to_post_attach>: Add argument.
11947 (target_post_attach): Add argument.
11948 * target.c (debug_to_post_attach): Add argument.
11949 (update_current_target): Update.
11950 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
11951 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
11952 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
11953 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
11954 * inf-child.c (inf_child_post_attach): Add 'self' argument.
11955
de90e03d
TT
119562014-02-19 Tom Tromey <tromey@redhat.com>
11957
11958 * windows-nat.c (windows_close): Add 'self' argument.
11959 * tracepoint.c (tfile_close): Add 'self' argument.
11960 * target.h (struct target_ops) <to_close>: Add argument.
11961 * target.c (target_close): Add argument.
11962 (update_current_target): Update.
11963 * remote.c (remote_close): Add 'self' argument.
11964 * remote-sim.c (gdbsim_close): Add 'self' argument.
11965 * remote-mips.c (mips_close): Add 'self' argument.
11966 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
11967 * record-full.c (record_full_close): Add 'self' argument.
11968 * record-btrace.c (record_btrace_close): Add 'self' argument.
11969 * monitor.h (monitor_close): Add 'self' argument.
11970 * monitor.c (monitor_close): Add 'self' argument.
11971 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
11972 * linux-nat.c (linux_nat_close): Add argument.
11973 * go32-nat.c (go32_close): Add 'self' argument.
11974 * exec.c (exec_close_1): Add 'self' argument.
11975 * ctf.c (ctf_close): Add 'self' argument.
11976 * corelow.c (core_close): Add 'self' argument.
11977 (core_close_cleanup): Update.
11978 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
11979 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
11980
9dd130a0
TT
119812014-02-19 Tom Tromey <tromey@redhat.com>
11982
11983 * remote.c (remote_load): New function.
11984 (init_remote_ops): Use it.
11985
46917d26
TT
119862014-02-19 Tom Tromey <tromey@redhat.com>
11987
11988 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
11989 argument.
11990 * common/linux-btrace.h (linux_supports_btrace): Update.
11991 * remote.c (remote_supports_btrace): Add "self" argument.
11992 * target-delegates.c: Rebuild.
11993 * target.c (target_supports_btrace): Remove.
11994 * target.h (struct target_ops) <to_supports_btrace>: Add
11995 target_ops argument.
11996 (target_supports_btrace): New define.
11997
6b84065d
TT
119982014-02-19 Tom Tromey <tromey@redhat.com>
11999
12000 * record-full.c (record_full_beneath_to_resume_ops)
12001 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
12002 (record_full_beneath_to_wait)
12003 (record_full_beneath_to_store_registers_ops)
12004 (record_full_beneath_to_store_registers)
12005 (record_full_beneath_to_xfer_partial_ops)
12006 (record_full_beneath_to_xfer_partial)
12007 (record_full_beneath_to_insert_breakpoint_ops)
12008 (record_full_beneath_to_insert_breakpoint)
12009 (record_full_beneath_to_remove_breakpoint_ops)
12010 (record_full_beneath_to_remove_breakpoint)
12011 (record_full_beneath_to_stopped_by_watchpoint)
12012 (record_full_beneath_to_stopped_data_address)
12013 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
12014 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
12015 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
12016 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
12017 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
12018 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
12019 (tmp_to_stopped_data_address, tmp_to_async): Remove.
12020 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
12021 (record_full_resume, record_full_wait_1)
12022 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
12023 (record_full_store_registers, record_full_xfer_partial)
12024 (record_full_insert_breakpoint, record_full_remove_breakpoint)
12025 (record_full_async, record_full_core_xfer_partial): Use target
12026 delegation.
12027 * target-delegates.c: Rebuild.
12028 * target.c (current_xfer_partial): Remove.
12029 (update_current_target): Do not INHERIT or de_fault
12030 to_insert_breakpoint, to_remove_breakpoint,
12031 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
12032 to_is_async_p, to_async. Do not set to_xfer_partial field.
12033 (default_xfer_partial): Simplify.
12034 (current_xfer_partial): Remove.
12035 (target_wait, target_resume): Simplify.
12036 (find_default_can_async_p, find_default_is_async_p): Update.
12037 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
12038 to_xfer_partial, to_stopped_by_watchpoint,
12039 to_stopped_data_address.
12040 (target_store_registers): Simplify.
12041 (forward_target_remove_breakpoint)
12042 (forward_target_insert_breakpoint): Remove.
12043 (target_remove_breakpoint, target_insert_breakpoint)
12044 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
12045 * target.h (struct target_ops) <to_resume, to_wait,
12046 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
12047 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
12048 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
12049 markup.
12050 (forward_target_remove_breakpoint)
12051 (forward_target_insert_breakpoint): Remove.
12052 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
12053 directly.
12054 (record_btrace_insert_breakpoint): Delegate directly.
12055
1101cb7b
TT
120562014-02-19 Tom Tromey <tromey@redhat.com>
12057
12058 PR build/7701:
12059 * target-delegates.c: New file.
12060 * target.c: Include target-delegates.c.
12061 (init_dummy_target): Call install_dummy_methods.
12062 (complete_target_initialization): Call install_delegators.
12063 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
12064 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
12065 * make-target-delegates: New file.
12066
8b06beed
TT
120672014-02-19 Tom Tromey <tromey@redhat.com>
12068
12069 * record.c (find_record_target): Use find_target_at.
12070 * target.c (find_target_at): New function.
12071 * target.h (find_target_at): Declare.
12072
6a109b6b
TT
120732014-02-19 Tom Tromey <tromey@redhat.com>
12074
12075 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
12076 Add 'ops' argument.
12077 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
12078 'ops' argument.
12079 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
12080 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
12081 'ops' argument.
12082 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
12083 argument.
12084 * linux-nat.c (save_sigtrap): Update.
12085 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
12086 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
12087 (linux_nat_close): Update.
12088 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
12089 argument.
12090 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
12091 argument.
12092 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
12093 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
12094 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
12095 (tmp_to_async): Add 'ops' argument.
12096 (record_full_stopped_by_watchpoint, record_full_async)
12097 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
12098 argument.
12099 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
12100 (m32r_stopped_by_watchpoint): Add 'ops' argument.
12101 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
12102 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
12103 (remote_is_async_p, remote_async): Add 'ops' argument.
12104 (remote_stopped_data_address): Update.
12105 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
12106 * target.c (update_current_target)
12107 (find_default_can_async_p, find_default_is_async_p): Update.
12108 (init_dummy_target): Update.
12109 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
12110 * target.h (struct target_ops) <to_stopped_by_watchpoint,
12111 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
12112 (target_can_async_p, target_is_async_p, target_async)
12113 (target_stopped_by_watchpoint): Update.
12114
e095146b
YQ
121152014-02-19 Yao Qi <yao@codesourcery.com>
12116
12117 PR gdb/16220
12118 * gdbarch.sh: Remove startup_gdbarch.
12119 * gdbarch.c: Regenerated.
12120 * gdbarch.h: Likewise.
12121
bc3c6b36
KB
121222014-02-17 Kevin Buettner <kevinb@redhat.com>
12123
12124 * rl78-tdep.c (rl78_g10_register_name): New function.
12125 (rl78_return_value): Add g10 support.
12126 (rl78_gdbarch_init): Register rl78_g10_register_name for the
12127 g10.
12128
98dc0167 121292014-02-17 Doug Evans <xdje42@gmail.com>
f01c1940
DE
12130
12131 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
12132 (SUBDIR_GUILE_SRCS): Ditto.
12133 (scm-gsmob.o): Ditto.
12134
842c05cd
YQ
121352014-02-17 Yao Qi <yao@codesourcery.com>
12136
12137 * gnu-nat.c (ILL_RPC): Declare defined function.
12138
25c0bd04
YQ
121392014-02-17 Yao Qi <yao@codesourcery.com>
12140
12141 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
12142 mach_msg_type_number_t.
12143 (gnu_write_inferior): Likewise.
12144
a9a758e3
YQ
121452014-02-17 Yao Qi <yao@codesourcery.com>
12146
12147 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
12148 in format string.
12149 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
12150 (inf_validate_procs, inf_signal): Likewise.
12151 (S_exception_raise_request): Likewise.
12152 (do_mach_notify_dead_name): Likewise.
12153 (steal_exc_port): Likewise.
12154 (gnu_read_inferior): Change 'copy_count''s type to
12155 mach_msg_type_number_t.
12156 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
12157 format string.
12158
bae8023e
TS
121592014-02-16 Thomas Schwinge <thomas@codesourcery.com>
12160
c82f56d9
TS
12161 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
12162 flag. Adjust all users; in particular...
12163 (gnu_wait): ..., don't decrement its value in here...
12164 (gnu_create_inferior): ..., and instead set the flag in here,
12165 around the startup_inferior call, and call that one with
12166 START_INFERIOR_TRAPS_EXPECTED.
12167
3398af6a
TS
12168 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
12169 (ILL_RPC): ... new macro.
12170 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
12171 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
12172 (do_mach_notify_send_once, S_proc_setmsgport_reply)
12173 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
12174 functions with ILL_RPC macro.
12175 (S_proc_pid2task_reply, S_proc_task2pid_reply)
12176 (S_proc_task2proc_reply, S_proc_proc2task_reply)
12177 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
12178 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
12179 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
12180 (S_proc_getlogin_reply, S_proc_getsid_reply)
12181 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
12182 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
12183 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
12184 (S_proc_getnports_reply, S_proc_is_important_reply)
12185 (S_proc_get_code_reply): New stub functions, generated with
12186 ILL_RPC macro.
12187
d47642c9
TS
12188 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
12189 collected the type check structures.
12190
bae8023e
TS
12191 * reply_mig_hack.awk: Don't expect to see the auto keyword.
12192
8a55ffb0
DE
121932014-02-14 Doug Evans <dje@google.com>
12194
12195 * target.c (target_write_partial): Fix result type.
12196
c2853f3d
JM
121972014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
12198
12199 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
12200 the proper offsets to access fpregset_t.
12201
ac61d2db
SA
122022014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
12203
12204 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
12205 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
12206 * h8300-tdep.c (setmachinelist): Remove global.
12207 * hppa-tdep.c (hppa_sigtramp): Remove global.
12208 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
12209 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
12210 * ravenscar-thread.c (update_target_observer): Remove global.
12211 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
12212
9d2d0b8b
TT
122132014-02-12 Tom Tromey <tromey@redhat.com>
12214
12215 * common/rsp-low.c: Update comments.
12216 * common/rsp-low.h: Update comments.
12217
a7191e8b
TT
122182014-02-12 Tom Tromey <tromey@redhat.com>
12219
12220 * common/rsp-low.c (convert_ascii_to_int): Remove.
12221 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
12222
ff0e980e
TT
122232014-02-12 Tom Tromey <tromey@redhat.com>
12224
12225 * common/rsp-low.h (unhexify): Don't declare.
12226 * common/rsp-low.c (unhexify): Remove.
12227
e9371aff
TT
122282014-02-12 Tom Tromey <tromey@redhat.com>
12229
12230 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
12231 * common/rsp-low.c (convert_int_to_ascii): Remove.
12232
971dc0b8
TT
122332014-02-12 Tom Tromey <tromey@redhat.com>
12234
12235 * common/rsp-low.h (hexify): Don't declare.
12236 * common/rsp-low.c (hexify): Remove.
12237
0a822afb
TT
122382014-02-12 Tom Tromey <tromey@redhat.com>
12239
12240 * common/rsp-low.c (hexify): Never take strlen of argument.
12241
9f1b45b0
TT
122422014-02-12 Tom Tromey <tromey@redhat.com>
12243
12244 * common/rsp-low.c (bin2hex): Never take strlen of argument.
12245 * remote.c (extended_remote_run, remote_rcmd)
12246 (remote_download_trace_state_variable, remote_save_trace_data)
12247 (remote_set_trace_notes): Update.
12248 * tracepoint.c (encode_source_string, tfile_write_status)
12249 (tfile_write_uploaded_tsv): Update.
12250
9c3d6531
TT
122512014-02-12 Tom Tromey <tromey@redhat.com>
12252
12253 * tracepoint.c: Include rsp-low.h.
12254 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
12255 * remote.c: Include rsp-low.h.
12256 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
12257 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
12258 (remote_unescape_input): Move to common/rsp-low.c.
12259 * common/rsp-low.h: New file.
12260 * common/rsp-low.c: New file.
12261 * Makefile.in (SFILES): Add common/rsp-low.c.
12262 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
12263 (COMMON_OBS): Add rsp-low.o.
12264 (rsp-low.o): New target.
12265
01fd3ea5
TT
122662014-02-12 Tom Tromey <tromey@redhat.com>
12267
12268 * utils.h: Include print-utils.h.
12269 (host_address_to_string, plongest, pulongest, phex, phex_nz)
12270 (int_string, core_addr_to_string, core_addr_to_string_nz)
12271 (hex_string, hex_string_custom): Don't declare.
12272 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
12273 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
12274 (hex_string_custom, int_string, core_addr_to_string)
12275 (core_addr_to_string_nz, host_address_to_string): Move to
12276 common/print-utils.c.
12277 * common/print-utils.h: New file.
12278 * common/print-utils.c: New file
12279 * Makefile.in (SFILES): Add common/print-utils.c.
12280 (HFILES_NO_SRCDIR): Add common/print-utils.h.
12281 (COMMON_OBS): Add print-utils.o.
12282 (print-utils.o): New target.
12283
9fb50108
TT
122842014-02-12 Tom Tromey <tromey@redhat.com>
12285
12286 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
12287
0548b5db
MK
122882014-02-12 Mark Kettenis <kettenis@gnu.org>
12289
12290 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
12291
493443a4
MK
122922014-02-12 Mark Kettenis <kettenis@gnu.org>
12293
12294 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
12295 if a PT_IO ptrace request returns sucessfully but indicates that 0
12296 bytes were transferred.
12297
706d0883
PA
122982014-02-12 Pedro Alves <palves@redhat.com>
12299 Kevin Buettner <kevinb@redhat.com>
12300
12301 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
12302 TYPE_INSTANCE_FLAG_CODE_SPACE.
12303
5caa2f0b
PA
123042014-02-12 Pedro Alves <palves@redhat.com>
12305
12306 * h8300-tdep.c (pseudo_from_raw_register)
12307 (raw_from_pseudo_register): New functions.
12308 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
12309 them.
12310
76fd5f74
PA
123112014-02-12 Pedro Alves <palves@redhat.com>
12312
12313 * h8300-tdep.c (h8300_register_sim_regno): New function.
12314 (h8300_gdbarch_init): Install h8300_register_sim_regno as
12315 gdbarch_register_sim_regno hook.
12316
8f008406
SA
123172014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
12318
12319 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
12320
195abc10
SA
123212014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
12322
12323 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
12324
93ffa5b9
MK
123252014-02-12 Mark Kettenis <kettenis@gnu.org>
12326
12327 * obsd-tdep.h (obsd_init_abi): New prototype.
12328 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
12329 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
12330 (obsd_init_abi): New functions.
12331 * i386obsd-tdep.c: Include "obsd-tdep.h".
12332 (i386obsd_init_abi): Call obsd_init_abi.
12333 * amd64obsd-tdep.c: Include "obsd-tdep.h".
12334 (amd64obsd_init_abi): Call obsd_init_abi.
12335 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
12336 obsd-tdep.c to gdb_target_obs.
12337
49caec94
JM
123382014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
12339
12340 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
12341 double float arguments to 16-byte in the argument slots.
12342
e1402065
DE
123432014-02-11 Doug Evans <xdje42@gmail.com>
12344
12345 * configure.ac: Don't crash if pkg-config is not found and guile
12346 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
12347 in guile checks.
12348 * configure: Regenerate.
12349
edcc890f
YQ
123502014-02-11 Yao Qi <yao@codesourcery.com>
12351
12352 * aix-thread.c (aix_thread_xfer_partial): Update comments.
12353 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
12354 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
12355 * gnu-nat.c (gnu_xfer_memory): Likewise.
12356 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
12357 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12358 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12359 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12360
9b409511
YQ
123612014-02-11 Yao Qi <yao@codesourcery.com>
12362
12363 * target.h (enum target_xfer_error): Rename to ...
12364 (enum target_xfer_status): ... it. New. All users updated.
12365 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
12366 New.
12367 (TARGET_XFER_STATUS_ERROR_P): New macro.
12368 (target_xfer_error_to_string): Remove declaration.
12369 (target_xfer_status_to_string): Declare.
12370 (target_xfer_partial_ftype): Adjust it.
12371 (struct target_ops) <to_xfer_partial>: Return
12372 target_xfer_status. Add argument xfered_len. Update
12373 comments.
12374 * target.c (target_xfer_error_to_string): Rename to ...
12375 (target_xfer_status_to_string): ... it. New. All callers
12376 updated.
12377 (target_read_live_memory): Likewise. Call target_xfer_partial
12378 instead of target_read.
12379 (memory_xfer_live_readonly_partial): Return
12380 target_xfer_status. Add argument xfered_len.
12381 (raw_memory_xfer_partial): Likewise.
12382 (memory_xfer_partial_1): Likewise.
12383 (memory_xfer_partial): Likewise.
12384 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
12385 properly. Update debug message.
12386 (default_xfer_partial, current_xfer_partial): Likewise.
12387 (target_write_partial): Likewise.
12388 (target_read_partial): Likewise. All callers updated.
12389 (read_whatever_is_readable): Likewise.
12390 (target_write_with_progress): Likewise.
12391 (target_read_alloc_1): Likewise.
12392
12393 * aix-thread.c (aix_thread_xfer_partial): Likewise.
12394 * auxv.c (procfs_xfer_auxv): Likewise.
12395 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
12396 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12397 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12398 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
12399 * corefile.c (read_memory): Adjust.
12400 * corelow.c (core_xfer_partial): Likewise.
12401 * ctf.c (ctf_xfer_partial): Likewise.
12402 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
12403 updated.
12404 (darwin_xfer_partial): Likewise.
12405 * exec.c (section_table_xfer_memory_partial): Likewise. All
12406 callers updated.
12407 (exec_xfer_partial): Likewise.
12408 * exec.h (section_table_xfer_memory_partial): Update
12409 declaration.
12410 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
12411 negative.
12412 (gnu_xfer_partial): Likewise.
12413 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
12414 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
12415 (ia64_hpux_xfer_solib_got): Likewise.
12416 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
12417 type of 'partial_len' to ULONGEST.
12418 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
12419 * linux-nat.c (linux_xfer_siginfo ): Likewise.
12420 (linux_nat_xfer_partial): Likewise.
12421 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
12422 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
12423 * monitor.c (monitor_xfer_memory): Likewise.
12424 (monitor_xfer_partial): Likewise.
12425 * procfs.c (procfs_xfer_partial): Likewise.
12426 * record-btrace.c (record_btrace_xfer_partial): Likewise.
12427 * record-full.c (record_full_xfer_partial): Likewise.
12428 (record_full_core_xfer_partial): Likewise.
12429 * remote-sim.c (gdbsim_xfer_memory): Likewise.
12430 (gdbsim_xfer_partial): Likewise.
12431 * remote.c (remote_write_bytes_aux): Likewise. All callers
12432 updated.
12433 (remote_write_bytes, remote_read_bytes): Likewise. All
12434 callers updated.
12435 (remote_flash_erase): Likewise. All callers updated.
12436 (remote_write_qxfer): Likewise. All callers updated.
12437 (remote_read_qxfer): Likewise. All callers updated.
12438 (remote_xfer_partial): Likewise.
12439 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12440 (rs6000_xfer_shared_libraries): Likewise.
12441 * sol-thread.c (sol_thread_xfer_partial): Likewise.
12442 (sol_thread_xfer_partial): Likewise.
12443 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12444 (sparc_xfer_partial): Likewise.
12445 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
12446 updated.
12447 (spu_xfer_partial): Likewise.
12448 * spu-multiarch.c (spu_xfer_partial): Likewise.
12449 * tracepoint.c (tfile_xfer_partial): Likewise.
12450 * windows-nat.c (windows_xfer_memory): Likewise.
12451 (windows_xfer_shared_libraries): Likewise.
12452 (windows_xfer_partial): Likewise.
12453 * valprint.c: Replace 'target_xfer_error' with
12454 'target_xfer_status' in comments.
12455
a8e63083
JB
124562014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
12457
12458 Checked in by Joel Brobecker <brobecker@adacore.com>.
12459 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
12460
e86b67d3
JB
124612014-02-11 Joel Brobecker <brobecker@adacore.com>
12462
12463 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
12464 function parameters.
12465
4b7d1f7f
WN
124662014-02-10 Will Newton <will.newton@linaro.org>
12467
12468 * elfread.c (elf_rel_plt_read): Look for a .got section if
12469 looking up .got.plt fails.
12470 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
12471 on address passed to elf_gnu_ifunc_record_cache.
12472 (elf_gnu_ifunc_resolve_addr): Likewise.
12473 (elf_gnu_ifunc_resolver_return_stop): Likewise.
12474
961842b2
JM
124752014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
12476
12477 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
12478 (X_RETTURN): New macro.
12479 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
12480
12481 * sparc64-tdep.c (sparc64_init_abi): Hook
12482 sparc_in_function_epilogue_p.
12483
3f03e7b1
GB
124842014-02-10 Gary Benson <gbenson@redhat.com>
12485
12486 * symfile-debug.c (debug_qf_expand_symtabs_matching):
12487 Rename name_matcher to symbol_matcher.
12488
96f861ef
GB
124892014-02-10 Gary Benson <gbenson@redhat.com>
12490
12491 * symfile-debug.c (debug_qf_expand_symtabs_matching):
12492 Use expand_symtabs_file_matcher_ftype and
12493 expand_symtabs_symbol_matcher_ftype.
12494
ee01b665
JB
124952014-02-10 Joel Brobecker <brobecker@adacore.com>
12496
12497 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
12498 (struct ada_symbol_cache): New.
12499 (ada_free_symbol_cache): Forward declare.
12500 (struct ada_pspace_data): New.
12501 (ada_pspace_data_handle): New static global.
12502 (get_ada_pspace_data, ada_pspace_data_cleanup)
12503 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
12504 (cache_space, cache): Delete, now folded inside struct
12505 ada_pspace_data.
12506 (ada_get_symbol_cache): New function.
12507 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
12508 implementation.
12509 (_initialize_ada_language): Remove initialization of cache_space.
12510 Move call to observer_attach_inferior_exit up, grouping it
12511 with the other observer registrations inside this function.
12512 Rename command to be more general. Add call to
12513 register_program_space_data_with_cleanup.
12514
143adbbf
JB
125152014-02-10 Joel Brobecker <brobecker@adacore.com>
12516
12517 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
12518 ada_new_objfile_observer.
12519 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
12520 (_initialize_tasks): Update uses of ada_new_objfile_observer
12521 and ada_tasks_normal_stop_observer.
12522
aa4fb036
JB
125232014-02-10 Joel Brobecker <brobecker@adacore.com>
12524
12525 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
12526 returned by the 'Length attribute to integer.
12527
9dee8cc6
JB
125282014-02-10 Joel Brobecker <brobecker@adacore.com>
12529
12530 * ada-lang.c (_initialize_ada_language): Initialize
12531 cache_space obstack.
12532
3d9434b5
JB
125332014-02-10 Joel Brobecker <brobecker@adacore.com>
12534
12535 * ada-lang.c (HASH_SIZE): New macro.
12536 (struct cache_entry): New type.
12537 (cache_space, cache): New static globals.
12538 (ada_clear_symbol_cache, find_entry): New functions.
12539 (lookup_cached_symbol, cache_symbol): Implement.
12540 (ada_new_objfile_observer, ada_free_objfile_observer): New.
12541 (_initialize_ada_language): Attach ada_new_objfile_observer
12542 and ada_free_objfile_observer.
12543
f0c5f9b2
JB
125442014-02-10 Joel Brobecker <brobecker@adacore.com>
12545
12546 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
12547 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
12548 struct block * parameter.
12549 (ada_lookup_symbol_list_worker): Constify local variable "block".
12550 Remove cast which is no longer necessary.
12551
ed3ef339
DE
125522014-02-10 Doug Evans <xdje42@gmail.com>
12553
12554 Add Guile as an extension language.
12555 * NEWS: Mention Guile scripting.
12556 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
12557 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
12558 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
12559 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
12560 (CLIBS): Add GUILE_LIBS.
12561 (install-guile): New rule.
12562 (guile.o): New rule.
12563 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
12564 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
12565 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
12566 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
12567 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
12568 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
12569 (scm-type.o, scm-utils.o, scm-value.o): New rules.
12570 * configure.ac: New option --with-guile.
12571 * configure: Regenerate.
12572 * config.in: Regenerate.
12573 * auto-load.c: Remove #include "python/python.h". Add #include
12574 "gdb/section-scripts.h".
12575 (source_section_scripts): Handle Guile scripts.
12576 (_initialize_auto_load): Add name of Guile objfile script to
12577 scripts-directory help text.
12578 * breakpoint.c (condition_command): Tweak comment to include Scheme.
12579 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
12580 (struct breakpoint): New member scm_bp_object.
12581 * defs.h (enum command_control_type): New value guile_control.
12582 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
12583 "extension.h".
12584 (show_user): Update comment.
12585 (_initialize_cli_cmds): Update help text for "show user". Update help
12586 text for max-user-call-depth.
12587 * cli/cli-script.c: Remove #include "python/python.h". Add #include
12588 "extension.h".
12589 (multi_line_command_p): Add guile_control.
12590 (print_command_lines): Handle guile_control.
12591 (execute_control_command, recurse_read_control_structure): Ditto.
12592 (process_next_line): Recognize "guile" commands.
12593 * disasm.c (gdb_disassemble_info): Make non-static.
12594 * disasm.h: #include "dis-asm.h".
12595 (struct gdbarch): Add forward decl.
12596 (gdb_disassemble_info): Declare.
12597 * extension.c: #include "guile/guile.h".
12598 (extension_languages): Add guile.
12599 (get_ext_lang_defn): Handle EXT_LANG_GDB.
12600 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
12601 * gdbtypes.c (get_unsigned_type_max): New function.
12602 (get_signed_type_minmax): New function.
12603 * gdbtypes.h (get_unsigned_type_max): Declare.
12604 (get_signed_type_minmax): Declare.
12605 * guile/README: New file.
12606 * guile/guile-internal.h: New file.
12607 * guile/guile.c: New file.
12608 * guile/guile.h: New file.
12609 * guile/scm-arch.c: New file.
12610 * guile/scm-auto-load.c: New file.
12611 * guile/scm-block.c: New file.
12612 * guile/scm-breakpoint.c: New file.
12613 * guile/scm-disasm.c: New file.
12614 * guile/scm-exception.c: New file.
12615 * guile/scm-frame.c: New file.
12616 * guile/scm-gsmob.c: New file.
12617 * guile/scm-iterator.c: New file.
12618 * guile/scm-lazy-string.c: New file.
12619 * guile/scm-math.c: New file.
12620 * guile/scm-objfile.c: New file.
12621 * guile/scm-ports.c: New file.
12622 * guile/scm-pretty-print.c: New file.
12623 * guile/scm-safe-call.c: New file.
12624 * guile/scm-string.c: New file.
12625 * guile/scm-symbol.c: New file.
12626 * guile/scm-symtab.c: New file.
12627 * guile/scm-type.c: New file.
12628 * guile/scm-utils.c: New file.
12629 * guile/scm-value.c: New file.
12630 * guile/lib/gdb.scm: New file.
12631 * guile/lib/gdb/boot.scm: New file.
12632 * guile/lib/gdb/experimental.scm: New file.
12633 * guile/lib/gdb/init.scm: New file.
12634 * guile/lib/gdb/iterator.scm: New file.
12635 * guile/lib/gdb/printing.scm: New file.
12636 * guile/lib/gdb/types.scm: New file.
12637 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
12638 (VPATH): Add $(GUILE_SRCDIR).
12639 (GUILE_DIR): New variable.
12640 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
12641 (all): Add stamp-guile dependency.
12642 (stamp-guile): New rule.
12643 (clean-guile, install-guile, uninstall-guile): New rules.
12644 (install-only): Add install-guile dependency.
12645 (uninstall): Add uninstall-guile dependency.
12646 (clean): Add clean-guile dependency.
12647
ac020ec5
DE
126482014-02-09 Doug Evans <xdje42@gmail.com>
12649
12650 Revert this patch (which I approved, mea culpa).
12651
12652 2014-02-08 Mark Kettenis <kettenis@gnu.org>
12653
12654 * Makefile.in (all-lib): Remove.
12655 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12656
2a081c59
JK
126572014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
12658
12659 Fix Python stack corruption.
12660 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
12661 gdb_py_longest.
12662
0a6bd22d
MK
126632014-02-08 Mark Kettenis <kettenis@gnu.org>
12664
12665 * Makefile.in (all-lib): Remove.
12666 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12667
1a860409
DE
126682014-02-07 Doug Evans <dje@google.com>
12669
12670 * extension-priv.h (extension_language_script_ops): Add comment.
12671 (extension_language_ops): Add comment.
caf5a491 12672 (active_ext_lang_state): Fix typo in comment.
1a860409 12673
d137e6dc
PA
126742014-02-07 Pedro Alves <palves@redhat.com>
12675
0dcb32c3 12676 PR breakpoints/16292
d137e6dc
PA
12677 * infrun.c (handle_signal_stop) <signal arrives while stepping
12678 over a breakpoint>: Switch back to the stepping thread.
12679
ce6d0892
YQ
126802014-02-07 Yao Qi <yao@codesourcery.com>
12681
12682 * target.c (target_xfer_partial): Return zero if LEN is zero.
12683
2ed4b548
YQ
126842014-02-07 Yao Qi <yao@codesourcery.com>
12685
12686 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
12687 (ld_so_xfer_auxv): Likewise.
12688 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12689 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12690 * corelow.c (core_xfer_partial): Likewise.
12691 * ctf.c (ctf_xfer_partial): Likewise.
12692 * darwin-nat.c (darwin_read_dyld_info): Likewise.
12693 (darwin_xfer_partial): Likewise.
12694 * exec.c (exec_xfer_partial): Likewise.
12695 * gnu-nat.c (gnu_xfer_partial): Likewise.
12696 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
12697 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
12698 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
12699 * linux-nat.c (linux_xfer_siginfo): Likewise.
12700 (linux_proc_xfer_spu): Likewise.
12701 * procfs.c (procfs_xfer_partial): Likewise.
12702 * record-full.c (record_full_xfer_partial): Likewise.
12703 (record_full_core_xfer_partial): Likewise.
12704 * remote-sim.c (gdbsim_xfer_partial): Likewise.
12705 * remote.c (remote_write_qxfer): Likewise.
12706 (remote_write_qxfer, remote_read_qxfer): Likewise.
12707 (remote_xfer_partial): Likewise.
12708 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12709 (rs6000_xfer_shared_libraries): Likewise.
12710 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12711 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12712 (spu_xfer_partial): Likewise.
12713 * target.c (memory_xfer_partial_1): Likewise.
12714 * tracepoint.c (tfile_xfer_partial): Likewise.
12715 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
12716 (windows_xfer_partial): Likewise.
12717
c09f20e4
YQ
127182014-02-07 Yao Qi <yao@codesourcery.com>
12719
12720 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
12721 comments.
12722 (core_xfer_shared_libraries_aix): Likewise.
12723 * gdbarch.c, gdbarch.h: Regenerated.
12724 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
12725 ULONGEST. Change 'len_avail' type to ULONGEST.
12726 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12727 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12728 declaration.
12729 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
12730
8635b3bf
YQ
127312014-02-07 Yao Qi <yao@codesourcery.com>
12732
12733 * corefile.c (memory_error): Get 'exception' from ERR and pass
12734 'exception' to throw_error.
12735
6dddc817
DE
127362014-02-06 Doug Evans <xdje42@gmail.com>
12737
12738 * configure.ac (libpython checking): Remove all but python.o from
12739 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
12740 * configure: Regenerate.
12741
12742 * Makefile.in (SFILES): Add extension.c.
12743 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
12744 (COMMON_OBS): Add extension.o.
12745 * extension.h: New file.
12746 * extension-priv.h: New file.
12747 * extension.c: New file.
12748
12749 * python/python-internal.h: #include "extension.h".
12750 (gdbpy_auto_load_enabled): Declare.
12751 (gdbpy_apply_val_pretty_printer): Declare.
12752 (gdbpy_apply_frame_filter): Declare.
12753 (gdbpy_preserve_values): Declare.
12754 (gdbpy_breakpoint_cond_says_stop): Declare.
12755 (gdbpy_breakpoint_has_cond): Declare.
12756 (void source_python_script_for_objfile): Delete.
12757 * python/python.c: #include "extension-priv.h".
12758 Delete inclusion of "observer.h".
12759 (extension_language_python): Moved here and renamed from
12760 script_language_python in py-auto-load.c.
12761 Redefined to be of type extension_language_defn.
12762 (python_extension_script_ops): New global.
12763 (python_extension_ops): New global.
12764 (struct python_env): New member previous_active.
12765 (restore_python_env): Call restore_active_ext_lang.
12766 (ensure_python_env): Call set_active_ext_lang.
12767 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
12768 New arg extlang.
12769 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
12770 New arg extlang.
12771 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
12772 New arg extlang.
12773 (gdbpy_eval_from_control_command): Renamed from
12774 eval_python_from_control_command, made static. New arg extlang.
12775 (gdbpy_source_script) Renamed from source_python_script, made static.
12776 New arg extlang.
12777 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
12778 result to int. New arg extlang.
12779 (gdbpy_source_objfile_script): Renamed from
12780 source_python_script_for_objfile, made static. New arg extlang.
12781 (gdbpy_start_type_printers): Renamed from start_type_printers, made
12782 static. New args extlang, extlang_printers. Change result type to
12783 "void".
12784 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
12785 static. New arg extlang. Rename arg printers to extlang_printers
12786 and change type to ext_lang_type_printers *.
12787 (gdbpy_free_type_printers): Renamed from free_type_printers, made
12788 static. Replace argument arg with extlang, extlang_printers.
12789 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
12790 (!HAVE_PYTHON, source_python_script): Delete.
12791 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
12792 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
12793 (!HAVE_PYTHON, start_type_printers): Delete.
12794 (!HAVE_PYTHON, apply_type_printers): Delete.
12795 (!HAVE_PYTHON, free_type_printers): Delete.
12796 (_initialize_python): Delete call to observer_attach_before_prompt.
12797 (finalize_python): Set/restore active extension language.
12798 (gdbpy_finish_initialization) Renamed from
12799 finish_python_initialization, made static. New arg extlang.
12800 (gdbpy_initialized): New function.
12801 * python/python.h: #include "extension.h". Delete #include
12802 "value.h", "mi/mi-cmds.h".
12803 (extension_language_python): Declare.
12804 (GDBPY_AUTO_FILE_NAME): Delete.
12805 (enum py_bt_status): Moved to extension.h and renamed to
12806 ext_lang_bt_status.
12807 (enum frame_filter_flags): Moved to extension.h.
12808 (enum py_frame_args): Moved to extension.h and renamed to
12809 ext_lang_frame_args.
12810 (finish_python_initialization): Delete.
12811 (eval_python_from_control_command): Delete.
12812 (source_python_script): Delete.
12813 (apply_val_pretty_printer): Delete.
12814 (apply_frame_filter): Delete.
12815 (preserve_python_values): Delete.
12816 (gdbpy_script_language_defn): Delete.
12817 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
12818 (start_type_printers, apply_type_printers, free_type_printers): Delete.
12819
12820 * auto-load.c: #include "extension.h".
12821 (GDB_AUTO_FILE_NAME): Delete.
12822 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
12823 (script_language_gdb): Delete, moved to extension.c and renamed to
12824 extension_language_gdb.
12825 (source_gdb_script_for_objfile): Delete.
12826 (auto_load_pspace_info): New member unsupported_script_warning_printed.
12827 (loaded_script): Change type of language member to
12828 struct extension_language_defn *.
12829 (init_loaded_scripts_info): Initialize
12830 unsupported_script_warning_printed.
12831 (maybe_add_script): Make static. Change type of language arg to
12832 struct extension_language_defn *.
12833 (clear_section_scripts): Reset unsupported_script_warning_printed.
12834 (auto_load_objfile_script_1): Rewrite to use extension language API.
12835 (auto_load_objfile_script): Make public. Remove support-compiled-in
12836 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
12837 (source_section_scripts): Rewrite to use extension language API.
12838 (load_auto_scripts_for_objfile): Rewrite to use
12839 auto_load_scripts_for_objfile.
12840 (collect_matching_scripts_data): Change type of language member to
12841 struct extension_language_defn *.
12842 (auto_load_info_scripts): Change type of language arg to
12843 struct extension_language_defn *.
12844 (unsupported_script_warning_print): New function.
12845 (script_not_found_warning_print): Make static.
12846 (_initialize_auto_load): Rewrite construction of scripts-directory
12847 help.
12848 * auto-load.h (struct objfile): Add forward decl.
12849 (struct script_language): Delete.
12850 (struct auto_load_pspace_info): Add forward decl.
12851 (struct extension_language_defn): Add forward decl.
12852 (maybe_add_script): Delete.
12853 (auto_load_objfile_script): Declare.
12854 (script_not_found_warning_print): Delete.
12855 (auto_load_info_scripts): Update prototype.
12856 (auto_load_gdb_scripts_enabled): Declare.
12857 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
12858 auto_load_python_scripts_enabled and made public.
12859 (script_language_python): Delete, moved to python.c.
12860 (gdbpy_script_language_defn): Delete.
12861 (info_auto_load_python_scripts): Update to use
12862 extension_language_python.
12863
12864 * breakpoint.c (condition_command): Replace call to
12865 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
12866 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
12867 with call to breakpoint_ext_lang_cond_says_stop.
12868 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
12869 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
12870 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
12871 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
12872 New arg slang.
12873 (local_setattro): Print name of extension language with existing
12874 stop condition.
12875
12876 * valprint.c (val_print, value_print): Update to call
12877 apply_ext_lang_val_pretty_printer.
12878 * cp-valprint.c (cp_print_value): Update call to
12879 apply_ext_lang_val_pretty_printer.
12880 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
12881 (gdbpy_apply_val_pretty_printer): Renamed from
12882 apply_val_pretty_printer. New arg extlang.
12883 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
12884
12885 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
12886 extension language API.
12887 * cli/cli-script.c (execute_control_command): Update to call
12888 eval_ext_lang_from_control_command.
12889
12890 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
12891 enum ext_lang_bt_status values. Update call to
12892 apply_ext_lang_frame_filter.
12893 (mi_cmd_stack_list_locals): Ditto.
12894 (mi_cmd_stack_list_args): Ditto.
12895 (mi_cmd_stack_list_variables): Ditto.
12896 * mi/mi-main.c: Delete #include "python/python-internal.h".
12897 Add #include "extension.h".
12898 (mi_cmd_list_features): Replace reference to python internal variable
12899 gdb_python_initialized with call to ext_lang_initialized_p.
12900
12901 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
12902 Update to use enum ext_lang_frame_args. Update to call
12903 apply_ext_lang_frame_filter.
12904 * python/py-framefilter.c (extract_sym): Update to use enum
12905 ext_lang_bt_status.
12906 (extract_value, py_print_type, py_print_value): Ditto.
12907 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
12908 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
12909 (py_print_frame): Ditto.
12910 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
12911 New arg extlang. Update to use enum ext_lang_bt_status.
12912
12913 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
12914 finish_python_initialization. Replace with call to
12915 finish_ext_lang_initialization.
12916
12917 * typeprint.c (do_free_global_table): Update to call
12918 free_ext_lang_type_printers.
12919 (create_global_typedef_table): Update to call
12920 start_ext_lang_type_printers.
12921 (find_global_typedef): Update to call apply_ext_lang_type_printers.
12922 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
12923 (type_print_options): Change type of global_printers from "void *"
12924 to "struct ext_lang_type_printers *".
12925
12926 * value.c (preserve_values): Update to call preserve_ext_lang_values.
12927 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
12928 (gdbpy_preserve_values): Renamed from preserve_python_values.
12929 New arg extlang.
12930 (!HAVE_PYTHON, preserve_python_values): Delete.
12931
12932 * utils.c (quit_flag): Delete, moved to extension.c.
12933 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
12934 extension.c.
12935
12936 * eval.c: Delete #include "python/python.h".
12937 * main.c: Delete #include "python/python.h".
12938
12939 * defs.h: Update comment.
12940
6af79985
JB
129412014-02-06 Joel Brobecker <brobecker@adacore.com>
12942
12943 GDB 7.7 released.
12944
12c5175d
MK
129452014-02-05 Mark Kettenis <kettenis@gnu.org>
12946
12947 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
12948 defined.
12949
8dc5b319
YQ
129502014-02-05 Yao Qi <yao@codesourcery.com>
12951
12952 * remote.c (remote_pass_signals): Remove local 'buf' and use
12953 rs->buf.
12954 (remote_program_signals): Likewise.
12955
de7b2893
YQ
129562014-02-05 Yao Qi <yao@codesourcery.com>
12957
12958 * ctf.c: Include "inferior.h" and "gdbthread.h".
12959 (CTF_PID): A new macro.
12960 (ctf_open): Call inferior_appeared and add_thread_silent.
12961 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
12962 (ctf_thread_alive): New function.
12963 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
12964
66d032ac
YQ
129652014-02-05 Yao Qi <yao@codesourcery.com>
12966
12967 Revert this patch:
12968
12969 2013-05-24 Yao Qi <yao@codesourcery.com>
12970
12971 * tracepoint.c (TFILE_PID): Remove.
12972 (tfile_open): Don't add thread and inferior.
12973 (tfile_close): Don't set 'inferior_ptid'. Don't call
12974 exit_inferior_silent.
12975 (tfile_thread_alive): Remove.
12976 (init_tfile_ops): Don't set field 'to_thread_alive' of
12977 tfile_ops.
12978
f4ccffad
CE
129792014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
12980
12981 * remote.c (remote_start_remote): Call remote_check_symbols even
12982 if only symbol-file (not file) has been given.
12983
591a12a1
UW
129842014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12985
12986 * gdbarch.sh (skip_entrypoint): New callback.
12987 * gdbarch.c, gdbarch.h: Regenerate.
12988 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
12989 * infrun.c (fill_in_stop_func): Likewise.
12990 * ppc-linux-tdep.c: Include "elf/ppc64.h".
12991 (ppc_elfv2_elf_make_msymbol_special): New function.
12992 (ppc_elfv2_skip_entrypoint): Likewise.
12993 (ppc_linux_init_abi): Install them for ELFv2.
12994
cc0e89c5
UW
129952014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12996
12997 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
12998 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
12999 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
13000 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
13001 structures returned in GPRs.
13002
52f548e4
UW
130032014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13004
13005 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
13006 offset to the stack parameter list for the ELFv2 ABI.
13007
d4094b6a
UW
130082014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13009
13010 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
13011 set_gdbarch_convert_from_func_ptr_addr and
13012 set_gdbarch_elf_make_msymbol_special for ELFv1.
13013 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
13014 function descriptors on ELFv1.
13015 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
13016 set up r12 at function entry.
13017
cd453cd0
UW
130182014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13019
13020 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
13021 (struct gdbarch_tdep): New member elf_abi.
13022
13023 * rs6000-tdep.c: Include "elf/ppc64.h".
13024 (rs6000_gdbarch_init): Detect ELF ABI version.
13025
0ff3e01f
UW
130262014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13027
13028 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
13029 within a register pair holding a DFP 128-bit value on little-endian.
13030 (ppc64_sysv_abi_return_value_base): Likewise.
13031 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
13032 (dfp_pseudo_register_write): Likewise.
13033
5b757e5d
UW
130342014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13035
13036 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
13037 offset on little-endian when passing _Decimal32.
13038 (ppc64_sysv_abi_return_value_base): Likewise for return values.
13039
084ee545
UW
130402014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13041
13042 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
13043 of the overlapped FP register within the VSX register on little-
13044 endian platforms.
13045 (efpr_pseudo_register_write): Likewise.
13046
d63167af
UW
130472014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13048
13049 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
13050 offset on little-endian when passing small structures.
13051
e765b44c
UW
130522014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13053
13054 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
13055 (struct ppc64_sysv_argpos): New data structure.
13056 (ppc64_sysv_abi_push_float): Remove.
13057 (ppc64_sysv_abi_push_val): New function.
13058 (ppc64_sysv_abi_push_integer): Likewise.
13059 (ppc64_sysv_abi_push_freg): Likewise.
13060 (ppc64_sysv_abi_push_vreg): Likewise.
13061 (ppc64_sysv_abi_push_param): Likewise.
13062 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
13063 (ppc64_sysv_abi_return_value_base): New function.
13064 (ppc64_sysv_abi_return_value): Refactor to use it.
13065
36c24d95
UW
130662014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13067
13068 * NEWS: Document new target powerpc64le-*-linux*.
13069
26fd9228
MK
130702014-02-04 Mark Kettenis <kettenis@gnu.org>
13071
13072 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
13073 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
13074 core dumps.
13075 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
13076 register set used in ELF core dumps. Add floating-point register set.
13077
c5bb7362
KB
130782014-02-03 Kevin Buettner <kevinb@redhat.com>
13079
74228e77 13080 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
c5bb7362
KB
13081 dwarf2_to_gdb[] table using symbolic constants. Adjust
13082 penultimate entry from number representing the PC register
13083 to symbolic constant representing the MDR register. Add
13084 constant for the PC register to the end of the table.
13085
af09351e
MK
130862014-02-03 Mark Kettenis <kettenis@gnu.org>
13087
13088 * bsd-kvm.c: Include <sys/param.h>
13089
8507e05d
MK
130902014-02-03 Mark Kettenis <kettenis@gnu.org>
13091
13092 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
13093
ae56bfb8
JB
130942014-01-31 Joel Brobecker <brobecker@adacore.com>
13095
13096 * ada-lang.h (clear_ada_sym_cache): Delete.
13097
718ee4dc
UW
130982014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
13099
13100 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
13101
401e27fd
JM
131022014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
13103
13104 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
13105 the sigreturn register save area only if the syscall is
13106 sigreturn.
13107
a7c88acd
JB
131082014-01-29 Joel Brobecker <brobecker@adacore.com>
13109
13110 * valops.c (value_slice): Minor reformatting.
13111
fa0079ea
UW
131122014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
13113
13114 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
13115
c6044dd1
JB
131162014-01-28 Joel Brobecker <brobecker@adacore.com>
13117
13118 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
13119 New static globals.
13120 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
13121 (ada_ignore_descriptive_types_p): New static global.
13122 (find_parallel_type_by_descriptive_type): Return immediately
13123 if ada_ignore_descriptive_types_p is set.
13124 (_initialize_ada_language): Register new commands "maintenance
13125 set ada", "maintenance show ada", "maintenance set ada
13126 ignore-descriptive-types" and "maintenance show ada
13127 ignore-descriptive-types".
13128 * NEWS: Add entry for new "maint ada set/show
13129 ignore-descriptive-types" commands.
13130
568e808b
MM
131312014-01-27 Markus Metzger <markus.t.metzger@intel.com>
13132
13133 * record-btrace.c (record_btrace_close): Call btrace_teardown
13134 for all threads.
13135
467d141b
JB
131362014-01-27 Joel Brobecker <brobecker@adacore.com>
13137
13138 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
13139 "ui-out.h".
13140
fb151210
JB
131412014-01-27 Joel Brobecker <brobecker@adacore.com>
13142
13143 * ada-typeprint (type_is_full_subrange_of_target_type):
13144 New function.
13145 (print_range): Add parameter bounds_prefered_p. If not set,
13146 try printing range types using the name of their base type.
13147 (print_range_type): Add parameter bounds_prefered_p.
13148 Use it in call to print_range.
13149 (print_array_type, ada_print_type): Update calls to print_range
13150 and print_range_type.
13151
aba02109
JB
131522014-01-27 Joel Brobecker <brobecker@adacore.com>
13153
13154 * ada-typeprint.c (print_array_type, print_choices, print_range)
13155 (print_range_bound, print_dynamic_range_bound, print_range_type):
13156 Remove declaration.
13157
e62e21fd
JB
131582014-01-27 Joel Brobecker <brobecker@adacore.com>
13159
13160 * ada-typeprint.c (print_range): Add missing empty line
13161 after local declaration.
13162
859cf5d1
JB
131632014-01-27 Joel Brobecker <brobecker@adacore.com>
13164
13165 * ada-valprint.c (print_optional_low_bound): Get index_type's
13166 target type for as long as it is a TYPE_CODE_RANGE.
13167
25790f6f
JB
131682014-01-27 Joel Brobecker <brobecker@adacore.com>
13169
13170 * procfs.c (procfs_make_note_section): Remove assertion and
13171 associated comment.
13172
6b6aa828
YQ
131732014-01-24 Yao Qi <yao@codesourcery.com>
13174
13175 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
13176 * corelow.c (get_core_siginfo): Likewise.
13177
5d6df423
YQ
131782014-01-24 Yao Qi <yao@codesourcery.com>
13179
13180 * remote.c (remote_write_bytes_aux): Change type of 'len' to
13181 ULONGEST. Don't check 'len' is negative.
13182 (remote_write_bytes): Change type of 'len' to ULONGEST.
13183
83b645b8
TT
131842014-01-23 Tom Tromey <tromey@redhat.com>
13185
13186 PR python/16485:
13187 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
13188 Handle exception from frame.block.
13189 (FrameVars.fetch_frame_locals): Likewise.
13190
0740f8d8
TT
131912014-01-23 Tom Tromey <tromey@redhat.com>
13192
13193 PR python/16487:
13194 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
13195 on a NULL pointer. Move "goto error" to correct place.
13196
21909fa1
TT
131972014-01-23 Tom Tromey <tromey@redhat.com>
13198
13199 PR python/16491:
13200 * python/py-framefilter.c (apply_frame_filter): Call
13201 ensure_python_env after computing gdbarch.
13202
17fde6d0
YQ
132032014-01-23 Yao Qi <yao@codesourcery.com>
13204
13205 * target.c (raw_memory_xfer_partial): Change argument type
13206 from void * to gdb_byte *.
13207 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
13208
87ce2a04
DE
132092014-01-22 Doug Evans <dje@google.com>
13210
13211 New gdbserver option --debug-format=timestamp.
13212 * NEWS: Mention it.
13213
237b092b
AA
132142014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
13215
13216 * syscalls/s390x-linux.xml: New file.
13217 * syscalls/s390-linux.xml: New file.
13218 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
13219 (XML_SYSCALL_FILENAME_S390X): Likewise.
13220 (op_svc): New enum value for SVC opcode.
13221 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
13222 (s390_linux_get_syscall_number): New function.
13223 (s390_gdbarch_init): Register '*get_syscall_number' and the
13224 syscall xml file name.
13225 * data-directory/Makefile.in (SYSCALLS_FILES): Add
13226 "s390-linux.xml" and "s390x-linux.xml".
13227 * NEWS: Announce new feature.
13228
54bff650
BS
132292014-01-22 Baruch Siach <baruch@tkos.co.il>
13230
13231 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
13232
14e361d7
PA
132332014-01-22 Pedro Alves <palves@redhat.com>
13234
13235 * xtensa-config.c: Include defs.h.
13236
46bbb3ed
JB
132372014-01-22 Joel Brobecker <brobecker@adacore.com>
13238
13239 * common/common-utils.h: Add "ARI:" comment beside __func__
13240 reference.
13241
3a80edfc
JB
132422014-01-22 Joel Brobecker <brobecker@adacore.com>
13243
13244 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
13245 documentation a bit.
13246
4869db5e
RM
132472014-01-21 Roland McGrath <mcgrathr@google.com>
13248
13249 * configure.ac: Call AM_PROG_INSTALL_STRIP.
13250 * configure: Regenerate.
13251 * aclocal.m4: Regenerate.
13252 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
13253 New substituted variables.
13254 (install-strip): New target.
13255 (INSTALL_SCRIPT): New substituted variable.
13256 (FLAGS_TO_PASS): Add it.
13257 (install-only): Use $(INSTALL_SCRIPT) rather than
13258 $(INSTALL_PROGRAM) for gcore.
13259
9ea4267d
TT
132602014-01-20 Tom Tromey <tromey@redhat.com>
13261
13262 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
13263 together.
13264
1f2bdf09
TT
132652014-01-20 Tom Tromey <tromey@redhat.com>
13266
13267 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
13268 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
13269 (deprecated_cmd_warning, complete_on_cmdlist): Update.
13270 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
13271 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
13272 (struct cmd_list_element) <flags>: Remove.
13273 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
13274 doc_allocated>: New fields.
13275 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
13276 bitfields.
13277 * maint.c (maintenance_do_deprecate): Update.
13278 * top.c (execute_command): Update.
13279
e671835b
BS
132802014-01-20 Baruch Siach <baruch@tkos.co.il>
13281
13282 * xtensa-linux-nat.c: Include asm/ptrace.h.
13283
50367cd2
IB
132842014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13285
13286 * Makefile.in (SFILES): Add d-support.c.
13287 (COMMON_OBS): Add d-support.o.
13288 * d-lang.h (d_parse_symbol): Add comment, now defined in
13289 d-support.c.
13290 * d-lang.c (parse_call_convention)
13291 (parse_attributes, parse_function_types)
13292 (parse_function_args, parse_type, parse_identifier)
13293 (call_convention_p, d_parse_symbol): Move functions to ...
13294 * d-support.c: ... New file.
13295
ec9f644a
IB
132962014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13297
13298 * d-lang.h (d_parse_symbol): Add declaration.
13299 * d-lang.c (extract_identifiers)
13300 (extract_type_info): Remove functions.
13301 (parse_call_convention, parse_attributes)
13302 (parse_function_types, parse_function_args)
13303 (parse_type, parse_identifier, call_convention_p)
13304 (d_parse_symbol): New functions.
13305 (d_demangle): Use d_parse_symbol to demangle D symbols.
13306
94b1b47e
IB
133072014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13308
13309 * d-lang.h (struct builtin_d_type): New data type.
13310 (builtin_d_type): Add declaration.
13311 * d-lang.c (d_language_arch_info, build_d_types)
13312 (builtin_d_type): New functions.
13313 (enum d_primitive_types): New data type.
13314 (d_language_defn): Change c_language_arch_info to
13315 d_language_arch_info.
13316 (d_type_data): New static variable.
13317 (_initialize_d_language): Initialize d_type_data.
13318
63778547
IB
133192014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13320
13321 * d-lang.h (d_main_name): Add declaration.
13322 * d-lang.c (d_main_name): New function.
13323 * symtab.c (find_main_name): Add call to d_main_name.
13324
3271ba66
IB
133252014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13326
13327 * d-lang.c (d_language_defn): Change macro_expansion_c to
13328 macro_expansion_no.
13329
d36b3012
IB
133302014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13331
13332 * MAINTAINERS: Add myself as a write-after-approval maintainer.
13333
c90a6fb7
SDJ
133342014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
13335
13336 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
13337 gdb_exception" declaration.
13338 * remote.c (getpkt_or_notif_sane): Likewise.
13339
749234e5
DE
133402014-01-17 Doug Evans <dje@google.com>
13341
13342 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
13343 function, contents of dirnames_to_char_ptr_vec_append moved here.
13344 (delim_string_to_char_ptr_vec): New function.
13345 (dirnames_to_char_ptr_vec_append): Rewrite.
13346 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
13347
df049a58
DE
133482014-01-17 Doug Evans <dje@google.com>
13349
13350 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
13351 and moved here ...
13352 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
13353 #include "common-utils.h".
13354 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
13355 * common/vec.h (VEC_ASSERT_PASS): Update.
13356 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
13357 (MACH_CHECK_ERROR): Update.
13358
69f97648
SM
133592014-01-17 Simon Marchi <simon.marchi@ericsson.com>
13360
13361 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
13362 comments.
13363 * gdbarch.h: Regenerate.
13364
98b1cfdc
TT
133652014-01-16 Tom Tromey <tromey@redhat.com>
13366
13367 * value.c (struct value) <regnum>: Move earlier.
13368
77a19445
TT
133692014-01-16 Tom Tromey <tromey@redhat.com>
13370
13371 * remote.c (extended_remote_create_inferior): Rename from
13372 extended_remote_create_inferior_1. Add "ops" argument. Remove
13373 old implementation.
13374
62261490
PA
133752014-01-16 Pedro Alves <palves@redhat.com>
13376
13377 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
13378 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
13379 the backchain.
13380
4d65956b
DE
133812014-01-16 Doug Evans <dje@google.com>
13382
13383 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
13384
52834460
MM
133852014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13386
13387 * btrace.h (btrace_thread_flag): New.
13388 (struct btrace_thread_info) <flags>: New.
13389 * record-btrace.c (record_btrace_resume_thread)
13390 (record_btrace_find_thread_to_move, btrace_step_no_history)
13391 (btrace_step_stopped, record_btrace_start_replaying)
13392 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
13393 (record_btrace_find_resume_thread): New.
13394 (record_btrace_resume, record_btrace_wait): Extend.
13395 (record_btrace_can_execute_reverse): New.
13396 (record_btrace_open): Fail in non-stop mode.
13397 (record_btrace_set_replay): Split into this, ...
13398 (record_btrace_stop_replaying): ... this, ...
13399 (record_btrace_clear_histories): ... and this.
13400 (init_record_btrace_ops): Init to_can_execute_reverse.
13401 * NEWS: Announce it.
13402
118e6252
MM
134032014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13404
13405 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
13406 (forward_target_decr_pc_after_break)
13407 (target_decr_pc_after_break): New.
13408 * target.c (forward_target_decr_pc_after_break)
13409 (target_decr_pc_after_break): New.
13410 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
13411 instead of gdbarch_decr_pc_after_break.
13412 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
13413 instead of gdbarch_decr_pc_after_break.
13414 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
13415 instead of gdbarch_decr_pc_after_break.
13416 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
13417 instead of gdbarch_decr_pc_after_break.
13418 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
13419 instead of gdbarch_decr_pc_after_break.
13420 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
13421 instead of gdbarch_decr_pc_after_break.
13422
6e07b1d2
MM
134232014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13424
13425 * btrace.c: Include regcache.h.
13426 (btrace_add_pc): New.
13427 (btrace_enable): Call btrace_add_pc.
13428 (btrace_is_empty): New.
13429 * btrace.h (btrace_is_empty): New.
13430 * record-btrace.c (require_btrace, record_btrace_info): Call
13431 btrace_is_empty.
13432
969c39fb
MM
134332014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13434
13435 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
13436 Support delta reads.
13437 (linux_disable_btrace): Change return type.
13438 * common/linux-btrace.h (linux_read_btrace): Change parameters
13439 and return type to allow error reporting. Update users.
13440 (linux_disable_btrace): Change return type. Update users.
13441 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
13442 New.
13443 (btrace_error): New.
13444 (btrace_block) <begin>: Comment on BEGIN == 0.
13445 * btrace.c (btrace_compute_ftrace): Start from the end of
13446 the current trace.
13447 (btrace_stitch_trace, btrace_clear_history): New.
13448 (btrace_fetch): Read delta trace, return if replaying.
13449 (btrace_clear): Move clear history code to btrace_clear_history.
13450 (parse_xml_btrace): Throw an error if parsing failed.
13451 * target.h (struct target_ops) <to_read_btrace>: Change parameters
13452 and return type to allow error reporting.
13453 (target_read_btrace): Change parameters and return type to allow
13454 error reporting.
13455 * target.c (target_read_btrace): Update.
13456 * remote.c (remote_read_btrace): Support delta reads. Pass
13457 errors on.
13458 * NEWS: Announce it.
13459
0b722aec
MM
134602014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13461
13462 * record.h (record_btrace_frame_unwind)
13463 (record_btrace_tailcall_frame_unwind): New declarations.
13464 * dwarf2-frame: Include record.h
13465 (dwarf2_frame_cfa): Throw an error for btrace frames.
13466 * record-btrace.c: Include hashtab.h.
13467 (btrace_get_bfun_name): New.
13468 (btrace_call_history): Call btrace_get_bfun_name.
13469 (struct btrace_frame_cache): New.
13470 (bfcache): New.
13471 (bfcache_hash, bfcache_eq, bfcache_new): New.
13472 (btrace_get_frame_function): New.
13473 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
13474 (record_btrace_frame_this_id): Compute own id.
13475 (record_btrace_frame_prev_register): Provide PC, throw_error
13476 for all other registers.
13477 (record_btrace_frame_sniffer): Detect btrace frames.
13478 (record_btrace_tailcall_frame_sniffer): New.
13479 (record_btrace_frame_dealloc_cache): New.
13480 (record_btrace_frame_unwind): Add new functions.
13481 (record_btrace_tailcall_frame_unwind): New.
13482 (_initialize_record_btrace): Allocate cache.
13483 * btrace.c (btrace_clear): Call reinit_frame_cache.
13484 * NEWS: Announce it.
13485
066ce621
MM
134862014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13487
13488 * record-btrace.c (record_btrace_set_replay)
13489 (record_btrace_goto_begin, record_btrace_goto_end)
13490 (record_btrace_goto): New.
13491 (init_record_btrace_ops): Initialize them.
13492 * NEWS: Announce it.
13493
e2887aa3
MM
134942014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13495
13496 * record-btrace.c (record_btrace_find_new_threads)
13497 (record_btrace_thread_alive): New.
13498 (init_record_btrace_ops): Initialize to_find_new_threads and
13499 to_thread_alive.
13500
b2f4cfde
MM
135012014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13502
13503 * record-btrace.c (record_btrace_resume): New.
13504 (record_btrace_wait): New.
13505 (init_record_btrace_ops): Initialize to_wait and to_resume.
13506
633785ff
MM
135072014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13508
13509 * record-btrace.c (record_btrace_xfer_partial)
13510 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
13511 (record_btrace_allow_memory_access): New.
13512 (init_record_btrace_ops): Initialize new methods.
13513 * target.c (raw_memory_xfer_partial): Bail out if target reports
13514 that this memory is not available.
13515
3db08215
MM
135162014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13517
13518 * target.h (target_ops) <to_insert_breakpoint>
13519 <to_remove_breakpoint>: Add target_ops parameter.
13520 (forward_target_insert_breakpoint): New.
13521 (forward_target_remove_breakpoint): New.
13522 (memory_remove_breakpoint, memory_insert_breakpoint):
13523 Add target_ops parameter.
13524 * target.c (target_insert_breakpoint): Split into this and ...
13525 (forward_target_insert_breakpoint): ... this.
13526 (target_remove_breakpoint): Split into this and ...
13527 (forward_target_remove_breakpoint): ... this.
13528 (debug_to_insert_breakpoint): Add target_ops parameter.
13529 Call forward_target_insert_breakpoint.
13530 (debug_to_remove_breakpoint): Add target_ops parameter.
13531 Call forward_target_remove_breakpoint.
13532 (update_current_target): Do not inherit or default to_insert_breakpoint
13533 and to_remove_breakpoint.
13534 * corelow.c (ignore): Add target_ops parameter.
13535 * exec.c (ignore): Add target_ops parameter.
13536 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
13537 Add target_ops parameter.
13538 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
13539 Add target_ops parameter.
13540 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
13541 Add target_ops parameter.
13542 * record-full.c (record_full_beneath_to_insert_breakpoint)
13543 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
13544 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
13545 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
13546 (record_full_core_remove_breakpoint): Add target_ops parameter.
13547 Update users.
13548 (record_full_beneath_to_insert_breakpoint_ops)
13549 (record_full_beneath_to_remove_breakpoint_ops)
13550 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
13551 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
13552 tmp_to_remove_breakpoint_ops,
13553 record_full_beneath_to_insert_breakpoint_ops, and
13554 record_full_beneath_to_remove_breakpoint_ops.
13555 * remote-m32r-sdi.c (m32r_insert_breakpoint)
13556 (m32r_remove_breakpoint): Add target_ops parameter.
13557 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
13558 Add target_ops parameter.
13559 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
13560 Add target_ops parameter.
13561
cecac1ab
MM
135622014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13563 Markus Metzger <markus.t.metzger@intel.com>
13564
13565 * record-btrace.c: Include frame-unwind.h.
13566 (record_btrace_frame_unwind_stop_reason)
13567 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
13568 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
13569 New.
13570 (init_record_btrace_ops): Install it.
13571
824344ca
MM
135722014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13573
13574 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
13575 get_prev_frame_1.
13576
32261e52
MM
135772014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13578
13579 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
13580 earlier.
13581
ea001bdc
MM
135822014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13583
13584 * frame-unwind.c: Include target.h.
13585 (frame_unwind_try_unwinder): New function with code from ...
13586 (frame_unwind_find_by_frame): ... here. New variable
13587 unwinder_from_target, call also target_get_unwinder)
13588 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
13589 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
13590 * target.h (struct target_ops): New fields to_get_unwinder and
13591 to_get_tailcall_unwinder.
13592 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
13593
1f3ef581
MM
135942014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13595
13596 * record-btrace.c (record_btrace_fetch_registers)
13597 (record_btrace_store_registers)
13598 (record_btrace_to_prepare_to_store): New.
13599 (init_record_btrace_ops): Add the above.
13600
f32dbf8c
MM
136012014-01-16 Tom Tromey <tromey@redhat.com>
13602
13603 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
13604 * target.h (struct target_ops) <to_prepare_to_store>: Add
13605 argument.
13606 (target_prepare_to_store): Add argument.
13607 * target.c (debug_to_prepare_to_store): Add argument.
13608 (update_current_target): Update.
13609 * remote.c (remote_prepare_to_store): Add 'self' argument.
13610 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
13611 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
13612 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
13613 * record-full.c (record_full_core_prepare_to_store): Add 'self'
13614 argument.
13615 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
13616 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
13617 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
13618 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
13619 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
13620
07bbe694
MM
136212014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13622
13623 * btrace.h (replay) <replay>: New.
13624 (btrace_is_replaying): New.
13625 * btrace.c (btrace_clear): Free replay iterator.
13626 (btrace_is_replaying): New.
13627 * record-btrace.c (record_btrace_is_replaying): New.
13628 (record_btrace_info): Print insn number if replaying.
13629 (record_btrace_insn_history): Start at replay position.
13630 (record_btrace_call_history): Start at replay position.
13631 (init_record_btrace_ops): Init to_record_is_replaying.
13632
0688d04e
MM
136332014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13634
13635 * record-btrace.c (record_btrace_insn_history_range): Include
13636 end.
13637 (record_btrace_insn_history_from): Adjust range.
13638 (record_btrace_call_history_range): Include
13639 end.
13640 (record_btrace_call_history_from): Adjust range.
13641 * NEWS: Announce changes.
13642
8710b709
MM
136432014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13644
13645 * record.h (enum record_print_flag)
13646 <record_print_indent_calls>: New.
13647 * record.c (get_call_history_modifiers): Recognize /c modifier.
13648 (_initialize_record): Document /c modifier.
13649 * record-btrace.c (btrace_call_history): Add btinfo parameter.
13650 Reorder fields. Optionally indent the function name. Update
13651 all users.
13652 * NEWS: Announce changes.
13653
d0fa7535
MM
136542014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13655
13656 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
13657
5de9129b
MM
136582014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13659
13660 * btrace.c (ftrace_new_function): Start counting at one.
13661 * record-btrace.c (record_btrace_info): Adjust number of calls
13662 and insns.
13663 * NEWS: Announce it.
13664
7acbe133
MM
136652014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13666
13667 * record-btrace.c (btrace_call_history_insn_range): Print
13668 insn range as [begin, end].
13669
23a7fe75
MM
136702014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13671
13672 * btrace.h (struct btrace_func_link): New.
13673 (enum btrace_function_flag): New.
13674 (struct btrace_inst): Rename to ...
13675 (struct btrace_insn): ...this. Update all users.
13676 (struct btrace_func) <ibegin, iend>: Remove.
13677 (struct btrace_func_link): New.
13678 (struct btrace_func): Rename to ...
13679 (struct btrace_function): ...this. Update all users.
13680 (struct btrace_function) <segment, flow, up, insn, insn_offset)
13681 (number, level, flags>: New.
13682 (struct btrace_insn_iterator): Rename to ...
13683 (struct btrace_insn_history): ...this.
13684 Update all users.
13685 (struct btrace_insn_iterator, btrace_call_iterator): New.
13686 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
13687 (struct btrace_target_info) <begin, end, level>
13688 <insn_history, call_history>: New.
13689 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13690 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13691 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13692 (btrace_call_number, btrace_call_begin, btrace_call_end)
13693 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13694 (btrace_find_function_by_number, btrace_set_insn_history)
13695 (btrace_set_call_history): New.
13696 * btrace.c (btrace_init_insn_iterator)
13697 (btrace_init_func_iterator, compute_itrace): Remove.
13698 (ftrace_print_function_name, ftrace_print_filename)
13699 (ftrace_skip_file): Change
13700 parameter to const.
13701 (ftrace_init_func): Remove.
13702 (ftrace_debug): Use new btrace_function fields.
13703 (ftrace_function_switched): Also consider gaining and
13704 losing symbol information).
13705 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
13706 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
13707 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
13708 New.
13709 (ftrace_new_function): Move. Remove debug print.
13710 (ftrace_update_lines, ftrace_update_insns): New.
13711 (ftrace_update_function): Check for call, ret, and jump.
13712 (compute_ftrace): Renamed to ...
13713 (btrace_compute_ftrace): ...this. Rewritten to compute call
13714 stack.
13715 (btrace_fetch, btrace_clear): Updated.
13716 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13717 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13718 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13719 (btrace_call_number, btrace_call_begin, btrace_call_end)
13720 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13721 (btrace_find_function_by_number, btrace_set_insn_history)
13722 (btrace_set_call_history): New.
13723 * record-btrace.c (require_btrace): Use new btrace thread
13724 info fields.
13725 (record_btrace_info, btrace_insn_history)
13726 (record_btrace_insn_history, record_btrace_insn_history_range):
13727 Use new btrace thread info fields and new iterator.
13728 (btrace_func_history_src_line): Rename to ...
13729 (btrace_call_history_src_line): ...this. Use new btrace
13730 thread info fields.
13731 (btrace_func_history): Rename to ...
13732 (btrace_call_history): ...this. Use new btrace thread info
13733 fields and new iterator.
13734 (record_btrace_call_history, record_btrace_call_history_range):
13735 Use new btrace thread info fields and new iterator.
13736
8372a7cb
MM
137372014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13738
13739 * frame.h (frame_id_build_unavailable_stack_special): New.
13740 * frame.c (frame_id_build_unavailable_stack_special): New.
13741
c2170eef
MM
137422014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13743
13744 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
13745 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
13746 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
13747 to gdbarch.
13748 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
13749 (i386_insn_is_jump, i386_jmp_p): New.
13750 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
13751 insn_is_jump to gdbarch.
13752 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
13753 * gdbarch.h: Regenerated.
13754 * gdbarch.c: Regenerated.
13755 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
13756 (default_insn_is_jump): New.
13757 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
13758 (default_insn_is_jump): New.
13759
864089d2
MM
137602014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13761
13762 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
13763 Change to ...
13764 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
13765 (btrace_read_type) <btrace_read_new>: Change to ...
13766 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
13767
ed9edfb5
MM
137682014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13769
13770 * common/linux-btrace.c (linux_read_btrace): Free trace from
13771 previous iteration.
13772
fbcbc3fd
DE
137732014-01-15 Doug Evans <dje@google.com>
13774
13775 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
13776 uint32_t.
13777
3d548a53
TT
137782014-01-15 Tom Tromey <tromey@redhat.com>
13779
13780 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
13781 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
13782 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
13783 (set_objfile_main_name): New function.
13784 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
13785 language_of_main>: New fields.
13786 (set_objfile_main_name): Declare.
13787 * symtab.c (find_main_name): Loop over objfiles to find the main
13788 name and language.
13789 (set_main_name): Now static.
13790 (get_main_info): Add comment.
13791 * symtab.h (set_main_name): Don't declare.
13792
32ac0d11
TT
137932014-01-15 Tom Tromey <tromey@redhat.com>
13794
13795 * symtab.c (main_progspace_key): New global.
13796 (struct main_info): New.
13797 (name_of_main, language_of_main): Remove.
13798 (get_main_info, main_info_cleanup): New function.
13799 (set_main_name, main_name, main_language): Use get_main_info.
13800 (_initialize_symtab): Initialize main_progspace_key.
13801
9e6c82ad
TT
138022014-01-15 Tom Tromey <tromey@redhat.com>
13803
13804 * dbxread.c (process_one_symbol): Update.
13805 * dwarf2read.c (read_partial_die): Update.
13806 * symfile.c (set_initial_language): Call main_language.
13807 * symtab.c (language_of_main): Now static.
13808 (set_main_name): Add 'lang' parameter.
13809 (find_main_name): Update.
13810 (main_language): New function.
13811 (symtab_observer_executable_changed): Update.
13812 * symtab.h (set_main_name): Update.
13813 (language_of_main): Remove.
13814 (main_language): Declare.
13815
6ef55de7
TT
138162014-01-15 Tom Tromey <tromey@redhat.com>
13817
13818 * symfile.c (init_entry_point_info): Use new "initialized" field.
13819 Update.
13820 * objfiles.h (struct entry_point) <initialized>: New field.
13821 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
13822 (struct objfile) <ei>: ...here. Remove.
13823 * objfiles.c (entry_point_address_query): Update.
13824
53eddfa6
TT
138252014-01-15 Tom Tromey <tromey@redhat.com>
13826
13827 * objfiles.c (entry_point_address_query): Relocate entry point
13828 address.
13829 (objfile_relocate1): Do not relocate entry point address.
13830 * objfiles.h (struct entry_info) <entry_point>: Update comment.
13831 <the_bfd_section_index>: New field.
13832 * symfile.c (init_entry_point_info): Find the entry point's
13833 section.
13834
d56e56aa
TT
138352014-01-15 Tom Tromey <tromey@redhat.com>
13836
13837 * solib-frv.c (enable_break): Use entry_point_address_query.
13838
33a97bbe
OJ
138392014-01-15 Omair Javaid <omair.javaid@linaro.org>
13840
13841 * NEWS: Add note on improved process record-replay on
13842 arm*-linux* targets.
13843
c6ec2b30
OJ
138442014-01-15 Omair Javaid <omair.javaid@linaro.org>
13845
13846 * arm-tdep.c (enum arm_record_result): New enum.
13847 (arm_record_unsupported_insn): New function.
13848 (arm_record_coproc_data_proc): Removed.
13849 (thumb2_record_ld_st_multiple): New function.
13850 (thumb2_record_ld_st_dual_ex_tbb): New function.
13851 (thumb2_record_data_proc_sreg_mimm): New function.
13852 (thumb2_record_ps_dest_generic): New function.
13853 (thumb2_record_branch_misc_cntrl): New function.
13854 (thumb2_record_str_single_data): New function.
13855 (thumb2_record_ld_mem_hints): New function.
13856 (thumb2_record_ld_word): New function.
13857 (thumb2_record_lmul_lmla_div): New function.
13858 (thumb2_record_decode_insn_handler): New function.
13859 (decode_insn): Add thumb32 instruction handlers.
13860
97dfe206
OJ
138612014-01-15 Omair Javaid <omair.javaid@linaro.org>
13862
13863 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
13864 (struct arm_linux_record_tdep): Declare.
13865 (arm_canonicalize_syscall): New function.
13866 (arm_all_but_pc_registers_record): New function.
13867 (arm_linux_syscall_record): New function.
13868 (arm_linux_init_abi): Add syscall recording constructs.
13869 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
13870 decoding. (arm_record_coproc_data_proc): Update arm syscall
13871 decoding.
13872 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
13873 <arm_syscall_record>: New field.
13874 * configure.tgt (arm*-*-linux*): Add linux-record.o to
13875 gdb_target_obs.
13876
9904a494
OJ
138772014-01-15 Omair Javaid <omair.javaid@linaro.org>
13878
13879 * arm-tdep.c (thumb_record_misc): Update to use sp as base
13880 register for push instruction recording.
13881
f969241e
OJ
138822014-01-15 Omair Javaid <omair.javaid@linaro.org>
13883
13884 * arm-tdep.c (thumb_record_misc): Update to correct logical
13885 error while recording ldm, ldmia and pop instructions.
13886
bfbbec00
OJ
138872014-01-15 Omair Javaid <omair.javaid@linaro.org>
13888
13889 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
13890
e40adcc9
PA
138912014-01-15 Pedro Alves <palves@redhat.com>
13892
13893 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
13894 (go32_resume, go32_fetch_registers, store_register)
13895 (go32_store_registers, go32_prepare_to_store)
13896 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
13897 (go32_create_inferior, go32_can_run, go32_terminal_init)
13898 (go32_terminal_inferior, go32_terminal_ours): Delete forward
13899 declarations.
13900
b0a16e66
TT
139012014-01-15 Tom Tromey <tromey@redhat.com>
13902
13903 * target.h (async_callback_ftype): New typedef.
13904 (struct target_ops) <to_async>: Use it.
13905
bf7105a4
JB
139062014-01-15 Joel Brobecker <brobecker@adacore.com>
13907
13908 * python/py-value.c (get_field_type): Remove unnecessary curly
13909 braces for single-statement if block.
13910
a8f35c2e
JB
139112014-01-15 Joel Brobecker <brobecker@adacore.com>
13912
13913 * python/py-type.c (convert_field): Add missing empty line
13914 after declarations.
13915
bb4142cf
DE
139162014-01-14 Doug Evans <dje@google.com>
13917
13918 * symfile.h (expand_symtabs_matching): Renamed from
13919 expand_partial_symbol_names. Update prototype.
13920 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
13921 * symfile.c (expand_symtabs_matching): Renamed from
13922 expand_partial_symbol_names. New args file_matcher, kind.
13923 Rename arg fun to symbol_matcher.
13924 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
13925 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
13926 ada_expand_partial_symbol_name.
13927 (ada_make_symbol_completion_list): Update to call
13928 expand_symtabs_matching.
13929 (ada_add_global_exceptions): Call expand_symtabs_matching.
13930 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
13931 call map_symbol_filenames.
13932 * symtab.c (sources_info): Update to call map_symbol_filenames.
13933 (search_symbols): Call expand_symtabs_matching.
13934 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
13935 (default_make_symbol_completion_list_break_on): Update to call
13936 expand_symtabs_matching.
13937 (make_source_files_completion_list): Update to call
13938 map_symbol_filenames.
13939
206f2a57
DE
139402014-01-14 Doug Evans <dje@google.com>
13941
13942 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
13943 (expand_symtabs_symbol_matcher_ftype): New typedef.
13944 (quick_symbol_functions.expand_symtabs_matching): Update to use.
13945 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13946 * symfile.c (expand_partial_symbol_names): Update to use
13947 expand_symtabs_symbol_matcher_ftype.
13948 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
13949 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13950 Arg name_matcher renamed to symbol_matcher.
13951 * psymtab.c (recursively_search_psymtabs): Update to use
13952 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
13953 sym_matcher.
13954 (expand_symtabs_matching_via_partial): Update to use
13955 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13956 Arg name_matcher renamed to symbol_matcher.
13957
540c2971
DE
139582014-01-14 Doug Evans <dje@google.com>
13959
13960 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
13961 (map_partial_symbol_filenames): Ditto.
13962 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
13963 (map_partial_symbol_filenames): Ditto.
13964 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
13965 (map_partial_symbol_filenames): Ditto.
13966 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
13967 (map_partial_symbol_filenames): Ditto.
13968 * symtab.c: Delete #include "psymtab.h".
13969
8213266a
PA
139702014-01-14 Pedro Alves <palves@redhat.com>
13971 Tom Tromey <tromey@redhat.com>
13972
13973 * infrun.c (use_displaced_stepping): Use find_record_target
13974 instead of RECORD_IS_USED.
13975 (adjust_pc_after_break): Use record_full_is_used instead of
13976 RECORD_IS_USED.
13977 * record-btrace.c (record_btrace_open): Call record_preopen
13978 instead of checking RECORD_IS_USED.
13979 * record-full.c (record_full_shortname)
13980 (record_full_core_shortname): New globals.
13981 (record_full_is_used): New function.
13982 (find_full_open): Call record_preopen instead of checking
13983 RECORD_IS_USED.
13984 (init_record_full_ops): Set the target's shortname to
13985 record_full_shortname.
13986 (init_record_full_core_ops): Set the target's shortname to
13987 record_full_core_shortname.
13988 * record-full.h (record_full_is_used): Declare.
13989 * record.c (find_record_target): Make extern.
13990 (record_preopen): New function.
13991 * record.h (RECORD_IS_USED): Delete macro.
13992 (find_record_target, record_preopen): Declare functions.
13993
7ec1862d
YQ
139942014-01-14 Yao Qi <yao@codesourcery.com>
13995
13996 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
13997 'len''s type to ULONGEST.
13998 (core_xfer_shared_libraries_aix): Likewise.
13999 * gdbarch.c, gdbarch.h: Regenerated.
14000 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
14001 Change type of 'len' to ULONGEST.
14002 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14003 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
14004
dea80a27
YQ
140052014-01-14 Yao Qi <yao@codesourcery.com>
14006
14007 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
14008 type of 'len' to ULONGEST.
14009 (linux_xfer_osdata_processgroups): Likewise.
14010 (linux_xfer_osdata_threads): Likewise.
14011 (linux_xfer_osdata_fds): Likewise.
14012 (linux_xfer_osdata_isockets): Likewise.
14013 (linux_xfer_osdata_shm): Likewise.
14014 (linux_xfer_osdata_sem): Likewise.
14015 (linux_xfer_osdata_msg): Likewise.
14016 (linux_common_xfer_osdata): Likewise.
14017 (struct osdata_type) <getter>: Likewise.
14018 * common/linux-osdata.h (linux_common_xfer_osdata): Update
14019 the declaration.
14020
b55e14c7
YQ
140212014-01-14 Yao Qi <yao@codesourcery.com>
14022
14023 * target.h (target_xfer_partial_ftype): Update.
14024 (struct target_ops) <to_xfer_partial>: Change 'len' type to
14025 ULONGEST.
14026 * aix-thread.c (aix_thread_xfer_partial): Change type of
14027 argument 'len' to ULONGEST.
14028 * auxv.c (procfs_xfer_auxv): Likewise.
14029 (ld_so_xfer_auxv): Likewise.
14030 (memory_xfer_auxv): Likewise.
14031 * bfd-target.c (target_bfd_xfer_partial): Likewise.
14032 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
14033 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
14034 * corelow.c (core_xfer_partial): Likewise.
14035 * ctf.c (ctf_xfer_partial): Likewise.
14036 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
14037 '%u'.
14038 (darwin_read_dyld_info): Likewise.
14039 (darwin_xfer_partial): Likewise.
14040 * exec.c (section_table_xfer_memory_partial): Likewise.
14041 (exec_xfer_partial): Likewise.
14042 * exec.h (section_table_xfer_memory_partial): Update
14043 declaration.
14044 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
14045 instead of plongest.
14046 (gnu_xfer_partial): Likewise.
14047 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
14048 (ia64_hpux_xfer_solib_got): Likewise.
14049 (ia64_hpux_xfer_partial): Likewise.
14050 * ia64-linux-nat.c (ia64_linux_xfer_partial):
14051 * inf-ptrace.c (inf_ptrace_xfer_partial):
14052 * inf-ttrace.c (inf_ttrace_xfer_partial):
14053 * linux-nat.c (linux_xfer_siginfo): Likewise.
14054 (linux_nat_xfer_partial): Likewise.
14055 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
14056 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
14057 * monitor.c (monitor_xfer_memory): Likewise.
14058 (monitor_xfer_partial): Likewise.
14059 * procfs.c (procfs_xfer_partial): Likewise.
14060 * record-full.c (record_full_xfer_partial): Likewise.
14061 (record_full_core_xfer_partial): Likewise.
14062 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
14063 instead of plongest.
14064 (gdbsim_xfer_partial): Likewise.
14065 * remote.c (remote_xfer_partial): Likewise.
14066 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14067 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
14068 declaration.
14069 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14070 (rs6000_xfer_shared_libraries): Likewise.
14071 * sol-thread.c (sol_thread_xfer_partial): Likewise.
14072 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14073 (sparc_xfer_partial): Likewise.
14074 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
14075 (spu_xfer_partial): Likewise.
14076 * spu-multiarch.c (spu_xfer_partial): Likewise.
14077 * target.c (target_read_live_memory): Likewise.
14078 (memory_xfer_live_readonly_partial): Likewise.
14079 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
14080 (target_xfer_partial, default_xfer_partial): Likewise.
14081 (current_xfer_partial): Likewise.
14082 * tracepoint.c (tfile_xfer_partial): Likewise.
14083 * windows-nat.c (windows_xfer_memory): Likewise. Call
14084 pulongest instead of plongest.
14085 (windows_xfer_partial): Likewise.
14086 (windows_xfer_shared_libraries): Likewise.
14087
05804640
YQ
140882014-01-14 Yao Qi <yao@codesourcery.com>
14089
14090 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
14091 target_xfer_partial_ftype.
14092
b5b08fb4
SC
140932014-01-13 Siva Chandra Reddy <sivachandra@google.com>
14094
14095 PR python/15464
14096 PR python/16113
14097 * valops.c (value_struct_elt_bitpos): New function
14098 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
14099 object to 'None' if the field name is an empty string ("").
14100 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
14101 attribute to look for a field when 'name' is 'None'.
14102 (get_field_type): New function
14103
13aaf454
DE
141042014-01-13 Doug Evans <dje@google.com>
14105
14106 PR symtab/16426
14107 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
14108 (try_open_dwop_file): Ditto.
14109 * gdb_bfd.c: #include "vec.h".
14110 (bfdp): New typedef.
14111 (struct gdb_bfd_data): New member included_bfds.
14112 (gdb_bfd_unref): Unref all included bfds.
14113 (gdb_bfd_record_inclusion): New function.
14114 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
14115
c2cec97c
TT
141162014-01-13 Tom Tromey <tromey@redhat.com>
14117
14118 * gdbcore.h (deprecated_core_resize_section_table): Remove.
14119
78e5999d
TT
141202014-01-13 Tom Tromey <tromey@redhat.com>
14121
14122 * defs.h (use_windows): Remove.
14123 * gdb.c (main): Update.
14124 * main.c (captured_main, gdb_main): Update.
14125 * main.h (struct captured_main_args) <use_windows>: Remove.
14126 * top.c (use_windows): Remove.
14127
f2052bbe
TT
141282014-01-13 Tom Tromey <tromey@redhat.com>
14129
14130 * defs.h (deprecated_flush_hook): Remove.
14131
fde4f8ed
JK
141322014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
14133
14134 PR threads/16216
14135 * linux-thread-db.c (try_thread_db_load): Add parameter
14136 check_auto_load_safe. Move here the file_is_auto_load_safe call.
14137 (try_thread_db_load_from_pdir_1): Move it there from here.
14138 (try_thread_db_load_from_sdir): Update caller.
14139 (try_thread_db_load_from_dir): Move it there from here.
14140
bdf61915
PP
141412014-01-13 Patrick Palka <patrick@parcs.ath.cx>
14142
14143 * regformats/regdat.sh: Always rewrite the register file.
14144
f71e1a8d
PA
141452014-01-13 Pedro Alves <palves@redhat.com>
14146
14147 * Makefile.in (CHECK_HEADERS): New variable.
14148 (check-headers:): New rule.
14149
42c85435
TT
141502014-01-13 Tom Tromey <tromey@redhat.com>
14151
14152 * cli/cli-setshow.c (do_set_command): Update.
14153 * defs.h (deprecated_set_hook): Remove.
14154 * top.c (deprecated_set_hook): Remove.
14155
f8de5129
PA
141562014-01-13 Pedro Alves <palves@redhat.com>
14157
14158 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
14159 the tracepoint if the PC is a pseudo-register.
14160
fc270c35
TT
141612014-01-13 Tom Tromey <tromey@redhat.com>
14162
14163 * defs.h (XCALLOC): Remove.
14164 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
14165 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
14166 * dwarf2loc.c (allocate_piece_closure): Likewise.
14167 * elfread.c (elf_symfile_segments): Likewise.
14168 (elf_symfile_segments): Likewise.
14169 * gdbtypes.c (copy_type_recursive): Likewise.
14170 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
14171 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
14172 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
14173 XCALLOC.
14174 * mt-tdep.c (mt_gdbarch_init): Likewise.
14175 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
14176 XCALLOC.
14177 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
14178 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
14179 * registry.c (registry_alloc_data): Likewise.
14180 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
14181 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
14182 * serial.c (serial_fdopen_ops): Likewise.
14183 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
14184 XCALLOC.
14185 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
14186 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
14187 not XCALLOC.
14188
70ba0933
TT
141892014-01-13 Tom Tromey <tromey@redhat.com>
14190
14191 * defs.h (XMALLOC): Remove.
14192 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
14193 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
14194 * cli-out.c (struct ui_out *): Likewise.
14195 * cli/cli-dump.c (add_dump_command): Likewise.
14196 (add_dump_command): Likewise.
14197 * complaints.c (get_complaints): Likewise.
14198 (find_complaint): Likewise.
14199 * dwarf2-frame.c (execute_cfa_program): Likewise.
14200 * dwarf2read.c (abbrev_table_read_table): Likewise.
14201 * gdbarch.sh: Likewise.
14202 * gdbarch.c: Rebuild.
14203 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
14204 * interps.c (interp_new): Likewise.
14205 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
14206 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
14207 * mi/mi-console.c (mi_console_file_new): Likewise.
14208 * mi/mi-interp.c (mi_interpreter_init): Likewise.
14209 * mi/mi-out.c (mi_out_new): Likewise.
14210 * mi/mi-parse.c (mi_parse): Likewise.
14211 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
14212 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
14213 * observer.c (xalloc_observer_list_node): Likewise.
14214 * regcache.c (regcache_xmalloc_1): Likewise.
14215 * reggroups.c (reggroup_new): Likewise.
14216 (_initialize_reggroup): Likewise.
14217 * registry.c (register_data_with_cleanup): Likewise.
14218 * remote.c (remote_notif_stop_alloc_reply): Likewise.
14219 * ser-base.c (serial_ttystate): Likewise.
14220 * ser-mingw.c (make_pipe_state): Likewise.
14221 * ser-pipe.c (pipe_open): Likewise.
14222 * serial.c (serial_open): Likewise.
14223 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
14224 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
14225 (tui_alloc_win_info): Likewise.
14226 (tui_add_content_elements): Likewise.
14227 * tui/tui-file.c (tui_file_new): Likewise.
14228 * tui/tui-out.c (tui_out_new): Likewise.
14229 * ui-file.c (mem_file_new): Likewise.
14230 * ui-out.c (push_level): Likewise.
14231 (make_cleanup_ui_out_end): Likewise.
14232 (append_header_to_list): Likewise.
14233 (ui_out_new): Likewise.
14234 * user-regs.c (user_reg_add_builtin): Likewise.
14235
41bf6aca
TT
142362014-01-13 Tom Tromey <tromey@redhat.com>
14237
14238 * defs.h (XZALLOC): Remove.
14239 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
14240 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
14241 (get_ada_tasks_inferior_data): Likewise.
14242 * auto-load.c (get_auto_load_pspace_data): Likewise.
14243 * auxv.c (get_auxv_inferior_data): Likewise.
14244 * bfd-target.c (target_bfd_reopen): Likewise.
14245 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
14246 (deprecated_insert_raw_breakpoint): Likewise.
14247 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
14248 * corelow.c (core_open): Likewise.
14249 * darwin-nat.c (darwin_check_new_threads): Likewise.
14250 (darwin_attach_pid): Likewise.
14251 * dummy-frame.c (dummy_frame_push): Likewise.
14252 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
14253 * dwarf2loc.c (allocate_piece_closure): Likewise.
14254 * elfread.c (elf_symfile_segments): Likewise.
14255 * eval.c (ptrmath_type_p): Likewise.
14256 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
14257 * gdbtypes.c (alloc_type_arch): Likewise.
14258 (alloc_type_instance): Likewise.
14259 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
14260 * inf-child.c (inf_child_can_use_agent): Likewise.
14261 * inflow.c (get_inflow_inferior_data): Likewise.
14262 * infrun.c (save_infcall_suspend_state): Likewise.
14263 * jit.c (jit_reader_load): Likewise.
14264 (get_jit_objfile_data): Likewise.
14265 (get_jit_program_space_data): Likewise.
14266 (jit_object_open_impl): Likewise.
14267 (jit_symtab_open_impl): Likewise.
14268 (jit_block_open_impl): Likewise.
14269 (jit_frame_sniffer): Likewise.
14270 * linux-fork.c (add_fork): Likewise.
14271 * maint.c (make_command_stats_cleanup): Likewise.
14272 * objfiles.c (get_objfile_pspace_data): Likewise.
14273 * opencl-lang.c (struct lval_closure): Likewise.
14274 * osdata.c (osdata_start_osdata): Likewise.
14275 * progspace.c (new_address_space): Likewise.
14276 (add_program_space): Likewise.
14277 * remote-sim.c (get_sim_inferior_data): Likewise.
14278 * sh-tdep.c (sh_gdbarch_init): Likewise.
14279 * skip.c (Ignore): Likewise.
14280 (skip_delete_command): Likewise.
14281 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
14282 (library_list_start_library): Likewise.
14283 (solib_aix_current_sos): Likewise.
14284 * solib-darwin.c (get_darwin_info): Likewise.
14285 (darwin_current_sos): Likewise.
14286 * solib-dsbt.c (get_dsbt_info): Likewise.
14287 * solib-ia64-hpux.c (new_so_list): Likewise.
14288 (ia64_hpux_get_solib_linkage_addr): Likewise.
14289 * solib-spu.c (append_ocl_sos): Likewise.
14290 (spu_current_sos): Likewise.
14291 * solib-svr4.c (get_svr4_info): Likewise.
14292 (svr4_keep_data_in_core): Likewise.
14293 (library_list_start_library): Likewise.
14294 (svr4_default_sos): Likewise.
14295 (svr4_read_so_list): Likewise.
14296 * solib-target.c (library_list_start_library): Likewise.
14297 (solib_target_current_sos): Likewise.
14298 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
14299 * symfile-debug.c (install_symfile_debug_logging): Likewise.
14300 * symfile.c (default_symfile_segments): Likewise.
14301 * target-descriptions.c (tdesc_data_init): Likewise.
14302 (tdesc_create_reg): Likewise.
14303 (struct tdesc_type *): Likewise.
14304 (tdesc_create_vector): Likewise.
14305 (tdesc_set_struct_size): Likewise.
14306 (struct tdesc_type *): Likewise.
14307 (tdesc_free_feature): Likewise.
14308 (tdesc_create_feature): Likewise.
14309 * windows-nat.c (windows_add_thread): Likewise.
14310 (windows_make_so): Likewise.
14311 * xml-support.c (gdb_xml_body_text): Likewise.
14312 (gdb_xml_create_parser_and_cleanup): Likewise.
14313 (xml_process_xincludes): Likewise.
14314 * xml-syscall.c (allocate_syscalls_info): Likewise.
14315 (syscall_create_syscall_desc): Likewise.
14316
5acfdbae
SDJ
143172014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
14318
14319 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
14320 function, with code from i386_stap_parse_special_token.
14321 (i386_stap_parse_special_token_three_arg_disp): Likewise.
14322 (i386_stap_parse_special_token): Move code to the two functions
14323 above; simplify it.
14324
0000e5cc
PA
143252014-01-09 Pedro Alves <palves@redhat.com>
14326 Hui Zhu <hui@codesourcery.com>
14327
14328 PR gdb/16101
14329 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
14330 bp_err_string. Don't mark the location shlib_disabled if the
14331 error thrown wasn't a generic or memory error. Catch errors
14332 thrown while inserting breakpoints in overlayed code. Output
14333 error message of software breakpoints.
14334 * remote.c (remote_insert_breakpoint): If this breakpoint has
14335 target-side commands but this stub doesn't support Z0 packets,
14336 throw NOT_SUPPORTED_ERROR error.
14337 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
14338 * target.h (target_insert_breakpoint): Extend comment.
14339 (target_insert_hw_breakpoint): Add comment.
14340
b7ea362b
PA
143412014-01-08 Pedro Alves <palves@redhat.com>
14342
14343 * remote.c (remote_add_thread): Add threads silently if starting
14344 up.
14345 (remote_notice_new_inferior): If in all-stop, and starting up,
14346 don't call notice_new_inferior.
14347 (get_current_thread): New function, factored out from ...
14348 (add_current_inferior_and_thread): ... this. Adjust.
14349 (remote_start_remote) <all-stop>: Fetch the thread list. If we
14350 found any thread, then select the remote's current thread as GDB's
14351 current thread too.
14352
b7bba001
JB
143532014-01-08 Joel Brobecker <brobecker@adacore.com>
14354
14355 * NEWS: Create a new section for the next release branch.
14356 Rename the section of the current branch, now that it has
14357 been cut.
14358
16dfbded
JB
143592014-01-08 Joel Brobecker <brobecker@adacore.com>
14360
14361 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
14362 * version.in: Bump version to 7.7.50.DATE-cvs.
14363
22c90ac1
YQ
143642014-01-08 Yao Qi <yao@codesourcery.com>
14365
14366 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
14367 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
14368 (spu_xfer_partial): Cast 'buf' to 'const char *'.
14369
d64ad97c
YQ
143702014-01-08 Yao Qi <yao@codesourcery.com>
14371
14372 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
14373 return value of bfd_get_filename to symbol_file_add_from_bfd.
14374
f93ba80c
PM
143752014-01-08 Pierre Muller <muller@sourceware.org>
14376
14377 Fix PR16201.
14378 * coff-pe-read.c (struct read_pe_section_data): Add index field.
14379 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
14380 to prim_record_mininal_symbol_and_info.
14381 (add_pe_forwarded_sym): Use known section number of forwarded symbol
14382 in call to prim_record_minimal_symbol_and_info.
14383 (read_pe_exported_syms): Set index field of section_data.
14384
a4d9ba85
AP
143852014-01-07 Andrew Pinski <apinski@cavium.com>
14386
14387 * features/aarch64-core.xml (cpsr): Change to be 64bit.
14388 * features/aarch64.c: Regenerate.
14389
1b67eb02
AS
143902014-01-07 Andreas Schwab <schwab@linux-m68k.org>
14391
14392 * target.c (return_null): Define.
14393 (update_current_target): Use it instead of return_zero for
14394 functions that return a pointer.
14395
5e3f4fab
EBM
143962014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
14397
14398 * source.c (add_path): Fix check for duplicated paths in the previously
14399 included paths.
14400
e2616788
HK
144012014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
14402
14403 * ada-lang.c: Remove duplicated include statements.
14404 * alphabsd-nat.c: Ditto.
14405 * amd64-darwin-tdep.c: Ditto.
14406 * amd64fbsd-nat.c: Ditto.
14407 * auto-load.c: Ditto.
14408 * ax-gdb.c: Ditto.
14409 * breakpoint.c: Ditto.
14410 * dbxread.c: Ditto.
14411 * fork-child.c: Ditto.
14412 * gdb_usleep.c: Ditto.
14413 * i386-darwin-tdep.c: Ditto.
14414 * i386fbsd-nat.c: Ditto.
14415 * infcmd.c: Ditto.
14416 * inferior.c: Ditto.
14417 * jv-lang.c: Ditto.
14418 * linux-nat.c: Ditto.
14419 * linux-tdep.c: Ditto.
14420 * m68kbsd-nat.c: Ditto.
14421 * m68klinux-nat.c: Ditto.
14422 * microblaze-tdep.c: Ditto.
14423 * mips-linux-tdep.c: Ditto.
14424 * mn10300-tdep.c: Ditto.
14425 * nto-tdep.c: Ditto.
14426 * opencl-lang.c: Ditto.
14427 * osdata.c: Ditto.
14428 * printcmd.c: Ditto.
14429 * regcache.c: Ditto.
14430 * remote-m32r-sdi.c: Ditto.
14431 * remote.c: Ditto.
14432 * symfile.c: Ditto.
14433 * symtab.c: Ditto.
14434 * tilegx-linux-nat.c: Ditto.
14435 * tilegx-tdep.c: Ditto.
14436 * tracepoint.c: Ditto.
14437 * valops.c: Ditto.
14438 * vaxbsd-nat.c: Ditto.
14439 * windows-nat.c: Ditto.
14440 * xtensa-tdep.c: Ditto.
14441
bd1f7788
YQ
144422014-01-07 Yao Qi <yao@codesourcery.com>
14443
14444 * spu-linux-nat.c (_initialize_spu_nat): Declare.
14445
79301218
JB
144462014-01-07 Yao Qi <yao@codesourcery.com>
14447 Joel Brobecker <brobecker@adacore.com>
14448
14449 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
14450 (pdc_write_regs): Likewise.
14451 (fetch_regs_kernel_thread): Likewise.
14452 (store_regs_kernel_thread): Likewise.
14453
144542014-01-07 Joel Brobecker <brobecker@adacore.com>
14455
14456 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
14457 tagged type objects to their actual type.
14458
8e355c5d
JB
144592014-01-07 Joel Brobecker <brobecker@adacore.com>
14460
14461 * ada-valprint.c (print_field_values): Add "language" parameter.
14462 Update calls to print_field_values and print_variant_part.
14463 Pass new parameter "language" in call to val_print instead
14464 of "current_language". Replace call to ada_val_print by call
14465 to val_print.
14466 (print_variant_part): Add "language" parameter.
14467 (ada_val_print_struct_union): Update call to print_field_values.
14468
4fbf5aa5
JB
144692014-01-07 Joel Brobecker <brobecker@adacore.com>
14470
14471 * ada-valprint.c (ui_memcpy): Delete.
14472 (ada_print_floating): Update documentation. Add empty line
14473 between between function documentation and implementation.
14474 Delete variable "buffer". Use ui_file_xstrdup in place of
14475 ui_file_put. Minor adjustments following this change.
14476
71855601
JB
144772014-01-07 Joel Brobecker <brobecker@adacore.com>
14478
14479 * ada-valprint.c (ada_val_print_string): New function,
14480 extracted from ada_val_print_array.
14481 (ada_val_print_array): Replace extracted code by call
14482 to ada_val_print_string followed by a return. Move
14483 "else" branch to the function's top block.
14484
4eb27a30
JB
144852014-01-07 Joel Brobecker <brobecker@adacore.com>
14486
14487 * ada-valprint.c (ada_val_print_array): Move implementation
14488 down. Rename parameter "offset" and "val" into "offset_aligned"
14489 and "original_value" respectively. Add parameter "offset".
14490
34b27950
JB
144912014-01-07 Joel Brobecker <brobecker@adacore.com>
14492
14493 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
14494 re-organizing the code. Change the "???" message printed
14495 when target type is a TYPE_CODE_UNDEF into
14496 "<ref to undefined type>".
14497
079e4591
JB
144982014-01-07 Joel Brobecker <brobecker@adacore.com>
14499
14500 * ada-valprint.c (print_record): Delete, implementation inlined...
14501 (ada_val_print_struct_union): ... here. Remove call to
14502 ada_check_typedef in inlined implementation.
14503
8004dfd1
JB
145042014-01-07 Joel Brobecker <brobecker@adacore.com>
14505
14506 * ada-valprint.c (ada_val_print_gnat_array): New function,
14507 extracted from ada_val_print_1;
14508 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
14509 (ada_val_print_flt, ada_val_print_struct_union)
14510 (ada_val_print_ref): Likewise.
14511 (ada_val_print_1): Delete variables i and elttype.
14512 Replace extracted-out code by call to corresponding
14513 new functions.
14514
760a2db0
JB
145152014-01-07 Joel Brobecker <brobecker@adacore.com>
14516
14517 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
14518
3a92c861
JB
145192014-01-07 Joel Brobecker <brobecker@adacore.com>
14520
14521 * ada-valprint.c (ada_val_print_1): Replace calls to
14522 ada_val_print_1 by calls to val_print.
14523
cd1630f9
JB
145242014-01-07 Joel Brobecker <brobecker@adacore.com>
14525
14526 * ada-valprint.c (ada_val_print_1): Add parameter "language".
14527 Update calls to self accordingly. Replace calls to c_val_print
14528 by calls to val_print.
14529
bdf779a0
JB
145302014-01-07 Joel Brobecker <brobecker@adacore.com>
14531
14532 * ada-valprint.c (print_record): Delete declaration.
14533 (adjust_type_signedness, ada_val_print_1): Likewise.
14534 (ada_val_print): Move function implementation down.
14535 (print_variant_part, print_field_values, print_record):
14536 Move function implementation up.
14537
c0d48811
JB
145382014-01-07 Joel Brobecker <brobecker@adacore.com>
14539
14540 * python/py-type.c (typy_get_name): New function.
14541 (type_object_getset): Add entry for attribute "name".
14542 * NEWS: Add entry mentioning this new attribute.
14543
c26e9cbb
YQ
145442014-01-07 Yao Qi <yao@codesourcery.com>
14545
14546 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
14547 statement.
14548
0cc6f43d
YQ
145492014-01-07 Yao Qi <yao@codesourcery.com>
14550
14551 * gnu-nat.c (info_port_rights): Add qualifier const to
14552 argument args.
14553
eec03155
YQ
145542014-01-07 Yao Qi <yao@codesourcery.com>
14555
14556 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
14557
f04a82ef
YQ
145582014-01-07 Yao Qi <yao@codesourcery.com>
14559
14560 * gnu-nat.c (make_inf) Update declaration.
14561 (make_inf): Make it static.
14562 (inf_set_traced): Likewise.
14563 (inf_port_to_thread, inf_task_died_status): Likewise.
14564
d57dda0a
YQ
145652014-01-07 Yao Qi <yao@codesourcery.com>
14566
14567 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
14568
3aa8c969
YQ
145692014-01-07 Yao Qi <yao@codesourcery.com>
14570
14571 * gnu-nat.c (_initialize_gnu_nat): Declare.
14572
94123b4f
YQ
145732014-01-07 Yao Qi <yao@codesourcery.com>
14574
14575 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
14576 'enum bfd_endian'.
14577 (struct gdbarch_info) <byte_order>: Change type to
14578 'enum bfd_endian'.
14579 <byte_order_for_code>: Likewise.
14580 * gdbarch.c, gdbarch.h: Regenerated.
14581
dc81d70a
TT
145822014-01-06 Sasha Smundak <asmundak@google.com>
14583
14584 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
14585
cc2f3c35
TT
145862014-01-06 Tom Tromey <tromey@redhat.com>
14587
14588 * doublest.c (convert_doublest_to_floatformat): Use const, not
14589 CONST.
14590 * somread.c (som_symtab_read): Likewise.
14591
adcf2eed
HZ
145922014-01-07 Hui Zhu <hui@codesourcery.com>
14593
14594 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
14595 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
14596 (gdb_bfd_fopen): Ditto.
14597 (gdb_bfd_openr): Ditto.
14598 (gdb_bfd_openw): Ditto.
14599 (gdb_bfd_openr_iovec): Ditto.
14600 (gdb_bfd_fdopenr): Ditto.
14601 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
14602 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
14603 with xstrdup.
14604 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
14605 with xstrdup.
14606 * symfile-mem.c (symbol_file_add_from_memory): Removed
14607 gdb_bfd_stash_filename.
14608
50722198
DE
146092014-01-03 Doug Evans <dje@google.com>
14610
14611 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
14612 output.
14613
2fa4b862
JB
146142014-01-01 Joel Brobecker <brobecker@adacore.com>
14615
14616 Update year range in copyright notice of all files.
14617
28498c42
JB
146182014-01-01 Joel Brobecker <brobecker@adacore.com>
14619
14620 * top.c (print_gdb_version): Set copyright year to 2014.
14621
7b6e1046
JB
146222014-01-01 Joel Brobecker <brobecker@adacore.com>
14623
14624 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
14625
df96af55 14626For older changes see ChangeLog-2013.
c906108c
SS
14627\f
14628Local Variables:
14629mode: change-log
14630left-margin: 8
14631fill-column: 74
14632version-control: never
57da7796 14633coding: utf-8
c906108c 14634End:
This page took 2.425903 seconds and 4 git commands to generate.