Fix uninitialized value access when very first GDB command entered is <RET>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
6e5d7f39
PA
12014-10-29 Pedro Alves <palves@redhat.com>
2
3 * event-top.c (command_line_handler): Clear the first byte of
4 linebuffer, when it is first allocated.
5
551cb6a5
PA
62014-10-29 Pedro Alves <palves@redhat.com>
7
8 * tui/tui.c (tui_rl_switch_mode): Wrap tui_enable/tui_disable in
9 TRY_CATCH.
10
1e1e619b
PA
112014-10-29 Pedro Alves <palves@redhat.com>
12
13 PR tui/16138
14 PR tui/17519
15 * tui/tui-interp.c (tui_is_toplevel): Delete global.
16 (tui_allowed_p): Delete function.
17 * tui/tui.c: Include "interps.h".
18 (tui_enable): Don't use tui_allowed_p. Error out here with
19 detailed error messages if the TUI is the top level interpreter,
20 or if output is not a terminal. Use newterm instead of initscr,
21 and error out if initializing the terminal fails. Also error out if
22 the terminal doesn't support cursor addressing.
23 * tui/tui.h (tui_allowed_p): Delete declaration.
24
6041179a
JB
252014-10-29 Joel Brobecker <brobecker@adacore.com>
26
27 * arm-tdep.c (arm_skip_stack_protector): Return early if
28 address loaded by first "ldr" instruction does not have
29 a corresponding minimal symbol. Update comment.
30
6ae274b7
YQ
312014-10-29 Yao Qi <yao@codesourcery.com>
32
33 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
34 loaded address correctly of ldr instruction.
35
7f5ef605
PA
362014-10-28 Pedro Alves <palves@redhat.com>
37
38 PR gdb/12623
39 * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
40 field.
41 * infrun.c (resume) <stepping breakpoint instruction>: Set the
42 thread's stepped_breakpoint field. Skip if reverse debugging.
43 Add comment.
44 (init_thread_stepping_state, handle_signal_stop): Clear the
45 thread's stepped_breakpoint field.
46
7d1a114c
PA
472014-10-27 Pedro Alves <palves@redhat.com>
48
49 * remote.c (remote_thread_alive): New, factored out from ...
50 (remote_thread_alive): ... this.
51 (remote_update_thread_list): Bail out before deleting threads if
52 the target returned an empty list, and, the current thread has a
53 magic/fake ptid.
54
e5f8a7cc
PA
552014-10-27 Pedro Alves <palves@redhat.com>
56
57 * infrun.c (handle_signal_stop): Also skip handlers when a random
58 signal arrives while handling a "stepi" or a "nexti". Set the
59 thread's 'step_after_step_resume_breakpoint' flag.
60
71e396f9
LM
612014-10-27 Luis Machado <lgustavo@codesourcery.com>
62
63 * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
64 (arm_record_ld_st_imm_offset): Reimplement to cover all
65 load/store cases for ARM opcode 010.
66 (arm_record_ld_st_multiple): Reimplement to cover all
67 load/store cases for ARM opcode 100.
68
3aee438b
DE
692014-10-26 Doug Evans <xdje42@gmail.com>
70
71 * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
72
f88cb4b6
DE
732014-10-26 Doug Evans <xdje42@gmail.com>
74
75 * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
76 parameter "kind" to "block_index".
77 * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
78 "block_index".
79 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
80
a023a30f
DE
812014-10-26 Doug Evans <xdje42@gmail.com>
82
83 * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
84
4c35218e
DE
852014-10-26 Doug Evans <xdje42@gmail.com>
86
87 * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
88 obstack_alloc.
89
f08e8df3
DE
902014-10-26 Doug Evans <xdje42@gmail.com>
91
92 * parser-defs.h (block_found): Move decl from here ...
93 * symtab.h (block_found): ... to here.
94
cf901d3b
DE
952014-10-26 Doug Evans <xdje42@gmail.com>
96
97 * symtab.h (struct field_of_this_result): Fix typo in comment.
98 (lookup_symbol_in_language): Move function comment here.
99 (lookup_symbol): Improve function comment.
100 (basic_lookup_symbol_nonlocal): Ditto.
101 (lookup_symbol_static, lookup_symbol_global): Ditto.
102 (lookup_symbol_aux_block): Ditto.
103 (lookup_language_this): Add function comment.
104 (lookup_static_symbol_aux): Explicitly mark as extern. Improve
105 function comment.
106 (lookup_block_symbol): Improve function comment.
107 (lookup_struct): Fix capitalization in function comment.
108 (lookup_transparent_type): Add function comment.
109 (lookup_global_symbol_from_objfile): Explicitly mark as extern.
110 Improve function comment.
111 (lookup_objfile_from_block): Add function comment.
112 * symtab.c (lookup_symbol_in_language): Update function comment.
113 (lookup_symbol, lookup_language_this): Ditto.
114 (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
115 (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
116 (basic_lookup_symbol_nonlocal): Ditto.
117 (lookup_symbol_static, lookup_symbol_global): Ditto.
118 (lookup_transparent_type, lookup_block_symbol): Ditto.
119
ff6c39cf
DE
1202014-10-25 Doug Evans <xdje42@gmail.com>
121
122 * symtab.c (types_info): Delete forward decl.
123 (functions_info, variables_info, sources_info): Ditto.
124 (_initialize_symtab): Rewrite forward decl to use
125 initialize_file_ftype.
126
ec201f0c
DE
1272014-10-25 Doug Evans <xdje42@gmail.com>
128
129 * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
130
ca040673
DE
1312014-10-25 Doug Evans <xdje42@gmail.com>
132
133 * dwarf2read.c (process_structure_scope): Remove second (nested) copy
134 of local var child_die.
135
6f259a23
DB
1362014-10-24 Don Breazeal <donb@codesourcery.com>
137
138 * infrun.c (follow_fork_inferior): Update fork message printing
139 to use target_terminal_ours_for_output instead of
140 target_terminal_ours, to use _() for all format strings, to print
141 "vfork" instead of "fork" for vforks, and to add a detach message.
142 (handle_vfork_child_exec_or_exit): Update message printing to use
143 target_terminal_ours_for_output instead of target_terminal_ours, to
144 use _() for all format strings, and to fix some formatting.
145
09dd9a69
PA
1462014-10-24 Pedro Alves <palves@redhat.com>
147
148 * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
149 * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
150 * config/vax/vax.mh: Delete.
151 * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
152 obsolete configurations section.
153 * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
154 * vax-nat.c: Delete file.
155
5ab806de
PA
1562014-10-24 Pedro Alves <palves@redhat.com>
157
158 * NEWS (Removed targets): Add OS/arch column.
159
3433cfa5
SC
1602014-10-24 Siva Chandra Reddy <sivachandra@google.com>
161
162 * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
163 on the arg type of a constructor only if it is of reference type.
164
96ba4233
SL
1652014-10-23 Sandra Loosemore <sandra@codesourcery.com>
166
167 * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
168 accessors and constants from nios2 opcodes update.
169 (nios2_get_next_pc): Likewise.
170
28153fd3
DE
1712014-10-19 Doug Evans <xdje42@gmail.com>
172
173 * gdbthread.h (set_running): Fix comment.
174 (set_executing, finish_thread_state): Fix comment.
175
fc9b8e47
DE
1762014-10-18 Doug Evans <xdje42@gmail.com>
177
178 * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
179
4ffbba72
DE
1802014-10-17 Doug Evans <dje@google.com>
181
182 * NEWS: Mention new event gdb.clear_objfiles.
183 * python/py-event.h (emit_clear_objfiles_event): Clear
184 * python/py-events.h (events_object): New member clear_objfiles.
185 * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
186 event.
187 * python/py-inferior.c (python_new_objfile): If objfile is NULL,
188 emit clear_objfiles event.
189 * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
190 function.
191 (emit_clear_objfiles_event): New function.
192 (clear_objfiles): New event.
193 * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
194 Declare.
195 * python/python.c (_initialize_python): Call
196 gdbpy_initialize_clear_objfiles_event.
197
d096d8c1
DE
1982014-10-17 Doug Evans <dje@google.com>
199
200 * NEWS: Mention new gdb.Objfile.progspace attribute.
201 * python/py-objfile.c (objfpy_get_progspace): New function.
202 (objfile_getset): New entry for "progspace".
203
6c4486e6
PA
2042014-10-17 Pedro Alves <palves@redhat.com>
205
206 PR gdb/17471
207 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
208 returns a copy of the input.
209 (run_command_1, continue_command, step_1, jump_command)
210 (signal_command, until_command, advance_command, finish_command)
211 (attach_command): Adjust and install a cleanup to free the
212 stripped args.
213
0ff33695
PA
2142014-10-17 Pedro Alves <palves@redhat.com>
215
216 PR gdb/17300
217 * infcmd.c (continue_1): If continuing all threads in the
218 foreground, make sure the inferior's terminal settings are put in
219 effect.
220
6fdebc3d
PA
2212014-10-17 Pedro Alves <palves@redhat.com>
222
223 PR gdb/17472
224 * annotate.c (annotate_breakpoints_invalid): Use
225 target_terminal_our_for_output instead of target_terminal_ours.
226 Give back the terminal to the target.
227 (annotate_frames_invalid): Likewise.
228
5842f62a
PA
2292014-10-17 Pedro Alves <palves@redhat.com>
230
231 * target.c (enum terminal_state): New enum.
232 (terminal_state): New global.
233 (target_terminal_init): New function.
234 (target_terminal_inferior): Skip if inferior already owns the
235 terminal.
236 (target_terminal_ours, target_terminal_ours_for_output): New
237 functions.
238 * target.h (target_terminal_init): Convert to function prototype.
239 (target_terminal_ours_for_output): Convert to function prototype
240 and tweak comment.
241 (target_terminal_ours): Convert to function prototype and tweak
242 comment.
243 * windows-nat.c (do_initial_windows_stuff): Call
244 target_terminal_init instead of child_terminal_init_with_pgrp.
245
32a8097b
PA
2462014-10-17 Pedro Alves <palves@redhat.com>
247
248 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
249 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
250 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
251 solib-osf.c.
252 * NEWS: Mention that support for alpha*-*-osf* has been removed.
253 * ada-lang.h [__alpha__ && __osf__]
254 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
255 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
256 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
257 GDB_OSABI_OSF1.
258 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
259 files.
260 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
261 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
262 * configure: Regenerate.
263 * configure.ac: Remove references to osf.
264 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
265 section. Remove all other references to osf.
266 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
267 Remove all other references to osf.
268 * dec-thread.c: Delete file.
269 * defs.h (GDB_OSABI_OSF1): Delete.
270 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
271 defined.
272 * osabi.c (gdb_osabi_names): Delete "OSF/1".
273 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
274 Delete code.
275 (unconditionally_kill_inferior)
276 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
277 * solib-osf.c: Delete file.
278
80134cf5
PA
2792014-10-17 Pedro Alves <palves@redhat.com>
280
281 * remote.c (clear_threads_listing_context): Move higher up, out of
282 the HAVE_LIBEXPAT guard.
283
89c7137f
TG
2842014-10-16 Tristan Gingold <gingold@adacore.com>
285
286 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
287 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
288 on amd64.
289
44ee4a52
PA
2902014-10-15 Pedro Alves <palves@redhat.com>
291
292 * dec-thread.c (dec_thread_count_gdb_threads)
293 (dec_thread_add_gdb_thread): Delete.
294 (dec_thread_update_thread_list): Delete.
295 (dec_thread_find_new_threads): Rename to ...
296 (dec_thread_update_thread_list): ... this. Delete GDB-size
297 threads that are no longer found in dec_thread_list.
298 (resync_thread_list): Delete.
299 (dec_thread_wait): Call dec_thread_update_thread_list instead of
300 resync_thread_list.
301
ab970af1
PA
3022014-10-15 Pedro Alves <palves@redhat.com>
303
304 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
305 * remote.c (remote_update_thread_list): Skip calling prune_threads
306 if any thread listing method is supported, and instead walk over
307 the set of remote threads listed, deleting those that are not
308 found in GDB's thread list.
309
e8032dde
PA
3102014-10-15 Pedro Alves <palves@redhat.com>
311
312 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
313 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
314 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
315 (bsd_uthread_target): Adjust.
316 * corelow.c (core_open): Adjust.
317 * dec-thread.c (dec_thread_find_new_threads): Update comment.
318 (dec_thread_update_thread_list): New function.
319 (init_dec_thread_ops): Adjust.
320 * gdbthread.h (prune_threads): New declaration.
321 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
322 (thread_db_update_thread_list): ... this. Call prune_threads.
323 (init_thread_db_ops): Adjust.
324 * nto-procfs.c (procfs_find_new_threads): Rename to ...
325 (procfs_update_thread_list): ... this. Call prune_threads.
326 (procfs_attach, procfs_create_inferior, init_procfs_targets):
327 Adjust.
328 * obsd-nat.c (obsd_find_new_threads): Rename to ...
329 (obsd_update_thread_list): ... this. Call prune_threads.
330 (obsd_add_target): Adjust.
331 * procfs.c (procfs_target): Adjust.
332 (procfs_notice_thread): Update comment.
333 (procfs_find_new_threads): Rename to ...
334 (procfs_update_thread_list): ... this. Call prune_threads.
335 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
336 comment.
337 (ravenscar_wait): Adjust.
338 (ravenscar_find_new_threads): Rename to ...
339 (ravenscar_update_thread_list): ... this. Call prune_threads.
340 (init_ravenscar_thread_ops): Adjust.
341 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
342 (record_btrace_update_thread_list): ... this. Adjust comment.
343 (init_record_btrace_ops): Adjust.
344 * remote.c (remote_threads_info): Rename to ...
345 (remote_update_thread_list): ... this. Call prune_threads.
346 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
347 Adjust.
348 * sol-thread.c (check_for_thread_db): Adjust.
349 (sol_find_new_threads_callback): Rename to ...
350 (sol_update_thread_list_callback): ... this.
351 (sol_find_new_threads): Rename to ...
352 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
353 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
354 * target-delegates.c: Regenerate.
355 * target.c (target_find_new_threads): Rename to ...
356 (target_update_thread_list): ... this.
357 * target.h (struct target_ops): Rename to_find_new_threads field
358 to to_update_thread_list.
359 (target_find_new_threads): Rename to ...
360 (target_update_thread_list): ... this.
361 * thread.c (prune_threads): Make extern.
362 (update_thread_list): Adjust.
363
6dc54d91
PA
3642014-10-15 Pedro Alves <palves@redhat.com>
365
366 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
367 Add describing comment. Return -1 if the qL packet is not
368 supported.
369 (struct thread_item, thread_item_t): Move higher up in
370 the file. Add comments.
371 (struct threads_parsing_context): Move higher up in
372 the file, add comments, and remote to ...
373 (struct threads_listing_context): ... this.
374 (remote_newthread_step): Don't add the thread to GDB's thread
375 database here. Instead push it to the thread_listing_context
376 list.
377 (remote_find_new_threads): Rename to ...
378 (remote_get_threads_with_ql): ... this. Add target_ops and
379 targets_listing_context parameters. Pass down context.
380 (start_thread): Adjust.
381 (clear_threads_parsing_context): Rename to ...
382 (clear_threads_listing_context): ... this.
383 (remote_get_threads_with_qxfer): New, with parts salvaged from old
384 remote_threads_info.
385 (remote_get_threads_with_qthreadinfo): Ditto.
386 (remote_threads_info): Reimplement.
387
36728e82
PA
3882014-10-15 Pedro Alves <palves@redhat.com>
389
390 * infrun.c (resume): Don't force displaced-stepping for all
391 single-steps on software single-stepping archs.
392
34b7e8a6
PA
3932014-10-15 Pedro Alves <palves@redhat.com>
394
395 * breakpoint.c (single_step_breakpoints): Delete global.
396 (insert_single_step_breakpoint): Adjust to store the breakpoint
397 pointer in the current thread.
398 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
399 (cancel_single_step_breakpoints): Delete functions.
400 (breakpoint_has_location_inserted_here): Make extern.
401 (single_step_breakpoint_inserted_here_p): Adjust to walk the
402 breakpoint list.
403 * breakpoint.h (breakpoint_has_location_inserted_here): New
404 declaration.
405 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
406 (cancel_single_step_breakpoints): Remove declarations.
407 * gdbthread.h (struct thread_control_state)
408 <single_step_breakpoints>: New field.
409 (delete_single_step_breakpoints)
410 (thread_has_single_step_breakpoints_set)
411 (thread_has_single_step_breakpoint_here): New declarations.
412 * infrun.c (follow_exec): Also clear the single-step breakpoints.
413 (singlestep_breakpoints_inserted_p, singlestep_ptid)
414 (singlestep_pc): Delete globals.
415 (infrun_thread_ptid_changed): Remove references to removed
416 globals.
417 (resume_cleanups): Delete the current thread's single-step
418 breakpoints.
419 (maybe_software_singlestep): Remove references to removed globals.
420 (resume): Adjust to use thread_has_single_step_breakpoints_set and
421 delete_single_step_breakpoints.
422 (init_wait_for_inferior): Remove references to removed globals.
423 (delete_thread_infrun_breakpoints): Delete the thread's
424 single-step breakpoints too.
425 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
426 single-step breakpoints here.
427 (delete_stopped_threads_single_step_breakpoints): New function.
428 (adjust_pc_after_break): Adjust to use
429 thread_has_single_step_breakpoints_set.
430 (handle_inferior_event): Remove references to removed globals.
431 Use delete_stopped_threads_single_step_breakpoints.
432 (handle_signal_stop): Adjust to per-thread single-step
433 breakpoints. Swap test order to do cheaper tests first.
434 (switch_back_to_stepped_thread): Extend debug output. Remove
435 references to removed globals.
436 * record-full.c (record_full_wait_1): Adjust to per-thread
437 single-step breakpoints.
438 * thread.c (delete_single_step_breakpoints)
439 (thread_has_single_step_breakpoints_set)
440 (thread_has_single_step_breakpoint_here): New functions.
441 (clear_thread_inferior_resources): Also delete the thread's
442 single-step breakpoints.
443
5b834a0a
PA
4442014-10-15 Pedro Alves <palves@redhat.com>
445
446 * thread.c (delete_thread_breakpoint): New function.
447 (delete_step_resume_breakpoint)
448 (delete_exception_resume_breakpoint): Use it.
449 (delete_at_next_stop): New function.
450 (clear_thread_inferior_resources): Use delete_at_next_stop.
451
a1fd2fa5
PA
4522014-10-15 Pedro Alves <palves@redhat.com>
453
454 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
455 (breakpoint_inserted_here_p): ... here. Remove special case for
456 software single-step breakpoints.
457 (find_non_raw_software_breakpoint_inserted_here): Inline ...
458 (software_breakpoint_inserted_here_p): ... here. Remove special
459 case for software single-step breakpoints.
460 (bp_target_info_copy_insertion_state)
461 (deprecated_insert_raw_breakpoint)
462 (deprecated_remove_raw_breakpoint): Delete functions.
463 * breakpoint.h (deprecated_insert_raw_breakpoint)
464 (deprecated_remove_raw_breakpoint): Remove declarations.
465
7c16b83e
PA
4662014-10-15 Pedro Alves <palves@redhat.com>
467
468 PR breakpoints/9649
469 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
470 Delete array globals.
471 (single_step_breakpoints): New global.
472 (breakpoint_xfer_memory): Remove special handling for single-step
473 breakpoints.
474 (update_breakpoints_after_exec): Delete bp_single_step
475 breakpoints.
476 (detach_breakpoints): Remove special handling for single-step
477 breakpoints.
478 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
479 (bpstat_stop_status): Add comment.
480 (bpstat_what, bptype_string, print_one_breakpoint_location)
481 (adjust_breakpoint_address, init_bp_location): Handle
482 bp_single_step.
483 (new_single_step_breakpoint): New function.
484 (set_momentary_breakpoint, bkpt_remove_location): Remove special
485 handling for single-step breakpoints.
486 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
487 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
488 Rewrite.
489 (detach_single_step_breakpoints, find_single_step_breakpoint):
490 Delete functions.
491 (breakpoint_has_location_inserted_here): New function.
492 (single_step_breakpoint_inserted_here_p): Rewrite.
493 * breakpoint.h: Remove FIXME.
494 (enum bptype) <bp_single_step>: New enum value.
495 (insert_single_step_breakpoint): Update comment.
496 * infrun.c (resume_cleanups)
497 (delete_step_thread_step_resume_breakpoint): Remove single-step
498 breakpoints.
499 (fetch_inferior_event): Install a cleanup that removes infrun
500 breakpoints.
501 (switch_back_to_stepped_thread) <expect thread advanced also>:
502 Clear step-over info.
503
0cbcdb96
PA
5042014-10-15 Pedro Alves <palves@redhat.com>
505
506 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
507 (delete_thread_infrun_breakpoints): New function, with parts
508 salvaged from delete_step_resume_breakpoint_callback.
509 (delete_step_thread_step_resume_breakpoint): Delete.
510 (for_each_just_stopped_thread_callback_func): New typedef.
511 (for_each_just_stopped_thread): New function.
512 (delete_just_stopped_threads_infrun_breakpoints): New function.
513 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
514 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
515 ... this. Adjust.
516 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
517
963f9c80
PA
5182014-10-15 Pedro Alves <palves@redhat.com>
519
520 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
521 trying to step past a non-steppable watchpoint.
522 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
523 field.
524 * infrun.c (struct step_over_info): Add new field
525 'nonsteppable_watchpoint_p' and adjust comments.
526 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
527 Adjust.
528 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
529 (stepping_past_nonsteppable_watchpoint): New function.
530 (step_over_info_valid_p): Also return true if stepping past a
531 nonsteppable watchpoint.
532 (proceed): Adjust call to set_step_over_info. Remove reference to
533 init_infwait_state.
534 (init_wait_for_inferior): Remove reference to init_infwait_state.
535 (waiton_ptid): Delete global.
536 (struct execution_control_state)
537 <stepped_after_stopped_by_watchpoint>: Delete field.
538 (wait_for_inferior, fetch_inferior_event): Always pass
539 minus_one_ptid to target_wait.
540 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
541 field.
542 (init_infwait_state): Delete function.
543 (handle_inferior_event): Remove infwait_state handling.
544 (handle_signal_stop) <watchpoints handling>: Adjust after
545 stepped_after_stopped_by_watchpoint removal. Don't remove
546 breakpoints here nor set infwait_state. Set the thread's
547 stepping_over_watchpoint flag, and call keep_going instead.
548 (keep_going): Handle stepping_over_watchpoint. Adjust
549 set_step_over_info calls.
550 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
551 function.
552
6cc83d2a
PA
5532014-10-15 Pedro Alves <palves@redhat.com>
554
555 * infrun.c (step_over_info_valid_p): New function.
556 (resume): Use step_over_info_valid_p instead of checking the
557 threads's trap_expected flag.
558
6979730b
DE
5592014-10-15 Doug Evans <dje@google.com>
560 Walfred Tedeschi <walfred.tedeschi@intel.com>
561
562 PR python/17364
563 * python/lib/gdb/__init__.py (packages): Add "printer".
564 * python/lib/gdb/command/bound_registers.py: Moved to ...
565 * python/lib/gdb/printer/bound_registers.py: ... here.
566 Add printer to global set of builtin printers. Rename printer from
567 "bound" to "mpx_bound128".
568 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
569 registered as global "builtin" printer.
570 (add_builtin_pretty_printer): New function.
571 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
572 gdb/printer/__init__.py.
573
35a49624
IB
5742014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
575
576 * Makefile.in (SFILES): Remove d-support.c.
577 (COMMON_OBS): Remove d-support.o.
578 * d-lang.h (d_parse_symbol): Remove declaration.
579 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
580 * d-support.c: Remove file.
581
8fa0c4f8
AA
5822014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
583
584 * gdb/infrun.c (process_event_stop_test): Apply
585 gdbarch_addr_bits_remove to longjmp resume address.
586
3666da81
PA
5872014-10-15 Pedro Alves <palves@redhat.com>
588
589 * regformats/microblaze.dat: Delete file.
590
449aa9df
AKA
5912014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
592
593 * features/Makefile (microblaze-expedite): Replace pc with rpc.
594 * regformats/microblaze-with-stack-protect.dat: Regenerate.
595
ebb8ece2
SC
5962014-10-15 Siva Chandra Reddy <sivachandra@google.com>
597
598 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
599 as non-trivial.
600
82c48ac7
SC
6012014-10-15 Siva Chandra Reddy <sivachandra@google.com>
602
603 PR c++/13403
604 PR c++/15154
605 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
606 with qualified args.
607
c40cc657
JB
6082014-10-14 Joel Brobecker <brobecker@adacore.com>
609
610 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
611 of the case where the second operand is a pointer.
612 <BINOP_SUB>: Likewise.
613
0ea5cda8
SDJ
6142014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
615
616 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
617 only if it is not NULL.
618 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
619 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
620 (struct probe_ops) <clear_semaphore>: Likewise.
621 * tracepoint.c (start_tracing): Call set_semaphore only if it is
622 not NULL.
623 (stop_tracing): Likewise, for clear_semaphore.
624
f7088df3
SDJ
6252014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
626
627 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
628 using language_c, instead of current_language.
629
4e1bbde0
DE
6302014-10-13 Doug Evans <dje@google.com>
631
6ff5a0f6 632 * python/py-objfile.c (objfpy_initialize): New function.
4e1bbde0 633 (objfpy_new, objfile_to_objfile_object): Call it.
6ff5a0f6 634 * python/py-progspace.c (pspy_initialize): New function.
4e1bbde0
DE
635 (pspy_new, pspace_to_pspace_object): Call it.
636
c780cc2f
JK
6372014-10-13 Miroslav Franc <mfranc@redhat.com>
638 Jan Kratochvil <jan.kratochvil@redhat.com>
639
640 Fix "save breakpoints" for "catch" command.
641 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
642 newline.
643
99894e11
JK
6442014-10-12 Miroslav Franc <mfranc@redhat.com>
645
646 Fix "save breakpoints" for "disable $bpnum" command.
647 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
648
3831839c
PA
6492014-10-10 Pedro Alves <palves@redhat.com>
650
651 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
652 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
653 (HFILES_NO_SRCDIR): Remove solib-irix.h.
654 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
655 and been removed.
656 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
657 * configure.ac: Remove references to IRIX.
658 * configure.host: Add *-*-irix* to the obsolete hosts section.
659 Remove all other references to irix.
660 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
661 Delete files.
662
cc3afae2
AKA
6632014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
664
665 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
666 isn't valid, release the tdesc arch data and return NULL.
667
cdfa0b0a
PA
6682014-10-10 Pedro Alves <palves@redhat.com>
669
670 * linux-tdep.c: Include observer.h.
671 (linux_inferior_data): New global.
672 (struct linux_info): New structure.
673 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
674 (get_linux_inferior_data): New functions.
675 (linux_vsyscall_range): Rename to ...
676 (linux_vsyscall_range_raw): ... this.
677 (linux_vsyscall_range): New function; handles caching.
678 (_initialize_linux_tdep): Register linux_inferior_data. Install
679 inferior_exit and inferior_appeared observers.
680
8b9a549d
PA
6812014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
682 Pedro Alves <palves@redhat.com>
683
684 PR symtab/14466
685 * solib-svr4.c (svr4_read_so_list): Rename to ...
686 (svr4_current_sos_1): ... this and change the function comment.
687 (svr4_current_sos): New function.
688
3437254d
PA
6892014-10-10 Pedro Alves <palves@redhat.com>
690
691 * arch-utils.c (default_vsyscall_range): New function.
692 * arch-utils.h (default_vsyscall_range): New declaration.
693 * gdbarch.sh (vsyscall_range): New hook.
694 * gdbarch.h, gdbarch.c: Regenerate.
695 * linux-tdep.c (linux_vsyscall_range): New function.
696 (linux_init_abi): Install linux_vsyscall_range as
697 vsyscall_range gdbarch hook.
698 * memrange.c (address_in_mem_range): New function.
699 * memrange.h (address_in_mem_range): New declaration.
700 * symfile-mem.c (find_vdso_size): Delete function.
701 (add_vsyscall_page): Use gdbarch_vsyscall_range.
702
31cc0b80
PA
7032014-10-10 Pedro Alves <palves@redhat.com>
704
705 * infrun.c (normal_stop): Fix typo in comment.
706
3e3286a2
SDJ
7072014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
708
709 PR tdep/9390
710 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
711 typo when using logical AND to determine instruction type.
712
fcbdedf8
YQ
7132014-10-09 Yao Qi <yao@codesourcery.com>
714
715 * infrun.c (handle_signal_stop): Remove local variable
716 'printed'.
717
db984616
SS
7182014-10-08 Stan Shebs <stan@codesourcery.com>
719
720 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
721
3ba37e6c
GB
7222014-10-08 Gary Benson <gbenson@redhat.com>
723
724 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
725
a442d071
GB
7262014-10-08 Gary Benson <gbenson@redhat.com>
727
728 * common/common-defs.h: Include common-exceptions.h.
729 * exceptions.h: Do not include common-exceptions.h.
730
6f1947e8
GB
7312014-10-08 Gary Benson <gbenson@redhat.com>
732
733 * common/common-defs.h: Include cleanups.h.
734 * common/common-exceptions.c: Do not include cleanups.h.
735 * utils.h: Likewise.
736
c765fdb9
GB
7372014-10-08 Gary Benson <gbenson@redhat.com>
738
739 * ada-lang.c: Do not include exceptions.h.
740 * ada-valprint.c: Likewise.
741 * amd64-tdep.c: Likewise.
742 * auto-load.c: Likewise.
743 * block.c: Likewise.
744 * break-catch-throw.c: Likewise.
745 * breakpoint.c: Likewise.
746 * btrace.c: Likewise.
747 * c-lang.c: Likewise.
748 * cli/cli-cmds.c: Likewise.
749 * cli/cli-interp.c: Likewise.
750 * cli/cli-script.c: Likewise.
751 * completer.c: Likewise.
752 * corefile.c: Likewise.
753 * corelow.c: Likewise.
754 * cp-abi.c: Likewise.
755 * cp-support.c: Likewise.
756 * cp-valprint.c: Likewise.
757 * darwin-nat.c: Likewise.
758 * dwarf2-frame-tailcall.c: Likewise.
759 * dwarf2-frame.c: Likewise.
760 * dwarf2loc.c: Likewise.
761 * dwarf2read.c: Likewise.
762 * eval.c: Likewise.
763 * event-loop.c: Likewise.
764 * event-top.c: Likewise.
765 * f-valprint.c: Likewise.
766 * frame-unwind.c: Likewise.
767 * frame.c: Likewise.
768 * gdbtypes.c: Likewise.
769 * gnu-v2-abi.c: Likewise.
770 * gnu-v3-abi.c: Likewise.
771 * guile/scm-auto-load.c: Likewise.
772 * guile/scm-breakpoint.c: Likewise.
773 * guile/scm-cmd.c: Likewise.
774 * guile/scm-frame.c: Likewise.
775 * guile/scm-lazy-string.c: Likewise.
776 * guile/scm-param.c: Likewise.
777 * guile/scm-symbol.c: Likewise.
778 * guile/scm-type.c: Likewise.
779 * hppa-hpux-tdep.c: Likewise.
780 * i386-tdep.c: Likewise.
781 * inf-loop.c: Likewise.
782 * infcall.c: Likewise.
783 * infcmd.c: Likewise.
784 * infrun.c: Likewise.
785 * interps.c: Likewise.
786 * interps.h: Likewise.
787 * jit.c: Likewise.
788 * linespec.c: Likewise.
789 * linux-nat.c: Likewise.
790 * linux-thread-db.c: Likewise.
791 * m32r-rom.c: Likewise.
792 * main.c: Likewise.
793 * memory-map.c: Likewise.
794 * mi/mi-cmd-break.c: Likewise.
795 * mi/mi-cmd-stack.c: Likewise.
796 * mi/mi-interp.c: Likewise.
797 * mi/mi-main.c: Likewise.
798 * monitor.c: Likewise.
799 * nto-procfs.c: Likewise.
800 * objc-lang.c: Likewise.
801 * p-valprint.c: Likewise.
802 * parse.c: Likewise.
803 * ppc-linux-tdep.c: Likewise.
804 * printcmd.c: Likewise.
805 * probe.c: Likewise.
806 * python/py-auto-load.c: Likewise.
807 * python/py-breakpoint.c: Likewise.
808 * python/py-cmd.c: Likewise.
809 * python/py-finishbreakpoint.c: Likewise.
810 * python/py-frame.c: Likewise.
811 * python/py-framefilter.c: Likewise.
812 * python/py-function.c: Likewise.
813 * python/py-gdb-readline.c: Likewise.
814 * python/py-inferior.c: Likewise.
815 * python/py-infthread.c: Likewise.
816 * python/py-lazy-string.c: Likewise.
817 * python/py-linetable.c: Likewise.
818 * python/py-param.c: Likewise.
819 * python/py-prettyprint.c: Likewise.
820 * python/py-symbol.c: Likewise.
821 * python/py-type.c: Likewise.
822 * python/py-value.c: Likewise.
823 * python/python-internal.h: Likewise.
824 * python/python.c: Likewise.
825 * record-btrace.c: Likewise.
826 * record-full.c: Likewise.
827 * regcache.c: Likewise.
828 * remote-fileio.c: Likewise.
829 * remote-mips.c: Likewise.
830 * remote.c: Likewise.
831 * rs6000-aix-tdep.c: Likewise.
832 * rs6000-nat.c: Likewise.
833 * skip.c: Likewise.
834 * solib-darwin.c: Likewise.
835 * solib-dsbt.c: Likewise.
836 * solib-frv.c: Likewise.
837 * solib-ia64-hpux.c: Likewise.
838 * solib-spu.c: Likewise.
839 * solib-svr4.c: Likewise.
840 * solib.c: Likewise.
841 * spu-tdep.c: Likewise.
842 * stack.c: Likewise.
843 * stap-probe.c: Likewise.
844 * symfile-mem.c: Likewise.
845 * symmisc.c: Likewise.
846 * target.c: Likewise.
847 * thread.c: Likewise.
848 * top.c: Likewise.
849 * tracepoint.c: Likewise.
850 * tui/tui-interp.c: Likewise.
851 * typeprint.c: Likewise.
852 * utils.c: Likewise.
853 * valarith.c: Likewise.
854 * valops.c: Likewise.
855 * valprint.c: Likewise.
856 * value.c: Likewise.
857 * varobj.c: Likewise.
858 * windows-nat.c: Likewise.
859 * xml-support.c: Likewise.
860
484933d1
MR
8612014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
862
863 * mips-tdep.c (add_offset_16): Rewrite to implement what the
864 name implies.
865 (extended_mips16_next_pc): Update accordingly.
866
ab50adb6
MR
8672014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
868
869 * mips-tdep.c (mips16_instruction_is_compact_branch): New
870 function.
871 (micromips_instruction_is_compact_branch): Likewise.
872 (mips16_scan_prologue): Terminate scanning upon seeing a branch
873 or a compact jump, reaching a jump delay slot, or seeing a
874 second non-prologue instruction.
875 (micromips_scan_prologue): Also terminate scanning upon seeing a
876 compact branch or jump, or reaching a branch or jump delay slot.
877 (mips32_scan_prologue): Terminate scanning upon reaching a branch
878 or jump delay slot, or seeing a second non-prologue instruction.
879 (mips32_instruction_has_delay_slot): Retain instruction
880 examination code only, update arguments accordingly and move
881 instruction fetch pieces to...
882 (mips32_insn_at_pc_has_delay_slot): ... this new function.
883 (micromips_instruction_has_delay_slot): Likewise and to...
884 (micromips_insn_at_pc_has_delay_slot): ... this new function.
885 (mips16_instruction_has_delay_slot): Likewise and to...
886 (mips16_insn_at_pc_has_delay_slot): ... this new function.
887 (mips_single_step_through_delay): Update accordingly.
888 (mips_adjust_breakpoint_address): Likewise.
889
ae790652
MR
8902014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
891
892 * mips-tdep.c (micromips_instruction_has_delay_slot): When
893 !mustbe32 also return 1 for 32-bit instructions.
894 (mips16_instruction_has_delay_slot): Likewise. Add an
895 explanatory comment.
896
9b807e7b
MR
8972014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
898
899 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
900 symbols special.
901
0d5ed153
MR
9022014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
903
904 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
905 update comments.
906 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
907 for the breakpoint's address. Don't preinitialize `placed_size'.
908 (insert_bp_location): Set `reqstd_address' rather than
909 `placed_address'.
910 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
911 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
912 address.
913 (bkpt_remove_location): Likewise.
914 (deprecated_insert_raw_breakpoint): Likewise.
915 (deprecated_remove_raw_breakpoint): Likewise.
916 (find_single_step_breakpoint): Likewise.
917 * mem-break.c (default_memory_insert_breakpoint): Use
918 `reqstd_address' for the breakpoint's address. Don't set
919 `placed_address' or `placed_size' if breakpoint contents couldn't
920 have been determined.
921 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
922 the breakpoint's address.
923 (remote_insert_hw_breakpoint): Likewise. Don't set
924 `placed_address' or `placed_size' if breakpoint couldn't have been
925 set.
926 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
927 `reqstd_address' for the breakpoint's address.
928 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
929 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
930 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
931 * microblaze-linux-tdep.c
932 (microblaze_linux_memory_remove_breakpoint): Likewise.
933 * monitor.c (monitor_insert_breakpoint): Likewise.
934 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
935 (procfs_insert_hw_breakpoint): Likewise.
936 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
937 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
938 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
939 * remote-mips.c (mips_insert_breakpoint): Likewise.
940 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
941
3e871532
LM
9422014-10-03 Luis Machado <lgustavo@codesourcery.com>
943
944 * valops.c (value_assign): Check for bit field assignments
945 before calling architecture-specific register value
946 conversion functions.
947
ec48dc8b
PM
9482014-10-03 Pierre Muller <muller@sourceware.org>
949
950 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
951
b57bacec
PA
9522014-10-02 Pedro Alves <palves@redhat.com>
953
954 * breakpoint.c (breakpoints_should_be_inserted_now): Use
955 threads_are_executing.
956 * breakpoint.h (breakpoints_should_be_inserted_now): Add
957 describing comment.
958 * gdbthread.h (threads_are_executing): Declare.
959 (handle_signal_stop) <random signals>: Don't print about the
960 signal here if stopping.
961 (end_stepping_range): Don't notify observers here.
962 (normal_stop): Update the thread list. If stopped by a random
963 signal or a stepping range ended, notify observers.
964 * thread.c (threads_executing): New global.
965 (init_thread_list): Clear 'threads_executing'.
966 (set_executing): Set or clear 'threads_executing'.
967 (threads_are_executing): New function.
968 (update_threads_executing): New function.
969 (update_thread_list): Use it.
970
13fd3ff3
PA
9712014-10-02 Pedro Alves <palves@redhat.com>
972
973 PR breakpoints/17431
974 * breakpoint.c (update_breakpoints_after_exec): Don't create
975 overlay, longjmp, std terminate nor exception breakpoints here.
976
32990ada
PA
9772014-10-02 Pedro Alves <palves@redhat.com>
978
979 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
980 Adjust comments.
981 * inferior.c (find_inferior_for_program_space): Give preference to
982 the current inferior.
983 * inferior.h (find_inferior_for_program_space): Update comment.
984 * progspace.c (switch_to_program_space_and_thread): Prefer the
985 current inferior if it's bound to the program space requested. If
986 the inferior found doesn't have a PID yet, don't bother looking up
987 a thread.
988 * progspace.h (switch_to_program_space_and_thread): Adjust
989 comment.
990 * thread.c (any_thread_of_process, any_live_thread_of_process):
991 Give preference to the current thread.
992
0fec99e8
PA
9932014-10-01 Pedro Alves <palves@redhat.com>
994
995 * breakpoint.c (insert_bp_location): Error out if inserting a
996 software breakpoint at a read-only address.
997 * target.c (memory_xfer_check_region): New function, factored out
998 from ...
999 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
1000 ULONGEST.
1001 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
1002 against the memory region attributes.
1003
2ddf4301
SM
10042014-10-01 Simon Marchi <simon.marchi@ericsson.com>
1005
1006 * NEWS: Announce new exit-code field in -list-thread-groups
1007 output.
1008 * inferior.c (exit_inferior_1): Don't clear exit code.
1009 (inferior_appeared): Clear exit code.
1010 * mi/mi-main.c (print_one_inferior): Add printing of the exit
1011 code.
1012
5fdeec1d
PA
10132014-10-01 Pedro Alves <palves@redhat.com>
1014
1015 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
1016 GENERATED" along with emacs/vi read-only markers.
1017 * regformats/aarch64.dat: Regenerate.
1018 * regformats/arm-with-iwmmxt.dat: Regenerate.
1019 * regformats/arm-with-neon.dat: Regenerate.
1020 * regformats/arm-with-vfpv2.dat: Regenerate.
1021 * regformats/arm-with-vfpv3.dat: Regenerate.
1022 * regformats/i386/amd64-avx-linux.dat: Regenerate.
1023 * regformats/i386/amd64-avx.dat: Regenerate.
1024 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
1025 * regformats/i386/amd64-avx512.dat: Regenerate.
1026 * regformats/i386/amd64-linux.dat: Regenerate.
1027 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
1028 * regformats/i386/amd64-mpx.dat: Regenerate.
1029 * regformats/i386/amd64.dat: Regenerate.
1030 * regformats/i386/i386-avx-linux.dat: Regenerate.
1031 * regformats/i386/i386-avx.dat: Regenerate.
1032 * regformats/i386/i386-avx512-linux.dat: Regenerate.
1033 * regformats/i386/i386-avx512.dat: Regenerate.
1034 * regformats/i386/i386-linux.dat: Regenerate.
1035 * regformats/i386/i386-mmx-linux.dat: Regenerate.
1036 * regformats/i386/i386-mmx.dat: Regenerate.
1037 * regformats/i386/i386-mpx-linux.dat: Regenerate.
1038 * regformats/i386/i386-mpx.dat: Regenerate.
1039 * regformats/i386/i386.dat: Regenerate.
1040 * regformats/i386/x32-avx-linux.dat: Regenerate.
1041 * regformats/i386/x32-avx.dat: Regenerate.
1042 * regformats/i386/x32-avx512-linux.dat: Regenerate.
1043 * regformats/i386/x32-avx512.dat: Regenerate.
1044 * regformats/i386/x32-linux.dat: Regenerate.
1045 * regformats/i386/x32.dat: Regenerate.
1046 * regformats/microblaze-with-stack-protect.dat: Regenerate.
1047 * regformats/mips-dsp-linux.dat: Regenerate.
1048 * regformats/mips-linux.dat: Regenerate.
1049 * regformats/mips64-dsp-linux.dat: Regenerate.
1050 * regformats/mips64-linux.dat: Regenerate.
1051 * regformats/nios2-linux.dat: Regenerate.
1052 * regformats/rs6000/powerpc-32.dat: Regenerate.
1053 * regformats/rs6000/powerpc-32l.dat: Regenerate.
1054 * regformats/rs6000/powerpc-64l.dat: Regenerate.
1055 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
1056 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
1057 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
1058 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
1059 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
1060 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
1061 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
1062 * regformats/s390-linux32.dat: Regenerate.
1063 * regformats/s390-linux32v1.dat: Regenerate.
1064 * regformats/s390-linux32v2.dat: Regenerate.
1065 * regformats/s390-linux64.dat: Regenerate.
1066 * regformats/s390-linux64v1.dat: Regenerate.
1067 * regformats/s390-linux64v2.dat: Regenerate.
1068 * regformats/s390-te-linux64.dat: Regenerate.
1069 * regformats/s390x-linux64.dat: Regenerate.
1070 * regformats/s390x-linux64v1.dat: Regenerate.
1071 * regformats/s390x-linux64v2.dat: Regenerate.
1072 * regformats/s390x-te-linux64.dat: Regenerate.
1073 * regformats/tic6x-c62x-linux.dat: Regenerate.
1074 * regformats/tic6x-c62x.dat: Regenerate.
1075 * regformats/tic6x-c64x-linux.dat: Regenerate.
1076 * regformats/tic6x-c64x.dat: Regenerate.
1077 * regformats/tic6x-c64xp-linux.dat: Regenerate.
1078 * regformats/tic6x-c64xp.dat: Regenerate.
1079
db74e4ba
PA
10802014-10-01 Pedro Alves <palves@redhat.com>
1081
1082 * features/Makefile: Update comments.
1083 (XMLTOC): List all xml files we build C files from.
1084 (clean-cfiles): New rule.
1085
d63f2f84
PA
10862014-10-01 Pedro Alves <palves@redhat.com>
1087
1088 * features/i386/amd64-avx512-linux.c: Regenerate.
1089 * features/i386/amd64-avx512.c: Regenerate.
1090 * features/i386/x32-avx512-linux.c: Regenerate.
1091 * features/i386/x32-avx512.c: Regenerate.
1092
20ad026d
PA
10932014-10-01 Pedro Alves <palves@redhat.com>
1094
1095 * features/Makefile (WHICH): Remove arm-with-m,
1096 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
1097
acc9fe45
PA
10982014-10-01 Pedro Alves <palves@redhat.com>
1099
1100 * features/Makefile (clean): New rule.
1101
e001e535
PA
11022014-10-01 Pedro Alves <palves@redhat.com>
1103
1104 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
1105 (zmm14h): Add missing end quotes.
1106
bdc14417
PA
11072014-10-01 Pedro Alves <palves@redhat.com>
1108
1109 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
1110 * features/aarch64.c: Regenerate.
1111
d83ad864
DB
11122014-09-30 Don Breazeal <donb@codesourcery.com>
1113
1114 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
1115 code so as to work with follow_fork_inferior.
1116 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
1117 (inf_ttrace_create_inferior): Remove reference to
1118 inf_ttrace_vfork_ppid.
1119 (inf_ttrace_attach): Ditto.
1120 (inf_ttrace_detach): Ditto.
1121 (inf_ttrace_kill): Use current_inferior instead of
1122 inf_ttrace_vfork_ppid.
1123 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
1124 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
1125 inferior away from the parent.
1126 * infrun.c (follow_fork): Call follow_fork_inferior instead of
1127 target_follow_fork.
1128 (follow_fork_inferior): New function.
1129 (follow_inferior_reset_breakpoints): Make function static.
1130 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
1131 * linux-nat.c (linux_child_follow_fork): Move target-independent
1132 code to infrun.c:follow_fork_inferior.
1133
29082443
AA
11342014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1135
1136 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
1137 * gdbarch.c: Regenerate.
1138 * gdbarch.h: Likewise.
1139 * corelow.c (sniff_core_bfd): Drop presence check for deleted
1140 gdbarch method 'regset_from_core_section'.
1141 (get_core_register_section): Remove handling for the case that
1142 regset == NULL and regset_from_core_section is defined.
1143 (get_core_registers): Drop check for deleted method.
1144 * procfs.c (procfs_do_thread_registers): Adjust comment.
1145
f968fe80
AA
11462014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1147
1148 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
1149 (linux_nat_make_corefile_notes): Remove.
1150 (linux_target_install_ops): Do not set target method
1151 'make_corefile_notes'.
1152 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
1153 Remove field.
1154 (linux_corefile_thread_callback): Instead of args->collect, call
1155 linux_collect_thread_registers.
1156 (linux_make_corefile_notes): Remove 'collect' parameter. Return
1157 NULL unless there is a regset iterator.
1158 (linux_make_corefile_notes_1): Remove.
1159 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
1160 by linux_make_corefile_notes.
1161 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
1162
174ad59a
AA
11632014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1164
1165 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
1166 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
1167 Remove.
1168 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
1169
97094034
AA
11702014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1171
1172 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
1173 (xtensa_iterate_over_regset_sections): New.
1174 (xtensa_gdbarch_init): Adjust gdbarch initialization.
1175
f73d3ce7
AA
11762014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1177
1178 * vax-tdep.c (vax_regset_from_core_section): Remove.
1179 (vax_iterate_over_regset_sections): New.
1180 (vax_gdbarch_init): Adjust gdbarch initialization.
1181
cb24567a
AA
11822014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1183
1184 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
1185 (tilegx_regset_from_core_section): Remove.
1186 (tilegx_iterate_over_regset_sections): New.
1187 (tilegx_linux_init_abi): Adjust gdbarch initialization.
1188
e5139de8
AA
11892014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1190
1191 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
1192 (sparc_iterate_over_regset_sections): New.
1193 (sparc32_gdbarch_init): Adjust gdbarch initialization.
1194 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
1195 targets.
1196 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
1197 (sparc64fbsd_init_abi): Call fbsd_init_abi.
1198 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
1199 target method 'make_corefile_notes'.
1200
c6d41a6f
AA
12012014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1202
1203 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
1204 'sizeof_gregset' and 'sizeof_fpregset'.
1205 * sh-tdep.c (sh_regset_from_core_section): Remove.
1206 (sh_iterate_over_regset_sections): New.
1207 (sh_gdbarch_init): Adjust gdbarch initialization.
1208 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
1209 sizeof_fpregset.
1210 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
1211 'sizeof_gregset'.
1212
9845a0b5
AA
12132014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1214
1215 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
1216 (score7_linux_iterate_over_regset_sections): New.
1217 (score_gdbarch_init): Adjust gdbarch initialization.
1218
23ea9aeb
AA
12192014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1220
1221 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
1222 FreeBSD targets.
1223 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
1224 method 'make_corefile_notes'.
1225 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
1226 (ppcfbsd_regset_from_core_section): Remove.
1227 (ppcfbsd_iterate_over_regset_sections): New.
1228 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
1229 initialization.
1230 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
1231 (ppcnbsd_iterate_over_regset_sections): New.
1232 (ppcnbsd_init_abi): Adjust.
1233 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
1234 (ppcobsd_iterate_over_regset_sections): New.
1235 (ppcobsd_init_abi): Adjust.
1236 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
1237 (rs6000_aix_iterate_over_regset_sections): New.
1238 (rs6000_aix_init_osabi): Adjust.
1239
c5b8d704
AA
12402014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1241
1242 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
1243 (nios2_regset_from_core_section): Remove.
1244 (nios2_iterate_over_regset_sections): New.
1245 (nios2_linux_init_abi): Adjust gdbarch initialization.
1246
3636e608
AA
12472014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1248
1249 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
1250 (am33_iterate_over_regset_sections): New.
1251 (am33_linux_init_osabi): Adjust gdbarch initialization.
1252
d4036235
AA
12532014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1254
1255 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
1256 (mips_linux_iterate_over_regset_sections): New.
1257 (mips_linux_init_abi): Adjust gdbarch initialization.
1258 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
1259 (mips64obsd_iterate_over_regset_sections): New.
1260 (mips64obsd_init_abi): Adjust.
1261 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
1262 (mipsnbsd_iterate_over_regset_sections): New.
1263 (mipsnbsd_init_abi): Adjust.
1264
b61ddd6e
AA
12652014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1266
1267 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
1268 (m88k_iterate_over_regset_sections): New.
1269 (m88k_gdbarch_init): Adjust gdbarch initialization.
1270
55a2906a
AA
12712014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1272
1273 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
1274 (ia64_linux_iterate_over_regset_sections): New.
1275 (ia64_linux_init_abi): Adjust gdbarch initialization.
1276
022c98ab
AA
12772014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1278
1279 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
1280 (m68kbsd_iterate_over_regset_sections): New.
1281 (m68kbsd_init_abi): Adjust gdbarch initialization.
1282 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
1283 (m68k_linux_iterate_over_regset_sections): New.
1284 (m68k_linux_init_abi): Adjust gdbarch initialization.
1285
5fac247f
AA
12862014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1287
1288 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
1289 (m32r_linux_regset_from_core_section): Remove.
1290 (m32r_linux_iterate_over_regset_sections): New.
1291 (m32r_linux_init_abi): Adjust gdbarch initialization.
1292
490496c3
AA
12932014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1294
1295 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
1296 (amd64obsd_iterate_over_regset_sections): New.
1297 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
1298 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
1299 Remove.
1300 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
1301 regset_from_core_section initialization.
1302 * i386-tdep.c (i386_regset_from_core_section): Remove.
1303 (i386_iterate_over_regset_sections): New.
1304 (i386_gdbarch_init): Adjust gdbarch initialization.
1305 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
1306 (i386_iterate_over_regset_sections): New prototype.
1307 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
1308 Remove.
1309 (i386obsd_aout_iterate_over_regset_sections): New.
1310 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
1311 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
1312 targets.
1313 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
1314 (amd64fbsd_init_abi): Call fbsd_init_abi.
1315 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
1316 (i386fbsd4_init_abi): Call fbsd_init_abi.
1317 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
1318 target method 'make_corefile_notes'.
1319 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
1320
50c5eb53
AA
13212014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1322
1323 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
1324 (hppa_hpux_iterate_over_regset_sections): New.
1325 (hppa_hpux_init_abi): Adjust gdbarch initialization.
1326 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
1327 (hppa_linux_iterate_over_regset_sections): New.
1328 (hppa_linux_init_abi): Adjust.
1329 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
1330 (hppanbsd_iterate_over_regset_sections): New.
1331 (hppanbsd_init_abi): Adjust.
1332 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
1333 (hppaobsd_iterate_over_regset_sections): New.
1334 (hppaobsd_init_abi): Adjust.
1335
66afae4f
AA
13362014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1337
1338 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
1339 (frv_linux_iterate_over_regset_sections): New.
1340 (frv_linux_init_abi): Adjust gdbarch initialization.
1341
ed09174e
AA
13422014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1343
1344 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
1345 (armbsd_iterate_over_regset_sections): New prototype.
1346 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
1347 (armbsd_iterate_over_regset_sections): New.
1348 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
1349 initialization.
1350
dff2166e
AA
13512014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1352
1353 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
1354 (alpha_linux_iterate_over_regset_sections): New.
1355 (alpha_linux_init_abi): Adjust gdbarch initialization.
1356 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
1357 prototype.
1358 (alphanbsd_iterate_over_regset_sections): New prototype.
1359
4108500a
AA
13602014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1361
1362 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
1363 Remove.
1364 (aarch64_linux_iterate_over_regset_sections): New.
1365 (aarch64_linux_init_abi): Adjust gdbarch initialization.
1366
a904c024
AA
13672014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1368
1369 * fbsd-tdep.c: New file.
1370 * fbsd-tdep.h: New file.
1371 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
1372 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
1373 (ALLDEPFILES): Add fbsd-tdep.c.
1374
8f0435f7
AA
13752014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1376
1377 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
1378 parameter.
1379 * gdbarch.h: Regenerate.
1380 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
1381 iterator.
1382 (get_core_register_section): Add parameter 'regset' and use it, if
1383 set. Add parameter 'min_size' and verify the bfd section size
1384 against it.
1385 (get_core_registers_cb): Add parameter 'regset' and pass it to
1386 get_core_register section. For the "standard" register sections
1387 ".reg" and ".reg2", set an appropriate default for human_name.
1388 (get_core_registers): Don't abort when the gdbarch has an iterator
1389 but no regset_from_core_section. Add NULL/0 for parameters
1390 'regset'/'min_size' in calls to get_core_register_section.
1391 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
1392 'regset' and use it instead of calling the
1393 regset_from_core_section gdbarch method.
1394 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
1395 * i386-tdep.c (i386_supply_xstateregset)
1396 (i386_collect_xstateregset, i386_xstateregset): Moved to
1397 i386-linux-tdep.c.
1398 (i386_regset_from_core_section): Drop handling for .reg-xfp and
1399 .reg-xstate.
1400 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
1401 core file support only if the regset iterator hasn't been set.
1402 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
1403 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
1404 Moved from i386-tdep.c and renamed to *_linux*.
1405 (i386_linux_iterate_over_regset_sections): Add regset parameter to
1406 each callback invocation. Allow any .reg-xstate size when reading
1407 from a core file.
1408 * amd64-tdep.c (amd64_supply_xstateregset)
1409 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
1410 amd64-linux-tdep.c.
1411 (amd64_regset_from_core_section): Remove.
1412 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
1413 install an amd64-specific regset_from_core_section gdbarch method.
1414 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
1415 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
1416 Moved from amd64-tdep.c and renamed to *_linux*.
1417 (amd64_linux_iterate_over_regset_sections): Add regset parameter
1418 to each callback invocation. Allow any .reg-xstate size when
1419 reading from a core file.
1420 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
1421 (arm_linux_iterate_over_regset_sections): Add regset parameter to
1422 each callback invocation.
1423 (arm_linux_init_abi): No longer set the regset_from_core_section
1424 gdbarch method.
1425 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
1426 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
1427 each callback invocation.
1428 (ppc_linux_init_abi): No longer set the regset_from_core_section
1429 gdbarch method.
1430 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
1431 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
1432 (s390_regset_from_core_section): Remove.
1433 (s390_iterate_over_regset_sections): Add regset parameter to each
1434 callback invocation.
1435 (s390_gdbarch_init): No longer set the regset_from_core_section
1436 gdbarch method. Drop initialization of deleted tdep fields.
1437
5aa82d05
AA
14382014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1439
1440 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
1441 (amd64_linux_iterate_over_regset_sections): New.
1442 (amd64_linux_init_abi_common): Don't install the regset section
1443 list, but the new iterator in gdbarch.
1444 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
1445 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
1446 (arm_linux_iterate_over_regset_sections): ...here. New function.
1447 (arm_linux_init_abi): Set iterator instead of section list.
1448 * corelow.c (get_core_registers_cb): New function, logic moved
1449 from...
1450 (get_core_registers): ...loop body here. Use new iterator method
1451 instead of walking through the regset section list.
1452 * gdbarch.sh: Remove 'core_regset_sections'. New method
1453 'iterate_over_regset_sections'. New typedef
1454 'iterate_over_regset_sections_cb'.
1455 * gdbarch.c: Regenerate.
1456 * gdbarch.h: Likewise.
1457 * i386-linux-tdep.c (i386_linux_regset_sections)
1458 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
1459 Remove.
1460 (i386_linux_iterate_over_regset_sections): New.
1461 (i386_linux_init_abi): Don't choose a regset section list, but
1462 install new iterator in gdbarch.
1463 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
1464 (linux_collect_regset_section_cb): New function, logic moved
1465 from...
1466 (linux_collect_thread_registers): ...loop body here. Use iterator
1467 method instead of walking through list.
1468 (linux_make_corefile_notes_1): Check for presence of iterator
1469 method instead of regset section list.
1470 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
1471 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
1472 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
1473 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
1474 (ppc_linux_iterate_over_regset_sections): ...here. New function.
1475 (ppc_linux_init_abi): Don't choose from above regset section
1476 lists, but install new iterator in gdbarch.
1477 * regset.h (struct core_regset_section): Remove.
1478 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
1479 have_linux_v1, have_linux_v2, and have_tdb.
1480 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
1481 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
1482 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
1483 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
1484 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
1485 (s390_iterate_over_regset_sections): ...here. New function. Use
1486 new tdep fields.
1487 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
1488 regset section lists, but install new iterator.
1489
2eca4a8d
JK
14902014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1491
1492 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
1493
a73c2b56
SM
14942014-09-26 Simon Marchi <simon.marchi@ericsson.com>
1495
1496 * progspace.c (print_program_space): Don't prune program spaces
1497 before printing them.
1498
03d46957
PA
14992014-09-25 Pedro Alves <palves@redhat.com>
1500
1501 * infrun.c (user_visible_resume_ptid): Don't check
1502 singlestep_breakpoints_inserted_p.
1503
e558d7c1
PA
15042014-09-25 Pedro Alves <palves@redhat.com>
1505
1506 * breakpoint.c (should_be_inserted): Add debug output.
1507
7f89fd65
PA
15082014-09-25 Pedro Alves <palves@redhat.com>
1509
1510 * infrun.c (stepping_past_instruction_at)
1511 (clear_exit_convenience_vars): Point at infrun.h instead of
1512 inferior.h.
1513 (handle_signal_stop): Fix typo.
1514
b7576e5c
YQ
15152014-09-24 Yao Qi <yao@codesourcery.com>
1516
1517 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
1518 bitmask.
1519
9a6cf368
GB
15202014-09-22 Gary Benson <gbenson@redhat.com>
1521
1522 * target.c (target_stop): Updated comment.
1523
03f4463b
GB
15242014-09-22 Gary Benson <gbenson@redhat.com>
1525
1526 * target/target.h (target_stop_ptid): Renamed as...
1527 (target_stop_and_wait): New function. Updated comment.
1528 All uses updated.
1529 (target_continue_ptid): Renamed as...
1530 (target_continue_no_signal): New function. Updated comment.
1531 All uses updated.
1532
a25a5a45
PA
15332014-09-22 Pedro Alves <palves@redhat.com>
1534
1535 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
1536 and "auto" merged.
1537 * breakpoint.c (enum ugll_insert_mode): New enum.
1538 (always_inserted_mode): Now a plain boolean.
1539 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
1540 (breakpoints_always_inserted_mode): Delete.
1541 (breakpoints_should_be_inserted_now): New function.
1542 (insert_breakpoints): Pass UGLL_INSERT to
1543 update_global_location_list instead of calling
1544 insert_breakpoint_locations manually.
1545 (create_solib_event_breakpoint_1): New, factored out from ...
1546 (create_solib_event_breakpoint): ... this.
1547 (create_and_insert_solib_event_breakpoint): Use
1548 create_solib_event_breakpoint_1 instead of calling
1549 insert_breakpoint_locations manually.
1550 (update_global_location_list): Change parameter type from boolean
1551 to enum ugll_insert_mode. All callers adjusted. Adjust to use
1552 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
1553 (update_global_location_list_nothrow): Change parameter type from
1554 boolean to enum ugll_insert_mode.
1555 (_initialize_breakpoint): "breakpoint always-inserted" option is
1556 now a boolean command. Update help text.
1557 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
1558 (breakpoints_should_be_inserted_now): New declaration.
1559 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
1560 Remove breakpoints_always_inserted_mode check.
1561 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
1562 * remote.c (remote_start_remote): Likewise.
1563
04086b45
PA
15642014-09-22 Pedro Alves <palves@redhat.com>
1565
1566 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
1567 (insert_breakpoints): Don't call insert_breakpoint_locations here.
1568 Instead, pass UGLL_INSERT to update_global_location_list.
1569 (update_global_location_list): Change parameter type from boolean
1570 to enum ugll_insert_mode. All callers adjusted. Adjust to use
1571 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
1572 (create_solib_event_breakpoint_1): New, factored out from ...
1573 (create_solib_event_breakpoint): ... this.
1574 (create_and_insert_solib_event_breakpoint): Use
1575 create_solib_event_breakpoint_1 instead of calling
1576 insert_breakpoint_locations manually.
1577 (update_global_location_list): Handle UGLL_INSERT.
1578
44702360
PA
15792014-09-22 Pedro Alves <palves@redhat.com>
1580
1581 * breakpoint.c (enum ugll_insert_mode): New enum.
1582 (update_global_location_list)
1583 (update_global_location_list_nothrow): Change parameter type from
1584 boolean to enum ugll_insert_mode. All callers adjusted.
1585
93c6145a
JB
15862014-09-19 Joel Brobecker <brobecker@adacore.com>
1587
1588 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
1589 SystemTap support in GDB.
1590
89a5711c
DB
15912014-09-19 Don Breazeal <donb@codesourcery.com>
1592
1593 * linux-nat.c (linux_handle_extended_wait): Call
1594 linux_ptrace_get_extended_event.
1595 (wait_lwp): Call linux_is_extended_waitstatus.
1596 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
1597 and linux_is_extended_waitstatus.
1598 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
1599 linux_ptrace_get_extended_event.
1600 (linux_ptrace_get_extended_event): New function.
1601 (linux_is_extended_waitstatus): New function.
1602 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
1603 (linux_is_extended_waitstatus): New declarations.
1604
c3b7b696
YQ
16052014-09-19 Yao Qi <yao@codesourcery.com>
1606
1607 * dwarf2read.c (dwarf_decode_lines): Update declaration.
1608 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
1609 comments. Callers update.
1610 (dwarf_decode_lines): Likewise.
1611 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
1612 comments. Skip the line table if 'lowpc' is greater than
1613 'address'. Don't check
1614 dwarf2_per_objfile->has_section_at_zero.
1615
2b4fd423
DE
16162014-09-18 Doug Evans <dje@google.com>
1617
1618 * NEWS: Mention new "producer" attribute of gdb.Symtab.
1619 * python/py-symtab.c (stpy_get_producer): New function.
1620 (symtab_object_getset): Add "producer" attribute.
1621
5e43d467
UW
16222014-09-17 Ulrich Weigand  <uweigand@de.ibm.com>
1623
1624 PR gdb/17384
1625 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
1626 (do_captured_read_memory_integer): Remove.
1627 (safe_read_memory_integer): Use target_read_memory directly instead
1628 of catching errors in do_captured_read_memory_integer.
1629
04e79979
MR
16302014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
1631
1632 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
1633 not gdb/doc.
1634
76aeec5b
SDJ
16352014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1636
1637 * objc-lang.c (find_implementation_from_class): Remove dead code.
1638
2f693f9d
SDJ
16392014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1640
1641 PR cli/7233
1642 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
1643 "fprintf_unfiltered (gdb_stdlog...)".
1644
bb9d5f81
PP
16452014-09-16 Patrick Palka <patrick@parcs.ath.cx>
1646
1647 PR breakpoints/12526
1648 * breakpoint.h (struct watchpoint): New fields val_bitpos and
1649 val_bitsize.
1650 * breakpoint.c (watch_command_1): Use these fields to retain
1651 bitfield information.
1652 (extract_bitfield_from_watchpoint_value): New function.
1653 (watchpoint_check): Use it.
1654 (update_watchpoint): Use it. Optimize the address and length of a
1655 HW watchpoint pointing to a bitfield.
1656 * value.h (unpack_value_bitfield): New prototype.
1657 * value.c (unpack_value_bitfield): Make extern.
1658
05db5edd
ST
16592014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
1660
1661 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
1662 x86-dregs.o.
1663 * gnu-nat.c (inf_threads): New function.
1664 * gnu-nat.h (inf_threads_ftype): New typedef.
1665 (inf_threads): New declaration.
1666 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
1667 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
1668 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
1669 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
1670 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
1671 (i386_gnu_dr_get_control): New functions.
1672 (reg_addr): New structure.
1673 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
1674 i386 debugging register hooks.
1675 * NEWS: Mention this.
1676
5a578da5
OJ
16772014-08-13 Omair Javaid <omair.javaid@linaro.org>
1678
1679 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
1680 vector data transfer instructions.
1681 (arm_record_coproc_data_proc): Updated.
1682
f20f80dd
OJ
16832014-08-13 Omair Javaid <omair.javaid@linaro.org>
1684
1685 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
1686 arm_record_exreg_ld_st_insn.
1687 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
1688 load/store insns.
1689
851f26ae
OJ
16902014-08-13 Omair Javaid <omair.javaid@linaro.org>
1691
1692 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
1693 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
1694 processing instructions.
1695
1e1b6563
OJ
16962014-08-13 Omair Javaid <omair.javaid@linaro.org>
1697
1698 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
1699 for advance SIMD struct ld/st insn.
1700 (thumb2_record_decode_insn_handler): Replace stub handler with
1701 thumb2_record_asimd_struct_ld_st.
1702
60cc5e93
OJ
17032014-08-13 Omair Javaid <omair.javaid@linaro.org>
1704
1705 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
1706 for asimd, vfp and coprocessor insns.
1707 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
1708 and coprocessor insns.
1709 (thumb2_record_coproc_insn): New function.
1710 (thumb2_record_decode_insn_handler): Update coprocessor insns record
1711 handlers.
1712 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
1713 opcode 110 insns.
1714
81219e53
DE
17152014-09-13 Doug Evans <xdje42@gmail.com>
1716
1717 * NEWS: Mention new "queue-signal" command.
1718 * infcmd.c (queue_signal_command): New function.
1719 (_initialize_infcmd): Add new queue-signal command.
1720
d36bf488
DE
17212014-09-13 Doug Evans <xdje42@gmail.com>
1722
1723 * linux-nat.c (wait_lwp): Add debugging printf.
1724 (linux_nat_wait_1): Ditto.
1725
f37f681c
PA
17262014-09-12 Pedro Alves <palves@redhat.com>
1727
1728 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
1729 (create_and_insert_solib_event_breakpoint): New functions.
1730 * breakpoint.h (create_and_insert_solib_event_breakpoint)
1731 (remove_solib_event_breakpoints_at_next_stop): New declarations.
1732 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
1733 (remove_dbx_link_breakpoint): Delete function.
1734 (insert_dbx_link_bpt_in_file): Use
1735 create_and_insert_solib_event_breakpoint instead of
1736 deprecated_insert_raw_breakpoint.
1737 (procfs_wait): Don't check whether we hit __dbx_link here.
1738 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
1739 here.
1740 * solib-irix.c (base_breakpoint): Delete global.
1741 (disable_break): Delete function.
1742 (enable_break): Use create_solib_event_breakpoint
1743 instead of deprecated_insert_raw_breakpoint.
1744 (irix_solib_handle_event): New function.
1745 (irix_solib_create_inferior_hook): Don't run the target or disable
1746 the mapping-complete breakpoint here.
1747 (_initialize_irix_solib): Install irix_solib_handle_event as
1748 so_ops->handle_event hook.
1749
9d9bf2df
EBM
17502014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1751 Ulrich Weigand  <uweigand@de.ibm.com>
1752
1753 PR tdep/17379
1754 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
1755 instead of read_memory_unsigned_integer.
1756
b006a80e
GB
17572014-09-12 Gary Benson <gbenson@redhat.com>
1758
1759 * nat/linux-waitpid.c: Include common-defs.h.
1760 [GDBSERVER]: Add FIXME comment.
1761 [!GDBSERVER]: Don't include defs.h or signal.h.
1762 (linux_debug) [!GDBSERVER]: Remove empty block.
1763
296b1496
GB
17642014-09-12 Gary Benson <gbenson@redhat.com>
1765
1766 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
1767 Don't include defs.h or server.h.
1768
53f81362
GB
17692014-09-12 Gary Benson <gbenson@redhat.com>
1770
1771 * nat/linux-btrace.c: Include common-defs.h.
1772 Don't include defs.h, server.h or gdbthread.h.
1773 * nat/linux-btrace.h (struct target_ops): New forward declaration.
1774
727605ca
GB
17752014-09-12 Gary Benson <gbenson@redhat.com>
1776
1777 * common/agent.c: Include common-defs.h.
1778 Don't include defs.h or server.h.
1779 * common/buffer.c: Likewise.
1780 * common/common-debug.c: Likewise.
1781 * common/common-utils.c: Likewise.
1782 * common/errors.c: Likewise.
1783 * common/filestuff.c: Likewise.
1784 * common/format.c: Likewise.
1785 * common/gdb_vecs.c: Likewise.
1786 * common/print-utils.c: Likewise.
1787 * common/ptid.c: Likewise.
1788 * common/rsp-low.c: Likewise.
1789 * common/signals.c: Likewise.
1790 * common/vec.c: Likewise.
1791 * common/xml-utils.c: Likewise.
1792 * nat/linux-osdata.c: Likewise.
1793 * nat/linux-procfs.c: Likewise.
1794 * nat/linux-ptrace.c: Likewise.
1795 * nat/mips-linux-watch.c: Likewise.
1796 * target/waitstatus.c: Likewise.
1797
361c8ade
GB
17982014-09-12 Tom Tromey <tromey@redhat.com>
1799 Gary Benson <gbenson@redhat.com>
1800
1801 * common/common-regcache.h: New file.
1802 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
1803 * regcache.h: Include common-regcache.h.
1804 (regcache_read_pc): Don't declare.
1805 * regcache.c (get_thread_regcache_for_ptid): New function.
1806 * nat/linux-btrace.c: Don't include regcache.h.
1807 Include common-regcache.h.
1808 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
1809
a01cbb49
TS
18102014-09-11 Thomas Schwinge <thomas@codesourcery.com>
1811
1812 * regcache.h (struct regset): Declare.
1813
98880d46
PA
18142014-09-11 Pedro Alves <palves@redhat.com>
1815
1816 PR gdb/17347
1817 * main.c: Include "infrun.h".
1818 (catch_command_errors, catch_command_errors_const): Wait for the
1819 foreground command to complete.
1820 * top.c (maybe_wait_sync_command_done): New function, factored out
1821 from ...
1822 (maybe_wait_sync_command_done): ... here.
1823 * top.h (maybe_wait_sync_command_done): New declaration.
1824
bd9269f7
GB
18252014-09-11 Tom Tromey <tromey@redhat.com>
1826 Gary Benson <gbenson@redhat.com>
1827
1828 * common/symbol.h: New file.
1829 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
1830 * minsyms.c (find_minimal_symbol_address): New function.
1831 * common/agent.c: Include common/symbol.h.
1832 [!GDBSERVER]: Don't include objfiles.h.
1833 (agent_look_up_symbols): Use find_minimal_symbol_address.
1834
f8c1d06b
GB
18352014-09-11 Gary Benson <gbenson@redhat.com>
1836
1837 * target/target.h (target_stop_ptid, target_continue_ptid):
1838 Declare.
1839 * target.c (target_stop_ptid, target_continue_ptid): New
1840 functions.
1841 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
1842 (agent_run_command): Always use target_stop_ptid and
1843 target_continue_ptid.
1844
721ec300
GB
18452014-09-11 Tom Tromey <tromey@redhat.com>
1846 Gary Benson <gbenson@redhat.com>
1847
1848 * target/target.h: New file.
1849 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
1850 * target.h: Include target/target.h.
1851 (target_read_memory, target_write_memory): Don't declare.
1852 * target.c (target_read_uint32): New function.
1853 * common/agent.c: Include target/target.h.
1854 [!GDBSERVER]: Don't include target.h.
1855 (helper_thread_id): Type changed to uint32_t.
1856 (agent_get_helper_thread_id): Use target_read_uint32.
1857 (agent_run_command): Always use target_read_memory and
1858 target_write_memory.
1859 (agent_capability): Type changed to uint32_t.
1860 (agent_capability_check): Use target_read_uint32.
1861
c5e92cca
GB
18622014-09-11 Gary Benson <gbenson@redhat.com>
1863
1864 * common/common-debug.h (show_debug_regs): Declare.
1865 * common/common-debug.c (show_debug_regs): Define.
1866 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
1867 all uses with show_debug_regs. Replace all uses that considered
1868 debug_hw_points as a multi-value integer with straight boolean
1869 uses.
1870 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
1871 with show_debug_regs.
1872 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
1873 all uses with show_debug_regs.
1874 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
1875 uses with show_debug_regs.
1876
eeef931a
UW
18772014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
1878
1879 * findvar.c (address_from_register): Handle targets requiring
1880 a special conversion routine even for plain pointer types.
1881
8efa9855
UW
18822014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
1883
1884 * rs6000-nat.c (exec_one_dummy_insn): Remove.
1885 (store_register): Do not call exec_one_dummy_insn.
1886
eb479039
JB
18872014-09-10 Joel Brobecker <brobecker@adacore.com>
1888
1889 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
1890 dereference it first. Use value_enclosing_type instead of
1891 value_type.
1892 (ada_array_length): Likewise.
1893
deede10c
JB
18942014-09-10 Joel Brobecker <brobecker@adacore.com>
1895
1896 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
1897 Adjust function implementation and documentation accordingly.
1898 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
1899 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
1900 Update call to ada_value_ptr_subscript.
1901
7828a5f5
JB
19022014-09-10 Joel Brobecker <brobecker@adacore.com>
1903
1904 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
1905 instead of VAL's type.
1906
35782f14
JB
19072014-09-10 Joel Brobecker <brobecker@adacore.com>
1908
1909 * amd64-linux-nat.c: Add <sys/uio.h> #include.
1910
d342a0da
DE
19112014-09-09 Doug Evans <xdje42@gmail.com>
1912
1913 PR guile/17367
1914 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
1915 last parameter to pkg-config, not first.
1916 * configure.ac: Pass --with-guile provided pkg-config path to
1917 GDB_GUILE_PROGRAM_NAMES.
1918 * configure: Regenerate.
1919
b4a3d263
GKB
19202014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
1921
1922 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
1923 Bertazi".
1924
6e466374
MR
19252014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
1926
1927 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
1928 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
1929 the list of sections determining GDB_OSABI_IRIX.
1930
a1ada89a
JH
19312014-09-09 James Hogan <james.hogan@imgtec.com>
1932
1933 * MAINTAINERS (Write After Approval): Add "James Hogan".
1934
86db008d
JH
19352014-09-09 James Hogan <james.hogan@imgtec.com>
1936
1937 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
1938
72fde3df
JB
19392014-09-09 Joel Brobecker <brobecker@adacore.com>
1940
1941 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
1942
92d8d229
DE
19432014-09-08 Doug Evans <xdje42@gmail.com>
1944
1945 PR 17247
1946 * guile.c: #include <signal.h>.
1947 (_initialize_guile): Block SIGCHLD while initializing Guile.
1948
1949 Replaces the following, which is reverted.
1950
1951 2014-07-26 Doug Evans <xdje42@gmail.com>
1952
1953 PR 17185
1954 * configure.ac: Add check for header gc/gc.h.
1955 Add check for function setenv.
1956 * configure: Regenerate.
1957 * config.in: Regenerate.
1958 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1959
d81412aa
DE
19602014-09-08 Doug Evans <xdje42@gmail.com>
1961
1962 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
1963 with named constant. Fix style of pointer comparison.
1964 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
1965
a9f116cb
GKB
19662014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
1967
1968 PR gdb/17035
1969 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
1970 decide whether we display the command on "show user".
1971 * cli/cli-script.c (show_user_1): Only verify cmdlines after
1972 printing command name.
1973 * cli/cli-decode.h (cli_user_command_p): Declare new function.
1974 * cli/cli-decode.c (cli_user_command_p): Create helper function
1975 to verify whether cmd_list_element is a user-defined command.
1976
c75bd3a2
JK
19772014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1978
1979 PR python/17355
1980 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
1981 Fix goto out of TRY_CATCH.
1982
faa42425 19832014-09-06 Doug Evans <xdje42@gmail.com>
1a52a81c 1984 Tom Tromey <tromey@redhat.com>
faa42425
DE
1985
1986 PR 15276
1987 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
1988 $_any_caller_matches.
1989 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
1990 * python/lib/gdb/function/caller_is.py: New file.
1991
0d41ba00
DE
19922014-09-06 Doug Evans <xdje42@gmail.com>
1993
1994 * infcmd.c (program_info): Fix typo.
1995
474ca4f6
SDJ
19962014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
1997
1998 PR gdb/17235
1999 * stap-probe.c (stap_parse_single_operand): Delete unused variable
2000 'number'. New variable 'has_digit'. Rewrite code to deal with
2001 subexpressions on SDT probes.
2002
ebf13736
PA
20032014-09-04 Pedro Alves <palves@redhat.com>
2004
2005 * c-exp.y (parse_number): Skip handling base-switching prefixes if
2006 the input is only one character long.
2007
eb0b0463
SDJ
20082014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
2009
2010 PR fortran/17237
2011 * f-valprint.c (f_val_print): Specify the correct print option to
2012 use when printing integer values.
2013
5ee44bfa
GB
20142014-09-04 Gary Benson <gbenson@redhat.com>
2015
2016 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
2017 Remove code to cope with LWPs wrapped as PIDs.
2018 Add assertions to ensure no wrapped LWPs are passed.
2019
4875ffdb
PA
20202014-09-04 Pedro Alves <palves@redhat.com>
2021
2022 * value.c (value_ranges_copy_adjusted): New function, factored out
2023 from ...
2024 (value_contents_copy_raw): ... here.
2025 (unpack_value_bits_as_long_1): Rename back to ...
2026 (unpack_bits_as_long): ... this. Remove 'original_value' and
2027 'result' parameters. Change return type to LONGEST.
2028 (unpack_value_bits_as_long): Delete.
2029 (unpack_value_field_as_long_1): Delete.
2030 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
2031 (unpack_value_bitfield): New function.
2032 (value_field_bitfield): Reimplement using unpack_value_bitfield.
2033 (value_fetch_lazy): Use unpack_value_bitfield.
2034 * value.h (unpack_value_bits_as_long): Delete declaration.
2035
5f3b99cf
SS
20362014-09-03 Sasha Smundak <asmundak@google.com>
2037
2038 * python/py-frame.c (frapy_read_register): New function.
2039
ac740bc7
JH
20402014-09-03 James Hogan <james.hogan@imgtec.com>
2041
2042 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
2043 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
2044
7d793aa9
SDJ
20452014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
2046
2047 PR python/16699
2048 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
2049 function.
2050 (add_cmd): Set "completer_handle_brkchars" to NULL.
2051 * cli/cli-decode.h (struct cmd_list_element)
2052 <completer_handle_brkchars>: New field.
2053 * command.h (completer_ftype_void): New typedef.
2054 (set_cmd_completer_handle_brkchars): New prototype.
2055 * completer.c (set_gdb_completion_word_break_characters): New
2056 function.
2057 (complete_line_internal): Call "completer_handle_brkchars"
2058 callback from command.
2059 * completer.h: Include "command.h".
2060 (set_gdb_completion_word_break_characters): New prototype.
2061 * python/py-cmd.c (cmdpy_completer_helper): New function.
2062 (cmdpy_completer_handle_brkchars): New function.
2063 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
2064 (cmdpy_init): Set completer_handle_brkchars to
2065 cmdpy_completer_handle_brkchars.
2066
97ea6506
GB
20672014-09-03 Gary Benson <gbenson@redhat.com>
2068
2069 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
2070 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
2071 Loop conditions changed to equivalent form.
2072 (struct x86_debug_reg_state): Updated dr_ref_count comment.
2073 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
2074 ALL_DEBUG_ADDRESS_REGISTERS.
2075
d1437815
JB
20762014-09-03 Joel Brobecker <brobecker@adacore.com>
2077
2078 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
2079 description fix.
2080
9b94fcf1
DE
20812014-09-02 Doug Evans <dje@google.com>
2082
2083 * typeprint.c (find_global_typedef): Fix comment.
2084
df7e5265
GB
20852014-09-02 Gary Benson <gbenson@redhat.com>
2086
2087 * i386-nat.h: Renamed as...
2088 * x86-nat.h: New file. All type, function and variable name
2089 prefixes changed from "i386_" to "x86_". All references updated.
2090 * i386-nat.c: Renamed as...
2091 * x86-nat.c: New file. All type, function and variable name
2092 prefixes changed from "i386_" to "x86_". All references updated.
2093 * common/i386-xstate.h: Renamed as...
2094 * common/x86-xstate.h: New file. All type, function and variable
2095 name prefixes changed from "i386_" to "x86_". All references
2096 updated.
2097 * nat/i386-cpuid.h: Renamed as...
2098 * nat/x86-cpuid.h: New file. All type, function and variable name
2099 prefixes changed from "i386_" to "x86_". All references updated.
2100 * nat/i386-gcc-cpuid.h: Renamed as...
2101 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
2102 name prefixes changed from "i386_" to "x86_". All references
2103 updated.
2104 * nat/i386-dregs.h: Renamed as...
2105 * nat/x86-dregs.h: New file. All type, function and variable name
2106 prefixes changed from "i386_" to "x86_". All references updated.
2107 * nat/i386-dregs.c: Renamed as...
2108 * nat/x86-dregs.c: New file. All type, function and variable name
2109 prefixes changed from "i386_" to "x86_". All references updated.
2110
1c3569d4
MR
21112014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
2112
2113 * varobj.c (_initialize_varobj): Move to the end of file.
2114
ff55e1b5
GB
21152014-08-29 Gary Benson <gbenson@redhat.com>
2116
2117 * common/common-exceptions.h: New file.
2118 * common/common-exceptions.c: Likewise.
2119 * Makefile.in (SFILES): Add common/common-exceptions.c.
2120 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
2121 (COMMON_OBS): Add common-exceptions.o.
2122 (common-exceptions.o): New rule.
2123 * exceptions.h (common-exceptions.h): Include.
2124 (gdb_setjmp.h): Do not include.
2125 (return_reason): Moved to common-exceptions.h.
2126 (enum return_reason): Likewise.
2127 (RETURN_MASK): Likewise.
2128 (typedef return_mask): Likewise.
2129 (enum errors): Likewise.
2130 (struct gdb_exception): Likewise.
2131 (exceptions_state_mc_init): Likewise.
2132 (exceptions_state_mc_action_iter): Likewise.
2133 (exceptions_state_mc_action_iter_1): Likewise.
2134 (TRY_CATCH): Likewise.
2135 (throw_exception): Likewise.
2136 (throw_verror): Likewise.
2137 (throw_vquit): Likewise.
2138 (throw_error): Likewise.
2139 (throw_quit): Likewise.
2140 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
2141 (enum catcher_action): Likewise.
2142 (struct catcher): Likewise.
2143 (current_catcher): Likewise.
2144 (catcher_list_size): Likewise.
2145 (exceptions_state_mc_init): Likewise.
2146 (catcher_pop): Likewise.
2147 (exceptions_state_mc): Likewise.
2148 (exceptions_state_mc_action_iter): Likewise.
2149 (exceptions_state_mc_action_iter_1): Likewise.
2150 (throw_exception): Likewise.
2151 (exception_messages): Likewise.
2152 (exception_messages_size): Likewise.
2153 (throw_it): Likewise.
2154 (throw_verror): Likewise.
2155 (throw_vquit): Likewise.
2156 (throw_error): Likewise.
2157 (throw_quit): Likewise.
2158 (prepare_to_throw_exception): New function.
2159
e9bcb658
GB
21602014-08-29 Gary Benson <gbenson@redhat.com>
2161
2162 * common/gdb_setjmp.h: New file.
2163 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
2164 * configure.ac: Move sigsetjmp check...
2165 * common/common.m4: ...here.
2166 * configure: Regenerate.
2167 * cp-support.c (SIGJMP_BUF): Delete.
2168 (SIGSETJMP): Likewise.
2169 (SIGLONGJMP): Likewise.
2170 * exceptions.h (gdb_setjmp.h): Include.
2171 (setjmp.h): Do not include.
2172 (EXCEPTIONS_SIGJMP_BUF): Delete.
2173 (EXCEPTIONS_SIGSETJMP): Likewise.
2174 (EXCEPTIONS_SIGLONGJMP): Likewise.
2175 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
2176 from gdb_setjmp.h.
2177 * exceptions.c: Likewise.
2178
e3180625
GB
21792014-08-29 Gary Benson <gbenson@redhat.com>
2180
2181 * cleanups.h: Moved to...
2182 * common/cleanups.h: New file.
2183 * cleanups.c: Moved to...
2184 * common/cleanups.c: New file. Include common-defs.h and
2185 cleanups.h. Do not include defs.h.
2186 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
2187 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
2188 (cleanups.o): New rule.
2189
e3d6ba5d
GB
21902014-08-29 Gary Benson <gbenson@redhat.com>
2191
2192 * common/errors.h (internal_warning): New declaration.
2193 (internal_vwarning): Likewise.
2194 * common/errors.c (internal_warning): New function.
2195 * utils.h (internal_warning): Don't declare.
2196 (internal_vwarning): Likewise.
2197 * utils.c (internal_warning): Removed.
2198
075c7033
GB
21992014-08-29 Gary Benson <gbenson@redhat.com>
2200
2201 * main.c (captured_main): Use warning during startup.
2202 Prefix startup warning messages with command name.
2203
91b35fd0
GB
22042014-08-29 Gary Benson <gbenson@redhat.com>
2205
2206 * main.c (captured_main): Handle usage errors with error.
2207
b1ec390e
GB
22082014-08-29 Gary Benson <gbenson@redhat.com>
2209
2210 * go32-nat.c (go32_create_inferior): Replace a fprintf/
2211 exit pair with a call to error. Wrap the message with _().
2212
fd0ef3dd
GB
22132014-08-29 Gary Benson <gbenson@redhat.com>
2214
2215 * main.c (captured_main): Replace a fprintf/exit
2216 pair with a call to error. Wrap the message with _().
2217
e0e6bcab
GB
22182014-08-29 Gary Benson <gbenson@redhat.com>
2219
2220 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
2221 pairs with calls to error. Wrap the message with _().
2222
0d2f5c07
GB
22232014-08-29 Gary Benson <gbenson@redhat.com>
2224
2225 * utils.c (vwarning): Protect calls to target_terminal_ours
2226 and wrap_here.
2227
5df43998
GB
22282014-08-29 Gary Benson <gbenson@redhat.com>
2229
2230 * exceptions.c (print_flush): Protect calls to
2231 target_terminal_ours and wrap_here.
2232
2437fd32
GB
22332014-08-29 Gary Benson <gbenson@redhat.com>
2234
2235 * utils.h (filtered_printing_initialized): New declaration.
2236 * utils.c (abort_with_message): New function.
2237 (internal_vproblem): Use abort_with_message for first level
2238 recursive internal problems, and if gdb_stderr is not set up.
2239 Protect calls to target_terminal_ours, begin_line and query.
2240
f1f58506
DE
22412014-08-28 Doug Evans <dje@google.com>
2242
2243 * symtab.c (in_prologue): Move definition to better spot.
2244 (skip_prologue_using_sal): Ditto.
2245
aab2f208
DE
22462014-08-28 Doug Evans <dje@google.com>
2247
2248 * symtab.c (find_function_start_sal): Move definition to better spot.
2249
6b65d1b6
YQ
22502014-08-28 Yao Qi <yao@codesourcery.com>
2251
2252 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
2253 found_stack_adjust in forward scan. Remove condition check
2254 on found_stack_adjust which is always true. Indent the code.
2255
a1b34d15
YQ
22562014-08-28 Yao Qi <yao@codesourcery.com>
2257
2258 * dwarf2read.c (dwarf_decode_lines): Update declaration.
2259 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
2260 (dwarf_decode_lines): Remove argument
2261 want_line_info. Remove condition check on want_line_info.
2262 Callers update.
2263
d5962de5
DE
22642014-08-27 Doug Evans <dje@google.com>
2265
2266 * dwarf2read.c (dwarf_record_line): Fix typo.
2267
9b139002
SDJ
22682014-08-27 Patrick Palka <patrick@parcs.ath.cx>
2269
2270 * target.h (struct target_ops::to_terminal_save_ours): Remove
2271 declaration.
2272 (target_terminal_save_ours): Remove macro.
2273 * target-delegates.c: Regenerate.
2274 * inf-child.c (inf_child_target): Don't set the nonexistent
2275 field to_terminal_save_ours.
2276 * inferior.h (child_terminal_save_ours): Remove declaration.
2277 * terminal.h (gdb_save_tty_state): New declaration.
2278 * inflow.c (child_terminal_save_ours): Rename to ...
2279 (gdb_save_tty_state): ... this.
2280 * tui/tui.c: Include terminal.h.
2281 (tui_enable): Use gdb_save_tty_state instead of
2282 target_terminal_save_ours.
2283 (tui_disable): Likewise.
2284
9debeba0
DE
22852014-08-25 Doug Evans <dje@google.com>
2286
2287 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
2288 Pass NULL instead of 0 for context pointer.
2289
428fc5fc
YQ
22902014-08-25 Yao Qi <yao@codesourcery.com>
2291
2292 * dwarf2read.c: Fix grammatical error.
2293
cdc07690
YQ
22942014-08-24 Yao Qi <yao@codesourcery.com>
2295
2296 * dwarf2read.c (scan_partial_symbols): Update comments.
2297 Rename argument 'need_pc' with 'set_addrmap'.
2298 (add_partial_namespace): Rename argument 'need_pc' with
2299 'set_addrmap'.
2300 (add_partial_module): Likewise.
2301 (add_partial_subprogram): Likewise. Update comments.
2302 (dwarf2_name): Fix typo.
2303
a05a36a5
DE
23042014-08-22 Doug Evans <dje@google.com>
2305
2306 PR 17276
2307 * dwarf2read.c (dwarf_record_line_p): New function.
2308 (dwarf_decode_lines_1): Ignore subsequent line number entries
2309 for the same line if any entry had a non-zero discriminator.
2310
252a6764
DE
23112014-08-22 Doug Evans <dje@google.com>
2312
2313 * buildsym.h (record_line_ftype): New typedef.
2314 (record_line): Use it.
2315 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
2316 (dwarf_decode_lines_1): Call them.
2317
510db052
YQ
23182014-08-22 Yao Qi <yao@codesourcery.com>
2319
2320 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
2321 (ctf_end): Remove code.
2322
22fd09ae
JK
23232014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2324
2325 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
2326 (linux_make_corefile_notes): call update_thread_list, protected against
2327 exceptions.
2328
656e8868
PA
23292014-08-21 Pedro Alves <palves@redhat.com>
2330
2331 * infcmd.c (attach_command): Remove comment.
2332
de589d04
WN
23332014-08-21 Bin Cheng <bin.cheng@arm.com>
2334
2335 * aarch64-linux-nat.c (dr_changed_t): Change the type from
2336 unsigned LONGEST to ULONGEST.
2337
2a31c623
PA
23382014-08-20 Pedro Alves <palves@redhat.com>
2339
2340 * Makefile.in (check-read1): New rule.
2341
d36430db
JB
23422014-08-20 Joel Brobecker <brobecker@adacore.com>
2343
2344 * value.c (value_from_contents_and_address): Strip resolved_type's
2345 typedef layers before checking its TYPE_DATA_LOCATION.
2346
000339af
PA
23472014-08-20 Pedro Alves <palves@redhat.com>
2348
2349 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
2350
5f52445b
YQ
23512014-08-20 Yao Qi <yao@codesourcery.com>
2352
2353 * amd64-tdep.c (amd64_classify): Add a blank line after the
2354 example. Move "*/" to a new line.
2355 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
2356 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
2357 * dwarf2read.c (psymtab_include_file_name): Likewise.
2358
9a0dc9e3
PA
23592014-08-19 Andrew Burgess <aburgess@broadcom.com>
2360 Pedro Alves <palves@redhat.com>
2361
2362 PR symtab/14604
2363 PR symtab/14605
2364 * ada-lang.c (coerce_unspec_val_to_type): Use
2365 value_contents_copy_raw.
2366 * ada-valprint.c (val_print_packed_array_elements): Adjust.
2367 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
2368 * cp-valprint.c (cp_print_value_fields): Let the common printing
2369 code handle optimized out values.
2370 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
2371 * d-valprint.c (dynamic_array_type): Use
2372 value_bits_any_optimized_out.
2373 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
2374 check_any_valid fields.
2375 (check_pieced_value_bits): Delete and inline ...
2376 (check_pieced_synthetic_pointer): ... here.
2377 (check_pieced_value_validity): Delete.
2378 (check_pieced_value_invalid): Delete.
2379 (pieced_value_funcs): Remove check_validity and check_any_valid
2380 fields.
2381 (read_pieced_value): Use mark_value_bits_optimized_out.
2382 (write_pieced_value): Switch to use
2383 mark_value_bytes_optimized_out.
2384 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
2385 of assuming the whole value is optimized out.
2386 * findvar.c (read_frame_register_value): Remove special handling
2387 of optimized out registers.
2388 (value_from_register): Use mark_value_bytes_optimized_out.
2389 * frame-unwind.c (frame_unwind_got_optimized): Use
2390 mark_value_bytes_optimized_out.
2391 * jv-valprint.c (java_value_print): Adjust.
2392 (java_print_value_fields): Let the common printing code handle
2393 optimized out values.
2394 * mips-tdep.c (mips_print_register): Remove special handling of
2395 optimized out registers.
2396 * opencl-lang.c (lval_func_check_validity): Delete.
2397 (lval_func_check_any_valid): Delete.
2398 (opencl_value_funcs): Remove check_validity and check_any_valid
2399 fields.
2400 * p-valprint.c (pascal_object_print_value_fields): Let the common
2401 printing code handle optimized out values.
2402 * stack.c (read_frame_arg): Remove special handling of optimized
2403 out values. Fetch both VAL and ENTRYVAL before comparing
2404 contents. Adjust to value_available_contents_eq rename.
2405 * valprint.c (valprint_check_validity)
2406 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
2407 (val_print_array_elements): Adjust.
2408 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
2409 (value_bits_any_optimized_out): New function.
2410 (value_entirely_covered_by_range_vector): New function, factored
2411 out from value_entirely_unavailable.
2412 (value_entirely_unavailable): Reimplement.
2413 (value_entirely_optimized_out): New function.
2414 (insert_into_bit_range_vector): New function, factored out from
2415 mark_value_bits_unavailable.
2416 (mark_value_bits_unavailable): Reimplement.
2417 (struct ranges_and_idx): New struct.
2418 (find_first_range_overlap_and_match): New function, factored out
2419 from value_available_contents_bits_eq.
2420 (value_available_contents_bits_eq): Rename to ...
2421 (value_contents_bits_eq): ... this. Check both unavailable
2422 contents and optimized out contents.
2423 (value_available_contents_eq): Rename to ...
2424 (value_contents_eq): ... this.
2425 (allocate_value_lazy): Remove reference to the old optimized_out
2426 boolean.
2427 (allocate_optimized_out_value): Use
2428 mark_value_bytes_optimized_out.
2429 (require_not_optimized_out): Adjust to check whether the
2430 optimized_out vec is empty.
2431 (ranges_copy_adjusted): New function, factored out from
2432 value_contents_copy_raw.
2433 (value_contents_copy_raw): Also copy the optimized out ranges.
2434 Assert the destination ranges aren't optimized out.
2435 (value_contents_copy): Update comment, remove call to
2436 require_not_optimized_out.
2437 (value_contents_equal): Adjust to check whether the optimized_out
2438 vec is empty.
2439 (set_value_optimized_out, value_optimized_out_const): Delete.
2440 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
2441 New functions.
2442 (value_entirely_optimized_out, value_bits_valid): Delete.
2443 (value_copy): Take a VEC copy of the 'optimized_out' field.
2444 (value_primitive_field): Remove special handling of optimized out.
2445 (value_fetch_lazy): Assert that lazy values have no unavailable
2446 regions. Use value_bits_any_optimized_out. Remove some special
2447 handling for optimized out values.
2448 * value.h: Add intro comment about <optimized out> and
2449 <unavailable>.
2450 (struct lval_funcs): Remove check_validity and check_any_valid
2451 fields.
2452 (set_value_optimized_out, value_optimized_out_const): Remove.
2453 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
2454 New declarations.
2455 (value_bits_any_optimized_out): New declaration.
2456 (value_bits_valid): Delete declaration.
2457 (value_available_contents_eq): Rename to ...
2458 (value_contents_eq): ... this, and extend comments.
2459
6694c411
JK
24602014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2461
2462 Fix -fsanitize=address on unreadable inferior strings.
2463 * valprint.c (val_print_string): Fix access before BUFFER.
2464
89a1c21a
SM
24652014-08-19 Simon Marchi <simon.marchi@ericsson.com>
2466
2467 * target.c (target_struct_size): Remove.
2468 (target_struct_allocsize): Remove.
2469 (DEFAULT_ALLOCSIZE): Remove.
2470 (target_ops_p): New typedef.
2471 (DEF_VEC_P (target_ops_p)): New vector type.
2472 (target_structs): Change type to VEC (target_ops_p).
2473 (add_target_with_completer): Replace "push" code by VEC_safe_push.
2474 (find_default_run_target): Rewrite for loop following changes to
2475 target_structs.
2476
cb417230
JB
24772014-08-19 Joel Brobecker <brobecker@adacore.com>
2478
2479 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
2480 Adjust code accordingly. Adjust function description comment.
2481
817e0957
YQ
24822014-08-19 Yao Qi <yao@codesourcery.com>
2483
2484 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
2485 types.
2486
2974be62
AM
24872014-08-19 Alan Modra <amodra@gmail.com>
2488
2489 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
2490 * config.in: Regenerate.
2491 * configure: Regenerate.
2492
34abf635
GB
24932014-08-19 Tom Tromey <tromey@redhat.com>
2494 Gary Benson <gbenson@redhat.com>
2495
2496 * common/common-debug.h: New file.
2497 * common/common-debug.c: Likewise.
2498 * debug.c: Likewise.
2499 * Makefile.in (SFILES): Add common/common-debug.c.
2500 (HFILES_NO_SRCDIR): Add common/common-debug.h.
2501 (COMMON_OBS): Add common-debug.o and debug.o.
2502 (common-debug.o): New rule.
2503 * common/common-defs.h: Include common-debug.h.
2504 * common/agent.c (debug_agent_printf): New function.
2505 (DEBUG_AGENT): Redefine.
2506 * nat/i386-dregs.c (debug_printf): Undefine.
2507
f6e94d78
GB
25082014-08-19 Gary Benson <gbenson@redhat.com>
2509
2510 * common/common-defs.h: Include print-utils.h.
2511 * utils.h: Do not include print-utils.h.
2512
9239eeab
GB
25132014-08-19 Tom Tromey <tromey@redhat.com>
2514 Gary Benson <gbenson@redhat.com>
2515
2516 * common/common-types.h: New file.
2517 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
2518 * common/common-defs.h: Include common-types.h.
2519 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
2520 (ULONGEST): Remove.
2521
ef87c8bb
GB
25222014-08-19 Tom Tromey <tromey@redhat.com>
2523 Gary Benson <gbenson@redhat.com>
2524
2525 * common/errors.h: New file.
2526 * common/errors.c: Likewise.
2527 * Makefile.in (SFILES): Add common/errors.c.
2528 (HFILES_NO_SRCDIR): Add common/errors.h.
2529 (COMMON_OBS): Add errors.o.
2530 (errors.o): New rule.
2531 * common/common-defs.h: Include errors.h.
2532 * utils.h (perror_with_name, error, verror, warning, vwarning):
2533 Don't declare.
2534 * common/common-utils.h: (malloc_failure, internal_error):
2535 Likewise.
2536
196a707b
GB
25372014-08-19 Gary Benson <gbenson@redhat.com>
2538
2539 * utils.c (internal_vproblem): Always print the message.
2540
ded4fc8f
DE
25412014-08-18 Doug Evans <dje@google.com>
2542
2543 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
2544
950c97d8
JB
25452014-08-18 Joel Brobecker <brobecker@adacore.com>
2546
2547 * ada-typeprint.c (type_is_full_subrange_of_target_type):
2548 Return 0 if TYPE is dynamic.
2549 (print_range): Add handling of dynamic ranges.
2550
3cdcd0ce
JB
25512014-08-18 Keven Boell <keven.boell@intel.com>
2552 Joel Brobecker <brobecker@adacore.com>
2553
2554 * gdbtypes.h (struct main_type): Add field "data_location".
2555 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
2556 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
2557 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
2558 a dynamic data location.
2559 (resolve_dynamic_type): Add DW_AT_data_location handling.
2560 (copy_recursive, copy_type): Copy the data_location information
2561 when present.
2562 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
2563 * value.c (value_from_contents_and_address): Add
2564 DW_AT_data_location handling.
2565
08412b07
JB
25662014-08-18 Keven Boell <keven.boell@intel.com>
2567 Joel Brobecker <brobecker@adacore.com>
2568
2569 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
2570 field "get_object_address".
2571 * dwarf2expr.c (execute_stack_op): Add handling for
2572 DW_OP_push_object_address.
2573 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
2574 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
2575 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
2576 (dwarf_expr_get_obj_addr): New function.
2577 (dwarf_expr_ctx_funcs): Add get_object_address field.
2578 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
2579 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
2580 (dwarf2_evaluate_property): Add parameter "address". Use it.
2581 (needs_get_obj_addr): New function.
2582 (needs_frame_ctx_funcs): Add get_object_address field.
2583 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
2584 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
2585 (resolve_dynamic_array): Likewise.
2586
84754697
JB
25872014-08-18 Joel Brobecker <brobecker@adacore.com>
2588
2589 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
2590 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
2591 fixed value for records and unions for which some GNAT encodings
2592 are present.
2593
da5c522f
JB
25942014-08-18 Joel Brobecker <brobecker@adacore.com>
2595
2596 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
2597 rewrite to avoid "else if" and "else" constructs. Should be
2598 a no-op in practice.
2599
0d72a7c3
JB
26002014-08-18 Joel Brobecker <brobecker@adacore.com>
2601
2602 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
2603 of lexical block.
2604
e66d4446
SC
26052014-08-15 Siva Chandra Reddy <sivachandra@google.com>
2606
2607 PR c++/17132
2608 * eval.c: Update all calls to find_overload_match.
2609 * valarith.c: Likewise.
2610 (value_user_defined_cpp_op, value_user_defined_op): New
2611 argument NOSIDE. Update all callers.
2612 * valops.c (find_overload_match): New argument NOSIDE.
2613 * value.h (find_overload_match): Update signature.
2614
940df408
SC
26152014-08-15 Siva Chandra Reddy <sivachandra@google.com>
2616
2617 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
2618 'items' methods instead of 'iteritems' method on dictionaries.
2619
699ca60a
DE
26202014-08-15 Doug Evans <dje@google.com>
2621
2622 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
2623 closer to use.
2624
37780ee5
DE
26252014-08-15 Doug Evans <dje@google.com>
2626
2627 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
2628
0ad93d4f
DE
26292014-08-15 Doug Evans <dje@google.com>
2630
2631 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
2632
20d8c372
DE
26332014-08-15 Doug Evans <dje@google.com>
2634
2635 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
2636 unused.
2637
cb039ba4
EZ
26382014-08-15 Eli Zaretskii <eliz@gnu.org>
2639
2640 * dcache.h: Include target.h, to avoid compile time warnings.
2641
eb7a547a
JB
26422014-08-15 Joel Brobecker <brobecker@adacore.com>
2643
2644 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
2645 frame_info" partial declaration.
2646 * gdbarch.h: Regenerate.
2647
783cecc8
YQ
26482014-08-15 Yao Qi <yao@codesourcery.com>
2649
2650 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
2651 Add parameter 'decode_for_pst_p'. Callers update.
2652
65c749e7
YQ
26532014-08-13 Yao Qi <yao@codesourcery.com>
2654
2655 PR build/17104
2656 * configure.ac: Use local variable 'pos'.
2657 * configure: Regenerated.
2658
d769e349
DE
26592014-08-11 Doug Evans <dje@google.com>
2660
2661 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
2662 message, it is redundant with "Reading symbols from ..." message.
2663
24f1235e
DE
26642014-08-10 Doug Evans <xdje42@gmail.com>
2665
2666 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
2667
dcd2e6ef
YQ
26682014-08-09 Yao Qi <yao@codesourcery.com>
2669
2670 PR remote/9053
2671 * remote.c (remote_xfer_partial): Remove dead code.
2672
070bdf0b
AA
26732014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2674
2675 * ia64-linux-tdep.c: Include "regset.h".
2676 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
2677 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
2678 (ia64_linux_supply_fpregset): New function.
2679 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
2680 (ia64_linux_regset_from_core_section): New function.
2681 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
2682 method.
2683
08f9f542
AA
26842014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2685
2686 * m68klinux-tdep.c: Include "regset.h".
2687 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
2688 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
2689 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
2690 (m68k_linux_regset_from_core_section): New function.
2691 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
2692 method.
2693
8f1cee41
AA
26942014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2695
2696 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
2697 function. Move logic to...
2698 (tilegx_linux_regmap): ... this new register map.
2699 (tilegx_linux_regset): Refer to register map, replace supply
2700 method by regcache_supply_regset, and add collect method.
2701 * tilegx-tdep.h (enum tilegx_regnum): New enum value
2702 TILEGX_FIRST_EASY_REGNUM.
2703
c5741217
AA
27042014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2705
2706 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
2707 that calls regcache_supply_regset and handles the EPC register
2708 separately. Move main logic to...
2709 (score7_linux_gregmap): ... this new register map.
2710 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
2711 (score7_linux_gregset): Refer to register map. Add collect method.
2712 (score7_linux_regset_from_core_section): Replace
2713 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
2714 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
2715 (struct regset): Delete unused forward declaraction.
2716 (struct pt_regs): Delete structure definition.
2717 (elf_gregset_t): Delete typedef.
2718
81580573
AA
27192014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2720
2721 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
2722 (nios2_core_regset): Add collect method.
2723
ba199d7d
AA
27242014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2725
2726 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
2727 platform-independent and don't write to read-only input buffer.
2728 (m32r_linux_collect_gregset): New function.
2729 (m32r_linux_gregset): Add collect method.
2730
0006a9da
AA
27312014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2732
2733 * hppa-linux-tdep.c (greg_map): Rename to...
2734 (hppa_linux_gregmap): ... this. Also convert to
2735 regcache_map_entry format.
2736 (hppa_linux_supply_regset): Delete function.
2737 (hppa_linux_supply_fpregset): Delete function. Move logic to...
2738 (hppa_linux_fpregmap): ... this new register map.
2739 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
2740 register map, replace supply method by regcache_supply_regset, and
2741 add collect method regcache_collect_regset.
2742
901e1b23
AA
27432014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2744
2745 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
2746 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
2747 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
2748 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
2749 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
2750 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
2751 (frv_linux_supply_gregset): Replace main logic by call to
2752 regcache_supply_regset, but keep clearing gr32-gr63.
2753 (frv_linux_supply_fpregset): Delete function.
2754 (frv_linux_gregset): Refer to appropriate register map and add
2755 regcache_collect_regset as the collect method.
2756 (frv_linux_fpregset): Likewise. Also exchange the supply method
2757 by regcache_supply_regset.
2758
1d6e7555
AA
27592014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2760
2761 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
2762 by call to alpha_supply_int_regs.
2763 (alpha_linux_collect_gregset): New function.
2764 (alpha_linux_supply_fpregset): Replace logic by call to
2765 alpha_supply_fp_regs.
2766 (alpha_linux_collect_fpregset): New function.
2767 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
2768
d4d793bf
AA
27692014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2770
2771 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
2772 by call to regcache_collect_regset.
2773 (supply_gregset, supply_fpregset): Call regcache_supply_regset
2774 instead of aarch64_linux_supply_gregset/_fpregset.
2775 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
2776 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
2777 header file instead.
2778 (aarch64_linux_supply_gregset, supply_gregset_from_core)
2779 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
2780 functions. Move logic to ...
2781 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
2782 register maps.
2783 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
2784 refer to new register maps, replace *_regset_from_core by
2785 regcache_supply_regset, and also use regcache_collect_regset.
2786 * aarch64-linux-tdep.h: Include "regset.h".
2787 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
2788 Delete prototypes.
2789 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
2790 macros, moved from C source file.
2791 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
2792 variable declarations.
2793
99b7da5d
AA
27942014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2795
2796 * s390-linux-nat.c: Include "regset.h".
2797 (regmap_gregset): Delete macro.
2798 (s390_64_regmap_gregset): New register map for
2799 regcache_supply/_collect_regset.
2800 (s390_64_gregset): New regset.
2801 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
2802 (regmap_fpregset): Delete macro.
2803 (s390_native_supply, s390_native_collect): Delete functions.
2804 (supply_gregset, fill_gregset): Replace s390-specific regmap
2805 handling by a call to regcache_supply/_collect_regset.
2806 (supply_fpregset, fill_fpregset): Call regcache_supply/
2807 _collect_regset instead of s390_native_supply/_collect.
2808 (fetch_regset, store_regset): Likewise. Also change the last
2809 parameter to a regset instead of a regmap.
2810 (s390_linux_fetch_inferior_registers)
2811 (390_linux_store_inferior_registers): Adjust last parameter in
2812 calls to fetch_regset and store_regset.
2813 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
2814 (s390_gregmap): ... this. Also make static const and convert to
2815 regcache_map_entry format.
2816 (s390x_regmap_gregset): Delete.
2817 (s390_regmap_fpregset): Rename to...
2818 (s390_fpregmap): ... this. Make static const and convert to
2819 regcache_map_entry format.
2820 (s390_regmap_upper, s390_regmap_last_break)
2821 (s390x_regmap_last_break, s390_regmap_system_call)
2822 (s390_regmap_tdb): Likewise.
2823 (s390_supply_regset, s390_collect_regset): Remove functions.
2824 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
2825 s390_supply_regset.
2826 (s390_gregset, s390_fpregset, s390_upper_regset)
2827 (s390_last_break_regset, s390x_last_break_regset)
2828 (s390_system_call_regset, s390_tdb_regset): Make global and
2829 replace s390_supply/_collect_regset by regcache_supply/
2830 _collect_regset.
2831 (s390x_gregset): Delete.
2832 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
2833 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
2834 (s390_regmap_fpregset, s390_regmap_last_break)
2835 (s390x_regmap_last_break, s390_regmap_system_call)
2836 (s390_regmap_tdb): Delete global variable declarations.
2837 (s390_gregset, s390_fpregset, s390_last_break_regset)
2838 (s390x_last_break_regset, s390_system_call_regset)
2839 (s390_tdb_regset): New global variable declarations.
2840
0b309272
AA
28412014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2842
2843 * regcache.c: Include "regset.h".
2844 (regcache_transfer_regset): New local function.
2845 (regcache_supply_regset, regcache_collect_regset): New functions.
2846 * regcache.h (struct regcache_map_entry): New structure.
2847 (REGCACHE_MAP_SKIP): New enum value.
2848 (regcache_supply_regset, regcache_collect_regset): New prototypes.
2849
7fefa8d7
AA
28502014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2851
2852 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
2853 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
2854 (ppc_linux_collect_gregset ): Likewise.
2855 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
2856 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
2857 (ppc_collect_vrregset): Likewise.
2858 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
2859 Likewise.
2860
96c4f946
YQ
28612014-08-07 Yao Qi <yao@codesourcery.com>
2862
2863 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
2864 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
2865 * remote.c (remote_read_bytes): Likewise.
2866
fffbe6a8
YQ
28672014-08-07 Yao Qi <yao@codesourcery.com>
2868
2869 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
2870
5ee8a82c
YQ
28712014-08-07 Yao Qi <yao@codesourcery.com>
2872
2873 PR remote/17230
2874 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
2875 TARGET_XFER_OK instead of 0.
2876
bb974a24
GB
28772014-08-07 Gary Benson <gbenson@redhat.com>
2878
2879 * common/common-defs.h: Include errno.h.
2880 * defs.h: Do not include errno.h.
2881 * ada-typeprint.c: Likewise.
2882 * c-typeprint.c: Likewise.
2883 * core-regset.c: Likewise.
2884 * corefile.c: Likewise.
2885 * corelow.c: Likewise.
2886 * event-loop.c: Likewise.
2887 * f-typeprint.c: Likewise.
2888 * gnu-nat.c: Likewise.
2889 * go32-nat.c: Likewise.
2890 * i386gnu-nat.c: Likewise.
2891 * m2-typeprint.c: Likewise.
2892 * nat/linux-btrace.c: Likewise.
2893 * p-typeprint.c: Likewise.
2894 * procfs.c: Likewise.
2895 * remote-sim.c: Likewise.
2896 * rs6000-nat.c: Likewise.
2897 * target.c: Likewise.
2898 * typeprint.c: Likewise.
2899 * ui-file.c: Likewise.
2900 * valops.c: Likewise.
2901 * valprint.c: Likewise.
2902
6d3d12eb
GB
29032014-08-07 Gary Benson <gbenson@redhat.com>
2904
2905 * common/common-defs.h: Include string.h.
2906 * aarch64-tdep.c: Do not include string.h.
2907 * ada-exp.y: Likewise.
2908 * ada-lang.c: Likewise.
2909 * ada-lex.l: Likewise.
2910 * ada-typeprint.c: Likewise.
2911 * ada-valprint.c: Likewise.
2912 * aix-thread.c: Likewise.
2913 * alpha-linux-tdep.c: Likewise.
2914 * alpha-mdebug-tdep.c: Likewise.
2915 * alpha-nat.c: Likewise.
2916 * alpha-osf1-tdep.c: Likewise.
2917 * alpha-tdep.c: Likewise.
2918 * alphanbsd-tdep.c: Likewise.
2919 * amd64-dicos-tdep.c: Likewise.
2920 * amd64-linux-tdep.c: Likewise.
2921 * amd64-nat.c: Likewise.
2922 * amd64-sol2-tdep.c: Likewise.
2923 * amd64fbsd-tdep.c: Likewise.
2924 * amd64obsd-tdep.c: Likewise.
2925 * arch-utils.c: Likewise.
2926 * arm-linux-nat.c: Likewise.
2927 * arm-linux-tdep.c: Likewise.
2928 * arm-tdep.c: Likewise.
2929 * arm-wince-tdep.c: Likewise.
2930 * armbsd-tdep.c: Likewise.
2931 * armnbsd-nat.c: Likewise.
2932 * armnbsd-tdep.c: Likewise.
2933 * armobsd-tdep.c: Likewise.
2934 * avr-tdep.c: Likewise.
2935 * ax-gdb.c: Likewise.
2936 * ax-general.c: Likewise.
2937 * bcache.c: Likewise.
2938 * bfin-tdep.c: Likewise.
2939 * breakpoint.c: Likewise.
2940 * build-id.c: Likewise.
2941 * buildsym.c: Likewise.
2942 * c-exp.y: Likewise.
2943 * c-lang.c: Likewise.
2944 * c-typeprint.c: Likewise.
2945 * c-valprint.c: Likewise.
2946 * charset.c: Likewise.
2947 * cli-out.c: Likewise.
2948 * cli/cli-cmds.c: Likewise.
2949 * cli/cli-decode.c: Likewise.
2950 * cli/cli-dump.c: Likewise.
2951 * cli/cli-interp.c: Likewise.
2952 * cli/cli-logging.c: Likewise.
2953 * cli/cli-script.c: Likewise.
2954 * cli/cli-setshow.c: Likewise.
2955 * cli/cli-utils.c: Likewise.
2956 * coffread.c: Likewise.
2957 * common/agent.c: Likewise.
2958 * common/buffer.c: Likewise.
2959 * common/buffer.h: Likewise.
2960 * common/common-utils.c: Likewise.
2961 * common/filestuff.c: Likewise.
2962 * common/filestuff.c: Likewise.
2963 * common/format.c: Likewise.
2964 * common/print-utils.c: Likewise.
2965 * common/rsp-low.c: Likewise.
2966 * common/signals.c: Likewise.
2967 * common/vec.h: Likewise.
2968 * common/xml-utils.c: Likewise.
2969 * core-regset.c: Likewise.
2970 * corefile.c: Likewise.
2971 * corelow.c: Likewise.
2972 * cp-abi.c: Likewise.
2973 * cp-name-parser.y: Likewise.
2974 * cp-support.c: Likewise.
2975 * cp-valprint.c: Likewise.
2976 * cris-tdep.c: Likewise.
2977 * d-exp.y: Likewise.
2978 * darwin-nat.c: Likewise.
2979 * dbxread.c: Likewise.
2980 * dcache.c: Likewise.
2981 * demangle.c: Likewise.
2982 * dicos-tdep.c: Likewise.
2983 * disasm.c: Likewise.
2984 * doublest.c: Likewise.
2985 * dsrec.c: Likewise.
2986 * dummy-frame.c: Likewise.
2987 * dwarf2-frame.c: Likewise.
2988 * dwarf2loc.c: Likewise.
2989 * dwarf2read.c: Likewise.
2990 * elfread.c: Likewise.
2991 * environ.c: Likewise.
2992 * eval.c: Likewise.
2993 * event-loop.c: Likewise.
2994 * exceptions.c: Likewise.
2995 * exec.c: Likewise.
2996 * expprint.c: Likewise.
2997 * f-exp.y: Likewise.
2998 * f-lang.c: Likewise.
2999 * f-typeprint.c: Likewise.
3000 * f-valprint.c: Likewise.
3001 * fbsd-nat.c: Likewise.
3002 * findcmd.c: Likewise.
3003 * findvar.c: Likewise.
3004 * fork-child.c: Likewise.
3005 * frame.c: Likewise.
3006 * frv-linux-tdep.c: Likewise.
3007 * frv-tdep.c: Likewise.
3008 * gdb.c: Likewise.
3009 * gdb_bfd.c: Likewise.
3010 * gdbarch.c: Likewise.
3011 * gdbarch.sh: Likewise.
3012 * gdbtypes.c: Likewise.
3013 * gnu-nat.c: Likewise.
3014 * gnu-v2-abi.c: Likewise.
3015 * gnu-v3-abi.c: Likewise.
3016 * go-exp.y: Likewise.
3017 * go-lang.c: Likewise.
3018 * go32-nat.c: Likewise.
3019 * guile/guile.c: Likewise.
3020 * guile/scm-auto-load.c: Likewise.
3021 * hppa-hpux-tdep.c: Likewise.
3022 * hppa-linux-nat.c: Likewise.
3023 * hppanbsd-tdep.c: Likewise.
3024 * hppaobsd-tdep.c: Likewise.
3025 * i386-cygwin-tdep.c: Likewise.
3026 * i386-dicos-tdep.c: Likewise.
3027 * i386-linux-tdep.c: Likewise.
3028 * i386-nto-tdep.c: Likewise.
3029 * i386-sol2-tdep.c: Likewise.
3030 * i386-tdep.c: Likewise.
3031 * i386bsd-tdep.c: Likewise.
3032 * i386gnu-nat.c: Likewise.
3033 * i386nbsd-tdep.c: Likewise.
3034 * i386obsd-tdep.c: Likewise.
3035 * i387-tdep.c: Likewise.
3036 * ia64-libunwind-tdep.c: Likewise.
3037 * ia64-linux-nat.c: Likewise.
3038 * inf-child.c: Likewise.
3039 * inf-ptrace.c: Likewise.
3040 * inf-ttrace.c: Likewise.
3041 * infcall.c: Likewise.
3042 * infcmd.c: Likewise.
3043 * inflow.c: Likewise.
3044 * infrun.c: Likewise.
3045 * interps.c: Likewise.
3046 * iq2000-tdep.c: Likewise.
3047 * irix5-nat.c: Likewise.
3048 * jv-exp.y: Likewise.
3049 * jv-lang.c: Likewise.
3050 * jv-typeprint.c: Likewise.
3051 * jv-valprint.c: Likewise.
3052 * language.c: Likewise.
3053 * linux-fork.c: Likewise.
3054 * linux-nat.c: Likewise.
3055 * lm32-tdep.c: Likewise.
3056 * m2-exp.y: Likewise.
3057 * m2-typeprint.c: Likewise.
3058 * m32c-tdep.c: Likewise.
3059 * m32r-linux-nat.c: Likewise.
3060 * m32r-linux-tdep.c: Likewise.
3061 * m32r-rom.c: Likewise.
3062 * m32r-tdep.c: Likewise.
3063 * m68hc11-tdep.c: Likewise.
3064 * m68k-tdep.c: Likewise.
3065 * m68kbsd-tdep.c: Likewise.
3066 * m68klinux-nat.c: Likewise.
3067 * m68klinux-tdep.c: Likewise.
3068 * m88k-tdep.c: Likewise.
3069 * machoread.c: Likewise.
3070 * macrocmd.c: Likewise.
3071 * main.c: Likewise.
3072 * mdebugread.c: Likewise.
3073 * mem-break.c: Likewise.
3074 * memattr.c: Likewise.
3075 * memory-map.c: Likewise.
3076 * mep-tdep.c: Likewise.
3077 * mi/mi-cmd-break.c: Likewise.
3078 * mi/mi-cmd-disas.c: Likewise.
3079 * mi/mi-cmd-env.c: Likewise.
3080 * mi/mi-cmd-stack.c: Likewise.
3081 * mi/mi-cmd-var.c: Likewise.
3082 * mi/mi-cmds.c: Likewise.
3083 * mi/mi-console.c: Likewise.
3084 * mi/mi-getopt.c: Likewise.
3085 * mi/mi-interp.c: Likewise.
3086 * mi/mi-main.c: Likewise.
3087 * mi/mi-parse.c: Likewise.
3088 * microblaze-rom.c: Likewise.
3089 * microblaze-tdep.c: Likewise.
3090 * mingw-hdep.c: Likewise.
3091 * minidebug.c: Likewise.
3092 * minsyms.c: Likewise.
3093 * mips-irix-tdep.c: Likewise.
3094 * mips-linux-tdep.c: Likewise.
3095 * mips-tdep.c: Likewise.
3096 * mips64obsd-tdep.c: Likewise.
3097 * mipsnbsd-tdep.c: Likewise.
3098 * mipsread.c: Likewise.
3099 * mn10300-linux-tdep.c: Likewise.
3100 * mn10300-tdep.c: Likewise.
3101 * monitor.c: Likewise.
3102 * moxie-tdep.c: Likewise.
3103 * mt-tdep.c: Likewise.
3104 * nat/linux-btrace.c: Likewise.
3105 * nat/linux-osdata.c: Likewise.
3106 * nat/linux-procfs.c: Likewise.
3107 * nat/linux-ptrace.c: Likewise.
3108 * nat/linux-waitpid.c: Likewise.
3109 * nbsd-tdep.c: Likewise.
3110 * nios2-linux-tdep.c: Likewise.
3111 * nto-procfs.c: Likewise.
3112 * nto-tdep.c: Likewise.
3113 * objc-lang.c: Likewise.
3114 * objfiles.c: Likewise.
3115 * opencl-lang.c: Likewise.
3116 * osabi.c: Likewise.
3117 * osdata.c: Likewise.
3118 * p-exp.y: Likewise.
3119 * p-lang.c: Likewise.
3120 * p-typeprint.c: Likewise.
3121 * parse.c: Likewise.
3122 * posix-hdep.c: Likewise.
3123 * ppc-linux-nat.c: Likewise.
3124 * ppc-sysv-tdep.c: Likewise.
3125 * ppcfbsd-tdep.c: Likewise.
3126 * ppcnbsd-tdep.c: Likewise.
3127 * ppcobsd-tdep.c: Likewise.
3128 * printcmd.c: Likewise.
3129 * procfs.c: Likewise.
3130 * prologue-value.c: Likewise.
3131 * python/py-auto-load.c: Likewise.
3132 * python/py-gdb-readline.c: Likewise.
3133 * ravenscar-thread.c: Likewise.
3134 * regcache.c: Likewise.
3135 * registry.c: Likewise.
3136 * remote-fileio.c: Likewise.
3137 * remote-m32r-sdi.c: Likewise.
3138 * remote-mips.c: Likewise.
3139 * remote-notif.c: Likewise.
3140 * remote-sim.c: Likewise.
3141 * remote.c: Likewise.
3142 * reverse.c: Likewise.
3143 * rs6000-aix-tdep.c: Likewise.
3144 * ser-base.c: Likewise.
3145 * ser-go32.c: Likewise.
3146 * ser-mingw.c: Likewise.
3147 * ser-pipe.c: Likewise.
3148 * ser-tcp.c: Likewise.
3149 * ser-unix.c: Likewise.
3150 * serial.c: Likewise.
3151 * sh-tdep.c: Likewise.
3152 * sh64-tdep.c: Likewise.
3153 * shnbsd-tdep.c: Likewise.
3154 * skip.c: Likewise.
3155 * sol-thread.c: Likewise.
3156 * solib-dsbt.c: Likewise.
3157 * solib-frv.c: Likewise.
3158 * solib-osf.c: Likewise.
3159 * solib-som.c: Likewise.
3160 * solib-spu.c: Likewise.
3161 * solib-target.c: Likewise.
3162 * solib.c: Likewise.
3163 * somread.c: Likewise.
3164 * source.c: Likewise.
3165 * sparc-nat.c: Likewise.
3166 * sparc-sol2-tdep.c: Likewise.
3167 * sparc-tdep.c: Likewise.
3168 * sparc64-tdep.c: Likewise.
3169 * sparc64fbsd-tdep.c: Likewise.
3170 * sparc64nbsd-tdep.c: Likewise.
3171 * sparcnbsd-tdep.c: Likewise.
3172 * spu-linux-nat.c: Likewise.
3173 * spu-multiarch.c: Likewise.
3174 * spu-tdep.c: Likewise.
3175 * stabsread.c: Likewise.
3176 * stack.c: Likewise.
3177 * std-regs.c: Likewise.
3178 * symfile.c: Likewise.
3179 * symmisc.c: Likewise.
3180 * symtab.c: Likewise.
3181 * target.c: Likewise.
3182 * thread.c: Likewise.
3183 * tilegx-linux-nat.c: Likewise.
3184 * tilegx-tdep.c: Likewise.
3185 * top.c: Likewise.
3186 * tracepoint.c: Likewise.
3187 * tui/tui-command.c: Likewise.
3188 * tui/tui-data.c: Likewise.
3189 * tui/tui-disasm.c: Likewise.
3190 * tui/tui-file.c: Likewise.
3191 * tui/tui-layout.c: Likewise.
3192 * tui/tui-out.c: Likewise.
3193 * tui/tui-regs.c: Likewise.
3194 * tui/tui-source.c: Likewise.
3195 * tui/tui-stack.c: Likewise.
3196 * tui/tui-win.c: Likewise.
3197 * tui/tui-windata.c: Likewise.
3198 * tui/tui-winsource.c: Likewise.
3199 * typeprint.c: Likewise.
3200 * ui-file.c: Likewise.
3201 * ui-out.c: Likewise.
3202 * user-regs.c: Likewise.
3203 * utils.c: Likewise.
3204 * v850-tdep.c: Likewise.
3205 * valarith.c: Likewise.
3206 * valops.c: Likewise.
3207 * valprint.c: Likewise.
3208 * value.c: Likewise.
3209 * varobj.c: Likewise.
3210 * vax-tdep.c: Likewise.
3211 * vaxnbsd-tdep.c: Likewise.
3212 * vaxobsd-tdep.c: Likewise.
3213 * windows-nat.c: Likewise.
3214 * xcoffread.c: Likewise.
3215 * xml-support.c: Likewise.
3216 * xstormy16-tdep.c: Likewise.
3217 * xtensa-linux-nat.c: Likewise.
3218
dccbb609
GB
32192014-08-07 Gary Benson <gbenson@redhat.com>
3220
3221 * common/common-defs.h: Include gdb_assert.h.
3222 * aarch64-tdep.c: Do not include gdb_assert.h.
3223 * addrmap.c: Likewise.
3224 * aix-thread.c: Likewise.
3225 * alpha-linux-tdep.c: Likewise.
3226 * alpha-mdebug-tdep.c: Likewise.
3227 * alphanbsd-tdep.c: Likewise.
3228 * amd64-nat.c: Likewise.
3229 * amd64-tdep.c: Likewise.
3230 * amd64bsd-nat.c: Likewise.
3231 * amd64fbsd-nat.c: Likewise.
3232 * amd64fbsd-tdep.c: Likewise.
3233 * amd64nbsd-nat.c: Likewise.
3234 * amd64nbsd-tdep.c: Likewise.
3235 * amd64obsd-nat.c: Likewise.
3236 * amd64obsd-tdep.c: Likewise.
3237 * arch-utils.c: Likewise.
3238 * arm-tdep.c: Likewise.
3239 * armbsd-tdep.c: Likewise.
3240 * auxv.c: Likewise.
3241 * bcache.c: Likewise.
3242 * bfin-tdep.c: Likewise.
3243 * blockframe.c: Likewise.
3244 * breakpoint.c: Likewise.
3245 * bsd-kvm.c: Likewise.
3246 * bsd-uthread.c: Likewise.
3247 * buildsym.c: Likewise.
3248 * c-exp.y: Likewise.
3249 * c-lang.c: Likewise.
3250 * charset.c: Likewise.
3251 * cleanups.c: Likewise.
3252 * cli-out.c: Likewise.
3253 * cli/cli-decode.c: Likewise.
3254 * cli/cli-dump.c: Likewise.
3255 * cli/cli-logging.c: Likewise.
3256 * cli/cli-script.c: Likewise.
3257 * cli/cli-utils.c: Likewise.
3258 * coffread.c: Likewise.
3259 * common/common-utils.c: Likewise.
3260 * common/queue.h: Likewise.
3261 * common/signals.c: Likewise.
3262 * common/vec.h: Likewise.
3263 * complaints.c: Likewise.
3264 * completer.c: Likewise.
3265 * corelow.c: Likewise.
3266 * cp-abi.c: Likewise.
3267 * cp-name-parser.y: Likewise.
3268 * cp-namespace.c: Likewise.
3269 * cp-support.c: Likewise.
3270 * cris-tdep.c: Likewise.
3271 * dbxread.c: Likewise.
3272 * dictionary.c: Likewise.
3273 * doublest.c: Likewise.
3274 * dsrec.c: Likewise.
3275 * dummy-frame.c: Likewise.
3276 * dwarf2-frame-tailcall.c: Likewise.
3277 * dwarf2-frame.c: Likewise.
3278 * dwarf2expr.c: Likewise.
3279 * dwarf2loc.c: Likewise.
3280 * dwarf2read.c: Likewise.
3281 * eval.c: Likewise.
3282 * event-loop.c: Likewise.
3283 * exceptions.c: Likewise.
3284 * expprint.c: Likewise.
3285 * f-valprint.c: Likewise.
3286 * fbsd-nat.c: Likewise.
3287 * findvar.c: Likewise.
3288 * frame-unwind.c: Likewise.
3289 * frame.c: Likewise.
3290 * frv-tdep.c: Likewise.
3291 * gcore.c: Likewise.
3292 * gdb-dlfcn.c: Likewise.
3293 * gdb_bfd.c: Likewise.
3294 * gdbarch.c: Likewise.
3295 * gdbarch.sh: Likewise.
3296 * gdbtypes.c: Likewise.
3297 * gnu-nat.c: Likewise.
3298 * gnu-v3-abi.c: Likewise.
3299 * go-lang.c: Likewise.
3300 * guile/scm-exception.c: Likewise.
3301 * guile/scm-gsmob.c: Likewise.
3302 * guile/scm-lazy-string.c: Likewise.
3303 * guile/scm-math.c: Likewise.
3304 * guile/scm-pretty-print.c: Likewise.
3305 * guile/scm-safe-call.c: Likewise.
3306 * guile/scm-utils.c: Likewise.
3307 * guile/scm-value.c: Likewise.
3308 * h8300-tdep.c: Likewise.
3309 * hppa-hpux-nat.c: Likewise.
3310 * hppa-tdep.c: Likewise.
3311 * hppanbsd-tdep.c: Likewise.
3312 * hppaobsd-tdep.c: Likewise.
3313 * i386-darwin-nat.c: Likewise.
3314 * i386-darwin-tdep.c: Likewise.
3315 * i386-nto-tdep.c: Likewise.
3316 * i386-tdep.c: Likewise.
3317 * i386bsd-nat.c: Likewise.
3318 * i386fbsd-tdep.c: Likewise.
3319 * i386gnu-nat.c: Likewise.
3320 * i386nbsd-tdep.c: Likewise.
3321 * i386obsd-tdep.c: Likewise.
3322 * i387-tdep.c: Likewise.
3323 * ia64-libunwind-tdep.c: Likewise.
3324 * ia64-tdep.c: Likewise.
3325 * inf-ptrace.c: Likewise.
3326 * inf-ttrace.c: Likewise.
3327 * infcall.c: Likewise.
3328 * infcmd.c: Likewise.
3329 * infrun.c: Likewise.
3330 * inline-frame.c: Likewise.
3331 * interps.c: Likewise.
3332 * jv-lang.c: Likewise.
3333 * jv-typeprint.c: Likewise.
3334 * linux-fork.c: Likewise.
3335 * linux-nat.c: Likewise.
3336 * linux-thread-db.c: Likewise.
3337 * m32c-tdep.c: Likewise.
3338 * m32r-linux-nat.c: Likewise.
3339 * m32r-tdep.c: Likewise.
3340 * m68k-tdep.c: Likewise.
3341 * m68kbsd-nat.c: Likewise.
3342 * m68kbsd-tdep.c: Likewise.
3343 * m88k-tdep.c: Likewise.
3344 * machoread.c: Likewise.
3345 * macroexp.c: Likewise.
3346 * macrotab.c: Likewise.
3347 * maint.c: Likewise.
3348 * mdebugread.c: Likewise.
3349 * memory-map.c: Likewise.
3350 * mep-tdep.c: Likewise.
3351 * mi/mi-common.c: Likewise.
3352 * microblaze-tdep.c: Likewise.
3353 * mingw-hdep.c: Likewise.
3354 * mips-linux-nat.c: Likewise.
3355 * mips-linux-tdep.c: Likewise.
3356 * mips-tdep.c: Likewise.
3357 * mips64obsd-tdep.c: Likewise.
3358 * mipsnbsd-tdep.c: Likewise.
3359 * mn10300-linux-tdep.c: Likewise.
3360 * mn10300-tdep.c: Likewise.
3361 * moxie-tdep.c: Likewise.
3362 * mt-tdep.c: Likewise.
3363 * nat/linux-btrace.c: Likewise.
3364 * nat/linux-osdata.c: Likewise.
3365 * nat/linux-ptrace.c: Likewise.
3366 * nat/mips-linux-watch.c: Likewise.
3367 * nios2-linux-tdep.c: Likewise.
3368 * nios2-tdep.c: Likewise.
3369 * objc-lang.c: Likewise.
3370 * objfiles.c: Likewise.
3371 * obsd-nat.c: Likewise.
3372 * opencl-lang.c: Likewise.
3373 * osabi.c: Likewise.
3374 * parse.c: Likewise.
3375 * ppc-linux-nat.c: Likewise.
3376 * ppc-sysv-tdep.c: Likewise.
3377 * ppcfbsd-nat.c: Likewise.
3378 * ppcfbsd-tdep.c: Likewise.
3379 * ppcnbsd-nat.c: Likewise.
3380 * ppcnbsd-tdep.c: Likewise.
3381 * ppcobsd-nat.c: Likewise.
3382 * ppcobsd-tdep.c: Likewise.
3383 * printcmd.c: Likewise.
3384 * procfs.c: Likewise.
3385 * prologue-value.c: Likewise.
3386 * psymtab.c: Likewise.
3387 * python/py-lazy-string.c: Likewise.
3388 * python/py-value.c: Likewise.
3389 * regcache.c: Likewise.
3390 * reggroups.c: Likewise.
3391 * registry.c: Likewise.
3392 * remote-sim.c: Likewise.
3393 * remote.c: Likewise.
3394 * rs6000-aix-tdep.c: Likewise.
3395 * rs6000-tdep.c: Likewise.
3396 * s390-linux-tdep.c: Likewise.
3397 * score-tdep.c: Likewise.
3398 * ser-base.c: Likewise.
3399 * ser-mingw.c: Likewise.
3400 * sh-tdep.c: Likewise.
3401 * sh64-tdep.c: Likewise.
3402 * solib-darwin.c: Likewise.
3403 * solib-spu.c: Likewise.
3404 * solib-svr4.c: Likewise.
3405 * source.c: Likewise.
3406 * sparc-nat.c: Likewise.
3407 * sparc-sol2-tdep.c: Likewise.
3408 * sparc-tdep.c: Likewise.
3409 * sparc64-sol2-tdep.c: Likewise.
3410 * sparc64-tdep.c: Likewise.
3411 * sparc64fbsd-tdep.c: Likewise.
3412 * sparc64nbsd-tdep.c: Likewise.
3413 * sparc64obsd-tdep.c: Likewise.
3414 * sparcnbsd-tdep.c: Likewise.
3415 * sparcobsd-tdep.c: Likewise.
3416 * spu-multiarch.c: Likewise.
3417 * spu-tdep.c: Likewise.
3418 * stabsread.c: Likewise.
3419 * stack.c: Likewise.
3420 * symfile.c: Likewise.
3421 * symtab.c: Likewise.
3422 * target-descriptions.c: Likewise.
3423 * target-memory.c: Likewise.
3424 * target.c: Likewise.
3425 * tic6x-linux-tdep.c: Likewise.
3426 * tic6x-tdep.c: Likewise.
3427 * tilegx-linux-nat.c: Likewise.
3428 * tilegx-tdep.c: Likewise.
3429 * top.c: Likewise.
3430 * tramp-frame.c: Likewise.
3431 * tui/tui-out.c: Likewise.
3432 * tui/tui-winsource.c: Likewise.
3433 * ui-out.c: Likewise.
3434 * user-regs.c: Likewise.
3435 * utils.c: Likewise.
3436 * v850-tdep.c: Likewise.
3437 * valops.c: Likewise.
3438 * value.c: Likewise.
3439 * varobj.c: Likewise.
3440 * vax-nat.c: Likewise.
3441 * xml-syscall.c: Likewise.
3442 * xml-tdesc.c: Likewise.
3443 * xstormy16-tdep.c: Likewise.
3444 * xtensa-linux-nat.c: Likewise.
3445 * xtensa-tdep.c: Likewise.
3446
e76df0d0
GB
34472014-08-07 Gary Benson <gbenson@redhat.com>
3448
3449 * common/common-defs.h: Include common-utils.h.
3450 * defs.h: Do not include common-utils.h.
3451 * common/gdb_assert.h: Likewise.
3452 * darwin-nat.h: Likewise.
3453 * nat/linux-btrace.c: Likewise.
3454 * target/waitstatus.h: Likewise.
3455
4cb9c816
GB
34562014-08-07 Gary Benson <gbenson@redhat.com>
3457
3458 * common/common-defs.h: Include ptid.h.
3459 * defs.h: Do not include ptid.h.
3460 * inferior.h: Likewise.
3461 * infrun.h: Likewise.
3462 * nat/linux-btrace.h: Likewise.
3463 * nat/linux-osdata.h: Likewise.
3464 * target/waitstatus.h: Likewise.
3465
3995eeee
GB
34662014-08-07 Gary Benson <gbenson@redhat.com>
3467
3468 * common/common-defs.h: Include gdb_locale.h.
3469 * defs.h: Do not include gdb_locale.h.
3470
cb9f1a9b
GB
34712014-08-07 Gary Benson <gbenson@redhat.com>
3472
3473 * common/common-defs.h: Include gdb/signals.h.
3474 * defs.h: Do not include gdb/signals.h.
3475
a5fceff8
GB
34762014-08-07 Gary Benson <gbenson@redhat.com>
3477
3478 * common/common-defs.h: Include pathmax.h.
3479 * defs.h: Do not include pathmax.h.
3480
b9391142
GB
34812014-08-07 Gary Benson <gbenson@redhat.com>
3482
3483 * common/common-defs.h: Include libiberty.h.
3484 * defs.h: Do not include libiberty.h.
3485 * common/queue.h: Likewise.
3486 * cp-name-parser.y: Likewise.
3487 * mi/mi-cmd-catch.c: Likewise.
3488 * python/python.c: Likewise.
3489
0e443c87
GB
34902014-08-07 Gary Benson <gbenson@redhat.com>
3491
3492 * common/common-defs.h: Include ansidecl.h.
3493 * defs.h: Do not include ansidecl.h.
3494 * common/buffer.h: Likewise.
3495 * common/common-utils.h: Likewise.
3496
8ebb3f56
GB
34972014-08-07 Gary Benson <gbenson@redhat.com>
3498
3499 * common/common-defs.h: Include stddef.h.
3500 * defs.h: Do not include stddef.h.
3501 * common/common-utils.h: Likewise.
3502 * amd64fbsd-nat.c: Likewise.
3503 * bcache.c: Likewise.
3504 * charset.c: Likewise.
3505 * common/buffer.h: Likewise.
3506 * common/vec.h: Likewise.
3507 * i386bsd-nat.c: Likewise.
3508 * nat/linux-btrace.h: Likewise.
3509 * ppcfbsd-nat.c: Likewise.
3510 * ppcnbsd-tdep.h: Likewise.
3511 * ppcobsd-nat.c: Likewise.
3512 * ppcobsd-tdep.h: Likewise.
3513 * python/py-gdb-readline.c: Likewise.
3514
8980bdf6
GB
35152014-08-07 Gary Benson <gbenson@redhat.com>
3516
3517 * common/common-defs.h: Include stdarg.h.
3518 * defs.h: Do not include stdarg.h.
3519 * ada-lang.c: Likewise.
3520 * common/common-utils.h: Likewise.
3521 * guile/scm-string.c: Likewise.
3522 * guile/scm-utils.c: Likewise.
3523 * m32c-tdep.c: Likewise.
3524
d7096f71
GB
35252014-08-07 Gary Benson <gbenson@redhat.com>
3526
3527 * common/common-defs.h: Include stdlib.h.
3528 * defs.h: Do not include stdlib.h.
3529 * addrmap.c: Likewise.
3530 * bcache.c: Likewise.
3531 * common/buffer.c: Likewise.
3532 * common/common-utils.c: Likewise.
3533 * cp-name-parser.y: Likewise.
3534 * go32-nat.c: Likewise.
3535 * mn10300-linux-tdep.c: Likewise.
3536 * nat/linux-osdata.c: Likewise.
3537 * tui/tui.c: Likewise.
3538 * windows-nat.c: Likewise.
3539
d02f550d
GB
35402014-08-07 Gary Benson <gbenson@redhat.com>
3541
3542 * common/common-defs.h: Include stdio.h.
3543 * defs.h: Do not include stdio.h.
3544 * ada-lang.c: Likewise.
3545 * common/buffer.c: Likewise.
3546 * common/common-utils.c: Likewise.
3547 * cp-name-parser.y: Likewise.
3548 * gnu-nat.c: Likewise.
3549 * go32-nat.c: Likewise.
3550 * i386gnu-nat.c: Likewise.
3551 * proc-api.c: Likewise.
3552 * proc-events.c: Likewise.
3553 * proc-flags.c: Likewise.
3554 * proc-why.c: Likewise.
3555 * python/python-internal.h: Likewise.
3556 * target-memory.c: Likewise.
3557 * tui/tui-io.c: Likewise.
3558 * tui/tui.c: Likewise.
3559
b6d7a4bf
SM
35602014-08-06 Simon Marchi <simon.marchi@ericsson.com>
3561
3562 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
3563 (scan_dyntag_auxv): Same.
3564
af19829b
YQ
35652014-08-06 Yao Qi <yao@codesourcery.com>
3566
3567 * amd64-linux-nat.c: Remove duplicated include
3568 "x86-linux-nat.h".
3569 * i386-linux-nat.c: Likewise.
3570
8e07a239
YQ
35712014-08-06 Yao Qi <yao@codesourcery.com>
3572
3573 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
3574 operand" with "Special opcode" in comments.
3575
7bfe8241
GB
35762014-08-05 Gary Benson <gbenson@redhat.com>
3577
3578 * interps.c (initialize_interps): Remove prototype.
3579 (interpreter_initialized): Remove static global.
3580 (interp_add): Do not call initialize_interps.
3581 (initialize_interps): Remove function.
3582
d6c95504
GB
35832014-08-05 Gary Benson <gbenson@redhat.com>
3584
3585 * utils.c (vwarning): Remove spurious va_end.
3586
241fd515
AM
35872014-08-05 Alan Modra <amodra@gmail.com>
3588
3589 * charset.c (convert_between_encodings): Cast result of obstack_base.
3590 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
3591 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
3592 (read_unwind_info): Use size_t for some locals.
3593 * jit.c (finalize_symtab): Likewise.
3594 * utils.c (hashtab_obstack_allocate): Likewise.
3595 * symmisc.c (print_objfile_statistics): Update format strings.
3596
dc304a94
JK
35972014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3598
3599 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
3600 (Changes in GDB 7.8): ... here.
3601
3cecbbbe
TT
36022014-08-04 Tom Tromey <tromey@redhat.com>
3603
3604 * target.c (set_targetdebug): New function.
3605 (initialize_targets): Pass set_targetdebug when creating "set
3606 debug target".
3607
6908c509
JB
36082014-08-01 Joel Brobecker <brobecker@adacore.com>
3609
3610 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
3611 if detecting a variable-sized field that is not the last field.
3612 Fix struct type length computation.
3613
53e8f97d
JB
36142014-08-01 Joel Brobecker <brobecker@adacore.com>
3615
3616 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3617 Add debug trace.
3618
e068c55d
JB
36192014-08-01 Joel Brobecker <brobecker@adacore.com>
3620
3621 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3622 Remove "+ 8" offset in computation of CHAIN_VMA.
3623
4d4ca2a1
DE
36242014-07-31 Doug Evans <dje@google.com>
3625
3626 * inflow.c (child_terminal_inferior): Add comment.
3627 (child_terminal_ours_for_output): Add comment.
3628 (child_terminal_ours): Add comment.
3629 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
3630 (linux_nat_terminal_ours): Add comment.
3631
462f517e
GB
36322014-07-31 Gary Benson <gbenson@redhat.com>
3633
3634 * common/btrace-common.h: Do not include defs.h or server.h.
3635 * nat/mips-linux-watch.h: Likewise.
3636 * gdb-dlfcn.h: Do not include defs.h.
3637 * tracefile.h: Likewise.
3638
74228e77
RM
36392014-07-30 Roland McGrath <mcgrathr@google.com>
3640
3641 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
3642
014f9477
TT
36432014-07-30 Tom Tromey <tromey@redhat.com>
3644
3645 * bsd-kvm.c (bsd_kvm_open): Constify.
3646 * corelow.c (core_open): Constify.
3647 * ctf.c (ctf_open): Constify.
3648 * dbug-rom.c (dbug_open): Constify.
3649 * exec.c (exec_open): Constify.
3650 * m32r-rom.c (m32r_open, mon2000_open): Constify.
3651 * microblaze-rom.c (picobug_open): Constify.
3652 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
3653 Constify.
3654 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
3655 * record-btrace.c (record_btrace_open): Constify.
3656 * record-full.c (record_full_core_open_1, record_full_open_1)
3657 (record_full_open): Constify.
3658 * remote-m32r-sdi.c (m32r_open): Constify.
3659 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
3660 (rockhopper_open, lsi_open): Constify.
3661 * remote-sim.c (gdbsim_open): Constify.
3662 * remote.c (remote_open, extended_remote_open, remote_open_1):
3663 Constify.
3664 * target.h (struct target_ops) <to_open>: Make "arg" const.
3665 * tracefile-tfile.c (tfile_open): Constify.
3666
e799154c
TT
36672014-07-30 Tom Tromey <tromey@redhat.com>
3668
3669 * breakpoint.c (map_breakpoint_numbers): Update.
3670 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
3671 (get_number_const): New function.
3672 (get_number): Rewrite using get_number_const.
3673 (init_number_or_range): Make "string" const.
3674 (number_is_in_list): Make "list" const.
3675 * cli/cli-utils.h (get_number_const): Declare.
3676 (struct get_number_or_range_state) <string, end_ptr>: Now const.
3677 (init_number_or_range, number_is_in_list): Update.
3678 * printcmd.c (map_display_numbers): Update.
3679 * value.c (value_from_history_ref): Constify.
3680 * value.h (value_from_history_ref): Update.
3681
5f08566b
TT
36822014-07-30 Tom Tromey <tromey@redhat.com>
3683
3684 * corefile.c (hook_type, call_extra_exec_file_hooks)
3685 (specify_exec_file_hook): Constify.
3686 * exec.c (exec_file_attach): Make "filename" const.
3687 * gdbcore.h (deprecated_exec_file_display_hook)
3688 (specify_exec_file_hook, exec_file_attach): Constify.
3689 * main.c (captured_main): Use catch_command_errors_const.
3690
8981c758
TT
36912014-07-30 Tom Tromey <tromey@redhat.com>
3692
3693 * target.c (open_target): New function.
3694 (add_target_with_completer, add_deprecated_target_alias): Use
3695 set_cmd_sfunc, set_cmd_context.
3696 (debug_to_open): Remove.
3697 (setup_target_debug): Update.
3698
a1c7835a
YQ
36992014-07-30 Yao Qi <yao@codesourcery.com>
3700
3701 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
3702 comments.
3703 * parse.c (exp_iterate): Update comments.
3704
976411d6
GB
37052014-07-30 Gary Benson <gbenson@redhat.com>
3706
3707 * common/common-defs.h: New file.
3708 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
3709 * defs.h: Include common-defs.h.
3710 Do not include config.h or build-gnulib/config.h.
3711
5d4848a4
GB
37122014-07-30 Gary Benson <gbenson@redhat.com>
3713
3714 * common/common-utils.h: Do not include config.h.
3715 * nat/linux-btrace.h: Likewise.
3716
d41f6d8e
GB
37172014-07-30 Gary Benson <gbenson@redhat.com>
3718
3719 * btrace.c: Include defs.h.
3720 * common/ptid.c: Include defs.h or server.h as appropriate.
3721 * nat/mips-linux-watch.c: Likewise.
3722
84202f9c
TT
37232014-07-29 Tom Tromey <tromey@redhat.com>
3724
3725 * target.c (target_is_pushed): Simplify.
3726
2530441c
JB
37272014-07-29 Joel Brobecker <brobecker@adacore.com>
3728
3729 GDB 7.8 released.
3730
7e09a223
YQ
37312014-07-29 Yao Qi <yao@codesourcery.com>
3732
3733 PR gdb/17206
3734 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
3735
7ebdbe92
DE
37362014-07-28 Doug Evans <xdje42@gmail.com>
3737
3738 PR guile/17203
3739 * guile/scm-param.c (pascm_parameter_defined_p): New function.
3740 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
3741 parameters.
3742
f347ffc9
WN
37432014-07-28 Will Newton <will.newton@linaro.org>
3744
3745 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
3746 (THUMB2_SET_R7_SIGRETURN2): Likewise.
3747 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
3748 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
3749 (THUMB2_EABI_SYSCALL): Likewise.
3750 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
3751 struct tramp_frame.
3752 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
3753 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
3754
37c5f1f7
DE
37552014-07-27 Doug Evans <xdje42@gmail.com>
3756
3757 * guile/scm-param.c (pascm_print_param_smob): Fix output.
3758
0c3abbc7
DE
37592014-07-27 Doug Evans <xdje42@gmail.com>
3760
3761 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
3762
e76c5d17
DE
37632014-07-26 Ludovic Courtès <ludo@gnu.org>
3764 Doug Evans <xdje42@gmail.com>
3765
3766 PR guile/17146
3767 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
3768 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
3769 * configure.ac: Try to use guild to compile an scm file, if it fails
3770 then disable guile support.
3771 * configure: Regenerate.
3772 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
3773 GUILE_FILE_LIST.
3774 (GUILE_COMPILED_FILES): New variable.
3775 (GUILE_FILES) Update.
3776 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
3777 (stamp-guile): Compile scm files.
3778 * guile/guile.c (boot_guile_support): New function.
3779 (standard_throw_args_p): New function.
3780 (print_standard_throw_error, print_throw_error): New functions.
3781 (handle_boot_error): New function.
3782 (initialize_scheme_side): Rewrite to call boot_guile_support.
3783 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
3784 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
3785
186fcde0
DE
37862014-07-26 Ludovic Courtès <ludo@gnu.org>
3787 Doug Evans <xdje42@gmail.com>
3788
3789 PR guile/17146
3790 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
3791 * guile/lib/gdb/support.scm: New file.
3792 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
3793 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
3794 All uses updated.
3795 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
3796 All uses updated.
3797 (%assert-type): Ditto, and renamed to assert-type.
3798 (%exception-print-style): Delete.
3799
4df42755
DE
38002014-07-26 Doug Evans <xdje42@gmail.com>
3801
3802 PR build/17105
3803 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
3804 * configure: Regenerate.
3805 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
3806 PYTHON_FILES.
3807 (PYTHON_FILES): New variable.
3808 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
3809 (GUILE_FILES): New variable.
3810 (stamp-python, install-python, uninstall-python): Handle empty
3811 file list.
3812 (stamp-guile, install-guile, uninstall-guile): Ditto.
3813
ee7333ae
DE
38142014-07-26 Doug Evans <xdje42@gmail.com>
3815
3816 PR guile/17177
3817 * guile/lib/gdb.scm (pretty-printers): Export.
3818 (set-pretty-printers!): Export.
3819 * guile/lib/gdb/printing.scm (gdb module): Update.
3820 (prepend-pretty-printer!, append-pretty-printer!): Update.
3821 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
3822 (pretty_printer_list_var): Delete.
3823 (pretty_printer_list): New static global.
3824 (gdbscm_pretty_printers): New function.
3825 (gdbscm_set_pretty_printers_x): New function.
3826 (ppscm_find_pretty_printer_from_gdb): Update.
3827 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
3828 (gdbscm_initialize_pretty_printers): Update.
3829
74edf516
DE
38302014-07-26 Doug Evans <xdje42@gmail.com>
3831
3832 PR 17185
3833 * configure.ac: Add check for header gc/gc.h.
3834 Add check for function setenv.
3835 * configure: Regenerate.
3836 * config.in: Regenerate.
3837 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
3838
d54398a7
MR
38392014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
3840
3841 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
3842 variation in gdbarch matching.
3843
ab16fce8
TT
38442014-07-25 Tom Tromey <tromey@redhat.com>
3845
3846 * exec.c (using_exec_ops): Remove.
3847 (exec_close_1): Update. Remove extraneous block, reindent.
3848 (add_target_sections): Use target_is_pushed.
3849
88056fbb
PA
38502014-07-25 Pedro Alves <palves@redhat.com>
3851
3852 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
3853 * monitor.c (monitor_create_inferior): Likewise.
3854 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
3855 * remote-sim.c (gdbsim_create_inferior): Likewise.
3856 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
3857 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
3858 * windows-nat.c (do_initial_windows_stuff): Likewise.
3859
70509625
PA
38602014-07-25 Pedro Alves <palves@redhat.com>
3861
3862 * NEWS: Mention signal passing and "signal" command changes.
3863 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
3864 comment.
3865 * breakpoint.c (until_break_command): Adjust clear_proceed_status
3866 call.
3867 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
3868 * infcmd.c (proceed_thread_callback, continue_1, step_once)
3869 (jump_command): Adjust clear_proceed_status call.
3870 (signal_command): Warn if other thread that are resumed have
3871 signals that will be delivered. Adjust clear_proceed_status call.
3872 (until_next_command, finish_command)
3873 (proceed_after_attach_callback, attach_command_post_wait)
3874 (attach_command): Adjust clear_proceed_status call.
3875 * infrun.c (proceed_after_vfork_done): Likewise.
3876 (proceed_after_attach_callback): Adjust comment.
3877 (clear_proceed_status_thread): Clear stop_signal if not in pass
3878 state.
3879 (clear_proceed_status_callback): Delete.
3880 (clear_proceed_status): New 'step' parameter. Only clear the
3881 proceed status of threads the command being prepared is about to
3882 resume.
3883 (proceed): If passed in an explicit signal, override stop_signal
3884 with it. Don't pass the last stop signal to the thread we're
3885 resuming.
3886 (init_wait_for_inferior): Adjust clear_proceed_status call.
3887 (switch_back_to_stepped_thread): Clear the signal if it should not
3888 be passed.
3889 * infrun.h (clear_proceed_status): New 'step' parameter.
3890 (user_visible_resume_ptid): Add comment.
3891 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
3892 signal is in pass state.
3893 * remote.c (append_pending_thread_resumptions): Likewise.
3894 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
3895
d8be2939
TT
38962014-07-25 Tom Tromey <tromey@redhat.com>
3897
3898 * target.h (target_stopped_data_address)
3899 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
3900 parentheses.
3901
7d0d9d2b
PL
39022014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
3903
3904 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
3905 comments.
3906 (avr_pointer_to_address): Likewise.
3907
e9e7f724
TT
39082014-07-24 Tom Tromey <tromey@redhat.com>
3909
3910 * monitor.c (compile_pattern): Update.
3911 * target.h (struct target_ops) <to_shortname, to_longname,
3912 to_doc>: Now const.
3913
1947513d
TT
39142014-07-24 Tom Tromey <tromey@redhat.com>
3915
3916 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
3917 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
3918 (add_info_alias, add_com): Make "doc" const.
3919 (print_doc_line): Make "str" const.
3920 (delete_cmd): Update.
3921 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
3922 (print_doc_line): Update.
3923 * cli/cli-script.c (document_command): Update.
3924 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
3925 (add_com, add_info, add_info_alias): Update.
3926 * guile/scm-cmd.c (cmdscm_destroyer): Update.
3927 * python/py-cmd.c (cmdpy_destroyer): Update.
3928
64e61d29
TT
39292014-07-24 Tom Tromey <tromey@redhat.com>
3930
3931 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
3932 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
3933 (help_cmd_list): Constify.
3934 (lookup_cmd): Update.
3935 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
3936 const.
3937 (help_cmd_list, apropos_cmd): Update.
3938 * cli/cli-script.c (show_user): Update.
3939 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
3940 * cli/cli-setshow.h (cmd_show_list): Update.
3941 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
3942 (cmd_show_list): Update.
3943 * guile/scm-cmd.c (cmdscm_destroyer): Update.
3944 * python/py-cmd.c (cmdpy_destroyer): Update.
3945
429e55ea
TT
39462014-07-24 Tom Tromey <tromey@redhat.com>
3947
3948 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
3949 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
3950 const.
3951 * command.h (deprecate_cmd): Update.
3952 * maint.c (maintenance_do_deprecate): Add casts.
3953
64669f3b
TT
39542014-07-24 Tom Tromey <tromey@redhat.com>
3955
3956 * cli/cli-decode.c (help_cmd): Make parameter "const".
3957 * cli/cli-decode.h (help_cmd): Update.
3958
d3d3328b
TT
39592014-07-24 Tom Tromey <tromey@redhat.com>
3960
3961 * stack.c (up_silently_base, down_silently_base): Make argument
3962 const.
3963
414842dc
TT
39642014-07-24 Tom Tromey <tromey@redhat.com>
3965
3966 * solib.c (solib_add): Make "pattern" const.
3967 * solib.h (solib_add): Update.
3968
baa336ce
TT
39692014-07-24 Tom Tromey <tromey@redhat.com>
3970
3971 * remote.c (remote_serial_open, print_packet, putpkt)
3972 (putpkt_binary): Constify.
3973 * remote.h (putpkt): Update.
3974
5a19e2d0
TT
39752014-07-24 Tom Tromey <tromey@redhat.com>
3976
3977 * monitor.c (monitor_open): Make "args" const.
3978 * monitor.h (monitor_open): Update.
3979
fc4baa5e
TT
39802014-07-24 Tom Tromey <tromey@redhat.com>
3981
3982 * maint.c (match_bfd_flags): Make "string" const.
3983 (print_bfd_section_info): Remove casts.
3984 (print_objfile_section_info): Make "string" const.
3985
0d5f0dbe
TT
39862014-07-24 Tom Tromey <tromey@redhat.com>
3987
3988 * inf-child.c (inf_child_open_target): Make "arg" const.
3989 * inf-child.h (inf_child_open_target): Update.
3990
41c77899
TT
39912014-07-24 Tom Tromey <tromey@redhat.com>
3992
3993 * environ.c (unset_in_environ): Make "var" const.
3994 * environ.h (unset_in_environ): Update.
3995
93db0d79
TT
39962014-07-24 Tom Tromey <tromey@redhat.com>
3997
3998 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
3999 Make "cmd" const.
4000 (scan_filename_with_cleanup): Likewise.
4001 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
4002 Make arguments const.
4003 (restore_command): Update.
4004
36d6eb95
PA
40052014-07-24 Pedro Alves <palves@redhat.com>
4006
4007 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
4008
8009206a
TT
40092014-07-24 Tom Tromey <tromey@redhat.com>
4010 Gary Benson <gbenson@redhat.com>
4011
4012 * nat/linux-ptrace.c (additional_flags): New global.
4013 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
4014 additional_flags; don't check GDBSERVER.
4015 (linux_ptrace_set_additional_flags): New function.
4016 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
4017 Declare.
4018 * linux-nat.c (_initialize_linux_nat): Call
4019 linux_ptrace_set_additional_flags.
4020
a7068b60
TT
40212014-07-24 Tom Tromey <tromey@redhat.com>
4022
4023 * make-target-delegates (munge_type, write_debugmethod): New
4024 functions.
4025 (debug_names): New global.
4026 ($TARGET_DEBUG_PRINTER): New global.
4027 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
4028 name.
4029 Write debug methods. Generate init_debug_target.
4030 * target-debug.h: New file.
4031 * target-delegates.c: Rebuild.
4032 * target.c: Include target-debug.h.
4033 (debug_target): Hoist definition.
4034 (target_kill, target_get_section_table, target_memory_map)
4035 (target_flash_erase, target_flash_done, target_detach)
4036 (target_disconnect, target_wait, target_resume)
4037 (target_pass_signals, target_program_signals, target_follow_fork)
4038 (target_mourn_inferior, target_search_memory)
4039 (target_thread_address_space, target_close)
4040 (target_find_new_threads, target_core_of_thread)
4041 (target_verify_memory, target_insert_mask_watchpoint)
4042 (target_remove_mask_watchpoint): Remove targetdebug code.
4043 (debug_to_post_attach, debug_to_prepare_to_store)
4044 (debug_to_files_info, debug_to_insert_breakpoint)
4045 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
4046 (debug_to_region_ok_for_hw_watchpoint)
4047 (debug_to_can_accel_watchpoint_condition)
4048 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
4049 (debug_to_watchpoint_addr_within_range)
4050 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
4051 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
4052 (debug_to_terminal_init, debug_to_terminal_inferior)
4053 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
4054 (debug_to_terminal_save_ours, debug_to_terminal_info)
4055 (debug_to_load, debug_to_post_startup_inferior)
4056 (debug_to_insert_fork_catchpoint)
4057 (debug_to_remove_fork_catchpoint)
4058 (debug_to_insert_vfork_catchpoint)
4059 (debug_to_remove_vfork_catchpoint)
4060 (debug_to_insert_exec_catchpoint)
4061 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
4062 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
4063 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
4064 (setup_target_debug): Call init_debug_target.
4065 * target.h (TARGET_DEBUG_PRINTER): New macro.
4066 (struct target_ops) <to_resume, to_wait, to_pass_signals,
4067 to_program_signals>: Use TARGET_DEBUG_PRINTER.
4068
2c51604d
GB
40692014-07-24 Gary Benson <gbenson@redhat.com>
4070
4071 * exceptions.h (throw_vfatal): Renamed to...
4072 (throw_vquit): New declaration.
4073 (throw_quit): Likewise.
4074 * exceptions.c (throw_vfatal): Renamed to...
4075 (throw_vquit): New function.
4076 (throw_quit): Likewise.
4077 (throw_error): Call throw_verror rather than throw_it.
4078 * utils.h (vfatal): Removed.
4079 (fatal): Likewise.
4080 * utils.c (vfatal): Removed.
4081 (fatal): Likewise.
4082 (internal_verror): Replaced call to fatal with call to throw_quit.
4083 (quit): Replaced calls to fatal with calls to throw_quit.
4084
34211963
ME
40852014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
4086
4087 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
4088 target_read_code.
4089
a52b4d3e
ME
40902014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
4091
4092 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
4093 less than zero in conditional expression.
4094
a8bdc56b
TT
40952014-07-23 Tom Tromey <tromey@redhat.com>
4096
4097 * make-target-delegates ($ARGS_PART): Match trailing close paren.
4098 ($INTRO_PART): Don't match whitespace.
4099 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
4100 argument matching.
4101 ($METHOD): Add $METHOD_TRAILER.
4102 (trim): Rewrite.
4103 (scan_target_h): New sub.
4104 Change main loop not to collect state.
4105 * target-delegates.c: Rebuild.
4106
91b52240
GB
41072014-07-23 Gary Benson <gbenson@redhat.com>
4108
4109 * cp-support.c (gdb_demangle): Fix build on systems without
4110 sigaltstack.
4111
45326f6f
JK
41122014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4113
4114 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
4115 for reference entry value target data value.
4116
e214cf6c
JK
41172014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4118
4119 * stack.c (read_frame_arg): Verify value_optimized_out before calling
4120 value_available_contents_eq.
4121
bddbbedd
PA
41222014-07-22 Pedro Alves <palves@redhat.com>
4123
4124 * value.c (allocate_optimized_out_value): Don't mark value as
4125 non-lazy.
4126
45c71484
JW
41272014-07-22 Jiong Wang <jiong.wang@arm.com>
4128
4129 * MAINTAINERS (Write After Approval): Update my email address.
4130
9597b22a
DE
41312014-07-20 Doug Evans <dje@google.com>
4132
4133 PR server/17147
4134 * remote.c (putpkt_binary): Add text to error message.
4135
91101fe5
YQ
41362014-07-20 Yao Qi <yao@codesourcery.com>
4137
4138 * eval.c: Remove "Chill" from comments.
4139 * gdbtypes.h: Likewise.
4140 * symtab.h: Likewise.
4141
c9402c95
YQ
41422014-07-20 Yao Qi <yao@codesourcery.com>
4143
4144 * std-operator.def: Update comments to TERNOP_SLICE.
4145
ae8fddda
YQ
41462014-07-20 Yao Qi <yao@codesourcery.com>
4147
4148 * std-operator.def: Remove BINOP_RANGE.
4149 * breakpoint.c (watchpoint_exp_is_const): Update.
4150 * expprint.c (dump_subexp_body_standard): Likewise.
4151 * eval.c (init_array_element): Remove dead code.
4152 (evaluate_subexp_standard): Likewise.
4153
9c816640
YQ
41542014-07-20 Yao Qi <yao@codesourcery.com>
4155
4156 * std-operator.def: Remove BINOP_IN.
4157 * breakpoint.c (watchpoint_exp_is_const): Update.
4158 * eval.c (evaluate_subexp_standard): Likewise.
4159 * expprint.c (dump_subexp_body_standard): Likewise.
4160
164224e9
ME
41612014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
4162
4163 * microblaze-tdep.c (microblaze_register_names): Add
4164 the rshr and rslr register names.
4165 (microblaze_gdbarch_init): Use of tdesc_has_registers.
4166 Use of tdesc_find_feature. Use of tdesc_data_alloc.
4167 Use of tdesc_numbered_register. Use of
4168 microblaze_register_g_packet_guesses. Use of
4169 tdesc_use_registers. Use of set_gdbarch_register_type.
4170 (microblaze_register_g_packet_guesses): New.
4171 * microblaze-tdep.h (microblaze_reg_num): Add
4172 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
4173 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
4174 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
4175 * features/microblaze-core.xml: New file.
4176 * features/microblaze-stack-protect.xml: New file.
4177 * features/microblaze-with-stack-protect.c: New file.
4178 * features/microblaze-with-stack-protect.xml: New file.
4179 * features/microblaze.xml: New file.
4180 * features/microblaze.c: New file.
4181 * features/Makefile (microblaze-with-stack-protect): Add
4182 microblaze-with-stack-protect microblaze and microblaze-expedite.
4183 * regformats/microblaze-with-stack-protect.dat: New file.
4184 * regformats/microblaze.dat: New file.
4185 * doc/gdb.texinfo (MicroBlaze Features): Added.
4186
e8b2341c
TT
41872014-07-18 Tom Tromey <tromey@redhat.com>
4188
4189 * exec.c (exec_ops): Now static.
4190 * exec.h (exec_ops): Don't declare.
4191
44e89118
TT
41922014-07-18 Tom Tromey <tromey@redhat.com>
4193
4194 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
4195 to find_target_beneath.
4196 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
4197 find_target_beneath.
4198 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
4199
b0ed115f
TT
42002014-07-18 Tom Tromey <tromey@redhat.com>
4201
4202 PR gdb/17130:
4203 * utils.c (quit): Use target_supports_terminal_ours.
4204 * target.h (target_supports_terminal_ours): Declare.
4205 * target.c (target_supports_delete_record): Don't check
4206 to_delete_record against NULL.
4207 (target_supports_terminal_ours): New function.
4208
e75fdfca
TT
42092014-07-18 Tom Tromey <tromey@redhat.com>
4210
4211 PR gdb/17130:
4212 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
4213 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
4214 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
4215 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
4216 * windows-nat.c (windows_xfer_partial): Always delegate.
4217 * record-btrace.c (record_btrace_xfer_partial): Simplify
4218 delegation.
4219 (record_btrace_fetch_registers, record_btrace_store_registers)
4220 (record_btrace_prepare_to_store, record_btrace_resume)
4221 (record_btrace_wait, record_btrace_find_new_threads)
4222 (record_btrace_thread_alive): Likewise.
4223 * procfs.c (procfs_xfer_partial): Always delegate.
4224 * corelow.c (core_xfer_partial): Always delegate.
4225 * sol-thread.c (sol_find_new_threads): Simplify delegation.
4226
83814951
TT
42272014-07-18 Tom Tromey <tromey@redhat.com>
4228
4229 * exec.c (exec_make_note_section): Move earlier.
4230
b8b8facf
DE
42312014-07-17 Doug Evans <dje@google.com>
4232
74b49205 4233 PR gdb/17170
b8b8facf
DE
4234 * maint.c (count_symtabs_and_blocks): Handle NULL
4235 current_program_space.
4236 (report_command_stats): Check global enabled flag in addition to
4237 recorded enabled flag.
4238 (make_command_stats_cleanup): Handle msg_type == 0, startup.
4239
69ff6be5
PA
42402014-07-16 Pedro Alves <palves@redhat.com>
4241
4242 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
4243
252db1b5
TT
42442014-07-16 Tom Tromey <tromey@redhat.com>
4245
4246 * target.h (struct target_ops) <to_delete_record>: Reformat
4247 comment.
4248
a432721e
TT
42492014-07-16 Tom Tromey <tromey@redhat.com>
4250
4251 * target-delegates.c: Rebuild.
4252
487d9753
PL
42532014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
4254
4255 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
4256 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
4257 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
4258 (avr_pointer_to_address): Likewise.
4259 (avr_address_class_type_flags): New function.
4260 (avr_address_class_type_flags_to_name): Likewise.
4261 (avr_address_class_name_to_type_flags): Likewise.
4262 (avr_gdbarch_init): Set address_class_type_flags,
4263 address_class_type_flags_to_name and
4264 address_class_name_to_type_flags.
4265
57745c90
PA
42662014-07-15 Pedro Alves <palves@redhat.com>
4267
4268 * linux-nat.c (kill_callback): Save errno and work with saved
4269 copy.
4270
2d40be18
SM
42712014-07-15 Simon Marchi <simon.marchi@ericsson.com>
4272
4273 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
4274
572f6555
EBM
42752014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4276
4277 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
4278 breakpoint support correctly.
4279
cc1c52ad
PA
42802014-07-14 Pedro Alves <palves@redhat.com>
4281
4282 * utils.c (prompt_for_continue): Call target_terminal_ours.
4283
1e973570
PA
42842014-07-14 Pedro Alves <palves@redhat.com>
4285
4286 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
4287 catch_errors. Don't re-enable stdin or notify observers where,
4288 and rethrow error.
4289 (fetch_inferior_event_wrapper): Delete.
4290
93d6eb10
PA
42912014-07-14 Pedro Alves <palves@redhat.com>
4292
4293 PR gdb/17072
4294 * top.c: Include "inf-loop.h".
4295 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
4296 field.
4297 (gdb_readline_wrapper_cleanup): Make the target async again, if it
4298 was async before.
4299 (gdb_readline_wrapper): Store whether the target is async, and
4300 make it sync.
4301
0017922d
PA
43022014-07-14 Pedro Alves <palves@redhat.com>
4303
4304 PR gdb/17072
4305 * top.c (gdb_readline_wrapper_line): Tweak comment.
4306 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
4307 the input handler callback.
4308
94696ad3
PA
43092014-07-14 Pedro Alves <palves@redhat.com>
4310
4311 PR gdb/17072
4312 * main.c: Include event-top.h.
4313 (handle_command_errors): New function.
4314 (catch_command_errors, catch_command_errors_const): Use it.
4315
9d1e69a2
PA
43162014-07-14 Pedro Alves <palves@redhat.com>
4317
4318 * exceptions.c (catch_command_errors, catch_command_errors_const):
4319 Moved to main.c.
4320 * exceptions.h (catch_command_errors_ftype)
4321 (catch_command_errors_const_ftype): Moved to main.c.
4322 (catch_command_errors, catch_command_errors_const): Delete
4323 declarations.
4324 * main.c (catch_command_errors_ftype)
4325 (catch_command_errors_const_ftype): Moved here from exceptions.h.
4326 (catch_command_errors, catch_command_errors_const)): Moved here
4327 from exceptions.c and make static.
4328
feefc97b
PA
43292014-07-14 Pedro Alves <palves@redhat.com>
4330
4331 * exceptions.c (print_any_exception): Delete.
4332 (catch_exceptions_with_msg): Use exception_print instead of
4333 print_any_exception.
4334 (catch_errors): Use exception_fprintf instead of
4335 print_any_exception.
4336 (catch_command_errors, catch_command_errors_const): Use
4337 exception_print instead of print_any_exception.
4338
c933f875
PA
43392014-07-14 Pedro Alves <palves@redhat.com>
4340
4341 * infcall.c (run_inferior_call): Set 'sync_execution' while
4342 running the inferior call.
4343
feb6f816
PA
43442014-07-14 Pedro Alves <palves@redhat.com>
4345
4346 * value.c (value_contents_equal): Delete function.
4347 * value.h (value_contents_equal): Delete declaration.
4348
d98b7a16
TT
43492014-07-14 Tom Tromey <tromey@redhat.com>
4350
4351 PR exp/17106:
4352 * gdbtypes.c (is_dynamic_type_internal): New function, from
4353 is_dynamic_type.
4354 (is_dynamic_type): Rewrite.
4355 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
4356 (resolve_dynamic_struct): Likewise.
4357 (resolve_dynamic_type_internal): New function, from
4358 resolve_dynamic_type.
4359 (resolve_dynamic_type): Rewrite.
4360
548740d6
TT
43612014-07-14 Tom Tromey <tromey@redhat.com>
4362
4363 * target.c (target_require_runnable): Also check record_stratum.
4364 Update comment.
4365
808f7ab1
YQ
43662014-07-11 Yao Qi <yao@codesourcery.com>
4367
4368 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
4369 thumb_instruction_restores_sp return true.
4370
540314bd
YQ
43712014-07-11 Yao Qi <yao@codesourcery.com>
4372
4373 * arm-tdep.c (thumb_instruction_restores_sp): New function.
4374 (thumb_in_function_epilogue_p): Call
4375 thumb_instruction_restores_sp.
4376
1db01f22
YQ
43772014-07-11 Yao Qi <yao@codesourcery.com>
4378
4379 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
4380 'add sp, #imm'.
4381 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
4382
3116063b
GB
43832014-07-11 Gary Benson <gbenson@redhat.com>
4384
4385 * amd64-linux-nat.c (gdbcore.h): Remove include.
4386 (regset.h): Likewise.
4387 (nat/linux-btrace.h): Likewise.
4388 (btrace.h): Likewise.
4389 (gdb_assert.h): Likewise.
4390 (string.h): Likewise.
4391 (sys/uio.h): Likewise.
4392 (sys/debugreg.h): Likewise.
4393 (sys/syscall.h): Likewise.
4394 (sys/procfs.h): Likewise.
4395 (sys/user.h): Likewise.
4396 (asm/ptrace.h): Likewise.
4397 (i386-nat.h): Likewise.
4398 * i386-linux-nat.c (i386-nat.h): Likewise.
4399 (regset.h): Likewise.
4400 (target.h): Likewise.
4401 (linux-nat.h): Likewise.
4402 (nat/linux-btrace.h): Likewise.
4403 (btrace.h): Likewise.
4404 (gdb_assert.h): Likewise.
4405 (string.h): Likewise.
4406 (sys/uio.h): Likewise.
4407 (sys/user.h): Likewise.
4408 (sys/procfs.h): Likewise.
4409 (sys/reg.h): Likewise.
4410 (sys/debugreg.h): Likewise.
4411 (ORIG_EAX): Remove definition.
4412
040baaf6
GB
44132014-07-11 Gary Benson <gbenson@redhat.com>
4414
4415 * i386-linux-nat.h: New file.
4416 * x86-linux-nat.h: Likewise.
4417 * x86-linux-nat.c: Likewise.
4418 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
4419 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
4420 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4421 * amd64-linux-nat.c (x86-linux-nat.h): New include.
4422 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
4423 (PTRACE_SETREGSET): Likewise.
4424 (arch_lwp_info): Now in x86-linux-nat.c.
4425 (have_ptrace_getregset): Now in x86-linux-nat.h.
4426 (x86_linux_dr_get): Now in x86-linux-nat.c.
4427 (x86_linux_dr_set): Likewise.
4428 (x86_linux_dr_get_addr): Likewise.
4429 (x86_linux_dr_get_control): Likewise.
4430 (x86_linux_dr_get_status): Likewise.
4431 (update_debug_registers_callback): Likewise.
4432 (x86_linux_dr_set_control): Likewise.
4433 (x86_linux_dr_set_addr): Likewise.
4434 (x86_linux_prepare_to_resume): Likewise.
4435 (x86_linux_new_thread): Likewise.
4436 (x86_linux_new_fork): Likewise.
4437 (x86_linux_get_thread_area): Likewise.
4438 (super_post_startup_inferior): Likewise.
4439 (x86_linux_child_post_startup_inferior): Likewise.
4440 (AMD64_LINUX_USER64_CS): Likewise.
4441 (AMD64_LINUX_X32_DS): Likewise.
4442 (x86_linux_read_description): Likewise.
4443 (x86_linux_enable_btrace): Likewise.
4444 (x86_linux_disable_btrace): Likewise.
4445 (x86_linux_teardown_btrace): Likewise.
4446 (x86_linux_read_btrace): Likewise.
4447 (x86_linux_create_target): Likewise.
4448 (x86_linux_add_target): Likewise.
4449 * i386-linux-nat.c (x86-linux-nat.h): New include.
4450 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
4451 (PTRACE_SETREGSET): Likewise.
4452 (arch_lwp_info): Now in x86-linux-nat.c.
4453 (have_ptrace_getregset): Now in x86-linux-nat.h.
4454 (x86_linux_dr_get): Now in x86-linux-nat.c.
4455 (x86_linux_dr_set): Likewise.
4456 (x86_linux_dr_get_addr): Likewise.
4457 (x86_linux_dr_get_control): Likewise.
4458 (x86_linux_dr_get_status): Likewise.
4459 (update_debug_registers_callback): Likewise.
4460 (x86_linux_dr_set_control): Likewise.
4461 (x86_linux_dr_set_addr): Likewise.
4462 (x86_linux_prepare_to_resume): Likewise.
4463 (x86_linux_new_thread): Likewise.
4464 (x86_linux_new_fork): Likewise.
4465 (x86_linux_get_thread_area): Likewise.
4466 (super_post_startup_inferior): Likewise.
4467 (x86_linux_child_post_startup_inferior): Likewise.
4468 (AMD64_LINUX_USER64_CS): Likewise.
4469 (AMD64_LINUX_X32_DS): Likewise.
4470 (x86_linux_read_description): Likewise.
4471 (x86_linux_enable_btrace): Likewise.
4472 (x86_linux_disable_btrace): Likewise.
4473 (x86_linux_teardown_btrace): Likewise.
4474 (x86_linux_read_btrace): Likewise.
4475 (x86_linux_create_target): Likewise.
4476 (x86_linux_add_target): Likewise.
4477
1aa7e42c
GB
44782014-07-11 Gary Benson <gbenson@redhat.com>
4479
4480 * amd64-linux-nat.c: Comment and whitespace changes.
4481 * i386-linux-nat.c: Comment and whitespace changes.
4482
c1e246a0
GB
44832014-07-11 Gary Benson <gbenson@redhat.com>
4484
4485 * amd64-linux-nat.c (x86_linux_create_target): New function.
4486 (x86_linux_add_target): Likewise.
4487 (_initialize_amd64_linux_nat): Delegate to the above new functions.
4488 * i386-linux-nat.c (x86_linux_create_target): New function.
4489 (x86_linux_add_target): Likewise.
4490 (_initialize_i386_linux_nat): Delegate to the above new functions.
4491
8c420b8d
GB
44922014-07-11 Gary Benson <gbenson@redhat.com>
4493
4494 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
4495 (ps_get_thread_area): Delegate to the above in 32-bit mode.
4496 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
4497 (ps_get_thread_area): Delegate to the above.
4498
cb1da100
GB
44992014-07-11 Gary Benson <gbenson@redhat.com>
4500
4501 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
4502 x86_linux_read_description. All uses updated. amd64-specific
4503 code conditionalized. Conditionalized i386-specific code added.
4504 Redundant cast removed.
4505 * i386-linux-nat.c (i386_linux_read_description): Renamed to
4506 x86_linux_read_description. All uses updated. i386-specific
4507 code conditionalized. Conditionalized amd64-specific code added.
4508 One sizeof replaced with the actual type it is describing.
4509
2acf3cd0
GB
45102014-07-11 Gary Benson <gbenson@redhat.com>
4511
4512 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
4513 x86_linux_dr_get. All uses updated.
4514 (amd64_linux_dr_set): Renamed to
4515 x86_linux_dr_set. All uses updated.
4516 (amd64_linux_dr_get_addr): Renamed to
4517 x86_linux_dr_get_addr. All uses updated.
4518 (amd64_linux_dr_get_control): Renamed to
4519 x86_linux_dr_get_control. All uses updated.
4520 (amd64_linux_dr_get_status): Renamed to
4521 x86_linux_dr_get_status. All uses updated.
4522 (amd64_linux_dr_set_control): Renamed to
4523 x86_linux_dr_set_control. All uses updated.
4524 (amd64_linux_dr_set_addr): Renamed to
4525 x86_linux_dr_set_addr. All uses updated.
4526 (amd64_linux_prepare_to_resume): Renamed to
4527 x86_linux_prepare_to_resume. All uses updated.
4528 (amd64_linux_new_thread): Renamed to
4529 x86_linux_new_thread. All uses updated.
4530 (amd64_linux_new_fork): Renamed to
4531 x86_linux_new_fork. All uses updated.
4532 (amd64_linux_child_post_startup_inferior): Renamed to
4533 x86_linux_child_post_startup_inferior. All uses updated.
4534 (amd64_linux_enable_btrace): Renamed to
4535 x86_linux_enable_btrace. All uses updated.
4536 (amd64_linux_disable_btrace): Renamed to
4537 x86_linux_disable_btrace. All uses updated.
4538 (amd64_linux_teardown_btrace): Renamed to
4539 x86_linux_teardown_btrace. All uses updated.
4540 (amd64_linux_read_btrace): Renamed to
4541 x86_linux_read_btrace. All uses updated.
4542 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
4543 x86_linux_dr_get. All uses updated.
4544 (i386_linux_dr_set): Renamed to
4545 x86_linux_dr_set. All uses updated.
4546 (i386_linux_dr_get_addr): Renamed to
4547 x86_linux_dr_get_addr. All uses updated.
4548 (i386_linux_dr_get_control): Renamed to
4549 x86_linux_dr_get_control. All uses updated.
4550 (i386_linux_dr_get_status): Renamed to
4551 x86_linux_dr_get_status. All uses updated.
4552 (i386_linux_dr_set_control): Renamed to
4553 x86_linux_dr_set_control. All uses updated.
4554 (i386_linux_dr_set_addr): Renamed to
4555 x86_linux_dr_set_addr. All uses updated.
4556 (i386_linux_prepare_to_resume): Renamed to
4557 x86_linux_prepare_to_resume. All uses updated.
4558 (i386_linux_new_thread): Renamed to
4559 x86_linux_new_thread. All uses updated.
4560 (i386_linux_new_fork): Renamed to
4561 x86_linux_new_fork. All uses updated.
4562 (i386_linux_child_post_startup_inferior): Renamed to
4563 x86_linux_child_post_startup_inferior. All uses updated.
4564 (i386_linux_enable_btrace): Renamed to
4565 x86_linux_enable_btrace. All uses updated.
4566 (i386_linux_disable_btrace): Renamed to
4567 x86_linux_disable_btrace. All uses updated.
4568 (i386_linux_teardown_btrace): Renamed to
4569 x86_linux_teardown_btrace. All uses updated.
4570 (i386_linux_read_btrace): Renamed to
4571 x86_linux_read_btrace. All uses updated.
4572
b9c1d481
AS
45732014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
4574
4575 * remote.c (extended_remote_post_attach): New function.
4576 (init_extended_remote_ops): Install it as to_post_attach method.
4577
7180e04a
PA
45782014-07-09 Pedro Alves <palves@redhat.com>
4579
4580 * infcmd.c (attach_command_post_wait): Don't call
4581 target_terminal_inferior here.
4582 (attach_command): Call it here instead.
4583
9a9a7608
AB
45842014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4585
4586 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
4587 field.
4588 * c-varobj.c (c_is_path_expr_parent): New function, moved core
4589 from varobj.c, with additional checks.
4590 (c_varobj_ops): Fill in is_path_expr_parent field.
4591 (cplus_varobj_ops): Fill in is_path_expr_parent field.
4592 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
4593 field.
4594 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
4595 ops method.
4596 (varobj_default_is_path_expr_parent): New function.
4597 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
4598 (varobj_default_is_path_expr_parent): Declare new function.
4599
1f267ae3
MM
46002014-07-08 Markus Metzger <markus.t.metzger@intel.com>
4601
4602 * infcmd.c (finish_backward): Turn internal error into normal error.
4603
b2ee242b
PA
46042014-07-07 Pedro Alves <palves@redhat.com>
4605
8a869bca 4606 PR gdb/17096
b2ee242b
PA
4607 * remote.c (async_handle_remote_sigint)
4608 (async_handle_remote_sigint_twice): Call
4609 gdb_call_async_signal_handler instead of
4610 mark_async_signal_handler.
4611
38e229b2
TT
46122014-07-07 Tom Tromey <tromey@redhat.com>
4613
4614 * target-delegates.c: Rebuild.
4615 * target.c (target_info_record): Remove.
4616 * record.c (info_record_command): Unconditionally call
4617 to_info_record.
4618 * target.h (struct target_ops) <to_info_record>: Use
4619 TARGET_DEFAULT_IGNORE.
4620 (target_info_record): Remove.
4621
f0f9ff95
TT
46222014-07-07 Tom Tromey <tromey@redhat.com>
4623
4624 * target.h (struct target_ops) <to_get_thread_local_address>: Use
4625 TARGET_DEFAULT_NORETURN.
4626 * target.c (generic_tls_error): New function.
4627 (target_translate_tls_address): Don't search target stack.
4628 * target-delegates.c: Rebuild.
4629 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
4630 stack.
4631 * linux-thread-db.c (thread_db_get_thread_local_address):
4632 Unconditionally call beneath target.
4633
4a5be5ee
MK
46342014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
4635
4636 * cli/cli-logging.c (pop_output_files): Assign targerr to
4637 gdb_stdtargerr.
4638
92c3b204
AB
46392014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
4640
4641 * MAINTAINERS (Write After Approval): Update my email address.
4642
9b11e3a7
GB
46432014-07-02 Gary Benson <gbenson@redhat.com>
4644
4645 * proc-service.c (ps_xfer_memory): Update comment.
4646 (ps_pstop): Remove unused function.
4647 (ps_pcontinue): Likewise.
4648 (ps_lstop): Likewise.
4649 (ps_lcontinue): Likewise.
4650 (ps_lgetxregsize): Likewise.
4651 (ps_lgetxregs): Likewise.
4652 (ps_lsetxregs): Likewise.
4653 (ps_plog): Likewise.
4654 (ps_ptread): Likewise.
4655 (ps_ptwrite): Likewise.
4656
cf363f18
MW
46572014-07-01 Mark Wielaard <mjw@redhat.com>
4658
4659 * dwarf2read.c (add_array_cv_type): New function.
4660 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
4661 (read_tag_volatile_type): Likewise.
4662
82ae6c8d
TT
46632014-07-01 Tom Tromey <tromey@redhat.com>
4664
4665 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
4666 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
4667 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
4668 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
4669 * command.h (cmd_cfunc_ftype): Move earlier.
4670 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
4671 (add_com, add_info): Use cmd_cfunc_ftype.
4672
96142726
TT
46732014-06-30 Tom Tromey <tromey@redhat.com>
4674
4675 * symtab.c (operator_chars): Make parameters and return type
4676 const.
4677 (file_matches): Make "files" const.
4678 (struct search_symbols_data) <files>: Now const.
4679 (search_symbols): Make "regexp" and "files" parameters const.
4680 Update.
4681 (symtab_symbol_info): Remove cast.
4682 (rbreak_command): Update.
4683 * symtab.h (search_symbols): Update.
4684
b67a2c6f
YQ
46852014-06-27 Yao Qi <yao@codesourcery.com>
4686
4687 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
4688 Change parameter type to 'struct thread_info *'. Caller
4689 updated.
4690 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
4691 Update declaration.
4692 * dummy-frame.c (struct dummy_frame_id): New.
4693 (dummy_frame_id_eq): New function.
4694 (struct dummy_frame) <id>: Change its type to 'struct
4695 dummy_frame_id'.
4696 (dummy_frame_push): Add parameter ptid and save it in
4697 dummy_frame_id.
4698 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
4699 inferior_ptid.
4700 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
4701 to inferior_ptid.
4702 (lookup_dummy_frame): Change parameter type to 'struct
4703 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
4704 instead of frame_id_eq.
4705 (dummy_frame_pop): Add parameter ptid. Callers updated.
4706 Update comments. Compose dummy_frame_id and pass it to
4707 lookup_dummy_frame.
4708 (dummy_frame_discard): Add parameter ptid.
4709 (dummy_frame_sniffer): Compose dummy_frame_id and call
4710 dummy_frame_id_eq instead of frame_id_eq.
4711 (fprint_dummy_frames): Print ptid.
4712 * dummy-frame.h: Remove comments.
4713 (dummy_frame_push): Add ptid in declaration.
4714 (dummy_frame_pop, dummy_frame_discard): Likewise.
4715
5b10184c
TT
47162014-06-26 Tom Tromey <tromey@redhat.com>
4717
4718 * cli/cli-cmds.c (error_no_arg): Make "why" const.
4719 * command.h (error_no_arg): Update.
4720
06900326
TT
47212014-06-26 Tom Tromey <tromey@redhat.com>
4722
4723 * cli/cli-setshow.c (do_set_command): Make "arg" const.
4724 (do_show_command): Make "arg" const.
4725 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
4726
c2bcbb1d
TT
47272014-06-26 Tom Tromey <tromey@redhat.com>
4728
4729 * record-full.c (record_full_get_bookmark): Make "args" const.
4730 (record_full_goto_bookmark): Make "raw_bookmark" const.
4731 * record.c (record_goto): New function.
4732 (cmd_record_goto): Use it. Now static.
4733 * record.h (record_goto): Declare.
4734 (cmd_record_goto): Remove declaration.
4735 * target-delegates.c: Rebuild.
4736 * target.h (struct target_ops) <to_get_bookmark,
4737 to_goto_bookmark>: Make parameter const.
4738
9cbe5fff
TT
47392014-06-26 Tom Tromey <tromey@redhat.com>
4740
4741 * defs.h (generic_load): Update.
4742 * m32r-rom.c (m32r_load_gen): Make "filename" const.
4743 * monitor.c (monitor_load): Make "args" const.
4744 * remote-m32r-sdi.c (m32r_load): Make "args" const.
4745 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
4746 const.
4747 (mips_load): Make "file" const.
4748 * remote-sim.c (gdbsim_load): Make "args" const.
4749 * remote.c (remote_load): Make "name" const.
4750 * symfile.c (generic_load): Make "args" const.
4751 * target-delegates.c: Rebuild.
4752 * target.c (target_load): Make "arg" const.
4753 (debug_to_load): Make "args" const.
4754 * target.h (struct target_ops) <to_load>: Make parameter const.
4755 (target_load): Update.
4756
34a68019
TT
47572014-06-26 Tom Tromey <tromey@redhat.com>
4758
4759 PR symtab/16902:
4760 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
4761 (dwarf2_physname, read_partial_die)
4762 (guess_partial_die_structure_name, fixup_partial_die)
4763 (guess_full_die_structure_name, anonymous_struct_prefix)
4764 (dwarf2_name): Use per-BFD obstack.
4765
efc889c1
YQ
47662014-06-26 Yao Qi <yao@codesourcery.com>
4767
4768 * dummy-frame.c (dummy_frame_sniffer): Move local variables
4769 dummyframe and this_id into inner block below.
4770
4395285e
YQ
47712014-06-26 Yao Qi <yao@codesourcery.com>
4772
4773 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
4774 with "signal_pass[0]" in the initialization of signal_pass.
4775
aef92902
MM
47762014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4777
4778 * record-btrace.c (record_btrace_generating_corefile)
4779 (record_btrace_prepare_to_generate_core)
4780 (record_btrace_done_generating_core): New.
4781 (record_btrace_xfer_partial, record_btrace_fetch_registers)
4782 (record_btrace_store_registers, record_btrace_prepare_to_store):
4783 Forward request when generating a core file.
4784 (record_btrace_open): Set record_btrace_generating_corefile to zero.
4785 (init_record_btrace_ops): Set to_prepare_to_generate_core and
4786 to_done_generating_core.
4787
5fff78c4
MM
47882014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4789
4790 * target.h (target_ops) <to_prepare_to_generate_core>
4791 <to_done_generating_core>: New.
4792 (target_prepare_to_generate_core, target_done_generating_core): New.
4793 * target.c (target_prepare_to_generate_core)
4794 (target_done_generating_core): New.
4795 * target-delegates.c: Regenerate.
4796 * gcore.c: (write_gcore_file): Rename to ...
4797 (write_gcore_file_1): ...this.
4798 (write_gcore_file): Call target_prepare_to_generate_core
4799 and target_done_generating_core.
4800
1d1f1ccb
MM
48012014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4802
4803 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
4804 * gcore.c (write_gcore_file): Free memory returned from
4805 make_corefile_notes.
4806 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
4807 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
4808
3343ef86
YQ
48092014-06-24 Yao Qi <yao@codesourcery.com>
4810
4811 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
4812 (arm_linux_init_abi): Set skip_trampoline_code with
4813 gdbarch_skip_trampoline_code instead of
4814 find_solib_trampoline_target.
4815
18d18ac8
YQ
48162014-06-24 Yao Qi <yao@codesourcery.com>
4817
4818 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
4819 arm_skip_bx_reg returns non-zero.
4820
80d8d390
YQ
48212014-06-24 Yao Qi <yao@codesourcery.com>
4822
4823 * arm-tdep.c (arm_skip_bx_reg): New function.
4824 (arm_skip_stub): Call arm_skip_bx_reg.
4825
6a18a01c
DB
48262014-06-23 Don Breazeal <donb@codesourcery.com>
4827
4828 * MAINTAINERS: Add myself as write-after-approval maintainer.
4829
8e9db26e
PA
48302014-06-23 Pedro Alves <palves@redhat.com>
4831
4832 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
4833 DR_CONTROL before setting DR0..DR3.
4834 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
4835 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
4836 bits of DR_CONTROL related to the debug register slot being
4837 disabled. If all slots are vacant, clear local slowdown as well,
4838 and assert DR_CONTROL is 0.
4839
70afc5b7
SC
48402014-06-23 Siva Chandra Reddy <sivachandra@google.com>
4841
4842 * python/lib/gdb/command/xmethods.py
4843 (get_method_matchers_in_loci): Lookup xmethod matchers in the
4844 current progspace only if the string "progspace" matches LOCUS_RE.
4845
840ed64d
JK
48462014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4847
4848 Fix --with-system-readline with readline-6.3 patch 5.
4849 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
4850 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
4851 types.
4852
26f2dc30
TT
48532014-06-20 Tom Tromey <tromey@redhat.com>
4854
4855 * dwarf2read.c (dw2_get_real_path): Use correct type in
4856 OBSTACK_CALLOC.
4857 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
4858
125f8a3d
GB
48592014-06-20 Gary Benson <gbenson@redhat.com>
4860
4861 * common/gdb_thread_db.h: Moved to nat. All includes updated.
4862 * common/glibc_thread_db.h: Likewise.
4863 * common/i386-cpuid.h: Likewise.
4864 * common/i386-gcc-cpuid.h: Likewise.
4865 * common/linux-btrace.h: Likewise.
4866 * common/linux-osdata.h: Likewise.
4867 * common/linux-procfs.h: Likewise.
4868 * common/linux-ptrace.h: Likewise.
4869 * common/mips-linux-watch.h: Likewise.
4870 * common/linux-btrace.c: Moved to nat.
4871 * common/linux-osdata.c: Likewise.
4872 * common/linux-procfs.c: Likewise.
4873 * common/linux-ptrace.c: Likewise.
4874 * common/mips-linux-watch.c: Likewise.
4875 * nat/gdb_thread_db.h: Moved from common.
4876 * nat/glibc_thread_db.h: Likewise.
4877 * nat/i386-cpuid.h: Likewise.
4878 * nat/i386-gcc-cpuid.h: Likewise.
4879 * nat/linux-btrace.c: Likewise.
4880 * nat/linux-btrace.h: Likewise.
4881 * nat/linux-osdata.c: Likewise.
4882 * nat/linux-osdata.h: Likewise.
4883 * nat/linux-procfs.c: Likewise.
4884 * nat/linux-procfs.h: Likewise.
4885 * nat/linux-ptrace.c: Likewise.
4886 * nat/linux-ptrace.h: Likewise.
4887 * nat/mips-linux-watch.c: Likewise.
4888 * nat/mips-linux-watch.h: Likewise.
4889 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
4890 (object file files): Reordered.
4891 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
4892 of glibc_thread_db.h.
4893
42995dbd
GB
48942014-06-20 Gary Benson <gbenson@redhat.com>
4895
4896 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
4897 (i386_dr_low_type): Moved to nat/i386-dregs.h.
4898 (i386_dr_low): Likewise.
4899 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
4900 (i386_dr_low_set_addr): Likewise.
4901 (i386_dr_low_get_addr): Likewise.
4902 (i386_dr_low_can_set_control): Likewise.
4903 (i386_dr_low_set_control): Likewise.
4904 (i386_dr_low_get_control): Likewise.
4905 (i386_dr_low_get_status): Likewise.
4906 (i386_get_debug_register_length): Likewise.
4907 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
4908 (i386_dr_low): Likewise.
4909 * nat/i386-dregs.c (i386-low.h): Remove include.
4910 (i386-nat.h): Likewise.
4911 (nat/i386-dregs.h): New include.
4912 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
4913 (i386_dr_low_set_addr): Likewise.
4914 (i386_dr_low_get_addr): Likewise.
4915 (i386_dr_low_can_set_control): Likewise.
4916 (i386_dr_low_set_control): Likewise.
4917 (i386_dr_low_get_control): Likewise.
4918 (i386_dr_low_get_status): Likewise.
4919 (i386_get_debug_register_length): Likewise.
4920 (debug_hw_points): Likewise.
4921
3ed9baed
IB
49222014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
4923
4924 * Makefile.in (SFILES): Add d-exp.y.
4925 (YYFILES): Add d-exp.c.
4926 (YYOBJ): Add d-exp.o.
4927 (local-maintainer-clean): Delete d-exp.c.
4928 * d-exp.y: New file.
4929 * d-lang.h (d_parse): New declaration.
4930 (d_error): New declaration.
4931 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
4932 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
4933 PREC_ORDER operators.
4934 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
4935
78c164b0
YQ
49362014-06-19 Yao Qi <yao@codesourcery.com>
4937
4938 * gdbthread.h (any_running): Remove the declaration.
4939 * thread.c (any_running): Remove.
4940
f6e29b6e
YQ
49412014-06-19 Yao Qi <yao@codesourcery.com>
4942
4943 * gdbthread.h (struct thread_info) <state>: Change its type to
4944 'enum thread_state'. Update comments.
4945
034f788c
PA
49462014-06-19 Pedro Alves <palves@redhat.com>
4947
4948 * gdbthread.h (ALL_THREADS): Delete.
4949 (ALL_NON_EXITED_THREADS): New macro.
4950 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
4951 instead of ALL_THREADS.
4952 * infrun.c (find_thread_needs_step_over)
4953 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
4954 instead of ALL_THREADS.
4955 * record-btrace.c (record_btrace_open)
4956 (record_btrace_stop_recording, record_btrace_close)
4957 (record_btrace_is_replaying, record_btrace_resume)
4958 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
4959 * remote.c (append_pending_thread_resumptions): Likewise.
4960 * thread.c (thread_apply_all_command): Likewise.
4961
46e33252
GB
49622014-06-19 Gary Benson <gbenson@redhat.com>
4963
4964 * i386-nat.c (i386_stopped_by_watchpoint):
4965 Use i386_dr_stopped_by_watchpoint.
4966 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
4967 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
4968
3a8ee006
GB
49692014-06-19 Gary Benson <gbenson@redhat.com>
4970
4971 * nat/i386-dregs.c: New file.
4972 * Makefile.in (i386-dregs.o): New rule.
4973 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
4974 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
4975 * config/i386/darwin.mh (NATDEPFILES): Likewise.
4976 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
4977 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
4978 * config/i386/go32.mh (NATDEPFILES): Likewise.
4979 * config/i386/linux.mh (NATDEPFILES): Likewise.
4980 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4981 * config/i386/mingw.mh (NATDEPFILES): Likewise.
4982 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
4983 * i386-nat.h (debug_hw_points): New declaration.
4984 * i386-nat.c (breakpoint.h): Remove include.
4985 (command.h): Likewise.
4986 (target.h): Likewise.
4987 (gdb_assert.h): Likewise.
4988 (debug_hw_points): Made nonstatic.
4989 (debug_printf): Now in i386-dregs.c.
4990 (TARGET_HAS_DR_LEN_8): Likewise.
4991 (DR_CONTROL_SHIFT): Likewise.
4992 (DR_CONTROL_SIZE): Likewise.
4993 (DR_RW_EXECUTE): Likewise.
4994 (DR_RW_WRITE): Likewise.
4995 (DR_RW_READ): Likewise.
4996 (DR_RW_IORW): Likewise.
4997 (DR_LEN_1): Likewise.
4998 (DR_LEN_2): Likewise.
4999 (DR_LEN_4): Likewise.
5000 (DR_LEN_8): Likewise.
5001 (DR_LOCAL_ENABLE_SHIFT): Likewise.
5002 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
5003 (DR_ENABLE_SIZE): Likewise.
5004 (DR_LOCAL_SLOWDOWN): Likewise.
5005 (DR_GLOBAL_SLOWDOWN): Likewise.
5006 (DR_CONTROL_RESERVED): Likewise.
5007 (I386_DR_CONTROL_MASK): Likewise.
5008 (I386_DR_VACANT): Likewise.
5009 (I386_DR_LOCAL_ENABLE): Likewise.
5010 (I386_DR_GLOBAL_ENABLE): Likewise.
5011 (I386_DR_DISABLE): Likewise.
5012 (I386_DR_SET_RW_LEN): Likewise.
5013 (I386_DR_GET_RW_LEN): Likewise.
5014 (I386_DR_WATCH_HIT): Likewise.
5015 (i386_wp_op_t): Likewise.
5016 (i386_show_dr): Likewise.
5017 (i386_length_and_rw_bits): Likewise.
5018 (i386_insert_aligned_watchpoint): Likewise.
5019 (i386_remove_aligned_watchpoint): Likewise.
5020 (i386_handle_nonaligned_watchpoint): Likewise.
5021 (i386_update_inferior_debug_regs): Likewise.
5022 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
5023 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
5024 (i386_region_ok_for_watchpoint):
5025 Use i386_dr_region_ok_for_watchpoint.
5026 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
5027
322a8e06
GB
50282014-06-19 Gary Benson <gbenson@redhat.com>
5029
5030 * i386-nat.c (i386_insert_hw_breakpoint): Use
5031 i386_insert_watchpoint.
5032 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
5033
8f26655c
GB
50342014-06-19 Gary Benson <gbenson@redhat.com>
5035
5036 * i386-nat.c (i386_dr_show): Renamed to
5037 i386_show_dr and made static. All uses updated.
5038 (i386_dr_length_and_rw_bits): Renamed to
5039 i386_length_and_rw_bits and made static.
5040 All uses updated.
5041 (i386_dr_insert_aligned_watchpoint): Renamed to
5042 i386_insert_aligned_watchpoint and made static.
5043 All uses updated.
5044 (i386_dr_remove_aligned_watchpoint): Renamed to
5045 i386_remove_aligned_watchpoint and made static.
5046 All uses updated.
5047 (i386_dr_update_inferior_debug_regs): Renamed to
5048 i386_update_inferior_debug_regs and made static.
5049 All uses updated.
5050 * nat/i386-dregs.h (i386_dr_show): Removed.
5051 (i386_dr_length_and_rw_bits): Likewise.
5052 (i386_dr_insert_aligned_watchpoint): Likewise.
5053 (i386_dr_remove_aligned_watchpoint): Likewise.
5054 (i386_dr_update_inferior_debug_regs): Likewise.
5055
992c7d70
GB
50562014-06-19 Gary Benson <gbenson@redhat.com>
5057
5058 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
5059 * configure: Regenerate.
5060 * config.in: Likewise.
5061 * main.c (signal.h): New include.
5062 (setup_alternate_signal_stack): New function.
5063 (captured_main): Call the above.
5064 * cp-support.c (signal.h): New include.
5065 (catch_demangler_crashes): New flag.
5066 (SIGJMP_BUF): New define.
5067 (SIGSETJMP): Likewise.
5068 (SIGLONGJMP): Likewise.
5069 (gdb_demangle_jmp_buf): New static global.
5070 (gdb_demangle_attempt_core_dump): Likewise.
5071 (gdb_demangle_signal_handler): New function.
5072 (gdb_demangle): If catch_demangler_crashes is set, install the
5073 above signal handler before calling bfd_demangle, and restore
5074 the original signal handler afterwards. Display the offending
5075 symbol and call demangler_warning the first time a segmentation
5076 fault is caught.
5077 (_initialize_cp_support): New maint set/show command.
5078
eae7090b
GB
50792014-06-19 Gary Benson <gbenson@redhat.com>
5080
5081 * utils.h (resource_limit_kind): New enum.
5082 (can_dump_core): New declaration.
5083 (warn_cant_dump_core): Likewise.
5084 (dump_core): Likewise.
5085 * utils.c (dump_core): Made nonstatic. Added new
5086 parameter "limit_kind".
5087 (can_dump_core): Made nonstatic. Moved printing code to...
5088 (warn_cant_dump_core): New function.
5089 (can_dump_core_warn): Likewise.
5090 (internal_vproblem): Replace calls to can_dump_core with
5091 calls to can_dump_core_warn. Supply new argument to each.
5092
57fcfb1b
GB
50932014-06-19 Gary Benson <gbenson@redhat.com>
5094
5095 * utils.h (demangler_vwarning): New declaration.
5096 (demangler_warning): Likewise.
5097 * utils.c (struct internal_problem)
5098 <user_settable_should_quit>: New field.
5099 <user_settable_should_dump_core>: Likewise
5100 (internal_error_problem): Add values for above new fields.
5101 (internal_warning_problem): Likewise.
5102 (demangler_warning_problem): New static global.
5103 (demangler_vwarning): New function.
5104 (demangler_warning): Likewise.
5105 (add_internal_problem_command): Selectively add commands.
5106 (_initialize_utils): New internal problem command.
5107 * maint.c (maintenance_demangler_warning): New function.
5108 (_initialize_maint_cmds): New command.
5109
17a40b44
TT
51102014-06-18 Tom Tromey <tromey@redhat.com>
5111
5112 * f-valprint.c (info_common_command_for_block): Update.
5113 * symtab.h (struct general_symbol_info) <common_block>: Now
5114 const.
5115
346d1dfe
TT
51162014-06-18 Tom Tromey <tromey@redhat.com>
5117
5118 * symtab.h (struct symtab) <blockvector>: Now const.
5119 * ada-lang.c (ada_add_global_exceptions): Update.
5120 * buildsym.c (augment_type_symtab): Update.
5121 * dwarf2read.c (dw2_lookup_symbol): Update.
5122 * jit.c (finalize_symtab): Update.
5123 * jv-lang.c (add_class_symtab_symbol): Update.
5124 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
5125 Update.
5126 * objfiles.c (objfile_relocate1): Update.
5127 * psymtab.c (lookup_symbol_aux_psymtabs)
5128 (maintenance_check_psymtabs): Update.
5129 * python/py-symtab.c (stpy_global_block, stpy_static_block):
5130 Update.
5131 * spu-tdep.c (spu_catch_start): Update.
5132 * symmisc.c (dump_symtab_1): Update.
5133 * symtab.c (lookup_global_symbol_from_objfile)
5134 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
5135 (basic_lookup_transparent_type_quick)
5136 (basic_lookup_transparent_type, find_pc_sect_symtab)
5137 (find_pc_sect_line, search_symbols): Update.
5138 * block.c (find_block_in_blockvector): Make "bl" const.
5139 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
5140 const.
5141 (blockvector_contains_pc): Make "bv" const.
5142 (block_for_pc_sect): Update.
5143 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
5144 (blockvector_contains_pc): Update.
5145 * breakpoint.c (resolve_sal_pc): Update.
5146 * inline-frame.c (block_starting_point_at): Update.
5147
1834676b
TT
51482014-06-18 Tom Tromey <tromey@redhat.com>
5149
5150 * completer.c (complete_line): Make "line_buffer" const.
5151 * completer.h (complete_line): Update.
5152
ac1a991b
TT
51532014-06-18 Tom Tromey <tromey@redhat.com>
5154
5155 * symtab.c (add_macro_name): Remove unneeded cast.
5156
5bc98e52
TT
51572014-06-18 Tom Tromey <tromey@redhat.com>
5158
5159 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
5160 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
5161
8236def8
TT
51622014-06-18 Tom Tromey <tromey@redhat.com>
5163
5164 * probe.c (info_probes_for_ops): Make "arg" const.
5165 * probe.h (info_probes_for_ops): Update.
5166
3977b71f
TT
51672014-06-18 Tom Tromey <tromey@redhat.com>
5168
5169 * varobj.c (varobj_create): Update.
5170 * valops.c (value_of_this): Update.
5171 * tracepoint.c (add_local_symbols, scope_info): Update.
5172 * symtab.h (struct general_symbol_info) <block>: Now const.
5173 * symtab.c (skip_prologue_sal)
5174 (default_make_symbol_completion_list_break_on)
5175 (skip_prologue_using_sal): Update.
5176 * stack.h (iterate_over_block_locals)
5177 (iterate_over_block_local_vars): Update.
5178 * stack.c (print_frame_args): Update.
5179 (iterate_over_block_locals, iterate_over_block_local_vars): Make
5180 parameter const.
5181 (get_selected_block): Make return type const.
5182 * python/py-frame.c (frapy_block): Update.
5183 * python/py-block.c (gdbpy_block_for_pc): Update.
5184 * p-exp.y (%union) <bval>: Now const.
5185 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
5186 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
5187 * m2-exp.y (%union) <bval>: Now const.
5188 * linespec.c (get_current_search_block): Make return type const.
5189 (create_sals_line_offset, find_label_symbols): Update.
5190 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
5191 Update.
5192 (block_starting_point_at): Make "block" const.
5193 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
5194 (check_exception_resume): Update.
5195 * guile/scm-frame.c (gdbscm_frame_block): Update.
5196 * guile/scm-block.c (gdbscm_lookup_block): Update.
5197 * frame.h (get_frame_block): Update.
5198 (get_selected_block): Make return type const.
5199 * frame.c (frame_id_inner): Update.
5200 * f-valprint.c (info_common_command_for_block)
5201 (info_common_command): Update.
5202 * dwarf2loc.c (dwarf2_find_location_expression)
5203 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
5204 (locexpr_describe_location_piece): Update.
5205 * c-exp.y (%union) <bval>: Now const.
5206 * breakpoint.c (resolve_sal_pc): Update.
5207 * blockframe.c (get_frame_block):Make return type const.
5208 (get_pc_function_start, get_frame_function, find_pc_sect_function)
5209 (block_innermost_frame): Update.
5210 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
5211 (block_for_pc, block_for_pc_sect): Update.
5212 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
5213 'pblock' const.
5214 (block_for_pc_sect, block_for_pc): Make return type const.
5215 * ax-gdb.c (gen_expr): Update.
5216 * alpha-mdebug-tdep.c (find_proc_desc): Update.
5217 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
5218 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
5219 (ada_read_var_value): Update.
5220 * ada-exp.y (struct name_info) <block>: Now const.
5221 (%union): Likewise.
5222 (block_lookup): Constify.
5223
b9228891
GB
52242014-06-18 Gary Benson <gbenson@redhat.com>
5225
5226 * nat/i386-dregs.h: New file.
5227 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
5228 * i386-nat.h (i386-dregs.h): New include.
5229 (DR_FIRSTADDR): Now in i386-dregs.h.
5230 (DR_LASTADDR): Likewise.
5231 (DR_NADDR): Likewise.
5232 (DR_STATUS): Likewise.
5233 (DR_CONTROL): Likewise.
5234 (i386_debug_reg_state): Likewise.
5235 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
5236
a1aa2221
LM
52372014-06-18 Don Breazeal <donb@codesourcery.com>
5238
5239 * breakpoint.c (set_longjmp_breakpoint): Call
5240 momentary_breakpoint_from_master with additional argument.
5241 (set_longjmp_breakpoint_for_call_dummy): Call
5242 momentary_breakpoint_from_master with additional argument.
5243 (set_std_terminate_breakpoint): Call
5244 momentary_breakpoint_from_master with additional argument.
5245 (momentary_breakpoint_from_master): Add argument to function
5246 definition and use it to initialize structure member flag.
74228e77 5247 (clone_momentary_breakpoint): Call
a1aa2221
LM
5248 momentary_breakpoint_from_master with additional argument.
5249 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
5250 member flags set in momentary_breakpoint_from_master.
5251
4be83cc2
GB
52522014-06-18 Gary Benson <gbenson@redhat.com>
5253
5254 * i386-nat.c (i386_show_dr): Renamed to
5255 i386_dr_show and made nonstatic. All uses updated.
5256 (i386_length_and_rw_bits): Renamed to
5257 i386_dr_length_and_rw_bits and made nonstatic.
5258 All uses updated.
5259 (i386_insert_aligned_watchpoint): Renamed to
5260 i386_dr_insert_aligned_watchpoint and made nonstatic.
5261 All uses updated.
5262 (i386_remove_aligned_watchpoint): Renamed to
5263 i386_dr_remove_aligned_watchpoint and made nonstatic.
5264 All uses updated.
5265 (i386_update_inferior_debug_regs): Renamed to
5266 i386_dr_update_inferior_debug_regs and made nonstatic.
5267 All uses updated.
5268
131aa0d4
GB
52692014-06-18 Gary Benson <gbenson@redhat.com>
5270
5271 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
5272 (i386_dr_low_can_set_control): Likewise.
5273 (i386_dr_low_set_addr): Likewise.
5274 (i386_dr_low_set_control): Likewise.
5275 (i386_dr_low_get_addr): Likewise.
5276 (i386_dr_low_get_status): Likewise.
5277 (i386_dr_low_get_control): Likewise.
5278 (i386_insert_aligned_watchpoint): Use new macros.
5279 (i386_update_inferior_debug_regs): Likewise.
5280 (i386_stopped_data_address): Likewise.
5281
d9305f7f
GB
52822014-06-18 Gary Benson <gbenson@redhat.com>
5283
5284 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
5285 New parameter. All uses updated.
5286
ea008da4
GB
52872014-06-18 Gary Benson <gbenson@redhat.com>
5288
5289 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
5290 All uses updated.
5291
1b6d4134
GB
52922014-06-18 Gary Benson <gbenson@redhat.com>
5293
5294 * i386-nat.c (debug_printf): New macro.
5295 (i386_get_debug_register_length): Likewise.
5296 (TARGET_HAS_DR_LEN_8): Use above macro.
5297 (i386_show_dr): Use debug_printf instead of puts_unfiltered
5298 and printf_unfiltered. Use phex to format values.
5299
9b4550ef
GB
53002014-06-18 Gary Benson <gbenson@redhat.com>
5301
5302 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
5303 Make const.
5304
6e62758f
GB
53052014-06-18 Gary Benson <gbenson@redhat.com>
5306
5307 * i386-nat.c: Comment changes.
5308
51c79e94
GB
53092014-06-18 Gary Benson <gbenson@redhat.com>
5310
5311 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
5312
3e11889a
GB
53132014-06-18 Gary Benson <gbenson@redhat.com>
5314
5315 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
5316 (i386_insert_aligned_watchpoint): Likewise.
5317 (i386_remove_aligned_watchpoint): Likewise.
5318 (i386_handle_nonaligned_watchpoint): Likewise.
5319
fc6e2f03
GB
53202014-06-18 Gary Benson <gbenson@redhat.com>
5321
5322 * i386-nat.c: Whitespace changes.
5323
2afe7d50
SB
53242014-06-17 Samuel Bronson <naesten@gmail.com>
5325
5326 * MAINTAINERS: Update Roland McGrath's email address.
5327 Thanks to Sergio Durigan Junior for pointing out that he left
6a83deea 5328 Red Hat a while ago, and giving me a current address.
2afe7d50 5329
3bca49ee
TT
53302014-06-17 Tom Tromey <tromey@redhat.com>
5331
5332 * utils.h (savestring): Remove declaration.
5333
6e366df1
TT
53342014-06-17 Tom Tromey <tromey@redhat.com>
5335
5336 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
5337
6be47f0c
KS
53382014-06-16 Keith Seitz <keiths@redhat.com>
5339
5340 PR mi/15863
5341 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
5342 to update the varobj if inferior_ptid is null_ptid.
5343
7bc112c1
TT
53442014-06-16 Tom Tromey <tromey@redhat.com>
5345
5346 * target.h (struct target_ops) <to_info_proc>: Make parameter
5347 const.
5348 (target_info_proc): Update.
5349 * target.c (target_info_proc): Make "args" const.
5350 * procfs.c (procfs_info_proc): Update.
5351 * linux-tdep.c (linux_info_proc): Update.
5352 (linux_core_info_proc_mappings): Make "args" const.
5353 (linux_core_info_proc): Update.
5354 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
5355 * gdbarch.c: Rebuild.
5356 * gdbarch.h: Rebuild.
5357 * corelow.c (core_info_proc): Update.
5358
fee354ee
TT
53592014-06-16 Tom Tromey <tromey@redhat.com>
5360
5361 * target.h (struct target_ops) <to_disconnect>: Make parameter
5362 const.
5363 (target_disconnect): Update.
5364 * target.c (target_disconnect): Make "args" const.
5365 * target-delegates.c: Rebuild.
5366 * remote.c (remote_disconnect): Update.
5367 * record.h (record_disconnect): Update.
5368 * record.c (record_disconnect): Update.
5369 * inf-child.c (inf_child_disconnect): Update.
5370
a30bf1f1
TT
53712014-06-16 Tom Tromey <tromey@redhat.com>
5372
5373 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
5374 * target.c (debug_to_rcmd, default_rcmd): Update.
5375 * target-delegates.c: Rebuild.
5376 * remote.c (remote_rcmd): Update.
5377 * monitor.c (monitor_rcmd): Update.
5378
d03de421
PA
53792014-06-16 Pedro Alves <palves@redhat.com>
5380
5381 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
5382 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
5383 have OBJF_SHARED set.
5384 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
5385 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
5386 instead of OBJF_USERLOADED.
5387 * objfiles.h (OBJF_SHARED): Update comment.
5388 (userloaded_objfile_contains_address_p): Rename to ...
5389 (shared_objfile_contains_address_p): ... this, and update
5390 comments.
5391 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
5392 new objfile.
5393 (remove_symbol_file_command): Skip objfiles that don't have
5394 OBJF_SHARED set.
5395
99f4262f
TT
53962014-06-16 Tom Tromey <tromey@redhat.com>
5397
5398 * minsyms.h (prim_record_minimal_symbol)
5399 (prim_record_minimal_symbol_and_info): Update comments.
5400
97d66cc6
EZ
54012014-06-14 Eli Zaretskii <eliz@gnu.org>
5402
5403 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
5404 or --without-guile, according to how GDB was built.
5405
635c7e8a
TT
54062014-06-13 Tom Tromey <tromey@redhat.com>
5407
5408 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
5409 to help_list.
5410 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
5411 to help_list.
5412 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
5413 help_list.
5414 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
5415 help_list.Pass all_commands, not -1, to help_list.
5416 * cli/cli-dump.c (dump_command, append_command)
5417 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
5418 (binary_dump_command, binary_append_command): Pass all_commands,
5419 not -1, to help_list.
5420 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
5421 -1, to help_list.
5422 * valprint.c (set_print, set_print_raw): Pass all_commands, not
5423 -1, to help_list.
5424 * typeprint.c (set_print_type): Pass all_commands, not -1, to
5425 help_list.
5426 * top.c (set_history): Pass all_commands, not -1, to help_list.
5427 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
5428 all_commands, not -1, to help_list.
5429 * symfile.c (overlay_command): Pass all_commands, not -1, to
5430 help_list.
5431 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
5432 help_list.
5433 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
5434 help_list.
5435 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
5436 -1, to help_list.
5437 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
5438 not -1, to help_list.
5439 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
5440 not -1, to help_list.
5441 * maint.c (maintenance_command, maintenance_info_command)
5442 (maintenance_print_command, maintenance_set_cmd): Pass
5443 all_commands, not -1, to help_list.
5444 * macrocmd.c (macro_command): Pass all_commands, not -1, to
5445 help_list.
5446 * language.c (set_check): Pass all_commands, not -1, to help_list.
5447 * infcmd.c (unset_command): Pass all_commands, not -1, to
5448 help_list.
5449 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
5450 help_list.
5451 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
5452 help_list.
5453 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
5454 help_list.
5455 * breakpoint.c (save_command): Pass all_commands, not -1, to
5456 help_list.
5457 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
5458 all_commands, not -1, to help_list.
5459
b94ade42
PL
54602014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
5461
5462 * regcache.c (struct register_to_invalidate): New structure.
5463 (do_register_invalidate, make_cleanup_regcache_invalidate): New
5464 functions.
5465 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
5466
31f628ae
YQ
54672014-06-12 Yao Qi <yao@codesourcery.com>
5468
5469 * varobj.c (varobj_get_num_children): Call
5470 varobj_is_dynamic_p.
5471 (varobj_list_children): Likewise.
5472 (varobj_update): Likewise. Update comments.
5473
cde5ef40
YQ
54742014-06-12 Yao Qi <yao@codesourcery.com>
5475
5476 * varobj.c (varobj_pretty_printed_p): Rename to ...
5477 (varobj_is_dynamic_p): ... this. New function.
5478 * varobj.h (varobj_pretty_printed_p): Remove declaration.
5479 (varobj_is_dynamic_p): Declare.
5480 * mi/mi-cmd-var.c (print_varobj): All callers updated.
5481 (mi_print_value_p, varobj_update_one): Likewise.
5482
576ea091
YQ
54832014-06-12 Pedro Alves <pedro@codesourcery.com>
5484 Yao Qi <yao@codesourcery.com>
5485
5486 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
5487 (varobj_get_iterator): Wrap up code for pretty-printer by
5488 "#if HAVE_PYTHON" and "#endif".
5489 (update_dynamic_varobj_children): Likewise.
5490
827f100c
YQ
54912014-06-12 Pedro Alves <pedro@codesourcery.com>
5492 Yao Qi <yao@codesourcery.com>
5493
5494 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
5495 gdb_python_initialized is false. Move some code from varobj.c.
5496 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
5497 * varobj.c: Move "varobj-iter.h" inclusion earlier.
5498 (struct varobj_item): Moved to varobj-iter.h".
5499 (varobj_clear_saved_item): New function.
5500 (update_dynamic_varobj_children): Move python-related code to
5501 py-varobj.c.
5502 (free_variable): Call varobj_clear_saved_item and
5503 varobj_iter_delete.
5504
e5250216
YQ
55052014-06-12 Pedro Alves <pedro@codesourcery.com>
5506 Yao Qi <yao@codesourcery.com>
5507
5508 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
5509 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
5510 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
5511 (py-varobj.o): New rule.
5512 * python/py-varobj.c: New file.
5513 * python/python-internal.h (py_varobj_get_iterator): Declare.
5514 * varobj-iter.h: New file.
5515 * varobj.c: Include "varobj-iter.h"
5516 (struct varobj) <child_iter>: Change its type from "PyObject *"
5517 to "struct varobj_iter *".
5518 <saved_item>: Likewise.
5519 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
5520 [HAVE_PYTHON] (varobj_get_iterator): New function.
5521 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
5522 python-specific code to python/py-varobj.c.
5523 (install_visualizer): Call varobj_iter_delete instead of
5524 Py_XDECREF.
5525 * varobj.h (varobj_ensure_python_env): Declare.
5526
5a2e0d6e
YQ
55272014-06-12 Yao Qi <yao@codesourcery.com>
5528
5529 * varobj.c (struct varobj_item): New structure.
5530 (create_child_with_value): Update declaration.
5531 (varobj_add_child): Replace arguments 'name' and 'value' with
5532 'item'. All callers updated.
5533 (install_dynamic_child): Likewise.
5534 (update_dynamic_varobj_children): Likewise.
5535 (varobj_add_child): Likewise.
5536 (create_child_with_value): Likewise.
5537
919b9a93
JB
55382014-06-11 Joel Brobecker <brobecker@adacore.com>
5539
5540 * NEWS: Create a new section for the next release branch.
5541 Rename the section of the current branch, now that it has
5542 been cut.
5543
71a55bdf
JB
55442014-06-11 Joel Brobecker <brobecker@adacore.com>
5545
5546 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
5547 * version.in: Bump version to 7.8.50.DATE-cvs.
5548
364fe1f7
PA
55492014-06-11 Pedro Alves <palves@redhat.com>
5550
5551 PR remote/17028
5552 * ser-mingw.c (net_windows_socket_check_pending): New function.
5553 (net_windows_select_thread): Ignore spurious wakeups. Use
5554 net_windows_socket_check_pending.
5555 (net_windows_wait_handle): Check for pending events with
5556 ioctlsocket, through net_windows_socket_check_pending, instead of
5557 checking the socket's event.
5558
5a6c7709
SC
55592014-06-10 Siva Chandra Reddy <sivachandra@google.com>
5560
5561 * python/python-internal.h (gdb_PyObject_GetAttrString)
5562 (gdb_PyObject_HasAttrString): New inline function definitions.
5563 * py-value.c (get_field_flag): Remove the now unnecessary cast to
5564 char * of the second argument to PyObject_GetAttrString.
74228e77 5565
0e58ee40
JB
55662014-06-10 Joel Brobecker <brobecker@adacore.com>
5567
5568 * serial.c (serial_write): Fix index of character to be printed
5569 in call to serial_logchar when serial debug traces are enabled.
5570
d190df30
JB
55712014-06-10 Joel Brobecker <brobecker@adacore.com>
5572
5573 * gdbtypes (resolve_dynamic_range): Add function description.
5574
b4b01d36
PA
55752014-06-09 Pedro Alves <palves@redhat.com>
5576
5577 * linux-nat.c (linux_child_follow_fork): Initialize status with
5578 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
5579 inner block. Only pass the signal to PTRACE_DETACH if in pass
5580 state.
5581
3657956b
GB
55822014-06-09 Gary Benson <gbenson@redhat.com>
5583
5584 * common/signals.c (gdb_signal_from_host): Reorder to separate
5585 the always-available ANSI-standard signals from the signals that
5586 require checking.
5587 (do_gdb_signal_to_host): Likewise.
5588 * proc-events.c (signal_table): Likewise.
5589
c077881a
HZ
55902014-06-08 Hui Zhu <hui@codesourcery.com>
5591
5592 * common/linux-ptrace.c (linux_disable_event_reporting): New
5593 function.
5594 * common/linux-ptrace.h (linux_disable_event_reporting): New
5595 declaration.
5596 * linux-nat.c (linux_child_follow_fork): Do a single step before
5597 detach.
5598
4186eb54
KS
55992014-06-07 Keith Seitz <keiths@redhat.com>
5600
5601 Revert:
5602 PR c++/16253
5603 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5604 from symbol_matches_domain in symtab.c. All local callers
5605 of symbol_matches_domain updated.
5606 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5607 search STRUCT_DOMAIN.
5608 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5609 independently. standard_lookup will do that automatically.
5610 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5611 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5612 (cp_lookup_symbol_in_namespace): Likewise.
5613 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5614 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5615 may return a STRUCT_DOMAIN match.
5616 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5617 * cp-support.c: Include language.h.
5618 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5619 VAR_DOMAIN.
5620 * psymtab.c (match_partial_symbol): Compare the requested
5621 domain with the symbol's domain directly.
5622 (lookup_partial_symbol): Likewise.
5623 * symtab.c (lookup_symbol_in_language): Explain when/why
5624 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5625 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5626 appropriate languages.
5627 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5628 and moved to ada-lang.c
5629 (lookup_block_symbol): Explain that this function only returns
5630 symbol matching the requested DOMAIN.
5631 Compare the requested domain with the symbol's domain directly.
5632 (iterate_over_symbols): Compare the requested domain with the
5633 symbol's domain directly.
5634 * symtab.h (symbol_matches_domain): Remove.
5635
25326a28 56362014-06-06 Doug Evans <xdje42@gmail.com>
d2929fdc
DE
5637
5638 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
5639 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
5640 (gdbscm_guile_version_is_at_least): Declare.
5641 (gdbscm_scm_string_to_int): Declare.
5642 * guile/guile.c (gdbscm_guile_major_version): New global.
5643 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
5644 (guile_datadir): New static global.
5645 (gdbscm_guile_data_directory): New function.
5646 (initialize_scheme_side): Update.
5647 (misc_guile_functions): Add guile-data-directory.
5648 (initialize_gdb_module): Fetch guile version number.
5649 * guile/lib/gdb.scm: Remove call to add-to-load-path.
5650 * guile/lib/gdb/init.scm (%initialize!): Ditto.
5651 * guile/lib/gdb/boot.scm: Use guile-data-directory.
5652 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
5653 comments.
5654 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
5655 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
5656 * guile/scm-value.c (gdbscm_value_to_string): Only call
5657 scm_port_conversion_strategy if Guile version >= 2.0.6.
5658
0a770bb2 56592014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
5660
5661 * main.c (print_gdb_help): Add -q and --silent.
5662
73ba372c
GB
56632014-06-06 Gary Benson <gbenson@redhat.com>
5664
5665 * common/signals.c: Remove preprocessor conditionals for
5666 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
5667 SIGSEGV and SIGTERM.
5668 * proc-events.c: Likewise.
5669
c33b2f12
MM
56702014-06-06 Markus Metzger <markus.t.metzger@intel.com>
5671
5672 * symfile.c (symfile_free_objfile): Remove restriction to
5673 OBJF_USERLOADED.
5674 * symfile-mem.c (symbol_file_add_from_memory): Call
5675 add_target_sections_of_objfile.
5676
fb934770
LC
56772014-06-05 Ludovic Courtès <ludo@gnu.org>
5678
5679 * guile/scm-value.c (gdbscm_history_append_x): Use
5680 'vlscm_get_value_smob_arg_unsafe' instead of
5681 'vlscm_scm_to_value'.
5682
6ef284bd
SM
56832014-06-05 Simon Marchi <simon.marchi@ericsson.com>
5684
5685 PR mi/15806
5686 * utils.c (printchar): Don't escape at all if quoter is NUL.
5687 Update function documentation to clarify effect of parameter
5688 QUOTER.
5689 * remote.c (escape_buffer): Pass '\\' as the quoter to
5690 fputstrn_unfiltered.
5691 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
5692 generate the output.
5693 (mi_solib_unloaded): Same.
5694
270c9937
JB
56952014-06-05 Joel Brobecker <brobecker@adacore.com>
5696
5697 * development.sh: Delete.
5698 * Makefile.in (config.status): Adjust dependency on development.sh.
5699 * configure.ac: Adjust development.sh source call.
5700 * configure: Regenerate.
5701
16f691fb
DE
57022014-06-04 Doug Evans <xdje42@gmail.com>
5703
5704 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
5705 is_scheme_bkpt, spec.
5706 (bpscm_make_breakpoint_smob): Initialize new members.
5707 (gdbscm_create_breakpoint_x): Split into two ...
5708 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
5709 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
5710 (scheme_function breakpoint_functions): Update.
5711 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
5712 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
5713 register-breakpoint!.
5714
ef7cab6b
JB
57152014-06-04 Joel Brobecker <brobecker@adacorer.com>
5716
5717 PR server/17023
5718 * mem-break.c (z_type_supported): Return zero if
5719 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
5720
012370f6
TT
57212014-06-04 Tom Tromey <tromey@redhat.com>
5722
5723 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
5724 value_from_contents_and_address_unresolved.
5725 (ada_template_to_fixed_record_type_1): Likewise.
5726 (ada_which_variant_applies): Likewise.
5727 * value.h (value_from_contents_and_address_unresolved): Declare.
5728 * value.c (value_from_contents_and_address_unresolved): New
5729 function.
5730 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
5731 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
5732 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
5733
92e2a17f
TT
57342014-06-04 Tom Tromey <tromey@redhat.com>
5735
5736 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
5737
c0939df1
TT
57382014-06-04 Tom Tromey <tromey@redhat.com>
5739
5740 * procfs.c (procfs_attach): Make "args" const.
5741 * windows-nat.c (windows_attach): Make "args" const.
5742 * nto-procfs.c (procfs_attach): Make "args" const.
5743 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
5744 * go32-nat.c (go32_attach): Make "args" const.
5745 * gnu-nat.c (gnu_attach): Make "args" const.
5746 * darwin-nat.c (darwin_attach): Make "args" const.
5747 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
5748 * linux-nat.c (linux_nat_attach): Make "args" const.
5749 * remote.c (extended_remote_attach_1, extended_remote_attach):
5750 Make "args" const.
5751 * target.h (struct target_ops) <to_attach>: Make "args" const.
5752 (find_default_attach): Likewise.
5753 * utils.c (parse_pid_to_attach): Make "args" const.
5754 * utils.h (parse_pid_to_attach): Update.
5755
8eaff7cd
TT
57562014-06-04 Tom Tromey <tromey@redhat.com>
5757
5758 * target-delegates.c: Rebuild.
5759 * target.c (default_thread_address_space): New function.
5760 (target_thread_address_space): Simplify.
5761 * target.h (struct target_ops) <to_thread_address_space>: Add
5762 TARGET_DEFAULT_FUNC.
5763
1913f160
DE
57642014-06-04 Doug Evans <xdje42@gmail.com>
5765
5766 * guile/scm-type.c (type_smob): Remove duplicate typedef.
5767
70ad5bff
MM
57682014-06-04 Markus Metzger <markus.t.metzger@intel.com>
5769
5770 * record-btrace.c: Include event-loop.h and inf-loop.h.
5771 (record_btrace_resume_exec_dir)
5772 (record_btrace_async_inferior_event_handler)
5773 (record_btrace_handle_async_inferior_event): New.
5774 (record_btrace_open): Create async event handler.
5775 (record_btrace_close): Delete async event handler.
5776 (record_btrace_resume): Set record_btrace_resume_exec_dir,
5777 Mark async event handler.
5778 (record_btrace_execution_direction): New.
5779 (init_record_btrace_ops): Initialize to_execution_direction.
5780
b6210538
DE
57812014-06-03 Doug Evans <xdje42@gmail.com>
5782
5783 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
5784 (gdbscm_make_parameter): Ditto.
5785
a5b1fd27
DE
57862014-06-03 Doug Evans <dje@google.com>
5787
5788 * exec.c (exec_close_1): Call clear_section_table instead of
5789 resize_section_table.
5790 (clear_section_table): New function.
5791 (resize_section_table): Make static. Rename arg num_added to
5792 adjustment.
5793 * exec.h (clear_section_table): Declare.
5794 (resize_section_table): Delete.
5795 * progspace.c (release_program_space): Call clear_section_table
5796 instead of resize_section_table.
5797
0c6e92a5
SC
57982014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5799
5800 * NEWS (Python Scripting): Add entry about the new xmethods
5801 feature.
5802
883964a7
SC
58032014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5804
5805 * python/py-xmethods.c: New file.
5806 * python/py-objfile.c (objfile_object): New field 'xmethods'.
5807 (objfpy_dealloc): XDECREF on the new xmethods field.
5808 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
5809 field.
5810 (objfpy_get_xmethods): New function.
5811 (objfile_getset): New entry 'xmethods'.
5812 * python/py-progspace.c (pspace_object): New field 'xmethods'.
5813 (pspy_dealloc): XDECREF on the new xmethods field.
5814 (pspy_new, pspace_to_pspace_object): Initialize xmethods
5815 field.
5816 (pspy_get_xmethods): New function.
5817 (pspace_getset): New entry 'xmethods'.
5818 * python/python-internal.h: Add declarations for new functions.
5819 * python/python.c (_initialize_python): Invoke
5820 gdbpy_initialize_xmethods.
5821 * python/lib/gdb/__init__.py (xmethods): New
5822 attribute.
5823 * python/lib/gdb/xmethod.py: New file.
5824 * python/lib/gdb/command/xmethods.py: New file.
5825
58992dc5
SC
58262014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5827
5828 * eval.c (evaluate_subexp_standard): Call the xmethod if the
5829 best match method returned by find_overload_match is an xmethod.
5830 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
5831 the best matching operator returned by find_overload_match is an
5832 xmethod.
5833 * valops.c: #include "extension.h".
5834 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
5835 Return void. The list of matching source methods is returned in
5836 "fn_list" and a vector of matching debug method workers is
5837 returned in "xm_worker_vec". Update all callers.
5838 (value_find_oload_method_list): Likewise.
5839 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
5840 non-NULL, then the index of the best matching method in this
5841 vector is returned. Update all callers.
5842 (find_overload_match): Include xmethods while performing overload
5843 resolution.
5844
e81e7f5e
SC
58452014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5846
5847 * defs.h (enum lval_type): New enumerator "lval_xcallable".
5848 * extension-priv.h (struct extension_language_ops): Add the
5849 xmethod interface.
5850 * extension.c (new_xmethod_worker, clone_xmethod_worker,
5851 get_matching_xmethod_workers, get_xmethod_argtypes,
5852 invoke_xmethod, free_xmethod_worker,
5853 free_xmethod_worker_vec): New functions.
5854 * extension.h: #include "common/vec.h".
5855 New function declarations.
5856 (struct xmethod_worker): New struct.
5857 (VEC (xmethod_worker_ptr)): New vector type.
5858 (xmethod_worker_ptr): New typedef.
5859 (xmethod_worker_vec): Likewise.
5860 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
5861 builtin_type.
5862 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
5863 (struct builtin_type): New field "xmethod".
5864 * valarith.c (value_ptradd): Assert that the value argument is not
5865 lval_xcallable.
5866 * valops.c (value_must_coerce_to_target): Return 0 for
5867 lval_xcallable values.
5868 * value.c (struct value): New field XM_WORKER in the field
5869 LOCATION.
5870 (value_address, value_raw_address): Return 0 for lval_xcallable
5871 values.
5872 (set_value_address): Assert that the value is not an
5873 lval_xcallable.
5874 (value_free): Free the associated xmethod worker when freeing
5875 lval_xcallable values.
5876 (set_value_component_location): Assert that the WHOLE value is not
5877 lval_xcallable.
5878 (value_of_xmethod, call_xmethod): New functions.
5879 * value.h: Declare "struct xmethod_worker".
5880 Declare new functions value_of_xmethod, call_xmethod.
5881
ef370185
JB
58822014-06-03 Joel Brobecker <brobecker@adacore.com>
5883 Pedro Alves <palves@redhat.com>
5884
5885 PR breakpoints/17000
5886 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
5887 New function, extracted from software_breakpoint_inserted_here_p.
5888 (software_breakpoint_inserted_here_p): Replace factored out code
5889 by call to find_non_raw_software_breakpoint_inserted_here.
5890 (bp_target_info_copy_insertion_state): New function.
5891 (bkpt_insert_location): Handle the case of a single-step
5892 breakpoint already inserted at the same address.
5893 (bkpt_remove_location): Handle the case of a single-step
5894 breakpoint still inserted at the same address.
5895 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
5896 breakpoint already inserted at the same address.
5897 (deprecated_remove_raw_breakpoint): Handle the case of a
5898 non-raw breakpoint still inserted at the same address.
5899 (find_single_step_breakpoint): New function, extracted from
5900 single_step_breakpoint_inserted_here_p.
5901 (find_single_step_breakpoint): New function,
5902 factored out from single_step_breakpoint_inserted_here_p.
5903 (single_step_breakpoint_inserted_here_p): Reimplement.
5904
1e2ccb61
BM
59052014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
5906
5907 Pushed by Joel Brobecker <brobecker@adacore.com>
5908 * source.c (show_substitute_path_command): Fix display of matching
5909 substitution rules.
5910
d3448d85
GB
59112014-06-03 Gary Benson <gbenson@redhat.com>
5912
5913 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
5914
06eb1586
DE
59152014-06-02 Doug Evans <xdje42@gmail.com>
5916
5917 Add parameter support for Guile.
5918 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
5919 (SUBDIR_GUILE_SRCS): Add scm-param.c.
5920 (scm-param.o): New rule.
5921 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
5922 (gdbscm_misc_error): Declare.
5923 (gdbscm_canonicalize_command_name): Declare.
5924 (gdbscm_scm_to_host_string): Declare.
5925 (gdbscm_scm_from_host_string): Declare.
5926 (gdbscm_initialize_parameters): Declare.
5927 * guile/guile.c (initialize_gdb_module): Call
5928 gdbscm_initialize_parameters.
5929 * guile/lib/gdb.scm: Export parameter symbols.
5930 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
5931 cmdscm_canonicalize_name and made public. All callers updated.
5932 * guile/scm-exception.c (gdbscm_misc_error): New function.
5933 * guile/scm-param.c: New file.
5934 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
5935 (gdbscm_scm_to_host_string): New function.
5936 (gdbscm_scm_from_host_string): New function.
5937 * scm-utils.c (gdbscm_gc_dup_argv): New function.
5938
e698b8c4
DE
59392014-06-02 Doug Evans <xdje42@gmail.com>
5940
5941 Add command support for Guile.
5942 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
5943 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
5944 (scm-cmd.o): New rule.
5945 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
5946 (gdbscm_user_error_p): Declare.
5947 (gdbscm_parse_command_name): Declare.
5948 (gdbscm_valid_command_class_p): Declare.
5949 (gdbscm_initialize_commands): Declare.
5950 * guile/guile.c (initialize_gdb_module): Call
5951 gdbscm_initialize_commands.
5952 * guile/lib/gdb.scm: Export command symbols.
5953 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
5954 (throw-user-error): New function.
5955 * guile/scm-cmd.c: New file.
5956 * guile/scm-exception.c (user_error_symbol): New static global.
5957 (gdbscm_user_error_p): New function.
5958 (gdbscm_initialize_exceptions): Set user_error_symbol.
5959 * scm-utils.c (gdbscm_gc_xstrdup): New function.
5960
fb1f94b0
PM
59612014-06-02 Phil Muldoon <pmuldoon@redhat.com>
5962
5963 * top.c (command_loop): Handle comments here...
5964 (command_line_input): ... not here.
5965
ded03782
DE
59662014-06-02 Doug Evans <xdje42@gmail.com>
5967
5968 Add progspace support for Guile.
5969 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
5970 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
5971 (scm-progspace.o): New rule.
5972 * guile/guile-internal.h (pspace_smob): New typedef.
5973 (psscm_pspace_smob_pretty_printers): Declare.
5974 (psscm_pspace_smob_from_pspace): Declare.
5975 (psscm_scm_from_pspace): Declare.
5976 * guile/guile.c (initialize_gdb_module): Call
5977 gdbscm_initialize_pspaces.
5978 * guile/lib/gdb.scm: Export progspace symbols.
5979 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
5980 support.
5981 (append-pretty-printer!): Ditto.
5982 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
5983 Implement.
5984 * guile/scm-progspace.c: New file.
5985
397998fc
AM
59862014-06-03 Alan Modra <amodra@gmail.com>
5987
5988 * ppc64-tdep.c (ppc64_standard_linkage8): New.
5989 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
5990
6aa5f3a6
DE
59912014-06-02 Doug Evans <dje@google.com>
5992
5993 Add support for skeletonless type units.
5994 * dwarf2read.c (struct dwarf2_per_objfile): New member
5995 n_allocated_type_units.
5996 (struct dwarf2_per_objfile) <tu_stats>: New member
5997 nr_all_type_units_reallocs.
5998 (create_signatured_type_table_from_index): Initialize
5999 n_allocated_type_units
6000 (create_all_type_units): Ditto.
6001 (add_type_unit): Move up in file. New arg slot.
6002 All callers updated. Increase space for all_type_units more
6003 efficiently.
6004 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
6005 (lookup_dwo_signatured_type): Handle skeletonless TUs.
6006 (lookup_dwp_signatured_type): Ditto.
6007 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
6008 All callers updated.
6009 (build_type_psymtabs_1): Leave type_unit_groups as
6010 NULL if no TUs present.
6011 (print_tu_stats): New function.
6012 (process_skeletonless_type_unit): New function.
6013 (process_dwo_file_for_skeletonless_type_units): New
6014 function.
6015 (process_skeletonless_type_units): New function.
6016 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
6017 Call print tu_stats if debugging enabled.
6018
41fac0cf
PA
60192014-06-02 Pedro Alves <palves@redhat.com>
6020
6021 * breakpoint.c (build_target_command_list): Don't build a command
6022 list if we have any duplicate location that isn't a dprintf.
6023
cd1608cc
PA
60242014-06-02 Pedro Alves <palves@redhat.com>
6025
6026 * breakpoint.c (dprintf_breakpoint_hit): New function.
6027 (initialize_breakpoint_ops): Install it as dprintf's
6028 breakpoint_hit method.
6029
486ef3b9
JB
60302014-06-02 Joel Brobecker <brobecker@adacore.com>
6031
6032 * source.c (substitute_path_rule_matches): Simplify using
6033 filename_ncmp instead of FILENAME_CMP.
6034
230cd560
JB
60352014-06-02 Joel Brobecker <brobecker@adacore.com>
6036
6037 * source.c (substitute_path_rule_matches): Remove trailing spaces.
6038
16954d5d
LC
60392014-06-01 Ludovic Courtès <ludo@gnu.org>
6040
6041 * configure.ac: When Guile is available, check for the
6042 availability of 'scm_new_smob'.
6043 * configure, config.h.in: Regenerate.
6044 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
6045 function.
6046
53e8a631
AB
60472014-05-30 Andrew Burgess <aburgess@broadcom.com>
6048
6049 * frame.c (struct frame_info): Add stop_string field.
6050 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
6051 (get_prev_frame_always): Old content moved into
6052 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
6053 TRY_CATCH, handle MEMORY_ERROR exceptions.
6054 (frame_stop_reason_string): New function definition.
6055 * frame.h (unwind_stop_reason_to_string): Extend comment to
6056 mention frame_stop_reason_string.
6057 (frame_stop_reason_string): New function declaration.
6058 * stack.c (frame_info): Switch to frame_stop_reason_string.
6059 (backtrace_command_1): Switch to frame_stop_reason_string.
6060 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
6061 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
6062 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
6063
70e38b8e
AB
60642014-05-30 Andrew Burgess <aburgess@broadcom.com>
6065
6066 * frame.c (frame_stop_reason_string): Rename to ...
6067 (unwind_stop_reason_to_string): this.
6068 * frame.h (frame_stop_reason_string): Rename to ...
6069 (unwind_stop_reason_to_string): this.
6070 * stack.c (frame_info): Update call to frame_stop_reason_string.
6071 (backtrace_command_1): Likewise.
6072 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
6073 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
6074
938f0e2f
AB
60752014-05-30 Andrew Burgess <aburgess@broadcom.com>
6076
6077 * frame.c (remove_prev_frame): New function.
6078 (get_prev_frame_if_no_cycle): Create / discard cleanup using
6079 remove_prev_frame.
6080
a09dd441
PA
60812014-05-29 Pedro Alves <palves@redhat.com>
6082
6083 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
6084 and make it const. When a single-step decays to a continue,
6085 clear 'step', not 'hw_step'. Pass whether the caller wanted
6086 to step to user_visible_resume_ptid, not what we ask the
6087 target to do.
6088
bdc36728
PA
60892014-05-29 Pedro Alves <palves@redhat.com>
6090
6091 * infrun.c (process_event_stop_test, handle_step_into_function)
6092 (handle_step_into_function_backward): Adjust.
6093 Don't set the even thread's stop_step and call stop_waiting before
6094 calling end_stepping_range. Instead do that ...
6095 (end_stepping_range): ... here. Take an ecs pointer parameter.
6096
22bcd14b
PA
60972014-05-29 Pedro Alves <palves@redhat.com>
6098
6099 * infrun.c (stop_stepping): Rename to ...
6100 (stop_waiting): ... this.
6101 (proceed): Update comment.
6102 (process_event_stop_test, handle_inferior_event)
6103 (handle_signal_stop, handle_step_into_function)
6104 (handle_step_into_function_backward): Update.
6105
4ae57c05
PA
61062014-05-29 Pedro Alves <palves@redhat.com>
6107
6108 * infcall.c (run_inferior_call): Don't check whether the current
6109 thread is running after the proceed call.
6110
329ea579
PA
61112014-05-29 Pedro Alves <palves@redhat.com>
6112 Tom Tromey <tromey@redhat.com>
6113
6114 * NEWS: Mention "maint set target-async", "set mi-async", and that
6115 background execution commands are now always available.
6116 * target.h (target_async_permitted): Update comment.
6117 * target.c (target_async_permitted, target_async_permitted_1):
6118 Default to 1.
6119 (set_target_async_command): Rename to ...
6120 (maint_set_target_async_command): ... this.
6121 (show_target_async_command): Rename to ...
6122 (maint_show_target_async_command): ... this.
6123 (_initialize_target): Adjust.
6124 * infcmd.c (prepare_execution_command): Make extern.
6125 * inferior.h (prepare_execution_command): Declare.
6126 * infrun.c (set_observer_mode): Leave target async alone.
6127 * mi/mi-interp.c (mi_interpreter_init): Install
6128 mi_on_sync_execution_done as sync_execution_done observer.
6129 (mi_on_sync_execution_done): New function.
6130 (mi_execute_command_input_handler): Don't print the prompt if we
6131 just started a synchronous command with an async target.
6132 (mi_on_resume): Check sync_execution before printing prompt.
6133 * mi/mi-main.h (mi_async_p): Declare.
6134 * mi/mi-main.c: Include gdbcmd.h.
6135 (mi_async_p): New function.
6136 (mi_async, mi_async_1): New globals.
6137 (set_mi_async_command, show_mi_async_command, mi_async): New
6138 functions.
6139 (exec_continue): Call prepare_execution_command.
6140 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
6141 (mi_execute_async_cli_command): Use mi_async_p.
6142 (_initialize_mi_main): Install "set mi-async". Make
6143 "target-async" a deprecated alias.
6144
92bcb5f9
PA
61452014-05-29 Pedro Alves <palves@redhat.com>
6146
6147 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
6148 (_initialize_cli_interp): Adjust.
6149 * event-loop.c: Include "observer.h".
6150 (start_event_loop): Notify 'command_error' observers instead of
6151 calling display_gdb_prompt. Remove FIXME comment.
6152 * event-top.c (display_gdb_prompt): Remove call into the
6153 interpreters.
6154 * inf-loop.c: Include "observer.h".
6155 (inferior_event_handler): Notify 'command_error' observers instead
6156 of calling display_gdb_prompt.
6157 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
6158 observers instead of calling display_gdb_prompt.
6159 * interps.c (interp_set): Don't call display_gdb_prompt.
6160 (current_interp_display_prompt_p): Delete.
6161 * interps.h (interp_prompt_p): Delete declaration.
6162 (interp_prompt_p_ftype): Delete.
6163 (struct interp_procs) <prompt_proc_p>: Delete field.
6164 (current_interp_display_prompt_p): Delete declaration.
6165 * mi-interp.c (mi_interpreter_prompt_p): Delete.
6166 (_initialize_mi_interp): Adjust.
6167 * tui-interp.c (tui_init): Install 'sync_execution_done' and
6168 'command_error' observers.
6169 (tui_on_sync_execution_done, tui_on_command_error): New
6170 functions.
6171 (tui_display_prompt_p): Delete.
6172 (_initialize_tui_interp): Adjust.
6173
fd664c91
PA
61742014-05-29 Pedro Alves <palves@redhat.com>
6175
6176 PR gdb/13860
6177 * cli/cli-interp.c: Include infrun.h and observer.h.
6178 (cli_uiout, cli_interp): New globals.
6179 (cli_on_signal_received, cli_on_end_stepping_range)
6180 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
6181 functions.
6182 (cli_interpreter_init): Install them as 'end_stepping_range',
6183 'signal_received' 'signal_exited', 'exited' and 'no_history'
6184 observers.
6185 (_initialize_cli_interp): Remove cli_interp local.
6186 * infrun.c (handle_inferior_event): Call the several stop reason
6187 observers instead of printing the stop reason directly.
6188 (end_stepping_range): New function.
6189 (print_end_stepping_range_reason, print_signal_exited_reason)
6190 (print_exited_reason, print_signal_received_reason)
6191 (print_no_history_reason): Make static, and add an uiout
6192 parameter. Print to that instead of to CURRENT_UIOUT.
6193 * infrun.h (print_end_stepping_range_reason)
6194 (print_signal_exited_reason, print_exited_reason)
6195 (print_signal_received_reason print_no_history_reason): New
6196 declarations.
6197 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
6198 'mi_uiout'.
6199 <cli_uiout>: New field.
6200 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
6201 uiout for CLI output. Install 'signal_received',
6202 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
6203 observers.
6204 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
6205 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
6206 (mi_on_no_history): New functions.
6207 (ui_out_free_cleanup): Delete function.
6208 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
6209 instead use the one already stored in the MI interpreter data.
6210 (mi_ui_out): Adjust.
6211 * tui/tui-interp.c: Include infrun.h and observer.h.
6212 (tui_interp): New global.
6213 (tui_on_signal_received, tui_on_end_stepping_range)
6214 (tui_on_signal_exited, tui_on_exited)
6215 (tui_on_no_history): New functions.
6216 (tui_init): Install them as 'end_stepping_range',
6217 'signal_received' 'signal_exited', 'exited' and 'no_history'
6218 observers.
6219 (_initialize_tui_interp): Delete tui_interp local.
6220
8817a6f2
PA
62212014-05-29 Pedro Alves <palves@redhat.com>
6222
6223 PR gdb/15713
6224 * linux-nat.c (linux_nat_resume_callback): Rename the second
6225 parameter to 'except'. Skip LP if it points to EXCEPT.
6226 (linux_nat_resume): Don't mark the event lwp as not stopped
6227 before resuming sibling lwps. Instead ask
6228 linux_nat_resume_callback to skip the event lwp. Mark it as not
6229 stopped after actually resuming it.
6230 (linux_handle_syscall_trap): Mark the lwp as not stopped after
6231 resuming it.
6232 (wait_lwp): Mark the lwp as stopped here.
6233 (stop_wait_callback): Mark the lwp as not stopped right after
6234 resuming it. Don't mark lwps as stopped here.
6235 (linux_nat_filter_event): Mark the lwp as stopped earlier.
6236 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
6237
251bde03
PA
62382014-05-29 Pedro Alves <palves@redhat.com>
6239
6240 PR PR15693
6241 * infrun.c (resume): Determine how much to resume depending on
6242 whether the caller wanted a step, not whether we can hardware step
6243 the target. Mark all threads that we intend to run as running,
6244 unless we're calling an inferior function.
6245 (normal_stop): If the thread is running an infcall, don't finish
6246 thread state.
6247 * target.c (target_resume): Don't mark threads as running here.
6248
7f3c0343
JB
62492014-05-28 Joel Brobecker <brobecker@adacore.com>
6250
6251 * serial.c (_initialize_serial): Remove support for
6252 the "set remotebaud" and "show remotebaud" commands.
6253 * NEWS: Add entry documenting the removal of that command.
6254
ee34b3f9
YQ
62552014-05-28 Yao Qi <yao@codesourcery.com>
6256
6257 * charset.c: Fix typo in comments.
6258
add6c04d
GB
62592014-05-27 Gary Benson <gbenson@redhat.com>
6260
6261 * utils.c (internal_vproblem): Prompt for a bug report.
6262
92c48fc5
AW
62632014-05-26 Andy Wingo <wingo@igalia.com>
6264
6265 * guile/scm-arch.c (arscm_mark_arch_smob):
6266 * guile/scm-block.c (bkscm_mark_block_smob)
6267 (bkscm_mark_block_syms_progress_smob):
6268 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
6269 * guile/scm-exception.c (exscm_mark_exception_smob):
6270 * guile/scm-frame.c (frscm_mark_frame_smob):
6271 * guile/scm-iterator.c (itscm_mark_iterator_smob):
6272 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
6273 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
6274 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
6275 (ppscm_mark_pretty_printer_worker_smob):
6276 * guile/scm-symbol.c (syscm_mark_symbol_smob):
6277 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
6278 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
6279 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
6280 mark functions.
6281 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
6282 function.
6283
b2715b27
AW
62842014-05-26 Andy Wingo <wingo@igalia.com>
6285 Doug Evans <xdje42@gmail.com>
6286
6287 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
6288 empty_base_class. All uses updated.
6289 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
6290 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
6291 Adapt all callers.
6292 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
6293 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
6294 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
6295 (gdbscm_gsmob_has_property_p, add_property_name)
6296 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
6297 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
6298 (gdb-object-has-property?, gdb-object-properties): Remove.
6299 (gdb-object-kind): Renamed from gsmob-kind.
6300
214ab2da
AW
63012014-05-26 Andy Wingo <wingo@igalia.com>
6302
6303 * configure.ac (try_guile_versions): Allow building with guile 2.2.
6304 * configure: Regenerate.
6305
589fdceb
MM
63062014-05-23 Markus Metzger <markus.t.metzger@intel.com>
6307
6308 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
6309
67b5c0c1
MM
63102014-05-23 Markus Metzger <markus.t.metzger@intel.com>
6311
6312 * record-btrace.c (record_btrace_allow_memory_access): Remove.
6313 (replay_memory_access_read_only, replay_memory_access_read_write)
6314 (replay_memory_access_types, replay_memory_access)
6315 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
6316 (cmd_set_record_btrace, cmd_show_record_btrace)
6317 (cmd_show_replay_memory_access): New.
6318 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
6319 (record_btrace_remove_breakpoint): Replace
6320 record_btrace_allow_memory_access with replay_memory_access.
6321 (_initialize_record_btrace): Add commands.
6322 * NEWS: Announce it.
6323
036cd381
RR
63242014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6325
6326 * aarch64-linux-nat.c (asm/ptrace.h): Include.
6327
c77c1e42
RR
63282014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6329
6330 * MAINTAINERS (Write After Approval): Move self back from
6331 paper trail.
6332
45741a9c
PA
63332014-05-22 Pedro Alves <palves@redhat.com>
6334
6335 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
6336 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
6337 (disable_randomization, enum exec_direction_kind)
6338 (execution_direction, stop_registers, start_remote)
6339 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
6340 (wait_for_inferior, normal_stop, get_last_target_status)
6341 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
6342 (insert_step_resume_breakpoint_at_sal)
6343 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
6344 (set_step_info, print_stop_event, signal_stop_state)
6345 (signal_print_state, signal_pass_state, signal_stop_update)
6346 (signal_print_update, signal_pass_update)
6347 (update_signals_program_target, clear_exit_convenience_vars)
6348 (displaced_step_dump_bytes, update_observer_mode)
6349 (signal_catch_update, gdb_signal_from_command): Move
6350 declarations ...
6351 * infrun.h: ... to this new file.
6352 * amd64-tdep.c: Include infrun.h.
6353 * annotate.c: Include infrun.h.
6354 * arch-utils.c: Include infrun.h.
6355 * arm-linux-tdep.c: Include infrun.h.
6356 * arm-tdep.c: Include infrun.h.
6357 * break-catch-sig.c: Include infrun.h.
6358 * breakpoint.c: Include infrun.h.
6359 * common/agent.c: Include infrun.h instead of inferior.h.
6360 * corelow.c: Include infrun.h.
6361 * event-top.c: Include infrun.h.
6362 * go32-nat.c: Include infrun.h.
6363 * i386-tdep.c: Include infrun.h.
6364 * inf-loop.c: Include infrun.h.
6365 * infcall.c: Include infrun.h.
6366 * infcmd.c: Include infrun.h.
6367 * infrun.c: Include infrun.h.
6368 * linux-fork.c: Include infrun.h.
6369 * linux-nat.c: Include infrun.h.
6370 * linux-thread-db.c: Include infrun.h.
6371 * monitor.c: Include infrun.h.
6372 * nto-tdep.c: Include infrun.h.
6373 * procfs.c: Include infrun.h.
6374 * record-btrace.c: Include infrun.h.
6375 * record-full.c: Include infrun.h.
6376 * remote-m32r-sdi.c: Include infrun.h.
6377 * remote-mips.c: Include infrun.h.
6378 * remote-notif.c: Include infrun.h.
6379 * remote-sim.c: Include infrun.h.
6380 * remote.c: Include infrun.h.
6381 * reverse.c: Include infrun.h.
6382 * rs6000-tdep.c: Include infrun.h.
6383 * s390-linux-tdep.c: Include infrun.h.
6384 * solib-irix.c: Include infrun.h.
6385 * solib-osf.c: Include infrun.h.
6386 * solib-svr4.c: Include infrun.h.
6387 * target.c: Include infrun.h.
6388 * top.c: Include infrun.h.
6389 * windows-nat.c: Include infrun.h.
6390 * mi/mi-interp.c: Include infrun.h.
6391 * mi/mi-main.c: Include infrun.h.
6392 * python/py-threadevent.c: Include infrun.h.
6393
98eb56a4
PA
63942014-05-22 Pedro Alves <palves@redhat.com>
6395
6396 * infrun.c (handle_inferior_event): Store the exit code for
6397 --return-child-result here, instead of ...
6398 (print_exited_reason): ... here.
6399
17b2616c
PA
64002014-05-21 Pedro Alves <palves@redhat.com>
6401
6402 PR gdb/13860
6403 * gdbthread.h (struct thread_control_state): New field
6404 `command_interp'.
6405 * infrun.c (follow_fork): Copy the new thread control field to the
6406 child fork thread.
6407 (clear_proceed_status_thread): Clear the new thread control field.
6408 (proceed): Set the new thread control field.
6409 * interps.h (command_interp): Declare.
6410 * interps.c (command_interpreter): New global.
6411 (command_interp): New function.
6412 (interp_exec): Set `command_interpreter' while here.
6413 * cli-out.c (cli_uiout_dtor): New function.
6414 (cli_ui_out_impl): Install it.
6415 * mi/mi-interp.c: Include cli-out.h.
6416 (mi_cmd_interpreter_exec): Add comment.
6417 (restore_current_uiout_cleanup): New function.
6418 (ui_out_free_cleanup): New function.
6419 (mi_on_normal_stop): If finishing an execution command started by
6420 a CLI command, or any kind of breakpoint-like event triggered,
6421 print the stop event to the output (CLI) stream.
6422 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
6423
5166082f
PA
64242014-05-21 Pedro Alves <palves@redhat.com>
6425
6426 * cli/cli-cmds.c (list_command): Handle the first "list" after the
6427 current source line having changed.
6428 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
6429 * infrun.c (normal_stop): Adjust call to
6430 set_current_sal_from_frame.
6431 * source.c (clear_lines_listed_range): New function.
6432 (set_current_source_symtab_and_line, identify_source_line): Clear
6433 the lines listed range.
6434 (line_info): Handle the first "info line" after the current source
6435 line having changed.
6436 * stack.c (print_stack_frame): Remove center handling.
6437 (set_current_sal_from_frame): Remove 'center' parameter. Don't
6438 center sal.line.
6439
c1ee2fb3
PA
64402014-05-21 Pedro Alves <palves@redhat.com>
6441
6442 * inf-child.c (inf_child_mourn_inferior): New function.
6443 * inf-child.h (inf_child_mourn_inferior): New declaration.
6444 * darwin-nat.c (darwin_mourn_inferior): Use
6445 inf_child_mourn_inferior.
6446 * gnu-nat.c (gnu_mourn_inferior): Likewise.
6447 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
6448 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
6449 * nto-procfs.c (procfs_mourn_inferior): Likewise.
6450 * windows-nat.c (windows_mourn_inferior): Likewise.
6451
5c6d4fb2
DE
64522014-05-21 Doug Evans <xdje42@gmail.com>
6453
250748cb 6454 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5c6d4fb2 6455
4a2722c5
DE
64562014-05-21 Doug Evans <xdje42@gmail.com>
6457
17292b30 6458 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4a2722c5
DE
6459 (gdbscm_out_of_range_error): Ditto.
6460 (gdbscm_memory_error): Ditto.
250748cb
DE
6461 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
6462 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4a2722c5
DE
6463 (gdbscm_out_of_range_error): Update.
6464 (gdbscm_memory_error): Update.
6465 (gdbscm_scm_to_target_string_unsafe): Delete.
6466
6a3cb8e8
PA
64672014-05-21 Pedro Alves <palves@redhat.com>
6468
6469 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
6470 globals.
6471 (inf_child_open_target): New function.
6472 (inf_child_open): Use inf_child_open_target to push the target
6473 instead of erroring out.
6474 (inf_child_disconnect, inf_child_close)
6475 (inf_child_maybe_unpush_target): New functions.
6476 (inf_child_target): Install inf_child_disconnect and
6477 inf_child_close. Store a pointer to the returned object.
6478 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
6479 declarations.
6480 * target.c (auto_connect_native_target): New global.
6481 (show_default_run_target): New function.
6482 (find_default_run_target): Return NULL if automatically connecting
6483 to the native target is disabled.
6484 (_initialize_target): Install set/show auto-connect-native-target.
6485 * NEWS: Mention "set auto-connect-native-target", and "target
6486 native".
6487 * linux-nat.c (super_close): New global.
6488 (linux_nat_close): Call super_close.
6489 (linux_nat_add_target): Store a pointer to the base class's
6490 to_close method.
6491 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
6492 inf_child_maybe_unpush.
6493 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
6494 already pushed.
6495 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
6496 the inferior. Use inf_child_maybe_unpush_target.
6497 (inf_ttrace_attach): Don't push the target if it is already
6498 pushed.
6499 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
6500 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
6501 after mourning the inferior. Use inf_child_maybe_unpush_target.
6502 (darwin_attach_pid): Don't push the target if it is already
6503 pushed.
6504 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
6505 mourning the inferior. Use inf_child_maybe_unpush_target.
6506 (gnu_detach): Use inf_child_maybe_unpush_target.
6507 * go32-nat.c (go32_create_inferior): Don't push the target if it
6508 is already pushed.
6509 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
6510 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
6511 (procfs_open): Rename to ...
6512 (procfs_open_1): ... this. Add target_ops parameter. Adjust
6513 comments. Can target_preopen before changing node. Call
6514 inf_child_open_target to push the target explicitly.
6515 (procfs_attach): Don't push the target if it is already pushed.
6516 (procfs_detach): Use inf_child_maybe_unpush_target.
6517 (procfs_create_inferior): Don't push the target if it is already
6518 pushed.
6519 (nto_native_ops): New global.
6520 (procfs_open): Reimplement.
6521 (procfs_native_open): New function.
6522 (init_procfs_targets): Install procfs_native_open as to_open of
6523 "target native". Store a pointer to the "native" target in
6524 nto_native_ops.
6525 * procfs.c (procfs_attach): Don't push the target if it is already
6526 pushed.
6527 (procfs_detach): Use inf_child_maybe_unpush_target.
6528 (procfs_mourn_inferior): Only unpush the target after mourning the
6529 inferior. Use inf_child_maybe_unpush_target.
6530 (procfs_init_inferior): Don't push the target if it is already
6531 pushed.
6532 * windows-nat.c (do_initial_windows_stuff): Don't push the target
6533 if it is already pushed.
6534
930ee1b1
PA
65352014-05-21 Pedro Alves <palves@redhat.com>
6536
6537 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
6538 and "procfs" targets are now called "native" instead.
6539
1f5d1b13
PA
65402014-05-21 Pedro Alves <palves@redhat.com>
6541
6542 * go32-nat.c (go32_open): Delete.
6543 (go32_target): Don't override the to_open method.
6544
132f8e03
PA
65452014-05-21 Pedro Alves <palves@redhat.com>
6546
6547 * nto-procfs.c (procfs_can_run): New function.
6548 (nto_procfs_ops): New global.
6549 (init_procfs_targets): New, based on procfs_target. Install
6550 "target native" in addition to "target procfs".
6551 (_initialize_procfs): Call init_procfs_targets instead of adding
6552 the target here.
6553
03c136c3
PA
65542014-05-21 Pedro Alves <palves@redhat.com>
6555
6556 * windows-nat.c (windows_target): Don't override to_shortname,
6557 to_longname or to_doc.
6558
a635d0f3
PA
65592014-05-21 Pedro Alves <palves@redhat.com>
6560
6561 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
6562 to_doc.
6563
4f9b5133
PA
65642014-05-21 Pedro Alves <palves@redhat.com>
6565
6566 * darwin-nat.c (_initialize_darwin_inferior): Don't override
6567 to_shortname, to_longname or to_doc.
6568
bc85afde
PA
65692014-05-21 Pedro Alves <palves@redhat.com>
6570
6571 * go32-nat.c (go32_target): Don't override to_shortname,
6572 to_longname or to_doc.
6573
4ebfc96e
PA
65742014-05-21 Pedro Alves <palves@redhat.com>
6575
6576 * inf-child.c (inf_child_open): Remove mention of "child".
6577 (inf_child_target): Rename target to "native" instead of "child".
6578
2648dfed
AA
65792014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6580
6581 * Makefile.in (SFILES): Delete "regset.c".
6582 (COMMON_OBS): Delete "regset.o".
6583 * regset.c: Remove.
6584 * regset.h (regset_alloc): Delete prototype.
6585
b13feb94
AA
65862014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6587
6588 * sparc-linux-tdep.c (sparc32_linux_gregset)
6589 (sparc32_linux_fpregset): New static regset structures.
6590 (sparc32_linux_init_abi): Drop dynamic regset allocations.
6591 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
6592 'fpregset' fields.
6593 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
6594 (sparc64_linux_fpregset): New static regset structures.
6595 (sparc64_linux_init_abi): Drop dynamic regset allocations.
6596 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
6597 New static regset structures.
6598 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
6599 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
6600 New static regset structures.
6601 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
6602 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
6603 New static regset structures.
6604 (sparc64obsd_init_abi): Drop dynamic regset allocations.
6605 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
6606 New static regset structures.
6607 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
6608
b4fd25c9
AA
66092014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6610
6611 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
6612 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
6613 register maps ("regmaps") from "*regset" to "*regmap". Do this
6614 for all regmap types and variables.
6615 * sparc-linux-tdep.c (sparc32_linux_step_trap)
6616 (sparc32_linux_supply_core_gregset)
6617 (sparc32_linux_collect_core_gregset)
6618 (sparc32_linux_supply_core_fpregset)
6619 (sparc32_linux_collect_core_fpregset): Likewise.
6620 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
6621 (sparc_gregmap, sparc_fpregmap): ... these.
6622 (sparc_supply_gregset, sparc_collect_gregset)
6623 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6624 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
6625 (_initialize_sparc_nat): Rename regmaps.
6626 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
6627 (sparc_gregmap, sparc_fpregmap): ... these.
6628 (sparc_supply_gregset, sparc_collect_gregset)
6629 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6630 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
6631 Rename macros to...
6632 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
6633 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
6634 Likewise.
6635 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
6636 Rename to...
6637 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
6638 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
6639 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
6640 regmaps.
6641 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6642 (sparc32_bsd_fpregset): Rename to...
6643 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6644 (sparc32_bsd_fpregmap): ... these.
6645 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
6646 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6647 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
6648 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
6649 (struct sparc_gregmap, struct sparc_fpregmap)
6650 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6651 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
6652 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
6653 (sparc32_supply_regset, sparc32_collect_gregset)
6654 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
6655 prototypes.
6656 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
6657 (sparc64_linux_ptrace_gregmap): ... this.
6658 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
6659 (_initialize_sparc64_linux_nat): Rename regmaps.
6660 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
6661 (sparc64_linux_core_gregmap): ... this.
6662 (sparc64_linux_supply_core_gregset)
6663 (sparc64_linux_collect_core_gregset)
6664 (sparc64_linux_supply_core_fpregset)
6665 (sparc64_linux_collect_core_fpregset): Rename regmaps.
6666 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
6667 (sparc64_sol2_fpregset): Rename to...
6668 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
6669 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
6670 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
6671 regmaps.
6672 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
6673 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
6674 (sparc64_bsd_fpregset): Rename to...
6675 (struct sparc_gregmap, sparc64_sol2_gregmap)
6676 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
6677 (sparc64_bsd_fpregmap): ... these.
6678 (sparc64_supply_gregset, sparc64_collect_gregset)
6679 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
6680 prototypes.
6681 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
6682 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
6683 (sparc64fbsd_gregmap): ... this.
6684 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
6685 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
6686 Rename regmaps.
6687 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
6688 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
6689 (sparc64nbsd_collect_fpregset): Likewise.
6690 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
6691 (sparc64nbsd_gregmap): ... this.
6692 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
6693 regmaps.
6694 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
6695 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
6696 (sparc64obsd_gregmap): ... this.
6697 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
6698 regmaps.
6699 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
6700 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
6701 (sparc32nbsd_gregmap): ... this.
6702 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
6703 regmaps.
6704
8fea3224
AA
67052014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6706
6707 * score-tdep.c (score7_linux_gregset): New static regset
6708 structure.
6709 (score7_linux_regset_from_core_section): Remove dynamic regset
6710 allocation.
6711 (score_gdbarch_init): Drop allocation of tdep structure.
6712 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
6713
24534243
AA
67142014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6715
6716 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
6717 regset structures.
6718 (am33_regset_from_core_section): Remove dynamic regset
6719 allocations.
6720
b7195f27
AA
67212014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6722
6723 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
6724 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
6725 structures.
6726 (mips_linux_regset_from_core_section): Remove dynamic regset
6727 allocations.
6728 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6729 'gregset64', 'fpregset', and 'fpregset64'.
6730 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
6731 deleted tdep fields.
6732
ecc37a5a
AA
67332014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6734
6735 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
6736 regset structures.
6737 (amd64_regset_from_core_section): Remove dynamic regset
6738 allocations.
6739 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
6740 structure.
6741 (amd64obsd_regset_from_core_section): Remove dynamic regset
6742 allocation.
6743 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
6744 Likewise.
6745 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
6746 x86-common regset supply function.
6747 * i386-tdep.c (i386_collect_gregset): Make static.
6748 (i386_gregset): New global regset structure.
6749 (i386_fpregset, i386_xstateregset): New static regset structures.
6750 (i386_regset_from_core_section): Remove dynamic regset
6751 allocations.
6752 (i386_gdbarch_init): Remove initialization of tdep fields
6753 'gregset', 'fpregset', and 'xstateregset'.
6754 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6755 'fpregset', and 'xstateregset'.
6756 (i386_collect_gregset): Remove prototype.
6757 (i386_gregset): New declaration.
6758 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
6759 structure.
6760 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
6761 allocation.
6762
b7611c43
AA
67632014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6764
6765 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
6766 (arm_linux_vfpregset): New static regset structures.
6767 (arm_linux_regset_from_core_section): Remove dynamic allocation of
6768 regset structures.
6769 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
6770 and 'vfpregset' fields.
6771
a069a2bd
AA
67722014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6773
6774 * aarch64-linux-tdep.c (aarch64_linux_gregset)
6775 (aarch64_linux_fpregset): New static regset structures.
6776 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
6777 of regset structures.
6778 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
6779 'fpregset' fields.
6780
09424cff
AA
67812014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6782
6783 * regset.h (struct regset): Remove gdbarch field.
6784 * regset.c (regset_alloc): Drop initialization of gdbarch field.
6785 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6786 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
6787 Likewise.
6788 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
6789 (ppc32_linux_fpregset, ppc32_linux_vrregset)
6790 (ppc32_linux_vsxregset): Likewise.
6791 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
6792 via the regcache instead of the regset.
6793 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
6794 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
6795 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
6796 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
6797 Likewise.
6798
3ca7dae4
AA
67992014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6800
6801 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
6802 Constify structures.
6803 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
6804 (alphanbsd_aout_gregset): Likewise.
6805 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
6806 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
6807 Likewise.
6808 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
6809 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
6810 Likewise.
6811 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
6812 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
6813 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
6814 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
6815 * m88k-tdep.c (m88k_gregset): Likewise.
6816 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
6817 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
6818 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6819 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
6820 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
6821 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
6822 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
6823 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
6824 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
6825 Likewise.
6826 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
6827 * sh-tdep.h (sh_corefile_gregset): Likewise.
6828 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
6829 * vax-tdep.c (vax_gregset): Likewise.
6830
5876f503
JK
68312014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6832
6833 Fix TLS access for -static -pthread.
6834 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
6835 (try_thread_db_load_1): Initialize it.
6836 (thread_db_get_thread_local_address): Call it if LM is zero.
6837 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
6838 * target.h (struct target_ops) (to_get_thread_local_address): Add
6839 load_module_addr comment.
6840
0256a6ac
PA
68412014-05-21 Pedro Alves <palves@redhat.com>
6842
6843 * dcache.c (dcache_read_memory_partial): If reading the cache line
6844 fails, fallback to reading just the memory the caller wanted.
6845
227533ac
DE
68462014-05-20 Doug Evans <dje@google.com>
6847
6848 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
6849 instead of get_current_arch.
6850
936d2992
PA
68512014-05-20 Pedro Alves <palves@redhat.com>
6852
6853 * NEWS: Mention that compare-sections now works with all targets.
6854
6855 * remote.c (PACKET_qCRC): New enum value.
6856 (remote_verify_memory): Don't send qCRC if the target has no
6857 execution. Use packet_support/packet_ok. If the target doesn't
6858 support the qCRC packet, fallback to a deep memory copy.
6859 (compare_sections_command): Say "target image" instead of "remote
6860 executable".
6861 (_initialize_remote): Add PACKET_qCRC to the list of config
6862 packets that have no associated command. Extend comment.
6863 * target.c (simple_verify_memory, default_verify_memory): New
6864 function.
6865 * target.h (struct target_ops) <to_verify_memory>: Default to
6866 default_verify_memory.
6867 (simple_verify_memory): New declaration.
6868 * target-delegates.c: Regenerate.
6869
e59fa00f
MM
68702014-05-20 Markus Metzger <markus.t.metzger@intel.com>
6871
6872 * record-btrace.c (record_btrace_step_thread): Check for empty history.
6873
f2205de0
HZ
68742014-05-20 Hui Zhu <hui@codesourcery.com>
6875 Yao Qi <yao@codesourcery.com>
6876
6877 PR backtrace/16558
6878 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
6879 and change address of sp and pc.
6880
c4e54771
TT
68812014-05-19 Tom Tromey <tromey@redhat.com>
6882
6883 * gdbtypes.c (rank_function): Use XNEWVEC.
6884 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
6885
73051182
DE
68862014-05-19 Doug Evans <dje@google.com>
6887
6888 * dwarf2read.c (build_type_psymtabs_1): Renamed from
6889 build_type_unit_groups and moved closer to only caller. Remove
6890 arguments. All references updated. Remove outdated .gdb_index
6891 comment.
6892 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
6893 build_type_psymtabs_1.
6894
8832e7e3
DE
68952014-05-19 Doug Evans <dje@google.com>
6896
6897 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
6898 n_type_unit_groups, all_type_unit_groups. All uses removed.
6899 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
6900 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
6901 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
6902 (add_type_unit_group_to_table): Delete.
6903
cd8ae15e
DE
69042014-05-19 Doug Evans <dje@google.com>
6905
6906 * eval.c (evaluate_subexp_standard): Add some comments.
6907
08f4850b
DE
69082014-05-17 Doug Evans <xdje42@gmail.com>
6909
6910 * progspace.c (remove_program_space): Delete, unused.
6911 * progspace.h (remove_program_space): Ditto.
6912
bed8455c
DE
69132014-05-17 Doug Evans <xdje42@gmail.com>
6914
6915 * inferior.c (prune_inferiors): Fix comment.
6916 (remove_inferior_command): Call prune_program_spaces.
6917
8d551b02
DE
69182014-05-16 Doug Evans <dje@google.com>
6919
6920 New command line option -D.
6921 * NEWS: Mention it.
6922 * main.c (set_gdb_data_directory): New function.
6923 (captured_main): Recognize -D. Flag error for --data-directory "".
6924 Call set_gdb_data_directory.
6925 (print_gdb_help): Print --data-directory, -D.
6926 * main.h (set_gdb_data_directory): Declare.
6927 * top.c (staged_gdb_datadir): New static global.
6928 (set_gdb_datadir): Call set_gdb_data_directory
6929 (show_gdb_datadir): New function.
6930 (init_main): Update init of data-directory parameter.
6931
18848e28
GF
69322014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
6933
6934 Import the "dirfd" gnulib module.
6935 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
6936 * gnulib/aclocal.m4: Update.
6937 * gnulib/config.in: Update.
6938 * gnulib/configure: Update.
6939 * gnulib/import/Makefile.am: Update.
6940 * gnulib/import/Makefile.in: Update.
6941 * gnulib/import/dirfd.c: New.
6942 * gnulib/import/m4/dirfd.m4: New.
6943 * gnulib/import/m4/gnulib-cache.m4: Update.
6944 * gnulib/import/m4/gnulib-comp.m4: Update.
6945
95c64f92
YQ
69462014-05-16 Pierre Muller <muller@sourceware.org>
6947 Yao Qi <yao@codesourcery.com>
6948
6949 * valprint.c (print_wchar): Move the code on checking whether
6950 W is a printable wide char to the default branch of switch
6951 statement below. Call wchar_printable instead of gdb_iswprint.
6952
cac395ea
TM
69532014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
6954
19679eca 6955 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
cac395ea
TM
6956 ldr.w and ldrd instructions.
6957
83655187
DE
69582014-05-15 Doug Evans <dje@google.com>
6959
6960 * dwarf2read.c (read_structure_type): Delete outdated comments.
6961
dd756689
TT
69622014-05-14 Tom Tromey <tromey@redhat.com>
6963
6964 * macrocmd.c (print_macro_definition): Reindent.
6965
75ddda77
DE
69662014-05-13 Doug Evans <xdje42@gmail.com>
6967
6968 * python/py-cmd.c (cmdpy_completer): Add comment.
6969 (completers): Make const.
6970
b0f16a3e
SM
69712014-05-13 Simon Marchi <simon.marchi@ericsson.com>
6972
6973 * infrun.c (resume): Remove should_resume (unused). Move up
6974 declaration of resume_ptid.
6975
033c3379
TT
69762014-05-13 Tom Tromey <tromey@redhat.com>
6977
6978 * language.h (unop_type_check): Remove.
6979 (binop_type_check): Don't declare.
6980
9b44a3a5
AA
69812014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
6982
6983 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
6984 call to regcache_raw_collect.
6985
303a33fa
SM
69862014-05-12 Simon Marchi <simon.marchi@ericsson.com>
6987
6988 * mi/mi-console.c (mi_console_raw_packet): Use the value from
6989 mi_console->quote as the quoting character.
6990
196100a0
SM
69912014-05-12 Simon Marchi <simon.marchi@ericsson.com>
6992
6993 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
6994
f989a1c8
TT
69952014-04-29 Tom Tromey <tromey@redhat.com>
6996
6997 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
6998 "show debug varobj".
6999
9404b58f
KM
70002014-05-07 Kyle McMartin <kyle@redhat.com>
7001
7002 Pushed by Joel Brobecker <brobecker@adacore.com>.
7003 * aarch64-tdep.c (aarch64_software_single_step): New function.
7004 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
7005 with aarch64_software_single_step.
7006
5e49ba57
JB
70072014-05-05 Joel Brobecker <brobecker@adacore.com>
7008
7009 GDB 7.7.1 released.
7010
c888a17d
KS
70112014-05-05 Keith Seitz <keiths@redhat.com>
7012
7013 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
7014 variable or history value is successfully parsed.
7015
290a839c
YQ
70162014-05-05 Yao Qi <yao@codesourcery.com>
7017 Pedro Alves <palves@redhat.com>
7018
7019 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
7020 address of blocks that intersects the requested range. Trim
7021 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
7022 sections.
7023 * ctf.c (ctf_xfer_partial): Likewise.
7024
91256dc2
YQ
70252014-05-05 Yao Qi <yao@codesourcery.com>
7026
7027 * printcmd.c (display_command): Remove the check to
7028 target_has_execution.
7029
07284463
MK
70302014-05-03 Mark Kettenis <kettenis@gnu.org>
7031
7032 * ppcobsd-nat.c: Include "obsd-nat.h".
7033 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
7034 add_target.
7035 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
7036
30a1e6cc
SDJ
70372014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
7038
7039 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
7040 and 16-bit signed and unsigned arguments. Update comment.
7041 (stap_parse_probe_arguments): Extend code to handle such
7042 arguments. Use warning instead of complaint to notify about
7043 unrecognized bitness.
7044
f33da99a
SDJ
70452014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
7046
7047 PR breakpoints/16889
7048 * stap-probe.c (stap_parse_probe_arguments): Simplify
7049 check for non-prefixed probes (i.e., probes whose
7050 arguments do not start with "N@"). Always set the
7051 argument type to a sane value.
7052
95cf3b38
DT
70532014-05-01 David Taylor <dtaylor@emc.com>
7054
7055 * remote.c (compare_sections_command): Add -r option to compare
7056 all loadable read-only sections.
7057
1cfdf534
SC
70582014-04-30 Siva Chandra Reddy <sivachandra@google.com>
7059
7060 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
7061 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
7062 Update all callers.
7063 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
7064 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
7065 Remove unused CORE_ADDR argument. Update all callers.
7066
ca4f7f8b
PA
70672014-04-29 Pedro Alves <palves@redhat.com>
7068
7069 * remote.c (struct packet_config) <detect>: Extend comment.
7070 (add_packet_config_cmd): Don't set the config's detect or support
7071 fields here.
7072 (init_all_packet_configs): Also initialize the config's 'detect'
7073 field.
7074 (reset_all_packet_configs_support): New function.
7075 (remote_open_1): Call reset_all_packet_configs_support instead of
7076 init_all_packet_configs.
7077 (_initialize_remote): Initialize all packet configs. Assert that
7078 all packets have an associated command, except a few known
7079 outliers.
7080
11c1ba78
JB
70812014-04-28 Joel Brobecker <brobecker@adacore.com>
7082
7083 * dwarf2read.c (read_subrange_type): Handle dynamic
7084 DW_AT_lower_bound attributes.
7085
8739bc53
JB
70862014-04-28 Joel Brobecker <brobecker@adacore.com>
7087
7088 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
7089 dynamic bounds before computing its upper bound.
7090 (ada_discrete_type_low_bound): Same as above with the lower bound.
7091
6f8a3220
JB
70922014-04-28 Joel Brobecker <brobecker@adacore.com>
7093
7094 * dwarf2read.c (is_dynamic_type): Return true for dynamic
7095 range types. Adjust the array handling implementation to
7096 take advantage of this change.
7097 (resolve_dynamic_range): New function, mostly extracted from
7098 resolve_dynamic_bounds.
7099 (resolve_dynamic_array): New function, mostly extracted from
7100 resolve_dynamic_bounds.
7101 (resolve_dynamic_bounds): Delete.
7102 (resolve_dynamic_type): Reimplement. Add handling of
7103 TYPE_CODE_RANGE types.
7104
4d072ce4
JB
71052014-04-28 Joel Brobecker <brobecker@adacore.com>
7106
7107 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
7108 handling of parallel ___XA types.
7109
52865325
JB
71102014-04-28 Joel Brobecker <brobecker@adacore.com>
7111
7112 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
7113 unnecessary second call to static_unwrap_type.
7114
433e77fa
HZ
71152014-04-27 Hui Zhu <hui@codesourcery.com>
7116
7117 * stack.c (print_frame_info): Call do_gdb_disassembly with
7118 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
7119
b51a69ee
DE
71202014-04-26 Doug Evans <xdje42@gmail.com>
7121
7122 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
7123
7ae1a6a6
PA
71242014-04-25 Pedro Alves <palves@redhat.com>
7125
7126 PR server/16255
7127 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
7128 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
7129 and newline from built string.
7130 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
7131 (linux_ptrace_attach_fail_reason): ... this.
7132 * linux-nat.c (linux_nat_attach): Adjust to use
7133 linux_ptrace_attach_fail_reason.
7134
4082afcc
PA
71352014-04-25 Pedro Alves <palves@redhat.com>
7136
7137 * remote.c (struct remote_state): Remove multi_process_aware,
7138 non_stop_aware, cond_tracepoints, cond_breakpoints,
7139 breakpoint_commands, fast_tracepoints, static_tracepoints,
7140 install_in_trace, disconnected_tracing,
7141 enable_disable_tracepoints, string_tracing, and
7142 augmented_libraries_svr4_read fields.
7143 (remote_multi_process_p): Move further below in the file.
7144 (struct packet_config): Add comments.
7145 (update_packet_config): Delete function.
7146 (show_packet_config_cmd): Use packet_config_support.
7147 (add_packet_config_cmd): Use NULL as set callback.
7148 (packet_ok): "set remote foo-packet"-style commands no longer
7149 change config->supported -- adjust.
7150 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
7151 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
7152 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
7153 (PACKET_QNonStop, PACKET_multiprocess_feature)
7154 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
7155 (PACKET_DisconnectedTracing_feature)
7156 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
7157 (set_remote_protocol_packet_cmd): Delete function.
7158 (packet_config_support, packet_support): New functions.
7159 (set_remote_protocol_Z_packet_cmd): Don't call
7160 update_packet_config.
7161 (remote_query_attached, remote_pass_signals)
7162 (remote_program_signals, remote_threads_info)
7163 (remote_threads_extra_info, remote_start_remote): Use
7164 packet_support.
7165 (remote_start_remote): Use packet_config_support and
7166 packet_support.
7167 (init_all_packet_configs): Set all packets to unknown support,
7168 instead of calling update_packet_config.
7169 (remote_check_symbols): Use packet_support.
7170 (remote_supported_packet): Unconditionally set the packet config's
7171 support status.
7172 (remote_multi_process_feature, remote_non_stop_feature)
7173 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
7174 (remote_breakpoint_commands_feature)
7175 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
7176 (remote_install_in_trace_feature)
7177 (remote_disconnected_tracing_feature)
7178 (remote_enable_disable_tracepoint_feature)
7179 (remote_string_tracing_feature)
7180 (remote_augmented_libraries_svr4_read_feature): Delete functions.
7181 (remote_protocol_features): Adjust to use remote_supported_packet
7182 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
7183 "ConditionalTracepoints", "ConditionalBreakpoints",
7184 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
7185 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
7186 "EnableDisableTracepoints", and "tracenz".
7187 (remote_query_supported): Use packet_support.
7188 (remote_open_1): Adjust.
7189 (extended_remote_attach_1): Use packet_support. Switch on the
7190 result of packet_ok instead of checking whether the packet ended
7191 up disabled.
7192 (remote_vcont_resume): Use packet_support.
7193 (remote_resume, remote_stop_ns, fetch_register_using_p)
7194 (remote_prepare_to_store, store_register_using_P)
7195 (check_binary_download, remote_write_bytes): Use packet_support.
7196 (remote_vkill): Use packet_support. Switch on the result of
7197 packet_ok instead of checking whether the packet ended up
7198 disabled.
7199 (extended_remote_supports_disable_randomization): Use
7200 packet_support.
7201 (extended_remote_run): Switch on the result of packet_ok instead
7202 of checking whether the packet ended up disabled.
7203 (remote_insert_breakpoint, remote_remove_breakpoint)
7204 (remote_insert_watchpoint, remote_remove_watchpoint)
7205 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
7206 packet_support.
7207 (remote_search_memory): Use packet_config_support.
7208 (remote_get_thread_local_address, remote_get_tib_address)
7209 (remote_hostio_send_command, remote_can_execute_reverse): Use
7210 packet_support.
7211 (remote_supports_cond_tracepoints)
7212 (remote_supports_cond_breakpoints)
7213 (remote_supports_fast_tracepoints)
7214 (remote_supports_static_tracepoints)
7215 (remote_supports_install_in_trace)
7216 (remote_supports_enable_disable_tracepoint)
7217 (remote_supports_string_tracing)
7218 (remote_can_run_breakpoint_commands): Rewrite, checking whether
7219 the packet config says the feature is enabled or disabled.
7220 (remote_download_tracepoint, remote_trace_set_readonly_regions)
7221 (remote_get_trace_status): Use packet_support.
7222 (remote_set_disconnected_tracing): Adjust to check whether the
7223 feature is enabled with packet_support.
7224 (remote_set_trace_buffer_size, remote_use_agent)
7225 (remote_can_use_agent, remote_supports_btrace): Use
7226 packet_support.
7227 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
7228 Use packet_config_support.
7229 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
7230 the packet config says the feature is enabled or disabled.
7231 (set_range_stepping): Use packet_support.
7232
bdb52a22
TT
72332014-04-25 Tom Tromey <tromey@redhat.com>
7234
7235 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
7236 argument.
7237
e9475ead
SA
72382014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
7239
7240 * NEWS: Mention support for C99 variable length arrays.
7241
82eacd52
JB
72422014-04-24 Joel Brobecker <brobecker@adacore.com>
7243
7244 * ada-lang.c (standard_exc): Expand introductory comment.
7245
01f9f808
MS
72462014-04-24 Michael Sturm <michael.sturm@mintel.com>
7247 Walfred Tedeschi <walfred.tedeschi@intel.com>
7248
7249 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
7250 AVX512 registers.
7251 (amd64_linux_read_description): Add code to handle AVX512 xstate
7252 mask and return respective tdesc.
7253 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
7254 and features/i386/x32-avx512-linux.c.
7255 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
7256 (amd64_linux_core_read_description): Add code to handle AVX512
7257 xstate mask and return respective tdesc.
7258 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
7259 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
7260 calculation.
7261 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
7262 (tdesc_amd64_avx512_linux): New prototype.
7263 (tdesc_x32_avx512_linux): Likewise.
7264 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
7265 features/i386/x32-avx512.c.
7266 (amd64_ymm_avx512_names): New register names for pseudo
7267 registers YMM16-31.
7268 (amd64_ymmh_avx512_names): New register names for raw registers
7269 YMMH16-31.
7270 (amd64_k_names): New register names for K registers.
7271 (amd64_zmmh_names): New register names for ZMM raw registers.
7272 (amd64_zmm_names): New registers names for ZMM pseudo registers.
7273 (amd64_xmm_avx512_names): New register names for XMM16-31
7274 registers.
7275 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
7276 registers.
7277 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
7278 if feature is present.
7279 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
7280 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
7281 (AMD64_NUM_REGS): Adjust to new number of registers.
7282 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
7283 registers supplied via XSTATE by AVX512 registers.
7284 (i386_linux_read_description): Add case for AVX512.
7285 * i386-linux-tdep.c: Include i386-avx512-linux.c.
7286 (i386_linux_gregset_reg_offset): Add AVX512 registers.
7287 (i386_linux_core_read_description): Add case for AVX512.
7288 (i386_linux_init_abi): Install supported register note section
7289 for AVX512.
7290 (_initialize_i386_linux_tdep): Add call to tdesc init function for
7291 AVX512.
7292 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
7293 registers to be number of zmm7h + 1.
7294 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
7295 * i386-tdep.c: Include features/i386/i386-avx512.c.
7296 (i386_zmm_names): Add ZMM pseudo register names array.
7297 (i386_zmmh_names): Add ZMM raw register names array.
7298 (i386_k_names): Add K raw register names array.
7299 (num_lower_zmm_regs): Add constant for the number of lower ZMM
7300 registers. AVX512 has 16 more ZMM registers than there are YMM
7301 registers.
7302 (i386_zmmh_regnum_p): Add function to look up register number of
7303 ZMM raw registers.
7304 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
7305 (i386_k_regnum_p): Likewise for K raw registers.
7306 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
7307 registers added by AVX512.
7308 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
7309 registers added by AVX512.
7310 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
7311 added by AVX512.
7312 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
7313 (i386_pseudo_register_name): Add ZMM pseudo registers.
7314 (i386_zmm_type): Construct and return vector registers type for ZMM
7315 registers.
7316 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
7317 ZMM0-31 pseudo registers and K registers.
7318 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
7319 and YMM16-31 registers from register cache.
7320 (i386_pseudo_register_write): Add code to write K, ZMM and
7321 YMM16-31 registers.
7322 (i386_register_reggroup_p): Add code to include/exclude AVX512
7323 registers in/from respective register groups.
7324 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
7325 registers if feature is present in xcr0.
7326 (i386_gdbarch_init): Add code to initialize AVX512 feature
7327 variables in tdep structure, wire in pseudo registers and call
7328 initialize_tdesc_i386_avx512.
7329 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
7330 variables.
7331 (i386_regnum): Add AVX512 registers.
7332 (I386_SSE_NUM_REGS): New define for number of SSE registers.
7333 (I386_AVX_NUM_REGS): Likewise for AVX registers.
7334 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
7335 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
7336 512 bits wide.
7337 (i386_xmm_avx512_regnum_p): New prototype for register look up.
7338 (i386_ymm_avx512_regnum_p): Likewise.
7339 (i386_k_regnum_p): Likewise.
7340 (i386_zmm_regnum_p): Likewise.
7341 (i386_zmmh_regnum_p): Likewise.
7342 * i387-tdep.c : Update year in copyright notice.
7343 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
7344 XSAVE buffer.
7345 (XSAVE_YMM_AVX512_ADDR): New macro.
7346 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
7347 XSAVE buffer.
7348 (XSAVE_XMM_AVX512_ADDR): New macro.
7349 (xsave_avx512_k_offset): New table for K register offsets in
7350 XSAVE buffer.
7351 (XSAVE_AVX512_K_ADDR): New macro.
7352 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
7353 in XSAVE buffer.
7354 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
7355 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
7356 buffer.
7357 (i387_collect_xsave): Add code to collect AVX512 registers from
7358 XSAVE buffer.
7359 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
7360 of XMM16-31 registers.
7361 (I387_NUM_K_REGS): New define for number of K registers.
7362 (I387_K0_REGNUM): New define for K0 register number.
7363 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
7364 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
7365 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
7366 registers.
7367 (I387_YMM16H_REGNUM): New define for YMM16H register number.
7368 (I387_XMM16_REGNUM): New define for XMM16 register number.
7369 (I387_YMM0_REGNUM): New define for YMM0 register number.
7370 (I387_KEND_REGNUM): New define for last K register number.
7371 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
7372 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
7373 number.
7374 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
7375 number.
7376 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
7377 size.
7378 * features/Makefile: Add AVX512 related files.
7379 * features/i386/32bit-avx512.xml: New file.
7380 * features/i386/64bit-avx512.xml: Likewise.
7381 * features/i386/amd64-avx512-linux.c: Likewise.
7382 * features/i386/amd64-avx512-linux.xml: Likewise.
7383 * features/i386/amd64-avx512.c: Likewise.
7384 * features/i386/amd64-avx512.xml: Likewise.
7385 * features/i386/i386-avx512-linux.c: Likewise.
7386 * features/i386/i386-avx512-linux.xml: Likewise.
7387 * features/i386/i386-avx512.c: Likewise.
7388 * features/i386/i386-avx512.xml: Likewise.
7389 * features/i386/x32-avx512-linux.c: Likewise.
7390 * features/i386/x32-avx512-linux.xml: Likewise.
7391 * features/i386/x32-avx512.c: Likewise.
7392 * features/i386/x32-avx512.xml: Likewise.
7393 * regformats/i386/amd64-avx512-linux.dat: New file.
7394 * regformats/i386/amd64-avx512.dat: Likewise.
7395 * regformats/i386/i386-avx512-linux.dat: Likewise.
7396 * regformats/i386/i386-avx512.dat: Likewise.
7397 * regformats/i386/x32-avx512-linux.dat: Likewise.
7398 * regformats/i386/x32-avx512.dat: Likewise.
7399 * NEWS: Add note about new support for AVX512.
7400
7401
08351840
PA
74022014-04-23 Pedro Alves <palves@redhat.com>
7403
7404 * breakpoint.c (insert_bp_location): Tolerate errors if the
7405 breakpoint is set in a user-loaded objfile.
7406 (remove_breakpoint_1): Likewise. Also tolerate errors if the
7407 location is marked shlib_disabled. If the breakpoint is set in a
7408 user-loaded objfile is a GDB-side memory breakpoint, validate it
7409 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
7410 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
7411 flag.
7412 * mem-break.c (memory_validate_breakpoint): New function.
7413 * objfiles.c (userloaded_objfile_contains_address_p): New
7414 function.
7415 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
7416 * target.h (memory_validate_breakpoint): New declaration.
7417
076855f9
PA
74182014-04-23 Pedro Alves <palves@redhat.com>
7419
7420 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
7421 the breakpoint is set in a shared library, only suppress
7422 errors for software breakpoints, not hardware breakpoints.
7423
483805cf
PA
74242014-04-22 Pedro Alves <palves@redhat.com>
7425
7426 * infrun.c (schedlock_applies): New function, factored out from
7427 find_thread_needs_step_over.
7428 (find_thread_needs_step_over): Use it.
7429 (switch_back_to_stepped_thread): Always clear trap_expected if the
7430 step over is finished. Return early if scheduler locking applies.
7431 Look for the stepping thread and a potential step-over thread with
7432 a single loop.
7433 (currently_stepping_or_nexting_callback): Delete.
7434
a75fef0e
NC
74352014-04-22 Nick Clifton <nickc@redhat.com>
7436
7437 * NEWS: Mention that ARM sim now supports tracing.
7438
48b6e87e
YQ
74392014-04-22 Yao Qi <yao@codesourcery.com>
7440
7441 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
7442 to ...
7443 * tracefile.c (tracefile_fetch_registers): ... it. New
7444 function.
7445 * tracefile.h (tracefile_fetch_registers): Declare.
7446 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
7447 tracefile_fetch_registers.
7448
17617f2d
EZ
74492014-04-19 Eli Zaretskii <eliz@gnu.org>
7450
7451 PR gdb/14018
7452 * windows-nat.c (thread_rec): Don't display a warning when
7453 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
7454 fails for any reason, set th->suspended to -1, so that we don't
7455 try to resume such a thread. Also, don't return NULL in these
7456 cases, to avoid completely ruin the session due to "PC register is
7457 not available" error.
7458 (do_windows_fetch_inferior_registers): Check errors in
7459 GetThreadContext call.
7460 (windows_continue): Accept an additional argument KILLED; if not
7461 zero, ignore errors in the SetThreadContext call, since the
7462 inferior was killed and is shutting down.
7463 (windows_resume, get_windows_debug_event)
7464 (windows_create_inferior, windows_mourn_inferior)
7465 (windows_kill_inferior): All callers of windows_continue changed
7466 to adjust to its new calling sequence.
7467
5723a6fd
YQ
74682014-04-19 Yao Qi <yao@codesourcery.com>
7469
7470 * ctf.c (ctf_open): Call post_create_inferior.
7471
614d5099
YQ
74722014-04-19 Yao Qi <yao@codesourcery.com>
7473
7474 * ctf.c (handle_id): New static variable.
7475 (ctf_open_dir): Get handle_id from bt_context_add_trace return
7476 value. Get the declaration of event "register" and get length
7477 of field "contents".
7478
dac3e710
YQ
74792014-04-19 Yao Qi <yao@codesourcery.com>
7480
7481 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
7482
2bca57ba
SC
74832014-04-18 Siva Chandra Reddy <sivachandra@google.com>
7484
7485 * valops.c (oload_method_static): Remove unnecessary argument
7486 METHOD. Update all callers.
7487
51d48146
PA
74882014-04-18 Pedro alves <palves@redhat.com>
7489 Tom Tromey <tromey@redhat.com>
7490
7491 PR backtrace/15558
7492 * frame.c (get_prev_frame_1): Rename to ...
7493 (get_prev_frame_always): ... this, and make extern. Adjust.
7494 (skip_artificial_frames): Use get_prev_frame_always.
7495 (frame_unwind_caller_id, frame_pop, get_prev_frame)
7496 (get_frame_unwind_stop_reason): Adjust to rename.
7497 * frame.h (get_prev_frame_always): Declare.
7498 * inline-frame.c: Include frame.h.
7499 (inline_frame_this_id): Use get_prev_frame_always.
7500
1bdad2e0
TG
75012014-04-18 Tristan Gingold <gingold@adacore.com>
7502
7503 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
7504 code by using bfd_mach_o_get_base_address.
7505
7ce16bd4
UW
75062014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
7507
7508 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
7509 (spu_ax_pseudo_register_collect): New function.
7510 (spu_ax_pseudo_register_push_stack): Likewise.
7511 (spu_dwarf_reg_to_regnum): Likewise.
7512 (spu_gdbarch_init): Install them. Append DWARF unwinders.
7513
2ed3c037
UW
75142014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
7515
7516 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
7517 Replace FRAME argument with FRAME_ID.
7518 * gdbarch.c, gdbarch.h: Regenerate.
7519 * findvar.c (default_value_from_register): Add GDBARCH argument;
7520 replace FRAME by FRAME_ID. No longer call get_frame_id.
7521 (value_from_register): Update call to gdbarch_value_from_register.
7522 * value.h (default_value_from_register): Update prototype.
7523 * s390-linux-tdep.c (s390_value_from_register): Update interface
7524 and call to default_value_from_register.
7525 * spu-tdep.c (spu_value_from_register): Likewise.
7526
7527 * findvar.c (address_from_register): Remove TYPE argument.
7528 Do not call value_from_register; use gdbarch_value_from_register
7529 with null_frame_id instead.
7530 * value.h (address_from_register): Update prototype.
7531 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
7532 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
7533 address_from_register interface change.
7534
71e50e83
YQ
75352014-04-17 Yao Qi <yao@codesourcery.com>
7536
7537 * gdbtypes.h: Update comments to link to types and macros'
7538 definitions.
7539
7a23c549
SC
75402014-04-16 Siva Chandra Reddy <sivachandra@google.com>
7541
7542 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
7543
22869d73
KS
75442014-04-16 Keith Seitz <keiths@redhat.com>
7545
7546 PR gdb/15827
7547 * dwarf2read.c (skip_one_die): Check that all relative-offset
7548 sibling DIEs fall within range of the current reader's buffer.
7549 (read_partial_die): Likewise.
7550
c4f87ca6
KS
75512014-04-16 Keith Seitz <keiths@redhat.com>
7552
7553 PR c++/16597
7554 * cp-namespace.c (lookup_symbol_file): If the type name of
7555 `this' is NULL, return immediately.
7556
b50c8614
KS
75572014-04-14 Keith Seitz <keiths@redhat.com>
7558
7559 PR c++/16253
7560 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
7561 from symbol_matches_domain in symtab.c. All local callers
7562 of symbol_matches_domain updated.
7563 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
7564 search STRUCT_DOMAIN.
7565 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
7566 independently. standard_lookup will do that automatically.
7567 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
7568 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7569 (cp_lookup_symbol_in_namespace): Likewise.
7570 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
7571 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
7572 may return a STRUCT_DOMAIN match.
7573 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
7574 * cp-support.c: Include language.h.
7575 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
7576 VAR_DOMAIN.
7577 * psymtab.c (match_partial_symbol): Compare the requested
7578 domain with the symbol's domain directly.
7579 (lookup_partial_symbol): Likewise.
7580 * symtab.c (lookup_symbol_in_language): Explain when/why
7581 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7582 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
7583 appropriate languages.
7584 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
7585 and moved to ada-lang.c
7586 (lookup_block_symbol): Explain that this function only returns
7587 symbol matching the requested DOMAIN.
7588 Compare the requested domain with the symbol's domain directly.
7589 (iterate_over_symbols): Compare the requested domain with the
7590 symbol's domain directly.
7591 * symtab.h (symbol_matches_domain): Remove.
7592
3d567982
TT
75932014-04-14 Tom Tromey <tromey@redhat.com>
7594
7595 PR c++/15246:
7596 * c-exp.y (type_aggregate_p): New function.
7597 (qualified_name, classify_inner_name): Use it.
7598 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
7599 and TYPE_TARGET_TYPE of an enum type.
7600 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
7601 an enum type.
7602 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
7603 handle TYPE_DECLARED_CLASS.
7604 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
7605 types.
7606 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
7607 * valops.c (enum_constant_from_type): New function.
7608 (value_aggregate_elt): Use it.
7609 * cp-namespace.c (cp_lookup_nested_symbol): Handle
7610 TYPE_CODE_ENUM.
7611
c848d642
TT
76122014-04-14 Tom Tromey <tromey@redhat.com>
7613
7614 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
7615 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
7616 const.
7617 * value.h (value_aggregate_elt): Update.
7618
0626fc76
TT
76192014-04-14 Tom Tromey <tromey@redhat.com>
7620
7621 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
7622
5ecaaa66
SA
76232014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7624
7625 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7626 (evaluate_subexp_standard): Pass noside argument.
7627 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7628 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7629 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7630 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7631 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7632
1612e0c0
SA
76332014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7634
7635 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7636 points to a constant blob.
7637
c451ebe5
SA
76382014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7639
7640 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7641 property and store it as the high bound and flag the range accordingly.
7642 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7643 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7644 * gdbtypes.h (enum range_flags): New enum.
7645 (struct range_bounds): Add flags member.
7646
1d42e4c4
SA
76472014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7648
7649 * c-typeprint.c (c_type_print_varspec_suffix): Added
7650 check for not yet resolved high bound. If unresolved, print
7651 "variable length" string to the console instead of random
7652 length.
7653
9f1f738a
SA
76542014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7655
7656 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
7657 value.
7658 (ada_template_to_fixed_record_type_1): Likewise.
7659 (ada_to_fixed_type_1): Likewise.
7660 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7661 (cp_print_value): Likewise.
7662 * d-valprint.c (dynamic_array_type): Likewise.
7663 * findvar.c (address_of_variable): Likewise.
7664 * jv-valprint.c (java_value_print): Likewise.
7665 * valops.c (value_ind): Likewise.
7666 * value.c (coerce_ref): Likewise.
7667
3c8452d4
SA
76682014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7669
7670 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7671 value and retrieve the dynamic type size.
7672
4ad88275
SA
76732014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7674
7675 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7676 passed to sizeof is dynamic evaluate the argument to compute the length.
7677
80180f79
SA
76782014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7679 Joel Brobecker <brobecker@adacore.com>
7680
7681 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7682 (dwarf2_evaluate_property): New function.
7683 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7684 * dwarf2read.c (attr_to_dynamic_prop): New function.
7685 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7686 attribute.
7687 * gdbtypes.c: Include dwarf2loc.h.
7688 (is_dynamic_type): New function.
7689 (resolve_dynamic_type): New function.
7690 (resolve_dynamic_bounds): New function.
7691 (get_type_length): New function.
7692 (check_typedef): Use get_type_length to compute type length.
7693 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7694 (TYPE_LOW_BOUND_KIND): New macro.
7695 (is_dynamic_type): New function prototype.
7696 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7697 to resolve dynamic properties of the type. Update comment.
7698 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7699
a1556843
RH
77002014-04-14 Richard Henderson <rth@redhat.com>
7701
7702 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
7703
0be03e84
DE
77042014-04-12 Siva Chandra Reddy <sivachandra@google.com>
7705 Doug Evans <xdje42@gmail.com>
7706
7707 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
7708 dereference TYPE_CODE_REF values.
7709
6b662e19
JB
77102014-04-11 Joel Brobecker <brobecker@adacore.com>
7711
7712 Revert the following changes due to regressions:
7713
7714 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7715 (dwarf2_evaluate_property): New function.
7716 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7717 * dwarf2read.c (attr_to_dynamic_prop): New function.
7718 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7719 attribute.
7720 * gdbtypes.c: Include dwarf2loc.h.
7721 (is_dynamic_type): New function.
7722 (resolve_dynamic_type): New function.
7723 (resolve_dynamic_bounds): New function.
7724 (get_type_length): New function.
7725 (check_typedef): Use get_type_length to compute type length.
7726 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7727 (TYPE_LOW_BOUND_KIND): New macro.
7728 (is_dynamic_type): New function prototype.
7729 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7730 to resolve dynamic properties of the type. Update comment.
7731 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7732
7733 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7734 passed to sizeof is dynamic evaluate the argument to compute the length.
7735
7736 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7737 value and retrieve the dynamic type size.
7738
7739 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7740 (ada_template_to_fixed_record_type_1): Likewise.
7741 (ada_to_fixed_type_1): Likewise.
7742 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7743 (cp_print_value): Likewise.
7744 * d-valprint.c (dynamic_array_type): Likewise.
7745 * eval.c (evaluate_subexp_with_coercion): Likewise.
7746 * findvar.c (address_of_variable): Likewise.
7747 * jv-valprint.c (java_value_print): Likewise.
7748 * valops.c (value_ind): Likewise.
7749 * value.c (coerce_ref): Likewise.
7750
7751 * c-typeprint.c (c_type_print_varspec_suffix): Added
7752 check for not yet resolved high bound. If unresolved, print
7753 "variable length" string to the console instead of random
7754 length.
7755
7756 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7757 property and store it as the high bound and flag the range accordingly.
7758 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7759 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7760 * gdbtypes.h (enum range_flags): New enum.
7761 (struct range_bounds): Add flags member.
7762
7763 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7764 points to a constant blob.
7765
7766 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7767 (evaluate_subexp_standard): Pass noside argument.
7768 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7769 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7770 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7771 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7772 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7773
245a5f0b
KS
77742014-04-11 Keith Seitz <keiths@redhat.com>
7775
7776 PR c++/16675
7777 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
7778 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
7779 reference types.
7780
3bce8237
SA
77812014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7782
7783 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7784 (evaluate_subexp_standard): Pass noside argument.
7785 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7786 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7787 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7788 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7789 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7790
92b09522
SA
77912014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7792
7793 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7794 points to a constant blob.
7795
e1969afb
SA
77962014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7797
7798 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7799 property and store it as the high bound and flag the range accordingly.
7800 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7801 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7802 * gdbtypes.h (enum range_flags): New enum.
7803 (struct range_bounds): Add flags member.
7804
b86138fb
SA
78052014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7806
7807 * c-typeprint.c (c_type_print_varspec_suffix): Added
7808 check for not yet resolved high bound. If unresolved, print
7809 "variable length" string to the console instead of random
7810 length.
7811
bcd629a4
SA
78122014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7813
7814 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7815 (ada_template_to_fixed_record_type_1): Likewise.
7816 (ada_to_fixed_type_1): Likewise.
7817 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7818 (cp_print_value): Likewise.
7819 * d-valprint.c (dynamic_array_type): Likewise.
7820 * eval.c (evaluate_subexp_with_coercion): Likewise.
7821 * findvar.c (address_of_variable): Likewise.
7822 * jv-valprint.c (java_value_print): Likewise.
7823 * valops.c (value_ind): Likewise.
7824 * value.c (coerce_ref): Likewise.
7825
04b19544
SA
78262014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7827
7828 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7829 value and retrieve the dynamic type size.
7830
26cb189f
SA
78312014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7832
7833 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7834 passed to sizeof is dynamic evaluate the argument to compute the length.
7835
37c1ab67
SA
78362014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7837
7838 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7839 (dwarf2_evaluate_property): New function.
7840 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7841 * dwarf2read.c (attr_to_dynamic_prop): New function.
7842 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7843 attribute.
7844 * gdbtypes.c: Include dwarf2loc.h.
7845 (is_dynamic_type): New function.
7846 (resolve_dynamic_type): New function.
7847 (resolve_dynamic_bounds): New function.
7848 (get_type_length): New function.
7849 (check_typedef): Use get_type_length to compute type length.
7850 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7851 (TYPE_LOW_BOUND_KIND): New macro.
7852 (is_dynamic_type): New function prototype.
7853 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7854 to resolve dynamic properties of the type. Update comment.
7855 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7856
729efb13
SA
78572014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7858
7859 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
7860 declaring high/low bounds and change uses accordingly. Call
7861 create_range_type instead of create_static_range_type.
7862 * gdbtypes.c (create_range_type): New function.
7863 (create_range_type): Convert bounds into struct bound_prop and pass
7864 them to create_range_type.
7865 * gdbtypes.h (struct bound_prop): New struct.
7866 (create_range_type): New function prototype.
7867 (struct range_bounds): Use struct bound_prop instead of LONGEST for
7868 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
7869 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
7870 part of the bound.
7871 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
7872
0c9c3474
SA
78732014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7874
7875 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
7876 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
7877 * ada-lang.c: All uses of create_range_type updated.
7878 * coffread.c: All uses of create_range_type updated.
7879 * dwarf2read.c: All uses of create_range_type updated.
7880 * f-exp.y: All uses of create_range_type updated.
7881 * m2-valprint.c: All uses of create_range_type updated.
7882 * mdebugread.c: All uses of create_range_type updated.
7883 * stabsread.c: All uses of create_range_type updated.
7884 * valops.c: All uses of create_range_type updated.
7885 * valprint.c: All uses of create_range_type updated.
7886
9d497a19
PA
78872014-04-10 Pedro Alves <palves@redhat.com>
7888
7889 * breakpoint.c (single_step_breakpoints)
7890 (single_step_gdbarch): Move up in the file.
7891 (one_breakpoint_xfer_memory): New function, factored out from ...
7892 (breakpoint_xfer_memory): ... here. Also process single-step
7893 breakpoints.
7894
15a9128a
TG
78952014-04-09 Tristan Gingold <gingold@adacore.com>
7896
7897 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
7898 comments.
7899 (darwin_decode_exception_message): Free port only after use.
7900
9c97a070
PL
79012014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
7902
7903 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
7904 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
7905 when setting the size of call_length.
7906
7af389b8
SC
79072014-04-07 Siva Chandra Reddy <sivachandra@google.com>
7908
7909 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
7910 dereference TYPE_CODE_REF values.
7911
86ad98c3
JB
79122014-04-07 Joel Brobecker <brobecker@adacore.com>
7913
7914 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
7915 end of warning message.
7916
b0aeadb3
DE
79172014-04-03 Doug Evans <dje@google.com>
7918
7919 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
7920 of stub_comp_unit_die, stub_comp_dir is non-NULL.
7921
5979d6b6
AM
79222014-04-02 Alan Modra <amodra@gmail.com>
7923
7924 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
7925 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
7926 (struct symbol_file_add_from_memory_args): Add size field.
7927 (find_vdso_size): New function.
7928 (add_vsyscall_page): Attempt to find vdso size.
7929
0d60c288
DE
79302014-04-01 Doug Evans <dje@google.com>
7931
7932 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
7933
a41f2563
TG
79342014-04-01 Tristan Gingold <gingold@adacore.com>
7935
7936 * darwin-nat.c (darwin_encode_reply): Add prototype.
7937 (darwin_decode_exception_message): Reply to unknown inferiors.
7938 (darwin_decode_message): Handle message by id. Ignore message
7939 to unknown inferior.
7940 (darwin_wait): Discard unknown messages, add debug trace.
7941
11a865c8
DE
79422014-03-31 Doug Evans <dje@google.com>
7943
7944 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
7945 comp_dir_string.
7946
770e7fc7
DE
79472014-03-31 Doug Evans <dje@google.com>
7948
7949 New option "set print symbol-loading".
7950 * NEWS: Mention it.
7951 * solib.c (solib_read_symbols): Only print symbol loading messages
7952 if requested.
7953 (solib_add): If symbol loading is in "brief" mode, notify user
7954 symbols are being loaded.
7955 (reload_shared_libraries_1): Ditto.
7956 * symfile.c (print_symbol_loading_off): New static global.
7957 (print_symbol_loading_brief): New static global.
7958 (print_symbol_loading_full): New static global.
7959 (print_symbol_loading_enums): New static global.
7960 (print_symbol_loading): New static global.
7961 (print_symbol_loading_p): New function.
7962 (symbol_file_add_with_addrs): Only print symbol loading messages
7963 if requested.
7964 (_initialize_symfile): Register "print symbol-loading" set/show
7965 command.
7966 * symfile.h (print_symbol_loading_p): Declare.
7967
c32c64b7
DE
79682014-03-30 Doug Evans <xdje42@gmail.com>
7969
7970 * infrun.c (set_last_target_status): New function.
7971 (handle_inferior_event): Call it.
7972
7c0bc051
DE
79732014-03-30 Doug Evans <xdje42@gmail.com>
7974
7975 * inferior.h (enum stop_kind): Improve comment.
7976
8776cfe9
JB
79772014-03-28 Joel Brobecker <brobecker@adacore.com>
7978
7979 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
7980 a reference, strip the reference layer before calling
7981 the lang_ops value_has_mutated callback.
7982
410a0ff2
SDJ
79832014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
7984
7985 Remove some globals from our parser.
7986 * language.c (unk_lang_parser): Add "struct parser_state"
7987 argument.
7988 * language.h (struct language_defn) <la_parser>: Likewise.
7989 * parse.c (expout, expout_size, expout_ptr): Remove variables.
7990 (initialize_expout): Add "struct parser_state" argument.
7991 Rewrite function to use the parser state.
7992 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
7993 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
7994 write_exp_elt_longcst, write_exp_elt_dblcst,
7995 write_exp_elt_decfloatcst, write_exp_elt_type,
7996 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
7997 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
7998 write_dollar_variable): Likewise.
7999 (parse_exp_in_context_1): Use parser state.
8000 (insert_type_address_space): Add "struct parser_state" argument.
8001 Use parser state.
8002 (increase_expout_size): New function.
8003 * parser-defs.h: Forward declare "struct language_defn" and
8004 "struct parser_state".
8005 (expout, expout_size, expout_ptr): Remove extern declarations.
8006 (parse_gdbarch, parse_language): Rewrite macro declarations to
8007 accept the parser state.
8008 (struct parser_state): New struct.
8009 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
8010 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
8011 write_exp_elt_decfloatcst, write_exp_elt_type,
8012 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
8013 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
8014 write_exp_msymbol, write_dollar_variable,
8015 mark_struct_expression, insert_type_address_space): Add "struct
8016 parser_state" argument.
8017 (increase_expout_size): New function.
8018 * utils.c (do_clear_parser_state): New function.
8019 (make_cleanup_clear_parser_state): Likewise.
8020 * utils.h (make_cleanup_clear_parser_state): New function
8021 prototype.
8022 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
8023 Update calls to write_exp* in order to pass the parser state.
8024 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
8025 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
8026 (i386_stap_parse_special_token_three_arg_disp): Likewise.
8027 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
8028 * stap-probe.c (stap_parse_register_operand): Likewise.
8029 (stap_parse_single_operand): Likewise.
8030 (stap_parse_argument_1): Likewise.
8031 (stap_parse_argument): Use parser state.
8032 * stap-probe.h: Include "parser-defs.h".
8033 (struct stap_parse_info) <pstate>: New field.
8034 * c-exp.y (parse_type): Rewrite to use parser state.
8035 (yyparse): Redefine to c_parse_internal.
8036 (pstate): New global variable.
8037 (parse_number): Add "struct parser_state" argument.
8038 (write_destructor_name): Likewise.
8039 (type_exp): Update calls to write_exp* and similars in order to
8040 use parser state.
8041 (exp1, exp, variable, qualified_name, space_identifier,
8042 typename, typebase): Likewise.
8043 (write_destructor_name, parse_number, lex_one_token,
8044 classify_name, classify_inner_name, c_parse): Add "struct
8045 parser_state" argument. Update function to use parser state.
8046 * c-lang.h: Forward declare "struct parser_state".
8047 (c_parse): Add "struct parser_state" argument.
8048 * ada-exp.y (parse_type): Rewrite macro to use parser state.
8049 (yyparse): Redefine macro to ada_parse_internal.
8050 (pstate): New variable.
8051 (write_int, write_object_renaming, write_var_or_type,
8052 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
8053 type_int, type_long, type_long_long, type_float, type_double,
8054 type_long_double, type_char, type_boolean, type_system_address):
8055 Add "struct parser_state" argument.
8056 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
8057 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
8058 var_or_type, aggregate, aggregate_component_list,
8059 positional_list, others, component_group,
8060 component_associations): Update calls to write_exp* and similar
8061 functions in order to use parser state.
8062 (ada_parse, write_var_from_sym, write_int,
8063 write_exp_op_with_string, write_object_renaming,
8064 find_primitive_type, write_selectors, write_ambiguous_var,
8065 write_var_or_type, write_name_assoc, type_int, type_long,
8066 type_long_long, type_float, type_double, type_long_double,
8067 type_char, type_boolean, type_system_address): Add "struct
8068 parser_state" argument. Adjust function to use parser state.
8069 * ada-lang.c (parse): Likewise.
8070 * ada-lang.h: Forward declare "struct parser_state".
8071 (ada_parse): Add "struct parser_state" argument.
8072 * ada-lex.l (processInt, processReal): Likewise. Adjust all
8073 calls to both functions.
8074 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
8075 parser state.
8076 (yyparse): Redefine macro to f_parse_internal.
8077 (pstate): New variable.
8078 (parse_number): Add "struct parser_state" argument.
8079 (type_exp, exp, subrange, typebase): Update calls to write_exp*
8080 and similars in order to use parser state.
8081 (parse_number): Adjust code to use parser state.
8082 (yylex): Likewise.
8083 (f_parse): New function.
8084 * f-lang.h: Forward declare "struct parser_state".
8085 (f_parse): Add "struct parser_state" argument.
8086 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
8087 parser state.
8088 (yyparse): Redefine macro for java_parse_internal.
8089 (pstate): New variable.
8090 (push_expression_name, push_expression_name, insert_exp): Add
8091 "struct parser_state" argument.
8092 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
8093 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
8094 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
8095 PostIncrementExpression, PostDecrementExpression,
8096 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
8097 UnaryExpressionNotPlusMinus, CastExpression,
8098 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
8099 RelationalExpression, EqualityExpression, AndExpression,
8100 ExclusiveOrExpression, InclusiveOrExpression,
8101 ConditionalAndExpression, ConditionalOrExpression,
8102 ConditionalExpression, Assignment, LeftHandSide): Update
8103 calls to write_exp* and similars in order to use parser state.
8104 (parse_number): Ajust code to use parser state.
8105 (yylex): Likewise.
8106 (java_parse): New function.
8107 (push_variable): Add "struct parser_state" argument. Adjust
8108 code to user parser state.
8109 (push_fieldnames, push_qualified_expression_name,
8110 push_expression_name, insert_exp): Likewise.
8111 * jv-lang.h: Forward declare "struct parser_state".
8112 (java_parse): Add "struct parser_state" argument.
8113 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
8114 parser state.
8115 (yyparse): Redefine macro to m2_parse_internal.
8116 (pstate): New variable.
8117 (type_exp, exp, fblock, variable, type): Update calls to
8118 write_exp* and similars to use parser state.
8119 (yylex): Likewise.
8120 (m2_parse): New function.
8121 * m2-lang.h: Forward declare "struct parser_state".
8122 (m2_parse): Add "struct parser_state" argument.
8123 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
8124 * objc-lang.h: Forward declare "struct parser_state".
8125 (end_msglist): Add "struct parser_state" argument.
8126 * p-exp.y (parse_type): Rewrite macro to use parser state.
8127 (yyparse): Redefine macro to pascal_parse_internal.
8128 (pstate): New variable.
8129 (parse_number): Add "struct parser_state" argument.
8130 (type_exp, exp1, exp, qualified_name, variable): Update calls to
8131 write_exp* and similars in order to use parser state.
8132 (parse_number, yylex): Adjust code to use parser state.
8133 (pascal_parse): New function.
8134 * p-lang.h: Forward declare "struct parser_state".
8135 (pascal_parse): Add "struct parser_state" argument.
8136 * go-exp.y (parse_type): Rewrite macro to use parser state.
8137 (yyparse): Redefine macro to go_parse_internal.
8138 (pstate): New variable.
8139 (parse_number): Add "struct parser_state" argument.
8140 (type_exp, exp1, exp, variable, type): Update calls to
8141 write_exp* and similars in order to use parser state.
8142 (parse_number, lex_one_token, classify_name, yylex): Adjust code
8143 to use parser state.
8144 (go_parse): Likewise.
8145 * go-lang.h: Forward declare "struct parser_state".
8146 (go_parse): Add "struct parser_state" argument.
8147
342587c4
DE
81482014-03-27 Doug Evans <dje@google.com>
8149
8150 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
8151
33e80786
DE
81522014-03-27 Doug Evans <dje@google.com>
8153
8154 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
8155 Remove argument abbrev_section. All callers updated.
8156
1dbab08b
DE
81572014-03-27 Doug Evans <dje@google.com>
8158
8159 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
8160 addr_base, ranges_base.
8161
318d3177
KS
81622014-03-26 Keith Seitz <keiths@redhat.com>
8163
8164 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
8165 types, not VAR_DOMAIN.
8166
1e54db15
SL
81672014-03-25 Sandra Loosemore <sandra@codesourcery.com>
8168
8169 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
8170 "ra" registers.
8171 * features/nios2-linux.c: Regenerated.
8172 * features/nios2.c: Regenerated.
8173
d3839ede
PA
81742014-03-25 Pedro Alves <palves@redhat.com>
8175
8176 * cli/cli-script.c (script_from_file): Force the interpreter to
8177 sync mode.
8178
7588d2ec
PL
81792014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
8180
8181 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
8182 small stack allocation.
8183
a6290449
TG
81842014-03-24 Tristan Gingold <gingold@adacore.com>
8185
8186 * darwin-nat.c (exc_server): Remove unused prototype.
8187 (darwin_dump_message): Correctly display data on x86_64.
8188 (darwin_encode_reply): Fix style.
8189 Add comments and fix indentation.
8190
31ae9d24 81912014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
69fa4030
PL
8192
8193 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
8194
6339bfc4
DE
81952014-03-22 Doug Evans <xdje42@gmail.com>
8196
8197 * infcmd.c: Whitespace fixes.
8198 (interrupt_command): Merge two function comments into one.
8199
0a07590b
DE
82002014-03-22 Doug Evans <xdje42@gmail.com>
8201
8202 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
8203 All uses updated.
8204
b55fbac4
YQ
82052014-03-22 Yao Qi <yao@codesourcery.com>
8206
8207 * remote.c (target_read_live_memory): Remove.
8208 (memory_xfer_live_readonly_partial): Rename it to
8209 remote_xfer_live_readonly_partial. Remove argument 'object'.
8210 All callers updated. Call remote_read_bytes_1
8211 instead of target_read_live_memory.
8212 * tracepoint.c (set_traceframe_number): Remove.
8213 (make_cleanup_restore_traceframe_number): Likewise .
8214 * tracepoint.h (set_traceframe_number): Remove declaration.
8215 (make_cleanup_restore_traceframe_number): Likewise.
8216
9217e74e
YQ
82172014-03-22 Yao Qi <yao@codesourcery.com>
8218
8219 * remote.c (remote_read_bytes): Move code on reading from the
8220 remote stub to ...
8221 (remote_read_bytes_1): ... here. New function.
8222
8acf9577
YQ
82232014-03-22 Yao Qi <yao@codesourcery.com>
8224
8225 * ctf.c (ctf_xfer_partial): Check the return value of
8226 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
8227 return TARGET_XFER_UNAVAILABLE.
8228 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8229 * target.c (target_read_live_memory): Move it to remote.c.
8230 (memory_xfer_live_readonly_partial): Likewise.
8231 (memory_xfer_partial_1): Move some code to remote_read_bytes.
8232 * remote.c (target_read_live_memory): Moved from target.c.
8233 (memory_xfer_live_readonly_partial): Likewise.
8234 (remote_read_bytes): Factored out from
8235 memory_xfer_partial_1.
8236
feef67ab
DE
82372014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
8238
8239 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
8240 NULL pointer.
8241
b65dc60b
PA
82422014-03-21 Pedro Alves <palves@redhat.com>
8243
8244 * infrun.c (normal_stop): Extend comment.
8245
b4ab256d
HZ
82462014-03-21 Hui Zhu <hui@codesourcery.com>
8247 Pedro Alves <palves@redhat.com>
8248
8249 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
8250 static buffer.
8251 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
8252 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
8253 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
8254
deba7593
MR
82552014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
8256
8257 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
8258 `z' formatted output modifier.
8259
1bff71c3
SDJ
82602014-03-20 Tom Tromey <tromey@redhat.com>
8261 Sergio Durigan Junior <sergiodj@redhat.com>
8262
8263 * probe.c (parse_probes): Turn assert into an ordinary error.
8264 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
8265 exceptions when parsing probes. Rearrange the code for clarity.
8266
90e28950
TT
82672014-03-20 Tom Tromey <tromey@redhat.com>
8268
8269 PR gdb/14135
8270 * top.c (execute_command): Only dispatch events if the command
8271 started the target.
8272
beb460e8
PA
82732014-03-20 Tom Tromey <tromey@redhat.com>
8274
8275 PR cli/15718
8276 * infcall.c: Include event-top.h.
8277 (run_inferior_call): Call async_disable_stdin if needed.
8278
99619bea
PA
82792014-03-20 Pedro Alves <palves@redhat.com>
8280
8281 * infrun.c (prepare_to_proceed): Delete.
8282 (thread_still_needs_step_over): New function.
8283 (find_thread_needs_step_over): New function.
8284 (proceed): If the current thread needs a step-over, set its
8285 steping_over_breakpoint flag. Adjust to use
8286 find_thread_needs_step_over instead of prepare_to_proceed.
8287 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
8288 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
8289 breakpoint.
8290 (switch_back_to_stepped_thread): Step over breakpoints of all
8291 threads not the stepping thread, before switching back to the
8292 stepping thread.
8293
2adfaa28
PA
82942014-03-20 Pedro Alves <palves@redhat.com>
8295
8296 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
8297 extern.
8298 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
8299 * infrun.c (saved_singlestep_ptid)
8300 (stepping_past_singlestep_breakpoint): Delete.
8301 (resume): Remove stepping_past_singlestep_breakpoint handling.
8302 (proceed): Store the prev_pc of the stepping thread too.
8303 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
8304 singlestep_pc.
8305 (enum infwait_states): Delete infwait_thread_hop_state.
8306 (struct execution_control_state) <hit_singlestep_breakpoint>: New
8307 field.
8308 (handle_inferior_event): Adjust.
8309 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
8310 handling and the thread-hop code. Before removing single-step
8311 breakpoints, check whether the thread hit a single-step breakpoint
8312 of another thread. If it did, the trap is not a random signal.
8313 (switch_back_to_stepped_thread): If the event thread hit a
8314 single-step breakpoint, unblock it before switching to the
8315 stepping thread. Handle the case of the stepped thread having
8316 advanced already.
8317 (keep_going): Handle the case of the current thread moving past a
8318 single-step breakpoint.
8319
31e77af2
PA
83202014-03-20 Pedro Alves <palves@redhat.com>
8321
8322 PR breakpoints/7143
8323 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
8324 are being stepped over.
8325 (breakpoint_address_match): Make extern.
8326 * breakpoint.h (breakpoint_address_match): New declaration.
8327 * inferior.h (stepping_past_instruction_at): New declaration.
8328 * infrun.c (struct step_over_info): New type.
8329 (step_over_info): New global.
8330 (set_step_over_info, clear_step_over_info)
8331 (stepping_past_instruction_at): New functions.
8332 (handle_inferior_event): Clear the step-over info when
8333 trap_expected is cleared.
8334 (resume): Remove now stale comment.
8335 (clear_proceed_status): Clear step-over info.
8336 (proceed): Adjust step-over handling to set or clear the step-over
8337 info instead of removing all breakpoints.
8338 (handle_signal_stop): When setting up a thread-hop, don't remove
8339 breakpoints here.
8340 (stop_stepping): Clear step-over info.
8341 (keep_going): Adjust step-over handling to set or clear step-over
8342 info and then always inserting breakpoints, instead of removing
8343 all breakpoints when stepping over one.
8344
b9f437de
PA
83452014-03-20 Pedro Alves <palves@redhat.com>
8346
8347 * infrun.c (previous_inferior_ptid): Adjust comment.
8348 (deferred_step_ptid): Delete.
8349 (infrun_thread_ptid_changed, prepare_to_proceed)
8350 (init_wait_for_inferior): Adjust.
8351 (handle_signal_stop): Delete deferred_step_ptid handling.
8352
06c868a8
JK
83532014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
8354
8355 PR gdb/15358
8356 * defs.h (sync_quit_force_run): New declaration.
8357 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
8358 * event-top.c (async_sigterm_handler): New declaration.
8359 (async_sigterm_token): New variable.
8360 (async_init_signals): Create also async_sigterm_token.
8361 (async_sigterm_handler): New function.
8362 (sync_quit_force_run): New variable.
8363 (handle_sigterm): Replace quit_force call by other calls.
8364 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
8365
dea80df0
MR
83662014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
8367
8368 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
8369 offset into SPE pseudo registers.
8370
0c7e1a46
PA
83712014-03-18 Pedro Alves <palves@redhat.com>
8372
8373 PR gdb/13860
8374 * inferior.h (print_stop_event): Declare.
8375 * infrun.c (print_stop_event): New, factored out from ...
8376 (normal_stop): ... this.
8377 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
8378 of bpstat_print/print_stack_frame.
8379
9c1fcd01
TT
83802014-03-17 Tom Tromey <tromey@redhat.com>
8381
8382 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
8383
11aa919a
PMR
83842014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
8385
8386 * ada-lang.c (decode_constrained_packed_array): Perform a
8387 minimal coercion for reference with coerce_ref instead of
8388 ada_coerce_ref.
8389
d4ccb5e0
TG
83902014-03-17 Tristan Gingold <gingold@adacore.com>
8391
8392 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
8393 (darwin_solib_create_inferior_hook): Emit a warning if version
8394 is unhandled.
8395
49840f2a
UW
83962014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
8397
8398 * python/py-value.c (get_field_flag): Cast flag_name argument to
8399 PyObject_GetAttrString to support Python 2.4.
8400
ed4123e5
JK
84012014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8402
8403 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
8404 (Global Maintainers): Remove Jan Kratochvil.
8405
d6b64346
PA
84062014-03-14 Pedro Alves <palves@redhat.com>
8407
8408 * inferior.h (terminal_ours_for_output): Rename to ...
8409 (child_terminal_ours_for_output): ... this.
8410 (terminal_save_ours): Rename to ...
8411 (child_terminal_save_ours): ... this.
8412 (terminal_ours): Rename to ...
8413 (child_terminal_ours): ... this.
8414 (terminal_inferior): Rename to ...
8415 (child_terminal_inferior): ... this.
8416 (terminal_init_inferior): Rename to ...
8417 (child_terminal_init_inferior): ... this.
8418 (terminal_init_inferior_with_pgrp): Rename to ...
8419 (child_terminal_init_inferior_with_pgrp): ... this.
8420 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
8421 (child_terminal_init_with_pgrp): ... this.
8422 (terminal_save_ours): Rename to ...
8423 (child_terminal_save_ours): ... this.
8424 (terminal_init_inferior): Rename to ...
8425 (child_terminal_init): ... this. Adjust.
8426 (terminal_inferior): Rename to ...
8427 (child_terminal_inferior): ... this.
8428 (terminal_ours_for_output): Rename to ...
8429 (child_terminal_ours_for_output): ... this. Adjust.
8430 (terminal_ours): Rename to ...
8431 (child_terminal_ours): ... this.
8432 (terminal_ours_1): Rename to ...
8433 (child_terminal_ours_1): ... this. Adjust.
8434 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
8435 * windows-nat.c (do_initial_windows_stuff): Adjust.
8436 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
8437 (gnu_terminal_init): ... this. Adjust.
8438 (gnu_target): Adjust.
8439 * inf-child.c (inf_child_target): Adjust.
8440
5a1e8c7a
DE
84412014-03-13 Doug Evans <xdje42@gmail.com>
8442
8443 PR guile/16612
8444 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
8445 new eq?-hashtab.
8446
350e1a76
DE
84472014-03-13 Doug Evans <xdje42@gmail.com>
8448
8449 * value.c (record_latest_value): Call release_value_or_incref
8450 instead of release_value.
8451
a69900ae
PA
84522014-03-13 Pedro Alves <palves@redhat.com>
8453
8454 * procfs.c (procfs_target): Don't override to_shortname,
8455 to_longname or to_doc.
8456
5db9f0bd
PA
84572014-03-13 Pedro Alves <palves@redhat.com>
8458
8459 * inf-child.c (inf_child_open, inf_child_target): Don't mention
8460 Unix in user visible strings.
8461
5e3a2c38
SS
84622014-03-12 Stan Shebs <stan@codesourcery.com>
8463
8464 * gdbtypes.h: Annotate comments for Doxygen, add a page
8465 block comment with some general info.
8466
8bc2fe48
PA
84672014-03-12 Pedro Alves <palves@redhat.com>
8468
8469 * infcmd.c (prepare_execution_command): New function, factored out
8470 from several execution commands.
8471 (run_command_1, continue_command, step_1, jump_command)
8472 (signal_command, until_command, advance_command, finish_command)
8473 (attach_command): Use prepare_execution_command.
8474
638c5f49
OJ
84752014-03-12 Omair Javaid <omair.javaid@linaro.org>
8476
8477 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
8478 (MAX_BPTS): Define.
8479 (MAX_WPTS): Define.
8480 (struct arm_linux_thread_points): Removed.
8481 (struct arm_linux_process_info): New.
8482 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
8483 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
8484 (arm_linux_find_breakpoints_by_tid): Removed.
8485 (struct arch_lwp_info): New.
8486 (arm_linux_find_process_pid): New functions.
8487 (arm_linux_add_process): New functions.
8488 (arm_linux_process_info_get): New functions.
8489 (arm_linux_forget_process): New function.
8490 (arm_linux_get_debug_reg_state): New function.
8491 (struct update_registers_data): New.
8492 (update_registers_callback): New function.
8493 (arm_linux_insert_hw_breakpoint1): Updated.
8494 (arm_linux_remove_hw_breakpoint1): Updated.
8495 (arm_linux_insert_hw_breakpoint): Updated.
8496 (arm_linux_remove_hw_breakpoint): Updated.
8497 (arm_linux_insert_watchpoint): Updated.
8498 (arm_linux_remove_watchpoint): Updated.
8499 (arm_linux_new_thread): Updated.
8500 (arm_linux_prepare_to_resume): New function.
8501 (arm_linux_new_fork): New function.
8502 (_initialize_arm_linux_nat): Updated.
8503
6d03af93
PA
85042014-03-12 Pedro Alves <palves@redhat.com>
8505
8506 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
8507
b3ccfe11
TT
85082014-03-12 Tom Tromey <tromey@redhat.com>
8509
8510 * inf-child.c (return_zero): New function.
8511 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
8512 * aix-thread.c (aix_thread_inferior_created): New function.
8513 (aix_thread_attach): Remove.
8514 (init_aix_thread_ops): Don't set to_attach.
8515 (_initialize_aix_thread): Register inferior_created observer.
8516 * corelow.c (init_core_ops): Don't set to_attach or
8517 to_create_inferior.
8518 * exec.c (init_exec_ops): Don't set to_attach or
8519 to_create_inferior.
8520 * infcmd.c (run_command_1): Use find_run_target. Make direct
8521 target calls.
8522 (attach_command): Use find_attach_target. Make direct target
8523 calls.
8524 * record-btrace.c (init_record_btrace_ops): Don't set
8525 to_create_inferior.
8526 * record-full.c (record_full_can_async_p, record_full_is_async_p):
8527 Remove.
8528 (init_record_full_ops, init_record_full_core_ops): Update. Don't
8529 set to_create_inferior.
8530 * target.c (complete_target_initialization): Add assertion.
8531 (target_create_inferior): Remove.
8532 (find_default_attach, find_default_create_inferior): Remove.
8533 (find_attach_target, find_run_target): New functions.
8534 (find_default_is_async_p, find_default_can_async_p)
8535 (target_supports_non_stop, target_attach): Remove.
8536 (init_dummy_target): Don't set to_create_inferior or
8537 to_supports_non_stop.
8538 * target.h (struct target_ops) <to_attach>: Add comment. Remove
8539 TARGET_DEFAULT_FUNC.
8540 <to_create_inferior>: Add comment.
8541 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
8542 TARGET_DEFAULT_RETURN.
8543 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
8544 (find_attach_target, find_run_target): Declare.
8545 (target_create_inferior): Remove.
8546 (target_has_execution_1): Update comment.
8547 (target_supports_non_stop): Remove.
8548 * target-delegates.c: Rebuild.
8549
91f83b02
PA
85502014-03-12 Pedro Alves <palves@redhat.com>
8551
8552 * inf-child.h: Update comment to not mention Unix.
8553
f1aea813
PA
85542014-03-12 Pedro Alves <palves@redhat.com>
8555
8556 * inf-child.c: Update top comment to not mention Unix. Add
8557 generic comment describing how this target is meant to be used.
8558 (inf_child_post_attach, inf_child_post_startup_inferior)
8559 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
8560 Unix in comment.
8561
ee8e9165
PA
85622014-03-12 Pedro Alves <palves@redhat.com>
8563
8564 * nto-procfs.c: Include inf-child.h.
8565 (procfs_ops): Delete global.
8566 (procfs_can_run): Delete method.
8567 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
8568 target pointer instead of referencing procfs_ops.
8569 (procfs_prepare_to_store): Delete.
8570 (init_procfs_ops): Delete function.
8571 (procfs_target): New function, based on init_procfs_ops, but
8572 inherit inf_child_target.
8573 (_initialize_procfs): Use procfs_target.
8574
51a9c8c5
PA
85752014-03-12 Pedro Alves <palves@redhat.com>
8576
8577 * windows-nat.c: Include inf-child.h.
8578 (windows_ops): Delete global.
8579 (windows_open, windows_prepare_to_store, windows_can_run): Delete
8580 methods.
8581 (init_windows_ops): Delete function.
8582 (windows_target): New function, based on init_windows_ops, but
8583 inherit inf_child_target.
8584 (_initialize_windows_nat): Use windows_target. Install x86
8585 specific target methods here.
8586
c1966e26
DE
85872014-03-10 Doug Evans <xdje42@gmail.com>
8588
8589 * guile/guile.c (call_initialize_gdb_module): New function.
8590 (initialize_guile): Replace call to scm_init_guile with call to
8591 scm_with_guile.
8592
023db19c
JB
85932014-03-10 Joel Brobecker <brobecker@adacore.com>
8594
8595 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
8596 in call to TYPE_CODE macro.
8597
5ec18f2b
JG
85982014-03-10 Jerome Guitton <guitton@adacore.com>
8599
8668be63
JB
8600 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
8601 Resolve tagged types to full view.
5ec18f2b 8602
7d03f2eb
HZ
86032014-03-10 Hui Zhu <hui@codesourcery.com>
8604
8605 * target.h (target_insert_breakpoint): Remove "hardware" from its
8606 comments.
8607
c5164cbc
DE
86082014-03-07 Doug Evans <dje@google.com>
8609
8610 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
8611
c4a3fee2
DE
86122014-03-07 Doug Evans <dje@google.com>
8613
8614 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
8615 Remove unused local comp_dir_attr. Assert exactly one of
8616 stub_comp_unit_die, stub_comp_dir is non-NULL.
8617
3156469c
JB
86182014-03-07 Joel Brobecker <brobecker@adacore.com>
8619
8620 * target.h (complete_target_initialization, add_target):
8621 Add comment.
8622
c1a7b7c6
PA
86232014-03-07 Pedro Alves <palves@redhat.com>
8624
8625 * go32-nat.c: Include inf-child.h.
8626 (go32_ops): Delete global.
8627 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
8628 Delete methods.
8629 (go32_create_inferior): Push the passed in target pointer instead
8630 of referencing go32_ops.
8631 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
8632 (go32_target): New function, based on init_go32_ops, but inherit
8633 inf_child_target.
8634 (_initialize_go32_nat): Use go32_target. Move parts of
8635 init_go32_ops here.
8636
d3c1a85f
JB
86372014-03-06 Joel Brobecker <brobecker@adacore.com>
8638
8639 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
8640 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
8641 SYMBOL_VALUE_ADDRESS.
8642 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
8643
5fa1d40e
YQ
86442014-03-06 Yao Qi <yao@codesourcery.com>
8645
8646 * breakpoint.c (get_tracepoint_by_number): Remove argument
8647 optional_p. All callers updated. Adjust comments. Update
8648 output message.
8649 * breakpoint.h (get_tracepoint_by_number): Update declaration.
8650
0c13193f
YQ
86512014-03-06 Yao Qi <yao@codesourcery.com>
8652
8653 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
8654 early if get_number returns zero. Use 'p' instead of 'args'.
8655
2217da06
YQ
86562014-03-06 Yao Qi <yao@codesourcery.com>
8657
8658 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
8659 message.
8660
cc3da688
YQ
86612014-03-06 Yao Qi <yao@codesourcery.com>
8662
8663 PR breakpoints/16508
8664 * tracepoint.c (check_trace_running): New function.
8665 (trace_find_command): Move code to check_trace_running and
8666 call check_trace_running.
8667 (trace_find_pc_command): Likewise.
8668 (trace_find_tracepoint_command): Likewise.
8669 (trace_find_line_command): Likewise.
8670 (trace_find_range_command): Likewise.
8671 * tracepoint.h (check_trace_running): Likewise.
8672 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
8673
6a5f844b
YQ
86742014-03-06 Yao Qi <yao@codesourcery.com>
8675
8676 * target.h (struct target_ops) <to_traceframe_info>: Use
8677 TARGET_DEFAULT_NORETURN (tcomplain ()).
8678 * target-delegates.c: Regenerated.
8679
0f26cec1
PA
86802014-03-05 Pedro Alves <palves@redhat.com>
8681
8682 PR gdb/16575
8683 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
8684 void. Update comment.
8685 (dcache_xfer_memory): Delete.
8686 (dcache_read_memory_partial): New, based on the read bits of
8687 dcache_xfer_memory.
8688 (dcache_update): Add status parameter. Use ULONGEST for len, and
8689 adjust. Discard cache lines if the reason for the update was
8690 error.
8691 * dcache.h (dcache_xfer_memory): Delete declaration.
8692 (dcache_read_memory_partial): New declaration.
8693 (dcache_update): Update prototype.
8694 * target.c (raw_memory_xfer_partial): Update the dcache here.
8695 (memory_xfer_partial_1): Don't handle dcache writes here.
8696
b2b255bd
MF
86972014-03-05 Mike Frysinger <vapier@gentoo.org>
8698
8699 * remote-sim.c (gdbsim_load): Add const to prog.
8700
5d9cf8a4
TT
87012014-03-03 Tom Tromey <tromey@redhat.com>
8702
8703 * elfread.c (probe_key): Change to bfd_data.
8704 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
8705 now per-BFD, not per-objfile.
8706 * stap-probe.c (stap_probe_destroy): Update comment.
8707 (handle_stap_probe): Allocate on the per-BFD obstack.
8708
729662a5
TT
87092014-03-03 Tom Tromey <tromey@redhat.com>
8710
8711 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
8712 * breakpoint.c (create_longjmp_master_breakpoint): Use
8713 get_probe_address.
8714 (add_location_to_breakpoint, bkpt_probe_insert_location)
8715 (bkpt_probe_remove_location): Update.
8716 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
8717 * elfread.c (elf_symfile_relocate_probe): Remove.
8718 (elf_probe_fns): Update.
8719 (insert_exception_resume_breakpoint): Change type of "probe"
8720 parameter to bound_probe.
8721 (check_exception_resume): Update.
8722 * objfiles.c (objfile_relocate1): Don't relocate probes.
8723 * probe.c (bound_probe_s): New typedef.
8724 (parse_probes): Use get_probe_address. Set sal's objfile.
8725 (find_probe_by_pc): Return a bound_probe.
8726 (collect_probes): Return a VEC(bound_probe_s).
8727 (compare_probes): Update.
8728 (gen_ui_out_table_header_info): Change type of "probes"
8729 parameter. Update.
8730 (info_probes_for_ops): Update.
8731 (get_probe_address): New function.
8732 (probe_safe_evaluate_at_pc): Update.
8733 * probe.h (struct probe_ops) <get_probe_address>: New field.
8734 <set_semaphore, clear_semaphore>: Add objfile parameter.
8735 (struct probe) <objfile>: Remove field.
8736 <arch>: New field.
8737 <address>: Update comment.
8738 (struct bound_probe): New.
8739 (find_probe_by_pc): Return a bound_probe.
8740 (get_probe_address): Declare.
8741 * solib-svr4.c (struct probe_and_action) <address>: New field.
8742 (hash_probe_and_action, equal_probe_and_action): Update.
8743 (register_solib_event_probe): Add address parameter.
8744 (solib_event_probe_at): Update.
8745 (svr4_create_probe_breakpoints): Add objfile parameter. Use
8746 get_probe_address.
8747 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
8748 (stap_get_probe_address): New function.
8749 (stap_can_evaluate_probe_arguments, compute_probe_arg)
8750 (compile_probe_arg): Update.
8751 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
8752 address.
8753 (handle_stap_probe): Don't relocate the probe.
8754 (stap_relocate): Remove.
8755 (stap_gen_info_probes_table_values): Update.
8756 (stap_probe_ops): Remove stap_relocate.
8757 * symfile-debug.c (debug_sym_relocate_probe): Remove.
8758 (debug_sym_probe_fns): Update.
8759 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
8760 * symtab.c (init_sal): Use memset.
8761 * symtab.h (struct symtab_and_line) <objfile>: New field.
8762 * tracepoint.c (start_tracing, stop_tracing): Update.
8763
ff887920
TT
87642014-03-03 Tom Tromey <tromey@redhat.com>
8765
8766 * probe.h (parse_probes, find_probe_by_pc)
8767 (find_probes_in_objfile): Fix comments.
8768
f0407826
DE
87692014-03-02 Doug Evans <xdje42@gmail.com>
8770
8771 * infrun.c (handle_signal_stop): Replace test for
8772 TARGET_WAITKIND_STOPPED with an assert.
8773
35e6a711
DE
87742014-03-02 Doug Evans <xdje42@gmail.com>
8775
8776 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
8777
667f9d0b
DE
87782014-03-02 Doug Evans <xdje42@gmail.com>
8779
8780 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
8781
dc92ace0
MK
87822014-03-01 Mark Kettenis <kettenis@gnu.org>
8783
8784 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
8785
a900370f
MK
87862014-03-01 Mark Kettenis <kettenis@gnu.org>
8787
8788 * i386obsd-nat.c: Include "obsd-nat.h".
8789 (_initialize_i386obsd_nat): Call obsd_add_target instead of
8790 add_target.
8791 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8792
b72a7981
MK
87932014-03-01 Mark Kettenis <kettenis@gnu.org>
8794
8795 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
8796
96c70aba
MK
87972014-03-01 Mark Kettenis <kettenis@gnu.org>
8798
8799 * mips64obsd-nat.c: Include "obsd-nath".
8800 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
8801 add_target
8802 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8803
874a80af
MK
88042014-03-01 Mark Kettenis <kettenis@gnu.org>
8805
8fd408f1
MK
8806 * amd64obsd-nat.c: Include "obsd-nat,h.
8807 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
8808 add_target.
874a80af
MK
8809 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8810
9cf95373
SC
88112014-02-28 Siva Chandra Reddy <sivachandra@google.com>
8812
8813 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
8814 (find_overload_match): Update call to find_oload_champ.
8815 (find_oload_champ_namespace_loop): Likewise
8816
863e4da4
MK
88172014-02-28 Mark Kettenis <kettenis@gnu.org>
8818
025cac40
MK
8819 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
8820
1ed586ce
MK
8821 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
8822 * config/sparc/obsd64.mh: New file.
8823 * sparc64obsd-nat.c: New file.
8824
863e4da4
MK
8825 * obsd-nat.h: New file.
8826 * obsd-nat.c: New file.
8827 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
8828 (ALLDEPFILES): Add obsd-nat.c.
8829
89de4da4
TT
88302014-02-28 Tom Tromey <tromey@redhat.com>
8831
8832 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
8833 * cli-out.h (cli_ui_out_impl): Now const.
8834 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
8835 * ui-out.c (struct ui_out) <impl>: Now const.
8836 (default_ui_out_impl): Now const.
8837 (ui_out_new): Make 'impl' parameter const.
8838 * ui-out.h (ui_out_new): Update.
8839
c725e7b6
MK
88402014-02-27 Mark Kettenis <kettenis@gnu.org>
8841
8842 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
8843
670b46b3
MK
88442014-02-27 Mark Kettenis <kettenis@gnu.org>
8845
8846 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
8847
c91550fc
JK
88482014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
8849
8850 Additional PR 8882 fix.
8851 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
8852
2fa0369e
PA
88532014-02-27 Pedro Alves <palves@redhat.com>
8854
8855 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
8856 isn't set.
8857
d632a097
PA
88582014-02-27 Pedro Alves <palves@redhat.com>
8859
8860 PR 12702
8861 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
8862 * nat/linux-waitpid.c: Include string.h.
8863 (status_to_str): Moved here and made extern.
8864 * nat/linux-waitpid.h (status_to_str): New declaration.
8865
2ebd5a35
HZ
88662014-02-27 Hui Zhu <hui@codesourcery.com>
8867
8868 PR 12702
8869 * infrun.c (ptid_match): Move ...
8870 * common/ptid.c (ptid_match): ... here.
8871 * inferior.h (ptid_match): Move ...
8872 * common/ptid.h (ptid_match): ... here.
8873
3cdd631f
MK
88742014-02-27 Mark Kettenis <kettenis@gnu.org>
8875
8876 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
8877 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
8878 gdb_target_obs.
8879
bee30a64
MK
88802014-02-27 Mark Kettenis <kettenis@gnu.org>
8881
8882 * obsd-tdep.c (obsd_auxv_parse): New function.
8883 (obsd_init_abi): Set auxv_parse.
27a48a92
MK
8884
8885 * gdbarch.sh (auxv_parse): New.
8886 * gdbarch.h: Regenerated.
8887 * gdbarch.c: Regenerated.
8888 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
8889
7a5a839f
LC
88902014-02-26 Ludovic Courtès <ludo@gnu.org>
8891
8892 * guile/scm-value.c (gdbscm_history_append_x): New function.
8893 (value_functions): Add it.
8894
31aa7e4e
JB
88952014-02-27 Joel Brobecker <brobecker@adacore.com>
8896
8897 * dwarf2read.c (attr_value_as_address): New function.
8898 (dwarf2_find_base_address, read_call_site_scope): Use
8899 attr_value_as_address in place of DW_ADDR.
8900 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
8901 the low and high addresses. Slight rework of the handling
8902 of the high pc being a constant form, and limit it to
8903 DWARF verson 4 or higher.
8904 (dwarf2_record_block_ranges): Likewise.
8905 (read_partial_die): Likewise.
8906 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
8907
9b333ba3
TT
89082014-02-26 Tom Tromey <tromey@redhat.com>
8909
8910 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
8911
5f6cac40
TT
89122014-02-26 Tom Tromey <tromey@redhat.com>
8913
8914 * elfread.c (elf_read_minimal_symbols): Return early if
8915 minimal symbols have already been read. Add "ei" parameter.
8916 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
8917 * minsyms.c (prim_record_minimal_symbol_full): Update.
8918 * objfiles.h (struct objstats) <n_minsyms>: Move...
8919 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
8920 * symmisc.c (print_objfile_statistics): Update.
8921
2750ef27
TT
89222014-02-26 Tom Tromey <tromey@redhat.com>
8923
8924 * elfread.c (elf_read_minimal_symbols): New function, from
8925 elf_symfile_read.
8926 (elf_symfile_read): Call it.
8927
34643a32
TT
89282014-02-26 Tom Tromey <tromey@redhat.com>
8929
8930 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
8931 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
8932 (lookup_minimal_symbol_solib_trampoline)
8933 (lookup_minimal_symbol_by_pc_section_1)
8934 (lookup_minimal_symbol_and_objfile): Update.
8935 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
8936 Don't allocate a minimal symbol if minsyms have already been read.
8937 (build_minimal_symbol_hash_tables): Update.
8938 (install_minimal_symbols): Do nothing if minsyms already read.
8939 Use the per-BFD obstack.
8940 (terminate_minimal_symbol_table): Use the per-BFD obstack.
8941 * objfiles.c (allocate_objfile): Call
8942 terminate_minimal_symbol_table later.
8943 (have_minimal_symbols): Update.
8944 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
8945 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
8946 Move from struct objfile.
8947 <minsyms_read>: New field.
8948 (struct objfile) <msymbols, minimal_symbol_count,
8949 msymbol_hash, msymbol_demangled_hash>: Move.
8950 (ALL_OBJFILE_MSYMBOLS): Update.
8951 * symfile.c (read_symbols): Set minsyms_read.
8952 (reread_symbols): Update.
8953 * symmisc.c (dump_objfile, dump_msymbols): Update.
8954
2273f0ac
TT
89552014-02-26 Tom Tromey <tromey@redhat.com>
8956
8957 * minsyms.c (msymbols_sort): Remove.
8958 * minsyms.h (msymbols_sort): Remove.
8959 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
8960 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
8961 * elfread.c (elf_symtab_read): Don't add section offsets.
8962 * xcoffread.c (record_minimal_symbol): Don't add section offset
8963 to minimal symbol address.
8964 * somread.c (text_offset, data_offset): Remove.
8965 (som_symtab_read): Don't add section offsets to minimal symbol
8966 addresses.
8967 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
8968 Don't add section offsets to minimal symbols.
8969 * coffread.c (coff_symtab_read): Don't add section offsets
8970 to minimal symbol addresses.
8971 * machoread.c (macho_symtab_add_minsym): Don't add section offset
8972 to minimal symbol addresses.
8973 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
8974 section offset to minimal symbol addresses.
8975 * mdebugread.c (parse_partial_symbols): Don't add section
8976 offset to minimal symbol addresses.
8977 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
8978 offset to minimal symbol addresses.
8979
77e371c0
TT
89802014-02-26 Tom Tromey <tromey@redhat.com>
8981
8982 * ada-lang.c (ada_main_name): Update.
8983 (ada_add_standard_exceptions): Update.
8984 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
8985 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8986 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
8987 * auxv.c (ld_so_xfer_auxv): Update.
8988 * avr-tdep.c (avr_scan_prologue): Update.
8989 * ax-gdb.c (gen_var_ref): Update.
8990 * blockframe.c (get_pc_function_start)
8991 (find_pc_partial_function_gnu_ifunc): Update.
8992 * breakpoint.c (create_overlay_event_breakpoint)
8993 (create_longjmp_master_breakpoint)
8994 (create_std_terminate_master_breakpoint)
8995 (create_exception_master_breakpoint): Update.
8996 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8997 * c-valprint.c (c_val_print): Update.
8998 * coff-pe-read.c (add_pe_forwarded_sym): Update.
8999 * common/agent.c (agent_look_up_symbols): Update.
9000 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
9001 * dwarf2loc.c (call_site_to_target_addr): Update.
9002 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
9003 * elfread.c (elf_gnu_ifunc_record_cache)
9004 (elf_gnu_ifunc_resolve_by_got): Update.
9005 * findvar.c (default_read_var_value): Update.
9006 * frame.c (inside_main_func): Update.
9007 * frv-tdep.c (frv_frame_this_id): Update.
9008 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9009 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
9010 Update.
9011 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
9012 (hppa_hpux_find_dummy_bpaddr): Update.
9013 * hppa-tdep.c (hppa_symbol_address): Update.
9014 * infcmd.c (until_next_command): Update.
9015 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
9016 Update.
9017 * linespec.c (minsym_found, add_minsym): Update.
9018 * linux-nat.c (get_signo): Update.
9019 * linux-thread-db.c (inferior_has_bug): Update.
9020 * m32c-tdep.c (m32c_return_value)
9021 (m32c_m16c_address_to_pointer): Update.
9022 * m32r-tdep.c (m32r_frame_this_id): Update.
9023 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9024 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9025 * maint.c (maintenance_translate_address): Update.
9026 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
9027 (frob_address): New function.
9028 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
9029 frob_address. Rename parameter to "pc_in".
9030 (compare_minimal_symbols, compact_minimal_symbols): Use raw
9031 addresses.
9032 (find_solib_trampoline_target, minimal_symbol_upper_bound):
9033 Update.
9034 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9035 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
9036 * objc-lang.c (find_objc_msgsend): Update.
9037 * objfiles.c (objfile_relocate1): Update.
9038 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9039 * p-valprint.c (pascal_val_print): Update.
9040 * parse.c (write_exp_msymbol): Update.
9041 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
9042 (ppc_elfv2_skip_entrypoint): Update.
9043 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9044 * printcmd.c (build_address_symbolic, msym_info)
9045 (address_info): Update.
9046 * proc-service.c (ps_pglobal_lookup): Update.
9047 * psymtab.c (find_pc_sect_psymtab_closer)
9048 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
9049 Change msymbol parameter to bound_minimal_symbol.
9050 * ravenscar-thread.c (get_running_thread_id): Update.
9051 * remote.c (remote_check_symbols): Update.
9052 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
9053 address.
9054 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9055 * solib-dsbt.c (lm_base): Update.
9056 * solib-frv.c (lm_base, main_got): Update.
9057 * solib-irix.c (locate_base): Update.
9058 * solib-som.c (som_solib_create_inferior_hook)
9059 (link_map_start): Update.
9060 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
9061 * solib-svr4.c (elf_locate_base, enable_break): Update.
9062 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
9063 (flush_ea_cache): Update.
9064 * stabsread.c (define_symbol, scan_file_globals): Update.
9065 * stack.c (find_frame_funname): Update.
9066 * symfile-debug.c (debug_qf_expand_symtabs_matching)
9067 (debug_qf_find_pc_sect_symtab): Update.
9068 * symfile.c (simple_read_overlay_table)
9069 (simple_overlay_update): Update.
9070 * symfile.h (struct quick_symbol_functions)
9071 <find_pc_sect_symtab>: Change type of msymbol to
9072 bound_minimal_symbol.
9073 * symmisc.c (dump_msymbols): Update.
9074 * symtab.c (find_pc_sect_symtab_via_partial)
9075 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
9076 (search_symbols, print_msymbol_info): Update.
9077 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
9078 (MSYMBOL_VALUE_ADDRESS): Redefine.
9079 (BMSYMBOL_VALUE_ADDRESS): New macro.
9080 * tracepoint.c (scope_info): Update.
9081 * tui/tui-disasm.c (tui_find_disassembly_address)
9082 (tui_get_begin_asm_address): Update.
9083 * valops.c (find_function_in_inferior): Update.
9084 * value.c (value_static_field, value_fn_field): Update.
9085
3b7344d5
TT
90862014-02-26 Tom Tromey <tromey@redhat.com>
9087
9088 * ada-lang.c (ada_update_initial_language): Update.
9089 (ada_main_name, ada_has_this_exception_support): Update.
9090 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
9091 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9092 * arm-tdep.c (arm_skip_stub): Update.
9093 * auxv.c (ld_so_xfer_auxv): Update.
9094 * avr-tdep.c (avr_scan_prologue): Update.
9095 * ax-gdb.c (gen_var_ref): Update.
9096 * breakpoint.c (struct breakpoint_objfile_data)
9097 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
9098 type to bound_minimal_symbol.
9099 (create_overlay_event_breakpoint)
9100 (create_longjmp_master_breakpoint)
9101 (create_std_terminate_master_breakpoint)
9102 (create_exception_master_breakpoint): Update.
9103 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9104 * c-exp.y (classify_name): Update.
9105 * coffread.c (coff_symfile_read): Update.
9106 * common/agent.c (agent_look_up_symbols): Update.
9107 * d-lang.c (d_main_name): Update.
9108 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
9109 * dec-thread.c (enable_dec_thread): Update.
9110 * dwarf2loc.c (call_site_to_target_addr): Update.
9111 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
9112 * eval.c (evaluate_subexp_standard): Update.
9113 * findvar.c (struct minsym_lookup_data) <result>: Change type
9114 to bound_minimal_symbol.
9115 <objfile>: Remove.
9116 (minsym_lookup_iterator_cb, default_read_var_value): Update.
9117 * frame.c (inside_main_func): Update.
9118 * frv-tdep.c (frv_frame_this_id): Update.
9119 * gcore.c (call_target_sbrk): Update.
9120 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9121 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
9122 Update.
9123 * go-lang.c (go_main_name): Update.
9124 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
9125 (hppa_hpux_find_import_stub_for_addr): Update.
9126 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
9127 Update. Change return type.
9128 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
9129 type.
9130 * jit.c (jit_breakpoint_re_set_internal): Update.
9131 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
9132 Update.
9133 * linux-nat.c (get_signo): Update.
9134 * linux-thread-db.c (inferior_has_bug): Update
9135 * m32c-tdep.c (m32c_return_value)
9136 (m32c_m16c_address_to_pointer): Update.
9137 * m32r-tdep.c (m32r_frame_this_id): Update.
9138 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9139 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9140 * minsyms.c (lookup_minimal_symbol_internal): Rename to
9141 lookup_minimal_symbol. Change return type.
9142 (lookup_minimal_symbol): Remove.
9143 (lookup_bound_minimal_symbol): Update.
9144 (lookup_minimal_symbol_text): Change return type.
9145 (lookup_minimal_symbol_solib_trampoline): Change return type.
9146 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
9147 (lookup_minimal_symbol_solib_trampoline): Change return type.
9148 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9149 * objc-lang.c (lookup_objc_class, lookup_child_selector)
9150 (value_nsstring, find_imps): Update.
9151 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9152 * p-lang.c (pascal_main_name): Update.
9153 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
9154 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9155 * proc-service.c (ps_pglobal_lookup): Update.
9156 * ravenscar-thread.c (get_running_thread_msymbol): Change
9157 return type.
9158 (has_ravenscar_runtime, get_running_thread_id): Update.
9159 * remote.c (remote_check_symbols): Update.
9160 * sol-thread.c (ps_pglobal_lookup): Update.
9161 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9162 * solib-dsbt.c (lm_base): Update.
9163 * solib-frv.c (lm_base, frv_relocate_section_addresses):
9164 Update.
9165 * solib-irix.c (locate_base): Update.
9166 * solib-som.c (som_solib_create_inferior_hook)
9167 (som_solib_desire_dynamic_linker_symbols, link_map_start):
9168 Update.
9169 * solib-spu.c (spu_enable_break): Update.
9170 * solib-svr4.c (elf_locate_base, enable_break): Update.
9171 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
9172 (flush_ea_cache): Update.
9173 * stabsread.c (define_symbol): Update.
9174 * symfile.c (simple_read_overlay_table): Update.
9175 * symtab.c (find_pc_sect_line): Update.
9176 * tracepoint.c (scope_info): Update.
9177 * tui-disasm.c (tui_get_begin_asm_address): Update.
9178 * value.c (value_static_field): Update.
9179
40c1a007
TT
91802014-02-26 Tom Tromey <tromey@redhat.com>
9181
9182 * minsyms.c (prim_record_minimal_symbol_full): Use
9183 SET_MSYMBOL_VALUE_ADDRESS.
9184 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
9185 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
9186 SET_MSYMBOL_VALUE_ADDRESS.
9187 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
9188 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
9189
efd66ac6
TT
91902014-02-26 Tom Tromey <tromey@redhat.com>
9191
9192 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
9193 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
9194 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
9195 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
9196 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
9197 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
9198 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
9199 * ada-lang.c (ada_main_name): Update.
9200 (ada_lookup_simple_minsym): Update.
9201 (ada_make_symbol_completion_list): Update.
9202 (ada_add_standard_exceptions): Update.
9203 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
9204 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9205 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
9206 * arm-tdep.c (skip_prologue_function): Update.
9207 (arm_skip_stack_protector, arm_skip_stub): Update.
9208 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
9209 (arm_wince_skip_main_prologue): Update.
9210 * auxv.c (ld_so_xfer_auxv): Update.
9211 * avr-tdep.c (avr_scan_prologue): Update.
9212 * ax-gdb.c (gen_var_ref): Update.
9213 * block.c (call_site_for_pc): Update.
9214 * blockframe.c (get_pc_function_start): Update.
9215 (find_pc_partial_function_gnu_ifunc): Update.
9216 * breakpoint.c (create_overlay_event_breakpoint): Update.
9217 (create_longjmp_master_breakpoint): Update.
9218 (create_std_terminate_master_breakpoint): Update.
9219 (create_exception_master_breakpoint): Update.
9220 (resolve_sal_pc): Update.
9221 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9222 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
9223 Update.
9224 * c-valprint.c (c_val_print): Update.
9225 * coff-pe-read.c (add_pe_forwarded_sym): Update.
9226 * coffread.c (coff_symfile_read): Update.
9227 * common/agent.c (agent_look_up_symbols): Update.
9228 * dbxread.c (find_stab_function_addr): Update.
9229 (end_psymtab): Update.
9230 * dwarf2loc.c (call_site_to_target_addr): Update.
9231 (func_verify_no_selftailcall): Update.
9232 (tailcall_dump): Update.
9233 (call_site_find_chain_1): Update.
9234 (dwarf_expr_reg_to_entry_parameter): Update.
9235 * elfread.c (elf_gnu_ifunc_record_cache): Update.
9236 (elf_gnu_ifunc_resolve_by_got): Update.
9237 * f-valprint.c (info_common_command): Update.
9238 * findvar.c (read_var_value): Update.
9239 * frame.c (get_prev_frame_1): Update.
9240 (inside_main_func): Update.
9241 * frv-tdep.c (frv_skip_main_prologue): Update.
9242 (frv_frame_this_id): Update.
9243 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9244 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
9245 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
9246 (gnuv3_skip_trampoline): Update.
9247 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
9248 (hppa64_hpux_in_solib_call_trampoline): Update.
9249 (hppa_hpux_skip_trampoline_code): Update.
9250 (hppa64_hpux_search_dummy_call_sequence): Update.
9251 (hppa_hpux_find_import_stub_for_addr): Update.
9252 (hppa_hpux_find_dummy_bpaddr): Update.
9253 * hppa-tdep.c (hppa_symbol_address)
9254 (hppa_lookup_stub_minimal_symbol): Update.
9255 * i386-tdep.c (i386_skip_main_prologue): Update.
9256 (i386_pe_skip_trampoline_code): Update.
9257 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
9258 * infcall.c (get_function_name): Update.
9259 * infcmd.c (until_next_command): Update.
9260 * jit.c (jit_breakpoint_re_set_internal): Update.
9261 (jit_inferior_init): Update.
9262 * linespec.c (minsym_found): Update.
9263 (add_minsym): Update.
9264 * linux-fork.c (info_checkpoints_command): Update.
9265 * linux-nat.c (get_signo): Update.
9266 * linux-thread-db.c (inferior_has_bug): Update.
9267 * m32c-tdep.c (m32c_return_value): Update.
9268 (m32c_m16c_address_to_pointer): Update.
9269 (m32c_m16c_pointer_to_address): Update.
9270 * m32r-tdep.c (m32r_frame_this_id): Update.
9271 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9272 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9273 * maint.c (maintenance_translate_address): Update.
9274 * minsyms.c (add_minsym_to_hash_table): Update.
9275 (add_minsym_to_demangled_hash_table): Update.
9276 (msymbol_objfile): Update.
9277 (lookup_minimal_symbol): Update.
9278 (iterate_over_minimal_symbols): Update.
9279 (lookup_minimal_symbol_text): Update.
9280 (lookup_minimal_symbol_by_pc_name): Update.
9281 (lookup_minimal_symbol_solib_trampoline): Update.
9282 (lookup_minimal_symbol_by_pc_section_1): Update.
9283 (lookup_minimal_symbol_and_objfile): Update.
9284 (prim_record_minimal_symbol_full): Update.
9285 (compare_minimal_symbols): Update.
9286 (compact_minimal_symbols): Update.
9287 (build_minimal_symbol_hash_tables): Update.
9288 (install_minimal_symbols): Update.
9289 (terminate_minimal_symbol_table): Update.
9290 (find_solib_trampoline_target): Update.
9291 (minimal_symbol_upper_bound): Update.
9292 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9293 * mips-tdep.c (mips_stub_frame_sniffer): Update.
9294 (mips_skip_pic_trampoline_code): Update.
9295 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
9296 * objc-lang.c (selectors_info): Update.
9297 (classes_info): Update.
9298 (find_methods): Update.
9299 (find_imps): Update.
9300 (find_objc_msgsend): Update.
9301 * objfiles.c (objfile_relocate1): Update.
9302 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
9303 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9304 * p-valprint.c (pascal_val_print): Update.
9305 * parse.c (write_exp_msymbol): Update.
9306 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
9307 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
9308 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9309 * printcmd.c (build_address_symbolic): Update.
9310 (sym_info): Update.
9311 (address_info): Update.
9312 * proc-service.c (ps_pglobal_lookup): Update.
9313 * psymtab.c (find_pc_sect_psymtab_closer): Update.
9314 (find_pc_sect_psymtab): Update.
9315 * python/py-framefilter.c (py_print_frame): Update.
9316 * ravenscar-thread.c (get_running_thread_id): Update.
9317 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
9318 Update.
9319 * remote.c (remote_check_symbols): Update.
9320 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
9321 (rs6000_skip_trampoline_code): Update.
9322 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
9323 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9324 * solib-dsbt.c (lm_base): Update.
9325 * solib-frv.c (lm_base): Update.
9326 (main_got): Update.
9327 * solib-irix.c (locate_base): Update.
9328 * solib-som.c (som_solib_create_inferior_hook): Update.
9329 (som_solib_desire_dynamic_linker_symbols): Update.
9330 (link_map_start): Update.
9331 * solib-spu.c (spu_enable_break): Update.
9332 (ocl_enable_break): Update.
9333 * solib-svr4.c (elf_locate_base): Update.
9334 (enable_break): Update.
9335 * spu-tdep.c (spu_get_overlay_table): Update.
9336 (spu_catch_start): Update.
9337 (flush_ea_cache): Update.
9338 * stabsread.c (define_symbol): Update.
9339 (scan_file_globals): Update.
9340 * stack.c (find_frame_funname): Update.
9341 (frame_info): Update.
9342 * symfile.c (simple_read_overlay_table): Update.
9343 (simple_overlay_update): Update.
9344 * symmisc.c (dump_msymbols): Update.
9345 * symtab.c (fixup_section): Update.
9346 (find_pc_sect_line): Update.
9347 (skip_prologue_sal): Update.
9348 (search_symbols): Update.
9349 (print_msymbol_info): Update.
9350 (rbreak_command): Update.
9351 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
9352 (completion_list_objc_symbol): Update.
9353 (default_make_symbol_completion_list_break_on): Update.
9354 * tracepoint.c (scope_info): Update.
9355 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
9356 (tui_get_begin_asm_address): Update.
9357 * valops.c (find_function_in_inferior): Update.
9358 * value.c (value_static_field): Update.
9359 (value_fn_field): Update.
9360
50e65b17
TT
93612014-02-26 Tom Tromey <tromey@redhat.com>
9362
9363 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
9364 bound minimal symbols. Move code that knows about minsym
9365 table layout...
9366 * minsyms.c (minimal_symbol_upper_bound): ... here. New
9367 function.
9368 * minsyms.h (minimal_symbol_upper_bound): Declare.
9369 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
9370 minimal_symbol_upper_bound.
9371
1b588015
JB
93722014-02-27 Joel Brobecker <brobecker@adacore.com>
9373
9374 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
9375 Use the type's name if its basic type does not have a tag.
9376
dbb9c2b1
JB
93772014-02-27 Joel Brobecker <brobecker@adacore.com>
9378
9379 * dwarf2read.c (read_subrange_type): Add comment.
9380
55426c9d
JB
93812014-02-27 Joel Brobecker <brobecker@adacore.com>
9382
9383 * dwarf2read.c (update_enumeration_type_from_children): New
9384 function, mostly extracted from process_structure_scope.
9385 (read_enumeration_type): Call update_enumeration_type_from_children.
9386 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
9387 and flag_flag_enum fields.
9388
f2fce0ca
PA
93892014-02-26 Pedro Alves <palves@redhat.com>
9390
9391 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
9392 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
9393 to_xfer_partial method.
9394
7a44e40e
PA
93952014-02-26 Pedro Alves <palves@redhat.com>
9396
9397 * target.c (complete_target_initialization): Don't install
9398 default_xfer_partial as to_xfer_partial hook.
9399 (nomemory): Delete.
9400 (update_current_target): Don't INHERIT nor de_fault
9401 deprecated_xfer_memory. Delete de_fault macro.
9402 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
9403 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
9404 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
9405 field.
9406
bd265cd0
PA
94072014-02-26 Pedro Alves <palves@redhat.com>
9408
9409 * go32-nat.c (my_write_child): New function.
9410 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
9411 (go32_xfer_partial): New function.
9412 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
9413 Instead install a to_xfer_partial hook.
9414
9d46c4e5
PA
94152014-02-26 Pedro Alves <palves@redhat.com>
9416
9417 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
9418 to_xfer_partial helper. Rewrite.
9419 (procfs_xfer_partial): New function.
9420 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
9421 Install a to_xfer_partial hook.
9422
a1583b1f
PA
94232014-02-26 Pedro Alves <palves@redhat.com>
9424
9425 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
9426 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
9427 (m32r_xfer_partial): New function.
9428 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
9429 Install a to_xfer_partial hook.
9430
6df1b29f
PA
94312014-02-26 Pedro Alves <palves@redhat.com>
9432
9433 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
9434 helper.
9435 (mips_xfer_partial): New function.
9436 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
9437 hook. Install a to_xfer_partial hook.
9438
dc53a7ad
JB
94392014-02-26 Joel Brobecker <brobecker@adacore.com>
9440
9441 * gdbtypes.h (create_array_type_with_stride): Add declaration.
9442 * gdbtypes.c (create_array_type_with_stride): New function,
9443 renaming create_array_type, but with an added parameter
9444 called "bit_stride".
9445 (create_array_type): Re-implement using
9446 create_array_type_with_stride.
9447 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
9448 and DW_AT_bit_stride attributes.
9449
12ab52e9
PA
94502014-02-26 Pedro Alves <palves@redhat.com>
9451
9452 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
9453 task-specific breakpoints.
9454
d16461ae
PA
94552014-02-25 Pedro Alves <palves@redhat.com>
9456
9457 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
9458 handling of object == TARGET_OBJECT_UNWIND_TABLE.
9459
a8b16220
SS
94602014-02-25 Stan Shebs <stan@codesourcery.com>
9461
9462 * defs.h: Annotate comments for Doxygen.
9463
b9e795ee
TT
94642014-02-25 Tom Tromey <tromey@redhat.com>
9465
9466 * target.h (target_ignore): Don't declare.
9467 * target.c (target_ignore): Remove.
9468
849c862e
JK
94692014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
9470
9471 PR gdb/16626
9472 * auto-load.c (auto_load_objfile_script_1): Change filename to
9473 debugfile.
9474
475109d8
JB
94752014-02-25 Joel Brobecker <brobecker@adacore.com>
9476
9477 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
9478 documentation. Adjust prototype to match the target_ops
9479 to_xfer_partial method. Adjust implementation accordingly.
9480
e186c3bd
HZ
94812014-02-25 Hui Zhu <hui@codesourcery.com>
9482
9483 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
9484 to_traceframe_info.
9485
6d451942
KB
94862014-02-25 Kevin Buettner <kevinb@redhat.com>
9487
041ab8b4 9488 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
6d451942
KB
9489 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
9490 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
9491 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
9492 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
9493 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
9494 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
9495 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
9496 New constants.
9497 (rl78_register_type): Use a data pointer type for SP and
9498 new pseudo registers mentioned above. Use a 16 bit integer
9499 type for all other register pairs.
9500 (rl78_register_name, rl78_g10_register_name): Update for
9501 new pseudo registers.
9502 (rl78_pseudo_register_read): Likewise.
9503 (rl78_pseudo_register_write): Likewise.
9504 (rl78_dwarf_reg_to_regnum): Return register numbers representing
9505 to the newly added pseudo registers.
9506
eddf0bae
DE
95072014-02-24 Doug Evans <dje@google.com>
9508
9509 * value.c (record_latest_value): Fix comment.
9510 * printcmd.c (print_command_1): Remove code to handle -1 return from
9511 record_latest_value.
9512
e96027e0
PA
95132014-02-24 Pedro Alves <palves@redhat.com>
9514
9515 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
9516 deprecated_xfer_memory hook.
9517 (procfs_xfer_partial): Call procfs_xfer_memory instead
9518 of the deprecated_xfer_memory target hook.
9519 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
9520 helper.
9521
0837c976
YZ
95222014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
9523
9524 * windows-nat.c (windows_xfer_shared_libraries): Return
9525 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
9526 requested object is TARGET_OBJECT_LIBRARIES.
9527
bc113b4e
YQ
95282014-02-24 Yao Qi <yao@codesourcery.com>
9529
9530 * target.h (enum target_xfer_status)
9531 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
9532 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
9533 explicitly. New.
9534 * corefile.c (memory_error_message): User updated.
9535 * exec.c (section_table_read_available_memory): Likewise.
9536 * record-btrace.c (record_btrace_xfer_partial): Likewise.
9537 * target.c (target_xfer_status_to_string): Likewise.
9538 (raw_memory_xfer_partial): Likewise.
9539 (memory_xfer_partial_1, target_xfer_partial): Likewise.
9540 * valops.c (read_value_memory): Likewise.
9541 * exec.h: Update comments.
9542
01cb8804
YQ
95432014-02-24 Yao Qi <yao@codesourcery.com>
9544
9545 * target.c (target_xfer_status_to_string): Rename argument err
9546 to status.
9547 * target.h (target_xfer_status_to_string): Update declaration.
9548 Replace target_xfer_error_to_string with
9549 target_xfer_status_to_string in comment.
9550
93063aa6
YQ
95512014-02-24 Yao Qi <yao@codesourcery.com>
9552
9553 * mips-linux-nat.c (super_close): Update its type.
9554 (mips_linux_close): Pass 'self' to super_close.
9555
5c328c05
YQ
95562014-02-24 Yao Qi <yao@codesourcery.com>
9557
9558 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
9559 * corefile.c (read_memory): Adjusted.
9560 * target.c (target_write_with_progress): Adjusted.
9561
f73023dd
YQ
95622014-02-23 Yao Qi <yao@codesourcery.com>
9563
9564 Revert two patches:
9565
9566 2013-10-25 Yao Qi <yao@codesourcery.com>
9567
9568 * remote.c (remote_traceframe_info): Return early if
9569 traceframe is not selected.
9570
9571 2013-07-19 Yao Qi <yao@codesourcery.com>
9572
9573 * target.c (update_current_target): Change the default action
9574 of 'to_traceframe_info' from tcomplain to return_zero.
9575 * target.h (struct target_ops) <to_traceframe_info>: Add more
9576 comments.
9577
5a2eb0ef
YQ
95782014-02-23 Yao Qi <yao@codesourcery.com>
9579
9580 * valops.c (read_value_memory): Rewrite it. Call
9581 target_xfer_partial in a loop.
9582 * exec.h (section_table_available_memory): Remove declaration.
9583 Move comments to ...
9584 * exec.c (section_table_available_memory): ... here. Make it
9585 static.
9586
1ee79381
YQ
95872014-02-23 Yao Qi <yao@codesourcery.com>
9588
9589 * exec.c (section_table_read_available_memory): New function.
9590 * exec.h (section_table_read_available_memory): Declare.
9591 * ctf.c (ctf_xfer_partial): Call
9592 section_table_read_available_memory.
9593 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9594
1ca49d37
YQ
95952014-02-23 Yao Qi <yao@codesourcery.com>
9596
9597 * ctf.c (ctf_xfer_partial): Move code to ...
9598 * exec.c (exec_read_partial_read_only): ... it. New function.
9599 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9600 * tracefile.c: Include "exec.h".
9601 * exec.h (exec_read_partial_read_only): Declare.
9602
a283690e
YQ
96032014-02-23 Yao Qi <yao@codesourcery.com>
9604
9605 * tracefile-tfile.c (tfile_has_all_memory): Remove.
9606 (tfile_has_memory): Remove.
9607 (init_tfile_ops): Don't set fields to_has_all_memory and
9608 to_has_memory of tfile_ops.
9609 * tracefile.c (tracefile_has_all_memory): New function.
9610 (tracefile_has_memory): New function.
9611 (init_tracefile_ops): Initialize fields to_has_all_memory and
9612 to_has_memory of 'ops'.
9613
12e03cd0
YQ
96142014-02-23 Yao Qi <yao@codesourcery.com>
9615
9616 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
9617 (ctf_thread_alive, ctf_get_trace_status): Remove.
9618 (init_ctf_ops): Don't set some fields of ctf_ops. Call
9619 init_tracefile_ops.
9620 * tracefile-tfile.c (tfile_get_trace_status): Remove.
9621 (tfile_has_stack, tfile_has_registers): Remove.
9622 (tfile_thread_alive): Remove.
9623 (init_tfile_ops): Don't set some fields of tfile_ops. Call
9624 init_tracefile_ops.
9625 * tracefile.c (tracefile_has_stack): New function.
9626 (tracefile_has_registers): New function.
9627 (tracefile_thread_alive): New function.
9628 (tracefile_get_trace_status): New function.
9629 (init_tracefile_ops): New function.
9630 * tracefile.h (init_tracefile_ops): Declare.
9631
11395323
YQ
96322014-02-23 Yao Qi <yao@codesourcery.com>
9633
9634 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
9635 (O_LARGEFILE): Likewise.
9636 (tfile_ops): Likewise.
9637 (TRACE_HEADER_SIZE): Likewise.
9638 (trace_fd, trace_frames_offset, cur_offset): Likewise.
9639 (cur_data_size): Likewise.
9640 (tfile_read, tfile_open, tfile_interp_line): Likewise.
9641 (tfile_close, tfile_files_info): Likewise.
9642 (tfile_get_trace_status): Likewise.
9643 (tfile_get_tracepoint_status): Likewise.
9644 (tfile_get_traceframe_address): Likewise.
9645 (tfile_trace_find, match_blocktype): Likewise.
9646 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
9647 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
9648 (tfile_get_trace_state_variable_value): Likewise.
9649 (tfile_has_all_memory, tfile_has_memory): Likewise.
9650 (tfile_has_stack, tfile_has_registers): Likewise.
9651 (tfile_thread_alive, build_traceframe_info): Likewise.
9652 (tfile_traceframe_info, init_tfile_ops): Likewise.
9653 (_initialize_tracepoint): Don't call init_tfile_ops
9654 and add_target_with_completer.
9655 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
9656 exec.h, completer.h and filenames.h.
9657 (_initialize_tracefile_tfile): New function.
9658
7951c4eb
YQ
96592014-02-23 Yao Qi <yao@codesourcery.com>
9660
9661 * Makefile.in (REMOTE_OBS): Append tracefile.o and
9662 tracefile-tfile.o.
9663 (HFILES_NO_SRCDIR): Add tracefile.h.
9664 * ctf.c: Include "tracefile.h".
9665 * tracefile.h: New file.
9666 * tracefile.c: New file
9667 * tracefile-tfile.c: New file.
9668 * tracepoint.c: Include "tracefile.h".
9669 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
9670 (stop_reason_names): Add const.
9671 (trace_file_writer_xfree): Move it to tracefile.c.
9672 (trace_save, trace_save_command, trace_save_tfile): Likewise.
9673 (trace_save_ctf): Likewise.
9674 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
9675 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
9676 (tfile_write_header, tfile_write_regblock_type): Likewise.
9677 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
9678 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
9679 (tfile_write_raw_data, tfile_end): Likewise.
9680 (tfile_trace_file_writer_new): Likewise.
9681 (free_uploaded_tp): Make it extern.
9682 (free_uploaded_tsv): Make it extern.
9683 (_initialize_tracepoint): Move code to register command 'tsave'
9684 to tracefile.c.
9685 * tracepoint.h (stop_reason_names): Declare.
9686 (struct trace_frame_write_ops): Move it to tracefile.h.
9687 (struct trace_file_write_ops): Likewise.
9688 (struct trace_file_writer): Likewise.
9689 (free_uploaded_tsvs, free_uploaded_tps): Declare.
9690
184cd072
JK
96912014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9692
9693 PR gdb/16594
9694 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
9695 process name.
9696 (get_cores_used_by_process): New parameter num_cores, use it.
9697 (linux_xfer_osdata_processes): Pass num_cores to it.
9698 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
9699 process name.
9700
c63528fc
AK
97012014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
9702
9703 * target.c (memory_xfer_partial): Fix length arg in call to
9704 breakpoint_xfer_memory.
9705
d7b30f67
SDJ
97062014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9707
9708 PR tdep/16397
9709 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
9710 number comes after the + or - signs. Adjust length of register
9711 name to be extracted.
9712
8838afaf
TT
97132014-02-20 Tom Tromey <tromey@redhat.com>
9714
9715 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
9716 (ada_varobj_ops): Mark "extern".
9717
05227d14
TT
97182014-02-20 Tom Tromey <tromey@redhat.com>
9719
9720 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
9721
1254eefc
DE
97222014-02-20 Doug Evans <xdje42@gmail.com>
9723
9724 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
9725 All callers updated.
9726 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
9727 All callers updated.
9728 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
9729 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
9730
adde2bff
DE
97312014-02-20 lin zuojian <manjian2006@gmail.com>
9732 Joel Brobecker <brobecker@adacore.com>
9733 Doug Evans <xdje42@gmail.com>
9734
9735 PR symtab/16581
9736 * dwarf2read.c (struct die_info): New member in_process.
9737 (reset_die_in_process): New function.
9738 (process_die): Set it at the start, reset when returning.
9739 (inherit_abstract_dies): Only call process_die if origin_child_die
9740 not already being processed.
9741
3be75f87
JB
97422014-02-20 Joel Brobecker <brobecker@adacore.com>
9743
9744 * windows-nat.c (handle_unload_dll): Add function documentation.
9745 (do_initial_windows_stuff): Add comment explaining why we wait
9746 until after inferior initialization has finished before
9747 processing all DLLs.
9748
47f7ffdb
JB
97492014-02-20 Joel Brobecker <brobecker@adacore.com>
9750
9751 * windows-nat.c (get_module_name): Delete.
9752 (windows_get_exec_module_filename): New function, mostly
9753 inspired from get_module_name.
9754 (windows_pid_to_exec_file): Replace call to get_module_name
9755 by call to windows_get_exec_module_filename.
9756
1cd9feab
JB
97572014-02-20 Joel Brobecker <brobecker@adacore.com>
9758
9759 * windows-nat.c (handle_load_dll): Rewrite this function's
9760 introductory comment. Remove code using get_module_name
9761 to get the DLL's name.
9762
ea39ad35
JB
97632014-02-20 Joel Brobecker <brobecker@adacore.com>
9764
9765 * windows-nat.c (get_windows_debug_event): Ignore
9766 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
9767 if windows_initialization_done == 0.
9768 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
9769 Adjust implementation to always load all DLLs.
9770 (do_initial_windows_stuff): Replace call to
9771 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
9772
95060284
JB
97732014-02-20 Joel Brobecker <brobecker@adacore.com>
9774
9775 * windows-nat.c (_initialize_windows_nat): Deprecate the
9776 "dll-symbols" command. Turn the "add-shared-symbol-files"
9777 and "assf" aliases into commands, and deprecate them as well.
9778 * NEWS: Add entry explaining that "dll-symbols" and its two
9779 aliases are now deprecated.
9780
8d4fdb12
JB
97812014-02-20 Joel Brobecker <brobecker@adacore.com>
9782
9783 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
9784 new-line in debug string. Remove trailing spaces.
9785
1b281443
SS
97862014-02-19 Stan Shebs <stan@codesourcery.com>
9787
9788 * darwin-nat.c (darwin_xfer_partial): Fix return type.
9789
f7bd0f78
SC
97902014-02-19 Siva Chandra Reddy <sivachandra@google.com>
9791
9792 * NEWS: Add entry for the new feature
9793 * python/py-value.c (valpy_binop): Call value_x_binop for struct
9794 and class values.
9795
399ebc3d
SS
97962014-02-19 Stan Shebs <stan@codesourcery.com>
9797
9798 * MAINTAINERS: List Yao Qi as nios2 maintainer.
9799
c658158d
PA
98002014-02-19 Pedro Alves <palves@redhat.com>
9801
9802 * common/ptid.h (struct ptid): Mention that process_stratum
9803 targets should prefer ptid.lwp.
9804
ba348170
PA
98052014-02-19 Pedro Alves <palves@redhat.com>
9806
9807 * remote.c (remote_thread_alive, write_ptid, read_ptid)
9808 (read_ptid, remote_newthread_step, remote_threads_extra_info)
9809 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
9810 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
9811 store remote thread ids rather than ptid.tid.
9812 (_initialize_remote): Adjust.
9813
ac01945b
TT
98142014-02-19 Tom Tromey <tromey@redhat.com>
9815
9816 * target.c (target_get_unwinder): Rewrite.
9817 (target_get_tailcall_unwinder): Rewrite.
9818 * record-btrace.c (record_btrace_to_get_unwinder): New function.
9819 (record_btrace_to_get_tailcall_unwinder): New function.
9820 (init_record_btrace_ops): Update.
9821 * target.h (struct target_ops) <to_get_unwinder,
9822 to_get_tailcall_unwinder>: Now function pointers. Use
9823 TARGET_DEFAULT_RETURN.
9824
8476dc92
TT
98252014-02-19 Tom Tromey <tromey@redhat.com>
9826
9827 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
9828 argument.
9829 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
9830
c0eca49f
TT
98312014-02-19 Tom Tromey <tromey@redhat.com>
9832
9833 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
9834 directly.
9835 * target-delegates.c: Rebuild.
9836 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
9837 TARGET_DEFAULT_FUNC.
9838 * target.c (default_target_decr_pc_after_break): Rename from
9839 forward_target_decr_pc_after_break. Simplify.
9840 (target_decr_pc_after_break): Rely on delegation.
9841
596b6b39
TT
98422014-02-19 Tom Tromey <tromey@redhat.com>
9843
9844 * target.c (update_current_target): Do not INHERIT to_doc or
9845 to_magic. Do not de_fault to_open or to_close.
9846
b427c1bc
TT
98472014-02-19 Tom Tromey <tromey@redhat.com>
9848
9849 * gcore.h (objfile_find_memory_regions): Declare.
9850 * gcore.c (objfile_find_memory_regions): No longer static. Add
9851 "self" argument.
9852 (_initialize_gcore): Don't call exec_set_find_memory_regions.
9853 * exec.c: Include gcore.h.
9854 (exec_set_find_memory_regions): Remove.
9855 (exec_find_memory_regions): Remove.
9856 (exec_do_find_memory_regions): Remove.
9857 (init_exec_ops): Update.
9858 * defs.h (exec_set_find_memory_regions): Remove.
9859
9b144037
TT
98602014-02-19 Tom Tromey <tromey@redhat.com>
9861
9862 * target-delegates.c: Rebuild.
9863 * target.h (struct target_ops) <to_extra_thread_info,
9864 to_thread_name, to_pid_to_exec_file, to_get_section_table,
9865 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
9866 not 0, in TARGET_DEFAULT_RETURN.
9867
555bbdeb
TT
98682014-02-19 Tom Tromey <tromey@redhat.com>
9869
9870 * target.c (complete_target_initialization): Remove casts. Use
9871 return_zero_has_execution.
9872 (return_zero): Add "ignore" argument.
9873 (return_zero_has_execution): New function.
9874 (init_dummy_target): Remove casts. Use
9875 return_zero_has_execution.
9876
be4ddd36
TT
98772014-02-19 Tom Tromey <tromey@redhat.com>
9878
9879 * target.c (update_current_target): Update comments. Do not
9880 INHERIT to_stratum.
9881
2117c711
TT
98822014-02-19 Tom Tromey <tromey@redhat.com>
9883
9884 * arm-linux-nat.c (arm_linux_read_description): Delegate when
9885 needed.
9886 * corelow.c (core_read_description): Delegate when needed.
9887 * remote.c (remote_read_description): Delegate when needed.
9888 * target-delegates.c: Rebuild.
9889 * target.c (target_read_description): Rewrite.
9890 * target.h (struct target_ops) <to_read_description>: Update
9891 comment. Use TARGET_DEFAULT_RETURN.
9892
e88ef65c
TT
98932014-02-19 Tom Tromey <tromey@redhat.com>
9894
9895 * target-delegates.c: Rebuild.
9896 * target.c (update_current_target): Don't inherit or default
9897 to_can_run.
9898 (find_default_run_target): Check against delegate_can_run.
9899 * target.h (struct target_ops) <to_can_run>: Use
9900 TARGET_DEFAULT_RETURN.
9901
86a0854a
TT
99022014-02-19 Tom Tromey <tromey@redhat.com>
9903
9904 * target-delegates.c: Rebuild.
9905 * target.c (target_disconnect): Unconditionally delegate.
9906 * target.h (struct target_ops) <to_disconnect>: Use
9907 TARGET_DEFAULT_NORETURN.
9908
ee97f592
TT
99092014-02-19 Tom Tromey <tromey@redhat.com>
9910
9911 * record.c (record_stop): Unconditionally delegate.
9912 * target-delegates.c: Rebuild.
9913 * target.c (target_stop_recording): Unconditionally delegate.
9914 * target.h (struct target_ops) <to_stop_recording>: Use
9915 TARGET_DEFAULT_IGNORE.
9916
6dc7fcf4
TT
99172014-02-19 Tom Tromey <tromey@redhat.com>
9918
9919 * target-delegates.c: Rebuild.
9920 * target.c (target_enable_btrace): Unconditionally delegate.
9921 * target.h (struct target_ops) <to_enable_btrace>: Use
9922 TARGET_DEFAULT_NORETURN.
9923
eb5b20d4
TT
99242014-02-19 Tom Tromey <tromey@redhat.com>
9925
9926 * target-delegates.c: Rebuild.
9927 * target.c (target_read_btrace): Unconditionally delegate.
9928 * target.h (struct target_ops) <to_read_btrace>: Use
9929 TARGET_DEFAULT_NORETURN.
9930
9ace480d
TT
99312014-02-19 Tom Tromey <tromey@redhat.com>
9932
9933 * target-delegates.c: Rebuild.
9934 * target.c (target_teardown_btrace): Unconditionally delegate.
9935 * target.h (struct target_ops) <to_teardown_btrace>: Use
9936 TARGET_DEFAULT_NORETURN.
9937
8dc292d3
TT
99382014-02-19 Tom Tromey <tromey@redhat.com>
9939
9940 * target-delegates.c: Rebuild.
9941 * target.c (target_disable_btrace): Unconditionally delegate.
9942 * target.h (struct target_ops) <to_disable_btrace>: Use
9943 TARGET_DEFAULT_NORETURN.
9944
58a5184e
TT
99452014-02-19 Tom Tromey <tromey@redhat.com>
9946
9947 * target-delegates.c: Rebuild.
9948 * target.c (default_search_memory): New function.
9949 (simple_search_memory): Update comment.
9950 (target_search_memory): Unconditionally delegate.
9951 * target.h (struct target_ops) <to_search_memory>: Use
9952 TARGET_DEFAULT_FUNC.
9953
8de71aab
TT
99542014-02-19 Tom Tromey <tromey@redhat.com>
9955
9956 * auxv.c (default_auxv_parse): No longer static.
9957 (target_auxv_parse): Unconditionally delegate.
9958 * auxv.h (default_auxv_parse): Declare.
9959 * target-delegates.c: Rebuild.
9960 * target.c: Include auxv.h.
9961 * target.h (struct target_ops) <to_auxv_parse>: Use
9962 TARGET_DEFAULT_FUNC.
9963
6b2c5a57
TT
99642014-02-19 Tom Tromey <tromey@redhat.com>
9965
9966 * target-delegates.c: Rebuild.
9967 * target.c (target_memory_map): Unconditionally delegate.
9968 * target.h (struct target_ops) <to_memory_map>: Use
9969 TARGET_DEFAULT_RETURN.
9970
cbffc065
TT
99712014-02-19 Tom Tromey <tromey@redhat.com>
9972
9973 * target-delegates.c: Rebuild.
9974 * target.c (target_thread_alive): Unconditionally delegate.
9975 * target.h (struct target_ops) <to_thread_alive>: Use
9976 TARGET_DEFAULT_RETURN.
9977
f09e2107
TT
99782014-02-19 Tom Tromey <tromey@redhat.com>
9979
9980 * target-delegates.c: Rebuild.
9981 * target.c (target_save_record): Unconditionally delegate.
9982 * target.h (struct target_ops) <to_save_record>: Use
9983 TARGET_DEFAULT_NORETURN.
9984
07366925
TT
99852014-02-19 Tom Tromey <tromey@redhat.com>
9986
9987 * target-delegates.c: Rebuild.
9988 * target.c (target_delete_record): Unconditionally delegate.
9989 * target.h (struct target_ops) <to_delete_record>: Use
9990 TARGET_DEFAULT_NORETURN.
9991
dd2e9d25
TT
99922014-02-19 Tom Tromey <tromey@redhat.com>
9993
9994 * target-delegates.c: Rebuild.
9995 * target.c (target_record_is_replaying): Unconditionally
9996 delegate.
9997 * target.h (struct target_ops) <to_record_is_replaying>: Use
9998 TARGET_DEFAULT_RETURN.
9999
671e76cc
TT
100002014-02-19 Tom Tromey <tromey@redhat.com>
10001
10002 * target-delegates.c: Rebuild.
10003 * target.c (target_goto_record_begin): Unconditionally delegate.
10004 * target.h (struct target_ops) <to_goto_record_begin>: Use
10005 TARGET_DEFAULT_NORETURN.
10006
e9179bb3
TT
100072014-02-19 Tom Tromey <tromey@redhat.com>
10008
10009 * target-delegates.c: Rebuild.
10010 * target.c (target_goto_record_end): Unconditionally delegate.
10011 * target.h (struct target_ops) <to_goto_record_end>: Use
10012 TARGET_DEFAULT_NORETURN.
10013
05969c84
TT
100142014-02-19 Tom Tromey <tromey@redhat.com>
10015
10016 * target-delegates.c: Rebuild.
10017 * target.c (target_goto_record): Unconditionally delegate.
10018 * target.h (struct target_ops) <to_goto_record>: Use
10019 TARGET_DEFAULT_NORETURN.
10020
3679abfa
TT
100212014-02-19 Tom Tromey <tromey@redhat.com>
10022
10023 * target-delegates.c: Rebuild.
10024 * target.c (target_insn_history): Unconditionally delegate.
10025 * target.h (struct target_ops) <to_insn_history>: Use
10026 TARGET_DEFAULT_NORETURN.
10027
8444ab58
TT
100282014-02-19 Tom Tromey <tromey@redhat.com>
10029
10030 * target-delegates.c: Rebuild.
10031 * target.c (target_insn_history_from): Unconditionally delegate.
10032 * target.h (struct target_ops) <to_insn_history_from>: Use
10033 TARGET_DEFAULT_NORETURN.
10034
c29302cc
TT
100352014-02-19 Tom Tromey <tromey@redhat.com>
10036
10037 * target-delegates.c: Rebuild.
10038 * target.c (target_insn_history_range): Unconditionally delegate.
10039 * target.h (struct target_ops) <to_insn_history_range>: Use
10040 TARGET_DEFAULT_NORETURN.
10041
170049d4
TT
100422014-02-19 Tom Tromey <tromey@redhat.com>
10043
10044 * target-delegates.c: Rebuild.
10045 * target.c (target_call_history): Unconditionally delegate.
10046 * target.h (struct target_ops) <to_call_history>: Use
10047 TARGET_DEFAULT_NORETURN.
10048
16fc27d6
TT
100492014-02-19 Tom Tromey <tromey@redhat.com>
10050
10051 * target-delegates.c: Rebuild.
10052 * target.c (target_call_history_from): Unconditionally delegate.
10053 * target.h (struct target_ops) <to_call_history_from>: Use
10054 TARGET_DEFAULT_NORETURN.
10055
115d9817
TT
100562014-02-19 Tom Tromey <tromey@redhat.com>
10057
10058 * target-delegates.c: Rebuild.
10059 * target.c (target_call_history_range): Unconditionally delegate.
10060 * target.h (struct target_ops) <to_call_history_range>: Use
10061 TARGET_DEFAULT_NORETURN.
10062
eb276a6b
TT
100632014-02-19 Tom Tromey <tromey@redhat.com>
10064
10065 * target-delegates.c: Rebuild.
10066 * target.c (target_verify_memory): Unconditionally delegate.
10067 * target.h (struct target_ops) <to_verify_memory>: Use
10068 TARGET_DEFAULT_NORETURN.
10069
9e538d0d
TT
100702014-02-19 Tom Tromey <tromey@redhat.com>
10071
10072 * target-delegates.c: Rebuild.
10073 * target.c (target_core_of_thread): Unconditionally delegate.
10074 * target.h (struct target_ops) <to_core_of_thread>: Use
10075 TARGET_DEFAULT_RETURN.
10076
f6fb2925
TT
100772014-02-19 Tom Tromey <tromey@redhat.com>
10078
10079 * target-delegates.c: Rebuild.
10080 * target.c (target_flash_done): Unconditionally delegate.
10081 * target.h (struct target_ops) <to_flash_done>: Use
10082 TARGET_DEFAULT_NORETURN.
10083
e8a6c6ac
TT
100842014-02-19 Tom Tromey <tromey@redhat.com>
10085
10086 * target-delegates.c: Rebuild.
10087 * target.c (target_flash_erase): Unconditionally delegate.
10088 * target.h (struct target_ops) <to_flash_erase>: Use
10089 TARGET_DEFAULT_NORETURN.
10090
7e35c012
TT
100912014-02-19 Tom Tromey <tromey@redhat.com>
10092
10093 * target-delegates.c: Rebuild.
10094 * target.c (target_get_section_table): Unconditionally delegate.
10095 * target.h (struct target_ops) <to_get_section_table>: Use
10096 TARGET_DEFAULT_RETURN.
10097
770234d3
TT
100982014-02-19 Tom Tromey <tromey@redhat.com>
10099
10100 * target-delegates.c: Rebuild.
10101 * target.c (target_pid_to_str): Unconditionally delegate.
10102 (init_dummy_target): Don't initialize to_pid_to_str.
10103 (default_pid_to_str): Rename from dummy_pid_to_str.
10104 * target.h (struct target_ops) <to_pid_to_str>: Use
10105 TARGET_DEFAULT_FUNC.
10106
09b0dc2b
TT
101072014-02-19 Tom Tromey <tromey@redhat.com>
10108
10109 * target-delegates.c: Rebuild.
10110 * target.c (target_find_new_threads): Unconditionally delegate.
10111 * target.h (struct target_ops) <to_find_new_threads>: Use
10112 TARGET_DEFAULT_RETURN.
10113
7d4f8efa
TT
101142014-02-19 Tom Tromey <tromey@redhat.com>
10115
10116 * target-delegates.c: Rebuild.
10117 * target.c (target_program_signals): Unconditionally delegate.
10118 * target.h (struct target_ops) <to_program_signals>: Use
10119 TARGET_DEFAULT_IGNORE.
10120
035cad7f
TT
101212014-02-19 Tom Tromey <tromey@redhat.com>
10122
10123 * target-delegates.c: Rebuild.
10124 * target.c (target_pass_signals): Unconditionally delegate.
10125 * target.h (struct target_ops) <to_pass_signals>: Use
10126 TARGET_DEFAULT_IGNORE.
10127
8d657035
TT
101282014-02-19 Tom Tromey <tromey@redhat.com>
10129
10130 * target-delegates.c: Rebuild.
10131 * target.c (default_mourn_inferior): New function.
10132 (target_mourn_inferior): Unconditionally delegate.
10133 * target.h (struct target_ops) <to_mourn_inferior>: Use
10134 TARGET_DEFAULT_FUNC.
10135
098dba18
TT
101362014-02-19 Tom Tromey <tromey@redhat.com>
10137
10138 * target-delegates.c: Rebuild.
10139 * target.c (default_follow_fork): New function.
10140 (target_follow_fork): Unconditionally delegate.
10141 * target.h (struct target_ops) <to_follow_fork>: Use
10142 TARGET_DEFAULT_FUNC.
10143
423a4807
TT
101442014-02-19 Tom Tromey <tromey@redhat.com>
10145
10146 * target-delegates.c: Rebuild.
10147 * target.c (target_kill): Unconditionally delegate.
10148 * target.h (struct target_ops) <to_kill>: Use
10149 TARGET_DEFAULT_NORETURN.
10150
6c7e5e5c
TT
101512014-02-19 Tom Tromey <tromey@redhat.com>
10152
10153 * target-delegates.c: Rebuild.
10154 * target.c (target_masked_watch_num_registers): Unconditionally
10155 delegate.
10156 * target.h (struct target_ops) <to_masked_watch_num_registers>:
10157 Use TARGET_DEFAULT_RETURN.
10158
8b1c364c
TT
101592014-02-19 Tom Tromey <tromey@redhat.com>
10160
10161 * target-delegates.c: Rebuild.
10162 * target.c (target_remove_mask_watchpoint): Unconditionally
10163 delegate.
10164 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
10165 TARGET_DEFAULT_RETURN.
10166
cd4ae029
TT
101672014-02-19 Tom Tromey <tromey@redhat.com>
10168
10169 * target-delegates.c: Rebuild.
10170 * target.c (target_insert_mask_watchpoint): Unconditionally
10171 delegate.
10172 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
10173 TARGET_DEFAULT_RETURN.
10174
a134316b
TT
101752014-02-19 Tom Tromey <tromey@redhat.com>
10176
10177 * target-delegates.c: Rebuild.
10178 * target.c (target_ranged_break_num_registers): Unconditionally
10179 delegate.
10180 * target.h (struct target_ops) <to_ranged_break_num_registers>:
10181 Use TARGET_DEFAULT_RETURN.
10182
ad5989bd
TT
101832014-02-19 Tom Tromey <tromey@redhat.com>
10184
10185 * target-delegates.c: Rebuild.
10186 * target.c (target_fetch_registers): Unconditionally delegate.
10187 * target.h (struct target_ops) <to_fetch_registers>: Use
10188 TARGET_DEFAULT_NORETURN.
10189
46ee7e8d
TT
101902014-02-19 Tom Tromey <tromey@redhat.com>
10191
10192 * target-delegates.c: Rebuild.
10193 * target.c (update_current_target): Don't inherit or default
10194 to_stop.
10195 * target.h (struct target_ops) <to_stop>: Use
10196 TARGET_DEFAULT_IGNORE.
10197
843f59ed
TT
101982014-02-19 Tom Tromey <tromey@redhat.com>
10199
10200 * target-delegates.c: Rebuild.
10201 * target.c (update_current_target): Don't inherit or default
10202 to_can_run_breakpoint_commands.
10203 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
10204 Use TARGET_DEFAULT_RETURN.
10205
ccfde2a0
TT
102062014-02-19 Tom Tromey <tromey@redhat.com>
10207
10208 * target-delegates.c: Rebuild.
10209 * target.c (update_current_target): Don't inherit or default
10210 to_supports_evaluation_of_breakpoint_conditions.
10211 * target.h (struct target_ops)
10212 <to_supports_evaluation_of_breakpoint_conditions>: Use
10213 TARGET_DEFAULT_RETURN.
10214
0de91722
TT
102152014-02-19 Tom Tromey <tromey@redhat.com>
10216
10217 * target-delegates.c: Rebuild.
10218 * target.c (update_current_target): Don't inherit or default
10219 to_augmented_libraries_svr4_read.
10220 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
10221 Use TARGET_DEFAULT_RETURN.
10222
9a7d8b48
TT
102232014-02-19 Tom Tromey <tromey@redhat.com>
10224
10225 * target-delegates.c: Rebuild.
10226 * target.c (update_current_target): Don't inherit or default
10227 to_can_use_agent.
10228 * target.h (struct target_ops) <to_can_use_agent>: Use
10229 TARGET_DEFAULT_RETURN.
10230
d9db5b21
TT
102312014-02-19 Tom Tromey <tromey@redhat.com>
10232
10233 * target-delegates.c: Rebuild.
10234 * target.c (update_current_target): Don't inherit or default
10235 to_use_agent.
10236 * target.h (struct target_ops) <to_use_agent>: Use
10237 TARGET_DEFAULT_NORETURN.
10238
92155eeb
TT
102392014-02-19 Tom Tromey <tromey@redhat.com>
10240
10241 * target-delegates.c: Rebuild.
10242 * target.c (update_current_target): Don't inherit or default
10243 to_traceframe_info.
10244 (return_null): Remove.
10245 * target.h (struct target_ops) <to_traceframe_info>: Use
10246 TARGET_DEFAULT_RETURN.
10247
d6522a22
TT
102482014-02-19 Tom Tromey <tromey@redhat.com>
10249
10250 * target-delegates.c: Rebuild.
10251 * target.c (update_current_target): Don't inherit or default
10252 to_static_tracepoint_markers_by_strid.
10253 * target.h (struct target_ops)
10254 <to_static_tracepoint_markers_by_strid>: Use
10255 TARGET_DEFAULT_NORETURN.
10256
4c3e4425
TT
102572014-02-19 Tom Tromey <tromey@redhat.com>
10258
10259 * target-delegates.c: Rebuild.
10260 * target.c (update_current_target): Don't inherit or default
10261 to_static_tracepoint_marker_at.
10262 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
10263 Use TARGET_DEFAULT_RETURN.
10264
dcd6917f
TT
102652014-02-19 Tom Tromey <tromey@redhat.com>
10266
10267 * target-delegates.c: Rebuild.
10268 * target.c (update_current_target): Don't inherit or default
10269 to_set_permissions.
10270 * target.h (struct target_ops) <to_set_permissions>: Use
10271 TARGET_DEFAULT_IGNORE.
10272
22bcceee
TT
102732014-02-19 Tom Tromey <tromey@redhat.com>
10274
10275 * target-delegates.c: Rebuild.
10276 * target.c (update_current_target): Don't inherit or default
10277 to_get_tib_address.
10278 * target.h (struct target_ops) <to_get_tib_address>: Use
10279 TARGET_DEFAULT_NORETURN.
10280
8586ccaa
TT
102812014-02-19 Tom Tromey <tromey@redhat.com>
10282
10283 * target-delegates.c: Rebuild.
10284 * target.c (update_current_target): Don't inherit or default
10285 to_set_trace_notes.
10286 * target.h (struct target_ops) <to_set_trace_notes>: Use
10287 TARGET_DEFAULT_RETURN.
10288
91df8d1d
TT
102892014-02-19 Tom Tromey <tromey@redhat.com>
10290
10291 * target-delegates.c: Rebuild.
10292 * target.c (update_current_target): Don't initialize
10293 to_set_trace_buffer_size.
10294 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
10295 TARGET_DEFAULT_IGNORE.
10296
8d526939
TT
102972014-02-19 Tom Tromey <tromey@redhat.com>
10298
10299 * target-delegates.c: Rebuild.
10300 * target.c (update_current_target): Don't inherit or default
10301 to_set_circular_trace_buffer.
10302 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
10303 TARGET_DEFAULT_IGNORE.
10304
0bcfeddf
TT
103052014-02-19 Tom Tromey <tromey@redhat.com>
10306
10307 * target-delegates.c: Rebuild.
10308 * target.c (update_current_target): Don't inherit or default
10309 to_set_disconnected_tracing.
10310 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
10311 TARGET_DEFAULT_IGNORE.
10312
9249843f
TT
103132014-02-19 Tom Tromey <tromey@redhat.com>
10314
10315 * target-delegates.c: Rebuild.
10316 * target.c (update_current_target): Don't inherit or default
10317 to_get_min_fast_tracepoint_insn_len.
10318 (return_minus_one): Remove.
10319 * target.h (struct target_ops)
10320 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
10321
ace92e7d
TT
103222014-02-19 Tom Tromey <tromey@redhat.com>
10323
10324 * target-delegates.c: Rebuild.
10325 * target.c (update_current_target): Don't inherit or default
10326 to_get_raw_trace_data.
10327 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
10328 TARGET_DEFAULT_NORETURN.
10329
08120467
TT
103302014-02-19 Tom Tromey <tromey@redhat.com>
10331
10332 * target-delegates.c: Rebuild.
10333 * target.c (update_current_target): Don't inherit or default
10334 to_upload_trace_state_variables.
10335 * target.h (struct target_ops) <to_upload_trace_state_variables>:
10336 Use TARGET_DEFAULT_RETURN.
10337
1e949b00
TT
103382014-02-19 Tom Tromey <tromey@redhat.com>
10339
10340 * target-delegates.c: Rebuild.
10341 * target.c (update_current_target): Don't inherit or default
10342 to_upload_tracepoints.
10343 * target.h (struct target_ops) <to_upload_tracepoints>: Use
10344 TARGET_DEFAULT_RETURN.
10345
a2e6c147
TT
103462014-02-19 Tom Tromey <tromey@redhat.com>
10347
10348 * target-delegates.c: Rebuild.
10349 * target.c (update_current_target): Don't inherit or default
10350 to_save_trace_data.
10351 * target.h (struct target_ops) <to_save_trace_data>: Use
10352 TARGET_DEFAULT_NORETURN.
10353
959bcd0b
TT
103542014-02-19 Tom Tromey <tromey@redhat.com>
10355
10356 * target-delegates.c: Rebuild.
10357 * target.c (update_current_target): Don't inherit or default
10358 to_get_trace_state_variable_value.
10359 * target.h (struct target_ops)
10360 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
10361
afc94e66
TT
103622014-02-19 Tom Tromey <tromey@redhat.com>
10363
10364 * target-delegates.c: Rebuild.
10365 * target.c (update_current_target): Don't inherit or default
10366 to_trace_find.
10367 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
10368
e51c07ea
TT
103692014-02-19 Tom Tromey <tromey@redhat.com>
10370
10371 * target-delegates.c: Rebuild.
10372 * target.c (update_current_target): Don't inherit or default
10373 to_trace_stop.
10374 * target.h (struct target_ops) <to_trace_stop>: Use
10375 TARGET_DEFAULT_NORETURN.
10376
6fea14cd
TT
103772014-02-19 Tom Tromey <tromey@redhat.com>
10378
10379 * target-delegates.c: Rebuild.
10380 * target.c (update_current_target): Don't inherit or default
10381 to_get_tracepoint_status.
10382 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
10383 TARGET_DEFAULT_NORETURN.
10384
4072d4ff
TT
103852014-02-19 Tom Tromey <tromey@redhat.com>
10386
10387 * target-delegates.c: Rebuild.
10388 * target.c (update_current_target): Don't inherit or default
10389 to_get_trace_status.
10390 * target.h (struct target_ops) <to_get_trace_status>: Use
10391 TARGET_DEFAULT_RETURN.
10392
25da2e80
TT
103932014-02-19 Tom Tromey <tromey@redhat.com>
10394
10395 * target-delegates.c: Rebuild.
10396 * target.c (update_current_target): Don't inherit or default
10397 to_trace_start.
10398 * target.h (struct target_ops) <to_trace_start>: Use
10399 TARGET_DEFAULT_NORETURN.
10400
86dd181d
TT
104012014-02-19 Tom Tromey <tromey@redhat.com>
10402
10403 * target-delegates.c: Rebuild.
10404 * target.c (update_current_target): Don't inherit or default
10405 to_trace_set_readonly_regions.
10406 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
10407 Use TARGET_DEFAULT_NORETURN.
10408
05c41993
TT
104092014-02-19 Tom Tromey <tromey@redhat.com>
10410
10411 * target-delegates.c: Rebuild.
10412 * target.c (update_current_target): Don't inherit or default
10413 to_disable_tracepoint.
10414 * target.h (struct target_ops) <to_disable_tracepoint>: Use
10415 TARGET_DEFAULT_NORETURN.
10416
151f70f1
TT
104172014-02-19 Tom Tromey <tromey@redhat.com>
10418
10419 * target-delegates.c: Rebuild.
10420 * target.c (update_current_target): Don't inherit or default
10421 to_enable_tracepoint.
10422 * target.h (struct target_ops) <to_enable_tracepoint>: Use
10423 TARGET_DEFAULT_NORETURN.
10424
94eb98b9
TT
104252014-02-19 Tom Tromey <tromey@redhat.com>
10426
10427 * target-delegates.c: Rebuild.
10428 * target.c (update_current_target): Don't inherit or default
10429 to_download_trace_state_variable.
10430 * target.h (struct target_ops) <to_download_trace_state_variable>:
10431 Use TARGET_DEFAULT_NORETURN.
10432
719acc4a
TT
104332014-02-19 Tom Tromey <tromey@redhat.com>
10434
10435 * target-delegates.c: Rebuild.
10436 * target.c (update_current_target): Don't inherit or default
10437 to_can_download_tracepoint.
10438 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
10439 TARGET_DEFAULT_RETURN.
10440
9a980a22
TT
104412014-02-19 Tom Tromey <tromey@redhat.com>
10442
10443 * target-delegates.c: Rebuild.
10444 * target.c (update_current_target): Don't inherit or default
10445 to_download_tracepoint.
10446 * target.h (struct target_ops) <to_download_tracepoint>: Use
10447 TARGET_DEFAULT_NORETURN.
10448
5536135b
TT
104492014-02-19 Tom Tromey <tromey@redhat.com>
10450
10451 * target-delegates.c: Rebuild.
10452 * target.c (update_current_target): Don't inherit or default
10453 to_trace_init.
10454 * target.h (struct target_ops) <to_trace_init>: Use
10455 TARGET_DEFAULT_RETURN.
10456
9409d39e
TT
104572014-02-19 Tom Tromey <tromey@redhat.com>
10458
10459 * target-delegates.c: Rebuild.
10460 * target.c (update_current_target): Don't inherit or default
10461 to_supports_string_tracing.
10462 * target.h (struct target_ops) <to_supports_string_tracing>: Use
10463 TARGET_DEFAULT_RETURN.
10464
aab1b22d
TT
104652014-02-19 Tom Tromey <tromey@redhat.com>
10466
10467 * target-delegates.c: Rebuild.
10468 * target.c (update_current_target): Don't inherit or default
10469 to_supports_enable_disable_tracepoint.
10470 * target.h (struct target_ops)
10471 <to_supports_enable_disable_tracepoint>: Use
10472 TARGET_DEFAULT_RETURN.
10473
a7304748
TT
104742014-02-19 Tom Tromey <tromey@redhat.com>
10475
10476 * target-delegates.c: Rebuild.
10477 * target.c (update_current_target): Don't inherit or default
10478 to_supports_multi_process.
10479 * target.h (struct target_ops) <to_supports_multi_process>: Use
10480 TARGET_DEFAULT_RETURN.
10481
4229b31d
TT
104822014-02-19 Tom Tromey <tromey@redhat.com>
10483
10484 * target-delegates.c: Rebuild.
10485 * target.c (update_current_target): Don't inherit or default
10486 to_get_ada_task_ptid.
10487 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
10488 TARGET_DEFAULT_FUNC.
10489
43eba180
TT
104902014-02-19 Tom Tromey <tromey@redhat.com>
10491
10492 * target-delegates.c: Rebuild.
10493 * target.c (update_current_target): Don't inherit or default
10494 to_thread_architecture.
10495 * target.h (struct target_ops) <to_thread_architecture>: Use
10496 TARGET_DEFAULT_FUNC.
10497
fe31bf5b
TT
104982014-02-19 Tom Tromey <tromey@redhat.com>
10499
10500 * target-delegates.c: Rebuild.
10501 * target.c (update_current_target): Don't inherit or default
10502 to_execution_direction.
10503 * target.h (struct target_ops) <to_execution_direction>: Use
10504 TARGET_DEFAULT_FUNC.
10505
53e1cfc7
TT
105062014-02-19 Tom Tromey <tromey@redhat.com>
10507
10508 * target-delegates.c: Rebuild.
10509 * target.c (update_current_target): Don't inherit or default
10510 to_can_execute_reverse.
10511 * target.h (struct target_ops) <to_can_execute_reverse>: Use
10512 TARGET_DEFAULT_RETURN.
10513 (target_can_execute_reverse): Unconditionally delegate.
10514
9bb9d61d
TT
105152014-02-19 Tom Tromey <tromey@redhat.com>
10516
10517 * target-delegates.c: Rebuild.
10518 * target.c (update_current_target): Don't inherit or default
10519 to_goto_bookmark.
10520 (dummy_goto_bookmark): Remove.
10521 (init_dummy_target): Don't inherit or default to_goto_bookmark.
10522 * target.h (struct target_ops) <to_goto_bookmark>: Use
10523 TARGET_DEFAULT_NORETURN.
10524
3dbafbbb
TT
105252014-02-19 Tom Tromey <tromey@redhat.com>
10526
10527 * target-delegates.c: Rebuild.
10528 * target.c (update_current_target): Don't inherit or default
10529 to_get_bookmark.
10530 (dummy_get_bookmark): Remove.
10531 (init_dummy_target): Don't inherit or default to_get_bookmark.
10532 * target.h (struct target_ops) <to_get_bookmark>: Use
10533 TARGET_DEFAULT_NORETURN
10534
16f796b1
TT
105352014-02-19 Tom Tromey <tromey@redhat.com>
10536
10537 * target-delegates.c: Rebuild.
10538 * target.c (update_current_target): Don't inherit or default
10539 to_make_corefile_notes.
10540 (init_dummy_target): Don't initialize to_make_corefile_notes.
10541 * target.h (struct target_ops) <to_make_corefile_notes>: Use
10542 TARGET_DEFAULT_FUNC.
10543
0b5a2719
TT
105442014-02-19 Tom Tromey <tromey@redhat.com>
10545
10546 * target-delegates.c: Rebuild.
10547 * target.c (update_current_target): Don't inherit or default
10548 to_find_memory_regions.
10549 (init_dummy_target): Don't initialize to_find_memory_regions.
10550 * target.h (struct target_ops) <to_find_memory_regions>: Use
10551 TARGET_DEFAULT_FUNC.
10552
d9cb0195
TT
105532014-02-19 Tom Tromey <tromey@redhat.com>
10554
10555 * target-delegates.c: Rebuild.
10556 * target.c (update_current_target): Don't inherit or default
10557 to_log_command.
10558 * target.h (struct target_ops) <to_log_command>: Use
10559 TARGET_DEFAULT_IGNORE.
10560 (target_log_command): Unconditionally delegate.
10561
830ca330
TT
105622014-02-19 Tom Tromey <tromey@redhat.com>
10563
10564 * target-delegates.c: Rebuild.
10565 * target.c (update_current_target): Don't inherit or default
10566 to_pid_to_exec_file.
10567 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
10568 TARGET_DEFAULT_RETURN.
10569
825828fc
TT
105702014-02-19 Tom Tromey <tromey@redhat.com>
10571
10572 * target-delegates.c: Rebuild.
10573 * target.c (update_current_target): Don't inherit or default
10574 to_thread_name.
10575 (target_thread_name): Unconditionally delegate.
10576 * target.h (struct target_ops) <to_thread_name>: Use
10577 TARGET_DEFAULT_RETURN.
10578
4a7e6dda
TT
105792014-02-19 Tom Tromey <tromey@redhat.com>
10580
10581 * target-delegates.c: Rebuild.
10582 * target.c (update_current_target): Don't inherit or default
10583 to_extra_thread_info.
10584 * target.h (struct target_ops) <to_extra_thread_info>: Use
10585 TARGET_DEFAULT_RETURN.
10586
0db88c1d
TT
105872014-02-19 Tom Tromey <tromey@redhat.com>
10588
10589 * target-delegates.c: Rebuild.
10590 * target.c (update_current_target): Don't inherit or default
10591 to_has_exited.
10592 * target.h (struct target_ops) <to_has_exited>: Use
10593 TARGET_DEFAULT_RETURN..
10594
6a9fa051
TT
105952014-02-19 Tom Tromey <tromey@redhat.com>
10596
10597 * target-delegates.c: Rebuild.
10598 * target.c (update_current_target): Don't inherit or default
10599 to_set_syscall_catchpoint.
10600 (return_one): Remove.
10601 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
10602 TARGET_DEFAULT_RETURN.
10603
62f64d7a
TT
106042014-02-19 Tom Tromey <tromey@redhat.com>
10605
10606 * target-delegates.c: Rebuild.
10607 * target.c (update_current_target): Don't inherit or default
10608 to_insert_exec_catchpoint.
10609 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
10610 TARGET_DEFAULT_RETURN.
10611
cda0f38c
TT
106122014-01-08 Tom Tromey <tromey@redhat.com>
10613
10614 * target-delegates.c: Rebuild.
10615 * target.c (update_current_target): Don't inherit or default
10616 to_insert_exec_catchpoint.
10617 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
10618 TARGET_DEFAULT_RETURN.
10619
95c3375e
TT
106202014-02-19 Tom Tromey <tromey@redhat.com>
10621
10622 * target-delegates.c: Rebuild.
10623 * target.c (update_current_target): Don't inherit or default
10624 to_remove_vfork_catchpoint.
10625 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
10626 TARGET_DEFAULT_RETURN.
10627
7e18a8dc
TT
106282014-02-19 Tom Tromey <tromey@redhat.com>
10629
10630 * target-delegates.c: Rebuild.
10631 * target.c (update_current_target): Don't inherit or default
10632 to_insert_vfork_catchpoint.
10633 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
10634 TARGET_DEFAULT_RETURN.
10635
e1a21fb7
TT
106362014-02-19 Tom Tromey <tromey@redhat.com>
10637
10638 * target-delegates.c: Rebuild.
10639 * target.c (update_current_target): Don't inherit or default
10640 to_remove_fork_catchpoint.
10641 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
10642 TARGET_DEFAULT_RETURN.
10643
5958ebeb
TT
106442014-02-19 Tom Tromey <tromey@redhat.com>
10645
10646 * target-delegates.c: Rebuild.
10647 * target.c (update_current_target): Don't inherit or default
10648 to_insert_fork_catchpoint.
10649 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
10650 TARGET_DEFAULT_RETURN.
10651
340ba4bf
TT
106522014-02-19 Tom Tromey <tromey@redhat.com>
10653
10654 * target-delegates.c: Rebuild.
10655 * target.c (update_current_target): Don't inherit or default
10656 to_post_startup_inferior.
10657 * target.h (struct target_ops) <to_post_startup_inferior>: Use
10658 TARGET_DEFAULT_IGNORE.
10659
7634da87
TT
106602014-02-19 Tom Tromey <tromey@redhat.com>
10661
10662 * target-delegates.c: Rebuild.
10663 * target.c (update_current_target): Don't inherit or default
10664 to_load.
10665 * target.h (struct target_ops) <to_load>: Use
10666 TARGET_DEFAULT_NORETURN.
10667
e19e919f
TT
106682014-02-19 Tom Tromey <tromey@redhat.com>
10669
10670 * target-delegates.c: Rebuild.
10671 * target.c (update_current_target): Don't inherit or default
10672 to_terminal_info.
10673 * target.h (struct target_ops) <to_terminal_info>: Use
10674 TARGET_DEFAULT_FUNC.
10675
c6ea8f79
TT
106762014-02-19 Tom Tromey <tromey@redhat.com>
10677
10678 * target-delegates.c: Rebuild.
10679 * target.c (update_current_target): Don't inherit or default
10680 to_terminal_save_ours.
10681 * target.h (struct target_ops) <to_terminal_save_ours>: Use
10682 TARGET_DEFAULT_IGNORE.
10683
e4a733f1
TT
106842014-02-19 Tom Tromey <tromey@redhat.com>
10685
10686 * target-delegates.c: Rebuild.
10687 * target.c (update_current_target): Don't inherit or default
10688 to_terminal_ours.
10689 * target.h (struct target_ops) <to_terminal_ours>: Use
10690 TARGET_DEFAULT_IGNORE.
10691
74fcbef9
TT
106922014-02-19 Tom Tromey <tromey@redhat.com>
10693
10694 * target-delegates.c: Rebuild.
10695 * target.c (update_current_target): Don't inherit or default
10696 to_terminal_ours_for_output.
10697 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
10698 TARGET_DEFAULT_IGNORE.
10699
ddeaacc9
TT
107002014-02-19 Tom Tromey <tromey@redhat.com>
10701
10702 * target-delegates.c: Rebuild.
10703 * target.c (update_current_target): Don't inherit or default
10704 to_terminal_inferior.
10705 * target.h (struct target_ops) <to_terminal_inferior>: Use
10706 TARGET_DEFAULT_IGNORE.
10707
0343661d
TT
107082014-02-19 Tom Tromey <tromey@redhat.com>
10709
10710 * target-delegates.c: Rebuild.
10711 * target.c (update_current_target): Don't inherit or default
10712 to_terminal_init.
10713 * target.h (struct target_ops) <to_terminal_init>: Use
10714 TARGET_DEFAULT_IGNORE.
10715
77cdffe9
TT
107162014-02-19 Tom Tromey <tromey@redhat.com>
10717
10718 * target-delegates.c: Rebuild.
10719 * target.c (update_current_target): Don't inherit or default
10720 to_can_accel_watchpoint_condition.
10721 * target.h (struct target_ops)
10722 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
10723
d03655e4
TT
107242014-02-19 Tom Tromey <tromey@redhat.com>
10725
10726 * target-delegates.c: Rebuild.
10727 * target.c (update_current_target): Don't inherit or default
10728 to_region_ok_for_hw_watchpoint.
10729 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10730 Use TARGET_DEFAULT_FUNC.
10731
65f160a9
TT
107322014-02-19 Tom Tromey <tromey@redhat.com>
10733
10734 * target-delegates.c: Rebuild.
10735 * target.c (update_current_target): Don't inherit or default
10736 to_watchpoint_addr_within_range.
10737 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
10738 Use TARGET_DEFAULT_FUNC.
10739
61dd109f
TT
107402014-02-19 Tom Tromey <tromey@redhat.com>
10741
10742 * target-delegates.c: Rebuild.
10743 * target.c (update_current_target): Don't inherit or default
10744 to_remove_watchpoint.
10745 * target.h (struct target_ops) <to_remove_watchpoint>: Use
10746 TARGET_DEFAULT_NORETURN.
10747
016facd4
TT
107482014-02-19 Tom Tromey <tromey@redhat.com>
10749
10750 * target-delegates.c: Rebuild.
10751 * target.c (update_current_target): Don't inherit or default
10752 to_insert_watchpoint.
10753 * target.h (struct target_ops) <to_insert_watchpoint>: Use
10754 TARGET_DEFAULT_RETURN.
10755
418dabac
TT
107562014-02-19 Tom Tromey <tromey@redhat.com>
10757
10758 * target-delegates.c: Rebuild.
10759 * target.c (update_current_target): Don't inherit or default
10760 to_remove_hw_breakpoint.
10761 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
10762 TARGET_DEFAULT_RETURN.
10763
61b371f9
TT
107642014-02-19 Tom Tromey <tromey@redhat.com>
10765
10766 * target-delegates.c: Rebuild.
10767 * target.c (update_current_target): Don't inherit or default
10768 to_insert_hw_breakpoint.
10769 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
10770 TARGET_DEFAULT_RETURN.
10771
52b51d06
TT
107722014-02-19 Tom Tromey <tromey@redhat.com>
10773
10774 * target-delegates.c: Rebuild.
10775 * target.c (update_current_target): Don't inherit or default
10776 to_can_use_hw_breakpoint.
10777 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
10778 TARGET_DEFAULT_RETURN.
10779
f86e59b2
TT
107802014-02-19 Tom Tromey <tromey@redhat.com>
10781
10782 * target-delegates.c: Rebuild.
10783 * target.c (update_current_target): Don't inherit or default
10784 to_files_info.
10785 * target.h (struct target_ops) <to_files_info>: Use
10786 TARGET_DEFAULT_IGNORE.
10787
6c628163
TT
107882014-02-19 Tom Tromey <tromey@redhat.com>
10789
10790 * target-delegates.c: Rebuild.
10791 * target.c (update_current_target): Don't inherit or default
10792 to_store.
10793 * target.h (struct target_ops) <to_store>: Use
10794 TARGET_DEFAULT_NORETURN.
10795
bebd3233
TT
107962014-02-19 Tom Tromey <tromey@redhat.com>
10797
10798 * target-delegates.c: Rebuild.
10799 * target.c (update_current_target): Don't inherit or default
10800 to_post_attach.
10801 * target.h (struct target_ops) <to_post_attach>: Use
10802 TARGET_DEFAULT_IGNORE.
10803
a53f3625
TT
108042014-02-19 Tom Tromey <tromey@redhat.com>
10805
10806 * target-delegates.c: Rebuild.
10807 * target.c (update_current_target): Don't inherit or default
10808 to_rcmd.
10809 (default_rcmd): New function.
10810 (do_monitor_command): Unconditionally delegate.
10811 * target.h (struct target_ops) <to_rmcd>: Use
10812 TARGET_DEFAULT_FUNC.
10813
e9a29200
TT
108142014-02-19 Tom Tromey <tromey@redhat.com>
10815
10816 * target-delegates.c: Rebuild.
10817 * target.c (init_dummy_target): Don't initialize to_attach.
10818 (target_attach): Unconditionally delegate.
10819 * target.h (struct target_ops) <to_attach>: Use
10820 TARGET_DEFAULT_FUNC.
10821
09da0d0a
TT
108222014-02-19 Tom Tromey <tromey@redhat.com>
10823
10824 * target-delegates.c: Rebuild.
10825 * target.c (target_detach): Unconditionally delegate.
10826 (init_dummy_target): Don't initialize to_detach.
10827 * target.h (struct target_ops) <to_detach>: Use
10828 TARGET_DEFAULT_IGNORE.
10829
5436ff03
TT
108302014-02-19 Tom Tromey <tromey@redhat.com>
10831
10832 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
10833 Add argument.
10834 (target_augmented_libraries_svr4_read): Add argument.
10835 * target.c (update_current_target): Update.
10836 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
10837 argument.
10838
f0d960ea
TT
108392014-02-19 Tom Tromey <tromey@redhat.com>
10840
10841 * target.h (struct target_ops) <to_call_history_range>: Add
10842 argument.
10843 * target.c (target_call_history_range): Add argument.
10844 * record-btrace.c (record_btrace_call_history_range): Add 'self'
10845 argument.
10846 (record_btrace_call_history_from): Update.
10847
ec0aea04
TT
108482014-02-19 Tom Tromey <tromey@redhat.com>
10849
10850 * target.h (struct target_ops) <to_call_history_from>: Add
10851 argument.
10852 * target.c (target_call_history_from): Add argument.
10853 * record-btrace.c (record_btrace_call_history_from): Add 'self'
10854 argument.
10855
5df2fcba
TT
108562014-02-19 Tom Tromey <tromey@redhat.com>
10857
10858 * target.h (struct target_ops) <to_call_history>: Add argument.
10859 * target.c (target_call_history): Add argument.
10860 * record-btrace.c (record_btrace_call_history): Add 'self'
10861 argument.
10862
4e99c6b7
TT
108632014-02-19 Tom Tromey <tromey@redhat.com>
10864
10865 * target.h (struct target_ops) <to_insn_history_range>: Add
10866 argument.
10867 * target.c (target_insn_history_range): Add argument.
10868 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
10869 argument.
10870 (record_btrace_insn_history_from): Update.
10871
9abc3ff3
TT
108722014-02-19 Tom Tromey <tromey@redhat.com>
10873
10874 * target.h (struct target_ops) <to_insn_history_from>: Add
10875 argument.
10876 * target.c (target_insn_history_from): Add argument.
10877 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
10878 argument.
10879
7a6c5609
TT
108802014-02-19 Tom Tromey <tromey@redhat.com>
10881
10882 * target.h (struct target_ops) <to_insn_history>: Add argument.
10883 * target.c (target_insn_history): Add argument.
10884 * record-btrace.c (record_btrace_insn_history): Add 'self'
10885 argument.
10886
606183ac
TT
108872014-02-19 Tom Tromey <tromey@redhat.com>
10888
10889 * target.h (struct target_ops) <to_goto_record>: Add argument.
10890 * target.c (target_goto_record): Add argument.
10891 * record-full.c (record_full_goto): Add 'self' argument.
10892 * record-btrace.c (record_btrace_goto): Add 'self' argument.
10893
307a1b91
TT
108942014-02-19 Tom Tromey <tromey@redhat.com>
10895
10896 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
10897 * target.c (target_goto_record_end): Add argument.
10898 * record-full.c (record_full_goto_end): Add 'self' argument.
10899 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
10900
08475817
TT
109012014-02-19 Tom Tromey <tromey@redhat.com>
10902
10903 * target.h (struct target_ops) <to_goto_record_begin>: Add
10904 argument.
10905 * target.c (target_goto_record_begin): Add argument.
10906 * record-full.c (record_full_goto_begin): Add 'self' argument.
10907 * record-btrace.c (record_btrace_goto_begin): Add 'self'
10908 argument.
10909
1c63c994
TT
109102014-02-19 Tom Tromey <tromey@redhat.com>
10911
10912 * target.h (struct target_ops) <to_record_is_replaying>: Add
10913 argument.
10914 * target.c (target_record_is_replaying): Add argument.
10915 * record-full.c (record_full_is_replaying): Add 'self' argument.
10916 * record-btrace.c (record_btrace_is_replaying): Add 'self'
10917 argument.
10918 (record_btrace_xfer_partial, record_btrace_store_registers)
10919 (record_btrace_prepare_to_store, record_btrace_resume)
10920 (record_btrace_wait, record_btrace_decr_pc_after_break)
10921 (record_btrace_find_new_threads, record_btrace_thread_alive):
10922 Update.
10923
d1b55219
TT
109242014-02-19 Tom Tromey <tromey@redhat.com>
10925
10926 * target.h (struct target_ops) <to_delete_record>: Add argument.
10927 * target.c (target_delete_record): Add argument.
10928 * record-full.c (record_full_delete): Add 'self' argument.
10929
1390f529
TT
109302014-02-19 Tom Tromey <tromey@redhat.com>
10931
10932 * target.h (struct target_ops) <to_save_record>: Add argument.
10933 * target.c (target_save_record): Add argument.
10934 * record-full.c (record_full_save): Add 'self' argument.
10935 (record_full_save): Add 'self' argument.
10936
630d6a4a
TT
109372014-02-19 Tom Tromey <tromey@redhat.com>
10938
10939 * target.h (struct target_ops) <to_info_record>: Add argument.
10940 * target.c (target_info_record): Add argument.
10941 * record.c (info_record_command): Add argument.
10942 * record-full.c (record_full_info): Add 'self' argument.
10943 * record-btrace.c (record_btrace_info): Add 'self' argument.
10944
c6cd7c02
TT
109452014-02-19 Tom Tromey <tromey@redhat.com>
10946
10947 * target.h (struct target_ops) <to_stop_recording>: Add argument.
10948 * target.c (target_stop_recording): Add argument.
10949 * record.c (record_stop): Add argument.
10950 * record-btrace.c (record_btrace_stop_recording): Add 'self'
10951 argument.
10952
39c49f83
TT
109532014-02-19 Tom Tromey <tromey@redhat.com>
10954
10955 * target.h (struct target_ops) <to_read_btrace>: Add argument.
10956 * target.c (struct target_ops) <to_read_btrace>: Add argument.
10957 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
10958 argument.
10959 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
10960 (_initialize_amd64_linux_nat): Use it.
10961 * i386-linux-nat.c (i386_linux_read_btrace): New function.
10962 (_initialize_i386_linux_nat): Use it.
10963
1777056d
TT
109642014-02-19 Tom Tromey <tromey@redhat.com>
10965
10966 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
10967 * target.c (target_teardown_btrace): Add argument.
10968 * remote.c (remote_teardown_btrace): Add 'self' argument.
10969 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
10970 argument.
10971 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
10972 argument.
10973
25e95349
TT
109742014-02-19 Tom Tromey <tromey@redhat.com>
10975
10976 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
10977 * target.c (target_disable_btrace): Add argument.
10978 * remote.c (remote_disable_btrace): Add 'self' argument.
10979 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
10980 argument.
10981 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
10982 argument.
10983
e3c49f88
TT
109842014-02-19 Tom Tromey <tromey@redhat.com>
10985
10986 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
10987 * target.c (target_enable_btrace): Add argument.
10988 * remote.c (remote_enable_btrace): Add 'self' argument.
10989 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
10990 argument.
10991 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
10992 argument.
10993
fe38f897
TT
109942014-02-19 Tom Tromey <tromey@redhat.com>
10995
10996 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
10997 (target_can_use_agent): Add argument.
10998 * target.c (update_current_target): Update.
10999 * remote.c (remote_can_use_agent): Add 'self' argument.
11000 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
11001
2c152180
TT
110022014-02-19 Tom Tromey <tromey@redhat.com>
11003
11004 * target.h (struct target_ops) <to_use_agent>: Add argument.
11005 (target_use_agent): Add argument.
11006 * target.c (update_current_target): Update.
11007 * remote.c (remote_use_agent): Add 'self' argument.
11008 * inf-child.c (inf_child_use_agent): Add 'self' argument.
11009
a893e81f
TT
110102014-02-19 Tom Tromey <tromey@redhat.com>
11011
11012 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
11013 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
11014 (target_traceframe_info): Add argument.
11015 * target.c (update_current_target): Update.
11016 * remote.c (remote_traceframe_info): Add 'self' argument.
11017 * ctf.c (ctf_traceframe_info): Add 'self' argument.
11018
c686c57f
TT
110192014-02-19 Tom Tromey <tromey@redhat.com>
11020
11021 * target.h (target_static_tracepoint_markers_by_strid): Add
11022 argument.
11023 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
11024 'self' argument.
11025 * target.c (update_current_target): Update.
11026 * remote.c (struct target_ops)
11027 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
11028 * linux-nat.c (struct target_ops)
11029 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
11030
61fc905d
TT
110312014-02-19 Tom Tromey <tromey@redhat.com>
11032
11033 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
11034 Add argument.
11035 (target_static_tracepoint_marker_at): Add argument.
11036 * target.c (update_current_target): Update.
11037 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
11038 argument.
11039
c378d69d
TT
110402014-02-19 Tom Tromey <tromey@redhat.com>
11041
11042 * target.h (struct target_ops) <to_set_permissions>: Add argument.
11043 (target_set_permissions): Add argument.
11044 * target.c (update_current_target): Update.
11045 * remote.c (remote_set_permissions): Add 'self' argument.
11046 (remote_start_remote): Update.
11047
bd7ae0f5
TT
110482014-02-19 Tom Tromey <tromey@redhat.com>
11049
11050 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
11051 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
11052 (target_get_tib_address): Add argument.
11053 * target.c (update_current_target): Update.
11054 * remote.c (remote_get_tib_address): Add 'self' argument.
11055
d9e68a2c
TT
110562014-02-19 Tom Tromey <tromey@redhat.com>
11057
11058 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
11059 (target_set_trace_notes): Add argument.
11060 * target.c (update_current_target): Update.
11061 * remote.c (remote_set_trace_notes): Add 'self' argument.
11062
4da384be
TT
110632014-02-19 Tom Tromey <tromey@redhat.com>
11064
11065 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
11066 argument.
11067 (target_set_trace_buffer_size): Add argument.
11068 * target.c (update_current_target): Update.
11069 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
11070
736d5b1f
TT
110712014-02-19 Tom Tromey <tromey@redhat.com>
11072
11073 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
11074 argument.
11075 (target_set_circular_trace_buffer): Add argument.
11076 * target.c (update_current_target): Update.
11077 * remote.c (remote_set_circular_trace_buffer): Add 'self'
11078 argument.
11079
37b25738
TT
110802014-02-19 Tom Tromey <tromey@redhat.com>
11081
11082 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
11083 argument.
11084 (target_set_disconnected_tracing): Add argument.
11085 * target.c (update_current_target): Update.
11086 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
11087
0e67620a
TT
110882014-02-19 Tom Tromey <tromey@redhat.com>
11089
11090 * target.h (struct target_ops)
11091 <to_get_min_fast_tracepoint_insn_len>: Add argument.
11092 (target_get_min_fast_tracepoint_insn_len): Add argument.
11093 * target.c (update_current_target): Update.
11094 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
11095 argument.
11096
88ee6f45
TT
110972014-02-19 Tom Tromey <tromey@redhat.com>
11098
11099 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
11100 argument.
11101 (target_get_raw_trace_data): Add argument.
11102 * target.c (update_current_target): Update.
11103 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
11104
181e3713
TT
111052014-02-19 Tom Tromey <tromey@redhat.com>
11106
11107 * target.h (struct target_ops) <to_upload_trace_state_variables>:
11108 Add argument.
11109 (target_upload_trace_state_variables): Add argument.
11110 * target.c (update_current_target): Update.
11111 * remote.c (remote_upload_trace_state_variables): Add 'self'
11112 argument.
11113 (remote_start_remote): Update.
11114
ab6617cc
TT
111152014-02-19 Tom Tromey <tromey@redhat.com>
11116
11117 * target.h (struct target_ops) <to_upload_tracepoints>: Add
11118 argument.
11119 (target_upload_tracepoints): Add argument.
11120 * target.c (update_current_target): Update.
11121 * remote.c (remote_upload_tracepoints): Add 'self' argument.
11122 (remote_start_remote): Update.
11123
dc3decaf
TT
111242014-02-19 Tom Tromey <tromey@redhat.com>
11125
11126 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
11127 (target_save_trace_data): Add argument.
11128 * target.c (update_current_target): Update.
11129 * remote.c (remote_save_trace_data): Add 'self' argument.
11130
4011015b
TT
111312014-02-19 Tom Tromey <tromey@redhat.com>
11132
11133 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
11134 argument.
11135 * target.h (struct target_ops)
11136 <to_get_trace_state_variable_value>: Add argument.
11137 (target_get_trace_state_variable_value): Add argument.
11138 * target.c (update_current_target): Update.
11139 * remote.c (remote_get_trace_state_variable_value): Add 'self'
11140 argument.
11141 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
11142
bd4c6793
TT
111432014-02-19 Tom Tromey <tromey@redhat.com>
11144
11145 * tracepoint.c (tfile_trace_find): Add 'self' argument.
11146 * target.h (struct target_ops) <to_trace_find>: Add argument.
11147 (target_trace_find): Add argument.
11148 * target.c (update_current_target): Update.
11149 * remote.c (remote_trace_find): Add 'self' argument.
11150 * ctf.c (ctf_trace_find): Add 'self' argument.
11151
74499f1b
TT
111522014-02-19 Tom Tromey <tromey@redhat.com>
11153
11154 * target.h (struct target_ops) <to_trace_stop>: Add argument.
11155 (target_trace_stop): Add argument.
11156 * target.c (update_current_target): Update.
11157 * remote.c (remote_trace_stop): Add 'self' argument.
11158
db90e85c
TT
111592014-02-19 Tom Tromey <tromey@redhat.com>
11160
11161 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
11162 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
11163 argument.
11164 (target_get_tracepoint_status): Add argument.
11165 * target.c (update_current_target): Update.
11166 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
11167
8bd200f1
TT
111682014-02-19 Tom Tromey <tromey@redhat.com>
11169
11170 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
11171 * target.h (struct target_ops) <to_get_trace_status>: Add
11172 argument.
11173 (target_get_trace_status): Add argument.
11174 * target.c (update_current_target): Update.
11175 * remote.c (remote_get_trace_status): Add 'self' argument.
11176 (remote_start_remote, remote_can_download_tracepoint): Update.
11177 * ctf.c (ctf_get_trace_status): Add 'self' argument.
11178
e2d1aae3
TT
111792014-02-19 Tom Tromey <tromey@redhat.com>
11180
11181 * target.h (struct target_ops) <to_trace_start>: Add argument.
11182 (target_trace_start): Add argument.
11183 * target.c (update_current_target): Update.
11184 * remote.c (remote_trace_start): Add 'self' argument.
11185
583f9a86
TT
111862014-02-19 Tom Tromey <tromey@redhat.com>
11187
11188 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
11189 Add argument.
11190 (target_trace_set_readonly_regions): Add argument.
11191 * target.c (update_current_target): Update.
11192 * remote.c (remote_trace_set_readonly_regions): Add 'self'
11193 argument.
11194
780b049c
TT
111952014-02-19 Tom Tromey <tromey@redhat.com>
11196
11197 * target.h (struct target_ops) <to_disable_tracepoint>: Add
11198 argument.
11199 (target_disable_tracepoint): Add argument.
11200 * target.c (update_current_target): Update.
11201 * remote.c (remote_disable_tracepoint): Add 'self' argument.
11202
46670d57
TT
112032014-02-19 Tom Tromey <tromey@redhat.com>
11204
11205 * target.h (struct target_ops) <to_enable_tracepoint>: Add
11206 argument.
11207 (target_enable_tracepoint): Add argument.
11208 * target.c (update_current_target): Update.
11209 * remote.c (remote_enable_tracepoint): Add 'self' argument.
11210
559d2b81
TT
112112014-02-19 Tom Tromey <tromey@redhat.com>
11212
11213 * target.h (struct target_ops) <to_download_trace_state_variable>:
11214 Add argument.
11215 (target_download_trace_state_variable): Add argument.
11216 * target.c (update_current_target): Update.
11217 * remote.c (remote_download_trace_state_variable): Add 'self'
11218 argument.
11219
a52a8357
TT
112202014-02-19 Tom Tromey <tromey@redhat.com>
11221
11222 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
11223 argument.
11224 (target_can_download_tracepoint): Add argument.
11225 * target.c (update_current_target): Update.
11226 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
11227
548f7808
TT
112282014-02-19 Tom Tromey <tromey@redhat.com>
11229
11230 * target.h (struct target_ops) <to_download_tracepoint>: Add
11231 argument.
11232 (target_download_tracepoint): Add argument.
11233 * target.c (update_current_target): Update.
11234 * remote.c (remote_download_tracepoint): Add 'self' argument.
11235
ecae04e1
TT
112362014-02-19 Tom Tromey <tromey@redhat.com>
11237
11238 * target.h (struct target_ops) <to_trace_init>: Add argument.
11239 (target_trace_init): Add argument.
11240 * target.c (update_current_target): Update.
11241 * remote.c (remote_trace_init): Add 'self' argument.
11242
fab5aa7c
TT
112432014-02-19 Tom Tromey <tromey@redhat.com>
11244
11245 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
11246 * target.c (target_fileio_readlink): Add argument.
11247 * remote.c (remote_hostio_readlink): Add 'self' argument.
11248 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
11249
dbbca37d
TT
112502014-02-19 Tom Tromey <tromey@redhat.com>
11251
11252 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
11253 * target.c (target_fileio_unlink): Add argument.
11254 * remote.c (remote_hostio_unlink): Add 'self' argument.
11255 (remote_file_delete): Update.
11256 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
11257
df39ea25
TT
112582014-02-19 Tom Tromey <tromey@redhat.com>
11259
11260 * target.h (struct target_ops) <to_fileio_close>: Add argument.
11261 * target.c (target_fileio_close): Add argument.
11262 * remote.c (remote_hostio_close): Add 'self' argument.
11263 (remote_hostio_close_cleanup): Update.
11264 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
11265 Update.
11266 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
11267
a3be983c
TT
112682014-02-19 Tom Tromey <tromey@redhat.com>
11269
11270 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
11271 * target.c (target_fileio_pread): Add argument.
11272 * remote.c (remote_hostio_pread): Add 'self' argument.
11273 (remote_bfd_iovec_pread, remote_file_get): Update.
11274 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
11275
0d866f62
TT
112762014-02-19 Tom Tromey <tromey@redhat.com>
11277
11278 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
11279 * target.c (target_fileio_pwrite): Add argument.
11280 * remote.c (remote_hostio_pwrite): Add 'self' argument.
11281 (remote_file_put): Update.
11282 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
11283
cd897586
TT
112842014-02-19 Tom Tromey <tromey@redhat.com>
11285
11286 * target.h (struct target_ops) <to_fileio_open>: Add argument.
11287 * target.c (target_fileio_open): Add argument.
11288 * remote.c (remote_hostio_open): Add 'self' argument.
11289 (remote_bfd_iovec_open): Add 'self' argument.
11290 (remote_file_put): Add 'self' argument.
11291 (remote_file_get): Add 'self' argument.
11292 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
11293
78eff0ec
TT
112942014-02-19 Tom Tromey <tromey@redhat.com>
11295
11296 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
11297 Add argument.
11298 (target_can_run_breakpoint_commands): Add argument.
11299 * target.c (update_current_target): Update.
11300 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
11301 argument.
11302 (remote_insert_breakpoint): Add 'self' argument.
11303 (remote_insert_hw_breakpoint): Add 'self' argument.
11304 (remote_can_run_breakpoint_commands): Add 'self' argument.
11305
efcc2da7
TT
113062014-02-19 Tom Tromey <tromey@redhat.com>
11307
11308 * target.h (struct target_ops)
11309 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
11310 (target_supports_evaluation_of_breakpoint_conditions): Add
11311 argument.
11312 * target.c (update_current_target): Update.
11313 * remote.c (remote_supports_cond_breakpoints): Add 'self'
11314 argument.
11315 (remote_insert_breakpoint): Add 'self' argument.
11316 (remote_insert_hw_breakpoint): Add 'self' argument.
11317 (remote_supports_cond_breakpoints): Add 'self' argument.
11318
6de37a3a
TT
113192014-02-19 Tom Tromey <tromey@redhat.com>
11320
11321 * target.h (struct target_ops) <to_supports_string_tracing>: Add
11322 argument.
11323 (target_supports_string_tracing): Add argument.
11324 * target.c (update_current_target): Update.
11325 * remote.c (remote_supports_string_tracing): Add 'self' argument.
11326
2bfc0540
TT
113272014-02-19 Tom Tromey <tromey@redhat.com>
11328
11329 * target.h (struct target_ops)
11330 <to_supports_disable_randomization>: Add argument.
11331 * target.c (find_default_supports_disable_randomization): Add
11332 argument.
11333 (target_supports_disable_randomization): Add argument.
11334 (find_default_supports_disable_randomization): Add 'self'
11335 argument.
11336 * remote.c (extended_remote_supports_disable_randomization): Add
11337 'self' argument.
11338 (remote_supports_disable_randomization): Add 'self' argument.
11339 (extended_remote_create_inferior): Update.
11340 * linux-nat.c (linux_nat_supports_disable_randomization): Add
11341 'self' argument.
11342
7d178d6a
TT
113432014-02-19 Tom Tromey <tromey@redhat.com>
11344
11345 * target.h (struct target_ops)
11346 <to_supports_enable_disable_tracepoint>: Add argument.
11347 (target_supports_enable_disable_tracepoint): Add argument.
11348 * target.c (update_current_target): Update.
11349 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
11350 argument.
11351
86ce2668
TT
113522014-02-19 Tom Tromey <tromey@redhat.com>
11353
11354 * target.h (struct target_ops) <to_supports_multi_process>: Add
11355 argument.
11356 (target_supports_multi_process): Add argument.
11357 * target.c (update_current_target): Update.
11358 * remote.c (remote_supports_multi_process): Add 'self' argument.
11359 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
11360 argument.
11361 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
11362 argument.
11363
4c612759
TT
113642014-02-19 Tom Tromey <tromey@redhat.com>
11365
11366 * target.h (struct target_ops) <to_execution_direction>: Add
11367 argument.
11368 (target_execution_direction): Add argument.
11369 * target.c (default_execution_direction): Add 'self' argument.
11370 * record-full.c (record_full_execution_direction): Add 'self'
11371 argument.
11372
19db3e69
TT
113732014-02-19 Tom Tromey <tromey@redhat.com>
11374
11375 * target.h (struct target_ops) <to_can_execute_reverse>: Add
11376 argument.
11377 (target_can_execute_reverse): Add argument.
11378 * remote.c (remote_can_execute_reverse): Add 'self' argument.
11379 * record-full.c (record_full_can_execute_reverse): Add 'self'
11380 argument.
11381 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
11382 argument.
11383
1e6b91a4
TT
113842014-02-19 Tom Tromey <tromey@redhat.com>
11385
11386 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
11387 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
11388 argument.
11389 (target_get_ada_task_ptid): Add argument.
11390 * target.c (update_current_target): Update.
11391 (default_get_ada_task_ptid): Add 'self' argument.
11392 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
11393 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
11394 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
11395 argument.
11396 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
11397 argument.
11398 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
11399 argument.
11400 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
11401 argument.
11402 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
11403 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
11404 argument.
11405
3c80fb48
TT
114062014-02-19 Tom Tromey <tromey@redhat.com>
11407
11408 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
11409 (target_goto_bookmark): Add argument.
11410 * target.c (dummy_goto_bookmark): Add 'self' argument.
11411 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
11412
dd0e2830
TT
114132014-02-19 Tom Tromey <tromey@redhat.com>
11414
11415 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
11416 (target_get_bookmark): Add argument.
11417 * target.c (dummy_get_bookmark): Add 'self' argument.
11418 * record-full.c (record_full_get_bookmark): Add 'self' argument.
11419
fc6691b2
TT
114202014-02-19 Tom Tromey <tromey@redhat.com>
11421
11422 * target.h (struct target_ops) <to_make_corefile_notes>: Add
11423 argument.
11424 (target_make_corefile_notes): Add argument.
11425 * target.c (dummy_make_corefile_notes): Add 'self' argument.
11426 * procfs.c (procfs_make_note_section): Add 'self' argument.
11427 (procfs_make_note_section): Add 'self' argument.
11428 (procfs_make_note_section): Add 'self' argument.
11429 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
11430 argument.
11431 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
11432 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
11433 * exec.c (exec_make_note_section): Add 'self' argument.
11434 (exec_make_note_section): Add 'self' argument.
11435
2e73927c
TT
114362014-02-19 Tom Tromey <tromey@redhat.com>
11437
11438 * target.h (struct target_ops) <to_find_memory_regions>: Add
11439 argument.
11440 (target_find_memory_regions): Add argument.
11441 * target.c (dummy_find_memory_regions): Add 'self' argument.
11442 * procfs.c (proc_find_memory_regions): Add 'self' argument.
11443 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
11444 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
11445 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
11446 * exec. (exec_do_find_memory_regions): New global.
11447 (exec_set_find_memory_regions): Rewrite.
11448 (exec_find_memory_regions): New function.
11449 (init_exec_ops): Use exec_find_memory_regions.
11450
2a9a2795
TT
114512014-02-19 Tom Tromey <tromey@redhat.com>
11452
11453 * target.h (struct target_ops) <to_supports_non_stop>: Add
11454 argument.
11455 * target.c (find_default_supports_non_stop): Add argument.
11456 (target_supports_non_stop): Add argument.
11457 (find_default_supports_non_stop): Add 'self' argument.
11458 * remote.c (remote_supports_non_stop): Add 'self' argument.
11459 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
11460
4ab76ea3
TT
114612014-02-19 Tom Tromey <tromey@redhat.com>
11462
11463 * target.h (struct target_ops) <to_log_command>: Add argument.
11464 (target_log_command): Add argument.
11465 * serial.h (serial_log_command): Add 'self' argument.
11466 * serial.c (serial_log_command): Add 'self' argument.
11467
8dd27370
TT
114682014-02-19 Tom Tromey <tromey@redhat.com>
11469
11470 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
11471 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
11472 argument.
11473 (target_pid_to_exec_file): Add argument.
11474 * target.c (debug_to_pid_to_exec_file): Add argument.
11475 (update_current_target): Update.
11476 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
11477 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
11478 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
11479 (linux_handle_extended_wait): Update.
11480 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
11481 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
11482 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
11483 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
11484
1aac633b
TT
114852014-02-19 Tom Tromey <tromey@redhat.com>
11486
11487 * target.h (struct target_ops) <to_rcmd>: Add argument.
11488 (target_rcmd): Add argument.
11489 * target.c (debug_to_rcmd): Add argument.
11490 (update_current_target, do_monitor_command): Update.
11491 * remote.c (remote_rcmd): Add 'self' argument.
11492 * monitor.c (monitor_rcmd): Add 'self' argument.
11493
1eab8a48
TT
114942014-02-19 Tom Tromey <tromey@redhat.com>
11495
11496 * windows-nat.c (windows_stop): Add 'self' argument.
11497 * target.h (struct target_ops) <to_stop>: Add argument.
11498 * target.c (target_stop): Add argument.
11499 (debug_to_stop): Add argument.
11500 (update_current_target): Update.
11501 * remote.c (remote_stop): Add 'self' argument.
11502 * remote-sim.c (gdbsim_stop): Add 'self' argument.
11503 (gdbsim_cntrl_c): Update.
11504 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
11505 * procfs.c (procfs_stop): Add 'self' argument.
11506 * nto-procfs.c (procfs_stop): Add 'self' argument.
11507 * monitor.c (monitor_stop): Add 'self' argument.
11508 (monitor_open): Update.
11509 * linux-nat.c (linux_nat_stop): Add argument.
11510 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
11511 * gnu-nat.c (gnu_stop): Add 'self' argument.
11512 * darwin-nat.c (darwin_stop): Add 'self' argument.
11513
503a628d
TT
115142014-02-19 Tom Tromey <tromey@redhat.com>
11515
11516 * target.h (struct target_ops) <to_thread_name>: Add argument.
11517 * target.c (target_thread_name): Add argument.
11518 (update_current_target): Update.
11519 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
11520
c15906d8
TT
115212014-02-19 Tom Tromey <tromey@redhat.com>
11522
11523 * target.h (struct target_ops) <to_extra_thread_info>: Add
11524 argument.
11525 (target_extra_thread_info): Add argument.
11526 * target.c (update_current_target): Update.
11527 * remote.c (remote_threads_extra_info): Add 'self' argument.
11528 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
11529 argument.
11530 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
11531 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
11532 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
11533 argument.
11534 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
11535 argument.
11536 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
11537 argument.
11538 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
11539 argument.
11540
daf5e9b6
TT
115412014-02-19 Tom Tromey <tromey@redhat.com>
11542
11543 * target.h (struct target_ops) <to_program_signals>: Add argument.
11544 * target.c (target_program_signals): Add argument.
11545 * remote.c (remote_program_signals): Add 'self' argument.
11546
94bedb42
TT
115472014-02-19 Tom Tromey <tromey@redhat.com>
11548
11549 * target.h (struct target_ops) <to_pass_signals>: Add argument.
11550 * target.c (target_pass_signals): Add argument.
11551 * remote.c (remote_pass_signals): Add 'self' argument.
11552 (remote_start_remote): Update.
11553 * procfs.c (procfs_pass_signals): Add 'self' argument.
11554 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
11555 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
11556 (linux_nat_create_inferior, linux_nat_attach): Update.
11557
da82bd6b
TT
115582014-02-19 Tom Tromey <tromey@redhat.com>
11559
11560 * windows-nat.c (windows_can_run): Add 'self' argument.
11561 * target.h (struct target_ops) <to_can_run>: Add argument.
11562 (target_can_run): Add argument.
11563 * target.c (debug_to_can_run): Add argument.
11564 (update_current_target): Update.
11565 * nto-procfs.c (procfs_can_run): Add 'self' argument.
11566 * inf-child.c (inf_child_can_run): Add 'self' argument.
11567 * go32-nat.c (go32_can_run): Add 'self' argument.
11568
d796e1d6
TT
115692014-02-19 Tom Tromey <tromey@redhat.com>
11570
11571 * target.h (struct target_ops) <to_has_exited>: Add argument.
11572 (target_has_exited): Add argument.
11573 * target.c (debug_to_has_exited): Add argument.
11574 (update_current_target): Update.
11575
ff214e67
TT
115762014-02-19 Tom Tromey <tromey@redhat.com>
11577
11578 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
11579 argument.
11580 (target_set_syscall_catchpoint): Add argument.
11581 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
11582 argument.
11583 * target.c (update_current_target): Update.
11584
758e29d2
TT
115852014-02-19 Tom Tromey <tromey@redhat.com>
11586
11587 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
11588 argument.
11589 (target_remove_exec_catchpoint): Add argument.
11590 * target.c (debug_to_remove_exec_catchpoint): Add argument.
11591 (update_current_target): Update.
11592 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
11593 argument.
11594
ba025e51
TT
115952014-02-19 Tom Tromey <tromey@redhat.com>
11596
11597 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
11598 argument.
11599 (target_insert_exec_catchpoint): Add argument.
11600 * target.c (debug_to_insert_exec_catchpoint): Add argument.
11601 (update_current_target): Update.
11602 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
11603 argument.
11604
e98cf0cd
TT
116052014-02-19 Tom Tromey <tromey@redhat.com>
11606
11607 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
11608 argument.
11609 (target_remove_vfork_catchpoint): Add argument.
11610 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
11611 (update_current_target): Update.
11612 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
11613 argument.
11614
3ecc7da0
TT
116152014-02-19 Tom Tromey <tromey@redhat.com>
11616
11617 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
11618 argument.
11619 (target_insert_vfork_catchpoint): Add argument.
11620 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
11621 (update_current_target): Update.
11622 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
11623 argument.
11624
973fc227
TT
116252014-02-19 Tom Tromey <tromey@redhat.com>
11626
11627 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
11628 argument.
11629 (target_remove_fork_catchpoint): Add argument.
11630 * target.c (debug_to_remove_fork_catchpoint): Add argument.
11631 (update_current_target): Update.
11632 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
11633 argument.
11634
a863b201
TT
116352014-02-19 Tom Tromey <tromey@redhat.com>
11636
11637 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
11638 argument.
11639 (target_insert_fork_catchpoint): Add argument.
11640 * target.c (debug_to_insert_fork_catchpoint): Add argument.
11641 (update_current_target): Update.
11642 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
11643 argument.
11644
2e97a79e
TT
116452014-02-19 Tom Tromey <tromey@redhat.com>
11646
11647 * target.h (struct target_ops) <to_post_startup_inferior>: Add
11648 argument.
11649 (target_post_startup_inferior): Add argument.
11650 * target.c (debug_to_post_startup_inferior): Add argument.
11651 (update_current_target): Update.
11652 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
11653 argument.
11654 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
11655 argument.
11656 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
11657 argument.
11658 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
11659 argument.
11660 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
11661 'self' argument.
11662 (super_post_startup_inferior): Likewise.
11663 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
11664 'self' argument.
11665 (super_post_startup_inferior): Likewise.
11666 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
11667 Add 'self' argument.
11668 (super_post_startup_inferior): Likewise.
11669
71a9f134
TT
116702014-02-19 Tom Tromey <tromey@redhat.com>
11671
11672 * target.h (struct target_ops) <to_load>: Add argument.
11673 * target.c (target_load): Add argument.
11674 (debug_to_load): Add argument.
11675 (update_current_target): Update.
11676 * remote.c (remote_load): Add 'self' argument.
11677 * remote-sim.c (gdbsim_load): Add 'self' argument.
11678 * remote-mips.c (mips_load): Add 'self' argument.
11679 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
11680 * monitor.c (monitor_load): Add 'self' argument.
11681 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
11682
0a4f40a2
TT
116832014-02-19 Tom Tromey <tromey@redhat.com>
11684
11685 * target.h (struct target_ops) <to_terminal_info>: Add argument.
11686 (target_terminal_info): Add argument.
11687 * target.c (debug_to_terminal_info): Add argument.
11688 (default_terminal_info): Likewise.
11689 * inflow.c (child_terminal_info): Add 'self' argument.
11690 * inferior.h (child_terminal_info): Add 'self' argument.
11691 * go32-nat.c (go32_terminal_info): Add 'self' argument.
11692
ae3bd431
TT
116932014-02-19 Tom Tromey <tromey@redhat.com>
11694
11695 * target.h (struct target_ops) <to_terminal_save_ours>: Add
11696 argument.
11697 (target_terminal_save_ours): Add argument.
11698 * target.c (debug_to_terminal_save_ours): Add argument.
11699 (update_current_target): Update.
11700 * inflow.c (terminal_save_ours): Add 'self' argument.
11701 * inferior.h (terminal_save_ours): Add 'self' argument.
11702
e3594fd1
TT
117032014-02-19 Tom Tromey <tromey@redhat.com>
11704
11705 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
11706 (target_terminal_ours): Add argument.
11707 * target.c (debug_to_terminal_ours): Add argument.
11708 (update_current_target): Update.
11709 * remote.c (remote_terminal_ours): Add 'self' argument.
11710 (remote_close): Update.
11711 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
11712 * inflow.c (terminal_ours): Add 'self' argument.
11713 * inferior.h (terminal_ours): Add 'self' argument.
11714 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11715
2e1e1a19
TT
117162014-02-19 Pedro Alves <palves@redhat.com>
11717 Tom Tromey <tromey@redhat.com>
11718
11719 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
11720 argument.
11721 (target_terminal_ours_for_output): Add argument.
11722 * target.c (debug_to_terminal_ours_for_output): Add argument.
11723 (update_current_target): Update.
11724 * inflow.c (terminal_ours_for_output): Add 'self' argument.
11725 * inferior.h (terminal_ours_for_output): Add 'self' argument.
11726 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11727
d2f640d4
TT
117282014-02-19 Tom Tromey <tromey@redhat.com>
11729
11730 * target.h (struct target_ops) <to_terminal_inferior>: Add
11731 argument.
11732 * target.c (target_terminal_inferior): Add argument.
11733 (update_current_target): Update.
11734 * remote.c (remote_terminal_inferior): Add 'self' argument.
11735 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
11736 * inflow.c (terminal_inferior): Add 'self' argument.
11737 * inferior.h (terminal_inferior): Add 'self' argument.
11738 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
11739 (go32_terminal_inferior): Add 'self' argument.
11740
c42bf286
TT
117412014-02-19 Tom Tromey <tromey@redhat.com>
11742
11743 * target.h (struct target_ops) <to_terminal_init>: Add argument.
11744 (target_terminal_init): Add argument.
11745 * target.c (debug_to_terminal_init): Add argument.
11746 (update_current_target): Update.
11747 * inflow.c (terminal_init_inferior): Add 'self' argument.
11748 * inferior.h (terminal_init_inferior): Add 'self' argument.
11749 * go32-nat.c (go32_terminal_init): Add 'self' argument.
11750 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
11751
c3a5ff89
TT
117522014-02-19 Tom Tromey <tromey@redhat.com>
11753
11754 * target.h (struct target_ops)
11755 <to_can_accel_watchpoint_condition>: Add argument.
11756 (target_can_accel_watchpoint_condition): Add argument.
11757 * target.c (debug_to_can_accel_watchpoint_condition): Add
11758 argument.
11759 (update_current_target): Update.
11760 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
11761 'self' argument.
11762
31568a15
TT
117632014-02-19 Tom Tromey <tromey@redhat.com>
11764
11765 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11766 Add argument.
11767 (target_region_ok_for_hw_watchpoint): Add argument.
11768 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
11769 (default_region_ok_for_hw_watchpoint): Add argument.
11770 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
11771 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
11772 argument.
11773 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
11774 argument.
11775 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
11776 argument.
11777 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
11778 'self' argument.
11779 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
11780 'self' argument.
11781 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
11782 'self' argument.
11783 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
11784 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
11785 'self' argument.
11786 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
11787 Add 'self' argument.
11788
7bb99c53
TT
117892014-02-19 Tom Tromey <tromey@redhat.com>
11790
11791 * target.h (struct target_ops) <to_insert_watchpoint>: Add
11792 argument.
11793 (target_insert_watchpoint): Add argument.
11794 * target.c (debug_to_insert_watchpoint): Add argument.
11795 (update_current_target): Update.
11796 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
11797 * remote.c (remote_insert_watchpoint): Add 'self' argument.
11798 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
11799 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
11800 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
11801 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
11802 argument.
11803 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
11804 (procfs_insert_hw_watchpoint): Add 'self' argument.
11805 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
11806 argument.
11807 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
11808 argument.
11809 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
11810 argument.
11811 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
11812 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
11813 argument.
11814 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
11815 'self' argument.
11816
11b5219a
TT
118172014-02-19 Tom Tromey <tromey@redhat.com>
11818
11819 * target.h (struct target_ops) <to_remove_watchpoint>: Add
11820 argument.
11821 (target_remove_watchpoint): Add argument.
11822 * target.c (debug_to_remove_watchpoint): Add argument.
11823 (update_current_target): Update.
11824 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
11825 * remote.c (remote_remove_watchpoint): Add 'self' argument.
11826 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
11827 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
11828 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
11829 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
11830 argument.
11831 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
11832 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
11833 argument.
11834 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
11835 argument.
11836 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
11837 argument.
11838 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
11839 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
11840 argument.
11841 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
11842 'self' argument.
11843
a64dc96c
TT
118442014-02-19 Tom Tromey <tromey@redhat.com>
11845
11846 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
11847 argument.
11848 (target_remove_hw_breakpoint): Add argument.
11849 * target.c (debug_to_remove_hw_breakpoint): Add argument.
11850 (update_current_target): Update.
11851 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
11852 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
11853 argument.
11854 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
11855 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
11856 argument.
11857 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
11858 'self' argument.
11859
23a26771
TT
118602014-02-19 Tom Tromey <tromey@redhat.com>
11861
11862 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
11863 argument.
11864 (target_insert_hw_breakpoint): Add argument.
11865 * target.c (debug_to_insert_hw_breakpoint): Add argument.
11866 (update_current_target): Update.
11867 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
11868 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
11869 argument.
11870 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
11871 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
11872 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
11873 argument.
11874 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
11875 'self' argument.
11876
5461485a
TT
118772014-02-19 Tom Tromey <tromey@redhat.com>
11878
11879 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
11880 argument.
11881 (target_can_use_hardware_watchpoint): Add argument.
11882 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
11883 (update_current_target): Update.
11884 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
11885 argument.
11886 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
11887 argument.
11888 * remote.c (remote_check_watch_resources): Add 'self' argument.
11889 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
11890 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
11891 argument.
11892 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
11893 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
11894 argument.
11895 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
11896 argument.
11897 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
11898 argument.
11899 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
11900 argument.
11901 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
11902 argument.
11903 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
11904 argument.
11905 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
11906 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
11907 argument.
11908 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
11909 'self' argument.
11910
f045800c
TT
119112014-02-19 Tom Tromey <tromey@redhat.com>
11912
11913 * target.h (struct target_ops) <to_post_attach>: Add argument.
11914 (target_post_attach): Add argument.
11915 * target.c (debug_to_post_attach): Add argument.
11916 (update_current_target): Update.
11917 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
11918 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
11919 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
11920 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
11921 * inf-child.c (inf_child_post_attach): Add 'self' argument.
11922
de90e03d
TT
119232014-02-19 Tom Tromey <tromey@redhat.com>
11924
11925 * windows-nat.c (windows_close): Add 'self' argument.
11926 * tracepoint.c (tfile_close): Add 'self' argument.
11927 * target.h (struct target_ops) <to_close>: Add argument.
11928 * target.c (target_close): Add argument.
11929 (update_current_target): Update.
11930 * remote.c (remote_close): Add 'self' argument.
11931 * remote-sim.c (gdbsim_close): Add 'self' argument.
11932 * remote-mips.c (mips_close): Add 'self' argument.
11933 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
11934 * record-full.c (record_full_close): Add 'self' argument.
11935 * record-btrace.c (record_btrace_close): Add 'self' argument.
11936 * monitor.h (monitor_close): Add 'self' argument.
11937 * monitor.c (monitor_close): Add 'self' argument.
11938 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
11939 * linux-nat.c (linux_nat_close): Add argument.
11940 * go32-nat.c (go32_close): Add 'self' argument.
11941 * exec.c (exec_close_1): Add 'self' argument.
11942 * ctf.c (ctf_close): Add 'self' argument.
11943 * corelow.c (core_close): Add 'self' argument.
11944 (core_close_cleanup): Update.
11945 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
11946 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
11947
9dd130a0
TT
119482014-02-19 Tom Tromey <tromey@redhat.com>
11949
11950 * remote.c (remote_load): New function.
11951 (init_remote_ops): Use it.
11952
46917d26
TT
119532014-02-19 Tom Tromey <tromey@redhat.com>
11954
11955 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
11956 argument.
11957 * common/linux-btrace.h (linux_supports_btrace): Update.
11958 * remote.c (remote_supports_btrace): Add "self" argument.
11959 * target-delegates.c: Rebuild.
11960 * target.c (target_supports_btrace): Remove.
11961 * target.h (struct target_ops) <to_supports_btrace>: Add
11962 target_ops argument.
11963 (target_supports_btrace): New define.
11964
6b84065d
TT
119652014-02-19 Tom Tromey <tromey@redhat.com>
11966
11967 * record-full.c (record_full_beneath_to_resume_ops)
11968 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
11969 (record_full_beneath_to_wait)
11970 (record_full_beneath_to_store_registers_ops)
11971 (record_full_beneath_to_store_registers)
11972 (record_full_beneath_to_xfer_partial_ops)
11973 (record_full_beneath_to_xfer_partial)
11974 (record_full_beneath_to_insert_breakpoint_ops)
11975 (record_full_beneath_to_insert_breakpoint)
11976 (record_full_beneath_to_remove_breakpoint_ops)
11977 (record_full_beneath_to_remove_breakpoint)
11978 (record_full_beneath_to_stopped_by_watchpoint)
11979 (record_full_beneath_to_stopped_data_address)
11980 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
11981 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
11982 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
11983 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
11984 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
11985 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
11986 (tmp_to_stopped_data_address, tmp_to_async): Remove.
11987 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
11988 (record_full_resume, record_full_wait_1)
11989 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
11990 (record_full_store_registers, record_full_xfer_partial)
11991 (record_full_insert_breakpoint, record_full_remove_breakpoint)
11992 (record_full_async, record_full_core_xfer_partial): Use target
11993 delegation.
11994 * target-delegates.c: Rebuild.
11995 * target.c (current_xfer_partial): Remove.
11996 (update_current_target): Do not INHERIT or de_fault
11997 to_insert_breakpoint, to_remove_breakpoint,
11998 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
11999 to_is_async_p, to_async. Do not set to_xfer_partial field.
12000 (default_xfer_partial): Simplify.
12001 (current_xfer_partial): Remove.
12002 (target_wait, target_resume): Simplify.
12003 (find_default_can_async_p, find_default_is_async_p): Update.
12004 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
12005 to_xfer_partial, to_stopped_by_watchpoint,
12006 to_stopped_data_address.
12007 (target_store_registers): Simplify.
12008 (forward_target_remove_breakpoint)
12009 (forward_target_insert_breakpoint): Remove.
12010 (target_remove_breakpoint, target_insert_breakpoint)
12011 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
12012 * target.h (struct target_ops) <to_resume, to_wait,
12013 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
12014 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
12015 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
12016 markup.
12017 (forward_target_remove_breakpoint)
12018 (forward_target_insert_breakpoint): Remove.
12019 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
12020 directly.
12021 (record_btrace_insert_breakpoint): Delegate directly.
12022
1101cb7b
TT
120232014-02-19 Tom Tromey <tromey@redhat.com>
12024
12025 PR build/7701:
12026 * target-delegates.c: New file.
12027 * target.c: Include target-delegates.c.
12028 (init_dummy_target): Call install_dummy_methods.
12029 (complete_target_initialization): Call install_delegators.
12030 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
12031 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
12032 * make-target-delegates: New file.
12033
8b06beed
TT
120342014-02-19 Tom Tromey <tromey@redhat.com>
12035
12036 * record.c (find_record_target): Use find_target_at.
12037 * target.c (find_target_at): New function.
12038 * target.h (find_target_at): Declare.
12039
6a109b6b
TT
120402014-02-19 Tom Tromey <tromey@redhat.com>
12041
12042 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
12043 Add 'ops' argument.
12044 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
12045 'ops' argument.
12046 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
12047 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
12048 'ops' argument.
12049 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
12050 argument.
12051 * linux-nat.c (save_sigtrap): Update.
12052 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
12053 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
12054 (linux_nat_close): Update.
12055 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
12056 argument.
12057 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
12058 argument.
12059 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
12060 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
12061 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
12062 (tmp_to_async): Add 'ops' argument.
12063 (record_full_stopped_by_watchpoint, record_full_async)
12064 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
12065 argument.
12066 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
12067 (m32r_stopped_by_watchpoint): Add 'ops' argument.
12068 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
12069 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
12070 (remote_is_async_p, remote_async): Add 'ops' argument.
12071 (remote_stopped_data_address): Update.
12072 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
12073 * target.c (update_current_target)
12074 (find_default_can_async_p, find_default_is_async_p): Update.
12075 (init_dummy_target): Update.
12076 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
12077 * target.h (struct target_ops) <to_stopped_by_watchpoint,
12078 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
12079 (target_can_async_p, target_is_async_p, target_async)
12080 (target_stopped_by_watchpoint): Update.
12081
e095146b
YQ
120822014-02-19 Yao Qi <yao@codesourcery.com>
12083
12084 PR gdb/16220
12085 * gdbarch.sh: Remove startup_gdbarch.
12086 * gdbarch.c: Regenerated.
12087 * gdbarch.h: Likewise.
12088
bc3c6b36
KB
120892014-02-17 Kevin Buettner <kevinb@redhat.com>
12090
12091 * rl78-tdep.c (rl78_g10_register_name): New function.
12092 (rl78_return_value): Add g10 support.
12093 (rl78_gdbarch_init): Register rl78_g10_register_name for the
12094 g10.
12095
98dc0167 120962014-02-17 Doug Evans <xdje42@gmail.com>
f01c1940
DE
12097
12098 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
12099 (SUBDIR_GUILE_SRCS): Ditto.
12100 (scm-gsmob.o): Ditto.
12101
842c05cd
YQ
121022014-02-17 Yao Qi <yao@codesourcery.com>
12103
12104 * gnu-nat.c (ILL_RPC): Declare defined function.
12105
25c0bd04
YQ
121062014-02-17 Yao Qi <yao@codesourcery.com>
12107
12108 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
12109 mach_msg_type_number_t.
12110 (gnu_write_inferior): Likewise.
12111
a9a758e3
YQ
121122014-02-17 Yao Qi <yao@codesourcery.com>
12113
12114 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
12115 in format string.
12116 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
12117 (inf_validate_procs, inf_signal): Likewise.
12118 (S_exception_raise_request): Likewise.
12119 (do_mach_notify_dead_name): Likewise.
12120 (steal_exc_port): Likewise.
12121 (gnu_read_inferior): Change 'copy_count''s type to
12122 mach_msg_type_number_t.
12123 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
12124 format string.
12125
bae8023e
TS
121262014-02-16 Thomas Schwinge <thomas@codesourcery.com>
12127
c82f56d9
TS
12128 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
12129 flag. Adjust all users; in particular...
12130 (gnu_wait): ..., don't decrement its value in here...
12131 (gnu_create_inferior): ..., and instead set the flag in here,
12132 around the startup_inferior call, and call that one with
12133 START_INFERIOR_TRAPS_EXPECTED.
12134
3398af6a
TS
12135 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
12136 (ILL_RPC): ... new macro.
12137 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
12138 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
12139 (do_mach_notify_send_once, S_proc_setmsgport_reply)
12140 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
12141 functions with ILL_RPC macro.
12142 (S_proc_pid2task_reply, S_proc_task2pid_reply)
12143 (S_proc_task2proc_reply, S_proc_proc2task_reply)
12144 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
12145 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
12146 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
12147 (S_proc_getlogin_reply, S_proc_getsid_reply)
12148 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
12149 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
12150 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
12151 (S_proc_getnports_reply, S_proc_is_important_reply)
12152 (S_proc_get_code_reply): New stub functions, generated with
12153 ILL_RPC macro.
12154
d47642c9
TS
12155 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
12156 collected the type check structures.
12157
bae8023e
TS
12158 * reply_mig_hack.awk: Don't expect to see the auto keyword.
12159
8a55ffb0
DE
121602014-02-14 Doug Evans <dje@google.com>
12161
12162 * target.c (target_write_partial): Fix result type.
12163
c2853f3d
JM
121642014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
12165
12166 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
12167 the proper offsets to access fpregset_t.
12168
ac61d2db
SA
121692014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
12170
12171 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
12172 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
12173 * h8300-tdep.c (setmachinelist): Remove global.
12174 * hppa-tdep.c (hppa_sigtramp): Remove global.
12175 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
12176 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
12177 * ravenscar-thread.c (update_target_observer): Remove global.
12178 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
12179
9d2d0b8b
TT
121802014-02-12 Tom Tromey <tromey@redhat.com>
12181
12182 * common/rsp-low.c: Update comments.
12183 * common/rsp-low.h: Update comments.
12184
a7191e8b
TT
121852014-02-12 Tom Tromey <tromey@redhat.com>
12186
12187 * common/rsp-low.c (convert_ascii_to_int): Remove.
12188 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
12189
ff0e980e
TT
121902014-02-12 Tom Tromey <tromey@redhat.com>
12191
12192 * common/rsp-low.h (unhexify): Don't declare.
12193 * common/rsp-low.c (unhexify): Remove.
12194
e9371aff
TT
121952014-02-12 Tom Tromey <tromey@redhat.com>
12196
12197 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
12198 * common/rsp-low.c (convert_int_to_ascii): Remove.
12199
971dc0b8
TT
122002014-02-12 Tom Tromey <tromey@redhat.com>
12201
12202 * common/rsp-low.h (hexify): Don't declare.
12203 * common/rsp-low.c (hexify): Remove.
12204
0a822afb
TT
122052014-02-12 Tom Tromey <tromey@redhat.com>
12206
12207 * common/rsp-low.c (hexify): Never take strlen of argument.
12208
9f1b45b0
TT
122092014-02-12 Tom Tromey <tromey@redhat.com>
12210
12211 * common/rsp-low.c (bin2hex): Never take strlen of argument.
12212 * remote.c (extended_remote_run, remote_rcmd)
12213 (remote_download_trace_state_variable, remote_save_trace_data)
12214 (remote_set_trace_notes): Update.
12215 * tracepoint.c (encode_source_string, tfile_write_status)
12216 (tfile_write_uploaded_tsv): Update.
12217
9c3d6531
TT
122182014-02-12 Tom Tromey <tromey@redhat.com>
12219
12220 * tracepoint.c: Include rsp-low.h.
12221 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
12222 * remote.c: Include rsp-low.h.
12223 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
12224 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
12225 (remote_unescape_input): Move to common/rsp-low.c.
12226 * common/rsp-low.h: New file.
12227 * common/rsp-low.c: New file.
12228 * Makefile.in (SFILES): Add common/rsp-low.c.
12229 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
12230 (COMMON_OBS): Add rsp-low.o.
12231 (rsp-low.o): New target.
12232
01fd3ea5
TT
122332014-02-12 Tom Tromey <tromey@redhat.com>
12234
12235 * utils.h: Include print-utils.h.
12236 (host_address_to_string, plongest, pulongest, phex, phex_nz)
12237 (int_string, core_addr_to_string, core_addr_to_string_nz)
12238 (hex_string, hex_string_custom): Don't declare.
12239 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
12240 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
12241 (hex_string_custom, int_string, core_addr_to_string)
12242 (core_addr_to_string_nz, host_address_to_string): Move to
12243 common/print-utils.c.
12244 * common/print-utils.h: New file.
12245 * common/print-utils.c: New file
12246 * Makefile.in (SFILES): Add common/print-utils.c.
12247 (HFILES_NO_SRCDIR): Add common/print-utils.h.
12248 (COMMON_OBS): Add print-utils.o.
12249 (print-utils.o): New target.
12250
9fb50108
TT
122512014-02-12 Tom Tromey <tromey@redhat.com>
12252
12253 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
12254
0548b5db
MK
122552014-02-12 Mark Kettenis <kettenis@gnu.org>
12256
12257 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
12258
493443a4
MK
122592014-02-12 Mark Kettenis <kettenis@gnu.org>
12260
12261 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
12262 if a PT_IO ptrace request returns sucessfully but indicates that 0
12263 bytes were transferred.
12264
706d0883
PA
122652014-02-12 Pedro Alves <palves@redhat.com>
12266 Kevin Buettner <kevinb@redhat.com>
12267
12268 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
12269 TYPE_INSTANCE_FLAG_CODE_SPACE.
12270
5caa2f0b
PA
122712014-02-12 Pedro Alves <palves@redhat.com>
12272
12273 * h8300-tdep.c (pseudo_from_raw_register)
12274 (raw_from_pseudo_register): New functions.
12275 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
12276 them.
12277
76fd5f74
PA
122782014-02-12 Pedro Alves <palves@redhat.com>
12279
12280 * h8300-tdep.c (h8300_register_sim_regno): New function.
12281 (h8300_gdbarch_init): Install h8300_register_sim_regno as
12282 gdbarch_register_sim_regno hook.
12283
8f008406
SA
122842014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
12285
12286 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
12287
195abc10
SA
122882014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
12289
12290 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
12291
93ffa5b9
MK
122922014-02-12 Mark Kettenis <kettenis@gnu.org>
12293
12294 * obsd-tdep.h (obsd_init_abi): New prototype.
12295 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
12296 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
12297 (obsd_init_abi): New functions.
12298 * i386obsd-tdep.c: Include "obsd-tdep.h".
12299 (i386obsd_init_abi): Call obsd_init_abi.
12300 * amd64obsd-tdep.c: Include "obsd-tdep.h".
12301 (amd64obsd_init_abi): Call obsd_init_abi.
12302 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
12303 obsd-tdep.c to gdb_target_obs.
12304
49caec94
JM
123052014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
12306
12307 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
12308 double float arguments to 16-byte in the argument slots.
12309
e1402065
DE
123102014-02-11 Doug Evans <xdje42@gmail.com>
12311
12312 * configure.ac: Don't crash if pkg-config is not found and guile
12313 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
12314 in guile checks.
12315 * configure: Regenerate.
12316
edcc890f
YQ
123172014-02-11 Yao Qi <yao@codesourcery.com>
12318
12319 * aix-thread.c (aix_thread_xfer_partial): Update comments.
12320 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
12321 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
12322 * gnu-nat.c (gnu_xfer_memory): Likewise.
12323 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
12324 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12325 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12326 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12327
9b409511
YQ
123282014-02-11 Yao Qi <yao@codesourcery.com>
12329
12330 * target.h (enum target_xfer_error): Rename to ...
12331 (enum target_xfer_status): ... it. New. All users updated.
12332 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
12333 New.
12334 (TARGET_XFER_STATUS_ERROR_P): New macro.
12335 (target_xfer_error_to_string): Remove declaration.
12336 (target_xfer_status_to_string): Declare.
12337 (target_xfer_partial_ftype): Adjust it.
12338 (struct target_ops) <to_xfer_partial>: Return
12339 target_xfer_status. Add argument xfered_len. Update
12340 comments.
12341 * target.c (target_xfer_error_to_string): Rename to ...
12342 (target_xfer_status_to_string): ... it. New. All callers
12343 updated.
12344 (target_read_live_memory): Likewise. Call target_xfer_partial
12345 instead of target_read.
12346 (memory_xfer_live_readonly_partial): Return
12347 target_xfer_status. Add argument xfered_len.
12348 (raw_memory_xfer_partial): Likewise.
12349 (memory_xfer_partial_1): Likewise.
12350 (memory_xfer_partial): Likewise.
12351 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
12352 properly. Update debug message.
12353 (default_xfer_partial, current_xfer_partial): Likewise.
12354 (target_write_partial): Likewise.
12355 (target_read_partial): Likewise. All callers updated.
12356 (read_whatever_is_readable): Likewise.
12357 (target_write_with_progress): Likewise.
12358 (target_read_alloc_1): Likewise.
12359
12360 * aix-thread.c (aix_thread_xfer_partial): Likewise.
12361 * auxv.c (procfs_xfer_auxv): Likewise.
12362 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
12363 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12364 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12365 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
12366 * corefile.c (read_memory): Adjust.
12367 * corelow.c (core_xfer_partial): Likewise.
12368 * ctf.c (ctf_xfer_partial): Likewise.
12369 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
12370 updated.
12371 (darwin_xfer_partial): Likewise.
12372 * exec.c (section_table_xfer_memory_partial): Likewise. All
12373 callers updated.
12374 (exec_xfer_partial): Likewise.
12375 * exec.h (section_table_xfer_memory_partial): Update
12376 declaration.
12377 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
12378 negative.
12379 (gnu_xfer_partial): Likewise.
12380 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
12381 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
12382 (ia64_hpux_xfer_solib_got): Likewise.
12383 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
12384 type of 'partial_len' to ULONGEST.
12385 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
12386 * linux-nat.c (linux_xfer_siginfo ): Likewise.
12387 (linux_nat_xfer_partial): Likewise.
12388 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
12389 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
12390 * monitor.c (monitor_xfer_memory): Likewise.
12391 (monitor_xfer_partial): Likewise.
12392 * procfs.c (procfs_xfer_partial): Likewise.
12393 * record-btrace.c (record_btrace_xfer_partial): Likewise.
12394 * record-full.c (record_full_xfer_partial): Likewise.
12395 (record_full_core_xfer_partial): Likewise.
12396 * remote-sim.c (gdbsim_xfer_memory): Likewise.
12397 (gdbsim_xfer_partial): Likewise.
12398 * remote.c (remote_write_bytes_aux): Likewise. All callers
12399 updated.
12400 (remote_write_bytes, remote_read_bytes): Likewise. All
12401 callers updated.
12402 (remote_flash_erase): Likewise. All callers updated.
12403 (remote_write_qxfer): Likewise. All callers updated.
12404 (remote_read_qxfer): Likewise. All callers updated.
12405 (remote_xfer_partial): Likewise.
12406 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12407 (rs6000_xfer_shared_libraries): Likewise.
12408 * sol-thread.c (sol_thread_xfer_partial): Likewise.
12409 (sol_thread_xfer_partial): Likewise.
12410 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12411 (sparc_xfer_partial): Likewise.
12412 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
12413 updated.
12414 (spu_xfer_partial): Likewise.
12415 * spu-multiarch.c (spu_xfer_partial): Likewise.
12416 * tracepoint.c (tfile_xfer_partial): Likewise.
12417 * windows-nat.c (windows_xfer_memory): Likewise.
12418 (windows_xfer_shared_libraries): Likewise.
12419 (windows_xfer_partial): Likewise.
12420 * valprint.c: Replace 'target_xfer_error' with
12421 'target_xfer_status' in comments.
12422
a8e63083
JB
124232014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
12424
12425 Checked in by Joel Brobecker <brobecker@adacore.com>.
12426 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
12427
e86b67d3
JB
124282014-02-11 Joel Brobecker <brobecker@adacore.com>
12429
12430 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
12431 function parameters.
12432
4b7d1f7f
WN
124332014-02-10 Will Newton <will.newton@linaro.org>
12434
12435 * elfread.c (elf_rel_plt_read): Look for a .got section if
12436 looking up .got.plt fails.
12437 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
12438 on address passed to elf_gnu_ifunc_record_cache.
12439 (elf_gnu_ifunc_resolve_addr): Likewise.
12440 (elf_gnu_ifunc_resolver_return_stop): Likewise.
12441
961842b2
JM
124422014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
12443
12444 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
12445 (X_RETTURN): New macro.
12446 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
12447
12448 * sparc64-tdep.c (sparc64_init_abi): Hook
12449 sparc_in_function_epilogue_p.
12450
3f03e7b1
GB
124512014-02-10 Gary Benson <gbenson@redhat.com>
12452
12453 * symfile-debug.c (debug_qf_expand_symtabs_matching):
12454 Rename name_matcher to symbol_matcher.
12455
96f861ef
GB
124562014-02-10 Gary Benson <gbenson@redhat.com>
12457
12458 * symfile-debug.c (debug_qf_expand_symtabs_matching):
12459 Use expand_symtabs_file_matcher_ftype and
12460 expand_symtabs_symbol_matcher_ftype.
12461
ee01b665
JB
124622014-02-10 Joel Brobecker <brobecker@adacore.com>
12463
12464 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
12465 (struct ada_symbol_cache): New.
12466 (ada_free_symbol_cache): Forward declare.
12467 (struct ada_pspace_data): New.
12468 (ada_pspace_data_handle): New static global.
12469 (get_ada_pspace_data, ada_pspace_data_cleanup)
12470 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
12471 (cache_space, cache): Delete, now folded inside struct
12472 ada_pspace_data.
12473 (ada_get_symbol_cache): New function.
12474 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
12475 implementation.
12476 (_initialize_ada_language): Remove initialization of cache_space.
12477 Move call to observer_attach_inferior_exit up, grouping it
12478 with the other observer registrations inside this function.
12479 Rename command to be more general. Add call to
12480 register_program_space_data_with_cleanup.
12481
143adbbf
JB
124822014-02-10 Joel Brobecker <brobecker@adacore.com>
12483
12484 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
12485 ada_new_objfile_observer.
12486 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
12487 (_initialize_tasks): Update uses of ada_new_objfile_observer
12488 and ada_tasks_normal_stop_observer.
12489
aa4fb036
JB
124902014-02-10 Joel Brobecker <brobecker@adacore.com>
12491
12492 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
12493 returned by the 'Length attribute to integer.
12494
9dee8cc6
JB
124952014-02-10 Joel Brobecker <brobecker@adacore.com>
12496
12497 * ada-lang.c (_initialize_ada_language): Initialize
12498 cache_space obstack.
12499
3d9434b5
JB
125002014-02-10 Joel Brobecker <brobecker@adacore.com>
12501
12502 * ada-lang.c (HASH_SIZE): New macro.
12503 (struct cache_entry): New type.
12504 (cache_space, cache): New static globals.
12505 (ada_clear_symbol_cache, find_entry): New functions.
12506 (lookup_cached_symbol, cache_symbol): Implement.
12507 (ada_new_objfile_observer, ada_free_objfile_observer): New.
12508 (_initialize_ada_language): Attach ada_new_objfile_observer
12509 and ada_free_objfile_observer.
12510
f0c5f9b2
JB
125112014-02-10 Joel Brobecker <brobecker@adacore.com>
12512
12513 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
12514 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
12515 struct block * parameter.
12516 (ada_lookup_symbol_list_worker): Constify local variable "block".
12517 Remove cast which is no longer necessary.
12518
ed3ef339
DE
125192014-02-10 Doug Evans <xdje42@gmail.com>
12520
12521 Add Guile as an extension language.
12522 * NEWS: Mention Guile scripting.
12523 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
12524 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
12525 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
12526 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
12527 (CLIBS): Add GUILE_LIBS.
12528 (install-guile): New rule.
12529 (guile.o): New rule.
12530 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
12531 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
12532 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
12533 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
12534 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
12535 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
12536 (scm-type.o, scm-utils.o, scm-value.o): New rules.
12537 * configure.ac: New option --with-guile.
12538 * configure: Regenerate.
12539 * config.in: Regenerate.
12540 * auto-load.c: Remove #include "python/python.h". Add #include
12541 "gdb/section-scripts.h".
12542 (source_section_scripts): Handle Guile scripts.
12543 (_initialize_auto_load): Add name of Guile objfile script to
12544 scripts-directory help text.
12545 * breakpoint.c (condition_command): Tweak comment to include Scheme.
12546 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
12547 (struct breakpoint): New member scm_bp_object.
12548 * defs.h (enum command_control_type): New value guile_control.
12549 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
12550 "extension.h".
12551 (show_user): Update comment.
12552 (_initialize_cli_cmds): Update help text for "show user". Update help
12553 text for max-user-call-depth.
12554 * cli/cli-script.c: Remove #include "python/python.h". Add #include
12555 "extension.h".
12556 (multi_line_command_p): Add guile_control.
12557 (print_command_lines): Handle guile_control.
12558 (execute_control_command, recurse_read_control_structure): Ditto.
12559 (process_next_line): Recognize "guile" commands.
12560 * disasm.c (gdb_disassemble_info): Make non-static.
12561 * disasm.h: #include "dis-asm.h".
12562 (struct gdbarch): Add forward decl.
12563 (gdb_disassemble_info): Declare.
12564 * extension.c: #include "guile/guile.h".
12565 (extension_languages): Add guile.
12566 (get_ext_lang_defn): Handle EXT_LANG_GDB.
12567 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
12568 * gdbtypes.c (get_unsigned_type_max): New function.
12569 (get_signed_type_minmax): New function.
12570 * gdbtypes.h (get_unsigned_type_max): Declare.
12571 (get_signed_type_minmax): Declare.
12572 * guile/README: New file.
12573 * guile/guile-internal.h: New file.
12574 * guile/guile.c: New file.
12575 * guile/guile.h: New file.
12576 * guile/scm-arch.c: New file.
12577 * guile/scm-auto-load.c: New file.
12578 * guile/scm-block.c: New file.
12579 * guile/scm-breakpoint.c: New file.
12580 * guile/scm-disasm.c: New file.
12581 * guile/scm-exception.c: New file.
12582 * guile/scm-frame.c: New file.
12583 * guile/scm-gsmob.c: New file.
12584 * guile/scm-iterator.c: New file.
12585 * guile/scm-lazy-string.c: New file.
12586 * guile/scm-math.c: New file.
12587 * guile/scm-objfile.c: New file.
12588 * guile/scm-ports.c: New file.
12589 * guile/scm-pretty-print.c: New file.
12590 * guile/scm-safe-call.c: New file.
12591 * guile/scm-string.c: New file.
12592 * guile/scm-symbol.c: New file.
12593 * guile/scm-symtab.c: New file.
12594 * guile/scm-type.c: New file.
12595 * guile/scm-utils.c: New file.
12596 * guile/scm-value.c: New file.
12597 * guile/lib/gdb.scm: New file.
12598 * guile/lib/gdb/boot.scm: New file.
12599 * guile/lib/gdb/experimental.scm: New file.
12600 * guile/lib/gdb/init.scm: New file.
12601 * guile/lib/gdb/iterator.scm: New file.
12602 * guile/lib/gdb/printing.scm: New file.
12603 * guile/lib/gdb/types.scm: New file.
12604 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
12605 (VPATH): Add $(GUILE_SRCDIR).
12606 (GUILE_DIR): New variable.
12607 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
12608 (all): Add stamp-guile dependency.
12609 (stamp-guile): New rule.
12610 (clean-guile, install-guile, uninstall-guile): New rules.
12611 (install-only): Add install-guile dependency.
12612 (uninstall): Add uninstall-guile dependency.
12613 (clean): Add clean-guile dependency.
12614
ac020ec5
DE
126152014-02-09 Doug Evans <xdje42@gmail.com>
12616
12617 Revert this patch (which I approved, mea culpa).
12618
12619 2014-02-08 Mark Kettenis <kettenis@gnu.org>
12620
12621 * Makefile.in (all-lib): Remove.
12622 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12623
2a081c59
JK
126242014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
12625
12626 Fix Python stack corruption.
12627 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
12628 gdb_py_longest.
12629
0a6bd22d
MK
126302014-02-08 Mark Kettenis <kettenis@gnu.org>
12631
12632 * Makefile.in (all-lib): Remove.
12633 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12634
1a860409
DE
126352014-02-07 Doug Evans <dje@google.com>
12636
12637 * extension-priv.h (extension_language_script_ops): Add comment.
12638 (extension_language_ops): Add comment.
caf5a491 12639 (active_ext_lang_state): Fix typo in comment.
1a860409 12640
d137e6dc
PA
126412014-02-07 Pedro Alves <palves@redhat.com>
12642
0dcb32c3 12643 PR breakpoints/16292
d137e6dc
PA
12644 * infrun.c (handle_signal_stop) <signal arrives while stepping
12645 over a breakpoint>: Switch back to the stepping thread.
12646
ce6d0892
YQ
126472014-02-07 Yao Qi <yao@codesourcery.com>
12648
12649 * target.c (target_xfer_partial): Return zero if LEN is zero.
12650
2ed4b548
YQ
126512014-02-07 Yao Qi <yao@codesourcery.com>
12652
12653 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
12654 (ld_so_xfer_auxv): Likewise.
12655 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12656 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12657 * corelow.c (core_xfer_partial): Likewise.
12658 * ctf.c (ctf_xfer_partial): Likewise.
12659 * darwin-nat.c (darwin_read_dyld_info): Likewise.
12660 (darwin_xfer_partial): Likewise.
12661 * exec.c (exec_xfer_partial): Likewise.
12662 * gnu-nat.c (gnu_xfer_partial): Likewise.
12663 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
12664 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
12665 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
12666 * linux-nat.c (linux_xfer_siginfo): Likewise.
12667 (linux_proc_xfer_spu): Likewise.
12668 * procfs.c (procfs_xfer_partial): Likewise.
12669 * record-full.c (record_full_xfer_partial): Likewise.
12670 (record_full_core_xfer_partial): Likewise.
12671 * remote-sim.c (gdbsim_xfer_partial): Likewise.
12672 * remote.c (remote_write_qxfer): Likewise.
12673 (remote_write_qxfer, remote_read_qxfer): Likewise.
12674 (remote_xfer_partial): Likewise.
12675 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12676 (rs6000_xfer_shared_libraries): Likewise.
12677 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12678 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12679 (spu_xfer_partial): Likewise.
12680 * target.c (memory_xfer_partial_1): Likewise.
12681 * tracepoint.c (tfile_xfer_partial): Likewise.
12682 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
12683 (windows_xfer_partial): Likewise.
12684
c09f20e4
YQ
126852014-02-07 Yao Qi <yao@codesourcery.com>
12686
12687 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
12688 comments.
12689 (core_xfer_shared_libraries_aix): Likewise.
12690 * gdbarch.c, gdbarch.h: Regenerated.
12691 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
12692 ULONGEST. Change 'len_avail' type to ULONGEST.
12693 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12694 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12695 declaration.
12696 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
12697
8635b3bf
YQ
126982014-02-07 Yao Qi <yao@codesourcery.com>
12699
12700 * corefile.c (memory_error): Get 'exception' from ERR and pass
12701 'exception' to throw_error.
12702
6dddc817
DE
127032014-02-06 Doug Evans <xdje42@gmail.com>
12704
12705 * configure.ac (libpython checking): Remove all but python.o from
12706 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
12707 * configure: Regenerate.
12708
12709 * Makefile.in (SFILES): Add extension.c.
12710 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
12711 (COMMON_OBS): Add extension.o.
12712 * extension.h: New file.
12713 * extension-priv.h: New file.
12714 * extension.c: New file.
12715
12716 * python/python-internal.h: #include "extension.h".
12717 (gdbpy_auto_load_enabled): Declare.
12718 (gdbpy_apply_val_pretty_printer): Declare.
12719 (gdbpy_apply_frame_filter): Declare.
12720 (gdbpy_preserve_values): Declare.
12721 (gdbpy_breakpoint_cond_says_stop): Declare.
12722 (gdbpy_breakpoint_has_cond): Declare.
12723 (void source_python_script_for_objfile): Delete.
12724 * python/python.c: #include "extension-priv.h".
12725 Delete inclusion of "observer.h".
12726 (extension_language_python): Moved here and renamed from
12727 script_language_python in py-auto-load.c.
12728 Redefined to be of type extension_language_defn.
12729 (python_extension_script_ops): New global.
12730 (python_extension_ops): New global.
12731 (struct python_env): New member previous_active.
12732 (restore_python_env): Call restore_active_ext_lang.
12733 (ensure_python_env): Call set_active_ext_lang.
12734 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
12735 New arg extlang.
12736 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
12737 New arg extlang.
12738 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
12739 New arg extlang.
12740 (gdbpy_eval_from_control_command): Renamed from
12741 eval_python_from_control_command, made static. New arg extlang.
12742 (gdbpy_source_script) Renamed from source_python_script, made static.
12743 New arg extlang.
12744 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
12745 result to int. New arg extlang.
12746 (gdbpy_source_objfile_script): Renamed from
12747 source_python_script_for_objfile, made static. New arg extlang.
12748 (gdbpy_start_type_printers): Renamed from start_type_printers, made
12749 static. New args extlang, extlang_printers. Change result type to
12750 "void".
12751 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
12752 static. New arg extlang. Rename arg printers to extlang_printers
12753 and change type to ext_lang_type_printers *.
12754 (gdbpy_free_type_printers): Renamed from free_type_printers, made
12755 static. Replace argument arg with extlang, extlang_printers.
12756 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
12757 (!HAVE_PYTHON, source_python_script): Delete.
12758 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
12759 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
12760 (!HAVE_PYTHON, start_type_printers): Delete.
12761 (!HAVE_PYTHON, apply_type_printers): Delete.
12762 (!HAVE_PYTHON, free_type_printers): Delete.
12763 (_initialize_python): Delete call to observer_attach_before_prompt.
12764 (finalize_python): Set/restore active extension language.
12765 (gdbpy_finish_initialization) Renamed from
12766 finish_python_initialization, made static. New arg extlang.
12767 (gdbpy_initialized): New function.
12768 * python/python.h: #include "extension.h". Delete #include
12769 "value.h", "mi/mi-cmds.h".
12770 (extension_language_python): Declare.
12771 (GDBPY_AUTO_FILE_NAME): Delete.
12772 (enum py_bt_status): Moved to extension.h and renamed to
12773 ext_lang_bt_status.
12774 (enum frame_filter_flags): Moved to extension.h.
12775 (enum py_frame_args): Moved to extension.h and renamed to
12776 ext_lang_frame_args.
12777 (finish_python_initialization): Delete.
12778 (eval_python_from_control_command): Delete.
12779 (source_python_script): Delete.
12780 (apply_val_pretty_printer): Delete.
12781 (apply_frame_filter): Delete.
12782 (preserve_python_values): Delete.
12783 (gdbpy_script_language_defn): Delete.
12784 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
12785 (start_type_printers, apply_type_printers, free_type_printers): Delete.
12786
12787 * auto-load.c: #include "extension.h".
12788 (GDB_AUTO_FILE_NAME): Delete.
12789 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
12790 (script_language_gdb): Delete, moved to extension.c and renamed to
12791 extension_language_gdb.
12792 (source_gdb_script_for_objfile): Delete.
12793 (auto_load_pspace_info): New member unsupported_script_warning_printed.
12794 (loaded_script): Change type of language member to
12795 struct extension_language_defn *.
12796 (init_loaded_scripts_info): Initialize
12797 unsupported_script_warning_printed.
12798 (maybe_add_script): Make static. Change type of language arg to
12799 struct extension_language_defn *.
12800 (clear_section_scripts): Reset unsupported_script_warning_printed.
12801 (auto_load_objfile_script_1): Rewrite to use extension language API.
12802 (auto_load_objfile_script): Make public. Remove support-compiled-in
12803 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
12804 (source_section_scripts): Rewrite to use extension language API.
12805 (load_auto_scripts_for_objfile): Rewrite to use
12806 auto_load_scripts_for_objfile.
12807 (collect_matching_scripts_data): Change type of language member to
12808 struct extension_language_defn *.
12809 (auto_load_info_scripts): Change type of language arg to
12810 struct extension_language_defn *.
12811 (unsupported_script_warning_print): New function.
12812 (script_not_found_warning_print): Make static.
12813 (_initialize_auto_load): Rewrite construction of scripts-directory
12814 help.
12815 * auto-load.h (struct objfile): Add forward decl.
12816 (struct script_language): Delete.
12817 (struct auto_load_pspace_info): Add forward decl.
12818 (struct extension_language_defn): Add forward decl.
12819 (maybe_add_script): Delete.
12820 (auto_load_objfile_script): Declare.
12821 (script_not_found_warning_print): Delete.
12822 (auto_load_info_scripts): Update prototype.
12823 (auto_load_gdb_scripts_enabled): Declare.
12824 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
12825 auto_load_python_scripts_enabled and made public.
12826 (script_language_python): Delete, moved to python.c.
12827 (gdbpy_script_language_defn): Delete.
12828 (info_auto_load_python_scripts): Update to use
12829 extension_language_python.
12830
12831 * breakpoint.c (condition_command): Replace call to
12832 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
12833 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
12834 with call to breakpoint_ext_lang_cond_says_stop.
12835 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
12836 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
12837 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
12838 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
12839 New arg slang.
12840 (local_setattro): Print name of extension language with existing
12841 stop condition.
12842
12843 * valprint.c (val_print, value_print): Update to call
12844 apply_ext_lang_val_pretty_printer.
12845 * cp-valprint.c (cp_print_value): Update call to
12846 apply_ext_lang_val_pretty_printer.
12847 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
12848 (gdbpy_apply_val_pretty_printer): Renamed from
12849 apply_val_pretty_printer. New arg extlang.
12850 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
12851
12852 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
12853 extension language API.
12854 * cli/cli-script.c (execute_control_command): Update to call
12855 eval_ext_lang_from_control_command.
12856
12857 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
12858 enum ext_lang_bt_status values. Update call to
12859 apply_ext_lang_frame_filter.
12860 (mi_cmd_stack_list_locals): Ditto.
12861 (mi_cmd_stack_list_args): Ditto.
12862 (mi_cmd_stack_list_variables): Ditto.
12863 * mi/mi-main.c: Delete #include "python/python-internal.h".
12864 Add #include "extension.h".
12865 (mi_cmd_list_features): Replace reference to python internal variable
12866 gdb_python_initialized with call to ext_lang_initialized_p.
12867
12868 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
12869 Update to use enum ext_lang_frame_args. Update to call
12870 apply_ext_lang_frame_filter.
12871 * python/py-framefilter.c (extract_sym): Update to use enum
12872 ext_lang_bt_status.
12873 (extract_value, py_print_type, py_print_value): Ditto.
12874 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
12875 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
12876 (py_print_frame): Ditto.
12877 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
12878 New arg extlang. Update to use enum ext_lang_bt_status.
12879
12880 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
12881 finish_python_initialization. Replace with call to
12882 finish_ext_lang_initialization.
12883
12884 * typeprint.c (do_free_global_table): Update to call
12885 free_ext_lang_type_printers.
12886 (create_global_typedef_table): Update to call
12887 start_ext_lang_type_printers.
12888 (find_global_typedef): Update to call apply_ext_lang_type_printers.
12889 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
12890 (type_print_options): Change type of global_printers from "void *"
12891 to "struct ext_lang_type_printers *".
12892
12893 * value.c (preserve_values): Update to call preserve_ext_lang_values.
12894 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
12895 (gdbpy_preserve_values): Renamed from preserve_python_values.
12896 New arg extlang.
12897 (!HAVE_PYTHON, preserve_python_values): Delete.
12898
12899 * utils.c (quit_flag): Delete, moved to extension.c.
12900 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
12901 extension.c.
12902
12903 * eval.c: Delete #include "python/python.h".
12904 * main.c: Delete #include "python/python.h".
12905
12906 * defs.h: Update comment.
12907
6af79985
JB
129082014-02-06 Joel Brobecker <brobecker@adacore.com>
12909
12910 GDB 7.7 released.
12911
12c5175d
MK
129122014-02-05 Mark Kettenis <kettenis@gnu.org>
12913
12914 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
12915 defined.
12916
8dc5b319
YQ
129172014-02-05 Yao Qi <yao@codesourcery.com>
12918
12919 * remote.c (remote_pass_signals): Remove local 'buf' and use
12920 rs->buf.
12921 (remote_program_signals): Likewise.
12922
de7b2893
YQ
129232014-02-05 Yao Qi <yao@codesourcery.com>
12924
12925 * ctf.c: Include "inferior.h" and "gdbthread.h".
12926 (CTF_PID): A new macro.
12927 (ctf_open): Call inferior_appeared and add_thread_silent.
12928 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
12929 (ctf_thread_alive): New function.
12930 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
12931
66d032ac
YQ
129322014-02-05 Yao Qi <yao@codesourcery.com>
12933
12934 Revert this patch:
12935
12936 2013-05-24 Yao Qi <yao@codesourcery.com>
12937
12938 * tracepoint.c (TFILE_PID): Remove.
12939 (tfile_open): Don't add thread and inferior.
12940 (tfile_close): Don't set 'inferior_ptid'. Don't call
12941 exit_inferior_silent.
12942 (tfile_thread_alive): Remove.
12943 (init_tfile_ops): Don't set field 'to_thread_alive' of
12944 tfile_ops.
12945
f4ccffad
CE
129462014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
12947
12948 * remote.c (remote_start_remote): Call remote_check_symbols even
12949 if only symbol-file (not file) has been given.
12950
591a12a1
UW
129512014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12952
12953 * gdbarch.sh (skip_entrypoint): New callback.
12954 * gdbarch.c, gdbarch.h: Regenerate.
12955 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
12956 * infrun.c (fill_in_stop_func): Likewise.
12957 * ppc-linux-tdep.c: Include "elf/ppc64.h".
12958 (ppc_elfv2_elf_make_msymbol_special): New function.
12959 (ppc_elfv2_skip_entrypoint): Likewise.
12960 (ppc_linux_init_abi): Install them for ELFv2.
12961
cc0e89c5
UW
129622014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12963
12964 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
12965 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
12966 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
12967 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
12968 structures returned in GPRs.
12969
52f548e4
UW
129702014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12971
12972 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
12973 offset to the stack parameter list for the ELFv2 ABI.
12974
d4094b6a
UW
129752014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12976
12977 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
12978 set_gdbarch_convert_from_func_ptr_addr and
12979 set_gdbarch_elf_make_msymbol_special for ELFv1.
12980 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
12981 function descriptors on ELFv1.
12982 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
12983 set up r12 at function entry.
12984
cd453cd0
UW
129852014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12986
12987 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
12988 (struct gdbarch_tdep): New member elf_abi.
12989
12990 * rs6000-tdep.c: Include "elf/ppc64.h".
12991 (rs6000_gdbarch_init): Detect ELF ABI version.
12992
0ff3e01f
UW
129932014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12994
12995 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
12996 within a register pair holding a DFP 128-bit value on little-endian.
12997 (ppc64_sysv_abi_return_value_base): Likewise.
12998 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
12999 (dfp_pseudo_register_write): Likewise.
13000
5b757e5d
UW
130012014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13002
13003 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
13004 offset on little-endian when passing _Decimal32.
13005 (ppc64_sysv_abi_return_value_base): Likewise for return values.
13006
084ee545
UW
130072014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13008
13009 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
13010 of the overlapped FP register within the VSX register on little-
13011 endian platforms.
13012 (efpr_pseudo_register_write): Likewise.
13013
d63167af
UW
130142014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13015
13016 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
13017 offset on little-endian when passing small structures.
13018
e765b44c
UW
130192014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13020
13021 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
13022 (struct ppc64_sysv_argpos): New data structure.
13023 (ppc64_sysv_abi_push_float): Remove.
13024 (ppc64_sysv_abi_push_val): New function.
13025 (ppc64_sysv_abi_push_integer): Likewise.
13026 (ppc64_sysv_abi_push_freg): Likewise.
13027 (ppc64_sysv_abi_push_vreg): Likewise.
13028 (ppc64_sysv_abi_push_param): Likewise.
13029 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
13030 (ppc64_sysv_abi_return_value_base): New function.
13031 (ppc64_sysv_abi_return_value): Refactor to use it.
13032
36c24d95
UW
130332014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13034
13035 * NEWS: Document new target powerpc64le-*-linux*.
13036
26fd9228
MK
130372014-02-04 Mark Kettenis <kettenis@gnu.org>
13038
13039 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
13040 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
13041 core dumps.
13042 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
13043 register set used in ELF core dumps. Add floating-point register set.
13044
c5bb7362
KB
130452014-02-03 Kevin Buettner <kevinb@redhat.com>
13046
74228e77 13047 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
c5bb7362
KB
13048 dwarf2_to_gdb[] table using symbolic constants. Adjust
13049 penultimate entry from number representing the PC register
13050 to symbolic constant representing the MDR register. Add
13051 constant for the PC register to the end of the table.
13052
af09351e
MK
130532014-02-03 Mark Kettenis <kettenis@gnu.org>
13054
13055 * bsd-kvm.c: Include <sys/param.h>
13056
8507e05d
MK
130572014-02-03 Mark Kettenis <kettenis@gnu.org>
13058
13059 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
13060
ae56bfb8
JB
130612014-01-31 Joel Brobecker <brobecker@adacore.com>
13062
13063 * ada-lang.h (clear_ada_sym_cache): Delete.
13064
718ee4dc
UW
130652014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
13066
13067 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
13068
401e27fd
JM
130692014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
13070
13071 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
13072 the sigreturn register save area only if the syscall is
13073 sigreturn.
13074
a7c88acd
JB
130752014-01-29 Joel Brobecker <brobecker@adacore.com>
13076
13077 * valops.c (value_slice): Minor reformatting.
13078
fa0079ea
UW
130792014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
13080
13081 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
13082
c6044dd1
JB
130832014-01-28 Joel Brobecker <brobecker@adacore.com>
13084
13085 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
13086 New static globals.
13087 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
13088 (ada_ignore_descriptive_types_p): New static global.
13089 (find_parallel_type_by_descriptive_type): Return immediately
13090 if ada_ignore_descriptive_types_p is set.
13091 (_initialize_ada_language): Register new commands "maintenance
13092 set ada", "maintenance show ada", "maintenance set ada
13093 ignore-descriptive-types" and "maintenance show ada
13094 ignore-descriptive-types".
13095 * NEWS: Add entry for new "maint ada set/show
13096 ignore-descriptive-types" commands.
13097
568e808b
MM
130982014-01-27 Markus Metzger <markus.t.metzger@intel.com>
13099
13100 * record-btrace.c (record_btrace_close): Call btrace_teardown
13101 for all threads.
13102
467d141b
JB
131032014-01-27 Joel Brobecker <brobecker@adacore.com>
13104
13105 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
13106 "ui-out.h".
13107
fb151210
JB
131082014-01-27 Joel Brobecker <brobecker@adacore.com>
13109
13110 * ada-typeprint (type_is_full_subrange_of_target_type):
13111 New function.
13112 (print_range): Add parameter bounds_prefered_p. If not set,
13113 try printing range types using the name of their base type.
13114 (print_range_type): Add parameter bounds_prefered_p.
13115 Use it in call to print_range.
13116 (print_array_type, ada_print_type): Update calls to print_range
13117 and print_range_type.
13118
aba02109
JB
131192014-01-27 Joel Brobecker <brobecker@adacore.com>
13120
13121 * ada-typeprint.c (print_array_type, print_choices, print_range)
13122 (print_range_bound, print_dynamic_range_bound, print_range_type):
13123 Remove declaration.
13124
e62e21fd
JB
131252014-01-27 Joel Brobecker <brobecker@adacore.com>
13126
13127 * ada-typeprint.c (print_range): Add missing empty line
13128 after local declaration.
13129
859cf5d1
JB
131302014-01-27 Joel Brobecker <brobecker@adacore.com>
13131
13132 * ada-valprint.c (print_optional_low_bound): Get index_type's
13133 target type for as long as it is a TYPE_CODE_RANGE.
13134
25790f6f
JB
131352014-01-27 Joel Brobecker <brobecker@adacore.com>
13136
13137 * procfs.c (procfs_make_note_section): Remove assertion and
13138 associated comment.
13139
6b6aa828
YQ
131402014-01-24 Yao Qi <yao@codesourcery.com>
13141
13142 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
13143 * corelow.c (get_core_siginfo): Likewise.
13144
5d6df423
YQ
131452014-01-24 Yao Qi <yao@codesourcery.com>
13146
13147 * remote.c (remote_write_bytes_aux): Change type of 'len' to
13148 ULONGEST. Don't check 'len' is negative.
13149 (remote_write_bytes): Change type of 'len' to ULONGEST.
13150
83b645b8
TT
131512014-01-23 Tom Tromey <tromey@redhat.com>
13152
13153 PR python/16485:
13154 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
13155 Handle exception from frame.block.
13156 (FrameVars.fetch_frame_locals): Likewise.
13157
0740f8d8
TT
131582014-01-23 Tom Tromey <tromey@redhat.com>
13159
13160 PR python/16487:
13161 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
13162 on a NULL pointer. Move "goto error" to correct place.
13163
21909fa1
TT
131642014-01-23 Tom Tromey <tromey@redhat.com>
13165
13166 PR python/16491:
13167 * python/py-framefilter.c (apply_frame_filter): Call
13168 ensure_python_env after computing gdbarch.
13169
17fde6d0
YQ
131702014-01-23 Yao Qi <yao@codesourcery.com>
13171
13172 * target.c (raw_memory_xfer_partial): Change argument type
13173 from void * to gdb_byte *.
13174 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
13175
87ce2a04
DE
131762014-01-22 Doug Evans <dje@google.com>
13177
13178 New gdbserver option --debug-format=timestamp.
13179 * NEWS: Mention it.
13180
237b092b
AA
131812014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
13182
13183 * syscalls/s390x-linux.xml: New file.
13184 * syscalls/s390-linux.xml: New file.
13185 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
13186 (XML_SYSCALL_FILENAME_S390X): Likewise.
13187 (op_svc): New enum value for SVC opcode.
13188 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
13189 (s390_linux_get_syscall_number): New function.
13190 (s390_gdbarch_init): Register '*get_syscall_number' and the
13191 syscall xml file name.
13192 * data-directory/Makefile.in (SYSCALLS_FILES): Add
13193 "s390-linux.xml" and "s390x-linux.xml".
13194 * NEWS: Announce new feature.
13195
54bff650
BS
131962014-01-22 Baruch Siach <baruch@tkos.co.il>
13197
13198 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
13199
14e361d7
PA
132002014-01-22 Pedro Alves <palves@redhat.com>
13201
13202 * xtensa-config.c: Include defs.h.
13203
46bbb3ed
JB
132042014-01-22 Joel Brobecker <brobecker@adacore.com>
13205
13206 * common/common-utils.h: Add "ARI:" comment beside __func__
13207 reference.
13208
3a80edfc
JB
132092014-01-22 Joel Brobecker <brobecker@adacore.com>
13210
13211 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
13212 documentation a bit.
13213
4869db5e
RM
132142014-01-21 Roland McGrath <mcgrathr@google.com>
13215
13216 * configure.ac: Call AM_PROG_INSTALL_STRIP.
13217 * configure: Regenerate.
13218 * aclocal.m4: Regenerate.
13219 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
13220 New substituted variables.
13221 (install-strip): New target.
13222 (INSTALL_SCRIPT): New substituted variable.
13223 (FLAGS_TO_PASS): Add it.
13224 (install-only): Use $(INSTALL_SCRIPT) rather than
13225 $(INSTALL_PROGRAM) for gcore.
13226
9ea4267d
TT
132272014-01-20 Tom Tromey <tromey@redhat.com>
13228
13229 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
13230 together.
13231
1f2bdf09
TT
132322014-01-20 Tom Tromey <tromey@redhat.com>
13233
13234 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
13235 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
13236 (deprecated_cmd_warning, complete_on_cmdlist): Update.
13237 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
13238 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
13239 (struct cmd_list_element) <flags>: Remove.
13240 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
13241 doc_allocated>: New fields.
13242 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
13243 bitfields.
13244 * maint.c (maintenance_do_deprecate): Update.
13245 * top.c (execute_command): Update.
13246
e671835b
BS
132472014-01-20 Baruch Siach <baruch@tkos.co.il>
13248
13249 * xtensa-linux-nat.c: Include asm/ptrace.h.
13250
50367cd2
IB
132512014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13252
13253 * Makefile.in (SFILES): Add d-support.c.
13254 (COMMON_OBS): Add d-support.o.
13255 * d-lang.h (d_parse_symbol): Add comment, now defined in
13256 d-support.c.
13257 * d-lang.c (parse_call_convention)
13258 (parse_attributes, parse_function_types)
13259 (parse_function_args, parse_type, parse_identifier)
13260 (call_convention_p, d_parse_symbol): Move functions to ...
13261 * d-support.c: ... New file.
13262
ec9f644a
IB
132632014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13264
13265 * d-lang.h (d_parse_symbol): Add declaration.
13266 * d-lang.c (extract_identifiers)
13267 (extract_type_info): Remove functions.
13268 (parse_call_convention, parse_attributes)
13269 (parse_function_types, parse_function_args)
13270 (parse_type, parse_identifier, call_convention_p)
13271 (d_parse_symbol): New functions.
13272 (d_demangle): Use d_parse_symbol to demangle D symbols.
13273
94b1b47e
IB
132742014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13275
13276 * d-lang.h (struct builtin_d_type): New data type.
13277 (builtin_d_type): Add declaration.
13278 * d-lang.c (d_language_arch_info, build_d_types)
13279 (builtin_d_type): New functions.
13280 (enum d_primitive_types): New data type.
13281 (d_language_defn): Change c_language_arch_info to
13282 d_language_arch_info.
13283 (d_type_data): New static variable.
13284 (_initialize_d_language): Initialize d_type_data.
13285
63778547
IB
132862014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13287
13288 * d-lang.h (d_main_name): Add declaration.
13289 * d-lang.c (d_main_name): New function.
13290 * symtab.c (find_main_name): Add call to d_main_name.
13291
3271ba66
IB
132922014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13293
13294 * d-lang.c (d_language_defn): Change macro_expansion_c to
13295 macro_expansion_no.
13296
d36b3012
IB
132972014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13298
13299 * MAINTAINERS: Add myself as a write-after-approval maintainer.
13300
c90a6fb7
SDJ
133012014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
13302
13303 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
13304 gdb_exception" declaration.
13305 * remote.c (getpkt_or_notif_sane): Likewise.
13306
749234e5
DE
133072014-01-17 Doug Evans <dje@google.com>
13308
13309 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
13310 function, contents of dirnames_to_char_ptr_vec_append moved here.
13311 (delim_string_to_char_ptr_vec): New function.
13312 (dirnames_to_char_ptr_vec_append): Rewrite.
13313 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
13314
df049a58
DE
133152014-01-17 Doug Evans <dje@google.com>
13316
13317 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
13318 and moved here ...
13319 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
13320 #include "common-utils.h".
13321 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
13322 * common/vec.h (VEC_ASSERT_PASS): Update.
13323 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
13324 (MACH_CHECK_ERROR): Update.
13325
69f97648
SM
133262014-01-17 Simon Marchi <simon.marchi@ericsson.com>
13327
13328 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
13329 comments.
13330 * gdbarch.h: Regenerate.
13331
98b1cfdc
TT
133322014-01-16 Tom Tromey <tromey@redhat.com>
13333
13334 * value.c (struct value) <regnum>: Move earlier.
13335
77a19445
TT
133362014-01-16 Tom Tromey <tromey@redhat.com>
13337
13338 * remote.c (extended_remote_create_inferior): Rename from
13339 extended_remote_create_inferior_1. Add "ops" argument. Remove
13340 old implementation.
13341
62261490
PA
133422014-01-16 Pedro Alves <palves@redhat.com>
13343
13344 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
13345 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
13346 the backchain.
13347
4d65956b
DE
133482014-01-16 Doug Evans <dje@google.com>
13349
13350 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
13351
52834460
MM
133522014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13353
13354 * btrace.h (btrace_thread_flag): New.
13355 (struct btrace_thread_info) <flags>: New.
13356 * record-btrace.c (record_btrace_resume_thread)
13357 (record_btrace_find_thread_to_move, btrace_step_no_history)
13358 (btrace_step_stopped, record_btrace_start_replaying)
13359 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
13360 (record_btrace_find_resume_thread): New.
13361 (record_btrace_resume, record_btrace_wait): Extend.
13362 (record_btrace_can_execute_reverse): New.
13363 (record_btrace_open): Fail in non-stop mode.
13364 (record_btrace_set_replay): Split into this, ...
13365 (record_btrace_stop_replaying): ... this, ...
13366 (record_btrace_clear_histories): ... and this.
13367 (init_record_btrace_ops): Init to_can_execute_reverse.
13368 * NEWS: Announce it.
13369
118e6252
MM
133702014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13371
13372 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
13373 (forward_target_decr_pc_after_break)
13374 (target_decr_pc_after_break): New.
13375 * target.c (forward_target_decr_pc_after_break)
13376 (target_decr_pc_after_break): New.
13377 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
13378 instead of gdbarch_decr_pc_after_break.
13379 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
13380 instead of gdbarch_decr_pc_after_break.
13381 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
13382 instead of gdbarch_decr_pc_after_break.
13383 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
13384 instead of gdbarch_decr_pc_after_break.
13385 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
13386 instead of gdbarch_decr_pc_after_break.
13387 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
13388 instead of gdbarch_decr_pc_after_break.
13389
6e07b1d2
MM
133902014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13391
13392 * btrace.c: Include regcache.h.
13393 (btrace_add_pc): New.
13394 (btrace_enable): Call btrace_add_pc.
13395 (btrace_is_empty): New.
13396 * btrace.h (btrace_is_empty): New.
13397 * record-btrace.c (require_btrace, record_btrace_info): Call
13398 btrace_is_empty.
13399
969c39fb
MM
134002014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13401
13402 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
13403 Support delta reads.
13404 (linux_disable_btrace): Change return type.
13405 * common/linux-btrace.h (linux_read_btrace): Change parameters
13406 and return type to allow error reporting. Update users.
13407 (linux_disable_btrace): Change return type. Update users.
13408 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
13409 New.
13410 (btrace_error): New.
13411 (btrace_block) <begin>: Comment on BEGIN == 0.
13412 * btrace.c (btrace_compute_ftrace): Start from the end of
13413 the current trace.
13414 (btrace_stitch_trace, btrace_clear_history): New.
13415 (btrace_fetch): Read delta trace, return if replaying.
13416 (btrace_clear): Move clear history code to btrace_clear_history.
13417 (parse_xml_btrace): Throw an error if parsing failed.
13418 * target.h (struct target_ops) <to_read_btrace>: Change parameters
13419 and return type to allow error reporting.
13420 (target_read_btrace): Change parameters and return type to allow
13421 error reporting.
13422 * target.c (target_read_btrace): Update.
13423 * remote.c (remote_read_btrace): Support delta reads. Pass
13424 errors on.
13425 * NEWS: Announce it.
13426
0b722aec
MM
134272014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13428
13429 * record.h (record_btrace_frame_unwind)
13430 (record_btrace_tailcall_frame_unwind): New declarations.
13431 * dwarf2-frame: Include record.h
13432 (dwarf2_frame_cfa): Throw an error for btrace frames.
13433 * record-btrace.c: Include hashtab.h.
13434 (btrace_get_bfun_name): New.
13435 (btrace_call_history): Call btrace_get_bfun_name.
13436 (struct btrace_frame_cache): New.
13437 (bfcache): New.
13438 (bfcache_hash, bfcache_eq, bfcache_new): New.
13439 (btrace_get_frame_function): New.
13440 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
13441 (record_btrace_frame_this_id): Compute own id.
13442 (record_btrace_frame_prev_register): Provide PC, throw_error
13443 for all other registers.
13444 (record_btrace_frame_sniffer): Detect btrace frames.
13445 (record_btrace_tailcall_frame_sniffer): New.
13446 (record_btrace_frame_dealloc_cache): New.
13447 (record_btrace_frame_unwind): Add new functions.
13448 (record_btrace_tailcall_frame_unwind): New.
13449 (_initialize_record_btrace): Allocate cache.
13450 * btrace.c (btrace_clear): Call reinit_frame_cache.
13451 * NEWS: Announce it.
13452
066ce621
MM
134532014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13454
13455 * record-btrace.c (record_btrace_set_replay)
13456 (record_btrace_goto_begin, record_btrace_goto_end)
13457 (record_btrace_goto): New.
13458 (init_record_btrace_ops): Initialize them.
13459 * NEWS: Announce it.
13460
e2887aa3
MM
134612014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13462
13463 * record-btrace.c (record_btrace_find_new_threads)
13464 (record_btrace_thread_alive): New.
13465 (init_record_btrace_ops): Initialize to_find_new_threads and
13466 to_thread_alive.
13467
b2f4cfde
MM
134682014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13469
13470 * record-btrace.c (record_btrace_resume): New.
13471 (record_btrace_wait): New.
13472 (init_record_btrace_ops): Initialize to_wait and to_resume.
13473
633785ff
MM
134742014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13475
13476 * record-btrace.c (record_btrace_xfer_partial)
13477 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
13478 (record_btrace_allow_memory_access): New.
13479 (init_record_btrace_ops): Initialize new methods.
13480 * target.c (raw_memory_xfer_partial): Bail out if target reports
13481 that this memory is not available.
13482
3db08215
MM
134832014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13484
13485 * target.h (target_ops) <to_insert_breakpoint>
13486 <to_remove_breakpoint>: Add target_ops parameter.
13487 (forward_target_insert_breakpoint): New.
13488 (forward_target_remove_breakpoint): New.
13489 (memory_remove_breakpoint, memory_insert_breakpoint):
13490 Add target_ops parameter.
13491 * target.c (target_insert_breakpoint): Split into this and ...
13492 (forward_target_insert_breakpoint): ... this.
13493 (target_remove_breakpoint): Split into this and ...
13494 (forward_target_remove_breakpoint): ... this.
13495 (debug_to_insert_breakpoint): Add target_ops parameter.
13496 Call forward_target_insert_breakpoint.
13497 (debug_to_remove_breakpoint): Add target_ops parameter.
13498 Call forward_target_remove_breakpoint.
13499 (update_current_target): Do not inherit or default to_insert_breakpoint
13500 and to_remove_breakpoint.
13501 * corelow.c (ignore): Add target_ops parameter.
13502 * exec.c (ignore): Add target_ops parameter.
13503 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
13504 Add target_ops parameter.
13505 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
13506 Add target_ops parameter.
13507 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
13508 Add target_ops parameter.
13509 * record-full.c (record_full_beneath_to_insert_breakpoint)
13510 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
13511 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
13512 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
13513 (record_full_core_remove_breakpoint): Add target_ops parameter.
13514 Update users.
13515 (record_full_beneath_to_insert_breakpoint_ops)
13516 (record_full_beneath_to_remove_breakpoint_ops)
13517 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
13518 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
13519 tmp_to_remove_breakpoint_ops,
13520 record_full_beneath_to_insert_breakpoint_ops, and
13521 record_full_beneath_to_remove_breakpoint_ops.
13522 * remote-m32r-sdi.c (m32r_insert_breakpoint)
13523 (m32r_remove_breakpoint): Add target_ops parameter.
13524 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
13525 Add target_ops parameter.
13526 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
13527 Add target_ops parameter.
13528
cecac1ab
MM
135292014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13530 Markus Metzger <markus.t.metzger@intel.com>
13531
13532 * record-btrace.c: Include frame-unwind.h.
13533 (record_btrace_frame_unwind_stop_reason)
13534 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
13535 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
13536 New.
13537 (init_record_btrace_ops): Install it.
13538
824344ca
MM
135392014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13540
13541 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
13542 get_prev_frame_1.
13543
32261e52
MM
135442014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13545
13546 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
13547 earlier.
13548
ea001bdc
MM
135492014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13550
13551 * frame-unwind.c: Include target.h.
13552 (frame_unwind_try_unwinder): New function with code from ...
13553 (frame_unwind_find_by_frame): ... here. New variable
13554 unwinder_from_target, call also target_get_unwinder)
13555 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
13556 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
13557 * target.h (struct target_ops): New fields to_get_unwinder and
13558 to_get_tailcall_unwinder.
13559 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
13560
1f3ef581
MM
135612014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13562
13563 * record-btrace.c (record_btrace_fetch_registers)
13564 (record_btrace_store_registers)
13565 (record_btrace_to_prepare_to_store): New.
13566 (init_record_btrace_ops): Add the above.
13567
f32dbf8c
MM
135682014-01-16 Tom Tromey <tromey@redhat.com>
13569
13570 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
13571 * target.h (struct target_ops) <to_prepare_to_store>: Add
13572 argument.
13573 (target_prepare_to_store): Add argument.
13574 * target.c (debug_to_prepare_to_store): Add argument.
13575 (update_current_target): Update.
13576 * remote.c (remote_prepare_to_store): Add 'self' argument.
13577 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
13578 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
13579 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
13580 * record-full.c (record_full_core_prepare_to_store): Add 'self'
13581 argument.
13582 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
13583 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
13584 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
13585 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
13586 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
13587
07bbe694
MM
135882014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13589
13590 * btrace.h (replay) <replay>: New.
13591 (btrace_is_replaying): New.
13592 * btrace.c (btrace_clear): Free replay iterator.
13593 (btrace_is_replaying): New.
13594 * record-btrace.c (record_btrace_is_replaying): New.
13595 (record_btrace_info): Print insn number if replaying.
13596 (record_btrace_insn_history): Start at replay position.
13597 (record_btrace_call_history): Start at replay position.
13598 (init_record_btrace_ops): Init to_record_is_replaying.
13599
0688d04e
MM
136002014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13601
13602 * record-btrace.c (record_btrace_insn_history_range): Include
13603 end.
13604 (record_btrace_insn_history_from): Adjust range.
13605 (record_btrace_call_history_range): Include
13606 end.
13607 (record_btrace_call_history_from): Adjust range.
13608 * NEWS: Announce changes.
13609
8710b709
MM
136102014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13611
13612 * record.h (enum record_print_flag)
13613 <record_print_indent_calls>: New.
13614 * record.c (get_call_history_modifiers): Recognize /c modifier.
13615 (_initialize_record): Document /c modifier.
13616 * record-btrace.c (btrace_call_history): Add btinfo parameter.
13617 Reorder fields. Optionally indent the function name. Update
13618 all users.
13619 * NEWS: Announce changes.
13620
d0fa7535
MM
136212014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13622
13623 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
13624
5de9129b
MM
136252014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13626
13627 * btrace.c (ftrace_new_function): Start counting at one.
13628 * record-btrace.c (record_btrace_info): Adjust number of calls
13629 and insns.
13630 * NEWS: Announce it.
13631
7acbe133
MM
136322014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13633
13634 * record-btrace.c (btrace_call_history_insn_range): Print
13635 insn range as [begin, end].
13636
23a7fe75
MM
136372014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13638
13639 * btrace.h (struct btrace_func_link): New.
13640 (enum btrace_function_flag): New.
13641 (struct btrace_inst): Rename to ...
13642 (struct btrace_insn): ...this. Update all users.
13643 (struct btrace_func) <ibegin, iend>: Remove.
13644 (struct btrace_func_link): New.
13645 (struct btrace_func): Rename to ...
13646 (struct btrace_function): ...this. Update all users.
13647 (struct btrace_function) <segment, flow, up, insn, insn_offset)
13648 (number, level, flags>: New.
13649 (struct btrace_insn_iterator): Rename to ...
13650 (struct btrace_insn_history): ...this.
13651 Update all users.
13652 (struct btrace_insn_iterator, btrace_call_iterator): New.
13653 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
13654 (struct btrace_target_info) <begin, end, level>
13655 <insn_history, call_history>: New.
13656 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13657 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13658 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13659 (btrace_call_number, btrace_call_begin, btrace_call_end)
13660 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13661 (btrace_find_function_by_number, btrace_set_insn_history)
13662 (btrace_set_call_history): New.
13663 * btrace.c (btrace_init_insn_iterator)
13664 (btrace_init_func_iterator, compute_itrace): Remove.
13665 (ftrace_print_function_name, ftrace_print_filename)
13666 (ftrace_skip_file): Change
13667 parameter to const.
13668 (ftrace_init_func): Remove.
13669 (ftrace_debug): Use new btrace_function fields.
13670 (ftrace_function_switched): Also consider gaining and
13671 losing symbol information).
13672 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
13673 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
13674 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
13675 New.
13676 (ftrace_new_function): Move. Remove debug print.
13677 (ftrace_update_lines, ftrace_update_insns): New.
13678 (ftrace_update_function): Check for call, ret, and jump.
13679 (compute_ftrace): Renamed to ...
13680 (btrace_compute_ftrace): ...this. Rewritten to compute call
13681 stack.
13682 (btrace_fetch, btrace_clear): Updated.
13683 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13684 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13685 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13686 (btrace_call_number, btrace_call_begin, btrace_call_end)
13687 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13688 (btrace_find_function_by_number, btrace_set_insn_history)
13689 (btrace_set_call_history): New.
13690 * record-btrace.c (require_btrace): Use new btrace thread
13691 info fields.
13692 (record_btrace_info, btrace_insn_history)
13693 (record_btrace_insn_history, record_btrace_insn_history_range):
13694 Use new btrace thread info fields and new iterator.
13695 (btrace_func_history_src_line): Rename to ...
13696 (btrace_call_history_src_line): ...this. Use new btrace
13697 thread info fields.
13698 (btrace_func_history): Rename to ...
13699 (btrace_call_history): ...this. Use new btrace thread info
13700 fields and new iterator.
13701 (record_btrace_call_history, record_btrace_call_history_range):
13702 Use new btrace thread info fields and new iterator.
13703
8372a7cb
MM
137042014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13705
13706 * frame.h (frame_id_build_unavailable_stack_special): New.
13707 * frame.c (frame_id_build_unavailable_stack_special): New.
13708
c2170eef
MM
137092014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13710
13711 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
13712 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
13713 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
13714 to gdbarch.
13715 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
13716 (i386_insn_is_jump, i386_jmp_p): New.
13717 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
13718 insn_is_jump to gdbarch.
13719 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
13720 * gdbarch.h: Regenerated.
13721 * gdbarch.c: Regenerated.
13722 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
13723 (default_insn_is_jump): New.
13724 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
13725 (default_insn_is_jump): New.
13726
864089d2
MM
137272014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13728
13729 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
13730 Change to ...
13731 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
13732 (btrace_read_type) <btrace_read_new>: Change to ...
13733 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
13734
ed9edfb5
MM
137352014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13736
13737 * common/linux-btrace.c (linux_read_btrace): Free trace from
13738 previous iteration.
13739
fbcbc3fd
DE
137402014-01-15 Doug Evans <dje@google.com>
13741
13742 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
13743 uint32_t.
13744
3d548a53
TT
137452014-01-15 Tom Tromey <tromey@redhat.com>
13746
13747 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
13748 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
13749 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
13750 (set_objfile_main_name): New function.
13751 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
13752 language_of_main>: New fields.
13753 (set_objfile_main_name): Declare.
13754 * symtab.c (find_main_name): Loop over objfiles to find the main
13755 name and language.
13756 (set_main_name): Now static.
13757 (get_main_info): Add comment.
13758 * symtab.h (set_main_name): Don't declare.
13759
32ac0d11
TT
137602014-01-15 Tom Tromey <tromey@redhat.com>
13761
13762 * symtab.c (main_progspace_key): New global.
13763 (struct main_info): New.
13764 (name_of_main, language_of_main): Remove.
13765 (get_main_info, main_info_cleanup): New function.
13766 (set_main_name, main_name, main_language): Use get_main_info.
13767 (_initialize_symtab): Initialize main_progspace_key.
13768
9e6c82ad
TT
137692014-01-15 Tom Tromey <tromey@redhat.com>
13770
13771 * dbxread.c (process_one_symbol): Update.
13772 * dwarf2read.c (read_partial_die): Update.
13773 * symfile.c (set_initial_language): Call main_language.
13774 * symtab.c (language_of_main): Now static.
13775 (set_main_name): Add 'lang' parameter.
13776 (find_main_name): Update.
13777 (main_language): New function.
13778 (symtab_observer_executable_changed): Update.
13779 * symtab.h (set_main_name): Update.
13780 (language_of_main): Remove.
13781 (main_language): Declare.
13782
6ef55de7
TT
137832014-01-15 Tom Tromey <tromey@redhat.com>
13784
13785 * symfile.c (init_entry_point_info): Use new "initialized" field.
13786 Update.
13787 * objfiles.h (struct entry_point) <initialized>: New field.
13788 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
13789 (struct objfile) <ei>: ...here. Remove.
13790 * objfiles.c (entry_point_address_query): Update.
13791
53eddfa6
TT
137922014-01-15 Tom Tromey <tromey@redhat.com>
13793
13794 * objfiles.c (entry_point_address_query): Relocate entry point
13795 address.
13796 (objfile_relocate1): Do not relocate entry point address.
13797 * objfiles.h (struct entry_info) <entry_point>: Update comment.
13798 <the_bfd_section_index>: New field.
13799 * symfile.c (init_entry_point_info): Find the entry point's
13800 section.
13801
d56e56aa
TT
138022014-01-15 Tom Tromey <tromey@redhat.com>
13803
13804 * solib-frv.c (enable_break): Use entry_point_address_query.
13805
33a97bbe
OJ
138062014-01-15 Omair Javaid <omair.javaid@linaro.org>
13807
13808 * NEWS: Add note on improved process record-replay on
13809 arm*-linux* targets.
13810
c6ec2b30
OJ
138112014-01-15 Omair Javaid <omair.javaid@linaro.org>
13812
13813 * arm-tdep.c (enum arm_record_result): New enum.
13814 (arm_record_unsupported_insn): New function.
13815 (arm_record_coproc_data_proc): Removed.
13816 (thumb2_record_ld_st_multiple): New function.
13817 (thumb2_record_ld_st_dual_ex_tbb): New function.
13818 (thumb2_record_data_proc_sreg_mimm): New function.
13819 (thumb2_record_ps_dest_generic): New function.
13820 (thumb2_record_branch_misc_cntrl): New function.
13821 (thumb2_record_str_single_data): New function.
13822 (thumb2_record_ld_mem_hints): New function.
13823 (thumb2_record_ld_word): New function.
13824 (thumb2_record_lmul_lmla_div): New function.
13825 (thumb2_record_decode_insn_handler): New function.
13826 (decode_insn): Add thumb32 instruction handlers.
13827
97dfe206
OJ
138282014-01-15 Omair Javaid <omair.javaid@linaro.org>
13829
13830 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
13831 (struct arm_linux_record_tdep): Declare.
13832 (arm_canonicalize_syscall): New function.
13833 (arm_all_but_pc_registers_record): New function.
13834 (arm_linux_syscall_record): New function.
13835 (arm_linux_init_abi): Add syscall recording constructs.
13836 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
13837 decoding. (arm_record_coproc_data_proc): Update arm syscall
13838 decoding.
13839 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
13840 <arm_syscall_record>: New field.
13841 * configure.tgt (arm*-*-linux*): Add linux-record.o to
13842 gdb_target_obs.
13843
9904a494
OJ
138442014-01-15 Omair Javaid <omair.javaid@linaro.org>
13845
13846 * arm-tdep.c (thumb_record_misc): Update to use sp as base
13847 register for push instruction recording.
13848
f969241e
OJ
138492014-01-15 Omair Javaid <omair.javaid@linaro.org>
13850
13851 * arm-tdep.c (thumb_record_misc): Update to correct logical
13852 error while recording ldm, ldmia and pop instructions.
13853
bfbbec00
OJ
138542014-01-15 Omair Javaid <omair.javaid@linaro.org>
13855
13856 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
13857
e40adcc9
PA
138582014-01-15 Pedro Alves <palves@redhat.com>
13859
13860 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
13861 (go32_resume, go32_fetch_registers, store_register)
13862 (go32_store_registers, go32_prepare_to_store)
13863 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
13864 (go32_create_inferior, go32_can_run, go32_terminal_init)
13865 (go32_terminal_inferior, go32_terminal_ours): Delete forward
13866 declarations.
13867
b0a16e66
TT
138682014-01-15 Tom Tromey <tromey@redhat.com>
13869
13870 * target.h (async_callback_ftype): New typedef.
13871 (struct target_ops) <to_async>: Use it.
13872
bf7105a4
JB
138732014-01-15 Joel Brobecker <brobecker@adacore.com>
13874
13875 * python/py-value.c (get_field_type): Remove unnecessary curly
13876 braces for single-statement if block.
13877
a8f35c2e
JB
138782014-01-15 Joel Brobecker <brobecker@adacore.com>
13879
13880 * python/py-type.c (convert_field): Add missing empty line
13881 after declarations.
13882
bb4142cf
DE
138832014-01-14 Doug Evans <dje@google.com>
13884
13885 * symfile.h (expand_symtabs_matching): Renamed from
13886 expand_partial_symbol_names. Update prototype.
13887 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
13888 * symfile.c (expand_symtabs_matching): Renamed from
13889 expand_partial_symbol_names. New args file_matcher, kind.
13890 Rename arg fun to symbol_matcher.
13891 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
13892 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
13893 ada_expand_partial_symbol_name.
13894 (ada_make_symbol_completion_list): Update to call
13895 expand_symtabs_matching.
13896 (ada_add_global_exceptions): Call expand_symtabs_matching.
13897 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
13898 call map_symbol_filenames.
13899 * symtab.c (sources_info): Update to call map_symbol_filenames.
13900 (search_symbols): Call expand_symtabs_matching.
13901 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
13902 (default_make_symbol_completion_list_break_on): Update to call
13903 expand_symtabs_matching.
13904 (make_source_files_completion_list): Update to call
13905 map_symbol_filenames.
13906
206f2a57
DE
139072014-01-14 Doug Evans <dje@google.com>
13908
13909 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
13910 (expand_symtabs_symbol_matcher_ftype): New typedef.
13911 (quick_symbol_functions.expand_symtabs_matching): Update to use.
13912 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13913 * symfile.c (expand_partial_symbol_names): Update to use
13914 expand_symtabs_symbol_matcher_ftype.
13915 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
13916 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13917 Arg name_matcher renamed to symbol_matcher.
13918 * psymtab.c (recursively_search_psymtabs): Update to use
13919 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
13920 sym_matcher.
13921 (expand_symtabs_matching_via_partial): Update to use
13922 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13923 Arg name_matcher renamed to symbol_matcher.
13924
540c2971
DE
139252014-01-14 Doug Evans <dje@google.com>
13926
13927 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
13928 (map_partial_symbol_filenames): Ditto.
13929 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
13930 (map_partial_symbol_filenames): Ditto.
13931 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
13932 (map_partial_symbol_filenames): Ditto.
13933 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
13934 (map_partial_symbol_filenames): Ditto.
13935 * symtab.c: Delete #include "psymtab.h".
13936
8213266a
PA
139372014-01-14 Pedro Alves <palves@redhat.com>
13938 Tom Tromey <tromey@redhat.com>
13939
13940 * infrun.c (use_displaced_stepping): Use find_record_target
13941 instead of RECORD_IS_USED.
13942 (adjust_pc_after_break): Use record_full_is_used instead of
13943 RECORD_IS_USED.
13944 * record-btrace.c (record_btrace_open): Call record_preopen
13945 instead of checking RECORD_IS_USED.
13946 * record-full.c (record_full_shortname)
13947 (record_full_core_shortname): New globals.
13948 (record_full_is_used): New function.
13949 (find_full_open): Call record_preopen instead of checking
13950 RECORD_IS_USED.
13951 (init_record_full_ops): Set the target's shortname to
13952 record_full_shortname.
13953 (init_record_full_core_ops): Set the target's shortname to
13954 record_full_core_shortname.
13955 * record-full.h (record_full_is_used): Declare.
13956 * record.c (find_record_target): Make extern.
13957 (record_preopen): New function.
13958 * record.h (RECORD_IS_USED): Delete macro.
13959 (find_record_target, record_preopen): Declare functions.
13960
7ec1862d
YQ
139612014-01-14 Yao Qi <yao@codesourcery.com>
13962
13963 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
13964 'len''s type to ULONGEST.
13965 (core_xfer_shared_libraries_aix): Likewise.
13966 * gdbarch.c, gdbarch.h: Regenerated.
13967 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
13968 Change type of 'len' to ULONGEST.
13969 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13970 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
13971
dea80a27
YQ
139722014-01-14 Yao Qi <yao@codesourcery.com>
13973
13974 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
13975 type of 'len' to ULONGEST.
13976 (linux_xfer_osdata_processgroups): Likewise.
13977 (linux_xfer_osdata_threads): Likewise.
13978 (linux_xfer_osdata_fds): Likewise.
13979 (linux_xfer_osdata_isockets): Likewise.
13980 (linux_xfer_osdata_shm): Likewise.
13981 (linux_xfer_osdata_sem): Likewise.
13982 (linux_xfer_osdata_msg): Likewise.
13983 (linux_common_xfer_osdata): Likewise.
13984 (struct osdata_type) <getter>: Likewise.
13985 * common/linux-osdata.h (linux_common_xfer_osdata): Update
13986 the declaration.
13987
b55e14c7
YQ
139882014-01-14 Yao Qi <yao@codesourcery.com>
13989
13990 * target.h (target_xfer_partial_ftype): Update.
13991 (struct target_ops) <to_xfer_partial>: Change 'len' type to
13992 ULONGEST.
13993 * aix-thread.c (aix_thread_xfer_partial): Change type of
13994 argument 'len' to ULONGEST.
13995 * auxv.c (procfs_xfer_auxv): Likewise.
13996 (ld_so_xfer_auxv): Likewise.
13997 (memory_xfer_auxv): Likewise.
13998 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13999 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
14000 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
14001 * corelow.c (core_xfer_partial): Likewise.
14002 * ctf.c (ctf_xfer_partial): Likewise.
14003 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
14004 '%u'.
14005 (darwin_read_dyld_info): Likewise.
14006 (darwin_xfer_partial): Likewise.
14007 * exec.c (section_table_xfer_memory_partial): Likewise.
14008 (exec_xfer_partial): Likewise.
14009 * exec.h (section_table_xfer_memory_partial): Update
14010 declaration.
14011 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
14012 instead of plongest.
14013 (gnu_xfer_partial): Likewise.
14014 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
14015 (ia64_hpux_xfer_solib_got): Likewise.
14016 (ia64_hpux_xfer_partial): Likewise.
14017 * ia64-linux-nat.c (ia64_linux_xfer_partial):
14018 * inf-ptrace.c (inf_ptrace_xfer_partial):
14019 * inf-ttrace.c (inf_ttrace_xfer_partial):
14020 * linux-nat.c (linux_xfer_siginfo): Likewise.
14021 (linux_nat_xfer_partial): Likewise.
14022 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
14023 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
14024 * monitor.c (monitor_xfer_memory): Likewise.
14025 (monitor_xfer_partial): Likewise.
14026 * procfs.c (procfs_xfer_partial): Likewise.
14027 * record-full.c (record_full_xfer_partial): Likewise.
14028 (record_full_core_xfer_partial): Likewise.
14029 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
14030 instead of plongest.
14031 (gdbsim_xfer_partial): Likewise.
14032 * remote.c (remote_xfer_partial): Likewise.
14033 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14034 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
14035 declaration.
14036 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14037 (rs6000_xfer_shared_libraries): Likewise.
14038 * sol-thread.c (sol_thread_xfer_partial): Likewise.
14039 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14040 (sparc_xfer_partial): Likewise.
14041 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
14042 (spu_xfer_partial): Likewise.
14043 * spu-multiarch.c (spu_xfer_partial): Likewise.
14044 * target.c (target_read_live_memory): Likewise.
14045 (memory_xfer_live_readonly_partial): Likewise.
14046 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
14047 (target_xfer_partial, default_xfer_partial): Likewise.
14048 (current_xfer_partial): Likewise.
14049 * tracepoint.c (tfile_xfer_partial): Likewise.
14050 * windows-nat.c (windows_xfer_memory): Likewise. Call
14051 pulongest instead of plongest.
14052 (windows_xfer_partial): Likewise.
14053 (windows_xfer_shared_libraries): Likewise.
14054
05804640
YQ
140552014-01-14 Yao Qi <yao@codesourcery.com>
14056
14057 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
14058 target_xfer_partial_ftype.
14059
b5b08fb4
SC
140602014-01-13 Siva Chandra Reddy <sivachandra@google.com>
14061
14062 PR python/15464
14063 PR python/16113
14064 * valops.c (value_struct_elt_bitpos): New function
14065 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
14066 object to 'None' if the field name is an empty string ("").
14067 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
14068 attribute to look for a field when 'name' is 'None'.
14069 (get_field_type): New function
14070
13aaf454
DE
140712014-01-13 Doug Evans <dje@google.com>
14072
14073 PR symtab/16426
14074 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
14075 (try_open_dwop_file): Ditto.
14076 * gdb_bfd.c: #include "vec.h".
14077 (bfdp): New typedef.
14078 (struct gdb_bfd_data): New member included_bfds.
14079 (gdb_bfd_unref): Unref all included bfds.
14080 (gdb_bfd_record_inclusion): New function.
14081 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
14082
c2cec97c
TT
140832014-01-13 Tom Tromey <tromey@redhat.com>
14084
14085 * gdbcore.h (deprecated_core_resize_section_table): Remove.
14086
78e5999d
TT
140872014-01-13 Tom Tromey <tromey@redhat.com>
14088
14089 * defs.h (use_windows): Remove.
14090 * gdb.c (main): Update.
14091 * main.c (captured_main, gdb_main): Update.
14092 * main.h (struct captured_main_args) <use_windows>: Remove.
14093 * top.c (use_windows): Remove.
14094
f2052bbe
TT
140952014-01-13 Tom Tromey <tromey@redhat.com>
14096
14097 * defs.h (deprecated_flush_hook): Remove.
14098
fde4f8ed
JK
140992014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
14100
14101 PR threads/16216
14102 * linux-thread-db.c (try_thread_db_load): Add parameter
14103 check_auto_load_safe. Move here the file_is_auto_load_safe call.
14104 (try_thread_db_load_from_pdir_1): Move it there from here.
14105 (try_thread_db_load_from_sdir): Update caller.
14106 (try_thread_db_load_from_dir): Move it there from here.
14107
bdf61915
PP
141082014-01-13 Patrick Palka <patrick@parcs.ath.cx>
14109
14110 * regformats/regdat.sh: Always rewrite the register file.
14111
f71e1a8d
PA
141122014-01-13 Pedro Alves <palves@redhat.com>
14113
14114 * Makefile.in (CHECK_HEADERS): New variable.
14115 (check-headers:): New rule.
14116
42c85435
TT
141172014-01-13 Tom Tromey <tromey@redhat.com>
14118
14119 * cli/cli-setshow.c (do_set_command): Update.
14120 * defs.h (deprecated_set_hook): Remove.
14121 * top.c (deprecated_set_hook): Remove.
14122
f8de5129
PA
141232014-01-13 Pedro Alves <palves@redhat.com>
14124
14125 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
14126 the tracepoint if the PC is a pseudo-register.
14127
fc270c35
TT
141282014-01-13 Tom Tromey <tromey@redhat.com>
14129
14130 * defs.h (XCALLOC): Remove.
14131 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
14132 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
14133 * dwarf2loc.c (allocate_piece_closure): Likewise.
14134 * elfread.c (elf_symfile_segments): Likewise.
14135 (elf_symfile_segments): Likewise.
14136 * gdbtypes.c (copy_type_recursive): Likewise.
14137 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
14138 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
14139 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
14140 XCALLOC.
14141 * mt-tdep.c (mt_gdbarch_init): Likewise.
14142 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
14143 XCALLOC.
14144 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
14145 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
14146 * registry.c (registry_alloc_data): Likewise.
14147 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
14148 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
14149 * serial.c (serial_fdopen_ops): Likewise.
14150 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
14151 XCALLOC.
14152 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
14153 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
14154 not XCALLOC.
14155
70ba0933
TT
141562014-01-13 Tom Tromey <tromey@redhat.com>
14157
14158 * defs.h (XMALLOC): Remove.
14159 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
14160 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
14161 * cli-out.c (struct ui_out *): Likewise.
14162 * cli/cli-dump.c (add_dump_command): Likewise.
14163 (add_dump_command): Likewise.
14164 * complaints.c (get_complaints): Likewise.
14165 (find_complaint): Likewise.
14166 * dwarf2-frame.c (execute_cfa_program): Likewise.
14167 * dwarf2read.c (abbrev_table_read_table): Likewise.
14168 * gdbarch.sh: Likewise.
14169 * gdbarch.c: Rebuild.
14170 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
14171 * interps.c (interp_new): Likewise.
14172 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
14173 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
14174 * mi/mi-console.c (mi_console_file_new): Likewise.
14175 * mi/mi-interp.c (mi_interpreter_init): Likewise.
14176 * mi/mi-out.c (mi_out_new): Likewise.
14177 * mi/mi-parse.c (mi_parse): Likewise.
14178 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
14179 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
14180 * observer.c (xalloc_observer_list_node): Likewise.
14181 * regcache.c (regcache_xmalloc_1): Likewise.
14182 * reggroups.c (reggroup_new): Likewise.
14183 (_initialize_reggroup): Likewise.
14184 * registry.c (register_data_with_cleanup): Likewise.
14185 * remote.c (remote_notif_stop_alloc_reply): Likewise.
14186 * ser-base.c (serial_ttystate): Likewise.
14187 * ser-mingw.c (make_pipe_state): Likewise.
14188 * ser-pipe.c (pipe_open): Likewise.
14189 * serial.c (serial_open): Likewise.
14190 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
14191 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
14192 (tui_alloc_win_info): Likewise.
14193 (tui_add_content_elements): Likewise.
14194 * tui/tui-file.c (tui_file_new): Likewise.
14195 * tui/tui-out.c (tui_out_new): Likewise.
14196 * ui-file.c (mem_file_new): Likewise.
14197 * ui-out.c (push_level): Likewise.
14198 (make_cleanup_ui_out_end): Likewise.
14199 (append_header_to_list): Likewise.
14200 (ui_out_new): Likewise.
14201 * user-regs.c (user_reg_add_builtin): Likewise.
14202
41bf6aca
TT
142032014-01-13 Tom Tromey <tromey@redhat.com>
14204
14205 * defs.h (XZALLOC): Remove.
14206 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
14207 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
14208 (get_ada_tasks_inferior_data): Likewise.
14209 * auto-load.c (get_auto_load_pspace_data): Likewise.
14210 * auxv.c (get_auxv_inferior_data): Likewise.
14211 * bfd-target.c (target_bfd_reopen): Likewise.
14212 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
14213 (deprecated_insert_raw_breakpoint): Likewise.
14214 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
14215 * corelow.c (core_open): Likewise.
14216 * darwin-nat.c (darwin_check_new_threads): Likewise.
14217 (darwin_attach_pid): Likewise.
14218 * dummy-frame.c (dummy_frame_push): Likewise.
14219 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
14220 * dwarf2loc.c (allocate_piece_closure): Likewise.
14221 * elfread.c (elf_symfile_segments): Likewise.
14222 * eval.c (ptrmath_type_p): Likewise.
14223 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
14224 * gdbtypes.c (alloc_type_arch): Likewise.
14225 (alloc_type_instance): Likewise.
14226 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
14227 * inf-child.c (inf_child_can_use_agent): Likewise.
14228 * inflow.c (get_inflow_inferior_data): Likewise.
14229 * infrun.c (save_infcall_suspend_state): Likewise.
14230 * jit.c (jit_reader_load): Likewise.
14231 (get_jit_objfile_data): Likewise.
14232 (get_jit_program_space_data): Likewise.
14233 (jit_object_open_impl): Likewise.
14234 (jit_symtab_open_impl): Likewise.
14235 (jit_block_open_impl): Likewise.
14236 (jit_frame_sniffer): Likewise.
14237 * linux-fork.c (add_fork): Likewise.
14238 * maint.c (make_command_stats_cleanup): Likewise.
14239 * objfiles.c (get_objfile_pspace_data): Likewise.
14240 * opencl-lang.c (struct lval_closure): Likewise.
14241 * osdata.c (osdata_start_osdata): Likewise.
14242 * progspace.c (new_address_space): Likewise.
14243 (add_program_space): Likewise.
14244 * remote-sim.c (get_sim_inferior_data): Likewise.
14245 * sh-tdep.c (sh_gdbarch_init): Likewise.
14246 * skip.c (Ignore): Likewise.
14247 (skip_delete_command): Likewise.
14248 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
14249 (library_list_start_library): Likewise.
14250 (solib_aix_current_sos): Likewise.
14251 * solib-darwin.c (get_darwin_info): Likewise.
14252 (darwin_current_sos): Likewise.
14253 * solib-dsbt.c (get_dsbt_info): Likewise.
14254 * solib-ia64-hpux.c (new_so_list): Likewise.
14255 (ia64_hpux_get_solib_linkage_addr): Likewise.
14256 * solib-spu.c (append_ocl_sos): Likewise.
14257 (spu_current_sos): Likewise.
14258 * solib-svr4.c (get_svr4_info): Likewise.
14259 (svr4_keep_data_in_core): Likewise.
14260 (library_list_start_library): Likewise.
14261 (svr4_default_sos): Likewise.
14262 (svr4_read_so_list): Likewise.
14263 * solib-target.c (library_list_start_library): Likewise.
14264 (solib_target_current_sos): Likewise.
14265 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
14266 * symfile-debug.c (install_symfile_debug_logging): Likewise.
14267 * symfile.c (default_symfile_segments): Likewise.
14268 * target-descriptions.c (tdesc_data_init): Likewise.
14269 (tdesc_create_reg): Likewise.
14270 (struct tdesc_type *): Likewise.
14271 (tdesc_create_vector): Likewise.
14272 (tdesc_set_struct_size): Likewise.
14273 (struct tdesc_type *): Likewise.
14274 (tdesc_free_feature): Likewise.
14275 (tdesc_create_feature): Likewise.
14276 * windows-nat.c (windows_add_thread): Likewise.
14277 (windows_make_so): Likewise.
14278 * xml-support.c (gdb_xml_body_text): Likewise.
14279 (gdb_xml_create_parser_and_cleanup): Likewise.
14280 (xml_process_xincludes): Likewise.
14281 * xml-syscall.c (allocate_syscalls_info): Likewise.
14282 (syscall_create_syscall_desc): Likewise.
14283
5acfdbae
SDJ
142842014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
14285
14286 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
14287 function, with code from i386_stap_parse_special_token.
14288 (i386_stap_parse_special_token_three_arg_disp): Likewise.
14289 (i386_stap_parse_special_token): Move code to the two functions
14290 above; simplify it.
14291
0000e5cc
PA
142922014-01-09 Pedro Alves <palves@redhat.com>
14293 Hui Zhu <hui@codesourcery.com>
14294
14295 PR gdb/16101
14296 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
14297 bp_err_string. Don't mark the location shlib_disabled if the
14298 error thrown wasn't a generic or memory error. Catch errors
14299 thrown while inserting breakpoints in overlayed code. Output
14300 error message of software breakpoints.
14301 * remote.c (remote_insert_breakpoint): If this breakpoint has
14302 target-side commands but this stub doesn't support Z0 packets,
14303 throw NOT_SUPPORTED_ERROR error.
14304 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
14305 * target.h (target_insert_breakpoint): Extend comment.
14306 (target_insert_hw_breakpoint): Add comment.
14307
b7ea362b
PA
143082014-01-08 Pedro Alves <palves@redhat.com>
14309
14310 * remote.c (remote_add_thread): Add threads silently if starting
14311 up.
14312 (remote_notice_new_inferior): If in all-stop, and starting up,
14313 don't call notice_new_inferior.
14314 (get_current_thread): New function, factored out from ...
14315 (add_current_inferior_and_thread): ... this. Adjust.
14316 (remote_start_remote) <all-stop>: Fetch the thread list. If we
14317 found any thread, then select the remote's current thread as GDB's
14318 current thread too.
14319
b7bba001
JB
143202014-01-08 Joel Brobecker <brobecker@adacore.com>
14321
14322 * NEWS: Create a new section for the next release branch.
14323 Rename the section of the current branch, now that it has
14324 been cut.
14325
16dfbded
JB
143262014-01-08 Joel Brobecker <brobecker@adacore.com>
14327
14328 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
14329 * version.in: Bump version to 7.7.50.DATE-cvs.
14330
22c90ac1
YQ
143312014-01-08 Yao Qi <yao@codesourcery.com>
14332
14333 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
14334 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
14335 (spu_xfer_partial): Cast 'buf' to 'const char *'.
14336
d64ad97c
YQ
143372014-01-08 Yao Qi <yao@codesourcery.com>
14338
14339 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
14340 return value of bfd_get_filename to symbol_file_add_from_bfd.
14341
f93ba80c
PM
143422014-01-08 Pierre Muller <muller@sourceware.org>
14343
14344 Fix PR16201.
14345 * coff-pe-read.c (struct read_pe_section_data): Add index field.
14346 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
14347 to prim_record_mininal_symbol_and_info.
14348 (add_pe_forwarded_sym): Use known section number of forwarded symbol
14349 in call to prim_record_minimal_symbol_and_info.
14350 (read_pe_exported_syms): Set index field of section_data.
14351
a4d9ba85
AP
143522014-01-07 Andrew Pinski <apinski@cavium.com>
14353
14354 * features/aarch64-core.xml (cpsr): Change to be 64bit.
14355 * features/aarch64.c: Regenerate.
14356
1b67eb02
AS
143572014-01-07 Andreas Schwab <schwab@linux-m68k.org>
14358
14359 * target.c (return_null): Define.
14360 (update_current_target): Use it instead of return_zero for
14361 functions that return a pointer.
14362
5e3f4fab
EBM
143632014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
14364
14365 * source.c (add_path): Fix check for duplicated paths in the previously
14366 included paths.
14367
e2616788
HK
143682014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
14369
14370 * ada-lang.c: Remove duplicated include statements.
14371 * alphabsd-nat.c: Ditto.
14372 * amd64-darwin-tdep.c: Ditto.
14373 * amd64fbsd-nat.c: Ditto.
14374 * auto-load.c: Ditto.
14375 * ax-gdb.c: Ditto.
14376 * breakpoint.c: Ditto.
14377 * dbxread.c: Ditto.
14378 * fork-child.c: Ditto.
14379 * gdb_usleep.c: Ditto.
14380 * i386-darwin-tdep.c: Ditto.
14381 * i386fbsd-nat.c: Ditto.
14382 * infcmd.c: Ditto.
14383 * inferior.c: Ditto.
14384 * jv-lang.c: Ditto.
14385 * linux-nat.c: Ditto.
14386 * linux-tdep.c: Ditto.
14387 * m68kbsd-nat.c: Ditto.
14388 * m68klinux-nat.c: Ditto.
14389 * microblaze-tdep.c: Ditto.
14390 * mips-linux-tdep.c: Ditto.
14391 * mn10300-tdep.c: Ditto.
14392 * nto-tdep.c: Ditto.
14393 * opencl-lang.c: Ditto.
14394 * osdata.c: Ditto.
14395 * printcmd.c: Ditto.
14396 * regcache.c: Ditto.
14397 * remote-m32r-sdi.c: Ditto.
14398 * remote.c: Ditto.
14399 * symfile.c: Ditto.
14400 * symtab.c: Ditto.
14401 * tilegx-linux-nat.c: Ditto.
14402 * tilegx-tdep.c: Ditto.
14403 * tracepoint.c: Ditto.
14404 * valops.c: Ditto.
14405 * vaxbsd-nat.c: Ditto.
14406 * windows-nat.c: Ditto.
14407 * xtensa-tdep.c: Ditto.
14408
bd1f7788
YQ
144092014-01-07 Yao Qi <yao@codesourcery.com>
14410
14411 * spu-linux-nat.c (_initialize_spu_nat): Declare.
14412
79301218
JB
144132014-01-07 Yao Qi <yao@codesourcery.com>
14414 Joel Brobecker <brobecker@adacore.com>
14415
14416 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
14417 (pdc_write_regs): Likewise.
14418 (fetch_regs_kernel_thread): Likewise.
14419 (store_regs_kernel_thread): Likewise.
14420
144212014-01-07 Joel Brobecker <brobecker@adacore.com>
14422
14423 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
14424 tagged type objects to their actual type.
14425
8e355c5d
JB
144262014-01-07 Joel Brobecker <brobecker@adacore.com>
14427
14428 * ada-valprint.c (print_field_values): Add "language" parameter.
14429 Update calls to print_field_values and print_variant_part.
14430 Pass new parameter "language" in call to val_print instead
14431 of "current_language". Replace call to ada_val_print by call
14432 to val_print.
14433 (print_variant_part): Add "language" parameter.
14434 (ada_val_print_struct_union): Update call to print_field_values.
14435
4fbf5aa5
JB
144362014-01-07 Joel Brobecker <brobecker@adacore.com>
14437
14438 * ada-valprint.c (ui_memcpy): Delete.
14439 (ada_print_floating): Update documentation. Add empty line
14440 between between function documentation and implementation.
14441 Delete variable "buffer". Use ui_file_xstrdup in place of
14442 ui_file_put. Minor adjustments following this change.
14443
71855601
JB
144442014-01-07 Joel Brobecker <brobecker@adacore.com>
14445
14446 * ada-valprint.c (ada_val_print_string): New function,
14447 extracted from ada_val_print_array.
14448 (ada_val_print_array): Replace extracted code by call
14449 to ada_val_print_string followed by a return. Move
14450 "else" branch to the function's top block.
14451
4eb27a30
JB
144522014-01-07 Joel Brobecker <brobecker@adacore.com>
14453
14454 * ada-valprint.c (ada_val_print_array): Move implementation
14455 down. Rename parameter "offset" and "val" into "offset_aligned"
14456 and "original_value" respectively. Add parameter "offset".
14457
34b27950
JB
144582014-01-07 Joel Brobecker <brobecker@adacore.com>
14459
14460 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
14461 re-organizing the code. Change the "???" message printed
14462 when target type is a TYPE_CODE_UNDEF into
14463 "<ref to undefined type>".
14464
079e4591
JB
144652014-01-07 Joel Brobecker <brobecker@adacore.com>
14466
14467 * ada-valprint.c (print_record): Delete, implementation inlined...
14468 (ada_val_print_struct_union): ... here. Remove call to
14469 ada_check_typedef in inlined implementation.
14470
8004dfd1
JB
144712014-01-07 Joel Brobecker <brobecker@adacore.com>
14472
14473 * ada-valprint.c (ada_val_print_gnat_array): New function,
14474 extracted from ada_val_print_1;
14475 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
14476 (ada_val_print_flt, ada_val_print_struct_union)
14477 (ada_val_print_ref): Likewise.
14478 (ada_val_print_1): Delete variables i and elttype.
14479 Replace extracted-out code by call to corresponding
14480 new functions.
14481
760a2db0
JB
144822014-01-07 Joel Brobecker <brobecker@adacore.com>
14483
14484 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
14485
3a92c861
JB
144862014-01-07 Joel Brobecker <brobecker@adacore.com>
14487
14488 * ada-valprint.c (ada_val_print_1): Replace calls to
14489 ada_val_print_1 by calls to val_print.
14490
cd1630f9
JB
144912014-01-07 Joel Brobecker <brobecker@adacore.com>
14492
14493 * ada-valprint.c (ada_val_print_1): Add parameter "language".
14494 Update calls to self accordingly. Replace calls to c_val_print
14495 by calls to val_print.
14496
bdf779a0
JB
144972014-01-07 Joel Brobecker <brobecker@adacore.com>
14498
14499 * ada-valprint.c (print_record): Delete declaration.
14500 (adjust_type_signedness, ada_val_print_1): Likewise.
14501 (ada_val_print): Move function implementation down.
14502 (print_variant_part, print_field_values, print_record):
14503 Move function implementation up.
14504
c0d48811
JB
145052014-01-07 Joel Brobecker <brobecker@adacore.com>
14506
14507 * python/py-type.c (typy_get_name): New function.
14508 (type_object_getset): Add entry for attribute "name".
14509 * NEWS: Add entry mentioning this new attribute.
14510
c26e9cbb
YQ
145112014-01-07 Yao Qi <yao@codesourcery.com>
14512
14513 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
14514 statement.
14515
0cc6f43d
YQ
145162014-01-07 Yao Qi <yao@codesourcery.com>
14517
14518 * gnu-nat.c (info_port_rights): Add qualifier const to
14519 argument args.
14520
eec03155
YQ
145212014-01-07 Yao Qi <yao@codesourcery.com>
14522
14523 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
14524
f04a82ef
YQ
145252014-01-07 Yao Qi <yao@codesourcery.com>
14526
14527 * gnu-nat.c (make_inf) Update declaration.
14528 (make_inf): Make it static.
14529 (inf_set_traced): Likewise.
14530 (inf_port_to_thread, inf_task_died_status): Likewise.
14531
d57dda0a
YQ
145322014-01-07 Yao Qi <yao@codesourcery.com>
14533
14534 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
14535
3aa8c969
YQ
145362014-01-07 Yao Qi <yao@codesourcery.com>
14537
14538 * gnu-nat.c (_initialize_gnu_nat): Declare.
14539
94123b4f
YQ
145402014-01-07 Yao Qi <yao@codesourcery.com>
14541
14542 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
14543 'enum bfd_endian'.
14544 (struct gdbarch_info) <byte_order>: Change type to
14545 'enum bfd_endian'.
14546 <byte_order_for_code>: Likewise.
14547 * gdbarch.c, gdbarch.h: Regenerated.
14548
dc81d70a
TT
145492014-01-06 Sasha Smundak <asmundak@google.com>
14550
14551 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
14552
cc2f3c35
TT
145532014-01-06 Tom Tromey <tromey@redhat.com>
14554
14555 * doublest.c (convert_doublest_to_floatformat): Use const, not
14556 CONST.
14557 * somread.c (som_symtab_read): Likewise.
14558
adcf2eed
HZ
145592014-01-07 Hui Zhu <hui@codesourcery.com>
14560
14561 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
14562 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
14563 (gdb_bfd_fopen): Ditto.
14564 (gdb_bfd_openr): Ditto.
14565 (gdb_bfd_openw): Ditto.
14566 (gdb_bfd_openr_iovec): Ditto.
14567 (gdb_bfd_fdopenr): Ditto.
14568 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
14569 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
14570 with xstrdup.
14571 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
14572 with xstrdup.
14573 * symfile-mem.c (symbol_file_add_from_memory): Removed
14574 gdb_bfd_stash_filename.
14575
50722198
DE
145762014-01-03 Doug Evans <dje@google.com>
14577
14578 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
14579 output.
14580
2fa4b862
JB
145812014-01-01 Joel Brobecker <brobecker@adacore.com>
14582
14583 Update year range in copyright notice of all files.
14584
28498c42
JB
145852014-01-01 Joel Brobecker <brobecker@adacore.com>
14586
14587 * top.c (print_gdb_version): Set copyright year to 2014.
14588
7b6e1046
JB
145892014-01-01 Joel Brobecker <brobecker@adacore.com>
14590
14591 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
14592
df96af55 14593For older changes see ChangeLog-2013.
c906108c
SS
14594\f
14595Local Variables:
14596mode: change-log
14597left-margin: 8
14598fill-column: 74
14599version-control: never
57da7796 14600coding: utf-8
c906108c 14601End:
This page took 2.268285 seconds and 4 git commands to generate.