Fix %lx format used with bfd_size_type mismatch in readelf.c
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
02be9a71
DE
12014-10-30 Doug Evans <dje@google.com>
2
3 * NEWS: Mention ability add attributes to gdb.Objfile and
4 gdb.Progspace objects.
5 * python/py-objfile.c (objfile_object): New member dict.
6 (objfpy_dealloc): Py_XDECREF dict.
7 (objfpy_initialize): Initialize dict.
8 (objfile_getset): Add __dict__.
9 (objfile_object_type): Set tp_dictoffset member.
10 * python/py-progspace.c (progspace_object): New member dict.
11 (pspy_dealloc): Py_XDECREF dict.
12 (pspy_initialize): Initialize dict.
13 (pspace_getset): Add __dict__.
14 (pspace_object_type): Set tp_dictoffset member.
15
6427bef6
YQ
162014-10-30 Yao Qi <yao@codesourcery.com>
17
18 * python/lib/gdb/command/prompt.py (before_prompt_hook): Don't
19 replace '\\' with '\\\\'.
20
f60325be
JB
212014-10-29 Joel Brobecker <brobecker@adacore.com>
22
23 GDB 7.8.1 released.
24
ab917dfb
PA
252014-10-29 Pedro Alves <palves@redhat.com>
26
27 PR gdb/17408
28 * infrun.c (switch_back_to_stepped_thread): Use currently_stepping
29 instead of assuming a thread with a stepping range is always
30 stepping.
31
d3d4baed
PA
322014-10-29 Pedro Alves <palves@redhat.com>
33
34 PR python/17372
35 * event-top.c (change_line_handler): Call
36 gdb_rl_callback_handler_remove instead of
37 rl_callback_handler_remove.
38 (callback_handler_installed): New global.
39 (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
40 (gdb_rl_callback_handler_reinstall): New functions.
41 (display_gdb_prompt): Call gdb_rl_callback_handler_remove and
42 gdb_rl_callback_handler_install instead of
43 rl_callback_handler_remove and rl_callback_handler_install.
44 (gdb_disable_readline): Call gdb_rl_callback_handler_remove
45 instead of rl_callback_handler_remove.
46 * event-top.h (gdb_rl_callback_handler_remove)
47 (gdb_rl_callback_handler_install)
48 (gdb_rl_callback_handler_reinstall): New declarations.
49 * infrun.c (reinstall_readline_callback_handler_cleanup): New
50 cleanup function.
51 (fetch_inferior_event): Install it.
52 * top.c (gdb_readline_wrapper_line) Call
53 gdb_rl_callback_handler_remove instead of
54 rl_callback_handler_remove.
55 (gdb_readline_wrapper_cleanup): Don't call
56 rl_callback_handler_install.
57
6e5d7f39
PA
582014-10-29 Pedro Alves <palves@redhat.com>
59
60 * event-top.c (command_line_handler): Clear the first byte of
61 linebuffer, when it is first allocated.
62
551cb6a5
PA
632014-10-29 Pedro Alves <palves@redhat.com>
64
65 * tui/tui.c (tui_rl_switch_mode): Wrap tui_enable/tui_disable in
66 TRY_CATCH.
67
1e1e619b
PA
682014-10-29 Pedro Alves <palves@redhat.com>
69
70 PR tui/16138
71 PR tui/17519
72 * tui/tui-interp.c (tui_is_toplevel): Delete global.
73 (tui_allowed_p): Delete function.
74 * tui/tui.c: Include "interps.h".
75 (tui_enable): Don't use tui_allowed_p. Error out here with
76 detailed error messages if the TUI is the top level interpreter,
77 or if output is not a terminal. Use newterm instead of initscr,
78 and error out if initializing the terminal fails. Also error out if
79 the terminal doesn't support cursor addressing.
80 * tui/tui.h (tui_allowed_p): Delete declaration.
81
6041179a
JB
822014-10-29 Joel Brobecker <brobecker@adacore.com>
83
84 * arm-tdep.c (arm_skip_stack_protector): Return early if
85 address loaded by first "ldr" instruction does not have
86 a corresponding minimal symbol. Update comment.
87
6ae274b7
YQ
882014-10-29 Yao Qi <yao@codesourcery.com>
89
90 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
91 loaded address correctly of ldr instruction.
92
7f5ef605
PA
932014-10-28 Pedro Alves <palves@redhat.com>
94
95 PR gdb/12623
96 * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
97 field.
98 * infrun.c (resume) <stepping breakpoint instruction>: Set the
99 thread's stepped_breakpoint field. Skip if reverse debugging.
100 Add comment.
101 (init_thread_stepping_state, handle_signal_stop): Clear the
102 thread's stepped_breakpoint field.
103
7d1a114c
PA
1042014-10-27 Pedro Alves <palves@redhat.com>
105
106 * remote.c (remote_thread_alive): New, factored out from ...
107 (remote_thread_alive): ... this.
108 (remote_update_thread_list): Bail out before deleting threads if
109 the target returned an empty list, and, the current thread has a
110 magic/fake ptid.
111
e5f8a7cc
PA
1122014-10-27 Pedro Alves <palves@redhat.com>
113
114 * infrun.c (handle_signal_stop): Also skip handlers when a random
115 signal arrives while handling a "stepi" or a "nexti". Set the
116 thread's 'step_after_step_resume_breakpoint' flag.
117
71e396f9
LM
1182014-10-27 Luis Machado <lgustavo@codesourcery.com>
119
120 * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
121 (arm_record_ld_st_imm_offset): Reimplement to cover all
122 load/store cases for ARM opcode 010.
123 (arm_record_ld_st_multiple): Reimplement to cover all
124 load/store cases for ARM opcode 100.
125
3aee438b
DE
1262014-10-26 Doug Evans <xdje42@gmail.com>
127
128 * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
129
f88cb4b6
DE
1302014-10-26 Doug Evans <xdje42@gmail.com>
131
132 * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
133 parameter "kind" to "block_index".
134 * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
135 "block_index".
136 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
137
a023a30f
DE
1382014-10-26 Doug Evans <xdje42@gmail.com>
139
140 * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
141
4c35218e
DE
1422014-10-26 Doug Evans <xdje42@gmail.com>
143
144 * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
145 obstack_alloc.
146
f08e8df3
DE
1472014-10-26 Doug Evans <xdje42@gmail.com>
148
149 * parser-defs.h (block_found): Move decl from here ...
150 * symtab.h (block_found): ... to here.
151
cf901d3b
DE
1522014-10-26 Doug Evans <xdje42@gmail.com>
153
154 * symtab.h (struct field_of_this_result): Fix typo in comment.
155 (lookup_symbol_in_language): Move function comment here.
156 (lookup_symbol): Improve function comment.
157 (basic_lookup_symbol_nonlocal): Ditto.
158 (lookup_symbol_static, lookup_symbol_global): Ditto.
159 (lookup_symbol_aux_block): Ditto.
160 (lookup_language_this): Add function comment.
161 (lookup_static_symbol_aux): Explicitly mark as extern. Improve
162 function comment.
163 (lookup_block_symbol): Improve function comment.
164 (lookup_struct): Fix capitalization in function comment.
165 (lookup_transparent_type): Add function comment.
166 (lookup_global_symbol_from_objfile): Explicitly mark as extern.
167 Improve function comment.
168 (lookup_objfile_from_block): Add function comment.
169 * symtab.c (lookup_symbol_in_language): Update function comment.
170 (lookup_symbol, lookup_language_this): Ditto.
171 (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
172 (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
173 (basic_lookup_symbol_nonlocal): Ditto.
174 (lookup_symbol_static, lookup_symbol_global): Ditto.
175 (lookup_transparent_type, lookup_block_symbol): Ditto.
176
ff6c39cf
DE
1772014-10-25 Doug Evans <xdje42@gmail.com>
178
179 * symtab.c (types_info): Delete forward decl.
180 (functions_info, variables_info, sources_info): Ditto.
181 (_initialize_symtab): Rewrite forward decl to use
182 initialize_file_ftype.
183
ec201f0c
DE
1842014-10-25 Doug Evans <xdje42@gmail.com>
185
186 * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
187
ca040673
DE
1882014-10-25 Doug Evans <xdje42@gmail.com>
189
190 * dwarf2read.c (process_structure_scope): Remove second (nested) copy
191 of local var child_die.
192
6f259a23
DB
1932014-10-24 Don Breazeal <donb@codesourcery.com>
194
195 * infrun.c (follow_fork_inferior): Update fork message printing
196 to use target_terminal_ours_for_output instead of
197 target_terminal_ours, to use _() for all format strings, to print
198 "vfork" instead of "fork" for vforks, and to add a detach message.
199 (handle_vfork_child_exec_or_exit): Update message printing to use
200 target_terminal_ours_for_output instead of target_terminal_ours, to
201 use _() for all format strings, and to fix some formatting.
202
09dd9a69
PA
2032014-10-24 Pedro Alves <palves@redhat.com>
204
205 * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
206 * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
207 * config/vax/vax.mh: Delete.
208 * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
209 obsolete configurations section.
210 * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
211 * vax-nat.c: Delete file.
212
5ab806de
PA
2132014-10-24 Pedro Alves <palves@redhat.com>
214
215 * NEWS (Removed targets): Add OS/arch column.
216
3433cfa5
SC
2172014-10-24 Siva Chandra Reddy <sivachandra@google.com>
218
219 * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
220 on the arg type of a constructor only if it is of reference type.
221
96ba4233
SL
2222014-10-23 Sandra Loosemore <sandra@codesourcery.com>
223
224 * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
225 accessors and constants from nios2 opcodes update.
226 (nios2_get_next_pc): Likewise.
227
28153fd3
DE
2282014-10-19 Doug Evans <xdje42@gmail.com>
229
230 * gdbthread.h (set_running): Fix comment.
231 (set_executing, finish_thread_state): Fix comment.
232
fc9b8e47
DE
2332014-10-18 Doug Evans <xdje42@gmail.com>
234
235 * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
236
4ffbba72
DE
2372014-10-17 Doug Evans <dje@google.com>
238
239 * NEWS: Mention new event gdb.clear_objfiles.
240 * python/py-event.h (emit_clear_objfiles_event): Clear
241 * python/py-events.h (events_object): New member clear_objfiles.
242 * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
243 event.
244 * python/py-inferior.c (python_new_objfile): If objfile is NULL,
245 emit clear_objfiles event.
246 * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
247 function.
248 (emit_clear_objfiles_event): New function.
249 (clear_objfiles): New event.
250 * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
251 Declare.
252 * python/python.c (_initialize_python): Call
253 gdbpy_initialize_clear_objfiles_event.
254
d096d8c1
DE
2552014-10-17 Doug Evans <dje@google.com>
256
257 * NEWS: Mention new gdb.Objfile.progspace attribute.
258 * python/py-objfile.c (objfpy_get_progspace): New function.
259 (objfile_getset): New entry for "progspace".
260
6c4486e6
PA
2612014-10-17 Pedro Alves <palves@redhat.com>
262
263 PR gdb/17471
264 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
265 returns a copy of the input.
266 (run_command_1, continue_command, step_1, jump_command)
267 (signal_command, until_command, advance_command, finish_command)
268 (attach_command): Adjust and install a cleanup to free the
269 stripped args.
270
0ff33695
PA
2712014-10-17 Pedro Alves <palves@redhat.com>
272
273 PR gdb/17300
274 * infcmd.c (continue_1): If continuing all threads in the
275 foreground, make sure the inferior's terminal settings are put in
276 effect.
277
6fdebc3d
PA
2782014-10-17 Pedro Alves <palves@redhat.com>
279
280 PR gdb/17472
281 * annotate.c (annotate_breakpoints_invalid): Use
282 target_terminal_our_for_output instead of target_terminal_ours.
283 Give back the terminal to the target.
284 (annotate_frames_invalid): Likewise.
285
5842f62a
PA
2862014-10-17 Pedro Alves <palves@redhat.com>
287
288 * target.c (enum terminal_state): New enum.
289 (terminal_state): New global.
290 (target_terminal_init): New function.
291 (target_terminal_inferior): Skip if inferior already owns the
292 terminal.
293 (target_terminal_ours, target_terminal_ours_for_output): New
294 functions.
295 * target.h (target_terminal_init): Convert to function prototype.
296 (target_terminal_ours_for_output): Convert to function prototype
297 and tweak comment.
298 (target_terminal_ours): Convert to function prototype and tweak
299 comment.
300 * windows-nat.c (do_initial_windows_stuff): Call
301 target_terminal_init instead of child_terminal_init_with_pgrp.
302
32a8097b
PA
3032014-10-17 Pedro Alves <palves@redhat.com>
304
305 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
306 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
307 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
308 solib-osf.c.
309 * NEWS: Mention that support for alpha*-*-osf* has been removed.
310 * ada-lang.h [__alpha__ && __osf__]
311 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
312 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
313 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
314 GDB_OSABI_OSF1.
315 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
316 files.
317 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
318 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
319 * configure: Regenerate.
320 * configure.ac: Remove references to osf.
321 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
322 section. Remove all other references to osf.
323 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
324 Remove all other references to osf.
325 * dec-thread.c: Delete file.
326 * defs.h (GDB_OSABI_OSF1): Delete.
327 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
328 defined.
329 * osabi.c (gdb_osabi_names): Delete "OSF/1".
330 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
331 Delete code.
332 (unconditionally_kill_inferior)
333 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
334 * solib-osf.c: Delete file.
335
80134cf5
PA
3362014-10-17 Pedro Alves <palves@redhat.com>
337
338 * remote.c (clear_threads_listing_context): Move higher up, out of
339 the HAVE_LIBEXPAT guard.
340
89c7137f
TG
3412014-10-16 Tristan Gingold <gingold@adacore.com>
342
343 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
344 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
345 on amd64.
346
44ee4a52
PA
3472014-10-15 Pedro Alves <palves@redhat.com>
348
349 * dec-thread.c (dec_thread_count_gdb_threads)
350 (dec_thread_add_gdb_thread): Delete.
351 (dec_thread_update_thread_list): Delete.
352 (dec_thread_find_new_threads): Rename to ...
353 (dec_thread_update_thread_list): ... this. Delete GDB-size
354 threads that are no longer found in dec_thread_list.
355 (resync_thread_list): Delete.
356 (dec_thread_wait): Call dec_thread_update_thread_list instead of
357 resync_thread_list.
358
ab970af1
PA
3592014-10-15 Pedro Alves <palves@redhat.com>
360
361 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
362 * remote.c (remote_update_thread_list): Skip calling prune_threads
363 if any thread listing method is supported, and instead walk over
364 the set of remote threads listed, deleting those that are not
365 found in GDB's thread list.
366
e8032dde
PA
3672014-10-15 Pedro Alves <palves@redhat.com>
368
369 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
370 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
371 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
372 (bsd_uthread_target): Adjust.
373 * corelow.c (core_open): Adjust.
374 * dec-thread.c (dec_thread_find_new_threads): Update comment.
375 (dec_thread_update_thread_list): New function.
376 (init_dec_thread_ops): Adjust.
377 * gdbthread.h (prune_threads): New declaration.
378 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
379 (thread_db_update_thread_list): ... this. Call prune_threads.
380 (init_thread_db_ops): Adjust.
381 * nto-procfs.c (procfs_find_new_threads): Rename to ...
382 (procfs_update_thread_list): ... this. Call prune_threads.
383 (procfs_attach, procfs_create_inferior, init_procfs_targets):
384 Adjust.
385 * obsd-nat.c (obsd_find_new_threads): Rename to ...
386 (obsd_update_thread_list): ... this. Call prune_threads.
387 (obsd_add_target): Adjust.
388 * procfs.c (procfs_target): Adjust.
389 (procfs_notice_thread): Update comment.
390 (procfs_find_new_threads): Rename to ...
391 (procfs_update_thread_list): ... this. Call prune_threads.
392 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
393 comment.
394 (ravenscar_wait): Adjust.
395 (ravenscar_find_new_threads): Rename to ...
396 (ravenscar_update_thread_list): ... this. Call prune_threads.
397 (init_ravenscar_thread_ops): Adjust.
398 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
399 (record_btrace_update_thread_list): ... this. Adjust comment.
400 (init_record_btrace_ops): Adjust.
401 * remote.c (remote_threads_info): Rename to ...
402 (remote_update_thread_list): ... this. Call prune_threads.
403 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
404 Adjust.
405 * sol-thread.c (check_for_thread_db): Adjust.
406 (sol_find_new_threads_callback): Rename to ...
407 (sol_update_thread_list_callback): ... this.
408 (sol_find_new_threads): Rename to ...
409 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
410 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
411 * target-delegates.c: Regenerate.
412 * target.c (target_find_new_threads): Rename to ...
413 (target_update_thread_list): ... this.
414 * target.h (struct target_ops): Rename to_find_new_threads field
415 to to_update_thread_list.
416 (target_find_new_threads): Rename to ...
417 (target_update_thread_list): ... this.
418 * thread.c (prune_threads): Make extern.
419 (update_thread_list): Adjust.
420
6dc54d91
PA
4212014-10-15 Pedro Alves <palves@redhat.com>
422
423 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
424 Add describing comment. Return -1 if the qL packet is not
425 supported.
426 (struct thread_item, thread_item_t): Move higher up in
427 the file. Add comments.
428 (struct threads_parsing_context): Move higher up in
429 the file, add comments, and remote to ...
430 (struct threads_listing_context): ... this.
431 (remote_newthread_step): Don't add the thread to GDB's thread
432 database here. Instead push it to the thread_listing_context
433 list.
434 (remote_find_new_threads): Rename to ...
435 (remote_get_threads_with_ql): ... this. Add target_ops and
436 targets_listing_context parameters. Pass down context.
437 (start_thread): Adjust.
438 (clear_threads_parsing_context): Rename to ...
439 (clear_threads_listing_context): ... this.
440 (remote_get_threads_with_qxfer): New, with parts salvaged from old
441 remote_threads_info.
442 (remote_get_threads_with_qthreadinfo): Ditto.
443 (remote_threads_info): Reimplement.
444
36728e82
PA
4452014-10-15 Pedro Alves <palves@redhat.com>
446
447 * infrun.c (resume): Don't force displaced-stepping for all
448 single-steps on software single-stepping archs.
449
34b7e8a6
PA
4502014-10-15 Pedro Alves <palves@redhat.com>
451
452 * breakpoint.c (single_step_breakpoints): Delete global.
453 (insert_single_step_breakpoint): Adjust to store the breakpoint
454 pointer in the current thread.
455 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
456 (cancel_single_step_breakpoints): Delete functions.
457 (breakpoint_has_location_inserted_here): Make extern.
458 (single_step_breakpoint_inserted_here_p): Adjust to walk the
459 breakpoint list.
460 * breakpoint.h (breakpoint_has_location_inserted_here): New
461 declaration.
462 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
463 (cancel_single_step_breakpoints): Remove declarations.
464 * gdbthread.h (struct thread_control_state)
465 <single_step_breakpoints>: New field.
466 (delete_single_step_breakpoints)
467 (thread_has_single_step_breakpoints_set)
468 (thread_has_single_step_breakpoint_here): New declarations.
469 * infrun.c (follow_exec): Also clear the single-step breakpoints.
470 (singlestep_breakpoints_inserted_p, singlestep_ptid)
471 (singlestep_pc): Delete globals.
472 (infrun_thread_ptid_changed): Remove references to removed
473 globals.
474 (resume_cleanups): Delete the current thread's single-step
475 breakpoints.
476 (maybe_software_singlestep): Remove references to removed globals.
477 (resume): Adjust to use thread_has_single_step_breakpoints_set and
478 delete_single_step_breakpoints.
479 (init_wait_for_inferior): Remove references to removed globals.
480 (delete_thread_infrun_breakpoints): Delete the thread's
481 single-step breakpoints too.
482 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
483 single-step breakpoints here.
484 (delete_stopped_threads_single_step_breakpoints): New function.
485 (adjust_pc_after_break): Adjust to use
486 thread_has_single_step_breakpoints_set.
487 (handle_inferior_event): Remove references to removed globals.
488 Use delete_stopped_threads_single_step_breakpoints.
489 (handle_signal_stop): Adjust to per-thread single-step
490 breakpoints. Swap test order to do cheaper tests first.
491 (switch_back_to_stepped_thread): Extend debug output. Remove
492 references to removed globals.
493 * record-full.c (record_full_wait_1): Adjust to per-thread
494 single-step breakpoints.
495 * thread.c (delete_single_step_breakpoints)
496 (thread_has_single_step_breakpoints_set)
497 (thread_has_single_step_breakpoint_here): New functions.
498 (clear_thread_inferior_resources): Also delete the thread's
499 single-step breakpoints.
500
5b834a0a
PA
5012014-10-15 Pedro Alves <palves@redhat.com>
502
503 * thread.c (delete_thread_breakpoint): New function.
504 (delete_step_resume_breakpoint)
505 (delete_exception_resume_breakpoint): Use it.
506 (delete_at_next_stop): New function.
507 (clear_thread_inferior_resources): Use delete_at_next_stop.
508
a1fd2fa5
PA
5092014-10-15 Pedro Alves <palves@redhat.com>
510
511 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
512 (breakpoint_inserted_here_p): ... here. Remove special case for
513 software single-step breakpoints.
514 (find_non_raw_software_breakpoint_inserted_here): Inline ...
515 (software_breakpoint_inserted_here_p): ... here. Remove special
516 case for software single-step breakpoints.
517 (bp_target_info_copy_insertion_state)
518 (deprecated_insert_raw_breakpoint)
519 (deprecated_remove_raw_breakpoint): Delete functions.
520 * breakpoint.h (deprecated_insert_raw_breakpoint)
521 (deprecated_remove_raw_breakpoint): Remove declarations.
522
7c16b83e
PA
5232014-10-15 Pedro Alves <palves@redhat.com>
524
525 PR breakpoints/9649
526 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
527 Delete array globals.
528 (single_step_breakpoints): New global.
529 (breakpoint_xfer_memory): Remove special handling for single-step
530 breakpoints.
531 (update_breakpoints_after_exec): Delete bp_single_step
532 breakpoints.
533 (detach_breakpoints): Remove special handling for single-step
534 breakpoints.
535 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
536 (bpstat_stop_status): Add comment.
537 (bpstat_what, bptype_string, print_one_breakpoint_location)
538 (adjust_breakpoint_address, init_bp_location): Handle
539 bp_single_step.
540 (new_single_step_breakpoint): New function.
541 (set_momentary_breakpoint, bkpt_remove_location): Remove special
542 handling for single-step breakpoints.
543 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
544 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
545 Rewrite.
546 (detach_single_step_breakpoints, find_single_step_breakpoint):
547 Delete functions.
548 (breakpoint_has_location_inserted_here): New function.
549 (single_step_breakpoint_inserted_here_p): Rewrite.
550 * breakpoint.h: Remove FIXME.
551 (enum bptype) <bp_single_step>: New enum value.
552 (insert_single_step_breakpoint): Update comment.
553 * infrun.c (resume_cleanups)
554 (delete_step_thread_step_resume_breakpoint): Remove single-step
555 breakpoints.
556 (fetch_inferior_event): Install a cleanup that removes infrun
557 breakpoints.
558 (switch_back_to_stepped_thread) <expect thread advanced also>:
559 Clear step-over info.
560
0cbcdb96
PA
5612014-10-15 Pedro Alves <palves@redhat.com>
562
563 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
564 (delete_thread_infrun_breakpoints): New function, with parts
565 salvaged from delete_step_resume_breakpoint_callback.
566 (delete_step_thread_step_resume_breakpoint): Delete.
567 (for_each_just_stopped_thread_callback_func): New typedef.
568 (for_each_just_stopped_thread): New function.
569 (delete_just_stopped_threads_infrun_breakpoints): New function.
570 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
571 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
572 ... this. Adjust.
573 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
574
963f9c80
PA
5752014-10-15 Pedro Alves <palves@redhat.com>
576
577 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
578 trying to step past a non-steppable watchpoint.
579 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
580 field.
581 * infrun.c (struct step_over_info): Add new field
582 'nonsteppable_watchpoint_p' and adjust comments.
583 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
584 Adjust.
585 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
586 (stepping_past_nonsteppable_watchpoint): New function.
587 (step_over_info_valid_p): Also return true if stepping past a
588 nonsteppable watchpoint.
589 (proceed): Adjust call to set_step_over_info. Remove reference to
590 init_infwait_state.
591 (init_wait_for_inferior): Remove reference to init_infwait_state.
592 (waiton_ptid): Delete global.
593 (struct execution_control_state)
594 <stepped_after_stopped_by_watchpoint>: Delete field.
595 (wait_for_inferior, fetch_inferior_event): Always pass
596 minus_one_ptid to target_wait.
597 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
598 field.
599 (init_infwait_state): Delete function.
600 (handle_inferior_event): Remove infwait_state handling.
601 (handle_signal_stop) <watchpoints handling>: Adjust after
602 stepped_after_stopped_by_watchpoint removal. Don't remove
603 breakpoints here nor set infwait_state. Set the thread's
604 stepping_over_watchpoint flag, and call keep_going instead.
605 (keep_going): Handle stepping_over_watchpoint. Adjust
606 set_step_over_info calls.
607 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
608 function.
609
6cc83d2a
PA
6102014-10-15 Pedro Alves <palves@redhat.com>
611
612 * infrun.c (step_over_info_valid_p): New function.
613 (resume): Use step_over_info_valid_p instead of checking the
614 threads's trap_expected flag.
615
6979730b
DE
6162014-10-15 Doug Evans <dje@google.com>
617 Walfred Tedeschi <walfred.tedeschi@intel.com>
618
619 PR python/17364
620 * python/lib/gdb/__init__.py (packages): Add "printer".
621 * python/lib/gdb/command/bound_registers.py: Moved to ...
622 * python/lib/gdb/printer/bound_registers.py: ... here.
623 Add printer to global set of builtin printers. Rename printer from
624 "bound" to "mpx_bound128".
625 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
626 registered as global "builtin" printer.
627 (add_builtin_pretty_printer): New function.
628 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
629 gdb/printer/__init__.py.
630
35a49624
IB
6312014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
632
633 * Makefile.in (SFILES): Remove d-support.c.
634 (COMMON_OBS): Remove d-support.o.
635 * d-lang.h (d_parse_symbol): Remove declaration.
636 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
637 * d-support.c: Remove file.
638
8fa0c4f8
AA
6392014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
640
641 * gdb/infrun.c (process_event_stop_test): Apply
642 gdbarch_addr_bits_remove to longjmp resume address.
643
3666da81
PA
6442014-10-15 Pedro Alves <palves@redhat.com>
645
646 * regformats/microblaze.dat: Delete file.
647
449aa9df
AKA
6482014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
649
650 * features/Makefile (microblaze-expedite): Replace pc with rpc.
651 * regformats/microblaze-with-stack-protect.dat: Regenerate.
652
ebb8ece2
SC
6532014-10-15 Siva Chandra Reddy <sivachandra@google.com>
654
655 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
656 as non-trivial.
657
82c48ac7
SC
6582014-10-15 Siva Chandra Reddy <sivachandra@google.com>
659
660 PR c++/13403
661 PR c++/15154
662 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
663 with qualified args.
664
c40cc657
JB
6652014-10-14 Joel Brobecker <brobecker@adacore.com>
666
667 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
668 of the case where the second operand is a pointer.
669 <BINOP_SUB>: Likewise.
670
0ea5cda8
SDJ
6712014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
672
673 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
674 only if it is not NULL.
675 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
676 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
677 (struct probe_ops) <clear_semaphore>: Likewise.
678 * tracepoint.c (start_tracing): Call set_semaphore only if it is
679 not NULL.
680 (stop_tracing): Likewise, for clear_semaphore.
681
f7088df3
SDJ
6822014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
683
684 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
685 using language_c, instead of current_language.
686
4e1bbde0
DE
6872014-10-13 Doug Evans <dje@google.com>
688
6ff5a0f6 689 * python/py-objfile.c (objfpy_initialize): New function.
4e1bbde0 690 (objfpy_new, objfile_to_objfile_object): Call it.
6ff5a0f6 691 * python/py-progspace.c (pspy_initialize): New function.
4e1bbde0
DE
692 (pspy_new, pspace_to_pspace_object): Call it.
693
c780cc2f
JK
6942014-10-13 Miroslav Franc <mfranc@redhat.com>
695 Jan Kratochvil <jan.kratochvil@redhat.com>
696
697 Fix "save breakpoints" for "catch" command.
698 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
699 newline.
700
99894e11
JK
7012014-10-12 Miroslav Franc <mfranc@redhat.com>
702
703 Fix "save breakpoints" for "disable $bpnum" command.
704 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
705
3831839c
PA
7062014-10-10 Pedro Alves <palves@redhat.com>
707
708 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
709 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
710 (HFILES_NO_SRCDIR): Remove solib-irix.h.
711 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
712 and been removed.
713 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
714 * configure.ac: Remove references to IRIX.
715 * configure.host: Add *-*-irix* to the obsolete hosts section.
716 Remove all other references to irix.
717 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
718 Delete files.
719
cc3afae2
AKA
7202014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
721
722 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
723 isn't valid, release the tdesc arch data and return NULL.
724
cdfa0b0a
PA
7252014-10-10 Pedro Alves <palves@redhat.com>
726
727 * linux-tdep.c: Include observer.h.
728 (linux_inferior_data): New global.
729 (struct linux_info): New structure.
730 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
731 (get_linux_inferior_data): New functions.
732 (linux_vsyscall_range): Rename to ...
733 (linux_vsyscall_range_raw): ... this.
734 (linux_vsyscall_range): New function; handles caching.
735 (_initialize_linux_tdep): Register linux_inferior_data. Install
736 inferior_exit and inferior_appeared observers.
737
8b9a549d
PA
7382014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
739 Pedro Alves <palves@redhat.com>
740
741 PR symtab/14466
742 * solib-svr4.c (svr4_read_so_list): Rename to ...
743 (svr4_current_sos_1): ... this and change the function comment.
744 (svr4_current_sos): New function.
745
3437254d
PA
7462014-10-10 Pedro Alves <palves@redhat.com>
747
748 * arch-utils.c (default_vsyscall_range): New function.
749 * arch-utils.h (default_vsyscall_range): New declaration.
750 * gdbarch.sh (vsyscall_range): New hook.
751 * gdbarch.h, gdbarch.c: Regenerate.
752 * linux-tdep.c (linux_vsyscall_range): New function.
753 (linux_init_abi): Install linux_vsyscall_range as
754 vsyscall_range gdbarch hook.
755 * memrange.c (address_in_mem_range): New function.
756 * memrange.h (address_in_mem_range): New declaration.
757 * symfile-mem.c (find_vdso_size): Delete function.
758 (add_vsyscall_page): Use gdbarch_vsyscall_range.
759
31cc0b80
PA
7602014-10-10 Pedro Alves <palves@redhat.com>
761
762 * infrun.c (normal_stop): Fix typo in comment.
763
3e3286a2
SDJ
7642014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
765
766 PR tdep/9390
767 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
768 typo when using logical AND to determine instruction type.
769
fcbdedf8
YQ
7702014-10-09 Yao Qi <yao@codesourcery.com>
771
772 * infrun.c (handle_signal_stop): Remove local variable
773 'printed'.
774
db984616
SS
7752014-10-08 Stan Shebs <stan@codesourcery.com>
776
777 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
778
3ba37e6c
GB
7792014-10-08 Gary Benson <gbenson@redhat.com>
780
781 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
782
a442d071
GB
7832014-10-08 Gary Benson <gbenson@redhat.com>
784
785 * common/common-defs.h: Include common-exceptions.h.
786 * exceptions.h: Do not include common-exceptions.h.
787
6f1947e8
GB
7882014-10-08 Gary Benson <gbenson@redhat.com>
789
790 * common/common-defs.h: Include cleanups.h.
791 * common/common-exceptions.c: Do not include cleanups.h.
792 * utils.h: Likewise.
793
c765fdb9
GB
7942014-10-08 Gary Benson <gbenson@redhat.com>
795
796 * ada-lang.c: Do not include exceptions.h.
797 * ada-valprint.c: Likewise.
798 * amd64-tdep.c: Likewise.
799 * auto-load.c: Likewise.
800 * block.c: Likewise.
801 * break-catch-throw.c: Likewise.
802 * breakpoint.c: Likewise.
803 * btrace.c: Likewise.
804 * c-lang.c: Likewise.
805 * cli/cli-cmds.c: Likewise.
806 * cli/cli-interp.c: Likewise.
807 * cli/cli-script.c: Likewise.
808 * completer.c: Likewise.
809 * corefile.c: Likewise.
810 * corelow.c: Likewise.
811 * cp-abi.c: Likewise.
812 * cp-support.c: Likewise.
813 * cp-valprint.c: Likewise.
814 * darwin-nat.c: Likewise.
815 * dwarf2-frame-tailcall.c: Likewise.
816 * dwarf2-frame.c: Likewise.
817 * dwarf2loc.c: Likewise.
818 * dwarf2read.c: Likewise.
819 * eval.c: Likewise.
820 * event-loop.c: Likewise.
821 * event-top.c: Likewise.
822 * f-valprint.c: Likewise.
823 * frame-unwind.c: Likewise.
824 * frame.c: Likewise.
825 * gdbtypes.c: Likewise.
826 * gnu-v2-abi.c: Likewise.
827 * gnu-v3-abi.c: Likewise.
828 * guile/scm-auto-load.c: Likewise.
829 * guile/scm-breakpoint.c: Likewise.
830 * guile/scm-cmd.c: Likewise.
831 * guile/scm-frame.c: Likewise.
832 * guile/scm-lazy-string.c: Likewise.
833 * guile/scm-param.c: Likewise.
834 * guile/scm-symbol.c: Likewise.
835 * guile/scm-type.c: Likewise.
836 * hppa-hpux-tdep.c: Likewise.
837 * i386-tdep.c: Likewise.
838 * inf-loop.c: Likewise.
839 * infcall.c: Likewise.
840 * infcmd.c: Likewise.
841 * infrun.c: Likewise.
842 * interps.c: Likewise.
843 * interps.h: Likewise.
844 * jit.c: Likewise.
845 * linespec.c: Likewise.
846 * linux-nat.c: Likewise.
847 * linux-thread-db.c: Likewise.
848 * m32r-rom.c: Likewise.
849 * main.c: Likewise.
850 * memory-map.c: Likewise.
851 * mi/mi-cmd-break.c: Likewise.
852 * mi/mi-cmd-stack.c: Likewise.
853 * mi/mi-interp.c: Likewise.
854 * mi/mi-main.c: Likewise.
855 * monitor.c: Likewise.
856 * nto-procfs.c: Likewise.
857 * objc-lang.c: Likewise.
858 * p-valprint.c: Likewise.
859 * parse.c: Likewise.
860 * ppc-linux-tdep.c: Likewise.
861 * printcmd.c: Likewise.
862 * probe.c: Likewise.
863 * python/py-auto-load.c: Likewise.
864 * python/py-breakpoint.c: Likewise.
865 * python/py-cmd.c: Likewise.
866 * python/py-finishbreakpoint.c: Likewise.
867 * python/py-frame.c: Likewise.
868 * python/py-framefilter.c: Likewise.
869 * python/py-function.c: Likewise.
870 * python/py-gdb-readline.c: Likewise.
871 * python/py-inferior.c: Likewise.
872 * python/py-infthread.c: Likewise.
873 * python/py-lazy-string.c: Likewise.
874 * python/py-linetable.c: Likewise.
875 * python/py-param.c: Likewise.
876 * python/py-prettyprint.c: Likewise.
877 * python/py-symbol.c: Likewise.
878 * python/py-type.c: Likewise.
879 * python/py-value.c: Likewise.
880 * python/python-internal.h: Likewise.
881 * python/python.c: Likewise.
882 * record-btrace.c: Likewise.
883 * record-full.c: Likewise.
884 * regcache.c: Likewise.
885 * remote-fileio.c: Likewise.
886 * remote-mips.c: Likewise.
887 * remote.c: Likewise.
888 * rs6000-aix-tdep.c: Likewise.
889 * rs6000-nat.c: Likewise.
890 * skip.c: Likewise.
891 * solib-darwin.c: Likewise.
892 * solib-dsbt.c: Likewise.
893 * solib-frv.c: Likewise.
894 * solib-ia64-hpux.c: Likewise.
895 * solib-spu.c: Likewise.
896 * solib-svr4.c: Likewise.
897 * solib.c: Likewise.
898 * spu-tdep.c: Likewise.
899 * stack.c: Likewise.
900 * stap-probe.c: Likewise.
901 * symfile-mem.c: Likewise.
902 * symmisc.c: Likewise.
903 * target.c: Likewise.
904 * thread.c: Likewise.
905 * top.c: Likewise.
906 * tracepoint.c: Likewise.
907 * tui/tui-interp.c: Likewise.
908 * typeprint.c: Likewise.
909 * utils.c: Likewise.
910 * valarith.c: Likewise.
911 * valops.c: Likewise.
912 * valprint.c: Likewise.
913 * value.c: Likewise.
914 * varobj.c: Likewise.
915 * windows-nat.c: Likewise.
916 * xml-support.c: Likewise.
917
484933d1
MR
9182014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
919
920 * mips-tdep.c (add_offset_16): Rewrite to implement what the
921 name implies.
922 (extended_mips16_next_pc): Update accordingly.
923
ab50adb6
MR
9242014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
925
926 * mips-tdep.c (mips16_instruction_is_compact_branch): New
927 function.
928 (micromips_instruction_is_compact_branch): Likewise.
929 (mips16_scan_prologue): Terminate scanning upon seeing a branch
930 or a compact jump, reaching a jump delay slot, or seeing a
931 second non-prologue instruction.
932 (micromips_scan_prologue): Also terminate scanning upon seeing a
933 compact branch or jump, or reaching a branch or jump delay slot.
934 (mips32_scan_prologue): Terminate scanning upon reaching a branch
935 or jump delay slot, or seeing a second non-prologue instruction.
936 (mips32_instruction_has_delay_slot): Retain instruction
937 examination code only, update arguments accordingly and move
938 instruction fetch pieces to...
939 (mips32_insn_at_pc_has_delay_slot): ... this new function.
940 (micromips_instruction_has_delay_slot): Likewise and to...
941 (micromips_insn_at_pc_has_delay_slot): ... this new function.
942 (mips16_instruction_has_delay_slot): Likewise and to...
943 (mips16_insn_at_pc_has_delay_slot): ... this new function.
944 (mips_single_step_through_delay): Update accordingly.
945 (mips_adjust_breakpoint_address): Likewise.
946
ae790652
MR
9472014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
948
949 * mips-tdep.c (micromips_instruction_has_delay_slot): When
950 !mustbe32 also return 1 for 32-bit instructions.
951 (mips16_instruction_has_delay_slot): Likewise. Add an
952 explanatory comment.
953
9b807e7b
MR
9542014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
955
956 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
957 symbols special.
958
0d5ed153
MR
9592014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
960
961 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
962 update comments.
963 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
964 for the breakpoint's address. Don't preinitialize `placed_size'.
965 (insert_bp_location): Set `reqstd_address' rather than
966 `placed_address'.
967 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
968 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
969 address.
970 (bkpt_remove_location): Likewise.
971 (deprecated_insert_raw_breakpoint): Likewise.
972 (deprecated_remove_raw_breakpoint): Likewise.
973 (find_single_step_breakpoint): Likewise.
974 * mem-break.c (default_memory_insert_breakpoint): Use
975 `reqstd_address' for the breakpoint's address. Don't set
976 `placed_address' or `placed_size' if breakpoint contents couldn't
977 have been determined.
978 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
979 the breakpoint's address.
980 (remote_insert_hw_breakpoint): Likewise. Don't set
981 `placed_address' or `placed_size' if breakpoint couldn't have been
982 set.
983 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
984 `reqstd_address' for the breakpoint's address.
985 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
986 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
987 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
988 * microblaze-linux-tdep.c
989 (microblaze_linux_memory_remove_breakpoint): Likewise.
990 * monitor.c (monitor_insert_breakpoint): Likewise.
991 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
992 (procfs_insert_hw_breakpoint): Likewise.
993 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
994 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
995 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
996 * remote-mips.c (mips_insert_breakpoint): Likewise.
997 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
998
3e871532
LM
9992014-10-03 Luis Machado <lgustavo@codesourcery.com>
1000
1001 * valops.c (value_assign): Check for bit field assignments
1002 before calling architecture-specific register value
1003 conversion functions.
1004
ec48dc8b
PM
10052014-10-03 Pierre Muller <muller@sourceware.org>
1006
1007 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
1008
b57bacec
PA
10092014-10-02 Pedro Alves <palves@redhat.com>
1010
1011 * breakpoint.c (breakpoints_should_be_inserted_now): Use
1012 threads_are_executing.
1013 * breakpoint.h (breakpoints_should_be_inserted_now): Add
1014 describing comment.
1015 * gdbthread.h (threads_are_executing): Declare.
1016 (handle_signal_stop) <random signals>: Don't print about the
1017 signal here if stopping.
1018 (end_stepping_range): Don't notify observers here.
1019 (normal_stop): Update the thread list. If stopped by a random
1020 signal or a stepping range ended, notify observers.
1021 * thread.c (threads_executing): New global.
1022 (init_thread_list): Clear 'threads_executing'.
1023 (set_executing): Set or clear 'threads_executing'.
1024 (threads_are_executing): New function.
1025 (update_threads_executing): New function.
1026 (update_thread_list): Use it.
1027
13fd3ff3
PA
10282014-10-02 Pedro Alves <palves@redhat.com>
1029
1030 PR breakpoints/17431
1031 * breakpoint.c (update_breakpoints_after_exec): Don't create
1032 overlay, longjmp, std terminate nor exception breakpoints here.
1033
32990ada
PA
10342014-10-02 Pedro Alves <palves@redhat.com>
1035
1036 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
1037 Adjust comments.
1038 * inferior.c (find_inferior_for_program_space): Give preference to
1039 the current inferior.
1040 * inferior.h (find_inferior_for_program_space): Update comment.
1041 * progspace.c (switch_to_program_space_and_thread): Prefer the
1042 current inferior if it's bound to the program space requested. If
1043 the inferior found doesn't have a PID yet, don't bother looking up
1044 a thread.
1045 * progspace.h (switch_to_program_space_and_thread): Adjust
1046 comment.
1047 * thread.c (any_thread_of_process, any_live_thread_of_process):
1048 Give preference to the current thread.
1049
0fec99e8
PA
10502014-10-01 Pedro Alves <palves@redhat.com>
1051
1052 * breakpoint.c (insert_bp_location): Error out if inserting a
1053 software breakpoint at a read-only address.
1054 * target.c (memory_xfer_check_region): New function, factored out
1055 from ...
1056 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
1057 ULONGEST.
1058 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
1059 against the memory region attributes.
1060
2ddf4301
SM
10612014-10-01 Simon Marchi <simon.marchi@ericsson.com>
1062
1063 * NEWS: Announce new exit-code field in -list-thread-groups
1064 output.
1065 * inferior.c (exit_inferior_1): Don't clear exit code.
1066 (inferior_appeared): Clear exit code.
1067 * mi/mi-main.c (print_one_inferior): Add printing of the exit
1068 code.
1069
5fdeec1d
PA
10702014-10-01 Pedro Alves <palves@redhat.com>
1071
1072 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
1073 GENERATED" along with emacs/vi read-only markers.
1074 * regformats/aarch64.dat: Regenerate.
1075 * regformats/arm-with-iwmmxt.dat: Regenerate.
1076 * regformats/arm-with-neon.dat: Regenerate.
1077 * regformats/arm-with-vfpv2.dat: Regenerate.
1078 * regformats/arm-with-vfpv3.dat: Regenerate.
1079 * regformats/i386/amd64-avx-linux.dat: Regenerate.
1080 * regformats/i386/amd64-avx.dat: Regenerate.
1081 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
1082 * regformats/i386/amd64-avx512.dat: Regenerate.
1083 * regformats/i386/amd64-linux.dat: Regenerate.
1084 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
1085 * regformats/i386/amd64-mpx.dat: Regenerate.
1086 * regformats/i386/amd64.dat: Regenerate.
1087 * regformats/i386/i386-avx-linux.dat: Regenerate.
1088 * regformats/i386/i386-avx.dat: Regenerate.
1089 * regformats/i386/i386-avx512-linux.dat: Regenerate.
1090 * regformats/i386/i386-avx512.dat: Regenerate.
1091 * regformats/i386/i386-linux.dat: Regenerate.
1092 * regformats/i386/i386-mmx-linux.dat: Regenerate.
1093 * regformats/i386/i386-mmx.dat: Regenerate.
1094 * regformats/i386/i386-mpx-linux.dat: Regenerate.
1095 * regformats/i386/i386-mpx.dat: Regenerate.
1096 * regformats/i386/i386.dat: Regenerate.
1097 * regformats/i386/x32-avx-linux.dat: Regenerate.
1098 * regformats/i386/x32-avx.dat: Regenerate.
1099 * regformats/i386/x32-avx512-linux.dat: Regenerate.
1100 * regformats/i386/x32-avx512.dat: Regenerate.
1101 * regformats/i386/x32-linux.dat: Regenerate.
1102 * regformats/i386/x32.dat: Regenerate.
1103 * regformats/microblaze-with-stack-protect.dat: Regenerate.
1104 * regformats/mips-dsp-linux.dat: Regenerate.
1105 * regformats/mips-linux.dat: Regenerate.
1106 * regformats/mips64-dsp-linux.dat: Regenerate.
1107 * regformats/mips64-linux.dat: Regenerate.
1108 * regformats/nios2-linux.dat: Regenerate.
1109 * regformats/rs6000/powerpc-32.dat: Regenerate.
1110 * regformats/rs6000/powerpc-32l.dat: Regenerate.
1111 * regformats/rs6000/powerpc-64l.dat: Regenerate.
1112 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
1113 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
1114 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
1115 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
1116 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
1117 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
1118 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
1119 * regformats/s390-linux32.dat: Regenerate.
1120 * regformats/s390-linux32v1.dat: Regenerate.
1121 * regformats/s390-linux32v2.dat: Regenerate.
1122 * regformats/s390-linux64.dat: Regenerate.
1123 * regformats/s390-linux64v1.dat: Regenerate.
1124 * regformats/s390-linux64v2.dat: Regenerate.
1125 * regformats/s390-te-linux64.dat: Regenerate.
1126 * regformats/s390x-linux64.dat: Regenerate.
1127 * regformats/s390x-linux64v1.dat: Regenerate.
1128 * regformats/s390x-linux64v2.dat: Regenerate.
1129 * regformats/s390x-te-linux64.dat: Regenerate.
1130 * regformats/tic6x-c62x-linux.dat: Regenerate.
1131 * regformats/tic6x-c62x.dat: Regenerate.
1132 * regformats/tic6x-c64x-linux.dat: Regenerate.
1133 * regformats/tic6x-c64x.dat: Regenerate.
1134 * regformats/tic6x-c64xp-linux.dat: Regenerate.
1135 * regformats/tic6x-c64xp.dat: Regenerate.
1136
db74e4ba
PA
11372014-10-01 Pedro Alves <palves@redhat.com>
1138
1139 * features/Makefile: Update comments.
1140 (XMLTOC): List all xml files we build C files from.
1141 (clean-cfiles): New rule.
1142
d63f2f84
PA
11432014-10-01 Pedro Alves <palves@redhat.com>
1144
1145 * features/i386/amd64-avx512-linux.c: Regenerate.
1146 * features/i386/amd64-avx512.c: Regenerate.
1147 * features/i386/x32-avx512-linux.c: Regenerate.
1148 * features/i386/x32-avx512.c: Regenerate.
1149
20ad026d
PA
11502014-10-01 Pedro Alves <palves@redhat.com>
1151
1152 * features/Makefile (WHICH): Remove arm-with-m,
1153 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
1154
acc9fe45
PA
11552014-10-01 Pedro Alves <palves@redhat.com>
1156
1157 * features/Makefile (clean): New rule.
1158
e001e535
PA
11592014-10-01 Pedro Alves <palves@redhat.com>
1160
1161 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
1162 (zmm14h): Add missing end quotes.
1163
bdc14417
PA
11642014-10-01 Pedro Alves <palves@redhat.com>
1165
1166 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
1167 * features/aarch64.c: Regenerate.
1168
d83ad864
DB
11692014-09-30 Don Breazeal <donb@codesourcery.com>
1170
1171 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
1172 code so as to work with follow_fork_inferior.
1173 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
1174 (inf_ttrace_create_inferior): Remove reference to
1175 inf_ttrace_vfork_ppid.
1176 (inf_ttrace_attach): Ditto.
1177 (inf_ttrace_detach): Ditto.
1178 (inf_ttrace_kill): Use current_inferior instead of
1179 inf_ttrace_vfork_ppid.
1180 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
1181 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
1182 inferior away from the parent.
1183 * infrun.c (follow_fork): Call follow_fork_inferior instead of
1184 target_follow_fork.
1185 (follow_fork_inferior): New function.
1186 (follow_inferior_reset_breakpoints): Make function static.
1187 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
1188 * linux-nat.c (linux_child_follow_fork): Move target-independent
1189 code to infrun.c:follow_fork_inferior.
1190
29082443
AA
11912014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1192
1193 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
1194 * gdbarch.c: Regenerate.
1195 * gdbarch.h: Likewise.
1196 * corelow.c (sniff_core_bfd): Drop presence check for deleted
1197 gdbarch method 'regset_from_core_section'.
1198 (get_core_register_section): Remove handling for the case that
1199 regset == NULL and regset_from_core_section is defined.
1200 (get_core_registers): Drop check for deleted method.
1201 * procfs.c (procfs_do_thread_registers): Adjust comment.
1202
f968fe80
AA
12032014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1204
1205 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
1206 (linux_nat_make_corefile_notes): Remove.
1207 (linux_target_install_ops): Do not set target method
1208 'make_corefile_notes'.
1209 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
1210 Remove field.
1211 (linux_corefile_thread_callback): Instead of args->collect, call
1212 linux_collect_thread_registers.
1213 (linux_make_corefile_notes): Remove 'collect' parameter. Return
1214 NULL unless there is a regset iterator.
1215 (linux_make_corefile_notes_1): Remove.
1216 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
1217 by linux_make_corefile_notes.
1218 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
1219
174ad59a
AA
12202014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1221
1222 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
1223 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
1224 Remove.
1225 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
1226
97094034
AA
12272014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1228
1229 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
1230 (xtensa_iterate_over_regset_sections): New.
1231 (xtensa_gdbarch_init): Adjust gdbarch initialization.
1232
f73d3ce7
AA
12332014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1234
1235 * vax-tdep.c (vax_regset_from_core_section): Remove.
1236 (vax_iterate_over_regset_sections): New.
1237 (vax_gdbarch_init): Adjust gdbarch initialization.
1238
cb24567a
AA
12392014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1240
1241 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
1242 (tilegx_regset_from_core_section): Remove.
1243 (tilegx_iterate_over_regset_sections): New.
1244 (tilegx_linux_init_abi): Adjust gdbarch initialization.
1245
e5139de8
AA
12462014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1247
1248 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
1249 (sparc_iterate_over_regset_sections): New.
1250 (sparc32_gdbarch_init): Adjust gdbarch initialization.
1251 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
1252 targets.
1253 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
1254 (sparc64fbsd_init_abi): Call fbsd_init_abi.
1255 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
1256 target method 'make_corefile_notes'.
1257
c6d41a6f
AA
12582014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1259
1260 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
1261 'sizeof_gregset' and 'sizeof_fpregset'.
1262 * sh-tdep.c (sh_regset_from_core_section): Remove.
1263 (sh_iterate_over_regset_sections): New.
1264 (sh_gdbarch_init): Adjust gdbarch initialization.
1265 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
1266 sizeof_fpregset.
1267 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
1268 'sizeof_gregset'.
1269
9845a0b5
AA
12702014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1271
1272 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
1273 (score7_linux_iterate_over_regset_sections): New.
1274 (score_gdbarch_init): Adjust gdbarch initialization.
1275
23ea9aeb
AA
12762014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1277
1278 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
1279 FreeBSD targets.
1280 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
1281 method 'make_corefile_notes'.
1282 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
1283 (ppcfbsd_regset_from_core_section): Remove.
1284 (ppcfbsd_iterate_over_regset_sections): New.
1285 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
1286 initialization.
1287 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
1288 (ppcnbsd_iterate_over_regset_sections): New.
1289 (ppcnbsd_init_abi): Adjust.
1290 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
1291 (ppcobsd_iterate_over_regset_sections): New.
1292 (ppcobsd_init_abi): Adjust.
1293 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
1294 (rs6000_aix_iterate_over_regset_sections): New.
1295 (rs6000_aix_init_osabi): Adjust.
1296
c5b8d704
AA
12972014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1298
1299 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
1300 (nios2_regset_from_core_section): Remove.
1301 (nios2_iterate_over_regset_sections): New.
1302 (nios2_linux_init_abi): Adjust gdbarch initialization.
1303
3636e608
AA
13042014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1305
1306 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
1307 (am33_iterate_over_regset_sections): New.
1308 (am33_linux_init_osabi): Adjust gdbarch initialization.
1309
d4036235
AA
13102014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1311
1312 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
1313 (mips_linux_iterate_over_regset_sections): New.
1314 (mips_linux_init_abi): Adjust gdbarch initialization.
1315 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
1316 (mips64obsd_iterate_over_regset_sections): New.
1317 (mips64obsd_init_abi): Adjust.
1318 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
1319 (mipsnbsd_iterate_over_regset_sections): New.
1320 (mipsnbsd_init_abi): Adjust.
1321
b61ddd6e
AA
13222014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1323
1324 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
1325 (m88k_iterate_over_regset_sections): New.
1326 (m88k_gdbarch_init): Adjust gdbarch initialization.
1327
55a2906a
AA
13282014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1329
1330 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
1331 (ia64_linux_iterate_over_regset_sections): New.
1332 (ia64_linux_init_abi): Adjust gdbarch initialization.
1333
022c98ab
AA
13342014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1335
1336 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
1337 (m68kbsd_iterate_over_regset_sections): New.
1338 (m68kbsd_init_abi): Adjust gdbarch initialization.
1339 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
1340 (m68k_linux_iterate_over_regset_sections): New.
1341 (m68k_linux_init_abi): Adjust gdbarch initialization.
1342
5fac247f
AA
13432014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1344
1345 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
1346 (m32r_linux_regset_from_core_section): Remove.
1347 (m32r_linux_iterate_over_regset_sections): New.
1348 (m32r_linux_init_abi): Adjust gdbarch initialization.
1349
490496c3
AA
13502014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1351
1352 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
1353 (amd64obsd_iterate_over_regset_sections): New.
1354 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
1355 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
1356 Remove.
1357 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
1358 regset_from_core_section initialization.
1359 * i386-tdep.c (i386_regset_from_core_section): Remove.
1360 (i386_iterate_over_regset_sections): New.
1361 (i386_gdbarch_init): Adjust gdbarch initialization.
1362 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
1363 (i386_iterate_over_regset_sections): New prototype.
1364 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
1365 Remove.
1366 (i386obsd_aout_iterate_over_regset_sections): New.
1367 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
1368 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
1369 targets.
1370 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
1371 (amd64fbsd_init_abi): Call fbsd_init_abi.
1372 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
1373 (i386fbsd4_init_abi): Call fbsd_init_abi.
1374 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
1375 target method 'make_corefile_notes'.
1376 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
1377
50c5eb53
AA
13782014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1379
1380 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
1381 (hppa_hpux_iterate_over_regset_sections): New.
1382 (hppa_hpux_init_abi): Adjust gdbarch initialization.
1383 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
1384 (hppa_linux_iterate_over_regset_sections): New.
1385 (hppa_linux_init_abi): Adjust.
1386 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
1387 (hppanbsd_iterate_over_regset_sections): New.
1388 (hppanbsd_init_abi): Adjust.
1389 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
1390 (hppaobsd_iterate_over_regset_sections): New.
1391 (hppaobsd_init_abi): Adjust.
1392
66afae4f
AA
13932014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1394
1395 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
1396 (frv_linux_iterate_over_regset_sections): New.
1397 (frv_linux_init_abi): Adjust gdbarch initialization.
1398
ed09174e
AA
13992014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1400
1401 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
1402 (armbsd_iterate_over_regset_sections): New prototype.
1403 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
1404 (armbsd_iterate_over_regset_sections): New.
1405 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
1406 initialization.
1407
dff2166e
AA
14082014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1409
1410 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
1411 (alpha_linux_iterate_over_regset_sections): New.
1412 (alpha_linux_init_abi): Adjust gdbarch initialization.
1413 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
1414 prototype.
1415 (alphanbsd_iterate_over_regset_sections): New prototype.
1416
4108500a
AA
14172014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1418
1419 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
1420 Remove.
1421 (aarch64_linux_iterate_over_regset_sections): New.
1422 (aarch64_linux_init_abi): Adjust gdbarch initialization.
1423
a904c024
AA
14242014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1425
1426 * fbsd-tdep.c: New file.
1427 * fbsd-tdep.h: New file.
1428 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
1429 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
1430 (ALLDEPFILES): Add fbsd-tdep.c.
1431
8f0435f7
AA
14322014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1433
1434 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
1435 parameter.
1436 * gdbarch.h: Regenerate.
1437 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
1438 iterator.
1439 (get_core_register_section): Add parameter 'regset' and use it, if
1440 set. Add parameter 'min_size' and verify the bfd section size
1441 against it.
1442 (get_core_registers_cb): Add parameter 'regset' and pass it to
1443 get_core_register section. For the "standard" register sections
1444 ".reg" and ".reg2", set an appropriate default for human_name.
1445 (get_core_registers): Don't abort when the gdbarch has an iterator
1446 but no regset_from_core_section. Add NULL/0 for parameters
1447 'regset'/'min_size' in calls to get_core_register_section.
1448 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
1449 'regset' and use it instead of calling the
1450 regset_from_core_section gdbarch method.
1451 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
1452 * i386-tdep.c (i386_supply_xstateregset)
1453 (i386_collect_xstateregset, i386_xstateregset): Moved to
1454 i386-linux-tdep.c.
1455 (i386_regset_from_core_section): Drop handling for .reg-xfp and
1456 .reg-xstate.
1457 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
1458 core file support only if the regset iterator hasn't been set.
1459 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
1460 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
1461 Moved from i386-tdep.c and renamed to *_linux*.
1462 (i386_linux_iterate_over_regset_sections): Add regset parameter to
1463 each callback invocation. Allow any .reg-xstate size when reading
1464 from a core file.
1465 * amd64-tdep.c (amd64_supply_xstateregset)
1466 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
1467 amd64-linux-tdep.c.
1468 (amd64_regset_from_core_section): Remove.
1469 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
1470 install an amd64-specific regset_from_core_section gdbarch method.
1471 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
1472 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
1473 Moved from amd64-tdep.c and renamed to *_linux*.
1474 (amd64_linux_iterate_over_regset_sections): Add regset parameter
1475 to each callback invocation. Allow any .reg-xstate size when
1476 reading from a core file.
1477 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
1478 (arm_linux_iterate_over_regset_sections): Add regset parameter to
1479 each callback invocation.
1480 (arm_linux_init_abi): No longer set the regset_from_core_section
1481 gdbarch method.
1482 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
1483 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
1484 each callback invocation.
1485 (ppc_linux_init_abi): No longer set the regset_from_core_section
1486 gdbarch method.
1487 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
1488 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
1489 (s390_regset_from_core_section): Remove.
1490 (s390_iterate_over_regset_sections): Add regset parameter to each
1491 callback invocation.
1492 (s390_gdbarch_init): No longer set the regset_from_core_section
1493 gdbarch method. Drop initialization of deleted tdep fields.
1494
5aa82d05
AA
14952014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1496
1497 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
1498 (amd64_linux_iterate_over_regset_sections): New.
1499 (amd64_linux_init_abi_common): Don't install the regset section
1500 list, but the new iterator in gdbarch.
1501 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
1502 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
1503 (arm_linux_iterate_over_regset_sections): ...here. New function.
1504 (arm_linux_init_abi): Set iterator instead of section list.
1505 * corelow.c (get_core_registers_cb): New function, logic moved
1506 from...
1507 (get_core_registers): ...loop body here. Use new iterator method
1508 instead of walking through the regset section list.
1509 * gdbarch.sh: Remove 'core_regset_sections'. New method
1510 'iterate_over_regset_sections'. New typedef
1511 'iterate_over_regset_sections_cb'.
1512 * gdbarch.c: Regenerate.
1513 * gdbarch.h: Likewise.
1514 * i386-linux-tdep.c (i386_linux_regset_sections)
1515 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
1516 Remove.
1517 (i386_linux_iterate_over_regset_sections): New.
1518 (i386_linux_init_abi): Don't choose a regset section list, but
1519 install new iterator in gdbarch.
1520 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
1521 (linux_collect_regset_section_cb): New function, logic moved
1522 from...
1523 (linux_collect_thread_registers): ...loop body here. Use iterator
1524 method instead of walking through list.
1525 (linux_make_corefile_notes_1): Check for presence of iterator
1526 method instead of regset section list.
1527 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
1528 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
1529 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
1530 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
1531 (ppc_linux_iterate_over_regset_sections): ...here. New function.
1532 (ppc_linux_init_abi): Don't choose from above regset section
1533 lists, but install new iterator in gdbarch.
1534 * regset.h (struct core_regset_section): Remove.
1535 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
1536 have_linux_v1, have_linux_v2, and have_tdb.
1537 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
1538 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
1539 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
1540 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
1541 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
1542 (s390_iterate_over_regset_sections): ...here. New function. Use
1543 new tdep fields.
1544 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
1545 regset section lists, but install new iterator.
1546
2eca4a8d
JK
15472014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1548
1549 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
1550
a73c2b56
SM
15512014-09-26 Simon Marchi <simon.marchi@ericsson.com>
1552
1553 * progspace.c (print_program_space): Don't prune program spaces
1554 before printing them.
1555
03d46957
PA
15562014-09-25 Pedro Alves <palves@redhat.com>
1557
1558 * infrun.c (user_visible_resume_ptid): Don't check
1559 singlestep_breakpoints_inserted_p.
1560
e558d7c1
PA
15612014-09-25 Pedro Alves <palves@redhat.com>
1562
1563 * breakpoint.c (should_be_inserted): Add debug output.
1564
7f89fd65
PA
15652014-09-25 Pedro Alves <palves@redhat.com>
1566
1567 * infrun.c (stepping_past_instruction_at)
1568 (clear_exit_convenience_vars): Point at infrun.h instead of
1569 inferior.h.
1570 (handle_signal_stop): Fix typo.
1571
b7576e5c
YQ
15722014-09-24 Yao Qi <yao@codesourcery.com>
1573
1574 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
1575 bitmask.
1576
9a6cf368
GB
15772014-09-22 Gary Benson <gbenson@redhat.com>
1578
1579 * target.c (target_stop): Updated comment.
1580
03f4463b
GB
15812014-09-22 Gary Benson <gbenson@redhat.com>
1582
1583 * target/target.h (target_stop_ptid): Renamed as...
1584 (target_stop_and_wait): New function. Updated comment.
1585 All uses updated.
1586 (target_continue_ptid): Renamed as...
1587 (target_continue_no_signal): New function. Updated comment.
1588 All uses updated.
1589
a25a5a45
PA
15902014-09-22 Pedro Alves <palves@redhat.com>
1591
1592 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
1593 and "auto" merged.
1594 * breakpoint.c (enum ugll_insert_mode): New enum.
1595 (always_inserted_mode): Now a plain boolean.
1596 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
1597 (breakpoints_always_inserted_mode): Delete.
1598 (breakpoints_should_be_inserted_now): New function.
1599 (insert_breakpoints): Pass UGLL_INSERT to
1600 update_global_location_list instead of calling
1601 insert_breakpoint_locations manually.
1602 (create_solib_event_breakpoint_1): New, factored out from ...
1603 (create_solib_event_breakpoint): ... this.
1604 (create_and_insert_solib_event_breakpoint): Use
1605 create_solib_event_breakpoint_1 instead of calling
1606 insert_breakpoint_locations manually.
1607 (update_global_location_list): Change parameter type from boolean
1608 to enum ugll_insert_mode. All callers adjusted. Adjust to use
1609 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
1610 (update_global_location_list_nothrow): Change parameter type from
1611 boolean to enum ugll_insert_mode.
1612 (_initialize_breakpoint): "breakpoint always-inserted" option is
1613 now a boolean command. Update help text.
1614 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
1615 (breakpoints_should_be_inserted_now): New declaration.
1616 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
1617 Remove breakpoints_always_inserted_mode check.
1618 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
1619 * remote.c (remote_start_remote): Likewise.
1620
04086b45
PA
16212014-09-22 Pedro Alves <palves@redhat.com>
1622
1623 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
1624 (insert_breakpoints): Don't call insert_breakpoint_locations here.
1625 Instead, pass UGLL_INSERT to update_global_location_list.
1626 (update_global_location_list): Change parameter type from boolean
1627 to enum ugll_insert_mode. All callers adjusted. Adjust to use
1628 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
1629 (create_solib_event_breakpoint_1): New, factored out from ...
1630 (create_solib_event_breakpoint): ... this.
1631 (create_and_insert_solib_event_breakpoint): Use
1632 create_solib_event_breakpoint_1 instead of calling
1633 insert_breakpoint_locations manually.
1634 (update_global_location_list): Handle UGLL_INSERT.
1635
44702360
PA
16362014-09-22 Pedro Alves <palves@redhat.com>
1637
1638 * breakpoint.c (enum ugll_insert_mode): New enum.
1639 (update_global_location_list)
1640 (update_global_location_list_nothrow): Change parameter type from
1641 boolean to enum ugll_insert_mode. All callers adjusted.
1642
93c6145a
JB
16432014-09-19 Joel Brobecker <brobecker@adacore.com>
1644
1645 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
1646 SystemTap support in GDB.
1647
89a5711c
DB
16482014-09-19 Don Breazeal <donb@codesourcery.com>
1649
1650 * linux-nat.c (linux_handle_extended_wait): Call
1651 linux_ptrace_get_extended_event.
1652 (wait_lwp): Call linux_is_extended_waitstatus.
1653 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
1654 and linux_is_extended_waitstatus.
1655 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
1656 linux_ptrace_get_extended_event.
1657 (linux_ptrace_get_extended_event): New function.
1658 (linux_is_extended_waitstatus): New function.
1659 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
1660 (linux_is_extended_waitstatus): New declarations.
1661
c3b7b696
YQ
16622014-09-19 Yao Qi <yao@codesourcery.com>
1663
1664 * dwarf2read.c (dwarf_decode_lines): Update declaration.
1665 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
1666 comments. Callers update.
1667 (dwarf_decode_lines): Likewise.
1668 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
1669 comments. Skip the line table if 'lowpc' is greater than
1670 'address'. Don't check
1671 dwarf2_per_objfile->has_section_at_zero.
1672
2b4fd423
DE
16732014-09-18 Doug Evans <dje@google.com>
1674
1675 * NEWS: Mention new "producer" attribute of gdb.Symtab.
1676 * python/py-symtab.c (stpy_get_producer): New function.
1677 (symtab_object_getset): Add "producer" attribute.
1678
5e43d467
UW
16792014-09-17 Ulrich Weigand  <uweigand@de.ibm.com>
1680
1681 PR gdb/17384
1682 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
1683 (do_captured_read_memory_integer): Remove.
1684 (safe_read_memory_integer): Use target_read_memory directly instead
1685 of catching errors in do_captured_read_memory_integer.
1686
04e79979
MR
16872014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
1688
1689 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
1690 not gdb/doc.
1691
76aeec5b
SDJ
16922014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1693
1694 * objc-lang.c (find_implementation_from_class): Remove dead code.
1695
2f693f9d
SDJ
16962014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1697
1698 PR cli/7233
1699 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
1700 "fprintf_unfiltered (gdb_stdlog...)".
1701
bb9d5f81
PP
17022014-09-16 Patrick Palka <patrick@parcs.ath.cx>
1703
1704 PR breakpoints/12526
1705 * breakpoint.h (struct watchpoint): New fields val_bitpos and
1706 val_bitsize.
1707 * breakpoint.c (watch_command_1): Use these fields to retain
1708 bitfield information.
1709 (extract_bitfield_from_watchpoint_value): New function.
1710 (watchpoint_check): Use it.
1711 (update_watchpoint): Use it. Optimize the address and length of a
1712 HW watchpoint pointing to a bitfield.
1713 * value.h (unpack_value_bitfield): New prototype.
1714 * value.c (unpack_value_bitfield): Make extern.
1715
05db5edd
ST
17162014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
1717
1718 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
1719 x86-dregs.o.
1720 * gnu-nat.c (inf_threads): New function.
1721 * gnu-nat.h (inf_threads_ftype): New typedef.
1722 (inf_threads): New declaration.
1723 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
1724 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
1725 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
1726 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
1727 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
1728 (i386_gnu_dr_get_control): New functions.
1729 (reg_addr): New structure.
1730 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
1731 i386 debugging register hooks.
1732 * NEWS: Mention this.
1733
5a578da5
OJ
17342014-08-13 Omair Javaid <omair.javaid@linaro.org>
1735
1736 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
1737 vector data transfer instructions.
1738 (arm_record_coproc_data_proc): Updated.
1739
f20f80dd
OJ
17402014-08-13 Omair Javaid <omair.javaid@linaro.org>
1741
1742 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
1743 arm_record_exreg_ld_st_insn.
1744 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
1745 load/store insns.
1746
851f26ae
OJ
17472014-08-13 Omair Javaid <omair.javaid@linaro.org>
1748
1749 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
1750 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
1751 processing instructions.
1752
1e1b6563
OJ
17532014-08-13 Omair Javaid <omair.javaid@linaro.org>
1754
1755 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
1756 for advance SIMD struct ld/st insn.
1757 (thumb2_record_decode_insn_handler): Replace stub handler with
1758 thumb2_record_asimd_struct_ld_st.
1759
60cc5e93
OJ
17602014-08-13 Omair Javaid <omair.javaid@linaro.org>
1761
1762 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
1763 for asimd, vfp and coprocessor insns.
1764 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
1765 and coprocessor insns.
1766 (thumb2_record_coproc_insn): New function.
1767 (thumb2_record_decode_insn_handler): Update coprocessor insns record
1768 handlers.
1769 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
1770 opcode 110 insns.
1771
81219e53
DE
17722014-09-13 Doug Evans <xdje42@gmail.com>
1773
1774 * NEWS: Mention new "queue-signal" command.
1775 * infcmd.c (queue_signal_command): New function.
1776 (_initialize_infcmd): Add new queue-signal command.
1777
d36bf488
DE
17782014-09-13 Doug Evans <xdje42@gmail.com>
1779
1780 * linux-nat.c (wait_lwp): Add debugging printf.
1781 (linux_nat_wait_1): Ditto.
1782
f37f681c
PA
17832014-09-12 Pedro Alves <palves@redhat.com>
1784
1785 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
1786 (create_and_insert_solib_event_breakpoint): New functions.
1787 * breakpoint.h (create_and_insert_solib_event_breakpoint)
1788 (remove_solib_event_breakpoints_at_next_stop): New declarations.
1789 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
1790 (remove_dbx_link_breakpoint): Delete function.
1791 (insert_dbx_link_bpt_in_file): Use
1792 create_and_insert_solib_event_breakpoint instead of
1793 deprecated_insert_raw_breakpoint.
1794 (procfs_wait): Don't check whether we hit __dbx_link here.
1795 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
1796 here.
1797 * solib-irix.c (base_breakpoint): Delete global.
1798 (disable_break): Delete function.
1799 (enable_break): Use create_solib_event_breakpoint
1800 instead of deprecated_insert_raw_breakpoint.
1801 (irix_solib_handle_event): New function.
1802 (irix_solib_create_inferior_hook): Don't run the target or disable
1803 the mapping-complete breakpoint here.
1804 (_initialize_irix_solib): Install irix_solib_handle_event as
1805 so_ops->handle_event hook.
1806
9d9bf2df
EBM
18072014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1808 Ulrich Weigand  <uweigand@de.ibm.com>
1809
1810 PR tdep/17379
1811 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
1812 instead of read_memory_unsigned_integer.
1813
b006a80e
GB
18142014-09-12 Gary Benson <gbenson@redhat.com>
1815
1816 * nat/linux-waitpid.c: Include common-defs.h.
1817 [GDBSERVER]: Add FIXME comment.
1818 [!GDBSERVER]: Don't include defs.h or signal.h.
1819 (linux_debug) [!GDBSERVER]: Remove empty block.
1820
296b1496
GB
18212014-09-12 Gary Benson <gbenson@redhat.com>
1822
1823 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
1824 Don't include defs.h or server.h.
1825
53f81362
GB
18262014-09-12 Gary Benson <gbenson@redhat.com>
1827
1828 * nat/linux-btrace.c: Include common-defs.h.
1829 Don't include defs.h, server.h or gdbthread.h.
1830 * nat/linux-btrace.h (struct target_ops): New forward declaration.
1831
727605ca
GB
18322014-09-12 Gary Benson <gbenson@redhat.com>
1833
1834 * common/agent.c: Include common-defs.h.
1835 Don't include defs.h or server.h.
1836 * common/buffer.c: Likewise.
1837 * common/common-debug.c: Likewise.
1838 * common/common-utils.c: Likewise.
1839 * common/errors.c: Likewise.
1840 * common/filestuff.c: Likewise.
1841 * common/format.c: Likewise.
1842 * common/gdb_vecs.c: Likewise.
1843 * common/print-utils.c: Likewise.
1844 * common/ptid.c: Likewise.
1845 * common/rsp-low.c: Likewise.
1846 * common/signals.c: Likewise.
1847 * common/vec.c: Likewise.
1848 * common/xml-utils.c: Likewise.
1849 * nat/linux-osdata.c: Likewise.
1850 * nat/linux-procfs.c: Likewise.
1851 * nat/linux-ptrace.c: Likewise.
1852 * nat/mips-linux-watch.c: Likewise.
1853 * target/waitstatus.c: Likewise.
1854
361c8ade
GB
18552014-09-12 Tom Tromey <tromey@redhat.com>
1856 Gary Benson <gbenson@redhat.com>
1857
1858 * common/common-regcache.h: New file.
1859 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
1860 * regcache.h: Include common-regcache.h.
1861 (regcache_read_pc): Don't declare.
1862 * regcache.c (get_thread_regcache_for_ptid): New function.
1863 * nat/linux-btrace.c: Don't include regcache.h.
1864 Include common-regcache.h.
1865 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
1866
a01cbb49
TS
18672014-09-11 Thomas Schwinge <thomas@codesourcery.com>
1868
1869 * regcache.h (struct regset): Declare.
1870
98880d46
PA
18712014-09-11 Pedro Alves <palves@redhat.com>
1872
1873 PR gdb/17347
1874 * main.c: Include "infrun.h".
1875 (catch_command_errors, catch_command_errors_const): Wait for the
1876 foreground command to complete.
1877 * top.c (maybe_wait_sync_command_done): New function, factored out
1878 from ...
1879 (maybe_wait_sync_command_done): ... here.
1880 * top.h (maybe_wait_sync_command_done): New declaration.
1881
bd9269f7
GB
18822014-09-11 Tom Tromey <tromey@redhat.com>
1883 Gary Benson <gbenson@redhat.com>
1884
1885 * common/symbol.h: New file.
1886 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
1887 * minsyms.c (find_minimal_symbol_address): New function.
1888 * common/agent.c: Include common/symbol.h.
1889 [!GDBSERVER]: Don't include objfiles.h.
1890 (agent_look_up_symbols): Use find_minimal_symbol_address.
1891
f8c1d06b
GB
18922014-09-11 Gary Benson <gbenson@redhat.com>
1893
1894 * target/target.h (target_stop_ptid, target_continue_ptid):
1895 Declare.
1896 * target.c (target_stop_ptid, target_continue_ptid): New
1897 functions.
1898 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
1899 (agent_run_command): Always use target_stop_ptid and
1900 target_continue_ptid.
1901
721ec300
GB
19022014-09-11 Tom Tromey <tromey@redhat.com>
1903 Gary Benson <gbenson@redhat.com>
1904
1905 * target/target.h: New file.
1906 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
1907 * target.h: Include target/target.h.
1908 (target_read_memory, target_write_memory): Don't declare.
1909 * target.c (target_read_uint32): New function.
1910 * common/agent.c: Include target/target.h.
1911 [!GDBSERVER]: Don't include target.h.
1912 (helper_thread_id): Type changed to uint32_t.
1913 (agent_get_helper_thread_id): Use target_read_uint32.
1914 (agent_run_command): Always use target_read_memory and
1915 target_write_memory.
1916 (agent_capability): Type changed to uint32_t.
1917 (agent_capability_check): Use target_read_uint32.
1918
c5e92cca
GB
19192014-09-11 Gary Benson <gbenson@redhat.com>
1920
1921 * common/common-debug.h (show_debug_regs): Declare.
1922 * common/common-debug.c (show_debug_regs): Define.
1923 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
1924 all uses with show_debug_regs. Replace all uses that considered
1925 debug_hw_points as a multi-value integer with straight boolean
1926 uses.
1927 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
1928 with show_debug_regs.
1929 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
1930 all uses with show_debug_regs.
1931 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
1932 uses with show_debug_regs.
1933
eeef931a
UW
19342014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
1935
1936 * findvar.c (address_from_register): Handle targets requiring
1937 a special conversion routine even for plain pointer types.
1938
8efa9855
UW
19392014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
1940
1941 * rs6000-nat.c (exec_one_dummy_insn): Remove.
1942 (store_register): Do not call exec_one_dummy_insn.
1943
eb479039
JB
19442014-09-10 Joel Brobecker <brobecker@adacore.com>
1945
1946 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
1947 dereference it first. Use value_enclosing_type instead of
1948 value_type.
1949 (ada_array_length): Likewise.
1950
deede10c
JB
19512014-09-10 Joel Brobecker <brobecker@adacore.com>
1952
1953 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
1954 Adjust function implementation and documentation accordingly.
1955 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
1956 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
1957 Update call to ada_value_ptr_subscript.
1958
7828a5f5
JB
19592014-09-10 Joel Brobecker <brobecker@adacore.com>
1960
1961 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
1962 instead of VAL's type.
1963
35782f14
JB
19642014-09-10 Joel Brobecker <brobecker@adacore.com>
1965
1966 * amd64-linux-nat.c: Add <sys/uio.h> #include.
1967
d342a0da
DE
19682014-09-09 Doug Evans <xdje42@gmail.com>
1969
1970 PR guile/17367
1971 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
1972 last parameter to pkg-config, not first.
1973 * configure.ac: Pass --with-guile provided pkg-config path to
1974 GDB_GUILE_PROGRAM_NAMES.
1975 * configure: Regenerate.
1976
b4a3d263
GKB
19772014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
1978
1979 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
1980 Bertazi".
1981
6e466374
MR
19822014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
1983
1984 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
1985 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
1986 the list of sections determining GDB_OSABI_IRIX.
1987
a1ada89a
JH
19882014-09-09 James Hogan <james.hogan@imgtec.com>
1989
1990 * MAINTAINERS (Write After Approval): Add "James Hogan".
1991
86db008d
JH
19922014-09-09 James Hogan <james.hogan@imgtec.com>
1993
1994 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
1995
72fde3df
JB
19962014-09-09 Joel Brobecker <brobecker@adacore.com>
1997
1998 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
1999
92d8d229
DE
20002014-09-08 Doug Evans <xdje42@gmail.com>
2001
2002 PR 17247
2003 * guile.c: #include <signal.h>.
2004 (_initialize_guile): Block SIGCHLD while initializing Guile.
2005
2006 Replaces the following, which is reverted.
2007
2008 2014-07-26 Doug Evans <xdje42@gmail.com>
2009
2010 PR 17185
2011 * configure.ac: Add check for header gc/gc.h.
2012 Add check for function setenv.
2013 * configure: Regenerate.
2014 * config.in: Regenerate.
2015 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
2016
d81412aa
DE
20172014-09-08 Doug Evans <xdje42@gmail.com>
2018
2019 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
2020 with named constant. Fix style of pointer comparison.
2021 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
2022
a9f116cb
GKB
20232014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
2024
2025 PR gdb/17035
2026 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
2027 decide whether we display the command on "show user".
2028 * cli/cli-script.c (show_user_1): Only verify cmdlines after
2029 printing command name.
2030 * cli/cli-decode.h (cli_user_command_p): Declare new function.
2031 * cli/cli-decode.c (cli_user_command_p): Create helper function
2032 to verify whether cmd_list_element is a user-defined command.
2033
c75bd3a2
JK
20342014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2035
2036 PR python/17355
2037 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
2038 Fix goto out of TRY_CATCH.
2039
faa42425 20402014-09-06 Doug Evans <xdje42@gmail.com>
1a52a81c 2041 Tom Tromey <tromey@redhat.com>
faa42425
DE
2042
2043 PR 15276
2044 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
2045 $_any_caller_matches.
2046 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
2047 * python/lib/gdb/function/caller_is.py: New file.
2048
0d41ba00
DE
20492014-09-06 Doug Evans <xdje42@gmail.com>
2050
2051 * infcmd.c (program_info): Fix typo.
2052
474ca4f6
SDJ
20532014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
2054
2055 PR gdb/17235
2056 * stap-probe.c (stap_parse_single_operand): Delete unused variable
2057 'number'. New variable 'has_digit'. Rewrite code to deal with
2058 subexpressions on SDT probes.
2059
ebf13736
PA
20602014-09-04 Pedro Alves <palves@redhat.com>
2061
2062 * c-exp.y (parse_number): Skip handling base-switching prefixes if
2063 the input is only one character long.
2064
eb0b0463
SDJ
20652014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
2066
2067 PR fortran/17237
2068 * f-valprint.c (f_val_print): Specify the correct print option to
2069 use when printing integer values.
2070
5ee44bfa
GB
20712014-09-04 Gary Benson <gbenson@redhat.com>
2072
2073 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
2074 Remove code to cope with LWPs wrapped as PIDs.
2075 Add assertions to ensure no wrapped LWPs are passed.
2076
4875ffdb
PA
20772014-09-04 Pedro Alves <palves@redhat.com>
2078
2079 * value.c (value_ranges_copy_adjusted): New function, factored out
2080 from ...
2081 (value_contents_copy_raw): ... here.
2082 (unpack_value_bits_as_long_1): Rename back to ...
2083 (unpack_bits_as_long): ... this. Remove 'original_value' and
2084 'result' parameters. Change return type to LONGEST.
2085 (unpack_value_bits_as_long): Delete.
2086 (unpack_value_field_as_long_1): Delete.
2087 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
2088 (unpack_value_bitfield): New function.
2089 (value_field_bitfield): Reimplement using unpack_value_bitfield.
2090 (value_fetch_lazy): Use unpack_value_bitfield.
2091 * value.h (unpack_value_bits_as_long): Delete declaration.
2092
5f3b99cf
SS
20932014-09-03 Sasha Smundak <asmundak@google.com>
2094
2095 * python/py-frame.c (frapy_read_register): New function.
2096
ac740bc7
JH
20972014-09-03 James Hogan <james.hogan@imgtec.com>
2098
2099 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
2100 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
2101
7d793aa9
SDJ
21022014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
2103
2104 PR python/16699
2105 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
2106 function.
2107 (add_cmd): Set "completer_handle_brkchars" to NULL.
2108 * cli/cli-decode.h (struct cmd_list_element)
2109 <completer_handle_brkchars>: New field.
2110 * command.h (completer_ftype_void): New typedef.
2111 (set_cmd_completer_handle_brkchars): New prototype.
2112 * completer.c (set_gdb_completion_word_break_characters): New
2113 function.
2114 (complete_line_internal): Call "completer_handle_brkchars"
2115 callback from command.
2116 * completer.h: Include "command.h".
2117 (set_gdb_completion_word_break_characters): New prototype.
2118 * python/py-cmd.c (cmdpy_completer_helper): New function.
2119 (cmdpy_completer_handle_brkchars): New function.
2120 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
2121 (cmdpy_init): Set completer_handle_brkchars to
2122 cmdpy_completer_handle_brkchars.
2123
97ea6506
GB
21242014-09-03 Gary Benson <gbenson@redhat.com>
2125
2126 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
2127 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
2128 Loop conditions changed to equivalent form.
2129 (struct x86_debug_reg_state): Updated dr_ref_count comment.
2130 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
2131 ALL_DEBUG_ADDRESS_REGISTERS.
2132
d1437815
JB
21332014-09-03 Joel Brobecker <brobecker@adacore.com>
2134
2135 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
2136 description fix.
2137
9b94fcf1
DE
21382014-09-02 Doug Evans <dje@google.com>
2139
2140 * typeprint.c (find_global_typedef): Fix comment.
2141
df7e5265
GB
21422014-09-02 Gary Benson <gbenson@redhat.com>
2143
2144 * i386-nat.h: Renamed as...
2145 * x86-nat.h: New file. All type, function and variable name
2146 prefixes changed from "i386_" to "x86_". All references updated.
2147 * i386-nat.c: Renamed as...
2148 * x86-nat.c: New file. All type, function and variable name
2149 prefixes changed from "i386_" to "x86_". All references updated.
2150 * common/i386-xstate.h: Renamed as...
2151 * common/x86-xstate.h: New file. All type, function and variable
2152 name prefixes changed from "i386_" to "x86_". All references
2153 updated.
2154 * nat/i386-cpuid.h: Renamed as...
2155 * nat/x86-cpuid.h: New file. All type, function and variable name
2156 prefixes changed from "i386_" to "x86_". All references updated.
2157 * nat/i386-gcc-cpuid.h: Renamed as...
2158 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
2159 name prefixes changed from "i386_" to "x86_". All references
2160 updated.
2161 * nat/i386-dregs.h: Renamed as...
2162 * nat/x86-dregs.h: New file. All type, function and variable name
2163 prefixes changed from "i386_" to "x86_". All references updated.
2164 * nat/i386-dregs.c: Renamed as...
2165 * nat/x86-dregs.c: New file. All type, function and variable name
2166 prefixes changed from "i386_" to "x86_". All references updated.
2167
1c3569d4
MR
21682014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
2169
2170 * varobj.c (_initialize_varobj): Move to the end of file.
2171
ff55e1b5
GB
21722014-08-29 Gary Benson <gbenson@redhat.com>
2173
2174 * common/common-exceptions.h: New file.
2175 * common/common-exceptions.c: Likewise.
2176 * Makefile.in (SFILES): Add common/common-exceptions.c.
2177 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
2178 (COMMON_OBS): Add common-exceptions.o.
2179 (common-exceptions.o): New rule.
2180 * exceptions.h (common-exceptions.h): Include.
2181 (gdb_setjmp.h): Do not include.
2182 (return_reason): Moved to common-exceptions.h.
2183 (enum return_reason): Likewise.
2184 (RETURN_MASK): Likewise.
2185 (typedef return_mask): Likewise.
2186 (enum errors): Likewise.
2187 (struct gdb_exception): Likewise.
2188 (exceptions_state_mc_init): Likewise.
2189 (exceptions_state_mc_action_iter): Likewise.
2190 (exceptions_state_mc_action_iter_1): Likewise.
2191 (TRY_CATCH): Likewise.
2192 (throw_exception): Likewise.
2193 (throw_verror): Likewise.
2194 (throw_vquit): Likewise.
2195 (throw_error): Likewise.
2196 (throw_quit): Likewise.
2197 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
2198 (enum catcher_action): Likewise.
2199 (struct catcher): Likewise.
2200 (current_catcher): Likewise.
2201 (catcher_list_size): Likewise.
2202 (exceptions_state_mc_init): Likewise.
2203 (catcher_pop): Likewise.
2204 (exceptions_state_mc): Likewise.
2205 (exceptions_state_mc_action_iter): Likewise.
2206 (exceptions_state_mc_action_iter_1): Likewise.
2207 (throw_exception): Likewise.
2208 (exception_messages): Likewise.
2209 (exception_messages_size): Likewise.
2210 (throw_it): Likewise.
2211 (throw_verror): Likewise.
2212 (throw_vquit): Likewise.
2213 (throw_error): Likewise.
2214 (throw_quit): Likewise.
2215 (prepare_to_throw_exception): New function.
2216
e9bcb658
GB
22172014-08-29 Gary Benson <gbenson@redhat.com>
2218
2219 * common/gdb_setjmp.h: New file.
2220 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
2221 * configure.ac: Move sigsetjmp check...
2222 * common/common.m4: ...here.
2223 * configure: Regenerate.
2224 * cp-support.c (SIGJMP_BUF): Delete.
2225 (SIGSETJMP): Likewise.
2226 (SIGLONGJMP): Likewise.
2227 * exceptions.h (gdb_setjmp.h): Include.
2228 (setjmp.h): Do not include.
2229 (EXCEPTIONS_SIGJMP_BUF): Delete.
2230 (EXCEPTIONS_SIGSETJMP): Likewise.
2231 (EXCEPTIONS_SIGLONGJMP): Likewise.
2232 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
2233 from gdb_setjmp.h.
2234 * exceptions.c: Likewise.
2235
e3180625
GB
22362014-08-29 Gary Benson <gbenson@redhat.com>
2237
2238 * cleanups.h: Moved to...
2239 * common/cleanups.h: New file.
2240 * cleanups.c: Moved to...
2241 * common/cleanups.c: New file. Include common-defs.h and
2242 cleanups.h. Do not include defs.h.
2243 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
2244 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
2245 (cleanups.o): New rule.
2246
e3d6ba5d
GB
22472014-08-29 Gary Benson <gbenson@redhat.com>
2248
2249 * common/errors.h (internal_warning): New declaration.
2250 (internal_vwarning): Likewise.
2251 * common/errors.c (internal_warning): New function.
2252 * utils.h (internal_warning): Don't declare.
2253 (internal_vwarning): Likewise.
2254 * utils.c (internal_warning): Removed.
2255
075c7033
GB
22562014-08-29 Gary Benson <gbenson@redhat.com>
2257
2258 * main.c (captured_main): Use warning during startup.
2259 Prefix startup warning messages with command name.
2260
91b35fd0
GB
22612014-08-29 Gary Benson <gbenson@redhat.com>
2262
2263 * main.c (captured_main): Handle usage errors with error.
2264
b1ec390e
GB
22652014-08-29 Gary Benson <gbenson@redhat.com>
2266
2267 * go32-nat.c (go32_create_inferior): Replace a fprintf/
2268 exit pair with a call to error. Wrap the message with _().
2269
fd0ef3dd
GB
22702014-08-29 Gary Benson <gbenson@redhat.com>
2271
2272 * main.c (captured_main): Replace a fprintf/exit
2273 pair with a call to error. Wrap the message with _().
2274
e0e6bcab
GB
22752014-08-29 Gary Benson <gbenson@redhat.com>
2276
2277 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
2278 pairs with calls to error. Wrap the message with _().
2279
0d2f5c07
GB
22802014-08-29 Gary Benson <gbenson@redhat.com>
2281
2282 * utils.c (vwarning): Protect calls to target_terminal_ours
2283 and wrap_here.
2284
5df43998
GB
22852014-08-29 Gary Benson <gbenson@redhat.com>
2286
2287 * exceptions.c (print_flush): Protect calls to
2288 target_terminal_ours and wrap_here.
2289
2437fd32
GB
22902014-08-29 Gary Benson <gbenson@redhat.com>
2291
2292 * utils.h (filtered_printing_initialized): New declaration.
2293 * utils.c (abort_with_message): New function.
2294 (internal_vproblem): Use abort_with_message for first level
2295 recursive internal problems, and if gdb_stderr is not set up.
2296 Protect calls to target_terminal_ours, begin_line and query.
2297
f1f58506
DE
22982014-08-28 Doug Evans <dje@google.com>
2299
2300 * symtab.c (in_prologue): Move definition to better spot.
2301 (skip_prologue_using_sal): Ditto.
2302
aab2f208
DE
23032014-08-28 Doug Evans <dje@google.com>
2304
2305 * symtab.c (find_function_start_sal): Move definition to better spot.
2306
6b65d1b6
YQ
23072014-08-28 Yao Qi <yao@codesourcery.com>
2308
2309 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
2310 found_stack_adjust in forward scan. Remove condition check
2311 on found_stack_adjust which is always true. Indent the code.
2312
a1b34d15
YQ
23132014-08-28 Yao Qi <yao@codesourcery.com>
2314
2315 * dwarf2read.c (dwarf_decode_lines): Update declaration.
2316 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
2317 (dwarf_decode_lines): Remove argument
2318 want_line_info. Remove condition check on want_line_info.
2319 Callers update.
2320
d5962de5
DE
23212014-08-27 Doug Evans <dje@google.com>
2322
2323 * dwarf2read.c (dwarf_record_line): Fix typo.
2324
9b139002
SDJ
23252014-08-27 Patrick Palka <patrick@parcs.ath.cx>
2326
2327 * target.h (struct target_ops::to_terminal_save_ours): Remove
2328 declaration.
2329 (target_terminal_save_ours): Remove macro.
2330 * target-delegates.c: Regenerate.
2331 * inf-child.c (inf_child_target): Don't set the nonexistent
2332 field to_terminal_save_ours.
2333 * inferior.h (child_terminal_save_ours): Remove declaration.
2334 * terminal.h (gdb_save_tty_state): New declaration.
2335 * inflow.c (child_terminal_save_ours): Rename to ...
2336 (gdb_save_tty_state): ... this.
2337 * tui/tui.c: Include terminal.h.
2338 (tui_enable): Use gdb_save_tty_state instead of
2339 target_terminal_save_ours.
2340 (tui_disable): Likewise.
2341
9debeba0
DE
23422014-08-25 Doug Evans <dje@google.com>
2343
2344 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
2345 Pass NULL instead of 0 for context pointer.
2346
428fc5fc
YQ
23472014-08-25 Yao Qi <yao@codesourcery.com>
2348
2349 * dwarf2read.c: Fix grammatical error.
2350
cdc07690
YQ
23512014-08-24 Yao Qi <yao@codesourcery.com>
2352
2353 * dwarf2read.c (scan_partial_symbols): Update comments.
2354 Rename argument 'need_pc' with 'set_addrmap'.
2355 (add_partial_namespace): Rename argument 'need_pc' with
2356 'set_addrmap'.
2357 (add_partial_module): Likewise.
2358 (add_partial_subprogram): Likewise. Update comments.
2359 (dwarf2_name): Fix typo.
2360
a05a36a5
DE
23612014-08-22 Doug Evans <dje@google.com>
2362
2363 PR 17276
2364 * dwarf2read.c (dwarf_record_line_p): New function.
2365 (dwarf_decode_lines_1): Ignore subsequent line number entries
2366 for the same line if any entry had a non-zero discriminator.
2367
252a6764
DE
23682014-08-22 Doug Evans <dje@google.com>
2369
2370 * buildsym.h (record_line_ftype): New typedef.
2371 (record_line): Use it.
2372 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
2373 (dwarf_decode_lines_1): Call them.
2374
510db052
YQ
23752014-08-22 Yao Qi <yao@codesourcery.com>
2376
2377 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
2378 (ctf_end): Remove code.
2379
22fd09ae
JK
23802014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2381
2382 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
2383 (linux_make_corefile_notes): call update_thread_list, protected against
2384 exceptions.
2385
656e8868
PA
23862014-08-21 Pedro Alves <palves@redhat.com>
2387
2388 * infcmd.c (attach_command): Remove comment.
2389
de589d04
WN
23902014-08-21 Bin Cheng <bin.cheng@arm.com>
2391
2392 * aarch64-linux-nat.c (dr_changed_t): Change the type from
2393 unsigned LONGEST to ULONGEST.
2394
2a31c623
PA
23952014-08-20 Pedro Alves <palves@redhat.com>
2396
2397 * Makefile.in (check-read1): New rule.
2398
d36430db
JB
23992014-08-20 Joel Brobecker <brobecker@adacore.com>
2400
2401 * value.c (value_from_contents_and_address): Strip resolved_type's
2402 typedef layers before checking its TYPE_DATA_LOCATION.
2403
000339af
PA
24042014-08-20 Pedro Alves <palves@redhat.com>
2405
2406 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
2407
5f52445b
YQ
24082014-08-20 Yao Qi <yao@codesourcery.com>
2409
2410 * amd64-tdep.c (amd64_classify): Add a blank line after the
2411 example. Move "*/" to a new line.
2412 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
2413 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
2414 * dwarf2read.c (psymtab_include_file_name): Likewise.
2415
9a0dc9e3
PA
24162014-08-19 Andrew Burgess <aburgess@broadcom.com>
2417 Pedro Alves <palves@redhat.com>
2418
2419 PR symtab/14604
2420 PR symtab/14605
2421 * ada-lang.c (coerce_unspec_val_to_type): Use
2422 value_contents_copy_raw.
2423 * ada-valprint.c (val_print_packed_array_elements): Adjust.
2424 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
2425 * cp-valprint.c (cp_print_value_fields): Let the common printing
2426 code handle optimized out values.
2427 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
2428 * d-valprint.c (dynamic_array_type): Use
2429 value_bits_any_optimized_out.
2430 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
2431 check_any_valid fields.
2432 (check_pieced_value_bits): Delete and inline ...
2433 (check_pieced_synthetic_pointer): ... here.
2434 (check_pieced_value_validity): Delete.
2435 (check_pieced_value_invalid): Delete.
2436 (pieced_value_funcs): Remove check_validity and check_any_valid
2437 fields.
2438 (read_pieced_value): Use mark_value_bits_optimized_out.
2439 (write_pieced_value): Switch to use
2440 mark_value_bytes_optimized_out.
2441 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
2442 of assuming the whole value is optimized out.
2443 * findvar.c (read_frame_register_value): Remove special handling
2444 of optimized out registers.
2445 (value_from_register): Use mark_value_bytes_optimized_out.
2446 * frame-unwind.c (frame_unwind_got_optimized): Use
2447 mark_value_bytes_optimized_out.
2448 * jv-valprint.c (java_value_print): Adjust.
2449 (java_print_value_fields): Let the common printing code handle
2450 optimized out values.
2451 * mips-tdep.c (mips_print_register): Remove special handling of
2452 optimized out registers.
2453 * opencl-lang.c (lval_func_check_validity): Delete.
2454 (lval_func_check_any_valid): Delete.
2455 (opencl_value_funcs): Remove check_validity and check_any_valid
2456 fields.
2457 * p-valprint.c (pascal_object_print_value_fields): Let the common
2458 printing code handle optimized out values.
2459 * stack.c (read_frame_arg): Remove special handling of optimized
2460 out values. Fetch both VAL and ENTRYVAL before comparing
2461 contents. Adjust to value_available_contents_eq rename.
2462 * valprint.c (valprint_check_validity)
2463 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
2464 (val_print_array_elements): Adjust.
2465 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
2466 (value_bits_any_optimized_out): New function.
2467 (value_entirely_covered_by_range_vector): New function, factored
2468 out from value_entirely_unavailable.
2469 (value_entirely_unavailable): Reimplement.
2470 (value_entirely_optimized_out): New function.
2471 (insert_into_bit_range_vector): New function, factored out from
2472 mark_value_bits_unavailable.
2473 (mark_value_bits_unavailable): Reimplement.
2474 (struct ranges_and_idx): New struct.
2475 (find_first_range_overlap_and_match): New function, factored out
2476 from value_available_contents_bits_eq.
2477 (value_available_contents_bits_eq): Rename to ...
2478 (value_contents_bits_eq): ... this. Check both unavailable
2479 contents and optimized out contents.
2480 (value_available_contents_eq): Rename to ...
2481 (value_contents_eq): ... this.
2482 (allocate_value_lazy): Remove reference to the old optimized_out
2483 boolean.
2484 (allocate_optimized_out_value): Use
2485 mark_value_bytes_optimized_out.
2486 (require_not_optimized_out): Adjust to check whether the
2487 optimized_out vec is empty.
2488 (ranges_copy_adjusted): New function, factored out from
2489 value_contents_copy_raw.
2490 (value_contents_copy_raw): Also copy the optimized out ranges.
2491 Assert the destination ranges aren't optimized out.
2492 (value_contents_copy): Update comment, remove call to
2493 require_not_optimized_out.
2494 (value_contents_equal): Adjust to check whether the optimized_out
2495 vec is empty.
2496 (set_value_optimized_out, value_optimized_out_const): Delete.
2497 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
2498 New functions.
2499 (value_entirely_optimized_out, value_bits_valid): Delete.
2500 (value_copy): Take a VEC copy of the 'optimized_out' field.
2501 (value_primitive_field): Remove special handling of optimized out.
2502 (value_fetch_lazy): Assert that lazy values have no unavailable
2503 regions. Use value_bits_any_optimized_out. Remove some special
2504 handling for optimized out values.
2505 * value.h: Add intro comment about <optimized out> and
2506 <unavailable>.
2507 (struct lval_funcs): Remove check_validity and check_any_valid
2508 fields.
2509 (set_value_optimized_out, value_optimized_out_const): Remove.
2510 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
2511 New declarations.
2512 (value_bits_any_optimized_out): New declaration.
2513 (value_bits_valid): Delete declaration.
2514 (value_available_contents_eq): Rename to ...
2515 (value_contents_eq): ... this, and extend comments.
2516
6694c411
JK
25172014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2518
2519 Fix -fsanitize=address on unreadable inferior strings.
2520 * valprint.c (val_print_string): Fix access before BUFFER.
2521
89a1c21a
SM
25222014-08-19 Simon Marchi <simon.marchi@ericsson.com>
2523
2524 * target.c (target_struct_size): Remove.
2525 (target_struct_allocsize): Remove.
2526 (DEFAULT_ALLOCSIZE): Remove.
2527 (target_ops_p): New typedef.
2528 (DEF_VEC_P (target_ops_p)): New vector type.
2529 (target_structs): Change type to VEC (target_ops_p).
2530 (add_target_with_completer): Replace "push" code by VEC_safe_push.
2531 (find_default_run_target): Rewrite for loop following changes to
2532 target_structs.
2533
cb417230
JB
25342014-08-19 Joel Brobecker <brobecker@adacore.com>
2535
2536 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
2537 Adjust code accordingly. Adjust function description comment.
2538
817e0957
YQ
25392014-08-19 Yao Qi <yao@codesourcery.com>
2540
2541 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
2542 types.
2543
2974be62
AM
25442014-08-19 Alan Modra <amodra@gmail.com>
2545
2546 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
2547 * config.in: Regenerate.
2548 * configure: Regenerate.
2549
34abf635
GB
25502014-08-19 Tom Tromey <tromey@redhat.com>
2551 Gary Benson <gbenson@redhat.com>
2552
2553 * common/common-debug.h: New file.
2554 * common/common-debug.c: Likewise.
2555 * debug.c: Likewise.
2556 * Makefile.in (SFILES): Add common/common-debug.c.
2557 (HFILES_NO_SRCDIR): Add common/common-debug.h.
2558 (COMMON_OBS): Add common-debug.o and debug.o.
2559 (common-debug.o): New rule.
2560 * common/common-defs.h: Include common-debug.h.
2561 * common/agent.c (debug_agent_printf): New function.
2562 (DEBUG_AGENT): Redefine.
2563 * nat/i386-dregs.c (debug_printf): Undefine.
2564
f6e94d78
GB
25652014-08-19 Gary Benson <gbenson@redhat.com>
2566
2567 * common/common-defs.h: Include print-utils.h.
2568 * utils.h: Do not include print-utils.h.
2569
9239eeab
GB
25702014-08-19 Tom Tromey <tromey@redhat.com>
2571 Gary Benson <gbenson@redhat.com>
2572
2573 * common/common-types.h: New file.
2574 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
2575 * common/common-defs.h: Include common-types.h.
2576 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
2577 (ULONGEST): Remove.
2578
ef87c8bb
GB
25792014-08-19 Tom Tromey <tromey@redhat.com>
2580 Gary Benson <gbenson@redhat.com>
2581
2582 * common/errors.h: New file.
2583 * common/errors.c: Likewise.
2584 * Makefile.in (SFILES): Add common/errors.c.
2585 (HFILES_NO_SRCDIR): Add common/errors.h.
2586 (COMMON_OBS): Add errors.o.
2587 (errors.o): New rule.
2588 * common/common-defs.h: Include errors.h.
2589 * utils.h (perror_with_name, error, verror, warning, vwarning):
2590 Don't declare.
2591 * common/common-utils.h: (malloc_failure, internal_error):
2592 Likewise.
2593
196a707b
GB
25942014-08-19 Gary Benson <gbenson@redhat.com>
2595
2596 * utils.c (internal_vproblem): Always print the message.
2597
ded4fc8f
DE
25982014-08-18 Doug Evans <dje@google.com>
2599
2600 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
2601
950c97d8
JB
26022014-08-18 Joel Brobecker <brobecker@adacore.com>
2603
2604 * ada-typeprint.c (type_is_full_subrange_of_target_type):
2605 Return 0 if TYPE is dynamic.
2606 (print_range): Add handling of dynamic ranges.
2607
3cdcd0ce
JB
26082014-08-18 Keven Boell <keven.boell@intel.com>
2609 Joel Brobecker <brobecker@adacore.com>
2610
2611 * gdbtypes.h (struct main_type): Add field "data_location".
2612 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
2613 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
2614 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
2615 a dynamic data location.
2616 (resolve_dynamic_type): Add DW_AT_data_location handling.
2617 (copy_recursive, copy_type): Copy the data_location information
2618 when present.
2619 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
2620 * value.c (value_from_contents_and_address): Add
2621 DW_AT_data_location handling.
2622
08412b07
JB
26232014-08-18 Keven Boell <keven.boell@intel.com>
2624 Joel Brobecker <brobecker@adacore.com>
2625
2626 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
2627 field "get_object_address".
2628 * dwarf2expr.c (execute_stack_op): Add handling for
2629 DW_OP_push_object_address.
2630 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
2631 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
2632 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
2633 (dwarf_expr_get_obj_addr): New function.
2634 (dwarf_expr_ctx_funcs): Add get_object_address field.
2635 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
2636 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
2637 (dwarf2_evaluate_property): Add parameter "address". Use it.
2638 (needs_get_obj_addr): New function.
2639 (needs_frame_ctx_funcs): Add get_object_address field.
2640 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
2641 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
2642 (resolve_dynamic_array): Likewise.
2643
84754697
JB
26442014-08-18 Joel Brobecker <brobecker@adacore.com>
2645
2646 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
2647 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
2648 fixed value for records and unions for which some GNAT encodings
2649 are present.
2650
da5c522f
JB
26512014-08-18 Joel Brobecker <brobecker@adacore.com>
2652
2653 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
2654 rewrite to avoid "else if" and "else" constructs. Should be
2655 a no-op in practice.
2656
0d72a7c3
JB
26572014-08-18 Joel Brobecker <brobecker@adacore.com>
2658
2659 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
2660 of lexical block.
2661
e66d4446
SC
26622014-08-15 Siva Chandra Reddy <sivachandra@google.com>
2663
2664 PR c++/17132
2665 * eval.c: Update all calls to find_overload_match.
2666 * valarith.c: Likewise.
2667 (value_user_defined_cpp_op, value_user_defined_op): New
2668 argument NOSIDE. Update all callers.
2669 * valops.c (find_overload_match): New argument NOSIDE.
2670 * value.h (find_overload_match): Update signature.
2671
940df408
SC
26722014-08-15 Siva Chandra Reddy <sivachandra@google.com>
2673
2674 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
2675 'items' methods instead of 'iteritems' method on dictionaries.
2676
699ca60a
DE
26772014-08-15 Doug Evans <dje@google.com>
2678
2679 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
2680 closer to use.
2681
37780ee5
DE
26822014-08-15 Doug Evans <dje@google.com>
2683
2684 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
2685
0ad93d4f
DE
26862014-08-15 Doug Evans <dje@google.com>
2687
2688 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
2689
20d8c372
DE
26902014-08-15 Doug Evans <dje@google.com>
2691
2692 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
2693 unused.
2694
cb039ba4
EZ
26952014-08-15 Eli Zaretskii <eliz@gnu.org>
2696
2697 * dcache.h: Include target.h, to avoid compile time warnings.
2698
eb7a547a
JB
26992014-08-15 Joel Brobecker <brobecker@adacore.com>
2700
2701 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
2702 frame_info" partial declaration.
2703 * gdbarch.h: Regenerate.
2704
783cecc8
YQ
27052014-08-15 Yao Qi <yao@codesourcery.com>
2706
2707 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
2708 Add parameter 'decode_for_pst_p'. Callers update.
2709
65c749e7
YQ
27102014-08-13 Yao Qi <yao@codesourcery.com>
2711
2712 PR build/17104
2713 * configure.ac: Use local variable 'pos'.
2714 * configure: Regenerated.
2715
d769e349
DE
27162014-08-11 Doug Evans <dje@google.com>
2717
2718 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
2719 message, it is redundant with "Reading symbols from ..." message.
2720
24f1235e
DE
27212014-08-10 Doug Evans <xdje42@gmail.com>
2722
2723 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
2724
dcd2e6ef
YQ
27252014-08-09 Yao Qi <yao@codesourcery.com>
2726
2727 PR remote/9053
2728 * remote.c (remote_xfer_partial): Remove dead code.
2729
070bdf0b
AA
27302014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2731
2732 * ia64-linux-tdep.c: Include "regset.h".
2733 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
2734 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
2735 (ia64_linux_supply_fpregset): New function.
2736 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
2737 (ia64_linux_regset_from_core_section): New function.
2738 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
2739 method.
2740
08f9f542
AA
27412014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2742
2743 * m68klinux-tdep.c: Include "regset.h".
2744 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
2745 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
2746 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
2747 (m68k_linux_regset_from_core_section): New function.
2748 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
2749 method.
2750
8f1cee41
AA
27512014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2752
2753 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
2754 function. Move logic to...
2755 (tilegx_linux_regmap): ... this new register map.
2756 (tilegx_linux_regset): Refer to register map, replace supply
2757 method by regcache_supply_regset, and add collect method.
2758 * tilegx-tdep.h (enum tilegx_regnum): New enum value
2759 TILEGX_FIRST_EASY_REGNUM.
2760
c5741217
AA
27612014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2762
2763 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
2764 that calls regcache_supply_regset and handles the EPC register
2765 separately. Move main logic to...
2766 (score7_linux_gregmap): ... this new register map.
2767 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
2768 (score7_linux_gregset): Refer to register map. Add collect method.
2769 (score7_linux_regset_from_core_section): Replace
2770 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
2771 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
2772 (struct regset): Delete unused forward declaraction.
2773 (struct pt_regs): Delete structure definition.
2774 (elf_gregset_t): Delete typedef.
2775
81580573
AA
27762014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2777
2778 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
2779 (nios2_core_regset): Add collect method.
2780
ba199d7d
AA
27812014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2782
2783 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
2784 platform-independent and don't write to read-only input buffer.
2785 (m32r_linux_collect_gregset): New function.
2786 (m32r_linux_gregset): Add collect method.
2787
0006a9da
AA
27882014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2789
2790 * hppa-linux-tdep.c (greg_map): Rename to...
2791 (hppa_linux_gregmap): ... this. Also convert to
2792 regcache_map_entry format.
2793 (hppa_linux_supply_regset): Delete function.
2794 (hppa_linux_supply_fpregset): Delete function. Move logic to...
2795 (hppa_linux_fpregmap): ... this new register map.
2796 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
2797 register map, replace supply method by regcache_supply_regset, and
2798 add collect method regcache_collect_regset.
2799
901e1b23
AA
28002014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2801
2802 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
2803 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
2804 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
2805 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
2806 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
2807 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
2808 (frv_linux_supply_gregset): Replace main logic by call to
2809 regcache_supply_regset, but keep clearing gr32-gr63.
2810 (frv_linux_supply_fpregset): Delete function.
2811 (frv_linux_gregset): Refer to appropriate register map and add
2812 regcache_collect_regset as the collect method.
2813 (frv_linux_fpregset): Likewise. Also exchange the supply method
2814 by regcache_supply_regset.
2815
1d6e7555
AA
28162014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2817
2818 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
2819 by call to alpha_supply_int_regs.
2820 (alpha_linux_collect_gregset): New function.
2821 (alpha_linux_supply_fpregset): Replace logic by call to
2822 alpha_supply_fp_regs.
2823 (alpha_linux_collect_fpregset): New function.
2824 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
2825
d4d793bf
AA
28262014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2827
2828 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
2829 by call to regcache_collect_regset.
2830 (supply_gregset, supply_fpregset): Call regcache_supply_regset
2831 instead of aarch64_linux_supply_gregset/_fpregset.
2832 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
2833 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
2834 header file instead.
2835 (aarch64_linux_supply_gregset, supply_gregset_from_core)
2836 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
2837 functions. Move logic to ...
2838 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
2839 register maps.
2840 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
2841 refer to new register maps, replace *_regset_from_core by
2842 regcache_supply_regset, and also use regcache_collect_regset.
2843 * aarch64-linux-tdep.h: Include "regset.h".
2844 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
2845 Delete prototypes.
2846 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
2847 macros, moved from C source file.
2848 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
2849 variable declarations.
2850
99b7da5d
AA
28512014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2852
2853 * s390-linux-nat.c: Include "regset.h".
2854 (regmap_gregset): Delete macro.
2855 (s390_64_regmap_gregset): New register map for
2856 regcache_supply/_collect_regset.
2857 (s390_64_gregset): New regset.
2858 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
2859 (regmap_fpregset): Delete macro.
2860 (s390_native_supply, s390_native_collect): Delete functions.
2861 (supply_gregset, fill_gregset): Replace s390-specific regmap
2862 handling by a call to regcache_supply/_collect_regset.
2863 (supply_fpregset, fill_fpregset): Call regcache_supply/
2864 _collect_regset instead of s390_native_supply/_collect.
2865 (fetch_regset, store_regset): Likewise. Also change the last
2866 parameter to a regset instead of a regmap.
2867 (s390_linux_fetch_inferior_registers)
2868 (390_linux_store_inferior_registers): Adjust last parameter in
2869 calls to fetch_regset and store_regset.
2870 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
2871 (s390_gregmap): ... this. Also make static const and convert to
2872 regcache_map_entry format.
2873 (s390x_regmap_gregset): Delete.
2874 (s390_regmap_fpregset): Rename to...
2875 (s390_fpregmap): ... this. Make static const and convert to
2876 regcache_map_entry format.
2877 (s390_regmap_upper, s390_regmap_last_break)
2878 (s390x_regmap_last_break, s390_regmap_system_call)
2879 (s390_regmap_tdb): Likewise.
2880 (s390_supply_regset, s390_collect_regset): Remove functions.
2881 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
2882 s390_supply_regset.
2883 (s390_gregset, s390_fpregset, s390_upper_regset)
2884 (s390_last_break_regset, s390x_last_break_regset)
2885 (s390_system_call_regset, s390_tdb_regset): Make global and
2886 replace s390_supply/_collect_regset by regcache_supply/
2887 _collect_regset.
2888 (s390x_gregset): Delete.
2889 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
2890 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
2891 (s390_regmap_fpregset, s390_regmap_last_break)
2892 (s390x_regmap_last_break, s390_regmap_system_call)
2893 (s390_regmap_tdb): Delete global variable declarations.
2894 (s390_gregset, s390_fpregset, s390_last_break_regset)
2895 (s390x_last_break_regset, s390_system_call_regset)
2896 (s390_tdb_regset): New global variable declarations.
2897
0b309272
AA
28982014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2899
2900 * regcache.c: Include "regset.h".
2901 (regcache_transfer_regset): New local function.
2902 (regcache_supply_regset, regcache_collect_regset): New functions.
2903 * regcache.h (struct regcache_map_entry): New structure.
2904 (REGCACHE_MAP_SKIP): New enum value.
2905 (regcache_supply_regset, regcache_collect_regset): New prototypes.
2906
7fefa8d7
AA
29072014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2908
2909 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
2910 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
2911 (ppc_linux_collect_gregset ): Likewise.
2912 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
2913 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
2914 (ppc_collect_vrregset): Likewise.
2915 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
2916 Likewise.
2917
96c4f946
YQ
29182014-08-07 Yao Qi <yao@codesourcery.com>
2919
2920 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
2921 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
2922 * remote.c (remote_read_bytes): Likewise.
2923
fffbe6a8
YQ
29242014-08-07 Yao Qi <yao@codesourcery.com>
2925
2926 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
2927
5ee8a82c
YQ
29282014-08-07 Yao Qi <yao@codesourcery.com>
2929
2930 PR remote/17230
2931 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
2932 TARGET_XFER_OK instead of 0.
2933
bb974a24
GB
29342014-08-07 Gary Benson <gbenson@redhat.com>
2935
2936 * common/common-defs.h: Include errno.h.
2937 * defs.h: Do not include errno.h.
2938 * ada-typeprint.c: Likewise.
2939 * c-typeprint.c: Likewise.
2940 * core-regset.c: Likewise.
2941 * corefile.c: Likewise.
2942 * corelow.c: Likewise.
2943 * event-loop.c: Likewise.
2944 * f-typeprint.c: Likewise.
2945 * gnu-nat.c: Likewise.
2946 * go32-nat.c: Likewise.
2947 * i386gnu-nat.c: Likewise.
2948 * m2-typeprint.c: Likewise.
2949 * nat/linux-btrace.c: Likewise.
2950 * p-typeprint.c: Likewise.
2951 * procfs.c: Likewise.
2952 * remote-sim.c: Likewise.
2953 * rs6000-nat.c: Likewise.
2954 * target.c: Likewise.
2955 * typeprint.c: Likewise.
2956 * ui-file.c: Likewise.
2957 * valops.c: Likewise.
2958 * valprint.c: Likewise.
2959
6d3d12eb
GB
29602014-08-07 Gary Benson <gbenson@redhat.com>
2961
2962 * common/common-defs.h: Include string.h.
2963 * aarch64-tdep.c: Do not include string.h.
2964 * ada-exp.y: Likewise.
2965 * ada-lang.c: Likewise.
2966 * ada-lex.l: Likewise.
2967 * ada-typeprint.c: Likewise.
2968 * ada-valprint.c: Likewise.
2969 * aix-thread.c: Likewise.
2970 * alpha-linux-tdep.c: Likewise.
2971 * alpha-mdebug-tdep.c: Likewise.
2972 * alpha-nat.c: Likewise.
2973 * alpha-osf1-tdep.c: Likewise.
2974 * alpha-tdep.c: Likewise.
2975 * alphanbsd-tdep.c: Likewise.
2976 * amd64-dicos-tdep.c: Likewise.
2977 * amd64-linux-tdep.c: Likewise.
2978 * amd64-nat.c: Likewise.
2979 * amd64-sol2-tdep.c: Likewise.
2980 * amd64fbsd-tdep.c: Likewise.
2981 * amd64obsd-tdep.c: Likewise.
2982 * arch-utils.c: Likewise.
2983 * arm-linux-nat.c: Likewise.
2984 * arm-linux-tdep.c: Likewise.
2985 * arm-tdep.c: Likewise.
2986 * arm-wince-tdep.c: Likewise.
2987 * armbsd-tdep.c: Likewise.
2988 * armnbsd-nat.c: Likewise.
2989 * armnbsd-tdep.c: Likewise.
2990 * armobsd-tdep.c: Likewise.
2991 * avr-tdep.c: Likewise.
2992 * ax-gdb.c: Likewise.
2993 * ax-general.c: Likewise.
2994 * bcache.c: Likewise.
2995 * bfin-tdep.c: Likewise.
2996 * breakpoint.c: Likewise.
2997 * build-id.c: Likewise.
2998 * buildsym.c: Likewise.
2999 * c-exp.y: Likewise.
3000 * c-lang.c: Likewise.
3001 * c-typeprint.c: Likewise.
3002 * c-valprint.c: Likewise.
3003 * charset.c: Likewise.
3004 * cli-out.c: Likewise.
3005 * cli/cli-cmds.c: Likewise.
3006 * cli/cli-decode.c: Likewise.
3007 * cli/cli-dump.c: Likewise.
3008 * cli/cli-interp.c: Likewise.
3009 * cli/cli-logging.c: Likewise.
3010 * cli/cli-script.c: Likewise.
3011 * cli/cli-setshow.c: Likewise.
3012 * cli/cli-utils.c: Likewise.
3013 * coffread.c: Likewise.
3014 * common/agent.c: Likewise.
3015 * common/buffer.c: Likewise.
3016 * common/buffer.h: Likewise.
3017 * common/common-utils.c: Likewise.
3018 * common/filestuff.c: Likewise.
3019 * common/filestuff.c: Likewise.
3020 * common/format.c: Likewise.
3021 * common/print-utils.c: Likewise.
3022 * common/rsp-low.c: Likewise.
3023 * common/signals.c: Likewise.
3024 * common/vec.h: Likewise.
3025 * common/xml-utils.c: Likewise.
3026 * core-regset.c: Likewise.
3027 * corefile.c: Likewise.
3028 * corelow.c: Likewise.
3029 * cp-abi.c: Likewise.
3030 * cp-name-parser.y: Likewise.
3031 * cp-support.c: Likewise.
3032 * cp-valprint.c: Likewise.
3033 * cris-tdep.c: Likewise.
3034 * d-exp.y: Likewise.
3035 * darwin-nat.c: Likewise.
3036 * dbxread.c: Likewise.
3037 * dcache.c: Likewise.
3038 * demangle.c: Likewise.
3039 * dicos-tdep.c: Likewise.
3040 * disasm.c: Likewise.
3041 * doublest.c: Likewise.
3042 * dsrec.c: Likewise.
3043 * dummy-frame.c: Likewise.
3044 * dwarf2-frame.c: Likewise.
3045 * dwarf2loc.c: Likewise.
3046 * dwarf2read.c: Likewise.
3047 * elfread.c: Likewise.
3048 * environ.c: Likewise.
3049 * eval.c: Likewise.
3050 * event-loop.c: Likewise.
3051 * exceptions.c: Likewise.
3052 * exec.c: Likewise.
3053 * expprint.c: Likewise.
3054 * f-exp.y: Likewise.
3055 * f-lang.c: Likewise.
3056 * f-typeprint.c: Likewise.
3057 * f-valprint.c: Likewise.
3058 * fbsd-nat.c: Likewise.
3059 * findcmd.c: Likewise.
3060 * findvar.c: Likewise.
3061 * fork-child.c: Likewise.
3062 * frame.c: Likewise.
3063 * frv-linux-tdep.c: Likewise.
3064 * frv-tdep.c: Likewise.
3065 * gdb.c: Likewise.
3066 * gdb_bfd.c: Likewise.
3067 * gdbarch.c: Likewise.
3068 * gdbarch.sh: Likewise.
3069 * gdbtypes.c: Likewise.
3070 * gnu-nat.c: Likewise.
3071 * gnu-v2-abi.c: Likewise.
3072 * gnu-v3-abi.c: Likewise.
3073 * go-exp.y: Likewise.
3074 * go-lang.c: Likewise.
3075 * go32-nat.c: Likewise.
3076 * guile/guile.c: Likewise.
3077 * guile/scm-auto-load.c: Likewise.
3078 * hppa-hpux-tdep.c: Likewise.
3079 * hppa-linux-nat.c: Likewise.
3080 * hppanbsd-tdep.c: Likewise.
3081 * hppaobsd-tdep.c: Likewise.
3082 * i386-cygwin-tdep.c: Likewise.
3083 * i386-dicos-tdep.c: Likewise.
3084 * i386-linux-tdep.c: Likewise.
3085 * i386-nto-tdep.c: Likewise.
3086 * i386-sol2-tdep.c: Likewise.
3087 * i386-tdep.c: Likewise.
3088 * i386bsd-tdep.c: Likewise.
3089 * i386gnu-nat.c: Likewise.
3090 * i386nbsd-tdep.c: Likewise.
3091 * i386obsd-tdep.c: Likewise.
3092 * i387-tdep.c: Likewise.
3093 * ia64-libunwind-tdep.c: Likewise.
3094 * ia64-linux-nat.c: Likewise.
3095 * inf-child.c: Likewise.
3096 * inf-ptrace.c: Likewise.
3097 * inf-ttrace.c: Likewise.
3098 * infcall.c: Likewise.
3099 * infcmd.c: Likewise.
3100 * inflow.c: Likewise.
3101 * infrun.c: Likewise.
3102 * interps.c: Likewise.
3103 * iq2000-tdep.c: Likewise.
3104 * irix5-nat.c: Likewise.
3105 * jv-exp.y: Likewise.
3106 * jv-lang.c: Likewise.
3107 * jv-typeprint.c: Likewise.
3108 * jv-valprint.c: Likewise.
3109 * language.c: Likewise.
3110 * linux-fork.c: Likewise.
3111 * linux-nat.c: Likewise.
3112 * lm32-tdep.c: Likewise.
3113 * m2-exp.y: Likewise.
3114 * m2-typeprint.c: Likewise.
3115 * m32c-tdep.c: Likewise.
3116 * m32r-linux-nat.c: Likewise.
3117 * m32r-linux-tdep.c: Likewise.
3118 * m32r-rom.c: Likewise.
3119 * m32r-tdep.c: Likewise.
3120 * m68hc11-tdep.c: Likewise.
3121 * m68k-tdep.c: Likewise.
3122 * m68kbsd-tdep.c: Likewise.
3123 * m68klinux-nat.c: Likewise.
3124 * m68klinux-tdep.c: Likewise.
3125 * m88k-tdep.c: Likewise.
3126 * machoread.c: Likewise.
3127 * macrocmd.c: Likewise.
3128 * main.c: Likewise.
3129 * mdebugread.c: Likewise.
3130 * mem-break.c: Likewise.
3131 * memattr.c: Likewise.
3132 * memory-map.c: Likewise.
3133 * mep-tdep.c: Likewise.
3134 * mi/mi-cmd-break.c: Likewise.
3135 * mi/mi-cmd-disas.c: Likewise.
3136 * mi/mi-cmd-env.c: Likewise.
3137 * mi/mi-cmd-stack.c: Likewise.
3138 * mi/mi-cmd-var.c: Likewise.
3139 * mi/mi-cmds.c: Likewise.
3140 * mi/mi-console.c: Likewise.
3141 * mi/mi-getopt.c: Likewise.
3142 * mi/mi-interp.c: Likewise.
3143 * mi/mi-main.c: Likewise.
3144 * mi/mi-parse.c: Likewise.
3145 * microblaze-rom.c: Likewise.
3146 * microblaze-tdep.c: Likewise.
3147 * mingw-hdep.c: Likewise.
3148 * minidebug.c: Likewise.
3149 * minsyms.c: Likewise.
3150 * mips-irix-tdep.c: Likewise.
3151 * mips-linux-tdep.c: Likewise.
3152 * mips-tdep.c: Likewise.
3153 * mips64obsd-tdep.c: Likewise.
3154 * mipsnbsd-tdep.c: Likewise.
3155 * mipsread.c: Likewise.
3156 * mn10300-linux-tdep.c: Likewise.
3157 * mn10300-tdep.c: Likewise.
3158 * monitor.c: Likewise.
3159 * moxie-tdep.c: Likewise.
3160 * mt-tdep.c: Likewise.
3161 * nat/linux-btrace.c: Likewise.
3162 * nat/linux-osdata.c: Likewise.
3163 * nat/linux-procfs.c: Likewise.
3164 * nat/linux-ptrace.c: Likewise.
3165 * nat/linux-waitpid.c: Likewise.
3166 * nbsd-tdep.c: Likewise.
3167 * nios2-linux-tdep.c: Likewise.
3168 * nto-procfs.c: Likewise.
3169 * nto-tdep.c: Likewise.
3170 * objc-lang.c: Likewise.
3171 * objfiles.c: Likewise.
3172 * opencl-lang.c: Likewise.
3173 * osabi.c: Likewise.
3174 * osdata.c: Likewise.
3175 * p-exp.y: Likewise.
3176 * p-lang.c: Likewise.
3177 * p-typeprint.c: Likewise.
3178 * parse.c: Likewise.
3179 * posix-hdep.c: Likewise.
3180 * ppc-linux-nat.c: Likewise.
3181 * ppc-sysv-tdep.c: Likewise.
3182 * ppcfbsd-tdep.c: Likewise.
3183 * ppcnbsd-tdep.c: Likewise.
3184 * ppcobsd-tdep.c: Likewise.
3185 * printcmd.c: Likewise.
3186 * procfs.c: Likewise.
3187 * prologue-value.c: Likewise.
3188 * python/py-auto-load.c: Likewise.
3189 * python/py-gdb-readline.c: Likewise.
3190 * ravenscar-thread.c: Likewise.
3191 * regcache.c: Likewise.
3192 * registry.c: Likewise.
3193 * remote-fileio.c: Likewise.
3194 * remote-m32r-sdi.c: Likewise.
3195 * remote-mips.c: Likewise.
3196 * remote-notif.c: Likewise.
3197 * remote-sim.c: Likewise.
3198 * remote.c: Likewise.
3199 * reverse.c: Likewise.
3200 * rs6000-aix-tdep.c: Likewise.
3201 * ser-base.c: Likewise.
3202 * ser-go32.c: Likewise.
3203 * ser-mingw.c: Likewise.
3204 * ser-pipe.c: Likewise.
3205 * ser-tcp.c: Likewise.
3206 * ser-unix.c: Likewise.
3207 * serial.c: Likewise.
3208 * sh-tdep.c: Likewise.
3209 * sh64-tdep.c: Likewise.
3210 * shnbsd-tdep.c: Likewise.
3211 * skip.c: Likewise.
3212 * sol-thread.c: Likewise.
3213 * solib-dsbt.c: Likewise.
3214 * solib-frv.c: Likewise.
3215 * solib-osf.c: Likewise.
3216 * solib-som.c: Likewise.
3217 * solib-spu.c: Likewise.
3218 * solib-target.c: Likewise.
3219 * solib.c: Likewise.
3220 * somread.c: Likewise.
3221 * source.c: Likewise.
3222 * sparc-nat.c: Likewise.
3223 * sparc-sol2-tdep.c: Likewise.
3224 * sparc-tdep.c: Likewise.
3225 * sparc64-tdep.c: Likewise.
3226 * sparc64fbsd-tdep.c: Likewise.
3227 * sparc64nbsd-tdep.c: Likewise.
3228 * sparcnbsd-tdep.c: Likewise.
3229 * spu-linux-nat.c: Likewise.
3230 * spu-multiarch.c: Likewise.
3231 * spu-tdep.c: Likewise.
3232 * stabsread.c: Likewise.
3233 * stack.c: Likewise.
3234 * std-regs.c: Likewise.
3235 * symfile.c: Likewise.
3236 * symmisc.c: Likewise.
3237 * symtab.c: Likewise.
3238 * target.c: Likewise.
3239 * thread.c: Likewise.
3240 * tilegx-linux-nat.c: Likewise.
3241 * tilegx-tdep.c: Likewise.
3242 * top.c: Likewise.
3243 * tracepoint.c: Likewise.
3244 * tui/tui-command.c: Likewise.
3245 * tui/tui-data.c: Likewise.
3246 * tui/tui-disasm.c: Likewise.
3247 * tui/tui-file.c: Likewise.
3248 * tui/tui-layout.c: Likewise.
3249 * tui/tui-out.c: Likewise.
3250 * tui/tui-regs.c: Likewise.
3251 * tui/tui-source.c: Likewise.
3252 * tui/tui-stack.c: Likewise.
3253 * tui/tui-win.c: Likewise.
3254 * tui/tui-windata.c: Likewise.
3255 * tui/tui-winsource.c: Likewise.
3256 * typeprint.c: Likewise.
3257 * ui-file.c: Likewise.
3258 * ui-out.c: Likewise.
3259 * user-regs.c: Likewise.
3260 * utils.c: Likewise.
3261 * v850-tdep.c: Likewise.
3262 * valarith.c: Likewise.
3263 * valops.c: Likewise.
3264 * valprint.c: Likewise.
3265 * value.c: Likewise.
3266 * varobj.c: Likewise.
3267 * vax-tdep.c: Likewise.
3268 * vaxnbsd-tdep.c: Likewise.
3269 * vaxobsd-tdep.c: Likewise.
3270 * windows-nat.c: Likewise.
3271 * xcoffread.c: Likewise.
3272 * xml-support.c: Likewise.
3273 * xstormy16-tdep.c: Likewise.
3274 * xtensa-linux-nat.c: Likewise.
3275
dccbb609
GB
32762014-08-07 Gary Benson <gbenson@redhat.com>
3277
3278 * common/common-defs.h: Include gdb_assert.h.
3279 * aarch64-tdep.c: Do not include gdb_assert.h.
3280 * addrmap.c: Likewise.
3281 * aix-thread.c: Likewise.
3282 * alpha-linux-tdep.c: Likewise.
3283 * alpha-mdebug-tdep.c: Likewise.
3284 * alphanbsd-tdep.c: Likewise.
3285 * amd64-nat.c: Likewise.
3286 * amd64-tdep.c: Likewise.
3287 * amd64bsd-nat.c: Likewise.
3288 * amd64fbsd-nat.c: Likewise.
3289 * amd64fbsd-tdep.c: Likewise.
3290 * amd64nbsd-nat.c: Likewise.
3291 * amd64nbsd-tdep.c: Likewise.
3292 * amd64obsd-nat.c: Likewise.
3293 * amd64obsd-tdep.c: Likewise.
3294 * arch-utils.c: Likewise.
3295 * arm-tdep.c: Likewise.
3296 * armbsd-tdep.c: Likewise.
3297 * auxv.c: Likewise.
3298 * bcache.c: Likewise.
3299 * bfin-tdep.c: Likewise.
3300 * blockframe.c: Likewise.
3301 * breakpoint.c: Likewise.
3302 * bsd-kvm.c: Likewise.
3303 * bsd-uthread.c: Likewise.
3304 * buildsym.c: Likewise.
3305 * c-exp.y: Likewise.
3306 * c-lang.c: Likewise.
3307 * charset.c: Likewise.
3308 * cleanups.c: Likewise.
3309 * cli-out.c: Likewise.
3310 * cli/cli-decode.c: Likewise.
3311 * cli/cli-dump.c: Likewise.
3312 * cli/cli-logging.c: Likewise.
3313 * cli/cli-script.c: Likewise.
3314 * cli/cli-utils.c: Likewise.
3315 * coffread.c: Likewise.
3316 * common/common-utils.c: Likewise.
3317 * common/queue.h: Likewise.
3318 * common/signals.c: Likewise.
3319 * common/vec.h: Likewise.
3320 * complaints.c: Likewise.
3321 * completer.c: Likewise.
3322 * corelow.c: Likewise.
3323 * cp-abi.c: Likewise.
3324 * cp-name-parser.y: Likewise.
3325 * cp-namespace.c: Likewise.
3326 * cp-support.c: Likewise.
3327 * cris-tdep.c: Likewise.
3328 * dbxread.c: Likewise.
3329 * dictionary.c: Likewise.
3330 * doublest.c: Likewise.
3331 * dsrec.c: Likewise.
3332 * dummy-frame.c: Likewise.
3333 * dwarf2-frame-tailcall.c: Likewise.
3334 * dwarf2-frame.c: Likewise.
3335 * dwarf2expr.c: Likewise.
3336 * dwarf2loc.c: Likewise.
3337 * dwarf2read.c: Likewise.
3338 * eval.c: Likewise.
3339 * event-loop.c: Likewise.
3340 * exceptions.c: Likewise.
3341 * expprint.c: Likewise.
3342 * f-valprint.c: Likewise.
3343 * fbsd-nat.c: Likewise.
3344 * findvar.c: Likewise.
3345 * frame-unwind.c: Likewise.
3346 * frame.c: Likewise.
3347 * frv-tdep.c: Likewise.
3348 * gcore.c: Likewise.
3349 * gdb-dlfcn.c: Likewise.
3350 * gdb_bfd.c: Likewise.
3351 * gdbarch.c: Likewise.
3352 * gdbarch.sh: Likewise.
3353 * gdbtypes.c: Likewise.
3354 * gnu-nat.c: Likewise.
3355 * gnu-v3-abi.c: Likewise.
3356 * go-lang.c: Likewise.
3357 * guile/scm-exception.c: Likewise.
3358 * guile/scm-gsmob.c: Likewise.
3359 * guile/scm-lazy-string.c: Likewise.
3360 * guile/scm-math.c: Likewise.
3361 * guile/scm-pretty-print.c: Likewise.
3362 * guile/scm-safe-call.c: Likewise.
3363 * guile/scm-utils.c: Likewise.
3364 * guile/scm-value.c: Likewise.
3365 * h8300-tdep.c: Likewise.
3366 * hppa-hpux-nat.c: Likewise.
3367 * hppa-tdep.c: Likewise.
3368 * hppanbsd-tdep.c: Likewise.
3369 * hppaobsd-tdep.c: Likewise.
3370 * i386-darwin-nat.c: Likewise.
3371 * i386-darwin-tdep.c: Likewise.
3372 * i386-nto-tdep.c: Likewise.
3373 * i386-tdep.c: Likewise.
3374 * i386bsd-nat.c: Likewise.
3375 * i386fbsd-tdep.c: Likewise.
3376 * i386gnu-nat.c: Likewise.
3377 * i386nbsd-tdep.c: Likewise.
3378 * i386obsd-tdep.c: Likewise.
3379 * i387-tdep.c: Likewise.
3380 * ia64-libunwind-tdep.c: Likewise.
3381 * ia64-tdep.c: Likewise.
3382 * inf-ptrace.c: Likewise.
3383 * inf-ttrace.c: Likewise.
3384 * infcall.c: Likewise.
3385 * infcmd.c: Likewise.
3386 * infrun.c: Likewise.
3387 * inline-frame.c: Likewise.
3388 * interps.c: Likewise.
3389 * jv-lang.c: Likewise.
3390 * jv-typeprint.c: Likewise.
3391 * linux-fork.c: Likewise.
3392 * linux-nat.c: Likewise.
3393 * linux-thread-db.c: Likewise.
3394 * m32c-tdep.c: Likewise.
3395 * m32r-linux-nat.c: Likewise.
3396 * m32r-tdep.c: Likewise.
3397 * m68k-tdep.c: Likewise.
3398 * m68kbsd-nat.c: Likewise.
3399 * m68kbsd-tdep.c: Likewise.
3400 * m88k-tdep.c: Likewise.
3401 * machoread.c: Likewise.
3402 * macroexp.c: Likewise.
3403 * macrotab.c: Likewise.
3404 * maint.c: Likewise.
3405 * mdebugread.c: Likewise.
3406 * memory-map.c: Likewise.
3407 * mep-tdep.c: Likewise.
3408 * mi/mi-common.c: Likewise.
3409 * microblaze-tdep.c: Likewise.
3410 * mingw-hdep.c: Likewise.
3411 * mips-linux-nat.c: Likewise.
3412 * mips-linux-tdep.c: Likewise.
3413 * mips-tdep.c: Likewise.
3414 * mips64obsd-tdep.c: Likewise.
3415 * mipsnbsd-tdep.c: Likewise.
3416 * mn10300-linux-tdep.c: Likewise.
3417 * mn10300-tdep.c: Likewise.
3418 * moxie-tdep.c: Likewise.
3419 * mt-tdep.c: Likewise.
3420 * nat/linux-btrace.c: Likewise.
3421 * nat/linux-osdata.c: Likewise.
3422 * nat/linux-ptrace.c: Likewise.
3423 * nat/mips-linux-watch.c: Likewise.
3424 * nios2-linux-tdep.c: Likewise.
3425 * nios2-tdep.c: Likewise.
3426 * objc-lang.c: Likewise.
3427 * objfiles.c: Likewise.
3428 * obsd-nat.c: Likewise.
3429 * opencl-lang.c: Likewise.
3430 * osabi.c: Likewise.
3431 * parse.c: Likewise.
3432 * ppc-linux-nat.c: Likewise.
3433 * ppc-sysv-tdep.c: Likewise.
3434 * ppcfbsd-nat.c: Likewise.
3435 * ppcfbsd-tdep.c: Likewise.
3436 * ppcnbsd-nat.c: Likewise.
3437 * ppcnbsd-tdep.c: Likewise.
3438 * ppcobsd-nat.c: Likewise.
3439 * ppcobsd-tdep.c: Likewise.
3440 * printcmd.c: Likewise.
3441 * procfs.c: Likewise.
3442 * prologue-value.c: Likewise.
3443 * psymtab.c: Likewise.
3444 * python/py-lazy-string.c: Likewise.
3445 * python/py-value.c: Likewise.
3446 * regcache.c: Likewise.
3447 * reggroups.c: Likewise.
3448 * registry.c: Likewise.
3449 * remote-sim.c: Likewise.
3450 * remote.c: Likewise.
3451 * rs6000-aix-tdep.c: Likewise.
3452 * rs6000-tdep.c: Likewise.
3453 * s390-linux-tdep.c: Likewise.
3454 * score-tdep.c: Likewise.
3455 * ser-base.c: Likewise.
3456 * ser-mingw.c: Likewise.
3457 * sh-tdep.c: Likewise.
3458 * sh64-tdep.c: Likewise.
3459 * solib-darwin.c: Likewise.
3460 * solib-spu.c: Likewise.
3461 * solib-svr4.c: Likewise.
3462 * source.c: Likewise.
3463 * sparc-nat.c: Likewise.
3464 * sparc-sol2-tdep.c: Likewise.
3465 * sparc-tdep.c: Likewise.
3466 * sparc64-sol2-tdep.c: Likewise.
3467 * sparc64-tdep.c: Likewise.
3468 * sparc64fbsd-tdep.c: Likewise.
3469 * sparc64nbsd-tdep.c: Likewise.
3470 * sparc64obsd-tdep.c: Likewise.
3471 * sparcnbsd-tdep.c: Likewise.
3472 * sparcobsd-tdep.c: Likewise.
3473 * spu-multiarch.c: Likewise.
3474 * spu-tdep.c: Likewise.
3475 * stabsread.c: Likewise.
3476 * stack.c: Likewise.
3477 * symfile.c: Likewise.
3478 * symtab.c: Likewise.
3479 * target-descriptions.c: Likewise.
3480 * target-memory.c: Likewise.
3481 * target.c: Likewise.
3482 * tic6x-linux-tdep.c: Likewise.
3483 * tic6x-tdep.c: Likewise.
3484 * tilegx-linux-nat.c: Likewise.
3485 * tilegx-tdep.c: Likewise.
3486 * top.c: Likewise.
3487 * tramp-frame.c: Likewise.
3488 * tui/tui-out.c: Likewise.
3489 * tui/tui-winsource.c: Likewise.
3490 * ui-out.c: Likewise.
3491 * user-regs.c: Likewise.
3492 * utils.c: Likewise.
3493 * v850-tdep.c: Likewise.
3494 * valops.c: Likewise.
3495 * value.c: Likewise.
3496 * varobj.c: Likewise.
3497 * vax-nat.c: Likewise.
3498 * xml-syscall.c: Likewise.
3499 * xml-tdesc.c: Likewise.
3500 * xstormy16-tdep.c: Likewise.
3501 * xtensa-linux-nat.c: Likewise.
3502 * xtensa-tdep.c: Likewise.
3503
e76df0d0
GB
35042014-08-07 Gary Benson <gbenson@redhat.com>
3505
3506 * common/common-defs.h: Include common-utils.h.
3507 * defs.h: Do not include common-utils.h.
3508 * common/gdb_assert.h: Likewise.
3509 * darwin-nat.h: Likewise.
3510 * nat/linux-btrace.c: Likewise.
3511 * target/waitstatus.h: Likewise.
3512
4cb9c816
GB
35132014-08-07 Gary Benson <gbenson@redhat.com>
3514
3515 * common/common-defs.h: Include ptid.h.
3516 * defs.h: Do not include ptid.h.
3517 * inferior.h: Likewise.
3518 * infrun.h: Likewise.
3519 * nat/linux-btrace.h: Likewise.
3520 * nat/linux-osdata.h: Likewise.
3521 * target/waitstatus.h: Likewise.
3522
3995eeee
GB
35232014-08-07 Gary Benson <gbenson@redhat.com>
3524
3525 * common/common-defs.h: Include gdb_locale.h.
3526 * defs.h: Do not include gdb_locale.h.
3527
cb9f1a9b
GB
35282014-08-07 Gary Benson <gbenson@redhat.com>
3529
3530 * common/common-defs.h: Include gdb/signals.h.
3531 * defs.h: Do not include gdb/signals.h.
3532
a5fceff8
GB
35332014-08-07 Gary Benson <gbenson@redhat.com>
3534
3535 * common/common-defs.h: Include pathmax.h.
3536 * defs.h: Do not include pathmax.h.
3537
b9391142
GB
35382014-08-07 Gary Benson <gbenson@redhat.com>
3539
3540 * common/common-defs.h: Include libiberty.h.
3541 * defs.h: Do not include libiberty.h.
3542 * common/queue.h: Likewise.
3543 * cp-name-parser.y: Likewise.
3544 * mi/mi-cmd-catch.c: Likewise.
3545 * python/python.c: Likewise.
3546
0e443c87
GB
35472014-08-07 Gary Benson <gbenson@redhat.com>
3548
3549 * common/common-defs.h: Include ansidecl.h.
3550 * defs.h: Do not include ansidecl.h.
3551 * common/buffer.h: Likewise.
3552 * common/common-utils.h: Likewise.
3553
8ebb3f56
GB
35542014-08-07 Gary Benson <gbenson@redhat.com>
3555
3556 * common/common-defs.h: Include stddef.h.
3557 * defs.h: Do not include stddef.h.
3558 * common/common-utils.h: Likewise.
3559 * amd64fbsd-nat.c: Likewise.
3560 * bcache.c: Likewise.
3561 * charset.c: Likewise.
3562 * common/buffer.h: Likewise.
3563 * common/vec.h: Likewise.
3564 * i386bsd-nat.c: Likewise.
3565 * nat/linux-btrace.h: Likewise.
3566 * ppcfbsd-nat.c: Likewise.
3567 * ppcnbsd-tdep.h: Likewise.
3568 * ppcobsd-nat.c: Likewise.
3569 * ppcobsd-tdep.h: Likewise.
3570 * python/py-gdb-readline.c: Likewise.
3571
8980bdf6
GB
35722014-08-07 Gary Benson <gbenson@redhat.com>
3573
3574 * common/common-defs.h: Include stdarg.h.
3575 * defs.h: Do not include stdarg.h.
3576 * ada-lang.c: Likewise.
3577 * common/common-utils.h: Likewise.
3578 * guile/scm-string.c: Likewise.
3579 * guile/scm-utils.c: Likewise.
3580 * m32c-tdep.c: Likewise.
3581
d7096f71
GB
35822014-08-07 Gary Benson <gbenson@redhat.com>
3583
3584 * common/common-defs.h: Include stdlib.h.
3585 * defs.h: Do not include stdlib.h.
3586 * addrmap.c: Likewise.
3587 * bcache.c: Likewise.
3588 * common/buffer.c: Likewise.
3589 * common/common-utils.c: Likewise.
3590 * cp-name-parser.y: Likewise.
3591 * go32-nat.c: Likewise.
3592 * mn10300-linux-tdep.c: Likewise.
3593 * nat/linux-osdata.c: Likewise.
3594 * tui/tui.c: Likewise.
3595 * windows-nat.c: Likewise.
3596
d02f550d
GB
35972014-08-07 Gary Benson <gbenson@redhat.com>
3598
3599 * common/common-defs.h: Include stdio.h.
3600 * defs.h: Do not include stdio.h.
3601 * ada-lang.c: Likewise.
3602 * common/buffer.c: Likewise.
3603 * common/common-utils.c: Likewise.
3604 * cp-name-parser.y: Likewise.
3605 * gnu-nat.c: Likewise.
3606 * go32-nat.c: Likewise.
3607 * i386gnu-nat.c: Likewise.
3608 * proc-api.c: Likewise.
3609 * proc-events.c: Likewise.
3610 * proc-flags.c: Likewise.
3611 * proc-why.c: Likewise.
3612 * python/python-internal.h: Likewise.
3613 * target-memory.c: Likewise.
3614 * tui/tui-io.c: Likewise.
3615 * tui/tui.c: Likewise.
3616
b6d7a4bf
SM
36172014-08-06 Simon Marchi <simon.marchi@ericsson.com>
3618
3619 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
3620 (scan_dyntag_auxv): Same.
3621
af19829b
YQ
36222014-08-06 Yao Qi <yao@codesourcery.com>
3623
3624 * amd64-linux-nat.c: Remove duplicated include
3625 "x86-linux-nat.h".
3626 * i386-linux-nat.c: Likewise.
3627
8e07a239
YQ
36282014-08-06 Yao Qi <yao@codesourcery.com>
3629
3630 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
3631 operand" with "Special opcode" in comments.
3632
7bfe8241
GB
36332014-08-05 Gary Benson <gbenson@redhat.com>
3634
3635 * interps.c (initialize_interps): Remove prototype.
3636 (interpreter_initialized): Remove static global.
3637 (interp_add): Do not call initialize_interps.
3638 (initialize_interps): Remove function.
3639
d6c95504
GB
36402014-08-05 Gary Benson <gbenson@redhat.com>
3641
3642 * utils.c (vwarning): Remove spurious va_end.
3643
241fd515
AM
36442014-08-05 Alan Modra <amodra@gmail.com>
3645
3646 * charset.c (convert_between_encodings): Cast result of obstack_base.
3647 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
3648 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
3649 (read_unwind_info): Use size_t for some locals.
3650 * jit.c (finalize_symtab): Likewise.
3651 * utils.c (hashtab_obstack_allocate): Likewise.
3652 * symmisc.c (print_objfile_statistics): Update format strings.
3653
dc304a94
JK
36542014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3655
3656 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
3657 (Changes in GDB 7.8): ... here.
3658
3cecbbbe
TT
36592014-08-04 Tom Tromey <tromey@redhat.com>
3660
3661 * target.c (set_targetdebug): New function.
3662 (initialize_targets): Pass set_targetdebug when creating "set
3663 debug target".
3664
6908c509
JB
36652014-08-01 Joel Brobecker <brobecker@adacore.com>
3666
3667 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
3668 if detecting a variable-sized field that is not the last field.
3669 Fix struct type length computation.
3670
53e8f97d
JB
36712014-08-01 Joel Brobecker <brobecker@adacore.com>
3672
3673 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3674 Add debug trace.
3675
e068c55d
JB
36762014-08-01 Joel Brobecker <brobecker@adacore.com>
3677
3678 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3679 Remove "+ 8" offset in computation of CHAIN_VMA.
3680
4d4ca2a1
DE
36812014-07-31 Doug Evans <dje@google.com>
3682
3683 * inflow.c (child_terminal_inferior): Add comment.
3684 (child_terminal_ours_for_output): Add comment.
3685 (child_terminal_ours): Add comment.
3686 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
3687 (linux_nat_terminal_ours): Add comment.
3688
462f517e
GB
36892014-07-31 Gary Benson <gbenson@redhat.com>
3690
3691 * common/btrace-common.h: Do not include defs.h or server.h.
3692 * nat/mips-linux-watch.h: Likewise.
3693 * gdb-dlfcn.h: Do not include defs.h.
3694 * tracefile.h: Likewise.
3695
74228e77
RM
36962014-07-30 Roland McGrath <mcgrathr@google.com>
3697
3698 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
3699
014f9477
TT
37002014-07-30 Tom Tromey <tromey@redhat.com>
3701
3702 * bsd-kvm.c (bsd_kvm_open): Constify.
3703 * corelow.c (core_open): Constify.
3704 * ctf.c (ctf_open): Constify.
3705 * dbug-rom.c (dbug_open): Constify.
3706 * exec.c (exec_open): Constify.
3707 * m32r-rom.c (m32r_open, mon2000_open): Constify.
3708 * microblaze-rom.c (picobug_open): Constify.
3709 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
3710 Constify.
3711 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
3712 * record-btrace.c (record_btrace_open): Constify.
3713 * record-full.c (record_full_core_open_1, record_full_open_1)
3714 (record_full_open): Constify.
3715 * remote-m32r-sdi.c (m32r_open): Constify.
3716 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
3717 (rockhopper_open, lsi_open): Constify.
3718 * remote-sim.c (gdbsim_open): Constify.
3719 * remote.c (remote_open, extended_remote_open, remote_open_1):
3720 Constify.
3721 * target.h (struct target_ops) <to_open>: Make "arg" const.
3722 * tracefile-tfile.c (tfile_open): Constify.
3723
e799154c
TT
37242014-07-30 Tom Tromey <tromey@redhat.com>
3725
3726 * breakpoint.c (map_breakpoint_numbers): Update.
3727 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
3728 (get_number_const): New function.
3729 (get_number): Rewrite using get_number_const.
3730 (init_number_or_range): Make "string" const.
3731 (number_is_in_list): Make "list" const.
3732 * cli/cli-utils.h (get_number_const): Declare.
3733 (struct get_number_or_range_state) <string, end_ptr>: Now const.
3734 (init_number_or_range, number_is_in_list): Update.
3735 * printcmd.c (map_display_numbers): Update.
3736 * value.c (value_from_history_ref): Constify.
3737 * value.h (value_from_history_ref): Update.
3738
5f08566b
TT
37392014-07-30 Tom Tromey <tromey@redhat.com>
3740
3741 * corefile.c (hook_type, call_extra_exec_file_hooks)
3742 (specify_exec_file_hook): Constify.
3743 * exec.c (exec_file_attach): Make "filename" const.
3744 * gdbcore.h (deprecated_exec_file_display_hook)
3745 (specify_exec_file_hook, exec_file_attach): Constify.
3746 * main.c (captured_main): Use catch_command_errors_const.
3747
8981c758
TT
37482014-07-30 Tom Tromey <tromey@redhat.com>
3749
3750 * target.c (open_target): New function.
3751 (add_target_with_completer, add_deprecated_target_alias): Use
3752 set_cmd_sfunc, set_cmd_context.
3753 (debug_to_open): Remove.
3754 (setup_target_debug): Update.
3755
a1c7835a
YQ
37562014-07-30 Yao Qi <yao@codesourcery.com>
3757
3758 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
3759 comments.
3760 * parse.c (exp_iterate): Update comments.
3761
976411d6
GB
37622014-07-30 Gary Benson <gbenson@redhat.com>
3763
3764 * common/common-defs.h: New file.
3765 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
3766 * defs.h: Include common-defs.h.
3767 Do not include config.h or build-gnulib/config.h.
3768
5d4848a4
GB
37692014-07-30 Gary Benson <gbenson@redhat.com>
3770
3771 * common/common-utils.h: Do not include config.h.
3772 * nat/linux-btrace.h: Likewise.
3773
d41f6d8e
GB
37742014-07-30 Gary Benson <gbenson@redhat.com>
3775
3776 * btrace.c: Include defs.h.
3777 * common/ptid.c: Include defs.h or server.h as appropriate.
3778 * nat/mips-linux-watch.c: Likewise.
3779
84202f9c
TT
37802014-07-29 Tom Tromey <tromey@redhat.com>
3781
3782 * target.c (target_is_pushed): Simplify.
3783
2530441c
JB
37842014-07-29 Joel Brobecker <brobecker@adacore.com>
3785
3786 GDB 7.8 released.
3787
7e09a223
YQ
37882014-07-29 Yao Qi <yao@codesourcery.com>
3789
3790 PR gdb/17206
3791 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
3792
7ebdbe92
DE
37932014-07-28 Doug Evans <xdje42@gmail.com>
3794
3795 PR guile/17203
3796 * guile/scm-param.c (pascm_parameter_defined_p): New function.
3797 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
3798 parameters.
3799
f347ffc9
WN
38002014-07-28 Will Newton <will.newton@linaro.org>
3801
3802 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
3803 (THUMB2_SET_R7_SIGRETURN2): Likewise.
3804 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
3805 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
3806 (THUMB2_EABI_SYSCALL): Likewise.
3807 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
3808 struct tramp_frame.
3809 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
3810 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
3811
37c5f1f7
DE
38122014-07-27 Doug Evans <xdje42@gmail.com>
3813
3814 * guile/scm-param.c (pascm_print_param_smob): Fix output.
3815
0c3abbc7
DE
38162014-07-27 Doug Evans <xdje42@gmail.com>
3817
3818 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
3819
e76c5d17
DE
38202014-07-26 Ludovic Courtès <ludo@gnu.org>
3821 Doug Evans <xdje42@gmail.com>
3822
3823 PR guile/17146
3824 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
3825 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
3826 * configure.ac: Try to use guild to compile an scm file, if it fails
3827 then disable guile support.
3828 * configure: Regenerate.
3829 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
3830 GUILE_FILE_LIST.
3831 (GUILE_COMPILED_FILES): New variable.
3832 (GUILE_FILES) Update.
3833 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
3834 (stamp-guile): Compile scm files.
3835 * guile/guile.c (boot_guile_support): New function.
3836 (standard_throw_args_p): New function.
3837 (print_standard_throw_error, print_throw_error): New functions.
3838 (handle_boot_error): New function.
3839 (initialize_scheme_side): Rewrite to call boot_guile_support.
3840 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
3841 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
3842
186fcde0
DE
38432014-07-26 Ludovic Courtès <ludo@gnu.org>
3844 Doug Evans <xdje42@gmail.com>
3845
3846 PR guile/17146
3847 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
3848 * guile/lib/gdb/support.scm: New file.
3849 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
3850 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
3851 All uses updated.
3852 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
3853 All uses updated.
3854 (%assert-type): Ditto, and renamed to assert-type.
3855 (%exception-print-style): Delete.
3856
4df42755
DE
38572014-07-26 Doug Evans <xdje42@gmail.com>
3858
3859 PR build/17105
3860 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
3861 * configure: Regenerate.
3862 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
3863 PYTHON_FILES.
3864 (PYTHON_FILES): New variable.
3865 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
3866 (GUILE_FILES): New variable.
3867 (stamp-python, install-python, uninstall-python): Handle empty
3868 file list.
3869 (stamp-guile, install-guile, uninstall-guile): Ditto.
3870
ee7333ae
DE
38712014-07-26 Doug Evans <xdje42@gmail.com>
3872
3873 PR guile/17177
3874 * guile/lib/gdb.scm (pretty-printers): Export.
3875 (set-pretty-printers!): Export.
3876 * guile/lib/gdb/printing.scm (gdb module): Update.
3877 (prepend-pretty-printer!, append-pretty-printer!): Update.
3878 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
3879 (pretty_printer_list_var): Delete.
3880 (pretty_printer_list): New static global.
3881 (gdbscm_pretty_printers): New function.
3882 (gdbscm_set_pretty_printers_x): New function.
3883 (ppscm_find_pretty_printer_from_gdb): Update.
3884 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
3885 (gdbscm_initialize_pretty_printers): Update.
3886
74edf516
DE
38872014-07-26 Doug Evans <xdje42@gmail.com>
3888
3889 PR 17185
3890 * configure.ac: Add check for header gc/gc.h.
3891 Add check for function setenv.
3892 * configure: Regenerate.
3893 * config.in: Regenerate.
3894 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
3895
d54398a7
MR
38962014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
3897
3898 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
3899 variation in gdbarch matching.
3900
ab16fce8
TT
39012014-07-25 Tom Tromey <tromey@redhat.com>
3902
3903 * exec.c (using_exec_ops): Remove.
3904 (exec_close_1): Update. Remove extraneous block, reindent.
3905 (add_target_sections): Use target_is_pushed.
3906
88056fbb
PA
39072014-07-25 Pedro Alves <palves@redhat.com>
3908
3909 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
3910 * monitor.c (monitor_create_inferior): Likewise.
3911 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
3912 * remote-sim.c (gdbsim_create_inferior): Likewise.
3913 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
3914 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
3915 * windows-nat.c (do_initial_windows_stuff): Likewise.
3916
70509625
PA
39172014-07-25 Pedro Alves <palves@redhat.com>
3918
3919 * NEWS: Mention signal passing and "signal" command changes.
3920 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
3921 comment.
3922 * breakpoint.c (until_break_command): Adjust clear_proceed_status
3923 call.
3924 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
3925 * infcmd.c (proceed_thread_callback, continue_1, step_once)
3926 (jump_command): Adjust clear_proceed_status call.
3927 (signal_command): Warn if other thread that are resumed have
3928 signals that will be delivered. Adjust clear_proceed_status call.
3929 (until_next_command, finish_command)
3930 (proceed_after_attach_callback, attach_command_post_wait)
3931 (attach_command): Adjust clear_proceed_status call.
3932 * infrun.c (proceed_after_vfork_done): Likewise.
3933 (proceed_after_attach_callback): Adjust comment.
3934 (clear_proceed_status_thread): Clear stop_signal if not in pass
3935 state.
3936 (clear_proceed_status_callback): Delete.
3937 (clear_proceed_status): New 'step' parameter. Only clear the
3938 proceed status of threads the command being prepared is about to
3939 resume.
3940 (proceed): If passed in an explicit signal, override stop_signal
3941 with it. Don't pass the last stop signal to the thread we're
3942 resuming.
3943 (init_wait_for_inferior): Adjust clear_proceed_status call.
3944 (switch_back_to_stepped_thread): Clear the signal if it should not
3945 be passed.
3946 * infrun.h (clear_proceed_status): New 'step' parameter.
3947 (user_visible_resume_ptid): Add comment.
3948 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
3949 signal is in pass state.
3950 * remote.c (append_pending_thread_resumptions): Likewise.
3951 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
3952
d8be2939
TT
39532014-07-25 Tom Tromey <tromey@redhat.com>
3954
3955 * target.h (target_stopped_data_address)
3956 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
3957 parentheses.
3958
7d0d9d2b
PL
39592014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
3960
3961 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
3962 comments.
3963 (avr_pointer_to_address): Likewise.
3964
e9e7f724
TT
39652014-07-24 Tom Tromey <tromey@redhat.com>
3966
3967 * monitor.c (compile_pattern): Update.
3968 * target.h (struct target_ops) <to_shortname, to_longname,
3969 to_doc>: Now const.
3970
1947513d
TT
39712014-07-24 Tom Tromey <tromey@redhat.com>
3972
3973 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
3974 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
3975 (add_info_alias, add_com): Make "doc" const.
3976 (print_doc_line): Make "str" const.
3977 (delete_cmd): Update.
3978 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
3979 (print_doc_line): Update.
3980 * cli/cli-script.c (document_command): Update.
3981 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
3982 (add_com, add_info, add_info_alias): Update.
3983 * guile/scm-cmd.c (cmdscm_destroyer): Update.
3984 * python/py-cmd.c (cmdpy_destroyer): Update.
3985
64e61d29
TT
39862014-07-24 Tom Tromey <tromey@redhat.com>
3987
3988 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
3989 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
3990 (help_cmd_list): Constify.
3991 (lookup_cmd): Update.
3992 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
3993 const.
3994 (help_cmd_list, apropos_cmd): Update.
3995 * cli/cli-script.c (show_user): Update.
3996 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
3997 * cli/cli-setshow.h (cmd_show_list): Update.
3998 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
3999 (cmd_show_list): Update.
4000 * guile/scm-cmd.c (cmdscm_destroyer): Update.
4001 * python/py-cmd.c (cmdpy_destroyer): Update.
4002
429e55ea
TT
40032014-07-24 Tom Tromey <tromey@redhat.com>
4004
4005 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
4006 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
4007 const.
4008 * command.h (deprecate_cmd): Update.
4009 * maint.c (maintenance_do_deprecate): Add casts.
4010
64669f3b
TT
40112014-07-24 Tom Tromey <tromey@redhat.com>
4012
4013 * cli/cli-decode.c (help_cmd): Make parameter "const".
4014 * cli/cli-decode.h (help_cmd): Update.
4015
d3d3328b
TT
40162014-07-24 Tom Tromey <tromey@redhat.com>
4017
4018 * stack.c (up_silently_base, down_silently_base): Make argument
4019 const.
4020
414842dc
TT
40212014-07-24 Tom Tromey <tromey@redhat.com>
4022
4023 * solib.c (solib_add): Make "pattern" const.
4024 * solib.h (solib_add): Update.
4025
baa336ce
TT
40262014-07-24 Tom Tromey <tromey@redhat.com>
4027
4028 * remote.c (remote_serial_open, print_packet, putpkt)
4029 (putpkt_binary): Constify.
4030 * remote.h (putpkt): Update.
4031
5a19e2d0
TT
40322014-07-24 Tom Tromey <tromey@redhat.com>
4033
4034 * monitor.c (monitor_open): Make "args" const.
4035 * monitor.h (monitor_open): Update.
4036
fc4baa5e
TT
40372014-07-24 Tom Tromey <tromey@redhat.com>
4038
4039 * maint.c (match_bfd_flags): Make "string" const.
4040 (print_bfd_section_info): Remove casts.
4041 (print_objfile_section_info): Make "string" const.
4042
0d5f0dbe
TT
40432014-07-24 Tom Tromey <tromey@redhat.com>
4044
4045 * inf-child.c (inf_child_open_target): Make "arg" const.
4046 * inf-child.h (inf_child_open_target): Update.
4047
41c77899
TT
40482014-07-24 Tom Tromey <tromey@redhat.com>
4049
4050 * environ.c (unset_in_environ): Make "var" const.
4051 * environ.h (unset_in_environ): Update.
4052
93db0d79
TT
40532014-07-24 Tom Tromey <tromey@redhat.com>
4054
4055 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
4056 Make "cmd" const.
4057 (scan_filename_with_cleanup): Likewise.
4058 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
4059 Make arguments const.
4060 (restore_command): Update.
4061
36d6eb95
PA
40622014-07-24 Pedro Alves <palves@redhat.com>
4063
4064 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
4065
8009206a
TT
40662014-07-24 Tom Tromey <tromey@redhat.com>
4067 Gary Benson <gbenson@redhat.com>
4068
4069 * nat/linux-ptrace.c (additional_flags): New global.
4070 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
4071 additional_flags; don't check GDBSERVER.
4072 (linux_ptrace_set_additional_flags): New function.
4073 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
4074 Declare.
4075 * linux-nat.c (_initialize_linux_nat): Call
4076 linux_ptrace_set_additional_flags.
4077
a7068b60
TT
40782014-07-24 Tom Tromey <tromey@redhat.com>
4079
4080 * make-target-delegates (munge_type, write_debugmethod): New
4081 functions.
4082 (debug_names): New global.
4083 ($TARGET_DEBUG_PRINTER): New global.
4084 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
4085 name.
4086 Write debug methods. Generate init_debug_target.
4087 * target-debug.h: New file.
4088 * target-delegates.c: Rebuild.
4089 * target.c: Include target-debug.h.
4090 (debug_target): Hoist definition.
4091 (target_kill, target_get_section_table, target_memory_map)
4092 (target_flash_erase, target_flash_done, target_detach)
4093 (target_disconnect, target_wait, target_resume)
4094 (target_pass_signals, target_program_signals, target_follow_fork)
4095 (target_mourn_inferior, target_search_memory)
4096 (target_thread_address_space, target_close)
4097 (target_find_new_threads, target_core_of_thread)
4098 (target_verify_memory, target_insert_mask_watchpoint)
4099 (target_remove_mask_watchpoint): Remove targetdebug code.
4100 (debug_to_post_attach, debug_to_prepare_to_store)
4101 (debug_to_files_info, debug_to_insert_breakpoint)
4102 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
4103 (debug_to_region_ok_for_hw_watchpoint)
4104 (debug_to_can_accel_watchpoint_condition)
4105 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
4106 (debug_to_watchpoint_addr_within_range)
4107 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
4108 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
4109 (debug_to_terminal_init, debug_to_terminal_inferior)
4110 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
4111 (debug_to_terminal_save_ours, debug_to_terminal_info)
4112 (debug_to_load, debug_to_post_startup_inferior)
4113 (debug_to_insert_fork_catchpoint)
4114 (debug_to_remove_fork_catchpoint)
4115 (debug_to_insert_vfork_catchpoint)
4116 (debug_to_remove_vfork_catchpoint)
4117 (debug_to_insert_exec_catchpoint)
4118 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
4119 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
4120 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
4121 (setup_target_debug): Call init_debug_target.
4122 * target.h (TARGET_DEBUG_PRINTER): New macro.
4123 (struct target_ops) <to_resume, to_wait, to_pass_signals,
4124 to_program_signals>: Use TARGET_DEBUG_PRINTER.
4125
2c51604d
GB
41262014-07-24 Gary Benson <gbenson@redhat.com>
4127
4128 * exceptions.h (throw_vfatal): Renamed to...
4129 (throw_vquit): New declaration.
4130 (throw_quit): Likewise.
4131 * exceptions.c (throw_vfatal): Renamed to...
4132 (throw_vquit): New function.
4133 (throw_quit): Likewise.
4134 (throw_error): Call throw_verror rather than throw_it.
4135 * utils.h (vfatal): Removed.
4136 (fatal): Likewise.
4137 * utils.c (vfatal): Removed.
4138 (fatal): Likewise.
4139 (internal_verror): Replaced call to fatal with call to throw_quit.
4140 (quit): Replaced calls to fatal with calls to throw_quit.
4141
34211963
ME
41422014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
4143
4144 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
4145 target_read_code.
4146
a52b4d3e
ME
41472014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
4148
4149 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
4150 less than zero in conditional expression.
4151
a8bdc56b
TT
41522014-07-23 Tom Tromey <tromey@redhat.com>
4153
4154 * make-target-delegates ($ARGS_PART): Match trailing close paren.
4155 ($INTRO_PART): Don't match whitespace.
4156 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
4157 argument matching.
4158 ($METHOD): Add $METHOD_TRAILER.
4159 (trim): Rewrite.
4160 (scan_target_h): New sub.
4161 Change main loop not to collect state.
4162 * target-delegates.c: Rebuild.
4163
91b52240
GB
41642014-07-23 Gary Benson <gbenson@redhat.com>
4165
4166 * cp-support.c (gdb_demangle): Fix build on systems without
4167 sigaltstack.
4168
45326f6f
JK
41692014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4170
4171 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
4172 for reference entry value target data value.
4173
e214cf6c
JK
41742014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4175
4176 * stack.c (read_frame_arg): Verify value_optimized_out before calling
4177 value_available_contents_eq.
4178
bddbbedd
PA
41792014-07-22 Pedro Alves <palves@redhat.com>
4180
4181 * value.c (allocate_optimized_out_value): Don't mark value as
4182 non-lazy.
4183
45c71484
JW
41842014-07-22 Jiong Wang <jiong.wang@arm.com>
4185
4186 * MAINTAINERS (Write After Approval): Update my email address.
4187
9597b22a
DE
41882014-07-20 Doug Evans <dje@google.com>
4189
4190 PR server/17147
4191 * remote.c (putpkt_binary): Add text to error message.
4192
91101fe5
YQ
41932014-07-20 Yao Qi <yao@codesourcery.com>
4194
4195 * eval.c: Remove "Chill" from comments.
4196 * gdbtypes.h: Likewise.
4197 * symtab.h: Likewise.
4198
c9402c95
YQ
41992014-07-20 Yao Qi <yao@codesourcery.com>
4200
4201 * std-operator.def: Update comments to TERNOP_SLICE.
4202
ae8fddda
YQ
42032014-07-20 Yao Qi <yao@codesourcery.com>
4204
4205 * std-operator.def: Remove BINOP_RANGE.
4206 * breakpoint.c (watchpoint_exp_is_const): Update.
4207 * expprint.c (dump_subexp_body_standard): Likewise.
4208 * eval.c (init_array_element): Remove dead code.
4209 (evaluate_subexp_standard): Likewise.
4210
9c816640
YQ
42112014-07-20 Yao Qi <yao@codesourcery.com>
4212
4213 * std-operator.def: Remove BINOP_IN.
4214 * breakpoint.c (watchpoint_exp_is_const): Update.
4215 * eval.c (evaluate_subexp_standard): Likewise.
4216 * expprint.c (dump_subexp_body_standard): Likewise.
4217
164224e9
ME
42182014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
4219
4220 * microblaze-tdep.c (microblaze_register_names): Add
4221 the rshr and rslr register names.
4222 (microblaze_gdbarch_init): Use of tdesc_has_registers.
4223 Use of tdesc_find_feature. Use of tdesc_data_alloc.
4224 Use of tdesc_numbered_register. Use of
4225 microblaze_register_g_packet_guesses. Use of
4226 tdesc_use_registers. Use of set_gdbarch_register_type.
4227 (microblaze_register_g_packet_guesses): New.
4228 * microblaze-tdep.h (microblaze_reg_num): Add
4229 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
4230 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
4231 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
4232 * features/microblaze-core.xml: New file.
4233 * features/microblaze-stack-protect.xml: New file.
4234 * features/microblaze-with-stack-protect.c: New file.
4235 * features/microblaze-with-stack-protect.xml: New file.
4236 * features/microblaze.xml: New file.
4237 * features/microblaze.c: New file.
4238 * features/Makefile (microblaze-with-stack-protect): Add
4239 microblaze-with-stack-protect microblaze and microblaze-expedite.
4240 * regformats/microblaze-with-stack-protect.dat: New file.
4241 * regformats/microblaze.dat: New file.
4242 * doc/gdb.texinfo (MicroBlaze Features): Added.
4243
e8b2341c
TT
42442014-07-18 Tom Tromey <tromey@redhat.com>
4245
4246 * exec.c (exec_ops): Now static.
4247 * exec.h (exec_ops): Don't declare.
4248
44e89118
TT
42492014-07-18 Tom Tromey <tromey@redhat.com>
4250
4251 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
4252 to find_target_beneath.
4253 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
4254 find_target_beneath.
4255 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
4256
b0ed115f
TT
42572014-07-18 Tom Tromey <tromey@redhat.com>
4258
4259 PR gdb/17130:
4260 * utils.c (quit): Use target_supports_terminal_ours.
4261 * target.h (target_supports_terminal_ours): Declare.
4262 * target.c (target_supports_delete_record): Don't check
4263 to_delete_record against NULL.
4264 (target_supports_terminal_ours): New function.
4265
e75fdfca
TT
42662014-07-18 Tom Tromey <tromey@redhat.com>
4267
4268 PR gdb/17130:
4269 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
4270 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
4271 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
4272 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
4273 * windows-nat.c (windows_xfer_partial): Always delegate.
4274 * record-btrace.c (record_btrace_xfer_partial): Simplify
4275 delegation.
4276 (record_btrace_fetch_registers, record_btrace_store_registers)
4277 (record_btrace_prepare_to_store, record_btrace_resume)
4278 (record_btrace_wait, record_btrace_find_new_threads)
4279 (record_btrace_thread_alive): Likewise.
4280 * procfs.c (procfs_xfer_partial): Always delegate.
4281 * corelow.c (core_xfer_partial): Always delegate.
4282 * sol-thread.c (sol_find_new_threads): Simplify delegation.
4283
83814951
TT
42842014-07-18 Tom Tromey <tromey@redhat.com>
4285
4286 * exec.c (exec_make_note_section): Move earlier.
4287
b8b8facf
DE
42882014-07-17 Doug Evans <dje@google.com>
4289
74b49205 4290 PR gdb/17170
b8b8facf
DE
4291 * maint.c (count_symtabs_and_blocks): Handle NULL
4292 current_program_space.
4293 (report_command_stats): Check global enabled flag in addition to
4294 recorded enabled flag.
4295 (make_command_stats_cleanup): Handle msg_type == 0, startup.
4296
69ff6be5
PA
42972014-07-16 Pedro Alves <palves@redhat.com>
4298
4299 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
4300
252db1b5
TT
43012014-07-16 Tom Tromey <tromey@redhat.com>
4302
4303 * target.h (struct target_ops) <to_delete_record>: Reformat
4304 comment.
4305
a432721e
TT
43062014-07-16 Tom Tromey <tromey@redhat.com>
4307
4308 * target-delegates.c: Rebuild.
4309
487d9753
PL
43102014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
4311
4312 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
4313 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
4314 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
4315 (avr_pointer_to_address): Likewise.
4316 (avr_address_class_type_flags): New function.
4317 (avr_address_class_type_flags_to_name): Likewise.
4318 (avr_address_class_name_to_type_flags): Likewise.
4319 (avr_gdbarch_init): Set address_class_type_flags,
4320 address_class_type_flags_to_name and
4321 address_class_name_to_type_flags.
4322
57745c90
PA
43232014-07-15 Pedro Alves <palves@redhat.com>
4324
4325 * linux-nat.c (kill_callback): Save errno and work with saved
4326 copy.
4327
2d40be18
SM
43282014-07-15 Simon Marchi <simon.marchi@ericsson.com>
4329
4330 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
4331
572f6555
EBM
43322014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4333
4334 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
4335 breakpoint support correctly.
4336
cc1c52ad
PA
43372014-07-14 Pedro Alves <palves@redhat.com>
4338
4339 * utils.c (prompt_for_continue): Call target_terminal_ours.
4340
1e973570
PA
43412014-07-14 Pedro Alves <palves@redhat.com>
4342
4343 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
4344 catch_errors. Don't re-enable stdin or notify observers where,
4345 and rethrow error.
4346 (fetch_inferior_event_wrapper): Delete.
4347
93d6eb10
PA
43482014-07-14 Pedro Alves <palves@redhat.com>
4349
4350 PR gdb/17072
4351 * top.c: Include "inf-loop.h".
4352 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
4353 field.
4354 (gdb_readline_wrapper_cleanup): Make the target async again, if it
4355 was async before.
4356 (gdb_readline_wrapper): Store whether the target is async, and
4357 make it sync.
4358
0017922d
PA
43592014-07-14 Pedro Alves <palves@redhat.com>
4360
4361 PR gdb/17072
4362 * top.c (gdb_readline_wrapper_line): Tweak comment.
4363 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
4364 the input handler callback.
4365
94696ad3
PA
43662014-07-14 Pedro Alves <palves@redhat.com>
4367
4368 PR gdb/17072
4369 * main.c: Include event-top.h.
4370 (handle_command_errors): New function.
4371 (catch_command_errors, catch_command_errors_const): Use it.
4372
9d1e69a2
PA
43732014-07-14 Pedro Alves <palves@redhat.com>
4374
4375 * exceptions.c (catch_command_errors, catch_command_errors_const):
4376 Moved to main.c.
4377 * exceptions.h (catch_command_errors_ftype)
4378 (catch_command_errors_const_ftype): Moved to main.c.
4379 (catch_command_errors, catch_command_errors_const): Delete
4380 declarations.
4381 * main.c (catch_command_errors_ftype)
4382 (catch_command_errors_const_ftype): Moved here from exceptions.h.
4383 (catch_command_errors, catch_command_errors_const)): Moved here
4384 from exceptions.c and make static.
4385
feefc97b
PA
43862014-07-14 Pedro Alves <palves@redhat.com>
4387
4388 * exceptions.c (print_any_exception): Delete.
4389 (catch_exceptions_with_msg): Use exception_print instead of
4390 print_any_exception.
4391 (catch_errors): Use exception_fprintf instead of
4392 print_any_exception.
4393 (catch_command_errors, catch_command_errors_const): Use
4394 exception_print instead of print_any_exception.
4395
c933f875
PA
43962014-07-14 Pedro Alves <palves@redhat.com>
4397
4398 * infcall.c (run_inferior_call): Set 'sync_execution' while
4399 running the inferior call.
4400
feb6f816
PA
44012014-07-14 Pedro Alves <palves@redhat.com>
4402
4403 * value.c (value_contents_equal): Delete function.
4404 * value.h (value_contents_equal): Delete declaration.
4405
d98b7a16
TT
44062014-07-14 Tom Tromey <tromey@redhat.com>
4407
4408 PR exp/17106:
4409 * gdbtypes.c (is_dynamic_type_internal): New function, from
4410 is_dynamic_type.
4411 (is_dynamic_type): Rewrite.
4412 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
4413 (resolve_dynamic_struct): Likewise.
4414 (resolve_dynamic_type_internal): New function, from
4415 resolve_dynamic_type.
4416 (resolve_dynamic_type): Rewrite.
4417
548740d6
TT
44182014-07-14 Tom Tromey <tromey@redhat.com>
4419
4420 * target.c (target_require_runnable): Also check record_stratum.
4421 Update comment.
4422
808f7ab1
YQ
44232014-07-11 Yao Qi <yao@codesourcery.com>
4424
4425 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
4426 thumb_instruction_restores_sp return true.
4427
540314bd
YQ
44282014-07-11 Yao Qi <yao@codesourcery.com>
4429
4430 * arm-tdep.c (thumb_instruction_restores_sp): New function.
4431 (thumb_in_function_epilogue_p): Call
4432 thumb_instruction_restores_sp.
4433
1db01f22
YQ
44342014-07-11 Yao Qi <yao@codesourcery.com>
4435
4436 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
4437 'add sp, #imm'.
4438 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
4439
3116063b
GB
44402014-07-11 Gary Benson <gbenson@redhat.com>
4441
4442 * amd64-linux-nat.c (gdbcore.h): Remove include.
4443 (regset.h): Likewise.
4444 (nat/linux-btrace.h): Likewise.
4445 (btrace.h): Likewise.
4446 (gdb_assert.h): Likewise.
4447 (string.h): Likewise.
4448 (sys/uio.h): Likewise.
4449 (sys/debugreg.h): Likewise.
4450 (sys/syscall.h): Likewise.
4451 (sys/procfs.h): Likewise.
4452 (sys/user.h): Likewise.
4453 (asm/ptrace.h): Likewise.
4454 (i386-nat.h): Likewise.
4455 * i386-linux-nat.c (i386-nat.h): Likewise.
4456 (regset.h): Likewise.
4457 (target.h): Likewise.
4458 (linux-nat.h): Likewise.
4459 (nat/linux-btrace.h): Likewise.
4460 (btrace.h): Likewise.
4461 (gdb_assert.h): Likewise.
4462 (string.h): Likewise.
4463 (sys/uio.h): Likewise.
4464 (sys/user.h): Likewise.
4465 (sys/procfs.h): Likewise.
4466 (sys/reg.h): Likewise.
4467 (sys/debugreg.h): Likewise.
4468 (ORIG_EAX): Remove definition.
4469
040baaf6
GB
44702014-07-11 Gary Benson <gbenson@redhat.com>
4471
4472 * i386-linux-nat.h: New file.
4473 * x86-linux-nat.h: Likewise.
4474 * x86-linux-nat.c: Likewise.
4475 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
4476 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
4477 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4478 * amd64-linux-nat.c (x86-linux-nat.h): New include.
4479 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
4480 (PTRACE_SETREGSET): Likewise.
4481 (arch_lwp_info): Now in x86-linux-nat.c.
4482 (have_ptrace_getregset): Now in x86-linux-nat.h.
4483 (x86_linux_dr_get): Now in x86-linux-nat.c.
4484 (x86_linux_dr_set): Likewise.
4485 (x86_linux_dr_get_addr): Likewise.
4486 (x86_linux_dr_get_control): Likewise.
4487 (x86_linux_dr_get_status): Likewise.
4488 (update_debug_registers_callback): Likewise.
4489 (x86_linux_dr_set_control): Likewise.
4490 (x86_linux_dr_set_addr): Likewise.
4491 (x86_linux_prepare_to_resume): Likewise.
4492 (x86_linux_new_thread): Likewise.
4493 (x86_linux_new_fork): Likewise.
4494 (x86_linux_get_thread_area): Likewise.
4495 (super_post_startup_inferior): Likewise.
4496 (x86_linux_child_post_startup_inferior): Likewise.
4497 (AMD64_LINUX_USER64_CS): Likewise.
4498 (AMD64_LINUX_X32_DS): Likewise.
4499 (x86_linux_read_description): Likewise.
4500 (x86_linux_enable_btrace): Likewise.
4501 (x86_linux_disable_btrace): Likewise.
4502 (x86_linux_teardown_btrace): Likewise.
4503 (x86_linux_read_btrace): Likewise.
4504 (x86_linux_create_target): Likewise.
4505 (x86_linux_add_target): Likewise.
4506 * i386-linux-nat.c (x86-linux-nat.h): New include.
4507 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
4508 (PTRACE_SETREGSET): Likewise.
4509 (arch_lwp_info): Now in x86-linux-nat.c.
4510 (have_ptrace_getregset): Now in x86-linux-nat.h.
4511 (x86_linux_dr_get): Now in x86-linux-nat.c.
4512 (x86_linux_dr_set): Likewise.
4513 (x86_linux_dr_get_addr): Likewise.
4514 (x86_linux_dr_get_control): Likewise.
4515 (x86_linux_dr_get_status): Likewise.
4516 (update_debug_registers_callback): Likewise.
4517 (x86_linux_dr_set_control): Likewise.
4518 (x86_linux_dr_set_addr): Likewise.
4519 (x86_linux_prepare_to_resume): Likewise.
4520 (x86_linux_new_thread): Likewise.
4521 (x86_linux_new_fork): Likewise.
4522 (x86_linux_get_thread_area): Likewise.
4523 (super_post_startup_inferior): Likewise.
4524 (x86_linux_child_post_startup_inferior): Likewise.
4525 (AMD64_LINUX_USER64_CS): Likewise.
4526 (AMD64_LINUX_X32_DS): Likewise.
4527 (x86_linux_read_description): Likewise.
4528 (x86_linux_enable_btrace): Likewise.
4529 (x86_linux_disable_btrace): Likewise.
4530 (x86_linux_teardown_btrace): Likewise.
4531 (x86_linux_read_btrace): Likewise.
4532 (x86_linux_create_target): Likewise.
4533 (x86_linux_add_target): Likewise.
4534
1aa7e42c
GB
45352014-07-11 Gary Benson <gbenson@redhat.com>
4536
4537 * amd64-linux-nat.c: Comment and whitespace changes.
4538 * i386-linux-nat.c: Comment and whitespace changes.
4539
c1e246a0
GB
45402014-07-11 Gary Benson <gbenson@redhat.com>
4541
4542 * amd64-linux-nat.c (x86_linux_create_target): New function.
4543 (x86_linux_add_target): Likewise.
4544 (_initialize_amd64_linux_nat): Delegate to the above new functions.
4545 * i386-linux-nat.c (x86_linux_create_target): New function.
4546 (x86_linux_add_target): Likewise.
4547 (_initialize_i386_linux_nat): Delegate to the above new functions.
4548
8c420b8d
GB
45492014-07-11 Gary Benson <gbenson@redhat.com>
4550
4551 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
4552 (ps_get_thread_area): Delegate to the above in 32-bit mode.
4553 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
4554 (ps_get_thread_area): Delegate to the above.
4555
cb1da100
GB
45562014-07-11 Gary Benson <gbenson@redhat.com>
4557
4558 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
4559 x86_linux_read_description. All uses updated. amd64-specific
4560 code conditionalized. Conditionalized i386-specific code added.
4561 Redundant cast removed.
4562 * i386-linux-nat.c (i386_linux_read_description): Renamed to
4563 x86_linux_read_description. All uses updated. i386-specific
4564 code conditionalized. Conditionalized amd64-specific code added.
4565 One sizeof replaced with the actual type it is describing.
4566
2acf3cd0
GB
45672014-07-11 Gary Benson <gbenson@redhat.com>
4568
4569 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
4570 x86_linux_dr_get. All uses updated.
4571 (amd64_linux_dr_set): Renamed to
4572 x86_linux_dr_set. All uses updated.
4573 (amd64_linux_dr_get_addr): Renamed to
4574 x86_linux_dr_get_addr. All uses updated.
4575 (amd64_linux_dr_get_control): Renamed to
4576 x86_linux_dr_get_control. All uses updated.
4577 (amd64_linux_dr_get_status): Renamed to
4578 x86_linux_dr_get_status. All uses updated.
4579 (amd64_linux_dr_set_control): Renamed to
4580 x86_linux_dr_set_control. All uses updated.
4581 (amd64_linux_dr_set_addr): Renamed to
4582 x86_linux_dr_set_addr. All uses updated.
4583 (amd64_linux_prepare_to_resume): Renamed to
4584 x86_linux_prepare_to_resume. All uses updated.
4585 (amd64_linux_new_thread): Renamed to
4586 x86_linux_new_thread. All uses updated.
4587 (amd64_linux_new_fork): Renamed to
4588 x86_linux_new_fork. All uses updated.
4589 (amd64_linux_child_post_startup_inferior): Renamed to
4590 x86_linux_child_post_startup_inferior. All uses updated.
4591 (amd64_linux_enable_btrace): Renamed to
4592 x86_linux_enable_btrace. All uses updated.
4593 (amd64_linux_disable_btrace): Renamed to
4594 x86_linux_disable_btrace. All uses updated.
4595 (amd64_linux_teardown_btrace): Renamed to
4596 x86_linux_teardown_btrace. All uses updated.
4597 (amd64_linux_read_btrace): Renamed to
4598 x86_linux_read_btrace. All uses updated.
4599 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
4600 x86_linux_dr_get. All uses updated.
4601 (i386_linux_dr_set): Renamed to
4602 x86_linux_dr_set. All uses updated.
4603 (i386_linux_dr_get_addr): Renamed to
4604 x86_linux_dr_get_addr. All uses updated.
4605 (i386_linux_dr_get_control): Renamed to
4606 x86_linux_dr_get_control. All uses updated.
4607 (i386_linux_dr_get_status): Renamed to
4608 x86_linux_dr_get_status. All uses updated.
4609 (i386_linux_dr_set_control): Renamed to
4610 x86_linux_dr_set_control. All uses updated.
4611 (i386_linux_dr_set_addr): Renamed to
4612 x86_linux_dr_set_addr. All uses updated.
4613 (i386_linux_prepare_to_resume): Renamed to
4614 x86_linux_prepare_to_resume. All uses updated.
4615 (i386_linux_new_thread): Renamed to
4616 x86_linux_new_thread. All uses updated.
4617 (i386_linux_new_fork): Renamed to
4618 x86_linux_new_fork. All uses updated.
4619 (i386_linux_child_post_startup_inferior): Renamed to
4620 x86_linux_child_post_startup_inferior. All uses updated.
4621 (i386_linux_enable_btrace): Renamed to
4622 x86_linux_enable_btrace. All uses updated.
4623 (i386_linux_disable_btrace): Renamed to
4624 x86_linux_disable_btrace. All uses updated.
4625 (i386_linux_teardown_btrace): Renamed to
4626 x86_linux_teardown_btrace. All uses updated.
4627 (i386_linux_read_btrace): Renamed to
4628 x86_linux_read_btrace. All uses updated.
4629
b9c1d481
AS
46302014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
4631
4632 * remote.c (extended_remote_post_attach): New function.
4633 (init_extended_remote_ops): Install it as to_post_attach method.
4634
7180e04a
PA
46352014-07-09 Pedro Alves <palves@redhat.com>
4636
4637 * infcmd.c (attach_command_post_wait): Don't call
4638 target_terminal_inferior here.
4639 (attach_command): Call it here instead.
4640
9a9a7608
AB
46412014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4642
4643 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
4644 field.
4645 * c-varobj.c (c_is_path_expr_parent): New function, moved core
4646 from varobj.c, with additional checks.
4647 (c_varobj_ops): Fill in is_path_expr_parent field.
4648 (cplus_varobj_ops): Fill in is_path_expr_parent field.
4649 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
4650 field.
4651 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
4652 ops method.
4653 (varobj_default_is_path_expr_parent): New function.
4654 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
4655 (varobj_default_is_path_expr_parent): Declare new function.
4656
1f267ae3
MM
46572014-07-08 Markus Metzger <markus.t.metzger@intel.com>
4658
4659 * infcmd.c (finish_backward): Turn internal error into normal error.
4660
b2ee242b
PA
46612014-07-07 Pedro Alves <palves@redhat.com>
4662
8a869bca 4663 PR gdb/17096
b2ee242b
PA
4664 * remote.c (async_handle_remote_sigint)
4665 (async_handle_remote_sigint_twice): Call
4666 gdb_call_async_signal_handler instead of
4667 mark_async_signal_handler.
4668
38e229b2
TT
46692014-07-07 Tom Tromey <tromey@redhat.com>
4670
4671 * target-delegates.c: Rebuild.
4672 * target.c (target_info_record): Remove.
4673 * record.c (info_record_command): Unconditionally call
4674 to_info_record.
4675 * target.h (struct target_ops) <to_info_record>: Use
4676 TARGET_DEFAULT_IGNORE.
4677 (target_info_record): Remove.
4678
f0f9ff95
TT
46792014-07-07 Tom Tromey <tromey@redhat.com>
4680
4681 * target.h (struct target_ops) <to_get_thread_local_address>: Use
4682 TARGET_DEFAULT_NORETURN.
4683 * target.c (generic_tls_error): New function.
4684 (target_translate_tls_address): Don't search target stack.
4685 * target-delegates.c: Rebuild.
4686 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
4687 stack.
4688 * linux-thread-db.c (thread_db_get_thread_local_address):
4689 Unconditionally call beneath target.
4690
4a5be5ee
MK
46912014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
4692
4693 * cli/cli-logging.c (pop_output_files): Assign targerr to
4694 gdb_stdtargerr.
4695
92c3b204
AB
46962014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
4697
4698 * MAINTAINERS (Write After Approval): Update my email address.
4699
9b11e3a7
GB
47002014-07-02 Gary Benson <gbenson@redhat.com>
4701
4702 * proc-service.c (ps_xfer_memory): Update comment.
4703 (ps_pstop): Remove unused function.
4704 (ps_pcontinue): Likewise.
4705 (ps_lstop): Likewise.
4706 (ps_lcontinue): Likewise.
4707 (ps_lgetxregsize): Likewise.
4708 (ps_lgetxregs): Likewise.
4709 (ps_lsetxregs): Likewise.
4710 (ps_plog): Likewise.
4711 (ps_ptread): Likewise.
4712 (ps_ptwrite): Likewise.
4713
cf363f18
MW
47142014-07-01 Mark Wielaard <mjw@redhat.com>
4715
4716 * dwarf2read.c (add_array_cv_type): New function.
4717 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
4718 (read_tag_volatile_type): Likewise.
4719
82ae6c8d
TT
47202014-07-01 Tom Tromey <tromey@redhat.com>
4721
4722 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
4723 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
4724 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
4725 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
4726 * command.h (cmd_cfunc_ftype): Move earlier.
4727 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
4728 (add_com, add_info): Use cmd_cfunc_ftype.
4729
96142726
TT
47302014-06-30 Tom Tromey <tromey@redhat.com>
4731
4732 * symtab.c (operator_chars): Make parameters and return type
4733 const.
4734 (file_matches): Make "files" const.
4735 (struct search_symbols_data) <files>: Now const.
4736 (search_symbols): Make "regexp" and "files" parameters const.
4737 Update.
4738 (symtab_symbol_info): Remove cast.
4739 (rbreak_command): Update.
4740 * symtab.h (search_symbols): Update.
4741
b67a2c6f
YQ
47422014-06-27 Yao Qi <yao@codesourcery.com>
4743
4744 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
4745 Change parameter type to 'struct thread_info *'. Caller
4746 updated.
4747 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
4748 Update declaration.
4749 * dummy-frame.c (struct dummy_frame_id): New.
4750 (dummy_frame_id_eq): New function.
4751 (struct dummy_frame) <id>: Change its type to 'struct
4752 dummy_frame_id'.
4753 (dummy_frame_push): Add parameter ptid and save it in
4754 dummy_frame_id.
4755 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
4756 inferior_ptid.
4757 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
4758 to inferior_ptid.
4759 (lookup_dummy_frame): Change parameter type to 'struct
4760 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
4761 instead of frame_id_eq.
4762 (dummy_frame_pop): Add parameter ptid. Callers updated.
4763 Update comments. Compose dummy_frame_id and pass it to
4764 lookup_dummy_frame.
4765 (dummy_frame_discard): Add parameter ptid.
4766 (dummy_frame_sniffer): Compose dummy_frame_id and call
4767 dummy_frame_id_eq instead of frame_id_eq.
4768 (fprint_dummy_frames): Print ptid.
4769 * dummy-frame.h: Remove comments.
4770 (dummy_frame_push): Add ptid in declaration.
4771 (dummy_frame_pop, dummy_frame_discard): Likewise.
4772
5b10184c
TT
47732014-06-26 Tom Tromey <tromey@redhat.com>
4774
4775 * cli/cli-cmds.c (error_no_arg): Make "why" const.
4776 * command.h (error_no_arg): Update.
4777
06900326
TT
47782014-06-26 Tom Tromey <tromey@redhat.com>
4779
4780 * cli/cli-setshow.c (do_set_command): Make "arg" const.
4781 (do_show_command): Make "arg" const.
4782 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
4783
c2bcbb1d
TT
47842014-06-26 Tom Tromey <tromey@redhat.com>
4785
4786 * record-full.c (record_full_get_bookmark): Make "args" const.
4787 (record_full_goto_bookmark): Make "raw_bookmark" const.
4788 * record.c (record_goto): New function.
4789 (cmd_record_goto): Use it. Now static.
4790 * record.h (record_goto): Declare.
4791 (cmd_record_goto): Remove declaration.
4792 * target-delegates.c: Rebuild.
4793 * target.h (struct target_ops) <to_get_bookmark,
4794 to_goto_bookmark>: Make parameter const.
4795
9cbe5fff
TT
47962014-06-26 Tom Tromey <tromey@redhat.com>
4797
4798 * defs.h (generic_load): Update.
4799 * m32r-rom.c (m32r_load_gen): Make "filename" const.
4800 * monitor.c (monitor_load): Make "args" const.
4801 * remote-m32r-sdi.c (m32r_load): Make "args" const.
4802 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
4803 const.
4804 (mips_load): Make "file" const.
4805 * remote-sim.c (gdbsim_load): Make "args" const.
4806 * remote.c (remote_load): Make "name" const.
4807 * symfile.c (generic_load): Make "args" const.
4808 * target-delegates.c: Rebuild.
4809 * target.c (target_load): Make "arg" const.
4810 (debug_to_load): Make "args" const.
4811 * target.h (struct target_ops) <to_load>: Make parameter const.
4812 (target_load): Update.
4813
34a68019
TT
48142014-06-26 Tom Tromey <tromey@redhat.com>
4815
4816 PR symtab/16902:
4817 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
4818 (dwarf2_physname, read_partial_die)
4819 (guess_partial_die_structure_name, fixup_partial_die)
4820 (guess_full_die_structure_name, anonymous_struct_prefix)
4821 (dwarf2_name): Use per-BFD obstack.
4822
efc889c1
YQ
48232014-06-26 Yao Qi <yao@codesourcery.com>
4824
4825 * dummy-frame.c (dummy_frame_sniffer): Move local variables
4826 dummyframe and this_id into inner block below.
4827
4395285e
YQ
48282014-06-26 Yao Qi <yao@codesourcery.com>
4829
4830 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
4831 with "signal_pass[0]" in the initialization of signal_pass.
4832
aef92902
MM
48332014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4834
4835 * record-btrace.c (record_btrace_generating_corefile)
4836 (record_btrace_prepare_to_generate_core)
4837 (record_btrace_done_generating_core): New.
4838 (record_btrace_xfer_partial, record_btrace_fetch_registers)
4839 (record_btrace_store_registers, record_btrace_prepare_to_store):
4840 Forward request when generating a core file.
4841 (record_btrace_open): Set record_btrace_generating_corefile to zero.
4842 (init_record_btrace_ops): Set to_prepare_to_generate_core and
4843 to_done_generating_core.
4844
5fff78c4
MM
48452014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4846
4847 * target.h (target_ops) <to_prepare_to_generate_core>
4848 <to_done_generating_core>: New.
4849 (target_prepare_to_generate_core, target_done_generating_core): New.
4850 * target.c (target_prepare_to_generate_core)
4851 (target_done_generating_core): New.
4852 * target-delegates.c: Regenerate.
4853 * gcore.c: (write_gcore_file): Rename to ...
4854 (write_gcore_file_1): ...this.
4855 (write_gcore_file): Call target_prepare_to_generate_core
4856 and target_done_generating_core.
4857
1d1f1ccb
MM
48582014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4859
4860 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
4861 * gcore.c (write_gcore_file): Free memory returned from
4862 make_corefile_notes.
4863 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
4864 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
4865
3343ef86
YQ
48662014-06-24 Yao Qi <yao@codesourcery.com>
4867
4868 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
4869 (arm_linux_init_abi): Set skip_trampoline_code with
4870 gdbarch_skip_trampoline_code instead of
4871 find_solib_trampoline_target.
4872
18d18ac8
YQ
48732014-06-24 Yao Qi <yao@codesourcery.com>
4874
4875 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
4876 arm_skip_bx_reg returns non-zero.
4877
80d8d390
YQ
48782014-06-24 Yao Qi <yao@codesourcery.com>
4879
4880 * arm-tdep.c (arm_skip_bx_reg): New function.
4881 (arm_skip_stub): Call arm_skip_bx_reg.
4882
6a18a01c
DB
48832014-06-23 Don Breazeal <donb@codesourcery.com>
4884
4885 * MAINTAINERS: Add myself as write-after-approval maintainer.
4886
8e9db26e
PA
48872014-06-23 Pedro Alves <palves@redhat.com>
4888
4889 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
4890 DR_CONTROL before setting DR0..DR3.
4891 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
4892 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
4893 bits of DR_CONTROL related to the debug register slot being
4894 disabled. If all slots are vacant, clear local slowdown as well,
4895 and assert DR_CONTROL is 0.
4896
70afc5b7
SC
48972014-06-23 Siva Chandra Reddy <sivachandra@google.com>
4898
4899 * python/lib/gdb/command/xmethods.py
4900 (get_method_matchers_in_loci): Lookup xmethod matchers in the
4901 current progspace only if the string "progspace" matches LOCUS_RE.
4902
840ed64d
JK
49032014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4904
4905 Fix --with-system-readline with readline-6.3 patch 5.
4906 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
4907 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
4908 types.
4909
26f2dc30
TT
49102014-06-20 Tom Tromey <tromey@redhat.com>
4911
4912 * dwarf2read.c (dw2_get_real_path): Use correct type in
4913 OBSTACK_CALLOC.
4914 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
4915
125f8a3d
GB
49162014-06-20 Gary Benson <gbenson@redhat.com>
4917
4918 * common/gdb_thread_db.h: Moved to nat. All includes updated.
4919 * common/glibc_thread_db.h: Likewise.
4920 * common/i386-cpuid.h: Likewise.
4921 * common/i386-gcc-cpuid.h: Likewise.
4922 * common/linux-btrace.h: Likewise.
4923 * common/linux-osdata.h: Likewise.
4924 * common/linux-procfs.h: Likewise.
4925 * common/linux-ptrace.h: Likewise.
4926 * common/mips-linux-watch.h: Likewise.
4927 * common/linux-btrace.c: Moved to nat.
4928 * common/linux-osdata.c: Likewise.
4929 * common/linux-procfs.c: Likewise.
4930 * common/linux-ptrace.c: Likewise.
4931 * common/mips-linux-watch.c: Likewise.
4932 * nat/gdb_thread_db.h: Moved from common.
4933 * nat/glibc_thread_db.h: Likewise.
4934 * nat/i386-cpuid.h: Likewise.
4935 * nat/i386-gcc-cpuid.h: Likewise.
4936 * nat/linux-btrace.c: Likewise.
4937 * nat/linux-btrace.h: Likewise.
4938 * nat/linux-osdata.c: Likewise.
4939 * nat/linux-osdata.h: Likewise.
4940 * nat/linux-procfs.c: Likewise.
4941 * nat/linux-procfs.h: Likewise.
4942 * nat/linux-ptrace.c: Likewise.
4943 * nat/linux-ptrace.h: Likewise.
4944 * nat/mips-linux-watch.c: Likewise.
4945 * nat/mips-linux-watch.h: Likewise.
4946 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
4947 (object file files): Reordered.
4948 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
4949 of glibc_thread_db.h.
4950
42995dbd
GB
49512014-06-20 Gary Benson <gbenson@redhat.com>
4952
4953 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
4954 (i386_dr_low_type): Moved to nat/i386-dregs.h.
4955 (i386_dr_low): Likewise.
4956 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
4957 (i386_dr_low_set_addr): Likewise.
4958 (i386_dr_low_get_addr): Likewise.
4959 (i386_dr_low_can_set_control): Likewise.
4960 (i386_dr_low_set_control): Likewise.
4961 (i386_dr_low_get_control): Likewise.
4962 (i386_dr_low_get_status): Likewise.
4963 (i386_get_debug_register_length): Likewise.
4964 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
4965 (i386_dr_low): Likewise.
4966 * nat/i386-dregs.c (i386-low.h): Remove include.
4967 (i386-nat.h): Likewise.
4968 (nat/i386-dregs.h): New include.
4969 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
4970 (i386_dr_low_set_addr): Likewise.
4971 (i386_dr_low_get_addr): Likewise.
4972 (i386_dr_low_can_set_control): Likewise.
4973 (i386_dr_low_set_control): Likewise.
4974 (i386_dr_low_get_control): Likewise.
4975 (i386_dr_low_get_status): Likewise.
4976 (i386_get_debug_register_length): Likewise.
4977 (debug_hw_points): Likewise.
4978
3ed9baed
IB
49792014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
4980
4981 * Makefile.in (SFILES): Add d-exp.y.
4982 (YYFILES): Add d-exp.c.
4983 (YYOBJ): Add d-exp.o.
4984 (local-maintainer-clean): Delete d-exp.c.
4985 * d-exp.y: New file.
4986 * d-lang.h (d_parse): New declaration.
4987 (d_error): New declaration.
4988 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
4989 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
4990 PREC_ORDER operators.
4991 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
4992
78c164b0
YQ
49932014-06-19 Yao Qi <yao@codesourcery.com>
4994
4995 * gdbthread.h (any_running): Remove the declaration.
4996 * thread.c (any_running): Remove.
4997
f6e29b6e
YQ
49982014-06-19 Yao Qi <yao@codesourcery.com>
4999
5000 * gdbthread.h (struct thread_info) <state>: Change its type to
5001 'enum thread_state'. Update comments.
5002
034f788c
PA
50032014-06-19 Pedro Alves <palves@redhat.com>
5004
5005 * gdbthread.h (ALL_THREADS): Delete.
5006 (ALL_NON_EXITED_THREADS): New macro.
5007 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
5008 instead of ALL_THREADS.
5009 * infrun.c (find_thread_needs_step_over)
5010 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
5011 instead of ALL_THREADS.
5012 * record-btrace.c (record_btrace_open)
5013 (record_btrace_stop_recording, record_btrace_close)
5014 (record_btrace_is_replaying, record_btrace_resume)
5015 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
5016 * remote.c (append_pending_thread_resumptions): Likewise.
5017 * thread.c (thread_apply_all_command): Likewise.
5018
46e33252
GB
50192014-06-19 Gary Benson <gbenson@redhat.com>
5020
5021 * i386-nat.c (i386_stopped_by_watchpoint):
5022 Use i386_dr_stopped_by_watchpoint.
5023 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
5024 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
5025
3a8ee006
GB
50262014-06-19 Gary Benson <gbenson@redhat.com>
5027
5028 * nat/i386-dregs.c: New file.
5029 * Makefile.in (i386-dregs.o): New rule.
5030 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
5031 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
5032 * config/i386/darwin.mh (NATDEPFILES): Likewise.
5033 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
5034 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
5035 * config/i386/go32.mh (NATDEPFILES): Likewise.
5036 * config/i386/linux.mh (NATDEPFILES): Likewise.
5037 * config/i386/linux64.mh (NATDEPFILES): Likewise.
5038 * config/i386/mingw.mh (NATDEPFILES): Likewise.
5039 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
5040 * i386-nat.h (debug_hw_points): New declaration.
5041 * i386-nat.c (breakpoint.h): Remove include.
5042 (command.h): Likewise.
5043 (target.h): Likewise.
5044 (gdb_assert.h): Likewise.
5045 (debug_hw_points): Made nonstatic.
5046 (debug_printf): Now in i386-dregs.c.
5047 (TARGET_HAS_DR_LEN_8): Likewise.
5048 (DR_CONTROL_SHIFT): Likewise.
5049 (DR_CONTROL_SIZE): Likewise.
5050 (DR_RW_EXECUTE): Likewise.
5051 (DR_RW_WRITE): Likewise.
5052 (DR_RW_READ): Likewise.
5053 (DR_RW_IORW): Likewise.
5054 (DR_LEN_1): Likewise.
5055 (DR_LEN_2): Likewise.
5056 (DR_LEN_4): Likewise.
5057 (DR_LEN_8): Likewise.
5058 (DR_LOCAL_ENABLE_SHIFT): Likewise.
5059 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
5060 (DR_ENABLE_SIZE): Likewise.
5061 (DR_LOCAL_SLOWDOWN): Likewise.
5062 (DR_GLOBAL_SLOWDOWN): Likewise.
5063 (DR_CONTROL_RESERVED): Likewise.
5064 (I386_DR_CONTROL_MASK): Likewise.
5065 (I386_DR_VACANT): Likewise.
5066 (I386_DR_LOCAL_ENABLE): Likewise.
5067 (I386_DR_GLOBAL_ENABLE): Likewise.
5068 (I386_DR_DISABLE): Likewise.
5069 (I386_DR_SET_RW_LEN): Likewise.
5070 (I386_DR_GET_RW_LEN): Likewise.
5071 (I386_DR_WATCH_HIT): Likewise.
5072 (i386_wp_op_t): Likewise.
5073 (i386_show_dr): Likewise.
5074 (i386_length_and_rw_bits): Likewise.
5075 (i386_insert_aligned_watchpoint): Likewise.
5076 (i386_remove_aligned_watchpoint): Likewise.
5077 (i386_handle_nonaligned_watchpoint): Likewise.
5078 (i386_update_inferior_debug_regs): Likewise.
5079 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
5080 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
5081 (i386_region_ok_for_watchpoint):
5082 Use i386_dr_region_ok_for_watchpoint.
5083 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
5084
322a8e06
GB
50852014-06-19 Gary Benson <gbenson@redhat.com>
5086
5087 * i386-nat.c (i386_insert_hw_breakpoint): Use
5088 i386_insert_watchpoint.
5089 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
5090
8f26655c
GB
50912014-06-19 Gary Benson <gbenson@redhat.com>
5092
5093 * i386-nat.c (i386_dr_show): Renamed to
5094 i386_show_dr and made static. All uses updated.
5095 (i386_dr_length_and_rw_bits): Renamed to
5096 i386_length_and_rw_bits and made static.
5097 All uses updated.
5098 (i386_dr_insert_aligned_watchpoint): Renamed to
5099 i386_insert_aligned_watchpoint and made static.
5100 All uses updated.
5101 (i386_dr_remove_aligned_watchpoint): Renamed to
5102 i386_remove_aligned_watchpoint and made static.
5103 All uses updated.
5104 (i386_dr_update_inferior_debug_regs): Renamed to
5105 i386_update_inferior_debug_regs and made static.
5106 All uses updated.
5107 * nat/i386-dregs.h (i386_dr_show): Removed.
5108 (i386_dr_length_and_rw_bits): Likewise.
5109 (i386_dr_insert_aligned_watchpoint): Likewise.
5110 (i386_dr_remove_aligned_watchpoint): Likewise.
5111 (i386_dr_update_inferior_debug_regs): Likewise.
5112
992c7d70
GB
51132014-06-19 Gary Benson <gbenson@redhat.com>
5114
5115 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
5116 * configure: Regenerate.
5117 * config.in: Likewise.
5118 * main.c (signal.h): New include.
5119 (setup_alternate_signal_stack): New function.
5120 (captured_main): Call the above.
5121 * cp-support.c (signal.h): New include.
5122 (catch_demangler_crashes): New flag.
5123 (SIGJMP_BUF): New define.
5124 (SIGSETJMP): Likewise.
5125 (SIGLONGJMP): Likewise.
5126 (gdb_demangle_jmp_buf): New static global.
5127 (gdb_demangle_attempt_core_dump): Likewise.
5128 (gdb_demangle_signal_handler): New function.
5129 (gdb_demangle): If catch_demangler_crashes is set, install the
5130 above signal handler before calling bfd_demangle, and restore
5131 the original signal handler afterwards. Display the offending
5132 symbol and call demangler_warning the first time a segmentation
5133 fault is caught.
5134 (_initialize_cp_support): New maint set/show command.
5135
eae7090b
GB
51362014-06-19 Gary Benson <gbenson@redhat.com>
5137
5138 * utils.h (resource_limit_kind): New enum.
5139 (can_dump_core): New declaration.
5140 (warn_cant_dump_core): Likewise.
5141 (dump_core): Likewise.
5142 * utils.c (dump_core): Made nonstatic. Added new
5143 parameter "limit_kind".
5144 (can_dump_core): Made nonstatic. Moved printing code to...
5145 (warn_cant_dump_core): New function.
5146 (can_dump_core_warn): Likewise.
5147 (internal_vproblem): Replace calls to can_dump_core with
5148 calls to can_dump_core_warn. Supply new argument to each.
5149
57fcfb1b
GB
51502014-06-19 Gary Benson <gbenson@redhat.com>
5151
5152 * utils.h (demangler_vwarning): New declaration.
5153 (demangler_warning): Likewise.
5154 * utils.c (struct internal_problem)
5155 <user_settable_should_quit>: New field.
5156 <user_settable_should_dump_core>: Likewise
5157 (internal_error_problem): Add values for above new fields.
5158 (internal_warning_problem): Likewise.
5159 (demangler_warning_problem): New static global.
5160 (demangler_vwarning): New function.
5161 (demangler_warning): Likewise.
5162 (add_internal_problem_command): Selectively add commands.
5163 (_initialize_utils): New internal problem command.
5164 * maint.c (maintenance_demangler_warning): New function.
5165 (_initialize_maint_cmds): New command.
5166
17a40b44
TT
51672014-06-18 Tom Tromey <tromey@redhat.com>
5168
5169 * f-valprint.c (info_common_command_for_block): Update.
5170 * symtab.h (struct general_symbol_info) <common_block>: Now
5171 const.
5172
346d1dfe
TT
51732014-06-18 Tom Tromey <tromey@redhat.com>
5174
5175 * symtab.h (struct symtab) <blockvector>: Now const.
5176 * ada-lang.c (ada_add_global_exceptions): Update.
5177 * buildsym.c (augment_type_symtab): Update.
5178 * dwarf2read.c (dw2_lookup_symbol): Update.
5179 * jit.c (finalize_symtab): Update.
5180 * jv-lang.c (add_class_symtab_symbol): Update.
5181 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
5182 Update.
5183 * objfiles.c (objfile_relocate1): Update.
5184 * psymtab.c (lookup_symbol_aux_psymtabs)
5185 (maintenance_check_psymtabs): Update.
5186 * python/py-symtab.c (stpy_global_block, stpy_static_block):
5187 Update.
5188 * spu-tdep.c (spu_catch_start): Update.
5189 * symmisc.c (dump_symtab_1): Update.
5190 * symtab.c (lookup_global_symbol_from_objfile)
5191 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
5192 (basic_lookup_transparent_type_quick)
5193 (basic_lookup_transparent_type, find_pc_sect_symtab)
5194 (find_pc_sect_line, search_symbols): Update.
5195 * block.c (find_block_in_blockvector): Make "bl" const.
5196 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
5197 const.
5198 (blockvector_contains_pc): Make "bv" const.
5199 (block_for_pc_sect): Update.
5200 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
5201 (blockvector_contains_pc): Update.
5202 * breakpoint.c (resolve_sal_pc): Update.
5203 * inline-frame.c (block_starting_point_at): Update.
5204
1834676b
TT
52052014-06-18 Tom Tromey <tromey@redhat.com>
5206
5207 * completer.c (complete_line): Make "line_buffer" const.
5208 * completer.h (complete_line): Update.
5209
ac1a991b
TT
52102014-06-18 Tom Tromey <tromey@redhat.com>
5211
5212 * symtab.c (add_macro_name): Remove unneeded cast.
5213
5bc98e52
TT
52142014-06-18 Tom Tromey <tromey@redhat.com>
5215
5216 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
5217 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
5218
8236def8
TT
52192014-06-18 Tom Tromey <tromey@redhat.com>
5220
5221 * probe.c (info_probes_for_ops): Make "arg" const.
5222 * probe.h (info_probes_for_ops): Update.
5223
3977b71f
TT
52242014-06-18 Tom Tromey <tromey@redhat.com>
5225
5226 * varobj.c (varobj_create): Update.
5227 * valops.c (value_of_this): Update.
5228 * tracepoint.c (add_local_symbols, scope_info): Update.
5229 * symtab.h (struct general_symbol_info) <block>: Now const.
5230 * symtab.c (skip_prologue_sal)
5231 (default_make_symbol_completion_list_break_on)
5232 (skip_prologue_using_sal): Update.
5233 * stack.h (iterate_over_block_locals)
5234 (iterate_over_block_local_vars): Update.
5235 * stack.c (print_frame_args): Update.
5236 (iterate_over_block_locals, iterate_over_block_local_vars): Make
5237 parameter const.
5238 (get_selected_block): Make return type const.
5239 * python/py-frame.c (frapy_block): Update.
5240 * python/py-block.c (gdbpy_block_for_pc): Update.
5241 * p-exp.y (%union) <bval>: Now const.
5242 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
5243 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
5244 * m2-exp.y (%union) <bval>: Now const.
5245 * linespec.c (get_current_search_block): Make return type const.
5246 (create_sals_line_offset, find_label_symbols): Update.
5247 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
5248 Update.
5249 (block_starting_point_at): Make "block" const.
5250 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
5251 (check_exception_resume): Update.
5252 * guile/scm-frame.c (gdbscm_frame_block): Update.
5253 * guile/scm-block.c (gdbscm_lookup_block): Update.
5254 * frame.h (get_frame_block): Update.
5255 (get_selected_block): Make return type const.
5256 * frame.c (frame_id_inner): Update.
5257 * f-valprint.c (info_common_command_for_block)
5258 (info_common_command): Update.
5259 * dwarf2loc.c (dwarf2_find_location_expression)
5260 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
5261 (locexpr_describe_location_piece): Update.
5262 * c-exp.y (%union) <bval>: Now const.
5263 * breakpoint.c (resolve_sal_pc): Update.
5264 * blockframe.c (get_frame_block):Make return type const.
5265 (get_pc_function_start, get_frame_function, find_pc_sect_function)
5266 (block_innermost_frame): Update.
5267 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
5268 (block_for_pc, block_for_pc_sect): Update.
5269 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
5270 'pblock' const.
5271 (block_for_pc_sect, block_for_pc): Make return type const.
5272 * ax-gdb.c (gen_expr): Update.
5273 * alpha-mdebug-tdep.c (find_proc_desc): Update.
5274 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
5275 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
5276 (ada_read_var_value): Update.
5277 * ada-exp.y (struct name_info) <block>: Now const.
5278 (%union): Likewise.
5279 (block_lookup): Constify.
5280
b9228891
GB
52812014-06-18 Gary Benson <gbenson@redhat.com>
5282
5283 * nat/i386-dregs.h: New file.
5284 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
5285 * i386-nat.h (i386-dregs.h): New include.
5286 (DR_FIRSTADDR): Now in i386-dregs.h.
5287 (DR_LASTADDR): Likewise.
5288 (DR_NADDR): Likewise.
5289 (DR_STATUS): Likewise.
5290 (DR_CONTROL): Likewise.
5291 (i386_debug_reg_state): Likewise.
5292 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
5293
a1aa2221
LM
52942014-06-18 Don Breazeal <donb@codesourcery.com>
5295
5296 * breakpoint.c (set_longjmp_breakpoint): Call
5297 momentary_breakpoint_from_master with additional argument.
5298 (set_longjmp_breakpoint_for_call_dummy): Call
5299 momentary_breakpoint_from_master with additional argument.
5300 (set_std_terminate_breakpoint): Call
5301 momentary_breakpoint_from_master with additional argument.
5302 (momentary_breakpoint_from_master): Add argument to function
5303 definition and use it to initialize structure member flag.
74228e77 5304 (clone_momentary_breakpoint): Call
a1aa2221
LM
5305 momentary_breakpoint_from_master with additional argument.
5306 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
5307 member flags set in momentary_breakpoint_from_master.
5308
4be83cc2
GB
53092014-06-18 Gary Benson <gbenson@redhat.com>
5310
5311 * i386-nat.c (i386_show_dr): Renamed to
5312 i386_dr_show and made nonstatic. All uses updated.
5313 (i386_length_and_rw_bits): Renamed to
5314 i386_dr_length_and_rw_bits and made nonstatic.
5315 All uses updated.
5316 (i386_insert_aligned_watchpoint): Renamed to
5317 i386_dr_insert_aligned_watchpoint and made nonstatic.
5318 All uses updated.
5319 (i386_remove_aligned_watchpoint): Renamed to
5320 i386_dr_remove_aligned_watchpoint and made nonstatic.
5321 All uses updated.
5322 (i386_update_inferior_debug_regs): Renamed to
5323 i386_dr_update_inferior_debug_regs and made nonstatic.
5324 All uses updated.
5325
131aa0d4
GB
53262014-06-18 Gary Benson <gbenson@redhat.com>
5327
5328 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
5329 (i386_dr_low_can_set_control): Likewise.
5330 (i386_dr_low_set_addr): Likewise.
5331 (i386_dr_low_set_control): Likewise.
5332 (i386_dr_low_get_addr): Likewise.
5333 (i386_dr_low_get_status): Likewise.
5334 (i386_dr_low_get_control): Likewise.
5335 (i386_insert_aligned_watchpoint): Use new macros.
5336 (i386_update_inferior_debug_regs): Likewise.
5337 (i386_stopped_data_address): Likewise.
5338
d9305f7f
GB
53392014-06-18 Gary Benson <gbenson@redhat.com>
5340
5341 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
5342 New parameter. All uses updated.
5343
ea008da4
GB
53442014-06-18 Gary Benson <gbenson@redhat.com>
5345
5346 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
5347 All uses updated.
5348
1b6d4134
GB
53492014-06-18 Gary Benson <gbenson@redhat.com>
5350
5351 * i386-nat.c (debug_printf): New macro.
5352 (i386_get_debug_register_length): Likewise.
5353 (TARGET_HAS_DR_LEN_8): Use above macro.
5354 (i386_show_dr): Use debug_printf instead of puts_unfiltered
5355 and printf_unfiltered. Use phex to format values.
5356
9b4550ef
GB
53572014-06-18 Gary Benson <gbenson@redhat.com>
5358
5359 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
5360 Make const.
5361
6e62758f
GB
53622014-06-18 Gary Benson <gbenson@redhat.com>
5363
5364 * i386-nat.c: Comment changes.
5365
51c79e94
GB
53662014-06-18 Gary Benson <gbenson@redhat.com>
5367
5368 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
5369
3e11889a
GB
53702014-06-18 Gary Benson <gbenson@redhat.com>
5371
5372 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
5373 (i386_insert_aligned_watchpoint): Likewise.
5374 (i386_remove_aligned_watchpoint): Likewise.
5375 (i386_handle_nonaligned_watchpoint): Likewise.
5376
fc6e2f03
GB
53772014-06-18 Gary Benson <gbenson@redhat.com>
5378
5379 * i386-nat.c: Whitespace changes.
5380
2afe7d50
SB
53812014-06-17 Samuel Bronson <naesten@gmail.com>
5382
5383 * MAINTAINERS: Update Roland McGrath's email address.
5384 Thanks to Sergio Durigan Junior for pointing out that he left
6a83deea 5385 Red Hat a while ago, and giving me a current address.
2afe7d50 5386
3bca49ee
TT
53872014-06-17 Tom Tromey <tromey@redhat.com>
5388
5389 * utils.h (savestring): Remove declaration.
5390
6e366df1
TT
53912014-06-17 Tom Tromey <tromey@redhat.com>
5392
5393 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
5394
6be47f0c
KS
53952014-06-16 Keith Seitz <keiths@redhat.com>
5396
5397 PR mi/15863
5398 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
5399 to update the varobj if inferior_ptid is null_ptid.
5400
7bc112c1
TT
54012014-06-16 Tom Tromey <tromey@redhat.com>
5402
5403 * target.h (struct target_ops) <to_info_proc>: Make parameter
5404 const.
5405 (target_info_proc): Update.
5406 * target.c (target_info_proc): Make "args" const.
5407 * procfs.c (procfs_info_proc): Update.
5408 * linux-tdep.c (linux_info_proc): Update.
5409 (linux_core_info_proc_mappings): Make "args" const.
5410 (linux_core_info_proc): Update.
5411 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
5412 * gdbarch.c: Rebuild.
5413 * gdbarch.h: Rebuild.
5414 * corelow.c (core_info_proc): Update.
5415
fee354ee
TT
54162014-06-16 Tom Tromey <tromey@redhat.com>
5417
5418 * target.h (struct target_ops) <to_disconnect>: Make parameter
5419 const.
5420 (target_disconnect): Update.
5421 * target.c (target_disconnect): Make "args" const.
5422 * target-delegates.c: Rebuild.
5423 * remote.c (remote_disconnect): Update.
5424 * record.h (record_disconnect): Update.
5425 * record.c (record_disconnect): Update.
5426 * inf-child.c (inf_child_disconnect): Update.
5427
a30bf1f1
TT
54282014-06-16 Tom Tromey <tromey@redhat.com>
5429
5430 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
5431 * target.c (debug_to_rcmd, default_rcmd): Update.
5432 * target-delegates.c: Rebuild.
5433 * remote.c (remote_rcmd): Update.
5434 * monitor.c (monitor_rcmd): Update.
5435
d03de421
PA
54362014-06-16 Pedro Alves <palves@redhat.com>
5437
5438 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
5439 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
5440 have OBJF_SHARED set.
5441 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
5442 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
5443 instead of OBJF_USERLOADED.
5444 * objfiles.h (OBJF_SHARED): Update comment.
5445 (userloaded_objfile_contains_address_p): Rename to ...
5446 (shared_objfile_contains_address_p): ... this, and update
5447 comments.
5448 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
5449 new objfile.
5450 (remove_symbol_file_command): Skip objfiles that don't have
5451 OBJF_SHARED set.
5452
99f4262f
TT
54532014-06-16 Tom Tromey <tromey@redhat.com>
5454
5455 * minsyms.h (prim_record_minimal_symbol)
5456 (prim_record_minimal_symbol_and_info): Update comments.
5457
97d66cc6
EZ
54582014-06-14 Eli Zaretskii <eliz@gnu.org>
5459
5460 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
5461 or --without-guile, according to how GDB was built.
5462
635c7e8a
TT
54632014-06-13 Tom Tromey <tromey@redhat.com>
5464
5465 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
5466 to help_list.
5467 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
5468 to help_list.
5469 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
5470 help_list.
5471 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
5472 help_list.Pass all_commands, not -1, to help_list.
5473 * cli/cli-dump.c (dump_command, append_command)
5474 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
5475 (binary_dump_command, binary_append_command): Pass all_commands,
5476 not -1, to help_list.
5477 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
5478 -1, to help_list.
5479 * valprint.c (set_print, set_print_raw): Pass all_commands, not
5480 -1, to help_list.
5481 * typeprint.c (set_print_type): Pass all_commands, not -1, to
5482 help_list.
5483 * top.c (set_history): Pass all_commands, not -1, to help_list.
5484 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
5485 all_commands, not -1, to help_list.
5486 * symfile.c (overlay_command): Pass all_commands, not -1, to
5487 help_list.
5488 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
5489 help_list.
5490 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
5491 help_list.
5492 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
5493 -1, to help_list.
5494 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
5495 not -1, to help_list.
5496 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
5497 not -1, to help_list.
5498 * maint.c (maintenance_command, maintenance_info_command)
5499 (maintenance_print_command, maintenance_set_cmd): Pass
5500 all_commands, not -1, to help_list.
5501 * macrocmd.c (macro_command): Pass all_commands, not -1, to
5502 help_list.
5503 * language.c (set_check): Pass all_commands, not -1, to help_list.
5504 * infcmd.c (unset_command): Pass all_commands, not -1, to
5505 help_list.
5506 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
5507 help_list.
5508 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
5509 help_list.
5510 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
5511 help_list.
5512 * breakpoint.c (save_command): Pass all_commands, not -1, to
5513 help_list.
5514 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
5515 all_commands, not -1, to help_list.
5516
b94ade42
PL
55172014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
5518
5519 * regcache.c (struct register_to_invalidate): New structure.
5520 (do_register_invalidate, make_cleanup_regcache_invalidate): New
5521 functions.
5522 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
5523
31f628ae
YQ
55242014-06-12 Yao Qi <yao@codesourcery.com>
5525
5526 * varobj.c (varobj_get_num_children): Call
5527 varobj_is_dynamic_p.
5528 (varobj_list_children): Likewise.
5529 (varobj_update): Likewise. Update comments.
5530
cde5ef40
YQ
55312014-06-12 Yao Qi <yao@codesourcery.com>
5532
5533 * varobj.c (varobj_pretty_printed_p): Rename to ...
5534 (varobj_is_dynamic_p): ... this. New function.
5535 * varobj.h (varobj_pretty_printed_p): Remove declaration.
5536 (varobj_is_dynamic_p): Declare.
5537 * mi/mi-cmd-var.c (print_varobj): All callers updated.
5538 (mi_print_value_p, varobj_update_one): Likewise.
5539
576ea091
YQ
55402014-06-12 Pedro Alves <pedro@codesourcery.com>
5541 Yao Qi <yao@codesourcery.com>
5542
5543 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
5544 (varobj_get_iterator): Wrap up code for pretty-printer by
5545 "#if HAVE_PYTHON" and "#endif".
5546 (update_dynamic_varobj_children): Likewise.
5547
827f100c
YQ
55482014-06-12 Pedro Alves <pedro@codesourcery.com>
5549 Yao Qi <yao@codesourcery.com>
5550
5551 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
5552 gdb_python_initialized is false. Move some code from varobj.c.
5553 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
5554 * varobj.c: Move "varobj-iter.h" inclusion earlier.
5555 (struct varobj_item): Moved to varobj-iter.h".
5556 (varobj_clear_saved_item): New function.
5557 (update_dynamic_varobj_children): Move python-related code to
5558 py-varobj.c.
5559 (free_variable): Call varobj_clear_saved_item and
5560 varobj_iter_delete.
5561
e5250216
YQ
55622014-06-12 Pedro Alves <pedro@codesourcery.com>
5563 Yao Qi <yao@codesourcery.com>
5564
5565 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
5566 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
5567 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
5568 (py-varobj.o): New rule.
5569 * python/py-varobj.c: New file.
5570 * python/python-internal.h (py_varobj_get_iterator): Declare.
5571 * varobj-iter.h: New file.
5572 * varobj.c: Include "varobj-iter.h"
5573 (struct varobj) <child_iter>: Change its type from "PyObject *"
5574 to "struct varobj_iter *".
5575 <saved_item>: Likewise.
5576 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
5577 [HAVE_PYTHON] (varobj_get_iterator): New function.
5578 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
5579 python-specific code to python/py-varobj.c.
5580 (install_visualizer): Call varobj_iter_delete instead of
5581 Py_XDECREF.
5582 * varobj.h (varobj_ensure_python_env): Declare.
5583
5a2e0d6e
YQ
55842014-06-12 Yao Qi <yao@codesourcery.com>
5585
5586 * varobj.c (struct varobj_item): New structure.
5587 (create_child_with_value): Update declaration.
5588 (varobj_add_child): Replace arguments 'name' and 'value' with
5589 'item'. All callers updated.
5590 (install_dynamic_child): Likewise.
5591 (update_dynamic_varobj_children): Likewise.
5592 (varobj_add_child): Likewise.
5593 (create_child_with_value): Likewise.
5594
919b9a93
JB
55952014-06-11 Joel Brobecker <brobecker@adacore.com>
5596
5597 * NEWS: Create a new section for the next release branch.
5598 Rename the section of the current branch, now that it has
5599 been cut.
5600
71a55bdf
JB
56012014-06-11 Joel Brobecker <brobecker@adacore.com>
5602
5603 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
5604 * version.in: Bump version to 7.8.50.DATE-cvs.
5605
364fe1f7
PA
56062014-06-11 Pedro Alves <palves@redhat.com>
5607
5608 PR remote/17028
5609 * ser-mingw.c (net_windows_socket_check_pending): New function.
5610 (net_windows_select_thread): Ignore spurious wakeups. Use
5611 net_windows_socket_check_pending.
5612 (net_windows_wait_handle): Check for pending events with
5613 ioctlsocket, through net_windows_socket_check_pending, instead of
5614 checking the socket's event.
5615
5a6c7709
SC
56162014-06-10 Siva Chandra Reddy <sivachandra@google.com>
5617
5618 * python/python-internal.h (gdb_PyObject_GetAttrString)
5619 (gdb_PyObject_HasAttrString): New inline function definitions.
5620 * py-value.c (get_field_flag): Remove the now unnecessary cast to
5621 char * of the second argument to PyObject_GetAttrString.
74228e77 5622
0e58ee40
JB
56232014-06-10 Joel Brobecker <brobecker@adacore.com>
5624
5625 * serial.c (serial_write): Fix index of character to be printed
5626 in call to serial_logchar when serial debug traces are enabled.
5627
d190df30
JB
56282014-06-10 Joel Brobecker <brobecker@adacore.com>
5629
5630 * gdbtypes (resolve_dynamic_range): Add function description.
5631
b4b01d36
PA
56322014-06-09 Pedro Alves <palves@redhat.com>
5633
5634 * linux-nat.c (linux_child_follow_fork): Initialize status with
5635 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
5636 inner block. Only pass the signal to PTRACE_DETACH if in pass
5637 state.
5638
3657956b
GB
56392014-06-09 Gary Benson <gbenson@redhat.com>
5640
5641 * common/signals.c (gdb_signal_from_host): Reorder to separate
5642 the always-available ANSI-standard signals from the signals that
5643 require checking.
5644 (do_gdb_signal_to_host): Likewise.
5645 * proc-events.c (signal_table): Likewise.
5646
c077881a
HZ
56472014-06-08 Hui Zhu <hui@codesourcery.com>
5648
5649 * common/linux-ptrace.c (linux_disable_event_reporting): New
5650 function.
5651 * common/linux-ptrace.h (linux_disable_event_reporting): New
5652 declaration.
5653 * linux-nat.c (linux_child_follow_fork): Do a single step before
5654 detach.
5655
4186eb54
KS
56562014-06-07 Keith Seitz <keiths@redhat.com>
5657
5658 Revert:
5659 PR c++/16253
5660 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5661 from symbol_matches_domain in symtab.c. All local callers
5662 of symbol_matches_domain updated.
5663 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5664 search STRUCT_DOMAIN.
5665 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5666 independently. standard_lookup will do that automatically.
5667 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5668 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5669 (cp_lookup_symbol_in_namespace): Likewise.
5670 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5671 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5672 may return a STRUCT_DOMAIN match.
5673 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5674 * cp-support.c: Include language.h.
5675 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5676 VAR_DOMAIN.
5677 * psymtab.c (match_partial_symbol): Compare the requested
5678 domain with the symbol's domain directly.
5679 (lookup_partial_symbol): Likewise.
5680 * symtab.c (lookup_symbol_in_language): Explain when/why
5681 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5682 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5683 appropriate languages.
5684 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5685 and moved to ada-lang.c
5686 (lookup_block_symbol): Explain that this function only returns
5687 symbol matching the requested DOMAIN.
5688 Compare the requested domain with the symbol's domain directly.
5689 (iterate_over_symbols): Compare the requested domain with the
5690 symbol's domain directly.
5691 * symtab.h (symbol_matches_domain): Remove.
5692
25326a28 56932014-06-06 Doug Evans <xdje42@gmail.com>
d2929fdc
DE
5694
5695 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
5696 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
5697 (gdbscm_guile_version_is_at_least): Declare.
5698 (gdbscm_scm_string_to_int): Declare.
5699 * guile/guile.c (gdbscm_guile_major_version): New global.
5700 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
5701 (guile_datadir): New static global.
5702 (gdbscm_guile_data_directory): New function.
5703 (initialize_scheme_side): Update.
5704 (misc_guile_functions): Add guile-data-directory.
5705 (initialize_gdb_module): Fetch guile version number.
5706 * guile/lib/gdb.scm: Remove call to add-to-load-path.
5707 * guile/lib/gdb/init.scm (%initialize!): Ditto.
5708 * guile/lib/gdb/boot.scm: Use guile-data-directory.
5709 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
5710 comments.
5711 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
5712 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
5713 * guile/scm-value.c (gdbscm_value_to_string): Only call
5714 scm_port_conversion_strategy if Guile version >= 2.0.6.
5715
0a770bb2 57162014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
5717
5718 * main.c (print_gdb_help): Add -q and --silent.
5719
73ba372c
GB
57202014-06-06 Gary Benson <gbenson@redhat.com>
5721
5722 * common/signals.c: Remove preprocessor conditionals for
5723 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
5724 SIGSEGV and SIGTERM.
5725 * proc-events.c: Likewise.
5726
c33b2f12
MM
57272014-06-06 Markus Metzger <markus.t.metzger@intel.com>
5728
5729 * symfile.c (symfile_free_objfile): Remove restriction to
5730 OBJF_USERLOADED.
5731 * symfile-mem.c (symbol_file_add_from_memory): Call
5732 add_target_sections_of_objfile.
5733
fb934770
LC
57342014-06-05 Ludovic Courtès <ludo@gnu.org>
5735
5736 * guile/scm-value.c (gdbscm_history_append_x): Use
5737 'vlscm_get_value_smob_arg_unsafe' instead of
5738 'vlscm_scm_to_value'.
5739
6ef284bd
SM
57402014-06-05 Simon Marchi <simon.marchi@ericsson.com>
5741
5742 PR mi/15806
5743 * utils.c (printchar): Don't escape at all if quoter is NUL.
5744 Update function documentation to clarify effect of parameter
5745 QUOTER.
5746 * remote.c (escape_buffer): Pass '\\' as the quoter to
5747 fputstrn_unfiltered.
5748 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
5749 generate the output.
5750 (mi_solib_unloaded): Same.
5751
270c9937
JB
57522014-06-05 Joel Brobecker <brobecker@adacore.com>
5753
5754 * development.sh: Delete.
5755 * Makefile.in (config.status): Adjust dependency on development.sh.
5756 * configure.ac: Adjust development.sh source call.
5757 * configure: Regenerate.
5758
16f691fb
DE
57592014-06-04 Doug Evans <xdje42@gmail.com>
5760
5761 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
5762 is_scheme_bkpt, spec.
5763 (bpscm_make_breakpoint_smob): Initialize new members.
5764 (gdbscm_create_breakpoint_x): Split into two ...
5765 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
5766 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
5767 (scheme_function breakpoint_functions): Update.
5768 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
5769 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
5770 register-breakpoint!.
5771
ef7cab6b
JB
57722014-06-04 Joel Brobecker <brobecker@adacorer.com>
5773
5774 PR server/17023
5775 * mem-break.c (z_type_supported): Return zero if
5776 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
5777
012370f6
TT
57782014-06-04 Tom Tromey <tromey@redhat.com>
5779
5780 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
5781 value_from_contents_and_address_unresolved.
5782 (ada_template_to_fixed_record_type_1): Likewise.
5783 (ada_which_variant_applies): Likewise.
5784 * value.h (value_from_contents_and_address_unresolved): Declare.
5785 * value.c (value_from_contents_and_address_unresolved): New
5786 function.
5787 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
5788 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
5789 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
5790
92e2a17f
TT
57912014-06-04 Tom Tromey <tromey@redhat.com>
5792
5793 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
5794
c0939df1
TT
57952014-06-04 Tom Tromey <tromey@redhat.com>
5796
5797 * procfs.c (procfs_attach): Make "args" const.
5798 * windows-nat.c (windows_attach): Make "args" const.
5799 * nto-procfs.c (procfs_attach): Make "args" const.
5800 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
5801 * go32-nat.c (go32_attach): Make "args" const.
5802 * gnu-nat.c (gnu_attach): Make "args" const.
5803 * darwin-nat.c (darwin_attach): Make "args" const.
5804 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
5805 * linux-nat.c (linux_nat_attach): Make "args" const.
5806 * remote.c (extended_remote_attach_1, extended_remote_attach):
5807 Make "args" const.
5808 * target.h (struct target_ops) <to_attach>: Make "args" const.
5809 (find_default_attach): Likewise.
5810 * utils.c (parse_pid_to_attach): Make "args" const.
5811 * utils.h (parse_pid_to_attach): Update.
5812
8eaff7cd
TT
58132014-06-04 Tom Tromey <tromey@redhat.com>
5814
5815 * target-delegates.c: Rebuild.
5816 * target.c (default_thread_address_space): New function.
5817 (target_thread_address_space): Simplify.
5818 * target.h (struct target_ops) <to_thread_address_space>: Add
5819 TARGET_DEFAULT_FUNC.
5820
1913f160
DE
58212014-06-04 Doug Evans <xdje42@gmail.com>
5822
5823 * guile/scm-type.c (type_smob): Remove duplicate typedef.
5824
70ad5bff
MM
58252014-06-04 Markus Metzger <markus.t.metzger@intel.com>
5826
5827 * record-btrace.c: Include event-loop.h and inf-loop.h.
5828 (record_btrace_resume_exec_dir)
5829 (record_btrace_async_inferior_event_handler)
5830 (record_btrace_handle_async_inferior_event): New.
5831 (record_btrace_open): Create async event handler.
5832 (record_btrace_close): Delete async event handler.
5833 (record_btrace_resume): Set record_btrace_resume_exec_dir,
5834 Mark async event handler.
5835 (record_btrace_execution_direction): New.
5836 (init_record_btrace_ops): Initialize to_execution_direction.
5837
b6210538
DE
58382014-06-03 Doug Evans <xdje42@gmail.com>
5839
5840 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
5841 (gdbscm_make_parameter): Ditto.
5842
a5b1fd27
DE
58432014-06-03 Doug Evans <dje@google.com>
5844
5845 * exec.c (exec_close_1): Call clear_section_table instead of
5846 resize_section_table.
5847 (clear_section_table): New function.
5848 (resize_section_table): Make static. Rename arg num_added to
5849 adjustment.
5850 * exec.h (clear_section_table): Declare.
5851 (resize_section_table): Delete.
5852 * progspace.c (release_program_space): Call clear_section_table
5853 instead of resize_section_table.
5854
0c6e92a5
SC
58552014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5856
5857 * NEWS (Python Scripting): Add entry about the new xmethods
5858 feature.
5859
883964a7
SC
58602014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5861
5862 * python/py-xmethods.c: New file.
5863 * python/py-objfile.c (objfile_object): New field 'xmethods'.
5864 (objfpy_dealloc): XDECREF on the new xmethods field.
5865 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
5866 field.
5867 (objfpy_get_xmethods): New function.
5868 (objfile_getset): New entry 'xmethods'.
5869 * python/py-progspace.c (pspace_object): New field 'xmethods'.
5870 (pspy_dealloc): XDECREF on the new xmethods field.
5871 (pspy_new, pspace_to_pspace_object): Initialize xmethods
5872 field.
5873 (pspy_get_xmethods): New function.
5874 (pspace_getset): New entry 'xmethods'.
5875 * python/python-internal.h: Add declarations for new functions.
5876 * python/python.c (_initialize_python): Invoke
5877 gdbpy_initialize_xmethods.
5878 * python/lib/gdb/__init__.py (xmethods): New
5879 attribute.
5880 * python/lib/gdb/xmethod.py: New file.
5881 * python/lib/gdb/command/xmethods.py: New file.
5882
58992dc5
SC
58832014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5884
5885 * eval.c (evaluate_subexp_standard): Call the xmethod if the
5886 best match method returned by find_overload_match is an xmethod.
5887 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
5888 the best matching operator returned by find_overload_match is an
5889 xmethod.
5890 * valops.c: #include "extension.h".
5891 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
5892 Return void. The list of matching source methods is returned in
5893 "fn_list" and a vector of matching debug method workers is
5894 returned in "xm_worker_vec". Update all callers.
5895 (value_find_oload_method_list): Likewise.
5896 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
5897 non-NULL, then the index of the best matching method in this
5898 vector is returned. Update all callers.
5899 (find_overload_match): Include xmethods while performing overload
5900 resolution.
5901
e81e7f5e
SC
59022014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5903
5904 * defs.h (enum lval_type): New enumerator "lval_xcallable".
5905 * extension-priv.h (struct extension_language_ops): Add the
5906 xmethod interface.
5907 * extension.c (new_xmethod_worker, clone_xmethod_worker,
5908 get_matching_xmethod_workers, get_xmethod_argtypes,
5909 invoke_xmethod, free_xmethod_worker,
5910 free_xmethod_worker_vec): New functions.
5911 * extension.h: #include "common/vec.h".
5912 New function declarations.
5913 (struct xmethod_worker): New struct.
5914 (VEC (xmethod_worker_ptr)): New vector type.
5915 (xmethod_worker_ptr): New typedef.
5916 (xmethod_worker_vec): Likewise.
5917 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
5918 builtin_type.
5919 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
5920 (struct builtin_type): New field "xmethod".
5921 * valarith.c (value_ptradd): Assert that the value argument is not
5922 lval_xcallable.
5923 * valops.c (value_must_coerce_to_target): Return 0 for
5924 lval_xcallable values.
5925 * value.c (struct value): New field XM_WORKER in the field
5926 LOCATION.
5927 (value_address, value_raw_address): Return 0 for lval_xcallable
5928 values.
5929 (set_value_address): Assert that the value is not an
5930 lval_xcallable.
5931 (value_free): Free the associated xmethod worker when freeing
5932 lval_xcallable values.
5933 (set_value_component_location): Assert that the WHOLE value is not
5934 lval_xcallable.
5935 (value_of_xmethod, call_xmethod): New functions.
5936 * value.h: Declare "struct xmethod_worker".
5937 Declare new functions value_of_xmethod, call_xmethod.
5938
ef370185
JB
59392014-06-03 Joel Brobecker <brobecker@adacore.com>
5940 Pedro Alves <palves@redhat.com>
5941
5942 PR breakpoints/17000
5943 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
5944 New function, extracted from software_breakpoint_inserted_here_p.
5945 (software_breakpoint_inserted_here_p): Replace factored out code
5946 by call to find_non_raw_software_breakpoint_inserted_here.
5947 (bp_target_info_copy_insertion_state): New function.
5948 (bkpt_insert_location): Handle the case of a single-step
5949 breakpoint already inserted at the same address.
5950 (bkpt_remove_location): Handle the case of a single-step
5951 breakpoint still inserted at the same address.
5952 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
5953 breakpoint already inserted at the same address.
5954 (deprecated_remove_raw_breakpoint): Handle the case of a
5955 non-raw breakpoint still inserted at the same address.
5956 (find_single_step_breakpoint): New function, extracted from
5957 single_step_breakpoint_inserted_here_p.
5958 (find_single_step_breakpoint): New function,
5959 factored out from single_step_breakpoint_inserted_here_p.
5960 (single_step_breakpoint_inserted_here_p): Reimplement.
5961
1e2ccb61
BM
59622014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
5963
5964 Pushed by Joel Brobecker <brobecker@adacore.com>
5965 * source.c (show_substitute_path_command): Fix display of matching
5966 substitution rules.
5967
d3448d85
GB
59682014-06-03 Gary Benson <gbenson@redhat.com>
5969
5970 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
5971
06eb1586
DE
59722014-06-02 Doug Evans <xdje42@gmail.com>
5973
5974 Add parameter support for Guile.
5975 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
5976 (SUBDIR_GUILE_SRCS): Add scm-param.c.
5977 (scm-param.o): New rule.
5978 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
5979 (gdbscm_misc_error): Declare.
5980 (gdbscm_canonicalize_command_name): Declare.
5981 (gdbscm_scm_to_host_string): Declare.
5982 (gdbscm_scm_from_host_string): Declare.
5983 (gdbscm_initialize_parameters): Declare.
5984 * guile/guile.c (initialize_gdb_module): Call
5985 gdbscm_initialize_parameters.
5986 * guile/lib/gdb.scm: Export parameter symbols.
5987 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
5988 cmdscm_canonicalize_name and made public. All callers updated.
5989 * guile/scm-exception.c (gdbscm_misc_error): New function.
5990 * guile/scm-param.c: New file.
5991 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
5992 (gdbscm_scm_to_host_string): New function.
5993 (gdbscm_scm_from_host_string): New function.
5994 * scm-utils.c (gdbscm_gc_dup_argv): New function.
5995
e698b8c4
DE
59962014-06-02 Doug Evans <xdje42@gmail.com>
5997
5998 Add command support for Guile.
5999 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
6000 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
6001 (scm-cmd.o): New rule.
6002 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
6003 (gdbscm_user_error_p): Declare.
6004 (gdbscm_parse_command_name): Declare.
6005 (gdbscm_valid_command_class_p): Declare.
6006 (gdbscm_initialize_commands): Declare.
6007 * guile/guile.c (initialize_gdb_module): Call
6008 gdbscm_initialize_commands.
6009 * guile/lib/gdb.scm: Export command symbols.
6010 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
6011 (throw-user-error): New function.
6012 * guile/scm-cmd.c: New file.
6013 * guile/scm-exception.c (user_error_symbol): New static global.
6014 (gdbscm_user_error_p): New function.
6015 (gdbscm_initialize_exceptions): Set user_error_symbol.
6016 * scm-utils.c (gdbscm_gc_xstrdup): New function.
6017
fb1f94b0
PM
60182014-06-02 Phil Muldoon <pmuldoon@redhat.com>
6019
6020 * top.c (command_loop): Handle comments here...
6021 (command_line_input): ... not here.
6022
ded03782
DE
60232014-06-02 Doug Evans <xdje42@gmail.com>
6024
6025 Add progspace support for Guile.
6026 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
6027 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
6028 (scm-progspace.o): New rule.
6029 * guile/guile-internal.h (pspace_smob): New typedef.
6030 (psscm_pspace_smob_pretty_printers): Declare.
6031 (psscm_pspace_smob_from_pspace): Declare.
6032 (psscm_scm_from_pspace): Declare.
6033 * guile/guile.c (initialize_gdb_module): Call
6034 gdbscm_initialize_pspaces.
6035 * guile/lib/gdb.scm: Export progspace symbols.
6036 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
6037 support.
6038 (append-pretty-printer!): Ditto.
6039 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
6040 Implement.
6041 * guile/scm-progspace.c: New file.
6042
397998fc
AM
60432014-06-03 Alan Modra <amodra@gmail.com>
6044
6045 * ppc64-tdep.c (ppc64_standard_linkage8): New.
6046 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
6047
6aa5f3a6
DE
60482014-06-02 Doug Evans <dje@google.com>
6049
6050 Add support for skeletonless type units.
6051 * dwarf2read.c (struct dwarf2_per_objfile): New member
6052 n_allocated_type_units.
6053 (struct dwarf2_per_objfile) <tu_stats>: New member
6054 nr_all_type_units_reallocs.
6055 (create_signatured_type_table_from_index): Initialize
6056 n_allocated_type_units
6057 (create_all_type_units): Ditto.
6058 (add_type_unit): Move up in file. New arg slot.
6059 All callers updated. Increase space for all_type_units more
6060 efficiently.
6061 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
6062 (lookup_dwo_signatured_type): Handle skeletonless TUs.
6063 (lookup_dwp_signatured_type): Ditto.
6064 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
6065 All callers updated.
6066 (build_type_psymtabs_1): Leave type_unit_groups as
6067 NULL if no TUs present.
6068 (print_tu_stats): New function.
6069 (process_skeletonless_type_unit): New function.
6070 (process_dwo_file_for_skeletonless_type_units): New
6071 function.
6072 (process_skeletonless_type_units): New function.
6073 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
6074 Call print tu_stats if debugging enabled.
6075
41fac0cf
PA
60762014-06-02 Pedro Alves <palves@redhat.com>
6077
6078 * breakpoint.c (build_target_command_list): Don't build a command
6079 list if we have any duplicate location that isn't a dprintf.
6080
cd1608cc
PA
60812014-06-02 Pedro Alves <palves@redhat.com>
6082
6083 * breakpoint.c (dprintf_breakpoint_hit): New function.
6084 (initialize_breakpoint_ops): Install it as dprintf's
6085 breakpoint_hit method.
6086
486ef3b9
JB
60872014-06-02 Joel Brobecker <brobecker@adacore.com>
6088
6089 * source.c (substitute_path_rule_matches): Simplify using
6090 filename_ncmp instead of FILENAME_CMP.
6091
230cd560
JB
60922014-06-02 Joel Brobecker <brobecker@adacore.com>
6093
6094 * source.c (substitute_path_rule_matches): Remove trailing spaces.
6095
16954d5d
LC
60962014-06-01 Ludovic Courtès <ludo@gnu.org>
6097
6098 * configure.ac: When Guile is available, check for the
6099 availability of 'scm_new_smob'.
6100 * configure, config.h.in: Regenerate.
6101 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
6102 function.
6103
53e8a631
AB
61042014-05-30 Andrew Burgess <aburgess@broadcom.com>
6105
6106 * frame.c (struct frame_info): Add stop_string field.
6107 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
6108 (get_prev_frame_always): Old content moved into
6109 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
6110 TRY_CATCH, handle MEMORY_ERROR exceptions.
6111 (frame_stop_reason_string): New function definition.
6112 * frame.h (unwind_stop_reason_to_string): Extend comment to
6113 mention frame_stop_reason_string.
6114 (frame_stop_reason_string): New function declaration.
6115 * stack.c (frame_info): Switch to frame_stop_reason_string.
6116 (backtrace_command_1): Switch to frame_stop_reason_string.
6117 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
6118 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
6119 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
6120
70e38b8e
AB
61212014-05-30 Andrew Burgess <aburgess@broadcom.com>
6122
6123 * frame.c (frame_stop_reason_string): Rename to ...
6124 (unwind_stop_reason_to_string): this.
6125 * frame.h (frame_stop_reason_string): Rename to ...
6126 (unwind_stop_reason_to_string): this.
6127 * stack.c (frame_info): Update call to frame_stop_reason_string.
6128 (backtrace_command_1): Likewise.
6129 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
6130 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
6131
938f0e2f
AB
61322014-05-30 Andrew Burgess <aburgess@broadcom.com>
6133
6134 * frame.c (remove_prev_frame): New function.
6135 (get_prev_frame_if_no_cycle): Create / discard cleanup using
6136 remove_prev_frame.
6137
a09dd441
PA
61382014-05-29 Pedro Alves <palves@redhat.com>
6139
6140 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
6141 and make it const. When a single-step decays to a continue,
6142 clear 'step', not 'hw_step'. Pass whether the caller wanted
6143 to step to user_visible_resume_ptid, not what we ask the
6144 target to do.
6145
bdc36728
PA
61462014-05-29 Pedro Alves <palves@redhat.com>
6147
6148 * infrun.c (process_event_stop_test, handle_step_into_function)
6149 (handle_step_into_function_backward): Adjust.
6150 Don't set the even thread's stop_step and call stop_waiting before
6151 calling end_stepping_range. Instead do that ...
6152 (end_stepping_range): ... here. Take an ecs pointer parameter.
6153
22bcd14b
PA
61542014-05-29 Pedro Alves <palves@redhat.com>
6155
6156 * infrun.c (stop_stepping): Rename to ...
6157 (stop_waiting): ... this.
6158 (proceed): Update comment.
6159 (process_event_stop_test, handle_inferior_event)
6160 (handle_signal_stop, handle_step_into_function)
6161 (handle_step_into_function_backward): Update.
6162
4ae57c05
PA
61632014-05-29 Pedro Alves <palves@redhat.com>
6164
6165 * infcall.c (run_inferior_call): Don't check whether the current
6166 thread is running after the proceed call.
6167
329ea579
PA
61682014-05-29 Pedro Alves <palves@redhat.com>
6169 Tom Tromey <tromey@redhat.com>
6170
6171 * NEWS: Mention "maint set target-async", "set mi-async", and that
6172 background execution commands are now always available.
6173 * target.h (target_async_permitted): Update comment.
6174 * target.c (target_async_permitted, target_async_permitted_1):
6175 Default to 1.
6176 (set_target_async_command): Rename to ...
6177 (maint_set_target_async_command): ... this.
6178 (show_target_async_command): Rename to ...
6179 (maint_show_target_async_command): ... this.
6180 (_initialize_target): Adjust.
6181 * infcmd.c (prepare_execution_command): Make extern.
6182 * inferior.h (prepare_execution_command): Declare.
6183 * infrun.c (set_observer_mode): Leave target async alone.
6184 * mi/mi-interp.c (mi_interpreter_init): Install
6185 mi_on_sync_execution_done as sync_execution_done observer.
6186 (mi_on_sync_execution_done): New function.
6187 (mi_execute_command_input_handler): Don't print the prompt if we
6188 just started a synchronous command with an async target.
6189 (mi_on_resume): Check sync_execution before printing prompt.
6190 * mi/mi-main.h (mi_async_p): Declare.
6191 * mi/mi-main.c: Include gdbcmd.h.
6192 (mi_async_p): New function.
6193 (mi_async, mi_async_1): New globals.
6194 (set_mi_async_command, show_mi_async_command, mi_async): New
6195 functions.
6196 (exec_continue): Call prepare_execution_command.
6197 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
6198 (mi_execute_async_cli_command): Use mi_async_p.
6199 (_initialize_mi_main): Install "set mi-async". Make
6200 "target-async" a deprecated alias.
6201
92bcb5f9
PA
62022014-05-29 Pedro Alves <palves@redhat.com>
6203
6204 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
6205 (_initialize_cli_interp): Adjust.
6206 * event-loop.c: Include "observer.h".
6207 (start_event_loop): Notify 'command_error' observers instead of
6208 calling display_gdb_prompt. Remove FIXME comment.
6209 * event-top.c (display_gdb_prompt): Remove call into the
6210 interpreters.
6211 * inf-loop.c: Include "observer.h".
6212 (inferior_event_handler): Notify 'command_error' observers instead
6213 of calling display_gdb_prompt.
6214 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
6215 observers instead of calling display_gdb_prompt.
6216 * interps.c (interp_set): Don't call display_gdb_prompt.
6217 (current_interp_display_prompt_p): Delete.
6218 * interps.h (interp_prompt_p): Delete declaration.
6219 (interp_prompt_p_ftype): Delete.
6220 (struct interp_procs) <prompt_proc_p>: Delete field.
6221 (current_interp_display_prompt_p): Delete declaration.
6222 * mi-interp.c (mi_interpreter_prompt_p): Delete.
6223 (_initialize_mi_interp): Adjust.
6224 * tui-interp.c (tui_init): Install 'sync_execution_done' and
6225 'command_error' observers.
6226 (tui_on_sync_execution_done, tui_on_command_error): New
6227 functions.
6228 (tui_display_prompt_p): Delete.
6229 (_initialize_tui_interp): Adjust.
6230
fd664c91
PA
62312014-05-29 Pedro Alves <palves@redhat.com>
6232
6233 PR gdb/13860
6234 * cli/cli-interp.c: Include infrun.h and observer.h.
6235 (cli_uiout, cli_interp): New globals.
6236 (cli_on_signal_received, cli_on_end_stepping_range)
6237 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
6238 functions.
6239 (cli_interpreter_init): Install them as 'end_stepping_range',
6240 'signal_received' 'signal_exited', 'exited' and 'no_history'
6241 observers.
6242 (_initialize_cli_interp): Remove cli_interp local.
6243 * infrun.c (handle_inferior_event): Call the several stop reason
6244 observers instead of printing the stop reason directly.
6245 (end_stepping_range): New function.
6246 (print_end_stepping_range_reason, print_signal_exited_reason)
6247 (print_exited_reason, print_signal_received_reason)
6248 (print_no_history_reason): Make static, and add an uiout
6249 parameter. Print to that instead of to CURRENT_UIOUT.
6250 * infrun.h (print_end_stepping_range_reason)
6251 (print_signal_exited_reason, print_exited_reason)
6252 (print_signal_received_reason print_no_history_reason): New
6253 declarations.
6254 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
6255 'mi_uiout'.
6256 <cli_uiout>: New field.
6257 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
6258 uiout for CLI output. Install 'signal_received',
6259 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
6260 observers.
6261 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
6262 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
6263 (mi_on_no_history): New functions.
6264 (ui_out_free_cleanup): Delete function.
6265 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
6266 instead use the one already stored in the MI interpreter data.
6267 (mi_ui_out): Adjust.
6268 * tui/tui-interp.c: Include infrun.h and observer.h.
6269 (tui_interp): New global.
6270 (tui_on_signal_received, tui_on_end_stepping_range)
6271 (tui_on_signal_exited, tui_on_exited)
6272 (tui_on_no_history): New functions.
6273 (tui_init): Install them as 'end_stepping_range',
6274 'signal_received' 'signal_exited', 'exited' and 'no_history'
6275 observers.
6276 (_initialize_tui_interp): Delete tui_interp local.
6277
8817a6f2
PA
62782014-05-29 Pedro Alves <palves@redhat.com>
6279
6280 PR gdb/15713
6281 * linux-nat.c (linux_nat_resume_callback): Rename the second
6282 parameter to 'except'. Skip LP if it points to EXCEPT.
6283 (linux_nat_resume): Don't mark the event lwp as not stopped
6284 before resuming sibling lwps. Instead ask
6285 linux_nat_resume_callback to skip the event lwp. Mark it as not
6286 stopped after actually resuming it.
6287 (linux_handle_syscall_trap): Mark the lwp as not stopped after
6288 resuming it.
6289 (wait_lwp): Mark the lwp as stopped here.
6290 (stop_wait_callback): Mark the lwp as not stopped right after
6291 resuming it. Don't mark lwps as stopped here.
6292 (linux_nat_filter_event): Mark the lwp as stopped earlier.
6293 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
6294
251bde03
PA
62952014-05-29 Pedro Alves <palves@redhat.com>
6296
6297 PR PR15693
6298 * infrun.c (resume): Determine how much to resume depending on
6299 whether the caller wanted a step, not whether we can hardware step
6300 the target. Mark all threads that we intend to run as running,
6301 unless we're calling an inferior function.
6302 (normal_stop): If the thread is running an infcall, don't finish
6303 thread state.
6304 * target.c (target_resume): Don't mark threads as running here.
6305
7f3c0343
JB
63062014-05-28 Joel Brobecker <brobecker@adacore.com>
6307
6308 * serial.c (_initialize_serial): Remove support for
6309 the "set remotebaud" and "show remotebaud" commands.
6310 * NEWS: Add entry documenting the removal of that command.
6311
ee34b3f9
YQ
63122014-05-28 Yao Qi <yao@codesourcery.com>
6313
6314 * charset.c: Fix typo in comments.
6315
add6c04d
GB
63162014-05-27 Gary Benson <gbenson@redhat.com>
6317
6318 * utils.c (internal_vproblem): Prompt for a bug report.
6319
92c48fc5
AW
63202014-05-26 Andy Wingo <wingo@igalia.com>
6321
6322 * guile/scm-arch.c (arscm_mark_arch_smob):
6323 * guile/scm-block.c (bkscm_mark_block_smob)
6324 (bkscm_mark_block_syms_progress_smob):
6325 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
6326 * guile/scm-exception.c (exscm_mark_exception_smob):
6327 * guile/scm-frame.c (frscm_mark_frame_smob):
6328 * guile/scm-iterator.c (itscm_mark_iterator_smob):
6329 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
6330 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
6331 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
6332 (ppscm_mark_pretty_printer_worker_smob):
6333 * guile/scm-symbol.c (syscm_mark_symbol_smob):
6334 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
6335 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
6336 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
6337 mark functions.
6338 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
6339 function.
6340
b2715b27
AW
63412014-05-26 Andy Wingo <wingo@igalia.com>
6342 Doug Evans <xdje42@gmail.com>
6343
6344 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
6345 empty_base_class. All uses updated.
6346 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
6347 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
6348 Adapt all callers.
6349 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
6350 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
6351 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
6352 (gdbscm_gsmob_has_property_p, add_property_name)
6353 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
6354 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
6355 (gdb-object-has-property?, gdb-object-properties): Remove.
6356 (gdb-object-kind): Renamed from gsmob-kind.
6357
214ab2da
AW
63582014-05-26 Andy Wingo <wingo@igalia.com>
6359
6360 * configure.ac (try_guile_versions): Allow building with guile 2.2.
6361 * configure: Regenerate.
6362
589fdceb
MM
63632014-05-23 Markus Metzger <markus.t.metzger@intel.com>
6364
6365 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
6366
67b5c0c1
MM
63672014-05-23 Markus Metzger <markus.t.metzger@intel.com>
6368
6369 * record-btrace.c (record_btrace_allow_memory_access): Remove.
6370 (replay_memory_access_read_only, replay_memory_access_read_write)
6371 (replay_memory_access_types, replay_memory_access)
6372 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
6373 (cmd_set_record_btrace, cmd_show_record_btrace)
6374 (cmd_show_replay_memory_access): New.
6375 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
6376 (record_btrace_remove_breakpoint): Replace
6377 record_btrace_allow_memory_access with replay_memory_access.
6378 (_initialize_record_btrace): Add commands.
6379 * NEWS: Announce it.
6380
036cd381
RR
63812014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6382
6383 * aarch64-linux-nat.c (asm/ptrace.h): Include.
6384
c77c1e42
RR
63852014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6386
6387 * MAINTAINERS (Write After Approval): Move self back from
6388 paper trail.
6389
45741a9c
PA
63902014-05-22 Pedro Alves <palves@redhat.com>
6391
6392 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
6393 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
6394 (disable_randomization, enum exec_direction_kind)
6395 (execution_direction, stop_registers, start_remote)
6396 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
6397 (wait_for_inferior, normal_stop, get_last_target_status)
6398 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
6399 (insert_step_resume_breakpoint_at_sal)
6400 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
6401 (set_step_info, print_stop_event, signal_stop_state)
6402 (signal_print_state, signal_pass_state, signal_stop_update)
6403 (signal_print_update, signal_pass_update)
6404 (update_signals_program_target, clear_exit_convenience_vars)
6405 (displaced_step_dump_bytes, update_observer_mode)
6406 (signal_catch_update, gdb_signal_from_command): Move
6407 declarations ...
6408 * infrun.h: ... to this new file.
6409 * amd64-tdep.c: Include infrun.h.
6410 * annotate.c: Include infrun.h.
6411 * arch-utils.c: Include infrun.h.
6412 * arm-linux-tdep.c: Include infrun.h.
6413 * arm-tdep.c: Include infrun.h.
6414 * break-catch-sig.c: Include infrun.h.
6415 * breakpoint.c: Include infrun.h.
6416 * common/agent.c: Include infrun.h instead of inferior.h.
6417 * corelow.c: Include infrun.h.
6418 * event-top.c: Include infrun.h.
6419 * go32-nat.c: Include infrun.h.
6420 * i386-tdep.c: Include infrun.h.
6421 * inf-loop.c: Include infrun.h.
6422 * infcall.c: Include infrun.h.
6423 * infcmd.c: Include infrun.h.
6424 * infrun.c: Include infrun.h.
6425 * linux-fork.c: Include infrun.h.
6426 * linux-nat.c: Include infrun.h.
6427 * linux-thread-db.c: Include infrun.h.
6428 * monitor.c: Include infrun.h.
6429 * nto-tdep.c: Include infrun.h.
6430 * procfs.c: Include infrun.h.
6431 * record-btrace.c: Include infrun.h.
6432 * record-full.c: Include infrun.h.
6433 * remote-m32r-sdi.c: Include infrun.h.
6434 * remote-mips.c: Include infrun.h.
6435 * remote-notif.c: Include infrun.h.
6436 * remote-sim.c: Include infrun.h.
6437 * remote.c: Include infrun.h.
6438 * reverse.c: Include infrun.h.
6439 * rs6000-tdep.c: Include infrun.h.
6440 * s390-linux-tdep.c: Include infrun.h.
6441 * solib-irix.c: Include infrun.h.
6442 * solib-osf.c: Include infrun.h.
6443 * solib-svr4.c: Include infrun.h.
6444 * target.c: Include infrun.h.
6445 * top.c: Include infrun.h.
6446 * windows-nat.c: Include infrun.h.
6447 * mi/mi-interp.c: Include infrun.h.
6448 * mi/mi-main.c: Include infrun.h.
6449 * python/py-threadevent.c: Include infrun.h.
6450
98eb56a4
PA
64512014-05-22 Pedro Alves <palves@redhat.com>
6452
6453 * infrun.c (handle_inferior_event): Store the exit code for
6454 --return-child-result here, instead of ...
6455 (print_exited_reason): ... here.
6456
17b2616c
PA
64572014-05-21 Pedro Alves <palves@redhat.com>
6458
6459 PR gdb/13860
6460 * gdbthread.h (struct thread_control_state): New field
6461 `command_interp'.
6462 * infrun.c (follow_fork): Copy the new thread control field to the
6463 child fork thread.
6464 (clear_proceed_status_thread): Clear the new thread control field.
6465 (proceed): Set the new thread control field.
6466 * interps.h (command_interp): Declare.
6467 * interps.c (command_interpreter): New global.
6468 (command_interp): New function.
6469 (interp_exec): Set `command_interpreter' while here.
6470 * cli-out.c (cli_uiout_dtor): New function.
6471 (cli_ui_out_impl): Install it.
6472 * mi/mi-interp.c: Include cli-out.h.
6473 (mi_cmd_interpreter_exec): Add comment.
6474 (restore_current_uiout_cleanup): New function.
6475 (ui_out_free_cleanup): New function.
6476 (mi_on_normal_stop): If finishing an execution command started by
6477 a CLI command, or any kind of breakpoint-like event triggered,
6478 print the stop event to the output (CLI) stream.
6479 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
6480
5166082f
PA
64812014-05-21 Pedro Alves <palves@redhat.com>
6482
6483 * cli/cli-cmds.c (list_command): Handle the first "list" after the
6484 current source line having changed.
6485 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
6486 * infrun.c (normal_stop): Adjust call to
6487 set_current_sal_from_frame.
6488 * source.c (clear_lines_listed_range): New function.
6489 (set_current_source_symtab_and_line, identify_source_line): Clear
6490 the lines listed range.
6491 (line_info): Handle the first "info line" after the current source
6492 line having changed.
6493 * stack.c (print_stack_frame): Remove center handling.
6494 (set_current_sal_from_frame): Remove 'center' parameter. Don't
6495 center sal.line.
6496
c1ee2fb3
PA
64972014-05-21 Pedro Alves <palves@redhat.com>
6498
6499 * inf-child.c (inf_child_mourn_inferior): New function.
6500 * inf-child.h (inf_child_mourn_inferior): New declaration.
6501 * darwin-nat.c (darwin_mourn_inferior): Use
6502 inf_child_mourn_inferior.
6503 * gnu-nat.c (gnu_mourn_inferior): Likewise.
6504 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
6505 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
6506 * nto-procfs.c (procfs_mourn_inferior): Likewise.
6507 * windows-nat.c (windows_mourn_inferior): Likewise.
6508
5c6d4fb2
DE
65092014-05-21 Doug Evans <xdje42@gmail.com>
6510
250748cb 6511 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5c6d4fb2 6512
4a2722c5
DE
65132014-05-21 Doug Evans <xdje42@gmail.com>
6514
17292b30 6515 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4a2722c5
DE
6516 (gdbscm_out_of_range_error): Ditto.
6517 (gdbscm_memory_error): Ditto.
250748cb
DE
6518 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
6519 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4a2722c5
DE
6520 (gdbscm_out_of_range_error): Update.
6521 (gdbscm_memory_error): Update.
6522 (gdbscm_scm_to_target_string_unsafe): Delete.
6523
6a3cb8e8
PA
65242014-05-21 Pedro Alves <palves@redhat.com>
6525
6526 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
6527 globals.
6528 (inf_child_open_target): New function.
6529 (inf_child_open): Use inf_child_open_target to push the target
6530 instead of erroring out.
6531 (inf_child_disconnect, inf_child_close)
6532 (inf_child_maybe_unpush_target): New functions.
6533 (inf_child_target): Install inf_child_disconnect and
6534 inf_child_close. Store a pointer to the returned object.
6535 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
6536 declarations.
6537 * target.c (auto_connect_native_target): New global.
6538 (show_default_run_target): New function.
6539 (find_default_run_target): Return NULL if automatically connecting
6540 to the native target is disabled.
6541 (_initialize_target): Install set/show auto-connect-native-target.
6542 * NEWS: Mention "set auto-connect-native-target", and "target
6543 native".
6544 * linux-nat.c (super_close): New global.
6545 (linux_nat_close): Call super_close.
6546 (linux_nat_add_target): Store a pointer to the base class's
6547 to_close method.
6548 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
6549 inf_child_maybe_unpush.
6550 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
6551 already pushed.
6552 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
6553 the inferior. Use inf_child_maybe_unpush_target.
6554 (inf_ttrace_attach): Don't push the target if it is already
6555 pushed.
6556 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
6557 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
6558 after mourning the inferior. Use inf_child_maybe_unpush_target.
6559 (darwin_attach_pid): Don't push the target if it is already
6560 pushed.
6561 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
6562 mourning the inferior. Use inf_child_maybe_unpush_target.
6563 (gnu_detach): Use inf_child_maybe_unpush_target.
6564 * go32-nat.c (go32_create_inferior): Don't push the target if it
6565 is already pushed.
6566 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
6567 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
6568 (procfs_open): Rename to ...
6569 (procfs_open_1): ... this. Add target_ops parameter. Adjust
6570 comments. Can target_preopen before changing node. Call
6571 inf_child_open_target to push the target explicitly.
6572 (procfs_attach): Don't push the target if it is already pushed.
6573 (procfs_detach): Use inf_child_maybe_unpush_target.
6574 (procfs_create_inferior): Don't push the target if it is already
6575 pushed.
6576 (nto_native_ops): New global.
6577 (procfs_open): Reimplement.
6578 (procfs_native_open): New function.
6579 (init_procfs_targets): Install procfs_native_open as to_open of
6580 "target native". Store a pointer to the "native" target in
6581 nto_native_ops.
6582 * procfs.c (procfs_attach): Don't push the target if it is already
6583 pushed.
6584 (procfs_detach): Use inf_child_maybe_unpush_target.
6585 (procfs_mourn_inferior): Only unpush the target after mourning the
6586 inferior. Use inf_child_maybe_unpush_target.
6587 (procfs_init_inferior): Don't push the target if it is already
6588 pushed.
6589 * windows-nat.c (do_initial_windows_stuff): Don't push the target
6590 if it is already pushed.
6591
930ee1b1
PA
65922014-05-21 Pedro Alves <palves@redhat.com>
6593
6594 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
6595 and "procfs" targets are now called "native" instead.
6596
1f5d1b13
PA
65972014-05-21 Pedro Alves <palves@redhat.com>
6598
6599 * go32-nat.c (go32_open): Delete.
6600 (go32_target): Don't override the to_open method.
6601
132f8e03
PA
66022014-05-21 Pedro Alves <palves@redhat.com>
6603
6604 * nto-procfs.c (procfs_can_run): New function.
6605 (nto_procfs_ops): New global.
6606 (init_procfs_targets): New, based on procfs_target. Install
6607 "target native" in addition to "target procfs".
6608 (_initialize_procfs): Call init_procfs_targets instead of adding
6609 the target here.
6610
03c136c3
PA
66112014-05-21 Pedro Alves <palves@redhat.com>
6612
6613 * windows-nat.c (windows_target): Don't override to_shortname,
6614 to_longname or to_doc.
6615
a635d0f3
PA
66162014-05-21 Pedro Alves <palves@redhat.com>
6617
6618 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
6619 to_doc.
6620
4f9b5133
PA
66212014-05-21 Pedro Alves <palves@redhat.com>
6622
6623 * darwin-nat.c (_initialize_darwin_inferior): Don't override
6624 to_shortname, to_longname or to_doc.
6625
bc85afde
PA
66262014-05-21 Pedro Alves <palves@redhat.com>
6627
6628 * go32-nat.c (go32_target): Don't override to_shortname,
6629 to_longname or to_doc.
6630
4ebfc96e
PA
66312014-05-21 Pedro Alves <palves@redhat.com>
6632
6633 * inf-child.c (inf_child_open): Remove mention of "child".
6634 (inf_child_target): Rename target to "native" instead of "child".
6635
2648dfed
AA
66362014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6637
6638 * Makefile.in (SFILES): Delete "regset.c".
6639 (COMMON_OBS): Delete "regset.o".
6640 * regset.c: Remove.
6641 * regset.h (regset_alloc): Delete prototype.
6642
b13feb94
AA
66432014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6644
6645 * sparc-linux-tdep.c (sparc32_linux_gregset)
6646 (sparc32_linux_fpregset): New static regset structures.
6647 (sparc32_linux_init_abi): Drop dynamic regset allocations.
6648 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
6649 'fpregset' fields.
6650 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
6651 (sparc64_linux_fpregset): New static regset structures.
6652 (sparc64_linux_init_abi): Drop dynamic regset allocations.
6653 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
6654 New static regset structures.
6655 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
6656 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
6657 New static regset structures.
6658 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
6659 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
6660 New static regset structures.
6661 (sparc64obsd_init_abi): Drop dynamic regset allocations.
6662 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
6663 New static regset structures.
6664 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
6665
b4fd25c9
AA
66662014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6667
6668 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
6669 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
6670 register maps ("regmaps") from "*regset" to "*regmap". Do this
6671 for all regmap types and variables.
6672 * sparc-linux-tdep.c (sparc32_linux_step_trap)
6673 (sparc32_linux_supply_core_gregset)
6674 (sparc32_linux_collect_core_gregset)
6675 (sparc32_linux_supply_core_fpregset)
6676 (sparc32_linux_collect_core_fpregset): Likewise.
6677 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
6678 (sparc_gregmap, sparc_fpregmap): ... these.
6679 (sparc_supply_gregset, sparc_collect_gregset)
6680 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6681 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
6682 (_initialize_sparc_nat): Rename regmaps.
6683 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
6684 (sparc_gregmap, sparc_fpregmap): ... these.
6685 (sparc_supply_gregset, sparc_collect_gregset)
6686 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6687 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
6688 Rename macros to...
6689 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
6690 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
6691 Likewise.
6692 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
6693 Rename to...
6694 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
6695 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
6696 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
6697 regmaps.
6698 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6699 (sparc32_bsd_fpregset): Rename to...
6700 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6701 (sparc32_bsd_fpregmap): ... these.
6702 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
6703 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6704 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
6705 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
6706 (struct sparc_gregmap, struct sparc_fpregmap)
6707 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6708 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
6709 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
6710 (sparc32_supply_regset, sparc32_collect_gregset)
6711 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
6712 prototypes.
6713 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
6714 (sparc64_linux_ptrace_gregmap): ... this.
6715 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
6716 (_initialize_sparc64_linux_nat): Rename regmaps.
6717 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
6718 (sparc64_linux_core_gregmap): ... this.
6719 (sparc64_linux_supply_core_gregset)
6720 (sparc64_linux_collect_core_gregset)
6721 (sparc64_linux_supply_core_fpregset)
6722 (sparc64_linux_collect_core_fpregset): Rename regmaps.
6723 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
6724 (sparc64_sol2_fpregset): Rename to...
6725 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
6726 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
6727 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
6728 regmaps.
6729 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
6730 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
6731 (sparc64_bsd_fpregset): Rename to...
6732 (struct sparc_gregmap, sparc64_sol2_gregmap)
6733 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
6734 (sparc64_bsd_fpregmap): ... these.
6735 (sparc64_supply_gregset, sparc64_collect_gregset)
6736 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
6737 prototypes.
6738 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
6739 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
6740 (sparc64fbsd_gregmap): ... this.
6741 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
6742 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
6743 Rename regmaps.
6744 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
6745 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
6746 (sparc64nbsd_collect_fpregset): Likewise.
6747 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
6748 (sparc64nbsd_gregmap): ... this.
6749 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
6750 regmaps.
6751 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
6752 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
6753 (sparc64obsd_gregmap): ... this.
6754 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
6755 regmaps.
6756 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
6757 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
6758 (sparc32nbsd_gregmap): ... this.
6759 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
6760 regmaps.
6761
8fea3224
AA
67622014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6763
6764 * score-tdep.c (score7_linux_gregset): New static regset
6765 structure.
6766 (score7_linux_regset_from_core_section): Remove dynamic regset
6767 allocation.
6768 (score_gdbarch_init): Drop allocation of tdep structure.
6769 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
6770
24534243
AA
67712014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6772
6773 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
6774 regset structures.
6775 (am33_regset_from_core_section): Remove dynamic regset
6776 allocations.
6777
b7195f27
AA
67782014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6779
6780 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
6781 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
6782 structures.
6783 (mips_linux_regset_from_core_section): Remove dynamic regset
6784 allocations.
6785 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6786 'gregset64', 'fpregset', and 'fpregset64'.
6787 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
6788 deleted tdep fields.
6789
ecc37a5a
AA
67902014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6791
6792 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
6793 regset structures.
6794 (amd64_regset_from_core_section): Remove dynamic regset
6795 allocations.
6796 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
6797 structure.
6798 (amd64obsd_regset_from_core_section): Remove dynamic regset
6799 allocation.
6800 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
6801 Likewise.
6802 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
6803 x86-common regset supply function.
6804 * i386-tdep.c (i386_collect_gregset): Make static.
6805 (i386_gregset): New global regset structure.
6806 (i386_fpregset, i386_xstateregset): New static regset structures.
6807 (i386_regset_from_core_section): Remove dynamic regset
6808 allocations.
6809 (i386_gdbarch_init): Remove initialization of tdep fields
6810 'gregset', 'fpregset', and 'xstateregset'.
6811 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6812 'fpregset', and 'xstateregset'.
6813 (i386_collect_gregset): Remove prototype.
6814 (i386_gregset): New declaration.
6815 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
6816 structure.
6817 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
6818 allocation.
6819
b7611c43
AA
68202014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6821
6822 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
6823 (arm_linux_vfpregset): New static regset structures.
6824 (arm_linux_regset_from_core_section): Remove dynamic allocation of
6825 regset structures.
6826 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
6827 and 'vfpregset' fields.
6828
a069a2bd
AA
68292014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6830
6831 * aarch64-linux-tdep.c (aarch64_linux_gregset)
6832 (aarch64_linux_fpregset): New static regset structures.
6833 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
6834 of regset structures.
6835 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
6836 'fpregset' fields.
6837
09424cff
AA
68382014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6839
6840 * regset.h (struct regset): Remove gdbarch field.
6841 * regset.c (regset_alloc): Drop initialization of gdbarch field.
6842 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6843 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
6844 Likewise.
6845 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
6846 (ppc32_linux_fpregset, ppc32_linux_vrregset)
6847 (ppc32_linux_vsxregset): Likewise.
6848 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
6849 via the regcache instead of the regset.
6850 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
6851 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
6852 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
6853 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
6854 Likewise.
6855
3ca7dae4
AA
68562014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6857
6858 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
6859 Constify structures.
6860 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
6861 (alphanbsd_aout_gregset): Likewise.
6862 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
6863 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
6864 Likewise.
6865 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
6866 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
6867 Likewise.
6868 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
6869 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
6870 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
6871 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
6872 * m88k-tdep.c (m88k_gregset): Likewise.
6873 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
6874 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
6875 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6876 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
6877 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
6878 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
6879 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
6880 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
6881 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
6882 Likewise.
6883 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
6884 * sh-tdep.h (sh_corefile_gregset): Likewise.
6885 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
6886 * vax-tdep.c (vax_gregset): Likewise.
6887
5876f503
JK
68882014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6889
6890 Fix TLS access for -static -pthread.
6891 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
6892 (try_thread_db_load_1): Initialize it.
6893 (thread_db_get_thread_local_address): Call it if LM is zero.
6894 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
6895 * target.h (struct target_ops) (to_get_thread_local_address): Add
6896 load_module_addr comment.
6897
0256a6ac
PA
68982014-05-21 Pedro Alves <palves@redhat.com>
6899
6900 * dcache.c (dcache_read_memory_partial): If reading the cache line
6901 fails, fallback to reading just the memory the caller wanted.
6902
227533ac
DE
69032014-05-20 Doug Evans <dje@google.com>
6904
6905 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
6906 instead of get_current_arch.
6907
936d2992
PA
69082014-05-20 Pedro Alves <palves@redhat.com>
6909
6910 * NEWS: Mention that compare-sections now works with all targets.
6911
6912 * remote.c (PACKET_qCRC): New enum value.
6913 (remote_verify_memory): Don't send qCRC if the target has no
6914 execution. Use packet_support/packet_ok. If the target doesn't
6915 support the qCRC packet, fallback to a deep memory copy.
6916 (compare_sections_command): Say "target image" instead of "remote
6917 executable".
6918 (_initialize_remote): Add PACKET_qCRC to the list of config
6919 packets that have no associated command. Extend comment.
6920 * target.c (simple_verify_memory, default_verify_memory): New
6921 function.
6922 * target.h (struct target_ops) <to_verify_memory>: Default to
6923 default_verify_memory.
6924 (simple_verify_memory): New declaration.
6925 * target-delegates.c: Regenerate.
6926
e59fa00f
MM
69272014-05-20 Markus Metzger <markus.t.metzger@intel.com>
6928
6929 * record-btrace.c (record_btrace_step_thread): Check for empty history.
6930
f2205de0
HZ
69312014-05-20 Hui Zhu <hui@codesourcery.com>
6932 Yao Qi <yao@codesourcery.com>
6933
6934 PR backtrace/16558
6935 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
6936 and change address of sp and pc.
6937
c4e54771
TT
69382014-05-19 Tom Tromey <tromey@redhat.com>
6939
6940 * gdbtypes.c (rank_function): Use XNEWVEC.
6941 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
6942
73051182
DE
69432014-05-19 Doug Evans <dje@google.com>
6944
6945 * dwarf2read.c (build_type_psymtabs_1): Renamed from
6946 build_type_unit_groups and moved closer to only caller. Remove
6947 arguments. All references updated. Remove outdated .gdb_index
6948 comment.
6949 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
6950 build_type_psymtabs_1.
6951
8832e7e3
DE
69522014-05-19 Doug Evans <dje@google.com>
6953
6954 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
6955 n_type_unit_groups, all_type_unit_groups. All uses removed.
6956 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
6957 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
6958 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
6959 (add_type_unit_group_to_table): Delete.
6960
cd8ae15e
DE
69612014-05-19 Doug Evans <dje@google.com>
6962
6963 * eval.c (evaluate_subexp_standard): Add some comments.
6964
08f4850b
DE
69652014-05-17 Doug Evans <xdje42@gmail.com>
6966
6967 * progspace.c (remove_program_space): Delete, unused.
6968 * progspace.h (remove_program_space): Ditto.
6969
bed8455c
DE
69702014-05-17 Doug Evans <xdje42@gmail.com>
6971
6972 * inferior.c (prune_inferiors): Fix comment.
6973 (remove_inferior_command): Call prune_program_spaces.
6974
8d551b02
DE
69752014-05-16 Doug Evans <dje@google.com>
6976
6977 New command line option -D.
6978 * NEWS: Mention it.
6979 * main.c (set_gdb_data_directory): New function.
6980 (captured_main): Recognize -D. Flag error for --data-directory "".
6981 Call set_gdb_data_directory.
6982 (print_gdb_help): Print --data-directory, -D.
6983 * main.h (set_gdb_data_directory): Declare.
6984 * top.c (staged_gdb_datadir): New static global.
6985 (set_gdb_datadir): Call set_gdb_data_directory
6986 (show_gdb_datadir): New function.
6987 (init_main): Update init of data-directory parameter.
6988
18848e28
GF
69892014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
6990
6991 Import the "dirfd" gnulib module.
6992 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
6993 * gnulib/aclocal.m4: Update.
6994 * gnulib/config.in: Update.
6995 * gnulib/configure: Update.
6996 * gnulib/import/Makefile.am: Update.
6997 * gnulib/import/Makefile.in: Update.
6998 * gnulib/import/dirfd.c: New.
6999 * gnulib/import/m4/dirfd.m4: New.
7000 * gnulib/import/m4/gnulib-cache.m4: Update.
7001 * gnulib/import/m4/gnulib-comp.m4: Update.
7002
95c64f92
YQ
70032014-05-16 Pierre Muller <muller@sourceware.org>
7004 Yao Qi <yao@codesourcery.com>
7005
7006 * valprint.c (print_wchar): Move the code on checking whether
7007 W is a printable wide char to the default branch of switch
7008 statement below. Call wchar_printable instead of gdb_iswprint.
7009
cac395ea
TM
70102014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
7011
19679eca 7012 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
cac395ea
TM
7013 ldr.w and ldrd instructions.
7014
83655187
DE
70152014-05-15 Doug Evans <dje@google.com>
7016
7017 * dwarf2read.c (read_structure_type): Delete outdated comments.
7018
dd756689
TT
70192014-05-14 Tom Tromey <tromey@redhat.com>
7020
7021 * macrocmd.c (print_macro_definition): Reindent.
7022
75ddda77
DE
70232014-05-13 Doug Evans <xdje42@gmail.com>
7024
7025 * python/py-cmd.c (cmdpy_completer): Add comment.
7026 (completers): Make const.
7027
b0f16a3e
SM
70282014-05-13 Simon Marchi <simon.marchi@ericsson.com>
7029
7030 * infrun.c (resume): Remove should_resume (unused). Move up
7031 declaration of resume_ptid.
7032
033c3379
TT
70332014-05-13 Tom Tromey <tromey@redhat.com>
7034
7035 * language.h (unop_type_check): Remove.
7036 (binop_type_check): Don't declare.
7037
9b44a3a5
AA
70382014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
7039
7040 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
7041 call to regcache_raw_collect.
7042
303a33fa
SM
70432014-05-12 Simon Marchi <simon.marchi@ericsson.com>
7044
7045 * mi/mi-console.c (mi_console_raw_packet): Use the value from
7046 mi_console->quote as the quoting character.
7047
196100a0
SM
70482014-05-12 Simon Marchi <simon.marchi@ericsson.com>
7049
7050 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
7051
f989a1c8
TT
70522014-04-29 Tom Tromey <tromey@redhat.com>
7053
7054 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
7055 "show debug varobj".
7056
9404b58f
KM
70572014-05-07 Kyle McMartin <kyle@redhat.com>
7058
7059 Pushed by Joel Brobecker <brobecker@adacore.com>.
7060 * aarch64-tdep.c (aarch64_software_single_step): New function.
7061 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
7062 with aarch64_software_single_step.
7063
5e49ba57
JB
70642014-05-05 Joel Brobecker <brobecker@adacore.com>
7065
7066 GDB 7.7.1 released.
7067
c888a17d
KS
70682014-05-05 Keith Seitz <keiths@redhat.com>
7069
7070 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
7071 variable or history value is successfully parsed.
7072
290a839c
YQ
70732014-05-05 Yao Qi <yao@codesourcery.com>
7074 Pedro Alves <palves@redhat.com>
7075
7076 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
7077 address of blocks that intersects the requested range. Trim
7078 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
7079 sections.
7080 * ctf.c (ctf_xfer_partial): Likewise.
7081
91256dc2
YQ
70822014-05-05 Yao Qi <yao@codesourcery.com>
7083
7084 * printcmd.c (display_command): Remove the check to
7085 target_has_execution.
7086
07284463
MK
70872014-05-03 Mark Kettenis <kettenis@gnu.org>
7088
7089 * ppcobsd-nat.c: Include "obsd-nat.h".
7090 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
7091 add_target.
7092 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
7093
30a1e6cc
SDJ
70942014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
7095
7096 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
7097 and 16-bit signed and unsigned arguments. Update comment.
7098 (stap_parse_probe_arguments): Extend code to handle such
7099 arguments. Use warning instead of complaint to notify about
7100 unrecognized bitness.
7101
f33da99a
SDJ
71022014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
7103
7104 PR breakpoints/16889
7105 * stap-probe.c (stap_parse_probe_arguments): Simplify
7106 check for non-prefixed probes (i.e., probes whose
7107 arguments do not start with "N@"). Always set the
7108 argument type to a sane value.
7109
95cf3b38
DT
71102014-05-01 David Taylor <dtaylor@emc.com>
7111
7112 * remote.c (compare_sections_command): Add -r option to compare
7113 all loadable read-only sections.
7114
1cfdf534
SC
71152014-04-30 Siva Chandra Reddy <sivachandra@google.com>
7116
7117 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
7118 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
7119 Update all callers.
7120 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
7121 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
7122 Remove unused CORE_ADDR argument. Update all callers.
7123
ca4f7f8b
PA
71242014-04-29 Pedro Alves <palves@redhat.com>
7125
7126 * remote.c (struct packet_config) <detect>: Extend comment.
7127 (add_packet_config_cmd): Don't set the config's detect or support
7128 fields here.
7129 (init_all_packet_configs): Also initialize the config's 'detect'
7130 field.
7131 (reset_all_packet_configs_support): New function.
7132 (remote_open_1): Call reset_all_packet_configs_support instead of
7133 init_all_packet_configs.
7134 (_initialize_remote): Initialize all packet configs. Assert that
7135 all packets have an associated command, except a few known
7136 outliers.
7137
11c1ba78
JB
71382014-04-28 Joel Brobecker <brobecker@adacore.com>
7139
7140 * dwarf2read.c (read_subrange_type): Handle dynamic
7141 DW_AT_lower_bound attributes.
7142
8739bc53
JB
71432014-04-28 Joel Brobecker <brobecker@adacore.com>
7144
7145 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
7146 dynamic bounds before computing its upper bound.
7147 (ada_discrete_type_low_bound): Same as above with the lower bound.
7148
6f8a3220
JB
71492014-04-28 Joel Brobecker <brobecker@adacore.com>
7150
7151 * dwarf2read.c (is_dynamic_type): Return true for dynamic
7152 range types. Adjust the array handling implementation to
7153 take advantage of this change.
7154 (resolve_dynamic_range): New function, mostly extracted from
7155 resolve_dynamic_bounds.
7156 (resolve_dynamic_array): New function, mostly extracted from
7157 resolve_dynamic_bounds.
7158 (resolve_dynamic_bounds): Delete.
7159 (resolve_dynamic_type): Reimplement. Add handling of
7160 TYPE_CODE_RANGE types.
7161
4d072ce4
JB
71622014-04-28 Joel Brobecker <brobecker@adacore.com>
7163
7164 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
7165 handling of parallel ___XA types.
7166
52865325
JB
71672014-04-28 Joel Brobecker <brobecker@adacore.com>
7168
7169 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
7170 unnecessary second call to static_unwrap_type.
7171
433e77fa
HZ
71722014-04-27 Hui Zhu <hui@codesourcery.com>
7173
7174 * stack.c (print_frame_info): Call do_gdb_disassembly with
7175 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
7176
b51a69ee
DE
71772014-04-26 Doug Evans <xdje42@gmail.com>
7178
7179 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
7180
7ae1a6a6
PA
71812014-04-25 Pedro Alves <palves@redhat.com>
7182
7183 PR server/16255
7184 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
7185 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
7186 and newline from built string.
7187 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
7188 (linux_ptrace_attach_fail_reason): ... this.
7189 * linux-nat.c (linux_nat_attach): Adjust to use
7190 linux_ptrace_attach_fail_reason.
7191
4082afcc
PA
71922014-04-25 Pedro Alves <palves@redhat.com>
7193
7194 * remote.c (struct remote_state): Remove multi_process_aware,
7195 non_stop_aware, cond_tracepoints, cond_breakpoints,
7196 breakpoint_commands, fast_tracepoints, static_tracepoints,
7197 install_in_trace, disconnected_tracing,
7198 enable_disable_tracepoints, string_tracing, and
7199 augmented_libraries_svr4_read fields.
7200 (remote_multi_process_p): Move further below in the file.
7201 (struct packet_config): Add comments.
7202 (update_packet_config): Delete function.
7203 (show_packet_config_cmd): Use packet_config_support.
7204 (add_packet_config_cmd): Use NULL as set callback.
7205 (packet_ok): "set remote foo-packet"-style commands no longer
7206 change config->supported -- adjust.
7207 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
7208 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
7209 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
7210 (PACKET_QNonStop, PACKET_multiprocess_feature)
7211 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
7212 (PACKET_DisconnectedTracing_feature)
7213 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
7214 (set_remote_protocol_packet_cmd): Delete function.
7215 (packet_config_support, packet_support): New functions.
7216 (set_remote_protocol_Z_packet_cmd): Don't call
7217 update_packet_config.
7218 (remote_query_attached, remote_pass_signals)
7219 (remote_program_signals, remote_threads_info)
7220 (remote_threads_extra_info, remote_start_remote): Use
7221 packet_support.
7222 (remote_start_remote): Use packet_config_support and
7223 packet_support.
7224 (init_all_packet_configs): Set all packets to unknown support,
7225 instead of calling update_packet_config.
7226 (remote_check_symbols): Use packet_support.
7227 (remote_supported_packet): Unconditionally set the packet config's
7228 support status.
7229 (remote_multi_process_feature, remote_non_stop_feature)
7230 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
7231 (remote_breakpoint_commands_feature)
7232 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
7233 (remote_install_in_trace_feature)
7234 (remote_disconnected_tracing_feature)
7235 (remote_enable_disable_tracepoint_feature)
7236 (remote_string_tracing_feature)
7237 (remote_augmented_libraries_svr4_read_feature): Delete functions.
7238 (remote_protocol_features): Adjust to use remote_supported_packet
7239 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
7240 "ConditionalTracepoints", "ConditionalBreakpoints",
7241 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
7242 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
7243 "EnableDisableTracepoints", and "tracenz".
7244 (remote_query_supported): Use packet_support.
7245 (remote_open_1): Adjust.
7246 (extended_remote_attach_1): Use packet_support. Switch on the
7247 result of packet_ok instead of checking whether the packet ended
7248 up disabled.
7249 (remote_vcont_resume): Use packet_support.
7250 (remote_resume, remote_stop_ns, fetch_register_using_p)
7251 (remote_prepare_to_store, store_register_using_P)
7252 (check_binary_download, remote_write_bytes): Use packet_support.
7253 (remote_vkill): Use packet_support. Switch on the result of
7254 packet_ok instead of checking whether the packet ended up
7255 disabled.
7256 (extended_remote_supports_disable_randomization): Use
7257 packet_support.
7258 (extended_remote_run): Switch on the result of packet_ok instead
7259 of checking whether the packet ended up disabled.
7260 (remote_insert_breakpoint, remote_remove_breakpoint)
7261 (remote_insert_watchpoint, remote_remove_watchpoint)
7262 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
7263 packet_support.
7264 (remote_search_memory): Use packet_config_support.
7265 (remote_get_thread_local_address, remote_get_tib_address)
7266 (remote_hostio_send_command, remote_can_execute_reverse): Use
7267 packet_support.
7268 (remote_supports_cond_tracepoints)
7269 (remote_supports_cond_breakpoints)
7270 (remote_supports_fast_tracepoints)
7271 (remote_supports_static_tracepoints)
7272 (remote_supports_install_in_trace)
7273 (remote_supports_enable_disable_tracepoint)
7274 (remote_supports_string_tracing)
7275 (remote_can_run_breakpoint_commands): Rewrite, checking whether
7276 the packet config says the feature is enabled or disabled.
7277 (remote_download_tracepoint, remote_trace_set_readonly_regions)
7278 (remote_get_trace_status): Use packet_support.
7279 (remote_set_disconnected_tracing): Adjust to check whether the
7280 feature is enabled with packet_support.
7281 (remote_set_trace_buffer_size, remote_use_agent)
7282 (remote_can_use_agent, remote_supports_btrace): Use
7283 packet_support.
7284 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
7285 Use packet_config_support.
7286 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
7287 the packet config says the feature is enabled or disabled.
7288 (set_range_stepping): Use packet_support.
7289
bdb52a22
TT
72902014-04-25 Tom Tromey <tromey@redhat.com>
7291
7292 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
7293 argument.
7294
e9475ead
SA
72952014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
7296
7297 * NEWS: Mention support for C99 variable length arrays.
7298
82eacd52
JB
72992014-04-24 Joel Brobecker <brobecker@adacore.com>
7300
7301 * ada-lang.c (standard_exc): Expand introductory comment.
7302
01f9f808
MS
73032014-04-24 Michael Sturm <michael.sturm@mintel.com>
7304 Walfred Tedeschi <walfred.tedeschi@intel.com>
7305
7306 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
7307 AVX512 registers.
7308 (amd64_linux_read_description): Add code to handle AVX512 xstate
7309 mask and return respective tdesc.
7310 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
7311 and features/i386/x32-avx512-linux.c.
7312 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
7313 (amd64_linux_core_read_description): Add code to handle AVX512
7314 xstate mask and return respective tdesc.
7315 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
7316 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
7317 calculation.
7318 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
7319 (tdesc_amd64_avx512_linux): New prototype.
7320 (tdesc_x32_avx512_linux): Likewise.
7321 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
7322 features/i386/x32-avx512.c.
7323 (amd64_ymm_avx512_names): New register names for pseudo
7324 registers YMM16-31.
7325 (amd64_ymmh_avx512_names): New register names for raw registers
7326 YMMH16-31.
7327 (amd64_k_names): New register names for K registers.
7328 (amd64_zmmh_names): New register names for ZMM raw registers.
7329 (amd64_zmm_names): New registers names for ZMM pseudo registers.
7330 (amd64_xmm_avx512_names): New register names for XMM16-31
7331 registers.
7332 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
7333 registers.
7334 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
7335 if feature is present.
7336 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
7337 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
7338 (AMD64_NUM_REGS): Adjust to new number of registers.
7339 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
7340 registers supplied via XSTATE by AVX512 registers.
7341 (i386_linux_read_description): Add case for AVX512.
7342 * i386-linux-tdep.c: Include i386-avx512-linux.c.
7343 (i386_linux_gregset_reg_offset): Add AVX512 registers.
7344 (i386_linux_core_read_description): Add case for AVX512.
7345 (i386_linux_init_abi): Install supported register note section
7346 for AVX512.
7347 (_initialize_i386_linux_tdep): Add call to tdesc init function for
7348 AVX512.
7349 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
7350 registers to be number of zmm7h + 1.
7351 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
7352 * i386-tdep.c: Include features/i386/i386-avx512.c.
7353 (i386_zmm_names): Add ZMM pseudo register names array.
7354 (i386_zmmh_names): Add ZMM raw register names array.
7355 (i386_k_names): Add K raw register names array.
7356 (num_lower_zmm_regs): Add constant for the number of lower ZMM
7357 registers. AVX512 has 16 more ZMM registers than there are YMM
7358 registers.
7359 (i386_zmmh_regnum_p): Add function to look up register number of
7360 ZMM raw registers.
7361 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
7362 (i386_k_regnum_p): Likewise for K raw registers.
7363 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
7364 registers added by AVX512.
7365 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
7366 registers added by AVX512.
7367 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
7368 added by AVX512.
7369 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
7370 (i386_pseudo_register_name): Add ZMM pseudo registers.
7371 (i386_zmm_type): Construct and return vector registers type for ZMM
7372 registers.
7373 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
7374 ZMM0-31 pseudo registers and K registers.
7375 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
7376 and YMM16-31 registers from register cache.
7377 (i386_pseudo_register_write): Add code to write K, ZMM and
7378 YMM16-31 registers.
7379 (i386_register_reggroup_p): Add code to include/exclude AVX512
7380 registers in/from respective register groups.
7381 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
7382 registers if feature is present in xcr0.
7383 (i386_gdbarch_init): Add code to initialize AVX512 feature
7384 variables in tdep structure, wire in pseudo registers and call
7385 initialize_tdesc_i386_avx512.
7386 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
7387 variables.
7388 (i386_regnum): Add AVX512 registers.
7389 (I386_SSE_NUM_REGS): New define for number of SSE registers.
7390 (I386_AVX_NUM_REGS): Likewise for AVX registers.
7391 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
7392 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
7393 512 bits wide.
7394 (i386_xmm_avx512_regnum_p): New prototype for register look up.
7395 (i386_ymm_avx512_regnum_p): Likewise.
7396 (i386_k_regnum_p): Likewise.
7397 (i386_zmm_regnum_p): Likewise.
7398 (i386_zmmh_regnum_p): Likewise.
7399 * i387-tdep.c : Update year in copyright notice.
7400 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
7401 XSAVE buffer.
7402 (XSAVE_YMM_AVX512_ADDR): New macro.
7403 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
7404 XSAVE buffer.
7405 (XSAVE_XMM_AVX512_ADDR): New macro.
7406 (xsave_avx512_k_offset): New table for K register offsets in
7407 XSAVE buffer.
7408 (XSAVE_AVX512_K_ADDR): New macro.
7409 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
7410 in XSAVE buffer.
7411 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
7412 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
7413 buffer.
7414 (i387_collect_xsave): Add code to collect AVX512 registers from
7415 XSAVE buffer.
7416 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
7417 of XMM16-31 registers.
7418 (I387_NUM_K_REGS): New define for number of K registers.
7419 (I387_K0_REGNUM): New define for K0 register number.
7420 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
7421 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
7422 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
7423 registers.
7424 (I387_YMM16H_REGNUM): New define for YMM16H register number.
7425 (I387_XMM16_REGNUM): New define for XMM16 register number.
7426 (I387_YMM0_REGNUM): New define for YMM0 register number.
7427 (I387_KEND_REGNUM): New define for last K register number.
7428 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
7429 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
7430 number.
7431 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
7432 number.
7433 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
7434 size.
7435 * features/Makefile: Add AVX512 related files.
7436 * features/i386/32bit-avx512.xml: New file.
7437 * features/i386/64bit-avx512.xml: Likewise.
7438 * features/i386/amd64-avx512-linux.c: Likewise.
7439 * features/i386/amd64-avx512-linux.xml: Likewise.
7440 * features/i386/amd64-avx512.c: Likewise.
7441 * features/i386/amd64-avx512.xml: Likewise.
7442 * features/i386/i386-avx512-linux.c: Likewise.
7443 * features/i386/i386-avx512-linux.xml: Likewise.
7444 * features/i386/i386-avx512.c: Likewise.
7445 * features/i386/i386-avx512.xml: Likewise.
7446 * features/i386/x32-avx512-linux.c: Likewise.
7447 * features/i386/x32-avx512-linux.xml: Likewise.
7448 * features/i386/x32-avx512.c: Likewise.
7449 * features/i386/x32-avx512.xml: Likewise.
7450 * regformats/i386/amd64-avx512-linux.dat: New file.
7451 * regformats/i386/amd64-avx512.dat: Likewise.
7452 * regformats/i386/i386-avx512-linux.dat: Likewise.
7453 * regformats/i386/i386-avx512.dat: Likewise.
7454 * regformats/i386/x32-avx512-linux.dat: Likewise.
7455 * regformats/i386/x32-avx512.dat: Likewise.
7456 * NEWS: Add note about new support for AVX512.
7457
7458
08351840
PA
74592014-04-23 Pedro Alves <palves@redhat.com>
7460
7461 * breakpoint.c (insert_bp_location): Tolerate errors if the
7462 breakpoint is set in a user-loaded objfile.
7463 (remove_breakpoint_1): Likewise. Also tolerate errors if the
7464 location is marked shlib_disabled. If the breakpoint is set in a
7465 user-loaded objfile is a GDB-side memory breakpoint, validate it
7466 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
7467 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
7468 flag.
7469 * mem-break.c (memory_validate_breakpoint): New function.
7470 * objfiles.c (userloaded_objfile_contains_address_p): New
7471 function.
7472 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
7473 * target.h (memory_validate_breakpoint): New declaration.
7474
076855f9
PA
74752014-04-23 Pedro Alves <palves@redhat.com>
7476
7477 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
7478 the breakpoint is set in a shared library, only suppress
7479 errors for software breakpoints, not hardware breakpoints.
7480
483805cf
PA
74812014-04-22 Pedro Alves <palves@redhat.com>
7482
7483 * infrun.c (schedlock_applies): New function, factored out from
7484 find_thread_needs_step_over.
7485 (find_thread_needs_step_over): Use it.
7486 (switch_back_to_stepped_thread): Always clear trap_expected if the
7487 step over is finished. Return early if scheduler locking applies.
7488 Look for the stepping thread and a potential step-over thread with
7489 a single loop.
7490 (currently_stepping_or_nexting_callback): Delete.
7491
a75fef0e
NC
74922014-04-22 Nick Clifton <nickc@redhat.com>
7493
7494 * NEWS: Mention that ARM sim now supports tracing.
7495
48b6e87e
YQ
74962014-04-22 Yao Qi <yao@codesourcery.com>
7497
7498 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
7499 to ...
7500 * tracefile.c (tracefile_fetch_registers): ... it. New
7501 function.
7502 * tracefile.h (tracefile_fetch_registers): Declare.
7503 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
7504 tracefile_fetch_registers.
7505
17617f2d
EZ
75062014-04-19 Eli Zaretskii <eliz@gnu.org>
7507
7508 PR gdb/14018
7509 * windows-nat.c (thread_rec): Don't display a warning when
7510 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
7511 fails for any reason, set th->suspended to -1, so that we don't
7512 try to resume such a thread. Also, don't return NULL in these
7513 cases, to avoid completely ruin the session due to "PC register is
7514 not available" error.
7515 (do_windows_fetch_inferior_registers): Check errors in
7516 GetThreadContext call.
7517 (windows_continue): Accept an additional argument KILLED; if not
7518 zero, ignore errors in the SetThreadContext call, since the
7519 inferior was killed and is shutting down.
7520 (windows_resume, get_windows_debug_event)
7521 (windows_create_inferior, windows_mourn_inferior)
7522 (windows_kill_inferior): All callers of windows_continue changed
7523 to adjust to its new calling sequence.
7524
5723a6fd
YQ
75252014-04-19 Yao Qi <yao@codesourcery.com>
7526
7527 * ctf.c (ctf_open): Call post_create_inferior.
7528
614d5099
YQ
75292014-04-19 Yao Qi <yao@codesourcery.com>
7530
7531 * ctf.c (handle_id): New static variable.
7532 (ctf_open_dir): Get handle_id from bt_context_add_trace return
7533 value. Get the declaration of event "register" and get length
7534 of field "contents".
7535
dac3e710
YQ
75362014-04-19 Yao Qi <yao@codesourcery.com>
7537
7538 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
7539
2bca57ba
SC
75402014-04-18 Siva Chandra Reddy <sivachandra@google.com>
7541
7542 * valops.c (oload_method_static): Remove unnecessary argument
7543 METHOD. Update all callers.
7544
51d48146
PA
75452014-04-18 Pedro alves <palves@redhat.com>
7546 Tom Tromey <tromey@redhat.com>
7547
7548 PR backtrace/15558
7549 * frame.c (get_prev_frame_1): Rename to ...
7550 (get_prev_frame_always): ... this, and make extern. Adjust.
7551 (skip_artificial_frames): Use get_prev_frame_always.
7552 (frame_unwind_caller_id, frame_pop, get_prev_frame)
7553 (get_frame_unwind_stop_reason): Adjust to rename.
7554 * frame.h (get_prev_frame_always): Declare.
7555 * inline-frame.c: Include frame.h.
7556 (inline_frame_this_id): Use get_prev_frame_always.
7557
1bdad2e0
TG
75582014-04-18 Tristan Gingold <gingold@adacore.com>
7559
7560 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
7561 code by using bfd_mach_o_get_base_address.
7562
7ce16bd4
UW
75632014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
7564
7565 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
7566 (spu_ax_pseudo_register_collect): New function.
7567 (spu_ax_pseudo_register_push_stack): Likewise.
7568 (spu_dwarf_reg_to_regnum): Likewise.
7569 (spu_gdbarch_init): Install them. Append DWARF unwinders.
7570
2ed3c037
UW
75712014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
7572
7573 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
7574 Replace FRAME argument with FRAME_ID.
7575 * gdbarch.c, gdbarch.h: Regenerate.
7576 * findvar.c (default_value_from_register): Add GDBARCH argument;
7577 replace FRAME by FRAME_ID. No longer call get_frame_id.
7578 (value_from_register): Update call to gdbarch_value_from_register.
7579 * value.h (default_value_from_register): Update prototype.
7580 * s390-linux-tdep.c (s390_value_from_register): Update interface
7581 and call to default_value_from_register.
7582 * spu-tdep.c (spu_value_from_register): Likewise.
7583
7584 * findvar.c (address_from_register): Remove TYPE argument.
7585 Do not call value_from_register; use gdbarch_value_from_register
7586 with null_frame_id instead.
7587 * value.h (address_from_register): Update prototype.
7588 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
7589 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
7590 address_from_register interface change.
7591
71e50e83
YQ
75922014-04-17 Yao Qi <yao@codesourcery.com>
7593
7594 * gdbtypes.h: Update comments to link to types and macros'
7595 definitions.
7596
7a23c549
SC
75972014-04-16 Siva Chandra Reddy <sivachandra@google.com>
7598
7599 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
7600
22869d73
KS
76012014-04-16 Keith Seitz <keiths@redhat.com>
7602
7603 PR gdb/15827
7604 * dwarf2read.c (skip_one_die): Check that all relative-offset
7605 sibling DIEs fall within range of the current reader's buffer.
7606 (read_partial_die): Likewise.
7607
c4f87ca6
KS
76082014-04-16 Keith Seitz <keiths@redhat.com>
7609
7610 PR c++/16597
7611 * cp-namespace.c (lookup_symbol_file): If the type name of
7612 `this' is NULL, return immediately.
7613
b50c8614
KS
76142014-04-14 Keith Seitz <keiths@redhat.com>
7615
7616 PR c++/16253
7617 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
7618 from symbol_matches_domain in symtab.c. All local callers
7619 of symbol_matches_domain updated.
7620 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
7621 search STRUCT_DOMAIN.
7622 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
7623 independently. standard_lookup will do that automatically.
7624 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
7625 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7626 (cp_lookup_symbol_in_namespace): Likewise.
7627 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
7628 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
7629 may return a STRUCT_DOMAIN match.
7630 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
7631 * cp-support.c: Include language.h.
7632 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
7633 VAR_DOMAIN.
7634 * psymtab.c (match_partial_symbol): Compare the requested
7635 domain with the symbol's domain directly.
7636 (lookup_partial_symbol): Likewise.
7637 * symtab.c (lookup_symbol_in_language): Explain when/why
7638 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7639 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
7640 appropriate languages.
7641 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
7642 and moved to ada-lang.c
7643 (lookup_block_symbol): Explain that this function only returns
7644 symbol matching the requested DOMAIN.
7645 Compare the requested domain with the symbol's domain directly.
7646 (iterate_over_symbols): Compare the requested domain with the
7647 symbol's domain directly.
7648 * symtab.h (symbol_matches_domain): Remove.
7649
3d567982
TT
76502014-04-14 Tom Tromey <tromey@redhat.com>
7651
7652 PR c++/15246:
7653 * c-exp.y (type_aggregate_p): New function.
7654 (qualified_name, classify_inner_name): Use it.
7655 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
7656 and TYPE_TARGET_TYPE of an enum type.
7657 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
7658 an enum type.
7659 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
7660 handle TYPE_DECLARED_CLASS.
7661 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
7662 types.
7663 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
7664 * valops.c (enum_constant_from_type): New function.
7665 (value_aggregate_elt): Use it.
7666 * cp-namespace.c (cp_lookup_nested_symbol): Handle
7667 TYPE_CODE_ENUM.
7668
c848d642
TT
76692014-04-14 Tom Tromey <tromey@redhat.com>
7670
7671 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
7672 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
7673 const.
7674 * value.h (value_aggregate_elt): Update.
7675
0626fc76
TT
76762014-04-14 Tom Tromey <tromey@redhat.com>
7677
7678 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
7679
5ecaaa66
SA
76802014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7681
7682 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7683 (evaluate_subexp_standard): Pass noside argument.
7684 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7685 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7686 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7687 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7688 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7689
1612e0c0
SA
76902014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7691
7692 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7693 points to a constant blob.
7694
c451ebe5
SA
76952014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7696
7697 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7698 property and store it as the high bound and flag the range accordingly.
7699 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7700 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7701 * gdbtypes.h (enum range_flags): New enum.
7702 (struct range_bounds): Add flags member.
7703
1d42e4c4
SA
77042014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7705
7706 * c-typeprint.c (c_type_print_varspec_suffix): Added
7707 check for not yet resolved high bound. If unresolved, print
7708 "variable length" string to the console instead of random
7709 length.
7710
9f1f738a
SA
77112014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7712
7713 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
7714 value.
7715 (ada_template_to_fixed_record_type_1): Likewise.
7716 (ada_to_fixed_type_1): Likewise.
7717 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7718 (cp_print_value): Likewise.
7719 * d-valprint.c (dynamic_array_type): Likewise.
7720 * findvar.c (address_of_variable): Likewise.
7721 * jv-valprint.c (java_value_print): Likewise.
7722 * valops.c (value_ind): Likewise.
7723 * value.c (coerce_ref): Likewise.
7724
3c8452d4
SA
77252014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7726
7727 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7728 value and retrieve the dynamic type size.
7729
4ad88275
SA
77302014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7731
7732 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7733 passed to sizeof is dynamic evaluate the argument to compute the length.
7734
80180f79
SA
77352014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7736 Joel Brobecker <brobecker@adacore.com>
7737
7738 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7739 (dwarf2_evaluate_property): New function.
7740 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7741 * dwarf2read.c (attr_to_dynamic_prop): New function.
7742 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7743 attribute.
7744 * gdbtypes.c: Include dwarf2loc.h.
7745 (is_dynamic_type): New function.
7746 (resolve_dynamic_type): New function.
7747 (resolve_dynamic_bounds): New function.
7748 (get_type_length): New function.
7749 (check_typedef): Use get_type_length to compute type length.
7750 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7751 (TYPE_LOW_BOUND_KIND): New macro.
7752 (is_dynamic_type): New function prototype.
7753 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7754 to resolve dynamic properties of the type. Update comment.
7755 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7756
a1556843
RH
77572014-04-14 Richard Henderson <rth@redhat.com>
7758
7759 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
7760
0be03e84
DE
77612014-04-12 Siva Chandra Reddy <sivachandra@google.com>
7762 Doug Evans <xdje42@gmail.com>
7763
7764 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
7765 dereference TYPE_CODE_REF values.
7766
6b662e19
JB
77672014-04-11 Joel Brobecker <brobecker@adacore.com>
7768
7769 Revert the following changes due to regressions:
7770
7771 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7772 (dwarf2_evaluate_property): New function.
7773 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7774 * dwarf2read.c (attr_to_dynamic_prop): New function.
7775 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7776 attribute.
7777 * gdbtypes.c: Include dwarf2loc.h.
7778 (is_dynamic_type): New function.
7779 (resolve_dynamic_type): New function.
7780 (resolve_dynamic_bounds): New function.
7781 (get_type_length): New function.
7782 (check_typedef): Use get_type_length to compute type length.
7783 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7784 (TYPE_LOW_BOUND_KIND): New macro.
7785 (is_dynamic_type): New function prototype.
7786 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7787 to resolve dynamic properties of the type. Update comment.
7788 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7789
7790 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7791 passed to sizeof is dynamic evaluate the argument to compute the length.
7792
7793 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7794 value and retrieve the dynamic type size.
7795
7796 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7797 (ada_template_to_fixed_record_type_1): Likewise.
7798 (ada_to_fixed_type_1): Likewise.
7799 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7800 (cp_print_value): Likewise.
7801 * d-valprint.c (dynamic_array_type): Likewise.
7802 * eval.c (evaluate_subexp_with_coercion): Likewise.
7803 * findvar.c (address_of_variable): Likewise.
7804 * jv-valprint.c (java_value_print): Likewise.
7805 * valops.c (value_ind): Likewise.
7806 * value.c (coerce_ref): Likewise.
7807
7808 * c-typeprint.c (c_type_print_varspec_suffix): Added
7809 check for not yet resolved high bound. If unresolved, print
7810 "variable length" string to the console instead of random
7811 length.
7812
7813 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7814 property and store it as the high bound and flag the range accordingly.
7815 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7816 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7817 * gdbtypes.h (enum range_flags): New enum.
7818 (struct range_bounds): Add flags member.
7819
7820 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7821 points to a constant blob.
7822
7823 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7824 (evaluate_subexp_standard): Pass noside argument.
7825 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7826 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7827 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7828 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7829 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7830
245a5f0b
KS
78312014-04-11 Keith Seitz <keiths@redhat.com>
7832
7833 PR c++/16675
7834 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
7835 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
7836 reference types.
7837
3bce8237
SA
78382014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7839
7840 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7841 (evaluate_subexp_standard): Pass noside argument.
7842 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7843 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7844 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7845 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7846 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7847
92b09522
SA
78482014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7849
7850 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7851 points to a constant blob.
7852
e1969afb
SA
78532014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7854
7855 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7856 property and store it as the high bound and flag the range accordingly.
7857 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7858 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7859 * gdbtypes.h (enum range_flags): New enum.
7860 (struct range_bounds): Add flags member.
7861
b86138fb
SA
78622014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7863
7864 * c-typeprint.c (c_type_print_varspec_suffix): Added
7865 check for not yet resolved high bound. If unresolved, print
7866 "variable length" string to the console instead of random
7867 length.
7868
bcd629a4
SA
78692014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7870
7871 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7872 (ada_template_to_fixed_record_type_1): Likewise.
7873 (ada_to_fixed_type_1): Likewise.
7874 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7875 (cp_print_value): Likewise.
7876 * d-valprint.c (dynamic_array_type): Likewise.
7877 * eval.c (evaluate_subexp_with_coercion): Likewise.
7878 * findvar.c (address_of_variable): Likewise.
7879 * jv-valprint.c (java_value_print): Likewise.
7880 * valops.c (value_ind): Likewise.
7881 * value.c (coerce_ref): Likewise.
7882
04b19544
SA
78832014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7884
7885 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7886 value and retrieve the dynamic type size.
7887
26cb189f
SA
78882014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7889
7890 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7891 passed to sizeof is dynamic evaluate the argument to compute the length.
7892
37c1ab67
SA
78932014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7894
7895 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7896 (dwarf2_evaluate_property): New function.
7897 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7898 * dwarf2read.c (attr_to_dynamic_prop): New function.
7899 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7900 attribute.
7901 * gdbtypes.c: Include dwarf2loc.h.
7902 (is_dynamic_type): New function.
7903 (resolve_dynamic_type): New function.
7904 (resolve_dynamic_bounds): New function.
7905 (get_type_length): New function.
7906 (check_typedef): Use get_type_length to compute type length.
7907 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7908 (TYPE_LOW_BOUND_KIND): New macro.
7909 (is_dynamic_type): New function prototype.
7910 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7911 to resolve dynamic properties of the type. Update comment.
7912 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7913
729efb13
SA
79142014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7915
7916 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
7917 declaring high/low bounds and change uses accordingly. Call
7918 create_range_type instead of create_static_range_type.
7919 * gdbtypes.c (create_range_type): New function.
7920 (create_range_type): Convert bounds into struct bound_prop and pass
7921 them to create_range_type.
7922 * gdbtypes.h (struct bound_prop): New struct.
7923 (create_range_type): New function prototype.
7924 (struct range_bounds): Use struct bound_prop instead of LONGEST for
7925 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
7926 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
7927 part of the bound.
7928 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
7929
0c9c3474
SA
79302014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7931
7932 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
7933 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
7934 * ada-lang.c: All uses of create_range_type updated.
7935 * coffread.c: All uses of create_range_type updated.
7936 * dwarf2read.c: All uses of create_range_type updated.
7937 * f-exp.y: All uses of create_range_type updated.
7938 * m2-valprint.c: All uses of create_range_type updated.
7939 * mdebugread.c: All uses of create_range_type updated.
7940 * stabsread.c: All uses of create_range_type updated.
7941 * valops.c: All uses of create_range_type updated.
7942 * valprint.c: All uses of create_range_type updated.
7943
9d497a19
PA
79442014-04-10 Pedro Alves <palves@redhat.com>
7945
7946 * breakpoint.c (single_step_breakpoints)
7947 (single_step_gdbarch): Move up in the file.
7948 (one_breakpoint_xfer_memory): New function, factored out from ...
7949 (breakpoint_xfer_memory): ... here. Also process single-step
7950 breakpoints.
7951
15a9128a
TG
79522014-04-09 Tristan Gingold <gingold@adacore.com>
7953
7954 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
7955 comments.
7956 (darwin_decode_exception_message): Free port only after use.
7957
9c97a070
PL
79582014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
7959
7960 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
7961 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
7962 when setting the size of call_length.
7963
7af389b8
SC
79642014-04-07 Siva Chandra Reddy <sivachandra@google.com>
7965
7966 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
7967 dereference TYPE_CODE_REF values.
7968
86ad98c3
JB
79692014-04-07 Joel Brobecker <brobecker@adacore.com>
7970
7971 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
7972 end of warning message.
7973
b0aeadb3
DE
79742014-04-03 Doug Evans <dje@google.com>
7975
7976 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
7977 of stub_comp_unit_die, stub_comp_dir is non-NULL.
7978
5979d6b6
AM
79792014-04-02 Alan Modra <amodra@gmail.com>
7980
7981 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
7982 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
7983 (struct symbol_file_add_from_memory_args): Add size field.
7984 (find_vdso_size): New function.
7985 (add_vsyscall_page): Attempt to find vdso size.
7986
0d60c288
DE
79872014-04-01 Doug Evans <dje@google.com>
7988
7989 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
7990
a41f2563
TG
79912014-04-01 Tristan Gingold <gingold@adacore.com>
7992
7993 * darwin-nat.c (darwin_encode_reply): Add prototype.
7994 (darwin_decode_exception_message): Reply to unknown inferiors.
7995 (darwin_decode_message): Handle message by id. Ignore message
7996 to unknown inferior.
7997 (darwin_wait): Discard unknown messages, add debug trace.
7998
11a865c8
DE
79992014-03-31 Doug Evans <dje@google.com>
8000
8001 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
8002 comp_dir_string.
8003
770e7fc7
DE
80042014-03-31 Doug Evans <dje@google.com>
8005
8006 New option "set print symbol-loading".
8007 * NEWS: Mention it.
8008 * solib.c (solib_read_symbols): Only print symbol loading messages
8009 if requested.
8010 (solib_add): If symbol loading is in "brief" mode, notify user
8011 symbols are being loaded.
8012 (reload_shared_libraries_1): Ditto.
8013 * symfile.c (print_symbol_loading_off): New static global.
8014 (print_symbol_loading_brief): New static global.
8015 (print_symbol_loading_full): New static global.
8016 (print_symbol_loading_enums): New static global.
8017 (print_symbol_loading): New static global.
8018 (print_symbol_loading_p): New function.
8019 (symbol_file_add_with_addrs): Only print symbol loading messages
8020 if requested.
8021 (_initialize_symfile): Register "print symbol-loading" set/show
8022 command.
8023 * symfile.h (print_symbol_loading_p): Declare.
8024
c32c64b7
DE
80252014-03-30 Doug Evans <xdje42@gmail.com>
8026
8027 * infrun.c (set_last_target_status): New function.
8028 (handle_inferior_event): Call it.
8029
7c0bc051
DE
80302014-03-30 Doug Evans <xdje42@gmail.com>
8031
8032 * inferior.h (enum stop_kind): Improve comment.
8033
8776cfe9
JB
80342014-03-28 Joel Brobecker <brobecker@adacore.com>
8035
8036 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
8037 a reference, strip the reference layer before calling
8038 the lang_ops value_has_mutated callback.
8039
410a0ff2
SDJ
80402014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
8041
8042 Remove some globals from our parser.
8043 * language.c (unk_lang_parser): Add "struct parser_state"
8044 argument.
8045 * language.h (struct language_defn) <la_parser>: Likewise.
8046 * parse.c (expout, expout_size, expout_ptr): Remove variables.
8047 (initialize_expout): Add "struct parser_state" argument.
8048 Rewrite function to use the parser state.
8049 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
8050 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
8051 write_exp_elt_longcst, write_exp_elt_dblcst,
8052 write_exp_elt_decfloatcst, write_exp_elt_type,
8053 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
8054 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
8055 write_dollar_variable): Likewise.
8056 (parse_exp_in_context_1): Use parser state.
8057 (insert_type_address_space): Add "struct parser_state" argument.
8058 Use parser state.
8059 (increase_expout_size): New function.
8060 * parser-defs.h: Forward declare "struct language_defn" and
8061 "struct parser_state".
8062 (expout, expout_size, expout_ptr): Remove extern declarations.
8063 (parse_gdbarch, parse_language): Rewrite macro declarations to
8064 accept the parser state.
8065 (struct parser_state): New struct.
8066 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
8067 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
8068 write_exp_elt_decfloatcst, write_exp_elt_type,
8069 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
8070 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
8071 write_exp_msymbol, write_dollar_variable,
8072 mark_struct_expression, insert_type_address_space): Add "struct
8073 parser_state" argument.
8074 (increase_expout_size): New function.
8075 * utils.c (do_clear_parser_state): New function.
8076 (make_cleanup_clear_parser_state): Likewise.
8077 * utils.h (make_cleanup_clear_parser_state): New function
8078 prototype.
8079 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
8080 Update calls to write_exp* in order to pass the parser state.
8081 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
8082 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
8083 (i386_stap_parse_special_token_three_arg_disp): Likewise.
8084 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
8085 * stap-probe.c (stap_parse_register_operand): Likewise.
8086 (stap_parse_single_operand): Likewise.
8087 (stap_parse_argument_1): Likewise.
8088 (stap_parse_argument): Use parser state.
8089 * stap-probe.h: Include "parser-defs.h".
8090 (struct stap_parse_info) <pstate>: New field.
8091 * c-exp.y (parse_type): Rewrite to use parser state.
8092 (yyparse): Redefine to c_parse_internal.
8093 (pstate): New global variable.
8094 (parse_number): Add "struct parser_state" argument.
8095 (write_destructor_name): Likewise.
8096 (type_exp): Update calls to write_exp* and similars in order to
8097 use parser state.
8098 (exp1, exp, variable, qualified_name, space_identifier,
8099 typename, typebase): Likewise.
8100 (write_destructor_name, parse_number, lex_one_token,
8101 classify_name, classify_inner_name, c_parse): Add "struct
8102 parser_state" argument. Update function to use parser state.
8103 * c-lang.h: Forward declare "struct parser_state".
8104 (c_parse): Add "struct parser_state" argument.
8105 * ada-exp.y (parse_type): Rewrite macro to use parser state.
8106 (yyparse): Redefine macro to ada_parse_internal.
8107 (pstate): New variable.
8108 (write_int, write_object_renaming, write_var_or_type,
8109 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
8110 type_int, type_long, type_long_long, type_float, type_double,
8111 type_long_double, type_char, type_boolean, type_system_address):
8112 Add "struct parser_state" argument.
8113 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
8114 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
8115 var_or_type, aggregate, aggregate_component_list,
8116 positional_list, others, component_group,
8117 component_associations): Update calls to write_exp* and similar
8118 functions in order to use parser state.
8119 (ada_parse, write_var_from_sym, write_int,
8120 write_exp_op_with_string, write_object_renaming,
8121 find_primitive_type, write_selectors, write_ambiguous_var,
8122 write_var_or_type, write_name_assoc, type_int, type_long,
8123 type_long_long, type_float, type_double, type_long_double,
8124 type_char, type_boolean, type_system_address): Add "struct
8125 parser_state" argument. Adjust function to use parser state.
8126 * ada-lang.c (parse): Likewise.
8127 * ada-lang.h: Forward declare "struct parser_state".
8128 (ada_parse): Add "struct parser_state" argument.
8129 * ada-lex.l (processInt, processReal): Likewise. Adjust all
8130 calls to both functions.
8131 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
8132 parser state.
8133 (yyparse): Redefine macro to f_parse_internal.
8134 (pstate): New variable.
8135 (parse_number): Add "struct parser_state" argument.
8136 (type_exp, exp, subrange, typebase): Update calls to write_exp*
8137 and similars in order to use parser state.
8138 (parse_number): Adjust code to use parser state.
8139 (yylex): Likewise.
8140 (f_parse): New function.
8141 * f-lang.h: Forward declare "struct parser_state".
8142 (f_parse): Add "struct parser_state" argument.
8143 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
8144 parser state.
8145 (yyparse): Redefine macro for java_parse_internal.
8146 (pstate): New variable.
8147 (push_expression_name, push_expression_name, insert_exp): Add
8148 "struct parser_state" argument.
8149 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
8150 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
8151 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
8152 PostIncrementExpression, PostDecrementExpression,
8153 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
8154 UnaryExpressionNotPlusMinus, CastExpression,
8155 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
8156 RelationalExpression, EqualityExpression, AndExpression,
8157 ExclusiveOrExpression, InclusiveOrExpression,
8158 ConditionalAndExpression, ConditionalOrExpression,
8159 ConditionalExpression, Assignment, LeftHandSide): Update
8160 calls to write_exp* and similars in order to use parser state.
8161 (parse_number): Ajust code to use parser state.
8162 (yylex): Likewise.
8163 (java_parse): New function.
8164 (push_variable): Add "struct parser_state" argument. Adjust
8165 code to user parser state.
8166 (push_fieldnames, push_qualified_expression_name,
8167 push_expression_name, insert_exp): Likewise.
8168 * jv-lang.h: Forward declare "struct parser_state".
8169 (java_parse): Add "struct parser_state" argument.
8170 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
8171 parser state.
8172 (yyparse): Redefine macro to m2_parse_internal.
8173 (pstate): New variable.
8174 (type_exp, exp, fblock, variable, type): Update calls to
8175 write_exp* and similars to use parser state.
8176 (yylex): Likewise.
8177 (m2_parse): New function.
8178 * m2-lang.h: Forward declare "struct parser_state".
8179 (m2_parse): Add "struct parser_state" argument.
8180 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
8181 * objc-lang.h: Forward declare "struct parser_state".
8182 (end_msglist): Add "struct parser_state" argument.
8183 * p-exp.y (parse_type): Rewrite macro to use parser state.
8184 (yyparse): Redefine macro to pascal_parse_internal.
8185 (pstate): New variable.
8186 (parse_number): Add "struct parser_state" argument.
8187 (type_exp, exp1, exp, qualified_name, variable): Update calls to
8188 write_exp* and similars in order to use parser state.
8189 (parse_number, yylex): Adjust code to use parser state.
8190 (pascal_parse): New function.
8191 * p-lang.h: Forward declare "struct parser_state".
8192 (pascal_parse): Add "struct parser_state" argument.
8193 * go-exp.y (parse_type): Rewrite macro to use parser state.
8194 (yyparse): Redefine macro to go_parse_internal.
8195 (pstate): New variable.
8196 (parse_number): Add "struct parser_state" argument.
8197 (type_exp, exp1, exp, variable, type): Update calls to
8198 write_exp* and similars in order to use parser state.
8199 (parse_number, lex_one_token, classify_name, yylex): Adjust code
8200 to use parser state.
8201 (go_parse): Likewise.
8202 * go-lang.h: Forward declare "struct parser_state".
8203 (go_parse): Add "struct parser_state" argument.
8204
342587c4
DE
82052014-03-27 Doug Evans <dje@google.com>
8206
8207 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
8208
33e80786
DE
82092014-03-27 Doug Evans <dje@google.com>
8210
8211 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
8212 Remove argument abbrev_section. All callers updated.
8213
1dbab08b
DE
82142014-03-27 Doug Evans <dje@google.com>
8215
8216 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
8217 addr_base, ranges_base.
8218
318d3177
KS
82192014-03-26 Keith Seitz <keiths@redhat.com>
8220
8221 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
8222 types, not VAR_DOMAIN.
8223
1e54db15
SL
82242014-03-25 Sandra Loosemore <sandra@codesourcery.com>
8225
8226 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
8227 "ra" registers.
8228 * features/nios2-linux.c: Regenerated.
8229 * features/nios2.c: Regenerated.
8230
d3839ede
PA
82312014-03-25 Pedro Alves <palves@redhat.com>
8232
8233 * cli/cli-script.c (script_from_file): Force the interpreter to
8234 sync mode.
8235
7588d2ec
PL
82362014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
8237
8238 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
8239 small stack allocation.
8240
a6290449
TG
82412014-03-24 Tristan Gingold <gingold@adacore.com>
8242
8243 * darwin-nat.c (exc_server): Remove unused prototype.
8244 (darwin_dump_message): Correctly display data on x86_64.
8245 (darwin_encode_reply): Fix style.
8246 Add comments and fix indentation.
8247
31ae9d24 82482014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
69fa4030
PL
8249
8250 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
8251
6339bfc4
DE
82522014-03-22 Doug Evans <xdje42@gmail.com>
8253
8254 * infcmd.c: Whitespace fixes.
8255 (interrupt_command): Merge two function comments into one.
8256
0a07590b
DE
82572014-03-22 Doug Evans <xdje42@gmail.com>
8258
8259 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
8260 All uses updated.
8261
b55fbac4
YQ
82622014-03-22 Yao Qi <yao@codesourcery.com>
8263
8264 * remote.c (target_read_live_memory): Remove.
8265 (memory_xfer_live_readonly_partial): Rename it to
8266 remote_xfer_live_readonly_partial. Remove argument 'object'.
8267 All callers updated. Call remote_read_bytes_1
8268 instead of target_read_live_memory.
8269 * tracepoint.c (set_traceframe_number): Remove.
8270 (make_cleanup_restore_traceframe_number): Likewise .
8271 * tracepoint.h (set_traceframe_number): Remove declaration.
8272 (make_cleanup_restore_traceframe_number): Likewise.
8273
9217e74e
YQ
82742014-03-22 Yao Qi <yao@codesourcery.com>
8275
8276 * remote.c (remote_read_bytes): Move code on reading from the
8277 remote stub to ...
8278 (remote_read_bytes_1): ... here. New function.
8279
8acf9577
YQ
82802014-03-22 Yao Qi <yao@codesourcery.com>
8281
8282 * ctf.c (ctf_xfer_partial): Check the return value of
8283 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
8284 return TARGET_XFER_UNAVAILABLE.
8285 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8286 * target.c (target_read_live_memory): Move it to remote.c.
8287 (memory_xfer_live_readonly_partial): Likewise.
8288 (memory_xfer_partial_1): Move some code to remote_read_bytes.
8289 * remote.c (target_read_live_memory): Moved from target.c.
8290 (memory_xfer_live_readonly_partial): Likewise.
8291 (remote_read_bytes): Factored out from
8292 memory_xfer_partial_1.
8293
feef67ab
DE
82942014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
8295
8296 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
8297 NULL pointer.
8298
b65dc60b
PA
82992014-03-21 Pedro Alves <palves@redhat.com>
8300
8301 * infrun.c (normal_stop): Extend comment.
8302
b4ab256d
HZ
83032014-03-21 Hui Zhu <hui@codesourcery.com>
8304 Pedro Alves <palves@redhat.com>
8305
8306 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
8307 static buffer.
8308 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
8309 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
8310 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
8311
deba7593
MR
83122014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
8313
8314 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
8315 `z' formatted output modifier.
8316
1bff71c3
SDJ
83172014-03-20 Tom Tromey <tromey@redhat.com>
8318 Sergio Durigan Junior <sergiodj@redhat.com>
8319
8320 * probe.c (parse_probes): Turn assert into an ordinary error.
8321 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
8322 exceptions when parsing probes. Rearrange the code for clarity.
8323
90e28950
TT
83242014-03-20 Tom Tromey <tromey@redhat.com>
8325
8326 PR gdb/14135
8327 * top.c (execute_command): Only dispatch events if the command
8328 started the target.
8329
beb460e8
PA
83302014-03-20 Tom Tromey <tromey@redhat.com>
8331
8332 PR cli/15718
8333 * infcall.c: Include event-top.h.
8334 (run_inferior_call): Call async_disable_stdin if needed.
8335
99619bea
PA
83362014-03-20 Pedro Alves <palves@redhat.com>
8337
8338 * infrun.c (prepare_to_proceed): Delete.
8339 (thread_still_needs_step_over): New function.
8340 (find_thread_needs_step_over): New function.
8341 (proceed): If the current thread needs a step-over, set its
8342 steping_over_breakpoint flag. Adjust to use
8343 find_thread_needs_step_over instead of prepare_to_proceed.
8344 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
8345 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
8346 breakpoint.
8347 (switch_back_to_stepped_thread): Step over breakpoints of all
8348 threads not the stepping thread, before switching back to the
8349 stepping thread.
8350
2adfaa28
PA
83512014-03-20 Pedro Alves <palves@redhat.com>
8352
8353 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
8354 extern.
8355 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
8356 * infrun.c (saved_singlestep_ptid)
8357 (stepping_past_singlestep_breakpoint): Delete.
8358 (resume): Remove stepping_past_singlestep_breakpoint handling.
8359 (proceed): Store the prev_pc of the stepping thread too.
8360 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
8361 singlestep_pc.
8362 (enum infwait_states): Delete infwait_thread_hop_state.
8363 (struct execution_control_state) <hit_singlestep_breakpoint>: New
8364 field.
8365 (handle_inferior_event): Adjust.
8366 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
8367 handling and the thread-hop code. Before removing single-step
8368 breakpoints, check whether the thread hit a single-step breakpoint
8369 of another thread. If it did, the trap is not a random signal.
8370 (switch_back_to_stepped_thread): If the event thread hit a
8371 single-step breakpoint, unblock it before switching to the
8372 stepping thread. Handle the case of the stepped thread having
8373 advanced already.
8374 (keep_going): Handle the case of the current thread moving past a
8375 single-step breakpoint.
8376
31e77af2
PA
83772014-03-20 Pedro Alves <palves@redhat.com>
8378
8379 PR breakpoints/7143
8380 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
8381 are being stepped over.
8382 (breakpoint_address_match): Make extern.
8383 * breakpoint.h (breakpoint_address_match): New declaration.
8384 * inferior.h (stepping_past_instruction_at): New declaration.
8385 * infrun.c (struct step_over_info): New type.
8386 (step_over_info): New global.
8387 (set_step_over_info, clear_step_over_info)
8388 (stepping_past_instruction_at): New functions.
8389 (handle_inferior_event): Clear the step-over info when
8390 trap_expected is cleared.
8391 (resume): Remove now stale comment.
8392 (clear_proceed_status): Clear step-over info.
8393 (proceed): Adjust step-over handling to set or clear the step-over
8394 info instead of removing all breakpoints.
8395 (handle_signal_stop): When setting up a thread-hop, don't remove
8396 breakpoints here.
8397 (stop_stepping): Clear step-over info.
8398 (keep_going): Adjust step-over handling to set or clear step-over
8399 info and then always inserting breakpoints, instead of removing
8400 all breakpoints when stepping over one.
8401
b9f437de
PA
84022014-03-20 Pedro Alves <palves@redhat.com>
8403
8404 * infrun.c (previous_inferior_ptid): Adjust comment.
8405 (deferred_step_ptid): Delete.
8406 (infrun_thread_ptid_changed, prepare_to_proceed)
8407 (init_wait_for_inferior): Adjust.
8408 (handle_signal_stop): Delete deferred_step_ptid handling.
8409
06c868a8
JK
84102014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
8411
8412 PR gdb/15358
8413 * defs.h (sync_quit_force_run): New declaration.
8414 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
8415 * event-top.c (async_sigterm_handler): New declaration.
8416 (async_sigterm_token): New variable.
8417 (async_init_signals): Create also async_sigterm_token.
8418 (async_sigterm_handler): New function.
8419 (sync_quit_force_run): New variable.
8420 (handle_sigterm): Replace quit_force call by other calls.
8421 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
8422
dea80df0
MR
84232014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
8424
8425 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
8426 offset into SPE pseudo registers.
8427
0c7e1a46
PA
84282014-03-18 Pedro Alves <palves@redhat.com>
8429
8430 PR gdb/13860
8431 * inferior.h (print_stop_event): Declare.
8432 * infrun.c (print_stop_event): New, factored out from ...
8433 (normal_stop): ... this.
8434 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
8435 of bpstat_print/print_stack_frame.
8436
9c1fcd01
TT
84372014-03-17 Tom Tromey <tromey@redhat.com>
8438
8439 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
8440
11aa919a
PMR
84412014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
8442
8443 * ada-lang.c (decode_constrained_packed_array): Perform a
8444 minimal coercion for reference with coerce_ref instead of
8445 ada_coerce_ref.
8446
d4ccb5e0
TG
84472014-03-17 Tristan Gingold <gingold@adacore.com>
8448
8449 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
8450 (darwin_solib_create_inferior_hook): Emit a warning if version
8451 is unhandled.
8452
49840f2a
UW
84532014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
8454
8455 * python/py-value.c (get_field_flag): Cast flag_name argument to
8456 PyObject_GetAttrString to support Python 2.4.
8457
ed4123e5
JK
84582014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8459
8460 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
8461 (Global Maintainers): Remove Jan Kratochvil.
8462
d6b64346
PA
84632014-03-14 Pedro Alves <palves@redhat.com>
8464
8465 * inferior.h (terminal_ours_for_output): Rename to ...
8466 (child_terminal_ours_for_output): ... this.
8467 (terminal_save_ours): Rename to ...
8468 (child_terminal_save_ours): ... this.
8469 (terminal_ours): Rename to ...
8470 (child_terminal_ours): ... this.
8471 (terminal_inferior): Rename to ...
8472 (child_terminal_inferior): ... this.
8473 (terminal_init_inferior): Rename to ...
8474 (child_terminal_init_inferior): ... this.
8475 (terminal_init_inferior_with_pgrp): Rename to ...
8476 (child_terminal_init_inferior_with_pgrp): ... this.
8477 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
8478 (child_terminal_init_with_pgrp): ... this.
8479 (terminal_save_ours): Rename to ...
8480 (child_terminal_save_ours): ... this.
8481 (terminal_init_inferior): Rename to ...
8482 (child_terminal_init): ... this. Adjust.
8483 (terminal_inferior): Rename to ...
8484 (child_terminal_inferior): ... this.
8485 (terminal_ours_for_output): Rename to ...
8486 (child_terminal_ours_for_output): ... this. Adjust.
8487 (terminal_ours): Rename to ...
8488 (child_terminal_ours): ... this.
8489 (terminal_ours_1): Rename to ...
8490 (child_terminal_ours_1): ... this. Adjust.
8491 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
8492 * windows-nat.c (do_initial_windows_stuff): Adjust.
8493 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
8494 (gnu_terminal_init): ... this. Adjust.
8495 (gnu_target): Adjust.
8496 * inf-child.c (inf_child_target): Adjust.
8497
5a1e8c7a
DE
84982014-03-13 Doug Evans <xdje42@gmail.com>
8499
8500 PR guile/16612
8501 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
8502 new eq?-hashtab.
8503
350e1a76
DE
85042014-03-13 Doug Evans <xdje42@gmail.com>
8505
8506 * value.c (record_latest_value): Call release_value_or_incref
8507 instead of release_value.
8508
a69900ae
PA
85092014-03-13 Pedro Alves <palves@redhat.com>
8510
8511 * procfs.c (procfs_target): Don't override to_shortname,
8512 to_longname or to_doc.
8513
5db9f0bd
PA
85142014-03-13 Pedro Alves <palves@redhat.com>
8515
8516 * inf-child.c (inf_child_open, inf_child_target): Don't mention
8517 Unix in user visible strings.
8518
5e3a2c38
SS
85192014-03-12 Stan Shebs <stan@codesourcery.com>
8520
8521 * gdbtypes.h: Annotate comments for Doxygen, add a page
8522 block comment with some general info.
8523
8bc2fe48
PA
85242014-03-12 Pedro Alves <palves@redhat.com>
8525
8526 * infcmd.c (prepare_execution_command): New function, factored out
8527 from several execution commands.
8528 (run_command_1, continue_command, step_1, jump_command)
8529 (signal_command, until_command, advance_command, finish_command)
8530 (attach_command): Use prepare_execution_command.
8531
638c5f49
OJ
85322014-03-12 Omair Javaid <omair.javaid@linaro.org>
8533
8534 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
8535 (MAX_BPTS): Define.
8536 (MAX_WPTS): Define.
8537 (struct arm_linux_thread_points): Removed.
8538 (struct arm_linux_process_info): New.
8539 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
8540 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
8541 (arm_linux_find_breakpoints_by_tid): Removed.
8542 (struct arch_lwp_info): New.
8543 (arm_linux_find_process_pid): New functions.
8544 (arm_linux_add_process): New functions.
8545 (arm_linux_process_info_get): New functions.
8546 (arm_linux_forget_process): New function.
8547 (arm_linux_get_debug_reg_state): New function.
8548 (struct update_registers_data): New.
8549 (update_registers_callback): New function.
8550 (arm_linux_insert_hw_breakpoint1): Updated.
8551 (arm_linux_remove_hw_breakpoint1): Updated.
8552 (arm_linux_insert_hw_breakpoint): Updated.
8553 (arm_linux_remove_hw_breakpoint): Updated.
8554 (arm_linux_insert_watchpoint): Updated.
8555 (arm_linux_remove_watchpoint): Updated.
8556 (arm_linux_new_thread): Updated.
8557 (arm_linux_prepare_to_resume): New function.
8558 (arm_linux_new_fork): New function.
8559 (_initialize_arm_linux_nat): Updated.
8560
6d03af93
PA
85612014-03-12 Pedro Alves <palves@redhat.com>
8562
8563 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
8564
b3ccfe11
TT
85652014-03-12 Tom Tromey <tromey@redhat.com>
8566
8567 * inf-child.c (return_zero): New function.
8568 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
8569 * aix-thread.c (aix_thread_inferior_created): New function.
8570 (aix_thread_attach): Remove.
8571 (init_aix_thread_ops): Don't set to_attach.
8572 (_initialize_aix_thread): Register inferior_created observer.
8573 * corelow.c (init_core_ops): Don't set to_attach or
8574 to_create_inferior.
8575 * exec.c (init_exec_ops): Don't set to_attach or
8576 to_create_inferior.
8577 * infcmd.c (run_command_1): Use find_run_target. Make direct
8578 target calls.
8579 (attach_command): Use find_attach_target. Make direct target
8580 calls.
8581 * record-btrace.c (init_record_btrace_ops): Don't set
8582 to_create_inferior.
8583 * record-full.c (record_full_can_async_p, record_full_is_async_p):
8584 Remove.
8585 (init_record_full_ops, init_record_full_core_ops): Update. Don't
8586 set to_create_inferior.
8587 * target.c (complete_target_initialization): Add assertion.
8588 (target_create_inferior): Remove.
8589 (find_default_attach, find_default_create_inferior): Remove.
8590 (find_attach_target, find_run_target): New functions.
8591 (find_default_is_async_p, find_default_can_async_p)
8592 (target_supports_non_stop, target_attach): Remove.
8593 (init_dummy_target): Don't set to_create_inferior or
8594 to_supports_non_stop.
8595 * target.h (struct target_ops) <to_attach>: Add comment. Remove
8596 TARGET_DEFAULT_FUNC.
8597 <to_create_inferior>: Add comment.
8598 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
8599 TARGET_DEFAULT_RETURN.
8600 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
8601 (find_attach_target, find_run_target): Declare.
8602 (target_create_inferior): Remove.
8603 (target_has_execution_1): Update comment.
8604 (target_supports_non_stop): Remove.
8605 * target-delegates.c: Rebuild.
8606
91f83b02
PA
86072014-03-12 Pedro Alves <palves@redhat.com>
8608
8609 * inf-child.h: Update comment to not mention Unix.
8610
f1aea813
PA
86112014-03-12 Pedro Alves <palves@redhat.com>
8612
8613 * inf-child.c: Update top comment to not mention Unix. Add
8614 generic comment describing how this target is meant to be used.
8615 (inf_child_post_attach, inf_child_post_startup_inferior)
8616 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
8617 Unix in comment.
8618
ee8e9165
PA
86192014-03-12 Pedro Alves <palves@redhat.com>
8620
8621 * nto-procfs.c: Include inf-child.h.
8622 (procfs_ops): Delete global.
8623 (procfs_can_run): Delete method.
8624 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
8625 target pointer instead of referencing procfs_ops.
8626 (procfs_prepare_to_store): Delete.
8627 (init_procfs_ops): Delete function.
8628 (procfs_target): New function, based on init_procfs_ops, but
8629 inherit inf_child_target.
8630 (_initialize_procfs): Use procfs_target.
8631
51a9c8c5
PA
86322014-03-12 Pedro Alves <palves@redhat.com>
8633
8634 * windows-nat.c: Include inf-child.h.
8635 (windows_ops): Delete global.
8636 (windows_open, windows_prepare_to_store, windows_can_run): Delete
8637 methods.
8638 (init_windows_ops): Delete function.
8639 (windows_target): New function, based on init_windows_ops, but
8640 inherit inf_child_target.
8641 (_initialize_windows_nat): Use windows_target. Install x86
8642 specific target methods here.
8643
c1966e26
DE
86442014-03-10 Doug Evans <xdje42@gmail.com>
8645
8646 * guile/guile.c (call_initialize_gdb_module): New function.
8647 (initialize_guile): Replace call to scm_init_guile with call to
8648 scm_with_guile.
8649
023db19c
JB
86502014-03-10 Joel Brobecker <brobecker@adacore.com>
8651
8652 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
8653 in call to TYPE_CODE macro.
8654
5ec18f2b
JG
86552014-03-10 Jerome Guitton <guitton@adacore.com>
8656
8668be63
JB
8657 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
8658 Resolve tagged types to full view.
5ec18f2b 8659
7d03f2eb
HZ
86602014-03-10 Hui Zhu <hui@codesourcery.com>
8661
8662 * target.h (target_insert_breakpoint): Remove "hardware" from its
8663 comments.
8664
c5164cbc
DE
86652014-03-07 Doug Evans <dje@google.com>
8666
8667 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
8668
c4a3fee2
DE
86692014-03-07 Doug Evans <dje@google.com>
8670
8671 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
8672 Remove unused local comp_dir_attr. Assert exactly one of
8673 stub_comp_unit_die, stub_comp_dir is non-NULL.
8674
3156469c
JB
86752014-03-07 Joel Brobecker <brobecker@adacore.com>
8676
8677 * target.h (complete_target_initialization, add_target):
8678 Add comment.
8679
c1a7b7c6
PA
86802014-03-07 Pedro Alves <palves@redhat.com>
8681
8682 * go32-nat.c: Include inf-child.h.
8683 (go32_ops): Delete global.
8684 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
8685 Delete methods.
8686 (go32_create_inferior): Push the passed in target pointer instead
8687 of referencing go32_ops.
8688 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
8689 (go32_target): New function, based on init_go32_ops, but inherit
8690 inf_child_target.
8691 (_initialize_go32_nat): Use go32_target. Move parts of
8692 init_go32_ops here.
8693
d3c1a85f
JB
86942014-03-06 Joel Brobecker <brobecker@adacore.com>
8695
8696 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
8697 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
8698 SYMBOL_VALUE_ADDRESS.
8699 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
8700
5fa1d40e
YQ
87012014-03-06 Yao Qi <yao@codesourcery.com>
8702
8703 * breakpoint.c (get_tracepoint_by_number): Remove argument
8704 optional_p. All callers updated. Adjust comments. Update
8705 output message.
8706 * breakpoint.h (get_tracepoint_by_number): Update declaration.
8707
0c13193f
YQ
87082014-03-06 Yao Qi <yao@codesourcery.com>
8709
8710 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
8711 early if get_number returns zero. Use 'p' instead of 'args'.
8712
2217da06
YQ
87132014-03-06 Yao Qi <yao@codesourcery.com>
8714
8715 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
8716 message.
8717
cc3da688
YQ
87182014-03-06 Yao Qi <yao@codesourcery.com>
8719
8720 PR breakpoints/16508
8721 * tracepoint.c (check_trace_running): New function.
8722 (trace_find_command): Move code to check_trace_running and
8723 call check_trace_running.
8724 (trace_find_pc_command): Likewise.
8725 (trace_find_tracepoint_command): Likewise.
8726 (trace_find_line_command): Likewise.
8727 (trace_find_range_command): Likewise.
8728 * tracepoint.h (check_trace_running): Likewise.
8729 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
8730
6a5f844b
YQ
87312014-03-06 Yao Qi <yao@codesourcery.com>
8732
8733 * target.h (struct target_ops) <to_traceframe_info>: Use
8734 TARGET_DEFAULT_NORETURN (tcomplain ()).
8735 * target-delegates.c: Regenerated.
8736
0f26cec1
PA
87372014-03-05 Pedro Alves <palves@redhat.com>
8738
8739 PR gdb/16575
8740 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
8741 void. Update comment.
8742 (dcache_xfer_memory): Delete.
8743 (dcache_read_memory_partial): New, based on the read bits of
8744 dcache_xfer_memory.
8745 (dcache_update): Add status parameter. Use ULONGEST for len, and
8746 adjust. Discard cache lines if the reason for the update was
8747 error.
8748 * dcache.h (dcache_xfer_memory): Delete declaration.
8749 (dcache_read_memory_partial): New declaration.
8750 (dcache_update): Update prototype.
8751 * target.c (raw_memory_xfer_partial): Update the dcache here.
8752 (memory_xfer_partial_1): Don't handle dcache writes here.
8753
b2b255bd
MF
87542014-03-05 Mike Frysinger <vapier@gentoo.org>
8755
8756 * remote-sim.c (gdbsim_load): Add const to prog.
8757
5d9cf8a4
TT
87582014-03-03 Tom Tromey <tromey@redhat.com>
8759
8760 * elfread.c (probe_key): Change to bfd_data.
8761 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
8762 now per-BFD, not per-objfile.
8763 * stap-probe.c (stap_probe_destroy): Update comment.
8764 (handle_stap_probe): Allocate on the per-BFD obstack.
8765
729662a5
TT
87662014-03-03 Tom Tromey <tromey@redhat.com>
8767
8768 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
8769 * breakpoint.c (create_longjmp_master_breakpoint): Use
8770 get_probe_address.
8771 (add_location_to_breakpoint, bkpt_probe_insert_location)
8772 (bkpt_probe_remove_location): Update.
8773 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
8774 * elfread.c (elf_symfile_relocate_probe): Remove.
8775 (elf_probe_fns): Update.
8776 (insert_exception_resume_breakpoint): Change type of "probe"
8777 parameter to bound_probe.
8778 (check_exception_resume): Update.
8779 * objfiles.c (objfile_relocate1): Don't relocate probes.
8780 * probe.c (bound_probe_s): New typedef.
8781 (parse_probes): Use get_probe_address. Set sal's objfile.
8782 (find_probe_by_pc): Return a bound_probe.
8783 (collect_probes): Return a VEC(bound_probe_s).
8784 (compare_probes): Update.
8785 (gen_ui_out_table_header_info): Change type of "probes"
8786 parameter. Update.
8787 (info_probes_for_ops): Update.
8788 (get_probe_address): New function.
8789 (probe_safe_evaluate_at_pc): Update.
8790 * probe.h (struct probe_ops) <get_probe_address>: New field.
8791 <set_semaphore, clear_semaphore>: Add objfile parameter.
8792 (struct probe) <objfile>: Remove field.
8793 <arch>: New field.
8794 <address>: Update comment.
8795 (struct bound_probe): New.
8796 (find_probe_by_pc): Return a bound_probe.
8797 (get_probe_address): Declare.
8798 * solib-svr4.c (struct probe_and_action) <address>: New field.
8799 (hash_probe_and_action, equal_probe_and_action): Update.
8800 (register_solib_event_probe): Add address parameter.
8801 (solib_event_probe_at): Update.
8802 (svr4_create_probe_breakpoints): Add objfile parameter. Use
8803 get_probe_address.
8804 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
8805 (stap_get_probe_address): New function.
8806 (stap_can_evaluate_probe_arguments, compute_probe_arg)
8807 (compile_probe_arg): Update.
8808 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
8809 address.
8810 (handle_stap_probe): Don't relocate the probe.
8811 (stap_relocate): Remove.
8812 (stap_gen_info_probes_table_values): Update.
8813 (stap_probe_ops): Remove stap_relocate.
8814 * symfile-debug.c (debug_sym_relocate_probe): Remove.
8815 (debug_sym_probe_fns): Update.
8816 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
8817 * symtab.c (init_sal): Use memset.
8818 * symtab.h (struct symtab_and_line) <objfile>: New field.
8819 * tracepoint.c (start_tracing, stop_tracing): Update.
8820
ff887920
TT
88212014-03-03 Tom Tromey <tromey@redhat.com>
8822
8823 * probe.h (parse_probes, find_probe_by_pc)
8824 (find_probes_in_objfile): Fix comments.
8825
f0407826
DE
88262014-03-02 Doug Evans <xdje42@gmail.com>
8827
8828 * infrun.c (handle_signal_stop): Replace test for
8829 TARGET_WAITKIND_STOPPED with an assert.
8830
35e6a711
DE
88312014-03-02 Doug Evans <xdje42@gmail.com>
8832
8833 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
8834
667f9d0b
DE
88352014-03-02 Doug Evans <xdje42@gmail.com>
8836
8837 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
8838
dc92ace0
MK
88392014-03-01 Mark Kettenis <kettenis@gnu.org>
8840
8841 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
8842
a900370f
MK
88432014-03-01 Mark Kettenis <kettenis@gnu.org>
8844
8845 * i386obsd-nat.c: Include "obsd-nat.h".
8846 (_initialize_i386obsd_nat): Call obsd_add_target instead of
8847 add_target.
8848 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8849
b72a7981
MK
88502014-03-01 Mark Kettenis <kettenis@gnu.org>
8851
8852 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
8853
96c70aba
MK
88542014-03-01 Mark Kettenis <kettenis@gnu.org>
8855
8856 * mips64obsd-nat.c: Include "obsd-nath".
8857 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
8858 add_target
8859 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8860
874a80af
MK
88612014-03-01 Mark Kettenis <kettenis@gnu.org>
8862
8fd408f1
MK
8863 * amd64obsd-nat.c: Include "obsd-nat,h.
8864 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
8865 add_target.
874a80af
MK
8866 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8867
9cf95373
SC
88682014-02-28 Siva Chandra Reddy <sivachandra@google.com>
8869
8870 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
8871 (find_overload_match): Update call to find_oload_champ.
8872 (find_oload_champ_namespace_loop): Likewise
8873
863e4da4
MK
88742014-02-28 Mark Kettenis <kettenis@gnu.org>
8875
025cac40
MK
8876 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
8877
1ed586ce
MK
8878 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
8879 * config/sparc/obsd64.mh: New file.
8880 * sparc64obsd-nat.c: New file.
8881
863e4da4
MK
8882 * obsd-nat.h: New file.
8883 * obsd-nat.c: New file.
8884 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
8885 (ALLDEPFILES): Add obsd-nat.c.
8886
89de4da4
TT
88872014-02-28 Tom Tromey <tromey@redhat.com>
8888
8889 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
8890 * cli-out.h (cli_ui_out_impl): Now const.
8891 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
8892 * ui-out.c (struct ui_out) <impl>: Now const.
8893 (default_ui_out_impl): Now const.
8894 (ui_out_new): Make 'impl' parameter const.
8895 * ui-out.h (ui_out_new): Update.
8896
c725e7b6
MK
88972014-02-27 Mark Kettenis <kettenis@gnu.org>
8898
8899 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
8900
670b46b3
MK
89012014-02-27 Mark Kettenis <kettenis@gnu.org>
8902
8903 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
8904
c91550fc
JK
89052014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
8906
8907 Additional PR 8882 fix.
8908 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
8909
2fa0369e
PA
89102014-02-27 Pedro Alves <palves@redhat.com>
8911
8912 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
8913 isn't set.
8914
d632a097
PA
89152014-02-27 Pedro Alves <palves@redhat.com>
8916
8917 PR 12702
8918 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
8919 * nat/linux-waitpid.c: Include string.h.
8920 (status_to_str): Moved here and made extern.
8921 * nat/linux-waitpid.h (status_to_str): New declaration.
8922
2ebd5a35
HZ
89232014-02-27 Hui Zhu <hui@codesourcery.com>
8924
8925 PR 12702
8926 * infrun.c (ptid_match): Move ...
8927 * common/ptid.c (ptid_match): ... here.
8928 * inferior.h (ptid_match): Move ...
8929 * common/ptid.h (ptid_match): ... here.
8930
3cdd631f
MK
89312014-02-27 Mark Kettenis <kettenis@gnu.org>
8932
8933 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
8934 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
8935 gdb_target_obs.
8936
bee30a64
MK
89372014-02-27 Mark Kettenis <kettenis@gnu.org>
8938
8939 * obsd-tdep.c (obsd_auxv_parse): New function.
8940 (obsd_init_abi): Set auxv_parse.
27a48a92
MK
8941
8942 * gdbarch.sh (auxv_parse): New.
8943 * gdbarch.h: Regenerated.
8944 * gdbarch.c: Regenerated.
8945 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
8946
7a5a839f
LC
89472014-02-26 Ludovic Courtès <ludo@gnu.org>
8948
8949 * guile/scm-value.c (gdbscm_history_append_x): New function.
8950 (value_functions): Add it.
8951
31aa7e4e
JB
89522014-02-27 Joel Brobecker <brobecker@adacore.com>
8953
8954 * dwarf2read.c (attr_value_as_address): New function.
8955 (dwarf2_find_base_address, read_call_site_scope): Use
8956 attr_value_as_address in place of DW_ADDR.
8957 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
8958 the low and high addresses. Slight rework of the handling
8959 of the high pc being a constant form, and limit it to
8960 DWARF verson 4 or higher.
8961 (dwarf2_record_block_ranges): Likewise.
8962 (read_partial_die): Likewise.
8963 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
8964
9b333ba3
TT
89652014-02-26 Tom Tromey <tromey@redhat.com>
8966
8967 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
8968
5f6cac40
TT
89692014-02-26 Tom Tromey <tromey@redhat.com>
8970
8971 * elfread.c (elf_read_minimal_symbols): Return early if
8972 minimal symbols have already been read. Add "ei" parameter.
8973 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
8974 * minsyms.c (prim_record_minimal_symbol_full): Update.
8975 * objfiles.h (struct objstats) <n_minsyms>: Move...
8976 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
8977 * symmisc.c (print_objfile_statistics): Update.
8978
2750ef27
TT
89792014-02-26 Tom Tromey <tromey@redhat.com>
8980
8981 * elfread.c (elf_read_minimal_symbols): New function, from
8982 elf_symfile_read.
8983 (elf_symfile_read): Call it.
8984
34643a32
TT
89852014-02-26 Tom Tromey <tromey@redhat.com>
8986
8987 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
8988 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
8989 (lookup_minimal_symbol_solib_trampoline)
8990 (lookup_minimal_symbol_by_pc_section_1)
8991 (lookup_minimal_symbol_and_objfile): Update.
8992 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
8993 Don't allocate a minimal symbol if minsyms have already been read.
8994 (build_minimal_symbol_hash_tables): Update.
8995 (install_minimal_symbols): Do nothing if minsyms already read.
8996 Use the per-BFD obstack.
8997 (terminate_minimal_symbol_table): Use the per-BFD obstack.
8998 * objfiles.c (allocate_objfile): Call
8999 terminate_minimal_symbol_table later.
9000 (have_minimal_symbols): Update.
9001 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
9002 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
9003 Move from struct objfile.
9004 <minsyms_read>: New field.
9005 (struct objfile) <msymbols, minimal_symbol_count,
9006 msymbol_hash, msymbol_demangled_hash>: Move.
9007 (ALL_OBJFILE_MSYMBOLS): Update.
9008 * symfile.c (read_symbols): Set minsyms_read.
9009 (reread_symbols): Update.
9010 * symmisc.c (dump_objfile, dump_msymbols): Update.
9011
2273f0ac
TT
90122014-02-26 Tom Tromey <tromey@redhat.com>
9013
9014 * minsyms.c (msymbols_sort): Remove.
9015 * minsyms.h (msymbols_sort): Remove.
9016 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
9017 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
9018 * elfread.c (elf_symtab_read): Don't add section offsets.
9019 * xcoffread.c (record_minimal_symbol): Don't add section offset
9020 to minimal symbol address.
9021 * somread.c (text_offset, data_offset): Remove.
9022 (som_symtab_read): Don't add section offsets to minimal symbol
9023 addresses.
9024 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
9025 Don't add section offsets to minimal symbols.
9026 * coffread.c (coff_symtab_read): Don't add section offsets
9027 to minimal symbol addresses.
9028 * machoread.c (macho_symtab_add_minsym): Don't add section offset
9029 to minimal symbol addresses.
9030 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
9031 section offset to minimal symbol addresses.
9032 * mdebugread.c (parse_partial_symbols): Don't add section
9033 offset to minimal symbol addresses.
9034 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
9035 offset to minimal symbol addresses.
9036
77e371c0
TT
90372014-02-26 Tom Tromey <tromey@redhat.com>
9038
9039 * ada-lang.c (ada_main_name): Update.
9040 (ada_add_standard_exceptions): Update.
9041 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
9042 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9043 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
9044 * auxv.c (ld_so_xfer_auxv): Update.
9045 * avr-tdep.c (avr_scan_prologue): Update.
9046 * ax-gdb.c (gen_var_ref): Update.
9047 * blockframe.c (get_pc_function_start)
9048 (find_pc_partial_function_gnu_ifunc): Update.
9049 * breakpoint.c (create_overlay_event_breakpoint)
9050 (create_longjmp_master_breakpoint)
9051 (create_std_terminate_master_breakpoint)
9052 (create_exception_master_breakpoint): Update.
9053 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9054 * c-valprint.c (c_val_print): Update.
9055 * coff-pe-read.c (add_pe_forwarded_sym): Update.
9056 * common/agent.c (agent_look_up_symbols): Update.
9057 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
9058 * dwarf2loc.c (call_site_to_target_addr): Update.
9059 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
9060 * elfread.c (elf_gnu_ifunc_record_cache)
9061 (elf_gnu_ifunc_resolve_by_got): Update.
9062 * findvar.c (default_read_var_value): Update.
9063 * frame.c (inside_main_func): Update.
9064 * frv-tdep.c (frv_frame_this_id): Update.
9065 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9066 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
9067 Update.
9068 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
9069 (hppa_hpux_find_dummy_bpaddr): Update.
9070 * hppa-tdep.c (hppa_symbol_address): Update.
9071 * infcmd.c (until_next_command): Update.
9072 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
9073 Update.
9074 * linespec.c (minsym_found, add_minsym): Update.
9075 * linux-nat.c (get_signo): Update.
9076 * linux-thread-db.c (inferior_has_bug): Update.
9077 * m32c-tdep.c (m32c_return_value)
9078 (m32c_m16c_address_to_pointer): Update.
9079 * m32r-tdep.c (m32r_frame_this_id): Update.
9080 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9081 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9082 * maint.c (maintenance_translate_address): Update.
9083 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
9084 (frob_address): New function.
9085 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
9086 frob_address. Rename parameter to "pc_in".
9087 (compare_minimal_symbols, compact_minimal_symbols): Use raw
9088 addresses.
9089 (find_solib_trampoline_target, minimal_symbol_upper_bound):
9090 Update.
9091 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9092 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
9093 * objc-lang.c (find_objc_msgsend): Update.
9094 * objfiles.c (objfile_relocate1): Update.
9095 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9096 * p-valprint.c (pascal_val_print): Update.
9097 * parse.c (write_exp_msymbol): Update.
9098 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
9099 (ppc_elfv2_skip_entrypoint): Update.
9100 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9101 * printcmd.c (build_address_symbolic, msym_info)
9102 (address_info): Update.
9103 * proc-service.c (ps_pglobal_lookup): Update.
9104 * psymtab.c (find_pc_sect_psymtab_closer)
9105 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
9106 Change msymbol parameter to bound_minimal_symbol.
9107 * ravenscar-thread.c (get_running_thread_id): Update.
9108 * remote.c (remote_check_symbols): Update.
9109 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
9110 address.
9111 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9112 * solib-dsbt.c (lm_base): Update.
9113 * solib-frv.c (lm_base, main_got): Update.
9114 * solib-irix.c (locate_base): Update.
9115 * solib-som.c (som_solib_create_inferior_hook)
9116 (link_map_start): Update.
9117 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
9118 * solib-svr4.c (elf_locate_base, enable_break): Update.
9119 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
9120 (flush_ea_cache): Update.
9121 * stabsread.c (define_symbol, scan_file_globals): Update.
9122 * stack.c (find_frame_funname): Update.
9123 * symfile-debug.c (debug_qf_expand_symtabs_matching)
9124 (debug_qf_find_pc_sect_symtab): Update.
9125 * symfile.c (simple_read_overlay_table)
9126 (simple_overlay_update): Update.
9127 * symfile.h (struct quick_symbol_functions)
9128 <find_pc_sect_symtab>: Change type of msymbol to
9129 bound_minimal_symbol.
9130 * symmisc.c (dump_msymbols): Update.
9131 * symtab.c (find_pc_sect_symtab_via_partial)
9132 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
9133 (search_symbols, print_msymbol_info): Update.
9134 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
9135 (MSYMBOL_VALUE_ADDRESS): Redefine.
9136 (BMSYMBOL_VALUE_ADDRESS): New macro.
9137 * tracepoint.c (scope_info): Update.
9138 * tui/tui-disasm.c (tui_find_disassembly_address)
9139 (tui_get_begin_asm_address): Update.
9140 * valops.c (find_function_in_inferior): Update.
9141 * value.c (value_static_field, value_fn_field): Update.
9142
3b7344d5
TT
91432014-02-26 Tom Tromey <tromey@redhat.com>
9144
9145 * ada-lang.c (ada_update_initial_language): Update.
9146 (ada_main_name, ada_has_this_exception_support): Update.
9147 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
9148 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9149 * arm-tdep.c (arm_skip_stub): Update.
9150 * auxv.c (ld_so_xfer_auxv): Update.
9151 * avr-tdep.c (avr_scan_prologue): Update.
9152 * ax-gdb.c (gen_var_ref): Update.
9153 * breakpoint.c (struct breakpoint_objfile_data)
9154 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
9155 type to bound_minimal_symbol.
9156 (create_overlay_event_breakpoint)
9157 (create_longjmp_master_breakpoint)
9158 (create_std_terminate_master_breakpoint)
9159 (create_exception_master_breakpoint): Update.
9160 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9161 * c-exp.y (classify_name): Update.
9162 * coffread.c (coff_symfile_read): Update.
9163 * common/agent.c (agent_look_up_symbols): Update.
9164 * d-lang.c (d_main_name): Update.
9165 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
9166 * dec-thread.c (enable_dec_thread): Update.
9167 * dwarf2loc.c (call_site_to_target_addr): Update.
9168 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
9169 * eval.c (evaluate_subexp_standard): Update.
9170 * findvar.c (struct minsym_lookup_data) <result>: Change type
9171 to bound_minimal_symbol.
9172 <objfile>: Remove.
9173 (minsym_lookup_iterator_cb, default_read_var_value): Update.
9174 * frame.c (inside_main_func): Update.
9175 * frv-tdep.c (frv_frame_this_id): Update.
9176 * gcore.c (call_target_sbrk): Update.
9177 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9178 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
9179 Update.
9180 * go-lang.c (go_main_name): Update.
9181 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
9182 (hppa_hpux_find_import_stub_for_addr): Update.
9183 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
9184 Update. Change return type.
9185 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
9186 type.
9187 * jit.c (jit_breakpoint_re_set_internal): Update.
9188 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
9189 Update.
9190 * linux-nat.c (get_signo): Update.
9191 * linux-thread-db.c (inferior_has_bug): Update
9192 * m32c-tdep.c (m32c_return_value)
9193 (m32c_m16c_address_to_pointer): Update.
9194 * m32r-tdep.c (m32r_frame_this_id): Update.
9195 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9196 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9197 * minsyms.c (lookup_minimal_symbol_internal): Rename to
9198 lookup_minimal_symbol. Change return type.
9199 (lookup_minimal_symbol): Remove.
9200 (lookup_bound_minimal_symbol): Update.
9201 (lookup_minimal_symbol_text): Change return type.
9202 (lookup_minimal_symbol_solib_trampoline): Change return type.
9203 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
9204 (lookup_minimal_symbol_solib_trampoline): Change return type.
9205 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9206 * objc-lang.c (lookup_objc_class, lookup_child_selector)
9207 (value_nsstring, find_imps): Update.
9208 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9209 * p-lang.c (pascal_main_name): Update.
9210 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
9211 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9212 * proc-service.c (ps_pglobal_lookup): Update.
9213 * ravenscar-thread.c (get_running_thread_msymbol): Change
9214 return type.
9215 (has_ravenscar_runtime, get_running_thread_id): Update.
9216 * remote.c (remote_check_symbols): Update.
9217 * sol-thread.c (ps_pglobal_lookup): Update.
9218 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9219 * solib-dsbt.c (lm_base): Update.
9220 * solib-frv.c (lm_base, frv_relocate_section_addresses):
9221 Update.
9222 * solib-irix.c (locate_base): Update.
9223 * solib-som.c (som_solib_create_inferior_hook)
9224 (som_solib_desire_dynamic_linker_symbols, link_map_start):
9225 Update.
9226 * solib-spu.c (spu_enable_break): Update.
9227 * solib-svr4.c (elf_locate_base, enable_break): Update.
9228 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
9229 (flush_ea_cache): Update.
9230 * stabsread.c (define_symbol): Update.
9231 * symfile.c (simple_read_overlay_table): Update.
9232 * symtab.c (find_pc_sect_line): Update.
9233 * tracepoint.c (scope_info): Update.
9234 * tui-disasm.c (tui_get_begin_asm_address): Update.
9235 * value.c (value_static_field): Update.
9236
40c1a007
TT
92372014-02-26 Tom Tromey <tromey@redhat.com>
9238
9239 * minsyms.c (prim_record_minimal_symbol_full): Use
9240 SET_MSYMBOL_VALUE_ADDRESS.
9241 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
9242 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
9243 SET_MSYMBOL_VALUE_ADDRESS.
9244 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
9245 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
9246
efd66ac6
TT
92472014-02-26 Tom Tromey <tromey@redhat.com>
9248
9249 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
9250 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
9251 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
9252 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
9253 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
9254 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
9255 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
9256 * ada-lang.c (ada_main_name): Update.
9257 (ada_lookup_simple_minsym): Update.
9258 (ada_make_symbol_completion_list): Update.
9259 (ada_add_standard_exceptions): Update.
9260 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
9261 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9262 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
9263 * arm-tdep.c (skip_prologue_function): Update.
9264 (arm_skip_stack_protector, arm_skip_stub): Update.
9265 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
9266 (arm_wince_skip_main_prologue): Update.
9267 * auxv.c (ld_so_xfer_auxv): Update.
9268 * avr-tdep.c (avr_scan_prologue): Update.
9269 * ax-gdb.c (gen_var_ref): Update.
9270 * block.c (call_site_for_pc): Update.
9271 * blockframe.c (get_pc_function_start): Update.
9272 (find_pc_partial_function_gnu_ifunc): Update.
9273 * breakpoint.c (create_overlay_event_breakpoint): Update.
9274 (create_longjmp_master_breakpoint): Update.
9275 (create_std_terminate_master_breakpoint): Update.
9276 (create_exception_master_breakpoint): Update.
9277 (resolve_sal_pc): Update.
9278 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9279 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
9280 Update.
9281 * c-valprint.c (c_val_print): Update.
9282 * coff-pe-read.c (add_pe_forwarded_sym): Update.
9283 * coffread.c (coff_symfile_read): Update.
9284 * common/agent.c (agent_look_up_symbols): Update.
9285 * dbxread.c (find_stab_function_addr): Update.
9286 (end_psymtab): Update.
9287 * dwarf2loc.c (call_site_to_target_addr): Update.
9288 (func_verify_no_selftailcall): Update.
9289 (tailcall_dump): Update.
9290 (call_site_find_chain_1): Update.
9291 (dwarf_expr_reg_to_entry_parameter): Update.
9292 * elfread.c (elf_gnu_ifunc_record_cache): Update.
9293 (elf_gnu_ifunc_resolve_by_got): Update.
9294 * f-valprint.c (info_common_command): Update.
9295 * findvar.c (read_var_value): Update.
9296 * frame.c (get_prev_frame_1): Update.
9297 (inside_main_func): Update.
9298 * frv-tdep.c (frv_skip_main_prologue): Update.
9299 (frv_frame_this_id): Update.
9300 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9301 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
9302 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
9303 (gnuv3_skip_trampoline): Update.
9304 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
9305 (hppa64_hpux_in_solib_call_trampoline): Update.
9306 (hppa_hpux_skip_trampoline_code): Update.
9307 (hppa64_hpux_search_dummy_call_sequence): Update.
9308 (hppa_hpux_find_import_stub_for_addr): Update.
9309 (hppa_hpux_find_dummy_bpaddr): Update.
9310 * hppa-tdep.c (hppa_symbol_address)
9311 (hppa_lookup_stub_minimal_symbol): Update.
9312 * i386-tdep.c (i386_skip_main_prologue): Update.
9313 (i386_pe_skip_trampoline_code): Update.
9314 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
9315 * infcall.c (get_function_name): Update.
9316 * infcmd.c (until_next_command): Update.
9317 * jit.c (jit_breakpoint_re_set_internal): Update.
9318 (jit_inferior_init): Update.
9319 * linespec.c (minsym_found): Update.
9320 (add_minsym): Update.
9321 * linux-fork.c (info_checkpoints_command): Update.
9322 * linux-nat.c (get_signo): Update.
9323 * linux-thread-db.c (inferior_has_bug): Update.
9324 * m32c-tdep.c (m32c_return_value): Update.
9325 (m32c_m16c_address_to_pointer): Update.
9326 (m32c_m16c_pointer_to_address): Update.
9327 * m32r-tdep.c (m32r_frame_this_id): Update.
9328 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9329 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9330 * maint.c (maintenance_translate_address): Update.
9331 * minsyms.c (add_minsym_to_hash_table): Update.
9332 (add_minsym_to_demangled_hash_table): Update.
9333 (msymbol_objfile): Update.
9334 (lookup_minimal_symbol): Update.
9335 (iterate_over_minimal_symbols): Update.
9336 (lookup_minimal_symbol_text): Update.
9337 (lookup_minimal_symbol_by_pc_name): Update.
9338 (lookup_minimal_symbol_solib_trampoline): Update.
9339 (lookup_minimal_symbol_by_pc_section_1): Update.
9340 (lookup_minimal_symbol_and_objfile): Update.
9341 (prim_record_minimal_symbol_full): Update.
9342 (compare_minimal_symbols): Update.
9343 (compact_minimal_symbols): Update.
9344 (build_minimal_symbol_hash_tables): Update.
9345 (install_minimal_symbols): Update.
9346 (terminate_minimal_symbol_table): Update.
9347 (find_solib_trampoline_target): Update.
9348 (minimal_symbol_upper_bound): Update.
9349 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9350 * mips-tdep.c (mips_stub_frame_sniffer): Update.
9351 (mips_skip_pic_trampoline_code): Update.
9352 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
9353 * objc-lang.c (selectors_info): Update.
9354 (classes_info): Update.
9355 (find_methods): Update.
9356 (find_imps): Update.
9357 (find_objc_msgsend): Update.
9358 * objfiles.c (objfile_relocate1): Update.
9359 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
9360 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9361 * p-valprint.c (pascal_val_print): Update.
9362 * parse.c (write_exp_msymbol): Update.
9363 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
9364 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
9365 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9366 * printcmd.c (build_address_symbolic): Update.
9367 (sym_info): Update.
9368 (address_info): Update.
9369 * proc-service.c (ps_pglobal_lookup): Update.
9370 * psymtab.c (find_pc_sect_psymtab_closer): Update.
9371 (find_pc_sect_psymtab): Update.
9372 * python/py-framefilter.c (py_print_frame): Update.
9373 * ravenscar-thread.c (get_running_thread_id): Update.
9374 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
9375 Update.
9376 * remote.c (remote_check_symbols): Update.
9377 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
9378 (rs6000_skip_trampoline_code): Update.
9379 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
9380 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9381 * solib-dsbt.c (lm_base): Update.
9382 * solib-frv.c (lm_base): Update.
9383 (main_got): Update.
9384 * solib-irix.c (locate_base): Update.
9385 * solib-som.c (som_solib_create_inferior_hook): Update.
9386 (som_solib_desire_dynamic_linker_symbols): Update.
9387 (link_map_start): Update.
9388 * solib-spu.c (spu_enable_break): Update.
9389 (ocl_enable_break): Update.
9390 * solib-svr4.c (elf_locate_base): Update.
9391 (enable_break): Update.
9392 * spu-tdep.c (spu_get_overlay_table): Update.
9393 (spu_catch_start): Update.
9394 (flush_ea_cache): Update.
9395 * stabsread.c (define_symbol): Update.
9396 (scan_file_globals): Update.
9397 * stack.c (find_frame_funname): Update.
9398 (frame_info): Update.
9399 * symfile.c (simple_read_overlay_table): Update.
9400 (simple_overlay_update): Update.
9401 * symmisc.c (dump_msymbols): Update.
9402 * symtab.c (fixup_section): Update.
9403 (find_pc_sect_line): Update.
9404 (skip_prologue_sal): Update.
9405 (search_symbols): Update.
9406 (print_msymbol_info): Update.
9407 (rbreak_command): Update.
9408 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
9409 (completion_list_objc_symbol): Update.
9410 (default_make_symbol_completion_list_break_on): Update.
9411 * tracepoint.c (scope_info): Update.
9412 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
9413 (tui_get_begin_asm_address): Update.
9414 * valops.c (find_function_in_inferior): Update.
9415 * value.c (value_static_field): Update.
9416 (value_fn_field): Update.
9417
50e65b17
TT
94182014-02-26 Tom Tromey <tromey@redhat.com>
9419
9420 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
9421 bound minimal symbols. Move code that knows about minsym
9422 table layout...
9423 * minsyms.c (minimal_symbol_upper_bound): ... here. New
9424 function.
9425 * minsyms.h (minimal_symbol_upper_bound): Declare.
9426 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
9427 minimal_symbol_upper_bound.
9428
1b588015
JB
94292014-02-27 Joel Brobecker <brobecker@adacore.com>
9430
9431 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
9432 Use the type's name if its basic type does not have a tag.
9433
dbb9c2b1
JB
94342014-02-27 Joel Brobecker <brobecker@adacore.com>
9435
9436 * dwarf2read.c (read_subrange_type): Add comment.
9437
55426c9d
JB
94382014-02-27 Joel Brobecker <brobecker@adacore.com>
9439
9440 * dwarf2read.c (update_enumeration_type_from_children): New
9441 function, mostly extracted from process_structure_scope.
9442 (read_enumeration_type): Call update_enumeration_type_from_children.
9443 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
9444 and flag_flag_enum fields.
9445
f2fce0ca
PA
94462014-02-26 Pedro Alves <palves@redhat.com>
9447
9448 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
9449 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
9450 to_xfer_partial method.
9451
7a44e40e
PA
94522014-02-26 Pedro Alves <palves@redhat.com>
9453
9454 * target.c (complete_target_initialization): Don't install
9455 default_xfer_partial as to_xfer_partial hook.
9456 (nomemory): Delete.
9457 (update_current_target): Don't INHERIT nor de_fault
9458 deprecated_xfer_memory. Delete de_fault macro.
9459 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
9460 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
9461 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
9462 field.
9463
bd265cd0
PA
94642014-02-26 Pedro Alves <palves@redhat.com>
9465
9466 * go32-nat.c (my_write_child): New function.
9467 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
9468 (go32_xfer_partial): New function.
9469 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
9470 Instead install a to_xfer_partial hook.
9471
9d46c4e5
PA
94722014-02-26 Pedro Alves <palves@redhat.com>
9473
9474 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
9475 to_xfer_partial helper. Rewrite.
9476 (procfs_xfer_partial): New function.
9477 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
9478 Install a to_xfer_partial hook.
9479
a1583b1f
PA
94802014-02-26 Pedro Alves <palves@redhat.com>
9481
9482 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
9483 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
9484 (m32r_xfer_partial): New function.
9485 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
9486 Install a to_xfer_partial hook.
9487
6df1b29f
PA
94882014-02-26 Pedro Alves <palves@redhat.com>
9489
9490 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
9491 helper.
9492 (mips_xfer_partial): New function.
9493 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
9494 hook. Install a to_xfer_partial hook.
9495
dc53a7ad
JB
94962014-02-26 Joel Brobecker <brobecker@adacore.com>
9497
9498 * gdbtypes.h (create_array_type_with_stride): Add declaration.
9499 * gdbtypes.c (create_array_type_with_stride): New function,
9500 renaming create_array_type, but with an added parameter
9501 called "bit_stride".
9502 (create_array_type): Re-implement using
9503 create_array_type_with_stride.
9504 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
9505 and DW_AT_bit_stride attributes.
9506
12ab52e9
PA
95072014-02-26 Pedro Alves <palves@redhat.com>
9508
9509 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
9510 task-specific breakpoints.
9511
d16461ae
PA
95122014-02-25 Pedro Alves <palves@redhat.com>
9513
9514 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
9515 handling of object == TARGET_OBJECT_UNWIND_TABLE.
9516
a8b16220
SS
95172014-02-25 Stan Shebs <stan@codesourcery.com>
9518
9519 * defs.h: Annotate comments for Doxygen.
9520
b9e795ee
TT
95212014-02-25 Tom Tromey <tromey@redhat.com>
9522
9523 * target.h (target_ignore): Don't declare.
9524 * target.c (target_ignore): Remove.
9525
849c862e
JK
95262014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
9527
9528 PR gdb/16626
9529 * auto-load.c (auto_load_objfile_script_1): Change filename to
9530 debugfile.
9531
475109d8
JB
95322014-02-25 Joel Brobecker <brobecker@adacore.com>
9533
9534 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
9535 documentation. Adjust prototype to match the target_ops
9536 to_xfer_partial method. Adjust implementation accordingly.
9537
e186c3bd
HZ
95382014-02-25 Hui Zhu <hui@codesourcery.com>
9539
9540 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
9541 to_traceframe_info.
9542
6d451942
KB
95432014-02-25 Kevin Buettner <kevinb@redhat.com>
9544
041ab8b4 9545 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
6d451942
KB
9546 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
9547 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
9548 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
9549 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
9550 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
9551 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
9552 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
9553 New constants.
9554 (rl78_register_type): Use a data pointer type for SP and
9555 new pseudo registers mentioned above. Use a 16 bit integer
9556 type for all other register pairs.
9557 (rl78_register_name, rl78_g10_register_name): Update for
9558 new pseudo registers.
9559 (rl78_pseudo_register_read): Likewise.
9560 (rl78_pseudo_register_write): Likewise.
9561 (rl78_dwarf_reg_to_regnum): Return register numbers representing
9562 to the newly added pseudo registers.
9563
eddf0bae
DE
95642014-02-24 Doug Evans <dje@google.com>
9565
9566 * value.c (record_latest_value): Fix comment.
9567 * printcmd.c (print_command_1): Remove code to handle -1 return from
9568 record_latest_value.
9569
e96027e0
PA
95702014-02-24 Pedro Alves <palves@redhat.com>
9571
9572 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
9573 deprecated_xfer_memory hook.
9574 (procfs_xfer_partial): Call procfs_xfer_memory instead
9575 of the deprecated_xfer_memory target hook.
9576 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
9577 helper.
9578
0837c976
YZ
95792014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
9580
9581 * windows-nat.c (windows_xfer_shared_libraries): Return
9582 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
9583 requested object is TARGET_OBJECT_LIBRARIES.
9584
bc113b4e
YQ
95852014-02-24 Yao Qi <yao@codesourcery.com>
9586
9587 * target.h (enum target_xfer_status)
9588 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
9589 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
9590 explicitly. New.
9591 * corefile.c (memory_error_message): User updated.
9592 * exec.c (section_table_read_available_memory): Likewise.
9593 * record-btrace.c (record_btrace_xfer_partial): Likewise.
9594 * target.c (target_xfer_status_to_string): Likewise.
9595 (raw_memory_xfer_partial): Likewise.
9596 (memory_xfer_partial_1, target_xfer_partial): Likewise.
9597 * valops.c (read_value_memory): Likewise.
9598 * exec.h: Update comments.
9599
01cb8804
YQ
96002014-02-24 Yao Qi <yao@codesourcery.com>
9601
9602 * target.c (target_xfer_status_to_string): Rename argument err
9603 to status.
9604 * target.h (target_xfer_status_to_string): Update declaration.
9605 Replace target_xfer_error_to_string with
9606 target_xfer_status_to_string in comment.
9607
93063aa6
YQ
96082014-02-24 Yao Qi <yao@codesourcery.com>
9609
9610 * mips-linux-nat.c (super_close): Update its type.
9611 (mips_linux_close): Pass 'self' to super_close.
9612
5c328c05
YQ
96132014-02-24 Yao Qi <yao@codesourcery.com>
9614
9615 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
9616 * corefile.c (read_memory): Adjusted.
9617 * target.c (target_write_with_progress): Adjusted.
9618
f73023dd
YQ
96192014-02-23 Yao Qi <yao@codesourcery.com>
9620
9621 Revert two patches:
9622
9623 2013-10-25 Yao Qi <yao@codesourcery.com>
9624
9625 * remote.c (remote_traceframe_info): Return early if
9626 traceframe is not selected.
9627
9628 2013-07-19 Yao Qi <yao@codesourcery.com>
9629
9630 * target.c (update_current_target): Change the default action
9631 of 'to_traceframe_info' from tcomplain to return_zero.
9632 * target.h (struct target_ops) <to_traceframe_info>: Add more
9633 comments.
9634
5a2eb0ef
YQ
96352014-02-23 Yao Qi <yao@codesourcery.com>
9636
9637 * valops.c (read_value_memory): Rewrite it. Call
9638 target_xfer_partial in a loop.
9639 * exec.h (section_table_available_memory): Remove declaration.
9640 Move comments to ...
9641 * exec.c (section_table_available_memory): ... here. Make it
9642 static.
9643
1ee79381
YQ
96442014-02-23 Yao Qi <yao@codesourcery.com>
9645
9646 * exec.c (section_table_read_available_memory): New function.
9647 * exec.h (section_table_read_available_memory): Declare.
9648 * ctf.c (ctf_xfer_partial): Call
9649 section_table_read_available_memory.
9650 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9651
1ca49d37
YQ
96522014-02-23 Yao Qi <yao@codesourcery.com>
9653
9654 * ctf.c (ctf_xfer_partial): Move code to ...
9655 * exec.c (exec_read_partial_read_only): ... it. New function.
9656 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9657 * tracefile.c: Include "exec.h".
9658 * exec.h (exec_read_partial_read_only): Declare.
9659
a283690e
YQ
96602014-02-23 Yao Qi <yao@codesourcery.com>
9661
9662 * tracefile-tfile.c (tfile_has_all_memory): Remove.
9663 (tfile_has_memory): Remove.
9664 (init_tfile_ops): Don't set fields to_has_all_memory and
9665 to_has_memory of tfile_ops.
9666 * tracefile.c (tracefile_has_all_memory): New function.
9667 (tracefile_has_memory): New function.
9668 (init_tracefile_ops): Initialize fields to_has_all_memory and
9669 to_has_memory of 'ops'.
9670
12e03cd0
YQ
96712014-02-23 Yao Qi <yao@codesourcery.com>
9672
9673 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
9674 (ctf_thread_alive, ctf_get_trace_status): Remove.
9675 (init_ctf_ops): Don't set some fields of ctf_ops. Call
9676 init_tracefile_ops.
9677 * tracefile-tfile.c (tfile_get_trace_status): Remove.
9678 (tfile_has_stack, tfile_has_registers): Remove.
9679 (tfile_thread_alive): Remove.
9680 (init_tfile_ops): Don't set some fields of tfile_ops. Call
9681 init_tracefile_ops.
9682 * tracefile.c (tracefile_has_stack): New function.
9683 (tracefile_has_registers): New function.
9684 (tracefile_thread_alive): New function.
9685 (tracefile_get_trace_status): New function.
9686 (init_tracefile_ops): New function.
9687 * tracefile.h (init_tracefile_ops): Declare.
9688
11395323
YQ
96892014-02-23 Yao Qi <yao@codesourcery.com>
9690
9691 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
9692 (O_LARGEFILE): Likewise.
9693 (tfile_ops): Likewise.
9694 (TRACE_HEADER_SIZE): Likewise.
9695 (trace_fd, trace_frames_offset, cur_offset): Likewise.
9696 (cur_data_size): Likewise.
9697 (tfile_read, tfile_open, tfile_interp_line): Likewise.
9698 (tfile_close, tfile_files_info): Likewise.
9699 (tfile_get_trace_status): Likewise.
9700 (tfile_get_tracepoint_status): Likewise.
9701 (tfile_get_traceframe_address): Likewise.
9702 (tfile_trace_find, match_blocktype): Likewise.
9703 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
9704 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
9705 (tfile_get_trace_state_variable_value): Likewise.
9706 (tfile_has_all_memory, tfile_has_memory): Likewise.
9707 (tfile_has_stack, tfile_has_registers): Likewise.
9708 (tfile_thread_alive, build_traceframe_info): Likewise.
9709 (tfile_traceframe_info, init_tfile_ops): Likewise.
9710 (_initialize_tracepoint): Don't call init_tfile_ops
9711 and add_target_with_completer.
9712 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
9713 exec.h, completer.h and filenames.h.
9714 (_initialize_tracefile_tfile): New function.
9715
7951c4eb
YQ
97162014-02-23 Yao Qi <yao@codesourcery.com>
9717
9718 * Makefile.in (REMOTE_OBS): Append tracefile.o and
9719 tracefile-tfile.o.
9720 (HFILES_NO_SRCDIR): Add tracefile.h.
9721 * ctf.c: Include "tracefile.h".
9722 * tracefile.h: New file.
9723 * tracefile.c: New file
9724 * tracefile-tfile.c: New file.
9725 * tracepoint.c: Include "tracefile.h".
9726 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
9727 (stop_reason_names): Add const.
9728 (trace_file_writer_xfree): Move it to tracefile.c.
9729 (trace_save, trace_save_command, trace_save_tfile): Likewise.
9730 (trace_save_ctf): Likewise.
9731 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
9732 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
9733 (tfile_write_header, tfile_write_regblock_type): Likewise.
9734 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
9735 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
9736 (tfile_write_raw_data, tfile_end): Likewise.
9737 (tfile_trace_file_writer_new): Likewise.
9738 (free_uploaded_tp): Make it extern.
9739 (free_uploaded_tsv): Make it extern.
9740 (_initialize_tracepoint): Move code to register command 'tsave'
9741 to tracefile.c.
9742 * tracepoint.h (stop_reason_names): Declare.
9743 (struct trace_frame_write_ops): Move it to tracefile.h.
9744 (struct trace_file_write_ops): Likewise.
9745 (struct trace_file_writer): Likewise.
9746 (free_uploaded_tsvs, free_uploaded_tps): Declare.
9747
184cd072
JK
97482014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9749
9750 PR gdb/16594
9751 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
9752 process name.
9753 (get_cores_used_by_process): New parameter num_cores, use it.
9754 (linux_xfer_osdata_processes): Pass num_cores to it.
9755 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
9756 process name.
9757
c63528fc
AK
97582014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
9759
9760 * target.c (memory_xfer_partial): Fix length arg in call to
9761 breakpoint_xfer_memory.
9762
d7b30f67
SDJ
97632014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9764
9765 PR tdep/16397
9766 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
9767 number comes after the + or - signs. Adjust length of register
9768 name to be extracted.
9769
8838afaf
TT
97702014-02-20 Tom Tromey <tromey@redhat.com>
9771
9772 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
9773 (ada_varobj_ops): Mark "extern".
9774
05227d14
TT
97752014-02-20 Tom Tromey <tromey@redhat.com>
9776
9777 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
9778
1254eefc
DE
97792014-02-20 Doug Evans <xdje42@gmail.com>
9780
9781 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
9782 All callers updated.
9783 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
9784 All callers updated.
9785 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
9786 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
9787
adde2bff
DE
97882014-02-20 lin zuojian <manjian2006@gmail.com>
9789 Joel Brobecker <brobecker@adacore.com>
9790 Doug Evans <xdje42@gmail.com>
9791
9792 PR symtab/16581
9793 * dwarf2read.c (struct die_info): New member in_process.
9794 (reset_die_in_process): New function.
9795 (process_die): Set it at the start, reset when returning.
9796 (inherit_abstract_dies): Only call process_die if origin_child_die
9797 not already being processed.
9798
3be75f87
JB
97992014-02-20 Joel Brobecker <brobecker@adacore.com>
9800
9801 * windows-nat.c (handle_unload_dll): Add function documentation.
9802 (do_initial_windows_stuff): Add comment explaining why we wait
9803 until after inferior initialization has finished before
9804 processing all DLLs.
9805
47f7ffdb
JB
98062014-02-20 Joel Brobecker <brobecker@adacore.com>
9807
9808 * windows-nat.c (get_module_name): Delete.
9809 (windows_get_exec_module_filename): New function, mostly
9810 inspired from get_module_name.
9811 (windows_pid_to_exec_file): Replace call to get_module_name
9812 by call to windows_get_exec_module_filename.
9813
1cd9feab
JB
98142014-02-20 Joel Brobecker <brobecker@adacore.com>
9815
9816 * windows-nat.c (handle_load_dll): Rewrite this function's
9817 introductory comment. Remove code using get_module_name
9818 to get the DLL's name.
9819
ea39ad35
JB
98202014-02-20 Joel Brobecker <brobecker@adacore.com>
9821
9822 * windows-nat.c (get_windows_debug_event): Ignore
9823 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
9824 if windows_initialization_done == 0.
9825 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
9826 Adjust implementation to always load all DLLs.
9827 (do_initial_windows_stuff): Replace call to
9828 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
9829
95060284
JB
98302014-02-20 Joel Brobecker <brobecker@adacore.com>
9831
9832 * windows-nat.c (_initialize_windows_nat): Deprecate the
9833 "dll-symbols" command. Turn the "add-shared-symbol-files"
9834 and "assf" aliases into commands, and deprecate them as well.
9835 * NEWS: Add entry explaining that "dll-symbols" and its two
9836 aliases are now deprecated.
9837
8d4fdb12
JB
98382014-02-20 Joel Brobecker <brobecker@adacore.com>
9839
9840 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
9841 new-line in debug string. Remove trailing spaces.
9842
1b281443
SS
98432014-02-19 Stan Shebs <stan@codesourcery.com>
9844
9845 * darwin-nat.c (darwin_xfer_partial): Fix return type.
9846
f7bd0f78
SC
98472014-02-19 Siva Chandra Reddy <sivachandra@google.com>
9848
9849 * NEWS: Add entry for the new feature
9850 * python/py-value.c (valpy_binop): Call value_x_binop for struct
9851 and class values.
9852
399ebc3d
SS
98532014-02-19 Stan Shebs <stan@codesourcery.com>
9854
9855 * MAINTAINERS: List Yao Qi as nios2 maintainer.
9856
c658158d
PA
98572014-02-19 Pedro Alves <palves@redhat.com>
9858
9859 * common/ptid.h (struct ptid): Mention that process_stratum
9860 targets should prefer ptid.lwp.
9861
ba348170
PA
98622014-02-19 Pedro Alves <palves@redhat.com>
9863
9864 * remote.c (remote_thread_alive, write_ptid, read_ptid)
9865 (read_ptid, remote_newthread_step, remote_threads_extra_info)
9866 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
9867 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
9868 store remote thread ids rather than ptid.tid.
9869 (_initialize_remote): Adjust.
9870
ac01945b
TT
98712014-02-19 Tom Tromey <tromey@redhat.com>
9872
9873 * target.c (target_get_unwinder): Rewrite.
9874 (target_get_tailcall_unwinder): Rewrite.
9875 * record-btrace.c (record_btrace_to_get_unwinder): New function.
9876 (record_btrace_to_get_tailcall_unwinder): New function.
9877 (init_record_btrace_ops): Update.
9878 * target.h (struct target_ops) <to_get_unwinder,
9879 to_get_tailcall_unwinder>: Now function pointers. Use
9880 TARGET_DEFAULT_RETURN.
9881
8476dc92
TT
98822014-02-19 Tom Tromey <tromey@redhat.com>
9883
9884 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
9885 argument.
9886 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
9887
c0eca49f
TT
98882014-02-19 Tom Tromey <tromey@redhat.com>
9889
9890 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
9891 directly.
9892 * target-delegates.c: Rebuild.
9893 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
9894 TARGET_DEFAULT_FUNC.
9895 * target.c (default_target_decr_pc_after_break): Rename from
9896 forward_target_decr_pc_after_break. Simplify.
9897 (target_decr_pc_after_break): Rely on delegation.
9898
596b6b39
TT
98992014-02-19 Tom Tromey <tromey@redhat.com>
9900
9901 * target.c (update_current_target): Do not INHERIT to_doc or
9902 to_magic. Do not de_fault to_open or to_close.
9903
b427c1bc
TT
99042014-02-19 Tom Tromey <tromey@redhat.com>
9905
9906 * gcore.h (objfile_find_memory_regions): Declare.
9907 * gcore.c (objfile_find_memory_regions): No longer static. Add
9908 "self" argument.
9909 (_initialize_gcore): Don't call exec_set_find_memory_regions.
9910 * exec.c: Include gcore.h.
9911 (exec_set_find_memory_regions): Remove.
9912 (exec_find_memory_regions): Remove.
9913 (exec_do_find_memory_regions): Remove.
9914 (init_exec_ops): Update.
9915 * defs.h (exec_set_find_memory_regions): Remove.
9916
9b144037
TT
99172014-02-19 Tom Tromey <tromey@redhat.com>
9918
9919 * target-delegates.c: Rebuild.
9920 * target.h (struct target_ops) <to_extra_thread_info,
9921 to_thread_name, to_pid_to_exec_file, to_get_section_table,
9922 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
9923 not 0, in TARGET_DEFAULT_RETURN.
9924
555bbdeb
TT
99252014-02-19 Tom Tromey <tromey@redhat.com>
9926
9927 * target.c (complete_target_initialization): Remove casts. Use
9928 return_zero_has_execution.
9929 (return_zero): Add "ignore" argument.
9930 (return_zero_has_execution): New function.
9931 (init_dummy_target): Remove casts. Use
9932 return_zero_has_execution.
9933
be4ddd36
TT
99342014-02-19 Tom Tromey <tromey@redhat.com>
9935
9936 * target.c (update_current_target): Update comments. Do not
9937 INHERIT to_stratum.
9938
2117c711
TT
99392014-02-19 Tom Tromey <tromey@redhat.com>
9940
9941 * arm-linux-nat.c (arm_linux_read_description): Delegate when
9942 needed.
9943 * corelow.c (core_read_description): Delegate when needed.
9944 * remote.c (remote_read_description): Delegate when needed.
9945 * target-delegates.c: Rebuild.
9946 * target.c (target_read_description): Rewrite.
9947 * target.h (struct target_ops) <to_read_description>: Update
9948 comment. Use TARGET_DEFAULT_RETURN.
9949
e88ef65c
TT
99502014-02-19 Tom Tromey <tromey@redhat.com>
9951
9952 * target-delegates.c: Rebuild.
9953 * target.c (update_current_target): Don't inherit or default
9954 to_can_run.
9955 (find_default_run_target): Check against delegate_can_run.
9956 * target.h (struct target_ops) <to_can_run>: Use
9957 TARGET_DEFAULT_RETURN.
9958
86a0854a
TT
99592014-02-19 Tom Tromey <tromey@redhat.com>
9960
9961 * target-delegates.c: Rebuild.
9962 * target.c (target_disconnect): Unconditionally delegate.
9963 * target.h (struct target_ops) <to_disconnect>: Use
9964 TARGET_DEFAULT_NORETURN.
9965
ee97f592
TT
99662014-02-19 Tom Tromey <tromey@redhat.com>
9967
9968 * record.c (record_stop): Unconditionally delegate.
9969 * target-delegates.c: Rebuild.
9970 * target.c (target_stop_recording): Unconditionally delegate.
9971 * target.h (struct target_ops) <to_stop_recording>: Use
9972 TARGET_DEFAULT_IGNORE.
9973
6dc7fcf4
TT
99742014-02-19 Tom Tromey <tromey@redhat.com>
9975
9976 * target-delegates.c: Rebuild.
9977 * target.c (target_enable_btrace): Unconditionally delegate.
9978 * target.h (struct target_ops) <to_enable_btrace>: Use
9979 TARGET_DEFAULT_NORETURN.
9980
eb5b20d4
TT
99812014-02-19 Tom Tromey <tromey@redhat.com>
9982
9983 * target-delegates.c: Rebuild.
9984 * target.c (target_read_btrace): Unconditionally delegate.
9985 * target.h (struct target_ops) <to_read_btrace>: Use
9986 TARGET_DEFAULT_NORETURN.
9987
9ace480d
TT
99882014-02-19 Tom Tromey <tromey@redhat.com>
9989
9990 * target-delegates.c: Rebuild.
9991 * target.c (target_teardown_btrace): Unconditionally delegate.
9992 * target.h (struct target_ops) <to_teardown_btrace>: Use
9993 TARGET_DEFAULT_NORETURN.
9994
8dc292d3
TT
99952014-02-19 Tom Tromey <tromey@redhat.com>
9996
9997 * target-delegates.c: Rebuild.
9998 * target.c (target_disable_btrace): Unconditionally delegate.
9999 * target.h (struct target_ops) <to_disable_btrace>: Use
10000 TARGET_DEFAULT_NORETURN.
10001
58a5184e
TT
100022014-02-19 Tom Tromey <tromey@redhat.com>
10003
10004 * target-delegates.c: Rebuild.
10005 * target.c (default_search_memory): New function.
10006 (simple_search_memory): Update comment.
10007 (target_search_memory): Unconditionally delegate.
10008 * target.h (struct target_ops) <to_search_memory>: Use
10009 TARGET_DEFAULT_FUNC.
10010
8de71aab
TT
100112014-02-19 Tom Tromey <tromey@redhat.com>
10012
10013 * auxv.c (default_auxv_parse): No longer static.
10014 (target_auxv_parse): Unconditionally delegate.
10015 * auxv.h (default_auxv_parse): Declare.
10016 * target-delegates.c: Rebuild.
10017 * target.c: Include auxv.h.
10018 * target.h (struct target_ops) <to_auxv_parse>: Use
10019 TARGET_DEFAULT_FUNC.
10020
6b2c5a57
TT
100212014-02-19 Tom Tromey <tromey@redhat.com>
10022
10023 * target-delegates.c: Rebuild.
10024 * target.c (target_memory_map): Unconditionally delegate.
10025 * target.h (struct target_ops) <to_memory_map>: Use
10026 TARGET_DEFAULT_RETURN.
10027
cbffc065
TT
100282014-02-19 Tom Tromey <tromey@redhat.com>
10029
10030 * target-delegates.c: Rebuild.
10031 * target.c (target_thread_alive): Unconditionally delegate.
10032 * target.h (struct target_ops) <to_thread_alive>: Use
10033 TARGET_DEFAULT_RETURN.
10034
f09e2107
TT
100352014-02-19 Tom Tromey <tromey@redhat.com>
10036
10037 * target-delegates.c: Rebuild.
10038 * target.c (target_save_record): Unconditionally delegate.
10039 * target.h (struct target_ops) <to_save_record>: Use
10040 TARGET_DEFAULT_NORETURN.
10041
07366925
TT
100422014-02-19 Tom Tromey <tromey@redhat.com>
10043
10044 * target-delegates.c: Rebuild.
10045 * target.c (target_delete_record): Unconditionally delegate.
10046 * target.h (struct target_ops) <to_delete_record>: Use
10047 TARGET_DEFAULT_NORETURN.
10048
dd2e9d25
TT
100492014-02-19 Tom Tromey <tromey@redhat.com>
10050
10051 * target-delegates.c: Rebuild.
10052 * target.c (target_record_is_replaying): Unconditionally
10053 delegate.
10054 * target.h (struct target_ops) <to_record_is_replaying>: Use
10055 TARGET_DEFAULT_RETURN.
10056
671e76cc
TT
100572014-02-19 Tom Tromey <tromey@redhat.com>
10058
10059 * target-delegates.c: Rebuild.
10060 * target.c (target_goto_record_begin): Unconditionally delegate.
10061 * target.h (struct target_ops) <to_goto_record_begin>: Use
10062 TARGET_DEFAULT_NORETURN.
10063
e9179bb3
TT
100642014-02-19 Tom Tromey <tromey@redhat.com>
10065
10066 * target-delegates.c: Rebuild.
10067 * target.c (target_goto_record_end): Unconditionally delegate.
10068 * target.h (struct target_ops) <to_goto_record_end>: Use
10069 TARGET_DEFAULT_NORETURN.
10070
05969c84
TT
100712014-02-19 Tom Tromey <tromey@redhat.com>
10072
10073 * target-delegates.c: Rebuild.
10074 * target.c (target_goto_record): Unconditionally delegate.
10075 * target.h (struct target_ops) <to_goto_record>: Use
10076 TARGET_DEFAULT_NORETURN.
10077
3679abfa
TT
100782014-02-19 Tom Tromey <tromey@redhat.com>
10079
10080 * target-delegates.c: Rebuild.
10081 * target.c (target_insn_history): Unconditionally delegate.
10082 * target.h (struct target_ops) <to_insn_history>: Use
10083 TARGET_DEFAULT_NORETURN.
10084
8444ab58
TT
100852014-02-19 Tom Tromey <tromey@redhat.com>
10086
10087 * target-delegates.c: Rebuild.
10088 * target.c (target_insn_history_from): Unconditionally delegate.
10089 * target.h (struct target_ops) <to_insn_history_from>: Use
10090 TARGET_DEFAULT_NORETURN.
10091
c29302cc
TT
100922014-02-19 Tom Tromey <tromey@redhat.com>
10093
10094 * target-delegates.c: Rebuild.
10095 * target.c (target_insn_history_range): Unconditionally delegate.
10096 * target.h (struct target_ops) <to_insn_history_range>: Use
10097 TARGET_DEFAULT_NORETURN.
10098
170049d4
TT
100992014-02-19 Tom Tromey <tromey@redhat.com>
10100
10101 * target-delegates.c: Rebuild.
10102 * target.c (target_call_history): Unconditionally delegate.
10103 * target.h (struct target_ops) <to_call_history>: Use
10104 TARGET_DEFAULT_NORETURN.
10105
16fc27d6
TT
101062014-02-19 Tom Tromey <tromey@redhat.com>
10107
10108 * target-delegates.c: Rebuild.
10109 * target.c (target_call_history_from): Unconditionally delegate.
10110 * target.h (struct target_ops) <to_call_history_from>: Use
10111 TARGET_DEFAULT_NORETURN.
10112
115d9817
TT
101132014-02-19 Tom Tromey <tromey@redhat.com>
10114
10115 * target-delegates.c: Rebuild.
10116 * target.c (target_call_history_range): Unconditionally delegate.
10117 * target.h (struct target_ops) <to_call_history_range>: Use
10118 TARGET_DEFAULT_NORETURN.
10119
eb276a6b
TT
101202014-02-19 Tom Tromey <tromey@redhat.com>
10121
10122 * target-delegates.c: Rebuild.
10123 * target.c (target_verify_memory): Unconditionally delegate.
10124 * target.h (struct target_ops) <to_verify_memory>: Use
10125 TARGET_DEFAULT_NORETURN.
10126
9e538d0d
TT
101272014-02-19 Tom Tromey <tromey@redhat.com>
10128
10129 * target-delegates.c: Rebuild.
10130 * target.c (target_core_of_thread): Unconditionally delegate.
10131 * target.h (struct target_ops) <to_core_of_thread>: Use
10132 TARGET_DEFAULT_RETURN.
10133
f6fb2925
TT
101342014-02-19 Tom Tromey <tromey@redhat.com>
10135
10136 * target-delegates.c: Rebuild.
10137 * target.c (target_flash_done): Unconditionally delegate.
10138 * target.h (struct target_ops) <to_flash_done>: Use
10139 TARGET_DEFAULT_NORETURN.
10140
e8a6c6ac
TT
101412014-02-19 Tom Tromey <tromey@redhat.com>
10142
10143 * target-delegates.c: Rebuild.
10144 * target.c (target_flash_erase): Unconditionally delegate.
10145 * target.h (struct target_ops) <to_flash_erase>: Use
10146 TARGET_DEFAULT_NORETURN.
10147
7e35c012
TT
101482014-02-19 Tom Tromey <tromey@redhat.com>
10149
10150 * target-delegates.c: Rebuild.
10151 * target.c (target_get_section_table): Unconditionally delegate.
10152 * target.h (struct target_ops) <to_get_section_table>: Use
10153 TARGET_DEFAULT_RETURN.
10154
770234d3
TT
101552014-02-19 Tom Tromey <tromey@redhat.com>
10156
10157 * target-delegates.c: Rebuild.
10158 * target.c (target_pid_to_str): Unconditionally delegate.
10159 (init_dummy_target): Don't initialize to_pid_to_str.
10160 (default_pid_to_str): Rename from dummy_pid_to_str.
10161 * target.h (struct target_ops) <to_pid_to_str>: Use
10162 TARGET_DEFAULT_FUNC.
10163
09b0dc2b
TT
101642014-02-19 Tom Tromey <tromey@redhat.com>
10165
10166 * target-delegates.c: Rebuild.
10167 * target.c (target_find_new_threads): Unconditionally delegate.
10168 * target.h (struct target_ops) <to_find_new_threads>: Use
10169 TARGET_DEFAULT_RETURN.
10170
7d4f8efa
TT
101712014-02-19 Tom Tromey <tromey@redhat.com>
10172
10173 * target-delegates.c: Rebuild.
10174 * target.c (target_program_signals): Unconditionally delegate.
10175 * target.h (struct target_ops) <to_program_signals>: Use
10176 TARGET_DEFAULT_IGNORE.
10177
035cad7f
TT
101782014-02-19 Tom Tromey <tromey@redhat.com>
10179
10180 * target-delegates.c: Rebuild.
10181 * target.c (target_pass_signals): Unconditionally delegate.
10182 * target.h (struct target_ops) <to_pass_signals>: Use
10183 TARGET_DEFAULT_IGNORE.
10184
8d657035
TT
101852014-02-19 Tom Tromey <tromey@redhat.com>
10186
10187 * target-delegates.c: Rebuild.
10188 * target.c (default_mourn_inferior): New function.
10189 (target_mourn_inferior): Unconditionally delegate.
10190 * target.h (struct target_ops) <to_mourn_inferior>: Use
10191 TARGET_DEFAULT_FUNC.
10192
098dba18
TT
101932014-02-19 Tom Tromey <tromey@redhat.com>
10194
10195 * target-delegates.c: Rebuild.
10196 * target.c (default_follow_fork): New function.
10197 (target_follow_fork): Unconditionally delegate.
10198 * target.h (struct target_ops) <to_follow_fork>: Use
10199 TARGET_DEFAULT_FUNC.
10200
423a4807
TT
102012014-02-19 Tom Tromey <tromey@redhat.com>
10202
10203 * target-delegates.c: Rebuild.
10204 * target.c (target_kill): Unconditionally delegate.
10205 * target.h (struct target_ops) <to_kill>: Use
10206 TARGET_DEFAULT_NORETURN.
10207
6c7e5e5c
TT
102082014-02-19 Tom Tromey <tromey@redhat.com>
10209
10210 * target-delegates.c: Rebuild.
10211 * target.c (target_masked_watch_num_registers): Unconditionally
10212 delegate.
10213 * target.h (struct target_ops) <to_masked_watch_num_registers>:
10214 Use TARGET_DEFAULT_RETURN.
10215
8b1c364c
TT
102162014-02-19 Tom Tromey <tromey@redhat.com>
10217
10218 * target-delegates.c: Rebuild.
10219 * target.c (target_remove_mask_watchpoint): Unconditionally
10220 delegate.
10221 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
10222 TARGET_DEFAULT_RETURN.
10223
cd4ae029
TT
102242014-02-19 Tom Tromey <tromey@redhat.com>
10225
10226 * target-delegates.c: Rebuild.
10227 * target.c (target_insert_mask_watchpoint): Unconditionally
10228 delegate.
10229 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
10230 TARGET_DEFAULT_RETURN.
10231
a134316b
TT
102322014-02-19 Tom Tromey <tromey@redhat.com>
10233
10234 * target-delegates.c: Rebuild.
10235 * target.c (target_ranged_break_num_registers): Unconditionally
10236 delegate.
10237 * target.h (struct target_ops) <to_ranged_break_num_registers>:
10238 Use TARGET_DEFAULT_RETURN.
10239
ad5989bd
TT
102402014-02-19 Tom Tromey <tromey@redhat.com>
10241
10242 * target-delegates.c: Rebuild.
10243 * target.c (target_fetch_registers): Unconditionally delegate.
10244 * target.h (struct target_ops) <to_fetch_registers>: Use
10245 TARGET_DEFAULT_NORETURN.
10246
46ee7e8d
TT
102472014-02-19 Tom Tromey <tromey@redhat.com>
10248
10249 * target-delegates.c: Rebuild.
10250 * target.c (update_current_target): Don't inherit or default
10251 to_stop.
10252 * target.h (struct target_ops) <to_stop>: Use
10253 TARGET_DEFAULT_IGNORE.
10254
843f59ed
TT
102552014-02-19 Tom Tromey <tromey@redhat.com>
10256
10257 * target-delegates.c: Rebuild.
10258 * target.c (update_current_target): Don't inherit or default
10259 to_can_run_breakpoint_commands.
10260 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
10261 Use TARGET_DEFAULT_RETURN.
10262
ccfde2a0
TT
102632014-02-19 Tom Tromey <tromey@redhat.com>
10264
10265 * target-delegates.c: Rebuild.
10266 * target.c (update_current_target): Don't inherit or default
10267 to_supports_evaluation_of_breakpoint_conditions.
10268 * target.h (struct target_ops)
10269 <to_supports_evaluation_of_breakpoint_conditions>: Use
10270 TARGET_DEFAULT_RETURN.
10271
0de91722
TT
102722014-02-19 Tom Tromey <tromey@redhat.com>
10273
10274 * target-delegates.c: Rebuild.
10275 * target.c (update_current_target): Don't inherit or default
10276 to_augmented_libraries_svr4_read.
10277 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
10278 Use TARGET_DEFAULT_RETURN.
10279
9a7d8b48
TT
102802014-02-19 Tom Tromey <tromey@redhat.com>
10281
10282 * target-delegates.c: Rebuild.
10283 * target.c (update_current_target): Don't inherit or default
10284 to_can_use_agent.
10285 * target.h (struct target_ops) <to_can_use_agent>: Use
10286 TARGET_DEFAULT_RETURN.
10287
d9db5b21
TT
102882014-02-19 Tom Tromey <tromey@redhat.com>
10289
10290 * target-delegates.c: Rebuild.
10291 * target.c (update_current_target): Don't inherit or default
10292 to_use_agent.
10293 * target.h (struct target_ops) <to_use_agent>: Use
10294 TARGET_DEFAULT_NORETURN.
10295
92155eeb
TT
102962014-02-19 Tom Tromey <tromey@redhat.com>
10297
10298 * target-delegates.c: Rebuild.
10299 * target.c (update_current_target): Don't inherit or default
10300 to_traceframe_info.
10301 (return_null): Remove.
10302 * target.h (struct target_ops) <to_traceframe_info>: Use
10303 TARGET_DEFAULT_RETURN.
10304
d6522a22
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_static_tracepoint_markers_by_strid.
10310 * target.h (struct target_ops)
10311 <to_static_tracepoint_markers_by_strid>: Use
10312 TARGET_DEFAULT_NORETURN.
10313
4c3e4425
TT
103142014-02-19 Tom Tromey <tromey@redhat.com>
10315
10316 * target-delegates.c: Rebuild.
10317 * target.c (update_current_target): Don't inherit or default
10318 to_static_tracepoint_marker_at.
10319 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
10320 Use TARGET_DEFAULT_RETURN.
10321
dcd6917f
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_set_permissions.
10327 * target.h (struct target_ops) <to_set_permissions>: Use
10328 TARGET_DEFAULT_IGNORE.
10329
22bcceee
TT
103302014-02-19 Tom Tromey <tromey@redhat.com>
10331
10332 * target-delegates.c: Rebuild.
10333 * target.c (update_current_target): Don't inherit or default
10334 to_get_tib_address.
10335 * target.h (struct target_ops) <to_get_tib_address>: Use
10336 TARGET_DEFAULT_NORETURN.
10337
8586ccaa
TT
103382014-02-19 Tom Tromey <tromey@redhat.com>
10339
10340 * target-delegates.c: Rebuild.
10341 * target.c (update_current_target): Don't inherit or default
10342 to_set_trace_notes.
10343 * target.h (struct target_ops) <to_set_trace_notes>: Use
10344 TARGET_DEFAULT_RETURN.
10345
91df8d1d
TT
103462014-02-19 Tom Tromey <tromey@redhat.com>
10347
10348 * target-delegates.c: Rebuild.
10349 * target.c (update_current_target): Don't initialize
10350 to_set_trace_buffer_size.
10351 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
10352 TARGET_DEFAULT_IGNORE.
10353
8d526939
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_set_circular_trace_buffer.
10359 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
10360 TARGET_DEFAULT_IGNORE.
10361
0bcfeddf
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_set_disconnected_tracing.
10367 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
10368 TARGET_DEFAULT_IGNORE.
10369
9249843f
TT
103702014-02-19 Tom Tromey <tromey@redhat.com>
10371
10372 * target-delegates.c: Rebuild.
10373 * target.c (update_current_target): Don't inherit or default
10374 to_get_min_fast_tracepoint_insn_len.
10375 (return_minus_one): Remove.
10376 * target.h (struct target_ops)
10377 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
10378
ace92e7d
TT
103792014-02-19 Tom Tromey <tromey@redhat.com>
10380
10381 * target-delegates.c: Rebuild.
10382 * target.c (update_current_target): Don't inherit or default
10383 to_get_raw_trace_data.
10384 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
10385 TARGET_DEFAULT_NORETURN.
10386
08120467
TT
103872014-02-19 Tom Tromey <tromey@redhat.com>
10388
10389 * target-delegates.c: Rebuild.
10390 * target.c (update_current_target): Don't inherit or default
10391 to_upload_trace_state_variables.
10392 * target.h (struct target_ops) <to_upload_trace_state_variables>:
10393 Use TARGET_DEFAULT_RETURN.
10394
1e949b00
TT
103952014-02-19 Tom Tromey <tromey@redhat.com>
10396
10397 * target-delegates.c: Rebuild.
10398 * target.c (update_current_target): Don't inherit or default
10399 to_upload_tracepoints.
10400 * target.h (struct target_ops) <to_upload_tracepoints>: Use
10401 TARGET_DEFAULT_RETURN.
10402
a2e6c147
TT
104032014-02-19 Tom Tromey <tromey@redhat.com>
10404
10405 * target-delegates.c: Rebuild.
10406 * target.c (update_current_target): Don't inherit or default
10407 to_save_trace_data.
10408 * target.h (struct target_ops) <to_save_trace_data>: Use
10409 TARGET_DEFAULT_NORETURN.
10410
959bcd0b
TT
104112014-02-19 Tom Tromey <tromey@redhat.com>
10412
10413 * target-delegates.c: Rebuild.
10414 * target.c (update_current_target): Don't inherit or default
10415 to_get_trace_state_variable_value.
10416 * target.h (struct target_ops)
10417 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
10418
afc94e66
TT
104192014-02-19 Tom Tromey <tromey@redhat.com>
10420
10421 * target-delegates.c: Rebuild.
10422 * target.c (update_current_target): Don't inherit or default
10423 to_trace_find.
10424 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
10425
e51c07ea
TT
104262014-02-19 Tom Tromey <tromey@redhat.com>
10427
10428 * target-delegates.c: Rebuild.
10429 * target.c (update_current_target): Don't inherit or default
10430 to_trace_stop.
10431 * target.h (struct target_ops) <to_trace_stop>: Use
10432 TARGET_DEFAULT_NORETURN.
10433
6fea14cd
TT
104342014-02-19 Tom Tromey <tromey@redhat.com>
10435
10436 * target-delegates.c: Rebuild.
10437 * target.c (update_current_target): Don't inherit or default
10438 to_get_tracepoint_status.
10439 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
10440 TARGET_DEFAULT_NORETURN.
10441
4072d4ff
TT
104422014-02-19 Tom Tromey <tromey@redhat.com>
10443
10444 * target-delegates.c: Rebuild.
10445 * target.c (update_current_target): Don't inherit or default
10446 to_get_trace_status.
10447 * target.h (struct target_ops) <to_get_trace_status>: Use
10448 TARGET_DEFAULT_RETURN.
10449
25da2e80
TT
104502014-02-19 Tom Tromey <tromey@redhat.com>
10451
10452 * target-delegates.c: Rebuild.
10453 * target.c (update_current_target): Don't inherit or default
10454 to_trace_start.
10455 * target.h (struct target_ops) <to_trace_start>: Use
10456 TARGET_DEFAULT_NORETURN.
10457
86dd181d
TT
104582014-02-19 Tom Tromey <tromey@redhat.com>
10459
10460 * target-delegates.c: Rebuild.
10461 * target.c (update_current_target): Don't inherit or default
10462 to_trace_set_readonly_regions.
10463 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
10464 Use TARGET_DEFAULT_NORETURN.
10465
05c41993
TT
104662014-02-19 Tom Tromey <tromey@redhat.com>
10467
10468 * target-delegates.c: Rebuild.
10469 * target.c (update_current_target): Don't inherit or default
10470 to_disable_tracepoint.
10471 * target.h (struct target_ops) <to_disable_tracepoint>: Use
10472 TARGET_DEFAULT_NORETURN.
10473
151f70f1
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_enable_tracepoint.
10479 * target.h (struct target_ops) <to_enable_tracepoint>: Use
10480 TARGET_DEFAULT_NORETURN.
10481
94eb98b9
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_download_trace_state_variable.
10487 * target.h (struct target_ops) <to_download_trace_state_variable>:
10488 Use TARGET_DEFAULT_NORETURN.
10489
719acc4a
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_can_download_tracepoint.
10495 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
10496 TARGET_DEFAULT_RETURN.
10497
9a980a22
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_download_tracepoint.
10503 * target.h (struct target_ops) <to_download_tracepoint>: Use
10504 TARGET_DEFAULT_NORETURN.
10505
5536135b
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_trace_init.
10511 * target.h (struct target_ops) <to_trace_init>: Use
10512 TARGET_DEFAULT_RETURN.
10513
9409d39e
TT
105142014-02-19 Tom Tromey <tromey@redhat.com>
10515
10516 * target-delegates.c: Rebuild.
10517 * target.c (update_current_target): Don't inherit or default
10518 to_supports_string_tracing.
10519 * target.h (struct target_ops) <to_supports_string_tracing>: Use
10520 TARGET_DEFAULT_RETURN.
10521
aab1b22d
TT
105222014-02-19 Tom Tromey <tromey@redhat.com>
10523
10524 * target-delegates.c: Rebuild.
10525 * target.c (update_current_target): Don't inherit or default
10526 to_supports_enable_disable_tracepoint.
10527 * target.h (struct target_ops)
10528 <to_supports_enable_disable_tracepoint>: Use
10529 TARGET_DEFAULT_RETURN.
10530
a7304748
TT
105312014-02-19 Tom Tromey <tromey@redhat.com>
10532
10533 * target-delegates.c: Rebuild.
10534 * target.c (update_current_target): Don't inherit or default
10535 to_supports_multi_process.
10536 * target.h (struct target_ops) <to_supports_multi_process>: Use
10537 TARGET_DEFAULT_RETURN.
10538
4229b31d
TT
105392014-02-19 Tom Tromey <tromey@redhat.com>
10540
10541 * target-delegates.c: Rebuild.
10542 * target.c (update_current_target): Don't inherit or default
10543 to_get_ada_task_ptid.
10544 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
10545 TARGET_DEFAULT_FUNC.
10546
43eba180
TT
105472014-02-19 Tom Tromey <tromey@redhat.com>
10548
10549 * target-delegates.c: Rebuild.
10550 * target.c (update_current_target): Don't inherit or default
10551 to_thread_architecture.
10552 * target.h (struct target_ops) <to_thread_architecture>: Use
10553 TARGET_DEFAULT_FUNC.
10554
fe31bf5b
TT
105552014-02-19 Tom Tromey <tromey@redhat.com>
10556
10557 * target-delegates.c: Rebuild.
10558 * target.c (update_current_target): Don't inherit or default
10559 to_execution_direction.
10560 * target.h (struct target_ops) <to_execution_direction>: Use
10561 TARGET_DEFAULT_FUNC.
10562
53e1cfc7
TT
105632014-02-19 Tom Tromey <tromey@redhat.com>
10564
10565 * target-delegates.c: Rebuild.
10566 * target.c (update_current_target): Don't inherit or default
10567 to_can_execute_reverse.
10568 * target.h (struct target_ops) <to_can_execute_reverse>: Use
10569 TARGET_DEFAULT_RETURN.
10570 (target_can_execute_reverse): Unconditionally delegate.
10571
9bb9d61d
TT
105722014-02-19 Tom Tromey <tromey@redhat.com>
10573
10574 * target-delegates.c: Rebuild.
10575 * target.c (update_current_target): Don't inherit or default
10576 to_goto_bookmark.
10577 (dummy_goto_bookmark): Remove.
10578 (init_dummy_target): Don't inherit or default to_goto_bookmark.
10579 * target.h (struct target_ops) <to_goto_bookmark>: Use
10580 TARGET_DEFAULT_NORETURN.
10581
3dbafbbb
TT
105822014-02-19 Tom Tromey <tromey@redhat.com>
10583
10584 * target-delegates.c: Rebuild.
10585 * target.c (update_current_target): Don't inherit or default
10586 to_get_bookmark.
10587 (dummy_get_bookmark): Remove.
10588 (init_dummy_target): Don't inherit or default to_get_bookmark.
10589 * target.h (struct target_ops) <to_get_bookmark>: Use
10590 TARGET_DEFAULT_NORETURN
10591
16f796b1
TT
105922014-02-19 Tom Tromey <tromey@redhat.com>
10593
10594 * target-delegates.c: Rebuild.
10595 * target.c (update_current_target): Don't inherit or default
10596 to_make_corefile_notes.
10597 (init_dummy_target): Don't initialize to_make_corefile_notes.
10598 * target.h (struct target_ops) <to_make_corefile_notes>: Use
10599 TARGET_DEFAULT_FUNC.
10600
0b5a2719
TT
106012014-02-19 Tom Tromey <tromey@redhat.com>
10602
10603 * target-delegates.c: Rebuild.
10604 * target.c (update_current_target): Don't inherit or default
10605 to_find_memory_regions.
10606 (init_dummy_target): Don't initialize to_find_memory_regions.
10607 * target.h (struct target_ops) <to_find_memory_regions>: Use
10608 TARGET_DEFAULT_FUNC.
10609
d9cb0195
TT
106102014-02-19 Tom Tromey <tromey@redhat.com>
10611
10612 * target-delegates.c: Rebuild.
10613 * target.c (update_current_target): Don't inherit or default
10614 to_log_command.
10615 * target.h (struct target_ops) <to_log_command>: Use
10616 TARGET_DEFAULT_IGNORE.
10617 (target_log_command): Unconditionally delegate.
10618
830ca330
TT
106192014-02-19 Tom Tromey <tromey@redhat.com>
10620
10621 * target-delegates.c: Rebuild.
10622 * target.c (update_current_target): Don't inherit or default
10623 to_pid_to_exec_file.
10624 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
10625 TARGET_DEFAULT_RETURN.
10626
825828fc
TT
106272014-02-19 Tom Tromey <tromey@redhat.com>
10628
10629 * target-delegates.c: Rebuild.
10630 * target.c (update_current_target): Don't inherit or default
10631 to_thread_name.
10632 (target_thread_name): Unconditionally delegate.
10633 * target.h (struct target_ops) <to_thread_name>: Use
10634 TARGET_DEFAULT_RETURN.
10635
4a7e6dda
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_extra_thread_info.
10641 * target.h (struct target_ops) <to_extra_thread_info>: Use
10642 TARGET_DEFAULT_RETURN.
10643
0db88c1d
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_has_exited.
10649 * target.h (struct target_ops) <to_has_exited>: Use
10650 TARGET_DEFAULT_RETURN..
10651
6a9fa051
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_set_syscall_catchpoint.
10657 (return_one): Remove.
10658 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
10659 TARGET_DEFAULT_RETURN.
10660
62f64d7a
TT
106612014-02-19 Tom Tromey <tromey@redhat.com>
10662
10663 * target-delegates.c: Rebuild.
10664 * target.c (update_current_target): Don't inherit or default
10665 to_insert_exec_catchpoint.
10666 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
10667 TARGET_DEFAULT_RETURN.
10668
cda0f38c
TT
106692014-01-08 Tom Tromey <tromey@redhat.com>
10670
10671 * target-delegates.c: Rebuild.
10672 * target.c (update_current_target): Don't inherit or default
10673 to_insert_exec_catchpoint.
10674 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
10675 TARGET_DEFAULT_RETURN.
10676
95c3375e
TT
106772014-02-19 Tom Tromey <tromey@redhat.com>
10678
10679 * target-delegates.c: Rebuild.
10680 * target.c (update_current_target): Don't inherit or default
10681 to_remove_vfork_catchpoint.
10682 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
10683 TARGET_DEFAULT_RETURN.
10684
7e18a8dc
TT
106852014-02-19 Tom Tromey <tromey@redhat.com>
10686
10687 * target-delegates.c: Rebuild.
10688 * target.c (update_current_target): Don't inherit or default
10689 to_insert_vfork_catchpoint.
10690 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
10691 TARGET_DEFAULT_RETURN.
10692
e1a21fb7
TT
106932014-02-19 Tom Tromey <tromey@redhat.com>
10694
10695 * target-delegates.c: Rebuild.
10696 * target.c (update_current_target): Don't inherit or default
10697 to_remove_fork_catchpoint.
10698 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
10699 TARGET_DEFAULT_RETURN.
10700
5958ebeb
TT
107012014-02-19 Tom Tromey <tromey@redhat.com>
10702
10703 * target-delegates.c: Rebuild.
10704 * target.c (update_current_target): Don't inherit or default
10705 to_insert_fork_catchpoint.
10706 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
10707 TARGET_DEFAULT_RETURN.
10708
340ba4bf
TT
107092014-02-19 Tom Tromey <tromey@redhat.com>
10710
10711 * target-delegates.c: Rebuild.
10712 * target.c (update_current_target): Don't inherit or default
10713 to_post_startup_inferior.
10714 * target.h (struct target_ops) <to_post_startup_inferior>: Use
10715 TARGET_DEFAULT_IGNORE.
10716
7634da87
TT
107172014-02-19 Tom Tromey <tromey@redhat.com>
10718
10719 * target-delegates.c: Rebuild.
10720 * target.c (update_current_target): Don't inherit or default
10721 to_load.
10722 * target.h (struct target_ops) <to_load>: Use
10723 TARGET_DEFAULT_NORETURN.
10724
e19e919f
TT
107252014-02-19 Tom Tromey <tromey@redhat.com>
10726
10727 * target-delegates.c: Rebuild.
10728 * target.c (update_current_target): Don't inherit or default
10729 to_terminal_info.
10730 * target.h (struct target_ops) <to_terminal_info>: Use
10731 TARGET_DEFAULT_FUNC.
10732
c6ea8f79
TT
107332014-02-19 Tom Tromey <tromey@redhat.com>
10734
10735 * target-delegates.c: Rebuild.
10736 * target.c (update_current_target): Don't inherit or default
10737 to_terminal_save_ours.
10738 * target.h (struct target_ops) <to_terminal_save_ours>: Use
10739 TARGET_DEFAULT_IGNORE.
10740
e4a733f1
TT
107412014-02-19 Tom Tromey <tromey@redhat.com>
10742
10743 * target-delegates.c: Rebuild.
10744 * target.c (update_current_target): Don't inherit or default
10745 to_terminal_ours.
10746 * target.h (struct target_ops) <to_terminal_ours>: Use
10747 TARGET_DEFAULT_IGNORE.
10748
74fcbef9
TT
107492014-02-19 Tom Tromey <tromey@redhat.com>
10750
10751 * target-delegates.c: Rebuild.
10752 * target.c (update_current_target): Don't inherit or default
10753 to_terminal_ours_for_output.
10754 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
10755 TARGET_DEFAULT_IGNORE.
10756
ddeaacc9
TT
107572014-02-19 Tom Tromey <tromey@redhat.com>
10758
10759 * target-delegates.c: Rebuild.
10760 * target.c (update_current_target): Don't inherit or default
10761 to_terminal_inferior.
10762 * target.h (struct target_ops) <to_terminal_inferior>: Use
10763 TARGET_DEFAULT_IGNORE.
10764
0343661d
TT
107652014-02-19 Tom Tromey <tromey@redhat.com>
10766
10767 * target-delegates.c: Rebuild.
10768 * target.c (update_current_target): Don't inherit or default
10769 to_terminal_init.
10770 * target.h (struct target_ops) <to_terminal_init>: Use
10771 TARGET_DEFAULT_IGNORE.
10772
77cdffe9
TT
107732014-02-19 Tom Tromey <tromey@redhat.com>
10774
10775 * target-delegates.c: Rebuild.
10776 * target.c (update_current_target): Don't inherit or default
10777 to_can_accel_watchpoint_condition.
10778 * target.h (struct target_ops)
10779 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
10780
d03655e4
TT
107812014-02-19 Tom Tromey <tromey@redhat.com>
10782
10783 * target-delegates.c: Rebuild.
10784 * target.c (update_current_target): Don't inherit or default
10785 to_region_ok_for_hw_watchpoint.
10786 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10787 Use TARGET_DEFAULT_FUNC.
10788
65f160a9
TT
107892014-02-19 Tom Tromey <tromey@redhat.com>
10790
10791 * target-delegates.c: Rebuild.
10792 * target.c (update_current_target): Don't inherit or default
10793 to_watchpoint_addr_within_range.
10794 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
10795 Use TARGET_DEFAULT_FUNC.
10796
61dd109f
TT
107972014-02-19 Tom Tromey <tromey@redhat.com>
10798
10799 * target-delegates.c: Rebuild.
10800 * target.c (update_current_target): Don't inherit or default
10801 to_remove_watchpoint.
10802 * target.h (struct target_ops) <to_remove_watchpoint>: Use
10803 TARGET_DEFAULT_NORETURN.
10804
016facd4
TT
108052014-02-19 Tom Tromey <tromey@redhat.com>
10806
10807 * target-delegates.c: Rebuild.
10808 * target.c (update_current_target): Don't inherit or default
10809 to_insert_watchpoint.
10810 * target.h (struct target_ops) <to_insert_watchpoint>: Use
10811 TARGET_DEFAULT_RETURN.
10812
418dabac
TT
108132014-02-19 Tom Tromey <tromey@redhat.com>
10814
10815 * target-delegates.c: Rebuild.
10816 * target.c (update_current_target): Don't inherit or default
10817 to_remove_hw_breakpoint.
10818 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
10819 TARGET_DEFAULT_RETURN.
10820
61b371f9
TT
108212014-02-19 Tom Tromey <tromey@redhat.com>
10822
10823 * target-delegates.c: Rebuild.
10824 * target.c (update_current_target): Don't inherit or default
10825 to_insert_hw_breakpoint.
10826 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
10827 TARGET_DEFAULT_RETURN.
10828
52b51d06
TT
108292014-02-19 Tom Tromey <tromey@redhat.com>
10830
10831 * target-delegates.c: Rebuild.
10832 * target.c (update_current_target): Don't inherit or default
10833 to_can_use_hw_breakpoint.
10834 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
10835 TARGET_DEFAULT_RETURN.
10836
f86e59b2
TT
108372014-02-19 Tom Tromey <tromey@redhat.com>
10838
10839 * target-delegates.c: Rebuild.
10840 * target.c (update_current_target): Don't inherit or default
10841 to_files_info.
10842 * target.h (struct target_ops) <to_files_info>: Use
10843 TARGET_DEFAULT_IGNORE.
10844
6c628163
TT
108452014-02-19 Tom Tromey <tromey@redhat.com>
10846
10847 * target-delegates.c: Rebuild.
10848 * target.c (update_current_target): Don't inherit or default
10849 to_store.
10850 * target.h (struct target_ops) <to_store>: Use
10851 TARGET_DEFAULT_NORETURN.
10852
bebd3233
TT
108532014-02-19 Tom Tromey <tromey@redhat.com>
10854
10855 * target-delegates.c: Rebuild.
10856 * target.c (update_current_target): Don't inherit or default
10857 to_post_attach.
10858 * target.h (struct target_ops) <to_post_attach>: Use
10859 TARGET_DEFAULT_IGNORE.
10860
a53f3625
TT
108612014-02-19 Tom Tromey <tromey@redhat.com>
10862
10863 * target-delegates.c: Rebuild.
10864 * target.c (update_current_target): Don't inherit or default
10865 to_rcmd.
10866 (default_rcmd): New function.
10867 (do_monitor_command): Unconditionally delegate.
10868 * target.h (struct target_ops) <to_rmcd>: Use
10869 TARGET_DEFAULT_FUNC.
10870
e9a29200
TT
108712014-02-19 Tom Tromey <tromey@redhat.com>
10872
10873 * target-delegates.c: Rebuild.
10874 * target.c (init_dummy_target): Don't initialize to_attach.
10875 (target_attach): Unconditionally delegate.
10876 * target.h (struct target_ops) <to_attach>: Use
10877 TARGET_DEFAULT_FUNC.
10878
09da0d0a
TT
108792014-02-19 Tom Tromey <tromey@redhat.com>
10880
10881 * target-delegates.c: Rebuild.
10882 * target.c (target_detach): Unconditionally delegate.
10883 (init_dummy_target): Don't initialize to_detach.
10884 * target.h (struct target_ops) <to_detach>: Use
10885 TARGET_DEFAULT_IGNORE.
10886
5436ff03
TT
108872014-02-19 Tom Tromey <tromey@redhat.com>
10888
10889 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
10890 Add argument.
10891 (target_augmented_libraries_svr4_read): Add argument.
10892 * target.c (update_current_target): Update.
10893 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
10894 argument.
10895
f0d960ea
TT
108962014-02-19 Tom Tromey <tromey@redhat.com>
10897
10898 * target.h (struct target_ops) <to_call_history_range>: Add
10899 argument.
10900 * target.c (target_call_history_range): Add argument.
10901 * record-btrace.c (record_btrace_call_history_range): Add 'self'
10902 argument.
10903 (record_btrace_call_history_from): Update.
10904
ec0aea04
TT
109052014-02-19 Tom Tromey <tromey@redhat.com>
10906
10907 * target.h (struct target_ops) <to_call_history_from>: Add
10908 argument.
10909 * target.c (target_call_history_from): Add argument.
10910 * record-btrace.c (record_btrace_call_history_from): Add 'self'
10911 argument.
10912
5df2fcba
TT
109132014-02-19 Tom Tromey <tromey@redhat.com>
10914
10915 * target.h (struct target_ops) <to_call_history>: Add argument.
10916 * target.c (target_call_history): Add argument.
10917 * record-btrace.c (record_btrace_call_history): Add 'self'
10918 argument.
10919
4e99c6b7
TT
109202014-02-19 Tom Tromey <tromey@redhat.com>
10921
10922 * target.h (struct target_ops) <to_insn_history_range>: Add
10923 argument.
10924 * target.c (target_insn_history_range): Add argument.
10925 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
10926 argument.
10927 (record_btrace_insn_history_from): Update.
10928
9abc3ff3
TT
109292014-02-19 Tom Tromey <tromey@redhat.com>
10930
10931 * target.h (struct target_ops) <to_insn_history_from>: Add
10932 argument.
10933 * target.c (target_insn_history_from): Add argument.
10934 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
10935 argument.
10936
7a6c5609
TT
109372014-02-19 Tom Tromey <tromey@redhat.com>
10938
10939 * target.h (struct target_ops) <to_insn_history>: Add argument.
10940 * target.c (target_insn_history): Add argument.
10941 * record-btrace.c (record_btrace_insn_history): Add 'self'
10942 argument.
10943
606183ac
TT
109442014-02-19 Tom Tromey <tromey@redhat.com>
10945
10946 * target.h (struct target_ops) <to_goto_record>: Add argument.
10947 * target.c (target_goto_record): Add argument.
10948 * record-full.c (record_full_goto): Add 'self' argument.
10949 * record-btrace.c (record_btrace_goto): Add 'self' argument.
10950
307a1b91
TT
109512014-02-19 Tom Tromey <tromey@redhat.com>
10952
10953 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
10954 * target.c (target_goto_record_end): Add argument.
10955 * record-full.c (record_full_goto_end): Add 'self' argument.
10956 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
10957
08475817
TT
109582014-02-19 Tom Tromey <tromey@redhat.com>
10959
10960 * target.h (struct target_ops) <to_goto_record_begin>: Add
10961 argument.
10962 * target.c (target_goto_record_begin): Add argument.
10963 * record-full.c (record_full_goto_begin): Add 'self' argument.
10964 * record-btrace.c (record_btrace_goto_begin): Add 'self'
10965 argument.
10966
1c63c994
TT
109672014-02-19 Tom Tromey <tromey@redhat.com>
10968
10969 * target.h (struct target_ops) <to_record_is_replaying>: Add
10970 argument.
10971 * target.c (target_record_is_replaying): Add argument.
10972 * record-full.c (record_full_is_replaying): Add 'self' argument.
10973 * record-btrace.c (record_btrace_is_replaying): Add 'self'
10974 argument.
10975 (record_btrace_xfer_partial, record_btrace_store_registers)
10976 (record_btrace_prepare_to_store, record_btrace_resume)
10977 (record_btrace_wait, record_btrace_decr_pc_after_break)
10978 (record_btrace_find_new_threads, record_btrace_thread_alive):
10979 Update.
10980
d1b55219
TT
109812014-02-19 Tom Tromey <tromey@redhat.com>
10982
10983 * target.h (struct target_ops) <to_delete_record>: Add argument.
10984 * target.c (target_delete_record): Add argument.
10985 * record-full.c (record_full_delete): Add 'self' argument.
10986
1390f529
TT
109872014-02-19 Tom Tromey <tromey@redhat.com>
10988
10989 * target.h (struct target_ops) <to_save_record>: Add argument.
10990 * target.c (target_save_record): Add argument.
10991 * record-full.c (record_full_save): Add 'self' argument.
10992 (record_full_save): Add 'self' argument.
10993
630d6a4a
TT
109942014-02-19 Tom Tromey <tromey@redhat.com>
10995
10996 * target.h (struct target_ops) <to_info_record>: Add argument.
10997 * target.c (target_info_record): Add argument.
10998 * record.c (info_record_command): Add argument.
10999 * record-full.c (record_full_info): Add 'self' argument.
11000 * record-btrace.c (record_btrace_info): Add 'self' argument.
11001
c6cd7c02
TT
110022014-02-19 Tom Tromey <tromey@redhat.com>
11003
11004 * target.h (struct target_ops) <to_stop_recording>: Add argument.
11005 * target.c (target_stop_recording): Add argument.
11006 * record.c (record_stop): Add argument.
11007 * record-btrace.c (record_btrace_stop_recording): Add 'self'
11008 argument.
11009
39c49f83
TT
110102014-02-19 Tom Tromey <tromey@redhat.com>
11011
11012 * target.h (struct target_ops) <to_read_btrace>: Add argument.
11013 * target.c (struct target_ops) <to_read_btrace>: Add argument.
11014 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
11015 argument.
11016 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
11017 (_initialize_amd64_linux_nat): Use it.
11018 * i386-linux-nat.c (i386_linux_read_btrace): New function.
11019 (_initialize_i386_linux_nat): Use it.
11020
1777056d
TT
110212014-02-19 Tom Tromey <tromey@redhat.com>
11022
11023 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
11024 * target.c (target_teardown_btrace): Add argument.
11025 * remote.c (remote_teardown_btrace): Add 'self' argument.
11026 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
11027 argument.
11028 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
11029 argument.
11030
25e95349
TT
110312014-02-19 Tom Tromey <tromey@redhat.com>
11032
11033 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
11034 * target.c (target_disable_btrace): Add argument.
11035 * remote.c (remote_disable_btrace): Add 'self' argument.
11036 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
11037 argument.
11038 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
11039 argument.
11040
e3c49f88
TT
110412014-02-19 Tom Tromey <tromey@redhat.com>
11042
11043 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
11044 * target.c (target_enable_btrace): Add argument.
11045 * remote.c (remote_enable_btrace): Add 'self' argument.
11046 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
11047 argument.
11048 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
11049 argument.
11050
fe38f897
TT
110512014-02-19 Tom Tromey <tromey@redhat.com>
11052
11053 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
11054 (target_can_use_agent): Add argument.
11055 * target.c (update_current_target): Update.
11056 * remote.c (remote_can_use_agent): Add 'self' argument.
11057 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
11058
2c152180
TT
110592014-02-19 Tom Tromey <tromey@redhat.com>
11060
11061 * target.h (struct target_ops) <to_use_agent>: Add argument.
11062 (target_use_agent): Add argument.
11063 * target.c (update_current_target): Update.
11064 * remote.c (remote_use_agent): Add 'self' argument.
11065 * inf-child.c (inf_child_use_agent): Add 'self' argument.
11066
a893e81f
TT
110672014-02-19 Tom Tromey <tromey@redhat.com>
11068
11069 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
11070 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
11071 (target_traceframe_info): Add argument.
11072 * target.c (update_current_target): Update.
11073 * remote.c (remote_traceframe_info): Add 'self' argument.
11074 * ctf.c (ctf_traceframe_info): Add 'self' argument.
11075
c686c57f
TT
110762014-02-19 Tom Tromey <tromey@redhat.com>
11077
11078 * target.h (target_static_tracepoint_markers_by_strid): Add
11079 argument.
11080 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
11081 'self' argument.
11082 * target.c (update_current_target): Update.
11083 * remote.c (struct target_ops)
11084 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
11085 * linux-nat.c (struct target_ops)
11086 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
11087
61fc905d
TT
110882014-02-19 Tom Tromey <tromey@redhat.com>
11089
11090 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
11091 Add argument.
11092 (target_static_tracepoint_marker_at): Add argument.
11093 * target.c (update_current_target): Update.
11094 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
11095 argument.
11096
c378d69d
TT
110972014-02-19 Tom Tromey <tromey@redhat.com>
11098
11099 * target.h (struct target_ops) <to_set_permissions>: Add argument.
11100 (target_set_permissions): Add argument.
11101 * target.c (update_current_target): Update.
11102 * remote.c (remote_set_permissions): Add 'self' argument.
11103 (remote_start_remote): Update.
11104
bd7ae0f5
TT
111052014-02-19 Tom Tromey <tromey@redhat.com>
11106
11107 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
11108 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
11109 (target_get_tib_address): Add argument.
11110 * target.c (update_current_target): Update.
11111 * remote.c (remote_get_tib_address): Add 'self' argument.
11112
d9e68a2c
TT
111132014-02-19 Tom Tromey <tromey@redhat.com>
11114
11115 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
11116 (target_set_trace_notes): Add argument.
11117 * target.c (update_current_target): Update.
11118 * remote.c (remote_set_trace_notes): Add 'self' argument.
11119
4da384be
TT
111202014-02-19 Tom Tromey <tromey@redhat.com>
11121
11122 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
11123 argument.
11124 (target_set_trace_buffer_size): Add argument.
11125 * target.c (update_current_target): Update.
11126 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
11127
736d5b1f
TT
111282014-02-19 Tom Tromey <tromey@redhat.com>
11129
11130 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
11131 argument.
11132 (target_set_circular_trace_buffer): Add argument.
11133 * target.c (update_current_target): Update.
11134 * remote.c (remote_set_circular_trace_buffer): Add 'self'
11135 argument.
11136
37b25738
TT
111372014-02-19 Tom Tromey <tromey@redhat.com>
11138
11139 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
11140 argument.
11141 (target_set_disconnected_tracing): Add argument.
11142 * target.c (update_current_target): Update.
11143 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
11144
0e67620a
TT
111452014-02-19 Tom Tromey <tromey@redhat.com>
11146
11147 * target.h (struct target_ops)
11148 <to_get_min_fast_tracepoint_insn_len>: Add argument.
11149 (target_get_min_fast_tracepoint_insn_len): Add argument.
11150 * target.c (update_current_target): Update.
11151 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
11152 argument.
11153
88ee6f45
TT
111542014-02-19 Tom Tromey <tromey@redhat.com>
11155
11156 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
11157 argument.
11158 (target_get_raw_trace_data): Add argument.
11159 * target.c (update_current_target): Update.
11160 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
11161
181e3713
TT
111622014-02-19 Tom Tromey <tromey@redhat.com>
11163
11164 * target.h (struct target_ops) <to_upload_trace_state_variables>:
11165 Add argument.
11166 (target_upload_trace_state_variables): Add argument.
11167 * target.c (update_current_target): Update.
11168 * remote.c (remote_upload_trace_state_variables): Add 'self'
11169 argument.
11170 (remote_start_remote): Update.
11171
ab6617cc
TT
111722014-02-19 Tom Tromey <tromey@redhat.com>
11173
11174 * target.h (struct target_ops) <to_upload_tracepoints>: Add
11175 argument.
11176 (target_upload_tracepoints): Add argument.
11177 * target.c (update_current_target): Update.
11178 * remote.c (remote_upload_tracepoints): Add 'self' argument.
11179 (remote_start_remote): Update.
11180
dc3decaf
TT
111812014-02-19 Tom Tromey <tromey@redhat.com>
11182
11183 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
11184 (target_save_trace_data): Add argument.
11185 * target.c (update_current_target): Update.
11186 * remote.c (remote_save_trace_data): Add 'self' argument.
11187
4011015b
TT
111882014-02-19 Tom Tromey <tromey@redhat.com>
11189
11190 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
11191 argument.
11192 * target.h (struct target_ops)
11193 <to_get_trace_state_variable_value>: Add argument.
11194 (target_get_trace_state_variable_value): Add argument.
11195 * target.c (update_current_target): Update.
11196 * remote.c (remote_get_trace_state_variable_value): Add 'self'
11197 argument.
11198 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
11199
bd4c6793
TT
112002014-02-19 Tom Tromey <tromey@redhat.com>
11201
11202 * tracepoint.c (tfile_trace_find): Add 'self' argument.
11203 * target.h (struct target_ops) <to_trace_find>: Add argument.
11204 (target_trace_find): Add argument.
11205 * target.c (update_current_target): Update.
11206 * remote.c (remote_trace_find): Add 'self' argument.
11207 * ctf.c (ctf_trace_find): Add 'self' argument.
11208
74499f1b
TT
112092014-02-19 Tom Tromey <tromey@redhat.com>
11210
11211 * target.h (struct target_ops) <to_trace_stop>: Add argument.
11212 (target_trace_stop): Add argument.
11213 * target.c (update_current_target): Update.
11214 * remote.c (remote_trace_stop): Add 'self' argument.
11215
db90e85c
TT
112162014-02-19 Tom Tromey <tromey@redhat.com>
11217
11218 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
11219 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
11220 argument.
11221 (target_get_tracepoint_status): Add argument.
11222 * target.c (update_current_target): Update.
11223 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
11224
8bd200f1
TT
112252014-02-19 Tom Tromey <tromey@redhat.com>
11226
11227 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
11228 * target.h (struct target_ops) <to_get_trace_status>: Add
11229 argument.
11230 (target_get_trace_status): Add argument.
11231 * target.c (update_current_target): Update.
11232 * remote.c (remote_get_trace_status): Add 'self' argument.
11233 (remote_start_remote, remote_can_download_tracepoint): Update.
11234 * ctf.c (ctf_get_trace_status): Add 'self' argument.
11235
e2d1aae3
TT
112362014-02-19 Tom Tromey <tromey@redhat.com>
11237
11238 * target.h (struct target_ops) <to_trace_start>: Add argument.
11239 (target_trace_start): Add argument.
11240 * target.c (update_current_target): Update.
11241 * remote.c (remote_trace_start): Add 'self' argument.
11242
583f9a86
TT
112432014-02-19 Tom Tromey <tromey@redhat.com>
11244
11245 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
11246 Add argument.
11247 (target_trace_set_readonly_regions): Add argument.
11248 * target.c (update_current_target): Update.
11249 * remote.c (remote_trace_set_readonly_regions): Add 'self'
11250 argument.
11251
780b049c
TT
112522014-02-19 Tom Tromey <tromey@redhat.com>
11253
11254 * target.h (struct target_ops) <to_disable_tracepoint>: Add
11255 argument.
11256 (target_disable_tracepoint): Add argument.
11257 * target.c (update_current_target): Update.
11258 * remote.c (remote_disable_tracepoint): Add 'self' argument.
11259
46670d57
TT
112602014-02-19 Tom Tromey <tromey@redhat.com>
11261
11262 * target.h (struct target_ops) <to_enable_tracepoint>: Add
11263 argument.
11264 (target_enable_tracepoint): Add argument.
11265 * target.c (update_current_target): Update.
11266 * remote.c (remote_enable_tracepoint): Add 'self' argument.
11267
559d2b81
TT
112682014-02-19 Tom Tromey <tromey@redhat.com>
11269
11270 * target.h (struct target_ops) <to_download_trace_state_variable>:
11271 Add argument.
11272 (target_download_trace_state_variable): Add argument.
11273 * target.c (update_current_target): Update.
11274 * remote.c (remote_download_trace_state_variable): Add 'self'
11275 argument.
11276
a52a8357
TT
112772014-02-19 Tom Tromey <tromey@redhat.com>
11278
11279 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
11280 argument.
11281 (target_can_download_tracepoint): Add argument.
11282 * target.c (update_current_target): Update.
11283 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
11284
548f7808
TT
112852014-02-19 Tom Tromey <tromey@redhat.com>
11286
11287 * target.h (struct target_ops) <to_download_tracepoint>: Add
11288 argument.
11289 (target_download_tracepoint): Add argument.
11290 * target.c (update_current_target): Update.
11291 * remote.c (remote_download_tracepoint): Add 'self' argument.
11292
ecae04e1
TT
112932014-02-19 Tom Tromey <tromey@redhat.com>
11294
11295 * target.h (struct target_ops) <to_trace_init>: Add argument.
11296 (target_trace_init): Add argument.
11297 * target.c (update_current_target): Update.
11298 * remote.c (remote_trace_init): Add 'self' argument.
11299
fab5aa7c
TT
113002014-02-19 Tom Tromey <tromey@redhat.com>
11301
11302 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
11303 * target.c (target_fileio_readlink): Add argument.
11304 * remote.c (remote_hostio_readlink): Add 'self' argument.
11305 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
11306
dbbca37d
TT
113072014-02-19 Tom Tromey <tromey@redhat.com>
11308
11309 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
11310 * target.c (target_fileio_unlink): Add argument.
11311 * remote.c (remote_hostio_unlink): Add 'self' argument.
11312 (remote_file_delete): Update.
11313 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
11314
df39ea25
TT
113152014-02-19 Tom Tromey <tromey@redhat.com>
11316
11317 * target.h (struct target_ops) <to_fileio_close>: Add argument.
11318 * target.c (target_fileio_close): Add argument.
11319 * remote.c (remote_hostio_close): Add 'self' argument.
11320 (remote_hostio_close_cleanup): Update.
11321 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
11322 Update.
11323 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
11324
a3be983c
TT
113252014-02-19 Tom Tromey <tromey@redhat.com>
11326
11327 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
11328 * target.c (target_fileio_pread): Add argument.
11329 * remote.c (remote_hostio_pread): Add 'self' argument.
11330 (remote_bfd_iovec_pread, remote_file_get): Update.
11331 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
11332
0d866f62
TT
113332014-02-19 Tom Tromey <tromey@redhat.com>
11334
11335 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
11336 * target.c (target_fileio_pwrite): Add argument.
11337 * remote.c (remote_hostio_pwrite): Add 'self' argument.
11338 (remote_file_put): Update.
11339 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
11340
cd897586
TT
113412014-02-19 Tom Tromey <tromey@redhat.com>
11342
11343 * target.h (struct target_ops) <to_fileio_open>: Add argument.
11344 * target.c (target_fileio_open): Add argument.
11345 * remote.c (remote_hostio_open): Add 'self' argument.
11346 (remote_bfd_iovec_open): Add 'self' argument.
11347 (remote_file_put): Add 'self' argument.
11348 (remote_file_get): Add 'self' argument.
11349 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
11350
78eff0ec
TT
113512014-02-19 Tom Tromey <tromey@redhat.com>
11352
11353 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
11354 Add argument.
11355 (target_can_run_breakpoint_commands): Add argument.
11356 * target.c (update_current_target): Update.
11357 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
11358 argument.
11359 (remote_insert_breakpoint): Add 'self' argument.
11360 (remote_insert_hw_breakpoint): Add 'self' argument.
11361 (remote_can_run_breakpoint_commands): Add 'self' argument.
11362
efcc2da7
TT
113632014-02-19 Tom Tromey <tromey@redhat.com>
11364
11365 * target.h (struct target_ops)
11366 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
11367 (target_supports_evaluation_of_breakpoint_conditions): Add
11368 argument.
11369 * target.c (update_current_target): Update.
11370 * remote.c (remote_supports_cond_breakpoints): Add 'self'
11371 argument.
11372 (remote_insert_breakpoint): Add 'self' argument.
11373 (remote_insert_hw_breakpoint): Add 'self' argument.
11374 (remote_supports_cond_breakpoints): Add 'self' argument.
11375
6de37a3a
TT
113762014-02-19 Tom Tromey <tromey@redhat.com>
11377
11378 * target.h (struct target_ops) <to_supports_string_tracing>: Add
11379 argument.
11380 (target_supports_string_tracing): Add argument.
11381 * target.c (update_current_target): Update.
11382 * remote.c (remote_supports_string_tracing): Add 'self' argument.
11383
2bfc0540
TT
113842014-02-19 Tom Tromey <tromey@redhat.com>
11385
11386 * target.h (struct target_ops)
11387 <to_supports_disable_randomization>: Add argument.
11388 * target.c (find_default_supports_disable_randomization): Add
11389 argument.
11390 (target_supports_disable_randomization): Add argument.
11391 (find_default_supports_disable_randomization): Add 'self'
11392 argument.
11393 * remote.c (extended_remote_supports_disable_randomization): Add
11394 'self' argument.
11395 (remote_supports_disable_randomization): Add 'self' argument.
11396 (extended_remote_create_inferior): Update.
11397 * linux-nat.c (linux_nat_supports_disable_randomization): Add
11398 'self' argument.
11399
7d178d6a
TT
114002014-02-19 Tom Tromey <tromey@redhat.com>
11401
11402 * target.h (struct target_ops)
11403 <to_supports_enable_disable_tracepoint>: Add argument.
11404 (target_supports_enable_disable_tracepoint): Add argument.
11405 * target.c (update_current_target): Update.
11406 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
11407 argument.
11408
86ce2668
TT
114092014-02-19 Tom Tromey <tromey@redhat.com>
11410
11411 * target.h (struct target_ops) <to_supports_multi_process>: Add
11412 argument.
11413 (target_supports_multi_process): Add argument.
11414 * target.c (update_current_target): Update.
11415 * remote.c (remote_supports_multi_process): Add 'self' argument.
11416 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
11417 argument.
11418 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
11419 argument.
11420
4c612759
TT
114212014-02-19 Tom Tromey <tromey@redhat.com>
11422
11423 * target.h (struct target_ops) <to_execution_direction>: Add
11424 argument.
11425 (target_execution_direction): Add argument.
11426 * target.c (default_execution_direction): Add 'self' argument.
11427 * record-full.c (record_full_execution_direction): Add 'self'
11428 argument.
11429
19db3e69
TT
114302014-02-19 Tom Tromey <tromey@redhat.com>
11431
11432 * target.h (struct target_ops) <to_can_execute_reverse>: Add
11433 argument.
11434 (target_can_execute_reverse): Add argument.
11435 * remote.c (remote_can_execute_reverse): Add 'self' argument.
11436 * record-full.c (record_full_can_execute_reverse): Add 'self'
11437 argument.
11438 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
11439 argument.
11440
1e6b91a4
TT
114412014-02-19 Tom Tromey <tromey@redhat.com>
11442
11443 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
11444 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
11445 argument.
11446 (target_get_ada_task_ptid): Add argument.
11447 * target.c (update_current_target): Update.
11448 (default_get_ada_task_ptid): Add 'self' argument.
11449 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
11450 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
11451 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
11452 argument.
11453 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
11454 argument.
11455 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
11456 argument.
11457 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
11458 argument.
11459 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
11460 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
11461 argument.
11462
3c80fb48
TT
114632014-02-19 Tom Tromey <tromey@redhat.com>
11464
11465 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
11466 (target_goto_bookmark): Add argument.
11467 * target.c (dummy_goto_bookmark): Add 'self' argument.
11468 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
11469
dd0e2830
TT
114702014-02-19 Tom Tromey <tromey@redhat.com>
11471
11472 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
11473 (target_get_bookmark): Add argument.
11474 * target.c (dummy_get_bookmark): Add 'self' argument.
11475 * record-full.c (record_full_get_bookmark): Add 'self' argument.
11476
fc6691b2
TT
114772014-02-19 Tom Tromey <tromey@redhat.com>
11478
11479 * target.h (struct target_ops) <to_make_corefile_notes>: Add
11480 argument.
11481 (target_make_corefile_notes): Add argument.
11482 * target.c (dummy_make_corefile_notes): Add 'self' argument.
11483 * procfs.c (procfs_make_note_section): Add 'self' argument.
11484 (procfs_make_note_section): Add 'self' argument.
11485 (procfs_make_note_section): Add 'self' argument.
11486 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
11487 argument.
11488 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
11489 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
11490 * exec.c (exec_make_note_section): Add 'self' argument.
11491 (exec_make_note_section): Add 'self' argument.
11492
2e73927c
TT
114932014-02-19 Tom Tromey <tromey@redhat.com>
11494
11495 * target.h (struct target_ops) <to_find_memory_regions>: Add
11496 argument.
11497 (target_find_memory_regions): Add argument.
11498 * target.c (dummy_find_memory_regions): Add 'self' argument.
11499 * procfs.c (proc_find_memory_regions): Add 'self' argument.
11500 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
11501 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
11502 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
11503 * exec. (exec_do_find_memory_regions): New global.
11504 (exec_set_find_memory_regions): Rewrite.
11505 (exec_find_memory_regions): New function.
11506 (init_exec_ops): Use exec_find_memory_regions.
11507
2a9a2795
TT
115082014-02-19 Tom Tromey <tromey@redhat.com>
11509
11510 * target.h (struct target_ops) <to_supports_non_stop>: Add
11511 argument.
11512 * target.c (find_default_supports_non_stop): Add argument.
11513 (target_supports_non_stop): Add argument.
11514 (find_default_supports_non_stop): Add 'self' argument.
11515 * remote.c (remote_supports_non_stop): Add 'self' argument.
11516 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
11517
4ab76ea3
TT
115182014-02-19 Tom Tromey <tromey@redhat.com>
11519
11520 * target.h (struct target_ops) <to_log_command>: Add argument.
11521 (target_log_command): Add argument.
11522 * serial.h (serial_log_command): Add 'self' argument.
11523 * serial.c (serial_log_command): Add 'self' argument.
11524
8dd27370
TT
115252014-02-19 Tom Tromey <tromey@redhat.com>
11526
11527 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
11528 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
11529 argument.
11530 (target_pid_to_exec_file): Add argument.
11531 * target.c (debug_to_pid_to_exec_file): Add argument.
11532 (update_current_target): Update.
11533 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
11534 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
11535 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
11536 (linux_handle_extended_wait): Update.
11537 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
11538 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
11539 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
11540 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
11541
1aac633b
TT
115422014-02-19 Tom Tromey <tromey@redhat.com>
11543
11544 * target.h (struct target_ops) <to_rcmd>: Add argument.
11545 (target_rcmd): Add argument.
11546 * target.c (debug_to_rcmd): Add argument.
11547 (update_current_target, do_monitor_command): Update.
11548 * remote.c (remote_rcmd): Add 'self' argument.
11549 * monitor.c (monitor_rcmd): Add 'self' argument.
11550
1eab8a48
TT
115512014-02-19 Tom Tromey <tromey@redhat.com>
11552
11553 * windows-nat.c (windows_stop): Add 'self' argument.
11554 * target.h (struct target_ops) <to_stop>: Add argument.
11555 * target.c (target_stop): Add argument.
11556 (debug_to_stop): Add argument.
11557 (update_current_target): Update.
11558 * remote.c (remote_stop): Add 'self' argument.
11559 * remote-sim.c (gdbsim_stop): Add 'self' argument.
11560 (gdbsim_cntrl_c): Update.
11561 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
11562 * procfs.c (procfs_stop): Add 'self' argument.
11563 * nto-procfs.c (procfs_stop): Add 'self' argument.
11564 * monitor.c (monitor_stop): Add 'self' argument.
11565 (monitor_open): Update.
11566 * linux-nat.c (linux_nat_stop): Add argument.
11567 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
11568 * gnu-nat.c (gnu_stop): Add 'self' argument.
11569 * darwin-nat.c (darwin_stop): Add 'self' argument.
11570
503a628d
TT
115712014-02-19 Tom Tromey <tromey@redhat.com>
11572
11573 * target.h (struct target_ops) <to_thread_name>: Add argument.
11574 * target.c (target_thread_name): Add argument.
11575 (update_current_target): Update.
11576 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
11577
c15906d8
TT
115782014-02-19 Tom Tromey <tromey@redhat.com>
11579
11580 * target.h (struct target_ops) <to_extra_thread_info>: Add
11581 argument.
11582 (target_extra_thread_info): Add argument.
11583 * target.c (update_current_target): Update.
11584 * remote.c (remote_threads_extra_info): Add 'self' argument.
11585 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
11586 argument.
11587 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
11588 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
11589 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
11590 argument.
11591 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
11592 argument.
11593 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
11594 argument.
11595 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
11596 argument.
11597
daf5e9b6
TT
115982014-02-19 Tom Tromey <tromey@redhat.com>
11599
11600 * target.h (struct target_ops) <to_program_signals>: Add argument.
11601 * target.c (target_program_signals): Add argument.
11602 * remote.c (remote_program_signals): Add 'self' argument.
11603
94bedb42
TT
116042014-02-19 Tom Tromey <tromey@redhat.com>
11605
11606 * target.h (struct target_ops) <to_pass_signals>: Add argument.
11607 * target.c (target_pass_signals): Add argument.
11608 * remote.c (remote_pass_signals): Add 'self' argument.
11609 (remote_start_remote): Update.
11610 * procfs.c (procfs_pass_signals): Add 'self' argument.
11611 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
11612 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
11613 (linux_nat_create_inferior, linux_nat_attach): Update.
11614
da82bd6b
TT
116152014-02-19 Tom Tromey <tromey@redhat.com>
11616
11617 * windows-nat.c (windows_can_run): Add 'self' argument.
11618 * target.h (struct target_ops) <to_can_run>: Add argument.
11619 (target_can_run): Add argument.
11620 * target.c (debug_to_can_run): Add argument.
11621 (update_current_target): Update.
11622 * nto-procfs.c (procfs_can_run): Add 'self' argument.
11623 * inf-child.c (inf_child_can_run): Add 'self' argument.
11624 * go32-nat.c (go32_can_run): Add 'self' argument.
11625
d796e1d6
TT
116262014-02-19 Tom Tromey <tromey@redhat.com>
11627
11628 * target.h (struct target_ops) <to_has_exited>: Add argument.
11629 (target_has_exited): Add argument.
11630 * target.c (debug_to_has_exited): Add argument.
11631 (update_current_target): Update.
11632
ff214e67
TT
116332014-02-19 Tom Tromey <tromey@redhat.com>
11634
11635 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
11636 argument.
11637 (target_set_syscall_catchpoint): Add argument.
11638 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
11639 argument.
11640 * target.c (update_current_target): Update.
11641
758e29d2
TT
116422014-02-19 Tom Tromey <tromey@redhat.com>
11643
11644 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
11645 argument.
11646 (target_remove_exec_catchpoint): Add argument.
11647 * target.c (debug_to_remove_exec_catchpoint): Add argument.
11648 (update_current_target): Update.
11649 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
11650 argument.
11651
ba025e51
TT
116522014-02-19 Tom Tromey <tromey@redhat.com>
11653
11654 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
11655 argument.
11656 (target_insert_exec_catchpoint): Add argument.
11657 * target.c (debug_to_insert_exec_catchpoint): Add argument.
11658 (update_current_target): Update.
11659 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
11660 argument.
11661
e98cf0cd
TT
116622014-02-19 Tom Tromey <tromey@redhat.com>
11663
11664 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
11665 argument.
11666 (target_remove_vfork_catchpoint): Add argument.
11667 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
11668 (update_current_target): Update.
11669 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
11670 argument.
11671
3ecc7da0
TT
116722014-02-19 Tom Tromey <tromey@redhat.com>
11673
11674 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
11675 argument.
11676 (target_insert_vfork_catchpoint): Add argument.
11677 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
11678 (update_current_target): Update.
11679 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
11680 argument.
11681
973fc227
TT
116822014-02-19 Tom Tromey <tromey@redhat.com>
11683
11684 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
11685 argument.
11686 (target_remove_fork_catchpoint): Add argument.
11687 * target.c (debug_to_remove_fork_catchpoint): Add argument.
11688 (update_current_target): Update.
11689 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
11690 argument.
11691
a863b201
TT
116922014-02-19 Tom Tromey <tromey@redhat.com>
11693
11694 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
11695 argument.
11696 (target_insert_fork_catchpoint): Add argument.
11697 * target.c (debug_to_insert_fork_catchpoint): Add argument.
11698 (update_current_target): Update.
11699 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
11700 argument.
11701
2e97a79e
TT
117022014-02-19 Tom Tromey <tromey@redhat.com>
11703
11704 * target.h (struct target_ops) <to_post_startup_inferior>: Add
11705 argument.
11706 (target_post_startup_inferior): Add argument.
11707 * target.c (debug_to_post_startup_inferior): Add argument.
11708 (update_current_target): Update.
11709 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
11710 argument.
11711 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
11712 argument.
11713 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
11714 argument.
11715 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
11716 argument.
11717 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
11718 'self' argument.
11719 (super_post_startup_inferior): Likewise.
11720 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
11721 'self' argument.
11722 (super_post_startup_inferior): Likewise.
11723 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
11724 Add 'self' argument.
11725 (super_post_startup_inferior): Likewise.
11726
71a9f134
TT
117272014-02-19 Tom Tromey <tromey@redhat.com>
11728
11729 * target.h (struct target_ops) <to_load>: Add argument.
11730 * target.c (target_load): Add argument.
11731 (debug_to_load): Add argument.
11732 (update_current_target): Update.
11733 * remote.c (remote_load): Add 'self' argument.
11734 * remote-sim.c (gdbsim_load): Add 'self' argument.
11735 * remote-mips.c (mips_load): Add 'self' argument.
11736 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
11737 * monitor.c (monitor_load): Add 'self' argument.
11738 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
11739
0a4f40a2
TT
117402014-02-19 Tom Tromey <tromey@redhat.com>
11741
11742 * target.h (struct target_ops) <to_terminal_info>: Add argument.
11743 (target_terminal_info): Add argument.
11744 * target.c (debug_to_terminal_info): Add argument.
11745 (default_terminal_info): Likewise.
11746 * inflow.c (child_terminal_info): Add 'self' argument.
11747 * inferior.h (child_terminal_info): Add 'self' argument.
11748 * go32-nat.c (go32_terminal_info): Add 'self' argument.
11749
ae3bd431
TT
117502014-02-19 Tom Tromey <tromey@redhat.com>
11751
11752 * target.h (struct target_ops) <to_terminal_save_ours>: Add
11753 argument.
11754 (target_terminal_save_ours): Add argument.
11755 * target.c (debug_to_terminal_save_ours): Add argument.
11756 (update_current_target): Update.
11757 * inflow.c (terminal_save_ours): Add 'self' argument.
11758 * inferior.h (terminal_save_ours): Add 'self' argument.
11759
e3594fd1
TT
117602014-02-19 Tom Tromey <tromey@redhat.com>
11761
11762 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
11763 (target_terminal_ours): Add argument.
11764 * target.c (debug_to_terminal_ours): Add argument.
11765 (update_current_target): Update.
11766 * remote.c (remote_terminal_ours): Add 'self' argument.
11767 (remote_close): Update.
11768 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
11769 * inflow.c (terminal_ours): Add 'self' argument.
11770 * inferior.h (terminal_ours): Add 'self' argument.
11771 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11772
2e1e1a19
TT
117732014-02-19 Pedro Alves <palves@redhat.com>
11774 Tom Tromey <tromey@redhat.com>
11775
11776 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
11777 argument.
11778 (target_terminal_ours_for_output): Add argument.
11779 * target.c (debug_to_terminal_ours_for_output): Add argument.
11780 (update_current_target): Update.
11781 * inflow.c (terminal_ours_for_output): Add 'self' argument.
11782 * inferior.h (terminal_ours_for_output): Add 'self' argument.
11783 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11784
d2f640d4
TT
117852014-02-19 Tom Tromey <tromey@redhat.com>
11786
11787 * target.h (struct target_ops) <to_terminal_inferior>: Add
11788 argument.
11789 * target.c (target_terminal_inferior): Add argument.
11790 (update_current_target): Update.
11791 * remote.c (remote_terminal_inferior): Add 'self' argument.
11792 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
11793 * inflow.c (terminal_inferior): Add 'self' argument.
11794 * inferior.h (terminal_inferior): Add 'self' argument.
11795 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
11796 (go32_terminal_inferior): Add 'self' argument.
11797
c42bf286
TT
117982014-02-19 Tom Tromey <tromey@redhat.com>
11799
11800 * target.h (struct target_ops) <to_terminal_init>: Add argument.
11801 (target_terminal_init): Add argument.
11802 * target.c (debug_to_terminal_init): Add argument.
11803 (update_current_target): Update.
11804 * inflow.c (terminal_init_inferior): Add 'self' argument.
11805 * inferior.h (terminal_init_inferior): Add 'self' argument.
11806 * go32-nat.c (go32_terminal_init): Add 'self' argument.
11807 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
11808
c3a5ff89
TT
118092014-02-19 Tom Tromey <tromey@redhat.com>
11810
11811 * target.h (struct target_ops)
11812 <to_can_accel_watchpoint_condition>: Add argument.
11813 (target_can_accel_watchpoint_condition): Add argument.
11814 * target.c (debug_to_can_accel_watchpoint_condition): Add
11815 argument.
11816 (update_current_target): Update.
11817 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
11818 'self' argument.
11819
31568a15
TT
118202014-02-19 Tom Tromey <tromey@redhat.com>
11821
11822 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11823 Add argument.
11824 (target_region_ok_for_hw_watchpoint): Add argument.
11825 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
11826 (default_region_ok_for_hw_watchpoint): Add argument.
11827 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
11828 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
11829 argument.
11830 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
11831 argument.
11832 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
11833 argument.
11834 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
11835 'self' argument.
11836 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
11837 'self' argument.
11838 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
11839 'self' argument.
11840 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
11841 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
11842 'self' argument.
11843 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
11844 Add 'self' argument.
11845
7bb99c53
TT
118462014-02-19 Tom Tromey <tromey@redhat.com>
11847
11848 * target.h (struct target_ops) <to_insert_watchpoint>: Add
11849 argument.
11850 (target_insert_watchpoint): Add argument.
11851 * target.c (debug_to_insert_watchpoint): Add argument.
11852 (update_current_target): Update.
11853 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
11854 * remote.c (remote_insert_watchpoint): Add 'self' argument.
11855 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
11856 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
11857 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
11858 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
11859 argument.
11860 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
11861 (procfs_insert_hw_watchpoint): Add 'self' argument.
11862 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
11863 argument.
11864 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
11865 argument.
11866 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
11867 argument.
11868 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
11869 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
11870 argument.
11871 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
11872 'self' argument.
11873
11b5219a
TT
118742014-02-19 Tom Tromey <tromey@redhat.com>
11875
11876 * target.h (struct target_ops) <to_remove_watchpoint>: Add
11877 argument.
11878 (target_remove_watchpoint): Add argument.
11879 * target.c (debug_to_remove_watchpoint): Add argument.
11880 (update_current_target): Update.
11881 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
11882 * remote.c (remote_remove_watchpoint): Add 'self' argument.
11883 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
11884 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
11885 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
11886 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
11887 argument.
11888 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
11889 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
11890 argument.
11891 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
11892 argument.
11893 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
11894 argument.
11895 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
11896 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
11897 argument.
11898 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
11899 'self' argument.
11900
a64dc96c
TT
119012014-02-19 Tom Tromey <tromey@redhat.com>
11902
11903 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
11904 argument.
11905 (target_remove_hw_breakpoint): Add argument.
11906 * target.c (debug_to_remove_hw_breakpoint): Add argument.
11907 (update_current_target): Update.
11908 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
11909 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
11910 argument.
11911 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
11912 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
11913 argument.
11914 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
11915 'self' argument.
11916
23a26771
TT
119172014-02-19 Tom Tromey <tromey@redhat.com>
11918
11919 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
11920 argument.
11921 (target_insert_hw_breakpoint): Add argument.
11922 * target.c (debug_to_insert_hw_breakpoint): Add argument.
11923 (update_current_target): Update.
11924 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
11925 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
11926 argument.
11927 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
11928 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
11929 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
11930 argument.
11931 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
11932 'self' argument.
11933
5461485a
TT
119342014-02-19 Tom Tromey <tromey@redhat.com>
11935
11936 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
11937 argument.
11938 (target_can_use_hardware_watchpoint): Add argument.
11939 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
11940 (update_current_target): Update.
11941 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
11942 argument.
11943 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
11944 argument.
11945 * remote.c (remote_check_watch_resources): Add 'self' argument.
11946 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
11947 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
11948 argument.
11949 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
11950 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
11951 argument.
11952 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
11953 argument.
11954 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
11955 argument.
11956 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
11957 argument.
11958 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
11959 argument.
11960 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
11961 argument.
11962 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
11963 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
11964 argument.
11965 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
11966 'self' argument.
11967
f045800c
TT
119682014-02-19 Tom Tromey <tromey@redhat.com>
11969
11970 * target.h (struct target_ops) <to_post_attach>: Add argument.
11971 (target_post_attach): Add argument.
11972 * target.c (debug_to_post_attach): Add argument.
11973 (update_current_target): Update.
11974 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
11975 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
11976 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
11977 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
11978 * inf-child.c (inf_child_post_attach): Add 'self' argument.
11979
de90e03d
TT
119802014-02-19 Tom Tromey <tromey@redhat.com>
11981
11982 * windows-nat.c (windows_close): Add 'self' argument.
11983 * tracepoint.c (tfile_close): Add 'self' argument.
11984 * target.h (struct target_ops) <to_close>: Add argument.
11985 * target.c (target_close): Add argument.
11986 (update_current_target): Update.
11987 * remote.c (remote_close): Add 'self' argument.
11988 * remote-sim.c (gdbsim_close): Add 'self' argument.
11989 * remote-mips.c (mips_close): Add 'self' argument.
11990 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
11991 * record-full.c (record_full_close): Add 'self' argument.
11992 * record-btrace.c (record_btrace_close): Add 'self' argument.
11993 * monitor.h (monitor_close): Add 'self' argument.
11994 * monitor.c (monitor_close): Add 'self' argument.
11995 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
11996 * linux-nat.c (linux_nat_close): Add argument.
11997 * go32-nat.c (go32_close): Add 'self' argument.
11998 * exec.c (exec_close_1): Add 'self' argument.
11999 * ctf.c (ctf_close): Add 'self' argument.
12000 * corelow.c (core_close): Add 'self' argument.
12001 (core_close_cleanup): Update.
12002 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
12003 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
12004
9dd130a0
TT
120052014-02-19 Tom Tromey <tromey@redhat.com>
12006
12007 * remote.c (remote_load): New function.
12008 (init_remote_ops): Use it.
12009
46917d26
TT
120102014-02-19 Tom Tromey <tromey@redhat.com>
12011
12012 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
12013 argument.
12014 * common/linux-btrace.h (linux_supports_btrace): Update.
12015 * remote.c (remote_supports_btrace): Add "self" argument.
12016 * target-delegates.c: Rebuild.
12017 * target.c (target_supports_btrace): Remove.
12018 * target.h (struct target_ops) <to_supports_btrace>: Add
12019 target_ops argument.
12020 (target_supports_btrace): New define.
12021
6b84065d
TT
120222014-02-19 Tom Tromey <tromey@redhat.com>
12023
12024 * record-full.c (record_full_beneath_to_resume_ops)
12025 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
12026 (record_full_beneath_to_wait)
12027 (record_full_beneath_to_store_registers_ops)
12028 (record_full_beneath_to_store_registers)
12029 (record_full_beneath_to_xfer_partial_ops)
12030 (record_full_beneath_to_xfer_partial)
12031 (record_full_beneath_to_insert_breakpoint_ops)
12032 (record_full_beneath_to_insert_breakpoint)
12033 (record_full_beneath_to_remove_breakpoint_ops)
12034 (record_full_beneath_to_remove_breakpoint)
12035 (record_full_beneath_to_stopped_by_watchpoint)
12036 (record_full_beneath_to_stopped_data_address)
12037 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
12038 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
12039 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
12040 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
12041 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
12042 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
12043 (tmp_to_stopped_data_address, tmp_to_async): Remove.
12044 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
12045 (record_full_resume, record_full_wait_1)
12046 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
12047 (record_full_store_registers, record_full_xfer_partial)
12048 (record_full_insert_breakpoint, record_full_remove_breakpoint)
12049 (record_full_async, record_full_core_xfer_partial): Use target
12050 delegation.
12051 * target-delegates.c: Rebuild.
12052 * target.c (current_xfer_partial): Remove.
12053 (update_current_target): Do not INHERIT or de_fault
12054 to_insert_breakpoint, to_remove_breakpoint,
12055 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
12056 to_is_async_p, to_async. Do not set to_xfer_partial field.
12057 (default_xfer_partial): Simplify.
12058 (current_xfer_partial): Remove.
12059 (target_wait, target_resume): Simplify.
12060 (find_default_can_async_p, find_default_is_async_p): Update.
12061 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
12062 to_xfer_partial, to_stopped_by_watchpoint,
12063 to_stopped_data_address.
12064 (target_store_registers): Simplify.
12065 (forward_target_remove_breakpoint)
12066 (forward_target_insert_breakpoint): Remove.
12067 (target_remove_breakpoint, target_insert_breakpoint)
12068 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
12069 * target.h (struct target_ops) <to_resume, to_wait,
12070 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
12071 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
12072 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
12073 markup.
12074 (forward_target_remove_breakpoint)
12075 (forward_target_insert_breakpoint): Remove.
12076 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
12077 directly.
12078 (record_btrace_insert_breakpoint): Delegate directly.
12079
1101cb7b
TT
120802014-02-19 Tom Tromey <tromey@redhat.com>
12081
12082 PR build/7701:
12083 * target-delegates.c: New file.
12084 * target.c: Include target-delegates.c.
12085 (init_dummy_target): Call install_dummy_methods.
12086 (complete_target_initialization): Call install_delegators.
12087 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
12088 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
12089 * make-target-delegates: New file.
12090
8b06beed
TT
120912014-02-19 Tom Tromey <tromey@redhat.com>
12092
12093 * record.c (find_record_target): Use find_target_at.
12094 * target.c (find_target_at): New function.
12095 * target.h (find_target_at): Declare.
12096
6a109b6b
TT
120972014-02-19 Tom Tromey <tromey@redhat.com>
12098
12099 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
12100 Add 'ops' argument.
12101 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
12102 'ops' argument.
12103 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
12104 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
12105 'ops' argument.
12106 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
12107 argument.
12108 * linux-nat.c (save_sigtrap): Update.
12109 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
12110 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
12111 (linux_nat_close): Update.
12112 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
12113 argument.
12114 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
12115 argument.
12116 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
12117 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
12118 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
12119 (tmp_to_async): Add 'ops' argument.
12120 (record_full_stopped_by_watchpoint, record_full_async)
12121 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
12122 argument.
12123 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
12124 (m32r_stopped_by_watchpoint): Add 'ops' argument.
12125 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
12126 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
12127 (remote_is_async_p, remote_async): Add 'ops' argument.
12128 (remote_stopped_data_address): Update.
12129 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
12130 * target.c (update_current_target)
12131 (find_default_can_async_p, find_default_is_async_p): Update.
12132 (init_dummy_target): Update.
12133 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
12134 * target.h (struct target_ops) <to_stopped_by_watchpoint,
12135 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
12136 (target_can_async_p, target_is_async_p, target_async)
12137 (target_stopped_by_watchpoint): Update.
12138
e095146b
YQ
121392014-02-19 Yao Qi <yao@codesourcery.com>
12140
12141 PR gdb/16220
12142 * gdbarch.sh: Remove startup_gdbarch.
12143 * gdbarch.c: Regenerated.
12144 * gdbarch.h: Likewise.
12145
bc3c6b36
KB
121462014-02-17 Kevin Buettner <kevinb@redhat.com>
12147
12148 * rl78-tdep.c (rl78_g10_register_name): New function.
12149 (rl78_return_value): Add g10 support.
12150 (rl78_gdbarch_init): Register rl78_g10_register_name for the
12151 g10.
12152
98dc0167 121532014-02-17 Doug Evans <xdje42@gmail.com>
f01c1940
DE
12154
12155 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
12156 (SUBDIR_GUILE_SRCS): Ditto.
12157 (scm-gsmob.o): Ditto.
12158
842c05cd
YQ
121592014-02-17 Yao Qi <yao@codesourcery.com>
12160
12161 * gnu-nat.c (ILL_RPC): Declare defined function.
12162
25c0bd04
YQ
121632014-02-17 Yao Qi <yao@codesourcery.com>
12164
12165 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
12166 mach_msg_type_number_t.
12167 (gnu_write_inferior): Likewise.
12168
a9a758e3
YQ
121692014-02-17 Yao Qi <yao@codesourcery.com>
12170
12171 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
12172 in format string.
12173 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
12174 (inf_validate_procs, inf_signal): Likewise.
12175 (S_exception_raise_request): Likewise.
12176 (do_mach_notify_dead_name): Likewise.
12177 (steal_exc_port): Likewise.
12178 (gnu_read_inferior): Change 'copy_count''s type to
12179 mach_msg_type_number_t.
12180 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
12181 format string.
12182
bae8023e
TS
121832014-02-16 Thomas Schwinge <thomas@codesourcery.com>
12184
c82f56d9
TS
12185 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
12186 flag. Adjust all users; in particular...
12187 (gnu_wait): ..., don't decrement its value in here...
12188 (gnu_create_inferior): ..., and instead set the flag in here,
12189 around the startup_inferior call, and call that one with
12190 START_INFERIOR_TRAPS_EXPECTED.
12191
3398af6a
TS
12192 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
12193 (ILL_RPC): ... new macro.
12194 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
12195 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
12196 (do_mach_notify_send_once, S_proc_setmsgport_reply)
12197 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
12198 functions with ILL_RPC macro.
12199 (S_proc_pid2task_reply, S_proc_task2pid_reply)
12200 (S_proc_task2proc_reply, S_proc_proc2task_reply)
12201 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
12202 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
12203 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
12204 (S_proc_getlogin_reply, S_proc_getsid_reply)
12205 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
12206 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
12207 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
12208 (S_proc_getnports_reply, S_proc_is_important_reply)
12209 (S_proc_get_code_reply): New stub functions, generated with
12210 ILL_RPC macro.
12211
d47642c9
TS
12212 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
12213 collected the type check structures.
12214
bae8023e
TS
12215 * reply_mig_hack.awk: Don't expect to see the auto keyword.
12216
8a55ffb0
DE
122172014-02-14 Doug Evans <dje@google.com>
12218
12219 * target.c (target_write_partial): Fix result type.
12220
c2853f3d
JM
122212014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
12222
12223 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
12224 the proper offsets to access fpregset_t.
12225
ac61d2db
SA
122262014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
12227
12228 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
12229 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
12230 * h8300-tdep.c (setmachinelist): Remove global.
12231 * hppa-tdep.c (hppa_sigtramp): Remove global.
12232 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
12233 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
12234 * ravenscar-thread.c (update_target_observer): Remove global.
12235 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
12236
9d2d0b8b
TT
122372014-02-12 Tom Tromey <tromey@redhat.com>
12238
12239 * common/rsp-low.c: Update comments.
12240 * common/rsp-low.h: Update comments.
12241
a7191e8b
TT
122422014-02-12 Tom Tromey <tromey@redhat.com>
12243
12244 * common/rsp-low.c (convert_ascii_to_int): Remove.
12245 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
12246
ff0e980e
TT
122472014-02-12 Tom Tromey <tromey@redhat.com>
12248
12249 * common/rsp-low.h (unhexify): Don't declare.
12250 * common/rsp-low.c (unhexify): Remove.
12251
e9371aff
TT
122522014-02-12 Tom Tromey <tromey@redhat.com>
12253
12254 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
12255 * common/rsp-low.c (convert_int_to_ascii): Remove.
12256
971dc0b8
TT
122572014-02-12 Tom Tromey <tromey@redhat.com>
12258
12259 * common/rsp-low.h (hexify): Don't declare.
12260 * common/rsp-low.c (hexify): Remove.
12261
0a822afb
TT
122622014-02-12 Tom Tromey <tromey@redhat.com>
12263
12264 * common/rsp-low.c (hexify): Never take strlen of argument.
12265
9f1b45b0
TT
122662014-02-12 Tom Tromey <tromey@redhat.com>
12267
12268 * common/rsp-low.c (bin2hex): Never take strlen of argument.
12269 * remote.c (extended_remote_run, remote_rcmd)
12270 (remote_download_trace_state_variable, remote_save_trace_data)
12271 (remote_set_trace_notes): Update.
12272 * tracepoint.c (encode_source_string, tfile_write_status)
12273 (tfile_write_uploaded_tsv): Update.
12274
9c3d6531
TT
122752014-02-12 Tom Tromey <tromey@redhat.com>
12276
12277 * tracepoint.c: Include rsp-low.h.
12278 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
12279 * remote.c: Include rsp-low.h.
12280 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
12281 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
12282 (remote_unescape_input): Move to common/rsp-low.c.
12283 * common/rsp-low.h: New file.
12284 * common/rsp-low.c: New file.
12285 * Makefile.in (SFILES): Add common/rsp-low.c.
12286 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
12287 (COMMON_OBS): Add rsp-low.o.
12288 (rsp-low.o): New target.
12289
01fd3ea5
TT
122902014-02-12 Tom Tromey <tromey@redhat.com>
12291
12292 * utils.h: Include print-utils.h.
12293 (host_address_to_string, plongest, pulongest, phex, phex_nz)
12294 (int_string, core_addr_to_string, core_addr_to_string_nz)
12295 (hex_string, hex_string_custom): Don't declare.
12296 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
12297 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
12298 (hex_string_custom, int_string, core_addr_to_string)
12299 (core_addr_to_string_nz, host_address_to_string): Move to
12300 common/print-utils.c.
12301 * common/print-utils.h: New file.
12302 * common/print-utils.c: New file
12303 * Makefile.in (SFILES): Add common/print-utils.c.
12304 (HFILES_NO_SRCDIR): Add common/print-utils.h.
12305 (COMMON_OBS): Add print-utils.o.
12306 (print-utils.o): New target.
12307
9fb50108
TT
123082014-02-12 Tom Tromey <tromey@redhat.com>
12309
12310 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
12311
0548b5db
MK
123122014-02-12 Mark Kettenis <kettenis@gnu.org>
12313
12314 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
12315
493443a4
MK
123162014-02-12 Mark Kettenis <kettenis@gnu.org>
12317
12318 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
12319 if a PT_IO ptrace request returns sucessfully but indicates that 0
12320 bytes were transferred.
12321
706d0883
PA
123222014-02-12 Pedro Alves <palves@redhat.com>
12323 Kevin Buettner <kevinb@redhat.com>
12324
12325 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
12326 TYPE_INSTANCE_FLAG_CODE_SPACE.
12327
5caa2f0b
PA
123282014-02-12 Pedro Alves <palves@redhat.com>
12329
12330 * h8300-tdep.c (pseudo_from_raw_register)
12331 (raw_from_pseudo_register): New functions.
12332 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
12333 them.
12334
76fd5f74
PA
123352014-02-12 Pedro Alves <palves@redhat.com>
12336
12337 * h8300-tdep.c (h8300_register_sim_regno): New function.
12338 (h8300_gdbarch_init): Install h8300_register_sim_regno as
12339 gdbarch_register_sim_regno hook.
12340
8f008406
SA
123412014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
12342
12343 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
12344
195abc10
SA
123452014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
12346
12347 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
12348
93ffa5b9
MK
123492014-02-12 Mark Kettenis <kettenis@gnu.org>
12350
12351 * obsd-tdep.h (obsd_init_abi): New prototype.
12352 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
12353 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
12354 (obsd_init_abi): New functions.
12355 * i386obsd-tdep.c: Include "obsd-tdep.h".
12356 (i386obsd_init_abi): Call obsd_init_abi.
12357 * amd64obsd-tdep.c: Include "obsd-tdep.h".
12358 (amd64obsd_init_abi): Call obsd_init_abi.
12359 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
12360 obsd-tdep.c to gdb_target_obs.
12361
49caec94
JM
123622014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
12363
12364 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
12365 double float arguments to 16-byte in the argument slots.
12366
e1402065
DE
123672014-02-11 Doug Evans <xdje42@gmail.com>
12368
12369 * configure.ac: Don't crash if pkg-config is not found and guile
12370 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
12371 in guile checks.
12372 * configure: Regenerate.
12373
edcc890f
YQ
123742014-02-11 Yao Qi <yao@codesourcery.com>
12375
12376 * aix-thread.c (aix_thread_xfer_partial): Update comments.
12377 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
12378 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
12379 * gnu-nat.c (gnu_xfer_memory): Likewise.
12380 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
12381 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12382 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12383 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12384
9b409511
YQ
123852014-02-11 Yao Qi <yao@codesourcery.com>
12386
12387 * target.h (enum target_xfer_error): Rename to ...
12388 (enum target_xfer_status): ... it. New. All users updated.
12389 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
12390 New.
12391 (TARGET_XFER_STATUS_ERROR_P): New macro.
12392 (target_xfer_error_to_string): Remove declaration.
12393 (target_xfer_status_to_string): Declare.
12394 (target_xfer_partial_ftype): Adjust it.
12395 (struct target_ops) <to_xfer_partial>: Return
12396 target_xfer_status. Add argument xfered_len. Update
12397 comments.
12398 * target.c (target_xfer_error_to_string): Rename to ...
12399 (target_xfer_status_to_string): ... it. New. All callers
12400 updated.
12401 (target_read_live_memory): Likewise. Call target_xfer_partial
12402 instead of target_read.
12403 (memory_xfer_live_readonly_partial): Return
12404 target_xfer_status. Add argument xfered_len.
12405 (raw_memory_xfer_partial): Likewise.
12406 (memory_xfer_partial_1): Likewise.
12407 (memory_xfer_partial): Likewise.
12408 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
12409 properly. Update debug message.
12410 (default_xfer_partial, current_xfer_partial): Likewise.
12411 (target_write_partial): Likewise.
12412 (target_read_partial): Likewise. All callers updated.
12413 (read_whatever_is_readable): Likewise.
12414 (target_write_with_progress): Likewise.
12415 (target_read_alloc_1): Likewise.
12416
12417 * aix-thread.c (aix_thread_xfer_partial): Likewise.
12418 * auxv.c (procfs_xfer_auxv): Likewise.
12419 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
12420 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12421 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12422 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
12423 * corefile.c (read_memory): Adjust.
12424 * corelow.c (core_xfer_partial): Likewise.
12425 * ctf.c (ctf_xfer_partial): Likewise.
12426 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
12427 updated.
12428 (darwin_xfer_partial): Likewise.
12429 * exec.c (section_table_xfer_memory_partial): Likewise. All
12430 callers updated.
12431 (exec_xfer_partial): Likewise.
12432 * exec.h (section_table_xfer_memory_partial): Update
12433 declaration.
12434 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
12435 negative.
12436 (gnu_xfer_partial): Likewise.
12437 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
12438 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
12439 (ia64_hpux_xfer_solib_got): Likewise.
12440 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
12441 type of 'partial_len' to ULONGEST.
12442 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
12443 * linux-nat.c (linux_xfer_siginfo ): Likewise.
12444 (linux_nat_xfer_partial): Likewise.
12445 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
12446 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
12447 * monitor.c (monitor_xfer_memory): Likewise.
12448 (monitor_xfer_partial): Likewise.
12449 * procfs.c (procfs_xfer_partial): Likewise.
12450 * record-btrace.c (record_btrace_xfer_partial): Likewise.
12451 * record-full.c (record_full_xfer_partial): Likewise.
12452 (record_full_core_xfer_partial): Likewise.
12453 * remote-sim.c (gdbsim_xfer_memory): Likewise.
12454 (gdbsim_xfer_partial): Likewise.
12455 * remote.c (remote_write_bytes_aux): Likewise. All callers
12456 updated.
12457 (remote_write_bytes, remote_read_bytes): Likewise. All
12458 callers updated.
12459 (remote_flash_erase): Likewise. All callers updated.
12460 (remote_write_qxfer): Likewise. All callers updated.
12461 (remote_read_qxfer): Likewise. All callers updated.
12462 (remote_xfer_partial): Likewise.
12463 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12464 (rs6000_xfer_shared_libraries): Likewise.
12465 * sol-thread.c (sol_thread_xfer_partial): Likewise.
12466 (sol_thread_xfer_partial): Likewise.
12467 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12468 (sparc_xfer_partial): Likewise.
12469 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
12470 updated.
12471 (spu_xfer_partial): Likewise.
12472 * spu-multiarch.c (spu_xfer_partial): Likewise.
12473 * tracepoint.c (tfile_xfer_partial): Likewise.
12474 * windows-nat.c (windows_xfer_memory): Likewise.
12475 (windows_xfer_shared_libraries): Likewise.
12476 (windows_xfer_partial): Likewise.
12477 * valprint.c: Replace 'target_xfer_error' with
12478 'target_xfer_status' in comments.
12479
a8e63083
JB
124802014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
12481
12482 Checked in by Joel Brobecker <brobecker@adacore.com>.
12483 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
12484
e86b67d3
JB
124852014-02-11 Joel Brobecker <brobecker@adacore.com>
12486
12487 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
12488 function parameters.
12489
4b7d1f7f
WN
124902014-02-10 Will Newton <will.newton@linaro.org>
12491
12492 * elfread.c (elf_rel_plt_read): Look for a .got section if
12493 looking up .got.plt fails.
12494 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
12495 on address passed to elf_gnu_ifunc_record_cache.
12496 (elf_gnu_ifunc_resolve_addr): Likewise.
12497 (elf_gnu_ifunc_resolver_return_stop): Likewise.
12498
961842b2
JM
124992014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
12500
12501 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
12502 (X_RETTURN): New macro.
12503 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
12504
12505 * sparc64-tdep.c (sparc64_init_abi): Hook
12506 sparc_in_function_epilogue_p.
12507
3f03e7b1
GB
125082014-02-10 Gary Benson <gbenson@redhat.com>
12509
12510 * symfile-debug.c (debug_qf_expand_symtabs_matching):
12511 Rename name_matcher to symbol_matcher.
12512
96f861ef
GB
125132014-02-10 Gary Benson <gbenson@redhat.com>
12514
12515 * symfile-debug.c (debug_qf_expand_symtabs_matching):
12516 Use expand_symtabs_file_matcher_ftype and
12517 expand_symtabs_symbol_matcher_ftype.
12518
ee01b665
JB
125192014-02-10 Joel Brobecker <brobecker@adacore.com>
12520
12521 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
12522 (struct ada_symbol_cache): New.
12523 (ada_free_symbol_cache): Forward declare.
12524 (struct ada_pspace_data): New.
12525 (ada_pspace_data_handle): New static global.
12526 (get_ada_pspace_data, ada_pspace_data_cleanup)
12527 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
12528 (cache_space, cache): Delete, now folded inside struct
12529 ada_pspace_data.
12530 (ada_get_symbol_cache): New function.
12531 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
12532 implementation.
12533 (_initialize_ada_language): Remove initialization of cache_space.
12534 Move call to observer_attach_inferior_exit up, grouping it
12535 with the other observer registrations inside this function.
12536 Rename command to be more general. Add call to
12537 register_program_space_data_with_cleanup.
12538
143adbbf
JB
125392014-02-10 Joel Brobecker <brobecker@adacore.com>
12540
12541 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
12542 ada_new_objfile_observer.
12543 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
12544 (_initialize_tasks): Update uses of ada_new_objfile_observer
12545 and ada_tasks_normal_stop_observer.
12546
aa4fb036
JB
125472014-02-10 Joel Brobecker <brobecker@adacore.com>
12548
12549 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
12550 returned by the 'Length attribute to integer.
12551
9dee8cc6
JB
125522014-02-10 Joel Brobecker <brobecker@adacore.com>
12553
12554 * ada-lang.c (_initialize_ada_language): Initialize
12555 cache_space obstack.
12556
3d9434b5
JB
125572014-02-10 Joel Brobecker <brobecker@adacore.com>
12558
12559 * ada-lang.c (HASH_SIZE): New macro.
12560 (struct cache_entry): New type.
12561 (cache_space, cache): New static globals.
12562 (ada_clear_symbol_cache, find_entry): New functions.
12563 (lookup_cached_symbol, cache_symbol): Implement.
12564 (ada_new_objfile_observer, ada_free_objfile_observer): New.
12565 (_initialize_ada_language): Attach ada_new_objfile_observer
12566 and ada_free_objfile_observer.
12567
f0c5f9b2
JB
125682014-02-10 Joel Brobecker <brobecker@adacore.com>
12569
12570 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
12571 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
12572 struct block * parameter.
12573 (ada_lookup_symbol_list_worker): Constify local variable "block".
12574 Remove cast which is no longer necessary.
12575
ed3ef339
DE
125762014-02-10 Doug Evans <xdje42@gmail.com>
12577
12578 Add Guile as an extension language.
12579 * NEWS: Mention Guile scripting.
12580 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
12581 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
12582 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
12583 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
12584 (CLIBS): Add GUILE_LIBS.
12585 (install-guile): New rule.
12586 (guile.o): New rule.
12587 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
12588 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
12589 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
12590 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
12591 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
12592 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
12593 (scm-type.o, scm-utils.o, scm-value.o): New rules.
12594 * configure.ac: New option --with-guile.
12595 * configure: Regenerate.
12596 * config.in: Regenerate.
12597 * auto-load.c: Remove #include "python/python.h". Add #include
12598 "gdb/section-scripts.h".
12599 (source_section_scripts): Handle Guile scripts.
12600 (_initialize_auto_load): Add name of Guile objfile script to
12601 scripts-directory help text.
12602 * breakpoint.c (condition_command): Tweak comment to include Scheme.
12603 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
12604 (struct breakpoint): New member scm_bp_object.
12605 * defs.h (enum command_control_type): New value guile_control.
12606 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
12607 "extension.h".
12608 (show_user): Update comment.
12609 (_initialize_cli_cmds): Update help text for "show user". Update help
12610 text for max-user-call-depth.
12611 * cli/cli-script.c: Remove #include "python/python.h". Add #include
12612 "extension.h".
12613 (multi_line_command_p): Add guile_control.
12614 (print_command_lines): Handle guile_control.
12615 (execute_control_command, recurse_read_control_structure): Ditto.
12616 (process_next_line): Recognize "guile" commands.
12617 * disasm.c (gdb_disassemble_info): Make non-static.
12618 * disasm.h: #include "dis-asm.h".
12619 (struct gdbarch): Add forward decl.
12620 (gdb_disassemble_info): Declare.
12621 * extension.c: #include "guile/guile.h".
12622 (extension_languages): Add guile.
12623 (get_ext_lang_defn): Handle EXT_LANG_GDB.
12624 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
12625 * gdbtypes.c (get_unsigned_type_max): New function.
12626 (get_signed_type_minmax): New function.
12627 * gdbtypes.h (get_unsigned_type_max): Declare.
12628 (get_signed_type_minmax): Declare.
12629 * guile/README: New file.
12630 * guile/guile-internal.h: New file.
12631 * guile/guile.c: New file.
12632 * guile/guile.h: New file.
12633 * guile/scm-arch.c: New file.
12634 * guile/scm-auto-load.c: New file.
12635 * guile/scm-block.c: New file.
12636 * guile/scm-breakpoint.c: New file.
12637 * guile/scm-disasm.c: New file.
12638 * guile/scm-exception.c: New file.
12639 * guile/scm-frame.c: New file.
12640 * guile/scm-gsmob.c: New file.
12641 * guile/scm-iterator.c: New file.
12642 * guile/scm-lazy-string.c: New file.
12643 * guile/scm-math.c: New file.
12644 * guile/scm-objfile.c: New file.
12645 * guile/scm-ports.c: New file.
12646 * guile/scm-pretty-print.c: New file.
12647 * guile/scm-safe-call.c: New file.
12648 * guile/scm-string.c: New file.
12649 * guile/scm-symbol.c: New file.
12650 * guile/scm-symtab.c: New file.
12651 * guile/scm-type.c: New file.
12652 * guile/scm-utils.c: New file.
12653 * guile/scm-value.c: New file.
12654 * guile/lib/gdb.scm: New file.
12655 * guile/lib/gdb/boot.scm: New file.
12656 * guile/lib/gdb/experimental.scm: New file.
12657 * guile/lib/gdb/init.scm: New file.
12658 * guile/lib/gdb/iterator.scm: New file.
12659 * guile/lib/gdb/printing.scm: New file.
12660 * guile/lib/gdb/types.scm: New file.
12661 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
12662 (VPATH): Add $(GUILE_SRCDIR).
12663 (GUILE_DIR): New variable.
12664 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
12665 (all): Add stamp-guile dependency.
12666 (stamp-guile): New rule.
12667 (clean-guile, install-guile, uninstall-guile): New rules.
12668 (install-only): Add install-guile dependency.
12669 (uninstall): Add uninstall-guile dependency.
12670 (clean): Add clean-guile dependency.
12671
ac020ec5
DE
126722014-02-09 Doug Evans <xdje42@gmail.com>
12673
12674 Revert this patch (which I approved, mea culpa).
12675
12676 2014-02-08 Mark Kettenis <kettenis@gnu.org>
12677
12678 * Makefile.in (all-lib): Remove.
12679 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12680
2a081c59
JK
126812014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
12682
12683 Fix Python stack corruption.
12684 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
12685 gdb_py_longest.
12686
0a6bd22d
MK
126872014-02-08 Mark Kettenis <kettenis@gnu.org>
12688
12689 * Makefile.in (all-lib): Remove.
12690 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12691
1a860409
DE
126922014-02-07 Doug Evans <dje@google.com>
12693
12694 * extension-priv.h (extension_language_script_ops): Add comment.
12695 (extension_language_ops): Add comment.
caf5a491 12696 (active_ext_lang_state): Fix typo in comment.
1a860409 12697
d137e6dc
PA
126982014-02-07 Pedro Alves <palves@redhat.com>
12699
0dcb32c3 12700 PR breakpoints/16292
d137e6dc
PA
12701 * infrun.c (handle_signal_stop) <signal arrives while stepping
12702 over a breakpoint>: Switch back to the stepping thread.
12703
ce6d0892
YQ
127042014-02-07 Yao Qi <yao@codesourcery.com>
12705
12706 * target.c (target_xfer_partial): Return zero if LEN is zero.
12707
2ed4b548
YQ
127082014-02-07 Yao Qi <yao@codesourcery.com>
12709
12710 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
12711 (ld_so_xfer_auxv): Likewise.
12712 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12713 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12714 * corelow.c (core_xfer_partial): Likewise.
12715 * ctf.c (ctf_xfer_partial): Likewise.
12716 * darwin-nat.c (darwin_read_dyld_info): Likewise.
12717 (darwin_xfer_partial): Likewise.
12718 * exec.c (exec_xfer_partial): Likewise.
12719 * gnu-nat.c (gnu_xfer_partial): Likewise.
12720 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
12721 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
12722 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
12723 * linux-nat.c (linux_xfer_siginfo): Likewise.
12724 (linux_proc_xfer_spu): Likewise.
12725 * procfs.c (procfs_xfer_partial): Likewise.
12726 * record-full.c (record_full_xfer_partial): Likewise.
12727 (record_full_core_xfer_partial): Likewise.
12728 * remote-sim.c (gdbsim_xfer_partial): Likewise.
12729 * remote.c (remote_write_qxfer): Likewise.
12730 (remote_write_qxfer, remote_read_qxfer): Likewise.
12731 (remote_xfer_partial): Likewise.
12732 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12733 (rs6000_xfer_shared_libraries): Likewise.
12734 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12735 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12736 (spu_xfer_partial): Likewise.
12737 * target.c (memory_xfer_partial_1): Likewise.
12738 * tracepoint.c (tfile_xfer_partial): Likewise.
12739 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
12740 (windows_xfer_partial): Likewise.
12741
c09f20e4
YQ
127422014-02-07 Yao Qi <yao@codesourcery.com>
12743
12744 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
12745 comments.
12746 (core_xfer_shared_libraries_aix): Likewise.
12747 * gdbarch.c, gdbarch.h: Regenerated.
12748 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
12749 ULONGEST. Change 'len_avail' type to ULONGEST.
12750 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12751 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12752 declaration.
12753 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
12754
8635b3bf
YQ
127552014-02-07 Yao Qi <yao@codesourcery.com>
12756
12757 * corefile.c (memory_error): Get 'exception' from ERR and pass
12758 'exception' to throw_error.
12759
6dddc817
DE
127602014-02-06 Doug Evans <xdje42@gmail.com>
12761
12762 * configure.ac (libpython checking): Remove all but python.o from
12763 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
12764 * configure: Regenerate.
12765
12766 * Makefile.in (SFILES): Add extension.c.
12767 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
12768 (COMMON_OBS): Add extension.o.
12769 * extension.h: New file.
12770 * extension-priv.h: New file.
12771 * extension.c: New file.
12772
12773 * python/python-internal.h: #include "extension.h".
12774 (gdbpy_auto_load_enabled): Declare.
12775 (gdbpy_apply_val_pretty_printer): Declare.
12776 (gdbpy_apply_frame_filter): Declare.
12777 (gdbpy_preserve_values): Declare.
12778 (gdbpy_breakpoint_cond_says_stop): Declare.
12779 (gdbpy_breakpoint_has_cond): Declare.
12780 (void source_python_script_for_objfile): Delete.
12781 * python/python.c: #include "extension-priv.h".
12782 Delete inclusion of "observer.h".
12783 (extension_language_python): Moved here and renamed from
12784 script_language_python in py-auto-load.c.
12785 Redefined to be of type extension_language_defn.
12786 (python_extension_script_ops): New global.
12787 (python_extension_ops): New global.
12788 (struct python_env): New member previous_active.
12789 (restore_python_env): Call restore_active_ext_lang.
12790 (ensure_python_env): Call set_active_ext_lang.
12791 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
12792 New arg extlang.
12793 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
12794 New arg extlang.
12795 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
12796 New arg extlang.
12797 (gdbpy_eval_from_control_command): Renamed from
12798 eval_python_from_control_command, made static. New arg extlang.
12799 (gdbpy_source_script) Renamed from source_python_script, made static.
12800 New arg extlang.
12801 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
12802 result to int. New arg extlang.
12803 (gdbpy_source_objfile_script): Renamed from
12804 source_python_script_for_objfile, made static. New arg extlang.
12805 (gdbpy_start_type_printers): Renamed from start_type_printers, made
12806 static. New args extlang, extlang_printers. Change result type to
12807 "void".
12808 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
12809 static. New arg extlang. Rename arg printers to extlang_printers
12810 and change type to ext_lang_type_printers *.
12811 (gdbpy_free_type_printers): Renamed from free_type_printers, made
12812 static. Replace argument arg with extlang, extlang_printers.
12813 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
12814 (!HAVE_PYTHON, source_python_script): Delete.
12815 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
12816 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
12817 (!HAVE_PYTHON, start_type_printers): Delete.
12818 (!HAVE_PYTHON, apply_type_printers): Delete.
12819 (!HAVE_PYTHON, free_type_printers): Delete.
12820 (_initialize_python): Delete call to observer_attach_before_prompt.
12821 (finalize_python): Set/restore active extension language.
12822 (gdbpy_finish_initialization) Renamed from
12823 finish_python_initialization, made static. New arg extlang.
12824 (gdbpy_initialized): New function.
12825 * python/python.h: #include "extension.h". Delete #include
12826 "value.h", "mi/mi-cmds.h".
12827 (extension_language_python): Declare.
12828 (GDBPY_AUTO_FILE_NAME): Delete.
12829 (enum py_bt_status): Moved to extension.h and renamed to
12830 ext_lang_bt_status.
12831 (enum frame_filter_flags): Moved to extension.h.
12832 (enum py_frame_args): Moved to extension.h and renamed to
12833 ext_lang_frame_args.
12834 (finish_python_initialization): Delete.
12835 (eval_python_from_control_command): Delete.
12836 (source_python_script): Delete.
12837 (apply_val_pretty_printer): Delete.
12838 (apply_frame_filter): Delete.
12839 (preserve_python_values): Delete.
12840 (gdbpy_script_language_defn): Delete.
12841 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
12842 (start_type_printers, apply_type_printers, free_type_printers): Delete.
12843
12844 * auto-load.c: #include "extension.h".
12845 (GDB_AUTO_FILE_NAME): Delete.
12846 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
12847 (script_language_gdb): Delete, moved to extension.c and renamed to
12848 extension_language_gdb.
12849 (source_gdb_script_for_objfile): Delete.
12850 (auto_load_pspace_info): New member unsupported_script_warning_printed.
12851 (loaded_script): Change type of language member to
12852 struct extension_language_defn *.
12853 (init_loaded_scripts_info): Initialize
12854 unsupported_script_warning_printed.
12855 (maybe_add_script): Make static. Change type of language arg to
12856 struct extension_language_defn *.
12857 (clear_section_scripts): Reset unsupported_script_warning_printed.
12858 (auto_load_objfile_script_1): Rewrite to use extension language API.
12859 (auto_load_objfile_script): Make public. Remove support-compiled-in
12860 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
12861 (source_section_scripts): Rewrite to use extension language API.
12862 (load_auto_scripts_for_objfile): Rewrite to use
12863 auto_load_scripts_for_objfile.
12864 (collect_matching_scripts_data): Change type of language member to
12865 struct extension_language_defn *.
12866 (auto_load_info_scripts): Change type of language arg to
12867 struct extension_language_defn *.
12868 (unsupported_script_warning_print): New function.
12869 (script_not_found_warning_print): Make static.
12870 (_initialize_auto_load): Rewrite construction of scripts-directory
12871 help.
12872 * auto-load.h (struct objfile): Add forward decl.
12873 (struct script_language): Delete.
12874 (struct auto_load_pspace_info): Add forward decl.
12875 (struct extension_language_defn): Add forward decl.
12876 (maybe_add_script): Delete.
12877 (auto_load_objfile_script): Declare.
12878 (script_not_found_warning_print): Delete.
12879 (auto_load_info_scripts): Update prototype.
12880 (auto_load_gdb_scripts_enabled): Declare.
12881 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
12882 auto_load_python_scripts_enabled and made public.
12883 (script_language_python): Delete, moved to python.c.
12884 (gdbpy_script_language_defn): Delete.
12885 (info_auto_load_python_scripts): Update to use
12886 extension_language_python.
12887
12888 * breakpoint.c (condition_command): Replace call to
12889 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
12890 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
12891 with call to breakpoint_ext_lang_cond_says_stop.
12892 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
12893 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
12894 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
12895 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
12896 New arg slang.
12897 (local_setattro): Print name of extension language with existing
12898 stop condition.
12899
12900 * valprint.c (val_print, value_print): Update to call
12901 apply_ext_lang_val_pretty_printer.
12902 * cp-valprint.c (cp_print_value): Update call to
12903 apply_ext_lang_val_pretty_printer.
12904 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
12905 (gdbpy_apply_val_pretty_printer): Renamed from
12906 apply_val_pretty_printer. New arg extlang.
12907 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
12908
12909 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
12910 extension language API.
12911 * cli/cli-script.c (execute_control_command): Update to call
12912 eval_ext_lang_from_control_command.
12913
12914 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
12915 enum ext_lang_bt_status values. Update call to
12916 apply_ext_lang_frame_filter.
12917 (mi_cmd_stack_list_locals): Ditto.
12918 (mi_cmd_stack_list_args): Ditto.
12919 (mi_cmd_stack_list_variables): Ditto.
12920 * mi/mi-main.c: Delete #include "python/python-internal.h".
12921 Add #include "extension.h".
12922 (mi_cmd_list_features): Replace reference to python internal variable
12923 gdb_python_initialized with call to ext_lang_initialized_p.
12924
12925 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
12926 Update to use enum ext_lang_frame_args. Update to call
12927 apply_ext_lang_frame_filter.
12928 * python/py-framefilter.c (extract_sym): Update to use enum
12929 ext_lang_bt_status.
12930 (extract_value, py_print_type, py_print_value): Ditto.
12931 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
12932 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
12933 (py_print_frame): Ditto.
12934 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
12935 New arg extlang. Update to use enum ext_lang_bt_status.
12936
12937 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
12938 finish_python_initialization. Replace with call to
12939 finish_ext_lang_initialization.
12940
12941 * typeprint.c (do_free_global_table): Update to call
12942 free_ext_lang_type_printers.
12943 (create_global_typedef_table): Update to call
12944 start_ext_lang_type_printers.
12945 (find_global_typedef): Update to call apply_ext_lang_type_printers.
12946 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
12947 (type_print_options): Change type of global_printers from "void *"
12948 to "struct ext_lang_type_printers *".
12949
12950 * value.c (preserve_values): Update to call preserve_ext_lang_values.
12951 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
12952 (gdbpy_preserve_values): Renamed from preserve_python_values.
12953 New arg extlang.
12954 (!HAVE_PYTHON, preserve_python_values): Delete.
12955
12956 * utils.c (quit_flag): Delete, moved to extension.c.
12957 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
12958 extension.c.
12959
12960 * eval.c: Delete #include "python/python.h".
12961 * main.c: Delete #include "python/python.h".
12962
12963 * defs.h: Update comment.
12964
6af79985
JB
129652014-02-06 Joel Brobecker <brobecker@adacore.com>
12966
12967 GDB 7.7 released.
12968
12c5175d
MK
129692014-02-05 Mark Kettenis <kettenis@gnu.org>
12970
12971 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
12972 defined.
12973
8dc5b319
YQ
129742014-02-05 Yao Qi <yao@codesourcery.com>
12975
12976 * remote.c (remote_pass_signals): Remove local 'buf' and use
12977 rs->buf.
12978 (remote_program_signals): Likewise.
12979
de7b2893
YQ
129802014-02-05 Yao Qi <yao@codesourcery.com>
12981
12982 * ctf.c: Include "inferior.h" and "gdbthread.h".
12983 (CTF_PID): A new macro.
12984 (ctf_open): Call inferior_appeared and add_thread_silent.
12985 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
12986 (ctf_thread_alive): New function.
12987 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
12988
66d032ac
YQ
129892014-02-05 Yao Qi <yao@codesourcery.com>
12990
12991 Revert this patch:
12992
12993 2013-05-24 Yao Qi <yao@codesourcery.com>
12994
12995 * tracepoint.c (TFILE_PID): Remove.
12996 (tfile_open): Don't add thread and inferior.
12997 (tfile_close): Don't set 'inferior_ptid'. Don't call
12998 exit_inferior_silent.
12999 (tfile_thread_alive): Remove.
13000 (init_tfile_ops): Don't set field 'to_thread_alive' of
13001 tfile_ops.
13002
f4ccffad
CE
130032014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
13004
13005 * remote.c (remote_start_remote): Call remote_check_symbols even
13006 if only symbol-file (not file) has been given.
13007
591a12a1
UW
130082014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13009
13010 * gdbarch.sh (skip_entrypoint): New callback.
13011 * gdbarch.c, gdbarch.h: Regenerate.
13012 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
13013 * infrun.c (fill_in_stop_func): Likewise.
13014 * ppc-linux-tdep.c: Include "elf/ppc64.h".
13015 (ppc_elfv2_elf_make_msymbol_special): New function.
13016 (ppc_elfv2_skip_entrypoint): Likewise.
13017 (ppc_linux_init_abi): Install them for ELFv2.
13018
cc0e89c5
UW
130192014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13020
13021 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
13022 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
13023 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
13024 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
13025 structures returned in GPRs.
13026
52f548e4
UW
130272014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13028
13029 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
13030 offset to the stack parameter list for the ELFv2 ABI.
13031
d4094b6a
UW
130322014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13033
13034 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
13035 set_gdbarch_convert_from_func_ptr_addr and
13036 set_gdbarch_elf_make_msymbol_special for ELFv1.
13037 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
13038 function descriptors on ELFv1.
13039 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
13040 set up r12 at function entry.
13041
cd453cd0
UW
130422014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13043
13044 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
13045 (struct gdbarch_tdep): New member elf_abi.
13046
13047 * rs6000-tdep.c: Include "elf/ppc64.h".
13048 (rs6000_gdbarch_init): Detect ELF ABI version.
13049
0ff3e01f
UW
130502014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13051
13052 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
13053 within a register pair holding a DFP 128-bit value on little-endian.
13054 (ppc64_sysv_abi_return_value_base): Likewise.
13055 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
13056 (dfp_pseudo_register_write): Likewise.
13057
5b757e5d
UW
130582014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13059
13060 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
13061 offset on little-endian when passing _Decimal32.
13062 (ppc64_sysv_abi_return_value_base): Likewise for return values.
13063
084ee545
UW
130642014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13065
13066 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
13067 of the overlapped FP register within the VSX register on little-
13068 endian platforms.
13069 (efpr_pseudo_register_write): Likewise.
13070
d63167af
UW
130712014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13072
13073 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
13074 offset on little-endian when passing small structures.
13075
e765b44c
UW
130762014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13077
13078 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
13079 (struct ppc64_sysv_argpos): New data structure.
13080 (ppc64_sysv_abi_push_float): Remove.
13081 (ppc64_sysv_abi_push_val): New function.
13082 (ppc64_sysv_abi_push_integer): Likewise.
13083 (ppc64_sysv_abi_push_freg): Likewise.
13084 (ppc64_sysv_abi_push_vreg): Likewise.
13085 (ppc64_sysv_abi_push_param): Likewise.
13086 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
13087 (ppc64_sysv_abi_return_value_base): New function.
13088 (ppc64_sysv_abi_return_value): Refactor to use it.
13089
36c24d95
UW
130902014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13091
13092 * NEWS: Document new target powerpc64le-*-linux*.
13093
26fd9228
MK
130942014-02-04 Mark Kettenis <kettenis@gnu.org>
13095
13096 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
13097 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
13098 core dumps.
13099 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
13100 register set used in ELF core dumps. Add floating-point register set.
13101
c5bb7362
KB
131022014-02-03 Kevin Buettner <kevinb@redhat.com>
13103
74228e77 13104 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
c5bb7362
KB
13105 dwarf2_to_gdb[] table using symbolic constants. Adjust
13106 penultimate entry from number representing the PC register
13107 to symbolic constant representing the MDR register. Add
13108 constant for the PC register to the end of the table.
13109
af09351e
MK
131102014-02-03 Mark Kettenis <kettenis@gnu.org>
13111
13112 * bsd-kvm.c: Include <sys/param.h>
13113
8507e05d
MK
131142014-02-03 Mark Kettenis <kettenis@gnu.org>
13115
13116 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
13117
ae56bfb8
JB
131182014-01-31 Joel Brobecker <brobecker@adacore.com>
13119
13120 * ada-lang.h (clear_ada_sym_cache): Delete.
13121
718ee4dc
UW
131222014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
13123
13124 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
13125
401e27fd
JM
131262014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
13127
13128 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
13129 the sigreturn register save area only if the syscall is
13130 sigreturn.
13131
a7c88acd
JB
131322014-01-29 Joel Brobecker <brobecker@adacore.com>
13133
13134 * valops.c (value_slice): Minor reformatting.
13135
fa0079ea
UW
131362014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
13137
13138 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
13139
c6044dd1
JB
131402014-01-28 Joel Brobecker <brobecker@adacore.com>
13141
13142 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
13143 New static globals.
13144 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
13145 (ada_ignore_descriptive_types_p): New static global.
13146 (find_parallel_type_by_descriptive_type): Return immediately
13147 if ada_ignore_descriptive_types_p is set.
13148 (_initialize_ada_language): Register new commands "maintenance
13149 set ada", "maintenance show ada", "maintenance set ada
13150 ignore-descriptive-types" and "maintenance show ada
13151 ignore-descriptive-types".
13152 * NEWS: Add entry for new "maint ada set/show
13153 ignore-descriptive-types" commands.
13154
568e808b
MM
131552014-01-27 Markus Metzger <markus.t.metzger@intel.com>
13156
13157 * record-btrace.c (record_btrace_close): Call btrace_teardown
13158 for all threads.
13159
467d141b
JB
131602014-01-27 Joel Brobecker <brobecker@adacore.com>
13161
13162 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
13163 "ui-out.h".
13164
fb151210
JB
131652014-01-27 Joel Brobecker <brobecker@adacore.com>
13166
13167 * ada-typeprint (type_is_full_subrange_of_target_type):
13168 New function.
13169 (print_range): Add parameter bounds_prefered_p. If not set,
13170 try printing range types using the name of their base type.
13171 (print_range_type): Add parameter bounds_prefered_p.
13172 Use it in call to print_range.
13173 (print_array_type, ada_print_type): Update calls to print_range
13174 and print_range_type.
13175
aba02109
JB
131762014-01-27 Joel Brobecker <brobecker@adacore.com>
13177
13178 * ada-typeprint.c (print_array_type, print_choices, print_range)
13179 (print_range_bound, print_dynamic_range_bound, print_range_type):
13180 Remove declaration.
13181
e62e21fd
JB
131822014-01-27 Joel Brobecker <brobecker@adacore.com>
13183
13184 * ada-typeprint.c (print_range): Add missing empty line
13185 after local declaration.
13186
859cf5d1
JB
131872014-01-27 Joel Brobecker <brobecker@adacore.com>
13188
13189 * ada-valprint.c (print_optional_low_bound): Get index_type's
13190 target type for as long as it is a TYPE_CODE_RANGE.
13191
25790f6f
JB
131922014-01-27 Joel Brobecker <brobecker@adacore.com>
13193
13194 * procfs.c (procfs_make_note_section): Remove assertion and
13195 associated comment.
13196
6b6aa828
YQ
131972014-01-24 Yao Qi <yao@codesourcery.com>
13198
13199 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
13200 * corelow.c (get_core_siginfo): Likewise.
13201
5d6df423
YQ
132022014-01-24 Yao Qi <yao@codesourcery.com>
13203
13204 * remote.c (remote_write_bytes_aux): Change type of 'len' to
13205 ULONGEST. Don't check 'len' is negative.
13206 (remote_write_bytes): Change type of 'len' to ULONGEST.
13207
83b645b8
TT
132082014-01-23 Tom Tromey <tromey@redhat.com>
13209
13210 PR python/16485:
13211 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
13212 Handle exception from frame.block.
13213 (FrameVars.fetch_frame_locals): Likewise.
13214
0740f8d8
TT
132152014-01-23 Tom Tromey <tromey@redhat.com>
13216
13217 PR python/16487:
13218 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
13219 on a NULL pointer. Move "goto error" to correct place.
13220
21909fa1
TT
132212014-01-23 Tom Tromey <tromey@redhat.com>
13222
13223 PR python/16491:
13224 * python/py-framefilter.c (apply_frame_filter): Call
13225 ensure_python_env after computing gdbarch.
13226
17fde6d0
YQ
132272014-01-23 Yao Qi <yao@codesourcery.com>
13228
13229 * target.c (raw_memory_xfer_partial): Change argument type
13230 from void * to gdb_byte *.
13231 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
13232
87ce2a04
DE
132332014-01-22 Doug Evans <dje@google.com>
13234
13235 New gdbserver option --debug-format=timestamp.
13236 * NEWS: Mention it.
13237
237b092b
AA
132382014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
13239
13240 * syscalls/s390x-linux.xml: New file.
13241 * syscalls/s390-linux.xml: New file.
13242 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
13243 (XML_SYSCALL_FILENAME_S390X): Likewise.
13244 (op_svc): New enum value for SVC opcode.
13245 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
13246 (s390_linux_get_syscall_number): New function.
13247 (s390_gdbarch_init): Register '*get_syscall_number' and the
13248 syscall xml file name.
13249 * data-directory/Makefile.in (SYSCALLS_FILES): Add
13250 "s390-linux.xml" and "s390x-linux.xml".
13251 * NEWS: Announce new feature.
13252
54bff650
BS
132532014-01-22 Baruch Siach <baruch@tkos.co.il>
13254
13255 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
13256
14e361d7
PA
132572014-01-22 Pedro Alves <palves@redhat.com>
13258
13259 * xtensa-config.c: Include defs.h.
13260
46bbb3ed
JB
132612014-01-22 Joel Brobecker <brobecker@adacore.com>
13262
13263 * common/common-utils.h: Add "ARI:" comment beside __func__
13264 reference.
13265
3a80edfc
JB
132662014-01-22 Joel Brobecker <brobecker@adacore.com>
13267
13268 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
13269 documentation a bit.
13270
4869db5e
RM
132712014-01-21 Roland McGrath <mcgrathr@google.com>
13272
13273 * configure.ac: Call AM_PROG_INSTALL_STRIP.
13274 * configure: Regenerate.
13275 * aclocal.m4: Regenerate.
13276 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
13277 New substituted variables.
13278 (install-strip): New target.
13279 (INSTALL_SCRIPT): New substituted variable.
13280 (FLAGS_TO_PASS): Add it.
13281 (install-only): Use $(INSTALL_SCRIPT) rather than
13282 $(INSTALL_PROGRAM) for gcore.
13283
9ea4267d
TT
132842014-01-20 Tom Tromey <tromey@redhat.com>
13285
13286 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
13287 together.
13288
1f2bdf09
TT
132892014-01-20 Tom Tromey <tromey@redhat.com>
13290
13291 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
13292 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
13293 (deprecated_cmd_warning, complete_on_cmdlist): Update.
13294 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
13295 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
13296 (struct cmd_list_element) <flags>: Remove.
13297 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
13298 doc_allocated>: New fields.
13299 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
13300 bitfields.
13301 * maint.c (maintenance_do_deprecate): Update.
13302 * top.c (execute_command): Update.
13303
e671835b
BS
133042014-01-20 Baruch Siach <baruch@tkos.co.il>
13305
13306 * xtensa-linux-nat.c: Include asm/ptrace.h.
13307
50367cd2
IB
133082014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13309
13310 * Makefile.in (SFILES): Add d-support.c.
13311 (COMMON_OBS): Add d-support.o.
13312 * d-lang.h (d_parse_symbol): Add comment, now defined in
13313 d-support.c.
13314 * d-lang.c (parse_call_convention)
13315 (parse_attributes, parse_function_types)
13316 (parse_function_args, parse_type, parse_identifier)
13317 (call_convention_p, d_parse_symbol): Move functions to ...
13318 * d-support.c: ... New file.
13319
ec9f644a
IB
133202014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13321
13322 * d-lang.h (d_parse_symbol): Add declaration.
13323 * d-lang.c (extract_identifiers)
13324 (extract_type_info): Remove functions.
13325 (parse_call_convention, parse_attributes)
13326 (parse_function_types, parse_function_args)
13327 (parse_type, parse_identifier, call_convention_p)
13328 (d_parse_symbol): New functions.
13329 (d_demangle): Use d_parse_symbol to demangle D symbols.
13330
94b1b47e
IB
133312014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13332
13333 * d-lang.h (struct builtin_d_type): New data type.
13334 (builtin_d_type): Add declaration.
13335 * d-lang.c (d_language_arch_info, build_d_types)
13336 (builtin_d_type): New functions.
13337 (enum d_primitive_types): New data type.
13338 (d_language_defn): Change c_language_arch_info to
13339 d_language_arch_info.
13340 (d_type_data): New static variable.
13341 (_initialize_d_language): Initialize d_type_data.
13342
63778547
IB
133432014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13344
13345 * d-lang.h (d_main_name): Add declaration.
13346 * d-lang.c (d_main_name): New function.
13347 * symtab.c (find_main_name): Add call to d_main_name.
13348
3271ba66
IB
133492014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13350
13351 * d-lang.c (d_language_defn): Change macro_expansion_c to
13352 macro_expansion_no.
13353
d36b3012
IB
133542014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13355
13356 * MAINTAINERS: Add myself as a write-after-approval maintainer.
13357
c90a6fb7
SDJ
133582014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
13359
13360 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
13361 gdb_exception" declaration.
13362 * remote.c (getpkt_or_notif_sane): Likewise.
13363
749234e5
DE
133642014-01-17 Doug Evans <dje@google.com>
13365
13366 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
13367 function, contents of dirnames_to_char_ptr_vec_append moved here.
13368 (delim_string_to_char_ptr_vec): New function.
13369 (dirnames_to_char_ptr_vec_append): Rewrite.
13370 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
13371
df049a58
DE
133722014-01-17 Doug Evans <dje@google.com>
13373
13374 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
13375 and moved here ...
13376 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
13377 #include "common-utils.h".
13378 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
13379 * common/vec.h (VEC_ASSERT_PASS): Update.
13380 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
13381 (MACH_CHECK_ERROR): Update.
13382
69f97648
SM
133832014-01-17 Simon Marchi <simon.marchi@ericsson.com>
13384
13385 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
13386 comments.
13387 * gdbarch.h: Regenerate.
13388
98b1cfdc
TT
133892014-01-16 Tom Tromey <tromey@redhat.com>
13390
13391 * value.c (struct value) <regnum>: Move earlier.
13392
77a19445
TT
133932014-01-16 Tom Tromey <tromey@redhat.com>
13394
13395 * remote.c (extended_remote_create_inferior): Rename from
13396 extended_remote_create_inferior_1. Add "ops" argument. Remove
13397 old implementation.
13398
62261490
PA
133992014-01-16 Pedro Alves <palves@redhat.com>
13400
13401 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
13402 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
13403 the backchain.
13404
4d65956b
DE
134052014-01-16 Doug Evans <dje@google.com>
13406
13407 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
13408
52834460
MM
134092014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13410
13411 * btrace.h (btrace_thread_flag): New.
13412 (struct btrace_thread_info) <flags>: New.
13413 * record-btrace.c (record_btrace_resume_thread)
13414 (record_btrace_find_thread_to_move, btrace_step_no_history)
13415 (btrace_step_stopped, record_btrace_start_replaying)
13416 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
13417 (record_btrace_find_resume_thread): New.
13418 (record_btrace_resume, record_btrace_wait): Extend.
13419 (record_btrace_can_execute_reverse): New.
13420 (record_btrace_open): Fail in non-stop mode.
13421 (record_btrace_set_replay): Split into this, ...
13422 (record_btrace_stop_replaying): ... this, ...
13423 (record_btrace_clear_histories): ... and this.
13424 (init_record_btrace_ops): Init to_can_execute_reverse.
13425 * NEWS: Announce it.
13426
118e6252
MM
134272014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13428
13429 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
13430 (forward_target_decr_pc_after_break)
13431 (target_decr_pc_after_break): New.
13432 * target.c (forward_target_decr_pc_after_break)
13433 (target_decr_pc_after_break): New.
13434 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
13435 instead of gdbarch_decr_pc_after_break.
13436 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
13437 instead of gdbarch_decr_pc_after_break.
13438 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
13439 instead of gdbarch_decr_pc_after_break.
13440 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
13441 instead of gdbarch_decr_pc_after_break.
13442 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
13443 instead of gdbarch_decr_pc_after_break.
13444 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
13445 instead of gdbarch_decr_pc_after_break.
13446
6e07b1d2
MM
134472014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13448
13449 * btrace.c: Include regcache.h.
13450 (btrace_add_pc): New.
13451 (btrace_enable): Call btrace_add_pc.
13452 (btrace_is_empty): New.
13453 * btrace.h (btrace_is_empty): New.
13454 * record-btrace.c (require_btrace, record_btrace_info): Call
13455 btrace_is_empty.
13456
969c39fb
MM
134572014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13458
13459 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
13460 Support delta reads.
13461 (linux_disable_btrace): Change return type.
13462 * common/linux-btrace.h (linux_read_btrace): Change parameters
13463 and return type to allow error reporting. Update users.
13464 (linux_disable_btrace): Change return type. Update users.
13465 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
13466 New.
13467 (btrace_error): New.
13468 (btrace_block) <begin>: Comment on BEGIN == 0.
13469 * btrace.c (btrace_compute_ftrace): Start from the end of
13470 the current trace.
13471 (btrace_stitch_trace, btrace_clear_history): New.
13472 (btrace_fetch): Read delta trace, return if replaying.
13473 (btrace_clear): Move clear history code to btrace_clear_history.
13474 (parse_xml_btrace): Throw an error if parsing failed.
13475 * target.h (struct target_ops) <to_read_btrace>: Change parameters
13476 and return type to allow error reporting.
13477 (target_read_btrace): Change parameters and return type to allow
13478 error reporting.
13479 * target.c (target_read_btrace): Update.
13480 * remote.c (remote_read_btrace): Support delta reads. Pass
13481 errors on.
13482 * NEWS: Announce it.
13483
0b722aec
MM
134842014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13485
13486 * record.h (record_btrace_frame_unwind)
13487 (record_btrace_tailcall_frame_unwind): New declarations.
13488 * dwarf2-frame: Include record.h
13489 (dwarf2_frame_cfa): Throw an error for btrace frames.
13490 * record-btrace.c: Include hashtab.h.
13491 (btrace_get_bfun_name): New.
13492 (btrace_call_history): Call btrace_get_bfun_name.
13493 (struct btrace_frame_cache): New.
13494 (bfcache): New.
13495 (bfcache_hash, bfcache_eq, bfcache_new): New.
13496 (btrace_get_frame_function): New.
13497 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
13498 (record_btrace_frame_this_id): Compute own id.
13499 (record_btrace_frame_prev_register): Provide PC, throw_error
13500 for all other registers.
13501 (record_btrace_frame_sniffer): Detect btrace frames.
13502 (record_btrace_tailcall_frame_sniffer): New.
13503 (record_btrace_frame_dealloc_cache): New.
13504 (record_btrace_frame_unwind): Add new functions.
13505 (record_btrace_tailcall_frame_unwind): New.
13506 (_initialize_record_btrace): Allocate cache.
13507 * btrace.c (btrace_clear): Call reinit_frame_cache.
13508 * NEWS: Announce it.
13509
066ce621
MM
135102014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13511
13512 * record-btrace.c (record_btrace_set_replay)
13513 (record_btrace_goto_begin, record_btrace_goto_end)
13514 (record_btrace_goto): New.
13515 (init_record_btrace_ops): Initialize them.
13516 * NEWS: Announce it.
13517
e2887aa3
MM
135182014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13519
13520 * record-btrace.c (record_btrace_find_new_threads)
13521 (record_btrace_thread_alive): New.
13522 (init_record_btrace_ops): Initialize to_find_new_threads and
13523 to_thread_alive.
13524
b2f4cfde
MM
135252014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13526
13527 * record-btrace.c (record_btrace_resume): New.
13528 (record_btrace_wait): New.
13529 (init_record_btrace_ops): Initialize to_wait and to_resume.
13530
633785ff
MM
135312014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13532
13533 * record-btrace.c (record_btrace_xfer_partial)
13534 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
13535 (record_btrace_allow_memory_access): New.
13536 (init_record_btrace_ops): Initialize new methods.
13537 * target.c (raw_memory_xfer_partial): Bail out if target reports
13538 that this memory is not available.
13539
3db08215
MM
135402014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13541
13542 * target.h (target_ops) <to_insert_breakpoint>
13543 <to_remove_breakpoint>: Add target_ops parameter.
13544 (forward_target_insert_breakpoint): New.
13545 (forward_target_remove_breakpoint): New.
13546 (memory_remove_breakpoint, memory_insert_breakpoint):
13547 Add target_ops parameter.
13548 * target.c (target_insert_breakpoint): Split into this and ...
13549 (forward_target_insert_breakpoint): ... this.
13550 (target_remove_breakpoint): Split into this and ...
13551 (forward_target_remove_breakpoint): ... this.
13552 (debug_to_insert_breakpoint): Add target_ops parameter.
13553 Call forward_target_insert_breakpoint.
13554 (debug_to_remove_breakpoint): Add target_ops parameter.
13555 Call forward_target_remove_breakpoint.
13556 (update_current_target): Do not inherit or default to_insert_breakpoint
13557 and to_remove_breakpoint.
13558 * corelow.c (ignore): Add target_ops parameter.
13559 * exec.c (ignore): Add target_ops parameter.
13560 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
13561 Add target_ops parameter.
13562 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
13563 Add target_ops parameter.
13564 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
13565 Add target_ops parameter.
13566 * record-full.c (record_full_beneath_to_insert_breakpoint)
13567 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
13568 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
13569 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
13570 (record_full_core_remove_breakpoint): Add target_ops parameter.
13571 Update users.
13572 (record_full_beneath_to_insert_breakpoint_ops)
13573 (record_full_beneath_to_remove_breakpoint_ops)
13574 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
13575 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
13576 tmp_to_remove_breakpoint_ops,
13577 record_full_beneath_to_insert_breakpoint_ops, and
13578 record_full_beneath_to_remove_breakpoint_ops.
13579 * remote-m32r-sdi.c (m32r_insert_breakpoint)
13580 (m32r_remove_breakpoint): Add target_ops parameter.
13581 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
13582 Add target_ops parameter.
13583 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
13584 Add target_ops parameter.
13585
cecac1ab
MM
135862014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13587 Markus Metzger <markus.t.metzger@intel.com>
13588
13589 * record-btrace.c: Include frame-unwind.h.
13590 (record_btrace_frame_unwind_stop_reason)
13591 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
13592 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
13593 New.
13594 (init_record_btrace_ops): Install it.
13595
824344ca
MM
135962014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13597
13598 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
13599 get_prev_frame_1.
13600
32261e52
MM
136012014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13602
13603 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
13604 earlier.
13605
ea001bdc
MM
136062014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13607
13608 * frame-unwind.c: Include target.h.
13609 (frame_unwind_try_unwinder): New function with code from ...
13610 (frame_unwind_find_by_frame): ... here. New variable
13611 unwinder_from_target, call also target_get_unwinder)
13612 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
13613 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
13614 * target.h (struct target_ops): New fields to_get_unwinder and
13615 to_get_tailcall_unwinder.
13616 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
13617
1f3ef581
MM
136182014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13619
13620 * record-btrace.c (record_btrace_fetch_registers)
13621 (record_btrace_store_registers)
13622 (record_btrace_to_prepare_to_store): New.
13623 (init_record_btrace_ops): Add the above.
13624
f32dbf8c
MM
136252014-01-16 Tom Tromey <tromey@redhat.com>
13626
13627 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
13628 * target.h (struct target_ops) <to_prepare_to_store>: Add
13629 argument.
13630 (target_prepare_to_store): Add argument.
13631 * target.c (debug_to_prepare_to_store): Add argument.
13632 (update_current_target): Update.
13633 * remote.c (remote_prepare_to_store): Add 'self' argument.
13634 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
13635 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
13636 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
13637 * record-full.c (record_full_core_prepare_to_store): Add 'self'
13638 argument.
13639 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
13640 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
13641 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
13642 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
13643 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
13644
07bbe694
MM
136452014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13646
13647 * btrace.h (replay) <replay>: New.
13648 (btrace_is_replaying): New.
13649 * btrace.c (btrace_clear): Free replay iterator.
13650 (btrace_is_replaying): New.
13651 * record-btrace.c (record_btrace_is_replaying): New.
13652 (record_btrace_info): Print insn number if replaying.
13653 (record_btrace_insn_history): Start at replay position.
13654 (record_btrace_call_history): Start at replay position.
13655 (init_record_btrace_ops): Init to_record_is_replaying.
13656
0688d04e
MM
136572014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13658
13659 * record-btrace.c (record_btrace_insn_history_range): Include
13660 end.
13661 (record_btrace_insn_history_from): Adjust range.
13662 (record_btrace_call_history_range): Include
13663 end.
13664 (record_btrace_call_history_from): Adjust range.
13665 * NEWS: Announce changes.
13666
8710b709
MM
136672014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13668
13669 * record.h (enum record_print_flag)
13670 <record_print_indent_calls>: New.
13671 * record.c (get_call_history_modifiers): Recognize /c modifier.
13672 (_initialize_record): Document /c modifier.
13673 * record-btrace.c (btrace_call_history): Add btinfo parameter.
13674 Reorder fields. Optionally indent the function name. Update
13675 all users.
13676 * NEWS: Announce changes.
13677
d0fa7535
MM
136782014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13679
13680 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
13681
5de9129b
MM
136822014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13683
13684 * btrace.c (ftrace_new_function): Start counting at one.
13685 * record-btrace.c (record_btrace_info): Adjust number of calls
13686 and insns.
13687 * NEWS: Announce it.
13688
7acbe133
MM
136892014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13690
13691 * record-btrace.c (btrace_call_history_insn_range): Print
13692 insn range as [begin, end].
13693
23a7fe75
MM
136942014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13695
13696 * btrace.h (struct btrace_func_link): New.
13697 (enum btrace_function_flag): New.
13698 (struct btrace_inst): Rename to ...
13699 (struct btrace_insn): ...this. Update all users.
13700 (struct btrace_func) <ibegin, iend>: Remove.
13701 (struct btrace_func_link): New.
13702 (struct btrace_func): Rename to ...
13703 (struct btrace_function): ...this. Update all users.
13704 (struct btrace_function) <segment, flow, up, insn, insn_offset)
13705 (number, level, flags>: New.
13706 (struct btrace_insn_iterator): Rename to ...
13707 (struct btrace_insn_history): ...this.
13708 Update all users.
13709 (struct btrace_insn_iterator, btrace_call_iterator): New.
13710 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
13711 (struct btrace_target_info) <begin, end, level>
13712 <insn_history, call_history>: New.
13713 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13714 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13715 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13716 (btrace_call_number, btrace_call_begin, btrace_call_end)
13717 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13718 (btrace_find_function_by_number, btrace_set_insn_history)
13719 (btrace_set_call_history): New.
13720 * btrace.c (btrace_init_insn_iterator)
13721 (btrace_init_func_iterator, compute_itrace): Remove.
13722 (ftrace_print_function_name, ftrace_print_filename)
13723 (ftrace_skip_file): Change
13724 parameter to const.
13725 (ftrace_init_func): Remove.
13726 (ftrace_debug): Use new btrace_function fields.
13727 (ftrace_function_switched): Also consider gaining and
13728 losing symbol information).
13729 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
13730 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
13731 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
13732 New.
13733 (ftrace_new_function): Move. Remove debug print.
13734 (ftrace_update_lines, ftrace_update_insns): New.
13735 (ftrace_update_function): Check for call, ret, and jump.
13736 (compute_ftrace): Renamed to ...
13737 (btrace_compute_ftrace): ...this. Rewritten to compute call
13738 stack.
13739 (btrace_fetch, btrace_clear): Updated.
13740 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13741 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13742 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13743 (btrace_call_number, btrace_call_begin, btrace_call_end)
13744 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13745 (btrace_find_function_by_number, btrace_set_insn_history)
13746 (btrace_set_call_history): New.
13747 * record-btrace.c (require_btrace): Use new btrace thread
13748 info fields.
13749 (record_btrace_info, btrace_insn_history)
13750 (record_btrace_insn_history, record_btrace_insn_history_range):
13751 Use new btrace thread info fields and new iterator.
13752 (btrace_func_history_src_line): Rename to ...
13753 (btrace_call_history_src_line): ...this. Use new btrace
13754 thread info fields.
13755 (btrace_func_history): Rename to ...
13756 (btrace_call_history): ...this. Use new btrace thread info
13757 fields and new iterator.
13758 (record_btrace_call_history, record_btrace_call_history_range):
13759 Use new btrace thread info fields and new iterator.
13760
8372a7cb
MM
137612014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13762
13763 * frame.h (frame_id_build_unavailable_stack_special): New.
13764 * frame.c (frame_id_build_unavailable_stack_special): New.
13765
c2170eef
MM
137662014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13767
13768 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
13769 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
13770 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
13771 to gdbarch.
13772 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
13773 (i386_insn_is_jump, i386_jmp_p): New.
13774 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
13775 insn_is_jump to gdbarch.
13776 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
13777 * gdbarch.h: Regenerated.
13778 * gdbarch.c: Regenerated.
13779 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
13780 (default_insn_is_jump): New.
13781 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
13782 (default_insn_is_jump): New.
13783
864089d2
MM
137842014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13785
13786 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
13787 Change to ...
13788 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
13789 (btrace_read_type) <btrace_read_new>: Change to ...
13790 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
13791
ed9edfb5
MM
137922014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13793
13794 * common/linux-btrace.c (linux_read_btrace): Free trace from
13795 previous iteration.
13796
fbcbc3fd
DE
137972014-01-15 Doug Evans <dje@google.com>
13798
13799 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
13800 uint32_t.
13801
3d548a53
TT
138022014-01-15 Tom Tromey <tromey@redhat.com>
13803
13804 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
13805 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
13806 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
13807 (set_objfile_main_name): New function.
13808 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
13809 language_of_main>: New fields.
13810 (set_objfile_main_name): Declare.
13811 * symtab.c (find_main_name): Loop over objfiles to find the main
13812 name and language.
13813 (set_main_name): Now static.
13814 (get_main_info): Add comment.
13815 * symtab.h (set_main_name): Don't declare.
13816
32ac0d11
TT
138172014-01-15 Tom Tromey <tromey@redhat.com>
13818
13819 * symtab.c (main_progspace_key): New global.
13820 (struct main_info): New.
13821 (name_of_main, language_of_main): Remove.
13822 (get_main_info, main_info_cleanup): New function.
13823 (set_main_name, main_name, main_language): Use get_main_info.
13824 (_initialize_symtab): Initialize main_progspace_key.
13825
9e6c82ad
TT
138262014-01-15 Tom Tromey <tromey@redhat.com>
13827
13828 * dbxread.c (process_one_symbol): Update.
13829 * dwarf2read.c (read_partial_die): Update.
13830 * symfile.c (set_initial_language): Call main_language.
13831 * symtab.c (language_of_main): Now static.
13832 (set_main_name): Add 'lang' parameter.
13833 (find_main_name): Update.
13834 (main_language): New function.
13835 (symtab_observer_executable_changed): Update.
13836 * symtab.h (set_main_name): Update.
13837 (language_of_main): Remove.
13838 (main_language): Declare.
13839
6ef55de7
TT
138402014-01-15 Tom Tromey <tromey@redhat.com>
13841
13842 * symfile.c (init_entry_point_info): Use new "initialized" field.
13843 Update.
13844 * objfiles.h (struct entry_point) <initialized>: New field.
13845 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
13846 (struct objfile) <ei>: ...here. Remove.
13847 * objfiles.c (entry_point_address_query): Update.
13848
53eddfa6
TT
138492014-01-15 Tom Tromey <tromey@redhat.com>
13850
13851 * objfiles.c (entry_point_address_query): Relocate entry point
13852 address.
13853 (objfile_relocate1): Do not relocate entry point address.
13854 * objfiles.h (struct entry_info) <entry_point>: Update comment.
13855 <the_bfd_section_index>: New field.
13856 * symfile.c (init_entry_point_info): Find the entry point's
13857 section.
13858
d56e56aa
TT
138592014-01-15 Tom Tromey <tromey@redhat.com>
13860
13861 * solib-frv.c (enable_break): Use entry_point_address_query.
13862
33a97bbe
OJ
138632014-01-15 Omair Javaid <omair.javaid@linaro.org>
13864
13865 * NEWS: Add note on improved process record-replay on
13866 arm*-linux* targets.
13867
c6ec2b30
OJ
138682014-01-15 Omair Javaid <omair.javaid@linaro.org>
13869
13870 * arm-tdep.c (enum arm_record_result): New enum.
13871 (arm_record_unsupported_insn): New function.
13872 (arm_record_coproc_data_proc): Removed.
13873 (thumb2_record_ld_st_multiple): New function.
13874 (thumb2_record_ld_st_dual_ex_tbb): New function.
13875 (thumb2_record_data_proc_sreg_mimm): New function.
13876 (thumb2_record_ps_dest_generic): New function.
13877 (thumb2_record_branch_misc_cntrl): New function.
13878 (thumb2_record_str_single_data): New function.
13879 (thumb2_record_ld_mem_hints): New function.
13880 (thumb2_record_ld_word): New function.
13881 (thumb2_record_lmul_lmla_div): New function.
13882 (thumb2_record_decode_insn_handler): New function.
13883 (decode_insn): Add thumb32 instruction handlers.
13884
97dfe206
OJ
138852014-01-15 Omair Javaid <omair.javaid@linaro.org>
13886
13887 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
13888 (struct arm_linux_record_tdep): Declare.
13889 (arm_canonicalize_syscall): New function.
13890 (arm_all_but_pc_registers_record): New function.
13891 (arm_linux_syscall_record): New function.
13892 (arm_linux_init_abi): Add syscall recording constructs.
13893 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
13894 decoding. (arm_record_coproc_data_proc): Update arm syscall
13895 decoding.
13896 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
13897 <arm_syscall_record>: New field.
13898 * configure.tgt (arm*-*-linux*): Add linux-record.o to
13899 gdb_target_obs.
13900
9904a494
OJ
139012014-01-15 Omair Javaid <omair.javaid@linaro.org>
13902
13903 * arm-tdep.c (thumb_record_misc): Update to use sp as base
13904 register for push instruction recording.
13905
f969241e
OJ
139062014-01-15 Omair Javaid <omair.javaid@linaro.org>
13907
13908 * arm-tdep.c (thumb_record_misc): Update to correct logical
13909 error while recording ldm, ldmia and pop instructions.
13910
bfbbec00
OJ
139112014-01-15 Omair Javaid <omair.javaid@linaro.org>
13912
13913 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
13914
e40adcc9
PA
139152014-01-15 Pedro Alves <palves@redhat.com>
13916
13917 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
13918 (go32_resume, go32_fetch_registers, store_register)
13919 (go32_store_registers, go32_prepare_to_store)
13920 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
13921 (go32_create_inferior, go32_can_run, go32_terminal_init)
13922 (go32_terminal_inferior, go32_terminal_ours): Delete forward
13923 declarations.
13924
b0a16e66
TT
139252014-01-15 Tom Tromey <tromey@redhat.com>
13926
13927 * target.h (async_callback_ftype): New typedef.
13928 (struct target_ops) <to_async>: Use it.
13929
bf7105a4
JB
139302014-01-15 Joel Brobecker <brobecker@adacore.com>
13931
13932 * python/py-value.c (get_field_type): Remove unnecessary curly
13933 braces for single-statement if block.
13934
a8f35c2e
JB
139352014-01-15 Joel Brobecker <brobecker@adacore.com>
13936
13937 * python/py-type.c (convert_field): Add missing empty line
13938 after declarations.
13939
bb4142cf
DE
139402014-01-14 Doug Evans <dje@google.com>
13941
13942 * symfile.h (expand_symtabs_matching): Renamed from
13943 expand_partial_symbol_names. Update prototype.
13944 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
13945 * symfile.c (expand_symtabs_matching): Renamed from
13946 expand_partial_symbol_names. New args file_matcher, kind.
13947 Rename arg fun to symbol_matcher.
13948 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
13949 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
13950 ada_expand_partial_symbol_name.
13951 (ada_make_symbol_completion_list): Update to call
13952 expand_symtabs_matching.
13953 (ada_add_global_exceptions): Call expand_symtabs_matching.
13954 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
13955 call map_symbol_filenames.
13956 * symtab.c (sources_info): Update to call map_symbol_filenames.
13957 (search_symbols): Call expand_symtabs_matching.
13958 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
13959 (default_make_symbol_completion_list_break_on): Update to call
13960 expand_symtabs_matching.
13961 (make_source_files_completion_list): Update to call
13962 map_symbol_filenames.
13963
206f2a57
DE
139642014-01-14 Doug Evans <dje@google.com>
13965
13966 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
13967 (expand_symtabs_symbol_matcher_ftype): New typedef.
13968 (quick_symbol_functions.expand_symtabs_matching): Update to use.
13969 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13970 * symfile.c (expand_partial_symbol_names): Update to use
13971 expand_symtabs_symbol_matcher_ftype.
13972 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
13973 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13974 Arg name_matcher renamed to symbol_matcher.
13975 * psymtab.c (recursively_search_psymtabs): Update to use
13976 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
13977 sym_matcher.
13978 (expand_symtabs_matching_via_partial): Update to use
13979 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13980 Arg name_matcher renamed to symbol_matcher.
13981
540c2971
DE
139822014-01-14 Doug Evans <dje@google.com>
13983
13984 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
13985 (map_partial_symbol_filenames): Ditto.
13986 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
13987 (map_partial_symbol_filenames): Ditto.
13988 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
13989 (map_partial_symbol_filenames): Ditto.
13990 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
13991 (map_partial_symbol_filenames): Ditto.
13992 * symtab.c: Delete #include "psymtab.h".
13993
8213266a
PA
139942014-01-14 Pedro Alves <palves@redhat.com>
13995 Tom Tromey <tromey@redhat.com>
13996
13997 * infrun.c (use_displaced_stepping): Use find_record_target
13998 instead of RECORD_IS_USED.
13999 (adjust_pc_after_break): Use record_full_is_used instead of
14000 RECORD_IS_USED.
14001 * record-btrace.c (record_btrace_open): Call record_preopen
14002 instead of checking RECORD_IS_USED.
14003 * record-full.c (record_full_shortname)
14004 (record_full_core_shortname): New globals.
14005 (record_full_is_used): New function.
14006 (find_full_open): Call record_preopen instead of checking
14007 RECORD_IS_USED.
14008 (init_record_full_ops): Set the target's shortname to
14009 record_full_shortname.
14010 (init_record_full_core_ops): Set the target's shortname to
14011 record_full_core_shortname.
14012 * record-full.h (record_full_is_used): Declare.
14013 * record.c (find_record_target): Make extern.
14014 (record_preopen): New function.
14015 * record.h (RECORD_IS_USED): Delete macro.
14016 (find_record_target, record_preopen): Declare functions.
14017
7ec1862d
YQ
140182014-01-14 Yao Qi <yao@codesourcery.com>
14019
14020 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
14021 'len''s type to ULONGEST.
14022 (core_xfer_shared_libraries_aix): Likewise.
14023 * gdbarch.c, gdbarch.h: Regenerated.
14024 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
14025 Change type of 'len' to ULONGEST.
14026 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14027 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
14028
dea80a27
YQ
140292014-01-14 Yao Qi <yao@codesourcery.com>
14030
14031 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
14032 type of 'len' to ULONGEST.
14033 (linux_xfer_osdata_processgroups): Likewise.
14034 (linux_xfer_osdata_threads): Likewise.
14035 (linux_xfer_osdata_fds): Likewise.
14036 (linux_xfer_osdata_isockets): Likewise.
14037 (linux_xfer_osdata_shm): Likewise.
14038 (linux_xfer_osdata_sem): Likewise.
14039 (linux_xfer_osdata_msg): Likewise.
14040 (linux_common_xfer_osdata): Likewise.
14041 (struct osdata_type) <getter>: Likewise.
14042 * common/linux-osdata.h (linux_common_xfer_osdata): Update
14043 the declaration.
14044
b55e14c7
YQ
140452014-01-14 Yao Qi <yao@codesourcery.com>
14046
14047 * target.h (target_xfer_partial_ftype): Update.
14048 (struct target_ops) <to_xfer_partial>: Change 'len' type to
14049 ULONGEST.
14050 * aix-thread.c (aix_thread_xfer_partial): Change type of
14051 argument 'len' to ULONGEST.
14052 * auxv.c (procfs_xfer_auxv): Likewise.
14053 (ld_so_xfer_auxv): Likewise.
14054 (memory_xfer_auxv): Likewise.
14055 * bfd-target.c (target_bfd_xfer_partial): Likewise.
14056 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
14057 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
14058 * corelow.c (core_xfer_partial): Likewise.
14059 * ctf.c (ctf_xfer_partial): Likewise.
14060 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
14061 '%u'.
14062 (darwin_read_dyld_info): Likewise.
14063 (darwin_xfer_partial): Likewise.
14064 * exec.c (section_table_xfer_memory_partial): Likewise.
14065 (exec_xfer_partial): Likewise.
14066 * exec.h (section_table_xfer_memory_partial): Update
14067 declaration.
14068 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
14069 instead of plongest.
14070 (gnu_xfer_partial): Likewise.
14071 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
14072 (ia64_hpux_xfer_solib_got): Likewise.
14073 (ia64_hpux_xfer_partial): Likewise.
14074 * ia64-linux-nat.c (ia64_linux_xfer_partial):
14075 * inf-ptrace.c (inf_ptrace_xfer_partial):
14076 * inf-ttrace.c (inf_ttrace_xfer_partial):
14077 * linux-nat.c (linux_xfer_siginfo): Likewise.
14078 (linux_nat_xfer_partial): Likewise.
14079 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
14080 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
14081 * monitor.c (monitor_xfer_memory): Likewise.
14082 (monitor_xfer_partial): Likewise.
14083 * procfs.c (procfs_xfer_partial): Likewise.
14084 * record-full.c (record_full_xfer_partial): Likewise.
14085 (record_full_core_xfer_partial): Likewise.
14086 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
14087 instead of plongest.
14088 (gdbsim_xfer_partial): Likewise.
14089 * remote.c (remote_xfer_partial): Likewise.
14090 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14091 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
14092 declaration.
14093 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14094 (rs6000_xfer_shared_libraries): Likewise.
14095 * sol-thread.c (sol_thread_xfer_partial): Likewise.
14096 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14097 (sparc_xfer_partial): Likewise.
14098 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
14099 (spu_xfer_partial): Likewise.
14100 * spu-multiarch.c (spu_xfer_partial): Likewise.
14101 * target.c (target_read_live_memory): Likewise.
14102 (memory_xfer_live_readonly_partial): Likewise.
14103 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
14104 (target_xfer_partial, default_xfer_partial): Likewise.
14105 (current_xfer_partial): Likewise.
14106 * tracepoint.c (tfile_xfer_partial): Likewise.
14107 * windows-nat.c (windows_xfer_memory): Likewise. Call
14108 pulongest instead of plongest.
14109 (windows_xfer_partial): Likewise.
14110 (windows_xfer_shared_libraries): Likewise.
14111
05804640
YQ
141122014-01-14 Yao Qi <yao@codesourcery.com>
14113
14114 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
14115 target_xfer_partial_ftype.
14116
b5b08fb4
SC
141172014-01-13 Siva Chandra Reddy <sivachandra@google.com>
14118
14119 PR python/15464
14120 PR python/16113
14121 * valops.c (value_struct_elt_bitpos): New function
14122 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
14123 object to 'None' if the field name is an empty string ("").
14124 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
14125 attribute to look for a field when 'name' is 'None'.
14126 (get_field_type): New function
14127
13aaf454
DE
141282014-01-13 Doug Evans <dje@google.com>
14129
14130 PR symtab/16426
14131 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
14132 (try_open_dwop_file): Ditto.
14133 * gdb_bfd.c: #include "vec.h".
14134 (bfdp): New typedef.
14135 (struct gdb_bfd_data): New member included_bfds.
14136 (gdb_bfd_unref): Unref all included bfds.
14137 (gdb_bfd_record_inclusion): New function.
14138 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
14139
c2cec97c
TT
141402014-01-13 Tom Tromey <tromey@redhat.com>
14141
14142 * gdbcore.h (deprecated_core_resize_section_table): Remove.
14143
78e5999d
TT
141442014-01-13 Tom Tromey <tromey@redhat.com>
14145
14146 * defs.h (use_windows): Remove.
14147 * gdb.c (main): Update.
14148 * main.c (captured_main, gdb_main): Update.
14149 * main.h (struct captured_main_args) <use_windows>: Remove.
14150 * top.c (use_windows): Remove.
14151
f2052bbe
TT
141522014-01-13 Tom Tromey <tromey@redhat.com>
14153
14154 * defs.h (deprecated_flush_hook): Remove.
14155
fde4f8ed
JK
141562014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
14157
14158 PR threads/16216
14159 * linux-thread-db.c (try_thread_db_load): Add parameter
14160 check_auto_load_safe. Move here the file_is_auto_load_safe call.
14161 (try_thread_db_load_from_pdir_1): Move it there from here.
14162 (try_thread_db_load_from_sdir): Update caller.
14163 (try_thread_db_load_from_dir): Move it there from here.
14164
bdf61915
PP
141652014-01-13 Patrick Palka <patrick@parcs.ath.cx>
14166
14167 * regformats/regdat.sh: Always rewrite the register file.
14168
f71e1a8d
PA
141692014-01-13 Pedro Alves <palves@redhat.com>
14170
14171 * Makefile.in (CHECK_HEADERS): New variable.
14172 (check-headers:): New rule.
14173
42c85435
TT
141742014-01-13 Tom Tromey <tromey@redhat.com>
14175
14176 * cli/cli-setshow.c (do_set_command): Update.
14177 * defs.h (deprecated_set_hook): Remove.
14178 * top.c (deprecated_set_hook): Remove.
14179
f8de5129
PA
141802014-01-13 Pedro Alves <palves@redhat.com>
14181
14182 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
14183 the tracepoint if the PC is a pseudo-register.
14184
fc270c35
TT
141852014-01-13 Tom Tromey <tromey@redhat.com>
14186
14187 * defs.h (XCALLOC): Remove.
14188 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
14189 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
14190 * dwarf2loc.c (allocate_piece_closure): Likewise.
14191 * elfread.c (elf_symfile_segments): Likewise.
14192 (elf_symfile_segments): Likewise.
14193 * gdbtypes.c (copy_type_recursive): Likewise.
14194 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
14195 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
14196 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
14197 XCALLOC.
14198 * mt-tdep.c (mt_gdbarch_init): Likewise.
14199 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
14200 XCALLOC.
14201 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
14202 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
14203 * registry.c (registry_alloc_data): Likewise.
14204 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
14205 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
14206 * serial.c (serial_fdopen_ops): Likewise.
14207 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
14208 XCALLOC.
14209 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
14210 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
14211 not XCALLOC.
14212
70ba0933
TT
142132014-01-13 Tom Tromey <tromey@redhat.com>
14214
14215 * defs.h (XMALLOC): Remove.
14216 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
14217 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
14218 * cli-out.c (struct ui_out *): Likewise.
14219 * cli/cli-dump.c (add_dump_command): Likewise.
14220 (add_dump_command): Likewise.
14221 * complaints.c (get_complaints): Likewise.
14222 (find_complaint): Likewise.
14223 * dwarf2-frame.c (execute_cfa_program): Likewise.
14224 * dwarf2read.c (abbrev_table_read_table): Likewise.
14225 * gdbarch.sh: Likewise.
14226 * gdbarch.c: Rebuild.
14227 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
14228 * interps.c (interp_new): Likewise.
14229 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
14230 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
14231 * mi/mi-console.c (mi_console_file_new): Likewise.
14232 * mi/mi-interp.c (mi_interpreter_init): Likewise.
14233 * mi/mi-out.c (mi_out_new): Likewise.
14234 * mi/mi-parse.c (mi_parse): Likewise.
14235 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
14236 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
14237 * observer.c (xalloc_observer_list_node): Likewise.
14238 * regcache.c (regcache_xmalloc_1): Likewise.
14239 * reggroups.c (reggroup_new): Likewise.
14240 (_initialize_reggroup): Likewise.
14241 * registry.c (register_data_with_cleanup): Likewise.
14242 * remote.c (remote_notif_stop_alloc_reply): Likewise.
14243 * ser-base.c (serial_ttystate): Likewise.
14244 * ser-mingw.c (make_pipe_state): Likewise.
14245 * ser-pipe.c (pipe_open): Likewise.
14246 * serial.c (serial_open): Likewise.
14247 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
14248 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
14249 (tui_alloc_win_info): Likewise.
14250 (tui_add_content_elements): Likewise.
14251 * tui/tui-file.c (tui_file_new): Likewise.
14252 * tui/tui-out.c (tui_out_new): Likewise.
14253 * ui-file.c (mem_file_new): Likewise.
14254 * ui-out.c (push_level): Likewise.
14255 (make_cleanup_ui_out_end): Likewise.
14256 (append_header_to_list): Likewise.
14257 (ui_out_new): Likewise.
14258 * user-regs.c (user_reg_add_builtin): Likewise.
14259
41bf6aca
TT
142602014-01-13 Tom Tromey <tromey@redhat.com>
14261
14262 * defs.h (XZALLOC): Remove.
14263 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
14264 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
14265 (get_ada_tasks_inferior_data): Likewise.
14266 * auto-load.c (get_auto_load_pspace_data): Likewise.
14267 * auxv.c (get_auxv_inferior_data): Likewise.
14268 * bfd-target.c (target_bfd_reopen): Likewise.
14269 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
14270 (deprecated_insert_raw_breakpoint): Likewise.
14271 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
14272 * corelow.c (core_open): Likewise.
14273 * darwin-nat.c (darwin_check_new_threads): Likewise.
14274 (darwin_attach_pid): Likewise.
14275 * dummy-frame.c (dummy_frame_push): Likewise.
14276 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
14277 * dwarf2loc.c (allocate_piece_closure): Likewise.
14278 * elfread.c (elf_symfile_segments): Likewise.
14279 * eval.c (ptrmath_type_p): Likewise.
14280 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
14281 * gdbtypes.c (alloc_type_arch): Likewise.
14282 (alloc_type_instance): Likewise.
14283 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
14284 * inf-child.c (inf_child_can_use_agent): Likewise.
14285 * inflow.c (get_inflow_inferior_data): Likewise.
14286 * infrun.c (save_infcall_suspend_state): Likewise.
14287 * jit.c (jit_reader_load): Likewise.
14288 (get_jit_objfile_data): Likewise.
14289 (get_jit_program_space_data): Likewise.
14290 (jit_object_open_impl): Likewise.
14291 (jit_symtab_open_impl): Likewise.
14292 (jit_block_open_impl): Likewise.
14293 (jit_frame_sniffer): Likewise.
14294 * linux-fork.c (add_fork): Likewise.
14295 * maint.c (make_command_stats_cleanup): Likewise.
14296 * objfiles.c (get_objfile_pspace_data): Likewise.
14297 * opencl-lang.c (struct lval_closure): Likewise.
14298 * osdata.c (osdata_start_osdata): Likewise.
14299 * progspace.c (new_address_space): Likewise.
14300 (add_program_space): Likewise.
14301 * remote-sim.c (get_sim_inferior_data): Likewise.
14302 * sh-tdep.c (sh_gdbarch_init): Likewise.
14303 * skip.c (Ignore): Likewise.
14304 (skip_delete_command): Likewise.
14305 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
14306 (library_list_start_library): Likewise.
14307 (solib_aix_current_sos): Likewise.
14308 * solib-darwin.c (get_darwin_info): Likewise.
14309 (darwin_current_sos): Likewise.
14310 * solib-dsbt.c (get_dsbt_info): Likewise.
14311 * solib-ia64-hpux.c (new_so_list): Likewise.
14312 (ia64_hpux_get_solib_linkage_addr): Likewise.
14313 * solib-spu.c (append_ocl_sos): Likewise.
14314 (spu_current_sos): Likewise.
14315 * solib-svr4.c (get_svr4_info): Likewise.
14316 (svr4_keep_data_in_core): Likewise.
14317 (library_list_start_library): Likewise.
14318 (svr4_default_sos): Likewise.
14319 (svr4_read_so_list): Likewise.
14320 * solib-target.c (library_list_start_library): Likewise.
14321 (solib_target_current_sos): Likewise.
14322 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
14323 * symfile-debug.c (install_symfile_debug_logging): Likewise.
14324 * symfile.c (default_symfile_segments): Likewise.
14325 * target-descriptions.c (tdesc_data_init): Likewise.
14326 (tdesc_create_reg): Likewise.
14327 (struct tdesc_type *): Likewise.
14328 (tdesc_create_vector): Likewise.
14329 (tdesc_set_struct_size): Likewise.
14330 (struct tdesc_type *): Likewise.
14331 (tdesc_free_feature): Likewise.
14332 (tdesc_create_feature): Likewise.
14333 * windows-nat.c (windows_add_thread): Likewise.
14334 (windows_make_so): Likewise.
14335 * xml-support.c (gdb_xml_body_text): Likewise.
14336 (gdb_xml_create_parser_and_cleanup): Likewise.
14337 (xml_process_xincludes): Likewise.
14338 * xml-syscall.c (allocate_syscalls_info): Likewise.
14339 (syscall_create_syscall_desc): Likewise.
14340
5acfdbae
SDJ
143412014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
14342
14343 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
14344 function, with code from i386_stap_parse_special_token.
14345 (i386_stap_parse_special_token_three_arg_disp): Likewise.
14346 (i386_stap_parse_special_token): Move code to the two functions
14347 above; simplify it.
14348
0000e5cc
PA
143492014-01-09 Pedro Alves <palves@redhat.com>
14350 Hui Zhu <hui@codesourcery.com>
14351
14352 PR gdb/16101
14353 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
14354 bp_err_string. Don't mark the location shlib_disabled if the
14355 error thrown wasn't a generic or memory error. Catch errors
14356 thrown while inserting breakpoints in overlayed code. Output
14357 error message of software breakpoints.
14358 * remote.c (remote_insert_breakpoint): If this breakpoint has
14359 target-side commands but this stub doesn't support Z0 packets,
14360 throw NOT_SUPPORTED_ERROR error.
14361 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
14362 * target.h (target_insert_breakpoint): Extend comment.
14363 (target_insert_hw_breakpoint): Add comment.
14364
b7ea362b
PA
143652014-01-08 Pedro Alves <palves@redhat.com>
14366
14367 * remote.c (remote_add_thread): Add threads silently if starting
14368 up.
14369 (remote_notice_new_inferior): If in all-stop, and starting up,
14370 don't call notice_new_inferior.
14371 (get_current_thread): New function, factored out from ...
14372 (add_current_inferior_and_thread): ... this. Adjust.
14373 (remote_start_remote) <all-stop>: Fetch the thread list. If we
14374 found any thread, then select the remote's current thread as GDB's
14375 current thread too.
14376
b7bba001
JB
143772014-01-08 Joel Brobecker <brobecker@adacore.com>
14378
14379 * NEWS: Create a new section for the next release branch.
14380 Rename the section of the current branch, now that it has
14381 been cut.
14382
16dfbded
JB
143832014-01-08 Joel Brobecker <brobecker@adacore.com>
14384
14385 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
14386 * version.in: Bump version to 7.7.50.DATE-cvs.
14387
22c90ac1
YQ
143882014-01-08 Yao Qi <yao@codesourcery.com>
14389
14390 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
14391 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
14392 (spu_xfer_partial): Cast 'buf' to 'const char *'.
14393
d64ad97c
YQ
143942014-01-08 Yao Qi <yao@codesourcery.com>
14395
14396 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
14397 return value of bfd_get_filename to symbol_file_add_from_bfd.
14398
f93ba80c
PM
143992014-01-08 Pierre Muller <muller@sourceware.org>
14400
14401 Fix PR16201.
14402 * coff-pe-read.c (struct read_pe_section_data): Add index field.
14403 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
14404 to prim_record_mininal_symbol_and_info.
14405 (add_pe_forwarded_sym): Use known section number of forwarded symbol
14406 in call to prim_record_minimal_symbol_and_info.
14407 (read_pe_exported_syms): Set index field of section_data.
14408
a4d9ba85
AP
144092014-01-07 Andrew Pinski <apinski@cavium.com>
14410
14411 * features/aarch64-core.xml (cpsr): Change to be 64bit.
14412 * features/aarch64.c: Regenerate.
14413
1b67eb02
AS
144142014-01-07 Andreas Schwab <schwab@linux-m68k.org>
14415
14416 * target.c (return_null): Define.
14417 (update_current_target): Use it instead of return_zero for
14418 functions that return a pointer.
14419
5e3f4fab
EBM
144202014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
14421
14422 * source.c (add_path): Fix check for duplicated paths in the previously
14423 included paths.
14424
e2616788
HK
144252014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
14426
14427 * ada-lang.c: Remove duplicated include statements.
14428 * alphabsd-nat.c: Ditto.
14429 * amd64-darwin-tdep.c: Ditto.
14430 * amd64fbsd-nat.c: Ditto.
14431 * auto-load.c: Ditto.
14432 * ax-gdb.c: Ditto.
14433 * breakpoint.c: Ditto.
14434 * dbxread.c: Ditto.
14435 * fork-child.c: Ditto.
14436 * gdb_usleep.c: Ditto.
14437 * i386-darwin-tdep.c: Ditto.
14438 * i386fbsd-nat.c: Ditto.
14439 * infcmd.c: Ditto.
14440 * inferior.c: Ditto.
14441 * jv-lang.c: Ditto.
14442 * linux-nat.c: Ditto.
14443 * linux-tdep.c: Ditto.
14444 * m68kbsd-nat.c: Ditto.
14445 * m68klinux-nat.c: Ditto.
14446 * microblaze-tdep.c: Ditto.
14447 * mips-linux-tdep.c: Ditto.
14448 * mn10300-tdep.c: Ditto.
14449 * nto-tdep.c: Ditto.
14450 * opencl-lang.c: Ditto.
14451 * osdata.c: Ditto.
14452 * printcmd.c: Ditto.
14453 * regcache.c: Ditto.
14454 * remote-m32r-sdi.c: Ditto.
14455 * remote.c: Ditto.
14456 * symfile.c: Ditto.
14457 * symtab.c: Ditto.
14458 * tilegx-linux-nat.c: Ditto.
14459 * tilegx-tdep.c: Ditto.
14460 * tracepoint.c: Ditto.
14461 * valops.c: Ditto.
14462 * vaxbsd-nat.c: Ditto.
14463 * windows-nat.c: Ditto.
14464 * xtensa-tdep.c: Ditto.
14465
bd1f7788
YQ
144662014-01-07 Yao Qi <yao@codesourcery.com>
14467
14468 * spu-linux-nat.c (_initialize_spu_nat): Declare.
14469
79301218
JB
144702014-01-07 Yao Qi <yao@codesourcery.com>
14471 Joel Brobecker <brobecker@adacore.com>
14472
14473 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
14474 (pdc_write_regs): Likewise.
14475 (fetch_regs_kernel_thread): Likewise.
14476 (store_regs_kernel_thread): Likewise.
14477
144782014-01-07 Joel Brobecker <brobecker@adacore.com>
14479
14480 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
14481 tagged type objects to their actual type.
14482
8e355c5d
JB
144832014-01-07 Joel Brobecker <brobecker@adacore.com>
14484
14485 * ada-valprint.c (print_field_values): Add "language" parameter.
14486 Update calls to print_field_values and print_variant_part.
14487 Pass new parameter "language" in call to val_print instead
14488 of "current_language". Replace call to ada_val_print by call
14489 to val_print.
14490 (print_variant_part): Add "language" parameter.
14491 (ada_val_print_struct_union): Update call to print_field_values.
14492
4fbf5aa5
JB
144932014-01-07 Joel Brobecker <brobecker@adacore.com>
14494
14495 * ada-valprint.c (ui_memcpy): Delete.
14496 (ada_print_floating): Update documentation. Add empty line
14497 between between function documentation and implementation.
14498 Delete variable "buffer". Use ui_file_xstrdup in place of
14499 ui_file_put. Minor adjustments following this change.
14500
71855601
JB
145012014-01-07 Joel Brobecker <brobecker@adacore.com>
14502
14503 * ada-valprint.c (ada_val_print_string): New function,
14504 extracted from ada_val_print_array.
14505 (ada_val_print_array): Replace extracted code by call
14506 to ada_val_print_string followed by a return. Move
14507 "else" branch to the function's top block.
14508
4eb27a30
JB
145092014-01-07 Joel Brobecker <brobecker@adacore.com>
14510
14511 * ada-valprint.c (ada_val_print_array): Move implementation
14512 down. Rename parameter "offset" and "val" into "offset_aligned"
14513 and "original_value" respectively. Add parameter "offset".
14514
34b27950
JB
145152014-01-07 Joel Brobecker <brobecker@adacore.com>
14516
14517 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
14518 re-organizing the code. Change the "???" message printed
14519 when target type is a TYPE_CODE_UNDEF into
14520 "<ref to undefined type>".
14521
079e4591
JB
145222014-01-07 Joel Brobecker <brobecker@adacore.com>
14523
14524 * ada-valprint.c (print_record): Delete, implementation inlined...
14525 (ada_val_print_struct_union): ... here. Remove call to
14526 ada_check_typedef in inlined implementation.
14527
8004dfd1
JB
145282014-01-07 Joel Brobecker <brobecker@adacore.com>
14529
14530 * ada-valprint.c (ada_val_print_gnat_array): New function,
14531 extracted from ada_val_print_1;
14532 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
14533 (ada_val_print_flt, ada_val_print_struct_union)
14534 (ada_val_print_ref): Likewise.
14535 (ada_val_print_1): Delete variables i and elttype.
14536 Replace extracted-out code by call to corresponding
14537 new functions.
14538
760a2db0
JB
145392014-01-07 Joel Brobecker <brobecker@adacore.com>
14540
14541 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
14542
3a92c861
JB
145432014-01-07 Joel Brobecker <brobecker@adacore.com>
14544
14545 * ada-valprint.c (ada_val_print_1): Replace calls to
14546 ada_val_print_1 by calls to val_print.
14547
cd1630f9
JB
145482014-01-07 Joel Brobecker <brobecker@adacore.com>
14549
14550 * ada-valprint.c (ada_val_print_1): Add parameter "language".
14551 Update calls to self accordingly. Replace calls to c_val_print
14552 by calls to val_print.
14553
bdf779a0
JB
145542014-01-07 Joel Brobecker <brobecker@adacore.com>
14555
14556 * ada-valprint.c (print_record): Delete declaration.
14557 (adjust_type_signedness, ada_val_print_1): Likewise.
14558 (ada_val_print): Move function implementation down.
14559 (print_variant_part, print_field_values, print_record):
14560 Move function implementation up.
14561
c0d48811
JB
145622014-01-07 Joel Brobecker <brobecker@adacore.com>
14563
14564 * python/py-type.c (typy_get_name): New function.
14565 (type_object_getset): Add entry for attribute "name".
14566 * NEWS: Add entry mentioning this new attribute.
14567
c26e9cbb
YQ
145682014-01-07 Yao Qi <yao@codesourcery.com>
14569
14570 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
14571 statement.
14572
0cc6f43d
YQ
145732014-01-07 Yao Qi <yao@codesourcery.com>
14574
14575 * gnu-nat.c (info_port_rights): Add qualifier const to
14576 argument args.
14577
eec03155
YQ
145782014-01-07 Yao Qi <yao@codesourcery.com>
14579
14580 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
14581
f04a82ef
YQ
145822014-01-07 Yao Qi <yao@codesourcery.com>
14583
14584 * gnu-nat.c (make_inf) Update declaration.
14585 (make_inf): Make it static.
14586 (inf_set_traced): Likewise.
14587 (inf_port_to_thread, inf_task_died_status): Likewise.
14588
d57dda0a
YQ
145892014-01-07 Yao Qi <yao@codesourcery.com>
14590
14591 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
14592
3aa8c969
YQ
145932014-01-07 Yao Qi <yao@codesourcery.com>
14594
14595 * gnu-nat.c (_initialize_gnu_nat): Declare.
14596
94123b4f
YQ
145972014-01-07 Yao Qi <yao@codesourcery.com>
14598
14599 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
14600 'enum bfd_endian'.
14601 (struct gdbarch_info) <byte_order>: Change type to
14602 'enum bfd_endian'.
14603 <byte_order_for_code>: Likewise.
14604 * gdbarch.c, gdbarch.h: Regenerated.
14605
dc81d70a
TT
146062014-01-06 Sasha Smundak <asmundak@google.com>
14607
14608 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
14609
cc2f3c35
TT
146102014-01-06 Tom Tromey <tromey@redhat.com>
14611
14612 * doublest.c (convert_doublest_to_floatformat): Use const, not
14613 CONST.
14614 * somread.c (som_symtab_read): Likewise.
14615
adcf2eed
HZ
146162014-01-07 Hui Zhu <hui@codesourcery.com>
14617
14618 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
14619 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
14620 (gdb_bfd_fopen): Ditto.
14621 (gdb_bfd_openr): Ditto.
14622 (gdb_bfd_openw): Ditto.
14623 (gdb_bfd_openr_iovec): Ditto.
14624 (gdb_bfd_fdopenr): Ditto.
14625 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
14626 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
14627 with xstrdup.
14628 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
14629 with xstrdup.
14630 * symfile-mem.c (symbol_file_add_from_memory): Removed
14631 gdb_bfd_stash_filename.
14632
50722198
DE
146332014-01-03 Doug Evans <dje@google.com>
14634
14635 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
14636 output.
14637
2fa4b862
JB
146382014-01-01 Joel Brobecker <brobecker@adacore.com>
14639
14640 Update year range in copyright notice of all files.
14641
28498c42
JB
146422014-01-01 Joel Brobecker <brobecker@adacore.com>
14643
14644 * top.c (print_gdb_version): Set copyright year to 2014.
14645
7b6e1046
JB
146462014-01-01 Joel Brobecker <brobecker@adacore.com>
14647
14648 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
14649
df96af55 14650For older changes see ChangeLog-2013.
c906108c
SS
14651\f
14652Local Variables:
14653mode: change-log
14654left-margin: 8
14655fill-column: 74
14656version-control: never
57da7796 14657coding: utf-8
c906108c 14658End:
This page took 2.257545 seconds and 4 git commands to generate.