PR tui/16138 is about failure to initialize curses resulting in GDB
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
551cb6a5
PA
12014-10-29 Pedro Alves <palves@redhat.com>
2
3 * tui/tui.c (tui_rl_switch_mode): Wrap tui_enable/tui_disable in
4 TRY_CATCH.
5
1e1e619b
PA
62014-10-29 Pedro Alves <palves@redhat.com>
7
8 PR tui/16138
9 PR tui/17519
10 * tui/tui-interp.c (tui_is_toplevel): Delete global.
11 (tui_allowed_p): Delete function.
12 * tui/tui.c: Include "interps.h".
13 (tui_enable): Don't use tui_allowed_p. Error out here with
14 detailed error messages if the TUI is the top level interpreter,
15 or if output is not a terminal. Use newterm instead of initscr,
16 and error out if initializing the terminal fails. Also error out if
17 the terminal doesn't support cursor addressing.
18 * tui/tui.h (tui_allowed_p): Delete declaration.
19
6041179a
JB
202014-10-29 Joel Brobecker <brobecker@adacore.com>
21
22 * arm-tdep.c (arm_skip_stack_protector): Return early if
23 address loaded by first "ldr" instruction does not have
24 a corresponding minimal symbol. Update comment.
25
6ae274b7
YQ
262014-10-29 Yao Qi <yao@codesourcery.com>
27
28 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
29 loaded address correctly of ldr instruction.
30
7f5ef605
PA
312014-10-28 Pedro Alves <palves@redhat.com>
32
33 PR gdb/12623
34 * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
35 field.
36 * infrun.c (resume) <stepping breakpoint instruction>: Set the
37 thread's stepped_breakpoint field. Skip if reverse debugging.
38 Add comment.
39 (init_thread_stepping_state, handle_signal_stop): Clear the
40 thread's stepped_breakpoint field.
41
7d1a114c
PA
422014-10-27 Pedro Alves <palves@redhat.com>
43
44 * remote.c (remote_thread_alive): New, factored out from ...
45 (remote_thread_alive): ... this.
46 (remote_update_thread_list): Bail out before deleting threads if
47 the target returned an empty list, and, the current thread has a
48 magic/fake ptid.
49
e5f8a7cc
PA
502014-10-27 Pedro Alves <palves@redhat.com>
51
52 * infrun.c (handle_signal_stop): Also skip handlers when a random
53 signal arrives while handling a "stepi" or a "nexti". Set the
54 thread's 'step_after_step_resume_breakpoint' flag.
55
71e396f9
LM
562014-10-27 Luis Machado <lgustavo@codesourcery.com>
57
58 * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
59 (arm_record_ld_st_imm_offset): Reimplement to cover all
60 load/store cases for ARM opcode 010.
61 (arm_record_ld_st_multiple): Reimplement to cover all
62 load/store cases for ARM opcode 100.
63
3aee438b
DE
642014-10-26 Doug Evans <xdje42@gmail.com>
65
66 * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
67
f88cb4b6
DE
682014-10-26 Doug Evans <xdje42@gmail.com>
69
70 * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
71 parameter "kind" to "block_index".
72 * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
73 "block_index".
74 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
75
a023a30f
DE
762014-10-26 Doug Evans <xdje42@gmail.com>
77
78 * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
79
4c35218e
DE
802014-10-26 Doug Evans <xdje42@gmail.com>
81
82 * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
83 obstack_alloc.
84
f08e8df3
DE
852014-10-26 Doug Evans <xdje42@gmail.com>
86
87 * parser-defs.h (block_found): Move decl from here ...
88 * symtab.h (block_found): ... to here.
89
cf901d3b
DE
902014-10-26 Doug Evans <xdje42@gmail.com>
91
92 * symtab.h (struct field_of_this_result): Fix typo in comment.
93 (lookup_symbol_in_language): Move function comment here.
94 (lookup_symbol): Improve function comment.
95 (basic_lookup_symbol_nonlocal): Ditto.
96 (lookup_symbol_static, lookup_symbol_global): Ditto.
97 (lookup_symbol_aux_block): Ditto.
98 (lookup_language_this): Add function comment.
99 (lookup_static_symbol_aux): Explicitly mark as extern. Improve
100 function comment.
101 (lookup_block_symbol): Improve function comment.
102 (lookup_struct): Fix capitalization in function comment.
103 (lookup_transparent_type): Add function comment.
104 (lookup_global_symbol_from_objfile): Explicitly mark as extern.
105 Improve function comment.
106 (lookup_objfile_from_block): Add function comment.
107 * symtab.c (lookup_symbol_in_language): Update function comment.
108 (lookup_symbol, lookup_language_this): Ditto.
109 (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
110 (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
111 (basic_lookup_symbol_nonlocal): Ditto.
112 (lookup_symbol_static, lookup_symbol_global): Ditto.
113 (lookup_transparent_type, lookup_block_symbol): Ditto.
114
ff6c39cf
DE
1152014-10-25 Doug Evans <xdje42@gmail.com>
116
117 * symtab.c (types_info): Delete forward decl.
118 (functions_info, variables_info, sources_info): Ditto.
119 (_initialize_symtab): Rewrite forward decl to use
120 initialize_file_ftype.
121
ec201f0c
DE
1222014-10-25 Doug Evans <xdje42@gmail.com>
123
124 * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
125
ca040673
DE
1262014-10-25 Doug Evans <xdje42@gmail.com>
127
128 * dwarf2read.c (process_structure_scope): Remove second (nested) copy
129 of local var child_die.
130
6f259a23
DB
1312014-10-24 Don Breazeal <donb@codesourcery.com>
132
133 * infrun.c (follow_fork_inferior): Update fork message printing
134 to use target_terminal_ours_for_output instead of
135 target_terminal_ours, to use _() for all format strings, to print
136 "vfork" instead of "fork" for vforks, and to add a detach message.
137 (handle_vfork_child_exec_or_exit): Update message printing to use
138 target_terminal_ours_for_output instead of target_terminal_ours, to
139 use _() for all format strings, and to fix some formatting.
140
09dd9a69
PA
1412014-10-24 Pedro Alves <palves@redhat.com>
142
143 * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
144 * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
145 * config/vax/vax.mh: Delete.
146 * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
147 obsolete configurations section.
148 * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
149 * vax-nat.c: Delete file.
150
5ab806de
PA
1512014-10-24 Pedro Alves <palves@redhat.com>
152
153 * NEWS (Removed targets): Add OS/arch column.
154
3433cfa5
SC
1552014-10-24 Siva Chandra Reddy <sivachandra@google.com>
156
157 * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
158 on the arg type of a constructor only if it is of reference type.
159
96ba4233
SL
1602014-10-23 Sandra Loosemore <sandra@codesourcery.com>
161
162 * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
163 accessors and constants from nios2 opcodes update.
164 (nios2_get_next_pc): Likewise.
165
28153fd3
DE
1662014-10-19 Doug Evans <xdje42@gmail.com>
167
168 * gdbthread.h (set_running): Fix comment.
169 (set_executing, finish_thread_state): Fix comment.
170
fc9b8e47
DE
1712014-10-18 Doug Evans <xdje42@gmail.com>
172
173 * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
174
4ffbba72
DE
1752014-10-17 Doug Evans <dje@google.com>
176
177 * NEWS: Mention new event gdb.clear_objfiles.
178 * python/py-event.h (emit_clear_objfiles_event): Clear
179 * python/py-events.h (events_object): New member clear_objfiles.
180 * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
181 event.
182 * python/py-inferior.c (python_new_objfile): If objfile is NULL,
183 emit clear_objfiles event.
184 * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
185 function.
186 (emit_clear_objfiles_event): New function.
187 (clear_objfiles): New event.
188 * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
189 Declare.
190 * python/python.c (_initialize_python): Call
191 gdbpy_initialize_clear_objfiles_event.
192
d096d8c1
DE
1932014-10-17 Doug Evans <dje@google.com>
194
195 * NEWS: Mention new gdb.Objfile.progspace attribute.
196 * python/py-objfile.c (objfpy_get_progspace): New function.
197 (objfile_getset): New entry for "progspace".
198
6c4486e6
PA
1992014-10-17 Pedro Alves <palves@redhat.com>
200
201 PR gdb/17471
202 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
203 returns a copy of the input.
204 (run_command_1, continue_command, step_1, jump_command)
205 (signal_command, until_command, advance_command, finish_command)
206 (attach_command): Adjust and install a cleanup to free the
207 stripped args.
208
0ff33695
PA
2092014-10-17 Pedro Alves <palves@redhat.com>
210
211 PR gdb/17300
212 * infcmd.c (continue_1): If continuing all threads in the
213 foreground, make sure the inferior's terminal settings are put in
214 effect.
215
6fdebc3d
PA
2162014-10-17 Pedro Alves <palves@redhat.com>
217
218 PR gdb/17472
219 * annotate.c (annotate_breakpoints_invalid): Use
220 target_terminal_our_for_output instead of target_terminal_ours.
221 Give back the terminal to the target.
222 (annotate_frames_invalid): Likewise.
223
5842f62a
PA
2242014-10-17 Pedro Alves <palves@redhat.com>
225
226 * target.c (enum terminal_state): New enum.
227 (terminal_state): New global.
228 (target_terminal_init): New function.
229 (target_terminal_inferior): Skip if inferior already owns the
230 terminal.
231 (target_terminal_ours, target_terminal_ours_for_output): New
232 functions.
233 * target.h (target_terminal_init): Convert to function prototype.
234 (target_terminal_ours_for_output): Convert to function prototype
235 and tweak comment.
236 (target_terminal_ours): Convert to function prototype and tweak
237 comment.
238 * windows-nat.c (do_initial_windows_stuff): Call
239 target_terminal_init instead of child_terminal_init_with_pgrp.
240
32a8097b
PA
2412014-10-17 Pedro Alves <palves@redhat.com>
242
243 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
244 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
245 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
246 solib-osf.c.
247 * NEWS: Mention that support for alpha*-*-osf* has been removed.
248 * ada-lang.h [__alpha__ && __osf__]
249 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
250 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
251 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
252 GDB_OSABI_OSF1.
253 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
254 files.
255 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
256 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
257 * configure: Regenerate.
258 * configure.ac: Remove references to osf.
259 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
260 section. Remove all other references to osf.
261 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
262 Remove all other references to osf.
263 * dec-thread.c: Delete file.
264 * defs.h (GDB_OSABI_OSF1): Delete.
265 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
266 defined.
267 * osabi.c (gdb_osabi_names): Delete "OSF/1".
268 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
269 Delete code.
270 (unconditionally_kill_inferior)
271 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
272 * solib-osf.c: Delete file.
273
80134cf5
PA
2742014-10-17 Pedro Alves <palves@redhat.com>
275
276 * remote.c (clear_threads_listing_context): Move higher up, out of
277 the HAVE_LIBEXPAT guard.
278
89c7137f
TG
2792014-10-16 Tristan Gingold <gingold@adacore.com>
280
281 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
282 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
283 on amd64.
284
44ee4a52
PA
2852014-10-15 Pedro Alves <palves@redhat.com>
286
287 * dec-thread.c (dec_thread_count_gdb_threads)
288 (dec_thread_add_gdb_thread): Delete.
289 (dec_thread_update_thread_list): Delete.
290 (dec_thread_find_new_threads): Rename to ...
291 (dec_thread_update_thread_list): ... this. Delete GDB-size
292 threads that are no longer found in dec_thread_list.
293 (resync_thread_list): Delete.
294 (dec_thread_wait): Call dec_thread_update_thread_list instead of
295 resync_thread_list.
296
ab970af1
PA
2972014-10-15 Pedro Alves <palves@redhat.com>
298
299 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
300 * remote.c (remote_update_thread_list): Skip calling prune_threads
301 if any thread listing method is supported, and instead walk over
302 the set of remote threads listed, deleting those that are not
303 found in GDB's thread list.
304
e8032dde
PA
3052014-10-15 Pedro Alves <palves@redhat.com>
306
307 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
308 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
309 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
310 (bsd_uthread_target): Adjust.
311 * corelow.c (core_open): Adjust.
312 * dec-thread.c (dec_thread_find_new_threads): Update comment.
313 (dec_thread_update_thread_list): New function.
314 (init_dec_thread_ops): Adjust.
315 * gdbthread.h (prune_threads): New declaration.
316 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
317 (thread_db_update_thread_list): ... this. Call prune_threads.
318 (init_thread_db_ops): Adjust.
319 * nto-procfs.c (procfs_find_new_threads): Rename to ...
320 (procfs_update_thread_list): ... this. Call prune_threads.
321 (procfs_attach, procfs_create_inferior, init_procfs_targets):
322 Adjust.
323 * obsd-nat.c (obsd_find_new_threads): Rename to ...
324 (obsd_update_thread_list): ... this. Call prune_threads.
325 (obsd_add_target): Adjust.
326 * procfs.c (procfs_target): Adjust.
327 (procfs_notice_thread): Update comment.
328 (procfs_find_new_threads): Rename to ...
329 (procfs_update_thread_list): ... this. Call prune_threads.
330 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
331 comment.
332 (ravenscar_wait): Adjust.
333 (ravenscar_find_new_threads): Rename to ...
334 (ravenscar_update_thread_list): ... this. Call prune_threads.
335 (init_ravenscar_thread_ops): Adjust.
336 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
337 (record_btrace_update_thread_list): ... this. Adjust comment.
338 (init_record_btrace_ops): Adjust.
339 * remote.c (remote_threads_info): Rename to ...
340 (remote_update_thread_list): ... this. Call prune_threads.
341 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
342 Adjust.
343 * sol-thread.c (check_for_thread_db): Adjust.
344 (sol_find_new_threads_callback): Rename to ...
345 (sol_update_thread_list_callback): ... this.
346 (sol_find_new_threads): Rename to ...
347 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
348 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
349 * target-delegates.c: Regenerate.
350 * target.c (target_find_new_threads): Rename to ...
351 (target_update_thread_list): ... this.
352 * target.h (struct target_ops): Rename to_find_new_threads field
353 to to_update_thread_list.
354 (target_find_new_threads): Rename to ...
355 (target_update_thread_list): ... this.
356 * thread.c (prune_threads): Make extern.
357 (update_thread_list): Adjust.
358
6dc54d91
PA
3592014-10-15 Pedro Alves <palves@redhat.com>
360
361 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
362 Add describing comment. Return -1 if the qL packet is not
363 supported.
364 (struct thread_item, thread_item_t): Move higher up in
365 the file. Add comments.
366 (struct threads_parsing_context): Move higher up in
367 the file, add comments, and remote to ...
368 (struct threads_listing_context): ... this.
369 (remote_newthread_step): Don't add the thread to GDB's thread
370 database here. Instead push it to the thread_listing_context
371 list.
372 (remote_find_new_threads): Rename to ...
373 (remote_get_threads_with_ql): ... this. Add target_ops and
374 targets_listing_context parameters. Pass down context.
375 (start_thread): Adjust.
376 (clear_threads_parsing_context): Rename to ...
377 (clear_threads_listing_context): ... this.
378 (remote_get_threads_with_qxfer): New, with parts salvaged from old
379 remote_threads_info.
380 (remote_get_threads_with_qthreadinfo): Ditto.
381 (remote_threads_info): Reimplement.
382
36728e82
PA
3832014-10-15 Pedro Alves <palves@redhat.com>
384
385 * infrun.c (resume): Don't force displaced-stepping for all
386 single-steps on software single-stepping archs.
387
34b7e8a6
PA
3882014-10-15 Pedro Alves <palves@redhat.com>
389
390 * breakpoint.c (single_step_breakpoints): Delete global.
391 (insert_single_step_breakpoint): Adjust to store the breakpoint
392 pointer in the current thread.
393 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
394 (cancel_single_step_breakpoints): Delete functions.
395 (breakpoint_has_location_inserted_here): Make extern.
396 (single_step_breakpoint_inserted_here_p): Adjust to walk the
397 breakpoint list.
398 * breakpoint.h (breakpoint_has_location_inserted_here): New
399 declaration.
400 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
401 (cancel_single_step_breakpoints): Remove declarations.
402 * gdbthread.h (struct thread_control_state)
403 <single_step_breakpoints>: New field.
404 (delete_single_step_breakpoints)
405 (thread_has_single_step_breakpoints_set)
406 (thread_has_single_step_breakpoint_here): New declarations.
407 * infrun.c (follow_exec): Also clear the single-step breakpoints.
408 (singlestep_breakpoints_inserted_p, singlestep_ptid)
409 (singlestep_pc): Delete globals.
410 (infrun_thread_ptid_changed): Remove references to removed
411 globals.
412 (resume_cleanups): Delete the current thread's single-step
413 breakpoints.
414 (maybe_software_singlestep): Remove references to removed globals.
415 (resume): Adjust to use thread_has_single_step_breakpoints_set and
416 delete_single_step_breakpoints.
417 (init_wait_for_inferior): Remove references to removed globals.
418 (delete_thread_infrun_breakpoints): Delete the thread's
419 single-step breakpoints too.
420 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
421 single-step breakpoints here.
422 (delete_stopped_threads_single_step_breakpoints): New function.
423 (adjust_pc_after_break): Adjust to use
424 thread_has_single_step_breakpoints_set.
425 (handle_inferior_event): Remove references to removed globals.
426 Use delete_stopped_threads_single_step_breakpoints.
427 (handle_signal_stop): Adjust to per-thread single-step
428 breakpoints. Swap test order to do cheaper tests first.
429 (switch_back_to_stepped_thread): Extend debug output. Remove
430 references to removed globals.
431 * record-full.c (record_full_wait_1): Adjust to per-thread
432 single-step breakpoints.
433 * thread.c (delete_single_step_breakpoints)
434 (thread_has_single_step_breakpoints_set)
435 (thread_has_single_step_breakpoint_here): New functions.
436 (clear_thread_inferior_resources): Also delete the thread's
437 single-step breakpoints.
438
5b834a0a
PA
4392014-10-15 Pedro Alves <palves@redhat.com>
440
441 * thread.c (delete_thread_breakpoint): New function.
442 (delete_step_resume_breakpoint)
443 (delete_exception_resume_breakpoint): Use it.
444 (delete_at_next_stop): New function.
445 (clear_thread_inferior_resources): Use delete_at_next_stop.
446
a1fd2fa5
PA
4472014-10-15 Pedro Alves <palves@redhat.com>
448
449 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
450 (breakpoint_inserted_here_p): ... here. Remove special case for
451 software single-step breakpoints.
452 (find_non_raw_software_breakpoint_inserted_here): Inline ...
453 (software_breakpoint_inserted_here_p): ... here. Remove special
454 case for software single-step breakpoints.
455 (bp_target_info_copy_insertion_state)
456 (deprecated_insert_raw_breakpoint)
457 (deprecated_remove_raw_breakpoint): Delete functions.
458 * breakpoint.h (deprecated_insert_raw_breakpoint)
459 (deprecated_remove_raw_breakpoint): Remove declarations.
460
7c16b83e
PA
4612014-10-15 Pedro Alves <palves@redhat.com>
462
463 PR breakpoints/9649
464 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
465 Delete array globals.
466 (single_step_breakpoints): New global.
467 (breakpoint_xfer_memory): Remove special handling for single-step
468 breakpoints.
469 (update_breakpoints_after_exec): Delete bp_single_step
470 breakpoints.
471 (detach_breakpoints): Remove special handling for single-step
472 breakpoints.
473 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
474 (bpstat_stop_status): Add comment.
475 (bpstat_what, bptype_string, print_one_breakpoint_location)
476 (adjust_breakpoint_address, init_bp_location): Handle
477 bp_single_step.
478 (new_single_step_breakpoint): New function.
479 (set_momentary_breakpoint, bkpt_remove_location): Remove special
480 handling for single-step breakpoints.
481 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
482 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
483 Rewrite.
484 (detach_single_step_breakpoints, find_single_step_breakpoint):
485 Delete functions.
486 (breakpoint_has_location_inserted_here): New function.
487 (single_step_breakpoint_inserted_here_p): Rewrite.
488 * breakpoint.h: Remove FIXME.
489 (enum bptype) <bp_single_step>: New enum value.
490 (insert_single_step_breakpoint): Update comment.
491 * infrun.c (resume_cleanups)
492 (delete_step_thread_step_resume_breakpoint): Remove single-step
493 breakpoints.
494 (fetch_inferior_event): Install a cleanup that removes infrun
495 breakpoints.
496 (switch_back_to_stepped_thread) <expect thread advanced also>:
497 Clear step-over info.
498
0cbcdb96
PA
4992014-10-15 Pedro Alves <palves@redhat.com>
500
501 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
502 (delete_thread_infrun_breakpoints): New function, with parts
503 salvaged from delete_step_resume_breakpoint_callback.
504 (delete_step_thread_step_resume_breakpoint): Delete.
505 (for_each_just_stopped_thread_callback_func): New typedef.
506 (for_each_just_stopped_thread): New function.
507 (delete_just_stopped_threads_infrun_breakpoints): New function.
508 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
509 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
510 ... this. Adjust.
511 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
512
963f9c80
PA
5132014-10-15 Pedro Alves <palves@redhat.com>
514
515 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
516 trying to step past a non-steppable watchpoint.
517 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
518 field.
519 * infrun.c (struct step_over_info): Add new field
520 'nonsteppable_watchpoint_p' and adjust comments.
521 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
522 Adjust.
523 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
524 (stepping_past_nonsteppable_watchpoint): New function.
525 (step_over_info_valid_p): Also return true if stepping past a
526 nonsteppable watchpoint.
527 (proceed): Adjust call to set_step_over_info. Remove reference to
528 init_infwait_state.
529 (init_wait_for_inferior): Remove reference to init_infwait_state.
530 (waiton_ptid): Delete global.
531 (struct execution_control_state)
532 <stepped_after_stopped_by_watchpoint>: Delete field.
533 (wait_for_inferior, fetch_inferior_event): Always pass
534 minus_one_ptid to target_wait.
535 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
536 field.
537 (init_infwait_state): Delete function.
538 (handle_inferior_event): Remove infwait_state handling.
539 (handle_signal_stop) <watchpoints handling>: Adjust after
540 stepped_after_stopped_by_watchpoint removal. Don't remove
541 breakpoints here nor set infwait_state. Set the thread's
542 stepping_over_watchpoint flag, and call keep_going instead.
543 (keep_going): Handle stepping_over_watchpoint. Adjust
544 set_step_over_info calls.
545 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
546 function.
547
6cc83d2a
PA
5482014-10-15 Pedro Alves <palves@redhat.com>
549
550 * infrun.c (step_over_info_valid_p): New function.
551 (resume): Use step_over_info_valid_p instead of checking the
552 threads's trap_expected flag.
553
6979730b
DE
5542014-10-15 Doug Evans <dje@google.com>
555 Walfred Tedeschi <walfred.tedeschi@intel.com>
556
557 PR python/17364
558 * python/lib/gdb/__init__.py (packages): Add "printer".
559 * python/lib/gdb/command/bound_registers.py: Moved to ...
560 * python/lib/gdb/printer/bound_registers.py: ... here.
561 Add printer to global set of builtin printers. Rename printer from
562 "bound" to "mpx_bound128".
563 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
564 registered as global "builtin" printer.
565 (add_builtin_pretty_printer): New function.
566 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
567 gdb/printer/__init__.py.
568
35a49624
IB
5692014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
570
571 * Makefile.in (SFILES): Remove d-support.c.
572 (COMMON_OBS): Remove d-support.o.
573 * d-lang.h (d_parse_symbol): Remove declaration.
574 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
575 * d-support.c: Remove file.
576
8fa0c4f8
AA
5772014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
578
579 * gdb/infrun.c (process_event_stop_test): Apply
580 gdbarch_addr_bits_remove to longjmp resume address.
581
3666da81
PA
5822014-10-15 Pedro Alves <palves@redhat.com>
583
584 * regformats/microblaze.dat: Delete file.
585
449aa9df
AKA
5862014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
587
588 * features/Makefile (microblaze-expedite): Replace pc with rpc.
589 * regformats/microblaze-with-stack-protect.dat: Regenerate.
590
ebb8ece2
SC
5912014-10-15 Siva Chandra Reddy <sivachandra@google.com>
592
593 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
594 as non-trivial.
595
82c48ac7
SC
5962014-10-15 Siva Chandra Reddy <sivachandra@google.com>
597
598 PR c++/13403
599 PR c++/15154
600 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
601 with qualified args.
602
c40cc657
JB
6032014-10-14 Joel Brobecker <brobecker@adacore.com>
604
605 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
606 of the case where the second operand is a pointer.
607 <BINOP_SUB>: Likewise.
608
0ea5cda8
SDJ
6092014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
610
611 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
612 only if it is not NULL.
613 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
614 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
615 (struct probe_ops) <clear_semaphore>: Likewise.
616 * tracepoint.c (start_tracing): Call set_semaphore only if it is
617 not NULL.
618 (stop_tracing): Likewise, for clear_semaphore.
619
f7088df3
SDJ
6202014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
621
622 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
623 using language_c, instead of current_language.
624
4e1bbde0
DE
6252014-10-13 Doug Evans <dje@google.com>
626
6ff5a0f6 627 * python/py-objfile.c (objfpy_initialize): New function.
4e1bbde0 628 (objfpy_new, objfile_to_objfile_object): Call it.
6ff5a0f6 629 * python/py-progspace.c (pspy_initialize): New function.
4e1bbde0
DE
630 (pspy_new, pspace_to_pspace_object): Call it.
631
c780cc2f
JK
6322014-10-13 Miroslav Franc <mfranc@redhat.com>
633 Jan Kratochvil <jan.kratochvil@redhat.com>
634
635 Fix "save breakpoints" for "catch" command.
636 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
637 newline.
638
99894e11
JK
6392014-10-12 Miroslav Franc <mfranc@redhat.com>
640
641 Fix "save breakpoints" for "disable $bpnum" command.
642 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
643
3831839c
PA
6442014-10-10 Pedro Alves <palves@redhat.com>
645
646 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
647 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
648 (HFILES_NO_SRCDIR): Remove solib-irix.h.
649 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
650 and been removed.
651 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
652 * configure.ac: Remove references to IRIX.
653 * configure.host: Add *-*-irix* to the obsolete hosts section.
654 Remove all other references to irix.
655 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
656 Delete files.
657
cc3afae2
AKA
6582014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
659
660 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
661 isn't valid, release the tdesc arch data and return NULL.
662
cdfa0b0a
PA
6632014-10-10 Pedro Alves <palves@redhat.com>
664
665 * linux-tdep.c: Include observer.h.
666 (linux_inferior_data): New global.
667 (struct linux_info): New structure.
668 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
669 (get_linux_inferior_data): New functions.
670 (linux_vsyscall_range): Rename to ...
671 (linux_vsyscall_range_raw): ... this.
672 (linux_vsyscall_range): New function; handles caching.
673 (_initialize_linux_tdep): Register linux_inferior_data. Install
674 inferior_exit and inferior_appeared observers.
675
8b9a549d
PA
6762014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
677 Pedro Alves <palves@redhat.com>
678
679 PR symtab/14466
680 * solib-svr4.c (svr4_read_so_list): Rename to ...
681 (svr4_current_sos_1): ... this and change the function comment.
682 (svr4_current_sos): New function.
683
3437254d
PA
6842014-10-10 Pedro Alves <palves@redhat.com>
685
686 * arch-utils.c (default_vsyscall_range): New function.
687 * arch-utils.h (default_vsyscall_range): New declaration.
688 * gdbarch.sh (vsyscall_range): New hook.
689 * gdbarch.h, gdbarch.c: Regenerate.
690 * linux-tdep.c (linux_vsyscall_range): New function.
691 (linux_init_abi): Install linux_vsyscall_range as
692 vsyscall_range gdbarch hook.
693 * memrange.c (address_in_mem_range): New function.
694 * memrange.h (address_in_mem_range): New declaration.
695 * symfile-mem.c (find_vdso_size): Delete function.
696 (add_vsyscall_page): Use gdbarch_vsyscall_range.
697
31cc0b80
PA
6982014-10-10 Pedro Alves <palves@redhat.com>
699
700 * infrun.c (normal_stop): Fix typo in comment.
701
3e3286a2
SDJ
7022014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
703
704 PR tdep/9390
705 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
706 typo when using logical AND to determine instruction type.
707
fcbdedf8
YQ
7082014-10-09 Yao Qi <yao@codesourcery.com>
709
710 * infrun.c (handle_signal_stop): Remove local variable
711 'printed'.
712
db984616
SS
7132014-10-08 Stan Shebs <stan@codesourcery.com>
714
715 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
716
3ba37e6c
GB
7172014-10-08 Gary Benson <gbenson@redhat.com>
718
719 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
720
a442d071
GB
7212014-10-08 Gary Benson <gbenson@redhat.com>
722
723 * common/common-defs.h: Include common-exceptions.h.
724 * exceptions.h: Do not include common-exceptions.h.
725
6f1947e8
GB
7262014-10-08 Gary Benson <gbenson@redhat.com>
727
728 * common/common-defs.h: Include cleanups.h.
729 * common/common-exceptions.c: Do not include cleanups.h.
730 * utils.h: Likewise.
731
c765fdb9
GB
7322014-10-08 Gary Benson <gbenson@redhat.com>
733
734 * ada-lang.c: Do not include exceptions.h.
735 * ada-valprint.c: Likewise.
736 * amd64-tdep.c: Likewise.
737 * auto-load.c: Likewise.
738 * block.c: Likewise.
739 * break-catch-throw.c: Likewise.
740 * breakpoint.c: Likewise.
741 * btrace.c: Likewise.
742 * c-lang.c: Likewise.
743 * cli/cli-cmds.c: Likewise.
744 * cli/cli-interp.c: Likewise.
745 * cli/cli-script.c: Likewise.
746 * completer.c: Likewise.
747 * corefile.c: Likewise.
748 * corelow.c: Likewise.
749 * cp-abi.c: Likewise.
750 * cp-support.c: Likewise.
751 * cp-valprint.c: Likewise.
752 * darwin-nat.c: Likewise.
753 * dwarf2-frame-tailcall.c: Likewise.
754 * dwarf2-frame.c: Likewise.
755 * dwarf2loc.c: Likewise.
756 * dwarf2read.c: Likewise.
757 * eval.c: Likewise.
758 * event-loop.c: Likewise.
759 * event-top.c: Likewise.
760 * f-valprint.c: Likewise.
761 * frame-unwind.c: Likewise.
762 * frame.c: Likewise.
763 * gdbtypes.c: Likewise.
764 * gnu-v2-abi.c: Likewise.
765 * gnu-v3-abi.c: Likewise.
766 * guile/scm-auto-load.c: Likewise.
767 * guile/scm-breakpoint.c: Likewise.
768 * guile/scm-cmd.c: Likewise.
769 * guile/scm-frame.c: Likewise.
770 * guile/scm-lazy-string.c: Likewise.
771 * guile/scm-param.c: Likewise.
772 * guile/scm-symbol.c: Likewise.
773 * guile/scm-type.c: Likewise.
774 * hppa-hpux-tdep.c: Likewise.
775 * i386-tdep.c: Likewise.
776 * inf-loop.c: Likewise.
777 * infcall.c: Likewise.
778 * infcmd.c: Likewise.
779 * infrun.c: Likewise.
780 * interps.c: Likewise.
781 * interps.h: Likewise.
782 * jit.c: Likewise.
783 * linespec.c: Likewise.
784 * linux-nat.c: Likewise.
785 * linux-thread-db.c: Likewise.
786 * m32r-rom.c: Likewise.
787 * main.c: Likewise.
788 * memory-map.c: Likewise.
789 * mi/mi-cmd-break.c: Likewise.
790 * mi/mi-cmd-stack.c: Likewise.
791 * mi/mi-interp.c: Likewise.
792 * mi/mi-main.c: Likewise.
793 * monitor.c: Likewise.
794 * nto-procfs.c: Likewise.
795 * objc-lang.c: Likewise.
796 * p-valprint.c: Likewise.
797 * parse.c: Likewise.
798 * ppc-linux-tdep.c: Likewise.
799 * printcmd.c: Likewise.
800 * probe.c: Likewise.
801 * python/py-auto-load.c: Likewise.
802 * python/py-breakpoint.c: Likewise.
803 * python/py-cmd.c: Likewise.
804 * python/py-finishbreakpoint.c: Likewise.
805 * python/py-frame.c: Likewise.
806 * python/py-framefilter.c: Likewise.
807 * python/py-function.c: Likewise.
808 * python/py-gdb-readline.c: Likewise.
809 * python/py-inferior.c: Likewise.
810 * python/py-infthread.c: Likewise.
811 * python/py-lazy-string.c: Likewise.
812 * python/py-linetable.c: Likewise.
813 * python/py-param.c: Likewise.
814 * python/py-prettyprint.c: Likewise.
815 * python/py-symbol.c: Likewise.
816 * python/py-type.c: Likewise.
817 * python/py-value.c: Likewise.
818 * python/python-internal.h: Likewise.
819 * python/python.c: Likewise.
820 * record-btrace.c: Likewise.
821 * record-full.c: Likewise.
822 * regcache.c: Likewise.
823 * remote-fileio.c: Likewise.
824 * remote-mips.c: Likewise.
825 * remote.c: Likewise.
826 * rs6000-aix-tdep.c: Likewise.
827 * rs6000-nat.c: Likewise.
828 * skip.c: Likewise.
829 * solib-darwin.c: Likewise.
830 * solib-dsbt.c: Likewise.
831 * solib-frv.c: Likewise.
832 * solib-ia64-hpux.c: Likewise.
833 * solib-spu.c: Likewise.
834 * solib-svr4.c: Likewise.
835 * solib.c: Likewise.
836 * spu-tdep.c: Likewise.
837 * stack.c: Likewise.
838 * stap-probe.c: Likewise.
839 * symfile-mem.c: Likewise.
840 * symmisc.c: Likewise.
841 * target.c: Likewise.
842 * thread.c: Likewise.
843 * top.c: Likewise.
844 * tracepoint.c: Likewise.
845 * tui/tui-interp.c: Likewise.
846 * typeprint.c: Likewise.
847 * utils.c: Likewise.
848 * valarith.c: Likewise.
849 * valops.c: Likewise.
850 * valprint.c: Likewise.
851 * value.c: Likewise.
852 * varobj.c: Likewise.
853 * windows-nat.c: Likewise.
854 * xml-support.c: Likewise.
855
484933d1
MR
8562014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
857
858 * mips-tdep.c (add_offset_16): Rewrite to implement what the
859 name implies.
860 (extended_mips16_next_pc): Update accordingly.
861
ab50adb6
MR
8622014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
863
864 * mips-tdep.c (mips16_instruction_is_compact_branch): New
865 function.
866 (micromips_instruction_is_compact_branch): Likewise.
867 (mips16_scan_prologue): Terminate scanning upon seeing a branch
868 or a compact jump, reaching a jump delay slot, or seeing a
869 second non-prologue instruction.
870 (micromips_scan_prologue): Also terminate scanning upon seeing a
871 compact branch or jump, or reaching a branch or jump delay slot.
872 (mips32_scan_prologue): Terminate scanning upon reaching a branch
873 or jump delay slot, or seeing a second non-prologue instruction.
874 (mips32_instruction_has_delay_slot): Retain instruction
875 examination code only, update arguments accordingly and move
876 instruction fetch pieces to...
877 (mips32_insn_at_pc_has_delay_slot): ... this new function.
878 (micromips_instruction_has_delay_slot): Likewise and to...
879 (micromips_insn_at_pc_has_delay_slot): ... this new function.
880 (mips16_instruction_has_delay_slot): Likewise and to...
881 (mips16_insn_at_pc_has_delay_slot): ... this new function.
882 (mips_single_step_through_delay): Update accordingly.
883 (mips_adjust_breakpoint_address): Likewise.
884
ae790652
MR
8852014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
886
887 * mips-tdep.c (micromips_instruction_has_delay_slot): When
888 !mustbe32 also return 1 for 32-bit instructions.
889 (mips16_instruction_has_delay_slot): Likewise. Add an
890 explanatory comment.
891
9b807e7b
MR
8922014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
893
894 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
895 symbols special.
896
0d5ed153
MR
8972014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
898
899 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
900 update comments.
901 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
902 for the breakpoint's address. Don't preinitialize `placed_size'.
903 (insert_bp_location): Set `reqstd_address' rather than
904 `placed_address'.
905 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
906 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
907 address.
908 (bkpt_remove_location): Likewise.
909 (deprecated_insert_raw_breakpoint): Likewise.
910 (deprecated_remove_raw_breakpoint): Likewise.
911 (find_single_step_breakpoint): Likewise.
912 * mem-break.c (default_memory_insert_breakpoint): Use
913 `reqstd_address' for the breakpoint's address. Don't set
914 `placed_address' or `placed_size' if breakpoint contents couldn't
915 have been determined.
916 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
917 the breakpoint's address.
918 (remote_insert_hw_breakpoint): Likewise. Don't set
919 `placed_address' or `placed_size' if breakpoint couldn't have been
920 set.
921 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
922 `reqstd_address' for the breakpoint's address.
923 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
924 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
925 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
926 * microblaze-linux-tdep.c
927 (microblaze_linux_memory_remove_breakpoint): Likewise.
928 * monitor.c (monitor_insert_breakpoint): Likewise.
929 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
930 (procfs_insert_hw_breakpoint): Likewise.
931 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
932 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
933 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
934 * remote-mips.c (mips_insert_breakpoint): Likewise.
935 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
936
3e871532
LM
9372014-10-03 Luis Machado <lgustavo@codesourcery.com>
938
939 * valops.c (value_assign): Check for bit field assignments
940 before calling architecture-specific register value
941 conversion functions.
942
ec48dc8b
PM
9432014-10-03 Pierre Muller <muller@sourceware.org>
944
945 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
946
b57bacec
PA
9472014-10-02 Pedro Alves <palves@redhat.com>
948
949 * breakpoint.c (breakpoints_should_be_inserted_now): Use
950 threads_are_executing.
951 * breakpoint.h (breakpoints_should_be_inserted_now): Add
952 describing comment.
953 * gdbthread.h (threads_are_executing): Declare.
954 (handle_signal_stop) <random signals>: Don't print about the
955 signal here if stopping.
956 (end_stepping_range): Don't notify observers here.
957 (normal_stop): Update the thread list. If stopped by a random
958 signal or a stepping range ended, notify observers.
959 * thread.c (threads_executing): New global.
960 (init_thread_list): Clear 'threads_executing'.
961 (set_executing): Set or clear 'threads_executing'.
962 (threads_are_executing): New function.
963 (update_threads_executing): New function.
964 (update_thread_list): Use it.
965
13fd3ff3
PA
9662014-10-02 Pedro Alves <palves@redhat.com>
967
968 PR breakpoints/17431
969 * breakpoint.c (update_breakpoints_after_exec): Don't create
970 overlay, longjmp, std terminate nor exception breakpoints here.
971
32990ada
PA
9722014-10-02 Pedro Alves <palves@redhat.com>
973
974 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
975 Adjust comments.
976 * inferior.c (find_inferior_for_program_space): Give preference to
977 the current inferior.
978 * inferior.h (find_inferior_for_program_space): Update comment.
979 * progspace.c (switch_to_program_space_and_thread): Prefer the
980 current inferior if it's bound to the program space requested. If
981 the inferior found doesn't have a PID yet, don't bother looking up
982 a thread.
983 * progspace.h (switch_to_program_space_and_thread): Adjust
984 comment.
985 * thread.c (any_thread_of_process, any_live_thread_of_process):
986 Give preference to the current thread.
987
0fec99e8
PA
9882014-10-01 Pedro Alves <palves@redhat.com>
989
990 * breakpoint.c (insert_bp_location): Error out if inserting a
991 software breakpoint at a read-only address.
992 * target.c (memory_xfer_check_region): New function, factored out
993 from ...
994 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
995 ULONGEST.
996 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
997 against the memory region attributes.
998
2ddf4301
SM
9992014-10-01 Simon Marchi <simon.marchi@ericsson.com>
1000
1001 * NEWS: Announce new exit-code field in -list-thread-groups
1002 output.
1003 * inferior.c (exit_inferior_1): Don't clear exit code.
1004 (inferior_appeared): Clear exit code.
1005 * mi/mi-main.c (print_one_inferior): Add printing of the exit
1006 code.
1007
5fdeec1d
PA
10082014-10-01 Pedro Alves <palves@redhat.com>
1009
1010 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
1011 GENERATED" along with emacs/vi read-only markers.
1012 * regformats/aarch64.dat: Regenerate.
1013 * regformats/arm-with-iwmmxt.dat: Regenerate.
1014 * regformats/arm-with-neon.dat: Regenerate.
1015 * regformats/arm-with-vfpv2.dat: Regenerate.
1016 * regformats/arm-with-vfpv3.dat: Regenerate.
1017 * regformats/i386/amd64-avx-linux.dat: Regenerate.
1018 * regformats/i386/amd64-avx.dat: Regenerate.
1019 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
1020 * regformats/i386/amd64-avx512.dat: Regenerate.
1021 * regformats/i386/amd64-linux.dat: Regenerate.
1022 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
1023 * regformats/i386/amd64-mpx.dat: Regenerate.
1024 * regformats/i386/amd64.dat: Regenerate.
1025 * regformats/i386/i386-avx-linux.dat: Regenerate.
1026 * regformats/i386/i386-avx.dat: Regenerate.
1027 * regformats/i386/i386-avx512-linux.dat: Regenerate.
1028 * regformats/i386/i386-avx512.dat: Regenerate.
1029 * regformats/i386/i386-linux.dat: Regenerate.
1030 * regformats/i386/i386-mmx-linux.dat: Regenerate.
1031 * regformats/i386/i386-mmx.dat: Regenerate.
1032 * regformats/i386/i386-mpx-linux.dat: Regenerate.
1033 * regformats/i386/i386-mpx.dat: Regenerate.
1034 * regformats/i386/i386.dat: Regenerate.
1035 * regformats/i386/x32-avx-linux.dat: Regenerate.
1036 * regformats/i386/x32-avx.dat: Regenerate.
1037 * regformats/i386/x32-avx512-linux.dat: Regenerate.
1038 * regformats/i386/x32-avx512.dat: Regenerate.
1039 * regformats/i386/x32-linux.dat: Regenerate.
1040 * regformats/i386/x32.dat: Regenerate.
1041 * regformats/microblaze-with-stack-protect.dat: Regenerate.
1042 * regformats/mips-dsp-linux.dat: Regenerate.
1043 * regformats/mips-linux.dat: Regenerate.
1044 * regformats/mips64-dsp-linux.dat: Regenerate.
1045 * regformats/mips64-linux.dat: Regenerate.
1046 * regformats/nios2-linux.dat: Regenerate.
1047 * regformats/rs6000/powerpc-32.dat: Regenerate.
1048 * regformats/rs6000/powerpc-32l.dat: Regenerate.
1049 * regformats/rs6000/powerpc-64l.dat: Regenerate.
1050 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
1051 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
1052 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
1053 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
1054 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
1055 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
1056 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
1057 * regformats/s390-linux32.dat: Regenerate.
1058 * regformats/s390-linux32v1.dat: Regenerate.
1059 * regformats/s390-linux32v2.dat: Regenerate.
1060 * regformats/s390-linux64.dat: Regenerate.
1061 * regformats/s390-linux64v1.dat: Regenerate.
1062 * regformats/s390-linux64v2.dat: Regenerate.
1063 * regformats/s390-te-linux64.dat: Regenerate.
1064 * regformats/s390x-linux64.dat: Regenerate.
1065 * regformats/s390x-linux64v1.dat: Regenerate.
1066 * regformats/s390x-linux64v2.dat: Regenerate.
1067 * regformats/s390x-te-linux64.dat: Regenerate.
1068 * regformats/tic6x-c62x-linux.dat: Regenerate.
1069 * regformats/tic6x-c62x.dat: Regenerate.
1070 * regformats/tic6x-c64x-linux.dat: Regenerate.
1071 * regformats/tic6x-c64x.dat: Regenerate.
1072 * regformats/tic6x-c64xp-linux.dat: Regenerate.
1073 * regformats/tic6x-c64xp.dat: Regenerate.
1074
db74e4ba
PA
10752014-10-01 Pedro Alves <palves@redhat.com>
1076
1077 * features/Makefile: Update comments.
1078 (XMLTOC): List all xml files we build C files from.
1079 (clean-cfiles): New rule.
1080
d63f2f84
PA
10812014-10-01 Pedro Alves <palves@redhat.com>
1082
1083 * features/i386/amd64-avx512-linux.c: Regenerate.
1084 * features/i386/amd64-avx512.c: Regenerate.
1085 * features/i386/x32-avx512-linux.c: Regenerate.
1086 * features/i386/x32-avx512.c: Regenerate.
1087
20ad026d
PA
10882014-10-01 Pedro Alves <palves@redhat.com>
1089
1090 * features/Makefile (WHICH): Remove arm-with-m,
1091 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
1092
acc9fe45
PA
10932014-10-01 Pedro Alves <palves@redhat.com>
1094
1095 * features/Makefile (clean): New rule.
1096
e001e535
PA
10972014-10-01 Pedro Alves <palves@redhat.com>
1098
1099 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
1100 (zmm14h): Add missing end quotes.
1101
bdc14417
PA
11022014-10-01 Pedro Alves <palves@redhat.com>
1103
1104 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
1105 * features/aarch64.c: Regenerate.
1106
d83ad864
DB
11072014-09-30 Don Breazeal <donb@codesourcery.com>
1108
1109 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
1110 code so as to work with follow_fork_inferior.
1111 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
1112 (inf_ttrace_create_inferior): Remove reference to
1113 inf_ttrace_vfork_ppid.
1114 (inf_ttrace_attach): Ditto.
1115 (inf_ttrace_detach): Ditto.
1116 (inf_ttrace_kill): Use current_inferior instead of
1117 inf_ttrace_vfork_ppid.
1118 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
1119 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
1120 inferior away from the parent.
1121 * infrun.c (follow_fork): Call follow_fork_inferior instead of
1122 target_follow_fork.
1123 (follow_fork_inferior): New function.
1124 (follow_inferior_reset_breakpoints): Make function static.
1125 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
1126 * linux-nat.c (linux_child_follow_fork): Move target-independent
1127 code to infrun.c:follow_fork_inferior.
1128
29082443
AA
11292014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1130
1131 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
1132 * gdbarch.c: Regenerate.
1133 * gdbarch.h: Likewise.
1134 * corelow.c (sniff_core_bfd): Drop presence check for deleted
1135 gdbarch method 'regset_from_core_section'.
1136 (get_core_register_section): Remove handling for the case that
1137 regset == NULL and regset_from_core_section is defined.
1138 (get_core_registers): Drop check for deleted method.
1139 * procfs.c (procfs_do_thread_registers): Adjust comment.
1140
f968fe80
AA
11412014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1142
1143 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
1144 (linux_nat_make_corefile_notes): Remove.
1145 (linux_target_install_ops): Do not set target method
1146 'make_corefile_notes'.
1147 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
1148 Remove field.
1149 (linux_corefile_thread_callback): Instead of args->collect, call
1150 linux_collect_thread_registers.
1151 (linux_make_corefile_notes): Remove 'collect' parameter. Return
1152 NULL unless there is a regset iterator.
1153 (linux_make_corefile_notes_1): Remove.
1154 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
1155 by linux_make_corefile_notes.
1156 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
1157
174ad59a
AA
11582014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1159
1160 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
1161 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
1162 Remove.
1163 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
1164
97094034
AA
11652014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1166
1167 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
1168 (xtensa_iterate_over_regset_sections): New.
1169 (xtensa_gdbarch_init): Adjust gdbarch initialization.
1170
f73d3ce7
AA
11712014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1172
1173 * vax-tdep.c (vax_regset_from_core_section): Remove.
1174 (vax_iterate_over_regset_sections): New.
1175 (vax_gdbarch_init): Adjust gdbarch initialization.
1176
cb24567a
AA
11772014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1178
1179 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
1180 (tilegx_regset_from_core_section): Remove.
1181 (tilegx_iterate_over_regset_sections): New.
1182 (tilegx_linux_init_abi): Adjust gdbarch initialization.
1183
e5139de8
AA
11842014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1185
1186 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
1187 (sparc_iterate_over_regset_sections): New.
1188 (sparc32_gdbarch_init): Adjust gdbarch initialization.
1189 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
1190 targets.
1191 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
1192 (sparc64fbsd_init_abi): Call fbsd_init_abi.
1193 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
1194 target method 'make_corefile_notes'.
1195
c6d41a6f
AA
11962014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1197
1198 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
1199 'sizeof_gregset' and 'sizeof_fpregset'.
1200 * sh-tdep.c (sh_regset_from_core_section): Remove.
1201 (sh_iterate_over_regset_sections): New.
1202 (sh_gdbarch_init): Adjust gdbarch initialization.
1203 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
1204 sizeof_fpregset.
1205 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
1206 'sizeof_gregset'.
1207
9845a0b5
AA
12082014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1209
1210 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
1211 (score7_linux_iterate_over_regset_sections): New.
1212 (score_gdbarch_init): Adjust gdbarch initialization.
1213
23ea9aeb
AA
12142014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1215
1216 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
1217 FreeBSD targets.
1218 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
1219 method 'make_corefile_notes'.
1220 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
1221 (ppcfbsd_regset_from_core_section): Remove.
1222 (ppcfbsd_iterate_over_regset_sections): New.
1223 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
1224 initialization.
1225 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
1226 (ppcnbsd_iterate_over_regset_sections): New.
1227 (ppcnbsd_init_abi): Adjust.
1228 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
1229 (ppcobsd_iterate_over_regset_sections): New.
1230 (ppcobsd_init_abi): Adjust.
1231 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
1232 (rs6000_aix_iterate_over_regset_sections): New.
1233 (rs6000_aix_init_osabi): Adjust.
1234
c5b8d704
AA
12352014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1236
1237 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
1238 (nios2_regset_from_core_section): Remove.
1239 (nios2_iterate_over_regset_sections): New.
1240 (nios2_linux_init_abi): Adjust gdbarch initialization.
1241
3636e608
AA
12422014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1243
1244 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
1245 (am33_iterate_over_regset_sections): New.
1246 (am33_linux_init_osabi): Adjust gdbarch initialization.
1247
d4036235
AA
12482014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1249
1250 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
1251 (mips_linux_iterate_over_regset_sections): New.
1252 (mips_linux_init_abi): Adjust gdbarch initialization.
1253 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
1254 (mips64obsd_iterate_over_regset_sections): New.
1255 (mips64obsd_init_abi): Adjust.
1256 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
1257 (mipsnbsd_iterate_over_regset_sections): New.
1258 (mipsnbsd_init_abi): Adjust.
1259
b61ddd6e
AA
12602014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1261
1262 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
1263 (m88k_iterate_over_regset_sections): New.
1264 (m88k_gdbarch_init): Adjust gdbarch initialization.
1265
55a2906a
AA
12662014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1267
1268 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
1269 (ia64_linux_iterate_over_regset_sections): New.
1270 (ia64_linux_init_abi): Adjust gdbarch initialization.
1271
022c98ab
AA
12722014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1273
1274 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
1275 (m68kbsd_iterate_over_regset_sections): New.
1276 (m68kbsd_init_abi): Adjust gdbarch initialization.
1277 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
1278 (m68k_linux_iterate_over_regset_sections): New.
1279 (m68k_linux_init_abi): Adjust gdbarch initialization.
1280
5fac247f
AA
12812014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1282
1283 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
1284 (m32r_linux_regset_from_core_section): Remove.
1285 (m32r_linux_iterate_over_regset_sections): New.
1286 (m32r_linux_init_abi): Adjust gdbarch initialization.
1287
490496c3
AA
12882014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1289
1290 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
1291 (amd64obsd_iterate_over_regset_sections): New.
1292 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
1293 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
1294 Remove.
1295 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
1296 regset_from_core_section initialization.
1297 * i386-tdep.c (i386_regset_from_core_section): Remove.
1298 (i386_iterate_over_regset_sections): New.
1299 (i386_gdbarch_init): Adjust gdbarch initialization.
1300 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
1301 (i386_iterate_over_regset_sections): New prototype.
1302 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
1303 Remove.
1304 (i386obsd_aout_iterate_over_regset_sections): New.
1305 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
1306 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
1307 targets.
1308 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
1309 (amd64fbsd_init_abi): Call fbsd_init_abi.
1310 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
1311 (i386fbsd4_init_abi): Call fbsd_init_abi.
1312 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
1313 target method 'make_corefile_notes'.
1314 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
1315
50c5eb53
AA
13162014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1317
1318 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
1319 (hppa_hpux_iterate_over_regset_sections): New.
1320 (hppa_hpux_init_abi): Adjust gdbarch initialization.
1321 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
1322 (hppa_linux_iterate_over_regset_sections): New.
1323 (hppa_linux_init_abi): Adjust.
1324 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
1325 (hppanbsd_iterate_over_regset_sections): New.
1326 (hppanbsd_init_abi): Adjust.
1327 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
1328 (hppaobsd_iterate_over_regset_sections): New.
1329 (hppaobsd_init_abi): Adjust.
1330
66afae4f
AA
13312014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1332
1333 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
1334 (frv_linux_iterate_over_regset_sections): New.
1335 (frv_linux_init_abi): Adjust gdbarch initialization.
1336
ed09174e
AA
13372014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1338
1339 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
1340 (armbsd_iterate_over_regset_sections): New prototype.
1341 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
1342 (armbsd_iterate_over_regset_sections): New.
1343 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
1344 initialization.
1345
dff2166e
AA
13462014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1347
1348 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
1349 (alpha_linux_iterate_over_regset_sections): New.
1350 (alpha_linux_init_abi): Adjust gdbarch initialization.
1351 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
1352 prototype.
1353 (alphanbsd_iterate_over_regset_sections): New prototype.
1354
4108500a
AA
13552014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1356
1357 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
1358 Remove.
1359 (aarch64_linux_iterate_over_regset_sections): New.
1360 (aarch64_linux_init_abi): Adjust gdbarch initialization.
1361
a904c024
AA
13622014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1363
1364 * fbsd-tdep.c: New file.
1365 * fbsd-tdep.h: New file.
1366 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
1367 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
1368 (ALLDEPFILES): Add fbsd-tdep.c.
1369
8f0435f7
AA
13702014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1371
1372 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
1373 parameter.
1374 * gdbarch.h: Regenerate.
1375 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
1376 iterator.
1377 (get_core_register_section): Add parameter 'regset' and use it, if
1378 set. Add parameter 'min_size' and verify the bfd section size
1379 against it.
1380 (get_core_registers_cb): Add parameter 'regset' and pass it to
1381 get_core_register section. For the "standard" register sections
1382 ".reg" and ".reg2", set an appropriate default for human_name.
1383 (get_core_registers): Don't abort when the gdbarch has an iterator
1384 but no regset_from_core_section. Add NULL/0 for parameters
1385 'regset'/'min_size' in calls to get_core_register_section.
1386 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
1387 'regset' and use it instead of calling the
1388 regset_from_core_section gdbarch method.
1389 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
1390 * i386-tdep.c (i386_supply_xstateregset)
1391 (i386_collect_xstateregset, i386_xstateregset): Moved to
1392 i386-linux-tdep.c.
1393 (i386_regset_from_core_section): Drop handling for .reg-xfp and
1394 .reg-xstate.
1395 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
1396 core file support only if the regset iterator hasn't been set.
1397 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
1398 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
1399 Moved from i386-tdep.c and renamed to *_linux*.
1400 (i386_linux_iterate_over_regset_sections): Add regset parameter to
1401 each callback invocation. Allow any .reg-xstate size when reading
1402 from a core file.
1403 * amd64-tdep.c (amd64_supply_xstateregset)
1404 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
1405 amd64-linux-tdep.c.
1406 (amd64_regset_from_core_section): Remove.
1407 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
1408 install an amd64-specific regset_from_core_section gdbarch method.
1409 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
1410 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
1411 Moved from amd64-tdep.c and renamed to *_linux*.
1412 (amd64_linux_iterate_over_regset_sections): Add regset parameter
1413 to each callback invocation. Allow any .reg-xstate size when
1414 reading from a core file.
1415 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
1416 (arm_linux_iterate_over_regset_sections): Add regset parameter to
1417 each callback invocation.
1418 (arm_linux_init_abi): No longer set the regset_from_core_section
1419 gdbarch method.
1420 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
1421 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
1422 each callback invocation.
1423 (ppc_linux_init_abi): No longer set the regset_from_core_section
1424 gdbarch method.
1425 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
1426 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
1427 (s390_regset_from_core_section): Remove.
1428 (s390_iterate_over_regset_sections): Add regset parameter to each
1429 callback invocation.
1430 (s390_gdbarch_init): No longer set the regset_from_core_section
1431 gdbarch method. Drop initialization of deleted tdep fields.
1432
5aa82d05
AA
14332014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1434
1435 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
1436 (amd64_linux_iterate_over_regset_sections): New.
1437 (amd64_linux_init_abi_common): Don't install the regset section
1438 list, but the new iterator in gdbarch.
1439 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
1440 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
1441 (arm_linux_iterate_over_regset_sections): ...here. New function.
1442 (arm_linux_init_abi): Set iterator instead of section list.
1443 * corelow.c (get_core_registers_cb): New function, logic moved
1444 from...
1445 (get_core_registers): ...loop body here. Use new iterator method
1446 instead of walking through the regset section list.
1447 * gdbarch.sh: Remove 'core_regset_sections'. New method
1448 'iterate_over_regset_sections'. New typedef
1449 'iterate_over_regset_sections_cb'.
1450 * gdbarch.c: Regenerate.
1451 * gdbarch.h: Likewise.
1452 * i386-linux-tdep.c (i386_linux_regset_sections)
1453 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
1454 Remove.
1455 (i386_linux_iterate_over_regset_sections): New.
1456 (i386_linux_init_abi): Don't choose a regset section list, but
1457 install new iterator in gdbarch.
1458 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
1459 (linux_collect_regset_section_cb): New function, logic moved
1460 from...
1461 (linux_collect_thread_registers): ...loop body here. Use iterator
1462 method instead of walking through list.
1463 (linux_make_corefile_notes_1): Check for presence of iterator
1464 method instead of regset section list.
1465 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
1466 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
1467 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
1468 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
1469 (ppc_linux_iterate_over_regset_sections): ...here. New function.
1470 (ppc_linux_init_abi): Don't choose from above regset section
1471 lists, but install new iterator in gdbarch.
1472 * regset.h (struct core_regset_section): Remove.
1473 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
1474 have_linux_v1, have_linux_v2, and have_tdb.
1475 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
1476 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
1477 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
1478 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
1479 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
1480 (s390_iterate_over_regset_sections): ...here. New function. Use
1481 new tdep fields.
1482 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
1483 regset section lists, but install new iterator.
1484
2eca4a8d
JK
14852014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1486
1487 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
1488
a73c2b56
SM
14892014-09-26 Simon Marchi <simon.marchi@ericsson.com>
1490
1491 * progspace.c (print_program_space): Don't prune program spaces
1492 before printing them.
1493
03d46957
PA
14942014-09-25 Pedro Alves <palves@redhat.com>
1495
1496 * infrun.c (user_visible_resume_ptid): Don't check
1497 singlestep_breakpoints_inserted_p.
1498
e558d7c1
PA
14992014-09-25 Pedro Alves <palves@redhat.com>
1500
1501 * breakpoint.c (should_be_inserted): Add debug output.
1502
7f89fd65
PA
15032014-09-25 Pedro Alves <palves@redhat.com>
1504
1505 * infrun.c (stepping_past_instruction_at)
1506 (clear_exit_convenience_vars): Point at infrun.h instead of
1507 inferior.h.
1508 (handle_signal_stop): Fix typo.
1509
b7576e5c
YQ
15102014-09-24 Yao Qi <yao@codesourcery.com>
1511
1512 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
1513 bitmask.
1514
9a6cf368
GB
15152014-09-22 Gary Benson <gbenson@redhat.com>
1516
1517 * target.c (target_stop): Updated comment.
1518
03f4463b
GB
15192014-09-22 Gary Benson <gbenson@redhat.com>
1520
1521 * target/target.h (target_stop_ptid): Renamed as...
1522 (target_stop_and_wait): New function. Updated comment.
1523 All uses updated.
1524 (target_continue_ptid): Renamed as...
1525 (target_continue_no_signal): New function. Updated comment.
1526 All uses updated.
1527
a25a5a45
PA
15282014-09-22 Pedro Alves <palves@redhat.com>
1529
1530 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
1531 and "auto" merged.
1532 * breakpoint.c (enum ugll_insert_mode): New enum.
1533 (always_inserted_mode): Now a plain boolean.
1534 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
1535 (breakpoints_always_inserted_mode): Delete.
1536 (breakpoints_should_be_inserted_now): New function.
1537 (insert_breakpoints): Pass UGLL_INSERT to
1538 update_global_location_list instead of calling
1539 insert_breakpoint_locations manually.
1540 (create_solib_event_breakpoint_1): New, factored out from ...
1541 (create_solib_event_breakpoint): ... this.
1542 (create_and_insert_solib_event_breakpoint): Use
1543 create_solib_event_breakpoint_1 instead of calling
1544 insert_breakpoint_locations manually.
1545 (update_global_location_list): Change parameter type from boolean
1546 to enum ugll_insert_mode. All callers adjusted. Adjust to use
1547 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
1548 (update_global_location_list_nothrow): Change parameter type from
1549 boolean to enum ugll_insert_mode.
1550 (_initialize_breakpoint): "breakpoint always-inserted" option is
1551 now a boolean command. Update help text.
1552 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
1553 (breakpoints_should_be_inserted_now): New declaration.
1554 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
1555 Remove breakpoints_always_inserted_mode check.
1556 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
1557 * remote.c (remote_start_remote): Likewise.
1558
04086b45
PA
15592014-09-22 Pedro Alves <palves@redhat.com>
1560
1561 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
1562 (insert_breakpoints): Don't call insert_breakpoint_locations here.
1563 Instead, pass UGLL_INSERT to update_global_location_list.
1564 (update_global_location_list): Change parameter type from boolean
1565 to enum ugll_insert_mode. All callers adjusted. Adjust to use
1566 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
1567 (create_solib_event_breakpoint_1): New, factored out from ...
1568 (create_solib_event_breakpoint): ... this.
1569 (create_and_insert_solib_event_breakpoint): Use
1570 create_solib_event_breakpoint_1 instead of calling
1571 insert_breakpoint_locations manually.
1572 (update_global_location_list): Handle UGLL_INSERT.
1573
44702360
PA
15742014-09-22 Pedro Alves <palves@redhat.com>
1575
1576 * breakpoint.c (enum ugll_insert_mode): New enum.
1577 (update_global_location_list)
1578 (update_global_location_list_nothrow): Change parameter type from
1579 boolean to enum ugll_insert_mode. All callers adjusted.
1580
93c6145a
JB
15812014-09-19 Joel Brobecker <brobecker@adacore.com>
1582
1583 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
1584 SystemTap support in GDB.
1585
89a5711c
DB
15862014-09-19 Don Breazeal <donb@codesourcery.com>
1587
1588 * linux-nat.c (linux_handle_extended_wait): Call
1589 linux_ptrace_get_extended_event.
1590 (wait_lwp): Call linux_is_extended_waitstatus.
1591 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
1592 and linux_is_extended_waitstatus.
1593 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
1594 linux_ptrace_get_extended_event.
1595 (linux_ptrace_get_extended_event): New function.
1596 (linux_is_extended_waitstatus): New function.
1597 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
1598 (linux_is_extended_waitstatus): New declarations.
1599
c3b7b696
YQ
16002014-09-19 Yao Qi <yao@codesourcery.com>
1601
1602 * dwarf2read.c (dwarf_decode_lines): Update declaration.
1603 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
1604 comments. Callers update.
1605 (dwarf_decode_lines): Likewise.
1606 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
1607 comments. Skip the line table if 'lowpc' is greater than
1608 'address'. Don't check
1609 dwarf2_per_objfile->has_section_at_zero.
1610
2b4fd423
DE
16112014-09-18 Doug Evans <dje@google.com>
1612
1613 * NEWS: Mention new "producer" attribute of gdb.Symtab.
1614 * python/py-symtab.c (stpy_get_producer): New function.
1615 (symtab_object_getset): Add "producer" attribute.
1616
5e43d467
UW
16172014-09-17 Ulrich Weigand  <uweigand@de.ibm.com>
1618
1619 PR gdb/17384
1620 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
1621 (do_captured_read_memory_integer): Remove.
1622 (safe_read_memory_integer): Use target_read_memory directly instead
1623 of catching errors in do_captured_read_memory_integer.
1624
04e79979
MR
16252014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
1626
1627 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
1628 not gdb/doc.
1629
76aeec5b
SDJ
16302014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1631
1632 * objc-lang.c (find_implementation_from_class): Remove dead code.
1633
2f693f9d
SDJ
16342014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1635
1636 PR cli/7233
1637 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
1638 "fprintf_unfiltered (gdb_stdlog...)".
1639
bb9d5f81
PP
16402014-09-16 Patrick Palka <patrick@parcs.ath.cx>
1641
1642 PR breakpoints/12526
1643 * breakpoint.h (struct watchpoint): New fields val_bitpos and
1644 val_bitsize.
1645 * breakpoint.c (watch_command_1): Use these fields to retain
1646 bitfield information.
1647 (extract_bitfield_from_watchpoint_value): New function.
1648 (watchpoint_check): Use it.
1649 (update_watchpoint): Use it. Optimize the address and length of a
1650 HW watchpoint pointing to a bitfield.
1651 * value.h (unpack_value_bitfield): New prototype.
1652 * value.c (unpack_value_bitfield): Make extern.
1653
05db5edd
ST
16542014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
1655
1656 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
1657 x86-dregs.o.
1658 * gnu-nat.c (inf_threads): New function.
1659 * gnu-nat.h (inf_threads_ftype): New typedef.
1660 (inf_threads): New declaration.
1661 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
1662 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
1663 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
1664 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
1665 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
1666 (i386_gnu_dr_get_control): New functions.
1667 (reg_addr): New structure.
1668 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
1669 i386 debugging register hooks.
1670 * NEWS: Mention this.
1671
5a578da5
OJ
16722014-08-13 Omair Javaid <omair.javaid@linaro.org>
1673
1674 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
1675 vector data transfer instructions.
1676 (arm_record_coproc_data_proc): Updated.
1677
f20f80dd
OJ
16782014-08-13 Omair Javaid <omair.javaid@linaro.org>
1679
1680 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
1681 arm_record_exreg_ld_st_insn.
1682 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
1683 load/store insns.
1684
851f26ae
OJ
16852014-08-13 Omair Javaid <omair.javaid@linaro.org>
1686
1687 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
1688 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
1689 processing instructions.
1690
1e1b6563
OJ
16912014-08-13 Omair Javaid <omair.javaid@linaro.org>
1692
1693 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
1694 for advance SIMD struct ld/st insn.
1695 (thumb2_record_decode_insn_handler): Replace stub handler with
1696 thumb2_record_asimd_struct_ld_st.
1697
60cc5e93
OJ
16982014-08-13 Omair Javaid <omair.javaid@linaro.org>
1699
1700 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
1701 for asimd, vfp and coprocessor insns.
1702 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
1703 and coprocessor insns.
1704 (thumb2_record_coproc_insn): New function.
1705 (thumb2_record_decode_insn_handler): Update coprocessor insns record
1706 handlers.
1707 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
1708 opcode 110 insns.
1709
81219e53
DE
17102014-09-13 Doug Evans <xdje42@gmail.com>
1711
1712 * NEWS: Mention new "queue-signal" command.
1713 * infcmd.c (queue_signal_command): New function.
1714 (_initialize_infcmd): Add new queue-signal command.
1715
d36bf488
DE
17162014-09-13 Doug Evans <xdje42@gmail.com>
1717
1718 * linux-nat.c (wait_lwp): Add debugging printf.
1719 (linux_nat_wait_1): Ditto.
1720
f37f681c
PA
17212014-09-12 Pedro Alves <palves@redhat.com>
1722
1723 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
1724 (create_and_insert_solib_event_breakpoint): New functions.
1725 * breakpoint.h (create_and_insert_solib_event_breakpoint)
1726 (remove_solib_event_breakpoints_at_next_stop): New declarations.
1727 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
1728 (remove_dbx_link_breakpoint): Delete function.
1729 (insert_dbx_link_bpt_in_file): Use
1730 create_and_insert_solib_event_breakpoint instead of
1731 deprecated_insert_raw_breakpoint.
1732 (procfs_wait): Don't check whether we hit __dbx_link here.
1733 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
1734 here.
1735 * solib-irix.c (base_breakpoint): Delete global.
1736 (disable_break): Delete function.
1737 (enable_break): Use create_solib_event_breakpoint
1738 instead of deprecated_insert_raw_breakpoint.
1739 (irix_solib_handle_event): New function.
1740 (irix_solib_create_inferior_hook): Don't run the target or disable
1741 the mapping-complete breakpoint here.
1742 (_initialize_irix_solib): Install irix_solib_handle_event as
1743 so_ops->handle_event hook.
1744
9d9bf2df
EBM
17452014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1746 Ulrich Weigand  <uweigand@de.ibm.com>
1747
1748 PR tdep/17379
1749 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
1750 instead of read_memory_unsigned_integer.
1751
b006a80e
GB
17522014-09-12 Gary Benson <gbenson@redhat.com>
1753
1754 * nat/linux-waitpid.c: Include common-defs.h.
1755 [GDBSERVER]: Add FIXME comment.
1756 [!GDBSERVER]: Don't include defs.h or signal.h.
1757 (linux_debug) [!GDBSERVER]: Remove empty block.
1758
296b1496
GB
17592014-09-12 Gary Benson <gbenson@redhat.com>
1760
1761 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
1762 Don't include defs.h or server.h.
1763
53f81362
GB
17642014-09-12 Gary Benson <gbenson@redhat.com>
1765
1766 * nat/linux-btrace.c: Include common-defs.h.
1767 Don't include defs.h, server.h or gdbthread.h.
1768 * nat/linux-btrace.h (struct target_ops): New forward declaration.
1769
727605ca
GB
17702014-09-12 Gary Benson <gbenson@redhat.com>
1771
1772 * common/agent.c: Include common-defs.h.
1773 Don't include defs.h or server.h.
1774 * common/buffer.c: Likewise.
1775 * common/common-debug.c: Likewise.
1776 * common/common-utils.c: Likewise.
1777 * common/errors.c: Likewise.
1778 * common/filestuff.c: Likewise.
1779 * common/format.c: Likewise.
1780 * common/gdb_vecs.c: Likewise.
1781 * common/print-utils.c: Likewise.
1782 * common/ptid.c: Likewise.
1783 * common/rsp-low.c: Likewise.
1784 * common/signals.c: Likewise.
1785 * common/vec.c: Likewise.
1786 * common/xml-utils.c: Likewise.
1787 * nat/linux-osdata.c: Likewise.
1788 * nat/linux-procfs.c: Likewise.
1789 * nat/linux-ptrace.c: Likewise.
1790 * nat/mips-linux-watch.c: Likewise.
1791 * target/waitstatus.c: Likewise.
1792
361c8ade
GB
17932014-09-12 Tom Tromey <tromey@redhat.com>
1794 Gary Benson <gbenson@redhat.com>
1795
1796 * common/common-regcache.h: New file.
1797 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
1798 * regcache.h: Include common-regcache.h.
1799 (regcache_read_pc): Don't declare.
1800 * regcache.c (get_thread_regcache_for_ptid): New function.
1801 * nat/linux-btrace.c: Don't include regcache.h.
1802 Include common-regcache.h.
1803 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
1804
a01cbb49
TS
18052014-09-11 Thomas Schwinge <thomas@codesourcery.com>
1806
1807 * regcache.h (struct regset): Declare.
1808
98880d46
PA
18092014-09-11 Pedro Alves <palves@redhat.com>
1810
1811 PR gdb/17347
1812 * main.c: Include "infrun.h".
1813 (catch_command_errors, catch_command_errors_const): Wait for the
1814 foreground command to complete.
1815 * top.c (maybe_wait_sync_command_done): New function, factored out
1816 from ...
1817 (maybe_wait_sync_command_done): ... here.
1818 * top.h (maybe_wait_sync_command_done): New declaration.
1819
bd9269f7
GB
18202014-09-11 Tom Tromey <tromey@redhat.com>
1821 Gary Benson <gbenson@redhat.com>
1822
1823 * common/symbol.h: New file.
1824 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
1825 * minsyms.c (find_minimal_symbol_address): New function.
1826 * common/agent.c: Include common/symbol.h.
1827 [!GDBSERVER]: Don't include objfiles.h.
1828 (agent_look_up_symbols): Use find_minimal_symbol_address.
1829
f8c1d06b
GB
18302014-09-11 Gary Benson <gbenson@redhat.com>
1831
1832 * target/target.h (target_stop_ptid, target_continue_ptid):
1833 Declare.
1834 * target.c (target_stop_ptid, target_continue_ptid): New
1835 functions.
1836 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
1837 (agent_run_command): Always use target_stop_ptid and
1838 target_continue_ptid.
1839
721ec300
GB
18402014-09-11 Tom Tromey <tromey@redhat.com>
1841 Gary Benson <gbenson@redhat.com>
1842
1843 * target/target.h: New file.
1844 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
1845 * target.h: Include target/target.h.
1846 (target_read_memory, target_write_memory): Don't declare.
1847 * target.c (target_read_uint32): New function.
1848 * common/agent.c: Include target/target.h.
1849 [!GDBSERVER]: Don't include target.h.
1850 (helper_thread_id): Type changed to uint32_t.
1851 (agent_get_helper_thread_id): Use target_read_uint32.
1852 (agent_run_command): Always use target_read_memory and
1853 target_write_memory.
1854 (agent_capability): Type changed to uint32_t.
1855 (agent_capability_check): Use target_read_uint32.
1856
c5e92cca
GB
18572014-09-11 Gary Benson <gbenson@redhat.com>
1858
1859 * common/common-debug.h (show_debug_regs): Declare.
1860 * common/common-debug.c (show_debug_regs): Define.
1861 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
1862 all uses with show_debug_regs. Replace all uses that considered
1863 debug_hw_points as a multi-value integer with straight boolean
1864 uses.
1865 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
1866 with show_debug_regs.
1867 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
1868 all uses with show_debug_regs.
1869 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
1870 uses with show_debug_regs.
1871
eeef931a
UW
18722014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
1873
1874 * findvar.c (address_from_register): Handle targets requiring
1875 a special conversion routine even for plain pointer types.
1876
8efa9855
UW
18772014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
1878
1879 * rs6000-nat.c (exec_one_dummy_insn): Remove.
1880 (store_register): Do not call exec_one_dummy_insn.
1881
eb479039
JB
18822014-09-10 Joel Brobecker <brobecker@adacore.com>
1883
1884 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
1885 dereference it first. Use value_enclosing_type instead of
1886 value_type.
1887 (ada_array_length): Likewise.
1888
deede10c
JB
18892014-09-10 Joel Brobecker <brobecker@adacore.com>
1890
1891 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
1892 Adjust function implementation and documentation accordingly.
1893 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
1894 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
1895 Update call to ada_value_ptr_subscript.
1896
7828a5f5
JB
18972014-09-10 Joel Brobecker <brobecker@adacore.com>
1898
1899 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
1900 instead of VAL's type.
1901
35782f14
JB
19022014-09-10 Joel Brobecker <brobecker@adacore.com>
1903
1904 * amd64-linux-nat.c: Add <sys/uio.h> #include.
1905
d342a0da
DE
19062014-09-09 Doug Evans <xdje42@gmail.com>
1907
1908 PR guile/17367
1909 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
1910 last parameter to pkg-config, not first.
1911 * configure.ac: Pass --with-guile provided pkg-config path to
1912 GDB_GUILE_PROGRAM_NAMES.
1913 * configure: Regenerate.
1914
b4a3d263
GKB
19152014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
1916
1917 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
1918 Bertazi".
1919
6e466374
MR
19202014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
1921
1922 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
1923 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
1924 the list of sections determining GDB_OSABI_IRIX.
1925
a1ada89a
JH
19262014-09-09 James Hogan <james.hogan@imgtec.com>
1927
1928 * MAINTAINERS (Write After Approval): Add "James Hogan".
1929
86db008d
JH
19302014-09-09 James Hogan <james.hogan@imgtec.com>
1931
1932 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
1933
72fde3df
JB
19342014-09-09 Joel Brobecker <brobecker@adacore.com>
1935
1936 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
1937
92d8d229
DE
19382014-09-08 Doug Evans <xdje42@gmail.com>
1939
1940 PR 17247
1941 * guile.c: #include <signal.h>.
1942 (_initialize_guile): Block SIGCHLD while initializing Guile.
1943
1944 Replaces the following, which is reverted.
1945
1946 2014-07-26 Doug Evans <xdje42@gmail.com>
1947
1948 PR 17185
1949 * configure.ac: Add check for header gc/gc.h.
1950 Add check for function setenv.
1951 * configure: Regenerate.
1952 * config.in: Regenerate.
1953 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1954
d81412aa
DE
19552014-09-08 Doug Evans <xdje42@gmail.com>
1956
1957 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
1958 with named constant. Fix style of pointer comparison.
1959 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
1960
a9f116cb
GKB
19612014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
1962
1963 PR gdb/17035
1964 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
1965 decide whether we display the command on "show user".
1966 * cli/cli-script.c (show_user_1): Only verify cmdlines after
1967 printing command name.
1968 * cli/cli-decode.h (cli_user_command_p): Declare new function.
1969 * cli/cli-decode.c (cli_user_command_p): Create helper function
1970 to verify whether cmd_list_element is a user-defined command.
1971
c75bd3a2
JK
19722014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1973
1974 PR python/17355
1975 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
1976 Fix goto out of TRY_CATCH.
1977
faa42425 19782014-09-06 Doug Evans <xdje42@gmail.com>
1a52a81c 1979 Tom Tromey <tromey@redhat.com>
faa42425
DE
1980
1981 PR 15276
1982 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
1983 $_any_caller_matches.
1984 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
1985 * python/lib/gdb/function/caller_is.py: New file.
1986
0d41ba00
DE
19872014-09-06 Doug Evans <xdje42@gmail.com>
1988
1989 * infcmd.c (program_info): Fix typo.
1990
474ca4f6
SDJ
19912014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
1992
1993 PR gdb/17235
1994 * stap-probe.c (stap_parse_single_operand): Delete unused variable
1995 'number'. New variable 'has_digit'. Rewrite code to deal with
1996 subexpressions on SDT probes.
1997
ebf13736
PA
19982014-09-04 Pedro Alves <palves@redhat.com>
1999
2000 * c-exp.y (parse_number): Skip handling base-switching prefixes if
2001 the input is only one character long.
2002
eb0b0463
SDJ
20032014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
2004
2005 PR fortran/17237
2006 * f-valprint.c (f_val_print): Specify the correct print option to
2007 use when printing integer values.
2008
5ee44bfa
GB
20092014-09-04 Gary Benson <gbenson@redhat.com>
2010
2011 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
2012 Remove code to cope with LWPs wrapped as PIDs.
2013 Add assertions to ensure no wrapped LWPs are passed.
2014
4875ffdb
PA
20152014-09-04 Pedro Alves <palves@redhat.com>
2016
2017 * value.c (value_ranges_copy_adjusted): New function, factored out
2018 from ...
2019 (value_contents_copy_raw): ... here.
2020 (unpack_value_bits_as_long_1): Rename back to ...
2021 (unpack_bits_as_long): ... this. Remove 'original_value' and
2022 'result' parameters. Change return type to LONGEST.
2023 (unpack_value_bits_as_long): Delete.
2024 (unpack_value_field_as_long_1): Delete.
2025 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
2026 (unpack_value_bitfield): New function.
2027 (value_field_bitfield): Reimplement using unpack_value_bitfield.
2028 (value_fetch_lazy): Use unpack_value_bitfield.
2029 * value.h (unpack_value_bits_as_long): Delete declaration.
2030
5f3b99cf
SS
20312014-09-03 Sasha Smundak <asmundak@google.com>
2032
2033 * python/py-frame.c (frapy_read_register): New function.
2034
ac740bc7
JH
20352014-09-03 James Hogan <james.hogan@imgtec.com>
2036
2037 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
2038 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
2039
7d793aa9
SDJ
20402014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
2041
2042 PR python/16699
2043 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
2044 function.
2045 (add_cmd): Set "completer_handle_brkchars" to NULL.
2046 * cli/cli-decode.h (struct cmd_list_element)
2047 <completer_handle_brkchars>: New field.
2048 * command.h (completer_ftype_void): New typedef.
2049 (set_cmd_completer_handle_brkchars): New prototype.
2050 * completer.c (set_gdb_completion_word_break_characters): New
2051 function.
2052 (complete_line_internal): Call "completer_handle_brkchars"
2053 callback from command.
2054 * completer.h: Include "command.h".
2055 (set_gdb_completion_word_break_characters): New prototype.
2056 * python/py-cmd.c (cmdpy_completer_helper): New function.
2057 (cmdpy_completer_handle_brkchars): New function.
2058 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
2059 (cmdpy_init): Set completer_handle_brkchars to
2060 cmdpy_completer_handle_brkchars.
2061
97ea6506
GB
20622014-09-03 Gary Benson <gbenson@redhat.com>
2063
2064 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
2065 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
2066 Loop conditions changed to equivalent form.
2067 (struct x86_debug_reg_state): Updated dr_ref_count comment.
2068 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
2069 ALL_DEBUG_ADDRESS_REGISTERS.
2070
d1437815
JB
20712014-09-03 Joel Brobecker <brobecker@adacore.com>
2072
2073 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
2074 description fix.
2075
9b94fcf1
DE
20762014-09-02 Doug Evans <dje@google.com>
2077
2078 * typeprint.c (find_global_typedef): Fix comment.
2079
df7e5265
GB
20802014-09-02 Gary Benson <gbenson@redhat.com>
2081
2082 * i386-nat.h: Renamed as...
2083 * x86-nat.h: New file. All type, function and variable name
2084 prefixes changed from "i386_" to "x86_". All references updated.
2085 * i386-nat.c: Renamed as...
2086 * x86-nat.c: New file. All type, function and variable name
2087 prefixes changed from "i386_" to "x86_". All references updated.
2088 * common/i386-xstate.h: Renamed as...
2089 * common/x86-xstate.h: New file. All type, function and variable
2090 name prefixes changed from "i386_" to "x86_". All references
2091 updated.
2092 * nat/i386-cpuid.h: Renamed as...
2093 * nat/x86-cpuid.h: New file. All type, function and variable name
2094 prefixes changed from "i386_" to "x86_". All references updated.
2095 * nat/i386-gcc-cpuid.h: Renamed as...
2096 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
2097 name prefixes changed from "i386_" to "x86_". All references
2098 updated.
2099 * nat/i386-dregs.h: Renamed as...
2100 * nat/x86-dregs.h: New file. All type, function and variable name
2101 prefixes changed from "i386_" to "x86_". All references updated.
2102 * nat/i386-dregs.c: Renamed as...
2103 * nat/x86-dregs.c: New file. All type, function and variable name
2104 prefixes changed from "i386_" to "x86_". All references updated.
2105
1c3569d4
MR
21062014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
2107
2108 * varobj.c (_initialize_varobj): Move to the end of file.
2109
ff55e1b5
GB
21102014-08-29 Gary Benson <gbenson@redhat.com>
2111
2112 * common/common-exceptions.h: New file.
2113 * common/common-exceptions.c: Likewise.
2114 * Makefile.in (SFILES): Add common/common-exceptions.c.
2115 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
2116 (COMMON_OBS): Add common-exceptions.o.
2117 (common-exceptions.o): New rule.
2118 * exceptions.h (common-exceptions.h): Include.
2119 (gdb_setjmp.h): Do not include.
2120 (return_reason): Moved to common-exceptions.h.
2121 (enum return_reason): Likewise.
2122 (RETURN_MASK): Likewise.
2123 (typedef return_mask): Likewise.
2124 (enum errors): Likewise.
2125 (struct gdb_exception): Likewise.
2126 (exceptions_state_mc_init): Likewise.
2127 (exceptions_state_mc_action_iter): Likewise.
2128 (exceptions_state_mc_action_iter_1): Likewise.
2129 (TRY_CATCH): Likewise.
2130 (throw_exception): Likewise.
2131 (throw_verror): Likewise.
2132 (throw_vquit): Likewise.
2133 (throw_error): Likewise.
2134 (throw_quit): Likewise.
2135 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
2136 (enum catcher_action): Likewise.
2137 (struct catcher): Likewise.
2138 (current_catcher): Likewise.
2139 (catcher_list_size): Likewise.
2140 (exceptions_state_mc_init): Likewise.
2141 (catcher_pop): Likewise.
2142 (exceptions_state_mc): Likewise.
2143 (exceptions_state_mc_action_iter): Likewise.
2144 (exceptions_state_mc_action_iter_1): Likewise.
2145 (throw_exception): Likewise.
2146 (exception_messages): Likewise.
2147 (exception_messages_size): Likewise.
2148 (throw_it): Likewise.
2149 (throw_verror): Likewise.
2150 (throw_vquit): Likewise.
2151 (throw_error): Likewise.
2152 (throw_quit): Likewise.
2153 (prepare_to_throw_exception): New function.
2154
e9bcb658
GB
21552014-08-29 Gary Benson <gbenson@redhat.com>
2156
2157 * common/gdb_setjmp.h: New file.
2158 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
2159 * configure.ac: Move sigsetjmp check...
2160 * common/common.m4: ...here.
2161 * configure: Regenerate.
2162 * cp-support.c (SIGJMP_BUF): Delete.
2163 (SIGSETJMP): Likewise.
2164 (SIGLONGJMP): Likewise.
2165 * exceptions.h (gdb_setjmp.h): Include.
2166 (setjmp.h): Do not include.
2167 (EXCEPTIONS_SIGJMP_BUF): Delete.
2168 (EXCEPTIONS_SIGSETJMP): Likewise.
2169 (EXCEPTIONS_SIGLONGJMP): Likewise.
2170 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
2171 from gdb_setjmp.h.
2172 * exceptions.c: Likewise.
2173
e3180625
GB
21742014-08-29 Gary Benson <gbenson@redhat.com>
2175
2176 * cleanups.h: Moved to...
2177 * common/cleanups.h: New file.
2178 * cleanups.c: Moved to...
2179 * common/cleanups.c: New file. Include common-defs.h and
2180 cleanups.h. Do not include defs.h.
2181 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
2182 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
2183 (cleanups.o): New rule.
2184
e3d6ba5d
GB
21852014-08-29 Gary Benson <gbenson@redhat.com>
2186
2187 * common/errors.h (internal_warning): New declaration.
2188 (internal_vwarning): Likewise.
2189 * common/errors.c (internal_warning): New function.
2190 * utils.h (internal_warning): Don't declare.
2191 (internal_vwarning): Likewise.
2192 * utils.c (internal_warning): Removed.
2193
075c7033
GB
21942014-08-29 Gary Benson <gbenson@redhat.com>
2195
2196 * main.c (captured_main): Use warning during startup.
2197 Prefix startup warning messages with command name.
2198
91b35fd0
GB
21992014-08-29 Gary Benson <gbenson@redhat.com>
2200
2201 * main.c (captured_main): Handle usage errors with error.
2202
b1ec390e
GB
22032014-08-29 Gary Benson <gbenson@redhat.com>
2204
2205 * go32-nat.c (go32_create_inferior): Replace a fprintf/
2206 exit pair with a call to error. Wrap the message with _().
2207
fd0ef3dd
GB
22082014-08-29 Gary Benson <gbenson@redhat.com>
2209
2210 * main.c (captured_main): Replace a fprintf/exit
2211 pair with a call to error. Wrap the message with _().
2212
e0e6bcab
GB
22132014-08-29 Gary Benson <gbenson@redhat.com>
2214
2215 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
2216 pairs with calls to error. Wrap the message with _().
2217
0d2f5c07
GB
22182014-08-29 Gary Benson <gbenson@redhat.com>
2219
2220 * utils.c (vwarning): Protect calls to target_terminal_ours
2221 and wrap_here.
2222
5df43998
GB
22232014-08-29 Gary Benson <gbenson@redhat.com>
2224
2225 * exceptions.c (print_flush): Protect calls to
2226 target_terminal_ours and wrap_here.
2227
2437fd32
GB
22282014-08-29 Gary Benson <gbenson@redhat.com>
2229
2230 * utils.h (filtered_printing_initialized): New declaration.
2231 * utils.c (abort_with_message): New function.
2232 (internal_vproblem): Use abort_with_message for first level
2233 recursive internal problems, and if gdb_stderr is not set up.
2234 Protect calls to target_terminal_ours, begin_line and query.
2235
f1f58506
DE
22362014-08-28 Doug Evans <dje@google.com>
2237
2238 * symtab.c (in_prologue): Move definition to better spot.
2239 (skip_prologue_using_sal): Ditto.
2240
aab2f208
DE
22412014-08-28 Doug Evans <dje@google.com>
2242
2243 * symtab.c (find_function_start_sal): Move definition to better spot.
2244
6b65d1b6
YQ
22452014-08-28 Yao Qi <yao@codesourcery.com>
2246
2247 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
2248 found_stack_adjust in forward scan. Remove condition check
2249 on found_stack_adjust which is always true. Indent the code.
2250
a1b34d15
YQ
22512014-08-28 Yao Qi <yao@codesourcery.com>
2252
2253 * dwarf2read.c (dwarf_decode_lines): Update declaration.
2254 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
2255 (dwarf_decode_lines): Remove argument
2256 want_line_info. Remove condition check on want_line_info.
2257 Callers update.
2258
d5962de5
DE
22592014-08-27 Doug Evans <dje@google.com>
2260
2261 * dwarf2read.c (dwarf_record_line): Fix typo.
2262
9b139002
SDJ
22632014-08-27 Patrick Palka <patrick@parcs.ath.cx>
2264
2265 * target.h (struct target_ops::to_terminal_save_ours): Remove
2266 declaration.
2267 (target_terminal_save_ours): Remove macro.
2268 * target-delegates.c: Regenerate.
2269 * inf-child.c (inf_child_target): Don't set the nonexistent
2270 field to_terminal_save_ours.
2271 * inferior.h (child_terminal_save_ours): Remove declaration.
2272 * terminal.h (gdb_save_tty_state): New declaration.
2273 * inflow.c (child_terminal_save_ours): Rename to ...
2274 (gdb_save_tty_state): ... this.
2275 * tui/tui.c: Include terminal.h.
2276 (tui_enable): Use gdb_save_tty_state instead of
2277 target_terminal_save_ours.
2278 (tui_disable): Likewise.
2279
9debeba0
DE
22802014-08-25 Doug Evans <dje@google.com>
2281
2282 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
2283 Pass NULL instead of 0 for context pointer.
2284
428fc5fc
YQ
22852014-08-25 Yao Qi <yao@codesourcery.com>
2286
2287 * dwarf2read.c: Fix grammatical error.
2288
cdc07690
YQ
22892014-08-24 Yao Qi <yao@codesourcery.com>
2290
2291 * dwarf2read.c (scan_partial_symbols): Update comments.
2292 Rename argument 'need_pc' with 'set_addrmap'.
2293 (add_partial_namespace): Rename argument 'need_pc' with
2294 'set_addrmap'.
2295 (add_partial_module): Likewise.
2296 (add_partial_subprogram): Likewise. Update comments.
2297 (dwarf2_name): Fix typo.
2298
a05a36a5
DE
22992014-08-22 Doug Evans <dje@google.com>
2300
2301 PR 17276
2302 * dwarf2read.c (dwarf_record_line_p): New function.
2303 (dwarf_decode_lines_1): Ignore subsequent line number entries
2304 for the same line if any entry had a non-zero discriminator.
2305
252a6764
DE
23062014-08-22 Doug Evans <dje@google.com>
2307
2308 * buildsym.h (record_line_ftype): New typedef.
2309 (record_line): Use it.
2310 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
2311 (dwarf_decode_lines_1): Call them.
2312
510db052
YQ
23132014-08-22 Yao Qi <yao@codesourcery.com>
2314
2315 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
2316 (ctf_end): Remove code.
2317
22fd09ae
JK
23182014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2319
2320 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
2321 (linux_make_corefile_notes): call update_thread_list, protected against
2322 exceptions.
2323
656e8868
PA
23242014-08-21 Pedro Alves <palves@redhat.com>
2325
2326 * infcmd.c (attach_command): Remove comment.
2327
de589d04
WN
23282014-08-21 Bin Cheng <bin.cheng@arm.com>
2329
2330 * aarch64-linux-nat.c (dr_changed_t): Change the type from
2331 unsigned LONGEST to ULONGEST.
2332
2a31c623
PA
23332014-08-20 Pedro Alves <palves@redhat.com>
2334
2335 * Makefile.in (check-read1): New rule.
2336
d36430db
JB
23372014-08-20 Joel Brobecker <brobecker@adacore.com>
2338
2339 * value.c (value_from_contents_and_address): Strip resolved_type's
2340 typedef layers before checking its TYPE_DATA_LOCATION.
2341
000339af
PA
23422014-08-20 Pedro Alves <palves@redhat.com>
2343
2344 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
2345
5f52445b
YQ
23462014-08-20 Yao Qi <yao@codesourcery.com>
2347
2348 * amd64-tdep.c (amd64_classify): Add a blank line after the
2349 example. Move "*/" to a new line.
2350 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
2351 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
2352 * dwarf2read.c (psymtab_include_file_name): Likewise.
2353
9a0dc9e3
PA
23542014-08-19 Andrew Burgess <aburgess@broadcom.com>
2355 Pedro Alves <palves@redhat.com>
2356
2357 PR symtab/14604
2358 PR symtab/14605
2359 * ada-lang.c (coerce_unspec_val_to_type): Use
2360 value_contents_copy_raw.
2361 * ada-valprint.c (val_print_packed_array_elements): Adjust.
2362 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
2363 * cp-valprint.c (cp_print_value_fields): Let the common printing
2364 code handle optimized out values.
2365 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
2366 * d-valprint.c (dynamic_array_type): Use
2367 value_bits_any_optimized_out.
2368 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
2369 check_any_valid fields.
2370 (check_pieced_value_bits): Delete and inline ...
2371 (check_pieced_synthetic_pointer): ... here.
2372 (check_pieced_value_validity): Delete.
2373 (check_pieced_value_invalid): Delete.
2374 (pieced_value_funcs): Remove check_validity and check_any_valid
2375 fields.
2376 (read_pieced_value): Use mark_value_bits_optimized_out.
2377 (write_pieced_value): Switch to use
2378 mark_value_bytes_optimized_out.
2379 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
2380 of assuming the whole value is optimized out.
2381 * findvar.c (read_frame_register_value): Remove special handling
2382 of optimized out registers.
2383 (value_from_register): Use mark_value_bytes_optimized_out.
2384 * frame-unwind.c (frame_unwind_got_optimized): Use
2385 mark_value_bytes_optimized_out.
2386 * jv-valprint.c (java_value_print): Adjust.
2387 (java_print_value_fields): Let the common printing code handle
2388 optimized out values.
2389 * mips-tdep.c (mips_print_register): Remove special handling of
2390 optimized out registers.
2391 * opencl-lang.c (lval_func_check_validity): Delete.
2392 (lval_func_check_any_valid): Delete.
2393 (opencl_value_funcs): Remove check_validity and check_any_valid
2394 fields.
2395 * p-valprint.c (pascal_object_print_value_fields): Let the common
2396 printing code handle optimized out values.
2397 * stack.c (read_frame_arg): Remove special handling of optimized
2398 out values. Fetch both VAL and ENTRYVAL before comparing
2399 contents. Adjust to value_available_contents_eq rename.
2400 * valprint.c (valprint_check_validity)
2401 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
2402 (val_print_array_elements): Adjust.
2403 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
2404 (value_bits_any_optimized_out): New function.
2405 (value_entirely_covered_by_range_vector): New function, factored
2406 out from value_entirely_unavailable.
2407 (value_entirely_unavailable): Reimplement.
2408 (value_entirely_optimized_out): New function.
2409 (insert_into_bit_range_vector): New function, factored out from
2410 mark_value_bits_unavailable.
2411 (mark_value_bits_unavailable): Reimplement.
2412 (struct ranges_and_idx): New struct.
2413 (find_first_range_overlap_and_match): New function, factored out
2414 from value_available_contents_bits_eq.
2415 (value_available_contents_bits_eq): Rename to ...
2416 (value_contents_bits_eq): ... this. Check both unavailable
2417 contents and optimized out contents.
2418 (value_available_contents_eq): Rename to ...
2419 (value_contents_eq): ... this.
2420 (allocate_value_lazy): Remove reference to the old optimized_out
2421 boolean.
2422 (allocate_optimized_out_value): Use
2423 mark_value_bytes_optimized_out.
2424 (require_not_optimized_out): Adjust to check whether the
2425 optimized_out vec is empty.
2426 (ranges_copy_adjusted): New function, factored out from
2427 value_contents_copy_raw.
2428 (value_contents_copy_raw): Also copy the optimized out ranges.
2429 Assert the destination ranges aren't optimized out.
2430 (value_contents_copy): Update comment, remove call to
2431 require_not_optimized_out.
2432 (value_contents_equal): Adjust to check whether the optimized_out
2433 vec is empty.
2434 (set_value_optimized_out, value_optimized_out_const): Delete.
2435 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
2436 New functions.
2437 (value_entirely_optimized_out, value_bits_valid): Delete.
2438 (value_copy): Take a VEC copy of the 'optimized_out' field.
2439 (value_primitive_field): Remove special handling of optimized out.
2440 (value_fetch_lazy): Assert that lazy values have no unavailable
2441 regions. Use value_bits_any_optimized_out. Remove some special
2442 handling for optimized out values.
2443 * value.h: Add intro comment about <optimized out> and
2444 <unavailable>.
2445 (struct lval_funcs): Remove check_validity and check_any_valid
2446 fields.
2447 (set_value_optimized_out, value_optimized_out_const): Remove.
2448 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
2449 New declarations.
2450 (value_bits_any_optimized_out): New declaration.
2451 (value_bits_valid): Delete declaration.
2452 (value_available_contents_eq): Rename to ...
2453 (value_contents_eq): ... this, and extend comments.
2454
6694c411
JK
24552014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2456
2457 Fix -fsanitize=address on unreadable inferior strings.
2458 * valprint.c (val_print_string): Fix access before BUFFER.
2459
89a1c21a
SM
24602014-08-19 Simon Marchi <simon.marchi@ericsson.com>
2461
2462 * target.c (target_struct_size): Remove.
2463 (target_struct_allocsize): Remove.
2464 (DEFAULT_ALLOCSIZE): Remove.
2465 (target_ops_p): New typedef.
2466 (DEF_VEC_P (target_ops_p)): New vector type.
2467 (target_structs): Change type to VEC (target_ops_p).
2468 (add_target_with_completer): Replace "push" code by VEC_safe_push.
2469 (find_default_run_target): Rewrite for loop following changes to
2470 target_structs.
2471
cb417230
JB
24722014-08-19 Joel Brobecker <brobecker@adacore.com>
2473
2474 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
2475 Adjust code accordingly. Adjust function description comment.
2476
817e0957
YQ
24772014-08-19 Yao Qi <yao@codesourcery.com>
2478
2479 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
2480 types.
2481
2974be62
AM
24822014-08-19 Alan Modra <amodra@gmail.com>
2483
2484 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
2485 * config.in: Regenerate.
2486 * configure: Regenerate.
2487
34abf635
GB
24882014-08-19 Tom Tromey <tromey@redhat.com>
2489 Gary Benson <gbenson@redhat.com>
2490
2491 * common/common-debug.h: New file.
2492 * common/common-debug.c: Likewise.
2493 * debug.c: Likewise.
2494 * Makefile.in (SFILES): Add common/common-debug.c.
2495 (HFILES_NO_SRCDIR): Add common/common-debug.h.
2496 (COMMON_OBS): Add common-debug.o and debug.o.
2497 (common-debug.o): New rule.
2498 * common/common-defs.h: Include common-debug.h.
2499 * common/agent.c (debug_agent_printf): New function.
2500 (DEBUG_AGENT): Redefine.
2501 * nat/i386-dregs.c (debug_printf): Undefine.
2502
f6e94d78
GB
25032014-08-19 Gary Benson <gbenson@redhat.com>
2504
2505 * common/common-defs.h: Include print-utils.h.
2506 * utils.h: Do not include print-utils.h.
2507
9239eeab
GB
25082014-08-19 Tom Tromey <tromey@redhat.com>
2509 Gary Benson <gbenson@redhat.com>
2510
2511 * common/common-types.h: New file.
2512 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
2513 * common/common-defs.h: Include common-types.h.
2514 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
2515 (ULONGEST): Remove.
2516
ef87c8bb
GB
25172014-08-19 Tom Tromey <tromey@redhat.com>
2518 Gary Benson <gbenson@redhat.com>
2519
2520 * common/errors.h: New file.
2521 * common/errors.c: Likewise.
2522 * Makefile.in (SFILES): Add common/errors.c.
2523 (HFILES_NO_SRCDIR): Add common/errors.h.
2524 (COMMON_OBS): Add errors.o.
2525 (errors.o): New rule.
2526 * common/common-defs.h: Include errors.h.
2527 * utils.h (perror_with_name, error, verror, warning, vwarning):
2528 Don't declare.
2529 * common/common-utils.h: (malloc_failure, internal_error):
2530 Likewise.
2531
196a707b
GB
25322014-08-19 Gary Benson <gbenson@redhat.com>
2533
2534 * utils.c (internal_vproblem): Always print the message.
2535
ded4fc8f
DE
25362014-08-18 Doug Evans <dje@google.com>
2537
2538 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
2539
950c97d8
JB
25402014-08-18 Joel Brobecker <brobecker@adacore.com>
2541
2542 * ada-typeprint.c (type_is_full_subrange_of_target_type):
2543 Return 0 if TYPE is dynamic.
2544 (print_range): Add handling of dynamic ranges.
2545
3cdcd0ce
JB
25462014-08-18 Keven Boell <keven.boell@intel.com>
2547 Joel Brobecker <brobecker@adacore.com>
2548
2549 * gdbtypes.h (struct main_type): Add field "data_location".
2550 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
2551 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
2552 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
2553 a dynamic data location.
2554 (resolve_dynamic_type): Add DW_AT_data_location handling.
2555 (copy_recursive, copy_type): Copy the data_location information
2556 when present.
2557 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
2558 * value.c (value_from_contents_and_address): Add
2559 DW_AT_data_location handling.
2560
08412b07
JB
25612014-08-18 Keven Boell <keven.boell@intel.com>
2562 Joel Brobecker <brobecker@adacore.com>
2563
2564 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
2565 field "get_object_address".
2566 * dwarf2expr.c (execute_stack_op): Add handling for
2567 DW_OP_push_object_address.
2568 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
2569 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
2570 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
2571 (dwarf_expr_get_obj_addr): New function.
2572 (dwarf_expr_ctx_funcs): Add get_object_address field.
2573 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
2574 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
2575 (dwarf2_evaluate_property): Add parameter "address". Use it.
2576 (needs_get_obj_addr): New function.
2577 (needs_frame_ctx_funcs): Add get_object_address field.
2578 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
2579 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
2580 (resolve_dynamic_array): Likewise.
2581
84754697
JB
25822014-08-18 Joel Brobecker <brobecker@adacore.com>
2583
2584 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
2585 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
2586 fixed value for records and unions for which some GNAT encodings
2587 are present.
2588
da5c522f
JB
25892014-08-18 Joel Brobecker <brobecker@adacore.com>
2590
2591 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
2592 rewrite to avoid "else if" and "else" constructs. Should be
2593 a no-op in practice.
2594
0d72a7c3
JB
25952014-08-18 Joel Brobecker <brobecker@adacore.com>
2596
2597 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
2598 of lexical block.
2599
e66d4446
SC
26002014-08-15 Siva Chandra Reddy <sivachandra@google.com>
2601
2602 PR c++/17132
2603 * eval.c: Update all calls to find_overload_match.
2604 * valarith.c: Likewise.
2605 (value_user_defined_cpp_op, value_user_defined_op): New
2606 argument NOSIDE. Update all callers.
2607 * valops.c (find_overload_match): New argument NOSIDE.
2608 * value.h (find_overload_match): Update signature.
2609
940df408
SC
26102014-08-15 Siva Chandra Reddy <sivachandra@google.com>
2611
2612 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
2613 'items' methods instead of 'iteritems' method on dictionaries.
2614
699ca60a
DE
26152014-08-15 Doug Evans <dje@google.com>
2616
2617 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
2618 closer to use.
2619
37780ee5
DE
26202014-08-15 Doug Evans <dje@google.com>
2621
2622 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
2623
0ad93d4f
DE
26242014-08-15 Doug Evans <dje@google.com>
2625
2626 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
2627
20d8c372
DE
26282014-08-15 Doug Evans <dje@google.com>
2629
2630 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
2631 unused.
2632
cb039ba4
EZ
26332014-08-15 Eli Zaretskii <eliz@gnu.org>
2634
2635 * dcache.h: Include target.h, to avoid compile time warnings.
2636
eb7a547a
JB
26372014-08-15 Joel Brobecker <brobecker@adacore.com>
2638
2639 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
2640 frame_info" partial declaration.
2641 * gdbarch.h: Regenerate.
2642
783cecc8
YQ
26432014-08-15 Yao Qi <yao@codesourcery.com>
2644
2645 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
2646 Add parameter 'decode_for_pst_p'. Callers update.
2647
65c749e7
YQ
26482014-08-13 Yao Qi <yao@codesourcery.com>
2649
2650 PR build/17104
2651 * configure.ac: Use local variable 'pos'.
2652 * configure: Regenerated.
2653
d769e349
DE
26542014-08-11 Doug Evans <dje@google.com>
2655
2656 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
2657 message, it is redundant with "Reading symbols from ..." message.
2658
24f1235e
DE
26592014-08-10 Doug Evans <xdje42@gmail.com>
2660
2661 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
2662
dcd2e6ef
YQ
26632014-08-09 Yao Qi <yao@codesourcery.com>
2664
2665 PR remote/9053
2666 * remote.c (remote_xfer_partial): Remove dead code.
2667
070bdf0b
AA
26682014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2669
2670 * ia64-linux-tdep.c: Include "regset.h".
2671 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
2672 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
2673 (ia64_linux_supply_fpregset): New function.
2674 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
2675 (ia64_linux_regset_from_core_section): New function.
2676 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
2677 method.
2678
08f9f542
AA
26792014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2680
2681 * m68klinux-tdep.c: Include "regset.h".
2682 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
2683 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
2684 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
2685 (m68k_linux_regset_from_core_section): New function.
2686 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
2687 method.
2688
8f1cee41
AA
26892014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2690
2691 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
2692 function. Move logic to...
2693 (tilegx_linux_regmap): ... this new register map.
2694 (tilegx_linux_regset): Refer to register map, replace supply
2695 method by regcache_supply_regset, and add collect method.
2696 * tilegx-tdep.h (enum tilegx_regnum): New enum value
2697 TILEGX_FIRST_EASY_REGNUM.
2698
c5741217
AA
26992014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2700
2701 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
2702 that calls regcache_supply_regset and handles the EPC register
2703 separately. Move main logic to...
2704 (score7_linux_gregmap): ... this new register map.
2705 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
2706 (score7_linux_gregset): Refer to register map. Add collect method.
2707 (score7_linux_regset_from_core_section): Replace
2708 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
2709 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
2710 (struct regset): Delete unused forward declaraction.
2711 (struct pt_regs): Delete structure definition.
2712 (elf_gregset_t): Delete typedef.
2713
81580573
AA
27142014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2715
2716 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
2717 (nios2_core_regset): Add collect method.
2718
ba199d7d
AA
27192014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2720
2721 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
2722 platform-independent and don't write to read-only input buffer.
2723 (m32r_linux_collect_gregset): New function.
2724 (m32r_linux_gregset): Add collect method.
2725
0006a9da
AA
27262014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2727
2728 * hppa-linux-tdep.c (greg_map): Rename to...
2729 (hppa_linux_gregmap): ... this. Also convert to
2730 regcache_map_entry format.
2731 (hppa_linux_supply_regset): Delete function.
2732 (hppa_linux_supply_fpregset): Delete function. Move logic to...
2733 (hppa_linux_fpregmap): ... this new register map.
2734 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
2735 register map, replace supply method by regcache_supply_regset, and
2736 add collect method regcache_collect_regset.
2737
901e1b23
AA
27382014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2739
2740 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
2741 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
2742 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
2743 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
2744 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
2745 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
2746 (frv_linux_supply_gregset): Replace main logic by call to
2747 regcache_supply_regset, but keep clearing gr32-gr63.
2748 (frv_linux_supply_fpregset): Delete function.
2749 (frv_linux_gregset): Refer to appropriate register map and add
2750 regcache_collect_regset as the collect method.
2751 (frv_linux_fpregset): Likewise. Also exchange the supply method
2752 by regcache_supply_regset.
2753
1d6e7555
AA
27542014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2755
2756 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
2757 by call to alpha_supply_int_regs.
2758 (alpha_linux_collect_gregset): New function.
2759 (alpha_linux_supply_fpregset): Replace logic by call to
2760 alpha_supply_fp_regs.
2761 (alpha_linux_collect_fpregset): New function.
2762 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
2763
d4d793bf
AA
27642014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2765
2766 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
2767 by call to regcache_collect_regset.
2768 (supply_gregset, supply_fpregset): Call regcache_supply_regset
2769 instead of aarch64_linux_supply_gregset/_fpregset.
2770 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
2771 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
2772 header file instead.
2773 (aarch64_linux_supply_gregset, supply_gregset_from_core)
2774 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
2775 functions. Move logic to ...
2776 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
2777 register maps.
2778 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
2779 refer to new register maps, replace *_regset_from_core by
2780 regcache_supply_regset, and also use regcache_collect_regset.
2781 * aarch64-linux-tdep.h: Include "regset.h".
2782 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
2783 Delete prototypes.
2784 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
2785 macros, moved from C source file.
2786 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
2787 variable declarations.
2788
99b7da5d
AA
27892014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2790
2791 * s390-linux-nat.c: Include "regset.h".
2792 (regmap_gregset): Delete macro.
2793 (s390_64_regmap_gregset): New register map for
2794 regcache_supply/_collect_regset.
2795 (s390_64_gregset): New regset.
2796 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
2797 (regmap_fpregset): Delete macro.
2798 (s390_native_supply, s390_native_collect): Delete functions.
2799 (supply_gregset, fill_gregset): Replace s390-specific regmap
2800 handling by a call to regcache_supply/_collect_regset.
2801 (supply_fpregset, fill_fpregset): Call regcache_supply/
2802 _collect_regset instead of s390_native_supply/_collect.
2803 (fetch_regset, store_regset): Likewise. Also change the last
2804 parameter to a regset instead of a regmap.
2805 (s390_linux_fetch_inferior_registers)
2806 (390_linux_store_inferior_registers): Adjust last parameter in
2807 calls to fetch_regset and store_regset.
2808 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
2809 (s390_gregmap): ... this. Also make static const and convert to
2810 regcache_map_entry format.
2811 (s390x_regmap_gregset): Delete.
2812 (s390_regmap_fpregset): Rename to...
2813 (s390_fpregmap): ... this. Make static const and convert to
2814 regcache_map_entry format.
2815 (s390_regmap_upper, s390_regmap_last_break)
2816 (s390x_regmap_last_break, s390_regmap_system_call)
2817 (s390_regmap_tdb): Likewise.
2818 (s390_supply_regset, s390_collect_regset): Remove functions.
2819 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
2820 s390_supply_regset.
2821 (s390_gregset, s390_fpregset, s390_upper_regset)
2822 (s390_last_break_regset, s390x_last_break_regset)
2823 (s390_system_call_regset, s390_tdb_regset): Make global and
2824 replace s390_supply/_collect_regset by regcache_supply/
2825 _collect_regset.
2826 (s390x_gregset): Delete.
2827 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
2828 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
2829 (s390_regmap_fpregset, s390_regmap_last_break)
2830 (s390x_regmap_last_break, s390_regmap_system_call)
2831 (s390_regmap_tdb): Delete global variable declarations.
2832 (s390_gregset, s390_fpregset, s390_last_break_regset)
2833 (s390x_last_break_regset, s390_system_call_regset)
2834 (s390_tdb_regset): New global variable declarations.
2835
0b309272
AA
28362014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2837
2838 * regcache.c: Include "regset.h".
2839 (regcache_transfer_regset): New local function.
2840 (regcache_supply_regset, regcache_collect_regset): New functions.
2841 * regcache.h (struct regcache_map_entry): New structure.
2842 (REGCACHE_MAP_SKIP): New enum value.
2843 (regcache_supply_regset, regcache_collect_regset): New prototypes.
2844
7fefa8d7
AA
28452014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2846
2847 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
2848 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
2849 (ppc_linux_collect_gregset ): Likewise.
2850 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
2851 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
2852 (ppc_collect_vrregset): Likewise.
2853 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
2854 Likewise.
2855
96c4f946
YQ
28562014-08-07 Yao Qi <yao@codesourcery.com>
2857
2858 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
2859 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
2860 * remote.c (remote_read_bytes): Likewise.
2861
fffbe6a8
YQ
28622014-08-07 Yao Qi <yao@codesourcery.com>
2863
2864 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
2865
5ee8a82c
YQ
28662014-08-07 Yao Qi <yao@codesourcery.com>
2867
2868 PR remote/17230
2869 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
2870 TARGET_XFER_OK instead of 0.
2871
bb974a24
GB
28722014-08-07 Gary Benson <gbenson@redhat.com>
2873
2874 * common/common-defs.h: Include errno.h.
2875 * defs.h: Do not include errno.h.
2876 * ada-typeprint.c: Likewise.
2877 * c-typeprint.c: Likewise.
2878 * core-regset.c: Likewise.
2879 * corefile.c: Likewise.
2880 * corelow.c: Likewise.
2881 * event-loop.c: Likewise.
2882 * f-typeprint.c: Likewise.
2883 * gnu-nat.c: Likewise.
2884 * go32-nat.c: Likewise.
2885 * i386gnu-nat.c: Likewise.
2886 * m2-typeprint.c: Likewise.
2887 * nat/linux-btrace.c: Likewise.
2888 * p-typeprint.c: Likewise.
2889 * procfs.c: Likewise.
2890 * remote-sim.c: Likewise.
2891 * rs6000-nat.c: Likewise.
2892 * target.c: Likewise.
2893 * typeprint.c: Likewise.
2894 * ui-file.c: Likewise.
2895 * valops.c: Likewise.
2896 * valprint.c: Likewise.
2897
6d3d12eb
GB
28982014-08-07 Gary Benson <gbenson@redhat.com>
2899
2900 * common/common-defs.h: Include string.h.
2901 * aarch64-tdep.c: Do not include string.h.
2902 * ada-exp.y: Likewise.
2903 * ada-lang.c: Likewise.
2904 * ada-lex.l: Likewise.
2905 * ada-typeprint.c: Likewise.
2906 * ada-valprint.c: Likewise.
2907 * aix-thread.c: Likewise.
2908 * alpha-linux-tdep.c: Likewise.
2909 * alpha-mdebug-tdep.c: Likewise.
2910 * alpha-nat.c: Likewise.
2911 * alpha-osf1-tdep.c: Likewise.
2912 * alpha-tdep.c: Likewise.
2913 * alphanbsd-tdep.c: Likewise.
2914 * amd64-dicos-tdep.c: Likewise.
2915 * amd64-linux-tdep.c: Likewise.
2916 * amd64-nat.c: Likewise.
2917 * amd64-sol2-tdep.c: Likewise.
2918 * amd64fbsd-tdep.c: Likewise.
2919 * amd64obsd-tdep.c: Likewise.
2920 * arch-utils.c: Likewise.
2921 * arm-linux-nat.c: Likewise.
2922 * arm-linux-tdep.c: Likewise.
2923 * arm-tdep.c: Likewise.
2924 * arm-wince-tdep.c: Likewise.
2925 * armbsd-tdep.c: Likewise.
2926 * armnbsd-nat.c: Likewise.
2927 * armnbsd-tdep.c: Likewise.
2928 * armobsd-tdep.c: Likewise.
2929 * avr-tdep.c: Likewise.
2930 * ax-gdb.c: Likewise.
2931 * ax-general.c: Likewise.
2932 * bcache.c: Likewise.
2933 * bfin-tdep.c: Likewise.
2934 * breakpoint.c: Likewise.
2935 * build-id.c: Likewise.
2936 * buildsym.c: Likewise.
2937 * c-exp.y: Likewise.
2938 * c-lang.c: Likewise.
2939 * c-typeprint.c: Likewise.
2940 * c-valprint.c: Likewise.
2941 * charset.c: Likewise.
2942 * cli-out.c: Likewise.
2943 * cli/cli-cmds.c: Likewise.
2944 * cli/cli-decode.c: Likewise.
2945 * cli/cli-dump.c: Likewise.
2946 * cli/cli-interp.c: Likewise.
2947 * cli/cli-logging.c: Likewise.
2948 * cli/cli-script.c: Likewise.
2949 * cli/cli-setshow.c: Likewise.
2950 * cli/cli-utils.c: Likewise.
2951 * coffread.c: Likewise.
2952 * common/agent.c: Likewise.
2953 * common/buffer.c: Likewise.
2954 * common/buffer.h: Likewise.
2955 * common/common-utils.c: Likewise.
2956 * common/filestuff.c: Likewise.
2957 * common/filestuff.c: Likewise.
2958 * common/format.c: Likewise.
2959 * common/print-utils.c: Likewise.
2960 * common/rsp-low.c: Likewise.
2961 * common/signals.c: Likewise.
2962 * common/vec.h: Likewise.
2963 * common/xml-utils.c: Likewise.
2964 * core-regset.c: Likewise.
2965 * corefile.c: Likewise.
2966 * corelow.c: Likewise.
2967 * cp-abi.c: Likewise.
2968 * cp-name-parser.y: Likewise.
2969 * cp-support.c: Likewise.
2970 * cp-valprint.c: Likewise.
2971 * cris-tdep.c: Likewise.
2972 * d-exp.y: Likewise.
2973 * darwin-nat.c: Likewise.
2974 * dbxread.c: Likewise.
2975 * dcache.c: Likewise.
2976 * demangle.c: Likewise.
2977 * dicos-tdep.c: Likewise.
2978 * disasm.c: Likewise.
2979 * doublest.c: Likewise.
2980 * dsrec.c: Likewise.
2981 * dummy-frame.c: Likewise.
2982 * dwarf2-frame.c: Likewise.
2983 * dwarf2loc.c: Likewise.
2984 * dwarf2read.c: Likewise.
2985 * elfread.c: Likewise.
2986 * environ.c: Likewise.
2987 * eval.c: Likewise.
2988 * event-loop.c: Likewise.
2989 * exceptions.c: Likewise.
2990 * exec.c: Likewise.
2991 * expprint.c: Likewise.
2992 * f-exp.y: Likewise.
2993 * f-lang.c: Likewise.
2994 * f-typeprint.c: Likewise.
2995 * f-valprint.c: Likewise.
2996 * fbsd-nat.c: Likewise.
2997 * findcmd.c: Likewise.
2998 * findvar.c: Likewise.
2999 * fork-child.c: Likewise.
3000 * frame.c: Likewise.
3001 * frv-linux-tdep.c: Likewise.
3002 * frv-tdep.c: Likewise.
3003 * gdb.c: Likewise.
3004 * gdb_bfd.c: Likewise.
3005 * gdbarch.c: Likewise.
3006 * gdbarch.sh: Likewise.
3007 * gdbtypes.c: Likewise.
3008 * gnu-nat.c: Likewise.
3009 * gnu-v2-abi.c: Likewise.
3010 * gnu-v3-abi.c: Likewise.
3011 * go-exp.y: Likewise.
3012 * go-lang.c: Likewise.
3013 * go32-nat.c: Likewise.
3014 * guile/guile.c: Likewise.
3015 * guile/scm-auto-load.c: Likewise.
3016 * hppa-hpux-tdep.c: Likewise.
3017 * hppa-linux-nat.c: Likewise.
3018 * hppanbsd-tdep.c: Likewise.
3019 * hppaobsd-tdep.c: Likewise.
3020 * i386-cygwin-tdep.c: Likewise.
3021 * i386-dicos-tdep.c: Likewise.
3022 * i386-linux-tdep.c: Likewise.
3023 * i386-nto-tdep.c: Likewise.
3024 * i386-sol2-tdep.c: Likewise.
3025 * i386-tdep.c: Likewise.
3026 * i386bsd-tdep.c: Likewise.
3027 * i386gnu-nat.c: Likewise.
3028 * i386nbsd-tdep.c: Likewise.
3029 * i386obsd-tdep.c: Likewise.
3030 * i387-tdep.c: Likewise.
3031 * ia64-libunwind-tdep.c: Likewise.
3032 * ia64-linux-nat.c: Likewise.
3033 * inf-child.c: Likewise.
3034 * inf-ptrace.c: Likewise.
3035 * inf-ttrace.c: Likewise.
3036 * infcall.c: Likewise.
3037 * infcmd.c: Likewise.
3038 * inflow.c: Likewise.
3039 * infrun.c: Likewise.
3040 * interps.c: Likewise.
3041 * iq2000-tdep.c: Likewise.
3042 * irix5-nat.c: Likewise.
3043 * jv-exp.y: Likewise.
3044 * jv-lang.c: Likewise.
3045 * jv-typeprint.c: Likewise.
3046 * jv-valprint.c: Likewise.
3047 * language.c: Likewise.
3048 * linux-fork.c: Likewise.
3049 * linux-nat.c: Likewise.
3050 * lm32-tdep.c: Likewise.
3051 * m2-exp.y: Likewise.
3052 * m2-typeprint.c: Likewise.
3053 * m32c-tdep.c: Likewise.
3054 * m32r-linux-nat.c: Likewise.
3055 * m32r-linux-tdep.c: Likewise.
3056 * m32r-rom.c: Likewise.
3057 * m32r-tdep.c: Likewise.
3058 * m68hc11-tdep.c: Likewise.
3059 * m68k-tdep.c: Likewise.
3060 * m68kbsd-tdep.c: Likewise.
3061 * m68klinux-nat.c: Likewise.
3062 * m68klinux-tdep.c: Likewise.
3063 * m88k-tdep.c: Likewise.
3064 * machoread.c: Likewise.
3065 * macrocmd.c: Likewise.
3066 * main.c: Likewise.
3067 * mdebugread.c: Likewise.
3068 * mem-break.c: Likewise.
3069 * memattr.c: Likewise.
3070 * memory-map.c: Likewise.
3071 * mep-tdep.c: Likewise.
3072 * mi/mi-cmd-break.c: Likewise.
3073 * mi/mi-cmd-disas.c: Likewise.
3074 * mi/mi-cmd-env.c: Likewise.
3075 * mi/mi-cmd-stack.c: Likewise.
3076 * mi/mi-cmd-var.c: Likewise.
3077 * mi/mi-cmds.c: Likewise.
3078 * mi/mi-console.c: Likewise.
3079 * mi/mi-getopt.c: Likewise.
3080 * mi/mi-interp.c: Likewise.
3081 * mi/mi-main.c: Likewise.
3082 * mi/mi-parse.c: Likewise.
3083 * microblaze-rom.c: Likewise.
3084 * microblaze-tdep.c: Likewise.
3085 * mingw-hdep.c: Likewise.
3086 * minidebug.c: Likewise.
3087 * minsyms.c: Likewise.
3088 * mips-irix-tdep.c: Likewise.
3089 * mips-linux-tdep.c: Likewise.
3090 * mips-tdep.c: Likewise.
3091 * mips64obsd-tdep.c: Likewise.
3092 * mipsnbsd-tdep.c: Likewise.
3093 * mipsread.c: Likewise.
3094 * mn10300-linux-tdep.c: Likewise.
3095 * mn10300-tdep.c: Likewise.
3096 * monitor.c: Likewise.
3097 * moxie-tdep.c: Likewise.
3098 * mt-tdep.c: Likewise.
3099 * nat/linux-btrace.c: Likewise.
3100 * nat/linux-osdata.c: Likewise.
3101 * nat/linux-procfs.c: Likewise.
3102 * nat/linux-ptrace.c: Likewise.
3103 * nat/linux-waitpid.c: Likewise.
3104 * nbsd-tdep.c: Likewise.
3105 * nios2-linux-tdep.c: Likewise.
3106 * nto-procfs.c: Likewise.
3107 * nto-tdep.c: Likewise.
3108 * objc-lang.c: Likewise.
3109 * objfiles.c: Likewise.
3110 * opencl-lang.c: Likewise.
3111 * osabi.c: Likewise.
3112 * osdata.c: Likewise.
3113 * p-exp.y: Likewise.
3114 * p-lang.c: Likewise.
3115 * p-typeprint.c: Likewise.
3116 * parse.c: Likewise.
3117 * posix-hdep.c: Likewise.
3118 * ppc-linux-nat.c: Likewise.
3119 * ppc-sysv-tdep.c: Likewise.
3120 * ppcfbsd-tdep.c: Likewise.
3121 * ppcnbsd-tdep.c: Likewise.
3122 * ppcobsd-tdep.c: Likewise.
3123 * printcmd.c: Likewise.
3124 * procfs.c: Likewise.
3125 * prologue-value.c: Likewise.
3126 * python/py-auto-load.c: Likewise.
3127 * python/py-gdb-readline.c: Likewise.
3128 * ravenscar-thread.c: Likewise.
3129 * regcache.c: Likewise.
3130 * registry.c: Likewise.
3131 * remote-fileio.c: Likewise.
3132 * remote-m32r-sdi.c: Likewise.
3133 * remote-mips.c: Likewise.
3134 * remote-notif.c: Likewise.
3135 * remote-sim.c: Likewise.
3136 * remote.c: Likewise.
3137 * reverse.c: Likewise.
3138 * rs6000-aix-tdep.c: Likewise.
3139 * ser-base.c: Likewise.
3140 * ser-go32.c: Likewise.
3141 * ser-mingw.c: Likewise.
3142 * ser-pipe.c: Likewise.
3143 * ser-tcp.c: Likewise.
3144 * ser-unix.c: Likewise.
3145 * serial.c: Likewise.
3146 * sh-tdep.c: Likewise.
3147 * sh64-tdep.c: Likewise.
3148 * shnbsd-tdep.c: Likewise.
3149 * skip.c: Likewise.
3150 * sol-thread.c: Likewise.
3151 * solib-dsbt.c: Likewise.
3152 * solib-frv.c: Likewise.
3153 * solib-osf.c: Likewise.
3154 * solib-som.c: Likewise.
3155 * solib-spu.c: Likewise.
3156 * solib-target.c: Likewise.
3157 * solib.c: Likewise.
3158 * somread.c: Likewise.
3159 * source.c: Likewise.
3160 * sparc-nat.c: Likewise.
3161 * sparc-sol2-tdep.c: Likewise.
3162 * sparc-tdep.c: Likewise.
3163 * sparc64-tdep.c: Likewise.
3164 * sparc64fbsd-tdep.c: Likewise.
3165 * sparc64nbsd-tdep.c: Likewise.
3166 * sparcnbsd-tdep.c: Likewise.
3167 * spu-linux-nat.c: Likewise.
3168 * spu-multiarch.c: Likewise.
3169 * spu-tdep.c: Likewise.
3170 * stabsread.c: Likewise.
3171 * stack.c: Likewise.
3172 * std-regs.c: Likewise.
3173 * symfile.c: Likewise.
3174 * symmisc.c: Likewise.
3175 * symtab.c: Likewise.
3176 * target.c: Likewise.
3177 * thread.c: Likewise.
3178 * tilegx-linux-nat.c: Likewise.
3179 * tilegx-tdep.c: Likewise.
3180 * top.c: Likewise.
3181 * tracepoint.c: Likewise.
3182 * tui/tui-command.c: Likewise.
3183 * tui/tui-data.c: Likewise.
3184 * tui/tui-disasm.c: Likewise.
3185 * tui/tui-file.c: Likewise.
3186 * tui/tui-layout.c: Likewise.
3187 * tui/tui-out.c: Likewise.
3188 * tui/tui-regs.c: Likewise.
3189 * tui/tui-source.c: Likewise.
3190 * tui/tui-stack.c: Likewise.
3191 * tui/tui-win.c: Likewise.
3192 * tui/tui-windata.c: Likewise.
3193 * tui/tui-winsource.c: Likewise.
3194 * typeprint.c: Likewise.
3195 * ui-file.c: Likewise.
3196 * ui-out.c: Likewise.
3197 * user-regs.c: Likewise.
3198 * utils.c: Likewise.
3199 * v850-tdep.c: Likewise.
3200 * valarith.c: Likewise.
3201 * valops.c: Likewise.
3202 * valprint.c: Likewise.
3203 * value.c: Likewise.
3204 * varobj.c: Likewise.
3205 * vax-tdep.c: Likewise.
3206 * vaxnbsd-tdep.c: Likewise.
3207 * vaxobsd-tdep.c: Likewise.
3208 * windows-nat.c: Likewise.
3209 * xcoffread.c: Likewise.
3210 * xml-support.c: Likewise.
3211 * xstormy16-tdep.c: Likewise.
3212 * xtensa-linux-nat.c: Likewise.
3213
dccbb609
GB
32142014-08-07 Gary Benson <gbenson@redhat.com>
3215
3216 * common/common-defs.h: Include gdb_assert.h.
3217 * aarch64-tdep.c: Do not include gdb_assert.h.
3218 * addrmap.c: Likewise.
3219 * aix-thread.c: Likewise.
3220 * alpha-linux-tdep.c: Likewise.
3221 * alpha-mdebug-tdep.c: Likewise.
3222 * alphanbsd-tdep.c: Likewise.
3223 * amd64-nat.c: Likewise.
3224 * amd64-tdep.c: Likewise.
3225 * amd64bsd-nat.c: Likewise.
3226 * amd64fbsd-nat.c: Likewise.
3227 * amd64fbsd-tdep.c: Likewise.
3228 * amd64nbsd-nat.c: Likewise.
3229 * amd64nbsd-tdep.c: Likewise.
3230 * amd64obsd-nat.c: Likewise.
3231 * amd64obsd-tdep.c: Likewise.
3232 * arch-utils.c: Likewise.
3233 * arm-tdep.c: Likewise.
3234 * armbsd-tdep.c: Likewise.
3235 * auxv.c: Likewise.
3236 * bcache.c: Likewise.
3237 * bfin-tdep.c: Likewise.
3238 * blockframe.c: Likewise.
3239 * breakpoint.c: Likewise.
3240 * bsd-kvm.c: Likewise.
3241 * bsd-uthread.c: Likewise.
3242 * buildsym.c: Likewise.
3243 * c-exp.y: Likewise.
3244 * c-lang.c: Likewise.
3245 * charset.c: Likewise.
3246 * cleanups.c: Likewise.
3247 * cli-out.c: Likewise.
3248 * cli/cli-decode.c: Likewise.
3249 * cli/cli-dump.c: Likewise.
3250 * cli/cli-logging.c: Likewise.
3251 * cli/cli-script.c: Likewise.
3252 * cli/cli-utils.c: Likewise.
3253 * coffread.c: Likewise.
3254 * common/common-utils.c: Likewise.
3255 * common/queue.h: Likewise.
3256 * common/signals.c: Likewise.
3257 * common/vec.h: Likewise.
3258 * complaints.c: Likewise.
3259 * completer.c: Likewise.
3260 * corelow.c: Likewise.
3261 * cp-abi.c: Likewise.
3262 * cp-name-parser.y: Likewise.
3263 * cp-namespace.c: Likewise.
3264 * cp-support.c: Likewise.
3265 * cris-tdep.c: Likewise.
3266 * dbxread.c: Likewise.
3267 * dictionary.c: Likewise.
3268 * doublest.c: Likewise.
3269 * dsrec.c: Likewise.
3270 * dummy-frame.c: Likewise.
3271 * dwarf2-frame-tailcall.c: Likewise.
3272 * dwarf2-frame.c: Likewise.
3273 * dwarf2expr.c: Likewise.
3274 * dwarf2loc.c: Likewise.
3275 * dwarf2read.c: Likewise.
3276 * eval.c: Likewise.
3277 * event-loop.c: Likewise.
3278 * exceptions.c: Likewise.
3279 * expprint.c: Likewise.
3280 * f-valprint.c: Likewise.
3281 * fbsd-nat.c: Likewise.
3282 * findvar.c: Likewise.
3283 * frame-unwind.c: Likewise.
3284 * frame.c: Likewise.
3285 * frv-tdep.c: Likewise.
3286 * gcore.c: Likewise.
3287 * gdb-dlfcn.c: Likewise.
3288 * gdb_bfd.c: Likewise.
3289 * gdbarch.c: Likewise.
3290 * gdbarch.sh: Likewise.
3291 * gdbtypes.c: Likewise.
3292 * gnu-nat.c: Likewise.
3293 * gnu-v3-abi.c: Likewise.
3294 * go-lang.c: Likewise.
3295 * guile/scm-exception.c: Likewise.
3296 * guile/scm-gsmob.c: Likewise.
3297 * guile/scm-lazy-string.c: Likewise.
3298 * guile/scm-math.c: Likewise.
3299 * guile/scm-pretty-print.c: Likewise.
3300 * guile/scm-safe-call.c: Likewise.
3301 * guile/scm-utils.c: Likewise.
3302 * guile/scm-value.c: Likewise.
3303 * h8300-tdep.c: Likewise.
3304 * hppa-hpux-nat.c: Likewise.
3305 * hppa-tdep.c: Likewise.
3306 * hppanbsd-tdep.c: Likewise.
3307 * hppaobsd-tdep.c: Likewise.
3308 * i386-darwin-nat.c: Likewise.
3309 * i386-darwin-tdep.c: Likewise.
3310 * i386-nto-tdep.c: Likewise.
3311 * i386-tdep.c: Likewise.
3312 * i386bsd-nat.c: Likewise.
3313 * i386fbsd-tdep.c: Likewise.
3314 * i386gnu-nat.c: Likewise.
3315 * i386nbsd-tdep.c: Likewise.
3316 * i386obsd-tdep.c: Likewise.
3317 * i387-tdep.c: Likewise.
3318 * ia64-libunwind-tdep.c: Likewise.
3319 * ia64-tdep.c: Likewise.
3320 * inf-ptrace.c: Likewise.
3321 * inf-ttrace.c: Likewise.
3322 * infcall.c: Likewise.
3323 * infcmd.c: Likewise.
3324 * infrun.c: Likewise.
3325 * inline-frame.c: Likewise.
3326 * interps.c: Likewise.
3327 * jv-lang.c: Likewise.
3328 * jv-typeprint.c: Likewise.
3329 * linux-fork.c: Likewise.
3330 * linux-nat.c: Likewise.
3331 * linux-thread-db.c: Likewise.
3332 * m32c-tdep.c: Likewise.
3333 * m32r-linux-nat.c: Likewise.
3334 * m32r-tdep.c: Likewise.
3335 * m68k-tdep.c: Likewise.
3336 * m68kbsd-nat.c: Likewise.
3337 * m68kbsd-tdep.c: Likewise.
3338 * m88k-tdep.c: Likewise.
3339 * machoread.c: Likewise.
3340 * macroexp.c: Likewise.
3341 * macrotab.c: Likewise.
3342 * maint.c: Likewise.
3343 * mdebugread.c: Likewise.
3344 * memory-map.c: Likewise.
3345 * mep-tdep.c: Likewise.
3346 * mi/mi-common.c: Likewise.
3347 * microblaze-tdep.c: Likewise.
3348 * mingw-hdep.c: Likewise.
3349 * mips-linux-nat.c: Likewise.
3350 * mips-linux-tdep.c: Likewise.
3351 * mips-tdep.c: Likewise.
3352 * mips64obsd-tdep.c: Likewise.
3353 * mipsnbsd-tdep.c: Likewise.
3354 * mn10300-linux-tdep.c: Likewise.
3355 * mn10300-tdep.c: Likewise.
3356 * moxie-tdep.c: Likewise.
3357 * mt-tdep.c: Likewise.
3358 * nat/linux-btrace.c: Likewise.
3359 * nat/linux-osdata.c: Likewise.
3360 * nat/linux-ptrace.c: Likewise.
3361 * nat/mips-linux-watch.c: Likewise.
3362 * nios2-linux-tdep.c: Likewise.
3363 * nios2-tdep.c: Likewise.
3364 * objc-lang.c: Likewise.
3365 * objfiles.c: Likewise.
3366 * obsd-nat.c: Likewise.
3367 * opencl-lang.c: Likewise.
3368 * osabi.c: Likewise.
3369 * parse.c: Likewise.
3370 * ppc-linux-nat.c: Likewise.
3371 * ppc-sysv-tdep.c: Likewise.
3372 * ppcfbsd-nat.c: Likewise.
3373 * ppcfbsd-tdep.c: Likewise.
3374 * ppcnbsd-nat.c: Likewise.
3375 * ppcnbsd-tdep.c: Likewise.
3376 * ppcobsd-nat.c: Likewise.
3377 * ppcobsd-tdep.c: Likewise.
3378 * printcmd.c: Likewise.
3379 * procfs.c: Likewise.
3380 * prologue-value.c: Likewise.
3381 * psymtab.c: Likewise.
3382 * python/py-lazy-string.c: Likewise.
3383 * python/py-value.c: Likewise.
3384 * regcache.c: Likewise.
3385 * reggroups.c: Likewise.
3386 * registry.c: Likewise.
3387 * remote-sim.c: Likewise.
3388 * remote.c: Likewise.
3389 * rs6000-aix-tdep.c: Likewise.
3390 * rs6000-tdep.c: Likewise.
3391 * s390-linux-tdep.c: Likewise.
3392 * score-tdep.c: Likewise.
3393 * ser-base.c: Likewise.
3394 * ser-mingw.c: Likewise.
3395 * sh-tdep.c: Likewise.
3396 * sh64-tdep.c: Likewise.
3397 * solib-darwin.c: Likewise.
3398 * solib-spu.c: Likewise.
3399 * solib-svr4.c: Likewise.
3400 * source.c: Likewise.
3401 * sparc-nat.c: Likewise.
3402 * sparc-sol2-tdep.c: Likewise.
3403 * sparc-tdep.c: Likewise.
3404 * sparc64-sol2-tdep.c: Likewise.
3405 * sparc64-tdep.c: Likewise.
3406 * sparc64fbsd-tdep.c: Likewise.
3407 * sparc64nbsd-tdep.c: Likewise.
3408 * sparc64obsd-tdep.c: Likewise.
3409 * sparcnbsd-tdep.c: Likewise.
3410 * sparcobsd-tdep.c: Likewise.
3411 * spu-multiarch.c: Likewise.
3412 * spu-tdep.c: Likewise.
3413 * stabsread.c: Likewise.
3414 * stack.c: Likewise.
3415 * symfile.c: Likewise.
3416 * symtab.c: Likewise.
3417 * target-descriptions.c: Likewise.
3418 * target-memory.c: Likewise.
3419 * target.c: Likewise.
3420 * tic6x-linux-tdep.c: Likewise.
3421 * tic6x-tdep.c: Likewise.
3422 * tilegx-linux-nat.c: Likewise.
3423 * tilegx-tdep.c: Likewise.
3424 * top.c: Likewise.
3425 * tramp-frame.c: Likewise.
3426 * tui/tui-out.c: Likewise.
3427 * tui/tui-winsource.c: Likewise.
3428 * ui-out.c: Likewise.
3429 * user-regs.c: Likewise.
3430 * utils.c: Likewise.
3431 * v850-tdep.c: Likewise.
3432 * valops.c: Likewise.
3433 * value.c: Likewise.
3434 * varobj.c: Likewise.
3435 * vax-nat.c: Likewise.
3436 * xml-syscall.c: Likewise.
3437 * xml-tdesc.c: Likewise.
3438 * xstormy16-tdep.c: Likewise.
3439 * xtensa-linux-nat.c: Likewise.
3440 * xtensa-tdep.c: Likewise.
3441
e76df0d0
GB
34422014-08-07 Gary Benson <gbenson@redhat.com>
3443
3444 * common/common-defs.h: Include common-utils.h.
3445 * defs.h: Do not include common-utils.h.
3446 * common/gdb_assert.h: Likewise.
3447 * darwin-nat.h: Likewise.
3448 * nat/linux-btrace.c: Likewise.
3449 * target/waitstatus.h: Likewise.
3450
4cb9c816
GB
34512014-08-07 Gary Benson <gbenson@redhat.com>
3452
3453 * common/common-defs.h: Include ptid.h.
3454 * defs.h: Do not include ptid.h.
3455 * inferior.h: Likewise.
3456 * infrun.h: Likewise.
3457 * nat/linux-btrace.h: Likewise.
3458 * nat/linux-osdata.h: Likewise.
3459 * target/waitstatus.h: Likewise.
3460
3995eeee
GB
34612014-08-07 Gary Benson <gbenson@redhat.com>
3462
3463 * common/common-defs.h: Include gdb_locale.h.
3464 * defs.h: Do not include gdb_locale.h.
3465
cb9f1a9b
GB
34662014-08-07 Gary Benson <gbenson@redhat.com>
3467
3468 * common/common-defs.h: Include gdb/signals.h.
3469 * defs.h: Do not include gdb/signals.h.
3470
a5fceff8
GB
34712014-08-07 Gary Benson <gbenson@redhat.com>
3472
3473 * common/common-defs.h: Include pathmax.h.
3474 * defs.h: Do not include pathmax.h.
3475
b9391142
GB
34762014-08-07 Gary Benson <gbenson@redhat.com>
3477
3478 * common/common-defs.h: Include libiberty.h.
3479 * defs.h: Do not include libiberty.h.
3480 * common/queue.h: Likewise.
3481 * cp-name-parser.y: Likewise.
3482 * mi/mi-cmd-catch.c: Likewise.
3483 * python/python.c: Likewise.
3484
0e443c87
GB
34852014-08-07 Gary Benson <gbenson@redhat.com>
3486
3487 * common/common-defs.h: Include ansidecl.h.
3488 * defs.h: Do not include ansidecl.h.
3489 * common/buffer.h: Likewise.
3490 * common/common-utils.h: Likewise.
3491
8ebb3f56
GB
34922014-08-07 Gary Benson <gbenson@redhat.com>
3493
3494 * common/common-defs.h: Include stddef.h.
3495 * defs.h: Do not include stddef.h.
3496 * common/common-utils.h: Likewise.
3497 * amd64fbsd-nat.c: Likewise.
3498 * bcache.c: Likewise.
3499 * charset.c: Likewise.
3500 * common/buffer.h: Likewise.
3501 * common/vec.h: Likewise.
3502 * i386bsd-nat.c: Likewise.
3503 * nat/linux-btrace.h: Likewise.
3504 * ppcfbsd-nat.c: Likewise.
3505 * ppcnbsd-tdep.h: Likewise.
3506 * ppcobsd-nat.c: Likewise.
3507 * ppcobsd-tdep.h: Likewise.
3508 * python/py-gdb-readline.c: Likewise.
3509
8980bdf6
GB
35102014-08-07 Gary Benson <gbenson@redhat.com>
3511
3512 * common/common-defs.h: Include stdarg.h.
3513 * defs.h: Do not include stdarg.h.
3514 * ada-lang.c: Likewise.
3515 * common/common-utils.h: Likewise.
3516 * guile/scm-string.c: Likewise.
3517 * guile/scm-utils.c: Likewise.
3518 * m32c-tdep.c: Likewise.
3519
d7096f71
GB
35202014-08-07 Gary Benson <gbenson@redhat.com>
3521
3522 * common/common-defs.h: Include stdlib.h.
3523 * defs.h: Do not include stdlib.h.
3524 * addrmap.c: Likewise.
3525 * bcache.c: Likewise.
3526 * common/buffer.c: Likewise.
3527 * common/common-utils.c: Likewise.
3528 * cp-name-parser.y: Likewise.
3529 * go32-nat.c: Likewise.
3530 * mn10300-linux-tdep.c: Likewise.
3531 * nat/linux-osdata.c: Likewise.
3532 * tui/tui.c: Likewise.
3533 * windows-nat.c: Likewise.
3534
d02f550d
GB
35352014-08-07 Gary Benson <gbenson@redhat.com>
3536
3537 * common/common-defs.h: Include stdio.h.
3538 * defs.h: Do not include stdio.h.
3539 * ada-lang.c: Likewise.
3540 * common/buffer.c: Likewise.
3541 * common/common-utils.c: Likewise.
3542 * cp-name-parser.y: Likewise.
3543 * gnu-nat.c: Likewise.
3544 * go32-nat.c: Likewise.
3545 * i386gnu-nat.c: Likewise.
3546 * proc-api.c: Likewise.
3547 * proc-events.c: Likewise.
3548 * proc-flags.c: Likewise.
3549 * proc-why.c: Likewise.
3550 * python/python-internal.h: Likewise.
3551 * target-memory.c: Likewise.
3552 * tui/tui-io.c: Likewise.
3553 * tui/tui.c: Likewise.
3554
b6d7a4bf
SM
35552014-08-06 Simon Marchi <simon.marchi@ericsson.com>
3556
3557 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
3558 (scan_dyntag_auxv): Same.
3559
af19829b
YQ
35602014-08-06 Yao Qi <yao@codesourcery.com>
3561
3562 * amd64-linux-nat.c: Remove duplicated include
3563 "x86-linux-nat.h".
3564 * i386-linux-nat.c: Likewise.
3565
8e07a239
YQ
35662014-08-06 Yao Qi <yao@codesourcery.com>
3567
3568 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
3569 operand" with "Special opcode" in comments.
3570
7bfe8241
GB
35712014-08-05 Gary Benson <gbenson@redhat.com>
3572
3573 * interps.c (initialize_interps): Remove prototype.
3574 (interpreter_initialized): Remove static global.
3575 (interp_add): Do not call initialize_interps.
3576 (initialize_interps): Remove function.
3577
d6c95504
GB
35782014-08-05 Gary Benson <gbenson@redhat.com>
3579
3580 * utils.c (vwarning): Remove spurious va_end.
3581
241fd515
AM
35822014-08-05 Alan Modra <amodra@gmail.com>
3583
3584 * charset.c (convert_between_encodings): Cast result of obstack_base.
3585 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
3586 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
3587 (read_unwind_info): Use size_t for some locals.
3588 * jit.c (finalize_symtab): Likewise.
3589 * utils.c (hashtab_obstack_allocate): Likewise.
3590 * symmisc.c (print_objfile_statistics): Update format strings.
3591
dc304a94
JK
35922014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3593
3594 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
3595 (Changes in GDB 7.8): ... here.
3596
3cecbbbe
TT
35972014-08-04 Tom Tromey <tromey@redhat.com>
3598
3599 * target.c (set_targetdebug): New function.
3600 (initialize_targets): Pass set_targetdebug when creating "set
3601 debug target".
3602
6908c509
JB
36032014-08-01 Joel Brobecker <brobecker@adacore.com>
3604
3605 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
3606 if detecting a variable-sized field that is not the last field.
3607 Fix struct type length computation.
3608
53e8f97d
JB
36092014-08-01 Joel Brobecker <brobecker@adacore.com>
3610
3611 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3612 Add debug trace.
3613
e068c55d
JB
36142014-08-01 Joel Brobecker <brobecker@adacore.com>
3615
3616 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3617 Remove "+ 8" offset in computation of CHAIN_VMA.
3618
4d4ca2a1
DE
36192014-07-31 Doug Evans <dje@google.com>
3620
3621 * inflow.c (child_terminal_inferior): Add comment.
3622 (child_terminal_ours_for_output): Add comment.
3623 (child_terminal_ours): Add comment.
3624 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
3625 (linux_nat_terminal_ours): Add comment.
3626
462f517e
GB
36272014-07-31 Gary Benson <gbenson@redhat.com>
3628
3629 * common/btrace-common.h: Do not include defs.h or server.h.
3630 * nat/mips-linux-watch.h: Likewise.
3631 * gdb-dlfcn.h: Do not include defs.h.
3632 * tracefile.h: Likewise.
3633
74228e77
RM
36342014-07-30 Roland McGrath <mcgrathr@google.com>
3635
3636 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
3637
014f9477
TT
36382014-07-30 Tom Tromey <tromey@redhat.com>
3639
3640 * bsd-kvm.c (bsd_kvm_open): Constify.
3641 * corelow.c (core_open): Constify.
3642 * ctf.c (ctf_open): Constify.
3643 * dbug-rom.c (dbug_open): Constify.
3644 * exec.c (exec_open): Constify.
3645 * m32r-rom.c (m32r_open, mon2000_open): Constify.
3646 * microblaze-rom.c (picobug_open): Constify.
3647 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
3648 Constify.
3649 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
3650 * record-btrace.c (record_btrace_open): Constify.
3651 * record-full.c (record_full_core_open_1, record_full_open_1)
3652 (record_full_open): Constify.
3653 * remote-m32r-sdi.c (m32r_open): Constify.
3654 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
3655 (rockhopper_open, lsi_open): Constify.
3656 * remote-sim.c (gdbsim_open): Constify.
3657 * remote.c (remote_open, extended_remote_open, remote_open_1):
3658 Constify.
3659 * target.h (struct target_ops) <to_open>: Make "arg" const.
3660 * tracefile-tfile.c (tfile_open): Constify.
3661
e799154c
TT
36622014-07-30 Tom Tromey <tromey@redhat.com>
3663
3664 * breakpoint.c (map_breakpoint_numbers): Update.
3665 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
3666 (get_number_const): New function.
3667 (get_number): Rewrite using get_number_const.
3668 (init_number_or_range): Make "string" const.
3669 (number_is_in_list): Make "list" const.
3670 * cli/cli-utils.h (get_number_const): Declare.
3671 (struct get_number_or_range_state) <string, end_ptr>: Now const.
3672 (init_number_or_range, number_is_in_list): Update.
3673 * printcmd.c (map_display_numbers): Update.
3674 * value.c (value_from_history_ref): Constify.
3675 * value.h (value_from_history_ref): Update.
3676
5f08566b
TT
36772014-07-30 Tom Tromey <tromey@redhat.com>
3678
3679 * corefile.c (hook_type, call_extra_exec_file_hooks)
3680 (specify_exec_file_hook): Constify.
3681 * exec.c (exec_file_attach): Make "filename" const.
3682 * gdbcore.h (deprecated_exec_file_display_hook)
3683 (specify_exec_file_hook, exec_file_attach): Constify.
3684 * main.c (captured_main): Use catch_command_errors_const.
3685
8981c758
TT
36862014-07-30 Tom Tromey <tromey@redhat.com>
3687
3688 * target.c (open_target): New function.
3689 (add_target_with_completer, add_deprecated_target_alias): Use
3690 set_cmd_sfunc, set_cmd_context.
3691 (debug_to_open): Remove.
3692 (setup_target_debug): Update.
3693
a1c7835a
YQ
36942014-07-30 Yao Qi <yao@codesourcery.com>
3695
3696 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
3697 comments.
3698 * parse.c (exp_iterate): Update comments.
3699
976411d6
GB
37002014-07-30 Gary Benson <gbenson@redhat.com>
3701
3702 * common/common-defs.h: New file.
3703 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
3704 * defs.h: Include common-defs.h.
3705 Do not include config.h or build-gnulib/config.h.
3706
5d4848a4
GB
37072014-07-30 Gary Benson <gbenson@redhat.com>
3708
3709 * common/common-utils.h: Do not include config.h.
3710 * nat/linux-btrace.h: Likewise.
3711
d41f6d8e
GB
37122014-07-30 Gary Benson <gbenson@redhat.com>
3713
3714 * btrace.c: Include defs.h.
3715 * common/ptid.c: Include defs.h or server.h as appropriate.
3716 * nat/mips-linux-watch.c: Likewise.
3717
84202f9c
TT
37182014-07-29 Tom Tromey <tromey@redhat.com>
3719
3720 * target.c (target_is_pushed): Simplify.
3721
2530441c
JB
37222014-07-29 Joel Brobecker <brobecker@adacore.com>
3723
3724 GDB 7.8 released.
3725
7e09a223
YQ
37262014-07-29 Yao Qi <yao@codesourcery.com>
3727
3728 PR gdb/17206
3729 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
3730
7ebdbe92
DE
37312014-07-28 Doug Evans <xdje42@gmail.com>
3732
3733 PR guile/17203
3734 * guile/scm-param.c (pascm_parameter_defined_p): New function.
3735 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
3736 parameters.
3737
f347ffc9
WN
37382014-07-28 Will Newton <will.newton@linaro.org>
3739
3740 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
3741 (THUMB2_SET_R7_SIGRETURN2): Likewise.
3742 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
3743 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
3744 (THUMB2_EABI_SYSCALL): Likewise.
3745 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
3746 struct tramp_frame.
3747 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
3748 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
3749
37c5f1f7
DE
37502014-07-27 Doug Evans <xdje42@gmail.com>
3751
3752 * guile/scm-param.c (pascm_print_param_smob): Fix output.
3753
0c3abbc7
DE
37542014-07-27 Doug Evans <xdje42@gmail.com>
3755
3756 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
3757
e76c5d17
DE
37582014-07-26 Ludovic Courtès <ludo@gnu.org>
3759 Doug Evans <xdje42@gmail.com>
3760
3761 PR guile/17146
3762 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
3763 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
3764 * configure.ac: Try to use guild to compile an scm file, if it fails
3765 then disable guile support.
3766 * configure: Regenerate.
3767 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
3768 GUILE_FILE_LIST.
3769 (GUILE_COMPILED_FILES): New variable.
3770 (GUILE_FILES) Update.
3771 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
3772 (stamp-guile): Compile scm files.
3773 * guile/guile.c (boot_guile_support): New function.
3774 (standard_throw_args_p): New function.
3775 (print_standard_throw_error, print_throw_error): New functions.
3776 (handle_boot_error): New function.
3777 (initialize_scheme_side): Rewrite to call boot_guile_support.
3778 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
3779 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
3780
186fcde0
DE
37812014-07-26 Ludovic Courtès <ludo@gnu.org>
3782 Doug Evans <xdje42@gmail.com>
3783
3784 PR guile/17146
3785 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
3786 * guile/lib/gdb/support.scm: New file.
3787 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
3788 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
3789 All uses updated.
3790 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
3791 All uses updated.
3792 (%assert-type): Ditto, and renamed to assert-type.
3793 (%exception-print-style): Delete.
3794
4df42755
DE
37952014-07-26 Doug Evans <xdje42@gmail.com>
3796
3797 PR build/17105
3798 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
3799 * configure: Regenerate.
3800 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
3801 PYTHON_FILES.
3802 (PYTHON_FILES): New variable.
3803 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
3804 (GUILE_FILES): New variable.
3805 (stamp-python, install-python, uninstall-python): Handle empty
3806 file list.
3807 (stamp-guile, install-guile, uninstall-guile): Ditto.
3808
ee7333ae
DE
38092014-07-26 Doug Evans <xdje42@gmail.com>
3810
3811 PR guile/17177
3812 * guile/lib/gdb.scm (pretty-printers): Export.
3813 (set-pretty-printers!): Export.
3814 * guile/lib/gdb/printing.scm (gdb module): Update.
3815 (prepend-pretty-printer!, append-pretty-printer!): Update.
3816 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
3817 (pretty_printer_list_var): Delete.
3818 (pretty_printer_list): New static global.
3819 (gdbscm_pretty_printers): New function.
3820 (gdbscm_set_pretty_printers_x): New function.
3821 (ppscm_find_pretty_printer_from_gdb): Update.
3822 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
3823 (gdbscm_initialize_pretty_printers): Update.
3824
74edf516
DE
38252014-07-26 Doug Evans <xdje42@gmail.com>
3826
3827 PR 17185
3828 * configure.ac: Add check for header gc/gc.h.
3829 Add check for function setenv.
3830 * configure: Regenerate.
3831 * config.in: Regenerate.
3832 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
3833
d54398a7
MR
38342014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
3835
3836 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
3837 variation in gdbarch matching.
3838
ab16fce8
TT
38392014-07-25 Tom Tromey <tromey@redhat.com>
3840
3841 * exec.c (using_exec_ops): Remove.
3842 (exec_close_1): Update. Remove extraneous block, reindent.
3843 (add_target_sections): Use target_is_pushed.
3844
88056fbb
PA
38452014-07-25 Pedro Alves <palves@redhat.com>
3846
3847 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
3848 * monitor.c (monitor_create_inferior): Likewise.
3849 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
3850 * remote-sim.c (gdbsim_create_inferior): Likewise.
3851 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
3852 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
3853 * windows-nat.c (do_initial_windows_stuff): Likewise.
3854
70509625
PA
38552014-07-25 Pedro Alves <palves@redhat.com>
3856
3857 * NEWS: Mention signal passing and "signal" command changes.
3858 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
3859 comment.
3860 * breakpoint.c (until_break_command): Adjust clear_proceed_status
3861 call.
3862 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
3863 * infcmd.c (proceed_thread_callback, continue_1, step_once)
3864 (jump_command): Adjust clear_proceed_status call.
3865 (signal_command): Warn if other thread that are resumed have
3866 signals that will be delivered. Adjust clear_proceed_status call.
3867 (until_next_command, finish_command)
3868 (proceed_after_attach_callback, attach_command_post_wait)
3869 (attach_command): Adjust clear_proceed_status call.
3870 * infrun.c (proceed_after_vfork_done): Likewise.
3871 (proceed_after_attach_callback): Adjust comment.
3872 (clear_proceed_status_thread): Clear stop_signal if not in pass
3873 state.
3874 (clear_proceed_status_callback): Delete.
3875 (clear_proceed_status): New 'step' parameter. Only clear the
3876 proceed status of threads the command being prepared is about to
3877 resume.
3878 (proceed): If passed in an explicit signal, override stop_signal
3879 with it. Don't pass the last stop signal to the thread we're
3880 resuming.
3881 (init_wait_for_inferior): Adjust clear_proceed_status call.
3882 (switch_back_to_stepped_thread): Clear the signal if it should not
3883 be passed.
3884 * infrun.h (clear_proceed_status): New 'step' parameter.
3885 (user_visible_resume_ptid): Add comment.
3886 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
3887 signal is in pass state.
3888 * remote.c (append_pending_thread_resumptions): Likewise.
3889 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
3890
d8be2939
TT
38912014-07-25 Tom Tromey <tromey@redhat.com>
3892
3893 * target.h (target_stopped_data_address)
3894 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
3895 parentheses.
3896
7d0d9d2b
PL
38972014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
3898
3899 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
3900 comments.
3901 (avr_pointer_to_address): Likewise.
3902
e9e7f724
TT
39032014-07-24 Tom Tromey <tromey@redhat.com>
3904
3905 * monitor.c (compile_pattern): Update.
3906 * target.h (struct target_ops) <to_shortname, to_longname,
3907 to_doc>: Now const.
3908
1947513d
TT
39092014-07-24 Tom Tromey <tromey@redhat.com>
3910
3911 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
3912 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
3913 (add_info_alias, add_com): Make "doc" const.
3914 (print_doc_line): Make "str" const.
3915 (delete_cmd): Update.
3916 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
3917 (print_doc_line): Update.
3918 * cli/cli-script.c (document_command): Update.
3919 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
3920 (add_com, add_info, add_info_alias): Update.
3921 * guile/scm-cmd.c (cmdscm_destroyer): Update.
3922 * python/py-cmd.c (cmdpy_destroyer): Update.
3923
64e61d29
TT
39242014-07-24 Tom Tromey <tromey@redhat.com>
3925
3926 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
3927 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
3928 (help_cmd_list): Constify.
3929 (lookup_cmd): Update.
3930 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
3931 const.
3932 (help_cmd_list, apropos_cmd): Update.
3933 * cli/cli-script.c (show_user): Update.
3934 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
3935 * cli/cli-setshow.h (cmd_show_list): Update.
3936 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
3937 (cmd_show_list): Update.
3938 * guile/scm-cmd.c (cmdscm_destroyer): Update.
3939 * python/py-cmd.c (cmdpy_destroyer): Update.
3940
429e55ea
TT
39412014-07-24 Tom Tromey <tromey@redhat.com>
3942
3943 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
3944 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
3945 const.
3946 * command.h (deprecate_cmd): Update.
3947 * maint.c (maintenance_do_deprecate): Add casts.
3948
64669f3b
TT
39492014-07-24 Tom Tromey <tromey@redhat.com>
3950
3951 * cli/cli-decode.c (help_cmd): Make parameter "const".
3952 * cli/cli-decode.h (help_cmd): Update.
3953
d3d3328b
TT
39542014-07-24 Tom Tromey <tromey@redhat.com>
3955
3956 * stack.c (up_silently_base, down_silently_base): Make argument
3957 const.
3958
414842dc
TT
39592014-07-24 Tom Tromey <tromey@redhat.com>
3960
3961 * solib.c (solib_add): Make "pattern" const.
3962 * solib.h (solib_add): Update.
3963
baa336ce
TT
39642014-07-24 Tom Tromey <tromey@redhat.com>
3965
3966 * remote.c (remote_serial_open, print_packet, putpkt)
3967 (putpkt_binary): Constify.
3968 * remote.h (putpkt): Update.
3969
5a19e2d0
TT
39702014-07-24 Tom Tromey <tromey@redhat.com>
3971
3972 * monitor.c (monitor_open): Make "args" const.
3973 * monitor.h (monitor_open): Update.
3974
fc4baa5e
TT
39752014-07-24 Tom Tromey <tromey@redhat.com>
3976
3977 * maint.c (match_bfd_flags): Make "string" const.
3978 (print_bfd_section_info): Remove casts.
3979 (print_objfile_section_info): Make "string" const.
3980
0d5f0dbe
TT
39812014-07-24 Tom Tromey <tromey@redhat.com>
3982
3983 * inf-child.c (inf_child_open_target): Make "arg" const.
3984 * inf-child.h (inf_child_open_target): Update.
3985
41c77899
TT
39862014-07-24 Tom Tromey <tromey@redhat.com>
3987
3988 * environ.c (unset_in_environ): Make "var" const.
3989 * environ.h (unset_in_environ): Update.
3990
93db0d79
TT
39912014-07-24 Tom Tromey <tromey@redhat.com>
3992
3993 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
3994 Make "cmd" const.
3995 (scan_filename_with_cleanup): Likewise.
3996 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
3997 Make arguments const.
3998 (restore_command): Update.
3999
36d6eb95
PA
40002014-07-24 Pedro Alves <palves@redhat.com>
4001
4002 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
4003
8009206a
TT
40042014-07-24 Tom Tromey <tromey@redhat.com>
4005 Gary Benson <gbenson@redhat.com>
4006
4007 * nat/linux-ptrace.c (additional_flags): New global.
4008 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
4009 additional_flags; don't check GDBSERVER.
4010 (linux_ptrace_set_additional_flags): New function.
4011 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
4012 Declare.
4013 * linux-nat.c (_initialize_linux_nat): Call
4014 linux_ptrace_set_additional_flags.
4015
a7068b60
TT
40162014-07-24 Tom Tromey <tromey@redhat.com>
4017
4018 * make-target-delegates (munge_type, write_debugmethod): New
4019 functions.
4020 (debug_names): New global.
4021 ($TARGET_DEBUG_PRINTER): New global.
4022 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
4023 name.
4024 Write debug methods. Generate init_debug_target.
4025 * target-debug.h: New file.
4026 * target-delegates.c: Rebuild.
4027 * target.c: Include target-debug.h.
4028 (debug_target): Hoist definition.
4029 (target_kill, target_get_section_table, target_memory_map)
4030 (target_flash_erase, target_flash_done, target_detach)
4031 (target_disconnect, target_wait, target_resume)
4032 (target_pass_signals, target_program_signals, target_follow_fork)
4033 (target_mourn_inferior, target_search_memory)
4034 (target_thread_address_space, target_close)
4035 (target_find_new_threads, target_core_of_thread)
4036 (target_verify_memory, target_insert_mask_watchpoint)
4037 (target_remove_mask_watchpoint): Remove targetdebug code.
4038 (debug_to_post_attach, debug_to_prepare_to_store)
4039 (debug_to_files_info, debug_to_insert_breakpoint)
4040 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
4041 (debug_to_region_ok_for_hw_watchpoint)
4042 (debug_to_can_accel_watchpoint_condition)
4043 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
4044 (debug_to_watchpoint_addr_within_range)
4045 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
4046 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
4047 (debug_to_terminal_init, debug_to_terminal_inferior)
4048 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
4049 (debug_to_terminal_save_ours, debug_to_terminal_info)
4050 (debug_to_load, debug_to_post_startup_inferior)
4051 (debug_to_insert_fork_catchpoint)
4052 (debug_to_remove_fork_catchpoint)
4053 (debug_to_insert_vfork_catchpoint)
4054 (debug_to_remove_vfork_catchpoint)
4055 (debug_to_insert_exec_catchpoint)
4056 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
4057 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
4058 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
4059 (setup_target_debug): Call init_debug_target.
4060 * target.h (TARGET_DEBUG_PRINTER): New macro.
4061 (struct target_ops) <to_resume, to_wait, to_pass_signals,
4062 to_program_signals>: Use TARGET_DEBUG_PRINTER.
4063
2c51604d
GB
40642014-07-24 Gary Benson <gbenson@redhat.com>
4065
4066 * exceptions.h (throw_vfatal): Renamed to...
4067 (throw_vquit): New declaration.
4068 (throw_quit): Likewise.
4069 * exceptions.c (throw_vfatal): Renamed to...
4070 (throw_vquit): New function.
4071 (throw_quit): Likewise.
4072 (throw_error): Call throw_verror rather than throw_it.
4073 * utils.h (vfatal): Removed.
4074 (fatal): Likewise.
4075 * utils.c (vfatal): Removed.
4076 (fatal): Likewise.
4077 (internal_verror): Replaced call to fatal with call to throw_quit.
4078 (quit): Replaced calls to fatal with calls to throw_quit.
4079
34211963
ME
40802014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
4081
4082 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
4083 target_read_code.
4084
a52b4d3e
ME
40852014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
4086
4087 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
4088 less than zero in conditional expression.
4089
a8bdc56b
TT
40902014-07-23 Tom Tromey <tromey@redhat.com>
4091
4092 * make-target-delegates ($ARGS_PART): Match trailing close paren.
4093 ($INTRO_PART): Don't match whitespace.
4094 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
4095 argument matching.
4096 ($METHOD): Add $METHOD_TRAILER.
4097 (trim): Rewrite.
4098 (scan_target_h): New sub.
4099 Change main loop not to collect state.
4100 * target-delegates.c: Rebuild.
4101
91b52240
GB
41022014-07-23 Gary Benson <gbenson@redhat.com>
4103
4104 * cp-support.c (gdb_demangle): Fix build on systems without
4105 sigaltstack.
4106
45326f6f
JK
41072014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4108
4109 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
4110 for reference entry value target data value.
4111
e214cf6c
JK
41122014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4113
4114 * stack.c (read_frame_arg): Verify value_optimized_out before calling
4115 value_available_contents_eq.
4116
bddbbedd
PA
41172014-07-22 Pedro Alves <palves@redhat.com>
4118
4119 * value.c (allocate_optimized_out_value): Don't mark value as
4120 non-lazy.
4121
45c71484
JW
41222014-07-22 Jiong Wang <jiong.wang@arm.com>
4123
4124 * MAINTAINERS (Write After Approval): Update my email address.
4125
9597b22a
DE
41262014-07-20 Doug Evans <dje@google.com>
4127
4128 PR server/17147
4129 * remote.c (putpkt_binary): Add text to error message.
4130
91101fe5
YQ
41312014-07-20 Yao Qi <yao@codesourcery.com>
4132
4133 * eval.c: Remove "Chill" from comments.
4134 * gdbtypes.h: Likewise.
4135 * symtab.h: Likewise.
4136
c9402c95
YQ
41372014-07-20 Yao Qi <yao@codesourcery.com>
4138
4139 * std-operator.def: Update comments to TERNOP_SLICE.
4140
ae8fddda
YQ
41412014-07-20 Yao Qi <yao@codesourcery.com>
4142
4143 * std-operator.def: Remove BINOP_RANGE.
4144 * breakpoint.c (watchpoint_exp_is_const): Update.
4145 * expprint.c (dump_subexp_body_standard): Likewise.
4146 * eval.c (init_array_element): Remove dead code.
4147 (evaluate_subexp_standard): Likewise.
4148
9c816640
YQ
41492014-07-20 Yao Qi <yao@codesourcery.com>
4150
4151 * std-operator.def: Remove BINOP_IN.
4152 * breakpoint.c (watchpoint_exp_is_const): Update.
4153 * eval.c (evaluate_subexp_standard): Likewise.
4154 * expprint.c (dump_subexp_body_standard): Likewise.
4155
164224e9
ME
41562014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
4157
4158 * microblaze-tdep.c (microblaze_register_names): Add
4159 the rshr and rslr register names.
4160 (microblaze_gdbarch_init): Use of tdesc_has_registers.
4161 Use of tdesc_find_feature. Use of tdesc_data_alloc.
4162 Use of tdesc_numbered_register. Use of
4163 microblaze_register_g_packet_guesses. Use of
4164 tdesc_use_registers. Use of set_gdbarch_register_type.
4165 (microblaze_register_g_packet_guesses): New.
4166 * microblaze-tdep.h (microblaze_reg_num): Add
4167 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
4168 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
4169 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
4170 * features/microblaze-core.xml: New file.
4171 * features/microblaze-stack-protect.xml: New file.
4172 * features/microblaze-with-stack-protect.c: New file.
4173 * features/microblaze-with-stack-protect.xml: New file.
4174 * features/microblaze.xml: New file.
4175 * features/microblaze.c: New file.
4176 * features/Makefile (microblaze-with-stack-protect): Add
4177 microblaze-with-stack-protect microblaze and microblaze-expedite.
4178 * regformats/microblaze-with-stack-protect.dat: New file.
4179 * regformats/microblaze.dat: New file.
4180 * doc/gdb.texinfo (MicroBlaze Features): Added.
4181
e8b2341c
TT
41822014-07-18 Tom Tromey <tromey@redhat.com>
4183
4184 * exec.c (exec_ops): Now static.
4185 * exec.h (exec_ops): Don't declare.
4186
44e89118
TT
41872014-07-18 Tom Tromey <tromey@redhat.com>
4188
4189 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
4190 to find_target_beneath.
4191 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
4192 find_target_beneath.
4193 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
4194
b0ed115f
TT
41952014-07-18 Tom Tromey <tromey@redhat.com>
4196
4197 PR gdb/17130:
4198 * utils.c (quit): Use target_supports_terminal_ours.
4199 * target.h (target_supports_terminal_ours): Declare.
4200 * target.c (target_supports_delete_record): Don't check
4201 to_delete_record against NULL.
4202 (target_supports_terminal_ours): New function.
4203
e75fdfca
TT
42042014-07-18 Tom Tromey <tromey@redhat.com>
4205
4206 PR gdb/17130:
4207 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
4208 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
4209 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
4210 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
4211 * windows-nat.c (windows_xfer_partial): Always delegate.
4212 * record-btrace.c (record_btrace_xfer_partial): Simplify
4213 delegation.
4214 (record_btrace_fetch_registers, record_btrace_store_registers)
4215 (record_btrace_prepare_to_store, record_btrace_resume)
4216 (record_btrace_wait, record_btrace_find_new_threads)
4217 (record_btrace_thread_alive): Likewise.
4218 * procfs.c (procfs_xfer_partial): Always delegate.
4219 * corelow.c (core_xfer_partial): Always delegate.
4220 * sol-thread.c (sol_find_new_threads): Simplify delegation.
4221
83814951
TT
42222014-07-18 Tom Tromey <tromey@redhat.com>
4223
4224 * exec.c (exec_make_note_section): Move earlier.
4225
b8b8facf
DE
42262014-07-17 Doug Evans <dje@google.com>
4227
74b49205 4228 PR gdb/17170
b8b8facf
DE
4229 * maint.c (count_symtabs_and_blocks): Handle NULL
4230 current_program_space.
4231 (report_command_stats): Check global enabled flag in addition to
4232 recorded enabled flag.
4233 (make_command_stats_cleanup): Handle msg_type == 0, startup.
4234
69ff6be5
PA
42352014-07-16 Pedro Alves <palves@redhat.com>
4236
4237 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
4238
252db1b5
TT
42392014-07-16 Tom Tromey <tromey@redhat.com>
4240
4241 * target.h (struct target_ops) <to_delete_record>: Reformat
4242 comment.
4243
a432721e
TT
42442014-07-16 Tom Tromey <tromey@redhat.com>
4245
4246 * target-delegates.c: Rebuild.
4247
487d9753
PL
42482014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
4249
4250 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
4251 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
4252 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
4253 (avr_pointer_to_address): Likewise.
4254 (avr_address_class_type_flags): New function.
4255 (avr_address_class_type_flags_to_name): Likewise.
4256 (avr_address_class_name_to_type_flags): Likewise.
4257 (avr_gdbarch_init): Set address_class_type_flags,
4258 address_class_type_flags_to_name and
4259 address_class_name_to_type_flags.
4260
57745c90
PA
42612014-07-15 Pedro Alves <palves@redhat.com>
4262
4263 * linux-nat.c (kill_callback): Save errno and work with saved
4264 copy.
4265
2d40be18
SM
42662014-07-15 Simon Marchi <simon.marchi@ericsson.com>
4267
4268 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
4269
572f6555
EBM
42702014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4271
4272 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
4273 breakpoint support correctly.
4274
cc1c52ad
PA
42752014-07-14 Pedro Alves <palves@redhat.com>
4276
4277 * utils.c (prompt_for_continue): Call target_terminal_ours.
4278
1e973570
PA
42792014-07-14 Pedro Alves <palves@redhat.com>
4280
4281 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
4282 catch_errors. Don't re-enable stdin or notify observers where,
4283 and rethrow error.
4284 (fetch_inferior_event_wrapper): Delete.
4285
93d6eb10
PA
42862014-07-14 Pedro Alves <palves@redhat.com>
4287
4288 PR gdb/17072
4289 * top.c: Include "inf-loop.h".
4290 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
4291 field.
4292 (gdb_readline_wrapper_cleanup): Make the target async again, if it
4293 was async before.
4294 (gdb_readline_wrapper): Store whether the target is async, and
4295 make it sync.
4296
0017922d
PA
42972014-07-14 Pedro Alves <palves@redhat.com>
4298
4299 PR gdb/17072
4300 * top.c (gdb_readline_wrapper_line): Tweak comment.
4301 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
4302 the input handler callback.
4303
94696ad3
PA
43042014-07-14 Pedro Alves <palves@redhat.com>
4305
4306 PR gdb/17072
4307 * main.c: Include event-top.h.
4308 (handle_command_errors): New function.
4309 (catch_command_errors, catch_command_errors_const): Use it.
4310
9d1e69a2
PA
43112014-07-14 Pedro Alves <palves@redhat.com>
4312
4313 * exceptions.c (catch_command_errors, catch_command_errors_const):
4314 Moved to main.c.
4315 * exceptions.h (catch_command_errors_ftype)
4316 (catch_command_errors_const_ftype): Moved to main.c.
4317 (catch_command_errors, catch_command_errors_const): Delete
4318 declarations.
4319 * main.c (catch_command_errors_ftype)
4320 (catch_command_errors_const_ftype): Moved here from exceptions.h.
4321 (catch_command_errors, catch_command_errors_const)): Moved here
4322 from exceptions.c and make static.
4323
feefc97b
PA
43242014-07-14 Pedro Alves <palves@redhat.com>
4325
4326 * exceptions.c (print_any_exception): Delete.
4327 (catch_exceptions_with_msg): Use exception_print instead of
4328 print_any_exception.
4329 (catch_errors): Use exception_fprintf instead of
4330 print_any_exception.
4331 (catch_command_errors, catch_command_errors_const): Use
4332 exception_print instead of print_any_exception.
4333
c933f875
PA
43342014-07-14 Pedro Alves <palves@redhat.com>
4335
4336 * infcall.c (run_inferior_call): Set 'sync_execution' while
4337 running the inferior call.
4338
feb6f816
PA
43392014-07-14 Pedro Alves <palves@redhat.com>
4340
4341 * value.c (value_contents_equal): Delete function.
4342 * value.h (value_contents_equal): Delete declaration.
4343
d98b7a16
TT
43442014-07-14 Tom Tromey <tromey@redhat.com>
4345
4346 PR exp/17106:
4347 * gdbtypes.c (is_dynamic_type_internal): New function, from
4348 is_dynamic_type.
4349 (is_dynamic_type): Rewrite.
4350 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
4351 (resolve_dynamic_struct): Likewise.
4352 (resolve_dynamic_type_internal): New function, from
4353 resolve_dynamic_type.
4354 (resolve_dynamic_type): Rewrite.
4355
548740d6
TT
43562014-07-14 Tom Tromey <tromey@redhat.com>
4357
4358 * target.c (target_require_runnable): Also check record_stratum.
4359 Update comment.
4360
808f7ab1
YQ
43612014-07-11 Yao Qi <yao@codesourcery.com>
4362
4363 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
4364 thumb_instruction_restores_sp return true.
4365
540314bd
YQ
43662014-07-11 Yao Qi <yao@codesourcery.com>
4367
4368 * arm-tdep.c (thumb_instruction_restores_sp): New function.
4369 (thumb_in_function_epilogue_p): Call
4370 thumb_instruction_restores_sp.
4371
1db01f22
YQ
43722014-07-11 Yao Qi <yao@codesourcery.com>
4373
4374 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
4375 'add sp, #imm'.
4376 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
4377
3116063b
GB
43782014-07-11 Gary Benson <gbenson@redhat.com>
4379
4380 * amd64-linux-nat.c (gdbcore.h): Remove include.
4381 (regset.h): Likewise.
4382 (nat/linux-btrace.h): Likewise.
4383 (btrace.h): Likewise.
4384 (gdb_assert.h): Likewise.
4385 (string.h): Likewise.
4386 (sys/uio.h): Likewise.
4387 (sys/debugreg.h): Likewise.
4388 (sys/syscall.h): Likewise.
4389 (sys/procfs.h): Likewise.
4390 (sys/user.h): Likewise.
4391 (asm/ptrace.h): Likewise.
4392 (i386-nat.h): Likewise.
4393 * i386-linux-nat.c (i386-nat.h): Likewise.
4394 (regset.h): Likewise.
4395 (target.h): Likewise.
4396 (linux-nat.h): Likewise.
4397 (nat/linux-btrace.h): Likewise.
4398 (btrace.h): Likewise.
4399 (gdb_assert.h): Likewise.
4400 (string.h): Likewise.
4401 (sys/uio.h): Likewise.
4402 (sys/user.h): Likewise.
4403 (sys/procfs.h): Likewise.
4404 (sys/reg.h): Likewise.
4405 (sys/debugreg.h): Likewise.
4406 (ORIG_EAX): Remove definition.
4407
040baaf6
GB
44082014-07-11 Gary Benson <gbenson@redhat.com>
4409
4410 * i386-linux-nat.h: New file.
4411 * x86-linux-nat.h: Likewise.
4412 * x86-linux-nat.c: Likewise.
4413 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
4414 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
4415 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4416 * amd64-linux-nat.c (x86-linux-nat.h): New include.
4417 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
4418 (PTRACE_SETREGSET): Likewise.
4419 (arch_lwp_info): Now in x86-linux-nat.c.
4420 (have_ptrace_getregset): Now in x86-linux-nat.h.
4421 (x86_linux_dr_get): Now in x86-linux-nat.c.
4422 (x86_linux_dr_set): Likewise.
4423 (x86_linux_dr_get_addr): Likewise.
4424 (x86_linux_dr_get_control): Likewise.
4425 (x86_linux_dr_get_status): Likewise.
4426 (update_debug_registers_callback): Likewise.
4427 (x86_linux_dr_set_control): Likewise.
4428 (x86_linux_dr_set_addr): Likewise.
4429 (x86_linux_prepare_to_resume): Likewise.
4430 (x86_linux_new_thread): Likewise.
4431 (x86_linux_new_fork): Likewise.
4432 (x86_linux_get_thread_area): Likewise.
4433 (super_post_startup_inferior): Likewise.
4434 (x86_linux_child_post_startup_inferior): Likewise.
4435 (AMD64_LINUX_USER64_CS): Likewise.
4436 (AMD64_LINUX_X32_DS): Likewise.
4437 (x86_linux_read_description): Likewise.
4438 (x86_linux_enable_btrace): Likewise.
4439 (x86_linux_disable_btrace): Likewise.
4440 (x86_linux_teardown_btrace): Likewise.
4441 (x86_linux_read_btrace): Likewise.
4442 (x86_linux_create_target): Likewise.
4443 (x86_linux_add_target): Likewise.
4444 * i386-linux-nat.c (x86-linux-nat.h): New include.
4445 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
4446 (PTRACE_SETREGSET): Likewise.
4447 (arch_lwp_info): Now in x86-linux-nat.c.
4448 (have_ptrace_getregset): Now in x86-linux-nat.h.
4449 (x86_linux_dr_get): Now in x86-linux-nat.c.
4450 (x86_linux_dr_set): Likewise.
4451 (x86_linux_dr_get_addr): Likewise.
4452 (x86_linux_dr_get_control): Likewise.
4453 (x86_linux_dr_get_status): Likewise.
4454 (update_debug_registers_callback): Likewise.
4455 (x86_linux_dr_set_control): Likewise.
4456 (x86_linux_dr_set_addr): Likewise.
4457 (x86_linux_prepare_to_resume): Likewise.
4458 (x86_linux_new_thread): Likewise.
4459 (x86_linux_new_fork): Likewise.
4460 (x86_linux_get_thread_area): Likewise.
4461 (super_post_startup_inferior): Likewise.
4462 (x86_linux_child_post_startup_inferior): Likewise.
4463 (AMD64_LINUX_USER64_CS): Likewise.
4464 (AMD64_LINUX_X32_DS): Likewise.
4465 (x86_linux_read_description): Likewise.
4466 (x86_linux_enable_btrace): Likewise.
4467 (x86_linux_disable_btrace): Likewise.
4468 (x86_linux_teardown_btrace): Likewise.
4469 (x86_linux_read_btrace): Likewise.
4470 (x86_linux_create_target): Likewise.
4471 (x86_linux_add_target): Likewise.
4472
1aa7e42c
GB
44732014-07-11 Gary Benson <gbenson@redhat.com>
4474
4475 * amd64-linux-nat.c: Comment and whitespace changes.
4476 * i386-linux-nat.c: Comment and whitespace changes.
4477
c1e246a0
GB
44782014-07-11 Gary Benson <gbenson@redhat.com>
4479
4480 * amd64-linux-nat.c (x86_linux_create_target): New function.
4481 (x86_linux_add_target): Likewise.
4482 (_initialize_amd64_linux_nat): Delegate to the above new functions.
4483 * i386-linux-nat.c (x86_linux_create_target): New function.
4484 (x86_linux_add_target): Likewise.
4485 (_initialize_i386_linux_nat): Delegate to the above new functions.
4486
8c420b8d
GB
44872014-07-11 Gary Benson <gbenson@redhat.com>
4488
4489 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
4490 (ps_get_thread_area): Delegate to the above in 32-bit mode.
4491 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
4492 (ps_get_thread_area): Delegate to the above.
4493
cb1da100
GB
44942014-07-11 Gary Benson <gbenson@redhat.com>
4495
4496 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
4497 x86_linux_read_description. All uses updated. amd64-specific
4498 code conditionalized. Conditionalized i386-specific code added.
4499 Redundant cast removed.
4500 * i386-linux-nat.c (i386_linux_read_description): Renamed to
4501 x86_linux_read_description. All uses updated. i386-specific
4502 code conditionalized. Conditionalized amd64-specific code added.
4503 One sizeof replaced with the actual type it is describing.
4504
2acf3cd0
GB
45052014-07-11 Gary Benson <gbenson@redhat.com>
4506
4507 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
4508 x86_linux_dr_get. All uses updated.
4509 (amd64_linux_dr_set): Renamed to
4510 x86_linux_dr_set. All uses updated.
4511 (amd64_linux_dr_get_addr): Renamed to
4512 x86_linux_dr_get_addr. All uses updated.
4513 (amd64_linux_dr_get_control): Renamed to
4514 x86_linux_dr_get_control. All uses updated.
4515 (amd64_linux_dr_get_status): Renamed to
4516 x86_linux_dr_get_status. All uses updated.
4517 (amd64_linux_dr_set_control): Renamed to
4518 x86_linux_dr_set_control. All uses updated.
4519 (amd64_linux_dr_set_addr): Renamed to
4520 x86_linux_dr_set_addr. All uses updated.
4521 (amd64_linux_prepare_to_resume): Renamed to
4522 x86_linux_prepare_to_resume. All uses updated.
4523 (amd64_linux_new_thread): Renamed to
4524 x86_linux_new_thread. All uses updated.
4525 (amd64_linux_new_fork): Renamed to
4526 x86_linux_new_fork. All uses updated.
4527 (amd64_linux_child_post_startup_inferior): Renamed to
4528 x86_linux_child_post_startup_inferior. All uses updated.
4529 (amd64_linux_enable_btrace): Renamed to
4530 x86_linux_enable_btrace. All uses updated.
4531 (amd64_linux_disable_btrace): Renamed to
4532 x86_linux_disable_btrace. All uses updated.
4533 (amd64_linux_teardown_btrace): Renamed to
4534 x86_linux_teardown_btrace. All uses updated.
4535 (amd64_linux_read_btrace): Renamed to
4536 x86_linux_read_btrace. All uses updated.
4537 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
4538 x86_linux_dr_get. All uses updated.
4539 (i386_linux_dr_set): Renamed to
4540 x86_linux_dr_set. All uses updated.
4541 (i386_linux_dr_get_addr): Renamed to
4542 x86_linux_dr_get_addr. All uses updated.
4543 (i386_linux_dr_get_control): Renamed to
4544 x86_linux_dr_get_control. All uses updated.
4545 (i386_linux_dr_get_status): Renamed to
4546 x86_linux_dr_get_status. All uses updated.
4547 (i386_linux_dr_set_control): Renamed to
4548 x86_linux_dr_set_control. All uses updated.
4549 (i386_linux_dr_set_addr): Renamed to
4550 x86_linux_dr_set_addr. All uses updated.
4551 (i386_linux_prepare_to_resume): Renamed to
4552 x86_linux_prepare_to_resume. All uses updated.
4553 (i386_linux_new_thread): Renamed to
4554 x86_linux_new_thread. All uses updated.
4555 (i386_linux_new_fork): Renamed to
4556 x86_linux_new_fork. All uses updated.
4557 (i386_linux_child_post_startup_inferior): Renamed to
4558 x86_linux_child_post_startup_inferior. All uses updated.
4559 (i386_linux_enable_btrace): Renamed to
4560 x86_linux_enable_btrace. All uses updated.
4561 (i386_linux_disable_btrace): Renamed to
4562 x86_linux_disable_btrace. All uses updated.
4563 (i386_linux_teardown_btrace): Renamed to
4564 x86_linux_teardown_btrace. All uses updated.
4565 (i386_linux_read_btrace): Renamed to
4566 x86_linux_read_btrace. All uses updated.
4567
b9c1d481
AS
45682014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
4569
4570 * remote.c (extended_remote_post_attach): New function.
4571 (init_extended_remote_ops): Install it as to_post_attach method.
4572
7180e04a
PA
45732014-07-09 Pedro Alves <palves@redhat.com>
4574
4575 * infcmd.c (attach_command_post_wait): Don't call
4576 target_terminal_inferior here.
4577 (attach_command): Call it here instead.
4578
9a9a7608
AB
45792014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4580
4581 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
4582 field.
4583 * c-varobj.c (c_is_path_expr_parent): New function, moved core
4584 from varobj.c, with additional checks.
4585 (c_varobj_ops): Fill in is_path_expr_parent field.
4586 (cplus_varobj_ops): Fill in is_path_expr_parent field.
4587 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
4588 field.
4589 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
4590 ops method.
4591 (varobj_default_is_path_expr_parent): New function.
4592 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
4593 (varobj_default_is_path_expr_parent): Declare new function.
4594
1f267ae3
MM
45952014-07-08 Markus Metzger <markus.t.metzger@intel.com>
4596
4597 * infcmd.c (finish_backward): Turn internal error into normal error.
4598
b2ee242b
PA
45992014-07-07 Pedro Alves <palves@redhat.com>
4600
8a869bca 4601 PR gdb/17096
b2ee242b
PA
4602 * remote.c (async_handle_remote_sigint)
4603 (async_handle_remote_sigint_twice): Call
4604 gdb_call_async_signal_handler instead of
4605 mark_async_signal_handler.
4606
38e229b2
TT
46072014-07-07 Tom Tromey <tromey@redhat.com>
4608
4609 * target-delegates.c: Rebuild.
4610 * target.c (target_info_record): Remove.
4611 * record.c (info_record_command): Unconditionally call
4612 to_info_record.
4613 * target.h (struct target_ops) <to_info_record>: Use
4614 TARGET_DEFAULT_IGNORE.
4615 (target_info_record): Remove.
4616
f0f9ff95
TT
46172014-07-07 Tom Tromey <tromey@redhat.com>
4618
4619 * target.h (struct target_ops) <to_get_thread_local_address>: Use
4620 TARGET_DEFAULT_NORETURN.
4621 * target.c (generic_tls_error): New function.
4622 (target_translate_tls_address): Don't search target stack.
4623 * target-delegates.c: Rebuild.
4624 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
4625 stack.
4626 * linux-thread-db.c (thread_db_get_thread_local_address):
4627 Unconditionally call beneath target.
4628
4a5be5ee
MK
46292014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
4630
4631 * cli/cli-logging.c (pop_output_files): Assign targerr to
4632 gdb_stdtargerr.
4633
92c3b204
AB
46342014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
4635
4636 * MAINTAINERS (Write After Approval): Update my email address.
4637
9b11e3a7
GB
46382014-07-02 Gary Benson <gbenson@redhat.com>
4639
4640 * proc-service.c (ps_xfer_memory): Update comment.
4641 (ps_pstop): Remove unused function.
4642 (ps_pcontinue): Likewise.
4643 (ps_lstop): Likewise.
4644 (ps_lcontinue): Likewise.
4645 (ps_lgetxregsize): Likewise.
4646 (ps_lgetxregs): Likewise.
4647 (ps_lsetxregs): Likewise.
4648 (ps_plog): Likewise.
4649 (ps_ptread): Likewise.
4650 (ps_ptwrite): Likewise.
4651
cf363f18
MW
46522014-07-01 Mark Wielaard <mjw@redhat.com>
4653
4654 * dwarf2read.c (add_array_cv_type): New function.
4655 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
4656 (read_tag_volatile_type): Likewise.
4657
82ae6c8d
TT
46582014-07-01 Tom Tromey <tromey@redhat.com>
4659
4660 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
4661 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
4662 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
4663 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
4664 * command.h (cmd_cfunc_ftype): Move earlier.
4665 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
4666 (add_com, add_info): Use cmd_cfunc_ftype.
4667
96142726
TT
46682014-06-30 Tom Tromey <tromey@redhat.com>
4669
4670 * symtab.c (operator_chars): Make parameters and return type
4671 const.
4672 (file_matches): Make "files" const.
4673 (struct search_symbols_data) <files>: Now const.
4674 (search_symbols): Make "regexp" and "files" parameters const.
4675 Update.
4676 (symtab_symbol_info): Remove cast.
4677 (rbreak_command): Update.
4678 * symtab.h (search_symbols): Update.
4679
b67a2c6f
YQ
46802014-06-27 Yao Qi <yao@codesourcery.com>
4681
4682 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
4683 Change parameter type to 'struct thread_info *'. Caller
4684 updated.
4685 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
4686 Update declaration.
4687 * dummy-frame.c (struct dummy_frame_id): New.
4688 (dummy_frame_id_eq): New function.
4689 (struct dummy_frame) <id>: Change its type to 'struct
4690 dummy_frame_id'.
4691 (dummy_frame_push): Add parameter ptid and save it in
4692 dummy_frame_id.
4693 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
4694 inferior_ptid.
4695 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
4696 to inferior_ptid.
4697 (lookup_dummy_frame): Change parameter type to 'struct
4698 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
4699 instead of frame_id_eq.
4700 (dummy_frame_pop): Add parameter ptid. Callers updated.
4701 Update comments. Compose dummy_frame_id and pass it to
4702 lookup_dummy_frame.
4703 (dummy_frame_discard): Add parameter ptid.
4704 (dummy_frame_sniffer): Compose dummy_frame_id and call
4705 dummy_frame_id_eq instead of frame_id_eq.
4706 (fprint_dummy_frames): Print ptid.
4707 * dummy-frame.h: Remove comments.
4708 (dummy_frame_push): Add ptid in declaration.
4709 (dummy_frame_pop, dummy_frame_discard): Likewise.
4710
5b10184c
TT
47112014-06-26 Tom Tromey <tromey@redhat.com>
4712
4713 * cli/cli-cmds.c (error_no_arg): Make "why" const.
4714 * command.h (error_no_arg): Update.
4715
06900326
TT
47162014-06-26 Tom Tromey <tromey@redhat.com>
4717
4718 * cli/cli-setshow.c (do_set_command): Make "arg" const.
4719 (do_show_command): Make "arg" const.
4720 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
4721
c2bcbb1d
TT
47222014-06-26 Tom Tromey <tromey@redhat.com>
4723
4724 * record-full.c (record_full_get_bookmark): Make "args" const.
4725 (record_full_goto_bookmark): Make "raw_bookmark" const.
4726 * record.c (record_goto): New function.
4727 (cmd_record_goto): Use it. Now static.
4728 * record.h (record_goto): Declare.
4729 (cmd_record_goto): Remove declaration.
4730 * target-delegates.c: Rebuild.
4731 * target.h (struct target_ops) <to_get_bookmark,
4732 to_goto_bookmark>: Make parameter const.
4733
9cbe5fff
TT
47342014-06-26 Tom Tromey <tromey@redhat.com>
4735
4736 * defs.h (generic_load): Update.
4737 * m32r-rom.c (m32r_load_gen): Make "filename" const.
4738 * monitor.c (monitor_load): Make "args" const.
4739 * remote-m32r-sdi.c (m32r_load): Make "args" const.
4740 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
4741 const.
4742 (mips_load): Make "file" const.
4743 * remote-sim.c (gdbsim_load): Make "args" const.
4744 * remote.c (remote_load): Make "name" const.
4745 * symfile.c (generic_load): Make "args" const.
4746 * target-delegates.c: Rebuild.
4747 * target.c (target_load): Make "arg" const.
4748 (debug_to_load): Make "args" const.
4749 * target.h (struct target_ops) <to_load>: Make parameter const.
4750 (target_load): Update.
4751
34a68019
TT
47522014-06-26 Tom Tromey <tromey@redhat.com>
4753
4754 PR symtab/16902:
4755 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
4756 (dwarf2_physname, read_partial_die)
4757 (guess_partial_die_structure_name, fixup_partial_die)
4758 (guess_full_die_structure_name, anonymous_struct_prefix)
4759 (dwarf2_name): Use per-BFD obstack.
4760
efc889c1
YQ
47612014-06-26 Yao Qi <yao@codesourcery.com>
4762
4763 * dummy-frame.c (dummy_frame_sniffer): Move local variables
4764 dummyframe and this_id into inner block below.
4765
4395285e
YQ
47662014-06-26 Yao Qi <yao@codesourcery.com>
4767
4768 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
4769 with "signal_pass[0]" in the initialization of signal_pass.
4770
aef92902
MM
47712014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4772
4773 * record-btrace.c (record_btrace_generating_corefile)
4774 (record_btrace_prepare_to_generate_core)
4775 (record_btrace_done_generating_core): New.
4776 (record_btrace_xfer_partial, record_btrace_fetch_registers)
4777 (record_btrace_store_registers, record_btrace_prepare_to_store):
4778 Forward request when generating a core file.
4779 (record_btrace_open): Set record_btrace_generating_corefile to zero.
4780 (init_record_btrace_ops): Set to_prepare_to_generate_core and
4781 to_done_generating_core.
4782
5fff78c4
MM
47832014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4784
4785 * target.h (target_ops) <to_prepare_to_generate_core>
4786 <to_done_generating_core>: New.
4787 (target_prepare_to_generate_core, target_done_generating_core): New.
4788 * target.c (target_prepare_to_generate_core)
4789 (target_done_generating_core): New.
4790 * target-delegates.c: Regenerate.
4791 * gcore.c: (write_gcore_file): Rename to ...
4792 (write_gcore_file_1): ...this.
4793 (write_gcore_file): Call target_prepare_to_generate_core
4794 and target_done_generating_core.
4795
1d1f1ccb
MM
47962014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4797
4798 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
4799 * gcore.c (write_gcore_file): Free memory returned from
4800 make_corefile_notes.
4801 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
4802 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
4803
3343ef86
YQ
48042014-06-24 Yao Qi <yao@codesourcery.com>
4805
4806 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
4807 (arm_linux_init_abi): Set skip_trampoline_code with
4808 gdbarch_skip_trampoline_code instead of
4809 find_solib_trampoline_target.
4810
18d18ac8
YQ
48112014-06-24 Yao Qi <yao@codesourcery.com>
4812
4813 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
4814 arm_skip_bx_reg returns non-zero.
4815
80d8d390
YQ
48162014-06-24 Yao Qi <yao@codesourcery.com>
4817
4818 * arm-tdep.c (arm_skip_bx_reg): New function.
4819 (arm_skip_stub): Call arm_skip_bx_reg.
4820
6a18a01c
DB
48212014-06-23 Don Breazeal <donb@codesourcery.com>
4822
4823 * MAINTAINERS: Add myself as write-after-approval maintainer.
4824
8e9db26e
PA
48252014-06-23 Pedro Alves <palves@redhat.com>
4826
4827 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
4828 DR_CONTROL before setting DR0..DR3.
4829 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
4830 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
4831 bits of DR_CONTROL related to the debug register slot being
4832 disabled. If all slots are vacant, clear local slowdown as well,
4833 and assert DR_CONTROL is 0.
4834
70afc5b7
SC
48352014-06-23 Siva Chandra Reddy <sivachandra@google.com>
4836
4837 * python/lib/gdb/command/xmethods.py
4838 (get_method_matchers_in_loci): Lookup xmethod matchers in the
4839 current progspace only if the string "progspace" matches LOCUS_RE.
4840
840ed64d
JK
48412014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4842
4843 Fix --with-system-readline with readline-6.3 patch 5.
4844 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
4845 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
4846 types.
4847
26f2dc30
TT
48482014-06-20 Tom Tromey <tromey@redhat.com>
4849
4850 * dwarf2read.c (dw2_get_real_path): Use correct type in
4851 OBSTACK_CALLOC.
4852 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
4853
125f8a3d
GB
48542014-06-20 Gary Benson <gbenson@redhat.com>
4855
4856 * common/gdb_thread_db.h: Moved to nat. All includes updated.
4857 * common/glibc_thread_db.h: Likewise.
4858 * common/i386-cpuid.h: Likewise.
4859 * common/i386-gcc-cpuid.h: Likewise.
4860 * common/linux-btrace.h: Likewise.
4861 * common/linux-osdata.h: Likewise.
4862 * common/linux-procfs.h: Likewise.
4863 * common/linux-ptrace.h: Likewise.
4864 * common/mips-linux-watch.h: Likewise.
4865 * common/linux-btrace.c: Moved to nat.
4866 * common/linux-osdata.c: Likewise.
4867 * common/linux-procfs.c: Likewise.
4868 * common/linux-ptrace.c: Likewise.
4869 * common/mips-linux-watch.c: Likewise.
4870 * nat/gdb_thread_db.h: Moved from common.
4871 * nat/glibc_thread_db.h: Likewise.
4872 * nat/i386-cpuid.h: Likewise.
4873 * nat/i386-gcc-cpuid.h: Likewise.
4874 * nat/linux-btrace.c: Likewise.
4875 * nat/linux-btrace.h: Likewise.
4876 * nat/linux-osdata.c: Likewise.
4877 * nat/linux-osdata.h: Likewise.
4878 * nat/linux-procfs.c: Likewise.
4879 * nat/linux-procfs.h: Likewise.
4880 * nat/linux-ptrace.c: Likewise.
4881 * nat/linux-ptrace.h: Likewise.
4882 * nat/mips-linux-watch.c: Likewise.
4883 * nat/mips-linux-watch.h: Likewise.
4884 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
4885 (object file files): Reordered.
4886 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
4887 of glibc_thread_db.h.
4888
42995dbd
GB
48892014-06-20 Gary Benson <gbenson@redhat.com>
4890
4891 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
4892 (i386_dr_low_type): Moved to nat/i386-dregs.h.
4893 (i386_dr_low): Likewise.
4894 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
4895 (i386_dr_low_set_addr): Likewise.
4896 (i386_dr_low_get_addr): Likewise.
4897 (i386_dr_low_can_set_control): Likewise.
4898 (i386_dr_low_set_control): Likewise.
4899 (i386_dr_low_get_control): Likewise.
4900 (i386_dr_low_get_status): Likewise.
4901 (i386_get_debug_register_length): Likewise.
4902 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
4903 (i386_dr_low): Likewise.
4904 * nat/i386-dregs.c (i386-low.h): Remove include.
4905 (i386-nat.h): Likewise.
4906 (nat/i386-dregs.h): New include.
4907 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
4908 (i386_dr_low_set_addr): Likewise.
4909 (i386_dr_low_get_addr): Likewise.
4910 (i386_dr_low_can_set_control): Likewise.
4911 (i386_dr_low_set_control): Likewise.
4912 (i386_dr_low_get_control): Likewise.
4913 (i386_dr_low_get_status): Likewise.
4914 (i386_get_debug_register_length): Likewise.
4915 (debug_hw_points): Likewise.
4916
3ed9baed
IB
49172014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
4918
4919 * Makefile.in (SFILES): Add d-exp.y.
4920 (YYFILES): Add d-exp.c.
4921 (YYOBJ): Add d-exp.o.
4922 (local-maintainer-clean): Delete d-exp.c.
4923 * d-exp.y: New file.
4924 * d-lang.h (d_parse): New declaration.
4925 (d_error): New declaration.
4926 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
4927 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
4928 PREC_ORDER operators.
4929 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
4930
78c164b0
YQ
49312014-06-19 Yao Qi <yao@codesourcery.com>
4932
4933 * gdbthread.h (any_running): Remove the declaration.
4934 * thread.c (any_running): Remove.
4935
f6e29b6e
YQ
49362014-06-19 Yao Qi <yao@codesourcery.com>
4937
4938 * gdbthread.h (struct thread_info) <state>: Change its type to
4939 'enum thread_state'. Update comments.
4940
034f788c
PA
49412014-06-19 Pedro Alves <palves@redhat.com>
4942
4943 * gdbthread.h (ALL_THREADS): Delete.
4944 (ALL_NON_EXITED_THREADS): New macro.
4945 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
4946 instead of ALL_THREADS.
4947 * infrun.c (find_thread_needs_step_over)
4948 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
4949 instead of ALL_THREADS.
4950 * record-btrace.c (record_btrace_open)
4951 (record_btrace_stop_recording, record_btrace_close)
4952 (record_btrace_is_replaying, record_btrace_resume)
4953 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
4954 * remote.c (append_pending_thread_resumptions): Likewise.
4955 * thread.c (thread_apply_all_command): Likewise.
4956
46e33252
GB
49572014-06-19 Gary Benson <gbenson@redhat.com>
4958
4959 * i386-nat.c (i386_stopped_by_watchpoint):
4960 Use i386_dr_stopped_by_watchpoint.
4961 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
4962 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
4963
3a8ee006
GB
49642014-06-19 Gary Benson <gbenson@redhat.com>
4965
4966 * nat/i386-dregs.c: New file.
4967 * Makefile.in (i386-dregs.o): New rule.
4968 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
4969 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
4970 * config/i386/darwin.mh (NATDEPFILES): Likewise.
4971 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
4972 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
4973 * config/i386/go32.mh (NATDEPFILES): Likewise.
4974 * config/i386/linux.mh (NATDEPFILES): Likewise.
4975 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4976 * config/i386/mingw.mh (NATDEPFILES): Likewise.
4977 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
4978 * i386-nat.h (debug_hw_points): New declaration.
4979 * i386-nat.c (breakpoint.h): Remove include.
4980 (command.h): Likewise.
4981 (target.h): Likewise.
4982 (gdb_assert.h): Likewise.
4983 (debug_hw_points): Made nonstatic.
4984 (debug_printf): Now in i386-dregs.c.
4985 (TARGET_HAS_DR_LEN_8): Likewise.
4986 (DR_CONTROL_SHIFT): Likewise.
4987 (DR_CONTROL_SIZE): Likewise.
4988 (DR_RW_EXECUTE): Likewise.
4989 (DR_RW_WRITE): Likewise.
4990 (DR_RW_READ): Likewise.
4991 (DR_RW_IORW): Likewise.
4992 (DR_LEN_1): Likewise.
4993 (DR_LEN_2): Likewise.
4994 (DR_LEN_4): Likewise.
4995 (DR_LEN_8): Likewise.
4996 (DR_LOCAL_ENABLE_SHIFT): Likewise.
4997 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
4998 (DR_ENABLE_SIZE): Likewise.
4999 (DR_LOCAL_SLOWDOWN): Likewise.
5000 (DR_GLOBAL_SLOWDOWN): Likewise.
5001 (DR_CONTROL_RESERVED): Likewise.
5002 (I386_DR_CONTROL_MASK): Likewise.
5003 (I386_DR_VACANT): Likewise.
5004 (I386_DR_LOCAL_ENABLE): Likewise.
5005 (I386_DR_GLOBAL_ENABLE): Likewise.
5006 (I386_DR_DISABLE): Likewise.
5007 (I386_DR_SET_RW_LEN): Likewise.
5008 (I386_DR_GET_RW_LEN): Likewise.
5009 (I386_DR_WATCH_HIT): Likewise.
5010 (i386_wp_op_t): Likewise.
5011 (i386_show_dr): Likewise.
5012 (i386_length_and_rw_bits): Likewise.
5013 (i386_insert_aligned_watchpoint): Likewise.
5014 (i386_remove_aligned_watchpoint): Likewise.
5015 (i386_handle_nonaligned_watchpoint): Likewise.
5016 (i386_update_inferior_debug_regs): Likewise.
5017 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
5018 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
5019 (i386_region_ok_for_watchpoint):
5020 Use i386_dr_region_ok_for_watchpoint.
5021 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
5022
322a8e06
GB
50232014-06-19 Gary Benson <gbenson@redhat.com>
5024
5025 * i386-nat.c (i386_insert_hw_breakpoint): Use
5026 i386_insert_watchpoint.
5027 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
5028
8f26655c
GB
50292014-06-19 Gary Benson <gbenson@redhat.com>
5030
5031 * i386-nat.c (i386_dr_show): Renamed to
5032 i386_show_dr and made static. All uses updated.
5033 (i386_dr_length_and_rw_bits): Renamed to
5034 i386_length_and_rw_bits and made static.
5035 All uses updated.
5036 (i386_dr_insert_aligned_watchpoint): Renamed to
5037 i386_insert_aligned_watchpoint and made static.
5038 All uses updated.
5039 (i386_dr_remove_aligned_watchpoint): Renamed to
5040 i386_remove_aligned_watchpoint and made static.
5041 All uses updated.
5042 (i386_dr_update_inferior_debug_regs): Renamed to
5043 i386_update_inferior_debug_regs and made static.
5044 All uses updated.
5045 * nat/i386-dregs.h (i386_dr_show): Removed.
5046 (i386_dr_length_and_rw_bits): Likewise.
5047 (i386_dr_insert_aligned_watchpoint): Likewise.
5048 (i386_dr_remove_aligned_watchpoint): Likewise.
5049 (i386_dr_update_inferior_debug_regs): Likewise.
5050
992c7d70
GB
50512014-06-19 Gary Benson <gbenson@redhat.com>
5052
5053 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
5054 * configure: Regenerate.
5055 * config.in: Likewise.
5056 * main.c (signal.h): New include.
5057 (setup_alternate_signal_stack): New function.
5058 (captured_main): Call the above.
5059 * cp-support.c (signal.h): New include.
5060 (catch_demangler_crashes): New flag.
5061 (SIGJMP_BUF): New define.
5062 (SIGSETJMP): Likewise.
5063 (SIGLONGJMP): Likewise.
5064 (gdb_demangle_jmp_buf): New static global.
5065 (gdb_demangle_attempt_core_dump): Likewise.
5066 (gdb_demangle_signal_handler): New function.
5067 (gdb_demangle): If catch_demangler_crashes is set, install the
5068 above signal handler before calling bfd_demangle, and restore
5069 the original signal handler afterwards. Display the offending
5070 symbol and call demangler_warning the first time a segmentation
5071 fault is caught.
5072 (_initialize_cp_support): New maint set/show command.
5073
eae7090b
GB
50742014-06-19 Gary Benson <gbenson@redhat.com>
5075
5076 * utils.h (resource_limit_kind): New enum.
5077 (can_dump_core): New declaration.
5078 (warn_cant_dump_core): Likewise.
5079 (dump_core): Likewise.
5080 * utils.c (dump_core): Made nonstatic. Added new
5081 parameter "limit_kind".
5082 (can_dump_core): Made nonstatic. Moved printing code to...
5083 (warn_cant_dump_core): New function.
5084 (can_dump_core_warn): Likewise.
5085 (internal_vproblem): Replace calls to can_dump_core with
5086 calls to can_dump_core_warn. Supply new argument to each.
5087
57fcfb1b
GB
50882014-06-19 Gary Benson <gbenson@redhat.com>
5089
5090 * utils.h (demangler_vwarning): New declaration.
5091 (demangler_warning): Likewise.
5092 * utils.c (struct internal_problem)
5093 <user_settable_should_quit>: New field.
5094 <user_settable_should_dump_core>: Likewise
5095 (internal_error_problem): Add values for above new fields.
5096 (internal_warning_problem): Likewise.
5097 (demangler_warning_problem): New static global.
5098 (demangler_vwarning): New function.
5099 (demangler_warning): Likewise.
5100 (add_internal_problem_command): Selectively add commands.
5101 (_initialize_utils): New internal problem command.
5102 * maint.c (maintenance_demangler_warning): New function.
5103 (_initialize_maint_cmds): New command.
5104
17a40b44
TT
51052014-06-18 Tom Tromey <tromey@redhat.com>
5106
5107 * f-valprint.c (info_common_command_for_block): Update.
5108 * symtab.h (struct general_symbol_info) <common_block>: Now
5109 const.
5110
346d1dfe
TT
51112014-06-18 Tom Tromey <tromey@redhat.com>
5112
5113 * symtab.h (struct symtab) <blockvector>: Now const.
5114 * ada-lang.c (ada_add_global_exceptions): Update.
5115 * buildsym.c (augment_type_symtab): Update.
5116 * dwarf2read.c (dw2_lookup_symbol): Update.
5117 * jit.c (finalize_symtab): Update.
5118 * jv-lang.c (add_class_symtab_symbol): Update.
5119 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
5120 Update.
5121 * objfiles.c (objfile_relocate1): Update.
5122 * psymtab.c (lookup_symbol_aux_psymtabs)
5123 (maintenance_check_psymtabs): Update.
5124 * python/py-symtab.c (stpy_global_block, stpy_static_block):
5125 Update.
5126 * spu-tdep.c (spu_catch_start): Update.
5127 * symmisc.c (dump_symtab_1): Update.
5128 * symtab.c (lookup_global_symbol_from_objfile)
5129 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
5130 (basic_lookup_transparent_type_quick)
5131 (basic_lookup_transparent_type, find_pc_sect_symtab)
5132 (find_pc_sect_line, search_symbols): Update.
5133 * block.c (find_block_in_blockvector): Make "bl" const.
5134 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
5135 const.
5136 (blockvector_contains_pc): Make "bv" const.
5137 (block_for_pc_sect): Update.
5138 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
5139 (blockvector_contains_pc): Update.
5140 * breakpoint.c (resolve_sal_pc): Update.
5141 * inline-frame.c (block_starting_point_at): Update.
5142
1834676b
TT
51432014-06-18 Tom Tromey <tromey@redhat.com>
5144
5145 * completer.c (complete_line): Make "line_buffer" const.
5146 * completer.h (complete_line): Update.
5147
ac1a991b
TT
51482014-06-18 Tom Tromey <tromey@redhat.com>
5149
5150 * symtab.c (add_macro_name): Remove unneeded cast.
5151
5bc98e52
TT
51522014-06-18 Tom Tromey <tromey@redhat.com>
5153
5154 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
5155 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
5156
8236def8
TT
51572014-06-18 Tom Tromey <tromey@redhat.com>
5158
5159 * probe.c (info_probes_for_ops): Make "arg" const.
5160 * probe.h (info_probes_for_ops): Update.
5161
3977b71f
TT
51622014-06-18 Tom Tromey <tromey@redhat.com>
5163
5164 * varobj.c (varobj_create): Update.
5165 * valops.c (value_of_this): Update.
5166 * tracepoint.c (add_local_symbols, scope_info): Update.
5167 * symtab.h (struct general_symbol_info) <block>: Now const.
5168 * symtab.c (skip_prologue_sal)
5169 (default_make_symbol_completion_list_break_on)
5170 (skip_prologue_using_sal): Update.
5171 * stack.h (iterate_over_block_locals)
5172 (iterate_over_block_local_vars): Update.
5173 * stack.c (print_frame_args): Update.
5174 (iterate_over_block_locals, iterate_over_block_local_vars): Make
5175 parameter const.
5176 (get_selected_block): Make return type const.
5177 * python/py-frame.c (frapy_block): Update.
5178 * python/py-block.c (gdbpy_block_for_pc): Update.
5179 * p-exp.y (%union) <bval>: Now const.
5180 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
5181 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
5182 * m2-exp.y (%union) <bval>: Now const.
5183 * linespec.c (get_current_search_block): Make return type const.
5184 (create_sals_line_offset, find_label_symbols): Update.
5185 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
5186 Update.
5187 (block_starting_point_at): Make "block" const.
5188 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
5189 (check_exception_resume): Update.
5190 * guile/scm-frame.c (gdbscm_frame_block): Update.
5191 * guile/scm-block.c (gdbscm_lookup_block): Update.
5192 * frame.h (get_frame_block): Update.
5193 (get_selected_block): Make return type const.
5194 * frame.c (frame_id_inner): Update.
5195 * f-valprint.c (info_common_command_for_block)
5196 (info_common_command): Update.
5197 * dwarf2loc.c (dwarf2_find_location_expression)
5198 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
5199 (locexpr_describe_location_piece): Update.
5200 * c-exp.y (%union) <bval>: Now const.
5201 * breakpoint.c (resolve_sal_pc): Update.
5202 * blockframe.c (get_frame_block):Make return type const.
5203 (get_pc_function_start, get_frame_function, find_pc_sect_function)
5204 (block_innermost_frame): Update.
5205 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
5206 (block_for_pc, block_for_pc_sect): Update.
5207 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
5208 'pblock' const.
5209 (block_for_pc_sect, block_for_pc): Make return type const.
5210 * ax-gdb.c (gen_expr): Update.
5211 * alpha-mdebug-tdep.c (find_proc_desc): Update.
5212 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
5213 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
5214 (ada_read_var_value): Update.
5215 * ada-exp.y (struct name_info) <block>: Now const.
5216 (%union): Likewise.
5217 (block_lookup): Constify.
5218
b9228891
GB
52192014-06-18 Gary Benson <gbenson@redhat.com>
5220
5221 * nat/i386-dregs.h: New file.
5222 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
5223 * i386-nat.h (i386-dregs.h): New include.
5224 (DR_FIRSTADDR): Now in i386-dregs.h.
5225 (DR_LASTADDR): Likewise.
5226 (DR_NADDR): Likewise.
5227 (DR_STATUS): Likewise.
5228 (DR_CONTROL): Likewise.
5229 (i386_debug_reg_state): Likewise.
5230 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
5231
a1aa2221
LM
52322014-06-18 Don Breazeal <donb@codesourcery.com>
5233
5234 * breakpoint.c (set_longjmp_breakpoint): Call
5235 momentary_breakpoint_from_master with additional argument.
5236 (set_longjmp_breakpoint_for_call_dummy): Call
5237 momentary_breakpoint_from_master with additional argument.
5238 (set_std_terminate_breakpoint): Call
5239 momentary_breakpoint_from_master with additional argument.
5240 (momentary_breakpoint_from_master): Add argument to function
5241 definition and use it to initialize structure member flag.
74228e77 5242 (clone_momentary_breakpoint): Call
a1aa2221
LM
5243 momentary_breakpoint_from_master with additional argument.
5244 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
5245 member flags set in momentary_breakpoint_from_master.
5246
4be83cc2
GB
52472014-06-18 Gary Benson <gbenson@redhat.com>
5248
5249 * i386-nat.c (i386_show_dr): Renamed to
5250 i386_dr_show and made nonstatic. All uses updated.
5251 (i386_length_and_rw_bits): Renamed to
5252 i386_dr_length_and_rw_bits and made nonstatic.
5253 All uses updated.
5254 (i386_insert_aligned_watchpoint): Renamed to
5255 i386_dr_insert_aligned_watchpoint and made nonstatic.
5256 All uses updated.
5257 (i386_remove_aligned_watchpoint): Renamed to
5258 i386_dr_remove_aligned_watchpoint and made nonstatic.
5259 All uses updated.
5260 (i386_update_inferior_debug_regs): Renamed to
5261 i386_dr_update_inferior_debug_regs and made nonstatic.
5262 All uses updated.
5263
131aa0d4
GB
52642014-06-18 Gary Benson <gbenson@redhat.com>
5265
5266 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
5267 (i386_dr_low_can_set_control): Likewise.
5268 (i386_dr_low_set_addr): Likewise.
5269 (i386_dr_low_set_control): Likewise.
5270 (i386_dr_low_get_addr): Likewise.
5271 (i386_dr_low_get_status): Likewise.
5272 (i386_dr_low_get_control): Likewise.
5273 (i386_insert_aligned_watchpoint): Use new macros.
5274 (i386_update_inferior_debug_regs): Likewise.
5275 (i386_stopped_data_address): Likewise.
5276
d9305f7f
GB
52772014-06-18 Gary Benson <gbenson@redhat.com>
5278
5279 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
5280 New parameter. All uses updated.
5281
ea008da4
GB
52822014-06-18 Gary Benson <gbenson@redhat.com>
5283
5284 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
5285 All uses updated.
5286
1b6d4134
GB
52872014-06-18 Gary Benson <gbenson@redhat.com>
5288
5289 * i386-nat.c (debug_printf): New macro.
5290 (i386_get_debug_register_length): Likewise.
5291 (TARGET_HAS_DR_LEN_8): Use above macro.
5292 (i386_show_dr): Use debug_printf instead of puts_unfiltered
5293 and printf_unfiltered. Use phex to format values.
5294
9b4550ef
GB
52952014-06-18 Gary Benson <gbenson@redhat.com>
5296
5297 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
5298 Make const.
5299
6e62758f
GB
53002014-06-18 Gary Benson <gbenson@redhat.com>
5301
5302 * i386-nat.c: Comment changes.
5303
51c79e94
GB
53042014-06-18 Gary Benson <gbenson@redhat.com>
5305
5306 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
5307
3e11889a
GB
53082014-06-18 Gary Benson <gbenson@redhat.com>
5309
5310 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
5311 (i386_insert_aligned_watchpoint): Likewise.
5312 (i386_remove_aligned_watchpoint): Likewise.
5313 (i386_handle_nonaligned_watchpoint): Likewise.
5314
fc6e2f03
GB
53152014-06-18 Gary Benson <gbenson@redhat.com>
5316
5317 * i386-nat.c: Whitespace changes.
5318
2afe7d50
SB
53192014-06-17 Samuel Bronson <naesten@gmail.com>
5320
5321 * MAINTAINERS: Update Roland McGrath's email address.
5322 Thanks to Sergio Durigan Junior for pointing out that he left
6a83deea 5323 Red Hat a while ago, and giving me a current address.
2afe7d50 5324
3bca49ee
TT
53252014-06-17 Tom Tromey <tromey@redhat.com>
5326
5327 * utils.h (savestring): Remove declaration.
5328
6e366df1
TT
53292014-06-17 Tom Tromey <tromey@redhat.com>
5330
5331 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
5332
6be47f0c
KS
53332014-06-16 Keith Seitz <keiths@redhat.com>
5334
5335 PR mi/15863
5336 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
5337 to update the varobj if inferior_ptid is null_ptid.
5338
7bc112c1
TT
53392014-06-16 Tom Tromey <tromey@redhat.com>
5340
5341 * target.h (struct target_ops) <to_info_proc>: Make parameter
5342 const.
5343 (target_info_proc): Update.
5344 * target.c (target_info_proc): Make "args" const.
5345 * procfs.c (procfs_info_proc): Update.
5346 * linux-tdep.c (linux_info_proc): Update.
5347 (linux_core_info_proc_mappings): Make "args" const.
5348 (linux_core_info_proc): Update.
5349 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
5350 * gdbarch.c: Rebuild.
5351 * gdbarch.h: Rebuild.
5352 * corelow.c (core_info_proc): Update.
5353
fee354ee
TT
53542014-06-16 Tom Tromey <tromey@redhat.com>
5355
5356 * target.h (struct target_ops) <to_disconnect>: Make parameter
5357 const.
5358 (target_disconnect): Update.
5359 * target.c (target_disconnect): Make "args" const.
5360 * target-delegates.c: Rebuild.
5361 * remote.c (remote_disconnect): Update.
5362 * record.h (record_disconnect): Update.
5363 * record.c (record_disconnect): Update.
5364 * inf-child.c (inf_child_disconnect): Update.
5365
a30bf1f1
TT
53662014-06-16 Tom Tromey <tromey@redhat.com>
5367
5368 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
5369 * target.c (debug_to_rcmd, default_rcmd): Update.
5370 * target-delegates.c: Rebuild.
5371 * remote.c (remote_rcmd): Update.
5372 * monitor.c (monitor_rcmd): Update.
5373
d03de421
PA
53742014-06-16 Pedro Alves <palves@redhat.com>
5375
5376 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
5377 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
5378 have OBJF_SHARED set.
5379 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
5380 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
5381 instead of OBJF_USERLOADED.
5382 * objfiles.h (OBJF_SHARED): Update comment.
5383 (userloaded_objfile_contains_address_p): Rename to ...
5384 (shared_objfile_contains_address_p): ... this, and update
5385 comments.
5386 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
5387 new objfile.
5388 (remove_symbol_file_command): Skip objfiles that don't have
5389 OBJF_SHARED set.
5390
99f4262f
TT
53912014-06-16 Tom Tromey <tromey@redhat.com>
5392
5393 * minsyms.h (prim_record_minimal_symbol)
5394 (prim_record_minimal_symbol_and_info): Update comments.
5395
97d66cc6
EZ
53962014-06-14 Eli Zaretskii <eliz@gnu.org>
5397
5398 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
5399 or --without-guile, according to how GDB was built.
5400
635c7e8a
TT
54012014-06-13 Tom Tromey <tromey@redhat.com>
5402
5403 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
5404 to help_list.
5405 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
5406 to help_list.
5407 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
5408 help_list.
5409 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
5410 help_list.Pass all_commands, not -1, to help_list.
5411 * cli/cli-dump.c (dump_command, append_command)
5412 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
5413 (binary_dump_command, binary_append_command): Pass all_commands,
5414 not -1, to help_list.
5415 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
5416 -1, to help_list.
5417 * valprint.c (set_print, set_print_raw): Pass all_commands, not
5418 -1, to help_list.
5419 * typeprint.c (set_print_type): Pass all_commands, not -1, to
5420 help_list.
5421 * top.c (set_history): Pass all_commands, not -1, to help_list.
5422 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
5423 all_commands, not -1, to help_list.
5424 * symfile.c (overlay_command): Pass all_commands, not -1, to
5425 help_list.
5426 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
5427 help_list.
5428 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
5429 help_list.
5430 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
5431 -1, to help_list.
5432 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
5433 not -1, to help_list.
5434 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
5435 not -1, to help_list.
5436 * maint.c (maintenance_command, maintenance_info_command)
5437 (maintenance_print_command, maintenance_set_cmd): Pass
5438 all_commands, not -1, to help_list.
5439 * macrocmd.c (macro_command): Pass all_commands, not -1, to
5440 help_list.
5441 * language.c (set_check): Pass all_commands, not -1, to help_list.
5442 * infcmd.c (unset_command): Pass all_commands, not -1, to
5443 help_list.
5444 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
5445 help_list.
5446 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
5447 help_list.
5448 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
5449 help_list.
5450 * breakpoint.c (save_command): Pass all_commands, not -1, to
5451 help_list.
5452 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
5453 all_commands, not -1, to help_list.
5454
b94ade42
PL
54552014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
5456
5457 * regcache.c (struct register_to_invalidate): New structure.
5458 (do_register_invalidate, make_cleanup_regcache_invalidate): New
5459 functions.
5460 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
5461
31f628ae
YQ
54622014-06-12 Yao Qi <yao@codesourcery.com>
5463
5464 * varobj.c (varobj_get_num_children): Call
5465 varobj_is_dynamic_p.
5466 (varobj_list_children): Likewise.
5467 (varobj_update): Likewise. Update comments.
5468
cde5ef40
YQ
54692014-06-12 Yao Qi <yao@codesourcery.com>
5470
5471 * varobj.c (varobj_pretty_printed_p): Rename to ...
5472 (varobj_is_dynamic_p): ... this. New function.
5473 * varobj.h (varobj_pretty_printed_p): Remove declaration.
5474 (varobj_is_dynamic_p): Declare.
5475 * mi/mi-cmd-var.c (print_varobj): All callers updated.
5476 (mi_print_value_p, varobj_update_one): Likewise.
5477
576ea091
YQ
54782014-06-12 Pedro Alves <pedro@codesourcery.com>
5479 Yao Qi <yao@codesourcery.com>
5480
5481 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
5482 (varobj_get_iterator): Wrap up code for pretty-printer by
5483 "#if HAVE_PYTHON" and "#endif".
5484 (update_dynamic_varobj_children): Likewise.
5485
827f100c
YQ
54862014-06-12 Pedro Alves <pedro@codesourcery.com>
5487 Yao Qi <yao@codesourcery.com>
5488
5489 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
5490 gdb_python_initialized is false. Move some code from varobj.c.
5491 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
5492 * varobj.c: Move "varobj-iter.h" inclusion earlier.
5493 (struct varobj_item): Moved to varobj-iter.h".
5494 (varobj_clear_saved_item): New function.
5495 (update_dynamic_varobj_children): Move python-related code to
5496 py-varobj.c.
5497 (free_variable): Call varobj_clear_saved_item and
5498 varobj_iter_delete.
5499
e5250216
YQ
55002014-06-12 Pedro Alves <pedro@codesourcery.com>
5501 Yao Qi <yao@codesourcery.com>
5502
5503 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
5504 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
5505 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
5506 (py-varobj.o): New rule.
5507 * python/py-varobj.c: New file.
5508 * python/python-internal.h (py_varobj_get_iterator): Declare.
5509 * varobj-iter.h: New file.
5510 * varobj.c: Include "varobj-iter.h"
5511 (struct varobj) <child_iter>: Change its type from "PyObject *"
5512 to "struct varobj_iter *".
5513 <saved_item>: Likewise.
5514 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
5515 [HAVE_PYTHON] (varobj_get_iterator): New function.
5516 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
5517 python-specific code to python/py-varobj.c.
5518 (install_visualizer): Call varobj_iter_delete instead of
5519 Py_XDECREF.
5520 * varobj.h (varobj_ensure_python_env): Declare.
5521
5a2e0d6e
YQ
55222014-06-12 Yao Qi <yao@codesourcery.com>
5523
5524 * varobj.c (struct varobj_item): New structure.
5525 (create_child_with_value): Update declaration.
5526 (varobj_add_child): Replace arguments 'name' and 'value' with
5527 'item'. All callers updated.
5528 (install_dynamic_child): Likewise.
5529 (update_dynamic_varobj_children): Likewise.
5530 (varobj_add_child): Likewise.
5531 (create_child_with_value): Likewise.
5532
919b9a93
JB
55332014-06-11 Joel Brobecker <brobecker@adacore.com>
5534
5535 * NEWS: Create a new section for the next release branch.
5536 Rename the section of the current branch, now that it has
5537 been cut.
5538
71a55bdf
JB
55392014-06-11 Joel Brobecker <brobecker@adacore.com>
5540
5541 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
5542 * version.in: Bump version to 7.8.50.DATE-cvs.
5543
364fe1f7
PA
55442014-06-11 Pedro Alves <palves@redhat.com>
5545
5546 PR remote/17028
5547 * ser-mingw.c (net_windows_socket_check_pending): New function.
5548 (net_windows_select_thread): Ignore spurious wakeups. Use
5549 net_windows_socket_check_pending.
5550 (net_windows_wait_handle): Check for pending events with
5551 ioctlsocket, through net_windows_socket_check_pending, instead of
5552 checking the socket's event.
5553
5a6c7709
SC
55542014-06-10 Siva Chandra Reddy <sivachandra@google.com>
5555
5556 * python/python-internal.h (gdb_PyObject_GetAttrString)
5557 (gdb_PyObject_HasAttrString): New inline function definitions.
5558 * py-value.c (get_field_flag): Remove the now unnecessary cast to
5559 char * of the second argument to PyObject_GetAttrString.
74228e77 5560
0e58ee40
JB
55612014-06-10 Joel Brobecker <brobecker@adacore.com>
5562
5563 * serial.c (serial_write): Fix index of character to be printed
5564 in call to serial_logchar when serial debug traces are enabled.
5565
d190df30
JB
55662014-06-10 Joel Brobecker <brobecker@adacore.com>
5567
5568 * gdbtypes (resolve_dynamic_range): Add function description.
5569
b4b01d36
PA
55702014-06-09 Pedro Alves <palves@redhat.com>
5571
5572 * linux-nat.c (linux_child_follow_fork): Initialize status with
5573 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
5574 inner block. Only pass the signal to PTRACE_DETACH if in pass
5575 state.
5576
3657956b
GB
55772014-06-09 Gary Benson <gbenson@redhat.com>
5578
5579 * common/signals.c (gdb_signal_from_host): Reorder to separate
5580 the always-available ANSI-standard signals from the signals that
5581 require checking.
5582 (do_gdb_signal_to_host): Likewise.
5583 * proc-events.c (signal_table): Likewise.
5584
c077881a
HZ
55852014-06-08 Hui Zhu <hui@codesourcery.com>
5586
5587 * common/linux-ptrace.c (linux_disable_event_reporting): New
5588 function.
5589 * common/linux-ptrace.h (linux_disable_event_reporting): New
5590 declaration.
5591 * linux-nat.c (linux_child_follow_fork): Do a single step before
5592 detach.
5593
4186eb54
KS
55942014-06-07 Keith Seitz <keiths@redhat.com>
5595
5596 Revert:
5597 PR c++/16253
5598 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5599 from symbol_matches_domain in symtab.c. All local callers
5600 of symbol_matches_domain updated.
5601 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5602 search STRUCT_DOMAIN.
5603 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5604 independently. standard_lookup will do that automatically.
5605 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5606 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5607 (cp_lookup_symbol_in_namespace): Likewise.
5608 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5609 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5610 may return a STRUCT_DOMAIN match.
5611 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5612 * cp-support.c: Include language.h.
5613 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5614 VAR_DOMAIN.
5615 * psymtab.c (match_partial_symbol): Compare the requested
5616 domain with the symbol's domain directly.
5617 (lookup_partial_symbol): Likewise.
5618 * symtab.c (lookup_symbol_in_language): Explain when/why
5619 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5620 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5621 appropriate languages.
5622 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5623 and moved to ada-lang.c
5624 (lookup_block_symbol): Explain that this function only returns
5625 symbol matching the requested DOMAIN.
5626 Compare the requested domain with the symbol's domain directly.
5627 (iterate_over_symbols): Compare the requested domain with the
5628 symbol's domain directly.
5629 * symtab.h (symbol_matches_domain): Remove.
5630
25326a28 56312014-06-06 Doug Evans <xdje42@gmail.com>
d2929fdc
DE
5632
5633 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
5634 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
5635 (gdbscm_guile_version_is_at_least): Declare.
5636 (gdbscm_scm_string_to_int): Declare.
5637 * guile/guile.c (gdbscm_guile_major_version): New global.
5638 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
5639 (guile_datadir): New static global.
5640 (gdbscm_guile_data_directory): New function.
5641 (initialize_scheme_side): Update.
5642 (misc_guile_functions): Add guile-data-directory.
5643 (initialize_gdb_module): Fetch guile version number.
5644 * guile/lib/gdb.scm: Remove call to add-to-load-path.
5645 * guile/lib/gdb/init.scm (%initialize!): Ditto.
5646 * guile/lib/gdb/boot.scm: Use guile-data-directory.
5647 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
5648 comments.
5649 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
5650 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
5651 * guile/scm-value.c (gdbscm_value_to_string): Only call
5652 scm_port_conversion_strategy if Guile version >= 2.0.6.
5653
0a770bb2 56542014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
5655
5656 * main.c (print_gdb_help): Add -q and --silent.
5657
73ba372c
GB
56582014-06-06 Gary Benson <gbenson@redhat.com>
5659
5660 * common/signals.c: Remove preprocessor conditionals for
5661 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
5662 SIGSEGV and SIGTERM.
5663 * proc-events.c: Likewise.
5664
c33b2f12
MM
56652014-06-06 Markus Metzger <markus.t.metzger@intel.com>
5666
5667 * symfile.c (symfile_free_objfile): Remove restriction to
5668 OBJF_USERLOADED.
5669 * symfile-mem.c (symbol_file_add_from_memory): Call
5670 add_target_sections_of_objfile.
5671
fb934770
LC
56722014-06-05 Ludovic Courtès <ludo@gnu.org>
5673
5674 * guile/scm-value.c (gdbscm_history_append_x): Use
5675 'vlscm_get_value_smob_arg_unsafe' instead of
5676 'vlscm_scm_to_value'.
5677
6ef284bd
SM
56782014-06-05 Simon Marchi <simon.marchi@ericsson.com>
5679
5680 PR mi/15806
5681 * utils.c (printchar): Don't escape at all if quoter is NUL.
5682 Update function documentation to clarify effect of parameter
5683 QUOTER.
5684 * remote.c (escape_buffer): Pass '\\' as the quoter to
5685 fputstrn_unfiltered.
5686 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
5687 generate the output.
5688 (mi_solib_unloaded): Same.
5689
270c9937
JB
56902014-06-05 Joel Brobecker <brobecker@adacore.com>
5691
5692 * development.sh: Delete.
5693 * Makefile.in (config.status): Adjust dependency on development.sh.
5694 * configure.ac: Adjust development.sh source call.
5695 * configure: Regenerate.
5696
16f691fb
DE
56972014-06-04 Doug Evans <xdje42@gmail.com>
5698
5699 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
5700 is_scheme_bkpt, spec.
5701 (bpscm_make_breakpoint_smob): Initialize new members.
5702 (gdbscm_create_breakpoint_x): Split into two ...
5703 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
5704 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
5705 (scheme_function breakpoint_functions): Update.
5706 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
5707 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
5708 register-breakpoint!.
5709
ef7cab6b
JB
57102014-06-04 Joel Brobecker <brobecker@adacorer.com>
5711
5712 PR server/17023
5713 * mem-break.c (z_type_supported): Return zero if
5714 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
5715
012370f6
TT
57162014-06-04 Tom Tromey <tromey@redhat.com>
5717
5718 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
5719 value_from_contents_and_address_unresolved.
5720 (ada_template_to_fixed_record_type_1): Likewise.
5721 (ada_which_variant_applies): Likewise.
5722 * value.h (value_from_contents_and_address_unresolved): Declare.
5723 * value.c (value_from_contents_and_address_unresolved): New
5724 function.
5725 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
5726 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
5727 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
5728
92e2a17f
TT
57292014-06-04 Tom Tromey <tromey@redhat.com>
5730
5731 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
5732
c0939df1
TT
57332014-06-04 Tom Tromey <tromey@redhat.com>
5734
5735 * procfs.c (procfs_attach): Make "args" const.
5736 * windows-nat.c (windows_attach): Make "args" const.
5737 * nto-procfs.c (procfs_attach): Make "args" const.
5738 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
5739 * go32-nat.c (go32_attach): Make "args" const.
5740 * gnu-nat.c (gnu_attach): Make "args" const.
5741 * darwin-nat.c (darwin_attach): Make "args" const.
5742 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
5743 * linux-nat.c (linux_nat_attach): Make "args" const.
5744 * remote.c (extended_remote_attach_1, extended_remote_attach):
5745 Make "args" const.
5746 * target.h (struct target_ops) <to_attach>: Make "args" const.
5747 (find_default_attach): Likewise.
5748 * utils.c (parse_pid_to_attach): Make "args" const.
5749 * utils.h (parse_pid_to_attach): Update.
5750
8eaff7cd
TT
57512014-06-04 Tom Tromey <tromey@redhat.com>
5752
5753 * target-delegates.c: Rebuild.
5754 * target.c (default_thread_address_space): New function.
5755 (target_thread_address_space): Simplify.
5756 * target.h (struct target_ops) <to_thread_address_space>: Add
5757 TARGET_DEFAULT_FUNC.
5758
1913f160
DE
57592014-06-04 Doug Evans <xdje42@gmail.com>
5760
5761 * guile/scm-type.c (type_smob): Remove duplicate typedef.
5762
70ad5bff
MM
57632014-06-04 Markus Metzger <markus.t.metzger@intel.com>
5764
5765 * record-btrace.c: Include event-loop.h and inf-loop.h.
5766 (record_btrace_resume_exec_dir)
5767 (record_btrace_async_inferior_event_handler)
5768 (record_btrace_handle_async_inferior_event): New.
5769 (record_btrace_open): Create async event handler.
5770 (record_btrace_close): Delete async event handler.
5771 (record_btrace_resume): Set record_btrace_resume_exec_dir,
5772 Mark async event handler.
5773 (record_btrace_execution_direction): New.
5774 (init_record_btrace_ops): Initialize to_execution_direction.
5775
b6210538
DE
57762014-06-03 Doug Evans <xdje42@gmail.com>
5777
5778 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
5779 (gdbscm_make_parameter): Ditto.
5780
a5b1fd27
DE
57812014-06-03 Doug Evans <dje@google.com>
5782
5783 * exec.c (exec_close_1): Call clear_section_table instead of
5784 resize_section_table.
5785 (clear_section_table): New function.
5786 (resize_section_table): Make static. Rename arg num_added to
5787 adjustment.
5788 * exec.h (clear_section_table): Declare.
5789 (resize_section_table): Delete.
5790 * progspace.c (release_program_space): Call clear_section_table
5791 instead of resize_section_table.
5792
0c6e92a5
SC
57932014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5794
5795 * NEWS (Python Scripting): Add entry about the new xmethods
5796 feature.
5797
883964a7
SC
57982014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5799
5800 * python/py-xmethods.c: New file.
5801 * python/py-objfile.c (objfile_object): New field 'xmethods'.
5802 (objfpy_dealloc): XDECREF on the new xmethods field.
5803 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
5804 field.
5805 (objfpy_get_xmethods): New function.
5806 (objfile_getset): New entry 'xmethods'.
5807 * python/py-progspace.c (pspace_object): New field 'xmethods'.
5808 (pspy_dealloc): XDECREF on the new xmethods field.
5809 (pspy_new, pspace_to_pspace_object): Initialize xmethods
5810 field.
5811 (pspy_get_xmethods): New function.
5812 (pspace_getset): New entry 'xmethods'.
5813 * python/python-internal.h: Add declarations for new functions.
5814 * python/python.c (_initialize_python): Invoke
5815 gdbpy_initialize_xmethods.
5816 * python/lib/gdb/__init__.py (xmethods): New
5817 attribute.
5818 * python/lib/gdb/xmethod.py: New file.
5819 * python/lib/gdb/command/xmethods.py: New file.
5820
58992dc5
SC
58212014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5822
5823 * eval.c (evaluate_subexp_standard): Call the xmethod if the
5824 best match method returned by find_overload_match is an xmethod.
5825 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
5826 the best matching operator returned by find_overload_match is an
5827 xmethod.
5828 * valops.c: #include "extension.h".
5829 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
5830 Return void. The list of matching source methods is returned in
5831 "fn_list" and a vector of matching debug method workers is
5832 returned in "xm_worker_vec". Update all callers.
5833 (value_find_oload_method_list): Likewise.
5834 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
5835 non-NULL, then the index of the best matching method in this
5836 vector is returned. Update all callers.
5837 (find_overload_match): Include xmethods while performing overload
5838 resolution.
5839
e81e7f5e
SC
58402014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5841
5842 * defs.h (enum lval_type): New enumerator "lval_xcallable".
5843 * extension-priv.h (struct extension_language_ops): Add the
5844 xmethod interface.
5845 * extension.c (new_xmethod_worker, clone_xmethod_worker,
5846 get_matching_xmethod_workers, get_xmethod_argtypes,
5847 invoke_xmethod, free_xmethod_worker,
5848 free_xmethod_worker_vec): New functions.
5849 * extension.h: #include "common/vec.h".
5850 New function declarations.
5851 (struct xmethod_worker): New struct.
5852 (VEC (xmethod_worker_ptr)): New vector type.
5853 (xmethod_worker_ptr): New typedef.
5854 (xmethod_worker_vec): Likewise.
5855 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
5856 builtin_type.
5857 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
5858 (struct builtin_type): New field "xmethod".
5859 * valarith.c (value_ptradd): Assert that the value argument is not
5860 lval_xcallable.
5861 * valops.c (value_must_coerce_to_target): Return 0 for
5862 lval_xcallable values.
5863 * value.c (struct value): New field XM_WORKER in the field
5864 LOCATION.
5865 (value_address, value_raw_address): Return 0 for lval_xcallable
5866 values.
5867 (set_value_address): Assert that the value is not an
5868 lval_xcallable.
5869 (value_free): Free the associated xmethod worker when freeing
5870 lval_xcallable values.
5871 (set_value_component_location): Assert that the WHOLE value is not
5872 lval_xcallable.
5873 (value_of_xmethod, call_xmethod): New functions.
5874 * value.h: Declare "struct xmethod_worker".
5875 Declare new functions value_of_xmethod, call_xmethod.
5876
ef370185
JB
58772014-06-03 Joel Brobecker <brobecker@adacore.com>
5878 Pedro Alves <palves@redhat.com>
5879
5880 PR breakpoints/17000
5881 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
5882 New function, extracted from software_breakpoint_inserted_here_p.
5883 (software_breakpoint_inserted_here_p): Replace factored out code
5884 by call to find_non_raw_software_breakpoint_inserted_here.
5885 (bp_target_info_copy_insertion_state): New function.
5886 (bkpt_insert_location): Handle the case of a single-step
5887 breakpoint already inserted at the same address.
5888 (bkpt_remove_location): Handle the case of a single-step
5889 breakpoint still inserted at the same address.
5890 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
5891 breakpoint already inserted at the same address.
5892 (deprecated_remove_raw_breakpoint): Handle the case of a
5893 non-raw breakpoint still inserted at the same address.
5894 (find_single_step_breakpoint): New function, extracted from
5895 single_step_breakpoint_inserted_here_p.
5896 (find_single_step_breakpoint): New function,
5897 factored out from single_step_breakpoint_inserted_here_p.
5898 (single_step_breakpoint_inserted_here_p): Reimplement.
5899
1e2ccb61
BM
59002014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
5901
5902 Pushed by Joel Brobecker <brobecker@adacore.com>
5903 * source.c (show_substitute_path_command): Fix display of matching
5904 substitution rules.
5905
d3448d85
GB
59062014-06-03 Gary Benson <gbenson@redhat.com>
5907
5908 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
5909
06eb1586
DE
59102014-06-02 Doug Evans <xdje42@gmail.com>
5911
5912 Add parameter support for Guile.
5913 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
5914 (SUBDIR_GUILE_SRCS): Add scm-param.c.
5915 (scm-param.o): New rule.
5916 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
5917 (gdbscm_misc_error): Declare.
5918 (gdbscm_canonicalize_command_name): Declare.
5919 (gdbscm_scm_to_host_string): Declare.
5920 (gdbscm_scm_from_host_string): Declare.
5921 (gdbscm_initialize_parameters): Declare.
5922 * guile/guile.c (initialize_gdb_module): Call
5923 gdbscm_initialize_parameters.
5924 * guile/lib/gdb.scm: Export parameter symbols.
5925 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
5926 cmdscm_canonicalize_name and made public. All callers updated.
5927 * guile/scm-exception.c (gdbscm_misc_error): New function.
5928 * guile/scm-param.c: New file.
5929 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
5930 (gdbscm_scm_to_host_string): New function.
5931 (gdbscm_scm_from_host_string): New function.
5932 * scm-utils.c (gdbscm_gc_dup_argv): New function.
5933
e698b8c4
DE
59342014-06-02 Doug Evans <xdje42@gmail.com>
5935
5936 Add command support for Guile.
5937 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
5938 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
5939 (scm-cmd.o): New rule.
5940 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
5941 (gdbscm_user_error_p): Declare.
5942 (gdbscm_parse_command_name): Declare.
5943 (gdbscm_valid_command_class_p): Declare.
5944 (gdbscm_initialize_commands): Declare.
5945 * guile/guile.c (initialize_gdb_module): Call
5946 gdbscm_initialize_commands.
5947 * guile/lib/gdb.scm: Export command symbols.
5948 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
5949 (throw-user-error): New function.
5950 * guile/scm-cmd.c: New file.
5951 * guile/scm-exception.c (user_error_symbol): New static global.
5952 (gdbscm_user_error_p): New function.
5953 (gdbscm_initialize_exceptions): Set user_error_symbol.
5954 * scm-utils.c (gdbscm_gc_xstrdup): New function.
5955
fb1f94b0
PM
59562014-06-02 Phil Muldoon <pmuldoon@redhat.com>
5957
5958 * top.c (command_loop): Handle comments here...
5959 (command_line_input): ... not here.
5960
ded03782
DE
59612014-06-02 Doug Evans <xdje42@gmail.com>
5962
5963 Add progspace support for Guile.
5964 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
5965 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
5966 (scm-progspace.o): New rule.
5967 * guile/guile-internal.h (pspace_smob): New typedef.
5968 (psscm_pspace_smob_pretty_printers): Declare.
5969 (psscm_pspace_smob_from_pspace): Declare.
5970 (psscm_scm_from_pspace): Declare.
5971 * guile/guile.c (initialize_gdb_module): Call
5972 gdbscm_initialize_pspaces.
5973 * guile/lib/gdb.scm: Export progspace symbols.
5974 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
5975 support.
5976 (append-pretty-printer!): Ditto.
5977 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
5978 Implement.
5979 * guile/scm-progspace.c: New file.
5980
397998fc
AM
59812014-06-03 Alan Modra <amodra@gmail.com>
5982
5983 * ppc64-tdep.c (ppc64_standard_linkage8): New.
5984 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
5985
6aa5f3a6
DE
59862014-06-02 Doug Evans <dje@google.com>
5987
5988 Add support for skeletonless type units.
5989 * dwarf2read.c (struct dwarf2_per_objfile): New member
5990 n_allocated_type_units.
5991 (struct dwarf2_per_objfile) <tu_stats>: New member
5992 nr_all_type_units_reallocs.
5993 (create_signatured_type_table_from_index): Initialize
5994 n_allocated_type_units
5995 (create_all_type_units): Ditto.
5996 (add_type_unit): Move up in file. New arg slot.
5997 All callers updated. Increase space for all_type_units more
5998 efficiently.
5999 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
6000 (lookup_dwo_signatured_type): Handle skeletonless TUs.
6001 (lookup_dwp_signatured_type): Ditto.
6002 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
6003 All callers updated.
6004 (build_type_psymtabs_1): Leave type_unit_groups as
6005 NULL if no TUs present.
6006 (print_tu_stats): New function.
6007 (process_skeletonless_type_unit): New function.
6008 (process_dwo_file_for_skeletonless_type_units): New
6009 function.
6010 (process_skeletonless_type_units): New function.
6011 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
6012 Call print tu_stats if debugging enabled.
6013
41fac0cf
PA
60142014-06-02 Pedro Alves <palves@redhat.com>
6015
6016 * breakpoint.c (build_target_command_list): Don't build a command
6017 list if we have any duplicate location that isn't a dprintf.
6018
cd1608cc
PA
60192014-06-02 Pedro Alves <palves@redhat.com>
6020
6021 * breakpoint.c (dprintf_breakpoint_hit): New function.
6022 (initialize_breakpoint_ops): Install it as dprintf's
6023 breakpoint_hit method.
6024
486ef3b9
JB
60252014-06-02 Joel Brobecker <brobecker@adacore.com>
6026
6027 * source.c (substitute_path_rule_matches): Simplify using
6028 filename_ncmp instead of FILENAME_CMP.
6029
230cd560
JB
60302014-06-02 Joel Brobecker <brobecker@adacore.com>
6031
6032 * source.c (substitute_path_rule_matches): Remove trailing spaces.
6033
16954d5d
LC
60342014-06-01 Ludovic Courtès <ludo@gnu.org>
6035
6036 * configure.ac: When Guile is available, check for the
6037 availability of 'scm_new_smob'.
6038 * configure, config.h.in: Regenerate.
6039 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
6040 function.
6041
53e8a631
AB
60422014-05-30 Andrew Burgess <aburgess@broadcom.com>
6043
6044 * frame.c (struct frame_info): Add stop_string field.
6045 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
6046 (get_prev_frame_always): Old content moved into
6047 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
6048 TRY_CATCH, handle MEMORY_ERROR exceptions.
6049 (frame_stop_reason_string): New function definition.
6050 * frame.h (unwind_stop_reason_to_string): Extend comment to
6051 mention frame_stop_reason_string.
6052 (frame_stop_reason_string): New function declaration.
6053 * stack.c (frame_info): Switch to frame_stop_reason_string.
6054 (backtrace_command_1): Switch to frame_stop_reason_string.
6055 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
6056 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
6057 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
6058
70e38b8e
AB
60592014-05-30 Andrew Burgess <aburgess@broadcom.com>
6060
6061 * frame.c (frame_stop_reason_string): Rename to ...
6062 (unwind_stop_reason_to_string): this.
6063 * frame.h (frame_stop_reason_string): Rename to ...
6064 (unwind_stop_reason_to_string): this.
6065 * stack.c (frame_info): Update call to frame_stop_reason_string.
6066 (backtrace_command_1): Likewise.
6067 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
6068 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
6069
938f0e2f
AB
60702014-05-30 Andrew Burgess <aburgess@broadcom.com>
6071
6072 * frame.c (remove_prev_frame): New function.
6073 (get_prev_frame_if_no_cycle): Create / discard cleanup using
6074 remove_prev_frame.
6075
a09dd441
PA
60762014-05-29 Pedro Alves <palves@redhat.com>
6077
6078 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
6079 and make it const. When a single-step decays to a continue,
6080 clear 'step', not 'hw_step'. Pass whether the caller wanted
6081 to step to user_visible_resume_ptid, not what we ask the
6082 target to do.
6083
bdc36728
PA
60842014-05-29 Pedro Alves <palves@redhat.com>
6085
6086 * infrun.c (process_event_stop_test, handle_step_into_function)
6087 (handle_step_into_function_backward): Adjust.
6088 Don't set the even thread's stop_step and call stop_waiting before
6089 calling end_stepping_range. Instead do that ...
6090 (end_stepping_range): ... here. Take an ecs pointer parameter.
6091
22bcd14b
PA
60922014-05-29 Pedro Alves <palves@redhat.com>
6093
6094 * infrun.c (stop_stepping): Rename to ...
6095 (stop_waiting): ... this.
6096 (proceed): Update comment.
6097 (process_event_stop_test, handle_inferior_event)
6098 (handle_signal_stop, handle_step_into_function)
6099 (handle_step_into_function_backward): Update.
6100
4ae57c05
PA
61012014-05-29 Pedro Alves <palves@redhat.com>
6102
6103 * infcall.c (run_inferior_call): Don't check whether the current
6104 thread is running after the proceed call.
6105
329ea579
PA
61062014-05-29 Pedro Alves <palves@redhat.com>
6107 Tom Tromey <tromey@redhat.com>
6108
6109 * NEWS: Mention "maint set target-async", "set mi-async", and that
6110 background execution commands are now always available.
6111 * target.h (target_async_permitted): Update comment.
6112 * target.c (target_async_permitted, target_async_permitted_1):
6113 Default to 1.
6114 (set_target_async_command): Rename to ...
6115 (maint_set_target_async_command): ... this.
6116 (show_target_async_command): Rename to ...
6117 (maint_show_target_async_command): ... this.
6118 (_initialize_target): Adjust.
6119 * infcmd.c (prepare_execution_command): Make extern.
6120 * inferior.h (prepare_execution_command): Declare.
6121 * infrun.c (set_observer_mode): Leave target async alone.
6122 * mi/mi-interp.c (mi_interpreter_init): Install
6123 mi_on_sync_execution_done as sync_execution_done observer.
6124 (mi_on_sync_execution_done): New function.
6125 (mi_execute_command_input_handler): Don't print the prompt if we
6126 just started a synchronous command with an async target.
6127 (mi_on_resume): Check sync_execution before printing prompt.
6128 * mi/mi-main.h (mi_async_p): Declare.
6129 * mi/mi-main.c: Include gdbcmd.h.
6130 (mi_async_p): New function.
6131 (mi_async, mi_async_1): New globals.
6132 (set_mi_async_command, show_mi_async_command, mi_async): New
6133 functions.
6134 (exec_continue): Call prepare_execution_command.
6135 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
6136 (mi_execute_async_cli_command): Use mi_async_p.
6137 (_initialize_mi_main): Install "set mi-async". Make
6138 "target-async" a deprecated alias.
6139
92bcb5f9
PA
61402014-05-29 Pedro Alves <palves@redhat.com>
6141
6142 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
6143 (_initialize_cli_interp): Adjust.
6144 * event-loop.c: Include "observer.h".
6145 (start_event_loop): Notify 'command_error' observers instead of
6146 calling display_gdb_prompt. Remove FIXME comment.
6147 * event-top.c (display_gdb_prompt): Remove call into the
6148 interpreters.
6149 * inf-loop.c: Include "observer.h".
6150 (inferior_event_handler): Notify 'command_error' observers instead
6151 of calling display_gdb_prompt.
6152 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
6153 observers instead of calling display_gdb_prompt.
6154 * interps.c (interp_set): Don't call display_gdb_prompt.
6155 (current_interp_display_prompt_p): Delete.
6156 * interps.h (interp_prompt_p): Delete declaration.
6157 (interp_prompt_p_ftype): Delete.
6158 (struct interp_procs) <prompt_proc_p>: Delete field.
6159 (current_interp_display_prompt_p): Delete declaration.
6160 * mi-interp.c (mi_interpreter_prompt_p): Delete.
6161 (_initialize_mi_interp): Adjust.
6162 * tui-interp.c (tui_init): Install 'sync_execution_done' and
6163 'command_error' observers.
6164 (tui_on_sync_execution_done, tui_on_command_error): New
6165 functions.
6166 (tui_display_prompt_p): Delete.
6167 (_initialize_tui_interp): Adjust.
6168
fd664c91
PA
61692014-05-29 Pedro Alves <palves@redhat.com>
6170
6171 PR gdb/13860
6172 * cli/cli-interp.c: Include infrun.h and observer.h.
6173 (cli_uiout, cli_interp): New globals.
6174 (cli_on_signal_received, cli_on_end_stepping_range)
6175 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
6176 functions.
6177 (cli_interpreter_init): Install them as 'end_stepping_range',
6178 'signal_received' 'signal_exited', 'exited' and 'no_history'
6179 observers.
6180 (_initialize_cli_interp): Remove cli_interp local.
6181 * infrun.c (handle_inferior_event): Call the several stop reason
6182 observers instead of printing the stop reason directly.
6183 (end_stepping_range): New function.
6184 (print_end_stepping_range_reason, print_signal_exited_reason)
6185 (print_exited_reason, print_signal_received_reason)
6186 (print_no_history_reason): Make static, and add an uiout
6187 parameter. Print to that instead of to CURRENT_UIOUT.
6188 * infrun.h (print_end_stepping_range_reason)
6189 (print_signal_exited_reason, print_exited_reason)
6190 (print_signal_received_reason print_no_history_reason): New
6191 declarations.
6192 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
6193 'mi_uiout'.
6194 <cli_uiout>: New field.
6195 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
6196 uiout for CLI output. Install 'signal_received',
6197 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
6198 observers.
6199 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
6200 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
6201 (mi_on_no_history): New functions.
6202 (ui_out_free_cleanup): Delete function.
6203 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
6204 instead use the one already stored in the MI interpreter data.
6205 (mi_ui_out): Adjust.
6206 * tui/tui-interp.c: Include infrun.h and observer.h.
6207 (tui_interp): New global.
6208 (tui_on_signal_received, tui_on_end_stepping_range)
6209 (tui_on_signal_exited, tui_on_exited)
6210 (tui_on_no_history): New functions.
6211 (tui_init): Install them as 'end_stepping_range',
6212 'signal_received' 'signal_exited', 'exited' and 'no_history'
6213 observers.
6214 (_initialize_tui_interp): Delete tui_interp local.
6215
8817a6f2
PA
62162014-05-29 Pedro Alves <palves@redhat.com>
6217
6218 PR gdb/15713
6219 * linux-nat.c (linux_nat_resume_callback): Rename the second
6220 parameter to 'except'. Skip LP if it points to EXCEPT.
6221 (linux_nat_resume): Don't mark the event lwp as not stopped
6222 before resuming sibling lwps. Instead ask
6223 linux_nat_resume_callback to skip the event lwp. Mark it as not
6224 stopped after actually resuming it.
6225 (linux_handle_syscall_trap): Mark the lwp as not stopped after
6226 resuming it.
6227 (wait_lwp): Mark the lwp as stopped here.
6228 (stop_wait_callback): Mark the lwp as not stopped right after
6229 resuming it. Don't mark lwps as stopped here.
6230 (linux_nat_filter_event): Mark the lwp as stopped earlier.
6231 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
6232
251bde03
PA
62332014-05-29 Pedro Alves <palves@redhat.com>
6234
6235 PR PR15693
6236 * infrun.c (resume): Determine how much to resume depending on
6237 whether the caller wanted a step, not whether we can hardware step
6238 the target. Mark all threads that we intend to run as running,
6239 unless we're calling an inferior function.
6240 (normal_stop): If the thread is running an infcall, don't finish
6241 thread state.
6242 * target.c (target_resume): Don't mark threads as running here.
6243
7f3c0343
JB
62442014-05-28 Joel Brobecker <brobecker@adacore.com>
6245
6246 * serial.c (_initialize_serial): Remove support for
6247 the "set remotebaud" and "show remotebaud" commands.
6248 * NEWS: Add entry documenting the removal of that command.
6249
ee34b3f9
YQ
62502014-05-28 Yao Qi <yao@codesourcery.com>
6251
6252 * charset.c: Fix typo in comments.
6253
add6c04d
GB
62542014-05-27 Gary Benson <gbenson@redhat.com>
6255
6256 * utils.c (internal_vproblem): Prompt for a bug report.
6257
92c48fc5
AW
62582014-05-26 Andy Wingo <wingo@igalia.com>
6259
6260 * guile/scm-arch.c (arscm_mark_arch_smob):
6261 * guile/scm-block.c (bkscm_mark_block_smob)
6262 (bkscm_mark_block_syms_progress_smob):
6263 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
6264 * guile/scm-exception.c (exscm_mark_exception_smob):
6265 * guile/scm-frame.c (frscm_mark_frame_smob):
6266 * guile/scm-iterator.c (itscm_mark_iterator_smob):
6267 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
6268 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
6269 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
6270 (ppscm_mark_pretty_printer_worker_smob):
6271 * guile/scm-symbol.c (syscm_mark_symbol_smob):
6272 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
6273 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
6274 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
6275 mark functions.
6276 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
6277 function.
6278
b2715b27
AW
62792014-05-26 Andy Wingo <wingo@igalia.com>
6280 Doug Evans <xdje42@gmail.com>
6281
6282 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
6283 empty_base_class. All uses updated.
6284 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
6285 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
6286 Adapt all callers.
6287 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
6288 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
6289 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
6290 (gdbscm_gsmob_has_property_p, add_property_name)
6291 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
6292 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
6293 (gdb-object-has-property?, gdb-object-properties): Remove.
6294 (gdb-object-kind): Renamed from gsmob-kind.
6295
214ab2da
AW
62962014-05-26 Andy Wingo <wingo@igalia.com>
6297
6298 * configure.ac (try_guile_versions): Allow building with guile 2.2.
6299 * configure: Regenerate.
6300
589fdceb
MM
63012014-05-23 Markus Metzger <markus.t.metzger@intel.com>
6302
6303 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
6304
67b5c0c1
MM
63052014-05-23 Markus Metzger <markus.t.metzger@intel.com>
6306
6307 * record-btrace.c (record_btrace_allow_memory_access): Remove.
6308 (replay_memory_access_read_only, replay_memory_access_read_write)
6309 (replay_memory_access_types, replay_memory_access)
6310 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
6311 (cmd_set_record_btrace, cmd_show_record_btrace)
6312 (cmd_show_replay_memory_access): New.
6313 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
6314 (record_btrace_remove_breakpoint): Replace
6315 record_btrace_allow_memory_access with replay_memory_access.
6316 (_initialize_record_btrace): Add commands.
6317 * NEWS: Announce it.
6318
036cd381
RR
63192014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6320
6321 * aarch64-linux-nat.c (asm/ptrace.h): Include.
6322
c77c1e42
RR
63232014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6324
6325 * MAINTAINERS (Write After Approval): Move self back from
6326 paper trail.
6327
45741a9c
PA
63282014-05-22 Pedro Alves <palves@redhat.com>
6329
6330 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
6331 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
6332 (disable_randomization, enum exec_direction_kind)
6333 (execution_direction, stop_registers, start_remote)
6334 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
6335 (wait_for_inferior, normal_stop, get_last_target_status)
6336 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
6337 (insert_step_resume_breakpoint_at_sal)
6338 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
6339 (set_step_info, print_stop_event, signal_stop_state)
6340 (signal_print_state, signal_pass_state, signal_stop_update)
6341 (signal_print_update, signal_pass_update)
6342 (update_signals_program_target, clear_exit_convenience_vars)
6343 (displaced_step_dump_bytes, update_observer_mode)
6344 (signal_catch_update, gdb_signal_from_command): Move
6345 declarations ...
6346 * infrun.h: ... to this new file.
6347 * amd64-tdep.c: Include infrun.h.
6348 * annotate.c: Include infrun.h.
6349 * arch-utils.c: Include infrun.h.
6350 * arm-linux-tdep.c: Include infrun.h.
6351 * arm-tdep.c: Include infrun.h.
6352 * break-catch-sig.c: Include infrun.h.
6353 * breakpoint.c: Include infrun.h.
6354 * common/agent.c: Include infrun.h instead of inferior.h.
6355 * corelow.c: Include infrun.h.
6356 * event-top.c: Include infrun.h.
6357 * go32-nat.c: Include infrun.h.
6358 * i386-tdep.c: Include infrun.h.
6359 * inf-loop.c: Include infrun.h.
6360 * infcall.c: Include infrun.h.
6361 * infcmd.c: Include infrun.h.
6362 * infrun.c: Include infrun.h.
6363 * linux-fork.c: Include infrun.h.
6364 * linux-nat.c: Include infrun.h.
6365 * linux-thread-db.c: Include infrun.h.
6366 * monitor.c: Include infrun.h.
6367 * nto-tdep.c: Include infrun.h.
6368 * procfs.c: Include infrun.h.
6369 * record-btrace.c: Include infrun.h.
6370 * record-full.c: Include infrun.h.
6371 * remote-m32r-sdi.c: Include infrun.h.
6372 * remote-mips.c: Include infrun.h.
6373 * remote-notif.c: Include infrun.h.
6374 * remote-sim.c: Include infrun.h.
6375 * remote.c: Include infrun.h.
6376 * reverse.c: Include infrun.h.
6377 * rs6000-tdep.c: Include infrun.h.
6378 * s390-linux-tdep.c: Include infrun.h.
6379 * solib-irix.c: Include infrun.h.
6380 * solib-osf.c: Include infrun.h.
6381 * solib-svr4.c: Include infrun.h.
6382 * target.c: Include infrun.h.
6383 * top.c: Include infrun.h.
6384 * windows-nat.c: Include infrun.h.
6385 * mi/mi-interp.c: Include infrun.h.
6386 * mi/mi-main.c: Include infrun.h.
6387 * python/py-threadevent.c: Include infrun.h.
6388
98eb56a4
PA
63892014-05-22 Pedro Alves <palves@redhat.com>
6390
6391 * infrun.c (handle_inferior_event): Store the exit code for
6392 --return-child-result here, instead of ...
6393 (print_exited_reason): ... here.
6394
17b2616c
PA
63952014-05-21 Pedro Alves <palves@redhat.com>
6396
6397 PR gdb/13860
6398 * gdbthread.h (struct thread_control_state): New field
6399 `command_interp'.
6400 * infrun.c (follow_fork): Copy the new thread control field to the
6401 child fork thread.
6402 (clear_proceed_status_thread): Clear the new thread control field.
6403 (proceed): Set the new thread control field.
6404 * interps.h (command_interp): Declare.
6405 * interps.c (command_interpreter): New global.
6406 (command_interp): New function.
6407 (interp_exec): Set `command_interpreter' while here.
6408 * cli-out.c (cli_uiout_dtor): New function.
6409 (cli_ui_out_impl): Install it.
6410 * mi/mi-interp.c: Include cli-out.h.
6411 (mi_cmd_interpreter_exec): Add comment.
6412 (restore_current_uiout_cleanup): New function.
6413 (ui_out_free_cleanup): New function.
6414 (mi_on_normal_stop): If finishing an execution command started by
6415 a CLI command, or any kind of breakpoint-like event triggered,
6416 print the stop event to the output (CLI) stream.
6417 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
6418
5166082f
PA
64192014-05-21 Pedro Alves <palves@redhat.com>
6420
6421 * cli/cli-cmds.c (list_command): Handle the first "list" after the
6422 current source line having changed.
6423 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
6424 * infrun.c (normal_stop): Adjust call to
6425 set_current_sal_from_frame.
6426 * source.c (clear_lines_listed_range): New function.
6427 (set_current_source_symtab_and_line, identify_source_line): Clear
6428 the lines listed range.
6429 (line_info): Handle the first "info line" after the current source
6430 line having changed.
6431 * stack.c (print_stack_frame): Remove center handling.
6432 (set_current_sal_from_frame): Remove 'center' parameter. Don't
6433 center sal.line.
6434
c1ee2fb3
PA
64352014-05-21 Pedro Alves <palves@redhat.com>
6436
6437 * inf-child.c (inf_child_mourn_inferior): New function.
6438 * inf-child.h (inf_child_mourn_inferior): New declaration.
6439 * darwin-nat.c (darwin_mourn_inferior): Use
6440 inf_child_mourn_inferior.
6441 * gnu-nat.c (gnu_mourn_inferior): Likewise.
6442 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
6443 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
6444 * nto-procfs.c (procfs_mourn_inferior): Likewise.
6445 * windows-nat.c (windows_mourn_inferior): Likewise.
6446
5c6d4fb2
DE
64472014-05-21 Doug Evans <xdje42@gmail.com>
6448
250748cb 6449 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5c6d4fb2 6450
4a2722c5
DE
64512014-05-21 Doug Evans <xdje42@gmail.com>
6452
17292b30 6453 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4a2722c5
DE
6454 (gdbscm_out_of_range_error): Ditto.
6455 (gdbscm_memory_error): Ditto.
250748cb
DE
6456 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
6457 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4a2722c5
DE
6458 (gdbscm_out_of_range_error): Update.
6459 (gdbscm_memory_error): Update.
6460 (gdbscm_scm_to_target_string_unsafe): Delete.
6461
6a3cb8e8
PA
64622014-05-21 Pedro Alves <palves@redhat.com>
6463
6464 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
6465 globals.
6466 (inf_child_open_target): New function.
6467 (inf_child_open): Use inf_child_open_target to push the target
6468 instead of erroring out.
6469 (inf_child_disconnect, inf_child_close)
6470 (inf_child_maybe_unpush_target): New functions.
6471 (inf_child_target): Install inf_child_disconnect and
6472 inf_child_close. Store a pointer to the returned object.
6473 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
6474 declarations.
6475 * target.c (auto_connect_native_target): New global.
6476 (show_default_run_target): New function.
6477 (find_default_run_target): Return NULL if automatically connecting
6478 to the native target is disabled.
6479 (_initialize_target): Install set/show auto-connect-native-target.
6480 * NEWS: Mention "set auto-connect-native-target", and "target
6481 native".
6482 * linux-nat.c (super_close): New global.
6483 (linux_nat_close): Call super_close.
6484 (linux_nat_add_target): Store a pointer to the base class's
6485 to_close method.
6486 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
6487 inf_child_maybe_unpush.
6488 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
6489 already pushed.
6490 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
6491 the inferior. Use inf_child_maybe_unpush_target.
6492 (inf_ttrace_attach): Don't push the target if it is already
6493 pushed.
6494 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
6495 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
6496 after mourning the inferior. Use inf_child_maybe_unpush_target.
6497 (darwin_attach_pid): Don't push the target if it is already
6498 pushed.
6499 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
6500 mourning the inferior. Use inf_child_maybe_unpush_target.
6501 (gnu_detach): Use inf_child_maybe_unpush_target.
6502 * go32-nat.c (go32_create_inferior): Don't push the target if it
6503 is already pushed.
6504 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
6505 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
6506 (procfs_open): Rename to ...
6507 (procfs_open_1): ... this. Add target_ops parameter. Adjust
6508 comments. Can target_preopen before changing node. Call
6509 inf_child_open_target to push the target explicitly.
6510 (procfs_attach): Don't push the target if it is already pushed.
6511 (procfs_detach): Use inf_child_maybe_unpush_target.
6512 (procfs_create_inferior): Don't push the target if it is already
6513 pushed.
6514 (nto_native_ops): New global.
6515 (procfs_open): Reimplement.
6516 (procfs_native_open): New function.
6517 (init_procfs_targets): Install procfs_native_open as to_open of
6518 "target native". Store a pointer to the "native" target in
6519 nto_native_ops.
6520 * procfs.c (procfs_attach): Don't push the target if it is already
6521 pushed.
6522 (procfs_detach): Use inf_child_maybe_unpush_target.
6523 (procfs_mourn_inferior): Only unpush the target after mourning the
6524 inferior. Use inf_child_maybe_unpush_target.
6525 (procfs_init_inferior): Don't push the target if it is already
6526 pushed.
6527 * windows-nat.c (do_initial_windows_stuff): Don't push the target
6528 if it is already pushed.
6529
930ee1b1
PA
65302014-05-21 Pedro Alves <palves@redhat.com>
6531
6532 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
6533 and "procfs" targets are now called "native" instead.
6534
1f5d1b13
PA
65352014-05-21 Pedro Alves <palves@redhat.com>
6536
6537 * go32-nat.c (go32_open): Delete.
6538 (go32_target): Don't override the to_open method.
6539
132f8e03
PA
65402014-05-21 Pedro Alves <palves@redhat.com>
6541
6542 * nto-procfs.c (procfs_can_run): New function.
6543 (nto_procfs_ops): New global.
6544 (init_procfs_targets): New, based on procfs_target. Install
6545 "target native" in addition to "target procfs".
6546 (_initialize_procfs): Call init_procfs_targets instead of adding
6547 the target here.
6548
03c136c3
PA
65492014-05-21 Pedro Alves <palves@redhat.com>
6550
6551 * windows-nat.c (windows_target): Don't override to_shortname,
6552 to_longname or to_doc.
6553
a635d0f3
PA
65542014-05-21 Pedro Alves <palves@redhat.com>
6555
6556 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
6557 to_doc.
6558
4f9b5133
PA
65592014-05-21 Pedro Alves <palves@redhat.com>
6560
6561 * darwin-nat.c (_initialize_darwin_inferior): Don't override
6562 to_shortname, to_longname or to_doc.
6563
bc85afde
PA
65642014-05-21 Pedro Alves <palves@redhat.com>
6565
6566 * go32-nat.c (go32_target): Don't override to_shortname,
6567 to_longname or to_doc.
6568
4ebfc96e
PA
65692014-05-21 Pedro Alves <palves@redhat.com>
6570
6571 * inf-child.c (inf_child_open): Remove mention of "child".
6572 (inf_child_target): Rename target to "native" instead of "child".
6573
2648dfed
AA
65742014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6575
6576 * Makefile.in (SFILES): Delete "regset.c".
6577 (COMMON_OBS): Delete "regset.o".
6578 * regset.c: Remove.
6579 * regset.h (regset_alloc): Delete prototype.
6580
b13feb94
AA
65812014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6582
6583 * sparc-linux-tdep.c (sparc32_linux_gregset)
6584 (sparc32_linux_fpregset): New static regset structures.
6585 (sparc32_linux_init_abi): Drop dynamic regset allocations.
6586 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
6587 'fpregset' fields.
6588 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
6589 (sparc64_linux_fpregset): New static regset structures.
6590 (sparc64_linux_init_abi): Drop dynamic regset allocations.
6591 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
6592 New static regset structures.
6593 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
6594 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
6595 New static regset structures.
6596 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
6597 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
6598 New static regset structures.
6599 (sparc64obsd_init_abi): Drop dynamic regset allocations.
6600 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
6601 New static regset structures.
6602 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
6603
b4fd25c9
AA
66042014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6605
6606 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
6607 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
6608 register maps ("regmaps") from "*regset" to "*regmap". Do this
6609 for all regmap types and variables.
6610 * sparc-linux-tdep.c (sparc32_linux_step_trap)
6611 (sparc32_linux_supply_core_gregset)
6612 (sparc32_linux_collect_core_gregset)
6613 (sparc32_linux_supply_core_fpregset)
6614 (sparc32_linux_collect_core_fpregset): Likewise.
6615 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
6616 (sparc_gregmap, sparc_fpregmap): ... these.
6617 (sparc_supply_gregset, sparc_collect_gregset)
6618 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6619 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
6620 (_initialize_sparc_nat): Rename regmaps.
6621 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
6622 (sparc_gregmap, sparc_fpregmap): ... these.
6623 (sparc_supply_gregset, sparc_collect_gregset)
6624 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6625 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
6626 Rename macros to...
6627 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
6628 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
6629 Likewise.
6630 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
6631 Rename to...
6632 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
6633 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
6634 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
6635 regmaps.
6636 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6637 (sparc32_bsd_fpregset): Rename to...
6638 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6639 (sparc32_bsd_fpregmap): ... these.
6640 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
6641 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6642 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
6643 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
6644 (struct sparc_gregmap, struct sparc_fpregmap)
6645 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6646 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
6647 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
6648 (sparc32_supply_regset, sparc32_collect_gregset)
6649 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
6650 prototypes.
6651 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
6652 (sparc64_linux_ptrace_gregmap): ... this.
6653 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
6654 (_initialize_sparc64_linux_nat): Rename regmaps.
6655 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
6656 (sparc64_linux_core_gregmap): ... this.
6657 (sparc64_linux_supply_core_gregset)
6658 (sparc64_linux_collect_core_gregset)
6659 (sparc64_linux_supply_core_fpregset)
6660 (sparc64_linux_collect_core_fpregset): Rename regmaps.
6661 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
6662 (sparc64_sol2_fpregset): Rename to...
6663 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
6664 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
6665 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
6666 regmaps.
6667 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
6668 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
6669 (sparc64_bsd_fpregset): Rename to...
6670 (struct sparc_gregmap, sparc64_sol2_gregmap)
6671 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
6672 (sparc64_bsd_fpregmap): ... these.
6673 (sparc64_supply_gregset, sparc64_collect_gregset)
6674 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
6675 prototypes.
6676 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
6677 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
6678 (sparc64fbsd_gregmap): ... this.
6679 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
6680 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
6681 Rename regmaps.
6682 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
6683 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
6684 (sparc64nbsd_collect_fpregset): Likewise.
6685 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
6686 (sparc64nbsd_gregmap): ... this.
6687 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
6688 regmaps.
6689 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
6690 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
6691 (sparc64obsd_gregmap): ... this.
6692 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
6693 regmaps.
6694 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
6695 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
6696 (sparc32nbsd_gregmap): ... this.
6697 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
6698 regmaps.
6699
8fea3224
AA
67002014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6701
6702 * score-tdep.c (score7_linux_gregset): New static regset
6703 structure.
6704 (score7_linux_regset_from_core_section): Remove dynamic regset
6705 allocation.
6706 (score_gdbarch_init): Drop allocation of tdep structure.
6707 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
6708
24534243
AA
67092014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6710
6711 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
6712 regset structures.
6713 (am33_regset_from_core_section): Remove dynamic regset
6714 allocations.
6715
b7195f27
AA
67162014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6717
6718 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
6719 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
6720 structures.
6721 (mips_linux_regset_from_core_section): Remove dynamic regset
6722 allocations.
6723 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6724 'gregset64', 'fpregset', and 'fpregset64'.
6725 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
6726 deleted tdep fields.
6727
ecc37a5a
AA
67282014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6729
6730 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
6731 regset structures.
6732 (amd64_regset_from_core_section): Remove dynamic regset
6733 allocations.
6734 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
6735 structure.
6736 (amd64obsd_regset_from_core_section): Remove dynamic regset
6737 allocation.
6738 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
6739 Likewise.
6740 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
6741 x86-common regset supply function.
6742 * i386-tdep.c (i386_collect_gregset): Make static.
6743 (i386_gregset): New global regset structure.
6744 (i386_fpregset, i386_xstateregset): New static regset structures.
6745 (i386_regset_from_core_section): Remove dynamic regset
6746 allocations.
6747 (i386_gdbarch_init): Remove initialization of tdep fields
6748 'gregset', 'fpregset', and 'xstateregset'.
6749 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6750 'fpregset', and 'xstateregset'.
6751 (i386_collect_gregset): Remove prototype.
6752 (i386_gregset): New declaration.
6753 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
6754 structure.
6755 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
6756 allocation.
6757
b7611c43
AA
67582014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6759
6760 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
6761 (arm_linux_vfpregset): New static regset structures.
6762 (arm_linux_regset_from_core_section): Remove dynamic allocation of
6763 regset structures.
6764 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
6765 and 'vfpregset' fields.
6766
a069a2bd
AA
67672014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6768
6769 * aarch64-linux-tdep.c (aarch64_linux_gregset)
6770 (aarch64_linux_fpregset): New static regset structures.
6771 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
6772 of regset structures.
6773 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
6774 'fpregset' fields.
6775
09424cff
AA
67762014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6777
6778 * regset.h (struct regset): Remove gdbarch field.
6779 * regset.c (regset_alloc): Drop initialization of gdbarch field.
6780 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6781 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
6782 Likewise.
6783 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
6784 (ppc32_linux_fpregset, ppc32_linux_vrregset)
6785 (ppc32_linux_vsxregset): Likewise.
6786 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
6787 via the regcache instead of the regset.
6788 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
6789 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
6790 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
6791 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
6792 Likewise.
6793
3ca7dae4
AA
67942014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6795
6796 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
6797 Constify structures.
6798 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
6799 (alphanbsd_aout_gregset): Likewise.
6800 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
6801 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
6802 Likewise.
6803 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
6804 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
6805 Likewise.
6806 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
6807 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
6808 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
6809 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
6810 * m88k-tdep.c (m88k_gregset): Likewise.
6811 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
6812 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
6813 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6814 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
6815 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
6816 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
6817 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
6818 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
6819 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
6820 Likewise.
6821 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
6822 * sh-tdep.h (sh_corefile_gregset): Likewise.
6823 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
6824 * vax-tdep.c (vax_gregset): Likewise.
6825
5876f503
JK
68262014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6827
6828 Fix TLS access for -static -pthread.
6829 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
6830 (try_thread_db_load_1): Initialize it.
6831 (thread_db_get_thread_local_address): Call it if LM is zero.
6832 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
6833 * target.h (struct target_ops) (to_get_thread_local_address): Add
6834 load_module_addr comment.
6835
0256a6ac
PA
68362014-05-21 Pedro Alves <palves@redhat.com>
6837
6838 * dcache.c (dcache_read_memory_partial): If reading the cache line
6839 fails, fallback to reading just the memory the caller wanted.
6840
227533ac
DE
68412014-05-20 Doug Evans <dje@google.com>
6842
6843 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
6844 instead of get_current_arch.
6845
936d2992
PA
68462014-05-20 Pedro Alves <palves@redhat.com>
6847
6848 * NEWS: Mention that compare-sections now works with all targets.
6849
6850 * remote.c (PACKET_qCRC): New enum value.
6851 (remote_verify_memory): Don't send qCRC if the target has no
6852 execution. Use packet_support/packet_ok. If the target doesn't
6853 support the qCRC packet, fallback to a deep memory copy.
6854 (compare_sections_command): Say "target image" instead of "remote
6855 executable".
6856 (_initialize_remote): Add PACKET_qCRC to the list of config
6857 packets that have no associated command. Extend comment.
6858 * target.c (simple_verify_memory, default_verify_memory): New
6859 function.
6860 * target.h (struct target_ops) <to_verify_memory>: Default to
6861 default_verify_memory.
6862 (simple_verify_memory): New declaration.
6863 * target-delegates.c: Regenerate.
6864
e59fa00f
MM
68652014-05-20 Markus Metzger <markus.t.metzger@intel.com>
6866
6867 * record-btrace.c (record_btrace_step_thread): Check for empty history.
6868
f2205de0
HZ
68692014-05-20 Hui Zhu <hui@codesourcery.com>
6870 Yao Qi <yao@codesourcery.com>
6871
6872 PR backtrace/16558
6873 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
6874 and change address of sp and pc.
6875
c4e54771
TT
68762014-05-19 Tom Tromey <tromey@redhat.com>
6877
6878 * gdbtypes.c (rank_function): Use XNEWVEC.
6879 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
6880
73051182
DE
68812014-05-19 Doug Evans <dje@google.com>
6882
6883 * dwarf2read.c (build_type_psymtabs_1): Renamed from
6884 build_type_unit_groups and moved closer to only caller. Remove
6885 arguments. All references updated. Remove outdated .gdb_index
6886 comment.
6887 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
6888 build_type_psymtabs_1.
6889
8832e7e3
DE
68902014-05-19 Doug Evans <dje@google.com>
6891
6892 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
6893 n_type_unit_groups, all_type_unit_groups. All uses removed.
6894 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
6895 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
6896 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
6897 (add_type_unit_group_to_table): Delete.
6898
cd8ae15e
DE
68992014-05-19 Doug Evans <dje@google.com>
6900
6901 * eval.c (evaluate_subexp_standard): Add some comments.
6902
08f4850b
DE
69032014-05-17 Doug Evans <xdje42@gmail.com>
6904
6905 * progspace.c (remove_program_space): Delete, unused.
6906 * progspace.h (remove_program_space): Ditto.
6907
bed8455c
DE
69082014-05-17 Doug Evans <xdje42@gmail.com>
6909
6910 * inferior.c (prune_inferiors): Fix comment.
6911 (remove_inferior_command): Call prune_program_spaces.
6912
8d551b02
DE
69132014-05-16 Doug Evans <dje@google.com>
6914
6915 New command line option -D.
6916 * NEWS: Mention it.
6917 * main.c (set_gdb_data_directory): New function.
6918 (captured_main): Recognize -D. Flag error for --data-directory "".
6919 Call set_gdb_data_directory.
6920 (print_gdb_help): Print --data-directory, -D.
6921 * main.h (set_gdb_data_directory): Declare.
6922 * top.c (staged_gdb_datadir): New static global.
6923 (set_gdb_datadir): Call set_gdb_data_directory
6924 (show_gdb_datadir): New function.
6925 (init_main): Update init of data-directory parameter.
6926
18848e28
GF
69272014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
6928
6929 Import the "dirfd" gnulib module.
6930 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
6931 * gnulib/aclocal.m4: Update.
6932 * gnulib/config.in: Update.
6933 * gnulib/configure: Update.
6934 * gnulib/import/Makefile.am: Update.
6935 * gnulib/import/Makefile.in: Update.
6936 * gnulib/import/dirfd.c: New.
6937 * gnulib/import/m4/dirfd.m4: New.
6938 * gnulib/import/m4/gnulib-cache.m4: Update.
6939 * gnulib/import/m4/gnulib-comp.m4: Update.
6940
95c64f92
YQ
69412014-05-16 Pierre Muller <muller@sourceware.org>
6942 Yao Qi <yao@codesourcery.com>
6943
6944 * valprint.c (print_wchar): Move the code on checking whether
6945 W is a printable wide char to the default branch of switch
6946 statement below. Call wchar_printable instead of gdb_iswprint.
6947
cac395ea
TM
69482014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
6949
19679eca 6950 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
cac395ea
TM
6951 ldr.w and ldrd instructions.
6952
83655187
DE
69532014-05-15 Doug Evans <dje@google.com>
6954
6955 * dwarf2read.c (read_structure_type): Delete outdated comments.
6956
dd756689
TT
69572014-05-14 Tom Tromey <tromey@redhat.com>
6958
6959 * macrocmd.c (print_macro_definition): Reindent.
6960
75ddda77
DE
69612014-05-13 Doug Evans <xdje42@gmail.com>
6962
6963 * python/py-cmd.c (cmdpy_completer): Add comment.
6964 (completers): Make const.
6965
b0f16a3e
SM
69662014-05-13 Simon Marchi <simon.marchi@ericsson.com>
6967
6968 * infrun.c (resume): Remove should_resume (unused). Move up
6969 declaration of resume_ptid.
6970
033c3379
TT
69712014-05-13 Tom Tromey <tromey@redhat.com>
6972
6973 * language.h (unop_type_check): Remove.
6974 (binop_type_check): Don't declare.
6975
9b44a3a5
AA
69762014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
6977
6978 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
6979 call to regcache_raw_collect.
6980
303a33fa
SM
69812014-05-12 Simon Marchi <simon.marchi@ericsson.com>
6982
6983 * mi/mi-console.c (mi_console_raw_packet): Use the value from
6984 mi_console->quote as the quoting character.
6985
196100a0
SM
69862014-05-12 Simon Marchi <simon.marchi@ericsson.com>
6987
6988 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
6989
f989a1c8
TT
69902014-04-29 Tom Tromey <tromey@redhat.com>
6991
6992 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
6993 "show debug varobj".
6994
9404b58f
KM
69952014-05-07 Kyle McMartin <kyle@redhat.com>
6996
6997 Pushed by Joel Brobecker <brobecker@adacore.com>.
6998 * aarch64-tdep.c (aarch64_software_single_step): New function.
6999 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
7000 with aarch64_software_single_step.
7001
5e49ba57
JB
70022014-05-05 Joel Brobecker <brobecker@adacore.com>
7003
7004 GDB 7.7.1 released.
7005
c888a17d
KS
70062014-05-05 Keith Seitz <keiths@redhat.com>
7007
7008 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
7009 variable or history value is successfully parsed.
7010
290a839c
YQ
70112014-05-05 Yao Qi <yao@codesourcery.com>
7012 Pedro Alves <palves@redhat.com>
7013
7014 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
7015 address of blocks that intersects the requested range. Trim
7016 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
7017 sections.
7018 * ctf.c (ctf_xfer_partial): Likewise.
7019
91256dc2
YQ
70202014-05-05 Yao Qi <yao@codesourcery.com>
7021
7022 * printcmd.c (display_command): Remove the check to
7023 target_has_execution.
7024
07284463
MK
70252014-05-03 Mark Kettenis <kettenis@gnu.org>
7026
7027 * ppcobsd-nat.c: Include "obsd-nat.h".
7028 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
7029 add_target.
7030 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
7031
30a1e6cc
SDJ
70322014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
7033
7034 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
7035 and 16-bit signed and unsigned arguments. Update comment.
7036 (stap_parse_probe_arguments): Extend code to handle such
7037 arguments. Use warning instead of complaint to notify about
7038 unrecognized bitness.
7039
f33da99a
SDJ
70402014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
7041
7042 PR breakpoints/16889
7043 * stap-probe.c (stap_parse_probe_arguments): Simplify
7044 check for non-prefixed probes (i.e., probes whose
7045 arguments do not start with "N@"). Always set the
7046 argument type to a sane value.
7047
95cf3b38
DT
70482014-05-01 David Taylor <dtaylor@emc.com>
7049
7050 * remote.c (compare_sections_command): Add -r option to compare
7051 all loadable read-only sections.
7052
1cfdf534
SC
70532014-04-30 Siva Chandra Reddy <sivachandra@google.com>
7054
7055 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
7056 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
7057 Update all callers.
7058 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
7059 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
7060 Remove unused CORE_ADDR argument. Update all callers.
7061
ca4f7f8b
PA
70622014-04-29 Pedro Alves <palves@redhat.com>
7063
7064 * remote.c (struct packet_config) <detect>: Extend comment.
7065 (add_packet_config_cmd): Don't set the config's detect or support
7066 fields here.
7067 (init_all_packet_configs): Also initialize the config's 'detect'
7068 field.
7069 (reset_all_packet_configs_support): New function.
7070 (remote_open_1): Call reset_all_packet_configs_support instead of
7071 init_all_packet_configs.
7072 (_initialize_remote): Initialize all packet configs. Assert that
7073 all packets have an associated command, except a few known
7074 outliers.
7075
11c1ba78
JB
70762014-04-28 Joel Brobecker <brobecker@adacore.com>
7077
7078 * dwarf2read.c (read_subrange_type): Handle dynamic
7079 DW_AT_lower_bound attributes.
7080
8739bc53
JB
70812014-04-28 Joel Brobecker <brobecker@adacore.com>
7082
7083 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
7084 dynamic bounds before computing its upper bound.
7085 (ada_discrete_type_low_bound): Same as above with the lower bound.
7086
6f8a3220
JB
70872014-04-28 Joel Brobecker <brobecker@adacore.com>
7088
7089 * dwarf2read.c (is_dynamic_type): Return true for dynamic
7090 range types. Adjust the array handling implementation to
7091 take advantage of this change.
7092 (resolve_dynamic_range): New function, mostly extracted from
7093 resolve_dynamic_bounds.
7094 (resolve_dynamic_array): New function, mostly extracted from
7095 resolve_dynamic_bounds.
7096 (resolve_dynamic_bounds): Delete.
7097 (resolve_dynamic_type): Reimplement. Add handling of
7098 TYPE_CODE_RANGE types.
7099
4d072ce4
JB
71002014-04-28 Joel Brobecker <brobecker@adacore.com>
7101
7102 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
7103 handling of parallel ___XA types.
7104
52865325
JB
71052014-04-28 Joel Brobecker <brobecker@adacore.com>
7106
7107 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
7108 unnecessary second call to static_unwrap_type.
7109
433e77fa
HZ
71102014-04-27 Hui Zhu <hui@codesourcery.com>
7111
7112 * stack.c (print_frame_info): Call do_gdb_disassembly with
7113 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
7114
b51a69ee
DE
71152014-04-26 Doug Evans <xdje42@gmail.com>
7116
7117 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
7118
7ae1a6a6
PA
71192014-04-25 Pedro Alves <palves@redhat.com>
7120
7121 PR server/16255
7122 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
7123 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
7124 and newline from built string.
7125 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
7126 (linux_ptrace_attach_fail_reason): ... this.
7127 * linux-nat.c (linux_nat_attach): Adjust to use
7128 linux_ptrace_attach_fail_reason.
7129
4082afcc
PA
71302014-04-25 Pedro Alves <palves@redhat.com>
7131
7132 * remote.c (struct remote_state): Remove multi_process_aware,
7133 non_stop_aware, cond_tracepoints, cond_breakpoints,
7134 breakpoint_commands, fast_tracepoints, static_tracepoints,
7135 install_in_trace, disconnected_tracing,
7136 enable_disable_tracepoints, string_tracing, and
7137 augmented_libraries_svr4_read fields.
7138 (remote_multi_process_p): Move further below in the file.
7139 (struct packet_config): Add comments.
7140 (update_packet_config): Delete function.
7141 (show_packet_config_cmd): Use packet_config_support.
7142 (add_packet_config_cmd): Use NULL as set callback.
7143 (packet_ok): "set remote foo-packet"-style commands no longer
7144 change config->supported -- adjust.
7145 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
7146 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
7147 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
7148 (PACKET_QNonStop, PACKET_multiprocess_feature)
7149 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
7150 (PACKET_DisconnectedTracing_feature)
7151 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
7152 (set_remote_protocol_packet_cmd): Delete function.
7153 (packet_config_support, packet_support): New functions.
7154 (set_remote_protocol_Z_packet_cmd): Don't call
7155 update_packet_config.
7156 (remote_query_attached, remote_pass_signals)
7157 (remote_program_signals, remote_threads_info)
7158 (remote_threads_extra_info, remote_start_remote): Use
7159 packet_support.
7160 (remote_start_remote): Use packet_config_support and
7161 packet_support.
7162 (init_all_packet_configs): Set all packets to unknown support,
7163 instead of calling update_packet_config.
7164 (remote_check_symbols): Use packet_support.
7165 (remote_supported_packet): Unconditionally set the packet config's
7166 support status.
7167 (remote_multi_process_feature, remote_non_stop_feature)
7168 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
7169 (remote_breakpoint_commands_feature)
7170 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
7171 (remote_install_in_trace_feature)
7172 (remote_disconnected_tracing_feature)
7173 (remote_enable_disable_tracepoint_feature)
7174 (remote_string_tracing_feature)
7175 (remote_augmented_libraries_svr4_read_feature): Delete functions.
7176 (remote_protocol_features): Adjust to use remote_supported_packet
7177 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
7178 "ConditionalTracepoints", "ConditionalBreakpoints",
7179 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
7180 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
7181 "EnableDisableTracepoints", and "tracenz".
7182 (remote_query_supported): Use packet_support.
7183 (remote_open_1): Adjust.
7184 (extended_remote_attach_1): Use packet_support. Switch on the
7185 result of packet_ok instead of checking whether the packet ended
7186 up disabled.
7187 (remote_vcont_resume): Use packet_support.
7188 (remote_resume, remote_stop_ns, fetch_register_using_p)
7189 (remote_prepare_to_store, store_register_using_P)
7190 (check_binary_download, remote_write_bytes): Use packet_support.
7191 (remote_vkill): Use packet_support. Switch on the result of
7192 packet_ok instead of checking whether the packet ended up
7193 disabled.
7194 (extended_remote_supports_disable_randomization): Use
7195 packet_support.
7196 (extended_remote_run): Switch on the result of packet_ok instead
7197 of checking whether the packet ended up disabled.
7198 (remote_insert_breakpoint, remote_remove_breakpoint)
7199 (remote_insert_watchpoint, remote_remove_watchpoint)
7200 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
7201 packet_support.
7202 (remote_search_memory): Use packet_config_support.
7203 (remote_get_thread_local_address, remote_get_tib_address)
7204 (remote_hostio_send_command, remote_can_execute_reverse): Use
7205 packet_support.
7206 (remote_supports_cond_tracepoints)
7207 (remote_supports_cond_breakpoints)
7208 (remote_supports_fast_tracepoints)
7209 (remote_supports_static_tracepoints)
7210 (remote_supports_install_in_trace)
7211 (remote_supports_enable_disable_tracepoint)
7212 (remote_supports_string_tracing)
7213 (remote_can_run_breakpoint_commands): Rewrite, checking whether
7214 the packet config says the feature is enabled or disabled.
7215 (remote_download_tracepoint, remote_trace_set_readonly_regions)
7216 (remote_get_trace_status): Use packet_support.
7217 (remote_set_disconnected_tracing): Adjust to check whether the
7218 feature is enabled with packet_support.
7219 (remote_set_trace_buffer_size, remote_use_agent)
7220 (remote_can_use_agent, remote_supports_btrace): Use
7221 packet_support.
7222 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
7223 Use packet_config_support.
7224 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
7225 the packet config says the feature is enabled or disabled.
7226 (set_range_stepping): Use packet_support.
7227
bdb52a22
TT
72282014-04-25 Tom Tromey <tromey@redhat.com>
7229
7230 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
7231 argument.
7232
e9475ead
SA
72332014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
7234
7235 * NEWS: Mention support for C99 variable length arrays.
7236
82eacd52
JB
72372014-04-24 Joel Brobecker <brobecker@adacore.com>
7238
7239 * ada-lang.c (standard_exc): Expand introductory comment.
7240
01f9f808
MS
72412014-04-24 Michael Sturm <michael.sturm@mintel.com>
7242 Walfred Tedeschi <walfred.tedeschi@intel.com>
7243
7244 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
7245 AVX512 registers.
7246 (amd64_linux_read_description): Add code to handle AVX512 xstate
7247 mask and return respective tdesc.
7248 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
7249 and features/i386/x32-avx512-linux.c.
7250 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
7251 (amd64_linux_core_read_description): Add code to handle AVX512
7252 xstate mask and return respective tdesc.
7253 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
7254 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
7255 calculation.
7256 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
7257 (tdesc_amd64_avx512_linux): New prototype.
7258 (tdesc_x32_avx512_linux): Likewise.
7259 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
7260 features/i386/x32-avx512.c.
7261 (amd64_ymm_avx512_names): New register names for pseudo
7262 registers YMM16-31.
7263 (amd64_ymmh_avx512_names): New register names for raw registers
7264 YMMH16-31.
7265 (amd64_k_names): New register names for K registers.
7266 (amd64_zmmh_names): New register names for ZMM raw registers.
7267 (amd64_zmm_names): New registers names for ZMM pseudo registers.
7268 (amd64_xmm_avx512_names): New register names for XMM16-31
7269 registers.
7270 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
7271 registers.
7272 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
7273 if feature is present.
7274 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
7275 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
7276 (AMD64_NUM_REGS): Adjust to new number of registers.
7277 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
7278 registers supplied via XSTATE by AVX512 registers.
7279 (i386_linux_read_description): Add case for AVX512.
7280 * i386-linux-tdep.c: Include i386-avx512-linux.c.
7281 (i386_linux_gregset_reg_offset): Add AVX512 registers.
7282 (i386_linux_core_read_description): Add case for AVX512.
7283 (i386_linux_init_abi): Install supported register note section
7284 for AVX512.
7285 (_initialize_i386_linux_tdep): Add call to tdesc init function for
7286 AVX512.
7287 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
7288 registers to be number of zmm7h + 1.
7289 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
7290 * i386-tdep.c: Include features/i386/i386-avx512.c.
7291 (i386_zmm_names): Add ZMM pseudo register names array.
7292 (i386_zmmh_names): Add ZMM raw register names array.
7293 (i386_k_names): Add K raw register names array.
7294 (num_lower_zmm_regs): Add constant for the number of lower ZMM
7295 registers. AVX512 has 16 more ZMM registers than there are YMM
7296 registers.
7297 (i386_zmmh_regnum_p): Add function to look up register number of
7298 ZMM raw registers.
7299 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
7300 (i386_k_regnum_p): Likewise for K raw registers.
7301 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
7302 registers added by AVX512.
7303 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
7304 registers added by AVX512.
7305 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
7306 added by AVX512.
7307 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
7308 (i386_pseudo_register_name): Add ZMM pseudo registers.
7309 (i386_zmm_type): Construct and return vector registers type for ZMM
7310 registers.
7311 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
7312 ZMM0-31 pseudo registers and K registers.
7313 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
7314 and YMM16-31 registers from register cache.
7315 (i386_pseudo_register_write): Add code to write K, ZMM and
7316 YMM16-31 registers.
7317 (i386_register_reggroup_p): Add code to include/exclude AVX512
7318 registers in/from respective register groups.
7319 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
7320 registers if feature is present in xcr0.
7321 (i386_gdbarch_init): Add code to initialize AVX512 feature
7322 variables in tdep structure, wire in pseudo registers and call
7323 initialize_tdesc_i386_avx512.
7324 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
7325 variables.
7326 (i386_regnum): Add AVX512 registers.
7327 (I386_SSE_NUM_REGS): New define for number of SSE registers.
7328 (I386_AVX_NUM_REGS): Likewise for AVX registers.
7329 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
7330 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
7331 512 bits wide.
7332 (i386_xmm_avx512_regnum_p): New prototype for register look up.
7333 (i386_ymm_avx512_regnum_p): Likewise.
7334 (i386_k_regnum_p): Likewise.
7335 (i386_zmm_regnum_p): Likewise.
7336 (i386_zmmh_regnum_p): Likewise.
7337 * i387-tdep.c : Update year in copyright notice.
7338 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
7339 XSAVE buffer.
7340 (XSAVE_YMM_AVX512_ADDR): New macro.
7341 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
7342 XSAVE buffer.
7343 (XSAVE_XMM_AVX512_ADDR): New macro.
7344 (xsave_avx512_k_offset): New table for K register offsets in
7345 XSAVE buffer.
7346 (XSAVE_AVX512_K_ADDR): New macro.
7347 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
7348 in XSAVE buffer.
7349 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
7350 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
7351 buffer.
7352 (i387_collect_xsave): Add code to collect AVX512 registers from
7353 XSAVE buffer.
7354 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
7355 of XMM16-31 registers.
7356 (I387_NUM_K_REGS): New define for number of K registers.
7357 (I387_K0_REGNUM): New define for K0 register number.
7358 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
7359 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
7360 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
7361 registers.
7362 (I387_YMM16H_REGNUM): New define for YMM16H register number.
7363 (I387_XMM16_REGNUM): New define for XMM16 register number.
7364 (I387_YMM0_REGNUM): New define for YMM0 register number.
7365 (I387_KEND_REGNUM): New define for last K register number.
7366 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
7367 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
7368 number.
7369 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
7370 number.
7371 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
7372 size.
7373 * features/Makefile: Add AVX512 related files.
7374 * features/i386/32bit-avx512.xml: New file.
7375 * features/i386/64bit-avx512.xml: Likewise.
7376 * features/i386/amd64-avx512-linux.c: Likewise.
7377 * features/i386/amd64-avx512-linux.xml: Likewise.
7378 * features/i386/amd64-avx512.c: Likewise.
7379 * features/i386/amd64-avx512.xml: Likewise.
7380 * features/i386/i386-avx512-linux.c: Likewise.
7381 * features/i386/i386-avx512-linux.xml: Likewise.
7382 * features/i386/i386-avx512.c: Likewise.
7383 * features/i386/i386-avx512.xml: Likewise.
7384 * features/i386/x32-avx512-linux.c: Likewise.
7385 * features/i386/x32-avx512-linux.xml: Likewise.
7386 * features/i386/x32-avx512.c: Likewise.
7387 * features/i386/x32-avx512.xml: Likewise.
7388 * regformats/i386/amd64-avx512-linux.dat: New file.
7389 * regformats/i386/amd64-avx512.dat: Likewise.
7390 * regformats/i386/i386-avx512-linux.dat: Likewise.
7391 * regformats/i386/i386-avx512.dat: Likewise.
7392 * regformats/i386/x32-avx512-linux.dat: Likewise.
7393 * regformats/i386/x32-avx512.dat: Likewise.
7394 * NEWS: Add note about new support for AVX512.
7395
7396
08351840
PA
73972014-04-23 Pedro Alves <palves@redhat.com>
7398
7399 * breakpoint.c (insert_bp_location): Tolerate errors if the
7400 breakpoint is set in a user-loaded objfile.
7401 (remove_breakpoint_1): Likewise. Also tolerate errors if the
7402 location is marked shlib_disabled. If the breakpoint is set in a
7403 user-loaded objfile is a GDB-side memory breakpoint, validate it
7404 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
7405 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
7406 flag.
7407 * mem-break.c (memory_validate_breakpoint): New function.
7408 * objfiles.c (userloaded_objfile_contains_address_p): New
7409 function.
7410 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
7411 * target.h (memory_validate_breakpoint): New declaration.
7412
076855f9
PA
74132014-04-23 Pedro Alves <palves@redhat.com>
7414
7415 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
7416 the breakpoint is set in a shared library, only suppress
7417 errors for software breakpoints, not hardware breakpoints.
7418
483805cf
PA
74192014-04-22 Pedro Alves <palves@redhat.com>
7420
7421 * infrun.c (schedlock_applies): New function, factored out from
7422 find_thread_needs_step_over.
7423 (find_thread_needs_step_over): Use it.
7424 (switch_back_to_stepped_thread): Always clear trap_expected if the
7425 step over is finished. Return early if scheduler locking applies.
7426 Look for the stepping thread and a potential step-over thread with
7427 a single loop.
7428 (currently_stepping_or_nexting_callback): Delete.
7429
a75fef0e
NC
74302014-04-22 Nick Clifton <nickc@redhat.com>
7431
7432 * NEWS: Mention that ARM sim now supports tracing.
7433
48b6e87e
YQ
74342014-04-22 Yao Qi <yao@codesourcery.com>
7435
7436 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
7437 to ...
7438 * tracefile.c (tracefile_fetch_registers): ... it. New
7439 function.
7440 * tracefile.h (tracefile_fetch_registers): Declare.
7441 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
7442 tracefile_fetch_registers.
7443
17617f2d
EZ
74442014-04-19 Eli Zaretskii <eliz@gnu.org>
7445
7446 PR gdb/14018
7447 * windows-nat.c (thread_rec): Don't display a warning when
7448 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
7449 fails for any reason, set th->suspended to -1, so that we don't
7450 try to resume such a thread. Also, don't return NULL in these
7451 cases, to avoid completely ruin the session due to "PC register is
7452 not available" error.
7453 (do_windows_fetch_inferior_registers): Check errors in
7454 GetThreadContext call.
7455 (windows_continue): Accept an additional argument KILLED; if not
7456 zero, ignore errors in the SetThreadContext call, since the
7457 inferior was killed and is shutting down.
7458 (windows_resume, get_windows_debug_event)
7459 (windows_create_inferior, windows_mourn_inferior)
7460 (windows_kill_inferior): All callers of windows_continue changed
7461 to adjust to its new calling sequence.
7462
5723a6fd
YQ
74632014-04-19 Yao Qi <yao@codesourcery.com>
7464
7465 * ctf.c (ctf_open): Call post_create_inferior.
7466
614d5099
YQ
74672014-04-19 Yao Qi <yao@codesourcery.com>
7468
7469 * ctf.c (handle_id): New static variable.
7470 (ctf_open_dir): Get handle_id from bt_context_add_trace return
7471 value. Get the declaration of event "register" and get length
7472 of field "contents".
7473
dac3e710
YQ
74742014-04-19 Yao Qi <yao@codesourcery.com>
7475
7476 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
7477
2bca57ba
SC
74782014-04-18 Siva Chandra Reddy <sivachandra@google.com>
7479
7480 * valops.c (oload_method_static): Remove unnecessary argument
7481 METHOD. Update all callers.
7482
51d48146
PA
74832014-04-18 Pedro alves <palves@redhat.com>
7484 Tom Tromey <tromey@redhat.com>
7485
7486 PR backtrace/15558
7487 * frame.c (get_prev_frame_1): Rename to ...
7488 (get_prev_frame_always): ... this, and make extern. Adjust.
7489 (skip_artificial_frames): Use get_prev_frame_always.
7490 (frame_unwind_caller_id, frame_pop, get_prev_frame)
7491 (get_frame_unwind_stop_reason): Adjust to rename.
7492 * frame.h (get_prev_frame_always): Declare.
7493 * inline-frame.c: Include frame.h.
7494 (inline_frame_this_id): Use get_prev_frame_always.
7495
1bdad2e0
TG
74962014-04-18 Tristan Gingold <gingold@adacore.com>
7497
7498 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
7499 code by using bfd_mach_o_get_base_address.
7500
7ce16bd4
UW
75012014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
7502
7503 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
7504 (spu_ax_pseudo_register_collect): New function.
7505 (spu_ax_pseudo_register_push_stack): Likewise.
7506 (spu_dwarf_reg_to_regnum): Likewise.
7507 (spu_gdbarch_init): Install them. Append DWARF unwinders.
7508
2ed3c037
UW
75092014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
7510
7511 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
7512 Replace FRAME argument with FRAME_ID.
7513 * gdbarch.c, gdbarch.h: Regenerate.
7514 * findvar.c (default_value_from_register): Add GDBARCH argument;
7515 replace FRAME by FRAME_ID. No longer call get_frame_id.
7516 (value_from_register): Update call to gdbarch_value_from_register.
7517 * value.h (default_value_from_register): Update prototype.
7518 * s390-linux-tdep.c (s390_value_from_register): Update interface
7519 and call to default_value_from_register.
7520 * spu-tdep.c (spu_value_from_register): Likewise.
7521
7522 * findvar.c (address_from_register): Remove TYPE argument.
7523 Do not call value_from_register; use gdbarch_value_from_register
7524 with null_frame_id instead.
7525 * value.h (address_from_register): Update prototype.
7526 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
7527 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
7528 address_from_register interface change.
7529
71e50e83
YQ
75302014-04-17 Yao Qi <yao@codesourcery.com>
7531
7532 * gdbtypes.h: Update comments to link to types and macros'
7533 definitions.
7534
7a23c549
SC
75352014-04-16 Siva Chandra Reddy <sivachandra@google.com>
7536
7537 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
7538
22869d73
KS
75392014-04-16 Keith Seitz <keiths@redhat.com>
7540
7541 PR gdb/15827
7542 * dwarf2read.c (skip_one_die): Check that all relative-offset
7543 sibling DIEs fall within range of the current reader's buffer.
7544 (read_partial_die): Likewise.
7545
c4f87ca6
KS
75462014-04-16 Keith Seitz <keiths@redhat.com>
7547
7548 PR c++/16597
7549 * cp-namespace.c (lookup_symbol_file): If the type name of
7550 `this' is NULL, return immediately.
7551
b50c8614
KS
75522014-04-14 Keith Seitz <keiths@redhat.com>
7553
7554 PR c++/16253
7555 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
7556 from symbol_matches_domain in symtab.c. All local callers
7557 of symbol_matches_domain updated.
7558 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
7559 search STRUCT_DOMAIN.
7560 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
7561 independently. standard_lookup will do that automatically.
7562 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
7563 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7564 (cp_lookup_symbol_in_namespace): Likewise.
7565 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
7566 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
7567 may return a STRUCT_DOMAIN match.
7568 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
7569 * cp-support.c: Include language.h.
7570 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
7571 VAR_DOMAIN.
7572 * psymtab.c (match_partial_symbol): Compare the requested
7573 domain with the symbol's domain directly.
7574 (lookup_partial_symbol): Likewise.
7575 * symtab.c (lookup_symbol_in_language): Explain when/why
7576 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7577 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
7578 appropriate languages.
7579 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
7580 and moved to ada-lang.c
7581 (lookup_block_symbol): Explain that this function only returns
7582 symbol matching the requested DOMAIN.
7583 Compare the requested domain with the symbol's domain directly.
7584 (iterate_over_symbols): Compare the requested domain with the
7585 symbol's domain directly.
7586 * symtab.h (symbol_matches_domain): Remove.
7587
3d567982
TT
75882014-04-14 Tom Tromey <tromey@redhat.com>
7589
7590 PR c++/15246:
7591 * c-exp.y (type_aggregate_p): New function.
7592 (qualified_name, classify_inner_name): Use it.
7593 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
7594 and TYPE_TARGET_TYPE of an enum type.
7595 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
7596 an enum type.
7597 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
7598 handle TYPE_DECLARED_CLASS.
7599 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
7600 types.
7601 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
7602 * valops.c (enum_constant_from_type): New function.
7603 (value_aggregate_elt): Use it.
7604 * cp-namespace.c (cp_lookup_nested_symbol): Handle
7605 TYPE_CODE_ENUM.
7606
c848d642
TT
76072014-04-14 Tom Tromey <tromey@redhat.com>
7608
7609 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
7610 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
7611 const.
7612 * value.h (value_aggregate_elt): Update.
7613
0626fc76
TT
76142014-04-14 Tom Tromey <tromey@redhat.com>
7615
7616 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
7617
5ecaaa66
SA
76182014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7619
7620 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7621 (evaluate_subexp_standard): Pass noside argument.
7622 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7623 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7624 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7625 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7626 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7627
1612e0c0
SA
76282014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7629
7630 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7631 points to a constant blob.
7632
c451ebe5
SA
76332014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7634
7635 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7636 property and store it as the high bound and flag the range accordingly.
7637 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7638 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7639 * gdbtypes.h (enum range_flags): New enum.
7640 (struct range_bounds): Add flags member.
7641
1d42e4c4
SA
76422014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7643
7644 * c-typeprint.c (c_type_print_varspec_suffix): Added
7645 check for not yet resolved high bound. If unresolved, print
7646 "variable length" string to the console instead of random
7647 length.
7648
9f1f738a
SA
76492014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7650
7651 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
7652 value.
7653 (ada_template_to_fixed_record_type_1): Likewise.
7654 (ada_to_fixed_type_1): Likewise.
7655 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7656 (cp_print_value): Likewise.
7657 * d-valprint.c (dynamic_array_type): Likewise.
7658 * findvar.c (address_of_variable): Likewise.
7659 * jv-valprint.c (java_value_print): Likewise.
7660 * valops.c (value_ind): Likewise.
7661 * value.c (coerce_ref): Likewise.
7662
3c8452d4
SA
76632014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7664
7665 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7666 value and retrieve the dynamic type size.
7667
4ad88275
SA
76682014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7669
7670 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7671 passed to sizeof is dynamic evaluate the argument to compute the length.
7672
80180f79
SA
76732014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7674 Joel Brobecker <brobecker@adacore.com>
7675
7676 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7677 (dwarf2_evaluate_property): New function.
7678 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7679 * dwarf2read.c (attr_to_dynamic_prop): New function.
7680 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7681 attribute.
7682 * gdbtypes.c: Include dwarf2loc.h.
7683 (is_dynamic_type): New function.
7684 (resolve_dynamic_type): New function.
7685 (resolve_dynamic_bounds): New function.
7686 (get_type_length): New function.
7687 (check_typedef): Use get_type_length to compute type length.
7688 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7689 (TYPE_LOW_BOUND_KIND): New macro.
7690 (is_dynamic_type): New function prototype.
7691 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7692 to resolve dynamic properties of the type. Update comment.
7693 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7694
a1556843
RH
76952014-04-14 Richard Henderson <rth@redhat.com>
7696
7697 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
7698
0be03e84
DE
76992014-04-12 Siva Chandra Reddy <sivachandra@google.com>
7700 Doug Evans <xdje42@gmail.com>
7701
7702 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
7703 dereference TYPE_CODE_REF values.
7704
6b662e19
JB
77052014-04-11 Joel Brobecker <brobecker@adacore.com>
7706
7707 Revert the following changes due to regressions:
7708
7709 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7710 (dwarf2_evaluate_property): New function.
7711 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7712 * dwarf2read.c (attr_to_dynamic_prop): New function.
7713 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7714 attribute.
7715 * gdbtypes.c: Include dwarf2loc.h.
7716 (is_dynamic_type): New function.
7717 (resolve_dynamic_type): New function.
7718 (resolve_dynamic_bounds): New function.
7719 (get_type_length): New function.
7720 (check_typedef): Use get_type_length to compute type length.
7721 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7722 (TYPE_LOW_BOUND_KIND): New macro.
7723 (is_dynamic_type): New function prototype.
7724 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7725 to resolve dynamic properties of the type. Update comment.
7726 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7727
7728 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7729 passed to sizeof is dynamic evaluate the argument to compute the length.
7730
7731 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7732 value and retrieve the dynamic type size.
7733
7734 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7735 (ada_template_to_fixed_record_type_1): Likewise.
7736 (ada_to_fixed_type_1): Likewise.
7737 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7738 (cp_print_value): Likewise.
7739 * d-valprint.c (dynamic_array_type): Likewise.
7740 * eval.c (evaluate_subexp_with_coercion): Likewise.
7741 * findvar.c (address_of_variable): Likewise.
7742 * jv-valprint.c (java_value_print): Likewise.
7743 * valops.c (value_ind): Likewise.
7744 * value.c (coerce_ref): Likewise.
7745
7746 * c-typeprint.c (c_type_print_varspec_suffix): Added
7747 check for not yet resolved high bound. If unresolved, print
7748 "variable length" string to the console instead of random
7749 length.
7750
7751 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7752 property and store it as the high bound and flag the range accordingly.
7753 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7754 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7755 * gdbtypes.h (enum range_flags): New enum.
7756 (struct range_bounds): Add flags member.
7757
7758 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7759 points to a constant blob.
7760
7761 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7762 (evaluate_subexp_standard): Pass noside argument.
7763 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7764 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7765 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7766 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7767 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7768
245a5f0b
KS
77692014-04-11 Keith Seitz <keiths@redhat.com>
7770
7771 PR c++/16675
7772 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
7773 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
7774 reference types.
7775
3bce8237
SA
77762014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7777
7778 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7779 (evaluate_subexp_standard): Pass noside argument.
7780 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7781 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7782 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7783 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7784 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7785
92b09522
SA
77862014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7787
7788 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7789 points to a constant blob.
7790
e1969afb
SA
77912014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7792
7793 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7794 property and store it as the high bound and flag the range accordingly.
7795 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7796 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7797 * gdbtypes.h (enum range_flags): New enum.
7798 (struct range_bounds): Add flags member.
7799
b86138fb
SA
78002014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7801
7802 * c-typeprint.c (c_type_print_varspec_suffix): Added
7803 check for not yet resolved high bound. If unresolved, print
7804 "variable length" string to the console instead of random
7805 length.
7806
bcd629a4
SA
78072014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7808
7809 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7810 (ada_template_to_fixed_record_type_1): Likewise.
7811 (ada_to_fixed_type_1): Likewise.
7812 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7813 (cp_print_value): Likewise.
7814 * d-valprint.c (dynamic_array_type): Likewise.
7815 * eval.c (evaluate_subexp_with_coercion): Likewise.
7816 * findvar.c (address_of_variable): Likewise.
7817 * jv-valprint.c (java_value_print): Likewise.
7818 * valops.c (value_ind): Likewise.
7819 * value.c (coerce_ref): Likewise.
7820
04b19544
SA
78212014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7822
7823 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7824 value and retrieve the dynamic type size.
7825
26cb189f
SA
78262014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7827
7828 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7829 passed to sizeof is dynamic evaluate the argument to compute the length.
7830
37c1ab67
SA
78312014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7832
7833 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7834 (dwarf2_evaluate_property): New function.
7835 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7836 * dwarf2read.c (attr_to_dynamic_prop): New function.
7837 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7838 attribute.
7839 * gdbtypes.c: Include dwarf2loc.h.
7840 (is_dynamic_type): New function.
7841 (resolve_dynamic_type): New function.
7842 (resolve_dynamic_bounds): New function.
7843 (get_type_length): New function.
7844 (check_typedef): Use get_type_length to compute type length.
7845 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7846 (TYPE_LOW_BOUND_KIND): New macro.
7847 (is_dynamic_type): New function prototype.
7848 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7849 to resolve dynamic properties of the type. Update comment.
7850 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7851
729efb13
SA
78522014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7853
7854 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
7855 declaring high/low bounds and change uses accordingly. Call
7856 create_range_type instead of create_static_range_type.
7857 * gdbtypes.c (create_range_type): New function.
7858 (create_range_type): Convert bounds into struct bound_prop and pass
7859 them to create_range_type.
7860 * gdbtypes.h (struct bound_prop): New struct.
7861 (create_range_type): New function prototype.
7862 (struct range_bounds): Use struct bound_prop instead of LONGEST for
7863 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
7864 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
7865 part of the bound.
7866 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
7867
0c9c3474
SA
78682014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7869
7870 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
7871 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
7872 * ada-lang.c: All uses of create_range_type updated.
7873 * coffread.c: All uses of create_range_type updated.
7874 * dwarf2read.c: All uses of create_range_type updated.
7875 * f-exp.y: All uses of create_range_type updated.
7876 * m2-valprint.c: All uses of create_range_type updated.
7877 * mdebugread.c: All uses of create_range_type updated.
7878 * stabsread.c: All uses of create_range_type updated.
7879 * valops.c: All uses of create_range_type updated.
7880 * valprint.c: All uses of create_range_type updated.
7881
9d497a19
PA
78822014-04-10 Pedro Alves <palves@redhat.com>
7883
7884 * breakpoint.c (single_step_breakpoints)
7885 (single_step_gdbarch): Move up in the file.
7886 (one_breakpoint_xfer_memory): New function, factored out from ...
7887 (breakpoint_xfer_memory): ... here. Also process single-step
7888 breakpoints.
7889
15a9128a
TG
78902014-04-09 Tristan Gingold <gingold@adacore.com>
7891
7892 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
7893 comments.
7894 (darwin_decode_exception_message): Free port only after use.
7895
9c97a070
PL
78962014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
7897
7898 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
7899 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
7900 when setting the size of call_length.
7901
7af389b8
SC
79022014-04-07 Siva Chandra Reddy <sivachandra@google.com>
7903
7904 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
7905 dereference TYPE_CODE_REF values.
7906
86ad98c3
JB
79072014-04-07 Joel Brobecker <brobecker@adacore.com>
7908
7909 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
7910 end of warning message.
7911
b0aeadb3
DE
79122014-04-03 Doug Evans <dje@google.com>
7913
7914 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
7915 of stub_comp_unit_die, stub_comp_dir is non-NULL.
7916
5979d6b6
AM
79172014-04-02 Alan Modra <amodra@gmail.com>
7918
7919 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
7920 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
7921 (struct symbol_file_add_from_memory_args): Add size field.
7922 (find_vdso_size): New function.
7923 (add_vsyscall_page): Attempt to find vdso size.
7924
0d60c288
DE
79252014-04-01 Doug Evans <dje@google.com>
7926
7927 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
7928
a41f2563
TG
79292014-04-01 Tristan Gingold <gingold@adacore.com>
7930
7931 * darwin-nat.c (darwin_encode_reply): Add prototype.
7932 (darwin_decode_exception_message): Reply to unknown inferiors.
7933 (darwin_decode_message): Handle message by id. Ignore message
7934 to unknown inferior.
7935 (darwin_wait): Discard unknown messages, add debug trace.
7936
11a865c8
DE
79372014-03-31 Doug Evans <dje@google.com>
7938
7939 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
7940 comp_dir_string.
7941
770e7fc7
DE
79422014-03-31 Doug Evans <dje@google.com>
7943
7944 New option "set print symbol-loading".
7945 * NEWS: Mention it.
7946 * solib.c (solib_read_symbols): Only print symbol loading messages
7947 if requested.
7948 (solib_add): If symbol loading is in "brief" mode, notify user
7949 symbols are being loaded.
7950 (reload_shared_libraries_1): Ditto.
7951 * symfile.c (print_symbol_loading_off): New static global.
7952 (print_symbol_loading_brief): New static global.
7953 (print_symbol_loading_full): New static global.
7954 (print_symbol_loading_enums): New static global.
7955 (print_symbol_loading): New static global.
7956 (print_symbol_loading_p): New function.
7957 (symbol_file_add_with_addrs): Only print symbol loading messages
7958 if requested.
7959 (_initialize_symfile): Register "print symbol-loading" set/show
7960 command.
7961 * symfile.h (print_symbol_loading_p): Declare.
7962
c32c64b7
DE
79632014-03-30 Doug Evans <xdje42@gmail.com>
7964
7965 * infrun.c (set_last_target_status): New function.
7966 (handle_inferior_event): Call it.
7967
7c0bc051
DE
79682014-03-30 Doug Evans <xdje42@gmail.com>
7969
7970 * inferior.h (enum stop_kind): Improve comment.
7971
8776cfe9
JB
79722014-03-28 Joel Brobecker <brobecker@adacore.com>
7973
7974 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
7975 a reference, strip the reference layer before calling
7976 the lang_ops value_has_mutated callback.
7977
410a0ff2
SDJ
79782014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
7979
7980 Remove some globals from our parser.
7981 * language.c (unk_lang_parser): Add "struct parser_state"
7982 argument.
7983 * language.h (struct language_defn) <la_parser>: Likewise.
7984 * parse.c (expout, expout_size, expout_ptr): Remove variables.
7985 (initialize_expout): Add "struct parser_state" argument.
7986 Rewrite function to use the parser state.
7987 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
7988 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
7989 write_exp_elt_longcst, write_exp_elt_dblcst,
7990 write_exp_elt_decfloatcst, write_exp_elt_type,
7991 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
7992 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
7993 write_dollar_variable): Likewise.
7994 (parse_exp_in_context_1): Use parser state.
7995 (insert_type_address_space): Add "struct parser_state" argument.
7996 Use parser state.
7997 (increase_expout_size): New function.
7998 * parser-defs.h: Forward declare "struct language_defn" and
7999 "struct parser_state".
8000 (expout, expout_size, expout_ptr): Remove extern declarations.
8001 (parse_gdbarch, parse_language): Rewrite macro declarations to
8002 accept the parser state.
8003 (struct parser_state): New struct.
8004 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
8005 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
8006 write_exp_elt_decfloatcst, write_exp_elt_type,
8007 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
8008 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
8009 write_exp_msymbol, write_dollar_variable,
8010 mark_struct_expression, insert_type_address_space): Add "struct
8011 parser_state" argument.
8012 (increase_expout_size): New function.
8013 * utils.c (do_clear_parser_state): New function.
8014 (make_cleanup_clear_parser_state): Likewise.
8015 * utils.h (make_cleanup_clear_parser_state): New function
8016 prototype.
8017 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
8018 Update calls to write_exp* in order to pass the parser state.
8019 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
8020 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
8021 (i386_stap_parse_special_token_three_arg_disp): Likewise.
8022 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
8023 * stap-probe.c (stap_parse_register_operand): Likewise.
8024 (stap_parse_single_operand): Likewise.
8025 (stap_parse_argument_1): Likewise.
8026 (stap_parse_argument): Use parser state.
8027 * stap-probe.h: Include "parser-defs.h".
8028 (struct stap_parse_info) <pstate>: New field.
8029 * c-exp.y (parse_type): Rewrite to use parser state.
8030 (yyparse): Redefine to c_parse_internal.
8031 (pstate): New global variable.
8032 (parse_number): Add "struct parser_state" argument.
8033 (write_destructor_name): Likewise.
8034 (type_exp): Update calls to write_exp* and similars in order to
8035 use parser state.
8036 (exp1, exp, variable, qualified_name, space_identifier,
8037 typename, typebase): Likewise.
8038 (write_destructor_name, parse_number, lex_one_token,
8039 classify_name, classify_inner_name, c_parse): Add "struct
8040 parser_state" argument. Update function to use parser state.
8041 * c-lang.h: Forward declare "struct parser_state".
8042 (c_parse): Add "struct parser_state" argument.
8043 * ada-exp.y (parse_type): Rewrite macro to use parser state.
8044 (yyparse): Redefine macro to ada_parse_internal.
8045 (pstate): New variable.
8046 (write_int, write_object_renaming, write_var_or_type,
8047 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
8048 type_int, type_long, type_long_long, type_float, type_double,
8049 type_long_double, type_char, type_boolean, type_system_address):
8050 Add "struct parser_state" argument.
8051 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
8052 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
8053 var_or_type, aggregate, aggregate_component_list,
8054 positional_list, others, component_group,
8055 component_associations): Update calls to write_exp* and similar
8056 functions in order to use parser state.
8057 (ada_parse, write_var_from_sym, write_int,
8058 write_exp_op_with_string, write_object_renaming,
8059 find_primitive_type, write_selectors, write_ambiguous_var,
8060 write_var_or_type, write_name_assoc, type_int, type_long,
8061 type_long_long, type_float, type_double, type_long_double,
8062 type_char, type_boolean, type_system_address): Add "struct
8063 parser_state" argument. Adjust function to use parser state.
8064 * ada-lang.c (parse): Likewise.
8065 * ada-lang.h: Forward declare "struct parser_state".
8066 (ada_parse): Add "struct parser_state" argument.
8067 * ada-lex.l (processInt, processReal): Likewise. Adjust all
8068 calls to both functions.
8069 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
8070 parser state.
8071 (yyparse): Redefine macro to f_parse_internal.
8072 (pstate): New variable.
8073 (parse_number): Add "struct parser_state" argument.
8074 (type_exp, exp, subrange, typebase): Update calls to write_exp*
8075 and similars in order to use parser state.
8076 (parse_number): Adjust code to use parser state.
8077 (yylex): Likewise.
8078 (f_parse): New function.
8079 * f-lang.h: Forward declare "struct parser_state".
8080 (f_parse): Add "struct parser_state" argument.
8081 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
8082 parser state.
8083 (yyparse): Redefine macro for java_parse_internal.
8084 (pstate): New variable.
8085 (push_expression_name, push_expression_name, insert_exp): Add
8086 "struct parser_state" argument.
8087 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
8088 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
8089 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
8090 PostIncrementExpression, PostDecrementExpression,
8091 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
8092 UnaryExpressionNotPlusMinus, CastExpression,
8093 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
8094 RelationalExpression, EqualityExpression, AndExpression,
8095 ExclusiveOrExpression, InclusiveOrExpression,
8096 ConditionalAndExpression, ConditionalOrExpression,
8097 ConditionalExpression, Assignment, LeftHandSide): Update
8098 calls to write_exp* and similars in order to use parser state.
8099 (parse_number): Ajust code to use parser state.
8100 (yylex): Likewise.
8101 (java_parse): New function.
8102 (push_variable): Add "struct parser_state" argument. Adjust
8103 code to user parser state.
8104 (push_fieldnames, push_qualified_expression_name,
8105 push_expression_name, insert_exp): Likewise.
8106 * jv-lang.h: Forward declare "struct parser_state".
8107 (java_parse): Add "struct parser_state" argument.
8108 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
8109 parser state.
8110 (yyparse): Redefine macro to m2_parse_internal.
8111 (pstate): New variable.
8112 (type_exp, exp, fblock, variable, type): Update calls to
8113 write_exp* and similars to use parser state.
8114 (yylex): Likewise.
8115 (m2_parse): New function.
8116 * m2-lang.h: Forward declare "struct parser_state".
8117 (m2_parse): Add "struct parser_state" argument.
8118 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
8119 * objc-lang.h: Forward declare "struct parser_state".
8120 (end_msglist): Add "struct parser_state" argument.
8121 * p-exp.y (parse_type): Rewrite macro to use parser state.
8122 (yyparse): Redefine macro to pascal_parse_internal.
8123 (pstate): New variable.
8124 (parse_number): Add "struct parser_state" argument.
8125 (type_exp, exp1, exp, qualified_name, variable): Update calls to
8126 write_exp* and similars in order to use parser state.
8127 (parse_number, yylex): Adjust code to use parser state.
8128 (pascal_parse): New function.
8129 * p-lang.h: Forward declare "struct parser_state".
8130 (pascal_parse): Add "struct parser_state" argument.
8131 * go-exp.y (parse_type): Rewrite macro to use parser state.
8132 (yyparse): Redefine macro to go_parse_internal.
8133 (pstate): New variable.
8134 (parse_number): Add "struct parser_state" argument.
8135 (type_exp, exp1, exp, variable, type): Update calls to
8136 write_exp* and similars in order to use parser state.
8137 (parse_number, lex_one_token, classify_name, yylex): Adjust code
8138 to use parser state.
8139 (go_parse): Likewise.
8140 * go-lang.h: Forward declare "struct parser_state".
8141 (go_parse): Add "struct parser_state" argument.
8142
342587c4
DE
81432014-03-27 Doug Evans <dje@google.com>
8144
8145 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
8146
33e80786
DE
81472014-03-27 Doug Evans <dje@google.com>
8148
8149 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
8150 Remove argument abbrev_section. All callers updated.
8151
1dbab08b
DE
81522014-03-27 Doug Evans <dje@google.com>
8153
8154 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
8155 addr_base, ranges_base.
8156
318d3177
KS
81572014-03-26 Keith Seitz <keiths@redhat.com>
8158
8159 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
8160 types, not VAR_DOMAIN.
8161
1e54db15
SL
81622014-03-25 Sandra Loosemore <sandra@codesourcery.com>
8163
8164 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
8165 "ra" registers.
8166 * features/nios2-linux.c: Regenerated.
8167 * features/nios2.c: Regenerated.
8168
d3839ede
PA
81692014-03-25 Pedro Alves <palves@redhat.com>
8170
8171 * cli/cli-script.c (script_from_file): Force the interpreter to
8172 sync mode.
8173
7588d2ec
PL
81742014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
8175
8176 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
8177 small stack allocation.
8178
a6290449
TG
81792014-03-24 Tristan Gingold <gingold@adacore.com>
8180
8181 * darwin-nat.c (exc_server): Remove unused prototype.
8182 (darwin_dump_message): Correctly display data on x86_64.
8183 (darwin_encode_reply): Fix style.
8184 Add comments and fix indentation.
8185
31ae9d24 81862014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
69fa4030
PL
8187
8188 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
8189
6339bfc4
DE
81902014-03-22 Doug Evans <xdje42@gmail.com>
8191
8192 * infcmd.c: Whitespace fixes.
8193 (interrupt_command): Merge two function comments into one.
8194
0a07590b
DE
81952014-03-22 Doug Evans <xdje42@gmail.com>
8196
8197 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
8198 All uses updated.
8199
b55fbac4
YQ
82002014-03-22 Yao Qi <yao@codesourcery.com>
8201
8202 * remote.c (target_read_live_memory): Remove.
8203 (memory_xfer_live_readonly_partial): Rename it to
8204 remote_xfer_live_readonly_partial. Remove argument 'object'.
8205 All callers updated. Call remote_read_bytes_1
8206 instead of target_read_live_memory.
8207 * tracepoint.c (set_traceframe_number): Remove.
8208 (make_cleanup_restore_traceframe_number): Likewise .
8209 * tracepoint.h (set_traceframe_number): Remove declaration.
8210 (make_cleanup_restore_traceframe_number): Likewise.
8211
9217e74e
YQ
82122014-03-22 Yao Qi <yao@codesourcery.com>
8213
8214 * remote.c (remote_read_bytes): Move code on reading from the
8215 remote stub to ...
8216 (remote_read_bytes_1): ... here. New function.
8217
8acf9577
YQ
82182014-03-22 Yao Qi <yao@codesourcery.com>
8219
8220 * ctf.c (ctf_xfer_partial): Check the return value of
8221 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
8222 return TARGET_XFER_UNAVAILABLE.
8223 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8224 * target.c (target_read_live_memory): Move it to remote.c.
8225 (memory_xfer_live_readonly_partial): Likewise.
8226 (memory_xfer_partial_1): Move some code to remote_read_bytes.
8227 * remote.c (target_read_live_memory): Moved from target.c.
8228 (memory_xfer_live_readonly_partial): Likewise.
8229 (remote_read_bytes): Factored out from
8230 memory_xfer_partial_1.
8231
feef67ab
DE
82322014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
8233
8234 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
8235 NULL pointer.
8236
b65dc60b
PA
82372014-03-21 Pedro Alves <palves@redhat.com>
8238
8239 * infrun.c (normal_stop): Extend comment.
8240
b4ab256d
HZ
82412014-03-21 Hui Zhu <hui@codesourcery.com>
8242 Pedro Alves <palves@redhat.com>
8243
8244 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
8245 static buffer.
8246 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
8247 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
8248 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
8249
deba7593
MR
82502014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
8251
8252 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
8253 `z' formatted output modifier.
8254
1bff71c3
SDJ
82552014-03-20 Tom Tromey <tromey@redhat.com>
8256 Sergio Durigan Junior <sergiodj@redhat.com>
8257
8258 * probe.c (parse_probes): Turn assert into an ordinary error.
8259 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
8260 exceptions when parsing probes. Rearrange the code for clarity.
8261
90e28950
TT
82622014-03-20 Tom Tromey <tromey@redhat.com>
8263
8264 PR gdb/14135
8265 * top.c (execute_command): Only dispatch events if the command
8266 started the target.
8267
beb460e8
PA
82682014-03-20 Tom Tromey <tromey@redhat.com>
8269
8270 PR cli/15718
8271 * infcall.c: Include event-top.h.
8272 (run_inferior_call): Call async_disable_stdin if needed.
8273
99619bea
PA
82742014-03-20 Pedro Alves <palves@redhat.com>
8275
8276 * infrun.c (prepare_to_proceed): Delete.
8277 (thread_still_needs_step_over): New function.
8278 (find_thread_needs_step_over): New function.
8279 (proceed): If the current thread needs a step-over, set its
8280 steping_over_breakpoint flag. Adjust to use
8281 find_thread_needs_step_over instead of prepare_to_proceed.
8282 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
8283 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
8284 breakpoint.
8285 (switch_back_to_stepped_thread): Step over breakpoints of all
8286 threads not the stepping thread, before switching back to the
8287 stepping thread.
8288
2adfaa28
PA
82892014-03-20 Pedro Alves <palves@redhat.com>
8290
8291 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
8292 extern.
8293 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
8294 * infrun.c (saved_singlestep_ptid)
8295 (stepping_past_singlestep_breakpoint): Delete.
8296 (resume): Remove stepping_past_singlestep_breakpoint handling.
8297 (proceed): Store the prev_pc of the stepping thread too.
8298 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
8299 singlestep_pc.
8300 (enum infwait_states): Delete infwait_thread_hop_state.
8301 (struct execution_control_state) <hit_singlestep_breakpoint>: New
8302 field.
8303 (handle_inferior_event): Adjust.
8304 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
8305 handling and the thread-hop code. Before removing single-step
8306 breakpoints, check whether the thread hit a single-step breakpoint
8307 of another thread. If it did, the trap is not a random signal.
8308 (switch_back_to_stepped_thread): If the event thread hit a
8309 single-step breakpoint, unblock it before switching to the
8310 stepping thread. Handle the case of the stepped thread having
8311 advanced already.
8312 (keep_going): Handle the case of the current thread moving past a
8313 single-step breakpoint.
8314
31e77af2
PA
83152014-03-20 Pedro Alves <palves@redhat.com>
8316
8317 PR breakpoints/7143
8318 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
8319 are being stepped over.
8320 (breakpoint_address_match): Make extern.
8321 * breakpoint.h (breakpoint_address_match): New declaration.
8322 * inferior.h (stepping_past_instruction_at): New declaration.
8323 * infrun.c (struct step_over_info): New type.
8324 (step_over_info): New global.
8325 (set_step_over_info, clear_step_over_info)
8326 (stepping_past_instruction_at): New functions.
8327 (handle_inferior_event): Clear the step-over info when
8328 trap_expected is cleared.
8329 (resume): Remove now stale comment.
8330 (clear_proceed_status): Clear step-over info.
8331 (proceed): Adjust step-over handling to set or clear the step-over
8332 info instead of removing all breakpoints.
8333 (handle_signal_stop): When setting up a thread-hop, don't remove
8334 breakpoints here.
8335 (stop_stepping): Clear step-over info.
8336 (keep_going): Adjust step-over handling to set or clear step-over
8337 info and then always inserting breakpoints, instead of removing
8338 all breakpoints when stepping over one.
8339
b9f437de
PA
83402014-03-20 Pedro Alves <palves@redhat.com>
8341
8342 * infrun.c (previous_inferior_ptid): Adjust comment.
8343 (deferred_step_ptid): Delete.
8344 (infrun_thread_ptid_changed, prepare_to_proceed)
8345 (init_wait_for_inferior): Adjust.
8346 (handle_signal_stop): Delete deferred_step_ptid handling.
8347
06c868a8
JK
83482014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
8349
8350 PR gdb/15358
8351 * defs.h (sync_quit_force_run): New declaration.
8352 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
8353 * event-top.c (async_sigterm_handler): New declaration.
8354 (async_sigterm_token): New variable.
8355 (async_init_signals): Create also async_sigterm_token.
8356 (async_sigterm_handler): New function.
8357 (sync_quit_force_run): New variable.
8358 (handle_sigterm): Replace quit_force call by other calls.
8359 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
8360
dea80df0
MR
83612014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
8362
8363 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
8364 offset into SPE pseudo registers.
8365
0c7e1a46
PA
83662014-03-18 Pedro Alves <palves@redhat.com>
8367
8368 PR gdb/13860
8369 * inferior.h (print_stop_event): Declare.
8370 * infrun.c (print_stop_event): New, factored out from ...
8371 (normal_stop): ... this.
8372 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
8373 of bpstat_print/print_stack_frame.
8374
9c1fcd01
TT
83752014-03-17 Tom Tromey <tromey@redhat.com>
8376
8377 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
8378
11aa919a
PMR
83792014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
8380
8381 * ada-lang.c (decode_constrained_packed_array): Perform a
8382 minimal coercion for reference with coerce_ref instead of
8383 ada_coerce_ref.
8384
d4ccb5e0
TG
83852014-03-17 Tristan Gingold <gingold@adacore.com>
8386
8387 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
8388 (darwin_solib_create_inferior_hook): Emit a warning if version
8389 is unhandled.
8390
49840f2a
UW
83912014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
8392
8393 * python/py-value.c (get_field_flag): Cast flag_name argument to
8394 PyObject_GetAttrString to support Python 2.4.
8395
ed4123e5
JK
83962014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8397
8398 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
8399 (Global Maintainers): Remove Jan Kratochvil.
8400
d6b64346
PA
84012014-03-14 Pedro Alves <palves@redhat.com>
8402
8403 * inferior.h (terminal_ours_for_output): Rename to ...
8404 (child_terminal_ours_for_output): ... this.
8405 (terminal_save_ours): Rename to ...
8406 (child_terminal_save_ours): ... this.
8407 (terminal_ours): Rename to ...
8408 (child_terminal_ours): ... this.
8409 (terminal_inferior): Rename to ...
8410 (child_terminal_inferior): ... this.
8411 (terminal_init_inferior): Rename to ...
8412 (child_terminal_init_inferior): ... this.
8413 (terminal_init_inferior_with_pgrp): Rename to ...
8414 (child_terminal_init_inferior_with_pgrp): ... this.
8415 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
8416 (child_terminal_init_with_pgrp): ... this.
8417 (terminal_save_ours): Rename to ...
8418 (child_terminal_save_ours): ... this.
8419 (terminal_init_inferior): Rename to ...
8420 (child_terminal_init): ... this. Adjust.
8421 (terminal_inferior): Rename to ...
8422 (child_terminal_inferior): ... this.
8423 (terminal_ours_for_output): Rename to ...
8424 (child_terminal_ours_for_output): ... this. Adjust.
8425 (terminal_ours): Rename to ...
8426 (child_terminal_ours): ... this.
8427 (terminal_ours_1): Rename to ...
8428 (child_terminal_ours_1): ... this. Adjust.
8429 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
8430 * windows-nat.c (do_initial_windows_stuff): Adjust.
8431 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
8432 (gnu_terminal_init): ... this. Adjust.
8433 (gnu_target): Adjust.
8434 * inf-child.c (inf_child_target): Adjust.
8435
5a1e8c7a
DE
84362014-03-13 Doug Evans <xdje42@gmail.com>
8437
8438 PR guile/16612
8439 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
8440 new eq?-hashtab.
8441
350e1a76
DE
84422014-03-13 Doug Evans <xdje42@gmail.com>
8443
8444 * value.c (record_latest_value): Call release_value_or_incref
8445 instead of release_value.
8446
a69900ae
PA
84472014-03-13 Pedro Alves <palves@redhat.com>
8448
8449 * procfs.c (procfs_target): Don't override to_shortname,
8450 to_longname or to_doc.
8451
5db9f0bd
PA
84522014-03-13 Pedro Alves <palves@redhat.com>
8453
8454 * inf-child.c (inf_child_open, inf_child_target): Don't mention
8455 Unix in user visible strings.
8456
5e3a2c38
SS
84572014-03-12 Stan Shebs <stan@codesourcery.com>
8458
8459 * gdbtypes.h: Annotate comments for Doxygen, add a page
8460 block comment with some general info.
8461
8bc2fe48
PA
84622014-03-12 Pedro Alves <palves@redhat.com>
8463
8464 * infcmd.c (prepare_execution_command): New function, factored out
8465 from several execution commands.
8466 (run_command_1, continue_command, step_1, jump_command)
8467 (signal_command, until_command, advance_command, finish_command)
8468 (attach_command): Use prepare_execution_command.
8469
638c5f49
OJ
84702014-03-12 Omair Javaid <omair.javaid@linaro.org>
8471
8472 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
8473 (MAX_BPTS): Define.
8474 (MAX_WPTS): Define.
8475 (struct arm_linux_thread_points): Removed.
8476 (struct arm_linux_process_info): New.
8477 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
8478 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
8479 (arm_linux_find_breakpoints_by_tid): Removed.
8480 (struct arch_lwp_info): New.
8481 (arm_linux_find_process_pid): New functions.
8482 (arm_linux_add_process): New functions.
8483 (arm_linux_process_info_get): New functions.
8484 (arm_linux_forget_process): New function.
8485 (arm_linux_get_debug_reg_state): New function.
8486 (struct update_registers_data): New.
8487 (update_registers_callback): New function.
8488 (arm_linux_insert_hw_breakpoint1): Updated.
8489 (arm_linux_remove_hw_breakpoint1): Updated.
8490 (arm_linux_insert_hw_breakpoint): Updated.
8491 (arm_linux_remove_hw_breakpoint): Updated.
8492 (arm_linux_insert_watchpoint): Updated.
8493 (arm_linux_remove_watchpoint): Updated.
8494 (arm_linux_new_thread): Updated.
8495 (arm_linux_prepare_to_resume): New function.
8496 (arm_linux_new_fork): New function.
8497 (_initialize_arm_linux_nat): Updated.
8498
6d03af93
PA
84992014-03-12 Pedro Alves <palves@redhat.com>
8500
8501 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
8502
b3ccfe11
TT
85032014-03-12 Tom Tromey <tromey@redhat.com>
8504
8505 * inf-child.c (return_zero): New function.
8506 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
8507 * aix-thread.c (aix_thread_inferior_created): New function.
8508 (aix_thread_attach): Remove.
8509 (init_aix_thread_ops): Don't set to_attach.
8510 (_initialize_aix_thread): Register inferior_created observer.
8511 * corelow.c (init_core_ops): Don't set to_attach or
8512 to_create_inferior.
8513 * exec.c (init_exec_ops): Don't set to_attach or
8514 to_create_inferior.
8515 * infcmd.c (run_command_1): Use find_run_target. Make direct
8516 target calls.
8517 (attach_command): Use find_attach_target. Make direct target
8518 calls.
8519 * record-btrace.c (init_record_btrace_ops): Don't set
8520 to_create_inferior.
8521 * record-full.c (record_full_can_async_p, record_full_is_async_p):
8522 Remove.
8523 (init_record_full_ops, init_record_full_core_ops): Update. Don't
8524 set to_create_inferior.
8525 * target.c (complete_target_initialization): Add assertion.
8526 (target_create_inferior): Remove.
8527 (find_default_attach, find_default_create_inferior): Remove.
8528 (find_attach_target, find_run_target): New functions.
8529 (find_default_is_async_p, find_default_can_async_p)
8530 (target_supports_non_stop, target_attach): Remove.
8531 (init_dummy_target): Don't set to_create_inferior or
8532 to_supports_non_stop.
8533 * target.h (struct target_ops) <to_attach>: Add comment. Remove
8534 TARGET_DEFAULT_FUNC.
8535 <to_create_inferior>: Add comment.
8536 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
8537 TARGET_DEFAULT_RETURN.
8538 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
8539 (find_attach_target, find_run_target): Declare.
8540 (target_create_inferior): Remove.
8541 (target_has_execution_1): Update comment.
8542 (target_supports_non_stop): Remove.
8543 * target-delegates.c: Rebuild.
8544
91f83b02
PA
85452014-03-12 Pedro Alves <palves@redhat.com>
8546
8547 * inf-child.h: Update comment to not mention Unix.
8548
f1aea813
PA
85492014-03-12 Pedro Alves <palves@redhat.com>
8550
8551 * inf-child.c: Update top comment to not mention Unix. Add
8552 generic comment describing how this target is meant to be used.
8553 (inf_child_post_attach, inf_child_post_startup_inferior)
8554 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
8555 Unix in comment.
8556
ee8e9165
PA
85572014-03-12 Pedro Alves <palves@redhat.com>
8558
8559 * nto-procfs.c: Include inf-child.h.
8560 (procfs_ops): Delete global.
8561 (procfs_can_run): Delete method.
8562 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
8563 target pointer instead of referencing procfs_ops.
8564 (procfs_prepare_to_store): Delete.
8565 (init_procfs_ops): Delete function.
8566 (procfs_target): New function, based on init_procfs_ops, but
8567 inherit inf_child_target.
8568 (_initialize_procfs): Use procfs_target.
8569
51a9c8c5
PA
85702014-03-12 Pedro Alves <palves@redhat.com>
8571
8572 * windows-nat.c: Include inf-child.h.
8573 (windows_ops): Delete global.
8574 (windows_open, windows_prepare_to_store, windows_can_run): Delete
8575 methods.
8576 (init_windows_ops): Delete function.
8577 (windows_target): New function, based on init_windows_ops, but
8578 inherit inf_child_target.
8579 (_initialize_windows_nat): Use windows_target. Install x86
8580 specific target methods here.
8581
c1966e26
DE
85822014-03-10 Doug Evans <xdje42@gmail.com>
8583
8584 * guile/guile.c (call_initialize_gdb_module): New function.
8585 (initialize_guile): Replace call to scm_init_guile with call to
8586 scm_with_guile.
8587
023db19c
JB
85882014-03-10 Joel Brobecker <brobecker@adacore.com>
8589
8590 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
8591 in call to TYPE_CODE macro.
8592
5ec18f2b
JG
85932014-03-10 Jerome Guitton <guitton@adacore.com>
8594
8668be63
JB
8595 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
8596 Resolve tagged types to full view.
5ec18f2b 8597
7d03f2eb
HZ
85982014-03-10 Hui Zhu <hui@codesourcery.com>
8599
8600 * target.h (target_insert_breakpoint): Remove "hardware" from its
8601 comments.
8602
c5164cbc
DE
86032014-03-07 Doug Evans <dje@google.com>
8604
8605 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
8606
c4a3fee2
DE
86072014-03-07 Doug Evans <dje@google.com>
8608
8609 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
8610 Remove unused local comp_dir_attr. Assert exactly one of
8611 stub_comp_unit_die, stub_comp_dir is non-NULL.
8612
3156469c
JB
86132014-03-07 Joel Brobecker <brobecker@adacore.com>
8614
8615 * target.h (complete_target_initialization, add_target):
8616 Add comment.
8617
c1a7b7c6
PA
86182014-03-07 Pedro Alves <palves@redhat.com>
8619
8620 * go32-nat.c: Include inf-child.h.
8621 (go32_ops): Delete global.
8622 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
8623 Delete methods.
8624 (go32_create_inferior): Push the passed in target pointer instead
8625 of referencing go32_ops.
8626 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
8627 (go32_target): New function, based on init_go32_ops, but inherit
8628 inf_child_target.
8629 (_initialize_go32_nat): Use go32_target. Move parts of
8630 init_go32_ops here.
8631
d3c1a85f
JB
86322014-03-06 Joel Brobecker <brobecker@adacore.com>
8633
8634 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
8635 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
8636 SYMBOL_VALUE_ADDRESS.
8637 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
8638
5fa1d40e
YQ
86392014-03-06 Yao Qi <yao@codesourcery.com>
8640
8641 * breakpoint.c (get_tracepoint_by_number): Remove argument
8642 optional_p. All callers updated. Adjust comments. Update
8643 output message.
8644 * breakpoint.h (get_tracepoint_by_number): Update declaration.
8645
0c13193f
YQ
86462014-03-06 Yao Qi <yao@codesourcery.com>
8647
8648 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
8649 early if get_number returns zero. Use 'p' instead of 'args'.
8650
2217da06
YQ
86512014-03-06 Yao Qi <yao@codesourcery.com>
8652
8653 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
8654 message.
8655
cc3da688
YQ
86562014-03-06 Yao Qi <yao@codesourcery.com>
8657
8658 PR breakpoints/16508
8659 * tracepoint.c (check_trace_running): New function.
8660 (trace_find_command): Move code to check_trace_running and
8661 call check_trace_running.
8662 (trace_find_pc_command): Likewise.
8663 (trace_find_tracepoint_command): Likewise.
8664 (trace_find_line_command): Likewise.
8665 (trace_find_range_command): Likewise.
8666 * tracepoint.h (check_trace_running): Likewise.
8667 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
8668
6a5f844b
YQ
86692014-03-06 Yao Qi <yao@codesourcery.com>
8670
8671 * target.h (struct target_ops) <to_traceframe_info>: Use
8672 TARGET_DEFAULT_NORETURN (tcomplain ()).
8673 * target-delegates.c: Regenerated.
8674
0f26cec1
PA
86752014-03-05 Pedro Alves <palves@redhat.com>
8676
8677 PR gdb/16575
8678 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
8679 void. Update comment.
8680 (dcache_xfer_memory): Delete.
8681 (dcache_read_memory_partial): New, based on the read bits of
8682 dcache_xfer_memory.
8683 (dcache_update): Add status parameter. Use ULONGEST for len, and
8684 adjust. Discard cache lines if the reason for the update was
8685 error.
8686 * dcache.h (dcache_xfer_memory): Delete declaration.
8687 (dcache_read_memory_partial): New declaration.
8688 (dcache_update): Update prototype.
8689 * target.c (raw_memory_xfer_partial): Update the dcache here.
8690 (memory_xfer_partial_1): Don't handle dcache writes here.
8691
b2b255bd
MF
86922014-03-05 Mike Frysinger <vapier@gentoo.org>
8693
8694 * remote-sim.c (gdbsim_load): Add const to prog.
8695
5d9cf8a4
TT
86962014-03-03 Tom Tromey <tromey@redhat.com>
8697
8698 * elfread.c (probe_key): Change to bfd_data.
8699 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
8700 now per-BFD, not per-objfile.
8701 * stap-probe.c (stap_probe_destroy): Update comment.
8702 (handle_stap_probe): Allocate on the per-BFD obstack.
8703
729662a5
TT
87042014-03-03 Tom Tromey <tromey@redhat.com>
8705
8706 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
8707 * breakpoint.c (create_longjmp_master_breakpoint): Use
8708 get_probe_address.
8709 (add_location_to_breakpoint, bkpt_probe_insert_location)
8710 (bkpt_probe_remove_location): Update.
8711 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
8712 * elfread.c (elf_symfile_relocate_probe): Remove.
8713 (elf_probe_fns): Update.
8714 (insert_exception_resume_breakpoint): Change type of "probe"
8715 parameter to bound_probe.
8716 (check_exception_resume): Update.
8717 * objfiles.c (objfile_relocate1): Don't relocate probes.
8718 * probe.c (bound_probe_s): New typedef.
8719 (parse_probes): Use get_probe_address. Set sal's objfile.
8720 (find_probe_by_pc): Return a bound_probe.
8721 (collect_probes): Return a VEC(bound_probe_s).
8722 (compare_probes): Update.
8723 (gen_ui_out_table_header_info): Change type of "probes"
8724 parameter. Update.
8725 (info_probes_for_ops): Update.
8726 (get_probe_address): New function.
8727 (probe_safe_evaluate_at_pc): Update.
8728 * probe.h (struct probe_ops) <get_probe_address>: New field.
8729 <set_semaphore, clear_semaphore>: Add objfile parameter.
8730 (struct probe) <objfile>: Remove field.
8731 <arch>: New field.
8732 <address>: Update comment.
8733 (struct bound_probe): New.
8734 (find_probe_by_pc): Return a bound_probe.
8735 (get_probe_address): Declare.
8736 * solib-svr4.c (struct probe_and_action) <address>: New field.
8737 (hash_probe_and_action, equal_probe_and_action): Update.
8738 (register_solib_event_probe): Add address parameter.
8739 (solib_event_probe_at): Update.
8740 (svr4_create_probe_breakpoints): Add objfile parameter. Use
8741 get_probe_address.
8742 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
8743 (stap_get_probe_address): New function.
8744 (stap_can_evaluate_probe_arguments, compute_probe_arg)
8745 (compile_probe_arg): Update.
8746 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
8747 address.
8748 (handle_stap_probe): Don't relocate the probe.
8749 (stap_relocate): Remove.
8750 (stap_gen_info_probes_table_values): Update.
8751 (stap_probe_ops): Remove stap_relocate.
8752 * symfile-debug.c (debug_sym_relocate_probe): Remove.
8753 (debug_sym_probe_fns): Update.
8754 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
8755 * symtab.c (init_sal): Use memset.
8756 * symtab.h (struct symtab_and_line) <objfile>: New field.
8757 * tracepoint.c (start_tracing, stop_tracing): Update.
8758
ff887920
TT
87592014-03-03 Tom Tromey <tromey@redhat.com>
8760
8761 * probe.h (parse_probes, find_probe_by_pc)
8762 (find_probes_in_objfile): Fix comments.
8763
f0407826
DE
87642014-03-02 Doug Evans <xdje42@gmail.com>
8765
8766 * infrun.c (handle_signal_stop): Replace test for
8767 TARGET_WAITKIND_STOPPED with an assert.
8768
35e6a711
DE
87692014-03-02 Doug Evans <xdje42@gmail.com>
8770
8771 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
8772
667f9d0b
DE
87732014-03-02 Doug Evans <xdje42@gmail.com>
8774
8775 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
8776
dc92ace0
MK
87772014-03-01 Mark Kettenis <kettenis@gnu.org>
8778
8779 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
8780
a900370f
MK
87812014-03-01 Mark Kettenis <kettenis@gnu.org>
8782
8783 * i386obsd-nat.c: Include "obsd-nat.h".
8784 (_initialize_i386obsd_nat): Call obsd_add_target instead of
8785 add_target.
8786 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8787
b72a7981
MK
87882014-03-01 Mark Kettenis <kettenis@gnu.org>
8789
8790 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
8791
96c70aba
MK
87922014-03-01 Mark Kettenis <kettenis@gnu.org>
8793
8794 * mips64obsd-nat.c: Include "obsd-nath".
8795 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
8796 add_target
8797 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8798
874a80af
MK
87992014-03-01 Mark Kettenis <kettenis@gnu.org>
8800
8fd408f1
MK
8801 * amd64obsd-nat.c: Include "obsd-nat,h.
8802 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
8803 add_target.
874a80af
MK
8804 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8805
9cf95373
SC
88062014-02-28 Siva Chandra Reddy <sivachandra@google.com>
8807
8808 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
8809 (find_overload_match): Update call to find_oload_champ.
8810 (find_oload_champ_namespace_loop): Likewise
8811
863e4da4
MK
88122014-02-28 Mark Kettenis <kettenis@gnu.org>
8813
025cac40
MK
8814 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
8815
1ed586ce
MK
8816 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
8817 * config/sparc/obsd64.mh: New file.
8818 * sparc64obsd-nat.c: New file.
8819
863e4da4
MK
8820 * obsd-nat.h: New file.
8821 * obsd-nat.c: New file.
8822 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
8823 (ALLDEPFILES): Add obsd-nat.c.
8824
89de4da4
TT
88252014-02-28 Tom Tromey <tromey@redhat.com>
8826
8827 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
8828 * cli-out.h (cli_ui_out_impl): Now const.
8829 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
8830 * ui-out.c (struct ui_out) <impl>: Now const.
8831 (default_ui_out_impl): Now const.
8832 (ui_out_new): Make 'impl' parameter const.
8833 * ui-out.h (ui_out_new): Update.
8834
c725e7b6
MK
88352014-02-27 Mark Kettenis <kettenis@gnu.org>
8836
8837 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
8838
670b46b3
MK
88392014-02-27 Mark Kettenis <kettenis@gnu.org>
8840
8841 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
8842
c91550fc
JK
88432014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
8844
8845 Additional PR 8882 fix.
8846 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
8847
2fa0369e
PA
88482014-02-27 Pedro Alves <palves@redhat.com>
8849
8850 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
8851 isn't set.
8852
d632a097
PA
88532014-02-27 Pedro Alves <palves@redhat.com>
8854
8855 PR 12702
8856 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
8857 * nat/linux-waitpid.c: Include string.h.
8858 (status_to_str): Moved here and made extern.
8859 * nat/linux-waitpid.h (status_to_str): New declaration.
8860
2ebd5a35
HZ
88612014-02-27 Hui Zhu <hui@codesourcery.com>
8862
8863 PR 12702
8864 * infrun.c (ptid_match): Move ...
8865 * common/ptid.c (ptid_match): ... here.
8866 * inferior.h (ptid_match): Move ...
8867 * common/ptid.h (ptid_match): ... here.
8868
3cdd631f
MK
88692014-02-27 Mark Kettenis <kettenis@gnu.org>
8870
8871 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
8872 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
8873 gdb_target_obs.
8874
bee30a64
MK
88752014-02-27 Mark Kettenis <kettenis@gnu.org>
8876
8877 * obsd-tdep.c (obsd_auxv_parse): New function.
8878 (obsd_init_abi): Set auxv_parse.
27a48a92
MK
8879
8880 * gdbarch.sh (auxv_parse): New.
8881 * gdbarch.h: Regenerated.
8882 * gdbarch.c: Regenerated.
8883 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
8884
7a5a839f
LC
88852014-02-26 Ludovic Courtès <ludo@gnu.org>
8886
8887 * guile/scm-value.c (gdbscm_history_append_x): New function.
8888 (value_functions): Add it.
8889
31aa7e4e
JB
88902014-02-27 Joel Brobecker <brobecker@adacore.com>
8891
8892 * dwarf2read.c (attr_value_as_address): New function.
8893 (dwarf2_find_base_address, read_call_site_scope): Use
8894 attr_value_as_address in place of DW_ADDR.
8895 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
8896 the low and high addresses. Slight rework of the handling
8897 of the high pc being a constant form, and limit it to
8898 DWARF verson 4 or higher.
8899 (dwarf2_record_block_ranges): Likewise.
8900 (read_partial_die): Likewise.
8901 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
8902
9b333ba3
TT
89032014-02-26 Tom Tromey <tromey@redhat.com>
8904
8905 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
8906
5f6cac40
TT
89072014-02-26 Tom Tromey <tromey@redhat.com>
8908
8909 * elfread.c (elf_read_minimal_symbols): Return early if
8910 minimal symbols have already been read. Add "ei" parameter.
8911 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
8912 * minsyms.c (prim_record_minimal_symbol_full): Update.
8913 * objfiles.h (struct objstats) <n_minsyms>: Move...
8914 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
8915 * symmisc.c (print_objfile_statistics): Update.
8916
2750ef27
TT
89172014-02-26 Tom Tromey <tromey@redhat.com>
8918
8919 * elfread.c (elf_read_minimal_symbols): New function, from
8920 elf_symfile_read.
8921 (elf_symfile_read): Call it.
8922
34643a32
TT
89232014-02-26 Tom Tromey <tromey@redhat.com>
8924
8925 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
8926 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
8927 (lookup_minimal_symbol_solib_trampoline)
8928 (lookup_minimal_symbol_by_pc_section_1)
8929 (lookup_minimal_symbol_and_objfile): Update.
8930 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
8931 Don't allocate a minimal symbol if minsyms have already been read.
8932 (build_minimal_symbol_hash_tables): Update.
8933 (install_minimal_symbols): Do nothing if minsyms already read.
8934 Use the per-BFD obstack.
8935 (terminate_minimal_symbol_table): Use the per-BFD obstack.
8936 * objfiles.c (allocate_objfile): Call
8937 terminate_minimal_symbol_table later.
8938 (have_minimal_symbols): Update.
8939 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
8940 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
8941 Move from struct objfile.
8942 <minsyms_read>: New field.
8943 (struct objfile) <msymbols, minimal_symbol_count,
8944 msymbol_hash, msymbol_demangled_hash>: Move.
8945 (ALL_OBJFILE_MSYMBOLS): Update.
8946 * symfile.c (read_symbols): Set minsyms_read.
8947 (reread_symbols): Update.
8948 * symmisc.c (dump_objfile, dump_msymbols): Update.
8949
2273f0ac
TT
89502014-02-26 Tom Tromey <tromey@redhat.com>
8951
8952 * minsyms.c (msymbols_sort): Remove.
8953 * minsyms.h (msymbols_sort): Remove.
8954 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
8955 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
8956 * elfread.c (elf_symtab_read): Don't add section offsets.
8957 * xcoffread.c (record_minimal_symbol): Don't add section offset
8958 to minimal symbol address.
8959 * somread.c (text_offset, data_offset): Remove.
8960 (som_symtab_read): Don't add section offsets to minimal symbol
8961 addresses.
8962 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
8963 Don't add section offsets to minimal symbols.
8964 * coffread.c (coff_symtab_read): Don't add section offsets
8965 to minimal symbol addresses.
8966 * machoread.c (macho_symtab_add_minsym): Don't add section offset
8967 to minimal symbol addresses.
8968 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
8969 section offset to minimal symbol addresses.
8970 * mdebugread.c (parse_partial_symbols): Don't add section
8971 offset to minimal symbol addresses.
8972 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
8973 offset to minimal symbol addresses.
8974
77e371c0
TT
89752014-02-26 Tom Tromey <tromey@redhat.com>
8976
8977 * ada-lang.c (ada_main_name): Update.
8978 (ada_add_standard_exceptions): Update.
8979 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
8980 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8981 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
8982 * auxv.c (ld_so_xfer_auxv): Update.
8983 * avr-tdep.c (avr_scan_prologue): Update.
8984 * ax-gdb.c (gen_var_ref): Update.
8985 * blockframe.c (get_pc_function_start)
8986 (find_pc_partial_function_gnu_ifunc): Update.
8987 * breakpoint.c (create_overlay_event_breakpoint)
8988 (create_longjmp_master_breakpoint)
8989 (create_std_terminate_master_breakpoint)
8990 (create_exception_master_breakpoint): Update.
8991 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8992 * c-valprint.c (c_val_print): Update.
8993 * coff-pe-read.c (add_pe_forwarded_sym): Update.
8994 * common/agent.c (agent_look_up_symbols): Update.
8995 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
8996 * dwarf2loc.c (call_site_to_target_addr): Update.
8997 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
8998 * elfread.c (elf_gnu_ifunc_record_cache)
8999 (elf_gnu_ifunc_resolve_by_got): Update.
9000 * findvar.c (default_read_var_value): Update.
9001 * frame.c (inside_main_func): Update.
9002 * frv-tdep.c (frv_frame_this_id): Update.
9003 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9004 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
9005 Update.
9006 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
9007 (hppa_hpux_find_dummy_bpaddr): Update.
9008 * hppa-tdep.c (hppa_symbol_address): Update.
9009 * infcmd.c (until_next_command): Update.
9010 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
9011 Update.
9012 * linespec.c (minsym_found, add_minsym): Update.
9013 * linux-nat.c (get_signo): Update.
9014 * linux-thread-db.c (inferior_has_bug): Update.
9015 * m32c-tdep.c (m32c_return_value)
9016 (m32c_m16c_address_to_pointer): Update.
9017 * m32r-tdep.c (m32r_frame_this_id): Update.
9018 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9019 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9020 * maint.c (maintenance_translate_address): Update.
9021 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
9022 (frob_address): New function.
9023 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
9024 frob_address. Rename parameter to "pc_in".
9025 (compare_minimal_symbols, compact_minimal_symbols): Use raw
9026 addresses.
9027 (find_solib_trampoline_target, minimal_symbol_upper_bound):
9028 Update.
9029 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9030 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
9031 * objc-lang.c (find_objc_msgsend): Update.
9032 * objfiles.c (objfile_relocate1): Update.
9033 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9034 * p-valprint.c (pascal_val_print): Update.
9035 * parse.c (write_exp_msymbol): Update.
9036 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
9037 (ppc_elfv2_skip_entrypoint): Update.
9038 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9039 * printcmd.c (build_address_symbolic, msym_info)
9040 (address_info): Update.
9041 * proc-service.c (ps_pglobal_lookup): Update.
9042 * psymtab.c (find_pc_sect_psymtab_closer)
9043 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
9044 Change msymbol parameter to bound_minimal_symbol.
9045 * ravenscar-thread.c (get_running_thread_id): Update.
9046 * remote.c (remote_check_symbols): Update.
9047 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
9048 address.
9049 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9050 * solib-dsbt.c (lm_base): Update.
9051 * solib-frv.c (lm_base, main_got): Update.
9052 * solib-irix.c (locate_base): Update.
9053 * solib-som.c (som_solib_create_inferior_hook)
9054 (link_map_start): Update.
9055 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
9056 * solib-svr4.c (elf_locate_base, enable_break): Update.
9057 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
9058 (flush_ea_cache): Update.
9059 * stabsread.c (define_symbol, scan_file_globals): Update.
9060 * stack.c (find_frame_funname): Update.
9061 * symfile-debug.c (debug_qf_expand_symtabs_matching)
9062 (debug_qf_find_pc_sect_symtab): Update.
9063 * symfile.c (simple_read_overlay_table)
9064 (simple_overlay_update): Update.
9065 * symfile.h (struct quick_symbol_functions)
9066 <find_pc_sect_symtab>: Change type of msymbol to
9067 bound_minimal_symbol.
9068 * symmisc.c (dump_msymbols): Update.
9069 * symtab.c (find_pc_sect_symtab_via_partial)
9070 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
9071 (search_symbols, print_msymbol_info): Update.
9072 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
9073 (MSYMBOL_VALUE_ADDRESS): Redefine.
9074 (BMSYMBOL_VALUE_ADDRESS): New macro.
9075 * tracepoint.c (scope_info): Update.
9076 * tui/tui-disasm.c (tui_find_disassembly_address)
9077 (tui_get_begin_asm_address): Update.
9078 * valops.c (find_function_in_inferior): Update.
9079 * value.c (value_static_field, value_fn_field): Update.
9080
3b7344d5
TT
90812014-02-26 Tom Tromey <tromey@redhat.com>
9082
9083 * ada-lang.c (ada_update_initial_language): Update.
9084 (ada_main_name, ada_has_this_exception_support): Update.
9085 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
9086 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9087 * arm-tdep.c (arm_skip_stub): Update.
9088 * auxv.c (ld_so_xfer_auxv): Update.
9089 * avr-tdep.c (avr_scan_prologue): Update.
9090 * ax-gdb.c (gen_var_ref): Update.
9091 * breakpoint.c (struct breakpoint_objfile_data)
9092 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
9093 type to bound_minimal_symbol.
9094 (create_overlay_event_breakpoint)
9095 (create_longjmp_master_breakpoint)
9096 (create_std_terminate_master_breakpoint)
9097 (create_exception_master_breakpoint): Update.
9098 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9099 * c-exp.y (classify_name): Update.
9100 * coffread.c (coff_symfile_read): Update.
9101 * common/agent.c (agent_look_up_symbols): Update.
9102 * d-lang.c (d_main_name): Update.
9103 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
9104 * dec-thread.c (enable_dec_thread): Update.
9105 * dwarf2loc.c (call_site_to_target_addr): Update.
9106 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
9107 * eval.c (evaluate_subexp_standard): Update.
9108 * findvar.c (struct minsym_lookup_data) <result>: Change type
9109 to bound_minimal_symbol.
9110 <objfile>: Remove.
9111 (minsym_lookup_iterator_cb, default_read_var_value): Update.
9112 * frame.c (inside_main_func): Update.
9113 * frv-tdep.c (frv_frame_this_id): Update.
9114 * gcore.c (call_target_sbrk): Update.
9115 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9116 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
9117 Update.
9118 * go-lang.c (go_main_name): Update.
9119 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
9120 (hppa_hpux_find_import_stub_for_addr): Update.
9121 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
9122 Update. Change return type.
9123 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
9124 type.
9125 * jit.c (jit_breakpoint_re_set_internal): Update.
9126 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
9127 Update.
9128 * linux-nat.c (get_signo): Update.
9129 * linux-thread-db.c (inferior_has_bug): Update
9130 * m32c-tdep.c (m32c_return_value)
9131 (m32c_m16c_address_to_pointer): Update.
9132 * m32r-tdep.c (m32r_frame_this_id): Update.
9133 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9134 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9135 * minsyms.c (lookup_minimal_symbol_internal): Rename to
9136 lookup_minimal_symbol. Change return type.
9137 (lookup_minimal_symbol): Remove.
9138 (lookup_bound_minimal_symbol): Update.
9139 (lookup_minimal_symbol_text): Change return type.
9140 (lookup_minimal_symbol_solib_trampoline): Change return type.
9141 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
9142 (lookup_minimal_symbol_solib_trampoline): Change return type.
9143 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9144 * objc-lang.c (lookup_objc_class, lookup_child_selector)
9145 (value_nsstring, find_imps): Update.
9146 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9147 * p-lang.c (pascal_main_name): Update.
9148 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
9149 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9150 * proc-service.c (ps_pglobal_lookup): Update.
9151 * ravenscar-thread.c (get_running_thread_msymbol): Change
9152 return type.
9153 (has_ravenscar_runtime, get_running_thread_id): Update.
9154 * remote.c (remote_check_symbols): Update.
9155 * sol-thread.c (ps_pglobal_lookup): Update.
9156 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9157 * solib-dsbt.c (lm_base): Update.
9158 * solib-frv.c (lm_base, frv_relocate_section_addresses):
9159 Update.
9160 * solib-irix.c (locate_base): Update.
9161 * solib-som.c (som_solib_create_inferior_hook)
9162 (som_solib_desire_dynamic_linker_symbols, link_map_start):
9163 Update.
9164 * solib-spu.c (spu_enable_break): Update.
9165 * solib-svr4.c (elf_locate_base, enable_break): Update.
9166 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
9167 (flush_ea_cache): Update.
9168 * stabsread.c (define_symbol): Update.
9169 * symfile.c (simple_read_overlay_table): Update.
9170 * symtab.c (find_pc_sect_line): Update.
9171 * tracepoint.c (scope_info): Update.
9172 * tui-disasm.c (tui_get_begin_asm_address): Update.
9173 * value.c (value_static_field): Update.
9174
40c1a007
TT
91752014-02-26 Tom Tromey <tromey@redhat.com>
9176
9177 * minsyms.c (prim_record_minimal_symbol_full): Use
9178 SET_MSYMBOL_VALUE_ADDRESS.
9179 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
9180 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
9181 SET_MSYMBOL_VALUE_ADDRESS.
9182 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
9183 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
9184
efd66ac6
TT
91852014-02-26 Tom Tromey <tromey@redhat.com>
9186
9187 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
9188 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
9189 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
9190 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
9191 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
9192 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
9193 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
9194 * ada-lang.c (ada_main_name): Update.
9195 (ada_lookup_simple_minsym): Update.
9196 (ada_make_symbol_completion_list): Update.
9197 (ada_add_standard_exceptions): Update.
9198 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
9199 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9200 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
9201 * arm-tdep.c (skip_prologue_function): Update.
9202 (arm_skip_stack_protector, arm_skip_stub): Update.
9203 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
9204 (arm_wince_skip_main_prologue): Update.
9205 * auxv.c (ld_so_xfer_auxv): Update.
9206 * avr-tdep.c (avr_scan_prologue): Update.
9207 * ax-gdb.c (gen_var_ref): Update.
9208 * block.c (call_site_for_pc): Update.
9209 * blockframe.c (get_pc_function_start): Update.
9210 (find_pc_partial_function_gnu_ifunc): Update.
9211 * breakpoint.c (create_overlay_event_breakpoint): Update.
9212 (create_longjmp_master_breakpoint): Update.
9213 (create_std_terminate_master_breakpoint): Update.
9214 (create_exception_master_breakpoint): Update.
9215 (resolve_sal_pc): Update.
9216 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9217 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
9218 Update.
9219 * c-valprint.c (c_val_print): Update.
9220 * coff-pe-read.c (add_pe_forwarded_sym): Update.
9221 * coffread.c (coff_symfile_read): Update.
9222 * common/agent.c (agent_look_up_symbols): Update.
9223 * dbxread.c (find_stab_function_addr): Update.
9224 (end_psymtab): Update.
9225 * dwarf2loc.c (call_site_to_target_addr): Update.
9226 (func_verify_no_selftailcall): Update.
9227 (tailcall_dump): Update.
9228 (call_site_find_chain_1): Update.
9229 (dwarf_expr_reg_to_entry_parameter): Update.
9230 * elfread.c (elf_gnu_ifunc_record_cache): Update.
9231 (elf_gnu_ifunc_resolve_by_got): Update.
9232 * f-valprint.c (info_common_command): Update.
9233 * findvar.c (read_var_value): Update.
9234 * frame.c (get_prev_frame_1): Update.
9235 (inside_main_func): Update.
9236 * frv-tdep.c (frv_skip_main_prologue): Update.
9237 (frv_frame_this_id): Update.
9238 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9239 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
9240 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
9241 (gnuv3_skip_trampoline): Update.
9242 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
9243 (hppa64_hpux_in_solib_call_trampoline): Update.
9244 (hppa_hpux_skip_trampoline_code): Update.
9245 (hppa64_hpux_search_dummy_call_sequence): Update.
9246 (hppa_hpux_find_import_stub_for_addr): Update.
9247 (hppa_hpux_find_dummy_bpaddr): Update.
9248 * hppa-tdep.c (hppa_symbol_address)
9249 (hppa_lookup_stub_minimal_symbol): Update.
9250 * i386-tdep.c (i386_skip_main_prologue): Update.
9251 (i386_pe_skip_trampoline_code): Update.
9252 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
9253 * infcall.c (get_function_name): Update.
9254 * infcmd.c (until_next_command): Update.
9255 * jit.c (jit_breakpoint_re_set_internal): Update.
9256 (jit_inferior_init): Update.
9257 * linespec.c (minsym_found): Update.
9258 (add_minsym): Update.
9259 * linux-fork.c (info_checkpoints_command): Update.
9260 * linux-nat.c (get_signo): Update.
9261 * linux-thread-db.c (inferior_has_bug): Update.
9262 * m32c-tdep.c (m32c_return_value): Update.
9263 (m32c_m16c_address_to_pointer): Update.
9264 (m32c_m16c_pointer_to_address): Update.
9265 * m32r-tdep.c (m32r_frame_this_id): Update.
9266 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9267 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9268 * maint.c (maintenance_translate_address): Update.
9269 * minsyms.c (add_minsym_to_hash_table): Update.
9270 (add_minsym_to_demangled_hash_table): Update.
9271 (msymbol_objfile): Update.
9272 (lookup_minimal_symbol): Update.
9273 (iterate_over_minimal_symbols): Update.
9274 (lookup_minimal_symbol_text): Update.
9275 (lookup_minimal_symbol_by_pc_name): Update.
9276 (lookup_minimal_symbol_solib_trampoline): Update.
9277 (lookup_minimal_symbol_by_pc_section_1): Update.
9278 (lookup_minimal_symbol_and_objfile): Update.
9279 (prim_record_minimal_symbol_full): Update.
9280 (compare_minimal_symbols): Update.
9281 (compact_minimal_symbols): Update.
9282 (build_minimal_symbol_hash_tables): Update.
9283 (install_minimal_symbols): Update.
9284 (terminate_minimal_symbol_table): Update.
9285 (find_solib_trampoline_target): Update.
9286 (minimal_symbol_upper_bound): Update.
9287 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9288 * mips-tdep.c (mips_stub_frame_sniffer): Update.
9289 (mips_skip_pic_trampoline_code): Update.
9290 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
9291 * objc-lang.c (selectors_info): Update.
9292 (classes_info): Update.
9293 (find_methods): Update.
9294 (find_imps): Update.
9295 (find_objc_msgsend): Update.
9296 * objfiles.c (objfile_relocate1): Update.
9297 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
9298 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9299 * p-valprint.c (pascal_val_print): Update.
9300 * parse.c (write_exp_msymbol): Update.
9301 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
9302 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
9303 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9304 * printcmd.c (build_address_symbolic): Update.
9305 (sym_info): Update.
9306 (address_info): Update.
9307 * proc-service.c (ps_pglobal_lookup): Update.
9308 * psymtab.c (find_pc_sect_psymtab_closer): Update.
9309 (find_pc_sect_psymtab): Update.
9310 * python/py-framefilter.c (py_print_frame): Update.
9311 * ravenscar-thread.c (get_running_thread_id): Update.
9312 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
9313 Update.
9314 * remote.c (remote_check_symbols): Update.
9315 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
9316 (rs6000_skip_trampoline_code): Update.
9317 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
9318 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9319 * solib-dsbt.c (lm_base): Update.
9320 * solib-frv.c (lm_base): Update.
9321 (main_got): Update.
9322 * solib-irix.c (locate_base): Update.
9323 * solib-som.c (som_solib_create_inferior_hook): Update.
9324 (som_solib_desire_dynamic_linker_symbols): Update.
9325 (link_map_start): Update.
9326 * solib-spu.c (spu_enable_break): Update.
9327 (ocl_enable_break): Update.
9328 * solib-svr4.c (elf_locate_base): Update.
9329 (enable_break): Update.
9330 * spu-tdep.c (spu_get_overlay_table): Update.
9331 (spu_catch_start): Update.
9332 (flush_ea_cache): Update.
9333 * stabsread.c (define_symbol): Update.
9334 (scan_file_globals): Update.
9335 * stack.c (find_frame_funname): Update.
9336 (frame_info): Update.
9337 * symfile.c (simple_read_overlay_table): Update.
9338 (simple_overlay_update): Update.
9339 * symmisc.c (dump_msymbols): Update.
9340 * symtab.c (fixup_section): Update.
9341 (find_pc_sect_line): Update.
9342 (skip_prologue_sal): Update.
9343 (search_symbols): Update.
9344 (print_msymbol_info): Update.
9345 (rbreak_command): Update.
9346 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
9347 (completion_list_objc_symbol): Update.
9348 (default_make_symbol_completion_list_break_on): Update.
9349 * tracepoint.c (scope_info): Update.
9350 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
9351 (tui_get_begin_asm_address): Update.
9352 * valops.c (find_function_in_inferior): Update.
9353 * value.c (value_static_field): Update.
9354 (value_fn_field): Update.
9355
50e65b17
TT
93562014-02-26 Tom Tromey <tromey@redhat.com>
9357
9358 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
9359 bound minimal symbols. Move code that knows about minsym
9360 table layout...
9361 * minsyms.c (minimal_symbol_upper_bound): ... here. New
9362 function.
9363 * minsyms.h (minimal_symbol_upper_bound): Declare.
9364 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
9365 minimal_symbol_upper_bound.
9366
1b588015
JB
93672014-02-27 Joel Brobecker <brobecker@adacore.com>
9368
9369 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
9370 Use the type's name if its basic type does not have a tag.
9371
dbb9c2b1
JB
93722014-02-27 Joel Brobecker <brobecker@adacore.com>
9373
9374 * dwarf2read.c (read_subrange_type): Add comment.
9375
55426c9d
JB
93762014-02-27 Joel Brobecker <brobecker@adacore.com>
9377
9378 * dwarf2read.c (update_enumeration_type_from_children): New
9379 function, mostly extracted from process_structure_scope.
9380 (read_enumeration_type): Call update_enumeration_type_from_children.
9381 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
9382 and flag_flag_enum fields.
9383
f2fce0ca
PA
93842014-02-26 Pedro Alves <palves@redhat.com>
9385
9386 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
9387 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
9388 to_xfer_partial method.
9389
7a44e40e
PA
93902014-02-26 Pedro Alves <palves@redhat.com>
9391
9392 * target.c (complete_target_initialization): Don't install
9393 default_xfer_partial as to_xfer_partial hook.
9394 (nomemory): Delete.
9395 (update_current_target): Don't INHERIT nor de_fault
9396 deprecated_xfer_memory. Delete de_fault macro.
9397 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
9398 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
9399 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
9400 field.
9401
bd265cd0
PA
94022014-02-26 Pedro Alves <palves@redhat.com>
9403
9404 * go32-nat.c (my_write_child): New function.
9405 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
9406 (go32_xfer_partial): New function.
9407 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
9408 Instead install a to_xfer_partial hook.
9409
9d46c4e5
PA
94102014-02-26 Pedro Alves <palves@redhat.com>
9411
9412 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
9413 to_xfer_partial helper. Rewrite.
9414 (procfs_xfer_partial): New function.
9415 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
9416 Install a to_xfer_partial hook.
9417
a1583b1f
PA
94182014-02-26 Pedro Alves <palves@redhat.com>
9419
9420 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
9421 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
9422 (m32r_xfer_partial): New function.
9423 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
9424 Install a to_xfer_partial hook.
9425
6df1b29f
PA
94262014-02-26 Pedro Alves <palves@redhat.com>
9427
9428 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
9429 helper.
9430 (mips_xfer_partial): New function.
9431 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
9432 hook. Install a to_xfer_partial hook.
9433
dc53a7ad
JB
94342014-02-26 Joel Brobecker <brobecker@adacore.com>
9435
9436 * gdbtypes.h (create_array_type_with_stride): Add declaration.
9437 * gdbtypes.c (create_array_type_with_stride): New function,
9438 renaming create_array_type, but with an added parameter
9439 called "bit_stride".
9440 (create_array_type): Re-implement using
9441 create_array_type_with_stride.
9442 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
9443 and DW_AT_bit_stride attributes.
9444
12ab52e9
PA
94452014-02-26 Pedro Alves <palves@redhat.com>
9446
9447 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
9448 task-specific breakpoints.
9449
d16461ae
PA
94502014-02-25 Pedro Alves <palves@redhat.com>
9451
9452 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
9453 handling of object == TARGET_OBJECT_UNWIND_TABLE.
9454
a8b16220
SS
94552014-02-25 Stan Shebs <stan@codesourcery.com>
9456
9457 * defs.h: Annotate comments for Doxygen.
9458
b9e795ee
TT
94592014-02-25 Tom Tromey <tromey@redhat.com>
9460
9461 * target.h (target_ignore): Don't declare.
9462 * target.c (target_ignore): Remove.
9463
849c862e
JK
94642014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
9465
9466 PR gdb/16626
9467 * auto-load.c (auto_load_objfile_script_1): Change filename to
9468 debugfile.
9469
475109d8
JB
94702014-02-25 Joel Brobecker <brobecker@adacore.com>
9471
9472 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
9473 documentation. Adjust prototype to match the target_ops
9474 to_xfer_partial method. Adjust implementation accordingly.
9475
e186c3bd
HZ
94762014-02-25 Hui Zhu <hui@codesourcery.com>
9477
9478 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
9479 to_traceframe_info.
9480
6d451942
KB
94812014-02-25 Kevin Buettner <kevinb@redhat.com>
9482
041ab8b4 9483 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
6d451942
KB
9484 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
9485 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
9486 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
9487 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
9488 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
9489 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
9490 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
9491 New constants.
9492 (rl78_register_type): Use a data pointer type for SP and
9493 new pseudo registers mentioned above. Use a 16 bit integer
9494 type for all other register pairs.
9495 (rl78_register_name, rl78_g10_register_name): Update for
9496 new pseudo registers.
9497 (rl78_pseudo_register_read): Likewise.
9498 (rl78_pseudo_register_write): Likewise.
9499 (rl78_dwarf_reg_to_regnum): Return register numbers representing
9500 to the newly added pseudo registers.
9501
eddf0bae
DE
95022014-02-24 Doug Evans <dje@google.com>
9503
9504 * value.c (record_latest_value): Fix comment.
9505 * printcmd.c (print_command_1): Remove code to handle -1 return from
9506 record_latest_value.
9507
e96027e0
PA
95082014-02-24 Pedro Alves <palves@redhat.com>
9509
9510 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
9511 deprecated_xfer_memory hook.
9512 (procfs_xfer_partial): Call procfs_xfer_memory instead
9513 of the deprecated_xfer_memory target hook.
9514 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
9515 helper.
9516
0837c976
YZ
95172014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
9518
9519 * windows-nat.c (windows_xfer_shared_libraries): Return
9520 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
9521 requested object is TARGET_OBJECT_LIBRARIES.
9522
bc113b4e
YQ
95232014-02-24 Yao Qi <yao@codesourcery.com>
9524
9525 * target.h (enum target_xfer_status)
9526 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
9527 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
9528 explicitly. New.
9529 * corefile.c (memory_error_message): User updated.
9530 * exec.c (section_table_read_available_memory): Likewise.
9531 * record-btrace.c (record_btrace_xfer_partial): Likewise.
9532 * target.c (target_xfer_status_to_string): Likewise.
9533 (raw_memory_xfer_partial): Likewise.
9534 (memory_xfer_partial_1, target_xfer_partial): Likewise.
9535 * valops.c (read_value_memory): Likewise.
9536 * exec.h: Update comments.
9537
01cb8804
YQ
95382014-02-24 Yao Qi <yao@codesourcery.com>
9539
9540 * target.c (target_xfer_status_to_string): Rename argument err
9541 to status.
9542 * target.h (target_xfer_status_to_string): Update declaration.
9543 Replace target_xfer_error_to_string with
9544 target_xfer_status_to_string in comment.
9545
93063aa6
YQ
95462014-02-24 Yao Qi <yao@codesourcery.com>
9547
9548 * mips-linux-nat.c (super_close): Update its type.
9549 (mips_linux_close): Pass 'self' to super_close.
9550
5c328c05
YQ
95512014-02-24 Yao Qi <yao@codesourcery.com>
9552
9553 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
9554 * corefile.c (read_memory): Adjusted.
9555 * target.c (target_write_with_progress): Adjusted.
9556
f73023dd
YQ
95572014-02-23 Yao Qi <yao@codesourcery.com>
9558
9559 Revert two patches:
9560
9561 2013-10-25 Yao Qi <yao@codesourcery.com>
9562
9563 * remote.c (remote_traceframe_info): Return early if
9564 traceframe is not selected.
9565
9566 2013-07-19 Yao Qi <yao@codesourcery.com>
9567
9568 * target.c (update_current_target): Change the default action
9569 of 'to_traceframe_info' from tcomplain to return_zero.
9570 * target.h (struct target_ops) <to_traceframe_info>: Add more
9571 comments.
9572
5a2eb0ef
YQ
95732014-02-23 Yao Qi <yao@codesourcery.com>
9574
9575 * valops.c (read_value_memory): Rewrite it. Call
9576 target_xfer_partial in a loop.
9577 * exec.h (section_table_available_memory): Remove declaration.
9578 Move comments to ...
9579 * exec.c (section_table_available_memory): ... here. Make it
9580 static.
9581
1ee79381
YQ
95822014-02-23 Yao Qi <yao@codesourcery.com>
9583
9584 * exec.c (section_table_read_available_memory): New function.
9585 * exec.h (section_table_read_available_memory): Declare.
9586 * ctf.c (ctf_xfer_partial): Call
9587 section_table_read_available_memory.
9588 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9589
1ca49d37
YQ
95902014-02-23 Yao Qi <yao@codesourcery.com>
9591
9592 * ctf.c (ctf_xfer_partial): Move code to ...
9593 * exec.c (exec_read_partial_read_only): ... it. New function.
9594 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9595 * tracefile.c: Include "exec.h".
9596 * exec.h (exec_read_partial_read_only): Declare.
9597
a283690e
YQ
95982014-02-23 Yao Qi <yao@codesourcery.com>
9599
9600 * tracefile-tfile.c (tfile_has_all_memory): Remove.
9601 (tfile_has_memory): Remove.
9602 (init_tfile_ops): Don't set fields to_has_all_memory and
9603 to_has_memory of tfile_ops.
9604 * tracefile.c (tracefile_has_all_memory): New function.
9605 (tracefile_has_memory): New function.
9606 (init_tracefile_ops): Initialize fields to_has_all_memory and
9607 to_has_memory of 'ops'.
9608
12e03cd0
YQ
96092014-02-23 Yao Qi <yao@codesourcery.com>
9610
9611 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
9612 (ctf_thread_alive, ctf_get_trace_status): Remove.
9613 (init_ctf_ops): Don't set some fields of ctf_ops. Call
9614 init_tracefile_ops.
9615 * tracefile-tfile.c (tfile_get_trace_status): Remove.
9616 (tfile_has_stack, tfile_has_registers): Remove.
9617 (tfile_thread_alive): Remove.
9618 (init_tfile_ops): Don't set some fields of tfile_ops. Call
9619 init_tracefile_ops.
9620 * tracefile.c (tracefile_has_stack): New function.
9621 (tracefile_has_registers): New function.
9622 (tracefile_thread_alive): New function.
9623 (tracefile_get_trace_status): New function.
9624 (init_tracefile_ops): New function.
9625 * tracefile.h (init_tracefile_ops): Declare.
9626
11395323
YQ
96272014-02-23 Yao Qi <yao@codesourcery.com>
9628
9629 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
9630 (O_LARGEFILE): Likewise.
9631 (tfile_ops): Likewise.
9632 (TRACE_HEADER_SIZE): Likewise.
9633 (trace_fd, trace_frames_offset, cur_offset): Likewise.
9634 (cur_data_size): Likewise.
9635 (tfile_read, tfile_open, tfile_interp_line): Likewise.
9636 (tfile_close, tfile_files_info): Likewise.
9637 (tfile_get_trace_status): Likewise.
9638 (tfile_get_tracepoint_status): Likewise.
9639 (tfile_get_traceframe_address): Likewise.
9640 (tfile_trace_find, match_blocktype): Likewise.
9641 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
9642 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
9643 (tfile_get_trace_state_variable_value): Likewise.
9644 (tfile_has_all_memory, tfile_has_memory): Likewise.
9645 (tfile_has_stack, tfile_has_registers): Likewise.
9646 (tfile_thread_alive, build_traceframe_info): Likewise.
9647 (tfile_traceframe_info, init_tfile_ops): Likewise.
9648 (_initialize_tracepoint): Don't call init_tfile_ops
9649 and add_target_with_completer.
9650 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
9651 exec.h, completer.h and filenames.h.
9652 (_initialize_tracefile_tfile): New function.
9653
7951c4eb
YQ
96542014-02-23 Yao Qi <yao@codesourcery.com>
9655
9656 * Makefile.in (REMOTE_OBS): Append tracefile.o and
9657 tracefile-tfile.o.
9658 (HFILES_NO_SRCDIR): Add tracefile.h.
9659 * ctf.c: Include "tracefile.h".
9660 * tracefile.h: New file.
9661 * tracefile.c: New file
9662 * tracefile-tfile.c: New file.
9663 * tracepoint.c: Include "tracefile.h".
9664 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
9665 (stop_reason_names): Add const.
9666 (trace_file_writer_xfree): Move it to tracefile.c.
9667 (trace_save, trace_save_command, trace_save_tfile): Likewise.
9668 (trace_save_ctf): Likewise.
9669 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
9670 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
9671 (tfile_write_header, tfile_write_regblock_type): Likewise.
9672 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
9673 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
9674 (tfile_write_raw_data, tfile_end): Likewise.
9675 (tfile_trace_file_writer_new): Likewise.
9676 (free_uploaded_tp): Make it extern.
9677 (free_uploaded_tsv): Make it extern.
9678 (_initialize_tracepoint): Move code to register command 'tsave'
9679 to tracefile.c.
9680 * tracepoint.h (stop_reason_names): Declare.
9681 (struct trace_frame_write_ops): Move it to tracefile.h.
9682 (struct trace_file_write_ops): Likewise.
9683 (struct trace_file_writer): Likewise.
9684 (free_uploaded_tsvs, free_uploaded_tps): Declare.
9685
184cd072
JK
96862014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9687
9688 PR gdb/16594
9689 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
9690 process name.
9691 (get_cores_used_by_process): New parameter num_cores, use it.
9692 (linux_xfer_osdata_processes): Pass num_cores to it.
9693 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
9694 process name.
9695
c63528fc
AK
96962014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
9697
9698 * target.c (memory_xfer_partial): Fix length arg in call to
9699 breakpoint_xfer_memory.
9700
d7b30f67
SDJ
97012014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9702
9703 PR tdep/16397
9704 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
9705 number comes after the + or - signs. Adjust length of register
9706 name to be extracted.
9707
8838afaf
TT
97082014-02-20 Tom Tromey <tromey@redhat.com>
9709
9710 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
9711 (ada_varobj_ops): Mark "extern".
9712
05227d14
TT
97132014-02-20 Tom Tromey <tromey@redhat.com>
9714
9715 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
9716
1254eefc
DE
97172014-02-20 Doug Evans <xdje42@gmail.com>
9718
9719 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
9720 All callers updated.
9721 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
9722 All callers updated.
9723 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
9724 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
9725
adde2bff
DE
97262014-02-20 lin zuojian <manjian2006@gmail.com>
9727 Joel Brobecker <brobecker@adacore.com>
9728 Doug Evans <xdje42@gmail.com>
9729
9730 PR symtab/16581
9731 * dwarf2read.c (struct die_info): New member in_process.
9732 (reset_die_in_process): New function.
9733 (process_die): Set it at the start, reset when returning.
9734 (inherit_abstract_dies): Only call process_die if origin_child_die
9735 not already being processed.
9736
3be75f87
JB
97372014-02-20 Joel Brobecker <brobecker@adacore.com>
9738
9739 * windows-nat.c (handle_unload_dll): Add function documentation.
9740 (do_initial_windows_stuff): Add comment explaining why we wait
9741 until after inferior initialization has finished before
9742 processing all DLLs.
9743
47f7ffdb
JB
97442014-02-20 Joel Brobecker <brobecker@adacore.com>
9745
9746 * windows-nat.c (get_module_name): Delete.
9747 (windows_get_exec_module_filename): New function, mostly
9748 inspired from get_module_name.
9749 (windows_pid_to_exec_file): Replace call to get_module_name
9750 by call to windows_get_exec_module_filename.
9751
1cd9feab
JB
97522014-02-20 Joel Brobecker <brobecker@adacore.com>
9753
9754 * windows-nat.c (handle_load_dll): Rewrite this function's
9755 introductory comment. Remove code using get_module_name
9756 to get the DLL's name.
9757
ea39ad35
JB
97582014-02-20 Joel Brobecker <brobecker@adacore.com>
9759
9760 * windows-nat.c (get_windows_debug_event): Ignore
9761 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
9762 if windows_initialization_done == 0.
9763 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
9764 Adjust implementation to always load all DLLs.
9765 (do_initial_windows_stuff): Replace call to
9766 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
9767
95060284
JB
97682014-02-20 Joel Brobecker <brobecker@adacore.com>
9769
9770 * windows-nat.c (_initialize_windows_nat): Deprecate the
9771 "dll-symbols" command. Turn the "add-shared-symbol-files"
9772 and "assf" aliases into commands, and deprecate them as well.
9773 * NEWS: Add entry explaining that "dll-symbols" and its two
9774 aliases are now deprecated.
9775
8d4fdb12
JB
97762014-02-20 Joel Brobecker <brobecker@adacore.com>
9777
9778 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
9779 new-line in debug string. Remove trailing spaces.
9780
1b281443
SS
97812014-02-19 Stan Shebs <stan@codesourcery.com>
9782
9783 * darwin-nat.c (darwin_xfer_partial): Fix return type.
9784
f7bd0f78
SC
97852014-02-19 Siva Chandra Reddy <sivachandra@google.com>
9786
9787 * NEWS: Add entry for the new feature
9788 * python/py-value.c (valpy_binop): Call value_x_binop for struct
9789 and class values.
9790
399ebc3d
SS
97912014-02-19 Stan Shebs <stan@codesourcery.com>
9792
9793 * MAINTAINERS: List Yao Qi as nios2 maintainer.
9794
c658158d
PA
97952014-02-19 Pedro Alves <palves@redhat.com>
9796
9797 * common/ptid.h (struct ptid): Mention that process_stratum
9798 targets should prefer ptid.lwp.
9799
ba348170
PA
98002014-02-19 Pedro Alves <palves@redhat.com>
9801
9802 * remote.c (remote_thread_alive, write_ptid, read_ptid)
9803 (read_ptid, remote_newthread_step, remote_threads_extra_info)
9804 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
9805 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
9806 store remote thread ids rather than ptid.tid.
9807 (_initialize_remote): Adjust.
9808
ac01945b
TT
98092014-02-19 Tom Tromey <tromey@redhat.com>
9810
9811 * target.c (target_get_unwinder): Rewrite.
9812 (target_get_tailcall_unwinder): Rewrite.
9813 * record-btrace.c (record_btrace_to_get_unwinder): New function.
9814 (record_btrace_to_get_tailcall_unwinder): New function.
9815 (init_record_btrace_ops): Update.
9816 * target.h (struct target_ops) <to_get_unwinder,
9817 to_get_tailcall_unwinder>: Now function pointers. Use
9818 TARGET_DEFAULT_RETURN.
9819
8476dc92
TT
98202014-02-19 Tom Tromey <tromey@redhat.com>
9821
9822 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
9823 argument.
9824 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
9825
c0eca49f
TT
98262014-02-19 Tom Tromey <tromey@redhat.com>
9827
9828 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
9829 directly.
9830 * target-delegates.c: Rebuild.
9831 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
9832 TARGET_DEFAULT_FUNC.
9833 * target.c (default_target_decr_pc_after_break): Rename from
9834 forward_target_decr_pc_after_break. Simplify.
9835 (target_decr_pc_after_break): Rely on delegation.
9836
596b6b39
TT
98372014-02-19 Tom Tromey <tromey@redhat.com>
9838
9839 * target.c (update_current_target): Do not INHERIT to_doc or
9840 to_magic. Do not de_fault to_open or to_close.
9841
b427c1bc
TT
98422014-02-19 Tom Tromey <tromey@redhat.com>
9843
9844 * gcore.h (objfile_find_memory_regions): Declare.
9845 * gcore.c (objfile_find_memory_regions): No longer static. Add
9846 "self" argument.
9847 (_initialize_gcore): Don't call exec_set_find_memory_regions.
9848 * exec.c: Include gcore.h.
9849 (exec_set_find_memory_regions): Remove.
9850 (exec_find_memory_regions): Remove.
9851 (exec_do_find_memory_regions): Remove.
9852 (init_exec_ops): Update.
9853 * defs.h (exec_set_find_memory_regions): Remove.
9854
9b144037
TT
98552014-02-19 Tom Tromey <tromey@redhat.com>
9856
9857 * target-delegates.c: Rebuild.
9858 * target.h (struct target_ops) <to_extra_thread_info,
9859 to_thread_name, to_pid_to_exec_file, to_get_section_table,
9860 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
9861 not 0, in TARGET_DEFAULT_RETURN.
9862
555bbdeb
TT
98632014-02-19 Tom Tromey <tromey@redhat.com>
9864
9865 * target.c (complete_target_initialization): Remove casts. Use
9866 return_zero_has_execution.
9867 (return_zero): Add "ignore" argument.
9868 (return_zero_has_execution): New function.
9869 (init_dummy_target): Remove casts. Use
9870 return_zero_has_execution.
9871
be4ddd36
TT
98722014-02-19 Tom Tromey <tromey@redhat.com>
9873
9874 * target.c (update_current_target): Update comments. Do not
9875 INHERIT to_stratum.
9876
2117c711
TT
98772014-02-19 Tom Tromey <tromey@redhat.com>
9878
9879 * arm-linux-nat.c (arm_linux_read_description): Delegate when
9880 needed.
9881 * corelow.c (core_read_description): Delegate when needed.
9882 * remote.c (remote_read_description): Delegate when needed.
9883 * target-delegates.c: Rebuild.
9884 * target.c (target_read_description): Rewrite.
9885 * target.h (struct target_ops) <to_read_description>: Update
9886 comment. Use TARGET_DEFAULT_RETURN.
9887
e88ef65c
TT
98882014-02-19 Tom Tromey <tromey@redhat.com>
9889
9890 * target-delegates.c: Rebuild.
9891 * target.c (update_current_target): Don't inherit or default
9892 to_can_run.
9893 (find_default_run_target): Check against delegate_can_run.
9894 * target.h (struct target_ops) <to_can_run>: Use
9895 TARGET_DEFAULT_RETURN.
9896
86a0854a
TT
98972014-02-19 Tom Tromey <tromey@redhat.com>
9898
9899 * target-delegates.c: Rebuild.
9900 * target.c (target_disconnect): Unconditionally delegate.
9901 * target.h (struct target_ops) <to_disconnect>: Use
9902 TARGET_DEFAULT_NORETURN.
9903
ee97f592
TT
99042014-02-19 Tom Tromey <tromey@redhat.com>
9905
9906 * record.c (record_stop): Unconditionally delegate.
9907 * target-delegates.c: Rebuild.
9908 * target.c (target_stop_recording): Unconditionally delegate.
9909 * target.h (struct target_ops) <to_stop_recording>: Use
9910 TARGET_DEFAULT_IGNORE.
9911
6dc7fcf4
TT
99122014-02-19 Tom Tromey <tromey@redhat.com>
9913
9914 * target-delegates.c: Rebuild.
9915 * target.c (target_enable_btrace): Unconditionally delegate.
9916 * target.h (struct target_ops) <to_enable_btrace>: Use
9917 TARGET_DEFAULT_NORETURN.
9918
eb5b20d4
TT
99192014-02-19 Tom Tromey <tromey@redhat.com>
9920
9921 * target-delegates.c: Rebuild.
9922 * target.c (target_read_btrace): Unconditionally delegate.
9923 * target.h (struct target_ops) <to_read_btrace>: Use
9924 TARGET_DEFAULT_NORETURN.
9925
9ace480d
TT
99262014-02-19 Tom Tromey <tromey@redhat.com>
9927
9928 * target-delegates.c: Rebuild.
9929 * target.c (target_teardown_btrace): Unconditionally delegate.
9930 * target.h (struct target_ops) <to_teardown_btrace>: Use
9931 TARGET_DEFAULT_NORETURN.
9932
8dc292d3
TT
99332014-02-19 Tom Tromey <tromey@redhat.com>
9934
9935 * target-delegates.c: Rebuild.
9936 * target.c (target_disable_btrace): Unconditionally delegate.
9937 * target.h (struct target_ops) <to_disable_btrace>: Use
9938 TARGET_DEFAULT_NORETURN.
9939
58a5184e
TT
99402014-02-19 Tom Tromey <tromey@redhat.com>
9941
9942 * target-delegates.c: Rebuild.
9943 * target.c (default_search_memory): New function.
9944 (simple_search_memory): Update comment.
9945 (target_search_memory): Unconditionally delegate.
9946 * target.h (struct target_ops) <to_search_memory>: Use
9947 TARGET_DEFAULT_FUNC.
9948
8de71aab
TT
99492014-02-19 Tom Tromey <tromey@redhat.com>
9950
9951 * auxv.c (default_auxv_parse): No longer static.
9952 (target_auxv_parse): Unconditionally delegate.
9953 * auxv.h (default_auxv_parse): Declare.
9954 * target-delegates.c: Rebuild.
9955 * target.c: Include auxv.h.
9956 * target.h (struct target_ops) <to_auxv_parse>: Use
9957 TARGET_DEFAULT_FUNC.
9958
6b2c5a57
TT
99592014-02-19 Tom Tromey <tromey@redhat.com>
9960
9961 * target-delegates.c: Rebuild.
9962 * target.c (target_memory_map): Unconditionally delegate.
9963 * target.h (struct target_ops) <to_memory_map>: Use
9964 TARGET_DEFAULT_RETURN.
9965
cbffc065
TT
99662014-02-19 Tom Tromey <tromey@redhat.com>
9967
9968 * target-delegates.c: Rebuild.
9969 * target.c (target_thread_alive): Unconditionally delegate.
9970 * target.h (struct target_ops) <to_thread_alive>: Use
9971 TARGET_DEFAULT_RETURN.
9972
f09e2107
TT
99732014-02-19 Tom Tromey <tromey@redhat.com>
9974
9975 * target-delegates.c: Rebuild.
9976 * target.c (target_save_record): Unconditionally delegate.
9977 * target.h (struct target_ops) <to_save_record>: Use
9978 TARGET_DEFAULT_NORETURN.
9979
07366925
TT
99802014-02-19 Tom Tromey <tromey@redhat.com>
9981
9982 * target-delegates.c: Rebuild.
9983 * target.c (target_delete_record): Unconditionally delegate.
9984 * target.h (struct target_ops) <to_delete_record>: Use
9985 TARGET_DEFAULT_NORETURN.
9986
dd2e9d25
TT
99872014-02-19 Tom Tromey <tromey@redhat.com>
9988
9989 * target-delegates.c: Rebuild.
9990 * target.c (target_record_is_replaying): Unconditionally
9991 delegate.
9992 * target.h (struct target_ops) <to_record_is_replaying>: Use
9993 TARGET_DEFAULT_RETURN.
9994
671e76cc
TT
99952014-02-19 Tom Tromey <tromey@redhat.com>
9996
9997 * target-delegates.c: Rebuild.
9998 * target.c (target_goto_record_begin): Unconditionally delegate.
9999 * target.h (struct target_ops) <to_goto_record_begin>: Use
10000 TARGET_DEFAULT_NORETURN.
10001
e9179bb3
TT
100022014-02-19 Tom Tromey <tromey@redhat.com>
10003
10004 * target-delegates.c: Rebuild.
10005 * target.c (target_goto_record_end): Unconditionally delegate.
10006 * target.h (struct target_ops) <to_goto_record_end>: Use
10007 TARGET_DEFAULT_NORETURN.
10008
05969c84
TT
100092014-02-19 Tom Tromey <tromey@redhat.com>
10010
10011 * target-delegates.c: Rebuild.
10012 * target.c (target_goto_record): Unconditionally delegate.
10013 * target.h (struct target_ops) <to_goto_record>: Use
10014 TARGET_DEFAULT_NORETURN.
10015
3679abfa
TT
100162014-02-19 Tom Tromey <tromey@redhat.com>
10017
10018 * target-delegates.c: Rebuild.
10019 * target.c (target_insn_history): Unconditionally delegate.
10020 * target.h (struct target_ops) <to_insn_history>: Use
10021 TARGET_DEFAULT_NORETURN.
10022
8444ab58
TT
100232014-02-19 Tom Tromey <tromey@redhat.com>
10024
10025 * target-delegates.c: Rebuild.
10026 * target.c (target_insn_history_from): Unconditionally delegate.
10027 * target.h (struct target_ops) <to_insn_history_from>: Use
10028 TARGET_DEFAULT_NORETURN.
10029
c29302cc
TT
100302014-02-19 Tom Tromey <tromey@redhat.com>
10031
10032 * target-delegates.c: Rebuild.
10033 * target.c (target_insn_history_range): Unconditionally delegate.
10034 * target.h (struct target_ops) <to_insn_history_range>: Use
10035 TARGET_DEFAULT_NORETURN.
10036
170049d4
TT
100372014-02-19 Tom Tromey <tromey@redhat.com>
10038
10039 * target-delegates.c: Rebuild.
10040 * target.c (target_call_history): Unconditionally delegate.
10041 * target.h (struct target_ops) <to_call_history>: Use
10042 TARGET_DEFAULT_NORETURN.
10043
16fc27d6
TT
100442014-02-19 Tom Tromey <tromey@redhat.com>
10045
10046 * target-delegates.c: Rebuild.
10047 * target.c (target_call_history_from): Unconditionally delegate.
10048 * target.h (struct target_ops) <to_call_history_from>: Use
10049 TARGET_DEFAULT_NORETURN.
10050
115d9817
TT
100512014-02-19 Tom Tromey <tromey@redhat.com>
10052
10053 * target-delegates.c: Rebuild.
10054 * target.c (target_call_history_range): Unconditionally delegate.
10055 * target.h (struct target_ops) <to_call_history_range>: Use
10056 TARGET_DEFAULT_NORETURN.
10057
eb276a6b
TT
100582014-02-19 Tom Tromey <tromey@redhat.com>
10059
10060 * target-delegates.c: Rebuild.
10061 * target.c (target_verify_memory): Unconditionally delegate.
10062 * target.h (struct target_ops) <to_verify_memory>: Use
10063 TARGET_DEFAULT_NORETURN.
10064
9e538d0d
TT
100652014-02-19 Tom Tromey <tromey@redhat.com>
10066
10067 * target-delegates.c: Rebuild.
10068 * target.c (target_core_of_thread): Unconditionally delegate.
10069 * target.h (struct target_ops) <to_core_of_thread>: Use
10070 TARGET_DEFAULT_RETURN.
10071
f6fb2925
TT
100722014-02-19 Tom Tromey <tromey@redhat.com>
10073
10074 * target-delegates.c: Rebuild.
10075 * target.c (target_flash_done): Unconditionally delegate.
10076 * target.h (struct target_ops) <to_flash_done>: Use
10077 TARGET_DEFAULT_NORETURN.
10078
e8a6c6ac
TT
100792014-02-19 Tom Tromey <tromey@redhat.com>
10080
10081 * target-delegates.c: Rebuild.
10082 * target.c (target_flash_erase): Unconditionally delegate.
10083 * target.h (struct target_ops) <to_flash_erase>: Use
10084 TARGET_DEFAULT_NORETURN.
10085
7e35c012
TT
100862014-02-19 Tom Tromey <tromey@redhat.com>
10087
10088 * target-delegates.c: Rebuild.
10089 * target.c (target_get_section_table): Unconditionally delegate.
10090 * target.h (struct target_ops) <to_get_section_table>: Use
10091 TARGET_DEFAULT_RETURN.
10092
770234d3
TT
100932014-02-19 Tom Tromey <tromey@redhat.com>
10094
10095 * target-delegates.c: Rebuild.
10096 * target.c (target_pid_to_str): Unconditionally delegate.
10097 (init_dummy_target): Don't initialize to_pid_to_str.
10098 (default_pid_to_str): Rename from dummy_pid_to_str.
10099 * target.h (struct target_ops) <to_pid_to_str>: Use
10100 TARGET_DEFAULT_FUNC.
10101
09b0dc2b
TT
101022014-02-19 Tom Tromey <tromey@redhat.com>
10103
10104 * target-delegates.c: Rebuild.
10105 * target.c (target_find_new_threads): Unconditionally delegate.
10106 * target.h (struct target_ops) <to_find_new_threads>: Use
10107 TARGET_DEFAULT_RETURN.
10108
7d4f8efa
TT
101092014-02-19 Tom Tromey <tromey@redhat.com>
10110
10111 * target-delegates.c: Rebuild.
10112 * target.c (target_program_signals): Unconditionally delegate.
10113 * target.h (struct target_ops) <to_program_signals>: Use
10114 TARGET_DEFAULT_IGNORE.
10115
035cad7f
TT
101162014-02-19 Tom Tromey <tromey@redhat.com>
10117
10118 * target-delegates.c: Rebuild.
10119 * target.c (target_pass_signals): Unconditionally delegate.
10120 * target.h (struct target_ops) <to_pass_signals>: Use
10121 TARGET_DEFAULT_IGNORE.
10122
8d657035
TT
101232014-02-19 Tom Tromey <tromey@redhat.com>
10124
10125 * target-delegates.c: Rebuild.
10126 * target.c (default_mourn_inferior): New function.
10127 (target_mourn_inferior): Unconditionally delegate.
10128 * target.h (struct target_ops) <to_mourn_inferior>: Use
10129 TARGET_DEFAULT_FUNC.
10130
098dba18
TT
101312014-02-19 Tom Tromey <tromey@redhat.com>
10132
10133 * target-delegates.c: Rebuild.
10134 * target.c (default_follow_fork): New function.
10135 (target_follow_fork): Unconditionally delegate.
10136 * target.h (struct target_ops) <to_follow_fork>: Use
10137 TARGET_DEFAULT_FUNC.
10138
423a4807
TT
101392014-02-19 Tom Tromey <tromey@redhat.com>
10140
10141 * target-delegates.c: Rebuild.
10142 * target.c (target_kill): Unconditionally delegate.
10143 * target.h (struct target_ops) <to_kill>: Use
10144 TARGET_DEFAULT_NORETURN.
10145
6c7e5e5c
TT
101462014-02-19 Tom Tromey <tromey@redhat.com>
10147
10148 * target-delegates.c: Rebuild.
10149 * target.c (target_masked_watch_num_registers): Unconditionally
10150 delegate.
10151 * target.h (struct target_ops) <to_masked_watch_num_registers>:
10152 Use TARGET_DEFAULT_RETURN.
10153
8b1c364c
TT
101542014-02-19 Tom Tromey <tromey@redhat.com>
10155
10156 * target-delegates.c: Rebuild.
10157 * target.c (target_remove_mask_watchpoint): Unconditionally
10158 delegate.
10159 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
10160 TARGET_DEFAULT_RETURN.
10161
cd4ae029
TT
101622014-02-19 Tom Tromey <tromey@redhat.com>
10163
10164 * target-delegates.c: Rebuild.
10165 * target.c (target_insert_mask_watchpoint): Unconditionally
10166 delegate.
10167 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
10168 TARGET_DEFAULT_RETURN.
10169
a134316b
TT
101702014-02-19 Tom Tromey <tromey@redhat.com>
10171
10172 * target-delegates.c: Rebuild.
10173 * target.c (target_ranged_break_num_registers): Unconditionally
10174 delegate.
10175 * target.h (struct target_ops) <to_ranged_break_num_registers>:
10176 Use TARGET_DEFAULT_RETURN.
10177
ad5989bd
TT
101782014-02-19 Tom Tromey <tromey@redhat.com>
10179
10180 * target-delegates.c: Rebuild.
10181 * target.c (target_fetch_registers): Unconditionally delegate.
10182 * target.h (struct target_ops) <to_fetch_registers>: Use
10183 TARGET_DEFAULT_NORETURN.
10184
46ee7e8d
TT
101852014-02-19 Tom Tromey <tromey@redhat.com>
10186
10187 * target-delegates.c: Rebuild.
10188 * target.c (update_current_target): Don't inherit or default
10189 to_stop.
10190 * target.h (struct target_ops) <to_stop>: Use
10191 TARGET_DEFAULT_IGNORE.
10192
843f59ed
TT
101932014-02-19 Tom Tromey <tromey@redhat.com>
10194
10195 * target-delegates.c: Rebuild.
10196 * target.c (update_current_target): Don't inherit or default
10197 to_can_run_breakpoint_commands.
10198 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
10199 Use TARGET_DEFAULT_RETURN.
10200
ccfde2a0
TT
102012014-02-19 Tom Tromey <tromey@redhat.com>
10202
10203 * target-delegates.c: Rebuild.
10204 * target.c (update_current_target): Don't inherit or default
10205 to_supports_evaluation_of_breakpoint_conditions.
10206 * target.h (struct target_ops)
10207 <to_supports_evaluation_of_breakpoint_conditions>: Use
10208 TARGET_DEFAULT_RETURN.
10209
0de91722
TT
102102014-02-19 Tom Tromey <tromey@redhat.com>
10211
10212 * target-delegates.c: Rebuild.
10213 * target.c (update_current_target): Don't inherit or default
10214 to_augmented_libraries_svr4_read.
10215 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
10216 Use TARGET_DEFAULT_RETURN.
10217
9a7d8b48
TT
102182014-02-19 Tom Tromey <tromey@redhat.com>
10219
10220 * target-delegates.c: Rebuild.
10221 * target.c (update_current_target): Don't inherit or default
10222 to_can_use_agent.
10223 * target.h (struct target_ops) <to_can_use_agent>: Use
10224 TARGET_DEFAULT_RETURN.
10225
d9db5b21
TT
102262014-02-19 Tom Tromey <tromey@redhat.com>
10227
10228 * target-delegates.c: Rebuild.
10229 * target.c (update_current_target): Don't inherit or default
10230 to_use_agent.
10231 * target.h (struct target_ops) <to_use_agent>: Use
10232 TARGET_DEFAULT_NORETURN.
10233
92155eeb
TT
102342014-02-19 Tom Tromey <tromey@redhat.com>
10235
10236 * target-delegates.c: Rebuild.
10237 * target.c (update_current_target): Don't inherit or default
10238 to_traceframe_info.
10239 (return_null): Remove.
10240 * target.h (struct target_ops) <to_traceframe_info>: Use
10241 TARGET_DEFAULT_RETURN.
10242
d6522a22
TT
102432014-02-19 Tom Tromey <tromey@redhat.com>
10244
10245 * target-delegates.c: Rebuild.
10246 * target.c (update_current_target): Don't inherit or default
10247 to_static_tracepoint_markers_by_strid.
10248 * target.h (struct target_ops)
10249 <to_static_tracepoint_markers_by_strid>: Use
10250 TARGET_DEFAULT_NORETURN.
10251
4c3e4425
TT
102522014-02-19 Tom Tromey <tromey@redhat.com>
10253
10254 * target-delegates.c: Rebuild.
10255 * target.c (update_current_target): Don't inherit or default
10256 to_static_tracepoint_marker_at.
10257 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
10258 Use TARGET_DEFAULT_RETURN.
10259
dcd6917f
TT
102602014-02-19 Tom Tromey <tromey@redhat.com>
10261
10262 * target-delegates.c: Rebuild.
10263 * target.c (update_current_target): Don't inherit or default
10264 to_set_permissions.
10265 * target.h (struct target_ops) <to_set_permissions>: Use
10266 TARGET_DEFAULT_IGNORE.
10267
22bcceee
TT
102682014-02-19 Tom Tromey <tromey@redhat.com>
10269
10270 * target-delegates.c: Rebuild.
10271 * target.c (update_current_target): Don't inherit or default
10272 to_get_tib_address.
10273 * target.h (struct target_ops) <to_get_tib_address>: Use
10274 TARGET_DEFAULT_NORETURN.
10275
8586ccaa
TT
102762014-02-19 Tom Tromey <tromey@redhat.com>
10277
10278 * target-delegates.c: Rebuild.
10279 * target.c (update_current_target): Don't inherit or default
10280 to_set_trace_notes.
10281 * target.h (struct target_ops) <to_set_trace_notes>: Use
10282 TARGET_DEFAULT_RETURN.
10283
91df8d1d
TT
102842014-02-19 Tom Tromey <tromey@redhat.com>
10285
10286 * target-delegates.c: Rebuild.
10287 * target.c (update_current_target): Don't initialize
10288 to_set_trace_buffer_size.
10289 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
10290 TARGET_DEFAULT_IGNORE.
10291
8d526939
TT
102922014-02-19 Tom Tromey <tromey@redhat.com>
10293
10294 * target-delegates.c: Rebuild.
10295 * target.c (update_current_target): Don't inherit or default
10296 to_set_circular_trace_buffer.
10297 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
10298 TARGET_DEFAULT_IGNORE.
10299
0bcfeddf
TT
103002014-02-19 Tom Tromey <tromey@redhat.com>
10301
10302 * target-delegates.c: Rebuild.
10303 * target.c (update_current_target): Don't inherit or default
10304 to_set_disconnected_tracing.
10305 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
10306 TARGET_DEFAULT_IGNORE.
10307
9249843f
TT
103082014-02-19 Tom Tromey <tromey@redhat.com>
10309
10310 * target-delegates.c: Rebuild.
10311 * target.c (update_current_target): Don't inherit or default
10312 to_get_min_fast_tracepoint_insn_len.
10313 (return_minus_one): Remove.
10314 * target.h (struct target_ops)
10315 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
10316
ace92e7d
TT
103172014-02-19 Tom Tromey <tromey@redhat.com>
10318
10319 * target-delegates.c: Rebuild.
10320 * target.c (update_current_target): Don't inherit or default
10321 to_get_raw_trace_data.
10322 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
10323 TARGET_DEFAULT_NORETURN.
10324
08120467
TT
103252014-02-19 Tom Tromey <tromey@redhat.com>
10326
10327 * target-delegates.c: Rebuild.
10328 * target.c (update_current_target): Don't inherit or default
10329 to_upload_trace_state_variables.
10330 * target.h (struct target_ops) <to_upload_trace_state_variables>:
10331 Use TARGET_DEFAULT_RETURN.
10332
1e949b00
TT
103332014-02-19 Tom Tromey <tromey@redhat.com>
10334
10335 * target-delegates.c: Rebuild.
10336 * target.c (update_current_target): Don't inherit or default
10337 to_upload_tracepoints.
10338 * target.h (struct target_ops) <to_upload_tracepoints>: Use
10339 TARGET_DEFAULT_RETURN.
10340
a2e6c147
TT
103412014-02-19 Tom Tromey <tromey@redhat.com>
10342
10343 * target-delegates.c: Rebuild.
10344 * target.c (update_current_target): Don't inherit or default
10345 to_save_trace_data.
10346 * target.h (struct target_ops) <to_save_trace_data>: Use
10347 TARGET_DEFAULT_NORETURN.
10348
959bcd0b
TT
103492014-02-19 Tom Tromey <tromey@redhat.com>
10350
10351 * target-delegates.c: Rebuild.
10352 * target.c (update_current_target): Don't inherit or default
10353 to_get_trace_state_variable_value.
10354 * target.h (struct target_ops)
10355 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
10356
afc94e66
TT
103572014-02-19 Tom Tromey <tromey@redhat.com>
10358
10359 * target-delegates.c: Rebuild.
10360 * target.c (update_current_target): Don't inherit or default
10361 to_trace_find.
10362 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
10363
e51c07ea
TT
103642014-02-19 Tom Tromey <tromey@redhat.com>
10365
10366 * target-delegates.c: Rebuild.
10367 * target.c (update_current_target): Don't inherit or default
10368 to_trace_stop.
10369 * target.h (struct target_ops) <to_trace_stop>: Use
10370 TARGET_DEFAULT_NORETURN.
10371
6fea14cd
TT
103722014-02-19 Tom Tromey <tromey@redhat.com>
10373
10374 * target-delegates.c: Rebuild.
10375 * target.c (update_current_target): Don't inherit or default
10376 to_get_tracepoint_status.
10377 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
10378 TARGET_DEFAULT_NORETURN.
10379
4072d4ff
TT
103802014-02-19 Tom Tromey <tromey@redhat.com>
10381
10382 * target-delegates.c: Rebuild.
10383 * target.c (update_current_target): Don't inherit or default
10384 to_get_trace_status.
10385 * target.h (struct target_ops) <to_get_trace_status>: Use
10386 TARGET_DEFAULT_RETURN.
10387
25da2e80
TT
103882014-02-19 Tom Tromey <tromey@redhat.com>
10389
10390 * target-delegates.c: Rebuild.
10391 * target.c (update_current_target): Don't inherit or default
10392 to_trace_start.
10393 * target.h (struct target_ops) <to_trace_start>: Use
10394 TARGET_DEFAULT_NORETURN.
10395
86dd181d
TT
103962014-02-19 Tom Tromey <tromey@redhat.com>
10397
10398 * target-delegates.c: Rebuild.
10399 * target.c (update_current_target): Don't inherit or default
10400 to_trace_set_readonly_regions.
10401 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
10402 Use TARGET_DEFAULT_NORETURN.
10403
05c41993
TT
104042014-02-19 Tom Tromey <tromey@redhat.com>
10405
10406 * target-delegates.c: Rebuild.
10407 * target.c (update_current_target): Don't inherit or default
10408 to_disable_tracepoint.
10409 * target.h (struct target_ops) <to_disable_tracepoint>: Use
10410 TARGET_DEFAULT_NORETURN.
10411
151f70f1
TT
104122014-02-19 Tom Tromey <tromey@redhat.com>
10413
10414 * target-delegates.c: Rebuild.
10415 * target.c (update_current_target): Don't inherit or default
10416 to_enable_tracepoint.
10417 * target.h (struct target_ops) <to_enable_tracepoint>: Use
10418 TARGET_DEFAULT_NORETURN.
10419
94eb98b9
TT
104202014-02-19 Tom Tromey <tromey@redhat.com>
10421
10422 * target-delegates.c: Rebuild.
10423 * target.c (update_current_target): Don't inherit or default
10424 to_download_trace_state_variable.
10425 * target.h (struct target_ops) <to_download_trace_state_variable>:
10426 Use TARGET_DEFAULT_NORETURN.
10427
719acc4a
TT
104282014-02-19 Tom Tromey <tromey@redhat.com>
10429
10430 * target-delegates.c: Rebuild.
10431 * target.c (update_current_target): Don't inherit or default
10432 to_can_download_tracepoint.
10433 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
10434 TARGET_DEFAULT_RETURN.
10435
9a980a22
TT
104362014-02-19 Tom Tromey <tromey@redhat.com>
10437
10438 * target-delegates.c: Rebuild.
10439 * target.c (update_current_target): Don't inherit or default
10440 to_download_tracepoint.
10441 * target.h (struct target_ops) <to_download_tracepoint>: Use
10442 TARGET_DEFAULT_NORETURN.
10443
5536135b
TT
104442014-02-19 Tom Tromey <tromey@redhat.com>
10445
10446 * target-delegates.c: Rebuild.
10447 * target.c (update_current_target): Don't inherit or default
10448 to_trace_init.
10449 * target.h (struct target_ops) <to_trace_init>: Use
10450 TARGET_DEFAULT_RETURN.
10451
9409d39e
TT
104522014-02-19 Tom Tromey <tromey@redhat.com>
10453
10454 * target-delegates.c: Rebuild.
10455 * target.c (update_current_target): Don't inherit or default
10456 to_supports_string_tracing.
10457 * target.h (struct target_ops) <to_supports_string_tracing>: Use
10458 TARGET_DEFAULT_RETURN.
10459
aab1b22d
TT
104602014-02-19 Tom Tromey <tromey@redhat.com>
10461
10462 * target-delegates.c: Rebuild.
10463 * target.c (update_current_target): Don't inherit or default
10464 to_supports_enable_disable_tracepoint.
10465 * target.h (struct target_ops)
10466 <to_supports_enable_disable_tracepoint>: Use
10467 TARGET_DEFAULT_RETURN.
10468
a7304748
TT
104692014-02-19 Tom Tromey <tromey@redhat.com>
10470
10471 * target-delegates.c: Rebuild.
10472 * target.c (update_current_target): Don't inherit or default
10473 to_supports_multi_process.
10474 * target.h (struct target_ops) <to_supports_multi_process>: Use
10475 TARGET_DEFAULT_RETURN.
10476
4229b31d
TT
104772014-02-19 Tom Tromey <tromey@redhat.com>
10478
10479 * target-delegates.c: Rebuild.
10480 * target.c (update_current_target): Don't inherit or default
10481 to_get_ada_task_ptid.
10482 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
10483 TARGET_DEFAULT_FUNC.
10484
43eba180
TT
104852014-02-19 Tom Tromey <tromey@redhat.com>
10486
10487 * target-delegates.c: Rebuild.
10488 * target.c (update_current_target): Don't inherit or default
10489 to_thread_architecture.
10490 * target.h (struct target_ops) <to_thread_architecture>: Use
10491 TARGET_DEFAULT_FUNC.
10492
fe31bf5b
TT
104932014-02-19 Tom Tromey <tromey@redhat.com>
10494
10495 * target-delegates.c: Rebuild.
10496 * target.c (update_current_target): Don't inherit or default
10497 to_execution_direction.
10498 * target.h (struct target_ops) <to_execution_direction>: Use
10499 TARGET_DEFAULT_FUNC.
10500
53e1cfc7
TT
105012014-02-19 Tom Tromey <tromey@redhat.com>
10502
10503 * target-delegates.c: Rebuild.
10504 * target.c (update_current_target): Don't inherit or default
10505 to_can_execute_reverse.
10506 * target.h (struct target_ops) <to_can_execute_reverse>: Use
10507 TARGET_DEFAULT_RETURN.
10508 (target_can_execute_reverse): Unconditionally delegate.
10509
9bb9d61d
TT
105102014-02-19 Tom Tromey <tromey@redhat.com>
10511
10512 * target-delegates.c: Rebuild.
10513 * target.c (update_current_target): Don't inherit or default
10514 to_goto_bookmark.
10515 (dummy_goto_bookmark): Remove.
10516 (init_dummy_target): Don't inherit or default to_goto_bookmark.
10517 * target.h (struct target_ops) <to_goto_bookmark>: Use
10518 TARGET_DEFAULT_NORETURN.
10519
3dbafbbb
TT
105202014-02-19 Tom Tromey <tromey@redhat.com>
10521
10522 * target-delegates.c: Rebuild.
10523 * target.c (update_current_target): Don't inherit or default
10524 to_get_bookmark.
10525 (dummy_get_bookmark): Remove.
10526 (init_dummy_target): Don't inherit or default to_get_bookmark.
10527 * target.h (struct target_ops) <to_get_bookmark>: Use
10528 TARGET_DEFAULT_NORETURN
10529
16f796b1
TT
105302014-02-19 Tom Tromey <tromey@redhat.com>
10531
10532 * target-delegates.c: Rebuild.
10533 * target.c (update_current_target): Don't inherit or default
10534 to_make_corefile_notes.
10535 (init_dummy_target): Don't initialize to_make_corefile_notes.
10536 * target.h (struct target_ops) <to_make_corefile_notes>: Use
10537 TARGET_DEFAULT_FUNC.
10538
0b5a2719
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_find_memory_regions.
10544 (init_dummy_target): Don't initialize to_find_memory_regions.
10545 * target.h (struct target_ops) <to_find_memory_regions>: Use
10546 TARGET_DEFAULT_FUNC.
10547
d9cb0195
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_log_command.
10553 * target.h (struct target_ops) <to_log_command>: Use
10554 TARGET_DEFAULT_IGNORE.
10555 (target_log_command): Unconditionally delegate.
10556
830ca330
TT
105572014-02-19 Tom Tromey <tromey@redhat.com>
10558
10559 * target-delegates.c: Rebuild.
10560 * target.c (update_current_target): Don't inherit or default
10561 to_pid_to_exec_file.
10562 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
10563 TARGET_DEFAULT_RETURN.
10564
825828fc
TT
105652014-02-19 Tom Tromey <tromey@redhat.com>
10566
10567 * target-delegates.c: Rebuild.
10568 * target.c (update_current_target): Don't inherit or default
10569 to_thread_name.
10570 (target_thread_name): Unconditionally delegate.
10571 * target.h (struct target_ops) <to_thread_name>: Use
10572 TARGET_DEFAULT_RETURN.
10573
4a7e6dda
TT
105742014-02-19 Tom Tromey <tromey@redhat.com>
10575
10576 * target-delegates.c: Rebuild.
10577 * target.c (update_current_target): Don't inherit or default
10578 to_extra_thread_info.
10579 * target.h (struct target_ops) <to_extra_thread_info>: Use
10580 TARGET_DEFAULT_RETURN.
10581
0db88c1d
TT
105822014-02-19 Tom Tromey <tromey@redhat.com>
10583
10584 * target-delegates.c: Rebuild.
10585 * target.c (update_current_target): Don't inherit or default
10586 to_has_exited.
10587 * target.h (struct target_ops) <to_has_exited>: Use
10588 TARGET_DEFAULT_RETURN..
10589
6a9fa051
TT
105902014-02-19 Tom Tromey <tromey@redhat.com>
10591
10592 * target-delegates.c: Rebuild.
10593 * target.c (update_current_target): Don't inherit or default
10594 to_set_syscall_catchpoint.
10595 (return_one): Remove.
10596 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
10597 TARGET_DEFAULT_RETURN.
10598
62f64d7a
TT
105992014-02-19 Tom Tromey <tromey@redhat.com>
10600
10601 * target-delegates.c: Rebuild.
10602 * target.c (update_current_target): Don't inherit or default
10603 to_insert_exec_catchpoint.
10604 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
10605 TARGET_DEFAULT_RETURN.
10606
cda0f38c
TT
106072014-01-08 Tom Tromey <tromey@redhat.com>
10608
10609 * target-delegates.c: Rebuild.
10610 * target.c (update_current_target): Don't inherit or default
10611 to_insert_exec_catchpoint.
10612 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
10613 TARGET_DEFAULT_RETURN.
10614
95c3375e
TT
106152014-02-19 Tom Tromey <tromey@redhat.com>
10616
10617 * target-delegates.c: Rebuild.
10618 * target.c (update_current_target): Don't inherit or default
10619 to_remove_vfork_catchpoint.
10620 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
10621 TARGET_DEFAULT_RETURN.
10622
7e18a8dc
TT
106232014-02-19 Tom Tromey <tromey@redhat.com>
10624
10625 * target-delegates.c: Rebuild.
10626 * target.c (update_current_target): Don't inherit or default
10627 to_insert_vfork_catchpoint.
10628 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
10629 TARGET_DEFAULT_RETURN.
10630
e1a21fb7
TT
106312014-02-19 Tom Tromey <tromey@redhat.com>
10632
10633 * target-delegates.c: Rebuild.
10634 * target.c (update_current_target): Don't inherit or default
10635 to_remove_fork_catchpoint.
10636 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
10637 TARGET_DEFAULT_RETURN.
10638
5958ebeb
TT
106392014-02-19 Tom Tromey <tromey@redhat.com>
10640
10641 * target-delegates.c: Rebuild.
10642 * target.c (update_current_target): Don't inherit or default
10643 to_insert_fork_catchpoint.
10644 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
10645 TARGET_DEFAULT_RETURN.
10646
340ba4bf
TT
106472014-02-19 Tom Tromey <tromey@redhat.com>
10648
10649 * target-delegates.c: Rebuild.
10650 * target.c (update_current_target): Don't inherit or default
10651 to_post_startup_inferior.
10652 * target.h (struct target_ops) <to_post_startup_inferior>: Use
10653 TARGET_DEFAULT_IGNORE.
10654
7634da87
TT
106552014-02-19 Tom Tromey <tromey@redhat.com>
10656
10657 * target-delegates.c: Rebuild.
10658 * target.c (update_current_target): Don't inherit or default
10659 to_load.
10660 * target.h (struct target_ops) <to_load>: Use
10661 TARGET_DEFAULT_NORETURN.
10662
e19e919f
TT
106632014-02-19 Tom Tromey <tromey@redhat.com>
10664
10665 * target-delegates.c: Rebuild.
10666 * target.c (update_current_target): Don't inherit or default
10667 to_terminal_info.
10668 * target.h (struct target_ops) <to_terminal_info>: Use
10669 TARGET_DEFAULT_FUNC.
10670
c6ea8f79
TT
106712014-02-19 Tom Tromey <tromey@redhat.com>
10672
10673 * target-delegates.c: Rebuild.
10674 * target.c (update_current_target): Don't inherit or default
10675 to_terminal_save_ours.
10676 * target.h (struct target_ops) <to_terminal_save_ours>: Use
10677 TARGET_DEFAULT_IGNORE.
10678
e4a733f1
TT
106792014-02-19 Tom Tromey <tromey@redhat.com>
10680
10681 * target-delegates.c: Rebuild.
10682 * target.c (update_current_target): Don't inherit or default
10683 to_terminal_ours.
10684 * target.h (struct target_ops) <to_terminal_ours>: Use
10685 TARGET_DEFAULT_IGNORE.
10686
74fcbef9
TT
106872014-02-19 Tom Tromey <tromey@redhat.com>
10688
10689 * target-delegates.c: Rebuild.
10690 * target.c (update_current_target): Don't inherit or default
10691 to_terminal_ours_for_output.
10692 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
10693 TARGET_DEFAULT_IGNORE.
10694
ddeaacc9
TT
106952014-02-19 Tom Tromey <tromey@redhat.com>
10696
10697 * target-delegates.c: Rebuild.
10698 * target.c (update_current_target): Don't inherit or default
10699 to_terminal_inferior.
10700 * target.h (struct target_ops) <to_terminal_inferior>: Use
10701 TARGET_DEFAULT_IGNORE.
10702
0343661d
TT
107032014-02-19 Tom Tromey <tromey@redhat.com>
10704
10705 * target-delegates.c: Rebuild.
10706 * target.c (update_current_target): Don't inherit or default
10707 to_terminal_init.
10708 * target.h (struct target_ops) <to_terminal_init>: Use
10709 TARGET_DEFAULT_IGNORE.
10710
77cdffe9
TT
107112014-02-19 Tom Tromey <tromey@redhat.com>
10712
10713 * target-delegates.c: Rebuild.
10714 * target.c (update_current_target): Don't inherit or default
10715 to_can_accel_watchpoint_condition.
10716 * target.h (struct target_ops)
10717 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
10718
d03655e4
TT
107192014-02-19 Tom Tromey <tromey@redhat.com>
10720
10721 * target-delegates.c: Rebuild.
10722 * target.c (update_current_target): Don't inherit or default
10723 to_region_ok_for_hw_watchpoint.
10724 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10725 Use TARGET_DEFAULT_FUNC.
10726
65f160a9
TT
107272014-02-19 Tom Tromey <tromey@redhat.com>
10728
10729 * target-delegates.c: Rebuild.
10730 * target.c (update_current_target): Don't inherit or default
10731 to_watchpoint_addr_within_range.
10732 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
10733 Use TARGET_DEFAULT_FUNC.
10734
61dd109f
TT
107352014-02-19 Tom Tromey <tromey@redhat.com>
10736
10737 * target-delegates.c: Rebuild.
10738 * target.c (update_current_target): Don't inherit or default
10739 to_remove_watchpoint.
10740 * target.h (struct target_ops) <to_remove_watchpoint>: Use
10741 TARGET_DEFAULT_NORETURN.
10742
016facd4
TT
107432014-02-19 Tom Tromey <tromey@redhat.com>
10744
10745 * target-delegates.c: Rebuild.
10746 * target.c (update_current_target): Don't inherit or default
10747 to_insert_watchpoint.
10748 * target.h (struct target_ops) <to_insert_watchpoint>: Use
10749 TARGET_DEFAULT_RETURN.
10750
418dabac
TT
107512014-02-19 Tom Tromey <tromey@redhat.com>
10752
10753 * target-delegates.c: Rebuild.
10754 * target.c (update_current_target): Don't inherit or default
10755 to_remove_hw_breakpoint.
10756 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
10757 TARGET_DEFAULT_RETURN.
10758
61b371f9
TT
107592014-02-19 Tom Tromey <tromey@redhat.com>
10760
10761 * target-delegates.c: Rebuild.
10762 * target.c (update_current_target): Don't inherit or default
10763 to_insert_hw_breakpoint.
10764 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
10765 TARGET_DEFAULT_RETURN.
10766
52b51d06
TT
107672014-02-19 Tom Tromey <tromey@redhat.com>
10768
10769 * target-delegates.c: Rebuild.
10770 * target.c (update_current_target): Don't inherit or default
10771 to_can_use_hw_breakpoint.
10772 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
10773 TARGET_DEFAULT_RETURN.
10774
f86e59b2
TT
107752014-02-19 Tom Tromey <tromey@redhat.com>
10776
10777 * target-delegates.c: Rebuild.
10778 * target.c (update_current_target): Don't inherit or default
10779 to_files_info.
10780 * target.h (struct target_ops) <to_files_info>: Use
10781 TARGET_DEFAULT_IGNORE.
10782
6c628163
TT
107832014-02-19 Tom Tromey <tromey@redhat.com>
10784
10785 * target-delegates.c: Rebuild.
10786 * target.c (update_current_target): Don't inherit or default
10787 to_store.
10788 * target.h (struct target_ops) <to_store>: Use
10789 TARGET_DEFAULT_NORETURN.
10790
bebd3233
TT
107912014-02-19 Tom Tromey <tromey@redhat.com>
10792
10793 * target-delegates.c: Rebuild.
10794 * target.c (update_current_target): Don't inherit or default
10795 to_post_attach.
10796 * target.h (struct target_ops) <to_post_attach>: Use
10797 TARGET_DEFAULT_IGNORE.
10798
a53f3625
TT
107992014-02-19 Tom Tromey <tromey@redhat.com>
10800
10801 * target-delegates.c: Rebuild.
10802 * target.c (update_current_target): Don't inherit or default
10803 to_rcmd.
10804 (default_rcmd): New function.
10805 (do_monitor_command): Unconditionally delegate.
10806 * target.h (struct target_ops) <to_rmcd>: Use
10807 TARGET_DEFAULT_FUNC.
10808
e9a29200
TT
108092014-02-19 Tom Tromey <tromey@redhat.com>
10810
10811 * target-delegates.c: Rebuild.
10812 * target.c (init_dummy_target): Don't initialize to_attach.
10813 (target_attach): Unconditionally delegate.
10814 * target.h (struct target_ops) <to_attach>: Use
10815 TARGET_DEFAULT_FUNC.
10816
09da0d0a
TT
108172014-02-19 Tom Tromey <tromey@redhat.com>
10818
10819 * target-delegates.c: Rebuild.
10820 * target.c (target_detach): Unconditionally delegate.
10821 (init_dummy_target): Don't initialize to_detach.
10822 * target.h (struct target_ops) <to_detach>: Use
10823 TARGET_DEFAULT_IGNORE.
10824
5436ff03
TT
108252014-02-19 Tom Tromey <tromey@redhat.com>
10826
10827 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
10828 Add argument.
10829 (target_augmented_libraries_svr4_read): Add argument.
10830 * target.c (update_current_target): Update.
10831 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
10832 argument.
10833
f0d960ea
TT
108342014-02-19 Tom Tromey <tromey@redhat.com>
10835
10836 * target.h (struct target_ops) <to_call_history_range>: Add
10837 argument.
10838 * target.c (target_call_history_range): Add argument.
10839 * record-btrace.c (record_btrace_call_history_range): Add 'self'
10840 argument.
10841 (record_btrace_call_history_from): Update.
10842
ec0aea04
TT
108432014-02-19 Tom Tromey <tromey@redhat.com>
10844
10845 * target.h (struct target_ops) <to_call_history_from>: Add
10846 argument.
10847 * target.c (target_call_history_from): Add argument.
10848 * record-btrace.c (record_btrace_call_history_from): Add 'self'
10849 argument.
10850
5df2fcba
TT
108512014-02-19 Tom Tromey <tromey@redhat.com>
10852
10853 * target.h (struct target_ops) <to_call_history>: Add argument.
10854 * target.c (target_call_history): Add argument.
10855 * record-btrace.c (record_btrace_call_history): Add 'self'
10856 argument.
10857
4e99c6b7
TT
108582014-02-19 Tom Tromey <tromey@redhat.com>
10859
10860 * target.h (struct target_ops) <to_insn_history_range>: Add
10861 argument.
10862 * target.c (target_insn_history_range): Add argument.
10863 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
10864 argument.
10865 (record_btrace_insn_history_from): Update.
10866
9abc3ff3
TT
108672014-02-19 Tom Tromey <tromey@redhat.com>
10868
10869 * target.h (struct target_ops) <to_insn_history_from>: Add
10870 argument.
10871 * target.c (target_insn_history_from): Add argument.
10872 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
10873 argument.
10874
7a6c5609
TT
108752014-02-19 Tom Tromey <tromey@redhat.com>
10876
10877 * target.h (struct target_ops) <to_insn_history>: Add argument.
10878 * target.c (target_insn_history): Add argument.
10879 * record-btrace.c (record_btrace_insn_history): Add 'self'
10880 argument.
10881
606183ac
TT
108822014-02-19 Tom Tromey <tromey@redhat.com>
10883
10884 * target.h (struct target_ops) <to_goto_record>: Add argument.
10885 * target.c (target_goto_record): Add argument.
10886 * record-full.c (record_full_goto): Add 'self' argument.
10887 * record-btrace.c (record_btrace_goto): Add 'self' argument.
10888
307a1b91
TT
108892014-02-19 Tom Tromey <tromey@redhat.com>
10890
10891 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
10892 * target.c (target_goto_record_end): Add argument.
10893 * record-full.c (record_full_goto_end): Add 'self' argument.
10894 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
10895
08475817
TT
108962014-02-19 Tom Tromey <tromey@redhat.com>
10897
10898 * target.h (struct target_ops) <to_goto_record_begin>: Add
10899 argument.
10900 * target.c (target_goto_record_begin): Add argument.
10901 * record-full.c (record_full_goto_begin): Add 'self' argument.
10902 * record-btrace.c (record_btrace_goto_begin): Add 'self'
10903 argument.
10904
1c63c994
TT
109052014-02-19 Tom Tromey <tromey@redhat.com>
10906
10907 * target.h (struct target_ops) <to_record_is_replaying>: Add
10908 argument.
10909 * target.c (target_record_is_replaying): Add argument.
10910 * record-full.c (record_full_is_replaying): Add 'self' argument.
10911 * record-btrace.c (record_btrace_is_replaying): Add 'self'
10912 argument.
10913 (record_btrace_xfer_partial, record_btrace_store_registers)
10914 (record_btrace_prepare_to_store, record_btrace_resume)
10915 (record_btrace_wait, record_btrace_decr_pc_after_break)
10916 (record_btrace_find_new_threads, record_btrace_thread_alive):
10917 Update.
10918
d1b55219
TT
109192014-02-19 Tom Tromey <tromey@redhat.com>
10920
10921 * target.h (struct target_ops) <to_delete_record>: Add argument.
10922 * target.c (target_delete_record): Add argument.
10923 * record-full.c (record_full_delete): Add 'self' argument.
10924
1390f529
TT
109252014-02-19 Tom Tromey <tromey@redhat.com>
10926
10927 * target.h (struct target_ops) <to_save_record>: Add argument.
10928 * target.c (target_save_record): Add argument.
10929 * record-full.c (record_full_save): Add 'self' argument.
10930 (record_full_save): Add 'self' argument.
10931
630d6a4a
TT
109322014-02-19 Tom Tromey <tromey@redhat.com>
10933
10934 * target.h (struct target_ops) <to_info_record>: Add argument.
10935 * target.c (target_info_record): Add argument.
10936 * record.c (info_record_command): Add argument.
10937 * record-full.c (record_full_info): Add 'self' argument.
10938 * record-btrace.c (record_btrace_info): Add 'self' argument.
10939
c6cd7c02
TT
109402014-02-19 Tom Tromey <tromey@redhat.com>
10941
10942 * target.h (struct target_ops) <to_stop_recording>: Add argument.
10943 * target.c (target_stop_recording): Add argument.
10944 * record.c (record_stop): Add argument.
10945 * record-btrace.c (record_btrace_stop_recording): Add 'self'
10946 argument.
10947
39c49f83
TT
109482014-02-19 Tom Tromey <tromey@redhat.com>
10949
10950 * target.h (struct target_ops) <to_read_btrace>: Add argument.
10951 * target.c (struct target_ops) <to_read_btrace>: Add argument.
10952 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
10953 argument.
10954 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
10955 (_initialize_amd64_linux_nat): Use it.
10956 * i386-linux-nat.c (i386_linux_read_btrace): New function.
10957 (_initialize_i386_linux_nat): Use it.
10958
1777056d
TT
109592014-02-19 Tom Tromey <tromey@redhat.com>
10960
10961 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
10962 * target.c (target_teardown_btrace): Add argument.
10963 * remote.c (remote_teardown_btrace): Add 'self' argument.
10964 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
10965 argument.
10966 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
10967 argument.
10968
25e95349
TT
109692014-02-19 Tom Tromey <tromey@redhat.com>
10970
10971 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
10972 * target.c (target_disable_btrace): Add argument.
10973 * remote.c (remote_disable_btrace): Add 'self' argument.
10974 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
10975 argument.
10976 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
10977 argument.
10978
e3c49f88
TT
109792014-02-19 Tom Tromey <tromey@redhat.com>
10980
10981 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
10982 * target.c (target_enable_btrace): Add argument.
10983 * remote.c (remote_enable_btrace): Add 'self' argument.
10984 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
10985 argument.
10986 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
10987 argument.
10988
fe38f897
TT
109892014-02-19 Tom Tromey <tromey@redhat.com>
10990
10991 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
10992 (target_can_use_agent): Add argument.
10993 * target.c (update_current_target): Update.
10994 * remote.c (remote_can_use_agent): Add 'self' argument.
10995 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
10996
2c152180
TT
109972014-02-19 Tom Tromey <tromey@redhat.com>
10998
10999 * target.h (struct target_ops) <to_use_agent>: Add argument.
11000 (target_use_agent): Add argument.
11001 * target.c (update_current_target): Update.
11002 * remote.c (remote_use_agent): Add 'self' argument.
11003 * inf-child.c (inf_child_use_agent): Add 'self' argument.
11004
a893e81f
TT
110052014-02-19 Tom Tromey <tromey@redhat.com>
11006
11007 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
11008 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
11009 (target_traceframe_info): Add argument.
11010 * target.c (update_current_target): Update.
11011 * remote.c (remote_traceframe_info): Add 'self' argument.
11012 * ctf.c (ctf_traceframe_info): Add 'self' argument.
11013
c686c57f
TT
110142014-02-19 Tom Tromey <tromey@redhat.com>
11015
11016 * target.h (target_static_tracepoint_markers_by_strid): Add
11017 argument.
11018 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
11019 'self' argument.
11020 * target.c (update_current_target): Update.
11021 * remote.c (struct target_ops)
11022 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
11023 * linux-nat.c (struct target_ops)
11024 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
11025
61fc905d
TT
110262014-02-19 Tom Tromey <tromey@redhat.com>
11027
11028 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
11029 Add argument.
11030 (target_static_tracepoint_marker_at): Add argument.
11031 * target.c (update_current_target): Update.
11032 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
11033 argument.
11034
c378d69d
TT
110352014-02-19 Tom Tromey <tromey@redhat.com>
11036
11037 * target.h (struct target_ops) <to_set_permissions>: Add argument.
11038 (target_set_permissions): Add argument.
11039 * target.c (update_current_target): Update.
11040 * remote.c (remote_set_permissions): Add 'self' argument.
11041 (remote_start_remote): Update.
11042
bd7ae0f5
TT
110432014-02-19 Tom Tromey <tromey@redhat.com>
11044
11045 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
11046 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
11047 (target_get_tib_address): Add argument.
11048 * target.c (update_current_target): Update.
11049 * remote.c (remote_get_tib_address): Add 'self' argument.
11050
d9e68a2c
TT
110512014-02-19 Tom Tromey <tromey@redhat.com>
11052
11053 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
11054 (target_set_trace_notes): Add argument.
11055 * target.c (update_current_target): Update.
11056 * remote.c (remote_set_trace_notes): Add 'self' argument.
11057
4da384be
TT
110582014-02-19 Tom Tromey <tromey@redhat.com>
11059
11060 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
11061 argument.
11062 (target_set_trace_buffer_size): Add argument.
11063 * target.c (update_current_target): Update.
11064 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
11065
736d5b1f
TT
110662014-02-19 Tom Tromey <tromey@redhat.com>
11067
11068 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
11069 argument.
11070 (target_set_circular_trace_buffer): Add argument.
11071 * target.c (update_current_target): Update.
11072 * remote.c (remote_set_circular_trace_buffer): Add 'self'
11073 argument.
11074
37b25738
TT
110752014-02-19 Tom Tromey <tromey@redhat.com>
11076
11077 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
11078 argument.
11079 (target_set_disconnected_tracing): Add argument.
11080 * target.c (update_current_target): Update.
11081 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
11082
0e67620a
TT
110832014-02-19 Tom Tromey <tromey@redhat.com>
11084
11085 * target.h (struct target_ops)
11086 <to_get_min_fast_tracepoint_insn_len>: Add argument.
11087 (target_get_min_fast_tracepoint_insn_len): Add argument.
11088 * target.c (update_current_target): Update.
11089 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
11090 argument.
11091
88ee6f45
TT
110922014-02-19 Tom Tromey <tromey@redhat.com>
11093
11094 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
11095 argument.
11096 (target_get_raw_trace_data): Add argument.
11097 * target.c (update_current_target): Update.
11098 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
11099
181e3713
TT
111002014-02-19 Tom Tromey <tromey@redhat.com>
11101
11102 * target.h (struct target_ops) <to_upload_trace_state_variables>:
11103 Add argument.
11104 (target_upload_trace_state_variables): Add argument.
11105 * target.c (update_current_target): Update.
11106 * remote.c (remote_upload_trace_state_variables): Add 'self'
11107 argument.
11108 (remote_start_remote): Update.
11109
ab6617cc
TT
111102014-02-19 Tom Tromey <tromey@redhat.com>
11111
11112 * target.h (struct target_ops) <to_upload_tracepoints>: Add
11113 argument.
11114 (target_upload_tracepoints): Add argument.
11115 * target.c (update_current_target): Update.
11116 * remote.c (remote_upload_tracepoints): Add 'self' argument.
11117 (remote_start_remote): Update.
11118
dc3decaf
TT
111192014-02-19 Tom Tromey <tromey@redhat.com>
11120
11121 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
11122 (target_save_trace_data): Add argument.
11123 * target.c (update_current_target): Update.
11124 * remote.c (remote_save_trace_data): Add 'self' argument.
11125
4011015b
TT
111262014-02-19 Tom Tromey <tromey@redhat.com>
11127
11128 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
11129 argument.
11130 * target.h (struct target_ops)
11131 <to_get_trace_state_variable_value>: Add argument.
11132 (target_get_trace_state_variable_value): Add argument.
11133 * target.c (update_current_target): Update.
11134 * remote.c (remote_get_trace_state_variable_value): Add 'self'
11135 argument.
11136 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
11137
bd4c6793
TT
111382014-02-19 Tom Tromey <tromey@redhat.com>
11139
11140 * tracepoint.c (tfile_trace_find): Add 'self' argument.
11141 * target.h (struct target_ops) <to_trace_find>: Add argument.
11142 (target_trace_find): Add argument.
11143 * target.c (update_current_target): Update.
11144 * remote.c (remote_trace_find): Add 'self' argument.
11145 * ctf.c (ctf_trace_find): Add 'self' argument.
11146
74499f1b
TT
111472014-02-19 Tom Tromey <tromey@redhat.com>
11148
11149 * target.h (struct target_ops) <to_trace_stop>: Add argument.
11150 (target_trace_stop): Add argument.
11151 * target.c (update_current_target): Update.
11152 * remote.c (remote_trace_stop): Add 'self' argument.
11153
db90e85c
TT
111542014-02-19 Tom Tromey <tromey@redhat.com>
11155
11156 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
11157 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
11158 argument.
11159 (target_get_tracepoint_status): Add argument.
11160 * target.c (update_current_target): Update.
11161 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
11162
8bd200f1
TT
111632014-02-19 Tom Tromey <tromey@redhat.com>
11164
11165 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
11166 * target.h (struct target_ops) <to_get_trace_status>: Add
11167 argument.
11168 (target_get_trace_status): Add argument.
11169 * target.c (update_current_target): Update.
11170 * remote.c (remote_get_trace_status): Add 'self' argument.
11171 (remote_start_remote, remote_can_download_tracepoint): Update.
11172 * ctf.c (ctf_get_trace_status): Add 'self' argument.
11173
e2d1aae3
TT
111742014-02-19 Tom Tromey <tromey@redhat.com>
11175
11176 * target.h (struct target_ops) <to_trace_start>: Add argument.
11177 (target_trace_start): Add argument.
11178 * target.c (update_current_target): Update.
11179 * remote.c (remote_trace_start): Add 'self' argument.
11180
583f9a86
TT
111812014-02-19 Tom Tromey <tromey@redhat.com>
11182
11183 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
11184 Add argument.
11185 (target_trace_set_readonly_regions): Add argument.
11186 * target.c (update_current_target): Update.
11187 * remote.c (remote_trace_set_readonly_regions): Add 'self'
11188 argument.
11189
780b049c
TT
111902014-02-19 Tom Tromey <tromey@redhat.com>
11191
11192 * target.h (struct target_ops) <to_disable_tracepoint>: Add
11193 argument.
11194 (target_disable_tracepoint): Add argument.
11195 * target.c (update_current_target): Update.
11196 * remote.c (remote_disable_tracepoint): Add 'self' argument.
11197
46670d57
TT
111982014-02-19 Tom Tromey <tromey@redhat.com>
11199
11200 * target.h (struct target_ops) <to_enable_tracepoint>: Add
11201 argument.
11202 (target_enable_tracepoint): Add argument.
11203 * target.c (update_current_target): Update.
11204 * remote.c (remote_enable_tracepoint): Add 'self' argument.
11205
559d2b81
TT
112062014-02-19 Tom Tromey <tromey@redhat.com>
11207
11208 * target.h (struct target_ops) <to_download_trace_state_variable>:
11209 Add argument.
11210 (target_download_trace_state_variable): Add argument.
11211 * target.c (update_current_target): Update.
11212 * remote.c (remote_download_trace_state_variable): Add 'self'
11213 argument.
11214
a52a8357
TT
112152014-02-19 Tom Tromey <tromey@redhat.com>
11216
11217 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
11218 argument.
11219 (target_can_download_tracepoint): Add argument.
11220 * target.c (update_current_target): Update.
11221 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
11222
548f7808
TT
112232014-02-19 Tom Tromey <tromey@redhat.com>
11224
11225 * target.h (struct target_ops) <to_download_tracepoint>: Add
11226 argument.
11227 (target_download_tracepoint): Add argument.
11228 * target.c (update_current_target): Update.
11229 * remote.c (remote_download_tracepoint): Add 'self' argument.
11230
ecae04e1
TT
112312014-02-19 Tom Tromey <tromey@redhat.com>
11232
11233 * target.h (struct target_ops) <to_trace_init>: Add argument.
11234 (target_trace_init): Add argument.
11235 * target.c (update_current_target): Update.
11236 * remote.c (remote_trace_init): Add 'self' argument.
11237
fab5aa7c
TT
112382014-02-19 Tom Tromey <tromey@redhat.com>
11239
11240 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
11241 * target.c (target_fileio_readlink): Add argument.
11242 * remote.c (remote_hostio_readlink): Add 'self' argument.
11243 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
11244
dbbca37d
TT
112452014-02-19 Tom Tromey <tromey@redhat.com>
11246
11247 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
11248 * target.c (target_fileio_unlink): Add argument.
11249 * remote.c (remote_hostio_unlink): Add 'self' argument.
11250 (remote_file_delete): Update.
11251 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
11252
df39ea25
TT
112532014-02-19 Tom Tromey <tromey@redhat.com>
11254
11255 * target.h (struct target_ops) <to_fileio_close>: Add argument.
11256 * target.c (target_fileio_close): Add argument.
11257 * remote.c (remote_hostio_close): Add 'self' argument.
11258 (remote_hostio_close_cleanup): Update.
11259 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
11260 Update.
11261 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
11262
a3be983c
TT
112632014-02-19 Tom Tromey <tromey@redhat.com>
11264
11265 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
11266 * target.c (target_fileio_pread): Add argument.
11267 * remote.c (remote_hostio_pread): Add 'self' argument.
11268 (remote_bfd_iovec_pread, remote_file_get): Update.
11269 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
11270
0d866f62
TT
112712014-02-19 Tom Tromey <tromey@redhat.com>
11272
11273 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
11274 * target.c (target_fileio_pwrite): Add argument.
11275 * remote.c (remote_hostio_pwrite): Add 'self' argument.
11276 (remote_file_put): Update.
11277 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
11278
cd897586
TT
112792014-02-19 Tom Tromey <tromey@redhat.com>
11280
11281 * target.h (struct target_ops) <to_fileio_open>: Add argument.
11282 * target.c (target_fileio_open): Add argument.
11283 * remote.c (remote_hostio_open): Add 'self' argument.
11284 (remote_bfd_iovec_open): Add 'self' argument.
11285 (remote_file_put): Add 'self' argument.
11286 (remote_file_get): Add 'self' argument.
11287 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
11288
78eff0ec
TT
112892014-02-19 Tom Tromey <tromey@redhat.com>
11290
11291 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
11292 Add argument.
11293 (target_can_run_breakpoint_commands): Add argument.
11294 * target.c (update_current_target): Update.
11295 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
11296 argument.
11297 (remote_insert_breakpoint): Add 'self' argument.
11298 (remote_insert_hw_breakpoint): Add 'self' argument.
11299 (remote_can_run_breakpoint_commands): Add 'self' argument.
11300
efcc2da7
TT
113012014-02-19 Tom Tromey <tromey@redhat.com>
11302
11303 * target.h (struct target_ops)
11304 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
11305 (target_supports_evaluation_of_breakpoint_conditions): Add
11306 argument.
11307 * target.c (update_current_target): Update.
11308 * remote.c (remote_supports_cond_breakpoints): Add 'self'
11309 argument.
11310 (remote_insert_breakpoint): Add 'self' argument.
11311 (remote_insert_hw_breakpoint): Add 'self' argument.
11312 (remote_supports_cond_breakpoints): Add 'self' argument.
11313
6de37a3a
TT
113142014-02-19 Tom Tromey <tromey@redhat.com>
11315
11316 * target.h (struct target_ops) <to_supports_string_tracing>: Add
11317 argument.
11318 (target_supports_string_tracing): Add argument.
11319 * target.c (update_current_target): Update.
11320 * remote.c (remote_supports_string_tracing): Add 'self' argument.
11321
2bfc0540
TT
113222014-02-19 Tom Tromey <tromey@redhat.com>
11323
11324 * target.h (struct target_ops)
11325 <to_supports_disable_randomization>: Add argument.
11326 * target.c (find_default_supports_disable_randomization): Add
11327 argument.
11328 (target_supports_disable_randomization): Add argument.
11329 (find_default_supports_disable_randomization): Add 'self'
11330 argument.
11331 * remote.c (extended_remote_supports_disable_randomization): Add
11332 'self' argument.
11333 (remote_supports_disable_randomization): Add 'self' argument.
11334 (extended_remote_create_inferior): Update.
11335 * linux-nat.c (linux_nat_supports_disable_randomization): Add
11336 'self' argument.
11337
7d178d6a
TT
113382014-02-19 Tom Tromey <tromey@redhat.com>
11339
11340 * target.h (struct target_ops)
11341 <to_supports_enable_disable_tracepoint>: Add argument.
11342 (target_supports_enable_disable_tracepoint): Add argument.
11343 * target.c (update_current_target): Update.
11344 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
11345 argument.
11346
86ce2668
TT
113472014-02-19 Tom Tromey <tromey@redhat.com>
11348
11349 * target.h (struct target_ops) <to_supports_multi_process>: Add
11350 argument.
11351 (target_supports_multi_process): Add argument.
11352 * target.c (update_current_target): Update.
11353 * remote.c (remote_supports_multi_process): Add 'self' argument.
11354 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
11355 argument.
11356 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
11357 argument.
11358
4c612759
TT
113592014-02-19 Tom Tromey <tromey@redhat.com>
11360
11361 * target.h (struct target_ops) <to_execution_direction>: Add
11362 argument.
11363 (target_execution_direction): Add argument.
11364 * target.c (default_execution_direction): Add 'self' argument.
11365 * record-full.c (record_full_execution_direction): Add 'self'
11366 argument.
11367
19db3e69
TT
113682014-02-19 Tom Tromey <tromey@redhat.com>
11369
11370 * target.h (struct target_ops) <to_can_execute_reverse>: Add
11371 argument.
11372 (target_can_execute_reverse): Add argument.
11373 * remote.c (remote_can_execute_reverse): Add 'self' argument.
11374 * record-full.c (record_full_can_execute_reverse): Add 'self'
11375 argument.
11376 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
11377 argument.
11378
1e6b91a4
TT
113792014-02-19 Tom Tromey <tromey@redhat.com>
11380
11381 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
11382 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
11383 argument.
11384 (target_get_ada_task_ptid): Add argument.
11385 * target.c (update_current_target): Update.
11386 (default_get_ada_task_ptid): Add 'self' argument.
11387 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
11388 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
11389 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
11390 argument.
11391 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
11392 argument.
11393 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
11394 argument.
11395 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
11396 argument.
11397 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
11398 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
11399 argument.
11400
3c80fb48
TT
114012014-02-19 Tom Tromey <tromey@redhat.com>
11402
11403 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
11404 (target_goto_bookmark): Add argument.
11405 * target.c (dummy_goto_bookmark): Add 'self' argument.
11406 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
11407
dd0e2830
TT
114082014-02-19 Tom Tromey <tromey@redhat.com>
11409
11410 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
11411 (target_get_bookmark): Add argument.
11412 * target.c (dummy_get_bookmark): Add 'self' argument.
11413 * record-full.c (record_full_get_bookmark): Add 'self' argument.
11414
fc6691b2
TT
114152014-02-19 Tom Tromey <tromey@redhat.com>
11416
11417 * target.h (struct target_ops) <to_make_corefile_notes>: Add
11418 argument.
11419 (target_make_corefile_notes): Add argument.
11420 * target.c (dummy_make_corefile_notes): Add 'self' argument.
11421 * procfs.c (procfs_make_note_section): Add 'self' argument.
11422 (procfs_make_note_section): Add 'self' argument.
11423 (procfs_make_note_section): Add 'self' argument.
11424 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
11425 argument.
11426 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
11427 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
11428 * exec.c (exec_make_note_section): Add 'self' argument.
11429 (exec_make_note_section): Add 'self' argument.
11430
2e73927c
TT
114312014-02-19 Tom Tromey <tromey@redhat.com>
11432
11433 * target.h (struct target_ops) <to_find_memory_regions>: Add
11434 argument.
11435 (target_find_memory_regions): Add argument.
11436 * target.c (dummy_find_memory_regions): Add 'self' argument.
11437 * procfs.c (proc_find_memory_regions): Add 'self' argument.
11438 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
11439 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
11440 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
11441 * exec. (exec_do_find_memory_regions): New global.
11442 (exec_set_find_memory_regions): Rewrite.
11443 (exec_find_memory_regions): New function.
11444 (init_exec_ops): Use exec_find_memory_regions.
11445
2a9a2795
TT
114462014-02-19 Tom Tromey <tromey@redhat.com>
11447
11448 * target.h (struct target_ops) <to_supports_non_stop>: Add
11449 argument.
11450 * target.c (find_default_supports_non_stop): Add argument.
11451 (target_supports_non_stop): Add argument.
11452 (find_default_supports_non_stop): Add 'self' argument.
11453 * remote.c (remote_supports_non_stop): Add 'self' argument.
11454 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
11455
4ab76ea3
TT
114562014-02-19 Tom Tromey <tromey@redhat.com>
11457
11458 * target.h (struct target_ops) <to_log_command>: Add argument.
11459 (target_log_command): Add argument.
11460 * serial.h (serial_log_command): Add 'self' argument.
11461 * serial.c (serial_log_command): Add 'self' argument.
11462
8dd27370
TT
114632014-02-19 Tom Tromey <tromey@redhat.com>
11464
11465 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
11466 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
11467 argument.
11468 (target_pid_to_exec_file): Add argument.
11469 * target.c (debug_to_pid_to_exec_file): Add argument.
11470 (update_current_target): Update.
11471 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
11472 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
11473 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
11474 (linux_handle_extended_wait): Update.
11475 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
11476 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
11477 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
11478 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
11479
1aac633b
TT
114802014-02-19 Tom Tromey <tromey@redhat.com>
11481
11482 * target.h (struct target_ops) <to_rcmd>: Add argument.
11483 (target_rcmd): Add argument.
11484 * target.c (debug_to_rcmd): Add argument.
11485 (update_current_target, do_monitor_command): Update.
11486 * remote.c (remote_rcmd): Add 'self' argument.
11487 * monitor.c (monitor_rcmd): Add 'self' argument.
11488
1eab8a48
TT
114892014-02-19 Tom Tromey <tromey@redhat.com>
11490
11491 * windows-nat.c (windows_stop): Add 'self' argument.
11492 * target.h (struct target_ops) <to_stop>: Add argument.
11493 * target.c (target_stop): Add argument.
11494 (debug_to_stop): Add argument.
11495 (update_current_target): Update.
11496 * remote.c (remote_stop): Add 'self' argument.
11497 * remote-sim.c (gdbsim_stop): Add 'self' argument.
11498 (gdbsim_cntrl_c): Update.
11499 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
11500 * procfs.c (procfs_stop): Add 'self' argument.
11501 * nto-procfs.c (procfs_stop): Add 'self' argument.
11502 * monitor.c (monitor_stop): Add 'self' argument.
11503 (monitor_open): Update.
11504 * linux-nat.c (linux_nat_stop): Add argument.
11505 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
11506 * gnu-nat.c (gnu_stop): Add 'self' argument.
11507 * darwin-nat.c (darwin_stop): Add 'self' argument.
11508
503a628d
TT
115092014-02-19 Tom Tromey <tromey@redhat.com>
11510
11511 * target.h (struct target_ops) <to_thread_name>: Add argument.
11512 * target.c (target_thread_name): Add argument.
11513 (update_current_target): Update.
11514 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
11515
c15906d8
TT
115162014-02-19 Tom Tromey <tromey@redhat.com>
11517
11518 * target.h (struct target_ops) <to_extra_thread_info>: Add
11519 argument.
11520 (target_extra_thread_info): Add argument.
11521 * target.c (update_current_target): Update.
11522 * remote.c (remote_threads_extra_info): Add 'self' argument.
11523 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
11524 argument.
11525 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
11526 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
11527 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
11528 argument.
11529 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
11530 argument.
11531 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
11532 argument.
11533 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
11534 argument.
11535
daf5e9b6
TT
115362014-02-19 Tom Tromey <tromey@redhat.com>
11537
11538 * target.h (struct target_ops) <to_program_signals>: Add argument.
11539 * target.c (target_program_signals): Add argument.
11540 * remote.c (remote_program_signals): Add 'self' argument.
11541
94bedb42
TT
115422014-02-19 Tom Tromey <tromey@redhat.com>
11543
11544 * target.h (struct target_ops) <to_pass_signals>: Add argument.
11545 * target.c (target_pass_signals): Add argument.
11546 * remote.c (remote_pass_signals): Add 'self' argument.
11547 (remote_start_remote): Update.
11548 * procfs.c (procfs_pass_signals): Add 'self' argument.
11549 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
11550 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
11551 (linux_nat_create_inferior, linux_nat_attach): Update.
11552
da82bd6b
TT
115532014-02-19 Tom Tromey <tromey@redhat.com>
11554
11555 * windows-nat.c (windows_can_run): Add 'self' argument.
11556 * target.h (struct target_ops) <to_can_run>: Add argument.
11557 (target_can_run): Add argument.
11558 * target.c (debug_to_can_run): Add argument.
11559 (update_current_target): Update.
11560 * nto-procfs.c (procfs_can_run): Add 'self' argument.
11561 * inf-child.c (inf_child_can_run): Add 'self' argument.
11562 * go32-nat.c (go32_can_run): Add 'self' argument.
11563
d796e1d6
TT
115642014-02-19 Tom Tromey <tromey@redhat.com>
11565
11566 * target.h (struct target_ops) <to_has_exited>: Add argument.
11567 (target_has_exited): Add argument.
11568 * target.c (debug_to_has_exited): Add argument.
11569 (update_current_target): Update.
11570
ff214e67
TT
115712014-02-19 Tom Tromey <tromey@redhat.com>
11572
11573 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
11574 argument.
11575 (target_set_syscall_catchpoint): Add argument.
11576 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
11577 argument.
11578 * target.c (update_current_target): Update.
11579
758e29d2
TT
115802014-02-19 Tom Tromey <tromey@redhat.com>
11581
11582 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
11583 argument.
11584 (target_remove_exec_catchpoint): Add argument.
11585 * target.c (debug_to_remove_exec_catchpoint): Add argument.
11586 (update_current_target): Update.
11587 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
11588 argument.
11589
ba025e51
TT
115902014-02-19 Tom Tromey <tromey@redhat.com>
11591
11592 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
11593 argument.
11594 (target_insert_exec_catchpoint): Add argument.
11595 * target.c (debug_to_insert_exec_catchpoint): Add argument.
11596 (update_current_target): Update.
11597 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
11598 argument.
11599
e98cf0cd
TT
116002014-02-19 Tom Tromey <tromey@redhat.com>
11601
11602 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
11603 argument.
11604 (target_remove_vfork_catchpoint): Add argument.
11605 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
11606 (update_current_target): Update.
11607 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
11608 argument.
11609
3ecc7da0
TT
116102014-02-19 Tom Tromey <tromey@redhat.com>
11611
11612 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
11613 argument.
11614 (target_insert_vfork_catchpoint): Add argument.
11615 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
11616 (update_current_target): Update.
11617 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
11618 argument.
11619
973fc227
TT
116202014-02-19 Tom Tromey <tromey@redhat.com>
11621
11622 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
11623 argument.
11624 (target_remove_fork_catchpoint): Add argument.
11625 * target.c (debug_to_remove_fork_catchpoint): Add argument.
11626 (update_current_target): Update.
11627 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
11628 argument.
11629
a863b201
TT
116302014-02-19 Tom Tromey <tromey@redhat.com>
11631
11632 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
11633 argument.
11634 (target_insert_fork_catchpoint): Add argument.
11635 * target.c (debug_to_insert_fork_catchpoint): Add argument.
11636 (update_current_target): Update.
11637 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
11638 argument.
11639
2e97a79e
TT
116402014-02-19 Tom Tromey <tromey@redhat.com>
11641
11642 * target.h (struct target_ops) <to_post_startup_inferior>: Add
11643 argument.
11644 (target_post_startup_inferior): Add argument.
11645 * target.c (debug_to_post_startup_inferior): Add argument.
11646 (update_current_target): Update.
11647 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
11648 argument.
11649 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
11650 argument.
11651 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
11652 argument.
11653 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
11654 argument.
11655 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
11656 'self' argument.
11657 (super_post_startup_inferior): Likewise.
11658 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
11659 'self' argument.
11660 (super_post_startup_inferior): Likewise.
11661 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
11662 Add 'self' argument.
11663 (super_post_startup_inferior): Likewise.
11664
71a9f134
TT
116652014-02-19 Tom Tromey <tromey@redhat.com>
11666
11667 * target.h (struct target_ops) <to_load>: Add argument.
11668 * target.c (target_load): Add argument.
11669 (debug_to_load): Add argument.
11670 (update_current_target): Update.
11671 * remote.c (remote_load): Add 'self' argument.
11672 * remote-sim.c (gdbsim_load): Add 'self' argument.
11673 * remote-mips.c (mips_load): Add 'self' argument.
11674 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
11675 * monitor.c (monitor_load): Add 'self' argument.
11676 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
11677
0a4f40a2
TT
116782014-02-19 Tom Tromey <tromey@redhat.com>
11679
11680 * target.h (struct target_ops) <to_terminal_info>: Add argument.
11681 (target_terminal_info): Add argument.
11682 * target.c (debug_to_terminal_info): Add argument.
11683 (default_terminal_info): Likewise.
11684 * inflow.c (child_terminal_info): Add 'self' argument.
11685 * inferior.h (child_terminal_info): Add 'self' argument.
11686 * go32-nat.c (go32_terminal_info): Add 'self' argument.
11687
ae3bd431
TT
116882014-02-19 Tom Tromey <tromey@redhat.com>
11689
11690 * target.h (struct target_ops) <to_terminal_save_ours>: Add
11691 argument.
11692 (target_terminal_save_ours): Add argument.
11693 * target.c (debug_to_terminal_save_ours): Add argument.
11694 (update_current_target): Update.
11695 * inflow.c (terminal_save_ours): Add 'self' argument.
11696 * inferior.h (terminal_save_ours): Add 'self' argument.
11697
e3594fd1
TT
116982014-02-19 Tom Tromey <tromey@redhat.com>
11699
11700 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
11701 (target_terminal_ours): Add argument.
11702 * target.c (debug_to_terminal_ours): Add argument.
11703 (update_current_target): Update.
11704 * remote.c (remote_terminal_ours): Add 'self' argument.
11705 (remote_close): Update.
11706 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
11707 * inflow.c (terminal_ours): Add 'self' argument.
11708 * inferior.h (terminal_ours): Add 'self' argument.
11709 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11710
2e1e1a19
TT
117112014-02-19 Pedro Alves <palves@redhat.com>
11712 Tom Tromey <tromey@redhat.com>
11713
11714 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
11715 argument.
11716 (target_terminal_ours_for_output): Add argument.
11717 * target.c (debug_to_terminal_ours_for_output): Add argument.
11718 (update_current_target): Update.
11719 * inflow.c (terminal_ours_for_output): Add 'self' argument.
11720 * inferior.h (terminal_ours_for_output): Add 'self' argument.
11721 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11722
d2f640d4
TT
117232014-02-19 Tom Tromey <tromey@redhat.com>
11724
11725 * target.h (struct target_ops) <to_terminal_inferior>: Add
11726 argument.
11727 * target.c (target_terminal_inferior): Add argument.
11728 (update_current_target): Update.
11729 * remote.c (remote_terminal_inferior): Add 'self' argument.
11730 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
11731 * inflow.c (terminal_inferior): Add 'self' argument.
11732 * inferior.h (terminal_inferior): Add 'self' argument.
11733 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
11734 (go32_terminal_inferior): Add 'self' argument.
11735
c42bf286
TT
117362014-02-19 Tom Tromey <tromey@redhat.com>
11737
11738 * target.h (struct target_ops) <to_terminal_init>: Add argument.
11739 (target_terminal_init): Add argument.
11740 * target.c (debug_to_terminal_init): Add argument.
11741 (update_current_target): Update.
11742 * inflow.c (terminal_init_inferior): Add 'self' argument.
11743 * inferior.h (terminal_init_inferior): Add 'self' argument.
11744 * go32-nat.c (go32_terminal_init): Add 'self' argument.
11745 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
11746
c3a5ff89
TT
117472014-02-19 Tom Tromey <tromey@redhat.com>
11748
11749 * target.h (struct target_ops)
11750 <to_can_accel_watchpoint_condition>: Add argument.
11751 (target_can_accel_watchpoint_condition): Add argument.
11752 * target.c (debug_to_can_accel_watchpoint_condition): Add
11753 argument.
11754 (update_current_target): Update.
11755 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
11756 'self' argument.
11757
31568a15
TT
117582014-02-19 Tom Tromey <tromey@redhat.com>
11759
11760 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11761 Add argument.
11762 (target_region_ok_for_hw_watchpoint): Add argument.
11763 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
11764 (default_region_ok_for_hw_watchpoint): Add argument.
11765 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
11766 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
11767 argument.
11768 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
11769 argument.
11770 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
11771 argument.
11772 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
11773 'self' argument.
11774 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
11775 'self' argument.
11776 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
11777 'self' argument.
11778 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
11779 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
11780 'self' argument.
11781 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
11782 Add 'self' argument.
11783
7bb99c53
TT
117842014-02-19 Tom Tromey <tromey@redhat.com>
11785
11786 * target.h (struct target_ops) <to_insert_watchpoint>: Add
11787 argument.
11788 (target_insert_watchpoint): Add argument.
11789 * target.c (debug_to_insert_watchpoint): Add argument.
11790 (update_current_target): Update.
11791 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
11792 * remote.c (remote_insert_watchpoint): Add 'self' argument.
11793 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
11794 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
11795 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
11796 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
11797 argument.
11798 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
11799 (procfs_insert_hw_watchpoint): Add 'self' argument.
11800 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
11801 argument.
11802 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
11803 argument.
11804 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
11805 argument.
11806 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
11807 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
11808 argument.
11809 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
11810 'self' argument.
11811
11b5219a
TT
118122014-02-19 Tom Tromey <tromey@redhat.com>
11813
11814 * target.h (struct target_ops) <to_remove_watchpoint>: Add
11815 argument.
11816 (target_remove_watchpoint): Add argument.
11817 * target.c (debug_to_remove_watchpoint): Add argument.
11818 (update_current_target): Update.
11819 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
11820 * remote.c (remote_remove_watchpoint): Add 'self' argument.
11821 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
11822 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
11823 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
11824 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
11825 argument.
11826 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
11827 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
11828 argument.
11829 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
11830 argument.
11831 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
11832 argument.
11833 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
11834 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
11835 argument.
11836 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
11837 'self' argument.
11838
a64dc96c
TT
118392014-02-19 Tom Tromey <tromey@redhat.com>
11840
11841 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
11842 argument.
11843 (target_remove_hw_breakpoint): Add argument.
11844 * target.c (debug_to_remove_hw_breakpoint): Add argument.
11845 (update_current_target): Update.
11846 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
11847 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
11848 argument.
11849 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
11850 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
11851 argument.
11852 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
11853 'self' argument.
11854
23a26771
TT
118552014-02-19 Tom Tromey <tromey@redhat.com>
11856
11857 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
11858 argument.
11859 (target_insert_hw_breakpoint): Add argument.
11860 * target.c (debug_to_insert_hw_breakpoint): Add argument.
11861 (update_current_target): Update.
11862 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
11863 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
11864 argument.
11865 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
11866 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
11867 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
11868 argument.
11869 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
11870 'self' argument.
11871
5461485a
TT
118722014-02-19 Tom Tromey <tromey@redhat.com>
11873
11874 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
11875 argument.
11876 (target_can_use_hardware_watchpoint): Add argument.
11877 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
11878 (update_current_target): Update.
11879 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
11880 argument.
11881 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
11882 argument.
11883 * remote.c (remote_check_watch_resources): Add 'self' argument.
11884 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
11885 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
11886 argument.
11887 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
11888 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
11889 argument.
11890 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
11891 argument.
11892 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
11893 argument.
11894 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
11895 argument.
11896 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
11897 argument.
11898 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
11899 argument.
11900 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
11901 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
11902 argument.
11903 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
11904 'self' argument.
11905
f045800c
TT
119062014-02-19 Tom Tromey <tromey@redhat.com>
11907
11908 * target.h (struct target_ops) <to_post_attach>: Add argument.
11909 (target_post_attach): Add argument.
11910 * target.c (debug_to_post_attach): Add argument.
11911 (update_current_target): Update.
11912 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
11913 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
11914 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
11915 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
11916 * inf-child.c (inf_child_post_attach): Add 'self' argument.
11917
de90e03d
TT
119182014-02-19 Tom Tromey <tromey@redhat.com>
11919
11920 * windows-nat.c (windows_close): Add 'self' argument.
11921 * tracepoint.c (tfile_close): Add 'self' argument.
11922 * target.h (struct target_ops) <to_close>: Add argument.
11923 * target.c (target_close): Add argument.
11924 (update_current_target): Update.
11925 * remote.c (remote_close): Add 'self' argument.
11926 * remote-sim.c (gdbsim_close): Add 'self' argument.
11927 * remote-mips.c (mips_close): Add 'self' argument.
11928 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
11929 * record-full.c (record_full_close): Add 'self' argument.
11930 * record-btrace.c (record_btrace_close): Add 'self' argument.
11931 * monitor.h (monitor_close): Add 'self' argument.
11932 * monitor.c (monitor_close): Add 'self' argument.
11933 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
11934 * linux-nat.c (linux_nat_close): Add argument.
11935 * go32-nat.c (go32_close): Add 'self' argument.
11936 * exec.c (exec_close_1): Add 'self' argument.
11937 * ctf.c (ctf_close): Add 'self' argument.
11938 * corelow.c (core_close): Add 'self' argument.
11939 (core_close_cleanup): Update.
11940 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
11941 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
11942
9dd130a0
TT
119432014-02-19 Tom Tromey <tromey@redhat.com>
11944
11945 * remote.c (remote_load): New function.
11946 (init_remote_ops): Use it.
11947
46917d26
TT
119482014-02-19 Tom Tromey <tromey@redhat.com>
11949
11950 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
11951 argument.
11952 * common/linux-btrace.h (linux_supports_btrace): Update.
11953 * remote.c (remote_supports_btrace): Add "self" argument.
11954 * target-delegates.c: Rebuild.
11955 * target.c (target_supports_btrace): Remove.
11956 * target.h (struct target_ops) <to_supports_btrace>: Add
11957 target_ops argument.
11958 (target_supports_btrace): New define.
11959
6b84065d
TT
119602014-02-19 Tom Tromey <tromey@redhat.com>
11961
11962 * record-full.c (record_full_beneath_to_resume_ops)
11963 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
11964 (record_full_beneath_to_wait)
11965 (record_full_beneath_to_store_registers_ops)
11966 (record_full_beneath_to_store_registers)
11967 (record_full_beneath_to_xfer_partial_ops)
11968 (record_full_beneath_to_xfer_partial)
11969 (record_full_beneath_to_insert_breakpoint_ops)
11970 (record_full_beneath_to_insert_breakpoint)
11971 (record_full_beneath_to_remove_breakpoint_ops)
11972 (record_full_beneath_to_remove_breakpoint)
11973 (record_full_beneath_to_stopped_by_watchpoint)
11974 (record_full_beneath_to_stopped_data_address)
11975 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
11976 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
11977 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
11978 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
11979 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
11980 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
11981 (tmp_to_stopped_data_address, tmp_to_async): Remove.
11982 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
11983 (record_full_resume, record_full_wait_1)
11984 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
11985 (record_full_store_registers, record_full_xfer_partial)
11986 (record_full_insert_breakpoint, record_full_remove_breakpoint)
11987 (record_full_async, record_full_core_xfer_partial): Use target
11988 delegation.
11989 * target-delegates.c: Rebuild.
11990 * target.c (current_xfer_partial): Remove.
11991 (update_current_target): Do not INHERIT or de_fault
11992 to_insert_breakpoint, to_remove_breakpoint,
11993 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
11994 to_is_async_p, to_async. Do not set to_xfer_partial field.
11995 (default_xfer_partial): Simplify.
11996 (current_xfer_partial): Remove.
11997 (target_wait, target_resume): Simplify.
11998 (find_default_can_async_p, find_default_is_async_p): Update.
11999 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
12000 to_xfer_partial, to_stopped_by_watchpoint,
12001 to_stopped_data_address.
12002 (target_store_registers): Simplify.
12003 (forward_target_remove_breakpoint)
12004 (forward_target_insert_breakpoint): Remove.
12005 (target_remove_breakpoint, target_insert_breakpoint)
12006 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
12007 * target.h (struct target_ops) <to_resume, to_wait,
12008 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
12009 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
12010 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
12011 markup.
12012 (forward_target_remove_breakpoint)
12013 (forward_target_insert_breakpoint): Remove.
12014 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
12015 directly.
12016 (record_btrace_insert_breakpoint): Delegate directly.
12017
1101cb7b
TT
120182014-02-19 Tom Tromey <tromey@redhat.com>
12019
12020 PR build/7701:
12021 * target-delegates.c: New file.
12022 * target.c: Include target-delegates.c.
12023 (init_dummy_target): Call install_dummy_methods.
12024 (complete_target_initialization): Call install_delegators.
12025 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
12026 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
12027 * make-target-delegates: New file.
12028
8b06beed
TT
120292014-02-19 Tom Tromey <tromey@redhat.com>
12030
12031 * record.c (find_record_target): Use find_target_at.
12032 * target.c (find_target_at): New function.
12033 * target.h (find_target_at): Declare.
12034
6a109b6b
TT
120352014-02-19 Tom Tromey <tromey@redhat.com>
12036
12037 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
12038 Add 'ops' argument.
12039 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
12040 'ops' argument.
12041 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
12042 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
12043 'ops' argument.
12044 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
12045 argument.
12046 * linux-nat.c (save_sigtrap): Update.
12047 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
12048 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
12049 (linux_nat_close): Update.
12050 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
12051 argument.
12052 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
12053 argument.
12054 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
12055 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
12056 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
12057 (tmp_to_async): Add 'ops' argument.
12058 (record_full_stopped_by_watchpoint, record_full_async)
12059 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
12060 argument.
12061 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
12062 (m32r_stopped_by_watchpoint): Add 'ops' argument.
12063 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
12064 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
12065 (remote_is_async_p, remote_async): Add 'ops' argument.
12066 (remote_stopped_data_address): Update.
12067 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
12068 * target.c (update_current_target)
12069 (find_default_can_async_p, find_default_is_async_p): Update.
12070 (init_dummy_target): Update.
12071 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
12072 * target.h (struct target_ops) <to_stopped_by_watchpoint,
12073 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
12074 (target_can_async_p, target_is_async_p, target_async)
12075 (target_stopped_by_watchpoint): Update.
12076
e095146b
YQ
120772014-02-19 Yao Qi <yao@codesourcery.com>
12078
12079 PR gdb/16220
12080 * gdbarch.sh: Remove startup_gdbarch.
12081 * gdbarch.c: Regenerated.
12082 * gdbarch.h: Likewise.
12083
bc3c6b36
KB
120842014-02-17 Kevin Buettner <kevinb@redhat.com>
12085
12086 * rl78-tdep.c (rl78_g10_register_name): New function.
12087 (rl78_return_value): Add g10 support.
12088 (rl78_gdbarch_init): Register rl78_g10_register_name for the
12089 g10.
12090
98dc0167 120912014-02-17 Doug Evans <xdje42@gmail.com>
f01c1940
DE
12092
12093 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
12094 (SUBDIR_GUILE_SRCS): Ditto.
12095 (scm-gsmob.o): Ditto.
12096
842c05cd
YQ
120972014-02-17 Yao Qi <yao@codesourcery.com>
12098
12099 * gnu-nat.c (ILL_RPC): Declare defined function.
12100
25c0bd04
YQ
121012014-02-17 Yao Qi <yao@codesourcery.com>
12102
12103 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
12104 mach_msg_type_number_t.
12105 (gnu_write_inferior): Likewise.
12106
a9a758e3
YQ
121072014-02-17 Yao Qi <yao@codesourcery.com>
12108
12109 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
12110 in format string.
12111 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
12112 (inf_validate_procs, inf_signal): Likewise.
12113 (S_exception_raise_request): Likewise.
12114 (do_mach_notify_dead_name): Likewise.
12115 (steal_exc_port): Likewise.
12116 (gnu_read_inferior): Change 'copy_count''s type to
12117 mach_msg_type_number_t.
12118 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
12119 format string.
12120
bae8023e
TS
121212014-02-16 Thomas Schwinge <thomas@codesourcery.com>
12122
c82f56d9
TS
12123 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
12124 flag. Adjust all users; in particular...
12125 (gnu_wait): ..., don't decrement its value in here...
12126 (gnu_create_inferior): ..., and instead set the flag in here,
12127 around the startup_inferior call, and call that one with
12128 START_INFERIOR_TRAPS_EXPECTED.
12129
3398af6a
TS
12130 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
12131 (ILL_RPC): ... new macro.
12132 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
12133 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
12134 (do_mach_notify_send_once, S_proc_setmsgport_reply)
12135 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
12136 functions with ILL_RPC macro.
12137 (S_proc_pid2task_reply, S_proc_task2pid_reply)
12138 (S_proc_task2proc_reply, S_proc_proc2task_reply)
12139 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
12140 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
12141 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
12142 (S_proc_getlogin_reply, S_proc_getsid_reply)
12143 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
12144 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
12145 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
12146 (S_proc_getnports_reply, S_proc_is_important_reply)
12147 (S_proc_get_code_reply): New stub functions, generated with
12148 ILL_RPC macro.
12149
d47642c9
TS
12150 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
12151 collected the type check structures.
12152
bae8023e
TS
12153 * reply_mig_hack.awk: Don't expect to see the auto keyword.
12154
8a55ffb0
DE
121552014-02-14 Doug Evans <dje@google.com>
12156
12157 * target.c (target_write_partial): Fix result type.
12158
c2853f3d
JM
121592014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
12160
12161 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
12162 the proper offsets to access fpregset_t.
12163
ac61d2db
SA
121642014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
12165
12166 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
12167 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
12168 * h8300-tdep.c (setmachinelist): Remove global.
12169 * hppa-tdep.c (hppa_sigtramp): Remove global.
12170 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
12171 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
12172 * ravenscar-thread.c (update_target_observer): Remove global.
12173 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
12174
9d2d0b8b
TT
121752014-02-12 Tom Tromey <tromey@redhat.com>
12176
12177 * common/rsp-low.c: Update comments.
12178 * common/rsp-low.h: Update comments.
12179
a7191e8b
TT
121802014-02-12 Tom Tromey <tromey@redhat.com>
12181
12182 * common/rsp-low.c (convert_ascii_to_int): Remove.
12183 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
12184
ff0e980e
TT
121852014-02-12 Tom Tromey <tromey@redhat.com>
12186
12187 * common/rsp-low.h (unhexify): Don't declare.
12188 * common/rsp-low.c (unhexify): Remove.
12189
e9371aff
TT
121902014-02-12 Tom Tromey <tromey@redhat.com>
12191
12192 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
12193 * common/rsp-low.c (convert_int_to_ascii): Remove.
12194
971dc0b8
TT
121952014-02-12 Tom Tromey <tromey@redhat.com>
12196
12197 * common/rsp-low.h (hexify): Don't declare.
12198 * common/rsp-low.c (hexify): Remove.
12199
0a822afb
TT
122002014-02-12 Tom Tromey <tromey@redhat.com>
12201
12202 * common/rsp-low.c (hexify): Never take strlen of argument.
12203
9f1b45b0
TT
122042014-02-12 Tom Tromey <tromey@redhat.com>
12205
12206 * common/rsp-low.c (bin2hex): Never take strlen of argument.
12207 * remote.c (extended_remote_run, remote_rcmd)
12208 (remote_download_trace_state_variable, remote_save_trace_data)
12209 (remote_set_trace_notes): Update.
12210 * tracepoint.c (encode_source_string, tfile_write_status)
12211 (tfile_write_uploaded_tsv): Update.
12212
9c3d6531
TT
122132014-02-12 Tom Tromey <tromey@redhat.com>
12214
12215 * tracepoint.c: Include rsp-low.h.
12216 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
12217 * remote.c: Include rsp-low.h.
12218 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
12219 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
12220 (remote_unescape_input): Move to common/rsp-low.c.
12221 * common/rsp-low.h: New file.
12222 * common/rsp-low.c: New file.
12223 * Makefile.in (SFILES): Add common/rsp-low.c.
12224 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
12225 (COMMON_OBS): Add rsp-low.o.
12226 (rsp-low.o): New target.
12227
01fd3ea5
TT
122282014-02-12 Tom Tromey <tromey@redhat.com>
12229
12230 * utils.h: Include print-utils.h.
12231 (host_address_to_string, plongest, pulongest, phex, phex_nz)
12232 (int_string, core_addr_to_string, core_addr_to_string_nz)
12233 (hex_string, hex_string_custom): Don't declare.
12234 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
12235 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
12236 (hex_string_custom, int_string, core_addr_to_string)
12237 (core_addr_to_string_nz, host_address_to_string): Move to
12238 common/print-utils.c.
12239 * common/print-utils.h: New file.
12240 * common/print-utils.c: New file
12241 * Makefile.in (SFILES): Add common/print-utils.c.
12242 (HFILES_NO_SRCDIR): Add common/print-utils.h.
12243 (COMMON_OBS): Add print-utils.o.
12244 (print-utils.o): New target.
12245
9fb50108
TT
122462014-02-12 Tom Tromey <tromey@redhat.com>
12247
12248 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
12249
0548b5db
MK
122502014-02-12 Mark Kettenis <kettenis@gnu.org>
12251
12252 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
12253
493443a4
MK
122542014-02-12 Mark Kettenis <kettenis@gnu.org>
12255
12256 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
12257 if a PT_IO ptrace request returns sucessfully but indicates that 0
12258 bytes were transferred.
12259
706d0883
PA
122602014-02-12 Pedro Alves <palves@redhat.com>
12261 Kevin Buettner <kevinb@redhat.com>
12262
12263 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
12264 TYPE_INSTANCE_FLAG_CODE_SPACE.
12265
5caa2f0b
PA
122662014-02-12 Pedro Alves <palves@redhat.com>
12267
12268 * h8300-tdep.c (pseudo_from_raw_register)
12269 (raw_from_pseudo_register): New functions.
12270 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
12271 them.
12272
76fd5f74
PA
122732014-02-12 Pedro Alves <palves@redhat.com>
12274
12275 * h8300-tdep.c (h8300_register_sim_regno): New function.
12276 (h8300_gdbarch_init): Install h8300_register_sim_regno as
12277 gdbarch_register_sim_regno hook.
12278
8f008406
SA
122792014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
12280
12281 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
12282
195abc10
SA
122832014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
12284
12285 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
12286
93ffa5b9
MK
122872014-02-12 Mark Kettenis <kettenis@gnu.org>
12288
12289 * obsd-tdep.h (obsd_init_abi): New prototype.
12290 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
12291 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
12292 (obsd_init_abi): New functions.
12293 * i386obsd-tdep.c: Include "obsd-tdep.h".
12294 (i386obsd_init_abi): Call obsd_init_abi.
12295 * amd64obsd-tdep.c: Include "obsd-tdep.h".
12296 (amd64obsd_init_abi): Call obsd_init_abi.
12297 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
12298 obsd-tdep.c to gdb_target_obs.
12299
49caec94
JM
123002014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
12301
12302 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
12303 double float arguments to 16-byte in the argument slots.
12304
e1402065
DE
123052014-02-11 Doug Evans <xdje42@gmail.com>
12306
12307 * configure.ac: Don't crash if pkg-config is not found and guile
12308 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
12309 in guile checks.
12310 * configure: Regenerate.
12311
edcc890f
YQ
123122014-02-11 Yao Qi <yao@codesourcery.com>
12313
12314 * aix-thread.c (aix_thread_xfer_partial): Update comments.
12315 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
12316 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
12317 * gnu-nat.c (gnu_xfer_memory): Likewise.
12318 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
12319 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12320 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12321 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12322
9b409511
YQ
123232014-02-11 Yao Qi <yao@codesourcery.com>
12324
12325 * target.h (enum target_xfer_error): Rename to ...
12326 (enum target_xfer_status): ... it. New. All users updated.
12327 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
12328 New.
12329 (TARGET_XFER_STATUS_ERROR_P): New macro.
12330 (target_xfer_error_to_string): Remove declaration.
12331 (target_xfer_status_to_string): Declare.
12332 (target_xfer_partial_ftype): Adjust it.
12333 (struct target_ops) <to_xfer_partial>: Return
12334 target_xfer_status. Add argument xfered_len. Update
12335 comments.
12336 * target.c (target_xfer_error_to_string): Rename to ...
12337 (target_xfer_status_to_string): ... it. New. All callers
12338 updated.
12339 (target_read_live_memory): Likewise. Call target_xfer_partial
12340 instead of target_read.
12341 (memory_xfer_live_readonly_partial): Return
12342 target_xfer_status. Add argument xfered_len.
12343 (raw_memory_xfer_partial): Likewise.
12344 (memory_xfer_partial_1): Likewise.
12345 (memory_xfer_partial): Likewise.
12346 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
12347 properly. Update debug message.
12348 (default_xfer_partial, current_xfer_partial): Likewise.
12349 (target_write_partial): Likewise.
12350 (target_read_partial): Likewise. All callers updated.
12351 (read_whatever_is_readable): Likewise.
12352 (target_write_with_progress): Likewise.
12353 (target_read_alloc_1): Likewise.
12354
12355 * aix-thread.c (aix_thread_xfer_partial): Likewise.
12356 * auxv.c (procfs_xfer_auxv): Likewise.
12357 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
12358 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12359 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12360 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
12361 * corefile.c (read_memory): Adjust.
12362 * corelow.c (core_xfer_partial): Likewise.
12363 * ctf.c (ctf_xfer_partial): Likewise.
12364 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
12365 updated.
12366 (darwin_xfer_partial): Likewise.
12367 * exec.c (section_table_xfer_memory_partial): Likewise. All
12368 callers updated.
12369 (exec_xfer_partial): Likewise.
12370 * exec.h (section_table_xfer_memory_partial): Update
12371 declaration.
12372 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
12373 negative.
12374 (gnu_xfer_partial): Likewise.
12375 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
12376 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
12377 (ia64_hpux_xfer_solib_got): Likewise.
12378 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
12379 type of 'partial_len' to ULONGEST.
12380 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
12381 * linux-nat.c (linux_xfer_siginfo ): Likewise.
12382 (linux_nat_xfer_partial): Likewise.
12383 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
12384 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
12385 * monitor.c (monitor_xfer_memory): Likewise.
12386 (monitor_xfer_partial): Likewise.
12387 * procfs.c (procfs_xfer_partial): Likewise.
12388 * record-btrace.c (record_btrace_xfer_partial): Likewise.
12389 * record-full.c (record_full_xfer_partial): Likewise.
12390 (record_full_core_xfer_partial): Likewise.
12391 * remote-sim.c (gdbsim_xfer_memory): Likewise.
12392 (gdbsim_xfer_partial): Likewise.
12393 * remote.c (remote_write_bytes_aux): Likewise. All callers
12394 updated.
12395 (remote_write_bytes, remote_read_bytes): Likewise. All
12396 callers updated.
12397 (remote_flash_erase): Likewise. All callers updated.
12398 (remote_write_qxfer): Likewise. All callers updated.
12399 (remote_read_qxfer): Likewise. All callers updated.
12400 (remote_xfer_partial): Likewise.
12401 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12402 (rs6000_xfer_shared_libraries): Likewise.
12403 * sol-thread.c (sol_thread_xfer_partial): Likewise.
12404 (sol_thread_xfer_partial): Likewise.
12405 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12406 (sparc_xfer_partial): Likewise.
12407 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
12408 updated.
12409 (spu_xfer_partial): Likewise.
12410 * spu-multiarch.c (spu_xfer_partial): Likewise.
12411 * tracepoint.c (tfile_xfer_partial): Likewise.
12412 * windows-nat.c (windows_xfer_memory): Likewise.
12413 (windows_xfer_shared_libraries): Likewise.
12414 (windows_xfer_partial): Likewise.
12415 * valprint.c: Replace 'target_xfer_error' with
12416 'target_xfer_status' in comments.
12417
a8e63083
JB
124182014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
12419
12420 Checked in by Joel Brobecker <brobecker@adacore.com>.
12421 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
12422
e86b67d3
JB
124232014-02-11 Joel Brobecker <brobecker@adacore.com>
12424
12425 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
12426 function parameters.
12427
4b7d1f7f
WN
124282014-02-10 Will Newton <will.newton@linaro.org>
12429
12430 * elfread.c (elf_rel_plt_read): Look for a .got section if
12431 looking up .got.plt fails.
12432 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
12433 on address passed to elf_gnu_ifunc_record_cache.
12434 (elf_gnu_ifunc_resolve_addr): Likewise.
12435 (elf_gnu_ifunc_resolver_return_stop): Likewise.
12436
961842b2
JM
124372014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
12438
12439 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
12440 (X_RETTURN): New macro.
12441 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
12442
12443 * sparc64-tdep.c (sparc64_init_abi): Hook
12444 sparc_in_function_epilogue_p.
12445
3f03e7b1
GB
124462014-02-10 Gary Benson <gbenson@redhat.com>
12447
12448 * symfile-debug.c (debug_qf_expand_symtabs_matching):
12449 Rename name_matcher to symbol_matcher.
12450
96f861ef
GB
124512014-02-10 Gary Benson <gbenson@redhat.com>
12452
12453 * symfile-debug.c (debug_qf_expand_symtabs_matching):
12454 Use expand_symtabs_file_matcher_ftype and
12455 expand_symtabs_symbol_matcher_ftype.
12456
ee01b665
JB
124572014-02-10 Joel Brobecker <brobecker@adacore.com>
12458
12459 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
12460 (struct ada_symbol_cache): New.
12461 (ada_free_symbol_cache): Forward declare.
12462 (struct ada_pspace_data): New.
12463 (ada_pspace_data_handle): New static global.
12464 (get_ada_pspace_data, ada_pspace_data_cleanup)
12465 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
12466 (cache_space, cache): Delete, now folded inside struct
12467 ada_pspace_data.
12468 (ada_get_symbol_cache): New function.
12469 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
12470 implementation.
12471 (_initialize_ada_language): Remove initialization of cache_space.
12472 Move call to observer_attach_inferior_exit up, grouping it
12473 with the other observer registrations inside this function.
12474 Rename command to be more general. Add call to
12475 register_program_space_data_with_cleanup.
12476
143adbbf
JB
124772014-02-10 Joel Brobecker <brobecker@adacore.com>
12478
12479 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
12480 ada_new_objfile_observer.
12481 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
12482 (_initialize_tasks): Update uses of ada_new_objfile_observer
12483 and ada_tasks_normal_stop_observer.
12484
aa4fb036
JB
124852014-02-10 Joel Brobecker <brobecker@adacore.com>
12486
12487 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
12488 returned by the 'Length attribute to integer.
12489
9dee8cc6
JB
124902014-02-10 Joel Brobecker <brobecker@adacore.com>
12491
12492 * ada-lang.c (_initialize_ada_language): Initialize
12493 cache_space obstack.
12494
3d9434b5
JB
124952014-02-10 Joel Brobecker <brobecker@adacore.com>
12496
12497 * ada-lang.c (HASH_SIZE): New macro.
12498 (struct cache_entry): New type.
12499 (cache_space, cache): New static globals.
12500 (ada_clear_symbol_cache, find_entry): New functions.
12501 (lookup_cached_symbol, cache_symbol): Implement.
12502 (ada_new_objfile_observer, ada_free_objfile_observer): New.
12503 (_initialize_ada_language): Attach ada_new_objfile_observer
12504 and ada_free_objfile_observer.
12505
f0c5f9b2
JB
125062014-02-10 Joel Brobecker <brobecker@adacore.com>
12507
12508 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
12509 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
12510 struct block * parameter.
12511 (ada_lookup_symbol_list_worker): Constify local variable "block".
12512 Remove cast which is no longer necessary.
12513
ed3ef339
DE
125142014-02-10 Doug Evans <xdje42@gmail.com>
12515
12516 Add Guile as an extension language.
12517 * NEWS: Mention Guile scripting.
12518 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
12519 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
12520 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
12521 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
12522 (CLIBS): Add GUILE_LIBS.
12523 (install-guile): New rule.
12524 (guile.o): New rule.
12525 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
12526 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
12527 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
12528 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
12529 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
12530 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
12531 (scm-type.o, scm-utils.o, scm-value.o): New rules.
12532 * configure.ac: New option --with-guile.
12533 * configure: Regenerate.
12534 * config.in: Regenerate.
12535 * auto-load.c: Remove #include "python/python.h". Add #include
12536 "gdb/section-scripts.h".
12537 (source_section_scripts): Handle Guile scripts.
12538 (_initialize_auto_load): Add name of Guile objfile script to
12539 scripts-directory help text.
12540 * breakpoint.c (condition_command): Tweak comment to include Scheme.
12541 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
12542 (struct breakpoint): New member scm_bp_object.
12543 * defs.h (enum command_control_type): New value guile_control.
12544 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
12545 "extension.h".
12546 (show_user): Update comment.
12547 (_initialize_cli_cmds): Update help text for "show user". Update help
12548 text for max-user-call-depth.
12549 * cli/cli-script.c: Remove #include "python/python.h". Add #include
12550 "extension.h".
12551 (multi_line_command_p): Add guile_control.
12552 (print_command_lines): Handle guile_control.
12553 (execute_control_command, recurse_read_control_structure): Ditto.
12554 (process_next_line): Recognize "guile" commands.
12555 * disasm.c (gdb_disassemble_info): Make non-static.
12556 * disasm.h: #include "dis-asm.h".
12557 (struct gdbarch): Add forward decl.
12558 (gdb_disassemble_info): Declare.
12559 * extension.c: #include "guile/guile.h".
12560 (extension_languages): Add guile.
12561 (get_ext_lang_defn): Handle EXT_LANG_GDB.
12562 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
12563 * gdbtypes.c (get_unsigned_type_max): New function.
12564 (get_signed_type_minmax): New function.
12565 * gdbtypes.h (get_unsigned_type_max): Declare.
12566 (get_signed_type_minmax): Declare.
12567 * guile/README: New file.
12568 * guile/guile-internal.h: New file.
12569 * guile/guile.c: New file.
12570 * guile/guile.h: New file.
12571 * guile/scm-arch.c: New file.
12572 * guile/scm-auto-load.c: New file.
12573 * guile/scm-block.c: New file.
12574 * guile/scm-breakpoint.c: New file.
12575 * guile/scm-disasm.c: New file.
12576 * guile/scm-exception.c: New file.
12577 * guile/scm-frame.c: New file.
12578 * guile/scm-gsmob.c: New file.
12579 * guile/scm-iterator.c: New file.
12580 * guile/scm-lazy-string.c: New file.
12581 * guile/scm-math.c: New file.
12582 * guile/scm-objfile.c: New file.
12583 * guile/scm-ports.c: New file.
12584 * guile/scm-pretty-print.c: New file.
12585 * guile/scm-safe-call.c: New file.
12586 * guile/scm-string.c: New file.
12587 * guile/scm-symbol.c: New file.
12588 * guile/scm-symtab.c: New file.
12589 * guile/scm-type.c: New file.
12590 * guile/scm-utils.c: New file.
12591 * guile/scm-value.c: New file.
12592 * guile/lib/gdb.scm: New file.
12593 * guile/lib/gdb/boot.scm: New file.
12594 * guile/lib/gdb/experimental.scm: New file.
12595 * guile/lib/gdb/init.scm: New file.
12596 * guile/lib/gdb/iterator.scm: New file.
12597 * guile/lib/gdb/printing.scm: New file.
12598 * guile/lib/gdb/types.scm: New file.
12599 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
12600 (VPATH): Add $(GUILE_SRCDIR).
12601 (GUILE_DIR): New variable.
12602 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
12603 (all): Add stamp-guile dependency.
12604 (stamp-guile): New rule.
12605 (clean-guile, install-guile, uninstall-guile): New rules.
12606 (install-only): Add install-guile dependency.
12607 (uninstall): Add uninstall-guile dependency.
12608 (clean): Add clean-guile dependency.
12609
ac020ec5
DE
126102014-02-09 Doug Evans <xdje42@gmail.com>
12611
12612 Revert this patch (which I approved, mea culpa).
12613
12614 2014-02-08 Mark Kettenis <kettenis@gnu.org>
12615
12616 * Makefile.in (all-lib): Remove.
12617 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12618
2a081c59
JK
126192014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
12620
12621 Fix Python stack corruption.
12622 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
12623 gdb_py_longest.
12624
0a6bd22d
MK
126252014-02-08 Mark Kettenis <kettenis@gnu.org>
12626
12627 * Makefile.in (all-lib): Remove.
12628 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12629
1a860409
DE
126302014-02-07 Doug Evans <dje@google.com>
12631
12632 * extension-priv.h (extension_language_script_ops): Add comment.
12633 (extension_language_ops): Add comment.
caf5a491 12634 (active_ext_lang_state): Fix typo in comment.
1a860409 12635
d137e6dc
PA
126362014-02-07 Pedro Alves <palves@redhat.com>
12637
0dcb32c3 12638 PR breakpoints/16292
d137e6dc
PA
12639 * infrun.c (handle_signal_stop) <signal arrives while stepping
12640 over a breakpoint>: Switch back to the stepping thread.
12641
ce6d0892
YQ
126422014-02-07 Yao Qi <yao@codesourcery.com>
12643
12644 * target.c (target_xfer_partial): Return zero if LEN is zero.
12645
2ed4b548
YQ
126462014-02-07 Yao Qi <yao@codesourcery.com>
12647
12648 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
12649 (ld_so_xfer_auxv): Likewise.
12650 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12651 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12652 * corelow.c (core_xfer_partial): Likewise.
12653 * ctf.c (ctf_xfer_partial): Likewise.
12654 * darwin-nat.c (darwin_read_dyld_info): Likewise.
12655 (darwin_xfer_partial): Likewise.
12656 * exec.c (exec_xfer_partial): Likewise.
12657 * gnu-nat.c (gnu_xfer_partial): Likewise.
12658 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
12659 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
12660 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
12661 * linux-nat.c (linux_xfer_siginfo): Likewise.
12662 (linux_proc_xfer_spu): Likewise.
12663 * procfs.c (procfs_xfer_partial): Likewise.
12664 * record-full.c (record_full_xfer_partial): Likewise.
12665 (record_full_core_xfer_partial): Likewise.
12666 * remote-sim.c (gdbsim_xfer_partial): Likewise.
12667 * remote.c (remote_write_qxfer): Likewise.
12668 (remote_write_qxfer, remote_read_qxfer): Likewise.
12669 (remote_xfer_partial): Likewise.
12670 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12671 (rs6000_xfer_shared_libraries): Likewise.
12672 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12673 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12674 (spu_xfer_partial): Likewise.
12675 * target.c (memory_xfer_partial_1): Likewise.
12676 * tracepoint.c (tfile_xfer_partial): Likewise.
12677 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
12678 (windows_xfer_partial): Likewise.
12679
c09f20e4
YQ
126802014-02-07 Yao Qi <yao@codesourcery.com>
12681
12682 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
12683 comments.
12684 (core_xfer_shared_libraries_aix): Likewise.
12685 * gdbarch.c, gdbarch.h: Regenerated.
12686 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
12687 ULONGEST. Change 'len_avail' type to ULONGEST.
12688 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12689 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12690 declaration.
12691 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
12692
8635b3bf
YQ
126932014-02-07 Yao Qi <yao@codesourcery.com>
12694
12695 * corefile.c (memory_error): Get 'exception' from ERR and pass
12696 'exception' to throw_error.
12697
6dddc817
DE
126982014-02-06 Doug Evans <xdje42@gmail.com>
12699
12700 * configure.ac (libpython checking): Remove all but python.o from
12701 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
12702 * configure: Regenerate.
12703
12704 * Makefile.in (SFILES): Add extension.c.
12705 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
12706 (COMMON_OBS): Add extension.o.
12707 * extension.h: New file.
12708 * extension-priv.h: New file.
12709 * extension.c: New file.
12710
12711 * python/python-internal.h: #include "extension.h".
12712 (gdbpy_auto_load_enabled): Declare.
12713 (gdbpy_apply_val_pretty_printer): Declare.
12714 (gdbpy_apply_frame_filter): Declare.
12715 (gdbpy_preserve_values): Declare.
12716 (gdbpy_breakpoint_cond_says_stop): Declare.
12717 (gdbpy_breakpoint_has_cond): Declare.
12718 (void source_python_script_for_objfile): Delete.
12719 * python/python.c: #include "extension-priv.h".
12720 Delete inclusion of "observer.h".
12721 (extension_language_python): Moved here and renamed from
12722 script_language_python in py-auto-load.c.
12723 Redefined to be of type extension_language_defn.
12724 (python_extension_script_ops): New global.
12725 (python_extension_ops): New global.
12726 (struct python_env): New member previous_active.
12727 (restore_python_env): Call restore_active_ext_lang.
12728 (ensure_python_env): Call set_active_ext_lang.
12729 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
12730 New arg extlang.
12731 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
12732 New arg extlang.
12733 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
12734 New arg extlang.
12735 (gdbpy_eval_from_control_command): Renamed from
12736 eval_python_from_control_command, made static. New arg extlang.
12737 (gdbpy_source_script) Renamed from source_python_script, made static.
12738 New arg extlang.
12739 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
12740 result to int. New arg extlang.
12741 (gdbpy_source_objfile_script): Renamed from
12742 source_python_script_for_objfile, made static. New arg extlang.
12743 (gdbpy_start_type_printers): Renamed from start_type_printers, made
12744 static. New args extlang, extlang_printers. Change result type to
12745 "void".
12746 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
12747 static. New arg extlang. Rename arg printers to extlang_printers
12748 and change type to ext_lang_type_printers *.
12749 (gdbpy_free_type_printers): Renamed from free_type_printers, made
12750 static. Replace argument arg with extlang, extlang_printers.
12751 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
12752 (!HAVE_PYTHON, source_python_script): Delete.
12753 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
12754 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
12755 (!HAVE_PYTHON, start_type_printers): Delete.
12756 (!HAVE_PYTHON, apply_type_printers): Delete.
12757 (!HAVE_PYTHON, free_type_printers): Delete.
12758 (_initialize_python): Delete call to observer_attach_before_prompt.
12759 (finalize_python): Set/restore active extension language.
12760 (gdbpy_finish_initialization) Renamed from
12761 finish_python_initialization, made static. New arg extlang.
12762 (gdbpy_initialized): New function.
12763 * python/python.h: #include "extension.h". Delete #include
12764 "value.h", "mi/mi-cmds.h".
12765 (extension_language_python): Declare.
12766 (GDBPY_AUTO_FILE_NAME): Delete.
12767 (enum py_bt_status): Moved to extension.h and renamed to
12768 ext_lang_bt_status.
12769 (enum frame_filter_flags): Moved to extension.h.
12770 (enum py_frame_args): Moved to extension.h and renamed to
12771 ext_lang_frame_args.
12772 (finish_python_initialization): Delete.
12773 (eval_python_from_control_command): Delete.
12774 (source_python_script): Delete.
12775 (apply_val_pretty_printer): Delete.
12776 (apply_frame_filter): Delete.
12777 (preserve_python_values): Delete.
12778 (gdbpy_script_language_defn): Delete.
12779 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
12780 (start_type_printers, apply_type_printers, free_type_printers): Delete.
12781
12782 * auto-load.c: #include "extension.h".
12783 (GDB_AUTO_FILE_NAME): Delete.
12784 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
12785 (script_language_gdb): Delete, moved to extension.c and renamed to
12786 extension_language_gdb.
12787 (source_gdb_script_for_objfile): Delete.
12788 (auto_load_pspace_info): New member unsupported_script_warning_printed.
12789 (loaded_script): Change type of language member to
12790 struct extension_language_defn *.
12791 (init_loaded_scripts_info): Initialize
12792 unsupported_script_warning_printed.
12793 (maybe_add_script): Make static. Change type of language arg to
12794 struct extension_language_defn *.
12795 (clear_section_scripts): Reset unsupported_script_warning_printed.
12796 (auto_load_objfile_script_1): Rewrite to use extension language API.
12797 (auto_load_objfile_script): Make public. Remove support-compiled-in
12798 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
12799 (source_section_scripts): Rewrite to use extension language API.
12800 (load_auto_scripts_for_objfile): Rewrite to use
12801 auto_load_scripts_for_objfile.
12802 (collect_matching_scripts_data): Change type of language member to
12803 struct extension_language_defn *.
12804 (auto_load_info_scripts): Change type of language arg to
12805 struct extension_language_defn *.
12806 (unsupported_script_warning_print): New function.
12807 (script_not_found_warning_print): Make static.
12808 (_initialize_auto_load): Rewrite construction of scripts-directory
12809 help.
12810 * auto-load.h (struct objfile): Add forward decl.
12811 (struct script_language): Delete.
12812 (struct auto_load_pspace_info): Add forward decl.
12813 (struct extension_language_defn): Add forward decl.
12814 (maybe_add_script): Delete.
12815 (auto_load_objfile_script): Declare.
12816 (script_not_found_warning_print): Delete.
12817 (auto_load_info_scripts): Update prototype.
12818 (auto_load_gdb_scripts_enabled): Declare.
12819 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
12820 auto_load_python_scripts_enabled and made public.
12821 (script_language_python): Delete, moved to python.c.
12822 (gdbpy_script_language_defn): Delete.
12823 (info_auto_load_python_scripts): Update to use
12824 extension_language_python.
12825
12826 * breakpoint.c (condition_command): Replace call to
12827 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
12828 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
12829 with call to breakpoint_ext_lang_cond_says_stop.
12830 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
12831 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
12832 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
12833 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
12834 New arg slang.
12835 (local_setattro): Print name of extension language with existing
12836 stop condition.
12837
12838 * valprint.c (val_print, value_print): Update to call
12839 apply_ext_lang_val_pretty_printer.
12840 * cp-valprint.c (cp_print_value): Update call to
12841 apply_ext_lang_val_pretty_printer.
12842 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
12843 (gdbpy_apply_val_pretty_printer): Renamed from
12844 apply_val_pretty_printer. New arg extlang.
12845 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
12846
12847 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
12848 extension language API.
12849 * cli/cli-script.c (execute_control_command): Update to call
12850 eval_ext_lang_from_control_command.
12851
12852 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
12853 enum ext_lang_bt_status values. Update call to
12854 apply_ext_lang_frame_filter.
12855 (mi_cmd_stack_list_locals): Ditto.
12856 (mi_cmd_stack_list_args): Ditto.
12857 (mi_cmd_stack_list_variables): Ditto.
12858 * mi/mi-main.c: Delete #include "python/python-internal.h".
12859 Add #include "extension.h".
12860 (mi_cmd_list_features): Replace reference to python internal variable
12861 gdb_python_initialized with call to ext_lang_initialized_p.
12862
12863 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
12864 Update to use enum ext_lang_frame_args. Update to call
12865 apply_ext_lang_frame_filter.
12866 * python/py-framefilter.c (extract_sym): Update to use enum
12867 ext_lang_bt_status.
12868 (extract_value, py_print_type, py_print_value): Ditto.
12869 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
12870 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
12871 (py_print_frame): Ditto.
12872 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
12873 New arg extlang. Update to use enum ext_lang_bt_status.
12874
12875 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
12876 finish_python_initialization. Replace with call to
12877 finish_ext_lang_initialization.
12878
12879 * typeprint.c (do_free_global_table): Update to call
12880 free_ext_lang_type_printers.
12881 (create_global_typedef_table): Update to call
12882 start_ext_lang_type_printers.
12883 (find_global_typedef): Update to call apply_ext_lang_type_printers.
12884 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
12885 (type_print_options): Change type of global_printers from "void *"
12886 to "struct ext_lang_type_printers *".
12887
12888 * value.c (preserve_values): Update to call preserve_ext_lang_values.
12889 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
12890 (gdbpy_preserve_values): Renamed from preserve_python_values.
12891 New arg extlang.
12892 (!HAVE_PYTHON, preserve_python_values): Delete.
12893
12894 * utils.c (quit_flag): Delete, moved to extension.c.
12895 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
12896 extension.c.
12897
12898 * eval.c: Delete #include "python/python.h".
12899 * main.c: Delete #include "python/python.h".
12900
12901 * defs.h: Update comment.
12902
6af79985
JB
129032014-02-06 Joel Brobecker <brobecker@adacore.com>
12904
12905 GDB 7.7 released.
12906
12c5175d
MK
129072014-02-05 Mark Kettenis <kettenis@gnu.org>
12908
12909 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
12910 defined.
12911
8dc5b319
YQ
129122014-02-05 Yao Qi <yao@codesourcery.com>
12913
12914 * remote.c (remote_pass_signals): Remove local 'buf' and use
12915 rs->buf.
12916 (remote_program_signals): Likewise.
12917
de7b2893
YQ
129182014-02-05 Yao Qi <yao@codesourcery.com>
12919
12920 * ctf.c: Include "inferior.h" and "gdbthread.h".
12921 (CTF_PID): A new macro.
12922 (ctf_open): Call inferior_appeared and add_thread_silent.
12923 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
12924 (ctf_thread_alive): New function.
12925 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
12926
66d032ac
YQ
129272014-02-05 Yao Qi <yao@codesourcery.com>
12928
12929 Revert this patch:
12930
12931 2013-05-24 Yao Qi <yao@codesourcery.com>
12932
12933 * tracepoint.c (TFILE_PID): Remove.
12934 (tfile_open): Don't add thread and inferior.
12935 (tfile_close): Don't set 'inferior_ptid'. Don't call
12936 exit_inferior_silent.
12937 (tfile_thread_alive): Remove.
12938 (init_tfile_ops): Don't set field 'to_thread_alive' of
12939 tfile_ops.
12940
f4ccffad
CE
129412014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
12942
12943 * remote.c (remote_start_remote): Call remote_check_symbols even
12944 if only symbol-file (not file) has been given.
12945
591a12a1
UW
129462014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12947
12948 * gdbarch.sh (skip_entrypoint): New callback.
12949 * gdbarch.c, gdbarch.h: Regenerate.
12950 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
12951 * infrun.c (fill_in_stop_func): Likewise.
12952 * ppc-linux-tdep.c: Include "elf/ppc64.h".
12953 (ppc_elfv2_elf_make_msymbol_special): New function.
12954 (ppc_elfv2_skip_entrypoint): Likewise.
12955 (ppc_linux_init_abi): Install them for ELFv2.
12956
cc0e89c5
UW
129572014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12958
12959 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
12960 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
12961 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
12962 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
12963 structures returned in GPRs.
12964
52f548e4
UW
129652014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12966
12967 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
12968 offset to the stack parameter list for the ELFv2 ABI.
12969
d4094b6a
UW
129702014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12971
12972 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
12973 set_gdbarch_convert_from_func_ptr_addr and
12974 set_gdbarch_elf_make_msymbol_special for ELFv1.
12975 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
12976 function descriptors on ELFv1.
12977 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
12978 set up r12 at function entry.
12979
cd453cd0
UW
129802014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12981
12982 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
12983 (struct gdbarch_tdep): New member elf_abi.
12984
12985 * rs6000-tdep.c: Include "elf/ppc64.h".
12986 (rs6000_gdbarch_init): Detect ELF ABI version.
12987
0ff3e01f
UW
129882014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12989
12990 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
12991 within a register pair holding a DFP 128-bit value on little-endian.
12992 (ppc64_sysv_abi_return_value_base): Likewise.
12993 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
12994 (dfp_pseudo_register_write): Likewise.
12995
5b757e5d
UW
129962014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12997
12998 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
12999 offset on little-endian when passing _Decimal32.
13000 (ppc64_sysv_abi_return_value_base): Likewise for return values.
13001
084ee545
UW
130022014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13003
13004 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
13005 of the overlapped FP register within the VSX register on little-
13006 endian platforms.
13007 (efpr_pseudo_register_write): Likewise.
13008
d63167af
UW
130092014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13010
13011 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
13012 offset on little-endian when passing small structures.
13013
e765b44c
UW
130142014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13015
13016 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
13017 (struct ppc64_sysv_argpos): New data structure.
13018 (ppc64_sysv_abi_push_float): Remove.
13019 (ppc64_sysv_abi_push_val): New function.
13020 (ppc64_sysv_abi_push_integer): Likewise.
13021 (ppc64_sysv_abi_push_freg): Likewise.
13022 (ppc64_sysv_abi_push_vreg): Likewise.
13023 (ppc64_sysv_abi_push_param): Likewise.
13024 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
13025 (ppc64_sysv_abi_return_value_base): New function.
13026 (ppc64_sysv_abi_return_value): Refactor to use it.
13027
36c24d95
UW
130282014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13029
13030 * NEWS: Document new target powerpc64le-*-linux*.
13031
26fd9228
MK
130322014-02-04 Mark Kettenis <kettenis@gnu.org>
13033
13034 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
13035 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
13036 core dumps.
13037 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
13038 register set used in ELF core dumps. Add floating-point register set.
13039
c5bb7362
KB
130402014-02-03 Kevin Buettner <kevinb@redhat.com>
13041
74228e77 13042 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
c5bb7362
KB
13043 dwarf2_to_gdb[] table using symbolic constants. Adjust
13044 penultimate entry from number representing the PC register
13045 to symbolic constant representing the MDR register. Add
13046 constant for the PC register to the end of the table.
13047
af09351e
MK
130482014-02-03 Mark Kettenis <kettenis@gnu.org>
13049
13050 * bsd-kvm.c: Include <sys/param.h>
13051
8507e05d
MK
130522014-02-03 Mark Kettenis <kettenis@gnu.org>
13053
13054 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
13055
ae56bfb8
JB
130562014-01-31 Joel Brobecker <brobecker@adacore.com>
13057
13058 * ada-lang.h (clear_ada_sym_cache): Delete.
13059
718ee4dc
UW
130602014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
13061
13062 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
13063
401e27fd
JM
130642014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
13065
13066 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
13067 the sigreturn register save area only if the syscall is
13068 sigreturn.
13069
a7c88acd
JB
130702014-01-29 Joel Brobecker <brobecker@adacore.com>
13071
13072 * valops.c (value_slice): Minor reformatting.
13073
fa0079ea
UW
130742014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
13075
13076 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
13077
c6044dd1
JB
130782014-01-28 Joel Brobecker <brobecker@adacore.com>
13079
13080 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
13081 New static globals.
13082 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
13083 (ada_ignore_descriptive_types_p): New static global.
13084 (find_parallel_type_by_descriptive_type): Return immediately
13085 if ada_ignore_descriptive_types_p is set.
13086 (_initialize_ada_language): Register new commands "maintenance
13087 set ada", "maintenance show ada", "maintenance set ada
13088 ignore-descriptive-types" and "maintenance show ada
13089 ignore-descriptive-types".
13090 * NEWS: Add entry for new "maint ada set/show
13091 ignore-descriptive-types" commands.
13092
568e808b
MM
130932014-01-27 Markus Metzger <markus.t.metzger@intel.com>
13094
13095 * record-btrace.c (record_btrace_close): Call btrace_teardown
13096 for all threads.
13097
467d141b
JB
130982014-01-27 Joel Brobecker <brobecker@adacore.com>
13099
13100 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
13101 "ui-out.h".
13102
fb151210
JB
131032014-01-27 Joel Brobecker <brobecker@adacore.com>
13104
13105 * ada-typeprint (type_is_full_subrange_of_target_type):
13106 New function.
13107 (print_range): Add parameter bounds_prefered_p. If not set,
13108 try printing range types using the name of their base type.
13109 (print_range_type): Add parameter bounds_prefered_p.
13110 Use it in call to print_range.
13111 (print_array_type, ada_print_type): Update calls to print_range
13112 and print_range_type.
13113
aba02109
JB
131142014-01-27 Joel Brobecker <brobecker@adacore.com>
13115
13116 * ada-typeprint.c (print_array_type, print_choices, print_range)
13117 (print_range_bound, print_dynamic_range_bound, print_range_type):
13118 Remove declaration.
13119
e62e21fd
JB
131202014-01-27 Joel Brobecker <brobecker@adacore.com>
13121
13122 * ada-typeprint.c (print_range): Add missing empty line
13123 after local declaration.
13124
859cf5d1
JB
131252014-01-27 Joel Brobecker <brobecker@adacore.com>
13126
13127 * ada-valprint.c (print_optional_low_bound): Get index_type's
13128 target type for as long as it is a TYPE_CODE_RANGE.
13129
25790f6f
JB
131302014-01-27 Joel Brobecker <brobecker@adacore.com>
13131
13132 * procfs.c (procfs_make_note_section): Remove assertion and
13133 associated comment.
13134
6b6aa828
YQ
131352014-01-24 Yao Qi <yao@codesourcery.com>
13136
13137 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
13138 * corelow.c (get_core_siginfo): Likewise.
13139
5d6df423
YQ
131402014-01-24 Yao Qi <yao@codesourcery.com>
13141
13142 * remote.c (remote_write_bytes_aux): Change type of 'len' to
13143 ULONGEST. Don't check 'len' is negative.
13144 (remote_write_bytes): Change type of 'len' to ULONGEST.
13145
83b645b8
TT
131462014-01-23 Tom Tromey <tromey@redhat.com>
13147
13148 PR python/16485:
13149 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
13150 Handle exception from frame.block.
13151 (FrameVars.fetch_frame_locals): Likewise.
13152
0740f8d8
TT
131532014-01-23 Tom Tromey <tromey@redhat.com>
13154
13155 PR python/16487:
13156 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
13157 on a NULL pointer. Move "goto error" to correct place.
13158
21909fa1
TT
131592014-01-23 Tom Tromey <tromey@redhat.com>
13160
13161 PR python/16491:
13162 * python/py-framefilter.c (apply_frame_filter): Call
13163 ensure_python_env after computing gdbarch.
13164
17fde6d0
YQ
131652014-01-23 Yao Qi <yao@codesourcery.com>
13166
13167 * target.c (raw_memory_xfer_partial): Change argument type
13168 from void * to gdb_byte *.
13169 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
13170
87ce2a04
DE
131712014-01-22 Doug Evans <dje@google.com>
13172
13173 New gdbserver option --debug-format=timestamp.
13174 * NEWS: Mention it.
13175
237b092b
AA
131762014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
13177
13178 * syscalls/s390x-linux.xml: New file.
13179 * syscalls/s390-linux.xml: New file.
13180 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
13181 (XML_SYSCALL_FILENAME_S390X): Likewise.
13182 (op_svc): New enum value for SVC opcode.
13183 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
13184 (s390_linux_get_syscall_number): New function.
13185 (s390_gdbarch_init): Register '*get_syscall_number' and the
13186 syscall xml file name.
13187 * data-directory/Makefile.in (SYSCALLS_FILES): Add
13188 "s390-linux.xml" and "s390x-linux.xml".
13189 * NEWS: Announce new feature.
13190
54bff650
BS
131912014-01-22 Baruch Siach <baruch@tkos.co.il>
13192
13193 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
13194
14e361d7
PA
131952014-01-22 Pedro Alves <palves@redhat.com>
13196
13197 * xtensa-config.c: Include defs.h.
13198
46bbb3ed
JB
131992014-01-22 Joel Brobecker <brobecker@adacore.com>
13200
13201 * common/common-utils.h: Add "ARI:" comment beside __func__
13202 reference.
13203
3a80edfc
JB
132042014-01-22 Joel Brobecker <brobecker@adacore.com>
13205
13206 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
13207 documentation a bit.
13208
4869db5e
RM
132092014-01-21 Roland McGrath <mcgrathr@google.com>
13210
13211 * configure.ac: Call AM_PROG_INSTALL_STRIP.
13212 * configure: Regenerate.
13213 * aclocal.m4: Regenerate.
13214 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
13215 New substituted variables.
13216 (install-strip): New target.
13217 (INSTALL_SCRIPT): New substituted variable.
13218 (FLAGS_TO_PASS): Add it.
13219 (install-only): Use $(INSTALL_SCRIPT) rather than
13220 $(INSTALL_PROGRAM) for gcore.
13221
9ea4267d
TT
132222014-01-20 Tom Tromey <tromey@redhat.com>
13223
13224 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
13225 together.
13226
1f2bdf09
TT
132272014-01-20 Tom Tromey <tromey@redhat.com>
13228
13229 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
13230 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
13231 (deprecated_cmd_warning, complete_on_cmdlist): Update.
13232 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
13233 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
13234 (struct cmd_list_element) <flags>: Remove.
13235 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
13236 doc_allocated>: New fields.
13237 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
13238 bitfields.
13239 * maint.c (maintenance_do_deprecate): Update.
13240 * top.c (execute_command): Update.
13241
e671835b
BS
132422014-01-20 Baruch Siach <baruch@tkos.co.il>
13243
13244 * xtensa-linux-nat.c: Include asm/ptrace.h.
13245
50367cd2
IB
132462014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13247
13248 * Makefile.in (SFILES): Add d-support.c.
13249 (COMMON_OBS): Add d-support.o.
13250 * d-lang.h (d_parse_symbol): Add comment, now defined in
13251 d-support.c.
13252 * d-lang.c (parse_call_convention)
13253 (parse_attributes, parse_function_types)
13254 (parse_function_args, parse_type, parse_identifier)
13255 (call_convention_p, d_parse_symbol): Move functions to ...
13256 * d-support.c: ... New file.
13257
ec9f644a
IB
132582014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13259
13260 * d-lang.h (d_parse_symbol): Add declaration.
13261 * d-lang.c (extract_identifiers)
13262 (extract_type_info): Remove functions.
13263 (parse_call_convention, parse_attributes)
13264 (parse_function_types, parse_function_args)
13265 (parse_type, parse_identifier, call_convention_p)
13266 (d_parse_symbol): New functions.
13267 (d_demangle): Use d_parse_symbol to demangle D symbols.
13268
94b1b47e
IB
132692014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13270
13271 * d-lang.h (struct builtin_d_type): New data type.
13272 (builtin_d_type): Add declaration.
13273 * d-lang.c (d_language_arch_info, build_d_types)
13274 (builtin_d_type): New functions.
13275 (enum d_primitive_types): New data type.
13276 (d_language_defn): Change c_language_arch_info to
13277 d_language_arch_info.
13278 (d_type_data): New static variable.
13279 (_initialize_d_language): Initialize d_type_data.
13280
63778547
IB
132812014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13282
13283 * d-lang.h (d_main_name): Add declaration.
13284 * d-lang.c (d_main_name): New function.
13285 * symtab.c (find_main_name): Add call to d_main_name.
13286
3271ba66
IB
132872014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13288
13289 * d-lang.c (d_language_defn): Change macro_expansion_c to
13290 macro_expansion_no.
13291
d36b3012
IB
132922014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13293
13294 * MAINTAINERS: Add myself as a write-after-approval maintainer.
13295
c90a6fb7
SDJ
132962014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
13297
13298 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
13299 gdb_exception" declaration.
13300 * remote.c (getpkt_or_notif_sane): Likewise.
13301
749234e5
DE
133022014-01-17 Doug Evans <dje@google.com>
13303
13304 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
13305 function, contents of dirnames_to_char_ptr_vec_append moved here.
13306 (delim_string_to_char_ptr_vec): New function.
13307 (dirnames_to_char_ptr_vec_append): Rewrite.
13308 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
13309
df049a58
DE
133102014-01-17 Doug Evans <dje@google.com>
13311
13312 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
13313 and moved here ...
13314 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
13315 #include "common-utils.h".
13316 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
13317 * common/vec.h (VEC_ASSERT_PASS): Update.
13318 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
13319 (MACH_CHECK_ERROR): Update.
13320
69f97648
SM
133212014-01-17 Simon Marchi <simon.marchi@ericsson.com>
13322
13323 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
13324 comments.
13325 * gdbarch.h: Regenerate.
13326
98b1cfdc
TT
133272014-01-16 Tom Tromey <tromey@redhat.com>
13328
13329 * value.c (struct value) <regnum>: Move earlier.
13330
77a19445
TT
133312014-01-16 Tom Tromey <tromey@redhat.com>
13332
13333 * remote.c (extended_remote_create_inferior): Rename from
13334 extended_remote_create_inferior_1. Add "ops" argument. Remove
13335 old implementation.
13336
62261490
PA
133372014-01-16 Pedro Alves <palves@redhat.com>
13338
13339 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
13340 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
13341 the backchain.
13342
4d65956b
DE
133432014-01-16 Doug Evans <dje@google.com>
13344
13345 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
13346
52834460
MM
133472014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13348
13349 * btrace.h (btrace_thread_flag): New.
13350 (struct btrace_thread_info) <flags>: New.
13351 * record-btrace.c (record_btrace_resume_thread)
13352 (record_btrace_find_thread_to_move, btrace_step_no_history)
13353 (btrace_step_stopped, record_btrace_start_replaying)
13354 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
13355 (record_btrace_find_resume_thread): New.
13356 (record_btrace_resume, record_btrace_wait): Extend.
13357 (record_btrace_can_execute_reverse): New.
13358 (record_btrace_open): Fail in non-stop mode.
13359 (record_btrace_set_replay): Split into this, ...
13360 (record_btrace_stop_replaying): ... this, ...
13361 (record_btrace_clear_histories): ... and this.
13362 (init_record_btrace_ops): Init to_can_execute_reverse.
13363 * NEWS: Announce it.
13364
118e6252
MM
133652014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13366
13367 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
13368 (forward_target_decr_pc_after_break)
13369 (target_decr_pc_after_break): New.
13370 * target.c (forward_target_decr_pc_after_break)
13371 (target_decr_pc_after_break): New.
13372 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
13373 instead of gdbarch_decr_pc_after_break.
13374 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
13375 instead of gdbarch_decr_pc_after_break.
13376 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
13377 instead of gdbarch_decr_pc_after_break.
13378 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
13379 instead of gdbarch_decr_pc_after_break.
13380 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
13381 instead of gdbarch_decr_pc_after_break.
13382 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
13383 instead of gdbarch_decr_pc_after_break.
13384
6e07b1d2
MM
133852014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13386
13387 * btrace.c: Include regcache.h.
13388 (btrace_add_pc): New.
13389 (btrace_enable): Call btrace_add_pc.
13390 (btrace_is_empty): New.
13391 * btrace.h (btrace_is_empty): New.
13392 * record-btrace.c (require_btrace, record_btrace_info): Call
13393 btrace_is_empty.
13394
969c39fb
MM
133952014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13396
13397 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
13398 Support delta reads.
13399 (linux_disable_btrace): Change return type.
13400 * common/linux-btrace.h (linux_read_btrace): Change parameters
13401 and return type to allow error reporting. Update users.
13402 (linux_disable_btrace): Change return type. Update users.
13403 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
13404 New.
13405 (btrace_error): New.
13406 (btrace_block) <begin>: Comment on BEGIN == 0.
13407 * btrace.c (btrace_compute_ftrace): Start from the end of
13408 the current trace.
13409 (btrace_stitch_trace, btrace_clear_history): New.
13410 (btrace_fetch): Read delta trace, return if replaying.
13411 (btrace_clear): Move clear history code to btrace_clear_history.
13412 (parse_xml_btrace): Throw an error if parsing failed.
13413 * target.h (struct target_ops) <to_read_btrace>: Change parameters
13414 and return type to allow error reporting.
13415 (target_read_btrace): Change parameters and return type to allow
13416 error reporting.
13417 * target.c (target_read_btrace): Update.
13418 * remote.c (remote_read_btrace): Support delta reads. Pass
13419 errors on.
13420 * NEWS: Announce it.
13421
0b722aec
MM
134222014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13423
13424 * record.h (record_btrace_frame_unwind)
13425 (record_btrace_tailcall_frame_unwind): New declarations.
13426 * dwarf2-frame: Include record.h
13427 (dwarf2_frame_cfa): Throw an error for btrace frames.
13428 * record-btrace.c: Include hashtab.h.
13429 (btrace_get_bfun_name): New.
13430 (btrace_call_history): Call btrace_get_bfun_name.
13431 (struct btrace_frame_cache): New.
13432 (bfcache): New.
13433 (bfcache_hash, bfcache_eq, bfcache_new): New.
13434 (btrace_get_frame_function): New.
13435 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
13436 (record_btrace_frame_this_id): Compute own id.
13437 (record_btrace_frame_prev_register): Provide PC, throw_error
13438 for all other registers.
13439 (record_btrace_frame_sniffer): Detect btrace frames.
13440 (record_btrace_tailcall_frame_sniffer): New.
13441 (record_btrace_frame_dealloc_cache): New.
13442 (record_btrace_frame_unwind): Add new functions.
13443 (record_btrace_tailcall_frame_unwind): New.
13444 (_initialize_record_btrace): Allocate cache.
13445 * btrace.c (btrace_clear): Call reinit_frame_cache.
13446 * NEWS: Announce it.
13447
066ce621
MM
134482014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13449
13450 * record-btrace.c (record_btrace_set_replay)
13451 (record_btrace_goto_begin, record_btrace_goto_end)
13452 (record_btrace_goto): New.
13453 (init_record_btrace_ops): Initialize them.
13454 * NEWS: Announce it.
13455
e2887aa3
MM
134562014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13457
13458 * record-btrace.c (record_btrace_find_new_threads)
13459 (record_btrace_thread_alive): New.
13460 (init_record_btrace_ops): Initialize to_find_new_threads and
13461 to_thread_alive.
13462
b2f4cfde
MM
134632014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13464
13465 * record-btrace.c (record_btrace_resume): New.
13466 (record_btrace_wait): New.
13467 (init_record_btrace_ops): Initialize to_wait and to_resume.
13468
633785ff
MM
134692014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13470
13471 * record-btrace.c (record_btrace_xfer_partial)
13472 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
13473 (record_btrace_allow_memory_access): New.
13474 (init_record_btrace_ops): Initialize new methods.
13475 * target.c (raw_memory_xfer_partial): Bail out if target reports
13476 that this memory is not available.
13477
3db08215
MM
134782014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13479
13480 * target.h (target_ops) <to_insert_breakpoint>
13481 <to_remove_breakpoint>: Add target_ops parameter.
13482 (forward_target_insert_breakpoint): New.
13483 (forward_target_remove_breakpoint): New.
13484 (memory_remove_breakpoint, memory_insert_breakpoint):
13485 Add target_ops parameter.
13486 * target.c (target_insert_breakpoint): Split into this and ...
13487 (forward_target_insert_breakpoint): ... this.
13488 (target_remove_breakpoint): Split into this and ...
13489 (forward_target_remove_breakpoint): ... this.
13490 (debug_to_insert_breakpoint): Add target_ops parameter.
13491 Call forward_target_insert_breakpoint.
13492 (debug_to_remove_breakpoint): Add target_ops parameter.
13493 Call forward_target_remove_breakpoint.
13494 (update_current_target): Do not inherit or default to_insert_breakpoint
13495 and to_remove_breakpoint.
13496 * corelow.c (ignore): Add target_ops parameter.
13497 * exec.c (ignore): Add target_ops parameter.
13498 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
13499 Add target_ops parameter.
13500 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
13501 Add target_ops parameter.
13502 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
13503 Add target_ops parameter.
13504 * record-full.c (record_full_beneath_to_insert_breakpoint)
13505 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
13506 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
13507 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
13508 (record_full_core_remove_breakpoint): Add target_ops parameter.
13509 Update users.
13510 (record_full_beneath_to_insert_breakpoint_ops)
13511 (record_full_beneath_to_remove_breakpoint_ops)
13512 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
13513 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
13514 tmp_to_remove_breakpoint_ops,
13515 record_full_beneath_to_insert_breakpoint_ops, and
13516 record_full_beneath_to_remove_breakpoint_ops.
13517 * remote-m32r-sdi.c (m32r_insert_breakpoint)
13518 (m32r_remove_breakpoint): Add target_ops parameter.
13519 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
13520 Add target_ops parameter.
13521 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
13522 Add target_ops parameter.
13523
cecac1ab
MM
135242014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13525 Markus Metzger <markus.t.metzger@intel.com>
13526
13527 * record-btrace.c: Include frame-unwind.h.
13528 (record_btrace_frame_unwind_stop_reason)
13529 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
13530 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
13531 New.
13532 (init_record_btrace_ops): Install it.
13533
824344ca
MM
135342014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13535
13536 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
13537 get_prev_frame_1.
13538
32261e52
MM
135392014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13540
13541 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
13542 earlier.
13543
ea001bdc
MM
135442014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13545
13546 * frame-unwind.c: Include target.h.
13547 (frame_unwind_try_unwinder): New function with code from ...
13548 (frame_unwind_find_by_frame): ... here. New variable
13549 unwinder_from_target, call also target_get_unwinder)
13550 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
13551 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
13552 * target.h (struct target_ops): New fields to_get_unwinder and
13553 to_get_tailcall_unwinder.
13554 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
13555
1f3ef581
MM
135562014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13557
13558 * record-btrace.c (record_btrace_fetch_registers)
13559 (record_btrace_store_registers)
13560 (record_btrace_to_prepare_to_store): New.
13561 (init_record_btrace_ops): Add the above.
13562
f32dbf8c
MM
135632014-01-16 Tom Tromey <tromey@redhat.com>
13564
13565 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
13566 * target.h (struct target_ops) <to_prepare_to_store>: Add
13567 argument.
13568 (target_prepare_to_store): Add argument.
13569 * target.c (debug_to_prepare_to_store): Add argument.
13570 (update_current_target): Update.
13571 * remote.c (remote_prepare_to_store): Add 'self' argument.
13572 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
13573 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
13574 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
13575 * record-full.c (record_full_core_prepare_to_store): Add 'self'
13576 argument.
13577 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
13578 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
13579 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
13580 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
13581 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
13582
07bbe694
MM
135832014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13584
13585 * btrace.h (replay) <replay>: New.
13586 (btrace_is_replaying): New.
13587 * btrace.c (btrace_clear): Free replay iterator.
13588 (btrace_is_replaying): New.
13589 * record-btrace.c (record_btrace_is_replaying): New.
13590 (record_btrace_info): Print insn number if replaying.
13591 (record_btrace_insn_history): Start at replay position.
13592 (record_btrace_call_history): Start at replay position.
13593 (init_record_btrace_ops): Init to_record_is_replaying.
13594
0688d04e
MM
135952014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13596
13597 * record-btrace.c (record_btrace_insn_history_range): Include
13598 end.
13599 (record_btrace_insn_history_from): Adjust range.
13600 (record_btrace_call_history_range): Include
13601 end.
13602 (record_btrace_call_history_from): Adjust range.
13603 * NEWS: Announce changes.
13604
8710b709
MM
136052014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13606
13607 * record.h (enum record_print_flag)
13608 <record_print_indent_calls>: New.
13609 * record.c (get_call_history_modifiers): Recognize /c modifier.
13610 (_initialize_record): Document /c modifier.
13611 * record-btrace.c (btrace_call_history): Add btinfo parameter.
13612 Reorder fields. Optionally indent the function name. Update
13613 all users.
13614 * NEWS: Announce changes.
13615
d0fa7535
MM
136162014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13617
13618 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
13619
5de9129b
MM
136202014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13621
13622 * btrace.c (ftrace_new_function): Start counting at one.
13623 * record-btrace.c (record_btrace_info): Adjust number of calls
13624 and insns.
13625 * NEWS: Announce it.
13626
7acbe133
MM
136272014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13628
13629 * record-btrace.c (btrace_call_history_insn_range): Print
13630 insn range as [begin, end].
13631
23a7fe75
MM
136322014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13633
13634 * btrace.h (struct btrace_func_link): New.
13635 (enum btrace_function_flag): New.
13636 (struct btrace_inst): Rename to ...
13637 (struct btrace_insn): ...this. Update all users.
13638 (struct btrace_func) <ibegin, iend>: Remove.
13639 (struct btrace_func_link): New.
13640 (struct btrace_func): Rename to ...
13641 (struct btrace_function): ...this. Update all users.
13642 (struct btrace_function) <segment, flow, up, insn, insn_offset)
13643 (number, level, flags>: New.
13644 (struct btrace_insn_iterator): Rename to ...
13645 (struct btrace_insn_history): ...this.
13646 Update all users.
13647 (struct btrace_insn_iterator, btrace_call_iterator): New.
13648 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
13649 (struct btrace_target_info) <begin, end, level>
13650 <insn_history, call_history>: New.
13651 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13652 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13653 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13654 (btrace_call_number, btrace_call_begin, btrace_call_end)
13655 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13656 (btrace_find_function_by_number, btrace_set_insn_history)
13657 (btrace_set_call_history): New.
13658 * btrace.c (btrace_init_insn_iterator)
13659 (btrace_init_func_iterator, compute_itrace): Remove.
13660 (ftrace_print_function_name, ftrace_print_filename)
13661 (ftrace_skip_file): Change
13662 parameter to const.
13663 (ftrace_init_func): Remove.
13664 (ftrace_debug): Use new btrace_function fields.
13665 (ftrace_function_switched): Also consider gaining and
13666 losing symbol information).
13667 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
13668 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
13669 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
13670 New.
13671 (ftrace_new_function): Move. Remove debug print.
13672 (ftrace_update_lines, ftrace_update_insns): New.
13673 (ftrace_update_function): Check for call, ret, and jump.
13674 (compute_ftrace): Renamed to ...
13675 (btrace_compute_ftrace): ...this. Rewritten to compute call
13676 stack.
13677 (btrace_fetch, btrace_clear): Updated.
13678 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13679 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13680 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13681 (btrace_call_number, btrace_call_begin, btrace_call_end)
13682 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13683 (btrace_find_function_by_number, btrace_set_insn_history)
13684 (btrace_set_call_history): New.
13685 * record-btrace.c (require_btrace): Use new btrace thread
13686 info fields.
13687 (record_btrace_info, btrace_insn_history)
13688 (record_btrace_insn_history, record_btrace_insn_history_range):
13689 Use new btrace thread info fields and new iterator.
13690 (btrace_func_history_src_line): Rename to ...
13691 (btrace_call_history_src_line): ...this. Use new btrace
13692 thread info fields.
13693 (btrace_func_history): Rename to ...
13694 (btrace_call_history): ...this. Use new btrace thread info
13695 fields and new iterator.
13696 (record_btrace_call_history, record_btrace_call_history_range):
13697 Use new btrace thread info fields and new iterator.
13698
8372a7cb
MM
136992014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13700
13701 * frame.h (frame_id_build_unavailable_stack_special): New.
13702 * frame.c (frame_id_build_unavailable_stack_special): New.
13703
c2170eef
MM
137042014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13705
13706 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
13707 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
13708 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
13709 to gdbarch.
13710 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
13711 (i386_insn_is_jump, i386_jmp_p): New.
13712 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
13713 insn_is_jump to gdbarch.
13714 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
13715 * gdbarch.h: Regenerated.
13716 * gdbarch.c: Regenerated.
13717 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
13718 (default_insn_is_jump): New.
13719 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
13720 (default_insn_is_jump): New.
13721
864089d2
MM
137222014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13723
13724 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
13725 Change to ...
13726 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
13727 (btrace_read_type) <btrace_read_new>: Change to ...
13728 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
13729
ed9edfb5
MM
137302014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13731
13732 * common/linux-btrace.c (linux_read_btrace): Free trace from
13733 previous iteration.
13734
fbcbc3fd
DE
137352014-01-15 Doug Evans <dje@google.com>
13736
13737 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
13738 uint32_t.
13739
3d548a53
TT
137402014-01-15 Tom Tromey <tromey@redhat.com>
13741
13742 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
13743 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
13744 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
13745 (set_objfile_main_name): New function.
13746 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
13747 language_of_main>: New fields.
13748 (set_objfile_main_name): Declare.
13749 * symtab.c (find_main_name): Loop over objfiles to find the main
13750 name and language.
13751 (set_main_name): Now static.
13752 (get_main_info): Add comment.
13753 * symtab.h (set_main_name): Don't declare.
13754
32ac0d11
TT
137552014-01-15 Tom Tromey <tromey@redhat.com>
13756
13757 * symtab.c (main_progspace_key): New global.
13758 (struct main_info): New.
13759 (name_of_main, language_of_main): Remove.
13760 (get_main_info, main_info_cleanup): New function.
13761 (set_main_name, main_name, main_language): Use get_main_info.
13762 (_initialize_symtab): Initialize main_progspace_key.
13763
9e6c82ad
TT
137642014-01-15 Tom Tromey <tromey@redhat.com>
13765
13766 * dbxread.c (process_one_symbol): Update.
13767 * dwarf2read.c (read_partial_die): Update.
13768 * symfile.c (set_initial_language): Call main_language.
13769 * symtab.c (language_of_main): Now static.
13770 (set_main_name): Add 'lang' parameter.
13771 (find_main_name): Update.
13772 (main_language): New function.
13773 (symtab_observer_executable_changed): Update.
13774 * symtab.h (set_main_name): Update.
13775 (language_of_main): Remove.
13776 (main_language): Declare.
13777
6ef55de7
TT
137782014-01-15 Tom Tromey <tromey@redhat.com>
13779
13780 * symfile.c (init_entry_point_info): Use new "initialized" field.
13781 Update.
13782 * objfiles.h (struct entry_point) <initialized>: New field.
13783 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
13784 (struct objfile) <ei>: ...here. Remove.
13785 * objfiles.c (entry_point_address_query): Update.
13786
53eddfa6
TT
137872014-01-15 Tom Tromey <tromey@redhat.com>
13788
13789 * objfiles.c (entry_point_address_query): Relocate entry point
13790 address.
13791 (objfile_relocate1): Do not relocate entry point address.
13792 * objfiles.h (struct entry_info) <entry_point>: Update comment.
13793 <the_bfd_section_index>: New field.
13794 * symfile.c (init_entry_point_info): Find the entry point's
13795 section.
13796
d56e56aa
TT
137972014-01-15 Tom Tromey <tromey@redhat.com>
13798
13799 * solib-frv.c (enable_break): Use entry_point_address_query.
13800
33a97bbe
OJ
138012014-01-15 Omair Javaid <omair.javaid@linaro.org>
13802
13803 * NEWS: Add note on improved process record-replay on
13804 arm*-linux* targets.
13805
c6ec2b30
OJ
138062014-01-15 Omair Javaid <omair.javaid@linaro.org>
13807
13808 * arm-tdep.c (enum arm_record_result): New enum.
13809 (arm_record_unsupported_insn): New function.
13810 (arm_record_coproc_data_proc): Removed.
13811 (thumb2_record_ld_st_multiple): New function.
13812 (thumb2_record_ld_st_dual_ex_tbb): New function.
13813 (thumb2_record_data_proc_sreg_mimm): New function.
13814 (thumb2_record_ps_dest_generic): New function.
13815 (thumb2_record_branch_misc_cntrl): New function.
13816 (thumb2_record_str_single_data): New function.
13817 (thumb2_record_ld_mem_hints): New function.
13818 (thumb2_record_ld_word): New function.
13819 (thumb2_record_lmul_lmla_div): New function.
13820 (thumb2_record_decode_insn_handler): New function.
13821 (decode_insn): Add thumb32 instruction handlers.
13822
97dfe206
OJ
138232014-01-15 Omair Javaid <omair.javaid@linaro.org>
13824
13825 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
13826 (struct arm_linux_record_tdep): Declare.
13827 (arm_canonicalize_syscall): New function.
13828 (arm_all_but_pc_registers_record): New function.
13829 (arm_linux_syscall_record): New function.
13830 (arm_linux_init_abi): Add syscall recording constructs.
13831 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
13832 decoding. (arm_record_coproc_data_proc): Update arm syscall
13833 decoding.
13834 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
13835 <arm_syscall_record>: New field.
13836 * configure.tgt (arm*-*-linux*): Add linux-record.o to
13837 gdb_target_obs.
13838
9904a494
OJ
138392014-01-15 Omair Javaid <omair.javaid@linaro.org>
13840
13841 * arm-tdep.c (thumb_record_misc): Update to use sp as base
13842 register for push instruction recording.
13843
f969241e
OJ
138442014-01-15 Omair Javaid <omair.javaid@linaro.org>
13845
13846 * arm-tdep.c (thumb_record_misc): Update to correct logical
13847 error while recording ldm, ldmia and pop instructions.
13848
bfbbec00
OJ
138492014-01-15 Omair Javaid <omair.javaid@linaro.org>
13850
13851 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
13852
e40adcc9
PA
138532014-01-15 Pedro Alves <palves@redhat.com>
13854
13855 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
13856 (go32_resume, go32_fetch_registers, store_register)
13857 (go32_store_registers, go32_prepare_to_store)
13858 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
13859 (go32_create_inferior, go32_can_run, go32_terminal_init)
13860 (go32_terminal_inferior, go32_terminal_ours): Delete forward
13861 declarations.
13862
b0a16e66
TT
138632014-01-15 Tom Tromey <tromey@redhat.com>
13864
13865 * target.h (async_callback_ftype): New typedef.
13866 (struct target_ops) <to_async>: Use it.
13867
bf7105a4
JB
138682014-01-15 Joel Brobecker <brobecker@adacore.com>
13869
13870 * python/py-value.c (get_field_type): Remove unnecessary curly
13871 braces for single-statement if block.
13872
a8f35c2e
JB
138732014-01-15 Joel Brobecker <brobecker@adacore.com>
13874
13875 * python/py-type.c (convert_field): Add missing empty line
13876 after declarations.
13877
bb4142cf
DE
138782014-01-14 Doug Evans <dje@google.com>
13879
13880 * symfile.h (expand_symtabs_matching): Renamed from
13881 expand_partial_symbol_names. Update prototype.
13882 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
13883 * symfile.c (expand_symtabs_matching): Renamed from
13884 expand_partial_symbol_names. New args file_matcher, kind.
13885 Rename arg fun to symbol_matcher.
13886 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
13887 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
13888 ada_expand_partial_symbol_name.
13889 (ada_make_symbol_completion_list): Update to call
13890 expand_symtabs_matching.
13891 (ada_add_global_exceptions): Call expand_symtabs_matching.
13892 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
13893 call map_symbol_filenames.
13894 * symtab.c (sources_info): Update to call map_symbol_filenames.
13895 (search_symbols): Call expand_symtabs_matching.
13896 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
13897 (default_make_symbol_completion_list_break_on): Update to call
13898 expand_symtabs_matching.
13899 (make_source_files_completion_list): Update to call
13900 map_symbol_filenames.
13901
206f2a57
DE
139022014-01-14 Doug Evans <dje@google.com>
13903
13904 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
13905 (expand_symtabs_symbol_matcher_ftype): New typedef.
13906 (quick_symbol_functions.expand_symtabs_matching): Update to use.
13907 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13908 * symfile.c (expand_partial_symbol_names): Update to use
13909 expand_symtabs_symbol_matcher_ftype.
13910 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
13911 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13912 Arg name_matcher renamed to symbol_matcher.
13913 * psymtab.c (recursively_search_psymtabs): Update to use
13914 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
13915 sym_matcher.
13916 (expand_symtabs_matching_via_partial): Update to use
13917 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13918 Arg name_matcher renamed to symbol_matcher.
13919
540c2971
DE
139202014-01-14 Doug Evans <dje@google.com>
13921
13922 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
13923 (map_partial_symbol_filenames): Ditto.
13924 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
13925 (map_partial_symbol_filenames): Ditto.
13926 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
13927 (map_partial_symbol_filenames): Ditto.
13928 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
13929 (map_partial_symbol_filenames): Ditto.
13930 * symtab.c: Delete #include "psymtab.h".
13931
8213266a
PA
139322014-01-14 Pedro Alves <palves@redhat.com>
13933 Tom Tromey <tromey@redhat.com>
13934
13935 * infrun.c (use_displaced_stepping): Use find_record_target
13936 instead of RECORD_IS_USED.
13937 (adjust_pc_after_break): Use record_full_is_used instead of
13938 RECORD_IS_USED.
13939 * record-btrace.c (record_btrace_open): Call record_preopen
13940 instead of checking RECORD_IS_USED.
13941 * record-full.c (record_full_shortname)
13942 (record_full_core_shortname): New globals.
13943 (record_full_is_used): New function.
13944 (find_full_open): Call record_preopen instead of checking
13945 RECORD_IS_USED.
13946 (init_record_full_ops): Set the target's shortname to
13947 record_full_shortname.
13948 (init_record_full_core_ops): Set the target's shortname to
13949 record_full_core_shortname.
13950 * record-full.h (record_full_is_used): Declare.
13951 * record.c (find_record_target): Make extern.
13952 (record_preopen): New function.
13953 * record.h (RECORD_IS_USED): Delete macro.
13954 (find_record_target, record_preopen): Declare functions.
13955
7ec1862d
YQ
139562014-01-14 Yao Qi <yao@codesourcery.com>
13957
13958 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
13959 'len''s type to ULONGEST.
13960 (core_xfer_shared_libraries_aix): Likewise.
13961 * gdbarch.c, gdbarch.h: Regenerated.
13962 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
13963 Change type of 'len' to ULONGEST.
13964 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13965 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
13966
dea80a27
YQ
139672014-01-14 Yao Qi <yao@codesourcery.com>
13968
13969 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
13970 type of 'len' to ULONGEST.
13971 (linux_xfer_osdata_processgroups): Likewise.
13972 (linux_xfer_osdata_threads): Likewise.
13973 (linux_xfer_osdata_fds): Likewise.
13974 (linux_xfer_osdata_isockets): Likewise.
13975 (linux_xfer_osdata_shm): Likewise.
13976 (linux_xfer_osdata_sem): Likewise.
13977 (linux_xfer_osdata_msg): Likewise.
13978 (linux_common_xfer_osdata): Likewise.
13979 (struct osdata_type) <getter>: Likewise.
13980 * common/linux-osdata.h (linux_common_xfer_osdata): Update
13981 the declaration.
13982
b55e14c7
YQ
139832014-01-14 Yao Qi <yao@codesourcery.com>
13984
13985 * target.h (target_xfer_partial_ftype): Update.
13986 (struct target_ops) <to_xfer_partial>: Change 'len' type to
13987 ULONGEST.
13988 * aix-thread.c (aix_thread_xfer_partial): Change type of
13989 argument 'len' to ULONGEST.
13990 * auxv.c (procfs_xfer_auxv): Likewise.
13991 (ld_so_xfer_auxv): Likewise.
13992 (memory_xfer_auxv): Likewise.
13993 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13994 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13995 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
13996 * corelow.c (core_xfer_partial): Likewise.
13997 * ctf.c (ctf_xfer_partial): Likewise.
13998 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
13999 '%u'.
14000 (darwin_read_dyld_info): Likewise.
14001 (darwin_xfer_partial): Likewise.
14002 * exec.c (section_table_xfer_memory_partial): Likewise.
14003 (exec_xfer_partial): Likewise.
14004 * exec.h (section_table_xfer_memory_partial): Update
14005 declaration.
14006 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
14007 instead of plongest.
14008 (gnu_xfer_partial): Likewise.
14009 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
14010 (ia64_hpux_xfer_solib_got): Likewise.
14011 (ia64_hpux_xfer_partial): Likewise.
14012 * ia64-linux-nat.c (ia64_linux_xfer_partial):
14013 * inf-ptrace.c (inf_ptrace_xfer_partial):
14014 * inf-ttrace.c (inf_ttrace_xfer_partial):
14015 * linux-nat.c (linux_xfer_siginfo): Likewise.
14016 (linux_nat_xfer_partial): Likewise.
14017 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
14018 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
14019 * monitor.c (monitor_xfer_memory): Likewise.
14020 (monitor_xfer_partial): Likewise.
14021 * procfs.c (procfs_xfer_partial): Likewise.
14022 * record-full.c (record_full_xfer_partial): Likewise.
14023 (record_full_core_xfer_partial): Likewise.
14024 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
14025 instead of plongest.
14026 (gdbsim_xfer_partial): Likewise.
14027 * remote.c (remote_xfer_partial): Likewise.
14028 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14029 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
14030 declaration.
14031 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14032 (rs6000_xfer_shared_libraries): Likewise.
14033 * sol-thread.c (sol_thread_xfer_partial): Likewise.
14034 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14035 (sparc_xfer_partial): Likewise.
14036 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
14037 (spu_xfer_partial): Likewise.
14038 * spu-multiarch.c (spu_xfer_partial): Likewise.
14039 * target.c (target_read_live_memory): Likewise.
14040 (memory_xfer_live_readonly_partial): Likewise.
14041 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
14042 (target_xfer_partial, default_xfer_partial): Likewise.
14043 (current_xfer_partial): Likewise.
14044 * tracepoint.c (tfile_xfer_partial): Likewise.
14045 * windows-nat.c (windows_xfer_memory): Likewise. Call
14046 pulongest instead of plongest.
14047 (windows_xfer_partial): Likewise.
14048 (windows_xfer_shared_libraries): Likewise.
14049
05804640
YQ
140502014-01-14 Yao Qi <yao@codesourcery.com>
14051
14052 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
14053 target_xfer_partial_ftype.
14054
b5b08fb4
SC
140552014-01-13 Siva Chandra Reddy <sivachandra@google.com>
14056
14057 PR python/15464
14058 PR python/16113
14059 * valops.c (value_struct_elt_bitpos): New function
14060 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
14061 object to 'None' if the field name is an empty string ("").
14062 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
14063 attribute to look for a field when 'name' is 'None'.
14064 (get_field_type): New function
14065
13aaf454
DE
140662014-01-13 Doug Evans <dje@google.com>
14067
14068 PR symtab/16426
14069 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
14070 (try_open_dwop_file): Ditto.
14071 * gdb_bfd.c: #include "vec.h".
14072 (bfdp): New typedef.
14073 (struct gdb_bfd_data): New member included_bfds.
14074 (gdb_bfd_unref): Unref all included bfds.
14075 (gdb_bfd_record_inclusion): New function.
14076 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
14077
c2cec97c
TT
140782014-01-13 Tom Tromey <tromey@redhat.com>
14079
14080 * gdbcore.h (deprecated_core_resize_section_table): Remove.
14081
78e5999d
TT
140822014-01-13 Tom Tromey <tromey@redhat.com>
14083
14084 * defs.h (use_windows): Remove.
14085 * gdb.c (main): Update.
14086 * main.c (captured_main, gdb_main): Update.
14087 * main.h (struct captured_main_args) <use_windows>: Remove.
14088 * top.c (use_windows): Remove.
14089
f2052bbe
TT
140902014-01-13 Tom Tromey <tromey@redhat.com>
14091
14092 * defs.h (deprecated_flush_hook): Remove.
14093
fde4f8ed
JK
140942014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
14095
14096 PR threads/16216
14097 * linux-thread-db.c (try_thread_db_load): Add parameter
14098 check_auto_load_safe. Move here the file_is_auto_load_safe call.
14099 (try_thread_db_load_from_pdir_1): Move it there from here.
14100 (try_thread_db_load_from_sdir): Update caller.
14101 (try_thread_db_load_from_dir): Move it there from here.
14102
bdf61915
PP
141032014-01-13 Patrick Palka <patrick@parcs.ath.cx>
14104
14105 * regformats/regdat.sh: Always rewrite the register file.
14106
f71e1a8d
PA
141072014-01-13 Pedro Alves <palves@redhat.com>
14108
14109 * Makefile.in (CHECK_HEADERS): New variable.
14110 (check-headers:): New rule.
14111
42c85435
TT
141122014-01-13 Tom Tromey <tromey@redhat.com>
14113
14114 * cli/cli-setshow.c (do_set_command): Update.
14115 * defs.h (deprecated_set_hook): Remove.
14116 * top.c (deprecated_set_hook): Remove.
14117
f8de5129
PA
141182014-01-13 Pedro Alves <palves@redhat.com>
14119
14120 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
14121 the tracepoint if the PC is a pseudo-register.
14122
fc270c35
TT
141232014-01-13 Tom Tromey <tromey@redhat.com>
14124
14125 * defs.h (XCALLOC): Remove.
14126 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
14127 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
14128 * dwarf2loc.c (allocate_piece_closure): Likewise.
14129 * elfread.c (elf_symfile_segments): Likewise.
14130 (elf_symfile_segments): Likewise.
14131 * gdbtypes.c (copy_type_recursive): Likewise.
14132 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
14133 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
14134 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
14135 XCALLOC.
14136 * mt-tdep.c (mt_gdbarch_init): Likewise.
14137 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
14138 XCALLOC.
14139 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
14140 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
14141 * registry.c (registry_alloc_data): Likewise.
14142 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
14143 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
14144 * serial.c (serial_fdopen_ops): Likewise.
14145 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
14146 XCALLOC.
14147 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
14148 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
14149 not XCALLOC.
14150
70ba0933
TT
141512014-01-13 Tom Tromey <tromey@redhat.com>
14152
14153 * defs.h (XMALLOC): Remove.
14154 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
14155 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
14156 * cli-out.c (struct ui_out *): Likewise.
14157 * cli/cli-dump.c (add_dump_command): Likewise.
14158 (add_dump_command): Likewise.
14159 * complaints.c (get_complaints): Likewise.
14160 (find_complaint): Likewise.
14161 * dwarf2-frame.c (execute_cfa_program): Likewise.
14162 * dwarf2read.c (abbrev_table_read_table): Likewise.
14163 * gdbarch.sh: Likewise.
14164 * gdbarch.c: Rebuild.
14165 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
14166 * interps.c (interp_new): Likewise.
14167 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
14168 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
14169 * mi/mi-console.c (mi_console_file_new): Likewise.
14170 * mi/mi-interp.c (mi_interpreter_init): Likewise.
14171 * mi/mi-out.c (mi_out_new): Likewise.
14172 * mi/mi-parse.c (mi_parse): Likewise.
14173 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
14174 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
14175 * observer.c (xalloc_observer_list_node): Likewise.
14176 * regcache.c (regcache_xmalloc_1): Likewise.
14177 * reggroups.c (reggroup_new): Likewise.
14178 (_initialize_reggroup): Likewise.
14179 * registry.c (register_data_with_cleanup): Likewise.
14180 * remote.c (remote_notif_stop_alloc_reply): Likewise.
14181 * ser-base.c (serial_ttystate): Likewise.
14182 * ser-mingw.c (make_pipe_state): Likewise.
14183 * ser-pipe.c (pipe_open): Likewise.
14184 * serial.c (serial_open): Likewise.
14185 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
14186 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
14187 (tui_alloc_win_info): Likewise.
14188 (tui_add_content_elements): Likewise.
14189 * tui/tui-file.c (tui_file_new): Likewise.
14190 * tui/tui-out.c (tui_out_new): Likewise.
14191 * ui-file.c (mem_file_new): Likewise.
14192 * ui-out.c (push_level): Likewise.
14193 (make_cleanup_ui_out_end): Likewise.
14194 (append_header_to_list): Likewise.
14195 (ui_out_new): Likewise.
14196 * user-regs.c (user_reg_add_builtin): Likewise.
14197
41bf6aca
TT
141982014-01-13 Tom Tromey <tromey@redhat.com>
14199
14200 * defs.h (XZALLOC): Remove.
14201 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
14202 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
14203 (get_ada_tasks_inferior_data): Likewise.
14204 * auto-load.c (get_auto_load_pspace_data): Likewise.
14205 * auxv.c (get_auxv_inferior_data): Likewise.
14206 * bfd-target.c (target_bfd_reopen): Likewise.
14207 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
14208 (deprecated_insert_raw_breakpoint): Likewise.
14209 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
14210 * corelow.c (core_open): Likewise.
14211 * darwin-nat.c (darwin_check_new_threads): Likewise.
14212 (darwin_attach_pid): Likewise.
14213 * dummy-frame.c (dummy_frame_push): Likewise.
14214 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
14215 * dwarf2loc.c (allocate_piece_closure): Likewise.
14216 * elfread.c (elf_symfile_segments): Likewise.
14217 * eval.c (ptrmath_type_p): Likewise.
14218 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
14219 * gdbtypes.c (alloc_type_arch): Likewise.
14220 (alloc_type_instance): Likewise.
14221 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
14222 * inf-child.c (inf_child_can_use_agent): Likewise.
14223 * inflow.c (get_inflow_inferior_data): Likewise.
14224 * infrun.c (save_infcall_suspend_state): Likewise.
14225 * jit.c (jit_reader_load): Likewise.
14226 (get_jit_objfile_data): Likewise.
14227 (get_jit_program_space_data): Likewise.
14228 (jit_object_open_impl): Likewise.
14229 (jit_symtab_open_impl): Likewise.
14230 (jit_block_open_impl): Likewise.
14231 (jit_frame_sniffer): Likewise.
14232 * linux-fork.c (add_fork): Likewise.
14233 * maint.c (make_command_stats_cleanup): Likewise.
14234 * objfiles.c (get_objfile_pspace_data): Likewise.
14235 * opencl-lang.c (struct lval_closure): Likewise.
14236 * osdata.c (osdata_start_osdata): Likewise.
14237 * progspace.c (new_address_space): Likewise.
14238 (add_program_space): Likewise.
14239 * remote-sim.c (get_sim_inferior_data): Likewise.
14240 * sh-tdep.c (sh_gdbarch_init): Likewise.
14241 * skip.c (Ignore): Likewise.
14242 (skip_delete_command): Likewise.
14243 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
14244 (library_list_start_library): Likewise.
14245 (solib_aix_current_sos): Likewise.
14246 * solib-darwin.c (get_darwin_info): Likewise.
14247 (darwin_current_sos): Likewise.
14248 * solib-dsbt.c (get_dsbt_info): Likewise.
14249 * solib-ia64-hpux.c (new_so_list): Likewise.
14250 (ia64_hpux_get_solib_linkage_addr): Likewise.
14251 * solib-spu.c (append_ocl_sos): Likewise.
14252 (spu_current_sos): Likewise.
14253 * solib-svr4.c (get_svr4_info): Likewise.
14254 (svr4_keep_data_in_core): Likewise.
14255 (library_list_start_library): Likewise.
14256 (svr4_default_sos): Likewise.
14257 (svr4_read_so_list): Likewise.
14258 * solib-target.c (library_list_start_library): Likewise.
14259 (solib_target_current_sos): Likewise.
14260 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
14261 * symfile-debug.c (install_symfile_debug_logging): Likewise.
14262 * symfile.c (default_symfile_segments): Likewise.
14263 * target-descriptions.c (tdesc_data_init): Likewise.
14264 (tdesc_create_reg): Likewise.
14265 (struct tdesc_type *): Likewise.
14266 (tdesc_create_vector): Likewise.
14267 (tdesc_set_struct_size): Likewise.
14268 (struct tdesc_type *): Likewise.
14269 (tdesc_free_feature): Likewise.
14270 (tdesc_create_feature): Likewise.
14271 * windows-nat.c (windows_add_thread): Likewise.
14272 (windows_make_so): Likewise.
14273 * xml-support.c (gdb_xml_body_text): Likewise.
14274 (gdb_xml_create_parser_and_cleanup): Likewise.
14275 (xml_process_xincludes): Likewise.
14276 * xml-syscall.c (allocate_syscalls_info): Likewise.
14277 (syscall_create_syscall_desc): Likewise.
14278
5acfdbae
SDJ
142792014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
14280
14281 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
14282 function, with code from i386_stap_parse_special_token.
14283 (i386_stap_parse_special_token_three_arg_disp): Likewise.
14284 (i386_stap_parse_special_token): Move code to the two functions
14285 above; simplify it.
14286
0000e5cc
PA
142872014-01-09 Pedro Alves <palves@redhat.com>
14288 Hui Zhu <hui@codesourcery.com>
14289
14290 PR gdb/16101
14291 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
14292 bp_err_string. Don't mark the location shlib_disabled if the
14293 error thrown wasn't a generic or memory error. Catch errors
14294 thrown while inserting breakpoints in overlayed code. Output
14295 error message of software breakpoints.
14296 * remote.c (remote_insert_breakpoint): If this breakpoint has
14297 target-side commands but this stub doesn't support Z0 packets,
14298 throw NOT_SUPPORTED_ERROR error.
14299 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
14300 * target.h (target_insert_breakpoint): Extend comment.
14301 (target_insert_hw_breakpoint): Add comment.
14302
b7ea362b
PA
143032014-01-08 Pedro Alves <palves@redhat.com>
14304
14305 * remote.c (remote_add_thread): Add threads silently if starting
14306 up.
14307 (remote_notice_new_inferior): If in all-stop, and starting up,
14308 don't call notice_new_inferior.
14309 (get_current_thread): New function, factored out from ...
14310 (add_current_inferior_and_thread): ... this. Adjust.
14311 (remote_start_remote) <all-stop>: Fetch the thread list. If we
14312 found any thread, then select the remote's current thread as GDB's
14313 current thread too.
14314
b7bba001
JB
143152014-01-08 Joel Brobecker <brobecker@adacore.com>
14316
14317 * NEWS: Create a new section for the next release branch.
14318 Rename the section of the current branch, now that it has
14319 been cut.
14320
16dfbded
JB
143212014-01-08 Joel Brobecker <brobecker@adacore.com>
14322
14323 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
14324 * version.in: Bump version to 7.7.50.DATE-cvs.
14325
22c90ac1
YQ
143262014-01-08 Yao Qi <yao@codesourcery.com>
14327
14328 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
14329 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
14330 (spu_xfer_partial): Cast 'buf' to 'const char *'.
14331
d64ad97c
YQ
143322014-01-08 Yao Qi <yao@codesourcery.com>
14333
14334 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
14335 return value of bfd_get_filename to symbol_file_add_from_bfd.
14336
f93ba80c
PM
143372014-01-08 Pierre Muller <muller@sourceware.org>
14338
14339 Fix PR16201.
14340 * coff-pe-read.c (struct read_pe_section_data): Add index field.
14341 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
14342 to prim_record_mininal_symbol_and_info.
14343 (add_pe_forwarded_sym): Use known section number of forwarded symbol
14344 in call to prim_record_minimal_symbol_and_info.
14345 (read_pe_exported_syms): Set index field of section_data.
14346
a4d9ba85
AP
143472014-01-07 Andrew Pinski <apinski@cavium.com>
14348
14349 * features/aarch64-core.xml (cpsr): Change to be 64bit.
14350 * features/aarch64.c: Regenerate.
14351
1b67eb02
AS
143522014-01-07 Andreas Schwab <schwab@linux-m68k.org>
14353
14354 * target.c (return_null): Define.
14355 (update_current_target): Use it instead of return_zero for
14356 functions that return a pointer.
14357
5e3f4fab
EBM
143582014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
14359
14360 * source.c (add_path): Fix check for duplicated paths in the previously
14361 included paths.
14362
e2616788
HK
143632014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
14364
14365 * ada-lang.c: Remove duplicated include statements.
14366 * alphabsd-nat.c: Ditto.
14367 * amd64-darwin-tdep.c: Ditto.
14368 * amd64fbsd-nat.c: Ditto.
14369 * auto-load.c: Ditto.
14370 * ax-gdb.c: Ditto.
14371 * breakpoint.c: Ditto.
14372 * dbxread.c: Ditto.
14373 * fork-child.c: Ditto.
14374 * gdb_usleep.c: Ditto.
14375 * i386-darwin-tdep.c: Ditto.
14376 * i386fbsd-nat.c: Ditto.
14377 * infcmd.c: Ditto.
14378 * inferior.c: Ditto.
14379 * jv-lang.c: Ditto.
14380 * linux-nat.c: Ditto.
14381 * linux-tdep.c: Ditto.
14382 * m68kbsd-nat.c: Ditto.
14383 * m68klinux-nat.c: Ditto.
14384 * microblaze-tdep.c: Ditto.
14385 * mips-linux-tdep.c: Ditto.
14386 * mn10300-tdep.c: Ditto.
14387 * nto-tdep.c: Ditto.
14388 * opencl-lang.c: Ditto.
14389 * osdata.c: Ditto.
14390 * printcmd.c: Ditto.
14391 * regcache.c: Ditto.
14392 * remote-m32r-sdi.c: Ditto.
14393 * remote.c: Ditto.
14394 * symfile.c: Ditto.
14395 * symtab.c: Ditto.
14396 * tilegx-linux-nat.c: Ditto.
14397 * tilegx-tdep.c: Ditto.
14398 * tracepoint.c: Ditto.
14399 * valops.c: Ditto.
14400 * vaxbsd-nat.c: Ditto.
14401 * windows-nat.c: Ditto.
14402 * xtensa-tdep.c: Ditto.
14403
bd1f7788
YQ
144042014-01-07 Yao Qi <yao@codesourcery.com>
14405
14406 * spu-linux-nat.c (_initialize_spu_nat): Declare.
14407
79301218
JB
144082014-01-07 Yao Qi <yao@codesourcery.com>
14409 Joel Brobecker <brobecker@adacore.com>
14410
14411 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
14412 (pdc_write_regs): Likewise.
14413 (fetch_regs_kernel_thread): Likewise.
14414 (store_regs_kernel_thread): Likewise.
14415
144162014-01-07 Joel Brobecker <brobecker@adacore.com>
14417
14418 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
14419 tagged type objects to their actual type.
14420
8e355c5d
JB
144212014-01-07 Joel Brobecker <brobecker@adacore.com>
14422
14423 * ada-valprint.c (print_field_values): Add "language" parameter.
14424 Update calls to print_field_values and print_variant_part.
14425 Pass new parameter "language" in call to val_print instead
14426 of "current_language". Replace call to ada_val_print by call
14427 to val_print.
14428 (print_variant_part): Add "language" parameter.
14429 (ada_val_print_struct_union): Update call to print_field_values.
14430
4fbf5aa5
JB
144312014-01-07 Joel Brobecker <brobecker@adacore.com>
14432
14433 * ada-valprint.c (ui_memcpy): Delete.
14434 (ada_print_floating): Update documentation. Add empty line
14435 between between function documentation and implementation.
14436 Delete variable "buffer". Use ui_file_xstrdup in place of
14437 ui_file_put. Minor adjustments following this change.
14438
71855601
JB
144392014-01-07 Joel Brobecker <brobecker@adacore.com>
14440
14441 * ada-valprint.c (ada_val_print_string): New function,
14442 extracted from ada_val_print_array.
14443 (ada_val_print_array): Replace extracted code by call
14444 to ada_val_print_string followed by a return. Move
14445 "else" branch to the function's top block.
14446
4eb27a30
JB
144472014-01-07 Joel Brobecker <brobecker@adacore.com>
14448
14449 * ada-valprint.c (ada_val_print_array): Move implementation
14450 down. Rename parameter "offset" and "val" into "offset_aligned"
14451 and "original_value" respectively. Add parameter "offset".
14452
34b27950
JB
144532014-01-07 Joel Brobecker <brobecker@adacore.com>
14454
14455 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
14456 re-organizing the code. Change the "???" message printed
14457 when target type is a TYPE_CODE_UNDEF into
14458 "<ref to undefined type>".
14459
079e4591
JB
144602014-01-07 Joel Brobecker <brobecker@adacore.com>
14461
14462 * ada-valprint.c (print_record): Delete, implementation inlined...
14463 (ada_val_print_struct_union): ... here. Remove call to
14464 ada_check_typedef in inlined implementation.
14465
8004dfd1
JB
144662014-01-07 Joel Brobecker <brobecker@adacore.com>
14467
14468 * ada-valprint.c (ada_val_print_gnat_array): New function,
14469 extracted from ada_val_print_1;
14470 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
14471 (ada_val_print_flt, ada_val_print_struct_union)
14472 (ada_val_print_ref): Likewise.
14473 (ada_val_print_1): Delete variables i and elttype.
14474 Replace extracted-out code by call to corresponding
14475 new functions.
14476
760a2db0
JB
144772014-01-07 Joel Brobecker <brobecker@adacore.com>
14478
14479 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
14480
3a92c861
JB
144812014-01-07 Joel Brobecker <brobecker@adacore.com>
14482
14483 * ada-valprint.c (ada_val_print_1): Replace calls to
14484 ada_val_print_1 by calls to val_print.
14485
cd1630f9
JB
144862014-01-07 Joel Brobecker <brobecker@adacore.com>
14487
14488 * ada-valprint.c (ada_val_print_1): Add parameter "language".
14489 Update calls to self accordingly. Replace calls to c_val_print
14490 by calls to val_print.
14491
bdf779a0
JB
144922014-01-07 Joel Brobecker <brobecker@adacore.com>
14493
14494 * ada-valprint.c (print_record): Delete declaration.
14495 (adjust_type_signedness, ada_val_print_1): Likewise.
14496 (ada_val_print): Move function implementation down.
14497 (print_variant_part, print_field_values, print_record):
14498 Move function implementation up.
14499
c0d48811
JB
145002014-01-07 Joel Brobecker <brobecker@adacore.com>
14501
14502 * python/py-type.c (typy_get_name): New function.
14503 (type_object_getset): Add entry for attribute "name".
14504 * NEWS: Add entry mentioning this new attribute.
14505
c26e9cbb
YQ
145062014-01-07 Yao Qi <yao@codesourcery.com>
14507
14508 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
14509 statement.
14510
0cc6f43d
YQ
145112014-01-07 Yao Qi <yao@codesourcery.com>
14512
14513 * gnu-nat.c (info_port_rights): Add qualifier const to
14514 argument args.
14515
eec03155
YQ
145162014-01-07 Yao Qi <yao@codesourcery.com>
14517
14518 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
14519
f04a82ef
YQ
145202014-01-07 Yao Qi <yao@codesourcery.com>
14521
14522 * gnu-nat.c (make_inf) Update declaration.
14523 (make_inf): Make it static.
14524 (inf_set_traced): Likewise.
14525 (inf_port_to_thread, inf_task_died_status): Likewise.
14526
d57dda0a
YQ
145272014-01-07 Yao Qi <yao@codesourcery.com>
14528
14529 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
14530
3aa8c969
YQ
145312014-01-07 Yao Qi <yao@codesourcery.com>
14532
14533 * gnu-nat.c (_initialize_gnu_nat): Declare.
14534
94123b4f
YQ
145352014-01-07 Yao Qi <yao@codesourcery.com>
14536
14537 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
14538 'enum bfd_endian'.
14539 (struct gdbarch_info) <byte_order>: Change type to
14540 'enum bfd_endian'.
14541 <byte_order_for_code>: Likewise.
14542 * gdbarch.c, gdbarch.h: Regenerated.
14543
dc81d70a
TT
145442014-01-06 Sasha Smundak <asmundak@google.com>
14545
14546 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
14547
cc2f3c35
TT
145482014-01-06 Tom Tromey <tromey@redhat.com>
14549
14550 * doublest.c (convert_doublest_to_floatformat): Use const, not
14551 CONST.
14552 * somread.c (som_symtab_read): Likewise.
14553
adcf2eed
HZ
145542014-01-07 Hui Zhu <hui@codesourcery.com>
14555
14556 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
14557 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
14558 (gdb_bfd_fopen): Ditto.
14559 (gdb_bfd_openr): Ditto.
14560 (gdb_bfd_openw): Ditto.
14561 (gdb_bfd_openr_iovec): Ditto.
14562 (gdb_bfd_fdopenr): Ditto.
14563 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
14564 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
14565 with xstrdup.
14566 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
14567 with xstrdup.
14568 * symfile-mem.c (symbol_file_add_from_memory): Removed
14569 gdb_bfd_stash_filename.
14570
50722198
DE
145712014-01-03 Doug Evans <dje@google.com>
14572
14573 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
14574 output.
14575
2fa4b862
JB
145762014-01-01 Joel Brobecker <brobecker@adacore.com>
14577
14578 Update year range in copyright notice of all files.
14579
28498c42
JB
145802014-01-01 Joel Brobecker <brobecker@adacore.com>
14581
14582 * top.c (print_gdb_version): Set copyright year to 2014.
14583
7b6e1046
JB
145842014-01-01 Joel Brobecker <brobecker@adacore.com>
14585
14586 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
14587
df96af55 14588For older changes see ChangeLog-2013.
c906108c
SS
14589\f
14590Local Variables:
14591mode: change-log
14592left-margin: 8
14593fill-column: 74
14594version-control: never
57da7796 14595coding: utf-8
c906108c 14596End:
This page took 2.411912 seconds and 4 git commands to generate.